@angular/common 13.2.3 → 14.0.0-next.3
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/common.d.ts +21 -10
- package/esm2020/http/src/client.mjs +3 -3
- package/esm2020/http/src/interceptor.mjs +3 -3
- package/esm2020/http/src/jsonp.mjs +6 -6
- package/esm2020/http/src/module.mjs +15 -15
- package/esm2020/http/src/xhr.mjs +3 -3
- package/esm2020/http/src/xsrf.mjs +6 -6
- package/esm2020/http/testing/src/backend.mjs +3 -3
- package/esm2020/http/testing/src/module.mjs +4 -4
- package/esm2020/src/common_module.mjs +4 -4
- package/esm2020/src/directives/ng_class.mjs +3 -3
- package/esm2020/src/directives/ng_component_outlet.mjs +36 -22
- package/esm2020/src/directives/ng_for_of.mjs +3 -3
- package/esm2020/src/directives/ng_if.mjs +3 -3
- package/esm2020/src/directives/ng_plural.mjs +6 -6
- package/esm2020/src/directives/ng_style.mjs +3 -3
- package/esm2020/src/directives/ng_switch.mjs +9 -9
- package/esm2020/src/directives/ng_template_outlet.mjs +3 -3
- package/esm2020/src/i18n/format_date.mjs +5 -5
- package/esm2020/src/i18n/localization.mjs +3 -3
- package/esm2020/src/location/hash_location_strategy.mjs +3 -3
- package/esm2020/src/location/location.mjs +20 -4
- package/esm2020/src/location/location_strategy.mjs +6 -6
- package/esm2020/src/location/platform_location.mjs +6 -6
- package/esm2020/src/pipes/async_pipe.mjs +3 -3
- package/esm2020/src/pipes/case_conversion_pipes.mjs +9 -9
- package/esm2020/src/pipes/date_pipe.mjs +3 -3
- package/esm2020/src/pipes/i18n_plural_pipe.mjs +3 -3
- package/esm2020/src/pipes/i18n_select_pipe.mjs +3 -3
- package/esm2020/src/pipes/json_pipe.mjs +3 -3
- package/esm2020/src/pipes/keyvalue_pipe.mjs +3 -3
- package/esm2020/src/pipes/number_pipe.mjs +9 -9
- package/esm2020/src/pipes/slice_pipe.mjs +3 -3
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/location_mock.mjs +18 -4
- package/esm2020/testing/src/mock_location_strategy.mjs +3 -3
- package/esm2020/testing/src/mock_platform_location.mjs +3 -3
- package/esm2020/upgrade/src/location_upgrade_module.mjs +4 -4
- package/fesm2015/common.mjs +153 -121
- package/fesm2015/common.mjs.map +1 -1
- package/fesm2015/http/testing.mjs +8 -8
- package/fesm2015/http.mjs +37 -37
- package/fesm2015/testing.mjs +26 -10
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2015/upgrade.mjs +5 -5
- package/fesm2020/common.mjs +151 -121
- package/fesm2020/common.mjs.map +1 -1
- package/fesm2020/http/testing.mjs +8 -8
- package/fesm2020/http.mjs +37 -37
- package/fesm2020/testing.mjs +24 -10
- package/fesm2020/testing.mjs.map +1 -1
- package/fesm2020/upgrade.mjs +5 -5
- package/http/http.d.ts +1 -1
- package/http/testing/testing.d.ts +1 -1
- package/package.json +2 -2
- package/testing/testing.d.ts +3 -2
- package/upgrade/upgrade.d.ts +1 -1
package/fesm2015/common.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular
|
|
2
|
+
* @license Angular v14.0.0-next.3
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
|
-
import { InjectionToken, Injectable, ɵɵinject, Inject, Optional, EventEmitter, ɵfindLocaleData, ɵLocaleDataIndex, ɵgetLocaleCurrencyCode, ɵgetLocalePluralCase, LOCALE_ID, ɵregisterLocaleData, ɵisListLikeIterable, ɵstringify, Directive, Input,
|
|
8
|
+
import { InjectionToken, Injectable, ɵɵinject, Inject, Optional, EventEmitter, ɵfindLocaleData, ɵLocaleDataIndex, ɵgetLocaleCurrencyCode, ɵgetLocalePluralCase, LOCALE_ID, ɵregisterLocaleData, ɵisListLikeIterable, ɵstringify, Directive, Input, createNgModuleRef, NgModuleRef, Host, ɵRuntimeError, Attribute, ɵisPromise, ɵisSubscribable, Pipe, DEFAULT_CURRENCY_CODE, NgModule, Version, ɵɵdefineInjectable } from '@angular/core';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @license
|
|
@@ -87,9 +87,9 @@ class PlatformLocation {
|
|
|
87
87
|
throw new Error('Not implemented');
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
PlatformLocation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
91
|
-
PlatformLocation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
92
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
90
|
+
PlatformLocation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: PlatformLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
91
|
+
PlatformLocation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: PlatformLocation, providedIn: 'platform', useFactory: useBrowserPlatformLocation });
|
|
92
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: PlatformLocation, decorators: [{
|
|
93
93
|
type: Injectable,
|
|
94
94
|
args: [{
|
|
95
95
|
providedIn: 'platform',
|
|
@@ -190,9 +190,9 @@ class BrowserPlatformLocation extends PlatformLocation {
|
|
|
190
190
|
return this._history.state;
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
BrowserPlatformLocation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
194
|
-
BrowserPlatformLocation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
195
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
193
|
+
BrowserPlatformLocation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: BrowserPlatformLocation, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
194
|
+
BrowserPlatformLocation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: BrowserPlatformLocation, providedIn: 'platform', useFactory: createBrowserPlatformLocation });
|
|
195
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: BrowserPlatformLocation, decorators: [{
|
|
196
196
|
type: Injectable,
|
|
197
197
|
args: [{
|
|
198
198
|
providedIn: 'platform',
|
|
@@ -313,9 +313,9 @@ class LocationStrategy {
|
|
|
313
313
|
throw new Error('Not implemented');
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
|
-
LocationStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
317
|
-
LocationStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
318
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
316
|
+
LocationStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: LocationStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
317
|
+
LocationStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: LocationStrategy, providedIn: 'root', useFactory: provideLocationStrategy });
|
|
318
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: LocationStrategy, decorators: [{
|
|
319
319
|
type: Injectable,
|
|
320
320
|
args: [{ providedIn: 'root', useFactory: provideLocationStrategy }]
|
|
321
321
|
}] });
|
|
@@ -431,9 +431,9 @@ class PathLocationStrategy extends LocationStrategy {
|
|
|
431
431
|
(_b = (_a = this._platformLocation).historyGo) === null || _b === void 0 ? void 0 : _b.call(_a, relativePosition);
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
|
-
PathLocationStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
435
|
-
PathLocationStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
436
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
434
|
+
PathLocationStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: PathLocationStrategy, deps: [{ token: PlatformLocation }, { token: APP_BASE_HREF, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
435
|
+
PathLocationStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: PathLocationStrategy });
|
|
436
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: PathLocationStrategy, decorators: [{
|
|
437
437
|
type: Injectable
|
|
438
438
|
}], ctorParameters: function () {
|
|
439
439
|
return [{ type: PlatformLocation }, { type: undefined, decorators: [{
|
|
@@ -528,9 +528,9 @@ class HashLocationStrategy extends LocationStrategy {
|
|
|
528
528
|
(_b = (_a = this._platformLocation).historyGo) === null || _b === void 0 ? void 0 : _b.call(_a, relativePosition);
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
|
-
HashLocationStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
532
|
-
HashLocationStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
533
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
531
|
+
HashLocationStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: HashLocationStrategy, deps: [{ token: PlatformLocation }, { token: APP_BASE_HREF, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
532
|
+
HashLocationStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: HashLocationStrategy });
|
|
533
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: HashLocationStrategy, decorators: [{
|
|
534
534
|
type: Injectable
|
|
535
535
|
}], ctorParameters: function () {
|
|
536
536
|
return [{ type: PlatformLocation }, { type: undefined, decorators: [{
|
|
@@ -582,6 +582,8 @@ class Location {
|
|
|
582
582
|
this._subject = new EventEmitter();
|
|
583
583
|
/** @internal */
|
|
584
584
|
this._urlChangeListeners = [];
|
|
585
|
+
/** @internal */
|
|
586
|
+
this._urlChangeSubscription = null;
|
|
585
587
|
this._platformStrategy = platformStrategy;
|
|
586
588
|
const browserBaseHref = this._platformStrategy.getBaseHref();
|
|
587
589
|
this._platformLocation = platformLocation;
|
|
@@ -595,6 +597,12 @@ class Location {
|
|
|
595
597
|
});
|
|
596
598
|
});
|
|
597
599
|
}
|
|
600
|
+
/** @nodoc */
|
|
601
|
+
ngOnDestroy() {
|
|
602
|
+
var _a;
|
|
603
|
+
(_a = this._urlChangeSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
604
|
+
this._urlChangeListeners = [];
|
|
605
|
+
}
|
|
598
606
|
/**
|
|
599
607
|
* Normalizes the URL path for this location.
|
|
600
608
|
*
|
|
@@ -711,6 +719,7 @@ class Location {
|
|
|
711
719
|
* framework that are not detectible through "popstate" or "hashchange" events.
|
|
712
720
|
*
|
|
713
721
|
* @param fn The change handler function, which take a URL and a location history state.
|
|
722
|
+
* @returns A function that, when executed, unregisters a URL change listener.
|
|
714
723
|
*/
|
|
715
724
|
onUrlChange(fn) {
|
|
716
725
|
this._urlChangeListeners.push(fn);
|
|
@@ -719,6 +728,15 @@ class Location {
|
|
|
719
728
|
this._notifyUrlChangeListeners(v.url, v.state);
|
|
720
729
|
});
|
|
721
730
|
}
|
|
731
|
+
return () => {
|
|
732
|
+
var _a;
|
|
733
|
+
const fnIndex = this._urlChangeListeners.indexOf(fn);
|
|
734
|
+
this._urlChangeListeners.splice(fnIndex, 1);
|
|
735
|
+
if (this._urlChangeListeners.length === 0) {
|
|
736
|
+
(_a = this._urlChangeSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
737
|
+
this._urlChangeSubscription = null;
|
|
738
|
+
}
|
|
739
|
+
};
|
|
722
740
|
}
|
|
723
741
|
/** @internal */
|
|
724
742
|
_notifyUrlChangeListeners(url = '', state) {
|
|
@@ -769,9 +787,9 @@ Location.joinWithSlash = joinWithSlash;
|
|
|
769
787
|
* @returns The URL string, modified if needed.
|
|
770
788
|
*/
|
|
771
789
|
Location.stripTrailingSlash = stripTrailingSlash;
|
|
772
|
-
Location.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
773
|
-
Location.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
774
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
790
|
+
Location.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: Location, deps: [{ token: LocationStrategy }, { token: PlatformLocation }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
791
|
+
Location.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: Location, providedIn: 'root', useFactory: createLocation });
|
|
792
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: Location, decorators: [{
|
|
775
793
|
type: Injectable,
|
|
776
794
|
args: [{
|
|
777
795
|
providedIn: 'root',
|
|
@@ -1443,7 +1461,7 @@ function getNumberOfCurrencyDigits(code) {
|
|
|
1443
1461
|
* Use of this source code is governed by an MIT-style license that can be
|
|
1444
1462
|
* found in the LICENSE file at https://angular.io/license
|
|
1445
1463
|
*/
|
|
1446
|
-
const ISO8601_DATE_REGEX = /^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;
|
|
1464
|
+
const ISO8601_DATE_REGEX = /^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;
|
|
1447
1465
|
// 1 2 3 4 5 6 7 8 9 10 11
|
|
1448
1466
|
const NAMED_FORMATS = {};
|
|
1449
1467
|
const DATE_FORMATS_SPLIT = /((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;
|
|
@@ -1522,9 +1540,9 @@ function formatDate(value, format, locale, timezone) {
|
|
|
1522
1540
|
let text = '';
|
|
1523
1541
|
parts.forEach(value => {
|
|
1524
1542
|
const dateFormatter = getDateFormatter(value);
|
|
1525
|
-
text += dateFormatter ?
|
|
1526
|
-
|
|
1527
|
-
|
|
1543
|
+
text += dateFormatter ? dateFormatter(date, locale, dateTimezoneOffset) :
|
|
1544
|
+
value === '\'\'' ? '\'' :
|
|
1545
|
+
value.replace(/(^'|'$)/g, '').replace(/''/g, '\'');
|
|
1528
1546
|
});
|
|
1529
1547
|
return text;
|
|
1530
1548
|
}
|
|
@@ -2634,9 +2652,9 @@ class NgLocaleLocalization extends NgLocalization {
|
|
|
2634
2652
|
}
|
|
2635
2653
|
}
|
|
2636
2654
|
}
|
|
2637
|
-
NgLocaleLocalization.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2638
|
-
NgLocaleLocalization.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2639
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2655
|
+
NgLocaleLocalization.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgLocaleLocalization, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2656
|
+
NgLocaleLocalization.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgLocaleLocalization });
|
|
2657
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgLocaleLocalization, decorators: [{
|
|
2640
2658
|
type: Injectable
|
|
2641
2659
|
}], ctorParameters: function () {
|
|
2642
2660
|
return [{ type: undefined, decorators: [{
|
|
@@ -2831,9 +2849,9 @@ class NgClass {
|
|
|
2831
2849
|
}
|
|
2832
2850
|
}
|
|
2833
2851
|
}
|
|
2834
|
-
NgClass.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2835
|
-
NgClass.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
2836
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2852
|
+
NgClass.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgClass, deps: [{ token: i0.IterableDiffers }, { token: i0.KeyValueDiffers }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2853
|
+
NgClass.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.3", type: NgClass, selector: "[ngClass]", inputs: { klass: ["class", "klass"], ngClass: "ngClass" }, ngImport: i0 });
|
|
2854
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgClass, decorators: [{
|
|
2837
2855
|
type: Directive,
|
|
2838
2856
|
args: [{ selector: '[ngClass]' }]
|
|
2839
2857
|
}], ctorParameters: function () { return [{ type: i0.IterableDiffers }, { type: i0.KeyValueDiffers }, { type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { klass: [{
|
|
@@ -2870,9 +2888,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
2870
2888
|
* * `ngComponentOutletContent`: Optional list of projectable nodes to insert into the content
|
|
2871
2889
|
* section of the component, if it exists.
|
|
2872
2890
|
*
|
|
2873
|
-
* * `
|
|
2891
|
+
* * `ngComponentOutletNgModule`: Optional NgModule class reference to allow loading another
|
|
2874
2892
|
* module dynamically, then loading a component from that module.
|
|
2875
2893
|
*
|
|
2894
|
+
* * `ngComponentOutletNgModuleFactory`: Deprecated config option that allows providing optional
|
|
2895
|
+
* NgModule factory to allow loading another module dynamically, then loading a component from that
|
|
2896
|
+
* module. Use `ngComponentOutletNgModule` instead.
|
|
2897
|
+
*
|
|
2876
2898
|
* ### Syntax
|
|
2877
2899
|
*
|
|
2878
2900
|
* Simple
|
|
@@ -2888,10 +2910,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
2888
2910
|
* </ng-container>
|
|
2889
2911
|
* ```
|
|
2890
2912
|
*
|
|
2891
|
-
* Customized
|
|
2913
|
+
* Customized NgModule reference
|
|
2892
2914
|
* ```
|
|
2893
2915
|
* <ng-container *ngComponentOutlet="componentTypeExpression;
|
|
2894
|
-
*
|
|
2916
|
+
* ngModule: ngModuleClass;">
|
|
2895
2917
|
* </ng-container>
|
|
2896
2918
|
* ```
|
|
2897
2919
|
*
|
|
@@ -2909,30 +2931,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
2909
2931
|
class NgComponentOutlet {
|
|
2910
2932
|
constructor(_viewContainerRef) {
|
|
2911
2933
|
this._viewContainerRef = _viewContainerRef;
|
|
2912
|
-
this._componentRef = null;
|
|
2913
|
-
this._moduleRef = null;
|
|
2914
2934
|
}
|
|
2915
2935
|
/** @nodoc */
|
|
2916
2936
|
ngOnChanges(changes) {
|
|
2917
|
-
this
|
|
2918
|
-
|
|
2937
|
+
const { _viewContainerRef: viewContainerRef, ngComponentOutletNgModule: ngModule, ngComponentOutletNgModuleFactory: ngModuleFactory, } = this;
|
|
2938
|
+
viewContainerRef.clear();
|
|
2939
|
+
this._componentRef = undefined;
|
|
2919
2940
|
if (this.ngComponentOutlet) {
|
|
2920
|
-
const
|
|
2921
|
-
if (changes['ngComponentOutletNgModuleFactory']) {
|
|
2941
|
+
const injector = this.ngComponentOutletInjector || viewContainerRef.parentInjector;
|
|
2942
|
+
if (changes['ngComponentOutletNgModule'] || changes['ngComponentOutletNgModuleFactory']) {
|
|
2922
2943
|
if (this._moduleRef)
|
|
2923
2944
|
this._moduleRef.destroy();
|
|
2924
|
-
if (
|
|
2925
|
-
|
|
2926
|
-
|
|
2945
|
+
if (ngModule) {
|
|
2946
|
+
this._moduleRef = createNgModuleRef(ngModule, getParentInjector(injector));
|
|
2947
|
+
}
|
|
2948
|
+
else if (ngModuleFactory) {
|
|
2949
|
+
this._moduleRef = ngModuleFactory.create(getParentInjector(injector));
|
|
2927
2950
|
}
|
|
2928
2951
|
else {
|
|
2929
|
-
this._moduleRef =
|
|
2952
|
+
this._moduleRef = undefined;
|
|
2930
2953
|
}
|
|
2931
2954
|
}
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2955
|
+
this._componentRef = viewContainerRef.createComponent(this.ngComponentOutlet, {
|
|
2956
|
+
index: viewContainerRef.length,
|
|
2957
|
+
injector,
|
|
2958
|
+
ngModuleRef: this._moduleRef,
|
|
2959
|
+
projectableNodes: this.ngComponentOutletContent,
|
|
2960
|
+
});
|
|
2936
2961
|
}
|
|
2937
2962
|
}
|
|
2938
2963
|
/** @nodoc */
|
|
@@ -2941,9 +2966,9 @@ class NgComponentOutlet {
|
|
|
2941
2966
|
this._moduleRef.destroy();
|
|
2942
2967
|
}
|
|
2943
2968
|
}
|
|
2944
|
-
NgComponentOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2945
|
-
NgComponentOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
2946
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2969
|
+
NgComponentOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgComponentOutlet, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2970
|
+
NgComponentOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.3", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: { ngComponentOutlet: "ngComponentOutlet", ngComponentOutletInjector: "ngComponentOutletInjector", ngComponentOutletContent: "ngComponentOutletContent", ngComponentOutletNgModule: "ngComponentOutletNgModule", ngComponentOutletNgModuleFactory: "ngComponentOutletNgModuleFactory" }, usesOnChanges: true, ngImport: i0 });
|
|
2971
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgComponentOutlet, decorators: [{
|
|
2947
2972
|
type: Directive,
|
|
2948
2973
|
args: [{ selector: '[ngComponentOutlet]' }]
|
|
2949
2974
|
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; }, propDecorators: { ngComponentOutlet: [{
|
|
@@ -2952,9 +2977,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
2952
2977
|
type: Input
|
|
2953
2978
|
}], ngComponentOutletContent: [{
|
|
2954
2979
|
type: Input
|
|
2980
|
+
}], ngComponentOutletNgModule: [{
|
|
2981
|
+
type: Input
|
|
2955
2982
|
}], ngComponentOutletNgModuleFactory: [{
|
|
2956
2983
|
type: Input
|
|
2957
2984
|
}] } });
|
|
2985
|
+
// Helper function that returns an Injector instance of a parent NgModule.
|
|
2986
|
+
function getParentInjector(injector) {
|
|
2987
|
+
const parentNgModule = injector.get(NgModuleRef);
|
|
2988
|
+
return parentNgModule.injector;
|
|
2989
|
+
}
|
|
2958
2990
|
|
|
2959
2991
|
/**
|
|
2960
2992
|
* @license
|
|
@@ -3217,9 +3249,9 @@ class NgForOf {
|
|
|
3217
3249
|
return true;
|
|
3218
3250
|
}
|
|
3219
3251
|
}
|
|
3220
|
-
NgForOf.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3221
|
-
NgForOf.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3222
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3252
|
+
NgForOf.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgForOf, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3253
|
+
NgForOf.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.3", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: { ngForOf: "ngForOf", ngForTrackBy: "ngForTrackBy", ngForTemplate: "ngForTemplate" }, ngImport: i0 });
|
|
3254
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgForOf, decorators: [{
|
|
3223
3255
|
type: Directive,
|
|
3224
3256
|
args: [{ selector: '[ngFor][ngForOf]' }]
|
|
3225
3257
|
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }, { type: i0.IterableDiffers }]; }, propDecorators: { ngForOf: [{
|
|
@@ -3449,9 +3481,9 @@ class NgIf {
|
|
|
3449
3481
|
return true;
|
|
3450
3482
|
}
|
|
3451
3483
|
}
|
|
3452
|
-
NgIf.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3453
|
-
NgIf.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3454
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3484
|
+
NgIf.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgIf, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3485
|
+
NgIf.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.3", type: NgIf, selector: "[ngIf]", inputs: { ngIf: "ngIf", ngIfThen: "ngIfThen", ngIfElse: "ngIfElse" }, ngImport: i0 });
|
|
3486
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgIf, decorators: [{
|
|
3455
3487
|
type: Directive,
|
|
3456
3488
|
args: [{ selector: '[ngIf]' }]
|
|
3457
3489
|
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }]; }, propDecorators: { ngIf: [{
|
|
@@ -3619,9 +3651,9 @@ class NgSwitch {
|
|
|
3619
3651
|
}
|
|
3620
3652
|
}
|
|
3621
3653
|
}
|
|
3622
|
-
NgSwitch.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3623
|
-
NgSwitch.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3624
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3654
|
+
NgSwitch.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgSwitch, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3655
|
+
NgSwitch.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.3", type: NgSwitch, selector: "[ngSwitch]", inputs: { ngSwitch: "ngSwitch" }, ngImport: i0 });
|
|
3656
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgSwitch, decorators: [{
|
|
3625
3657
|
type: Directive,
|
|
3626
3658
|
args: [{ selector: '[ngSwitch]' }]
|
|
3627
3659
|
}], propDecorators: { ngSwitch: [{
|
|
@@ -3677,9 +3709,9 @@ class NgSwitchCase {
|
|
|
3677
3709
|
this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase));
|
|
3678
3710
|
}
|
|
3679
3711
|
}
|
|
3680
|
-
NgSwitchCase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3681
|
-
NgSwitchCase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3682
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3712
|
+
NgSwitchCase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgSwitchCase, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: NgSwitch, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3713
|
+
NgSwitchCase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.3", type: NgSwitchCase, selector: "[ngSwitchCase]", inputs: { ngSwitchCase: "ngSwitchCase" }, ngImport: i0 });
|
|
3714
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgSwitchCase, decorators: [{
|
|
3683
3715
|
type: Directive,
|
|
3684
3716
|
args: [{ selector: '[ngSwitchCase]' }]
|
|
3685
3717
|
}], ctorParameters: function () {
|
|
@@ -3713,9 +3745,9 @@ class NgSwitchDefault {
|
|
|
3713
3745
|
ngSwitch._addDefault(new SwitchView(viewContainer, templateRef));
|
|
3714
3746
|
}
|
|
3715
3747
|
}
|
|
3716
|
-
NgSwitchDefault.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3717
|
-
NgSwitchDefault.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3718
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3748
|
+
NgSwitchDefault.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgSwitchDefault, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: NgSwitch, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3749
|
+
NgSwitchDefault.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.3", type: NgSwitchDefault, selector: "[ngSwitchDefault]", ngImport: i0 });
|
|
3750
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgSwitchDefault, decorators: [{
|
|
3719
3751
|
type: Directive,
|
|
3720
3752
|
args: [{ selector: '[ngSwitchDefault]' }]
|
|
3721
3753
|
}], ctorParameters: function () {
|
|
@@ -3798,9 +3830,9 @@ class NgPlural {
|
|
|
3798
3830
|
}
|
|
3799
3831
|
}
|
|
3800
3832
|
}
|
|
3801
|
-
NgPlural.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3802
|
-
NgPlural.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3803
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3833
|
+
NgPlural.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgPlural, deps: [{ token: NgLocalization }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3834
|
+
NgPlural.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.3", type: NgPlural, selector: "[ngPlural]", inputs: { ngPlural: "ngPlural" }, ngImport: i0 });
|
|
3835
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgPlural, decorators: [{
|
|
3804
3836
|
type: Directive,
|
|
3805
3837
|
args: [{ selector: '[ngPlural]' }]
|
|
3806
3838
|
}], ctorParameters: function () { return [{ type: NgLocalization }]; }, propDecorators: { ngPlural: [{
|
|
@@ -3833,9 +3865,9 @@ class NgPluralCase {
|
|
|
3833
3865
|
ngPlural.addCase(isANumber ? `=${value}` : value, new SwitchView(viewContainer, template));
|
|
3834
3866
|
}
|
|
3835
3867
|
}
|
|
3836
|
-
NgPluralCase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3837
|
-
NgPluralCase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3838
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3868
|
+
NgPluralCase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgPluralCase, deps: [{ token: 'ngPluralCase', attribute: true }, { token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: NgPlural, host: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3869
|
+
NgPluralCase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.3", type: NgPluralCase, selector: "[ngPluralCase]", ngImport: i0 });
|
|
3870
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgPluralCase, decorators: [{
|
|
3839
3871
|
type: Directive,
|
|
3840
3872
|
args: [{ selector: '[ngPluralCase]' }]
|
|
3841
3873
|
}], ctorParameters: function () {
|
|
@@ -3928,9 +3960,9 @@ class NgStyle {
|
|
|
3928
3960
|
changes.forEachChangedItem((record) => this._setStyle(record.key, record.currentValue));
|
|
3929
3961
|
}
|
|
3930
3962
|
}
|
|
3931
|
-
NgStyle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3932
|
-
NgStyle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3933
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3963
|
+
NgStyle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgStyle, deps: [{ token: i0.ElementRef }, { token: i0.KeyValueDiffers }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3964
|
+
NgStyle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.3", type: NgStyle, selector: "[ngStyle]", inputs: { ngStyle: "ngStyle" }, ngImport: i0 });
|
|
3965
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgStyle, decorators: [{
|
|
3934
3966
|
type: Directive,
|
|
3935
3967
|
args: [{ selector: '[ngStyle]' }]
|
|
3936
3968
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.KeyValueDiffers }, { type: i0.Renderer2 }]; }, propDecorators: { ngStyle: [{
|
|
@@ -4001,9 +4033,9 @@ class NgTemplateOutlet {
|
|
|
4001
4033
|
}
|
|
4002
4034
|
}
|
|
4003
4035
|
}
|
|
4004
|
-
NgTemplateOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4005
|
-
NgTemplateOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
4006
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4036
|
+
NgTemplateOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgTemplateOutlet, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4037
|
+
NgTemplateOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.3", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: { ngTemplateOutletContext: "ngTemplateOutletContext", ngTemplateOutlet: "ngTemplateOutlet" }, usesOnChanges: true, ngImport: i0 });
|
|
4038
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgTemplateOutlet, decorators: [{
|
|
4007
4039
|
type: Directive,
|
|
4008
4040
|
args: [{ selector: '[ngTemplateOutlet]' }]
|
|
4009
4041
|
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; }, propDecorators: { ngTemplateOutletContext: [{
|
|
@@ -4166,9 +4198,9 @@ class AsyncPipe {
|
|
|
4166
4198
|
}
|
|
4167
4199
|
}
|
|
4168
4200
|
}
|
|
4169
|
-
AsyncPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4170
|
-
AsyncPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
4171
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4201
|
+
AsyncPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: AsyncPipe, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4202
|
+
AsyncPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: AsyncPipe, name: "async", pure: false });
|
|
4203
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: AsyncPipe, decorators: [{
|
|
4172
4204
|
type: Pipe,
|
|
4173
4205
|
args: [{ name: 'async', pure: false }]
|
|
4174
4206
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; } });
|
|
@@ -4205,9 +4237,9 @@ class LowerCasePipe {
|
|
|
4205
4237
|
return value.toLowerCase();
|
|
4206
4238
|
}
|
|
4207
4239
|
}
|
|
4208
|
-
LowerCasePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4209
|
-
LowerCasePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
4210
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4240
|
+
LowerCasePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: LowerCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4241
|
+
LowerCasePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: LowerCasePipe, name: "lowercase" });
|
|
4242
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: LowerCasePipe, decorators: [{
|
|
4211
4243
|
type: Pipe,
|
|
4212
4244
|
args: [{ name: 'lowercase' }]
|
|
4213
4245
|
}] });
|
|
@@ -4247,9 +4279,9 @@ class TitleCasePipe {
|
|
|
4247
4279
|
return value.replace(unicodeWordMatch, (txt => txt[0].toUpperCase() + txt.substr(1).toLowerCase()));
|
|
4248
4280
|
}
|
|
4249
4281
|
}
|
|
4250
|
-
TitleCasePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4251
|
-
TitleCasePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
4252
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4282
|
+
TitleCasePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: TitleCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4283
|
+
TitleCasePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: TitleCasePipe, name: "titlecase" });
|
|
4284
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: TitleCasePipe, decorators: [{
|
|
4253
4285
|
type: Pipe,
|
|
4254
4286
|
args: [{ name: 'titlecase' }]
|
|
4255
4287
|
}] });
|
|
@@ -4271,9 +4303,9 @@ class UpperCasePipe {
|
|
|
4271
4303
|
return value.toUpperCase();
|
|
4272
4304
|
}
|
|
4273
4305
|
}
|
|
4274
|
-
UpperCasePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4275
|
-
UpperCasePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
4276
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4306
|
+
UpperCasePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: UpperCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4307
|
+
UpperCasePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: UpperCasePipe, name: "uppercase" });
|
|
4308
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: UpperCasePipe, decorators: [{
|
|
4277
4309
|
type: Pipe,
|
|
4278
4310
|
args: [{ name: 'uppercase' }]
|
|
4279
4311
|
}] });
|
|
@@ -4466,9 +4498,9 @@ class DatePipe {
|
|
|
4466
4498
|
}
|
|
4467
4499
|
}
|
|
4468
4500
|
}
|
|
4469
|
-
DatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4470
|
-
DatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
4471
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4501
|
+
DatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: DatePipe, deps: [{ token: LOCALE_ID }, { token: DATE_PIPE_DEFAULT_TIMEZONE, optional: true }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4502
|
+
DatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: DatePipe, name: "date" });
|
|
4503
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: DatePipe, decorators: [{
|
|
4472
4504
|
type: Pipe,
|
|
4473
4505
|
args: [{ name: 'date', pure: true }]
|
|
4474
4506
|
}], ctorParameters: function () {
|
|
@@ -4526,9 +4558,9 @@ class I18nPluralPipe {
|
|
|
4526
4558
|
return pluralMap[key].replace(_INTERPOLATION_REGEXP, value.toString());
|
|
4527
4559
|
}
|
|
4528
4560
|
}
|
|
4529
|
-
I18nPluralPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4530
|
-
I18nPluralPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
4531
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4561
|
+
I18nPluralPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: I18nPluralPipe, deps: [{ token: NgLocalization }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4562
|
+
I18nPluralPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: I18nPluralPipe, name: "i18nPlural" });
|
|
4563
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: I18nPluralPipe, decorators: [{
|
|
4532
4564
|
type: Pipe,
|
|
4533
4565
|
args: [{ name: 'i18nPlural', pure: true }]
|
|
4534
4566
|
}], ctorParameters: function () { return [{ type: NgLocalization }]; } });
|
|
@@ -4578,9 +4610,9 @@ class I18nSelectPipe {
|
|
|
4578
4610
|
return '';
|
|
4579
4611
|
}
|
|
4580
4612
|
}
|
|
4581
|
-
I18nSelectPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4582
|
-
I18nSelectPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
4583
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4613
|
+
I18nSelectPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: I18nSelectPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4614
|
+
I18nSelectPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: I18nSelectPipe, name: "i18nSelect" });
|
|
4615
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: I18nSelectPipe, decorators: [{
|
|
4584
4616
|
type: Pipe,
|
|
4585
4617
|
args: [{ name: 'i18nSelect', pure: true }]
|
|
4586
4618
|
}] });
|
|
@@ -4615,9 +4647,9 @@ class JsonPipe {
|
|
|
4615
4647
|
return JSON.stringify(value, null, 2);
|
|
4616
4648
|
}
|
|
4617
4649
|
}
|
|
4618
|
-
JsonPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4619
|
-
JsonPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
4620
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4650
|
+
JsonPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: JsonPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4651
|
+
JsonPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: JsonPipe, name: "json", pure: false });
|
|
4652
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: JsonPipe, decorators: [{
|
|
4621
4653
|
type: Pipe,
|
|
4622
4654
|
args: [{ name: 'json', pure: false }]
|
|
4623
4655
|
}] });
|
|
@@ -4681,9 +4713,9 @@ class KeyValuePipe {
|
|
|
4681
4713
|
return this.keyValues;
|
|
4682
4714
|
}
|
|
4683
4715
|
}
|
|
4684
|
-
KeyValuePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4685
|
-
KeyValuePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
4686
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4716
|
+
KeyValuePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: KeyValuePipe, deps: [{ token: i0.KeyValueDiffers }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4717
|
+
KeyValuePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: KeyValuePipe, name: "keyvalue", pure: false });
|
|
4718
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: KeyValuePipe, decorators: [{
|
|
4687
4719
|
type: Pipe,
|
|
4688
4720
|
args: [{ name: 'keyvalue', pure: false }]
|
|
4689
4721
|
}], ctorParameters: function () { return [{ type: i0.KeyValueDiffers }]; } });
|
|
@@ -4812,9 +4844,9 @@ class DecimalPipe {
|
|
|
4812
4844
|
}
|
|
4813
4845
|
}
|
|
4814
4846
|
}
|
|
4815
|
-
DecimalPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4816
|
-
DecimalPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
4817
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4847
|
+
DecimalPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: DecimalPipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4848
|
+
DecimalPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: DecimalPipe, name: "number" });
|
|
4849
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: DecimalPipe, decorators: [{
|
|
4818
4850
|
type: Pipe,
|
|
4819
4851
|
args: [{ name: 'number' }]
|
|
4820
4852
|
}], ctorParameters: function () {
|
|
@@ -4876,9 +4908,9 @@ class PercentPipe {
|
|
|
4876
4908
|
}
|
|
4877
4909
|
}
|
|
4878
4910
|
}
|
|
4879
|
-
PercentPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4880
|
-
PercentPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
4881
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4911
|
+
PercentPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: PercentPipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4912
|
+
PercentPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: PercentPipe, name: "percent" });
|
|
4913
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: PercentPipe, decorators: [{
|
|
4882
4914
|
type: Pipe,
|
|
4883
4915
|
args: [{ name: 'percent' }]
|
|
4884
4916
|
}], ctorParameters: function () {
|
|
@@ -4993,9 +5025,9 @@ class CurrencyPipe {
|
|
|
4993
5025
|
}
|
|
4994
5026
|
}
|
|
4995
5027
|
}
|
|
4996
|
-
CurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4997
|
-
CurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
4998
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5028
|
+
CurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: CurrencyPipe, deps: [{ token: LOCALE_ID }, { token: DEFAULT_CURRENCY_CODE }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
5029
|
+
CurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: CurrencyPipe, name: "currency" });
|
|
5030
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: CurrencyPipe, decorators: [{
|
|
4999
5031
|
type: Pipe,
|
|
5000
5032
|
args: [{ name: 'currency' }]
|
|
5001
5033
|
}], ctorParameters: function () {
|
|
@@ -5079,9 +5111,9 @@ class SlicePipe {
|
|
|
5079
5111
|
return typeof obj === 'string' || Array.isArray(obj);
|
|
5080
5112
|
}
|
|
5081
5113
|
}
|
|
5082
|
-
SlicePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5083
|
-
SlicePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
5084
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5114
|
+
SlicePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: SlicePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
5115
|
+
SlicePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: SlicePipe, name: "slice", pure: false });
|
|
5116
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: SlicePipe, decorators: [{
|
|
5085
5117
|
type: Pipe,
|
|
5086
5118
|
args: [{ name: 'slice', pure: false }]
|
|
5087
5119
|
}] });
|
|
@@ -5136,12 +5168,12 @@ const COMMON_PIPES = [
|
|
|
5136
5168
|
*/
|
|
5137
5169
|
class CommonModule {
|
|
5138
5170
|
}
|
|
5139
|
-
CommonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5140
|
-
CommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
5141
|
-
CommonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
5171
|
+
CommonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: CommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5172
|
+
CommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: CommonModule, declarations: [NgClass, NgComponentOutlet, NgForOf, NgIf, NgTemplateOutlet, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgPlural, NgPluralCase, AsyncPipe, UpperCasePipe, LowerCasePipe, JsonPipe, SlicePipe, DecimalPipe, PercentPipe, TitleCasePipe, CurrencyPipe, DatePipe, I18nPluralPipe, I18nSelectPipe, KeyValuePipe], exports: [NgClass, NgComponentOutlet, NgForOf, NgIf, NgTemplateOutlet, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgPlural, NgPluralCase, AsyncPipe, UpperCasePipe, LowerCasePipe, JsonPipe, SlicePipe, DecimalPipe, PercentPipe, TitleCasePipe, CurrencyPipe, DatePipe, I18nPluralPipe, I18nSelectPipe, KeyValuePipe] });
|
|
5173
|
+
CommonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: CommonModule, providers: [
|
|
5142
5174
|
{ provide: NgLocalization, useClass: NgLocaleLocalization },
|
|
5143
5175
|
] });
|
|
5144
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5176
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: CommonModule, decorators: [{
|
|
5145
5177
|
type: NgModule,
|
|
5146
5178
|
args: [{
|
|
5147
5179
|
declarations: [COMMON_DIRECTIVES, COMMON_PIPES],
|
|
@@ -5202,7 +5234,7 @@ function isPlatformWorkerUi(platformId) {
|
|
|
5202
5234
|
/**
|
|
5203
5235
|
* @publicApi
|
|
5204
5236
|
*/
|
|
5205
|
-
const VERSION = new Version('
|
|
5237
|
+
const VERSION = new Version('14.0.0-next.3');
|
|
5206
5238
|
|
|
5207
5239
|
/**
|
|
5208
5240
|
* @license
|