@angular/cdk-experimental 17.1.0-next.0 → 17.1.0-next.2
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/column-resize/index.d.ts +6 -6
- package/combobox/index.d.ts +6 -6
- package/esm2022/column-resize/column-resize-directives/column-resize-flex.mjs +5 -4
- package/esm2022/column-resize/column-resize-directives/column-resize.mjs +5 -4
- package/esm2022/column-resize/column-resize-directives/default-enabled-column-resize-flex.mjs +5 -4
- package/esm2022/column-resize/column-resize-directives/default-enabled-column-resize.mjs +5 -4
- package/esm2022/column-resize/column-resize-module.mjs +11 -11
- package/esm2022/column-resize/column-resize-notifier.mjs +7 -7
- package/esm2022/column-resize/column-resize.mjs +4 -4
- package/esm2022/column-resize/column-size-store.mjs +4 -4
- package/esm2022/column-resize/event-dispatcher.mjs +4 -4
- package/esm2022/column-resize/overlay-handle.mjs +4 -4
- package/esm2022/column-resize/resizable.mjs +4 -4
- package/esm2022/column-resize/resize-strategy.mjs +10 -10
- package/esm2022/combobox/combobox-module.mjs +6 -7
- package/esm2022/combobox/combobox-popup.mjs +5 -4
- package/esm2022/combobox/combobox.mjs +5 -4
- package/esm2022/popover-edit/edit-event-dispatcher.mjs +4 -4
- package/esm2022/popover-edit/edit-ref.mjs +4 -4
- package/esm2022/popover-edit/edit-services.mjs +7 -10
- package/esm2022/popover-edit/focus-dispatcher.mjs +4 -4
- package/esm2022/popover-edit/focus-escape-notifier.mjs +4 -4
- package/esm2022/popover-edit/form-value-container.mjs +1 -1
- package/esm2022/popover-edit/lens-directives.mjs +13 -10
- package/esm2022/popover-edit/polyfill.mjs +1 -1
- package/esm2022/popover-edit/popover-edit-module.mjs +7 -20
- package/esm2022/popover-edit/public-api.mjs +1 -2
- package/esm2022/popover-edit/table-directives.mjs +55 -18
- package/esm2022/scrolling/auto-size-virtual-scroll.mjs +5 -4
- package/esm2022/scrolling/scrolling-module.mjs +6 -6
- package/esm2022/selection/row-selection.mjs +5 -4
- package/esm2022/selection/select-all.mjs +5 -4
- package/esm2022/selection/selection-column.mjs +19 -10
- package/esm2022/selection/selection-module.mjs +13 -9
- package/esm2022/selection/selection-set.mjs +1 -1
- package/esm2022/selection/selection-toggle.mjs +5 -4
- package/esm2022/selection/selection.mjs +5 -4
- package/esm2022/table-scroll-container/table-scroll-container-module.mjs +6 -6
- package/esm2022/table-scroll-container/table-scroll-container.mjs +5 -4
- package/esm2022/version.mjs +1 -1
- package/fesm2022/cdk-experimental.mjs +1 -1
- package/fesm2022/cdk-experimental.mjs.map +1 -1
- package/fesm2022/column-resize.mjs +56 -52
- package/fesm2022/column-resize.mjs.map +1 -1
- package/fesm2022/combobox.mjs +13 -12
- package/fesm2022/combobox.mjs.map +1 -1
- package/fesm2022/popover-edit.mjs +92 -128
- package/fesm2022/popover-edit.mjs.map +1 -1
- package/fesm2022/scrolling.mjs +9 -8
- package/fesm2022/scrolling.mjs.map +1 -1
- package/fesm2022/selection.mjs +42 -26
- package/fesm2022/selection.mjs.map +1 -1
- package/fesm2022/table-scroll-container.mjs +9 -8
- package/fesm2022/table-scroll-container.mjs.map +1 -1
- package/package.json +2 -2
- package/popover-edit/index.d.ts +14 -50
- package/scrolling/index.d.ts +2 -2
- package/selection/index.d.ts +13 -13
- package/table-scroll-container/index.d.ts +2 -2
- package/esm2022/popover-edit/popover-edit-position-strategy-factory.mjs +0 -76
|
@@ -5,12 +5,12 @@ import { distinctUntilChanged, startWith, shareReplay, filter, map, auditTime, a
|
|
|
5
5
|
import * as i1 from '@angular/forms';
|
|
6
6
|
import * as i1$1 from '@angular/cdk/bidi';
|
|
7
7
|
import { RIGHT_ARROW, LEFT_ARROW, DOWN_ARROW, UP_ARROW, hasModifierKey } from '@angular/cdk/keycodes';
|
|
8
|
-
import * as
|
|
8
|
+
import * as i5 from '@angular/cdk/overlay';
|
|
9
9
|
import { OverlayModule } from '@angular/cdk/overlay';
|
|
10
10
|
import { TemplatePortal } from '@angular/cdk/portal';
|
|
11
11
|
import * as i4 from '@angular/cdk/a11y';
|
|
12
12
|
import { FocusTrap } from '@angular/cdk/a11y';
|
|
13
|
-
import * as
|
|
13
|
+
import * as i6 from '@angular/cdk/scrolling';
|
|
14
14
|
import { DOCUMENT } from '@angular/common';
|
|
15
15
|
|
|
16
16
|
/** Selector for finding table cells. */
|
|
@@ -212,10 +212,10 @@ class EditEventDispatcher {
|
|
|
212
212
|
_mapAllRowsToSingleRow(mapper) {
|
|
213
213
|
return this.allRows.pipe(map(mapper), this._startWithNullDistinct);
|
|
214
214
|
}
|
|
215
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
|
216
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.
|
|
215
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: EditEventDispatcher, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
216
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: EditEventDispatcher }); }
|
|
217
217
|
}
|
|
218
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
|
218
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: EditEventDispatcher, decorators: [{
|
|
219
219
|
type: Injectable
|
|
220
220
|
}], ctorParameters: () => [{ type: i0.NgZone }] });
|
|
221
221
|
function computeHoverContentState([firstRow, lastRow, activeRow, hoverRow,]) {
|
|
@@ -312,10 +312,10 @@ class EditRef {
|
|
|
312
312
|
reset(value) {
|
|
313
313
|
this._form.reset(value || this._revertFormValue);
|
|
314
314
|
}
|
|
315
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
|
316
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.
|
|
315
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: EditRef, deps: [{ token: i1.ControlContainer, self: true }, { token: EditEventDispatcher }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
316
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: EditRef }); }
|
|
317
317
|
}
|
|
318
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
|
318
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: EditRef, decorators: [{
|
|
319
319
|
type: Injectable
|
|
320
320
|
}], ctorParameters: () => [{ type: i1.ControlContainer, decorators: [{
|
|
321
321
|
type: Self
|
|
@@ -381,10 +381,10 @@ class FocusDispatcher {
|
|
|
381
381
|
}
|
|
382
382
|
event.preventDefault();
|
|
383
383
|
}
|
|
384
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
|
385
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.
|
|
384
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: FocusDispatcher, deps: [{ token: i1$1.Directionality }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
385
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: FocusDispatcher, providedIn: 'root' }); }
|
|
386
386
|
}
|
|
387
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
|
387
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: FocusDispatcher, decorators: [{
|
|
388
388
|
type: Injectable,
|
|
389
389
|
args: [{ providedIn: 'root' }]
|
|
390
390
|
}], ctorParameters: () => [{ type: i1$1.Directionality }] });
|
|
@@ -502,10 +502,10 @@ class CdkEditControl {
|
|
|
502
502
|
_triggerFormSubmit() {
|
|
503
503
|
this.elementRef.nativeElement.dispatchEvent(new Event('submit'));
|
|
504
504
|
}
|
|
505
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
|
506
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.
|
|
505
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: CdkEditControl, deps: [{ token: i0.ElementRef }, { token: EditRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
506
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.0-next.2", type: CdkEditControl, isStandalone: true, selector: "form[cdkEditControl]", inputs: { clickOutBehavior: ["cdkEditControlClickOutBehavior", "clickOutBehavior"], preservedFormValue: ["cdkEditControlPreservedFormValue", "preservedFormValue"], ignoreSubmitUnlessValid: ["cdkEditControlIgnoreSubmitUnlessValid", "ignoreSubmitUnlessValid"] }, outputs: { preservedFormValueChange: "cdkEditControlPreservedFormValueChange" }, host: { listeners: { "ngSubmit": "handleFormSubmit()", "document:click": "handlePossibleClickOut($event)", "keydown": "_handleKeydown($event)" } }, providers: [EditRef], ngImport: i0 }); }
|
|
507
507
|
}
|
|
508
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
|
508
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: CdkEditControl, decorators: [{
|
|
509
509
|
type: Directive,
|
|
510
510
|
args: [{
|
|
511
511
|
selector: 'form[cdkEditControl]',
|
|
@@ -521,6 +521,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0", ngImpor
|
|
|
521
521
|
'(document:click)': 'handlePossibleClickOut($event)',
|
|
522
522
|
'(keydown)': '_handleKeydown($event)',
|
|
523
523
|
},
|
|
524
|
+
standalone: true,
|
|
524
525
|
}]
|
|
525
526
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: EditRef }] });
|
|
526
527
|
/** Reverts the form to its initial or previously submitted state on click. */
|
|
@@ -533,10 +534,10 @@ class CdkEditRevert {
|
|
|
533
534
|
revertEdit() {
|
|
534
535
|
this.editRef.reset();
|
|
535
536
|
}
|
|
536
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
|
537
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.
|
|
537
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: CdkEditRevert, deps: [{ token: EditRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
538
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.0-next.2", type: CdkEditRevert, isStandalone: true, selector: "button[cdkEditRevert]", inputs: { type: "type" }, host: { attributes: { "type": "button" }, listeners: { "click": "revertEdit()" } }, ngImport: i0 }); }
|
|
538
539
|
}
|
|
539
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
|
540
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: CdkEditRevert, decorators: [{
|
|
540
541
|
type: Directive,
|
|
541
542
|
args: [{
|
|
542
543
|
selector: 'button[cdkEditRevert]',
|
|
@@ -544,6 +545,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0", ngImpor
|
|
|
544
545
|
'type': 'button',
|
|
545
546
|
'(click)': 'revertEdit()',
|
|
546
547
|
},
|
|
548
|
+
standalone: true,
|
|
547
549
|
}]
|
|
548
550
|
}], ctorParameters: () => [{ type: EditRef }], propDecorators: { type: [{
|
|
549
551
|
type: Input
|
|
@@ -567,10 +569,10 @@ class CdkEditClose {
|
|
|
567
569
|
// the same event sequence if focus was moved quickly.
|
|
568
570
|
this.editRef.close();
|
|
569
571
|
}
|
|
570
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
|
571
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.
|
|
572
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: CdkEditClose, deps: [{ token: i0.ElementRef }, { token: EditRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
573
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.0-next.2", type: CdkEditClose, isStandalone: true, selector: "[cdkEditClose]", host: { listeners: { "click": "closeEdit()", "keydown.enter": "closeEdit()", "keydown.space": "closeEdit()" } }, ngImport: i0 }); }
|
|
572
574
|
}
|
|
573
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
|
575
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: CdkEditClose, decorators: [{
|
|
574
576
|
type: Directive,
|
|
575
577
|
args: [{
|
|
576
578
|
selector: '[cdkEditClose]',
|
|
@@ -579,72 +581,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0", ngImpor
|
|
|
579
581
|
'(keydown.enter)': 'closeEdit()',
|
|
580
582
|
'(keydown.space)': 'closeEdit()',
|
|
581
583
|
},
|
|
584
|
+
standalone: true,
|
|
582
585
|
}]
|
|
583
586
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: EditRef }] });
|
|
584
587
|
|
|
585
|
-
/**
|
|
586
|
-
* Overridable factory responsible for configuring how cdkPopoverEdit popovers are positioned
|
|
587
|
-
* and sized.
|
|
588
|
-
*/
|
|
589
|
-
class PopoverEditPositionStrategyFactory {
|
|
590
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0", ngImport: i0, type: PopoverEditPositionStrategyFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
591
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0", ngImport: i0, type: PopoverEditPositionStrategyFactory }); }
|
|
592
|
-
}
|
|
593
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0", ngImport: i0, type: PopoverEditPositionStrategyFactory, decorators: [{
|
|
594
|
-
type: Injectable
|
|
595
|
-
}] });
|
|
596
|
-
/**
|
|
597
|
-
* Default implementation of PopoverEditPositionStrategyFactory.
|
|
598
|
-
* Uses a FlexibleConnectedPositionStrategy anchored to the start + top of the cell.
|
|
599
|
-
* Note: This will change to CoverPositionStrategy once it implemented.
|
|
600
|
-
*/
|
|
601
|
-
class DefaultPopoverEditPositionStrategyFactory extends PopoverEditPositionStrategyFactory {
|
|
602
|
-
constructor(direction, overlay) {
|
|
603
|
-
super();
|
|
604
|
-
this.direction = direction;
|
|
605
|
-
this.overlay = overlay;
|
|
606
|
-
}
|
|
607
|
-
positionStrategyForCells(cells) {
|
|
608
|
-
return this.overlay
|
|
609
|
-
.position()
|
|
610
|
-
.flexibleConnectedTo(cells[0])
|
|
611
|
-
.withGrowAfterOpen()
|
|
612
|
-
.withPush()
|
|
613
|
-
.withViewportMargin(16)
|
|
614
|
-
.withPositions([
|
|
615
|
-
{
|
|
616
|
-
originX: 'start',
|
|
617
|
-
originY: 'top',
|
|
618
|
-
overlayX: 'start',
|
|
619
|
-
overlayY: 'top',
|
|
620
|
-
},
|
|
621
|
-
]);
|
|
622
|
-
}
|
|
623
|
-
sizeConfigForCells(cells) {
|
|
624
|
-
if (cells.length === 0) {
|
|
625
|
-
return {};
|
|
626
|
-
}
|
|
627
|
-
if (cells.length === 1) {
|
|
628
|
-
return { width: cells[0].getBoundingClientRect().width };
|
|
629
|
-
}
|
|
630
|
-
let firstCell, lastCell;
|
|
631
|
-
if (this.direction.value === 'ltr') {
|
|
632
|
-
firstCell = cells[0];
|
|
633
|
-
lastCell = cells[cells.length - 1];
|
|
634
|
-
}
|
|
635
|
-
else {
|
|
636
|
-
lastCell = cells[0];
|
|
637
|
-
firstCell = cells[cells.length - 1];
|
|
638
|
-
}
|
|
639
|
-
return { width: lastCell.getBoundingClientRect().right - firstCell.getBoundingClientRect().left };
|
|
640
|
-
}
|
|
641
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0", ngImport: i0, type: DefaultPopoverEditPositionStrategyFactory, deps: [{ token: i1$1.Directionality }, { token: i2.Overlay }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
642
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0", ngImport: i0, type: DefaultPopoverEditPositionStrategyFactory }); }
|
|
643
|
-
}
|
|
644
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0", ngImport: i0, type: DefaultPopoverEditPositionStrategyFactory, decorators: [{
|
|
645
|
-
type: Injectable
|
|
646
|
-
}], ctorParameters: () => [{ type: i1$1.Directionality }, { type: i2.Overlay }] });
|
|
647
|
-
|
|
648
588
|
/**
|
|
649
589
|
* Optimization
|
|
650
590
|
* Collects multiple Injectables into a singleton shared across the table. By reducing the
|
|
@@ -652,23 +592,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0", ngImpor
|
|
|
652
592
|
* and 56 bytes of memory per instance.
|
|
653
593
|
*/
|
|
654
594
|
class EditServices {
|
|
655
|
-
constructor(directionality, editEventDispatcher, focusDispatcher, focusTrapFactory, ngZone, overlay,
|
|
595
|
+
constructor(directionality, editEventDispatcher, focusDispatcher, focusTrapFactory, ngZone, overlay, scrollDispatcher, viewportRuler) {
|
|
656
596
|
this.directionality = directionality;
|
|
657
597
|
this.editEventDispatcher = editEventDispatcher;
|
|
658
598
|
this.focusDispatcher = focusDispatcher;
|
|
659
599
|
this.focusTrapFactory = focusTrapFactory;
|
|
660
600
|
this.ngZone = ngZone;
|
|
661
601
|
this.overlay = overlay;
|
|
662
|
-
this.positionFactory = positionFactory;
|
|
663
602
|
this.scrollDispatcher = scrollDispatcher;
|
|
664
603
|
this.viewportRuler = viewportRuler;
|
|
665
604
|
}
|
|
666
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
|
667
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.
|
|
605
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: EditServices, deps: [{ token: i1$1.Directionality }, { token: EditEventDispatcher }, { token: FocusDispatcher }, { token: i4.FocusTrapFactory }, { token: i0.NgZone }, { token: i5.Overlay }, { token: i6.ScrollDispatcher }, { token: i6.ViewportRuler }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
606
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: EditServices }); }
|
|
668
607
|
}
|
|
669
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
|
608
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: EditServices, decorators: [{
|
|
670
609
|
type: Injectable
|
|
671
|
-
}], ctorParameters: () => [{ type: i1$1.Directionality }, { type: EditEventDispatcher }, { type: FocusDispatcher }, { type: i4.FocusTrapFactory }, { type: i0.NgZone }, { type:
|
|
610
|
+
}], ctorParameters: () => [{ type: i1$1.Directionality }, { type: EditEventDispatcher }, { type: FocusDispatcher }, { type: i4.FocusTrapFactory }, { type: i0.NgZone }, { type: i5.Overlay }, { type: i6.ScrollDispatcher }, { type: i6.ViewportRuler }] });
|
|
672
611
|
|
|
673
612
|
/** Value indicating whether focus left the target area before or after the enclosed elements. */
|
|
674
613
|
var FocusEscapeNotifierDirection;
|
|
@@ -715,10 +654,10 @@ class FocusEscapeNotifierFactory {
|
|
|
715
654
|
create(element) {
|
|
716
655
|
return new FocusEscapeNotifier(element, this._checker, this._ngZone, this._document);
|
|
717
656
|
}
|
|
718
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
|
719
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.
|
|
657
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: FocusEscapeNotifierFactory, deps: [{ token: i4.InteractivityChecker }, { token: i0.NgZone }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
658
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: FocusEscapeNotifierFactory, providedIn: 'root' }); }
|
|
720
659
|
}
|
|
721
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
|
660
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: FocusEscapeNotifierFactory, decorators: [{
|
|
722
661
|
type: Injectable,
|
|
723
662
|
args: [{ providedIn: 'root' }]
|
|
724
663
|
}], ctorParameters: () => [{ type: i4.InteractivityChecker }, { type: i0.NgZone }, { type: undefined, decorators: [{
|
|
@@ -787,14 +726,15 @@ class CdkEditable {
|
|
|
787
726
|
.subscribe(this.focusDispatcher.keyObserver);
|
|
788
727
|
});
|
|
789
728
|
}
|
|
790
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
|
791
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.
|
|
729
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: CdkEditable, deps: [{ token: i0.ElementRef }, { token: EditEventDispatcher }, { token: FocusDispatcher }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
730
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.0-next.2", type: CdkEditable, isStandalone: true, selector: "table[editable], cdk-table[editable], mat-table[editable]", providers: [EditEventDispatcher, EditServices], ngImport: i0 }); }
|
|
792
731
|
}
|
|
793
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
|
732
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: CdkEditable, decorators: [{
|
|
794
733
|
type: Directive,
|
|
795
734
|
args: [{
|
|
796
735
|
selector: 'table[editable], cdk-table[editable], mat-table[editable]',
|
|
797
736
|
providers: [EditEventDispatcher, EditServices],
|
|
737
|
+
standalone: true,
|
|
798
738
|
}]
|
|
799
739
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: EditEventDispatcher }, { type: FocusDispatcher }, { type: i0.NgZone }] });
|
|
800
740
|
const POPOVER_EDIT_HOST_BINDINGS = {
|
|
@@ -935,25 +875,58 @@ class CdkPopoverEdit {
|
|
|
935
875
|
return rowCells.slice(ownIndex - (this._colspan.before || 0), ownIndex + (this._colspan.after || 0) + 1);
|
|
936
876
|
}
|
|
937
877
|
_getPositionStrategy() {
|
|
938
|
-
|
|
878
|
+
const cells = this._getOverlayCells();
|
|
879
|
+
return this.services.overlay
|
|
880
|
+
.position()
|
|
881
|
+
.flexibleConnectedTo(cells[0])
|
|
882
|
+
.withGrowAfterOpen()
|
|
883
|
+
.withPush()
|
|
884
|
+
.withViewportMargin(16)
|
|
885
|
+
.withPositions([
|
|
886
|
+
{
|
|
887
|
+
originX: 'start',
|
|
888
|
+
originY: 'top',
|
|
889
|
+
overlayX: 'start',
|
|
890
|
+
overlayY: 'top',
|
|
891
|
+
},
|
|
892
|
+
]);
|
|
939
893
|
}
|
|
940
894
|
_updateOverlaySize() {
|
|
941
|
-
this.overlayRef.updateSize(this.
|
|
895
|
+
this.overlayRef.updateSize(this._sizeConfigForCells(this._getOverlayCells()));
|
|
942
896
|
}
|
|
943
897
|
_maybeReturnFocusToCell() {
|
|
944
898
|
if (closest(document.activeElement, EDIT_PANE_SELECTOR) === this.overlayRef.overlayElement) {
|
|
945
899
|
this.elementRef.nativeElement.focus();
|
|
946
900
|
}
|
|
947
901
|
}
|
|
948
|
-
|
|
949
|
-
|
|
902
|
+
_sizeConfigForCells(cells) {
|
|
903
|
+
if (cells.length === 0) {
|
|
904
|
+
return {};
|
|
905
|
+
}
|
|
906
|
+
if (cells.length === 1) {
|
|
907
|
+
return { width: cells[0].getBoundingClientRect().width };
|
|
908
|
+
}
|
|
909
|
+
let firstCell, lastCell;
|
|
910
|
+
if (this.services.directionality.value === 'ltr') {
|
|
911
|
+
firstCell = cells[0];
|
|
912
|
+
lastCell = cells[cells.length - 1];
|
|
913
|
+
}
|
|
914
|
+
else {
|
|
915
|
+
lastCell = cells[0];
|
|
916
|
+
firstCell = cells[cells.length - 1];
|
|
917
|
+
}
|
|
918
|
+
return { width: lastCell.getBoundingClientRect().right - firstCell.getBoundingClientRect().left };
|
|
919
|
+
}
|
|
920
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: CdkPopoverEdit, deps: [{ token: EditServices }, { token: i0.ElementRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
921
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.0-next.2", type: CdkPopoverEdit, isStandalone: true, selector: "[cdkPopoverEdit]:not([cdkPopoverEditTabOut])", inputs: { template: ["cdkPopoverEdit", "template"], context: ["cdkPopoverEditContext", "context"], colspan: ["cdkPopoverEditColspan", "colspan"], disabled: ["cdkPopoverEditDisabled", "disabled"] }, host: { properties: { "attr.tabindex": "disabled ? null : 0", "attr.aria-haspopup": "!disabled" }, classAttribute: "cdk-popover-edit-cell" }, ngImport: i0 }); }
|
|
950
922
|
}
|
|
951
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
|
923
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: CdkPopoverEdit, decorators: [{
|
|
952
924
|
type: Directive,
|
|
953
925
|
args: [{
|
|
954
926
|
selector: '[cdkPopoverEdit]:not([cdkPopoverEditTabOut])',
|
|
955
927
|
host: POPOVER_EDIT_HOST_BINDINGS,
|
|
956
928
|
inputs: POPOVER_EDIT_INPUTS,
|
|
929
|
+
standalone: true,
|
|
957
930
|
}]
|
|
958
931
|
}], ctorParameters: () => [{ type: EditServices }, { type: i0.ElementRef }, { type: i0.ViewContainerRef }] });
|
|
959
932
|
/**
|
|
@@ -978,15 +951,16 @@ class CdkPopoverEditTabOut extends CdkPopoverEdit {
|
|
|
978
951
|
this.closeEditOverlay();
|
|
979
952
|
});
|
|
980
953
|
}
|
|
981
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
|
982
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.
|
|
954
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: CdkPopoverEditTabOut, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }, { token: EditServices }, { token: FocusEscapeNotifierFactory }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
955
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.0-next.2", type: CdkPopoverEditTabOut, isStandalone: true, selector: "[cdkPopoverEdit][cdkPopoverEditTabOut]", inputs: { template: ["cdkPopoverEdit", "template"], context: ["cdkPopoverEditContext", "context"], colspan: ["cdkPopoverEditColspan", "colspan"], disabled: ["cdkPopoverEditDisabled", "disabled"] }, host: { properties: { "attr.tabindex": "disabled ? null : 0", "attr.aria-haspopup": "!disabled" }, classAttribute: "cdk-popover-edit-cell" }, usesInheritance: true, ngImport: i0 }); }
|
|
983
956
|
}
|
|
984
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
|
957
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: CdkPopoverEditTabOut, decorators: [{
|
|
985
958
|
type: Directive,
|
|
986
959
|
args: [{
|
|
987
960
|
selector: '[cdkPopoverEdit][cdkPopoverEditTabOut]',
|
|
988
961
|
host: POPOVER_EDIT_HOST_BINDINGS,
|
|
989
962
|
inputs: POPOVER_EDIT_INPUTS,
|
|
963
|
+
standalone: true,
|
|
990
964
|
}]
|
|
991
965
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ViewContainerRef }, { type: EditServices }, { type: FocusEscapeNotifierFactory }] });
|
|
992
966
|
/**
|
|
@@ -1066,13 +1040,14 @@ class CdkRowHoverContent {
|
|
|
1066
1040
|
}
|
|
1067
1041
|
});
|
|
1068
1042
|
}
|
|
1069
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
|
1070
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.
|
|
1043
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: CdkRowHoverContent, deps: [{ token: EditServices }, { token: i0.ElementRef }, { token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1044
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.0-next.2", type: CdkRowHoverContent, isStandalone: true, selector: "[cdkRowHoverContent]", ngImport: i0 }); }
|
|
1071
1045
|
}
|
|
1072
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
|
1046
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: CdkRowHoverContent, decorators: [{
|
|
1073
1047
|
type: Directive,
|
|
1074
1048
|
args: [{
|
|
1075
1049
|
selector: '[cdkRowHoverContent]',
|
|
1050
|
+
standalone: true,
|
|
1076
1051
|
}]
|
|
1077
1052
|
}], ctorParameters: () => [{ type: EditServices }, { type: i0.ElementRef }, { type: i0.TemplateRef }, { type: i0.ViewContainerRef }] });
|
|
1078
1053
|
/**
|
|
@@ -1093,16 +1068,17 @@ class CdkEditOpen {
|
|
|
1093
1068
|
this.editEventDispatcher.editing.next(closest(this.elementRef.nativeElement, CELL_SELECTOR));
|
|
1094
1069
|
evt.stopPropagation();
|
|
1095
1070
|
}
|
|
1096
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
|
1097
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.
|
|
1071
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: CdkEditOpen, deps: [{ token: i0.ElementRef }, { token: EditEventDispatcher }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1072
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.0-next.2", type: CdkEditOpen, isStandalone: true, selector: "[cdkEditOpen]", host: { listeners: { "click": "openEdit($event)" } }, ngImport: i0 }); }
|
|
1098
1073
|
}
|
|
1099
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
|
1074
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: CdkEditOpen, decorators: [{
|
|
1100
1075
|
type: Directive,
|
|
1101
1076
|
args: [{
|
|
1102
1077
|
selector: '[cdkEditOpen]',
|
|
1103
1078
|
host: {
|
|
1104
1079
|
'(click)': 'openEdit($event)',
|
|
1105
1080
|
},
|
|
1081
|
+
standalone: true,
|
|
1106
1082
|
}]
|
|
1107
1083
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: EditEventDispatcher }] });
|
|
1108
1084
|
|
|
@@ -1117,15 +1093,15 @@ const EXPORTED_DECLARATIONS = [
|
|
|
1117
1093
|
CdkEditOpen,
|
|
1118
1094
|
];
|
|
1119
1095
|
class CdkPopoverEditModule {
|
|
1120
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
|
1121
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.
|
|
1096
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: CdkPopoverEditModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1097
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.0-next.2", ngImport: i0, type: CdkPopoverEditModule, imports: [OverlayModule, CdkPopoverEdit,
|
|
1122
1098
|
CdkPopoverEditTabOut,
|
|
1123
1099
|
CdkRowHoverContent,
|
|
1124
1100
|
CdkEditControl,
|
|
1125
1101
|
CdkEditRevert,
|
|
1126
1102
|
CdkEditClose,
|
|
1127
1103
|
CdkEditable,
|
|
1128
|
-
CdkEditOpen],
|
|
1104
|
+
CdkEditOpen], exports: [CdkPopoverEdit,
|
|
1129
1105
|
CdkPopoverEditTabOut,
|
|
1130
1106
|
CdkRowHoverContent,
|
|
1131
1107
|
CdkEditControl,
|
|
@@ -1133,25 +1109,13 @@ class CdkPopoverEditModule {
|
|
|
1133
1109
|
CdkEditClose,
|
|
1134
1110
|
CdkEditable,
|
|
1135
1111
|
CdkEditOpen] }); }
|
|
1136
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.
|
|
1137
|
-
{
|
|
1138
|
-
provide: PopoverEditPositionStrategyFactory,
|
|
1139
|
-
useClass: DefaultPopoverEditPositionStrategyFactory,
|
|
1140
|
-
},
|
|
1141
|
-
], imports: [OverlayModule] }); }
|
|
1112
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: CdkPopoverEditModule, imports: [OverlayModule] }); }
|
|
1142
1113
|
}
|
|
1143
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
|
1114
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: CdkPopoverEditModule, decorators: [{
|
|
1144
1115
|
type: NgModule,
|
|
1145
1116
|
args: [{
|
|
1146
|
-
imports: [OverlayModule],
|
|
1117
|
+
imports: [OverlayModule, ...EXPORTED_DECLARATIONS],
|
|
1147
1118
|
exports: EXPORTED_DECLARATIONS,
|
|
1148
|
-
declarations: EXPORTED_DECLARATIONS,
|
|
1149
|
-
providers: [
|
|
1150
|
-
{
|
|
1151
|
-
provide: PopoverEditPositionStrategyFactory,
|
|
1152
|
-
useClass: DefaultPopoverEditPositionStrategyFactory,
|
|
1153
|
-
},
|
|
1154
|
-
],
|
|
1155
1119
|
}]
|
|
1156
1120
|
}] });
|
|
1157
1121
|
|
|
@@ -1159,5 +1123,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0", ngImpor
|
|
|
1159
1123
|
* Generated bundle index. Do not edit.
|
|
1160
1124
|
*/
|
|
1161
1125
|
|
|
1162
|
-
export { CdkEditClose, CdkEditControl, CdkEditOpen, CdkEditRevert, CdkEditable, CdkPopoverEdit, CdkPopoverEditModule, CdkPopoverEditTabOut, CdkRowHoverContent,
|
|
1126
|
+
export { CdkEditClose, CdkEditControl, CdkEditOpen, CdkEditRevert, CdkEditable, CdkPopoverEdit, CdkPopoverEditModule, CdkPopoverEditTabOut, CdkRowHoverContent, EditEventDispatcher, EditRef, FocusDispatcher, FormValueContainer, HoverContentState, CELL_SELECTOR as _CELL_SELECTOR, closest as _closest };
|
|
1163
1127
|
//# sourceMappingURL=popover-edit.mjs.map
|