@angular/upgrade 15.1.0-next.3 → 15.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v15.1.0-next.3
2
+ * @license Angular v15.1.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -8,13 +8,6 @@ import * as i0 from '@angular/core';
8
8
  import { ɵNG_MOD_DEF, Injector, ChangeDetectorRef, Testability, TestabilityRegistry, ApplicationRef, SimpleChange, NgZone, ComponentFactoryResolver, Version, ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR, PlatformRef, EventEmitter, Directive, NgModule } from '@angular/core';
9
9
  import { platformBrowser } from '@angular/platform-browser';
10
10
 
11
- /**
12
- * @license
13
- * Copyright Google LLC All Rights Reserved.
14
- *
15
- * Use of this source code is governed by an MIT-style license that can be
16
- * found in the LICENSE file at https://angular.io/license
17
- */
18
11
  function noNg() {
19
12
  throw new Error('AngularJS v1.x is not loaded!');
20
13
  }
@@ -81,13 +74,6 @@ const injector = (modules, strictDi) => angular.injector(modules, strictDi);
81
74
  const resumeBootstrap = () => angular.resumeBootstrap();
82
75
  const getTestability = e => angular.getTestability(e);
83
76
 
84
- /**
85
- * @license
86
- * Copyright Google LLC All Rights Reserved.
87
- *
88
- * Use of this source code is governed by an MIT-style license that can be
89
- * found in the LICENSE file at https://angular.io/license
90
- */
91
77
  const $COMPILE = '$compile';
92
78
  const $CONTROLLER = '$controller';
93
79
  const $DELEGATE = '$delegate';
@@ -114,13 +100,6 @@ const REQUIRE_INJECTOR = '?^^' + INJECTOR_KEY;
114
100
  const REQUIRE_NG_MODEL = '?ngModel';
115
101
  const UPGRADE_MODULE_NAME = '$$UpgradeModule';
116
102
 
117
- /**
118
- * @license
119
- * Copyright Google LLC All Rights Reserved.
120
- *
121
- * Use of this source code is governed by an MIT-style license that can be
122
- * found in the LICENSE file at https://angular.io/license
123
- */
124
103
  /**
125
104
  * A `PropertyBinding` represents a mapping between a property name
126
105
  * and an attribute name. It is parsed from a string of the form
@@ -144,13 +123,6 @@ class PropertyBinding {
144
123
  }
145
124
  }
146
125
 
147
- /**
148
- * @license
149
- * Copyright Google LLC All Rights Reserved.
150
- *
151
- * Use of this source code is governed by an MIT-style license that can be
152
- * found in the LICENSE file at https://angular.io/license
153
- */
154
126
  const DIRECTIVE_PREFIX_REGEXP = /^(?:x|data)[:\-_]/i;
155
127
  const DIRECTIVE_SPECIAL_CHARS_REGEXP = /[:\-_]+(.)/g;
156
128
  function onError(e) {
@@ -296,13 +268,6 @@ function strictEquals(val1, val2) {
296
268
  return val1 === val2 || (val1 !== val1 && val2 !== val2);
297
269
  }
298
270
 
299
- /**
300
- * @license
301
- * Copyright Google LLC All Rights Reserved.
302
- *
303
- * Use of this source code is governed by an MIT-style license that can be
304
- * found in the LICENSE file at https://angular.io/license
305
- */
306
271
  const INITIAL_VALUE$1 = {
307
272
  __UNINITIALIZED__: true
308
273
  };
@@ -568,13 +533,6 @@ function matchesSelector(el, selector) {
568
533
  return el.nodeType === Node.ELEMENT_NODE ? _matches.call(el, selector) : false;
569
534
  }
570
535
 
571
- /**
572
- * @license
573
- * Copyright Google LLC All Rights Reserved.
574
- *
575
- * Use of this source code is governed by an MIT-style license that can be
576
- * found in the LICENSE file at https://angular.io/license
577
- */
578
536
  function isThenable(obj) {
579
537
  return !!obj && isFunction(obj.then);
580
538
  }
@@ -625,13 +583,6 @@ class SyncPromise {
625
583
  }
626
584
  }
627
585
 
628
- /**
629
- * @license
630
- * Copyright Google LLC All Rights Reserved.
631
- *
632
- * Use of this source code is governed by an MIT-style license that can be
633
- * found in the LICENSE file at https://angular.io/license
634
- */
635
586
  /**
636
587
  * @description
637
588
  *
@@ -818,13 +769,6 @@ class ParentInjectorPromise extends SyncPromise {
818
769
  }
819
770
  }
820
771
 
821
- /**
822
- * @license
823
- * Copyright Google LLC All Rights Reserved.
824
- *
825
- * Use of this source code is governed by an MIT-style license that can be
826
- * found in the LICENSE file at https://angular.io/license
827
- */
828
772
  /**
829
773
  * @description
830
774
  *
@@ -904,24 +848,15 @@ function downgradeInjectable(token, downgradedModule = '') {
904
848
  }
905
849
 
906
850
  /**
907
- * @license
908
- * Copyright Google LLC All Rights Reserved.
909
- *
910
- * Use of this source code is governed by an MIT-style license that can be
911
- * found in the LICENSE file at https://angular.io/license
851
+ * @module
852
+ * @description
853
+ * Entry point for all public APIs of the upgrade package.
912
854
  */
913
855
  /**
914
856
  * @publicApi
915
857
  */
916
- const VERSION = new Version('15.1.0-next.3');
858
+ const VERSION = new Version('15.1.0');
917
859
 
918
- /**
919
- * @license
920
- * Copyright Google LLC All Rights Reserved.
921
- *
922
- * Use of this source code is governed by an MIT-style license that can be
923
- * found in the LICENSE file at https://angular.io/license
924
- */
925
860
  // We have to do a little dance to get the ng1 injector into the module injector.
926
861
  // We store the ng1 injector so that the provider in the module injector can access it
927
862
  // Then we "get" the ng1 injector from the module injector, which triggers the provider to read
@@ -958,13 +893,6 @@ const angular1Providers = [
958
893
  { provide: '$parse', useFactory: parseFactory, deps: ['$injector'] }
959
894
  ];
960
895
 
961
- /**
962
- * @license
963
- * Copyright Google LLC All Rights Reserved.
964
- *
965
- * Use of this source code is governed by an MIT-style license that can be
966
- * found in the LICENSE file at https://angular.io/license
967
- */
968
896
  class NgAdapterInjector {
969
897
  constructor(modInjector) {
970
898
  this.modInjector = modInjector;
@@ -981,13 +909,6 @@ class NgAdapterInjector {
981
909
  }
982
910
  }
983
911
 
984
- /**
985
- * @license
986
- * Copyright Google LLC All Rights Reserved.
987
- *
988
- * Use of this source code is governed by an MIT-style license that can be
989
- * found in the LICENSE file at https://angular.io/license
990
- */
991
912
  let moduleUid = 0;
992
913
  /**
993
914
  * @description
@@ -1164,13 +1085,6 @@ function identity(x) {
1164
1085
  return x;
1165
1086
  }
1166
1087
 
1167
- /**
1168
- * @license
1169
- * Copyright Google LLC All Rights Reserved.
1170
- *
1171
- * Use of this source code is governed by an MIT-style license that can be
1172
- * found in the LICENSE file at https://angular.io/license
1173
- */
1174
1088
  // Constants
1175
1089
  const REQUIRE_PREFIX_RE = /^(\^\^?)?(\?)?(\^\^?)?/;
1176
1090
  // Classes
@@ -1405,13 +1319,6 @@ function notSupported(name, feature) {
1405
1319
  throw new Error(`Upgraded directive '${name}' contains unsupported feature: '${feature}'.`);
1406
1320
  }
1407
1321
 
1408
- /**
1409
- * @license
1410
- * Copyright Google LLC All Rights Reserved.
1411
- *
1412
- * Use of this source code is governed by an MIT-style license that can be
1413
- * found in the LICENSE file at https://angular.io/license
1414
- */
1415
1322
  const NOT_SUPPORTED = 'NOT_SUPPORTED';
1416
1323
  const INITIAL_VALUE = {
1417
1324
  __UNINITIALIZED__: true
@@ -1634,19 +1541,12 @@ class UpgradeComponent {
1634
1541
  }
1635
1542
  }
1636
1543
  }
1637
- UpgradeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.3", ngImport: i0, type: UpgradeComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
1638
- UpgradeComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-next.3", type: UpgradeComponent, usesOnChanges: true, ngImport: i0 });
1639
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.3", ngImport: i0, type: UpgradeComponent, decorators: [{
1544
+ UpgradeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: UpgradeComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
1545
+ UpgradeComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0", type: UpgradeComponent, usesOnChanges: true, ngImport: i0 });
1546
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: UpgradeComponent, decorators: [{
1640
1547
  type: Directive
1641
1548
  }], ctorParameters: function () { return [{ type: undefined }, { type: i0.ElementRef }, { type: i0.Injector }]; } });
1642
1549
 
1643
- /**
1644
- * @license
1645
- * Copyright Google LLC All Rights Reserved.
1646
- *
1647
- * Use of this source code is governed by an MIT-style license that can be
1648
- * found in the LICENSE file at https://angular.io/license
1649
- */
1650
1550
  /**
1651
1551
  * @description
1652
1552
  *
@@ -1917,30 +1817,17 @@ class UpgradeModule {
1917
1817
  return returnValue;
1918
1818
  }
1919
1819
  }
1920
- UpgradeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.3", ngImport: i0, type: UpgradeModule, deps: [{ token: i0.Injector }, { token: i0.NgZone }, { token: i0.PlatformRef }], target: i0.ɵɵFactoryTarget.NgModule });
1921
- UpgradeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-next.3", ngImport: i0, type: UpgradeModule });
1922
- UpgradeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-next.3", ngImport: i0, type: UpgradeModule, providers: [angular1Providers] });
1923
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.3", ngImport: i0, type: UpgradeModule, decorators: [{
1820
+ UpgradeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: UpgradeModule, deps: [{ token: i0.Injector }, { token: i0.NgZone }, { token: i0.PlatformRef }], target: i0.ɵɵFactoryTarget.NgModule });
1821
+ UpgradeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: UpgradeModule });
1822
+ UpgradeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: UpgradeModule, providers: [angular1Providers] });
1823
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: UpgradeModule, decorators: [{
1924
1824
  type: NgModule,
1925
1825
  args: [{ providers: [angular1Providers] }]
1926
1826
  }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i0.NgZone }, { type: i0.PlatformRef }]; } });
1927
1827
 
1928
- /**
1929
- * @license
1930
- * Copyright Google LLC All Rights Reserved.
1931
- *
1932
- * Use of this source code is governed by an MIT-style license that can be
1933
- * found in the LICENSE file at https://angular.io/license
1934
- */
1935
1828
  // This file only re-exports items to appear in the public api. Keep it that way.
1936
1829
 
1937
- /**
1938
- * @license
1939
- * Copyright Google LLC All Rights Reserved.
1940
- *
1941
- * Use of this source code is governed by an MIT-style license that can be
1942
- * found in the LICENSE file at https://angular.io/license
1943
- */
1830
+ // This file is not used to build this module. It is only used during editing
1944
1831
 
1945
1832
  /**
1946
1833
  * Generated bundle index. Do not edit.