ember-source 7.2.0-alpha.4 → 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/blueprints/-addon-import.js +4 -6
- package/blueprints/-utils.js +6 -9
- package/build-metadata.json +3 -3
- package/dist/dev/packages/@ember/-internals/browser-environment/index.js +1 -1
- package/dist/dev/packages/@ember/-internals/glimmer/index.js +11 -11
- package/dist/dev/packages/@ember/-internals/metal/index.js +18 -18
- package/dist/dev/packages/@ember/-internals/routing/index.js +3 -3
- package/dist/dev/packages/@ember/-internals/runtime/index.js +1 -1
- package/dist/dev/packages/@ember/-internals/runtime/lib/ext/rsvp.js +1 -1
- package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/-proxy.js +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/utils/index.js +2 -2
- package/dist/dev/packages/@ember/-internals/views/lib/mixins/action_support.js +1 -1
- package/dist/dev/packages/@ember/-internals/views/lib/system/event_dispatcher.js +2 -2
- package/dist/dev/packages/@ember/-internals/views/lib/system/utils.js +1 -1
- package/dist/dev/packages/@ember/-internals/views/lib/views/core_view.js +1 -1
- package/dist/dev/packages/@ember/application/index.js +6 -7
- package/dist/dev/packages/@ember/application/instance.js +4 -4
- package/dist/dev/packages/@ember/application/namespace.js +3 -3
- package/dist/dev/packages/@ember/array/index.js +10 -64
- package/dist/dev/packages/@ember/array/lib/is-array.js +71 -0
- package/dist/dev/packages/@ember/array/proxy.js +8 -8
- package/dist/dev/packages/@ember/component/helper.js +1 -1
- package/dist/dev/packages/@ember/component/index.js +21 -15
- package/dist/dev/packages/@ember/component/template-only.js +1 -1
- package/dist/dev/packages/@ember/controller/index.js +3 -3
- package/dist/dev/packages/@ember/debug/data-adapter.js +3 -3
- package/dist/dev/packages/@ember/debug/index.js +1 -1
- package/dist/dev/packages/@ember/engine/index.js +5 -5
- package/dist/dev/packages/@ember/engine/instance.js +2 -2
- package/dist/dev/packages/@ember/helper/index.js +8 -27
- package/dist/dev/packages/@ember/modifier/index.js +2 -2
- package/dist/dev/packages/@ember/modifier/on.js +1 -1
- package/dist/dev/packages/@ember/object/-internals.js +2 -2
- package/dist/dev/packages/@ember/object/compat.js +3 -3
- package/dist/dev/packages/@ember/object/computed.js +2 -2
- package/dist/dev/packages/@ember/object/core.js +7 -7
- package/dist/dev/packages/@ember/object/evented.js +2 -2
- package/dist/dev/packages/@ember/object/events.js +1 -1
- package/dist/dev/packages/@ember/object/index.js +30 -25
- package/dist/dev/packages/@ember/object/internals.js +1 -1
- package/dist/dev/packages/@ember/object/lib/computed/computed_macros.js +5 -5
- package/dist/dev/packages/@ember/object/lib/computed/reduce_computed_macros.js +3 -3
- package/dist/dev/packages/@ember/object/mixin.js +6 -6
- package/dist/dev/packages/@ember/object/observable.js +7 -7
- package/dist/dev/packages/@ember/object/observers.js +1 -1
- package/dist/dev/packages/@ember/object/promise-proxy-mixin.js +3 -3
- package/dist/dev/packages/@ember/reactive/collections.js +153 -153
- package/dist/dev/packages/@ember/renderer/index.js +1 -1
- package/dist/dev/packages/@ember/routing/-internals.js +3 -3
- package/dist/dev/packages/@ember/routing/index.js +12 -8
- package/dist/dev/packages/@ember/routing/lib/generate_controller.js +2 -3
- package/dist/dev/packages/@ember/routing/lib/routing-service.js +5 -5
- package/dist/dev/packages/@ember/routing/lib/utils.js +3 -3
- package/dist/dev/packages/@ember/routing/route.js +12 -12
- package/dist/dev/packages/@ember/routing/router-service.js +25 -18
- package/dist/dev/packages/@ember/routing/router.js +5 -5
- package/dist/dev/packages/@ember/runloop/index.js +1 -1
- package/dist/dev/packages/@ember/service/index.js +1 -1
- package/dist/dev/packages/@ember/template-compiler/lib/compile-options.js +3 -3
- package/dist/dev/packages/@ember/template-compiler/lib/template.js +2 -2
- package/dist/dev/packages/@ember/template-factory/index.js +1 -1
- package/dist/dev/packages/@ember/utils/lib/is_empty.js +1 -1
- package/dist/dev/packages/@glimmer/encoder/index.js +1 -1
- package/dist/dev/packages/@glimmer/manager/index.js +4 -4
- package/dist/dev/packages/@glimmer/node/index.js +3 -3
- package/dist/dev/packages/@glimmer/opcode-compiler/index.js +2 -2
- package/dist/dev/packages/@glimmer/program/index.js +10 -10
- package/dist/dev/packages/@glimmer/reference/index.js +5 -5
- package/dist/dev/packages/@glimmer/runtime/index.js +13 -13
- package/dist/dev/packages/@glimmer/tracking/index.js +2 -2
- package/dist/dev/packages/@glimmer/tracking/primitives/cache/index.js +1 -1
- package/dist/dev/packages/@glimmer/util/index.js +4 -4
- package/dist/dev/packages/@glimmer/validator/index.js +3 -3
- package/dist/dev/packages/@glimmer/vm/index.js +2 -2
- package/dist/dev/packages/ember/version.js +1 -1
- package/dist/dev/packages/ember-template-compiler/index.js +4 -4
- package/dist/dev/packages/router_js/index.js +2 -2
- package/dist/dev/packages/rsvp/index.js +2281 -1
- package/dist/dev/packages/shared-chunks/{alias-RGbDZoAB.js → alias-DpqL1qx6.js} +7 -7
- package/dist/dev/packages/shared-chunks/{api-BT9M3UaD.js → api-BlZDPg1n.js} +6 -6
- package/dist/dev/packages/shared-chunks/{element-builder-Cl1kHFJE.js → api-C0PAtEgQ.js} +139 -120
- package/dist/dev/packages/shared-chunks/{api-DG5kRT-o.js → api-DuLOZMO_.js} +3 -3
- package/dist/dev/packages/shared-chunks/{args-proxy-CB0SM6jC.js → args-proxy-CS5Brs3_.js} +2 -2
- package/dist/dev/packages/shared-chunks/{untouchable-this-BHdAERUu.js → arguments-CDkbOqTS.js} +236 -236
- package/dist/dev/packages/shared-chunks/{array-BMaSKezP.js → array-CVEnNWng.js} +3 -3
- package/dist/dev/packages/shared-chunks/{array-utils-BEaSKdEb.js → array-utils-CZQxrdD3.js} +1 -1
- package/dist/dev/packages/shared-chunks/{cache-CeWOBNQg.js → cache-DGDPVCpC.js} +2 -3
- package/dist/dev/packages/shared-chunks/{capabilities-CZkuOqqC.js → capabilities-CajW4QjE.js} +1 -1
- package/dist/dev/packages/shared-chunks/{chain-tags-DfmU63mS.js → chain-tags-uWSImHzB.js} +4 -4
- package/dist/dev/packages/shared-chunks/{collections-DEt-i-8B.js → collections-DPkjqeA3.js} +2 -2
- package/dist/dev/packages/shared-chunks/{compiler-DhH2WLpA.js → compiler-QUSl_urU.js} +3 -3
- package/dist/dev/packages/shared-chunks/{computed-Daavz6vC.js → computed-BPCtuOxQ.js} +6 -6
- package/dist/dev/packages/shared-chunks/{curly-YoYS2vXw.js → curly-Ei5G8jhk.js} +7 -7
- package/dist/dev/packages/shared-chunks/{curried-Cnjy9_ug.js → curried-BZnYakIg.js} +1 -1
- package/dist/dev/packages/shared-chunks/{decorator-DYQwMItS.js → decorator-B5Uh5NFI.js} +1 -1
- package/dist/dev/packages/shared-chunks/{element-bBwMD8cw.js → element-BYLB-q7a.js} +5 -3
- package/dist/dev/packages/shared-chunks/{events-B1lx9T1I.js → events-6aFVjD4k.js} +1 -1
- package/dist/{prod/packages/shared-chunks/flags-B9qxc-pB.js → dev/packages/shared-chunks/flags-BZxHQ0yn.js} +1 -1
- package/dist/dev/packages/shared-chunks/{get-CO3EIWsm.js → get-6I3sjd-I.js} +33 -36
- package/dist/{prod/packages/shared-chunks/get_properties-wj_Qmotj.js → dev/packages/shared-chunks/get_properties-Cm2sWt5f.js} +1 -1
- package/dist/dev/packages/shared-chunks/{guid-PO2v9BaN.js → guid-Cbq2sNV_.js} +1 -1
- package/dist/dev/packages/shared-chunks/{hash-2-93qikL.js → hash-6NDs_5_f.js} +18 -12
- package/dist/dev/packages/shared-chunks/{helper-Bm6EhgSW.js → helper-DIj85_-f.js} +21 -9
- package/dist/dev/packages/shared-chunks/{index-dyv6rcBf.js → index-B3pPx1fL.js} +113 -134
- package/dist/dev/packages/shared-chunks/{index-DX90CU4L.js → index-BGP1rw3B.js} +1 -1
- package/dist/dev/packages/shared-chunks/{index-DkwVSPP5.js → index-DaFzpTIE.js} +10 -9
- package/dist/dev/packages/shared-chunks/{injected_property-B075jH6c.js → injected_property-CbBLr5jt.js} +2 -2
- package/dist/dev/packages/shared-chunks/{internal-Bpr6ihB_.js → internal-DTOXyEGM.js} +4 -4
- package/dist/dev/packages/shared-chunks/{internal-helper-IC87S6iZ.js → internal-helper-CKrni0b_.js} +1 -1
- package/dist/dev/packages/shared-chunks/{invoke-Ds0KEfP_.js → invoke-d9sqa50M.js} +3 -3
- package/dist/dev/packages/shared-chunks/{libraries-P8Ins5CB.js → libraries-DwffpMGE.js} +1 -1
- package/dist/dev/packages/shared-chunks/{meta-Cjo3zQJq.js → meta-BqC7f9Ia.js} +1 -1
- package/dist/{prod/packages/shared-chunks/namespace_search-TFdmjK_a.js → dev/packages/shared-chunks/namespace_search-BfvzEQzN.js} +1 -1
- package/dist/dev/packages/shared-chunks/{normalize-CxG_iVLJ.js → normalize-CKySQVU7.js} +2 -2
- package/dist/dev/packages/shared-chunks/{or-Bg6rCMF8.js → not-DYh6AY9Z.js} +36 -36
- package/dist/dev/packages/shared-chunks/{observers-CejcZw5s.js → observers-DMlX2nCi.js} +5 -5
- package/dist/dev/packages/shared-chunks/{on-Ch_lyozr.js → on-DlF0Wy7P.js} +10 -10
- package/dist/dev/packages/shared-chunks/{present-D0EfKzC6.js → present-B1rrjAVM.js} +1 -1
- package/dist/{prod/packages/shared-chunks/program-CF651Zuj.js → dev/packages/shared-chunks/program-DlgjqLa6.js} +3 -3
- package/dist/dev/packages/shared-chunks/{program-context-BaYVr5GA.js → program-context-Dq8xN2HI.js} +5 -4
- package/dist/dev/packages/shared-chunks/{property_get-BjbsrgpU.js → property_get-CRP7MFz_.js} +3 -3
- package/dist/dev/packages/shared-chunks/{property_set-LJskl202.js → property_set-qCUylPEK.js} +3 -3
- package/dist/dev/packages/shared-chunks/{reference-C-OXd_kp.js → reference-BqOLhKFy.js} +3 -3
- package/dist/dev/packages/shared-chunks/{registers-Buvdhhxx.js → registers-C_W2qYHJ.js} +1 -1
- package/dist/dev/packages/shared-chunks/{rehydrate-builder-IH4d_JQy.js → rehydrate-builder-C6k1XhET.js} +4 -4
- package/dist/dev/packages/shared-chunks/{render-Dz3OWqXy.js → render-87_sKZ_k.js} +94 -94
- package/dist/dev/packages/shared-chunks/{rsvp-C6j8G1D1.js → rsvp.es-DR7yS7qg.js} +150 -154
- package/dist/dev/packages/shared-chunks/{serialize-builder-DKliZPPG.js → serialize-builder-BlxBjwO-.js} +2 -2
- package/dist/dev/packages/shared-chunks/{set_properties-CNds2HCH.js → set_properties-C4TSebH6.js} +2 -2
- package/dist/dev/packages/shared-chunks/{setup-registry-C_YovxNX.js → setup-registry-9DCmHTFF.js} +18 -18
- package/dist/{prod/packages/shared-chunks/simple-cast-BXTrayoV.js → dev/packages/shared-chunks/simple-cast-DCvJLSin.js} +1 -1
- package/dist/{prod/packages/shared-chunks/super-D4qkU4uq.js → dev/packages/shared-chunks/super-BBBjgF69.js} +1 -1
- package/dist/{prod/packages/shared-chunks/syscall-ops-nrBHMOTp.js → dev/packages/shared-chunks/syscall-ops-CN7STuUn.js} +1 -1
- package/dist/dev/packages/shared-chunks/{template-B0Apv9g2.js → template-BRrQR6KS.js} +1 -1
- package/dist/dev/packages/shared-chunks/{template-only-BxYzSEnC.js → template-only-Cu639ICT.js} +2 -4
- package/dist/dev/packages/shared-chunks/{textarea-DHjEFpZu.js → textarea-C4lYkaHj.js} +12 -8
- package/dist/dev/packages/shared-chunks/{tracked-B76E1nGz.js → tracked-DEyf0T_X.js} +5 -5
- package/dist/dev/packages/shared-chunks/{tracked-data-CH1USZZy.js → tracked-data-DgqqRdYO.js} +2 -2
- package/dist/dev/packages/shared-chunks/{unique-id-Hd96VZlE.js → unique-id-DQOhouG1.js} +2 -2
- package/dist/dev/packages/shared-chunks/{unrecognized-url-error-BQdkjTtZ.js → unrecognized-url-error-BJHjL30Q.js} +2 -2
- package/dist/{prod/packages/shared-chunks/vm-ops-5QCUIRx4.js → dev/packages/shared-chunks/vm-ops-ImHv0Wtg.js} +1 -1
- package/dist/prod/packages/@ember/-internals/glimmer/index.js +11 -11
- package/dist/prod/packages/@ember/-internals/metal/index.js +18 -18
- package/dist/prod/packages/@ember/-internals/routing/index.js +3 -3
- package/dist/prod/packages/@ember/-internals/runtime/index.js +1 -1
- package/dist/prod/packages/@ember/-internals/runtime/lib/ext/rsvp.js +1 -1
- package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/-proxy.js +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/utils/index.js +2 -2
- package/dist/prod/packages/@ember/-internals/views/lib/mixins/action_support.js +1 -1
- package/dist/prod/packages/@ember/-internals/views/lib/system/event_dispatcher.js +2 -2
- package/dist/prod/packages/@ember/-internals/views/lib/system/utils.js +1 -1
- package/dist/prod/packages/@ember/-internals/views/lib/views/core_view.js +1 -1
- package/dist/prod/packages/@ember/application/index.js +5 -6
- package/dist/prod/packages/@ember/application/instance.js +4 -4
- package/dist/prod/packages/@ember/application/namespace.js +3 -3
- package/dist/prod/packages/@ember/array/index.js +11 -58
- package/dist/prod/packages/@ember/array/lib/is-array.js +64 -0
- package/dist/prod/packages/@ember/array/proxy.js +8 -8
- package/dist/prod/packages/@ember/component/helper.js +1 -1
- package/dist/prod/packages/@ember/component/index.js +20 -14
- package/dist/prod/packages/@ember/component/template-only.js +1 -1
- package/dist/prod/packages/@ember/controller/index.js +3 -3
- package/dist/prod/packages/@ember/debug/data-adapter.js +3 -3
- package/dist/prod/packages/@ember/engine/index.js +5 -5
- package/dist/prod/packages/@ember/engine/instance.js +2 -2
- package/dist/prod/packages/@ember/helper/index.js +8 -27
- package/dist/prod/packages/@ember/modifier/index.js +2 -2
- package/dist/prod/packages/@ember/modifier/on.js +1 -1
- package/dist/prod/packages/@ember/object/-internals.js +2 -2
- package/dist/prod/packages/@ember/object/compat.js +3 -3
- package/dist/prod/packages/@ember/object/computed.js +2 -2
- package/dist/prod/packages/@ember/object/core.js +7 -7
- package/dist/prod/packages/@ember/object/evented.js +2 -2
- package/dist/prod/packages/@ember/object/events.js +1 -1
- package/dist/prod/packages/@ember/object/index.js +30 -25
- package/dist/prod/packages/@ember/object/internals.js +2 -2
- package/dist/prod/packages/@ember/object/lib/computed/computed_macros.js +4 -4
- package/dist/prod/packages/@ember/object/lib/computed/reduce_computed_macros.js +2 -2
- package/dist/prod/packages/@ember/object/mixin.js +6 -6
- package/dist/prod/packages/@ember/object/observable.js +7 -7
- package/dist/prod/packages/@ember/object/observers.js +1 -1
- package/dist/prod/packages/@ember/object/promise-proxy-mixin.js +3 -3
- package/dist/prod/packages/@ember/reactive/collections.js +153 -153
- package/dist/prod/packages/@ember/renderer/index.js +1 -1
- package/dist/prod/packages/@ember/routing/index.js +12 -8
- package/dist/prod/packages/@ember/routing/lib/generate_controller.js +1 -2
- package/dist/prod/packages/@ember/routing/lib/routing-service.js +4 -4
- package/dist/prod/packages/@ember/routing/lib/utils.js +3 -3
- package/dist/prod/packages/@ember/routing/route.js +12 -12
- package/dist/prod/packages/@ember/routing/router-service.js +24 -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 +10 -10
- package/dist/prod/packages/@glimmer/reference/index.js +5 -5
- package/dist/prod/packages/@glimmer/runtime/index.js +13 -13
- package/dist/prod/packages/@glimmer/tracking/index.js +2 -2
- package/dist/prod/packages/@glimmer/tracking/primitives/cache/index.js +1 -1
- package/dist/prod/packages/@glimmer/util/index.js +4 -4
- package/dist/prod/packages/@glimmer/validator/index.js +3 -3
- package/dist/prod/packages/@glimmer/vm/index.js +2 -2
- package/dist/prod/packages/ember/version.js +1 -1
- package/dist/prod/packages/ember-template-compiler/index.js +4 -4
- package/dist/prod/packages/router_js/index.js +2 -2
- package/dist/prod/packages/rsvp/index.js +2281 -1
- package/dist/prod/packages/shared-chunks/{alias-DsIh-16z.js → alias-Bod6qdNp.js} +7 -7
- package/dist/prod/packages/shared-chunks/{api-CGZbGcvX.js → api-B_poQGXS.js} +6 -6
- package/dist/prod/packages/shared-chunks/{element-builder-CZePCkbA.js → api-CQexacBn.js} +139 -120
- package/dist/prod/packages/shared-chunks/{api-DOLN_cR2.js → api-DlJKfm_f.js} +3 -3
- package/dist/prod/packages/shared-chunks/{args-proxy-CaXVcI8G.js → args-proxy-CCoFtYLS.js} +2 -2
- package/dist/prod/packages/shared-chunks/{debug-render-tree-CYENUjgX.js → arguments-BzAkZVBa.js} +198 -198
- package/dist/prod/packages/shared-chunks/{array-DYFI95FA.js → array-BzReKMeW.js} +3 -3
- package/dist/prod/packages/shared-chunks/{array-utils-BEaSKdEb.js → array-utils-CZQxrdD3.js} +1 -1
- package/dist/prod/packages/shared-chunks/{cache-CG6_L9db.js → cache-CofLhaS4.js} +1 -2
- package/dist/prod/packages/shared-chunks/{capabilities-_5e35539.js → capabilities-BuVYh-vx.js} +1 -1
- package/dist/prod/packages/shared-chunks/{chain-tags-BP0V2LnZ.js → chain-tags-B2J7DsxO.js} +4 -4
- package/dist/prod/packages/shared-chunks/{collections-By4M3cTy.js → collections-GpG8lT2g.js} +10 -10
- package/dist/prod/packages/shared-chunks/{compiler-DQmEjFyx.js → compiler-lBSssiWp.js} +2 -2
- package/dist/prod/packages/shared-chunks/{computed-D6MVTTDd.js → computed-DtIStxvq.js} +6 -6
- package/dist/prod/packages/shared-chunks/{curly-DCYSwLtz.js → curly-IY06zACp.js} +7 -7
- package/dist/prod/packages/shared-chunks/{curried-Cnjy9_ug.js → curried-BZnYakIg.js} +1 -1
- package/dist/prod/packages/shared-chunks/{decorator-B8Lpq40g.js → decorator-9ikVwsjY.js} +1 -1
- package/dist/prod/packages/shared-chunks/{element-CT5H5uxF.js → element-DgHdPZ8u.js} +5 -3
- package/dist/prod/packages/shared-chunks/{events-C7aYCy0N.js → events-DYrYz3V8.js} +1 -1
- package/dist/{dev/packages/shared-chunks/flags-B9qxc-pB.js → prod/packages/shared-chunks/flags-BZxHQ0yn.js} +1 -1
- package/dist/prod/packages/shared-chunks/{get-tlL23wmp.js → get-Dago5uGl.js} +33 -36
- package/dist/{dev/packages/shared-chunks/get_properties-B203vZpz.js → prod/packages/shared-chunks/get_properties-Dg3xFpiS.js} +1 -1
- package/dist/prod/packages/shared-chunks/{guid-PO2v9BaN.js → guid-Cbq2sNV_.js} +1 -1
- package/dist/prod/packages/shared-chunks/{hash-C6IoC4eR.js → hash-gEXIsSO4.js} +24 -18
- package/dist/prod/packages/shared-chunks/{helper-CCK8Ef0x.js → helper-DkXiTBjc.js} +21 -9
- package/dist/prod/packages/shared-chunks/{index-D-rcNBLp.js → index-Bf53M8eS.js} +9 -8
- package/dist/prod/packages/shared-chunks/{index-DabsnYit.js → index-CslMfEpb.js} +110 -131
- package/dist/prod/packages/shared-chunks/{injected_property-COGiYHKc.js → injected_property-Y-FadDej.js} +2 -2
- package/dist/prod/packages/shared-chunks/{internal-BEJC2IJ-.js → internal-BQ7zHrqS.js} +4 -4
- package/dist/prod/packages/shared-chunks/{internal-helper-CoxiRnnb.js → internal-helper-Bz1lpDXr.js} +1 -1
- package/dist/prod/packages/shared-chunks/{invoke-D_jsLbsj.js → invoke-DhQ5QRp2.js} +3 -3
- package/dist/prod/packages/shared-chunks/{libraries-Bs3H8iwC.js → libraries-DBql0hdn.js} +2 -2
- package/dist/prod/packages/shared-chunks/{meta-Ce6-qROq.js → meta-BJtIZDir.js} +1 -1
- package/dist/{dev/packages/shared-chunks/namespace_search-TFdmjK_a.js → prod/packages/shared-chunks/namespace_search-BfvzEQzN.js} +1 -1
- package/dist/prod/packages/shared-chunks/{normalize-Bx4H3NjB.js → normalize-C_IStty9.js} +2 -2
- package/dist/prod/packages/shared-chunks/{or-sYlRiUn_.js → not-BOIVROuv.js} +28 -28
- package/dist/prod/packages/shared-chunks/{observers-Ci31SE36.js → observers-BmobpXAF.js} +5 -5
- package/dist/prod/packages/shared-chunks/{on-Dgmychhk.js → on-BZHAxzdq.js} +10 -10
- package/dist/{dev/packages/shared-chunks/program-CPXeXWVB.js → prod/packages/shared-chunks/program-BAh__OXZ.js} +3 -3
- package/dist/prod/packages/shared-chunks/{program-context-DmI53TzJ.js → program-context-COSioH46.js} +5 -4
- package/dist/prod/packages/shared-chunks/{property_get-Sw0SicEZ.js → property_get-DAKgbeJX.js} +2 -2
- package/dist/prod/packages/shared-chunks/{property_set-SHEIPMUG.js → property_set-BaQJdVfS.js} +3 -3
- package/dist/prod/packages/shared-chunks/{reference-D2agTt1V.js → reference-CG0yPgLy.js} +3 -3
- package/dist/prod/packages/shared-chunks/{registers-Buvdhhxx.js → registers-C_W2qYHJ.js} +1 -1
- package/dist/prod/packages/shared-chunks/{rehydrate-builder-B7MtrWip.js → rehydrate-builder-Blt1x9MP.js} +4 -4
- package/dist/prod/packages/shared-chunks/{render-B790-vbk.js → render-Dx7lr1hR.js} +94 -94
- package/dist/prod/packages/shared-chunks/{rsvp-C6j8G1D1.js → rsvp.es-DR7yS7qg.js} +150 -154
- package/dist/prod/packages/shared-chunks/{serialize-builder-kEyOKbzp.js → serialize-builder-BvAXYHTr.js} +2 -2
- package/dist/prod/packages/shared-chunks/{set_properties-CcLLHg1w.js → set_properties-Qxhw4qzw.js} +2 -2
- package/dist/prod/packages/shared-chunks/{setup-registry-D14I0iDX.js → setup-registry-U-6VaNQG.js} +18 -18
- package/dist/{dev/packages/shared-chunks/simple-cast-BXTrayoV.js → prod/packages/shared-chunks/simple-cast-DCvJLSin.js} +1 -1
- package/dist/{dev/packages/shared-chunks/super-D4qkU4uq.js → prod/packages/shared-chunks/super-BBBjgF69.js} +1 -1
- package/dist/{dev/packages/shared-chunks/syscall-ops-nrBHMOTp.js → prod/packages/shared-chunks/syscall-ops-CN7STuUn.js} +1 -1
- package/dist/prod/packages/shared-chunks/{template-B0Apv9g2.js → template-BRrQR6KS.js} +1 -1
- package/dist/prod/packages/shared-chunks/{template-only-CP0NT7ce.js → template-only-DKNcKM5b.js} +2 -4
- package/dist/prod/packages/shared-chunks/{textarea-B_JYBuE8.js → textarea-DOmZ1x0E.js} +11 -7
- package/dist/prod/packages/shared-chunks/{tracked-CXcapuAm.js → tracked-B9380JtC.js} +5 -5
- package/dist/prod/packages/shared-chunks/{tracked-data-DNDzhYXf.js → tracked-data-CHq42QHb.js} +2 -2
- package/dist/prod/packages/shared-chunks/{unique-id-Hn8Qp4dS.js → unique-id-o2pS74go.js} +2 -2
- package/dist/prod/packages/shared-chunks/{unrecognized-url-error-ClNyMFJt.js → unrecognized-url-error-EgNrnFu_.js} +2 -2
- package/dist/{dev/packages/shared-chunks/vm-ops-5QCUIRx4.js → prod/packages/shared-chunks/vm-ops-ImHv0Wtg.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
|
@@ -1,55 +1,50 @@
|
|
|
1
1
|
import { privatize } from '../@ember/-internals/container/index.js';
|
|
2
2
|
import { E as ENV } from './env-g-kaAFLN.js';
|
|
3
3
|
import { isFactory, getOwner } from '../@ember/-internals/owner/index.js';
|
|
4
|
-
import {
|
|
4
|
+
import { g as guidFor } from './guid-Cbq2sNV_.js';
|
|
5
5
|
import { constructStyleDeprecationMessage, getViewId, getViewElement } from '../@ember/-internals/views/lib/system/utils.js';
|
|
6
6
|
import { deprecate, warn } from '../@ember/debug/index.js';
|
|
7
7
|
import { schedule, _backburner, _getCurrentRunLoop } from '../@ember/runloop/index.js';
|
|
8
8
|
import { associateDestroyableChild, isDestroyed, destroy, registerDestructor, isDestroying } from '../@glimmer/destroyable/index.js';
|
|
9
9
|
import { artifacts } from '../@glimmer/program/index.js';
|
|
10
|
-
import { R as RuntimeOpImpl } from './program-
|
|
11
|
-
import { v as valueForRef, U as UNDEFINED_REFERENCE,
|
|
12
|
-
import {
|
|
13
|
-
import { E as EMPTY_ARGS,
|
|
14
|
-
import { g as runtimeOptions, i as inTransaction, r as renderComponent$1, d as renderMain } from './render-
|
|
15
|
-
import { d as dict } from './collections-
|
|
16
|
-
import { u as unwrapTemplate,
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { h as hasDOM } from './index-DX90CU4L.js';
|
|
20
|
-
import EngineInstance from '../@ember/engine/instance.js';
|
|
10
|
+
import { R as RuntimeOpImpl } from './program-DlgjqLa6.js';
|
|
11
|
+
import { v as valueForRef, U as UNDEFINED_REFERENCE, c as createComputeRef, i as isConstRef, a as createConstRef, d as isUpdatableRef, j as createInvokableRef, k as createReadOnlyRef, l as createUnboundRef, h as createDebugAliasRef, g as childRefFromParts, u as updateRef } from './reference-BqOLhKFy.js';
|
|
12
|
+
import { c as clientBuilder } from './api-C0PAtEgQ.js';
|
|
13
|
+
import { E as EMPTY_ARGS, c as createCapturedArgs, b as EMPTY_POSITIONAL, d as curry } from './arguments-CDkbOqTS.js';
|
|
14
|
+
import { g as runtimeOptions, i as inTransaction, r as renderComponent$1, d as renderMain } from './render-87_sKZ_k.js';
|
|
15
|
+
import { d as dict } from './collections-DPkjqeA3.js';
|
|
16
|
+
import { u as unwrapTemplate, a as CurlyComponentManager, i as initialRenderInstrumentDetails, p as processComponentInitializationAssertions, b as ComponentStateBucket, D as DIRTY_TAG, c as isCurlyManager, B as BOUNDS } from './curly-Ei5G8jhk.js';
|
|
17
|
+
import { C as CONSTANT_TAG, c as consumeTag, z as isTracking, e as debug, D as DIRTY_TAG$1, r as createTag, a as valueForTag, k as CURRENT_TAG, v as validateTag } from './cache-DGDPVCpC.js';
|
|
18
|
+
import { h as hasDOM } from './index-BGP1rw3B.js';
|
|
21
19
|
import { _instrumentStart } from '../@ember/instrumentation/index.js';
|
|
22
|
-
import { c as capabilityFlagsFrom } from './capabilities-
|
|
23
|
-
import {
|
|
20
|
+
import { c as capabilityFlagsFrom } from './capabilities-CajW4QjE.js';
|
|
21
|
+
import { t as templateFactory } from './index-DaFzpTIE.js';
|
|
24
22
|
import { assert } from '../@ember/debug/lib/assert.js';
|
|
25
23
|
import { g as getFactoryFor } from './container-BzzHmCNj.js';
|
|
26
|
-
import { g as get,
|
|
27
|
-
import { _ as _setProp, s as set } from './property_set-
|
|
24
|
+
import { g as get, b as _getProp } from './property_get-CRP7MFz_.js';
|
|
25
|
+
import { _ as _setProp, s as set } from './property_set-qCUylPEK.js';
|
|
28
26
|
import { g as getDebugName } from './get-debug-name-CSniHBsn.js';
|
|
29
27
|
import setGlobalContext from '../@glimmer/global-context/index.js';
|
|
30
|
-
import { t as tagForObject, o as objectAt,
|
|
28
|
+
import { t as tagForObject, o as objectAt, a as tagForProperty } from './chain-tags-uWSImHzB.js';
|
|
31
29
|
import { isEmberArray } from '../@ember/array/-internals.js';
|
|
32
30
|
import { i as isObject } from './spec-BXl1reqK.js';
|
|
33
|
-
import { t as tagFor } from './meta-
|
|
31
|
+
import { t as tagFor } from './meta-BqC7f9Ia.js';
|
|
34
32
|
import { contentFor } from '../@ember/-internals/runtime/lib/mixins/-proxy.js';
|
|
35
33
|
import { i as isProxy } from './is_proxy-Bzg0d4m4.js';
|
|
36
|
-
import { i as internalHelper } from './internal-helper-
|
|
34
|
+
import { i as internalHelper } from './internal-helper-CKrni0b_.js';
|
|
37
35
|
import { i as isHTMLSafe } from './index-D-xTBV4B.js';
|
|
38
|
-
import
|
|
36
|
+
import isArray from '../@ember/array/lib/is-array.js';
|
|
39
37
|
import { g as getComponentTemplate } from './template-R_5UMHhb.js';
|
|
40
|
-
import { c as hasInternalComponentManager, j as setInternalHelperManager, g as getInternalComponentManager } from './api-
|
|
41
|
-
import { h as hash, f as fn, a as array } from './hash-
|
|
42
|
-
import { g as get$1, c as concat } from './get-
|
|
43
|
-
import { o as on } from './on-
|
|
44
|
-
import { T as TEMPLATE_ONLY_COMPONENT_MANAGER, t as templateOnlyComponent } from './template-only-
|
|
45
|
-
import { i as isClassicHelper, C as CLASSIC_HELPER_MANAGER } from './helper-
|
|
38
|
+
import { c as hasInternalComponentManager, j as setInternalHelperManager, g as getInternalComponentManager } from './api-DuLOZMO_.js';
|
|
39
|
+
import { h as hash, f as fn, a as array } from './hash-6NDs_5_f.js';
|
|
40
|
+
import { g as get$1, c as concat } from './get-6I3sjd-I.js';
|
|
41
|
+
import { o as on } from './on-DlF0Wy7P.js';
|
|
42
|
+
import { T as TEMPLATE_ONLY_COMPONENT_MANAGER, t as templateOnlyComponent } from './template-only-Cu639ICT.js';
|
|
43
|
+
import { i as isClassicHelper, C as CLASSIC_HELPER_MANAGER } from './helper-DIj85_-f.js';
|
|
46
44
|
import { dasherize } from '../@ember/-internals/string/index.js';
|
|
47
|
-
import { a as uniqueId } from './unique-id-
|
|
48
|
-
import '../route-recognizer/index.js';
|
|
49
|
-
import './unrecognized-url-error-BQdkjTtZ.js';
|
|
50
|
-
import '../@ember/routing/lib/routing-service.js';
|
|
45
|
+
import { a as uniqueId } from './unique-id-DQOhouG1.js';
|
|
51
46
|
import { generateControllerFactory } from '../@ember/routing/lib/generate_controller.js';
|
|
52
|
-
import { E as EvaluationContextImpl } from './program-context-
|
|
47
|
+
import { E as EvaluationContextImpl } from './program-context-Dq8xN2HI.js';
|
|
53
48
|
|
|
54
49
|
function instrumentationPayload$1(def) {
|
|
55
50
|
// "main" used to be the outlet name, keeping it around for compatibility
|
|
@@ -92,14 +87,15 @@ class OutletComponentManager {
|
|
|
92
87
|
let currentState = valueForRef(currentStateRef);
|
|
93
88
|
let currentOwner = currentState?.render?.owner;
|
|
94
89
|
if (parentOwner && parentOwner !== currentOwner) {
|
|
95
|
-
(!(currentOwner
|
|
90
|
+
(!(currentOwner != null && 'buildChildEngineInstance' in currentOwner) && assert('Expected currentOwner to be an EngineInstance', currentOwner != null && 'buildChildEngineInstance' in currentOwner));
|
|
91
|
+
let engineInstance = currentOwner;
|
|
96
92
|
let {
|
|
97
93
|
mountPoint
|
|
98
|
-
} =
|
|
94
|
+
} = engineInstance;
|
|
99
95
|
if (mountPoint) {
|
|
100
96
|
state.engine = {
|
|
101
97
|
mountPoint,
|
|
102
|
-
instance:
|
|
98
|
+
instance: engineInstance
|
|
103
99
|
};
|
|
104
100
|
}
|
|
105
101
|
}
|
|
@@ -246,7 +242,7 @@ class RootComponentDefinition {
|
|
|
246
242
|
*/
|
|
247
243
|
|
|
248
244
|
/**
|
|
249
|
-
The `{{#each}}`
|
|
245
|
+
The `{{#each}}` keyword loops over elements in a collection. It is an extension
|
|
250
246
|
of the base Handlebars `{{#each}}` helper.
|
|
251
247
|
|
|
252
248
|
The default behavior of `{{#each}}` is to yield its inner block once for every
|
|
@@ -290,6 +286,8 @@ class RootComponentDefinition {
|
|
|
290
286
|
{{/each}}
|
|
291
287
|
</ul>
|
|
292
288
|
```
|
|
289
|
+
|
|
290
|
+
`#each` is a keyword and does not need to be imported.
|
|
293
291
|
|
|
294
292
|
### Specifying Keys
|
|
295
293
|
|
|
@@ -357,11 +355,11 @@ class RootComponentDefinition {
|
|
|
357
355
|
*/
|
|
358
356
|
|
|
359
357
|
/**
|
|
360
|
-
The `{{each-in}}`
|
|
358
|
+
The `{{#each-in}}` keyword loops over properties on an object.
|
|
361
359
|
|
|
362
360
|
For example, given this component definition:
|
|
363
361
|
|
|
364
|
-
```app/components/developer-details.
|
|
362
|
+
```app/components/developer-details.gjs
|
|
365
363
|
import Component from '@glimmer/component';
|
|
366
364
|
import { tracked } from '@glimmer/tracking';
|
|
367
365
|
|
|
@@ -370,21 +368,19 @@ class RootComponentDefinition {
|
|
|
370
368
|
"name": "Shelly Sails",
|
|
371
369
|
"age": 42
|
|
372
370
|
};
|
|
371
|
+
|
|
372
|
+
<template>
|
|
373
|
+
<ul>
|
|
374
|
+
{{#each-in this.developer as |key value|}}
|
|
375
|
+
<li>{{key}}: {{value}}</li>
|
|
376
|
+
{{/each-in}}
|
|
377
|
+
</ul>
|
|
378
|
+
</template>
|
|
373
379
|
}
|
|
374
380
|
```
|
|
375
381
|
|
|
376
382
|
This template would display all properties on the `developer`
|
|
377
|
-
object in a list:
|
|
378
|
-
|
|
379
|
-
```app/components/developer-details.hbs
|
|
380
|
-
<ul>
|
|
381
|
-
{{#each-in this.developer as |key value|}}
|
|
382
|
-
<li>{{key}}: {{value}}</li>
|
|
383
|
-
{{/each-in}}
|
|
384
|
-
</ul>
|
|
385
|
-
```
|
|
386
|
-
|
|
387
|
-
Outputting their name and age:
|
|
383
|
+
object in a list, outputting their name and age:
|
|
388
384
|
|
|
389
385
|
```html
|
|
390
386
|
<ul>
|
|
@@ -392,6 +388,8 @@ class RootComponentDefinition {
|
|
|
392
388
|
<li>age: 42</li>
|
|
393
389
|
</ul>
|
|
394
390
|
```
|
|
391
|
+
|
|
392
|
+
`#each-in` is a keyword and does not need to be imported.
|
|
395
393
|
|
|
396
394
|
@method each-in
|
|
397
395
|
@for Ember.Templates.helpers
|
|
@@ -861,73 +859,42 @@ const trackArray = internalHelper(({
|
|
|
861
859
|
*/
|
|
862
860
|
|
|
863
861
|
/**
|
|
864
|
-
The `mut` helper
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
862
|
+
The `mut` helper is a shortcut for updating for args.
|
|
863
|
+
|
|
864
|
+
However, defining update functions on your backing class is preferable to using `mut`.
|
|
865
|
+
|
|
866
|
+
More directly: Don't use `mut`.
|
|
868
867
|
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
or
|
|
874
|
-
|
|
875
|
-
```handlebars
|
|
876
|
-
{{my-child childClickCount=(mut totalClicks)}}
|
|
877
|
-
```
|
|
878
|
-
|
|
879
|
-
The child `Component` can then modify the parent's value just by modifying its own
|
|
880
|
-
property:
|
|
881
|
-
|
|
882
|
-
```javascript
|
|
883
|
-
// my-child.js
|
|
884
|
-
export default class MyChild extends Component {
|
|
885
|
-
click() {
|
|
886
|
-
this.incrementProperty('childClickCount');
|
|
887
|
-
}
|
|
888
|
-
}
|
|
889
|
-
```
|
|
890
|
-
|
|
891
|
-
Note that for curly components (`{{my-component}}`) the bindings are already mutable,
|
|
892
|
-
making the `mut` unnecessary.
|
|
893
|
-
|
|
894
|
-
Additionally, the `mut` helper can be combined with the `fn` helper to
|
|
895
|
-
mutate a value. For example:
|
|
896
|
-
|
|
897
|
-
```handlebars
|
|
898
|
-
<MyChild @childClickCount={{this.totalClicks}} @click-count-change={{fn (mut totalClicks))}} />
|
|
899
|
-
```
|
|
900
|
-
|
|
901
|
-
or
|
|
868
|
+
The `mut` helper, when used with `fn`, will return a function that
|
|
869
|
+
sets the value passed to `mut` to its first argument. As an example, we can create a
|
|
870
|
+
button that increments a value passing the value directly to the `fn`:
|
|
902
871
|
|
|
903
872
|
```handlebars
|
|
904
|
-
|
|
873
|
+
<MyChild @childClickCount={{this.totalClicks}} @clickCountChange={{fn (mut this.totalClicks)}} />
|
|
905
874
|
```
|
|
906
875
|
|
|
907
|
-
The child `Component` would invoke the function with the new click
|
|
876
|
+
The child `Component` would invoke the function with the new click count:
|
|
908
877
|
|
|
909
|
-
```
|
|
910
|
-
|
|
878
|
+
```app/components/my-child.gjs
|
|
879
|
+
import Component from '@glimmer/component';
|
|
880
|
+
import { action } from '@ember/object';
|
|
881
|
+
|
|
911
882
|
export default class MyChild extends Component {
|
|
912
|
-
|
|
913
|
-
|
|
883
|
+
@action
|
|
884
|
+
update() {
|
|
885
|
+
this.args.clickCountChange(this.args.childClickCount + 1);
|
|
914
886
|
}
|
|
887
|
+
|
|
888
|
+
<template>
|
|
889
|
+
<button {{on "click" this.update}}>
|
|
890
|
+
Click me!
|
|
891
|
+
</button>
|
|
892
|
+
</template>
|
|
915
893
|
}
|
|
916
894
|
```
|
|
917
895
|
|
|
918
896
|
The `mut` helper changes the `totalClicks` value to what was provided as the `fn` argument.
|
|
919
897
|
|
|
920
|
-
The `mut` helper, when used with `fn`, will return a function that
|
|
921
|
-
sets the value passed to `mut` to its first argument. As an example, we can create a
|
|
922
|
-
button that increments a value passing the value directly to the `fn`:
|
|
923
|
-
|
|
924
|
-
```handlebars
|
|
925
|
-
{{! inc helper is not provided by Ember }}
|
|
926
|
-
<button onclick={{fn (mut count) (inc count)}}>
|
|
927
|
-
Increment count
|
|
928
|
-
</button>
|
|
929
|
-
```
|
|
930
|
-
|
|
931
898
|
@method mut
|
|
932
899
|
@param {Object} [attr] the "two-way" attribute that can be modified.
|
|
933
900
|
@for Ember.Templates.helpers
|
|
@@ -962,6 +929,10 @@ const mut = internalHelper(({
|
|
|
962
929
|
/**
|
|
963
930
|
The `readonly` helper let's you specify that a binding is one-way only,
|
|
964
931
|
instead of two-way.
|
|
932
|
+
|
|
933
|
+
This is a vestigial helper from the days of `@ember/component` and does not apply to
|
|
934
|
+
components extending from `@glimmer/component`.
|
|
935
|
+
|
|
965
936
|
When you pass a `readonly` binding from an outer context (e.g. parent component),
|
|
966
937
|
to to an inner context (e.g. child component), you are saying that changing that
|
|
967
938
|
property in the inner context does not change the value in the outer context.
|
|
@@ -974,14 +945,6 @@ const mut = internalHelper(({
|
|
|
974
945
|
}
|
|
975
946
|
```
|
|
976
947
|
|
|
977
|
-
```app/templates/components/my-parent.hbs
|
|
978
|
-
{{log totalClicks}} // -> 3
|
|
979
|
-
<MyChild @childClickCount={{readonly totalClicks}} />
|
|
980
|
-
```
|
|
981
|
-
```
|
|
982
|
-
{{my-child childClickCount=(readonly totalClicks)}}
|
|
983
|
-
```
|
|
984
|
-
|
|
985
948
|
Now, when you update `childClickCount`:
|
|
986
949
|
|
|
987
950
|
```app/components/my-child.js
|
|
@@ -1156,7 +1119,7 @@ class MountManager {
|
|
|
1156
1119
|
// mount is a runtime helper, this shouldn't use dynamic layout
|
|
1157
1120
|
// we should resolve the engine app template in the helper
|
|
1158
1121
|
// it also should use the owner that looked up the mount helper.
|
|
1159
|
-
(!(
|
|
1122
|
+
(!('buildChildEngineInstance' in owner) && assert('Expected owner to be an EngineInstance', 'buildChildEngineInstance' in owner));
|
|
1160
1123
|
let engine = owner.buildChildEngineInstance(name);
|
|
1161
1124
|
engine.boot();
|
|
1162
1125
|
let applicationFactory = engine.factoryFor(`controller:application`);
|
|
@@ -1265,15 +1228,14 @@ class MountDefinition {
|
|
|
1265
1228
|
|
|
1266
1229
|
For example, the following template mounts the `ember-chat` engine:
|
|
1267
1230
|
|
|
1268
|
-
```
|
|
1269
|
-
{{! application.hbs }}
|
|
1231
|
+
```app/templates/application.gjs
|
|
1270
1232
|
{{mount "ember-chat"}}
|
|
1271
1233
|
```
|
|
1272
1234
|
|
|
1273
1235
|
Additionally, you can also pass in a `model` argument that will be
|
|
1274
1236
|
set as the engines model. This can be an existing object:
|
|
1275
1237
|
|
|
1276
|
-
```
|
|
1238
|
+
```hbs
|
|
1277
1239
|
<div>
|
|
1278
1240
|
{{mount 'admin' model=userSettings}}
|
|
1279
1241
|
</div>
|
|
@@ -1281,15 +1243,20 @@ class MountDefinition {
|
|
|
1281
1243
|
|
|
1282
1244
|
Or an inline `hash`, and you can even pass components:
|
|
1283
1245
|
|
|
1246
|
+
```gjs
|
|
1247
|
+
import SignInButton from '../components/sign-in-button';
|
|
1248
|
+
<template>
|
|
1249
|
+
<div>
|
|
1250
|
+
<h1>Application template!</h1>
|
|
1251
|
+
{{mount 'admin' model=(hash
|
|
1252
|
+
title='Secret Admin'
|
|
1253
|
+
signInButton=SignInButton
|
|
1254
|
+
)}}
|
|
1255
|
+
</div>
|
|
1256
|
+
</template>
|
|
1284
1257
|
```
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
{{mount 'admin' model=(hash
|
|
1288
|
-
title='Secret Admin'
|
|
1289
|
-
signInButton=(component 'sign-in-button')
|
|
1290
|
-
)}}
|
|
1291
|
-
</div>
|
|
1292
|
-
```
|
|
1258
|
+
|
|
1259
|
+
`mount` is built-in and does not need to be imported.
|
|
1293
1260
|
|
|
1294
1261
|
@method mount
|
|
1295
1262
|
@param {String} name Name of the engine to mount.
|
|
@@ -1433,23 +1400,30 @@ function makeRouteTemplate(owner, name, template) {
|
|
|
1433
1400
|
/**
|
|
1434
1401
|
The `{{outlet}}` helper lets you specify where a child route will render in
|
|
1435
1402
|
your template. An important use of the `{{outlet}}` helper is in your
|
|
1436
|
-
application's `application.
|
|
1437
|
-
|
|
1438
|
-
```app/templates/application.
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1403
|
+
application's `application.gjs` file:
|
|
1404
|
+
|
|
1405
|
+
```app/templates/application.gjs
|
|
1406
|
+
import MyHeader from '../components/my-header';
|
|
1407
|
+
import MyFooter from '../components/my-footer';
|
|
1408
|
+
|
|
1409
|
+
<template>
|
|
1410
|
+
<MyHeader />
|
|
1411
|
+
|
|
1412
|
+
<div class="my-dynamic-content">
|
|
1413
|
+
<!-- this content will change based on the current route, which depends on the current URL -->
|
|
1414
|
+
{{outlet}}
|
|
1415
|
+
</div>
|
|
1416
|
+
|
|
1417
|
+
<MyFooter />
|
|
1418
|
+
</template>
|
|
1447
1419
|
```
|
|
1448
1420
|
|
|
1449
1421
|
See the [routing guide](https://guides.emberjs.com/release/routing/rendering-a-template/) for more
|
|
1450
1422
|
information on how your `route` interacts with the `{{outlet}}` helper.
|
|
1451
1423
|
Note: Your content __will not render__ if there isn't an `{{outlet}}` for it.
|
|
1452
1424
|
|
|
1425
|
+
`outlet` is built-in and does not need to be imported.
|
|
1426
|
+
|
|
1453
1427
|
@method outlet
|
|
1454
1428
|
@for Ember.Templates.helpers
|
|
1455
1429
|
@public
|
|
@@ -2001,7 +1975,12 @@ let renderSettledDeferred = null;
|
|
|
2001
1975
|
*/
|
|
2002
1976
|
function renderSettled() {
|
|
2003
1977
|
if (renderSettledDeferred === null) {
|
|
2004
|
-
|
|
1978
|
+
let resolve;
|
|
1979
|
+
let promise = new Promise(r => resolve = r);
|
|
1980
|
+
renderSettledDeferred = {
|
|
1981
|
+
promise,
|
|
1982
|
+
resolve
|
|
1983
|
+
};
|
|
2005
1984
|
// if there is no current runloop, the promise created above will not have
|
|
2006
1985
|
// a chance to resolve (because its resolved in backburner's "end" event)
|
|
2007
1986
|
if (!_getCurrentRunLoop()) {
|
|
@@ -19,4 +19,4 @@ const environment = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.definePropert
|
|
|
19
19
|
window
|
|
20
20
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
21
21
|
|
|
22
|
-
export {
|
|
22
|
+
export { isChrome as a, history$1 as b, environment as e, hasDOM as h, isFirefox as i, location$1 as l, userAgent as u, window as w };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { a as assign } from './object-utils-AijlD-JH.js';
|
|
2
|
-
import { b as EMPTY_STRING_ARRAY, E as EMPTY_ARRAY,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { i as isPresentArray } from './present-
|
|
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, 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
|
+
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
|
+
import { e as expect, u as unwrap, S as StackImpl, d as dict } from './collections-DPkjqeA3.js';
|
|
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
|
-
import {
|
|
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, {
|
|
@@ -1954,4 +1955,4 @@ class TemplateImpl {
|
|
|
1954
1955
|
}
|
|
1955
1956
|
}
|
|
1956
1957
|
|
|
1957
|
-
export { CallDynamic as C, EMPTY_BLOCKS as E,
|
|
1958
|
+
export { CallDynamic as C, EMPTY_BLOCKS as E, InvokeStaticBlock as I, SwitchCases as S, WrappedBuilder as W, templateCacheCounters as a, compileStatements as b, compilable as c, InvokeStaticBlockWithStack as d, templateCompilationContext as e, EncoderImpl as f, encodeOp as g, InvokeBareComponent as h, invokePreparedComponent as i, meta as m, templateFactory as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getOwner } from '../@ember/-internals/owner/index.js';
|
|
2
2
|
import '../@ember/debug/index.js';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { c as computed, d as defineProperty } from './computed-BPCtuOxQ.js';
|
|
4
|
+
import { i as isElementDescriptor } from './decorator-B5Uh5NFI.js';
|
|
5
5
|
import { assert } from '../@ember/debug/lib/assert.js';
|
|
6
6
|
|
|
7
7
|
let DEBUG_INJECTION_FUNCTIONS;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { setOwner } from '../@ember/-internals/owner/index.js';
|
|
2
|
-
import {
|
|
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,
|
|
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,
|
|
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';
|
|
@@ -131,4 +131,4 @@ function tryIsNamespace(lookup, prop) {
|
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
export { NAMESPACES as N, NAMESPACES_BY_ID as a, addNamespace as b, findNamespaces as c, processNamespace as d,
|
|
134
|
+
export { NAMESPACES as N, NAMESPACES_BY_ID as a, addNamespace as b, findNamespaces as c, processNamespace as d, setSearchDisabled as e, findNamespace as f, isSearchDisabled as i, processAllNamespaces as p, removeNamespace as r, setUnprocessedMixins as s };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { e as expect } from './collections-DPkjqeA3.js';
|
|
2
2
|
import { s as setLocalDebugType } from './debug-brand-B1TWjOCH.js';
|
|
3
3
|
|
|
4
4
|
class CursorImpl {
|
|
@@ -81,4 +81,4 @@ function isString(value) {
|
|
|
81
81
|
return typeof value === 'string';
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
export { ConcreteBounds as C, CursorImpl as a,
|
|
84
|
+
export { ConcreteBounds as C, CursorImpl as a, isEmpty as b, clear as c, isString as d, isFragment as e, isNode as f, isSafeString as i, move as m, normalizeStringValue as n, shouldCoerce as s };
|
|
@@ -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 };
|