@angular/cdk 14.0.0-next.9 → 14.0.0-rc.2

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 (474) hide show
  1. package/a11y/_index.scss +11 -0
  2. package/a11y/index.d.ts +1119 -5
  3. package/a11y-prebuilt.css +1 -1
  4. package/accordion/index.d.ts +108 -6
  5. package/bidi/index.d.ts +77 -5
  6. package/clipboard/index.d.ts +112 -5
  7. package/coercion/index.d.ts +64 -5
  8. package/collections/index.d.ts +348 -5
  9. package/dialog/index.d.ts +410 -0
  10. package/drag-drop/index.d.ts +1456 -5
  11. package/esm2020/a11y/a11y-module.mjs +5 -5
  12. package/esm2020/a11y/aria-describer/aria-describer.mjs +10 -9
  13. package/esm2020/a11y/focus-monitor/focus-monitor.mjs +10 -10
  14. package/esm2020/a11y/focus-trap/configurable-focus-trap-factory.mjs +4 -4
  15. package/esm2020/a11y/focus-trap/focus-trap-manager.mjs +4 -4
  16. package/esm2020/a11y/focus-trap/focus-trap.mjs +7 -7
  17. package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +10 -10
  18. package/esm2020/a11y/input-modality/input-modality-detector.mjs +4 -4
  19. package/esm2020/a11y/interactivity-checker/interactivity-checker.mjs +4 -4
  20. package/esm2020/a11y/live-announcer/live-announcer.mjs +7 -7
  21. package/esm2020/accordion/accordion-item.mjs +4 -4
  22. package/esm2020/accordion/accordion-module.mjs +5 -5
  23. package/esm2020/accordion/accordion.mjs +4 -4
  24. package/esm2020/bidi/bidi-module.mjs +5 -5
  25. package/esm2020/bidi/dir.mjs +4 -4
  26. package/esm2020/bidi/directionality.mjs +4 -4
  27. package/esm2020/clipboard/clipboard-module.mjs +5 -5
  28. package/esm2020/clipboard/clipboard.mjs +4 -4
  29. package/esm2020/clipboard/copy-to-clipboard.mjs +4 -4
  30. package/esm2020/collections/dispose-view-repeater-strategy.mjs +4 -4
  31. package/esm2020/collections/recycle-view-repeater-strategy.mjs +4 -4
  32. package/esm2020/collections/unique-selection-dispatcher.mjs +4 -4
  33. package/esm2020/dialog/dialog-config.mjs +63 -0
  34. package/esm2020/dialog/dialog-container.mjs +278 -0
  35. package/esm2020/dialog/dialog-injectors.mjs +26 -0
  36. package/esm2020/dialog/dialog-module.mjs +42 -0
  37. package/esm2020/dialog/dialog-ref.mjs +76 -0
  38. package/esm2020/dialog/dialog.mjs +298 -0
  39. package/esm2020/dialog/dialog_public_index.mjs +5 -0
  40. package/esm2020/dialog/index.mjs +9 -0
  41. package/esm2020/dialog/public-api.mjs +14 -0
  42. package/esm2020/drag-drop/directives/drag-handle.mjs +4 -4
  43. package/esm2020/drag-drop/directives/drag-placeholder.mjs +4 -4
  44. package/esm2020/drag-drop/directives/drag-preview.mjs +4 -4
  45. package/esm2020/drag-drop/directives/drag.mjs +11 -4
  46. package/esm2020/drag-drop/directives/drop-list-group.mjs +4 -4
  47. package/esm2020/drag-drop/directives/drop-list.mjs +4 -4
  48. package/esm2020/drag-drop/drag-drop-module.mjs +5 -5
  49. package/esm2020/drag-drop/drag-drop-registry.mjs +4 -4
  50. package/esm2020/drag-drop/drag-drop.mjs +4 -4
  51. package/esm2020/drag-drop/drop-list-ref.mjs +23 -23
  52. package/esm2020/layout/breakpoints-observer.mjs +4 -4
  53. package/esm2020/layout/layout-module.mjs +5 -5
  54. package/esm2020/layout/media-matcher.mjs +4 -4
  55. package/esm2020/menu/context-menu-trigger.mjs +212 -0
  56. package/esm2020/menu/index.mjs +9 -0
  57. package/esm2020/menu/menu-aim.mjs +203 -0
  58. package/esm2020/menu/menu-bar.mjs +133 -0
  59. package/esm2020/menu/menu-base.mjs +187 -0
  60. package/esm2020/menu/menu-errors.mjs +22 -0
  61. package/esm2020/menu/menu-group.mjs +30 -0
  62. package/esm2020/menu/menu-interface.mjs +11 -0
  63. package/esm2020/menu/menu-item-checkbox.mjs +49 -0
  64. package/esm2020/menu/menu-item-radio.mjs +71 -0
  65. package/esm2020/menu/menu-item-selectable.mjs +42 -0
  66. package/esm2020/menu/menu-item.mjs +259 -0
  67. package/esm2020/menu/menu-module.mjs +62 -0
  68. package/esm2020/menu/menu-stack.mjs +156 -0
  69. package/esm2020/menu/menu-trigger-base.mjs +107 -0
  70. package/esm2020/menu/menu-trigger.mjs +283 -0
  71. package/esm2020/menu/menu.mjs +134 -0
  72. package/esm2020/menu/menu_public_index.mjs +5 -0
  73. package/esm2020/menu/pointer-focus-tracker.mjs +51 -0
  74. package/esm2020/menu/public-api.mjs +24 -0
  75. package/esm2020/observers/observe-content.mjs +14 -14
  76. package/esm2020/overlay/dispatchers/base-overlay-dispatcher.mjs +4 -4
  77. package/esm2020/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +4 -4
  78. package/esm2020/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +4 -4
  79. package/esm2020/overlay/fullscreen-overlay-container.mjs +4 -4
  80. package/esm2020/overlay/overlay-container.mjs +4 -4
  81. package/esm2020/overlay/overlay-directives.mjs +7 -7
  82. package/esm2020/overlay/overlay-module.mjs +5 -5
  83. package/esm2020/overlay/overlay-ref.mjs +14 -5
  84. package/esm2020/overlay/overlay.mjs +14 -8
  85. package/esm2020/overlay/position/overlay-position-builder.mjs +4 -4
  86. package/esm2020/overlay/scroll/scroll-strategy-options.mjs +4 -4
  87. package/esm2020/platform/features/scrolling.mjs +4 -4
  88. package/esm2020/platform/platform-module.mjs +5 -5
  89. package/esm2020/platform/platform.mjs +4 -4
  90. package/esm2020/portal/dom-portal-outlet.mjs +6 -2
  91. package/esm2020/portal/portal-directives.mjs +17 -17
  92. package/esm2020/scrolling/fixed-size-virtual-scroll.mjs +4 -4
  93. package/esm2020/scrolling/scroll-dispatcher.mjs +4 -4
  94. package/esm2020/scrolling/scrollable.mjs +9 -9
  95. package/esm2020/scrolling/scrolling-module.mjs +9 -9
  96. package/esm2020/scrolling/viewport-ruler.mjs +4 -4
  97. package/esm2020/scrolling/virtual-for-of.mjs +4 -4
  98. package/esm2020/scrolling/virtual-scroll-viewport.mjs +4 -4
  99. package/esm2020/stepper/step-header.mjs +4 -4
  100. package/esm2020/stepper/step-label.mjs +4 -4
  101. package/esm2020/stepper/stepper-button.mjs +7 -7
  102. package/esm2020/stepper/stepper-module.mjs +5 -5
  103. package/esm2020/stepper/stepper.mjs +7 -7
  104. package/esm2020/table/cell.mjs +22 -22
  105. package/esm2020/table/coalesced-style-scheduler.mjs +4 -4
  106. package/esm2020/table/row.mjs +28 -28
  107. package/esm2020/table/table-module.mjs +5 -5
  108. package/esm2020/table/table.mjs +21 -21
  109. package/esm2020/table/text-column.mjs +5 -5
  110. package/esm2020/testing/selenium-webdriver/selenium-web-driver-harness-environment.mjs +1 -1
  111. package/esm2020/testing/test-element.mjs +1 -1
  112. package/esm2020/text-field/autofill.mjs +7 -7
  113. package/esm2020/text-field/autosize.mjs +4 -4
  114. package/esm2020/text-field/text-field-module.mjs +5 -5
  115. package/esm2020/tree/nested-node.mjs +4 -4
  116. package/esm2020/tree/node.mjs +4 -4
  117. package/esm2020/tree/outlet.mjs +4 -4
  118. package/esm2020/tree/padding.mjs +4 -4
  119. package/esm2020/tree/toggle.mjs +4 -4
  120. package/esm2020/tree/tree-module.mjs +5 -5
  121. package/esm2020/tree/tree.mjs +7 -7
  122. package/esm2020/version.mjs +1 -1
  123. package/fesm2015/a11y.mjs +55 -54
  124. package/fesm2015/a11y.mjs.map +1 -1
  125. package/fesm2015/accordion.mjs +10 -10
  126. package/fesm2015/accordion.mjs.map +1 -1
  127. package/fesm2015/bidi.mjs +10 -10
  128. package/fesm2015/bidi.mjs.map +1 -1
  129. package/fesm2015/cdk.mjs +1 -1
  130. package/fesm2015/cdk.mjs.map +1 -1
  131. package/fesm2015/clipboard.mjs +10 -10
  132. package/fesm2015/clipboard.mjs.map +1 -1
  133. package/fesm2015/collections.mjs +9 -9
  134. package/fesm2015/collections.mjs.map +1 -1
  135. package/fesm2015/dialog.mjs +780 -0
  136. package/fesm2015/dialog.mjs.map +1 -0
  137. package/fesm2015/drag-drop.mjs +57 -50
  138. package/fesm2015/drag-drop.mjs.map +1 -1
  139. package/fesm2015/layout.mjs +10 -10
  140. package/fesm2015/layout.mjs.map +1 -1
  141. package/fesm2015/menu.mjs +1960 -0
  142. package/fesm2015/menu.mjs.map +1 -0
  143. package/fesm2015/observers.mjs +13 -13
  144. package/fesm2015/observers.mjs.map +1 -1
  145. package/fesm2015/overlay.mjs +57 -42
  146. package/fesm2015/overlay.mjs.map +1 -1
  147. package/fesm2015/platform.mjs +10 -10
  148. package/fesm2015/platform.mjs.map +1 -1
  149. package/fesm2015/portal.mjs +21 -17
  150. package/fesm2015/portal.mjs.map +1 -1
  151. package/fesm2015/scrolling.mjs +31 -31
  152. package/fesm2015/scrolling.mjs.map +1 -1
  153. package/fesm2015/stepper.mjs +22 -22
  154. package/fesm2015/stepper.mjs.map +1 -1
  155. package/fesm2015/table.mjs +79 -79
  156. package/fesm2015/table.mjs.map +1 -1
  157. package/fesm2015/testing/selenium-webdriver.mjs.map +1 -1
  158. package/fesm2015/testing.mjs.map +1 -1
  159. package/fesm2015/text-field.mjs +13 -13
  160. package/fesm2015/text-field.mjs.map +1 -1
  161. package/fesm2015/tree.mjs +25 -25
  162. package/fesm2015/tree.mjs.map +1 -1
  163. package/fesm2020/a11y.mjs +55 -54
  164. package/fesm2020/a11y.mjs.map +1 -1
  165. package/fesm2020/accordion.mjs +10 -10
  166. package/fesm2020/accordion.mjs.map +1 -1
  167. package/fesm2020/bidi.mjs +10 -10
  168. package/fesm2020/bidi.mjs.map +1 -1
  169. package/fesm2020/cdk.mjs +1 -1
  170. package/fesm2020/cdk.mjs.map +1 -1
  171. package/fesm2020/clipboard.mjs +10 -10
  172. package/fesm2020/clipboard.mjs.map +1 -1
  173. package/fesm2020/collections.mjs +9 -9
  174. package/fesm2020/collections.mjs.map +1 -1
  175. package/fesm2020/dialog.mjs +784 -0
  176. package/fesm2020/dialog.mjs.map +1 -0
  177. package/fesm2020/drag-drop.mjs +57 -50
  178. package/fesm2020/drag-drop.mjs.map +1 -1
  179. package/fesm2020/layout.mjs +10 -10
  180. package/fesm2020/layout.mjs.map +1 -1
  181. package/fesm2020/menu.mjs +1942 -0
  182. package/fesm2020/menu.mjs.map +1 -0
  183. package/fesm2020/observers.mjs +13 -13
  184. package/fesm2020/observers.mjs.map +1 -1
  185. package/fesm2020/overlay.mjs +57 -42
  186. package/fesm2020/overlay.mjs.map +1 -1
  187. package/fesm2020/platform.mjs +10 -10
  188. package/fesm2020/platform.mjs.map +1 -1
  189. package/fesm2020/portal.mjs +21 -17
  190. package/fesm2020/portal.mjs.map +1 -1
  191. package/fesm2020/scrolling.mjs +31 -31
  192. package/fesm2020/scrolling.mjs.map +1 -1
  193. package/fesm2020/stepper.mjs +22 -22
  194. package/fesm2020/stepper.mjs.map +1 -1
  195. package/fesm2020/table.mjs +79 -79
  196. package/fesm2020/table.mjs.map +1 -1
  197. package/fesm2020/testing/selenium-webdriver.mjs.map +1 -1
  198. package/fesm2020/testing.mjs.map +1 -1
  199. package/fesm2020/text-field.mjs +13 -13
  200. package/fesm2020/text-field.mjs.map +1 -1
  201. package/fesm2020/tree.mjs +25 -25
  202. package/fesm2020/tree.mjs.map +1 -1
  203. package/index.d.ts +6 -8
  204. package/keycodes/index.d.ts +247 -6
  205. package/layout/index.d.ts +91 -8
  206. package/menu/index.d.ts +893 -0
  207. package/observers/index.d.ts +89 -6
  208. package/overlay/_index.scss +4 -0
  209. package/overlay/index.d.ts +1202 -5
  210. package/overlay-prebuilt.css +1 -1
  211. package/package.json +34 -18
  212. package/platform/index.d.ts +104 -6
  213. package/portal/index.d.ts +325 -5
  214. package/schematics/index.d.ts +2 -1
  215. package/schematics/index.js +4 -4
  216. package/schematics/index.mjs +4 -4
  217. package/schematics/ng-add/index.js +1 -1
  218. package/schematics/ng-add/index.mjs +1 -1
  219. package/schematics/ng-generate/drag-drop/schema.json +3 -0
  220. package/schematics/utils/ast/standalone.d.ts +26 -0
  221. package/schematics/utils/ast/standalone.js +191 -0
  222. package/schematics/utils/ast/standalone.mjs +191 -0
  223. package/schematics/utils/ast.js +5 -4
  224. package/schematics/utils/ast.mjs +5 -4
  225. package/schematics/utils/build-component.js +5 -5
  226. package/schematics/utils/build-component.mjs +5 -5
  227. package/schematics/utils/index.d.ts +1 -0
  228. package/schematics/utils/index.js +5 -1
  229. package/schematics/utils/index.mjs +5 -1
  230. package/schematics/utils/schematic-options.js +2 -2
  231. package/schematics/utils/schematic-options.mjs +2 -2
  232. package/scrolling/index.d.ts +647 -6
  233. package/stepper/index.d.ts +328 -6
  234. package/table/index.d.ts +1172 -5
  235. package/testing/index.d.ts +726 -5
  236. package/testing/selenium-webdriver/index.d.ts +134 -8
  237. package/testing/testbed/index.d.ts +161 -8
  238. package/text-field/index.d.ts +175 -6
  239. package/tree/index.d.ts +498 -6
  240. package/a11y/a11y-module.d.ts +0 -12
  241. package/a11y/a11y_public_index.d.ts +0 -4
  242. package/a11y/aria-describer/aria-describer.d.ts +0 -101
  243. package/a11y/aria-describer/aria-reference.d.ts +0 -22
  244. package/a11y/fake-event-detection.d.ts +0 -11
  245. package/a11y/focus-monitor/focus-monitor.d.ts +0 -209
  246. package/a11y/focus-trap/configurable-focus-trap-config.d.ts +0 -16
  247. package/a11y/focus-trap/configurable-focus-trap-factory.d.ts +0 -30
  248. package/a11y/focus-trap/configurable-focus-trap.d.ts +0 -33
  249. package/a11y/focus-trap/event-listener-inert-strategy.d.ts +0 -29
  250. package/a11y/focus-trap/focus-trap-inert-strategy.d.ts +0 -21
  251. package/a11y/focus-trap/focus-trap-manager.d.ts +0 -26
  252. package/a11y/focus-trap/focus-trap.d.ts +0 -163
  253. package/a11y/high-contrast-mode/high-contrast-mode-detector.d.ts +0 -48
  254. package/a11y/input-modality/input-modality-detector.d.ts +0 -99
  255. package/a11y/interactivity-checker/interactivity-checker.d.ts +0 -60
  256. package/a11y/key-manager/activedescendant-key-manager.d.ts +0 -35
  257. package/a11y/key-manager/focus-key-manager.d.ts +0 -37
  258. package/a11y/key-manager/list-key-manager.d.ts +0 -152
  259. package/a11y/live-announcer/live-announcer-tokens.d.ts +0 -22
  260. package/a11y/live-announcer/live-announcer.d.ts +0 -85
  261. package/a11y/package.json +0 -9
  262. package/a11y/public-api.d.ts +0 -25
  263. package/accordion/accordion-item.d.ts +0 -59
  264. package/accordion/accordion-module.d.ts +0 -8
  265. package/accordion/accordion.d.ts +0 -40
  266. package/accordion/accordion_public_index.d.ts +0 -4
  267. package/accordion/package.json +0 -9
  268. package/accordion/public-api.d.ts +0 -10
  269. package/bidi/bidi-module.d.ts +0 -7
  270. package/bidi/bidi_public_index.d.ts +0 -4
  271. package/bidi/dir-document-token.d.ts +0 -26
  272. package/bidi/dir.d.ts +0 -36
  273. package/bidi/directionality.d.ts +0 -26
  274. package/bidi/package.json +0 -9
  275. package/bidi/public-api.d.ts +0 -11
  276. package/clipboard/clipboard-module.d.ts +0 -7
  277. package/clipboard/clipboard.d.ts +0 -28
  278. package/clipboard/clipboard_public_index.d.ts +0 -4
  279. package/clipboard/copy-to-clipboard.d.ts +0 -49
  280. package/clipboard/package.json +0 -9
  281. package/clipboard/pending-copy.d.ts +0 -29
  282. package/clipboard/public-api.d.ts +0 -11
  283. package/coercion/array.d.ts +0 -10
  284. package/coercion/boolean-property.d.ts +0 -14
  285. package/coercion/css-pixel-value.d.ts +0 -9
  286. package/coercion/element.d.ts +0 -13
  287. package/coercion/number-property.d.ts +0 -20
  288. package/coercion/package.json +0 -9
  289. package/coercion/public-api.d.ts +0 -13
  290. package/coercion/string-array.d.ts +0 -25
  291. package/collections/array-data-source.d.ts +0 -16
  292. package/collections/collection-viewer.d.ts +0 -24
  293. package/collections/collections_public_index.d.ts +0 -4
  294. package/collections/data-source.d.ts +0 -30
  295. package/collections/dispose-view-repeater-strategy.d.ts +0 -22
  296. package/collections/package.json +0 -9
  297. package/collections/public-api.d.ts +0 -16
  298. package/collections/recycle-view-repeater-strategy.d.ts +0 -54
  299. package/collections/selection-model.d.ts +0 -95
  300. package/collections/tree-adapter.d.ts +0 -26
  301. package/collections/unique-selection-dispatcher.d.ts +0 -36
  302. package/collections/view-repeater.d.ts +0 -92
  303. package/drag-drop/client-rect.d.ts +0 -38
  304. package/drag-drop/clone-node.d.ts +0 -9
  305. package/drag-drop/directives/assertions.d.ts +0 -13
  306. package/drag-drop/directives/config.d.ts +0 -43
  307. package/drag-drop/directives/drag-handle.d.ts +0 -33
  308. package/drag-drop/directives/drag-placeholder.d.ts +0 -27
  309. package/drag-drop/directives/drag-preview.d.ts +0 -32
  310. package/drag-drop/directives/drag.d.ts +0 -160
  311. package/drag-drop/directives/drop-list-group.d.ts +0 -33
  312. package/drag-drop/directives/drop-list.d.ts +0 -123
  313. package/drag-drop/drag-drop-module.d.ts +0 -13
  314. package/drag-drop/drag-drop-registry.d.ts +0 -89
  315. package/drag-drop/drag-drop.d.ts +0 -36
  316. package/drag-drop/drag-drop_public_index.d.ts +0 -4
  317. package/drag-drop/drag-events.d.ts +0 -124
  318. package/drag-drop/drag-parent.d.ts +0 -15
  319. package/drag-drop/drag-ref.d.ts +0 -448
  320. package/drag-drop/drag-styling.d.ts +0 -42
  321. package/drag-drop/drag-utils.d.ts +0 -32
  322. package/drag-drop/drop-list-ref.d.ts +0 -312
  323. package/drag-drop/package.json +0 -9
  324. package/drag-drop/parent-position-tracker.d.ts +0 -39
  325. package/drag-drop/public-api.d.ts +0 -22
  326. package/drag-drop/transition-duration.d.ts +0 -9
  327. package/keycodes/keycodes.d.ts +0 -126
  328. package/keycodes/keycodes_public_index.d.ts +0 -4
  329. package/keycodes/modifiers.d.ts +0 -14
  330. package/keycodes/package.json +0 -9
  331. package/keycodes/public-api.d.ts +0 -9
  332. package/layout/breakpoints-observer.d.ts +0 -45
  333. package/layout/breakpoints.d.ts +0 -23
  334. package/layout/layout-module.d.ts +0 -6
  335. package/layout/layout_public_index.d.ts +0 -4
  336. package/layout/media-matcher.d.ts +0 -18
  337. package/layout/package.json +0 -9
  338. package/layout/public-api.d.ts +0 -11
  339. package/observers/observe-content.d.ts +0 -87
  340. package/observers/observers_public_index.d.ts +0 -4
  341. package/observers/package.json +0 -9
  342. package/observers/public-api.d.ts +0 -8
  343. package/overlay/dispatchers/base-overlay-dispatcher.d.ts +0 -24
  344. package/overlay/dispatchers/index.d.ts +0 -9
  345. package/overlay/dispatchers/overlay-keyboard-dispatcher.d.ts +0 -24
  346. package/overlay/dispatchers/overlay-outside-click-dispatcher.d.ts +0 -32
  347. package/overlay/fullscreen-overlay-container.d.ts +0 -35
  348. package/overlay/overlay-config.d.ts +0 -47
  349. package/overlay/overlay-container.d.ts +0 -25
  350. package/overlay/overlay-directives.d.ts +0 -148
  351. package/overlay/overlay-module.d.ts +0 -10
  352. package/overlay/overlay-ref.d.ts +0 -144
  353. package/overlay/overlay-reference.d.ts +0 -38
  354. package/overlay/overlay.d.ts +0 -75
  355. package/overlay/overlay_public_index.d.ts +0 -4
  356. package/overlay/package.json +0 -9
  357. package/overlay/position/connected-position.d.ts +0 -102
  358. package/overlay/position/flexible-connected-position-strategy.d.ts +0 -282
  359. package/overlay/position/global-position-strategy.d.ts +0 -99
  360. package/overlay/position/overlay-position-builder.d.ts +0 -32
  361. package/overlay/position/position-strategy.d.ts +0 -19
  362. package/overlay/position/scroll-clip.d.ts +0 -26
  363. package/overlay/public-api.d.ts +0 -23
  364. package/overlay/scroll/block-scroll-strategy.d.ts +0 -27
  365. package/overlay/scroll/close-scroll-strategy.d.ts +0 -40
  366. package/overlay/scroll/index.d.ts +0 -14
  367. package/overlay/scroll/noop-scroll-strategy.d.ts +0 -17
  368. package/overlay/scroll/reposition-scroll-strategy.d.ts +0 -39
  369. package/overlay/scroll/scroll-strategy-options.d.ts +0 -44
  370. package/overlay/scroll/scroll-strategy.d.ts +0 -25
  371. package/platform/features/input-types.d.ts +0 -9
  372. package/platform/features/passive-listeners.d.ts +0 -19
  373. package/platform/features/scrolling.d.ts +0 -32
  374. package/platform/features/shadow-dom.d.ts +0 -18
  375. package/platform/features/test-environment.d.ts +0 -9
  376. package/platform/package.json +0 -9
  377. package/platform/platform-module.d.ts +0 -6
  378. package/platform/platform.d.ts +0 -29
  379. package/platform/platform_public_index.d.ts +0 -4
  380. package/platform/public-api.d.ts +0 -14
  381. package/portal/dom-portal-outlet.d.ts +0 -71
  382. package/portal/package.json +0 -9
  383. package/portal/portal-directives.d.ts +0 -99
  384. package/portal/portal-errors.d.ts +0 -37
  385. package/portal/portal-injector.d.ts +0 -21
  386. package/portal/portal.d.ts +0 -140
  387. package/portal/portal_public_index.d.ts +0 -4
  388. package/portal/public-api.d.ts +0 -11
  389. package/public-api.d.ts +0 -8
  390. package/schematics/utils/vendored-ast-utils/index.d.ts +0 -70
  391. package/schematics/utils/vendored-ast-utils/index.js +0 -480
  392. package/schematics/utils/vendored-ast-utils/index.mjs +0 -480
  393. package/scrolling/fixed-size-virtual-scroll.d.ts +0 -97
  394. package/scrolling/package.json +0 -9
  395. package/scrolling/public-api.d.ts +0 -16
  396. package/scrolling/scroll-dispatcher.d.ts +0 -71
  397. package/scrolling/scrollable.d.ts +0 -85
  398. package/scrolling/scrolling-module.d.ts +0 -19
  399. package/scrolling/scrolling_public_index.d.ts +0 -4
  400. package/scrolling/viewport-ruler.d.ts +0 -63
  401. package/scrolling/virtual-for-of.d.ts +0 -117
  402. package/scrolling/virtual-scroll-repeater.d.ts +0 -16
  403. package/scrolling/virtual-scroll-strategy.d.ts +0 -38
  404. package/scrolling/virtual-scroll-viewport.d.ts +0 -147
  405. package/stepper/package.json +0 -9
  406. package/stepper/public-api.d.ts +0 -12
  407. package/stepper/step-header.d.ts +0 -18
  408. package/stepper/step-label.d.ts +0 -15
  409. package/stepper/stepper-button.d.ts +0 -20
  410. package/stepper/stepper-module.d.ts +0 -11
  411. package/stepper/stepper.d.ts +0 -233
  412. package/stepper/stepper_public_index.d.ts +0 -4
  413. package/table/can-stick.d.ts +0 -34
  414. package/table/cell.d.ts +0 -126
  415. package/table/coalesced-style-scheduler.d.ts +0 -46
  416. package/table/package.json +0 -9
  417. package/table/public-api.d.ts +0 -19
  418. package/table/row.d.ts +0 -175
  419. package/table/sticky-position-listener.d.ts +0 -31
  420. package/table/sticky-styler.d.ts +0 -126
  421. package/table/table-errors.d.ts +0 -48
  422. package/table/table-module.d.ts +0 -11
  423. package/table/table.d.ts +0 -494
  424. package/table/table_public_index.d.ts +0 -4
  425. package/table/text-column.d.ts +0 -73
  426. package/table/tokens.d.ts +0 -25
  427. package/testing/change-detection.d.ts +0 -83
  428. package/testing/component-harness.d.ts +0 -426
  429. package/testing/element-dimensions.d.ts +0 -16
  430. package/testing/harness-environment.d.ts +0 -62
  431. package/testing/package.json +0 -9
  432. package/testing/public-api.d.ts +0 -14
  433. package/testing/selenium-webdriver/package.json +0 -9
  434. package/testing/selenium-webdriver/public-api.d.ts +0 -9
  435. package/testing/selenium-webdriver/selenium-web-driver-element.d.ts +0 -91
  436. package/testing/selenium-webdriver/selenium-web-driver-harness-environment.d.ts +0 -66
  437. package/testing/selenium-webdriver/selenium-webdriver-keys.d.ts +0 -46
  438. package/testing/test-element-errors.d.ts +0 -12
  439. package/testing/test-element.d.ts +0 -135
  440. package/testing/testbed/fake-events/dispatch-events.d.ts +0 -39
  441. package/testing/testbed/fake-events/element-focus.d.ts +0 -18
  442. package/testing/testbed/fake-events/event-objects.d.ts +0 -39
  443. package/testing/testbed/fake-events/index.d.ts +0 -11
  444. package/testing/testbed/fake-events/type-in-element.d.ts +0 -41
  445. package/testing/testbed/package.json +0 -9
  446. package/testing/testbed/proxy-zone-types.d.ts +0 -29
  447. package/testing/testbed/public-api.d.ts +0 -9
  448. package/testing/testbed/task-state-zone-interceptor.d.ts +0 -37
  449. package/testing/testbed/testbed-harness-environment.d.ts +0 -64
  450. package/testing/testbed/unit-test-element.d.ts +0 -98
  451. package/testing/testbed/zone-types.d.ts +0 -22
  452. package/testing/text-filtering.d.ts +0 -13
  453. package/text-field/autofill.d.ts +0 -66
  454. package/text-field/autosize.d.ts +0 -95
  455. package/text-field/package.json +0 -9
  456. package/text-field/public-api.d.ts +0 -10
  457. package/text-field/text-field-module.d.ts +0 -8
  458. package/text-field/text-field_public_index.d.ts +0 -4
  459. package/tree/control/base-tree-control.d.ts +0 -54
  460. package/tree/control/flat-tree-control.d.ts +0 -34
  461. package/tree/control/nested-tree-control.d.ts +0 -31
  462. package/tree/control/tree-control.d.ts +0 -49
  463. package/tree/nested-node.d.ts +0 -38
  464. package/tree/node.d.ts +0 -40
  465. package/tree/outlet.d.ts +0 -26
  466. package/tree/package.json +0 -9
  467. package/tree/padding.d.ts +0 -60
  468. package/tree/public-api.d.ts +0 -19
  469. package/tree/toggle.d.ts +0 -25
  470. package/tree/tree-errors.d.ts +0 -32
  471. package/tree/tree-module.d.ts +0 -12
  472. package/tree/tree.d.ts +0 -128
  473. package/tree/tree_public_index.d.ts +0 -4
  474. package/version.d.ts +0 -10
package/table/table.d.ts DELETED
@@ -1,494 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { Directionality } from '@angular/cdk/bidi';
9
- import { BooleanInput } from '@angular/cdk/coercion';
10
- import { CollectionViewer, DataSource, _ViewRepeater } from '@angular/cdk/collections';
11
- import { Platform } from '@angular/cdk/platform';
12
- import { ViewportRuler } from '@angular/cdk/scrolling';
13
- import { AfterContentChecked, ChangeDetectorRef, ElementRef, EventEmitter, IterableDiffers, NgZone, OnDestroy, OnInit, QueryList, TrackByFunction, ViewContainerRef } from '@angular/core';
14
- import { BehaviorSubject, Observable } from 'rxjs';
15
- import { CdkColumnDef } from './cell';
16
- import { _CoalescedStyleScheduler } from './coalesced-style-scheduler';
17
- import { CdkCellOutletMultiRowContext, CdkCellOutletRowContext, CdkFooterRowDef, CdkHeaderRowDef, CdkNoDataRow, CdkRowDef } from './row';
18
- import { StickyPositioningListener } from './sticky-position-listener';
19
- import * as i0 from "@angular/core";
20
- /**
21
- * Enables the recycle view repeater strategy, which reduces rendering latency. Not compatible with
22
- * tables that animate rows.
23
- */
24
- export declare class CdkRecycleRows {
25
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkRecycleRows, never>;
26
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkRecycleRows, "cdk-table[recycleRows], table[cdk-table][recycleRows]", never, {}, {}, never>;
27
- }
28
- /** Interface used to provide an outlet for rows to be inserted into. */
29
- export interface RowOutlet {
30
- viewContainer: ViewContainerRef;
31
- }
32
- /**
33
- * Union of the types that can be set as the data source for a `CdkTable`.
34
- * @docs-private
35
- */
36
- declare type CdkTableDataSourceInput<T> = readonly T[] | DataSource<T> | Observable<readonly T[]>;
37
- /**
38
- * Provides a handle for the table to grab the view container's ng-container to insert data rows.
39
- * @docs-private
40
- */
41
- export declare class DataRowOutlet implements RowOutlet {
42
- viewContainer: ViewContainerRef;
43
- elementRef: ElementRef;
44
- constructor(viewContainer: ViewContainerRef, elementRef: ElementRef);
45
- static ɵfac: i0.ɵɵFactoryDeclaration<DataRowOutlet, never>;
46
- static ɵdir: i0.ɵɵDirectiveDeclaration<DataRowOutlet, "[rowOutlet]", never, {}, {}, never>;
47
- }
48
- /**
49
- * Provides a handle for the table to grab the view container's ng-container to insert the header.
50
- * @docs-private
51
- */
52
- export declare class HeaderRowOutlet implements RowOutlet {
53
- viewContainer: ViewContainerRef;
54
- elementRef: ElementRef;
55
- constructor(viewContainer: ViewContainerRef, elementRef: ElementRef);
56
- static ɵfac: i0.ɵɵFactoryDeclaration<HeaderRowOutlet, never>;
57
- static ɵdir: i0.ɵɵDirectiveDeclaration<HeaderRowOutlet, "[headerRowOutlet]", never, {}, {}, never>;
58
- }
59
- /**
60
- * Provides a handle for the table to grab the view container's ng-container to insert the footer.
61
- * @docs-private
62
- */
63
- export declare class FooterRowOutlet implements RowOutlet {
64
- viewContainer: ViewContainerRef;
65
- elementRef: ElementRef;
66
- constructor(viewContainer: ViewContainerRef, elementRef: ElementRef);
67
- static ɵfac: i0.ɵɵFactoryDeclaration<FooterRowOutlet, never>;
68
- static ɵdir: i0.ɵɵDirectiveDeclaration<FooterRowOutlet, "[footerRowOutlet]", never, {}, {}, never>;
69
- }
70
- /**
71
- * Provides a handle for the table to grab the view
72
- * container's ng-container to insert the no data row.
73
- * @docs-private
74
- */
75
- export declare class NoDataRowOutlet implements RowOutlet {
76
- viewContainer: ViewContainerRef;
77
- elementRef: ElementRef;
78
- constructor(viewContainer: ViewContainerRef, elementRef: ElementRef);
79
- static ɵfac: i0.ɵɵFactoryDeclaration<NoDataRowOutlet, never>;
80
- static ɵdir: i0.ɵɵDirectiveDeclaration<NoDataRowOutlet, "[noDataRowOutlet]", never, {}, {}, never>;
81
- }
82
- /**
83
- * The table template that can be used by the mat-table. Should not be used outside of the
84
- * material library.
85
- * @docs-private
86
- */
87
- export declare const CDK_TABLE_TEMPLATE = "\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";
88
- /**
89
- * Interface used to conveniently type the possible context interfaces for the render row.
90
- * @docs-private
91
- */
92
- export interface RowContext<T> extends CdkCellOutletMultiRowContext<T>, CdkCellOutletRowContext<T> {
93
- }
94
- /**
95
- * Set of properties that represents the identity of a single rendered row.
96
- *
97
- * When the table needs to determine the list of rows to render, it will do so by iterating through
98
- * each data object and evaluating its list of row templates to display (when multiTemplateDataRows
99
- * is false, there is only one template per data object). For each pair of data object and row
100
- * template, a `RenderRow` is added to the list of rows to render. If the data object and row
101
- * template pair has already been rendered, the previously used `RenderRow` is added; else a new
102
- * `RenderRow` is * created. Once the list is complete and all data objects have been itereated
103
- * through, a diff is performed to determine the changes that need to be made to the rendered rows.
104
- *
105
- * @docs-private
106
- */
107
- export interface RenderRow<T> {
108
- data: T;
109
- dataIndex: number;
110
- rowDef: CdkRowDef<T>;
111
- }
112
- /**
113
- * A data table that can render a header row, data rows, and a footer row.
114
- * Uses the dataSource input to determine the data to be rendered. The data can be provided either
115
- * as a data array, an Observable stream that emits the data array to render, or a DataSource with a
116
- * connect function that will return an Observable stream that emits the data array to render.
117
- */
118
- export declare class CdkTable<T> implements AfterContentChecked, CollectionViewer, OnDestroy, OnInit {
119
- protected readonly _differs: IterableDiffers;
120
- protected readonly _changeDetectorRef: ChangeDetectorRef;
121
- protected readonly _elementRef: ElementRef;
122
- protected readonly _dir: Directionality;
123
- private _platform;
124
- protected readonly _viewRepeater: _ViewRepeater<T, RenderRow<T>, RowContext<T>>;
125
- protected readonly _coalescedStyleScheduler: _CoalescedStyleScheduler;
126
- private readonly _viewportRuler;
127
- /**
128
- * @deprecated `_stickyPositioningListener` parameter to become required.
129
- * @breaking-change 13.0.0
130
- */
131
- protected readonly _stickyPositioningListener: StickyPositioningListener;
132
- /**
133
- * @deprecated `_ngZone` parameter to become required.
134
- * @breaking-change 14.0.0
135
- */
136
- protected readonly _ngZone?: NgZone | undefined;
137
- private _document;
138
- /** Latest data provided by the data source. */
139
- protected _data: readonly T[];
140
- /** Subject that emits when the component has been destroyed. */
141
- private readonly _onDestroy;
142
- /** List of the rendered rows as identified by their `RenderRow` object. */
143
- private _renderRows;
144
- /** Subscription that listens for the data provided by the data source. */
145
- private _renderChangeSubscription;
146
- /**
147
- * Map of all the user's defined columns (header, data, and footer cell template) identified by
148
- * name. Collection populated by the column definitions gathered by `ContentChildren` as well as
149
- * any custom column definitions added to `_customColumnDefs`.
150
- */
151
- private _columnDefsByName;
152
- /**
153
- * Set of all row definitions that can be used by this table. Populated by the rows gathered by
154
- * using `ContentChildren` as well as any custom row definitions added to `_customRowDefs`.
155
- */
156
- private _rowDefs;
157
- /**
158
- * Set of all header row definitions that can be used by this table. Populated by the rows
159
- * gathered by using `ContentChildren` as well as any custom row definitions added to
160
- * `_customHeaderRowDefs`.
161
- */
162
- private _headerRowDefs;
163
- /**
164
- * Set of all row definitions that can be used by this table. Populated by the rows gathered by
165
- * using `ContentChildren` as well as any custom row definitions added to
166
- * `_customFooterRowDefs`.
167
- */
168
- private _footerRowDefs;
169
- /** Differ used to find the changes in the data provided by the data source. */
170
- private _dataDiffer;
171
- /** Stores the row definition that does not have a when predicate. */
172
- private _defaultRowDef;
173
- /**
174
- * Column definitions that were defined outside of the direct content children of the table.
175
- * These will be defined when, e.g., creating a wrapper around the cdkTable that has
176
- * column definitions as *its* content child.
177
- */
178
- private _customColumnDefs;
179
- /**
180
- * Data row definitions that were defined outside of the direct content children of the table.
181
- * These will be defined when, e.g., creating a wrapper around the cdkTable that has
182
- * built-in data rows as *its* content child.
183
- */
184
- private _customRowDefs;
185
- /**
186
- * Header row definitions that were defined outside of the direct content children of the table.
187
- * These will be defined when, e.g., creating a wrapper around the cdkTable that has
188
- * built-in header rows as *its* content child.
189
- */
190
- private _customHeaderRowDefs;
191
- /**
192
- * Footer row definitions that were defined outside of the direct content children of the table.
193
- * These will be defined when, e.g., creating a wrapper around the cdkTable that has a
194
- * built-in footer row as *its* content child.
195
- */
196
- private _customFooterRowDefs;
197
- /** No data row that was defined outside of the direct content children of the table. */
198
- private _customNoDataRow;
199
- /**
200
- * Whether the header row definition has been changed. Triggers an update to the header row after
201
- * content is checked. Initialized as true so that the table renders the initial set of rows.
202
- */
203
- private _headerRowDefChanged;
204
- /**
205
- * Whether the footer row definition has been changed. Triggers an update to the footer row after
206
- * content is checked. Initialized as true so that the table renders the initial set of rows.
207
- */
208
- private _footerRowDefChanged;
209
- /**
210
- * Whether the sticky column styles need to be updated. Set to `true` when the visible columns
211
- * change.
212
- */
213
- private _stickyColumnStylesNeedReset;
214
- /**
215
- * Whether the sticky styler should recalculate cell widths when applying sticky styles. If
216
- * `false`, cached values will be used instead. This is only applicable to tables with
217
- * {@link fixedLayout} enabled. For other tables, cell widths will always be recalculated.
218
- */
219
- private _forceRecalculateCellWidths;
220
- /**
221
- * Cache of the latest rendered `RenderRow` objects as a map for easy retrieval when constructing
222
- * a new list of `RenderRow` objects for rendering rows. Since the new list is constructed with
223
- * the cached `RenderRow` objects when possible, the row identity is preserved when the data
224
- * and row template matches, which allows the `IterableDiffer` to check rows by reference
225
- * and understand which rows are added/moved/removed.
226
- *
227
- * Implemented as a map of maps where the first key is the `data: T` object and the second is the
228
- * `CdkRowDef<T>` object. With the two keys, the cache points to a `RenderRow<T>` object that
229
- * contains an array of created pairs. The array is necessary to handle cases where the data
230
- * array contains multiple duplicate data objects and each instantiated `RenderRow` must be
231
- * stored.
232
- */
233
- private _cachedRenderRowsMap;
234
- /** Whether the table is applied to a native `<table>`. */
235
- protected _isNativeHtmlTable: boolean;
236
- /**
237
- * Utility class that is responsible for applying the appropriate sticky positioning styles to
238
- * the table's rows and cells.
239
- */
240
- private _stickyStyler;
241
- /**
242
- * CSS class added to any row or cell that has sticky positioning applied. May be overriden by
243
- * table subclasses.
244
- */
245
- protected stickyCssClass: string;
246
- /**
247
- * Whether to manually add positon: sticky to all sticky cell elements. Not needed if
248
- * the position is set in a selector associated with the value of stickyCssClass. May be
249
- * overridden by table subclasses
250
- */
251
- protected needsPositionStickyOnElement: boolean;
252
- /** Whether the no data row is currently showing anything. */
253
- private _isShowingNoDataRow;
254
- /**
255
- * Tracking function that will be used to check the differences in data changes. Used similarly
256
- * to `ngFor` `trackBy` function. Optimize row operations by identifying a row based on its data
257
- * relative to the function to know if a row should be added/removed/moved.
258
- * Accepts a function that takes two parameters, `index` and `item`.
259
- */
260
- get trackBy(): TrackByFunction<T>;
261
- set trackBy(fn: TrackByFunction<T>);
262
- private _trackByFn;
263
- /**
264
- * The table's source of data, which can be provided in three ways (in order of complexity):
265
- * - Simple data array (each object represents one table row)
266
- * - Stream that emits a data array each time the array changes
267
- * - `DataSource` object that implements the connect/disconnect interface.
268
- *
269
- * If a data array is provided, the table must be notified when the array's objects are
270
- * added, removed, or moved. This can be done by calling the `renderRows()` function which will
271
- * render the diff since the last table render. If the data array reference is changed, the table
272
- * will automatically trigger an update to the rows.
273
- *
274
- * When providing an Observable stream, the table will trigger an update automatically when the
275
- * stream emits a new array of data.
276
- *
277
- * Finally, when providing a `DataSource` object, the table will use the Observable stream
278
- * provided by the connect function and trigger updates when that stream emits new data array
279
- * values. During the table's ngOnDestroy or when the data source is removed from the table, the
280
- * table will call the DataSource's `disconnect` function (may be useful for cleaning up any
281
- * subscriptions registered during the connect process).
282
- */
283
- get dataSource(): CdkTableDataSourceInput<T>;
284
- set dataSource(dataSource: CdkTableDataSourceInput<T>);
285
- private _dataSource;
286
- /**
287
- * Whether to allow multiple rows per data object by evaluating which rows evaluate their 'when'
288
- * predicate to true. If `multiTemplateDataRows` is false, which is the default value, then each
289
- * dataobject will render the first row that evaluates its when predicate to true, in the order
290
- * defined in the table, or otherwise the default row which does not have a when predicate.
291
- */
292
- get multiTemplateDataRows(): boolean;
293
- set multiTemplateDataRows(v: BooleanInput);
294
- _multiTemplateDataRows: boolean;
295
- /**
296
- * Whether to use a fixed table layout. Enabling this option will enforce consistent column widths
297
- * and optimize rendering sticky styles for native tables. No-op for flex tables.
298
- */
299
- get fixedLayout(): boolean;
300
- set fixedLayout(v: BooleanInput);
301
- private _fixedLayout;
302
- /**
303
- * Emits when the table completes rendering a set of data rows based on the latest data from the
304
- * data source, even if the set of rows is empty.
305
- */
306
- readonly contentChanged: EventEmitter<void>;
307
- /**
308
- * Stream containing the latest information on what rows are being displayed on screen.
309
- * Can be used by the data source to as a heuristic of what data should be provided.
310
- *
311
- * @docs-private
312
- */
313
- readonly viewChange: BehaviorSubject<{
314
- start: number;
315
- end: number;
316
- }>;
317
- _rowOutlet: DataRowOutlet;
318
- _headerRowOutlet: HeaderRowOutlet;
319
- _footerRowOutlet: FooterRowOutlet;
320
- _noDataRowOutlet: NoDataRowOutlet;
321
- /**
322
- * The column definitions provided by the user that contain what the header, data, and footer
323
- * cells should render for each column.
324
- */
325
- _contentColumnDefs: QueryList<CdkColumnDef>;
326
- /** Set of data row definitions that were provided to the table as content children. */
327
- _contentRowDefs: QueryList<CdkRowDef<T>>;
328
- /** Set of header row definitions that were provided to the table as content children. */
329
- _contentHeaderRowDefs: QueryList<CdkHeaderRowDef>;
330
- /** Set of footer row definitions that were provided to the table as content children. */
331
- _contentFooterRowDefs: QueryList<CdkFooterRowDef>;
332
- /** Row definition that will only be rendered if there's no data in the table. */
333
- _noDataRow: CdkNoDataRow;
334
- constructor(_differs: IterableDiffers, _changeDetectorRef: ChangeDetectorRef, _elementRef: ElementRef, role: string, _dir: Directionality, _document: any, _platform: Platform, _viewRepeater: _ViewRepeater<T, RenderRow<T>, RowContext<T>>, _coalescedStyleScheduler: _CoalescedStyleScheduler, _viewportRuler: ViewportRuler,
335
- /**
336
- * @deprecated `_stickyPositioningListener` parameter to become required.
337
- * @breaking-change 13.0.0
338
- */
339
- _stickyPositioningListener: StickyPositioningListener,
340
- /**
341
- * @deprecated `_ngZone` parameter to become required.
342
- * @breaking-change 14.0.0
343
- */
344
- _ngZone?: NgZone | undefined);
345
- ngOnInit(): void;
346
- ngAfterContentChecked(): void;
347
- ngOnDestroy(): void;
348
- /**
349
- * Renders rows based on the table's latest set of data, which was either provided directly as an
350
- * input or retrieved through an Observable stream (directly or from a DataSource).
351
- * Checks for differences in the data since the last diff to perform only the necessary
352
- * changes (add/remove/move rows).
353
- *
354
- * If the table's data source is a DataSource or Observable, this will be invoked automatically
355
- * each time the provided Observable stream emits a new data array. Otherwise if your data is
356
- * an array, this function will need to be called to render any changes.
357
- */
358
- renderRows(): void;
359
- /** Adds a column definition that was not included as part of the content children. */
360
- addColumnDef(columnDef: CdkColumnDef): void;
361
- /** Removes a column definition that was not included as part of the content children. */
362
- removeColumnDef(columnDef: CdkColumnDef): void;
363
- /** Adds a row definition that was not included as part of the content children. */
364
- addRowDef(rowDef: CdkRowDef<T>): void;
365
- /** Removes a row definition that was not included as part of the content children. */
366
- removeRowDef(rowDef: CdkRowDef<T>): void;
367
- /** Adds a header row definition that was not included as part of the content children. */
368
- addHeaderRowDef(headerRowDef: CdkHeaderRowDef): void;
369
- /** Removes a header row definition that was not included as part of the content children. */
370
- removeHeaderRowDef(headerRowDef: CdkHeaderRowDef): void;
371
- /** Adds a footer row definition that was not included as part of the content children. */
372
- addFooterRowDef(footerRowDef: CdkFooterRowDef): void;
373
- /** Removes a footer row definition that was not included as part of the content children. */
374
- removeFooterRowDef(footerRowDef: CdkFooterRowDef): void;
375
- /** Sets a no data row definition that was not included as a part of the content children. */
376
- setNoDataRow(noDataRow: CdkNoDataRow | null): void;
377
- /**
378
- * Updates the header sticky styles. First resets all applied styles with respect to the cells
379
- * sticking to the top. Then, evaluating which cells need to be stuck to the top. This is
380
- * automatically called when the header row changes its displayed set of columns, or if its
381
- * sticky input changes. May be called manually for cases where the cell content changes outside
382
- * of these events.
383
- */
384
- updateStickyHeaderRowStyles(): void;
385
- /**
386
- * Updates the footer sticky styles. First resets all applied styles with respect to the cells
387
- * sticking to the bottom. Then, evaluating which cells need to be stuck to the bottom. This is
388
- * automatically called when the footer row changes its displayed set of columns, or if its
389
- * sticky input changes. May be called manually for cases where the cell content changes outside
390
- * of these events.
391
- */
392
- updateStickyFooterRowStyles(): void;
393
- /**
394
- * Updates the column sticky styles. First resets all applied styles with respect to the cells
395
- * sticking to the left and right. Then sticky styles are added for the left and right according
396
- * to the column definitions for each cell in each row. This is automatically called when
397
- * the data source provides a new set of data or when a column definition changes its sticky
398
- * input. May be called manually for cases where the cell content changes outside of these events.
399
- */
400
- updateStickyColumnStyles(): void;
401
- /**
402
- * Get the list of RenderRow objects to render according to the current list of data and defined
403
- * row definitions. If the previous list already contained a particular pair, it should be reused
404
- * so that the differ equates their references.
405
- */
406
- private _getAllRenderRows;
407
- /**
408
- * Gets a list of `RenderRow<T>` for the provided data object and any `CdkRowDef` objects that
409
- * should be rendered for this data. Reuses the cached RenderRow objects if they match the same
410
- * `(T, CdkRowDef)` pair.
411
- */
412
- private _getRenderRowsForData;
413
- /** Update the map containing the content's column definitions. */
414
- private _cacheColumnDefs;
415
- /** Update the list of all available row definitions that can be used. */
416
- private _cacheRowDefs;
417
- /**
418
- * Check if the header, data, or footer rows have changed what columns they want to display or
419
- * whether the sticky states have changed for the header or footer. If there is a diff, then
420
- * re-render that section.
421
- */
422
- private _renderUpdatedColumns;
423
- /**
424
- * Switch to the provided data source by resetting the data and unsubscribing from the current
425
- * render change subscription if one exists. If the data source is null, interpret this by
426
- * clearing the row outlet. Otherwise start listening for new data.
427
- */
428
- private _switchDataSource;
429
- /** Set up a subscription for the data provided by the data source. */
430
- private _observeRenderChanges;
431
- /**
432
- * Clears any existing content in the header row outlet and creates a new embedded view
433
- * in the outlet using the header row definition.
434
- */
435
- private _forceRenderHeaderRows;
436
- /**
437
- * Clears any existing content in the footer row outlet and creates a new embedded view
438
- * in the outlet using the footer row definition.
439
- */
440
- private _forceRenderFooterRows;
441
- /** Adds the sticky column styles for the rows according to the columns' stick states. */
442
- private _addStickyColumnStyles;
443
- /** Gets the list of rows that have been rendered in the row outlet. */
444
- _getRenderedRows(rowOutlet: RowOutlet): HTMLElement[];
445
- /**
446
- * Get the matching row definitions that should be used for this row data. If there is only
447
- * one row definition, it is returned. Otherwise, find the row definitions that has a when
448
- * predicate that returns true with the data. If none return true, return the default row
449
- * definition.
450
- */
451
- _getRowDefs(data: T, dataIndex: number): CdkRowDef<T>[];
452
- private _getEmbeddedViewArgs;
453
- /**
454
- * Creates a new row template in the outlet and fills it with the set of cell templates.
455
- * Optionally takes a context to provide to the row and cells, as well as an optional index
456
- * of where to place the new row template in the outlet.
457
- */
458
- private _renderRow;
459
- private _renderCellTemplateForItem;
460
- /**
461
- * Updates the index-related context for each row to reflect any changes in the index of the rows,
462
- * e.g. first/last/even/odd.
463
- */
464
- private _updateRowIndexContext;
465
- /** Gets the column definitions for the provided row def. */
466
- private _getCellTemplates;
467
- /** Adds native table sections (e.g. tbody) and moves the row outlets into them. */
468
- private _applyNativeTableSections;
469
- /**
470
- * Forces a re-render of the data rows. Should be called in cases where there has been an input
471
- * change that affects the evaluation of which rows should be rendered, e.g. toggling
472
- * `multiTemplateDataRows` or adding/removing row definitions.
473
- */
474
- private _forceRenderDataRows;
475
- /**
476
- * Checks if there has been a change in sticky states since last check and applies the correct
477
- * sticky styles. Since checking resets the "dirty" state, this should only be performed once
478
- * during a change detection and after the inputs are settled (after content check).
479
- */
480
- private _checkStickyStates;
481
- /**
482
- * Creates the sticky styler that will be used for sticky rows and columns. Listens
483
- * for directionality changes and provides the latest direction to the styler. Re-applies column
484
- * stickiness when directionality changes.
485
- */
486
- private _setupStickyStyler;
487
- /** Filters definitions that belong to this table from a QueryList. */
488
- private _getOwnDefs;
489
- /** Creates or removes the no data row, depending on whether any data is being shown. */
490
- private _updateNoDataRow;
491
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkTable<any>, [null, null, null, { attribute: "role"; }, { optional: true; }, null, null, null, null, null, { optional: true; skipSelf: true; }, { optional: true; }]>;
492
- static ɵcmp: i0.ɵɵComponentDeclaration<CdkTable<any>, "cdk-table, table[cdk-table]", ["cdkTable"], { "trackBy": "trackBy"; "dataSource": "dataSource"; "multiTemplateDataRows": "multiTemplateDataRows"; "fixedLayout": "fixedLayout"; }, { "contentChanged": "contentChanged"; }, ["_noDataRow", "_contentColumnDefs", "_contentRowDefs", "_contentHeaderRowDefs", "_contentFooterRowDefs"], ["caption", "colgroup, col"]>;
493
- }
494
- export {};
@@ -1,4 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
@@ -1,73 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { OnDestroy, OnInit } from '@angular/core';
9
- import { CdkCellDef, CdkColumnDef, CdkHeaderCellDef } from './cell';
10
- import { CdkTable } from './table';
11
- import { TextColumnOptions } from './tokens';
12
- import * as i0 from "@angular/core";
13
- /**
14
- * Column that simply shows text content for the header and row cells. Assumes that the table
15
- * is using the native table implementation (`<table>`).
16
- *
17
- * By default, the name of this column will be the header text and data property accessor.
18
- * The header text can be overridden with the `headerText` input. Cell values can be overridden with
19
- * the `dataAccessor` input. Change the text justification to the start or end using the `justify`
20
- * input.
21
- */
22
- export declare class CdkTextColumn<T> implements OnDestroy, OnInit {
23
- private _table;
24
- private _options;
25
- /** Column name that should be used to reference this column. */
26
- get name(): string;
27
- set name(name: string);
28
- _name: string;
29
- /**
30
- * Text label that should be used for the column header. If this property is not
31
- * set, the header text will default to the column name with its first letter capitalized.
32
- */
33
- headerText: string;
34
- /**
35
- * Accessor function to retrieve the data rendered for each cell. If this
36
- * property is not set, the data cells will render the value found in the data's property matching
37
- * the column's name. For example, if the column is named `id`, then the rendered value will be
38
- * value defined by the data's `id` property.
39
- */
40
- dataAccessor: (data: T, name: string) => string;
41
- /** Alignment of the cell values. */
42
- justify: 'start' | 'end' | 'center';
43
- /** @docs-private */
44
- columnDef: CdkColumnDef;
45
- /**
46
- * The column cell is provided to the column during `ngOnInit` with a static query.
47
- * Normally, this will be retrieved by the column using `ContentChild`, but that assumes the
48
- * column definition was provided in the same view as the table, which is not the case with this
49
- * component.
50
- * @docs-private
51
- */
52
- cell: CdkCellDef;
53
- /**
54
- * The column headerCell is provided to the column during `ngOnInit` with a static query.
55
- * Normally, this will be retrieved by the column using `ContentChild`, but that assumes the
56
- * column definition was provided in the same view as the table, which is not the case with this
57
- * component.
58
- * @docs-private
59
- */
60
- headerCell: CdkHeaderCellDef;
61
- constructor(_table: CdkTable<T>, _options: TextColumnOptions<T>);
62
- ngOnInit(): void;
63
- ngOnDestroy(): void;
64
- /**
65
- * Creates a default header text. Use the options' header text transformation function if one
66
- * has been provided. Otherwise simply capitalize the column name.
67
- */
68
- _createDefaultHeaderText(): string;
69
- /** Synchronizes the column definition name with the text column name. */
70
- private _syncColumnDefName;
71
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkTextColumn<any>, [{ optional: true; }, { optional: true; }]>;
72
- static ɵcmp: i0.ɵɵComponentDeclaration<CdkTextColumn<any>, "cdk-text-column", never, { "name": "name"; "headerText": "headerText"; "dataAccessor": "dataAccessor"; "justify": "justify"; }, {}, never, never>;
73
- }
package/table/tokens.d.ts DELETED
@@ -1,25 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { InjectionToken } from '@angular/core';
9
- /**
10
- * Used to provide a table to some of the sub-components without causing a circular dependency.
11
- * @docs-private
12
- */
13
- export declare const CDK_TABLE: InjectionToken<any>;
14
- /** Configurable options for `CdkTextColumn`. */
15
- export interface TextColumnOptions<T> {
16
- /**
17
- * Default function that provides the header text based on the column name if a header
18
- * text is not provided.
19
- */
20
- defaultHeaderTextTransform?: (name: string) => string;
21
- /** Default data accessor to use if one is not provided. */
22
- defaultDataAccessor?: (data: T, name: string) => string;
23
- }
24
- /** Injection token that can be used to specify the text column options. */
25
- export declare const TEXT_COLUMN_OPTIONS: InjectionToken<TextColumnOptions<any>>;