@angular/core 19.1.0-next.4 → 19.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.
Files changed (40) hide show
  1. package/LICENSE +1 -1
  2. package/fesm2022/core.mjs +85 -91
  3. package/fesm2022/core.mjs.map +1 -1
  4. package/fesm2022/primitives/event-dispatch.mjs +1 -24
  5. package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
  6. package/fesm2022/primitives/signals.mjs +1 -1
  7. package/fesm2022/rxjs-interop.mjs +1 -1
  8. package/fesm2022/rxjs-interop.mjs.map +1 -1
  9. package/fesm2022/testing.mjs +4 -4
  10. package/index.d.ts +41 -36
  11. package/package.json +1 -1
  12. package/primitives/event-dispatch/index.d.ts +1 -1
  13. package/primitives/signals/index.d.ts +1 -1
  14. package/rxjs-interop/index.d.ts +1 -1
  15. package/schematics/bundles/apply_import_manager-5082ccea.js +732 -0
  16. package/schematics/bundles/{checker-884633eb.js → checker-aa999c96.js} +50 -25
  17. package/schematics/bundles/cleanup-unused-imports.js +295 -0
  18. package/schematics/bundles/{compiler_host-22f6513d.js → compiler_host-f0b570c8.js} +2 -2
  19. package/schematics/bundles/control-flow-migration.js +3 -3
  20. package/schematics/bundles/explicit-standalone-flag.js +5 -5
  21. package/schematics/bundles/{imports-abe29092.js → imports-31a38653.js} +1 -1
  22. package/schematics/bundles/index-02a11f43.js +30 -0
  23. package/schematics/bundles/{combine_units-4a95b1b9.js → index-15b61bae.js} +10 -723
  24. package/schematics/bundles/inject-migration.js +6 -6
  25. package/schematics/bundles/{leading_space-d190b83b.js → leading_space-6e7a8ec6.js} +1 -1
  26. package/schematics/bundles/{migrate_ts_type_references-4b11f3f2.js → migrate_ts_type_references-042ca765.js} +30 -29
  27. package/schematics/bundles/{nodes-a9f0b985.js → nodes-88c2157f.js} +2 -2
  28. package/schematics/bundles/output-migration.js +27 -26
  29. package/schematics/bundles/pending-tasks.js +5 -5
  30. package/schematics/bundles/{program-094352ba.js → program-393ca8f3.js} +106 -46
  31. package/schematics/bundles/{project_tsconfig_paths-e9ccccbf.js → project_tsconfig_paths-6c9cde78.js} +1 -1
  32. package/schematics/bundles/provide-initializer.js +5 -5
  33. package/schematics/bundles/route-lazy-loading.js +4 -4
  34. package/schematics/bundles/signal-input-migration.js +33 -32
  35. package/schematics/bundles/signal-queries-migration.js +56 -49
  36. package/schematics/bundles/signals.js +8 -7
  37. package/schematics/bundles/standalone-migration.js +12 -28
  38. package/schematics/collection.json +5 -0
  39. package/schematics/ng-generate/cleanup-unused-imports/schema.json +7 -0
  40. package/testing/index.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-next.4
2
+ * @license Angular v19.1.0
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -498,11 +498,9 @@ function removeEventListener(element, info) {
498
498
  const options = typeof info.passive === 'boolean' ? { capture: info.capture } : info.capture;
499
499
  element.removeEventListener(info.eventType, info.handler, options);
500
500
  // `detachEvent` is an old DOM API.
501
- // tslint:disable-next-line:no-any
502
501
  }
503
502
  else if (element.detachEvent) {
504
503
  // `detachEvent` is an old DOM API.
505
- // tslint:disable-next-line:no-any
506
504
  element.detachEvent(`on${info.eventType}`, info.handler);
507
505
  }
508
506
  }
@@ -549,13 +547,10 @@ let isMac = typeof navigator !== 'undefined' && /Macintosh/.test(navigator.userA
549
547
  function isMiddleClick(e) {
550
548
  return (
551
549
  // `which` is an old DOM API.
552
- // tslint:disable-next-line:no-any
553
550
  e.which === 2 ||
554
551
  // `which` is an old DOM API.
555
- // tslint:disable-next-line:no-any
556
552
  (e.which == null &&
557
553
  // `button` is an old DOM API.
558
- // tslint:disable-next-line:no-any
559
554
  e.button === 4) // middle click for IE
560
555
  );
561
556
  }
@@ -569,14 +564,11 @@ function isMiddleClick(e) {
569
564
  function isModifiedClickEvent(e) {
570
565
  return (
571
566
  // `metaKey` is an old DOM API.
572
- // tslint:disable-next-line:no-any
573
567
  (isMac && e.metaKey) ||
574
568
  // `ctrlKey` is an old DOM API.
575
- // tslint:disable-next-line:no-any
576
569
  (!isMac && e.ctrlKey) ||
577
570
  isMiddleClick(e) ||
578
571
  // `shiftKey` is an old DOM API.
579
- // tslint:disable-next-line:no-any
580
572
  e.shiftKey);
581
573
  }
582
574
  /** Whether we are on WebKit (e.g., Chrome). */
@@ -607,7 +599,6 @@ function isValidActionKeyTarget(el) {
607
599
  return false;
608
600
  }
609
601
  // `isContentEditable` is an old DOM API.
610
- // tslint:disable-next-line:no-any
611
602
  if (el.isContentEditable) {
612
603
  return false;
613
604
  }
@@ -621,16 +612,12 @@ function isValidActionKeyTarget(el) {
621
612
  function hasModifierKey(e) {
622
613
  return (
623
614
  // `ctrlKey` is an old DOM API.
624
- // tslint:disable-next-line:no-any
625
615
  e.ctrlKey ||
626
616
  // `shiftKey` is an old DOM API.
627
- // tslint:disable-next-line:no-any
628
617
  e.shiftKey ||
629
618
  // `altKey` is an old DOM API.
630
- // tslint:disable-next-line:no-any
631
619
  e.altKey ||
632
620
  // `metaKey` is an old DOM API.
633
- // tslint:disable-next-line:no-any
634
621
  e.metaKey);
635
622
  }
636
623
  /**
@@ -681,10 +668,8 @@ function shouldCallPreventDefaultOnNativeHtmlControl(e) {
681
668
  function isActionKeyEvent(e) {
682
669
  let key =
683
670
  // `which` is an old DOM API.
684
- // tslint:disable-next-line:no-any
685
671
  e.which ||
686
672
  // `keyCode` is an old DOM API.
687
- // tslint:disable-next-line:no-any
688
673
  e.keyCode;
689
674
  if (!key && e.key) {
690
675
  key = ACTION_KEY_TO_KEYCODE[e.key];
@@ -750,10 +735,8 @@ const NATIVELY_FOCUSABLE_ELEMENTS = {
750
735
  function isSpaceKeyEvent(e) {
751
736
  const key =
752
737
  // `which` is an old DOM API.
753
- // tslint:disable-next-line:no-any
754
738
  e.which ||
755
739
  // `keyCode` is an old DOM API.
756
- // tslint:disable-next-line:no-any
757
740
  e.keyCode;
758
741
  const el = getTarget(e);
759
742
  const elementName = (el.type || el.tagName).toUpperCase();
@@ -779,7 +762,6 @@ function isSpaceKeyEvent(e) {
779
762
  */
780
763
  function isMouseSpecialEvent(e, type, element) {
781
764
  // `relatedTarget` is an old DOM API.
782
- // tslint:disable-next-line:no-any
783
765
  const related = e.relatedTarget;
784
766
  return (((e.type === EventType.MOUSEOVER && type === EventType.MOUSEENTER) ||
785
767
  (e.type === EventType.MOUSEOUT && type === EventType.MOUSELEAVE) ||
@@ -807,7 +789,6 @@ function createMouseSpecialEvent(e, target) {
807
789
  // this event into a pseudo-real mouseenter/mouseleave event by adjusting
808
790
  // its type.
809
791
  //
810
- // tslint:disable-next-line:no-any
811
792
  const copy = {};
812
793
  for (const property in e) {
813
794
  if (property === 'srcElement' || property === 'target') {
@@ -815,14 +796,12 @@ function createMouseSpecialEvent(e, target) {
815
796
  }
816
797
  const key = property;
817
798
  // Making a copy requires iterating through all properties of `Event`.
818
- // tslint:disable-next-line:no-dict-access-on-struct-type
819
799
  const value = e[key];
820
800
  if (typeof value === 'function') {
821
801
  continue;
822
802
  }
823
803
  // Value should be the expected type, but the value of `key` is not known
824
804
  // statically.
825
- // tslint:disable-next-line:no-any
826
805
  copy[key] = value;
827
806
  }
828
807
  if (e.type === EventType.MOUSEOVER) {
@@ -884,14 +863,12 @@ function recreateTouchEventAsClick(event) {
884
863
  }
885
864
  const key = property;
886
865
  // Making a copy requires iterating through all properties of `TouchEvent`.
887
- // tslint:disable-next-line:no-dict-access-on-struct-type
888
866
  const value = event[key];
889
867
  if (typeof value === 'function') {
890
868
  continue;
891
869
  }
892
870
  // Value should be the expected type, but the value of `key` is not known
893
871
  // statically.
894
- // tslint:disable-next-line:no-any
895
872
  click[key] = value;
896
873
  }
897
874
  // Ensure that the event has the most recent timestamp. This timestamp