@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
package/esm5/bidi.es5.js
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { Directive, EventEmitter, Inject, Injectable, InjectionToken, Input, NgModule, Optional, Output, SkipSelf } from '@angular/core';
|
|
9
9
|
import { DOCUMENT } from '@angular/platform-browser';
|
|
10
|
+
|
|
10
11
|
/**
|
|
11
12
|
* Injection token used to inject the document into Directionality.
|
|
12
13
|
* This is used so that the value can be faked in tests.
|
|
@@ -17,7 +18,7 @@ import { DOCUMENT } from '@angular/platform-browser';
|
|
|
17
18
|
* We also can't re-provide the DOCUMENT token from platform-brower because the unit tests
|
|
18
19
|
* themselves use things like `querySelector` in test code.
|
|
19
20
|
*/
|
|
20
|
-
var DIR_DOCUMENT = new InjectionToken('
|
|
21
|
+
var DIR_DOCUMENT = new InjectionToken('mat-dir-doc');
|
|
21
22
|
/**
|
|
22
23
|
* The directionality (LTR / RTL) context for the application (or a subtree of it).
|
|
23
24
|
* Exposes the current direction and a stream of direction changes.
|
|
@@ -39,17 +40,17 @@ var Directionality = (function () {
|
|
|
39
40
|
this.value = (bodyDir || htmlDir || 'ltr');
|
|
40
41
|
}
|
|
41
42
|
}
|
|
43
|
+
Directionality.decorators = [
|
|
44
|
+
{ type: Injectable },
|
|
45
|
+
];
|
|
46
|
+
/**
|
|
47
|
+
* @nocollapse
|
|
48
|
+
*/
|
|
49
|
+
Directionality.ctorParameters = function () { return [
|
|
50
|
+
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [DIR_DOCUMENT,] },] },
|
|
51
|
+
]; };
|
|
42
52
|
return Directionality;
|
|
43
53
|
}());
|
|
44
|
-
Directionality.decorators = [
|
|
45
|
-
{ type: Injectable },
|
|
46
|
-
];
|
|
47
|
-
/**
|
|
48
|
-
* @nocollapse
|
|
49
|
-
*/
|
|
50
|
-
Directionality.ctorParameters = function () { return [
|
|
51
|
-
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [DIR_DOCUMENT,] },] },
|
|
52
|
-
]; };
|
|
53
54
|
/**
|
|
54
55
|
* \@docs-private
|
|
55
56
|
* @param {?} parentDirectionality
|
|
@@ -68,6 +69,7 @@ var DIRECTIONALITY_PROVIDER = {
|
|
|
68
69
|
deps: [[new Optional(), new SkipSelf(), Directionality], [new Optional(), DOCUMENT]],
|
|
69
70
|
useFactory: DIRECTIONALITY_PROVIDER_FACTORY
|
|
70
71
|
};
|
|
72
|
+
|
|
71
73
|
/**
|
|
72
74
|
* Directive to listen for changes of direction of part of the DOM.
|
|
73
75
|
*
|
|
@@ -126,45 +128,48 @@ var Dir = (function () {
|
|
|
126
128
|
Dir.prototype.ngAfterContentInit = function () {
|
|
127
129
|
this._isInitialized = true;
|
|
128
130
|
};
|
|
131
|
+
Dir.decorators = [
|
|
132
|
+
{ type: Directive, args: [{
|
|
133
|
+
selector: '[dir]',
|
|
134
|
+
providers: [{ provide: Directionality, useExisting: Dir }],
|
|
135
|
+
host: { '[dir]': 'dir' },
|
|
136
|
+
exportAs: 'dir',
|
|
137
|
+
},] },
|
|
138
|
+
];
|
|
139
|
+
/**
|
|
140
|
+
* @nocollapse
|
|
141
|
+
*/
|
|
142
|
+
Dir.ctorParameters = function () { return []; };
|
|
143
|
+
Dir.propDecorators = {
|
|
144
|
+
'change': [{ type: Output, args: ['dirChange',] },],
|
|
145
|
+
'dir': [{ type: Input, args: ['dir',] },],
|
|
146
|
+
};
|
|
129
147
|
return Dir;
|
|
130
148
|
}());
|
|
131
|
-
|
|
132
|
-
{ type: Directive, args: [{
|
|
133
|
-
selector: '[dir]',
|
|
134
|
-
providers: [{ provide: Directionality, useExisting: Dir }],
|
|
135
|
-
host: { '[dir]': 'dir' },
|
|
136
|
-
exportAs: 'dir',
|
|
137
|
-
},] },
|
|
138
|
-
];
|
|
139
|
-
/**
|
|
140
|
-
* @nocollapse
|
|
141
|
-
*/
|
|
142
|
-
Dir.ctorParameters = function () { return []; };
|
|
143
|
-
Dir.propDecorators = {
|
|
144
|
-
'change': [{ type: Output, args: ['dirChange',] },],
|
|
145
|
-
'dir': [{ type: Input, args: ['dir',] },],
|
|
146
|
-
};
|
|
149
|
+
|
|
147
150
|
var BidiModule = (function () {
|
|
148
151
|
function BidiModule() {
|
|
149
152
|
}
|
|
153
|
+
BidiModule.decorators = [
|
|
154
|
+
{ type: NgModule, args: [{
|
|
155
|
+
exports: [Dir],
|
|
156
|
+
declarations: [Dir],
|
|
157
|
+
providers: [
|
|
158
|
+
{ provide: DIR_DOCUMENT, useExisting: DOCUMENT },
|
|
159
|
+
Directionality,
|
|
160
|
+
]
|
|
161
|
+
},] },
|
|
162
|
+
];
|
|
163
|
+
/**
|
|
164
|
+
* @nocollapse
|
|
165
|
+
*/
|
|
166
|
+
BidiModule.ctorParameters = function () { return []; };
|
|
150
167
|
return BidiModule;
|
|
151
168
|
}());
|
|
152
|
-
|
|
153
|
-
{ type: NgModule, args: [{
|
|
154
|
-
exports: [Dir],
|
|
155
|
-
declarations: [Dir],
|
|
156
|
-
providers: [
|
|
157
|
-
{ provide: DIR_DOCUMENT, useExisting: DOCUMENT },
|
|
158
|
-
Directionality,
|
|
159
|
-
]
|
|
160
|
-
},] },
|
|
161
|
-
];
|
|
162
|
-
/**
|
|
163
|
-
* @nocollapse
|
|
164
|
-
*/
|
|
165
|
-
BidiModule.ctorParameters = function () { return []; };
|
|
169
|
+
|
|
166
170
|
/**
|
|
167
171
|
* Generated bundle index. Do not edit.
|
|
168
172
|
*/
|
|
173
|
+
|
|
169
174
|
export { Directionality, DIRECTIONALITY_PROVIDER_FACTORY, DIRECTIONALITY_PROVIDER, DIR_DOCUMENT, Dir, BidiModule };
|
|
170
175
|
//# sourceMappingURL=bidi.es5.js.map
|
package/esm5/bidi.es5.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bidi.es5.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[];\n}\n"],"names":[],"mappings":";;;;;;;;;;AGqBA;;;;;;;;;;AAUA,AAAC,MAAA,YAAA,GAAA,IAAA,cAAA,CAAA,YAAA,CAAA,CAAA;;;;;AAKD,AAAA,MAAA,cAAA,CAAA;;;;IAMA,WAAA,CAAe,SAAa,EAA5B;QAHW,IAAX,CAAA,KAAW,GAAmB,KAAA,CAAM;QACzB,IAAX,CAAA,MAAW,GAAS,IAAI,YAAA,EAAkB,CAAG;QAGzC,IAAI,SAAS,EAAE;;;;;YAKb,MAAM,OAAO,GAAG,SAAS,CAAC,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC;YAC3D,MAAM,OAAO,GAAG,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,eAAe,CAAC,GAAG,GAAG,IAAI,CAAC;YACjF,IAAI,CAAC,KAAK,IAAI,OAAO,IAAI,OAAO,IAAI,KAAK,CAAc,CAAC;SACzD;KACF;;AACI,cAAP,CAAA,UAAO,GAAoC;IAC3C,EAAE,IAAA,EAAM,UAAA,EAAW;CAClB,CAAC;;;;AAED,cAAD,CAAA,cAAC,GAAA,MAAA;IAGD,EAAC,IAPC,EAAA,SAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,CAAA,YAAA,EAAA,EAAA,EAAA,EAAA;CAQD,CAAC;A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AAA,EAAE,OAAC,EAAQ,cAAA,EAAgB,WAAA,EAAa,GAAA,EAAI,CAAC;gBAExD,IAAA,EADM,EAAA,OAAE,EAAQ,KAAA,EAAM;gBAYtB,QAAQ,EAXE,KAAA;aAYX,EAXC,EAAG;CAYJ,CAXC;;;;AAED,GAAD,CAAA,cAAC,GAAA,MAAA,EAcA,CAAC;AAZK,GAAP,CAAA,cAAO,GAAyD;IAchE,QAAQ,EAbE,CAAA,EAAG,IAAA,EAAM,MAAA,EAAQ,IAAA,EAAM,CAAA,WAAE,EAAW,EAAG,EAAE;IAcnD,KAAK,EAbE,CAAA,EAAG,IAAA,EAAM,KAAA,EAAO,IAAA,EAAM,CAAA,KAAE,EAAK,EAAG,EAAE;CAcxC,CAbC,AAgBF,AAyBC;;ADvFD,MAAA,UAAA,CAAA;;AACiC,UAAjC,CAAA,UAAiC,GAAoC;IAArE,EACE,IAAA,EAAM,QAAA,EAAU,IAAA,EAAM,CAAA;gBAAtB,OAAO,EACE,CAAA,GAAE,CAAG;gBAAd,YAAY,EACE,CAAA,GAAE,CAAG;gBAAnB,SAAS,EACE;oBAAT,EAAC,OACC,EAAQ,YAAA,EAAc,WAAA,EAAa,QAAA,EAAS;oBAA9C,cAAc;iBACf;aACF,EACC,EAAG;CAAJ,CACC;;;;AAED,UAAD,CAAA,cAAC,GAAA,MAAA,EAEA,CAN2B,AAS5B,AAQC;;AD/CD;;GAEG,AAEH,AAA0I;;"}
|
|
1
|
+
{"version":3,"file":"bidi.es5.js","sources":["../../packages/cdk/esm5/bidi/directionality.js","../../packages/cdk/esm5/bidi/dir.js","../../packages/cdk/esm5/bidi/bidi-module.js","../../packages/cdk/esm5/bidi/index.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 { EventEmitter, Injectable, Optional, SkipSelf, Inject, InjectionToken, } from '@angular/core';\nimport { DOCUMENT } from '@angular/platform-browser';\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 var 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}());\nexport { Directionality };\nfunction Directionality_tsickle_Closure_declarations() {\n /** @type {?} */\n Directionality.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n Directionality.ctorParameters;\n /** @type {?} */\n Directionality.prototype.value;\n /** @type {?} */\n Directionality.prototype.change;\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 var 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//# sourceMappingURL=directionality.js.map","/**\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, Output, Input, EventEmitter } from '@angular/core';\nimport { 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 */\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}());\nexport { Dir };\nfunction Dir_tsickle_Closure_declarations() {\n /** @type {?} */\n Dir.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n Dir.ctorParameters;\n /** @type {?} */\n Dir.propDecorators;\n /**\n * Layout direction of the element.\n * @type {?}\n */\n Dir.prototype._dir;\n /**\n * Whether the `value` has been set to its initial value.\n * @type {?}\n */\n Dir.prototype._isInitialized;\n /**\n * Event emitted when the direction changes.\n * @type {?}\n */\n Dir.prototype.change;\n}\n//# sourceMappingURL=dir.js.map","/**\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 { NgModule } from '@angular/core';\nimport { DOCUMENT } from '@angular/platform-browser';\nimport { Dir } from './dir';\nimport { DIR_DOCUMENT, Directionality } from './directionality';\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}());\nexport { BidiModule };\nfunction BidiModule_tsickle_Closure_declarations() {\n /** @type {?} */\n BidiModule.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n BidiModule.ctorParameters;\n}\n//# sourceMappingURL=bidi-module.js.map","/**\n * Generated bundle index. Do not edit.\n */\nexport { Directionality, DIRECTIONALITY_PROVIDER_FACTORY, DIRECTIONALITY_PROVIDER, DIR_DOCUMENT, Dir, BidiModule } from './public-api';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;;;;;;AASA;;;;;;;;;;AAUA,AAAO,IAAI,YAAY,GAAG,IAAI,cAAc,CAAC,aAAa,CAAC,CAAC;;;;;AAK5D,IAAI,cAAc,IAAI,YAAY;;;;IAI9B,SAAS,cAAc,CAAC,SAAS,EAAE;QAC/B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,IAAI,YAAY,EAAE,CAAC;QACjC,IAAI,SAAS,EAAE;;;;;YAKX,IAAI,OAAO,GAAG,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AAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,WAAW,EAAE,EAAE,EAAE;QACnD,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE,EAAE,EAAE;KAC5C,CAAC;IACF,OAAO,GAAG,CAAC;CACd,EAAE,CAAC,CAAC,AACL,AACA,AAyBC,AACD;;ACrGA,IAAI,UAAU,IAAI,YAAY;IAC1B,SAAS,UAAU,GAAG;KACrB;IACD,UAAU,CAAC,UAAU,GAAG;QACpB,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;oBACb,OAAO,EAAE,CAAC,GAAG,CAAC;oBACd,YAAY,EAAE,CAAC,GAAG,CAAC;oBACnB,SAAS,EAAE;wBACP,EAAE,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE;wBAChD,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,AACL,AACA,AAQC,AACD;;ACxCA;;GAEG,AACH,AAAuI,AACvI;;"}
|
package/esm5/cdk.es5.js
CHANGED
|
@@ -6,12 +6,15 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
8
|
import { Version } from '@angular/core';
|
|
9
|
+
|
|
9
10
|
/**
|
|
10
11
|
* Current version of the Angular Component Development Kit.
|
|
11
12
|
*/
|
|
12
|
-
var VERSION = new Version('
|
|
13
|
+
var VERSION = new Version('0.0.0-PLACEHOLDER');
|
|
14
|
+
|
|
13
15
|
/**
|
|
14
16
|
* Generated bundle index. Do not edit.
|
|
15
17
|
*/
|
|
18
|
+
|
|
16
19
|
export { VERSION };
|
|
17
20
|
//# sourceMappingURL=cdk.es5.js.map
|
package/esm5/cdk.es5.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cdk.es5.js","sources":["
|
|
1
|
+
{"version":3,"file":"cdk.es5.js","sources":["../packages/cdk/esm5/version.js","../packages/cdk/esm5/index.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 { Version } from '@angular/core';\n/**\n * Current version of the Angular Component Development Kit.\n */\nexport var VERSION = new Version('0.0.0-PLACEHOLDER');\n//# sourceMappingURL=version.js.map","/**\n * Generated bundle index. Do not edit.\n */\nexport { VERSION } from './public-api';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;;;;;AAQA;;;AAGA,AAAO,IAAI,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB,CAAC,CAAC,AACtD;;ACZA;;GAEG,AACH,AAAuC,AACvC;;"}
|
package/esm5/coercion.es5.js
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
function coerceBooleanProperty(value) {
|
|
14
14
|
return value != null && "" + value !== 'false';
|
|
15
15
|
}
|
|
16
|
+
|
|
16
17
|
/**
|
|
17
18
|
* Coerces a data-bound value (typically a string) to a number.
|
|
18
19
|
* @param {?} value
|
|
@@ -26,8 +27,20 @@ function coerceNumberProperty(value, fallbackValue) {
|
|
|
26
27
|
// '123hello' to be a valid number. Therefore we also check if Number(value) is NaN.
|
|
27
28
|
return isNaN(parseFloat(/** @type {?} */ (value))) || isNaN(Number(value)) ? fallbackValue : Number(value);
|
|
28
29
|
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Wraps the provided value in an array, unless the provided value is an array.
|
|
33
|
+
* @template T
|
|
34
|
+
* @param {?} value
|
|
35
|
+
* @return {?}
|
|
36
|
+
*/
|
|
37
|
+
function coerceArray(value) {
|
|
38
|
+
return Array.isArray(value) ? value : [value];
|
|
39
|
+
}
|
|
40
|
+
|
|
29
41
|
/**
|
|
30
42
|
* Generated bundle index. Do not edit.
|
|
31
43
|
*/
|
|
32
|
-
|
|
44
|
+
|
|
45
|
+
export { coerceBooleanProperty, coerceNumberProperty, coerceArray };
|
|
33
46
|
//# sourceMappingURL=coercion.es5.js.map
|
package/esm5/coercion.es5.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coercion.es5.js","sources":["
|
|
1
|
+
{"version":3,"file":"coercion.es5.js","sources":["../../packages/cdk/esm5/coercion/boolean-property.js","../../packages/cdk/esm5/coercion/number-property.js","../../packages/cdk/esm5/coercion/array.js","../../packages/cdk/esm5/coercion/index.js"],"sourcesContent":["/**\n * Coerces a data-bound value (typically a string) to a boolean.\n * @param {?} value\n * @return {?}\n */\nexport function coerceBooleanProperty(value) {\n return value != null && \"\" + value !== 'false';\n}\n//# sourceMappingURL=boolean-property.js.map","/**\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, 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//# sourceMappingURL=number-property.js.map","/**\n * Wraps the provided value in an array, unless the provided value is an array.\n * @template T\n * @param {?} value\n * @return {?}\n */\nexport function coerceArray(value) {\n return Array.isArray(value) ? value : [value];\n}\n//# sourceMappingURL=array.js.map","/**\n * Generated bundle index. Do not edit.\n */\nexport { coerceBooleanProperty, coerceNumberProperty, coerceArray } from './public-api';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;;;AAAA;;;;;AAKA,AAAO,SAAS,qBAAqB,CAAC,KAAK,EAAE;IACzC,OAAO,KAAK,IAAI,IAAI,IAAI,EAAE,GAAG,KAAK,KAAK,OAAO,CAAC;CAClD,AACD;;ACRA;;;;;;AAMA,AAAO,SAAS,oBAAoB,CAAC,KAAK,EAAE,aAAa,EAAE;IACvD,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,AACD;;ACbA;;;;;;AAMA,AAAO,SAAS,WAAW,CAAC,KAAK,EAAE;IAC/B,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC;CACjD,AACD;;ACTA;;GAEG,AACH,AAAwF,AACxF;;"}
|
package/esm5/collections.es5.js
CHANGED
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
8
|
import { Subject } from 'rxjs/Subject';
|
|
9
|
+
import { Injectable, Optional, SkipSelf } from '@angular/core';
|
|
10
|
+
|
|
9
11
|
/**
|
|
10
12
|
* @abstract
|
|
11
13
|
*/
|
|
@@ -34,6 +36,7 @@ var DataSource = (function () {
|
|
|
34
36
|
DataSource.prototype.disconnect = function (collectionViewer) { };
|
|
35
37
|
return DataSource;
|
|
36
38
|
}());
|
|
39
|
+
|
|
37
40
|
/**
|
|
38
41
|
* Class to be used to power selecting one or more options from a list.
|
|
39
42
|
*/
|
|
@@ -92,20 +95,32 @@ var SelectionModel = (function () {
|
|
|
92
95
|
});
|
|
93
96
|
/**
|
|
94
97
|
* Selects a value or an array of values.
|
|
95
|
-
* @param {
|
|
98
|
+
* @param {...?} values
|
|
96
99
|
* @return {?}
|
|
97
100
|
*/
|
|
98
|
-
SelectionModel.prototype.select = function (
|
|
99
|
-
this
|
|
101
|
+
SelectionModel.prototype.select = function () {
|
|
102
|
+
var _this = this;
|
|
103
|
+
var values = [];
|
|
104
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
105
|
+
values[_i] = arguments[_i];
|
|
106
|
+
}
|
|
107
|
+
this._verifyValueAssignment(values);
|
|
108
|
+
values.forEach(function (value) { return _this._markSelected(value); });
|
|
100
109
|
this._emitChangeEvent();
|
|
101
110
|
};
|
|
102
111
|
/**
|
|
103
112
|
* Deselects a value or an array of values.
|
|
104
|
-
* @param {
|
|
113
|
+
* @param {...?} values
|
|
105
114
|
* @return {?}
|
|
106
115
|
*/
|
|
107
|
-
SelectionModel.prototype.deselect = function (
|
|
108
|
-
this
|
|
116
|
+
SelectionModel.prototype.deselect = function () {
|
|
117
|
+
var _this = this;
|
|
118
|
+
var values = [];
|
|
119
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
120
|
+
values[_i] = arguments[_i];
|
|
121
|
+
}
|
|
122
|
+
this._verifyValueAssignment(values);
|
|
123
|
+
values.forEach(function (value) { return _this._unmarkSelected(value); });
|
|
109
124
|
this._emitChangeEvent();
|
|
110
125
|
};
|
|
111
126
|
/**
|
|
@@ -210,10 +225,21 @@ var SelectionModel = (function () {
|
|
|
210
225
|
this._selection.forEach(function (value) { return _this._unmarkSelected(value); });
|
|
211
226
|
}
|
|
212
227
|
};
|
|
228
|
+
/**
|
|
229
|
+
* Verifies the value assignment and throws an error if the specified value array is
|
|
230
|
+
* including multiple values while the selection model is not supporting multiple values.
|
|
231
|
+
* @param {?} values
|
|
232
|
+
* @return {?}
|
|
233
|
+
*/
|
|
234
|
+
SelectionModel.prototype._verifyValueAssignment = function (values) {
|
|
235
|
+
if (values.length > 1 && !this._isMulti) {
|
|
236
|
+
throw getMultipleValuesInSingleSelectionError();
|
|
237
|
+
}
|
|
238
|
+
};
|
|
213
239
|
return SelectionModel;
|
|
214
240
|
}());
|
|
215
241
|
/**
|
|
216
|
-
* Describes an event emitted when the value of a
|
|
242
|
+
* Describes an event emitted when the value of a MatSelectionModel has changed.
|
|
217
243
|
* \@docs-private
|
|
218
244
|
*/
|
|
219
245
|
var SelectionChange = (function () {
|
|
@@ -227,8 +253,84 @@ var SelectionChange = (function () {
|
|
|
227
253
|
}
|
|
228
254
|
return SelectionChange;
|
|
229
255
|
}());
|
|
256
|
+
/**
|
|
257
|
+
* Returns an error that reports that multiple values are passed into a selection model
|
|
258
|
+
* with a single value.
|
|
259
|
+
* @return {?}
|
|
260
|
+
*/
|
|
261
|
+
function getMultipleValuesInSingleSelectionError() {
|
|
262
|
+
return Error('Cannot pass multiple values into SelectionModel with single-value mode.');
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Class to coordinate unique selection based on name.
|
|
267
|
+
* Intended to be consumed as an Angular service.
|
|
268
|
+
* This service is needed because native radio change events are only fired on the item currently
|
|
269
|
+
* being selected, and we still need to uncheck the previous selection.
|
|
270
|
+
*
|
|
271
|
+
* This service does not *store* any IDs and names because they may change at any time, so it is
|
|
272
|
+
* less error-prone if they are simply passed through when the events occur.
|
|
273
|
+
*/
|
|
274
|
+
var UniqueSelectionDispatcher = (function () {
|
|
275
|
+
function UniqueSelectionDispatcher() {
|
|
276
|
+
this._listeners = [];
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Notify other items that selection for the given name has been set.
|
|
280
|
+
* @param {?} id ID of the item.
|
|
281
|
+
* @param {?} name Name of the item.
|
|
282
|
+
* @return {?}
|
|
283
|
+
*/
|
|
284
|
+
UniqueSelectionDispatcher.prototype.notify = function (id, name) {
|
|
285
|
+
for (var _i = 0, _a = this._listeners; _i < _a.length; _i++) {
|
|
286
|
+
var listener = _a[_i];
|
|
287
|
+
listener(id, name);
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
/**
|
|
291
|
+
* Listen for future changes to item selection.
|
|
292
|
+
* @param {?} listener
|
|
293
|
+
* @return {?} Function used to deregister listener
|
|
294
|
+
*/
|
|
295
|
+
UniqueSelectionDispatcher.prototype.listen = function (listener) {
|
|
296
|
+
var _this = this;
|
|
297
|
+
this._listeners.push(listener);
|
|
298
|
+
return function () {
|
|
299
|
+
_this._listeners = _this._listeners.filter(function (registered) {
|
|
300
|
+
return listener !== registered;
|
|
301
|
+
});
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
UniqueSelectionDispatcher.decorators = [
|
|
305
|
+
{ type: Injectable },
|
|
306
|
+
];
|
|
307
|
+
/**
|
|
308
|
+
* @nocollapse
|
|
309
|
+
*/
|
|
310
|
+
UniqueSelectionDispatcher.ctorParameters = function () { return []; };
|
|
311
|
+
return UniqueSelectionDispatcher;
|
|
312
|
+
}());
|
|
313
|
+
/**
|
|
314
|
+
* \@docs-private
|
|
315
|
+
* @param {?} parentDispatcher
|
|
316
|
+
* @return {?}
|
|
317
|
+
*/
|
|
318
|
+
function UNIQUE_SELECTION_DISPATCHER_PROVIDER_FACTORY(parentDispatcher) {
|
|
319
|
+
return parentDispatcher || new UniqueSelectionDispatcher();
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* \@docs-private
|
|
323
|
+
*/
|
|
324
|
+
var UNIQUE_SELECTION_DISPATCHER_PROVIDER = {
|
|
325
|
+
// If there is already a dispatcher available, use that. Otherwise, provide a new one.
|
|
326
|
+
provide: UniqueSelectionDispatcher,
|
|
327
|
+
deps: [[new Optional(), new SkipSelf(), UniqueSelectionDispatcher]],
|
|
328
|
+
useFactory: UNIQUE_SELECTION_DISPATCHER_PROVIDER_FACTORY
|
|
329
|
+
};
|
|
330
|
+
|
|
230
331
|
/**
|
|
231
332
|
* Generated bundle index. Do not edit.
|
|
232
333
|
*/
|
|
233
|
-
|
|
334
|
+
|
|
335
|
+
export { UniqueSelectionDispatcher, UNIQUE_SELECTION_DISPATCHER_PROVIDER, DataSource, SelectionModel, SelectionChange, getMultipleValuesInSingleSelectionError, UNIQUE_SELECTION_DISPATCHER_PROVIDER_FACTORY as ɵa };
|
|
234
336
|
//# sourceMappingURL=collections.es5.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collections.es5.js","sources":["../../../src/cdk/collections/index.ts","../../../src/cdk/collections/selection.ts","../../../src/cdk/collections/data-source.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport {CollectionViewer,DataSource,SelectionModel,SelectionChange} 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 {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(collection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A,OAAyC,GAAA,OAAA,CAAY;KAAE;CAiEtD,AAED,AAKC;;ADnPD;;GAEG,AAEH,AAAwF;;"}
|
|
1
|
+
{"version":3,"file":"collections.es5.js","sources":["../../packages/cdk/esm5/collections/data-source.js","../../packages/cdk/esm5/collections/selection.js","../../packages/cdk/esm5/collections/unique-selection-dispatcher.js","../../packages/cdk/esm5/collections/index.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 * @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}());\nexport { DataSource };\n//# sourceMappingURL=data-source.js.map","/**\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 { Subject } from 'rxjs/Subject';\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}());\nexport { SelectionModel };\nfunction SelectionModel_tsickle_Closure_declarations() {\n /**\n * Currently-selected values.\n * @type {?}\n */\n SelectionModel.prototype._selection;\n /**\n * Keeps track of the deselected options that haven't been emitted by the change event.\n * @type {?}\n */\n SelectionModel.prototype._deselectedToEmit;\n /**\n * Keeps track of the selected option that haven't been emitted by the change event.\n * @type {?}\n */\n SelectionModel.prototype._selectedToEmit;\n /**\n * Cache for the array value of the selected items.\n * @type {?}\n */\n SelectionModel.prototype._selected;\n /**\n * Event emitted when the value has changed.\n * @type {?}\n */\n SelectionModel.prototype.onChange;\n /** @type {?} */\n SelectionModel.prototype._isMulti;\n /** @type {?} */\n SelectionModel.prototype._emitChanges;\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}());\nexport { SelectionChange };\nfunction SelectionChange_tsickle_Closure_declarations() {\n /** @type {?} */\n SelectionChange.prototype.added;\n /** @type {?} */\n SelectionChange.prototype.removed;\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 */\nexport function getMultipleValuesInSingleSelectionError() {\n return Error('Cannot pass multiple values into SelectionModel with single-value mode.');\n}\n//# sourceMappingURL=selection.js.map","/**\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, Optional, SkipSelf } from '@angular/core';\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}());\nexport { UniqueSelectionDispatcher };\nfunction UniqueSelectionDispatcher_tsickle_Closure_declarations() {\n /** @type {?} */\n UniqueSelectionDispatcher.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n UniqueSelectionDispatcher.ctorParameters;\n /** @type {?} */\n UniqueSelectionDispatcher.prototype._listeners;\n}\n/**\n * \\@docs-private\n * @param {?} parentDispatcher\n * @return {?}\n */\nexport function UNIQUE_SELECTION_DISPATCHER_PROVIDER_FACTORY(parentDispatcher) {\n return parentDispatcher || new UniqueSelectionDispatcher();\n}\n/**\n * \\@docs-private\n */\nexport var 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//# sourceMappingURL=unique-selection-dispatcher.js.map","/**\n * Generated bundle index. Do not edit.\n */\nexport { UniqueSelectionDispatcher, UNIQUE_SELECTION_DISPATCHER_PROVIDER, DataSource, SelectionModel, SelectionChange, getMultipleValuesInSingleSelectionError } from './public-api';\nexport { UNIQUE_SELECTION_DISPATCHER_PROVIDER_FACTORY as ɵa } from './unique-selection-dispatcher';\n//# sourceMappingURL=index.js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E,IAAI,CAAC,CAAC;SACtB;KACJ,CAAC;;;;;;IAMF,yBAAyB,CAAC,SAAS,CAAC,MAAM,GAAG,UAAU,QAAQ,EAAE;QAC7D,IAAI,KAAK,GAAG,IAAI,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,EAAE,UAAU,EAAE;KACvB,CAAC;;;;IAIF,yBAAyB,CAAC,cAAc,GAAG,YAAY,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IACtE,OAAO,yBAAyB,CAAC;CACpC,EAAE,CAAC,CAAC;AACL,AACA,AAWA;;;;;AAKA,AAAO,SAAS,4CAA4C,CAAC,gBAAgB,EAAE;IAC3E,OAAO,gBAAgB,IAAI,IAAI,yBAAyB,EAAE,CAAC;CAC9D;;;;AAID,AAAO,IAAI,oCAAoC,GAAG;;IAE9C,OAAO,EAAE,yBAAyB;IAClC,IAAI,EAAE,CAAC,CAAC,IAAI,QAAQ,EAAE,EAAE,IAAI,QAAQ,EAAE,EAAE,yBAAyB,CAAC,CAAC;IACnE,UAAU,EAAE,4CAA4C;CAC3D,CAAC,AACF;;ACrFA;;GAEG,AACH,AACA,AAAmG,AACnG;;"}
|
package/esm5/keycodes.es5.js
CHANGED
|
@@ -23,8 +23,10 @@ var A = 65;
|
|
|
23
23
|
var Z = 90;
|
|
24
24
|
var ZERO = 48;
|
|
25
25
|
var NINE = 91;
|
|
26
|
+
|
|
26
27
|
/**
|
|
27
28
|
* Generated bundle index. Do not edit.
|
|
28
29
|
*/
|
|
30
|
+
|
|
29
31
|
export { UP_ARROW, DOWN_ARROW, RIGHT_ARROW, LEFT_ARROW, PAGE_UP, PAGE_DOWN, HOME, END, ENTER, SPACE, TAB, ESCAPE, BACKSPACE, DELETE, A, Z, ZERO, NINE };
|
|
30
32
|
//# sourceMappingURL=keycodes.es5.js.map
|
package/esm5/keycodes.es5.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keycodes.es5.js","sources":["
|
|
1
|
+
{"version":3,"file":"keycodes.es5.js","sources":["../../packages/cdk/esm5/keycodes/keycodes.js","../../packages/cdk/esm5/keycodes/index.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 */\nexport var UP_ARROW = 38;\nexport var /** @type {?} */ DOWN_ARROW = 40;\nexport var /** @type {?} */ RIGHT_ARROW = 39;\nexport var /** @type {?} */ LEFT_ARROW = 37;\nexport var /** @type {?} */ PAGE_UP = 33;\nexport var /** @type {?} */ PAGE_DOWN = 34;\nexport var /** @type {?} */ HOME = 36;\nexport var /** @type {?} */ END = 35;\nexport var /** @type {?} */ ENTER = 13;\nexport var /** @type {?} */ SPACE = 32;\nexport var /** @type {?} */ TAB = 9;\nexport var /** @type {?} */ ESCAPE = 27;\nexport var /** @type {?} */ BACKSPACE = 8;\nexport var /** @type {?} */ DELETE = 46;\nexport var /** @type {?} */ A = 65;\nexport var /** @type {?} */ Z = 90;\nexport var /** @type {?} */ ZERO = 48;\nexport var /** @type {?} */ NINE = 91;\n//# sourceMappingURL=keycodes.js.map","/**\n * Generated bundle index. Do not edit.\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//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;;;AAOO,IAAI,QAAQ,GAAG,EAAE,CAAC;AACzB,AAAO,IAAqB,UAAU,GAAG,EAAE,CAAC;AAC5C,AAAO,IAAqB,WAAW,GAAG,EAAE,CAAC;AAC7C,AAAO,IAAqB,UAAU,GAAG,EAAE,CAAC;AAC5C,AAAO,IAAqB,OAAO,GAAG,EAAE,CAAC;AACzC,AAAO,IAAqB,SAAS,GAAG,EAAE,CAAC;AAC3C,AAAO,IAAqB,IAAI,GAAG,EAAE,CAAC;AACtC,AAAO,IAAqB,GAAG,GAAG,EAAE,CAAC;AACrC,AAAO,IAAqB,KAAK,GAAG,EAAE,CAAC;AACvC,AAAO,IAAqB,KAAK,GAAG,EAAE,CAAC;AACvC,AAAO,IAAqB,GAAG,GAAG,CAAC,CAAC;AACpC,AAAO,IAAqB,MAAM,GAAG,EAAE,CAAC;AACxC,AAAO,IAAqB,SAAS,GAAG,CAAC,CAAC;AAC1C,AAAO,IAAqB,MAAM,GAAG,EAAE,CAAC;AACxC,AAAO,IAAqB,CAAC,GAAG,EAAE,CAAC;AACnC,AAAO,IAAqB,CAAC,GAAG,EAAE,CAAC;AACnC,AAAO,IAAqB,IAAI,GAAG,EAAE,CAAC;AACtC,AAAO,IAAqB,IAAI,GAAG,EAAE,CAAC,AACtC;;ACzBA;;GAEG,AACH,AAA4K,AAC5K;;"}
|