@angular/cdk 2.0.0-beta.11 → 2.0.0-beta.12

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 (306) hide show
  1. package/_a11y.scss +23 -0
  2. package/_overlay.scss +93 -0
  3. package/a11y/index.metadata.json +2 -1
  4. package/a11y/typings/a11y-module.d.ts +2 -0
  5. package/a11y/typings/focus-monitor.d.ts +1 -1
  6. package/a11y/typings/index.d.ts +1 -1
  7. package/a11y/typings/index.metadata.json +1 -1
  8. package/a11y/typings/{public_api.d.ts → public-api.d.ts} +8 -2
  9. package/a11y-prebuilt.css +1 -0
  10. package/a11y.metadata.json +2 -1
  11. package/bidi/index.metadata.json +2 -1
  12. package/bidi/typings/bidi-module.d.ts +2 -0
  13. package/bidi/typings/index.d.ts +1 -1
  14. package/bidi/typings/index.metadata.json +1 -1
  15. package/bidi/typings/public-api.d.ts +10 -0
  16. package/bidi.metadata.json +2 -1
  17. package/bundles/cdk-a11y.umd.js +1368 -1357
  18. package/bundles/cdk-a11y.umd.js.map +1 -1
  19. package/bundles/cdk-a11y.umd.min.js +2 -2
  20. package/bundles/cdk-a11y.umd.min.js.map +1 -1
  21. package/bundles/cdk-bidi.umd.js +42 -40
  22. package/bundles/cdk-bidi.umd.js.map +1 -1
  23. package/bundles/cdk-bidi.umd.min.js +2 -2
  24. package/bundles/cdk-bidi.umd.min.js.map +1 -1
  25. package/bundles/cdk-coercion.umd.js +12 -0
  26. package/bundles/cdk-coercion.umd.js.map +1 -1
  27. package/bundles/cdk-coercion.umd.min.js +2 -2
  28. package/bundles/cdk-coercion.umd.min.js.map +1 -1
  29. package/bundles/cdk-collections.umd.js +113 -11
  30. package/bundles/cdk-collections.umd.js.map +1 -1
  31. package/bundles/cdk-collections.umd.min.js +2 -2
  32. package/bundles/cdk-collections.umd.min.js.map +1 -1
  33. package/bundles/cdk-keycodes.umd.js.map +1 -1
  34. package/bundles/cdk-keycodes.umd.min.js +1 -1
  35. package/bundles/cdk-keycodes.umd.min.js.map +1 -1
  36. package/bundles/cdk-layout.umd.js +235 -0
  37. package/bundles/cdk-layout.umd.js.map +1 -0
  38. package/bundles/cdk-layout.umd.min.js +9 -0
  39. package/bundles/cdk-layout.umd.min.js.map +1 -0
  40. package/bundles/cdk-observers.umd.js +41 -40
  41. package/bundles/cdk-observers.umd.js.map +1 -1
  42. package/bundles/cdk-observers.umd.min.js +2 -2
  43. package/bundles/cdk-observers.umd.min.js.map +1 -1
  44. package/bundles/cdk-overlay.umd.js +306 -265
  45. package/bundles/cdk-overlay.umd.js.map +1 -1
  46. package/bundles/cdk-overlay.umd.min.js +2 -2
  47. package/bundles/cdk-overlay.umd.min.js.map +1 -1
  48. package/bundles/cdk-platform.umd.js +19 -17
  49. package/bundles/cdk-platform.umd.js.map +1 -1
  50. package/bundles/cdk-platform.umd.min.js +2 -2
  51. package/bundles/cdk-platform.umd.min.js.map +1 -1
  52. package/bundles/cdk-portal.umd.js +71 -37
  53. package/bundles/cdk-portal.umd.js.map +1 -1
  54. package/bundles/cdk-portal.umd.min.js +2 -2
  55. package/bundles/cdk-portal.umd.min.js.map +1 -1
  56. package/bundles/cdk-rxjs.umd.js +13 -4
  57. package/bundles/cdk-rxjs.umd.js.map +1 -1
  58. package/bundles/cdk-rxjs.umd.min.js +2 -2
  59. package/bundles/cdk-rxjs.umd.min.js.map +1 -1
  60. package/bundles/cdk-scrolling.umd.js +89 -54
  61. package/bundles/cdk-scrolling.umd.js.map +1 -1
  62. package/bundles/cdk-scrolling.umd.min.js +2 -2
  63. package/bundles/cdk-scrolling.umd.min.js.map +1 -1
  64. package/bundles/cdk-stepper.umd.js +115 -90
  65. package/bundles/cdk-stepper.umd.js.map +1 -1
  66. package/bundles/cdk-stepper.umd.min.js +2 -2
  67. package/bundles/cdk-stepper.umd.min.js.map +1 -1
  68. package/bundles/cdk-table.umd.js +261 -218
  69. package/bundles/cdk-table.umd.js.map +1 -1
  70. package/bundles/cdk-table.umd.min.js +2 -2
  71. package/bundles/cdk-table.umd.min.js.map +1 -1
  72. package/bundles/cdk.umd.js +1 -1
  73. package/bundles/cdk.umd.js.map +1 -1
  74. package/bundles/cdk.umd.min.js +2 -2
  75. package/bundles/cdk.umd.min.js.map +1 -1
  76. package/cdk.metadata.json +2 -1
  77. package/coercion/index.metadata.json +2 -1
  78. package/coercion/typings/array.d.ts +9 -0
  79. package/coercion/typings/index.d.ts +1 -1
  80. package/coercion/typings/index.metadata.json +1 -1
  81. package/{typings/coercion/public_api.d.ts → coercion/typings/public-api.d.ts} +1 -0
  82. package/coercion.metadata.json +2 -1
  83. package/collections/index.metadata.json +2 -1
  84. package/collections/typings/index.d.ts +2 -1
  85. package/collections/typings/index.metadata.json +1 -1
  86. package/{typings/collections/public_api.d.ts → collections/typings/public-api.d.ts} +1 -0
  87. package/collections/typings/selection.d.ts +13 -3
  88. package/collections/typings/unique-selection-dispatcher.d.ts +40 -0
  89. package/collections.metadata.json +2 -1
  90. package/esm2015/a11y.js +1252 -1250
  91. package/esm2015/a11y.js.map +1 -1
  92. package/esm2015/bidi.js +1 -1
  93. package/esm2015/bidi.js.map +1 -1
  94. package/esm2015/cdk.js +1 -1
  95. package/esm2015/cdk.js.map +1 -1
  96. package/esm2015/coercion.js +11 -1
  97. package/esm2015/coercion.js.map +1 -1
  98. package/esm2015/collections.js +93 -8
  99. package/esm2015/collections.js.map +1 -1
  100. package/esm2015/keycodes.js.map +1 -1
  101. package/esm2015/layout.js +226 -0
  102. package/esm2015/layout.js.map +1 -0
  103. package/esm2015/observers.js +8 -7
  104. package/esm2015/observers.js.map +1 -1
  105. package/esm2015/overlay.js +157 -136
  106. package/esm2015/overlay.js.map +1 -1
  107. package/esm2015/platform.js +1 -1
  108. package/esm2015/platform.js.map +1 -1
  109. package/esm2015/portal.js +30 -1
  110. package/esm2015/portal.js.map +1 -1
  111. package/esm2015/rxjs.js +5 -1
  112. package/esm2015/rxjs.js.map +1 -1
  113. package/esm2015/scrolling.js +39 -8
  114. package/esm2015/scrolling.js.map +1 -1
  115. package/esm2015/stepper.js +27 -5
  116. package/esm2015/stepper.js.map +1 -1
  117. package/esm2015/table.js +68 -29
  118. package/esm2015/table.js.map +1 -1
  119. package/esm5/a11y.es5.js +1372 -1357
  120. package/esm5/a11y.es5.js.map +1 -1
  121. package/esm5/bidi.es5.js +45 -40
  122. package/esm5/bidi.es5.js.map +1 -1
  123. package/esm5/cdk.es5.js +4 -1
  124. package/esm5/cdk.es5.js.map +1 -1
  125. package/esm5/coercion.es5.js +14 -1
  126. package/esm5/coercion.es5.js.map +1 -1
  127. package/esm5/collections.es5.js +110 -8
  128. package/esm5/collections.es5.js.map +1 -1
  129. package/esm5/keycodes.es5.js +2 -0
  130. package/esm5/keycodes.es5.js.map +1 -1
  131. package/esm5/layout.es5.js +234 -0
  132. package/esm5/layout.es5.js.map +1 -0
  133. package/esm5/observers.es5.js +44 -40
  134. package/esm5/observers.es5.js.map +1 -1
  135. package/esm5/overlay.es5.js +304 -259
  136. package/esm5/overlay.es5.js.map +1 -1
  137. package/esm5/platform.es5.js +22 -17
  138. package/esm5/platform.es5.js.map +1 -1
  139. package/esm5/portal.es5.js +81 -44
  140. package/esm5/portal.es5.js.map +1 -1
  141. package/esm5/rxjs.es5.js +12 -1
  142. package/esm5/rxjs.es5.js.map +1 -1
  143. package/esm5/scrolling.es5.js +89 -51
  144. package/esm5/scrolling.es5.js.map +1 -1
  145. package/esm5/stepper.es5.js +119 -91
  146. package/esm5/stepper.es5.js.map +1 -1
  147. package/esm5/table.es5.js +265 -218
  148. package/esm5/table.es5.js.map +1 -1
  149. package/keycodes/index.metadata.json +2 -1
  150. package/keycodes/typings/index.d.ts +1 -1
  151. package/keycodes/typings/{public_api.d.ts → public-api.d.ts} +0 -0
  152. package/keycodes.metadata.json +2 -1
  153. package/layout/index.d.ts +8 -0
  154. package/layout/index.metadata.json +12 -0
  155. package/layout/package.json +7 -0
  156. package/layout/typings/breakpoints-observer.d.ts +37 -0
  157. package/layout/typings/breakpoints.d.ts +18 -0
  158. package/layout/typings/index.d.ts +4 -0
  159. package/layout/typings/index.metadata.json +1 -0
  160. package/layout/typings/media-matcher.d.ts +15 -0
  161. package/layout/typings/public-api.d.ts +5 -0
  162. package/layout.d.ts +8 -0
  163. package/layout.metadata.json +12 -0
  164. package/observers/index.metadata.json +2 -1
  165. package/observers/typings/index.d.ts +1 -1
  166. package/observers/typings/index.metadata.json +1 -1
  167. package/observers/typings/observe-content.d.ts +3 -3
  168. package/observers/typings/{public_api.d.ts → public-api.d.ts} +0 -0
  169. package/observers.metadata.json +2 -1
  170. package/overlay/index.metadata.json +2 -1
  171. package/overlay/typings/index.d.ts +2 -2
  172. package/overlay/typings/index.metadata.json +1 -1
  173. package/overlay/typings/overlay-config.d.ts +1 -1
  174. package/overlay/typings/overlay-directives.d.ts +3 -3
  175. package/overlay/typings/overlay-module.d.ts +11 -0
  176. package/overlay/typings/overlay-ref.d.ts +6 -6
  177. package/overlay/typings/overlay.d.ts +2 -2
  178. package/overlay/typings/position/connected-position-strategy.d.ts +5 -0
  179. package/overlay/typings/position/position-strategy.d.ts +2 -0
  180. package/overlay/typings/{public_api.d.ts → public-api.d.ts} +1 -4
  181. package/overlay/typings/scroll/scroll-strategy.d.ts +1 -1
  182. package/overlay-prebuilt.css +1 -0
  183. package/overlay.metadata.json +2 -1
  184. package/package.json +3 -3
  185. package/platform/index.metadata.json +2 -1
  186. package/platform/typings/index.d.ts +1 -1
  187. package/platform/typings/index.metadata.json +1 -1
  188. package/platform/typings/platform-module.d.ts +2 -0
  189. package/platform/typings/public-api.d.ts +10 -0
  190. package/platform.metadata.json +2 -1
  191. package/portal/index.metadata.json +2 -1
  192. package/portal/typings/index.d.ts +1 -1
  193. package/portal/typings/index.metadata.json +1 -1
  194. package/portal/typings/{public_api.d.ts → public-api.d.ts} +1 -0
  195. package/portal.metadata.json +2 -1
  196. package/rxjs/index.metadata.json +2 -1
  197. package/rxjs/typings/index.d.ts +1 -1
  198. package/rxjs/typings/index.metadata.json +1 -1
  199. package/rxjs/typings/{public_api.d.ts → public-api.d.ts} +0 -0
  200. package/rxjs/typings/rx-operators.d.ts +7 -0
  201. package/rxjs.metadata.json +2 -1
  202. package/scrolling/index.metadata.json +2 -1
  203. package/scrolling/typings/index.d.ts +1 -1
  204. package/scrolling/typings/index.metadata.json +1 -1
  205. package/scrolling/typings/public-api.d.ts +11 -0
  206. package/scrolling/typings/scrolling-module.d.ts +2 -0
  207. package/scrolling/typings/viewport-ruler.d.ts +20 -6
  208. package/scrolling.metadata.json +2 -1
  209. package/stepper/index.metadata.json +2 -1
  210. package/stepper/typings/index.d.ts +1 -1
  211. package/stepper/typings/index.metadata.json +1 -1
  212. package/stepper/typings/public-api.d.ts +11 -0
  213. package/stepper/typings/stepper-module.d.ts +2 -0
  214. package/stepper/typings/stepper.d.ts +8 -4
  215. package/stepper.metadata.json +2 -1
  216. package/table/index.metadata.json +2 -1
  217. package/table/typings/index.d.ts +1 -1
  218. package/table/typings/index.metadata.json +1 -1
  219. package/table/typings/public-api.d.ts +13 -0
  220. package/table/typings/row.d.ts +11 -3
  221. package/table/typings/table-errors.d.ts +10 -0
  222. package/table/typings/table-module.d.ts +2 -0
  223. package/table/typings/table.d.ts +17 -8
  224. package/table.metadata.json +2 -1
  225. package/typings/a11y/a11y-module.d.ts +2 -0
  226. package/typings/a11y/focus-monitor.d.ts +1 -1
  227. package/typings/a11y/index.d.ts +1 -1
  228. package/typings/a11y/index.metadata.json +1 -1
  229. package/typings/a11y/{public_api.d.ts → public-api.d.ts} +8 -2
  230. package/typings/bidi/bidi-module.d.ts +2 -0
  231. package/typings/bidi/index.d.ts +1 -1
  232. package/typings/bidi/index.metadata.json +1 -1
  233. package/typings/bidi/public-api.d.ts +10 -0
  234. package/typings/coercion/array.d.ts +9 -0
  235. package/typings/coercion/index.d.ts +1 -1
  236. package/typings/coercion/index.metadata.json +1 -1
  237. package/{coercion/typings/public_api.d.ts → typings/coercion/public-api.d.ts} +1 -0
  238. package/typings/collections/index.d.ts +2 -1
  239. package/typings/collections/index.metadata.json +1 -1
  240. package/{collections/typings/public_api.d.ts → typings/collections/public-api.d.ts} +1 -0
  241. package/typings/collections/selection.d.ts +13 -3
  242. package/typings/collections/unique-selection-dispatcher.d.ts +40 -0
  243. package/typings/index.d.ts +1 -1
  244. package/typings/index.metadata.json +1 -1
  245. package/typings/keycodes/index.d.ts +1 -1
  246. package/typings/keycodes/{public_api.d.ts → public-api.d.ts} +0 -0
  247. package/typings/layout/breakpoints-observer.d.ts +37 -0
  248. package/typings/layout/breakpoints.d.ts +18 -0
  249. package/typings/layout/index.d.ts +4 -0
  250. package/typings/layout/index.metadata.json +1 -0
  251. package/typings/layout/media-matcher.d.ts +15 -0
  252. package/typings/layout/public-api.d.ts +5 -0
  253. package/typings/observers/index.d.ts +1 -1
  254. package/typings/observers/index.metadata.json +1 -1
  255. package/typings/observers/observe-content.d.ts +3 -3
  256. package/typings/observers/{public_api.d.ts → public-api.d.ts} +0 -0
  257. package/typings/overlay/index.d.ts +2 -2
  258. package/typings/overlay/index.metadata.json +1 -1
  259. package/typings/overlay/overlay-config.d.ts +1 -1
  260. package/typings/overlay/overlay-directives.d.ts +3 -3
  261. package/typings/overlay/overlay-module.d.ts +11 -0
  262. package/typings/overlay/overlay-ref.d.ts +6 -6
  263. package/typings/overlay/overlay.d.ts +2 -2
  264. package/typings/overlay/position/connected-position-strategy.d.ts +5 -0
  265. package/typings/overlay/position/position-strategy.d.ts +2 -0
  266. package/typings/overlay/{public_api.d.ts → public-api.d.ts} +1 -4
  267. package/typings/overlay/scroll/scroll-strategy.d.ts +1 -1
  268. package/typings/platform/index.d.ts +1 -1
  269. package/typings/platform/index.metadata.json +1 -1
  270. package/typings/platform/platform-module.d.ts +2 -0
  271. package/typings/platform/public-api.d.ts +10 -0
  272. package/typings/portal/index.d.ts +1 -1
  273. package/typings/portal/index.metadata.json +1 -1
  274. package/typings/portal/{public_api.d.ts → public-api.d.ts} +1 -0
  275. package/typings/{public_api.d.ts → public-api.d.ts} +0 -0
  276. package/typings/rxjs/index.d.ts +1 -1
  277. package/typings/rxjs/index.metadata.json +1 -1
  278. package/typings/rxjs/{public_api.d.ts → public-api.d.ts} +0 -0
  279. package/typings/rxjs/rx-operators.d.ts +7 -0
  280. package/typings/scrolling/index.d.ts +1 -1
  281. package/typings/scrolling/index.metadata.json +1 -1
  282. package/typings/scrolling/public-api.d.ts +11 -0
  283. package/typings/scrolling/scrolling-module.d.ts +2 -0
  284. package/typings/scrolling/viewport-ruler.d.ts +20 -6
  285. package/typings/stepper/index.d.ts +1 -1
  286. package/typings/stepper/index.metadata.json +1 -1
  287. package/typings/stepper/public-api.d.ts +11 -0
  288. package/typings/stepper/stepper-module.d.ts +2 -0
  289. package/typings/stepper/stepper.d.ts +8 -4
  290. package/typings/table/index.d.ts +1 -1
  291. package/typings/table/index.metadata.json +1 -1
  292. package/typings/table/public-api.d.ts +13 -0
  293. package/typings/table/row.d.ts +11 -3
  294. package/typings/table/table-errors.d.ts +10 -0
  295. package/typings/table/table-module.d.ts +2 -0
  296. package/typings/table/table.d.ts +17 -8
  297. package/bidi/typings/public_api.d.ts +0 -4
  298. package/platform/typings/public_api.d.ts +0 -4
  299. package/scrolling/typings/public_api.d.ts +0 -5
  300. package/stepper/typings/public_api.d.ts +0 -5
  301. package/table/typings/public_api.d.ts +0 -7
  302. package/typings/bidi/public_api.d.ts +0 -4
  303. package/typings/platform/public_api.d.ts +0 -4
  304. package/typings/scrolling/public_api.d.ts +0 -5
  305. package/typings/stepper/public_api.d.ts +0 -5
  306. package/typings/table/public_api.d.ts +0 -7
@@ -1 +1 @@
1
- {"version":3,"file":"cdk-bidi.umd.js","sources":["../../src/cdk/bidi/index.ts","../../src/cdk/bidi/public_api.ts","../../src/cdk/bidi/dir.ts","../../src/cdk/bidi/directionality.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport {Directionality,DIRECTIONALITY_PROVIDER_FACTORY,DIRECTIONALITY_PROVIDER,DIR_DOCUMENT,Direction,Dir,BidiModule} from './public_api';\n","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n\nimport {NgModule} from '@angular/core';\nimport {DOCUMENT} from '@angular/platform-browser';\nimport {Dir} from './dir';\nimport {DIR_DOCUMENT, Directionality} from './directionality';\n\nexport {\n Directionality,\n DIRECTIONALITY_PROVIDER_FACTORY,\n DIRECTIONALITY_PROVIDER,\n DIR_DOCUMENT,\n Direction,\n} from './directionality';\nexport {Dir} from './dir';\nexport class BidiModule { static decorators: DecoratorInvocation[] = [\n{ type: NgModule, args: [{\n exports: [Dir],\n declarations: [Dir],\n providers: [\n {provide: DIR_DOCUMENT, useExisting: DOCUMENT},\n Directionality,\n ]\n}, ] },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\n\nfunction BidiModule_tsickle_Closure_declarations() {\n/** @type {?} */\nBidiModule.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nBidiModule.ctorParameters;\n}\n\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n\nimport {\n Directive,\n Output,\n Input,\n EventEmitter\n} from '@angular/core';\n\nimport {Direction, Directionality} from './directionality';\n/**\n * Directive to listen for changes of direction of part of the DOM.\n * \n * Would provide itself in case a component looks for the Directionality service\n */\nexport class Dir implements Directionality {\n/**\n * Layout direction of the element.\n */\n_dir: Direction = 'ltr';\n/**\n * Whether the `value` has been set to its initial value.\n */\nprivate _isInitialized: boolean = false;\n/**\n * Event emitted when the direction changes.\n */\nchange = new EventEmitter<void>();\n/**\n * \\@docs-private\n * @return {?}\n */\nget dir(): Direction {\n return this._dir;\n }\n/**\n * @param {?} v\n * @return {?}\n */\nset dir(v: Direction) {\n let /** @type {?} */ old = this._dir;\n this._dir = v;\n if (old !== this._dir && this._isInitialized) {\n this.change.emit();\n }\n }\n/**\n * Current layout direction of the element.\n * @return {?}\n */\nget value(): Direction { return this.dir; }\n/**\n * Initialize once default value has been set.\n * @return {?}\n */\nngAfterContentInit() {\n this._isInitialized = true;\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Directive, args: [{\n selector: '[dir]',\n providers: [{provide: Directionality, useExisting: Dir}],\n host: {'[dir]': 'dir'},\n exportAs: 'dir',\n}, ] },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\nstatic propDecorators: {[key: string]: DecoratorInvocation[]} = {\n'change': [{ type: Output, args: ['dirChange', ] },],\n'dir': [{ type: Input, args: ['dir', ] },],\n};\n}\n\nfunction Dir_tsickle_Closure_declarations() {\n/** @type {?} */\nDir.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nDir.ctorParameters;\n/** @type {?} */\nDir.propDecorators;\n/**\n * Layout direction of the element.\n * @type {?}\n */\nDir.prototype._dir;\n/**\n * Whether the `value` has been set to its initial value.\n * @type {?}\n */\nDir.prototype._isInitialized;\n/**\n * Event emitted when the direction changes.\n * @type {?}\n */\nDir.prototype.change;\n}\n\n\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n\nimport {\n EventEmitter,\n Injectable,\n Optional,\n SkipSelf,\n Inject,\n InjectionToken,\n} from '@angular/core';\nimport {DOCUMENT} from '@angular/platform-browser';\n\n\nexport type Direction = 'ltr' | 'rtl';\n/**\n * Injection token used to inject the document into Directionality.\n * This is used so that the value can be faked in tests.\n * \n * We can't use the real document in tests because changing the real `dir` causes geometry-based\n * tests in Safari to fail.\n * \n * We also can't re-provide the DOCUMENT token from platform-brower because the unit tests\n * themselves use things like `querySelector` in test code.\n */\nexport const DIR_DOCUMENT = new InjectionToken<Document>('md-dir-doc');\n/**\n * The directionality (LTR / RTL) context for the application (or a subtree of it).\n * Exposes the current direction and a stream of direction changes.\n */\nexport class Directionality {\n readonly value: Direction = 'ltr';\n readonly change = new EventEmitter<void>();\n/**\n * @param {?=} _document\n */\nconstructor( _document?: any) {\n if (_document) {\n // TODO: handle 'auto' value -\n // We still need to account for dir=\"auto\".\n // It looks like HTMLElemenet.dir is also \"auto\" when that's set to the attribute,\n // but getComputedStyle return either \"ltr\" or \"rtl\". avoiding getComputedStyle for now\n const bodyDir = _document.body ? _document.body.dir : null;\n const htmlDir = _document.documentElement ? _document.documentElement.dir : null;\n this.value = (bodyDir || htmlDir || 'ltr') as Direction;\n }\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Injectable },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [DIR_DOCUMENT, ] }, ]},\n];\n}\n\nfunction Directionality_tsickle_Closure_declarations() {\n/** @type {?} */\nDirectionality.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nDirectionality.ctorParameters;\n/** @type {?} */\nDirectionality.prototype.value;\n/** @type {?} */\nDirectionality.prototype.change;\n}\n\n/**\n * \\@docs-private\n * @param {?} parentDirectionality\n * @param {?} _document\n * @return {?}\n */\nexport function DIRECTIONALITY_PROVIDER_FACTORY(parentDirectionality, _document) {\n return parentDirectionality || new Directionality(_document);\n}\n/**\n * \\@docs-private\n */\nexport const DIRECTIONALITY_PROVIDER = {\n // If there is already a Directionality available, use that. Otherwise, provide a new one.\n provide: Directionality,\n deps: [[new Optional(), new SkipSelf(), Directionality], [new Optional(), DOCUMENT]],\n useFactory: DIRECTIONALITY_PROVIDER_FACTORY\n};\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any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AAA;;;;gBAGA,YAAC,EAAD,CAAA,GAAC,CAAD;;oBDlCA,EAAA,OAAA,EAAA,YAAA,EAAA,WAAA,EAAAD,iCAAA,EAAA;;iBAEA;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"cdk-bidi.umd.js","sources":["cdk/bidi.es5.js"],"sourcesContent":["/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport { Directive, EventEmitter, Inject, Injectable, InjectionToken, Input, NgModule, Optional, Output, SkipSelf } from '@angular/core';\nimport { DOCUMENT } from '@angular/platform-browser';\n\n/**\n * Injection token used to inject the document into Directionality.\n * This is used so that the value can be faked in tests.\n *\n * We can't use the real document in tests because changing the real `dir` causes geometry-based\n * tests in Safari to fail.\n *\n * We also can't re-provide the DOCUMENT token from platform-brower because the unit tests\n * themselves use things like `querySelector` in test code.\n */\nvar DIR_DOCUMENT = new InjectionToken('mat-dir-doc');\n/**\n * The directionality (LTR / RTL) context for the application (or a subtree of it).\n * Exposes the current direction and a stream of direction changes.\n */\nvar Directionality = (function () {\n /**\n * @param {?=} _document\n */\n function Directionality(_document) {\n this.value = 'ltr';\n this.change = new EventEmitter();\n if (_document) {\n // TODO: handle 'auto' value -\n // We still need to account for dir=\"auto\".\n // It looks like HTMLElemenet.dir is also \"auto\" when that's set to the attribute,\n // but getComputedStyle return either \"ltr\" or \"rtl\". avoiding getComputedStyle for now\n var bodyDir = _document.body ? _document.body.dir : null;\n var htmlDir = _document.documentElement ? _document.documentElement.dir : null;\n this.value = (bodyDir || htmlDir || 'ltr');\n }\n }\n Directionality.decorators = [\n { type: Injectable },\n ];\n /**\n * @nocollapse\n */\n Directionality.ctorParameters = function () { return [\n { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [DIR_DOCUMENT,] },] },\n ]; };\n return Directionality;\n}());\n/**\n * \\@docs-private\n * @param {?} parentDirectionality\n * @param {?} _document\n * @return {?}\n */\nfunction DIRECTIONALITY_PROVIDER_FACTORY(parentDirectionality, _document) {\n return parentDirectionality || new Directionality(_document);\n}\n/**\n * \\@docs-private\n */\nvar DIRECTIONALITY_PROVIDER = {\n // If there is already a Directionality available, use that. Otherwise, provide a new one.\n provide: Directionality,\n deps: [[new Optional(), new SkipSelf(), Directionality], [new Optional(), DOCUMENT]],\n useFactory: DIRECTIONALITY_PROVIDER_FACTORY\n};\n\n/**\n * Directive to listen for changes of direction of part of the DOM.\n *\n * Would provide itself in case a component looks for the Directionality service\n */\nvar Dir = (function () {\n function Dir() {\n /**\n * Layout direction of the element.\n */\n this._dir = 'ltr';\n /**\n * Whether the `value` has been set to its initial value.\n */\n this._isInitialized = false;\n /**\n * Event emitted when the direction changes.\n */\n this.change = new EventEmitter();\n }\n Object.defineProperty(Dir.prototype, \"dir\", {\n /**\n * \\@docs-private\n * @return {?}\n */\n get: function () {\n return this._dir;\n },\n /**\n * @param {?} v\n * @return {?}\n */\n set: function (v) {\n var /** @type {?} */ old = this._dir;\n this._dir = v;\n if (old !== this._dir && this._isInitialized) {\n this.change.emit();\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Dir.prototype, \"value\", {\n /**\n * Current layout direction of the element.\n * @return {?}\n */\n get: function () { return this.dir; },\n enumerable: true,\n configurable: true\n });\n /**\n * Initialize once default value has been set.\n * @return {?}\n */\n Dir.prototype.ngAfterContentInit = function () {\n this._isInitialized = true;\n };\n Dir.decorators = [\n { type: Directive, args: [{\n selector: '[dir]',\n providers: [{ provide: Directionality, useExisting: Dir }],\n host: { '[dir]': 'dir' },\n exportAs: 'dir',\n },] },\n ];\n /**\n * @nocollapse\n */\n Dir.ctorParameters = function () { return []; };\n Dir.propDecorators = {\n 'change': [{ type: Output, args: ['dirChange',] },],\n 'dir': [{ type: Input, args: ['dir',] },],\n };\n return Dir;\n}());\n\nvar BidiModule = (function () {\n function BidiModule() {\n }\n BidiModule.decorators = [\n { type: NgModule, args: [{\n exports: [Dir],\n declarations: [Dir],\n providers: [\n { provide: DIR_DOCUMENT, useExisting: DOCUMENT },\n Directionality,\n ]\n },] },\n ];\n /**\n * @nocollapse\n */\n BidiModule.ctorParameters = function () { return []; };\n return BidiModule;\n}());\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { Directionality, DIRECTIONALITY_PROVIDER_FACTORY, DIRECTIONALITY_PROVIDER, DIR_DOCUMENT, Dir, BidiModule };\n//# sourceMappingURL=bidi.es5.js.map\n"],"names":["InjectionToken","EventEmitter","Injectable","Optional","Inject","SkipSelf","DOCUMENT","Directive","Output","Input","NgModule"],"mappings":";;;;;;;;;;;;;AAUA;;;;;;;;;;AAUA,IAAI,YAAY,GAAG,IAAIA,4BAAc,CAAC,aAAa,CAAC,CAAC;;;;;AAKrD,IAAI,cAAc,IAAI,YAAY;;;;IAI9B,SAAS,cAAc,CAAC,SAAS,EAAE;QAC/B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,IAAIC,0BAAY,EAAE,CAAC;QACjC,IAAI,SAAS,EAAE;;;;;YAKX,IAAI,OAAO,GAAG,SAAS,CAAC,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC;YACzD,IAAI,OAAO,GAAG,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,eAAe,CAAC,GAAG,GAAG,IAAI,CAAC;YAC/E,IAAI,CAAC,KAAK,IAAI,OAAO,IAAI,OAAO,IAAI,KAAK,CAAC,CAAC;SAC9C;KACJ;IACD,cAAc,CAAC,UAAU,GAAG;QACxB,EAAE,IAAI,EAAEC,wBAAU,EAAE;KACvB,CAAC;;;;IAIF,cAAc,CAAC,cAAc,GAAG,YAAY,EAAE,OAAO;QACjD,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAEC,sBAAQ,EAAE,EAAE,EAAE,IAAI,EAAEC,oBAAM,EAAE,IAAI,EAAE,CA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AChD,cAAc;qBACjB;iBACJ,EAAE,EAAE;KAChB,CAAC;;;;IAIF,UAAU,CAAC,cAAc,GAAG,YAAY,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IACvD,OAAO,UAAU,CAAC;CACrB,EAAE,CAAC,CAAC,AAEL,AAImH,AACnH,AAAoC;;;;;;;;;;;"}
@@ -5,5 +5,5 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/platform-browser")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@angular/platform-browser"],t):t((e.ng=e.ng||{},e.ng.cdk=e.ng.cdk||{},e.ng.cdk.bidi=e.ng.cdk.bidi||{}),e.ng.core,e.ng.platformBrowser)}(this,function(e,t,r){"use strict";function n(e,t){return e||new o(t)}var i=new t.InjectionToken("md-dir-doc"),o=function(){function e(e){if(this.value="ltr",this.change=new t.EventEmitter,e){var r=e.body?e.body.dir:null,n=e.documentElement?e.documentElement.dir:null;this.value=r||n||"ltr"}}return e}();o.decorators=[{type:t.Injectable}],o.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[i]}]}]};var d={provide:o,deps:[[new t.Optional,new t.SkipSelf,o],[new t.Optional,r.DOCUMENT]],useFactory:n},a=function(){function e(){this._dir="ltr",this._isInitialized=!1,this.change=new t.EventEmitter}return Object.defineProperty(e.prototype,"dir",{get:function(){return this._dir},set:function(e){var t=this._dir;this._dir=e,t!==this._dir&&this._isInitialized&&this.change.emit()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.dir},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){this._isInitialized=!0},e}();a.decorators=[{type:t.Directive,args:[{selector:"[dir]",providers:[{provide:o,useExisting:a}],host:{"[dir]":"dir"},exportAs:"dir"}]}],a.ctorParameters=function(){return[]},a.propDecorators={change:[{type:t.Output,args:["dirChange"]}],dir:[{type:t.Input,args:["dir"]}]};var u=function(){function e(){}return e}();u.decorators=[{type:t.NgModule,args:[{exports:[a],declarations:[a],providers:[{provide:i,useExisting:r.DOCUMENT},o]}]}],u.ctorParameters=function(){return[]},e.Directionality=o,e.DIRECTIONALITY_PROVIDER_FACTORY=n,e.DIRECTIONALITY_PROVIDER=d,e.DIR_DOCUMENT=i,e.Dir=a,e.BidiModule=u,Object.defineProperty(e,"__esModule",{value:!0})});
9
- //# sourceMappingURL=cdk-bidi.umd.min.js.map
8
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/platform-browser")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@angular/platform-browser"],t):t((e.ng=e.ng||{},e.ng.cdk=e.ng.cdk||{},e.ng.cdk.bidi=e.ng.cdk.bidi||{}),e.ng.core,e.ng.platformBrowser)}(this,function(e,t,r){"use strict";function n(e,t){return e||new o(t)}var i=new t.InjectionToken("mat-dir-doc"),o=function(){function e(e){if(this.value="ltr",this.change=new t.EventEmitter,e){var r=e.body?e.body.dir:null,n=e.documentElement?e.documentElement.dir:null;this.value=r||n||"ltr"}}return e.decorators=[{type:t.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[i]}]}]},e}(),d={provide:o,deps:[[new t.Optional,new t.SkipSelf,o],[new t.Optional,r.DOCUMENT]],useFactory:n},a=function(){function e(){this._dir="ltr",this._isInitialized=!1,this.change=new t.EventEmitter}return Object.defineProperty(e.prototype,"dir",{get:function(){return this._dir},set:function(e){var t=this._dir;this._dir=e,t!==this._dir&&this._isInitialized&&this.change.emit()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.dir},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){this._isInitialized=!0},e.decorators=[{type:t.Directive,args:[{selector:"[dir]",providers:[{provide:o,useExisting:e}],host:{"[dir]":"dir"},exportAs:"dir"}]}],e.ctorParameters=function(){return[]},e.propDecorators={change:[{type:t.Output,args:["dirChange"]}],dir:[{type:t.Input,args:["dir"]}]},e}(),u=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{exports:[a],declarations:[a],providers:[{provide:i,useExisting:r.DOCUMENT},o]}]}],e.ctorParameters=function(){return[]},e}();e.Directionality=o,e.DIRECTIONALITY_PROVIDER_FACTORY=n,e.DIRECTIONALITY_PROVIDER=d,e.DIR_DOCUMENT=i,e.Dir=a,e.BidiModule=u,Object.defineProperty(e,"__esModule",{value:!0})});
9
+ //# sourceMappingURL=/Users/karakara/repos/material2/dist/bundles/cdk-bidi.umd.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cdk-bidi.umd.min.js","sources":["../../src/cdk/bidi/directionality.ts","../../src/cdk/bidi/dir.ts","../../src/cdk/bidi/public_api.ts","../../src/cdk/bidi/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n\nimport {\n EventEmitter,\n Injectable,\n Optional,\n SkipSelf,\n Inject,\n InjectionToken,\n} from '@angular/core';\nimport {DOCUMENT} from '@angular/platform-browser';\n\n\nexport type Direction = 'ltr' | 'rtl';\n/**\n * Injection token used to inject the document into Directionality.\n * This is used so that the value can be faked in tests.\n * \n * We can't use the real document in tests because changing the real `dir` causes geometry-based\n * tests in Safari to fail.\n * \n * We also can't re-provide the DOCUMENT token from platform-brower because the unit tests\n * themselves use things like `querySelector` in test code.\n */\nexport const DIR_DOCUMENT = new InjectionToken<Document>('md-dir-doc');\n/**\n * The directionality (LTR / RTL) context for the application (or a subtree of it).\n * Exposes the current direction and a stream of direction changes.\n */\nexport class Directionality {\n readonly value: Direction = 'ltr';\n readonly change = new EventEmitter<void>();\n/**\n * @param {?=} _document\n */\nconstructor( _document?: any) {\n if (_document) {\n // TODO: handle 'auto' value -\n // We still need to account for dir=\"auto\".\n // It looks like HTMLElemenet.dir is also \"auto\" when that's set to the attribute,\n // but getComputedStyle return either \"ltr\" or \"rtl\". avoiding getComputedStyle for now\n const bodyDir = _document.body ? _document.body.dir : null;\n const htmlDir = _document.documentElement ? _document.documentElement.dir : null;\n this.value = (bodyDir || htmlDir || 'ltr') as Direction;\n }\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Injectable },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [DIR_DOCUMENT, ] }, ]},\n];\n}\n\nfunction Directionality_tsickle_Closure_declarations() {\n/** @type {?} */\nDirectionality.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nDirectionality.ctorParameters;\n/** @type {?} */\nDirectionality.prototype.value;\n/** @type {?} */\nDirectionality.prototype.change;\n}\n\n/**\n * \\@docs-private\n * @param {?} parentDirectionality\n * @param {?} _document\n * @return {?}\n */\nexport function DIRECTIONALITY_PROVIDER_FACTORY(parentDirectionality, _document) {\n return parentDirectionality || new Directionality(_document);\n}\n/**\n * \\@docs-private\n */\nexport const DIRECTIONALITY_PROVIDER = {\n // If there is already a Directionality available, use that. Otherwise, provide a new one.\n provide: Directionality,\n deps: [[new Optional(), new SkipSelf(), Directionality], [new Optional(), DOCUMENT]],\n useFactory: DIRECTIONALITY_PROVIDER_FACTORY\n};\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n\nimport {\n Directive,\n Output,\n Input,\n EventEmitter\n} from '@angular/core';\n\nimport {Direction, Directionality} from './directionality';\n/**\n * Directive to listen for changes of direction of part of the DOM.\n * \n * Would provide itself in case a component looks for the Directionality service\n */\nexport class Dir implements Directionality {\n/**\n * Layout direction of the element.\n */\n_dir: Direction = 'ltr';\n/**\n * Whether the `value` has been set to its initial value.\n */\nprivate _isInitialized: boolean = false;\n/**\n * Event emitted when the direction changes.\n */\nchange = new EventEmitter<void>();\n/**\n * \\@docs-private\n * @return {?}\n */\nget dir(): Direction {\n return this._dir;\n }\n/**\n * @param {?} v\n * @return {?}\n */\nset dir(v: Direction) {\n let /** @type {?} */ old = this._dir;\n this._dir = v;\n if (old !== this._dir && this._isInitialized) {\n this.change.emit();\n }\n }\n/**\n * Current layout direction of the element.\n * @return {?}\n */\nget value(): Direction { return this.dir; }\n/**\n * Initialize once default value has been set.\n * @return {?}\n */\nngAfterContentInit() {\n this._isInitialized = true;\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Directive, args: [{\n selector: '[dir]',\n providers: [{provide: Directionality, useExisting: Dir}],\n host: {'[dir]': 'dir'},\n exportAs: 'dir',\n}, ] },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\nstatic propDecorators: {[key: string]: DecoratorInvocation[]} = {\n'change': [{ type: Output, args: ['dirChange', ] },],\n'dir': [{ type: Input, args: ['dir', ] },],\n};\n}\n\nfunction Dir_tsickle_Closure_declarations() {\n/** @type {?} */\nDir.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nDir.ctorParameters;\n/** @type {?} */\nDir.propDecorators;\n/**\n * Layout direction of the element.\n * @type {?}\n */\nDir.prototype._dir;\n/**\n * Whether the `value` has been set to its initial value.\n * @type {?}\n */\nDir.prototype._isInitialized;\n/**\n * Event emitted when the direction changes.\n * @type {?}\n */\nDir.prototype.change;\n}\n\n\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n\nimport {NgModule} from '@angular/core';\nimport {DOCUMENT} from '@angular/platform-browser';\nimport {Dir} from './dir';\nimport {DIR_DOCUMENT, Directionality} from './directionality';\n\nexport {\n Directionality,\n DIRECTIONALITY_PROVIDER_FACTORY,\n DIRECTIONALITY_PROVIDER,\n DIR_DOCUMENT,\n Direction,\n} from './directionality';\nexport {Dir} from './dir';\nexport class BidiModule { static decorators: DecoratorInvocation[] = [\n{ type: NgModule, args: [{\n exports: [Dir],\n declarations: [Dir],\n providers: [\n {provide: DIR_DOCUMENT, useExisting: DOCUMENT},\n Directionality,\n ]\n}, ] },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\n\nfunction BidiModule_tsickle_Closure_declarations() {\n/** @type {?} */\nBidiModule.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nBidiModule.ctorParameters;\n}\n\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport {Directionality,DIRECTIONALITY_PROVIDER_FACTORY,DIRECTIONALITY_PROVIDER,DIR_DOCUMENT,Direction,Dir,BidiModule} from './public_api';\n"],"names":["DIRECTIONALITY_PROVIDER_FACTORY","parentDirectionality","_document","Directionality","this","value","change","EventEmitter","htmlDir","documentElement","dir","bodyDir","decorators","type","Injectable","ctorParameters","undefined","Optional","Inject","args","DIR_DOCUMENT","DIRECTIONALITY_PROVIDER","provide","deps","SkipSelf","DOCUMENT","useFactory","Dir","Object","defineProperty","prototype","get","_dir","set","v","old","_isInitialized","emit","enumerable","configurable","ngAfterContentInit","providers","useExisting","host","[dir]","exportAs","propDecorators","Output","Input","BidiModule","declarations"],"mappings":";;;;;;;+XAoFA,SAAAA,GArBCC,EAAAC,GAsBC,MA5BOD,IAAwB,GAAIE,GAAeD,uEAjBzC,GAEXE,KAAAC,MAAA,MAHWD,KAAXE,OAAA,GAA8BC,GAA9BA,aACAL,EAAA,8BAQAM,EAAAN,EAAAO,gBAAgDP,EAAhDO,gBAAAC,IAAA,IACMN,MAANC,MAAAM,GAA+BH,GAA/B,OAGA,MAAAL,KACOA,GAAPS,aACEC,KAAMC,EAARA,aAGCX,EAADY,eAAC,WAAD,QAGCF,SAPCG,GAAAJ,aAAAC,KAAAI,EAOFA,WAPEJ,KAAAK,EAOFA,OAPEC,MAAAC,OAqCF,IAAAC,IAEEC,QAASnB,EACToB,OAAQ,GAAIN,GAAdA,SAA0B,GAAIO,GAA9BA,SAA0CrB,IAAkB,GAAIc,GAAhEA,SAA4EQ,EAA5EA,WACEC,WAAY1B,gBCxEd,QAAA2B,2EAiDA,MAWAC,QAAAC,eAAAF,EAAAG,UAAA,OA/CGC,IAIH,WACA,MAJW3B,MAAM4B,MAGdC,IAAA,SAOHC,GACA,GAAAC,GAPc/B,KAAM4B,IAQZ5B,MAPE4B,KAOVE,EACAC,IAPgB/B,KAAM4B,MAAO5B,KAO7BgC,gBACUhC,KAAVE,OAPmB+B,mHAmBnBC,YAAA,EACIC,cAAJ,IAKAZ,EAAAG,UAAAU,mBAXwB,WAExBpC,KAAAgC,gBAAA,GAYAT,6DARAc,YAcEnB,QAdFnB,EAAAuC,YAAAf,IAEAgB,MAAAC,QAAA,OAcAC,SAAA,UCxDiClB,EAAjCZ,eAAiC,WAAjC,UAAAY,EAAAmB,gBACAxC,SAAAO,KAASkC,EAATA,OAAA5B,MAAA,eACAT,MAAAG,KAAAmC,EAAAA,MAAA7B,MACkB,SAClB,IAAA8B,GAAA,WACA,QAAAA,MAEA,MAAAA,wDAIAC,cAAAvB,eClCAL,QAAAF,EAAAsB,YAAAjB,EAAAA"}
1
+ {"version":3,"sources":["/Users/karakara/repos/material2/dist/bundles/cdk-bidi.umd.js"],"names":["global","factory","exports","module","require","define","amd","ng","cdk","bidi","core","platformBrowser","this","_angular_core","_angular_platformBrowser","DIRECTIONALITY_PROVIDER_FACTORY","parentDirectionality","_document","Directionality","DIR_DOCUMENT","InjectionToken","value","change","EventEmitter","bodyDir","body","dir","htmlDir","documentElement","decorators","type","Injectable","ctorParameters","undefined","Optional","Inject","args","DIRECTIONALITY_PROVIDER","provide","deps","SkipSelf","DOCUMENT","useFactory","Dir","_dir","_isInitialized","Object","defineProperty","prototype","get","set","v","old","emit","enumerable","configurable","ngAfterContentInit","Directive","selector","providers","useExisting","host","[dir]","exportAs","propDecorators","Output","Input","BidiModule","NgModule","declarations"],"mappings":";;;;;;;CAOC,SAAUA,EAAQC,GACC,gBAAZC,UAA0C,mBAAXC,QAAyBF,EAAQC,QAASE,QAAQ,iBAAkBA,QAAQ,8BAChG,kBAAXC,SAAyBA,OAAOC,IAAMD,QAAQ,UAAW,gBAAiB,6BAA8BJ,GAC9GA,GAASD,EAAOO,GAAKP,EAAOO,OAAUP,EAAOO,GAAGC,IAAMR,EAAOO,GAAGC,QAAWR,EAAOO,GAAGC,IAAIC,KAAOT,EAAOO,GAAGC,IAAIC,UAAYT,EAAOO,GAAGG,KAAKV,EAAOO,GAAGI,kBACnJC,KAAM,SAAWV,EAAQW,EAAcC,GAA4B,YAmDrE,SAASC,GAAgCC,EAAsBC,GAC3D,MAAOD,IAAwB,GAAIE,GAAeD,GAxCtD,GAAIE,GAAe,GAAIN,GAAcO,eAAe,eAKhDF,EAAkB,WAIlB,QAASA,GAAeD,GAGpB,GAFAL,KAAKS,MAAQ,MACbT,KAAKU,OAAS,GAAIT,GAAcU,aAC5BN,EAAW,CAKX,GAAIO,GAAUP,EAAUQ,KAAOR,EAAUQ,KAAKC,IAAM,KAChDC,EAAUV,EAAUW,gBAAkBX,EAAUW,gBAAgBF,IAAM,IAC1Ed,MAAKS,MAASG,GAAWG,GAAW,OAY5C,MATAT,GAAeW,aACTC,KAAMjB,EAAckB,aAK1Bb,EAAec,eAAiB,WAAc,QACxCF,SAAMG,GAAWJ,aAAeC,KAAMjB,EAAcqB,WAAcJ,KAAMjB,EAAcsB,OAAQC,MAAOjB,QAEpGD,KAcPmB,GAEAC,QAASpB,EACTqB,OAAQ,GAAI1B,GAAcqB,SAAY,GAAIrB,GAAc2B,SAAYtB,IAAkB,GA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C,EAAS,cAAgBmB,OAAO","file":"/Users/karakara/repos/material2/dist/bundles/cdk-bidi.umd.min.js"}
@@ -19,6 +19,7 @@
19
19
  function coerceBooleanProperty(value) {
20
20
  return value != null && "" + value !== 'false';
21
21
  }
22
+
22
23
  /**
23
24
  * Coerces a data-bound value (typically a string) to a number.
24
25
  * @param {?} value
@@ -33,8 +34,19 @@ function coerceNumberProperty(value, fallbackValue) {
33
34
  return isNaN(parseFloat(/** @type {?} */ (value))) || isNaN(Number(value)) ? fallbackValue : Number(value);
34
35
  }
35
36
 
37
+ /**
38
+ * Wraps the provided value in an array, unless the provided value is an array.
39
+ * @template T
40
+ * @param {?} value
41
+ * @return {?}
42
+ */
43
+ function coerceArray(value) {
44
+ return Array.isArray(value) ? value : [value];
45
+ }
46
+
36
47
  exports.coerceBooleanProperty = coerceBooleanProperty;
37
48
  exports.coerceNumberProperty = coerceNumberProperty;
49
+ exports.coerceArray = coerceArray;
38
50
 
39
51
  Object.defineProperty(exports, '__esModule', { value: true });
40
52
 
@@ -1 +1 @@
1
- {"version":3,"file":"cdk-coercion.umd.js","sources":["../../src/cdk/coercion/number-property.ts","../../src/cdk/coercion/index.ts","../../src/cdk/coercion/boolean-property.ts"],"sourcesContent":["\n/**\n * Coerces a data-bound value (typically a string) to a number.\n * @param {?} value\n * @param {?=} fallbackValue\n * @return {?}\n */\nexport function coerceNumberProperty(value: any, fallbackValue = 0) {\n // parseFloat(value) handles most of the cases we're interested in (it treats null, empty string,\n // and other non-number values as NaN, where Number just uses 0) but it considers the string\n // '123hello' to be a valid number. Therefore we also check if Number(value) is NaN.\n return isNaN(parseFloat( /** @type {?} */((value as any)))) || isNaN(Number(value)) ? fallbackValue : Number(value);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport {coerceBooleanProperty,coerceNumberProperty} from './public_api';\n","\n/**\n * Coerces a data-bound value (typically a string) to a boolean.\n * @param {?} value\n * @return {?}\n */\nexport function coerceBooleanProperty(value: any): boolean {\n return value != null && `${value}` !== 'false';\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;AECA;;;;;AAKA,SAAA,qBAAA,CAGC,KAAA,EAHD;IACE,OAGO,KAAA,IAAS,IAAA,IAAQ,EAH1B,GAAA,KAGmC,KAAM,OAAA,CAAQ;CAFhD;;;;;;;;IFDD,IAAA,aAAA,KAAA,KAAA,CAAA,EAAA,EAAA,aAAA,GAAA,CAEC,CAAA,EAFD;;;;IAIE,OAEO,KAAA,CAAM,UAAC,mBAAU,KAAS,EAAI,CAAC,IAAI,KAAA,CAAM,MAAC,CAAM,KAAC,CAAK,CAAC,GAAG,aAAA,GAAgB,MAAA,CAAO,KAAC,CAAK,CAAC;CADhG,ACVD;;;;;;;"}
1
+ {"version":3,"file":"cdk-coercion.umd.js","sources":["cdk/coercion.es5.js"],"sourcesContent":["/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Coerces a data-bound value (typically a string) to a boolean.\n * @param {?} value\n * @return {?}\n */\nfunction coerceBooleanProperty(value) {\n return value != null && \"\" + value !== 'false';\n}\n\n/**\n * Coerces a data-bound value (typically a string) to a number.\n * @param {?} value\n * @param {?=} fallbackValue\n * @return {?}\n */\nfunction coerceNumberProperty(value, fallbackValue) {\n if (fallbackValue === void 0) { fallbackValue = 0; }\n // parseFloat(value) handles most of the cases we're interested in (it treats null, empty string,\n // and other non-number values as NaN, where Number just uses 0) but it considers the string\n // '123hello' to be a valid number. Therefore we also check if Number(value) is NaN.\n return isNaN(parseFloat(/** @type {?} */ (value))) || isNaN(Number(value)) ? fallbackValue : Number(value);\n}\n\n/**\n * Wraps the provided value in an array, unless the provided value is an array.\n * @template T\n * @param {?} value\n * @return {?}\n */\nfunction coerceArray(value) {\n return Array.isArray(value) ? value : [value];\n}\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { coerceBooleanProperty, coerceNumberProperty, coerceArray };\n//# sourceMappingURL=coercion.es5.js.map\n"],"names":[],"mappings":";;;;;;;;;;;;;AAOA;;;;;AAKA,SAAS,qBAAqB,CAAC,KAAK,EAAE;IAClC,OAAO,KAAK,IAAI,IAAI,IAAI,EAAE,GAAG,KAAK,KAAK,OAAO,CAAC;CAClD;;;;;;;;AAQD,SAAS,oBAAoB,CAAC,KAAK,EAAE,aAAa,EAAE;IAChD,IAAI,aAAa,KAAK,KAAK,CAAC,EAAE,EAAE,aAAa,GAAG,CAAC,CAAC,EAAE;;;;IAIpD,OAAO,KAAK,CAAC,UAAU,mBAAmB,KAAK,EAAE,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,aAAa,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;CAC9G;;;;;;;;AAQD,SAAS,WAAW,CAAC,KAAK,EAAE;IACxB,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC;CACjD,AAED,AAIoE,AACpE,AAAwC;;;;;;;;"}
@@ -5,5 +5,5 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
- !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e.ng=e.ng||{},e.ng.cdk=e.ng.cdk||{},e.ng.cdk.coercion=e.ng.cdk.coercion||{}))}(this,function(e){"use strict";function n(e){return null!=e&&""+e!="false"}function o(e,n){return void 0===n&&(n=0),isNaN(parseFloat(e))||isNaN(Number(e))?n:Number(e)}e.coerceBooleanProperty=n,e.coerceNumberProperty=o,Object.defineProperty(e,"__esModule",{value:!0})});
9
- //# sourceMappingURL=cdk-coercion.umd.min.js.map
8
+ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e.ng=e.ng||{},e.ng.cdk=e.ng.cdk||{},e.ng.cdk.coercion=e.ng.cdk.coercion||{}))}(this,function(e){"use strict";function n(e){return null!=e&&""+e!="false"}function r(e,n){return void 0===n&&(n=0),isNaN(parseFloat(e))||isNaN(Number(e))?n:Number(e)}function o(e){return Array.isArray(e)?e:[e]}e.coerceBooleanProperty=n,e.coerceNumberProperty=r,e.coerceArray=o,Object.defineProperty(e,"__esModule",{value:!0})});
9
+ //# sourceMappingURL=/Users/karakara/repos/material2/dist/bundles/cdk-coercion.umd.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cdk-coercion.umd.min.js","sources":["../../src/cdk/coercion/boolean-property.ts","../../src/cdk/coercion/number-property.ts"],"sourcesContent":["\n/**\n * Coerces a data-bound value (typically a string) to a boolean.\n * @param {?} value\n * @return {?}\n */\nexport function coerceBooleanProperty(value: any): boolean {\n return value != null && `${value}` !== 'false';\n}\n","\n/**\n * Coerces a data-bound value (typically a string) to a number.\n * @param {?} value\n * @param {?=} fallbackValue\n * @return {?}\n */\nexport function coerceNumberProperty(value: any, fallbackValue = 0) {\n // parseFloat(value) handles most of the cases we're interested in (it treats null, empty string,\n // and other non-number values as NaN, where Number just uses 0) but it considers the string\n // '123hello' to be a valid number. Therefore we also check if Number(value) is NaN.\n return isNaN(parseFloat( /** @type {?} */((value as any)))) || isNaN(Number(value)) ? fallbackValue : Number(value);\n}\n"],"names":["coerceBooleanProperty","value","fallbackValue","isNaN","parseFloat","Number"],"mappings":";;;;;;;0PAMA,SAAAA,GAGCC,GAFC,MAGgB,OAATA,GAAiB,GAH1BA,GAGyC,wBCCvC,WAJF,KAAAC,IAAAA,EAAA,GAMSC,MAAMC,WAFf,KAE4CD,MAAME,OAAOJ,IAAUC,EAAgBG,OAAOJ"}
1
+ {"version":3,"sources":["/Users/karakara/repos/material2/dist/bundles/cdk-coercion.umd.js"],"names":["global","factory","exports","module","define","amd","ng","cdk","coercion","this","coerceBooleanProperty","value","coerceNumberProperty","fallbackValue","isNaN","parseFloat","Number","coerceArray","Array","isArray","Object","defineProperty"],"mappings":";;;;;;;CAOC,SAAUA,EAAQC,GACC,gBAAZC,UAA0C,mBAAXC,QAAyBF,EAAQC,SACrD,kBAAXE,SAAyBA,OAAOC,IAAMD,QAAQ,WAAYH,GAChEA,GAASD,EAAOM,GAAKN,EAAOM,OAAUN,EAAOM,GAAGC,IAAMP,EAAOM,GAAGC,QAAWP,EAAOM,GAAGC,IAAIC,SAAWR,EAAOM,GAAGC,IAAIC,gBAClHC,KAAM,SAAWP,GAAW,YAO9B,SAASQ,GAAsBC,GAC3B,MAAgB,OAATA,GAAiB,GAAKA,GAAU,QAS3C,QAASC,GAAqBD,EAAOE,GAKjC,WAJsB,KAAlBA,IAA4BA,EAAgB,GAIzCC,MAAMC,WAA4B,KAAaD,MAAME,OAAOL,IAAUE,EAAgBG,OAAOL,GASxG,QAASM,GAAYN,GACjB,MAAOO,OAAMC,QAAQR,GAASA,GAASA,GAG3CT,EAAQQ,sBAAwBA,EAChCR,EAAQU,qBAAuBA,EAC/BV,EAAQe,YAAcA,EAEtBG,OAAOC,eAAenB,EAAS,cAAgBS,OAAO","file":"/Users/karakara/repos/material2/dist/bundles/cdk-coercion.umd.min.js"}
@@ -6,10 +6,10 @@
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
8
  (function (global, factory) {
9
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('rxjs/Subject')) :
10
- typeof define === 'function' && define.amd ? define(['exports', 'rxjs/Subject'], factory) :
11
- (factory((global.ng = global.ng || {}, global.ng.cdk = global.ng.cdk || {}, global.ng.cdk.collections = global.ng.cdk.collections || {}),global.Rx));
12
- }(this, (function (exports,rxjs_Subject) { 'use strict';
9
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('rxjs/Subject'), require('@angular/core')) :
10
+ typeof define === 'function' && define.amd ? define(['exports', 'rxjs/Subject', '@angular/core'], factory) :
11
+ (factory((global.ng = global.ng || {}, global.ng.cdk = global.ng.cdk || {}, global.ng.cdk.collections = global.ng.cdk.collections || {}),global.Rx,global.ng.core));
12
+ }(this, (function (exports,rxjs_Subject,_angular_core) { 'use strict';
13
13
 
14
14
  /**
15
15
  * @abstract
@@ -39,6 +39,7 @@ var DataSource = (function () {
39
39
  DataSource.prototype.disconnect = function (collectionViewer) { };
40
40
  return DataSource;
41
41
  }());
42
+
42
43
  /**
43
44
  * Class to be used to power selecting one or more options from a list.
44
45
  */
@@ -97,20 +98,32 @@ var SelectionModel = (function () {
97
98
  });
98
99
  /**
99
100
  * Selects a value or an array of values.
100
- * @param {?} value
101
+ * @param {...?} values
101
102
  * @return {?}
102
103
  */
103
- SelectionModel.prototype.select = function (value) {
104
- this._markSelected(value);
104
+ SelectionModel.prototype.select = function () {
105
+ var _this = this;
106
+ var values = [];
107
+ for (var _i = 0; _i < arguments.length; _i++) {
108
+ values[_i] = arguments[_i];
109
+ }
110
+ this._verifyValueAssignment(values);
111
+ values.forEach(function (value) { return _this._markSelected(value); });
105
112
  this._emitChangeEvent();
106
113
  };
107
114
  /**
108
115
  * Deselects a value or an array of values.
109
- * @param {?} value
116
+ * @param {...?} values
110
117
  * @return {?}
111
118
  */
112
- SelectionModel.prototype.deselect = function (value) {
113
- this._unmarkSelected(value);
119
+ SelectionModel.prototype.deselect = function () {
120
+ var _this = this;
121
+ var values = [];
122
+ for (var _i = 0; _i < arguments.length; _i++) {
123
+ values[_i] = arguments[_i];
124
+ }
125
+ this._verifyValueAssignment(values);
126
+ values.forEach(function (value) { return _this._unmarkSelected(value); });
114
127
  this._emitChangeEvent();
115
128
  };
116
129
  /**
@@ -215,10 +228,21 @@ var SelectionModel = (function () {
215
228
  this._selection.forEach(function (value) { return _this._unmarkSelected(value); });
216
229
  }
217
230
  };
231
+ /**
232
+ * Verifies the value assignment and throws an error if the specified value array is
233
+ * including multiple values while the selection model is not supporting multiple values.
234
+ * @param {?} values
235
+ * @return {?}
236
+ */
237
+ SelectionModel.prototype._verifyValueAssignment = function (values) {
238
+ if (values.length > 1 && !this._isMulti) {
239
+ throw getMultipleValuesInSingleSelectionError();
240
+ }
241
+ };
218
242
  return SelectionModel;
219
243
  }());
220
244
  /**
221
- * Describes an event emitted when the value of a MdSelectionModel has changed.
245
+ * Describes an event emitted when the value of a MatSelectionModel has changed.
222
246
  * \@docs-private
223
247
  */
224
248
  var SelectionChange = (function () {
@@ -232,10 +256,88 @@ var SelectionChange = (function () {
232
256
  }
233
257
  return SelectionChange;
234
258
  }());
259
+ /**
260
+ * Returns an error that reports that multiple values are passed into a selection model
261
+ * with a single value.
262
+ * @return {?}
263
+ */
264
+ function getMultipleValuesInSingleSelectionError() {
265
+ return Error('Cannot pass multiple values into SelectionModel with single-value mode.');
266
+ }
267
+
268
+ /**
269
+ * Class to coordinate unique selection based on name.
270
+ * Intended to be consumed as an Angular service.
271
+ * This service is needed because native radio change events are only fired on the item currently
272
+ * being selected, and we still need to uncheck the previous selection.
273
+ *
274
+ * This service does not *store* any IDs and names because they may change at any time, so it is
275
+ * less error-prone if they are simply passed through when the events occur.
276
+ */
277
+ var UniqueSelectionDispatcher = (function () {
278
+ function UniqueSelectionDispatcher() {
279
+ this._listeners = [];
280
+ }
281
+ /**
282
+ * Notify other items that selection for the given name has been set.
283
+ * @param {?} id ID of the item.
284
+ * @param {?} name Name of the item.
285
+ * @return {?}
286
+ */
287
+ UniqueSelectionDispatcher.prototype.notify = function (id, name) {
288
+ for (var _i = 0, _a = this._listeners; _i < _a.length; _i++) {
289
+ var listener = _a[_i];
290
+ listener(id, name);
291
+ }
292
+ };
293
+ /**
294
+ * Listen for future changes to item selection.
295
+ * @param {?} listener
296
+ * @return {?} Function used to deregister listener
297
+ */
298
+ UniqueSelectionDispatcher.prototype.listen = function (listener) {
299
+ var _this = this;
300
+ this._listeners.push(listener);
301
+ return function () {
302
+ _this._listeners = _this._listeners.filter(function (registered) {
303
+ return listener !== registered;
304
+ });
305
+ };
306
+ };
307
+ UniqueSelectionDispatcher.decorators = [
308
+ { type: _angular_core.Injectable },
309
+ ];
310
+ /**
311
+ * @nocollapse
312
+ */
313
+ UniqueSelectionDispatcher.ctorParameters = function () { return []; };
314
+ return UniqueSelectionDispatcher;
315
+ }());
316
+ /**
317
+ * \@docs-private
318
+ * @param {?} parentDispatcher
319
+ * @return {?}
320
+ */
321
+ function UNIQUE_SELECTION_DISPATCHER_PROVIDER_FACTORY(parentDispatcher) {
322
+ return parentDispatcher || new UniqueSelectionDispatcher();
323
+ }
324
+ /**
325
+ * \@docs-private
326
+ */
327
+ var UNIQUE_SELECTION_DISPATCHER_PROVIDER = {
328
+ // If there is already a dispatcher available, use that. Otherwise, provide a new one.
329
+ provide: UniqueSelectionDispatcher,
330
+ deps: [[new _angular_core.Optional(), new _angular_core.SkipSelf(), UniqueSelectionDispatcher]],
331
+ useFactory: UNIQUE_SELECTION_DISPATCHER_PROVIDER_FACTORY
332
+ };
235
333
 
334
+ exports.UniqueSelectionDispatcher = UniqueSelectionDispatcher;
335
+ exports.UNIQUE_SELECTION_DISPATCHER_PROVIDER = UNIQUE_SELECTION_DISPATCHER_PROVIDER;
236
336
  exports.DataSource = DataSource;
237
337
  exports.SelectionModel = SelectionModel;
238
338
  exports.SelectionChange = SelectionChange;
339
+ exports.getMultipleValuesInSingleSelectionError = getMultipleValuesInSingleSelectionError;
340
+ exports.ɵa = UNIQUE_SELECTION_DISPATCHER_PROVIDER_FACTORY;
239
341
 
240
342
  Object.defineProperty(exports, '__esModule', { value: true });
241
343
 
@@ -1 +1 @@
1
- {"version":3,"file":"cdk-collections.umd.js","sources":["../../src/cdk/collections/selection.ts","../../src/cdk/collections/data-source.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n\nimport {Subject} from 'rxjs/Subject';\n/**\n * Class to be used to power selecting one or more options from a list.\n */\nexport class SelectionModel<T> {\n/**\n * Currently-selected values.\n */\nprivate _selection: Set<T> = new Set();\n/**\n * Keeps track of the deselected options that haven't been emitted by the change event.\n */\nprivate _deselectedToEmit: T[] = [];\n/**\n * Keeps track of the selected option that haven't been emitted by the change event.\n */\nprivate _selectedToEmit: T[] = [];\n/**\n * Cache for the array value of the selected items.\n */\nprivate _selected: T[] | null;\n/**\n * Selected value(s).\n * @return {?}\n */\nget selected(): T[] {\n if (!this._selected) {\n this._selected = Array.from(this._selection.values());\n }\n\n return this._selected;\n }\n/**\n * Event emitted when the value has changed.\n */\nonChange: Subject<SelectionChange<T>> | null = this._emitChanges ? new Subject() : null;\n/**\n * @param {?=} _isMulti\n * @param {?=} initiallySelectedValues\n * @param {?=} _emitChanges\n */\nconstructor(\nprivate _isMulti = false,\n initiallySelectedValues?: T[],\nprivate _emitChanges = true) {\n\n if (initiallySelectedValues) {\n if (_isMulti) {\n initiallySelectedValues.forEach(value => this._markSelected(value));\n } else {\n this._markSelected(initiallySelectedValues[0]);\n }\n\n // Clear the array in order to avoid firing the change event for preselected values.\n this._selectedToEmit.length = 0;\n }\n }\n/**\n * Selects a value or an array of values.\n * @param {?} value\n * @return {?}\n */\nselect(value: T): void {\n this._markSelected(value);\n this._emitChangeEvent();\n }\n/**\n * Deselects a value or an array of values.\n * @param {?} value\n * @return {?}\n */\ndeselect(value: T): void {\n this._unmarkSelected(value);\n this._emitChangeEvent();\n }\n/**\n * Toggles a value between selected and deselected.\n * @param {?} value\n * @return {?}\n */\ntoggle(value: T): void {\n this.isSelected(value) ? this.deselect(value) : this.select(value);\n }\n/**\n * Clears all of the selected values.\n * @return {?}\n */\nclear(): void {\n this._unmarkAll();\n this._emitChangeEvent();\n }\n/**\n * Determines whether a value is selected.\n * @param {?} value\n * @return {?}\n */\nisSelected(value: T): boolean {\n return this._selection.has(value);\n }\n/**\n * Determines whether the model does not have a value.\n * @return {?}\n */\nisEmpty(): boolean {\n return this._selection.size === 0;\n }\n/**\n * Determines whether the model has a value.\n * @return {?}\n */\nhasValue(): boolean {\n return !this.isEmpty();\n }\n/**\n * Sorts the selected values based on a predicate function.\n * @param {?=} predicate\n * @return {?}\n */\nsort(predicate?: (a: T, b: T) => number): void {\n if (this._isMulti && this._selected) {\n this._selected.sort(predicate);\n }\n }\n/**\n * Emits a change event and clears the records of selected and deselected values.\n * @return {?}\n */\nprivate _emitChangeEvent() {\n if (this._selectedToEmit.length || this._deselectedToEmit.length) {\n let /** @type {?} */ eventData = new SelectionChange(this._selectedToEmit, this._deselectedToEmit);\n\n if (this.onChange) {\n this.onChange.next(eventData);\n }\n\n this._deselectedToEmit = [];\n this._selectedToEmit = [];\n }\n\n this._selected = null;\n }\n/**\n * Selects a value.\n * @param {?} value\n * @return {?}\n */\nprivate _markSelected(value: T) {\n if (!this.isSelected(value)) {\n if (!this._isMulti) {\n this._unmarkAll();\n }\n\n this._selection.add(value);\n\n if (this._emitChanges) {\n this._selectedToEmit.push(value);\n }\n }\n }\n/**\n * Deselects a value.\n * @param {?} value\n * @return {?}\n */\nprivate _unmarkSelected(value: T) {\n if (this.isSelected(value)) {\n this._selection.delete(value);\n\n if (this._emitChanges) {\n this._deselectedToEmit.push(value);\n }\n }\n }\n/**\n * Clears out the selected values.\n * @return {?}\n */\nprivate _unmarkAll() {\n if (!this.isEmpty()) {\n this._selection.forEach(value => this._unmarkSelected(value));\n }\n }\n}\n\nfunction SelectionModel_tsickle_Closure_declarations() {\n/**\n * Currently-selected values.\n * @type {?}\n */\nSelectionModel.prototype._selection;\n/**\n * Keeps track of the deselected options that haven't been emitted by the change event.\n * @type {?}\n */\nSelectionModel.prototype._deselectedToEmit;\n/**\n * Keeps track of the selected option that haven't been emitted by the change event.\n * @type {?}\n */\nSelectionModel.prototype._selectedToEmit;\n/**\n * Cache for the array value of the selected items.\n * @type {?}\n */\nSelectionModel.prototype._selected;\n/**\n * Event emitted when the value has changed.\n * @type {?}\n */\nSelectionModel.prototype.onChange;\n/** @type {?} */\nSelectionModel.prototype._isMulti;\n/** @type {?} */\nSelectionModel.prototype._emitChanges;\n}\n\n/**\n * Describes an event emitted when the value of a MdSelectionModel has changed.\n * \\@docs-private\n */\nexport class SelectionChange<T> {\n/**\n * @param {?=} added\n * @param {?=} removed\n */\nconstructor(public added?: T[],\npublic removed?: T[]) { }\n}\n\nfunction SelectionChange_tsickle_Closure_declarations() {\n/** @type {?} */\nSelectionChange.prototype.added;\n/** @type {?} */\nSelectionChange.prototype.removed;\n}\n\n","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n\nimport {Observable} from 'rxjs/Observable';\nimport {CollectionViewer} from './collection-viewer';\n/**\n * @abstract\n */\nexport abstract class DataSource<T> {\n/**\n * Connects a collection viewer (such as a data-table) to this data source. Note that\n * the stream provided will be accessed during change detection and should not directly change\n * values that are bound in template views.\n * @abstract\n * @param {?} collectionViewer The component that exposes a view over the data provided by this\n * data source.\n * @return {?} Observable that emits a new value when the data changes.\n */\nconnect(collectionViewer: CollectionViewer) {}\n/**\n * Disconnects a collection viewer (such as a data-table) from this data source. Can be used\n * to perform any clean-up or tear-down operations when a view is being destroyed.\n * \n * @abstract\n * @param {?} collectionViewer The component that exposes a view over the data provided by this\n * data source.\n * @return {?}\n */\ndisconnect(collectionViewer: CollectionViewer) {}\n}\n"],"names":["Subject"],"mappings":";;;;;;;;;;;;;;;;;ICcA,SAAA,UAAA,GAAA;;;;;;;;;;;;;;;;;;;;;IAqBA,UAAA,CAAA,SAAA,CAAA,UAAA,GAAA,UAAA,gBAAA,EAAA,GAAA,CAAA;;CDzBA,EAAA,CAAA,CAAA;;;;;;;;;;IA6BA,SAAA,cAAA,CAAA,QAAA,EAAA,uBAAA,EAAA,YAAA,EAAA;QAEY,IAAZ,QAAA,KAAY,KAAZ,CAAA,EAAA,EAAA,QAAA,GAAA,KAAA,CAAA,EAAA;;;;QA1BG,IAAH,CAAA,YAAA,GAAA,YAAA,CAAA;;;;QAGG,IAAH,CAAA,UAAA,GAAA,IAAG,GAAA,EAAA,CAAA;;;;QAGA,IAAH,CA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use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport { Subject } from 'rxjs/Subject';\nimport { Injectable, Optional, SkipSelf } from '@angular/core';\n\n/**\n * @abstract\n */\nvar DataSource = (function () {\n function DataSource() {\n }\n /**\n * Connects a collection viewer (such as a data-table) to this data source. Note that\n * the stream provided will be accessed during change detection and should not directly change\n * values that are bound in template views.\n * @abstract\n * @param {?} collectionViewer The component that exposes a view over the data provided by this\n * data source.\n * @return {?} Observable that emits a new value when the data changes.\n */\n DataSource.prototype.connect = function (collectionViewer) { };\n /**\n * Disconnects a collection viewer (such as a data-table) from this data source. Can be used\n * to perform any clean-up or tear-down operations when a view is being destroyed.\n *\n * @abstract\n * @param {?} collectionViewer The component that exposes a view over the data provided by this\n * data source.\n * @return {?}\n */\n DataSource.prototype.disconnect = function (collectionViewer) { };\n return DataSource;\n}());\n\n/**\n * Class to be used to power selecting one or more options from a list.\n */\nvar SelectionModel = (function () {\n /**\n * @param {?=} _isMulti\n * @param {?=} initiallySelectedValues\n * @param {?=} _emitChanges\n */\n function SelectionModel(_isMulti, initiallySelectedValues, _emitChanges) {\n if (_isMulti === void 0) { _isMulti = false; }\n if (_emitChanges === void 0) { _emitChanges = true; }\n var _this = this;\n this._isMulti = _isMulti;\n this._emitChanges = _emitChanges;\n /**\n * Currently-selected values.\n */\n this._selection = new Set();\n /**\n * Keeps track of the deselected options that haven't been emitted by the change event.\n */\n this._deselectedToEmit = [];\n /**\n * Keeps track of the selected option that haven't been emitted by the change event.\n */\n this._selectedToEmit = [];\n /**\n * Event emitted when the value has changed.\n */\n this.onChange = this._emitChanges ? new Subject() : null;\n if (initiallySelectedValues) {\n if (_isMulti) {\n initiallySelectedValues.forEach(function (value) { return _this._markSelected(value); });\n }\n else {\n this._markSelected(initiallySelectedValues[0]);\n }\n // Clear the array in order to avoid firing the change event for preselected values.\n this._selectedToEmit.length = 0;\n }\n }\n Object.defineProperty(SelectionModel.prototype, \"selected\", {\n /**\n * Selected value(s).\n * @return {?}\n */\n get: function () {\n if (!this._selected) {\n this._selected = Array.from(this._selection.values());\n }\n return this._selected;\n },\n enumerable: true,\n configurable: true\n });\n /**\n * Selects a value or an array of values.\n * @param {...?} values\n * @return {?}\n */\n SelectionModel.prototype.select = function () {\n var _this = this;\n var values = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n values[_i] = arguments[_i];\n }\n this._verifyValueAssignment(values);\n values.forEach(function (value) { return _this._markSelected(value); });\n this._emitChangeEvent();\n };\n /**\n * Deselects a value or an array of values.\n * @param {...?} values\n * @return {?}\n */\n SelectionModel.prototype.deselect = function () {\n var _this = this;\n var values = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n values[_i] = arguments[_i];\n }\n this._verifyValueAssignment(values);\n values.forEach(function (value) { return _this._unmarkSelected(value); });\n this._emitChangeEvent();\n };\n /**\n * Toggles a value between selected and deselected.\n * @param {?} value\n * @return {?}\n */\n SelectionModel.prototype.toggle = function (value) {\n this.isSelected(value) ? this.deselect(value) : this.select(value);\n };\n /**\n * Clears all of the selected values.\n * @return {?}\n */\n SelectionModel.prototype.clear = function () {\n this._unmarkAll();\n this._emitChangeEvent();\n };\n /**\n * Determines whether a value is selected.\n * @param {?} value\n * @return {?}\n */\n SelectionModel.prototype.isSelected = function (value) {\n return this._selection.has(value);\n };\n /**\n * Determines whether the model does not have a value.\n * @return {?}\n */\n SelectionModel.prototype.isEmpty = function () {\n return this._selection.size === 0;\n };\n /**\n * Determines whether the model has a value.\n * @return {?}\n */\n SelectionModel.prototype.hasValue = function () {\n return !this.isEmpty();\n };\n /**\n * Sorts the selected values based on a predicate function.\n * @param {?=} predicate\n * @return {?}\n */\n SelectionModel.prototype.sort = function (predicate) {\n if (this._isMulti && this._selected) {\n this._selected.sort(predicate);\n }\n };\n /**\n * Emits a change event and clears the records of selected and deselected values.\n * @return {?}\n */\n SelectionModel.prototype._emitChangeEvent = function () {\n if (this._selectedToEmit.length || this._deselectedToEmit.length) {\n var /** @type {?} */ eventData = new SelectionChange(this._selectedToEmit, this._deselectedToEmit);\n if (this.onChange) {\n this.onChange.next(eventData);\n }\n this._deselectedToEmit = [];\n this._selectedToEmit = [];\n }\n this._selected = null;\n };\n /**\n * Selects a value.\n * @param {?} value\n * @return {?}\n */\n SelectionModel.prototype._markSelected = function (value) {\n if (!this.isSelected(value)) {\n if (!this._isMulti) {\n this._unmarkAll();\n }\n this._selection.add(value);\n if (this._emitChanges) {\n this._selectedToEmit.push(value);\n }\n }\n };\n /**\n * Deselects a value.\n * @param {?} value\n * @return {?}\n */\n SelectionModel.prototype._unmarkSelected = function (value) {\n if (this.isSelected(value)) {\n this._selection.delete(value);\n if (this._emitChanges) {\n this._deselectedToEmit.push(value);\n }\n }\n };\n /**\n * Clears out the selected values.\n * @return {?}\n */\n SelectionModel.prototype._unmarkAll = function () {\n var _this = this;\n if (!this.isEmpty()) {\n this._selection.forEach(function (value) { return _this._unmarkSelected(value); });\n }\n };\n /**\n * Verifies the value assignment and throws an error if the specified value array is\n * including multiple values while the selection model is not supporting multiple values.\n * @param {?} values\n * @return {?}\n */\n SelectionModel.prototype._verifyValueAssignment = function (values) {\n if (values.length > 1 && !this._isMulti) {\n throw getMultipleValuesInSingleSelectionError();\n }\n };\n return SelectionModel;\n}());\n/**\n * Describes an event emitted when the value of a MatSelectionModel has changed.\n * \\@docs-private\n */\nvar SelectionChange = (function () {\n /**\n * @param {?=} added\n * @param {?=} removed\n */\n function SelectionChange(added, removed) {\n this.added = added;\n this.removed = removed;\n }\n return SelectionChange;\n}());\n/**\n * Returns an error that reports that multiple values are passed into a selection model\n * with a single value.\n * @return {?}\n */\nfunction getMultipleValuesInSingleSelectionError() {\n return Error('Cannot pass multiple values into SelectionModel with single-value mode.');\n}\n\n/**\n * Class to coordinate unique selection based on name.\n * Intended to be consumed as an Angular service.\n * This service is needed because native radio change events are only fired on the item currently\n * being selected, and we still need to uncheck the previous selection.\n *\n * This service does not *store* any IDs and names because they may change at any time, so it is\n * less error-prone if they are simply passed through when the events occur.\n */\nvar UniqueSelectionDispatcher = (function () {\n function UniqueSelectionDispatcher() {\n this._listeners = [];\n }\n /**\n * Notify other items that selection for the given name has been set.\n * @param {?} id ID of the item.\n * @param {?} name Name of the item.\n * @return {?}\n */\n UniqueSelectionDispatcher.prototype.notify = function (id, name) {\n for (var _i = 0, _a = this._listeners; _i < _a.length; _i++) {\n var listener = _a[_i];\n listener(id, name);\n }\n };\n /**\n * Listen for future changes to item selection.\n * @param {?} listener\n * @return {?} Function used to deregister listener\n */\n UniqueSelectionDispatcher.prototype.listen = function (listener) {\n var _this = this;\n this._listeners.push(listener);\n return function () {\n _this._listeners = _this._listeners.filter(function (registered) {\n return listener !== registered;\n });\n };\n };\n UniqueSelectionDispatcher.decorators = [\n { type: Injectable },\n ];\n /**\n * @nocollapse\n */\n UniqueSelectionDispatcher.ctorParameters = function () { return []; };\n return UniqueSelectionDispatcher;\n}());\n/**\n * \\@docs-private\n * @param {?} parentDispatcher\n * @return {?}\n */\nfunction UNIQUE_SELECTION_DISPATCHER_PROVIDER_FACTORY(parentDispatcher) {\n return parentDispatcher || new UniqueSelectionDispatcher();\n}\n/**\n * \\@docs-private\n */\nvar UNIQUE_SELECTION_DISPATCHER_PROVIDER = {\n // If there is already a dispatcher available, use that. Otherwise, provide a new one.\n provide: UniqueSelectionDispatcher,\n deps: [[new Optional(), new SkipSelf(), UniqueSelectionDispatcher]],\n useFactory: UNIQUE_SELECTION_DISPATCHER_PROVIDER_FACTORY\n};\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { UniqueSelectionDispatcher, UNIQUE_SELECTION_DISPATCHER_PROVIDER, DataSource, SelectionModel, SelectionChange, getMultipleValuesInSingleSelectionError, UNIQUE_SELECTION_DISPATCHER_PROVIDER_FACTORY as ɵa };\n//# sourceMappingURL=collections.es5.js.map\n"],"names":["Subject","Injectable","Optional","SkipSelf"],"mappings":";;;;;;;;;;;;;AAUA;;;AAGA,IAAI,UAAU,IAAI,YAAY;IAC1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CAAC;QACjB,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC/B,OAAO,YAAY;YACf,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,UAAU,UAAU,EAAE;gBAC7D,OAAO,QAAQ,KAAK,UAAU,CAAC;aAClC,CAAC,CAAC;SACN,CAAC;KACL,CAAC;IACF,yBAAyB,CAAC,UAAU,GAAG;QACnC,EAAE,IAAI,EAAEC,wBAAU,EAAE;KACvB,CAAC;;;;IAIF,yBAAyB,CAAC,cAAc,GAAG,YAAY,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IACtE,OAAO,yBAAyB,CAAC;CACpC,EAAE,CAAC,CAAC;;;;;;AAML,SAAS,4CAA4C,CAAC,gBAAgB,EAAE;IACpE,OAAO,gBAAgB,IAAI,IAAI,yBAAyB,EAAE,CAAC;CAC9D;;;;AAID,IAAI,oCAAoC,GAAG;;IAEvC,OAAO,EAAE,yBAAyB;IAClC,IAAI,EAAE,CAAC,CAAC,IAAIC,sBAAQ,EAAE,EAAE,IAAIC,sBAAQ,EAAE,EAAE,yBAAyB,CAAC,CAAC;IACnE,UAAU,EAAE,4CAA4C;CAC3D,CAAC,AAEF,AAIqN,AACrN,AAA2C;;;;;;;;;;;;"}
@@ -5,5 +5,5 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("rxjs/Subject")):"function"==typeof define&&define.amd?define(["exports","rxjs/Subject"],t):t((e.ng=e.ng||{},e.ng.cdk=e.ng.cdk||{},e.ng.cdk.collections=e.ng.cdk.collections||{}),e.Rx)}(this,function(e,t){"use strict";var i=function(){function e(){}return e.prototype.connect=function(e){},e.prototype.disconnect=function(e){},e}(),n=function(){function e(e,i,n){void 0===e&&(e=!1),void 0===n&&(n=!0);var s=this;this._isMulti=e,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.onChange=this._emitChanges?new t.Subject:null,i&&(e?i.forEach(function(e){return s._markSelected(e)}):this._markSelected(i[0]),this._selectedToEmit.length=0)}return Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected},enumerable:!0,configurable:!0}),e.prototype.select=function(e){this._markSelected(e),this._emitChangeEvent()},e.prototype.deselect=function(e){this._unmarkSelected(e),this._emitChangeEvent()},e.prototype.toggle=function(e){this.isSelected(e)?this.deselect(e):this.select(e)},e.prototype.clear=function(){this._unmarkAll(),this._emitChangeEvent()},e.prototype.isSelected=function(e){return this._selection.has(e)},e.prototype.isEmpty=function(){return 0===this._selection.size},e.prototype.hasValue=function(){return!this.isEmpty()},e.prototype.sort=function(e){this._isMulti&&this._selected&&this._selected.sort(e)},e.prototype._emitChangeEvent=function(){if(this._selectedToEmit.length||this._deselectedToEmit.length){var e=new s(this._selectedToEmit,this._deselectedToEmit);this.onChange&&this.onChange.next(e),this._deselectedToEmit=[],this._selectedToEmit=[]}this._selected=null},e.prototype._markSelected=function(e){this.isSelected(e)||(this._isMulti||this._unmarkAll(),this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))},e.prototype._unmarkSelected=function(e){this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))},e.prototype._unmarkAll=function(){var e=this;this.isEmpty()||this._selection.forEach(function(t){return e._unmarkSelected(t)})},e}(),s=function(){function e(e,t){this.added=e,this.removed=t}return e}();e.DataSource=i,e.SelectionModel=n,e.SelectionChange=s,Object.defineProperty(e,"__esModule",{value:!0})});
9
- //# sourceMappingURL=cdk-collections.umd.min.js.map
8
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("rxjs/Subject"),require("@angular/core")):"function"==typeof define&&define.amd?define(["exports","rxjs/Subject","@angular/core"],t):t((e.ng=e.ng||{},e.ng.cdk=e.ng.cdk||{},e.ng.cdk.collections=e.ng.cdk.collections||{}),e.Rx,e.ng.core)}(this,function(e,t,n){"use strict";function i(){return Error("Cannot pass multiple values into SelectionModel with single-value mode.")}function s(e){return e||new l}var o=function(){function e(){}return e.prototype.connect=function(e){},e.prototype.disconnect=function(e){},e}(),r=function(){function e(e,n,i){void 0===e&&(e=!1),void 0===i&&(i=!0);var s=this;this._isMulti=e,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.onChange=this._emitChanges?new t.Subject:null,n&&(e?n.forEach(function(e){return s._markSelected(e)}):this._markSelected(n[0]),this._selectedToEmit.length=0)}return Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected},enumerable:!0,configurable:!0}),e.prototype.select=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._verifyValueAssignment(t),t.forEach(function(t){return e._markSelected(t)}),this._emitChangeEvent()},e.prototype.deselect=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._verifyValueAssignment(t),t.forEach(function(t){return e._unmarkSelected(t)}),this._emitChangeEvent()},e.prototype.toggle=function(e){this.isSelected(e)?this.deselect(e):this.select(e)},e.prototype.clear=function(){this._unmarkAll(),this._emitChangeEvent()},e.prototype.isSelected=function(e){return this._selection.has(e)},e.prototype.isEmpty=function(){return 0===this._selection.size},e.prototype.hasValue=function(){return!this.isEmpty()},e.prototype.sort=function(e){this._isMulti&&this._selected&&this._selected.sort(e)},e.prototype._emitChangeEvent=function(){if(this._selectedToEmit.length||this._deselectedToEmit.length){var e=new c(this._selectedToEmit,this._deselectedToEmit);this.onChange&&this.onChange.next(e),this._deselectedToEmit=[],this._selectedToEmit=[]}this._selected=null},e.prototype._markSelected=function(e){this.isSelected(e)||(this._isMulti||this._unmarkAll(),this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))},e.prototype._unmarkSelected=function(e){this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))},e.prototype._unmarkAll=function(){var e=this;this.isEmpty()||this._selection.forEach(function(t){return e._unmarkSelected(t)})},e.prototype._verifyValueAssignment=function(e){if(e.length>1&&!this._isMulti)throw i()},e}(),c=function(){function e(e,t){this.added=e,this.removed=t}return e}(),l=function(){function e(){this._listeners=[]}return e.prototype.notify=function(e,t){for(var n=0,i=this._listeners;n<i.length;n++){(0,i[n])(e,t)}},e.prototype.listen=function(e){var t=this;return this._listeners.push(e),function(){t._listeners=t._listeners.filter(function(t){return e!==t})}},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[]},e}(),u={provide:l,deps:[[new n.Optional,new n.SkipSelf,l]],useFactory:s};e.UniqueSelectionDispatcher=l,e.UNIQUE_SELECTION_DISPATCHER_PROVIDER=u,e.DataSource=o,e.SelectionModel=r,e.SelectionChange=c,e.getMultipleValuesInSingleSelectionError=i,e.ɵa=s,Object.defineProperty(e,"__esModule",{value:!0})});
9
+ //# sourceMappingURL=/Users/karakara/repos/material2/dist/bundles/cdk-collections.umd.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cdk-collections.umd.min.js","sources":["../../src/cdk/collections/data-source.ts","../../src/cdk/collections/selection.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n\nimport {Observable} from 'rxjs/Observable';\nimport {CollectionViewer} from './collection-viewer';\n/**\n * @abstract\n */\nexport abstract class DataSource<T> {\n/**\n * Connects a collection viewer (such as a data-table) to this data source. Note that\n * the stream provided will be accessed during change detection and should not directly change\n * values that are bound in template views.\n * @abstract\n * @param {?} collectionViewer The component that exposes a view over the data provided by this\n * data source.\n * @return {?} Observable that emits a new value when the data changes.\n */\nconnect(collectionViewer: CollectionViewer) {}\n/**\n * Disconnects a collection viewer (such as a data-table) from this data source. Can be used\n * to perform any clean-up or tear-down operations when a view is being destroyed.\n * \n * @abstract\n * @param {?} collectionViewer The component that exposes a view over the data provided by this\n * data source.\n * @return {?}\n */\ndisconnect(collectionViewer: CollectionViewer) {}\n}\n","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n\nimport {Subject} from 'rxjs/Subject';\n/**\n * Class to be used to power selecting one or more options from a list.\n */\nexport class SelectionModel<T> {\n/**\n * Currently-selected values.\n */\nprivate _selection: Set<T> = new Set();\n/**\n * Keeps track of the deselected options that haven't been emitted by the change event.\n */\nprivate _deselectedToEmit: T[] = [];\n/**\n * Keeps track of the selected option that haven't been emitted by the change event.\n */\nprivate _selectedToEmit: T[] = [];\n/**\n * Cache for the array value of the selected items.\n */\nprivate _selected: T[] | null;\n/**\n * Selected value(s).\n * @return {?}\n */\nget selected(): T[] {\n if (!this._selected) {\n this._selected = Array.from(this._selection.values());\n }\n\n return this._selected;\n }\n/**\n * Event emitted when the value has changed.\n */\nonChange: Subject<SelectionChange<T>> | null = this._emitChanges ? new Subject() : null;\n/**\n * @param {?=} _isMulti\n * @param {?=} initiallySelectedValues\n * @param {?=} _emitChanges\n */\nconstructor(\nprivate _isMulti = false,\n initiallySelectedValues?: T[],\nprivate _emitChanges = true) {\n\n if (initiallySelectedValues) {\n if (_isMulti) {\n initiallySelectedValues.forEach(value => this._markSelected(value));\n } else {\n this._markSelected(initiallySelectedValues[0]);\n }\n\n // Clear the array in order to avoid firing the change event for preselected values.\n this._selectedToEmit.length = 0;\n }\n }\n/**\n * Selects a value or an array of values.\n * @param {?} value\n * @return {?}\n */\nselect(value: T): void {\n this._markSelected(value);\n this._emitChangeEvent();\n }\n/**\n * Deselects a value or an array of values.\n * @param {?} value\n * @return {?}\n */\ndeselect(value: T): void {\n this._unmarkSelected(value);\n this._emitChangeEvent();\n }\n/**\n * Toggles a value between selected and deselected.\n * @param {?} value\n * @return {?}\n */\ntoggle(value: T): void {\n this.isSelected(value) ? this.deselect(value) : this.select(value);\n }\n/**\n * Clears all of the selected values.\n * @return {?}\n */\nclear(): void {\n this._unmarkAll();\n this._emitChangeEvent();\n }\n/**\n * Determines whether a value is selected.\n * @param {?} value\n * @return {?}\n */\nisSelected(value: T): boolean {\n return this._selection.has(value);\n }\n/**\n * Determines whether the model does not have a value.\n * @return {?}\n */\nisEmpty(): boolean {\n return this._selection.size === 0;\n }\n/**\n * Determines whether the model has a value.\n * @return {?}\n */\nhasValue(): boolean {\n return !this.isEmpty();\n }\n/**\n * Sorts the selected values based on a predicate function.\n * @param {?=} predicate\n * @return {?}\n */\nsort(predicate?: (a: T, b: T) => number): void {\n if (this._isMulti && this._selected) {\n this._selected.sort(predicate);\n }\n }\n/**\n * Emits a change event and clears the records of selected and deselected values.\n * @return {?}\n */\nprivate _emitChangeEvent() {\n if (this._selectedToEmit.length || this._deselectedToEmit.length) {\n let /** @type {?} */ eventData = new SelectionChange(this._selectedToEmit, this._deselectedToEmit);\n\n if (this.onChange) {\n this.onChange.next(eventData);\n }\n\n this._deselectedToEmit = [];\n this._selectedToEmit = [];\n }\n\n this._selected = null;\n }\n/**\n * Selects a value.\n * @param {?} value\n * @return {?}\n */\nprivate _markSelected(value: T) {\n if (!this.isSelected(value)) {\n if (!this._isMulti) {\n this._unmarkAll();\n }\n\n this._selection.add(value);\n\n if (this._emitChanges) {\n this._selectedToEmit.push(value);\n }\n }\n }\n/**\n * Deselects a value.\n * @param {?} value\n * @return {?}\n */\nprivate _unmarkSelected(value: T) {\n if (this.isSelected(value)) {\n this._selection.delete(value);\n\n if (this._emitChanges) {\n this._deselectedToEmit.push(value);\n }\n }\n }\n/**\n * Clears out the selected values.\n * @return {?}\n */\nprivate _unmarkAll() {\n if (!this.isEmpty()) {\n this._selection.forEach(value => this._unmarkSelected(value));\n }\n }\n}\n\nfunction SelectionModel_tsickle_Closure_declarations() {\n/**\n * Currently-selected values.\n * @type {?}\n */\nSelectionModel.prototype._selection;\n/**\n * Keeps track of the deselected options that haven't been emitted by the change event.\n * @type {?}\n */\nSelectionModel.prototype._deselectedToEmit;\n/**\n * Keeps track of the selected option that haven't been emitted by the change event.\n * @type {?}\n */\nSelectionModel.prototype._selectedToEmit;\n/**\n * Cache for the array value of the selected items.\n * @type {?}\n */\nSelectionModel.prototype._selected;\n/**\n * Event emitted when the value has changed.\n * @type {?}\n */\nSelectionModel.prototype.onChange;\n/** @type {?} */\nSelectionModel.prototype._isMulti;\n/** @type {?} */\nSelectionModel.prototype._emitChanges;\n}\n\n/**\n * Describes an event emitted when the value of a MdSelectionModel has changed.\n * \\@docs-private\n */\nexport class SelectionChange<T> {\n/**\n * @param {?=} added\n * @param {?=} removed\n */\nconstructor(public added?: T[],\npublic removed?: T[]) { }\n}\n\nfunction SelectionChange_tsickle_Closure_declarations() {\n/** @type {?} */\nSelectionChange.prototype.added;\n/** @type {?} */\nSelectionChange.prototype.removed;\n}\n\n"],"names":["DataSource","prototype","disconnect","collectionViewer","SelectionModel","_isMulti","initiallySelectedValues","_emitChanges","this","_selection","Set","_deselectedToEmit","_selectedToEmit","onChange","Subject","forEach","value","_this","_markSelected","Object","defineProperty","get","enumerable","configurable","_emitChangeEvent","_unmarkSelected","toggle","isSelected","deselect","select","_unmarkAll","has","isEmpty","size","hasValue","_selected","sort","predicate","length","eventData","SelectionChange","push"],"mappings":";;;;;;;gUAcA,QAAAA,+CAqBAA,EAAAC,UAAAC,WAAA,SAAAC,uBCIA,QAAAC,GAAAC,EAAAC,EAAAC,OAEY,KAAZF,IAAAA,GAAA,iDA1BGG,KAAHD,aAAAA,EAGGC,KAAHC,WAAA,GAAGC,KAGAF,KAAHG,qBAuBAH,KAAAI,mBAcAJ,KAAOK,SAAPL,KAAAD,aAAA,GAAAO,GAAAA,QAAA,KAAAR,IACQD,EACRC,EAAAS,QAAA,SAAAC,GAAA,MAAAC,GAAAC,cAAAF,KAIAR,KAAAU,cAAAZ,EAAA,yCA9BAa,QAAAC,eAAAhB,EAAAH,UAAA,YAMAoB,IAAA,wGA+BAC,YAAA,EACIC,cAAJ,mCAQAf,KAdGU,cAcHF,GACIR,KAdKgB,qDAsBThB,KAAAiB,gBAAAT,GACIR,KAfKgB,oBAsBTpB,EAAAH,UAAAyB,OAAA,SAAAV,GACIR,KAfKmB,WAeTX,GAAAR,KAAAoB,SAAAZ,GAAAR,KAAAqB,OAAAb,iCAOAR,KAAAsB,aACItB,KAAJgB,oBAOApB,EAhBWH,UAgBX0B,WAhBsC,SAgBtCX,GACA,MAAAR,MAAAC,WAAAsB,IAAAf,IAMAZ,EAAAH,UAAA+B,QAAA,WACA,MAAA,KAAAxB,KAAAC,WAAAwB,MAMA7B,EAAAH,UAAAiC,SAAA,WACI,OAjBK1B,KAiBTwB,wCAXAxB,KAAAH,UAAAG,KAAA2B,WAoBQ3B,KAnBK2B,UAmBbC,KAnBcC,IA4BdjC,EAAAH,UAAAuB,iBAAA,WAEI,GAAIhB,KAARI,gBAAA0B,QAAA9B,KAAAG,kBAAA2B,OAAA,CACA,GAAAC,GAAA,GAAAC,GAAAhC,KAAAI,gBAAAJ,KAAAG,0GAOIH,KAtBK2B,UAsBT,MASA/B,EAAAH,UAAAiB,cAAA,SAAAF,GACAR,KAAAmB,WAAAX,KACAR,KAAAH,+MARAG,KAAAG,kBAAA8B,KAAAzB,iDAsEAR,MAAAwB"}
1
+ {"version":3,"sources":["/Users/karakara/repos/material2/dist/bundles/cdk-collections.umd.js"],"names":["global","factory","exports","module","require","define","amd","ng","cdk","collections","Rx","core","this","rxjs_Subject","_angular_core","getMultipleValuesInSingleSelectionError","Error","UNIQUE_SELECTION_DISPATCHER_PROVIDER_FACTORY","parentDispatcher","UniqueSelectionDispatcher","DataSource","prototype","connect","collectionViewer","disconnect","SelectionModel","_isMulti","initiallySelectedValues","_emitChanges","_this","_selection","Set","_deselectedToEmit","_selectedToEmit","onChange","Subject","forEach","value","_markSelected","length","Object","defineProperty","get","_selected","Array","from","values","enumerable","configurable","select","_i","arguments","_verifyValueAssignment","_emitChangeEvent","deselect","_unmarkSelected","toggle","isSelected","clear","_unmarkAll","has","isEmpty","size","hasValue","sort","predicate","eventData","SelectionChange","next","add","push","delete","added","removed","_listeners","notify","id","name","_a","listener","listen","filter","registered","decorators","type","Injectable","ctorParameters","UNIQUE_SELECTION_DISPATCHER_PROVIDER","provide","deps","Optional","SkipSelf","useFactory","ɵa"],"mappings":";;;;;;;CAOC,SAAUA,EAAQC,GACC,gBAAZC,UAA0C,mBAAXC,QAAyBF,EAAQC,QAASE,QAAQ,gBAAiBA,QAAQ,kBAC/F,kBAAXC,SAAyBA,OAAOC,IAAMD,QAAQ,UAAW,eAAgB,iBAAkBJ,GACjGA,GAASD,EAAOO,GAAKP,EAAOO,OAAUP,EAAOO,GAAGC,IAAMR,EAAOO,GAAGC,QAAWR,EAAOO,GAAGC,IAAIC,YAAcT,EAAOO,GAAGC,IAAIC,iBAAmBT,EAAOU,GAAGV,EAAOO,GAAGI,OAC5JC,KAAM,SAAWV,EAAQW,EAAaC,GAAiB,YA4PzD,SAASC,KACL,MAAOC,OAAM,2EAwDjB,QAASC,GAA6CC,GAClD,MAAOA,IAAoB,GAAIC,GAjTnC,GAAIC,GAAc,WACd,QAASA,MAsBT,MAXAA,GAAWC,UAAUC,QAAU,SAAUC,KAUzCH,EAAWC,UAAUG,WAAa,SAAUD,KACrCH,KAMPK,EAAkB,WAMlB,QAASA,GAAeC,EAAUC,EAAyBC,OACtC,KAAbF,IAAuBA,GAAW,OACjB,KAAjBE,IAA2BA,GAAe,EAC9C,IAAIC,GAAQjB,IACZA,MAAKc,SAAWA,EAChBd,KAAKgB,aAAeA,EAIpBhB,KAAKkB,WAAa,GAAIC,KAItBnB,KAAKoB,qBAILpB,KAAKqB,mBAILrB,KAAKsB,SAAWtB,KAAKgB,aAAe,GAAIf,GAAasB,QAAY,KAC7DR,IACID,EACAC,EAAwBS,QAAQ,SAAUC,GAAS,MAAOR,GAAMS,cAAcD,KAG9EzB,KAAK0B,cAAcX,EAAwB,IAG/Cf,KAAKqB,gBAAg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AKS,GACd,WACHlD,EAAM6C,WAAa7C,EAAM6C,WAAWO,OAAO,SAAUC,GACjD,MAAOH,KAAaG,MAIhC/D,EAA0BgE,aACpBC,KAAMtE,EAAcuE,aAK1BlE,EAA0BmE,eAAiB,WAAc,UAClDnE,KAaPoE,GAEAC,QAASrE,EACTsE,OAAQ,GAAI3E,GAAc4E,SAAY,GAAI5E,GAAc6E,SAAYxE,IACpEyE,WAAY3E,EAGhBf,GAAQiB,0BAA4BA,EACpCjB,EAAQqF,qCAAuCA,EAC/CrF,EAAQkB,WAAaA,EACrBlB,EAAQuB,eAAiBA,EACzBvB,EAAQiE,gBAAkBA,EAC1BjE,EAAQa,wCAA0CA,EAClDb,EAAQ2F,GAAK5E,EAEbuB,OAAOC,eAAevC,EAAS,cAAgBmC,OAAO","file":"/Users/karakara/repos/material2/dist/bundles/cdk-collections.umd.min.js"}
@@ -1 +1 @@
1
- {"version":3,"file":"cdk-keycodes.umd.js","sources":["../../src/cdk/keycodes/keycodes.ts","../../src/cdk/keycodes/index.ts"],"sourcesContent":["\n/**\n * @license \n * Copyright Google Inc. All Rights Reserved.\n * \n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nexport const UP_ARROW = 38;\nexport const /** @type {?} */ DOWN_ARROW = 40;\nexport const /** @type {?} */ RIGHT_ARROW = 39;\nexport const /** @type {?} */ LEFT_ARROW = 37;\nexport const /** @type {?} */ PAGE_UP = 33;\nexport const /** @type {?} */ PAGE_DOWN = 34;\nexport const /** @type {?} */ HOME = 36;\nexport const /** @type {?} */ END = 35;\nexport const /** @type {?} */ ENTER = 13;\nexport const /** @type {?} */ SPACE = 32;\nexport const /** @type {?} */ TAB = 9;\nexport const /** @type {?} */ ESCAPE = 27;\nexport const /** @type {?} */ BACKSPACE = 8;\nexport const /** @type {?} */ DELETE = 46;\nexport const /** @type {?} */ A = 65;\nexport const /** @type {?} */ Z = 90;\nexport const /** @type {?} */ ZERO = 48;\nexport const /** @type {?} */ NINE = 91;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport {UP_ARROW,DOWN_ARROW,RIGHT_ARROW,LEFT_ARROW,PAGE_UP,PAGE_DOWN,HOME,END,ENTER,SPACE,TAB,ESCAPE,BACKSPACE,DELETE,A,Z,ZERO,NINE} from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAQC,IAAD,QAAA,GAAA,EAAC,CAAD;AACA,IAAA,UAAA,GAAA,EAA0B,CAA1B;AACA,IAAA,WAAA,GAAA,EAA2B,CAA3B;AACA,IAAA,UAAA,GAAA,EAA0B,CAA1B;AACA,IAAA,OAAA,GAAA,EAAuB,CAAvB;AACA,IAAA,SAAA,GAAA,EAAyB,CAAzB;AACA,IAAA,IAAA,GAAA,EAAoB,CAApB;AACA,IAAA,GAAA,GAAA,EAAmB,CAAnB;AACA,IAAA,KAAA,GAAA,EAAqB,CAArB;AACA,IAAA,KAAA,GAAA,EAAqB,CAArB;AACA,IAAA,GAAA,GAAA,CAAA,CAAmB;AACnB,IAAA,MAAA,GAAA,EAAsB,CAAtB;AACA,IAAA,SAAA,GAAA,CAAA,CAAyB;AACzB,IAAA,MAAA,GAAA,EAAsB,CAAtB;AACA,IAAA,CAAA,GAAA,EAAiB,CAAjB;AACA,IAAA,CAAA,GAAA,EAAiB,CAAjB;AACA,IAAA,IAAA,GAAA,EAAoB,CAApB;AACA,IAAA,IAAA,GAAA,EAAoB,CAApB,ACvBA;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"cdk-keycodes.umd.js","sources":["cdk/keycodes.es5.js"],"sourcesContent":["/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nvar UP_ARROW = 38;\nvar DOWN_ARROW = 40;\nvar RIGHT_ARROW = 39;\nvar LEFT_ARROW = 37;\nvar PAGE_UP = 33;\nvar PAGE_DOWN = 34;\nvar HOME = 36;\nvar END = 35;\nvar ENTER = 13;\nvar SPACE = 32;\nvar TAB = 9;\nvar ESCAPE = 27;\nvar BACKSPACE = 8;\nvar DELETE = 46;\nvar A = 65;\nvar Z = 90;\nvar ZERO = 48;\nvar NINE = 91;\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { UP_ARROW, DOWN_ARROW, RIGHT_ARROW, LEFT_ARROW, PAGE_UP, PAGE_DOWN, HOME, END, ENTER, SPACE, TAB, ESCAPE, BACKSPACE, DELETE, A, Z, ZERO, NINE };\n//# sourceMappingURL=keycodes.es5.js.map\n"],"names":[],"mappings":";;;;;;;;;;;;;AAOA,IAAI,QAAQ,GAAG,EAAE,CAAC;AAClB,IAAI,UAAU,GAAG,EAAE,CAAC;AACpB,IAAI,WAAW,GAAG,EAAE,CAAC;AACrB,IAAI,UAAU,GAAG,EAAE,CAAC;AACpB,IAAI,OAAO,GAAG,EAAE,CAAC;AACjB,IAAI,SAAS,GAAG,EAAE,CAAC;AACnB,IAAI,IAAI,GAAG,EAAE,CAAC;AACd,IAAI,GAAG,GAAG,EAAE,CAAC;AACb,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAI,GAAG,GAAG,CAAC,CAAC;AACZ,IAAI,MAAM,GAAG,EAAE,CAAC;AAChB,IAAI,SAAS,GAAG,CAAC,CAAC;AAClB,IAAI,MAAM,GAAG,EAAE,CAAC;AAChB,IAAI,CAAC,GAAG,EAAE,CAAC;AACX,IAAI,CAAC,GAAG,EAAE,CAAC;AACX,IAAI,IAAI,GAAG,EAAE,CAAC;AACd,IAAI,IAAI,GAAG,EAAE,CAAC,AAEd,AAIwJ,AACxJ,AAAwC;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -6,4 +6,4 @@
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
8
  !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e.ng=e.ng||{},e.ng.cdk=e.ng.cdk||{},e.ng.cdk.keycodes=e.ng.cdk.keycodes||{}))}(this,function(e){"use strict";e.UP_ARROW=38,e.DOWN_ARROW=40,e.RIGHT_ARROW=39,e.LEFT_ARROW=37,e.PAGE_UP=33,e.PAGE_DOWN=34,e.HOME=36,e.END=35,e.ENTER=13,e.SPACE=32,e.TAB=9,e.ESCAPE=27,e.BACKSPACE=8,e.DELETE=46,e.A=65,e.Z=90,e.ZERO=48,e.NINE=91,Object.defineProperty(e,"__esModule",{value:!0})});
9
- //# sourceMappingURL=cdk-keycodes.umd.min.js.map
9
+ //# sourceMappingURL=/Users/karakara/repos/material2/dist/bundles/cdk-keycodes.umd.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cdk-keycodes.umd.min.js","sources":["../../src/cdk/keycodes/keycodes.ts"],"sourcesContent":["\n/**\n * @license \n * Copyright Google Inc. All Rights Reserved.\n * \n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nexport const UP_ARROW = 38;\nexport const /** @type {?} */ DOWN_ARROW = 40;\nexport const /** @type {?} */ RIGHT_ARROW = 39;\nexport const /** @type {?} */ LEFT_ARROW = 37;\nexport const /** @type {?} */ PAGE_UP = 33;\nexport const /** @type {?} */ PAGE_DOWN = 34;\nexport const /** @type {?} */ HOME = 36;\nexport const /** @type {?} */ END = 35;\nexport const /** @type {?} */ ENTER = 13;\nexport const /** @type {?} */ SPACE = 32;\nexport const /** @type {?} */ TAB = 9;\nexport const /** @type {?} */ ESCAPE = 27;\nexport const /** @type {?} */ BACKSPACE = 8;\nexport const /** @type {?} */ DELETE = 46;\nexport const /** @type {?} */ A = 65;\nexport const /** @type {?} */ Z = 90;\nexport const /** @type {?} */ ZERO = 48;\nexport const /** @type {?} */ NINE = 91;\n"],"names":[],"mappings":";;;;;;;sQAQA,gBACA,iBACA,gBACA,aACA,eACA,UACA,SACA,WACA,WACA,SACA,WACA,eACA,WACA,OACA,OACA,UACA,UACA"}
1
+ {"version":3,"sources":["/Users/karakara/repos/material2/dist/bundles/cdk-keycodes.umd.js"],"names":["global","factory","exports","module","define","amd","ng","cdk","keycodes","this","UP_ARROW","DOWN_ARROW","RIGHT_ARROW","LEFT_ARROW","PAGE_UP","PAGE_DOWN","HOME","END","ENTER","SPACE","TAB","ESCAPE","BACKSPACE","DELETE","A","Z","ZERO","NINE","Object","defineProperty","value"],"mappings":";;;;;;;CAOC,SAAUA,EAAQC,GACC,gBAAZC,UAA0C,mBAAXC,QAAyBF,EAAQC,SACrD,kBAAXE,SAAyBA,OAAOC,IAAMD,QAAQ,WAAYH,GAChEA,GAASD,EAAOM,GAAKN,EAAOM,OAAUN,EAAOM,GAAGC,IAAMP,EAAOM,GAAGC,QAAWP,EAAOM,GAAGC,IAAIC,SAAWR,EAAOM,GAAGC,IAAIC,gBAClHC,KAAM,SAAWP,GAAW,YAqB9BA,GAAQQ,SAnBO,GAoBfR,EAAQS,WAnBS,GAoBjBT,EAAQU,YAnBU,GAoBlBV,EAAQW,WAnBS,GAoBjBX,EAAQY,QAnBM,GAoBdZ,EAAQa,UAnBQ,GAoBhBb,EAAQc,KAnBG,GAoBXd,EAAQe,IAnBE,GAoBVf,EAAQgB,MAnBI,GAoBZhB,EAAQiB,MAnBI,GAoBZjB,EAAQkB,IAnBE,EAoBVlB,EAAQmB,OAnBK,GAoBbnB,EAAQoB,UAnBQ,EAoBhBpB,EAAQqB,OAnBK,GAoBbrB,EAAQsB,EAnBA,GAoBRtB,EAAQuB,EAnBA,GAoBRvB,EAAQwB,KAnBG,GAoBXxB,EAAQyB,KAnBG,GAqBXC,OAAOC,eAAe3B,EAAS,cAAgB4B,OAAO","file":"/Users/karakara/repos/material2/dist/bundles/cdk-keycodes.umd.min.js"}