@nativescript/angular 20.0.1-rc.0 → 20.1.0
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/nativescript-angular-polyfills.mjs +2 -2
- package/fesm2022/nativescript-angular-polyfills.mjs.map +1 -1
- package/fesm2022/nativescript-angular-testing.mjs +7 -7
- package/fesm2022/nativescript-angular.mjs +392 -226
- package/fesm2022/nativescript-angular.mjs.map +1 -1
- package/index.d.ts +51 -27
- package/package.json +1 -1
|
@@ -32,11 +32,11 @@ if (typeof queueMicrotask === 'undefined') {
|
|
|
32
32
|
global.queueMicrotask = (cb) => Promise.resolve().then(cb);
|
|
33
33
|
}
|
|
34
34
|
if (typeof global.AbortController === 'undefined') {
|
|
35
|
-
// @ts-
|
|
35
|
+
// @ts-expect-error handling global namespace
|
|
36
36
|
global.AbortController = AbortController;
|
|
37
37
|
}
|
|
38
38
|
if (typeof global.AbortSignal === 'undefined') {
|
|
39
|
-
// @ts-
|
|
39
|
+
// @ts-expect-error handling global namespace
|
|
40
40
|
global.AbortSignal = AbortSignal;
|
|
41
41
|
}
|
|
42
42
|
if (typeof queueMicrotask === 'undefined') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nativescript-angular-polyfills.mjs","sources":["../../../../packages/angular/polyfills/src/index.ts","../../../../packages/angular/polyfills/src/nativescript-angular-polyfills.ts"],"sourcesContent":["import { AbortController, AbortSignal } from '@nativescript/core/abortcontroller';\nexport const nsNgPolyfills = true;\n\nglobal.performance ??= {} as unknown as Performance;\n\nfunction getPerformanceObject() {\n const loadTime = Date.now();\n const performance: Partial<Performance> = {\n timeOrigin: loadTime,\n now() {\n return Date.now() - loadTime;\n },\n mark(name: string, options: PerformanceMarkOptions) {\n return {\n detail: options?.detail,\n duration: 0,\n entryType: 'mark',\n name,\n startTime: options?.startTime ?? Date.now() - loadTime,\n toJSON: () => {\n ('');\n },\n };\n },\n };\n return performance;\n}\n\nconst polyfilledPerformance = getPerformanceObject();\n\nfor (const key in polyfilledPerformance) {\n global.performance[key] ??= polyfilledPerformance[key];\n}\n\nif (typeof queueMicrotask === 'undefined') {\n global.queueMicrotask = (cb) => Promise.resolve().then(cb);\n}\n\nif (typeof global.AbortController === 'undefined') {\n // @ts-
|
|
1
|
+
{"version":3,"file":"nativescript-angular-polyfills.mjs","sources":["../../../../packages/angular/polyfills/src/index.ts","../../../../packages/angular/polyfills/src/nativescript-angular-polyfills.ts"],"sourcesContent":["import { AbortController, AbortSignal } from '@nativescript/core/abortcontroller';\nexport const nsNgPolyfills = true;\n\nglobal.performance ??= {} as unknown as Performance;\n\nfunction getPerformanceObject() {\n const loadTime = Date.now();\n const performance: Partial<Performance> = {\n timeOrigin: loadTime,\n now() {\n return Date.now() - loadTime;\n },\n mark(name: string, options: PerformanceMarkOptions) {\n return {\n detail: options?.detail,\n duration: 0,\n entryType: 'mark',\n name,\n startTime: options?.startTime ?? Date.now() - loadTime,\n toJSON: () => {\n ('');\n },\n };\n },\n };\n return performance;\n}\n\nconst polyfilledPerformance = getPerformanceObject();\n\nfor (const key in polyfilledPerformance) {\n global.performance[key] ??= polyfilledPerformance[key];\n}\n\nif (typeof queueMicrotask === 'undefined') {\n global.queueMicrotask = (cb) => Promise.resolve().then(cb);\n}\n\nif (typeof global.AbortController === 'undefined') {\n // @ts-expect-error handling global namespace\n global.AbortController = AbortController;\n}\n\nif (typeof global.AbortSignal === 'undefined') {\n // @ts-expect-error handling global namespace\n global.AbortSignal = AbortSignal;\n}\n\nif (typeof queueMicrotask === 'undefined') {\n global.queueMicrotask = (cb) => Promise.resolve().then(cb);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AACO,MAAM,aAAa,GAAG;AAE7B,MAAM,CAAC,WAAW,KAAK,EAA4B;AAEnD,SAAS,oBAAoB,GAAA;AAC3B,IAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,EAAE;AAC3B,I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er extends TestComponentRenderer {
|
|
|
43
43
|
}
|
|
44
44
|
rootLayout.addChild(layout);
|
|
45
45
|
}
|
|
46
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.
|
|
47
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.
|
|
46
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: NativeScriptTestComponentRenderer, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
47
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: NativeScriptTestComponentRenderer }); }
|
|
48
48
|
}
|
|
49
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.
|
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: NativeScriptTestComponentRenderer, decorators: [{
|
|
50
50
|
type: Injectable
|
|
51
51
|
}] });
|
|
52
52
|
|
|
@@ -67,11 +67,11 @@ const NATIVESCRIPT_TESTING_PROVIDERS = [...COMMON_PROVIDERS, { provide: APP_ROOT
|
|
|
67
67
|
* pipes, and services.
|
|
68
68
|
*/
|
|
69
69
|
class NativeScriptTestingModule {
|
|
70
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.
|
|
71
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.
|
|
72
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.
|
|
70
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: NativeScriptTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
71
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.7", ngImport: i0, type: NativeScriptTestingModule, exports: [NativeScriptModule] }); }
|
|
72
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: NativeScriptTestingModule, providers: NATIVESCRIPT_TESTING_PROVIDERS, imports: [NativeScriptModule] }); }
|
|
73
73
|
}
|
|
74
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.
|
|
74
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: NativeScriptTestingModule, decorators: [{
|
|
75
75
|
type: NgModule,
|
|
76
76
|
args: [{
|
|
77
77
|
exports: [NativeScriptModule],
|