@angular/cdk 8.1.4 → 8.2.3
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/typings/index.metadata.json +1 -1
- package/a11y/typings/key-manager/focus-key-manager.d.ts +1 -1
- package/bundles/cdk-a11y.umd.js +10 -2
- package/bundles/cdk-a11y.umd.js.map +1 -1
- package/bundles/cdk-a11y.umd.min.js +1 -1
- package/bundles/cdk-a11y.umd.min.js.map +1 -1
- package/bundles/cdk-drag-drop.umd.js +239 -36
- package/bundles/cdk-drag-drop.umd.js.map +1 -1
- package/bundles/cdk-drag-drop.umd.min.js +2 -2
- package/bundles/cdk-drag-drop.umd.min.js.map +1 -1
- package/bundles/cdk-overlay.umd.js +15 -8
- 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 +21 -0
- package/bundles/cdk-platform.umd.js.map +1 -1
- package/bundles/cdk-platform.umd.min.js +1 -1
- package/bundles/cdk-platform.umd.min.js.map +1 -1
- package/bundles/cdk-scrolling.umd.js +1 -1
- package/bundles/cdk-scrolling.umd.js.map +1 -1
- package/bundles/cdk-scrolling.umd.min.js.map +1 -1
- package/bundles/cdk-stepper.umd.js +46 -40
- package/bundles/cdk-stepper.umd.js.map +1 -1
- package/bundles/cdk-stepper.umd.min.js +1 -1
- package/bundles/cdk-stepper.umd.min.js.map +1 -1
- package/bundles/cdk-table.umd.js +4 -4
- package/bundles/cdk-table.umd.js.map +1 -1
- package/bundles/cdk-table.umd.min.js.map +1 -1
- package/bundles/cdk-testing.umd.js +404 -0
- package/bundles/cdk-testing.umd.js.map +1 -0
- package/bundles/cdk-testing.umd.min.js +9 -0
- package/bundles/cdk-testing.umd.min.js.map +1 -0
- package/bundles/cdk-text-field.umd.js +3 -3
- package/bundles/cdk-text-field.umd.js.map +1 -1
- package/bundles/cdk-text-field.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 +1 -1
- package/bundles/cdk.umd.min.js.map +1 -1
- package/drag-drop/typings/drag-ref.d.ts +9 -0
- package/drag-drop/typings/drop-list-ref.d.ts +7 -1
- package/drag-drop/typings/index.metadata.json +1 -1
- package/esm2015/a11y.js +10 -2
- package/esm2015/a11y.js.map +1 -1
- package/esm2015/cdk.js +1 -1
- package/esm2015/cdk.js.map +1 -1
- package/esm2015/drag-drop.js +212 -37
- package/esm2015/drag-drop.js.map +1 -1
- package/esm2015/overlay.js +13 -6
- package/esm2015/overlay.js.map +1 -1
- package/esm2015/platform.js +21 -1
- package/esm2015/platform.js.map +1 -1
- package/esm2015/scrolling.js +1 -1
- package/esm2015/scrolling.js.map +1 -1
- package/esm2015/stepper.js +51 -45
- package/esm2015/stepper.js.map +1 -1
- package/esm2015/table.js +4 -4
- package/esm2015/table.js.map +1 -1
- package/esm2015/testing.js +370 -0
- package/esm2015/testing.js.map +1 -0
- package/esm2015/text-field.js +1 -1
- package/esm2015/text-field.js.map +1 -1
- package/esm5/a11y.es5.js +10 -2
- package/esm5/a11y.es5.js.map +1 -1
- package/esm5/cdk.es5.js +1 -1
- package/esm5/cdk.es5.js.map +1 -1
- package/esm5/drag-drop.es5.js +241 -38
- package/esm5/drag-drop.es5.js.map +1 -1
- package/esm5/overlay.es5.js +15 -8
- package/esm5/overlay.es5.js.map +1 -1
- package/esm5/platform.es5.js +21 -1
- package/esm5/platform.es5.js.map +1 -1
- package/esm5/scrolling.es5.js +1 -1
- package/esm5/scrolling.es5.js.map +1 -1
- package/esm5/stepper.es5.js +49 -43
- package/esm5/stepper.es5.js.map +1 -1
- package/esm5/table.es5.js +4 -4
- package/esm5/table.es5.js.map +1 -1
- package/esm5/testing.es5.js +390 -0
- package/esm5/testing.es5.js.map +1 -0
- package/esm5/text-field.es5.js +3 -3
- package/esm5/text-field.es5.js.map +1 -1
- package/overlay/typings/index.metadata.json +1 -1
- package/overlay/typings/position/flexible-connected-position-strategy.d.ts +5 -2
- package/overlay/typings/public-api.d.ts +1 -1
- package/package.json +4 -4
- package/platform/typings/features/shadow-dom.d.ts +9 -0
- package/platform/typings/index.metadata.json +1 -1
- package/platform/typings/public-api.d.ts +1 -0
- package/schematics/ng-update/index.js +2 -2
- package/schematics/ng-update/index.js.map +1 -1
- package/schematics/ng-update/test-cases/misc/global-stylesheets-test.css +1 -0
- package/schematics/ng-update/upgrade-rules/class-inheritance-rule.js +3 -3
- package/schematics/ng-update/upgrade-rules/class-inheritance-rule.js.map +1 -1
- package/schematics/tsconfig.tsbuildinfo +2898 -2898
- package/schematics/update-tool/index.js +9 -5
- package/schematics/update-tool/index.js.map +1 -1
- package/scrolling/typings/virtual-scroll-viewport.d.ts +1 -1
- package/stepper/typings/index.metadata.json +1 -1
- package/stepper/typings/stepper.d.ts +3 -3
- package/table/typings/table.d.ts +4 -4
- package/testing/index.d.ts +8 -0
- package/testing/index.metadata.json +12 -0
- package/testing/package.json +8 -0
- package/testing/typings/dispatch-events.d.ts +33 -0
- package/testing/typings/element-focus.d.ts +18 -0
- package/testing/typings/event-objects.d.ts +34 -0
- package/testing/typings/index.d.ts +4 -0
- package/testing/typings/index.metadata.json +1 -0
- package/testing/typings/public-api.d.ts +11 -0
- package/testing/typings/type-in-element.d.ts +41 -0
- package/testing.d.ts +8 -0
- package/testing.metadata.json +12 -0
- package/text-field/typings/autosize.d.ts +1 -1
- package/typings/a11y/index.metadata.json +1 -1
- package/typings/a11y/key-manager/focus-key-manager.d.ts +1 -1
- package/typings/drag-drop/drag-ref.d.ts +9 -0
- package/typings/drag-drop/drop-list-ref.d.ts +7 -1
- package/typings/drag-drop/index.metadata.json +1 -1
- package/typings/esm5/a11y/index.metadata.json +1 -1
- package/typings/esm5/a11y/key-manager/focus-key-manager.d.ts +1 -1
- package/typings/esm5/drag-drop/drag-ref.d.ts +9 -0
- package/typings/esm5/drag-drop/drop-list-ref.d.ts +7 -1
- package/typings/esm5/drag-drop/index.metadata.json +1 -1
- package/typings/esm5/index.metadata.json +1 -1
- package/typings/esm5/overlay/index.metadata.json +1 -1
- package/typings/esm5/overlay/position/flexible-connected-position-strategy.d.ts +5 -2
- package/typings/esm5/overlay/public-api.d.ts +1 -1
- package/typings/esm5/platform/features/shadow-dom.d.ts +9 -0
- package/typings/esm5/platform/index.metadata.json +1 -1
- package/typings/esm5/platform/public-api.d.ts +1 -0
- package/typings/esm5/scrolling/virtual-scroll-viewport.d.ts +1 -1
- package/typings/esm5/stepper/index.metadata.json +1 -1
- package/typings/esm5/stepper/stepper.d.ts +3 -3
- package/typings/esm5/table/table.d.ts +4 -4
- package/typings/esm5/testing/dispatch-events.d.ts +33 -0
- package/typings/esm5/testing/element-focus.d.ts +18 -0
- package/typings/esm5/testing/event-objects.d.ts +34 -0
- package/typings/esm5/testing/index.d.ts +4 -0
- package/typings/esm5/testing/index.metadata.json +1 -0
- package/typings/esm5/testing/public-api.d.ts +11 -0
- package/typings/esm5/testing/type-in-element.d.ts +41 -0
- package/typings/esm5/text-field/autosize.d.ts +1 -1
- package/typings/index.metadata.json +1 -1
- package/typings/overlay/index.metadata.json +1 -1
- package/typings/overlay/position/flexible-connected-position-strategy.d.ts +5 -2
- package/typings/overlay/public-api.d.ts +1 -1
- package/typings/platform/features/shadow-dom.d.ts +9 -0
- package/typings/platform/index.metadata.json +1 -1
- package/typings/platform/public-api.d.ts +1 -0
- package/typings/scrolling/virtual-scroll-viewport.d.ts +1 -1
- package/typings/stepper/index.metadata.json +1 -1
- package/typings/stepper/stepper.d.ts +3 -3
- package/typings/table/table.d.ts +4 -4
- package/typings/testing/dispatch-events.d.ts +33 -0
- package/typings/testing/element-focus.d.ts +18 -0
- package/typings/testing/event-objects.d.ts +34 -0
- package/typings/testing/index.d.ts +4 -0
- package/typings/testing/index.metadata.json +1 -0
- package/typings/testing/public-api.d.ts +11 -0
- package/typings/testing/type-in-element.d.ts +41 -0
- package/typings/text-field/autosize.d.ts +1 -1
|
@@ -1678,7 +1678,10 @@ OverlayRef = /** @class */ (function () {
|
|
|
1678
1678
|
*/
|
|
1679
1679
|
function (cssClass) {
|
|
1680
1680
|
// We can't do a spread here, because IE doesn't support setting multiple classes.
|
|
1681
|
-
|
|
1681
|
+
// Also trying to add an empty string to a DOMTokenList will throw.
|
|
1682
|
+
if (cssClass) {
|
|
1683
|
+
isAdd ? classList.add(cssClass) : classList.remove(cssClass);
|
|
1684
|
+
}
|
|
1682
1685
|
}));
|
|
1683
1686
|
};
|
|
1684
1687
|
/** Detaches the overlay content next time the zone stabilizes. */
|
|
@@ -3161,16 +3164,16 @@ FlexibleConnectedPositionStrategy = /** @class */ (function () {
|
|
|
3161
3164
|
isOverlayOutsideView: isElementScrolledOutsideView(overlayBounds, scrollContainerBounds),
|
|
3162
3165
|
};
|
|
3163
3166
|
};
|
|
3164
|
-
/** Subtracts the amount that an element is overflowing on an axis from
|
|
3167
|
+
/** Subtracts the amount that an element is overflowing on an axis from its length. */
|
|
3165
3168
|
/**
|
|
3166
|
-
* Subtracts the amount that an element is overflowing on an axis from
|
|
3169
|
+
* Subtracts the amount that an element is overflowing on an axis from its length.
|
|
3167
3170
|
* @private
|
|
3168
3171
|
* @param {?} length
|
|
3169
3172
|
* @param {...?} overflows
|
|
3170
3173
|
* @return {?}
|
|
3171
3174
|
*/
|
|
3172
3175
|
FlexibleConnectedPositionStrategy.prototype._subtractOverflows = /**
|
|
3173
|
-
* Subtracts the amount that an element is overflowing on an axis from
|
|
3176
|
+
* Subtracts the amount that an element is overflowing on an axis from its length.
|
|
3174
3177
|
* @private
|
|
3175
3178
|
* @param {?} length
|
|
3176
3179
|
* @param {...?} overflows
|
|
@@ -3373,14 +3376,18 @@ FlexibleConnectedPositionStrategy = /** @class */ (function () {
|
|
|
3373
3376
|
if (origin instanceof HTMLElement) {
|
|
3374
3377
|
return origin.getBoundingClientRect();
|
|
3375
3378
|
}
|
|
3379
|
+
/** @type {?} */
|
|
3380
|
+
var width = origin.width || 0;
|
|
3381
|
+
/** @type {?} */
|
|
3382
|
+
var height = origin.height || 0;
|
|
3376
3383
|
// If the origin is a point, return a client rect as if it was a 0x0 element at the point.
|
|
3377
3384
|
return {
|
|
3378
3385
|
top: origin.y,
|
|
3379
|
-
bottom: origin.y,
|
|
3386
|
+
bottom: origin.y + height,
|
|
3380
3387
|
left: origin.x,
|
|
3381
|
-
right: origin.x,
|
|
3382
|
-
height:
|
|
3383
|
-
width:
|
|
3388
|
+
right: origin.x + width,
|
|
3389
|
+
height: height,
|
|
3390
|
+
width: width
|
|
3384
3391
|
};
|
|
3385
3392
|
};
|
|
3386
3393
|
return FlexibleConnectedPositionStrategy;
|