@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.
- package/_a11y.scss +23 -0
- package/_overlay.scss +93 -0
- package/a11y/index.metadata.json +2 -1
- package/a11y/typings/a11y-module.d.ts +2 -0
- package/a11y/typings/focus-monitor.d.ts +1 -1
- package/a11y/typings/index.d.ts +1 -1
- package/a11y/typings/index.metadata.json +1 -1
- package/a11y/typings/{public_api.d.ts → public-api.d.ts} +8 -2
- package/a11y-prebuilt.css +1 -0
- package/a11y.metadata.json +2 -1
- package/bidi/index.metadata.json +2 -1
- package/bidi/typings/bidi-module.d.ts +2 -0
- package/bidi/typings/index.d.ts +1 -1
- package/bidi/typings/index.metadata.json +1 -1
- package/bidi/typings/public-api.d.ts +10 -0
- package/bidi.metadata.json +2 -1
- package/bundles/cdk-a11y.umd.js +1368 -1357
- package/bundles/cdk-a11y.umd.js.map +1 -1
- package/bundles/cdk-a11y.umd.min.js +2 -2
- package/bundles/cdk-a11y.umd.min.js.map +1 -1
- package/bundles/cdk-bidi.umd.js +42 -40
- package/bundles/cdk-bidi.umd.js.map +1 -1
- package/bundles/cdk-bidi.umd.min.js +2 -2
- package/bundles/cdk-bidi.umd.min.js.map +1 -1
- package/bundles/cdk-coercion.umd.js +12 -0
- package/bundles/cdk-coercion.umd.js.map +1 -1
- package/bundles/cdk-coercion.umd.min.js +2 -2
- package/bundles/cdk-coercion.umd.min.js.map +1 -1
- package/bundles/cdk-collections.umd.js +113 -11
- package/bundles/cdk-collections.umd.js.map +1 -1
- package/bundles/cdk-collections.umd.min.js +2 -2
- package/bundles/cdk-collections.umd.min.js.map +1 -1
- package/bundles/cdk-keycodes.umd.js.map +1 -1
- package/bundles/cdk-keycodes.umd.min.js +1 -1
- package/bundles/cdk-keycodes.umd.min.js.map +1 -1
- package/bundles/cdk-layout.umd.js +235 -0
- package/bundles/cdk-layout.umd.js.map +1 -0
- package/bundles/cdk-layout.umd.min.js +9 -0
- package/bundles/cdk-layout.umd.min.js.map +1 -0
- package/bundles/cdk-observers.umd.js +41 -40
- package/bundles/cdk-observers.umd.js.map +1 -1
- package/bundles/cdk-observers.umd.min.js +2 -2
- package/bundles/cdk-observers.umd.min.js.map +1 -1
- package/bundles/cdk-overlay.umd.js +306 -265
- package/bundles/cdk-overlay.umd.js.map +1 -1
- package/bundles/cdk-overlay.umd.min.js +2 -2
- package/bundles/cdk-overlay.umd.min.js.map +1 -1
- package/bundles/cdk-platform.umd.js +19 -17
- package/bundles/cdk-platform.umd.js.map +1 -1
- package/bundles/cdk-platform.umd.min.js +2 -2
- package/bundles/cdk-platform.umd.min.js.map +1 -1
- package/bundles/cdk-portal.umd.js +71 -37
- package/bundles/cdk-portal.umd.js.map +1 -1
- package/bundles/cdk-portal.umd.min.js +2 -2
- package/bundles/cdk-portal.umd.min.js.map +1 -1
- package/bundles/cdk-rxjs.umd.js +13 -4
- package/bundles/cdk-rxjs.umd.js.map +1 -1
- package/bundles/cdk-rxjs.umd.min.js +2 -2
- package/bundles/cdk-rxjs.umd.min.js.map +1 -1
- package/bundles/cdk-scrolling.umd.js +89 -54
- package/bundles/cdk-scrolling.umd.js.map +1 -1
- package/bundles/cdk-scrolling.umd.min.js +2 -2
- package/bundles/cdk-scrolling.umd.min.js.map +1 -1
- package/bundles/cdk-stepper.umd.js +115 -90
- package/bundles/cdk-stepper.umd.js.map +1 -1
- package/bundles/cdk-stepper.umd.min.js +2 -2
- package/bundles/cdk-stepper.umd.min.js.map +1 -1
- package/bundles/cdk-table.umd.js +261 -218
- package/bundles/cdk-table.umd.js.map +1 -1
- package/bundles/cdk-table.umd.min.js +2 -2
- package/bundles/cdk-table.umd.min.js.map +1 -1
- package/bundles/cdk.umd.js +1 -1
- package/bundles/cdk.umd.js.map +1 -1
- package/bundles/cdk.umd.min.js +2 -2
- package/bundles/cdk.umd.min.js.map +1 -1
- package/cdk.metadata.json +2 -1
- package/coercion/index.metadata.json +2 -1
- package/coercion/typings/array.d.ts +9 -0
- package/coercion/typings/index.d.ts +1 -1
- package/coercion/typings/index.metadata.json +1 -1
- package/{typings/coercion/public_api.d.ts → coercion/typings/public-api.d.ts} +1 -0
- package/coercion.metadata.json +2 -1
- package/collections/index.metadata.json +2 -1
- package/collections/typings/index.d.ts +2 -1
- package/collections/typings/index.metadata.json +1 -1
- package/{typings/collections/public_api.d.ts → collections/typings/public-api.d.ts} +1 -0
- package/collections/typings/selection.d.ts +13 -3
- package/collections/typings/unique-selection-dispatcher.d.ts +40 -0
- package/collections.metadata.json +2 -1
- package/esm2015/a11y.js +1252 -1250
- package/esm2015/a11y.js.map +1 -1
- package/esm2015/bidi.js +1 -1
- package/esm2015/bidi.js.map +1 -1
- package/esm2015/cdk.js +1 -1
- package/esm2015/cdk.js.map +1 -1
- package/esm2015/coercion.js +11 -1
- package/esm2015/coercion.js.map +1 -1
- package/esm2015/collections.js +93 -8
- package/esm2015/collections.js.map +1 -1
- package/esm2015/keycodes.js.map +1 -1
- package/esm2015/layout.js +226 -0
- package/esm2015/layout.js.map +1 -0
- package/esm2015/observers.js +8 -7
- package/esm2015/observers.js.map +1 -1
- package/esm2015/overlay.js +157 -136
- package/esm2015/overlay.js.map +1 -1
- package/esm2015/platform.js +1 -1
- package/esm2015/platform.js.map +1 -1
- package/esm2015/portal.js +30 -1
- package/esm2015/portal.js.map +1 -1
- package/esm2015/rxjs.js +5 -1
- package/esm2015/rxjs.js.map +1 -1
- package/esm2015/scrolling.js +39 -8
- package/esm2015/scrolling.js.map +1 -1
- package/esm2015/stepper.js +27 -5
- package/esm2015/stepper.js.map +1 -1
- package/esm2015/table.js +68 -29
- package/esm2015/table.js.map +1 -1
- package/esm5/a11y.es5.js +1372 -1357
- package/esm5/a11y.es5.js.map +1 -1
- package/esm5/bidi.es5.js +45 -40
- package/esm5/bidi.es5.js.map +1 -1
- package/esm5/cdk.es5.js +4 -1
- package/esm5/cdk.es5.js.map +1 -1
- package/esm5/coercion.es5.js +14 -1
- package/esm5/coercion.es5.js.map +1 -1
- package/esm5/collections.es5.js +110 -8
- package/esm5/collections.es5.js.map +1 -1
- package/esm5/keycodes.es5.js +2 -0
- package/esm5/keycodes.es5.js.map +1 -1
- package/esm5/layout.es5.js +234 -0
- package/esm5/layout.es5.js.map +1 -0
- package/esm5/observers.es5.js +44 -40
- package/esm5/observers.es5.js.map +1 -1
- package/esm5/overlay.es5.js +304 -259
- package/esm5/overlay.es5.js.map +1 -1
- package/esm5/platform.es5.js +22 -17
- package/esm5/platform.es5.js.map +1 -1
- package/esm5/portal.es5.js +81 -44
- package/esm5/portal.es5.js.map +1 -1
- package/esm5/rxjs.es5.js +12 -1
- package/esm5/rxjs.es5.js.map +1 -1
- package/esm5/scrolling.es5.js +89 -51
- package/esm5/scrolling.es5.js.map +1 -1
- package/esm5/stepper.es5.js +119 -91
- package/esm5/stepper.es5.js.map +1 -1
- package/esm5/table.es5.js +265 -218
- package/esm5/table.es5.js.map +1 -1
- package/keycodes/index.metadata.json +2 -1
- package/keycodes/typings/index.d.ts +1 -1
- package/keycodes/typings/{public_api.d.ts → public-api.d.ts} +0 -0
- package/keycodes.metadata.json +2 -1
- package/layout/index.d.ts +8 -0
- package/layout/index.metadata.json +12 -0
- package/layout/package.json +7 -0
- package/layout/typings/breakpoints-observer.d.ts +37 -0
- package/layout/typings/breakpoints.d.ts +18 -0
- package/layout/typings/index.d.ts +4 -0
- package/layout/typings/index.metadata.json +1 -0
- package/layout/typings/media-matcher.d.ts +15 -0
- package/layout/typings/public-api.d.ts +5 -0
- package/layout.d.ts +8 -0
- package/layout.metadata.json +12 -0
- package/observers/index.metadata.json +2 -1
- package/observers/typings/index.d.ts +1 -1
- package/observers/typings/index.metadata.json +1 -1
- package/observers/typings/observe-content.d.ts +3 -3
- package/observers/typings/{public_api.d.ts → public-api.d.ts} +0 -0
- package/observers.metadata.json +2 -1
- package/overlay/index.metadata.json +2 -1
- package/overlay/typings/index.d.ts +2 -2
- package/overlay/typings/index.metadata.json +1 -1
- package/overlay/typings/overlay-config.d.ts +1 -1
- package/overlay/typings/overlay-directives.d.ts +3 -3
- package/overlay/typings/overlay-module.d.ts +11 -0
- package/overlay/typings/overlay-ref.d.ts +6 -6
- package/overlay/typings/overlay.d.ts +2 -2
- package/overlay/typings/position/connected-position-strategy.d.ts +5 -0
- package/overlay/typings/position/position-strategy.d.ts +2 -0
- package/overlay/typings/{public_api.d.ts → public-api.d.ts} +1 -4
- package/overlay/typings/scroll/scroll-strategy.d.ts +1 -1
- package/overlay-prebuilt.css +1 -0
- package/overlay.metadata.json +2 -1
- package/package.json +3 -3
- package/platform/index.metadata.json +2 -1
- package/platform/typings/index.d.ts +1 -1
- package/platform/typings/index.metadata.json +1 -1
- package/platform/typings/platform-module.d.ts +2 -0
- package/platform/typings/public-api.d.ts +10 -0
- package/platform.metadata.json +2 -1
- package/portal/index.metadata.json +2 -1
- package/portal/typings/index.d.ts +1 -1
- package/portal/typings/index.metadata.json +1 -1
- package/portal/typings/{public_api.d.ts → public-api.d.ts} +1 -0
- package/portal.metadata.json +2 -1
- package/rxjs/index.metadata.json +2 -1
- package/rxjs/typings/index.d.ts +1 -1
- package/rxjs/typings/index.metadata.json +1 -1
- package/rxjs/typings/{public_api.d.ts → public-api.d.ts} +0 -0
- package/rxjs/typings/rx-operators.d.ts +7 -0
- package/rxjs.metadata.json +2 -1
- package/scrolling/index.metadata.json +2 -1
- package/scrolling/typings/index.d.ts +1 -1
- package/scrolling/typings/index.metadata.json +1 -1
- package/scrolling/typings/public-api.d.ts +11 -0
- package/scrolling/typings/scrolling-module.d.ts +2 -0
- package/scrolling/typings/viewport-ruler.d.ts +20 -6
- package/scrolling.metadata.json +2 -1
- package/stepper/index.metadata.json +2 -1
- package/stepper/typings/index.d.ts +1 -1
- package/stepper/typings/index.metadata.json +1 -1
- package/stepper/typings/public-api.d.ts +11 -0
- package/stepper/typings/stepper-module.d.ts +2 -0
- package/stepper/typings/stepper.d.ts +8 -4
- package/stepper.metadata.json +2 -1
- package/table/index.metadata.json +2 -1
- package/table/typings/index.d.ts +1 -1
- package/table/typings/index.metadata.json +1 -1
- package/table/typings/public-api.d.ts +13 -0
- package/table/typings/row.d.ts +11 -3
- package/table/typings/table-errors.d.ts +10 -0
- package/table/typings/table-module.d.ts +2 -0
- package/table/typings/table.d.ts +17 -8
- package/table.metadata.json +2 -1
- package/typings/a11y/a11y-module.d.ts +2 -0
- package/typings/a11y/focus-monitor.d.ts +1 -1
- package/typings/a11y/index.d.ts +1 -1
- package/typings/a11y/index.metadata.json +1 -1
- package/typings/a11y/{public_api.d.ts → public-api.d.ts} +8 -2
- package/typings/bidi/bidi-module.d.ts +2 -0
- package/typings/bidi/index.d.ts +1 -1
- package/typings/bidi/index.metadata.json +1 -1
- package/typings/bidi/public-api.d.ts +10 -0
- package/typings/coercion/array.d.ts +9 -0
- package/typings/coercion/index.d.ts +1 -1
- package/typings/coercion/index.metadata.json +1 -1
- package/{coercion/typings/public_api.d.ts → typings/coercion/public-api.d.ts} +1 -0
- package/typings/collections/index.d.ts +2 -1
- package/typings/collections/index.metadata.json +1 -1
- package/{collections/typings/public_api.d.ts → typings/collections/public-api.d.ts} +1 -0
- package/typings/collections/selection.d.ts +13 -3
- package/typings/collections/unique-selection-dispatcher.d.ts +40 -0
- package/typings/index.d.ts +1 -1
- package/typings/index.metadata.json +1 -1
- package/typings/keycodes/index.d.ts +1 -1
- package/typings/keycodes/{public_api.d.ts → public-api.d.ts} +0 -0
- package/typings/layout/breakpoints-observer.d.ts +37 -0
- package/typings/layout/breakpoints.d.ts +18 -0
- package/typings/layout/index.d.ts +4 -0
- package/typings/layout/index.metadata.json +1 -0
- package/typings/layout/media-matcher.d.ts +15 -0
- package/typings/layout/public-api.d.ts +5 -0
- package/typings/observers/index.d.ts +1 -1
- package/typings/observers/index.metadata.json +1 -1
- package/typings/observers/observe-content.d.ts +3 -3
- package/typings/observers/{public_api.d.ts → public-api.d.ts} +0 -0
- package/typings/overlay/index.d.ts +2 -2
- package/typings/overlay/index.metadata.json +1 -1
- package/typings/overlay/overlay-config.d.ts +1 -1
- package/typings/overlay/overlay-directives.d.ts +3 -3
- package/typings/overlay/overlay-module.d.ts +11 -0
- package/typings/overlay/overlay-ref.d.ts +6 -6
- package/typings/overlay/overlay.d.ts +2 -2
- package/typings/overlay/position/connected-position-strategy.d.ts +5 -0
- package/typings/overlay/position/position-strategy.d.ts +2 -0
- package/typings/overlay/{public_api.d.ts → public-api.d.ts} +1 -4
- package/typings/overlay/scroll/scroll-strategy.d.ts +1 -1
- package/typings/platform/index.d.ts +1 -1
- package/typings/platform/index.metadata.json +1 -1
- package/typings/platform/platform-module.d.ts +2 -0
- package/typings/platform/public-api.d.ts +10 -0
- package/typings/portal/index.d.ts +1 -1
- package/typings/portal/index.metadata.json +1 -1
- package/typings/portal/{public_api.d.ts → public-api.d.ts} +1 -0
- package/typings/{public_api.d.ts → public-api.d.ts} +0 -0
- package/typings/rxjs/index.d.ts +1 -1
- package/typings/rxjs/index.metadata.json +1 -1
- package/typings/rxjs/{public_api.d.ts → public-api.d.ts} +0 -0
- package/typings/rxjs/rx-operators.d.ts +7 -0
- package/typings/scrolling/index.d.ts +1 -1
- package/typings/scrolling/index.metadata.json +1 -1
- package/typings/scrolling/public-api.d.ts +11 -0
- package/typings/scrolling/scrolling-module.d.ts +2 -0
- package/typings/scrolling/viewport-ruler.d.ts +20 -6
- package/typings/stepper/index.d.ts +1 -1
- package/typings/stepper/index.metadata.json +1 -1
- package/typings/stepper/public-api.d.ts +11 -0
- package/typings/stepper/stepper-module.d.ts +2 -0
- package/typings/stepper/stepper.d.ts +8 -4
- package/typings/table/index.d.ts +1 -1
- package/typings/table/index.metadata.json +1 -1
- package/typings/table/public-api.d.ts +13 -0
- package/typings/table/row.d.ts +11 -3
- package/typings/table/table-errors.d.ts +10 -0
- package/typings/table/table-module.d.ts +2 -0
- package/typings/table/table.d.ts +17 -8
- package/bidi/typings/public_api.d.ts +0 -4
- package/platform/typings/public_api.d.ts +0 -4
- package/scrolling/typings/public_api.d.ts +0 -5
- package/stepper/typings/public_api.d.ts +0 -5
- package/table/typings/public_api.d.ts +0 -7
- package/typings/bidi/public_api.d.ts +0 -4
- package/typings/platform/public_api.d.ts +0 -4
- package/typings/scrolling/public_api.d.ts +0 -5
- package/typings/stepper/public_api.d.ts +0 -5
- package/typings/table/public_api.d.ts +0 -7
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google Inc. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
(function (global, factory) {
|
|
9
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/cdk/platform'), require('rxjs/Subject'), require('@angular/cdk/rxjs'), require('@angular/cdk/coercion'), require('rxjs/observable/combineLatest'), require('rxjs/observable/fromEventPattern')) :
|
|
10
|
+
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/cdk/platform', 'rxjs/Subject', '@angular/cdk/rxjs', '@angular/cdk/coercion', 'rxjs/observable/combineLatest', 'rxjs/observable/fromEventPattern'], factory) :
|
|
11
|
+
(factory((global.ng = global.ng || {}, global.ng.cdk = global.ng.cdk || {}, global.ng.cdk.layout = global.ng.cdk.layout || {}),global.ng.core,global.ng.cdk.platform,global.Rx,global.ng.cdk.rxjs,global.ng.cdk.coercion,global.Rx.Observable,global.Rx.Observable));
|
|
12
|
+
}(this, (function (exports,_angular_core,_angular_cdk_platform,rxjs_Subject,_angular_cdk_rxjs,_angular_cdk_coercion,rxjs_observable_combineLatest,rxjs_observable_fromEventPattern) { 'use strict';
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Global registry for all dynamically-created, injected style tags.
|
|
16
|
+
*/
|
|
17
|
+
var styleElementForWebkitCompatibility = new Map();
|
|
18
|
+
/**
|
|
19
|
+
* A utility for calling matchMedia queries.
|
|
20
|
+
*/
|
|
21
|
+
var MediaMatcher = (function () {
|
|
22
|
+
/**
|
|
23
|
+
* @param {?} platform
|
|
24
|
+
*/
|
|
25
|
+
function MediaMatcher(platform) {
|
|
26
|
+
this.platform = platform;
|
|
27
|
+
this._matchMedia = this.platform.isBrowser ?
|
|
28
|
+
// matchMedia is bound to the window scope intentionally as it is an illegal invocation to
|
|
29
|
+
// call it from a different scope.
|
|
30
|
+
window.matchMedia.bind(window) :
|
|
31
|
+
noopMatchMedia;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Confirms the layout engine will trigger for the selector query provided and returns the
|
|
35
|
+
* MediaQueryList for the query provided.
|
|
36
|
+
* @param {?} query
|
|
37
|
+
* @return {?}
|
|
38
|
+
*/
|
|
39
|
+
MediaMatcher.prototype.matchMedia = function (query) {
|
|
40
|
+
if (this.platform.WEBKIT) {
|
|
41
|
+
createEmptyStyleRule(query);
|
|
42
|
+
}
|
|
43
|
+
return this._matchMedia(query);
|
|
44
|
+
};
|
|
45
|
+
MediaMatcher.decorators = [
|
|
46
|
+
{ type: _angular_core.Injectable },
|
|
47
|
+
];
|
|
48
|
+
/**
|
|
49
|
+
* @nocollapse
|
|
50
|
+
*/
|
|
51
|
+
MediaMatcher.ctorParameters = function () { return [
|
|
52
|
+
{ type: _angular_cdk_platform.Platform, },
|
|
53
|
+
]; };
|
|
54
|
+
return MediaMatcher;
|
|
55
|
+
}());
|
|
56
|
+
/**
|
|
57
|
+
* For Webkit engines that only trigger the MediaQueryListListener when there is at least one CSS
|
|
58
|
+
* selector for the respective media query.
|
|
59
|
+
* @param {?} query
|
|
60
|
+
* @return {?}
|
|
61
|
+
*/
|
|
62
|
+
function createEmptyStyleRule(query) {
|
|
63
|
+
if (!styleElementForWebkitCompatibility.has(query)) {
|
|
64
|
+
try {
|
|
65
|
+
var /** @type {?} */ style = document.createElement('style');
|
|
66
|
+
style.setAttribute('type', 'text/css');
|
|
67
|
+
if (!style.sheet) {
|
|
68
|
+
var /** @type {?} */ cssText = "@media " + query + " {.fx-query-test{ }}";
|
|
69
|
+
style.appendChild(document.createTextNode(cssText));
|
|
70
|
+
}
|
|
71
|
+
document.getElementsByTagName('head')[0].appendChild(style);
|
|
72
|
+
// Store in private global registry
|
|
73
|
+
styleElementForWebkitCompatibility.set(query, style);
|
|
74
|
+
}
|
|
75
|
+
catch (e) {
|
|
76
|
+
console.error(e);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* No-op matchMedia replacement for non-browser platforms.
|
|
82
|
+
* @param {?} query
|
|
83
|
+
* @return {?}
|
|
84
|
+
*/
|
|
85
|
+
function noopMatchMedia(query) {
|
|
86
|
+
return {
|
|
87
|
+
matches: query === 'all' || query === '',
|
|
88
|
+
media: query,
|
|
89
|
+
addListener: function () { },
|
|
90
|
+
removeListener: function () { }
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Utility for checking the matching state of \@media queries.
|
|
96
|
+
*/
|
|
97
|
+
var BreakpointObserver = (function () {
|
|
98
|
+
/**
|
|
99
|
+
* @param {?} mediaMatcher
|
|
100
|
+
* @param {?} zone
|
|
101
|
+
*/
|
|
102
|
+
function BreakpointObserver(mediaMatcher, zone) {
|
|
103
|
+
this.mediaMatcher = mediaMatcher;
|
|
104
|
+
this.zone = zone;
|
|
105
|
+
/**
|
|
106
|
+
* A map of all media queries currently being listened for.
|
|
107
|
+
*/
|
|
108
|
+
this._queries = new Map();
|
|
109
|
+
/**
|
|
110
|
+
* A subject for all other observables to takeUntil based on.
|
|
111
|
+
*/
|
|
112
|
+
this._destroySubject = new rxjs_Subject.Subject();
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Completes the active subject, signalling to all other observables to complete.
|
|
116
|
+
* @return {?}
|
|
117
|
+
*/
|
|
118
|
+
BreakpointObserver.prototype.ngOnDestroy = function () {
|
|
119
|
+
this._destroySubject.next();
|
|
120
|
+
this._destroySubject.complete();
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* Whether the query currently is matched.
|
|
124
|
+
* @param {?} value
|
|
125
|
+
* @return {?}
|
|
126
|
+
*/
|
|
127
|
+
BreakpointObserver.prototype.isMatched = function (value) {
|
|
128
|
+
var _this = this;
|
|
129
|
+
var /** @type {?} */ queries = _angular_cdk_coercion.coerceArray(value);
|
|
130
|
+
return queries.some(function (mediaQuery) { return _this._registerQuery(mediaQuery).mql.matches; });
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* Gets an observable of results for the given queries that will emit new results for any changes
|
|
134
|
+
* in matching of the given queries.
|
|
135
|
+
* @param {?} value
|
|
136
|
+
* @return {?}
|
|
137
|
+
*/
|
|
138
|
+
BreakpointObserver.prototype.observe = function (value) {
|
|
139
|
+
var _this = this;
|
|
140
|
+
var /** @type {?} */ queries = _angular_cdk_coercion.coerceArray(value);
|
|
141
|
+
var /** @type {?} */ observables = queries.map(function (query) { return _this._registerQuery(query).observable; });
|
|
142
|
+
return rxjs_observable_combineLatest.combineLatest(observables, function (a, b) {
|
|
143
|
+
return {
|
|
144
|
+
matches: !!((a && a.matches) || (b && b.matches)),
|
|
145
|
+
};
|
|
146
|
+
});
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* Registers a specific query to be listened for.
|
|
150
|
+
* @param {?} query
|
|
151
|
+
* @return {?}
|
|
152
|
+
*/
|
|
153
|
+
BreakpointObserver.prototype._registerQuery = function (query) {
|
|
154
|
+
var _this = this;
|
|
155
|
+
// Only set up a new MediaQueryList if it is not already being listened for.
|
|
156
|
+
if (this._queries.has(query)) {
|
|
157
|
+
return ((this._queries.get(query)));
|
|
158
|
+
}
|
|
159
|
+
var /** @type {?} */ mql = this.mediaMatcher.matchMedia(query);
|
|
160
|
+
// Create callback for match changes and add it is as a listener.
|
|
161
|
+
var /** @type {?} */ queryObservable = _angular_cdk_rxjs.RxChain.from(rxjs_observable_fromEventPattern.fromEventPattern(
|
|
162
|
+
// Listener callback methods are wrapped to be placed back in ngZone. Callbacks must be placed
|
|
163
|
+
// back into the zone because matchMedia is only included in Zone.js by loading the
|
|
164
|
+
// webapis-media-query.js file alongside the zone.js file. Additionally, some browsers do not
|
|
165
|
+
// have MediaQueryList inherit from EventTarget, which causes inconsistencies in how Zone.js
|
|
166
|
+
// patches it.
|
|
167
|
+
function (listener) {
|
|
168
|
+
mql.addListener(function (e) { return _this.zone.run(function () { return listener(e); }); });
|
|
169
|
+
}, function (listener) {
|
|
170
|
+
mql.removeListener(function (e) { return _this.zone.run(function () { return listener(e); }); });
|
|
171
|
+
}))
|
|
172
|
+
.call(_angular_cdk_rxjs.takeUntil, this._destroySubject)
|
|
173
|
+
.call(_angular_cdk_rxjs.startWith, mql)
|
|
174
|
+
.call(_angular_cdk_rxjs.map, function (nextMql) { return ({ matches: nextMql.matches }); })
|
|
175
|
+
.result();
|
|
176
|
+
// Add the MediaQueryList to the set of queries.
|
|
177
|
+
var /** @type {?} */ output = { observable: queryObservable, mql: mql };
|
|
178
|
+
this._queries.set(query, output);
|
|
179
|
+
return output;
|
|
180
|
+
};
|
|
181
|
+
BreakpointObserver.decorators = [
|
|
182
|
+
{ type: _angular_core.Injectable },
|
|
183
|
+
];
|
|
184
|
+
/**
|
|
185
|
+
* @nocollapse
|
|
186
|
+
*/
|
|
187
|
+
BreakpointObserver.ctorParameters = function () { return [
|
|
188
|
+
{ type: MediaMatcher, },
|
|
189
|
+
{ type: _angular_core.NgZone, },
|
|
190
|
+
]; };
|
|
191
|
+
return BreakpointObserver;
|
|
192
|
+
}());
|
|
193
|
+
|
|
194
|
+
// PascalCase is being used as Breakpoints is used like an enum.
|
|
195
|
+
// tslint:disable-next-line:variable-name
|
|
196
|
+
var Breakpoints = {
|
|
197
|
+
Handset: '(max-width: 599px) and (orientation: portrait), ' +
|
|
198
|
+
'(max-width: 959px) and (orientation: landscape)',
|
|
199
|
+
Tablet: '(min-width: 600px) and (max-width: 839px) and (orientation: portrait), ' +
|
|
200
|
+
'(min-width: 960px) and (max-width: 1279px) and (orientation: landscape)',
|
|
201
|
+
Web: '(min-width: 840px) and (orientation: portrait), ' +
|
|
202
|
+
'(min-width: 1280px) and (orientation: landscape)',
|
|
203
|
+
HandsetPortrait: '(max-width: 599px) and (orientation: portrait)',
|
|
204
|
+
TabletPortrait: '(min-width: 600px) and (max-width: 839px) and (orientation: portrait)',
|
|
205
|
+
WebPortrait: '(min-width: 840px) and (orientation: portrait)',
|
|
206
|
+
HandsetLandscape: '(max-width: 959px) and (orientation: landscape)',
|
|
207
|
+
TabletLandscape: '(min-width: 960px) and (max-width: 1279px) and (orientation: landscape)',
|
|
208
|
+
WebLandscape: '(min-width: 1280px) and (orientation: landscape)',
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
var LayoutModule = (function () {
|
|
212
|
+
function LayoutModule() {
|
|
213
|
+
}
|
|
214
|
+
LayoutModule.decorators = [
|
|
215
|
+
{ type: _angular_core.NgModule, args: [{
|
|
216
|
+
providers: [BreakpointObserver, MediaMatcher],
|
|
217
|
+
imports: [_angular_cdk_platform.PlatformModule],
|
|
218
|
+
},] },
|
|
219
|
+
];
|
|
220
|
+
/**
|
|
221
|
+
* @nocollapse
|
|
222
|
+
*/
|
|
223
|
+
LayoutModule.ctorParameters = function () { return []; };
|
|
224
|
+
return LayoutModule;
|
|
225
|
+
}());
|
|
226
|
+
|
|
227
|
+
exports.LayoutModule = LayoutModule;
|
|
228
|
+
exports.BreakpointObserver = BreakpointObserver;
|
|
229
|
+
exports.Breakpoints = Breakpoints;
|
|
230
|
+
exports.MediaMatcher = MediaMatcher;
|
|
231
|
+
|
|
232
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
233
|
+
|
|
234
|
+
})));
|
|
235
|
+
//# sourceMappingURL=cdk-layout.umd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cdk-layout.umd.js","sources":["cdk/layout.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 { Injectable, NgModule, NgZone } from '@angular/core';\nimport { Platform, PlatformModule } from '@angular/cdk/platform';\nimport { Subject } from 'rxjs/Subject';\nimport { RxChain, map, startWith, takeUntil } from '@angular/cdk/rxjs';\nimport { coerceArray } from '@angular/cdk/coercion';\nimport { combineLatest } from 'rxjs/observable/combineLatest';\nimport { fromEventPattern } from 'rxjs/observable/fromEventPattern';\n\n/**\n * Global registry for all dynamically-created, injected style tags.\n */\nvar styleElementForWebkitCompatibility = new Map();\n/**\n * A utility for calling matchMedia queries.\n */\nvar MediaMatcher = (function () {\n /**\n * @param {?} platform\n */\n function MediaMatcher(platform) {\n this.platform = platform;\n this._matchMedia = this.platform.isBrowser ?\n // matchMedia is bound to the window scope intentionally as it is an illegal invocation to\n // call it from a different scope.\n window.matchMedia.bind(window) :\n noopMatchMedia;\n }\n /**\n * Confirms the layout engine will trigger for the selector query provided and returns the\n * MediaQueryList for the query provided.\n * @param {?} query\n * @return {?}\n */\n MediaMatcher.prototype.matchMedia = function (query) {\n if (this.platform.WEBKIT) {\n createEmptyStyleRule(query);\n }\n return this._matchMedia(query);\n };\n MediaMatcher.decorators = [\n { type: Injectable },\n ];\n /**\n * @nocollapse\n */\n MediaMatcher.ctorParameters = function () { return [\n { type: Platform, },\n ]; };\n return MediaMatcher;\n}());\n/**\n * For Webkit engines that only trigger the MediaQueryListListener when there is at least one CSS\n * selector for the respective media query.\n * @param {?} query\n * @return {?}\n */\nfunction createEmptyStyleRule(query) {\n if (!styleElementForWebkitCompatibility.has(query)) {\n try {\n var /** @type {?} */ style = document.createElement('style');\n style.setAttribute('type', 'text/css');\n if (!style.sheet) {\n var /** @type {?} */ cssText = \"@media \" + query + \" {.fx-query-test{ }}\";\n style.appendChild(document.createTextNode(cssText));\n }\n document.getElementsByTagName('head')[0].appendChild(style);\n // Store in private global registry\n styleElementForWebkitCompatibility.set(query, style);\n }\n catch (e) {\n console.error(e);\n }\n }\n}\n/**\n * No-op matchMedia replacement for non-browser platforms.\n * @param {?} query\n * @return {?}\n */\nfunction noopMatchMedia(query) {\n return {\n matches: query === 'all' || query === '',\n media: query,\n addListener: function () { },\n removeListener: function () { }\n };\n}\n\n/**\n * Utility for checking the matching state of \\@media queries.\n */\nvar BreakpointObserver = (function () {\n /**\n * @param {?} mediaMatcher\n * @param {?} zone\n */\n function BreakpointObserver(mediaMatcher, zone) {\n this.mediaMatcher = mediaMatcher;\n this.zone = zone;\n /**\n * A map of all media queries currently being listened for.\n */\n this._queries = new Map();\n /**\n * A subject for all other observables to takeUntil based on.\n */\n this._destroySubject = new Subject();\n }\n /**\n * Completes the active subject, signalling to all other observables to complete.\n * @return {?}\n */\n BreakpointObserver.prototype.ngOnDestroy = function () {\n this._destroySubject.next();\n this._destroySubject.complete();\n };\n /**\n * Whether the query currently is matched.\n * @param {?} value\n * @return {?}\n */\n BreakpointObserver.prototype.isMatched = function (value) {\n var _this = this;\n var /** @type {?} */ queries = coerceArray(value);\n return queries.some(function (mediaQuery) { return _this._registerQuery(mediaQuery).mql.matches; });\n };\n /**\n * Gets an observable of results for the given queries that will emit new results for any changes\n * in matching of the given queries.\n * @param {?} value\n * @return {?}\n */\n BreakpointObserver.prototype.observe = function (value) {\n var _this = this;\n var /** @type {?} */ queries = coerceArray(value);\n var /** @type {?} */ observables = queries.map(function (query) { return _this._registerQuery(query).observable; });\n return combineLatest(observables, function (a, b) {\n return {\n matches: !!((a && a.matches) || (b && b.matches)),\n };\n });\n };\n /**\n * Registers a specific query to be listened for.\n * @param {?} query\n * @return {?}\n */\n BreakpointObserver.prototype._registerQuery = function (query) {\n var _this = this;\n // Only set up a new MediaQueryList if it is not already being listened for.\n if (this._queries.has(query)) {\n return ((this._queries.get(query)));\n }\n var /** @type {?} */ mql = this.mediaMatcher.matchMedia(query);\n // Create callback for match changes and add it is as a listener.\n var /** @type {?} */ queryObservable = RxChain.from(fromEventPattern(\n // Listener callback methods are wrapped to be placed back in ngZone. Callbacks must be placed\n // back into the zone because matchMedia is only included in Zone.js by loading the\n // webapis-media-query.js file alongside the zone.js file. Additionally, some browsers do not\n // have MediaQueryList inherit from EventTarget, which causes inconsistencies in how Zone.js\n // patches it.\n function (listener) {\n mql.addListener(function (e) { return _this.zone.run(function () { return listener(e); }); });\n }, function (listener) {\n mql.removeListener(function (e) { return _this.zone.run(function () { return listener(e); }); });\n }))\n .call(takeUntil, this._destroySubject)\n .call(startWith, mql)\n .call(map, function (nextMql) { return ({ matches: nextMql.matches }); })\n .result();\n // Add the MediaQueryList to the set of queries.\n var /** @type {?} */ output = { observable: queryObservable, mql: mql };\n this._queries.set(query, output);\n return output;\n };\n BreakpointObserver.decorators = [\n { type: Injectable },\n ];\n /**\n * @nocollapse\n */\n BreakpointObserver.ctorParameters = function () { return [\n { type: MediaMatcher, },\n { type: NgZone, },\n ]; };\n return BreakpointObserver;\n}());\n\n// PascalCase is being used as Breakpoints is used like an enum.\n// tslint:disable-next-line:variable-name\nvar Breakpoints = {\n Handset: '(max-width: 599px) and (orientation: portrait), ' +\n '(max-width: 959px) and (orientation: landscape)',\n Tablet: '(min-width: 600px) and (max-width: 839px) and (orientation: portrait), ' +\n '(min-width: 960px) and (max-width: 1279px) and (orientation: landscape)',\n Web: '(min-width: 840px) and (orientation: portrait), ' +\n '(min-width: 1280px) and (orientation: landscape)',\n HandsetPortrait: '(max-width: 599px) and (orientation: portrait)',\n TabletPortrait: '(min-width: 600px) and (max-width: 839px) and (orientation: portrait)',\n WebPortrait: '(min-width: 840px) and (orientation: portrait)',\n HandsetLandscape: '(max-width: 959px) and (orientation: landscape)',\n TabletLandscape: '(min-width: 960px) and (max-width: 1279px) and (orientation: landscape)',\n WebLandscape: '(min-width: 1280px) and (orientation: landscape)',\n};\n\nvar LayoutModule = (function () {\n function LayoutModule() {\n }\n LayoutModule.decorators = [\n { type: NgModule, args: [{\n providers: [BreakpointObserver, MediaMatcher],\n imports: [PlatformModule],\n },] },\n ];\n /**\n * @nocollapse\n */\n LayoutModule.ctorParameters = function () { return []; };\n return LayoutModule;\n}());\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { LayoutModule, BreakpointObserver, Breakpoints, MediaMatcher };\n//# sourceMappingURL=layout.es5.js.map\n"],"names":["Injectable","Platform","Subject","coerceArray","combineLatest","RxChain","fromEventPattern","takeUntil","startWith","map","NgZone","NgModule","PlatformModule"],"mappings":";;;;;;;;;;;;;AAeA;;;AAGA,IAAI,kCAAkC,GAAG,IAAI,GAAG,EAAE,CAAC;;;;AAInD,IAAI,YAAY,IAAI,YAAY;;;;IAI5B,SAAS,YAAY,CAAC,QAAQ,EAAE;QAC5B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS;;;YAGtC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC;YAC9B,cAAc,CAAC;KACtB;;;;;;;IAOD,YAAY,CAAC,SAAS,CAAC,UAAU,GAAG,UAAU,KAAK,EAAE;QACjD,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE;YACtB,oBAAoB,CAAC,KAAK,CAAC,CAAC;SAC/B;QACD,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;KAClC,CAAC;IACF,YAAY,CAAC,UAAU,GAAG;QACtB,EAAE,IAAI,EAAEA,wBAAU,EAAE;KACvB,CAAC;;;;IAIF,YAAY,CAAC,cAAc,GAAG,YAAY,EAAE,OAAO;QAC/C,EAAE,IAAI,EAAEC,8BAAQ,GAAG;KACtB,CAAC,EAAE,CAAC;IACL,OAAO,YAAY,CAAC;CACvB,EAAE,CAAC,CAAC;;;;;;;AAOL,SAAS,oBAAoB,CAAC,KAAK,EAAE;IACjC,IAAI,CAAC,k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;KACpB,CAAC,EAAE,CAAC;IACL,OAAO,kBAAkB,CAAC;CAC7B,EAAE,CAAC,CAAC;;;;AAIL,IAAI,WAAW,GAAG;IACd,OAAO,EAAE,kDAAkD;QACvD,iDAAiD;IACrD,MAAM,EAAE,yEAAyE;QAC7E,yEAAyE;IAC7E,GAAG,EAAE,kDAAkD;QACnD,kDAAkD;IACtD,eAAe,EAAE,gDAAgD;IACjE,cAAc,EAAE,uEAAuE;IACvF,WAAW,EAAE,gDAAgD;IAC7D,gBAAgB,EAAE,iDAAiD;IACnE,eAAe,EAAE,yEAAyE;IAC1F,YAAY,EAAE,kDAAkD;CACnE,CAAC;;AAEF,IAAI,YAAY,IAAI,YAAY;IAC5B,SAAS,YAAY,GAAG;KACvB;IACD,YAAY,CAAC,UAAU,GAAG;QACtB,EAAE,IAAI,EAAEC,sBAAQ,EAAE,IAAI,EAAE,CAAC;oBACb,SAAS,EAAE,CAAC,kBAAkB,EAAE,YAAY,CAAC;oBAC7C,OAAO,EAAE,CAACC,oCAAc,CAAC;iBAC5B,EAAE,EAAE;KAChB,CAAC;;;;IAIF,YAAY,CAAC,cAAc,GAAG,YAAY,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IACzD,OAAO,YAAY,CAAC;CACvB,EAAE,CAAC,CAAC,AAEL,AAIuE,AACvE,AAAsC;;;;;;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google Inc. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/cdk/platform"),require("rxjs/Subject"),require("@angular/cdk/rxjs"),require("@angular/cdk/coercion"),require("rxjs/observable/combineLatest"),require("rxjs/observable/fromEventPattern")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@angular/cdk/platform","rxjs/Subject","@angular/cdk/rxjs","@angular/cdk/coercion","rxjs/observable/combineLatest","rxjs/observable/fromEventPattern"],e):e((t.ng=t.ng||{},t.ng.cdk=t.ng.cdk||{},t.ng.cdk.layout=t.ng.cdk.layout||{}),t.ng.core,t.ng.cdk.platform,t.Rx,t.ng.cdk.rxjs,t.ng.cdk.coercion,t.Rx.Observable,t.Rx.Observable)}(this,function(t,e,r,n,a,i,o,c){"use strict";function s(t){if(!u.has(t))try{var e=document.createElement("style");if(e.setAttribute("type","text/css"),!e.sheet){var r="@media "+t+" {.fx-query-test{ }}";e.appendChild(document.createTextNode(r))}document.getElementsByTagName("head")[0].appendChild(e),u.set(t,e)}catch(t){console.error(t)}}function d(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}var u=new Map,p=function(){function t(t){this.platform=t,this._matchMedia=this.platform.isBrowser?window.matchMedia.bind(window):d}return t.prototype.matchMedia=function(t){return this.platform.WEBKIT&&s(t),this._matchMedia(t)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:r.Platform}]},t}(),m=function(){function t(t,e){this.mediaMatcher=t,this.zone=e,this._queries=new Map,this._destroySubject=new n.Subject}return t.prototype.ngOnDestroy=function(){this._destroySubject.next(),this._destroySubject.complete()},t.prototype.isMatched=function(t){var e=this;return i.coerceArray(t).some(function(t){return e._registerQuery(t).mql.matches})},t.prototype.observe=function(t){var e=this,r=i.coerceArray(t),n=r.map(function(t){return e._registerQuery(t).observable});return o.combineLatest(n,function(t,e){return{matches:!!(t&&t.matches||e&&e.matches)}})},t.prototype._registerQuery=function(t){var e=this;if(this._queries.has(t))return this._queries.get(t);var r=this.mediaMatcher.matchMedia(t),n=a.RxChain.from(c.fromEventPattern(function(t){r.addListener(function(r){return e.zone.run(function(){return t(r)})})},function(t){r.removeListener(function(r){return e.zone.run(function(){return t(r)})})})).call(a.takeUntil,this._destroySubject).call(a.startWith,r).call(a.map,function(t){return{matches:t.matches}}).result(),i={observable:n,mql:r};return this._queries.set(t,i),i},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:p},{type:e.NgZone}]},t}(),l={Handset:"(max-width: 599px) and (orientation: portrait), (max-width: 959px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"},h=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{providers:[m,p],imports:[r.PlatformModule]}]}],t.ctorParameters=function(){return[]},t}();t.LayoutModule=h,t.BreakpointObserver=m,t.Breakpoints=l,t.MediaMatcher=p,Object.defineProperty(t,"__esModule",{value:!0})});
|
|
9
|
+
//# sourceMappingURL=/Users/karakara/repos/material2/dist/bundles/cdk-layout.umd.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/Users/karakara/repos/material2/dist/bundles/cdk-layout.umd.js"],"names":["global","factory","exports","module","require","define","amd","ng","cdk","layout","core","platform","Rx","rxjs","coercion","Observable","this","_angular_core","_angular_cdk_platform","rxjs_Subject","_angular_cdk_rxjs","_angular_cdk_coercion","rxjs_observable_combineLatest","rxjs_observable_fromEventPattern","createEmptyStyleRule","query","styleElementForWebkitCompatibility","has","style","document","createElement","setAttribute","sheet","cssText","appendChild","createTextNode","getElementsByTagName","set","e","console","error","noopMatchMedia","matches","media","addListener","removeListener","Map","MediaMatcher","_matchMedia","isBrowser","window","matchMedia","bind","prototype","WEBKIT","decorators","type","Injectable","ctorParameters","Platform","BreakpointObserver","mediaMatcher","zone","_queries","_destroySubject","Subject","ngOnDestroy","next","complete","isMatched","value","_this","coerceArray","some","mediaQuery","_registerQuery","mql","observe","queries","observables","map","observable","combineLatest","a","b","get","queryObservable","RxChain","from","fromEventPattern","listener","run","call","takeUntil","startWith","nextMql","result","output","NgZone","Breakpoints","Handset","Tablet","Web","HandsetPortrait","TabletPortrait","WebPortrait","HandsetLandscape","TabletLandscape","WebLandscape","LayoutModule","NgModule","args","providers","imports","PlatformModule","Object","defineProperty"],"mappings":";;;;;;;CAOC,SAAUA,EAAQC,GACC,gBAAZC,UAA0C,mBAAXC,QAAyBF,EAAQC,QAASE,QAAQ,iBAAkBA,QAAQ,yBAA0BA,QAAQ,gBAAiBA,QAAQ,qBAAsBA,QAAQ,yBAA0BA,QAAQ,iCAAkCA,QAAQ,qCACrQ,kBAAXC,SAAyBA,OAAOC,IAAMD,QAAQ,UAAW,gBAAiB,wBAAyB,eAAgB,oBAAqB,wBAAyB,gCAAiC,oCAAqCJ,GAC7OA,GAASD,EAAOO,GAAKP,EAAOO,OAAUP,EAAOO,GAAGC,IAAMR,EAAOO,GAAGC,QAAWR,EAAOO,GAAGC,IAAIC,OAAST,EAAOO,GAAGC,IAAIC,YAAcT,EAAOO,GAAGG,KAAKV,EAAOO,GAAGC,IAAIG,SAASX,EAAOY,GAAGZ,EAAOO,GAAGC,IAAIK,KAAKb,EAAOO,GAAGC,IAAIM,SAASd,EAAOY,GAAGG,WAAWf,EAAOY,GAAGG,aACvPC,KAAM,SAAWd,EAAQe,EAAcC,EAAsBC,EAAaC,EAAkBC,EAAsBC,EAA8BC,GAAoC,YAkDtL,SAASC,GAAqBC,GAC1B,IAAKC,EAAmCC,IAAIF,GACxC,IACI,GAAqBG,GAAQC,SAASC,cAAc,QAEpD,IADAF,EAAMG,aAAa,OAAQ,aACtBH,EAAMI,MAAO,CACd,GAAqBC,GAAU,UAAYR,EAAQ,sBACnDG,GAAMM,YAAYL,SAASM,e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AAqBA,EAC7B1D,EAAQiG,YAAcA,EACtBjG,EAAQ6C,aAAeA,EAEvBoE,OAAOC,eAAelH,EAAS,cAAgBoE,OAAO","file":"/Users/karakara/repos/material2/dist/bundles/cdk-layout.umd.min.js"}
|
|
@@ -15,25 +15,25 @@
|
|
|
15
15
|
* Factory that creates a new MutationObserver and allows us to stub it out in unit tests.
|
|
16
16
|
* \@docs-private
|
|
17
17
|
*/
|
|
18
|
-
var
|
|
19
|
-
function
|
|
18
|
+
var MatMutationObserverFactory = (function () {
|
|
19
|
+
function MatMutationObserverFactory() {
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
22
|
* @param {?} callback
|
|
23
23
|
* @return {?}
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
MatMutationObserverFactory.prototype.create = function (callback) {
|
|
26
26
|
return typeof MutationObserver === 'undefined' ? null : new MutationObserver(callback);
|
|
27
27
|
};
|
|
28
|
-
|
|
28
|
+
MatMutationObserverFactory.decorators = [
|
|
29
|
+
{ type: _angular_core.Injectable },
|
|
30
|
+
];
|
|
31
|
+
/**
|
|
32
|
+
* @nocollapse
|
|
33
|
+
*/
|
|
34
|
+
MatMutationObserverFactory.ctorParameters = function () { return []; };
|
|
35
|
+
return MatMutationObserverFactory;
|
|
29
36
|
}());
|
|
30
|
-
MdMutationObserverFactory.decorators = [
|
|
31
|
-
{ type: _angular_core.Injectable },
|
|
32
|
-
];
|
|
33
|
-
/**
|
|
34
|
-
* @nocollapse
|
|
35
|
-
*/
|
|
36
|
-
MdMutationObserverFactory.ctorParameters = function () { return []; };
|
|
37
37
|
/**
|
|
38
38
|
* Directive that triggers a callback whenever the content of
|
|
39
39
|
* its associated element has changed.
|
|
@@ -94,43 +94,44 @@ var ObserveContent = (function () {
|
|
|
94
94
|
}
|
|
95
95
|
this._debouncer.complete();
|
|
96
96
|
};
|
|
97
|
+
ObserveContent.decorators = [
|
|
98
|
+
{ type: _angular_core.Directive, args: [{
|
|
99
|
+
selector: '[cdkObserveContent]',
|
|
100
|
+
exportAs: 'cdkObserveContent',
|
|
101
|
+
},] },
|
|
102
|
+
];
|
|
103
|
+
/**
|
|
104
|
+
* @nocollapse
|
|
105
|
+
*/
|
|
106
|
+
ObserveContent.ctorParameters = function () { return [
|
|
107
|
+
{ type: MatMutationObserverFactory, },
|
|
108
|
+
{ type: _angular_core.ElementRef, },
|
|
109
|
+
{ type: _angular_core.NgZone, },
|
|
110
|
+
]; };
|
|
111
|
+
ObserveContent.propDecorators = {
|
|
112
|
+
'event': [{ type: _angular_core.Output, args: ['cdkObserveContent',] },],
|
|
113
|
+
'debounce': [{ type: _angular_core.Input },],
|
|
114
|
+
};
|
|
97
115
|
return ObserveContent;
|
|
98
116
|
}());
|
|
99
|
-
ObserveContent.decorators = [
|
|
100
|
-
{ type: _angular_core.Directive, args: [{
|
|
101
|
-
selector: '[cdkObserveContent]'
|
|
102
|
-
},] },
|
|
103
|
-
];
|
|
104
|
-
/**
|
|
105
|
-
* @nocollapse
|
|
106
|
-
*/
|
|
107
|
-
ObserveContent.ctorParameters = function () { return [
|
|
108
|
-
{ type: MdMutationObserverFactory, },
|
|
109
|
-
{ type: _angular_core.ElementRef, },
|
|
110
|
-
{ type: _angular_core.NgZone, },
|
|
111
|
-
]; };
|
|
112
|
-
ObserveContent.propDecorators = {
|
|
113
|
-
'event': [{ type: _angular_core.Output, args: ['cdkObserveContent',] },],
|
|
114
|
-
'debounce': [{ type: _angular_core.Input },],
|
|
115
|
-
};
|
|
116
117
|
var ObserversModule = (function () {
|
|
117
118
|
function ObserversModule() {
|
|
118
119
|
}
|
|
120
|
+
ObserversModule.decorators = [
|
|
121
|
+
{ type: _angular_core.NgModule, args: [{
|
|
122
|
+
exports: [ObserveContent],
|
|
123
|
+
declarations: [ObserveContent],
|
|
124
|
+
providers: [MatMutationObserverFactory]
|
|
125
|
+
},] },
|
|
126
|
+
];
|
|
127
|
+
/**
|
|
128
|
+
* @nocollapse
|
|
129
|
+
*/
|
|
130
|
+
ObserversModule.ctorParameters = function () { return []; };
|
|
119
131
|
return ObserversModule;
|
|
120
132
|
}());
|
|
121
|
-
ObserversModule.decorators = [
|
|
122
|
-
{ type: _angular_core.NgModule, args: [{
|
|
123
|
-
exports: [ObserveContent],
|
|
124
|
-
declarations: [ObserveContent],
|
|
125
|
-
providers: [MdMutationObserverFactory]
|
|
126
|
-
},] },
|
|
127
|
-
];
|
|
128
|
-
/**
|
|
129
|
-
* @nocollapse
|
|
130
|
-
*/
|
|
131
|
-
ObserversModule.ctorParameters = function () { return []; };
|
|
132
133
|
|
|
133
|
-
exports.
|
|
134
|
+
exports.MatMutationObserverFactory = MatMutationObserverFactory;
|
|
134
135
|
exports.ObserveContent = ObserveContent;
|
|
135
136
|
exports.ObserversModule = ObserversModule;
|
|
136
137
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cdk-observers.umd.js","sources":["
|
|
1
|
+
{"version":3,"file":"cdk-observers.umd.js","sources":["cdk/observers.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, ElementRef, EventEmitter, Injectable, Input, NgModule, NgZone, Output } from '@angular/core';\nimport { Subject } from 'rxjs/Subject';\nimport { RxChain, debounceTime } from '@angular/cdk/rxjs';\n\n/**\n * Factory that creates a new MutationObserver and allows us to stub it out in unit tests.\n * \\@docs-private\n */\nvar MatMutationObserverFactory = (function () {\n function MatMutationObserverFactory() {\n }\n /**\n * @param {?} callback\n * @return {?}\n */\n MatMutationObserverFactory.prototype.create = function (callback) {\n return typeof MutationObserver === 'undefined' ? null : new MutationObserver(callback);\n };\n MatMutationObserverFactory.decorators = [\n { type: Injectable },\n ];\n /**\n * @nocollapse\n */\n MatMutationObserverFactory.ctorParameters = function () { return []; };\n return MatMutationObserverFactory;\n}());\n/**\n * Directive that triggers a callback whenever the content of\n * its associated element has changed.\n */\nvar ObserveContent = (function () {\n /**\n * @param {?} _mutationObserverFactory\n * @param {?} _elementRef\n * @param {?} _ngZone\n */\n function ObserveContent(_mutationObserverFactory, _elementRef, _ngZone) {\n this._mutationObserverFactory = _mutationObserverFactory;\n this._elementRef = _elementRef;\n this._ngZone = _ngZone;\n /**\n * Event emitted for each change in the element's content.\n */\n this.event = new EventEmitter();\n /**\n * Used for debouncing the emitted values to the observeContent event.\n */\n this._debouncer = new Subject();\n }\n /**\n * @return {?}\n */\n ObserveContent.prototype.ngAfterContentInit = function () {\n var _this = this;\n if (this.debounce > 0) {\n this._ngZone.runOutsideAngular(function () {\n RxChain.from(_this._debouncer)\n .call(debounceTime, _this.debounce)\n .subscribe(function (mutations) { return _this.event.emit(mutations); });\n });\n }\n else {\n this._debouncer.subscribe(function (mutations) { return _this.event.emit(mutations); });\n }\n this._observer = this._ngZone.runOutsideAngular(function () {\n return _this._mutationObserverFactory.create(function (mutations) {\n _this._debouncer.next(mutations);\n });\n });\n if (this._observer) {\n this._observer.observe(this._elementRef.nativeElement, {\n characterData: true,\n childList: true,\n subtree: true\n });\n }\n };\n /**\n * @return {?}\n */\n ObserveContent.prototype.ngOnDestroy = function () {\n if (this._observer) {\n this._observer.disconnect();\n }\n this._debouncer.complete();\n };\n ObserveContent.decorators = [\n { type: Directive, args: [{\n selector: '[cdkObserveContent]',\n exportAs: 'cdkObserveContent',\n },] },\n ];\n /**\n * @nocollapse\n */\n ObserveContent.ctorParameters = function () { return [\n { type: MatMutationObserverFactory, },\n { type: ElementRef, },\n { type: NgZone, },\n ]; };\n ObserveContent.propDecorators = {\n 'event': [{ type: Output, args: ['cdkObserveContent',] },],\n 'debounce': [{ type: Input },],\n };\n return ObserveContent;\n}());\nvar ObserversModule = (function () {\n function ObserversModule() {\n }\n ObserversModule.decorators = [\n { type: NgModule, args: [{\n exports: [ObserveContent],\n declarations: [ObserveContent],\n providers: [MatMutationObserverFactory]\n },] },\n ];\n /**\n * @nocollapse\n */\n ObserversModule.ctorParameters = function () { return []; };\n return ObserversModule;\n}());\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MatMutationObserverFactory, ObserveContent, ObserversModule };\n//# sourceMappingURL=observers.es5.js.map\n"],"names":["Injectable","EventEmitter","Subject","RxChain","debounceTime","Directive","ElementRef","NgZone","Output","Input","NgModule"],"mappings":";;;;;;;;;;;;;AAWA;;;;AAIA,IAAI,0BAA0B,IAAI,YAAY;IAC1C,SAAS,0BAA0B,GAAG;KACrC;;;;;IAKD,0BAA0B,CAAC,SAAS,CAAC,MAAM,GAAG,UAAU,QAAQ,EAAE;QAC9D,OAAO,OAAO,gBAAgB,KAAK,WAAW,GAAG,IAAI,GAAG,IAAI,gBAAgB,CAAC,QAAQ,CAAC,CAAC;KAC1F,CAAC;IACF,0BAA0B,CAAC,UAAU,GAAG;QACpC,EAAE,IAAI,EAAEA,wBAAU,EAAE;KACvB,CAAC;;;;IAIF,0BAA0B,CAAC,cAAc,GAAG,YAAY,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IACvE,OAAO,0BAA0B,CAAC;CACrC,EAAE,CAAC,CAAC;;;;;AAKL,IAAI,cAAc,IAAI,YAAY;;;;;;IAM9B,SAAS,cAAc,CAAC,wBAAwB,EAAE,WAAW,EAAE,OAAO,EAAE;QACpE,IAAI,CAAC,wBAAwB,GAAG,wBAAwB,CAAC;QACzD,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;;;;QAIvB,IAAI,CAAC,KAAK,GAAG,IAAIC,0BAAY,EAAE,CAAC;;;;QAIhC,IAAI,CAAC,UAAU,GAAG,IAAIC,oBAAO,EAAE,CAAC;KACnC;;;;IAID,cAAc,CAAC,SAAS,CAAC,kBAAkB,GAAG,YAAY;QACtD,IAAI,KAAK,GAAG,IAAI,CAAC;QACjB,IAAI,IAAI,CAAC,QAAQ,GAAG,CAAC,EAAE;YACnB,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,YA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AChC,EAAE,EAAE;KAChB,CAAC;;;;IAIF,cAAc,CAAC,cAAc,GAAG,YAAY,EAAE,OAAO;QACjD,EAAE,IAAI,EAAE,0BAA0B,GAAG;QACrC,EAAE,IAAI,EAAEC,wBAAU,GAAG;QACrB,EAAE,IAAI,EAAEC,oBAAM,GAAG;KACpB,CAAC,EAAE,CAAC;IACL,cAAc,CAAC,cAAc,GAAG;QAC5B,OAAO,EAAE,CAAC,EAAE,IAAI,EAAEC,oBAAM,EAAE,IAAI,EAAE,CAAC,mBAAmB,EAAE,EAAE,EAAE;QAC1D,UAAU,EAAE,CAAC,EAAE,IAAI,EAAEC,mBAAK,EAAE,EAAE;KACjC,CAAC;IACF,OAAO,cAAc,CAAC;CACzB,EAAE,CAAC,CAAC;AACL,IAAI,eAAe,IAAI,YAAY;IAC/B,SAAS,eAAe,GAAG;KAC1B;IACD,eAAe,CAAC,UAAU,GAAG;QACzB,EAAE,IAAI,EAAEC,sBAAQ,EAAE,IAAI,EAAE,CAAC;oBACb,OAAO,EAAE,CAAC,cAAc,CAAC;oBACzB,YAAY,EAAE,CAAC,cAAc,CAAC;oBAC9B,SAAS,EAAE,CAAC,0BAA0B,CAAC;iBAC1C,EAAE,EAAE;KAChB,CAAC;;;;IAIF,eAAe,CAAC,cAAc,GAAG,YAAY,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IAC5D,OAAO,eAAe,CAAC;CAC1B,EAAE,CAAC,CAAC,AAEL,AAIuE,AACvE,AAAyC;;;;;;;;"}
|
|
@@ -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("rxjs/Subject"),require("@angular/cdk/rxjs")):"function"==typeof define&&define.amd?define(["exports","@angular/core","rxjs/Subject","@angular/cdk/rxjs"],t):t((e.ng=e.ng||{},e.ng.cdk=e.ng.cdk||{},e.ng.cdk.observers=e.ng.cdk.observers||{}),e.ng.core,e.Rx,e.ng.cdk.rxjs)}(this,function(e,t,r,n){"use strict";var o=function(){function e(){}return e.prototype.create=function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)},e
|
|
9
|
-
//# sourceMappingURL
|
|
8
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs/Subject"),require("@angular/cdk/rxjs")):"function"==typeof define&&define.amd?define(["exports","@angular/core","rxjs/Subject","@angular/cdk/rxjs"],t):t((e.ng=e.ng||{},e.ng.cdk=e.ng.cdk||{},e.ng.cdk.observers=e.ng.cdk.observers||{}),e.ng.core,e.Rx,e.ng.cdk.rxjs)}(this,function(e,t,r,n){"use strict";var o=function(){function e(){}return e.prototype.create=function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)},e.decorators=[{type:t.Injectable}],e.ctorParameters=function(){return[]},e}(),s=function(){function e(e,n,o){this._mutationObserverFactory=e,this._elementRef=n,this._ngZone=o,this.event=new t.EventEmitter,this._debouncer=new r.Subject}return e.prototype.ngAfterContentInit=function(){var e=this;this.debounce>0?this._ngZone.runOutsideAngular(function(){n.RxChain.from(e._debouncer).call(n.debounceTime,e.debounce).subscribe(function(t){return e.event.emit(t)})}):this._debouncer.subscribe(function(t){return e.event.emit(t)}),this._observer=this._ngZone.runOutsideAngular(function(){return e._mutationObserverFactory.create(function(t){e._debouncer.next(t)})}),this._observer&&this._observer.observe(this._elementRef.nativeElement,{characterData:!0,childList:!0,subtree:!0})},e.prototype.ngOnDestroy=function(){this._observer&&this._observer.disconnect(),this._debouncer.complete()},e.decorators=[{type:t.Directive,args:[{selector:"[cdkObserveContent]",exportAs:"cdkObserveContent"}]}],e.ctorParameters=function(){return[{type:o},{type:t.ElementRef},{type:t.NgZone}]},e.propDecorators={event:[{type:t.Output,args:["cdkObserveContent"]}],debounce:[{type:t.Input}]},e}(),u=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{exports:[s],declarations:[s],providers:[o]}]}],e.ctorParameters=function(){return[]},e}();e.MatMutationObserverFactory=o,e.ObserveContent=s,e.ObserversModule=u,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
9
|
+
//# sourceMappingURL=/Users/karakara/repos/material2/dist/bundles/cdk-observers.umd.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["/Users/karakara/repos/material2/dist/bundles/cdk-observers.umd.js"],"names":["global","factory","exports","module","require","define","amd","ng","cdk","observers","core","Rx","rxjs","this","_angular_core","rxjs_Subject","_angular_cdk_rxjs","MatMutationObserverFactory","prototype","create","callback","MutationObserver","decorators","type","Injectable","ctorParameters","ObserveContent","_mutationObserverFactory","_elementRef","_ngZone","event","EventEmitter","_debouncer","Subject","ngAfterContentInit","_this","debounce","runOutsideAngular","RxChain","from","call","debounceTime","subscribe","mutations","emit","_observer","next","observe","nativeElement","characterData","childList","subtree","ngOnDestroy","disconnect","complete","Directive","args","selector","exportAs","ElementRef","NgZone","propDecorators","Output","Input","ObserversModule","NgModule","declarations","providers","Object","defineProperty","value"],"mappings":";;;;;;;CAOC,SAAUA,EAAQC,GACC,gBAAZC,UAA0C,mBAAXC,QAAyBF,EAAQC,QAASE,QAAQ,iBAAkBA,QAAQ,gBAAiBA,QAAQ,sBACzH,kBAAXC,SAAyBA,OAAOC,IAAMD,QAAQ,UAAW,gBAAiB,eAAgB,qBAAsBJ,GACtHA,GAASD,EAAOO,GAAKP,EAAOO,OAAUP,EAAOO,GAAGC,IAAMR,EAAOO,GAAGC,QAAWR,EAAOO,GAAGC,IAAIC,UAAYT,EAAOO,GAAGC,IAAIC,eAAiBT,EAAOO,GAAGG,KAAKV,EAAOW,GAAGX,EAAOO,GAAGC,IAAII,OAC3KC,KAAM,SAAWX,EAAQY,EAAcC,EAAaC,GAAqB,YAM3E,IAAIC,GAA8B,WAC9B,QAASA,MAgBT,MAVAA,GA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