@angular/cdk 10.1.1 → 10.2.0

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 (223) hide show
  1. package/a11y/index.metadata.json +1 -1
  2. package/a11y/key-manager/list-key-manager.d.ts +4 -3
  3. package/bundles/cdk-a11y.umd.js +440 -384
  4. package/bundles/cdk-a11y.umd.js.map +1 -1
  5. package/bundles/cdk-a11y.umd.min.js +34 -10
  6. package/bundles/cdk-a11y.umd.min.js.map +1 -1
  7. package/bundles/cdk-accordion.umd.js +40 -40
  8. package/bundles/cdk-accordion.umd.js.map +1 -1
  9. package/bundles/cdk-accordion.umd.min.js +10 -2
  10. package/bundles/cdk-accordion.umd.min.js.map +1 -1
  11. package/bundles/cdk-bidi.umd.js +25 -25
  12. package/bundles/cdk-bidi.umd.js.map +1 -1
  13. package/bundles/cdk-bidi.umd.min.js +5 -4
  14. package/bundles/cdk-bidi.umd.min.js.map +1 -1
  15. package/bundles/cdk-clipboard.umd.js +37 -36
  16. package/bundles/cdk-clipboard.umd.js.map +1 -1
  17. package/bundles/cdk-clipboard.umd.min.js +10 -2
  18. package/bundles/cdk-clipboard.umd.min.js.map +1 -1
  19. package/bundles/cdk-coercion.umd.js.map +1 -1
  20. package/bundles/cdk-collections.umd.js +498 -238
  21. package/bundles/cdk-collections.umd.js.map +1 -1
  22. package/bundles/cdk-collections.umd.min.js +6 -4
  23. package/bundles/cdk-collections.umd.min.js.map +1 -1
  24. package/bundles/cdk-drag-drop.umd.js +508 -448
  25. package/bundles/cdk-drag-drop.umd.js.map +1 -1
  26. package/bundles/cdk-drag-drop.umd.min.js +64 -8
  27. package/bundles/cdk-drag-drop.umd.min.js.map +1 -1
  28. package/bundles/cdk-keycodes.umd.js.map +1 -1
  29. package/bundles/cdk-layout.umd.js +30 -26
  30. package/bundles/cdk-layout.umd.js.map +1 -1
  31. package/bundles/cdk-layout.umd.min.js +7 -6
  32. package/bundles/cdk-layout.umd.min.js.map +1 -1
  33. package/bundles/cdk-observers.umd.js +34 -34
  34. package/bundles/cdk-observers.umd.js.map +1 -1
  35. package/bundles/cdk-observers.umd.min.js +2 -2
  36. package/bundles/cdk-observers.umd.min.js.map +1 -1
  37. package/bundles/cdk-overlay.umd.js +492 -435
  38. package/bundles/cdk-overlay.umd.js.map +1 -1
  39. package/bundles/cdk-overlay.umd.min.js +51 -11
  40. package/bundles/cdk-overlay.umd.min.js.map +1 -1
  41. package/bundles/cdk-platform.umd.js +38 -11
  42. package/bundles/cdk-platform.umd.js.map +1 -1
  43. package/bundles/cdk-platform.umd.min.js +5 -12
  44. package/bundles/cdk-platform.umd.min.js.map +1 -1
  45. package/bundles/cdk-portal.umd.js +385 -322
  46. package/bundles/cdk-portal.umd.js.map +1 -1
  47. package/bundles/cdk-portal.umd.min.js +3 -12
  48. package/bundles/cdk-portal.umd.min.js.map +1 -1
  49. package/bundles/cdk-scrolling.umd.js +503 -490
  50. package/bundles/cdk-scrolling.umd.js.map +1 -1
  51. package/bundles/cdk-scrolling.umd.min.js +20 -34
  52. package/bundles/cdk-scrolling.umd.min.js.map +1 -1
  53. package/bundles/cdk-stepper.umd.js +135 -136
  54. package/bundles/cdk-stepper.umd.js.map +1 -1
  55. package/bundles/cdk-stepper.umd.min.js +11 -2
  56. package/bundles/cdk-stepper.umd.min.js.map +1 -1
  57. package/bundles/cdk-table.umd.js +923 -653
  58. package/bundles/cdk-table.umd.js.map +1 -1
  59. package/bundles/cdk-table.umd.min.js +7 -22
  60. package/bundles/cdk-table.umd.min.js.map +1 -1
  61. package/bundles/cdk-testing-protractor.umd.js +310 -245
  62. package/bundles/cdk-testing-protractor.umd.js.map +1 -1
  63. package/bundles/cdk-testing-protractor.umd.min.js +2 -9
  64. package/bundles/cdk-testing-protractor.umd.min.js.map +1 -1
  65. package/bundles/cdk-testing-testbed.umd.js +341 -292
  66. package/bundles/cdk-testing-testbed.umd.js.map +1 -1
  67. package/bundles/cdk-testing-testbed.umd.min.js +6 -29
  68. package/bundles/cdk-testing-testbed.umd.min.js.map +1 -1
  69. package/bundles/cdk-testing.umd.js +342 -270
  70. package/bundles/cdk-testing.umd.js.map +1 -1
  71. package/bundles/cdk-testing.umd.min.js +3 -17
  72. package/bundles/cdk-testing.umd.min.js.map +1 -1
  73. package/bundles/cdk-text-field.umd.js +53 -53
  74. package/bundles/cdk-text-field.umd.js.map +1 -1
  75. package/bundles/cdk-text-field.umd.min.js +10 -2
  76. package/bundles/cdk-text-field.umd.min.js.map +1 -1
  77. package/bundles/cdk-tree.umd.js +481 -417
  78. package/bundles/cdk-tree.umd.js.map +1 -1
  79. package/bundles/cdk-tree.umd.min.js +28 -3
  80. package/bundles/cdk-tree.umd.min.js.map +1 -1
  81. package/bundles/cdk.umd.js +1 -1
  82. package/bundles/cdk.umd.js.map +1 -1
  83. package/bundles/cdk.umd.min.js +1 -1
  84. package/bundles/cdk.umd.min.js.map +1 -1
  85. package/collections/dispose-view-repeater-strategy.d.ts +22 -0
  86. package/collections/index.metadata.json +1 -1
  87. package/collections/public-api.d.ts +3 -0
  88. package/collections/recycle-view-repeater-strategy.d.ts +56 -0
  89. package/collections/view-repeater.d.ts +94 -0
  90. package/drag-drop/index.d.ts +1 -2
  91. package/drag-drop/index.metadata.json +1 -1
  92. package/drag-drop/public-api.d.ts +2 -1
  93. package/esm2015/a11y/aria-describer/aria-describer.js +3 -3
  94. package/esm2015/a11y/focus-monitor/focus-monitor.js +3 -3
  95. package/esm2015/a11y/focus-trap/focus-trap.js +5 -4
  96. package/esm2015/a11y/key-manager/list-key-manager.js +8 -6
  97. package/esm2015/clipboard/pending-copy.js +7 -6
  98. package/esm2015/collections/collection-viewer.js +1 -0
  99. package/esm2015/collections/dispose-view-repeater-strategy.js +48 -0
  100. package/esm2015/collections/public-api.js +4 -1
  101. package/esm2015/collections/recycle-view-repeater-strategy.js +128 -0
  102. package/esm2015/collections/selection-model.js +2 -2
  103. package/esm2015/collections/tree-adapter.js +1 -0
  104. package/esm2015/collections/view-repeater.js +16 -0
  105. package/esm2015/drag-drop/clone-node.js +9 -1
  106. package/esm2015/drag-drop/directives/drag-handle.js +1 -3
  107. package/esm2015/drag-drop/directives/drag.js +7 -5
  108. package/esm2015/drag-drop/directives/drop-list.js +3 -3
  109. package/esm2015/drag-drop/drag-events.js +1 -0
  110. package/esm2015/drag-drop/drag-ref.js +2 -2
  111. package/esm2015/drag-drop/index.js +1 -3
  112. package/esm2015/drag-drop/public-api.js +3 -2
  113. package/esm2015/layout/breakpoints-observer.js +9 -9
  114. package/esm2015/overlay/dispatchers/overlay-outside-click-dispatcher.js +11 -9
  115. package/esm2015/overlay/overlay-config.js +1 -5
  116. package/esm2015/overlay/overlay-directives.js +18 -2
  117. package/esm2015/overlay/overlay-ref.js +6 -8
  118. package/esm2015/overlay/overlay-reference.js +1 -0
  119. package/esm2015/overlay/overlay.js +4 -4
  120. package/esm2015/overlay/position/connected-position-strategy.js +2 -9
  121. package/esm2015/overlay/position/flexible-connected-position-strategy.js +19 -16
  122. package/esm2015/overlay/position/position-strategy.js +1 -0
  123. package/esm2015/overlay/scroll/close-scroll-strategy.js +2 -2
  124. package/esm2015/overlay/scroll/reposition-scroll-strategy.js +2 -2
  125. package/esm2015/platform/features/scrolling.js +29 -2
  126. package/esm2015/portal/dom-portal-outlet.js +7 -4
  127. package/esm2015/portal/portal-directives.js +3 -3
  128. package/esm2015/portal/portal-injector.js +3 -1
  129. package/esm2015/portal/portal.js +25 -19
  130. package/esm2015/scrolling/fixed-size-virtual-scroll.js +2 -2
  131. package/esm2015/scrolling/scrolling-module.js +4 -1
  132. package/esm2015/scrolling/virtual-for-of.js +67 -92
  133. package/esm2015/scrolling/virtual-scroll-repeater.js +1 -0
  134. package/esm2015/scrolling/virtual-scroll-viewport.js +5 -5
  135. package/esm2015/stepper/stepper.js +19 -17
  136. package/esm2015/table/cell.js +34 -14
  137. package/esm2015/table/coalesced-style-scheduler.js +87 -0
  138. package/esm2015/table/public-api.js +2 -1
  139. package/esm2015/table/sticky-styler.js +79 -45
  140. package/esm2015/table/table-module.js +4 -2
  141. package/esm2015/table/table.js +70 -44
  142. package/esm2015/table/text-column.js +9 -5
  143. package/esm2015/testing/element-dimensions.js +1 -0
  144. package/esm2015/testing/protractor/protractor-element.js +6 -3
  145. package/esm2015/testing/public-api.js +2 -1
  146. package/esm2015/testing/test-element.js +1 -1
  147. package/esm2015/testing/testbed/task-state-zone-interceptor.js +2 -2
  148. package/esm2015/testing/testbed/unit-test-element.js +26 -21
  149. package/esm2015/testing/text-filtering.js +23 -0
  150. package/esm2015/text-field/autofill.js +3 -3
  151. package/esm2015/tree/control/tree-control.js +1 -0
  152. package/esm2015/tree/nested-node.js +2 -2
  153. package/esm2015/tree/padding.js +34 -20
  154. package/esm2015/tree/tree.js +14 -27
  155. package/esm2015/version.js +1 -1
  156. package/fesm2015/a11y.js +15 -12
  157. package/fesm2015/a11y.js.map +1 -1
  158. package/fesm2015/cdk.js +1 -1
  159. package/fesm2015/cdk.js.map +1 -1
  160. package/fesm2015/clipboard.js +6 -5
  161. package/fesm2015/clipboard.js.map +1 -1
  162. package/fesm2015/collections.js +194 -3
  163. package/fesm2015/collections.js.map +1 -1
  164. package/fesm2015/drag-drop.js +32 -23
  165. package/fesm2015/drag-drop.js.map +1 -1
  166. package/fesm2015/layout.js +8 -8
  167. package/fesm2015/layout.js.map +1 -1
  168. package/fesm2015/overlay.js +55 -48
  169. package/fesm2015/overlay.js.map +1 -1
  170. package/fesm2015/platform.js +28 -1
  171. package/fesm2015/platform.js.map +1 -1
  172. package/fesm2015/portal.js +34 -23
  173. package/fesm2015/portal.js.map +1 -1
  174. package/fesm2015/scrolling.js +72 -95
  175. package/fesm2015/scrolling.js.map +1 -1
  176. package/fesm2015/stepper.js +19 -17
  177. package/fesm2015/stepper.js.map +1 -1
  178. package/fesm2015/table.js +274 -105
  179. package/fesm2015/table.js.map +1 -1
  180. package/fesm2015/testing/protractor.js +5 -2
  181. package/fesm2015/testing/protractor.js.map +1 -1
  182. package/fesm2015/testing/testbed.js +26 -21
  183. package/fesm2015/testing/testbed.js.map +1 -1
  184. package/fesm2015/testing.js +24 -1
  185. package/fesm2015/testing.js.map +1 -1
  186. package/fesm2015/text-field.js +2 -2
  187. package/fesm2015/text-field.js.map +1 -1
  188. package/fesm2015/tree.js +46 -45
  189. package/fesm2015/tree.js.map +1 -1
  190. package/layout/breakpoints-observer.d.ts +3 -3
  191. package/overlay/index.metadata.json +1 -1
  192. package/overlay/overlay-config.d.ts +0 -4
  193. package/overlay/overlay-directives.d.ts +1 -0
  194. package/overlay/position/connected-position-strategy.d.ts +1 -3
  195. package/package.json +1 -1
  196. package/platform/index.metadata.json +1 -1
  197. package/portal/index.metadata.json +1 -1
  198. package/portal/portal-injector.d.ts +2 -0
  199. package/schematics/index.js +1 -1
  200. package/schematics/ng-add/index.js +1 -1
  201. package/schematics/ng-update/data/index.js +1 -1
  202. package/schematics/ng-update/public-api.js +1 -1
  203. package/schematics/update-tool/public-api.js +1 -1
  204. package/schematics/utils/index.js +1 -1
  205. package/scrolling/index.metadata.json +1 -1
  206. package/scrolling/scrolling-module.d.ts +3 -0
  207. package/scrolling/virtual-for-of.d.ts +11 -19
  208. package/stepper/index.metadata.json +1 -1
  209. package/stepper/stepper.d.ts +7 -10
  210. package/table/cell.d.ts +21 -1
  211. package/table/coalesced-style-scheduler.d.ts +41 -0
  212. package/table/index.metadata.json +1 -1
  213. package/table/public-api.d.ts +1 -0
  214. package/table/sticky-styler.d.ts +7 -1
  215. package/table/table.d.ts +14 -8
  216. package/testing/protractor/protractor-element.d.ts +2 -2
  217. package/testing/public-api.d.ts +1 -0
  218. package/testing/test-element.d.ts +9 -2
  219. package/testing/testbed/unit-test-element.d.ts +9 -2
  220. package/testing/text-filtering.d.ts +13 -0
  221. package/tree/index.metadata.json +1 -1
  222. package/tree/padding.d.ts +14 -0
  223. package/tree/tree.d.ts +2 -4
@@ -1,4 +1,4 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/cdk/bidi"),require("@angular/cdk/coercion"),require("@angular/cdk/collections"),require("@angular/cdk/platform"),require("@angular/common"),require("@angular/core"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@angular/cdk/table",["exports","@angular/cdk/bidi","@angular/cdk/coercion","@angular/cdk/collections","@angular/cdk/platform","@angular/common","@angular/core","rxjs","rxjs/operators"],e):e(((t=t||self).ng=t.ng||{},t.ng.cdk=t.ng.cdk||{},t.ng.cdk.table={}),t.ng.cdk.bidi,t.ng.cdk.coercion,t.ng.cdk.collections,t.ng.cdk.platform,t.ng.common,t.ng.core,t.rxjs,t.rxjs.operators)}(this,(function(t,e,o,r,n,i,a,s,c){"use strict";
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/cdk/bidi"),require("@angular/cdk/coercion"),require("@angular/cdk/collections"),require("@angular/cdk/platform"),require("@angular/common"),require("@angular/core"),require("rxjs"),require("rxjs/operators"),require("@angular/cdk/scrolling")):"function"==typeof define&&define.amd?define("@angular/cdk/table",["exports","@angular/cdk/bidi","@angular/cdk/coercion","@angular/cdk/collections","@angular/cdk/platform","@angular/common","@angular/core","rxjs","rxjs/operators","@angular/cdk/scrolling"],t):t(((e=e||self).ng=e.ng||{},e.ng.cdk=e.ng.cdk||{},e.ng.cdk.table={}),e.ng.cdk.bidi,e.ng.cdk.coercion,e.ng.cdk.collections,e.ng.cdk.platform,e.ng.common,e.ng.core,e.rxjs,e.rxjs.operators,e.ng.cdk.scrolling)}(this,(function(e,t,r,o,n,i,a,s,c,l){"use strict";
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -12,30 +12,14 @@
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */var l=function(t,e){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)};function u(t,e){function o(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}function f(t){var e="function"==typeof Symbol&&Symbol.iterator,o=e&&t[e],r=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return a}function d(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(h(arguments[e]));return t}
15
+ ***************************************************************************** */var u=function(e,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function d(e,t){function r(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function f(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a}function p(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(f(arguments[t]));return e}function y(e){return function(e){function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var o=e.apply(this,p(t))||this;return o._sticky=!1,o._hasStickyChanged=!1,o}return d(t,e),Object.defineProperty(t.prototype,"sticky",{get:function(){return this._sticky},set:function(e){var t=this._sticky;this._sticky=r.coerceBooleanProperty(e),this._hasStickyChanged=t!==this._sticky},enumerable:!1,configurable:!0}),t.prototype.hasStickyChanged=function(){var e=this._hasStickyChanged;return this._hasStickyChanged=!1,e},t.prototype.resetStickyChanged=function(){this._hasStickyChanged=!1},t}(e)}
16
16
  /**
17
17
  * @license
18
18
  * Copyright Google LLC All Rights Reserved.
19
19
  *
20
20
  * Use of this source code is governed by an MIT-style license that can be
21
21
  * found in the LICENSE file at https://angular.io/license
22
- */
23
- function p(t){return function(t){function e(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var r=t.apply(this,d(e))||this;return r._sticky=!1,r._hasStickyChanged=!1,r}return u(e,t),Object.defineProperty(e.prototype,"sticky",{get:function(){return this._sticky},set:function(t){var e=this._sticky;this._sticky=o.coerceBooleanProperty(t),this._hasStickyChanged=e!==this._sticky},enumerable:!1,configurable:!0}),e.prototype.hasStickyChanged=function(){var t=this._hasStickyChanged;return this._hasStickyChanged=!1,t},e.prototype.resetStickyChanged=function(){this._hasStickyChanged=!1},e}(t)}
24
- /**
25
- * @license
26
- * Copyright Google LLC All Rights Reserved.
27
- *
28
- * Use of this source code is governed by an MIT-style license that can be
29
- * found in the LICENSE file at https://angular.io/license
30
- */var y,_=new a.InjectionToken("CDK_TABLE"),w=new a.InjectionToken("text-column-options"),m=function(){function t(t){this.template=t}return t.decorators=[{type:a.Directive,args:[{selector:"[cdkCellDef]"}]}],t.ctorParameters=function(){return[{type:a.TemplateRef}]},t}(),g=function(){function t(t){this.template=t}return t.decorators=[{type:a.Directive,args:[{selector:"[cdkHeaderCellDef]"}]}],t.ctorParameters=function(){return[{type:a.TemplateRef}]},t}(),D=function(){function t(t){this.template=t}return t.decorators=[{type:a.Directive,args:[{selector:"[cdkFooterCellDef]"}]}],t.ctorParameters=function(){return[{type:a.TemplateRef}]},t}(),R=function(t){function e(e){var o=t.call(this)||this;return o._table=e,o._stickyEnd=!1,o}return u(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stickyEnd",{get:function(){return this._stickyEnd},set:function(t){var e=this._stickyEnd;this._stickyEnd=o.coerceBooleanProperty(t),this._hasStickyChanged=e!==this._stickyEnd},enumerable:!1,configurable:!0}),e.decorators=[{type:a.Directive,args:[{selector:"[cdkColumnDef]",inputs:["sticky"],providers:[{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]}]}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:a.Inject,args:[_]},{type:a.Optional}]}]},e.propDecorators={name:[{type:a.Input,args:["cdkColumnDef"]}],stickyEnd:[{type:a.Input,args:["stickyEnd"]}],cell:[{type:a.ContentChild,args:[m]}],headerCell:[{type:a.ContentChild,args:[g]}],footerCell:[{type:a.ContentChild,args:[D]}]},e}(p((function C(){}))),v=function(t){function e(e,o){return t.call(this,e,o)||this}return u(e,t),e.decorators=[{type:a.Directive,args:[{selector:"cdk-header-cell, th[cdk-header-cell]",host:{class:"cdk-header-cell",role:"columnheader"}}]}],e.ctorParameters=function(){return[{type:R},{type:a.ElementRef}]},e}(y=function y(t,e){e.nativeElement.classList.add("cdk-column-"+t.cssClassFriendlyName)}),k=function(t){function e(e,o){return t.call(this,e,o)||this}return u(e,t),e.decorators=[{type:a.Directive,args:[{selector:"cdk-footer-cell, td[cdk-footer-cell]",host:{class:"cdk-footer-cell",role:"gridcell"}}]}],e.ctorParameters=function(){return[{type:R},{type:a.ElementRef}]},e}(y),S=function(t){function e(e,o){return t.call(this,e,o)||this}return u(e,t),e.decorators=[{type:a.Directive,args:[{selector:"cdk-cell, td[cdk-cell]",host:{class:"cdk-cell",role:"gridcell"}}]}],e.ctorParameters=function(){return[{type:R},{type:a.ElementRef}]},e}(y),b="<ng-container cdkCellOutlet></ng-container>",O=function(){function t(t,e){this.template=t,this._differs=e}return t.prototype.ngOnChanges=function(t){if(!this._columnsDiffer){var e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}},t.prototype.getColumnsDiff=function(){return this._columnsDiffer.diff(this.columns)},t.prototype.extractCellTemplate=function(t){return this instanceof E?t.headerCell.template:this instanceof x?t.footerCell.template:t.cell.template},t.decorators=[{type:a.Directive}],t.ctorParameters=function(){return[{type:a.TemplateRef},{type:a.IterableDiffers}]},t}(),E=function(t){function e(e,o,r){var n=t.call(this,e,o)||this;return n._table=r,n}return u(e,t),e.prototype.ngOnChanges=function(e){t.prototype.ngOnChanges.call(this,e)},e.decorators=[{type:a.Directive,args:[{selector:"[cdkHeaderRowDef]",inputs:["columns: cdkHeaderRowDef","sticky: cdkHeaderRowDefSticky"]}]}],e.ctorParameters=function(){return[{type:a.TemplateRef},{type:a.IterableDiffers},{type:void 0,decorators:[{type:a.Inject,args:[_]},{type:a.Optional}]}]},e}(p(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e}(O))),x=function(t){function e(e,o,r){var n=t.call(this,e,o)||this;return n._table=r,n}return u(e,t),e.prototype.ngOnChanges=function(e){t.prototype.ngOnChanges.call(this,e)},e.decorators=[{type:a.Directive,args:[{selector:"[cdkFooterRowDef]",inputs:["columns: cdkFooterRowDef","sticky: cdkFooterRowDefSticky"]}]}],e.ctorParameters=function(){return[{type:a.TemplateRef},{type:a.IterableDiffers},{type:void 0,decorators:[{type:a.Inject,args:[_]},{type:a.Optional}]}]},e}(p(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e}(O))),T=function(t){function e(e,o,r){var n=t.call(this,e,o)||this;return n._table=r,n}return u(e,t),e.decorators=[{type:a.Directive,args:[{selector:"[cdkRowDef]",inputs:["columns: cdkRowDefColumns","when: cdkRowDefWhen"]}]}],e.ctorParameters=function(){return[{type:a.TemplateRef},{type:a.IterableDiffers},{type:void 0,decorators:[{type:a.Inject,args:[_]},{type:a.Optional}]}]},e}(O),N=function(){function t(e){this._viewContainer=e,t.mostRecentCellOutlet=this}return t.prototype.ngOnDestroy=function(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)},t.mostRecentCellOutlet=null,t.decorators=[{type:a.Directive,args:[{selector:"[cdkCellOutlet]"}]}],t.ctorParameters=function(){return[{type:a.ViewContainerRef}]},t}(),I=function(){function t(){}return t.decorators=[{type:a.Component,args:[{selector:"cdk-header-row, tr[cdk-header-row]",template:b,host:{class:"cdk-header-row",role:"row"},changeDetection:a.ChangeDetectionStrategy.Default,encapsulation:a.ViewEncapsulation.None}]}],t}(),P=function(){function t(){}return t.decorators=[{type:a.Component,args:[{selector:"cdk-footer-row, tr[cdk-footer-row]",template:b,host:{class:"cdk-footer-row",role:"row"},changeDetection:a.ChangeDetectionStrategy.Default,encapsulation:a.ViewEncapsulation.None}]}],t}(),H=function(){function t(){}return t.decorators=[{type:a.Component,args:[{selector:"cdk-row, tr[cdk-row]",template:b,host:{class:"cdk-row",role:"row"},changeDetection:a.ChangeDetectionStrategy.Default,encapsulation:a.ViewEncapsulation.None}]}],t}(),F=function(){function t(t){this.templateRef=t}return t.decorators=[{type:a.Directive,args:[{selector:"ng-template[cdkNoDataRow]"}]}],t.ctorParameters=function(){return[{type:a.TemplateRef}]},t}(),j=["top","bottom","left","right"],B=function(){function t(t,e,o,r){void 0===r&&(r=!0),this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=o,this._isBrowser=r}return t.prototype.clearStickyPositioning=function(t,e){var o,r;try{for(var n=f(t),i=n.next();!i.done;i=n.next()){var a=i.value;if(a.nodeType===a.ELEMENT_NODE){this._removeStickyStyle(a,e);for(var s=0;s<a.children.length;s++)this._removeStickyStyle(a.children[s],e)}}}catch(t){o={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}},t.prototype.updateStickyColumns=function(t,e,o){var r,n,i=e.some((function(t){return t}))||o.some((function(t){return t}));if(t.length&&i&&this._isBrowser){var a=t[0],s=a.children.length,c=this._getCellWidths(a),l=this._getStickyStartColumnPositions(c,e),u=this._getStickyEndColumnPositions(c,o),h="rtl"===this.direction;try{for(var d=f(t),p=d.next();!p.done;p=d.next())for(var y=p.value,_=0;_<s;_++){var w=y.children[_];e[_]&&this._addStickyStyle(w,h?"right":"left",l[_]),o[_]&&this._addStickyStyle(w,h?"left":"right",u[_])}}catch(t){r={error:t}}finally{try{p&&!p.done&&(n=d.return)&&n.call(d)}finally{if(r)throw r.error}}}},t.prototype.stickRows=function(t,e,o){if(this._isBrowser)for(var r="bottom"===o?t.slice().reverse():t,n="bottom"===o?e.slice().reverse():e,i=0,a=0;a<r.length;a++)if(n[a]){var s=r[a];if(this._isNativeHtmlTable)for(var c=0;c<s.children.length;c++)this._addStickyStyle(s.children[c],o,i);else this._addStickyStyle(s,o,i);if(a===r.length-1)return;i+=s.getBoundingClientRect().height}},t.prototype.updateStickyFooterContainer=function(t,e){if(this._isNativeHtmlTable){var o=t.querySelector("tfoot");e.some((function(t){return!t}))?this._removeStickyStyle(o,["bottom"]):this._addStickyStyle(o,"bottom",0)}},t.prototype._removeStickyStyle=function(t,e){var o,r;try{for(var n=f(e),i=n.next();!i.done;i=n.next())t.style[i.value]=""}catch(t){o={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}t.style.zIndex=this._getCalculatedZIndex(t),j.some((function(e){return!!t.style[e]}))||(t.style.position="",t.classList.remove(this._stickCellCss))},t.prototype._addStickyStyle=function(t,e,o){t.classList.add(this._stickCellCss),t.style[e]=o+"px",t.style.cssText+="position: -webkit-sticky; position: sticky; ",t.style.zIndex=this._getCalculatedZIndex(t)},t.prototype._getCalculatedZIndex=function(t){var e,o,r={top:100,bottom:10,left:1,right:1},n=0;try{for(var i=f(j),a=i.next();!a.done;a=i.next()){var s=a.value;t.style[s]&&(n+=r[s])}}catch(t){e={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(e)throw e.error}}return n?""+n:""},t.prototype._getCellWidths=function(t){for(var e=[],o=t.children,r=0;r<o.length;r++)e.push(o[r].getBoundingClientRect().width);return e},t.prototype._getStickyStartColumnPositions=function(t,e){for(var o=[],r=0,n=0;n<t.length;n++)e[n]&&(o[n]=r,r+=t[n]);return o},t.prototype._getStickyEndColumnPositions=function(t,e){for(var o=[],r=0,n=t.length;n>0;n--)e[n]&&(o[n]=r,r+=t[n]);return o},t}();
31
- /**
32
- * @license
33
- * Copyright Google LLC All Rights Reserved.
34
- *
35
- * Use of this source code is governed by an MIT-style license that can be
36
- * found in the LICENSE file at https://angular.io/license
37
- */
38
- function A(t){return Error('Could not find column with id "'+t+'".')}
22
+ */var _,m,w,g=new a.InjectionToken("CDK_TABLE"),R=new a.InjectionToken("text-column-options");(_=function _(e){this.template=e}).decorators=[{type:a.Directive,args:[{selector:"[cdkCellDef]"}]}],_.ctorParameters=function(){return[{type:a.TemplateRef}]},(m=function m(e){this.template=e}).decorators=[{type:a.Directive,args:[{selector:"[cdkHeaderCellDef]"}]}],m.ctorParameters=function(){return[{type:a.TemplateRef}]},(w=function w(e){this.template=e}).decorators=[{type:a.Directive,args:[{selector:"[cdkFooterCellDef]"}]}],w.ctorParameters=function(){return[{type:a.TemplateRef}]};var C=function(e){function t(t){var r=e.call(this)||this;return r._table=t,r._stickyEnd=!1,r}return d(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){this._setNameInput(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stickyEnd",{get:function(){return this._stickyEnd},set:function(e){var t=this._stickyEnd;this._stickyEnd=r.coerceBooleanProperty(e),this._hasStickyChanged=t!==this._stickyEnd},enumerable:!1,configurable:!0}),t.prototype._updateColumnCssClassName=function(){this._columnCssClassName=["cdk-column-"+this.cssClassFriendlyName]},t.prototype._setNameInput=function(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())},t}(y((function D(){})));C.decorators=[{type:a.Directive,args:[{selector:"[cdkColumnDef]",inputs:["sticky"],providers:[{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:C}]}]}],C.ctorParameters=function(){return[{type:void 0,decorators:[{type:a.Inject,args:[g]},{type:a.Optional}]}]},C.propDecorators={name:[{type:a.Input,args:["cdkColumnDef"]}],stickyEnd:[{type:a.Input,args:["stickyEnd"]}],cell:[{type:a.ContentChild,args:[_]}],headerCell:[{type:a.ContentChild,args:[m]}],footerCell:[{type:a.ContentChild,args:[w]}]};var v,k=function(e){function t(t,r){return e.call(this,t,r)||this}return d(t,e),t}(v=function v(e,t){var r,o,n=t.nativeElement.classList;try{for(var i=h(e._columnCssClassName),a=i.next();!a.done;a=i.next())n.add(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}});k.decorators=[{type:a.Directive,args:[{selector:"cdk-header-cell, th[cdk-header-cell]",host:{class:"cdk-header-cell",role:"columnheader"}}]}],k.ctorParameters=function(){return[{type:C},{type:a.ElementRef}]};var S=function(e){function t(t,r){return e.call(this,t,r)||this}return d(t,e),t}(v);S.decorators=[{type:a.Directive,args:[{selector:"cdk-footer-cell, td[cdk-footer-cell]",host:{class:"cdk-footer-cell",role:"gridcell"}}]}],S.ctorParameters=function(){return[{type:C},{type:a.ElementRef}]};var b=function(e){function t(t,r){return e.call(this,t,r)||this}return d(t,e),t}(v);b.decorators=[{type:a.Directive,args:[{selector:"cdk-cell, td[cdk-cell]",host:{class:"cdk-cell",role:"gridcell"}}]}],b.ctorParameters=function(){return[{type:C},{type:a.ElementRef}]};var O=function O(){this.tasks=[],this.endTasks=[]},E=function(){function e(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new s.Subject}return e.prototype.schedule=function(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)},e.prototype.scheduleEnd=function(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)},e.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete()},e.prototype._createScheduleIfNeeded=function(){var e=this;this._currentSchedule||(this._currentSchedule=new O,this._getScheduleObservable().pipe(c.takeUntil(this._destroyed)).subscribe((function(){for(var t,r,o,n;e._currentSchedule.tasks.length||e._currentSchedule.endTasks.length;){var i=e._currentSchedule;e._currentSchedule=new O;try{for(var a=(t=void 0,h(i.tasks)),s=a.next();!s.done;s=a.next())(0,s.value)()}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}try{for(var c=(o=void 0,h(i.endTasks)),l=c.next();!l.done;l=c.next())(0,l.value)()}catch(e){o={error:e}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(o)throw o.error}}}e._currentSchedule=null})))},e.prototype._getScheduleObservable=function(){return this._ngZone.isStable?s.from(Promise.resolve(void 0)):this._ngZone.onStable.pipe(c.take(1))},e}();E.decorators=[{type:a.Injectable}],E.ctorParameters=function(){return[{type:a.NgZone}]};var x="<ng-container cdkCellOutlet></ng-container>",T=function(){function e(e,t){this.template=e,this._differs=t}return e.prototype.ngOnChanges=function(e){if(!this._columnsDiffer){var t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}},e.prototype.getColumnsDiff=function(){return this._columnsDiffer.diff(this.columns)},e.prototype.extractCellTemplate=function(e){return this instanceof I?e.headerCell.template:this instanceof N?e.footerCell.template:e.cell.template},e}();T.decorators=[{type:a.Directive}],T.ctorParameters=function(){return[{type:a.TemplateRef},{type:a.IterableDiffers}]};var I=function(e){function t(t,r,o){var n=e.call(this,t,r)||this;return n._table=o,n}return d(t,e),t.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t)},t}(y(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t}(T)));I.decorators=[{type:a.Directive,args:[{selector:"[cdkHeaderRowDef]",inputs:["columns: cdkHeaderRowDef","sticky: cdkHeaderRowDefSticky"]}]}],I.ctorParameters=function(){return[{type:a.TemplateRef},{type:a.IterableDiffers},{type:void 0,decorators:[{type:a.Inject,args:[g]},{type:a.Optional}]}]};var N=function(e){function t(t,r,o){var n=e.call(this,t,r)||this;return n._table=o,n}return d(t,e),t.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t)},t}(y(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t}(T)));N.decorators=[{type:a.Directive,args:[{selector:"[cdkFooterRowDef]",inputs:["columns: cdkFooterRowDef","sticky: cdkFooterRowDefSticky"]}]}],N.ctorParameters=function(){return[{type:a.TemplateRef},{type:a.IterableDiffers},{type:void 0,decorators:[{type:a.Inject,args:[g]},{type:a.Optional}]}]};var P=function(e){function t(t,r,o){var n=e.call(this,t,r)||this;return n._table=o,n}return d(t,e),t}(T);P.decorators=[{type:a.Directive,args:[{selector:"[cdkRowDef]",inputs:["columns: cdkRowDefColumns","when: cdkRowDefWhen"]}]}],P.ctorParameters=function(){return[{type:a.TemplateRef},{type:a.IterableDiffers},{type:void 0,decorators:[{type:a.Inject,args:[g]},{type:a.Optional}]}]};var A,F,j,H,B=function(){function e(t){this._viewContainer=t,e.mostRecentCellOutlet=this}return e.prototype.ngOnDestroy=function(){e.mostRecentCellOutlet===this&&(e.mostRecentCellOutlet=null)},e}();B.mostRecentCellOutlet=null,B.decorators=[{type:a.Directive,args:[{selector:"[cdkCellOutlet]"}]}],B.ctorParameters=function(){return[{type:a.ViewContainerRef}]},(A=function A(){}).decorators=[{type:a.Component,args:[{selector:"cdk-header-row, tr[cdk-header-row]",template:x,host:{class:"cdk-header-row",role:"row"},changeDetection:a.ChangeDetectionStrategy.Default,encapsulation:a.ViewEncapsulation.None}]}],(F=function F(){}).decorators=[{type:a.Component,args:[{selector:"cdk-footer-row, tr[cdk-footer-row]",template:x,host:{class:"cdk-footer-row",role:"row"},changeDetection:a.ChangeDetectionStrategy.Default,encapsulation:a.ViewEncapsulation.None}]}],(j=function j(){}).decorators=[{type:a.Component,args:[{selector:"cdk-row, tr[cdk-row]",template:x,host:{class:"cdk-row",role:"row"},changeDetection:a.ChangeDetectionStrategy.Default,encapsulation:a.ViewEncapsulation.None}]}],(H=function H(e){this.templateRef=e}).decorators=[{type:a.Directive,args:[{selector:"ng-template[cdkNoDataRow]"}]}],H.ctorParameters=function(){return[{type:a.TemplateRef}]};
39
23
  /**
40
24
  * @license
41
25
  * Copyright Google LLC All Rights Reserved.
@@ -43,14 +27,14 @@ function A(t){return Error('Could not find column with id "'+t+'".')}
43
27
  * Use of this source code is governed by an MIT-style license that can be
44
28
  * found in the LICENSE file at https://angular.io/license
45
29
  */
46
- var M,V=function(){function t(t,e){this.viewContainer=t,this.elementRef=e}return t.decorators=[{type:a.Directive,args:[{selector:"[rowOutlet]"}]}],t.ctorParameters=function(){return[{type:a.ViewContainerRef},{type:a.ElementRef}]},t}(),L=function(){function t(t,e){this.viewContainer=t,this.elementRef=e}return t.decorators=[{type:a.Directive,args:[{selector:"[headerRowOutlet]"}]}],t.ctorParameters=function(){return[{type:a.ViewContainerRef},{type:a.ElementRef}]},t}(),q=function(){function t(t,e){this.viewContainer=t,this.elementRef=e}return t.decorators=[{type:a.Directive,args:[{selector:"[footerRowOutlet]"}]}],t.ctorParameters=function(){return[{type:a.ViewContainerRef},{type:a.ElementRef}]},t}(),U=function(){function t(t,e){this.viewContainer=t,this.elementRef=e}return t.decorators=[{type:a.Directive,args:[{selector:"[noDataRowOutlet]"}]}],t.ctorParameters=function(){return[{type:a.ViewContainerRef},{type:a.ElementRef}]},t}(),K='\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',W=(u((function z(){return null!==M&&M.apply(this,arguments)||this}),M=a.EmbeddedViewRef),function(){function t(t,e,o,r,n,i,a){this._differs=t,this._changeDetectorRef=e,this._elementRef=o,this._dir=n,this._platform=a,this._onDestroy=new s.Subject,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this.viewChange=new s.BehaviorSubject({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=i,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return Object.defineProperty(t.prototype,"trackBy",{get:function(){return this._trackByFn},set:function(t){a.isDevMode()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+"."),this._trackByFn=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataSource",{get:function(){return this._dataSource},set:function(t){this._dataSource!==t&&this._switchDataSource(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"multiTemplateDataRows",{get:function(){return this._multiTemplateDataRows},set:function(t){this._multiTemplateDataRows=o.coerceBooleanProperty(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&this._forceRenderDataRows()},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((function(e,o){return t.trackBy?t.trackBy(o.dataIndex,o.data):o}))},t.prototype.ngAfterContentChecked=function(){if(this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&!this._rowDefs.length)throw function t(){return Error("Missing definitions for header, footer, and row; cannot determine which columns should be rendered.")}();this._renderUpdatedColumns(),this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription&&this._observeRenderChanges(),this._checkStickyStates()},t.prototype.ngOnDestroy=function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),r.isDataSource(this.dataSource)&&this.dataSource.disconnect(this)},t.prototype.renderRows=function(){var t=this;this._renderRows=this._getAllRenderRows();var e=this._dataDiffer.diff(this._renderRows);if(e){var o=this._rowOutlet.viewContainer;e.forEachOperation((function(e,r,n){if(null==e.previousIndex)t._insertRow(e.item,n);else if(null==n)o.remove(r);else{var i=o.get(r);o.move(i,n)}})),this._updateRowIndexContext(),e.forEachIdentityChange((function(t){o.get(t.currentIndex).context.$implicit=t.item.data})),this._updateNoDataRow(),this.updateStickyColumnStyles()}else this._updateNoDataRow()},t.prototype.addColumnDef=function(t){this._customColumnDefs.add(t)},t.prototype.removeColumnDef=function(t){this._customColumnDefs.delete(t)},t.prototype.addRowDef=function(t){this._customRowDefs.add(t)},t.prototype.removeRowDef=function(t){this._customRowDefs.delete(t)},t.prototype.addHeaderRowDef=function(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0},t.prototype.removeHeaderRowDef=function(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0},t.prototype.addFooterRowDef=function(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0},t.prototype.removeFooterRowDef=function(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0},t.prototype.updateStickyHeaderRowStyles=function(){var t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");var o=this._headerRowDefs.map((function(t){return t.sticky}));this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,o,"top"),this._headerRowDefs.forEach((function(t){return t.resetStickyChanged()}))},t.prototype.updateStickyFooterRowStyles=function(){var t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");var o=this._footerRowDefs.map((function(t){return t.sticky}));this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,o,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,o),this._footerRowDefs.forEach((function(t){return t.resetStickyChanged()}))},t.prototype.updateStickyColumnStyles=function(){var t=this,e=this._getRenderedRows(this._headerRowOutlet),o=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);this._stickyStyler.clearStickyPositioning(d(e,o,r),["left","right"]),e.forEach((function(e,o){t._addStickyColumnStyles([e],t._headerRowDefs[o])})),this._rowDefs.forEach((function(e){for(var r=[],n=0;n<o.length;n++)t._renderRows[n].rowDef===e&&r.push(o[n]);t._addStickyColumnStyles(r,e)})),r.forEach((function(e,o){t._addStickyColumnStyles([e],t._footerRowDefs[o])})),Array.from(this._columnDefsByName.values()).forEach((function(t){return t.resetStickyChanged()}))},t.prototype._getAllRenderRows=function(){var t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(var o=0;o<this._data.length;o++){var r=this._data[o],n=this._getRenderRowsForData(r,o,e.get(r));this._cachedRenderRowsMap.has(r)||this._cachedRenderRowsMap.set(r,new WeakMap);for(var i=0;i<n.length;i++){var a=n[i],s=this._cachedRenderRowsMap.get(a.data);s.has(a.rowDef)?s.get(a.rowDef).push(a):s.set(a.rowDef,[a]),t.push(a)}}return t},t.prototype._getRenderRowsForData=function(t,e,o){return this._getRowDefs(t,e).map((function(r){var n=o&&o.has(r)?o.get(r):[];if(n.length){var i=n.shift();return i.dataIndex=e,i}return{data:t,rowDef:r,dataIndex:e}}))},t.prototype._cacheColumnDefs=function(){var t=this;this._columnDefsByName.clear(),Z(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach((function(e){if(t._columnDefsByName.has(e.name))throw function o(t){return Error('Duplicate column definition name provided: "'+t+'".')}(e.name);t._columnDefsByName.set(e.name,e)}))},t.prototype._cacheRowDefs=function(){this._headerRowDefs=Z(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Z(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Z(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);var t=this._rowDefs.filter((function(t){return!t.when}));if(!this.multiTemplateDataRows&&t.length>1)throw function e(){return Error("There can only be one default row without a when predicate function.")}();this._defaultRowDef=t[0]},t.prototype._renderUpdatedColumns=function(){var t=function(t,e){return t||!!e.getColumnsDiff()};this._rowDefs.reduce(t,!1)&&this._forceRenderDataRows(),this._headerRowDefs.reduce(t,!1)&&this._forceRenderHeaderRows(),this._footerRowDefs.reduce(t,!1)&&this._forceRenderFooterRows()},t.prototype._switchDataSource=function(t){this._data=[],r.isDataSource(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t},t.prototype._observeRenderChanges=function(){var t=this;if(this.dataSource){var e;if(r.isDataSource(this.dataSource)?e=this.dataSource.connect(this):s.isObservable(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=s.of(this.dataSource)),void 0===e)throw function o(){return Error("Provided data source did not match an array, Observable, or DataSource")}();this._renderChangeSubscription=e.pipe(c.takeUntil(this._onDestroy)).subscribe((function(e){t._data=e||[],t.renderRows()}))}},t.prototype._forceRenderHeaderRows=function(){var t=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((function(e,o){return t._renderRow(t._headerRowOutlet,e,o)})),this.updateStickyHeaderRowStyles(),this.updateStickyColumnStyles()},t.prototype._forceRenderFooterRows=function(){var t=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((function(e,o){return t._renderRow(t._footerRowOutlet,e,o)})),this.updateStickyFooterRowStyles(),this.updateStickyColumnStyles()},t.prototype._addStickyColumnStyles=function(t,e){var o=this,r=Array.from(e.columns||[]).map((function(t){var e=o._columnDefsByName.get(t);if(!e)throw A(t);return e})),n=r.map((function(t){return t.sticky})),i=r.map((function(t){return t.stickyEnd}));this._stickyStyler.updateStickyColumns(t,n,i)},t.prototype._getRenderedRows=function(t){for(var e=[],o=0;o<t.viewContainer.length;o++){var r=t.viewContainer.get(o);e.push(r.rootNodes[0])}return e},t.prototype._getRowDefs=function(t,e){if(1==this._rowDefs.length)return[this._rowDefs[0]];var o=[];if(this.multiTemplateDataRows)o=this._rowDefs.filter((function(o){return!o.when||o.when(e,t)}));else{var r=this._rowDefs.find((function(o){return o.when&&o.when(e,t)}))||this._defaultRowDef;r&&o.push(r)}if(!o.length)throw function n(t){return Error("Could not find a matching row definition for theprovided row data: "+JSON.stringify(t))}(t);return o},t.prototype._insertRow=function(t,e){this._renderRow(this._rowOutlet,t.rowDef,e,{$implicit:t.data})},t.prototype._renderRow=function(t,e,o,r){var n,i;void 0===r&&(r={}),t.viewContainer.createEmbeddedView(e.template,r,o);try{for(var a=f(this._getCellTemplates(e)),s=a.next();!s.done;s=a.next())N.mostRecentCellOutlet&&N.mostRecentCellOutlet._viewContainer.createEmbeddedView(s.value,r)}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}this._changeDetectorRef.markForCheck()},t.prototype._updateRowIndexContext=function(){for(var t=this._rowOutlet.viewContainer,e=0,o=t.length;e<o;e++){var r=t.get(e).context;r.count=o,r.first=0===e,r.last=e===o-1,r.even=e%2==0,r.odd=!r.even,this.multiTemplateDataRows?(r.dataIndex=this._renderRows[e].dataIndex,r.renderIndex=e):r.index=this._renderRows[e].dataIndex}},t.prototype._getCellTemplates=function(t){var e=this;return t&&t.columns?Array.from(t.columns,(function(o){var r=e._columnDefsByName.get(o);if(!r)throw A(o);return t.extractCellTemplate(r)})):[]},t.prototype._applyNativeTableSections=function(){var t,e,o,r,n=this._document.createDocumentFragment(),i=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];try{for(var a=f(i),s=a.next();!s.done;s=a.next()){var c=s.value,l=this._document.createElement(c.tag);l.setAttribute("role","rowgroup");try{for(var u=(o=void 0,f(c.outlets)),h=u.next();!h.done;h=u.next())l.appendChild(h.value.elementRef.nativeElement)}catch(t){o={error:t}}finally{try{h&&!h.done&&(r=u.return)&&r.call(u)}finally{if(o)throw o.error}}n.appendChild(l)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}this._elementRef.nativeElement.appendChild(n)},t.prototype._forceRenderDataRows=function(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows(),this.updateStickyColumnStyles()},t.prototype._checkStickyStates=function(){var t=function(t,e){return t||e.hasStickyChanged()};this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&this.updateStickyColumnStyles()},t.prototype._setupStickyStyler=function(){var t=this;this._stickyStyler=new B(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._platform.isBrowser),(this._dir?this._dir.change:s.of()).pipe(c.takeUntil(this._onDestroy)).subscribe((function(e){t._stickyStyler.direction=e,t.updateStickyColumnStyles()}))},t.prototype._getOwnDefs=function(t){var e=this;return t.filter((function(t){return!t._table||t._table===e}))},t.prototype._updateNoDataRow=function(){if(this._noDataRow){var t=0===this._rowOutlet.viewContainer.length;if(t!==this._isShowingNoDataRow){var e=this._noDataRowOutlet.viewContainer;t?e.createEmbeddedView(this._noDataRow.templateRef):e.clear(),this._isShowingNoDataRow=t}}},t.decorators=[{type:a.Component,args:[{selector:"cdk-table, table[cdk-table]",exportAs:"cdkTable",template:K,host:{class:"cdk-table"},encapsulation:a.ViewEncapsulation.None,changeDetection:a.ChangeDetectionStrategy.Default,providers:[{provide:_,useExisting:t}]}]}],t.ctorParameters=function(){return[{type:a.IterableDiffers},{type:a.ChangeDetectorRef},{type:a.ElementRef},{type:String,decorators:[{type:a.Attribute,args:["role"]}]},{type:e.Directionality,decorators:[{type:a.Optional}]},{type:void 0,decorators:[{type:a.Inject,args:[i.DOCUMENT]}]},{type:n.Platform}]},t.propDecorators={trackBy:[{type:a.Input}],dataSource:[{type:a.Input}],multiTemplateDataRows:[{type:a.Input}],_rowOutlet:[{type:a.ViewChild,args:[V,{static:!0}]}],_headerRowOutlet:[{type:a.ViewChild,args:[L,{static:!0}]}],_footerRowOutlet:[{type:a.ViewChild,args:[q,{static:!0}]}],_noDataRowOutlet:[{type:a.ViewChild,args:[U,{static:!0}]}],_contentColumnDefs:[{type:a.ContentChildren,args:[R,{descendants:!0}]}],_contentRowDefs:[{type:a.ContentChildren,args:[T,{descendants:!0}]}],_contentHeaderRowDefs:[{type:a.ContentChildren,args:[E,{descendants:!0}]}],_contentFooterRowDefs:[{type:a.ContentChildren,args:[x,{descendants:!0}]}],_noDataRow:[{type:a.ContentChild,args:[F]}]},t}());function Z(t,e){return t.concat(Array.from(e))}
30
+ var V,M,L,q,U=["top","bottom","left","right"],W=function(){function e(e,t,r,o,n,i){void 0===n&&(n=!0),void 0===i&&(i=!0),this._isNativeHtmlTable=e,this._stickCellCss=t,this.direction=r,this._coalescedStyleScheduler=o,this._isBrowser=n,this._needsPositionStickyOnElement=i}return e.prototype.clearStickyPositioning=function(e,t){var r,o,n=this,i=[];try{for(var a=h(e),s=a.next();!s.done;s=a.next()){var c=s.value;if(c.nodeType===c.ELEMENT_NODE){i.push(c);for(var l=0;l<c.children.length;l++)i.push(c.children[l])}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}this._coalescedStyleScheduler.schedule((function(){var e,r;try{for(var o=h(i),a=o.next();!a.done;a=o.next())n._removeStickyStyle(a.value,t)}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}}))},e.prototype.updateStickyColumns=function(e,t,r){var o=this;if(e.length&&this._isBrowser&&(t.some((function(e){return e}))||r.some((function(e){return e})))){var n=e[0],i=n.children.length,a=this._getCellWidths(n),s=this._getStickyStartColumnPositions(a,t),c=this._getStickyEndColumnPositions(a,r);this._coalescedStyleScheduler.schedule((function(){var n,a,l="rtl"===o.direction,u=l?"right":"left",d=l?"left":"right";try{for(var f=h(e),p=f.next();!p.done;p=f.next())for(var y=p.value,_=0;_<i;_++){var m=y.children[_];t[_]&&o._addStickyStyle(m,u,s[_]),r[_]&&o._addStickyStyle(m,d,c[_])}}catch(e){n={error:e}}finally{try{p&&!p.done&&(a=f.return)&&a.call(f)}finally{if(n)throw n.error}}}))}},e.prototype.stickRows=function(e,t,r){var o=this;if(this._isBrowser){for(var n="bottom"===r?e.slice().reverse():e,i="bottom"===r?t.slice().reverse():t,a=[],s=[],c=0,l=0;c<n.length;c++)if(a[c]=l,i[c]){var u=n[c];s[c]=this._isNativeHtmlTable?Array.from(u.children):[u],c!==n.length-1&&(l+=u.getBoundingClientRect().height)}this._coalescedStyleScheduler.schedule((function(){for(var e,t,c=0;c<n.length;c++)if(i[c]){var l=a[c];try{for(var u=(e=void 0,h(s[c])),d=u.next();!d.done;d=u.next())o._addStickyStyle(d.value,r,l)}catch(t){e={error:t}}finally{try{d&&!d.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}}}))}},e.prototype.updateStickyFooterContainer=function(e,t){var r=this;if(this._isNativeHtmlTable){var o=e.querySelector("tfoot");this._coalescedStyleScheduler.schedule((function(){t.some((function(e){return!e}))?r._removeStickyStyle(o,["bottom"]):r._addStickyStyle(o,"bottom",0)}))}},e.prototype._removeStickyStyle=function(e,t){var r,o;try{for(var n=h(t),i=n.next();!i.done;i=n.next())e.style[i.value]=""}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}U.some((function(r){return-1===t.indexOf(r)&&e.style[r]}))?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))},e.prototype._addStickyStyle=function(e,t,r){e.classList.add(this._stickCellCss),e.style[t]=r+"px",e.style.zIndex=this._getCalculatedZIndex(e),this._needsPositionStickyOnElement&&(e.style.cssText+="position: -webkit-sticky; position: sticky; ")},e.prototype._getCalculatedZIndex=function(e){var t,r,o={top:100,bottom:10,left:1,right:1},n=0;try{for(var i=h(U),a=i.next();!a.done;a=i.next()){var s=a.value;e.style[s]&&(n+=o[s])}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n?""+n:""},e.prototype._getCellWidths=function(e){for(var t=[],r=e.children,o=0;o<r.length;o++)t.push(r[o].getBoundingClientRect().width);return t},e.prototype._getStickyStartColumnPositions=function(e,t){for(var r=[],o=0,n=0;n<e.length;n++)t[n]&&(r[n]=o,o+=e[n]);return r},e.prototype._getStickyEndColumnPositions=function(e,t){for(var r=[],o=0,n=e.length;n>0;n--)t[n]&&(r[n]=o,o+=e[n]);return r},e}();(V=function V(e,t){this.viewContainer=e,this.elementRef=t}).decorators=[{type:a.Directive,args:[{selector:"[rowOutlet]"}]}],V.ctorParameters=function(){return[{type:a.ViewContainerRef},{type:a.ElementRef}]},(M=function M(e,t){this.viewContainer=e,this.elementRef=t}).decorators=[{type:a.Directive,args:[{selector:"[headerRowOutlet]"}]}],M.ctorParameters=function(){return[{type:a.ViewContainerRef},{type:a.ElementRef}]},(L=function L(e,t){this.viewContainer=e,this.elementRef=t}).decorators=[{type:a.Directive,args:[{selector:"[footerRowOutlet]"}]}],L.ctorParameters=function(){return[{type:a.ViewContainerRef},{type:a.ElementRef}]},(q=function q(e,t){this.viewContainer=e,this.elementRef=t}).decorators=[{type:a.Directive,args:[{selector:"[noDataRowOutlet]"}]}],q.ctorParameters=function(){return[{type:a.ViewContainerRef},{type:a.ElementRef}]};var Z,K='\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',z=(d((function Y(){return null!==Z&&Z.apply(this,arguments)||this}),Z=a.EmbeddedViewRef),function(){function e(e,t,r,o,n,i,a,c,l){this._differs=e,this._changeDetectorRef=t,this._coalescedStyleScheduler=r,this._elementRef=o,this._dir=i,this._platform=c,this._viewRepeater=l,this._onDestroy=new s.Subject,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this.viewChange=new s.BehaviorSubject({start:0,end:Number.MAX_VALUE}),n||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return Object.defineProperty(e.prototype,"trackBy",{get:function(){return this._trackByFn},set:function(e){this._trackByFn=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataSource",{get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"multiTemplateDataRows",{get:function(){return this._multiTemplateDataRows},set:function(e){this._multiTemplateDataRows=r.coerceBooleanProperty(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((function(t,r){return e.trackBy?e.trackBy(r.dataIndex,r.data):r}))},e.prototype.ngAfterContentChecked=function(){this._cacheRowDefs(),this._cacheColumnDefs();var e=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():e&&this.updateStickyColumnStyles(),this._checkStickyStates()},e.prototype.ngOnDestroy=function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),o.isDataSource(this.dataSource)&&this.dataSource.disconnect(this)},e.prototype.renderRows=function(){var e=this;this._renderRows=this._getAllRenderRows();var t=this._dataDiffer.diff(this._renderRows);if(t){var r=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,r,(function(t,r,o){return e._getEmbeddedViewArgs(t.item,o)}),(function(e){return e.item.data}),(function(t){1===t.operation&&t.context&&e._renderCellTemplateForItem(t.record.item.rowDef,t.context)})),this._updateRowIndexContext(),t.forEachIdentityChange((function(e){r.get(e.currentIndex).context.$implicit=e.item.data})),this._updateNoDataRow(),this.updateStickyColumnStyles()}else this._updateNoDataRow()},e.prototype.addColumnDef=function(e){this._customColumnDefs.add(e)},e.prototype.removeColumnDef=function(e){this._customColumnDefs.delete(e)},e.prototype.addRowDef=function(e){this._customRowDefs.add(e)},e.prototype.removeRowDef=function(e){this._customRowDefs.delete(e)},e.prototype.addHeaderRowDef=function(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0},e.prototype.removeHeaderRowDef=function(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0},e.prototype.addFooterRowDef=function(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0},e.prototype.removeFooterRowDef=function(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0},e.prototype.updateStickyHeaderRowStyles=function(){var e=this._getRenderedRows(this._headerRowOutlet),t=this._elementRef.nativeElement.querySelector("thead");t&&(t.style.display=e.length?"":"none");var r=this._headerRowDefs.map((function(e){return e.sticky}));this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,r,"top"),this._headerRowDefs.forEach((function(e){return e.resetStickyChanged()}))},e.prototype.updateStickyFooterRowStyles=function(){var e=this._getRenderedRows(this._footerRowOutlet),t=this._elementRef.nativeElement.querySelector("tfoot");t&&(t.style.display=e.length?"":"none");var r=this._footerRowDefs.map((function(e){return e.sticky}));this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,r,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,r),this._footerRowDefs.forEach((function(e){return e.resetStickyChanged()}))},e.prototype.updateStickyColumnStyles=function(){var e=this,t=this._getRenderedRows(this._headerRowOutlet),r=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);this._stickyStyler.clearStickyPositioning(p(t,r,o),["left","right"]),t.forEach((function(t,r){e._addStickyColumnStyles([t],e._headerRowDefs[r])})),this._rowDefs.forEach((function(t){for(var o=[],n=0;n<r.length;n++)e._renderRows[n].rowDef===t&&o.push(r[n]);e._addStickyColumnStyles(o,t)})),o.forEach((function(t,r){e._addStickyColumnStyles([t],e._footerRowDefs[r])})),Array.from(this._columnDefsByName.values()).forEach((function(e){return e.resetStickyChanged()}))},e.prototype._getAllRenderRows=function(){var e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(var r=0;r<this._data.length;r++){var o=this._data[r],n=this._getRenderRowsForData(o,r,t.get(o));this._cachedRenderRowsMap.has(o)||this._cachedRenderRowsMap.set(o,new WeakMap);for(var i=0;i<n.length;i++){var a=n[i],s=this._cachedRenderRowsMap.get(a.data);s.has(a.rowDef)?s.get(a.rowDef).push(a):s.set(a.rowDef,[a]),e.push(a)}}return e},e.prototype._getRenderRowsForData=function(e,t,r){return this._getRowDefs(e,t).map((function(o){var n=r&&r.has(o)?r.get(o):[];if(n.length){var i=n.shift();return i.dataIndex=t,i}return{data:e,rowDef:o,dataIndex:t}}))},e.prototype._cacheColumnDefs=function(){var e=this;this._columnDefsByName.clear(),G(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach((function(t){e._columnDefsByName.has(t.name),e._columnDefsByName.set(t.name,t)}))},e.prototype._cacheRowDefs=function(){this._headerRowDefs=G(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=G(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=G(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);var e=this._rowDefs.filter((function(e){return!e.when}));this._defaultRowDef=e[0]},e.prototype._renderUpdatedColumns=function(){var e=function(e,t){return e||!!t.getColumnsDiff()},t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();var r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();var o=this._footerRowDefs.reduce(e,!1);return o&&this._forceRenderFooterRows(),t||r||o},e.prototype._switchDataSource=function(e){this._data=[],o.isDataSource(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e},e.prototype._observeRenderChanges=function(){var e,t=this;this.dataSource&&(o.isDataSource(this.dataSource)?e=this.dataSource.connect(this):s.isObservable(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=s.of(this.dataSource)),this._renderChangeSubscription=e.pipe(c.takeUntil(this._onDestroy)).subscribe((function(e){t._data=e||[],t.renderRows()})))},e.prototype._forceRenderHeaderRows=function(){var e=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((function(t,r){return e._renderRow(e._headerRowOutlet,t,r)})),this.updateStickyHeaderRowStyles()},e.prototype._forceRenderFooterRows=function(){var e=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((function(t,r){return e._renderRow(e._footerRowOutlet,t,r)})),this.updateStickyFooterRowStyles()},e.prototype._addStickyColumnStyles=function(e,t){var r=this,o=Array.from(t.columns||[]).map((function(e){return r._columnDefsByName.get(e)})),n=o.map((function(e){return e.sticky})),i=o.map((function(e){return e.stickyEnd}));this._stickyStyler.updateStickyColumns(e,n,i)},e.prototype._getRenderedRows=function(e){for(var t=[],r=0;r<e.viewContainer.length;r++){var o=e.viewContainer.get(r);t.push(o.rootNodes[0])}return t},e.prototype._getRowDefs=function(e,t){if(1==this._rowDefs.length)return[this._rowDefs[0]];var r=[];if(this.multiTemplateDataRows)r=this._rowDefs.filter((function(r){return!r.when||r.when(t,e)}));else{var o=this._rowDefs.find((function(r){return r.when&&r.when(t,e)}))||this._defaultRowDef;o&&r.push(o)}return r},e.prototype._getEmbeddedViewArgs=function(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}},e.prototype._renderRow=function(e,t,r,o){void 0===o&&(o={});var n=e.viewContainer.createEmbeddedView(t.template,o,r);return this._renderCellTemplateForItem(t,o),n},e.prototype._renderCellTemplateForItem=function(e,t){var r,o;try{for(var n=h(this._getCellTemplates(e)),i=n.next();!i.done;i=n.next())B.mostRecentCellOutlet&&B.mostRecentCellOutlet._viewContainer.createEmbeddedView(i.value,t)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}this._changeDetectorRef.markForCheck()},e.prototype._updateRowIndexContext=function(){for(var e=this._rowOutlet.viewContainer,t=0,r=e.length;t<r;t++){var o=e.get(t).context;o.count=r,o.first=0===t,o.last=t===r-1,o.even=t%2==0,o.odd=!o.even,this.multiTemplateDataRows?(o.dataIndex=this._renderRows[t].dataIndex,o.renderIndex=t):o.index=this._renderRows[t].dataIndex}},e.prototype._getCellTemplates=function(e){var t=this;return e&&e.columns?Array.from(e.columns,(function(r){var o=t._columnDefsByName.get(r);return e.extractCellTemplate(o)})):[]},e.prototype._applyNativeTableSections=function(){var e,t,r,o,n=this._document.createDocumentFragment(),i=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];try{for(var a=h(i),s=a.next();!s.done;s=a.next()){var c=s.value,l=this._document.createElement(c.tag);l.setAttribute("role","rowgroup");try{for(var u=(r=void 0,h(c.outlets)),d=u.next();!d.done;d=u.next())l.appendChild(d.value.elementRef.nativeElement)}catch(e){r={error:e}}finally{try{d&&!d.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}n.appendChild(l)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}this._elementRef.nativeElement.appendChild(n)},e.prototype._forceRenderDataRows=function(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()},e.prototype._checkStickyStates=function(){var e=function(e,t){return e||t.hasStickyChanged()};this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&this.updateStickyColumnStyles()},e.prototype._setupStickyStyler=function(){var e=this;this._stickyStyler=new W(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement),(this._dir?this._dir.change:s.of()).pipe(c.takeUntil(this._onDestroy)).subscribe((function(t){e._stickyStyler.direction=t,e.updateStickyColumnStyles()}))},e.prototype._getOwnDefs=function(e){var t=this;return e.filter((function(e){return!e._table||e._table===t}))},e.prototype._updateNoDataRow=function(){if(this._noDataRow){var e=0===this._rowOutlet.viewContainer.length;if(e!==this._isShowingNoDataRow){var t=this._noDataRowOutlet.viewContainer;e?t.createEmbeddedView(this._noDataRow.templateRef):t.clear(),this._isShowingNoDataRow=e}}},e}());function G(e,t){return e.concat(Array.from(t))}
47
31
  /**
48
32
  * @license
49
33
  * Copyright Google LLC All Rights Reserved.
50
34
  *
51
35
  * Use of this source code is governed by an MIT-style license that can be
52
36
  * found in the LICENSE file at https://angular.io/license
53
- */var J=function(){function t(t,e){this._table=t,this._options=e,this.justify="start",this._options=e||{}}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(t){this._name=t,this._syncColumnDefName()},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){if(this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||function(t,e){return t[e]}),!this._table)throw function t(){return Error("Text column could not find a parent table for registration.")}();this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef)},t.prototype.ngOnDestroy=function(){this._table&&this._table.removeColumnDef(this.columnDef)},t.prototype._createDefaultHeaderText=function(){var t=this.name;if(a.isDevMode()&&!t)throw function e(){return Error("Table text column must have a name.")}();return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(t):t[0].toUpperCase()+t.slice(1)},t.prototype._syncColumnDefName=function(){this.columnDef&&(this.columnDef.name=this.name)},t.decorators=[{type:a.Component,args:[{selector:"cdk-text-column",template:'\n <ng-container cdkColumnDef>\n <th cdk-header-cell *cdkHeaderCellDef [style.text-align]="justify">\n {{headerText}}\n </th>\n <td cdk-cell *cdkCellDef="let data" [style.text-align]="justify">\n {{dataAccessor(data, name)}}\n </td>\n </ng-container>\n ',encapsulation:a.ViewEncapsulation.None,changeDetection:a.ChangeDetectionStrategy.Default}]}],t.ctorParameters=function(){return[{type:W,decorators:[{type:a.Optional}]},{type:void 0,decorators:[{type:a.Optional},{type:a.Inject,args:[w]}]}]},t.propDecorators={name:[{type:a.Input}],headerText:[{type:a.Input}],dataAccessor:[{type:a.Input}],justify:[{type:a.Input}],columnDef:[{type:a.ViewChild,args:[R,{static:!0}]}],cell:[{type:a.ViewChild,args:[m,{static:!0}]}],headerCell:[{type:a.ViewChild,args:[g,{static:!0}]}]},t}(),X=[W,T,m,N,g,D,R,S,H,v,k,I,E,P,x,V,L,q,J,F,U],$=function(){function t(){}return t.decorators=[{type:a.NgModule,args:[{exports:X,declarations:X}]}],t}();
37
+ */z.decorators=[{type:a.Component,args:[{selector:"cdk-table, table[cdk-table]",exportAs:"cdkTable",template:K,host:{class:"cdk-table"},encapsulation:a.ViewEncapsulation.None,changeDetection:a.ChangeDetectionStrategy.Default,providers:[{provide:g,useExisting:z},{provide:o._VIEW_REPEATER_STRATEGY,useClass:o._DisposeViewRepeaterStrategy},E]}]}],z.ctorParameters=function(){return[{type:a.IterableDiffers},{type:a.ChangeDetectorRef},{type:E},{type:a.ElementRef},{type:String,decorators:[{type:a.Attribute,args:["role"]}]},{type:t.Directionality,decorators:[{type:a.Optional}]},{type:void 0,decorators:[{type:a.Inject,args:[i.DOCUMENT]}]},{type:n.Platform},{type:void 0,decorators:[{type:a.Optional},{type:a.Inject,args:[o._VIEW_REPEATER_STRATEGY]}]}]},z.propDecorators={trackBy:[{type:a.Input}],dataSource:[{type:a.Input}],multiTemplateDataRows:[{type:a.Input}],_rowOutlet:[{type:a.ViewChild,args:[V,{static:!0}]}],_headerRowOutlet:[{type:a.ViewChild,args:[M,{static:!0}]}],_footerRowOutlet:[{type:a.ViewChild,args:[L,{static:!0}]}],_noDataRowOutlet:[{type:a.ViewChild,args:[q,{static:!0}]}],_contentColumnDefs:[{type:a.ContentChildren,args:[C,{descendants:!0}]}],_contentRowDefs:[{type:a.ContentChildren,args:[P,{descendants:!0}]}],_contentHeaderRowDefs:[{type:a.ContentChildren,args:[I,{descendants:!0}]}],_contentFooterRowDefs:[{type:a.ContentChildren,args:[N,{descendants:!0}]}],_noDataRow:[{type:a.ContentChild,args:[H]}]};var X=function(){function e(e,t){this._table=e,this._options=t,this.justify="start",this._options=t||{}}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(e){this._name=e,this._syncColumnDefName()},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||function(e,t){return e[t]}),this._table&&(this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef))},e.prototype.ngOnDestroy=function(){this._table&&this._table.removeColumnDef(this.columnDef)},e.prototype._createDefaultHeaderText=function(){var e=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(e):e[0].toUpperCase()+e.slice(1)},e.prototype._syncColumnDefName=function(){this.columnDef&&(this.columnDef.name=this.name)},e}();X.decorators=[{type:a.Component,args:[{selector:"cdk-text-column",template:'\n <ng-container cdkColumnDef>\n <th cdk-header-cell *cdkHeaderCellDef [style.text-align]="justify">\n {{headerText}}\n </th>\n <td cdk-cell *cdkCellDef="let data" [style.text-align]="justify">\n {{dataAccessor(data, name)}}\n </td>\n </ng-container>\n ',encapsulation:a.ViewEncapsulation.None,changeDetection:a.ChangeDetectionStrategy.Default}]}],X.ctorParameters=function(){return[{type:z,decorators:[{type:a.Optional}]},{type:void 0,decorators:[{type:a.Optional},{type:a.Inject,args:[R]}]}]},X.propDecorators={name:[{type:a.Input}],headerText:[{type:a.Input}],dataAccessor:[{type:a.Input}],justify:[{type:a.Input}],columnDef:[{type:a.ViewChild,args:[C,{static:!0}]}],cell:[{type:a.ViewChild,args:[_,{static:!0}]}],headerCell:[{type:a.ViewChild,args:[m,{static:!0}]}]};
54
38
  /**
55
39
  * @license
56
40
  * Copyright Google LLC All Rights Reserved.
@@ -58,6 +42,7 @@ var M,V=function(){function t(t,e){this.viewContainer=t,this.elementRef=e}return
58
42
  * Use of this source code is governed by an MIT-style license that can be
59
43
  * found in the LICENSE file at https://angular.io/license
60
44
  */
45
+ var $,J=[z,P,_,B,m,w,C,b,j,k,S,A,I,F,N,V,M,L,X,H,q];($=function $(){}).decorators=[{type:a.NgModule,args:[{exports:J,declarations:J,imports:[l.ScrollingModule]}]}],
61
46
  /**
62
47
  * @license
63
48
  * Copyright Google LLC All Rights Reserved.
@@ -65,4 +50,4 @@ var M,V=function(){function t(t,e){this.viewContainer=t,this.elementRef=e}return
65
50
  * Use of this source code is governed by an MIT-style license that can be
66
51
  * found in the LICENSE file at https://angular.io/license
67
52
  */
68
- Object.defineProperty(t,"DataSource",{enumerable:!0,get:function(){return r.DataSource}}),t.BaseCdkCell=y,t.BaseRowDef=O,t.CDK_ROW_TEMPLATE=b,t.CDK_TABLE=_,t.CDK_TABLE_TEMPLATE=K,t.CdkCell=S,t.CdkCellDef=m,t.CdkCellOutlet=N,t.CdkColumnDef=R,t.CdkFooterCell=k,t.CdkFooterCellDef=D,t.CdkFooterRow=P,t.CdkFooterRowDef=x,t.CdkHeaderCell=v,t.CdkHeaderCellDef=g,t.CdkHeaderRow=I,t.CdkHeaderRowDef=E,t.CdkNoDataRow=F,t.CdkRow=H,t.CdkRowDef=T,t.CdkTable=W,t.CdkTableModule=$,t.CdkTextColumn=J,t.DataRowOutlet=V,t.FooterRowOutlet=q,t.HeaderRowOutlet=L,t.NoDataRowOutlet=U,t.STICKY_DIRECTIONS=j,t.StickyStyler=B,t.TEXT_COLUMN_OPTIONS=w,t.mixinHasStickyInput=p,Object.defineProperty(t,"__esModule",{value:!0})}));
53
+ Object.defineProperty(e,"DataSource",{enumerable:!0,get:function(){return o.DataSource}}),e.BaseCdkCell=v,e.BaseRowDef=T,e.CDK_ROW_TEMPLATE=x,e.CDK_TABLE=g,e.CDK_TABLE_TEMPLATE=K,e.CdkCell=b,e.CdkCellDef=_,e.CdkCellOutlet=B,e.CdkColumnDef=C,e.CdkFooterCell=S,e.CdkFooterCellDef=w,e.CdkFooterRow=F,e.CdkFooterRowDef=N,e.CdkHeaderCell=k,e.CdkHeaderCellDef=m,e.CdkHeaderRow=A,e.CdkHeaderRowDef=I,e.CdkNoDataRow=H,e.CdkRow=j,e.CdkRowDef=P,e.CdkTable=z,e.CdkTableModule=$,e.CdkTextColumn=X,e.DataRowOutlet=V,e.FooterRowOutlet=L,e.HeaderRowOutlet=M,e.NoDataRowOutlet=q,e.STICKY_DIRECTIONS=U,e.StickyStyler=W,e.TEXT_COLUMN_OPTIONS=R,e._CoalescedStyleScheduler=E,e._Schedule=O,e.mixinHasStickyInput=y,Object.defineProperty(e,"__esModule",{value:!0})}));