ember-source 7.2.0-alpha.4 → 7.3.0-alpha.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/deprecations/index.js +10 -0
- 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 +8 -8
- package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/action_handler.js +1 -1
- package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/comparable.js +5 -0
- 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 +24 -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 +321 -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 -6
- 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 -19
- 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/compare.js +5 -2
- 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 +3 -3
- 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-DGUCLOud.js} +10 -11
- package/dist/dev/packages/shared-chunks/curly-brand-B_F79Dep.js +12 -0
- 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-brand-C9_8vvOf.js +12 -0
- package/dist/dev/packages/shared-chunks/{index-DX90CU4L.js → index-BGP1rw3B.js} +1 -1
- package/dist/dev/packages/shared-chunks/{index-dyv6rcBf.js → index-CCyXUNBa.js} +655 -1633
- 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/outlet-CHFL7tun.js +135 -0
- 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-BHdDJATP.js +951 -0
- 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-B8loxkay.js} +3 -3
- 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/deprecations/index.js +10 -0
- 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 +8 -8
- package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/action_handler.js +1 -1
- package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/comparable.js +5 -0
- 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 +19 -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 +305 -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 -5
- 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 -18
- 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/compare.js +5 -2
- 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 +3 -3
- 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-a6DP7r87.js} +10 -11
- package/dist/prod/packages/shared-chunks/curly-brand-B_F79Dep.js +12 -0
- 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-brand-C9_8vvOf.js +12 -0
- 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-npr2B-vu.js} +541 -1465
- 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/prod/packages/shared-chunks/outlet--lIm3q7t.js +132 -0
- 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-Dfu8EyLU.js +886 -0
- 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-jjQ-FqKB.js} +3 -3
- package/dist/{dev/packages/shared-chunks/vm-ops-5QCUIRx4.js → prod/packages/shared-chunks/vm-ops-ImHv0Wtg.js} +1 -1
- package/docs/data.json +616 -569
- package/package.json +8 -6
- package/types/stable/@ember/-internals/deprecations/index.d.ts +6 -0
- package/types/stable/@ember/-internals/glimmer/index.d.ts +165 -121
- package/types/stable/@ember/-internals/glimmer/lib/base-renderer.d.ts +150 -0
- package/types/stable/@ember/-internals/glimmer/lib/component-managers/curly-brand.d.ts +10 -0
- package/types/stable/@ember/-internals/glimmer/lib/component-managers/curly.d.ts +3 -2
- 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-brand.d.ts +10 -0
- package/types/stable/@ember/-internals/glimmer/lib/helper.d.ts +20 -10
- 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 +7 -155
- package/types/stable/@ember/-internals/glimmer/lib/router-resolver.d.ts +17 -0
- 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/renderer/index.d.ts +2 -2
- 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 +590 -585
- package/dist/dev/packages/shared-chunks/helper-Bm6EhgSW.js +0 -314
- package/dist/dev/packages/shared-chunks/setup-registry-C_YovxNX.js +0 -77
- package/dist/prod/packages/shared-chunks/helper-CCK8Ef0x.js +0 -298
- package/dist/prod/packages/shared-chunks/setup-registry-D14I0iDX.js +0 -74
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as default,
|
|
2
|
-
export { a as alias } from '../../shared-chunks/alias-
|
|
1
|
+
export { C as default, e as expandProperties } from '../../shared-chunks/computed-DtIStxvq.js';
|
|
2
|
+
export { a as alias } from '../../shared-chunks/alias-Bod6qdNp.js';
|
|
3
3
|
export { and, bool, deprecatingAlias, empty, equal, gt, gte, lt, lte, match, none, not, notEmpty, oneWay, or, readOnly, oneWay as reads } from './lib/computed/computed_macros.js';
|
|
4
4
|
export { collect, filter, filterBy, intersect, map, mapBy, max, min, setDiff, sort, sum, union, uniq, uniqBy } from './lib/computed/reduce_computed_macros.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { g as getFactoryFor, s as setFactoryFor } from '../../shared-chunks/container-BYOnjnwz.js';
|
|
2
2
|
import { getOwner } from '../-internals/owner/index.js';
|
|
3
|
-
import {
|
|
3
|
+
import { g as guidFor } from '../../shared-chunks/guid-Cbq2sNV_.js';
|
|
4
4
|
import { meta } from '../-internals/meta/lib/meta.js';
|
|
5
|
-
import '../../shared-chunks/property_get-
|
|
6
|
-
import { s as sendEvent } from '../../shared-chunks/events-
|
|
7
|
-
import { a as activateObserver } from '../../shared-chunks/observers-
|
|
8
|
-
import {
|
|
5
|
+
import '../../shared-chunks/property_get-DAKgbeJX.js';
|
|
6
|
+
import { s as sendEvent } from '../../shared-chunks/events-DYrYz3V8.js';
|
|
7
|
+
import { a as activateObserver } from '../../shared-chunks/observers-BmobpXAF.js';
|
|
8
|
+
import { d as descriptorForProperty } from '../../shared-chunks/decorator-9ikVwsjY.js';
|
|
9
9
|
import { registerDestructor, isDestroyed, isDestroying, destroy } from '../../@glimmer/destroyable/index.js';
|
|
10
|
-
import '../../shared-chunks/cache-
|
|
11
|
-
import '../../shared-chunks/reference-
|
|
10
|
+
import '../../shared-chunks/cache-CofLhaS4.js';
|
|
11
|
+
import '../../shared-chunks/reference-CG0yPgLy.js';
|
|
12
12
|
import Mixin, { applyMixin } from './mixin.js';
|
|
13
13
|
import '../-internals/runtime/lib/mixins/action_handler.js';
|
|
14
14
|
import makeArray from '../array/lib/make-array.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as hasListeners, r as removeListener, s as sendEvent, a as addListener } from '../../shared-chunks/events-
|
|
2
|
-
export { o as on } from '../../shared-chunks/events-
|
|
1
|
+
import { h as hasListeners, r as removeListener, s as sendEvent, a as addListener } from '../../shared-chunks/events-DYrYz3V8.js';
|
|
2
|
+
export { o as on } from '../../shared-chunks/events-DYrYz3V8.js';
|
|
3
3
|
import Mixin from './mixin.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as addListener, r as removeListener, s as sendEvent } from '../../shared-chunks/events-
|
|
1
|
+
export { a as addListener, r as removeListener, s as sendEvent } from '../../shared-chunks/events-DYrYz3V8.js';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { E as ENV } from '../../shared-chunks/env-DXxsTFkM.js';
|
|
2
|
-
import { s as setClassicDecorator,
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
2
|
+
import { s as setClassicDecorator, i as isElementDescriptor } from '../../shared-chunks/decorator-9ikVwsjY.js';
|
|
3
|
+
import { e as expandProperties } from '../../shared-chunks/computed-DtIStxvq.js';
|
|
4
|
+
export { c as computed, d as defineProperty, n as notifyPropertyChange } from '../../shared-chunks/computed-DtIStxvq.js';
|
|
5
5
|
import { g as getFactoryFor } from '../../shared-chunks/container-BYOnjnwz.js';
|
|
6
|
-
import {
|
|
6
|
+
import { s as setObservers } from '../../shared-chunks/super-BBBjgF69.js';
|
|
7
7
|
import CoreObject from './core.js';
|
|
8
8
|
import Observable from './observable.js';
|
|
9
|
-
export { g as get } from '../../shared-chunks/property_get-
|
|
10
|
-
export { s as set, t as trySet } from '../../shared-chunks/property_set-
|
|
11
|
-
export { g as getProperties } from '../../shared-chunks/get_properties-
|
|
12
|
-
export { s as setProperties } from '../../shared-chunks/set_properties-
|
|
9
|
+
export { g as get } from '../../shared-chunks/property_get-DAKgbeJX.js';
|
|
10
|
+
export { s as set, t as trySet } from '../../shared-chunks/property_set-BaQJdVfS.js';
|
|
11
|
+
export { g as getProperties } from '../../shared-chunks/get_properties-Dg3xFpiS.js';
|
|
12
|
+
export { s as setProperties } from '../../shared-chunks/set_properties-Qxhw4qzw.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
@module @ember/object
|
|
@@ -38,8 +38,8 @@ class EmberObject extends CoreObject.extend(Observable) {
|
|
|
38
38
|
Decorator that turns the target function into an Action which can be accessed
|
|
39
39
|
directly by reference.
|
|
40
40
|
|
|
41
|
-
```
|
|
42
|
-
import Component from '@
|
|
41
|
+
```gjs
|
|
42
|
+
import Component from '@glimmer/component';
|
|
43
43
|
import { tracked } from '@glimmer/tracking';
|
|
44
44
|
import { action } from '@ember/object';
|
|
45
45
|
|
|
@@ -50,24 +50,24 @@ class EmberObject extends CoreObject.extend(Observable) {
|
|
|
50
50
|
toggleShowing() {
|
|
51
51
|
this.isShowing = !this.isShowing;
|
|
52
52
|
}
|
|
53
|
+
|
|
54
|
+
<template>
|
|
55
|
+
<button {{on "click" this.toggleShowing}}>Show tooltip</button>
|
|
56
|
+
|
|
57
|
+
{{#if isShowing}}
|
|
58
|
+
<div class="tooltip">
|
|
59
|
+
I'm a tooltip!
|
|
60
|
+
</div>
|
|
61
|
+
{{/if}}
|
|
62
|
+
</template>
|
|
53
63
|
}
|
|
54
64
|
```
|
|
55
|
-
```hbs
|
|
56
|
-
<!-- template.hbs -->
|
|
57
|
-
<button {{on "click" this.toggleShowing}}>Show tooltip</button>
|
|
58
|
-
|
|
59
|
-
{{#if isShowing}}
|
|
60
|
-
<div class="tooltip">
|
|
61
|
-
I'm a tooltip!
|
|
62
|
-
</div>
|
|
63
|
-
{{/if}}
|
|
64
|
-
```
|
|
65
65
|
|
|
66
66
|
It also binds the function directly to the instance, so it can be used in any
|
|
67
67
|
context and will correctly refer to the class it came from:
|
|
68
68
|
|
|
69
|
-
```
|
|
70
|
-
import Component from '@
|
|
69
|
+
```gjs
|
|
70
|
+
import Component from '@glimmer/component';
|
|
71
71
|
import { tracked } from '@glimmer/tracking';
|
|
72
72
|
import { action } from '@ember/object';
|
|
73
73
|
|
|
@@ -86,6 +86,10 @@ class EmberObject extends CoreObject.extend(Observable) {
|
|
|
86
86
|
toggleShowing() {
|
|
87
87
|
this.isShowing = !this.isShowing;
|
|
88
88
|
}
|
|
89
|
+
|
|
90
|
+
<template>
|
|
91
|
+
{{!-- ...--}}
|
|
92
|
+
</template>
|
|
89
93
|
}
|
|
90
94
|
```
|
|
91
95
|
|
|
@@ -164,9 +168,10 @@ setClassicDecorator(action);
|
|
|
164
168
|
});
|
|
165
169
|
```
|
|
166
170
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
171
|
+
While observers are still supported, there are [plans to deprecate them](https://github.com/emberjs/rfcs/pull/1115)
|
|
172
|
+
See the [in-progress deprecation guide](https://github.com/ember-learn/deprecation-app/pull/1407)
|
|
173
|
+
for guidance on how to avoid using observers.
|
|
174
|
+
|
|
170
175
|
@method observer
|
|
171
176
|
@for @ember/object
|
|
172
177
|
@param {String} propertyNames*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { g as cacheFor } from '../../shared-chunks/computed_cache-DmYKevAP.js';
|
|
2
|
-
export {
|
|
3
|
-
import '../../shared-chunks/super-
|
|
2
|
+
export { g as guidFor } from '../../shared-chunks/guid-Cbq2sNV_.js';
|
|
3
|
+
import '../../shared-chunks/super-BBBjgF69.js';
|
|
4
4
|
import './index.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as alias } from '../../../../shared-chunks/alias-
|
|
3
|
-
import { g as get } from '../../../../shared-chunks/property_get-
|
|
4
|
-
import { s as set } from '../../../../shared-chunks/property_set-
|
|
1
|
+
import { c as computed, e as expandProperties } from '../../../../shared-chunks/computed-DtIStxvq.js';
|
|
2
|
+
import { a as alias } from '../../../../shared-chunks/alias-Bod6qdNp.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 isEmpty from '../../../utils/lib/is_empty.js';
|
|
6
6
|
import isNone from '../../../utils/lib/is_none.js';
|
|
7
7
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { g as get } from '../../../../shared-chunks/property_get-
|
|
1
|
+
import { c as computed, i as autoComputed } from '../../../../shared-chunks/computed-DtIStxvq.js';
|
|
2
|
+
import { g as get } from '../../../../shared-chunks/property_get-DAKgbeJX.js';
|
|
3
3
|
import compare from '../../../utils/lib/compare.js';
|
|
4
4
|
import EmberArray, { A, uniqBy as uniqBy$1 } from '../../../array/index.js';
|
|
5
5
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { peekMeta, meta } from '../-internals/meta/lib/meta.js';
|
|
2
|
-
import { R as ROOT, o as observerListenerMetaFor, w as wrap } from '../../shared-chunks/super-
|
|
3
|
-
import { n as nativeDescDecorator,
|
|
4
|
-
import { g as defineValue,
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { a as addListener, r as removeListener } from '../../shared-chunks/events-
|
|
2
|
+
import { R as ROOT, o as observerListenerMetaFor, w as wrap } from '../../shared-chunks/super-BBBjgF69.js';
|
|
3
|
+
import { n as nativeDescDecorator, a as isClassicDecorator, b as descriptorForDecorator, m as makeComputedDecorator } from '../../shared-chunks/decorator-9ikVwsjY.js';
|
|
4
|
+
import { g as defineValue, h as defineDecorator, C as ComputedProperty } from '../../shared-chunks/computed-DtIStxvq.js';
|
|
5
|
+
import { s as setUnprocessedMixins } from '../../shared-chunks/namespace_search-BfvzEQzN.js';
|
|
6
|
+
import { c as revalidateObservers, b as addObserver, r as removeObserver } from '../../shared-chunks/observers-BmobpXAF.js';
|
|
7
|
+
import { a as addListener, r as removeListener } from '../../shared-chunks/events-DYrYz3V8.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
@module @ember/object/mixin
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { peekMeta } from '../-internals/meta/lib/meta.js';
|
|
2
|
-
import { h as hasListeners } from '../../shared-chunks/events-
|
|
3
|
-
import { n as notifyPropertyChange,
|
|
4
|
-
import { r as removeObserver, b as addObserver } from '../../shared-chunks/observers-
|
|
5
|
-
import { g as get } from '../../shared-chunks/property_get-
|
|
6
|
-
import { s as set } from '../../shared-chunks/property_set-
|
|
7
|
-
import { g as getProperties } from '../../shared-chunks/get_properties-
|
|
8
|
-
import { s as setProperties } from '../../shared-chunks/set_properties-
|
|
2
|
+
import { h as hasListeners } from '../../shared-chunks/events-DYrYz3V8.js';
|
|
3
|
+
import { n as notifyPropertyChange, a as endPropertyChanges, b as beginPropertyChanges } from '../../shared-chunks/computed-DtIStxvq.js';
|
|
4
|
+
import { r as removeObserver, b as addObserver } from '../../shared-chunks/observers-BmobpXAF.js';
|
|
5
|
+
import { g as get } from '../../shared-chunks/property_get-DAKgbeJX.js';
|
|
6
|
+
import { s as set } from '../../shared-chunks/property_set-BaQJdVfS.js';
|
|
7
|
+
import { g as getProperties } from '../../shared-chunks/get_properties-Dg3xFpiS.js';
|
|
8
|
+
import { s as setProperties } from '../../shared-chunks/set_properties-Qxhw4qzw.js';
|
|
9
9
|
import Mixin from './mixin.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { b as addObserver, r as removeObserver } from '../../shared-chunks/observers-
|
|
1
|
+
export { b as addObserver, r as removeObserver } from '../../shared-chunks/observers-BmobpXAF.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as get } from '../../shared-chunks/property_get-
|
|
2
|
-
import { s as setProperties } from '../../shared-chunks/set_properties-
|
|
3
|
-
import {
|
|
1
|
+
import { g as get } from '../../shared-chunks/property_get-DAKgbeJX.js';
|
|
2
|
+
import { s as setProperties } from '../../shared-chunks/set_properties-Qxhw4qzw.js';
|
|
3
|
+
import { c as computed } from '../../shared-chunks/computed-DtIStxvq.js';
|
|
4
4
|
import Mixin from './mixin.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -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-npr2B-vu.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:
|