├── schematics ├── package.json ├── ng-add │ ├── schema.js.map │ ├── schema.d.ts │ ├── schema.js │ ├── index.js.map │ ├── schema.json │ ├── index.d.ts │ └── index.js ├── ng-generate │ └── drag-drop │ │ ├── schema.js.map │ │ ├── schema.js │ │ ├── schema.d.ts │ │ ├── index.d.ts │ │ ├── index.js.map │ │ └── files │ │ └── __path__ │ │ └── __name@dasherize@if-flat__ │ │ ├── __name@dasherize__.component.html.template │ │ ├── __name@dasherize__.component.spec.ts.template │ │ ├── __name@dasherize__.component.__style__.template │ │ └── __name@dasherize__.component.ts.template ├── update-tool │ ├── update-recorder.js.map │ ├── file-system.js.map │ ├── public-api.js.map │ ├── utils │ │ ├── functions.js.map │ │ ├── diagnostics.js.map │ │ ├── diagnostics.d.ts │ │ ├── property-name.js.map │ │ ├── functions.d.ts │ │ ├── imports.d.ts │ │ ├── parse-tsconfig.d.ts │ │ ├── diagnostics.js │ │ ├── functions.js │ │ ├── line-mappings.d.ts │ │ ├── property-name.d.ts │ │ ├── decorators.d.ts │ │ ├── property-name.js │ │ ├── decorators.js.map │ │ ├── parse-tsconfig.js.map │ │ ├── line-mappings.js.map │ │ ├── decorators.js │ │ └── virtual-host.d.ts │ ├── update-recorder.js │ ├── target-version.js.map │ ├── logger.js.map │ ├── logger.d.ts │ ├── update-recorder.d.ts │ ├── public-api.d.ts │ ├── target-version.d.ts │ ├── logger.js │ ├── file-system.js │ ├── version-changes.js.map │ ├── migration.js.map │ ├── target-version.js │ ├── version-changes.d.ts │ ├── public-api.js │ └── version-changes.js ├── ng-update │ ├── data │ │ ├── css-tokens.js.map │ │ ├── class-names.js.map │ │ ├── input-names.js.map │ │ ├── output-names.js.map │ │ ├── css-selectors.js.map │ │ ├── symbol-removal.js.map │ │ ├── property-names.js.map │ │ ├── element-selectors.js.map │ │ ├── method-call-checks.js.map │ │ ├── attribute-selectors.js.map │ │ ├── constructor-checks.js.map │ │ ├── index.js.map │ │ ├── css-tokens.js │ │ ├── class-names.js │ │ ├── input-names.js │ │ ├── output-names.js │ │ ├── css-selectors.js │ │ ├── property-names.js │ │ ├── symbol-removal.js │ │ ├── element-selectors.js │ │ ├── method-call-checks.js │ │ ├── attribute-selectors.js │ │ ├── class-names.d.ts │ │ ├── element-selectors.d.ts │ │ ├── method-call-checks.d.ts │ │ ├── attribute-selectors.d.ts │ │ ├── index.d.ts │ │ ├── symbol-removal.d.ts │ │ ├── constructor-checks.js │ │ ├── constructor-checks.d.ts │ │ ├── property-names.d.ts │ │ ├── input-names.d.ts │ │ ├── output-names.d.ts │ │ ├── css-tokens.d.ts │ │ ├── css-selectors.d.ts │ │ └── index.js │ ├── public-api.js.map │ ├── migrations │ │ ├── misc-template.js.map │ │ ├── misc-template.d.ts │ │ ├── symbol-removal.d.ts │ │ ├── property-names.d.ts │ │ ├── method-call-arguments.d.ts │ │ ├── output-names.d.ts │ │ ├── misc-template.js │ │ ├── class-inheritance.d.ts │ │ ├── css-tokens.d.ts │ │ ├── css-selectors.d.ts │ │ ├── element-selectors.d.ts │ │ ├── input-names.d.ts │ │ ├── attribute-selectors.d.ts │ │ ├── symbol-removal.js.map │ │ ├── output-names.js.map │ │ ├── constructor-signature.d.ts │ │ ├── class-inheritance.js.map │ │ ├── class-names.d.ts │ │ ├── method-call-arguments.js.map │ │ ├── property-names.js.map │ │ ├── input-names.js.map │ │ └── element-selectors.js.map │ ├── index.d.ts │ ├── devkit-migration.js.map │ ├── typescript │ │ ├── base-types.d.ts │ │ ├── literal.js.map │ │ ├── base-types.js.map │ │ ├── module-specifiers.js.map │ │ ├── module-specifiers.d.ts │ │ ├── base-types.js │ │ ├── literal.d.ts │ │ ├── imports.d.ts │ │ ├── imports.js.map │ │ ├── literal.js │ │ └── module-specifiers.js │ ├── index.js.map │ ├── upgrade-data.js.map │ ├── public-api.d.ts │ ├── find-stylesheets.d.ts │ ├── devkit-migration.js │ ├── find-stylesheets.js.map │ ├── html-parsing │ │ ├── angular.d.ts │ │ ├── angular.js.map │ │ ├── elements.d.ts │ │ └── elements.js.map │ ├── devkit-file-system.d.ts │ ├── index.js │ ├── devkit-migration-rule.d.ts │ ├── upgrade-data.js │ ├── public-api.js │ ├── devkit-migration.d.ts │ ├── find-stylesheets.js │ ├── devkit-file-system.js.map │ └── upgrade-data.d.ts ├── index.js.map ├── paths.js.map ├── utils │ ├── index.js.map │ ├── get-project.js.map │ ├── ast │ │ └── ng-module-imports.d.ts │ ├── project-main-file.d.ts │ ├── project-main-file.js.map │ ├── project-index-file.d.ts │ ├── parse5-element.d.ts │ ├── get-project.d.ts │ ├── project-style-file.d.ts │ ├── parse5-element.js.map │ ├── index.d.ts │ ├── project-tsconfig-paths.d.ts │ ├── project-tsconfig-paths.js.map │ ├── html-manipulation.d.ts │ ├── build-component.d.ts │ ├── project-index-file.js.map │ ├── project-targets.d.ts │ ├── schematic-options.d.ts │ ├── get-project.js │ ├── project-main-file.js │ ├── project-style-file.js.map │ ├── project-targets.js.map │ ├── ast.d.ts │ ├── parse5-element.js │ ├── index.js │ ├── schematic-options.js.map │ ├── ast.js.map │ └── project-index-file.js ├── paths.d.ts ├── migration.json ├── index.d.ts ├── collection.json ├── paths.js └── index.js ├── fesm2022 ├── collections.mjs.map ├── _array-chunk.mjs ├── cdk.mjs ├── _css-pixel-value-chunk.mjs ├── coercion-private.mjs ├── _data-source-chunk.mjs ├── _test-environment-chunk.mjs ├── _focus-key-manager-chunk.mjs ├── _activedescendant-key-manager-chunk.mjs ├── collections.mjs ├── cdk.mjs.map ├── _fake-event-detection-chunk.mjs ├── _element-chunk.mjs ├── _passive-listeners-chunk.mjs ├── _css-pixel-value-chunk.mjs.map ├── _array-chunk.mjs.map ├── coercion.mjs ├── coercion-private.mjs.map ├── keycodes.mjs.map ├── keycodes.mjs ├── _id-generator-chunk.mjs ├── _shadow-dom-chunk.mjs ├── _dispose-view-repeater-strategy-chunk.mjs ├── _unique-selection-dispatcher-chunk.mjs ├── _test-environment-chunk.mjs.map └── _style-loader-chunk.mjs ├── types ├── cdk.d.ts ├── coercion-private.d.ts ├── _number-property-chunk.d.ts ├── _style-loader-chunk.d.ts ├── bidi.d.ts ├── _platform-chunk.d.ts ├── private.d.ts ├── _unique-selection-dispatcher-chunk.d.ts ├── observers-private.d.ts ├── _focus-key-manager-chunk.d.ts ├── _activedescendant-key-manager-chunk.d.ts ├── _data-source-chunk.d.ts └── coercion.d.ts ├── README.md ├── a11y-prebuilt.css ├── _index.scss ├── text-field-prebuilt.css ├── LICENSE └── overlay-prebuilt.css /schematics/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "commonjs" 3 | } 4 | -------------------------------------------------------------------------------- /fesm2022/collections.mjs.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"collections.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"} -------------------------------------------------------------------------------- /schematics/ng-add/schema.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"schema.js","sourceRoot":"","sources":["schema.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG"} -------------------------------------------------------------------------------- /schematics/ng-generate/drag-drop/schema.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"schema.js","sourceRoot":"","sources":["schema.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG"} -------------------------------------------------------------------------------- /schematics/update-tool/update-recorder.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"update-recorder.js","sourceRoot":"","sources":["update-recorder.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG"} -------------------------------------------------------------------------------- /fesm2022/_array-chunk.mjs: -------------------------------------------------------------------------------- 1 | function coerceArray(value) { 2 | return Array.isArray(value) ? value : [value]; 3 | } 4 | 5 | export { coerceArray }; 6 | //# sourceMappingURL=_array-chunk.mjs.map 7 | -------------------------------------------------------------------------------- /fesm2022/cdk.mjs: -------------------------------------------------------------------------------- 1 | import { Version } from '@angular/core'; 2 | 3 | const VERSION = new Version('21.1.0-next.2+sha-d28d065'); 4 | 5 | export { VERSION }; 6 | //# sourceMappingURL=cdk.mjs.map 7 | -------------------------------------------------------------------------------- /schematics/ng-update/data/css-tokens.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"css-tokens.js","sourceRoot":"","sources":["css-tokens.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAuBU,QAAA,SAAS,GAAwC,EAAE,CAAC"} -------------------------------------------------------------------------------- /types/cdk.d.ts: -------------------------------------------------------------------------------- 1 | import { Version } from '@angular/core'; 2 | 3 | /** Current version of the Angular Component Development Kit. */ 4 | declare const VERSION: Version; 5 | 6 | export { VERSION }; 7 | -------------------------------------------------------------------------------- /schematics/ng-update/data/class-names.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"class-names.js","sourceRoot":"","sources":["class-names.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAWU,QAAA,UAAU,GAAyC,EAAE,CAAC"} -------------------------------------------------------------------------------- /schematics/ng-update/data/input-names.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"input-names.js","sourceRoot":"","sources":["input-names.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAkBU,QAAA,UAAU,GAAyC,EAAE,CAAC"} -------------------------------------------------------------------------------- /schematics/ng-update/data/output-names.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"output-names.js","sourceRoot":"","sources":["output-names.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAkBU,QAAA,WAAW,GAA0C,EAAE,CAAC"} -------------------------------------------------------------------------------- /schematics/ng-update/data/css-selectors.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"css-selectors.js","sourceRoot":"","sources":["css-selectors.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAuBU,QAAA,YAAY,GAA2C,EAAE,CAAC"} -------------------------------------------------------------------------------- /schematics/ng-update/data/symbol-removal.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"symbol-removal.js","sourceRoot":"","sources":["symbol-removal.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAeU,QAAA,aAAa,GAA6C,EAAE,CAAC"} -------------------------------------------------------------------------------- /schematics/ng-update/data/property-names.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"property-names.js","sourceRoot":"","sources":["property-names.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAgBU,QAAA,aAAa,GAA4C,EAAE,CAAC"} -------------------------------------------------------------------------------- /schematics/update-tool/file-system.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"file-system.js","sourceRoot":"","sources":["file-system.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAkCH;;;GAGG;AACH,MAAsB,UAAU;CAiC/B;AAjCD,gCAiCC"} -------------------------------------------------------------------------------- /schematics/ng-update/data/element-selectors.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"element-selectors.js","sourceRoot":"","sources":["element-selectors.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAWU,QAAA,gBAAgB,GAA+C,EAAE,CAAC"} -------------------------------------------------------------------------------- /schematics/ng-update/data/method-call-checks.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"method-call-checks.js","sourceRoot":"","sources":["method-call-checks.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAUU,QAAA,gBAAgB,GAA0C,EAAE,CAAC"} -------------------------------------------------------------------------------- /schematics/ng-update/data/attribute-selectors.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"attribute-selectors.js","sourceRoot":"","sources":["attribute-selectors.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAWU,QAAA,kBAAkB,GAAiD,EAAE,CAAC"} -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Angular Material 2 | ======= 3 | 4 | The sources for this package are in the main [Angular Material](https://github.com/angular/components) repo. Please file issues and pull requests against that repo. 5 | 6 | License: MIT 7 | -------------------------------------------------------------------------------- /schematics/ng-update/data/constructor-checks.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"constructor-checks.js","sourceRoot":"","sources":["constructor-checks.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAMH;;;;GAIG;AACU,QAAA,iBAAiB,GAAiD,EAAE,CAAC"} -------------------------------------------------------------------------------- /a11y-prebuilt.css: -------------------------------------------------------------------------------- 1 | .cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0} 2 | -------------------------------------------------------------------------------- /schematics/update-tool/public-api.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"public-api.js","sourceRoot":"","sources":["public-api.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;;;;;;AAEH,iEAA+C;AAC/C,gDAA8B;AAC9B,0CAAwB;AACxB,8CAA4B;AAC5B,mDAAiC;AACjC,qDAAmC;AACnC,kDAAgC;AAChC,wDAAsC;AACtC,oDAAkC"} -------------------------------------------------------------------------------- /schematics/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;;;;;;;AAEH,0CAAwB;AACxB,yDAAuC;AACvC,2DAAyC;AAEzC,iGAAiG;AACjG,wEAAsD;AACtD,2EAAyD;AAEzD,+EAA+E;AAC/E,gFAAgF;AAChF,kFAAkF;AAClF,oDAAoD;AACpD,iCAAiC;AACzB,wBAAM"} -------------------------------------------------------------------------------- /schematics/paths.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"paths.js","sourceRoot":"","sources":["paths.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,+BAA0B;AAE1B,qEAAqE;AACxD,QAAA,eAAe,GAAG,IAAA,WAAI,EAAC,SAAS,EAAE,iBAAiB,CAAC,CAAC;AAElE,qEAAqE;AACxD,QAAA,cAAc,GAAG,IAAA,WAAI,EAAC,SAAS,EAAE,gBAAgB,CAAC,CAAC"} -------------------------------------------------------------------------------- /fesm2022/_css-pixel-value-chunk.mjs: -------------------------------------------------------------------------------- 1 | function coerceCssPixelValue(value) { 2 | if (value == null) { 3 | return ''; 4 | } 5 | return typeof value === 'string' ? value : `${value}px`; 6 | } 7 | 8 | export { coerceCssPixelValue }; 9 | //# sourceMappingURL=_css-pixel-value-chunk.mjs.map 10 | -------------------------------------------------------------------------------- /fesm2022/coercion-private.mjs: -------------------------------------------------------------------------------- 1 | import { isObservable, of } from 'rxjs'; 2 | 3 | function coerceObservable(data) { 4 | if (!isObservable(data)) { 5 | return of(data); 6 | } 7 | return data; 8 | } 9 | 10 | export { coerceObservable }; 11 | //# sourceMappingURL=coercion-private.mjs.map 12 | -------------------------------------------------------------------------------- /schematics/ng-update/data/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;;;;;;AAEH,wDAAsC;AACtC,gDAA8B;AAC9B,uDAAqC;AACrC,kDAAgC;AAChC,+CAA6B;AAC7B,sDAAoC;AACpC,gDAA8B;AAC9B,uDAAqC;AACrC,iDAA+B;AAC/B,mDAAiC;AACjC,mDAAiC"} -------------------------------------------------------------------------------- /schematics/utils/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;;;;;;AAEH,wCAAsB;AACtB,0DAAwC;AACxC,oDAAkC;AAClC,gDAA8B;AAC9B,sDAAoC;AACpC,mDAAiC;AACjC,uDAAqC;AACrC,sDAAoC;AACpC,uDAAqC;AACrC,oDAAkC;AAClC,2DAAyC;AACzC,sDAAoC"} -------------------------------------------------------------------------------- /schematics/ng-update/public-api.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"public-api.js","sourceRoot":"","sources":["public-api.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;;;;;;AAEH,+CAA6B;AAC7B,qDAAmC;AACnC,0DAAwC;AACxC,uDAAqC;AACrC,yDAAuC;AACvC,0DAAwC;AACxC,0DAAwC;AACxC,uDAAqC;AACrC,uDAAqC;AACrC,iEAA+C;AAC/C,qDAAmC;AACnC,iDAA+B"} -------------------------------------------------------------------------------- /schematics/ng-update/migrations/misc-template.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"misc-template.js","sourceRoot":"","sources":["misc-template.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAGH,2DAAsD;AAGtD;;;GAGG;AACH,MAAa,qBAAsB,SAAQ,qBAAsB;IAAjE;;QACE,0DAA0D;QAC1D,YAAO,GAAG,KAAK,CAAC;IAGlB,CAAC;IADU,aAAa,CAAC,QAA0B,IAAS,CAAC;CAC5D;AALD,sDAKC"} -------------------------------------------------------------------------------- /schematics/update-tool/utils/functions.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"functions.js","sourceRoot":"","sources":["functions.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AASH,4CAEC;AATD,iCAAiC;AAEjC;;;;GAIG;AACH,SAAgB,gBAAgB,CAAC,IAAgD;IAC/E,OAAO,EAAE,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AACvF,CAAC"} -------------------------------------------------------------------------------- /fesm2022/_data-source-chunk.mjs: -------------------------------------------------------------------------------- 1 | import { ConnectableObservable } from 'rxjs'; 2 | 3 | class DataSource {} 4 | function isDataSource(value) { 5 | return value && typeof value.connect === 'function' && !(value instanceof ConnectableObservable); 6 | } 7 | 8 | export { DataSource, isDataSource }; 9 | //# sourceMappingURL=_data-source-chunk.mjs.map 10 | -------------------------------------------------------------------------------- /fesm2022/_test-environment-chunk.mjs: -------------------------------------------------------------------------------- 1 | function _isTestEnvironment() { 2 | return (typeof __karma__ !== 'undefined' && !!__karma__ || typeof jasmine !== 'undefined' && !!jasmine || typeof jest !== 'undefined' && !!jest || typeof Mocha !== 'undefined' && !!Mocha 3 | ); 4 | } 5 | 6 | export { _isTestEnvironment }; 7 | //# sourceMappingURL=_test-environment-chunk.mjs.map 8 | -------------------------------------------------------------------------------- /schematics/ng-add/schema.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | export interface Schema { 9 | /** Name of the project to target. */ 10 | project: string; 11 | } 12 | -------------------------------------------------------------------------------- /schematics/update-tool/utils/diagnostics.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"diagnostics.js","sourceRoot":"","sources":["diagnostics.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAOH,8CAGC;AARD,iCAAiC;AAEjC,iDAA0D;AAE1D,+EAA+E;AAC/E,SAAgB,iBAAiB,CAAC,WAA4B,EAAE,UAAsB;IACpF,MAAM,UAAU,GAAG,IAAA,yCAA0B,EAAC,UAAU,CAAC,CAAC;IAC1D,OAAO,EAAE,CAAC,oCAAoC,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;AAC1E,CAAC"} -------------------------------------------------------------------------------- /schematics/ng-add/schema.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | //# sourceMappingURL=schema.js.map -------------------------------------------------------------------------------- /types/coercion-private.d.ts: -------------------------------------------------------------------------------- 1 | import { Observable } from 'rxjs'; 2 | 3 | /** 4 | * Given either an Observable or non-Observable value, returns either the original 5 | * Observable, or wraps it in an Observable that emits the non-Observable value. 6 | */ 7 | declare function coerceObservable(data: T | Observable): Observable; 8 | 9 | export { coerceObservable }; 10 | -------------------------------------------------------------------------------- /schematics/ng-add/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAaH,4BAWC;AArBD,yDAA4E;AAE5E;;;;;;;GAOG;AACH;IACE,0FAA0F;IAC1F,6FAA6F;IAC7F,2FAA2F;IAC3F,6FAA6F;IAC7F,kEAAkE;IAElE,sFAAsF;IACtF,oFAAoF;IACpF,oCAAoC;IACpC,OAAO,IAAA,uBAAa,EAAC,cAAc,EAAE,oBAAoB,EAAE,EAAC,QAAQ,EAAE,0BAAgB,CAAC,IAAI,EAAC,CAAC,CAAC;AAChG,CAAC"} -------------------------------------------------------------------------------- /schematics/ng-generate/drag-drop/schema.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | //# sourceMappingURL=schema.js.map -------------------------------------------------------------------------------- /schematics/update-tool/update-recorder.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | //# sourceMappingURL=update-recorder.js.map -------------------------------------------------------------------------------- /schematics/ng-generate/drag-drop/schema.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { Schema as ComponentSchema } from '@schematics/angular/component/schema'; 9 | export interface Schema extends ComponentSchema { 10 | } 11 | -------------------------------------------------------------------------------- /schematics/ng-add/schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-07/schema", 3 | "$id": "angular-cdk-ng-add", 4 | "title": "Angular CDK ng-add", 5 | "type": "object", 6 | "properties": { 7 | "project": { 8 | "type": "string", 9 | "description": "The name of the project.", 10 | "$default": { 11 | "$source": "projectName" 12 | } 13 | } 14 | }, 15 | "required": [] 16 | } 17 | -------------------------------------------------------------------------------- /schematics/ng-update/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { Rule } from '@angular-devkit/schematics'; 9 | /** Entry point for the migration schematics with target of Angular CDK 20.0.0 */ 10 | export declare function updateToV21(): Rule; 11 | -------------------------------------------------------------------------------- /_index.scss: -------------------------------------------------------------------------------- 1 | @forward './overlay' show overlay, $overlay-container-z-index, $overlay-z-index, 2 | $overlay-backdrop-z-index, $overlay-backdrop-color; 3 | @forward './a11y' show a11y-visually-hidden, high-contrast; 4 | @forward './text-field' show text-field-autosize, text-field-autofill, 5 | text-field-autofill-color, 6 | // `text-field` is deprecated, but we have to export it 7 | // here in order for the theming API schematic to work. 8 | text-field; 9 | -------------------------------------------------------------------------------- /schematics/ng-update/data/css-tokens.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | exports.cssTokens = void 0; 11 | exports.cssTokens = {}; 12 | //# sourceMappingURL=css-tokens.js.map -------------------------------------------------------------------------------- /schematics/ng-update/data/class-names.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | exports.classNames = void 0; 11 | exports.classNames = {}; 12 | //# sourceMappingURL=class-names.js.map -------------------------------------------------------------------------------- /schematics/ng-update/data/input-names.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | exports.inputNames = void 0; 11 | exports.inputNames = {}; 12 | //# sourceMappingURL=input-names.js.map -------------------------------------------------------------------------------- /schematics/ng-update/data/output-names.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | exports.outputNames = void 0; 11 | exports.outputNames = {}; 12 | //# sourceMappingURL=output-names.js.map -------------------------------------------------------------------------------- /schematics/ng-update/data/css-selectors.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | exports.cssSelectors = void 0; 11 | exports.cssSelectors = {}; 12 | //# sourceMappingURL=css-selectors.js.map -------------------------------------------------------------------------------- /schematics/ng-update/devkit-migration.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"devkit-migration.js","sourceRoot":"","sources":["devkit-migration.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAIH,wDAAqF;AAcrF,MAAsB,eAAsB,SAAQ,qBAA8B;IAChF,wEAAwE;IAC9D,SAAS,CAAC,IAAY;QAC9B,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;QAChE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,OAAO,CAAC,WAAW,IAAI,UAAU,KAAK,IAAI,EAAE,CAAC,CAAC;IAC3E,CAAC;CAaF;AAlBD,0CAkBC"} -------------------------------------------------------------------------------- /schematics/ng-update/data/property-names.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | exports.propertyNames = void 0; 11 | exports.propertyNames = {}; 12 | //# sourceMappingURL=property-names.js.map -------------------------------------------------------------------------------- /schematics/ng-update/data/symbol-removal.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | exports.symbolRemoval = void 0; 11 | exports.symbolRemoval = {}; 12 | //# sourceMappingURL=symbol-removal.js.map -------------------------------------------------------------------------------- /schematics/update-tool/target-version.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"target-version.js","sourceRoot":"","sources":["target-version.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAaH,gDAIC;AAfD,2EAA2E;AAE3E,6CAA6C;AAC7C,IAAY,aAEX;AAFD,WAAY,aAAa;IACvB,mCAAkB,CAAA;AACpB,CAAC,EAFW,aAAa,6BAAb,aAAa,QAExB;AAED;;;GAGG;AACH,SAAgB,kBAAkB;IAChC,OAAO,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE;QACnD,OAAO,OAAQ,aAAoD,CAAC,SAAS,CAAC,KAAK,QAAQ,CAAC;IAC9F,CAAC,CAAC,CAAC;AACL,CAAC"} -------------------------------------------------------------------------------- /schematics/ng-update/data/element-selectors.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | exports.elementSelectors = void 0; 11 | exports.elementSelectors = {}; 12 | //# sourceMappingURL=element-selectors.js.map -------------------------------------------------------------------------------- /schematics/ng-update/typescript/base-types.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import * as ts from 'typescript'; 9 | /** Determines the base types of the specified class declaration. */ 10 | export declare function determineBaseTypes(node: ts.ClassDeclaration): string[] | null; 11 | -------------------------------------------------------------------------------- /schematics/ng-update/data/method-call-checks.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | exports.methodCallChecks = void 0; 11 | exports.methodCallChecks = {}; 12 | //# sourceMappingURL=method-call-checks.js.map -------------------------------------------------------------------------------- /schematics/ng-update/data/attribute-selectors.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | exports.attributeSelectors = void 0; 11 | exports.attributeSelectors = {}; 12 | //# sourceMappingURL=attribute-selectors.js.map -------------------------------------------------------------------------------- /schematics/paths.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | /** Path to the schematic collection for non-migration schematics. */ 9 | export declare const COLLECTION_PATH: string; 10 | /** Path to the schematic collection that includes the migrations. */ 11 | export declare const MIGRATION_PATH: string; 12 | -------------------------------------------------------------------------------- /schematics/update-tool/logger.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"logger.js","sourceRoot":"","sources":["logger.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAUU,QAAA,aAAa,GAAiB;IACzC,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;IAC5B,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;IAC5B,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;IAC5B,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IAC1B,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;CAC3B,CAAC"} -------------------------------------------------------------------------------- /schematics/ng-generate/drag-drop/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { Rule } from '@angular-devkit/schematics'; 9 | import { Schema } from './schema'; 10 | /** Scaffolds a new Angular component that uses the Drag and Drop module. */ 11 | export default function (options: Schema): Rule; 12 | -------------------------------------------------------------------------------- /schematics/migration.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "./node_modules/@angular-devkit/schematics/collection-schema.json", 3 | "schematics": { 4 | "migration-v21": { 5 | "version": "21.0.0-0", 6 | "description": "Updates the Angular CDK to v21", 7 | "factory": "./ng-update/index#updateToV21" 8 | }, 9 | "ng-post-update": { 10 | "description": "Prints out results after ng-update.", 11 | "factory": "./ng-update/index#postUpdate", 12 | "private": true 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /schematics/utils/get-project.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"get-project.js","sourceRoot":"","sources":["get-project.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AASH,0DAiBC;AAxBD,2DAA+D;AAG/D;;;GAGG;AACH,SAAgB,uBAAuB,CACrC,SAA8B,EAC9B,WAA+B;IAE/B,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,yFAAyF;QACzF,6FAA6F;QAC7F,MAAM,IAAI,gCAAmB,CAAC,2BAA2B,CAAC,CAAC;IAC7D,CAAC;IAED,MAAM,OAAO,GAAG,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAEpD,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,gCAAmB,CAAC,wCAAwC,WAAW,EAAE,CAAC,CAAC;IACvF,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC"} -------------------------------------------------------------------------------- /fesm2022/_focus-key-manager-chunk.mjs: -------------------------------------------------------------------------------- 1 | import { ListKeyManager } from './_list-key-manager-chunk.mjs'; 2 | 3 | class FocusKeyManager extends ListKeyManager { 4 | _origin = 'program'; 5 | setFocusOrigin(origin) { 6 | this._origin = origin; 7 | return this; 8 | } 9 | setActiveItem(item) { 10 | super.setActiveItem(item); 11 | if (this.activeItem) { 12 | this.activeItem.focus(this._origin); 13 | } 14 | } 15 | } 16 | 17 | export { FocusKeyManager }; 18 | //# sourceMappingURL=_focus-key-manager-chunk.mjs.map 19 | -------------------------------------------------------------------------------- /schematics/utils/ast/ng-module-imports.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { Tree } from '@angular-devkit/schematics'; 9 | /** 10 | * Whether the Angular module in the given path imports the specified module class name. 11 | */ 12 | export declare function hasNgModuleImport(tree: Tree, modulePath: string, className: string): boolean; 13 | -------------------------------------------------------------------------------- /schematics/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | export * from './utils'; 9 | export * from './ng-update/public-api'; 10 | export * from './update-tool/public-api'; 11 | export * from '@schematics/angular/utility/ast-utils'; 12 | export * from '@schematics/angular/utility/ng-ast-utils'; 13 | import * as parse5 from 'parse5'; 14 | export { parse5 }; 15 | -------------------------------------------------------------------------------- /schematics/update-tool/logger.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | export interface UpdateLogger { 9 | debug(message: string): void; 10 | error(message: string): void; 11 | fatal(message: string): void; 12 | info(message: string): void; 13 | warn(message: string): void; 14 | } 15 | export declare const defaultLogger: UpdateLogger; 16 | -------------------------------------------------------------------------------- /schematics/update-tool/utils/diagnostics.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import * as ts from 'typescript'; 9 | import { FileSystem } from '../file-system'; 10 | /** Formats the specified diagnostics with respect to the given file system. */ 11 | export declare function formatDiagnostics(diagnostics: ts.Diagnostic[], fileSystem: FileSystem): string; 12 | -------------------------------------------------------------------------------- /fesm2022/_activedescendant-key-manager-chunk.mjs: -------------------------------------------------------------------------------- 1 | import { ListKeyManager } from './_list-key-manager-chunk.mjs'; 2 | 3 | class ActiveDescendantKeyManager extends ListKeyManager { 4 | setActiveItem(index) { 5 | if (this.activeItem) { 6 | this.activeItem.setInactiveStyles(); 7 | } 8 | super.setActiveItem(index); 9 | if (this.activeItem) { 10 | this.activeItem.setActiveStyles(); 11 | } 12 | } 13 | } 14 | 15 | export { ActiveDescendantKeyManager }; 16 | //# sourceMappingURL=_activedescendant-key-manager-chunk.mjs.map 17 | -------------------------------------------------------------------------------- /schematics/utils/project-main-file.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { Path } from '@angular-devkit/core'; 9 | import { ProjectDefinition } from '@schematics/angular/utility'; 10 | /** Looks for the main TypeScript file in the given project and returns its path. */ 11 | export declare function getProjectMainFile(project: ProjectDefinition): Path; 12 | -------------------------------------------------------------------------------- /schematics/utils/project-main-file.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"project-main-file.js","sourceRoot":"","sources":["project-main-file.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAQH,gDAeC;AApBD,2DAA+D;AAC/D,uDAA0D;AAG1D,oFAAoF;AACpF,SAAgB,kBAAkB,CAAC,OAA0B;IAC3D,MAAM,YAAY,GAAG,IAAA,yCAAuB,EAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAE/D,iFAAiF;IACjF,qEAAqE;IACrE,MAAM,QAAQ,GAAG,CAAC,YAAY,CAAC,SAAS,CAAC,IAAI,YAAY,CAAC,MAAM,CAAC,CAAqB,CAAC;IAEvF,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,gCAAmB,CAC3B,qDAAqD;YACnD,qBAAqB,OAAO,CAAC,UAAU,GAAG,CAC7C,CAAC;IACJ,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC"} -------------------------------------------------------------------------------- /schematics/update-tool/utils/property-name.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"property-name.js","sourceRoot":"","sources":["property-name.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAWH,kDAKC;AAGD,kDAEC;AAnBD,iCAAiC;AAKjC;;;GAGG;AACH,SAAgB,mBAAmB,CAAC,IAAqB;IACvD,IAAI,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAAE,CAAC;QAC1D,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,yDAAyD;AACzD,SAAgB,mBAAmB,CAAC,IAAqB;IACvD,OAAO,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;AACxF,CAAC"} -------------------------------------------------------------------------------- /schematics/update-tool/update-recorder.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | /** Update recorder that can be used to apply changes to a source file. */ 9 | export interface UpdateRecorder { 10 | insertLeft(index: number, content: string): UpdateRecorder; 11 | insertRight(index: number, content: string): UpdateRecorder; 12 | remove(index: number, length: number): UpdateRecorder; 13 | } 14 | -------------------------------------------------------------------------------- /fesm2022/collections.mjs: -------------------------------------------------------------------------------- 1 | export { UniqueSelectionDispatcher } from './_unique-selection-dispatcher-chunk.mjs'; 2 | export { ArrayDataSource, _RecycleViewRepeaterStrategy, _ViewRepeaterOperation } from './_recycle-view-repeater-strategy-chunk.mjs'; 3 | export { DataSource, isDataSource } from './_data-source-chunk.mjs'; 4 | export { _DisposeViewRepeaterStrategy } from './_dispose-view-repeater-strategy-chunk.mjs'; 5 | export { SelectionModel, getMultipleValuesInSingleSelectionError } from './_selection-model-chunk.mjs'; 6 | import '@angular/core'; 7 | import 'rxjs'; 8 | //# sourceMappingURL=collections.mjs.map 9 | -------------------------------------------------------------------------------- /schematics/utils/project-index-file.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { ProjectDefinition } from '@schematics/angular/utility'; 9 | /** 10 | * Gets the path of the index file in the given project. 11 | * This only searches the base options for each target and not any defined target configurations. 12 | */ 13 | export declare function getProjectIndexFiles(project: ProjectDefinition): string[]; 14 | -------------------------------------------------------------------------------- /fesm2022/cdk.mjs.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"cdk.mjs","sources":["../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/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.dev/license\n */\n\nimport {Version} from '@angular/core';\n\n/** Current version of the Angular Component Development Kit. */\nexport const VERSION = new Version('21.1.0-next.2+sha-d28d065');\n"],"names":["VERSION","Version"],"mappings":";;MAWaA,OAAO,GAAG,IAAIC,OAAO,CAAC,mBAAmB;;;;"} -------------------------------------------------------------------------------- /schematics/ng-update/data/class-names.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { VersionChanges } from '../../update-tool/version-changes'; 9 | export interface ClassNameUpgradeData { 10 | /** The Class name to replace. */ 11 | replace: string; 12 | /** The new name for the Class. */ 13 | replaceWith: string; 14 | } 15 | export declare const classNames: VersionChanges; 16 | -------------------------------------------------------------------------------- /schematics/utils/parse5-element.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { DefaultTreeAdapterMap } from 'parse5'; 9 | export type Element = DefaultTreeAdapterMap['element']; 10 | export type ChildNode = DefaultTreeAdapterMap['childNode']; 11 | /** Determines the indentation of child elements for the given Parse5 element. */ 12 | export declare function getChildElementIndentation(element: Element): number; 13 | -------------------------------------------------------------------------------- /fesm2022/_fake-event-detection-chunk.mjs: -------------------------------------------------------------------------------- 1 | function isFakeMousedownFromScreenReader(event) { 2 | return event.buttons === 0 || event.detail === 0; 3 | } 4 | function isFakeTouchstartFromScreenReader(event) { 5 | const touch = event.touches && event.touches[0] || event.changedTouches && event.changedTouches[0]; 6 | return !!touch && touch.identifier === -1 && (touch.radiusX == null || touch.radiusX === 1) && (touch.radiusY == null || touch.radiusY === 1); 7 | } 8 | 9 | export { isFakeMousedownFromScreenReader, isFakeTouchstartFromScreenReader }; 10 | //# sourceMappingURL=_fake-event-detection-chunk.mjs.map 11 | -------------------------------------------------------------------------------- /schematics/update-tool/public-api.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | export * from './component-resource-collector'; 9 | export * from './file-system'; 10 | export * from './index'; 11 | export * from './migration'; 12 | export * from './target-version'; 13 | export * from './utils/decorators'; 14 | export * from './utils/imports'; 15 | export * from './utils/property-name'; 16 | export * from './version-changes'; 17 | -------------------------------------------------------------------------------- /schematics/ng-update/typescript/literal.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"literal.js","sourceRoot":"","sources":["literal.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAKH,0DAOC;AASD,kDAIC;AAvBD,iCAAiC;AAEjC,8EAA8E;AAC9E,SAAgB,uBAAuB,CAAC,KAAa,EAAE,MAAc;IACnE,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IACX,OAAO,CAAC,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;QACjD,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACjB,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,mBAAmB,CACjC,IAAa;IAEb,OAAO,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,+BAA+B,CAAC,IAAI,CAAC,CAAC;AAC9E,CAAC"} -------------------------------------------------------------------------------- /text-field-prebuilt.css: -------------------------------------------------------------------------------- 1 | textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms} 2 | -------------------------------------------------------------------------------- /schematics/utils/get-project.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { ProjectDefinition, WorkspaceDefinition } from '@schematics/angular/utility'; 9 | /** 10 | * Finds the specified project configuration in the workspace. Throws an error if the project 11 | * couldn't be found. 12 | */ 13 | export declare function getProjectFromWorkspace(workspace: WorkspaceDefinition, projectName: string | undefined): ProjectDefinition; 14 | -------------------------------------------------------------------------------- /schematics/ng-update/data/element-selectors.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { VersionChanges } from '../../update-tool/version-changes'; 9 | export interface ElementSelectorUpgradeData { 10 | /** The element name to replace. */ 11 | replace: string; 12 | /** The new name for the element. */ 13 | replaceWith: string; 14 | } 15 | export declare const elementSelectors: VersionChanges; 16 | -------------------------------------------------------------------------------- /schematics/ng-update/data/method-call-checks.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { VersionChanges } from '../../update-tool/version-changes'; 9 | export interface MethodCallUpgradeData { 10 | className: string; 11 | method: string; 12 | invalidArgCounts: { 13 | count: number; 14 | message: string; 15 | }[]; 16 | } 17 | export declare const methodCallChecks: VersionChanges; 18 | -------------------------------------------------------------------------------- /schematics/ng-update/typescript/base-types.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"base-types.js","sourceRoot":"","sources":["base-types.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAKH,gDAUC;AAbD,iCAAiC;AAEjC,oEAAoE;AACpE,SAAgB,kBAAkB,CAAC,IAAyB;IAC1D,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC;QAC1B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,IAAI,CAAC,eAAe;SACxB,MAAM,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,EAAsC,CAAC;SAC7F,GAAG,CAAC,cAAc,CAAC,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC;SAChD,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC,UAAU,IAAI,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;SAC/D,GAAG,CAAC,UAAU,CAAC,EAAE,CAAE,UAA4B,CAAC,IAAI,CAAC,CAAC;AAC3D,CAAC"} -------------------------------------------------------------------------------- /schematics/update-tool/target-version.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | /** Possible versions that can be automatically migrated by `ng update`. */ 9 | export declare enum TargetVersion { 10 | V21 = "version 21" 11 | } 12 | /** 13 | * Returns all versions that are supported by "ng update". The versions are determined 14 | * based on the "TargetVersion" enum. 15 | */ 16 | export declare function getAllVersionNames(): string[]; 17 | -------------------------------------------------------------------------------- /schematics/update-tool/logger.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | exports.defaultLogger = void 0; 11 | exports.defaultLogger = { 12 | debug: m => console.debug(m), 13 | error: m => console.error(m), 14 | fatal: m => console.error(m), 15 | info: m => console.info(m), 16 | warn: m => console.warn(m), 17 | }; 18 | //# sourceMappingURL=logger.js.map -------------------------------------------------------------------------------- /schematics/utils/project-style-file.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { ProjectDefinition } from '@schematics/angular/utility'; 9 | /** 10 | * Gets a style file with the given extension in a project and returns its path. If no 11 | * extension is specified, any style file with a valid extension will be returned. 12 | */ 13 | export declare function getProjectStyleFile(project: ProjectDefinition, extension?: string): string | null; 14 | -------------------------------------------------------------------------------- /schematics/ng-update/data/attribute-selectors.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { VersionChanges } from '../../update-tool/version-changes'; 9 | export interface AttributeSelectorUpgradeData { 10 | /** The attribute name to replace. */ 11 | replace: string; 12 | /** The new name for the attribute. */ 13 | replaceWith: string; 14 | } 15 | export declare const attributeSelectors: VersionChanges; 16 | -------------------------------------------------------------------------------- /fesm2022/_element-chunk.mjs: -------------------------------------------------------------------------------- 1 | import { ElementRef } from '@angular/core'; 2 | 3 | function coerceNumberProperty(value, fallbackValue = 0) { 4 | if (_isNumberValue(value)) { 5 | return Number(value); 6 | } 7 | return arguments.length === 2 ? fallbackValue : 0; 8 | } 9 | function _isNumberValue(value) { 10 | return !isNaN(parseFloat(value)) && !isNaN(Number(value)); 11 | } 12 | 13 | function coerceElement(elementOrRef) { 14 | return elementOrRef instanceof ElementRef ? elementOrRef.nativeElement : elementOrRef; 15 | } 16 | 17 | export { _isNumberValue, coerceElement, coerceNumberProperty }; 18 | //# sourceMappingURL=_element-chunk.mjs.map 19 | -------------------------------------------------------------------------------- /types/_number-property-chunk.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Type describing the allowed values for a number input 3 | * @docs-private 4 | */ 5 | type NumberInput = string | number | null | undefined; 6 | /** Coerces a data-bound value (typically a string) to a number. */ 7 | declare function coerceNumberProperty(value: any): number; 8 | declare function coerceNumberProperty(value: any, fallback: D): number | D; 9 | /** 10 | * Whether the provided value is considered a number. 11 | * @docs-private 12 | */ 13 | declare function _isNumberValue(value: any): boolean; 14 | 15 | export { _isNumberValue, coerceNumberProperty }; 16 | export type { NumberInput }; 17 | -------------------------------------------------------------------------------- /schematics/collection.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "./node_modules/@angular-devkit/schematics/collection-schema.json", 3 | "schematics": { 4 | "ng-add": { 5 | "description": "Installs the Angular CDK", 6 | "factory": "./ng-add/index", 7 | "schema": "./ng-add/schema.json", 8 | "aliases": ["install"], 9 | "hidden": true 10 | }, 11 | "drag-drop": { 12 | "description": "Generates a component using the Drag and Drop module", 13 | "factory": "./ng-generate/drag-drop/index", 14 | "schema": "./ng-generate/drag-drop/schema.json", 15 | "aliases": ["dragdrop", "drag-and-drop"] 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /schematics/update-tool/utils/functions.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import * as ts from 'typescript'; 9 | /** 10 | * Unwraps a given expression TypeScript node. Expressions can be wrapped within multiple 11 | * parentheses. e.g. "(((({exp}))))()". The function should return the TypeScript node 12 | * referring to the inner expression. e.g "exp". 13 | */ 14 | export declare function unwrapExpression(node: ts.Expression | ts.ParenthesizedExpression): ts.Expression; 15 | -------------------------------------------------------------------------------- /schematics/ng-update/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAUH,kCAOC;AAdD,kEAA4D;AAC5D,iDAA8C;AAC9C,mEAA8F;AAE9F,MAAM,aAAa,GAA8B,EAAE,CAAC;AAEpD,iFAAiF;AACjF,SAAgB,WAAW;IACzB,OAAO,IAAA,oDAA4B,EACjC,8BAAa,CAAC,GAAG,EACjB,aAAa,EACb,6BAAc,EACd,mBAAmB,CACpB,CAAC;AACJ,CAAC;AAED,iEAAiE;AACjE,SAAS,mBAAmB,CAC1B,OAAyB,EACzB,aAA4B,EAC5B,WAAoB;IAEpB,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACxB,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,+BAA+B,aAAa,EAAE,CAAC,CAAC;IACpE,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAExB,IAAI,WAAW,EAAE,CAAC;QAChB,OAAO,CAAC,MAAM,CAAC,IAAI,CACjB,wFAAwF;YACtF,6CAA6C,CAChD,CAAC;IACJ,CAAC;AACH,CAAC"} -------------------------------------------------------------------------------- /schematics/update-tool/file-system.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | exports.FileSystem = void 0; 11 | /** 12 | * Abstraction of the file system that migrations can use to record and apply 13 | * changes. This is necessary to support virtual file systems as used in the CLI devkit. 14 | */ 15 | class FileSystem { 16 | } 17 | exports.FileSystem = FileSystem; 18 | //# sourceMappingURL=file-system.js.map -------------------------------------------------------------------------------- /schematics/ng-update/data/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | export * from './attribute-selectors'; 9 | export * from './class-names'; 10 | export * from './constructor-checks'; 11 | export * from './css-selectors'; 12 | export * from './css-tokens'; 13 | export * from './element-selectors'; 14 | export * from './input-names'; 15 | export * from './method-call-checks'; 16 | export * from './output-names'; 17 | export * from './property-names'; 18 | export * from './symbol-removal'; 19 | -------------------------------------------------------------------------------- /schematics/utils/parse5-element.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"parse5-element.js","sourceRoot":"","sources":["parse5-element.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAWH,gEAqBC;AA9BD,2DAA+D;AAQ/D,iFAAiF;AACjF,SAAgB,0BAA0B,CAAC,OAAgB;IACzD,MAAM,YAAY,GAAG,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAE,IAAgB,CAAC,OAAO,CAAmB,CAAC;IAElG,IAAI,CAAC,YAAY,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC,IAAI,CAAC,OAAO,CAAC,kBAAkB,EAAE,CAAC;QACtF,MAAM,IAAI,gCAAmB,CAC3B,yDAAyD;YACvD,2EAA2E,CAC9E,CAAC;IACJ,CAAC;IAED,MAAM,YAAY,GAAG,YAAY;QAC/B,CAAC,CAAC,+EAA+E;YAC/E,2DAA2D;YAC3D,YAAY,CAAC,kBAAmB,CAAC,QAAQ;QAC3C,CAAC,CAAC,2FAA2F;YAC3F,iBAAiB;YACjB,OAAO,CAAC,kBAAmB,CAAC,QAAQ,GAAG,CAAC,CAAC;IAE7C,yFAAyF;IACzF,8EAA8E;IAC9E,OAAO,YAAY,GAAG,CAAC,CAAC;AAC1B,CAAC"} -------------------------------------------------------------------------------- /schematics/ng-update/data/symbol-removal.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { VersionChanges } from '../../update-tool/version-changes'; 9 | export interface SymbolRemovalUpgradeData { 10 | /** Module that the symbol was removed from. */ 11 | module: string; 12 | /** Name of the symbol being removed. */ 13 | name: string; 14 | /** Message to log explaining why the symbol was removed. */ 15 | message: string; 16 | } 17 | export declare const symbolRemoval: VersionChanges; 18 | -------------------------------------------------------------------------------- /schematics/ng-update/upgrade-data.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"upgrade-data.js","sourceRoot":"","sources":["upgrade-data.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAmEH,sDAaC;AA7ED,oEAAmG;AACnG,iCAuBgB;AAEhB,wCAAwC;AAC3B,QAAA,cAAc,GAAgB;IACzC,kBAAkB,EAAlB,yBAAkB;IAClB,UAAU,EAAV,iBAAU;IACV,iBAAiB,EAAjB,wBAAiB;IACjB,YAAY,EAAZ,mBAAY;IACZ,SAAS,EAAT,gBAAS;IACT,gBAAgB,EAAhB,uBAAgB;IAChB,UAAU,EAAV,iBAAU;IACV,gBAAgB,EAAhB,uBAAgB;IAChB,WAAW,EAAX,kBAAW;IACX,aAAa,EAAb,oBAAa;IACb,aAAa,EAAb,oBAAa;CACd,CAAC;AAoBF;;;;GAIG;AACH,SAAgB,qBAAqB,CAGnC,SAAiC,EAAE,QAAW;IAC9C,IAAI,SAAS,CAAC,aAAa,KAAK,IAAI,EAAE,CAAC;QACrC,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,+FAA+F;IAC/F,OAAO,IAAA,qCAAmB,EACxB,SAAS,CAAC,aAAa,EACvB,SAAS,CAAC,WAAW,CAAC,QAAQ,CAAiC,CAChE,CAAC;AACJ,CAAC"} -------------------------------------------------------------------------------- /schematics/ng-update/data/constructor-checks.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | exports.constructorChecks = void 0; 11 | /** 12 | * List of class names for which the constructor signature has been changed. The new constructor 13 | * signature types don't need to be stored here because the signature will be determined 14 | * automatically through type checking. 15 | */ 16 | exports.constructorChecks = {}; 17 | //# sourceMappingURL=constructor-checks.js.map -------------------------------------------------------------------------------- /schematics/utils/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | export * from './ast'; 9 | export * from './ast/ng-module-imports'; 10 | export * from './build-component'; 11 | export * from './get-project'; 12 | export * from './html-manipulation'; 13 | export * from './parse5-element'; 14 | export * from './project-index-file'; 15 | export * from './project-main-file'; 16 | export * from './project-style-file'; 17 | export * from './project-targets'; 18 | export * from './project-tsconfig-paths'; 19 | export * from './schematic-options'; 20 | -------------------------------------------------------------------------------- /schematics/update-tool/utils/imports.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import * as ts from 'typescript'; 9 | /** Interface describing a resolved import. */ 10 | export interface Import { 11 | /** Name of the imported symbol. */ 12 | symbolName: string; 13 | /** Module name from which the symbol has been imported. */ 14 | moduleName: string; 15 | } 16 | /** Resolves the import of the specified identifier. */ 17 | export declare function getImportOfIdentifier(node: ts.Identifier, typeChecker: ts.TypeChecker): Import | null; 18 | -------------------------------------------------------------------------------- /schematics/ng-update/data/constructor-checks.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { VersionChanges } from '../../update-tool/version-changes'; 9 | export type ConstructorChecksUpgradeData = string; 10 | /** 11 | * List of class names for which the constructor signature has been changed. The new constructor 12 | * signature types don't need to be stored here because the signature will be determined 13 | * automatically through type checking. 14 | */ 15 | export declare const constructorChecks: VersionChanges; 16 | -------------------------------------------------------------------------------- /schematics/paths.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | exports.MIGRATION_PATH = exports.COLLECTION_PATH = void 0; 11 | const path_1 = require("path"); 12 | /** Path to the schematic collection for non-migration schematics. */ 13 | exports.COLLECTION_PATH = (0, path_1.join)(__dirname, 'collection.json'); 14 | /** Path to the schematic collection that includes the migrations. */ 15 | exports.MIGRATION_PATH = (0, path_1.join)(__dirname, 'migration.json'); 16 | //# sourceMappingURL=paths.js.map -------------------------------------------------------------------------------- /types/_style-loader-chunk.d.ts: -------------------------------------------------------------------------------- 1 | import * as i0 from '@angular/core'; 2 | import { Type } from '@angular/core'; 3 | 4 | /** 5 | * Service that loads structural styles dynamically 6 | * and ensures that they're only loaded once per app. 7 | */ 8 | declare class _CdkPrivateStyleLoader { 9 | private _appRef; 10 | private _injector; 11 | private _environmentInjector; 12 | /** 13 | * Loads a set of styles. 14 | * @param loader Component which will be instantiated to load the styles. 15 | */ 16 | load(loader: Type): void; 17 | static ɵfac: i0.ɵɵFactoryDeclaration<_CdkPrivateStyleLoader, never>; 18 | static ɵprov: i0.ɵɵInjectableDeclaration<_CdkPrivateStyleLoader>; 19 | } 20 | 21 | export { _CdkPrivateStyleLoader }; 22 | -------------------------------------------------------------------------------- /schematics/ng-update/public-api.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | export * from './data/index'; 9 | export * from './devkit-migration'; 10 | export * from './devkit-migration-rule'; 11 | export * from './devkit-file-system'; 12 | export * from './html-parsing/angular'; 13 | export * from './html-parsing/elements'; 14 | export * from './typescript/base-types'; 15 | export * from './typescript/imports'; 16 | export * from './typescript/literal'; 17 | export * from './typescript/module-specifiers'; 18 | export * from './find-stylesheets'; 19 | export * from './upgrade-data'; 20 | -------------------------------------------------------------------------------- /schematics/update-tool/utils/parse-tsconfig.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import * as ts from 'typescript'; 9 | import { FileSystem, WorkspacePath } from '../file-system'; 10 | /** Class capturing a tsconfig parse error. */ 11 | export declare class TsconfigParseError extends Error { 12 | } 13 | /** 14 | * Attempts to parse the specified tsconfig file. 15 | * 16 | * @throws {TsconfigParseError} If the tsconfig could not be read or parsed. 17 | */ 18 | export declare function parseTsconfigFile(tsconfigPath: WorkspacePath, fileSystem: FileSystem): ts.ParsedCommandLine; 19 | -------------------------------------------------------------------------------- /fesm2022/_passive-listeners-chunk.mjs: -------------------------------------------------------------------------------- 1 | let supportsPassiveEvents; 2 | function supportsPassiveEventListeners() { 3 | if (supportsPassiveEvents == null && typeof window !== 'undefined') { 4 | try { 5 | window.addEventListener('test', null, Object.defineProperty({}, 'passive', { 6 | get: () => supportsPassiveEvents = true 7 | })); 8 | } finally { 9 | supportsPassiveEvents = supportsPassiveEvents || false; 10 | } 11 | } 12 | return supportsPassiveEvents; 13 | } 14 | function normalizePassiveListenerOptions(options) { 15 | return supportsPassiveEventListeners() ? options : !!options.capture; 16 | } 17 | 18 | export { normalizePassiveListenerOptions, supportsPassiveEventListeners }; 19 | //# sourceMappingURL=_passive-listeners-chunk.mjs.map 20 | -------------------------------------------------------------------------------- /schematics/ng-generate/drag-drop/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;AAYH,4BAaC;AAvBD,2DAAmE;AACnE,uCAKqB;AAGrB,4EAA4E;AAC5E,mBAAyB,OAAe;IACtC,OAAO,IAAA,kBAAK,EAAC;QACX,IAAA,sBAAc,oBACR,OAAO,GACX;YACE,QAAQ,EACN,kFAAkF;YACpF,UAAU,EACR,uFAAuF;SAC1F,CACF;QACD,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,IAAA,iBAAI,GAAE,CAAC,CAAC,CAAC,0BAA0B,CAAC,OAAO,CAAC;KAClE,CAAC,CAAC;AACL,CAAC;AAED,uEAAuE;AACvE,SAAS,0BAA0B,CAAC,OAAe;IACjD,OAAO,CAAO,IAAU,EAAE,EAAE;QAC1B,MAAM,YAAY,GAAG,MAAM,IAAA,6BAAqB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAEhE,IAAI,CAAC,YAAY,EAAE,CAAC;YAClB,MAAM,UAAU,GAAG,MAAM,IAAA,6BAAqB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;YAC9D,IAAA,+BAAuB,EAAC,IAAI,EAAE,UAAW,EAAE,gBAAgB,EAAE,wBAAwB,CAAC,CAAC;QACzF,CAAC;IACH,CAAC,CAAA,CAAC;AACJ,CAAC"} -------------------------------------------------------------------------------- /schematics/ng-update/find-stylesheets.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { Tree } from '@angular-devkit/schematics'; 9 | /** 10 | * Finds stylesheets in the given directory from within the specified tree. 11 | * @param tree Devkit tree where stylesheet files can be found in. 12 | * @param startDirectory Optional start directory where stylesheets should be searched in. 13 | * This can be useful if only stylesheets within a given folder are relevant (to avoid 14 | * unnecessary iterations). 15 | */ 16 | export declare function findStylesheetFiles(tree: Tree, startDirectory?: string): string[]; 17 | -------------------------------------------------------------------------------- /schematics/ng-update/migrations/misc-template.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { ResolvedResource } from '../../update-tool/component-resource-collector'; 9 | import { Migration } from '../../update-tool/migration'; 10 | import { UpgradeData } from '../upgrade-data'; 11 | /** 12 | * Migration that walks through every template and reports if there are 13 | * instances of outdated Angular CDK API that can't be migrated automatically. 14 | */ 15 | export declare class MiscTemplateMigration extends Migration { 16 | enabled: boolean; 17 | visitTemplate(template: ResolvedResource): void; 18 | } 19 | -------------------------------------------------------------------------------- /schematics/ng-add/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { Rule } from '@angular-devkit/schematics'; 9 | /** 10 | * Schematic factory entry-point for the `ng-add` schematic. The ng-add schematic will be 11 | * automatically executed if developers run `ng add @angular/cdk`. 12 | * 13 | * By default, the CLI already installs the package that has been specified with `ng add`. 14 | * We just store the version in the `package.json` in case the package manager didn't. Also 15 | * this ensures that there will be no error that says that the CDK does not support `ng add`. 16 | */ 17 | export default function (): Rule; 18 | -------------------------------------------------------------------------------- /schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template: -------------------------------------------------------------------------------- 1 |
2 |

To do

3 | 4 |
6 | @for (item of todo; track item) { 7 |
{{item}}
8 | } 9 |
10 |
11 | 12 |
13 |

Done

14 | 15 |
17 | @for (item of done; track item) { 18 |
{{item}}
19 | } 20 |
21 |
22 | -------------------------------------------------------------------------------- /schematics/ng-update/migrations/symbol-removal.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import * as ts from 'typescript'; 9 | import { Migration } from '../../update-tool/migration'; 10 | import { SymbolRemovalUpgradeData } from '../data'; 11 | import { UpgradeData } from '../upgrade-data'; 12 | /** Migration that flags imports for symbols that have been removed. */ 13 | export declare class SymbolRemovalMigration extends Migration { 14 | /** Change data that upgrades to the specified target version. */ 15 | data: SymbolRemovalUpgradeData[]; 16 | enabled: boolean; 17 | visitNode(node: ts.Node): void; 18 | } 19 | -------------------------------------------------------------------------------- /schematics/ng-update/typescript/module-specifiers.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"module-specifiers.js","sourceRoot":"","sources":["module-specifiers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAYH,kEAEC;AAGD,kEAEC;AAhBD,mDAAiF;AAEjF,qDAAqD;AACxC,QAAA,uBAAuB,GAAG,mBAAmB,CAAC;AAE3D,gDAAgD;AACnC,QAAA,kBAAkB,GAAG,cAAc,CAAC;AAEjD,2FAA2F;AAC3F,SAAgB,2BAA2B,CAAC,IAAa;IACvD,OAAO,qBAAqB,CAAC,IAAA,8BAAoB,EAAC,IAAI,CAAC,CAAC,CAAC;AAC3D,CAAC;AAED,2FAA2F;AAC3F,SAAgB,2BAA2B,CAAC,IAAa;IACvD,OAAO,qBAAqB,CAAC,IAAA,8BAAoB,EAAC,IAAI,CAAC,CAAC,CAAC;AAC3D,CAAC;AAED,2DAA2D;AAC3D,SAAS,qBAAqB,CAAC,WAAwD;IACrF,IAAI,CAAC,WAAW,CAAC,eAAe,EAAE,CAAC;QACjC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,eAAe,GAAG,WAAW,CAAC,eAAe,CAAC,OAAO,EAAE,CAAC;IAC9D,OAAO,CACL,eAAe,CAAC,OAAO,CAAC,+BAAuB,CAAC,KAAK,CAAC,CAAC;QACvD,eAAe,CAAC,OAAO,CAAC,0BAAkB,CAAC,KAAK,CAAC,CAAC,CACnD,CAAC;AACJ,CAAC"} -------------------------------------------------------------------------------- /schematics/update-tool/version-changes.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"version-changes.js","sourceRoot":"","sources":["version-changes.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAwBH,kDAOC;AAOD,sCAIC;AAxCD,qDAA+C;AAc/C;;;;;;;GAOG;AACH,SAAgB,mBAAmB,CAAI,MAAqB,EAAE,IAAuB;IACnF,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,MAAM,OAAO,GAAI,8BAAwC,CAAC,MAAM,CAAC,CAAC;QAClE,MAAM,IAAI,KAAK,CAAC,8CAA8C,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,EAAS,CAAC,CAAC;AACnG,CAAC;AAED;;;;GAIG;AACH,SAAgB,aAAa,CAAI,IAAuB;IACtD,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;SACrB,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC,mBAAmB,CAAC,aAA8B,EAAE,IAAI,CAAC,CAAC;SAC/E,MAAM,CAAC,CAAC,MAAM,EAAE,WAAW,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,EAAE,CAAC,CAAC;AACrE,CAAC"} -------------------------------------------------------------------------------- /fesm2022/_css-pixel-value-chunk.mjs.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"_css-pixel-value-chunk.mjs","sources":["../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/src/cdk/coercion/css-pixel-value.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.dev/license\n */\n\n/** Coerces a value to a CSS pixel value. */\nexport function coerceCssPixelValue(value: any): string {\n if (value == null) {\n return '';\n }\n\n return typeof value === 'string' ? value : `${value}px`;\n}\n"],"names":["coerceCssPixelValue","value"],"mappings":"AASM,SAAUA,mBAAmBA,CAACC,KAAU,EAAA;EAC5C,IAAIA,KAAK,IAAI,IAAI,EAAE;AACjB,IAAA,OAAO,EAAE;AACX;EAEA,OAAO,OAAOA,KAAK,KAAK,QAAQ,GAAGA,KAAK,GAAG,CAAGA,EAAAA,KAAK,CAAI,EAAA,CAAA;AACzD;;;;"} -------------------------------------------------------------------------------- /schematics/ng-update/data/property-names.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { VersionChanges } from '../../update-tool/version-changes'; 9 | export interface PropertyNameUpgradeData { 10 | /** The property name to replace. */ 11 | replace: string; 12 | /** The new name for the property. */ 13 | replaceWith: string; 14 | /** Controls which classes in which this replacement is made. */ 15 | limitedTo: { 16 | /** Replace the property only when its type is one of the given Classes. */ 17 | classes: string[]; 18 | }; 19 | } 20 | export declare const propertyNames: VersionChanges; 21 | -------------------------------------------------------------------------------- /schematics/update-tool/utils/diagnostics.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | exports.formatDiagnostics = formatDiagnostics; 11 | const ts = require("typescript"); 12 | const virtual_host_1 = require("./virtual-host"); 13 | /** Formats the specified diagnostics with respect to the given file system. */ 14 | function formatDiagnostics(diagnostics, fileSystem) { 15 | const formatHost = (0, virtual_host_1.createFormatDiagnosticHost)(fileSystem); 16 | return ts.formatDiagnosticsWithColorAndContext(diagnostics, formatHost); 17 | } 18 | //# sourceMappingURL=diagnostics.js.map -------------------------------------------------------------------------------- /fesm2022/_array-chunk.mjs.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"_array-chunk.mjs","sources":["../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/src/cdk/coercion/array.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.dev/license\n */\n\n/** Wraps the provided value in an array, unless the provided value is an array. */\nexport function coerceArray(value: T | T[]): T[];\nexport function coerceArray(value: T | readonly T[]): readonly T[];\nexport function coerceArray(value: T | T[]): T[] {\n return Array.isArray(value) ? value : [value];\n}\n"],"names":["coerceArray","value","Array","isArray"],"mappings":"AAWM,SAAUA,WAAWA,CAAIC,KAAc,EAAA;EAC3C,OAAOC,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,GAAGA,KAAK,GAAG,CAACA,KAAK,CAAC;AAC/C;;;;"} -------------------------------------------------------------------------------- /schematics/update-tool/utils/functions.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | exports.unwrapExpression = unwrapExpression; 11 | const ts = require("typescript"); 12 | /** 13 | * Unwraps a given expression TypeScript node. Expressions can be wrapped within multiple 14 | * parentheses. e.g. "(((({exp}))))()". The function should return the TypeScript node 15 | * referring to the inner expression. e.g "exp". 16 | */ 17 | function unwrapExpression(node) { 18 | return ts.isParenthesizedExpression(node) ? unwrapExpression(node.expression) : node; 19 | } 20 | //# sourceMappingURL=functions.js.map -------------------------------------------------------------------------------- /schematics/update-tool/utils/line-mappings.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | export interface LineAndCharacter { 9 | character: number; 10 | line: number; 11 | } 12 | /** Gets the line and character for the given position from the line starts map. */ 13 | export declare function getLineAndCharacterFromPosition(lineStartsMap: number[], position: number): { 14 | character: number; 15 | line: number; 16 | }; 17 | /** 18 | * Computes the line start map of the given text. This can be used in order to 19 | * retrieve the line and character of a given text position index. 20 | */ 21 | export declare function computeLineStartsMap(text: string): number[]; 22 | -------------------------------------------------------------------------------- /schematics/update-tool/utils/property-name.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import * as ts from 'typescript'; 9 | /** Type that describes a property name with an obtainable text. */ 10 | type PropertyNameWithText = Exclude; 11 | /** 12 | * Gets the text of the given property name. Returns null if the property 13 | * name couldn't be determined statically. 14 | */ 15 | export declare function getPropertyNameText(node: ts.PropertyName): string | null; 16 | /** Checks whether the given property name has a text. */ 17 | export declare function hasPropertyNameText(node: ts.PropertyName): node is PropertyNameWithText; 18 | export {}; 19 | -------------------------------------------------------------------------------- /schematics/utils/project-tsconfig-paths.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { Tree } from '@angular-devkit/schematics'; 9 | import { ProjectDefinition, WorkspaceDefinition } from '@schematics/angular/utility'; 10 | import { WorkspacePath } from '../update-tool/file-system'; 11 | /** Gets the tsconfig path from the given target within the specified project. */ 12 | export declare function getTargetTsconfigPath(project: ProjectDefinition, targetName: string): WorkspacePath | null; 13 | /** Resolve the workspace configuration of the specified tree gracefully. */ 14 | export declare function getWorkspaceConfigGracefully(tree: Tree): Promise; 15 | -------------------------------------------------------------------------------- /schematics/ng-update/devkit-migration.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | exports.DevkitMigration = void 0; 11 | const migration_1 = require("../update-tool/migration"); 12 | class DevkitMigration extends migration_1.Migration { 13 | /** Prints an informative message with context on the current target. */ 14 | printInfo(text) { 15 | const targetName = this.context.isTestTarget ? 'test' : 'build'; 16 | this.logger.info(`- ${this.context.projectName}@${targetName}: ${text}`); 17 | } 18 | } 19 | exports.DevkitMigration = DevkitMigration; 20 | //# sourceMappingURL=devkit-migration.js.map -------------------------------------------------------------------------------- /types/bidi.d.ts: -------------------------------------------------------------------------------- 1 | export { BidiModule, Dir, Direction, Directionality } from './_bidi-module-chunk.js'; 2 | import { InjectionToken } from '@angular/core'; 3 | 4 | /** 5 | * Injection token used to inject the document into Directionality. 6 | * This is used so that the value can be faked in tests. 7 | * 8 | * We can't use the real document in tests because changing the real `dir` causes geometry-based 9 | * tests in Safari to fail. 10 | * 11 | * We also can't re-provide the DOCUMENT token from platform-browser because the unit tests 12 | * themselves use things like `querySelector` in test code. 13 | * 14 | * This token is defined in a separate file from Directionality as a workaround for 15 | * https://github.com/angular/angular/issues/22559 16 | * 17 | * @docs-private 18 | */ 19 | declare const DIR_DOCUMENT: InjectionToken; 20 | 21 | export { DIR_DOCUMENT }; 22 | -------------------------------------------------------------------------------- /schematics/utils/project-tsconfig-paths.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"project-tsconfig-paths.js","sourceRoot":"","sources":["project-tsconfig-paths.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;AAWH,sDAMC;AAGD,oEAcC;AAhCD,+CAA+C;AAE/C,yDAAkG;AAGlG,qEAAqE;AACrE,MAAM,2BAA2B,GAAG,CAAC,eAAe,EAAE,gBAAgB,CAAC,CAAC;AAExE,iFAAiF;AACjF,SAAgB,qBAAqB,CACnC,OAA0B,EAC1B,UAAkB;;IAElB,MAAM,QAAQ,GAAG,MAAA,MAAA,MAAA,OAAO,CAAC,OAAO,0CAAE,GAAG,CAAC,UAAU,CAAC,0CAAE,OAAO,0CAAG,UAAU,CAAC,CAAC;IACzE,OAAO,QAAQ,CAAC,CAAC,CAAC,IAAA,gBAAS,EAAC,QAAkB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AACzD,CAAC;AAED,4EAA4E;AAC5E,SAAsB,4BAA4B,CAChD,IAAU;;QAEV,MAAM,IAAI,GAAG,2BAA2B,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;QAEjF,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,OAAO,IAAI,CAAC;QACd,CAAC;QAED,IAAI,CAAC;YACH,OAAO,IAAA,uBAAa,EAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACnC,CAAC;QAAC,WAAM,CAAC;YACP,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;CAAA"} -------------------------------------------------------------------------------- /schematics/utils/html-manipulation.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { Tree } from '@angular-devkit/schematics'; 9 | import { Element } from './parse5-element'; 10 | /** Appends the given element HTML fragment to the `` element of the specified HTML file. */ 11 | export declare function appendHtmlElementToHead(host: Tree, htmlFilePath: string, elementHtml: string): void; 12 | /** Parses the given HTML file and returns the head element if available. */ 13 | export declare function getHtmlHeadTagElement(htmlContent: string): Element | null; 14 | /** Adds a class to the body of the document. */ 15 | export declare function addBodyClass(host: Tree, htmlFilePath: string, className: string): void; 16 | -------------------------------------------------------------------------------- /schematics/ng-update/typescript/module-specifiers.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import * as ts from 'typescript'; 9 | /** Name of the Angular Material module specifier. */ 10 | export declare const materialModuleSpecifier = "@angular/material"; 11 | /** Name of the Angular CDK module specifier. */ 12 | export declare const cdkModuleSpecifier = "@angular/cdk"; 13 | /** Whether the specified node is part of an Angular Material or CDK import declaration. */ 14 | export declare function isMaterialImportDeclaration(node: ts.Node): boolean; 15 | /** Whether the specified node is part of an Angular Material or CDK import declaration. */ 16 | export declare function isMaterialExportDeclaration(node: ts.Node): boolean; 17 | -------------------------------------------------------------------------------- /fesm2022/coercion.mjs: -------------------------------------------------------------------------------- 1 | export { _isNumberValue, coerceElement, coerceNumberProperty } from './_element-chunk.mjs'; 2 | export { coerceArray } from './_array-chunk.mjs'; 3 | export { coerceCssPixelValue } from './_css-pixel-value-chunk.mjs'; 4 | import '@angular/core'; 5 | 6 | function coerceBooleanProperty(value) { 7 | return value != null && `${value}` !== 'false'; 8 | } 9 | 10 | function coerceStringArray(value, separator = /\s+/) { 11 | const result = []; 12 | if (value != null) { 13 | const sourceValues = Array.isArray(value) ? value : `${value}`.split(separator); 14 | for (const sourceValue of sourceValues) { 15 | const trimmedString = `${sourceValue}`.trim(); 16 | if (trimmedString) { 17 | result.push(trimmedString); 18 | } 19 | } 20 | } 21 | return result; 22 | } 23 | 24 | export { coerceBooleanProperty, coerceStringArray }; 25 | //# sourceMappingURL=coercion.mjs.map 26 | -------------------------------------------------------------------------------- /schematics/ng-update/find-stylesheets.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"find-stylesheets.js","sourceRoot":"","sources":["find-stylesheets.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAeH,kDAqBC;AAlCD,+CAAgD;AAGhD,uDAAuD;AACvD,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;AAE3C;;;;;;GAMG;AACH,SAAgB,mBAAmB,CAAC,IAAU,EAAE,iBAAyB,GAAG;IAC1E,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,MAAM,QAAQ,GAAG,CAAC,OAAa,EAAE,EAAE;QACjC,MAAM,EAAC,QAAQ,EAAE,OAAO,EAAC,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAEjD,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;YAC1B,IAAI,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;gBACpC,MAAM,CAAC,IAAI,CAAC,IAAA,WAAI,EAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;YACvC,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,4EAA4E;QAC5E,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;YACzB,4EAA4E;YAC5E,IAAI,QAAQ,KAAK,cAAc,IAAI,QAAQ,KAAK,MAAM,EAAE,CAAC;gBACvD,QAAQ,CAAC,IAAA,WAAI,EAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;YACpC,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;IACF,QAAQ,CAAC,cAAsB,CAAC,CAAC;IACjC,OAAO,MAAM,CAAC;AAChB,CAAC"} -------------------------------------------------------------------------------- /schematics/utils/build-component.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { Rule } from '@angular-devkit/schematics'; 9 | import { Schema as ComponentOptions } from '@schematics/angular/component/schema'; 10 | /** 11 | * Rule that copies and interpolates the files that belong to this schematic context. Additionally 12 | * a list of file paths can be passed to this rule in order to expose them inside the EJS 13 | * template context. 14 | * 15 | * This allows inlining the external template or stylesheet files in EJS without having 16 | * to manually duplicate the file content. 17 | */ 18 | export declare function buildComponent(options: ComponentOptions, additionalFiles?: { 19 | [key: string]: string; 20 | }): Rule; 21 | -------------------------------------------------------------------------------- /schematics/ng-update/data/input-names.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { VersionChanges } from '../../update-tool/version-changes'; 9 | export interface InputNameUpgradeData { 10 | /** The @Input() name to replace. */ 11 | replace: string; 12 | /** The new name for the @Input(). */ 13 | replaceWith: string; 14 | /** Controls which elements and attributes in which this replacement is made. */ 15 | limitedTo: { 16 | /** Limit to elements with any of these element tags. */ 17 | elements?: string[]; 18 | /** Limit to elements with any of these attributes. */ 19 | attributes?: string[]; 20 | }; 21 | } 22 | export declare const inputNames: VersionChanges; 23 | -------------------------------------------------------------------------------- /schematics/ng-update/data/output-names.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { VersionChanges } from '../../update-tool/version-changes'; 9 | export interface OutputNameUpgradeData { 10 | /** The @Output() name to replace. */ 11 | replace: string; 12 | /** The new name for the @Output(). */ 13 | replaceWith: string; 14 | /** Controls which elements and attributes in which this replacement is made. */ 15 | limitedTo: { 16 | /** Limit to elements with any of these element tags. */ 17 | elements?: string[]; 18 | /** Limit to elements with any of these attributes. */ 19 | attributes?: string[]; 20 | }; 21 | } 22 | export declare const outputNames: VersionChanges; 23 | -------------------------------------------------------------------------------- /schematics/utils/project-index-file.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"project-index-file.js","sourceRoot":"","sources":["project-index-file.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAUH,oDA2BC;AAnCD,2CAAqC;AACrC,uDAAyD;AAGzD;;;GAGG;AACH,SAAgB,oBAAoB,CAAC,OAA0B;;IAC7D,+FAA+F;IAC/F,MAAM,KAAK,GAAG,IAAI,GAAG,EAAU,CAAC;IAEhC,KAAK,MAAM,MAAM,IAAI,IAAA,wCAAsB,EAAC,OAAO,CAAC,EAAE,CAAC;QACrD,MAAM,UAAU,GAAG,MAAA,MAAM,CAAC,OAAO,0CAAG,OAAO,CAAC,CAAC;QAE7C,QAAQ,OAAO,UAAU,EAAE,CAAC;YAC1B,KAAK,QAAQ;gBACX,4BAA4B;gBAC5B,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;gBACtB,MAAM;YACR,KAAK,QAAQ;gBACX,8CAA8C;gBAC9C,IAAI,UAAU,IAAI,OAAO,IAAI,UAAU,EAAE,CAAC;oBACxC,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAW,CAAC,CAAC;gBAC3C,CAAC;gBACD,MAAM;YACR,KAAK,WAAW;gBACd,uFAAuF;gBACvF,2FAA2F;gBAC3F,KAAK,CAAC,GAAG,CAAC,IAAA,YAAI,EAAC,MAAA,OAAO,CAAC,UAAU,mCAAI,IAAA,YAAI,EAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC;gBAC/E,MAAM;QACV,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC3B,CAAC"} -------------------------------------------------------------------------------- /schematics/ng-update/migrations/property-names.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import * as ts from 'typescript'; 9 | import { Migration } from '../../update-tool/migration'; 10 | import { PropertyNameUpgradeData } from '../data'; 11 | import { UpgradeData } from '../upgrade-data'; 12 | /** 13 | * Migration that walks through every property access expression and updates 14 | * accessed properties that have been updated to a new name. 15 | */ 16 | export declare class PropertyNamesMigration extends Migration { 17 | /** Change data that upgrades to the specified target version. */ 18 | data: PropertyNameUpgradeData[]; 19 | enabled: boolean; 20 | visitNode(node: ts.Node): void; 21 | private _visitPropertyAccessExpression; 22 | } 23 | -------------------------------------------------------------------------------- /schematics/update-tool/utils/decorators.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import * as ts from 'typescript'; 9 | import { Import } from './imports'; 10 | export type CallExpressionDecorator = ts.Decorator & { 11 | expression: ts.CallExpression; 12 | }; 13 | export interface NgDecorator { 14 | name: string; 15 | node: CallExpressionDecorator; 16 | } 17 | /** 18 | * Gets all decorators which are imported from an Angular package 19 | * (e.g. "@angular/core") from a list of decorators. 20 | */ 21 | export declare function getAngularDecorators(typeChecker: ts.TypeChecker, decorators: readonly ts.Decorator[]): readonly NgDecorator[]; 22 | export declare function getCallDecoratorImport(typeChecker: ts.TypeChecker, decorator: ts.Decorator): Import | null; 23 | -------------------------------------------------------------------------------- /schematics/ng-update/typescript/base-types.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | exports.determineBaseTypes = determineBaseTypes; 11 | const ts = require("typescript"); 12 | /** Determines the base types of the specified class declaration. */ 13 | function determineBaseTypes(node) { 14 | if (!node.heritageClauses) { 15 | return null; 16 | } 17 | return node.heritageClauses 18 | .reduce((types, clause) => types.concat(clause.types), []) 19 | .map(typeExpression => typeExpression.expression) 20 | .filter(expression => expression && ts.isIdentifier(expression)) 21 | .map(identifier => identifier.text); 22 | } 23 | //# sourceMappingURL=base-types.js.map -------------------------------------------------------------------------------- /schematics/ng-update/migrations/method-call-arguments.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import * as ts from 'typescript'; 9 | import { Migration } from '../../update-tool/migration'; 10 | import { MethodCallUpgradeData } from '../data'; 11 | import { UpgradeData } from '../upgrade-data'; 12 | /** 13 | * Migration that visits every TypeScript method call expression and checks if the 14 | * argument count is invalid and needs to be *manually* updated. 15 | */ 16 | export declare class MethodCallArgumentsMigration extends Migration { 17 | /** Change data that upgrades to the specified target version. */ 18 | data: MethodCallUpgradeData[]; 19 | enabled: boolean; 20 | visitNode(node: ts.Node): void; 21 | private _checkPropertyAccessMethodCall; 22 | } 23 | -------------------------------------------------------------------------------- /schematics/utils/project-targets.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { JsonValue } from '@angular-devkit/core'; 9 | import { ProjectDefinition, TargetDefinition } from '@schematics/angular/utility'; 10 | /** Resolves the architect options for the build target of the given project. */ 11 | export declare function getProjectTargetOptions(project: ProjectDefinition, buildTarget: string): Record; 12 | /** Gets all of the default CLI-provided build targets in a project. */ 13 | export declare function getProjectBuildTargets(project: ProjectDefinition): TargetDefinition[]; 14 | /** Gets all of the default CLI-provided testing targets in a project. */ 15 | export declare function getProjectTestTargets(project: ProjectDefinition): TargetDefinition[]; 16 | -------------------------------------------------------------------------------- /schematics/ng-update/migrations/output-names.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { ResolvedResource } from '../../update-tool/component-resource-collector'; 9 | import { Migration } from '../../update-tool/migration'; 10 | import { OutputNameUpgradeData } from '../data'; 11 | import { UpgradeData } from '../upgrade-data'; 12 | /** 13 | * Migration that walks through every inline or external HTML template and switches 14 | * changed output binding names to the proper new output name. 15 | */ 16 | export declare class OutputNamesMigration extends Migration { 17 | /** Change data that upgrades to the specified target version. */ 18 | data: OutputNameUpgradeData[]; 19 | enabled: boolean; 20 | visitTemplate(template: ResolvedResource): void; 21 | private _replaceOutputName; 22 | } 23 | -------------------------------------------------------------------------------- /schematics/ng-update/migrations/misc-template.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | exports.MiscTemplateMigration = void 0; 11 | const migration_1 = require("../../update-tool/migration"); 12 | /** 13 | * Migration that walks through every template and reports if there are 14 | * instances of outdated Angular CDK API that can't be migrated automatically. 15 | */ 16 | class MiscTemplateMigration extends migration_1.Migration { 17 | constructor() { 18 | super(...arguments); 19 | // There are currently no migrations for V19 deprecations. 20 | this.enabled = false; 21 | } 22 | visitTemplate(template) { } 23 | } 24 | exports.MiscTemplateMigration = MiscTemplateMigration; 25 | //# sourceMappingURL=misc-template.js.map -------------------------------------------------------------------------------- /fesm2022/coercion-private.mjs.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"coercion-private.mjs","sources":["../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/src/cdk/coercion/private/observable.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.dev/license\n */\nimport {Observable, isObservable, of as observableOf} from 'rxjs';\n\n/**\n * Given either an Observable or non-Observable value, returns either the original\n * Observable, or wraps it in an Observable that emits the non-Observable value.\n */\nexport function coerceObservable(data: T | Observable): Observable {\n if (!isObservable(data)) {\n return observableOf(data);\n }\n return data;\n}\n"],"names":["coerceObservable","data","isObservable","observableOf"],"mappings":";;AAaM,SAAUA,gBAAgBA,CAAIC,IAAuB,EAAA;AACzD,EAAA,IAAI,CAACC,YAAY,CAACD,IAAI,CAAC,EAAE;IACvB,OAAOE,EAAY,CAACF,IAAI,CAAC;AAC3B;AACA,EAAA,OAAOA,IAAI;AACb;;;;"} -------------------------------------------------------------------------------- /schematics/ng-update/data/css-tokens.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { VersionChanges } from '../../update-tool/version-changes'; 9 | export interface CssTokenUpgradeData { 10 | /** The CSS selector to replace. */ 11 | replace: string; 12 | /** The new CSS selector. */ 13 | replaceWith: string; 14 | /** 15 | * Controls which file types in which this replacement is made. If omitted, it is made in all 16 | * files. 17 | */ 18 | replaceIn?: { 19 | /** Replace this name in stylesheet files. */ 20 | stylesheet?: boolean; 21 | /** Replace this name in HTML files. */ 22 | html?: boolean; 23 | /** Replace this name in TypeScript strings. */ 24 | tsStringLiterals?: boolean; 25 | }; 26 | } 27 | export declare const cssTokens: VersionChanges; 28 | -------------------------------------------------------------------------------- /schematics/ng-update/data/css-selectors.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { VersionChanges } from '../../update-tool/version-changes'; 9 | export interface CssSelectorUpgradeData { 10 | /** The CSS selector to replace. */ 11 | replace: string; 12 | /** The new CSS selector. */ 13 | replaceWith: string; 14 | /** 15 | * Controls which file types in which this replacement is made. If omitted, it is made in all 16 | * files. 17 | */ 18 | replaceIn?: { 19 | /** Replace this name in stylesheet files. */ 20 | stylesheet?: boolean; 21 | /** Replace this name in HTML files. */ 22 | html?: boolean; 23 | /** Replace this name in TypeScript strings. */ 24 | tsStringLiterals?: boolean; 25 | }; 26 | } 27 | export declare const cssSelectors: VersionChanges; 28 | -------------------------------------------------------------------------------- /schematics/ng-update/migrations/class-inheritance.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import * as ts from 'typescript'; 9 | import { Migration } from '../../update-tool/migration'; 10 | import { PropertyNameUpgradeData } from '../data/property-names'; 11 | import { UpgradeData } from '../upgrade-data'; 12 | /** 13 | * Migration that identifies class declarations that extend CDK or Material classes 14 | * which had a public property change. 15 | */ 16 | export declare class ClassInheritanceMigration extends Migration { 17 | /** 18 | * Map of classes that have been updated. Each class name maps to the according property 19 | * change data. 20 | */ 21 | propertyNames: Map; 22 | enabled: boolean; 23 | init(): void; 24 | visitNode(node: ts.Node): void; 25 | private _visitClassDeclaration; 26 | } 27 | -------------------------------------------------------------------------------- /schematics/ng-update/typescript/literal.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import * as ts from 'typescript'; 9 | /** Finds all start indices of the given search string in the input string. */ 10 | export declare function findAllSubstringIndices(input: string, search: string): number[]; 11 | /** 12 | * Checks whether the given node is either a string literal or a no-substitution template 13 | * literal. Note that we cannot use `ts.isStringLiteralLike()` because if developers update 14 | * an outdated project, their TypeScript version is not automatically being updated 15 | * and therefore could throw because the function is not available yet. 16 | * https://github.com/Microsoft/TypeScript/commit/8518343dc8762475a5e92c9f80b5c5725bd81796 17 | */ 18 | export declare function isStringLiteralLike(node: ts.Node): node is ts.StringLiteral | ts.NoSubstitutionTemplateLiteral; 19 | -------------------------------------------------------------------------------- /schematics/update-tool/utils/property-name.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | exports.getPropertyNameText = getPropertyNameText; 11 | exports.hasPropertyNameText = hasPropertyNameText; 12 | const ts = require("typescript"); 13 | /** 14 | * Gets the text of the given property name. Returns null if the property 15 | * name couldn't be determined statically. 16 | */ 17 | function getPropertyNameText(node) { 18 | if (ts.isIdentifier(node) || ts.isStringLiteralLike(node)) { 19 | return node.text; 20 | } 21 | return null; 22 | } 23 | /** Checks whether the given property name has a text. */ 24 | function hasPropertyNameText(node) { 25 | return ts.isStringLiteral(node) || ts.isNumericLiteral(node) || ts.isIdentifier(node); 26 | } 27 | //# sourceMappingURL=property-name.js.map -------------------------------------------------------------------------------- /schematics/ng-update/typescript/imports.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import * as ts from 'typescript'; 9 | /** Checks whether the given node is part of an import specifier node. */ 10 | export declare function isImportSpecifierNode(node: ts.Node): boolean; 11 | /** Checks whether the given node is part of an export specifier node. */ 12 | export declare function isExportSpecifierNode(node: ts.Node): boolean; 13 | /** Checks whether the given node is part of a namespace import. */ 14 | export declare function isNamespaceImportNode(node: ts.Node): boolean; 15 | /** Finds the parent import declaration of a given TypeScript node. */ 16 | export declare function getImportDeclaration(node: ts.Node): ts.ImportDeclaration; 17 | /** Finds the parent export declaration of a given TypeScript node */ 18 | export declare function getExportDeclaration(node: ts.Node): ts.ExportDeclaration; 19 | -------------------------------------------------------------------------------- /schematics/ng-update/html-parsing/angular.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | /** Finds the specified Angular @Input in the given elements with tag name. */ 9 | export declare function findInputsOnElementWithTag(html: string, inputName: string, tagNames: string[]): number[]; 10 | /** Finds the specified Angular @Input in elements that have one of the specified attributes. */ 11 | export declare function findInputsOnElementWithAttr(html: string, inputName: string, attrs: string[]): number[]; 12 | /** Finds the specified Angular @Output in the given elements with tag name. */ 13 | export declare function findOutputsOnElementWithTag(html: string, outputName: string, tagNames: string[]): number[]; 14 | /** Finds the specified Angular @Output in elements that have one of the specified attributes. */ 15 | export declare function findOutputsOnElementWithAttr(html: string, outputName: string, attrs: string[]): number[]; 16 | -------------------------------------------------------------------------------- /schematics/update-tool/migration.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"migration.js","sourceRoot":"","sources":["migration.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,iCAAiC;AAuBjC,MAAsB,SAAS;IAO7B;IACE,4CAA4C;IACrC,OAAmB;IAC1B,qDAAqD;IAC9C,WAA2B;IAClC;;;OAGG;IACI,aAAmC;IAC1C,sCAAsC;IAC/B,OAAgB;IACvB,4CAA4C;IACrC,WAAiB;IACxB,wDAAwD;IACjD,UAAsB;IAC7B,0EAA0E;IACnE,MAAoB;QAfpB,YAAO,GAAP,OAAO,CAAY;QAEnB,gBAAW,GAAX,WAAW,CAAgB;QAK3B,kBAAa,GAAb,aAAa,CAAsB;QAEnC,YAAO,GAAP,OAAO,CAAS;QAEhB,gBAAW,GAAX,WAAW,CAAM;QAEjB,eAAU,GAAV,UAAU,CAAY;QAEtB,WAAM,GAAN,MAAM,CAAc;QAvB7B,2DAA2D;QAC3D,aAAQ,GAAuB,EAAE,CAAC;IAuB/B,CAAC;IAEJ,oEAAoE;IACpE,IAAI,KAAU,CAAC;IAEf;;;OAGG;IACH,YAAY,KAAU,CAAC;IAEvB;;;;;OAKG;IACH,SAAS,CAAC,IAAa,IAAS,CAAC;IAEjC,2EAA2E;IAC3E,aAAa,CAAC,QAA0B,IAAS,CAAC;IAElD,qEAAqE;IACrE,eAAe,CAAC,UAA4B,IAAS,CAAC;IAEtD,6EAA6E;IACnE,mBAAmB,CAAC,IAAa,EAAE,OAAe;QAC1D,MAAM,UAAU,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;QACxC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;YACjB,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC;YACtD,QAAQ,EAAE,EAAE,CAAC,6BAA6B,CAAC,UAAU,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC;YACvE,OAAO,EAAE,OAAO;SACjB,CAAC,CAAC;IACL,CAAC;CACF;AA3DD,8BA2DC"} -------------------------------------------------------------------------------- /schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template: -------------------------------------------------------------------------------- 1 | import { <% if(!standalone) { %>waitForAsync, <% } %>ComponentFixture, TestBed } from '@angular/core/testing';<% if(!standalone) { %> 2 | import { DragDropModule } from '@angular/cdk/drag-drop';<% } %> 3 | import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component'; 4 | 5 | describe('<%= classify(name) %>Component', () => { 6 | let component: <%= classify(name) %>Component; 7 | let fixture: ComponentFixture<<%= classify(name) %>Component>;<% if(!standalone) { %> 8 | 9 | beforeEach(waitForAsync(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [<%= classify(name) %>Component], 12 | imports: [DragDropModule] 13 | }); 14 | }));<% } %> 15 | 16 | beforeEach(() => { 17 | fixture = TestBed.createComponent(<%= classify(name) %>Component); 18 | component = fixture.componentInstance; 19 | fixture.detectChanges(); 20 | }); 21 | 22 | it('should compile', () => { 23 | expect(component).toBeTruthy(); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /schematics/update-tool/target-version.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | exports.TargetVersion = void 0; 11 | exports.getAllVersionNames = getAllVersionNames; 12 | /** Possible versions that can be automatically migrated by `ng update`. */ 13 | // tslint:disable-next-line:prefer-const-enum 14 | var TargetVersion; 15 | (function (TargetVersion) { 16 | TargetVersion["V21"] = "version 21"; 17 | })(TargetVersion || (exports.TargetVersion = TargetVersion = {})); 18 | /** 19 | * Returns all versions that are supported by "ng update". The versions are determined 20 | * based on the "TargetVersion" enum. 21 | */ 22 | function getAllVersionNames() { 23 | return Object.keys(TargetVersion).filter(enumValue => { 24 | return typeof TargetVersion[enumValue] === 'string'; 25 | }); 26 | } 27 | //# sourceMappingURL=target-version.js.map -------------------------------------------------------------------------------- /schematics/utils/schematic-options.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { Schema } from '@schematics/angular/component/schema'; 9 | import { ProjectDefinition } from '@schematics/angular/utility'; 10 | import { Tree } from '@angular-devkit/schematics'; 11 | /** 12 | * Returns the default options for the `@schematics/angular:component` schematic which would 13 | * have been specified at project initialization (ng new or ng init). 14 | * 15 | * This is necessary because the Angular CLI only exposes the default values for the "--style", 16 | * "--inlineStyle", "--skipTests" and "--inlineTemplate" options to the "component" schematic. 17 | */ 18 | export declare function getDefaultComponentOptions(project: ProjectDefinition): Partial; 19 | /** Determines whether the schematic is configured to be standalone. */ 20 | export declare function isStandaloneSchematic(host: Tree, options: Schema): Promise; 21 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2025 Google LLC. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /schematics/update-tool/utils/decorators.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"decorators.js","sourceRoot":"","sources":["decorators.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAmBH,oDAWC;AAED,wDAeC;AA7CD,iCAAiC;AAEjC,uCAAwD;AAWxD;;;GAGG;AACH,SAAgB,oBAAoB,CAClC,WAA2B,EAC3B,UAAmC;IAEnC,OAAO,UAAU;SACd,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EAAC,IAAI,EAAE,UAAU,EAAE,sBAAsB,CAAC,WAAW,EAAE,IAAI,CAAC,EAAC,CAAC,CAAC;SAC5E,MAAM,CAAC,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC,UAAU,IAAI,UAAU,CAAC,UAAU,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;SACrF,GAAG,CAAC,CAAC,EAAC,IAAI,EAAE,UAAU,EAAC,EAAE,EAAE,CAAC,CAAC;QAC5B,IAAI,EAAE,IAA+B;QACrC,IAAI,EAAE,UAAW,CAAC,UAAU;KAC7B,CAAC,CAAC,CAAC;AACR,CAAC;AAED,SAAgB,sBAAsB,CACpC,WAA2B,EAC3B,SAAuB;IAEvB,IAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,CAAC;QAC/C,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,SAAS,GAAG,SAAS,CAAC,UAAU,CAAC,UAAU,CAAC;IAClD,IAAI,UAAU,GAAyB,IAAI,CAAC;IAC5C,IAAI,EAAE,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,CAAC;QAC/B,UAAU,GAAG,SAAS,CAAC;IACzB,CAAC;SAAM,IAAI,EAAE,CAAC,0BAA0B,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;QACvF,UAAU,GAAG,SAAS,CAAC,IAAI,CAAC;IAC9B,CAAC;IACD,OAAO,UAAU,CAAC,CAAC,CAAC,IAAA,+BAAqB,EAAC,UAAU,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC5E,CAAC"} -------------------------------------------------------------------------------- /fesm2022/keycodes.mjs.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"keycodes.mjs","sources":["../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/src/cdk/keycodes/modifiers.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.dev/license\n */\n\nexport type ModifierKey = 'altKey' | 'shiftKey' | 'ctrlKey' | 'metaKey';\n\n/**\n * Checks whether a modifier key is pressed.\n * @param event Event to be checked.\n */\nexport function hasModifierKey(event: KeyboardEvent, ...modifiers: ModifierKey[]): boolean {\n if (modifiers.length) {\n return modifiers.some(modifier => event[modifier]);\n }\n\n return event.altKey || event.shiftKey || event.ctrlKey || event.metaKey;\n}\n"],"names":["hasModifierKey","event","modifiers","length","some","modifier","altKey","shiftKey","ctrlKey","metaKey"],"mappings":";;SAcgBA,cAAcA,CAACC,KAAoB,EAAE,GAAGC,SAAwB,EAAA;EAC9E,IAAIA,SAAS,CAACC,MAAM,EAAE;IACpB,OAAOD,SAAS,CAACE,IAAI,CAACC,QAAQ,IAAIJ,KAAK,CAACI,QAAQ,CAAC,CAAC;AACpD;AAEA,EAAA,OAAOJ,KAAK,CAACK,MAAM,IAAIL,KAAK,CAACM,QAAQ,IAAIN,KAAK,CAACO,OAAO,IAAIP,KAAK,CAACQ,OAAO;AACzE;;;;"} -------------------------------------------------------------------------------- /schematics/ng-update/migrations/css-tokens.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import * as ts from 'typescript'; 9 | import { ResolvedResource } from '../../update-tool/component-resource-collector'; 10 | import { Migration } from '../../update-tool/migration'; 11 | import { CssTokenUpgradeData } from '../data/css-tokens'; 12 | import { UpgradeData } from '../upgrade-data'; 13 | /** 14 | * Migration that walks through every string literal, template and stylesheet in 15 | * order to migrate outdated CSS tokens to their new name. 16 | */ 17 | export declare class CssTokensMigration extends Migration { 18 | /** Change data that upgrades to the specified target version. */ 19 | data: CssTokenUpgradeData[]; 20 | enabled: boolean; 21 | visitNode(node: ts.Node): void; 22 | visitTemplate(template: ResolvedResource): void; 23 | visitStylesheet(stylesheet: ResolvedResource): void; 24 | private _visitStringLiteralLike; 25 | private _replaceSelector; 26 | } 27 | -------------------------------------------------------------------------------- /schematics/update-tool/utils/parse-tsconfig.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"parse-tsconfig.js","sourceRoot":"","sources":["parse-tsconfig.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAmBH,8CAkCC;AAnDD,iCAAiC;AAEjC,iDAA8C;AAC9C,+BAA6B;AAC7B,+CAAgD;AAEhD,sFAAsF;AACtF,MAAM,oBAAoB,GAAG,KAAK,CAAC;AAEnC,8CAA8C;AAC9C,MAAa,kBAAmB,SAAQ,KAAK;CAAG;AAAhD,gDAAgD;AAEhD;;;;GAIG;AACH,SAAgB,iBAAiB,CAC/B,YAA2B,EAC3B,UAAsB;IAEtB,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC;QACzC,MAAM,IAAI,kBAAkB,CAAC,gCAAgC,YAAY,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED,MAAM,EAAC,MAAM,EAAE,KAAK,EAAC,GAAG,EAAE,CAAC,cAAc,CACvC,YAAY,EACZ,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAE,CAC7C,CAAC;IAEF,4EAA4E;IAC5E,IAAI,KAAK,EAAE,CAAC;QACV,MAAM,IAAI,kBAAkB,CAAC,IAAA,+BAAiB,EAAC,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC;IACvE,CAAC;IAED,MAAM,MAAM,GAAG,EAAE,CAAC,0BAA0B,CAC1C,MAAM,EACN,IAAI,6BAAc,CAAC,UAAU,CAAC,EAC9B,IAAA,cAAO,EAAC,YAAY,CAAC,EACrB,EAAE,CACH,CAAC;IAEF,0FAA0F;IAC1F,8FAA8F;IAC9F,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,oBAAoB,CAAC,CAAC;IAEhF,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;QAClB,MAAM,IAAI,kBAAkB,CAAC,IAAA,+BAAiB,EAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;IACtE,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"} -------------------------------------------------------------------------------- /schematics/ng-update/migrations/css-selectors.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import * as ts from 'typescript'; 9 | import { ResolvedResource } from '../../update-tool/component-resource-collector'; 10 | import { Migration } from '../../update-tool/migration'; 11 | import { CssSelectorUpgradeData } from '../data/css-selectors'; 12 | import { UpgradeData } from '../upgrade-data'; 13 | /** 14 | * Migration that walks through every string literal, template and stylesheet in 15 | * order to migrate outdated CSS selectors to the new selector. 16 | */ 17 | export declare class CssSelectorsMigration extends Migration { 18 | /** Change data that upgrades to the specified target version. */ 19 | data: CssSelectorUpgradeData[]; 20 | enabled: boolean; 21 | visitNode(node: ts.Node): void; 22 | visitTemplate(template: ResolvedResource): void; 23 | visitStylesheet(stylesheet: ResolvedResource): void; 24 | private _visitStringLiteralLike; 25 | private _replaceSelector; 26 | } 27 | -------------------------------------------------------------------------------- /schematics/ng-update/migrations/element-selectors.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import * as ts from 'typescript'; 9 | import { ResolvedResource } from '../../update-tool/component-resource-collector'; 10 | import { Migration } from '../../update-tool/migration'; 11 | import { ElementSelectorUpgradeData } from '../data/element-selectors'; 12 | import { UpgradeData } from '../upgrade-data'; 13 | /** 14 | * Migration that walks through every string literal, template and stylesheet in order 15 | * to migrate outdated element selectors to the new one. 16 | */ 17 | export declare class ElementSelectorsMigration extends Migration { 18 | /** Change data that upgrades to the specified target version. */ 19 | data: ElementSelectorUpgradeData[]; 20 | enabled: boolean; 21 | visitNode(node: ts.Node): void; 22 | visitTemplate(template: ResolvedResource): void; 23 | visitStylesheet(stylesheet: ResolvedResource): void; 24 | private _visitStringLiteralLike; 25 | private _replaceSelector; 26 | } 27 | -------------------------------------------------------------------------------- /schematics/ng-update/migrations/input-names.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { ResolvedResource } from '../../update-tool/component-resource-collector'; 9 | import { Migration } from '../../update-tool/migration'; 10 | import { InputNameUpgradeData } from '../data'; 11 | import { UpgradeData } from '../upgrade-data'; 12 | /** 13 | * Migration that walks through every template or stylesheet and replaces outdated input 14 | * names to the new input name. Selectors in stylesheets could also target input 15 | * bindings declared as static attribute. See for example: 16 | * 17 | * e.g. `` becomes `my-component[color]` 18 | */ 19 | export declare class InputNamesMigration extends Migration { 20 | /** Change data that upgrades to the specified target version. */ 21 | data: InputNameUpgradeData[]; 22 | enabled: boolean; 23 | visitStylesheet(stylesheet: ResolvedResource): void; 24 | visitTemplate(template: ResolvedResource): void; 25 | private _replaceInputName; 26 | } 27 | -------------------------------------------------------------------------------- /schematics/ng-update/migrations/attribute-selectors.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import * as ts from 'typescript'; 9 | import { ResolvedResource } from '../../update-tool/component-resource-collector'; 10 | import { Migration } from '../../update-tool/migration'; 11 | import { AttributeSelectorUpgradeData } from '../data/attribute-selectors'; 12 | import { UpgradeData } from '../upgrade-data'; 13 | /** 14 | * Migration that walks through every string literal, template and stylesheet 15 | * in order to switch deprecated attribute selectors to the updated selector. 16 | */ 17 | export declare class AttributeSelectorsMigration extends Migration { 18 | /** Required upgrade changes for specified target version. */ 19 | data: AttributeSelectorUpgradeData[]; 20 | enabled: boolean; 21 | visitNode(node: ts.Node): void; 22 | visitTemplate(template: ResolvedResource): void; 23 | visitStylesheet(stylesheet: ResolvedResource): void; 24 | private _visitStringLiteralLike; 25 | private _replaceSelector; 26 | } 27 | -------------------------------------------------------------------------------- /schematics/ng-update/typescript/imports.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"imports.js","sourceRoot":"","sources":["imports.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAKH,sDAEC;AAGD,sDAEC;AAGD,sDAEC;AAGD,oDAEC;AAGD,oDAEC;AAzBD,iCAAiC;AAEjC,yEAAyE;AACzE,SAAgB,qBAAqB,CAAC,IAAa;IACjD,OAAO,YAAY,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;AAC3D,CAAC;AAED,yEAAyE;AACzE,SAAgB,qBAAqB,CAAC,IAAa;IACjD,OAAO,YAAY,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;AAC3D,CAAC;AAED,mEAAmE;AACnE,SAAgB,qBAAqB,CAAC,IAAa;IACjD,OAAO,YAAY,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;AAC3D,CAAC;AAED,sEAAsE;AACtE,SAAgB,oBAAoB,CAAC,IAAa;IAChD,OAAO,eAAe,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,iBAAiB,CAAyB,CAAC;AACxF,CAAC;AAED,qEAAqE;AACrE,SAAgB,oBAAoB,CAAC,IAAa;IAChD,OAAO,eAAe,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,iBAAiB,CAAyB,CAAC;AACxF,CAAC;AAED,6FAA6F;AAC7F,SAAS,eAAe,CAA0B,IAAa,EAAE,IAAO;IACtE,OAAO,IAAI,CAAC,IAAI,KAAK,IAAI,EAAE,CAAC;QAC1B,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED,gGAAgG;AAChG,SAAS,YAAY,CAA0B,IAAa,EAAE,IAAO;IACnE,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI,EAAE,CAAC;QACvB,OAAO,IAAI,CAAC;IACd,CAAC;SAAM,IAAI,IAAI,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,CAAC;QAClD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,YAAY,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AACzC,CAAC"} -------------------------------------------------------------------------------- /schematics/ng-update/migrations/symbol-removal.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"symbol-removal.js","sourceRoot":"","sources":["symbol-removal.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,iCAAiC;AACjC,2DAAsD;AAEtD,kDAAmE;AAEnE,uEAAuE;AACvE,MAAa,sBAAuB,SAAQ,qBAAsB;IAAlE;;QACE,iEAAiE;QACjE,SAAI,GAA+B,IAAA,oCAAqB,EAAC,IAAI,EAAE,eAAe,CAAC,CAAC;QAEhF,2DAA2D;QAC3D,YAAO,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC;IA+BnC,CAAC;IA7BU,SAAS,CAAC,IAAa;QAC9B,IAAI,CAAC,EAAE,CAAC,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,eAAe,CAAC,EAAE,CAAC;YAC/E,OAAO;QACT,CAAC;QAED,MAAM,aAAa,GAAG,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC;QAE3E,IAAI,CAAC,aAAa,IAAI,CAAC,EAAE,CAAC,cAAc,CAAC,aAAa,CAAC,EAAE,CAAC;YACxD,OAAO;QACT,CAAC;QAED,MAAM,iBAAiB,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CACxC,KAAK,CAAC,EAAE,CAAE,IAAI,CAAC,eAAoC,CAAC,IAAI,KAAK,KAAK,CAAC,MAAM,CAC1E,CAAC;QAEF,IAAI,CAAC,iBAAiB,CAAC,MAAM,EAAE,CAAC;YAC9B,OAAO;QACT,CAAC;QAED,aAAa,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;;YACvC,MAAM,WAAW,GAAG,CAAA,MAAA,OAAO,CAAC,YAAY,0CAAE,IAAI,KAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;YAEpE,iBAAiB,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;gBAChC,IAAI,KAAK,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;oBAC/B,IAAI,CAAC,mBAAmB,CAAC,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;gBACnD,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AApCD,wDAoCC"} -------------------------------------------------------------------------------- /schematics/utils/get-project.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | exports.getProjectFromWorkspace = getProjectFromWorkspace; 11 | const schematics_1 = require("@angular-devkit/schematics"); 12 | /** 13 | * Finds the specified project configuration in the workspace. Throws an error if the project 14 | * couldn't be found. 15 | */ 16 | function getProjectFromWorkspace(workspace, projectName) { 17 | if (!projectName) { 18 | // TODO(crisbeto): some schematics APIs have the project name as optional so for now it's 19 | // simpler to allow undefined and checking it at runtime. Eventually we should clean this up. 20 | throw new schematics_1.SchematicsException('Project name is required.'); 21 | } 22 | const project = workspace.projects.get(projectName); 23 | if (!project) { 24 | throw new schematics_1.SchematicsException(`Could not find project in workspace: ${projectName}`); 25 | } 26 | return project; 27 | } 28 | //# sourceMappingURL=get-project.js.map -------------------------------------------------------------------------------- /schematics/utils/project-main-file.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | exports.getProjectMainFile = getProjectMainFile; 11 | const schematics_1 = require("@angular-devkit/schematics"); 12 | const project_targets_1 = require("./project-targets"); 13 | /** Looks for the main TypeScript file in the given project and returns its path. */ 14 | function getProjectMainFile(project) { 15 | const buildOptions = (0, project_targets_1.getProjectTargetOptions)(project, 'build'); 16 | // `browser` is for the `@angular-devkit/build-angular:application` builder while 17 | // `main` is for the `@angular-devkit/build-angular:browser` builder. 18 | const mainPath = (buildOptions['browser'] || buildOptions['main']); 19 | if (!mainPath) { 20 | throw new schematics_1.SchematicsException(`Could not find the project main file inside of the ` + 21 | `workspace config (${project.sourceRoot})`); 22 | } 23 | return mainPath; 24 | } 25 | //# sourceMappingURL=project-main-file.js.map -------------------------------------------------------------------------------- /schematics/utils/project-style-file.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"project-style-file.js","sourceRoot":"","sources":["project-style-file.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAgBH,kDA8BC;AA5CD,+CAA4D;AAC5D,uDAA0D;AAG1D,oFAAoF;AACpF,MAAM,qBAAqB,GAAG,qBAAqB,CAAC;AAEpD,yFAAyF;AACzF,MAAM,mBAAmB,GAAG,eAAe,CAAC;AAE5C;;;GAGG;AACH,SAAgB,mBAAmB,CAAC,OAA0B,EAAE,SAAkB;IAChF,MAAM,YAAY,GAAG,IAAA,yCAAuB,EAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC/D,MAAM,WAAW,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;IAE3C,IAAI,WAAW,IAAI,IAAA,kBAAW,EAAC,WAAW,CAAC,IAAI,WAAW,CAAC,MAAM,EAAE,CAAC;QAClE,MAAM,MAAM,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,CAAqB,CAAC,KAAK,CAAC,CAAC,CAAC;QAEhG,8FAA8F;QAC9F,2FAA2F;QAC3F,MAAM,oBAAoB,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAC9C,SAAS,CAAC,CAAC,CAAC,IAAI,KAAK,UAAU,SAAS,EAAE,CAAC,CAAC,CAAC,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,CAC9E,CAAC;QAEF,IAAI,oBAAoB,EAAE,CAAC;YACzB,OAAO,IAAA,gBAAS,EAAC,oBAAoB,CAAC,CAAC;QACzC,CAAC;QAED,2FAA2F;QAC3F,2FAA2F;QAC3F,kBAAkB;QAClB,MAAM,iBAAiB,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAC3C,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAC5E,CAAC;QAEF,IAAI,iBAAiB,EAAE,CAAC;YACtB,OAAO,IAAA,gBAAS,EAAC,iBAAiB,CAAC,CAAC;QACtC,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"} -------------------------------------------------------------------------------- /schematics/ng-update/devkit-file-system.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { Path } from '@angular-devkit/core'; 9 | import { Tree, UpdateRecorder } from '@angular-devkit/schematics'; 10 | import { DirectoryEntry, FileSystem } from '../update-tool/file-system'; 11 | /** 12 | * File system that leverages the virtual tree from the CLI devkit. This file 13 | * system is commonly used by `ng update` migrations that run as part of the 14 | * Angular CLI. 15 | */ 16 | export declare class DevkitFileSystem extends FileSystem { 17 | private _tree; 18 | private _updateRecorderCache; 19 | constructor(_tree: Tree); 20 | resolve(...segments: string[]): Path; 21 | edit(filePath: Path): UpdateRecorder; 22 | commitEdits(): void; 23 | fileExists(filePath: Path): boolean; 24 | directoryExists(dirPath: Path): boolean; 25 | overwrite(filePath: Path, content: string): void; 26 | create(filePath: Path, content: string): void; 27 | delete(filePath: Path): void; 28 | read(filePath: Path): string | null; 29 | readDirectory(dirPath: Path): DirectoryEntry; 30 | } 31 | -------------------------------------------------------------------------------- /schematics/ng-update/html-parsing/angular.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"angular.js","sourceRoot":"","sources":["angular.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAKH,gEASC;AAGD,kEASC;AAGD,kEAKC;AAGD,oEAKC;AAxCD,yCAA0F;AAE1F,8EAA8E;AAC9E,SAAgB,0BAA0B,CAAC,IAAY,EAAE,SAAiB,EAAE,QAAkB;IAC5F,OAAO;QACL,kFAAkF;QAClF,GAAG,IAAA,wCAA6B,EAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,CAAC;QAC3D,+EAA+E;QAC/E,yFAAyF;QACzF,wDAAwD;QACxD,GAAG,IAAA,wCAA6B,EAAC,IAAI,EAAE,IAAI,SAAS,GAAG,EAAE,QAAQ,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;KAC7F,CAAC;AACJ,CAAC;AAED,gGAAgG;AAChG,SAAgB,2BAA2B,CAAC,IAAY,EAAE,SAAiB,EAAE,KAAe;IAC1F,OAAO;QACL,uFAAuF;QACvF,GAAG,IAAA,0CAA+B,EAAC,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC;QAC1D,+EAA+E;QAC/E,yFAAyF;QACzF,wDAAwD;QACxD,GAAG,IAAA,0CAA+B,EAAC,IAAI,EAAE,IAAI,SAAS,GAAG,EAAE,KAAK,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;KAC5F,CAAC;AACJ,CAAC;AAED,+EAA+E;AAC/E,SAAgB,2BAA2B,CAAC,IAAY,EAAE,UAAkB,EAAE,QAAkB;IAC9F,oFAAoF;IACpF,yFAAyF;IACzF,+CAA+C;IAC/C,OAAO,IAAA,wCAA6B,EAAC,IAAI,EAAE,IAAI,UAAU,GAAG,EAAE,QAAQ,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AACpG,CAAC;AAED,iGAAiG;AACjG,SAAgB,4BAA4B,CAAC,IAAY,EAAE,UAAkB,EAAE,KAAe;IAC5F,gFAAgF;IAChF,yFAAyF;IACzF,+CAA+C;IAC/C,OAAO,IAAA,0CAA+B,EAAC,IAAI,EAAE,IAAI,UAAU,GAAG,EAAE,KAAK,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AACnG,CAAC"} -------------------------------------------------------------------------------- /schematics/ng-update/migrations/output-names.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"output-names.js","sourceRoot":"","sources":["output-names.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAIH,2DAAsD;AAGtD,qDAAkG;AAClG,kDAAmE;AAEnE;;;GAGG;AACH,MAAa,oBAAqB,SAAQ,qBAAsB;IAAhE;;QACE,iEAAiE;QACjE,SAAI,GAA4B,IAAA,oCAAqB,EAAC,IAAI,EAAE,aAAa,CAAC,CAAC;QAE3E,2DAA2D;QAC3D,YAAO,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC;IAmCnC,CAAC;IAjCU,aAAa,CAAC,QAA0B;QAC/C,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YACvB,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;YACjC,MAAM,eAAe,GAAa,EAAE,CAAC;YAErC,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC;gBACzB,eAAe,CAAC,IAAI,CAClB,GAAG,IAAA,sCAA4B,EAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,UAAU,CAAC,CACtF,CAAC;YACJ,CAAC;YAED,IAAI,SAAS,CAAC,QAAQ,EAAE,CAAC;gBACvB,eAAe,CAAC,IAAI,CAClB,GAAG,IAAA,qCAA2B,EAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,QAAQ,CAAC,CACnF,CAAC;YACJ,CAAC;YAED,eAAe;iBACZ,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,KAAK,GAAG,MAAM,CAAC;iBACtC,OAAO,CAAC,KAAK,CAAC,EAAE,CACf,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,QAAQ,EAAE,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC,CACzF,CAAC;QACN,CAAC,CAAC,CAAC;IACL,CAAC;IAEO,kBAAkB,CACxB,QAAuB,EACvB,KAAa,EACb,KAAa,EACb,OAAe;QAEf,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;CACF;AAxCD,oDAwCC"} -------------------------------------------------------------------------------- /types/_platform-chunk.d.ts: -------------------------------------------------------------------------------- 1 | import * as i0 from '@angular/core'; 2 | 3 | /** 4 | * Service to detect the current platform by comparing the userAgent strings and 5 | * checking browser-specific global properties. 6 | */ 7 | declare class Platform { 8 | private _platformId; 9 | /** Whether the Angular application is being rendered in the browser. */ 10 | isBrowser: boolean; 11 | /** Whether the current browser is Microsoft Edge. */ 12 | EDGE: boolean; 13 | /** Whether the current rendering engine is Microsoft Trident. */ 14 | TRIDENT: boolean; 15 | /** Whether the current rendering engine is Blink. */ 16 | BLINK: boolean; 17 | /** Whether the current rendering engine is WebKit. */ 18 | WEBKIT: boolean; 19 | /** Whether the current platform is Apple iOS. */ 20 | IOS: boolean; 21 | /** Whether the current browser is Firefox. */ 22 | FIREFOX: boolean; 23 | /** Whether the current platform is Android. */ 24 | ANDROID: boolean; 25 | /** Whether the current browser is Safari. */ 26 | SAFARI: boolean; 27 | /** Backwards-compatible constructor. */ 28 | constructor(..._args: unknown[]); 29 | static ɵfac: i0.ɵɵFactoryDeclaration; 30 | static ɵprov: i0.ɵɵInjectableDeclaration; 31 | } 32 | 33 | export { Platform }; 34 | -------------------------------------------------------------------------------- /schematics/utils/project-targets.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"project-targets.js","sourceRoot":"","sources":["project-targets.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAkBH,0DAaC;AAGD,wDAEC;AAGD,sDAEC;AAtCD,2DAA+D;AAG/D,oEAAoE;AACpE,MAAM,gBAAgB,GAAG,IAAI,GAAG,CAAC;IAC/B,+CAA+C;IAC/C,2CAA2C;IAC3C,uCAAuC;IACvC,4BAA4B;CAC7B,CAAC,CAAC;AAEH,sEAAsE;AACtE,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,CAAC,qCAAqC,EAAE,sBAAsB,CAAC,CAAC,CAAC;AAE/F,gFAAgF;AAChF,SAAgB,uBAAuB,CACrC,OAA0B,EAC1B,WAAmB;;IAEnB,MAAM,OAAO,GAAG,MAAA,MAAA,OAAO,CAAC,OAAO,0CAAE,GAAG,CAAC,WAAW,CAAC,0CAAE,OAAO,CAAC;IAE3D,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,gCAAmB,CAC3B,sDAAsD,WAAW,GAAG,CACrE,CAAC;IACJ,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,uEAAuE;AACvE,SAAgB,sBAAsB,CAAC,OAA0B;IAC/D,OAAO,uBAAuB,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,IAAI,gBAAgB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC;AACjG,CAAC;AAED,yEAAyE;AACzE,SAAgB,qBAAqB,CAAC,OAA0B;IAC9D,OAAO,uBAAuB,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,IAAI,aAAa,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC;AAC9F,CAAC;AAED,2EAA2E;AAC3E,SAAS,uBAAuB,CAC9B,OAA0B,EAC1B,SAAgD;IAEhD,OAAO,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;SACtC,MAAM,CAAC,IAAI,CAAC,EAAE,WAAC,OAAA,SAAS,CAAC,MAAA,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,OAAO,CAAC,CAAA,EAAA,CAAC;SAC7D,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAE,CAAC,CAAC;AAC7C,CAAC"} -------------------------------------------------------------------------------- /fesm2022/keycodes.mjs: -------------------------------------------------------------------------------- 1 | export { A, ALT, APOSTROPHE, AT_SIGN, B, BACKSLASH, BACKSPACE, C, CAPS_LOCK, CLOSE_SQUARE_BRACKET, COMMA, CONTEXT_MENU, CONTROL, D, DASH, DELETE, DOWN_ARROW, E, EIGHT, END, ENTER, EQUALS, ESCAPE, F, F1, F10, F11, F12, F2, F3, F4, F5, F6, F7, F8, F9, FF_EQUALS, FF_MINUS, FF_MUTE, FF_SEMICOLON, FF_VOLUME_DOWN, FF_VOLUME_UP, FIRST_MEDIA, FIVE, FOUR, G, H, HOME, I, INSERT, J, K, L, LAST_MEDIA, LEFT_ARROW, M, MAC_ENTER, MAC_META, MAC_WK_CMD_LEFT, MAC_WK_CMD_RIGHT, META, MUTE, N, NINE, NUMPAD_DIVIDE, NUMPAD_EIGHT, NUMPAD_FIVE, NUMPAD_FOUR, NUMPAD_MINUS, NUMPAD_MULTIPLY, NUMPAD_NINE, NUMPAD_ONE, NUMPAD_PERIOD, NUMPAD_PLUS, NUMPAD_SEVEN, NUMPAD_SIX, NUMPAD_THREE, NUMPAD_TWO, NUMPAD_ZERO, NUM_CENTER, NUM_LOCK, O, ONE, OPEN_SQUARE_BRACKET, P, PAGE_DOWN, PAGE_UP, PAUSE, PERIOD, PLUS_SIGN, PRINT_SCREEN, Q, QUESTION_MARK, R, RIGHT_ARROW, S, SCROLL_LOCK, SEMICOLON, SEVEN, SHIFT, SINGLE_QUOTE, SIX, SLASH, SPACE, T, TAB, THREE, TILDE, TWO, U, UP_ARROW, V, VOLUME_DOWN, VOLUME_UP, W, X, Y, Z, ZERO } from './_keycodes-chunk.mjs'; 2 | 3 | function hasModifierKey(event, ...modifiers) { 4 | if (modifiers.length) { 5 | return modifiers.some(modifier => event[modifier]); 6 | } 7 | return event.altKey || event.shiftKey || event.ctrlKey || event.metaKey; 8 | } 9 | 10 | export { hasModifierKey }; 11 | //# sourceMappingURL=keycodes.mjs.map 12 | -------------------------------------------------------------------------------- /schematics/ng-update/html-parsing/elements.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | /** 9 | * Parses a HTML fragment and traverses all AST nodes in order find elements that 10 | * include the specified attribute. 11 | */ 12 | export declare function findElementsWithAttribute(html: string, attributeName: string): import("parse5/dist/tree-adapters/default").Element[]; 13 | /** 14 | * Finds elements with explicit tag names that also contain the specified attribute. Returns the 15 | * attribute start offset based on the specified HTML. 16 | */ 17 | export declare function findAttributeOnElementWithTag(html: string, name: string, tagNames: string[]): number[]; 18 | /** 19 | * Finds elements that contain the given attribute and contain at least one of the other 20 | * specified attributes. Returns the primary attribute's start offset based on the specified HTML. 21 | */ 22 | export declare function findAttributeOnElementWithAttrs(html: string, name: string, attrs: string[]): number[]; 23 | /** Gets the start offset of the given attribute from a Parse5 element. */ 24 | export declare function getStartOffsetOfAttribute(element: any, attributeName: string): number; 25 | -------------------------------------------------------------------------------- /schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.__style__.template: -------------------------------------------------------------------------------- 1 | .container { 2 | width: 400px; 3 | max-width: 100%; 4 | margin: 0 20px; 5 | display: inline-block; 6 | vertical-align: top; 7 | } 8 | 9 | .list { 10 | border: solid 1px #ccc; 11 | min-height: 60px; 12 | background: white; 13 | border-radius: 4px; 14 | display: block; 15 | overflow: hidden; 16 | } 17 | 18 | .list-item { 19 | padding: 20px 10px; 20 | border-bottom: solid 1px #ccc; 21 | box-sizing: border-box; 22 | cursor: move; 23 | background: white; 24 | color: black; 25 | font-size: 14px; 26 | } 27 | 28 | .list-item:last-child { 29 | border: none; 30 | } 31 | 32 | /* Highlight the list item that is being dragged. */ 33 | .cdk-drag-preview { 34 | border-radius: 4px; 35 | box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 36 | 0 8px 10px 1px rgba(0, 0, 0, 0.14), 37 | 0 3px 14px 2px rgba(0, 0, 0, 0.12); 38 | } 39 | 40 | /* Animate items as they're being sorted. */ 41 | .cdk-drop-list-dragging .cdk-drag { 42 | transition: transform 250ms cubic-bezier(0, 0, 0.2, 1); 43 | } 44 | 45 | /* Animate an item that has been dropped. */ 46 | .cdk-drag-animating { 47 | transition: transform 300ms cubic-bezier(0, 0, 0.2, 1); 48 | } 49 | 50 | .cdk-drag-placeholder { 51 | opacity: 0; 52 | } 53 | 54 | -------------------------------------------------------------------------------- /schematics/ng-update/migrations/constructor-signature.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import * as ts from 'typescript'; 9 | import { Migration } from '../../update-tool/migration'; 10 | import { UpgradeData } from '../upgrade-data'; 11 | /** 12 | * Migration that visits every TypeScript new expression or super call and checks if 13 | * the parameter type signature is invalid and needs to be updated manually. 14 | */ 15 | export declare class ConstructorSignatureMigration extends Migration { 16 | data: string[]; 17 | enabled: boolean; 18 | visitNode(node: ts.Node): void; 19 | /** 20 | * Method that will be called for each source file of the upgrade project. In order to 21 | * properly determine invalid constructor signatures, we take advantage of the pre-emit 22 | * diagnostics from TypeScript. 23 | * 24 | * By using the diagnostics, the migration can handle type assignability. Not using 25 | * diagnostics would mean that we need to use simple type equality checking which is 26 | * too strict. See related issue: https://github.com/Microsoft/TypeScript/issues/9879 27 | */ 28 | private _visitSourceFile; 29 | } 30 | -------------------------------------------------------------------------------- /fesm2022/_id-generator-chunk.mjs: -------------------------------------------------------------------------------- 1 | import * as i0 from '@angular/core'; 2 | import { inject, APP_ID, Injectable } from '@angular/core'; 3 | 4 | const counters = {}; 5 | class _IdGenerator { 6 | _appId = inject(APP_ID); 7 | static _infix = `a${Math.floor(Math.random() * 100000).toString()}`; 8 | getId(prefix, randomize = false) { 9 | if (this._appId !== 'ng') { 10 | prefix += this._appId; 11 | } 12 | if (!counters.hasOwnProperty(prefix)) { 13 | counters[prefix] = 0; 14 | } 15 | return `${prefix}${randomize ? _IdGenerator._infix + '-' : ''}${counters[prefix]++}`; 16 | } 17 | static ɵfac = i0.ɵɵngDeclareFactory({ 18 | minVersion: "12.0.0", 19 | version: "21.0.3", 20 | ngImport: i0, 21 | type: _IdGenerator, 22 | deps: [], 23 | target: i0.ɵɵFactoryTarget.Injectable 24 | }); 25 | static ɵprov = i0.ɵɵngDeclareInjectable({ 26 | minVersion: "12.0.0", 27 | version: "21.0.3", 28 | ngImport: i0, 29 | type: _IdGenerator, 30 | providedIn: 'root' 31 | }); 32 | } 33 | i0.ɵɵngDeclareClassMetadata({ 34 | minVersion: "12.0.0", 35 | version: "21.0.3", 36 | ngImport: i0, 37 | type: _IdGenerator, 38 | decorators: [{ 39 | type: Injectable, 40 | args: [{ 41 | providedIn: 'root' 42 | }] 43 | }] 44 | }); 45 | 46 | export { _IdGenerator }; 47 | //# sourceMappingURL=_id-generator-chunk.mjs.map 48 | -------------------------------------------------------------------------------- /fesm2022/_shadow-dom-chunk.mjs: -------------------------------------------------------------------------------- 1 | let shadowDomIsSupported; 2 | function _supportsShadowDom() { 3 | if (shadowDomIsSupported == null) { 4 | const head = typeof document !== 'undefined' ? document.head : null; 5 | shadowDomIsSupported = !!(head && (head.createShadowRoot || head.attachShadow)); 6 | } 7 | return shadowDomIsSupported; 8 | } 9 | function _getShadowRoot(element) { 10 | if (_supportsShadowDom()) { 11 | const rootNode = element.getRootNode ? element.getRootNode() : null; 12 | if (typeof ShadowRoot !== 'undefined' && ShadowRoot && rootNode instanceof ShadowRoot) { 13 | return rootNode; 14 | } 15 | } 16 | return null; 17 | } 18 | function _getFocusedElementPierceShadowDom() { 19 | let activeElement = typeof document !== 'undefined' && document ? document.activeElement : null; 20 | while (activeElement && activeElement.shadowRoot) { 21 | const newActiveElement = activeElement.shadowRoot.activeElement; 22 | if (newActiveElement === activeElement) { 23 | break; 24 | } else { 25 | activeElement = newActiveElement; 26 | } 27 | } 28 | return activeElement; 29 | } 30 | function _getEventTarget(event) { 31 | return event.composedPath ? event.composedPath()[0] : event.target; 32 | } 33 | 34 | export { _getEventTarget, _getFocusedElementPierceShadowDom, _getShadowRoot, _supportsShadowDom }; 35 | //# sourceMappingURL=_shadow-dom-chunk.mjs.map 36 | -------------------------------------------------------------------------------- /schematics/ng-update/migrations/class-inheritance.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"class-inheritance.js","sourceRoot":"","sources":["class-inheritance.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,iCAAiC;AACjC,2DAAsD;AAEtD,yDAA4D;AAC5D,kDAAmE;AAEnE;;;GAGG;AACH,MAAa,yBAA0B,SAAQ,qBAAsB;IAArE;;QACE;;;WAGG;QACH,kBAAa,GAAG,IAAI,GAAG,EAAmC,CAAC;QAE3D,2DAA2D;QAC3D,YAAO,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,CAAC;IAoC1C,CAAC;IAlCU,IAAI;QACX,IAAA,oCAAqB,EAAC,IAAI,EAAE,eAAe,CAAC;aACzC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;aACxD,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IACjG,CAAC;IAEQ,SAAS,CAAC,IAAa;QAC9B,IAAI,EAAE,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC;YAChC,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;QACpC,CAAC;IACH,CAAC;IAEO,sBAAsB,CAAC,IAAyB;QACtD,MAAM,SAAS,GAAG,IAAA,+BAAkB,EAAC,IAAI,CAAC,CAAC;QAC3C,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,gBAAgB,CAAC;QAEhE,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,OAAO;QACT,CAAC;QAED,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;YAC3B,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YAE9C,IAAI,IAAI,EAAE,CAAC;gBACT,IAAI,CAAC,mBAAmB,CACtB,IAAI,EACJ,gBAAgB,SAAS,wBAAwB;oBAC/C,IAAI,QAAQ,8CAA8C;oBAC1D,IAAI,IAAI,CAAC,OAAO,qBAAqB,IAAI,CAAC,WAAW,KAAK;oBAC1D,4CAA4C,CAC/C,CAAC;YACJ,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AA5CD,8DA4CC"} -------------------------------------------------------------------------------- /schematics/utils/ast.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { Tree } from '@angular-devkit/schematics'; 9 | import { Schema as ComponentOptions } from '@schematics/angular/component/schema'; 10 | import { ProjectDefinition } from '@schematics/angular/utility'; 11 | import * as ts from 'typescript'; 12 | /** Reads file given path and returns TypeScript source file. */ 13 | export declare function parseSourceFile(host: Tree, path: string): ts.SourceFile; 14 | /** Import and add module to root app module. */ 15 | export declare function addModuleImportToRootModule(host: Tree, moduleName: string, src: string, project: ProjectDefinition): void; 16 | /** 17 | * Import and add module to specific module path. 18 | * @param host the tree we are updating 19 | * @param modulePath src location of the module to import 20 | * @param moduleName name of module to import 21 | * @param src src location to import 22 | */ 23 | export declare function addModuleImportToModule(host: Tree, modulePath: string, moduleName: string, src: string): void; 24 | /** Wraps the internal find module from options with undefined path handling */ 25 | export declare function findModuleFromOptions(host: Tree, options: ComponentOptions): Promise; 26 | -------------------------------------------------------------------------------- /fesm2022/_dispose-view-repeater-strategy-chunk.mjs: -------------------------------------------------------------------------------- 1 | import { _ViewRepeaterOperation } from './_recycle-view-repeater-strategy-chunk.mjs'; 2 | 3 | class _DisposeViewRepeaterStrategy { 4 | applyChanges(changes, viewContainerRef, itemContextFactory, itemValueResolver, itemViewChanged) { 5 | changes.forEachOperation((record, adjustedPreviousIndex, currentIndex) => { 6 | let view; 7 | let operation; 8 | if (record.previousIndex == null) { 9 | const insertContext = itemContextFactory(record, adjustedPreviousIndex, currentIndex); 10 | view = viewContainerRef.createEmbeddedView(insertContext.templateRef, insertContext.context, insertContext.index); 11 | operation = _ViewRepeaterOperation.INSERTED; 12 | } else if (currentIndex == null) { 13 | viewContainerRef.remove(adjustedPreviousIndex); 14 | operation = _ViewRepeaterOperation.REMOVED; 15 | } else { 16 | view = viewContainerRef.get(adjustedPreviousIndex); 17 | viewContainerRef.move(view, currentIndex); 18 | operation = _ViewRepeaterOperation.MOVED; 19 | } 20 | if (itemViewChanged) { 21 | itemViewChanged({ 22 | context: view?.context, 23 | operation, 24 | record 25 | }); 26 | } 27 | }); 28 | } 29 | detach() {} 30 | } 31 | 32 | export { _DisposeViewRepeaterStrategy }; 33 | //# sourceMappingURL=_dispose-view-repeater-strategy-chunk.mjs.map 34 | -------------------------------------------------------------------------------- /schematics/ng-update/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | exports.updateToV21 = updateToV21; 11 | const target_version_1 = require("../update-tool/target-version"); 12 | const upgrade_data_1 = require("./upgrade-data"); 13 | const devkit_migration_rule_1 = require("./devkit-migration-rule"); 14 | const cdkMigrations = []; 15 | /** Entry point for the migration schematics with target of Angular CDK 20.0.0 */ 16 | function updateToV21() { 17 | return (0, devkit_migration_rule_1.createMigrationSchematicRule)(target_version_1.TargetVersion.V21, cdkMigrations, upgrade_data_1.cdkUpgradeData, onMigrationComplete); 18 | } 19 | /** Function that will be called when the migration completed. */ 20 | function onMigrationComplete(context, targetVersion, hasFailures) { 21 | context.logger.info(''); 22 | context.logger.info(` ✓ Updated Angular CDK to ${targetVersion}`); 23 | context.logger.info(''); 24 | if (hasFailures) { 25 | context.logger.warn(' ⚠ Some issues were detected but could not be fixed automatically. Please check the ' + 26 | 'output above and fix these issues manually.'); 27 | } 28 | } 29 | //# sourceMappingURL=index.js.map -------------------------------------------------------------------------------- /schematics/ng-update/typescript/literal.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | exports.findAllSubstringIndices = findAllSubstringIndices; 11 | exports.isStringLiteralLike = isStringLiteralLike; 12 | const ts = require("typescript"); 13 | /** Finds all start indices of the given search string in the input string. */ 14 | function findAllSubstringIndices(input, search) { 15 | const result = []; 16 | let i = -1; 17 | while ((i = input.indexOf(search, i + 1)) !== -1) { 18 | result.push(i); 19 | } 20 | return result; 21 | } 22 | /** 23 | * Checks whether the given node is either a string literal or a no-substitution template 24 | * literal. Note that we cannot use `ts.isStringLiteralLike()` because if developers update 25 | * an outdated project, their TypeScript version is not automatically being updated 26 | * and therefore could throw because the function is not available yet. 27 | * https://github.com/Microsoft/TypeScript/commit/8518343dc8762475a5e92c9f80b5c5725bd81796 28 | */ 29 | function isStringLiteralLike(node) { 30 | return ts.isStringLiteral(node) || ts.isNoSubstitutionTemplateLiteral(node); 31 | } 32 | //# sourceMappingURL=literal.js.map -------------------------------------------------------------------------------- /schematics/ng-update/devkit-migration-rule.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { Rule, SchematicContext } from '@angular-devkit/schematics'; 9 | import { MigrationCtor } from '../update-tool/migration'; 10 | import { TargetVersion } from '../update-tool/target-version'; 11 | import { DevkitContext, DevkitMigrationCtor } from './devkit-migration'; 12 | import { UpgradeData } from './upgrade-data'; 13 | /** List of migrations which run for the CDK update. */ 14 | export declare const cdkMigrations: MigrationCtor[]; 15 | export type NullableDevkitMigration = MigrationCtor; 16 | type PostMigrationFn = (context: SchematicContext, targetVersion: TargetVersion, hasFailure: boolean) => void; 17 | /** 18 | * Creates a Angular schematic rule that runs the upgrade for the 19 | * specified target version. 20 | */ 21 | export declare function createMigrationSchematicRule(targetVersion: TargetVersion, extraMigrations: NullableDevkitMigration[], upgradeData: UpgradeData, onMigrationCompleteFn?: PostMigrationFn): Rule; 22 | /** Whether the given migration type refers to a devkit migration */ 23 | export declare function isDevkitMigration(value: MigrationCtor): value is DevkitMigrationCtor; 24 | export {}; 25 | -------------------------------------------------------------------------------- /fesm2022/_unique-selection-dispatcher-chunk.mjs: -------------------------------------------------------------------------------- 1 | import * as i0 from '@angular/core'; 2 | import { Injectable } from '@angular/core'; 3 | 4 | class UniqueSelectionDispatcher { 5 | _listeners = []; 6 | notify(id, name) { 7 | for (let listener of this._listeners) { 8 | listener(id, name); 9 | } 10 | } 11 | listen(listener) { 12 | this._listeners.push(listener); 13 | return () => { 14 | this._listeners = this._listeners.filter(registered => { 15 | return listener !== registered; 16 | }); 17 | }; 18 | } 19 | ngOnDestroy() { 20 | this._listeners = []; 21 | } 22 | static ɵfac = i0.ɵɵngDeclareFactory({ 23 | minVersion: "12.0.0", 24 | version: "21.0.3", 25 | ngImport: i0, 26 | type: UniqueSelectionDispatcher, 27 | deps: [], 28 | target: i0.ɵɵFactoryTarget.Injectable 29 | }); 30 | static ɵprov = i0.ɵɵngDeclareInjectable({ 31 | minVersion: "12.0.0", 32 | version: "21.0.3", 33 | ngImport: i0, 34 | type: UniqueSelectionDispatcher, 35 | providedIn: 'root' 36 | }); 37 | } 38 | i0.ɵɵngDeclareClassMetadata({ 39 | minVersion: "12.0.0", 40 | version: "21.0.3", 41 | ngImport: i0, 42 | type: UniqueSelectionDispatcher, 43 | decorators: [{ 44 | type: Injectable, 45 | args: [{ 46 | providedIn: 'root' 47 | }] 48 | }] 49 | }); 50 | 51 | export { UniqueSelectionDispatcher }; 52 | //# sourceMappingURL=_unique-selection-dispatcher-chunk.mjs.map 53 | -------------------------------------------------------------------------------- /fesm2022/_test-environment-chunk.mjs.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"_test-environment-chunk.mjs","sources":["../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/src/cdk/platform/features/test-environment.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.dev/license\n */\n\n/** Gets whether the code is currently running in a test environment. */\nexport function _isTestEnvironment(): boolean {\n // We can't use `declare const` because it causes conflicts inside Google with the real typings\n // for these symbols and we can't read them off the global object, because they don't appear to\n // be attached there for some runners like Jest.\n // (see: https://github.com/angular/components/issues/23365#issuecomment-938146643)\n return (\n // @ts-ignore\n (typeof __karma__ !== 'undefined' && !!__karma__) ||\n // @ts-ignore\n (typeof jasmine !== 'undefined' && !!jasmine) ||\n // @ts-ignore\n (typeof jest !== 'undefined' && !!jest) ||\n // @ts-ignore\n (typeof Mocha !== 'undefined' && !!Mocha)\n );\n}\n"],"names":["_isTestEnvironment","__karma__","jasmine","jest","Mocha"],"mappings":"SASgBA,kBAAkBA,GAAA;AAKhC,EAAA,QAEG,OAAOC,SAAS,KAAK,WAAW,IAAI,CAAC,CAACA,SAAS,IAE/C,OAAOC,OAAO,KAAK,WAAW,IAAI,CAAC,CAACA,OAAQ,IAE5C,OAAOC,IAAI,KAAK,WAAW,IAAI,CAAC,CAACA,IAAK,IAEtC,OAAOC,KAAK,KAAK,WAAW,IAAI,CAAC,CAACA;AAAM;AAE7C;;;;"} -------------------------------------------------------------------------------- /types/private.d.ts: -------------------------------------------------------------------------------- 1 | export { _CdkPrivateStyleLoader } from './_style-loader-chunk.js'; 2 | import * as i0 from '@angular/core'; 3 | import { SafeHtml, DomSanitizer } from '@angular/platform-browser'; 4 | 5 | /** 6 | * Component used to load the .cdk-visually-hidden styles. 7 | * @docs-private 8 | */ 9 | declare class _VisuallyHiddenLoader { 10 | static ɵfac: i0.ɵɵFactoryDeclaration<_VisuallyHiddenLoader, never>; 11 | static ɵcmp: i0.ɵɵComponentDeclaration<_VisuallyHiddenLoader, "ng-component", ["cdkVisuallyHidden"], {}, {}, never, never, true, never>; 12 | } 13 | 14 | interface TrustedHTML { 15 | __brand__: 'TrustedHTML'; 16 | } 17 | /** 18 | * Unsafely promote a string to a TrustedHTML, falling back to strings when 19 | * Trusted Types are not available. 20 | * 21 | * Important!!! This is a security-sensitive function; any use of this function 22 | * must go through security review. In particular, it must be assured that the 23 | * provided string will never cause an XSS vulnerability if used in a context 24 | * that will be interpreted as HTML by a browser, e.g. when assigning to 25 | * element.innerHTML. 26 | */ 27 | declare function trustedHTMLFromString(html: string): TrustedHTML; 28 | 29 | /** Sanitizes and sets the `innerHTML` of an element. */ 30 | declare function _setInnerHtml(element: HTMLElement, html: SafeHtml, sanitizer: DomSanitizer): void; 31 | 32 | export { _VisuallyHiddenLoader, _setInnerHtml, trustedHTMLFromString }; 33 | export type { TrustedHTML }; 34 | -------------------------------------------------------------------------------- /types/_unique-selection-dispatcher-chunk.d.ts: -------------------------------------------------------------------------------- 1 | import * as i0 from '@angular/core'; 2 | import { OnDestroy } from '@angular/core'; 3 | 4 | type UniqueSelectionDispatcherListener = (id: string, name: string) => void; 5 | /** 6 | * Class to coordinate unique selection based on name. 7 | * Intended to be consumed as an Angular service. 8 | * This service is needed because native radio change events are only fired on the item currently 9 | * being selected, and we still need to uncheck the previous selection. 10 | * 11 | * This service does not *store* any IDs and names because they may change at any time, so it is 12 | * less error-prone if they are simply passed through when the events occur. 13 | */ 14 | declare class UniqueSelectionDispatcher implements OnDestroy { 15 | private _listeners; 16 | /** 17 | * Notify other items that selection for the given name has been set. 18 | * @param id ID of the item. 19 | * @param name Name of the item. 20 | */ 21 | notify(id: string, name: string): void; 22 | /** 23 | * Listen for future changes to item selection. 24 | * @return Function used to deregister listener 25 | */ 26 | listen(listener: UniqueSelectionDispatcherListener): () => void; 27 | ngOnDestroy(): void; 28 | static ɵfac: i0.ɵɵFactoryDeclaration; 29 | static ɵprov: i0.ɵɵInjectableDeclaration; 30 | } 31 | 32 | export { UniqueSelectionDispatcher }; 33 | export type { UniqueSelectionDispatcherListener }; 34 | -------------------------------------------------------------------------------- /schematics/update-tool/version-changes.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { TargetVersion } from './target-version'; 9 | export type VersionChanges = { 10 | [target in TargetVersion]?: ReadableChange[]; 11 | }; 12 | export type ReadableChange = { 13 | pr: string; 14 | changes: T[]; 15 | }; 16 | /** Conditional type that unwraps the value of a version changes type. */ 17 | export type ValueOfChanges = T extends VersionChanges ? X : null; 18 | /** 19 | * Gets the changes for a given target version from the specified version changes object. 20 | * 21 | * For readability and a good overview of breaking changes, the version change data always 22 | * includes the related Pull Request link. Since this data is not needed when performing the 23 | * upgrade, this unused data can be removed and the changes data can be flattened into an 24 | * easy iterable array. 25 | */ 26 | export declare function getChangesForTarget(target: TargetVersion, data: VersionChanges): T[]; 27 | /** 28 | * Gets all changes from the specified version changes object. This is helpful in case a migration 29 | * rule does not distinguish data based on the target version, but for readability the 30 | * upgrade data is separated for each target version. 31 | */ 32 | export declare function getAllChanges(data: VersionChanges): T[]; 33 | -------------------------------------------------------------------------------- /schematics/ng-update/migrations/class-names.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import * as ts from 'typescript'; 9 | import { Migration } from '../../update-tool/migration'; 10 | import { ClassNameUpgradeData } from '../data'; 11 | import { UpgradeData } from '../upgrade-data'; 12 | /** 13 | * Migration that walks through every identifier that is part of Angular Material or thr CDK 14 | * and replaces the outdated name with the new one if specified in the upgrade data. 15 | */ 16 | export declare class ClassNamesMigration extends Migration { 17 | /** Change data that upgrades to the specified target version. */ 18 | data: ClassNameUpgradeData[]; 19 | /** 20 | * List of identifier names that have been imported from `@angular/material` or `@angular/cdk` 21 | * in the current source file and therefore can be considered trusted. 22 | */ 23 | trustedIdentifiers: Set; 24 | /** List of namespaces that have been imported from `@angular/material` or `@angular/cdk`. */ 25 | trustedNamespaces: Set; 26 | enabled: boolean; 27 | visitNode(node: ts.Node): void; 28 | /** Method that is called for every identifier inside of the specified project. */ 29 | private _visitIdentifier; 30 | /** Creates a failure and replacement for the specified identifier. */ 31 | private _createFailureWithReplacement; 32 | } 33 | -------------------------------------------------------------------------------- /schematics/ng-update/migrations/method-call-arguments.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"method-call-arguments.js","sourceRoot":"","sources":["method-call-arguments.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,iCAAiC;AACjC,2DAAsD;AAGtD,kDAAmE;AAEnE;;;GAGG;AACH,MAAa,4BAA6B,SAAQ,qBAAsB;IAAxE;;QACE,iEAAiE;QACjE,SAAI,GAA4B,IAAA,oCAAqB,EAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC;QAEhF,2DAA2D;QAC3D,YAAO,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC;IA8CnC,CAAC;IA5CU,SAAS,CAAC,IAAa;QAC9B,IAAI,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,0BAA0B,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;YAChF,IAAI,CAAC,8BAA8B,CAAC,IAAI,CAAC,CAAC;QAC5C,CAAC;IACH,CAAC;IAEO,8BAA8B,CAAC,IAAuB;QAC5D,MAAM,cAAc,GAAG,IAAI,CAAC,UAAyC,CAAC;QAEtE,IAAI,CAAC,EAAE,CAAC,YAAY,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC;YAC1C,OAAO;QACT,CAAC;QAED,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;QAC/E,MAAM,YAAY,GAAG,QAAQ,CAAC,MAAM,IAAI,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC;QAC7D,MAAM,UAAU,GAAG,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC;QAE5C,IAAI,CAAC,YAAY,EAAE,CAAC;YAClB,OAAO;QACT,CAAC;QAED,wFAAwF;QACxF,yFAAyF;QACzF,uFAAuF;QACvF,sFAAsF;QACtF,qFAAqF;QACrF,wFAAwF;QACxF,wFAAwF;QACxF,uFAAuF;QACvF,yCAAyC;QACzC,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI;aACtB,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,KAAK,UAAU,IAAI,IAAI,CAAC,SAAS,KAAK,YAAY,CAAC;aAC7E,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAEtF,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO;QACT,CAAC;QAED,IAAI,CAAC,mBAAmB,CACtB,IAAI,EACJ,kBAAkB,YAAY,GAAG,GAAG,GAAG,UAAU,IAAI;YACnD,QAAQ,OAAO,CAAC,KAAK,wBAAwB,OAAO,CAAC,OAAO,EAAE,CACjE,CAAC;IACJ,CAAC;CACF;AAnDD,oEAmDC"} -------------------------------------------------------------------------------- /schematics/update-tool/public-api.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 10 | if (k2 === undefined) k2 = k; 11 | var desc = Object.getOwnPropertyDescriptor(m, k); 12 | if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { 13 | desc = { enumerable: true, get: function() { return m[k]; } }; 14 | } 15 | Object.defineProperty(o, k2, desc); 16 | }) : (function(o, m, k, k2) { 17 | if (k2 === undefined) k2 = k; 18 | o[k2] = m[k]; 19 | })); 20 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 21 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 22 | }; 23 | Object.defineProperty(exports, "__esModule", { value: true }); 24 | __exportStar(require("./component-resource-collector"), exports); 25 | __exportStar(require("./file-system"), exports); 26 | __exportStar(require("./index"), exports); 27 | __exportStar(require("./migration"), exports); 28 | __exportStar(require("./target-version"), exports); 29 | __exportStar(require("./utils/decorators"), exports); 30 | __exportStar(require("./utils/imports"), exports); 31 | __exportStar(require("./utils/property-name"), exports); 32 | __exportStar(require("./version-changes"), exports); 33 | //# sourceMappingURL=public-api.js.map -------------------------------------------------------------------------------- /types/observers-private.d.ts: -------------------------------------------------------------------------------- 1 | import * as i0 from '@angular/core'; 2 | import { OnDestroy } from '@angular/core'; 3 | import { Observable } from 'rxjs'; 4 | 5 | /** 6 | * Allows observing resize events on multiple elements using a shared set of ResizeObserver. 7 | * Sharing a ResizeObserver instance is recommended for better performance (see 8 | * https://github.com/WICG/resize-observer/issues/59). 9 | * 10 | * Rather than share a single `ResizeObserver`, this class creates one `ResizeObserver` per type 11 | * of observed box ('content-box', 'border-box', and 'device-pixel-content-box'). This avoids 12 | * later calls to `observe` with a different box type from influencing the events dispatched to 13 | * earlier calls. 14 | */ 15 | declare class SharedResizeObserver implements OnDestroy { 16 | private _cleanupErrorListener; 17 | /** Map of box type to shared resize observer. */ 18 | private _observers; 19 | /** The Angular zone. */ 20 | private _ngZone; 21 | constructor(); 22 | ngOnDestroy(): void; 23 | /** 24 | * Gets a stream of resize events for the given target element and box type. 25 | * @param target The element to observe for resizes. 26 | * @param options Options to pass to the `ResizeObserver` 27 | * @return The stream of resize events for the element. 28 | */ 29 | observe(target: Element, options?: ResizeObserverOptions): Observable; 30 | static ɵfac: i0.ɵɵFactoryDeclaration; 31 | static ɵprov: i0.ɵɵInjectableDeclaration; 32 | } 33 | 34 | export { SharedResizeObserver }; 35 | -------------------------------------------------------------------------------- /types/_focus-key-manager-chunk.d.ts: -------------------------------------------------------------------------------- 1 | import { ListKeyManagerOption, ListKeyManager } from './_list-key-manager-chunk.js'; 2 | import { FocusOrigin } from './_focus-monitor-chunk.js'; 3 | 4 | /** 5 | * This is the interface for focusable items (used by the FocusKeyManager). 6 | * Each item must know how to focus itself, whether or not it is currently disabled 7 | * and be able to supply its label. 8 | */ 9 | interface FocusableOption extends ListKeyManagerOption { 10 | /** Focuses the `FocusableOption`. */ 11 | focus(origin?: FocusOrigin): void; 12 | } 13 | declare class FocusKeyManager extends ListKeyManager { 14 | private _origin; 15 | /** 16 | * Sets the focus origin that will be passed in to the items for any subsequent `focus` calls. 17 | * @param origin Focus origin to be used when focusing items. 18 | */ 19 | setFocusOrigin(origin: FocusOrigin): this; 20 | /** 21 | * Sets the active item to the item at the specified 22 | * index and focuses the newly active item. 23 | * @param index Index of the item to be set as active. 24 | */ 25 | setActiveItem(index: number): void; 26 | /** 27 | * Sets the active item to the item that is specified and focuses it. 28 | * @param item Item to be set as active. 29 | */ 30 | setActiveItem(item: T): void; 31 | /** 32 | * Sets the active item to the item that is specified and focuses it. 33 | * @param item Item to be set as active. 34 | */ 35 | setActiveItem(item: T | number): void; 36 | } 37 | 38 | export { FocusKeyManager }; 39 | export type { FocusableOption }; 40 | -------------------------------------------------------------------------------- /schematics/ng-update/migrations/property-names.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"property-names.js","sourceRoot":"","sources":["property-names.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,iCAAiC;AACjC,2DAAsD;AAGtD,kDAAmE;AAEnE;;;GAGG;AACH,MAAa,sBAAuB,SAAQ,qBAAsB;IAAlE;;QACE,iEAAiE;QACjE,SAAI,GAA8B,IAAA,oCAAqB,EAAC,IAAI,EAAE,eAAe,CAAC,CAAC;QAE/E,2DAA2D;QAC3D,YAAO,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC;IAqCnC,CAAC;IAnCU,SAAS,CAAC,IAAa;QAC9B,IAAI,EAAE,CAAC,0BAA0B,CAAC,IAAI,CAAC,EAAE,CAAC;YACxC,IAAI,CAAC,8BAA8B,CAAC,IAAI,CAAC,CAAC;QAC5C,CAAC;IACH,CAAC;IAEO,8BAA8B,CAAC,IAAiC;QACtE,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACrE,MAAM,SAAS,GAAa,EAAE,CAAC;QAE/B,IAAI,QAAQ,EAAE,CAAC;YACb,IAAI,QAAQ,CAAC,cAAc,EAAE,EAAE,CAAC;gBAC9B,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;oBAC5B,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;wBAChB,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;oBACxC,CAAC;gBACH,CAAC,CAAC,CAAC;YACL,CAAC;iBAAM,IAAI,QAAQ,CAAC,MAAM,EAAE,CAAC;gBAC3B,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;YAC5C,CAAC;QACH,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YACvB,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,OAAO,EAAE,CAAC;gBACpC,OAAO;YACT,CAAC;YAED,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;gBACrF,IAAI,CAAC,UAAU;qBACZ,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,QAAQ,CAAC,CAAC;qBAC5D,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;qBAClD,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;YACzD,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AA1CD,wDA0CC"} -------------------------------------------------------------------------------- /schematics/update-tool/utils/line-mappings.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"line-mappings.js","sourceRoot":"","sources":["line-mappings.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAyBH,0EAGC;AAMD,oDAkBC;AAlDD;;;;;;;;;;GAUG;AAEH,MAAM,OAAO,GAAG,EAAE,CAAC;AACnB,MAAM,OAAO,GAAG,EAAE,CAAC;AACnB,MAAM,aAAa,GAAG,IAAI,CAAC;AAC3B,MAAM,cAAc,GAAG,IAAI,CAAC;AAO5B,mFAAmF;AACnF,SAAgB,+BAA+B,CAAC,aAAuB,EAAE,QAAgB;IACvF,MAAM,SAAS,GAAG,4BAA4B,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;IACxE,OAAO,EAAC,SAAS,EAAE,QAAQ,GAAG,aAAa,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,SAAS,EAAC,CAAC;AAC3E,CAAC;AAED;;;GAGG;AACH,SAAgB,oBAAoB,CAAC,IAAY;IAC/C,MAAM,MAAM,GAAa,CAAC,CAAC,CAAC,CAAC;IAC7B,IAAI,GAAG,GAAG,CAAC,CAAC;IACZ,OAAO,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;QACzB,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,CAAC;QACpC,oEAAoE;QACpE,iDAAiD;QACjD,IAAI,IAAI,KAAK,OAAO,EAAE,CAAC;YACrB,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,OAAO,EAAE,CAAC;gBACrC,GAAG,EAAE,CAAC;YACR,CAAC;YACD,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;aAAM,IAAI,IAAI,KAAK,OAAO,IAAI,IAAI,KAAK,aAAa,IAAI,IAAI,KAAK,cAAc,EAAE,CAAC;YACjF,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;IACH,CAAC;IACD,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACjB,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,2DAA2D;AAC3D,SAAS,4BAA4B,CACnC,QAAa,EACb,QAAW,EACX,GAAG,GAAG,CAAC,EACP,IAAI,GAAG,QAAQ,CAAC,MAAM,GAAG,CAAC;IAE1B,OAAO,GAAG,IAAI,IAAI,EAAE,CAAC;QACnB,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QAChD,MAAM,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC;QAErC,IAAI,OAAO,KAAK,QAAQ,EAAE,CAAC;YACzB,OAAO,UAAU,CAAC;QACpB,CAAC;aAAM,IAAI,QAAQ,GAAG,OAAO,EAAE,CAAC;YAC9B,GAAG,GAAG,UAAU,GAAG,CAAC,CAAC;QACvB,CAAC;aAAM,CAAC;YACN,IAAI,GAAG,UAAU,GAAG,CAAC,CAAC;QACxB,CAAC;IACH,CAAC;IAED,mFAAmF;IACnF,+EAA+E;IAC/E,OAAO,GAAG,GAAG,CAAC,CAAC;AACjB,CAAC"} -------------------------------------------------------------------------------- /schematics/ng-update/data/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 10 | if (k2 === undefined) k2 = k; 11 | var desc = Object.getOwnPropertyDescriptor(m, k); 12 | if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { 13 | desc = { enumerable: true, get: function() { return m[k]; } }; 14 | } 15 | Object.defineProperty(o, k2, desc); 16 | }) : (function(o, m, k, k2) { 17 | if (k2 === undefined) k2 = k; 18 | o[k2] = m[k]; 19 | })); 20 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 21 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 22 | }; 23 | Object.defineProperty(exports, "__esModule", { value: true }); 24 | __exportStar(require("./attribute-selectors"), exports); 25 | __exportStar(require("./class-names"), exports); 26 | __exportStar(require("./constructor-checks"), exports); 27 | __exportStar(require("./css-selectors"), exports); 28 | __exportStar(require("./css-tokens"), exports); 29 | __exportStar(require("./element-selectors"), exports); 30 | __exportStar(require("./input-names"), exports); 31 | __exportStar(require("./method-call-checks"), exports); 32 | __exportStar(require("./output-names"), exports); 33 | __exportStar(require("./property-names"), exports); 34 | __exportStar(require("./symbol-removal"), exports); 35 | //# sourceMappingURL=index.js.map -------------------------------------------------------------------------------- /schematics/update-tool/utils/decorators.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | exports.getAngularDecorators = getAngularDecorators; 11 | exports.getCallDecoratorImport = getCallDecoratorImport; 12 | const ts = require("typescript"); 13 | const imports_1 = require("./imports"); 14 | /** 15 | * Gets all decorators which are imported from an Angular package 16 | * (e.g. "@angular/core") from a list of decorators. 17 | */ 18 | function getAngularDecorators(typeChecker, decorators) { 19 | return decorators 20 | .map(node => ({ node, importData: getCallDecoratorImport(typeChecker, node) })) 21 | .filter(({ importData }) => importData && importData.moduleName.startsWith('@angular/')) 22 | .map(({ node, importData }) => ({ 23 | node: node, 24 | name: importData.symbolName, 25 | })); 26 | } 27 | function getCallDecoratorImport(typeChecker, decorator) { 28 | if (!ts.isCallExpression(decorator.expression)) { 29 | return null; 30 | } 31 | const valueExpr = decorator.expression.expression; 32 | let identifier = null; 33 | if (ts.isIdentifier(valueExpr)) { 34 | identifier = valueExpr; 35 | } 36 | else if (ts.isPropertyAccessExpression(valueExpr) && ts.isIdentifier(valueExpr.name)) { 37 | identifier = valueExpr.name; 38 | } 39 | return identifier ? (0, imports_1.getImportOfIdentifier)(identifier, typeChecker) : null; 40 | } 41 | //# sourceMappingURL=decorators.js.map -------------------------------------------------------------------------------- /schematics/utils/parse5-element.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | exports.getChildElementIndentation = getChildElementIndentation; 11 | const schematics_1 = require("@angular-devkit/schematics"); 12 | /** Determines the indentation of child elements for the given Parse5 element. */ 13 | function getChildElementIndentation(element) { 14 | const childElement = element.childNodes.find(node => node.tagName); 15 | if ((childElement && !childElement.sourceCodeLocation) || !element.sourceCodeLocation) { 16 | throw new schematics_1.SchematicsException('Cannot determine child element indentation because the ' + 17 | 'specified Parse5 element does not have any source code location metadata.'); 18 | } 19 | const startColumns = childElement 20 | ? // In case there are child elements inside of the element, we assume that their 21 | // indentation is also applicable for other child elements. 22 | childElement.sourceCodeLocation.startCol 23 | : // In case there is no child element, we just assume that child elements should be indented 24 | // by two spaces. 25 | element.sourceCodeLocation.startCol + 2; 26 | // Since Parse5 does not set the `startCol` properties as zero-based, we need to subtract 27 | // one column in order to have a proper zero-based offset for the indentation. 28 | return startColumns - 1; 29 | } 30 | //# sourceMappingURL=parse5-element.js.map -------------------------------------------------------------------------------- /overlay-prebuilt.css: -------------------------------------------------------------------------------- 1 | .cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%;z-index:1000}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation;z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px;z-index:1000}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}.cdk-overlay-popover{background:none;border:none;padding:0;outline:0;overflow:visible;position:fixed;pointer-events:none;white-space:normal;color:inherit;text-decoration:none;width:100%;height:100%;inset:auto;top:0;left:0}.cdk-overlay-popover::backdrop{display:none}.cdk-overlay-popover .cdk-overlay-backdrop{position:fixed;z-index:auto} 2 | -------------------------------------------------------------------------------- /types/_activedescendant-key-manager-chunk.d.ts: -------------------------------------------------------------------------------- 1 | import { ListKeyManagerOption, ListKeyManager } from './_list-key-manager-chunk.js'; 2 | 3 | /** 4 | * This is the interface for highlightable items (used by the ActiveDescendantKeyManager). 5 | * Each item must know how to style itself as active or inactive and whether or not it is 6 | * currently disabled. 7 | */ 8 | interface Highlightable extends ListKeyManagerOption { 9 | /** Applies the styles for an active item to this item. */ 10 | setActiveStyles(): void; 11 | /** Applies the styles for an inactive item to this item. */ 12 | setInactiveStyles(): void; 13 | } 14 | declare class ActiveDescendantKeyManager extends ListKeyManager { 15 | /** 16 | * Sets the active item to the item at the specified index and adds the 17 | * active styles to the newly active item. Also removes active styles 18 | * from the previously active item. 19 | * @param index Index of the item to be set as active. 20 | */ 21 | setActiveItem(index: number): void; 22 | /** 23 | * Sets the active item to the item to the specified one and adds the 24 | * active styles to the it. Also removes active styles from the 25 | * previously active item. 26 | * @param item Item to be set as active. 27 | */ 28 | setActiveItem(item: T): void; 29 | /** 30 | * Sets the active item to the item to the specified one and adds the 31 | * active styles to the it. Also removes active styles from the 32 | * previously active item. 33 | * @param item Item to be set as active. 34 | */ 35 | setActiveItem(item: T | number): void; 36 | } 37 | 38 | export { ActiveDescendantKeyManager }; 39 | export type { Highlightable }; 40 | -------------------------------------------------------------------------------- /schematics/ng-update/html-parsing/elements.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"elements.js","sourceRoot":"","sources":["elements.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AASH,8DAqBC;AAMD,sEAIC;AAMD,0EAIC;AAQD,8DAEC;AA1DD,mCAAqC;AAGrC;;;GAGG;AACH,SAAgB,yBAAyB,CAAC,IAAY,EAAE,aAAqB;IAC3E,MAAM,QAAQ,GAAG,IAAA,sBAAa,EAAC,IAAI,EAAE,EAAC,sBAAsB,EAAE,IAAI,EAAC,CAAC,CAAC;IACrE,MAAM,QAAQ,GAAc,EAAE,CAAC;IAE/B,MAAM,UAAU,GAAG,CAAC,KAAkB,EAAE,EAAE;QACxC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;;YAChB,MAAM,IAAI,GAAG,CAAY,CAAC;YAE1B,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;gBACpB,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAC9B,CAAC;YAED,IAAI,MAAA,IAAI,CAAC,KAAK,0CAAE,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,aAAa,CAAC,WAAW,EAAE,CAAC,EAAE,CAAC;gBACxE,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IAEhC,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED;;;GAGG;AACH,SAAgB,6BAA6B,CAAC,IAAY,EAAE,IAAY,EAAE,QAAkB;IAC1F,OAAO,yBAAyB,CAAC,IAAI,EAAE,IAAI,CAAC;SACzC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;SACrD,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,yBAAyB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;AAC9D,CAAC;AAED;;;GAGG;AACH,SAAgB,+BAA+B,CAAC,IAAY,EAAE,IAAY,EAAE,KAAe;IACzF,OAAO,yBAAyB,CAAC,IAAI,EAAE,IAAI,CAAC;SACzC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;SACzE,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,yBAAyB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;AAC9D,CAAC;AAED,4FAA4F;AAC5F,SAAS,mBAAmB,CAAC,OAAgB,EAAE,aAAqB;IAClE,OAAO,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,aAAa,CAAC,WAAW,EAAE,CAAC,CAAC;AAChG,CAAC;AAED,0EAA0E;AAC1E,SAAgB,yBAAyB,CAAC,OAAY,EAAE,aAAqB;IAC3E,OAAO,OAAO,CAAC,kBAAkB,CAAC,KAAK,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC,CAAC,WAAW,CAAC;AACnF,CAAC"} -------------------------------------------------------------------------------- /schematics/ng-update/migrations/input-names.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"input-names.js","sourceRoot":"","sources":["input-names.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAGH,qDAAgG;AAEhG,2DAAsD;AAGtD,mDAA8D;AAC9D,kDAAmE;AAEnE;;;;;;GAMG;AACH,MAAa,mBAAoB,SAAQ,qBAAsB;IAA/D;;QACE,iEAAiE;QACjE,SAAI,GAA2B,IAAA,oCAAqB,EAAC,IAAI,EAAE,YAAY,CAAC,CAAC;QAEzE,2DAA2D;QAC3D,YAAO,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC;IAqDnC,CAAC;IAnDU,eAAe,CAAC,UAA4B;QACnD,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YACvB,MAAM,eAAe,GAAG,IAAI,IAAI,CAAC,OAAO,GAAG,CAAC;YAC5C,MAAM,eAAe,GAAG,IAAI,IAAI,CAAC,WAAW,GAAG,CAAC;YAEhD,IAAA,iCAAuB,EAAC,UAAU,CAAC,OAAO,EAAE,eAAe,CAAC;iBACzD,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,GAAG,MAAM,CAAC;iBACxC,OAAO,CAAC,KAAK,CAAC,EAAE,CACf,IAAI,CAAC,iBAAiB,CACpB,UAAU,CAAC,QAAQ,EACnB,KAAK,EACL,eAAe,CAAC,MAAM,EACtB,eAAe,CAChB,CACF,CAAC;QACN,CAAC,CAAC,CAAC;IACL,CAAC;IAEQ,aAAa,CAAC,QAA0B;QAC/C,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YACvB,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;YACjC,MAAM,eAAe,GAAa,EAAE,CAAC;YAErC,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC;gBACzB,eAAe,CAAC,IAAI,CAClB,GAAG,IAAA,qCAA2B,EAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,UAAU,CAAC,CACrF,CAAC;YACJ,CAAC;YAED,IAAI,SAAS,CAAC,QAAQ,EAAE,CAAC;gBACvB,eAAe,CAAC,IAAI,CAClB,GAAG,IAAA,oCAA0B,EAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,QAAQ,CAAC,CAClF,CAAC;YACJ,CAAC;YAED,eAAe;iBACZ,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,KAAK,GAAG,MAAM,CAAC;iBACtC,OAAO,CAAC,KAAK,CAAC,EAAE,CACf,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,EAAE,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC,CACxF,CAAC;QACN,CAAC,CAAC,CAAC;IACL,CAAC;IAEO,iBAAiB,CACvB,QAAuB,EACvB,KAAa,EACb,KAAa,EACb,OAAe;QAEf,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;CACF;AA1DD,kDA0DC"} -------------------------------------------------------------------------------- /schematics/ng-update/typescript/module-specifiers.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | exports.cdkModuleSpecifier = exports.materialModuleSpecifier = void 0; 11 | exports.isMaterialImportDeclaration = isMaterialImportDeclaration; 12 | exports.isMaterialExportDeclaration = isMaterialExportDeclaration; 13 | const imports_1 = require("../typescript/imports"); 14 | /** Name of the Angular Material module specifier. */ 15 | exports.materialModuleSpecifier = '@angular/material'; 16 | /** Name of the Angular CDK module specifier. */ 17 | exports.cdkModuleSpecifier = '@angular/cdk'; 18 | /** Whether the specified node is part of an Angular Material or CDK import declaration. */ 19 | function isMaterialImportDeclaration(node) { 20 | return isMaterialDeclaration((0, imports_1.getImportDeclaration)(node)); 21 | } 22 | /** Whether the specified node is part of an Angular Material or CDK import declaration. */ 23 | function isMaterialExportDeclaration(node) { 24 | return isMaterialDeclaration((0, imports_1.getExportDeclaration)(node)); 25 | } 26 | /** Whether the declaration is part of Angular Material. */ 27 | function isMaterialDeclaration(declaration) { 28 | if (!declaration.moduleSpecifier) { 29 | return false; 30 | } 31 | const moduleSpecifier = declaration.moduleSpecifier.getText(); 32 | return (moduleSpecifier.indexOf(exports.materialModuleSpecifier) !== -1 || 33 | moduleSpecifier.indexOf(exports.cdkModuleSpecifier) !== -1); 34 | } 35 | //# sourceMappingURL=module-specifiers.js.map -------------------------------------------------------------------------------- /schematics/utils/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 10 | if (k2 === undefined) k2 = k; 11 | var desc = Object.getOwnPropertyDescriptor(m, k); 12 | if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { 13 | desc = { enumerable: true, get: function() { return m[k]; } }; 14 | } 15 | Object.defineProperty(o, k2, desc); 16 | }) : (function(o, m, k, k2) { 17 | if (k2 === undefined) k2 = k; 18 | o[k2] = m[k]; 19 | })); 20 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 21 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 22 | }; 23 | Object.defineProperty(exports, "__esModule", { value: true }); 24 | __exportStar(require("./ast"), exports); 25 | __exportStar(require("./ast/ng-module-imports"), exports); 26 | __exportStar(require("./build-component"), exports); 27 | __exportStar(require("./get-project"), exports); 28 | __exportStar(require("./html-manipulation"), exports); 29 | __exportStar(require("./parse5-element"), exports); 30 | __exportStar(require("./project-index-file"), exports); 31 | __exportStar(require("./project-main-file"), exports); 32 | __exportStar(require("./project-style-file"), exports); 33 | __exportStar(require("./project-targets"), exports); 34 | __exportStar(require("./project-tsconfig-paths"), exports); 35 | __exportStar(require("./schematic-options"), exports); 36 | //# sourceMappingURL=index.js.map -------------------------------------------------------------------------------- /schematics/ng-update/upgrade-data.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | exports.cdkUpgradeData = void 0; 11 | exports.getVersionUpgradeData = getVersionUpgradeData; 12 | const version_changes_1 = require("../update-tool/version-changes"); 13 | const data_1 = require("./data"); 14 | /** Upgrade data for the Angular CDK. */ 15 | exports.cdkUpgradeData = { 16 | attributeSelectors: data_1.attributeSelectors, 17 | classNames: data_1.classNames, 18 | constructorChecks: data_1.constructorChecks, 19 | cssSelectors: data_1.cssSelectors, 20 | cssTokens: data_1.cssTokens, 21 | elementSelectors: data_1.elementSelectors, 22 | inputNames: data_1.inputNames, 23 | methodCallChecks: data_1.methodCallChecks, 24 | outputNames: data_1.outputNames, 25 | propertyNames: data_1.propertyNames, 26 | symbolRemoval: data_1.symbolRemoval, 27 | }; 28 | /** 29 | * Gets the reduced upgrade data for the specified data key. The function reads out the 30 | * target version and upgrade data object from the migration and resolves the specified 31 | * data portion that is specifically tied to the target version. 32 | */ 33 | function getVersionUpgradeData(migration, dataName) { 34 | if (migration.targetVersion === null) { 35 | return []; 36 | } 37 | // Note that below we need to cast to `unknown` first TS doesn't infer the type of T correctly. 38 | return (0, version_changes_1.getChangesForTarget)(migration.targetVersion, migration.upgradeData[dataName]); 39 | } 40 | //# sourceMappingURL=upgrade-data.js.map -------------------------------------------------------------------------------- /schematics/ng-add/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | exports.default = default_1; 11 | const utility_1 = require("@schematics/angular/utility"); 12 | /** 13 | * Schematic factory entry-point for the `ng-add` schematic. The ng-add schematic will be 14 | * automatically executed if developers run `ng add @angular/cdk`. 15 | * 16 | * By default, the CLI already installs the package that has been specified with `ng add`. 17 | * We just store the version in the `package.json` in case the package manager didn't. Also 18 | * this ensures that there will be no error that says that the CDK does not support `ng add`. 19 | */ 20 | function default_1() { 21 | // The CLI inserts `@angular/cdk` into the `package.json` before this schematic runs. This 22 | // means that we do not need to insert the CDK into `package.json` files again. In some cases 23 | // though, it could happen that this schematic runs outside of the CLI `ng add` command, or 24 | // the CDK is only listed as a dev dependency. If that is the case, we insert a version based 25 | // on the current build version (substituted version placeholder). 26 | // In order to align the CDK version with other Angular dependencies that are setup by 27 | // `@schematics/angular`, we use tilde instead of caret. This is default for Angular 28 | // dependencies in new CLI projects. 29 | return (0, utility_1.addDependency)('@angular/cdk', `~21.1.0-next.2+sha-d28d065`, { existing: utility_1.ExistingBehavior.Skip }); 30 | } 31 | //# sourceMappingURL=index.js.map -------------------------------------------------------------------------------- /schematics/update-tool/version-changes.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | exports.getChangesForTarget = getChangesForTarget; 11 | exports.getAllChanges = getAllChanges; 12 | const target_version_1 = require("./target-version"); 13 | /** 14 | * Gets the changes for a given target version from the specified version changes object. 15 | * 16 | * For readability and a good overview of breaking changes, the version change data always 17 | * includes the related Pull Request link. Since this data is not needed when performing the 18 | * upgrade, this unused data can be removed and the changes data can be flattened into an 19 | * easy iterable array. 20 | */ 21 | function getChangesForTarget(target, data) { 22 | if (!data) { 23 | const version = target_version_1.TargetVersion[target]; 24 | throw new Error(`No data could be found for target version: ${version}`); 25 | } 26 | return (data[target] || []).reduce((result, prData) => result.concat(prData.changes), []); 27 | } 28 | /** 29 | * Gets all changes from the specified version changes object. This is helpful in case a migration 30 | * rule does not distinguish data based on the target version, but for readability the 31 | * upgrade data is separated for each target version. 32 | */ 33 | function getAllChanges(data) { 34 | return Object.keys(data) 35 | .map(targetVersion => getChangesForTarget(targetVersion, data)) 36 | .reduce((result, versionData) => result.concat(versionData), []); 37 | } 38 | //# sourceMappingURL=version-changes.js.map -------------------------------------------------------------------------------- /schematics/ng-update/public-api.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 10 | if (k2 === undefined) k2 = k; 11 | var desc = Object.getOwnPropertyDescriptor(m, k); 12 | if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { 13 | desc = { enumerable: true, get: function() { return m[k]; } }; 14 | } 15 | Object.defineProperty(o, k2, desc); 16 | }) : (function(o, m, k, k2) { 17 | if (k2 === undefined) k2 = k; 18 | o[k2] = m[k]; 19 | })); 20 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 21 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 22 | }; 23 | Object.defineProperty(exports, "__esModule", { value: true }); 24 | __exportStar(require("./data/index"), exports); 25 | __exportStar(require("./devkit-migration"), exports); 26 | __exportStar(require("./devkit-migration-rule"), exports); 27 | __exportStar(require("./devkit-file-system"), exports); 28 | __exportStar(require("./html-parsing/angular"), exports); 29 | __exportStar(require("./html-parsing/elements"), exports); 30 | __exportStar(require("./typescript/base-types"), exports); 31 | __exportStar(require("./typescript/imports"), exports); 32 | __exportStar(require("./typescript/literal"), exports); 33 | __exportStar(require("./typescript/module-specifiers"), exports); 34 | __exportStar(require("./find-stylesheets"), exports); 35 | __exportStar(require("./upgrade-data"), exports); 36 | //# sourceMappingURL=public-api.js.map -------------------------------------------------------------------------------- /schematics/ng-update/devkit-migration.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { SchematicContext, Tree } from '@angular-devkit/schematics'; 9 | import { ProjectDefinition } from '@schematics/angular/utility'; 10 | import { Constructor, Migration, PostMigrationAction } from '../update-tool/migration'; 11 | import { TargetVersion } from '../update-tool/target-version'; 12 | export type DevkitContext = { 13 | /** Devkit tree for the current migrations. Can be used to insert/remove files. */ 14 | tree: Tree; 15 | /** Name of the project the migrations run against. */ 16 | projectName: string; 17 | /** Workspace project the migrations run against. */ 18 | project: ProjectDefinition; 19 | /** Whether the migrations run for a test target. */ 20 | isTestTarget: boolean; 21 | }; 22 | export declare abstract class DevkitMigration extends Migration { 23 | /** Prints an informative message with context on the current target. */ 24 | protected printInfo(text: string): void; 25 | /** 26 | * Optional static method that will be called once the migration of all project 27 | * targets has been performed. This method can be used to make changes respecting the 28 | * migration result of all individual targets. e.g. removing HammerJS if it 29 | * is not needed in any project target. 30 | */ 31 | static globalPostMigration?(tree: Tree, targetVersion: TargetVersion, context: SchematicContext): PostMigrationAction; 32 | } 33 | export type DevkitMigrationCtor = Constructor> & { 34 | [m in keyof typeof DevkitMigration]: (typeof DevkitMigration)[m]; 35 | }; 36 | -------------------------------------------------------------------------------- /schematics/ng-update/find-stylesheets.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | exports.findStylesheetFiles = findStylesheetFiles; 11 | const core_1 = require("@angular-devkit/core"); 12 | /** Regular expression that matches stylesheet paths */ 13 | const STYLESHEET_REGEX = /.*\.(css|scss)$/; 14 | /** 15 | * Finds stylesheets in the given directory from within the specified tree. 16 | * @param tree Devkit tree where stylesheet files can be found in. 17 | * @param startDirectory Optional start directory where stylesheets should be searched in. 18 | * This can be useful if only stylesheets within a given folder are relevant (to avoid 19 | * unnecessary iterations). 20 | */ 21 | function findStylesheetFiles(tree, startDirectory = '/') { 22 | const result = []; 23 | const visitDir = (dirPath) => { 24 | const { subfiles, subdirs } = tree.getDir(dirPath); 25 | subfiles.forEach(fileName => { 26 | if (STYLESHEET_REGEX.test(fileName)) { 27 | result.push((0, core_1.join)(dirPath, fileName)); 28 | } 29 | }); 30 | // Visit directories within the current directory to find other stylesheets. 31 | subdirs.forEach(fragment => { 32 | // Do not visit directories or files inside node modules or `dist/` folders. 33 | if (fragment !== 'node_modules' && fragment !== 'dist') { 34 | visitDir((0, core_1.join)(dirPath, fragment)); 35 | } 36 | }); 37 | }; 38 | visitDir(startDirectory); 39 | return result; 40 | } 41 | //# sourceMappingURL=find-stylesheets.js.map -------------------------------------------------------------------------------- /schematics/utils/schematic-options.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"schematic-options.js","sourceRoot":"","sources":["schematic-options.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;AAiBH,gEAmBC;AAGD,sDAgBC;AArDD,+CAA8D;AAC9D,iEAAmE;AACnE,2EAAyE;AACzE,2DAAuD;AACvD,yDAA6E;AAC7E,+CAAsD;AAGtD;;;;;;GAMG;AACH,SAAgB,0BAA0B,CAAC,OAA0B;IACnE,wFAAwF;IACxF,kFAAkF;IAClF,2FAA2F;IAC3F,IAAI,SAAS,GAAG,yBAAyB,CAAiB,OAAO,EAAE,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,CAAC;IAExF,yFAAyF;IACzF,kFAAkF;IAClF,8FAA8F;IAC9F,IAAI,SAAS,KAAK,IAAI,EAAE,CAAC;QACvB,SAAS,GAAG,CAAC,yBAAyB,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;IAED,OAAO;QACL,KAAK,EAAE,yBAAyB,CAAQ,OAAO,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE,cAAK,CAAC,GAAG,CAAC;QAClF,WAAW,EAAE,yBAAyB,CAAC,OAAO,EAAE,CAAC,aAAa,CAAC,EAAE,KAAK,CAAC;QACvE,cAAc,EAAE,yBAAyB,CAAC,OAAO,EAAE,CAAC,gBAAgB,CAAC,EAAE,KAAK,CAAC;QAC7E,SAAS,EAAE,SAAS;KACrB,CAAC;AACJ,CAAC;AAED,uEAAuE;AACvE,SAAsB,qBAAqB,CAAC,IAAU,EAAE,OAAe;;;QACrE,IAAI,OAAO,CAAC,UAAU,IAAI,IAAI,EAAE,CAAC;YAC/B,OAAO,OAAO,CAAC,UAAU,CAAC;QAC5B,CAAC;QAED,iGAAiG;QACjG,MAAM,SAAS,GAAG,MAAM,IAAA,uBAAa,EAAC,IAAI,CAAC,CAAC;QAC5C,MAAM,OAAO,GAAG,IAAA,qCAAuB,EAAC,SAAS,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;QAEpE,sEAAsE;QACtE,6DAA6D;QAC7D,IAAI,CAAC,CAAA,MAAA,OAAO,CAAC,OAAO,0CAAE,GAAG,CAAC,OAAO,CAAC,CAAA,EAAE,CAAC;YACnC,OAAO,KAAK,CAAC;QACf,CAAC;QAED,OAAO,IAAA,8BAAe,EAAC,IAAI,EAAE,IAAA,sCAAkB,EAAC,OAAO,CAAC,CAAC,CAAC;IAC5D,CAAC;CAAA;AAED;;;;GAIG;AACH,SAAS,yBAAyB,CAChC,OAA0B,EAC1B,WAAqB,EACrB,aAAgB;IAEhB,MAAM,gBAAgB,GAAG,IAAA,mBAAY,EAAC,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,IAAI,IAAI,CAAC;QAC7E,CAAC,CAAE,OAAO,CAAC,UAAU,CAAC,YAAY,CAAgB;QAClD,CAAC,CAAC,IAAI,CAAC;IACT,MAAM,gBAAgB,GAAG,gBAAgB;QACvC,CAAC,CAAE,gBAAgB,CAAC,+BAA+B,CAAuB;QAC1E,CAAC,CAAC,IAAI,CAAC;IAET,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE,CAAC;QACrC,IAAI,gBAAgB,IAAI,gBAAgB,CAAC,UAAU,CAAC,IAAI,IAAI,EAAE,CAAC;YAC7D,OAAO,gBAAgB,CAAC,UAAU,CAAiB,CAAC;QACtD,CAAC;IACH,CAAC;IAED,OAAO,aAAa,CAAC;AACvB,CAAC"} -------------------------------------------------------------------------------- /fesm2022/_style-loader-chunk.mjs: -------------------------------------------------------------------------------- 1 | import * as i0 from '@angular/core'; 2 | import { inject, Injector, EnvironmentInjector, ApplicationRef, createComponent, Injectable } from '@angular/core'; 3 | 4 | const appsWithLoaders = new WeakMap(); 5 | class _CdkPrivateStyleLoader { 6 | _appRef; 7 | _injector = inject(Injector); 8 | _environmentInjector = inject(EnvironmentInjector); 9 | load(loader) { 10 | const appRef = this._appRef = this._appRef || this._injector.get(ApplicationRef); 11 | let data = appsWithLoaders.get(appRef); 12 | if (!data) { 13 | data = { 14 | loaders: new Set(), 15 | refs: [] 16 | }; 17 | appsWithLoaders.set(appRef, data); 18 | appRef.onDestroy(() => { 19 | appsWithLoaders.get(appRef)?.refs.forEach(ref => ref.destroy()); 20 | appsWithLoaders.delete(appRef); 21 | }); 22 | } 23 | if (!data.loaders.has(loader)) { 24 | data.loaders.add(loader); 25 | data.refs.push(createComponent(loader, { 26 | environmentInjector: this._environmentInjector 27 | })); 28 | } 29 | } 30 | static ɵfac = i0.ɵɵngDeclareFactory({ 31 | minVersion: "12.0.0", 32 | version: "21.0.3", 33 | ngImport: i0, 34 | type: _CdkPrivateStyleLoader, 35 | deps: [], 36 | target: i0.ɵɵFactoryTarget.Injectable 37 | }); 38 | static ɵprov = i0.ɵɵngDeclareInjectable({ 39 | minVersion: "12.0.0", 40 | version: "21.0.3", 41 | ngImport: i0, 42 | type: _CdkPrivateStyleLoader, 43 | providedIn: 'root' 44 | }); 45 | } 46 | i0.ɵɵngDeclareClassMetadata({ 47 | minVersion: "12.0.0", 48 | version: "21.0.3", 49 | ngImport: i0, 50 | type: _CdkPrivateStyleLoader, 51 | decorators: [{ 52 | type: Injectable, 53 | args: [{ 54 | providedIn: 'root' 55 | }] 56 | }] 57 | }); 58 | 59 | export { _CdkPrivateStyleLoader }; 60 | //# sourceMappingURL=_style-loader-chunk.mjs.map 61 | -------------------------------------------------------------------------------- /schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template: -------------------------------------------------------------------------------- 1 | import { Component<% if(!!viewEncapsulation) { %>, ViewEncapsulation<% }%><% if(changeDetection !== 'Default') { %>, ChangeDetectionStrategy<% }%> } from '@angular/core'; 2 | import { <% if(standalone) { %>CdkDrag, CdkDropList, <% } %>CdkDragDrop, moveItemInArray, transferArrayItem } from '@angular/cdk/drag-drop'; 3 | 4 | @Component({ 5 | selector: '<%= selector %>',<% if(inlineTemplate) { %> 6 | template: ` 7 | <%= indentTextContent(resolvedFiles.template, 4) %> 8 | `,<% } else { %> 9 | templateUrl: './<%= dasherize(name) %>.component.html',<% } if(inlineStyle) { %> 10 | styles: ` 11 | <%= indentTextContent(resolvedFiles.stylesheet, 4) %> 12 | `<% } else { %> 13 | styleUrl: './<%= dasherize(name) %>.component.<%= style %>'<% } %><% if(!!viewEncapsulation) { %>, 14 | encapsulation: ViewEncapsulation.<%= viewEncapsulation %><% } if (changeDetection !== 'Default') { %>, 15 | changeDetection: ChangeDetectionStrategy.<%= changeDetection %><% } %><% if(standalone) { %>, 16 | imports: [CdkDrag, CdkDropList]<% } else { %>, 17 | standalone: false<% } %> 18 | }) 19 | export class <%= classify(name) %>Component { 20 | todo = [ 21 | 'Get to work', 22 | 'Pick up groceries', 23 | 'Go home', 24 | 'Fall asleep' 25 | ]; 26 | 27 | done = [ 28 | 'Get up', 29 | 'Brush teeth', 30 | 'Take a shower', 31 | 'Check e-mail', 32 | 'Walk dog' 33 | ]; 34 | 35 | drop(event: CdkDragDrop): void { 36 | if (event.previousContainer === event.container) { 37 | moveItemInArray(event.container.data, event.previousIndex, event.currentIndex); 38 | } else { 39 | transferArrayItem(event.previousContainer.data, 40 | event.container.data, 41 | event.previousIndex, 42 | event.currentIndex); 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /schematics/utils/ast.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"ast.js","sourceRoot":"","sources":["ast.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;AAaH,0CAMC;AAGD,kEAQC;AASD,0DAsBC;AAGD,sDAiBC;AA/ED,2DAAqE;AAErE,+DAAgE;AAChE,yDAA6E;AAC7E,yEAAoG;AACpG,qEAAwE;AACxE,2EAA0E;AAC1E,iCAAiC;AACjC,2DAAuD;AAEvD,gEAAgE;AAChE,SAAgB,eAAe,CAAC,IAAU,EAAE,IAAY;IACtD,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,IAAI,gCAAmB,CAAC,iCAAiC,IAAI,EAAE,CAAC,CAAC;IACzE,CAAC;IACD,OAAO,EAAE,CAAC,gBAAgB,CAAC,IAAI,EAAE,MAAM,CAAC,QAAQ,EAAE,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AACpF,CAAC;AAED,gDAAgD;AAChD,SAAgB,2BAA2B,CACzC,IAAU,EACV,UAAkB,EAClB,GAAW,EACX,OAA0B;IAE1B,MAAM,UAAU,GAAG,IAAA,+BAAgB,EAAC,IAAI,EAAE,IAAA,sCAAkB,EAAC,OAAO,CAAC,CAAC,CAAC;IACvE,uBAAuB,CAAC,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,CAAC,CAAC;AAC7D,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,uBAAuB,CACrC,IAAU,EACV,UAAkB,EAClB,UAAkB,EAClB,GAAW;IAEX,MAAM,YAAY,GAAG,eAAe,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IAEvD,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,MAAM,IAAI,gCAAmB,CAAC,qBAAqB,UAAU,EAAE,CAAC,CAAC;IACnE,CAAC;IAED,MAAM,OAAO,GAAG,IAAA,6BAAiB,EAAC,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,CAAC,CAAC;IAC7E,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAE9C,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;QACvB,IAAI,MAAM,YAAY,qBAAY,EAAE,CAAC;YACnC,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;QAChD,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;AAC9B,CAAC;AAED,gFAAgF;AAChF,SAAsB,qBAAqB,CACzC,IAAU,EACV,OAAyB;;QAEzB,MAAM,SAAS,GAAG,MAAM,IAAA,uBAAa,EAAC,IAAI,CAAC,CAAC;QAE5C,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;YACrB,OAAO,CAAC,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QAC7D,CAAC;QAED,MAAM,OAAO,GAAG,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAE,CAAC;QAEzD,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;YAC/B,OAAO,CAAC,IAAI,GAAG,IAAI,OAAO,CAAC,IAAI,UAAU,CAAC;QAC5C,CAAC;QAED,OAAO,IAAA,mCAAkB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC3C,CAAC;CAAA"} -------------------------------------------------------------------------------- /schematics/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 10 | if (k2 === undefined) k2 = k; 11 | var desc = Object.getOwnPropertyDescriptor(m, k); 12 | if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { 13 | desc = { enumerable: true, get: function() { return m[k]; } }; 14 | } 15 | Object.defineProperty(o, k2, desc); 16 | }) : (function(o, m, k, k2) { 17 | if (k2 === undefined) k2 = k; 18 | o[k2] = m[k]; 19 | })); 20 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 21 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 22 | }; 23 | Object.defineProperty(exports, "__esModule", { value: true }); 24 | exports.parse5 = void 0; 25 | __exportStar(require("./utils"), exports); 26 | __exportStar(require("./ng-update/public-api"), exports); 27 | __exportStar(require("./update-tool/public-api"), exports); 28 | // Re-exported so that Angular Material schematic code can consume the same AST utils as the CDK. 29 | __exportStar(require("@schematics/angular/utility/ast-utils"), exports); 30 | __exportStar(require("@schematics/angular/utility/ng-ast-utils"), exports); 31 | // Re-export parse5 from the CDK. Material schematics code cannot simply import 32 | // "parse5" because it could result in a different version. As long as we import 33 | // it from within the CDK, it will always be the correct version that is specified 34 | // in the CDK "package.json" as optional dependency. 35 | const parse5 = require("parse5"); 36 | exports.parse5 = parse5; 37 | //# sourceMappingURL=index.js.map -------------------------------------------------------------------------------- /types/_data-source-chunk.d.ts: -------------------------------------------------------------------------------- 1 | import { Observable } from 'rxjs'; 2 | 3 | /** Represents a range of numbers with a specified start and end. */ 4 | type ListRange = { 5 | start: number; 6 | end: number; 7 | }; 8 | /** 9 | * Interface for any component that provides a view of some data collection and wants to provide 10 | * information regarding the view and any changes made. 11 | */ 12 | interface CollectionViewer { 13 | /** 14 | * A stream that emits whenever the `CollectionViewer` starts looking at a new portion of the 15 | * data. The `start` index is inclusive, while the `end` is exclusive. 16 | */ 17 | viewChange: Observable; 18 | } 19 | 20 | declare abstract class DataSource { 21 | /** 22 | * Connects a collection viewer (such as a data-table) to this data source. Note that 23 | * the stream provided will be accessed during change detection and should not directly change 24 | * values that are bound in template views. 25 | * @param collectionViewer The component that exposes a view over the data provided by this 26 | * data source. 27 | * @returns Observable that emits a new value when the data changes. 28 | */ 29 | abstract connect(collectionViewer: CollectionViewer): Observable; 30 | /** 31 | * Disconnects a collection viewer (such as a data-table) from this data source. Can be used 32 | * to perform any clean-up or tear-down operations when a view is being destroyed. 33 | * 34 | * @param collectionViewer The component that exposes a view over the data provided by this 35 | * data source. 36 | */ 37 | abstract disconnect(collectionViewer: CollectionViewer): void; 38 | } 39 | /** Checks whether an object is a data source. */ 40 | declare function isDataSource(value: any): value is DataSource; 41 | 42 | export { DataSource, isDataSource }; 43 | export type { CollectionViewer, ListRange }; 44 | -------------------------------------------------------------------------------- /schematics/ng-update/migrations/element-selectors.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"element-selectors.js","sourceRoot":"","sources":["element-selectors.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,iCAAiC;AAGjC,2DAAsD;AAEtD,mDAA8D;AAC9D,kDAAmE;AAEnE;;;GAGG;AACH,MAAa,yBAA0B,SAAQ,qBAAsB;IAArE;;QACE,iEAAiE;QACjE,SAAI,GAAG,IAAA,oCAAqB,EAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC;QAEvD,2DAA2D;QAC3D,YAAO,GAAY,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC;IAiD5C,CAAC;IA/CU,SAAS,CAAC,IAAa;QAC9B,IAAI,EAAE,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAAE,CAAC;YACjC,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;QACrC,CAAC;IACH,CAAC;IAEQ,aAAa,CAAC,QAA0B;QAC/C,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;YAC3B,IAAA,iCAAuB,EAAC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC;iBACxD,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,KAAK,GAAG,MAAM,CAAC;iBACtC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,QAAQ,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QACjF,CAAC,CAAC,CAAC;IACL,CAAC;IAEQ,eAAe,CAAC,UAA4B;QACnD,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;YAC3B,IAAA,iCAAuB,EAAC,UAAU,CAAC,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC;iBAC1D,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,GAAG,MAAM,CAAC;iBACxC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC,QAAQ,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QACnF,CAAC,CAAC,CAAC;IACL,CAAC;IAEO,uBAAuB,CAAC,IAA0B;QACxD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,cAAc,EAAE,CAAC;YACrE,OAAO;QACT,CAAC;QAED,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;QACnC,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,QAAQ,CAAC,CAAC;QAExE,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;YAC3B,IAAA,iCAAuB,EAAC,WAAW,EAAE,QAAQ,CAAC,OAAO,CAAC;iBACnD,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,MAAM,CAAC;iBACvC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QACxE,CAAC,CAAC,CAAC;IACL,CAAC;IAEO,gBAAgB,CACtB,QAAuB,EACvB,KAAa,EACb,IAAgC;QAEhC,IAAI,CAAC,UAAU;aACZ,IAAI,CAAC,QAAQ,CAAC;aACd,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;aAClC,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IAC1C,CAAC;CACF;AAtDD,8DAsDC"} -------------------------------------------------------------------------------- /schematics/update-tool/utils/virtual-host.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import * as ts from 'typescript'; 9 | import { FileSystem } from '../file-system'; 10 | declare module 'typescript' { 11 | interface FileSystemEntries { 12 | readonly files: readonly string[]; 13 | readonly directories: readonly string[]; 14 | } 15 | const matchFiles: undefined | ((path: string, extensions: readonly string[] | undefined, excludes: readonly string[] | undefined, includes: readonly string[] | undefined, useCaseSensitiveFileNames: boolean, currentDirectory: string, depth: number | undefined, getFileSystemEntries: (path: string) => FileSystemEntries, realpath: (path: string) => string, directoryExists: (path: string) => boolean) => string[]); 16 | } 17 | /** 18 | * Implementation of a TypeScript parse config host that relies fully on 19 | * a given virtual file system. 20 | */ 21 | export declare class FileSystemHost implements ts.ParseConfigHost { 22 | private _fileSystem; 23 | useCaseSensitiveFileNames: boolean; 24 | constructor(_fileSystem: FileSystem); 25 | fileExists(path: string): boolean; 26 | readFile(path: string): string | undefined; 27 | readDirectory(rootDir: string, extensions: string[], excludes: string[] | undefined, includes: string[], depth?: number): string[]; 28 | private _getFileSystemEntries; 29 | } 30 | /** 31 | * Creates a TypeScript compiler host that fully relies fully on the given 32 | * virtual file system. i.e. no interactions with the working directory. 33 | */ 34 | export declare function createFileSystemCompilerHost(options: ts.CompilerOptions, fileSystem: FileSystem): ts.CompilerHost; 35 | /** Creates a format diagnostic host that works with the given file system. */ 36 | export declare function createFormatDiagnosticHost(fileSystem: FileSystem): ts.FormatDiagnosticsHost; 37 | -------------------------------------------------------------------------------- /types/coercion.d.ts: -------------------------------------------------------------------------------- 1 | export { NumberInput, _isNumberValue, coerceNumberProperty } from './_number-property-chunk.js'; 2 | import { ElementRef } from '@angular/core'; 3 | 4 | /** 5 | * Type describing the allowed values for a boolean input. 6 | * @docs-private 7 | */ 8 | type BooleanInput = string | boolean | null | undefined; 9 | /** Coerces a data-bound value (typically a string) to a boolean. */ 10 | declare function coerceBooleanProperty(value: any): boolean; 11 | 12 | /** Wraps the provided value in an array, unless the provided value is an array. */ 13 | declare function coerceArray(value: T | T[]): T[]; 14 | declare function coerceArray(value: T | readonly T[]): readonly T[]; 15 | 16 | /** Coerces a value to a CSS pixel value. */ 17 | declare function coerceCssPixelValue(value: any): string; 18 | 19 | /** 20 | * Coerces an ElementRef or an Element into an element. 21 | * Useful for APIs that can accept either a ref or the native element itself. 22 | */ 23 | declare function coerceElement(elementOrRef: ElementRef | T): T; 24 | 25 | /** 26 | * Coerces a value to an array of trimmed non-empty strings. 27 | * Any input that is not an array, `null` or `undefined` will be turned into a string 28 | * via `toString()` and subsequently split with the given separator. 29 | * `null` and `undefined` will result in an empty array. 30 | * This results in the following outcomes: 31 | * - `null` -> `[]` 32 | * - `[null]` -> `["null"]` 33 | * - `["a", "b ", " "]` -> `["a", "b"]` 34 | * - `[1, [2, 3]]` -> `["1", "2,3"]` 35 | * - `[{ a: 0 }]` -> `["[object Object]"]` 36 | * - `{ a: 0 }` -> `["[object", "Object]"]` 37 | * 38 | * Useful for defining CSS classes or table columns. 39 | * @param value the value to coerce into an array of strings 40 | * @param separator split-separator if value isn't an array 41 | */ 42 | declare function coerceStringArray(value: any, separator?: string | RegExp): string[]; 43 | 44 | export { coerceArray, coerceBooleanProperty, coerceCssPixelValue, coerceElement, coerceStringArray }; 45 | export type { BooleanInput }; 46 | -------------------------------------------------------------------------------- /schematics/ng-update/devkit-file-system.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"devkit-file-system.js","sourceRoot":"","sources":["devkit-file-system.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,+CAAqD;AAErD,4DAAsE;AACtE,6BAA6B;AAE7B;;;;GAIG;AACH,MAAa,gBAAiB,SAAQ,wBAAU;IAG9C,YAAoB,KAAW;QAC7B,KAAK,EAAE,CAAC;QADU,UAAK,GAAL,KAAK,CAAM;QAFvB,yBAAoB,GAAG,IAAI,GAAG,EAA0B,CAAC;IAIjE,CAAC;IAED,OAAO,CAAC,GAAG,QAAkB;QAC3B,+EAA+E;QAC/E,OAAO,IAAA,gBAAS,EAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,QAAQ,CAAC,GAAG,CAAC,gBAAS,CAAC,CAAC,CAAC,CAAC;IACxE,CAAC;IAED,IAAI,CAAC,QAAc;QACjB,IAAI,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC5C,OAAO,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,QAAQ,CAAE,CAAC;QAClD,CAAC;QACD,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QAClD,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAClD,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,WAAW;QACT,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;QACnE,IAAI,CAAC,oBAAoB,CAAC,KAAK,EAAE,CAAC;IACpC,CAAC;IAED,UAAU,CAAC,QAAc;QACvB,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IACrC,CAAC;IAED,eAAe,CAAC,OAAa;QAC3B,sEAAsE;QACtE,qEAAqE;QACrE,uEAAuE;QACvE,IAAI,CAAC;YACH,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAC1B,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,uEAAuE;YACvE,yEAAyE;YACzE,oEAAoE;YACpE,uEAAuE;YACvE,sEAAsE;YACtE,8DAA8D;YAC9D,IAAK,CAAS,CAAC,WAAW,CAAC,IAAI,KAAK,0BAA0B,EAAE,CAAC;gBAC/D,OAAO,IAAI,CAAC;YACd,CAAC;QACH,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,SAAS,CAAC,QAAc,EAAE,OAAe;QACvC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,QAAc,EAAE,OAAe;QACpC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACvC,CAAC;IAED,MAAM,CAAC,QAAc;QACnB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAC9B,CAAC;IAED,IAAI,CAAC,QAAc;QACjB,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACzC,OAAO,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IACpD,CAAC;IAED,aAAa,CAAC,OAAa;QACzB,MAAM,EAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC3E,OAAO,EAAC,WAAW,EAAE,KAAK,EAAC,CAAC;IAC9B,CAAC;CACF;AAvED,4CAuEC"} -------------------------------------------------------------------------------- /schematics/utils/project-index-file.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /** 3 | * @license 4 | * Copyright Google LLC All Rights Reserved. 5 | * 6 | * Use of this source code is governed by an MIT-style license that can be 7 | * found in the LICENSE file at https://angular.dev/license 8 | */ 9 | Object.defineProperty(exports, "__esModule", { value: true }); 10 | exports.getProjectIndexFiles = getProjectIndexFiles; 11 | const posix_1 = require("node:path/posix"); 12 | const project_targets_1 = require("./project-targets"); 13 | /** 14 | * Gets the path of the index file in the given project. 15 | * This only searches the base options for each target and not any defined target configurations. 16 | */ 17 | function getProjectIndexFiles(project) { 18 | var _a, _b; 19 | // Use a Set to remove duplicate index files referenced in multiple build targets of a project. 20 | const paths = new Set(); 21 | for (const target of (0, project_targets_1.getProjectBuildTargets)(project)) { 22 | const indexValue = (_a = target.options) === null || _a === void 0 ? void 0 : _a['index']; 23 | switch (typeof indexValue) { 24 | case 'string': 25 | // "index": "src/index.html" 26 | paths.add(indexValue); 27 | break; 28 | case 'object': 29 | // "index": { "input": "src/index.html", ... } 30 | if (indexValue && 'input' in indexValue) { 31 | paths.add(indexValue['input']); 32 | } 33 | break; 34 | case 'undefined': 35 | // v20+ supports an optional index field; default of `/index.html` 36 | // `project_source_root` is the project level `sourceRoot`; default of `/src` 37 | paths.add((0, posix_1.join)((_b = project.sourceRoot) !== null && _b !== void 0 ? _b : (0, posix_1.join)(project.root, 'src'), 'index.html')); 38 | break; 39 | } 40 | } 41 | return Array.from(paths); 42 | } 43 | //# sourceMappingURL=project-index-file.js.map -------------------------------------------------------------------------------- /schematics/ng-update/upgrade-data.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright Google LLC All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.dev/license 7 | */ 8 | import { Migration } from '../update-tool/migration'; 9 | import { ValueOfChanges, VersionChanges } from '../update-tool/version-changes'; 10 | import { AttributeSelectorUpgradeData, ClassNameUpgradeData, ConstructorChecksUpgradeData, CssSelectorUpgradeData, ElementSelectorUpgradeData, InputNameUpgradeData, MethodCallUpgradeData, OutputNameUpgradeData, PropertyNameUpgradeData, SymbolRemovalUpgradeData, CssTokenUpgradeData } from './data'; 11 | /** Upgrade data for the Angular CDK. */ 12 | export declare const cdkUpgradeData: UpgradeData; 13 | /** 14 | * Interface that describes the upgrade data that needs to be defined when using the CDK 15 | * upgrade rules. 16 | */ 17 | export interface UpgradeData { 18 | attributeSelectors: VersionChanges; 19 | classNames: VersionChanges; 20 | constructorChecks: VersionChanges; 21 | cssSelectors: VersionChanges; 22 | cssTokens: VersionChanges; 23 | elementSelectors: VersionChanges; 24 | inputNames: VersionChanges; 25 | methodCallChecks: VersionChanges; 26 | outputNames: VersionChanges; 27 | propertyNames: VersionChanges; 28 | symbolRemoval: VersionChanges; 29 | } 30 | /** 31 | * Gets the reduced upgrade data for the specified data key. The function reads out the 32 | * target version and upgrade data object from the migration and resolves the specified 33 | * data portion that is specifically tied to the target version. 34 | */ 35 | export declare function getVersionUpgradeData>(migration: Migration, dataName: T): U[]; 36 | --------------------------------------------------------------------------------