@angular/cdk 10.1.1 → 10.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/a11y/index.metadata.json +1 -1
- package/a11y/key-manager/list-key-manager.d.ts +4 -3
- package/bundles/cdk-a11y.umd.js +440 -384
- package/bundles/cdk-a11y.umd.js.map +1 -1
- package/bundles/cdk-a11y.umd.min.js +34 -10
- package/bundles/cdk-a11y.umd.min.js.map +1 -1
- package/bundles/cdk-accordion.umd.js +40 -40
- package/bundles/cdk-accordion.umd.js.map +1 -1
- package/bundles/cdk-accordion.umd.min.js +10 -2
- package/bundles/cdk-accordion.umd.min.js.map +1 -1
- package/bundles/cdk-bidi.umd.js +25 -25
- package/bundles/cdk-bidi.umd.js.map +1 -1
- package/bundles/cdk-bidi.umd.min.js +5 -4
- package/bundles/cdk-bidi.umd.min.js.map +1 -1
- package/bundles/cdk-clipboard.umd.js +37 -36
- package/bundles/cdk-clipboard.umd.js.map +1 -1
- package/bundles/cdk-clipboard.umd.min.js +10 -2
- package/bundles/cdk-clipboard.umd.min.js.map +1 -1
- package/bundles/cdk-coercion.umd.js.map +1 -1
- package/bundles/cdk-collections.umd.js +498 -238
- package/bundles/cdk-collections.umd.js.map +1 -1
- package/bundles/cdk-collections.umd.min.js +6 -4
- package/bundles/cdk-collections.umd.min.js.map +1 -1
- package/bundles/cdk-drag-drop.umd.js +508 -448
- package/bundles/cdk-drag-drop.umd.js.map +1 -1
- package/bundles/cdk-drag-drop.umd.min.js +64 -8
- package/bundles/cdk-drag-drop.umd.min.js.map +1 -1
- package/bundles/cdk-keycodes.umd.js.map +1 -1
- package/bundles/cdk-layout.umd.js +30 -26
- package/bundles/cdk-layout.umd.js.map +1 -1
- package/bundles/cdk-layout.umd.min.js +7 -6
- package/bundles/cdk-layout.umd.min.js.map +1 -1
- package/bundles/cdk-observers.umd.js +34 -34
- 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 +492 -435
- package/bundles/cdk-overlay.umd.js.map +1 -1
- package/bundles/cdk-overlay.umd.min.js +51 -11
- package/bundles/cdk-overlay.umd.min.js.map +1 -1
- package/bundles/cdk-platform.umd.js +38 -11
- package/bundles/cdk-platform.umd.js.map +1 -1
- package/bundles/cdk-platform.umd.min.js +5 -12
- package/bundles/cdk-platform.umd.min.js.map +1 -1
- package/bundles/cdk-portal.umd.js +385 -322
- package/bundles/cdk-portal.umd.js.map +1 -1
- package/bundles/cdk-portal.umd.min.js +3 -12
- package/bundles/cdk-portal.umd.min.js.map +1 -1
- package/bundles/cdk-scrolling.umd.js +503 -490
- package/bundles/cdk-scrolling.umd.js.map +1 -1
- package/bundles/cdk-scrolling.umd.min.js +20 -34
- package/bundles/cdk-scrolling.umd.min.js.map +1 -1
- package/bundles/cdk-stepper.umd.js +135 -136
- package/bundles/cdk-stepper.umd.js.map +1 -1
- package/bundles/cdk-stepper.umd.min.js +11 -2
- package/bundles/cdk-stepper.umd.min.js.map +1 -1
- package/bundles/cdk-table.umd.js +923 -653
- package/bundles/cdk-table.umd.js.map +1 -1
- package/bundles/cdk-table.umd.min.js +7 -22
- package/bundles/cdk-table.umd.min.js.map +1 -1
- package/bundles/cdk-testing-protractor.umd.js +310 -245
- package/bundles/cdk-testing-protractor.umd.js.map +1 -1
- package/bundles/cdk-testing-protractor.umd.min.js +2 -9
- package/bundles/cdk-testing-protractor.umd.min.js.map +1 -1
- package/bundles/cdk-testing-testbed.umd.js +341 -292
- package/bundles/cdk-testing-testbed.umd.js.map +1 -1
- package/bundles/cdk-testing-testbed.umd.min.js +6 -29
- package/bundles/cdk-testing-testbed.umd.min.js.map +1 -1
- package/bundles/cdk-testing.umd.js +342 -270
- package/bundles/cdk-testing.umd.js.map +1 -1
- package/bundles/cdk-testing.umd.min.js +3 -17
- package/bundles/cdk-testing.umd.min.js.map +1 -1
- package/bundles/cdk-text-field.umd.js +53 -53
- package/bundles/cdk-text-field.umd.js.map +1 -1
- package/bundles/cdk-text-field.umd.min.js +10 -2
- package/bundles/cdk-text-field.umd.min.js.map +1 -1
- package/bundles/cdk-tree.umd.js +481 -417
- package/bundles/cdk-tree.umd.js.map +1 -1
- package/bundles/cdk-tree.umd.min.js +28 -3
- package/bundles/cdk-tree.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/collections/dispose-view-repeater-strategy.d.ts +22 -0
- package/collections/index.metadata.json +1 -1
- package/collections/public-api.d.ts +3 -0
- package/collections/recycle-view-repeater-strategy.d.ts +56 -0
- package/collections/view-repeater.d.ts +94 -0
- package/drag-drop/index.d.ts +1 -2
- package/drag-drop/index.metadata.json +1 -1
- package/drag-drop/public-api.d.ts +2 -1
- package/esm2015/a11y/aria-describer/aria-describer.js +3 -3
- package/esm2015/a11y/focus-monitor/focus-monitor.js +3 -3
- package/esm2015/a11y/focus-trap/focus-trap.js +5 -4
- package/esm2015/a11y/key-manager/list-key-manager.js +8 -6
- package/esm2015/clipboard/pending-copy.js +7 -6
- package/esm2015/collections/collection-viewer.js +1 -0
- package/esm2015/collections/dispose-view-repeater-strategy.js +48 -0
- package/esm2015/collections/public-api.js +4 -1
- package/esm2015/collections/recycle-view-repeater-strategy.js +128 -0
- package/esm2015/collections/selection-model.js +2 -2
- package/esm2015/collections/tree-adapter.js +1 -0
- package/esm2015/collections/view-repeater.js +16 -0
- package/esm2015/drag-drop/clone-node.js +9 -1
- package/esm2015/drag-drop/directives/drag-handle.js +1 -3
- package/esm2015/drag-drop/directives/drag.js +7 -5
- package/esm2015/drag-drop/directives/drop-list.js +3 -3
- package/esm2015/drag-drop/drag-events.js +1 -0
- package/esm2015/drag-drop/drag-ref.js +2 -2
- package/esm2015/drag-drop/index.js +1 -3
- package/esm2015/drag-drop/public-api.js +3 -2
- package/esm2015/layout/breakpoints-observer.js +9 -9
- package/esm2015/overlay/dispatchers/overlay-outside-click-dispatcher.js +11 -9
- package/esm2015/overlay/overlay-config.js +1 -5
- package/esm2015/overlay/overlay-directives.js +18 -2
- package/esm2015/overlay/overlay-ref.js +6 -8
- package/esm2015/overlay/overlay-reference.js +1 -0
- package/esm2015/overlay/overlay.js +4 -4
- package/esm2015/overlay/position/connected-position-strategy.js +2 -9
- package/esm2015/overlay/position/flexible-connected-position-strategy.js +19 -16
- package/esm2015/overlay/position/position-strategy.js +1 -0
- package/esm2015/overlay/scroll/close-scroll-strategy.js +2 -2
- package/esm2015/overlay/scroll/reposition-scroll-strategy.js +2 -2
- package/esm2015/platform/features/scrolling.js +29 -2
- package/esm2015/portal/dom-portal-outlet.js +7 -4
- package/esm2015/portal/portal-directives.js +3 -3
- package/esm2015/portal/portal-injector.js +3 -1
- package/esm2015/portal/portal.js +25 -19
- package/esm2015/scrolling/fixed-size-virtual-scroll.js +2 -2
- package/esm2015/scrolling/scrolling-module.js +4 -1
- package/esm2015/scrolling/virtual-for-of.js +67 -92
- package/esm2015/scrolling/virtual-scroll-repeater.js +1 -0
- package/esm2015/scrolling/virtual-scroll-viewport.js +5 -5
- package/esm2015/stepper/stepper.js +19 -17
- package/esm2015/table/cell.js +34 -14
- package/esm2015/table/coalesced-style-scheduler.js +87 -0
- package/esm2015/table/public-api.js +2 -1
- package/esm2015/table/sticky-styler.js +79 -45
- package/esm2015/table/table-module.js +4 -2
- package/esm2015/table/table.js +70 -44
- package/esm2015/table/text-column.js +9 -5
- package/esm2015/testing/element-dimensions.js +1 -0
- package/esm2015/testing/protractor/protractor-element.js +6 -3
- package/esm2015/testing/public-api.js +2 -1
- package/esm2015/testing/test-element.js +1 -1
- package/esm2015/testing/testbed/task-state-zone-interceptor.js +2 -2
- package/esm2015/testing/testbed/unit-test-element.js +26 -21
- package/esm2015/testing/text-filtering.js +23 -0
- package/esm2015/text-field/autofill.js +3 -3
- package/esm2015/tree/control/tree-control.js +1 -0
- package/esm2015/tree/nested-node.js +2 -2
- package/esm2015/tree/padding.js +34 -20
- package/esm2015/tree/tree.js +14 -27
- package/esm2015/version.js +1 -1
- package/fesm2015/a11y.js +15 -12
- package/fesm2015/a11y.js.map +1 -1
- package/fesm2015/cdk.js +1 -1
- package/fesm2015/cdk.js.map +1 -1
- package/fesm2015/clipboard.js +6 -5
- package/fesm2015/clipboard.js.map +1 -1
- package/fesm2015/collections.js +194 -3
- package/fesm2015/collections.js.map +1 -1
- package/fesm2015/drag-drop.js +32 -23
- package/fesm2015/drag-drop.js.map +1 -1
- package/fesm2015/layout.js +8 -8
- package/fesm2015/layout.js.map +1 -1
- package/fesm2015/overlay.js +55 -48
- package/fesm2015/overlay.js.map +1 -1
- package/fesm2015/platform.js +28 -1
- package/fesm2015/platform.js.map +1 -1
- package/fesm2015/portal.js +34 -23
- package/fesm2015/portal.js.map +1 -1
- package/fesm2015/scrolling.js +72 -95
- package/fesm2015/scrolling.js.map +1 -1
- package/fesm2015/stepper.js +19 -17
- package/fesm2015/stepper.js.map +1 -1
- package/fesm2015/table.js +274 -105
- package/fesm2015/table.js.map +1 -1
- package/fesm2015/testing/protractor.js +5 -2
- package/fesm2015/testing/protractor.js.map +1 -1
- package/fesm2015/testing/testbed.js +26 -21
- package/fesm2015/testing/testbed.js.map +1 -1
- package/fesm2015/testing.js +24 -1
- package/fesm2015/testing.js.map +1 -1
- package/fesm2015/text-field.js +2 -2
- package/fesm2015/text-field.js.map +1 -1
- package/fesm2015/tree.js +46 -45
- package/fesm2015/tree.js.map +1 -1
- package/layout/breakpoints-observer.d.ts +3 -3
- package/overlay/index.metadata.json +1 -1
- package/overlay/overlay-config.d.ts +0 -4
- package/overlay/overlay-directives.d.ts +1 -0
- package/overlay/position/connected-position-strategy.d.ts +1 -3
- package/package.json +1 -1
- package/platform/index.metadata.json +1 -1
- package/portal/index.metadata.json +1 -1
- package/portal/portal-injector.d.ts +2 -0
- package/schematics/index.js +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-update/data/index.js +1 -1
- package/schematics/ng-update/public-api.js +1 -1
- package/schematics/update-tool/public-api.js +1 -1
- package/schematics/utils/index.js +1 -1
- package/scrolling/index.metadata.json +1 -1
- package/scrolling/scrolling-module.d.ts +3 -0
- package/scrolling/virtual-for-of.d.ts +11 -19
- package/stepper/index.metadata.json +1 -1
- package/stepper/stepper.d.ts +7 -10
- package/table/cell.d.ts +21 -1
- package/table/coalesced-style-scheduler.d.ts +41 -0
- package/table/index.metadata.json +1 -1
- package/table/public-api.d.ts +1 -0
- package/table/sticky-styler.d.ts +7 -1
- package/table/table.d.ts +14 -8
- package/testing/protractor/protractor-element.d.ts +2 -2
- package/testing/public-api.d.ts +1 -0
- package/testing/test-element.d.ts +9 -2
- package/testing/testbed/unit-test-element.d.ts +9 -2
- package/testing/text-filtering.d.ts +13 -0
- package/tree/index.metadata.json +1 -1
- package/tree/padding.d.ts +14 -0
- package/tree/tree.d.ts +2 -4
|
@@ -247,9 +247,17 @@
|
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
+
// Counter for unique cloned radio button names.
|
|
251
|
+
var cloneUniqueId = 0;
|
|
250
252
|
/** Transfers the data of one input element to another. */
|
|
251
253
|
function transferInputData(source, clone) {
|
|
252
254
|
clone.value = source.value;
|
|
255
|
+
// Radio button `name` attributes must be unique for radio button groups
|
|
256
|
+
// otherwise original radio buttons can lose their checked state
|
|
257
|
+
// once the clone is inserted in the DOM.
|
|
258
|
+
if (clone.type === 'radio' && clone.name) {
|
|
259
|
+
clone.name = "mat-clone-" + clone.name + "-" + cloneUniqueId++;
|
|
260
|
+
}
|
|
253
261
|
}
|
|
254
262
|
/** Transfers the data of one canvas element to another. */
|
|
255
263
|
function transferCanvasData(source, clone) {
|
|
@@ -346,7 +354,7 @@
|
|
|
346
354
|
* Emits as the user is dragging the item. Use with caution,
|
|
347
355
|
* because this event will fire for every pixel that the user has dragged.
|
|
348
356
|
*/
|
|
349
|
-
this.moved = this._moveEvents
|
|
357
|
+
this.moved = this._moveEvents;
|
|
350
358
|
/** Handler for the `mousedown`/`touchstart` events. */
|
|
351
359
|
this._pointerDown = function (event) {
|
|
352
360
|
_this.beforeStarted.next();
|
|
@@ -715,17 +723,17 @@
|
|
|
715
723
|
var dropContainer = this._dropContainer;
|
|
716
724
|
if (dropContainer) {
|
|
717
725
|
var element = this._rootElement;
|
|
718
|
-
var
|
|
726
|
+
var parent = element.parentNode;
|
|
719
727
|
var preview = this._preview = this._createPreviewElement();
|
|
720
728
|
var placeholder = this._placeholder = this._createPlaceholderElement();
|
|
721
729
|
var anchor = this._anchor = this._anchor || this._document.createComment('');
|
|
722
730
|
// Insert an anchor node so that we can restore the element's position in the DOM.
|
|
723
|
-
|
|
731
|
+
parent.insertBefore(anchor, element);
|
|
724
732
|
// We move the element out at the end of the body and we make it hidden, because keeping it in
|
|
725
733
|
// place will throw off the consumer's `:last-child` selectors. We can't remove the element
|
|
726
734
|
// from the DOM completely, because iOS will stop firing all subsequent events in the chain.
|
|
727
735
|
element.style.display = 'none';
|
|
728
|
-
this._document.body.appendChild(
|
|
736
|
+
this._document.body.appendChild(parent.replaceChild(placeholder, element));
|
|
729
737
|
getPreviewInsertionPoint(this._document).appendChild(preview);
|
|
730
738
|
this.started.next({ source: this }); // Emit before notifying the container.
|
|
731
739
|
dropContainer.start();
|
|
@@ -1286,232 +1294,305 @@
|
|
|
1286
1294
|
target.style.transform = getTransform(sourceRect.left, sourceRect.top);
|
|
1287
1295
|
}
|
|
1288
1296
|
|
|
1289
|
-
/*! *****************************************************************************
|
|
1290
|
-
Copyright (c) Microsoft Corporation.
|
|
1291
|
-
|
|
1292
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
1293
|
-
purpose with or without fee is hereby granted.
|
|
1294
|
-
|
|
1295
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
1296
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
1297
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
1298
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
1299
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
1300
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1301
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
1302
|
-
***************************************************************************** */
|
|
1303
|
-
/* global Reflect, Promise */
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
function __extends(d, b) {
|
|
1313
|
-
extendStatics(d, b);
|
|
1314
|
-
function __() { this.constructor = d; }
|
|
1315
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1316
|
-
}
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
function __rest(s, e) {
|
|
1330
|
-
var t = {};
|
|
1331
|
-
for (var p in s)
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
function __decorate(decorators, target, key, desc) {
|
|
1342
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1343
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
return
|
|
1350
|
-
}
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
function
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
function
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1297
|
+
/*! *****************************************************************************
|
|
1298
|
+
Copyright (c) Microsoft Corporation.
|
|
1299
|
+
|
|
1300
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
1301
|
+
purpose with or without fee is hereby granted.
|
|
1302
|
+
|
|
1303
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
1304
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
1305
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
1306
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
1307
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
1308
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1309
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
1310
|
+
***************************************************************************** */
|
|
1311
|
+
/* global Reflect, Promise */
|
|
1312
|
+
var extendStatics = function (d, b) {
|
|
1313
|
+
extendStatics = Object.setPrototypeOf ||
|
|
1314
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
1315
|
+
function (d, b) { for (var p in b)
|
|
1316
|
+
if (b.hasOwnProperty(p))
|
|
1317
|
+
d[p] = b[p]; };
|
|
1318
|
+
return extendStatics(d, b);
|
|
1319
|
+
};
|
|
1320
|
+
function __extends(d, b) {
|
|
1321
|
+
extendStatics(d, b);
|
|
1322
|
+
function __() { this.constructor = d; }
|
|
1323
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1324
|
+
}
|
|
1325
|
+
var __assign = function () {
|
|
1326
|
+
__assign = Object.assign || function __assign(t) {
|
|
1327
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
1328
|
+
s = arguments[i];
|
|
1329
|
+
for (var p in s)
|
|
1330
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
1331
|
+
t[p] = s[p];
|
|
1332
|
+
}
|
|
1333
|
+
return t;
|
|
1334
|
+
};
|
|
1335
|
+
return __assign.apply(this, arguments);
|
|
1336
|
+
};
|
|
1337
|
+
function __rest(s, e) {
|
|
1338
|
+
var t = {};
|
|
1339
|
+
for (var p in s)
|
|
1340
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
1341
|
+
t[p] = s[p];
|
|
1342
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
1343
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
1344
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
1345
|
+
t[p[i]] = s[p[i]];
|
|
1346
|
+
}
|
|
1347
|
+
return t;
|
|
1348
|
+
}
|
|
1349
|
+
function __decorate(decorators, target, key, desc) {
|
|
1350
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1351
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1352
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
1353
|
+
else
|
|
1354
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
1355
|
+
if (d = decorators[i])
|
|
1356
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1357
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1358
|
+
}
|
|
1359
|
+
function __param(paramIndex, decorator) {
|
|
1360
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
1361
|
+
}
|
|
1362
|
+
function __metadata(metadataKey, metadataValue) {
|
|
1363
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1364
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
1365
|
+
}
|
|
1366
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
1367
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
1368
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
1369
|
+
function fulfilled(value) { try {
|
|
1370
|
+
step(generator.next(value));
|
|
1371
|
+
}
|
|
1372
|
+
catch (e) {
|
|
1373
|
+
reject(e);
|
|
1374
|
+
} }
|
|
1375
|
+
function rejected(value) { try {
|
|
1376
|
+
step(generator["throw"](value));
|
|
1377
|
+
}
|
|
1378
|
+
catch (e) {
|
|
1379
|
+
reject(e);
|
|
1380
|
+
} }
|
|
1381
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
1382
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1383
|
+
});
|
|
1384
|
+
}
|
|
1385
|
+
function __generator(thisArg, body) {
|
|
1386
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
1387
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
1388
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
1389
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
1390
|
+
function step(op) {
|
|
1391
|
+
if (f)
|
|
1392
|
+
throw new TypeError("Generator is already executing.");
|
|
1393
|
+
while (_)
|
|
1394
|
+
try {
|
|
1395
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
1396
|
+
return t;
|
|
1397
|
+
if (y = 0, t)
|
|
1398
|
+
op = [op[0] & 2, t.value];
|
|
1399
|
+
switch (op[0]) {
|
|
1400
|
+
case 0:
|
|
1401
|
+
case 1:
|
|
1402
|
+
t = op;
|
|
1403
|
+
break;
|
|
1404
|
+
case 4:
|
|
1405
|
+
_.label++;
|
|
1406
|
+
return { value: op[1], done: false };
|
|
1407
|
+
case 5:
|
|
1408
|
+
_.label++;
|
|
1409
|
+
y = op[1];
|
|
1410
|
+
op = [0];
|
|
1411
|
+
continue;
|
|
1412
|
+
case 7:
|
|
1413
|
+
op = _.ops.pop();
|
|
1414
|
+
_.trys.pop();
|
|
1415
|
+
continue;
|
|
1416
|
+
default:
|
|
1417
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
1418
|
+
_ = 0;
|
|
1419
|
+
continue;
|
|
1420
|
+
}
|
|
1421
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
1422
|
+
_.label = op[1];
|
|
1423
|
+
break;
|
|
1424
|
+
}
|
|
1425
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
1426
|
+
_.label = t[1];
|
|
1427
|
+
t = op;
|
|
1428
|
+
break;
|
|
1429
|
+
}
|
|
1430
|
+
if (t && _.label < t[2]) {
|
|
1431
|
+
_.label = t[2];
|
|
1432
|
+
_.ops.push(op);
|
|
1433
|
+
break;
|
|
1434
|
+
}
|
|
1435
|
+
if (t[2])
|
|
1436
|
+
_.ops.pop();
|
|
1437
|
+
_.trys.pop();
|
|
1438
|
+
continue;
|
|
1439
|
+
}
|
|
1440
|
+
op = body.call(thisArg, _);
|
|
1441
|
+
}
|
|
1442
|
+
catch (e) {
|
|
1443
|
+
op = [6, e];
|
|
1444
|
+
y = 0;
|
|
1445
|
+
}
|
|
1446
|
+
finally {
|
|
1447
|
+
f = t = 0;
|
|
1448
|
+
}
|
|
1449
|
+
if (op[0] & 5)
|
|
1450
|
+
throw op[1];
|
|
1451
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
1455
|
+
if (k2 === undefined)
|
|
1456
|
+
k2 = k;
|
|
1457
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
1458
|
+
}) : (function (o, m, k, k2) {
|
|
1459
|
+
if (k2 === undefined)
|
|
1460
|
+
k2 = k;
|
|
1461
|
+
o[k2] = m[k];
|
|
1462
|
+
});
|
|
1463
|
+
function __exportStar(m, exports) {
|
|
1464
|
+
for (var p in m)
|
|
1465
|
+
if (p !== "default" && !exports.hasOwnProperty(p))
|
|
1466
|
+
__createBinding(exports, m, p);
|
|
1467
|
+
}
|
|
1468
|
+
function __values(o) {
|
|
1469
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
1470
|
+
if (m)
|
|
1471
|
+
return m.call(o);
|
|
1472
|
+
if (o && typeof o.length === "number")
|
|
1473
|
+
return {
|
|
1474
|
+
next: function () {
|
|
1475
|
+
if (o && i >= o.length)
|
|
1476
|
+
o = void 0;
|
|
1477
|
+
return { value: o && o[i++], done: !o };
|
|
1478
|
+
}
|
|
1479
|
+
};
|
|
1480
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
1481
|
+
}
|
|
1482
|
+
function __read(o, n) {
|
|
1483
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
1484
|
+
if (!m)
|
|
1485
|
+
return o;
|
|
1486
|
+
var i = m.call(o), r, ar = [], e;
|
|
1487
|
+
try {
|
|
1488
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
1489
|
+
ar.push(r.value);
|
|
1490
|
+
}
|
|
1491
|
+
catch (error) {
|
|
1492
|
+
e = { error: error };
|
|
1493
|
+
}
|
|
1494
|
+
finally {
|
|
1495
|
+
try {
|
|
1496
|
+
if (r && !r.done && (m = i["return"]))
|
|
1497
|
+
m.call(i);
|
|
1498
|
+
}
|
|
1499
|
+
finally {
|
|
1500
|
+
if (e)
|
|
1501
|
+
throw e.error;
|
|
1502
|
+
}
|
|
1503
|
+
}
|
|
1504
|
+
return ar;
|
|
1505
|
+
}
|
|
1506
|
+
function __spread() {
|
|
1507
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
1508
|
+
ar = ar.concat(__read(arguments[i]));
|
|
1509
|
+
return ar;
|
|
1510
|
+
}
|
|
1511
|
+
function __spreadArrays() {
|
|
1512
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
1513
|
+
s += arguments[i].length;
|
|
1514
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
1515
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
1516
|
+
r[k] = a[j];
|
|
1517
|
+
return r;
|
|
1518
|
+
}
|
|
1519
|
+
;
|
|
1520
|
+
function __await(v) {
|
|
1521
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
1522
|
+
}
|
|
1523
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
1524
|
+
if (!Symbol.asyncIterator)
|
|
1525
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
1526
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
1527
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
1528
|
+
function verb(n) { if (g[n])
|
|
1529
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
1530
|
+
function resume(n, v) { try {
|
|
1531
|
+
step(g[n](v));
|
|
1532
|
+
}
|
|
1533
|
+
catch (e) {
|
|
1534
|
+
settle(q[0][3], e);
|
|
1535
|
+
} }
|
|
1536
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
1537
|
+
function fulfill(value) { resume("next", value); }
|
|
1538
|
+
function reject(value) { resume("throw", value); }
|
|
1539
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
1540
|
+
resume(q[0][0], q[0][1]); }
|
|
1541
|
+
}
|
|
1542
|
+
function __asyncDelegator(o) {
|
|
1543
|
+
var i, p;
|
|
1544
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
1545
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
1546
|
+
}
|
|
1547
|
+
function __asyncValues(o) {
|
|
1548
|
+
if (!Symbol.asyncIterator)
|
|
1549
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
1550
|
+
var m = o[Symbol.asyncIterator], i;
|
|
1551
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
1552
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
1553
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
1554
|
+
}
|
|
1555
|
+
function __makeTemplateObject(cooked, raw) {
|
|
1556
|
+
if (Object.defineProperty) {
|
|
1557
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
1558
|
+
}
|
|
1559
|
+
else {
|
|
1560
|
+
cooked.raw = raw;
|
|
1561
|
+
}
|
|
1562
|
+
return cooked;
|
|
1563
|
+
}
|
|
1564
|
+
;
|
|
1565
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
1566
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
1567
|
+
}) : function (o, v) {
|
|
1568
|
+
o["default"] = v;
|
|
1569
|
+
};
|
|
1570
|
+
function __importStar(mod) {
|
|
1571
|
+
if (mod && mod.__esModule)
|
|
1572
|
+
return mod;
|
|
1573
|
+
var result = {};
|
|
1574
|
+
if (mod != null)
|
|
1575
|
+
for (var k in mod)
|
|
1576
|
+
if (Object.hasOwnProperty.call(mod, k))
|
|
1577
|
+
__createBinding(result, mod, k);
|
|
1578
|
+
__setModuleDefault(result, mod);
|
|
1579
|
+
return result;
|
|
1580
|
+
}
|
|
1581
|
+
function __importDefault(mod) {
|
|
1582
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
1583
|
+
}
|
|
1584
|
+
function __classPrivateFieldGet(receiver, privateMap) {
|
|
1585
|
+
if (!privateMap.has(receiver)) {
|
|
1586
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
1587
|
+
}
|
|
1588
|
+
return privateMap.get(receiver);
|
|
1589
|
+
}
|
|
1590
|
+
function __classPrivateFieldSet(receiver, privateMap, value) {
|
|
1591
|
+
if (!privateMap.has(receiver)) {
|
|
1592
|
+
throw new TypeError("attempted to set private field on non-instance");
|
|
1593
|
+
}
|
|
1594
|
+
privateMap.set(receiver, value);
|
|
1595
|
+
return value;
|
|
1515
1596
|
}
|
|
1516
1597
|
|
|
1517
1598
|
/**
|
|
@@ -1574,13 +1655,6 @@
|
|
|
1574
1655
|
return Math.max(0, Math.min(max, value));
|
|
1575
1656
|
}
|
|
1576
1657
|
|
|
1577
|
-
/**
|
|
1578
|
-
* @license
|
|
1579
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1580
|
-
*
|
|
1581
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1582
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1583
|
-
*/
|
|
1584
1658
|
/**
|
|
1585
1659
|
* Proximity, as a ratio to width/height, at which a
|
|
1586
1660
|
* dragged item will affect the drop container.
|
|
@@ -2569,16 +2643,16 @@
|
|
|
2569
2643
|
});
|
|
2570
2644
|
this._globalListeners.clear();
|
|
2571
2645
|
};
|
|
2572
|
-
DragDropRegistry.ɵprov = i0.ɵɵdefineInjectable({ factory: function DragDropRegistry_Factory() { return new DragDropRegistry(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i1.DOCUMENT)); }, token: DragDropRegistry, providedIn: "root" });
|
|
2573
|
-
DragDropRegistry.decorators = [
|
|
2574
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
2575
|
-
];
|
|
2576
|
-
DragDropRegistry.ctorParameters = function () { return [
|
|
2577
|
-
{ type: i0.NgZone },
|
|
2578
|
-
{ type: undefined, decorators: [{ type: i0.Inject, args: [i1.DOCUMENT,] }] }
|
|
2579
|
-
]; };
|
|
2580
2646
|
return DragDropRegistry;
|
|
2581
2647
|
}());
|
|
2648
|
+
DragDropRegistry.ɵprov = i0.ɵɵdefineInjectable({ factory: function DragDropRegistry_Factory() { return new DragDropRegistry(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i1.DOCUMENT)); }, token: DragDropRegistry, providedIn: "root" });
|
|
2649
|
+
DragDropRegistry.decorators = [
|
|
2650
|
+
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
2651
|
+
];
|
|
2652
|
+
DragDropRegistry.ctorParameters = function () { return [
|
|
2653
|
+
{ type: i0.NgZone },
|
|
2654
|
+
{ type: undefined, decorators: [{ type: i0.Inject, args: [i1.DOCUMENT,] }] }
|
|
2655
|
+
]; };
|
|
2582
2656
|
|
|
2583
2657
|
/**
|
|
2584
2658
|
* @license
|
|
@@ -2618,18 +2692,18 @@
|
|
|
2618
2692
|
DragDrop.prototype.createDropList = function (element) {
|
|
2619
2693
|
return new DropListRef(element, this._dragDropRegistry, this._document, this._ngZone, this._viewportRuler);
|
|
2620
2694
|
};
|
|
2621
|
-
DragDrop.ɵprov = i0.ɵɵdefineInjectable({ factory: function DragDrop_Factory() { return new DragDrop(i0.ɵɵinject(i1.DOCUMENT), i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i2.ViewportRuler), i0.ɵɵinject(DragDropRegistry)); }, token: DragDrop, providedIn: "root" });
|
|
2622
|
-
DragDrop.decorators = [
|
|
2623
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
2624
|
-
];
|
|
2625
|
-
DragDrop.ctorParameters = function () { return [
|
|
2626
|
-
{ type: undefined, decorators: [{ type: i0.Inject, args: [i1.DOCUMENT,] }] },
|
|
2627
|
-
{ type: i0.NgZone },
|
|
2628
|
-
{ type: i2.ViewportRuler },
|
|
2629
|
-
{ type: DragDropRegistry }
|
|
2630
|
-
]; };
|
|
2631
2695
|
return DragDrop;
|
|
2632
2696
|
}());
|
|
2697
|
+
DragDrop.ɵprov = i0.ɵɵdefineInjectable({ factory: function DragDrop_Factory() { return new DragDrop(i0.ɵɵinject(i1.DOCUMENT), i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i2.ViewportRuler), i0.ɵɵinject(DragDropRegistry)); }, token: DragDrop, providedIn: "root" });
|
|
2698
|
+
DragDrop.decorators = [
|
|
2699
|
+
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
2700
|
+
];
|
|
2701
|
+
DragDrop.ctorParameters = function () { return [
|
|
2702
|
+
{ type: undefined, decorators: [{ type: i0.Inject, args: [i1.DOCUMENT,] }] },
|
|
2703
|
+
{ type: i0.NgZone },
|
|
2704
|
+
{ type: i2.ViewportRuler },
|
|
2705
|
+
{ type: DragDropRegistry }
|
|
2706
|
+
]; };
|
|
2633
2707
|
|
|
2634
2708
|
/**
|
|
2635
2709
|
* @license
|
|
@@ -2638,6 +2712,13 @@
|
|
|
2638
2712
|
* Use of this source code is governed by an MIT-style license that can be
|
|
2639
2713
|
* found in the LICENSE file at https://angular.io/license
|
|
2640
2714
|
*/
|
|
2715
|
+
/**
|
|
2716
|
+
* Injection token that can be used for a `CdkDrag` to provide itself as a parent to the
|
|
2717
|
+
* drag-specific child directive (`CdkDragHandle`, `CdkDragPreview` etc.). Used primarily
|
|
2718
|
+
* to avoid circular imports.
|
|
2719
|
+
* @docs-private
|
|
2720
|
+
*/
|
|
2721
|
+
var CDK_DRAG_PARENT = new i0.InjectionToken('CDK_DRAG_PARENT');
|
|
2641
2722
|
|
|
2642
2723
|
/**
|
|
2643
2724
|
* @license
|
|
@@ -2676,18 +2757,18 @@
|
|
|
2676
2757
|
CdkDropListGroup.prototype.ngOnDestroy = function () {
|
|
2677
2758
|
this._items.clear();
|
|
2678
2759
|
};
|
|
2679
|
-
CdkDropListGroup.decorators = [
|
|
2680
|
-
{ type: i0.Directive, args: [{
|
|
2681
|
-
selector: '[cdkDropListGroup]',
|
|
2682
|
-
exportAs: 'cdkDropListGroup',
|
|
2683
|
-
providers: [{ provide: CDK_DROP_LIST_GROUP, useExisting: CdkDropListGroup }],
|
|
2684
|
-
},] }
|
|
2685
|
-
];
|
|
2686
|
-
CdkDropListGroup.propDecorators = {
|
|
2687
|
-
disabled: [{ type: i0.Input, args: ['cdkDropListGroupDisabled',] }]
|
|
2688
|
-
};
|
|
2689
2760
|
return CdkDropListGroup;
|
|
2690
2761
|
}());
|
|
2762
|
+
CdkDropListGroup.decorators = [
|
|
2763
|
+
{ type: i0.Directive, args: [{
|
|
2764
|
+
selector: '[cdkDropListGroup]',
|
|
2765
|
+
exportAs: 'cdkDropListGroup',
|
|
2766
|
+
providers: [{ provide: CDK_DROP_LIST_GROUP, useExisting: CdkDropListGroup }],
|
|
2767
|
+
},] }
|
|
2768
|
+
];
|
|
2769
|
+
CdkDropListGroup.propDecorators = {
|
|
2770
|
+
disabled: [{ type: i0.Input, args: ['cdkDropListGroupDisabled',] }]
|
|
2771
|
+
};
|
|
2691
2772
|
|
|
2692
2773
|
/**
|
|
2693
2774
|
* @license
|
|
@@ -2852,7 +2933,7 @@
|
|
|
2852
2933
|
var siblings = coercion.coerceArray(_this.connectedTo).map(function (drop) {
|
|
2853
2934
|
if (typeof drop === 'string') {
|
|
2854
2935
|
var correspondingDropList = CdkDropList._dropLists.find(function (list) { return list.id === drop; });
|
|
2855
|
-
if (!correspondingDropList &&
|
|
2936
|
+
if (!correspondingDropList && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
2856
2937
|
console.warn("CdkDropList could not find connected drop list with id \"" + drop + "\"");
|
|
2857
2938
|
}
|
|
2858
2939
|
return correspondingDropList;
|
|
@@ -2946,67 +3027,52 @@
|
|
|
2946
3027
|
CdkDropList.prototype._syncItemsWithRef = function () {
|
|
2947
3028
|
this._dropListRef.withItems(this.getSortedItems().map(function (item) { return item._dragRef; }));
|
|
2948
3029
|
};
|
|
2949
|
-
/** Keeps track of the drop lists that are currently on the page. */
|
|
2950
|
-
CdkDropList._dropLists = [];
|
|
2951
|
-
CdkDropList.decorators = [
|
|
2952
|
-
{ type: i0.Directive, args: [{
|
|
2953
|
-
selector: '[cdkDropList], cdk-drop-list',
|
|
2954
|
-
exportAs: 'cdkDropList',
|
|
2955
|
-
providers: [
|
|
2956
|
-
// Prevent child drop lists from picking up the same group as their parent.
|
|
2957
|
-
{ provide: CDK_DROP_LIST_GROUP, useValue: ɵ0 },
|
|
2958
|
-
{ provide: CDK_DROP_LIST, useExisting: CdkDropList },
|
|
2959
|
-
],
|
|
2960
|
-
host: {
|
|
2961
|
-
'class': 'cdk-drop-list',
|
|
2962
|
-
'[id]': 'id',
|
|
2963
|
-
'[class.cdk-drop-list-disabled]': 'disabled',
|
|
2964
|
-
'[class.cdk-drop-list-dragging]': '_dropListRef.isDragging()',
|
|
2965
|
-
'[class.cdk-drop-list-receiving]': '_dropListRef.isReceiving()',
|
|
2966
|
-
}
|
|
2967
|
-
},] }
|
|
2968
|
-
];
|
|
2969
|
-
CdkDropList.ctorParameters = function () { return [
|
|
2970
|
-
{ type: i0.ElementRef },
|
|
2971
|
-
{ type: DragDrop },
|
|
2972
|
-
{ type: i0.ChangeDetectorRef },
|
|
2973
|
-
{ type: bidi.Directionality, decorators: [{ type: i0.Optional }] },
|
|
2974
|
-
{ type: CdkDropListGroup, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [CDK_DROP_LIST_GROUP,] }, { type: i0.SkipSelf }] },
|
|
2975
|
-
{ type: i2.ScrollDispatcher },
|
|
2976
|
-
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [CDK_DRAG_CONFIG,] }] }
|
|
2977
|
-
]; };
|
|
2978
|
-
CdkDropList.propDecorators = {
|
|
2979
|
-
connectedTo: [{ type: i0.Input, args: ['cdkDropListConnectedTo',] }],
|
|
2980
|
-
data: [{ type: i0.Input, args: ['cdkDropListData',] }],
|
|
2981
|
-
orientation: [{ type: i0.Input, args: ['cdkDropListOrientation',] }],
|
|
2982
|
-
id: [{ type: i0.Input }],
|
|
2983
|
-
lockAxis: [{ type: i0.Input, args: ['cdkDropListLockAxis',] }],
|
|
2984
|
-
disabled: [{ type: i0.Input, args: ['cdkDropListDisabled',] }],
|
|
2985
|
-
sortingDisabled: [{ type: i0.Input, args: ['cdkDropListSortingDisabled',] }],
|
|
2986
|
-
enterPredicate: [{ type: i0.Input, args: ['cdkDropListEnterPredicate',] }],
|
|
2987
|
-
autoScrollDisabled: [{ type: i0.Input, args: ['cdkDropListAutoScrollDisabled',] }],
|
|
2988
|
-
dropped: [{ type: i0.Output, args: ['cdkDropListDropped',] }],
|
|
2989
|
-
entered: [{ type: i0.Output, args: ['cdkDropListEntered',] }],
|
|
2990
|
-
exited: [{ type: i0.Output, args: ['cdkDropListExited',] }],
|
|
2991
|
-
sorted: [{ type: i0.Output, args: ['cdkDropListSorted',] }]
|
|
2992
|
-
};
|
|
2993
3030
|
return CdkDropList;
|
|
2994
3031
|
}());
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3032
|
+
/** Keeps track of the drop lists that are currently on the page. */
|
|
3033
|
+
CdkDropList._dropLists = [];
|
|
3034
|
+
CdkDropList.decorators = [
|
|
3035
|
+
{ type: i0.Directive, args: [{
|
|
3036
|
+
selector: '[cdkDropList], cdk-drop-list',
|
|
3037
|
+
exportAs: 'cdkDropList',
|
|
3038
|
+
providers: [
|
|
3039
|
+
// Prevent child drop lists from picking up the same group as their parent.
|
|
3040
|
+
{ provide: CDK_DROP_LIST_GROUP, useValue: ɵ0 },
|
|
3041
|
+
{ provide: CDK_DROP_LIST, useExisting: CdkDropList },
|
|
3042
|
+
],
|
|
3043
|
+
host: {
|
|
3044
|
+
'class': 'cdk-drop-list',
|
|
3045
|
+
'[id]': 'id',
|
|
3046
|
+
'[class.cdk-drop-list-disabled]': 'disabled',
|
|
3047
|
+
'[class.cdk-drop-list-dragging]': '_dropListRef.isDragging()',
|
|
3048
|
+
'[class.cdk-drop-list-receiving]': '_dropListRef.isReceiving()',
|
|
3049
|
+
}
|
|
3050
|
+
},] }
|
|
3051
|
+
];
|
|
3052
|
+
CdkDropList.ctorParameters = function () { return [
|
|
3053
|
+
{ type: i0.ElementRef },
|
|
3054
|
+
{ type: DragDrop },
|
|
3055
|
+
{ type: i0.ChangeDetectorRef },
|
|
3056
|
+
{ type: bidi.Directionality, decorators: [{ type: i0.Optional }] },
|
|
3057
|
+
{ type: CdkDropListGroup, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [CDK_DROP_LIST_GROUP,] }, { type: i0.SkipSelf }] },
|
|
3058
|
+
{ type: i2.ScrollDispatcher },
|
|
3059
|
+
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [CDK_DRAG_CONFIG,] }] }
|
|
3060
|
+
]; };
|
|
3061
|
+
CdkDropList.propDecorators = {
|
|
3062
|
+
connectedTo: [{ type: i0.Input, args: ['cdkDropListConnectedTo',] }],
|
|
3063
|
+
data: [{ type: i0.Input, args: ['cdkDropListData',] }],
|
|
3064
|
+
orientation: [{ type: i0.Input, args: ['cdkDropListOrientation',] }],
|
|
3065
|
+
id: [{ type: i0.Input }],
|
|
3066
|
+
lockAxis: [{ type: i0.Input, args: ['cdkDropListLockAxis',] }],
|
|
3067
|
+
disabled: [{ type: i0.Input, args: ['cdkDropListDisabled',] }],
|
|
3068
|
+
sortingDisabled: [{ type: i0.Input, args: ['cdkDropListSortingDisabled',] }],
|
|
3069
|
+
enterPredicate: [{ type: i0.Input, args: ['cdkDropListEnterPredicate',] }],
|
|
3070
|
+
autoScrollDisabled: [{ type: i0.Input, args: ['cdkDropListAutoScrollDisabled',] }],
|
|
3071
|
+
dropped: [{ type: i0.Output, args: ['cdkDropListDropped',] }],
|
|
3072
|
+
entered: [{ type: i0.Output, args: ['cdkDropListEntered',] }],
|
|
3073
|
+
exited: [{ type: i0.Output, args: ['cdkDropListExited',] }],
|
|
3074
|
+
sorted: [{ type: i0.Output, args: ['cdkDropListSorted',] }]
|
|
3075
|
+
};
|
|
3010
3076
|
|
|
3011
3077
|
/**
|
|
3012
3078
|
* @license
|
|
@@ -3029,7 +3095,6 @@
|
|
|
3029
3095
|
this._stateChanges = new rxjs.Subject();
|
|
3030
3096
|
this._disabled = false;
|
|
3031
3097
|
this._parentDrag = parentDrag;
|
|
3032
|
-
toggleNativeDragInteractions(element.nativeElement, false);
|
|
3033
3098
|
}
|
|
3034
3099
|
Object.defineProperty(CdkDragHandle.prototype, "disabled", {
|
|
3035
3100
|
/** Whether starting to drag through this handle is disabled. */
|
|
@@ -3044,24 +3109,24 @@
|
|
|
3044
3109
|
CdkDragHandle.prototype.ngOnDestroy = function () {
|
|
3045
3110
|
this._stateChanges.complete();
|
|
3046
3111
|
};
|
|
3047
|
-
CdkDragHandle.decorators = [
|
|
3048
|
-
{ type: i0.Directive, args: [{
|
|
3049
|
-
selector: '[cdkDragHandle]',
|
|
3050
|
-
host: {
|
|
3051
|
-
'class': 'cdk-drag-handle'
|
|
3052
|
-
},
|
|
3053
|
-
providers: [{ provide: CDK_DRAG_HANDLE, useExisting: CdkDragHandle }],
|
|
3054
|
-
},] }
|
|
3055
|
-
];
|
|
3056
|
-
CdkDragHandle.ctorParameters = function () { return [
|
|
3057
|
-
{ type: i0.ElementRef },
|
|
3058
|
-
{ type: undefined, decorators: [{ type: i0.Inject, args: [CDK_DRAG_PARENT,] }, { type: i0.Optional }, { type: i0.SkipSelf }] }
|
|
3059
|
-
]; };
|
|
3060
|
-
CdkDragHandle.propDecorators = {
|
|
3061
|
-
disabled: [{ type: i0.Input, args: ['cdkDragHandleDisabled',] }]
|
|
3062
|
-
};
|
|
3063
3112
|
return CdkDragHandle;
|
|
3064
3113
|
}());
|
|
3114
|
+
CdkDragHandle.decorators = [
|
|
3115
|
+
{ type: i0.Directive, args: [{
|
|
3116
|
+
selector: '[cdkDragHandle]',
|
|
3117
|
+
host: {
|
|
3118
|
+
'class': 'cdk-drag-handle'
|
|
3119
|
+
},
|
|
3120
|
+
providers: [{ provide: CDK_DRAG_HANDLE, useExisting: CdkDragHandle }],
|
|
3121
|
+
},] }
|
|
3122
|
+
];
|
|
3123
|
+
CdkDragHandle.ctorParameters = function () { return [
|
|
3124
|
+
{ type: i0.ElementRef },
|
|
3125
|
+
{ type: undefined, decorators: [{ type: i0.Inject, args: [CDK_DRAG_PARENT,] }, { type: i0.Optional }, { type: i0.SkipSelf }] }
|
|
3126
|
+
]; };
|
|
3127
|
+
CdkDragHandle.propDecorators = {
|
|
3128
|
+
disabled: [{ type: i0.Input, args: ['cdkDragHandleDisabled',] }]
|
|
3129
|
+
};
|
|
3065
3130
|
|
|
3066
3131
|
/**
|
|
3067
3132
|
* @license
|
|
@@ -3084,20 +3149,20 @@
|
|
|
3084
3149
|
function CdkDragPlaceholder(templateRef) {
|
|
3085
3150
|
this.templateRef = templateRef;
|
|
3086
3151
|
}
|
|
3087
|
-
CdkDragPlaceholder.decorators = [
|
|
3088
|
-
{ type: i0.Directive, args: [{
|
|
3089
|
-
selector: 'ng-template[cdkDragPlaceholder]',
|
|
3090
|
-
providers: [{ provide: CDK_DRAG_PLACEHOLDER, useExisting: CdkDragPlaceholder }],
|
|
3091
|
-
},] }
|
|
3092
|
-
];
|
|
3093
|
-
CdkDragPlaceholder.ctorParameters = function () { return [
|
|
3094
|
-
{ type: i0.TemplateRef }
|
|
3095
|
-
]; };
|
|
3096
|
-
CdkDragPlaceholder.propDecorators = {
|
|
3097
|
-
data: [{ type: i0.Input }]
|
|
3098
|
-
};
|
|
3099
3152
|
return CdkDragPlaceholder;
|
|
3100
3153
|
}());
|
|
3154
|
+
CdkDragPlaceholder.decorators = [
|
|
3155
|
+
{ type: i0.Directive, args: [{
|
|
3156
|
+
selector: 'ng-template[cdkDragPlaceholder]',
|
|
3157
|
+
providers: [{ provide: CDK_DRAG_PLACEHOLDER, useExisting: CdkDragPlaceholder }],
|
|
3158
|
+
},] }
|
|
3159
|
+
];
|
|
3160
|
+
CdkDragPlaceholder.ctorParameters = function () { return [
|
|
3161
|
+
{ type: i0.TemplateRef }
|
|
3162
|
+
]; };
|
|
3163
|
+
CdkDragPlaceholder.propDecorators = {
|
|
3164
|
+
data: [{ type: i0.Input }]
|
|
3165
|
+
};
|
|
3101
3166
|
|
|
3102
3167
|
/**
|
|
3103
3168
|
* @license
|
|
@@ -3128,29 +3193,22 @@
|
|
|
3128
3193
|
enumerable: false,
|
|
3129
3194
|
configurable: true
|
|
3130
3195
|
});
|
|
3131
|
-
CdkDragPreview.decorators = [
|
|
3132
|
-
{ type: i0.Directive, args: [{
|
|
3133
|
-
selector: 'ng-template[cdkDragPreview]',
|
|
3134
|
-
providers: [{ provide: CDK_DRAG_PREVIEW, useExisting: CdkDragPreview }],
|
|
3135
|
-
},] }
|
|
3136
|
-
];
|
|
3137
|
-
CdkDragPreview.ctorParameters = function () { return [
|
|
3138
|
-
{ type: i0.TemplateRef }
|
|
3139
|
-
]; };
|
|
3140
|
-
CdkDragPreview.propDecorators = {
|
|
3141
|
-
data: [{ type: i0.Input }],
|
|
3142
|
-
matchSize: [{ type: i0.Input }]
|
|
3143
|
-
};
|
|
3144
3196
|
return CdkDragPreview;
|
|
3145
3197
|
}());
|
|
3198
|
+
CdkDragPreview.decorators = [
|
|
3199
|
+
{ type: i0.Directive, args: [{
|
|
3200
|
+
selector: 'ng-template[cdkDragPreview]',
|
|
3201
|
+
providers: [{ provide: CDK_DRAG_PREVIEW, useExisting: CdkDragPreview }],
|
|
3202
|
+
},] }
|
|
3203
|
+
];
|
|
3204
|
+
CdkDragPreview.ctorParameters = function () { return [
|
|
3205
|
+
{ type: i0.TemplateRef }
|
|
3206
|
+
]; };
|
|
3207
|
+
CdkDragPreview.propDecorators = {
|
|
3208
|
+
data: [{ type: i0.Input }],
|
|
3209
|
+
matchSize: [{ type: i0.Input }]
|
|
3210
|
+
};
|
|
3146
3211
|
|
|
3147
|
-
/**
|
|
3148
|
-
* @license
|
|
3149
|
-
* Copyright Google LLC All Rights Reserved.
|
|
3150
|
-
*
|
|
3151
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
3152
|
-
* found in the LICENSE file at https://angular.io/license
|
|
3153
|
-
*/
|
|
3154
3212
|
/** Element that can be moved inside a CdkDropList container. */
|
|
3155
3213
|
var CdkDrag = /** @class */ (function () {
|
|
3156
3214
|
function CdkDrag(
|
|
@@ -3260,7 +3318,7 @@
|
|
|
3260
3318
|
// element to be in the proper place in the DOM. This is mostly relevant
|
|
3261
3319
|
// for draggable elements inside portals since they get stamped out in
|
|
3262
3320
|
// their original DOM position and then they get transferred to the portal.
|
|
3263
|
-
this._ngZone.onStable
|
|
3321
|
+
this._ngZone.onStable
|
|
3264
3322
|
.pipe(operators.take(1), operators.takeUntil(this._destroyed))
|
|
3265
3323
|
.subscribe(function () {
|
|
3266
3324
|
_this._updateRootElement();
|
|
@@ -3321,7 +3379,8 @@
|
|
|
3321
3379
|
var element = this.element.nativeElement;
|
|
3322
3380
|
var rootElement = this.rootElementSelector ?
|
|
3323
3381
|
getClosestMatchingAncestor(element, this.rootElementSelector) : element;
|
|
3324
|
-
if (rootElement && rootElement.nodeType !== this._document.ELEMENT_NODE
|
|
3382
|
+
if (rootElement && rootElement.nodeType !== this._document.ELEMENT_NODE &&
|
|
3383
|
+
(typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
3325
3384
|
throw Error("cdkDrag must be attached to an element node. " +
|
|
3326
3385
|
("Currently attached to \"" + rootElement.nodeName + "\"."));
|
|
3327
3386
|
}
|
|
@@ -3337,7 +3396,8 @@
|
|
|
3337
3396
|
return getClosestMatchingAncestor(this.element.nativeElement, boundary);
|
|
3338
3397
|
}
|
|
3339
3398
|
var element = coercion.coerceElement(boundary);
|
|
3340
|
-
if (
|
|
3399
|
+
if ((typeof ngDevMode === 'undefined' || ngDevMode) &&
|
|
3400
|
+
!element.contains(this.element.nativeElement)) {
|
|
3341
3401
|
throw Error('Draggable element is not inside of the node passed into cdkDragBoundary.');
|
|
3342
3402
|
}
|
|
3343
3403
|
return element;
|
|
@@ -3440,53 +3500,53 @@
|
|
|
3440
3500
|
this.rootElementSelector = rootElementSelector;
|
|
3441
3501
|
}
|
|
3442
3502
|
};
|
|
3443
|
-
CdkDrag.decorators = [
|
|
3444
|
-
{ type: i0.Directive, args: [{
|
|
3445
|
-
selector: '[cdkDrag]',
|
|
3446
|
-
exportAs: 'cdkDrag',
|
|
3447
|
-
host: {
|
|
3448
|
-
'class': 'cdk-drag',
|
|
3449
|
-
'[class.cdk-drag-disabled]': 'disabled',
|
|
3450
|
-
'[class.cdk-drag-dragging]': '_dragRef.isDragging()',
|
|
3451
|
-
},
|
|
3452
|
-
providers: [{ provide: CDK_DRAG_PARENT, useExisting: CdkDrag }]
|
|
3453
|
-
},] }
|
|
3454
|
-
];
|
|
3455
|
-
CdkDrag.ctorParameters = function () { return [
|
|
3456
|
-
{ type: i0.ElementRef },
|
|
3457
|
-
{ type: undefined, decorators: [{ type: i0.Inject, args: [CDK_DROP_LIST,] }, { type: i0.Optional }, { type: i0.SkipSelf }] },
|
|
3458
|
-
{ type: undefined, decorators: [{ type: i0.Inject, args: [i1.DOCUMENT,] }] },
|
|
3459
|
-
{ type: i0.NgZone },
|
|
3460
|
-
{ type: i0.ViewContainerRef },
|
|
3461
|
-
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [CDK_DRAG_CONFIG,] }] },
|
|
3462
|
-
{ type: bidi.Directionality, decorators: [{ type: i0.Optional }] },
|
|
3463
|
-
{ type: DragDrop },
|
|
3464
|
-
{ type: i0.ChangeDetectorRef },
|
|
3465
|
-
{ type: CdkDragHandle, decorators: [{ type: i0.Optional }, { type: i0.Self }, { type: i0.Inject, args: [CDK_DRAG_HANDLE,] }] }
|
|
3466
|
-
]; };
|
|
3467
|
-
CdkDrag.propDecorators = {
|
|
3468
|
-
_handles: [{ type: i0.ContentChildren, args: [CDK_DRAG_HANDLE, { descendants: true },] }],
|
|
3469
|
-
_previewTemplate: [{ type: i0.ContentChild, args: [CDK_DRAG_PREVIEW,] }],
|
|
3470
|
-
_placeholderTemplate: [{ type: i0.ContentChild, args: [CDK_DRAG_PLACEHOLDER,] }],
|
|
3471
|
-
data: [{ type: i0.Input, args: ['cdkDragData',] }],
|
|
3472
|
-
lockAxis: [{ type: i0.Input, args: ['cdkDragLockAxis',] }],
|
|
3473
|
-
rootElementSelector: [{ type: i0.Input, args: ['cdkDragRootElement',] }],
|
|
3474
|
-
boundaryElement: [{ type: i0.Input, args: ['cdkDragBoundary',] }],
|
|
3475
|
-
dragStartDelay: [{ type: i0.Input, args: ['cdkDragStartDelay',] }],
|
|
3476
|
-
freeDragPosition: [{ type: i0.Input, args: ['cdkDragFreeDragPosition',] }],
|
|
3477
|
-
disabled: [{ type: i0.Input, args: ['cdkDragDisabled',] }],
|
|
3478
|
-
constrainPosition: [{ type: i0.Input, args: ['cdkDragConstrainPosition',] }],
|
|
3479
|
-
previewClass: [{ type: i0.Input, args: ['cdkDragPreviewClass',] }],
|
|
3480
|
-
started: [{ type: i0.Output, args: ['cdkDragStarted',] }],
|
|
3481
|
-
released: [{ type: i0.Output, args: ['cdkDragReleased',] }],
|
|
3482
|
-
ended: [{ type: i0.Output, args: ['cdkDragEnded',] }],
|
|
3483
|
-
entered: [{ type: i0.Output, args: ['cdkDragEntered',] }],
|
|
3484
|
-
exited: [{ type: i0.Output, args: ['cdkDragExited',] }],
|
|
3485
|
-
dropped: [{ type: i0.Output, args: ['cdkDragDropped',] }],
|
|
3486
|
-
moved: [{ type: i0.Output, args: ['cdkDragMoved',] }]
|
|
3487
|
-
};
|
|
3488
3503
|
return CdkDrag;
|
|
3489
3504
|
}());
|
|
3505
|
+
CdkDrag.decorators = [
|
|
3506
|
+
{ type: i0.Directive, args: [{
|
|
3507
|
+
selector: '[cdkDrag]',
|
|
3508
|
+
exportAs: 'cdkDrag',
|
|
3509
|
+
host: {
|
|
3510
|
+
'class': 'cdk-drag',
|
|
3511
|
+
'[class.cdk-drag-disabled]': 'disabled',
|
|
3512
|
+
'[class.cdk-drag-dragging]': '_dragRef.isDragging()',
|
|
3513
|
+
},
|
|
3514
|
+
providers: [{ provide: CDK_DRAG_PARENT, useExisting: CdkDrag }]
|
|
3515
|
+
},] }
|
|
3516
|
+
];
|
|
3517
|
+
CdkDrag.ctorParameters = function () { return [
|
|
3518
|
+
{ type: i0.ElementRef },
|
|
3519
|
+
{ type: undefined, decorators: [{ type: i0.Inject, args: [CDK_DROP_LIST,] }, { type: i0.Optional }, { type: i0.SkipSelf }] },
|
|
3520
|
+
{ type: undefined, decorators: [{ type: i0.Inject, args: [i1.DOCUMENT,] }] },
|
|
3521
|
+
{ type: i0.NgZone },
|
|
3522
|
+
{ type: i0.ViewContainerRef },
|
|
3523
|
+
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [CDK_DRAG_CONFIG,] }] },
|
|
3524
|
+
{ type: bidi.Directionality, decorators: [{ type: i0.Optional }] },
|
|
3525
|
+
{ type: DragDrop },
|
|
3526
|
+
{ type: i0.ChangeDetectorRef },
|
|
3527
|
+
{ type: CdkDragHandle, decorators: [{ type: i0.Optional }, { type: i0.Self }, { type: i0.Inject, args: [CDK_DRAG_HANDLE,] }] }
|
|
3528
|
+
]; };
|
|
3529
|
+
CdkDrag.propDecorators = {
|
|
3530
|
+
_handles: [{ type: i0.ContentChildren, args: [CDK_DRAG_HANDLE, { descendants: true },] }],
|
|
3531
|
+
_previewTemplate: [{ type: i0.ContentChild, args: [CDK_DRAG_PREVIEW,] }],
|
|
3532
|
+
_placeholderTemplate: [{ type: i0.ContentChild, args: [CDK_DRAG_PLACEHOLDER,] }],
|
|
3533
|
+
data: [{ type: i0.Input, args: ['cdkDragData',] }],
|
|
3534
|
+
lockAxis: [{ type: i0.Input, args: ['cdkDragLockAxis',] }],
|
|
3535
|
+
rootElementSelector: [{ type: i0.Input, args: ['cdkDragRootElement',] }],
|
|
3536
|
+
boundaryElement: [{ type: i0.Input, args: ['cdkDragBoundary',] }],
|
|
3537
|
+
dragStartDelay: [{ type: i0.Input, args: ['cdkDragStartDelay',] }],
|
|
3538
|
+
freeDragPosition: [{ type: i0.Input, args: ['cdkDragFreeDragPosition',] }],
|
|
3539
|
+
disabled: [{ type: i0.Input, args: ['cdkDragDisabled',] }],
|
|
3540
|
+
constrainPosition: [{ type: i0.Input, args: ['cdkDragConstrainPosition',] }],
|
|
3541
|
+
previewClass: [{ type: i0.Input, args: ['cdkDragPreviewClass',] }],
|
|
3542
|
+
started: [{ type: i0.Output, args: ['cdkDragStarted',] }],
|
|
3543
|
+
released: [{ type: i0.Output, args: ['cdkDragReleased',] }],
|
|
3544
|
+
ended: [{ type: i0.Output, args: ['cdkDragEnded',] }],
|
|
3545
|
+
entered: [{ type: i0.Output, args: ['cdkDragEntered',] }],
|
|
3546
|
+
exited: [{ type: i0.Output, args: ['cdkDragExited',] }],
|
|
3547
|
+
dropped: [{ type: i0.Output, args: ['cdkDragDropped',] }],
|
|
3548
|
+
moved: [{ type: i0.Output, args: ['cdkDragMoved',] }]
|
|
3549
|
+
};
|
|
3490
3550
|
/** Gets the closest ancestor of an element that matches a selector. */
|
|
3491
3551
|
function getClosestMatchingAncestor(element, selector) {
|
|
3492
3552
|
var currentElement = element.parentElement;
|
|
@@ -3511,32 +3571,32 @@
|
|
|
3511
3571
|
var DragDropModule = /** @class */ (function () {
|
|
3512
3572
|
function DragDropModule() {
|
|
3513
3573
|
}
|
|
3514
|
-
DragDropModule.decorators = [
|
|
3515
|
-
{ type: i0.NgModule, args: [{
|
|
3516
|
-
declarations: [
|
|
3517
|
-
CdkDropList,
|
|
3518
|
-
CdkDropListGroup,
|
|
3519
|
-
CdkDrag,
|
|
3520
|
-
CdkDragHandle,
|
|
3521
|
-
CdkDragPreview,
|
|
3522
|
-
CdkDragPlaceholder,
|
|
3523
|
-
],
|
|
3524
|
-
exports: [
|
|
3525
|
-
i2.CdkScrollableModule,
|
|
3526
|
-
CdkDropList,
|
|
3527
|
-
CdkDropListGroup,
|
|
3528
|
-
CdkDrag,
|
|
3529
|
-
CdkDragHandle,
|
|
3530
|
-
CdkDragPreview,
|
|
3531
|
-
CdkDragPlaceholder,
|
|
3532
|
-
],
|
|
3533
|
-
providers: [
|
|
3534
|
-
DragDrop,
|
|
3535
|
-
]
|
|
3536
|
-
},] }
|
|
3537
|
-
];
|
|
3538
3574
|
return DragDropModule;
|
|
3539
3575
|
}());
|
|
3576
|
+
DragDropModule.decorators = [
|
|
3577
|
+
{ type: i0.NgModule, args: [{
|
|
3578
|
+
declarations: [
|
|
3579
|
+
CdkDropList,
|
|
3580
|
+
CdkDropListGroup,
|
|
3581
|
+
CdkDrag,
|
|
3582
|
+
CdkDragHandle,
|
|
3583
|
+
CdkDragPreview,
|
|
3584
|
+
CdkDragPlaceholder,
|
|
3585
|
+
],
|
|
3586
|
+
exports: [
|
|
3587
|
+
i2.CdkScrollableModule,
|
|
3588
|
+
CdkDropList,
|
|
3589
|
+
CdkDropListGroup,
|
|
3590
|
+
CdkDrag,
|
|
3591
|
+
CdkDragHandle,
|
|
3592
|
+
CdkDragPreview,
|
|
3593
|
+
CdkDragPlaceholder,
|
|
3594
|
+
],
|
|
3595
|
+
providers: [
|
|
3596
|
+
DragDrop,
|
|
3597
|
+
]
|
|
3598
|
+
},] }
|
|
3599
|
+
];
|
|
3540
3600
|
|
|
3541
3601
|
/**
|
|
3542
3602
|
* @license
|
|
@@ -3552,8 +3612,10 @@
|
|
|
3552
3612
|
|
|
3553
3613
|
exports.CDK_DRAG_CONFIG = CDK_DRAG_CONFIG;
|
|
3554
3614
|
exports.CDK_DRAG_HANDLE = CDK_DRAG_HANDLE;
|
|
3615
|
+
exports.CDK_DRAG_PARENT = CDK_DRAG_PARENT;
|
|
3555
3616
|
exports.CDK_DRAG_PLACEHOLDER = CDK_DRAG_PLACEHOLDER;
|
|
3556
3617
|
exports.CDK_DRAG_PREVIEW = CDK_DRAG_PREVIEW;
|
|
3618
|
+
exports.CDK_DROP_LIST = CDK_DROP_LIST;
|
|
3557
3619
|
exports.CDK_DROP_LIST_GROUP = CDK_DROP_LIST_GROUP;
|
|
3558
3620
|
exports.CdkDrag = CdkDrag;
|
|
3559
3621
|
exports.CdkDragHandle = CdkDragHandle;
|
|
@@ -3569,8 +3631,6 @@
|
|
|
3569
3631
|
exports.copyArrayItem = copyArrayItem;
|
|
3570
3632
|
exports.moveItemInArray = moveItemInArray;
|
|
3571
3633
|
exports.transferArrayItem = transferArrayItem;
|
|
3572
|
-
exports.ɵangular_material_src_cdk_drag_drop_drag_drop_b = CDK_DROP_LIST;
|
|
3573
|
-
exports.ɵangular_material_src_cdk_drag_drop_drag_drop_c = CDK_DRAG_PARENT;
|
|
3574
3634
|
|
|
3575
3635
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3576
3636
|
|