@angular/core 18.0.0-next.3 → 18.0.0-next.5

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 (76) hide show
  1. package/esm2022/rxjs-interop/src/take_until_destroyed.mjs +2 -2
  2. package/esm2022/rxjs-interop/src/to_observable.mjs +1 -1
  3. package/esm2022/rxjs-interop/src/to_signal.mjs +2 -2
  4. package/esm2022/src/application/application_ref.mjs +4 -2
  5. package/esm2022/src/application/application_tokens.mjs +1 -1
  6. package/esm2022/src/change_detection/change_detector_ref.mjs +3 -3
  7. package/esm2022/src/change_detection/scheduling/flags.mjs +10 -0
  8. package/esm2022/src/change_detection/scheduling/ng_zone_scheduling.mjs +28 -33
  9. package/esm2022/src/change_detection/scheduling/zoneless_scheduling.mjs +1 -1
  10. package/esm2022/src/change_detection/scheduling/zoneless_scheduling_impl.mjs +57 -9
  11. package/esm2022/src/core.mjs +2 -1
  12. package/esm2022/src/core_private_export.mjs +1 -3
  13. package/esm2022/src/core_render3_private_export.mjs +1 -2
  14. package/esm2022/src/debug/debug_node.mjs +5 -5
  15. package/esm2022/src/di/contextual.mjs +3 -3
  16. package/esm2022/src/di/injectable.mjs +1 -1
  17. package/esm2022/src/di/injector.mjs +4 -4
  18. package/esm2022/src/di/injector_compatibility.mjs +3 -3
  19. package/esm2022/src/di/interface/provider.mjs +1 -1
  20. package/esm2022/src/di/metadata.mjs +1 -1
  21. package/esm2022/src/di/provider_collection.mjs +2 -2
  22. package/esm2022/src/event_emitter.mjs +1 -1
  23. package/esm2022/src/hydration/api.mjs +2 -3
  24. package/esm2022/src/i18n/locale_data_api.mjs +4 -4
  25. package/esm2022/src/i18n/tokens.mjs +6 -6
  26. package/esm2022/src/interface/lifecycle_hooks.mjs +1 -1
  27. package/esm2022/src/linker/compiler.mjs +1 -7
  28. package/esm2022/src/linker/ng_module_factory.mjs +2 -3
  29. package/esm2022/src/linker/template_ref.mjs +1 -2
  30. package/esm2022/src/metadata/directives.mjs +1 -62
  31. package/esm2022/src/metadata/do_bootstrap.mjs +1 -1
  32. package/esm2022/src/metadata/ng_module.mjs +1 -1
  33. package/esm2022/src/platform/platform_ref.mjs +3 -3
  34. package/esm2022/src/render3/component.mjs +3 -4
  35. package/esm2022/src/render3/component_ref.mjs +1 -1
  36. package/esm2022/src/render3/definition.mjs +2 -2
  37. package/esm2022/src/render3/instructions/change_detection.mjs +3 -6
  38. package/esm2022/src/render3/instructions/control_flow.mjs +6 -6
  39. package/esm2022/src/render3/jit/environment.mjs +1 -3
  40. package/esm2022/src/render3/ng_module_ref.mjs +1 -4
  41. package/esm2022/src/render3/node_manipulation.mjs +19 -15
  42. package/esm2022/src/render3/reactivity/effect.mjs +1 -1
  43. package/esm2022/src/render3/view_ref.mjs +14 -4
  44. package/esm2022/src/testability/testability.mjs +2 -30
  45. package/esm2022/src/util/callback_scheduler.mjs +3 -3
  46. package/esm2022/src/version.mjs +1 -1
  47. package/esm2022/testing/src/component_fixture.mjs +7 -12
  48. package/esm2022/testing/src/logger.mjs +3 -3
  49. package/esm2022/testing/src/test_bed_common.mjs +1 -6
  50. package/esm2022/testing/src/testing.mjs +1 -2
  51. package/event-dispatch-contract.min.js +1 -0
  52. package/fesm2022/core.mjs +155 -201
  53. package/fesm2022/core.mjs.map +1 -1
  54. package/fesm2022/primitives/signals.mjs +2 -2
  55. package/fesm2022/rxjs-interop.mjs +4 -4
  56. package/fesm2022/rxjs-interop.mjs.map +1 -1
  57. package/fesm2022/testing.mjs +35 -45
  58. package/fesm2022/testing.mjs.map +1 -1
  59. package/index.d.ts +215 -206
  60. package/package.json +4 -1
  61. package/primitives/signals/index.d.ts +2 -2
  62. package/rxjs-interop/index.d.ts +5 -5
  63. package/schematics/migrations/block-template-entities/bundle.js +188 -249
  64. package/schematics/migrations/block-template-entities/bundle.js.map +3 -3
  65. package/schematics/migrations/compiler-options/bundle.js +13 -13
  66. package/schematics/migrations/compiler-options/bundle.js.map +1 -1
  67. package/schematics/migrations/invalid-two-way-bindings/bundle.js +194 -255
  68. package/schematics/migrations/invalid-two-way-bindings/bundle.js.map +3 -3
  69. package/schematics/migrations/transfer-state/bundle.js +13 -13
  70. package/schematics/migrations/transfer-state/bundle.js.map +1 -1
  71. package/schematics/ng-generate/control-flow-migration/bundle.js +197 -259
  72. package/schematics/ng-generate/control-flow-migration/bundle.js.map +3 -3
  73. package/schematics/ng-generate/standalone-migration/bundle.js +517 -556
  74. package/schematics/ng-generate/standalone-migration/bundle.js.map +3 -3
  75. package/testing/index.d.ts +2 -8
  76. package/esm2022/testing/src/private_export.mjs +0 -9
@@ -0,0 +1 @@
1
+ const t={t:"auxclick",CHANGE:"change",CLICK:"click",i:"clickmod",o:"clickonly",DBLCLICK:"dblclick",FOCUS:"focus",u:"focusin",BLUR:"blur",h:"focusout",T:"submit",KEYDOWN:"keydown",KEYPRESS:"keypress",KEYUP:"keyup",MOUSEUP:"mouseup",MOUSEDOWN:"mousedown",MOUSEOVER:"mouseover",MOUSEOUT:"mouseout",O:"mouseenter",l:"mouseleave",MOUSEMOVE:"mousemove",p:"pointerup",I:"pointerdown",v:"pointerover",A:"pointerout",U:"pointerenter",R:"pointerleave",N:"pointermove",C:"pointercancel",S:"gotpointercapture",L:"lostpointercapture",ERROR:"error",M:"load",P:"unload",m:"touchstart",B:"touchend",D:"touchmove",k:"input",K:"scroll",G:"toggle",CUSTOM:"_custom"};var n;function i(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function e(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function o(t){let n=t.target;return!n.getAttribute&&n.parentNode&&(n=n.parentNode),n}!function(t){t[t.X=3]="MAC_ENTER",t[t.H=13]="ENTER",t[t._=32]="SPACE"}(n||(n={}));let r="undefined"!=typeof navigator&&/Macintosh/.test(navigator.userAgent);const s="undefined"!=typeof navigator&&!/Opera/.test(navigator.userAgent)&&/WebKit/.test(navigator.userAgent);"undefined"!=typeof navigator&&(/MSIE/.test(navigator.userAgent)||/Trident/.test(navigator.userAgent));const c="undefined"!=typeof navigator&&!/Opera|WebKit/.test(navigator.userAgent)&&/Gecko/.test(navigator.product);const u={W:1,k:1,F:1,SELECT:1,V:1};const f={j:n.H,Y:n._},E={W:n.H,V:0,$:n._,q:n.H,J:0,Z:n.H,tt:n.H,nt:n.H,it:0,et:0,ot:0,rt:0,st:0,ct:0,ut:n._,ft:n._,Et:0,T:0,ht:n._,Tt:0,Ot:n.H,lt:n.H};function a(t){return(t.getAttribute("type")||t.tagName).toUpperCase()in T}function h(t){return(t.getAttribute("type")||t.tagName).toUpperCase()in O}const T={$:!0,J:!0,ct:!0,ut:!0},O={COLOR:!0,dt:!0,It:!0,vt:!0,At:!0,Ut:!0,Rt:!0,Nt:!0,Ct:!0,St:!0,Lt:!0,Mt:!0,F:!0,Pt:!0,URL:!0,gt:!0},l={W:!0,yt:!0,V:!0,Bt:!0,Dt:!0,k:!0,tt:!0,it:!0,kt:!0,ct:!0,wt:!0,SELECT:!0,F:!0},d="undefined"!=typeof navigator&&/iPhone|iPad|iPod/.test(navigator.userAgent);class p{constructor(t){this.element=t,this.Kt=[]}addEventListener(n,i){d&&(this.element.style.cursor="pointer"),this.Kt.push(function(n,i,e){let o=!1;return i!==t.FOCUS&&i!==t.BLUR&&i!==t.ERROR&&i!==t.M&&i!==t.G||(o=!0),n.addEventListener(i,e,o),{Gt:i,Xt:e,capture:o}}(this.element,n,i(this.element)))}Ht(){for(let i=0;i<this.Kt.length;i++)n=this.Kt[i],(t=this.element).removeEventListener?t.removeEventListener(n.Gt,n.Xt,n.capture):t.detachEvent&&t.detachEvent(`on${n.Gt}`,n.Xt);var t,n;this.Kt=[]}}function I(t){return t.Gt}function v(t,n){t.Gt=n}function A(t){return t.event}function U(t){return t.targetElement}function R(t){return t._t}function N(t){return t.bt}function C(t,n,i){t.bt=[n,i]}function S(t){return t[1]}function L(t){return t.Wt}function M(t){return{Gt:t.Gt,event:t.event,targetElement:t.targetElement,_t:t._t,bt:t.bt,timeStamp:t.timeStamp,Ft:t.Ft,Wt:t.Wt}}function P(i){(function(i){let e=i.which||i.keyCode;if(!e&&i.key&&(e=f[i.key]),s&&e===n.X&&(e=n.H),e!==n.H&&e!==n._)return!1;const r=o(i);if(i.type!==t.KEYDOWN||!function(t){return"getAttribute"in t&&!h(t)&&!function(t){return"BUTTON"===t.tagName.toUpperCase()||!!t.type&&"FILE"===t.type.toUpperCase()}(t)&&!t.isContentEditable}(r)||function(t){return t.ctrlKey||t.shiftKey||t.altKey||t.metaKey}(i))return!1;if(a(r)&&e===n._)return!1;if(!function(t){return(t.tagName in u||function(t){const n=t.getAttributeNode("tabindex");return null!=n&&n.specified}(t))&&!t.disabled}(r))return!1;const c=(r.getAttribute("role")||r.type||r.tagName).toUpperCase(),T=E[c]%e==0,O=!(c in E)&&e===n.H,l="INPUT"!==r.tagName.toUpperCase()||!!r.type;return(T||O)&&l})(A(i))&&(function(t,n){t.Wt=!0}(i),v(i,t.CLICK))}function m(t){L(t)&&(function(t){const i=t.which||t.keyCode,e=o(t),r=(e.type||e.tagName).toUpperCase();return i===n._&&"CHECKBOX"!==r}(A(t))||function(t){const n=o(t),i=n.tagName.toUpperCase(),e=(n.getAttribute("role")||"").toUpperCase();return"BUTTON"===i||"BUTTON"===e||!!function(t){return t.tagName.toUpperCase()in l}(n)&&"A"!==i&&"SELECT"!==i&&!a(n)&&!h(n)}(A(t)))&&e(A(t))}function g(n,i,e){N(i)||I(i)!==t.CLICK||L(i)||void 0===e[t.o]||(v(i,t.o),C(i,e[t.o],n))}var y,B,D;!function(t){t.Vt="maybe_click",t.jt="a11ysgd",t.Yt="a11ysc"}(y||(y={})),function(t){t.xt="jsaction",t.$t="jsnamespace",t.qt="oi",t.zt="ved",t.Jt="vet",t.Qt="jsinstance",t.Zt="jstrack"}(B||(B={})),function(t){t.xt="__jsaction",t.$t="__jsnamespace",t.qt="__oi",t.tn="__owner"}(D||(D={}));const k={};function w(t,n){t[D.xt]=n}const K=".",G=":",X=t.CLICK,H={},_=/\s*;\s*/;class b{static{this.nn=!1}static{this.en=!0}static{this.on=false}static{this.rn=!1}static{this.sn=!1}static{this.cn=!0}constructor(n,i=!1){this.stopPropagation=i,this.un={},this.fn={},this.En=null,this.an=[],this.hn=!1,this.Tn=b.on,this.On=void 0,this.ln=void 0,this.dn=void 0,this.pn=n,b.nn&&this.In(t.CUSTOM),b.rn&&this.vn()}An(t,n,i){const e=function(t,n,i,e,o,r,s,c){return{Gt:t,event:n,targetElement:i,_t:e,timeStamp:Date.now(),bt:void 0,Ft:void 0,Wt:void 0}}(t,n,n.target,i);this.Un(e)}Un(n,o=!0){if(this.En||(function(t,n){t.Ft=!0}(n),this.an?.push(n)),b.nn&&I(n)===t.CUSTOM){const t=A(n).detail;if(!t||!t.Rn)return;v(n,t.Rn)}if(this.Nn(n),this.En&&!A(n)[y.jt]){const i=M(n);I(i)===t.o&&v(i,t.CLICK),this.En(i,!0)}const r=N(n);if(!r&&!function(t){return b.on&&I(t)===y.Vt}(n))return;let s=!1;if(this.stopPropagation&&I(n)!==y.Vt?(!c||"INPUT"!==U(n).tagName&&"TEXTAREA"!==U(n).tagName||I(n)!==t.FOCUS)&&i(A(n)):this.stopPropagation&&I(n)===y.Vt&&(s=!0),this.En){r&&function(n,i){return"A"===n.tagName&&(I(i)===t.CLICK||I(i)===t.i)}(S(r),n)&&e(A(n));const c=this.En(n);if(c&&o)return void this.Un(c,!1);s&&i(A(n))}}Nn(n){var i;I(n)===t.CLICK&&(i=A(n),r&&i.metaKey||!r&&i.ctrlKey||function(t){return 2===t.which||null==t.which&&4===t.button}(i)||i.shiftKey)?v(n,t.i):this.hn?this.On(n):b.on&&I(n)===t.KEYDOWN&&!A(n)[y.Yt]&&v(n,y.Vt);let e=U(n);for(;e&&e!==R(n)&&(this.Cn(e,n),!N(n));)e=e[D.tn]?e[D.tn]:"#document-fragment"!==e.parentNode?.nodeName?e.parentNode:e.parentNode?.host??null;const o=N(n);if(o&&(this.hn&&this.ln(n),b.sn&&(I(n)===t.O||I(n)===t.l||I(n)===t.U||I(n)===t.R)))if(function(n,i,e){const o=n.relatedTarget;return(n.type===t.MOUSEOVER&&i===t.O||n.type===t.MOUSEOUT&&i===t.l||n.type===t.v&&i===t.U||n.type===t.A&&i===t.R)&&(!o||o!==e&&!function(t,n){if(null===n)return!1;if("contains"in t&&1===n.nodeType)return t.contains(n);if("compareDocumentPosition"in t)return t===n||Boolean(16&t.compareDocumentPosition(n));for(;n&&t!==n;)n=n.parentNode;return n===t}(e,o))}(A(n),I(n),S(o))){const i=function(n,i){const e={};for(const t in n){if("srcElement"===t||"target"===t)continue;const i=n[t];"function"!=typeof i&&(e[t]=i)}return e.type=n.type===t.MOUSEOVER?t.O:n.type===t.MOUSEOUT?t.l:n.type===t.v?t.U:t.R,e.target=e.srcElement=i,e.bubbles=!1,e}(A(n),S(o));!function(t,n){t.event=n}(n,i),function(t,n){t.targetElement=n}(n,S(o))}else!function(t){t.bt=void 0}(n)}Cn(n,i){const e=function(t,n){let i=t[D.xt];if(!i){const e=V(t,B.xt);if(e){if(i=k[e],!i){i={};const t=e.split(_);for(let n=0;n<t.length;n++){const e=t[n];if(!e)continue;const o=e.indexOf(G),r=-1!==o,s=r?j(e.substr(0,o)):X,c=r?j(e.substr(o+1)):e;i[s]=c}k[e]=i}if(b.cn){const e=i;i={};for(const o in e)i[o]=W(e[o],t,n)}w(t,i)}else i=H,w(t,i)}return i}(n,R(i)),o=e[I(i)];void 0!==o&&C(i,o,n),this.hn&&this.dn(n,i,e),b.on&&(I(i)===y.Vt&&void 0!==e[t.CLICK]?C(i,e[t.CLICK],n):g(n,i,e))}In(n,i){if(n in this.un||!this.pn)return;if(!b.sn&&(n===t.O||n===t.l||n===t.U||n===t.R))return;const e=(t,n,i)=>{this.An(t,n,i)};this.un[n]=e;const o=function(n){return n===t.O?t.MOUSEOVER:n===t.l?t.MOUSEOUT:n===t.U?t.v:n===t.R?t.A:n}(i||n);if(o!==n){const t=this.fn[o]||[];t.push(n),this.fn[o]=t}this.pn.addEventListener(o,t=>i=>{e(n,i,t)}),this.Tn&&n===t.CLICK&&this.In(t.KEYDOWN)}Sn(){const t=window._ejsa;if(!t)return;const n=t.Ln;for(let t=0;t<n.length;t++){const i=n[t],e=this.Mn(i.Gt);for(let t=0;t<e.length;t++){const n=M(i);v(n,e[t]),this.Un(n)}}const i=t.Pn,e=t.mn;for(let t=0;t<i.length;t++)window.document.documentElement.removeEventListener(i[t],e);delete window._ejsa}Mn(t){const n=[];return this.un[t]&&n.push(t),this.fn[t]&&n.push(...this.fn[t]),n}Xt(t){return this.un[t]}Ht(){this.pn.Ht(),this.pn=null,this.un={},this.fn={},this.En=null,this.an=[]}gn(t,n){this.yn(t,n)}yn(t,n){if(this.En=t,this.an?.length){for(let t=0;t<this.an.length;t++)this.Un(this.an[t]);this.an=null}}vn(){this.Bn(P,m,g)}Dn(){this.Tn=!0,this.kn=this.Bn.bind(this)}Bn(t,n,i){this.Tn=!0,this.hn=!0,this.On=t,this.ln=n,this.dn=i}}function W(t,n,i){if(b.cn){if(function(t){return t.indexOf(K)>=0}(t))return t;let e=n;for(;e;){const n=F(e);if(n)return n+K+t;if(e===i)break;e=e.parentNode}}return t}function F(t){let n=function(t){return t[D.$t]}(t);return void 0===n&&(n=V(t,B.$t),function(t,n){t[D.$t]=n}(t,n)),n}function V(t,n){let i=null;return"getAttribute"in t&&(i=t.getAttribute(n)),i}function j(t){return"function"==typeof String.prototype.trim?t.trim():t.replace(/^\s+/,"").replace(/\s+$/,"")}window.__jsaction_bootstrap=function(t,n,i,e){const o=new p(n),r=window;r[t]||(r[t]={});const s=new b(o,!1);r[t][i]=s;for(const t of e)s.In(t)};