Skip to content

Commit a478687

Browse files
committed
main - d06d969 build: update to TypeScript 5.9 (#31604)
1 parent 4b45fe3 commit a478687

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+1311
-1163
lines changed

cdk/drag-drop/index.d.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,4 +245,14 @@ declare class CdkDragDropCopyListExample {
245245
static ɵcmp: i0.ɵɵComponentDeclaration<CdkDragDropCopyListExample, "cdk-drag-drop-copy-list-example", never, {}, {}, never, never, true, never>;
246246
}
247247

248-
export { CdkDragDropAxisLockExample, CdkDragDropBoundaryExample, CdkDragDropConnectedSortingExample, CdkDragDropConnectedSortingGroupExample, CdkDragDropCopyListExample, CdkDragDropCustomPlaceholderExample, CdkDragDropCustomPreviewExample, CdkDragDropDelayExample, CdkDragDropDisabledExample, CdkDragDropDisabledSortingExample, CdkDragDropEnterPredicateExample, CdkDragDropFreeDragPositionExample, CdkDragDropHandleExample, CdkDragDropHorizontalSortingExample, CdkDragDropMixedSortingExample, CdkDragDropOverviewExample, CdkDragDropRootElementExample, CdkDragDropSortPredicateExample, CdkDragDropSortingExample, CdkDragDropTableExample, CdkDragDropTabsExample };
248+
/**
249+
* @title Drag&Drop scrollable
250+
*/
251+
declare class CdkDragDropScrollableExample {
252+
elementNames: string[];
253+
drop(event: CdkDragDrop<string[]>): void;
254+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkDragDropScrollableExample, never>;
255+
static ɵcmp: i0.ɵɵComponentDeclaration<CdkDragDropScrollableExample, "cdk-drag-drop-scrollable-example", never, {}, {}, never, never, true, never>;
256+
}
257+
258+
export { CdkDragDropAxisLockExample, CdkDragDropBoundaryExample, CdkDragDropConnectedSortingExample, CdkDragDropConnectedSortingGroupExample, CdkDragDropCopyListExample, CdkDragDropCustomPlaceholderExample, CdkDragDropCustomPreviewExample, CdkDragDropDelayExample, CdkDragDropDisabledExample, CdkDragDropDisabledSortingExample, CdkDragDropEnterPredicateExample, CdkDragDropFreeDragPositionExample, CdkDragDropHandleExample, CdkDragDropHorizontalSortingExample, CdkDragDropMixedSortingExample, CdkDragDropOverviewExample, CdkDragDropRootElementExample, CdkDragDropScrollableExample, CdkDragDropSortPredicateExample, CdkDragDropSortingExample, CdkDragDropTableExample, CdkDragDropTabsExample };

docs-content/examples-highlighted/cdk/drag-drop/index-ts.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@
1919
<span class="hljs-keyword">export</span> {<span class="hljs-title class_">CdkDragDropMixedSortingExample</span>} <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;./cdk-drag-drop-mixed-sorting/cdk-drag-drop-mixed-sorting-example&#x27;</span>;
2020
<span class="hljs-keyword">export</span> {<span class="hljs-title class_">CdkDragDropTabsExample</span>} <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;./cdk-drag-drop-tabs/cdk-drag-drop-tabs-example&#x27;</span>;
2121
<span class="hljs-keyword">export</span> {<span class="hljs-title class_">CdkDragDropCopyListExample</span>} <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;./cdk-drag-drop-copy-list/cdk-drag-drop-copy-list-example&#x27;</span>;
22+
<span class="hljs-keyword">export</span> {<span class="hljs-title class_">CdkDragDropScrollableExample</span>} <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;./cdk-drag-drop-scrollable/cdk-drag-drop-scrollable-example&#x27;</span>;

docs-content/examples-source/cdk/drag-drop/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ export {CdkDragDropTableExample} from './cdk-drag-drop-table/cdk-drag-drop-table
1919
export {CdkDragDropMixedSortingExample} from './cdk-drag-drop-mixed-sorting/cdk-drag-drop-mixed-sorting-example';
2020
export {CdkDragDropTabsExample} from './cdk-drag-drop-tabs/cdk-drag-drop-tabs-example';
2121
export {CdkDragDropCopyListExample} from './cdk-drag-drop-copy-list/cdk-drag-drop-copy-list-example';
22+
export {CdkDragDropScrollableExample} from './cdk-drag-drop-scrollable/cdk-drag-drop-scrollable-example';

fesm2022/cdk-experimental/popover-edit.mjs

Lines changed: 15 additions & 15 deletions
Large diffs are not rendered by default.

fesm2022/cdk-experimental/selection.mjs

Lines changed: 6 additions & 6 deletions
Large diffs are not rendered by default.

fesm2022/cdk/a11y.mjs

Lines changed: 9 additions & 9 deletions
Large diffs are not rendered by default.

fesm2022/cdk/accordion.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import { CdkAccordionModule } from '@angular/cdk/accordion';
99
class CdkAccordionOverviewExample {
1010
items = ['Item 1', 'Item 2', 'Item 3', 'Item 4', 'Item 5'];
1111
expandedIndex = 0;
12-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: CdkAccordionOverviewExample, deps: [], target: i0.ɵɵFactoryTarget.Component });
13-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.0-next.1", type: CdkAccordionOverviewExample, isStandalone: true, selector: "cdk-accordion-overview-example", ngImport: i0, template: "<cdk-accordion class=\"example-accordion\">\n @for (item of items; track item; let index = $index) {\n <cdk-accordion-item #accordionItem=\"cdkAccordionItem\" class=\"example-accordion-item\">\n <button\n class=\"example-accordion-item-header\"\n (click)=\"accordionItem.toggle()\"\n tabindex=\"0\"\n [attr.id]=\"'accordion-header-' + index\"\n [attr.aria-expanded]=\"accordionItem.expanded\"\n [attr.aria-controls]=\"'accordion-body-' + index\">\n {{ item }}\n <span class=\"example-accordion-item-description\">\n Click to {{ accordionItem.expanded ? 'close' : 'open' }}\n </span>\n </button>\n @if(accordionItem.expanded) {\n <div\n class=\"example-accordion-item-body\"\n role=\"region\"\n [style.display]=\"accordionItem.expanded ? '' : 'none'\"\n [attr.id]=\"'accordion-body-' + index\"\n [attr.aria-labelledby]=\"'accordion-header-' + index\"\n >\n Lorem ipsum dolor, sit amet, consectetur adipisicing elit. Perferendis excepturi incidunt ipsum\n deleniti labore, tempore non nam doloribus blanditiis veritatis illo autem iure aliquid ullam\n rem tenetur deserunt velit culpa?\n </div>\n }\n </cdk-accordion-item>\n }\n</cdk-accordion>\n", styles: [".example-accordion {\n display: block;\n max-width: 500px;\n}\n\n.example-accordion-item {\n display: block;\n border: solid 1px #ccc;\n}\n\n.example-accordion-item + .example-accordion-item {\n border-top: none;\n}\n\n.example-accordion-item-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n background: none;\n border: none;\n padding: 16px;\n text-align: left;\n\n}\n\n.example-accordion-item-description {\n font-size: 0.85em;\n color: #999;\n}\n\n.example-accordion-item-body {\n padding: 16px;\n}\n\n.example-accordion-item-header:hover {\n cursor: pointer;\n background-color: #eee;\n}\n\n.example-accordion-item:first-child {\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n}\n\n.example-accordion-item:last-child {\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n}\n"], dependencies: [{ kind: "ngmodule", type: CdkAccordionModule }, { kind: "directive", type: i1.CdkAccordion, selector: "cdk-accordion, [cdkAccordion]", inputs: ["multi"], exportAs: ["cdkAccordion"] }, { kind: "directive", type: i1.CdkAccordionItem, selector: "cdk-accordion-item, [cdkAccordionItem]", inputs: ["expanded", "disabled"], outputs: ["closed", "opened", "destroyed", "expandedChange"], exportAs: ["cdkAccordionItem"] }] });
12+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: CdkAccordionOverviewExample, deps: [], target: i0.ɵɵFactoryTarget.Component });
13+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.0-next.2", type: CdkAccordionOverviewExample, isStandalone: true, selector: "cdk-accordion-overview-example", ngImport: i0, template: "<cdk-accordion class=\"example-accordion\">\n @for (item of items; track item; let index = $index) {\n <cdk-accordion-item #accordionItem=\"cdkAccordionItem\" class=\"example-accordion-item\">\n <button\n class=\"example-accordion-item-header\"\n (click)=\"accordionItem.toggle()\"\n tabindex=\"0\"\n [attr.id]=\"'accordion-header-' + index\"\n [attr.aria-expanded]=\"accordionItem.expanded\"\n [attr.aria-controls]=\"'accordion-body-' + index\">\n {{ item }}\n <span class=\"example-accordion-item-description\">\n Click to {{ accordionItem.expanded ? 'close' : 'open' }}\n </span>\n </button>\n @if(accordionItem.expanded) {\n <div\n class=\"example-accordion-item-body\"\n role=\"region\"\n [style.display]=\"accordionItem.expanded ? '' : 'none'\"\n [attr.id]=\"'accordion-body-' + index\"\n [attr.aria-labelledby]=\"'accordion-header-' + index\"\n >\n Lorem ipsum dolor, sit amet, consectetur adipisicing elit. Perferendis excepturi incidunt ipsum\n deleniti labore, tempore non nam doloribus blanditiis veritatis illo autem iure aliquid ullam\n rem tenetur deserunt velit culpa?\n </div>\n }\n </cdk-accordion-item>\n }\n</cdk-accordion>\n", styles: [".example-accordion {\n display: block;\n max-width: 500px;\n}\n\n.example-accordion-item {\n display: block;\n border: solid 1px #ccc;\n}\n\n.example-accordion-item + .example-accordion-item {\n border-top: none;\n}\n\n.example-accordion-item-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n background: none;\n border: none;\n padding: 16px;\n text-align: left;\n\n}\n\n.example-accordion-item-description {\n font-size: 0.85em;\n color: #999;\n}\n\n.example-accordion-item-body {\n padding: 16px;\n}\n\n.example-accordion-item-header:hover {\n cursor: pointer;\n background-color: #eee;\n}\n\n.example-accordion-item:first-child {\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n}\n\n.example-accordion-item:last-child {\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n}\n"], dependencies: [{ kind: "ngmodule", type: CdkAccordionModule }, { kind: "directive", type: i1.CdkAccordion, selector: "cdk-accordion, [cdkAccordion]", inputs: ["multi"], exportAs: ["cdkAccordion"] }, { kind: "directive", type: i1.CdkAccordionItem, selector: "cdk-accordion-item, [cdkAccordionItem]", inputs: ["expanded", "disabled"], outputs: ["closed", "opened", "destroyed", "expandedChange"], exportAs: ["cdkAccordionItem"] }] });
1414
}
15-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: CdkAccordionOverviewExample, decorators: [{
15+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: CdkAccordionOverviewExample, decorators: [{
1616
type: Component,
1717
args: [{ selector: 'cdk-accordion-overview-example', imports: [CdkAccordionModule], template: "<cdk-accordion class=\"example-accordion\">\n @for (item of items; track item; let index = $index) {\n <cdk-accordion-item #accordionItem=\"cdkAccordionItem\" class=\"example-accordion-item\">\n <button\n class=\"example-accordion-item-header\"\n (click)=\"accordionItem.toggle()\"\n tabindex=\"0\"\n [attr.id]=\"'accordion-header-' + index\"\n [attr.aria-expanded]=\"accordionItem.expanded\"\n [attr.aria-controls]=\"'accordion-body-' + index\">\n {{ item }}\n <span class=\"example-accordion-item-description\">\n Click to {{ accordionItem.expanded ? 'close' : 'open' }}\n </span>\n </button>\n @if(accordionItem.expanded) {\n <div\n class=\"example-accordion-item-body\"\n role=\"region\"\n [style.display]=\"accordionItem.expanded ? '' : 'none'\"\n [attr.id]=\"'accordion-body-' + index\"\n [attr.aria-labelledby]=\"'accordion-header-' + index\"\n >\n Lorem ipsum dolor, sit amet, consectetur adipisicing elit. Perferendis excepturi incidunt ipsum\n deleniti labore, tempore non nam doloribus blanditiis veritatis illo autem iure aliquid ullam\n rem tenetur deserunt velit culpa?\n </div>\n }\n </cdk-accordion-item>\n }\n</cdk-accordion>\n", styles: [".example-accordion {\n display: block;\n max-width: 500px;\n}\n\n.example-accordion-item {\n display: block;\n border: solid 1px #ccc;\n}\n\n.example-accordion-item + .example-accordion-item {\n border-top: none;\n}\n\n.example-accordion-item-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n background: none;\n border: none;\n padding: 16px;\n text-align: left;\n\n}\n\n.example-accordion-item-description {\n font-size: 0.85em;\n color: #999;\n}\n\n.example-accordion-item-body {\n padding: 16px;\n}\n\n.example-accordion-item-header:hover {\n cursor: pointer;\n background-color: #eee;\n}\n\n.example-accordion-item:first-child {\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n}\n\n.example-accordion-item:last-child {\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n}\n"] }]
1818
}] });

fesm2022/cdk/clipboard.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ class CdkClipboardOverviewExample {
1818
`thing he was afraid of was losing his power, which eventually, of course, he did. ` +
1919
`Unfortunately, he taught his apprentice everything he knew, then his apprentice ` +
2020
`killed him in his sleep. Ironic. He could save others from death, but not himself.`;
21-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: CdkClipboardOverviewExample, deps: [], target: i0.ɵɵFactoryTarget.Component });
22-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.0-next.1", type: CdkClipboardOverviewExample, isStandalone: true, selector: "cdk-clipboard-overview-example", ngImport: i0, template: "<label for=\"clipboard-example-textarea\">Text to be copied</label>\n<textarea id=\"clipboard-example-textarea\" cols=\"30\" rows=\"10\" [(ngModel)]=\"value\"></textarea>\n<button [cdkCopyToClipboard]=\"value\">Copy to clipboard</button>\n", styles: ["textarea {\n display: block;\n margin: 4px 0 8px;\n}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ClipboardModule }, { kind: "directive", type: i2.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }] });
21+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: CdkClipboardOverviewExample, deps: [], target: i0.ɵɵFactoryTarget.Component });
22+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.0-next.2", type: CdkClipboardOverviewExample, isStandalone: true, selector: "cdk-clipboard-overview-example", ngImport: i0, template: "<label for=\"clipboard-example-textarea\">Text to be copied</label>\n<textarea id=\"clipboard-example-textarea\" cols=\"30\" rows=\"10\" [(ngModel)]=\"value\"></textarea>\n<button [cdkCopyToClipboard]=\"value\">Copy to clipboard</button>\n", styles: ["textarea {\n display: block;\n margin: 4px 0 8px;\n}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ClipboardModule }, { kind: "directive", type: i2.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }] });
2323
}
24-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: CdkClipboardOverviewExample, decorators: [{
24+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: CdkClipboardOverviewExample, decorators: [{
2525
type: Component,
2626
args: [{ selector: 'cdk-clipboard-overview-example', imports: [FormsModule, ClipboardModule], template: "<label for=\"clipboard-example-textarea\">Text to be copied</label>\n<textarea id=\"clipboard-example-textarea\" cols=\"30\" rows=\"10\" [(ngModel)]=\"value\"></textarea>\n<button [cdkCopyToClipboard]=\"value\">Copy to clipboard</button>\n", styles: ["textarea {\n display: block;\n margin: 4px 0 8px;\n}\n"] }]
2727
}] });

0 commit comments

Comments
 (0)