@angular/cdk 17.3.0-rc.0 → 17.3.1
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/esm2022/a11y/live-announcer/live-announcer.mjs +4 -2
- package/esm2022/drag-drop/directives/drag-placeholder.mjs +4 -4
- package/esm2022/drag-drop/directives/drag-preview.mjs +4 -4
- package/esm2022/version.mjs +1 -1
- package/fesm2022/a11y.mjs +3 -1
- package/fesm2022/a11y.mjs.map +1 -1
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/drag-drop.mjs +6 -6
- package/fesm2022/drag-drop.mjs.map +1 -1
- package/package.json +3 -3
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
package/fesm2022/cdk.mjs
CHANGED
package/fesm2022/cdk.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cdk.mjs","sources":["../../../../../../src/cdk/version.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC 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\nimport {Version} from '@angular/core';\n\n/** Current version of the Angular Component Development Kit. */\nexport const VERSION = new Version('17.3.
|
|
1
|
+
{"version":3,"file":"cdk.mjs","sources":["../../../../../../src/cdk/version.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC 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\nimport {Version} from '@angular/core';\n\n/** Current version of the Angular Component Development Kit. */\nexport const VERSION = new Version('17.3.1');\n"],"names":[],"mappings":";;AAUA;MACa,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;;;"}
|
package/fesm2022/drag-drop.mjs
CHANGED
|
@@ -3604,13 +3604,13 @@ const CDK_DRAG_PREVIEW = new InjectionToken('CdkDragPreview');
|
|
|
3604
3604
|
class CdkDragPreview {
|
|
3605
3605
|
constructor(templateRef) {
|
|
3606
3606
|
this.templateRef = templateRef;
|
|
3607
|
-
this._drag = inject(CDK_DRAG_PARENT);
|
|
3607
|
+
this._drag = inject(CDK_DRAG_PARENT, { optional: true });
|
|
3608
3608
|
/** Whether the preview should preserve the same size as the item that is being dragged. */
|
|
3609
3609
|
this.matchSize = false;
|
|
3610
|
-
this._drag
|
|
3610
|
+
this._drag?._setPreviewTemplate(this);
|
|
3611
3611
|
}
|
|
3612
3612
|
ngOnDestroy() {
|
|
3613
|
-
this._drag
|
|
3613
|
+
this._drag?._resetPreviewTemplate(this);
|
|
3614
3614
|
}
|
|
3615
3615
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.0", ngImport: i0, type: CdkDragPreview, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3616
3616
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.2.0", type: CdkDragPreview, isStandalone: true, selector: "ng-template[cdkDragPreview]", inputs: { data: "data", matchSize: ["matchSize", "matchSize", booleanAttribute] }, providers: [{ provide: CDK_DRAG_PREVIEW, useExisting: CdkDragPreview }], ngImport: i0 }); }
|
|
@@ -3642,11 +3642,11 @@ const CDK_DRAG_PLACEHOLDER = new InjectionToken('CdkDragPlaceholder');
|
|
|
3642
3642
|
class CdkDragPlaceholder {
|
|
3643
3643
|
constructor(templateRef) {
|
|
3644
3644
|
this.templateRef = templateRef;
|
|
3645
|
-
this._drag = inject(CDK_DRAG_PARENT);
|
|
3646
|
-
this._drag
|
|
3645
|
+
this._drag = inject(CDK_DRAG_PARENT, { optional: true });
|
|
3646
|
+
this._drag?._setPlaceholderTemplate(this);
|
|
3647
3647
|
}
|
|
3648
3648
|
ngOnDestroy() {
|
|
3649
|
-
this._drag
|
|
3649
|
+
this._drag?._resetPlaceholderTemplate(this);
|
|
3650
3650
|
}
|
|
3651
3651
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.0", ngImport: i0, type: CdkDragPlaceholder, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3652
3652
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.2.0", type: CdkDragPlaceholder, isStandalone: true, selector: "ng-template[cdkDragPlaceholder]", inputs: { data: "data" }, providers: [{ provide: CDK_DRAG_PLACEHOLDER, useExisting: CdkDragPlaceholder }], ngImport: i0 }); }
|