ember-source 7.4.0-alpha.1 → 7.5.0-alpha.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/build-metadata.json +3 -3
- package/dist/dev/packages/@ember/-internals/deprecations/index.js +45 -0
- package/dist/dev/packages/@ember/-internals/glimmer/index.js +9 -9
- package/dist/dev/packages/@ember/-internals/metal/index.js +12 -12
- package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/-proxy.js +6 -6
- package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/action_handler.js +2 -2
- package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/comparable.js +2 -2
- package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/container_proxy.js +2 -2
- package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/registry_proxy.js +2 -2
- package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +3 -3
- package/dist/dev/packages/@ember/-internals/views/index.js +1 -0
- package/dist/dev/packages/@ember/-internals/views/lib/mixins/action_support.js +2 -2
- package/dist/dev/packages/@ember/-internals/views/lib/system/event_dispatcher.js +1 -1
- package/dist/dev/packages/@ember/-internals/views/lib/views/core-view-utils.js +14 -0
- package/dist/dev/packages/@ember/-internals/views/lib/views/core_view.js +25 -21
- package/dist/dev/packages/@ember/-internals/views/lib/views/states.js +5 -2
- package/dist/dev/packages/@ember/application/index.js +1 -1
- package/dist/dev/packages/@ember/application/instance.js +16 -13
- package/dist/dev/packages/@ember/application/namespace.js +1 -1
- package/dist/dev/packages/@ember/array/index.js +8 -8
- package/dist/dev/packages/@ember/array/proxy.js +8 -5
- package/dist/dev/packages/@ember/component/helper.js +2 -2
- package/dist/dev/packages/@ember/component/index.js +7 -7
- package/dist/dev/packages/@ember/component/template-only.js +1 -1
- package/dist/dev/packages/@ember/controller/index.js +4 -4
- package/dist/dev/packages/@ember/engine/index.js +2 -2
- package/dist/dev/packages/@ember/enumerable/index.js +2 -2
- package/dist/dev/packages/@ember/enumerable/mutable.js +2 -2
- package/dist/dev/packages/@ember/helper/index.js +8 -8
- 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 +1 -1
- 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 +3 -71
- package/dist/dev/packages/@ember/object/events.js +17 -1
- package/dist/dev/packages/@ember/object/index.js +4 -4
- package/dist/dev/packages/@ember/object/lib/computed/computed_macros.js +3 -3
- package/dist/dev/packages/@ember/object/lib/computed/reduce_computed_macros.js +1 -1
- package/dist/dev/packages/@ember/object/mixin.js +11 -592
- 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 +10 -4
- package/dist/dev/packages/@ember/object/proxy.js +8 -1
- package/dist/dev/packages/@ember/renderer/index.js +1 -1
- package/dist/dev/packages/@ember/routing/index.js +1 -1
- package/dist/dev/packages/@ember/routing/lib/routing-service.js +2 -2
- package/dist/dev/packages/@ember/routing/route.js +34 -9
- package/dist/dev/packages/@ember/routing/router-service.js +71 -6
- package/dist/dev/packages/@ember/routing/router.js +32 -6
- 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/@glimmer/destroyable/index.js +43 -14
- package/dist/dev/packages/@glimmer/manager/index.js +3 -3
- package/dist/dev/packages/@glimmer/node/index.js +2 -2
- package/dist/dev/packages/@glimmer/program/index.js +1 -1
- package/dist/dev/packages/@glimmer/reference/index.js +2 -2
- package/dist/dev/packages/@glimmer/runtime/index.js +11 -11
- package/dist/dev/packages/@glimmer/tracking/index.js +1 -1
- package/dist/dev/packages/ember/version.js +1 -1
- package/dist/dev/packages/shared-chunks/{alias-3DBxvoim.js → alias-CSzPOqZC.js} +3 -3
- package/dist/dev/packages/shared-chunks/{api-BlZDPg1n.js → api-B0N4oLJG.js} +3 -3
- package/dist/dev/packages/shared-chunks/{api-Dz70AUL_.js → api-CK8FxDZV.js} +2 -0
- package/dist/dev/packages/shared-chunks/{api-DuLOZMO_.js → api-PyzZqscb.js} +2 -2
- package/dist/dev/packages/shared-chunks/{args-proxy-CS5Brs3_.js → args-proxy-C39f5UPF.js} +1 -1
- package/dist/dev/packages/shared-chunks/{arguments-DniR8eF2.js → arguments-LEaMCStR.js} +7 -3
- package/dist/dev/packages/shared-chunks/{array-DvaweI_T.js → array-CxZAmpTY.js} +2 -2
- package/dist/dev/packages/shared-chunks/{chain-tags-uWSImHzB.js → chain-tags-uYrtCZq1.js} +1 -1
- package/dist/dev/packages/shared-chunks/{computed-DGxbeUbf.js → computed-CXIM4Sjc.js} +3 -3
- package/dist/dev/packages/shared-chunks/{curly-BCD_vyHq.js → curly-DbGgDeux.js} +18 -17
- package/dist/dev/packages/shared-chunks/destroyable-key-BsfVBM7f.js +12 -0
- package/dist/dev/packages/shared-chunks/{element-Cgoi4ldD.js → element-DLh78jeJ.js} +3 -3
- package/dist/dev/packages/shared-chunks/evented-cAr_RO4u.js +100 -0
- package/dist/dev/packages/shared-chunks/{events-6aFVjD4k.js → events-e_Do73jh.js} +3 -0
- package/dist/dev/packages/shared-chunks/{get-zsePWrJL.js → get-fzmvcT9R.js} +3 -3
- package/dist/dev/packages/shared-chunks/{hash-BFu91gtE.js → hash-D1O4fZ99.js} +3 -3
- package/dist/dev/packages/shared-chunks/{index-Bv9SQpEx.js → index-D8La4_AP.js} +12 -12
- package/dist/dev/packages/shared-chunks/{injected_property-DbXd6Gax.js → injected_property-DyyWscn-.js} +1 -1
- package/dist/dev/packages/shared-chunks/{internal-DTOXyEGM.js → internal-CZjbPyX3.js} +2 -2
- package/dist/dev/packages/shared-chunks/{internal-helper-CKrni0b_.js → internal-helper-BkRVvV7p.js} +1 -1
- package/dist/dev/packages/shared-chunks/{invoke-CgF42joE.js → invoke-BPNErlhO.js} +2 -2
- package/dist/dev/packages/shared-chunks/mixin-M88Ghbyw.js +612 -0
- package/dist/dev/packages/shared-chunks/{namespace_search-BfvzEQzN.js → namespace_search-TFdmjK_a.js} +1 -1
- package/dist/dev/packages/shared-chunks/{not-0cVb-rLf.js → not-DNpbxEvj.js} +2 -2
- package/dist/dev/packages/shared-chunks/{observers-DMlX2nCi.js → observers-BsxKjjpC.js} +2 -2
- package/dist/dev/packages/shared-chunks/{on-CVIjn2C-.js → on-Dfya_9b_.js} +3 -3
- package/dist/dev/packages/shared-chunks/{outlet-BO5-QFmm.js → outlet-wIOlGMfN.js} +3 -3
- package/dist/dev/packages/shared-chunks/{property_set-DezUwDX4.js → property_set-CxxTalOq.js} +1 -1
- package/dist/dev/packages/shared-chunks/{reference-BqOLhKFy.js → reference-De0V3Vxp.js} +2 -0
- package/dist/dev/packages/shared-chunks/{rehydrate-builder-CsnkZkur.js → rehydrate-builder-B3wE1O5a.js} +1 -1
- package/dist/dev/packages/shared-chunks/{render-D_Rawf-r.js → render-CNXCIKfb.js} +16 -5
- package/dist/dev/packages/shared-chunks/{serialize-builder-D1oAeiyl.js → serialize-builder-v4amW_JS.js} +1 -1
- package/dist/{prod/packages/shared-chunks/set_properties-DYiBfzdk.js → dev/packages/shared-chunks/set_properties-KoN0q2wj.js} +2 -2
- package/dist/dev/packages/shared-chunks/{setup-registry-Ci8Af2Bz.js → setup-registry-BPb25ZxQ.js} +16 -15
- package/dist/dev/packages/shared-chunks/{template-only-Cu639ICT.js → template-only-DHdQevpG.js} +2 -2
- package/dist/dev/packages/shared-chunks/{textarea-DvS6Xmdh.js → textarea-Obtv2iCY.js} +3 -3
- package/dist/dev/packages/shared-chunks/{tracked-57EW14Ny.js → tracked-CLY9ttD5.js} +1 -1
- package/dist/dev/packages/shared-chunks/{unique-id-Csxuh1I7.js → unique-id-CdB2MG3m.js} +2 -2
- package/dist/prod/packages/@ember/-internals/deprecations/index.js +45 -0
- package/dist/prod/packages/@ember/-internals/glimmer/index.js +9 -9
- package/dist/prod/packages/@ember/-internals/metal/index.js +13 -13
- package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/-proxy.js +6 -6
- package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/action_handler.js +2 -2
- package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/comparable.js +2 -2
- package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/container_proxy.js +2 -2
- package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/registry_proxy.js +2 -2
- package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +3 -3
- package/dist/prod/packages/@ember/-internals/views/index.js +1 -0
- package/dist/prod/packages/@ember/-internals/views/lib/mixins/action_support.js +2 -2
- package/dist/prod/packages/@ember/-internals/views/lib/system/event_dispatcher.js +1 -1
- package/dist/prod/packages/@ember/-internals/views/lib/views/core-view-utils.js +14 -0
- package/dist/prod/packages/@ember/-internals/views/lib/views/core_view.js +25 -21
- package/dist/prod/packages/@ember/-internals/views/lib/views/states.js +5 -2
- package/dist/prod/packages/@ember/application/index.js +1 -1
- package/dist/prod/packages/@ember/application/instance.js +14 -12
- package/dist/prod/packages/@ember/application/namespace.js +1 -1
- package/dist/prod/packages/@ember/array/index.js +8 -8
- package/dist/prod/packages/@ember/array/proxy.js +8 -5
- package/dist/prod/packages/@ember/component/helper.js +2 -2
- package/dist/prod/packages/@ember/component/index.js +8 -8
- package/dist/prod/packages/@ember/component/template-only.js +1 -1
- package/dist/prod/packages/@ember/controller/index.js +4 -4
- package/dist/prod/packages/@ember/engine/index.js +2 -2
- package/dist/prod/packages/@ember/enumerable/index.js +2 -2
- package/dist/prod/packages/@ember/enumerable/mutable.js +2 -2
- package/dist/prod/packages/@ember/helper/index.js +8 -8
- 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 +1 -0
- package/dist/prod/packages/@ember/object/compat.js +1 -1
- 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 +3 -71
- package/dist/prod/packages/@ember/object/events.js +17 -1
- package/dist/prod/packages/@ember/object/index.js +5 -5
- package/dist/prod/packages/@ember/object/internals.js +1 -0
- package/dist/prod/packages/@ember/object/lib/computed/computed_macros.js +3 -3
- package/dist/prod/packages/@ember/object/lib/computed/reduce_computed_macros.js +1 -1
- package/dist/prod/packages/@ember/object/mixin.js +9 -557
- 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 +10 -4
- package/dist/prod/packages/@ember/object/proxy.js +8 -1
- package/dist/prod/packages/@ember/renderer/index.js +1 -1
- package/dist/prod/packages/@ember/routing/index.js +1 -1
- package/dist/prod/packages/@ember/routing/lib/routing-service.js +2 -2
- package/dist/prod/packages/@ember/routing/route.js +35 -10
- package/dist/prod/packages/@ember/routing/router-service.js +71 -6
- package/dist/prod/packages/@ember/routing/router.js +32 -6
- 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/@glimmer/destroyable/index.js +37 -11
- package/dist/prod/packages/@glimmer/manager/index.js +3 -3
- package/dist/prod/packages/@glimmer/node/index.js +2 -2
- package/dist/prod/packages/@glimmer/program/index.js +1 -1
- package/dist/prod/packages/@glimmer/reference/index.js +2 -2
- package/dist/prod/packages/@glimmer/runtime/index.js +11 -11
- package/dist/prod/packages/@glimmer/tracking/index.js +1 -1
- package/dist/prod/packages/ember/version.js +1 -1
- package/dist/prod/packages/shared-chunks/{alias-IFzw6sv_.js → alias-DvgufSYq.js} +4 -4
- package/dist/prod/packages/shared-chunks/{api-DzOa0Acr.js → api-B3M8aF1d.js} +2 -0
- package/dist/prod/packages/shared-chunks/{api-B_poQGXS.js → api-CoUjEXgs.js} +3 -3
- package/dist/prod/packages/shared-chunks/{api-DlJKfm_f.js → api-DJnXAjon.js} +2 -2
- package/dist/prod/packages/shared-chunks/{args-proxy-CCoFtYLS.js → args-proxy-BHODnDyt.js} +1 -1
- package/dist/prod/packages/shared-chunks/{arguments-CCYATlEH.js → arguments-xjTAZ6VE.js} +7 -3
- package/dist/prod/packages/shared-chunks/{array-CnXdmzOG.js → array-CK__rqeu.js} +2 -2
- package/dist/prod/packages/shared-chunks/{chain-tags-B2J7DsxO.js → chain-tags-BlsXEpE-.js} +1 -1
- package/dist/prod/packages/shared-chunks/{computed-BNdMwGhH.js → computed-ZvOk7SJQ.js} +4 -4
- package/dist/prod/packages/shared-chunks/{curly-CdvJuTyW.js → curly-Bg--Dj0X.js} +18 -17
- package/dist/prod/packages/shared-chunks/{decorator-9ikVwsjY.js → decorator-DcvVDSJV.js} +1 -1
- package/dist/prod/packages/shared-chunks/destroyable-key-BsfVBM7f.js +12 -0
- package/dist/prod/packages/shared-chunks/{element-BmBjPjkQ.js → element-CZnh4CbF.js} +3 -3
- package/dist/prod/packages/shared-chunks/evented-DYsL5t87.js +100 -0
- package/dist/prod/packages/shared-chunks/{events-DYrYz3V8.js → events-3Q5Qvo6Q.js} +3 -0
- package/dist/prod/packages/shared-chunks/{get-CEjFJzGs.js → get-B1Vq9Mmk.js} +3 -3
- package/dist/prod/packages/shared-chunks/{hash-BitfXhCx.js → hash-pP7ZP_NN.js} +3 -3
- package/dist/prod/packages/shared-chunks/{index-D8cl-pfl.js → index-Dncpaycf.js} +12 -12
- package/dist/prod/packages/shared-chunks/{injected_property-DqQ0XV7k.js → injected_property-4vB_6fM8.js} +2 -2
- package/dist/prod/packages/shared-chunks/{internal-BQ7zHrqS.js → internal-D1sloI2P.js} +2 -2
- package/dist/prod/packages/shared-chunks/{internal-helper-Bz1lpDXr.js → internal-helper-Becm19An.js} +1 -1
- package/dist/prod/packages/shared-chunks/{invoke-4JGJYH7Z.js → invoke-BqNxG81o.js} +2 -2
- package/dist/prod/packages/shared-chunks/mixin-AGmJaAAY.js +576 -0
- package/dist/prod/packages/shared-chunks/{namespace_search-BfvzEQzN.js → namespace_search-TFdmjK_a.js} +1 -1
- package/dist/prod/packages/shared-chunks/{not-Dn5s9qVZ.js → not-BRssU6nS.js} +2 -2
- package/dist/prod/packages/shared-chunks/{observers-BmobpXAF.js → observers-B1wiwQeH.js} +2 -2
- package/dist/prod/packages/shared-chunks/{on-ov4KAucw.js → on-BFt-Sx9A.js} +3 -3
- package/dist/prod/packages/shared-chunks/{outlet-BWnaVOrA.js → outlet-bc38zkd8.js} +3 -3
- package/dist/prod/packages/shared-chunks/{property_set-BmAQ0MGK.js → property_set-CVmdjPdh.js} +2 -2
- package/dist/prod/packages/shared-chunks/{reference-CG0yPgLy.js → reference-CccCE8mJ.js} +2 -0
- package/dist/prod/packages/shared-chunks/{rehydrate-builder-n_8RCUj9.js → rehydrate-builder-B9bh-2Dy.js} +1 -1
- package/dist/prod/packages/shared-chunks/{render-BAVl5E6X.js → render-C_iak8Db.js} +16 -5
- package/dist/prod/packages/shared-chunks/{serialize-builder-CsG9WHVw.js → serialize-builder-Du-432zt.js} +1 -1
- package/dist/{dev/packages/shared-chunks/set_properties-BzM_irwA.js → prod/packages/shared-chunks/set_properties-BObIgkE-.js} +2 -2
- package/dist/prod/packages/shared-chunks/{setup-registry-DeyoFe6Q.js → setup-registry-Czh4z4t2.js} +16 -15
- package/dist/prod/packages/shared-chunks/{template-only-DKNcKM5b.js → template-only-CWsfnbVm.js} +2 -2
- package/dist/prod/packages/shared-chunks/{textarea-B-sssXGa.js → textarea-DbUSajBD.js} +3 -3
- package/dist/prod/packages/shared-chunks/{tracked-DvOpYI0o.js → tracked-z77O-F0O.js} +2 -2
- package/dist/prod/packages/shared-chunks/{unique-id-BJb1p8EG.js → unique-id-DNqsbhfh.js} +2 -2
- package/docs/data.json +859 -511
- package/lib/browsers.cjs +33 -33
- package/package.json +3 -2
- package/types/stable/@ember/-internals/deprecations/index.d.ts +30 -0
- package/types/stable/@ember/-internals/glimmer/index.d.ts +1 -1
- package/types/stable/@ember/-internals/metal/lib/evented-methods.d.ts +22 -0
- package/types/stable/@ember/-internals/metal/lib/events.d.ts +1 -0
- package/types/stable/@ember/-internals/utils/lib/internal-mixin-create.d.ts +13 -0
- package/types/stable/@ember/-internals/views/index.d.ts +1 -0
- package/types/stable/@ember/-internals/views/lib/views/core-view-utils.d.ts +5 -0
- package/types/stable/@ember/-internals/views/lib/views/core_view.d.ts +9 -6
- package/types/stable/@ember/array/proxy.d.ts +1 -0
- package/types/stable/@ember/object/evented.d.ts +6 -0
- package/types/stable/@ember/object/events.d.ts +26 -1
- package/types/stable/@ember/object/mixin.d.ts +3 -0
- package/types/stable/@ember/object/promise-proxy-mixin.d.ts +1 -0
- package/types/stable/@ember/object/proxy.d.ts +2 -0
- package/types/stable/@ember/routing/route.d.ts +9 -2
- package/types/stable/@ember/routing/router-service.d.ts +54 -6
- package/types/stable/@ember/routing/router.d.ts +9 -8
- package/types/stable/@glimmer/destroyable/index.d.ts +1 -0
- package/types/stable/@glimmer/runtime/lib/opcodes.d.ts +1 -2
- package/types/stable/@glimmer/runtime/lib/vm/element-builder.d.ts +2 -0
- package/types/stable/@glimmer/runtime/lib/vm/render-result.d.ts +2 -0
- package/types/stable/@glimmer/runtime/lib/vm/update.d.ts +2 -0
- package/types/stable/@glimmer/syntax/lib/keywords.d.ts +2 -2
- package/types/stable/@glimmer/util/lib/destroyable-key.d.ts +15 -0
- package/types/stable/index.d.ts +4 -0
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { privatize } from '../-internals/container/index.js';
|
|
2
|
-
import { f as flushAsyncObservers, b as addObserver } from '../../shared-chunks/observers-
|
|
3
|
-
import { c as computed, d as defineProperty } from '../../shared-chunks/computed-
|
|
4
|
-
import { d as descriptorForProperty } from '../../shared-chunks/decorator-
|
|
2
|
+
import { f as flushAsyncObservers, b as addObserver } from '../../shared-chunks/observers-B1wiwQeH.js';
|
|
3
|
+
import { c as computed, d as defineProperty } from '../../shared-chunks/computed-ZvOk7SJQ.js';
|
|
4
|
+
import { d as descriptorForProperty } from '../../shared-chunks/decorator-DcvVDSJV.js';
|
|
5
|
+
import { s as sendEvent } from '../../shared-chunks/events-3Q5Qvo6Q.js';
|
|
6
|
+
import { E as Evented, e as eventedOn, a as eventedOne, b as eventedTrigger, c as eventedOff, d as eventedHas } from '../../shared-chunks/evented-DYsL5t87.js';
|
|
5
7
|
import { getOwner } from '../-internals/owner/index.js';
|
|
6
8
|
import { g as get } from '../../shared-chunks/property_get-DuDs6rLg.js';
|
|
7
|
-
import { s as set } from '../../shared-chunks/property_set-
|
|
9
|
+
import { s as set } from '../../shared-chunks/property_set-CVmdjPdh.js';
|
|
8
10
|
import { g as getProperties } from '../../shared-chunks/get_properties-CkJ_mhLz.js';
|
|
9
|
-
import { s as setProperties } from '../../shared-chunks/set_properties-
|
|
11
|
+
import { s as setProperties } from '../../shared-chunks/set_properties-BObIgkE-.js';
|
|
10
12
|
import EmberObject from '../object/index.js';
|
|
11
|
-
import
|
|
13
|
+
import { meta } from '../-internals/meta/lib/meta.js';
|
|
12
14
|
import { A } from '../array/index.js';
|
|
13
15
|
import ActionHandler from '../-internals/runtime/lib/mixins/action_handler.js';
|
|
14
16
|
import typeOf from '../utils/lib/type-of.js';
|
|
@@ -19,7 +21,7 @@ import { isTesting } from '../debug/lib/testing.js';
|
|
|
19
21
|
import '../engine/instance.js';
|
|
20
22
|
import { dependentKeyCompat } from '../object/compat.js';
|
|
21
23
|
import { once } from '../runloop/index.js';
|
|
22
|
-
import { c as hasInternalComponentManager } from '../../shared-chunks/api-
|
|
24
|
+
import { c as hasInternalComponentManager } from '../../shared-chunks/api-DJnXAjon.js';
|
|
23
25
|
import '../../route-recognizer/index.js';
|
|
24
26
|
import '../../shared-chunks/rsvp-aLN_pQtn.js';
|
|
25
27
|
import { S as STATE_SYMBOL, P as PARAMS_SYMBOL } from '../../shared-chunks/unrecognized-url-error-xC654tCo.js';
|
|
@@ -46,7 +48,12 @@ const RENDER_STATE = Symbol('render-state');
|
|
|
46
48
|
@public
|
|
47
49
|
*/
|
|
48
50
|
|
|
49
|
-
class Route extends EmberObject.extend(ActionHandler
|
|
51
|
+
class Route extends EmberObject.extend(ActionHandler) {
|
|
52
|
+
static {
|
|
53
|
+
// The deprecated Evented mixin is no longer applied, but instances still
|
|
54
|
+
// provide its methods, so `Evented.detect` must keep returning true.
|
|
55
|
+
meta(this.prototype).addMixin(Evented);
|
|
56
|
+
}
|
|
50
57
|
static isRouteFactory = true;
|
|
51
58
|
|
|
52
59
|
// These properties will end up appearing in the public interface because we
|
|
@@ -465,9 +472,27 @@ class Route extends EmberObject.extend(ActionHandler, Evented) {
|
|
|
465
472
|
*/
|
|
466
473
|
exit(transition) {
|
|
467
474
|
this.deactivate(transition);
|
|
468
|
-
this
|
|
475
|
+
sendEvent(this, 'deactivate', [transition]);
|
|
469
476
|
this.teardownViews();
|
|
470
477
|
}
|
|
478
|
+
on(name, target, method) {
|
|
479
|
+
eventedOn(this, name, target, method);
|
|
480
|
+
return this;
|
|
481
|
+
}
|
|
482
|
+
one(name, target, method) {
|
|
483
|
+
eventedOne(this, name, target, method);
|
|
484
|
+
return this;
|
|
485
|
+
}
|
|
486
|
+
trigger(name, ...args) {
|
|
487
|
+
eventedTrigger(this, name, args);
|
|
488
|
+
}
|
|
489
|
+
off(name, target, method) {
|
|
490
|
+
eventedOff(this, name, target, method);
|
|
491
|
+
return this;
|
|
492
|
+
}
|
|
493
|
+
has(name) {
|
|
494
|
+
return eventedHas(this, name);
|
|
495
|
+
}
|
|
471
496
|
|
|
472
497
|
/**
|
|
473
498
|
@private
|
|
@@ -488,7 +513,7 @@ class Route extends EmberObject.extend(ActionHandler, Evented) {
|
|
|
488
513
|
enter(transition) {
|
|
489
514
|
this[RENDER_STATE] = undefined;
|
|
490
515
|
this.activate(transition);
|
|
491
|
-
this
|
|
516
|
+
sendEvent(this, 'activate', [transition]);
|
|
492
517
|
}
|
|
493
518
|
|
|
494
519
|
/**
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { getOwner } from '../-internals/owner/index.js';
|
|
2
|
-
import Evented from '../object/evented.js';
|
|
3
2
|
import { c as consumeTag } from '../../shared-chunks/cache-CofLhaS4.js';
|
|
4
3
|
import { t as tagFor } from '../../shared-chunks/meta-BJtIZDir.js';
|
|
5
|
-
import '../../shared-chunks/reference-
|
|
6
|
-
import '../../shared-chunks/observers-
|
|
4
|
+
import '../../shared-chunks/reference-CccCE8mJ.js';
|
|
5
|
+
import '../../shared-chunks/observers-B1wiwQeH.js';
|
|
7
6
|
import '../../shared-chunks/property_get-DuDs6rLg.js';
|
|
8
7
|
import { readOnly } from '../object/lib/computed/computed_macros.js';
|
|
9
8
|
import '../object/core.js';
|
|
@@ -11,6 +10,7 @@ import '../array/index.js';
|
|
|
11
10
|
import Service from '../service/index.js';
|
|
12
11
|
import './router.js';
|
|
13
12
|
import { resemblesURL, extractRouteArgs, shallowEqual } from './lib/utils.js';
|
|
13
|
+
import { a as addListener, s as sendEvent, r as removeListener, h as hasListeners } from '../../shared-chunks/events-3Q5Qvo6Q.js';
|
|
14
14
|
import { d as decorateFieldV2, i as initializeDeferredDecorator } from '../../shared-chunks/runtime-CYyqkz5q-BOdRhmsS.js';
|
|
15
15
|
|
|
16
16
|
/**
|
|
@@ -23,7 +23,6 @@ function cleanURL(url, rootURL) {
|
|
|
23
23
|
}
|
|
24
24
|
return url.substring(rootURL.length);
|
|
25
25
|
}
|
|
26
|
-
|
|
27
26
|
/**
|
|
28
27
|
The Router service is the public API that provides access to the router.
|
|
29
28
|
|
|
@@ -55,9 +54,75 @@ function cleanURL(url, rootURL) {
|
|
|
55
54
|
@extends Service
|
|
56
55
|
@class RouterService
|
|
57
56
|
*/
|
|
58
|
-
|
|
59
|
-
class RouterService extends Service.extend(Evented) {
|
|
57
|
+
class RouterService extends Service {
|
|
60
58
|
[ROUTER];
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
Subscribes to a named event with given function.
|
|
62
|
+
@method on
|
|
63
|
+
@param {String} name The name of the event
|
|
64
|
+
@param {Object} [target] The "this" binding for the callback
|
|
65
|
+
@param {Function|String} method A function or the name of a function to be called on `target`
|
|
66
|
+
@return this
|
|
67
|
+
*/
|
|
68
|
+
|
|
69
|
+
on(name, target, method) {
|
|
70
|
+
// SAFETY: The types are not actually correct, but it's not worth the effort to fix them, since we'll be deprecating this API soon.
|
|
71
|
+
addListener(this, name, target, method);
|
|
72
|
+
return this;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
Subscribes a function to a named event and then cancels the subscription
|
|
77
|
+
after the first time the event is triggered.
|
|
78
|
+
@method one
|
|
79
|
+
@param {String} name The name of the event
|
|
80
|
+
@param {Object} [target] The "this" binding for the callback
|
|
81
|
+
@param {Function|String} method A function or the name of a function to be called on `target`
|
|
82
|
+
@return this
|
|
83
|
+
*/
|
|
84
|
+
|
|
85
|
+
one(name, target, method) {
|
|
86
|
+
// SAFETY: The types are not actually correct, but it's not worth the effort to fix them, since we'll be deprecating this API soon.
|
|
87
|
+
addListener(this, name, target, method, true);
|
|
88
|
+
return this;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
Triggers a named event for the object.
|
|
93
|
+
@method trigger
|
|
94
|
+
@param {String} name The name of the event
|
|
95
|
+
@param {Object...} args Optional arguments to pass on
|
|
96
|
+
@return {boolean} true if listeners were notified, false otherwise
|
|
97
|
+
*/
|
|
98
|
+
trigger(name, ...args) {
|
|
99
|
+
return sendEvent(this, name, args);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
Cancels subscription for given name, target, and method.
|
|
104
|
+
@method off
|
|
105
|
+
@param {String} name The name of the event
|
|
106
|
+
@param {Object} target The target of the subscription
|
|
107
|
+
@param {Function|String} method The function or the name of a function of the subscription
|
|
108
|
+
@return this
|
|
109
|
+
*/
|
|
110
|
+
|
|
111
|
+
off(name, target, method) {
|
|
112
|
+
// SAFETY: The types are not actually correct, but it's not worth the effort to fix them, since we'll be deprecating this API soon.
|
|
113
|
+
removeListener(this, name, target, method);
|
|
114
|
+
return this;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
Checks to see if object has any subscriptions for named event.
|
|
119
|
+
@method has
|
|
120
|
+
@param {String} name The name of the event
|
|
121
|
+
@return {Boolean} does the object have a subscription for event
|
|
122
|
+
*/
|
|
123
|
+
has(name) {
|
|
124
|
+
return hasListeners(this, name);
|
|
125
|
+
}
|
|
61
126
|
get _router() {
|
|
62
127
|
let router = this[ROUTER];
|
|
63
128
|
if (router !== undefined) {
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import { privatize } from '../-internals/container/index.js';
|
|
2
|
-
import { c as computed } from '../../shared-chunks/computed-
|
|
2
|
+
import { c as computed } from '../../shared-chunks/computed-ZvOk7SJQ.js';
|
|
3
3
|
import { g as get } from '../../shared-chunks/property_get-DuDs6rLg.js';
|
|
4
|
-
import { s as set } from '../../shared-chunks/property_set-
|
|
4
|
+
import { s as set } from '../../shared-chunks/property_set-CVmdjPdh.js';
|
|
5
5
|
import { getOwner } from '../owner/index.js';
|
|
6
6
|
import DSLImpl from './lib/dsl.js';
|
|
7
7
|
import RouterState from './lib/router_state.js';
|
|
8
8
|
import { resemblesURL, extractRouteArgs, getActiveTargetName, calculateCacheKey } from './lib/utils.js';
|
|
9
9
|
import EmberObject from '../object/index.js';
|
|
10
|
+
import { E as Evented, e as eventedOn, a as eventedOne, b as eventedTrigger, c as eventedOff, d as eventedHas } from '../../shared-chunks/evented-DYsL5t87.js';
|
|
10
11
|
import { A } from '../array/index.js';
|
|
11
12
|
import typeOf from '../utils/lib/type-of.js';
|
|
12
|
-
import Evented from '../object/evented.js';
|
|
13
13
|
import { run, once, scheduleOnce, cancel } from '../runloop/index.js';
|
|
14
14
|
import { getRenderState, getFullQueryParams, hasDefaultSerialize, defaultSerialize } from './route.js';
|
|
15
15
|
import Router from '../../router_js/index.js';
|
|
16
16
|
import { S as STATE_SYMBOL, l as logAbort } from '../../shared-chunks/unrecognized-url-error-xC654tCo.js';
|
|
17
17
|
import '../../shared-chunks/rsvp-aLN_pQtn.js';
|
|
18
18
|
import '../engine/instance.js';
|
|
19
|
+
import { s as sendEvent } from '../../shared-chunks/events-3Q5Qvo6Q.js';
|
|
20
|
+
import { meta } from '../-internals/meta/lib/meta.js';
|
|
19
21
|
|
|
20
22
|
/**
|
|
21
23
|
@module @ember/routing/router
|
|
@@ -45,7 +47,13 @@ const {
|
|
|
45
47
|
@uses Evented
|
|
46
48
|
@public
|
|
47
49
|
*/
|
|
48
|
-
class EmberRouter extends EmberObject
|
|
50
|
+
class EmberRouter extends EmberObject {
|
|
51
|
+
static {
|
|
52
|
+
// The deprecated Evented mixin is no longer applied, but instances still
|
|
53
|
+
// provide its methods, so `Evented.detect` must keep returning true.
|
|
54
|
+
meta(this.prototype).addMixin(Evented);
|
|
55
|
+
}
|
|
56
|
+
|
|
49
57
|
/**
|
|
50
58
|
Represents the URL of the root of the application, often '/'. This prefix is
|
|
51
59
|
assumed on all routes defined on this router.
|
|
@@ -94,6 +102,24 @@ class EmberRouter extends EmberObject.extend(Evented) {
|
|
|
94
102
|
|
|
95
103
|
// Begin Evented
|
|
96
104
|
|
|
105
|
+
on(name, target, method) {
|
|
106
|
+
eventedOn(this, name, target, method);
|
|
107
|
+
return this;
|
|
108
|
+
}
|
|
109
|
+
one(name, target, method) {
|
|
110
|
+
eventedOne(this, name, target, method);
|
|
111
|
+
return this;
|
|
112
|
+
}
|
|
113
|
+
trigger(name, ...args) {
|
|
114
|
+
eventedTrigger(this, name, args);
|
|
115
|
+
}
|
|
116
|
+
off(name, target, method) {
|
|
117
|
+
eventedOff(this, name, target, method);
|
|
118
|
+
return this;
|
|
119
|
+
}
|
|
120
|
+
has(name) {
|
|
121
|
+
return eventedHas(this, name);
|
|
122
|
+
}
|
|
97
123
|
// End Evented
|
|
98
124
|
|
|
99
125
|
// Set with reopenClass
|
|
@@ -248,7 +274,7 @@ class EmberRouter extends EmberObject.extend(Evented) {
|
|
|
248
274
|
return triggerEvent.bind(router)(routeInfos, ignoreFailure, name, args);
|
|
249
275
|
}
|
|
250
276
|
routeWillChange(transition) {
|
|
251
|
-
router
|
|
277
|
+
sendEvent(router, 'routeWillChange', [transition]);
|
|
252
278
|
router._routerService.trigger('routeWillChange', transition);
|
|
253
279
|
|
|
254
280
|
// in case of intermediate transition we update the current route
|
|
@@ -261,7 +287,7 @@ class EmberRouter extends EmberObject.extend(Evented) {
|
|
|
261
287
|
routeDidChange(transition) {
|
|
262
288
|
router.set('currentRoute', transition.to);
|
|
263
289
|
once(() => {
|
|
264
|
-
router
|
|
290
|
+
sendEvent(router, 'routeDidChange', [transition]);
|
|
265
291
|
router._routerService.trigger('routeDidChange', transition);
|
|
266
292
|
});
|
|
267
293
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { onErrorTarget } from '../-internals/error-handling/index.js';
|
|
2
|
-
import { f as flushAsyncObservers } from '../../shared-chunks/observers-
|
|
2
|
+
import { f as flushAsyncObservers } from '../../shared-chunks/observers-B1wiwQeH.js';
|
|
3
3
|
import Backburner from '../../backburner.js/index.js';
|
|
4
4
|
|
|
5
5
|
// Partial types from https://medium.com/codex/currying-in-typescript-ca5226c85b85
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FrameworkObject } from '../object/-internals.js';
|
|
2
2
|
import { deprecateUntil, DEPRECATIONS } from '../-internals/deprecations/index.js';
|
|
3
|
-
import { i as inject$1 } from '../../shared-chunks/injected_property-
|
|
3
|
+
import { i as inject$1 } from '../../shared-chunks/injected_property-4vB_6fM8.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
@module @ember/service
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as or, d as not, c as lte, l as lt, b as gte, g as gt, n as neq, a as and, e as eq } from '../../../shared-chunks/not-
|
|
2
|
-
import { h as hash, f as fn, a as array } from '../../../shared-chunks/hash-
|
|
3
|
-
import { e as element } from '../../../shared-chunks/element-
|
|
1
|
+
import { o as or, d as not, c as lte, l as lt, b as gte, g as gt, n as neq, a as and, e as eq } from '../../../shared-chunks/not-BRssU6nS.js';
|
|
2
|
+
import { h as hash, f as fn, a as array } from '../../../shared-chunks/hash-pP7ZP_NN.js';
|
|
3
|
+
import { e as element } from '../../../shared-chunks/element-CZnh4CbF.js';
|
|
4
4
|
import { on } from '../../modifier/on.js';
|
|
5
5
|
import { STRICT_MODE_KEYWORDS, STRICT_MODE_TRANSFORMS, RESOLUTION_MODE_TRANSFORMS } from './plugins/index.js';
|
|
6
6
|
import { ALLOWED_GLOBALS } from './plugins/allowed-globals.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { scheduleDestroyed, scheduleDestroy } from '../global-context/index.js';
|
|
2
|
+
import { D as DESTROYABLE_META_KEY } from '../../shared-chunks/destroyable-key-BsfVBM7f.js';
|
|
2
3
|
|
|
3
4
|
const LIVE_STATE = 0;
|
|
4
5
|
const DESTROYING_STATE = 1;
|
|
@@ -40,16 +41,30 @@ function remove(collection, item, message) {
|
|
|
40
41
|
return null;
|
|
41
42
|
}
|
|
42
43
|
}
|
|
44
|
+
function createMeta(destroyable) {
|
|
45
|
+
let meta = {
|
|
46
|
+
parents: null,
|
|
47
|
+
children: null,
|
|
48
|
+
eagerDestructors: null,
|
|
49
|
+
destructors: null,
|
|
50
|
+
state: LIVE_STATE
|
|
51
|
+
};
|
|
52
|
+
return meta;
|
|
53
|
+
}
|
|
43
54
|
function getDestroyableMeta(destroyable) {
|
|
55
|
+
let slotted = destroyable;
|
|
56
|
+
let own = slotted[DESTROYABLE_META_KEY];
|
|
57
|
+
if (own !== undefined) return own;
|
|
58
|
+
|
|
59
|
+
// `in` rather than a write, so this stays a read for everything else.
|
|
60
|
+
if (DESTROYABLE_META_KEY in slotted) {
|
|
61
|
+
let meta = createMeta();
|
|
62
|
+
slotted[DESTROYABLE_META_KEY] = meta;
|
|
63
|
+
return meta;
|
|
64
|
+
}
|
|
44
65
|
let meta = DESTROYABLE_META.get(destroyable);
|
|
45
66
|
if (meta === undefined) {
|
|
46
|
-
meta =
|
|
47
|
-
parents: null,
|
|
48
|
-
children: null,
|
|
49
|
-
eagerDestructors: null,
|
|
50
|
-
destructors: null,
|
|
51
|
-
state: LIVE_STATE
|
|
52
|
-
};
|
|
67
|
+
meta = createMeta();
|
|
53
68
|
DESTROYABLE_META.set(destroyable, meta);
|
|
54
69
|
}
|
|
55
70
|
return meta;
|
|
@@ -111,16 +126,27 @@ function destroyChildren(destroyable) {
|
|
|
111
126
|
} = getDestroyableMeta(destroyable);
|
|
112
127
|
iterate(children, destroy);
|
|
113
128
|
}
|
|
129
|
+
|
|
130
|
+
/** Meta if there is any, without creating it. Mirrors `getDestroyableMeta`. */
|
|
131
|
+
function peekDestroyableMeta(destroyable) {
|
|
132
|
+
let slotted = destroyable;
|
|
133
|
+
let own = slotted[DESTROYABLE_META_KEY];
|
|
134
|
+
if (own !== undefined) return own;
|
|
135
|
+
|
|
136
|
+
// An empty slot is proof there is no meta, so the map can be skipped.
|
|
137
|
+
if (DESTROYABLE_META_KEY in slotted) return undefined;
|
|
138
|
+
return DESTROYABLE_META.get(destroyable);
|
|
139
|
+
}
|
|
114
140
|
function _hasDestroyableChildren(destroyable) {
|
|
115
|
-
let meta =
|
|
141
|
+
let meta = peekDestroyableMeta(destroyable);
|
|
116
142
|
return meta === undefined ? false : meta.children !== null;
|
|
117
143
|
}
|
|
118
144
|
function isDestroying(destroyable) {
|
|
119
|
-
let meta =
|
|
145
|
+
let meta = peekDestroyableMeta(destroyable);
|
|
120
146
|
return meta === undefined ? false : meta.state >= DESTROYING_STATE;
|
|
121
147
|
}
|
|
122
148
|
function isDestroyed(destroyable) {
|
|
123
|
-
let meta =
|
|
149
|
+
let meta = peekDestroyableMeta(destroyable);
|
|
124
150
|
return meta === undefined ? false : meta.state >= DESTROYED_STATE;
|
|
125
151
|
}
|
|
126
152
|
|
|
@@ -129,4 +155,4 @@ function isDestroyed(destroyable) {
|
|
|
129
155
|
let enableDestroyableTracking;
|
|
130
156
|
let assertDestroyablesDestroyed;
|
|
131
157
|
|
|
132
|
-
export { _hasDestroyableChildren, assertDestroyablesDestroyed, associateDestroyableChild, destroy, destroyChildren, enableDestroyableTracking, isDestroyed, isDestroying, registerDestructor, unregisterDestructor };
|
|
158
|
+
export { DESTROYABLE_META_KEY, _hasDestroyableChildren, assertDestroyablesDestroyed, associateDestroyableChild, destroy, destroyChildren, enableDestroyableTracking, isDestroyed, isDestroying, registerDestructor, unregisterDestructor };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { C as CustomHelperManager, g as getInternalComponentManager, a as getInternalHelperManager, b as getInternalModifierManager, h as hasDestroyable, c as hasInternalComponentManager, d as hasInternalHelperManager, e as hasInternalModifierManager, f as hasValue, i as helperCapabilities, s as setInternalComponentManager, j as setInternalHelperManager, k as setInternalModifierManager } from '../../shared-chunks/api-
|
|
2
|
-
export { C as CustomComponentManager, a as CustomModifierManager, c as componentCapabilities, m as modifierCapabilities, s as setComponentManager, b as setHelperManager, d as setModifierManager } from '../../shared-chunks/api-
|
|
1
|
+
export { C as CustomHelperManager, g as getInternalComponentManager, a as getInternalHelperManager, b as getInternalModifierManager, h as hasDestroyable, c as hasInternalComponentManager, d as hasInternalHelperManager, e as hasInternalModifierManager, f as hasValue, i as helperCapabilities, s as setInternalComponentManager, j as setInternalHelperManager, k as setInternalModifierManager } from '../../shared-chunks/api-DJnXAjon.js';
|
|
2
|
+
export { C as CustomComponentManager, a as CustomModifierManager, c as componentCapabilities, m as modifierCapabilities, s as setComponentManager, b as setHelperManager, d as setModifierManager } from '../../shared-chunks/api-CoUjEXgs.js';
|
|
3
3
|
export { g as getComponentTemplate, s as setComponentTemplate } from '../../shared-chunks/template-Dc_cBOoX.js';
|
|
4
|
-
export { g as getCustomTagFor, s as setCustomTagFor } from '../../shared-chunks/args-proxy-
|
|
4
|
+
export { g as getCustomTagFor, s as setCustomTagFor } from '../../shared-chunks/args-proxy-BHODnDyt.js';
|
|
5
5
|
export { c as capabilityFlagsFrom, h as hasCapability, m as managerHasCapability } from '../../shared-chunks/capabilities-BuVYh-vx.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as ConcreteBounds } from '../../shared-chunks/normalize-C_IStty9.js';
|
|
2
|
-
import { D as DOMTreeConstruction } from '../../shared-chunks/api-
|
|
2
|
+
import { D as DOMTreeConstruction } from '../../shared-chunks/api-B3M8aF1d.js';
|
|
3
3
|
import createHTMLDocument from '../../@simple-dom/document/index.js';
|
|
4
|
-
export { s as serializeBuilder } from '../../shared-chunks/serialize-builder-
|
|
4
|
+
export { s as serializeBuilder } from '../../shared-chunks/serialize-builder-Du-432zt.js';
|
|
5
5
|
|
|
6
6
|
class NodeDOMTreeConstruction extends DOMTreeConstruction {
|
|
7
7
|
// Hides property on base class
|
|
@@ -3,7 +3,7 @@ import { e as expect } from '../../shared-chunks/collections-GpG8lT2g.js';
|
|
|
3
3
|
import { u as unwrapTemplate } from '../../shared-chunks/template-BRrQR6KS.js';
|
|
4
4
|
import { c as capabilityFlagsFrom, m as managerHasCapability } from '../../shared-chunks/capabilities-BuVYh-vx.js';
|
|
5
5
|
import { g as getComponentTemplate } from '../../shared-chunks/template-Dc_cBOoX.js';
|
|
6
|
-
import { a as getInternalHelperManager, b as getInternalModifierManager, g as getInternalComponentManager } from '../../shared-chunks/api-
|
|
6
|
+
import { a as getInternalHelperManager, b as getInternalModifierManager, g as getInternalComponentManager } from '../../shared-chunks/api-DJnXAjon.js';
|
|
7
7
|
import { t as templateFactory } from '../../shared-chunks/index-kwuZeaNz.js';
|
|
8
8
|
import { e as enumerate } from '../../shared-chunks/array-utils-CZQxrdD3.js';
|
|
9
9
|
import { I as InternalComponentCapabilities } from '../../shared-chunks/flags-BZxHQ0yn.js';
|
|
@@ -2,8 +2,8 @@ import { toIterator, getPath } from '../global-context/index.js';
|
|
|
2
2
|
import { E as EMPTY_ARRAY } from '../../shared-chunks/array-utils-CZQxrdD3.js';
|
|
3
3
|
import { c as isIndexable } from '../../shared-chunks/collections-GpG8lT2g.js';
|
|
4
4
|
import { D as DIRTY_TAG, c as consumeTag, r as createTag } from '../../shared-chunks/cache-CofLhaS4.js';
|
|
5
|
-
import { c as createComputeRef, v as valueForRef } from '../../shared-chunks/reference-
|
|
6
|
-
export { F as FALSE_REFERENCE, N as NULL_REFERENCE, R as REFERENCE, T as TRUE_REFERENCE, U as UNDEFINED_REFERENCE, f as childRefFor, g as childRefFromParts, a as createConstRef, l as createDebugAliasRef, h as createInvokableRef, e as createPrimitiveRef, j as createReadOnlyRef, k as createUnboundRef, i as isConstRef, d as isInvokableRef, b as isUpdatableRef, u as updateRef } from '../../shared-chunks/reference-
|
|
5
|
+
import { c as createComputeRef, v as valueForRef } from '../../shared-chunks/reference-CccCE8mJ.js';
|
|
6
|
+
export { F as FALSE_REFERENCE, N as NULL_REFERENCE, R as REFERENCE, T as TRUE_REFERENCE, U as UNDEFINED_REFERENCE, f as childRefFor, g as childRefFromParts, a as createConstRef, l as createDebugAliasRef, h as createInvokableRef, e as createPrimitiveRef, j as createReadOnlyRef, k as createUnboundRef, i as isConstRef, d as isInvokableRef, b as isUpdatableRef, u as updateRef } from '../../shared-chunks/reference-CccCE8mJ.js';
|
|
7
7
|
|
|
8
8
|
const NULL_IDENTITY = {};
|
|
9
9
|
const KEY = (_, index) => index;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export { C as ConcreteBounds, a as CursorImpl, c as clear } from '../../shared-chunks/normalize-C_IStty9.js';
|
|
2
|
-
export { D as DOMChanges, a as DynamicScopeImpl, E as EnvironmentImpl, b as IDOMChanges, L as LowLevelVM, S as ScopeImpl, U as UpdatingVM, i as inTransaction, c as isWhitespace, r as renderComponent, d as renderMain, e as renderSync, f as resetDebuggerCallback, g as runtimeOptions, s as setDebuggerCallback } from '../../shared-chunks/render-
|
|
3
|
-
export { T as TEMPLATE_ONLY_COMPONENT_MANAGER, a as TemplateOnlyComponent, b as TemplateOnlyComponentManager, t as templateOnlyComponent } from '../../shared-chunks/template-only-
|
|
4
|
-
export { C as CurriedValue, E as EMPTY_ARGS, a as EMPTY_NAMED, b as EMPTY_POSITIONAL, c as createCapturedArgs, d as curry, r as reifyArgs, e as reifyNamed, f as reifyPositional } from '../../shared-chunks/arguments-
|
|
2
|
+
export { D as DOMChanges, a as DynamicScopeImpl, E as EnvironmentImpl, b as IDOMChanges, L as LowLevelVM, S as ScopeImpl, U as UpdatingVM, i as inTransaction, c as isWhitespace, r as renderComponent, d as renderMain, e as renderSync, f as resetDebuggerCallback, g as runtimeOptions, s as setDebuggerCallback } from '../../shared-chunks/render-C_iak8Db.js';
|
|
3
|
+
export { T as TEMPLATE_ONLY_COMPONENT_MANAGER, a as TemplateOnlyComponent, b as TemplateOnlyComponentManager, t as templateOnlyComponent } from '../../shared-chunks/template-only-CWsfnbVm.js';
|
|
4
|
+
export { C as CurriedValue, E as EMPTY_ARGS, a as EMPTY_NAMED, b as EMPTY_POSITIONAL, c as createCapturedArgs, d as curry, r as reifyArgs, e as reifyNamed, f as reifyPositional } from '../../shared-chunks/arguments-xjTAZ6VE.js';
|
|
5
5
|
export { n as normalizeProperty } from '../../shared-chunks/props-fiqxqhAH.js';
|
|
6
|
-
export { a as and, e as eq, g as gt, b as gte, l as lt, c as lte, n as neq, d as not, o as or } from '../../shared-chunks/not-
|
|
7
|
-
export { a as array, f as fn, h as hash } from '../../shared-chunks/hash-
|
|
8
|
-
export { c as concat, g as get } from '../../shared-chunks/get-
|
|
9
|
-
export { i as invokeHelper } from '../../shared-chunks/invoke-
|
|
10
|
-
export { o as on } from '../../shared-chunks/on-
|
|
6
|
+
export { a as and, e as eq, g as gt, b as gte, l as lt, c as lte, n as neq, d as not, o as or } from '../../shared-chunks/not-BRssU6nS.js';
|
|
7
|
+
export { a as array, f as fn, h as hash } from '../../shared-chunks/hash-pP7ZP_NN.js';
|
|
8
|
+
export { c as concat, g as get } from '../../shared-chunks/get-B1Vq9Mmk.js';
|
|
9
|
+
export { i as invokeHelper } from '../../shared-chunks/invoke-BqNxG81o.js';
|
|
10
|
+
export { o as on } from '../../shared-chunks/on-BFt-Sx9A.js';
|
|
11
11
|
export { destroy, isDestroyed, isDestroying, registerDestructor } from '../destroyable/index.js';
|
|
12
12
|
import '../../shared-chunks/cache-CofLhaS4.js';
|
|
13
|
-
import '../../shared-chunks/reference-
|
|
14
|
-
export { D as DOMTreeConstruction, a as DynamicAttribute, N as NewTreeBuilder, R as RemoteBlock, b as ResettableBlockImpl, S as SimpleDynamicAttribute, c as clientBuilder, d as dynamicAttribute } from '../../shared-chunks/api-
|
|
15
|
-
export { R as RehydrateTree, S as SERIALIZATION_FIRST_NODE_STRING, i as isSerializationFirstNode, r as rehydrationBuilder } from '../../shared-chunks/rehydrate-builder-
|
|
13
|
+
import '../../shared-chunks/reference-CccCE8mJ.js';
|
|
14
|
+
export { D as DOMTreeConstruction, a as DynamicAttribute, N as NewTreeBuilder, R as RemoteBlock, b as ResettableBlockImpl, S as SimpleDynamicAttribute, c as clientBuilder, d as dynamicAttribute } from '../../shared-chunks/api-B3M8aF1d.js';
|
|
15
|
+
export { R as RehydrateTree, S as SERIALIZATION_FIRST_NODE_STRING, i as isSerializationFirstNode, r as rehydrationBuilder } from '../../shared-chunks/rehydrate-builder-B9bh-2Dy.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { t as tracked } from '../../shared-chunks/tracked-
|
|
1
|
+
export { t as tracked } from '../../shared-chunks/tracked-z77O-F0O.js';
|
|
2
2
|
import { e as createCache, g as getValue } from '../../shared-chunks/cache-CofLhaS4.js';
|
|
3
3
|
|
|
4
4
|
// NOTE: copied from: https://github.com/glimmerjs/glimmer.js/pull/358
|
|
@@ -2,11 +2,11 @@ import { meta } from '../@ember/-internals/meta/lib/meta.js';
|
|
|
2
2
|
import inspect from '../@ember/debug/lib/inspect.js';
|
|
3
3
|
import { u as untrack, v as validateTag, U as UPDATE_TAG, a as valueForTag, c as consumeTag } from './cache-CofLhaS4.js';
|
|
4
4
|
import { a as tagMetaFor, t as tagFor } from './meta-BJtIZDir.js';
|
|
5
|
-
import { C as CHAIN_PASS_THROUGH, g as getChainTagsForKey, f as finishLazyChains } from './chain-tags-
|
|
6
|
-
import { m as makeComputedDecorator,
|
|
7
|
-
import { d as defineProperty } from './computed-
|
|
5
|
+
import { C as CHAIN_PASS_THROUGH, g as getChainTagsForKey, f as finishLazyChains } from './chain-tags-BlsXEpE-.js';
|
|
6
|
+
import { m as makeComputedDecorator, a as descriptorForDecorator, b as ComputedDescriptor } from './decorator-DcvVDSJV.js';
|
|
7
|
+
import { d as defineProperty } from './computed-ZvOk7SJQ.js';
|
|
8
8
|
import { g as get } from './property_get-DuDs6rLg.js';
|
|
9
|
-
import { s as set } from './property_set-
|
|
9
|
+
import { s as set } from './property_set-CVmdjPdh.js';
|
|
10
10
|
|
|
11
11
|
function alias(altKey) {
|
|
12
12
|
return makeComputedDecorator(new AliasedProperty(altKey), AliasDecoratorImpl);
|
|
@@ -2,6 +2,7 @@ import { S as StackImpl, e as expect } from './collections-GpG8lT2g.js';
|
|
|
2
2
|
import { a as assert } from './assert-Zqc4wiAV.js';
|
|
3
3
|
import { s as setLocalDebugType } from './debug-brand-B1TWjOCH.js';
|
|
4
4
|
import { registerDestructor, destroy } from '../@glimmer/destroyable/index.js';
|
|
5
|
+
import { D as DESTROYABLE_META_KEY } from './destroyable-key-BsfVBM7f.js';
|
|
5
6
|
import { i as isSafeString, n as normalizeStringValue, a as CursorImpl, C as ConcreteBounds, c as clear } from './normalize-C_IStty9.js';
|
|
6
7
|
import { a as castToBrowser } from './simple-cast-DCvJLSin.js';
|
|
7
8
|
import { n as normalizeProperty } from './props-fiqxqhAH.js';
|
|
@@ -574,6 +575,7 @@ class NewTreeBuilder {
|
|
|
574
575
|
}
|
|
575
576
|
}
|
|
576
577
|
class AppendingBlockImpl {
|
|
578
|
+
[DESTROYABLE_META_KEY];
|
|
577
579
|
first = null;
|
|
578
580
|
last = null;
|
|
579
581
|
nesting = 0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as setInternalHelperManager, k as setInternalModifierManager, s as setInternalComponentManager, C as CustomHelperManager } from './api-
|
|
1
|
+
import { j as setInternalHelperManager, k as setInternalModifierManager, s as setInternalComponentManager, C as CustomHelperManager } from './api-DJnXAjon.js';
|
|
2
2
|
import { registerDestructor } from '../@glimmer/destroyable/index.js';
|
|
3
|
-
import { a as createConstRef } from './reference-
|
|
4
|
-
import { a as argsProxyFor } from './args-proxy-
|
|
3
|
+
import { a as createConstRef } from './reference-CccCE8mJ.js';
|
|
4
|
+
import { a as argsProxyFor } from './args-proxy-BHODnDyt.js';
|
|
5
5
|
import { b as buildCapabilities } from './capabilities-BuVYh-vx.js';
|
|
6
6
|
import { a as castToBrowser } from './simple-cast-DCvJLSin.js';
|
|
7
7
|
import { u as untrack, b as createUpdatableTag } from './cache-CofLhaS4.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { associateDestroyableChild } from '../@glimmer/destroyable/index.js';
|
|
2
|
-
import { c as createComputeRef, a as createConstRef, U as UNDEFINED_REFERENCE } from './reference-
|
|
3
|
-
import { a as argsProxyFor } from './args-proxy-
|
|
2
|
+
import { c as createComputeRef, a as createConstRef, U as UNDEFINED_REFERENCE } from './reference-CccCE8mJ.js';
|
|
3
|
+
import { a as argsProxyFor } from './args-proxy-BHODnDyt.js';
|
|
4
4
|
import { b as buildCapabilities } from './capabilities-BuVYh-vx.js';
|
|
5
5
|
|
|
6
6
|
function helperCapabilities(managerAPI, options = {}) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as $v0, b as $t1, c as $t0, d as $pc, e as $ra, f as $fp, g as $sp, h as $s1, $ as $s0 } from './registers-C_W2qYHJ.js';
|
|
2
2
|
import { s as setLocalDebugType } from './debug-brand-B1TWjOCH.js';
|
|
3
3
|
import { e as expect, S as StackImpl, u as unwrap, c as isIndexable, d as dict } from './collections-GpG8lT2g.js';
|
|
4
|
-
import { c as createComputeRef, v as valueForRef, a as createConstRef, e as createPrimitiveRef, i as isConstRef, U as UNDEFINED_REFERENCE, N as NULL_REFERENCE, T as TRUE_REFERENCE, F as FALSE_REFERENCE, R as REFERENCE } from './reference-
|
|
4
|
+
import { c as createComputeRef, v as valueForRef, a as createConstRef, e as createPrimitiveRef, i as isConstRef, U as UNDEFINED_REFERENCE, N as NULL_REFERENCE, T as TRUE_REFERENCE, F as FALSE_REFERENCE, R as REFERENCE } from './reference-CccCE8mJ.js';
|
|
5
5
|
import { b as EMPTY_STRING_ARRAY, e as enumerate, c as emptyArray } from './array-utils-CZQxrdD3.js';
|
|
6
6
|
import { C as CONSTANT_TAG, I as INITIAL, v as validateTag, c as consumeTag, a as valueForTag, o as beginTrackFrame, s as endTrackFrame, k as CURRENT_TAG } from './cache-CofLhaS4.js';
|
|
7
7
|
import { C as CURRIED_MODIFIER, a as CURRIED_COMPONENT } from './curried-BZnYakIg.js';
|
|
@@ -13,7 +13,7 @@ import { m as managerHasCapability } from './capabilities-BuVYh-vx.js';
|
|
|
13
13
|
import { a as assign } from './object-utils-AijlD-JH.js';
|
|
14
14
|
import { I as InternalComponentCapabilities } from './flags-BZxHQ0yn.js';
|
|
15
15
|
import { n as normalizeStringValue, C as ConcreteBounds } from './normalize-C_IStty9.js';
|
|
16
|
-
import { b as getInternalModifierManager } from './api-
|
|
16
|
+
import { b as getInternalModifierManager } from './api-DJnXAjon.js';
|
|
17
17
|
import { toBool } from '../@glimmer/global-context/index.js';
|
|
18
18
|
|
|
19
19
|
function CheckInstanceof(Class) {
|
|
@@ -757,7 +757,11 @@ APPEND_OPCODES.add(VM_DYNAMIC_MODIFIER_OP, vm => {
|
|
|
757
757
|
}
|
|
758
758
|
}
|
|
759
759
|
if (!isConstRef(ref) || tag) {
|
|
760
|
-
|
|
760
|
+
let updateOpcode = new UpdateDynamicModifierOpcode(tag, instance, instanceRef);
|
|
761
|
+
|
|
762
|
+
// The block must own this opcode, or instances created on update are never destroyed.
|
|
763
|
+
vm.associateDestroyable(updateOpcode);
|
|
764
|
+
return vm.updateWith(updateOpcode);
|
|
761
765
|
}
|
|
762
766
|
});
|
|
763
767
|
class UpdateModifierOpcode {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { peekMeta } from '../@ember/-internals/meta/lib/meta.js';
|
|
2
|
-
import { s as sendEvent, a as addListener, r as removeListener } from './events-
|
|
3
|
-
import { n as notifyPropertyChange } from './computed-
|
|
2
|
+
import { s as sendEvent, a as addListener, r as removeListener } from './events-3Q5Qvo6Q.js';
|
|
3
|
+
import { n as notifyPropertyChange } from './computed-ZvOk7SJQ.js';
|
|
4
4
|
|
|
5
5
|
function arrayContentWillChange(array, startIdx, removeAmt, addAmt) {
|
|
6
6
|
// if no args are passed assume everything changes
|
|
@@ -2,7 +2,7 @@ import { peekMeta, meta } from '../@ember/-internals/meta/lib/meta.js';
|
|
|
2
2
|
import { i as isObject } from './spec-BXl1reqK.js';
|
|
3
3
|
import { C as CONSTANT_TAG, d as combine, v as validateTag, b as createUpdatableTag, U as UPDATE_TAG } from './cache-CofLhaS4.js';
|
|
4
4
|
import { t as tagFor, d as dirtyTagFor, a as tagMetaFor } from './meta-BJtIZDir.js';
|
|
5
|
-
import { g as getCustomTagFor } from './args-proxy-
|
|
5
|
+
import { g as getCustomTagFor } from './args-proxy-BHODnDyt.js';
|
|
6
6
|
|
|
7
7
|
function objectAt(array, index) {
|
|
8
8
|
if (Array.isArray(array)) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { meta, peekMeta } from '../@ember/-internals/meta/lib/meta.js';
|
|
2
|
-
import { d as descriptorForProperty,
|
|
3
|
-
import { c as revalidateObservers, d as flushSyncObservers, e as resumeObserverDeactivation, s as suspendedObserverDeactivation, b as addObserver, g as setObserverSuspended } from './observers-
|
|
2
|
+
import { d as descriptorForProperty, c as isClassicDecorator, b as ComputedDescriptor, i as isElementDescriptor, m as makeComputedDecorator, a as descriptorForDecorator } from './decorator-DcvVDSJV.js';
|
|
3
|
+
import { c as revalidateObservers, d as flushSyncObservers, e as resumeObserverDeactivation, s as suspendedObserverDeactivation, b as addObserver, g as setObserverSuspended } from './observers-B1wiwQeH.js';
|
|
4
4
|
import inspect from '../@ember/debug/lib/inspect.js';
|
|
5
5
|
import { v as validateTag, u as untrack, U as UPDATE_TAG, a as valueForTag, c as consumeTag, A as ALLOW_CYCLES, t as track } from './cache-CofLhaS4.js';
|
|
6
6
|
import { a as tagMetaFor, t as tagFor } from './meta-BJtIZDir.js';
|
|
7
|
-
import { m as markObjectAsDirty, b as getChainTagsForKeys, f as finishLazyChains } from './chain-tags-
|
|
7
|
+
import { m as markObjectAsDirty, b as getChainTagsForKeys, f as finishLazyChains } from './chain-tags-BlsXEpE-.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
@module @ember/object
|
|
@@ -931,4 +931,4 @@ function isComputed(obj, key) {
|
|
|
931
931
|
return Boolean(descriptorForProperty(obj, key));
|
|
932
932
|
}
|
|
933
933
|
|
|
934
|
-
export { ComputedProperty as C, PROPERTY_DID_CHANGE as P, endPropertyChanges as a, beginPropertyChanges as b, computed as c, defineProperty as d, expandProperties as e, changeProperties as f,
|
|
934
|
+
export { ComputedProperty as C, PROPERTY_DID_CHANGE as P, endPropertyChanges as a, beginPropertyChanges as b, computed as c, defineProperty as d, expandProperties as e, changeProperties as f, autoComputed as g, defineDecorator as h, defineValue as i, isComputed as j, notifyPropertyChange as n };
|