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,7 +1,7 @@
|
|
|
1
1
|
export { g as getComponentTemplate, s as setComponentTemplate } from '../../shared-chunks/template-Dc_cBOoX.js';
|
|
2
2
|
import { n as nativeDescDecorator } from '../../shared-chunks/decorator-9ikVwsjY.js';
|
|
3
|
-
import { g as get } from '../../shared-chunks/property_get-
|
|
4
|
-
import { P as PROPERTY_DID_CHANGE } from '../../shared-chunks/computed-
|
|
3
|
+
import { g as get } from '../../shared-chunks/property_get-DAKgbeJX.js';
|
|
4
|
+
import { P as PROPERTY_DID_CHANGE } from '../../shared-chunks/computed-DtIStxvq.js';
|
|
5
5
|
import { getOwner } from '../-internals/owner/index.js';
|
|
6
6
|
import TargetActionSupport from '../-internals/runtime/lib/mixins/target_action_support.js';
|
|
7
7
|
import ActionSupport from '../-internals/views/lib/mixins/action_support.js';
|
|
@@ -9,17 +9,17 @@ import { getViewElement, getChildViews, addChildView } from '../-internals/views
|
|
|
9
9
|
import CoreView from '../-internals/views/lib/views/core_view.js';
|
|
10
10
|
import '../object/index.js';
|
|
11
11
|
import { g as guidFor } from '../../shared-chunks/guid-Cbq2sNV_.js';
|
|
12
|
-
import { s as setInternalComponentManager } from '../../shared-chunks/api-
|
|
13
|
-
import {
|
|
12
|
+
import { s as setInternalComponentManager } from '../../shared-chunks/api-DlJKfm_f.js';
|
|
13
|
+
import { b as isUpdatableRef, u as updateRef } from '../../shared-chunks/reference-CG0yPgLy.js';
|
|
14
14
|
import { n as normalizeProperty } from '../../shared-chunks/props-fiqxqhAH.js';
|
|
15
|
-
import {
|
|
16
|
-
import { I as IS_DISPATCHING_ATTRS, D as DIRTY_TAG, B as BOUNDS, g as getComponentCapturedArgs, C as CURLY_COMPONENT_MANAGER } from '../../shared-chunks/curly-
|
|
15
|
+
import { r as createTag, D as DIRTY_TAG$1 } from '../../shared-chunks/cache-CofLhaS4.js';
|
|
16
|
+
import { I as IS_DISPATCHING_ATTRS, D as DIRTY_TAG, B as BOUNDS, g as getComponentCapturedArgs, C as CURLY_COMPONENT_MANAGER } from '../../shared-chunks/curly-IY06zACp.js';
|
|
17
17
|
import { h as hasDOM } from '../../shared-chunks/has-dom-DdQORPzI.js';
|
|
18
18
|
import { a as decorateMethodV2 } from '../../shared-chunks/runtime-CYyqkz5q-BOdRhmsS.js';
|
|
19
|
-
export { I as Input, T as Textarea } from '../../shared-chunks/textarea-
|
|
20
|
-
import { s as setComponentManager$1 } from '../../shared-chunks/api-
|
|
21
|
-
export { c as capabilities } from '../../shared-chunks/api-
|
|
22
|
-
import '../../shared-chunks/capabilities-
|
|
19
|
+
export { I as Input, T as Textarea } from '../../shared-chunks/textarea-DOmZ1x0E.js';
|
|
20
|
+
import { s as setComponentManager$1 } from '../../shared-chunks/api-B_poQGXS.js';
|
|
21
|
+
export { c as capabilities } from '../../shared-chunks/api-B_poQGXS.js';
|
|
22
|
+
import '../../shared-chunks/capabilities-BuVYh-vx.js';
|
|
23
23
|
|
|
24
24
|
let lazyEventsProcessed = new WeakMap();
|
|
25
25
|
const EMPTY_ARRAY = Object.freeze([]);
|
|
@@ -55,6 +55,12 @@ const EMPTY_ARRAY = Object.freeze([]);
|
|
|
55
55
|
API documentation for Template-only or Glimmer components, it is [available
|
|
56
56
|
here](/ember/release/modules/@glimmer%2Fcomponent).
|
|
57
57
|
|
|
58
|
+
Note: Prior to Ember 6.8, by default, components were authored in paired `.hbs` and `.js`
|
|
59
|
+
files. This is still supported, but the default authoring format is now `.gjs` or "template tag".
|
|
60
|
+
The documentation for `@ember/component` still refers to the older authoring format. To read about
|
|
61
|
+
the new authoring format, see the
|
|
62
|
+
[Glimmer Component API documentation](/ember/release/modules/@glimmer%2Fcomponent).
|
|
63
|
+
|
|
58
64
|
## Defining a Classic Component
|
|
59
65
|
|
|
60
66
|
If you want to customize the component in order to handle events, transform
|
|
@@ -81,7 +87,7 @@ const EMPTY_ARRAY = Object.freeze([]);
|
|
|
81
87
|
|
|
82
88
|
And then use it in the component's template:
|
|
83
89
|
|
|
84
|
-
```app/
|
|
90
|
+
```app/components/person-profile.hbs
|
|
85
91
|
<h1>{{this.displayName}}</h1>
|
|
86
92
|
{{yield}}
|
|
87
93
|
```
|
|
@@ -469,7 +475,7 @@ const EMPTY_ARRAY = Object.freeze([]);
|
|
|
469
475
|
The `layout` property should be set to the default export of a template
|
|
470
476
|
module, which is the name of a template file without the `.hbs` extension.
|
|
471
477
|
|
|
472
|
-
```app/
|
|
478
|
+
```app/components/person-profile.hbs
|
|
473
479
|
<h1>Person's Title</h1>
|
|
474
480
|
<div class='details'>{{yield}}</div>
|
|
475
481
|
```
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getOwner } from '../-internals/owner/index.js';
|
|
2
|
-
import { c as computed } from '../../shared-chunks/computed-
|
|
3
|
-
import { g as get } from '../../shared-chunks/property_get-
|
|
2
|
+
import { c as computed } from '../../shared-chunks/computed-DtIStxvq.js';
|
|
3
|
+
import { g as get } from '../../shared-chunks/property_get-DAKgbeJX.js';
|
|
4
4
|
import { FrameworkObject } from '../object/-internals.js';
|
|
5
|
-
import { i as inject$1 } from '../../shared-chunks/injected_property
|
|
5
|
+
import { i as inject$1 } from '../../shared-chunks/injected_property-Y-FadDej.js';
|
|
6
6
|
import Mixin from '../object/mixin.js';
|
|
7
7
|
import ActionHandler from '../-internals/runtime/lib/mixins/action_handler.js';
|
|
8
8
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { getOwner } from '../-internals/owner/index.js';
|
|
2
2
|
import { _backburner, next } from '../runloop/index.js';
|
|
3
|
-
import { g as get } from '../../shared-chunks/property_get-
|
|
3
|
+
import { g as get } from '../../shared-chunks/property_get-DAKgbeJX.js';
|
|
4
4
|
import { dasherize } from '../-internals/string/index.js';
|
|
5
5
|
import Namespace from '../application/namespace.js';
|
|
6
6
|
import EmberObject from '../object/index.js';
|
|
7
7
|
import { A } from '../array/index.js';
|
|
8
|
-
import {
|
|
9
|
-
import { t as tagFor } from '../../shared-chunks/meta-
|
|
8
|
+
import { e as createCache, c as consumeTag, u as untrack, g as getValue } from '../../shared-chunks/cache-CofLhaS4.js';
|
|
9
|
+
import { t as tagFor } from '../../shared-chunks/meta-BJtIZDir.js';
|
|
10
10
|
import '../../shared-chunks/env-DXxsTFkM.js';
|
|
11
11
|
import { assert } from './lib/assert.js';
|
|
12
12
|
|
|
@@ -4,14 +4,14 @@ import Namespace from '../application/namespace.js';
|
|
|
4
4
|
import { Registry } from '../-internals/container/index.js';
|
|
5
5
|
import DAG from '../../dag-map/index.js';
|
|
6
6
|
import ContainerDebugAdapter from '../debug/container-debug-adapter.js';
|
|
7
|
-
import { g as get } from '../../shared-chunks/property_get-
|
|
8
|
-
import { s as set } from '../../shared-chunks/property_set-
|
|
7
|
+
import { g as get } from '../../shared-chunks/property_get-DAKgbeJX.js';
|
|
8
|
+
import { s as set } from '../../shared-chunks/property_set-BaQJdVfS.js';
|
|
9
9
|
import EngineInstance from './instance.js';
|
|
10
10
|
import '../../route-recognizer/index.js';
|
|
11
|
-
import '../../shared-chunks/rsvp-
|
|
12
|
-
import '../../shared-chunks/unrecognized-url-error-
|
|
11
|
+
import '../../shared-chunks/rsvp.es-DR7yS7qg.js';
|
|
12
|
+
import '../../shared-chunks/unrecognized-url-error-EgNrnFu_.js';
|
|
13
13
|
import RoutingService from '../routing/lib/routing-service.js';
|
|
14
|
-
import { a as setupEngineRegistry } from '../../shared-chunks/setup-registry-
|
|
14
|
+
import { a as setupEngineRegistry } from '../../shared-chunks/setup-registry-U-6VaNQG.js';
|
|
15
15
|
import RegistryProxyMixin from '../-internals/runtime/lib/mixins/registry_proxy.js';
|
|
16
16
|
import { StrictResolver } from './lib/strict-resolver.js';
|
|
17
17
|
|
|
@@ -5,7 +5,7 @@ import { g as guidFor } from '../../shared-chunks/guid-Cbq2sNV_.js';
|
|
|
5
5
|
import { ENGINE_PARENT, setEngineParent, getEngineParent } from './lib/engine-parent.js';
|
|
6
6
|
import ContainerProxyMixin from '../-internals/runtime/lib/mixins/container_proxy.js';
|
|
7
7
|
import RegistryProxyMixin from '../-internals/runtime/lib/mixins/registry_proxy.js';
|
|
8
|
-
import { R as RSVP } from '../../shared-chunks/rsvp-
|
|
8
|
+
import { R as RSVP } from '../../shared-chunks/rsvp.es-DR7yS7qg.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
@module @ember/engine
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as setHelperManager$1 } from '../../shared-chunks/api-
|
|
2
|
-
import { i as helperCapabilities } from '../../shared-chunks/api-
|
|
3
|
-
import { i as invokeHelper$1 } from '../../shared-chunks/invoke-
|
|
4
|
-
import { a as array$1, f as fn$1, h as hash$1 } from '../../shared-chunks/hash-
|
|
5
|
-
import { c as concat$1, g as get$1 } from '../../shared-chunks/get-
|
|
6
|
-
import { a as and$1, e as eq$1, g as gt$1, b as gte$1, l as lt$1, c as lte$1, n as neq$1, d as not$1, o as or$1 } from '../../shared-chunks/
|
|
7
|
-
import { e as element$1 } from '../../shared-chunks/element-
|
|
8
|
-
import { u as uniqueId$1 } from '../../shared-chunks/unique-id-
|
|
1
|
+
import { b as setHelperManager$1 } from '../../shared-chunks/api-B_poQGXS.js';
|
|
2
|
+
import { i as helperCapabilities } from '../../shared-chunks/api-DlJKfm_f.js';
|
|
3
|
+
import { i as invokeHelper$1 } from '../../shared-chunks/invoke-DhQ5QRp2.js';
|
|
4
|
+
import { a as array$1, f as fn$1, h as hash$1 } from '../../shared-chunks/hash-gEXIsSO4.js';
|
|
5
|
+
import { c as concat$1, g as get$1 } from '../../shared-chunks/get-Dago5uGl.js';
|
|
6
|
+
import { a as and$1, e as eq$1, g as gt$1, b as gte$1, l as lt$1, c as lte$1, n as neq$1, d as not$1, o as or$1 } from '../../shared-chunks/not-BOIVROuv.js';
|
|
7
|
+
import { e as element$1 } from '../../shared-chunks/element-DgHdPZ8u.js';
|
|
8
|
+
import { u as uniqueId$1 } from '../../shared-chunks/unique-id-o2pS74go.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
@module @ember/helper
|
|
@@ -336,18 +336,12 @@ const invokeHelper = invokeHelper$1;
|
|
|
336
336
|
* as an argument to your components.
|
|
337
337
|
*
|
|
338
338
|
* ```
|
|
339
|
-
* import { hash } from '@ember/helper';
|
|
340
|
-
*
|
|
341
339
|
* <template>
|
|
342
340
|
* {{#each-in (hash givenName='Jen' familyName='Weber') as |key value|}}
|
|
343
341
|
* <p>{{key}}: {{value}}</p>
|
|
344
342
|
* {{/each-in}}
|
|
345
343
|
* </template>
|
|
346
344
|
* ```
|
|
347
|
-
*
|
|
348
|
-
* **NOTE:** this example uses the experimental `<template>` feature, which is
|
|
349
|
-
* the only place you need to import `hash` to use it (it is a built-in when
|
|
350
|
-
* writing standalone `.hbs` files).
|
|
351
345
|
*/
|
|
352
346
|
const hash = hash$1;
|
|
353
347
|
/**
|
|
@@ -355,7 +349,6 @@ const hash = hash$1;
|
|
|
355
349
|
* as an argument to your components.
|
|
356
350
|
*
|
|
357
351
|
* ```js
|
|
358
|
-
* import { array } from '@ember/helper';
|
|
359
352
|
*
|
|
360
353
|
* <template>
|
|
361
354
|
* <ul>
|
|
@@ -364,10 +357,6 @@ const hash = hash$1;
|
|
|
364
357
|
* {{/each}}
|
|
365
358
|
* </ul>
|
|
366
359
|
* </template>
|
|
367
|
-
*
|
|
368
|
-
* **NOTE:** this example uses the experimental `<template>` feature, which is
|
|
369
|
-
* the only place you need to import `array` to use it (it is a built-in when
|
|
370
|
-
* writing standalone `.hbs` files).
|
|
371
360
|
* ```
|
|
372
361
|
*/
|
|
373
362
|
const array = array$1;
|
|
@@ -388,10 +377,6 @@ const array = array$1;
|
|
|
388
377
|
*
|
|
389
378
|
* This will display the result of `@foo.item1` when `index` is `1`, and
|
|
390
379
|
* `this.foo.item2` when `index` is `2`, etc.
|
|
391
|
-
*
|
|
392
|
-
* **NOTE:** this example uses the experimental `<template>` feature, which is
|
|
393
|
-
* the only place you need to import `concat` to use it (it is a built-in when
|
|
394
|
-
* writing standalone `.hbs` files).
|
|
395
380
|
*/
|
|
396
381
|
const concat = concat$1;
|
|
397
382
|
/**
|
|
@@ -431,10 +416,6 @@ const concat = concat$1;
|
|
|
431
416
|
*
|
|
432
417
|
* This will display the result of `@foo.item1` when `index` is `1`, and
|
|
433
418
|
* `this.foo.item2` when `index` is `2`, etc.
|
|
434
|
-
*
|
|
435
|
-
* **NOTE:** this example uses the experimental `<template>` feature, which is
|
|
436
|
-
* the only place you need to import `concat` to use it (it is a built-in when
|
|
437
|
-
* writing standalone `.hbs` files).
|
|
438
419
|
*/
|
|
439
420
|
const get = get$1;
|
|
440
421
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as setModifierManager$1 } from '../../shared-chunks/api-
|
|
2
|
-
export { m as capabilities } from '../../shared-chunks/api-
|
|
1
|
+
import { d as setModifierManager$1 } from '../../shared-chunks/api-B_poQGXS.js';
|
|
2
|
+
export { m as capabilities } from '../../shared-chunks/api-B_poQGXS.js';
|
|
3
3
|
export { on } from './on.js';
|
|
4
4
|
|
|
5
5
|
// NOTE: this uses assignment to *require* that the `glimmerSetModifierManager`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as on$1 } from '../../shared-chunks/on-
|
|
1
|
+
import { o as on$1 } from '../../shared-chunks/on-BZHAxzdq.js';
|
|
2
2
|
|
|
3
3
|
// In normal TypeScript, this modifier is essentially an opaque token that just
|
|
4
4
|
// needs to be importable. Declaring it with a unique interface like this,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { s as setClassicDecorator, i as isElementDescriptor } from '../../shared-chunks/decorator-9ikVwsjY.js';
|
|
2
|
-
import { t as track, U as UPDATE_TAG,
|
|
3
|
-
import { t as tagFor } from '../../shared-chunks/meta-
|
|
2
|
+
import { t as track, U as UPDATE_TAG, c as consumeTag } from '../../shared-chunks/cache-CofLhaS4.js';
|
|
3
|
+
import { t as tagFor } from '../../shared-chunks/meta-BJtIZDir.js';
|
|
4
4
|
|
|
5
5
|
let wrapGetterSetter = function (target, key, desc) {
|
|
6
6
|
let {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as default, e as expandProperties } from '../../shared-chunks/computed-
|
|
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';
|
|
@@ -2,13 +2,13 @@ import { g as getFactoryFor, s as setFactoryFor } from '../../shared-chunks/cont
|
|
|
2
2
|
import { getOwner } from '../-internals/owner/index.js';
|
|
3
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-
|
|
5
|
+
import '../../shared-chunks/property_get-DAKgbeJX.js';
|
|
6
6
|
import { s as sendEvent } from '../../shared-chunks/events-DYrYz3V8.js';
|
|
7
|
-
import { a as activateObserver } from '../../shared-chunks/observers-
|
|
7
|
+
import { a as activateObserver } from '../../shared-chunks/observers-BmobpXAF.js';
|
|
8
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,15 +1,15 @@
|
|
|
1
1
|
import { E as ENV } from '../../shared-chunks/env-DXxsTFkM.js';
|
|
2
2
|
import { s as setClassicDecorator, i as isElementDescriptor } from '../../shared-chunks/decorator-9ikVwsjY.js';
|
|
3
|
-
import { e as expandProperties } from '../../shared-chunks/computed-
|
|
4
|
-
export { c as computed, d as defineProperty, n as notifyPropertyChange } from '../../shared-chunks/computed-
|
|
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
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,7 +1,7 @@
|
|
|
1
|
-
import { c as computed, e as expandProperties } from '../../../../shared-chunks/computed-
|
|
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 { c as computed, i as autoComputed } from '../../../../shared-chunks/computed-
|
|
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,9 +1,9 @@
|
|
|
1
1
|
import { peekMeta, meta } from '../-internals/meta/lib/meta.js';
|
|
2
2
|
import { R as ROOT, o as observerListenerMetaFor, w as wrap } from '../../shared-chunks/super-BBBjgF69.js';
|
|
3
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-
|
|
4
|
+
import { g as defineValue, h as defineDecorator, C as ComputedProperty } from '../../shared-chunks/computed-DtIStxvq.js';
|
|
5
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-
|
|
6
|
+
import { c as revalidateObservers, b as addObserver, r as removeObserver } from '../../shared-chunks/observers-BmobpXAF.js';
|
|
7
7
|
import { a as addListener, r as removeListener } from '../../shared-chunks/events-DYrYz3V8.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { peekMeta } from '../-internals/meta/lib/meta.js';
|
|
2
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-
|
|
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-
|
|
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 { c as computed } from '../../shared-chunks/computed-
|
|
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
|
/**
|