@dugararchit/cdk 0.0.0-dugararchit

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 (206) hide show
  1. package/_index.scss +8 -0
  2. package/a11y/_index.import.scss +2 -0
  3. package/a11y/_index.scss +102 -0
  4. package/a11y/a11y-prebuilt.scss +3 -0
  5. package/fesm2022/stagefright5-cdk-a11y.mjs +2381 -0
  6. package/fesm2022/stagefright5-cdk-a11y.mjs.map +1 -0
  7. package/fesm2022/stagefright5-cdk-accordion.mjs +267 -0
  8. package/fesm2022/stagefright5-cdk-accordion.mjs.map +1 -0
  9. package/fesm2022/stagefright5-cdk-bidi.mjs +185 -0
  10. package/fesm2022/stagefright5-cdk-bidi.mjs.map +1 -0
  11. package/fesm2022/stagefright5-cdk-clipboard.mjs +250 -0
  12. package/fesm2022/stagefright5-cdk-clipboard.mjs.map +1 -0
  13. package/fesm2022/stagefright5-cdk-coercion.mjs +128 -0
  14. package/fesm2022/stagefright5-cdk-coercion.mjs.map +1 -0
  15. package/fesm2022/stagefright5-cdk-collections.mjs +472 -0
  16. package/fesm2022/stagefright5-cdk-collections.mjs.map +1 -0
  17. package/fesm2022/stagefright5-cdk-drag-drop.mjs +3690 -0
  18. package/fesm2022/stagefright5-cdk-drag-drop.mjs.map +1 -0
  19. package/fesm2022/stagefright5-cdk-keycodes.mjs +159 -0
  20. package/fesm2022/stagefright5-cdk-keycodes.mjs.map +1 -0
  21. package/fesm2022/stagefright5-cdk-layout.mjs +246 -0
  22. package/fesm2022/stagefright5-cdk-layout.mjs.map +1 -0
  23. package/fesm2022/stagefright5-cdk-observers.mjs +203 -0
  24. package/fesm2022/stagefright5-cdk-observers.mjs.map +1 -0
  25. package/fesm2022/stagefright5-cdk-overlay.mjs +3033 -0
  26. package/fesm2022/stagefright5-cdk-overlay.mjs.map +1 -0
  27. package/fesm2022/stagefright5-cdk-platform.mjs +375 -0
  28. package/fesm2022/stagefright5-cdk-platform.mjs.map +1 -0
  29. package/fesm2022/stagefright5-cdk-portal.mjs +672 -0
  30. package/fesm2022/stagefright5-cdk-portal.mjs.map +1 -0
  31. package/fesm2022/stagefright5-cdk-scrolling.mjs +1399 -0
  32. package/fesm2022/stagefright5-cdk-scrolling.mjs.map +1 -0
  33. package/fesm2022/stagefright5-cdk-stepper.mjs +624 -0
  34. package/fesm2022/stagefright5-cdk-stepper.mjs.map +1 -0
  35. package/fesm2022/stagefright5-cdk-table.mjs +2346 -0
  36. package/fesm2022/stagefright5-cdk-table.mjs.map +1 -0
  37. package/fesm2022/stagefright5-cdk-testing-protractor.mjs +324 -0
  38. package/fesm2022/stagefright5-cdk-testing-protractor.mjs.map +1 -0
  39. package/fesm2022/stagefright5-cdk-testing-selenium-webdriver.mjs +364 -0
  40. package/fesm2022/stagefright5-cdk-testing-selenium-webdriver.mjs.map +1 -0
  41. package/fesm2022/stagefright5-cdk-testing-testbed.mjs +806 -0
  42. package/fesm2022/stagefright5-cdk-testing-testbed.mjs.map +1 -0
  43. package/fesm2022/stagefright5-cdk-testing.mjs +740 -0
  44. package/fesm2022/stagefright5-cdk-testing.mjs.map +1 -0
  45. package/fesm2022/stagefright5-cdk-text-field.mjs +453 -0
  46. package/fesm2022/stagefright5-cdk-text-field.mjs.map +1 -0
  47. package/fesm2022/stagefright5-cdk-tree.mjs +945 -0
  48. package/fesm2022/stagefright5-cdk-tree.mjs.map +1 -0
  49. package/fesm2022/stagefright5-cdk.mjs +26 -0
  50. package/fesm2022/stagefright5-cdk.mjs.map +1 -0
  51. package/overlay/_index-deprecated.scss +13 -0
  52. package/overlay/_index.import.scss +13 -0
  53. package/overlay/_index.scss +148 -0
  54. package/overlay/overlay-prebuilt.scss +3 -0
  55. package/package.json +159 -0
  56. package/schematics/ng-update/test-cases/misc/global-stylesheets-test.scss +3 -0
  57. package/schematics/schematics/BUILD.bazel +104 -0
  58. package/schematics/schematics/README.md +4 -0
  59. package/schematics/schematics/collection.json +18 -0
  60. package/schematics/schematics/index.ts +22 -0
  61. package/schematics/schematics/migration.json +50 -0
  62. package/schematics/schematics/ng-add/index.spec.ts +50 -0
  63. package/schematics/schematics/ng-add/index.ts +39 -0
  64. package/schematics/schematics/ng-add/package-config.ts +62 -0
  65. package/schematics/schematics/ng-add/schema.json +16 -0
  66. package/schematics/schematics/ng-add/schema.ts +12 -0
  67. package/schematics/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.__style__.template +53 -0
  68. package/schematics/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +17 -0
  69. package/schematics/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +29 -0
  70. package/schematics/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +43 -0
  71. package/schematics/schematics/ng-generate/drag-drop/index.spec.ts +205 -0
  72. package/schematics/schematics/ng-generate/drag-drop/index.ts +35 -0
  73. package/schematics/schematics/ng-generate/drag-drop/schema.json +93 -0
  74. package/schematics/schematics/ng-generate/drag-drop/schema.ts +11 -0
  75. package/schematics/schematics/ng-update/data/attribute-selectors.ts +29 -0
  76. package/schematics/schematics/ng-update/data/class-names.ts +50 -0
  77. package/schematics/schematics/ng-update/data/constructor-checks.ts +75 -0
  78. package/schematics/schematics/ng-update/data/css-selectors.ts +33 -0
  79. package/schematics/schematics/ng-update/data/element-selectors.ts +21 -0
  80. package/schematics/schematics/ng-update/data/index.ts +18 -0
  81. package/schematics/schematics/ng-update/data/input-names.ts +118 -0
  82. package/schematics/schematics/ng-update/data/method-call-checks.ts +63 -0
  83. package/schematics/schematics/ng-update/data/output-names.ts +42 -0
  84. package/schematics/schematics/ng-update/data/property-names.ts +151 -0
  85. package/schematics/schematics/ng-update/data/symbol-removal.ts +22 -0
  86. package/schematics/schematics/ng-update/devkit-file-system.ts +87 -0
  87. package/schematics/schematics/ng-update/devkit-migration-rule.ts +185 -0
  88. package/schematics/schematics/ng-update/devkit-migration.ts +47 -0
  89. package/schematics/schematics/ng-update/find-stylesheets.ts +43 -0
  90. package/schematics/schematics/ng-update/html-parsing/angular.ts +49 -0
  91. package/schematics/schematics/ng-update/html-parsing/elements.ts +66 -0
  92. package/schematics/schematics/ng-update/index.ts +113 -0
  93. package/schematics/schematics/ng-update/migrations/attribute-selectors.ts +83 -0
  94. package/schematics/schematics/ng-update/migrations/class-inheritance.ts +63 -0
  95. package/schematics/schematics/ng-update/migrations/class-names.ts +107 -0
  96. package/schematics/schematics/ng-update/migrations/constructor-signature.ts +170 -0
  97. package/schematics/schematics/ng-update/migrations/css-selectors.ts +83 -0
  98. package/schematics/schematics/ng-update/migrations/element-selectors.ts +75 -0
  99. package/schematics/schematics/ng-update/migrations/input-names.ts +83 -0
  100. package/schematics/schematics/ng-update/migrations/method-call-arguments.ts +70 -0
  101. package/schematics/schematics/ng-update/migrations/misc-template.ts +36 -0
  102. package/schematics/schematics/ng-update/migrations/output-names.ts +61 -0
  103. package/schematics/schematics/ng-update/migrations/property-names.ts +61 -0
  104. package/schematics/schematics/ng-update/migrations/symbol-removal.ts +51 -0
  105. package/schematics/schematics/ng-update/migrations/tilde-import-v13/tilde-import-migration.ts +40 -0
  106. package/schematics/schematics/ng-update/public-api.ts +18 -0
  107. package/schematics/schematics/ng-update/test-cases/index.spec.ts +18 -0
  108. package/schematics/schematics/ng-update/test-cases/misc/external-resource-resolution.spec.ts +32 -0
  109. package/schematics/schematics/ng-update/test-cases/misc/external-resource-resolution_input.ts +22 -0
  110. package/schematics/schematics/ng-update/test-cases/misc/global-stylesheets-test.scss +3 -0
  111. package/schematics/schematics/ng-update/test-cases/misc/global-stylesheets.spec.ts +50 -0
  112. package/schematics/schematics/ng-update/test-cases/misc/global-stylesheets_input.ts +8 -0
  113. package/schematics/schematics/ng-update/test-cases/misc/method-call-checks.spec.ts +20 -0
  114. package/schematics/schematics/ng-update/test-cases/misc/method-call-checks_input.ts +18 -0
  115. package/schematics/schematics/ng-update/test-cases/misc/module-resolution.spec.ts +27 -0
  116. package/schematics/schematics/ng-update/test-cases/v13/misc/tilde-import-v13.spec.ts +149 -0
  117. package/schematics/schematics/ng-update/test-cases/v6/attribute-selectors_expected_output.ts +36 -0
  118. package/schematics/schematics/ng-update/test-cases/v6/attribute-selectors_input.ts +36 -0
  119. package/schematics/schematics/ng-update/test-cases/v6/class-names_expected_output.ts +8 -0
  120. package/schematics/schematics/ng-update/test-cases/v6/class-names_input.ts +8 -0
  121. package/schematics/schematics/ng-update/test-cases/v6/input-names_expected_output.ts +22 -0
  122. package/schematics/schematics/ng-update/test-cases/v6/input-names_input.ts +22 -0
  123. package/schematics/schematics/ng-update/test-cases/v6/property-names_expected_output.ts +64 -0
  124. package/schematics/schematics/ng-update/test-cases/v6/property-names_input.ts +64 -0
  125. package/schematics/schematics/ng-update/test-cases/v7/property-names_expected_output.ts +28 -0
  126. package/schematics/schematics/ng-update/test-cases/v7/property-names_input.ts +28 -0
  127. package/schematics/schematics/ng-update/typescript/base-types.ts +22 -0
  128. package/schematics/schematics/ng-update/typescript/imports.ts +54 -0
  129. package/schematics/schematics/ng-update/typescript/literal.ts +32 -0
  130. package/schematics/schematics/ng-update/typescript/module-specifiers.ts +39 -0
  131. package/schematics/schematics/ng-update/update-schematic.md +209 -0
  132. package/schematics/schematics/ng-update/upgrade-data.ts +79 -0
  133. package/schematics/schematics/paths.ts +15 -0
  134. package/schematics/schematics/testing/BUILD.bazel +27 -0
  135. package/schematics/schematics/testing/file-content.ts +20 -0
  136. package/schematics/schematics/testing/index.ts +14 -0
  137. package/schematics/schematics/testing/post-scheduled-tasks.ts +45 -0
  138. package/schematics/schematics/testing/resolve-bazel-path.ts +46 -0
  139. package/schematics/schematics/testing/test-app.ts +21 -0
  140. package/schematics/schematics/testing/test-case-setup.ts +236 -0
  141. package/schematics/schematics/testing/test-library.ts +21 -0
  142. package/schematics/schematics/testing/test-project.ts +40 -0
  143. package/schematics/schematics/testing/tsconfig.json +7 -0
  144. package/schematics/schematics/tsconfig.json +28 -0
  145. package/schematics/schematics/update-tool/BUILD.bazel +19 -0
  146. package/schematics/schematics/update-tool/component-resource-collector.ts +195 -0
  147. package/schematics/schematics/update-tool/file-system.ts +78 -0
  148. package/schematics/schematics/update-tool/index.ts +191 -0
  149. package/schematics/schematics/update-tool/logger.ts +23 -0
  150. package/schematics/schematics/update-tool/migration.ts +88 -0
  151. package/schematics/schematics/update-tool/public-api.ts +16 -0
  152. package/schematics/schematics/update-tool/target-version.ts +31 -0
  153. package/schematics/schematics/update-tool/tsconfig.json +7 -0
  154. package/schematics/schematics/update-tool/update-recorder.ts +14 -0
  155. package/schematics/schematics/update-tool/utils/decorators.ts +54 -0
  156. package/schematics/schematics/update-tool/utils/functions.ts +18 -0
  157. package/schematics/schematics/update-tool/utils/imports.ts +128 -0
  158. package/schematics/schematics/update-tool/utils/line-mappings.ts +84 -0
  159. package/schematics/schematics/update-tool/utils/parse-tsconfig.ts +25 -0
  160. package/schematics/schematics/update-tool/utils/property-name.ts +28 -0
  161. package/schematics/schematics/update-tool/utils/virtual-host.ts +116 -0
  162. package/schematics/schematics/update-tool/version-changes.ts +49 -0
  163. package/schematics/schematics/utils/ast/ng-module-imports.spec.ts +43 -0
  164. package/schematics/schematics/utils/ast/ng-module-imports.ts +102 -0
  165. package/schematics/schematics/utils/ast.ts +88 -0
  166. package/schematics/schematics/utils/build-component.ts +252 -0
  167. package/schematics/schematics/utils/get-project.ts +27 -0
  168. package/schematics/schematics/utils/html-manipulation.ts +105 -0
  169. package/schematics/schematics/utils/index.ts +19 -0
  170. package/schematics/schematics/utils/parse5-element.ts +34 -0
  171. package/schematics/schematics/utils/project-index-file.ts +21 -0
  172. package/schematics/schematics/utils/project-main-file.ts +26 -0
  173. package/schematics/schematics/utils/project-style-file.ts +53 -0
  174. package/schematics/schematics/utils/project-targets.ts +43 -0
  175. package/schematics/schematics/utils/project-tsconfig-paths.spec.ts +91 -0
  176. package/schematics/schematics/utils/project-tsconfig-paths.ts +49 -0
  177. package/schematics/schematics/utils/schematic-options.ts +65 -0
  178. package/schematics/schematics/utils/vendored-ast-utils/index.ts +599 -0
  179. package/scrolling/virtual-scroll-viewport.scss +87 -0
  180. package/table/table.scss +3 -0
  181. package/text-field/_index.import.scss +2 -0
  182. package/text-field/_index.scss +89 -0
  183. package/text-field/text-field-prebuilt.scss +4 -0
  184. package/types/stagefright5-cdk-a11y.d.ts +1160 -0
  185. package/types/stagefright5-cdk-accordion.d.ts +95 -0
  186. package/types/stagefright5-cdk-bidi.d.ts +95 -0
  187. package/types/stagefright5-cdk-clipboard.d.ts +116 -0
  188. package/types/stagefright5-cdk-coercion.d.ts +101 -0
  189. package/types/stagefright5-cdk-collections.d.ts +405 -0
  190. package/types/stagefright5-cdk-drag-drop.d.ts +1471 -0
  191. package/types/stagefright5-cdk-keycodes.d.ts +142 -0
  192. package/types/stagefright5-cdk-layout.d.ts +96 -0
  193. package/types/stagefright5-cdk-observers.d.ts +91 -0
  194. package/types/stagefright5-cdk-overlay.d.ts +1258 -0
  195. package/types/stagefright5-cdk-platform.d.ts +130 -0
  196. package/types/stagefright5-cdk-portal.d.ts +327 -0
  197. package/types/stagefright5-cdk-scrolling.d.ts +631 -0
  198. package/types/stagefright5-cdk-stepper.d.ts +302 -0
  199. package/types/stagefright5-cdk-table.d.ts +1128 -0
  200. package/types/stagefright5-cdk-testing-protractor.d.ts +146 -0
  201. package/types/stagefright5-cdk-testing-selenium-webdriver.d.ts +161 -0
  202. package/types/stagefright5-cdk-testing-testbed.d.ts +168 -0
  203. package/types/stagefright5-cdk-testing.d.ts +735 -0
  204. package/types/stagefright5-cdk-text-field.d.ts +171 -0
  205. package/types/stagefright5-cdk-tree.d.ts +522 -0
  206. package/types/stagefright5-cdk.d.ts +14 -0
@@ -0,0 +1,1128 @@
1
+ import { Directionality, Direction } from '@dugararchit/cdk/bidi';
2
+ import { BooleanInput } from '@dugararchit/cdk/coercion';
3
+ import { CollectionViewer, _ViewRepeater, DataSource } from '@dugararchit/cdk/collections';
4
+ export { DataSource } from '@dugararchit/cdk/collections';
5
+ import { Platform } from '@dugararchit/cdk/platform';
6
+ import * as i5 from '@dugararchit/cdk/scrolling';
7
+ import { ViewportRuler } from '@dugararchit/cdk/scrolling';
8
+ import * as i0 from '@angular/core';
9
+ import { TemplateRef, ElementRef, OnDestroy, NgZone, InjectionToken, OnChanges, IterableDiffers, IterableDiffer, SimpleChanges, IterableChanges, ViewContainerRef, AfterContentChecked, OnInit, ChangeDetectorRef, TrackByFunction, EventEmitter, QueryList } from '@angular/core';
10
+ import { Observable, BehaviorSubject } from 'rxjs';
11
+
12
+ /**
13
+ * @license
14
+ * Copyright Google LLC All Rights Reserved.
15
+ *
16
+ * Use of this source code is governed by an MIT-style license that can be
17
+ * found in the LICENSE file at https://angular.io/license
18
+ */
19
+ /** @docs-private */
20
+ type Constructor<T> = new (...args: any[]) => T;
21
+ /**
22
+ * Interface for a mixin to provide a directive with a function that checks if the sticky input has
23
+ * been changed since the last time the function was called. Essentially adds a dirty-check to the
24
+ * sticky value.
25
+ * @docs-private
26
+ */
27
+ interface CanStick {
28
+ /** Whether sticky positioning should be applied. */
29
+ sticky: boolean;
30
+ /** Whether the sticky input has changed since it was last checked. */
31
+ _hasStickyChanged: boolean;
32
+ /** Whether the sticky value has changed since this was last called. */
33
+ hasStickyChanged(): boolean;
34
+ /** Resets the dirty check for cases where the sticky state has been used without checking. */
35
+ resetStickyChanged(): void;
36
+ }
37
+ /** @docs-private */
38
+ type CanStickCtor = Constructor<CanStick>;
39
+ /**
40
+ * Mixin to provide a directive with a function that checks if the sticky input has been
41
+ * changed since the last time the function was called. Essentially adds a dirty-check to the
42
+ * sticky value.
43
+ * @docs-private
44
+ */
45
+ declare function mixinHasStickyInput<T extends Constructor<{}>>(base: T): CanStickCtor & T;
46
+
47
+ /**
48
+ * @license
49
+ * Copyright Google LLC All Rights Reserved.
50
+ *
51
+ * Use of this source code is governed by an MIT-style license that can be
52
+ * found in the LICENSE file at https://angular.io/license
53
+ */
54
+
55
+ /** Base interface for a cell definition. Captures a column's cell template definition. */
56
+ interface CellDef {
57
+ template: TemplateRef<any>;
58
+ }
59
+ /**
60
+ * Cell definition for a CDK table.
61
+ * Captures the template of a column's data row cell as well as cell-specific properties.
62
+ */
63
+ declare class CdkCellDef implements CellDef {
64
+ template: TemplateRef<any>;
65
+ constructor(/** @docs-private */ template: TemplateRef<any>);
66
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkCellDef, never>;
67
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkCellDef, "[cdkCellDef]", never, {}, {}, never, never, false, never>;
68
+ }
69
+ /**
70
+ * Header cell definition for a CDK table.
71
+ * Captures the template of a column's header cell and as well as cell-specific properties.
72
+ */
73
+ declare class CdkHeaderCellDef implements CellDef {
74
+ template: TemplateRef<any>;
75
+ constructor(/** @docs-private */ template: TemplateRef<any>);
76
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkHeaderCellDef, never>;
77
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkHeaderCellDef, "[cdkHeaderCellDef]", never, {}, {}, never, never, false, never>;
78
+ }
79
+ /**
80
+ * Footer cell definition for a CDK table.
81
+ * Captures the template of a column's footer cell and as well as cell-specific properties.
82
+ */
83
+ declare class CdkFooterCellDef implements CellDef {
84
+ template: TemplateRef<any>;
85
+ constructor(/** @docs-private */ template: TemplateRef<any>);
86
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkFooterCellDef, never>;
87
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkFooterCellDef, "[cdkFooterCellDef]", never, {}, {}, never, never, false, never>;
88
+ }
89
+ /** @docs-private */
90
+ declare class CdkColumnDefBase {
91
+ }
92
+ declare const _CdkColumnDefBase: CanStickCtor & typeof CdkColumnDefBase;
93
+ /**
94
+ * Column definition for the CDK table.
95
+ * Defines a set of cells available for a table column.
96
+ */
97
+ declare class CdkColumnDef extends _CdkColumnDefBase implements CanStick {
98
+ _table?: any | undefined;
99
+ /** Unique name for this column. */
100
+ get name(): string;
101
+ set name(name: string);
102
+ protected _name: string;
103
+ /**
104
+ * Whether this column should be sticky positioned on the end of the row. Should make sure
105
+ * that it mimics the `CanStick` mixin such that `_hasStickyChanged` is set to true if the value
106
+ * has been changed.
107
+ */
108
+ get stickyEnd(): boolean;
109
+ set stickyEnd(v: BooleanInput);
110
+ _stickyEnd: boolean;
111
+ /** @docs-private */
112
+ cell: CdkCellDef;
113
+ /** @docs-private */
114
+ headerCell: CdkHeaderCellDef;
115
+ /** @docs-private */
116
+ footerCell: CdkFooterCellDef;
117
+ /**
118
+ * Transformed version of the column name that can be used as part of a CSS classname. Excludes
119
+ * all non-alphanumeric characters and the special characters '-' and '_'. Any characters that
120
+ * do not match are replaced by the '-' character.
121
+ */
122
+ cssClassFriendlyName: string;
123
+ /**
124
+ * Class name for cells in this column.
125
+ * @docs-private
126
+ */
127
+ _columnCssClassName: string[];
128
+ constructor(_table?: any | undefined);
129
+ /**
130
+ * Overridable method that sets the css classes that will be added to every cell in this
131
+ * column.
132
+ * In the future, columnCssClassName will change from type string[] to string and this
133
+ * will set a single string value.
134
+ * @docs-private
135
+ */
136
+ protected _updateColumnCssClassName(): void;
137
+ /**
138
+ * This has been extracted to a util because of TS 4 and VE.
139
+ * View Engine doesn't support property rename inheritance.
140
+ * TS 4.0 doesn't allow properties to override accessors or vice-versa.
141
+ * @docs-private
142
+ */
143
+ protected _setNameInput(value: string): void;
144
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkColumnDef, [{ optional: true; }]>;
145
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkColumnDef, "[cdkColumnDef]", never, { "sticky": { "alias": "sticky"; "required": false; }; "name": { "alias": "cdkColumnDef"; "required": false; }; "stickyEnd": { "alias": "stickyEnd"; "required": false; }; }, {}, ["cell", "headerCell", "footerCell"], never, false, never>;
146
+ }
147
+ /** Base class for the cells. Adds a CSS classname that identifies the column it renders in. */
148
+ declare class BaseCdkCell {
149
+ constructor(columnDef: CdkColumnDef, elementRef: ElementRef);
150
+ }
151
+ /** Header cell template container that adds the right classes and role. */
152
+ declare class CdkHeaderCell extends BaseCdkCell {
153
+ constructor(columnDef: CdkColumnDef, elementRef: ElementRef);
154
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkHeaderCell, never>;
155
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkHeaderCell, "cdk-header-cell, th[cdk-header-cell]", never, {}, {}, never, never, false, never>;
156
+ }
157
+ /** Footer cell template container that adds the right classes and role. */
158
+ declare class CdkFooterCell extends BaseCdkCell {
159
+ constructor(columnDef: CdkColumnDef, elementRef: ElementRef);
160
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkFooterCell, never>;
161
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkFooterCell, "cdk-footer-cell, td[cdk-footer-cell]", never, {}, {}, never, never, false, never>;
162
+ }
163
+ /** Cell template container that adds the right classes and role. */
164
+ declare class CdkCell extends BaseCdkCell {
165
+ constructor(columnDef: CdkColumnDef, elementRef: ElementRef);
166
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkCell, never>;
167
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkCell, "cdk-cell, td[cdk-cell]", never, {}, {}, never, never, false, never>;
168
+ }
169
+
170
+ /**
171
+ * @license
172
+ * Copyright Google LLC All Rights Reserved.
173
+ *
174
+ * Use of this source code is governed by an MIT-style license that can be
175
+ * found in the LICENSE file at https://angular.io/license
176
+ */
177
+
178
+ /**
179
+ * @docs-private
180
+ */
181
+ declare class _Schedule {
182
+ tasks: (() => unknown)[];
183
+ endTasks: (() => unknown)[];
184
+ }
185
+ /** Injection token used to provide a coalesced style scheduler. */
186
+ declare const _COALESCED_STYLE_SCHEDULER: InjectionToken<_CoalescedStyleScheduler>;
187
+ /**
188
+ * Allows grouping up CSSDom mutations after the current execution context.
189
+ * This can significantly improve performance when separate consecutive functions are
190
+ * reading from the CSSDom and then mutating it.
191
+ *
192
+ * @docs-private
193
+ */
194
+ declare class _CoalescedStyleScheduler implements OnDestroy {
195
+ private readonly _ngZone;
196
+ private _currentSchedule;
197
+ private readonly _destroyed;
198
+ constructor(_ngZone: NgZone);
199
+ /**
200
+ * Schedules the specified task to run at the end of the current VM turn.
201
+ */
202
+ schedule(task: () => unknown): void;
203
+ /**
204
+ * Schedules the specified task to run after other scheduled tasks at the end of the current
205
+ * VM turn.
206
+ */
207
+ scheduleEnd(task: () => unknown): void;
208
+ /** Prevent any further tasks from running. */
209
+ ngOnDestroy(): void;
210
+ private _createScheduleIfNeeded;
211
+ private _getScheduleObservable;
212
+ static ɵfac: i0.ɵɵFactoryDeclaration<_CoalescedStyleScheduler, never>;
213
+ static ɵprov: i0.ɵɵInjectableDeclaration<_CoalescedStyleScheduler>;
214
+ }
215
+
216
+ /**
217
+ * @license
218
+ * Copyright Google LLC All Rights Reserved.
219
+ *
220
+ * Use of this source code is governed by an MIT-style license that can be
221
+ * found in the LICENSE file at https://angular.io/license
222
+ */
223
+
224
+ /**
225
+ * The row template that can be used by the mat-table. Should not be used outside of the
226
+ * material library.
227
+ */
228
+ declare const CDK_ROW_TEMPLATE = "<ng-container cdkCellOutlet></ng-container>";
229
+ /**
230
+ * Base class for the CdkHeaderRowDef and CdkRowDef that handles checking their columns inputs
231
+ * for changes and notifying the table.
232
+ */
233
+ declare abstract class BaseRowDef implements OnChanges {
234
+ /** @docs-private */ template: TemplateRef<any>;
235
+ protected _differs: IterableDiffers;
236
+ /** The columns to be displayed on this row. */
237
+ columns: Iterable<string>;
238
+ /** Differ used to check if any changes were made to the columns. */
239
+ protected _columnsDiffer: IterableDiffer<any>;
240
+ constructor(
241
+ /** @docs-private */ template: TemplateRef<any>, _differs: IterableDiffers);
242
+ ngOnChanges(changes: SimpleChanges): void;
243
+ /**
244
+ * Returns the difference between the current columns and the columns from the last diff, or null
245
+ * if there is no difference.
246
+ */
247
+ getColumnsDiff(): IterableChanges<any> | null;
248
+ /** Gets this row def's relevant cell template from the provided column def. */
249
+ extractCellTemplate(column: CdkColumnDef): TemplateRef<any>;
250
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseRowDef, never>;
251
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseRowDef, never, never, {}, {}, never, never, true, never>;
252
+ }
253
+ /** @docs-private */
254
+ declare class CdkHeaderRowDefBase extends BaseRowDef {
255
+ }
256
+ declare const _CdkHeaderRowDefBase: CanStickCtor & typeof CdkHeaderRowDefBase;
257
+ /**
258
+ * Header row definition for the CDK table.
259
+ * Captures the header row's template and other header properties such as the columns to display.
260
+ */
261
+ declare class CdkHeaderRowDef extends _CdkHeaderRowDefBase implements CanStick, OnChanges {
262
+ _table?: any | undefined;
263
+ constructor(template: TemplateRef<any>, _differs: IterableDiffers, _table?: any | undefined);
264
+ ngOnChanges(changes: SimpleChanges): void;
265
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkHeaderRowDef, [null, null, { optional: true; }]>;
266
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkHeaderRowDef, "[cdkHeaderRowDef]", never, { "columns": { "alias": "cdkHeaderRowDef"; "required": false; }; "sticky": { "alias": "cdkHeaderRowDefSticky"; "required": false; }; }, {}, never, never, false, never>;
267
+ }
268
+ /** @docs-private */
269
+ declare class CdkFooterRowDefBase extends BaseRowDef {
270
+ }
271
+ declare const _CdkFooterRowDefBase: CanStickCtor & typeof CdkFooterRowDefBase;
272
+ /**
273
+ * Footer row definition for the CDK table.
274
+ * Captures the footer row's template and other footer properties such as the columns to display.
275
+ */
276
+ declare class CdkFooterRowDef extends _CdkFooterRowDefBase implements CanStick, OnChanges {
277
+ _table?: any | undefined;
278
+ constructor(template: TemplateRef<any>, _differs: IterableDiffers, _table?: any | undefined);
279
+ ngOnChanges(changes: SimpleChanges): void;
280
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkFooterRowDef, [null, null, { optional: true; }]>;
281
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkFooterRowDef, "[cdkFooterRowDef]", never, { "columns": { "alias": "cdkFooterRowDef"; "required": false; }; "sticky": { "alias": "cdkFooterRowDefSticky"; "required": false; }; }, {}, never, never, false, never>;
282
+ }
283
+ /**
284
+ * Data row definition for the CDK table.
285
+ * Captures the header row's template and other row properties such as the columns to display and
286
+ * a when predicate that describes when this row should be used.
287
+ */
288
+ declare class CdkRowDef<T> extends BaseRowDef {
289
+ _table?: any | undefined;
290
+ /**
291
+ * Function that should return true if this row template should be used for the provided index
292
+ * and row data. If left undefined, this row will be considered the default row template to use
293
+ * when no other when functions return true for the data.
294
+ * For every row, there must be at least one when function that passes or an undefined to default.
295
+ */
296
+ when: (index: number, rowData: T) => boolean;
297
+ constructor(template: TemplateRef<any>, _differs: IterableDiffers, _table?: any | undefined);
298
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkRowDef<any>, [null, null, { optional: true; }]>;
299
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkRowDef<any>, "[cdkRowDef]", never, { "columns": { "alias": "cdkRowDefColumns"; "required": false; }; "when": { "alias": "cdkRowDefWhen"; "required": false; }; }, {}, never, never, false, never>;
300
+ }
301
+ /** Context provided to the row cells when `multiTemplateDataRows` is false */
302
+ interface CdkCellOutletRowContext<T> {
303
+ /** Data for the row that this cell is located within. */
304
+ $implicit?: T;
305
+ /** Index of the data object in the provided data array. */
306
+ index?: number;
307
+ /** Length of the number of total rows. */
308
+ count?: number;
309
+ /** True if this cell is contained in the first row. */
310
+ first?: boolean;
311
+ /** True if this cell is contained in the last row. */
312
+ last?: boolean;
313
+ /** True if this cell is contained in a row with an even-numbered index. */
314
+ even?: boolean;
315
+ /** True if this cell is contained in a row with an odd-numbered index. */
316
+ odd?: boolean;
317
+ }
318
+ /**
319
+ * Context provided to the row cells when `multiTemplateDataRows` is true. This context is the same
320
+ * as CdkCellOutletRowContext except that the single `index` value is replaced by `dataIndex` and
321
+ * `renderIndex`.
322
+ */
323
+ interface CdkCellOutletMultiRowContext<T> {
324
+ /** Data for the row that this cell is located within. */
325
+ $implicit?: T;
326
+ /** Index of the data object in the provided data array. */
327
+ dataIndex?: number;
328
+ /** Index location of the rendered row that this cell is located within. */
329
+ renderIndex?: number;
330
+ /** Length of the number of total rows. */
331
+ count?: number;
332
+ /** True if this cell is contained in the first row. */
333
+ first?: boolean;
334
+ /** True if this cell is contained in the last row. */
335
+ last?: boolean;
336
+ /** True if this cell is contained in a row with an even-numbered index. */
337
+ even?: boolean;
338
+ /** True if this cell is contained in a row with an odd-numbered index. */
339
+ odd?: boolean;
340
+ }
341
+ /**
342
+ * Outlet for rendering cells inside of a row or header row.
343
+ * @docs-private
344
+ */
345
+ declare class CdkCellOutlet implements OnDestroy {
346
+ _viewContainer: ViewContainerRef;
347
+ /** The ordered list of cells to render within this outlet's view container */
348
+ cells: CdkCellDef[];
349
+ /** The data context to be provided to each cell */
350
+ context: any;
351
+ /**
352
+ * Static property containing the latest constructed instance of this class.
353
+ * Used by the CDK table when each CdkHeaderRow and CdkRow component is created using
354
+ * createEmbeddedView. After one of these components are created, this property will provide
355
+ * a handle to provide that component's cells and context. After init, the CdkCellOutlet will
356
+ * construct the cells with the provided context.
357
+ */
358
+ static mostRecentCellOutlet: CdkCellOutlet | null;
359
+ constructor(_viewContainer: ViewContainerRef);
360
+ ngOnDestroy(): void;
361
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkCellOutlet, never>;
362
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkCellOutlet, "[cdkCellOutlet]", never, {}, {}, never, never, false, never>;
363
+ }
364
+ /** Header template container that contains the cell outlet. Adds the right class and role. */
365
+ declare class CdkHeaderRow {
366
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkHeaderRow, never>;
367
+ static ɵcmp: i0.ɵɵComponentDeclaration<CdkHeaderRow, "cdk-header-row, tr[cdk-header-row]", never, {}, {}, never, never, false, never>;
368
+ }
369
+ /** Footer template container that contains the cell outlet. Adds the right class and role. */
370
+ declare class CdkFooterRow {
371
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkFooterRow, never>;
372
+ static ɵcmp: i0.ɵɵComponentDeclaration<CdkFooterRow, "cdk-footer-row, tr[cdk-footer-row]", never, {}, {}, never, never, false, never>;
373
+ }
374
+ /** Data row template container that contains the cell outlet. Adds the right class and role. */
375
+ declare class CdkRow {
376
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkRow, never>;
377
+ static ɵcmp: i0.ɵɵComponentDeclaration<CdkRow, "cdk-row, tr[cdk-row]", never, {}, {}, never, never, false, never>;
378
+ }
379
+ /** Row that can be used to display a message when no data is shown in the table. */
380
+ declare class CdkNoDataRow {
381
+ templateRef: TemplateRef<any>;
382
+ _contentClassName: string;
383
+ constructor(templateRef: TemplateRef<any>);
384
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkNoDataRow, never>;
385
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkNoDataRow, "ng-template[cdkNoDataRow]", never, {}, {}, never, never, false, never>;
386
+ }
387
+
388
+ /**
389
+ * @license
390
+ * Copyright Google LLC All Rights Reserved.
391
+ *
392
+ * Use of this source code is governed by an MIT-style license that can be
393
+ * found in the LICENSE file at https://angular.io/license
394
+ */
395
+
396
+ /** The injection token used to specify the StickyPositioningListener. */
397
+ declare const STICKY_POSITIONING_LISTENER: InjectionToken<StickyPositioningListener>;
398
+ type StickySize = number | null | undefined;
399
+ type StickyOffset = number | null | undefined;
400
+ interface StickyUpdate {
401
+ elements?: readonly (HTMLElement[] | undefined)[];
402
+ offsets?: StickyOffset[];
403
+ sizes: StickySize[];
404
+ }
405
+ /**
406
+ * If provided, CdkTable will call the methods below when it updates the size/
407
+ * postion/etc of its sticky rows and columns.
408
+ */
409
+ interface StickyPositioningListener {
410
+ /** Called when CdkTable updates its sticky start columns. */
411
+ stickyColumnsUpdated(update: StickyUpdate): void;
412
+ /** Called when CdkTable updates its sticky end columns. */
413
+ stickyEndColumnsUpdated(update: StickyUpdate): void;
414
+ /** Called when CdkTable updates its sticky header rows. */
415
+ stickyHeaderRowsUpdated(update: StickyUpdate): void;
416
+ /** Called when CdkTable updates its sticky footer rows. */
417
+ stickyFooterRowsUpdated(update: StickyUpdate): void;
418
+ }
419
+
420
+ /**
421
+ * @license
422
+ * Copyright Google LLC All Rights Reserved.
423
+ *
424
+ * Use of this source code is governed by an MIT-style license that can be
425
+ * found in the LICENSE file at https://angular.io/license
426
+ */
427
+
428
+ /**
429
+ * Enables the recycle view repeater strategy, which reduces rendering latency. Not compatible with
430
+ * tables that animate rows.
431
+ */
432
+ declare class CdkRecycleRows {
433
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkRecycleRows, never>;
434
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkRecycleRows, "cdk-table[recycleRows], table[cdk-table][recycleRows]", never, {}, {}, never, never, false, never>;
435
+ }
436
+ /** Interface used to provide an outlet for rows to be inserted into. */
437
+ interface RowOutlet {
438
+ viewContainer: ViewContainerRef;
439
+ }
440
+ /** Possible types that can be set as the data source for a `CdkTable`. */
441
+ type CdkTableDataSourceInput<T> = readonly T[] | DataSource<T> | Observable<readonly T[]>;
442
+ /**
443
+ * Provides a handle for the table to grab the view container's ng-container to insert data rows.
444
+ * @docs-private
445
+ */
446
+ declare class DataRowOutlet implements RowOutlet {
447
+ viewContainer: ViewContainerRef;
448
+ elementRef: ElementRef;
449
+ constructor(viewContainer: ViewContainerRef, elementRef: ElementRef);
450
+ static ɵfac: i0.ɵɵFactoryDeclaration<DataRowOutlet, never>;
451
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DataRowOutlet, "[rowOutlet]", never, {}, {}, never, never, false, never>;
452
+ }
453
+ /**
454
+ * Provides a handle for the table to grab the view container's ng-container to insert the header.
455
+ * @docs-private
456
+ */
457
+ declare class HeaderRowOutlet implements RowOutlet {
458
+ viewContainer: ViewContainerRef;
459
+ elementRef: ElementRef;
460
+ constructor(viewContainer: ViewContainerRef, elementRef: ElementRef);
461
+ static ɵfac: i0.ɵɵFactoryDeclaration<HeaderRowOutlet, never>;
462
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HeaderRowOutlet, "[headerRowOutlet]", never, {}, {}, never, never, false, never>;
463
+ }
464
+ /**
465
+ * Provides a handle for the table to grab the view container's ng-container to insert the footer.
466
+ * @docs-private
467
+ */
468
+ declare class FooterRowOutlet implements RowOutlet {
469
+ viewContainer: ViewContainerRef;
470
+ elementRef: ElementRef;
471
+ constructor(viewContainer: ViewContainerRef, elementRef: ElementRef);
472
+ static ɵfac: i0.ɵɵFactoryDeclaration<FooterRowOutlet, never>;
473
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FooterRowOutlet, "[footerRowOutlet]", never, {}, {}, never, never, false, never>;
474
+ }
475
+ /**
476
+ * Provides a handle for the table to grab the view
477
+ * container's ng-container to insert the no data row.
478
+ * @docs-private
479
+ */
480
+ declare class NoDataRowOutlet implements RowOutlet {
481
+ viewContainer: ViewContainerRef;
482
+ elementRef: ElementRef;
483
+ constructor(viewContainer: ViewContainerRef, elementRef: ElementRef);
484
+ static ɵfac: i0.ɵɵFactoryDeclaration<NoDataRowOutlet, never>;
485
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NoDataRowOutlet, "[noDataRowOutlet]", never, {}, {}, never, never, false, never>;
486
+ }
487
+ /**
488
+ * The table template that can be used by the mat-table. Should not be used outside of the
489
+ * material library.
490
+ * @docs-private
491
+ */
492
+ 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";
493
+ /**
494
+ * Interface used to conveniently type the possible context interfaces for the render row.
495
+ * @docs-private
496
+ */
497
+ interface RowContext<T> extends CdkCellOutletMultiRowContext<T>, CdkCellOutletRowContext<T> {
498
+ }
499
+ /**
500
+ * Set of properties that represents the identity of a single rendered row.
501
+ *
502
+ * When the table needs to determine the list of rows to render, it will do so by iterating through
503
+ * each data object and evaluating its list of row templates to display (when multiTemplateDataRows
504
+ * is false, there is only one template per data object). For each pair of data object and row
505
+ * template, a `RenderRow` is added to the list of rows to render. If the data object and row
506
+ * template pair has already been rendered, the previously used `RenderRow` is added; else a new
507
+ * `RenderRow` is * created. Once the list is complete and all data objects have been itereated
508
+ * through, a diff is performed to determine the changes that need to be made to the rendered rows.
509
+ *
510
+ * @docs-private
511
+ */
512
+ interface RenderRow<T> {
513
+ data: T;
514
+ dataIndex: number;
515
+ rowDef: CdkRowDef<T>;
516
+ }
517
+ /**
518
+ * A data table that can render a header row, data rows, and a footer row.
519
+ * Uses the dataSource input to determine the data to be rendered. The data can be provided either
520
+ * as a data array, an Observable stream that emits the data array to render, or a DataSource with a
521
+ * connect function that will return an Observable stream that emits the data array to render.
522
+ */
523
+ declare class CdkTable<T> implements AfterContentChecked, CollectionViewer, OnDestroy, OnInit {
524
+ protected readonly _differs: IterableDiffers;
525
+ protected readonly _changeDetectorRef: ChangeDetectorRef;
526
+ protected readonly _elementRef: ElementRef;
527
+ protected readonly _dir: Directionality;
528
+ private _platform;
529
+ protected readonly _viewRepeater: _ViewRepeater<T, RenderRow<T>, RowContext<T>>;
530
+ protected readonly _coalescedStyleScheduler: _CoalescedStyleScheduler;
531
+ private readonly _viewportRuler;
532
+ /**
533
+ * @deprecated `_stickyPositioningListener` parameter to become required.
534
+ * @breaking-change 13.0.0
535
+ */
536
+ protected readonly _stickyPositioningListener: StickyPositioningListener;
537
+ /**
538
+ * @deprecated `_ngZone` parameter to become required.
539
+ * @breaking-change 14.0.0
540
+ */
541
+ protected readonly _ngZone?: NgZone | undefined;
542
+ private _document;
543
+ /** Latest data provided by the data source. */
544
+ protected _data: readonly T[];
545
+ /** Subject that emits when the component has been destroyed. */
546
+ private readonly _onDestroy;
547
+ /** List of the rendered rows as identified by their `RenderRow` object. */
548
+ private _renderRows;
549
+ /** Subscription that listens for the data provided by the data source. */
550
+ private _renderChangeSubscription;
551
+ /**
552
+ * Map of all the user's defined columns (header, data, and footer cell template) identified by
553
+ * name. Collection populated by the column definitions gathered by `ContentChildren` as well as
554
+ * any custom column definitions added to `_customColumnDefs`.
555
+ */
556
+ private _columnDefsByName;
557
+ /**
558
+ * Set of all row definitions that can be used by this table. Populated by the rows gathered by
559
+ * using `ContentChildren` as well as any custom row definitions added to `_customRowDefs`.
560
+ */
561
+ private _rowDefs;
562
+ /**
563
+ * Set of all header row definitions that can be used by this table. Populated by the rows
564
+ * gathered by using `ContentChildren` as well as any custom row definitions added to
565
+ * `_customHeaderRowDefs`.
566
+ */
567
+ private _headerRowDefs;
568
+ /**
569
+ * Set of all row definitions that can be used by this table. Populated by the rows gathered by
570
+ * using `ContentChildren` as well as any custom row definitions added to
571
+ * `_customFooterRowDefs`.
572
+ */
573
+ private _footerRowDefs;
574
+ /** Differ used to find the changes in the data provided by the data source. */
575
+ private _dataDiffer;
576
+ /** Stores the row definition that does not have a when predicate. */
577
+ private _defaultRowDef;
578
+ /**
579
+ * Column definitions that were defined outside of the direct content children of the table.
580
+ * These will be defined when, e.g., creating a wrapper around the cdkTable that has
581
+ * column definitions as *its* content child.
582
+ */
583
+ private _customColumnDefs;
584
+ /**
585
+ * Data row definitions that were defined outside of the direct content children of the table.
586
+ * These will be defined when, e.g., creating a wrapper around the cdkTable that has
587
+ * built-in data rows as *its* content child.
588
+ */
589
+ private _customRowDefs;
590
+ /**
591
+ * Header row definitions that were defined outside of the direct content children of the table.
592
+ * These will be defined when, e.g., creating a wrapper around the cdkTable that has
593
+ * built-in header rows as *its* content child.
594
+ */
595
+ private _customHeaderRowDefs;
596
+ /**
597
+ * Footer row definitions that were defined outside of the direct content children of the table.
598
+ * These will be defined when, e.g., creating a wrapper around the cdkTable that has a
599
+ * built-in footer row as *its* content child.
600
+ */
601
+ private _customFooterRowDefs;
602
+ /** No data row that was defined outside of the direct content children of the table. */
603
+ private _customNoDataRow;
604
+ /**
605
+ * Whether the header row definition has been changed. Triggers an update to the header row after
606
+ * content is checked. Initialized as true so that the table renders the initial set of rows.
607
+ */
608
+ private _headerRowDefChanged;
609
+ /**
610
+ * Whether the footer row definition has been changed. Triggers an update to the footer row after
611
+ * content is checked. Initialized as true so that the table renders the initial set of rows.
612
+ */
613
+ private _footerRowDefChanged;
614
+ /**
615
+ * Whether the sticky column styles need to be updated. Set to `true` when the visible columns
616
+ * change.
617
+ */
618
+ private _stickyColumnStylesNeedReset;
619
+ /**
620
+ * Whether the sticky styler should recalculate cell widths when applying sticky styles. If
621
+ * `false`, cached values will be used instead. This is only applicable to tables with
622
+ * {@link fixedLayout} enabled. For other tables, cell widths will always be recalculated.
623
+ */
624
+ private _forceRecalculateCellWidths;
625
+ /**
626
+ * Cache of the latest rendered `RenderRow` objects as a map for easy retrieval when constructing
627
+ * a new list of `RenderRow` objects for rendering rows. Since the new list is constructed with
628
+ * the cached `RenderRow` objects when possible, the row identity is preserved when the data
629
+ * and row template matches, which allows the `IterableDiffer` to check rows by reference
630
+ * and understand which rows are added/moved/removed.
631
+ *
632
+ * Implemented as a map of maps where the first key is the `data: T` object and the second is the
633
+ * `CdkRowDef<T>` object. With the two keys, the cache points to a `RenderRow<T>` object that
634
+ * contains an array of created pairs. The array is necessary to handle cases where the data
635
+ * array contains multiple duplicate data objects and each instantiated `RenderRow` must be
636
+ * stored.
637
+ */
638
+ private _cachedRenderRowsMap;
639
+ /** Whether the table is applied to a native `<table>`. */
640
+ protected _isNativeHtmlTable: boolean;
641
+ /**
642
+ * Utility class that is responsible for applying the appropriate sticky positioning styles to
643
+ * the table's rows and cells.
644
+ */
645
+ private _stickyStyler;
646
+ /**
647
+ * CSS class added to any row or cell that has sticky positioning applied. May be overriden by
648
+ * table subclasses.
649
+ */
650
+ protected stickyCssClass: string;
651
+ /**
652
+ * Whether to manually add positon: sticky to all sticky cell elements. Not needed if
653
+ * the position is set in a selector associated with the value of stickyCssClass. May be
654
+ * overridden by table subclasses
655
+ */
656
+ protected needsPositionStickyOnElement: boolean;
657
+ /** Whether the no data row is currently showing anything. */
658
+ private _isShowingNoDataRow;
659
+ /**
660
+ * Tracking function that will be used to check the differences in data changes. Used similarly
661
+ * to `ngFor` `trackBy` function. Optimize row operations by identifying a row based on its data
662
+ * relative to the function to know if a row should be added/removed/moved.
663
+ * Accepts a function that takes two parameters, `index` and `item`.
664
+ */
665
+ get trackBy(): TrackByFunction<T>;
666
+ set trackBy(fn: TrackByFunction<T>);
667
+ private _trackByFn;
668
+ /**
669
+ * The table's source of data, which can be provided in three ways (in order of complexity):
670
+ * - Simple data array (each object represents one table row)
671
+ * - Stream that emits a data array each time the array changes
672
+ * - `DataSource` object that implements the connect/disconnect interface.
673
+ *
674
+ * If a data array is provided, the table must be notified when the array's objects are
675
+ * added, removed, or moved. This can be done by calling the `renderRows()` function which will
676
+ * render the diff since the last table render. If the data array reference is changed, the table
677
+ * will automatically trigger an update to the rows.
678
+ *
679
+ * When providing an Observable stream, the table will trigger an update automatically when the
680
+ * stream emits a new array of data.
681
+ *
682
+ * Finally, when providing a `DataSource` object, the table will use the Observable stream
683
+ * provided by the connect function and trigger updates when that stream emits new data array
684
+ * values. During the table's ngOnDestroy or when the data source is removed from the table, the
685
+ * table will call the DataSource's `disconnect` function (may be useful for cleaning up any
686
+ * subscriptions registered during the connect process).
687
+ */
688
+ get dataSource(): CdkTableDataSourceInput<T>;
689
+ set dataSource(dataSource: CdkTableDataSourceInput<T>);
690
+ private _dataSource;
691
+ /**
692
+ * Whether to allow multiple rows per data object by evaluating which rows evaluate their 'when'
693
+ * predicate to true. If `multiTemplateDataRows` is false, which is the default value, then each
694
+ * dataobject will render the first row that evaluates its when predicate to true, in the order
695
+ * defined in the table, or otherwise the default row which does not have a when predicate.
696
+ */
697
+ get multiTemplateDataRows(): boolean;
698
+ set multiTemplateDataRows(v: BooleanInput);
699
+ _multiTemplateDataRows: boolean;
700
+ /**
701
+ * Whether to use a fixed table layout. Enabling this option will enforce consistent column widths
702
+ * and optimize rendering sticky styles for native tables. No-op for flex tables.
703
+ */
704
+ get fixedLayout(): boolean;
705
+ set fixedLayout(v: BooleanInput);
706
+ private _fixedLayout;
707
+ /**
708
+ * Emits when the table completes rendering a set of data rows based on the latest data from the
709
+ * data source, even if the set of rows is empty.
710
+ */
711
+ readonly contentChanged: EventEmitter<void>;
712
+ /**
713
+ * Stream containing the latest information on what rows are being displayed on screen.
714
+ * Can be used by the data source to as a heuristic of what data should be provided.
715
+ *
716
+ * @docs-private
717
+ */
718
+ readonly viewChange: BehaviorSubject<{
719
+ start: number;
720
+ end: number;
721
+ }>;
722
+ _rowOutlet: DataRowOutlet;
723
+ _headerRowOutlet: HeaderRowOutlet;
724
+ _footerRowOutlet: FooterRowOutlet;
725
+ _noDataRowOutlet: NoDataRowOutlet;
726
+ /**
727
+ * The column definitions provided by the user that contain what the header, data, and footer
728
+ * cells should render for each column.
729
+ */
730
+ _contentColumnDefs: QueryList<CdkColumnDef>;
731
+ /** Set of data row definitions that were provided to the table as content children. */
732
+ _contentRowDefs: QueryList<CdkRowDef<T>>;
733
+ /** Set of header row definitions that were provided to the table as content children. */
734
+ _contentHeaderRowDefs: QueryList<CdkHeaderRowDef>;
735
+ /** Set of footer row definitions that were provided to the table as content children. */
736
+ _contentFooterRowDefs: QueryList<CdkFooterRowDef>;
737
+ /** Row definition that will only be rendered if there's no data in the table. */
738
+ _noDataRow: CdkNoDataRow;
739
+ 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,
740
+ /**
741
+ * @deprecated `_stickyPositioningListener` parameter to become required.
742
+ * @breaking-change 13.0.0
743
+ */
744
+ _stickyPositioningListener: StickyPositioningListener,
745
+ /**
746
+ * @deprecated `_ngZone` parameter to become required.
747
+ * @breaking-change 14.0.0
748
+ */
749
+ _ngZone?: NgZone | undefined);
750
+ ngOnInit(): void;
751
+ ngAfterContentChecked(): void;
752
+ ngOnDestroy(): void;
753
+ /**
754
+ * Renders rows based on the table's latest set of data, which was either provided directly as an
755
+ * input or retrieved through an Observable stream (directly or from a DataSource).
756
+ * Checks for differences in the data since the last diff to perform only the necessary
757
+ * changes (add/remove/move rows).
758
+ *
759
+ * If the table's data source is a DataSource or Observable, this will be invoked automatically
760
+ * each time the provided Observable stream emits a new data array. Otherwise if your data is
761
+ * an array, this function will need to be called to render any changes.
762
+ */
763
+ renderRows(): void;
764
+ /** Adds a column definition that was not included as part of the content children. */
765
+ addColumnDef(columnDef: CdkColumnDef): void;
766
+ /** Removes a column definition that was not included as part of the content children. */
767
+ removeColumnDef(columnDef: CdkColumnDef): void;
768
+ /** Adds a row definition that was not included as part of the content children. */
769
+ addRowDef(rowDef: CdkRowDef<T>): void;
770
+ /** Removes a row definition that was not included as part of the content children. */
771
+ removeRowDef(rowDef: CdkRowDef<T>): void;
772
+ /** Adds a header row definition that was not included as part of the content children. */
773
+ addHeaderRowDef(headerRowDef: CdkHeaderRowDef): void;
774
+ /** Removes a header row definition that was not included as part of the content children. */
775
+ removeHeaderRowDef(headerRowDef: CdkHeaderRowDef): void;
776
+ /** Adds a footer row definition that was not included as part of the content children. */
777
+ addFooterRowDef(footerRowDef: CdkFooterRowDef): void;
778
+ /** Removes a footer row definition that was not included as part of the content children. */
779
+ removeFooterRowDef(footerRowDef: CdkFooterRowDef): void;
780
+ /** Sets a no data row definition that was not included as a part of the content children. */
781
+ setNoDataRow(noDataRow: CdkNoDataRow | null): void;
782
+ /**
783
+ * Updates the header sticky styles. First resets all applied styles with respect to the cells
784
+ * sticking to the top. Then, evaluating which cells need to be stuck to the top. This is
785
+ * automatically called when the header row changes its displayed set of columns, or if its
786
+ * sticky input changes. May be called manually for cases where the cell content changes outside
787
+ * of these events.
788
+ */
789
+ updateStickyHeaderRowStyles(): void;
790
+ /**
791
+ * Updates the footer sticky styles. First resets all applied styles with respect to the cells
792
+ * sticking to the bottom. Then, evaluating which cells need to be stuck to the bottom. This is
793
+ * automatically called when the footer row changes its displayed set of columns, or if its
794
+ * sticky input changes. May be called manually for cases where the cell content changes outside
795
+ * of these events.
796
+ */
797
+ updateStickyFooterRowStyles(): void;
798
+ /**
799
+ * Updates the column sticky styles. First resets all applied styles with respect to the cells
800
+ * sticking to the left and right. Then sticky styles are added for the left and right according
801
+ * to the column definitions for each cell in each row. This is automatically called when
802
+ * the data source provides a new set of data or when a column definition changes its sticky
803
+ * input. May be called manually for cases where the cell content changes outside of these events.
804
+ */
805
+ updateStickyColumnStyles(): void;
806
+ /**
807
+ * Get the list of RenderRow objects to render according to the current list of data and defined
808
+ * row definitions. If the previous list already contained a particular pair, it should be reused
809
+ * so that the differ equates their references.
810
+ */
811
+ private _getAllRenderRows;
812
+ /**
813
+ * Gets a list of `RenderRow<T>` for the provided data object and any `CdkRowDef` objects that
814
+ * should be rendered for this data. Reuses the cached RenderRow objects if they match the same
815
+ * `(T, CdkRowDef)` pair.
816
+ */
817
+ private _getRenderRowsForData;
818
+ /** Update the map containing the content's column definitions. */
819
+ private _cacheColumnDefs;
820
+ /** Update the list of all available row definitions that can be used. */
821
+ private _cacheRowDefs;
822
+ /**
823
+ * Check if the header, data, or footer rows have changed what columns they want to display or
824
+ * whether the sticky states have changed for the header or footer. If there is a diff, then
825
+ * re-render that section.
826
+ */
827
+ private _renderUpdatedColumns;
828
+ /**
829
+ * Switch to the provided data source by resetting the data and unsubscribing from the current
830
+ * render change subscription if one exists. If the data source is null, interpret this by
831
+ * clearing the row outlet. Otherwise start listening for new data.
832
+ */
833
+ private _switchDataSource;
834
+ /** Set up a subscription for the data provided by the data source. */
835
+ private _observeRenderChanges;
836
+ /**
837
+ * Clears any existing content in the header row outlet and creates a new embedded view
838
+ * in the outlet using the header row definition.
839
+ */
840
+ private _forceRenderHeaderRows;
841
+ /**
842
+ * Clears any existing content in the footer row outlet and creates a new embedded view
843
+ * in the outlet using the footer row definition.
844
+ */
845
+ private _forceRenderFooterRows;
846
+ /** Adds the sticky column styles for the rows according to the columns' stick states. */
847
+ private _addStickyColumnStyles;
848
+ /** Gets the list of rows that have been rendered in the row outlet. */
849
+ _getRenderedRows(rowOutlet: RowOutlet): HTMLElement[];
850
+ /**
851
+ * Get the matching row definitions that should be used for this row data. If there is only
852
+ * one row definition, it is returned. Otherwise, find the row definitions that has a when
853
+ * predicate that returns true with the data. If none return true, return the default row
854
+ * definition.
855
+ */
856
+ _getRowDefs(data: T, dataIndex: number): CdkRowDef<T>[];
857
+ private _getEmbeddedViewArgs;
858
+ /**
859
+ * Creates a new row template in the outlet and fills it with the set of cell templates.
860
+ * Optionally takes a context to provide to the row and cells, as well as an optional index
861
+ * of where to place the new row template in the outlet.
862
+ */
863
+ private _renderRow;
864
+ private _renderCellTemplateForItem;
865
+ /**
866
+ * Updates the index-related context for each row to reflect any changes in the index of the rows,
867
+ * e.g. first/last/even/odd.
868
+ */
869
+ private _updateRowIndexContext;
870
+ /** Gets the column definitions for the provided row def. */
871
+ private _getCellTemplates;
872
+ /** Adds native table sections (e.g. tbody) and moves the row outlets into them. */
873
+ private _applyNativeTableSections;
874
+ /**
875
+ * Forces a re-render of the data rows. Should be called in cases where there has been an input
876
+ * change that affects the evaluation of which rows should be rendered, e.g. toggling
877
+ * `multiTemplateDataRows` or adding/removing row definitions.
878
+ */
879
+ private _forceRenderDataRows;
880
+ /**
881
+ * Checks if there has been a change in sticky states since last check and applies the correct
882
+ * sticky styles. Since checking resets the "dirty" state, this should only be performed once
883
+ * during a change detection and after the inputs are settled (after content check).
884
+ */
885
+ private _checkStickyStates;
886
+ /**
887
+ * Creates the sticky styler that will be used for sticky rows and columns. Listens
888
+ * for directionality changes and provides the latest direction to the styler. Re-applies column
889
+ * stickiness when directionality changes.
890
+ */
891
+ private _setupStickyStyler;
892
+ /** Filters definitions that belong to this table from a QueryList. */
893
+ private _getOwnDefs;
894
+ /** Creates or removes the no data row, depending on whether any data is being shown. */
895
+ private _updateNoDataRow;
896
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkTable<any>, [null, null, null, { attribute: "role"; }, { optional: true; }, null, null, null, null, null, { optional: true; skipSelf: true; }, { optional: true; }]>;
897
+ static ɵcmp: i0.ɵɵComponentDeclaration<CdkTable<any>, "cdk-table, table[cdk-table]", ["cdkTable"], { "trackBy": { "alias": "trackBy"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; "multiTemplateDataRows": { "alias": "multiTemplateDataRows"; "required": false; }; "fixedLayout": { "alias": "fixedLayout"; "required": false; }; }, { "contentChanged": "contentChanged"; }, ["_noDataRow", "_contentColumnDefs", "_contentRowDefs", "_contentHeaderRowDefs", "_contentFooterRowDefs"], ["caption", "colgroup, col"], false, never>;
898
+ }
899
+
900
+ /**
901
+ * @license
902
+ * Copyright Google LLC All Rights Reserved.
903
+ *
904
+ * Use of this source code is governed by an MIT-style license that can be
905
+ * found in the LICENSE file at https://angular.io/license
906
+ */
907
+
908
+ /**
909
+ * Used to provide a table to some of the sub-components without causing a circular dependency.
910
+ * @docs-private
911
+ */
912
+ declare const CDK_TABLE: InjectionToken<any>;
913
+ /** Configurable options for `CdkTextColumn`. */
914
+ interface TextColumnOptions<T> {
915
+ /**
916
+ * Default function that provides the header text based on the column name if a header
917
+ * text is not provided.
918
+ */
919
+ defaultHeaderTextTransform?: (name: string) => string;
920
+ /** Default data accessor to use if one is not provided. */
921
+ defaultDataAccessor?: (data: T, name: string) => string;
922
+ }
923
+ /** Injection token that can be used to specify the text column options. */
924
+ declare const TEXT_COLUMN_OPTIONS: InjectionToken<TextColumnOptions<any>>;
925
+
926
+ /**
927
+ * @license
928
+ * Copyright Google LLC All Rights Reserved.
929
+ *
930
+ * Use of this source code is governed by an MIT-style license that can be
931
+ * found in the LICENSE file at https://angular.io/license
932
+ */
933
+
934
+ /**
935
+ * Column that simply shows text content for the header and row cells. Assumes that the table
936
+ * is using the native table implementation (`<table>`).
937
+ *
938
+ * By default, the name of this column will be the header text and data property accessor.
939
+ * The header text can be overridden with the `headerText` input. Cell values can be overridden with
940
+ * the `dataAccessor` input. Change the text justification to the start or end using the `justify`
941
+ * input.
942
+ */
943
+ declare class CdkTextColumn<T> implements OnDestroy, OnInit {
944
+ private _table;
945
+ private _options;
946
+ /** Column name that should be used to reference this column. */
947
+ get name(): string;
948
+ set name(name: string);
949
+ _name: string;
950
+ /**
951
+ * Text label that should be used for the column header. If this property is not
952
+ * set, the header text will default to the column name with its first letter capitalized.
953
+ */
954
+ headerText: string;
955
+ /**
956
+ * Accessor function to retrieve the data rendered for each cell. If this
957
+ * property is not set, the data cells will render the value found in the data's property matching
958
+ * the column's name. For example, if the column is named `id`, then the rendered value will be
959
+ * value defined by the data's `id` property.
960
+ */
961
+ dataAccessor: (data: T, name: string) => string;
962
+ /** Alignment of the cell values. */
963
+ justify: 'start' | 'end';
964
+ /** @docs-private */
965
+ columnDef: CdkColumnDef;
966
+ /**
967
+ * The column cell is provided to the column during `ngOnInit` with a static query.
968
+ * Normally, this will be retrieved by the column using `ContentChild`, but that assumes the
969
+ * column definition was provided in the same view as the table, which is not the case with this
970
+ * component.
971
+ * @docs-private
972
+ */
973
+ cell: CdkCellDef;
974
+ /**
975
+ * The column headerCell is provided to the column during `ngOnInit` with a static query.
976
+ * Normally, this will be retrieved by the column using `ContentChild`, but that assumes the
977
+ * column definition was provided in the same view as the table, which is not the case with this
978
+ * component.
979
+ * @docs-private
980
+ */
981
+ headerCell: CdkHeaderCellDef;
982
+ constructor(_table: CdkTable<T>, _options: TextColumnOptions<T>);
983
+ ngOnInit(): void;
984
+ ngOnDestroy(): void;
985
+ /**
986
+ * Creates a default header text. Use the options' header text transformation function if one
987
+ * has been provided. Otherwise simply capitalize the column name.
988
+ */
989
+ _createDefaultHeaderText(): string;
990
+ /** Synchronizes the column definition name with the text column name. */
991
+ private _syncColumnDefName;
992
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkTextColumn<any>, [{ optional: true; }, { optional: true; }]>;
993
+ static ɵcmp: i0.ɵɵComponentDeclaration<CdkTextColumn<any>, "cdk-text-column", never, { "name": { "alias": "name"; "required": false; }; "headerText": { "alias": "headerText"; "required": false; }; "dataAccessor": { "alias": "dataAccessor"; "required": false; }; "justify": { "alias": "justify"; "required": false; }; }, {}, never, never, false, never>;
994
+ }
995
+
996
+ declare class CdkTableModule {
997
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkTableModule, never>;
998
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CdkTableModule, [typeof CdkTable, typeof CdkRowDef, typeof CdkCellDef, typeof CdkCellOutlet, typeof CdkHeaderCellDef, typeof CdkFooterCellDef, typeof CdkColumnDef, typeof CdkCell, typeof CdkRow, typeof CdkHeaderCell, typeof CdkFooterCell, typeof CdkHeaderRow, typeof CdkHeaderRowDef, typeof CdkFooterRow, typeof CdkFooterRowDef, typeof DataRowOutlet, typeof HeaderRowOutlet, typeof FooterRowOutlet, typeof CdkTextColumn, typeof CdkNoDataRow, typeof CdkRecycleRows, typeof NoDataRowOutlet], [typeof i5.ScrollingModule], [typeof CdkTable, typeof CdkRowDef, typeof CdkCellDef, typeof CdkCellOutlet, typeof CdkHeaderCellDef, typeof CdkFooterCellDef, typeof CdkColumnDef, typeof CdkCell, typeof CdkRow, typeof CdkHeaderCell, typeof CdkFooterCell, typeof CdkHeaderRow, typeof CdkHeaderRowDef, typeof CdkFooterRow, typeof CdkFooterRowDef, typeof DataRowOutlet, typeof HeaderRowOutlet, typeof FooterRowOutlet, typeof CdkTextColumn, typeof CdkNoDataRow, typeof CdkRecycleRows, typeof NoDataRowOutlet]>;
999
+ static ɵinj: i0.ɵɵInjectorDeclaration<CdkTableModule>;
1000
+ }
1001
+
1002
+ /**
1003
+ * @license
1004
+ * Copyright Google LLC All Rights Reserved.
1005
+ *
1006
+ * Use of this source code is governed by an MIT-style license that can be
1007
+ * found in the LICENSE file at https://angular.io/license
1008
+ */
1009
+ /**
1010
+ * Directions that can be used when setting sticky positioning.
1011
+ * @docs-private
1012
+ */
1013
+
1014
+ type StickyDirection = 'top' | 'bottom' | 'left' | 'right';
1015
+ /**
1016
+ * List of all possible directions that can be used for sticky positioning.
1017
+ * @docs-private
1018
+ */
1019
+ declare const STICKY_DIRECTIONS: StickyDirection[];
1020
+ /**
1021
+ * Applies and removes sticky positioning styles to the `CdkTable` rows and columns cells.
1022
+ * @docs-private
1023
+ */
1024
+ declare class StickyStyler {
1025
+ private _isNativeHtmlTable;
1026
+ private _stickCellCss;
1027
+ direction: Direction;
1028
+ private _coalescedStyleScheduler;
1029
+ private _isBrowser;
1030
+ private readonly _needsPositionStickyOnElement;
1031
+ private readonly _positionListener?;
1032
+ private _cachedCellWidths;
1033
+ private readonly _borderCellCss;
1034
+ /**
1035
+ * @param _isNativeHtmlTable Whether the sticky logic should be based on a table
1036
+ * that uses the native `<table>` element.
1037
+ * @param _stickCellCss The CSS class that will be applied to every row/cell that has
1038
+ * sticky positioning applied.
1039
+ * @param direction The directionality context of the table (ltr/rtl); affects column positioning
1040
+ * by reversing left/right positions.
1041
+ * @param _isBrowser Whether the table is currently being rendered on the server or the client.
1042
+ * @param _needsPositionStickyOnElement Whether we need to specify position: sticky on cells
1043
+ * using inline styles. If false, it is assumed that position: sticky is included in
1044
+ * the component stylesheet for _stickCellCss.
1045
+ * @param _positionListener A listener that is notified of changes to sticky rows/columns
1046
+ * and their dimensions.
1047
+ */
1048
+ constructor(_isNativeHtmlTable: boolean, _stickCellCss: string, direction: Direction, _coalescedStyleScheduler: _CoalescedStyleScheduler, _isBrowser?: boolean, _needsPositionStickyOnElement?: boolean, _positionListener?: StickyPositioningListener | undefined);
1049
+ /**
1050
+ * Clears the sticky positioning styles from the row and its cells by resetting the `position`
1051
+ * style, setting the zIndex to 0, and unsetting each provided sticky direction.
1052
+ * @param rows The list of rows that should be cleared from sticking in the provided directions
1053
+ * @param stickyDirections The directions that should no longer be set as sticky on the rows.
1054
+ */
1055
+ clearStickyPositioning(rows: HTMLElement[], stickyDirections: StickyDirection[]): void;
1056
+ /**
1057
+ * Applies sticky left and right positions to the cells of each row according to the sticky
1058
+ * states of the rendered column definitions.
1059
+ * @param rows The rows that should have its set of cells stuck according to the sticky states.
1060
+ * @param stickyStartStates A list of boolean states where each state represents whether the cell
1061
+ * in this index position should be stuck to the start of the row.
1062
+ * @param stickyEndStates A list of boolean states where each state represents whether the cell
1063
+ * in this index position should be stuck to the end of the row.
1064
+ * @param recalculateCellWidths Whether the sticky styler should recalculate the width of each
1065
+ * column cell. If `false` cached widths will be used instead.
1066
+ */
1067
+ updateStickyColumns(rows: HTMLElement[], stickyStartStates: boolean[], stickyEndStates: boolean[], recalculateCellWidths?: boolean): void;
1068
+ /**
1069
+ * Applies sticky positioning to the row's cells if using the native table layout, and to the
1070
+ * row itself otherwise.
1071
+ * @param rowsToStick The list of rows that should be stuck according to their corresponding
1072
+ * sticky state and to the provided top or bottom position.
1073
+ * @param stickyStates A list of boolean states where each state represents whether the row
1074
+ * should be stuck in the particular top or bottom position.
1075
+ * @param position The position direction in which the row should be stuck if that row should be
1076
+ * sticky.
1077
+ *
1078
+ */
1079
+ stickRows(rowsToStick: HTMLElement[], stickyStates: boolean[], position: 'top' | 'bottom'): void;
1080
+ /**
1081
+ * When using the native table in Safari, sticky footer cells do not stick. The only way to stick
1082
+ * footer rows is to apply sticky styling to the tfoot container. This should only be done if
1083
+ * all footer rows are sticky. If not all footer rows are sticky, remove sticky positioning from
1084
+ * the tfoot element.
1085
+ */
1086
+ updateStickyFooterContainer(tableElement: Element, stickyStates: boolean[]): void;
1087
+ /**
1088
+ * Removes the sticky style on the element by removing the sticky cell CSS class, re-evaluating
1089
+ * the zIndex, removing each of the provided sticky directions, and removing the
1090
+ * sticky position if there are no more directions.
1091
+ */
1092
+ _removeStickyStyle(element: HTMLElement, stickyDirections: StickyDirection[]): void;
1093
+ /**
1094
+ * Adds the sticky styling to the element by adding the sticky style class, changing position
1095
+ * to be sticky (and -webkit-sticky), setting the appropriate zIndex, and adding a sticky
1096
+ * direction and value.
1097
+ */
1098
+ _addStickyStyle(element: HTMLElement, dir: StickyDirection, dirValue: number, isBorderElement: boolean): void;
1099
+ /**
1100
+ * Calculate what the z-index should be for the element, depending on what directions (top,
1101
+ * bottom, left, right) have been set. It should be true that elements with a top direction
1102
+ * should have the highest index since these are elements like a table header. If any of those
1103
+ * elements are also sticky in another direction, then they should appear above other elements
1104
+ * that are only sticky top (e.g. a sticky column on a sticky header). Bottom-sticky elements
1105
+ * (e.g. footer rows) should then be next in the ordering such that they are below the header
1106
+ * but above any non-sticky elements. Finally, left/right sticky elements (e.g. sticky columns)
1107
+ * should minimally increment so that they are above non-sticky elements but below top and bottom
1108
+ * elements.
1109
+ */
1110
+ _getCalculatedZIndex(element: HTMLElement): string;
1111
+ /** Gets the widths for each cell in the provided row. */
1112
+ _getCellWidths(row: HTMLElement, recalculateCellWidths?: boolean): number[];
1113
+ /**
1114
+ * Determines the left and right positions of each sticky column cell, which will be the
1115
+ * accumulation of all sticky column cell widths to the left and right, respectively.
1116
+ * Non-sticky cells do not need to have a value set since their positions will not be applied.
1117
+ */
1118
+ _getStickyStartColumnPositions(widths: number[], stickyStates: boolean[]): number[];
1119
+ /**
1120
+ * Determines the left and right positions of each sticky column cell, which will be the
1121
+ * accumulation of all sticky column cell widths to the left and right, respectively.
1122
+ * Non-sticky cells do not need to have a value set since their positions will not be applied.
1123
+ */
1124
+ _getStickyEndColumnPositions(widths: number[], stickyStates: boolean[]): number[];
1125
+ }
1126
+
1127
+ export { BaseCdkCell, BaseRowDef, CDK_ROW_TEMPLATE, CDK_TABLE, CDK_TABLE_TEMPLATE, CdkCell, CdkCellDef, CdkCellOutlet, CdkColumnDef, CdkFooterCell, CdkFooterCellDef, CdkFooterRow, CdkFooterRowDef, CdkHeaderCell, CdkHeaderCellDef, CdkHeaderRow, CdkHeaderRowDef, CdkNoDataRow, CdkRecycleRows, CdkRow, CdkRowDef, CdkTable, CdkTableModule, CdkTextColumn, DataRowOutlet, FooterRowOutlet, HeaderRowOutlet, NoDataRowOutlet, STICKY_DIRECTIONS, STICKY_POSITIONING_LISTENER, StickyStyler, TEXT_COLUMN_OPTIONS, _COALESCED_STYLE_SCHEDULER, _CoalescedStyleScheduler, _Schedule, mixinHasStickyInput };
1128
+ export type { CanStick, CanStickCtor, CdkCellOutletMultiRowContext, CdkCellOutletRowContext, CdkTableDataSourceInput, CellDef, Constructor, RenderRow, RowContext, RowOutlet, StickyDirection, StickyOffset, StickyPositioningListener, StickySize, StickyUpdate, TextColumnOptions };