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,17 +1,17 @@
|
|
|
1
1
|
import { a as assign } from './object-utils-AijlD-JH.js';
|
|
2
2
|
import { b as EMPTY_STRING_ARRAY, E as EMPTY_ARRAY, e as enumerate, r as reverse } from './array-utils-CZQxrdD3.js';
|
|
3
|
-
import { r as VM_PRIMITIVE_OP,
|
|
3
|
+
import { r as VM_PRIMITIVE_OP, aE as encodeHandle, au as VM_CONCAT_OP, al as VM_GET_VARIABLE_OP, q as VM_CONSTANT_REFERENCE_OP, ap as VM_GET_PROPERTY_OP, as as VM_HAS_BLOCK_OP, ar as VM_SPREAD_BLOCK_OP, E as VM_COMPILE_BLOCK_OP, at as VM_HAS_BLOCK_PARAMS_OP, av as VM_IF_INLINE_OP, aw as VM_NOT_OP, ax as VM_GET_DYNAMIC_VAR_OP, ay as VM_LOG_OP, y as VM_FETCH_OP, u as VM_PRIMITIVE_REFERENCE_OP, ak as VM_HELPER_OP, v as VM_DUP_OP, aj as VM_DYNAMIC_HELPER_OP, w as VM_POP_OP, $ as VM_CAPTURE_ARGS_OP, ai as VM_CURRY_OP, aF as isSmallInt, aG as encodeImmediate, m as VM_PUSH_DYNAMIC_SCOPE_OP, z as VM_BIND_DYNAMIC_SCOPE_OP, n as VM_POP_DYNAMIC_SCOPE_OP, aq as VM_GET_BLOCK_OP, F as VM_INVOKE_YIELD_OP, l as VM_POP_SCOPE_OP, k as VM_CHILD_SCOPE_OP, am as VM_SET_VARIABLE_OP, o as VM_CONSTANT_OP, D as VM_PUSH_BLOCK_SCOPE_OP, C as VM_PUSH_SYMBOL_TABLE_OP, _ as VM_PUSH_EMPTY_ARGS_OP, Z as VM_PUSH_ARGS_OP, A as VM_ENTER_OP, I as VM_JUMP_EQ_OP, B as VM_EXIT_OP, H as VM_JUMP_UNLESS_OP, X as VM_PUSH_COMPONENT_DEFINITION_OP, x as VM_LOAD_OP, a3 as VM_BEGIN_COMPONENT_TRANSACTION_OP, a1 as VM_CREATE_COMPONENT_OP, a2 as VM_REGISTER_COMPONENT_DESTRUCTOR_OP, a8 as VM_GET_COMPONENT_SELF_OP, ao as VM_ROOT_SCOPE_OP, an as VM_SET_BLOCK_OP, ag as VM_DID_RENDER_LAYOUT_OP, ah as VM_COMMIT_COMPONENT_TRANSACTION_OP, a0 as VM_PREPARE_ARGS_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, a4 as VM_PUT_COMPONENT_OPERATIONS_OP, N as VM_OPEN_DYNAMIC_ELEMENT_OP, a7 as VM_DID_CREATE_ELEMENT_OP, Q as VM_FLUSH_ELEMENT_OP, R as VM_CLOSE_ELEMENT_OP, e as VM_RESOLVE_CURRIED_COMPONENT_OP, Y as VM_RESOLVE_DYNAMIC_COMPONENT_OP, f as VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP, aa as VM_GET_COMPONENT_LAYOUT_OP, ab as VM_POPULATE_LAYOUT_OP, a9 as VM_GET_COMPONENT_TAG_NAME_OP, L as VM_COMMENT_OP, S as VM_MODIFIER_OP, T as VM_DYNAMIC_MODIFIER_OP, U as VM_STATIC_ATTR_OP, a6 as VM_STATIC_COMPONENT_ATTR_OP, W as VM_DYNAMIC_ATTR_OP, a5 as VM_COMPONENT_ATTR_OP, M as VM_OPEN_ELEMENT_OP, aA as VM_DEBUGGER_OP, K as VM_TEXT_OP, b as VM_ASSERT_SAME_OP, az as VM_DYNAMIC_CONTENT_TYPE_OP, O as VM_PUSH_REMOTE_ELEMENT_OP, P as VM_POP_REMOTE_ELEMENT_OP, J as VM_TO_BOOLEAN_OP, aB as VM_ENTER_LIST_OP, aD as VM_ITERATE_OP, aC as VM_EXIT_LIST_OP } from './syscall-ops-CN7STuUn.js';
|
|
4
4
|
import { b as VM_RETURN_OP, i as isMachineOp, f as VM_PUSH_FRAME_OP, e as VM_POP_FRAME_OP, d as VM_INVOKE_VIRTUAL_OP, c as VM_JUMP_OP, a as VM_RETURN_TO_OP, V as VM_INVOKE_STATIC_OP } from './vm-ops-ImHv0Wtg.js';
|
|
5
5
|
import { e as expect, u as unwrap, S as StackImpl, d as dict } from './collections-DPkjqeA3.js';
|
|
6
6
|
import { i as isPresentArray } from './present-B1rrjAVM.js';
|
|
7
7
|
import { a as assert } from './assert-Zqc4wiAV.js';
|
|
8
8
|
import { InstructionEncoderImpl } from '../@glimmer/encoder/index.js';
|
|
9
|
-
import {
|
|
9
|
+
import { a as TYPE_SIZE, A as ARG_SHIFT, M as MACHINE_MASK, I as InternalComponentCapabilities } from './flags-BZxHQ0yn.js';
|
|
10
10
|
import { d as debugToString } from './debug-to-string-C6LsA_qz.js';
|
|
11
11
|
import { o as opcodes } from './opcodes-CplRyHl_.js';
|
|
12
12
|
import { a as $v0, f as $fp, $ as $s0, g as $sp, h as $s1 } from './registers-C_W2qYHJ.js';
|
|
13
13
|
import { ContentType } from '../@glimmer/vm/index.js';
|
|
14
|
-
import { h as hasCapability } from './capabilities-
|
|
14
|
+
import { h as hasCapability } from './capabilities-CajW4QjE.js';
|
|
15
15
|
|
|
16
16
|
function isGetLikeTuple(opcode) {
|
|
17
17
|
return Array.isArray(opcode) && opcode.length === 2;
|
|
@@ -1612,6 +1612,7 @@ STATEMENTS.add(opcodes.Append, (op, [, value]) => {
|
|
|
1612
1612
|
op(VM_DYNAMIC_CONTENT_TYPE_OP);
|
|
1613
1613
|
}, when => {
|
|
1614
1614
|
when(ContentType.Component, () => {
|
|
1615
|
+
op(VM_ASSERT_SAME_OP);
|
|
1615
1616
|
op(VM_RESOLVE_CURRIED_COMPONENT_OP);
|
|
1616
1617
|
op(VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP);
|
|
1617
1618
|
InvokeNonStaticComponent(op, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getOwner } from '../@ember/-internals/owner/index.js';
|
|
2
2
|
import '../@ember/debug/index.js';
|
|
3
|
-
import { c as computed, d as defineProperty } from './computed-
|
|
3
|
+
import { c as computed, d as defineProperty } from './computed-BPCtuOxQ.js';
|
|
4
4
|
import { i as isElementDescriptor } from './decorator-B5Uh5NFI.js';
|
|
5
5
|
import { assert } from '../@ember/debug/lib/assert.js';
|
|
6
6
|
|
|
@@ -2,9 +2,9 @@ import { setOwner } from '../@ember/-internals/owner/index.js';
|
|
|
2
2
|
import { g as guidFor } from './guid-Cbq2sNV_.js';
|
|
3
3
|
import '../@ember/debug/index.js';
|
|
4
4
|
import { s as setComponentTemplate } from './template-R_5UMHhb.js';
|
|
5
|
-
import { s as setInternalComponentManager } from './api-
|
|
6
|
-
import { v as valueForRef, i as isConstRef,
|
|
7
|
-
import {
|
|
5
|
+
import { s as setInternalComponentManager } from './api-DuLOZMO_.js';
|
|
6
|
+
import { v as valueForRef, i as isConstRef, a as createConstRef } from './reference-BqOLhKFy.js';
|
|
7
|
+
import { u as untrack } from './cache-DGDPVCpC.js';
|
|
8
8
|
import { assert } from '../@ember/debug/lib/assert.js';
|
|
9
9
|
|
|
10
10
|
function NOOP() {}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { isDestroying, isDestroyed, associateDestroyableChild } from '../@glimmer/destroyable/index.js';
|
|
2
|
-
import { a as getInternalHelperManager, f as hasValue, h as hasDestroyable } from './api-
|
|
2
|
+
import { a as getInternalHelperManager, f as hasValue, h as hasDestroyable } from './api-DuLOZMO_.js';
|
|
3
3
|
import { getOwner } from '../@glimmer/owner/index.js';
|
|
4
|
-
import {
|
|
5
|
-
import { E as EMPTY_ARGS, a as EMPTY_NAMED, b as EMPTY_POSITIONAL } from './
|
|
4
|
+
import { g as createCache, h as getValue } from './cache-DGDPVCpC.js';
|
|
5
|
+
import { E as EMPTY_ARGS, a as EMPTY_NAMED, b as EMPTY_POSITIONAL } from './arguments-CDkbOqTS.js';
|
|
6
6
|
|
|
7
7
|
let ARGS_CACHES = new WeakMap() ;
|
|
8
8
|
function getArgs(proxy) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { warn, debug } from '../@ember/debug/index.js';
|
|
2
2
|
import VERSION from '../ember/version.js';
|
|
3
|
-
import { g as get } from './property_get-
|
|
3
|
+
import { g as get } from './property_get-CRP7MFz_.js';
|
|
4
4
|
import { assert } from '../@ember/debug/lib/assert.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as createUpdatableTag, d as unwrap, e as debug, D as DIRTY_TAG } from './cache-DGDPVCpC.js';
|
|
2
2
|
|
|
3
3
|
function isObjectLike(u) {
|
|
4
4
|
return typeof u === 'object' && u !== null || typeof u === 'function';
|
|
@@ -1,23 +1,6 @@
|
|
|
1
1
|
import { toBool } from '../@glimmer/global-context/index.js';
|
|
2
|
-
import {
|
|
3
|
-
import { i as internalHelper } from './hash-
|
|
4
|
-
|
|
5
|
-
const and = internalHelper(({
|
|
6
|
-
positional
|
|
7
|
-
}) => {
|
|
8
|
-
if (positional.length < 2) {
|
|
9
|
-
throw new Error(`\`and\` expects at least two arguments, but received ${positional.length}.`);
|
|
10
|
-
}
|
|
11
|
-
return createComputeRef(() => {
|
|
12
|
-
let last;
|
|
13
|
-
for (let i = 0; i < positional.length; i++) {
|
|
14
|
-
let arg = positional[i];
|
|
15
|
-
last = arg ? valueForRef(arg) : arg;
|
|
16
|
-
if (!toBool(last)) return last;
|
|
17
|
-
}
|
|
18
|
-
return last;
|
|
19
|
-
}, null, 'and');
|
|
20
|
-
});
|
|
2
|
+
import { c as createComputeRef, v as valueForRef } from './reference-BqOLhKFy.js';
|
|
3
|
+
import { i as internalHelper } from './hash-6NDs_5_f.js';
|
|
21
4
|
|
|
22
5
|
/**
|
|
23
6
|
* Performs a strict equality comparison.
|
|
@@ -31,6 +14,18 @@ function eq(left, right) {
|
|
|
31
14
|
return left === right;
|
|
32
15
|
}
|
|
33
16
|
|
|
17
|
+
/**
|
|
18
|
+
* Performs a strict inequality comparison.
|
|
19
|
+
*
|
|
20
|
+
* left !== right
|
|
21
|
+
*/
|
|
22
|
+
function neq(left, right) {
|
|
23
|
+
if (arguments.length !== 2) {
|
|
24
|
+
throw new Error(`\`neq\` expects exactly two arguments, but received ${arguments.length}.`);
|
|
25
|
+
}
|
|
26
|
+
return left !== right;
|
|
27
|
+
}
|
|
28
|
+
|
|
34
29
|
/**
|
|
35
30
|
* Performs a greater than comparison.
|
|
36
31
|
*
|
|
@@ -79,24 +74,22 @@ function lte(left, right) {
|
|
|
79
74
|
return left <= right;
|
|
80
75
|
}
|
|
81
76
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
function neq(left, right) {
|
|
88
|
-
if (arguments.length !== 2) {
|
|
89
|
-
throw new Error(`\`neq\` expects exactly two arguments, but received ${arguments.length}.`);
|
|
90
|
-
}
|
|
91
|
-
return left !== right;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
const not = (...args) => {
|
|
95
|
-
if (args.length !== 1) {
|
|
96
|
-
throw new Error(`\`not\` expects exactly one argument, but received ${args.length}.`);
|
|
77
|
+
const and = internalHelper(({
|
|
78
|
+
positional
|
|
79
|
+
}) => {
|
|
80
|
+
if (positional.length < 2) {
|
|
81
|
+
throw new Error(`\`and\` expects at least two arguments, but received ${positional.length}.`);
|
|
97
82
|
}
|
|
98
|
-
return
|
|
99
|
-
|
|
83
|
+
return createComputeRef(() => {
|
|
84
|
+
let last;
|
|
85
|
+
for (let i = 0; i < positional.length; i++) {
|
|
86
|
+
let arg = positional[i];
|
|
87
|
+
last = arg ? valueForRef(arg) : arg;
|
|
88
|
+
if (!toBool(last)) return last;
|
|
89
|
+
}
|
|
90
|
+
return last;
|
|
91
|
+
}, null, 'and');
|
|
92
|
+
});
|
|
100
93
|
|
|
101
94
|
const or = internalHelper(({
|
|
102
95
|
positional
|
|
@@ -115,4 +108,11 @@ const or = internalHelper(({
|
|
|
115
108
|
}, null, 'or');
|
|
116
109
|
});
|
|
117
110
|
|
|
111
|
+
const not = (...args) => {
|
|
112
|
+
if (args.length !== 1) {
|
|
113
|
+
throw new Error(`\`not\` expects exactly one argument, but received ${args.length}.`);
|
|
114
|
+
}
|
|
115
|
+
return !toBool(args[0]);
|
|
116
|
+
};
|
|
117
|
+
|
|
118
118
|
export { and as a, gte as b, lte as c, not as d, eq as e, gt as g, lt as l, neq as n, or as o };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { E as ENV } from './env-g-kaAFLN.js';
|
|
2
2
|
import { peekMeta } from '../@ember/-internals/meta/lib/meta.js';
|
|
3
3
|
import { registerDestructor } from '../@glimmer/destroyable/index.js';
|
|
4
|
-
import {
|
|
5
|
-
import { a as tagMetaFor } from './meta-
|
|
6
|
-
import { g as getChainTagsForKey } from './chain-tags-
|
|
4
|
+
import { a as valueForTag, v as validateTag, k as CURRENT_TAG } from './cache-DGDPVCpC.js';
|
|
5
|
+
import { a as tagMetaFor } from './meta-BqC7f9Ia.js';
|
|
6
|
+
import { g as getChainTagsForKey } from './chain-tags-uWSImHzB.js';
|
|
7
7
|
import { a as addListener, r as removeListener, s as sendEvent } from './events-6aFVjD4k.js';
|
|
8
8
|
|
|
9
9
|
const AFTER_OBSERVERS = ':change';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { g as buildUntouchableThis, h as check, e as reifyNamed } from './
|
|
1
|
+
import { g as buildUntouchableThis, h as check, e as reifyNamed } from './arguments-CDkbOqTS.js';
|
|
2
2
|
import { registerDestructor } from '../@glimmer/destroyable/index.js';
|
|
3
|
-
import { k as setInternalModifierManager } from './api-
|
|
4
|
-
import { v as valueForRef } from './reference-
|
|
5
|
-
import {
|
|
3
|
+
import { k as setInternalModifierManager } from './api-DuLOZMO_.js';
|
|
4
|
+
import { v as valueForRef } from './reference-BqOLhKFy.js';
|
|
5
|
+
import { b as createUpdatableTag } from './cache-DGDPVCpC.js';
|
|
6
6
|
|
|
7
7
|
const untouchableContext = buildUntouchableThis('`on` modifier');
|
|
8
8
|
class OnModifierState {
|
|
@@ -139,11 +139,7 @@ function addEventListener(element, eventName, callback, options) {
|
|
|
139
139
|
For example, if you'd like to run a function on your component when a `<button>`
|
|
140
140
|
in the components template is clicked you might do something like:
|
|
141
141
|
|
|
142
|
-
```app/components/like-post.
|
|
143
|
-
<button {{on 'click' this.saveLike}}>Like this post!</button>
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
```app/components/like-post.js
|
|
142
|
+
```app/components/like-post.gjs
|
|
147
143
|
import Component from '@glimmer/component';
|
|
148
144
|
import { action } from '@ember/object';
|
|
149
145
|
|
|
@@ -152,6 +148,10 @@ function addEventListener(element, eventName, callback, options) {
|
|
|
152
148
|
// someone likes your post!
|
|
153
149
|
// better send a request off to your server...
|
|
154
150
|
}
|
|
151
|
+
|
|
152
|
+
<template>
|
|
153
|
+
<button {{on 'click' this.saveLike}}>Like this post!</button>
|
|
154
|
+
</template>
|
|
155
155
|
}
|
|
156
156
|
```
|
|
157
157
|
|
|
@@ -199,7 +199,7 @@ function addEventListener(element, eventName, callback, options) {
|
|
|
199
199
|
properly bound to the `items-list`, but let's explore what happens if we
|
|
200
200
|
left out the arrow function:
|
|
201
201
|
|
|
202
|
-
```app/components/like-post.
|
|
202
|
+
```app/components/like-post.gjs
|
|
203
203
|
import Component from '@glimmer/component';
|
|
204
204
|
|
|
205
205
|
export default class LikePostComponent extends Component {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { u as unwrap } from './collections-DPkjqeA3.js';
|
|
2
|
-
import { O as OPERAND_LEN_MASK, A as ARG_SHIFT, M as MACHINE_MASK, T as TYPE_MASK } from './flags-
|
|
2
|
+
import { O as OPERAND_LEN_MASK, A as ARG_SHIFT, M as MACHINE_MASK, T as TYPE_MASK } from './flags-BZxHQ0yn.js';
|
|
3
3
|
|
|
4
4
|
class RuntimeOpImpl {
|
|
5
5
|
offset = 0;
|
package/dist/dev/packages/shared-chunks/{program-context-CadjldRr.js → program-context-Dq8xN2HI.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { V as VM_MAIN_OP, a as VM_CONTENT_TYPE_OP, b as VM_ASSERT_SAME_OP, c as VM_APPEND_HTML_OP, d as VM_APPEND_TEXT_OP, e as VM_RESOLVE_CURRIED_COMPONENT_OP, f as VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP, g as VM_APPEND_SAFE_HTML_OP, h as VM_APPEND_DOCUMENT_FRAGMENT_OP, i as VM_APPEND_NODE_OP } from './syscall-ops-
|
|
1
|
+
import { V as VM_MAIN_OP, a as VM_CONTENT_TYPE_OP, b as VM_ASSERT_SAME_OP, c as VM_APPEND_HTML_OP, d as VM_APPEND_TEXT_OP, e as VM_RESOLVE_CURRIED_COMPONENT_OP, f as VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP, g as VM_APPEND_SAFE_HTML_OP, h as VM_APPEND_DOCUMENT_FRAGMENT_OP, i as VM_APPEND_NODE_OP } from './syscall-ops-CN7STuUn.js';
|
|
2
2
|
import { V as VM_INVOKE_STATIC_OP } from './vm-ops-ImHv0Wtg.js';
|
|
3
3
|
import { $ as $s0 } from './registers-C_W2qYHJ.js';
|
|
4
4
|
import { ContentType } from '../@glimmer/vm/index.js';
|
|
5
|
-
import { f as EncoderImpl, g as encodeOp, i as invokePreparedComponent, S as SwitchCases, h as InvokeBareComponent, C as CallDynamic } from './index-
|
|
5
|
+
import { f as EncoderImpl, g as encodeOp, i as invokePreparedComponent, S as SwitchCases, h as InvokeBareComponent, C as CallDynamic } from './index-DaFzpTIE.js';
|
|
6
6
|
|
|
7
7
|
class StdLib {
|
|
8
8
|
constructor(main, trustingGuardedAppend, cautiousGuardedAppend, trustingNonDynamicAppend, cautiousNonDynamicAppend) {
|
|
@@ -54,6 +54,7 @@ function StdAppend(op, trusting, nonDynamicAppend) {
|
|
|
54
54
|
});
|
|
55
55
|
if (typeof nonDynamicAppend === 'number') {
|
|
56
56
|
when(ContentType.Component, () => {
|
|
57
|
+
op(VM_ASSERT_SAME_OP);
|
|
57
58
|
op(VM_RESOLVE_CURRIED_COMPONENT_OP);
|
|
58
59
|
op(VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP);
|
|
59
60
|
InvokeBareComponent(op);
|
package/dist/dev/packages/shared-chunks/{property_get-CIBS9umw.js → property_get-CRP7MFz_.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { s as setProxy } from './is_proxy-Bzg0d4m4.js';
|
|
2
2
|
import { isEmberArray } from '../@ember/array/-internals.js';
|
|
3
3
|
import '../@ember/debug/index.js';
|
|
4
|
-
import {
|
|
5
|
-
import { t as tagFor } from './meta-
|
|
4
|
+
import { t as track, z as isTracking, c as consumeTag } from './cache-DGDPVCpC.js';
|
|
5
|
+
import { t as tagFor } from './meta-BqC7f9Ia.js';
|
|
6
6
|
import { C as Cache } from './cache-qDyqAcpg.js';
|
|
7
7
|
import { assert } from '../@ember/debug/lib/assert.js';
|
|
8
8
|
|
package/dist/dev/packages/shared-chunks/{property_set-D3PKyisF.js → property_set-qCUylPEK.js}
RENAMED
|
@@ -2,8 +2,8 @@ import { s as setWithMandatorySetter, l as lookupDescriptor } from './mandatory-
|
|
|
2
2
|
import { t as toString } from './to-string-C7M8LBLH.js';
|
|
3
3
|
import '../@ember/debug/index.js';
|
|
4
4
|
import { C as COMPUTED_SETTERS } from './decorator-B5Uh5NFI.js';
|
|
5
|
-
import { i as isPath, _ as _getPath, a as getPossibleMandatoryProxyValue } from './property_get-
|
|
6
|
-
import { n as notifyPropertyChange } from './computed-
|
|
5
|
+
import { i as isPath, _ as _getPath, a as getPossibleMandatoryProxyValue } from './property_get-CRP7MFz_.js';
|
|
6
|
+
import { n as notifyPropertyChange } from './computed-BPCtuOxQ.js';
|
|
7
7
|
import { assert } from '../@ember/debug/lib/assert.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { e as expect, i as isDict } from './collections-DPkjqeA3.js';
|
|
2
2
|
import { setProp, getProp } from '../@glimmer/global-context/index.js';
|
|
3
|
-
import {
|
|
3
|
+
import { C as CONSTANT_TAG, I as INITIAL, v as validateTag, t as track, a as valueForTag, c as consumeTag } from './cache-DGDPVCpC.js';
|
|
4
4
|
|
|
5
5
|
const REFERENCE = Symbol('REFERENCE');
|
|
6
6
|
const CONSTANT = 0;
|
|
@@ -172,4 +172,4 @@ let createDebugAliasRef;
|
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
export { FALSE_REFERENCE as F, NULL_REFERENCE as N, REFERENCE as R, TRUE_REFERENCE as T, UNDEFINED_REFERENCE as U,
|
|
175
|
+
export { FALSE_REFERENCE as F, NULL_REFERENCE as N, REFERENCE as R, TRUE_REFERENCE as T, UNDEFINED_REFERENCE as U, createConstRef as a, isInvokableRef as b, createComputeRef as c, isUpdatableRef as d, createPrimitiveRef as e, childRefFor as f, childRefFromParts as g, createDebugAliasRef as h, isConstRef as i, createInvokableRef as j, createReadOnlyRef as k, createUnboundRef as l, updateRef as u, valueForRef as v };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as NewTreeBuilder, R as RemoteBlock, C as COMMENT_NODE, T as TEXT_NODE, E as ELEMENT_NODE, e as NS_SVG } from './
|
|
1
|
+
import { N as NewTreeBuilder, R as RemoteBlock, C as COMMENT_NODE, T as TEXT_NODE, E as ELEMENT_NODE, e as NS_SVG } from './api-C0PAtEgQ.js';
|
|
2
2
|
import { c as castToSimple, a as castToBrowser } from './simple-cast-DCvJLSin.js';
|
|
3
3
|
import { e as expect } from './collections-DPkjqeA3.js';
|
|
4
4
|
import { a as assert } from './assert-Zqc4wiAV.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { u as unwrap, e as expect, a as isIndexable, S as StackImpl } from './collections-DPkjqeA3.js';
|
|
2
2
|
import { a as unwrapHandle } from './template-BRrQR6KS.js';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { U as UNDEFINED_REFERENCE, c as createComputeRef, v as valueForRef, f as childRefFor, T as TRUE_REFERENCE, F as FALSE_REFERENCE, i as isConstRef, u as updateRef, a as createConstRef } from './reference-BqOLhKFy.js';
|
|
4
|
+
import { t as track, U as UPDATE_TAG, e as debug, B as resetTracking, o as beginTrackFrame, s as endTrackFrame } from './cache-DGDPVCpC.js';
|
|
5
5
|
import { a as assert } from './assert-Zqc4wiAV.js';
|
|
6
|
-
import { P as ProgramImpl } from './program-
|
|
7
|
-
import {
|
|
8
|
-
import { B as BLACKLIST_TABLE, f as DOMOperations, D as DOMTreeConstruction, N as NewTreeBuilder } from './
|
|
6
|
+
import { P as ProgramImpl } from './program-DlgjqLa6.js';
|
|
7
|
+
import { D as DebugRenderTreeImpl, i as isArgumentError, j as isCurriedType, d as curry, A as APPEND_OPCODES, h as check, k as resolveCurriedValue, f as reifyPositional, l as AssertFilter, V as VMArgumentsImpl, m as externs, J as JumpIfNotModifiedOpcode, B as BeginTrackFrameOpcode, n as EndTrackFrameOpcode } from './arguments-CDkbOqTS.js';
|
|
8
|
+
import { B as BLACKLIST_TABLE, f as DOMOperations, D as DOMTreeConstruction, N as NewTreeBuilder } from './api-C0PAtEgQ.js';
|
|
9
9
|
import { a as assign } from './object-utils-AijlD-JH.js';
|
|
10
10
|
import { associateDestroyableChild, _hasDestroyableChildren, destroy, destroyChildren, registerDestructor } from '../@glimmer/destroyable/index.js';
|
|
11
11
|
import { toBool, debugAssert, assertGlobalContextWasSet } from '../@glimmer/global-context/index.js';
|
|
@@ -14,91 +14,12 @@ import { r as reverse } from './array-utils-CZQxrdD3.js';
|
|
|
14
14
|
import { a as $v0, d as $pc, e as $ra, f as $fp, g as $sp, i as isLowLevelRegister } from './registers-C_W2qYHJ.js';
|
|
15
15
|
import { a as VM_RETURN_TO_OP, b as VM_RETURN_OP, c as VM_JUMP_OP, d as VM_INVOKE_VIRTUAL_OP, V as VM_INVOKE_STATIC_OP, e as VM_POP_FRAME_OP, f as VM_PUSH_FRAME_OP } from './vm-ops-ImHv0Wtg.js';
|
|
16
16
|
import { a as CURRIED_COMPONENT, b as CURRIED_HELPER } from './curried-BZnYakIg.js';
|
|
17
|
-
import { ai as
|
|
17
|
+
import { ai as VM_CURRY_OP, p as decodeHandle, aj as VM_DYNAMIC_HELPER_OP, ak as VM_HELPER_OP, al as VM_GET_VARIABLE_OP, am as VM_SET_VARIABLE_OP, an as VM_SET_BLOCK_OP, ao as VM_ROOT_SCOPE_OP, ap as VM_GET_PROPERTY_OP, aq as VM_GET_BLOCK_OP, ar as VM_SPREAD_BLOCK_OP, as as VM_HAS_BLOCK_OP, at as VM_HAS_BLOCK_PARAMS_OP, au as VM_CONCAT_OP, av as VM_IF_INLINE_OP, aw as VM_NOT_OP, ax as VM_GET_DYNAMIC_VAR_OP, ay as VM_LOG_OP, a as VM_CONTENT_TYPE_OP, az as VM_DYNAMIC_CONTENT_TYPE_OP, c as VM_APPEND_HTML_OP, g as VM_APPEND_SAFE_HTML_OP, d as VM_APPEND_TEXT_OP, h as VM_APPEND_DOCUMENT_FRAGMENT_OP, i as VM_APPEND_NODE_OP, aA as VM_DEBUGGER_OP, aB as VM_ENTER_LIST_OP, aC as VM_EXIT_LIST_OP, aD as VM_ITERATE_OP } from './syscall-ops-CN7STuUn.js';
|
|
18
18
|
import { d as debugToString } from './debug-to-string-C6LsA_qz.js';
|
|
19
|
-
import { a as getInternalHelperManager, c as hasInternalComponentManager, d as hasInternalHelperManager } from './api-
|
|
19
|
+
import { a as getInternalHelperManager, c as hasInternalComponentManager, d as hasInternalHelperManager } from './api-DuLOZMO_.js';
|
|
20
20
|
import { ContentType } from '../@glimmer/vm/index.js';
|
|
21
21
|
import { b as isEmpty, d as isString, s as shouldCoerce, i as isSafeString, e as isFragment, f as isNode, m as move, c as clear } from './normalize-CKySQVU7.js';
|
|
22
22
|
|
|
23
|
-
// Allow the contents of `debugCallback` without extra annotations
|
|
24
|
-
/* eslint-disable @typescript-eslint/no-unused-expressions */
|
|
25
|
-
|
|
26
|
-
function debugCallback(context, get) {
|
|
27
|
-
// eslint-disable-next-line no-console
|
|
28
|
-
console.info('Use `context`, and `get(<path>)` to debug this template.');
|
|
29
|
-
|
|
30
|
-
// for example...
|
|
31
|
-
context === get('this');
|
|
32
|
-
|
|
33
|
-
// eslint-disable-next-line no-debugger
|
|
34
|
-
debugger;
|
|
35
|
-
}
|
|
36
|
-
let callback = debugCallback;
|
|
37
|
-
|
|
38
|
-
// For testing purposes
|
|
39
|
-
function setDebuggerCallback(cb) {
|
|
40
|
-
callback = cb;
|
|
41
|
-
}
|
|
42
|
-
function resetDebuggerCallback() {
|
|
43
|
-
callback = debugCallback;
|
|
44
|
-
}
|
|
45
|
-
class ScopeInspector {
|
|
46
|
-
#symbols;
|
|
47
|
-
constructor(scope, symbols) {
|
|
48
|
-
this.scope = scope;
|
|
49
|
-
this.#symbols = symbols;
|
|
50
|
-
}
|
|
51
|
-
get(path) {
|
|
52
|
-
let {
|
|
53
|
-
scope
|
|
54
|
-
} = this;
|
|
55
|
-
let symbols = this.#symbols;
|
|
56
|
-
let parts = path.split('.');
|
|
57
|
-
let [head, ...tail] = path.split('.');
|
|
58
|
-
let ref;
|
|
59
|
-
if (head === 'this') {
|
|
60
|
-
ref = scope.getSelf();
|
|
61
|
-
} else if (symbols.locals[head]) {
|
|
62
|
-
ref = unwrap(scope.getSymbol(symbols.locals[head]));
|
|
63
|
-
} else {
|
|
64
|
-
ref = this.scope.getSelf();
|
|
65
|
-
tail = parts;
|
|
66
|
-
}
|
|
67
|
-
return tail.reduce((r, part) => childRefFor(r, part), ref);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
APPEND_OPCODES.add(VM_DEBUGGER_OP, (vm, {
|
|
71
|
-
op1: _debugInfo
|
|
72
|
-
}) => {
|
|
73
|
-
let debuggerInfo = vm.constants.getValue(decodeHandle(_debugInfo));
|
|
74
|
-
let inspector = new ScopeInspector(vm.scope(), debuggerInfo);
|
|
75
|
-
callback(valueForRef(vm.getSelf()), path => valueForRef(inspector.get(path)));
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
['b', 'big', 'blockquote', 'body', 'br', 'center', 'code', 'dd', 'div', 'dl', 'dt', 'em', 'embed', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'hr', 'i', 'img', 'li', 'listing', 'main', 'meta', 'nobr', 'ol', 'p', 'pre', 'ruby', 's', 'small', 'span', 'strong', 'strike', 'sub', 'sup', 'table', 'tt', 'u', 'ul', 'var'].forEach(tag => BLACKLIST_TABLE[tag] = 1);
|
|
79
|
-
const WHITESPACE = /[\t\n\v\f\r \xa0\u{1680}\u{180e}\u{2000}-\u{200a}\u{2028}\u{2029}\u{202f}\u{205f}\u{3000}\u{feff}]/u;
|
|
80
|
-
function isWhitespace(string) {
|
|
81
|
-
return WHITESPACE.test(string);
|
|
82
|
-
}
|
|
83
|
-
class DOMChangesImpl extends DOMOperations {
|
|
84
|
-
namespace;
|
|
85
|
-
constructor(document) {
|
|
86
|
-
super(document);
|
|
87
|
-
this.document = document;
|
|
88
|
-
this.namespace = null;
|
|
89
|
-
}
|
|
90
|
-
setAttribute(element, name, value) {
|
|
91
|
-
element.setAttribute(name, value);
|
|
92
|
-
}
|
|
93
|
-
removeAttribute(element, name) {
|
|
94
|
-
element.removeAttribute(name);
|
|
95
|
-
}
|
|
96
|
-
insertAfter(element, node, reference) {
|
|
97
|
-
this.insertBefore(element, node, reference.nextSibling);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
const DOMChanges = DOMChangesImpl;
|
|
101
|
-
|
|
102
23
|
class DynamicScopeImpl {
|
|
103
24
|
bucket;
|
|
104
25
|
constructor(bucket) {
|
|
@@ -202,6 +123,30 @@ class ScopeImpl {
|
|
|
202
123
|
}
|
|
203
124
|
}
|
|
204
125
|
|
|
126
|
+
['b', 'big', 'blockquote', 'body', 'br', 'center', 'code', 'dd', 'div', 'dl', 'dt', 'em', 'embed', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'hr', 'i', 'img', 'li', 'listing', 'main', 'meta', 'nobr', 'ol', 'p', 'pre', 'ruby', 's', 'small', 'span', 'strong', 'strike', 'sub', 'sup', 'table', 'tt', 'u', 'ul', 'var'].forEach(tag => BLACKLIST_TABLE[tag] = 1);
|
|
127
|
+
const WHITESPACE = /[\t\n\v\f\r \xa0\u{1680}\u{180e}\u{2000}-\u{200a}\u{2028}\u{2029}\u{202f}\u{205f}\u{3000}\u{feff}]/u;
|
|
128
|
+
function isWhitespace(string) {
|
|
129
|
+
return WHITESPACE.test(string);
|
|
130
|
+
}
|
|
131
|
+
class DOMChangesImpl extends DOMOperations {
|
|
132
|
+
namespace;
|
|
133
|
+
constructor(document) {
|
|
134
|
+
super(document);
|
|
135
|
+
this.document = document;
|
|
136
|
+
this.namespace = null;
|
|
137
|
+
}
|
|
138
|
+
setAttribute(element, name, value) {
|
|
139
|
+
element.setAttribute(name, value);
|
|
140
|
+
}
|
|
141
|
+
removeAttribute(element, name) {
|
|
142
|
+
element.removeAttribute(name);
|
|
143
|
+
}
|
|
144
|
+
insertAfter(element, node, reference) {
|
|
145
|
+
this.insertBefore(element, node, reference.nextSibling);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
const DOMChanges = DOMChangesImpl;
|
|
149
|
+
|
|
205
150
|
const TRANSACTION = Symbol('TRANSACTION');
|
|
206
151
|
class TransactionImpl {
|
|
207
152
|
scheduledInstallModifiers = [];
|
|
@@ -727,6 +672,61 @@ APPEND_OPCODES.add(VM_APPEND_NODE_OP, vm => {
|
|
|
727
672
|
vm.tree().appendDynamicNode(value);
|
|
728
673
|
});
|
|
729
674
|
|
|
675
|
+
// Allow the contents of `debugCallback` without extra annotations
|
|
676
|
+
/* eslint-disable @typescript-eslint/no-unused-expressions */
|
|
677
|
+
|
|
678
|
+
function debugCallback(context, get) {
|
|
679
|
+
// eslint-disable-next-line no-console
|
|
680
|
+
console.info('Use `context`, and `get(<path>)` to debug this template.');
|
|
681
|
+
|
|
682
|
+
// for example...
|
|
683
|
+
context === get('this');
|
|
684
|
+
|
|
685
|
+
// eslint-disable-next-line no-debugger
|
|
686
|
+
debugger;
|
|
687
|
+
}
|
|
688
|
+
let callback = debugCallback;
|
|
689
|
+
|
|
690
|
+
// For testing purposes
|
|
691
|
+
function setDebuggerCallback(cb) {
|
|
692
|
+
callback = cb;
|
|
693
|
+
}
|
|
694
|
+
function resetDebuggerCallback() {
|
|
695
|
+
callback = debugCallback;
|
|
696
|
+
}
|
|
697
|
+
class ScopeInspector {
|
|
698
|
+
#symbols;
|
|
699
|
+
constructor(scope, symbols) {
|
|
700
|
+
this.scope = scope;
|
|
701
|
+
this.#symbols = symbols;
|
|
702
|
+
}
|
|
703
|
+
get(path) {
|
|
704
|
+
let {
|
|
705
|
+
scope
|
|
706
|
+
} = this;
|
|
707
|
+
let symbols = this.#symbols;
|
|
708
|
+
let parts = path.split('.');
|
|
709
|
+
let [head, ...tail] = path.split('.');
|
|
710
|
+
let ref;
|
|
711
|
+
if (head === 'this') {
|
|
712
|
+
ref = scope.getSelf();
|
|
713
|
+
} else if (symbols.locals[head]) {
|
|
714
|
+
ref = unwrap(scope.getSymbol(symbols.locals[head]));
|
|
715
|
+
} else {
|
|
716
|
+
ref = this.scope.getSelf();
|
|
717
|
+
tail = parts;
|
|
718
|
+
}
|
|
719
|
+
return tail.reduce((r, part) => childRefFor(r, part), ref);
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
APPEND_OPCODES.add(VM_DEBUGGER_OP, (vm, {
|
|
723
|
+
op1: _debugInfo
|
|
724
|
+
}) => {
|
|
725
|
+
let debuggerInfo = vm.constants.getValue(decodeHandle(_debugInfo));
|
|
726
|
+
let inspector = new ScopeInspector(vm.scope(), debuggerInfo);
|
|
727
|
+
callback(valueForRef(vm.getSelf()), path => valueForRef(inspector.get(path)));
|
|
728
|
+
});
|
|
729
|
+
|
|
730
730
|
APPEND_OPCODES.add(VM_ENTER_LIST_OP, (vm, {
|
|
731
731
|
op1: relativeStart,
|
|
732
732
|
op2: elseTarget
|