ember-source 7.2.0-alpha.3 → 7.2.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- 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/glimmer/index.js +11 -11
- package/dist/dev/packages/@ember/-internals/metal/index.js +15 -15
- 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/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/views/core_view.js +1 -1
- package/dist/dev/packages/@ember/application/index.js +5 -6
- package/dist/dev/packages/@ember/application/instance.js +3 -3
- package/dist/dev/packages/@ember/application/namespace.js +1 -1
- 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 +18 -12
- 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/engine/index.js +5 -5
- package/dist/dev/packages/@ember/engine/instance.js +1 -1
- 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/compat.js +2 -2
- package/dist/dev/packages/@ember/object/computed.js +2 -2
- package/dist/dev/packages/@ember/object/core.js +4 -4
- package/dist/dev/packages/@ember/object/index.js +28 -23
- package/dist/dev/packages/@ember/object/lib/computed/computed_macros.js +4 -4
- package/dist/dev/packages/@ember/object/lib/computed/reduce_computed_macros.js +2 -2
- package/dist/dev/packages/@ember/object/mixin.js +2 -2
- package/dist/dev/packages/@ember/object/observable.js +6 -6
- 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 +4 -4
- package/dist/dev/packages/@ember/routing/lib/utils.js +3 -3
- package/dist/dev/packages/@ember/routing/route.js +11 -11
- package/dist/dev/packages/@ember/routing/router-service.js +24 -17
- 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 +1 -1
- 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 +2 -2
- package/dist/dev/packages/@glimmer/opcode-compiler/index.js +2 -2
- package/dist/dev/packages/@glimmer/program/index.js +7 -7
- package/dist/dev/packages/@glimmer/reference/index.js +3 -3
- package/dist/dev/packages/@glimmer/runtime/index.js +12 -12
- 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/validator/index.js +3 -3
- package/dist/dev/packages/@glimmer/vm/index.js +1 -1
- package/dist/dev/packages/ember/version.js +1 -1
- package/dist/dev/packages/router_js/index.js +2 -2
- package/dist/dev/packages/rsvp/index.js +2281 -1
- package/dist/dev/packages/shared-chunks/{alias-ZcMQckQV.js → alias-DpqL1qx6.js} +6 -6
- package/dist/dev/packages/shared-chunks/{api-BAmlf_CN.js → api-BlZDPg1n.js} +5 -5
- package/dist/dev/packages/shared-chunks/{element-builder--iTIJyCB.js → api-C0PAtEgQ.js} +137 -118
- package/dist/dev/packages/shared-chunks/{api-BawZUDYD.js → api-DuLOZMO_.js} +3 -3
- package/dist/dev/packages/shared-chunks/{args-proxy-BNLuRFlO.js → args-proxy-CS5Brs3_.js} +2 -2
- package/dist/dev/packages/shared-chunks/{untouchable-this-B3DVwpHS.js → arguments-CDkbOqTS.js} +230 -230
- package/dist/dev/packages/shared-chunks/{array-Bh_kUjzy.js → array-CVEnNWng.js} +1 -1
- package/dist/dev/packages/shared-chunks/{cache-B7dqAS38.js → cache-DGDPVCpC.js} +1 -2
- package/dist/dev/packages/shared-chunks/{capabilities-CZkuOqqC.js → capabilities-CajW4QjE.js} +1 -1
- package/dist/dev/packages/shared-chunks/{chain-tags-D6tuFUj_.js → chain-tags-uWSImHzB.js} +3 -3
- package/dist/dev/packages/shared-chunks/{computed-CJnghmXC.js → computed-BPCtuOxQ.js} +4 -4
- package/dist/dev/packages/shared-chunks/{curly-BBzF_bI8.js → curly-Ei5G8jhk.js} +4 -4
- package/dist/dev/packages/shared-chunks/{element-DQJOvSlQ.js → element-BYLB-q7a.js} +5 -3
- package/dist/dev/packages/shared-chunks/{flags-B9qxc-pB.js → flags-BZxHQ0yn.js} +1 -1
- package/dist/dev/packages/shared-chunks/{get-D5b5QlqE.js → get-6I3sjd-I.js} +32 -35
- package/dist/{prod/packages/shared-chunks/get_properties-Nn08mLAH.js → dev/packages/shared-chunks/get_properties-Cm2sWt5f.js} +1 -1
- package/dist/dev/packages/shared-chunks/{hash-BRRFQJ99.js → hash-6NDs_5_f.js} +18 -12
- package/dist/dev/packages/shared-chunks/{helper-Do7NCZHI.js → helper-DIj85_-f.js} +21 -9
- package/dist/dev/packages/shared-chunks/{index-CwnQYqK5.js → index-B3pPx1fL.js} +111 -132
- package/dist/dev/packages/shared-chunks/{index-CyZiGiEI.js → index-DaFzpTIE.js} +4 -3
- package/dist/dev/packages/shared-chunks/{injected_property-B4T-FzZZ.js → injected_property-CbBLr5jt.js} +1 -1
- package/dist/dev/packages/shared-chunks/{internal-CAL-jHZt.js → internal-DTOXyEGM.js} +3 -3
- package/dist/dev/packages/shared-chunks/{internal-helper-Ez7zbEIa.js → internal-helper-CKrni0b_.js} +1 -1
- package/dist/dev/packages/shared-chunks/{invoke-B8M5fQQS.js → invoke-d9sqa50M.js} +3 -3
- package/dist/dev/packages/shared-chunks/{libraries-CHBwbR72.js → libraries-DwffpMGE.js} +1 -1
- package/dist/dev/packages/shared-chunks/{meta-BmRXesrk.js → meta-BqC7f9Ia.js} +1 -1
- package/dist/dev/packages/shared-chunks/{or-O0eJQ4K-.js → not-DYh6AY9Z.js} +36 -36
- package/dist/dev/packages/shared-chunks/{observers-C2DurkLG.js → observers-DMlX2nCi.js} +3 -3
- package/dist/dev/packages/shared-chunks/{on-BueSMv9L.js → on-DlF0Wy7P.js} +10 -10
- package/dist/dev/packages/shared-chunks/{program-DzAfcWFj.js → program-DlgjqLa6.js} +1 -1
- package/dist/dev/packages/shared-chunks/{program-context-CadjldRr.js → program-context-Dq8xN2HI.js} +3 -2
- package/dist/dev/packages/shared-chunks/{property_get-CIBS9umw.js → property_get-CRP7MFz_.js} +2 -2
- package/dist/dev/packages/shared-chunks/{property_set-D3PKyisF.js → property_set-qCUylPEK.js} +2 -2
- package/dist/dev/packages/shared-chunks/{reference-BoPB2LfI.js → reference-BqOLhKFy.js} +3 -3
- package/dist/dev/packages/shared-chunks/{rehydrate-builder-DCyIgnCR.js → rehydrate-builder-C6k1XhET.js} +1 -1
- package/dist/dev/packages/shared-chunks/{render-CpKaO-BO.js → render-87_sKZ_k.js} +86 -86
- package/dist/dev/packages/shared-chunks/{rsvp-CnCSY930.js → rsvp.es-DR7yS7qg.js} +150 -154
- package/dist/dev/packages/shared-chunks/{serialize-builder-DxgGRvH_.js → serialize-builder-BlxBjwO-.js} +1 -1
- package/dist/dev/packages/shared-chunks/{set_properties-BghuuGJx.js → set_properties-C4TSebH6.js} +2 -2
- package/dist/dev/packages/shared-chunks/{setup-registry-BC5VMvei.js → setup-registry-9DCmHTFF.js} +18 -18
- package/dist/dev/packages/shared-chunks/{syscall-ops-BPFtDquC.js → syscall-ops-CN7STuUn.js} +1 -1
- package/dist/dev/packages/shared-chunks/{template-only-BqOt8bDl.js → template-only-Cu639ICT.js} +2 -4
- package/dist/dev/packages/shared-chunks/{textarea-WSlUEr0y.js → textarea-C4lYkaHj.js} +11 -7
- package/dist/dev/packages/shared-chunks/{tracked-CKE4wnE6.js → tracked-DEyf0T_X.js} +4 -4
- package/dist/dev/packages/shared-chunks/{tracked-data-CGnA4ytZ.js → tracked-data-DgqqRdYO.js} +2 -2
- package/dist/dev/packages/shared-chunks/{unique-id-CgmHQiwi.js → unique-id-DQOhouG1.js} +2 -2
- package/dist/dev/packages/shared-chunks/{unrecognized-url-error-B3wUTorp.js → unrecognized-url-error-BJHjL30Q.js} +1 -1
- package/dist/prod/packages/@ember/-internals/glimmer/index.js +11 -11
- package/dist/prod/packages/@ember/-internals/metal/index.js +15 -15
- 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/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/views/core_view.js +1 -1
- package/dist/prod/packages/@ember/application/index.js +5 -6
- package/dist/prod/packages/@ember/application/instance.js +3 -3
- package/dist/prod/packages/@ember/application/namespace.js +1 -1
- 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 +18 -12
- 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 +1 -1
- 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/compat.js +2 -2
- package/dist/prod/packages/@ember/object/computed.js +2 -2
- package/dist/prod/packages/@ember/object/core.js +4 -4
- package/dist/prod/packages/@ember/object/index.js +28 -23
- 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 +2 -2
- package/dist/prod/packages/@ember/object/observable.js +6 -6
- package/dist/prod/packages/@ember/object/observers.js +1 -1
- package/dist/prod/packages/@ember/object/promise-proxy-mixin.js +3 -3
- package/dist/prod/packages/@ember/reactive/collections.js +153 -153
- package/dist/prod/packages/@ember/renderer/index.js +1 -1
- package/dist/prod/packages/@ember/routing/index.js +12 -8
- package/dist/prod/packages/@ember/routing/lib/generate_controller.js +1 -2
- package/dist/prod/packages/@ember/routing/lib/routing-service.js +4 -4
- package/dist/prod/packages/@ember/routing/lib/utils.js +3 -3
- package/dist/prod/packages/@ember/routing/route.js +11 -11
- 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 +8 -8
- package/dist/prod/packages/@glimmer/reference/index.js +4 -4
- 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 +2 -2
- package/dist/prod/packages/@glimmer/validator/index.js +3 -3
- package/dist/prod/packages/@glimmer/vm/index.js +1 -1
- package/dist/prod/packages/ember/version.js +1 -1
- package/dist/prod/packages/ember-template-compiler/index.js +2 -2
- package/dist/prod/packages/router_js/index.js +2 -2
- package/dist/prod/packages/rsvp/index.js +2281 -1
- package/dist/prod/packages/shared-chunks/{alias-DBW_V5vD.js → alias-Bod6qdNp.js} +6 -6
- package/dist/prod/packages/shared-chunks/{api-CM1trl_4.js → api-B_poQGXS.js} +5 -5
- package/dist/prod/packages/shared-chunks/{element-builder-CnlTPNyw.js → api-CQexacBn.js} +137 -118
- package/dist/prod/packages/shared-chunks/{api-zh_k31vb.js → api-DlJKfm_f.js} +3 -3
- package/dist/prod/packages/shared-chunks/{args-proxy-BDXbXCF9.js → args-proxy-CCoFtYLS.js} +2 -2
- package/dist/prod/packages/shared-chunks/{debug-render-tree-CF5O4-WI.js → arguments-BzAkZVBa.js} +193 -193
- package/dist/prod/packages/shared-chunks/{array-D6Couewv.js → array-BzReKMeW.js} +1 -1
- package/dist/prod/packages/shared-chunks/{cache-BIlOoPA7.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-C9rFtQ_x.js → chain-tags-B2J7DsxO.js} +3 -3
- package/dist/prod/packages/shared-chunks/{compiler-c4yUVrl_.js → compiler-lBSssiWp.js} +1 -1
- package/dist/prod/packages/shared-chunks/{computed-DjCIU_ht.js → computed-DtIStxvq.js} +4 -4
- package/dist/prod/packages/shared-chunks/{curly-ZzX43b50.js → curly-IY06zACp.js} +4 -4
- package/dist/prod/packages/shared-chunks/{element-DUOVW5Ho.js → element-DgHdPZ8u.js} +5 -3
- package/dist/prod/packages/shared-chunks/{flags-B9qxc-pB.js → flags-BZxHQ0yn.js} +1 -1
- package/dist/prod/packages/shared-chunks/{get-t0-itmA-.js → get-Dago5uGl.js} +33 -36
- package/dist/{dev/packages/shared-chunks/get_properties-CIm8IAtP.js → prod/packages/shared-chunks/get_properties-Dg3xFpiS.js} +1 -1
- package/dist/prod/packages/shared-chunks/{hash-mcs3pEFO.js → hash-gEXIsSO4.js} +24 -18
- package/dist/prod/packages/shared-chunks/{helper-DLjV2ZZW.js → helper-DkXiTBjc.js} +21 -9
- package/dist/prod/packages/shared-chunks/{index-Bj71BDDA.js → index-Bf53M8eS.js} +5 -4
- package/dist/prod/packages/shared-chunks/{index-qDFz6Mfe.js → index-CslMfEpb.js} +110 -131
- package/dist/prod/packages/shared-chunks/{injected_property--eJunJph.js → injected_property-Y-FadDej.js} +1 -1
- package/dist/prod/packages/shared-chunks/{internal-DidurjJB.js → internal-BQ7zHrqS.js} +3 -3
- package/dist/prod/packages/shared-chunks/{internal-helper-DIbr1RgC.js → internal-helper-Bz1lpDXr.js} +1 -1
- package/dist/prod/packages/shared-chunks/{invoke-Cj5zMqHz.js → invoke-DhQ5QRp2.js} +3 -3
- package/dist/prod/packages/shared-chunks/{libraries-_k-4KK5_.js → libraries-DBql0hdn.js} +1 -1
- package/dist/prod/packages/shared-chunks/{meta-B9mldqPL.js → meta-BJtIZDir.js} +1 -1
- package/dist/prod/packages/shared-chunks/{normalize-D9jDJVGg.js → normalize-C_IStty9.js} +1 -1
- package/dist/prod/packages/shared-chunks/{or-3AxY5TPj.js → not-BOIVROuv.js} +28 -28
- package/dist/prod/packages/shared-chunks/{observers-CDkeR0nI.js → observers-BmobpXAF.js} +3 -3
- package/dist/prod/packages/shared-chunks/{on-B5NVufs_.js → on-BZHAxzdq.js} +10 -10
- package/dist/prod/packages/shared-chunks/{program-B7CWdS8W.js → program-BAh__OXZ.js} +2 -2
- package/dist/prod/packages/shared-chunks/{program-context-B8HKU7wu.js → program-context-COSioH46.js} +3 -2
- package/dist/prod/packages/shared-chunks/{property_get-CAFdpRyu.js → property_get-DAKgbeJX.js} +2 -2
- package/dist/prod/packages/shared-chunks/{property_set-BunbMFtp.js → property_set-BaQJdVfS.js} +2 -2
- package/dist/prod/packages/shared-chunks/{reference-BshxG6wn.js → reference-CG0yPgLy.js} +3 -3
- package/dist/prod/packages/shared-chunks/{rehydrate-builder-DJ8k-6fg.js → rehydrate-builder-Blt1x9MP.js} +3 -3
- package/dist/prod/packages/shared-chunks/{render-DkJJmoI4.js → render-Dx7lr1hR.js} +88 -88
- package/dist/prod/packages/shared-chunks/{rsvp-CnCSY930.js → rsvp.es-DR7yS7qg.js} +150 -154
- package/dist/prod/packages/shared-chunks/{serialize-builder-R3Ozg0sC.js → serialize-builder-BvAXYHTr.js} +2 -2
- package/dist/prod/packages/shared-chunks/{set_properties-LT3RzRmJ.js → set_properties-Qxhw4qzw.js} +2 -2
- package/dist/prod/packages/shared-chunks/{setup-registry-C2KfZJWI.js → setup-registry-U-6VaNQG.js} +18 -18
- package/dist/prod/packages/shared-chunks/{syscall-ops-BPFtDquC.js → syscall-ops-CN7STuUn.js} +1 -1
- package/dist/prod/packages/shared-chunks/{template-only-BtLl0uH0.js → template-only-DKNcKM5b.js} +2 -4
- package/dist/prod/packages/shared-chunks/{textarea-CHqL0Rdh.js → textarea-DOmZ1x0E.js} +11 -7
- package/dist/prod/packages/shared-chunks/{tracked-DAVrVqJl.js → tracked-B9380JtC.js} +4 -4
- package/dist/prod/packages/shared-chunks/{tracked-data-C83f5V5S.js → tracked-data-CHq42QHb.js} +2 -2
- package/dist/prod/packages/shared-chunks/{unique-id-CfHImDRV.js → unique-id-o2pS74go.js} +2 -2
- package/dist/prod/packages/shared-chunks/{unrecognized-url-error-DDBwfzdm.js → unrecognized-url-error-EgNrnFu_.js} +1 -1
- package/docs/data.json +316 -334
- package/package.json +6 -4
- package/types/stable/@ember/-internals/glimmer/index.d.ts +165 -121
- package/types/stable/@ember/-internals/glimmer/lib/component-managers/mount.d.ts +1 -1
- package/types/stable/@ember/-internals/glimmer/lib/component-managers/outlet.d.ts +1 -1
- package/types/stable/@ember/-internals/glimmer/lib/component.d.ts +8 -2
- package/types/stable/@ember/-internals/glimmer/lib/glimmer-tracking-docs.d.ts +12 -12
- package/types/stable/@ember/-internals/glimmer/lib/helper.d.ts +18 -6
- package/types/stable/@ember/-internals/glimmer/lib/helpers/array.d.ts +3 -1
- package/types/stable/@ember/-internals/glimmer/lib/helpers/component.d.ts +65 -121
- package/types/stable/@ember/-internals/glimmer/lib/helpers/concat.d.ts +8 -4
- package/types/stable/@ember/-internals/glimmer/lib/helpers/each-in.d.ts +16 -14
- package/types/stable/@ember/-internals/glimmer/lib/helpers/element.d.ts +2 -0
- package/types/stable/@ember/-internals/glimmer/lib/helpers/fn.d.ts +11 -7
- package/types/stable/@ember/-internals/glimmer/lib/helpers/get.d.ts +23 -29
- package/types/stable/@ember/-internals/glimmer/lib/helpers/hash.d.ts +3 -1
- package/types/stable/@ember/-internals/glimmer/lib/helpers/if-unless.d.ts +95 -49
- package/types/stable/@ember/-internals/glimmer/lib/helpers/mut.d.ts +23 -54
- package/types/stable/@ember/-internals/glimmer/lib/helpers/page-title.d.ts +6 -2
- package/types/stable/@ember/-internals/glimmer/lib/helpers/readonly.d.ts +4 -8
- package/types/stable/@ember/-internals/glimmer/lib/modifiers/on.d.ts +10 -10
- package/types/stable/@ember/-internals/glimmer/lib/renderer.d.ts +1 -2
- package/types/stable/@ember/-internals/glimmer/lib/syntax/in-element.d.ts +2 -0
- package/types/stable/@ember/-internals/glimmer/lib/syntax/let.d.ts +2 -14
- package/types/stable/@ember/-internals/glimmer/lib/syntax/mount.d.ts +15 -11
- package/types/stable/@ember/-internals/glimmer/lib/syntax/outlet.d.ts +17 -10
- package/types/stable/@ember/-internals/runtime/lib/mixins/target_action_support.d.ts +1 -1
- package/types/stable/@ember/array/index.d.ts +6 -29
- package/types/stable/@ember/array/lib/is-array.d.ts +35 -0
- package/types/stable/@ember/component/template-only.d.ts +1 -3
- package/types/stable/@ember/controller/index.d.ts +1 -1
- package/types/stable/@ember/helper/index.d.ts +0 -19
- package/types/stable/@ember/object/index.d.ts +4 -3
- package/types/stable/@ember/object/observable.d.ts +4 -0
- package/types/stable/@ember/reactive/collections.d.ts +0 -6
- package/types/stable/@ember/routing/lib/generate_controller.d.ts +1 -1
- package/types/stable/@ember/routing/route.d.ts +2 -2
- package/types/stable/@ember/routing/router-service.d.ts +20 -12
- package/types/stable/@glimmer/runtime/lib/component/template-only.d.ts +0 -2
- package/types/stable/@glimmer/runtime/lib/dom/sanitized-values.d.ts +2 -2
- package/types/stable/@glimmer/runtime/lib/helpers/array.d.ts +1 -1
- package/types/stable/@glimmer/runtime/lib/helpers/concat.d.ts +8 -3
- package/types/stable/@glimmer/runtime/lib/helpers/fn.d.ts +13 -7
- package/types/stable/@glimmer/runtime/lib/helpers/get.d.ts +21 -29
- package/types/stable/@glimmer/runtime/lib/helpers/hash.d.ts +1 -1
- package/types/stable/@glimmer/syntax/lib/get-template-locals.d.ts +1 -1
- package/types/stable/@glimmer/tracking/index.d.ts +12 -12
- package/types/stable/index.d.ts +1 -0
- package/dist/prod/packages/shared-chunks/{collections-C3Y8z_9v.js → collections-GpG8lT2g.js} +9 -9
|
@@ -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 {
|
|
1
|
+
export { r as renderComponent, a as renderSettled } from '../../shared-chunks/index-B3pPx1fL.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.es-DR7yS7qg.js';
|
|
13
|
+
import '../../shared-chunks/unrecognized-url-error-BJHjL30Q.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 { t as templateFactory } from '../../shared-chunks/index-
|
|
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
|
|
|
@@ -63,10 +63,14 @@ function isQueryParams(value) {
|
|
|
63
63
|
supplied model to the route as its `model` context of the route. The block for `LinkTo`
|
|
64
64
|
becomes the contents of the rendered element:
|
|
65
65
|
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
```gjs
|
|
67
|
+
import { LinkTo } from '@ember/routing';
|
|
68
|
+
|
|
69
|
+
<template>
|
|
70
|
+
<LinkTo @route='photoGallery'>
|
|
71
|
+
Great Hamster Photos
|
|
72
|
+
</LinkTo>
|
|
73
|
+
</template>
|
|
70
74
|
```
|
|
71
75
|
|
|
72
76
|
This will result in:
|
|
@@ -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-
|
|
8
|
+
import '../../../shared-chunks/reference-BqOLhKFy.js';
|
|
9
9
|
import '../../../shared-chunks/decorator-B5Uh5NFI.js';
|
|
10
|
-
import '../../../shared-chunks/observers-
|
|
11
|
-
import '../../../shared-chunks/property_get-
|
|
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.es-DR7yS7qg.js';
|
|
7
|
+
import { S as STATE_SYMBOL } from '../../../shared-chunks/unrecognized-url-error-BJHjL30Q.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 {
|
|
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
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.es-DR7yS7qg.js';
|
|
26
|
+
import { S as STATE_SYMBOL, P as PARAMS_SYMBOL } from '../../shared-chunks/unrecognized-url-error-BJHjL30Q.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 {
|
|
@@ -4,13 +4,13 @@ import '../debug/index.js';
|
|
|
4
4
|
import '../-internals/meta/lib/meta.js';
|
|
5
5
|
import { assert } from '../debug/lib/assert.js';
|
|
6
6
|
import '../../@glimmer/destroyable/index.js';
|
|
7
|
-
import {
|
|
8
|
-
import { t as tagFor } from '../../shared-chunks/meta-
|
|
7
|
+
import { c as consumeTag } from '../../shared-chunks/cache-DGDPVCpC.js';
|
|
8
|
+
import { t as tagFor } from '../../shared-chunks/meta-BqC7f9Ia.js';
|
|
9
9
|
import '../../shared-chunks/mandatory-setter-BpbAMTzV.js';
|
|
10
|
-
import '../../shared-chunks/reference-
|
|
10
|
+
import '../../shared-chunks/reference-BqOLhKFy.js';
|
|
11
11
|
import '../../shared-chunks/decorator-B5Uh5NFI.js';
|
|
12
|
-
import '../../shared-chunks/observers-
|
|
13
|
-
import '../../shared-chunks/property_get-
|
|
12
|
+
import '../../shared-chunks/observers-DMlX2nCi.js';
|
|
13
|
+
import '../../shared-chunks/property_get-CRP7MFz_.js';
|
|
14
14
|
import { readOnly } from '../object/lib/computed/computed_macros.js';
|
|
15
15
|
import '../object/core.js';
|
|
16
16
|
import '../-internals/runtime/lib/mixins/comparable.js';
|
|
@@ -41,7 +41,7 @@ function cleanURL(url, rootURL) {
|
|
|
41
41
|
In this example, the Router service is injected into a component to initiate a transition
|
|
42
42
|
to a dedicated route:
|
|
43
43
|
|
|
44
|
-
```app/components/example.
|
|
44
|
+
```app/components/example.gjs
|
|
45
45
|
import Component from '@glimmer/component';
|
|
46
46
|
import { action } from '@ember/object';
|
|
47
47
|
import { service } from '@ember/service';
|
|
@@ -90,7 +90,7 @@ class RouterService extends Service.extend(Evented) {
|
|
|
90
90
|
In the following example we use the Router service to navigate to a route with a
|
|
91
91
|
specific model from a Component in the first action, and in the second we trigger
|
|
92
92
|
a query-params only transition.
|
|
93
|
-
```app/components/example.
|
|
93
|
+
```app/components/example.gjs
|
|
94
94
|
import Component from '@glimmer/component';
|
|
95
95
|
import { action } from '@ember/object';
|
|
96
96
|
import { service } from '@ember/service';
|
|
@@ -175,10 +175,14 @@ class RouterService extends Service.extend(Evented) {
|
|
|
175
175
|
URL is returned as a string that can be used for any purpose.
|
|
176
176
|
In this example, the URL for the `author.books` route for a given author
|
|
177
177
|
is copied to the clipboard.
|
|
178
|
-
```app/templates/application.
|
|
179
|
-
|
|
178
|
+
```app/templates/application.gjs
|
|
179
|
+
import CopyLink from '../components/copy-link';
|
|
180
|
+
|
|
181
|
+
<template>
|
|
182
|
+
<CopyLink @author={{hash id="tomster" name="Tomster"}} />
|
|
183
|
+
</template>
|
|
180
184
|
```
|
|
181
|
-
```app/components/copy-link.
|
|
185
|
+
```app/components/copy-link.gjs
|
|
182
186
|
import Component from '@glimmer/component';
|
|
183
187
|
import { service } from '@ember/service';
|
|
184
188
|
import { action } from '@ember/object';
|
|
@@ -197,10 +201,13 @@ class RouterService extends Service.extend(Evented) {
|
|
|
197
201
|
```
|
|
198
202
|
Just like with `transitionTo` and `replaceWith`, `urlFor` can also handle
|
|
199
203
|
query parameters.
|
|
200
|
-
```app/templates/application.
|
|
201
|
-
|
|
204
|
+
```app/templates/application.gjs
|
|
205
|
+
import CopyLink from '../components/copy-link';
|
|
206
|
+
<template>
|
|
207
|
+
<CopyLink @author={{hash id="tomster" name="Tomster"}} />
|
|
208
|
+
</template>
|
|
202
209
|
```
|
|
203
|
-
```app/components/copy-link.
|
|
210
|
+
```app/components/copy-link.gjs
|
|
204
211
|
import Component from '@glimmer/component';
|
|
205
212
|
import { service } from '@ember/service';
|
|
206
213
|
import { action } from '@ember/object';
|
|
@@ -237,7 +244,7 @@ class RouterService extends Service.extend(Evented) {
|
|
|
237
244
|
See [model](api/ember/release/classes/Route/methods/model?anchor=model) and
|
|
238
245
|
[queryParams](/api/ember/3.7/classes/Route/properties/queryParams?anchor=queryParams) for more information about these arguments.
|
|
239
246
|
In the following example, `isActive` will return `true` if the current route is `/posts`.
|
|
240
|
-
```app/components/posts.
|
|
247
|
+
```app/components/posts.gjs
|
|
241
248
|
import Component from '@glimmer/component';
|
|
242
249
|
import { service } from '@ember/service';
|
|
243
250
|
export default class extends Component {
|
|
@@ -249,7 +256,7 @@ class RouterService extends Service.extend(Evented) {
|
|
|
249
256
|
```
|
|
250
257
|
The next example includes a dynamic segment, and will return `true` if the current route is `/posts/1`,
|
|
251
258
|
assuming the post has an id of 1:
|
|
252
|
-
```app/components/posts.
|
|
259
|
+
```app/components/posts.gjs
|
|
253
260
|
import Component from '@glimmer/component';
|
|
254
261
|
import { service } from '@ember/service';
|
|
255
262
|
export default class extends Component {
|
|
@@ -323,7 +330,7 @@ class RouterService extends Service.extend(Evented) {
|
|
|
323
330
|
See [RouteInfo](/ember/release/classes/RouteInfo) for more info.
|
|
324
331
|
In the following example `recognize` is used to verify if a path belongs to our
|
|
325
332
|
application before transitioning to it.
|
|
326
|
-
```
|
|
333
|
+
```js
|
|
327
334
|
import Component from '@ember/component';
|
|
328
335
|
import { service } from '@ember/service';
|
|
329
336
|
export default class extends Component {
|
|
@@ -626,7 +633,7 @@ class RouterService extends Service.extend(Evented) {
|
|
|
626
633
|
happens (even when that transition only changes parameters
|
|
627
634
|
and doesn't change the active route).
|
|
628
635
|
Usage example:
|
|
629
|
-
```app/components/header.
|
|
636
|
+
```app/components/header.gjs
|
|
630
637
|
import Component from '@glimmer/component';
|
|
631
638
|
import { service } from '@ember/service';
|
|
632
639
|
import { notEmpty } from '@ember/object/computed';
|