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
package/dist/prod/packages/shared-chunks/{debug-render-tree-CF5O4-WI.js → arguments-BzAkZVBa.js}
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { u as unwrap, e as expect, c as isIndexable, d as dict, S as StackImpl } from './collections-C3Y8z_9v.js';
|
|
2
|
-
import { a as assign } from './object-utils-AijlD-JH.js';
|
|
3
1
|
import { a as $v0, b as $t1, c as $t0, d as $pc, e as $ra, f as $fp, g as $sp, h as $s1, $ as $s0 } from './registers-C_W2qYHJ.js';
|
|
4
2
|
import { s as setLocalDebugType } from './debug-brand-B1TWjOCH.js';
|
|
5
|
-
import {
|
|
3
|
+
import { e as expect, S as StackImpl, u as unwrap, c as isIndexable, d as dict } from './collections-GpG8lT2g.js';
|
|
4
|
+
import { c as createComputeRef, v as valueForRef, a as createConstRef, e as createPrimitiveRef, i as isConstRef, U as UNDEFINED_REFERENCE, N as NULL_REFERENCE, T as TRUE_REFERENCE, F as FALSE_REFERENCE, R as REFERENCE } from './reference-CG0yPgLy.js';
|
|
6
5
|
import { b as EMPTY_STRING_ARRAY, e as enumerate, c as emptyArray } from './array-utils-CZQxrdD3.js';
|
|
7
|
-
import { C as CONSTANT_TAG, I as INITIAL, v as validateTag,
|
|
6
|
+
import { C as CONSTANT_TAG, I as INITIAL, v as validateTag, c as consumeTag, a as valueForTag, o as beginTrackFrame, s as endTrackFrame, k as CURRENT_TAG } from './cache-CofLhaS4.js';
|
|
8
7
|
import { C as CURRIED_MODIFIER, a as CURRIED_COMPONENT } from './curried-BZnYakIg.js';
|
|
9
|
-
import { j as VM_SYSCALL_SIZE, k as VM_CHILD_SCOPE_OP, l as VM_POP_SCOPE_OP, m as VM_PUSH_DYNAMIC_SCOPE_OP, n as VM_POP_DYNAMIC_SCOPE_OP, o as VM_CONSTANT_OP, p as decodeHandle, q as VM_CONSTANT_REFERENCE_OP, r as VM_PRIMITIVE_OP, s as isHandle, t as decodeImmediate, u as VM_PRIMITIVE_REFERENCE_OP, v as VM_DUP_OP, w as VM_POP_OP, x as VM_LOAD_OP, y as VM_FETCH_OP, z as VM_BIND_DYNAMIC_SCOPE_OP, A as VM_ENTER_OP, B as VM_EXIT_OP, C as VM_PUSH_SYMBOL_TABLE_OP, D as VM_PUSH_BLOCK_SCOPE_OP, E as VM_COMPILE_BLOCK_OP, F as VM_INVOKE_YIELD_OP, G as VM_JUMP_IF_OP, H as VM_JUMP_UNLESS_OP, I as VM_JUMP_EQ_OP, b as VM_ASSERT_SAME_OP, J as VM_TO_BOOLEAN_OP, K as VM_TEXT_OP, L as VM_COMMENT_OP, M as VM_OPEN_ELEMENT_OP, N as VM_OPEN_DYNAMIC_ELEMENT_OP, O as VM_PUSH_REMOTE_ELEMENT_OP, P as VM_POP_REMOTE_ELEMENT_OP, Q as VM_FLUSH_ELEMENT_OP, R as VM_CLOSE_ELEMENT_OP, S as VM_MODIFIER_OP, T as VM_DYNAMIC_MODIFIER_OP, U as VM_STATIC_ATTR_OP, W as VM_DYNAMIC_ATTR_OP, X as VM_PUSH_COMPONENT_DEFINITION_OP, Y as VM_RESOLVE_DYNAMIC_COMPONENT_OP, e as VM_RESOLVE_CURRIED_COMPONENT_OP, f as VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP, Z as VM_PUSH_ARGS_OP, _ as VM_PUSH_EMPTY_ARGS_OP, $ as VM_CAPTURE_ARGS_OP, a0 as VM_PREPARE_ARGS_OP, a1 as VM_CREATE_COMPONENT_OP, a2 as VM_REGISTER_COMPONENT_DESTRUCTOR_OP, a3 as VM_BEGIN_COMPONENT_TRANSACTION_OP, a4 as VM_PUT_COMPONENT_OPERATIONS_OP, a5 as VM_COMPONENT_ATTR_OP, a6 as VM_STATIC_COMPONENT_ATTR_OP, a7 as VM_DID_CREATE_ELEMENT_OP, a8 as VM_GET_COMPONENT_SELF_OP, a9 as VM_GET_COMPONENT_TAG_NAME_OP, aa as VM_GET_COMPONENT_LAYOUT_OP, V as VM_MAIN_OP, ab as VM_POPULATE_LAYOUT_OP, ac as VM_VIRTUAL_ROOT_SCOPE_OP, ad as VM_SET_NAMED_VARIABLES_OP, ae as VM_SET_BLOCKS_OP, af as VM_INVOKE_COMPONENT_LAYOUT_OP, ag as VM_DID_RENDER_LAYOUT_OP, ah as VM_COMMIT_COMPONENT_TRANSACTION_OP } from './syscall-ops-
|
|
8
|
+
import { j as VM_SYSCALL_SIZE, k as VM_CHILD_SCOPE_OP, l as VM_POP_SCOPE_OP, m as VM_PUSH_DYNAMIC_SCOPE_OP, n as VM_POP_DYNAMIC_SCOPE_OP, o as VM_CONSTANT_OP, p as decodeHandle, q as VM_CONSTANT_REFERENCE_OP, r as VM_PRIMITIVE_OP, s as isHandle, t as decodeImmediate, u as VM_PRIMITIVE_REFERENCE_OP, v as VM_DUP_OP, w as VM_POP_OP, x as VM_LOAD_OP, y as VM_FETCH_OP, z as VM_BIND_DYNAMIC_SCOPE_OP, A as VM_ENTER_OP, B as VM_EXIT_OP, C as VM_PUSH_SYMBOL_TABLE_OP, D as VM_PUSH_BLOCK_SCOPE_OP, E as VM_COMPILE_BLOCK_OP, F as VM_INVOKE_YIELD_OP, G as VM_JUMP_IF_OP, H as VM_JUMP_UNLESS_OP, I as VM_JUMP_EQ_OP, b as VM_ASSERT_SAME_OP, J as VM_TO_BOOLEAN_OP, K as VM_TEXT_OP, L as VM_COMMENT_OP, M as VM_OPEN_ELEMENT_OP, N as VM_OPEN_DYNAMIC_ELEMENT_OP, O as VM_PUSH_REMOTE_ELEMENT_OP, P as VM_POP_REMOTE_ELEMENT_OP, Q as VM_FLUSH_ELEMENT_OP, R as VM_CLOSE_ELEMENT_OP, S as VM_MODIFIER_OP, T as VM_DYNAMIC_MODIFIER_OP, U as VM_STATIC_ATTR_OP, W as VM_DYNAMIC_ATTR_OP, X as VM_PUSH_COMPONENT_DEFINITION_OP, Y as VM_RESOLVE_DYNAMIC_COMPONENT_OP, e as VM_RESOLVE_CURRIED_COMPONENT_OP, f as VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP, Z as VM_PUSH_ARGS_OP, _ as VM_PUSH_EMPTY_ARGS_OP, $ as VM_CAPTURE_ARGS_OP, a0 as VM_PREPARE_ARGS_OP, a1 as VM_CREATE_COMPONENT_OP, a2 as VM_REGISTER_COMPONENT_DESTRUCTOR_OP, a3 as VM_BEGIN_COMPONENT_TRANSACTION_OP, a4 as VM_PUT_COMPONENT_OPERATIONS_OP, a5 as VM_COMPONENT_ATTR_OP, a6 as VM_STATIC_COMPONENT_ATTR_OP, a7 as VM_DID_CREATE_ELEMENT_OP, a8 as VM_GET_COMPONENT_SELF_OP, a9 as VM_GET_COMPONENT_TAG_NAME_OP, aa as VM_GET_COMPONENT_LAYOUT_OP, V as VM_MAIN_OP, ab as VM_POPULATE_LAYOUT_OP, ac as VM_VIRTUAL_ROOT_SCOPE_OP, ad as VM_SET_NAMED_VARIABLES_OP, ae as VM_SET_BLOCKS_OP, af as VM_INVOKE_COMPONENT_LAYOUT_OP, ag as VM_DID_RENDER_LAYOUT_OP, ah as VM_COMMIT_COMPONENT_TRANSACTION_OP } from './syscall-ops-CN7STuUn.js';
|
|
10
9
|
import { a as assert } from './assert-Zqc4wiAV.js';
|
|
11
10
|
import { u as unwrapTemplate } from './template-BRrQR6KS.js';
|
|
12
11
|
import { registerDestructor, destroy, associateDestroyableChild } from '../@glimmer/destroyable/index.js';
|
|
13
|
-
import { m as managerHasCapability } from './capabilities-
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
12
|
+
import { m as managerHasCapability } from './capabilities-BuVYh-vx.js';
|
|
13
|
+
import { a as assign } from './object-utils-AijlD-JH.js';
|
|
14
|
+
import { I as InternalComponentCapabilities } from './flags-BZxHQ0yn.js';
|
|
15
|
+
import { n as normalizeStringValue, C as ConcreteBounds } from './normalize-C_IStty9.js';
|
|
16
|
+
import { b as getInternalModifierManager } from './api-DlJKfm_f.js';
|
|
17
17
|
import { toBool } from '../@glimmer/global-context/index.js';
|
|
18
18
|
|
|
19
19
|
function CheckInstanceof(Class) {
|
|
@@ -48,34 +48,17 @@ function check(value, checker, message) {
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
55
|
-
evaluateOpcode = new Array(VM_SYSCALL_SIZE).fill(null);
|
|
56
|
-
constructor() {
|
|
57
|
-
}
|
|
58
|
-
add(name, evaluate, kind = 'syscall') {
|
|
59
|
-
this.evaluateOpcode[name] = {
|
|
60
|
-
syscall: kind !== 'machine',
|
|
61
|
-
evaluate
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
evaluate(vm, opcode, type) {
|
|
65
|
-
let operation = unwrap(this.evaluateOpcode[type]);
|
|
66
|
-
if (operation.syscall) {
|
|
67
|
-
assert(!opcode.isMachine, `BUG: Mismatch between operation.syscall (${operation.syscall}) and opcode.isMachine (${opcode.isMachine}) for ${opcode.type}`);
|
|
68
|
-
operation.evaluate(vm, opcode);
|
|
69
|
-
} else {
|
|
70
|
-
assert(opcode.isMachine, `BUG: Mismatch between operation.syscall (${operation.syscall}) and opcode.isMachine (${opcode.isMachine}) for ${opcode.type}`);
|
|
71
|
-
operation.evaluate(vm.lowlevel, opcode);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
51
|
+
/** @internal */
|
|
52
|
+
function hasCustomDebugRenderTreeLifecycle(manager) {
|
|
53
|
+
return 'getDebugCustomRenderTree' in manager;
|
|
74
54
|
}
|
|
75
|
-
|
|
76
|
-
|
|
55
|
+
|
|
56
|
+
function resolveComponent(resolver, constants, name, owner) {
|
|
57
|
+
let definition = resolver?.lookupComponent?.(name, expect(owner)) ?? null;
|
|
58
|
+
|
|
59
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme
|
|
60
|
+
return constants.resolvedComponent(definition, name);
|
|
77
61
|
}
|
|
78
|
-
const APPEND_OPCODES = new AppendOpcodes();
|
|
79
62
|
|
|
80
63
|
const TYPE = Symbol('TYPE');
|
|
81
64
|
const INNER = Symbol('INNER');
|
|
@@ -152,18 +135,186 @@ function curry(type, spec, owner, args, resolved = false) {
|
|
|
152
135
|
return new CurriedValue(type, spec, owner, args, resolved);
|
|
153
136
|
}
|
|
154
137
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
138
|
+
let GUID = 0;
|
|
139
|
+
class Ref {
|
|
140
|
+
id = GUID++;
|
|
141
|
+
value;
|
|
142
|
+
constructor(value) {
|
|
143
|
+
this.value = value;
|
|
144
|
+
}
|
|
145
|
+
get() {
|
|
146
|
+
return this.value;
|
|
147
|
+
}
|
|
148
|
+
release() {
|
|
149
|
+
this.value = null;
|
|
150
|
+
}
|
|
151
|
+
toString() {
|
|
152
|
+
let label = `Ref ${this.id}`;
|
|
153
|
+
if (this.value === null) {
|
|
154
|
+
return `${label} (released)`;
|
|
155
|
+
} else {
|
|
156
|
+
try {
|
|
157
|
+
// eslint-disable-next-line @typescript-eslint/no-base-to-string
|
|
158
|
+
return `${label}: ${this.value}`;
|
|
159
|
+
} catch {
|
|
160
|
+
return label;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
158
164
|
}
|
|
165
|
+
class DebugRenderTreeImpl {
|
|
166
|
+
stack = new StackImpl();
|
|
167
|
+
refs = new WeakMap();
|
|
168
|
+
roots = new Set();
|
|
169
|
+
nodes = new WeakMap();
|
|
170
|
+
begin() {
|
|
171
|
+
this.reset();
|
|
172
|
+
}
|
|
173
|
+
create(state, node) {
|
|
174
|
+
let internalNode = assign({}, node, {
|
|
175
|
+
bounds: null,
|
|
176
|
+
refs: new Set()
|
|
177
|
+
});
|
|
178
|
+
this.nodes.set(state, internalNode);
|
|
179
|
+
this.appendChild(internalNode, state);
|
|
180
|
+
this.enter(state);
|
|
181
|
+
}
|
|
182
|
+
update(state) {
|
|
183
|
+
this.enter(state);
|
|
184
|
+
}
|
|
185
|
+
didRender(state, bounds) {
|
|
186
|
+
this.nodeFor(state).bounds = bounds;
|
|
187
|
+
this.exit();
|
|
188
|
+
}
|
|
189
|
+
willDestroy(state) {
|
|
190
|
+
expect(this.refs.get(state)).release();
|
|
191
|
+
}
|
|
192
|
+
commit() {
|
|
193
|
+
this.reset();
|
|
194
|
+
}
|
|
195
|
+
capture() {
|
|
196
|
+
return this.captureRefs(this.roots);
|
|
197
|
+
}
|
|
198
|
+
reset() {
|
|
199
|
+
if (this.stack.size !== 0) {
|
|
200
|
+
// We probably encountered an error during the rendering loop. This will
|
|
201
|
+
// likely trigger undefined behavior and memory leaks as the error left
|
|
202
|
+
// things in an inconsistent state. It is recommended that the user
|
|
203
|
+
// refresh the page.
|
|
159
204
|
|
|
160
|
-
|
|
161
|
-
let definition = resolver?.lookupComponent?.(name, expect(owner)) ?? null;
|
|
205
|
+
// TODO: We could warn here? But this happens all the time in our tests?
|
|
162
206
|
|
|
163
|
-
|
|
164
|
-
|
|
207
|
+
// Clean up the root reference to prevent errors from happening if we
|
|
208
|
+
// attempt to capture the render tree (Ember Inspector may do this)
|
|
209
|
+
let root = expect(this.stack.toArray()[0]);
|
|
210
|
+
let ref = this.refs.get(root);
|
|
211
|
+
if (ref !== undefined) {
|
|
212
|
+
this.roots.delete(ref);
|
|
213
|
+
}
|
|
214
|
+
while (!this.stack.isEmpty()) {
|
|
215
|
+
this.stack.pop();
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
enter(state) {
|
|
220
|
+
this.stack.push(state);
|
|
221
|
+
}
|
|
222
|
+
exit() {
|
|
223
|
+
this.stack.pop();
|
|
224
|
+
}
|
|
225
|
+
nodeFor(state) {
|
|
226
|
+
return expect(this.nodes.get(state));
|
|
227
|
+
}
|
|
228
|
+
appendChild(node, state) {
|
|
229
|
+
let parent = this.stack.current;
|
|
230
|
+
let ref = new Ref(state);
|
|
231
|
+
this.refs.set(state, ref);
|
|
232
|
+
if (parent) {
|
|
233
|
+
let parentNode = this.nodeFor(parent);
|
|
234
|
+
parentNode.refs.add(ref);
|
|
235
|
+
node.parent = parentNode;
|
|
236
|
+
} else {
|
|
237
|
+
this.roots.add(ref);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
captureRefs(refs) {
|
|
241
|
+
let captured = [];
|
|
242
|
+
refs.forEach(ref => {
|
|
243
|
+
let state = ref.get();
|
|
244
|
+
if (state) {
|
|
245
|
+
captured.push(this.captureNode(`render-node:${ref.id}`, state));
|
|
246
|
+
} else {
|
|
247
|
+
refs.delete(ref);
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
return captured;
|
|
251
|
+
}
|
|
252
|
+
captureNode(id, state) {
|
|
253
|
+
let node = this.nodeFor(state);
|
|
254
|
+
let {
|
|
255
|
+
type,
|
|
256
|
+
name,
|
|
257
|
+
args,
|
|
258
|
+
instance,
|
|
259
|
+
refs
|
|
260
|
+
} = node;
|
|
261
|
+
let bounds = this.captureBounds(node);
|
|
262
|
+
let children = this.captureRefs(refs);
|
|
263
|
+
return {
|
|
264
|
+
id,
|
|
265
|
+
type,
|
|
266
|
+
name,
|
|
267
|
+
args: reifyArgsDebug(args),
|
|
268
|
+
instance,
|
|
269
|
+
bounds,
|
|
270
|
+
children
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
captureBounds(node) {
|
|
274
|
+
let bounds = expect(node.bounds);
|
|
275
|
+
let parentElement = bounds.parentElement();
|
|
276
|
+
let firstNode = bounds.firstNode();
|
|
277
|
+
let lastNode = bounds.lastNode();
|
|
278
|
+
return {
|
|
279
|
+
parentElement,
|
|
280
|
+
firstNode,
|
|
281
|
+
lastNode
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
function getDebugName(definition, manager = definition.manager) {
|
|
286
|
+
return definition.resolvedName ?? definition.debugName ?? manager.getDebugName(definition.state);
|
|
165
287
|
}
|
|
166
288
|
|
|
289
|
+
class AppendOpcodes {
|
|
290
|
+
// This code is intentionally putting unsafe `null`s into the array that it
|
|
291
|
+
// will intentionally overwrite before anyone can see them.
|
|
292
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
293
|
+
evaluateOpcode = new Array(VM_SYSCALL_SIZE).fill(null);
|
|
294
|
+
constructor() {
|
|
295
|
+
}
|
|
296
|
+
add(name, evaluate, kind = 'syscall') {
|
|
297
|
+
this.evaluateOpcode[name] = {
|
|
298
|
+
syscall: kind !== 'machine',
|
|
299
|
+
evaluate
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
evaluate(vm, opcode, type) {
|
|
303
|
+
let operation = unwrap(this.evaluateOpcode[type]);
|
|
304
|
+
if (operation.syscall) {
|
|
305
|
+
assert(!opcode.isMachine, `BUG: Mismatch between operation.syscall (${operation.syscall}) and opcode.isMachine (${opcode.isMachine}) for ${opcode.type}`);
|
|
306
|
+
operation.evaluate(vm, opcode);
|
|
307
|
+
} else {
|
|
308
|
+
assert(opcode.isMachine, `BUG: Mismatch between operation.syscall (${operation.syscall}) and opcode.isMachine (${opcode.isMachine}) for ${opcode.type}`);
|
|
309
|
+
operation.evaluate(vm.lowlevel, opcode);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
function externs(vm) {
|
|
314
|
+
return undefined;
|
|
315
|
+
}
|
|
316
|
+
const APPEND_OPCODES = new AppendOpcodes();
|
|
317
|
+
|
|
167
318
|
function createClassListRef(list) {
|
|
168
319
|
return createComputeRef(() => {
|
|
169
320
|
let ret = [];
|
|
@@ -1895,155 +2046,4 @@ const EMPTY_NAMED = Object.freeze(Object.create(null));
|
|
|
1895
2046
|
const EMPTY_POSITIONAL = EMPTY_REFERENCES;
|
|
1896
2047
|
const EMPTY_ARGS = createCapturedArgs(EMPTY_NAMED, EMPTY_POSITIONAL);
|
|
1897
2048
|
|
|
1898
|
-
let GUID = 0;
|
|
1899
|
-
class Ref {
|
|
1900
|
-
id = GUID++;
|
|
1901
|
-
value;
|
|
1902
|
-
constructor(value) {
|
|
1903
|
-
this.value = value;
|
|
1904
|
-
}
|
|
1905
|
-
get() {
|
|
1906
|
-
return this.value;
|
|
1907
|
-
}
|
|
1908
|
-
release() {
|
|
1909
|
-
this.value = null;
|
|
1910
|
-
}
|
|
1911
|
-
toString() {
|
|
1912
|
-
let label = `Ref ${this.id}`;
|
|
1913
|
-
if (this.value === null) {
|
|
1914
|
-
return `${label} (released)`;
|
|
1915
|
-
} else {
|
|
1916
|
-
try {
|
|
1917
|
-
// eslint-disable-next-line @typescript-eslint/no-base-to-string
|
|
1918
|
-
return `${label}: ${this.value}`;
|
|
1919
|
-
} catch {
|
|
1920
|
-
return label;
|
|
1921
|
-
}
|
|
1922
|
-
}
|
|
1923
|
-
}
|
|
1924
|
-
}
|
|
1925
|
-
class DebugRenderTreeImpl {
|
|
1926
|
-
stack = new StackImpl();
|
|
1927
|
-
refs = new WeakMap();
|
|
1928
|
-
roots = new Set();
|
|
1929
|
-
nodes = new WeakMap();
|
|
1930
|
-
begin() {
|
|
1931
|
-
this.reset();
|
|
1932
|
-
}
|
|
1933
|
-
create(state, node) {
|
|
1934
|
-
let internalNode = assign({}, node, {
|
|
1935
|
-
bounds: null,
|
|
1936
|
-
refs: new Set()
|
|
1937
|
-
});
|
|
1938
|
-
this.nodes.set(state, internalNode);
|
|
1939
|
-
this.appendChild(internalNode, state);
|
|
1940
|
-
this.enter(state);
|
|
1941
|
-
}
|
|
1942
|
-
update(state) {
|
|
1943
|
-
this.enter(state);
|
|
1944
|
-
}
|
|
1945
|
-
didRender(state, bounds) {
|
|
1946
|
-
this.nodeFor(state).bounds = bounds;
|
|
1947
|
-
this.exit();
|
|
1948
|
-
}
|
|
1949
|
-
willDestroy(state) {
|
|
1950
|
-
expect(this.refs.get(state)).release();
|
|
1951
|
-
}
|
|
1952
|
-
commit() {
|
|
1953
|
-
this.reset();
|
|
1954
|
-
}
|
|
1955
|
-
capture() {
|
|
1956
|
-
return this.captureRefs(this.roots);
|
|
1957
|
-
}
|
|
1958
|
-
reset() {
|
|
1959
|
-
if (this.stack.size !== 0) {
|
|
1960
|
-
// We probably encountered an error during the rendering loop. This will
|
|
1961
|
-
// likely trigger undefined behavior and memory leaks as the error left
|
|
1962
|
-
// things in an inconsistent state. It is recommended that the user
|
|
1963
|
-
// refresh the page.
|
|
1964
|
-
|
|
1965
|
-
// TODO: We could warn here? But this happens all the time in our tests?
|
|
1966
|
-
|
|
1967
|
-
// Clean up the root reference to prevent errors from happening if we
|
|
1968
|
-
// attempt to capture the render tree (Ember Inspector may do this)
|
|
1969
|
-
let root = expect(this.stack.toArray()[0]);
|
|
1970
|
-
let ref = this.refs.get(root);
|
|
1971
|
-
if (ref !== undefined) {
|
|
1972
|
-
this.roots.delete(ref);
|
|
1973
|
-
}
|
|
1974
|
-
while (!this.stack.isEmpty()) {
|
|
1975
|
-
this.stack.pop();
|
|
1976
|
-
}
|
|
1977
|
-
}
|
|
1978
|
-
}
|
|
1979
|
-
enter(state) {
|
|
1980
|
-
this.stack.push(state);
|
|
1981
|
-
}
|
|
1982
|
-
exit() {
|
|
1983
|
-
this.stack.pop();
|
|
1984
|
-
}
|
|
1985
|
-
nodeFor(state) {
|
|
1986
|
-
return expect(this.nodes.get(state));
|
|
1987
|
-
}
|
|
1988
|
-
appendChild(node, state) {
|
|
1989
|
-
let parent = this.stack.current;
|
|
1990
|
-
let ref = new Ref(state);
|
|
1991
|
-
this.refs.set(state, ref);
|
|
1992
|
-
if (parent) {
|
|
1993
|
-
let parentNode = this.nodeFor(parent);
|
|
1994
|
-
parentNode.refs.add(ref);
|
|
1995
|
-
node.parent = parentNode;
|
|
1996
|
-
} else {
|
|
1997
|
-
this.roots.add(ref);
|
|
1998
|
-
}
|
|
1999
|
-
}
|
|
2000
|
-
captureRefs(refs) {
|
|
2001
|
-
let captured = [];
|
|
2002
|
-
refs.forEach(ref => {
|
|
2003
|
-
let state = ref.get();
|
|
2004
|
-
if (state) {
|
|
2005
|
-
captured.push(this.captureNode(`render-node:${ref.id}`, state));
|
|
2006
|
-
} else {
|
|
2007
|
-
refs.delete(ref);
|
|
2008
|
-
}
|
|
2009
|
-
});
|
|
2010
|
-
return captured;
|
|
2011
|
-
}
|
|
2012
|
-
captureNode(id, state) {
|
|
2013
|
-
let node = this.nodeFor(state);
|
|
2014
|
-
let {
|
|
2015
|
-
type,
|
|
2016
|
-
name,
|
|
2017
|
-
args,
|
|
2018
|
-
instance,
|
|
2019
|
-
refs
|
|
2020
|
-
} = node;
|
|
2021
|
-
let bounds = this.captureBounds(node);
|
|
2022
|
-
let children = this.captureRefs(refs);
|
|
2023
|
-
return {
|
|
2024
|
-
id,
|
|
2025
|
-
type,
|
|
2026
|
-
name,
|
|
2027
|
-
args: reifyArgsDebug(args),
|
|
2028
|
-
instance,
|
|
2029
|
-
bounds,
|
|
2030
|
-
children
|
|
2031
|
-
};
|
|
2032
|
-
}
|
|
2033
|
-
captureBounds(node) {
|
|
2034
|
-
let bounds = expect(node.bounds);
|
|
2035
|
-
let parentElement = bounds.parentElement();
|
|
2036
|
-
let firstNode = bounds.firstNode();
|
|
2037
|
-
let lastNode = bounds.lastNode();
|
|
2038
|
-
return {
|
|
2039
|
-
parentElement,
|
|
2040
|
-
firstNode,
|
|
2041
|
-
lastNode
|
|
2042
|
-
};
|
|
2043
|
-
}
|
|
2044
|
-
}
|
|
2045
|
-
function getDebugName(definition, manager = definition.manager) {
|
|
2046
|
-
return definition.resolvedName ?? definition.debugName ?? manager.getDebugName(definition.state);
|
|
2047
|
-
}
|
|
2048
|
-
|
|
2049
2049
|
export { APPEND_OPCODES as A, BeginTrackFrameOpcode as B, CurriedValue as C, DebugRenderTreeImpl as D, EMPTY_ARGS as E, JumpIfNotModifiedOpcode as J, VMArgumentsImpl as V, EMPTY_NAMED as a, EMPTY_POSITIONAL as b, createCapturedArgs as c, curry as d, reifyNamed as e, reifyPositional as f, check as g, isCurriedType as h, isArgumentError as i, resolveCurriedValue as j, AssertFilter as k, externs as l, EndTrackFrameOpcode as m, reifyArgs as r };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { peekMeta } from '../@ember/-internals/meta/lib/meta.js';
|
|
2
2
|
import { s as sendEvent, a as addListener, r as removeListener } from './events-DYrYz3V8.js';
|
|
3
|
-
import { n as notifyPropertyChange } from './computed-
|
|
3
|
+
import { n as notifyPropertyChange } from './computed-DtIStxvq.js';
|
|
4
4
|
|
|
5
5
|
function arrayContentWillChange(array, startIdx, removeAmt, addAmt) {
|
|
6
6
|
// if no args are passed assume everything changes
|
|
@@ -27,7 +27,6 @@ const CONSTANT_TAG_ID = 3;
|
|
|
27
27
|
//////////
|
|
28
28
|
|
|
29
29
|
const COMPUTE = Symbol('TAG_COMPUTE');
|
|
30
|
-
Reflect.set(globalThis, 'COMPUTE_SYMBOL', COMPUTE);
|
|
31
30
|
|
|
32
31
|
//////////
|
|
33
32
|
|
|
@@ -368,4 +367,4 @@ function untrack(callback) {
|
|
|
368
367
|
}
|
|
369
368
|
}
|
|
370
369
|
|
|
371
|
-
export { ALLOW_CYCLES as A, CONSTANT_TAG as C, DIRTY_TAG as D, INITIAL as I, UPDATE_TAG as U, VOLATILE as V,
|
|
370
|
+
export { ALLOW_CYCLES as A, CONSTANT_TAG as C, DIRTY_TAG as D, INITIAL as I, UPDATE_TAG as U, VOLATILE as V, valueForTag as a, createUpdatableTag as b, consumeTag as c, combine as d, createCache as e, isTracking as f, getValue as g, COMPUTE as h, isConst as i, CONSTANT as j, CURRENT_TAG as k, CurrentTag as l, VOLATILE_TAG as m, VolatileTag as n, beginTrackFrame as o, beginUntrackFrame as p, bump as q, createTag as r, endTrackFrame as s, track as t, untrack as u, validateTag as v, endUntrackFrame as w, isConstTag as x, resetTracking as y };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { peekMeta, meta } from '../@ember/-internals/meta/lib/meta.js';
|
|
2
2
|
import { i as isObject } from './spec-BXl1reqK.js';
|
|
3
|
-
import { C as CONSTANT_TAG,
|
|
4
|
-
import { t as tagFor, d as dirtyTagFor, a as tagMetaFor } from './meta-
|
|
5
|
-
import { g as getCustomTagFor } from './args-proxy-
|
|
3
|
+
import { C as CONSTANT_TAG, d as combine, v as validateTag, b as createUpdatableTag, U as UPDATE_TAG } from './cache-CofLhaS4.js';
|
|
4
|
+
import { t as tagFor, d as dirtyTagFor, a as tagMetaFor } from './meta-BJtIZDir.js';
|
|
5
|
+
import { g as getCustomTagFor } from './args-proxy-CCoFtYLS.js';
|
|
6
6
|
|
|
7
7
|
function objectAt(array, index) {
|
|
8
8
|
if (Array.isArray(array)) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as isPresentArray, g as getFirst, b as getLast, u as unwrap, f as asPresentArray, e as expect, d as dict, m as mapPresentArray, h as exhausted } from './collections-
|
|
1
|
+
import { a as isPresentArray, g as getFirst, b as getLast, u as unwrap, f as asPresentArray, e as expect, d as dict, m as mapPresentArray, h as exhausted } from './collections-GpG8lT2g.js';
|
|
2
2
|
import { a as assert } from './assert-Zqc4wiAV.js';
|
|
3
3
|
import { assertNever } from '../@glimmer/util/index.js';
|
|
4
4
|
import { s as setLocalDebugType } from './debug-brand-B1TWjOCH.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { meta, peekMeta } from '../@ember/-internals/meta/lib/meta.js';
|
|
2
2
|
import { d as descriptorForProperty, a as isClassicDecorator, c as ComputedDescriptor, i as isElementDescriptor, m as makeComputedDecorator, b as descriptorForDecorator } from './decorator-9ikVwsjY.js';
|
|
3
|
-
import { c as revalidateObservers, d as flushSyncObservers, e as resumeObserverDeactivation, s as suspendedObserverDeactivation, b as addObserver, g as setObserverSuspended } from './observers-
|
|
3
|
+
import { c as revalidateObservers, d as flushSyncObservers, e as resumeObserverDeactivation, s as suspendedObserverDeactivation, b as addObserver, g as setObserverSuspended } from './observers-BmobpXAF.js';
|
|
4
4
|
import inspect from '../@ember/debug/lib/inspect.js';
|
|
5
|
-
import { v as validateTag, u as untrack, U as UPDATE_TAG,
|
|
6
|
-
import { a as tagMetaFor, t as tagFor } from './meta-
|
|
7
|
-
import { m as markObjectAsDirty, b as getChainTagsForKeys, f as finishLazyChains } from './chain-tags-
|
|
5
|
+
import { v as validateTag, u as untrack, U as UPDATE_TAG, a as valueForTag, c as consumeTag, A as ALLOW_CYCLES, t as track } from './cache-CofLhaS4.js';
|
|
6
|
+
import { a as tagMetaFor, t as tagFor } from './meta-BJtIZDir.js';
|
|
7
|
+
import { m as markObjectAsDirty, b as getChainTagsForKeys, f as finishLazyChains } from './chain-tags-B2J7DsxO.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
@module @ember/object
|
|
@@ -2,11 +2,11 @@ import { getOwner, setOwner } from '../@ember/-internals/owner/index.js';
|
|
|
2
2
|
import { g as guidFor } from './guid-Cbq2sNV_.js';
|
|
3
3
|
import { getViewElement, clearElementView, clearViewElement, addChildView, setViewElement, setElementView } from '../@ember/-internals/views/lib/system/utils.js';
|
|
4
4
|
import { _instrumentStart } from '../@ember/instrumentation/index.js';
|
|
5
|
-
import {
|
|
6
|
-
import { f as reifyPositional } from './
|
|
5
|
+
import { c as createComputeRef, v as valueForRef, e as createPrimitiveRef, f as childRefFor, g as childRefFromParts, a as createConstRef, b as isUpdatableRef, u as updateRef } from './reference-CG0yPgLy.js';
|
|
6
|
+
import { f as reifyPositional } from './arguments-BzAkZVBa.js';
|
|
7
7
|
import { E as EMPTY_ARRAY } from './array-utils-CZQxrdD3.js';
|
|
8
|
-
import {
|
|
9
|
-
import { g as get } from './property_get-
|
|
8
|
+
import { a as valueForTag, p as beginUntrackFrame, w as endUntrackFrame, o as beginTrackFrame, s as endTrackFrame, c as consumeTag, v as validateTag } from './cache-CofLhaS4.js';
|
|
9
|
+
import { g as get } from './property_get-DAKgbeJX.js';
|
|
10
10
|
import { dasherize } from '../@ember/-internals/string/index.js';
|
|
11
11
|
import { registerDestructor } from '../@glimmer/destroyable/index.js';
|
|
12
12
|
import { MUTABLE_CELL } from '../@ember/-internals/views/lib/compat/attrs.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as setInternalComponentManager } from './api-
|
|
3
|
-
import { i as internalHelper } from './internal-helper-
|
|
1
|
+
import { c as createComputeRef, v as valueForRef, N as NULL_REFERENCE } from './reference-CG0yPgLy.js';
|
|
2
|
+
import { s as setInternalComponentManager } from './api-DlJKfm_f.js';
|
|
3
|
+
import { i as internalHelper } from './internal-helper-Bz1lpDXr.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
@module @ember/helper
|
|
@@ -82,6 +82,8 @@ function getElementDefinition(tagName) {
|
|
|
82
82
|
Passing `null`, `undefined`, or non-string values will throw an assertion error.
|
|
83
83
|
|
|
84
84
|
Changing the tag name will tear down and recreate the element and its contents.
|
|
85
|
+
|
|
86
|
+
The `element` helper is built-in and does not need to be imported.
|
|
85
87
|
|
|
86
88
|
@method element
|
|
87
89
|
@for Ember.Templates.helpers
|
|
@@ -21,4 +21,4 @@ const TYPE_MASK = 0b00000000000000000000000011111111;
|
|
|
21
21
|
const OPERAND_LEN_MASK = 0b00000000000000000000001100000000;
|
|
22
22
|
const MACHINE_MASK = 0b00000000000000000000010000000000;
|
|
23
23
|
|
|
24
|
-
export { ARG_SHIFT as A, InternalComponentCapabilities as I, MACHINE_MASK as M, OPERAND_LEN_MASK as O, TYPE_MASK as T,
|
|
24
|
+
export { ARG_SHIFT as A, InternalComponentCapabilities as I, MACHINE_MASK as M, OPERAND_LEN_MASK as O, TYPE_MASK as T, TYPE_SIZE as a, MAX_SIZE as b };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { f as reifyPositional } from './
|
|
3
|
-
import { i as internalHelper } from './hash-
|
|
1
|
+
import { c as createComputeRef, U as UNDEFINED_REFERENCE, v as valueForRef } from './reference-CG0yPgLy.js';
|
|
2
|
+
import { f as reifyPositional } from './arguments-BzAkZVBa.js';
|
|
3
|
+
import { i as internalHelper } from './hash-gEXIsSO4.js';
|
|
4
4
|
import { setPath, getPath } from '../@glimmer/global-context/index.js';
|
|
5
|
-
import { i as isDict } from './collections-
|
|
5
|
+
import { i as isDict } from './collections-GpG8lT2g.js';
|
|
6
6
|
|
|
7
7
|
const isEmpty = value => {
|
|
8
8
|
return value === null || value === undefined || typeof value.toString !== 'function';
|
|
@@ -19,10 +19,15 @@ const normalizeTextValue = value => {
|
|
|
19
19
|
|
|
20
20
|
Example:
|
|
21
21
|
|
|
22
|
-
```handlebars
|
|
23
|
-
{{some-component name=(concat firstName " " lastName)}}
|
|
24
22
|
|
|
25
|
-
|
|
23
|
+
```gjs
|
|
24
|
+
import { concat } from '@ember/helper';
|
|
25
|
+
|
|
26
|
+
<template>
|
|
27
|
+
{{yield (concat firstName " " lastName)}}
|
|
28
|
+
|
|
29
|
+
{{! would yield name="<first name value> <last name value>" to the component}}
|
|
30
|
+
</template>
|
|
26
31
|
```
|
|
27
32
|
|
|
28
33
|
or for angle bracket invocation, you actually don't need concat at all.
|
|
@@ -46,28 +51,31 @@ const concat = internalHelper(({
|
|
|
46
51
|
|
|
47
52
|
For example, these two usages are equivalent:
|
|
48
53
|
|
|
49
|
-
```app/components/developer-detail.
|
|
54
|
+
```app/components/developer-detail.gjs
|
|
50
55
|
import Component from '@glimmer/component';
|
|
51
56
|
import { tracked } from '@glimmer/tracking';
|
|
57
|
+
import { get } from '@ember/object';
|
|
52
58
|
|
|
53
59
|
export default class extends Component {
|
|
54
60
|
@tracked developer = {
|
|
55
61
|
name: "Sandi Metz",
|
|
56
62
|
language: "Ruby"
|
|
57
63
|
}
|
|
64
|
+
|
|
65
|
+
<template>
|
|
66
|
+
{{this.developer.name}}
|
|
67
|
+
{{get this.developer "name"}}
|
|
68
|
+
</template>
|
|
58
69
|
}
|
|
59
70
|
```
|
|
60
71
|
|
|
61
|
-
```handlebars
|
|
62
|
-
{{this.developer.name}}
|
|
63
|
-
{{get this.developer "name"}}
|
|
64
|
-
```
|
|
65
|
-
|
|
66
72
|
If there were several facts about a person, the `{{get}}` helper can dynamically
|
|
67
73
|
pick one:
|
|
68
74
|
|
|
69
|
-
```app/templates/application.
|
|
70
|
-
<
|
|
75
|
+
```app/templates/application.gjs
|
|
76
|
+
<template>
|
|
77
|
+
<DeveloperDetail @factName="language" />
|
|
78
|
+
</template>
|
|
71
79
|
```
|
|
72
80
|
|
|
73
81
|
```handlebars
|
|
@@ -77,10 +85,11 @@ const concat = internalHelper(({
|
|
|
77
85
|
For a more complex example, this template would allow the user to switch
|
|
78
86
|
between showing the user's height and weight with a click:
|
|
79
87
|
|
|
80
|
-
```app/components/developer-detail.
|
|
88
|
+
```app/components/developer-detail.gjs
|
|
81
89
|
import Component from '@glimmer/component';
|
|
82
90
|
import { tracked } from '@glimmer/tracking';
|
|
83
|
-
|
|
91
|
+
import { get } from '@ember/object';
|
|
92
|
+
|
|
84
93
|
export default class extends Component {
|
|
85
94
|
@tracked developer = {
|
|
86
95
|
name: "Sandi Metz",
|
|
@@ -92,28 +101,16 @@ const concat = internalHelper(({
|
|
|
92
101
|
showFact = (fact) => {
|
|
93
102
|
this.currentFact = fact;
|
|
94
103
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
```app/components/developer-detail.js
|
|
99
|
-
{{get this.developer this.currentFact}}
|
|
100
|
-
|
|
101
|
-
<button {{on 'click' (fn this.showFact "name")}}>Show name</button>
|
|
102
|
-
<button {{on 'click' (fn this.showFact "language")}}>Show language</button>
|
|
103
|
-
```
|
|
104
|
+
|
|
105
|
+
<template>
|
|
106
|
+
{{get this.developer this.currentFact}}
|
|
104
107
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
<button {{on 'click' (fn this.showFact "name")}}>Show name</button>
|
|
111
|
-
<button {{on 'click' (fn this.showFact "language")}}>Show language</button>
|
|
108
|
+
<button {{on 'click' (fn this.showFact "name")}}>Show name</button>
|
|
109
|
+
<button {{on 'click' (fn this.showFact "language")}}>Show language</button>
|
|
110
|
+
</template>
|
|
111
|
+
}
|
|
112
112
|
```
|
|
113
113
|
|
|
114
|
-
Would allow the user to swap what fact is being displayed, and also edit
|
|
115
|
-
that fact via a two-way mutable binding.
|
|
116
|
-
|
|
117
114
|
@public
|
|
118
115
|
@method get
|
|
119
116
|
*/
|