ember-source 7.2.0-alpha.4 → 7.2.0-beta.1
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/blueprints/-addon-import.js +4 -6
- package/blueprints/-utils.js +6 -9
- package/build-metadata.json +3 -3
- package/dist/dev/packages/@ember/-internals/browser-environment/index.js +1 -1
- package/dist/dev/packages/@ember/-internals/glimmer/index.js +11 -11
- package/dist/dev/packages/@ember/-internals/metal/index.js +18 -18
- package/dist/dev/packages/@ember/-internals/routing/index.js +3 -3
- package/dist/dev/packages/@ember/-internals/runtime/index.js +1 -1
- package/dist/dev/packages/@ember/-internals/runtime/lib/ext/rsvp.js +1 -1
- package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/-proxy.js +7 -7
- package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/action_handler.js +1 -1
- package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +3 -3
- package/dist/dev/packages/@ember/-internals/utils/index.js +2 -2
- package/dist/dev/packages/@ember/-internals/views/lib/mixins/action_support.js +1 -1
- package/dist/dev/packages/@ember/-internals/views/lib/system/event_dispatcher.js +2 -2
- package/dist/dev/packages/@ember/-internals/views/lib/system/utils.js +1 -1
- package/dist/dev/packages/@ember/-internals/views/lib/views/core_view.js +1 -1
- package/dist/dev/packages/@ember/application/index.js +6 -7
- package/dist/dev/packages/@ember/application/instance.js +4 -4
- package/dist/dev/packages/@ember/application/namespace.js +3 -3
- package/dist/dev/packages/@ember/array/index.js +10 -64
- package/dist/dev/packages/@ember/array/lib/is-array.js +71 -0
- package/dist/dev/packages/@ember/array/proxy.js +8 -8
- package/dist/dev/packages/@ember/component/helper.js +1 -1
- package/dist/dev/packages/@ember/component/index.js +21 -15
- package/dist/dev/packages/@ember/component/template-only.js +1 -1
- package/dist/dev/packages/@ember/controller/index.js +3 -3
- package/dist/dev/packages/@ember/debug/data-adapter.js +3 -3
- package/dist/dev/packages/@ember/debug/index.js +1 -1
- package/dist/dev/packages/@ember/engine/index.js +5 -5
- package/dist/dev/packages/@ember/engine/instance.js +2 -2
- package/dist/dev/packages/@ember/helper/index.js +8 -27
- package/dist/dev/packages/@ember/modifier/index.js +2 -2
- package/dist/dev/packages/@ember/modifier/on.js +1 -1
- package/dist/dev/packages/@ember/object/-internals.js +2 -2
- package/dist/dev/packages/@ember/object/compat.js +3 -3
- package/dist/dev/packages/@ember/object/computed.js +2 -2
- package/dist/dev/packages/@ember/object/core.js +7 -7
- package/dist/dev/packages/@ember/object/evented.js +2 -2
- package/dist/dev/packages/@ember/object/events.js +1 -1
- package/dist/dev/packages/@ember/object/index.js +30 -25
- package/dist/dev/packages/@ember/object/internals.js +1 -1
- package/dist/dev/packages/@ember/object/lib/computed/computed_macros.js +5 -5
- package/dist/dev/packages/@ember/object/lib/computed/reduce_computed_macros.js +3 -3
- package/dist/dev/packages/@ember/object/mixin.js +6 -6
- package/dist/dev/packages/@ember/object/observable.js +7 -7
- package/dist/dev/packages/@ember/object/observers.js +1 -1
- package/dist/dev/packages/@ember/object/promise-proxy-mixin.js +3 -3
- package/dist/dev/packages/@ember/reactive/collections.js +153 -153
- package/dist/dev/packages/@ember/renderer/index.js +1 -1
- package/dist/dev/packages/@ember/routing/-internals.js +3 -3
- package/dist/dev/packages/@ember/routing/index.js +12 -8
- package/dist/dev/packages/@ember/routing/lib/generate_controller.js +2 -3
- package/dist/dev/packages/@ember/routing/lib/routing-service.js +5 -5
- package/dist/dev/packages/@ember/routing/lib/utils.js +3 -3
- package/dist/dev/packages/@ember/routing/route.js +12 -12
- package/dist/dev/packages/@ember/routing/router-service.js +25 -18
- package/dist/dev/packages/@ember/routing/router.js +5 -5
- package/dist/dev/packages/@ember/runloop/index.js +1 -1
- package/dist/dev/packages/@ember/service/index.js +1 -1
- package/dist/dev/packages/@ember/template-compiler/lib/compile-options.js +3 -3
- package/dist/dev/packages/@ember/template-compiler/lib/template.js +2 -2
- package/dist/dev/packages/@ember/template-factory/index.js +1 -1
- package/dist/dev/packages/@ember/utils/lib/is_empty.js +1 -1
- package/dist/dev/packages/@glimmer/encoder/index.js +1 -1
- package/dist/dev/packages/@glimmer/manager/index.js +4 -4
- package/dist/dev/packages/@glimmer/node/index.js +3 -3
- package/dist/dev/packages/@glimmer/opcode-compiler/index.js +2 -2
- package/dist/dev/packages/@glimmer/program/index.js +10 -10
- package/dist/dev/packages/@glimmer/reference/index.js +5 -5
- package/dist/dev/packages/@glimmer/runtime/index.js +13 -13
- package/dist/dev/packages/@glimmer/tracking/index.js +2 -2
- package/dist/dev/packages/@glimmer/tracking/primitives/cache/index.js +1 -1
- package/dist/dev/packages/@glimmer/util/index.js +4 -4
- package/dist/dev/packages/@glimmer/validator/index.js +3 -3
- package/dist/dev/packages/@glimmer/vm/index.js +2 -2
- package/dist/dev/packages/ember/version.js +1 -1
- package/dist/dev/packages/ember-template-compiler/index.js +4 -4
- package/dist/dev/packages/router_js/index.js +2 -2
- package/dist/dev/packages/rsvp/index.js +2281 -1
- package/dist/dev/packages/shared-chunks/{alias-RGbDZoAB.js → alias-DpqL1qx6.js} +7 -7
- package/dist/dev/packages/shared-chunks/{api-BT9M3UaD.js → api-BlZDPg1n.js} +6 -6
- package/dist/dev/packages/shared-chunks/{element-builder-Cl1kHFJE.js → api-C0PAtEgQ.js} +139 -120
- package/dist/dev/packages/shared-chunks/{api-DG5kRT-o.js → api-DuLOZMO_.js} +3 -3
- package/dist/dev/packages/shared-chunks/{args-proxy-CB0SM6jC.js → args-proxy-CS5Brs3_.js} +2 -2
- package/dist/dev/packages/shared-chunks/{untouchable-this-BHdAERUu.js → arguments-CDkbOqTS.js} +236 -236
- package/dist/dev/packages/shared-chunks/{array-BMaSKezP.js → array-CVEnNWng.js} +3 -3
- package/dist/dev/packages/shared-chunks/{array-utils-BEaSKdEb.js → array-utils-CZQxrdD3.js} +1 -1
- package/dist/dev/packages/shared-chunks/{cache-CeWOBNQg.js → cache-DGDPVCpC.js} +2 -3
- package/dist/dev/packages/shared-chunks/{capabilities-CZkuOqqC.js → capabilities-CajW4QjE.js} +1 -1
- package/dist/dev/packages/shared-chunks/{chain-tags-DfmU63mS.js → chain-tags-uWSImHzB.js} +4 -4
- package/dist/dev/packages/shared-chunks/{collections-DEt-i-8B.js → collections-DPkjqeA3.js} +2 -2
- package/dist/dev/packages/shared-chunks/{compiler-DhH2WLpA.js → compiler-QUSl_urU.js} +3 -3
- package/dist/dev/packages/shared-chunks/{computed-Daavz6vC.js → computed-BPCtuOxQ.js} +6 -6
- package/dist/dev/packages/shared-chunks/{curly-YoYS2vXw.js → curly-Ei5G8jhk.js} +7 -7
- package/dist/dev/packages/shared-chunks/{curried-Cnjy9_ug.js → curried-BZnYakIg.js} +1 -1
- package/dist/dev/packages/shared-chunks/{decorator-DYQwMItS.js → decorator-B5Uh5NFI.js} +1 -1
- package/dist/dev/packages/shared-chunks/{element-bBwMD8cw.js → element-BYLB-q7a.js} +5 -3
- package/dist/dev/packages/shared-chunks/{events-B1lx9T1I.js → events-6aFVjD4k.js} +1 -1
- package/dist/{prod/packages/shared-chunks/flags-B9qxc-pB.js → dev/packages/shared-chunks/flags-BZxHQ0yn.js} +1 -1
- package/dist/dev/packages/shared-chunks/{get-CO3EIWsm.js → get-6I3sjd-I.js} +33 -36
- package/dist/{prod/packages/shared-chunks/get_properties-wj_Qmotj.js → dev/packages/shared-chunks/get_properties-Cm2sWt5f.js} +1 -1
- package/dist/dev/packages/shared-chunks/{guid-PO2v9BaN.js → guid-Cbq2sNV_.js} +1 -1
- package/dist/dev/packages/shared-chunks/{hash-2-93qikL.js → hash-6NDs_5_f.js} +18 -12
- package/dist/dev/packages/shared-chunks/{helper-Bm6EhgSW.js → helper-DIj85_-f.js} +21 -9
- package/dist/dev/packages/shared-chunks/{index-dyv6rcBf.js → index-B3pPx1fL.js} +113 -134
- package/dist/dev/packages/shared-chunks/{index-DX90CU4L.js → index-BGP1rw3B.js} +1 -1
- package/dist/dev/packages/shared-chunks/{index-DkwVSPP5.js → index-DaFzpTIE.js} +10 -9
- package/dist/dev/packages/shared-chunks/{injected_property-B075jH6c.js → injected_property-CbBLr5jt.js} +2 -2
- package/dist/dev/packages/shared-chunks/{internal-Bpr6ihB_.js → internal-DTOXyEGM.js} +4 -4
- package/dist/dev/packages/shared-chunks/{internal-helper-IC87S6iZ.js → internal-helper-CKrni0b_.js} +1 -1
- package/dist/dev/packages/shared-chunks/{invoke-Ds0KEfP_.js → invoke-d9sqa50M.js} +3 -3
- package/dist/dev/packages/shared-chunks/{libraries-P8Ins5CB.js → libraries-DwffpMGE.js} +1 -1
- package/dist/dev/packages/shared-chunks/{meta-Cjo3zQJq.js → meta-BqC7f9Ia.js} +1 -1
- package/dist/{prod/packages/shared-chunks/namespace_search-TFdmjK_a.js → dev/packages/shared-chunks/namespace_search-BfvzEQzN.js} +1 -1
- package/dist/dev/packages/shared-chunks/{normalize-CxG_iVLJ.js → normalize-CKySQVU7.js} +2 -2
- package/dist/dev/packages/shared-chunks/{or-Bg6rCMF8.js → not-DYh6AY9Z.js} +36 -36
- package/dist/dev/packages/shared-chunks/{observers-CejcZw5s.js → observers-DMlX2nCi.js} +5 -5
- package/dist/dev/packages/shared-chunks/{on-Ch_lyozr.js → on-DlF0Wy7P.js} +10 -10
- package/dist/dev/packages/shared-chunks/{present-D0EfKzC6.js → present-B1rrjAVM.js} +1 -1
- package/dist/{prod/packages/shared-chunks/program-CF651Zuj.js → dev/packages/shared-chunks/program-DlgjqLa6.js} +3 -3
- package/dist/dev/packages/shared-chunks/{program-context-BaYVr5GA.js → program-context-Dq8xN2HI.js} +5 -4
- package/dist/dev/packages/shared-chunks/{property_get-BjbsrgpU.js → property_get-CRP7MFz_.js} +3 -3
- package/dist/dev/packages/shared-chunks/{property_set-LJskl202.js → property_set-qCUylPEK.js} +3 -3
- package/dist/dev/packages/shared-chunks/{reference-C-OXd_kp.js → reference-BqOLhKFy.js} +3 -3
- package/dist/dev/packages/shared-chunks/{registers-Buvdhhxx.js → registers-C_W2qYHJ.js} +1 -1
- package/dist/dev/packages/shared-chunks/{rehydrate-builder-IH4d_JQy.js → rehydrate-builder-C6k1XhET.js} +4 -4
- package/dist/dev/packages/shared-chunks/{render-Dz3OWqXy.js → render-87_sKZ_k.js} +94 -94
- package/dist/dev/packages/shared-chunks/{rsvp-C6j8G1D1.js → rsvp.es-DR7yS7qg.js} +150 -154
- package/dist/dev/packages/shared-chunks/{serialize-builder-DKliZPPG.js → serialize-builder-BlxBjwO-.js} +2 -2
- package/dist/dev/packages/shared-chunks/{set_properties-CNds2HCH.js → set_properties-C4TSebH6.js} +2 -2
- package/dist/dev/packages/shared-chunks/{setup-registry-C_YovxNX.js → setup-registry-9DCmHTFF.js} +18 -18
- package/dist/{prod/packages/shared-chunks/simple-cast-BXTrayoV.js → dev/packages/shared-chunks/simple-cast-DCvJLSin.js} +1 -1
- package/dist/{prod/packages/shared-chunks/super-D4qkU4uq.js → dev/packages/shared-chunks/super-BBBjgF69.js} +1 -1
- package/dist/{prod/packages/shared-chunks/syscall-ops-nrBHMOTp.js → dev/packages/shared-chunks/syscall-ops-CN7STuUn.js} +1 -1
- package/dist/dev/packages/shared-chunks/{template-B0Apv9g2.js → template-BRrQR6KS.js} +1 -1
- package/dist/dev/packages/shared-chunks/{template-only-BxYzSEnC.js → template-only-Cu639ICT.js} +2 -4
- package/dist/dev/packages/shared-chunks/{textarea-DHjEFpZu.js → textarea-C4lYkaHj.js} +12 -8
- package/dist/dev/packages/shared-chunks/{tracked-B76E1nGz.js → tracked-DEyf0T_X.js} +5 -5
- package/dist/dev/packages/shared-chunks/{tracked-data-CH1USZZy.js → tracked-data-DgqqRdYO.js} +2 -2
- package/dist/dev/packages/shared-chunks/{unique-id-Hd96VZlE.js → unique-id-DQOhouG1.js} +2 -2
- package/dist/dev/packages/shared-chunks/{unrecognized-url-error-BQdkjTtZ.js → unrecognized-url-error-BJHjL30Q.js} +2 -2
- package/dist/{prod/packages/shared-chunks/vm-ops-5QCUIRx4.js → dev/packages/shared-chunks/vm-ops-ImHv0Wtg.js} +1 -1
- package/dist/prod/packages/@ember/-internals/glimmer/index.js +11 -11
- package/dist/prod/packages/@ember/-internals/metal/index.js +18 -18
- package/dist/prod/packages/@ember/-internals/routing/index.js +3 -3
- package/dist/prod/packages/@ember/-internals/runtime/index.js +1 -1
- package/dist/prod/packages/@ember/-internals/runtime/lib/ext/rsvp.js +1 -1
- package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/-proxy.js +7 -7
- package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/action_handler.js +1 -1
- package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +3 -3
- package/dist/prod/packages/@ember/-internals/utils/index.js +2 -2
- package/dist/prod/packages/@ember/-internals/views/lib/mixins/action_support.js +1 -1
- package/dist/prod/packages/@ember/-internals/views/lib/system/event_dispatcher.js +2 -2
- package/dist/prod/packages/@ember/-internals/views/lib/system/utils.js +1 -1
- package/dist/prod/packages/@ember/-internals/views/lib/views/core_view.js +1 -1
- package/dist/prod/packages/@ember/application/index.js +5 -6
- package/dist/prod/packages/@ember/application/instance.js +4 -4
- package/dist/prod/packages/@ember/application/namespace.js +3 -3
- package/dist/prod/packages/@ember/array/index.js +11 -58
- package/dist/prod/packages/@ember/array/lib/is-array.js +64 -0
- package/dist/prod/packages/@ember/array/proxy.js +8 -8
- package/dist/prod/packages/@ember/component/helper.js +1 -1
- package/dist/prod/packages/@ember/component/index.js +20 -14
- package/dist/prod/packages/@ember/component/template-only.js +1 -1
- package/dist/prod/packages/@ember/controller/index.js +3 -3
- package/dist/prod/packages/@ember/debug/data-adapter.js +3 -3
- package/dist/prod/packages/@ember/engine/index.js +5 -5
- package/dist/prod/packages/@ember/engine/instance.js +2 -2
- package/dist/prod/packages/@ember/helper/index.js +8 -27
- package/dist/prod/packages/@ember/modifier/index.js +2 -2
- package/dist/prod/packages/@ember/modifier/on.js +1 -1
- package/dist/prod/packages/@ember/object/-internals.js +2 -2
- package/dist/prod/packages/@ember/object/compat.js +3 -3
- package/dist/prod/packages/@ember/object/computed.js +2 -2
- package/dist/prod/packages/@ember/object/core.js +7 -7
- package/dist/prod/packages/@ember/object/evented.js +2 -2
- package/dist/prod/packages/@ember/object/events.js +1 -1
- package/dist/prod/packages/@ember/object/index.js +30 -25
- package/dist/prod/packages/@ember/object/internals.js +2 -2
- package/dist/prod/packages/@ember/object/lib/computed/computed_macros.js +4 -4
- package/dist/prod/packages/@ember/object/lib/computed/reduce_computed_macros.js +2 -2
- package/dist/prod/packages/@ember/object/mixin.js +6 -6
- package/dist/prod/packages/@ember/object/observable.js +7 -7
- package/dist/prod/packages/@ember/object/observers.js +1 -1
- package/dist/prod/packages/@ember/object/promise-proxy-mixin.js +3 -3
- package/dist/prod/packages/@ember/reactive/collections.js +153 -153
- package/dist/prod/packages/@ember/renderer/index.js +1 -1
- package/dist/prod/packages/@ember/routing/index.js +12 -8
- package/dist/prod/packages/@ember/routing/lib/generate_controller.js +1 -2
- package/dist/prod/packages/@ember/routing/lib/routing-service.js +4 -4
- package/dist/prod/packages/@ember/routing/lib/utils.js +3 -3
- package/dist/prod/packages/@ember/routing/route.js +12 -12
- package/dist/prod/packages/@ember/routing/router-service.js +24 -17
- package/dist/prod/packages/@ember/routing/router.js +5 -5
- package/dist/prod/packages/@ember/runloop/index.js +1 -1
- package/dist/prod/packages/@ember/service/index.js +1 -1
- package/dist/prod/packages/@ember/template-compiler/lib/compile-options.js +3 -3
- package/dist/prod/packages/@ember/template-compiler/lib/template.js +2 -2
- package/dist/prod/packages/@ember/template-factory/index.js +1 -1
- package/dist/prod/packages/@ember/utils/lib/is_empty.js +1 -1
- package/dist/prod/packages/@glimmer/encoder/index.js +1 -1
- package/dist/prod/packages/@glimmer/manager/index.js +4 -4
- package/dist/prod/packages/@glimmer/node/index.js +3 -3
- package/dist/prod/packages/@glimmer/opcode-compiler/index.js +2 -2
- package/dist/prod/packages/@glimmer/program/index.js +10 -10
- package/dist/prod/packages/@glimmer/reference/index.js +5 -5
- package/dist/prod/packages/@glimmer/runtime/index.js +13 -13
- package/dist/prod/packages/@glimmer/tracking/index.js +2 -2
- package/dist/prod/packages/@glimmer/tracking/primitives/cache/index.js +1 -1
- package/dist/prod/packages/@glimmer/util/index.js +4 -4
- package/dist/prod/packages/@glimmer/validator/index.js +3 -3
- package/dist/prod/packages/@glimmer/vm/index.js +2 -2
- package/dist/prod/packages/ember/version.js +1 -1
- package/dist/prod/packages/ember-template-compiler/index.js +4 -4
- package/dist/prod/packages/router_js/index.js +2 -2
- package/dist/prod/packages/rsvp/index.js +2281 -1
- package/dist/prod/packages/shared-chunks/{alias-DsIh-16z.js → alias-Bod6qdNp.js} +7 -7
- package/dist/prod/packages/shared-chunks/{api-CGZbGcvX.js → api-B_poQGXS.js} +6 -6
- package/dist/prod/packages/shared-chunks/{element-builder-CZePCkbA.js → api-CQexacBn.js} +139 -120
- package/dist/prod/packages/shared-chunks/{api-DOLN_cR2.js → api-DlJKfm_f.js} +3 -3
- package/dist/prod/packages/shared-chunks/{args-proxy-CaXVcI8G.js → args-proxy-CCoFtYLS.js} +2 -2
- package/dist/prod/packages/shared-chunks/{debug-render-tree-CYENUjgX.js → arguments-BzAkZVBa.js} +198 -198
- package/dist/prod/packages/shared-chunks/{array-DYFI95FA.js → array-BzReKMeW.js} +3 -3
- package/dist/prod/packages/shared-chunks/{array-utils-BEaSKdEb.js → array-utils-CZQxrdD3.js} +1 -1
- package/dist/prod/packages/shared-chunks/{cache-CG6_L9db.js → cache-CofLhaS4.js} +1 -2
- package/dist/prod/packages/shared-chunks/{capabilities-_5e35539.js → capabilities-BuVYh-vx.js} +1 -1
- package/dist/prod/packages/shared-chunks/{chain-tags-BP0V2LnZ.js → chain-tags-B2J7DsxO.js} +4 -4
- package/dist/prod/packages/shared-chunks/{collections-By4M3cTy.js → collections-GpG8lT2g.js} +10 -10
- package/dist/prod/packages/shared-chunks/{compiler-DQmEjFyx.js → compiler-lBSssiWp.js} +2 -2
- package/dist/prod/packages/shared-chunks/{computed-D6MVTTDd.js → computed-DtIStxvq.js} +6 -6
- package/dist/prod/packages/shared-chunks/{curly-DCYSwLtz.js → curly-IY06zACp.js} +7 -7
- package/dist/prod/packages/shared-chunks/{curried-Cnjy9_ug.js → curried-BZnYakIg.js} +1 -1
- package/dist/prod/packages/shared-chunks/{decorator-B8Lpq40g.js → decorator-9ikVwsjY.js} +1 -1
- package/dist/prod/packages/shared-chunks/{element-CT5H5uxF.js → element-DgHdPZ8u.js} +5 -3
- package/dist/prod/packages/shared-chunks/{events-C7aYCy0N.js → events-DYrYz3V8.js} +1 -1
- package/dist/{dev/packages/shared-chunks/flags-B9qxc-pB.js → prod/packages/shared-chunks/flags-BZxHQ0yn.js} +1 -1
- package/dist/prod/packages/shared-chunks/{get-tlL23wmp.js → get-Dago5uGl.js} +33 -36
- package/dist/{dev/packages/shared-chunks/get_properties-B203vZpz.js → prod/packages/shared-chunks/get_properties-Dg3xFpiS.js} +1 -1
- package/dist/prod/packages/shared-chunks/{guid-PO2v9BaN.js → guid-Cbq2sNV_.js} +1 -1
- package/dist/prod/packages/shared-chunks/{hash-C6IoC4eR.js → hash-gEXIsSO4.js} +24 -18
- package/dist/prod/packages/shared-chunks/{helper-CCK8Ef0x.js → helper-DkXiTBjc.js} +21 -9
- package/dist/prod/packages/shared-chunks/{index-D-rcNBLp.js → index-Bf53M8eS.js} +9 -8
- package/dist/prod/packages/shared-chunks/{index-DabsnYit.js → index-CslMfEpb.js} +110 -131
- package/dist/prod/packages/shared-chunks/{injected_property-COGiYHKc.js → injected_property-Y-FadDej.js} +2 -2
- package/dist/prod/packages/shared-chunks/{internal-BEJC2IJ-.js → internal-BQ7zHrqS.js} +4 -4
- package/dist/prod/packages/shared-chunks/{internal-helper-CoxiRnnb.js → internal-helper-Bz1lpDXr.js} +1 -1
- package/dist/prod/packages/shared-chunks/{invoke-D_jsLbsj.js → invoke-DhQ5QRp2.js} +3 -3
- package/dist/prod/packages/shared-chunks/{libraries-Bs3H8iwC.js → libraries-DBql0hdn.js} +2 -2
- package/dist/prod/packages/shared-chunks/{meta-Ce6-qROq.js → meta-BJtIZDir.js} +1 -1
- package/dist/{dev/packages/shared-chunks/namespace_search-TFdmjK_a.js → prod/packages/shared-chunks/namespace_search-BfvzEQzN.js} +1 -1
- package/dist/prod/packages/shared-chunks/{normalize-Bx4H3NjB.js → normalize-C_IStty9.js} +2 -2
- package/dist/prod/packages/shared-chunks/{or-sYlRiUn_.js → not-BOIVROuv.js} +28 -28
- package/dist/prod/packages/shared-chunks/{observers-Ci31SE36.js → observers-BmobpXAF.js} +5 -5
- package/dist/prod/packages/shared-chunks/{on-Dgmychhk.js → on-BZHAxzdq.js} +10 -10
- package/dist/{dev/packages/shared-chunks/program-CPXeXWVB.js → prod/packages/shared-chunks/program-BAh__OXZ.js} +3 -3
- package/dist/prod/packages/shared-chunks/{program-context-DmI53TzJ.js → program-context-COSioH46.js} +5 -4
- package/dist/prod/packages/shared-chunks/{property_get-Sw0SicEZ.js → property_get-DAKgbeJX.js} +2 -2
- package/dist/prod/packages/shared-chunks/{property_set-SHEIPMUG.js → property_set-BaQJdVfS.js} +3 -3
- package/dist/prod/packages/shared-chunks/{reference-D2agTt1V.js → reference-CG0yPgLy.js} +3 -3
- package/dist/prod/packages/shared-chunks/{registers-Buvdhhxx.js → registers-C_W2qYHJ.js} +1 -1
- package/dist/prod/packages/shared-chunks/{rehydrate-builder-B7MtrWip.js → rehydrate-builder-Blt1x9MP.js} +4 -4
- package/dist/prod/packages/shared-chunks/{render-B790-vbk.js → render-Dx7lr1hR.js} +94 -94
- package/dist/prod/packages/shared-chunks/{rsvp-C6j8G1D1.js → rsvp.es-DR7yS7qg.js} +150 -154
- package/dist/prod/packages/shared-chunks/{serialize-builder-kEyOKbzp.js → serialize-builder-BvAXYHTr.js} +2 -2
- package/dist/prod/packages/shared-chunks/{set_properties-CcLLHg1w.js → set_properties-Qxhw4qzw.js} +2 -2
- package/dist/prod/packages/shared-chunks/{setup-registry-D14I0iDX.js → setup-registry-U-6VaNQG.js} +18 -18
- package/dist/{dev/packages/shared-chunks/simple-cast-BXTrayoV.js → prod/packages/shared-chunks/simple-cast-DCvJLSin.js} +1 -1
- package/dist/{dev/packages/shared-chunks/super-D4qkU4uq.js → prod/packages/shared-chunks/super-BBBjgF69.js} +1 -1
- package/dist/{dev/packages/shared-chunks/syscall-ops-nrBHMOTp.js → prod/packages/shared-chunks/syscall-ops-CN7STuUn.js} +1 -1
- package/dist/prod/packages/shared-chunks/{template-B0Apv9g2.js → template-BRrQR6KS.js} +1 -1
- package/dist/prod/packages/shared-chunks/{template-only-CP0NT7ce.js → template-only-DKNcKM5b.js} +2 -4
- package/dist/prod/packages/shared-chunks/{textarea-B_JYBuE8.js → textarea-DOmZ1x0E.js} +11 -7
- package/dist/prod/packages/shared-chunks/{tracked-CXcapuAm.js → tracked-B9380JtC.js} +5 -5
- package/dist/prod/packages/shared-chunks/{tracked-data-DNDzhYXf.js → tracked-data-CHq42QHb.js} +2 -2
- package/dist/prod/packages/shared-chunks/{unique-id-Hn8Qp4dS.js → unique-id-o2pS74go.js} +2 -2
- package/dist/prod/packages/shared-chunks/{unrecognized-url-error-ClNyMFJt.js → unrecognized-url-error-EgNrnFu_.js} +2 -2
- package/dist/{dev/packages/shared-chunks/vm-ops-5QCUIRx4.js → prod/packages/shared-chunks/vm-ops-ImHv0Wtg.js} +1 -1
- package/docs/data.json +316 -334
- package/package.json +6 -4
- package/types/stable/@ember/-internals/glimmer/index.d.ts +165 -121
- package/types/stable/@ember/-internals/glimmer/lib/component-managers/mount.d.ts +1 -1
- package/types/stable/@ember/-internals/glimmer/lib/component-managers/outlet.d.ts +1 -1
- package/types/stable/@ember/-internals/glimmer/lib/component.d.ts +8 -2
- package/types/stable/@ember/-internals/glimmer/lib/glimmer-tracking-docs.d.ts +12 -12
- package/types/stable/@ember/-internals/glimmer/lib/helper.d.ts +18 -6
- package/types/stable/@ember/-internals/glimmer/lib/helpers/array.d.ts +3 -1
- package/types/stable/@ember/-internals/glimmer/lib/helpers/component.d.ts +65 -121
- package/types/stable/@ember/-internals/glimmer/lib/helpers/concat.d.ts +8 -4
- package/types/stable/@ember/-internals/glimmer/lib/helpers/each-in.d.ts +16 -14
- package/types/stable/@ember/-internals/glimmer/lib/helpers/element.d.ts +2 -0
- package/types/stable/@ember/-internals/glimmer/lib/helpers/fn.d.ts +11 -7
- package/types/stable/@ember/-internals/glimmer/lib/helpers/get.d.ts +23 -29
- package/types/stable/@ember/-internals/glimmer/lib/helpers/hash.d.ts +3 -1
- package/types/stable/@ember/-internals/glimmer/lib/helpers/if-unless.d.ts +95 -49
- package/types/stable/@ember/-internals/glimmer/lib/helpers/mut.d.ts +23 -54
- package/types/stable/@ember/-internals/glimmer/lib/helpers/page-title.d.ts +6 -2
- package/types/stable/@ember/-internals/glimmer/lib/helpers/readonly.d.ts +4 -8
- package/types/stable/@ember/-internals/glimmer/lib/modifiers/on.d.ts +10 -10
- package/types/stable/@ember/-internals/glimmer/lib/renderer.d.ts +1 -2
- package/types/stable/@ember/-internals/glimmer/lib/syntax/in-element.d.ts +2 -0
- package/types/stable/@ember/-internals/glimmer/lib/syntax/let.d.ts +2 -14
- package/types/stable/@ember/-internals/glimmer/lib/syntax/mount.d.ts +15 -11
- package/types/stable/@ember/-internals/glimmer/lib/syntax/outlet.d.ts +17 -10
- package/types/stable/@ember/-internals/runtime/lib/mixins/target_action_support.d.ts +1 -1
- package/types/stable/@ember/array/index.d.ts +6 -29
- package/types/stable/@ember/array/lib/is-array.d.ts +35 -0
- package/types/stable/@ember/component/template-only.d.ts +1 -3
- package/types/stable/@ember/controller/index.d.ts +1 -1
- package/types/stable/@ember/helper/index.d.ts +0 -19
- package/types/stable/@ember/object/index.d.ts +4 -3
- package/types/stable/@ember/object/observable.d.ts +4 -0
- package/types/stable/@ember/reactive/collections.d.ts +0 -6
- package/types/stable/@ember/routing/lib/generate_controller.d.ts +1 -1
- package/types/stable/@ember/routing/route.d.ts +2 -2
- package/types/stable/@ember/routing/router-service.d.ts +20 -12
- package/types/stable/@glimmer/runtime/lib/component/template-only.d.ts +0 -2
- package/types/stable/@glimmer/runtime/lib/dom/sanitized-values.d.ts +2 -2
- package/types/stable/@glimmer/runtime/lib/helpers/array.d.ts +1 -1
- package/types/stable/@glimmer/runtime/lib/helpers/concat.d.ts +8 -3
- package/types/stable/@glimmer/runtime/lib/helpers/fn.d.ts +13 -7
- package/types/stable/@glimmer/runtime/lib/helpers/get.d.ts +21 -29
- package/types/stable/@glimmer/runtime/lib/helpers/hash.d.ts +1 -1
- package/types/stable/@glimmer/syntax/lib/get-template-locals.d.ts +1 -1
- package/types/stable/@glimmer/tracking/index.d.ts +12 -12
- package/types/stable/index.d.ts +1 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as consumeTag, b as createUpdatableTag, D as DIRTY_TAG } from '../../shared-chunks/cache-CofLhaS4.js';
|
|
2
2
|
|
|
3
3
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
4
4
|
// Unfortunately, TypeScript's ability to do inference *or* type-checking in a
|
|
@@ -147,102 +147,6 @@ function trackedArray(data, options) {
|
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
151
|
-
// Using a Proxy-based approach so that any new methods added to the Map
|
|
152
|
-
// interface (like getOrInsert, getOrInsertComputed, etc.) are automatically
|
|
153
|
-
// supported without needing to manually re-implement each one.
|
|
154
|
-
|
|
155
|
-
function trackedMap(data, options) {
|
|
156
|
-
const equals = options?.equals ?? Object.is;
|
|
157
|
-
// TypeScript doesn't correctly resolve the overloads for calling the `Map`
|
|
158
|
-
// constructor for the no-value constructor. This resolves that.
|
|
159
|
-
const target = data instanceof Map ? new Map(data.entries()) : new Map(data ?? []);
|
|
160
|
-
const collection = createUpdatableTag();
|
|
161
|
-
const storages = new Map();
|
|
162
|
-
function storageFor(key) {
|
|
163
|
-
let storage = storages.get(key);
|
|
164
|
-
if (storage === undefined) {
|
|
165
|
-
storage = createUpdatableTag();
|
|
166
|
-
storages.set(key, storage);
|
|
167
|
-
}
|
|
168
|
-
return storage;
|
|
169
|
-
}
|
|
170
|
-
function dirtyStorageFor(key) {
|
|
171
|
-
const storage = storages.get(key);
|
|
172
|
-
if (storage) {
|
|
173
|
-
DIRTY_TAG(storage);
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
const proxy = new Proxy(target, {
|
|
177
|
-
get(target, prop, receiver) {
|
|
178
|
-
if (prop === 'set') {
|
|
179
|
-
return function (key, value) {
|
|
180
|
-
const hasExisting = target.has(key);
|
|
181
|
-
if (hasExisting) {
|
|
182
|
-
// TS doesn't know about the relationship between has and get
|
|
183
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
184
|
-
const isUnchanged = equals(target.get(key), value);
|
|
185
|
-
if (isUnchanged) return proxy;
|
|
186
|
-
}
|
|
187
|
-
dirtyStorageFor(key);
|
|
188
|
-
DIRTY_TAG(collection);
|
|
189
|
-
target.set(key, value);
|
|
190
|
-
return proxy;
|
|
191
|
-
};
|
|
192
|
-
}
|
|
193
|
-
if (prop === 'delete') {
|
|
194
|
-
return function (key) {
|
|
195
|
-
if (!target.has(key)) return false;
|
|
196
|
-
dirtyStorageFor(key);
|
|
197
|
-
DIRTY_TAG(collection);
|
|
198
|
-
storages.delete(key);
|
|
199
|
-
return target.delete(key);
|
|
200
|
-
};
|
|
201
|
-
}
|
|
202
|
-
if (prop === 'clear') {
|
|
203
|
-
return function () {
|
|
204
|
-
if (target.size === 0) return;
|
|
205
|
-
storages.forEach(s => DIRTY_TAG(s));
|
|
206
|
-
storages.clear();
|
|
207
|
-
DIRTY_TAG(collection);
|
|
208
|
-
target.clear();
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
if (prop === 'get') {
|
|
212
|
-
return function (key) {
|
|
213
|
-
consumeTag(storageFor(key));
|
|
214
|
-
return target.get(key);
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
if (prop === 'has') {
|
|
218
|
-
return function (key) {
|
|
219
|
-
consumeTag(storageFor(key));
|
|
220
|
-
return target.has(key);
|
|
221
|
-
};
|
|
222
|
-
}
|
|
223
|
-
if (prop === 'size') {
|
|
224
|
-
consumeTag(collection);
|
|
225
|
-
return target.size;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
229
|
-
const value = Reflect.get(target, prop, receiver);
|
|
230
|
-
if (typeof value === 'function') {
|
|
231
|
-
return function (...args) {
|
|
232
|
-
consumeTag(collection);
|
|
233
|
-
|
|
234
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
|
|
235
|
-
return value.apply(target, args);
|
|
236
|
-
};
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
240
|
-
return value;
|
|
241
|
-
}
|
|
242
|
-
});
|
|
243
|
-
return proxy;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
150
|
class TrackedObject {
|
|
247
151
|
#options;
|
|
248
152
|
#storages = new Map();
|
|
@@ -422,19 +326,108 @@ function trackedSet(data, options) {
|
|
|
422
326
|
return proxy;
|
|
423
327
|
}
|
|
424
328
|
|
|
425
|
-
// Using a Proxy-based approach so that any new methods added to the
|
|
329
|
+
// Using a Proxy-based approach so that any new methods added to the WeakSet
|
|
330
|
+
// interface are automatically supported without needing to manually
|
|
331
|
+
// re-implement each one.
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* NOTE: we cannot pass a WeakSet because WeakSets are not iterable
|
|
335
|
+
*/
|
|
336
|
+
/**
|
|
337
|
+
* Creates an instanceof WeakSet from an optional list of entries
|
|
338
|
+
*
|
|
339
|
+
*/
|
|
340
|
+
function trackedWeakSet(data, options) {
|
|
341
|
+
const equals = options?.equals ?? Object.is;
|
|
342
|
+
const target = new WeakSet(data ?? []);
|
|
343
|
+
const storages = new WeakMap();
|
|
344
|
+
function storageFor(key) {
|
|
345
|
+
let storage = storages.get(key);
|
|
346
|
+
if (storage === undefined) {
|
|
347
|
+
storage = createUpdatableTag();
|
|
348
|
+
storages.set(key, storage);
|
|
349
|
+
}
|
|
350
|
+
return storage;
|
|
351
|
+
}
|
|
352
|
+
function dirtyStorageFor(key) {
|
|
353
|
+
const storage = storages.get(key);
|
|
354
|
+
if (storage) {
|
|
355
|
+
DIRTY_TAG(storage);
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
const proxy = new Proxy(target, {
|
|
359
|
+
get(target, prop, receiver) {
|
|
360
|
+
if (prop === 'add') {
|
|
361
|
+
return function (value) {
|
|
362
|
+
/**
|
|
363
|
+
* In a WeakSet, there is no `.get()`, but if there was,
|
|
364
|
+
* we could assume it's the same value as what we passed.
|
|
365
|
+
*
|
|
366
|
+
* So for a WeakSet, if we try to add something that already exists
|
|
367
|
+
* we no-op.
|
|
368
|
+
*
|
|
369
|
+
* WeakSet already does this internally for us,
|
|
370
|
+
* but we want the ability for the reactive behavior to reflect the same behavior.
|
|
371
|
+
*
|
|
372
|
+
* i.e.: doing weakSet.add(value) should never dirty with the defaults
|
|
373
|
+
* if the `value` is already in the weakSet
|
|
374
|
+
*/
|
|
375
|
+
if (target.has(value)) {
|
|
376
|
+
/**
|
|
377
|
+
* This looks a little silly, where a always will === b,
|
|
378
|
+
* but see the note above.
|
|
379
|
+
*/
|
|
380
|
+
const isUnchanged = equals(value, value);
|
|
381
|
+
if (isUnchanged) return proxy;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
// Add to vals first to get better error message
|
|
385
|
+
target.add(value);
|
|
386
|
+
dirtyStorageFor(value);
|
|
387
|
+
return proxy;
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
if (prop === 'delete') {
|
|
391
|
+
return function (value) {
|
|
392
|
+
if (!target.has(value)) return false;
|
|
393
|
+
dirtyStorageFor(value);
|
|
394
|
+
storages.delete(value);
|
|
395
|
+
return target.delete(value);
|
|
396
|
+
};
|
|
397
|
+
}
|
|
398
|
+
if (prop === 'has') {
|
|
399
|
+
return function (value) {
|
|
400
|
+
consumeTag(storageFor(value));
|
|
401
|
+
return target.has(value);
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
406
|
+
const value = Reflect.get(target, prop, receiver);
|
|
407
|
+
if (typeof value === 'function') {
|
|
408
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
|
|
409
|
+
return value.bind(target);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
413
|
+
return value;
|
|
414
|
+
}
|
|
415
|
+
});
|
|
416
|
+
return proxy;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
420
|
+
// Using a Proxy-based approach so that any new methods added to the Map
|
|
426
421
|
// interface (like getOrInsert, getOrInsertComputed, etc.) are automatically
|
|
427
422
|
// supported without needing to manually re-implement each one.
|
|
428
423
|
|
|
429
|
-
function
|
|
424
|
+
function trackedMap(data, options) {
|
|
430
425
|
const equals = options?.equals ?? Object.is;
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
const target = existing instanceof WeakMap ? existing : new WeakMap(existing);
|
|
437
|
-
const storages = new WeakMap();
|
|
426
|
+
// TypeScript doesn't correctly resolve the overloads for calling the `Map`
|
|
427
|
+
// constructor for the no-value constructor. This resolves that.
|
|
428
|
+
const target = data instanceof Map ? new Map(data.entries()) : new Map(data ?? []);
|
|
429
|
+
const collection = createUpdatableTag();
|
|
430
|
+
const storages = new Map();
|
|
438
431
|
function storageFor(key) {
|
|
439
432
|
let storage = storages.get(key);
|
|
440
433
|
if (storage === undefined) {
|
|
@@ -455,10 +448,13 @@ function trackedWeakMap(data, options) {
|
|
|
455
448
|
return function (key, value) {
|
|
456
449
|
const hasExisting = target.has(key);
|
|
457
450
|
if (hasExisting) {
|
|
451
|
+
// TS doesn't know about the relationship between has and get
|
|
452
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
458
453
|
const isUnchanged = equals(target.get(key), value);
|
|
459
454
|
if (isUnchanged) return proxy;
|
|
460
455
|
}
|
|
461
456
|
dirtyStorageFor(key);
|
|
457
|
+
DIRTY_TAG(collection);
|
|
462
458
|
target.set(key, value);
|
|
463
459
|
return proxy;
|
|
464
460
|
};
|
|
@@ -467,10 +463,20 @@ function trackedWeakMap(data, options) {
|
|
|
467
463
|
return function (key) {
|
|
468
464
|
if (!target.has(key)) return false;
|
|
469
465
|
dirtyStorageFor(key);
|
|
466
|
+
DIRTY_TAG(collection);
|
|
470
467
|
storages.delete(key);
|
|
471
468
|
return target.delete(key);
|
|
472
469
|
};
|
|
473
470
|
}
|
|
471
|
+
if (prop === 'clear') {
|
|
472
|
+
return function () {
|
|
473
|
+
if (target.size === 0) return;
|
|
474
|
+
storages.forEach(s => DIRTY_TAG(s));
|
|
475
|
+
storages.clear();
|
|
476
|
+
DIRTY_TAG(collection);
|
|
477
|
+
target.clear();
|
|
478
|
+
};
|
|
479
|
+
}
|
|
474
480
|
if (prop === 'get') {
|
|
475
481
|
return function (key) {
|
|
476
482
|
consumeTag(storageFor(key));
|
|
@@ -483,12 +489,20 @@ function trackedWeakMap(data, options) {
|
|
|
483
489
|
return target.has(key);
|
|
484
490
|
};
|
|
485
491
|
}
|
|
492
|
+
if (prop === 'size') {
|
|
493
|
+
consumeTag(collection);
|
|
494
|
+
return target.size;
|
|
495
|
+
}
|
|
486
496
|
|
|
487
497
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
488
498
|
const value = Reflect.get(target, prop, receiver);
|
|
489
499
|
if (typeof value === 'function') {
|
|
490
|
-
|
|
491
|
-
|
|
500
|
+
return function (...args) {
|
|
501
|
+
consumeTag(collection);
|
|
502
|
+
|
|
503
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
|
|
504
|
+
return value.apply(target, args);
|
|
505
|
+
};
|
|
492
506
|
}
|
|
493
507
|
|
|
494
508
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
@@ -498,20 +512,18 @@ function trackedWeakMap(data, options) {
|
|
|
498
512
|
return proxy;
|
|
499
513
|
}
|
|
500
514
|
|
|
501
|
-
// Using a Proxy-based approach so that any new methods added to the
|
|
502
|
-
// interface
|
|
503
|
-
// re-implement each one.
|
|
515
|
+
// Using a Proxy-based approach so that any new methods added to the WeakMap
|
|
516
|
+
// interface (like getOrInsert, getOrInsertComputed, etc.) are automatically
|
|
517
|
+
// supported without needing to manually re-implement each one.
|
|
504
518
|
|
|
505
|
-
|
|
506
|
-
* NOTE: we cannot pass a WeakSet because WeakSets are not iterable
|
|
507
|
-
*/
|
|
508
|
-
/**
|
|
509
|
-
* Creates an instanceof WeakSet from an optional list of entries
|
|
510
|
-
*
|
|
511
|
-
*/
|
|
512
|
-
function trackedWeakSet(data, options) {
|
|
519
|
+
function trackedWeakMap(data, options) {
|
|
513
520
|
const equals = options?.equals ?? Object.is;
|
|
514
|
-
const
|
|
521
|
+
const existing = data ?? [];
|
|
522
|
+
/**
|
|
523
|
+
* SAFETY: note that when passing in an existing weak map, we can't
|
|
524
|
+
* clone it as it is not iterable and not a supported type of structuredClone
|
|
525
|
+
*/
|
|
526
|
+
const target = existing instanceof WeakMap ? existing : new WeakMap(existing);
|
|
515
527
|
const storages = new WeakMap();
|
|
516
528
|
function storageFor(key) {
|
|
517
529
|
let storage = storages.get(key);
|
|
@@ -529,48 +541,36 @@ function trackedWeakSet(data, options) {
|
|
|
529
541
|
}
|
|
530
542
|
const proxy = new Proxy(target, {
|
|
531
543
|
get(target, prop, receiver) {
|
|
532
|
-
if (prop === '
|
|
533
|
-
return function (value) {
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
*
|
|
538
|
-
* So for a WeakSet, if we try to add something that already exists
|
|
539
|
-
* we no-op.
|
|
540
|
-
*
|
|
541
|
-
* WeakSet already does this internally for us,
|
|
542
|
-
* but we want the ability for the reactive behavior to reflect the same behavior.
|
|
543
|
-
*
|
|
544
|
-
* i.e.: doing weakSet.add(value) should never dirty with the defaults
|
|
545
|
-
* if the `value` is already in the weakSet
|
|
546
|
-
*/
|
|
547
|
-
if (target.has(value)) {
|
|
548
|
-
/**
|
|
549
|
-
* This looks a little silly, where a always will === b,
|
|
550
|
-
* but see the note above.
|
|
551
|
-
*/
|
|
552
|
-
const isUnchanged = equals(value, value);
|
|
544
|
+
if (prop === 'set') {
|
|
545
|
+
return function (key, value) {
|
|
546
|
+
const hasExisting = target.has(key);
|
|
547
|
+
if (hasExisting) {
|
|
548
|
+
const isUnchanged = equals(target.get(key), value);
|
|
553
549
|
if (isUnchanged) return proxy;
|
|
554
550
|
}
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
target.add(value);
|
|
558
|
-
dirtyStorageFor(value);
|
|
551
|
+
dirtyStorageFor(key);
|
|
552
|
+
target.set(key, value);
|
|
559
553
|
return proxy;
|
|
560
554
|
};
|
|
561
555
|
}
|
|
562
556
|
if (prop === 'delete') {
|
|
563
|
-
return function (
|
|
564
|
-
if (!target.has(
|
|
565
|
-
dirtyStorageFor(
|
|
566
|
-
storages.delete(
|
|
567
|
-
return target.delete(
|
|
557
|
+
return function (key) {
|
|
558
|
+
if (!target.has(key)) return false;
|
|
559
|
+
dirtyStorageFor(key);
|
|
560
|
+
storages.delete(key);
|
|
561
|
+
return target.delete(key);
|
|
562
|
+
};
|
|
563
|
+
}
|
|
564
|
+
if (prop === 'get') {
|
|
565
|
+
return function (key) {
|
|
566
|
+
consumeTag(storageFor(key));
|
|
567
|
+
return target.get(key);
|
|
568
568
|
};
|
|
569
569
|
}
|
|
570
570
|
if (prop === 'has') {
|
|
571
|
-
return function (
|
|
572
|
-
consumeTag(storageFor(
|
|
573
|
-
return target.has(
|
|
571
|
+
return function (key) {
|
|
572
|
+
consumeTag(storageFor(key));
|
|
573
|
+
return target.has(key);
|
|
574
574
|
};
|
|
575
575
|
}
|
|
576
576
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { r as renderComponent, a as renderSettled } from '../../shared-chunks/index-
|
|
1
|
+
export { r as renderComponent, a as renderSettled } from '../../shared-chunks/index-CslMfEpb.js';
|
|
@@ -3,11 +3,11 @@ import { getEngineParent } from '../engine/lib/engine-parent.js';
|
|
|
3
3
|
import { flaggedInstrument } from '../instrumentation/index.js';
|
|
4
4
|
import { action } from '../object/index.js';
|
|
5
5
|
import { service } from '../service/index.js';
|
|
6
|
-
import {
|
|
7
|
-
import { t as tagFor } from '../../shared-chunks/meta-
|
|
6
|
+
import { c as consumeTag, e as createCache, g as getValue, u as untrack } from '../../shared-chunks/cache-CofLhaS4.js';
|
|
7
|
+
import { t as tagFor } from '../../shared-chunks/meta-BJtIZDir.js';
|
|
8
8
|
import { on } from '../modifier/on.js';
|
|
9
|
-
import {
|
|
10
|
-
import { I as InternalComponent, o as opaquify } from '../../shared-chunks/internal-
|
|
9
|
+
import { t as templateFactory } from '../../shared-chunks/index-Bf53M8eS.js';
|
|
10
|
+
import { I as InternalComponent, o as opaquify } from '../../shared-chunks/internal-BQ7zHrqS.js';
|
|
11
11
|
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../shared-chunks/runtime-CYyqkz5q-BOdRhmsS.js';
|
|
12
12
|
|
|
13
13
|
const LinkToTemplate = templateFactory(
|
|
@@ -58,10 +58,14 @@ function isQueryParams(value) {
|
|
|
58
58
|
supplied model to the route as its `model` context of the route. The block for `LinkTo`
|
|
59
59
|
becomes the contents of the rendered element:
|
|
60
60
|
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
```gjs
|
|
62
|
+
import { LinkTo } from '@ember/routing';
|
|
63
|
+
|
|
64
|
+
<template>
|
|
65
|
+
<LinkTo @route='photoGallery'>
|
|
66
|
+
Great Hamster Photos
|
|
67
|
+
</LinkTo>
|
|
68
|
+
</template>
|
|
65
69
|
```
|
|
66
70
|
|
|
67
71
|
This will result in:
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getOwner } from '../../-internals/owner/index.js';
|
|
2
|
-
import '../../../shared-chunks/cache-
|
|
3
|
-
import '../../../shared-chunks/reference-
|
|
4
|
-
import '../../../shared-chunks/observers-
|
|
5
|
-
import '../../../shared-chunks/property_get-
|
|
2
|
+
import '../../../shared-chunks/cache-CofLhaS4.js';
|
|
3
|
+
import '../../../shared-chunks/reference-CG0yPgLy.js';
|
|
4
|
+
import '../../../shared-chunks/observers-BmobpXAF.js';
|
|
5
|
+
import '../../../shared-chunks/property_get-DAKgbeJX.js';
|
|
6
6
|
import { readOnly } from '../../object/lib/computed/computed_macros.js';
|
|
7
7
|
import '../../object/core.js';
|
|
8
8
|
import '../../-internals/runtime/lib/mixins/comparable.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { g as get } from '../../../shared-chunks/property_get-
|
|
1
|
+
import { g as get } from '../../../shared-chunks/property_get-DAKgbeJX.js';
|
|
2
2
|
import { getOwner } from '../../-internals/owner/index.js';
|
|
3
3
|
import '../../engine/instance.js';
|
|
4
4
|
import '../../../route-recognizer/index.js';
|
|
5
|
-
import '../../../shared-chunks/rsvp-
|
|
6
|
-
import { S as STATE_SYMBOL } from '../../../shared-chunks/unrecognized-url-error-
|
|
5
|
+
import '../../../shared-chunks/rsvp.es-DR7yS7qg.js';
|
|
6
|
+
import { S as STATE_SYMBOL } from '../../../shared-chunks/unrecognized-url-error-EgNrnFu_.js';
|
|
7
7
|
|
|
8
8
|
const ALL_PERIODS_REGEX = /\./g;
|
|
9
9
|
function extractRouteArgs(args) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { privatize } from '../-internals/container/index.js';
|
|
2
|
-
import { f as flushAsyncObservers, b as addObserver } from '../../shared-chunks/observers-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { f as flushAsyncObservers, b as addObserver } from '../../shared-chunks/observers-BmobpXAF.js';
|
|
3
|
+
import { c as computed, d as defineProperty } from '../../shared-chunks/computed-DtIStxvq.js';
|
|
4
|
+
import { d as descriptorForProperty } from '../../shared-chunks/decorator-9ikVwsjY.js';
|
|
5
5
|
import { getOwner } from '../-internals/owner/index.js';
|
|
6
|
-
import { g as get } from '../../shared-chunks/property_get-
|
|
7
|
-
import { s as set } from '../../shared-chunks/property_set-
|
|
8
|
-
import { g as getProperties } from '../../shared-chunks/get_properties-
|
|
9
|
-
import { s as setProperties } from '../../shared-chunks/set_properties-
|
|
6
|
+
import { g as get } from '../../shared-chunks/property_get-DAKgbeJX.js';
|
|
7
|
+
import { s as set } from '../../shared-chunks/property_set-BaQJdVfS.js';
|
|
8
|
+
import { g as getProperties } from '../../shared-chunks/get_properties-Dg3xFpiS.js';
|
|
9
|
+
import { s as setProperties } from '../../shared-chunks/set_properties-Qxhw4qzw.js';
|
|
10
10
|
import EmberObject from '../object/index.js';
|
|
11
11
|
import Evented from '../object/evented.js';
|
|
12
12
|
import { A } from '../array/index.js';
|
|
@@ -19,10 +19,10 @@ import { isTesting } from '../debug/lib/testing.js';
|
|
|
19
19
|
import '../engine/instance.js';
|
|
20
20
|
import { dependentKeyCompat } from '../object/compat.js';
|
|
21
21
|
import { once } from '../runloop/index.js';
|
|
22
|
-
import { c as hasInternalComponentManager } from '../../shared-chunks/api-
|
|
22
|
+
import { c as hasInternalComponentManager } from '../../shared-chunks/api-DlJKfm_f.js';
|
|
23
23
|
import '../../route-recognizer/index.js';
|
|
24
|
-
import '../../shared-chunks/rsvp-
|
|
25
|
-
import { S as STATE_SYMBOL, P as PARAMS_SYMBOL } from '../../shared-chunks/unrecognized-url-error-
|
|
24
|
+
import '../../shared-chunks/rsvp.es-DR7yS7qg.js';
|
|
25
|
+
import { S as STATE_SYMBOL, P as PARAMS_SYMBOL } from '../../shared-chunks/unrecognized-url-error-EgNrnFu_.js';
|
|
26
26
|
import generateController from './lib/generate_controller.js';
|
|
27
27
|
import { prefixRouteNameArg, stashParamNames, calculateCacheKey, normalizeControllerQueryParams } from './lib/utils.js';
|
|
28
28
|
import { a as decorateMethodV2 } from '../../shared-chunks/runtime-CYyqkz5q-BOdRhmsS.js';
|
|
@@ -762,7 +762,7 @@ class Route extends EmberObject.extend(ActionHandler, Evented) {
|
|
|
762
762
|
```
|
|
763
763
|
Note that for routes with dynamic segments, this hook is not always
|
|
764
764
|
executed. If the route is entered through a transition (e.g. when
|
|
765
|
-
using the `link-to`
|
|
765
|
+
using the `link-to` helper or the `transitionTo` method
|
|
766
766
|
of routes), and a model context is already provided this hook
|
|
767
767
|
is not called.
|
|
768
768
|
A model context does not include a primitive string or number,
|
|
@@ -890,7 +890,7 @@ class Route extends EmberObject.extend(ActionHandler, Evented) {
|
|
|
890
890
|
If you have defined a file for the post controller,
|
|
891
891
|
the framework will use it.
|
|
892
892
|
If it is not defined, a basic `Controller` instance would be used.
|
|
893
|
-
|
|
893
|
+
Example Behavior of a basic Controller
|
|
894
894
|
```app/routes/post.js
|
|
895
895
|
import Route from '@ember/routing/route';
|
|
896
896
|
export default class PostRoute extends Route {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getOwner } from '../-internals/owner/index.js';
|
|
2
2
|
import Evented from '../object/evented.js';
|
|
3
|
-
import {
|
|
4
|
-
import { t as tagFor } from '../../shared-chunks/meta-
|
|
5
|
-
import '../../shared-chunks/reference-
|
|
6
|
-
import '../../shared-chunks/observers-
|
|
7
|
-
import '../../shared-chunks/property_get-
|
|
3
|
+
import { c as consumeTag } from '../../shared-chunks/cache-CofLhaS4.js';
|
|
4
|
+
import { t as tagFor } from '../../shared-chunks/meta-BJtIZDir.js';
|
|
5
|
+
import '../../shared-chunks/reference-CG0yPgLy.js';
|
|
6
|
+
import '../../shared-chunks/observers-BmobpXAF.js';
|
|
7
|
+
import '../../shared-chunks/property_get-DAKgbeJX.js';
|
|
8
8
|
import { readOnly } from '../object/lib/computed/computed_macros.js';
|
|
9
9
|
import '../object/core.js';
|
|
10
10
|
import '../-internals/runtime/lib/mixins/comparable.js';
|
|
@@ -35,7 +35,7 @@ function cleanURL(url, rootURL) {
|
|
|
35
35
|
In this example, the Router service is injected into a component to initiate a transition
|
|
36
36
|
to a dedicated route:
|
|
37
37
|
|
|
38
|
-
```app/components/example.
|
|
38
|
+
```app/components/example.gjs
|
|
39
39
|
import Component from '@glimmer/component';
|
|
40
40
|
import { action } from '@ember/object';
|
|
41
41
|
import { service } from '@ember/service';
|
|
@@ -82,7 +82,7 @@ class RouterService extends Service.extend(Evented) {
|
|
|
82
82
|
In the following example we use the Router service to navigate to a route with a
|
|
83
83
|
specific model from a Component in the first action, and in the second we trigger
|
|
84
84
|
a query-params only transition.
|
|
85
|
-
```app/components/example.
|
|
85
|
+
```app/components/example.gjs
|
|
86
86
|
import Component from '@glimmer/component';
|
|
87
87
|
import { action } from '@ember/object';
|
|
88
88
|
import { service } from '@ember/service';
|
|
@@ -167,10 +167,14 @@ class RouterService extends Service.extend(Evented) {
|
|
|
167
167
|
URL is returned as a string that can be used for any purpose.
|
|
168
168
|
In this example, the URL for the `author.books` route for a given author
|
|
169
169
|
is copied to the clipboard.
|
|
170
|
-
```app/templates/application.
|
|
171
|
-
|
|
170
|
+
```app/templates/application.gjs
|
|
171
|
+
import CopyLink from '../components/copy-link';
|
|
172
|
+
|
|
173
|
+
<template>
|
|
174
|
+
<CopyLink @author={{hash id="tomster" name="Tomster"}} />
|
|
175
|
+
</template>
|
|
172
176
|
```
|
|
173
|
-
```app/components/copy-link.
|
|
177
|
+
```app/components/copy-link.gjs
|
|
174
178
|
import Component from '@glimmer/component';
|
|
175
179
|
import { service } from '@ember/service';
|
|
176
180
|
import { action } from '@ember/object';
|
|
@@ -189,10 +193,13 @@ class RouterService extends Service.extend(Evented) {
|
|
|
189
193
|
```
|
|
190
194
|
Just like with `transitionTo` and `replaceWith`, `urlFor` can also handle
|
|
191
195
|
query parameters.
|
|
192
|
-
```app/templates/application.
|
|
193
|
-
|
|
196
|
+
```app/templates/application.gjs
|
|
197
|
+
import CopyLink from '../components/copy-link';
|
|
198
|
+
<template>
|
|
199
|
+
<CopyLink @author={{hash id="tomster" name="Tomster"}} />
|
|
200
|
+
</template>
|
|
194
201
|
```
|
|
195
|
-
```app/components/copy-link.
|
|
202
|
+
```app/components/copy-link.gjs
|
|
196
203
|
import Component from '@glimmer/component';
|
|
197
204
|
import { service } from '@ember/service';
|
|
198
205
|
import { action } from '@ember/object';
|
|
@@ -229,7 +236,7 @@ class RouterService extends Service.extend(Evented) {
|
|
|
229
236
|
See [model](api/ember/release/classes/Route/methods/model?anchor=model) and
|
|
230
237
|
[queryParams](/api/ember/3.7/classes/Route/properties/queryParams?anchor=queryParams) for more information about these arguments.
|
|
231
238
|
In the following example, `isActive` will return `true` if the current route is `/posts`.
|
|
232
|
-
```app/components/posts.
|
|
239
|
+
```app/components/posts.gjs
|
|
233
240
|
import Component from '@glimmer/component';
|
|
234
241
|
import { service } from '@ember/service';
|
|
235
242
|
export default class extends Component {
|
|
@@ -241,7 +248,7 @@ class RouterService extends Service.extend(Evented) {
|
|
|
241
248
|
```
|
|
242
249
|
The next example includes a dynamic segment, and will return `true` if the current route is `/posts/1`,
|
|
243
250
|
assuming the post has an id of 1:
|
|
244
|
-
```app/components/posts.
|
|
251
|
+
```app/components/posts.gjs
|
|
245
252
|
import Component from '@glimmer/component';
|
|
246
253
|
import { service } from '@ember/service';
|
|
247
254
|
export default class extends Component {
|
|
@@ -315,7 +322,7 @@ class RouterService extends Service.extend(Evented) {
|
|
|
315
322
|
See [RouteInfo](/ember/release/classes/RouteInfo) for more info.
|
|
316
323
|
In the following example `recognize` is used to verify if a path belongs to our
|
|
317
324
|
application before transitioning to it.
|
|
318
|
-
```
|
|
325
|
+
```js
|
|
319
326
|
import Component from '@ember/component';
|
|
320
327
|
import { service } from '@ember/service';
|
|
321
328
|
export default class extends Component {
|
|
@@ -613,7 +620,7 @@ class RouterService extends Service.extend(Evented) {
|
|
|
613
620
|
happens (even when that transition only changes parameters
|
|
614
621
|
and doesn't change the active route).
|
|
615
622
|
Usage example:
|
|
616
|
-
```app/components/header.
|
|
623
|
+
```app/components/header.gjs
|
|
617
624
|
import Component from '@glimmer/component';
|
|
618
625
|
import { service } from '@ember/service';
|
|
619
626
|
import { notEmpty } from '@ember/object/computed';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { privatize } from '../-internals/container/index.js';
|
|
2
|
-
import {
|
|
3
|
-
import { g as get } from '../../shared-chunks/property_get-
|
|
4
|
-
import { s as set } from '../../shared-chunks/property_set-
|
|
2
|
+
import { c as computed } from '../../shared-chunks/computed-DtIStxvq.js';
|
|
3
|
+
import { g as get } from '../../shared-chunks/property_get-DAKgbeJX.js';
|
|
4
|
+
import { s as set } from '../../shared-chunks/property_set-BaQJdVfS.js';
|
|
5
5
|
import { getOwner } from '../owner/index.js';
|
|
6
6
|
import DSLImpl from './lib/dsl.js';
|
|
7
7
|
import RouterState from './lib/router_state.js';
|
|
@@ -13,8 +13,8 @@ import Evented from '../object/evented.js';
|
|
|
13
13
|
import { run, once, scheduleOnce, cancel } from '../runloop/index.js';
|
|
14
14
|
import { getRenderState, getFullQueryParams, hasDefaultSerialize, defaultSerialize } from './route.js';
|
|
15
15
|
import Router from '../../router_js/index.js';
|
|
16
|
-
import { S as STATE_SYMBOL,
|
|
17
|
-
import '../../shared-chunks/rsvp-
|
|
16
|
+
import { S as STATE_SYMBOL, l as logAbort } from '../../shared-chunks/unrecognized-url-error-EgNrnFu_.js';
|
|
17
|
+
import '../../shared-chunks/rsvp.es-DR7yS7qg.js';
|
|
18
18
|
import '../engine/instance.js';
|
|
19
19
|
|
|
20
20
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { onErrorTarget } from '../-internals/error-handling/index.js';
|
|
2
|
-
import { f as flushAsyncObservers } from '../../shared-chunks/observers-
|
|
2
|
+
import { f as flushAsyncObservers } from '../../shared-chunks/observers-BmobpXAF.js';
|
|
3
3
|
import Backburner from '../../backburner.js/index.js';
|
|
4
4
|
|
|
5
5
|
// Partial types from https://medium.com/codex/currying-in-typescript-ca5226c85b85
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FrameworkObject } from '../object/-internals.js';
|
|
2
2
|
import { deprecateUntil, DEPRECATIONS } from '../-internals/deprecations/index.js';
|
|
3
|
-
import { i as inject$1 } from '../../shared-chunks/injected_property-
|
|
3
|
+
import { i as inject$1 } from '../../shared-chunks/injected_property-Y-FadDej.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
@module @ember/service
|