ember-source 7.2.0-alpha.4 → 7.2.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.
- 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 +22 -16
- 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 +1132 -98
- 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 -35
- 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 +18 -34
- 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 +1 -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-Cgoi4ldD.js} +3 -25
- 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-B4o_4OLA.js +40 -0
- 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-Bg4r3CU4.js +57 -0
- package/dist/dev/packages/shared-chunks/{helper-Bm6EhgSW.js → helper--ZiOCQkd.js} +21 -9
- package/dist/dev/packages/shared-chunks/{index-DX90CU4L.js → index-BGP1rw3B.js} +1 -1
- package/dist/dev/packages/shared-chunks/{index-dyv6rcBf.js → index-C5Q8WHUG.js} +304 -201
- 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-JB6ln6bJ.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-CQqC2-wL.js} +29 -18
- 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-aLN_pQtn.js} +4 -4
- 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-Dovj1LIQ.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-B5TmhnQU.js} +14 -30
- 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-Csxuh1I7.js} +2 -6
- package/dist/dev/packages/shared-chunks/{unrecognized-url-error-BQdkjTtZ.js → unrecognized-url-error-DyurFqvv.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 +21 -15
- 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 +1132 -98
- 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 -35
- 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 +18 -34
- 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 +1 -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-BmBjPjkQ.js} +3 -25
- 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-DpBAICuC.js +40 -0
- 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-D31JO-BD.js +57 -0
- package/dist/prod/packages/shared-chunks/{helper-CCK8Ef0x.js → helper-Df5MpdcT.js} +21 -9
- package/dist/prod/packages/shared-chunks/{index-DabsnYit.js → index-BQaaoknf.js} +301 -198
- package/dist/prod/packages/shared-chunks/{index-D-rcNBLp.js → index-Bf53M8eS.js} +9 -8
- 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-Bm2-x-jD.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-8aS8t_5D.js} +29 -18
- 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-aLN_pQtn.js} +4 -4
- 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-DMAzVcVn.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-CQmTzSKe.js} +13 -29
- 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-BJb1p8EG.js} +2 -6
- package/dist/prod/packages/shared-chunks/{unrecognized-url-error-ClNyMFJt.js → unrecognized-url-error-DgXBAzKl.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 +1435 -1617
- package/package.json +6 -7
- package/types/stable/@ember/-internals/glimmer/index.d.ts +24 -353
- 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 +9 -3
- 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/each-in.d.ts +183 -72
- package/types/stable/@ember/-internals/glimmer/lib/helpers/element.d.ts +0 -22
- package/types/stable/@ember/-internals/glimmer/lib/helpers/mut.d.ts +25 -55
- package/types/stable/@ember/-internals/glimmer/lib/helpers/readonly.d.ts +7 -9
- package/types/stable/@ember/-internals/glimmer/lib/helpers/unbound.d.ts +6 -2
- package/types/stable/@ember/-internals/glimmer/lib/helpers/unique-id.d.ts +0 -3
- package/types/stable/@ember/-internals/glimmer/lib/renderer.d.ts +1 -2
- package/types/stable/@ember/-internals/glimmer/lib/syntax/mount.d.ts +18 -12
- package/types/stable/@ember/-internals/glimmer/lib/syntax/outlet.d.ts +23 -11
- 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 +1111 -90
- package/types/stable/@ember/object/compat.d.ts +0 -32
- 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 +0 -33
- package/types/stable/@glimmer/runtime/lib/helpers/concat.d.ts +0 -20
- package/types/stable/@glimmer/runtime/lib/helpers/fn.d.ts +0 -64
- package/types/stable/@glimmer/runtime/lib/helpers/get.d.ts +0 -77
- package/types/stable/@glimmer/runtime/lib/helpers/hash.d.ts +0 -36
- 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 -14
- package/dist/dev/packages/shared-chunks/get-CO3EIWsm.js +0 -138
- package/dist/dev/packages/shared-chunks/hash-2-93qikL.js +0 -192
- package/dist/prod/packages/shared-chunks/get-tlL23wmp.js +0 -138
- package/dist/prod/packages/shared-chunks/hash-C6IoC4eR.js +0 -192
- package/types/stable/@ember/-internals/glimmer/lib/helpers/array.d.ts +0 -41
- package/types/stable/@ember/-internals/glimmer/lib/helpers/component.d.ts +0 -149
- package/types/stable/@ember/-internals/glimmer/lib/helpers/concat.d.ts +0 -28
- package/types/stable/@ember/-internals/glimmer/lib/helpers/fn.d.ts +0 -73
- package/types/stable/@ember/-internals/glimmer/lib/helpers/get.d.ts +0 -100
- package/types/stable/@ember/-internals/glimmer/lib/helpers/hash.d.ts +0 -44
- package/types/stable/@ember/-internals/glimmer/lib/helpers/helper.d.ts +0 -43
- package/types/stable/@ember/-internals/glimmer/lib/helpers/if-unless.d.ts +0 -182
- package/types/stable/@ember/-internals/glimmer/lib/helpers/log.d.ts +0 -19
- package/types/stable/@ember/-internals/glimmer/lib/helpers/modifier.d.ts +0 -42
- package/types/stable/@ember/-internals/glimmer/lib/helpers/page-title.d.ts +0 -20
- package/types/stable/@ember/-internals/glimmer/lib/modifiers/on.d.ts +0 -95
- package/types/stable/@ember/-internals/glimmer/lib/syntax/in-element.d.ts +0 -47
- package/types/stable/@ember/-internals/glimmer/lib/syntax/let.d.ts +0 -55
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as consumeTag, b as createUpdatableTag, D as DIRTY_TAG } from '../../shared-chunks/cache-DGDPVCpC.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-C5Q8WHUG.js';
|
|
@@ -5,9 +5,9 @@ export { default as generateController, generateControllerFactory } from './lib/
|
|
|
5
5
|
export { default as BucketCache } from './lib/cache.js';
|
|
6
6
|
export { default as DSL } from './lib/dsl.js';
|
|
7
7
|
export { default as controllerFor } from './lib/controller_for.js';
|
|
8
|
-
import '../../shared-chunks/property_get-
|
|
8
|
+
import '../../shared-chunks/property_get-CRP7MFz_.js';
|
|
9
9
|
import '../debug/index.js';
|
|
10
10
|
import '../engine/instance.js';
|
|
11
11
|
import '../../route-recognizer/index.js';
|
|
12
|
-
import '../../shared-chunks/rsvp-
|
|
13
|
-
import '../../shared-chunks/unrecognized-url-error-
|
|
12
|
+
import '../../shared-chunks/rsvp-aLN_pQtn.js';
|
|
13
|
+
import '../../shared-chunks/unrecognized-url-error-DyurFqvv.js';
|
|
@@ -5,11 +5,11 @@ import { getEngineParent } from '../engine/lib/engine-parent.js';
|
|
|
5
5
|
import { flaggedInstrument } from '../instrumentation/index.js';
|
|
6
6
|
import { action } from '../object/index.js';
|
|
7
7
|
import { service } from '../service/index.js';
|
|
8
|
-
import {
|
|
9
|
-
import { t as tagFor } from '../../shared-chunks/meta-
|
|
8
|
+
import { c as consumeTag, g as createCache, h as getValue, u as untrack } from '../../shared-chunks/cache-DGDPVCpC.js';
|
|
9
|
+
import { t as tagFor } from '../../shared-chunks/meta-BqC7f9Ia.js';
|
|
10
10
|
import { on } from '../modifier/on.js';
|
|
11
|
-
import {
|
|
12
|
-
import { I as InternalComponent, o as opaquify } from '../../shared-chunks/internal-
|
|
11
|
+
import { t as templateFactory } from '../../shared-chunks/index-DaFzpTIE.js';
|
|
12
|
+
import { I as InternalComponent, o as opaquify } from '../../shared-chunks/internal-DTOXyEGM.js';
|
|
13
13
|
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../shared-chunks/runtime-CYyqkz5q-BOdRhmsS.js';
|
|
14
14
|
import { assert } from '../debug/lib/assert.js';
|
|
15
15
|
|
|
@@ -58,15 +58,23 @@ function isQueryParams(value) {
|
|
|
58
58
|
return typeof value === 'object' && value !== null && value['isQueryParams'] === true;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
/**
|
|
62
|
+
@module @ember/routing
|
|
63
|
+
*/
|
|
64
|
+
|
|
61
65
|
/**
|
|
62
66
|
The `LinkTo` component renders a link to the supplied `routeName` passing an optionally
|
|
63
67
|
supplied model to the route as its `model` context of the route. The block for `LinkTo`
|
|
64
68
|
becomes the contents of the rendered element:
|
|
65
69
|
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
+
```gjs
|
|
71
|
+
import { LinkTo } from '@ember/routing';
|
|
72
|
+
|
|
73
|
+
<template>
|
|
74
|
+
<LinkTo @route='photoGallery'>
|
|
75
|
+
Great Hamster Photos
|
|
76
|
+
</LinkTo>
|
|
77
|
+
</template>
|
|
70
78
|
```
|
|
71
79
|
|
|
72
80
|
This will result in:
|
|
@@ -261,35 +269,11 @@ function isQueryParams(value) {
|
|
|
261
269
|
</a>
|
|
262
270
|
```
|
|
263
271
|
|
|
264
|
-
@for Ember.Templates.components
|
|
265
|
-
@method LinkTo
|
|
266
|
-
@public
|
|
267
|
-
*/
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
@module @ember/routing
|
|
271
|
-
*/
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
See [Ember.Templates.components.LinkTo](/ember/release/classes/Ember.Templates.components/methods/input?anchor=LinkTo).
|
|
275
|
-
|
|
276
|
-
@for Ember.Templates.helpers
|
|
277
|
-
@method link-to
|
|
278
|
-
@see {Ember.Templates.components.LinkTo}
|
|
279
|
-
@public
|
|
280
|
-
**/
|
|
281
|
-
|
|
282
|
-
/**
|
|
283
|
-
An opaque interface which can be imported and used in strict-mode
|
|
284
|
-
templates to call <LinkTo>.
|
|
285
|
-
|
|
286
|
-
See [Ember.Templates.components.LinkTo](/ember/release/classes/Ember.Templates.components/methods/input?anchor=LinkTo).
|
|
287
|
-
|
|
288
272
|
@for @ember/routing
|
|
289
273
|
@method LinkTo
|
|
290
|
-
@
|
|
274
|
+
@static
|
|
291
275
|
@public
|
|
292
|
-
|
|
276
|
+
*/
|
|
293
277
|
|
|
294
278
|
class _LinkTo extends InternalComponent {
|
|
295
279
|
static toString() {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { g as get } from '../../../shared-chunks/property_get-
|
|
2
|
-
import Controller from '../../controller/index.js';
|
|
1
|
+
import { g as get } from '../../../shared-chunks/property_get-CRP7MFz_.js';
|
|
3
2
|
import { info } from '../../debug/index.js';
|
|
4
3
|
import { assert } from '../../debug/lib/assert.js';
|
|
5
4
|
|
|
@@ -54,7 +53,7 @@ function generateController(owner, controllerName) {
|
|
|
54
53
|
generateControllerFactory(owner, controllerName);
|
|
55
54
|
let fullName = `controller:${controllerName}`;
|
|
56
55
|
let instance = owner.lookup(fullName);
|
|
57
|
-
(!(instance
|
|
56
|
+
(!(instance != null && instance.isController === true) && assert('Expected an instance of controller', instance != null && instance.isController === true));
|
|
58
57
|
{
|
|
59
58
|
if (get(instance, 'namespace.LOG_ACTIVE_GENERATION')) {
|
|
60
59
|
info(`generated -> ${fullName}`, {
|
|
@@ -3,12 +3,12 @@ import '../../debug/index.js';
|
|
|
3
3
|
import '../../-internals/meta/lib/meta.js';
|
|
4
4
|
import { assert } from '../../debug/lib/assert.js';
|
|
5
5
|
import '../../../@glimmer/destroyable/index.js';
|
|
6
|
-
import '../../../shared-chunks/cache-
|
|
6
|
+
import '../../../shared-chunks/cache-DGDPVCpC.js';
|
|
7
7
|
import '../../../shared-chunks/mandatory-setter-BpbAMTzV.js';
|
|
8
|
-
import '../../../shared-chunks/reference-
|
|
9
|
-
import '../../../shared-chunks/decorator-
|
|
10
|
-
import '../../../shared-chunks/observers-
|
|
11
|
-
import '../../../shared-chunks/property_get-
|
|
8
|
+
import '../../../shared-chunks/reference-BqOLhKFy.js';
|
|
9
|
+
import '../../../shared-chunks/decorator-B5Uh5NFI.js';
|
|
10
|
+
import '../../../shared-chunks/observers-DMlX2nCi.js';
|
|
11
|
+
import '../../../shared-chunks/property_get-CRP7MFz_.js';
|
|
12
12
|
import { readOnly } from '../../object/lib/computed/computed_macros.js';
|
|
13
13
|
import '../../object/core.js';
|
|
14
14
|
import '../../-internals/runtime/lib/mixins/comparable.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { g as get } from '../../../shared-chunks/property_get-
|
|
1
|
+
import { g as get } from '../../../shared-chunks/property_get-CRP7MFz_.js';
|
|
2
2
|
import { getOwner } from '../../-internals/owner/index.js';
|
|
3
3
|
import '../../debug/index.js';
|
|
4
4
|
import EngineInstance from '../../engine/instance.js';
|
|
5
5
|
import '../../../route-recognizer/index.js';
|
|
6
|
-
import '../../../shared-chunks/rsvp-
|
|
7
|
-
import { S as STATE_SYMBOL } from '../../../shared-chunks/unrecognized-url-error-
|
|
6
|
+
import '../../../shared-chunks/rsvp-aLN_pQtn.js';
|
|
7
|
+
import { S as STATE_SYMBOL } from '../../../shared-chunks/unrecognized-url-error-DyurFqvv.js';
|
|
8
8
|
import { assert } from '../../debug/lib/assert.js';
|
|
9
9
|
|
|
10
10
|
const ALL_PERIODS_REGEX = /\./g;
|
|
@@ -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-DMlX2nCi.js';
|
|
3
|
+
import { c as computed, d as defineProperty } from '../../shared-chunks/computed-BPCtuOxQ.js';
|
|
4
|
+
import { d as descriptorForProperty } from '../../shared-chunks/decorator-B5Uh5NFI.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-CRP7MFz_.js';
|
|
7
|
+
import { s as set } from '../../shared-chunks/property_set-qCUylPEK.js';
|
|
8
|
+
import { g as getProperties } from '../../shared-chunks/get_properties-Cm2sWt5f.js';
|
|
9
|
+
import { s as setProperties } from '../../shared-chunks/set_properties-C4TSebH6.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';
|
|
@@ -20,10 +20,10 @@ import { info } from '../debug/index.js';
|
|
|
20
20
|
import EngineInstance from '../engine/instance.js';
|
|
21
21
|
import { dependentKeyCompat } from '../object/compat.js';
|
|
22
22
|
import { once } from '../runloop/index.js';
|
|
23
|
-
import { c as hasInternalComponentManager } from '../../shared-chunks/api-
|
|
23
|
+
import { c as hasInternalComponentManager } from '../../shared-chunks/api-DuLOZMO_.js';
|
|
24
24
|
import '../../route-recognizer/index.js';
|
|
25
|
-
import '../../shared-chunks/rsvp-
|
|
26
|
-
import { S as STATE_SYMBOL, P as PARAMS_SYMBOL } from '../../shared-chunks/unrecognized-url-error-
|
|
25
|
+
import '../../shared-chunks/rsvp-aLN_pQtn.js';
|
|
26
|
+
import { S as STATE_SYMBOL, P as PARAMS_SYMBOL } from '../../shared-chunks/unrecognized-url-error-DyurFqvv.js';
|
|
27
27
|
import generateController from './lib/generate_controller.js';
|
|
28
28
|
import { prefixRouteNameArg, stashParamNames, calculateCacheKey, normalizeControllerQueryParams } from './lib/utils.js';
|
|
29
29
|
import { a as decorateMethodV2 } from '../../shared-chunks/runtime-CYyqkz5q-BOdRhmsS.js';
|
|
@@ -769,7 +769,7 @@ class Route extends EmberObject.extend(ActionHandler, Evented) {
|
|
|
769
769
|
```
|
|
770
770
|
Note that for routes with dynamic segments, this hook is not always
|
|
771
771
|
executed. If the route is entered through a transition (e.g. when
|
|
772
|
-
using the `link-to`
|
|
772
|
+
using the `link-to` helper or the `transitionTo` method
|
|
773
773
|
of routes), and a model context is already provided this hook
|
|
774
774
|
is not called.
|
|
775
775
|
A model context does not include a primitive string or number,
|
|
@@ -897,7 +897,7 @@ class Route extends EmberObject.extend(ActionHandler, Evented) {
|
|
|
897
897
|
If you have defined a file for the post controller,
|
|
898
898
|
the framework will use it.
|
|
899
899
|
If it is not defined, a basic `Controller` instance would be used.
|
|
900
|
-
|
|
900
|
+
Example Behavior of a basic Controller
|
|
901
901
|
```app/routes/post.js
|
|
902
902
|
import Route from '@ember/routing/route';
|
|
903
903
|
export default class PostRoute extends Route {
|