@angular/upgrade 22.0.0-next.0 → 22.0.0-next.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/_constants-chunk.mjs +1 -1
- package/fesm2022/_constants-chunk.mjs.map +1 -1
- package/fesm2022/static-testing.mjs +6 -6
- package/fesm2022/static-testing.mjs.map +1 -1
- package/fesm2022/static.mjs +28 -26
- package/fesm2022/static.mjs.map +1 -1
- package/fesm2022/upgrade.mjs +2 -2
- package/fesm2022/upgrade.mjs.map +1 -1
- package/package.json +5 -5
- package/types/static-testing.d.ts +1 -1
- package/types/static.d.ts +1 -1
- package/types/upgrade.d.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_constants-chunk.mjs","sources":["../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/packages/upgrade/src/common/src/angular1.ts","../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/packages/upgrade/src/common/src/constants.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 Ng1Token = string;\n\nexport type Ng1Expression = string | Function;\n\nexport interface IAnnotatedFunction extends Function {\n // Older versions of `@types/angular` typings extend the global `Function` interface with\n // `$inject?: string[]`, which is not compatible with `$inject?: ReadonlyArray<string>` (used in\n // latest versions).\n $inject?: Function extends {$inject?: string[]} ? Ng1Token[] : ReadonlyArray<Ng1Token>;\n}\n\nexport type IInjectable = (Ng1Token | Function)[] | IAnnotatedFunction;\n\nexport type SingleOrListOrMap<T> = T | T[] | {[key: string]: T};\n\nexport interface IModule {\n name: string;\n requires: (string | IInjectable)[];\n config(fn: IInjectable): IModule;\n directive(selector: string, factory: IInjectable): IModule;\n component(selector: string, component: IComponent): IModule;\n controller(name: string, type: IInjectable): IModule;\n factory(key: Ng1Token, factoryFn: IInjectable): IModule;\n value(key: Ng1Token, value: any): IModule;\n constant(token: Ng1Token, value: any): IModule;\n run(a: IInjectable): IModule;\n}\nexport interface ICompileService {\n (element: Element | NodeList | Node[] | string, transclude?: Function): ILinkFn;\n}\nexport interface ILinkFn {\n (scope: IScope, cloneAttachFn?: ICloneAttachFunction, options?: ILinkFnOptions): IAugmentedJQuery;\n $$slots?: {[slotName: string]: ILinkFn};\n}\nexport interface ILinkFnOptions {\n parentBoundTranscludeFn?: Function;\n transcludeControllers?: {[key: string]: any};\n futureParentElement?: Node;\n}\nexport interface IRootScopeService {\n $new(isolate?: boolean): IScope;\n $id: string;\n $parent: IScope;\n $root: IScope;\n $watch(exp: Ng1Expression, fn?: (a1?: any, a2?: any) => void): Function;\n $on(event: string, fn?: (event?: any, ...args: any[]) => void): Function;\n $destroy(): any;\n $apply(exp?: Ng1Expression): any;\n $digest(): any;\n $evalAsync(exp: Ng1Expression, locals?: any): void;\n $on(event: string, fn?: (event?: any, ...args: any[]) => void): Function;\n $$childTail: IScope;\n $$childHead: IScope;\n $$nextSibling: IScope;\n $$phase: any;\n [key: string]: any;\n}\nexport interface IScope extends IRootScopeService {}\n\nexport interface IAngularBootstrapConfig {\n strictDi?: boolean;\n}\nexport interface IDirective {\n compile?: IDirectiveCompileFn;\n controller?: IController;\n controllerAs?: string;\n bindToController?: boolean | {[key: string]: string};\n link?: IDirectiveLinkFn | IDirectivePrePost;\n name?: string;\n priority?: number;\n replace?: boolean;\n require?: DirectiveRequireProperty;\n restrict?: string;\n scope?: boolean | {[key: string]: string};\n template?: string | Function;\n templateUrl?: string | Function;\n templateNamespace?: string;\n terminal?: boolean;\n transclude?: DirectiveTranscludeProperty;\n}\nexport type DirectiveRequireProperty = SingleOrListOrMap<string>;\nexport type DirectiveTranscludeProperty = boolean | 'element' | {[key: string]: string};\nexport interface IDirectiveCompileFn {\n (\n templateElement: IAugmentedJQuery,\n templateAttributes: IAttributes,\n transclude: ITranscludeFunction,\n ): IDirectivePrePost;\n}\nexport interface IDirectivePrePost {\n pre?: IDirectiveLinkFn;\n post?: IDirectiveLinkFn;\n}\nexport interface IDirectiveLinkFn {\n (\n scope: IScope,\n instanceElement: IAugmentedJQuery,\n instanceAttributes: IAttributes,\n controller: any,\n transclude: ITranscludeFunction,\n ): void;\n}\nexport interface IComponent {\n bindings?: {[key: string]: string};\n controller?: string | IInjectable;\n controllerAs?: string;\n require?: DirectiveRequireProperty;\n template?: string | Function;\n templateUrl?: string | Function;\n transclude?: DirectiveTranscludeProperty;\n}\nexport interface IAttributes {\n $observe(attr: string, fn: (v: string) => void): void;\n [key: string]: any;\n}\nexport interface ITranscludeFunction {\n // If the scope is provided, then the cloneAttachFn must be as well.\n (scope: IScope, cloneAttachFn: ICloneAttachFunction): IAugmentedJQuery;\n // If one argument is provided, then it's assumed to be the cloneAttachFn.\n (cloneAttachFn?: ICloneAttachFunction): IAugmentedJQuery;\n}\nexport interface ICloneAttachFunction {\n (clonedElement: IAugmentedJQuery, scope: IScope): any;\n}\nexport type IAugmentedJQuery = Node[] & {\n on?: (name: string, fn: () => void) => void;\n data?: (name: string, value?: any) => any;\n text?: () => string;\n inheritedData?: (name: string, value?: any) => any;\n children?: () => IAugmentedJQuery;\n contents?: () => IAugmentedJQuery;\n parent?: () => IAugmentedJQuery;\n empty?: () => void;\n append?: (content: IAugmentedJQuery | string) => IAugmentedJQuery;\n controller?: (name: string) => any;\n isolateScope?: () => IScope;\n injector?: () => IInjectorService;\n triggerHandler?: (eventTypeOrObject: string | Event, extraParameters?: any[]) => IAugmentedJQuery;\n remove?: () => void;\n removeData?: () => void;\n};\nexport interface IProvider {\n $get: IInjectable;\n}\nexport interface IProvideService {\n provider(token: Ng1Token, provider: IProvider): IProvider;\n factory(token: Ng1Token, factory: IInjectable): IProvider;\n service(token: Ng1Token, type: IInjectable): IProvider;\n value(token: Ng1Token, value: any): IProvider;\n constant(token: Ng1Token, value: any): void;\n decorator(token: Ng1Token, factory: IInjectable): void;\n}\nexport interface IParseService {\n (expression: string): ICompiledExpression;\n}\nexport interface ICompiledExpression {\n (context: any, locals: any): any;\n assign?: (context: any, value: any) => any;\n}\nexport interface IHttpBackendService {\n (\n method: string,\n url: string,\n post?: any,\n callback?: Function,\n headers?: any,\n timeout?: number,\n withCredentials?: boolean,\n ): void;\n}\nexport interface ICacheObject {\n put<T>(key: string, value?: T): T;\n get(key: string): any;\n}\nexport interface ITemplateCacheService extends ICacheObject {}\nexport type IController = string | IInjectable;\nexport interface IControllerService {\n (controllerConstructor: IController, locals?: any, later?: any, ident?: any): any;\n (controllerName: string, locals?: any): any;\n}\n\nexport interface IInjectorService {\n get(key: string): any;\n has(key: string): boolean;\n}\n\nexport interface IIntervalService {\n (\n func: Function,\n delay: number,\n count?: number,\n invokeApply?: boolean,\n ...args: any[]\n ): Promise<any>;\n cancel(promise: Promise<any>): boolean;\n}\n\nexport interface ITestabilityService {\n findBindings(element: Element, expression: string, opt_exactMatch?: boolean): Element[];\n findModels(element: Element, expression: string, opt_exactMatch?: boolean): Element[];\n getLocation(): string;\n setLocation(url: string): void;\n whenStable(callback: Function): void;\n}\n\nexport interface INgModelController {\n $render(): void;\n $isEmpty(value: any): boolean;\n $setValidity(validationErrorKey: string, isValid: boolean): void;\n $setPristine(): void;\n $setDirty(): void;\n $setUntouched(): void;\n $setTouched(): void;\n $rollbackViewValue(): void;\n $validate(): void;\n $commitViewValue(): void;\n $setViewValue(value: any, trigger: string): void;\n\n $viewValue: any;\n $modelValue: any;\n $parsers: Function[];\n $formatters: Function[];\n $validators: {[key: string]: Function};\n $asyncValidators: {[key: string]: Function};\n $viewChangeListeners: Function[];\n $error: Object;\n $pending: Object;\n $untouched: boolean;\n $touched: boolean;\n $pristine: boolean;\n $dirty: boolean;\n $valid: boolean;\n $invalid: boolean;\n $name: string;\n}\n\nfunction noNg(): never {\n throw new Error('AngularJS v1.x is not loaded!');\n}\n\nconst noNgElement: typeof angular.element = (() => noNg()) as any;\nnoNgElement.cleanData = noNg;\n\nlet angular: {\n bootstrap: (\n e: Element,\n modules: (string | IInjectable)[],\n config?: IAngularBootstrapConfig,\n ) => IInjectorService;\n module: (prefix: string, dependencies?: string[]) => IModule;\n element: {\n (e: string | Element | Document | IAugmentedJQuery): IAugmentedJQuery;\n cleanData: (nodes: Node[] | NodeList) => void;\n };\n injector: (modules: Array<string | IInjectable>, strictDi?: boolean) => IInjectorService;\n version: {major: number};\n resumeBootstrap: () => void;\n getTestability: (e: Element) => ITestabilityService;\n} = {\n bootstrap: noNg,\n module: noNg,\n element: noNgElement,\n injector: noNg,\n version: undefined as any,\n resumeBootstrap: noNg,\n getTestability: noNg,\n};\n\ntry {\n if (window.hasOwnProperty('angular')) {\n angular = (<any>window).angular;\n }\n} catch {\n // ignore in CJS mode.\n}\n\n/**\n * @deprecated Use `setAngularJSGlobal` instead.\n *\n * @publicApi\n */\nexport function setAngularLib(ng: any): void {\n setAngularJSGlobal(ng);\n}\n\n/**\n * @deprecated Use `getAngularJSGlobal` instead.\n *\n * @publicApi\n */\nexport function getAngularLib(): any {\n return getAngularJSGlobal();\n}\n\n/**\n * Resets the AngularJS global.\n *\n * Used when AngularJS is loaded lazily, and not available on `window`.\n *\n * @publicApi\n */\nexport function setAngularJSGlobal(ng: any): void {\n angular = ng;\n}\n\n/**\n * Returns the current AngularJS global.\n *\n * @publicApi\n */\nexport function getAngularJSGlobal(): any {\n return angular;\n}\n\nexport const bootstrap: typeof angular.bootstrap = (e, modules, config?) =>\n angular.bootstrap(e, modules, config);\n\n// Do not declare as `module` to avoid webpack bug\n// (see https://github.com/angular/angular/issues/30050).\nexport const module_: typeof angular.module = (prefix, dependencies?) =>\n angular.module(prefix, dependencies);\n\nexport const element: typeof angular.element = ((e) =>\n angular.element(e)) as typeof angular.element;\nelement.cleanData = (nodes) => angular.element.cleanData(nodes);\n\nexport const injector: typeof angular.injector = (\n modules: Array<string | IInjectable>,\n strictDi?: boolean,\n) => angular.injector(modules, strictDi);\n\nexport const resumeBootstrap: typeof angular.resumeBootstrap = () => angular.resumeBootstrap();\n\nexport const getTestability: typeof angular.getTestability = (e) => angular.getTestability(e);\n","/**\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 const $COMPILE = '$compile';\nexport const $CONTROLLER = '$controller';\nexport const $DELEGATE = '$delegate';\nexport const $EXCEPTION_HANDLER = '$exceptionHandler';\nexport const $HTTP_BACKEND = '$httpBackend';\nexport const $INJECTOR = '$injector';\nexport const $INTERVAL = '$interval';\nexport const $PARSE = '$parse';\nexport const $PROVIDE = '$provide';\nexport const $ROOT_ELEMENT = '$rootElement';\nexport const $ROOT_SCOPE = '$rootScope';\nexport const $SCOPE = '$scope';\nexport const $TEMPLATE_CACHE = '$templateCache';\nexport const $TEMPLATE_REQUEST = '$templateRequest';\n\nexport const $$TESTABILITY = '$$testability';\n\nexport const COMPILER_KEY = '$$angularCompiler';\nexport const DOWNGRADED_MODULE_COUNT_KEY = '$$angularDowngradedModuleCount';\nexport const GROUP_PROJECTABLE_NODES_KEY = '$$angularGroupProjectableNodes';\nexport const INJECTOR_KEY = '$$angularInjector';\nexport const LAZY_MODULE_REF = '$$angularLazyModuleRef';\nexport const NG_ZONE_KEY = '$$angularNgZone';\nexport const UPGRADE_APP_TYPE_KEY = '$$angularUpgradeAppType';\n\nexport const REQUIRE_INJECTOR = '?^^' + INJECTOR_KEY;\nexport const REQUIRE_NG_MODEL = '?ngModel';\n\nexport const UPGRADE_MODULE_NAME = '$$UpgradeModule';\n"],"names":["noNg","Error","noNgElement","cleanData","angular","bootstrap","module","element","injector","version","undefined","resumeBootstrap","getTestability","window","hasOwnProperty","setAngularLib","ng","setAngularJSGlobal","getAngularLib","getAngularJSGlobal","e","modules","config","module_","prefix","dependencies","nodes","strictDi","$COMPILE","$CONTROLLER","$DELEGATE","$EXCEPTION_HANDLER","$HTTP_BACKEND","$INJECTOR","$INTERVAL","$PARSE","$PROVIDE","$ROOT_ELEMENT","$ROOT_SCOPE","$SCOPE","$TEMPLATE_CACHE","$TEMPLATE_REQUEST","$$TESTABILITY","COMPILER_KEY","DOWNGRADED_MODULE_COUNT_KEY","GROUP_PROJECTABLE_NODES_KEY","INJECTOR_KEY","LAZY_MODULE_REF","NG_ZONE_KEY","UPGRADE_APP_TYPE_KEY","REQUIRE_INJECTOR","REQUIRE_NG_MODEL","UPGRADE_MODULE_NAME"],"mappings":";;;;;;AAoPA,SAASA,IAAIA,GAAA;AACX,EAAA,MAAM,IAAIC,KAAK,CAAC,+BAA+B,CAAC;AAClD;AAEA,MAAMC,WAAW,GAA4BA,MAAMF,IAAI,EAAU;AACjEE,WAAW,CAACC,SAAS,GAAGH,IAAI;AAE5B,IAAII,OAAO,GAeP;AACFC,EAAAA,SAAS,EAAEL,IAAI;AACfM,EAAAA,MAAM,EAAEN,IAAI;AACZO,EAAAA,OAAO,EAAEL,WAAW;AACpBM,EAAAA,QAAQ,EAAER,IAAI;AACdS,EAAAA,OAAO,EAAEC,SAAgB;AACzBC,EAAAA,eAAe,EAAEX,IAAI;AACrBY,EAAAA,cAAc,EAAEZ;CACjB;AAED,IAAI;AACF,EAAA,IAAIa,MAAM,CAACC,cAAc,CAAC,SAAS,CAAC,EAAE;IACpCV,OAAO,GAASS,MAAO,CAACT,OAAO;AACjC;AACF,CAAA,CAAE,MAAM;AASF,SAAUW,aAAaA,CAACC,EAAO,EAAA;EACnCC,kBAAkB,CAACD,EAAE,CAAC;AACxB;SAOgBE,aAAaA,GAAA;EAC3B,OAAOC,kBAAkB,EAAE;AAC7B;AASM,SAAUF,kBAAkBA,CAACD,EAAO,EAAA;AACxCZ,EAAAA,OAAO,GAAGY,EAAE;AACd;SAOgBG,kBAAkBA,GAAA;AAChC,EAAA,OAAOf,OAAO;AAChB;MAEaC,SAAS,GAA6BA,CAACe,CAAC,EAAEC,OAAO,EAAEC,MAAO,KACrElB,OAAO,CAACC,SAAS,CAACe,CAAC,EAAEC,OAAO,EAAEC,MAAM;AAIzBC,MAAAA,OAAO,GAA0BA,CAACC,MAAM,EAAEC,YAAa,KAClErB,OAAO,CAACE,MAAM,CAACkB,MAAM,EAAEC,YAAY;AAE9B,MAAMlB,OAAO,GAA6Ba,CAAC,IAChDhB,OAAO,CAACG,OAAO,CAACa,CAAC;AACnBb,OAAO,CAACJ,SAAS,GAAIuB,KAAK,IAAKtB,OAAO,CAACG,OAAO,CAACJ,SAAS,CAACuB,KAAK,CAAC;AAElDlB,MAAAA,QAAQ,GAA4BA,CAC/Ca,OAAoC,EACpCM,QAAkB,KACfvB,OAAO,CAACI,QAAQ,CAACa,OAAO,EAAEM,QAAQ;AAEhC,MAAMhB,eAAe,GAAmCA,MAAMP,OAAO,CAACO,eAAe,EAAE;AAEvF,MAAMC,cAAc,GAAmCQ,CAAC,IAAKhB,OAAO,CAACQ,cAAc,CAACQ,CAAC,CAAC;;;;;;;;;;;;;;;;AC7UtF,MAAMQ,QAAQ,GAAG;AACjB,MAAMC,WAAW,GAAG;AACpB,MAAMC,SAAS,GAAG;AAClB,MAAMC,kBAAkB,GAAG,mBAAmB;AAC9C,MAAMC,aAAa,GAAG;AACtB,MAAMC,SAAS,GAAG;AAClB,MAAMC,SAAS,GAAG;AAClB,MAAMC,MAAM,GAAG;AACf,MAAMC,QAAQ,GAAG;AACjB,MAAMC,aAAa,GAAG;AACtB,MAAMC,WAAW,GAAG;AACpB,MAAMC,MAAM,GAAG;AACf,MAAMC,eAAe,GAAG;AACxB,MAAMC,iBAAiB,GAAG,kBAAkB;AAE5C,MAAMC,aAAa,GAAG;AAEtB,MAAMC,YAAY,GAAG,mBAAmB;AACxC,MAAMC,2BAA2B,GAAG;AACpC,MAAMC,2BAA2B,GAAG,gCAAgC;AACpE,MAAMC,YAAY,GAAG;AACrB,MAAMC,eAAe,GAAG;AACxB,MAAMC,WAAW,GAAG,iBAAiB;AACrC,MAAMC,oBAAoB,GAAG;AAEvBC,MAAAA,gBAAgB,GAAG,KAAK,GAAGJ;AACjC,MAAMK,gBAAgB,GAAG;AAEzB,MAAMC,mBAAmB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"_constants-chunk.mjs","sources":["../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/packages/upgrade/src/common/src/angular1.ts","../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/packages/upgrade/src/common/src/constants.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 Ng1Token = string;\n\nexport type Ng1Expression = string | Function;\n\nexport interface IAnnotatedFunction extends Function {\n // Older versions of `@types/angular` typings extend the global `Function` interface with\n // `$inject?: string[]`, which is not compatible with `$inject?: ReadonlyArray<string>` (used in\n // latest versions).\n $inject?: Function extends {$inject?: string[]} ? Ng1Token[] : ReadonlyArray<Ng1Token>;\n}\n\nexport type IInjectable = (Ng1Token | Function)[] | IAnnotatedFunction;\n\nexport type SingleOrListOrMap<T> = T | T[] | {[key: string]: T};\n\nexport interface IModule {\n name: string;\n requires: (string | IInjectable)[];\n config(fn: IInjectable): IModule;\n directive(selector: string, factory: IInjectable): IModule;\n component(selector: string, component: IComponent): IModule;\n controller(name: string, type: IInjectable): IModule;\n factory(key: Ng1Token, factoryFn: IInjectable): IModule;\n value(key: Ng1Token, value: any): IModule;\n constant(token: Ng1Token, value: any): IModule;\n run(a: IInjectable): IModule;\n}\nexport interface ICompileService {\n (element: Element | NodeList | Node[] | string, transclude?: Function): ILinkFn;\n}\nexport interface ILinkFn {\n (scope: IScope, cloneAttachFn?: ICloneAttachFunction, options?: ILinkFnOptions): IAugmentedJQuery;\n $$slots?: {[slotName: string]: ILinkFn};\n}\nexport interface ILinkFnOptions {\n parentBoundTranscludeFn?: Function;\n transcludeControllers?: {[key: string]: any};\n futureParentElement?: Node;\n}\nexport interface IRootScopeService {\n $new(isolate?: boolean): IScope;\n $id: string;\n $parent: IScope;\n $root: IScope;\n $watch(exp: Ng1Expression, fn?: (a1?: any, a2?: any) => void): Function;\n $on(event: string, fn?: (event?: any, ...args: any[]) => void): Function;\n $destroy(): any;\n $apply(exp?: Ng1Expression): any;\n $digest(): any;\n $evalAsync(exp: Ng1Expression, locals?: any): void;\n $on(event: string, fn?: (event?: any, ...args: any[]) => void): Function;\n $$childTail: IScope;\n $$childHead: IScope;\n $$nextSibling: IScope;\n $$phase: any;\n [key: string]: any;\n}\nexport interface IScope extends IRootScopeService {}\n\nexport interface IAngularBootstrapConfig {\n strictDi?: boolean;\n}\nexport interface IDirective {\n compile?: IDirectiveCompileFn;\n controller?: IController;\n controllerAs?: string;\n bindToController?: boolean | {[key: string]: string};\n link?: IDirectiveLinkFn | IDirectivePrePost;\n name?: string;\n priority?: number;\n replace?: boolean;\n require?: DirectiveRequireProperty;\n restrict?: string;\n scope?: boolean | {[key: string]: string};\n template?: string | Function;\n templateUrl?: string | Function;\n templateNamespace?: string;\n terminal?: boolean;\n transclude?: DirectiveTranscludeProperty;\n}\nexport type DirectiveRequireProperty = SingleOrListOrMap<string>;\nexport type DirectiveTranscludeProperty = boolean | 'element' | {[key: string]: string};\nexport interface IDirectiveCompileFn {\n (\n templateElement: IAugmentedJQuery,\n templateAttributes: IAttributes,\n transclude: ITranscludeFunction,\n ): IDirectivePrePost;\n}\nexport interface IDirectivePrePost {\n pre?: IDirectiveLinkFn;\n post?: IDirectiveLinkFn;\n}\nexport interface IDirectiveLinkFn {\n (\n scope: IScope,\n instanceElement: IAugmentedJQuery,\n instanceAttributes: IAttributes,\n controller: any,\n transclude: ITranscludeFunction,\n ): void;\n}\nexport interface IComponent {\n bindings?: {[key: string]: string};\n controller?: string | IInjectable;\n controllerAs?: string;\n require?: DirectiveRequireProperty;\n template?: string | Function;\n templateUrl?: string | Function;\n transclude?: DirectiveTranscludeProperty;\n}\nexport interface IAttributes {\n $observe(attr: string, fn: (v: string) => void): void;\n [key: string]: any;\n}\nexport interface ITranscludeFunction {\n // If the scope is provided, then the cloneAttachFn must be as well.\n (scope: IScope, cloneAttachFn: ICloneAttachFunction): IAugmentedJQuery;\n // If one argument is provided, then it's assumed to be the cloneAttachFn.\n (cloneAttachFn?: ICloneAttachFunction): IAugmentedJQuery;\n}\nexport interface ICloneAttachFunction {\n (clonedElement: IAugmentedJQuery, scope: IScope): any;\n}\nexport type IAugmentedJQuery = Node[] & {\n on?: (name: string, fn: () => void) => void;\n data?: (name: string, value?: any) => any;\n text?: () => string;\n inheritedData?: (name: string, value?: any) => any;\n children?: () => IAugmentedJQuery;\n contents?: () => IAugmentedJQuery;\n parent?: () => IAugmentedJQuery;\n empty?: () => void;\n append?: (content: IAugmentedJQuery | string) => IAugmentedJQuery;\n controller?: (name: string) => any;\n isolateScope?: () => IScope;\n injector?: () => IInjectorService;\n triggerHandler?: (eventTypeOrObject: string | Event, extraParameters?: any[]) => IAugmentedJQuery;\n remove?: () => void;\n removeData?: () => void;\n};\nexport interface IProvider {\n $get: IInjectable;\n}\nexport interface IProvideService {\n provider(token: Ng1Token, provider: IProvider): IProvider;\n factory(token: Ng1Token, factory: IInjectable): IProvider;\n service(token: Ng1Token, type: IInjectable): IProvider;\n value(token: Ng1Token, value: any): IProvider;\n constant(token: Ng1Token, value: any): void;\n decorator(token: Ng1Token, factory: IInjectable): void;\n}\nexport interface IParseService {\n (expression: string): ICompiledExpression;\n}\nexport interface ICompiledExpression {\n (context: any, locals: any): any;\n assign?: (context: any, value: any) => any;\n}\nexport interface IHttpBackendService {\n (\n method: string,\n url: string,\n post?: any,\n callback?: Function,\n headers?: any,\n timeout?: number,\n withCredentials?: boolean,\n ): void;\n}\nexport interface ICacheObject {\n put<T>(key: string, value?: T): T;\n get(key: string): any;\n}\nexport interface ITemplateCacheService extends ICacheObject {}\nexport type IController = string | IInjectable;\nexport interface IControllerService {\n (controllerConstructor: IController, locals?: any, later?: any, ident?: any): any;\n (controllerName: string, locals?: any): any;\n}\n\nexport interface IInjectorService {\n get(key: string): any;\n has(key: string): boolean;\n}\n\nexport interface IIntervalService {\n (\n func: Function,\n delay: number,\n count?: number,\n invokeApply?: boolean,\n ...args: any[]\n ): Promise<any>;\n cancel(promise: Promise<any>): boolean;\n}\n\nexport interface ITestabilityService {\n findBindings(element: Element, expression: string, opt_exactMatch?: boolean): Element[];\n findModels(element: Element, expression: string, opt_exactMatch?: boolean): Element[];\n getLocation(): string;\n setLocation(url: string): void;\n whenStable(callback: Function): void;\n}\n\nexport interface INgModelController {\n $render(): void;\n $isEmpty(value: any): boolean;\n $setValidity(validationErrorKey: string, isValid: boolean): void;\n $setPristine(): void;\n $setDirty(): void;\n $setUntouched(): void;\n $setTouched(): void;\n $rollbackViewValue(): void;\n $validate(): void;\n $commitViewValue(): void;\n $setViewValue(value: any, trigger: string): void;\n\n $viewValue: any;\n $modelValue: any;\n $parsers: Function[];\n $formatters: Function[];\n $validators: {[key: string]: Function};\n $asyncValidators: {[key: string]: Function};\n $viewChangeListeners: Function[];\n $error: Object;\n $pending: Object;\n $untouched: boolean;\n $touched: boolean;\n $pristine: boolean;\n $dirty: boolean;\n $valid: boolean;\n $invalid: boolean;\n $name: string;\n}\n\nfunction noNg(): never {\n throw new Error('AngularJS v1.x is not loaded!');\n}\n\nconst noNgElement: typeof angular.element = (() => noNg()) as any;\nnoNgElement.cleanData = noNg;\n\nlet angular: {\n bootstrap: (\n e: Element,\n modules: (string | IInjectable)[],\n config?: IAngularBootstrapConfig,\n ) => IInjectorService;\n module: (prefix: string, dependencies?: string[]) => IModule;\n element: {\n (e: string | Element | Document | IAugmentedJQuery): IAugmentedJQuery;\n cleanData: (nodes: Node[] | NodeList) => void;\n };\n injector: (modules: Array<string | IInjectable>, strictDi?: boolean) => IInjectorService;\n version: {major: number};\n resumeBootstrap: () => void;\n getTestability: (e: Element) => ITestabilityService;\n} = {\n bootstrap: noNg,\n module: noNg,\n element: noNgElement,\n injector: noNg,\n version: undefined as any,\n resumeBootstrap: noNg,\n getTestability: noNg,\n};\n\ntry {\n if (window.hasOwnProperty('angular')) {\n angular = (<any>window).angular;\n }\n} catch {\n // ignore in CJS mode.\n}\n\n/**\n * @deprecated Use `setAngularJSGlobal` instead.\n *\n * @publicApi\n */\nexport function setAngularLib(ng: any): void {\n setAngularJSGlobal(ng);\n}\n\n/**\n * @deprecated Use `getAngularJSGlobal` instead.\n *\n * @publicApi\n */\nexport function getAngularLib(): any {\n return getAngularJSGlobal();\n}\n\n/**\n * Resets the AngularJS global.\n *\n * Used when AngularJS is loaded lazily, and not available on `window`.\n *\n * @publicApi\n */\nexport function setAngularJSGlobal(ng: any): void {\n angular = ng;\n}\n\n/**\n * Returns the current AngularJS global.\n *\n * @publicApi\n */\nexport function getAngularJSGlobal(): any {\n return angular;\n}\n\nexport const bootstrap: typeof angular.bootstrap = (e, modules, config?) =>\n angular.bootstrap(e, modules, config);\n\n// Do not declare as `module` to avoid webpack bug\n// (see https://github.com/angular/angular/issues/30050).\nexport const module_: typeof angular.module = (prefix, dependencies?) =>\n angular.module(prefix, dependencies);\n\nexport const element: typeof angular.element = ((e) =>\n angular.element(e)) as typeof angular.element;\nelement.cleanData = (nodes) => angular.element.cleanData(nodes);\n\nexport const injector: typeof angular.injector = (\n modules: Array<string | IInjectable>,\n strictDi?: boolean,\n) => angular.injector(modules, strictDi);\n\nexport const resumeBootstrap: typeof angular.resumeBootstrap = () => angular.resumeBootstrap();\n\nexport const getTestability: typeof angular.getTestability = (e) => angular.getTestability(e);\n","/**\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 const $COMPILE = '$compile';\nexport const $CONTROLLER = '$controller';\nexport const $DELEGATE = '$delegate';\nexport const $EXCEPTION_HANDLER = '$exceptionHandler';\nexport const $HTTP_BACKEND = '$httpBackend';\nexport const $INJECTOR = '$injector';\nexport const $INTERVAL = '$interval';\nexport const $PARSE = '$parse';\nexport const $PROVIDE = '$provide';\nexport const $ROOT_ELEMENT = '$rootElement';\nexport const $ROOT_SCOPE = '$rootScope';\nexport const $SCOPE = '$scope';\nexport const $TEMPLATE_CACHE = '$templateCache';\nexport const $TEMPLATE_REQUEST = '$templateRequest';\n\nexport const $$TESTABILITY = '$$testability';\n\nexport const COMPILER_KEY = '$$angularCompiler';\nexport const DOWNGRADED_MODULE_COUNT_KEY = '$$angularDowngradedModuleCount';\nexport const GROUP_PROJECTABLE_NODES_KEY = '$$angularGroupProjectableNodes';\nexport const INJECTOR_KEY = '$$angularInjector';\nexport const LAZY_MODULE_REF = '$$angularLazyModuleRef';\nexport const NG_ZONE_KEY = '$$angularNgZone';\nexport const UPGRADE_APP_TYPE_KEY = '$$angularUpgradeAppType';\n\nexport const REQUIRE_INJECTOR = '?^^' + INJECTOR_KEY;\nexport const REQUIRE_NG_MODEL = '?ngModel';\n\nexport const UPGRADE_MODULE_NAME = '$$UpgradeModule';\n"],"names":["noNg","Error","noNgElement","cleanData","angular","bootstrap","module","element","injector","version","undefined","resumeBootstrap","getTestability","window","hasOwnProperty","setAngularLib","ng","setAngularJSGlobal","getAngularLib","getAngularJSGlobal","e","modules","config","module_","prefix","dependencies","nodes","strictDi","$COMPILE","$CONTROLLER","$DELEGATE","$EXCEPTION_HANDLER","$HTTP_BACKEND","$INJECTOR","$INTERVAL","$PARSE","$PROVIDE","$ROOT_ELEMENT","$ROOT_SCOPE","$SCOPE","$TEMPLATE_CACHE","$TEMPLATE_REQUEST","$$TESTABILITY","COMPILER_KEY","DOWNGRADED_MODULE_COUNT_KEY","GROUP_PROJECTABLE_NODES_KEY","INJECTOR_KEY","LAZY_MODULE_REF","NG_ZONE_KEY","UPGRADE_APP_TYPE_KEY","REQUIRE_INJECTOR","REQUIRE_NG_MODEL","UPGRADE_MODULE_NAME"],"mappings":";;;;;;AAoPA,SAASA,IAAIA,GAAA;AACX,EAAA,MAAM,IAAIC,KAAK,CAAC,+BAA+B,CAAC;AAClD;AAEA,MAAMC,WAAW,GAA4BA,MAAMF,IAAI,EAAU;AACjEE,WAAW,CAACC,SAAS,GAAGH,IAAI;AAE5B,IAAII,OAAO,GAeP;AACFC,EAAAA,SAAS,EAAEL,IAAI;AACfM,EAAAA,MAAM,EAAEN,IAAI;AACZO,EAAAA,OAAO,EAAEL,WAAW;AACpBM,EAAAA,QAAQ,EAAER,IAAI;AACdS,EAAAA,OAAO,EAAEC,SAAgB;AACzBC,EAAAA,eAAe,EAAEX,IAAI;AACrBY,EAAAA,cAAc,EAAEZ;CACjB;AAED,IAAI;AACF,EAAA,IAAIa,MAAM,CAACC,cAAc,CAAC,SAAS,CAAC,EAAE;IACpCV,OAAO,GAASS,MAAO,CAACT,OAAO;AACjC,EAAA;AACF,CAAA,CAAE,MAAM,CAER;AAOM,SAAUW,aAAaA,CAACC,EAAO,EAAA;EACnCC,kBAAkB,CAACD,EAAE,CAAC;AACxB;SAOgBE,aAAaA,GAAA;EAC3B,OAAOC,kBAAkB,EAAE;AAC7B;AASM,SAAUF,kBAAkBA,CAACD,EAAO,EAAA;AACxCZ,EAAAA,OAAO,GAAGY,EAAE;AACd;SAOgBG,kBAAkBA,GAAA;AAChC,EAAA,OAAOf,OAAO;AAChB;MAEaC,SAAS,GAA6BA,CAACe,CAAC,EAAEC,OAAO,EAAEC,MAAO,KACrElB,OAAO,CAACC,SAAS,CAACe,CAAC,EAAEC,OAAO,EAAEC,MAAM;AAI/B,MAAMC,OAAO,GAA0BA,CAACC,MAAM,EAAEC,YAAa,KAClErB,OAAO,CAACE,MAAM,CAACkB,MAAM,EAAEC,YAAY;AAE9B,MAAMlB,OAAO,GAA6Ba,CAAC,IAChDhB,OAAO,CAACG,OAAO,CAACa,CAAC;AACnBb,OAAO,CAACJ,SAAS,GAAIuB,KAAK,IAAKtB,OAAO,CAACG,OAAO,CAACJ,SAAS,CAACuB,KAAK,CAAC;AAExD,MAAMlB,QAAQ,GAA4BA,CAC/Ca,OAAoC,EACpCM,QAAkB,KACfvB,OAAO,CAACI,QAAQ,CAACa,OAAO,EAAEM,QAAQ;AAEhC,MAAMhB,eAAe,GAAmCA,MAAMP,OAAO,CAACO,eAAe,EAAE;AAEvF,MAAMC,cAAc,GAAmCQ,CAAC,IAAKhB,OAAO,CAACQ,cAAc,CAACQ,CAAC,CAAC;;;;;;;;;;;;;;;;AC7UtF,MAAMQ,QAAQ,GAAG;AACjB,MAAMC,WAAW,GAAG;AACpB,MAAMC,SAAS,GAAG;AAClB,MAAMC,kBAAkB,GAAG,mBAAmB;AAC9C,MAAMC,aAAa,GAAG;AACtB,MAAMC,SAAS,GAAG;AAClB,MAAMC,SAAS,GAAG;AAClB,MAAMC,MAAM,GAAG;AACf,MAAMC,QAAQ,GAAG;AACjB,MAAMC,aAAa,GAAG;AACtB,MAAMC,WAAW,GAAG;AACpB,MAAMC,MAAM,GAAG;AACf,MAAMC,eAAe,GAAG;AACxB,MAAMC,iBAAiB,GAAG,kBAAkB;AAE5C,MAAMC,aAAa,GAAG;AAEtB,MAAMC,YAAY,GAAG,mBAAmB;AACxC,MAAMC,2BAA2B,GAAG;AACpC,MAAMC,2BAA2B,GAAG,gCAAgC;AACpE,MAAMC,YAAY,GAAG;AACrB,MAAMC,eAAe,GAAG;AACxB,MAAMC,WAAW,GAAG,iBAAiB;AACrC,MAAMC,oBAAoB,GAAG;AAE7B,MAAMC,gBAAgB,GAAG,KAAK,GAAGJ;AACjC,MAAMK,gBAAgB,GAAG;AAEzB,MAAMC,mBAAmB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v22.0.0-next.
|
|
2
|
+
* @license Angular v22.0.0-next.10
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
8
|
import { NgModule, Injector } from '@angular/core';
|
|
9
|
-
import { $INJECTOR, module_, UPGRADE_APP_TYPE_KEY, INJECTOR_KEY, injector as injector$1 } from './_constants-chunk.mjs';
|
|
10
9
|
import { TestBed } from '@angular/core/testing';
|
|
10
|
+
import { module_, UPGRADE_APP_TYPE_KEY, INJECTOR_KEY, injector as injector$1, $INJECTOR } from './_constants-chunk.mjs';
|
|
11
11
|
|
|
12
12
|
let $injector = null;
|
|
13
13
|
let injector;
|
|
@@ -20,7 +20,7 @@ class AngularTestingModule {
|
|
|
20
20
|
}
|
|
21
21
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
22
22
|
minVersion: "12.0.0",
|
|
23
|
-
version: "22.0.0-next.
|
|
23
|
+
version: "22.0.0-next.10",
|
|
24
24
|
ngImport: i0,
|
|
25
25
|
type: AngularTestingModule,
|
|
26
26
|
deps: [{
|
|
@@ -30,13 +30,13 @@ class AngularTestingModule {
|
|
|
30
30
|
});
|
|
31
31
|
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
32
32
|
minVersion: "14.0.0",
|
|
33
|
-
version: "22.0.0-next.
|
|
33
|
+
version: "22.0.0-next.10",
|
|
34
34
|
ngImport: i0,
|
|
35
35
|
type: AngularTestingModule
|
|
36
36
|
});
|
|
37
37
|
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
38
38
|
minVersion: "12.0.0",
|
|
39
|
-
version: "22.0.0-next.
|
|
39
|
+
version: "22.0.0-next.10",
|
|
40
40
|
ngImport: i0,
|
|
41
41
|
type: AngularTestingModule,
|
|
42
42
|
providers: [{
|
|
@@ -47,7 +47,7 @@ class AngularTestingModule {
|
|
|
47
47
|
}
|
|
48
48
|
i0.ɵɵngDeclareClassMetadata({
|
|
49
49
|
minVersion: "12.0.0",
|
|
50
|
-
version: "22.0.0-next.
|
|
50
|
+
version: "22.0.0-next.10",
|
|
51
51
|
ngImport: i0,
|
|
52
52
|
type: AngularTestingModule,
|
|
53
53
|
decorators: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static-testing.mjs","sources":["../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/packages/upgrade/static/testing/src/create_angular_testing_module.ts","../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/packages/upgrade/static/testing/src/create_angularjs_testing_module.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 {Injector, NgModule, Type} from '@angular/core';\nimport {ɵangular1 as angular, ɵconstants} from '../../../static';\n\nimport {UpgradeAppType} from '../../../src/common/src/util';\n\nlet $injector: angular.IInjectorService | null = null;\nlet injector: Injector;\n\nexport function $injectorFactory() {\n return $injector;\n}\n\n@NgModule({providers: [{provide: ɵconstants.$INJECTOR, useFactory: $injectorFactory}]})\nexport class AngularTestingModule {\n constructor(i: Injector) {\n injector = i;\n }\n}\n\n/**\n * A helper function to use when unit testing Angular services that depend upon upgraded AngularJS\n * services.\n *\n * This function returns an `NgModule` decorated class that is configured to wire up the Angular\n * and AngularJS injectors without the need to actually bootstrap a hybrid application.\n * This makes it simpler and faster to unit test services.\n *\n * Use the returned class as an \"import\" when configuring the `TestBed`.\n *\n * In the following code snippet, we are configuring the TestBed with two imports.\n * The `Ng2AppModule` is the Angular part of our hybrid application and the `ng1AppModule` is the\n * AngularJS part.\n *\n * {@example upgrade/static/ts/full/module.spec.ts region='angular-setup'}\n *\n * Once this is done we can get hold of services via the Angular `Injector` as normal.\n * Services that are (or have dependencies on) an upgraded AngularJS service, will be instantiated\n * as needed by the AngularJS `$injector`.\n *\n * In the following code snippet, `HeroesService` is an Angular service that depends upon an\n * AngularJS service, `titleCase`.\n *\n * {@example upgrade/static/ts/full/module.spec.ts region='angular-spec'}\n *\n * <div class=\"docs-alert docs-alert-important\">\n *\n * This helper is for testing services not Components.\n * For Component testing you must still bootstrap a hybrid app. See `UpgradeModule` or\n * `downgradeModule` for more information.\n *\n * </div>\n *\n * <div class=\"docs-alert docs-alert-important\">\n *\n * The resulting configuration does not wire up AngularJS digests to Zone hooks. It is the\n * responsibility of the test writer to call `$rootScope.$apply`, as necessary, to trigger\n * AngularJS handlers of async events from Angular.\n *\n * </div>\n *\n * <div class=\"docs-alert docs-alert-important\">\n *\n * The helper sets up global variables to hold the shared Angular and AngularJS injectors.\n *\n * * Only call this helper once per spec.\n * * Do not use `createAngularTestingModule` in the same spec as `createAngularJSTestingModule`.\n *\n * </div>\n *\n * Here is the example application and its unit tests that use `createAngularTestingModule`\n * and `createAngularJSTestingModule`.\n *\n * <code-tabs>\n * <code-pane header=\"module.spec.ts\" path=\"upgrade/static/ts/full/module.spec.ts\"></code-pane>\n * <code-pane header=\"module.ts\" path=\"upgrade/static/ts/full/module.ts\"></code-pane>\n * </code-tabs>\n *\n *\n * @param angularJSModules a collection of the names of AngularJS modules to include in the\n * configuration.\n * @param [strictDi] whether the AngularJS injector should have `strictDI` enabled.\n *\n * @publicApi\n */\nexport function createAngularTestingModule(\n angularJSModules: string[],\n strictDi?: boolean,\n): Type<any> {\n angular\n .module_('$$angularJSTestingModule', angularJSModules)\n .constant(ɵconstants.UPGRADE_APP_TYPE_KEY, UpgradeAppType.Static)\n .factory(ɵconstants.INJECTOR_KEY, () => injector);\n $injector = angular.injector(['ng', '$$angularJSTestingModule'], strictDi);\n return AngularTestingModule;\n}\n","/**\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 {Injector} from '@angular/core';\nimport {TestBed} from '@angular/core/testing';\nimport {ɵangular1 as ng, ɵconstants} from '../../../static';\n\nimport {UpgradeAppType} from '../../../src/common/src/util';\n\n/**\n * A helper function to use when unit testing AngularJS services that depend upon downgraded Angular\n * services.\n *\n * This function returns an AngularJS module that is configured to wire up the AngularJS and Angular\n * injectors without the need to actually bootstrap a hybrid application.\n * This makes it simpler and faster to unit test services.\n *\n * Use the returned AngularJS module in a call to\n * [`angular.mocks.module`](https://docs.angularjs.org/api/ngMock/function/angular.mock.module) to\n * include this module in the unit test injector.\n *\n * In the following code snippet, we are configuring the `$injector` with two modules:\n * The AngularJS `ng1AppModule`, which is the AngularJS part of our hybrid application and the\n * `Ng2AppModule`, which is the Angular part.\n *\n * {@example upgrade/static/ts/full/module.spec.ts region='angularjs-setup'}\n *\n * Once this is done we can get hold of services via the AngularJS `$injector` as normal.\n * Services that are (or have dependencies on) a downgraded Angular service, will be instantiated as\n * needed by the Angular root `Injector`.\n *\n * In the following code snippet, `heroesService` is a downgraded Angular service that we are\n * accessing from AngularJS.\n *\n * {@example upgrade/static/ts/full/module.spec.ts region='angularjs-spec'}\n *\n * <div class=\"docs-alert docs-alert-important\">\n *\n * This helper is for testing services not components.\n * For Component testing you must still bootstrap a hybrid app. See `UpgradeModule` or\n * `downgradeModule` for more information.\n *\n * </div>\n *\n * <div class=\"docs-alert docs-alert-important\">\n *\n * The resulting configuration does not wire up AngularJS digests to Zone hooks. It is the\n * responsibility of the test writer to call `$rootScope.$apply`, as necessary, to trigger\n * AngularJS handlers of async events from Angular.\n *\n * </div>\n *\n * <div class=\"docs-alert docs-alert-important\">\n *\n * The helper sets up global variables to hold the shared Angular and AngularJS injectors.\n *\n * * Only call this helper once per spec.\n * * Do not use `createAngularJSTestingModule` in the same spec as `createAngularTestingModule`.\n *\n * </div>\n *\n * Here is the example application and its unit tests that use `createAngularTestingModule`\n * and `createAngularJSTestingModule`.\n *\n * <code-tabs>\n * <code-pane header=\"module.spec.ts\" path=\"upgrade/static/ts/full/module.spec.ts\"></code-pane>\n * <code-pane header=\"module.ts\" path=\"upgrade/static/ts/full/module.ts\"></code-pane>\n * </code-tabs>\n *\n *\n * @param angularModules a collection of Angular modules to include in the configuration.\n *\n * @publicApi\n */\nexport function createAngularJSTestingModule(angularModules: any[]): string {\n return ng\n .module_('$$angularJSTestingModule', [])\n .constant(ɵconstants.UPGRADE_APP_TYPE_KEY, UpgradeAppType.Static)\n .factory(ɵconstants.INJECTOR_KEY, [\n ɵconstants.$INJECTOR,\n ($injector: ng.IInjectorService) => {\n TestBed.configureTestingModule({\n imports: angularModules,\n providers: [{provide: ɵconstants.$INJECTOR, useValue: $injector}],\n });\n return TestBed.inject(Injector);\n },\n ]).name;\n}\n"],"names":["$injector","injector","$injectorFactory","AngularTestingModule","constructor","i","deps","token","i0","Injector","target","ɵɵFactoryTarget","NgModule","ɵinj","ɵɵngDeclareInjector","minVersion","version","ngImport","type","providers","provide","ɵconstants","useFactory","decorators","args","createAngularTestingModule","angularJSModules","strictDi","angular","constant","factory","createAngularJSTestingModule","angularModules","ng","TestBed","configureTestingModule","imports","useValue","inject","name"],"mappings":";;;;;;;;;;;AAaA,IAAIA,SAAS,GAAoC,IAAI;AACrD,IAAIC,QAAkB;SAENC,gBAAgBA,GAAA;AAC9B,EAAA,OAAOF,SAAS;AAClB;MAGaG,oBAAoB,CAAA;EAC/BC,WAAAA,CAAYC,CAAW,EAAA;AACrBJ,IAAAA,QAAQ,GAAGI,CAAC;AACd;;;;;UAHWF,oBAAoB;AAAAG,IAAAA,IAAA,EAAA,CAAA;MAAAC,KAAA,EAAAC,EAAA,CAAAC;AAAA,KAAA,CAAA;AAAAC,IAAAA,MAAA,EAAAF,EAAA,CAAAG,eAAA,CAAAC;AAAA,GAAA,CAAA;;;;;UAApBT;AAAoB,GAAA,CAAA;AAApB,EAAA,OAAAU,IAAA,GAAAL,EAAA,CAAAM,mBAAA,CAAA;AAAAC,IAAAA,UAAA,EAAA,QAAA;AAAAC,IAAAA,OAAA,EAAA,mBAAA;AAAAC,IAAAA,QAAA,EAAAT,EAAA;AAAAU,IAAAA,IAAA,EAAAf,oBAAoB;
|
|
1
|
+
{"version":3,"file":"static-testing.mjs","sources":["../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/packages/upgrade/static/testing/src/create_angular_testing_module.ts","../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/packages/upgrade/static/testing/src/create_angularjs_testing_module.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 {Injector, NgModule, Type} from '@angular/core';\nimport {ɵangular1 as angular, ɵconstants} from '../../../static';\n\nimport {UpgradeAppType} from '../../../src/common/src/util';\n\nlet $injector: angular.IInjectorService | null = null;\nlet injector: Injector;\n\nexport function $injectorFactory() {\n return $injector;\n}\n\n@NgModule({providers: [{provide: ɵconstants.$INJECTOR, useFactory: $injectorFactory}]})\nexport class AngularTestingModule {\n constructor(i: Injector) {\n injector = i;\n }\n}\n\n/**\n * A helper function to use when unit testing Angular services that depend upon upgraded AngularJS\n * services.\n *\n * This function returns an `NgModule` decorated class that is configured to wire up the Angular\n * and AngularJS injectors without the need to actually bootstrap a hybrid application.\n * This makes it simpler and faster to unit test services.\n *\n * Use the returned class as an \"import\" when configuring the `TestBed`.\n *\n * In the following code snippet, we are configuring the TestBed with two imports.\n * The `Ng2AppModule` is the Angular part of our hybrid application and the `ng1AppModule` is the\n * AngularJS part.\n *\n * {@example upgrade/static/ts/full/module.spec.ts region='angular-setup'}\n *\n * Once this is done we can get hold of services via the Angular `Injector` as normal.\n * Services that are (or have dependencies on) an upgraded AngularJS service, will be instantiated\n * as needed by the AngularJS `$injector`.\n *\n * In the following code snippet, `HeroesService` is an Angular service that depends upon an\n * AngularJS service, `titleCase`.\n *\n * {@example upgrade/static/ts/full/module.spec.ts region='angular-spec'}\n *\n * <div class=\"docs-alert docs-alert-important\">\n *\n * This helper is for testing services not Components.\n * For Component testing you must still bootstrap a hybrid app. See `UpgradeModule` or\n * `downgradeModule` for more information.\n *\n * </div>\n *\n * <div class=\"docs-alert docs-alert-important\">\n *\n * The resulting configuration does not wire up AngularJS digests to Zone hooks. It is the\n * responsibility of the test writer to call `$rootScope.$apply`, as necessary, to trigger\n * AngularJS handlers of async events from Angular.\n *\n * </div>\n *\n * <div class=\"docs-alert docs-alert-important\">\n *\n * The helper sets up global variables to hold the shared Angular and AngularJS injectors.\n *\n * * Only call this helper once per spec.\n * * Do not use `createAngularTestingModule` in the same spec as `createAngularJSTestingModule`.\n *\n * </div>\n *\n * Here is the example application and its unit tests that use `createAngularTestingModule`\n * and `createAngularJSTestingModule`.\n *\n * <code-tabs>\n * <code-pane header=\"module.spec.ts\" path=\"upgrade/static/ts/full/module.spec.ts\"></code-pane>\n * <code-pane header=\"module.ts\" path=\"upgrade/static/ts/full/module.ts\"></code-pane>\n * </code-tabs>\n *\n *\n * @param angularJSModules a collection of the names of AngularJS modules to include in the\n * configuration.\n * @param [strictDi] whether the AngularJS injector should have `strictDI` enabled.\n *\n * @publicApi\n */\nexport function createAngularTestingModule(\n angularJSModules: string[],\n strictDi?: boolean,\n): Type<any> {\n angular\n .module_('$$angularJSTestingModule', angularJSModules)\n .constant(ɵconstants.UPGRADE_APP_TYPE_KEY, UpgradeAppType.Static)\n .factory(ɵconstants.INJECTOR_KEY, () => injector);\n $injector = angular.injector(['ng', '$$angularJSTestingModule'], strictDi);\n return AngularTestingModule;\n}\n","/**\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 {Injector} from '@angular/core';\nimport {TestBed} from '@angular/core/testing';\nimport {ɵangular1 as ng, ɵconstants} from '../../../static';\n\nimport {UpgradeAppType} from '../../../src/common/src/util';\n\n/**\n * A helper function to use when unit testing AngularJS services that depend upon downgraded Angular\n * services.\n *\n * This function returns an AngularJS module that is configured to wire up the AngularJS and Angular\n * injectors without the need to actually bootstrap a hybrid application.\n * This makes it simpler and faster to unit test services.\n *\n * Use the returned AngularJS module in a call to\n * [`angular.mocks.module`](https://docs.angularjs.org/api/ngMock/function/angular.mock.module) to\n * include this module in the unit test injector.\n *\n * In the following code snippet, we are configuring the `$injector` with two modules:\n * The AngularJS `ng1AppModule`, which is the AngularJS part of our hybrid application and the\n * `Ng2AppModule`, which is the Angular part.\n *\n * {@example upgrade/static/ts/full/module.spec.ts region='angularjs-setup'}\n *\n * Once this is done we can get hold of services via the AngularJS `$injector` as normal.\n * Services that are (or have dependencies on) a downgraded Angular service, will be instantiated as\n * needed by the Angular root `Injector`.\n *\n * In the following code snippet, `heroesService` is a downgraded Angular service that we are\n * accessing from AngularJS.\n *\n * {@example upgrade/static/ts/full/module.spec.ts region='angularjs-spec'}\n *\n * <div class=\"docs-alert docs-alert-important\">\n *\n * This helper is for testing services not components.\n * For Component testing you must still bootstrap a hybrid app. See `UpgradeModule` or\n * `downgradeModule` for more information.\n *\n * </div>\n *\n * <div class=\"docs-alert docs-alert-important\">\n *\n * The resulting configuration does not wire up AngularJS digests to Zone hooks. It is the\n * responsibility of the test writer to call `$rootScope.$apply`, as necessary, to trigger\n * AngularJS handlers of async events from Angular.\n *\n * </div>\n *\n * <div class=\"docs-alert docs-alert-important\">\n *\n * The helper sets up global variables to hold the shared Angular and AngularJS injectors.\n *\n * * Only call this helper once per spec.\n * * Do not use `createAngularJSTestingModule` in the same spec as `createAngularTestingModule`.\n *\n * </div>\n *\n * Here is the example application and its unit tests that use `createAngularTestingModule`\n * and `createAngularJSTestingModule`.\n *\n * <code-tabs>\n * <code-pane header=\"module.spec.ts\" path=\"upgrade/static/ts/full/module.spec.ts\"></code-pane>\n * <code-pane header=\"module.ts\" path=\"upgrade/static/ts/full/module.ts\"></code-pane>\n * </code-tabs>\n *\n *\n * @param angularModules a collection of Angular modules to include in the configuration.\n *\n * @publicApi\n */\nexport function createAngularJSTestingModule(angularModules: any[]): string {\n return ng\n .module_('$$angularJSTestingModule', [])\n .constant(ɵconstants.UPGRADE_APP_TYPE_KEY, UpgradeAppType.Static)\n .factory(ɵconstants.INJECTOR_KEY, [\n ɵconstants.$INJECTOR,\n ($injector: ng.IInjectorService) => {\n TestBed.configureTestingModule({\n imports: angularModules,\n providers: [{provide: ɵconstants.$INJECTOR, useValue: $injector}],\n });\n return TestBed.inject(Injector);\n },\n ]).name;\n}\n"],"names":["$injector","injector","$injectorFactory","AngularTestingModule","constructor","i","deps","token","i0","Injector","target","ɵɵFactoryTarget","NgModule","ɵinj","ɵɵngDeclareInjector","minVersion","version","ngImport","type","providers","provide","ɵconstants","useFactory","decorators","args","createAngularTestingModule","angularJSModules","strictDi","angular","constant","factory","createAngularJSTestingModule","angularModules","ng","TestBed","configureTestingModule","imports","useValue","inject","name"],"mappings":";;;;;;;;;;;AAaA,IAAIA,SAAS,GAAoC,IAAI;AACrD,IAAIC,QAAkB;SAENC,gBAAgBA,GAAA;AAC9B,EAAA,OAAOF,SAAS;AAClB;MAGaG,oBAAoB,CAAA;EAC/BC,WAAAA,CAAYC,CAAW,EAAA;AACrBJ,IAAAA,QAAQ,GAAGI,CAAC;AACd,EAAA;;;;;UAHWF,oBAAoB;AAAAG,IAAAA,IAAA,EAAA,CAAA;MAAAC,KAAA,EAAAC,EAAA,CAAAC;AAAA,KAAA,CAAA;AAAAC,IAAAA,MAAA,EAAAF,EAAA,CAAAG,eAAA,CAAAC;AAAA,GAAA,CAAA;;;;;UAApBT;AAAoB,GAAA,CAAA;AAApB,EAAA,OAAAU,IAAA,GAAAL,EAAA,CAAAM,mBAAA,CAAA;AAAAC,IAAAA,UAAA,EAAA,QAAA;AAAAC,IAAAA,OAAA,EAAA,mBAAA;AAAAC,IAAAA,QAAA,EAAAT,EAAA;AAAAU,IAAAA,IAAA,EAAAf,oBAAoB;AAAAgB,IAAAA,SAAA,EADX,CAAC;MAACC,OAAO,EAAEC,SAAoB;AAAEC,MAAAA,UAAU,EAAEpB;KAAiB;AAAC,GAAA,CAAA;;;;;;QACxEC,oBAAoB;AAAAoB,EAAAA,UAAA,EAAA,CAAA;UADhCX,QAAQ;AAACY,IAAAA,IAAA,EAAA,CAAA;AAACL,MAAAA,SAAS,EAAE,CAAC;QAACC,OAAO,EAAEC,SAAoB;AAAEC,QAAAA,UAAU,EAAEpB;OAAiB;KAAE;;;;;;AAwEhF,SAAUuB,0BAA0BA,CACxCC,gBAA0B,EAC1BC,QAAkB,EAAA;EAElBC,OACU,CAAC,0BAA0B,EAAEF,gBAAgB,CAAA,CACpDG,QAAQ,CAACR,oBAA+B,EAAA,CAAA,CAAA,CACxCS,OAAO,CAACT,YAAuB,EAAE,MAAMpB,QAAQ,CAAC;AACnDD,EAAAA,SAAS,GAAG4B,UAAgB,CAAC,CAAC,IAAI,EAAE,0BAA0B,CAAC,EAAED,QAAQ,CAAC;AAC1E,EAAA,OAAOxB,oBAAoB;AAC7B;;ACvBM,SAAU4B,4BAA4BA,CAACC,cAAqB,EAAA;AAChE,EAAA,OAAOC,OACG,CAAC,0BAA0B,EAAE,EAAE,CAAA,CACtCJ,QAAQ,CAACR,oBAA+B,EAAA,CAAA,CAAA,CACxCS,OAAO,CAACT,YAAuB,EAAE,CAChCA,SAAoB,EACnBrB,SAA8B,IAAI;IACjCkC,OAAO,CAACC,sBAAsB,CAAC;AAC7BC,MAAAA,OAAO,EAAEJ,cAAc;AACvBb,MAAAA,SAAS,EAAE,CAAC;QAACC,OAAO,EAAEC,SAAoB;AAAEgB,QAAAA,QAAQ,EAAErC;OAAU;AACjE,KAAA,CAAC;AACF,IAAA,OAAOkC,OAAO,CAACI,MAAM,CAAC7B,QAAQ,CAAC;EACjC,CAAC,CACF,CAAC,CAAC8B,IAAI;AACX;;;;"}
|
package/fesm2022/static.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v22.0.0-next.
|
|
2
|
+
* @license Angular v22.0.0-next.10
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { element, $ROOT_ELEMENT, $ROOT_SCOPE, DOWNGRADED_MODULE_COUNT_KEY, UPGRADE_APP_TYPE_KEY, $SCOPE, $COMPILE, $INJECTOR, $PARSE, REQUIRE_INJECTOR, REQUIRE_NG_MODEL, LAZY_MODULE_REF, INJECTOR_KEY, $CONTROLLER, $TEMPLATE_CACHE, $HTTP_BACKEND, module_, $PROVIDE, UPGRADE_MODULE_NAME, $$TESTABILITY, $DELEGATE, $INTERVAL, bootstrap } from './_constants-chunk.mjs';
|
|
8
|
-
export { getAngularJSGlobal, setAngularJSGlobal, angular1 as ɵangular1, constants as ɵconstants } from './_constants-chunk.mjs';
|
|
9
7
|
import * as i0 from '@angular/core';
|
|
10
|
-
import { ɵNG_MOD_DEF as _NG_MOD_DEF, Injector, ChangeDetectorRef, Testability, TestabilityRegistry, ApplicationRef, SimpleChange, ɵSIGNAL as _SIGNAL, NgZone,
|
|
8
|
+
import { ɵNG_MOD_DEF as _NG_MOD_DEF, Injector, createComponent, ChangeDetectorRef, Testability, TestabilityRegistry, reflectComponentType, ApplicationRef, SimpleChange, ɵSIGNAL as _SIGNAL, NgZone, EnvironmentInjector, ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR as _NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR, PlatformRef, ɵinternalProvideZoneChangeDetection as _internalProvideZoneChangeDetection, EventEmitter, Directive, ɵNoopNgZone as _NoopNgZone, NgModule } from '@angular/core';
|
|
9
|
+
import { element, $ROOT_ELEMENT, $ROOT_SCOPE, DOWNGRADED_MODULE_COUNT_KEY, UPGRADE_APP_TYPE_KEY, $SCOPE, $COMPILE, $INJECTOR, $PARSE, REQUIRE_INJECTOR, REQUIRE_NG_MODEL, LAZY_MODULE_REF, INJECTOR_KEY, $CONTROLLER, $TEMPLATE_CACHE, $HTTP_BACKEND, module_, UPGRADE_MODULE_NAME, $PROVIDE, $$TESTABILITY, $DELEGATE, $INTERVAL, bootstrap } from './_constants-chunk.mjs';
|
|
10
|
+
export { getAngularJSGlobal, setAngularJSGlobal, angular1 as ɵangular1, constants as ɵconstants } from './_constants-chunk.mjs';
|
|
11
11
|
export { VERSION } from './upgrade.mjs';
|
|
12
12
|
import { platformBrowser } from '@angular/platform-browser';
|
|
13
13
|
|
|
@@ -152,25 +152,27 @@ class DowngradeComponentAdapter {
|
|
|
152
152
|
attrs;
|
|
153
153
|
scope;
|
|
154
154
|
ngModel;
|
|
155
|
+
environmentInjector;
|
|
155
156
|
parentInjector;
|
|
156
157
|
$compile;
|
|
157
158
|
$parse;
|
|
158
|
-
|
|
159
|
+
component;
|
|
159
160
|
wrapCallback;
|
|
160
161
|
unsafelyOverwriteSignalInputs;
|
|
161
162
|
implementsOnChanges = false;
|
|
162
163
|
inputChangeCount = 0;
|
|
163
164
|
inputChanges = {};
|
|
164
165
|
componentScope;
|
|
165
|
-
constructor(element, attrs, scope, ngModel, parentInjector, $compile, $parse,
|
|
166
|
+
constructor(element, attrs, scope, ngModel, environmentInjector, parentInjector, $compile, $parse, component, wrapCallback, unsafelyOverwriteSignalInputs) {
|
|
166
167
|
this.element = element;
|
|
167
168
|
this.attrs = attrs;
|
|
168
169
|
this.scope = scope;
|
|
169
170
|
this.ngModel = ngModel;
|
|
171
|
+
this.environmentInjector = environmentInjector;
|
|
170
172
|
this.parentInjector = parentInjector;
|
|
171
173
|
this.$compile = $compile;
|
|
172
174
|
this.$parse = $parse;
|
|
173
|
-
this.
|
|
175
|
+
this.component = component;
|
|
174
176
|
this.wrapCallback = wrapCallback;
|
|
175
177
|
this.unsafelyOverwriteSignalInputs = unsafelyOverwriteSignalInputs;
|
|
176
178
|
this.componentScope = scope.$new();
|
|
@@ -205,7 +207,12 @@ class DowngradeComponentAdapter {
|
|
|
205
207
|
parent: this.parentInjector,
|
|
206
208
|
name: 'DowngradeComponentAdapter'
|
|
207
209
|
});
|
|
208
|
-
const componentRef = this.
|
|
210
|
+
const componentRef = createComponent(this.component, {
|
|
211
|
+
elementInjector: childInjector,
|
|
212
|
+
environmentInjector: this.environmentInjector,
|
|
213
|
+
projectableNodes,
|
|
214
|
+
hostElement: this.element[0]
|
|
215
|
+
});
|
|
209
216
|
const viewChangeDetector = componentRef.injector.get(ChangeDetectorRef);
|
|
210
217
|
const changeDetector = componentRef.changeDetectorRef;
|
|
211
218
|
const testability = componentRef.injector.get(Testability, null);
|
|
@@ -225,7 +232,7 @@ class DowngradeComponentAdapter {
|
|
|
225
232
|
viewChangeDetector
|
|
226
233
|
}) {
|
|
227
234
|
const attrs = this.attrs;
|
|
228
|
-
const inputs = this.
|
|
235
|
+
const inputs = reflectComponentType(this.component)?.inputs ?? [];
|
|
229
236
|
for (const input of inputs) {
|
|
230
237
|
const inputBinding = new PropertyBinding(input.propName, input.templateName);
|
|
231
238
|
let expr = null;
|
|
@@ -263,7 +270,7 @@ class DowngradeComponentAdapter {
|
|
|
263
270
|
}
|
|
264
271
|
}
|
|
265
272
|
const detectChanges = () => changeDetector.detectChanges();
|
|
266
|
-
const prototype = this.
|
|
273
|
+
const prototype = this.component.prototype;
|
|
267
274
|
this.implementsOnChanges = !!(prototype && prototype.ngOnChanges);
|
|
268
275
|
this.componentScope.$watch(() => this.inputChangeCount, this.wrapCallback(() => {
|
|
269
276
|
if (this.implementsOnChanges) {
|
|
@@ -290,7 +297,7 @@ class DowngradeComponentAdapter {
|
|
|
290
297
|
}
|
|
291
298
|
setupOutputs(componentRef) {
|
|
292
299
|
const attrs = this.attrs;
|
|
293
|
-
const outputs = this.
|
|
300
|
+
const outputs = reflectComponentType(this.component)?.outputs ?? [];
|
|
294
301
|
for (const output of outputs) {
|
|
295
302
|
const outputBindings = new PropertyBinding(output.propName, output.templateName);
|
|
296
303
|
const bindonAttr = outputBindings.bindonAttr.substring(0, outputBindings.bindonAttr.length - 6);
|
|
@@ -322,7 +329,7 @@ class DowngradeComponentAdapter {
|
|
|
322
329
|
}));
|
|
323
330
|
componentRef.onDestroy(() => subscription.unsubscribe());
|
|
324
331
|
} else {
|
|
325
|
-
throw new Error(`Missing emitter '${output.prop}' on component '${getTypeName(this.
|
|
332
|
+
throw new Error(`Missing emitter '${output.prop}' on component '${getTypeName(this.component)}'!`);
|
|
326
333
|
}
|
|
327
334
|
}
|
|
328
335
|
registerCleanup(componentRef) {
|
|
@@ -354,7 +361,7 @@ class DowngradeComponentAdapter {
|
|
|
354
361
|
}
|
|
355
362
|
}
|
|
356
363
|
groupProjectableNodes() {
|
|
357
|
-
let ngContentSelectors = this.
|
|
364
|
+
let ngContentSelectors = reflectComponentType(this.component)?.ngContentSelectors ?? [];
|
|
358
365
|
return groupNodesBySelector(ngContentSelectors, this.element.contents());
|
|
359
366
|
}
|
|
360
367
|
}
|
|
@@ -464,13 +471,8 @@ function downgradeComponent(info) {
|
|
|
464
471
|
const finalParentInjector = parentInjector || moduleInjector;
|
|
465
472
|
const finalModuleInjector = moduleInjector || parentInjector;
|
|
466
473
|
const doDowngrade = (injector, moduleInjector) => {
|
|
467
|
-
const componentFactoryResolver = moduleInjector.get(ComponentFactoryResolver);
|
|
468
|
-
const componentFactory = componentFactoryResolver.resolveComponentFactory(info.component);
|
|
469
|
-
if (!componentFactory) {
|
|
470
|
-
throw new Error(`Expecting ComponentFactory for: ${getTypeName(info.component)}`);
|
|
471
|
-
}
|
|
472
474
|
const injectorPromise = new ParentInjectorPromise(element);
|
|
473
|
-
const facade = new DowngradeComponentAdapter(element, attrs, scope, ngModel, injector, $compile, $parse,
|
|
475
|
+
const facade = new DowngradeComponentAdapter(element, attrs, scope, ngModel, moduleInjector.get(EnvironmentInjector), injector, $compile, $parse, info.component, wrapCallback, unsafelyOverwriteSignalInputs);
|
|
474
476
|
const projectableNodes = facade.compileContents();
|
|
475
477
|
const componentRef = facade.createComponentAndSetup(projectableNodes, isNgUpgradeLite, info.propagateDigest);
|
|
476
478
|
injectorPromise.resolve(componentRef.injector);
|
|
@@ -1008,7 +1010,7 @@ class UpgradeComponent {
|
|
|
1008
1010
|
}
|
|
1009
1011
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1010
1012
|
minVersion: "12.0.0",
|
|
1011
|
-
version: "22.0.0-next.
|
|
1013
|
+
version: "22.0.0-next.10",
|
|
1012
1014
|
ngImport: i0,
|
|
1013
1015
|
type: UpgradeComponent,
|
|
1014
1016
|
deps: "invalid",
|
|
@@ -1016,7 +1018,7 @@ class UpgradeComponent {
|
|
|
1016
1018
|
});
|
|
1017
1019
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
1018
1020
|
minVersion: "14.0.0",
|
|
1019
|
-
version: "22.0.0-next.
|
|
1021
|
+
version: "22.0.0-next.10",
|
|
1020
1022
|
type: UpgradeComponent,
|
|
1021
1023
|
isStandalone: true,
|
|
1022
1024
|
usesOnChanges: true,
|
|
@@ -1025,7 +1027,7 @@ class UpgradeComponent {
|
|
|
1025
1027
|
}
|
|
1026
1028
|
i0.ɵɵngDeclareClassMetadata({
|
|
1027
1029
|
minVersion: "12.0.0",
|
|
1028
|
-
version: "22.0.0-next.
|
|
1030
|
+
version: "22.0.0-next.10",
|
|
1029
1031
|
ngImport: i0,
|
|
1030
1032
|
type: UpgradeComponent,
|
|
1031
1033
|
decorators: [{
|
|
@@ -1139,7 +1141,7 @@ class UpgradeModule {
|
|
|
1139
1141
|
}
|
|
1140
1142
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1141
1143
|
minVersion: "12.0.0",
|
|
1142
|
-
version: "22.0.0-next.
|
|
1144
|
+
version: "22.0.0-next.10",
|
|
1143
1145
|
ngImport: i0,
|
|
1144
1146
|
type: UpgradeModule,
|
|
1145
1147
|
deps: [{
|
|
@@ -1153,13 +1155,13 @@ class UpgradeModule {
|
|
|
1153
1155
|
});
|
|
1154
1156
|
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
1155
1157
|
minVersion: "14.0.0",
|
|
1156
|
-
version: "22.0.0-next.
|
|
1158
|
+
version: "22.0.0-next.10",
|
|
1157
1159
|
ngImport: i0,
|
|
1158
1160
|
type: UpgradeModule
|
|
1159
1161
|
});
|
|
1160
1162
|
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
1161
1163
|
minVersion: "12.0.0",
|
|
1162
|
-
version: "22.0.0-next.
|
|
1164
|
+
version: "22.0.0-next.10",
|
|
1163
1165
|
ngImport: i0,
|
|
1164
1166
|
type: UpgradeModule,
|
|
1165
1167
|
providers: [angular1Providers, _internalProvideZoneChangeDetection({})]
|
|
@@ -1167,7 +1169,7 @@ class UpgradeModule {
|
|
|
1167
1169
|
}
|
|
1168
1170
|
i0.ɵɵngDeclareClassMetadata({
|
|
1169
1171
|
minVersion: "12.0.0",
|
|
1170
|
-
version: "22.0.0-next.
|
|
1172
|
+
version: "22.0.0-next.10",
|
|
1171
1173
|
ngImport: i0,
|
|
1172
1174
|
type: UpgradeModule,
|
|
1173
1175
|
decorators: [{
|