@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/fesm2020/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',
|
|
@@ -311,9 +311,9 @@ class LocationStrategy {
|
|
|
311
311
|
throw new Error('Not implemented');
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
|
-
LocationStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
315
|
-
LocationStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
316
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
314
|
+
LocationStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: LocationStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
315
|
+
LocationStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: LocationStrategy, providedIn: 'root', useFactory: provideLocationStrategy });
|
|
316
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: LocationStrategy, decorators: [{
|
|
317
317
|
type: Injectable,
|
|
318
318
|
args: [{ providedIn: 'root', useFactory: provideLocationStrategy }]
|
|
319
319
|
}] });
|
|
@@ -428,9 +428,9 @@ class PathLocationStrategy extends LocationStrategy {
|
|
|
428
428
|
this._platformLocation.historyGo?.(relativePosition);
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
|
-
PathLocationStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
432
|
-
PathLocationStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
433
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
431
|
+
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 });
|
|
432
|
+
PathLocationStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: PathLocationStrategy });
|
|
433
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: PathLocationStrategy, decorators: [{
|
|
434
434
|
type: Injectable
|
|
435
435
|
}], ctorParameters: function () { return [{ type: PlatformLocation }, { type: undefined, decorators: [{
|
|
436
436
|
type: Optional
|
|
@@ -522,9 +522,9 @@ class HashLocationStrategy extends LocationStrategy {
|
|
|
522
522
|
this._platformLocation.historyGo?.(relativePosition);
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
|
-
HashLocationStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
526
|
-
HashLocationStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
527
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
525
|
+
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 });
|
|
526
|
+
HashLocationStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: HashLocationStrategy });
|
|
527
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: HashLocationStrategy, decorators: [{
|
|
528
528
|
type: Injectable
|
|
529
529
|
}], ctorParameters: function () { return [{ type: PlatformLocation }, { type: undefined, decorators: [{
|
|
530
530
|
type: Optional
|
|
@@ -574,6 +574,8 @@ class Location {
|
|
|
574
574
|
this._subject = new EventEmitter();
|
|
575
575
|
/** @internal */
|
|
576
576
|
this._urlChangeListeners = [];
|
|
577
|
+
/** @internal */
|
|
578
|
+
this._urlChangeSubscription = null;
|
|
577
579
|
this._platformStrategy = platformStrategy;
|
|
578
580
|
const browserBaseHref = this._platformStrategy.getBaseHref();
|
|
579
581
|
this._platformLocation = platformLocation;
|
|
@@ -587,6 +589,11 @@ class Location {
|
|
|
587
589
|
});
|
|
588
590
|
});
|
|
589
591
|
}
|
|
592
|
+
/** @nodoc */
|
|
593
|
+
ngOnDestroy() {
|
|
594
|
+
this._urlChangeSubscription?.unsubscribe();
|
|
595
|
+
this._urlChangeListeners = [];
|
|
596
|
+
}
|
|
590
597
|
/**
|
|
591
598
|
* Normalizes the URL path for this location.
|
|
592
599
|
*
|
|
@@ -702,6 +709,7 @@ class Location {
|
|
|
702
709
|
* framework that are not detectible through "popstate" or "hashchange" events.
|
|
703
710
|
*
|
|
704
711
|
* @param fn The change handler function, which take a URL and a location history state.
|
|
712
|
+
* @returns A function that, when executed, unregisters a URL change listener.
|
|
705
713
|
*/
|
|
706
714
|
onUrlChange(fn) {
|
|
707
715
|
this._urlChangeListeners.push(fn);
|
|
@@ -710,6 +718,14 @@ class Location {
|
|
|
710
718
|
this._notifyUrlChangeListeners(v.url, v.state);
|
|
711
719
|
});
|
|
712
720
|
}
|
|
721
|
+
return () => {
|
|
722
|
+
const fnIndex = this._urlChangeListeners.indexOf(fn);
|
|
723
|
+
this._urlChangeListeners.splice(fnIndex, 1);
|
|
724
|
+
if (this._urlChangeListeners.length === 0) {
|
|
725
|
+
this._urlChangeSubscription?.unsubscribe();
|
|
726
|
+
this._urlChangeSubscription = null;
|
|
727
|
+
}
|
|
728
|
+
};
|
|
713
729
|
}
|
|
714
730
|
/** @internal */
|
|
715
731
|
_notifyUrlChangeListeners(url = '', state) {
|
|
@@ -760,9 +776,9 @@ Location.joinWithSlash = joinWithSlash;
|
|
|
760
776
|
* @returns The URL string, modified if needed.
|
|
761
777
|
*/
|
|
762
778
|
Location.stripTrailingSlash = stripTrailingSlash;
|
|
763
|
-
Location.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
764
|
-
Location.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
765
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
779
|
+
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 });
|
|
780
|
+
Location.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: Location, providedIn: 'root', useFactory: createLocation });
|
|
781
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: Location, decorators: [{
|
|
766
782
|
type: Injectable,
|
|
767
783
|
args: [{
|
|
768
784
|
providedIn: 'root',
|
|
@@ -1434,7 +1450,7 @@ function getNumberOfCurrencyDigits(code) {
|
|
|
1434
1450
|
* Use of this source code is governed by an MIT-style license that can be
|
|
1435
1451
|
* found in the LICENSE file at https://angular.io/license
|
|
1436
1452
|
*/
|
|
1437
|
-
const ISO8601_DATE_REGEX = /^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;
|
|
1453
|
+
const ISO8601_DATE_REGEX = /^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;
|
|
1438
1454
|
// 1 2 3 4 5 6 7 8 9 10 11
|
|
1439
1455
|
const NAMED_FORMATS = {};
|
|
1440
1456
|
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]*)/;
|
|
@@ -1513,9 +1529,9 @@ function formatDate(value, format, locale, timezone) {
|
|
|
1513
1529
|
let text = '';
|
|
1514
1530
|
parts.forEach(value => {
|
|
1515
1531
|
const dateFormatter = getDateFormatter(value);
|
|
1516
|
-
text += dateFormatter ?
|
|
1517
|
-
|
|
1518
|
-
|
|
1532
|
+
text += dateFormatter ? dateFormatter(date, locale, dateTimezoneOffset) :
|
|
1533
|
+
value === '\'\'' ? '\'' :
|
|
1534
|
+
value.replace(/(^'|'$)/g, '').replace(/''/g, '\'');
|
|
1519
1535
|
});
|
|
1520
1536
|
return text;
|
|
1521
1537
|
}
|
|
@@ -2625,9 +2641,9 @@ class NgLocaleLocalization extends NgLocalization {
|
|
|
2625
2641
|
}
|
|
2626
2642
|
}
|
|
2627
2643
|
}
|
|
2628
|
-
NgLocaleLocalization.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2629
|
-
NgLocaleLocalization.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2630
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2644
|
+
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 });
|
|
2645
|
+
NgLocaleLocalization.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgLocaleLocalization });
|
|
2646
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgLocaleLocalization, decorators: [{
|
|
2631
2647
|
type: Injectable
|
|
2632
2648
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
2633
2649
|
type: Inject,
|
|
@@ -2820,9 +2836,9 @@ class NgClass {
|
|
|
2820
2836
|
}
|
|
2821
2837
|
}
|
|
2822
2838
|
}
|
|
2823
|
-
NgClass.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2824
|
-
NgClass.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
2825
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2839
|
+
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 });
|
|
2840
|
+
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 });
|
|
2841
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgClass, decorators: [{
|
|
2826
2842
|
type: Directive,
|
|
2827
2843
|
args: [{ selector: '[ngClass]' }]
|
|
2828
2844
|
}], ctorParameters: function () { return [{ type: i0.IterableDiffers }, { type: i0.KeyValueDiffers }, { type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { klass: [{
|
|
@@ -2859,9 +2875,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
2859
2875
|
* * `ngComponentOutletContent`: Optional list of projectable nodes to insert into the content
|
|
2860
2876
|
* section of the component, if it exists.
|
|
2861
2877
|
*
|
|
2862
|
-
* * `
|
|
2878
|
+
* * `ngComponentOutletNgModule`: Optional NgModule class reference to allow loading another
|
|
2863
2879
|
* module dynamically, then loading a component from that module.
|
|
2864
2880
|
*
|
|
2881
|
+
* * `ngComponentOutletNgModuleFactory`: Deprecated config option that allows providing optional
|
|
2882
|
+
* NgModule factory to allow loading another module dynamically, then loading a component from that
|
|
2883
|
+
* module. Use `ngComponentOutletNgModule` instead.
|
|
2884
|
+
*
|
|
2865
2885
|
* ### Syntax
|
|
2866
2886
|
*
|
|
2867
2887
|
* Simple
|
|
@@ -2877,10 +2897,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
2877
2897
|
* </ng-container>
|
|
2878
2898
|
* ```
|
|
2879
2899
|
*
|
|
2880
|
-
* Customized
|
|
2900
|
+
* Customized NgModule reference
|
|
2881
2901
|
* ```
|
|
2882
2902
|
* <ng-container *ngComponentOutlet="componentTypeExpression;
|
|
2883
|
-
*
|
|
2903
|
+
* ngModule: ngModuleClass;">
|
|
2884
2904
|
* </ng-container>
|
|
2885
2905
|
* ```
|
|
2886
2906
|
*
|
|
@@ -2898,30 +2918,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
2898
2918
|
class NgComponentOutlet {
|
|
2899
2919
|
constructor(_viewContainerRef) {
|
|
2900
2920
|
this._viewContainerRef = _viewContainerRef;
|
|
2901
|
-
this._componentRef = null;
|
|
2902
|
-
this._moduleRef = null;
|
|
2903
2921
|
}
|
|
2904
2922
|
/** @nodoc */
|
|
2905
2923
|
ngOnChanges(changes) {
|
|
2906
|
-
this
|
|
2907
|
-
|
|
2924
|
+
const { _viewContainerRef: viewContainerRef, ngComponentOutletNgModule: ngModule, ngComponentOutletNgModuleFactory: ngModuleFactory, } = this;
|
|
2925
|
+
viewContainerRef.clear();
|
|
2926
|
+
this._componentRef = undefined;
|
|
2908
2927
|
if (this.ngComponentOutlet) {
|
|
2909
|
-
const
|
|
2910
|
-
if (changes['ngComponentOutletNgModuleFactory']) {
|
|
2928
|
+
const injector = this.ngComponentOutletInjector || viewContainerRef.parentInjector;
|
|
2929
|
+
if (changes['ngComponentOutletNgModule'] || changes['ngComponentOutletNgModuleFactory']) {
|
|
2911
2930
|
if (this._moduleRef)
|
|
2912
2931
|
this._moduleRef.destroy();
|
|
2913
|
-
if (
|
|
2914
|
-
|
|
2915
|
-
|
|
2932
|
+
if (ngModule) {
|
|
2933
|
+
this._moduleRef = createNgModuleRef(ngModule, getParentInjector(injector));
|
|
2934
|
+
}
|
|
2935
|
+
else if (ngModuleFactory) {
|
|
2936
|
+
this._moduleRef = ngModuleFactory.create(getParentInjector(injector));
|
|
2916
2937
|
}
|
|
2917
2938
|
else {
|
|
2918
|
-
this._moduleRef =
|
|
2939
|
+
this._moduleRef = undefined;
|
|
2919
2940
|
}
|
|
2920
2941
|
}
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2942
|
+
this._componentRef = viewContainerRef.createComponent(this.ngComponentOutlet, {
|
|
2943
|
+
index: viewContainerRef.length,
|
|
2944
|
+
injector,
|
|
2945
|
+
ngModuleRef: this._moduleRef,
|
|
2946
|
+
projectableNodes: this.ngComponentOutletContent,
|
|
2947
|
+
});
|
|
2925
2948
|
}
|
|
2926
2949
|
}
|
|
2927
2950
|
/** @nodoc */
|
|
@@ -2930,9 +2953,9 @@ class NgComponentOutlet {
|
|
|
2930
2953
|
this._moduleRef.destroy();
|
|
2931
2954
|
}
|
|
2932
2955
|
}
|
|
2933
|
-
NgComponentOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2934
|
-
NgComponentOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
2935
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2956
|
+
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 });
|
|
2957
|
+
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 });
|
|
2958
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgComponentOutlet, decorators: [{
|
|
2936
2959
|
type: Directive,
|
|
2937
2960
|
args: [{ selector: '[ngComponentOutlet]' }]
|
|
2938
2961
|
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; }, propDecorators: { ngComponentOutlet: [{
|
|
@@ -2941,9 +2964,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
2941
2964
|
type: Input
|
|
2942
2965
|
}], ngComponentOutletContent: [{
|
|
2943
2966
|
type: Input
|
|
2967
|
+
}], ngComponentOutletNgModule: [{
|
|
2968
|
+
type: Input
|
|
2944
2969
|
}], ngComponentOutletNgModuleFactory: [{
|
|
2945
2970
|
type: Input
|
|
2946
2971
|
}] } });
|
|
2972
|
+
// Helper function that returns an Injector instance of a parent NgModule.
|
|
2973
|
+
function getParentInjector(injector) {
|
|
2974
|
+
const parentNgModule = injector.get(NgModuleRef);
|
|
2975
|
+
return parentNgModule.injector;
|
|
2976
|
+
}
|
|
2947
2977
|
|
|
2948
2978
|
/**
|
|
2949
2979
|
* @license
|
|
@@ -3206,9 +3236,9 @@ class NgForOf {
|
|
|
3206
3236
|
return true;
|
|
3207
3237
|
}
|
|
3208
3238
|
}
|
|
3209
|
-
NgForOf.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3210
|
-
NgForOf.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3211
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3239
|
+
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 });
|
|
3240
|
+
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 });
|
|
3241
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgForOf, decorators: [{
|
|
3212
3242
|
type: Directive,
|
|
3213
3243
|
args: [{ selector: '[ngFor][ngForOf]' }]
|
|
3214
3244
|
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }, { type: i0.IterableDiffers }]; }, propDecorators: { ngForOf: [{
|
|
@@ -3438,9 +3468,9 @@ class NgIf {
|
|
|
3438
3468
|
return true;
|
|
3439
3469
|
}
|
|
3440
3470
|
}
|
|
3441
|
-
NgIf.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3442
|
-
NgIf.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3443
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3471
|
+
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 });
|
|
3472
|
+
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 });
|
|
3473
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgIf, decorators: [{
|
|
3444
3474
|
type: Directive,
|
|
3445
3475
|
args: [{ selector: '[ngIf]' }]
|
|
3446
3476
|
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }]; }, propDecorators: { ngIf: [{
|
|
@@ -3608,9 +3638,9 @@ class NgSwitch {
|
|
|
3608
3638
|
}
|
|
3609
3639
|
}
|
|
3610
3640
|
}
|
|
3611
|
-
NgSwitch.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3612
|
-
NgSwitch.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3613
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3641
|
+
NgSwitch.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgSwitch, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3642
|
+
NgSwitch.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.3", type: NgSwitch, selector: "[ngSwitch]", inputs: { ngSwitch: "ngSwitch" }, ngImport: i0 });
|
|
3643
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgSwitch, decorators: [{
|
|
3614
3644
|
type: Directive,
|
|
3615
3645
|
args: [{ selector: '[ngSwitch]' }]
|
|
3616
3646
|
}], propDecorators: { ngSwitch: [{
|
|
@@ -3666,9 +3696,9 @@ class NgSwitchCase {
|
|
|
3666
3696
|
this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase));
|
|
3667
3697
|
}
|
|
3668
3698
|
}
|
|
3669
|
-
NgSwitchCase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3670
|
-
NgSwitchCase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3671
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3699
|
+
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 });
|
|
3700
|
+
NgSwitchCase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.3", type: NgSwitchCase, selector: "[ngSwitchCase]", inputs: { ngSwitchCase: "ngSwitchCase" }, ngImport: i0 });
|
|
3701
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgSwitchCase, decorators: [{
|
|
3672
3702
|
type: Directive,
|
|
3673
3703
|
args: [{ selector: '[ngSwitchCase]' }]
|
|
3674
3704
|
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }, { type: NgSwitch, decorators: [{
|
|
@@ -3700,9 +3730,9 @@ class NgSwitchDefault {
|
|
|
3700
3730
|
ngSwitch._addDefault(new SwitchView(viewContainer, templateRef));
|
|
3701
3731
|
}
|
|
3702
3732
|
}
|
|
3703
|
-
NgSwitchDefault.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3704
|
-
NgSwitchDefault.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3705
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3733
|
+
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 });
|
|
3734
|
+
NgSwitchDefault.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.3", type: NgSwitchDefault, selector: "[ngSwitchDefault]", ngImport: i0 });
|
|
3735
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgSwitchDefault, decorators: [{
|
|
3706
3736
|
type: Directive,
|
|
3707
3737
|
args: [{ selector: '[ngSwitchDefault]' }]
|
|
3708
3738
|
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }, { type: NgSwitch, decorators: [{
|
|
@@ -3783,9 +3813,9 @@ class NgPlural {
|
|
|
3783
3813
|
}
|
|
3784
3814
|
}
|
|
3785
3815
|
}
|
|
3786
|
-
NgPlural.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3787
|
-
NgPlural.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3788
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3816
|
+
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 });
|
|
3817
|
+
NgPlural.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.3", type: NgPlural, selector: "[ngPlural]", inputs: { ngPlural: "ngPlural" }, ngImport: i0 });
|
|
3818
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgPlural, decorators: [{
|
|
3789
3819
|
type: Directive,
|
|
3790
3820
|
args: [{ selector: '[ngPlural]' }]
|
|
3791
3821
|
}], ctorParameters: function () { return [{ type: NgLocalization }]; }, propDecorators: { ngPlural: [{
|
|
@@ -3818,9 +3848,9 @@ class NgPluralCase {
|
|
|
3818
3848
|
ngPlural.addCase(isANumber ? `=${value}` : value, new SwitchView(viewContainer, template));
|
|
3819
3849
|
}
|
|
3820
3850
|
}
|
|
3821
|
-
NgPluralCase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3822
|
-
NgPluralCase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3823
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3851
|
+
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 });
|
|
3852
|
+
NgPluralCase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.3", type: NgPluralCase, selector: "[ngPluralCase]", ngImport: i0 });
|
|
3853
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgPluralCase, decorators: [{
|
|
3824
3854
|
type: Directive,
|
|
3825
3855
|
args: [{ selector: '[ngPluralCase]' }]
|
|
3826
3856
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -3911,9 +3941,9 @@ class NgStyle {
|
|
|
3911
3941
|
changes.forEachChangedItem((record) => this._setStyle(record.key, record.currentValue));
|
|
3912
3942
|
}
|
|
3913
3943
|
}
|
|
3914
|
-
NgStyle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3915
|
-
NgStyle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3916
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3944
|
+
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 });
|
|
3945
|
+
NgStyle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.3", type: NgStyle, selector: "[ngStyle]", inputs: { ngStyle: "ngStyle" }, ngImport: i0 });
|
|
3946
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgStyle, decorators: [{
|
|
3917
3947
|
type: Directive,
|
|
3918
3948
|
args: [{ selector: '[ngStyle]' }]
|
|
3919
3949
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.KeyValueDiffers }, { type: i0.Renderer2 }]; }, propDecorators: { ngStyle: [{
|
|
@@ -3984,9 +4014,9 @@ class NgTemplateOutlet {
|
|
|
3984
4014
|
}
|
|
3985
4015
|
}
|
|
3986
4016
|
}
|
|
3987
|
-
NgTemplateOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3988
|
-
NgTemplateOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3989
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4017
|
+
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 });
|
|
4018
|
+
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 });
|
|
4019
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: NgTemplateOutlet, decorators: [{
|
|
3990
4020
|
type: Directive,
|
|
3991
4021
|
args: [{ selector: '[ngTemplateOutlet]' }]
|
|
3992
4022
|
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; }, propDecorators: { ngTemplateOutletContext: [{
|
|
@@ -4149,9 +4179,9 @@ class AsyncPipe {
|
|
|
4149
4179
|
}
|
|
4150
4180
|
}
|
|
4151
4181
|
}
|
|
4152
|
-
AsyncPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4153
|
-
AsyncPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
4154
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4182
|
+
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 });
|
|
4183
|
+
AsyncPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: AsyncPipe, name: "async", pure: false });
|
|
4184
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: AsyncPipe, decorators: [{
|
|
4155
4185
|
type: Pipe,
|
|
4156
4186
|
args: [{ name: 'async', pure: false }]
|
|
4157
4187
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; } });
|
|
@@ -4188,9 +4218,9 @@ class LowerCasePipe {
|
|
|
4188
4218
|
return value.toLowerCase();
|
|
4189
4219
|
}
|
|
4190
4220
|
}
|
|
4191
|
-
LowerCasePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4192
|
-
LowerCasePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
4193
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4221
|
+
LowerCasePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: LowerCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4222
|
+
LowerCasePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: LowerCasePipe, name: "lowercase" });
|
|
4223
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: LowerCasePipe, decorators: [{
|
|
4194
4224
|
type: Pipe,
|
|
4195
4225
|
args: [{ name: 'lowercase' }]
|
|
4196
4226
|
}] });
|
|
@@ -4230,9 +4260,9 @@ class TitleCasePipe {
|
|
|
4230
4260
|
return value.replace(unicodeWordMatch, (txt => txt[0].toUpperCase() + txt.substr(1).toLowerCase()));
|
|
4231
4261
|
}
|
|
4232
4262
|
}
|
|
4233
|
-
TitleCasePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4234
|
-
TitleCasePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
4235
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4263
|
+
TitleCasePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: TitleCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4264
|
+
TitleCasePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: TitleCasePipe, name: "titlecase" });
|
|
4265
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: TitleCasePipe, decorators: [{
|
|
4236
4266
|
type: Pipe,
|
|
4237
4267
|
args: [{ name: 'titlecase' }]
|
|
4238
4268
|
}] });
|
|
@@ -4254,9 +4284,9 @@ class UpperCasePipe {
|
|
|
4254
4284
|
return value.toUpperCase();
|
|
4255
4285
|
}
|
|
4256
4286
|
}
|
|
4257
|
-
UpperCasePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4258
|
-
UpperCasePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
4259
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4287
|
+
UpperCasePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: UpperCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4288
|
+
UpperCasePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: UpperCasePipe, name: "uppercase" });
|
|
4289
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: UpperCasePipe, decorators: [{
|
|
4260
4290
|
type: Pipe,
|
|
4261
4291
|
args: [{ name: 'uppercase' }]
|
|
4262
4292
|
}] });
|
|
@@ -4448,9 +4478,9 @@ class DatePipe {
|
|
|
4448
4478
|
}
|
|
4449
4479
|
}
|
|
4450
4480
|
}
|
|
4451
|
-
DatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4452
|
-
DatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
4453
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4481
|
+
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 });
|
|
4482
|
+
DatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: DatePipe, name: "date" });
|
|
4483
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: DatePipe, decorators: [{
|
|
4454
4484
|
type: Pipe,
|
|
4455
4485
|
args: [{ name: 'date', pure: true }]
|
|
4456
4486
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -4506,9 +4536,9 @@ class I18nPluralPipe {
|
|
|
4506
4536
|
return pluralMap[key].replace(_INTERPOLATION_REGEXP, value.toString());
|
|
4507
4537
|
}
|
|
4508
4538
|
}
|
|
4509
|
-
I18nPluralPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4510
|
-
I18nPluralPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
4511
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4539
|
+
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 });
|
|
4540
|
+
I18nPluralPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: I18nPluralPipe, name: "i18nPlural" });
|
|
4541
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: I18nPluralPipe, decorators: [{
|
|
4512
4542
|
type: Pipe,
|
|
4513
4543
|
args: [{ name: 'i18nPlural', pure: true }]
|
|
4514
4544
|
}], ctorParameters: function () { return [{ type: NgLocalization }]; } });
|
|
@@ -4558,9 +4588,9 @@ class I18nSelectPipe {
|
|
|
4558
4588
|
return '';
|
|
4559
4589
|
}
|
|
4560
4590
|
}
|
|
4561
|
-
I18nSelectPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4562
|
-
I18nSelectPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
4563
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4591
|
+
I18nSelectPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: I18nSelectPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4592
|
+
I18nSelectPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: I18nSelectPipe, name: "i18nSelect" });
|
|
4593
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: I18nSelectPipe, decorators: [{
|
|
4564
4594
|
type: Pipe,
|
|
4565
4595
|
args: [{ name: 'i18nSelect', pure: true }]
|
|
4566
4596
|
}] });
|
|
@@ -4595,9 +4625,9 @@ class JsonPipe {
|
|
|
4595
4625
|
return JSON.stringify(value, null, 2);
|
|
4596
4626
|
}
|
|
4597
4627
|
}
|
|
4598
|
-
JsonPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4599
|
-
JsonPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
4600
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4628
|
+
JsonPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: JsonPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4629
|
+
JsonPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: JsonPipe, name: "json", pure: false });
|
|
4630
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: JsonPipe, decorators: [{
|
|
4601
4631
|
type: Pipe,
|
|
4602
4632
|
args: [{ name: 'json', pure: false }]
|
|
4603
4633
|
}] });
|
|
@@ -4661,9 +4691,9 @@ class KeyValuePipe {
|
|
|
4661
4691
|
return this.keyValues;
|
|
4662
4692
|
}
|
|
4663
4693
|
}
|
|
4664
|
-
KeyValuePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4665
|
-
KeyValuePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
4666
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4694
|
+
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 });
|
|
4695
|
+
KeyValuePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: KeyValuePipe, name: "keyvalue", pure: false });
|
|
4696
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: KeyValuePipe, decorators: [{
|
|
4667
4697
|
type: Pipe,
|
|
4668
4698
|
args: [{ name: 'keyvalue', pure: false }]
|
|
4669
4699
|
}], ctorParameters: function () { return [{ type: i0.KeyValueDiffers }]; } });
|
|
@@ -4792,9 +4822,9 @@ class DecimalPipe {
|
|
|
4792
4822
|
}
|
|
4793
4823
|
}
|
|
4794
4824
|
}
|
|
4795
|
-
DecimalPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4796
|
-
DecimalPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
4797
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4825
|
+
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 });
|
|
4826
|
+
DecimalPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: DecimalPipe, name: "number" });
|
|
4827
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: DecimalPipe, decorators: [{
|
|
4798
4828
|
type: Pipe,
|
|
4799
4829
|
args: [{ name: 'number' }]
|
|
4800
4830
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -4854,9 +4884,9 @@ class PercentPipe {
|
|
|
4854
4884
|
}
|
|
4855
4885
|
}
|
|
4856
4886
|
}
|
|
4857
|
-
PercentPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4858
|
-
PercentPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
4859
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4887
|
+
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 });
|
|
4888
|
+
PercentPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: PercentPipe, name: "percent" });
|
|
4889
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: PercentPipe, decorators: [{
|
|
4860
4890
|
type: Pipe,
|
|
4861
4891
|
args: [{ name: 'percent' }]
|
|
4862
4892
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -4969,9 +4999,9 @@ class CurrencyPipe {
|
|
|
4969
4999
|
}
|
|
4970
5000
|
}
|
|
4971
5001
|
}
|
|
4972
|
-
CurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4973
|
-
CurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
4974
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5002
|
+
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 });
|
|
5003
|
+
CurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: CurrencyPipe, name: "currency" });
|
|
5004
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: CurrencyPipe, decorators: [{
|
|
4975
5005
|
type: Pipe,
|
|
4976
5006
|
args: [{ name: 'currency' }]
|
|
4977
5007
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -5053,9 +5083,9 @@ class SlicePipe {
|
|
|
5053
5083
|
return typeof obj === 'string' || Array.isArray(obj);
|
|
5054
5084
|
}
|
|
5055
5085
|
}
|
|
5056
|
-
SlicePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5057
|
-
SlicePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
5058
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5086
|
+
SlicePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: SlicePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
5087
|
+
SlicePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: SlicePipe, name: "slice", pure: false });
|
|
5088
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: SlicePipe, decorators: [{
|
|
5059
5089
|
type: Pipe,
|
|
5060
5090
|
args: [{ name: 'slice', pure: false }]
|
|
5061
5091
|
}] });
|
|
@@ -5110,12 +5140,12 @@ const COMMON_PIPES = [
|
|
|
5110
5140
|
*/
|
|
5111
5141
|
class CommonModule {
|
|
5112
5142
|
}
|
|
5113
|
-
CommonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5114
|
-
CommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
5115
|
-
CommonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
5143
|
+
CommonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: CommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5144
|
+
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] });
|
|
5145
|
+
CommonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: CommonModule, providers: [
|
|
5116
5146
|
{ provide: NgLocalization, useClass: NgLocaleLocalization },
|
|
5117
5147
|
] });
|
|
5118
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5148
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.3", ngImport: i0, type: CommonModule, decorators: [{
|
|
5119
5149
|
type: NgModule,
|
|
5120
5150
|
args: [{
|
|
5121
5151
|
declarations: [COMMON_DIRECTIVES, COMMON_PIPES],
|
|
@@ -5176,7 +5206,7 @@ function isPlatformWorkerUi(platformId) {
|
|
|
5176
5206
|
/**
|
|
5177
5207
|
* @publicApi
|
|
5178
5208
|
*/
|
|
5179
|
-
const VERSION = new Version('
|
|
5209
|
+
const VERSION = new Version('14.0.0-next.3');
|
|
5180
5210
|
|
|
5181
5211
|
/**
|
|
5182
5212
|
* @license
|