ember-source 7.4.0-alpha.1 → 7.4.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/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 +855 -507
- package/lib/browsers.cjs +33 -33
- package/package.json +4 -3
- 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/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
package/docs/data.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "The Ember API",
|
|
4
4
|
"description": "The Ember API: a framework for building ambitious web applications",
|
|
5
5
|
"url": "https://emberjs.com/",
|
|
6
|
-
"version": "7.4.0-
|
|
6
|
+
"version": "7.4.0-beta.1"
|
|
7
7
|
},
|
|
8
8
|
"files": {
|
|
9
9
|
"node_modules/rsvp/lib/rsvp/promise/all.js": {
|
|
@@ -742,6 +742,13 @@
|
|
|
742
742
|
"fors": {},
|
|
743
743
|
"namespaces": {}
|
|
744
744
|
},
|
|
745
|
+
"packages/@ember/-internals/utils/lib/internal-mixin-create.ts": {
|
|
746
|
+
"name": "packages/@ember/-internals/utils/lib/internal-mixin-create.ts",
|
|
747
|
+
"modules": {},
|
|
748
|
+
"classes": {},
|
|
749
|
+
"fors": {},
|
|
750
|
+
"namespaces": {}
|
|
751
|
+
},
|
|
745
752
|
"packages/@ember/-internals/utils/lib/invoke.ts": {
|
|
746
753
|
"name": "packages/@ember/-internals/utils/lib/invoke.ts",
|
|
747
754
|
"modules": {},
|
|
@@ -1646,22 +1653,22 @@
|
|
|
1646
1653
|
"fors": {},
|
|
1647
1654
|
"namespaces": {}
|
|
1648
1655
|
},
|
|
1649
|
-
"packages/@glimmer/component/dist/-private/component.d.ts": {
|
|
1650
|
-
"name": "packages/@glimmer/component/dist/-private/component.d.ts",
|
|
1656
|
+
"packages/@glimmer/component/dist/component/src/-private/component.d.ts": {
|
|
1657
|
+
"name": "packages/@glimmer/component/dist/component/src/-private/component.d.ts",
|
|
1651
1658
|
"modules": {},
|
|
1652
1659
|
"classes": {},
|
|
1653
1660
|
"fors": {},
|
|
1654
1661
|
"namespaces": {}
|
|
1655
1662
|
},
|
|
1656
|
-
"packages/@glimmer/component/dist/-private/ember-component-manager.d.ts": {
|
|
1657
|
-
"name": "packages/@glimmer/component/dist/-private/ember-component-manager.d.ts",
|
|
1663
|
+
"packages/@glimmer/component/dist/component/src/-private/ember-component-manager.d.ts": {
|
|
1664
|
+
"name": "packages/@glimmer/component/dist/component/src/-private/ember-component-manager.d.ts",
|
|
1658
1665
|
"modules": {},
|
|
1659
1666
|
"classes": {},
|
|
1660
1667
|
"fors": {},
|
|
1661
1668
|
"namespaces": {}
|
|
1662
1669
|
},
|
|
1663
|
-
"packages/@glimmer/component/dist/index.d.ts": {
|
|
1664
|
-
"name": "packages/@glimmer/component/dist/index.d.ts",
|
|
1670
|
+
"packages/@glimmer/component/dist/component/src/index.d.ts": {
|
|
1671
|
+
"name": "packages/@glimmer/component/dist/component/src/index.d.ts",
|
|
1665
1672
|
"modules": {
|
|
1666
1673
|
"@glimmer/component": 1
|
|
1667
1674
|
},
|
|
@@ -1669,8 +1676,15 @@
|
|
|
1669
1676
|
"fors": {},
|
|
1670
1677
|
"namespaces": {}
|
|
1671
1678
|
},
|
|
1672
|
-
"packages/@glimmer/component/dist/index.js": {
|
|
1673
|
-
"name": "packages/@glimmer/component/dist/index.js",
|
|
1679
|
+
"packages/@glimmer/component/dist/dev/index.js": {
|
|
1680
|
+
"name": "packages/@glimmer/component/dist/dev/index.js",
|
|
1681
|
+
"modules": {},
|
|
1682
|
+
"classes": {},
|
|
1683
|
+
"fors": {},
|
|
1684
|
+
"namespaces": {}
|
|
1685
|
+
},
|
|
1686
|
+
"packages/@glimmer/component/dist/prod/index.js": {
|
|
1687
|
+
"name": "packages/@glimmer/component/dist/prod/index.js",
|
|
1674
1688
|
"modules": {},
|
|
1675
1689
|
"classes": {},
|
|
1676
1690
|
"fors": {},
|
|
@@ -1774,6 +1788,13 @@
|
|
|
1774
1788
|
"fors": {},
|
|
1775
1789
|
"namespaces": {}
|
|
1776
1790
|
},
|
|
1791
|
+
"packages/@glimmer/destroyable/index.ts": {
|
|
1792
|
+
"name": "packages/@glimmer/destroyable/index.ts",
|
|
1793
|
+
"modules": {},
|
|
1794
|
+
"classes": {},
|
|
1795
|
+
"fors": {},
|
|
1796
|
+
"namespaces": {}
|
|
1797
|
+
},
|
|
1777
1798
|
"packages/@glimmer/global-context/index.ts": {
|
|
1778
1799
|
"name": "packages/@glimmer/global-context/index.ts",
|
|
1779
1800
|
"modules": {},
|
|
@@ -2307,6 +2328,13 @@
|
|
|
2307
2328
|
"fors": {},
|
|
2308
2329
|
"namespaces": {}
|
|
2309
2330
|
},
|
|
2331
|
+
"packages/@glimmer/util/lib/destroyable-key.ts": {
|
|
2332
|
+
"name": "packages/@glimmer/util/lib/destroyable-key.ts",
|
|
2333
|
+
"modules": {},
|
|
2334
|
+
"classes": {},
|
|
2335
|
+
"fors": {},
|
|
2336
|
+
"namespaces": {}
|
|
2337
|
+
},
|
|
2310
2338
|
"packages/@glimmer/util/lib/intern.ts": {
|
|
2311
2339
|
"name": "packages/@glimmer/util/lib/intern.ts",
|
|
2312
2340
|
"modules": {},
|
|
@@ -2749,7 +2777,7 @@
|
|
|
2749
2777
|
"namespaces": {},
|
|
2750
2778
|
"tag": "module",
|
|
2751
2779
|
"file": "packages/@ember/array/index.ts",
|
|
2752
|
-
"line":
|
|
2780
|
+
"line": 1415
|
|
2753
2781
|
},
|
|
2754
2782
|
"@ember/array/proxy": {
|
|
2755
2783
|
"name": "@ember/array/proxy",
|
|
@@ -2762,7 +2790,7 @@
|
|
|
2762
2790
|
"namespaces": {},
|
|
2763
2791
|
"tag": "module",
|
|
2764
2792
|
"file": "packages/@ember/array/proxy.ts",
|
|
2765
|
-
"line":
|
|
2793
|
+
"line": 58
|
|
2766
2794
|
},
|
|
2767
2795
|
"@ember/canary-features": {
|
|
2768
2796
|
"name": "@ember/canary-features",
|
|
@@ -2816,7 +2844,7 @@
|
|
|
2816
2844
|
},
|
|
2817
2845
|
"tag": "module",
|
|
2818
2846
|
"file": "packages/@ember/controller/index.ts",
|
|
2819
|
-
"line":
|
|
2847
|
+
"line": 312
|
|
2820
2848
|
},
|
|
2821
2849
|
"@ember/debug": {
|
|
2822
2850
|
"name": "@ember/debug",
|
|
@@ -2909,7 +2937,7 @@
|
|
|
2909
2937
|
"namespaces": {},
|
|
2910
2938
|
"tag": "module",
|
|
2911
2939
|
"file": "packages/@ember/enumerable/index.ts",
|
|
2912
|
-
"line":
|
|
2940
|
+
"line": 9,
|
|
2913
2941
|
"access": "private",
|
|
2914
2942
|
"tagname": ""
|
|
2915
2943
|
},
|
|
@@ -2944,7 +2972,7 @@
|
|
|
2944
2972
|
"namespaces": {},
|
|
2945
2973
|
"tag": "module",
|
|
2946
2974
|
"file": "packages/@ember/object/core.ts",
|
|
2947
|
-
"line":
|
|
2975
|
+
"line": 172
|
|
2948
2976
|
},
|
|
2949
2977
|
"@ember/object/evented": {
|
|
2950
2978
|
"name": "@ember/object/evented",
|
|
@@ -2957,7 +2985,7 @@
|
|
|
2957
2985
|
"namespaces": {},
|
|
2958
2986
|
"tag": "module",
|
|
2959
2987
|
"file": "packages/@ember/object/evented.ts",
|
|
2960
|
-
"line":
|
|
2988
|
+
"line": 17
|
|
2961
2989
|
},
|
|
2962
2990
|
"@ember/object/mixin": {
|
|
2963
2991
|
"name": "@ember/object/mixin",
|
|
@@ -2973,7 +3001,7 @@
|
|
|
2973
3001
|
"namespaces": {},
|
|
2974
3002
|
"tag": "module",
|
|
2975
3003
|
"file": "packages/@ember/object/mixin.ts",
|
|
2976
|
-
"line":
|
|
3004
|
+
"line": 456
|
|
2977
3005
|
},
|
|
2978
3006
|
"@ember/object/observable": {
|
|
2979
3007
|
"name": "@ember/object/observable",
|
|
@@ -2986,7 +3014,7 @@
|
|
|
2986
3014
|
"namespaces": {},
|
|
2987
3015
|
"tag": "module",
|
|
2988
3016
|
"file": "packages/@ember/object/observable.ts",
|
|
2989
|
-
"line":
|
|
3017
|
+
"line": 26
|
|
2990
3018
|
},
|
|
2991
3019
|
"@ember/object/promise-proxy-mixin": {
|
|
2992
3020
|
"name": "@ember/object/promise-proxy-mixin",
|
|
@@ -2999,7 +3027,7 @@
|
|
|
2999
3027
|
"namespaces": {},
|
|
3000
3028
|
"tag": "module",
|
|
3001
3029
|
"file": "packages/@ember/object/promise-proxy-mixin.ts",
|
|
3002
|
-
"line":
|
|
3030
|
+
"line": 50
|
|
3003
3031
|
},
|
|
3004
3032
|
"@ember/object/proxy": {
|
|
3005
3033
|
"name": "@ember/object/proxy",
|
|
@@ -3012,7 +3040,7 @@
|
|
|
3012
3040
|
"namespaces": {},
|
|
3013
3041
|
"tag": "module",
|
|
3014
3042
|
"file": "packages/@ember/object/proxy.ts",
|
|
3015
|
-
"line":
|
|
3043
|
+
"line": 9
|
|
3016
3044
|
},
|
|
3017
3045
|
"@ember/reactive/collections": {
|
|
3018
3046
|
"name": "@ember/reactive/collections",
|
|
@@ -3129,7 +3157,7 @@
|
|
|
3129
3157
|
"namespaces": {},
|
|
3130
3158
|
"tag": "module",
|
|
3131
3159
|
"file": "packages/@ember/routing/route.ts",
|
|
3132
|
-
"line":
|
|
3160
|
+
"line": 83
|
|
3133
3161
|
},
|
|
3134
3162
|
"@ember/routing/router-service": {
|
|
3135
3163
|
"name": "@ember/routing/router-service",
|
|
@@ -3142,7 +3170,7 @@
|
|
|
3142
3170
|
"namespaces": {},
|
|
3143
3171
|
"tag": "module",
|
|
3144
3172
|
"file": "packages/@ember/routing/router-service.ts",
|
|
3145
|
-
"line":
|
|
3173
|
+
"line": 35
|
|
3146
3174
|
},
|
|
3147
3175
|
"@ember/routing/router": {
|
|
3148
3176
|
"name": "@ember/routing/router",
|
|
@@ -3155,7 +3183,7 @@
|
|
|
3155
3183
|
"namespaces": {},
|
|
3156
3184
|
"tag": "module",
|
|
3157
3185
|
"file": "packages/@ember/routing/router.ts",
|
|
3158
|
-
"line":
|
|
3186
|
+
"line": 145
|
|
3159
3187
|
},
|
|
3160
3188
|
"@ember/routing/transition": {
|
|
3161
3189
|
"name": "@ember/routing/transition",
|
|
@@ -3212,7 +3240,7 @@
|
|
|
3212
3240
|
"fors": {},
|
|
3213
3241
|
"namespaces": {},
|
|
3214
3242
|
"tag": "module",
|
|
3215
|
-
"file": "packages/@glimmer/component/dist/index.d.ts",
|
|
3243
|
+
"file": "packages/@glimmer/component/dist/component/src/index.d.ts",
|
|
3216
3244
|
"line": 3,
|
|
3217
3245
|
"description": "A component is a reusable UI element that consists of a template and an\noptional JavaScript class that defines its behavior. For example, someone\nmight make a `button` in the template and handle the click behavior in the\nJavaScript.\n\nComponents are broken down into two categories:\n\n- Components _without_ JavaScript, that are based only on a template. These\n are called Template-only or TO components.\n- Components _with_ JavaScript, which consist of a template and a backing\n class.\n\nEmber ships with two types of JavaScript classes for components:\n\n1. Glimmer components, imported from `@glimmer/component`, which are the\n default components for Ember Octane (3.15) and more recent editions.\n2. Classic components, imported from `@ember/component`, which were the\n default for older editions of Ember (pre 3.15).\n\nBelow is the documentation for Template-only and Glimmer components. If you\nare looking for the API documentation for Classic components, it is\n[available here](/ember/release/classes/Component). The source code for\nGlimmer components can be found in [`@glimmer/component`](https://github.com/emberjs/ember.js/tree/main/packages/%40glimmer/component).\n\nNote: Prior to Ember 6.8, by default, components were authored in paired `.hbs` and `.js`\nfiles. This is still supported, but the default authoring format is now `.gjs` or \"template tag\".\nTo read more about how components were previously authored, see the\n[6.7 version of this API documentation](https://api.emberjs.com/ember/6.7/modules/@glimmer%2Fcomponent).\n \n## Defining a Template-only Component\n\nThe simplest way to create a component is to create a `gjs` file in\n`app/components` with a `<template>` tag wrapper:\n\n```gjs {data-filename=\"app/components/person-profile.gjs\"}\n<template>\n <h1>{{@person.name}}</h1>\n <img src={{@person.avatar}}>\n <p class='signature'>{{@person.signature}}</p>\n</template>\n```\n\nYou will be able to use `<PersonProfile />` to invoke this component elsewhere\nin your application:\n\n```gjs {data-filename=\"app/templates/application.gjs\"}\nimport PersonProfile from '../components/person-profile';\n \n<template>\n <PersonProfile @person={{@model.currentUser}} />\n</template>\n```\n\nNote that component names are capitalized here in order to distinguish them\nfrom regular HTML elements.\n\nEmber will render the content of the component template we\ncreated above. The end result will be something like this:\n\n```html\n<h1>Tomster</h1>\n<img src=\"https://emberjs.com/tomster.jpg\">\n<p class='signature'>Out of office this week</p>\n```\n\n## File System Nesting\n\nIn Ember templates, “invokables” are things you can invoke in a template. These include components,\nhelpers, and modifiers. In the template tag format, these invokables need to be imported before\nthey can be used. This makes it easier to understand where values come from and what they do, as\nwell as unlocks build optimizations.\n\nWhen making use of the `PersonProfile` component as defined before in a different component file,\nit first needs to be imported. This is done using the import statement, just like you would import\nany other JavaScript module -- from your local project or from an external package.\n\nSince they are imported, Components can be placed anywhere in your project on the filesystem, but\nthey are conventionally placed within `app/components` for reusable components and within\n`app/templates` for Route components.\n \nRoute components must be named after the route they are associated with -- and placed in the\n`app/templates` directory. For example, a `Person` route would have a corresponding `Person`\ncomponent defined in `app/templates/person.gjs`. This component would then be rendered whenever\nthe user visits the `/person` route. For more information, see the\n[Routing](https://guides.emberjs.com/release/routing/) section of the guides.\n\n## Using Blocks\n\nYou can use `yield` inside a template to include the **contents** of any block\nattached to the component. For instance, if we added a `{{yield}}` to our\ncomponent like so:\n\n```gjs {data-filename=\"app/components/person-profile.gjs\"}\n<template>\n <h1>{{@person.name}}</h1>\n {{yield}}\n</template>\n```\n\nWe could then invoke it like this:\n\n```gjs\nimport PersonProfile from '../components/person-profile';\n \n<template>\n <PersonProfile @person={{@model.currentUser}}>\n <p>Admin mode</p>\n </PersonProfile>\n</template>\n```\n \nAnd the content passed in between the brackets of the component would be\nrendered in the same place as the `{{yield}}` within it, replacing it.\n\nBlocks are executed in their original context, meaning they have access to the\nscope and any in-scope variables where they were defined.\n\n### Passing parameters to blocks\n\nYou can also pass positional parameters to `{{yield}}`, which are then made\navailable in the block:\n\n```gjs {data-filename=\"app/components/person-profile.gjs\"}\n<template>\n <h1>{{@person.name}}</h1>\n {{yield @person.signature}}\n</template>\n```\n\nWe can then use this value in the block like so:\n\n```gjs\nimport PersonProfile from '../components/person-profile';\n \n<template>\n <PersonProfile @person={{@model.currentUser}} as |signature|>\n {{signature}}\n </PersonProfile>\n</template>\n```\n\n### Passing multiple blocks\n\nYou can pass multiple blocks to a component by giving them names, and\nspecifying which block you are yielding to with `{{yield}}`. For instance, if\nwe wanted to add a way for users to customize the title of our\n`<PersonProfile>` component, we could add a named block inside of the header:\n\n```gjs {data-filename=\"app/components/person-profile.gjs\"}\n<template>\n <h1>{{yield to=\"title\"}}</h1>\n {{yield}}\n</template>\n```\n\nThis component could then be invoked like so:\n\n```gjs\nimport PersonProfile from '../components/person-profile';\n\n<template>\n <PersonProfile @person={{@model.currentUser}}>\n <:title>{{@model.currentUser.name}}</:title>\n <:default>{{@model.currentUser.signature}}</:default>\n </PersonProfile>\n</template>\n```\n\nWhen passing named blocks, you must name every block, including the `default`\nblock, which is the block that is defined if you do not pass a `to` parameter\nto `{{yield}}`. Whenever you invoke a component without passing explicitly\nnamed blocks, the passed block is considered the `default` block.\n\n### Passing parameters to named blocks\n\nYou can also pass parameters to named blocks:\n\n```gjs {data-filename=\"app/components/person-profile.gjs\"}\n<template>\n <h1>{{yield @person.name to=\"title\"}}</h1>\n {{yield @person.signature}}\n</template>\n```\n\nThese parameters can then be used like so:\n\n```gjs\nimport PersonProfile from '../components/person-profile';\n\n<template>\n <PersonProfile @person={{@model.currentUser}}>\n <:title as |name|>{{name}}</:title>\n <:default as |signature|>{{signature}}</:default>\n </PersonProfile>\n</template>\n```\n\n### Checking to see if a block exists\n\nYou can also check to see if a block exists using the `(has-block)` keyword,\nand conditionally use it, or provide a default template instead.\n\n```gjs {data-filename=\"app/components/person-profile.gjs\"}\n<template>\n <h1>\n {{#if (has-block \"title\")}}\n {{yield @person.name to=\"title\"}}\n {{else}}\n {{@person.name}}\n {{/if}}\n </h1>\n\n {{#if (has-block)}}\n {{yield @person.signature}}\n {{else}}\n {{@person.signature}}\n {{/if}}\n</template>\n```\n\nWith this template, we can then optionally pass in one block, both blocks, or\nnone at all:\n\n```gjs\nimport PersonProfile from '../components/person-profile';\n\n<template>\n {{! passing both blocks }}\n <PersonProfile @person={{@model.currentUser}}>\n <:title as |name|>{{name}}</:title>\n <:default as |signature|>{{signature}}</:default>\n </PersonProfile>\n\n {{! passing just the title block }}\n <PersonProfile @person={{@model.currentUser}}>\n <:title as |name|>{{name}}</:title>\n </PersonProfile>\n\n {{! passing just the default block }}\n <PersonProfile @person={{@model.currentUser}} as |signature|>\n {{signature}}\n </PersonProfile>\n\n {{! not passing any blocks }}\n <PersonProfile @person={{@model.currentUser}}/>\n</template>\n```\n\n### Checking to see if a block has parameters\n\nWe can also check if a block receives parameters using the `(has-block-params)`\nkeyword, and conditionally yield different values if so.\n\n```gjs {data-filename=\"app/components/person-profile.gjs\"}\n<template>\n {{#if (has-block-params)}}\n {{yield @person.signature}}\n {{else}}\n {{yield}}\n {{/if}}\n</template>\n```\n\n## Customizing Components With JavaScript\n\nTo add JavaScript to a component, add a class extending from `@glimmer/component` to the `gjs`\nfile, wrapping your `<template>` tag.\nFor example, to add JavaScript to the `PersonProfile` component which we defined above:\n\n```gjs {data-filename=\"app/components/person-profile.gjs\"}\nimport Component from '@glimmer/component';\n\nexport default class PersonProfile extends Component {\n get displayName() {\n let { title, firstName, lastName } = this.args.person;\n\n if (title) {\n return `${title} ${lastName}`;\n } else {\n return `${firstName} ${lastName}`;\n }\n })\n \n <template>\n <h1>{{this.displayName}}</h1>\n {{yield}}\n </template>\n}\n```\n\nYou can add your own properties, methods, and lifecycle hooks to this\nsubclass to customize its behavior, and you can reference the instance of the\nclass in your template using `{{this}}`. In the example above, we access the\n`displayName` property of our `PersonProfile` component instance in the\ntemplate.\n\n## `constructor`\n\nparams: `owner` object and `args` object\n\nConstructs a new component and assigns itself the passed properties. The\nconstructor is run whenever a new instance of the component is created, and\ncan be used to setup the initial state of the component.\n\n```gjs\nimport Component from '@glimmer/component';\n\nexport default class SomeComponent extends Component {\n constructor(owner, args) {\n super(owner, args);\n\n if (this.args.displayMode === 'list') {\n this.items = [];\n }\n }\n}\n```\n\nService injections and arguments are available in the constructor.\n\n```gjs\nimport Component from '@glimmer/component';\nimport { service } from '@ember/service';\n\nexport default class SomeComponent extends Component {\n @service myAnimations;\n\n constructor(owner, args) {\n super(owner, args);\n\n if (this.args.fadeIn === true) {\n this.myAnimations.register(this, 'fade-in');\n }\n }\n}\n```\n\n## `willDestroy`\n\n`willDestroy` is called after the component has been removed from the DOM, but\nbefore the component is fully destroyed. This lifecycle hook can be used to\ncleanup the component and any related state.\n \nYou may prefer the [@ember/destroyable](/ember/release/modules//@ember%2Fdestroyable) APIs for\nthis purpose.\n\n```gjs\nimport Component from '@glimmer/component';\nimport { service } from '@ember/service';\n\nexport default class SomeComponent extends Component {\n @service myAnimations;\n\n willDestroy() {\n super.willDestroy();\n\n this.myAnimations.unregister(this);\n }\n}\n```\n\n## `args`\n\nThe `args` property of Glimmer components is an object that contains the\n_arguments_ that are passed to the component. For instance, the\nfollowing component usage:\n\n```gjs\n<template>\n <SomeComponent @fadeIn={{true}} />\n</template>\n```\n\nWould result in the following `args` object to be passed to the component:\n\n```javascript\n{ fadeIn: true }\n```\n\n`args` can be accessed at any point in the component lifecycle, including\n`constructor` and `willDestroy`. They are also automatically marked as tracked\nproperties, and they can be depended on to update as any other tracked property:\n\n```gjs\nimport Component from '@glimmer/component';\nimport { computed } from '@ember/object';\n\nexport default class SomeComponent extends Component {\n get standardGetter() {\n // updates whenever args.anotherValue updates\n return this.args.anotherValue;\n }\n}\n```\n \nA components arguments are accessible in the template using the `@` prefix - for example,\n`this.args.fadeIn` from the example above can be accessed in the template as `@fadeIn`.\n\n## `isDestroying`\n\nA boolean flag to tell if the component is in the process of destroying. This is set to\ntrue before `willDestroy` is called.\n\n## `isDestroyed`\nA boolean to tell if the component has been fully destroyed. This is set to true\nafter `willDestroy` is called.",
|
|
3218
3246
|
"access": "public",
|
|
@@ -3385,7 +3413,7 @@
|
|
|
3385
3413
|
"module": "ember",
|
|
3386
3414
|
"namespace": "",
|
|
3387
3415
|
"file": "packages/@ember/-internals/glimmer/lib/utils/curly-component-state-bucket.ts",
|
|
3388
|
-
"line":
|
|
3416
|
+
"line": 24,
|
|
3389
3417
|
"description": "Represents the internal state of the component.",
|
|
3390
3418
|
"access": "private",
|
|
3391
3419
|
"tagname": ""
|
|
@@ -3519,7 +3547,7 @@
|
|
|
3519
3547
|
"namespace": "",
|
|
3520
3548
|
"file": "packages/@ember/-internals/glimmer/index.ts",
|
|
3521
3549
|
"line": 104,
|
|
3522
|
-
"description": "## Looking for template keywords and helpers? \n \n See [@ember/helper](
|
|
3550
|
+
"description": "## Looking for template keywords and helpers? \n \n See [@ember/helper](../../modules/@ember%2Fhelper).",
|
|
3523
3551
|
"access": "public",
|
|
3524
3552
|
"tagname": ""
|
|
3525
3553
|
},
|
|
@@ -3902,7 +3930,7 @@
|
|
|
3902
3930
|
"module": "ember",
|
|
3903
3931
|
"namespace": "Ember",
|
|
3904
3932
|
"file": "packages/@ember/-internals/runtime/lib/mixins/-proxy.ts",
|
|
3905
|
-
"line":
|
|
3933
|
+
"line": 64,
|
|
3906
3934
|
"description": "`ProxyMixin` forwards all properties not defined by the proxy itself\nto a proxied `content` object. See ObjectProxy for more details.",
|
|
3907
3935
|
"access": "private",
|
|
3908
3936
|
"tagname": ""
|
|
@@ -3921,7 +3949,7 @@
|
|
|
3921
3949
|
"module": "ember",
|
|
3922
3950
|
"namespace": "Ember",
|
|
3923
3951
|
"file": "packages/@ember/-internals/runtime/lib/mixins/action_handler.ts",
|
|
3924
|
-
"line":
|
|
3952
|
+
"line": 11,
|
|
3925
3953
|
"description": "`ActionHandler` is available on some familiar classes including\n`Route`, `Component`, and `Controller`.\n(Internally the mixin is used by `CoreView`, `ControllerMixin`,\nand `Route` and available to the above classes through\ninheritance.)",
|
|
3926
3954
|
"access": "private",
|
|
3927
3955
|
"tagname": ""
|
|
@@ -3937,7 +3965,7 @@
|
|
|
3937
3965
|
"module": "ember",
|
|
3938
3966
|
"namespace": "Ember",
|
|
3939
3967
|
"file": "packages/@ember/-internals/runtime/lib/mixins/comparable.ts",
|
|
3940
|
-
"line":
|
|
3968
|
+
"line": 9,
|
|
3941
3969
|
"description": "Implements some standard methods for comparing objects. Add this mixin to\nany class you create that can compare its instances.\n\nYou should implement the `compare()` method.",
|
|
3942
3970
|
"since": "Ember 0.9",
|
|
3943
3971
|
"access": "private",
|
|
@@ -3956,7 +3984,7 @@
|
|
|
3956
3984
|
"module": "ember",
|
|
3957
3985
|
"namespace": "",
|
|
3958
3986
|
"file": "packages/@ember/-internals/runtime/lib/mixins/container_proxy.ts",
|
|
3959
|
-
"line":
|
|
3987
|
+
"line": 13,
|
|
3960
3988
|
"description": "ContainerProxyMixin is used to provide public access to specific\ncontainer functionality.",
|
|
3961
3989
|
"extends": "ContainerProxy",
|
|
3962
3990
|
"access": "private",
|
|
@@ -3976,7 +4004,7 @@
|
|
|
3976
4004
|
"module": "ember",
|
|
3977
4005
|
"namespace": "",
|
|
3978
4006
|
"file": "packages/@ember/-internals/runtime/lib/mixins/registry_proxy.ts",
|
|
3979
|
-
"line":
|
|
4007
|
+
"line": 13,
|
|
3980
4008
|
"description": "RegistryProxyMixin is used to provide public access to specific\nregistry functionality.",
|
|
3981
4009
|
"extends": "RegistryProxy",
|
|
3982
4010
|
"access": "private",
|
|
@@ -3995,7 +4023,7 @@
|
|
|
3995
4023
|
"module": "ember",
|
|
3996
4024
|
"namespace": "Ember",
|
|
3997
4025
|
"file": "packages/@ember/-internals/runtime/lib/mixins/target_action_support.ts",
|
|
3998
|
-
"line":
|
|
4026
|
+
"line": 14,
|
|
3999
4027
|
"description": "`TargetActionSupport` is a mixin that can be included in a class\nto add a `triggerAction` method with semantics similar to the\n`{{action}}` helper. In normal Ember usage, the `{{action}}` helper is\nusually the best choice. This mixin is most often useful when you are\ndoing more complex event handling in Components.",
|
|
4000
4028
|
"extends": "Mixin",
|
|
4001
4029
|
"access": "private",
|
|
@@ -4041,7 +4069,7 @@
|
|
|
4041
4069
|
"module": "ember",
|
|
4042
4070
|
"namespace": "Ember",
|
|
4043
4071
|
"file": "packages/@ember/-internals/views/lib/mixins/action_support.ts",
|
|
4044
|
-
"line":
|
|
4072
|
+
"line": 11,
|
|
4045
4073
|
"access": "private",
|
|
4046
4074
|
"tagname": ""
|
|
4047
4075
|
},
|
|
@@ -4073,7 +4101,7 @@
|
|
|
4073
4101
|
"module": "ember",
|
|
4074
4102
|
"namespace": "Ember",
|
|
4075
4103
|
"file": "packages/@ember/-internals/views/lib/views/core_view.ts",
|
|
4076
|
-
"line":
|
|
4104
|
+
"line": 17,
|
|
4077
4105
|
"description": "`CoreView` is an abstract class that exists to give view-like behavior\nto both Ember's main view class `Component` and other classes that don't need\nthe full functionality of `Component`.\n\nUnless you have specific needs for `CoreView`, you will use `Component`\nin your applications.",
|
|
4078
4106
|
"extends": "EmberObject",
|
|
4079
4107
|
"deprecated": true,
|
|
@@ -4176,7 +4204,7 @@
|
|
|
4176
4204
|
"module": "@ember/array",
|
|
4177
4205
|
"namespace": "",
|
|
4178
4206
|
"file": "packages/@ember/array/index.ts",
|
|
4179
|
-
"line":
|
|
4207
|
+
"line": 157,
|
|
4180
4208
|
"description": "This mixin implements Observer-friendly Array-like behavior. It is not a\nconcrete implementation, but it can be used up by other classes that want\nto appear like arrays.\n\nFor example, ArrayProxy is a concrete class that can be instantiated to\nimplement array-like behavior. This class uses the Array Mixin by way of\nthe MutableArray mixin, which allows observable changes to be made to the\nunderlying array.\n\nThis mixin defines methods specifically for collections that provide\nindex-ordered access to their contents. When you are designing code that\nneeds to accept any kind of Array-like object, you should use these methods\ninstead of Array primitives because these will properly notify observers of\nchanges to the array.\n\nAlthough these methods are efficient, they do add a layer of indirection to\nyour application so it is a good idea to use them only when you need the\nflexibility of using both true JavaScript arrays and \"virtual\" arrays such\nas controllers and collections.\n\nYou can use the methods defined in this module to access and modify array\ncontents in an observable-friendly way. You can also be notified whenever\nthe membership of an array changes by using `.observes('myArray.[]')`.\n\nTo support `EmberArray` in your own class, you must override two\nprimitives to use it: `length()` and `objectAt()`.",
|
|
4181
4209
|
"uses": [
|
|
4182
4210
|
"Enumerable"
|
|
@@ -4199,7 +4227,7 @@
|
|
|
4199
4227
|
"module": "@ember/array",
|
|
4200
4228
|
"namespace": "",
|
|
4201
4229
|
"file": "packages/@ember/array/index.ts",
|
|
4202
|
-
"line":
|
|
4230
|
+
"line": 1415,
|
|
4203
4231
|
"description": "This mixin defines the API for modifying array-like objects. These methods\ncan be applied only to a collection that keeps its items in an ordered set.\nIt builds upon the Array mixin and adds methods to modify the array.\nOne concrete implementations of this class include ArrayProxy.\n\nIt is important to use the methods in this class to modify arrays so that\nchanges are observable. This allows the binding system in Ember to function\ncorrectly.\n\n\nNote that an Array can change even if it does not implement this mixin.\nFor example, one might implement a SparseArray that cannot be directly\nmodified, but if its underlying enumerable changes, it will change also.",
|
|
4204
4232
|
"uses": [
|
|
4205
4233
|
"EmberArray",
|
|
@@ -4219,7 +4247,7 @@
|
|
|
4219
4247
|
"module": "ember",
|
|
4220
4248
|
"namespace": "",
|
|
4221
4249
|
"file": "packages/@ember/array/index.ts",
|
|
4222
|
-
"line":
|
|
4250
|
+
"line": 2016,
|
|
4223
4251
|
"description": "The NativeArray mixin contains the properties needed to make the native\nArray support MutableArray and all of its dependent APIs.",
|
|
4224
4252
|
"uses": [
|
|
4225
4253
|
"MutableArray",
|
|
@@ -4239,14 +4267,16 @@
|
|
|
4239
4267
|
"module": "@ember/array/proxy",
|
|
4240
4268
|
"namespace": "",
|
|
4241
4269
|
"file": "packages/@ember/array/proxy.ts",
|
|
4242
|
-
"line":
|
|
4270
|
+
"line": 58,
|
|
4243
4271
|
"description": "An ArrayProxy wraps any other object that implements `Array` and/or\n`MutableArray,` forwarding all requests. This makes it very useful for\na number of binding use cases or other cases where being able to swap\nout the underlying array is useful.\n\nA simple example of usage:\n\n```javascript\nimport { A } from '@ember/array';\nimport ArrayProxy from '@ember/array/proxy';\n\nlet pets = ['dog', 'cat', 'fish'];\nlet ap = ArrayProxy.create({ content: A(pets) });\n\nap.get('firstObject'); // 'dog'\nap.set('content', ['amoeba', 'paramecium']);\nap.get('firstObject'); // 'amoeba'\n```\n\nThis class can also be useful as a layer to transform the contents of\nan array, as they are accessed. This can be done by overriding\n`objectAtContent`:\n\n```javascript\nimport { A } from '@ember/array';\nimport ArrayProxy from '@ember/array/proxy';\n\nlet pets = ['dog', 'cat', 'fish'];\nlet ap = ArrayProxy.create({\n content: A(pets),\n objectAtContent: function(idx) {\n return this.get('content').objectAt(idx).toUpperCase();\n }\n});\n\nap.get('firstObject'); // . 'DOG'\n```\n\nWhen overriding this class, it is important to place the call to\n`_super` *after* setting `content` so the internal observers have\na chance to fire properly:\n\n```javascript\nimport { A } from '@ember/array';\nimport ArrayProxy from '@ember/array/proxy';\n\nexport default ArrayProxy.extend({\n init() {\n this.set('content', A(['dog', 'cat', 'fish']));\n this._super(...arguments);\n }\n});\n```",
|
|
4244
4272
|
"extends": "EmberObject",
|
|
4245
4273
|
"uses": [
|
|
4246
4274
|
"MutableArray"
|
|
4247
4275
|
],
|
|
4248
4276
|
"access": "public",
|
|
4249
|
-
"tagname": ""
|
|
4277
|
+
"tagname": "",
|
|
4278
|
+
"deprecated": true,
|
|
4279
|
+
"deprecationMessage": "Use a tracked array or a native `Proxy` instead."
|
|
4250
4280
|
},
|
|
4251
4281
|
"FEATURES": {
|
|
4252
4282
|
"name": "FEATURES",
|
|
@@ -4290,7 +4320,7 @@
|
|
|
4290
4320
|
"module": "@ember/controller",
|
|
4291
4321
|
"namespace": "Ember",
|
|
4292
4322
|
"file": "packages/@ember/controller/index.ts",
|
|
4293
|
-
"line":
|
|
4323
|
+
"line": 28,
|
|
4294
4324
|
"uses": [
|
|
4295
4325
|
"Ember.ActionHandler"
|
|
4296
4326
|
],
|
|
@@ -4308,7 +4338,7 @@
|
|
|
4308
4338
|
"module": "@ember/controller",
|
|
4309
4339
|
"namespace": "Ember",
|
|
4310
4340
|
"file": "packages/@ember/controller/index.ts",
|
|
4311
|
-
"line":
|
|
4341
|
+
"line": 312,
|
|
4312
4342
|
"extends": "EmberObject",
|
|
4313
4343
|
"uses": [
|
|
4314
4344
|
"Ember.ControllerMixin"
|
|
@@ -4439,7 +4469,7 @@
|
|
|
4439
4469
|
"module": "@ember/enumerable",
|
|
4440
4470
|
"namespace": "",
|
|
4441
4471
|
"file": "packages/@ember/enumerable/index.ts",
|
|
4442
|
-
"line":
|
|
4472
|
+
"line": 9,
|
|
4443
4473
|
"description": "The methods in this mixin have been moved to [MutableArray](/ember/release/classes/MutableArray). This mixin has\nbeen intentionally preserved to avoid breaking Enumerable.detect checks\nuntil the community migrates away from them.",
|
|
4444
4474
|
"access": "private",
|
|
4445
4475
|
"tagname": ""
|
|
@@ -4455,7 +4485,7 @@
|
|
|
4455
4485
|
"module": "ember",
|
|
4456
4486
|
"namespace": "Ember",
|
|
4457
4487
|
"file": "packages/@ember/enumerable/mutable.ts",
|
|
4458
|
-
"line":
|
|
4488
|
+
"line": 9,
|
|
4459
4489
|
"description": "The methods in this mixin have been moved to MutableArray. This mixin has\nbeen intentionally preserved to avoid breaking MutableEnumerable.detect\nchecks until the community migrates away from them.",
|
|
4460
4490
|
"uses": [
|
|
4461
4491
|
"Enumerable"
|
|
@@ -4535,7 +4565,7 @@
|
|
|
4535
4565
|
"module": "@ember/object/core",
|
|
4536
4566
|
"namespace": "",
|
|
4537
4567
|
"file": "packages/@ember/object/core.ts",
|
|
4538
|
-
"line":
|
|
4568
|
+
"line": 172,
|
|
4539
4569
|
"description": "`CoreObject` is the base class for all Ember constructs. It establishes a\nclass system based on Ember's Mixin system, and provides the basis for the\nEmber Object Model. `CoreObject` should generally not be used directly,\ninstead you should use `EmberObject`.\n\n## Usage\n\nYou can define a class by extending from `CoreObject` using the `extend`\nmethod:\n\n```js\nconst Person = CoreObject.extend({\n name: 'Tomster',\n});\n```\n\nFor detailed usage, see the [Object Model](https://guides.emberjs.com/release/object-model/)\nsection of the guides.\n\n## Usage with Native Classes\n\nNative JavaScript `class` syntax can be used to extend from any `CoreObject`\nbased class:\n\n```js\nclass Person extends CoreObject {\n init() {\n super.init(...arguments);\n this.name = 'Tomster';\n }\n}\n```\n\nSome notes about `class` usage:\n\n* `new` syntax is not currently supported with classes that extend from\n `EmberObject` or `CoreObject`. You must continue to use the `create` method\n when making new instances of classes, even if they are defined using native\n class syntax. If you want to use `new` syntax, consider creating classes\n which do _not_ extend from `EmberObject` or `CoreObject`. Ember features,\n such as computed properties and decorators, will still work with base-less\n classes.\n* Instead of using `this._super()`, you must use standard `super` syntax in\n native classes. See the [MDN docs on classes](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes#Super_class_calls_with_super)\n for more details.\n* Native classes support using [constructors](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes#Constructor)\n to set up newly-created instances. Ember uses these to, among other things,\n support features that need to retrieve other entities by name, like Service\n injection and `getOwner`. To ensure your custom instance setup logic takes\n place after this important work is done, avoid using the `constructor` in\n favor of `init`.\n* Properties passed to `create` will be available on the instance by the time\n `init` runs, so any code that requires these values should work at that\n time.\n* Using native classes, and switching back to the old Ember Object model is\n fully supported.",
|
|
4540
4570
|
"access": "public",
|
|
4541
4571
|
"tagname": ""
|
|
@@ -4555,10 +4585,12 @@
|
|
|
4555
4585
|
"module": "@ember/object/evented",
|
|
4556
4586
|
"namespace": "",
|
|
4557
4587
|
"file": "packages/@ember/object/evented.ts",
|
|
4558
|
-
"line":
|
|
4588
|
+
"line": 17,
|
|
4559
4589
|
"description": "This mixin allows for Ember objects to subscribe to and emit events.\n\n```app/utils/person.js\nimport EmberObject from '@ember/object';\nimport Evented from '@ember/object/evented';\n\nexport default class Person extends EmberObject.extend(Evented) {\n greet() {\n // ...\n this.trigger('greet');\n }\n}\n```\n\n```javascript\nvar person = Person.create();\n\nperson.on('greet', function() {\n console.log('Our person has greeted');\n});\n\nperson.greet();\n\n// outputs: 'Our person has greeted'\n```\n\nYou can also chain multiple event subscriptions:\n\n```javascript\nperson.on('greet', function() {\n console.log('Our person has greeted');\n}).one('greet', function() {\n console.log('Offer one-time special');\n}).off('event', this, forgetThis);\n```",
|
|
4560
4590
|
"access": "public",
|
|
4561
|
-
"tagname": ""
|
|
4591
|
+
"tagname": "",
|
|
4592
|
+
"deprecated": true,
|
|
4593
|
+
"deprecationMessage": "Use native JavaScript events or a dedicated event library instead."
|
|
4562
4594
|
},
|
|
4563
4595
|
"EmberObject": {
|
|
4564
4596
|
"name": "EmberObject",
|
|
@@ -4591,7 +4623,7 @@
|
|
|
4591
4623
|
"module": "@ember/object/mixin",
|
|
4592
4624
|
"namespace": "",
|
|
4593
4625
|
"file": "packages/@ember/object/mixin.ts",
|
|
4594
|
-
"line":
|
|
4626
|
+
"line": 456,
|
|
4595
4627
|
"description": "The `Mixin` class allows you to create mixins, whose properties can be\nadded to other classes. For instance,\n\n```javascript\nimport Mixin from '@ember/object/mixin';\n\nconst EditableMixin = Mixin.create({\n edit() {\n console.log('starting to edit');\n this.set('isEditing', true);\n },\n isEditing: false\n});\n```\n\n```javascript\nimport EmberObject from '@ember/object';\nimport EditableMixin from '../mixins/editable';\n\n// Mix mixins into classes by passing them as the first arguments to\n// `.extend.`\nclass Comment extends EmberObject.extend(EditableMixin) {\n post = null\n}\n\nlet comment = Comment.create({\n post: somePost\n});\n\ncomment.edit(); // outputs 'starting to edit'\n```\n\nNote that Mixins are created with `Mixin.create`, not\n`Mixin.extend`.\n\nNote that mixins extend a constructor's prototype so arrays and object literals\ndefined as properties will be shared amongst objects that implement the mixin.\nIf you want to define a property in a mixin that is not shared, you can define\nit either as a computed property or have it be created on initialization of the object.\n\n```javascript\n// filters array will be shared amongst any object implementing mixin\nimport Mixin from '@ember/object/mixin';\nimport { A } from '@ember/array';\n\nconst FilterableMixin = Mixin.create({\n filters: A()\n});\n```\n\n```javascript\nimport Mixin from '@ember/object/mixin';\nimport { A } from '@ember/array';\nimport { computed } from '@ember/object';\n\n// filters will be a separate array for every object implementing the mixin\nconst FilterableMixin = Mixin.create({\n filters: computed(function() {\n return A();\n })\n});\n```\n\n```javascript\nimport Mixin from '@ember/object/mixin';\nimport { A } from '@ember/array';\n\n// filters will be created as a separate array during the object's initialization\nconst Filterable = Mixin.create({\n filters: null,\n\n init() {\n this._super(...arguments);\n this.set(\"filters\", A());\n }\n});\n```",
|
|
4596
4628
|
"access": "public",
|
|
4597
4629
|
"tagname": ""
|
|
@@ -4621,7 +4653,7 @@
|
|
|
4621
4653
|
"module": "@ember/object/observable",
|
|
4622
4654
|
"namespace": "",
|
|
4623
4655
|
"file": "packages/@ember/object/observable.ts",
|
|
4624
|
-
"line":
|
|
4656
|
+
"line": 26,
|
|
4625
4657
|
"description": "## Overview\n\nThis mixin provides properties and property observing functionality, core\nfeatures of the Ember object model.\n\nProperties and observers allow one object to observe changes to a\nproperty on another object. This is one of the fundamental ways that\nmodels, controllers and views communicate with each other in an Ember\napplication.\n\nAny object that has this mixin applied can be used in observer\noperations. That includes `EmberObject` and most objects you will\ninteract with as you write your Ember application.\n\nNote that you will not generally apply this mixin to classes yourself,\nbut you will use the features provided by this module frequently, so it\nis important to understand how to use it.\n\n## Using `get()` and `set()`\n\nBecause of Ember's support for bindings and observers, you will always\naccess properties using the get method, and set properties using the\nset method. This allows the observing objects to be notified and\ncomputed properties to be handled properly.\n\nMore documentation about `get` and `set` are below.\n\n## Observing Property Changes\n\nYou typically observe property changes simply by using the `observer`\nfunction in classes that you write.\n\nFor example:\n\n```javascript\nimport { observer } from '@ember/object';\nimport EmberObject from '@ember/object';\n\nEmberObject.extend({\n valueObserver: observer('value', function(sender, key, value, rev) {\n // Executes whenever the \"value\" property changes\n // See the addObserver method for more information about the callback arguments\n })\n});\n```\n\nAlthough this is the most common way to add an observer, this capability\nis actually built into the `EmberObject` class on top of two methods\ndefined in this mixin: `addObserver` and `removeObserver`. You can use\nthese two methods to add and remove observers yourself if you need to\ndo so at runtime.\n\nTo add an observer for a property, call:\n\n```javascript\nobject.addObserver('propertyKey', targetObject, targetAction)\n```\n\nThis will call the `targetAction` method on the `targetObject` whenever\nthe value of the `propertyKey` changes.\n\nNote that if `propertyKey` is a computed property, the observer will be\ncalled when any of the property dependencies are changed, even if the\nresulting value of the computed property is unchanged. This is necessary\nbecause computed properties are not computed until `get` is called.",
|
|
4626
4658
|
"access": "public",
|
|
4627
4659
|
"tagname": ""
|
|
@@ -4637,10 +4669,12 @@
|
|
|
4637
4669
|
"module": "@ember/object/promise-proxy-mixin",
|
|
4638
4670
|
"namespace": "",
|
|
4639
4671
|
"file": "packages/@ember/object/promise-proxy-mixin.ts",
|
|
4640
|
-
"line":
|
|
4672
|
+
"line": 50,
|
|
4641
4673
|
"description": "A low level mixin making ObjectProxy promise-aware.\n\n```javascript\nimport { resolve } from 'rsvp';\nimport $ from 'jquery';\nimport ObjectProxy from '@ember/object/proxy';\nimport PromiseProxyMixin from '@ember/object/promise-proxy-mixin';\n\nlet ObjectPromiseProxy = ObjectProxy.extend(PromiseProxyMixin);\n\nlet proxy = ObjectPromiseProxy.create({\n promise: resolve($.getJSON('/some/remote/data.json'))\n});\n\nproxy.then(function(json){\n // the json\n}, function(reason) {\n // the reason why you have no json\n});\n```\n\nthe proxy has bindable attributes which\ntrack the promises life cycle\n\n```javascript\nproxy.get('isPending') //=> true\nproxy.get('isSettled') //=> false\nproxy.get('isRejected') //=> false\nproxy.get('isFulfilled') //=> false\n```\n\nWhen the $.getJSON completes, and the promise is fulfilled\nwith json, the life cycle attributes will update accordingly.\nNote that $.getJSON doesn't return an ECMA specified promise,\nit is useful to wrap this with an `RSVP.resolve` so that it behaves\nas a spec compliant promise.\n\n```javascript\nproxy.get('isPending') //=> false\nproxy.get('isSettled') //=> true\nproxy.get('isRejected') //=> false\nproxy.get('isFulfilled') //=> true\n```\n\nAs the proxy is an ObjectProxy, and the json now its content,\nall the json properties will be available directly from the proxy.\n\n```javascript\n// Assuming the following json:\n{\n firstName: 'Stefan',\n lastName: 'Penner'\n}\n\n// both properties will accessible on the proxy\nproxy.get('firstName') //=> 'Stefan'\nproxy.get('lastName') //=> 'Penner'\n```",
|
|
4642
4674
|
"access": "public",
|
|
4643
|
-
"tagname": ""
|
|
4675
|
+
"tagname": "",
|
|
4676
|
+
"deprecated": true,
|
|
4677
|
+
"deprecationMessage": "Use native `async`/`await` and promises directly instead."
|
|
4644
4678
|
},
|
|
4645
4679
|
"ObjectProxy": {
|
|
4646
4680
|
"name": "ObjectProxy",
|
|
@@ -4653,14 +4687,16 @@
|
|
|
4653
4687
|
"module": "@ember/object/proxy",
|
|
4654
4688
|
"namespace": "",
|
|
4655
4689
|
"file": "packages/@ember/object/proxy.ts",
|
|
4656
|
-
"line":
|
|
4690
|
+
"line": 9,
|
|
4657
4691
|
"description": "`ObjectProxy` forwards all properties not defined by the proxy itself\nto a proxied `content` object.\n\n```javascript\nimport EmberObject from '@ember/object';\nimport ObjectProxy from '@ember/object/proxy';\n\nlet exampleObject = EmberObject.create({\n name: 'Foo'\n});\n\nlet exampleProxy = ObjectProxy.create({\n content: exampleObject\n});\n\n// Access and change existing properties\nexampleProxy.get('name'); // 'Foo'\nexampleProxy.set('name', 'Bar');\nexampleObject.get('name'); // 'Bar'\n\n// Create new 'description' property on `exampleObject`\nexampleProxy.set('description', 'Foo is a whizboo baz');\nexampleObject.get('description'); // 'Foo is a whizboo baz'\n```\n\nWhile `content` is unset, setting a property to be delegated will throw an\nError.\n\n```javascript\nimport ObjectProxy from '@ember/object/proxy';\n\nlet exampleProxy = ObjectProxy.create({\n content: null,\n flag: null\n});\nexampleProxy.set('flag', true);\nexampleProxy.get('flag'); // true\nexampleProxy.get('foo'); // undefined\nexampleProxy.set('foo', 'data'); // throws Error\n```\n\nDelegated properties can be bound to and will change when content is updated.\n\nComputed properties on the proxy itself can depend on delegated properties.\n\n```javascript\nimport { computed } from '@ember/object';\nimport ObjectProxy from '@ember/object/proxy';\n\nclass ProxyWithComputedProperty extends ObjectProxy {\n @computed('firstName', 'lastName')\n get fullName() {\n var firstName = this.get('firstName'),\n lastName = this.get('lastName');\n if (firstName && lastName) {\n return firstName + ' ' + lastName;\n }\n return firstName || lastName;\n }\n}\n\nlet exampleProxy = ProxyWithComputedProperty.create();\n\nexampleProxy.get('fullName'); // undefined\nexampleProxy.set('content', {\n firstName: 'Tom', lastName: 'Dale'\n}); // triggers property change for fullName on proxy\n\nexampleProxy.get('fullName'); // 'Tom Dale'\n```",
|
|
4658
4692
|
"extends": "EmberObject",
|
|
4659
4693
|
"uses": [
|
|
4660
4694
|
"Ember.ProxyMixin"
|
|
4661
4695
|
],
|
|
4662
4696
|
"access": "public",
|
|
4663
|
-
"tagname": ""
|
|
4697
|
+
"tagname": "",
|
|
4698
|
+
"deprecated": true,
|
|
4699
|
+
"deprecationMessage": "Use tracked properties or a native `Proxy` instead."
|
|
4664
4700
|
},
|
|
4665
4701
|
"@ember/reactive/collections": {
|
|
4666
4702
|
"name": "@ember/reactive/collections",
|
|
@@ -4843,7 +4879,7 @@
|
|
|
4843
4879
|
"module": "@ember/routing/route",
|
|
4844
4880
|
"namespace": "",
|
|
4845
4881
|
"file": "packages/@ember/routing/route.ts",
|
|
4846
|
-
"line":
|
|
4882
|
+
"line": 83,
|
|
4847
4883
|
"description": "The `Route` class is used to define individual routes. Refer to\nthe [routing guide](https://guides.emberjs.com/release/routing/) for documentation.",
|
|
4848
4884
|
"extends": "EmberObject",
|
|
4849
4885
|
"uses": [
|
|
@@ -4865,7 +4901,7 @@
|
|
|
4865
4901
|
"module": "@ember/routing/router-service",
|
|
4866
4902
|
"namespace": "",
|
|
4867
4903
|
"file": "packages/@ember/routing/router-service.ts",
|
|
4868
|
-
"line":
|
|
4904
|
+
"line": 35,
|
|
4869
4905
|
"description": "The Router service is the public API that provides access to the router.\n\nThe immediate benefit of the Router service is that you can inject it into components,\ngiving them a friendly way to initiate transitions and ask questions about the current\nglobal router state.\n\nIn this example, the Router service is injected into a component to initiate a transition\nto a dedicated route:\n\n```gjs {data-filename=\"app/components/example.gjs\"}\nimport Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\n\nexport default class ExampleComponent extends Component {\n @service router;\n\n @action\n next() {\n this.router.transitionTo('other.route');\n }\n}\n```\n\nLike any service, it can also be injected into helpers, routes, etc.",
|
|
4870
4906
|
"access": "public",
|
|
4871
4907
|
"tagname": "",
|
|
@@ -4882,7 +4918,7 @@
|
|
|
4882
4918
|
"module": "@ember/routing/router",
|
|
4883
4919
|
"namespace": "",
|
|
4884
4920
|
"file": "packages/@ember/routing/router.ts",
|
|
4885
|
-
"line":
|
|
4921
|
+
"line": 145,
|
|
4886
4922
|
"description": "The `EmberRouter` class manages the application state and URLs. Refer to\nthe [routing guide](https://guides.emberjs.com/release/routing/) for documentation.",
|
|
4887
4923
|
"extends": "EmberObject",
|
|
4888
4924
|
"uses": [
|
|
@@ -8094,7 +8130,7 @@
|
|
|
8094
8130
|
},
|
|
8095
8131
|
{
|
|
8096
8132
|
"file": "packages/@ember/-internals/metal/lib/events.ts",
|
|
8097
|
-
"line":
|
|
8133
|
+
"line": 29,
|
|
8098
8134
|
"description": "Add an event listener",
|
|
8099
8135
|
"itemtype": "method",
|
|
8100
8136
|
"name": "addListener",
|
|
@@ -8132,7 +8168,7 @@
|
|
|
8132
8168
|
},
|
|
8133
8169
|
{
|
|
8134
8170
|
"file": "packages/@ember/-internals/metal/lib/events.ts",
|
|
8135
|
-
"line":
|
|
8171
|
+
"line": 63,
|
|
8136
8172
|
"description": "Remove an event listener\n\nArguments should match those passed to `addListener`.",
|
|
8137
8173
|
"itemtype": "method",
|
|
8138
8174
|
"name": "removeListener",
|
|
@@ -8165,7 +8201,7 @@
|
|
|
8165
8201
|
},
|
|
8166
8202
|
{
|
|
8167
8203
|
"file": "packages/@ember/-internals/metal/lib/events.ts",
|
|
8168
|
-
"line":
|
|
8204
|
+
"line": 106,
|
|
8169
8205
|
"description": "Send an event. The execution of suspended listeners\nis skipped, and once listeners are removed. A listener without\na target is executed on the passed object. If an array of actions\nis not passed, the actions stored on the passed object are invoked.",
|
|
8170
8206
|
"itemtype": "method",
|
|
8171
8207
|
"name": "sendEvent",
|
|
@@ -8197,7 +8233,7 @@
|
|
|
8197
8233
|
},
|
|
8198
8234
|
{
|
|
8199
8235
|
"file": "packages/@ember/-internals/metal/lib/events.ts",
|
|
8200
|
-
"line":
|
|
8236
|
+
"line": 163,
|
|
8201
8237
|
"access": "public",
|
|
8202
8238
|
"tagname": "",
|
|
8203
8239
|
"itemtype": "method",
|
|
@@ -8223,11 +8259,13 @@
|
|
|
8223
8259
|
},
|
|
8224
8260
|
{
|
|
8225
8261
|
"file": "packages/@ember/-internals/metal/lib/events.ts",
|
|
8226
|
-
"line":
|
|
8262
|
+
"line": 181,
|
|
8227
8263
|
"description": "Define a property as a function that should be executed when\na specified event or events are triggered.\n\n``` javascript\nimport EmberObject from '@ember/object';\nimport { on } from '@ember/object/evented';\nimport { sendEvent } from '@ember/object/events';\n\nlet Job = EmberObject.extend({\n logCompleted: on('completed', function() {\n console.log('Job completed!');\n })\n});\n\nlet job = Job.create();\n\nsendEvent(job, 'completed'); // Logs 'Job completed!'\n ```",
|
|
8228
8264
|
"itemtype": "method",
|
|
8229
8265
|
"name": "on",
|
|
8230
8266
|
"static": 1,
|
|
8267
|
+
"deprecated": true,
|
|
8268
|
+
"deprecationMessage": "Use native JavaScript events or a dedicated event library instead.",
|
|
8231
8269
|
"params": [
|
|
8232
8270
|
{
|
|
8233
8271
|
"name": "eventNames",
|
|
@@ -9236,7 +9274,7 @@
|
|
|
9236
9274
|
},
|
|
9237
9275
|
{
|
|
9238
9276
|
"file": "packages/@ember/-internals/runtime/lib/mixins/-proxy.ts",
|
|
9239
|
-
"line":
|
|
9277
|
+
"line": 73,
|
|
9240
9278
|
"description": "The object whose properties will be forwarded.",
|
|
9241
9279
|
"itemtype": "property",
|
|
9242
9280
|
"name": "content",
|
|
@@ -9250,7 +9288,7 @@
|
|
|
9250
9288
|
},
|
|
9251
9289
|
{
|
|
9252
9290
|
"file": "packages/@ember/-internals/runtime/lib/mixins/-proxy.ts",
|
|
9253
|
-
"line":
|
|
9291
|
+
"line": 95,
|
|
9254
9292
|
"description": "The object whose properties will be forwarded.",
|
|
9255
9293
|
"itemtype": "property",
|
|
9256
9294
|
"name": "content",
|
|
@@ -9264,7 +9302,7 @@
|
|
|
9264
9302
|
},
|
|
9265
9303
|
{
|
|
9266
9304
|
"file": "packages/@ember/-internals/runtime/lib/mixins/action_handler.ts",
|
|
9267
|
-
"line":
|
|
9305
|
+
"line": 29,
|
|
9268
9306
|
"description": "The collection of functions, keyed by name, available on this\n`ActionHandler` as action targets.\n\nThese functions will be invoked when a matching `{{action}}` is triggered\nfrom within a template and the application's current route is this route.\n\nActions can also be invoked from other parts of your application\nvia `ActionHandler#send`.\n\nThe `actions` hash will inherit action handlers from\nthe `actions` hash defined on extended parent classes\nor mixins rather than just replace the entire hash, e.g.:\n\n```app/mixins/can-display-banner.js\nimport Mixin from '@ember/object/mixin';\n\nexport default Mixin.create({\n actions: {\n displayBanner(msg) {\n // ...\n }\n }\n});\n```\n\n```app/routes/welcome.js\nimport Route from '@ember/routing/route';\nimport CanDisplayBanner from '../mixins/can-display-banner';\n\nexport default Route.extend(CanDisplayBanner, {\n actions: {\n playMusic() {\n // ...\n }\n }\n});\n\n// `WelcomeRoute`, when active, will be able to respond\n// to both actions, since the actions hash is merged rather\n// then replaced when extending mixins / parent classes.\nthis.send('displayBanner');\nthis.send('playMusic');\n```\n\nWithin a Controller, Route or Component's action handler,\nthe value of the `this` context is the Controller, Route or\nComponent object:\n\n```app/routes/song.js\nimport Route from '@ember/routing/route';\n\nexport default Route.extend({\n actions: {\n myAction() {\n this.controllerFor(\"song\");\n this.transitionTo(\"other.route\");\n ...\n }\n }\n});\n```\n\nIt is also possible to call `this._super(...arguments)` from within an\naction handler if it overrides a handler defined on a parent\nclass or mixin:\n\nTake for example the following routes:\n\n```app/mixins/debug-route.js\nimport Mixin from '@ember/object/mixin';\n\nexport default Mixin.create({\n actions: {\n debugRouteInformation() {\n console.debug(\"It's a-me, console.debug!\");\n }\n }\n});\n```\n\n```app/routes/annoying-debug.js\nimport Route from '@ember/routing/route';\nimport DebugRoute from '../mixins/debug-route';\n\nexport default Route.extend(DebugRoute, {\n actions: {\n debugRouteInformation() {\n // also call the debugRouteInformation of mixed in DebugRoute\n this._super(...arguments);\n\n // show additional annoyance\n window.alert(...);\n }\n }\n});\n```\n\n## Bubbling\n\nBy default, an action will stop bubbling once a handler defined\non the `actions` hash handles it. To continue bubbling the action,\nyou must return `true` from the handler:\n\n```app/router.js\nRouter.map(function() {\n this.route(\"album\", function() {\n this.route(\"song\");\n });\n});\n```\n\n```app/routes/album.js\nimport Route from '@ember/routing/route';\n\nexport default Route.extend({\n actions: {\n startPlaying: function() {\n }\n }\n});\n```\n\n```app/routes/album-song.js\nimport Route from '@ember/routing/route';\n\nexport default Route.extend({\n actions: {\n startPlaying() {\n // ...\n\n if (actionShouldAlsoBeTriggeredOnParentRoute) {\n return true;\n }\n }\n }\n});\n```",
|
|
9269
9307
|
"itemtype": "property",
|
|
9270
9308
|
"name": "actions",
|
|
@@ -9280,7 +9318,7 @@
|
|
|
9280
9318
|
},
|
|
9281
9319
|
{
|
|
9282
9320
|
"file": "packages/@ember/-internals/runtime/lib/mixins/action_handler.ts",
|
|
9283
|
-
"line":
|
|
9321
|
+
"line": 175,
|
|
9284
9322
|
"description": "Triggers a named action on the `ActionHandler`. Any parameters\nsupplied after the `actionName` string will be passed as arguments\nto the action target function.\n\nIf the `ActionHandler` has its `target` property set, actions may\nbubble to the `target`. Bubbling happens when an `actionName` can\nnot be found in the `ActionHandler`'s `actions` hash or if the\naction target function returns `true`.\n\nExample\n\n```app/routes/welcome.js\nimport Route from '@ember/routing/route';\n\nexport default Route.extend({\n actions: {\n playTheme() {\n this.send('playMusic', 'theme.mp3');\n },\n playMusic(track) {\n // ...\n }\n }\n});\n```",
|
|
9285
9323
|
"itemtype": "method",
|
|
9286
9324
|
"name": "send",
|
|
@@ -9306,7 +9344,7 @@
|
|
|
9306
9344
|
},
|
|
9307
9345
|
{
|
|
9308
9346
|
"file": "packages/@ember/-internals/runtime/lib/mixins/comparable.ts",
|
|
9309
|
-
"line":
|
|
9347
|
+
"line": 24,
|
|
9310
9348
|
"description": "__Required.__ You must implement this method to apply this mixin.\n\nOverride to return the result of the comparison of the two parameters. The\ncompare method should return:\n\n- `-1` if `a < b`\n- `0` if `a == b`\n- `1` if `a > b`\n\nDefault implementation raises an exception.",
|
|
9311
9349
|
"itemtype": "method",
|
|
9312
9350
|
"name": "compare",
|
|
@@ -9334,13 +9372,13 @@
|
|
|
9334
9372
|
},
|
|
9335
9373
|
{
|
|
9336
9374
|
"file": "packages/@ember/-internals/runtime/lib/mixins/container_proxy.ts",
|
|
9337
|
-
"line":
|
|
9375
|
+
"line": 22,
|
|
9338
9376
|
"class": "ContainerProxyMixin",
|
|
9339
9377
|
"module": "ember"
|
|
9340
9378
|
},
|
|
9341
9379
|
{
|
|
9342
9380
|
"file": "packages/@ember/-internals/runtime/lib/mixins/container_proxy.ts",
|
|
9343
|
-
"line":
|
|
9381
|
+
"line": 26,
|
|
9344
9382
|
"description": "The container stores state.",
|
|
9345
9383
|
"access": "private",
|
|
9346
9384
|
"tagname": "",
|
|
@@ -9352,20 +9390,20 @@
|
|
|
9352
9390
|
},
|
|
9353
9391
|
{
|
|
9354
9392
|
"file": "packages/@ember/-internals/runtime/lib/mixins/registry_proxy.ts",
|
|
9355
|
-
"line":
|
|
9393
|
+
"line": 22,
|
|
9356
9394
|
"class": "RegistryProxyMixin",
|
|
9357
9395
|
"module": "ember"
|
|
9358
9396
|
},
|
|
9359
9397
|
{
|
|
9360
9398
|
"file": "packages/@ember/-internals/runtime/lib/mixins/target_action_support.ts",
|
|
9361
|
-
"line":
|
|
9399
|
+
"line": 33,
|
|
9362
9400
|
"class": "Ember.TargetActionSupport",
|
|
9363
9401
|
"module": "ember",
|
|
9364
9402
|
"namespace": "Ember"
|
|
9365
9403
|
},
|
|
9366
9404
|
{
|
|
9367
9405
|
"file": "packages/@ember/-internals/runtime/lib/mixins/target_action_support.ts",
|
|
9368
|
-
"line":
|
|
9406
|
+
"line": 55,
|
|
9369
9407
|
"description": "The following is private and vestigial.\nSend an `action` with an `actionContext` to a `target`. The action, actionContext\nand target will be retrieved from properties of the object. For example:\n\n```javascript\nimport { alias } from '@ember/object/computed';\n\nApp.SaveButtonView = Ember.View.extend(Ember.TargetActionSupport, {\n target: alias('controller'),\n action: 'save',\n actionContext: alias('context'),\n click() {\n this.triggerAction(); // Sends the `save` action, along with the current context\n // to the current controller\n }\n});\n```\n\nThe `target`, `action`, and `actionContext` can be provided as properties of\nan optional object argument to `triggerAction` as well.\n\n```javascript\nApp.SaveButtonView = Ember.View.extend(Ember.TargetActionSupport, {\n click() {\n this.triggerAction({\n action: 'save',\n target: this.get('controller'),\n actionContext: this.get('context')\n }); // Sends the `save` action, along with the current context\n // to the current controller\n }\n});\n```\n\nThe `actionContext` defaults to the object you are mixing `TargetActionSupport` into.\nBut `target` and `action` must be specified either as properties or with the argument\nto `triggerAction`, or a combination:\n\n```javascript\nimport { alias } from '@ember/object/computed';\n\nApp.SaveButtonView = Ember.View.extend(Ember.TargetActionSupport, {\n target: alias('controller'),\n click() {\n this.triggerAction({\n action: 'save'\n }); // Sends the `save` action, along with a reference to `this`,\n // to the current controller\n }\n});\n```",
|
|
9370
9408
|
"itemtype": "method",
|
|
9371
9409
|
"name": "triggerAction",
|
|
@@ -9559,6 +9597,15 @@
|
|
|
9559
9597
|
"class": "Ember",
|
|
9560
9598
|
"module": "@ember/object"
|
|
9561
9599
|
},
|
|
9600
|
+
{
|
|
9601
|
+
"file": "packages/@ember/-internals/utils/lib/internal-mixin-create.ts",
|
|
9602
|
+
"line": 1,
|
|
9603
|
+
"description": "Key for the internal Mixin constructor.\n\nEmber's own internals are built on mixins, so they need a way to construct\none without triggering the mixin deprecation that `Mixin.create` emits. This\nis deliberately a Symbol so that it does not show up as a discoverable\nproperty name and cannot be reached by name from application code.",
|
|
9604
|
+
"access": "private",
|
|
9605
|
+
"tagname": "",
|
|
9606
|
+
"class": "Ember",
|
|
9607
|
+
"module": "@ember/object"
|
|
9608
|
+
},
|
|
9562
9609
|
{
|
|
9563
9610
|
"file": "packages/@ember/-internals/utils/lib/invoke.ts",
|
|
9564
9611
|
"line": 1,
|
|
@@ -9875,7 +9922,7 @@
|
|
|
9875
9922
|
},
|
|
9876
9923
|
{
|
|
9877
9924
|
"file": "packages/@ember/-internals/views/lib/views/core_view.ts",
|
|
9878
|
-
"line":
|
|
9925
|
+
"line": 49,
|
|
9879
9926
|
"description": "If the view is currently inserted into the DOM of a parent view, this\nproperty will point to the parent of the view.",
|
|
9880
9927
|
"itemtype": "property",
|
|
9881
9928
|
"name": "parentView",
|
|
@@ -9889,7 +9936,7 @@
|
|
|
9889
9936
|
},
|
|
9890
9937
|
{
|
|
9891
9938
|
"file": "packages/@ember/-internals/views/lib/views/core_view.ts",
|
|
9892
|
-
"line":
|
|
9939
|
+
"line": 101,
|
|
9893
9940
|
"description": "Override the default event firing from `Evented` to\nalso call methods with the given name.",
|
|
9894
9941
|
"itemtype": "method",
|
|
9895
9942
|
"name": "trigger",
|
|
@@ -10480,7 +10527,7 @@
|
|
|
10480
10527
|
},
|
|
10481
10528
|
{
|
|
10482
10529
|
"file": "packages/@ember/array/index.ts",
|
|
10483
|
-
"line":
|
|
10530
|
+
"line": 191,
|
|
10484
10531
|
"description": "__Required.__ You must implement this method to apply this mixin.\n\nYour array must support the `length` property. Your replace methods should\nset this property whenever it changes.",
|
|
10485
10532
|
"itemtype": "property",
|
|
10486
10533
|
"name": "length",
|
|
@@ -10492,7 +10539,7 @@
|
|
|
10492
10539
|
},
|
|
10493
10540
|
{
|
|
10494
10541
|
"file": "packages/@ember/array/index.ts",
|
|
10495
|
-
"line":
|
|
10542
|
+
"line": 201,
|
|
10496
10543
|
"description": "Returns the object at the given `index`. If the given `index` is negative\nor is greater or equal than the array length, returns `undefined`.\n\nThis is one of the primitives you must implement to support `EmberArray`.\nIf your object supports retrieving the value of an array item using `get()`\n(i.e. `myArray.get(0)`), then you do not need to implement this method\nyourself.\n\n```javascript\nlet arr = ['a', 'b', 'c', 'd'];\n\narr.objectAt(0); // 'a'\narr.objectAt(3); // 'd'\narr.objectAt(-1); // undefined\narr.objectAt(4); // undefined\narr.objectAt(5); // undefined\n```",
|
|
10497
10544
|
"itemtype": "method",
|
|
10498
10545
|
"name": "objectAt",
|
|
@@ -10514,7 +10561,7 @@
|
|
|
10514
10561
|
},
|
|
10515
10562
|
{
|
|
10516
10563
|
"file": "packages/@ember/array/index.ts",
|
|
10517
|
-
"line":
|
|
10564
|
+
"line": 226,
|
|
10518
10565
|
"description": "This returns the objects at the specified indexes, using `objectAt`.\n\n```javascript\nlet arr = ['a', 'b', 'c', 'd'];\n\narr.objectsAt([0, 1, 2]); // ['a', 'b', 'c']\narr.objectsAt([2, 3, 4]); // ['c', 'd', undefined]\n```",
|
|
10519
10566
|
"itemtype": "method",
|
|
10520
10567
|
"name": "objectsAt",
|
|
@@ -10536,7 +10583,7 @@
|
|
|
10536
10583
|
},
|
|
10537
10584
|
{
|
|
10538
10585
|
"file": "packages/@ember/array/index.ts",
|
|
10539
|
-
"line":
|
|
10586
|
+
"line": 242,
|
|
10540
10587
|
"description": "This is the handler for the special array content property. If you get\nthis property, it will return this. If you set this property to a new\narray, it will replace the current content.\n\n```javascript\nlet peopleToMoon = ['Armstrong', 'Aldrin'];\n\npeopleToMoon.get('[]'); // ['Armstrong', 'Aldrin']\n\npeopleToMoon.set('[]', ['Collins']); // ['Collins']\npeopleToMoon.get('[]'); // ['Collins']\n```",
|
|
10541
10588
|
"itemtype": "property",
|
|
10542
10589
|
"name": "[]",
|
|
@@ -10550,7 +10597,7 @@
|
|
|
10550
10597
|
},
|
|
10551
10598
|
{
|
|
10552
10599
|
"file": "packages/@ember/array/index.ts",
|
|
10553
|
-
"line":
|
|
10600
|
+
"line": 262,
|
|
10554
10601
|
"description": "The first object in the array, or `undefined` if the array is empty.\n\n```javascript\nlet vowels = ['a', 'e', 'i', 'o', 'u'];\nvowels.firstObject; // 'a'\n\nvowels.shiftObject();\nvowels.firstObject; // 'e'\n\nvowels.reverseObjects();\nvowels.firstObject; // 'u'\n\nvowels.clear();\nvowels.firstObject; // undefined\n```",
|
|
10555
10602
|
"itemtype": "property",
|
|
10556
10603
|
"name": "firstObject",
|
|
@@ -10565,7 +10612,7 @@
|
|
|
10565
10612
|
},
|
|
10566
10613
|
{
|
|
10567
10614
|
"file": "packages/@ember/array/index.ts",
|
|
10568
|
-
"line":
|
|
10615
|
+
"line": 284,
|
|
10569
10616
|
"description": "The last object in the array, or `undefined` if the array is empty.",
|
|
10570
10617
|
"itemtype": "property",
|
|
10571
10618
|
"name": "lastObject",
|
|
@@ -10580,7 +10627,7 @@
|
|
|
10580
10627
|
},
|
|
10581
10628
|
{
|
|
10582
10629
|
"file": "packages/@ember/array/index.ts",
|
|
10583
|
-
"line":
|
|
10630
|
+
"line": 292,
|
|
10584
10631
|
"description": "Returns a new array that is a slice of the receiver. This implementation\nuses the observable array methods to retrieve the objects for the new\nslice.\n\n```javascript\nlet arr = ['red', 'green', 'blue'];\n\narr.slice(0); // ['red', 'green', 'blue']\narr.slice(0, 2); // ['red', 'green']\narr.slice(1, 100); // ['green', 'blue']\n```",
|
|
10585
10632
|
"itemtype": "method",
|
|
10586
10633
|
"name": "slice",
|
|
@@ -10607,7 +10654,7 @@
|
|
|
10607
10654
|
},
|
|
10608
10655
|
{
|
|
10609
10656
|
"file": "packages/@ember/array/index.ts",
|
|
10610
|
-
"line":
|
|
10657
|
+
"line": 312,
|
|
10611
10658
|
"description": "Used to determine the passed object's first occurrence in the array.\nReturns the index if found, -1 if no match is found.\n\nThe optional `startAt` argument can be used to pass a starting\nindex to search from, effectively slicing the searchable portion\nof the array. If it's negative it will add the array length to\nthe startAt value passed in as the index to search from. If less\nthan or equal to `-1 * array.length` the entire array is searched.\n\n```javascript\nlet arr = ['a', 'b', 'c', 'd', 'a'];\n\narr.indexOf('a'); // 0\narr.indexOf('z'); // -1\narr.indexOf('a', 2); // 4\narr.indexOf('a', -1); // 4, equivalent to indexOf('a', 4)\narr.indexOf('a', -100); // 0, searches entire array\narr.indexOf('b', 3); // -1\narr.indexOf('a', 100); // -1\n\nlet people = [{ name: 'Zoey' }, { name: 'Bob' }]\nlet newPerson = { name: 'Tom' };\npeople = [newPerson, ...people, newPerson];\n\npeople.indexOf(newPerson); // 0\npeople.indexOf(newPerson, 1); // 3\npeople.indexOf(newPerson, -4); // 0\npeople.indexOf(newPerson, 10); // -1\n```",
|
|
10612
10659
|
"itemtype": "method",
|
|
10613
10660
|
"name": "indexOf",
|
|
@@ -10634,7 +10681,7 @@
|
|
|
10634
10681
|
},
|
|
10635
10682
|
{
|
|
10636
10683
|
"file": "packages/@ember/array/index.ts",
|
|
10637
|
-
"line":
|
|
10684
|
+
"line": 350,
|
|
10638
10685
|
"description": "Returns the index of the given `object`'s last occurrence.\n\n- If no `startAt` argument is given, the search starts from\nthe last position.\n- If it's greater than or equal to the length of the array,\nthe search starts from the last position.\n- If it's negative, it is taken as the offset from the end\nof the array i.e. `startAt + array.length`.\n- If it's any other positive number, will search backwards\nfrom that index of the array.\n\nReturns -1 if no match is found.\n\n```javascript\nlet arr = ['a', 'b', 'c', 'd', 'a'];\n\narr.lastIndexOf('a'); // 4\narr.lastIndexOf('z'); // -1\narr.lastIndexOf('a', 2); // 0\narr.lastIndexOf('a', -1); // 4\narr.lastIndexOf('a', -3); // 0\narr.lastIndexOf('b', 3); // 1\narr.lastIndexOf('a', 100); // 4\n```",
|
|
10639
10686
|
"itemtype": "method",
|
|
10640
10687
|
"name": "lastIndexOf",
|
|
@@ -10661,7 +10708,7 @@
|
|
|
10661
10708
|
},
|
|
10662
10709
|
{
|
|
10663
10710
|
"file": "packages/@ember/array/index.ts",
|
|
10664
|
-
"line":
|
|
10711
|
+
"line": 385,
|
|
10665
10712
|
"description": "Iterates through the array, calling the passed function on each\nitem. This method corresponds to the `forEach()` method defined in\nJavaScript 1.6.\n\nThe callback method you provide should have the following signature (all\nparameters are optional):\n\n```javascript\nfunction(item, index, array);\n```\n\n- `item` is the current item in the iteration.\n- `index` is the current index in the iteration.\n- `array` is the array itself.\n\nNote that in addition to a callback, you can also pass an optional target\nobject that will be set as `this` on the context. This is a good way\nto give your iterator function access to the current object.\n\nExample Usage:\n\n```javascript\nlet foods = [\n { name: 'apple', eaten: false },\n { name: 'banana', eaten: false },\n { name: 'carrot', eaten: false }\n];\n\nfoods.forEach((food) => food.eaten = true);\n\nlet output = '';\nfoods.forEach((item, index, array) =>\n output += `${index + 1}/${array.length} ${item.name}\\n`;\n);\nconsole.log(output);\n// 1/3 apple\n// 2/3 banana\n// 3/3 carrot\n```",
|
|
10666
10713
|
"itemtype": "method",
|
|
10667
10714
|
"name": "forEach",
|
|
@@ -10689,7 +10736,7 @@
|
|
|
10689
10736
|
},
|
|
10690
10737
|
{
|
|
10691
10738
|
"file": "packages/@ember/array/index.ts",
|
|
10692
|
-
"line":
|
|
10739
|
+
"line": 436,
|
|
10693
10740
|
"description": "Alias for `mapBy`.\n\nReturns the value of the named\nproperty on all items in the enumeration.\n\n```javascript\nlet people = [{name: 'Joe'}, {name: 'Matt'}];\n\npeople.getEach('name');\n// ['Joe', 'Matt'];\n\npeople.getEach('nonexistentProperty');\n// [undefined, undefined];\n```",
|
|
10694
10741
|
"itemtype": "method",
|
|
10695
10742
|
"name": "getEach",
|
|
@@ -10711,7 +10758,7 @@
|
|
|
10711
10758
|
},
|
|
10712
10759
|
{
|
|
10713
10760
|
"file": "packages/@ember/array/index.ts",
|
|
10714
|
-
"line":
|
|
10761
|
+
"line": 458,
|
|
10715
10762
|
"description": "Sets the value on the named property for each member. This is more\nergonomic than using other methods defined on this helper. If the object\nimplements Observable, the value will be changed to `set(),` otherwise\nit will be set directly. `null` objects are skipped.\n\n```javascript\nlet people = [{name: 'Joe'}, {name: 'Matt'}];\n\npeople.setEach('zipCode', '10011');\n// [{name: 'Joe', zipCode: '10011'}, {name: 'Matt', zipCode: '10011'}];\n```",
|
|
10716
10763
|
"itemtype": "method",
|
|
10717
10764
|
"name": "setEach",
|
|
@@ -10738,7 +10785,7 @@
|
|
|
10738
10785
|
},
|
|
10739
10786
|
{
|
|
10740
10787
|
"file": "packages/@ember/array/index.ts",
|
|
10741
|
-
"line":
|
|
10788
|
+
"line": 478,
|
|
10742
10789
|
"description": "Maps all of the items in the enumeration to another value, returning\na new array. This method corresponds to `map()` defined in JavaScript 1.6.\n\nThe callback method you provide should have the following signature (all\nparameters are optional):\n\n```javascript\nfunction(item, index, array);\nlet arr = [1, 2, 3, 4, 5, 6];\n\narr.map(element => element * element);\n// [1, 4, 9, 16, 25, 36];\n\narr.map((element, index) => element + index);\n// [1, 3, 5, 7, 9, 11];\n```\n\n- `item` is the current item in the iteration.\n- `index` is the current index in the iteration.\n- `array` is the array itself.\n\nIt should return the mapped value.\n\nNote that in addition to a callback, you can also pass an optional target\nobject that will be set as `this` on the context. This is a good way\nto give your iterator function access to the current object.",
|
|
10743
10790
|
"itemtype": "method",
|
|
10744
10791
|
"name": "map",
|
|
@@ -10766,7 +10813,7 @@
|
|
|
10766
10813
|
},
|
|
10767
10814
|
{
|
|
10768
10815
|
"file": "packages/@ember/array/index.ts",
|
|
10769
|
-
"line":
|
|
10816
|
+
"line": 516,
|
|
10770
10817
|
"description": "Similar to map, this specialized function returns the value of the named\nproperty on all items in the enumeration.\n\n```javascript\nlet people = [{name: 'Joe'}, {name: 'Matt'}];\n\npeople.mapBy('name');\n// ['Joe', 'Matt'];\n\npeople.mapBy('unknownProperty');\n// [undefined, undefined];\n```",
|
|
10771
10818
|
"itemtype": "method",
|
|
10772
10819
|
"name": "mapBy",
|
|
@@ -10788,7 +10835,7 @@
|
|
|
10788
10835
|
},
|
|
10789
10836
|
{
|
|
10790
10837
|
"file": "packages/@ember/array/index.ts",
|
|
10791
|
-
"line":
|
|
10838
|
+
"line": 537,
|
|
10792
10839
|
"description": "Returns a new array with all of the items in the enumeration that the provided\ncallback function returns true for. This method corresponds to [Array.prototype.filter()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter).\n\nThe callback method should have the following signature:\n\n```javascript\nfunction(item, index, array);\n```\n\n- `item` is the current item in the iteration.\n- `index` is the current index in the iteration.\n- `array` is the array itself.\n\nAll parameters are optional. The function should return `true` to include the item\nin the results, and `false` otherwise.\n\nExample:\n\n```javascript\nimport { A } from '@ember/array';\nfunction isAdult(person) {\n return person.age > 18;\n};\n\nlet people = A([{ name: 'John', age: 14 }, { name: 'Joan', age: 45 }]);\n\npeople.filter(isAdult); // returns [{ name: 'Joan', age: 45 }];\n```\n\nNote that in addition to a callback, you can pass an optional target object\nthat will be set as `this` on the context. This is a good way to give your\niterator function access to the current object. For example:\n\n```javascript\nfunction isAdultAndEngineer(person) {\n return person.age > 18 && this.engineering;\n}\n\nclass AdultsCollection {\n engineering = false;\n\n constructor(opts = {}) {\n super(...arguments);\n\n this.engineering = opts.engineering;\n this.people = A([{ name: 'John', age: 14 }, { name: 'Joan', age: 45 }]);\n }\n}\n\nlet collection = new AdultsCollection({ engineering: true });\ncollection.people.filter(isAdultAndEngineer, { target: collection });\n```",
|
|
10793
10840
|
"itemtype": "method",
|
|
10794
10841
|
"name": "filter",
|
|
@@ -10816,7 +10863,7 @@
|
|
|
10816
10863
|
},
|
|
10817
10864
|
{
|
|
10818
10865
|
"file": "packages/@ember/array/index.ts",
|
|
10819
|
-
"line":
|
|
10866
|
+
"line": 601,
|
|
10820
10867
|
"description": "Returns an array with all of the items in the enumeration where the passed\nfunction returns false. This method is the inverse of filter().\n\nThe callback method you provide should have the following signature (all\nparameters are optional):\n\n```javascript\nfunction(item, index, array);\n```\n\n- *item* is the current item in the iteration.\n- *index* is the current index in the iteration\n- *array* is the array itself.\n\nIt should return a falsey value to include the item in the results.\n\nNote that in addition to a callback, you can also pass an optional target\nobject that will be set as \"this\" on the context. This is a good way\nto give your iterator function access to the current object.\n\nExample Usage:\n\n```javascript\nconst food = [\n { food: 'apple', isFruit: true },\n { food: 'bread', isFruit: false },\n { food: 'banana', isFruit: true }\n];\nconst nonFruits = food.reject(function(thing) {\n return thing.isFruit;\n}); // [{food: 'bread', isFruit: false}]\n```",
|
|
10821
10868
|
"itemtype": "method",
|
|
10822
10869
|
"name": "reject",
|
|
@@ -10844,7 +10891,7 @@
|
|
|
10844
10891
|
},
|
|
10845
10892
|
{
|
|
10846
10893
|
"file": "packages/@ember/array/index.ts",
|
|
10847
|
-
"line":
|
|
10894
|
+
"line": 645,
|
|
10848
10895
|
"description": "Filters the array by the property and an optional value. If a value is given, it returns\nthe items that have said value for the property. If not, it returns all the items that\nhave a truthy value for the property.\n\nExample Usage:\n\n```javascript\nimport { A } from '@ember/array';\nlet things = A([{ food: 'apple', isFruit: true }, { food: 'beans', isFruit: false }]);\n\nthings.filterBy('food', 'beans'); // [{ food: 'beans', isFruit: false }]\nthings.filterBy('isFruit'); // [{ food: 'apple', isFruit: true }]\n```",
|
|
10849
10896
|
"itemtype": "method",
|
|
10850
10897
|
"name": "filterBy",
|
|
@@ -10872,7 +10919,7 @@
|
|
|
10872
10919
|
},
|
|
10873
10920
|
{
|
|
10874
10921
|
"file": "packages/@ember/array/index.ts",
|
|
10875
|
-
"line":
|
|
10922
|
+
"line": 667,
|
|
10876
10923
|
"description": "Returns an array with the items that do not have truthy values for the provided key.\nYou can pass an optional second argument with a target value to reject for the key.\nOtherwise this will reject objects where the provided property evaluates to false.\n\nExample Usage:\n\n```javascript\n let food = [\n { name: \"apple\", isFruit: true },\n { name: \"carrot\", isFruit: false },\n { name: \"bread\", isFruit: false },\n ];\n food.rejectBy('isFruit'); // [{ name: \"carrot\", isFruit: false }, { name: \"bread\", isFruit: false }]\n food.rejectBy('name', 'carrot'); // [{ name: \"apple\", isFruit: true }}, { name: \"bread\", isFruit: false }]\n```",
|
|
10877
10924
|
"itemtype": "method",
|
|
10878
10925
|
"name": "rejectBy",
|
|
@@ -10900,7 +10947,7 @@
|
|
|
10900
10947
|
},
|
|
10901
10948
|
{
|
|
10902
10949
|
"file": "packages/@ember/array/index.ts",
|
|
10903
|
-
"line":
|
|
10950
|
+
"line": 691,
|
|
10904
10951
|
"description": "Returns the first item in the array for which the callback returns true.\nThis method is similar to the `find()` method defined in ECMAScript 2015.\n\nThe callback method you provide should have the following signature (all\nparameters are optional):\n\n```javascript\nfunction(item, index, array);\n```\n\n- `item` is the current item in the iteration.\n- `index` is the current index in the iteration.\n- `array` is the array itself.\n\nIt should return the `true` to include the item in the results, `false`\notherwise.\n\nNote that in addition to a callback, you can also pass an optional target\nobject that will be set as `this` on the context. This is a good way\nto give your iterator function access to the current object.\n\nExample Usage:\n\n```javascript\nlet users = [\n { id: 1, name: 'Yehuda' },\n { id: 2, name: 'Tom' },\n { id: 3, name: 'Melanie' },\n { id: 4, name: 'Leah' }\n];\n\nusers.find((user) => user.name == 'Tom'); // [{ id: 2, name: 'Tom' }]\nusers.find(({ id }) => id == 3); // [{ id: 3, name: 'Melanie' }]\n```",
|
|
10905
10952
|
"itemtype": "method",
|
|
10906
10953
|
"name": "find",
|
|
@@ -10928,7 +10975,7 @@
|
|
|
10928
10975
|
},
|
|
10929
10976
|
{
|
|
10930
10977
|
"file": "packages/@ember/array/index.ts",
|
|
10931
|
-
"line":
|
|
10978
|
+
"line": 741,
|
|
10932
10979
|
"description": "Returns the first item with a property matching the passed value. You\ncan pass an optional second argument with the target value. Otherwise\nthis will match any property that evaluates to `true`.\n\nThis method works much like the more generic `find()` method.\n\nUsage Example:\n\n```javascript\nlet users = [\n { id: 1, name: 'Yehuda', isTom: false },\n { id: 2, name: 'Tom', isTom: true },\n { id: 3, name: 'Melanie', isTom: false },\n { id: 4, name: 'Leah', isTom: false }\n];\n\nusers.findBy('id', 4); // { id: 4, name: 'Leah', isTom: false }\nusers.findBy('name', 'Melanie'); // { id: 3, name: 'Melanie', isTom: false }\nusers.findBy('isTom'); // { id: 2, name: 'Tom', isTom: true }\n```",
|
|
10933
10980
|
"itemtype": "method",
|
|
10934
10981
|
"name": "findBy",
|
|
@@ -10956,7 +11003,7 @@
|
|
|
10956
11003
|
},
|
|
10957
11004
|
{
|
|
10958
11005
|
"file": "packages/@ember/array/index.ts",
|
|
10959
|
-
"line":
|
|
11006
|
+
"line": 771,
|
|
10960
11007
|
"description": "Returns `true` if the passed function returns true for every item in the\nenumeration. This corresponds with the `Array.prototype.every()` method defined in ES5.\n\nThe callback method should have the following signature:\n\n```javascript\nfunction(item, index, array);\n```\n\n- `item` is the current item in the iteration.\n- `index` is the current index in the iteration.\n- `array` is the array itself.\n\nAll params are optional. The method should return `true` or `false`.\n\nNote that in addition to a callback, you can also pass an optional target\nobject that will be set as `this` on the context. This is a good way\nto give your iterator function access to the current object.\n\nUsage example:\n\n```javascript\nimport { A } from '@ember/array';\nfunction isAdult(person) {\n return person.age > 18;\n};\n\nconst people = A([{ name: 'John', age: 24 }, { name: 'Joan', age: 45 }]);\nconst areAllAdults = people.every(isAdult);\n```",
|
|
10961
11008
|
"itemtype": "method",
|
|
10962
11009
|
"name": "every",
|
|
@@ -10984,7 +11031,7 @@
|
|
|
10984
11031
|
},
|
|
10985
11032
|
{
|
|
10986
11033
|
"file": "packages/@ember/array/index.ts",
|
|
10987
|
-
"line":
|
|
11034
|
+
"line": 813,
|
|
10988
11035
|
"description": "Returns `true` if the passed property resolves to the value of the second\nargument for all items in the array. This method is often simpler/faster\nthan using a callback.\n\nNote that like the native `Array.every`, `isEvery` will return true when called\non any empty array.\n```javascript\nclass Language {\n constructor(name, isProgrammingLanguage) {\n this.name = name;\n this.programmingLanguage = isProgrammingLanguage;\n }\n}\n\nconst compiledLanguages = [\n new Language('Java', true),\n new Language('Go', true),\n new Language('Rust', true)\n]\n\nconst languagesKnownByMe = [\n new Language('Javascript', true),\n new Language('English', false),\n new Language('Ruby', true)\n]\n\ncompiledLanguages.isEvery('programmingLanguage'); // true\nlanguagesKnownByMe.isEvery('programmingLanguage'); // false\n```",
|
|
10989
11036
|
"itemtype": "method",
|
|
10990
11037
|
"name": "isEvery",
|
|
@@ -11013,7 +11060,7 @@
|
|
|
11013
11060
|
},
|
|
11014
11061
|
{
|
|
11015
11062
|
"file": "packages/@ember/array/index.ts",
|
|
11016
|
-
"line":
|
|
11063
|
+
"line": 853,
|
|
11017
11064
|
"description": "The any() method executes the callback function once for each element\npresent in the array until it finds the one where callback returns a truthy\nvalue (i.e. `true`). If such an element is found, any() immediately returns\ntrue. Otherwise, any() returns false.\n\n```javascript\nfunction(item, index, array);\n```\n\n- `item` is the current item in the iteration.\n- `index` is the current index in the iteration.\n- `array` is the array object itself.\n\nNote that in addition to a callback, you can also pass an optional target\nobject that will be set as `this` on the context. It can be a good way\nto give your iterator function access to an object in cases where an ES6\narrow function would not be appropriate.\n\nUsage Example:\n\n```javascript\nlet includesManager = people.any(this.findPersonInManagersList, this);\n\nlet includesStockHolder = people.any(person => {\n return this.findPersonInStockHoldersList(person)\n});\n\nif (includesManager || includesStockHolder) {\n Paychecks.addBiggerBonus();\n}\n```",
|
|
11018
11065
|
"itemtype": "method",
|
|
11019
11066
|
"name": "any",
|
|
@@ -11041,7 +11088,7 @@
|
|
|
11041
11088
|
},
|
|
11042
11089
|
{
|
|
11043
11090
|
"file": "packages/@ember/array/index.ts",
|
|
11044
|
-
"line":
|
|
11091
|
+
"line": 896,
|
|
11045
11092
|
"description": "Returns `true` if the passed property resolves to the value of the second\nargument for any item in the array. This method is often simpler/faster\nthan using a callback.\n\nExample usage:\n\n```javascript\nconst food = [\n { food: 'apple', isFruit: true },\n { food: 'bread', isFruit: false },\n { food: 'banana', isFruit: true }\n];\n\nfood.isAny('isFruit'); // true\n```",
|
|
11046
11093
|
"itemtype": "method",
|
|
11047
11094
|
"name": "isAny",
|
|
@@ -11070,7 +11117,7 @@
|
|
|
11070
11117
|
},
|
|
11071
11118
|
{
|
|
11072
11119
|
"file": "packages/@ember/array/index.ts",
|
|
11073
|
-
"line":
|
|
11120
|
+
"line": 922,
|
|
11074
11121
|
"description": "This will combine the values of the array into a single value. It\nis a useful way to collect a summary value from an array. This\ncorresponds to the `reduce()` method defined in JavaScript 1.8.\n\nThe callback method you provide should have the following signature (all\nparameters are optional):\n\n```javascript\nfunction(previousValue, item, index, array);\n```\n\n- `previousValue` is the value returned by the last call to the iterator.\n- `item` is the current item in the iteration.\n- `index` is the current index in the iteration.\n- `array` is the array itself.\n\nReturn the new cumulative value.\n\nIn addition to the callback you can also pass an `initialValue`. An error\nwill be raised if you do not pass an initial value and the enumerator is\nempty.\n\nNote that unlike the other methods, this method does not allow you to\npass a target object to set as this for the callback. It's part of the\nspec. Sorry.\n\nExample Usage:\n\n```javascript\n let numbers = [1, 2, 3, 4, 5];\n\n numbers.reduce(function(summation, current) {\n return summation + current;\n }); // 15 (1 + 2 + 3 + 4 + 5)\n\n numbers.reduce(function(summation, current) {\n return summation + current;\n }, -15); // 0 (-15 + 1 + 2 + 3 + 4 + 5)\n\n\n let binaryValues = [true, false, false];\n\n binaryValues.reduce(function(truthValue, current) {\n return truthValue && current;\n }); // false (true && false && false)\n```",
|
|
11075
11122
|
"itemtype": "method",
|
|
11076
11123
|
"name": "reduce",
|
|
@@ -11097,7 +11144,7 @@
|
|
|
11097
11144
|
},
|
|
11098
11145
|
{
|
|
11099
11146
|
"file": "packages/@ember/array/index.ts",
|
|
11100
|
-
"line":
|
|
11147
|
+
"line": 980,
|
|
11101
11148
|
"description": "Invokes the named method on every object in the receiver that\nimplements it. This method corresponds to the implementation in\nPrototype 1.6.\n\n```javascript\nclass Person {\n name = null;\n\n constructor(name) {\n this.name = name;\n }\n\n greet(prefix='Hello') {\n return `${prefix} ${this.name}`;\n }\n}\n\nlet people = [new Person('Joe'), new Person('Matt')];\n\npeople.invoke('greet'); // ['Hello Joe', 'Hello Matt']\npeople.invoke('greet', 'Bonjour'); // ['Bonjour Joe', 'Bonjour Matt']\n```",
|
|
11102
11149
|
"itemtype": "method",
|
|
11103
11150
|
"name": "invoke",
|
|
@@ -11124,7 +11171,7 @@
|
|
|
11124
11171
|
},
|
|
11125
11172
|
{
|
|
11126
11173
|
"file": "packages/@ember/array/index.ts",
|
|
11127
|
-
"line":
|
|
11174
|
+
"line": 1014,
|
|
11128
11175
|
"description": "Simply converts the object into a genuine array. The order is not\nguaranteed. Corresponds to the method implemented by Prototype.",
|
|
11129
11176
|
"itemtype": "method",
|
|
11130
11177
|
"name": "toArray",
|
|
@@ -11139,7 +11186,7 @@
|
|
|
11139
11186
|
},
|
|
11140
11187
|
{
|
|
11141
11188
|
"file": "packages/@ember/array/index.ts",
|
|
11142
|
-
"line":
|
|
11189
|
+
"line": 1023,
|
|
11143
11190
|
"description": "Returns a copy of the array with all `null` and `undefined` elements removed.\n\n```javascript\nlet arr = ['a', null, 'c', undefined];\narr.compact(); // ['a', 'c']\n```",
|
|
11144
11191
|
"itemtype": "method",
|
|
11145
11192
|
"name": "compact",
|
|
@@ -11154,7 +11201,7 @@
|
|
|
11154
11201
|
},
|
|
11155
11202
|
{
|
|
11156
11203
|
"file": "packages/@ember/array/index.ts",
|
|
11157
|
-
"line":
|
|
11204
|
+
"line": 1036,
|
|
11158
11205
|
"description": "Used to determine if the array contains the passed object.\nReturns `true` if found, `false` otherwise.\n\nThe optional `startAt` argument can be used to pass a starting\nindex to search from, effectively slicing the searchable portion\nof the array. If it's negative it will add the array length to\nthe startAt value passed in as the index to search from. If less\nthan or equal to `-1 * array.length` the entire array is searched.\n\nThis method has the same behavior of JavaScript's [Array.includes](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes).\n\n```javascript\n[1, 2, 3].includes(2); // true\n[1, 2, 3].includes(4); // false\n[1, 2, 3].includes(3, 2); // true\n[1, 2, 3].includes(3, 3); // false\n[1, 2, 3].includes(3, -1); // true\n[1, 2, 3].includes(1, -1); // false\n[1, 2, 3].includes(1, -4); // true\n[1, 2, NaN].includes(NaN); // true\n```",
|
|
11159
11206
|
"itemtype": "method",
|
|
11160
11207
|
"name": "includes",
|
|
@@ -11181,7 +11228,7 @@
|
|
|
11181
11228
|
},
|
|
11182
11229
|
{
|
|
11183
11230
|
"file": "packages/@ember/array/index.ts",
|
|
11184
|
-
"line":
|
|
11231
|
+
"line": 1066,
|
|
11185
11232
|
"description": "Sorts the array by the keys specified in the argument.\n\nYou may provide multiple arguments to sort by multiple properties.\n\n```javascript\n let colors = [\n { name: 'red', weight: 500 },\n { name: 'green', weight: 600 },\n { name: 'blue', weight: 500 }\n];\n\n colors.sortBy('name');\n // [{name: 'blue', weight: 500}, {name: 'green', weight: 600}, {name: 'red', weight: 500}]\n\n colors.sortBy('weight', 'name');\n // [{name: 'blue', weight: 500}, {name: 'red', weight: 500}, {name: 'green', weight: 600}]\n ```",
|
|
11186
11233
|
"itemtype": "method",
|
|
11187
11234
|
"name": "sortBy",
|
|
@@ -11204,7 +11251,7 @@
|
|
|
11204
11251
|
},
|
|
11205
11252
|
{
|
|
11206
11253
|
"file": "packages/@ember/array/index.ts",
|
|
11207
|
-
"line":
|
|
11254
|
+
"line": 1091,
|
|
11208
11255
|
"description": "Returns a new array that contains only unique values. The default\nimplementation returns an array regardless of the receiver type.\n\n```javascript\nlet arr = ['a', 'a', 'b', 'b'];\narr.uniq(); // ['a', 'b']\n```\n\nThis only works on primitive data types, e.g. Strings, Numbers, etc.",
|
|
11209
11256
|
"itemtype": "method",
|
|
11210
11257
|
"name": "uniq",
|
|
@@ -11219,7 +11266,7 @@
|
|
|
11219
11266
|
},
|
|
11220
11267
|
{
|
|
11221
11268
|
"file": "packages/@ember/array/index.ts",
|
|
11222
|
-
"line":
|
|
11269
|
+
"line": 1107,
|
|
11223
11270
|
"description": "Returns a new array that contains only items containing a unique property value.\nThe default implementation returns an array regardless of the receiver type.\n\n```javascript\nlet arr = [{ value: 'a' }, { value: 'a' }, { value: 'b' }, { value: 'b' }];\narr.uniqBy('value'); // [{ value: 'a' }, { value: 'b' }]\n\nlet arr = [2.2, 2.1, 3.2, 3.3];\narr.uniqBy(Math.floor); // [2.2, 3.2];\n```",
|
|
11224
11271
|
"itemtype": "method",
|
|
11225
11272
|
"name": "uniqBy",
|
|
@@ -11241,7 +11288,7 @@
|
|
|
11241
11288
|
},
|
|
11242
11289
|
{
|
|
11243
11290
|
"file": "packages/@ember/array/index.ts",
|
|
11244
|
-
"line":
|
|
11291
|
+
"line": 1126,
|
|
11245
11292
|
"description": "Returns a new array that excludes the passed value. The default\nimplementation returns an array regardless of the receiver type.\nIf the receiver does not contain the value it returns the original array.\n\n```javascript\nlet arr = ['a', 'b', 'a', 'c'];\narr.without('a'); // ['b', 'c']\n```",
|
|
11246
11293
|
"itemtype": "method",
|
|
11247
11294
|
"name": "without",
|
|
@@ -11263,7 +11310,7 @@
|
|
|
11263
11310
|
},
|
|
11264
11311
|
{
|
|
11265
11312
|
"file": "packages/@ember/array/index.ts",
|
|
11266
|
-
"line":
|
|
11313
|
+
"line": 1436,
|
|
11267
11314
|
"description": "__Required.__ You must implement this method to apply this mixin.\n\nThis is one of the primitives you must implement to support `Array`.\nYou should replace amt objects started at idx with the objects in the\npassed array.\n\nNote that this method is expected to validate the type(s) of objects that it expects.",
|
|
11268
11315
|
"itemtype": "method",
|
|
11269
11316
|
"name": "replace",
|
|
@@ -11292,7 +11339,7 @@
|
|
|
11292
11339
|
},
|
|
11293
11340
|
{
|
|
11294
11341
|
"file": "packages/@ember/array/index.ts",
|
|
11295
|
-
"line":
|
|
11342
|
+
"line": 1455,
|
|
11296
11343
|
"description": "Remove all elements from the array. This is useful if you\nwant to reuse an existing array without having to recreate it.\n\n```javascript\nlet colors = ['red', 'green', 'blue'];\n\ncolors.length; // 3\ncolors.clear(); // []\ncolors.length; // 0\n```",
|
|
11297
11344
|
"itemtype": "method",
|
|
11298
11345
|
"name": "clear",
|
|
@@ -11307,7 +11354,7 @@
|
|
|
11307
11354
|
},
|
|
11308
11355
|
{
|
|
11309
11356
|
"file": "packages/@ember/array/index.ts",
|
|
11310
|
-
"line":
|
|
11357
|
+
"line": 1472,
|
|
11311
11358
|
"description": "This will use the primitive `replace()` method to insert an object at the\nspecified index.\n\n```javascript\nlet colors = ['red', 'green', 'blue'];\n\ncolors.insertAt(2, 'yellow'); // ['red', 'green', 'yellow', 'blue']\ncolors.insertAt(5, 'orange'); // Error: Index out of range\n```",
|
|
11312
11359
|
"itemtype": "method",
|
|
11313
11360
|
"name": "insertAt",
|
|
@@ -11334,7 +11381,7 @@
|
|
|
11334
11381
|
},
|
|
11335
11382
|
{
|
|
11336
11383
|
"file": "packages/@ember/array/index.ts",
|
|
11337
|
-
"line":
|
|
11384
|
+
"line": 1490,
|
|
11338
11385
|
"description": "Remove an object at the specified index using the `replace()` primitive\nmethod. You can pass either a single index, or a start and a length.\n\nIf you pass a start and length that is beyond the\nlength this method will throw an assertion.\n\n```javascript\nlet colors = ['red', 'green', 'blue', 'yellow', 'orange'];\n\ncolors.removeAt(0); // ['green', 'blue', 'yellow', 'orange']\ncolors.removeAt(2, 2); // ['green', 'blue']\ncolors.removeAt(4, 2); // Error: Index out of range\n```",
|
|
11339
11386
|
"itemtype": "method",
|
|
11340
11387
|
"name": "removeAt",
|
|
@@ -11361,7 +11408,7 @@
|
|
|
11361
11408
|
},
|
|
11362
11409
|
{
|
|
11363
11410
|
"file": "packages/@ember/array/index.ts",
|
|
11364
|
-
"line":
|
|
11411
|
+
"line": 1512,
|
|
11365
11412
|
"description": "Push the object onto the end of the array. Works just like `push()` but it\nis KVO-compliant.\n\n```javascript\nlet colors = ['red', 'green'];\n\ncolors.pushObject('black'); // ['red', 'green', 'black']\ncolors.pushObject(['yellow']); // ['red', 'green', ['yellow']]\n```",
|
|
11366
11413
|
"itemtype": "method",
|
|
11367
11414
|
"name": "pushObject",
|
|
@@ -11382,7 +11429,7 @@
|
|
|
11382
11429
|
},
|
|
11383
11430
|
{
|
|
11384
11431
|
"file": "packages/@ember/array/index.ts",
|
|
11385
|
-
"line":
|
|
11432
|
+
"line": 1529,
|
|
11386
11433
|
"description": "Add the objects in the passed array to the end of the array. Defers\nnotifying observers of the change until all objects are added.\n\n```javascript\nlet colors = ['red'];\n\ncolors.pushObjects(['yellow', 'orange']); // ['red', 'yellow', 'orange']\n```",
|
|
11387
11434
|
"itemtype": "method",
|
|
11388
11435
|
"name": "pushObjects",
|
|
@@ -11404,7 +11451,7 @@
|
|
|
11404
11451
|
},
|
|
11405
11452
|
{
|
|
11406
11453
|
"file": "packages/@ember/array/index.ts",
|
|
11407
|
-
"line":
|
|
11454
|
+
"line": 1545,
|
|
11408
11455
|
"description": "Pop object from array or nil if none are left. Works just like `pop()` but\nit is KVO-compliant.\n\n```javascript\nlet colors = ['red', 'green', 'blue'];\n\ncolors.popObject(); // 'blue'\nconsole.log(colors); // ['red', 'green']\n```",
|
|
11409
11456
|
"itemtype": "method",
|
|
11410
11457
|
"name": "popObject",
|
|
@@ -11418,7 +11465,7 @@
|
|
|
11418
11465
|
},
|
|
11419
11466
|
{
|
|
11420
11467
|
"file": "packages/@ember/array/index.ts",
|
|
11421
|
-
"line":
|
|
11468
|
+
"line": 1561,
|
|
11422
11469
|
"description": "Shift an object from start of array or nil if none are left. Works just\nlike `shift()` but it is KVO-compliant.\n\n```javascript\nlet colors = ['red', 'green', 'blue'];\n\ncolors.shiftObject(); // 'red'\nconsole.log(colors); // ['green', 'blue']\n```",
|
|
11423
11470
|
"itemtype": "method",
|
|
11424
11471
|
"name": "shiftObject",
|
|
@@ -11432,7 +11479,7 @@
|
|
|
11432
11479
|
},
|
|
11433
11480
|
{
|
|
11434
11481
|
"file": "packages/@ember/array/index.ts",
|
|
11435
|
-
"line":
|
|
11482
|
+
"line": 1577,
|
|
11436
11483
|
"description": "Unshift an object to start of array. Works just like `unshift()` but it is\nKVO-compliant.\n\n```javascript\nlet colors = ['red'];\n\ncolors.unshiftObject('yellow'); // ['yellow', 'red']\ncolors.unshiftObject(['black']); // [['black'], 'yellow', 'red']\n```",
|
|
11437
11484
|
"itemtype": "method",
|
|
11438
11485
|
"name": "unshiftObject",
|
|
@@ -11453,7 +11500,7 @@
|
|
|
11453
11500
|
},
|
|
11454
11501
|
{
|
|
11455
11502
|
"file": "packages/@ember/array/index.ts",
|
|
11456
|
-
"line":
|
|
11503
|
+
"line": 1594,
|
|
11457
11504
|
"description": "Adds the named objects to the beginning of the array. Defers notifying\nobservers until all objects have been added.\n\n```javascript\nlet colors = ['red'];\n\ncolors.unshiftObjects(['black', 'white']); // ['black', 'white', 'red']\ncolors.unshiftObjects('yellow'); // Type Error: 'undefined' is not a function\n```",
|
|
11458
11505
|
"itemtype": "method",
|
|
11459
11506
|
"name": "unshiftObjects",
|
|
@@ -11475,7 +11522,7 @@
|
|
|
11475
11522
|
},
|
|
11476
11523
|
{
|
|
11477
11524
|
"file": "packages/@ember/array/index.ts",
|
|
11478
|
-
"line":
|
|
11525
|
+
"line": 1611,
|
|
11479
11526
|
"description": "Reverse objects in the array. Works just like `reverse()` but it is\nKVO-compliant.",
|
|
11480
11527
|
"itemtype": "method",
|
|
11481
11528
|
"name": "reverseObjects",
|
|
@@ -11490,7 +11537,7 @@
|
|
|
11490
11537
|
},
|
|
11491
11538
|
{
|
|
11492
11539
|
"file": "packages/@ember/array/index.ts",
|
|
11493
|
-
"line":
|
|
11540
|
+
"line": 1620,
|
|
11494
11541
|
"description": "Replace all the receiver's content with content of the argument.\nIf argument is an empty array receiver will be cleared.\n\n```javascript\nlet colors = ['red', 'green', 'blue'];\n\ncolors.setObjects(['black', 'white']); // ['black', 'white']\ncolors.setObjects([]); // []\n```",
|
|
11495
11542
|
"itemtype": "method",
|
|
11496
11543
|
"name": "setObjects",
|
|
@@ -11512,7 +11559,7 @@
|
|
|
11512
11559
|
},
|
|
11513
11560
|
{
|
|
11514
11561
|
"file": "packages/@ember/array/index.ts",
|
|
11515
|
-
"line":
|
|
11562
|
+
"line": 1638,
|
|
11516
11563
|
"description": "Remove all occurrences of an object in the array.\n\n```javascript\nlet cities = ['Chicago', 'Berlin', 'Lima', 'Chicago'];\n\ncities.removeObject('Chicago'); // ['Berlin', 'Lima']\ncities.removeObject('Lima'); // ['Berlin']\ncities.removeObject('Tokyo') // ['Berlin']\n```",
|
|
11517
11564
|
"itemtype": "method",
|
|
11518
11565
|
"name": "removeObject",
|
|
@@ -11534,7 +11581,7 @@
|
|
|
11534
11581
|
},
|
|
11535
11582
|
{
|
|
11536
11583
|
"file": "packages/@ember/array/index.ts",
|
|
11537
|
-
"line":
|
|
11584
|
+
"line": 1655,
|
|
11538
11585
|
"description": "Removes each object in the passed array from the receiver.",
|
|
11539
11586
|
"itemtype": "method",
|
|
11540
11587
|
"name": "removeObjects",
|
|
@@ -11556,7 +11603,7 @@
|
|
|
11556
11603
|
},
|
|
11557
11604
|
{
|
|
11558
11605
|
"file": "packages/@ember/array/index.ts",
|
|
11559
|
-
"line":
|
|
11606
|
+
"line": 1664,
|
|
11560
11607
|
"description": "Push the object onto the end of the array if it is not already\npresent in the array.\n\n```javascript\nlet cities = ['Chicago', 'Berlin'];\n\ncities.addObject('Lima'); // ['Chicago', 'Berlin', 'Lima']\ncities.addObject('Berlin'); // ['Chicago', 'Berlin', 'Lima']\n```",
|
|
11561
11608
|
"itemtype": "method",
|
|
11562
11609
|
"name": "addObject",
|
|
@@ -11578,7 +11625,7 @@
|
|
|
11578
11625
|
},
|
|
11579
11626
|
{
|
|
11580
11627
|
"file": "packages/@ember/array/index.ts",
|
|
11581
|
-
"line":
|
|
11628
|
+
"line": 1681,
|
|
11582
11629
|
"description": "Adds each object in the passed array to the receiver.",
|
|
11583
11630
|
"itemtype": "method",
|
|
11584
11631
|
"name": "addObjects",
|
|
@@ -11600,7 +11647,7 @@
|
|
|
11600
11647
|
},
|
|
11601
11648
|
{
|
|
11602
11649
|
"file": "packages/@ember/array/index.ts",
|
|
11603
|
-
"line":
|
|
11650
|
+
"line": 1811,
|
|
11604
11651
|
"description": "Creates an `NativeArray` from an Array-like object.\nDoes not modify the original object's contents.\n \nThis exists primarily for historic reasons and should not be used\nin new code. Prefer native [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)\nor [trackedArray](/ember/release/functions/@ember%2Freactive%2Fcollections/trackedArray).\n\nExample\n\n```app/components/my-component.js\nimport Component from '@ember/component';\nimport { A } from '@ember/array';\n\nexport default Component.extend({\n tagName: 'ul',\n classNames: ['pagination'],\n\n init() {\n this._super(...arguments);\n\n if (!this.get('content')) {\n this.set('content', A());\n this.set('otherContent', A([1,2,3]));\n }\n }\n});\n```",
|
|
11605
11652
|
"itemtype": "method",
|
|
11606
11653
|
"name": "A",
|
|
@@ -11616,70 +11663,70 @@
|
|
|
11616
11663
|
},
|
|
11617
11664
|
{
|
|
11618
11665
|
"file": "packages/@ember/array/index.ts",
|
|
11619
|
-
"line":
|
|
11666
|
+
"line": 1856,
|
|
11620
11667
|
"description": "The final definition of NativeArray removes all native methods. This is the list of removed methods\nwhen run in Chrome 106.",
|
|
11621
11668
|
"class": "@ember/array",
|
|
11622
11669
|
"module": "ember"
|
|
11623
11670
|
},
|
|
11624
11671
|
{
|
|
11625
11672
|
"file": "packages/@ember/array/index.ts",
|
|
11626
|
-
"line":
|
|
11673
|
+
"line": 1873,
|
|
11627
11674
|
"description": "These additional items must be redefined since `Omit` causes methods that return `this` to return the\ntype at the time of the Omit.",
|
|
11628
11675
|
"class": "@ember/array",
|
|
11629
11676
|
"module": "ember"
|
|
11630
11677
|
},
|
|
11631
11678
|
{
|
|
11632
11679
|
"file": "packages/@ember/array/index.ts",
|
|
11633
|
-
"line":
|
|
11680
|
+
"line": 1897,
|
|
11634
11681
|
"description": "Remove all elements from the array. This is useful if you\nwant to reuse an existing array without having to recreate it.",
|
|
11635
11682
|
"class": "@ember/array",
|
|
11636
11683
|
"module": "ember"
|
|
11637
11684
|
},
|
|
11638
11685
|
{
|
|
11639
11686
|
"file": "packages/@ember/array/index.ts",
|
|
11640
|
-
"line":
|
|
11687
|
+
"line": 1902,
|
|
11641
11688
|
"description": "This will use the primitive `replace()` method to insert an object at the\nspecified index.",
|
|
11642
11689
|
"class": "@ember/array",
|
|
11643
11690
|
"module": "ember"
|
|
11644
11691
|
},
|
|
11645
11692
|
{
|
|
11646
11693
|
"file": "packages/@ember/array/index.ts",
|
|
11647
|
-
"line":
|
|
11694
|
+
"line": 1907,
|
|
11648
11695
|
"description": "Remove an object at the specified index using the `replace()` primitive\nmethod. You can pass either a single index, or a start and a length.",
|
|
11649
11696
|
"class": "@ember/array",
|
|
11650
11697
|
"module": "ember"
|
|
11651
11698
|
},
|
|
11652
11699
|
{
|
|
11653
11700
|
"file": "packages/@ember/array/index.ts",
|
|
11654
|
-
"line":
|
|
11701
|
+
"line": 1912,
|
|
11655
11702
|
"description": "Add the objects in the passed numerable to the end of the array. Defers\nnotifying observers of the change until all objects are added.",
|
|
11656
11703
|
"class": "@ember/array",
|
|
11657
11704
|
"module": "ember"
|
|
11658
11705
|
},
|
|
11659
11706
|
{
|
|
11660
11707
|
"file": "packages/@ember/array/index.ts",
|
|
11661
|
-
"line":
|
|
11708
|
+
"line": 1917,
|
|
11662
11709
|
"description": "Adds the named objects to the beginning of the array. Defers notifying\nobservers until all objects have been added.",
|
|
11663
11710
|
"class": "@ember/array",
|
|
11664
11711
|
"module": "ember"
|
|
11665
11712
|
},
|
|
11666
11713
|
{
|
|
11667
11714
|
"file": "packages/@ember/array/index.ts",
|
|
11668
|
-
"line":
|
|
11715
|
+
"line": 1922,
|
|
11669
11716
|
"description": "Reverse objects in the array. Works just like `reverse()` but it is\nKVO-compliant.",
|
|
11670
11717
|
"class": "@ember/array",
|
|
11671
11718
|
"module": "ember"
|
|
11672
11719
|
},
|
|
11673
11720
|
{
|
|
11674
11721
|
"file": "packages/@ember/array/index.ts",
|
|
11675
|
-
"line":
|
|
11722
|
+
"line": 1927,
|
|
11676
11723
|
"description": "Replace all the receiver's content with content of the argument.\nIf argument is an empty array receiver will be cleared.",
|
|
11677
11724
|
"class": "@ember/array",
|
|
11678
11725
|
"module": "ember"
|
|
11679
11726
|
},
|
|
11680
11727
|
{
|
|
11681
11728
|
"file": "packages/@ember/array/index.ts",
|
|
11682
|
-
"line":
|
|
11729
|
+
"line": 1932,
|
|
11683
11730
|
"description": "Remove all occurrences of an object in the array.\n\n```javascript\nlet cities = ['Chicago', 'Berlin', 'Lima', 'Chicago'];\n\ncities.removeObject('Chicago'); // ['Berlin', 'Lima']\ncities.removeObject('Lima'); // ['Berlin']\ncities.removeObject('Tokyo') // ['Berlin']\n```",
|
|
11684
11731
|
"itemtype": "method",
|
|
11685
11732
|
"name": "removeObject",
|
|
@@ -11701,14 +11748,14 @@
|
|
|
11701
11748
|
},
|
|
11702
11749
|
{
|
|
11703
11750
|
"file": "packages/@ember/array/index.ts",
|
|
11704
|
-
"line":
|
|
11751
|
+
"line": 1949,
|
|
11705
11752
|
"description": "Removes each object in the passed array from the receiver.",
|
|
11706
11753
|
"class": "@ember/array",
|
|
11707
11754
|
"module": "ember"
|
|
11708
11755
|
},
|
|
11709
11756
|
{
|
|
11710
11757
|
"file": "packages/@ember/array/index.ts",
|
|
11711
|
-
"line":
|
|
11758
|
+
"line": 1953,
|
|
11712
11759
|
"description": "Push the object onto the end of the array if it is not already\npresent in the array.\n\n```javascript\nlet cities = ['Chicago', 'Berlin'];\n\ncities.addObject('Lima'); // ['Chicago', 'Berlin', 'Lima']\ncities.addObject('Berlin'); // ['Chicago', 'Berlin', 'Lima']\n```",
|
|
11713
11760
|
"itemtype": "method",
|
|
11714
11761
|
"name": "addObject",
|
|
@@ -11730,14 +11777,14 @@
|
|
|
11730
11777
|
},
|
|
11731
11778
|
{
|
|
11732
11779
|
"file": "packages/@ember/array/index.ts",
|
|
11733
|
-
"line":
|
|
11780
|
+
"line": 1970,
|
|
11734
11781
|
"description": "Adds each object in the passed enumerable to the receiver.",
|
|
11735
11782
|
"class": "@ember/array",
|
|
11736
11783
|
"module": "ember"
|
|
11737
11784
|
},
|
|
11738
11785
|
{
|
|
11739
11786
|
"file": "packages/@ember/array/index.ts",
|
|
11740
|
-
"line":
|
|
11787
|
+
"line": 1974,
|
|
11741
11788
|
"description": "Sets the value on the named property for each member. This is more\nergonomic than using other methods defined on this helper. If the object\nimplements Observable, the value will be changed to `set(),` otherwise\nit will be set directly. `null` objects are skipped.\n\n```javascript\nlet people = [{name: 'Joe'}, {name: 'Matt'}];\n\npeople.setEach('zipCode', '10011');\n// [{name: 'Joe', zipCode: '10011'}, {name: 'Matt', zipCode: '10011'}];\n```",
|
|
11742
11789
|
"itemtype": "method",
|
|
11743
11790
|
"name": "setEach",
|
|
@@ -11764,7 +11811,7 @@
|
|
|
11764
11811
|
},
|
|
11765
11812
|
{
|
|
11766
11813
|
"file": "packages/@ember/array/index.ts",
|
|
11767
|
-
"line":
|
|
11814
|
+
"line": 1994,
|
|
11768
11815
|
"description": "This is the handler for the special array content property. If you get\nthis property, it will return this. If you set this property to a new\narray, it will replace the current content.\n\n```javascript\nlet peopleToMoon = ['Armstrong', 'Aldrin'];\n\npeopleToMoon.get('[]'); // ['Armstrong', 'Aldrin']\n\npeopleToMoon.set('[]', ['Collins']); // ['Collins']\npeopleToMoon.get('[]'); // ['Collins']\n```",
|
|
11769
11816
|
"itemtype": "property",
|
|
11770
11817
|
"name": "[]",
|
|
@@ -11778,7 +11825,7 @@
|
|
|
11778
11825
|
},
|
|
11779
11826
|
{
|
|
11780
11827
|
"file": "packages/@ember/array/proxy.ts",
|
|
11781
|
-
"line":
|
|
11828
|
+
"line": 120,
|
|
11782
11829
|
"description": "The content array. Must be an object that implements `Array` and/or\n`MutableArray.`",
|
|
11783
11830
|
"itemtype": "property",
|
|
11784
11831
|
"name": "content",
|
|
@@ -11790,7 +11837,7 @@
|
|
|
11790
11837
|
},
|
|
11791
11838
|
{
|
|
11792
11839
|
"file": "packages/@ember/array/proxy.ts",
|
|
11793
|
-
"line":
|
|
11840
|
+
"line": 129,
|
|
11794
11841
|
"description": "The array that the proxy pretends to be. In the default `ArrayProxy`\nimplementation, this and `content` are the same. Subclasses of `ArrayProxy`\ncan override this property to provide things like sorting and filtering.",
|
|
11795
11842
|
"itemtype": "property",
|
|
11796
11843
|
"name": "arrangedContent",
|
|
@@ -11801,7 +11848,7 @@
|
|
|
11801
11848
|
},
|
|
11802
11849
|
{
|
|
11803
11850
|
"file": "packages/@ember/array/proxy.ts",
|
|
11804
|
-
"line":
|
|
11851
|
+
"line": 138,
|
|
11805
11852
|
"description": "Should actually retrieve the object at the specified index from the\ncontent. You can override this method in subclasses to transform the\ncontent item to something new.\n\nThis method will only be called if content is non-`null`.",
|
|
11806
11853
|
"itemtype": "method",
|
|
11807
11854
|
"name": "objectAtContent",
|
|
@@ -11823,7 +11870,7 @@
|
|
|
11823
11870
|
},
|
|
11824
11871
|
{
|
|
11825
11872
|
"file": "packages/@ember/array/proxy.ts",
|
|
11826
|
-
"line":
|
|
11873
|
+
"line": 151,
|
|
11827
11874
|
"description": "Should actually replace the specified objects on the content array.\nYou can override this method in subclasses to transform the content item\ninto something new.\n\nThis method will only be called if content is non-`null`.",
|
|
11828
11875
|
"itemtype": "method",
|
|
11829
11876
|
"name": "replaceContent",
|
|
@@ -11853,12 +11900,6 @@
|
|
|
11853
11900
|
"class": "ArrayProxy",
|
|
11854
11901
|
"module": "@ember/array/proxy"
|
|
11855
11902
|
},
|
|
11856
|
-
{
|
|
11857
|
-
"file": "packages/@ember/array/proxy.ts",
|
|
11858
|
-
"line": 178,
|
|
11859
|
-
"class": "ArrayProxy",
|
|
11860
|
-
"module": "@ember/array/proxy"
|
|
11861
|
-
},
|
|
11862
11903
|
{
|
|
11863
11904
|
"file": "packages/@ember/array/proxy.ts",
|
|
11864
11905
|
"line": 180,
|
|
@@ -11867,7 +11908,7 @@
|
|
|
11867
11908
|
},
|
|
11868
11909
|
{
|
|
11869
11910
|
"file": "packages/@ember/array/proxy.ts",
|
|
11870
|
-
"line":
|
|
11911
|
+
"line": 182,
|
|
11871
11912
|
"class": "ArrayProxy",
|
|
11872
11913
|
"module": "@ember/array/proxy"
|
|
11873
11914
|
},
|
|
@@ -11879,7 +11920,7 @@
|
|
|
11879
11920
|
},
|
|
11880
11921
|
{
|
|
11881
11922
|
"file": "packages/@ember/array/proxy.ts",
|
|
11882
|
-
"line":
|
|
11923
|
+
"line": 187,
|
|
11883
11924
|
"class": "ArrayProxy",
|
|
11884
11925
|
"module": "@ember/array/proxy"
|
|
11885
11926
|
},
|
|
@@ -11913,6 +11954,12 @@
|
|
|
11913
11954
|
"class": "ArrayProxy",
|
|
11914
11955
|
"module": "@ember/array/proxy"
|
|
11915
11956
|
},
|
|
11957
|
+
{
|
|
11958
|
+
"file": "packages/@ember/array/proxy.ts",
|
|
11959
|
+
"line": 200,
|
|
11960
|
+
"class": "ArrayProxy",
|
|
11961
|
+
"module": "@ember/array/proxy"
|
|
11962
|
+
},
|
|
11916
11963
|
{
|
|
11917
11964
|
"file": "packages/@ember/canary-features/index.ts",
|
|
11918
11965
|
"line": 29,
|
|
@@ -12069,14 +12116,14 @@
|
|
|
12069
12116
|
},
|
|
12070
12117
|
{
|
|
12071
12118
|
"file": "packages/@ember/controller/index.ts",
|
|
12072
|
-
"line":
|
|
12119
|
+
"line": 35,
|
|
12073
12120
|
"class": "Ember.ControllerMixin",
|
|
12074
12121
|
"module": "@ember/controller",
|
|
12075
12122
|
"namespace": "Ember"
|
|
12076
12123
|
},
|
|
12077
12124
|
{
|
|
12078
12125
|
"file": "packages/@ember/controller/index.ts",
|
|
12079
|
-
"line":
|
|
12126
|
+
"line": 40,
|
|
12080
12127
|
"description": "The object to which actions from the view should be sent.\n\nFor example, when a template uses the `{{action}}` helper,\nit will attempt to send the action to the view's controller's `target`.\n\nBy default, the value of the target property is set to the router, and\nis injected when a controller is instantiated. This injection is applied\nas part of the application's initialization process. In most cases the\n`target` property will automatically be set to the logical consumer of\nactions for the controller.",
|
|
12081
12128
|
"itemtype": "property",
|
|
12082
12129
|
"name": "target",
|
|
@@ -12089,7 +12136,7 @@
|
|
|
12089
12136
|
},
|
|
12090
12137
|
{
|
|
12091
12138
|
"file": "packages/@ember/controller/index.ts",
|
|
12092
|
-
"line":
|
|
12139
|
+
"line": 58,
|
|
12093
12140
|
"description": "The controller's current model. When retrieving or modifying a controller's\nmodel, this property should be used instead of the `content` property.",
|
|
12094
12141
|
"itemtype": "property",
|
|
12095
12142
|
"name": "model",
|
|
@@ -12101,7 +12148,7 @@
|
|
|
12101
12148
|
},
|
|
12102
12149
|
{
|
|
12103
12150
|
"file": "packages/@ember/controller/index.ts",
|
|
12104
|
-
"line":
|
|
12151
|
+
"line": 67,
|
|
12105
12152
|
"description": "Defines which query parameters the controller accepts.\nIf you give the names `['category','page']` it will bind\nthe values of these query parameters to the variables\n`this.category` and `this.page`.\n\nBy default, query parameters are parsed as strings. This\nmay cause unexpected behavior if a query parameter is used with `toggleProperty`,\nbecause the initial value set for `param=false` will be the string `\"false\"`, which is truthy.\n\nTo avoid this, you may specify that the query parameter should be parsed as a boolean\nby using the following verbose form with a `type` property:\n```javascript\n queryParams: [{\n category: {\n type: 'boolean'\n }\n }]\n```\nAvailable values for the `type` parameter are `'boolean'`, `'number'`, `'array'`, and `'string'`.\nIf query param type is not specified, it will default to `'string'`.",
|
|
12106
12153
|
"itemtype": "property",
|
|
12107
12154
|
"name": "queryParams",
|
|
@@ -12113,7 +12160,7 @@
|
|
|
12113
12160
|
},
|
|
12114
12161
|
{
|
|
12115
12162
|
"file": "packages/@ember/controller/index.ts",
|
|
12116
|
-
"line":
|
|
12163
|
+
"line": 95,
|
|
12117
12164
|
"description": "Transition the application into another route. The route may\nbe either a single route or route path:\n\n```javascript\naController.transitionToRoute('blogPosts');\naController.transitionToRoute('blogPosts.recentEntries');\n```\n\nOptionally supply a model for the route in question. The model\nwill be serialized into the URL using the `serialize` hook of\nthe route:\n\n```javascript\naController.transitionToRoute('blogPost', aPost);\n```\n\nIf a literal is passed (such as a number or a string), it will\nbe treated as an identifier instead. In this case, the `model`\nhook of the route will be triggered:\n\n```javascript\naController.transitionToRoute('blogPost', 1);\n```\n\nMultiple models will be applied last to first recursively up the\nroute tree.\n\n```app/router.js\nRouter.map(function() {\n this.route('blogPost', { path: ':blogPostId' }, function() {\n this.route('blogComment', { path: ':blogCommentId', resetNamespace: true });\n });\n});\n```\n\n```javascript\naController.transitionToRoute('blogComment', aPost, aComment);\naController.transitionToRoute('blogComment', 1, 13);\n```\n\nIt is also possible to pass a URL (a string that starts with a\n`/`).\n\n```javascript\naController.transitionToRoute('/');\naController.transitionToRoute('/blog/post/1/comment/13');\naController.transitionToRoute('/blog/posts?sort=title');\n```\n\nAn options hash with a `queryParams` property may be provided as\nthe final argument to add query parameters to the destination URL.\n\n```javascript\naController.transitionToRoute('blogPost', 1, {\n queryParams: { showComments: 'true' }\n});\n\n// if you just want to transition the query parameters without changing the route\naController.transitionToRoute({ queryParams: { sort: 'date' } });\n```\n\nSee also [replaceRoute](/ember/release/classes/Ember.ControllerMixin/methods/replaceRoute?anchor=replaceRoute).",
|
|
12118
12165
|
"itemtype": "method",
|
|
12119
12166
|
"name": "transitionToRoute",
|
|
@@ -12150,7 +12197,7 @@
|
|
|
12150
12197
|
},
|
|
12151
12198
|
{
|
|
12152
12199
|
"file": "packages/@ember/controller/index.ts",
|
|
12153
|
-
"line":
|
|
12200
|
+
"line": 173,
|
|
12154
12201
|
"description": "Transition into another route while replacing the current URL, if possible.\nThis will replace the current history entry instead of adding a new one.\nBeside that, it is identical to `transitionToRoute` in all other respects.\n\n```javascript\naController.replaceRoute('blogPosts');\naController.replaceRoute('blogPosts.recentEntries');\n```\n\nOptionally supply a model for the route in question. The model\nwill be serialized into the URL using the `serialize` hook of\nthe route:\n\n```javascript\naController.replaceRoute('blogPost', aPost);\n```\n\nIf a literal is passed (such as a number or a string), it will\nbe treated as an identifier instead. In this case, the `model`\nhook of the route will be triggered:\n\n```javascript\naController.replaceRoute('blogPost', 1);\n```\n\nMultiple models will be applied last to first recursively up the\nroute tree.\n\n```app/router.js\nRouter.map(function() {\n this.route('blogPost', { path: ':blogPostId' }, function() {\n this.route('blogComment', { path: ':blogCommentId', resetNamespace: true });\n });\n});\n```\n\n```\naController.replaceRoute('blogComment', aPost, aComment);\naController.replaceRoute('blogComment', 1, 13);\n```\n\nIt is also possible to pass a URL (a string that starts with a\n`/`).\n\n```javascript\naController.replaceRoute('/');\naController.replaceRoute('/blog/post/1/comment/13');\n```",
|
|
12155
12202
|
"itemtype": "method",
|
|
12156
12203
|
"name": "replaceRoute",
|
|
@@ -12187,7 +12234,7 @@
|
|
|
12187
12234
|
},
|
|
12188
12235
|
{
|
|
12189
12236
|
"file": "packages/@ember/controller/index.ts",
|
|
12190
|
-
"line":
|
|
12237
|
+
"line": 268,
|
|
12191
12238
|
"description": "This property is updated to various different callback functions depending on\nthe current \"state\" of the backing route. It is used by\n`Controller.prototype._qpChanged`.\n\nThe methods backing each state can be found in the `Route.prototype._qp` computed\nproperty return value (the `.states` property). The current values are listed here for\nthe sanity of future travelers:\n\n* `inactive` - This state is used when this controller instance is not part of the active\n route hierarchy. Set in `Route.prototype._reset` (a `router.js` microlib hook) and\n `Route.prototype.actions.finalizeQueryParamChange`.\n* `active` - This state is used when this controller instance is part of the active\n route hierarchy. Set in `Route.prototype.actions.finalizeQueryParamChange`.\n* `allowOverrides` - This state is used in `Route.prototype.setup` (`route.js` microlib hook).",
|
|
12192
12239
|
"itemtype": "method",
|
|
12193
12240
|
"name": "_qpDelegate",
|
|
@@ -12199,7 +12246,7 @@
|
|
|
12199
12246
|
},
|
|
12200
12247
|
{
|
|
12201
12248
|
"file": "packages/@ember/controller/index.ts",
|
|
12202
|
-
"line":
|
|
12249
|
+
"line": 289,
|
|
12203
12250
|
"description": "During `Route#setup` observers are created to invoke this method\nwhen any of the query params declared in `Controller#queryParams` property\nare changed.\n\nWhen invoked this method uses the currently active query param update delegate\n(see `Controller.prototype._qpDelegate` for details) and invokes it with\nthe QP key/value being changed.",
|
|
12204
12251
|
"itemtype": "method",
|
|
12205
12252
|
"name": "_qpChanged",
|
|
@@ -12211,7 +12258,7 @@
|
|
|
12211
12258
|
},
|
|
12212
12259
|
{
|
|
12213
12260
|
"file": "packages/@ember/controller/index.ts",
|
|
12214
|
-
"line":
|
|
12261
|
+
"line": 321,
|
|
12215
12262
|
"description": "Creates a property that lazily looks up another controller in the container.\nCan only be used when defining another controller.\n\nExample:\n\n```app/controllers/post.js\nimport Controller, {\n inject as controller\n} from '@ember/controller';\n\nexport default class PostController extends Controller {\n @controller posts;\n}\n```\n\nClassic Class Example:\n\n```app/controllers/post.js\nimport Controller, {\n inject as controller\n} from '@ember/controller';\n\nexport default Controller.extend({\n posts: controller()\n});\n```\n\nThis example will create a `posts` property on the `post` controller that\nlooks up the `posts` controller in the container, making it easy to reference\nother controllers.",
|
|
12216
12263
|
"itemtype": "method",
|
|
12217
12264
|
"name": "inject",
|
|
@@ -12235,7 +12282,7 @@
|
|
|
12235
12282
|
},
|
|
12236
12283
|
{
|
|
12237
12284
|
"file": "packages/@ember/controller/index.ts",
|
|
12238
|
-
"line":
|
|
12285
|
+
"line": 374,
|
|
12239
12286
|
"description": "A type registry for Ember `Controller`s. Meant to be declaration-merged so string\nlookups resolve to the correct type.\n\nBlueprints should include such a declaration merge for TypeScript:\n\n```ts\nimport Controller from '@ember/controller';\n\nexport default class ExampleController extends Controller {\n// ...\n}\n\ndeclare module '@ember/controller' {\n export interface Registry {\n example: ExampleController;\n }\n}\n```\n\nThen `@inject` can check that the service is registered correctly, and APIs\nlike `owner.lookup('controller:example')` can return `ExampleController`.",
|
|
12240
12287
|
"class": "Ember.@ember/controller",
|
|
12241
12288
|
"module": "@ember/controller"
|
|
@@ -15214,19 +15261,19 @@
|
|
|
15214
15261
|
},
|
|
15215
15262
|
{
|
|
15216
15263
|
"file": "packages/@ember/object/core.ts",
|
|
15217
|
-
"line":
|
|
15264
|
+
"line": 234,
|
|
15218
15265
|
"class": "CoreObject",
|
|
15219
15266
|
"module": "@ember/object/core"
|
|
15220
15267
|
},
|
|
15221
15268
|
{
|
|
15222
15269
|
"file": "packages/@ember/object/core.ts",
|
|
15223
|
-
"line":
|
|
15270
|
+
"line": 238,
|
|
15224
15271
|
"class": "CoreObject",
|
|
15225
15272
|
"module": "@ember/object/core"
|
|
15226
15273
|
},
|
|
15227
15274
|
{
|
|
15228
15275
|
"file": "packages/@ember/object/core.ts",
|
|
15229
|
-
"line":
|
|
15276
|
+
"line": 318,
|
|
15230
15277
|
"description": "An overridable method called when objects are instantiated. By default,\ndoes nothing unless it is overridden during class definition.\n\nExample:\n\n```javascript\nimport EmberObject from '@ember/object';\n\nconst Person = EmberObject.extend({\n init() {\n alert(`Name is ${this.get('name')}`);\n }\n});\n\nlet steve = Person.create({\n name: 'Steve'\n});\n\n// alerts 'Name is Steve'.\n```\n\nNOTE: If you do override `init` for a framework class like `Component`\nfrom `@ember/component`, be sure to call `this._super(...arguments)`\nin your `init` declaration!\nIf you don't, Ember may not have an opportunity to\ndo important setup work, and you'll see strange behavior in your\napplication.",
|
|
15231
15278
|
"itemtype": "method",
|
|
15232
15279
|
"name": "init",
|
|
@@ -15237,7 +15284,7 @@
|
|
|
15237
15284
|
},
|
|
15238
15285
|
{
|
|
15239
15286
|
"file": "packages/@ember/object/core.ts",
|
|
15240
|
-
"line":
|
|
15287
|
+
"line": 352,
|
|
15241
15288
|
"description": "Defines the properties that will be concatenated from the superclass\n(instead of overridden).\n\nBy default, when you extend an Ember class a property defined in\nthe subclass overrides a property with the same name that is defined\nin the superclass. However, there are some cases where it is preferable\nto build up a property's value by combining the superclass' property\nvalue with the subclass' value. An example of this in use within Ember\nis the `classNames` property of `Component` from `@ember/component`.\n\nHere is some sample code showing the difference between a concatenated\nproperty and a normal one:\n\n```javascript\nimport EmberObject from '@ember/object';\n\nconst Bar = EmberObject.extend({\n // Configure which properties to concatenate\n concatenatedProperties: ['concatenatedProperty'],\n\n someNonConcatenatedProperty: ['bar'],\n concatenatedProperty: ['bar']\n});\n\nconst FooBar = Bar.extend({\n someNonConcatenatedProperty: ['foo'],\n concatenatedProperty: ['foo']\n});\n\nlet fooBar = FooBar.create();\nfooBar.get('someNonConcatenatedProperty'); // ['foo']\nfooBar.get('concatenatedProperty'); // ['bar', 'foo']\n```\n\nThis behavior extends to object creation as well. Continuing the\nabove example:\n\n```javascript\nlet fooBar = FooBar.create({\n someNonConcatenatedProperty: ['baz'],\n concatenatedProperty: ['baz']\n})\nfooBar.get('someNonConcatenatedProperty'); // ['baz']\nfooBar.get('concatenatedProperty'); // ['bar', 'foo', 'baz']\n```\n\nAdding a single property that is not an array will just add it in the array:\n\n```javascript\nlet fooBar = FooBar.create({\n concatenatedProperty: 'baz'\n})\nview.get('concatenatedProperty'); // ['bar', 'foo', 'baz']\n```\n\nUsing the `concatenatedProperties` property, we can tell Ember to mix the\ncontent of the properties.\n\nIn `Component` the `classNames`, `classNameBindings` and\n`attributeBindings` properties are concatenated.\n\nThis feature is available for you to use throughout the Ember object model,\nalthough typical app developers are likely to use it infrequently. Since\nit changes expectations about behavior of properties, you should properly\ndocument its usage in each individual concatenated property (to not\nmislead your users to think they can override the property in a subclass).",
|
|
15242
15289
|
"itemtype": "property",
|
|
15243
15290
|
"name": "concatenatedProperties",
|
|
@@ -15250,7 +15297,7 @@
|
|
|
15250
15297
|
},
|
|
15251
15298
|
{
|
|
15252
15299
|
"file": "packages/@ember/object/core.ts",
|
|
15253
|
-
"line":
|
|
15300
|
+
"line": 426,
|
|
15254
15301
|
"description": "Defines the properties that will be merged from the superclass\n(instead of overridden).\n\nBy default, when you extend an Ember class a property defined in\nthe subclass overrides a property with the same name that is defined\nin the superclass. However, there are some cases where it is preferable\nto build up a property's value by merging the superclass property value\nwith the subclass property's value. An example of this in use within Ember\nis the `queryParams` property of routes.\n\nHere is some sample code showing the difference between a merged\nproperty and a normal one:\n\n```javascript\nimport EmberObject from '@ember/object';\n\nconst Bar = EmberObject.extend({\n // Configure which properties are to be merged\n mergedProperties: ['mergedProperty'],\n\n someNonMergedProperty: {\n nonMerged: 'superclass value of nonMerged'\n },\n mergedProperty: {\n page: { replace: false },\n limit: { replace: true }\n }\n});\n\nconst FooBar = Bar.extend({\n someNonMergedProperty: {\n completelyNonMerged: 'subclass value of nonMerged'\n },\n mergedProperty: {\n limit: { replace: false }\n }\n});\n\nlet fooBar = FooBar.create();\n\nfooBar.get('someNonMergedProperty');\n// => { completelyNonMerged: 'subclass value of nonMerged' }\n//\n// Note the entire object, including the nonMerged property of\n// the superclass object, has been replaced\n\nfooBar.get('mergedProperty');\n// => {\n// page: {replace: false},\n// limit: {replace: false}\n// }\n//\n// Note the page remains from the superclass, and the\n// `limit` property's value of `false` has been merged from\n// the subclass.\n```\n\nThis behavior is not available during object `create` calls. It is only\navailable at `extend` time.\n\nIn `Route` the `queryParams` property is merged.\n\nThis feature is available for you to use throughout the Ember object model,\nalthough typical app developers are likely to use it infrequently. Since\nit changes expectations about behavior of properties, you should properly\ndocument its usage in each individual merged property (to not\nmislead your users to think they can override the property in a subclass).",
|
|
15255
15302
|
"itemtype": "property",
|
|
15256
15303
|
"name": "mergedProperties",
|
|
@@ -15263,7 +15310,7 @@
|
|
|
15263
15310
|
},
|
|
15264
15311
|
{
|
|
15265
15312
|
"file": "packages/@ember/object/core.ts",
|
|
15266
|
-
"line":
|
|
15313
|
+
"line": 501,
|
|
15267
15314
|
"description": "Destroyed object property flag.\n\nif this property is `true` the observers and bindings were already\nremoved by the effect of calling the `destroy()` method.",
|
|
15268
15315
|
"itemtype": "property",
|
|
15269
15316
|
"name": "isDestroyed",
|
|
@@ -15275,7 +15322,7 @@
|
|
|
15275
15322
|
},
|
|
15276
15323
|
{
|
|
15277
15324
|
"file": "packages/@ember/object/core.ts",
|
|
15278
|
-
"line":
|
|
15325
|
+
"line": 519,
|
|
15279
15326
|
"description": "Destruction scheduled flag. The `destroy()` method has been called.\n\nThe object stays intact until the end of the run loop at which point\nthe `isDestroyed` flag is set.",
|
|
15280
15327
|
"itemtype": "property",
|
|
15281
15328
|
"name": "isDestroying",
|
|
@@ -15287,7 +15334,7 @@
|
|
|
15287
15334
|
},
|
|
15288
15335
|
{
|
|
15289
15336
|
"file": "packages/@ember/object/core.ts",
|
|
15290
|
-
"line":
|
|
15337
|
+
"line": 537,
|
|
15291
15338
|
"description": "Destroys an object by setting the `isDestroyed` flag and removing its\nmetadata, which effectively destroys observers and bindings.\n\nIf you try to set a property on a destroyed object, an exception will be\nraised.\n\nNote that destruction is scheduled for the end of the run loop and does not\nhappen immediately. It will set an isDestroying flag immediately.",
|
|
15292
15339
|
"itemtype": "method",
|
|
15293
15340
|
"name": "destroy",
|
|
@@ -15302,7 +15349,7 @@
|
|
|
15302
15349
|
},
|
|
15303
15350
|
{
|
|
15304
15351
|
"file": "packages/@ember/object/core.ts",
|
|
15305
|
-
"line":
|
|
15352
|
+
"line": 564,
|
|
15306
15353
|
"description": "Override to implement teardown.",
|
|
15307
15354
|
"itemtype": "method",
|
|
15308
15355
|
"name": "willDestroy",
|
|
@@ -15313,7 +15360,7 @@
|
|
|
15313
15360
|
},
|
|
15314
15361
|
{
|
|
15315
15362
|
"file": "packages/@ember/object/core.ts",
|
|
15316
|
-
"line":
|
|
15363
|
+
"line": 572,
|
|
15317
15364
|
"description": "Returns a string representation which attempts to provide more information\nthan Javascript's `toString` typically does, in a generic way for all Ember\nobjects.\n\n```javascript\nimport EmberObject from '@ember/object';\n\nconst Person = EmberObject.extend();\nperson = Person.create();\nperson.toString(); //=> \"<Person:ember1024>\"\n```\n\nIf the object's class is not defined on an Ember namespace, it will\nindicate it is a subclass of the registered superclass:\n\n```javascript\nconst Student = Person.extend();\nlet student = Student.create();\nstudent.toString(); //=> \"<(subclass of Person):ember1025>\"\n```\n\nIf the method `toStringExtension` is defined, its return value will be\nincluded in the output.\n\n```javascript\nconst Teacher = Person.extend({\n toStringExtension() {\n return this.get('fullName');\n }\n});\nteacher = Teacher.create();\nteacher.toString(); //=> \"<Teacher:ember1026:Tom Dale>\"\n```",
|
|
15318
15365
|
"itemtype": "method",
|
|
15319
15366
|
"name": "toString",
|
|
@@ -15328,7 +15375,7 @@
|
|
|
15328
15375
|
},
|
|
15329
15376
|
{
|
|
15330
15377
|
"file": "packages/@ember/object/core.ts",
|
|
15331
|
-
"line":
|
|
15378
|
+
"line": 617,
|
|
15332
15379
|
"description": "Creates a new subclass.\n\n```javascript\nimport EmberObject from '@ember/object';\n\nconst Person = EmberObject.extend({\n say(thing) {\n alert(thing);\n }\n});\n```\n\nThis defines a new subclass of EmberObject: `Person`. It contains one method: `say()`.\n\nYou can also create a subclass from any existing class by calling its `extend()` method.\nFor example, you might want to create a subclass of Ember's built-in `Component` class:\n\n```javascript\nimport Component from '@ember/component';\n\nconst PersonComponent = Component.extend({\n tagName: 'li',\n classNameBindings: ['isAdministrator']\n});\n```\n\nWhen defining a subclass, you can override methods but still access the\nimplementation of your parent class by calling the special `_super()` method:\n\n```javascript\nimport EmberObject from '@ember/object';\n\nconst Person = EmberObject.extend({\n say(thing) {\n let name = this.get('name');\n alert(`${name} says: ${thing}`);\n }\n});\n\nconst Soldier = Person.extend({\n say(thing) {\n this._super(`${thing}, sir!`);\n },\n march(numberOfHours) {\n alert(`${this.get('name')} marches for ${numberOfHours} hours.`);\n }\n});\n\nlet yehuda = Soldier.create({\n name: 'Yehuda Katz'\n});\n\nyehuda.say('Yes'); // alerts \"Yehuda Katz says: Yes, sir!\"\n```\n\nThe `create()` on line #17 creates an *instance* of the `Soldier` class.\nThe `extend()` on line #8 creates a *subclass* of `Person`. Any instance\nof the `Person` class will *not* have the `march()` method.\n\nYou can also pass `Mixin` classes to add additional properties to the subclass.\n\n```javascript\nimport EmberObject from '@ember/object';\nimport Mixin from '@ember/object/mixin';\n\nconst Person = EmberObject.extend({\n say(thing) {\n alert(`${this.get('name')} says: ${thing}`);\n }\n});\n\nconst SingingMixin = Mixin.create({\n sing(thing) {\n alert(`${this.get('name')} sings: la la la ${thing}`);\n }\n});\n\nconst BroadwayStar = Person.extend(SingingMixin, {\n dance() {\n alert(`${this.get('name')} dances: tap tap tap tap `);\n }\n});\n```\n\nThe `BroadwayStar` class contains three methods: `say()`, `sing()`, and `dance()`.",
|
|
15333
15380
|
"itemtype": "method",
|
|
15334
15381
|
"name": "extend",
|
|
@@ -15356,7 +15403,7 @@
|
|
|
15356
15403
|
},
|
|
15357
15404
|
{
|
|
15358
15405
|
"file": "packages/@ember/object/core.ts",
|
|
15359
|
-
"line":
|
|
15406
|
+
"line": 721,
|
|
15360
15407
|
"description": "Creates an instance of a class. Accepts either no arguments, or an object\ncontaining values to initialize the newly instantiated object with.\n\n```javascript\nimport EmberObject from '@ember/object';\n\nconst Person = EmberObject.extend({\n helloWorld() {\n alert(`Hi, my name is ${this.get('name')}`);\n }\n});\n\nlet tom = Person.create({\n name: 'Tom Dale'\n});\n\ntom.helloWorld(); // alerts \"Hi, my name is Tom Dale\".\n```\n\n`create` will call the `init` function if defined during\n`AnyObject.extend`\n\nIf no arguments are passed to `create`, it will not set values to the new\ninstance during initialization:\n\n```javascript\nlet noName = Person.create();\nnoName.helloWorld(); // alerts undefined\n```\n\nNOTE: For performance reasons, you cannot declare methods or computed\nproperties during `create`. You should instead declare methods and computed\nproperties when using `extend`.",
|
|
15361
15408
|
"itemtype": "method",
|
|
15362
15409
|
"name": "create",
|
|
@@ -15376,7 +15423,7 @@
|
|
|
15376
15423
|
},
|
|
15377
15424
|
{
|
|
15378
15425
|
"file": "packages/@ember/object/core.ts",
|
|
15379
|
-
"line":
|
|
15426
|
+
"line": 806,
|
|
15380
15427
|
"description": "Augments a constructor's prototype with additional\nproperties and functions:\n\n```javascript\nimport EmberObject from '@ember/object';\n\nconst MyObject = EmberObject.extend({\n name: 'an object'\n});\n\no = MyObject.create();\no.get('name'); // 'an object'\n\nMyObject.reopen({\n say(msg) {\n console.log(msg);\n }\n});\n\no2 = MyObject.create();\no2.say('hello'); // logs \"hello\"\n\no.say('goodbye'); // logs \"goodbye\"\n```\n\nTo add functions and properties to the constructor itself,\nsee `reopenClass`",
|
|
15381
15428
|
"itemtype": "method",
|
|
15382
15429
|
"name": "reopen",
|
|
@@ -15388,7 +15435,7 @@
|
|
|
15388
15435
|
},
|
|
15389
15436
|
{
|
|
15390
15437
|
"file": "packages/@ember/object/core.ts",
|
|
15391
|
-
"line":
|
|
15438
|
+
"line": 860,
|
|
15392
15439
|
"description": "Augments a constructor's own properties and functions:\n\n```javascript\nimport EmberObject from '@ember/object';\n\nconst MyObject = EmberObject.extend({\n name: 'an object'\n});\n\nMyObject.reopenClass({\n canBuild: false\n});\n\nMyObject.canBuild; // false\no = MyObject.create();\n```\n\nIn other words, this creates static properties and functions for the class.\nThese are only available on the class and not on any instance of that class.\n\n```javascript\nimport EmberObject from '@ember/object';\n\nconst Person = EmberObject.extend({\n name: '',\n sayHello() {\n alert(`Hello. My name is ${this.get('name')}`);\n }\n});\n\nPerson.reopenClass({\n species: 'Homo sapiens',\n\n createPerson(name) {\n return Person.create({ name });\n }\n});\n\nlet tom = Person.create({\n name: 'Tom Dale'\n});\nlet yehuda = Person.createPerson('Yehuda Katz');\n\ntom.sayHello(); // \"Hello. My name is Tom Dale\"\nyehuda.sayHello(); // \"Hello. My name is Yehuda Katz\"\nalert(Person.species); // \"Homo sapiens\"\n```\n\nNote that `species` and `createPerson` are *not* valid on the `tom` and `yehuda`\nvariables. They are only valid on `Person`.\n\nTo add functions and properties to instances of\na constructor by extending the constructor's prototype\nsee `reopen`",
|
|
15393
15440
|
"itemtype": "method",
|
|
15394
15441
|
"name": "reopenClass",
|
|
@@ -15400,7 +15447,7 @@
|
|
|
15400
15447
|
},
|
|
15401
15448
|
{
|
|
15402
15449
|
"file": "packages/@ember/object/core.ts",
|
|
15403
|
-
"line":
|
|
15450
|
+
"line": 946,
|
|
15404
15451
|
"description": "In some cases, you may want to annotate computed properties with additional\nmetadata about how they function or what values they operate on. For\nexample, computed property functions may close over variables that are then\nno longer available for introspection.\n\nYou can pass a hash of these values to a computed property like this:\n\n```javascript\nimport { computed } from '@ember/object';\n\nperson: computed(function() {\n let personId = this.get('personId');\n return Person.create({ id: personId });\n}).meta({ type: Person })\n```\n\nOnce you've done this, you can retrieve the values saved to the computed\nproperty from your class like this:\n\n```javascript\nMyClass.metaForProperty('person');\n```\n\nThis will return the original hash that was passed to `meta()`.",
|
|
15405
15452
|
"static": 1,
|
|
15406
15453
|
"itemtype": "method",
|
|
@@ -15419,7 +15466,7 @@
|
|
|
15419
15466
|
},
|
|
15420
15467
|
{
|
|
15421
15468
|
"file": "packages/@ember/object/core.ts",
|
|
15422
|
-
"line":
|
|
15469
|
+
"line": 989,
|
|
15423
15470
|
"description": "Iterate over each computed property for the class, passing its name\nand any associated metadata (see `metaForProperty`) to the callback.",
|
|
15424
15471
|
"static": 1,
|
|
15425
15472
|
"itemtype": "method",
|
|
@@ -15443,7 +15490,7 @@
|
|
|
15443
15490
|
},
|
|
15444
15491
|
{
|
|
15445
15492
|
"file": "packages/@ember/object/core.ts",
|
|
15446
|
-
"line":
|
|
15493
|
+
"line": 1081,
|
|
15447
15494
|
"description": "Provides lookup-time type validation for injected properties.",
|
|
15448
15495
|
"access": "private",
|
|
15449
15496
|
"tagname": "",
|
|
@@ -15454,7 +15501,7 @@
|
|
|
15454
15501
|
},
|
|
15455
15502
|
{
|
|
15456
15503
|
"file": "packages/@ember/object/core.ts",
|
|
15457
|
-
"line":
|
|
15504
|
+
"line": 1102,
|
|
15458
15505
|
"description": "Returns a hash of property names and container names that injected\nproperties will lookup on the container lazily.",
|
|
15459
15506
|
"itemtype": "method",
|
|
15460
15507
|
"name": "_lazyInjections",
|
|
@@ -15469,10 +15516,12 @@
|
|
|
15469
15516
|
},
|
|
15470
15517
|
{
|
|
15471
15518
|
"file": "packages/@ember/object/evented.ts",
|
|
15472
|
-
"line":
|
|
15519
|
+
"line": 59,
|
|
15473
15520
|
"description": "Subscribes to a named event with given function.\n\n```javascript\nperson.on('didLoad', function() {\n // fired once the person has loaded\n});\n```\n\nAn optional target can be passed in as the 2nd argument that will\nbe set as the \"this\" for the callback. This is a good way to give your\nfunction access to the object triggering the event. When the target\nparameter is used the callback method becomes the third argument.",
|
|
15474
15521
|
"itemtype": "method",
|
|
15475
15522
|
"name": "on",
|
|
15523
|
+
"deprecated": true,
|
|
15524
|
+
"deprecationMessage": "Use native JavaScript events or a dedicated event library instead.",
|
|
15476
15525
|
"params": [
|
|
15477
15526
|
{
|
|
15478
15527
|
"name": "name",
|
|
@@ -15501,10 +15550,12 @@
|
|
|
15501
15550
|
},
|
|
15502
15551
|
{
|
|
15503
15552
|
"file": "packages/@ember/object/evented.ts",
|
|
15504
|
-
"line":
|
|
15553
|
+
"line": 87,
|
|
15505
15554
|
"description": "Subscribes a function to a named event and then cancels the subscription\nafter the first time the event is triggered. It is good to use ``one`` when\nyou only care about the first time an event has taken place.\n\nThis function takes an optional 2nd argument that will become the \"this\"\nvalue for the callback. When the target parameter is used the callback method\nbecomes the third argument.",
|
|
15506
15555
|
"itemtype": "method",
|
|
15507
15556
|
"name": "one",
|
|
15557
|
+
"deprecated": true,
|
|
15558
|
+
"deprecationMessage": "Use native JavaScript events or a dedicated event library instead.",
|
|
15508
15559
|
"params": [
|
|
15509
15560
|
{
|
|
15510
15561
|
"name": "name",
|
|
@@ -15533,10 +15584,12 @@
|
|
|
15533
15584
|
},
|
|
15534
15585
|
{
|
|
15535
15586
|
"file": "packages/@ember/object/evented.ts",
|
|
15536
|
-
"line":
|
|
15587
|
+
"line": 110,
|
|
15537
15588
|
"description": "Triggers a named event for the object. Any additional arguments\nwill be passed as parameters to the functions that are subscribed to the\nevent.\n\n```javascript\nperson.on('didEat', function(food) {\n console.log('person ate some ' + food);\n});\n\nperson.trigger('didEat', 'broccoli');\n\n// outputs: person ate some broccoli\n```",
|
|
15538
15589
|
"itemtype": "method",
|
|
15539
15590
|
"name": "trigger",
|
|
15591
|
+
"deprecated": true,
|
|
15592
|
+
"deprecationMessage": "Use native JavaScript events or a dedicated event library instead.",
|
|
15540
15593
|
"params": [
|
|
15541
15594
|
{
|
|
15542
15595
|
"name": "name",
|
|
@@ -15556,10 +15609,12 @@
|
|
|
15556
15609
|
},
|
|
15557
15610
|
{
|
|
15558
15611
|
"file": "packages/@ember/object/evented.ts",
|
|
15559
|
-
"line":
|
|
15612
|
+
"line": 132,
|
|
15560
15613
|
"description": "Cancels subscription for given name, target, and method.",
|
|
15561
15614
|
"itemtype": "method",
|
|
15562
15615
|
"name": "off",
|
|
15616
|
+
"deprecated": true,
|
|
15617
|
+
"deprecationMessage": "Use native JavaScript events or a dedicated event library instead.",
|
|
15563
15618
|
"params": [
|
|
15564
15619
|
{
|
|
15565
15620
|
"name": "name",
|
|
@@ -15587,10 +15642,12 @@
|
|
|
15587
15642
|
},
|
|
15588
15643
|
{
|
|
15589
15644
|
"file": "packages/@ember/object/evented.ts",
|
|
15590
|
-
"line":
|
|
15645
|
+
"line": 149,
|
|
15591
15646
|
"description": "Checks to see if object has any subscriptions for named event.",
|
|
15592
15647
|
"itemtype": "method",
|
|
15593
15648
|
"name": "has",
|
|
15649
|
+
"deprecated": true,
|
|
15650
|
+
"deprecationMessage": "Use native JavaScript events or a dedicated event library instead.",
|
|
15594
15651
|
"params": [
|
|
15595
15652
|
{
|
|
15596
15653
|
"name": "name",
|
|
@@ -15660,7 +15717,7 @@
|
|
|
15660
15717
|
},
|
|
15661
15718
|
{
|
|
15662
15719
|
"file": "packages/@ember/object/mixin.ts",
|
|
15663
|
-
"line":
|
|
15720
|
+
"line": 442,
|
|
15664
15721
|
"itemtype": "method",
|
|
15665
15722
|
"name": "mixin",
|
|
15666
15723
|
"params": [
|
|
@@ -15684,43 +15741,43 @@
|
|
|
15684
15741
|
},
|
|
15685
15742
|
{
|
|
15686
15743
|
"file": "packages/@ember/object/mixin.ts",
|
|
15687
|
-
"line":
|
|
15744
|
+
"line": 539,
|
|
15688
15745
|
"class": "Mixin",
|
|
15689
15746
|
"module": "@ember/object/mixin"
|
|
15690
15747
|
},
|
|
15691
15748
|
{
|
|
15692
15749
|
"file": "packages/@ember/object/mixin.ts",
|
|
15693
|
-
"line":
|
|
15750
|
+
"line": 542,
|
|
15694
15751
|
"class": "Mixin",
|
|
15695
15752
|
"module": "@ember/object/mixin"
|
|
15696
15753
|
},
|
|
15697
15754
|
{
|
|
15698
15755
|
"file": "packages/@ember/object/mixin.ts",
|
|
15699
|
-
"line":
|
|
15756
|
+
"line": 545,
|
|
15700
15757
|
"class": "Mixin",
|
|
15701
15758
|
"module": "@ember/object/mixin"
|
|
15702
15759
|
},
|
|
15703
15760
|
{
|
|
15704
15761
|
"file": "packages/@ember/object/mixin.ts",
|
|
15705
|
-
"line":
|
|
15762
|
+
"line": 548,
|
|
15706
15763
|
"class": "Mixin",
|
|
15707
15764
|
"module": "@ember/object/mixin"
|
|
15708
15765
|
},
|
|
15709
15766
|
{
|
|
15710
15767
|
"file": "packages/@ember/object/mixin.ts",
|
|
15711
|
-
"line":
|
|
15768
|
+
"line": 551,
|
|
15712
15769
|
"class": "Mixin",
|
|
15713
15770
|
"module": "@ember/object/mixin"
|
|
15714
15771
|
},
|
|
15715
15772
|
{
|
|
15716
15773
|
"file": "packages/@ember/object/mixin.ts",
|
|
15717
|
-
"line":
|
|
15774
|
+
"line": 556,
|
|
15718
15775
|
"class": "Mixin",
|
|
15719
15776
|
"module": "@ember/object/mixin"
|
|
15720
15777
|
},
|
|
15721
15778
|
{
|
|
15722
15779
|
"file": "packages/@ember/object/mixin.ts",
|
|
15723
|
-
"line":
|
|
15780
|
+
"line": 574,
|
|
15724
15781
|
"itemtype": "method",
|
|
15725
15782
|
"name": "create",
|
|
15726
15783
|
"static": 1,
|
|
@@ -15738,13 +15795,19 @@
|
|
|
15738
15795
|
},
|
|
15739
15796
|
{
|
|
15740
15797
|
"file": "packages/@ember/object/mixin.ts",
|
|
15741
|
-
"line":
|
|
15798
|
+
"line": 589,
|
|
15742
15799
|
"class": "@ember/object/mixin",
|
|
15743
15800
|
"module": "@ember/object/mixin"
|
|
15744
15801
|
},
|
|
15745
15802
|
{
|
|
15746
15803
|
"file": "packages/@ember/object/mixin.ts",
|
|
15747
|
-
"line":
|
|
15804
|
+
"line": 598,
|
|
15805
|
+
"class": "@ember/object/mixin",
|
|
15806
|
+
"module": "@ember/object/mixin"
|
|
15807
|
+
},
|
|
15808
|
+
{
|
|
15809
|
+
"file": "packages/@ember/object/mixin.ts",
|
|
15810
|
+
"line": 616,
|
|
15748
15811
|
"itemtype": "method",
|
|
15749
15812
|
"name": "reopen",
|
|
15750
15813
|
"params": [
|
|
@@ -15762,7 +15825,7 @@
|
|
|
15762
15825
|
},
|
|
15763
15826
|
{
|
|
15764
15827
|
"file": "packages/@ember/object/mixin.ts",
|
|
15765
|
-
"line":
|
|
15828
|
+
"line": 639,
|
|
15766
15829
|
"itemtype": "method",
|
|
15767
15830
|
"name": "apply",
|
|
15768
15831
|
"params": [
|
|
@@ -15782,13 +15845,13 @@
|
|
|
15782
15845
|
},
|
|
15783
15846
|
{
|
|
15784
15847
|
"file": "packages/@ember/object/mixin.ts",
|
|
15785
|
-
"line":
|
|
15848
|
+
"line": 655,
|
|
15786
15849
|
"class": "@ember/object/mixin",
|
|
15787
15850
|
"module": "@ember/object/mixin"
|
|
15788
15851
|
},
|
|
15789
15852
|
{
|
|
15790
15853
|
"file": "packages/@ember/object/mixin.ts",
|
|
15791
|
-
"line":
|
|
15854
|
+
"line": 660,
|
|
15792
15855
|
"itemtype": "method",
|
|
15793
15856
|
"name": "detect",
|
|
15794
15857
|
"params": [
|
|
@@ -15809,25 +15872,25 @@
|
|
|
15809
15872
|
},
|
|
15810
15873
|
{
|
|
15811
15874
|
"file": "packages/@ember/object/mixin.ts",
|
|
15812
|
-
"line":
|
|
15875
|
+
"line": 681,
|
|
15813
15876
|
"class": "@ember/object/mixin",
|
|
15814
15877
|
"module": "@ember/object/mixin"
|
|
15815
15878
|
},
|
|
15816
15879
|
{
|
|
15817
15880
|
"file": "packages/@ember/object/mixin.ts",
|
|
15818
|
-
"line":
|
|
15881
|
+
"line": 688,
|
|
15819
15882
|
"class": "@ember/object/mixin",
|
|
15820
15883
|
"module": "@ember/object/mixin"
|
|
15821
15884
|
},
|
|
15822
15885
|
{
|
|
15823
15886
|
"file": "packages/@ember/object/mixin.ts",
|
|
15824
|
-
"line":
|
|
15887
|
+
"line": 695,
|
|
15825
15888
|
"class": "@ember/object/mixin",
|
|
15826
15889
|
"module": "@ember/object/mixin"
|
|
15827
15890
|
},
|
|
15828
15891
|
{
|
|
15829
15892
|
"file": "packages/@ember/object/observable.ts",
|
|
15830
|
-
"line":
|
|
15893
|
+
"line": 97,
|
|
15831
15894
|
"description": "Retrieves the value of a property from the object.\n\nThis method is usually similar to using `object[keyName]` or `object.keyName`,\nhowever it supports both computed properties and the unknownProperty\nhandler.\n\nBecause `get` unifies the syntax for accessing all these kinds\nof properties, it can make many refactorings easier, such as replacing a\nsimple property with a computed property, or vice versa.\n\n### Computed Properties\n\nComputed properties are methods defined with the `property` modifier\ndeclared at the end, such as:\n\n```javascript\nimport { computed } from '@ember/object';\n\nfullName: computed('firstName', 'lastName', function() {\n return this.get('firstName') + ' ' + this.get('lastName');\n})\n```\n\nWhen you call `get` on a computed property, the function will be\ncalled and the return value will be returned instead of the function\nitself.\n\n### Unknown Properties\n\nLikewise, if you try to call `get` on a property whose value is\n`undefined`, the `unknownProperty()` method will be called on the object.\nIf this method returns any value other than `undefined`, it will be returned\ninstead. This allows you to implement \"virtual\" properties that are\nnot defined upfront.",
|
|
15832
15895
|
"itemtype": "method",
|
|
15833
15896
|
"name": "get",
|
|
@@ -15849,7 +15912,7 @@
|
|
|
15849
15912
|
},
|
|
15850
15913
|
{
|
|
15851
15914
|
"file": "packages/@ember/object/observable.ts",
|
|
15852
|
-
"line":
|
|
15915
|
+
"line": 141,
|
|
15853
15916
|
"description": "To get the values of multiple properties at once, call `getProperties`\nwith a list of strings or an array:\n\n```javascript\nrecord.getProperties('firstName', 'lastName', 'zipCode');\n// { firstName: 'John', lastName: 'Doe', zipCode: '10011' }\n```\n\nis equivalent to:\n\n```javascript\nrecord.getProperties(['firstName', 'lastName', 'zipCode']);\n// { firstName: 'John', lastName: 'Doe', zipCode: '10011' }\n```",
|
|
15854
15917
|
"itemtype": "method",
|
|
15855
15918
|
"name": "getProperties",
|
|
@@ -15871,7 +15934,7 @@
|
|
|
15871
15934
|
},
|
|
15872
15935
|
{
|
|
15873
15936
|
"file": "packages/@ember/object/observable.ts",
|
|
15874
|
-
"line":
|
|
15937
|
+
"line": 168,
|
|
15875
15938
|
"description": "Sets the provided key or path to the value.\n\n```javascript\nrecord.set(\"key\", value);\n```\n\nThis method is generally very similar to calling `object[\"key\"] = value` or\n`object.key = value`, except that it provides support for computed\nproperties, the `setUnknownProperty()` method and property observers.\n\n### Computed Properties\n\nIf you try to set a value on a key that has a computed property handler\ndefined (see the `get()` method for an example), then `set()` will call\nthat method, passing both the value and key instead of simply changing\nthe value itself. This is useful for those times when you need to\nimplement a property that is composed of one or more member\nproperties.\n\n### Unknown Properties\n\nIf you try to set a value on a key that is undefined in the target\nobject, then the `setUnknownProperty()` handler will be called instead. This\ngives you an opportunity to implement complex \"virtual\" properties that\nare not predefined on the object. If `setUnknownProperty()` returns\nundefined, then `set()` will simply set the value on the object.\n\n### Property Observers\n\nIn addition to changing the property, `set()` will also register a property\nchange with the object. Unless you have placed this call inside of a\n`beginPropertyChanges()` and `endPropertyChanges(),` any \"local\" observers\n(i.e. observer methods declared on the same object), will be called\nimmediately. Any \"remote\" observers (i.e. observer methods declared on\nanother object) will be placed in a queue and called at a later time in a\ncoalesced manner.",
|
|
15876
15939
|
"itemtype": "method",
|
|
15877
15940
|
"name": "set",
|
|
@@ -15898,7 +15961,7 @@
|
|
|
15898
15961
|
},
|
|
15899
15962
|
{
|
|
15900
15963
|
"file": "packages/@ember/object/observable.ts",
|
|
15901
|
-
"line":
|
|
15964
|
+
"line": 216,
|
|
15902
15965
|
"description": "Sets a list of properties at once. These properties are set inside\na single `beginPropertyChanges` and `endPropertyChanges` batch, so\nobservers will be buffered.\n\n```javascript\nrecord.setProperties({ firstName: 'Charles', lastName: 'Jolley' });\n```",
|
|
15903
15966
|
"itemtype": "method",
|
|
15904
15967
|
"name": "setProperties",
|
|
@@ -15920,7 +15983,7 @@
|
|
|
15920
15983
|
},
|
|
15921
15984
|
{
|
|
15922
15985
|
"file": "packages/@ember/object/observable.ts",
|
|
15923
|
-
"line":
|
|
15986
|
+
"line": 233,
|
|
15924
15987
|
"description": "Convenience method to call `propertyWillChange` and `propertyDidChange` in\nsuccession.\n\nNotify the observer system that a property has just changed.\n\nSometimes you need to change a value directly or indirectly without\nactually calling `get()` or `set()` on it. In this case, you can use this\nmethod instead. Calling this method will notify all observers that the\nproperty has potentially changed value.",
|
|
15925
15988
|
"itemtype": "method",
|
|
15926
15989
|
"name": "notifyPropertyChange",
|
|
@@ -15942,7 +16005,7 @@
|
|
|
15942
16005
|
},
|
|
15943
16006
|
{
|
|
15944
16007
|
"file": "packages/@ember/object/observable.ts",
|
|
15945
|
-
"line":
|
|
16008
|
+
"line": 251,
|
|
15946
16009
|
"description": "Adds an observer on a property.\n\nThis is the core method used to register an observer for a property.\n\nOnce you call this method, any time the key's value is set, your observer\nwill be notified. Note that the observers are triggered any time the\nvalue is set, regardless of whether it has actually changed. Your\nobserver should be prepared to handle that.\n\nThere are two common invocation patterns for `.addObserver()`:\n\n- Passing two arguments:\n - the name of the property to observe (as a string)\n - the function to invoke (an actual function)\n- Passing three arguments:\n - the name of the property to observe (as a string)\n - the target object (will be used to look up and invoke a\n function on)\n - the name of the function to invoke on the target object\n (as a string).\n\n```app/components/my-component.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n init() {\n this._super(...arguments);\n\n // the following are equivalent:\n\n // using three arguments\n this.addObserver('foo', this, 'fooDidChange');\n\n // using two arguments\n this.addObserver('foo', (...args) => {\n this.fooDidChange(...args);\n });\n },\n\n fooDidChange() {\n // your custom logic code\n }\n});\n```\n\n### Observer Methods\n\nObserver methods have the following signature:\n\n```app/components/my-component.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n init() {\n this._super(...arguments);\n this.addObserver('foo', this, 'fooDidChange');\n },\n\n fooDidChange(sender, key, value, rev) {\n // your code\n }\n});\n```\n\nThe `sender` is the object that changed. The `key` is the property that\nchanges. The `value` property is currently reserved and unused. The `rev`\nis the last property revision of the object when it changed, which you can\nuse to detect if the key value has really changed or not.\n\nUsually you will not need the value or revision parameters at\nthe end. In this case, it is common to write observer methods that take\nonly a sender and key value as parameters or, if you aren't interested in\nany of these values, to write an observer that has no parameters at all.\n\nWhile observers are still supported, there are [plans to deprecate them](https://github.com/emberjs/rfcs/pull/1115)\nSee the [in-progress deprecation guide](https://github.com/ember-learn/deprecation-app/pull/1407)\nfor guidance on how to avoid using observers.",
|
|
15947
16010
|
"itemtype": "method",
|
|
15948
16011
|
"name": "addObserver",
|
|
@@ -15979,7 +16042,7 @@
|
|
|
15979
16042
|
},
|
|
15980
16043
|
{
|
|
15981
16044
|
"file": "packages/@ember/object/observable.ts",
|
|
15982
|
-
"line":
|
|
16045
|
+
"line": 341,
|
|
15983
16046
|
"description": "Remove an observer you have previously registered on this object. Pass\nthe same key, target, and method you passed to `addObserver()` and your\ntarget will no longer receive notifications.",
|
|
15984
16047
|
"itemtype": "method",
|
|
15985
16048
|
"name": "removeObserver",
|
|
@@ -16016,7 +16079,7 @@
|
|
|
16016
16079
|
},
|
|
16017
16080
|
{
|
|
16018
16081
|
"file": "packages/@ember/object/observable.ts",
|
|
16019
|
-
"line":
|
|
16082
|
+
"line": 362,
|
|
16020
16083
|
"description": "Set the value of a property to the current value plus some amount.\n\n```javascript\nperson.incrementProperty('age');\nteam.incrementProperty('score', 2);\n```",
|
|
16021
16084
|
"itemtype": "method",
|
|
16022
16085
|
"name": "incrementProperty",
|
|
@@ -16043,7 +16106,7 @@
|
|
|
16043
16106
|
},
|
|
16044
16107
|
{
|
|
16045
16108
|
"file": "packages/@ember/object/observable.ts",
|
|
16046
|
-
"line":
|
|
16109
|
+
"line": 379,
|
|
16047
16110
|
"description": "Set the value of a property to the current value minus some amount.\n\n```javascript\nplayer.decrementProperty('lives');\norc.decrementProperty('health', 5);\n```",
|
|
16048
16111
|
"itemtype": "method",
|
|
16049
16112
|
"name": "decrementProperty",
|
|
@@ -16070,7 +16133,7 @@
|
|
|
16070
16133
|
},
|
|
16071
16134
|
{
|
|
16072
16135
|
"file": "packages/@ember/object/observable.ts",
|
|
16073
|
-
"line":
|
|
16136
|
+
"line": 396,
|
|
16074
16137
|
"description": "Set the value of a boolean property to the opposite of its\ncurrent value.\n\n```javascript\nstarship.toggleProperty('warpDriveEngaged');\n```",
|
|
16075
16138
|
"itemtype": "method",
|
|
16076
16139
|
"name": "toggleProperty",
|
|
@@ -16092,7 +16155,7 @@
|
|
|
16092
16155
|
},
|
|
16093
16156
|
{
|
|
16094
16157
|
"file": "packages/@ember/object/observable.ts",
|
|
16095
|
-
"line":
|
|
16158
|
+
"line": 411,
|
|
16096
16159
|
"description": "Returns the cached value of a computed property, if it exists.\nThis allows you to inspect the value of a computed property\nwithout accidentally invoking it if it is intended to be\ngenerated lazily.",
|
|
16097
16160
|
"itemtype": "method",
|
|
16098
16161
|
"name": "cacheFor",
|
|
@@ -16114,7 +16177,7 @@
|
|
|
16114
16177
|
},
|
|
16115
16178
|
{
|
|
16116
16179
|
"file": "packages/@ember/object/observable.ts",
|
|
16117
|
-
"line":
|
|
16180
|
+
"line": 441,
|
|
16118
16181
|
"description": "Begins a grouping of property changes.\n\nYou can use this method to group property changes so that notifications\nwill not be sent until the changes are finished. If you plan to make a\nlarge number of changes to an object at one time, you should call this\nmethod at the beginning of the changes to begin deferring change\nnotifications. When you are done making changes, call\n`endPropertyChanges()` to deliver the deferred change notifications and end\ndeferring.",
|
|
16119
16182
|
"itemtype": "method",
|
|
16120
16183
|
"name": "beginPropertyChanges",
|
|
@@ -16129,7 +16192,7 @@
|
|
|
16129
16192
|
},
|
|
16130
16193
|
{
|
|
16131
16194
|
"file": "packages/@ember/object/observable.ts",
|
|
16132
|
-
"line":
|
|
16195
|
+
"line": 461,
|
|
16133
16196
|
"description": "Ends a grouping of property changes.\n\nYou can use this method to group property changes so that notifications\nwill not be sent until the changes are finished. If you plan to make a\nlarge number of changes to an object at one time, you should call\n`beginPropertyChanges()` at the beginning of the changes to defer change\nnotifications. When you are done making changes, call this method to\ndeliver the deferred change notifications and end deferring.",
|
|
16134
16197
|
"itemtype": "method",
|
|
16135
16198
|
"name": "endPropertyChanges",
|
|
@@ -16144,7 +16207,7 @@
|
|
|
16144
16207
|
},
|
|
16145
16208
|
{
|
|
16146
16209
|
"file": "packages/@ember/object/observable.ts",
|
|
16147
|
-
"line":
|
|
16210
|
+
"line": 505,
|
|
16148
16211
|
"description": "Returns `true` if the object currently has observers registered for a\nparticular key. You can use this method to potentially defer performing\nan expensive action until someone begins observing a particular property\non the object.",
|
|
16149
16212
|
"itemtype": "method",
|
|
16150
16213
|
"name": "hasObserverFor",
|
|
@@ -16166,7 +16229,7 @@
|
|
|
16166
16229
|
},
|
|
16167
16230
|
{
|
|
16168
16231
|
"file": "packages/@ember/object/promise-proxy-mixin.ts",
|
|
16169
|
-
"line":
|
|
16232
|
+
"line": 115,
|
|
16170
16233
|
"description": "If the proxied promise is rejected this will contain the reason\nprovided.",
|
|
16171
16234
|
"itemtype": "property",
|
|
16172
16235
|
"name": "reason",
|
|
@@ -16178,7 +16241,7 @@
|
|
|
16178
16241
|
},
|
|
16179
16242
|
{
|
|
16180
16243
|
"file": "packages/@ember/object/promise-proxy-mixin.ts",
|
|
16181
|
-
"line":
|
|
16244
|
+
"line": 125,
|
|
16182
16245
|
"description": "Once the proxied promise has settled this will become `false`.",
|
|
16183
16246
|
"itemtype": "property",
|
|
16184
16247
|
"name": "isPending",
|
|
@@ -16190,7 +16253,7 @@
|
|
|
16190
16253
|
},
|
|
16191
16254
|
{
|
|
16192
16255
|
"file": "packages/@ember/object/promise-proxy-mixin.ts",
|
|
16193
|
-
"line":
|
|
16256
|
+
"line": 133,
|
|
16194
16257
|
"description": "Once the proxied promise has settled this will become `true`.",
|
|
16195
16258
|
"itemtype": "property",
|
|
16196
16259
|
"name": "isSettled",
|
|
@@ -16202,7 +16265,7 @@
|
|
|
16202
16265
|
},
|
|
16203
16266
|
{
|
|
16204
16267
|
"file": "packages/@ember/object/promise-proxy-mixin.ts",
|
|
16205
|
-
"line":
|
|
16268
|
+
"line": 142,
|
|
16206
16269
|
"description": "Will become `true` if the proxied promise is rejected.",
|
|
16207
16270
|
"itemtype": "property",
|
|
16208
16271
|
"name": "isRejected",
|
|
@@ -16214,7 +16277,7 @@
|
|
|
16214
16277
|
},
|
|
16215
16278
|
{
|
|
16216
16279
|
"file": "packages/@ember/object/promise-proxy-mixin.ts",
|
|
16217
|
-
"line":
|
|
16280
|
+
"line": 150,
|
|
16218
16281
|
"description": "Will become `true` if the proxied promise is fulfilled.",
|
|
16219
16282
|
"itemtype": "property",
|
|
16220
16283
|
"name": "isFulfilled",
|
|
@@ -16226,7 +16289,7 @@
|
|
|
16226
16289
|
},
|
|
16227
16290
|
{
|
|
16228
16291
|
"file": "packages/@ember/object/promise-proxy-mixin.ts",
|
|
16229
|
-
"line":
|
|
16292
|
+
"line": 159,
|
|
16230
16293
|
"description": "The promise whose fulfillment value is being proxied by this object.\n\nThis property must be specified upon creation, and should not be\nchanged once created.\n\nExample:\n\n```javascript\nimport ObjectProxy from '@ember/object/proxy';\nimport PromiseProxyMixin from '@ember/object/promise-proxy-mixin';\n\nObjectProxy.extend(PromiseProxyMixin).create({\n promise: <thenable>\n});\n```",
|
|
16231
16294
|
"itemtype": "property",
|
|
16232
16295
|
"name": "promise",
|
|
@@ -16237,7 +16300,7 @@
|
|
|
16237
16300
|
},
|
|
16238
16301
|
{
|
|
16239
16302
|
"file": "packages/@ember/object/promise-proxy-mixin.ts",
|
|
16240
|
-
"line":
|
|
16303
|
+
"line": 181,
|
|
16241
16304
|
"description": "An alias to the proxied promise's `then`.\n\nSee RSVP.Promise.then.",
|
|
16242
16305
|
"itemtype": "method",
|
|
16243
16306
|
"name": "then",
|
|
@@ -16259,7 +16322,7 @@
|
|
|
16259
16322
|
},
|
|
16260
16323
|
{
|
|
16261
16324
|
"file": "packages/@ember/object/promise-proxy-mixin.ts",
|
|
16262
|
-
"line":
|
|
16325
|
+
"line": 192,
|
|
16263
16326
|
"description": "An alias to the proxied promise's `catch`.\n\nSee RSVP.Promise.catch.",
|
|
16264
16327
|
"itemtype": "method",
|
|
16265
16328
|
"name": "catch",
|
|
@@ -16282,7 +16345,7 @@
|
|
|
16282
16345
|
},
|
|
16283
16346
|
{
|
|
16284
16347
|
"file": "packages/@ember/object/promise-proxy-mixin.ts",
|
|
16285
|
-
"line":
|
|
16348
|
+
"line": 204,
|
|
16286
16349
|
"description": "An alias to the proxied promise's `finally`.\n\nSee RSVP.Promise.finally.",
|
|
16287
16350
|
"itemtype": "method",
|
|
16288
16351
|
"name": "finally",
|
|
@@ -17332,7 +17395,7 @@
|
|
|
17332
17395
|
},
|
|
17333
17396
|
{
|
|
17334
17397
|
"file": "packages/@ember/routing/route.ts",
|
|
17335
|
-
"line":
|
|
17398
|
+
"line": 95,
|
|
17336
17399
|
"description": "The `willTransition` action is fired at the beginning of any\nattempted transition with a `Transition` object as the sole\nargument. This action can be used for aborting, redirecting,\nor decorating the transition from the currently active routes.\n\nA good example is preventing navigation when a form is\nhalf-filled out:\n\n```app/routes/contact-form.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class ContactFormRoute extends Route {\n @action\n willTransition(transition) {\n if (this.controller.get('userHasEnteredData')) {\n this.controller.displayNavigationConfirm();\n transition.abort();\n }\n }\n}\n```\n\nYou can also redirect elsewhere by calling\n`this.router.transitionTo('elsewhere')` from within `willTransition`.\nNote that `willTransition` will not be fired for the\nredirecting `transitionTo`, since `willTransition` doesn't\nfire when there is already a transition underway. If you want\nsubsequent `willTransition` actions to fire for the redirecting\ntransition, you must first explicitly call\n`transition.abort()`.\n\nTo allow the `willTransition` event to continue bubbling to the parent\nroute, use `return true;`. When the `willTransition` method has a\nreturn value of `true` then the parent route's `willTransition` method\nwill be fired, enabling \"bubbling\" behavior for the event.",
|
|
17337
17400
|
"itemtype": "event",
|
|
17338
17401
|
"name": "willTransition",
|
|
@@ -17351,7 +17414,7 @@
|
|
|
17351
17414
|
},
|
|
17352
17415
|
{
|
|
17353
17416
|
"file": "packages/@ember/routing/route.ts",
|
|
17354
|
-
"line":
|
|
17417
|
+
"line": 140,
|
|
17355
17418
|
"description": "The `didTransition` action is fired after a transition has\nsuccessfully been completed. This occurs after the normal model\nhooks (`beforeModel`, `model`, `afterModel`, `setupController`)\nhave resolved. The `didTransition` action has no arguments,\nhowever, it can be useful for tracking page views or resetting\nstate on the controller.\n\n```app/routes/login.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class LoginRoute extends Route {\n @action\n didTransition() {\n // your code there\n return true; // Bubble the didTransition event\n }\n}\n```",
|
|
17356
17419
|
"itemtype": "event",
|
|
17357
17420
|
"name": "didTransition",
|
|
@@ -17363,7 +17426,7 @@
|
|
|
17363
17426
|
},
|
|
17364
17427
|
{
|
|
17365
17428
|
"file": "packages/@ember/routing/route.ts",
|
|
17366
|
-
"line":
|
|
17429
|
+
"line": 167,
|
|
17367
17430
|
"description": "The `loading` action is fired on the route when a route's `model`\nhook returns a promise that is not already resolved. The current\n`Transition` object is the first parameter and the route that\ntriggered the loading event is the second parameter.\n\n```app/routes/application.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class ApplicationRoute extends Route {\n @action\n loading(transition, route) {\n let controller = this.controllerFor('foo');\n\n // The controller may not be instantiated when initially loading\n if (controller) {\n controller.currentlyLoading = true;\n\n transition.finally(function() {\n controller.currentlyLoading = false;\n });\n }\n }\n}\n```",
|
|
17368
17431
|
"itemtype": "event",
|
|
17369
17432
|
"name": "loading",
|
|
@@ -17387,7 +17450,7 @@
|
|
|
17387
17450
|
},
|
|
17388
17451
|
{
|
|
17389
17452
|
"file": "packages/@ember/routing/route.ts",
|
|
17390
|
-
"line":
|
|
17453
|
+
"line": 202,
|
|
17391
17454
|
"description": "When attempting to transition into a route, any of the hooks\nmay return a promise that rejects, at which point an `error`\naction will be fired on the partially-entered routes, allowing\nfor per-route error handling logic, or shared error handling\nlogic defined on a parent route.\n\nHere is an example of an error handler that will be invoked\nfor rejected promises from the various hooks on the route,\nas well as any unhandled errors from child routes:\n\n```app/routes/admin.js\nimport { reject } from 'rsvp';\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\n\nexport default class AdminRoute extends Route {\n @service router;\n\n beforeModel() {\n return reject('bad things!');\n }\n\n @action\n error(error, transition) {\n // Assuming we got here due to the error in `beforeModel`,\n // we can expect that error === \"bad things!\",\n // but a promise model rejecting would also\n // call this hook, as would any errors encountered\n // in `afterModel`.\n\n // The `error` hook is also provided the failed\n // `transition`, which can be stored and later\n // `.retry()`d if desired.\n\n this.router.transitionTo('login');\n }\n}\n```\n\n`error` actions that bubble up all the way to `ApplicationRoute`\nwill fire a default error handler that logs the error. You can\nspecify your own global default error handler by overriding the\n`error` handler on `ApplicationRoute`:\n\n```app/routes/application.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class ApplicationRoute extends Route {\n @action\n error(error, transition) {\n this.controllerFor('banner').displayError(error.message);\n }\n}\n```",
|
|
17392
17455
|
"itemtype": "event",
|
|
17393
17456
|
"name": "error",
|
|
@@ -17411,31 +17474,31 @@
|
|
|
17411
17474
|
},
|
|
17412
17475
|
{
|
|
17413
17476
|
"file": "packages/@ember/routing/route.ts",
|
|
17414
|
-
"line":
|
|
17477
|
+
"line": 281,
|
|
17415
17478
|
"class": "Route",
|
|
17416
17479
|
"module": "@ember/routing/route"
|
|
17417
17480
|
},
|
|
17418
17481
|
{
|
|
17419
17482
|
"file": "packages/@ember/routing/route.ts",
|
|
17420
|
-
"line":
|
|
17483
|
+
"line": 283,
|
|
17421
17484
|
"class": "Route",
|
|
17422
17485
|
"module": "@ember/routing/route"
|
|
17423
17486
|
},
|
|
17424
17487
|
{
|
|
17425
17488
|
"file": "packages/@ember/routing/route.ts",
|
|
17426
|
-
"line":
|
|
17489
|
+
"line": 286,
|
|
17427
17490
|
"class": "Route",
|
|
17428
17491
|
"module": "@ember/routing/route"
|
|
17429
17492
|
},
|
|
17430
17493
|
{
|
|
17431
17494
|
"file": "packages/@ember/routing/route.ts",
|
|
17432
|
-
"line":
|
|
17495
|
+
"line": 288,
|
|
17433
17496
|
"class": "Route",
|
|
17434
17497
|
"module": "@ember/routing/route"
|
|
17435
17498
|
},
|
|
17436
17499
|
{
|
|
17437
17500
|
"file": "packages/@ember/routing/route.ts",
|
|
17438
|
-
"line":
|
|
17501
|
+
"line": 310,
|
|
17439
17502
|
"description": "A hook you can implement to convert the route's model into parameters\nfor the URL.\n\n```app/router.js\n// ...\n\nRouter.map(function() {\n this.route('post', { path: '/posts/:post_id' });\n});\n\n```\n\n```app/routes/post.js\nimport Route from '@ember/routing/route';\n\nexport default class PostRoute extends Route {\n model({ post_id }) {\n // the server returns `{ id: 12 }`\n return fetch(`/posts/${post_id}`;\n }\n\n serialize(model) {\n // this will make the URL `/posts/12`\n return { post_id: model.id };\n }\n}\n```\n\nThe default `serialize` method will insert the model's `id` into the\nroute's dynamic segment (in this case, `:post_id`) if the segment contains '_id'.\nIf the route has multiple dynamic segments or does not contain '_id', `serialize`\nwill return `getProperties(model, params)`\n\nThis method is called when `transitionTo` is called with a context\nin order to populate the URL.",
|
|
17440
17503
|
"itemtype": "method",
|
|
17441
17504
|
"name": "serialize",
|
|
@@ -17463,7 +17526,7 @@
|
|
|
17463
17526
|
},
|
|
17464
17527
|
{
|
|
17465
17528
|
"file": "packages/@ember/routing/route.ts",
|
|
17466
|
-
"line":
|
|
17529
|
+
"line": 378,
|
|
17467
17530
|
"description": "Configuration hash for this route's queryParams. The possible\nconfiguration options and their defaults are as follows\n(assuming a query param whose controller property is `page`):\n\n```javascript\nqueryParams = {\n page: {\n // By default, controller query param properties don't\n // cause a full transition when they are changed, but\n // rather only cause the URL to update. Setting\n // `refreshModel` to true will cause an \"in-place\"\n // transition to occur, whereby the model hooks for\n // this route (and any child routes) will re-fire, allowing\n // you to reload models (e.g., from the server) using the\n // updated query param values.\n refreshModel: false,\n\n // By default, changes to controller query param properties\n // cause the URL to update via `pushState`, which means an\n // item will be added to the browser's history, allowing\n // you to use the back button to restore the app to the\n // previous state before the query param property was changed.\n // Setting `replace` to true will use `replaceState` (or its\n // hash location equivalent), which causes no browser history\n // item to be added. This options name and default value are\n // the same as the `link-to` helper's `replace` option.\n replace: false,\n\n // By default, the query param URL key is the same name as\n // the controller property name. Use `as` to specify a\n // different URL key.\n as: 'page'\n }\n};\n```",
|
|
17468
17531
|
"itemtype": "property",
|
|
17469
17532
|
"name": "queryParams",
|
|
@@ -17476,7 +17539,7 @@
|
|
|
17476
17539
|
},
|
|
17477
17540
|
{
|
|
17478
17541
|
"file": "packages/@ember/routing/route.ts",
|
|
17479
|
-
"line":
|
|
17542
|
+
"line": 431,
|
|
17480
17543
|
"description": "The name of the template to use by default when rendering this route's\ntemplate.\n\n```app/routes/posts/list.js\nimport Route from '@ember/routing/route';\n\nexport default class PostsListRoute extends Route {\n templateName = 'posts/list';\n}\n```\n\n```app/routes/posts/index.js\nimport PostsListRoute from '../posts/list';\n\nexport default class PostsIndexRoute extends PostsListRoute {};\n```\n\n```app/routes/posts/archived.js\nimport PostsListRoute from '../posts/list';\n\nexport default class PostsArchivedRoute extends PostsListRoute {};\n```",
|
|
17481
17544
|
"itemtype": "property",
|
|
17482
17545
|
"name": "templateName",
|
|
@@ -17490,7 +17553,7 @@
|
|
|
17490
17553
|
},
|
|
17491
17554
|
{
|
|
17492
17555
|
"file": "packages/@ember/routing/route.ts",
|
|
17493
|
-
"line":
|
|
17556
|
+
"line": 464,
|
|
17494
17557
|
"description": "The name of the controller to associate with this route.\n\nBy default, Ember will lookup a route's controller that matches the name\nof the route (i.e. `posts.new`). However,\nif you would like to define a specific controller to use, you can do so\nusing this property.\n\nThis is useful in many ways, as the controller specified will be:\n\n* passed to the `setupController` method.\n* used as the controller for the template being rendered by the route.\n* returned from a call to `controllerFor` for the route.",
|
|
17495
17558
|
"itemtype": "property",
|
|
17496
17559
|
"name": "controllerName",
|
|
@@ -17504,7 +17567,7 @@
|
|
|
17504
17567
|
},
|
|
17505
17568
|
{
|
|
17506
17569
|
"file": "packages/@ember/routing/route.ts",
|
|
17507
|
-
"line":
|
|
17570
|
+
"line": 487,
|
|
17508
17571
|
"description": "The controller associated with this route.\n\nExample\n\n```app/routes/form.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class FormRoute extends Route {\n @action\n willTransition(transition) {\n if (this.controller.get('userHasEnteredData') &&\n !confirm('Are you sure you want to abandon progress?')) {\n transition.abort();\n } else {\n // Bubble the `willTransition` action so that\n // parent routes can decide whether or not to abort.\n return true;\n }\n }\n}\n```",
|
|
17509
17572
|
"itemtype": "property",
|
|
17510
17573
|
"name": "controller",
|
|
@@ -17517,7 +17580,7 @@
|
|
|
17517
17580
|
},
|
|
17518
17581
|
{
|
|
17519
17582
|
"file": "packages/@ember/routing/route.ts",
|
|
17520
|
-
"line":
|
|
17583
|
+
"line": 518,
|
|
17521
17584
|
"description": "The name of the route, dot-delimited.\n\nFor example, a route found at `app/routes/posts/post.js` will have\na `routeName` of `posts.post`.",
|
|
17522
17585
|
"itemtype": "property",
|
|
17523
17586
|
"name": "routeName",
|
|
@@ -17530,7 +17593,7 @@
|
|
|
17530
17593
|
},
|
|
17531
17594
|
{
|
|
17532
17595
|
"file": "packages/@ember/routing/route.ts",
|
|
17533
|
-
"line":
|
|
17596
|
+
"line": 532,
|
|
17534
17597
|
"description": "The name of the route, dot-delimited, including the engine prefix\nif applicable.\n\nFor example, a route found at `addon/routes/posts/post.js` within an\nengine named `admin` will have a `fullRouteName` of `admin.posts.post`.",
|
|
17535
17598
|
"itemtype": "property",
|
|
17536
17599
|
"name": "fullRouteName",
|
|
@@ -17543,7 +17606,7 @@
|
|
|
17543
17606
|
},
|
|
17544
17607
|
{
|
|
17545
17608
|
"file": "packages/@ember/routing/route.ts",
|
|
17546
|
-
"line":
|
|
17609
|
+
"line": 547,
|
|
17547
17610
|
"description": "Sets the name for this route, including a fully resolved name for routes\ninside engines.",
|
|
17548
17611
|
"access": "private",
|
|
17549
17612
|
"tagname": "",
|
|
@@ -17561,7 +17624,7 @@
|
|
|
17561
17624
|
},
|
|
17562
17625
|
{
|
|
17563
17626
|
"file": "packages/@ember/routing/route.ts",
|
|
17564
|
-
"line":
|
|
17627
|
+
"line": 562,
|
|
17565
17628
|
"access": "private",
|
|
17566
17629
|
"tagname": "",
|
|
17567
17630
|
"itemtype": "method",
|
|
@@ -17571,7 +17634,7 @@
|
|
|
17571
17634
|
},
|
|
17572
17635
|
{
|
|
17573
17636
|
"file": "packages/@ember/routing/route.ts",
|
|
17574
|
-
"line":
|
|
17637
|
+
"line": 596,
|
|
17575
17638
|
"access": "private",
|
|
17576
17639
|
"tagname": "",
|
|
17577
17640
|
"itemtype": "property",
|
|
@@ -17581,7 +17644,7 @@
|
|
|
17581
17644
|
},
|
|
17582
17645
|
{
|
|
17583
17646
|
"file": "packages/@ember/routing/route.ts",
|
|
17584
|
-
"line":
|
|
17647
|
+
"line": 605,
|
|
17585
17648
|
"access": "private",
|
|
17586
17649
|
"tagname": "",
|
|
17587
17650
|
"itemtype": "method",
|
|
@@ -17591,7 +17654,7 @@
|
|
|
17591
17654
|
},
|
|
17592
17655
|
{
|
|
17593
17656
|
"file": "packages/@ember/routing/route.ts",
|
|
17594
|
-
"line":
|
|
17657
|
+
"line": 613,
|
|
17595
17658
|
"description": "Returns a hash containing the parameters of an ancestor route.\n\nYou may notice that `this.paramsFor` sometimes works when referring to a\nchild route, but this behavior should not be relied upon as only ancestor\nroutes are certain to be loaded in time.\n\nExample\n\n```app/router.js\n// ...\n\nRouter.map(function() {\n this.route('member', { path: ':name' }, function() {\n this.route('interest', { path: ':interest' });\n });\n});\n```\n\n```app/routes/member.js\nimport Route from '@ember/routing/route';\n\nexport default class MemberRoute extends Route {\n queryParams = {\n memberQp: { refreshModel: true }\n }\n}\n```\n\n```app/routes/member/interest.js\nimport Route from '@ember/routing/route';\n\nexport default class MemberInterestRoute extends Route {\n queryParams = {\n interestQp: { refreshModel: true }\n }\n\n model() {\n return this.paramsFor('member');\n }\n}\n```\n\nIf we visit `/turing/maths?memberQp=member&interestQp=interest` the model for\nthe `member.interest` route is a hash with:\n\n* `name`: `turing`\n* `memberQp`: `member`",
|
|
17596
17659
|
"itemtype": "method",
|
|
17597
17660
|
"name": "paramsFor",
|
|
@@ -17614,7 +17677,7 @@
|
|
|
17614
17677
|
},
|
|
17615
17678
|
{
|
|
17616
17679
|
"file": "packages/@ember/routing/route.ts",
|
|
17617
|
-
"line":
|
|
17680
|
+
"line": 694,
|
|
17618
17681
|
"description": "Serializes the query parameter key",
|
|
17619
17682
|
"itemtype": "method",
|
|
17620
17683
|
"name": "serializeQueryParamKey",
|
|
@@ -17632,7 +17695,7 @@
|
|
|
17632
17695
|
},
|
|
17633
17696
|
{
|
|
17634
17697
|
"file": "packages/@ember/routing/route.ts",
|
|
17635
|
-
"line":
|
|
17698
|
+
"line": 705,
|
|
17636
17699
|
"description": "Serializes value of the query parameter based on defaultValueType",
|
|
17637
17700
|
"itemtype": "method",
|
|
17638
17701
|
"name": "serializeQueryParam",
|
|
@@ -17660,7 +17723,7 @@
|
|
|
17660
17723
|
},
|
|
17661
17724
|
{
|
|
17662
17725
|
"file": "packages/@ember/routing/route.ts",
|
|
17663
|
-
"line":
|
|
17726
|
+
"line": 721,
|
|
17664
17727
|
"description": "Deserializes value of the query parameter based on defaultValueType",
|
|
17665
17728
|
"itemtype": "method",
|
|
17666
17729
|
"name": "deserializeQueryParam",
|
|
@@ -17688,7 +17751,7 @@
|
|
|
17688
17751
|
},
|
|
17689
17752
|
{
|
|
17690
17753
|
"file": "packages/@ember/routing/route.ts",
|
|
17691
|
-
"line":
|
|
17754
|
+
"line": 737,
|
|
17692
17755
|
"access": "private",
|
|
17693
17756
|
"tagname": "",
|
|
17694
17757
|
"itemtype": "property",
|
|
@@ -17698,7 +17761,7 @@
|
|
|
17698
17761
|
},
|
|
17699
17762
|
{
|
|
17700
17763
|
"file": "packages/@ember/routing/route.ts",
|
|
17701
|
-
"line":
|
|
17764
|
+
"line": 754,
|
|
17702
17765
|
"description": "A hook you can use to reset controller values either when the model\nchanges or the route is exiting.\n\n```app/routes/articles.js\nimport Route from '@ember/routing/route';\n\nexport default class ArticlesRoute extends Route {\n resetController(controller, isExiting, transition) {\n if (isExiting && transition.targetName !== 'error') {\n controller.set('page', 1);\n }\n }\n}\n```",
|
|
17703
17766
|
"itemtype": "method",
|
|
17704
17767
|
"name": "resetController",
|
|
@@ -17727,7 +17790,7 @@
|
|
|
17727
17790
|
},
|
|
17728
17791
|
{
|
|
17729
17792
|
"file": "packages/@ember/routing/route.ts",
|
|
17730
|
-
"line":
|
|
17793
|
+
"line": 784,
|
|
17731
17794
|
"access": "private",
|
|
17732
17795
|
"tagname": "",
|
|
17733
17796
|
"itemtype": "method",
|
|
@@ -17737,7 +17800,7 @@
|
|
|
17737
17800
|
},
|
|
17738
17801
|
{
|
|
17739
17802
|
"file": "packages/@ember/routing/route.ts",
|
|
17740
|
-
"line":
|
|
17803
|
+
"line": 836,
|
|
17741
17804
|
"access": "private",
|
|
17742
17805
|
"tagname": "",
|
|
17743
17806
|
"itemtype": "method",
|
|
@@ -17748,7 +17811,7 @@
|
|
|
17748
17811
|
},
|
|
17749
17812
|
{
|
|
17750
17813
|
"file": "packages/@ember/routing/route.ts",
|
|
17751
|
-
"line":
|
|
17814
|
+
"line": 850,
|
|
17752
17815
|
"access": "private",
|
|
17753
17816
|
"tagname": "",
|
|
17754
17817
|
"itemtype": "method",
|
|
@@ -17758,7 +17821,7 @@
|
|
|
17758
17821
|
},
|
|
17759
17822
|
{
|
|
17760
17823
|
"file": "packages/@ember/routing/route.ts",
|
|
17761
|
-
"line":
|
|
17824
|
+
"line": 861,
|
|
17762
17825
|
"description": "This event is triggered when the router enters the route. It is\nnot executed when the model for the route changes.\n\n```app/routes/application.js\nimport { on } from '@ember/object/evented';\nimport Route from '@ember/routing/route';\n\nexport default Route.extend({\n collectAnalytics: on('activate', function(){\n collectAnalytics();\n })\n});\n```",
|
|
17763
17826
|
"itemtype": "event",
|
|
17764
17827
|
"name": "activate",
|
|
@@ -17770,7 +17833,7 @@
|
|
|
17770
17833
|
},
|
|
17771
17834
|
{
|
|
17772
17835
|
"file": "packages/@ember/routing/route.ts",
|
|
17773
|
-
"line":
|
|
17836
|
+
"line": 881,
|
|
17774
17837
|
"description": "This event is triggered when the router completely exits this\nroute. It is not executed when the model for the route changes.\n\n```app/routes/index.js\nimport { on } from '@ember/object/evented';\nimport Route from '@ember/routing/route';\n\nexport default Route.extend({\n trackPageLeaveAnalytics: on('deactivate', function(){\n trackPageLeaveAnalytics();\n })\n});\n```",
|
|
17775
17838
|
"itemtype": "event",
|
|
17776
17839
|
"name": "deactivate",
|
|
@@ -17782,7 +17845,7 @@
|
|
|
17782
17845
|
},
|
|
17783
17846
|
{
|
|
17784
17847
|
"file": "packages/@ember/routing/route.ts",
|
|
17785
|
-
"line":
|
|
17848
|
+
"line": 901,
|
|
17786
17849
|
"description": "This hook is executed when the router completely exits this route. It is\nnot executed when the model for the route changes.",
|
|
17787
17850
|
"itemtype": "method",
|
|
17788
17851
|
"name": "deactivate",
|
|
@@ -17801,7 +17864,7 @@
|
|
|
17801
17864
|
},
|
|
17802
17865
|
{
|
|
17803
17866
|
"file": "packages/@ember/routing/route.ts",
|
|
17804
|
-
"line":
|
|
17867
|
+
"line": 912,
|
|
17805
17868
|
"description": "This hook is executed when the router enters the route. It is not executed\nwhen the model for the route changes.",
|
|
17806
17869
|
"itemtype": "method",
|
|
17807
17870
|
"name": "activate",
|
|
@@ -17820,7 +17883,7 @@
|
|
|
17820
17883
|
},
|
|
17821
17884
|
{
|
|
17822
17885
|
"file": "packages/@ember/routing/route.ts",
|
|
17823
|
-
"line":
|
|
17886
|
+
"line": 923,
|
|
17824
17887
|
"description": "Perform a synchronous transition into another route without attempting\nto resolve promises, update the URL, or abort any currently active\nasynchronous transitions (i.e. regular transitions caused by\n`transitionTo` or URL changes).\n\nThis method is handy for performing intermediate transitions on the\nway to a final destination route, and is called internally by the\ndefault implementations of the `error` and `loading` handlers.",
|
|
17825
17888
|
"itemtype": "method",
|
|
17826
17889
|
"name": "intermediateTransitionTo",
|
|
@@ -17844,7 +17907,7 @@
|
|
|
17844
17907
|
},
|
|
17845
17908
|
{
|
|
17846
17909
|
"file": "packages/@ember/routing/route.ts",
|
|
17847
|
-
"line":
|
|
17910
|
+
"line": 945,
|
|
17848
17911
|
"description": "Refresh the model on this route and any child routes, firing the\n`beforeModel`, `model`, and `afterModel` hooks in a similar fashion\nto how routes are entered when transitioning in from other route.\nThe current route params (e.g. `article_id`) will be passed in\nto the respective model hooks, and if a different model is returned,\n`setupController` and associated route hooks will re-fire as well.\n\nAn example usage of this method is re-querying the server for the\nlatest information using the same parameters as when the route\nwas first entered.\n\nNote that this will cause `model` hooks to fire even on routes\nthat were provided a model object when the route was initially\nentered.",
|
|
17849
17912
|
"itemtype": "method",
|
|
17850
17913
|
"name": "refresh",
|
|
@@ -17860,7 +17923,7 @@
|
|
|
17860
17923
|
},
|
|
17861
17924
|
{
|
|
17862
17925
|
"file": "packages/@ember/routing/route.ts",
|
|
17863
|
-
"line":
|
|
17926
|
+
"line": 971,
|
|
17864
17927
|
"description": "This hook is the entry point for router.js",
|
|
17865
17928
|
"access": "private",
|
|
17866
17929
|
"tagname": "",
|
|
@@ -17871,7 +17934,7 @@
|
|
|
17871
17934
|
},
|
|
17872
17935
|
{
|
|
17873
17936
|
"file": "packages/@ember/routing/route.ts",
|
|
17874
|
-
"line":
|
|
17937
|
+
"line": 1046,
|
|
17875
17938
|
"description": "This hook is the first of the route entry validation hooks\ncalled when an attempt is made to transition into a route\nor one of its children. It is called before `model` and\n`afterModel`, and is appropriate for cases when:\n\n1) A decision can be made to redirect elsewhere without\n needing to resolve the model first.\n2) Any async operations need to occur first before the\n model is attempted to be resolved.\n\nThis hook is provided the current `transition` attempt\nas a parameter, which can be used to `.abort()` the transition,\nsave it for a later `.retry()`, or retrieve values set\non it from a previous hook. You can also just call\n`router.transitionTo` to another route to implicitly\nabort the `transition`.\n\nYou can return a promise from this hook to pause the\ntransition until the promise resolves (or rejects). This could\nbe useful, for instance, for retrieving async code from\nthe server that is required to enter a route.",
|
|
17876
17939
|
"itemtype": "method",
|
|
17877
17940
|
"name": "beforeModel",
|
|
@@ -17894,7 +17957,7 @@
|
|
|
17894
17957
|
},
|
|
17895
17958
|
{
|
|
17896
17959
|
"file": "packages/@ember/routing/route.ts",
|
|
17897
|
-
"line":
|
|
17960
|
+
"line": 1081,
|
|
17898
17961
|
"description": "This hook is called after this route's model has resolved.\nIt follows identical async/promise semantics to `beforeModel`\nbut is provided the route's resolved model in addition to\nthe `transition`, and is therefore suited to performing\nlogic that can only take place after the model has already\nresolved.\n\n```app/routes/posts.js\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class PostsRoute extends Route {\n @service router;\n\n afterModel(posts, transition) {\n if (posts.get('length') === 1) {\n this.router.transitionTo('post.show', posts.get('firstObject'));\n }\n }\n}\n```\n\nRefer to documentation for `beforeModel` for a description\nof transition-pausing semantics when a promise is returned\nfrom this hook.",
|
|
17899
17962
|
"itemtype": "method",
|
|
17900
17963
|
"name": "afterModel",
|
|
@@ -17922,7 +17985,7 @@
|
|
|
17922
17985
|
},
|
|
17923
17986
|
{
|
|
17924
17987
|
"file": "packages/@ember/routing/route.ts",
|
|
17925
|
-
"line":
|
|
17988
|
+
"line": 1125,
|
|
17926
17989
|
"description": "A hook you can implement to optionally redirect to another route.\n\nCalling `this.router.transitionTo` from inside of the `redirect` hook will\nabort the current transition (into the route that has implemented `redirect`).\n\n`redirect` and `afterModel` behave very similarly and are\ncalled almost at the same time, but they have an important\ndistinction when calling `this.router.transitionTo` to a child route\nof the current route. From `afterModel`, this new transition\ninvalidates the current transition, causing `beforeModel`,\n`model`, and `afterModel` hooks to be called again. But the\nsame transition started from `redirect` does _not_ invalidate\nthe current transition. In other words, by the time the `redirect`\nhook has been called, both the resolved model and the attempted\nentry into this route are considered fully validated.",
|
|
17927
17990
|
"itemtype": "method",
|
|
17928
17991
|
"name": "redirect",
|
|
@@ -17946,7 +18009,7 @@
|
|
|
17946
18009
|
},
|
|
17947
18010
|
{
|
|
17948
18011
|
"file": "packages/@ember/routing/route.ts",
|
|
17949
|
-
"line":
|
|
18012
|
+
"line": 1150,
|
|
17950
18013
|
"description": "Called when the context is changed by router.js.",
|
|
17951
18014
|
"access": "private",
|
|
17952
18015
|
"tagname": "",
|
|
@@ -17957,7 +18020,7 @@
|
|
|
17957
18020
|
},
|
|
17958
18021
|
{
|
|
17959
18022
|
"file": "packages/@ember/routing/route.ts",
|
|
17960
|
-
"line":
|
|
18023
|
+
"line": 1160,
|
|
17961
18024
|
"description": "A hook you can implement to convert the URL into the model for\nthis route.\n\n```app/router.js\n// ...\n\nRouter.map(function() {\n this.route('post', { path: '/posts/:post_id' });\n});\n\nexport default Router;\n```\n\nNote that for routes with dynamic segments, this hook is not always\nexecuted. If the route is entered through a transition (e.g. when\nusing the `link-to` helper or the `transitionTo` method\nof routes), and a model context is already provided this hook\nis not called.\n\nA model context does not include a primitive string or number,\nwhich does cause the model hook to be called.\n\nRoutes without dynamic segments will always execute the model hook.\n\n```javascript\n// no dynamic segment, model hook always called\nthis.router.transitionTo('posts');\n\n// model passed in, so model hook not called\nthePost = store.findRecord('post', 1);\nthis.router.transitionTo('post', thePost);\n\n// integer passed in, model hook is called\nthis.router.transitionTo('post', 1);\n\n// model id passed in, model hook is called\n// useful for forcing the hook to execute\nthePost = store.findRecord('post', 1);\nthis.router.transitionTo('post', thePost.id);\n```\n\nThis hook follows the asynchronous/promise semantics\ndescribed in the documentation for `beforeModel`. In particular,\nif a promise returned from `model` fails, the error will be\nhandled by the `error` hook on `Route`.\n\nNote that the legacy behavior of automatically defining a model\nhook when a dynamic segment ending in `_id` is present is\n[deprecated](https://deprecations.emberjs.com/v5.x#toc_deprecate-implicit-route-model).\nYou should explicitly define a model hook whenever any segments are\npresent.\n\nExample\n\n```app/routes/post.js\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class PostRoute extends Route {\n @service store;\n\n model(params) {\n return this.store.findRecord('post', params.post_id);\n }\n}\n```",
|
|
17962
18025
|
"itemtype": "method",
|
|
17963
18026
|
"name": "model",
|
|
@@ -17985,7 +18048,7 @@
|
|
|
17985
18048
|
},
|
|
17986
18049
|
{
|
|
17987
18050
|
"file": "packages/@ember/routing/route.ts",
|
|
17988
|
-
"line":
|
|
18051
|
+
"line": 1277,
|
|
17989
18052
|
"access": "private",
|
|
17990
18053
|
"tagname": "",
|
|
17991
18054
|
"itemtype": "method",
|
|
@@ -18011,7 +18074,7 @@
|
|
|
18011
18074
|
},
|
|
18012
18075
|
{
|
|
18013
18076
|
"file": "packages/@ember/routing/route.ts",
|
|
18014
|
-
"line":
|
|
18077
|
+
"line": 1290,
|
|
18015
18078
|
"description": "A hook you can use to setup the controller for the current route.\n\nThis method is called with the controller for the current route and the\nmodel supplied by the `model` hook.\n\nBy default, the `setupController` hook sets the `model` property of\nthe controller to the specified `model` when it is not `undefined`.\n\nIf you implement the `setupController` hook in your Route, it will\nprevent this default behavior. If you want to preserve that behavior\nwhen implementing your `setupController` function, make sure to call\n`super`:\n\n```app/routes/photos.js\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class PhotosRoute extends Route {\n @service store;\n\n model() {\n return this.store.findAll('photo');\n }\n\n setupController(controller, model) {\n super.setupController(controller, model);\n\n this.controllerFor('application').set('showingPhotos', true);\n }\n}\n```\n\nThe provided controller will be one resolved based on the name\nof this route.\n\nIf no explicit controller is defined, Ember will automatically create one.\n\nAs an example, consider the router:\n\n```app/router.js\n// ...\n\nRouter.map(function() {\n this.route('post', { path: '/posts/:post_id' });\n});\n\nexport default Router;\n```\n\nIf you have defined a file for the post controller,\nthe framework will use it.\nIf it is not defined, a basic `Controller` instance would be used.\n\nExample Behavior of a basic Controller\n\n```app/routes/post.js\nimport Route from '@ember/routing/route';\n\nexport default class PostRoute extends Route {\n setupController(controller, model) {\n controller.set('model', model);\n }\n});\n```",
|
|
18016
18079
|
"itemtype": "method",
|
|
18017
18080
|
"name": "setupController",
|
|
@@ -18041,7 +18104,7 @@
|
|
|
18041
18104
|
},
|
|
18042
18105
|
{
|
|
18043
18106
|
"file": "packages/@ember/routing/route.ts",
|
|
18044
|
-
"line":
|
|
18107
|
+
"line": 1369,
|
|
18045
18108
|
"description": "Returns the controller of the current route, or a parent (or any ancestor)\nroute in a route hierarchy.\n\nThe controller instance must already have been created, either through entering the\nassociated route or using `generateController`.\n\n```app/routes/post.js\nimport Route from '@ember/routing/route';\n\nexport default class PostRoute extends Route {\n setupController(controller, post) {\n super.setupController(controller, post);\n\n this.controllerFor('posts').set('currentPost', post);\n }\n}\n```",
|
|
18046
18109
|
"itemtype": "method",
|
|
18047
18110
|
"name": "controllerFor",
|
|
@@ -18064,7 +18127,7 @@
|
|
|
18064
18127
|
},
|
|
18065
18128
|
{
|
|
18066
18129
|
"file": "packages/@ember/routing/route.ts",
|
|
18067
|
-
"line":
|
|
18130
|
+
"line": 1423,
|
|
18068
18131
|
"description": "Generates a controller for a route.\n\nExample\n\n```app/routes/post.js\nimport Route from '@ember/routing/route';\n\nexport default class Post extends Route {\n setupController(controller, post) {\n super.setupController(controller, post);\n\n this.generateController('posts');\n }\n}\n```",
|
|
18069
18132
|
"itemtype": "method",
|
|
18070
18133
|
"name": "generateController",
|
|
@@ -18082,7 +18145,7 @@
|
|
|
18082
18145
|
},
|
|
18083
18146
|
{
|
|
18084
18147
|
"file": "packages/@ember/routing/route.ts",
|
|
18085
|
-
"line":
|
|
18148
|
+
"line": 1451,
|
|
18086
18149
|
"description": "Returns the resolved model of a parent (or any ancestor) route\nin a route hierarchy. During a transition, all routes\nmust resolve a model object, and if a route\nneeds access to a parent route's model in order to\nresolve a model (or just reuse the model from a parent),\nit can call `this.modelFor(theNameOfParentRoute)` to\nretrieve it. If the ancestor route's model was a promise,\nits resolved result is returned.\n\nExample\n\n```app/router.js\n// ...\n\nRouter.map(function() {\n this.route('post', { path: '/posts/:post_id' }, function() {\n this.route('comments');\n });\n});\n\nexport default Router;\n```\n\n```app/routes/post/comments.js\nimport Route from '@ember/routing/route';\n\nexport default class PostCommentsRoute extends Route {\n model() {\n let post = this.modelFor('post');\n\n return post.comments;\n }\n}\n```",
|
|
18087
18150
|
"itemtype": "method",
|
|
18088
18151
|
"name": "modelFor",
|
|
@@ -18105,7 +18168,7 @@
|
|
|
18105
18168
|
},
|
|
18106
18169
|
{
|
|
18107
18170
|
"file": "packages/@ember/routing/route.ts",
|
|
18108
|
-
"line":
|
|
18171
|
+
"line": 1525,
|
|
18109
18172
|
"description": "`this[RENDER]` is used to set up the rendering option for the outlet state.",
|
|
18110
18173
|
"itemtype": "method",
|
|
18111
18174
|
"name": "this[RENDER]",
|
|
@@ -18116,7 +18179,7 @@
|
|
|
18116
18179
|
},
|
|
18117
18180
|
{
|
|
18118
18181
|
"file": "packages/@ember/routing/route.ts",
|
|
18119
|
-
"line":
|
|
18182
|
+
"line": 1539,
|
|
18120
18183
|
"access": "private",
|
|
18121
18184
|
"tagname": "",
|
|
18122
18185
|
"itemtype": "method",
|
|
@@ -18126,7 +18189,7 @@
|
|
|
18126
18189
|
},
|
|
18127
18190
|
{
|
|
18128
18191
|
"file": "packages/@ember/routing/route.ts",
|
|
18129
|
-
"line":
|
|
18192
|
+
"line": 1551,
|
|
18130
18193
|
"description": "Allows you to produce custom metadata for the route.\nThe return value of this method will be attached to\nits corresponding RouteInfoWithAttributes object.\n\nExample\n\n```app/routes/posts/index.js\nimport Route from '@ember/routing/route';\n\nexport default class PostsIndexRoute extends Route {\n buildRouteInfoMetadata() {\n return { title: 'Posts Page' }\n }\n}\n```\n\n```app/routes/application.js\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ApplicationRoute extends Route {\n @service router\n\n constructor() {\n super(...arguments);\n\n this.router.on('routeDidChange', transition => {\n document.title = transition.to.metadata.title;\n // would update document's title to \"Posts Page\"\n });\n }\n}\n```",
|
|
18131
18194
|
"itemtype": "method",
|
|
18132
18195
|
"name": "buildRouteInfoMetadata",
|
|
@@ -18141,13 +18204,13 @@
|
|
|
18141
18204
|
},
|
|
18142
18205
|
{
|
|
18143
18206
|
"file": "packages/@ember/routing/route.ts",
|
|
18144
|
-
"line":
|
|
18207
|
+
"line": 1602,
|
|
18145
18208
|
"class": "Route",
|
|
18146
18209
|
"module": "@ember/routing/route"
|
|
18147
18210
|
},
|
|
18148
18211
|
{
|
|
18149
18212
|
"file": "packages/@ember/routing/route.ts",
|
|
18150
|
-
"line":
|
|
18213
|
+
"line": 1651,
|
|
18151
18214
|
"access": "private",
|
|
18152
18215
|
"tagname": "",
|
|
18153
18216
|
"itemtype": "property",
|
|
@@ -18157,7 +18220,7 @@
|
|
|
18157
18220
|
},
|
|
18158
18221
|
{
|
|
18159
18222
|
"file": "packages/@ember/routing/route.ts",
|
|
18160
|
-
"line":
|
|
18223
|
+
"line": 1790,
|
|
18161
18224
|
"description": "Sends an action to the router, which will delegate it to the currently\nactive route hierarchy per the bubbling rules explained under `actions`.\n\nExample\n\n```app/router.js\n// ...\n\nRouter.map(function() {\n this.route('index');\n});\n\nexport default Router;\n```\n\n```app/routes/application.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class ApplicationRoute extends Route {\n @action\n track(arg) {\n console.log(arg, 'was clicked');\n }\n}\n```\n\n```app/routes/index.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class IndexRoute extends Route {\n @action\n trackIfDebug(arg) {\n if (debug) {\n this.send('track', arg);\n }\n }\n}\n```",
|
|
18162
18225
|
"itemtype": "method",
|
|
18163
18226
|
"name": "send",
|
|
@@ -18181,7 +18244,7 @@
|
|
|
18181
18244
|
},
|
|
18182
18245
|
{
|
|
18183
18246
|
"file": "packages/@ember/routing/route.ts",
|
|
18184
|
-
"line":
|
|
18247
|
+
"line": 2120,
|
|
18185
18248
|
"description": "The controller associated with this route.\n\nExample\n\n```app/routes/form.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class FormRoute extends Route {\n @action\n willTransition(transition) {\n if (this.controller.get('userHasEnteredData') &&\n !confirm('Are you sure you want to abandon progress?')) {\n transition.abort();\n } else {\n // Bubble the `willTransition` action so that\n // parent routes can decide whether or not to abort.\n return true;\n }\n }\n}\n```",
|
|
18186
18249
|
"itemtype": "property",
|
|
18187
18250
|
"name": "controller",
|
|
@@ -18194,7 +18257,7 @@
|
|
|
18194
18257
|
},
|
|
18195
18258
|
{
|
|
18196
18259
|
"file": "packages/@ember/routing/route.ts",
|
|
18197
|
-
"line":
|
|
18260
|
+
"line": 2151,
|
|
18198
18261
|
"description": "This action is called when one or more query params have changed. Bubbles.",
|
|
18199
18262
|
"itemtype": "method",
|
|
18200
18263
|
"name": "queryParamsDidChange",
|
|
@@ -18226,7 +18289,141 @@
|
|
|
18226
18289
|
},
|
|
18227
18290
|
{
|
|
18228
18291
|
"file": "packages/@ember/routing/router-service.ts",
|
|
18229
|
-
"line":
|
|
18292
|
+
"line": 69,
|
|
18293
|
+
"description": "Subscribes to a named event with given function.",
|
|
18294
|
+
"itemtype": "method",
|
|
18295
|
+
"name": "on",
|
|
18296
|
+
"params": [
|
|
18297
|
+
{
|
|
18298
|
+
"name": "name",
|
|
18299
|
+
"description": "The name of the event",
|
|
18300
|
+
"type": "String"
|
|
18301
|
+
},
|
|
18302
|
+
{
|
|
18303
|
+
"name": "target",
|
|
18304
|
+
"description": "The \"this\" binding for the callback",
|
|
18305
|
+
"type": "Object",
|
|
18306
|
+
"optional": true
|
|
18307
|
+
},
|
|
18308
|
+
{
|
|
18309
|
+
"name": "method",
|
|
18310
|
+
"description": "A function or the name of a function to be called on `target`",
|
|
18311
|
+
"type": "Function|String"
|
|
18312
|
+
}
|
|
18313
|
+
],
|
|
18314
|
+
"return": {
|
|
18315
|
+
"description": "this"
|
|
18316
|
+
},
|
|
18317
|
+
"class": "RouterService",
|
|
18318
|
+
"module": "@ember/routing/router-service"
|
|
18319
|
+
},
|
|
18320
|
+
{
|
|
18321
|
+
"file": "packages/@ember/routing/router-service.ts",
|
|
18322
|
+
"line": 95,
|
|
18323
|
+
"description": "Subscribes a function to a named event and then cancels the subscription\nafter the first time the event is triggered.",
|
|
18324
|
+
"itemtype": "method",
|
|
18325
|
+
"name": "one",
|
|
18326
|
+
"params": [
|
|
18327
|
+
{
|
|
18328
|
+
"name": "name",
|
|
18329
|
+
"description": "The name of the event",
|
|
18330
|
+
"type": "String"
|
|
18331
|
+
},
|
|
18332
|
+
{
|
|
18333
|
+
"name": "target",
|
|
18334
|
+
"description": "The \"this\" binding for the callback",
|
|
18335
|
+
"type": "Object",
|
|
18336
|
+
"optional": true
|
|
18337
|
+
},
|
|
18338
|
+
{
|
|
18339
|
+
"name": "method",
|
|
18340
|
+
"description": "A function or the name of a function to be called on `target`",
|
|
18341
|
+
"type": "Function|String"
|
|
18342
|
+
}
|
|
18343
|
+
],
|
|
18344
|
+
"return": {
|
|
18345
|
+
"description": "this"
|
|
18346
|
+
},
|
|
18347
|
+
"class": "RouterService",
|
|
18348
|
+
"module": "@ember/routing/router-service"
|
|
18349
|
+
},
|
|
18350
|
+
{
|
|
18351
|
+
"file": "packages/@ember/routing/router-service.ts",
|
|
18352
|
+
"line": 121,
|
|
18353
|
+
"description": "Triggers a named event for the object.",
|
|
18354
|
+
"itemtype": "method",
|
|
18355
|
+
"name": "trigger",
|
|
18356
|
+
"params": [
|
|
18357
|
+
{
|
|
18358
|
+
"name": "name",
|
|
18359
|
+
"description": "The name of the event",
|
|
18360
|
+
"type": "String"
|
|
18361
|
+
},
|
|
18362
|
+
{
|
|
18363
|
+
"name": "args",
|
|
18364
|
+
"description": "Optional arguments to pass on",
|
|
18365
|
+
"type": "Object..."
|
|
18366
|
+
}
|
|
18367
|
+
],
|
|
18368
|
+
"return": {
|
|
18369
|
+
"description": "true if listeners were notified, false otherwise",
|
|
18370
|
+
"type": "Boolean"
|
|
18371
|
+
},
|
|
18372
|
+
"class": "RouterService",
|
|
18373
|
+
"module": "@ember/routing/router-service"
|
|
18374
|
+
},
|
|
18375
|
+
{
|
|
18376
|
+
"file": "packages/@ember/routing/router-service.ts",
|
|
18377
|
+
"line": 133,
|
|
18378
|
+
"description": "Cancels subscription for given name, target, and method.",
|
|
18379
|
+
"itemtype": "method",
|
|
18380
|
+
"name": "off",
|
|
18381
|
+
"params": [
|
|
18382
|
+
{
|
|
18383
|
+
"name": "name",
|
|
18384
|
+
"description": "The name of the event",
|
|
18385
|
+
"type": "String"
|
|
18386
|
+
},
|
|
18387
|
+
{
|
|
18388
|
+
"name": "target",
|
|
18389
|
+
"description": "The target of the subscription",
|
|
18390
|
+
"type": "Object"
|
|
18391
|
+
},
|
|
18392
|
+
{
|
|
18393
|
+
"name": "method",
|
|
18394
|
+
"description": "The function or the name of a function of the subscription",
|
|
18395
|
+
"type": "Function|String"
|
|
18396
|
+
}
|
|
18397
|
+
],
|
|
18398
|
+
"return": {
|
|
18399
|
+
"description": "this"
|
|
18400
|
+
},
|
|
18401
|
+
"class": "RouterService",
|
|
18402
|
+
"module": "@ember/routing/router-service"
|
|
18403
|
+
},
|
|
18404
|
+
{
|
|
18405
|
+
"file": "packages/@ember/routing/router-service.ts",
|
|
18406
|
+
"line": 158,
|
|
18407
|
+
"description": "Checks to see if object has any subscriptions for named event.",
|
|
18408
|
+
"itemtype": "method",
|
|
18409
|
+
"name": "has",
|
|
18410
|
+
"params": [
|
|
18411
|
+
{
|
|
18412
|
+
"name": "name",
|
|
18413
|
+
"description": "The name of the event",
|
|
18414
|
+
"type": "String"
|
|
18415
|
+
}
|
|
18416
|
+
],
|
|
18417
|
+
"return": {
|
|
18418
|
+
"description": "does the object have a subscription for event",
|
|
18419
|
+
"type": "Boolean"
|
|
18420
|
+
},
|
|
18421
|
+
"class": "RouterService",
|
|
18422
|
+
"module": "@ember/routing/router-service"
|
|
18423
|
+
},
|
|
18424
|
+
{
|
|
18425
|
+
"file": "packages/@ember/routing/router-service.ts",
|
|
18426
|
+
"line": 191,
|
|
18230
18427
|
"description": "Transition the application into another route. The route may\nbe either a single route or route path:\n\nCalling `transitionTo` from the Router service will cause default query parameter values to be included in the URL.\nThis behavior is different from calling `transitionTo` on a route or `transitionToRoute` on a controller.\nSee the [Router Service RFC](https://github.com/emberjs/rfcs/blob/master/text/0095-router-service.md#query-parameter-semantics) for more info.\n\nIn the following example we use the Router service to navigate to a route with a\nspecific model from a Component in the first action, and in the second we trigger\na query-params only transition.\n\n```gjs {data-filename=\"app/components/example.gjs\"}\nimport Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\n\nexport default class extends Component {\n @service router;\n\n @action\n goToComments(post) {\n this.router.transitionTo('comments', post);\n }\n\n @action\n fetchMoreComments(latestComment) {\n this.router.transitionTo({\n queryParams: { commentsAfter: latestComment }\n });\n }\n}\n```",
|
|
18231
18428
|
"itemtype": "method",
|
|
18232
18429
|
"name": "transitionTo",
|
|
@@ -18261,7 +18458,7 @@
|
|
|
18261
18458
|
},
|
|
18262
18459
|
{
|
|
18263
18460
|
"file": "packages/@ember/routing/router-service.ts",
|
|
18264
|
-
"line":
|
|
18461
|
+
"line": 250,
|
|
18265
18462
|
"description": "Similar to `transitionTo`, but instead of adding the destination to the browser's URL history,\nit replaces the entry for the current route.\nWhen the user clicks the \"back\" button in the browser, there will be fewer steps.\nThis is most commonly used to manage redirects in a way that does not cause confusing additions\nto the user's browsing history.\n\nCalling `replaceWith` from the Router service will cause default query parameter values to be included in the URL.\nThis behavior is different from calling `replaceWith` on a route.\nSee the [Router Service RFC](https://github.com/emberjs/rfcs/blob/master/text/0095-router-service.md#query-parameter-semantics) for more info.\n\nUsage example:\n\n```app/routes/application.js\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class extends Route {\n @service router;\n beforeModel() {\n if (!authorized()){\n this.router.replaceWith('unauthorized');\n }\n }\n});\n```",
|
|
18266
18463
|
"itemtype": "method",
|
|
18267
18464
|
"name": "replaceWith",
|
|
@@ -18294,7 +18491,7 @@
|
|
|
18294
18491
|
},
|
|
18295
18492
|
{
|
|
18296
18493
|
"file": "packages/@ember/routing/router-service.ts",
|
|
18297
|
-
"line":
|
|
18494
|
+
"line": 291,
|
|
18298
18495
|
"description": "Generate a URL based on the supplied route name and optionally a model. The\nURL is returned as a string that can be used for any purpose.\n\nIn this example, the URL for the `author.books` route for a given author\nis copied to the clipboard.\n\n```gjs {data-filename=\"app/templates/application.gjs\"}\nimport CopyLink from '../components/copy-link';\n \n<template>\n <CopyLink @author={{hash id=\"tomster\" name=\"Tomster\"}} />\n</template>\n```\n\n```gjs {data-filename=\"app/components/copy-link.gjs\"}\nimport Component from '@glimmer/component';\nimport { service } from '@ember/service';\nimport { action } from '@ember/object';\n\nexport default class CopyLinkComponent extends Component {\n @service router;\n @service clipboard;\n\n @action\n copyBooksURL() {\n if (this.author) {\n const url = this.router.urlFor('author.books', this.args.author);\n this.clipboard.set(url);\n // Clipboard now has /author/tomster/books\n }\n }\n}\n```\n\nJust like with `transitionTo` and `replaceWith`, `urlFor` can also handle\nquery parameters.\n\n```gjs {data-filename=\"app/templates/application.gjs\"}\nimport CopyLink from '../components/copy-link';\n\n<template>\n <CopyLink @author={{hash id=\"tomster\" name=\"Tomster\"}} />\n</template>\n```\n\n```gjs {data-filename=\"app/components/copy-link.gjs\"}\nimport Component from '@glimmer/component';\nimport { service } from '@ember/service';\nimport { action } from '@ember/object';\n\nexport default class CopyLinkComponent extends Component {\n @service router;\n @service clipboard;\n\n @action\n copyOnlyEmberBooksURL() {\n if (this.author) {\n const url = this.router.urlFor('author.books', this.author, {\n queryParams: { filter: 'emberjs' }\n });\n this.clipboard.set(url);\n // Clipboard now has /author/tomster/books?filter=emberjs\n }\n }\n}\n```",
|
|
18299
18496
|
"itemtype": "method",
|
|
18300
18497
|
"name": "urlFor",
|
|
@@ -18327,7 +18524,7 @@
|
|
|
18327
18524
|
},
|
|
18328
18525
|
{
|
|
18329
18526
|
"file": "packages/@ember/routing/router-service.ts",
|
|
18330
|
-
"line":
|
|
18527
|
+
"line": 375,
|
|
18331
18528
|
"description": "Returns `true` if `routeName/models/queryParams` is the active route, where `models` and `queryParams` are optional.\nSee [model](api/ember/release/classes/Route/methods/model?anchor=model) and\n[queryParams](/api/ember/3.7/classes/Route/properties/queryParams?anchor=queryParams) for more information about these arguments.\n\nIn the following example, `isActive` will return `true` if the current route is `/posts`.\n\n```gjs {data-filename=\"app/components/posts.gjs\"}\nimport Component from '@glimmer/component';\nimport { service } from '@ember/service';\n\nexport default class extends Component {\n @service router;\n\n displayComments() {\n return this.router.isActive('posts');\n }\n});\n```\n\nThe next example includes a dynamic segment, and will return `true` if the current route is `/posts/1`,\nassuming the post has an id of 1:\n\n```gjs {data-filename=\"app/components/posts.gjs\"}\nimport Component from '@glimmer/component';\nimport { service } from '@ember/service';\n\nexport default class extends Component {\n @service router;\n\n displayComments(post) {\n return this.router.isActive('posts', post.id);\n }\n});\n```\n\nWhere `post.id` is the id of a specific post, which is represented in the route as /posts/[post.id].\nIf `post.id` is equal to 1, then isActive will return true if the current route is /posts/1, and false if the route is anything else.",
|
|
18332
18529
|
"itemtype": "method",
|
|
18333
18530
|
"name": "isActive",
|
|
@@ -18360,7 +18557,7 @@
|
|
|
18360
18557
|
},
|
|
18361
18558
|
{
|
|
18362
18559
|
"file": "packages/@ember/routing/router-service.ts",
|
|
18363
|
-
"line":
|
|
18560
|
+
"line": 480,
|
|
18364
18561
|
"description": "Takes a string URL and returns a `RouteInfo` for the leafmost route represented\nby the URL. Returns `null` if the URL is not recognized. This method expects to\nreceive the actual URL as seen by the browser including the app's `rootURL`.\n\nSee [RouteInfo](/ember/release/classes/RouteInfo) for more info.\n\nIn the following example `recognize` is used to verify if a path belongs to our\napplication before transitioning to it.\n\n```js\nimport Component from '@ember/component';\nimport { service } from '@ember/service';\n\nexport default class extends Component {\n @service router;\n path = '/';\n\n click() {\n if (this.router.recognize(this.path)) {\n this.router.transitionTo(this.path);\n }\n }\n}\n```",
|
|
18365
18562
|
"itemtype": "method",
|
|
18366
18563
|
"name": "recognize",
|
|
@@ -18382,7 +18579,7 @@
|
|
|
18382
18579
|
},
|
|
18383
18580
|
{
|
|
18384
18581
|
"file": "packages/@ember/routing/router-service.ts",
|
|
18385
|
-
"line":
|
|
18582
|
+
"line": 521,
|
|
18386
18583
|
"description": "Takes a string URL and returns a promise that resolves to a\n`RouteInfoWithAttributes` for the leafmost route represented by the URL.\nThe promise rejects if the URL is not recognized or an unhandled exception\nis encountered. This method expects to receive the actual URL as seen by\nthe browser including the app's `rootURL`.",
|
|
18387
18584
|
"itemtype": "method",
|
|
18388
18585
|
"name": "recognizeAndLoad",
|
|
@@ -18404,7 +18601,7 @@
|
|
|
18404
18601
|
},
|
|
18405
18602
|
{
|
|
18406
18603
|
"file": "packages/@ember/routing/router-service.ts",
|
|
18407
|
-
"line":
|
|
18604
|
+
"line": 543,
|
|
18408
18605
|
"description": "You can register a listener for events emitted by this service with `.on()`:\n\n```app/routes/contact-form.js\nimport Route from '@ember/routing';\nimport { service } from '@ember/service';\n\nexport default class extends Route {\n @service router;\n\n activate() {\n this.router.on('routeWillChange', (transition) => {\n if (!transition.to.find(route => route.name === this.routeName)) {\n alert(\"Please save or cancel your changes.\");\n transition.abort();\n }\n })\n }\n}\n```",
|
|
18409
18606
|
"itemtype": "method",
|
|
18410
18607
|
"name": "on",
|
|
@@ -18427,7 +18624,7 @@
|
|
|
18427
18624
|
},
|
|
18428
18625
|
{
|
|
18429
18626
|
"file": "packages/@ember/routing/router-service.ts",
|
|
18430
|
-
"line":
|
|
18627
|
+
"line": 570,
|
|
18431
18628
|
"description": "You can unregister a listener for events emitted by this service with `.off()`:\n\n```app/routes/contact-form.js\nimport Route from '@ember/routing';\nimport { service } from '@ember/service';\n\nexport default class ContactFormRoute extends Route {\n @service router;\n\n callback = (transition) => {\n if (!transition.to.find(route => route.name === this.routeName)) {\n alert('Please save or cancel your changes.');\n transition.abort();\n }\n };\n\n activate() {\n this.router.on('routeWillChange', this.callback);\n }\n\n deactivate() {\n this.router.off('routeWillChange', this.callback);\n }\n}\n```",
|
|
18432
18629
|
"itemtype": "method",
|
|
18433
18630
|
"name": "off",
|
|
@@ -18450,7 +18647,7 @@
|
|
|
18450
18647
|
},
|
|
18451
18648
|
{
|
|
18452
18649
|
"file": "packages/@ember/routing/router-service.ts",
|
|
18453
|
-
"line":
|
|
18650
|
+
"line": 603,
|
|
18454
18651
|
"description": "The `routeWillChange` event is fired at the beginning of any\nattempted transition with a `Transition` object as the sole\nargument. This action can be used for aborting, redirecting,\nor decorating the transition from the currently active routes.\n\nA good example is preventing navigation when a form is\nhalf-filled out:\n\n```app/routes/contact-form.js\nimport Route from '@ember/routing';\nimport { service } from '@ember/service';\n\nexport default class extends Route {\n @service router;\n\n activate() {\n this.router.on('routeWillChange', (transition) => {\n if (!transition.to.find(route => route.name === this.routeName)) {\n alert(\"Please save or cancel your changes.\");\n transition.abort();\n }\n })\n }\n}\n```\n\nThe `routeWillChange` event fires whenever a new route is chosen as the desired target of a transition. This includes `transitionTo`, `replaceWith`, all redirection for any reason including error handling, and abort. Aborting implies changing the desired target back to where you already were. Once a transition has completed, `routeDidChange` fires.",
|
|
18455
18652
|
"itemtype": "event",
|
|
18456
18653
|
"name": "routeWillChange",
|
|
@@ -18468,7 +18665,7 @@
|
|
|
18468
18665
|
},
|
|
18469
18666
|
{
|
|
18470
18667
|
"file": "packages/@ember/routing/router-service.ts",
|
|
18471
|
-
"line":
|
|
18668
|
+
"line": 637,
|
|
18472
18669
|
"description": "The `routeDidChange` event only fires once a transition has settled.\nThis includes aborts and error substates. Like the `routeWillChange` event\nit receives a Transition as the sole argument.\n\nA good example is sending some analytics when the route has transitioned:\n\n```app/routes/contact-form.js\nimport Route from '@ember/routing';\nimport { service } from '@ember/service';\n\nexport default class extends Route {\n @service router;\n\n activate() {\n this.router.on('routeDidChange', (transition) => {\n ga.send('pageView', {\n current: transition.to.name,\n from: transition.from.name\n });\n })\n }\n}\n```\n\n`routeDidChange` will be called after any `Route`'s\n[didTransition](/ember/release/classes/Route/events/didTransition?anchor=didTransition)\naction has been fired.\nThe updates of properties\n[currentURL](/ember/release/classes/RouterService/properties/currentURL?anchor=currentURL),\n[currentRouteName](/ember/release/classes/RouterService/properties/currentURL?anchor=currentRouteName)\nand\n[currentRoute](/ember/release/classes/RouterService/properties/currentURL?anchor=currentRoute)\nare completed at the time `routeDidChange` is called.",
|
|
18473
18670
|
"itemtype": "event",
|
|
18474
18671
|
"name": "routeDidChange",
|
|
@@ -18486,7 +18683,7 @@
|
|
|
18486
18683
|
},
|
|
18487
18684
|
{
|
|
18488
18685
|
"file": "packages/@ember/routing/router-service.ts",
|
|
18489
|
-
"line":
|
|
18686
|
+
"line": 677,
|
|
18490
18687
|
"description": "Refreshes all currently active routes, doing a full transition.\nIf a route name is provided and refers to a currently active route,\nit will refresh only that route and its descendents.\nReturns a promise that will be resolved once the refresh is complete.\nAll resetController, beforeModel, model, afterModel, redirect, and setupController\nhooks will be called again. You will get new data from the model hook.",
|
|
18491
18688
|
"itemtype": "method",
|
|
18492
18689
|
"name": "refresh",
|
|
@@ -18508,7 +18705,7 @@
|
|
|
18508
18705
|
},
|
|
18509
18706
|
{
|
|
18510
18707
|
"file": "packages/@ember/routing/router-service.ts",
|
|
18511
|
-
"line":
|
|
18708
|
+
"line": 705,
|
|
18512
18709
|
"description": "Name of the current route.\n\n This property represents the logical name of the route,\n which is dot separated.\n For the following router:\n\n ```app/router.js\n Router.map(function() {\n this.route('about');\n this.route('blog', function () {\n this.route('post', { path: ':post_id' });\n });\n });\n ```\n\n It will return:\n\n * `index` when you visit `/`\n * `about` when you visit `/about`\n * `blog.index` when you visit `/blog`\n * `blog.post` when you visit `/blog/some-post-id`",
|
|
18513
18710
|
"itemtype": "property",
|
|
18514
18711
|
"name": "currentRouteName",
|
|
@@ -18520,7 +18717,7 @@
|
|
|
18520
18717
|
},
|
|
18521
18718
|
{
|
|
18522
18719
|
"file": "packages/@ember/routing/router-service.ts",
|
|
18523
|
-
"line":
|
|
18720
|
+
"line": 735,
|
|
18524
18721
|
"description": "Current URL for the application.\n\n This property represents the URL path for this route.\n For the following router:\n\n ```app/router.js\n Router.map(function() {\n this.route('about');\n this.route('blog', function () {\n this.route('post', { path: ':post_id' });\n });\n });\n ```\n\n It will return:\n\n * `/` when you visit `/`\n * `/about` when you visit `/about`\n * `/blog` when you visit `/blog`\n * `/blog/some-post-id` when you visit `/blog/some-post-id`",
|
|
18525
18722
|
"itemtype": "property",
|
|
18526
18723
|
"name": "currentURL",
|
|
@@ -18532,7 +18729,7 @@
|
|
|
18532
18729
|
},
|
|
18533
18730
|
{
|
|
18534
18731
|
"file": "packages/@ember/routing/router-service.ts",
|
|
18535
|
-
"line":
|
|
18732
|
+
"line": 764,
|
|
18536
18733
|
"description": "The `location` property returns what implementation of the `location` API\nyour application is using, which determines what type of URL is being used.\n\nSee [Location](/ember/release/classes/Location) for more information.\n\nTo force a particular `location` API implementation to be used in your\napplication you can set a location type on your `config/environment`.\nFor example, to set the `history` type:\n\n```config/environment.js\n'use strict';\n\nmodule.exports = function(environment) {\n let ENV = {\n modulePrefix: 'router-service',\n environment,\n rootURL: '/',\n locationType: 'history',\n ...\n }\n}\n```\n\nThe following location types are available by default:\n`hash`, `history`, `none`.\n\nSee [HashLocation](/ember/release/classes/HashLocation).\nSee [HistoryLocation](/ember/release/classes/HistoryLocation).\nSee [NoneLocation](/ember/release/classes/NoneLocation).",
|
|
18537
18734
|
"itemtype": "property",
|
|
18538
18735
|
"name": "location",
|
|
@@ -18547,7 +18744,7 @@
|
|
|
18547
18744
|
},
|
|
18548
18745
|
{
|
|
18549
18746
|
"file": "packages/@ember/routing/router-service.ts",
|
|
18550
|
-
"line":
|
|
18747
|
+
"line": 803,
|
|
18551
18748
|
"description": "The `rootURL` property represents the URL of the root of\nthe application, '/' by default.\nThis prefix is assumed on all routes defined on this app.\n\nIf you change the `rootURL` in your environment configuration\nlike so:\n\n```config/environment.js\n'use strict';\n\nmodule.exports = function(environment) {\n let ENV = {\n modulePrefix: 'router-service',\n environment,\n rootURL: '/my-root',\n …\n }\n]\n```\n\nThis property will return `/my-root`.",
|
|
18552
18749
|
"itemtype": "property",
|
|
18553
18750
|
"name": "rootURL",
|
|
@@ -18559,7 +18756,7 @@
|
|
|
18559
18756
|
},
|
|
18560
18757
|
{
|
|
18561
18758
|
"file": "packages/@ember/routing/router-service.ts",
|
|
18562
|
-
"line":
|
|
18759
|
+
"line": 833,
|
|
18563
18760
|
"description": "The `currentRoute` property contains metadata about the current leaf route.\nIt returns a `RouteInfo` object that has information like the route name,\nparams, query params and more.\n\nSee [RouteInfo](/ember/release/classes/RouteInfo) for more info.\n\nThis property is guaranteed to change whenever a route transition\nhappens (even when that transition only changes parameters\nand doesn't change the active route).\n\nUsage example:\n```gjs {data-filename=\"app/components/header.gjs\"}\n import Component from '@glimmer/component';\n import { service } from '@ember/service';\n import { notEmpty } from '@ember/object/computed';\n\n export default class extends Component {\n @service router;\n\n @notEmpty('router.currentRoute.child') isChildRoute;\n });\n```",
|
|
18564
18761
|
"itemtype": "property",
|
|
18565
18762
|
"name": "currentRoute",
|
|
@@ -18571,7 +18768,7 @@
|
|
|
18571
18768
|
},
|
|
18572
18769
|
{
|
|
18573
18770
|
"file": "packages/@ember/routing/router.ts",
|
|
18574
|
-
"line":
|
|
18771
|
+
"line": 161,
|
|
18575
18772
|
"description": "Represents the URL of the root of the application, often '/'. This prefix is\n assumed on all routes defined on this router.",
|
|
18576
18773
|
"itemtype": "property",
|
|
18577
18774
|
"name": "rootURL",
|
|
@@ -18583,7 +18780,7 @@
|
|
|
18583
18780
|
},
|
|
18584
18781
|
{
|
|
18585
18782
|
"file": "packages/@ember/routing/router.ts",
|
|
18586
|
-
"line":
|
|
18783
|
+
"line": 172,
|
|
18587
18784
|
"description": "The `location` property determines the type of URL's that your\n application will use.\n\n The following location types are currently available:\n\n * `history` - use the browser's history API to make the URLs look just like any standard URL\n * `hash` - use `#` to separate the server part of the URL from the Ember part: `/blog/#/posts/new`\n * `none` - do not store the Ember URL in the actual browser URL (mainly used for testing)\n * `auto` - use the best option based on browser capabilities: `history` if possible, then `hash` if possible, otherwise `none`\n\n This value is defaulted to `history` by the `locationType` setting of `/config/environment.js`",
|
|
18588
18785
|
"itemtype": "property",
|
|
18589
18786
|
"name": "location",
|
|
@@ -18598,7 +18795,7 @@
|
|
|
18598
18795
|
},
|
|
18599
18796
|
{
|
|
18600
18797
|
"file": "packages/@ember/routing/router.ts",
|
|
18601
|
-
"line":
|
|
18798
|
+
"line": 265,
|
|
18602
18799
|
"description": "The `Router.map` function allows you to define mappings from URLs to routes\nin your application. These mappings are defined within the\nsupplied callback function using `this.route`.\n\nThe first parameter is the name of the route which is used by default as the\npath name as well.\n\nThe second parameter is the optional options hash. Available options are:\n\n * `path`: allows you to provide your own path as well as mark dynamic\n segments.\n * `resetNamespace`: false by default; when nesting routes, ember will\n combine the route names to form the fully-qualified route name, which is\n used with `{{link-to}}` or manually transitioning to routes. Setting\n `resetNamespace: true` will cause the route not to inherit from its\n parent route's names. This is handy for preventing extremely long route names.\n Keep in mind that the actual URL path behavior is still retained.\n\nThe third parameter is a function, which can be used to nest routes.\nNested routes, by default, will have the parent route tree's route name and\npath prepended to it's own.\n\n```app/router.js\nRouter.map(function(){\n this.route('post', { path: '/post/:post_id' }, function() {\n this.route('edit');\n this.route('comments', { resetNamespace: true }, function() {\n this.route('new');\n });\n });\n});\n```",
|
|
18603
18800
|
"itemtype": "method",
|
|
18604
18801
|
"name": "map",
|
|
@@ -18615,7 +18812,7 @@
|
|
|
18615
18812
|
},
|
|
18616
18813
|
{
|
|
18617
18814
|
"file": "packages/@ember/routing/router.ts",
|
|
18618
|
-
"line":
|
|
18815
|
+
"line": 600,
|
|
18619
18816
|
"description": "Initializes the current router instance and sets up the change handling\nevent listeners used by the instances `location` implementation.\n\nA property named `initialURL` will be used to determine the initial URL.\nIf no value is found `/` will be used.",
|
|
18620
18817
|
"itemtype": "method",
|
|
18621
18818
|
"name": "startRouting",
|
|
@@ -18626,7 +18823,7 @@
|
|
|
18626
18823
|
},
|
|
18627
18824
|
{
|
|
18628
18825
|
"file": "packages/@ember/routing/router.ts",
|
|
18629
|
-
"line":
|
|
18826
|
+
"line": 751,
|
|
18630
18827
|
"description": "Transition the application into another route. The route may\nbe either a single route or route path:",
|
|
18631
18828
|
"itemtype": "method",
|
|
18632
18829
|
"name": "transitionTo",
|
|
@@ -18660,7 +18857,7 @@
|
|
|
18660
18857
|
},
|
|
18661
18858
|
{
|
|
18662
18859
|
"file": "packages/@ember/routing/router.ts",
|
|
18663
|
-
"line":
|
|
18860
|
+
"line": 796,
|
|
18664
18861
|
"description": "Similar to `transitionTo`, but instead of adding the destination to the browser's URL history,\nit replaces the entry for the current route.\nWhen the user clicks the \"back\" button in the browser, there will be fewer steps.\nThis is most commonly used to manage redirects in a way that does not cause confusing additions\nto the user's browsing history.",
|
|
18665
18862
|
"itemtype": "method",
|
|
18666
18863
|
"name": "replaceWith",
|
|
@@ -18694,7 +18891,7 @@
|
|
|
18694
18891
|
},
|
|
18695
18892
|
{
|
|
18696
18893
|
"file": "packages/@ember/routing/router.ts",
|
|
18697
|
-
"line":
|
|
18894
|
+
"line": 823,
|
|
18698
18895
|
"description": "Determines if the supplied route is currently active.",
|
|
18699
18896
|
"itemtype": "method",
|
|
18700
18897
|
"name": "isActive",
|
|
@@ -18715,7 +18912,7 @@
|
|
|
18715
18912
|
},
|
|
18716
18913
|
{
|
|
18717
18914
|
"file": "packages/@ember/routing/router.ts",
|
|
18718
|
-
"line":
|
|
18915
|
+
"line": 835,
|
|
18719
18916
|
"description": "An alternative form of `isActive` that doesn't require\nmanual concatenation of the arguments into a single\narray.",
|
|
18720
18917
|
"itemtype": "method",
|
|
18721
18918
|
"name": "isActiveIntent",
|
|
@@ -18745,7 +18942,7 @@
|
|
|
18745
18942
|
},
|
|
18746
18943
|
{
|
|
18747
18944
|
"file": "packages/@ember/routing/router.ts",
|
|
18748
|
-
"line":
|
|
18945
|
+
"line": 861,
|
|
18749
18946
|
"description": "Does this router instance have the given route.",
|
|
18750
18947
|
"itemtype": "method",
|
|
18751
18948
|
"name": "hasRoute",
|
|
@@ -18760,7 +18957,7 @@
|
|
|
18760
18957
|
},
|
|
18761
18958
|
{
|
|
18762
18959
|
"file": "packages/@ember/routing/router.ts",
|
|
18763
|
-
"line":
|
|
18960
|
+
"line": 872,
|
|
18764
18961
|
"description": "Resets the state of the router by clearing the current route\nhandlers and deactivating them.",
|
|
18765
18962
|
"access": "private",
|
|
18766
18963
|
"tagname": "",
|
|
@@ -18771,7 +18968,7 @@
|
|
|
18771
18968
|
},
|
|
18772
18969
|
{
|
|
18773
18970
|
"file": "packages/@ember/routing/router.ts",
|
|
18774
|
-
"line":
|
|
18971
|
+
"line": 971,
|
|
18775
18972
|
"description": "Serializes the given query params according to their QP meta information.",
|
|
18776
18973
|
"access": "private",
|
|
18777
18974
|
"tagname": "",
|
|
@@ -18798,7 +18995,7 @@
|
|
|
18798
18995
|
},
|
|
18799
18996
|
{
|
|
18800
18997
|
"file": "packages/@ember/routing/router.ts",
|
|
18801
|
-
"line":
|
|
18998
|
+
"line": 1001,
|
|
18802
18999
|
"description": "Serializes the value of a query parameter based on a type",
|
|
18803
19000
|
"access": "private",
|
|
18804
19001
|
"tagname": "",
|
|
@@ -18821,7 +19018,7 @@
|
|
|
18821
19018
|
},
|
|
18822
19019
|
{
|
|
18823
19020
|
"file": "packages/@ember/routing/router.ts",
|
|
18824
|
-
"line":
|
|
19021
|
+
"line": 1019,
|
|
18825
19022
|
"description": "Deserializes the given query params according to their QP meta information.",
|
|
18826
19023
|
"access": "private",
|
|
18827
19024
|
"tagname": "",
|
|
@@ -18848,7 +19045,7 @@
|
|
|
18848
19045
|
},
|
|
18849
19046
|
{
|
|
18850
19047
|
"file": "packages/@ember/routing/router.ts",
|
|
18851
|
-
"line":
|
|
19048
|
+
"line": 1047,
|
|
18852
19049
|
"description": "Deserializes the value of a query parameter based on a default type",
|
|
18853
19050
|
"access": "private",
|
|
18854
19051
|
"tagname": "",
|
|
@@ -18871,7 +19068,7 @@
|
|
|
18871
19068
|
},
|
|
18872
19069
|
{
|
|
18873
19070
|
"file": "packages/@ember/routing/router.ts",
|
|
18874
|
-
"line":
|
|
19071
|
+
"line": 1068,
|
|
18875
19072
|
"description": "Removes (prunes) any query params with default values from the given QP\nobject. Default values are determined from the QP meta information per key.",
|
|
18876
19073
|
"access": "private",
|
|
18877
19074
|
"tagname": "",
|
|
@@ -18898,7 +19095,7 @@
|
|
|
18898
19095
|
},
|
|
18899
19096
|
{
|
|
18900
19097
|
"file": "packages/@ember/routing/router.ts",
|
|
18901
|
-
"line":
|
|
19098
|
+
"line": 1150,
|
|
18902
19099
|
"description": "Prepares the query params for a URL or Transition. Restores any undefined QP\nkeys/values, serializes all values, and then prunes any default values.",
|
|
18903
19100
|
"access": "private",
|
|
18904
19101
|
"tagname": "",
|
|
@@ -18935,7 +19132,7 @@
|
|
|
18935
19132
|
},
|
|
18936
19133
|
{
|
|
18937
19134
|
"file": "packages/@ember/routing/router.ts",
|
|
18938
|
-
"line":
|
|
19135
|
+
"line": 1177,
|
|
18939
19136
|
"description": "Returns the meta information for the query params of a given route. This\nwill be overridden to allow support for lazy routes.",
|
|
18940
19137
|
"access": "private",
|
|
18941
19138
|
"tagname": "",
|
|
@@ -18957,7 +19154,7 @@
|
|
|
18957
19154
|
},
|
|
18958
19155
|
{
|
|
18959
19156
|
"file": "packages/@ember/routing/router.ts",
|
|
18960
|
-
"line":
|
|
19157
|
+
"line": 1191,
|
|
18961
19158
|
"description": "Returns a merged query params meta object for a given set of routeInfos.\nUseful for knowing what query params are available for a given route hierarchy.",
|
|
18962
19159
|
"access": "private",
|
|
18963
19160
|
"tagname": "",
|
|
@@ -18979,7 +19176,7 @@
|
|
|
18979
19176
|
},
|
|
18980
19177
|
{
|
|
18981
19178
|
"file": "packages/@ember/routing/router.ts",
|
|
18982
|
-
"line":
|
|
19179
|
+
"line": 1253,
|
|
18983
19180
|
"description": "Maps all query param keys to their fully scoped property name of the form\n`controllerName:propName`.",
|
|
18984
19181
|
"access": "private",
|
|
18985
19182
|
"tagname": "",
|
|
@@ -19011,7 +19208,7 @@
|
|
|
19011
19208
|
},
|
|
19012
19209
|
{
|
|
19013
19210
|
"file": "packages/@ember/routing/router.ts",
|
|
19014
|
-
"line":
|
|
19211
|
+
"line": 1295,
|
|
19015
19212
|
"description": "Hydrates (adds/restores) any query params that have pre-existing values into\nthe given queryParams hash. This is what allows query params to be \"sticky\"\nand restore their last known values for their scope.",
|
|
19016
19213
|
"access": "private",
|
|
19017
19214
|
"tagname": "",
|
|
@@ -19038,7 +19235,7 @@
|
|
|
19038
19235
|
},
|
|
19039
19236
|
{
|
|
19040
19237
|
"file": "packages/@ember/routing/router.ts",
|
|
19041
|
-
"line":
|
|
19238
|
+
"line": 1466,
|
|
19042
19239
|
"description": "Handles updating the paths and notifying any listeners of the URL\nchange.\n\nTriggers the router level `didTransition` hook.\n\nFor example, to notify google analytics when the route changes,\nyou could use this hook. (Note: requires also including GA scripts, etc.)\n\n```javascript\nimport config from './config/environment';\nimport EmberRouter from '@ember/routing/router';\nimport { service } from '@ember/service';\n\nexport default class Router extends EmberRouter {\n location = config.locationType;\n\n @service()\n router;\n\n didTransition() {\n super.didTransition(...arguments);\n\n ga('send', 'pageview', {\n page: this.router.currentURL,\n title: this.router.currentRouteName,\n });\n }\n}\n```",
|
|
19043
19240
|
"itemtype": "method",
|
|
19044
19241
|
"name": "didTransition",
|
|
@@ -19050,7 +19247,7 @@
|
|
|
19050
19247
|
},
|
|
19051
19248
|
{
|
|
19052
19249
|
"file": "packages/@ember/routing/router.ts",
|
|
19053
|
-
"line":
|
|
19250
|
+
"line": 1504,
|
|
19054
19251
|
"description": "Handles notifying any listeners of an impending URL\nchange.\n\nTriggers the router level `willTransition` hook.",
|
|
19055
19252
|
"itemtype": "method",
|
|
19056
19253
|
"name": "willTransition",
|
|
@@ -19062,7 +19259,7 @@
|
|
|
19062
19259
|
},
|
|
19063
19260
|
{
|
|
19064
19261
|
"file": "packages/@ember/routing/router.ts",
|
|
19065
|
-
"line":
|
|
19262
|
+
"line": 1517,
|
|
19066
19263
|
"description": "Represents the current URL.",
|
|
19067
19264
|
"itemtype": "property",
|
|
19068
19265
|
"name": "url",
|
|
@@ -19074,7 +19271,7 @@
|
|
|
19074
19271
|
},
|
|
19075
19272
|
{
|
|
19076
19273
|
"file": "packages/@ember/routing/router.ts",
|
|
19077
|
-
"line":
|
|
19274
|
+
"line": 1680,
|
|
19078
19275
|
"description": "Finds the name of the substate route if it exists for the given route. A\nsubstate route is of the form `route_state`, such as `foo_loading`.",
|
|
19079
19276
|
"access": "private",
|
|
19080
19277
|
"tagname": "",
|
|
@@ -19099,7 +19296,7 @@
|
|
|
19099
19296
|
},
|
|
19100
19297
|
{
|
|
19101
19298
|
"file": "packages/@ember/routing/router.ts",
|
|
19102
|
-
"line":
|
|
19299
|
+
"line": 1701,
|
|
19103
19300
|
"description": "Finds the name of the state route if it exists for the given route. A state\nroute is of the form `route.state`, such as `foo.loading`. Properly Handles\n`application` named routes.",
|
|
19104
19301
|
"access": "private",
|
|
19105
19302
|
"tagname": "",
|
|
@@ -19124,7 +19321,7 @@
|
|
|
19124
19321
|
},
|
|
19125
19322
|
{
|
|
19126
19323
|
"file": "packages/@ember/routing/router.ts",
|
|
19127
|
-
"line":
|
|
19324
|
+
"line": 1723,
|
|
19128
19325
|
"description": "Determines whether or not a route has been defined by checking that the route\nis in the Router's map and the owner has a registration for that route.",
|
|
19129
19326
|
"access": "private",
|
|
19130
19327
|
"tagname": "",
|
|
@@ -20275,7 +20472,7 @@
|
|
|
20275
20472
|
"module": "@ember/utils"
|
|
20276
20473
|
},
|
|
20277
20474
|
{
|
|
20278
|
-
"file": "packages/@glimmer/component/dist/-private/component.d.ts",
|
|
20475
|
+
"file": "packages/@glimmer/component/dist/component/src/-private/component.d.ts",
|
|
20279
20476
|
"line": 10,
|
|
20280
20477
|
"description": "This provides us a way to have a \"fallback\" which represents an empty object,\nwithout the downsides of how TS treats `{}`. Specifically: this will\ncorrectly leverage \"excess property checking\" so that, given a component\nwhich has no named args, if someone invokes it with any named args, they will\nget a type error.",
|
|
20281
20478
|
"internal": "This is exported so declaration emit works (if it were not emitted,\n declarations which fall back to it would not work). It is *not* intended for\n public usage, and the specific mechanics it uses may change at any time.\n The location of this export *is* part of the public API, because moving it\n will break existing declarations, but is not legal for end users to import\n themselves, so ***DO NOT RELY ON IT***.",
|
|
@@ -20283,13 +20480,13 @@
|
|
|
20283
20480
|
"module": "@ember/utils"
|
|
20284
20481
|
},
|
|
20285
20482
|
{
|
|
20286
|
-
"file": "packages/@glimmer/component/dist/-private/component.d.ts",
|
|
20483
|
+
"file": "packages/@glimmer/component/dist/component/src/-private/component.d.ts",
|
|
20287
20484
|
"line": 30,
|
|
20288
20485
|
"class": "Keywords",
|
|
20289
20486
|
"module": "@ember/utils"
|
|
20290
20487
|
},
|
|
20291
20488
|
{
|
|
20292
|
-
"file": "packages/@glimmer/component/dist/-private/component.d.ts",
|
|
20489
|
+
"file": "packages/@glimmer/component/dist/component/src/-private/component.d.ts",
|
|
20293
20490
|
"line": 62,
|
|
20294
20491
|
"description": "Given any allowed shorthand form of a signature, desugars it to its full\nexpanded type.",
|
|
20295
20492
|
"internal": "This is only exported so we can avoid duplicating it in\n [Glint](https://github.com/typed-ember/glint) or other such tooling. It is\n *not* intended for public usage, and the specific mechanics it uses may\n change at any time. Although the signature produced by is part of Glimmer's\n public API the existence and mechanics of this specific symbol are *not*,\n so ***DO NOT RELY ON IT***.",
|
|
@@ -20297,22 +20494,22 @@
|
|
|
20297
20494
|
"module": "@ember/utils"
|
|
20298
20495
|
},
|
|
20299
20496
|
{
|
|
20300
|
-
"file": "packages/@glimmer/component/dist/-private/component.d.ts",
|
|
20497
|
+
"file": "packages/@glimmer/component/dist/component/src/-private/component.d.ts",
|
|
20301
20498
|
"line": 74,
|
|
20302
20499
|
"internal": "we use this type for convenience internally; inference means users\n should not normally need to name it",
|
|
20303
20500
|
"class": "Keywords",
|
|
20304
20501
|
"module": "@ember/utils"
|
|
20305
20502
|
},
|
|
20306
20503
|
{
|
|
20307
|
-
"file": "packages/@glimmer/component/dist/-private/component.d.ts",
|
|
20504
|
+
"file": "packages/@glimmer/component/dist/component/src/-private/component.d.ts",
|
|
20308
20505
|
"line": 79,
|
|
20309
20506
|
"description": "The `Component` class defines an encapsulated UI element that is rendered to\nthe DOM. A component is made up of a template and, optionally, this component\nobject.\n\n## Defining a Component\n\nTo define a component, subclass `Component` and add your own properties,\nmethods and lifecycle hooks:\n\n```ts\nimport Component from '@glimmer/component';\n\nexport default class extends Component {\n}\n```\n\n## Lifecycle Hooks\n\nLifecycle hooks allow you to respond to changes to a component, such as when\nit gets created, rendered, updated or destroyed. To add a lifecycle hook to a\ncomponent, implement the hook as a method on your component subclass.\n\nFor example, to be notified when Glimmer has rendered your component so you\ncan attach a legacy jQuery plugin, implement the `didInsertElement()` method:\n\n```ts\nimport Component from '@glimmer/component';\n\nexport default class extends Component {\n didInsertElement() {\n $(this.element).pickadate();\n }\n}\n```\n\n## Data for Templates\n\n`Component`s have two different kinds of data, or state, that can be\ndisplayed in templates:\n\n1. Arguments\n2. Properties\n\nArguments are data that is passed in to a component from its parent\ncomponent. For example, if I have a `UserGreeting` component, I can pass it\na name and greeting to use:\n\n```hbs\n<UserGreeting @name=\"Ricardo\" @greeting=\"Olá\" />\n```\n\nInside my `UserGreeting` template, I can access the `@name` and `@greeting`\narguments that I've been given:\n\n```hbs\n{{@greeting}}, {{@name}}!\n```\n\nArguments are also available inside my component:\n\n```ts\nconsole.log(this.args.greeting); // prints \"Olá\"\n```\n\nProperties, on the other hand, are internal to the component and declared in\nthe class. You can use properties to store data that you want to show in the\ntemplate, or pass to another component as an argument.\n\n```ts\nimport Component from '@glimmer/component';\n\nexport default class extends Component {\n user = {\n name: 'Robbie'\n }\n}\n```\n\nIn the above example, we've defined a component with a `user` property that\ncontains an object with its own `name` property.\n\nWe can render that property in our template:\n\n```hbs\nHello, {{user.name}}!\n```\n\nWe can also take that property and pass it as an argument to the\n`UserGreeting` component we defined above:\n\n```hbs\n<UserGreeting @greeting=\"Hello\" @name={{user.name}} />\n```\n\n## Arguments vs. Properties\n\nRemember, arguments are data that was given to your component by its parent\ncomponent, and properties are data your component has defined for itself.\n\nYou can tell the difference between arguments and properties in templates\nbecause arguments always start with an `@` sign (think \"A is for arguments\"):\n\n```hbs\n{{@firstName}}\n```\n\nWe know that `@firstName` came from the parent component, not the current\ncomponent, because it starts with `@` and is therefore an argument.\n\nOn the other hand, if we see:\n\n```hbs\n{{name}}\n```\n\nWe know that `name` is a property on the component. If we want to know where\nthe data is coming from, we can go look at our component class to find out.\n\nInside the component itself, arguments always show up inside the component's\n`args` property. For example, if `{{@firstName}}` is `Tom` in the template,\ninside the component `this.args.firstName` would also be `Tom`.",
|
|
20310
20507
|
"class": "Keywords",
|
|
20311
20508
|
"module": "@ember/utils"
|
|
20312
20509
|
},
|
|
20313
20510
|
{
|
|
20314
|
-
"file": "packages/@glimmer/component/dist/-private/component.d.ts",
|
|
20315
|
-
"line":
|
|
20511
|
+
"file": "packages/@glimmer/component/dist/component/src/-private/component.d.ts",
|
|
20512
|
+
"line": 205,
|
|
20316
20513
|
"description": "Constructs a new component and assigns itself the passed properties. You\nshould not construct new components yourself. Instead, Glimmer will\ninstantiate new components automatically as it renders.",
|
|
20317
20514
|
"params": [
|
|
20318
20515
|
{
|
|
@@ -20328,65 +20525,65 @@
|
|
|
20328
20525
|
"module": "@ember/utils"
|
|
20329
20526
|
},
|
|
20330
20527
|
{
|
|
20331
|
-
"file": "packages/@glimmer/component/dist/-private/component.d.ts",
|
|
20332
|
-
"line":
|
|
20528
|
+
"file": "packages/@glimmer/component/dist/component/src/-private/component.d.ts",
|
|
20529
|
+
"line": 214,
|
|
20333
20530
|
"description": "Named arguments passed to the component from its parent component.\nThey can be accessed in JavaScript via `this.args.argumentName` and in the template via `@argumentName`.\n\nSay you have the following component, which will have two `args`, `firstName` and `lastName`:\n\n```hbs\n<my-component @firstName=\"Arthur\" @lastName=\"Dent\" />\n```\n\nIf you needed to calculate `fullName` by combining both of them, you would do:\n\n```ts\ndidInsertElement() {\n console.log(`Hi, my full name is ${this.args.firstName} ${this.args.lastName}`);\n}\n```\n\nWhile in the template you could do:\n\n```hbs\n<p>Welcome, {{@firstName}} {{@lastName}}!</p>\n```",
|
|
20334
20531
|
"class": "Keywords",
|
|
20335
20532
|
"module": "@ember/utils"
|
|
20336
20533
|
},
|
|
20337
20534
|
{
|
|
20338
|
-
"file": "packages/@glimmer/component/dist/-private/component.d.ts",
|
|
20339
|
-
"line":
|
|
20535
|
+
"file": "packages/@glimmer/component/dist/component/src/-private/component.d.ts",
|
|
20536
|
+
"line": 241,
|
|
20340
20537
|
"description": "Called before the component has been removed from the DOM.",
|
|
20341
20538
|
"class": "Keywords",
|
|
20342
20539
|
"module": "@ember/utils"
|
|
20343
20540
|
},
|
|
20344
20541
|
{
|
|
20345
|
-
"file": "packages/@glimmer/component/dist/-private/ember-component-manager.d.ts",
|
|
20542
|
+
"file": "packages/@glimmer/component/dist/component/src/-private/ember-component-manager.d.ts",
|
|
20346
20543
|
"line": 4,
|
|
20347
20544
|
"description": "This component manager runs in Ember.js environments and extends the base component manager to:\n\n1. Properly destroy the component's associated `meta` data structure\n2. Schedule destruction using Ember's runloop",
|
|
20348
20545
|
"class": "Keywords",
|
|
20349
20546
|
"module": "@ember/utils"
|
|
20350
20547
|
},
|
|
20351
20548
|
{
|
|
20352
|
-
"file": "packages/@glimmer/component/dist/index.js",
|
|
20353
|
-
"line":
|
|
20549
|
+
"file": "packages/@glimmer/component/dist/dev/index.js",
|
|
20550
|
+
"line": 25,
|
|
20354
20551
|
"description": "This provides us a way to have a \"fallback\" which represents an empty object,\nwithout the downsides of how TS treats `{}`. Specifically: this will\ncorrectly leverage \"excess property checking\" so that, given a component\nwhich has no named args, if someone invokes it with any named args, they will\nget a type error.",
|
|
20355
20552
|
"internal": "This is exported so declaration emit works (if it were not emitted,\n declarations which fall back to it would not work). It is *not* intended for\n public usage, and the specific mechanics it uses may change at any time.\n The location of this export *is* part of the public API, because moving it\n will break existing declarations, but is not legal for end users to import\n themselves, so ***DO NOT RELY ON IT***.",
|
|
20356
20553
|
"class": "Keywords",
|
|
20357
20554
|
"module": "@glimmer/component"
|
|
20358
20555
|
},
|
|
20359
20556
|
{
|
|
20360
|
-
"file": "packages/@glimmer/component/dist/index.js",
|
|
20361
|
-
"line":
|
|
20557
|
+
"file": "packages/@glimmer/component/dist/dev/index.js",
|
|
20558
|
+
"line": 40,
|
|
20362
20559
|
"class": "Keywords",
|
|
20363
20560
|
"module": "@glimmer/component"
|
|
20364
20561
|
},
|
|
20365
20562
|
{
|
|
20366
|
-
"file": "packages/@glimmer/component/dist/index.js",
|
|
20367
|
-
"line":
|
|
20563
|
+
"file": "packages/@glimmer/component/dist/dev/index.js",
|
|
20564
|
+
"line": 42,
|
|
20368
20565
|
"description": "Given any allowed shorthand form of a signature, desugars it to its full\nexpanded type.",
|
|
20369
20566
|
"internal": "This is only exported so we can avoid duplicating it in\n [Glint](https://github.com/typed-ember/glint) or other such tooling. It is\n *not* intended for public usage, and the specific mechanics it uses may\n change at any time. Although the signature produced by is part of Glimmer's\n public API the existence and mechanics of this specific symbol are *not*,\n so ***DO NOT RELY ON IT***.",
|
|
20370
20567
|
"class": "Keywords",
|
|
20371
20568
|
"module": "@glimmer/component"
|
|
20372
20569
|
},
|
|
20373
20570
|
{
|
|
20374
|
-
"file": "packages/@glimmer/component/dist/index.js",
|
|
20375
|
-
"line":
|
|
20571
|
+
"file": "packages/@glimmer/component/dist/dev/index.js",
|
|
20572
|
+
"line": 59,
|
|
20376
20573
|
"internal": "we use this type for convenience internally; inference means users\n should not normally need to name it",
|
|
20377
20574
|
"class": "Keywords",
|
|
20378
20575
|
"module": "@glimmer/component"
|
|
20379
20576
|
},
|
|
20380
20577
|
{
|
|
20381
|
-
"file": "packages/@glimmer/component/dist/index.js",
|
|
20382
|
-
"line":
|
|
20578
|
+
"file": "packages/@glimmer/component/dist/dev/index.js",
|
|
20579
|
+
"line": 64,
|
|
20383
20580
|
"description": "The `Component` class defines an encapsulated UI element that is rendered to\nthe DOM. A component is made up of a template and, optionally, this component\nobject.\n\n## Defining a Component\n\nTo define a component, subclass `Component` and add your own properties,\nmethods and lifecycle hooks:\n\n```ts\nimport Component from '@glimmer/component';\n\nexport default class extends Component {\n}\n```\n\n## Lifecycle Hooks\n\nLifecycle hooks allow you to respond to changes to a component, such as when\nit gets created, rendered, updated or destroyed. To add a lifecycle hook to a\ncomponent, implement the hook as a method on your component subclass.\n\nFor example, to be notified when Glimmer has rendered your component so you\ncan attach a legacy jQuery plugin, implement the `didInsertElement()` method:\n\n```ts\nimport Component from '@glimmer/component';\n\nexport default class extends Component {\n didInsertElement() {\n $(this.element).pickadate();\n }\n}\n```\n\n## Data for Templates\n\n`Component`s have two different kinds of data, or state, that can be\ndisplayed in templates:\n\n1. Arguments\n2. Properties\n\nArguments are data that is passed in to a component from its parent\ncomponent. For example, if I have a `UserGreeting` component, I can pass it\na name and greeting to use:\n\n```hbs\n<UserGreeting @name=\"Ricardo\" @greeting=\"Olá\" />\n```\n\nInside my `UserGreeting` template, I can access the `@name` and `@greeting`\narguments that I've been given:\n\n```hbs\n{{@greeting}}, {{@name}}!\n```\n\nArguments are also available inside my component:\n\n```ts\nconsole.log(this.args.greeting); // prints \"Olá\"\n```\n\nProperties, on the other hand, are internal to the component and declared in\nthe class. You can use properties to store data that you want to show in the\ntemplate, or pass to another component as an argument.\n\n```ts\nimport Component from '@glimmer/component';\n\nexport default class extends Component {\n user = {\n name: 'Robbie'\n }\n}\n```\n\nIn the above example, we've defined a component with a `user` property that\ncontains an object with its own `name` property.\n\nWe can render that property in our template:\n\n```hbs\nHello, {{user.name}}!\n```\n\nWe can also take that property and pass it as an argument to the\n`UserGreeting` component we defined above:\n\n```hbs\n<UserGreeting @greeting=\"Hello\" @name={{user.name}} />\n```\n\n## Arguments vs. Properties\n\nRemember, arguments are data that was given to your component by its parent\ncomponent, and properties are data your component has defined for itself.\n\nYou can tell the difference between arguments and properties in templates\nbecause arguments always start with an `@` sign (think \"A is for arguments\"):\n\n```hbs\n{{@firstName}}\n```\n\nWe know that `@firstName` came from the parent component, not the current\ncomponent, because it starts with `@` and is therefore an argument.\n\nOn the other hand, if we see:\n\n```hbs\n{{name}}\n```\n\nWe know that `name` is a property on the component. If we want to know where\nthe data is coming from, we can go look at our component class to find out.\n\nInside the component itself, arguments always show up inside the component's\n`args` property. For example, if `{{@firstName}}` is `Tom` in the template,\ninside the component `this.args.firstName` would also be `Tom`.",
|
|
20384
20581
|
"class": "Keywords",
|
|
20385
20582
|
"module": "@glimmer/component"
|
|
20386
20583
|
},
|
|
20387
20584
|
{
|
|
20388
|
-
"file": "packages/@glimmer/component/dist/index.js",
|
|
20389
|
-
"line":
|
|
20585
|
+
"file": "packages/@glimmer/component/dist/dev/index.js",
|
|
20586
|
+
"line": 191,
|
|
20390
20587
|
"description": "Constructs a new component and assigns itself the passed properties. You\nshould not construct new components yourself. Instead, Glimmer will\ninstantiate new components automatically as it renders.",
|
|
20391
20588
|
"params": [
|
|
20392
20589
|
{
|
|
@@ -20402,29 +20599,103 @@
|
|
|
20402
20599
|
"module": "@glimmer/component"
|
|
20403
20600
|
},
|
|
20404
20601
|
{
|
|
20405
|
-
"file": "packages/@glimmer/component/dist/index.js",
|
|
20406
|
-
"line":
|
|
20602
|
+
"file": "packages/@glimmer/component/dist/dev/index.js",
|
|
20603
|
+
"line": 206,
|
|
20407
20604
|
"description": "Named arguments passed to the component from its parent component.\nThey can be accessed in JavaScript via `this.args.argumentName` and in the template via `@argumentName`.\n\nSay you have the following component, which will have two `args`, `firstName` and `lastName`:\n\n```hbs\n<my-component @firstName=\"Arthur\" @lastName=\"Dent\" />\n```\n\nIf you needed to calculate `fullName` by combining both of them, you would do:\n\n```ts\ndidInsertElement() {\n console.log(`Hi, my full name is ${this.args.firstName} ${this.args.lastName}`);\n}\n```\n\nWhile in the template you could do:\n\n```hbs\n<p>Welcome, {{@firstName}} {{@lastName}}!</p>\n```",
|
|
20408
20605
|
"class": "Keywords",
|
|
20409
20606
|
"module": "@glimmer/component"
|
|
20410
20607
|
},
|
|
20411
20608
|
{
|
|
20412
|
-
"file": "packages/@glimmer/component/dist/index.js",
|
|
20413
|
-
"line":
|
|
20609
|
+
"file": "packages/@glimmer/component/dist/dev/index.js",
|
|
20610
|
+
"line": 238,
|
|
20611
|
+
"description": "Called before the component has been removed from the DOM.",
|
|
20612
|
+
"class": "Keywords",
|
|
20613
|
+
"module": "@glimmer/component"
|
|
20614
|
+
},
|
|
20615
|
+
{
|
|
20616
|
+
"file": "packages/@glimmer/component/dist/dev/index.js",
|
|
20617
|
+
"line": 273,
|
|
20618
|
+
"description": "This component manager runs in Ember.js environments and extends the base component manager to:\n\n1. Properly destroy the component's associated `meta` data structure\n2. Schedule destruction using Ember's runloop",
|
|
20619
|
+
"class": "Keywords",
|
|
20620
|
+
"module": "@glimmer/component"
|
|
20621
|
+
},
|
|
20622
|
+
{
|
|
20623
|
+
"file": "packages/@glimmer/component/dist/prod/index.js",
|
|
20624
|
+
"line": 13,
|
|
20625
|
+
"description": "This provides us a way to have a \"fallback\" which represents an empty object,\nwithout the downsides of how TS treats `{}`. Specifically: this will\ncorrectly leverage \"excess property checking\" so that, given a component\nwhich has no named args, if someone invokes it with any named args, they will\nget a type error.",
|
|
20626
|
+
"internal": "This is exported so declaration emit works (if it were not emitted,\n declarations which fall back to it would not work). It is *not* intended for\n public usage, and the specific mechanics it uses may change at any time.\n The location of this export *is* part of the public API, because moving it\n will break existing declarations, but is not legal for end users to import\n themselves, so ***DO NOT RELY ON IT***.",
|
|
20627
|
+
"class": "Keywords",
|
|
20628
|
+
"module": "@glimmer/component"
|
|
20629
|
+
},
|
|
20630
|
+
{
|
|
20631
|
+
"file": "packages/@glimmer/component/dist/prod/index.js",
|
|
20632
|
+
"line": 28,
|
|
20633
|
+
"class": "Keywords",
|
|
20634
|
+
"module": "@glimmer/component"
|
|
20635
|
+
},
|
|
20636
|
+
{
|
|
20637
|
+
"file": "packages/@glimmer/component/dist/prod/index.js",
|
|
20638
|
+
"line": 30,
|
|
20639
|
+
"description": "Given any allowed shorthand form of a signature, desugars it to its full\nexpanded type.",
|
|
20640
|
+
"internal": "This is only exported so we can avoid duplicating it in\n [Glint](https://github.com/typed-ember/glint) or other such tooling. It is\n *not* intended for public usage, and the specific mechanics it uses may\n change at any time. Although the signature produced by is part of Glimmer's\n public API the existence and mechanics of this specific symbol are *not*,\n so ***DO NOT RELY ON IT***.",
|
|
20641
|
+
"class": "Keywords",
|
|
20642
|
+
"module": "@glimmer/component"
|
|
20643
|
+
},
|
|
20644
|
+
{
|
|
20645
|
+
"file": "packages/@glimmer/component/dist/prod/index.js",
|
|
20646
|
+
"line": 47,
|
|
20647
|
+
"internal": "we use this type for convenience internally; inference means users\n should not normally need to name it",
|
|
20648
|
+
"class": "Keywords",
|
|
20649
|
+
"module": "@glimmer/component"
|
|
20650
|
+
},
|
|
20651
|
+
{
|
|
20652
|
+
"file": "packages/@glimmer/component/dist/prod/index.js",
|
|
20653
|
+
"line": 52,
|
|
20654
|
+
"description": "The `Component` class defines an encapsulated UI element that is rendered to\nthe DOM. A component is made up of a template and, optionally, this component\nobject.\n\n## Defining a Component\n\nTo define a component, subclass `Component` and add your own properties,\nmethods and lifecycle hooks:\n\n```ts\nimport Component from '@glimmer/component';\n\nexport default class extends Component {\n}\n```\n\n## Lifecycle Hooks\n\nLifecycle hooks allow you to respond to changes to a component, such as when\nit gets created, rendered, updated or destroyed. To add a lifecycle hook to a\ncomponent, implement the hook as a method on your component subclass.\n\nFor example, to be notified when Glimmer has rendered your component so you\ncan attach a legacy jQuery plugin, implement the `didInsertElement()` method:\n\n```ts\nimport Component from '@glimmer/component';\n\nexport default class extends Component {\n didInsertElement() {\n $(this.element).pickadate();\n }\n}\n```\n\n## Data for Templates\n\n`Component`s have two different kinds of data, or state, that can be\ndisplayed in templates:\n\n1. Arguments\n2. Properties\n\nArguments are data that is passed in to a component from its parent\ncomponent. For example, if I have a `UserGreeting` component, I can pass it\na name and greeting to use:\n\n```hbs\n<UserGreeting @name=\"Ricardo\" @greeting=\"Olá\" />\n```\n\nInside my `UserGreeting` template, I can access the `@name` and `@greeting`\narguments that I've been given:\n\n```hbs\n{{@greeting}}, {{@name}}!\n```\n\nArguments are also available inside my component:\n\n```ts\nconsole.log(this.args.greeting); // prints \"Olá\"\n```\n\nProperties, on the other hand, are internal to the component and declared in\nthe class. You can use properties to store data that you want to show in the\ntemplate, or pass to another component as an argument.\n\n```ts\nimport Component from '@glimmer/component';\n\nexport default class extends Component {\n user = {\n name: 'Robbie'\n }\n}\n```\n\nIn the above example, we've defined a component with a `user` property that\ncontains an object with its own `name` property.\n\nWe can render that property in our template:\n\n```hbs\nHello, {{user.name}}!\n```\n\nWe can also take that property and pass it as an argument to the\n`UserGreeting` component we defined above:\n\n```hbs\n<UserGreeting @greeting=\"Hello\" @name={{user.name}} />\n```\n\n## Arguments vs. Properties\n\nRemember, arguments are data that was given to your component by its parent\ncomponent, and properties are data your component has defined for itself.\n\nYou can tell the difference between arguments and properties in templates\nbecause arguments always start with an `@` sign (think \"A is for arguments\"):\n\n```hbs\n{{@firstName}}\n```\n\nWe know that `@firstName` came from the parent component, not the current\ncomponent, because it starts with `@` and is therefore an argument.\n\nOn the other hand, if we see:\n\n```hbs\n{{name}}\n```\n\nWe know that `name` is a property on the component. If we want to know where\nthe data is coming from, we can go look at our component class to find out.\n\nInside the component itself, arguments always show up inside the component's\n`args` property. For example, if `{{@firstName}}` is `Tom` in the template,\ninside the component `this.args.firstName` would also be `Tom`.",
|
|
20655
|
+
"class": "Keywords",
|
|
20656
|
+
"module": "@glimmer/component"
|
|
20657
|
+
},
|
|
20658
|
+
{
|
|
20659
|
+
"file": "packages/@glimmer/component/dist/prod/index.js",
|
|
20660
|
+
"line": 179,
|
|
20661
|
+
"description": "Constructs a new component and assigns itself the passed properties. You\nshould not construct new components yourself. Instead, Glimmer will\ninstantiate new components automatically as it renders.",
|
|
20662
|
+
"params": [
|
|
20663
|
+
{
|
|
20664
|
+
"name": "owner",
|
|
20665
|
+
"description": ""
|
|
20666
|
+
},
|
|
20667
|
+
{
|
|
20668
|
+
"name": "args",
|
|
20669
|
+
"description": ""
|
|
20670
|
+
}
|
|
20671
|
+
],
|
|
20672
|
+
"class": "Keywords",
|
|
20673
|
+
"module": "@glimmer/component"
|
|
20674
|
+
},
|
|
20675
|
+
{
|
|
20676
|
+
"file": "packages/@glimmer/component/dist/prod/index.js",
|
|
20677
|
+
"line": 191,
|
|
20678
|
+
"description": "Named arguments passed to the component from its parent component.\nThey can be accessed in JavaScript via `this.args.argumentName` and in the template via `@argumentName`.\n\nSay you have the following component, which will have two `args`, `firstName` and `lastName`:\n\n```hbs\n<my-component @firstName=\"Arthur\" @lastName=\"Dent\" />\n```\n\nIf you needed to calculate `fullName` by combining both of them, you would do:\n\n```ts\ndidInsertElement() {\n console.log(`Hi, my full name is ${this.args.firstName} ${this.args.lastName}`);\n}\n```\n\nWhile in the template you could do:\n\n```hbs\n<p>Welcome, {{@firstName}} {{@lastName}}!</p>\n```",
|
|
20679
|
+
"class": "Keywords",
|
|
20680
|
+
"module": "@glimmer/component"
|
|
20681
|
+
},
|
|
20682
|
+
{
|
|
20683
|
+
"file": "packages/@glimmer/component/dist/prod/index.js",
|
|
20684
|
+
"line": 223,
|
|
20414
20685
|
"description": "Called before the component has been removed from the DOM.",
|
|
20415
20686
|
"class": "Keywords",
|
|
20416
20687
|
"module": "@glimmer/component"
|
|
20417
20688
|
},
|
|
20418
20689
|
{
|
|
20419
|
-
"file": "packages/@glimmer/component/dist/index.js",
|
|
20420
|
-
"line":
|
|
20690
|
+
"file": "packages/@glimmer/component/dist/prod/index.js",
|
|
20691
|
+
"line": 255,
|
|
20421
20692
|
"description": "This component manager runs in Ember.js environments and extends the base component manager to:\n\n1. Properly destroy the component's associated `meta` data structure\n2. Schedule destruction using Ember's runloop",
|
|
20422
20693
|
"class": "Keywords",
|
|
20423
20694
|
"module": "@glimmer/component"
|
|
20424
20695
|
},
|
|
20425
20696
|
{
|
|
20426
20697
|
"file": "packages/@glimmer/component/src/-private/component.ts",
|
|
20427
|
-
"line":
|
|
20698
|
+
"line": 29,
|
|
20428
20699
|
"description": "This provides us a way to have a \"fallback\" which represents an empty object,\nwithout the downsides of how TS treats `{}`. Specifically: this will\ncorrectly leverage \"excess property checking\" so that, given a component\nwhich has no named args, if someone invokes it with any named args, they will\nget a type error.",
|
|
20429
20700
|
"internal": "This is exported so declaration emit works (if it were not emitted,\n declarations which fall back to it would not work). It is *not* intended for\n public usage, and the specific mechanics it uses may change at any time.\n The location of this export *is* part of the public API, because moving it\n will break existing declarations, but is not legal for end users to import\n themselves, so ***DO NOT RELY ON IT***.",
|
|
20430
20701
|
"class": "Keywords",
|
|
@@ -20432,13 +20703,13 @@
|
|
|
20432
20703
|
},
|
|
20433
20704
|
{
|
|
20434
20705
|
"file": "packages/@glimmer/component/src/-private/component.ts",
|
|
20435
|
-
"line":
|
|
20706
|
+
"line": 49,
|
|
20436
20707
|
"class": "Keywords",
|
|
20437
20708
|
"module": "@glimmer/component"
|
|
20438
20709
|
},
|
|
20439
20710
|
{
|
|
20440
20711
|
"file": "packages/@glimmer/component/src/-private/component.ts",
|
|
20441
|
-
"line":
|
|
20712
|
+
"line": 72,
|
|
20442
20713
|
"description": "Given any allowed shorthand form of a signature, desugars it to its full\nexpanded type.",
|
|
20443
20714
|
"internal": "This is only exported so we can avoid duplicating it in\n [Glint](https://github.com/typed-ember/glint) or other such tooling. It is\n *not* intended for public usage, and the specific mechanics it uses may\n change at any time. Although the signature produced by is part of Glimmer's\n public API the existence and mechanics of this specific symbol are *not*,\n so ***DO NOT RELY ON IT***.",
|
|
20444
20715
|
"class": "Keywords",
|
|
@@ -20446,21 +20717,21 @@
|
|
|
20446
20717
|
},
|
|
20447
20718
|
{
|
|
20448
20719
|
"file": "packages/@glimmer/component/src/-private/component.ts",
|
|
20449
|
-
"line":
|
|
20720
|
+
"line": 90,
|
|
20450
20721
|
"internal": "we use this type for convenience internally; inference means users\n should not normally need to name it",
|
|
20451
20722
|
"class": "Keywords",
|
|
20452
20723
|
"module": "@glimmer/component"
|
|
20453
20724
|
},
|
|
20454
20725
|
{
|
|
20455
20726
|
"file": "packages/@glimmer/component/src/-private/component.ts",
|
|
20456
|
-
"line":
|
|
20727
|
+
"line": 96,
|
|
20457
20728
|
"description": "The `Component` class defines an encapsulated UI element that is rendered to\nthe DOM. A component is made up of a template and, optionally, this component\nobject.\n\n## Defining a Component\n\nTo define a component, subclass `Component` and add your own properties,\nmethods and lifecycle hooks:\n\n```ts\nimport Component from '@glimmer/component';\n\nexport default class extends Component {\n}\n```\n\n## Lifecycle Hooks\n\nLifecycle hooks allow you to respond to changes to a component, such as when\nit gets created, rendered, updated or destroyed. To add a lifecycle hook to a\ncomponent, implement the hook as a method on your component subclass.\n\nFor example, to be notified when Glimmer has rendered your component so you\ncan attach a legacy jQuery plugin, implement the `didInsertElement()` method:\n\n```ts\nimport Component from '@glimmer/component';\n\nexport default class extends Component {\n didInsertElement() {\n $(this.element).pickadate();\n }\n}\n```\n\n## Data for Templates\n\n`Component`s have two different kinds of data, or state, that can be\ndisplayed in templates:\n\n1. Arguments\n2. Properties\n\nArguments are data that is passed in to a component from its parent\ncomponent. For example, if I have a `UserGreeting` component, I can pass it\na name and greeting to use:\n\n```hbs\n<UserGreeting @name=\"Ricardo\" @greeting=\"Olá\" />\n```\n\nInside my `UserGreeting` template, I can access the `@name` and `@greeting`\narguments that I've been given:\n\n```hbs\n{{@greeting}}, {{@name}}!\n```\n\nArguments are also available inside my component:\n\n```ts\nconsole.log(this.args.greeting); // prints \"Olá\"\n```\n\nProperties, on the other hand, are internal to the component and declared in\nthe class. You can use properties to store data that you want to show in the\ntemplate, or pass to another component as an argument.\n\n```ts\nimport Component from '@glimmer/component';\n\nexport default class extends Component {\n user = {\n name: 'Robbie'\n }\n}\n```\n\nIn the above example, we've defined a component with a `user` property that\ncontains an object with its own `name` property.\n\nWe can render that property in our template:\n\n```hbs\nHello, {{user.name}}!\n```\n\nWe can also take that property and pass it as an argument to the\n`UserGreeting` component we defined above:\n\n```hbs\n<UserGreeting @greeting=\"Hello\" @name={{user.name}} />\n```\n\n## Arguments vs. Properties\n\nRemember, arguments are data that was given to your component by its parent\ncomponent, and properties are data your component has defined for itself.\n\nYou can tell the difference between arguments and properties in templates\nbecause arguments always start with an `@` sign (think \"A is for arguments\"):\n\n```hbs\n{{@firstName}}\n```\n\nWe know that `@firstName` came from the parent component, not the current\ncomponent, because it starts with `@` and is therefore an argument.\n\nOn the other hand, if we see:\n\n```hbs\n{{name}}\n```\n\nWe know that `name` is a property on the component. If we want to know where\nthe data is coming from, we can go look at our component class to find out.\n\nInside the component itself, arguments always show up inside the component's\n`args` property. For example, if `{{@firstName}}` is `Tom` in the template,\ninside the component `this.args.firstName` would also be `Tom`.",
|
|
20458
20729
|
"class": "Keywords",
|
|
20459
20730
|
"module": "@glimmer/component"
|
|
20460
20731
|
},
|
|
20461
20732
|
{
|
|
20462
20733
|
"file": "packages/@glimmer/component/src/-private/component.ts",
|
|
20463
|
-
"line":
|
|
20734
|
+
"line": 223,
|
|
20464
20735
|
"description": "Constructs a new component and assigns itself the passed properties. You\nshould not construct new components yourself. Instead, Glimmer will\ninstantiate new components automatically as it renders.",
|
|
20465
20736
|
"params": [
|
|
20466
20737
|
{
|
|
@@ -20477,14 +20748,14 @@
|
|
|
20477
20748
|
},
|
|
20478
20749
|
{
|
|
20479
20750
|
"file": "packages/@glimmer/component/src/-private/component.ts",
|
|
20480
|
-
"line":
|
|
20751
|
+
"line": 241,
|
|
20481
20752
|
"description": "Named arguments passed to the component from its parent component.\nThey can be accessed in JavaScript via `this.args.argumentName` and in the template via `@argumentName`.\n\nSay you have the following component, which will have two `args`, `firstName` and `lastName`:\n\n```hbs\n<my-component @firstName=\"Arthur\" @lastName=\"Dent\" />\n```\n\nIf you needed to calculate `fullName` by combining both of them, you would do:\n\n```ts\ndidInsertElement() {\n console.log(`Hi, my full name is ${this.args.firstName} ${this.args.lastName}`);\n}\n```\n\nWhile in the template you could do:\n\n```hbs\n<p>Welcome, {{@firstName}} {{@lastName}}!</p>\n```",
|
|
20482
20753
|
"class": "Keywords",
|
|
20483
20754
|
"module": "@glimmer/component"
|
|
20484
20755
|
},
|
|
20485
20756
|
{
|
|
20486
20757
|
"file": "packages/@glimmer/component/src/-private/component.ts",
|
|
20487
|
-
"line":
|
|
20758
|
+
"line": 275,
|
|
20488
20759
|
"description": "Called before the component has been removed from the DOM.",
|
|
20489
20760
|
"class": "Keywords",
|
|
20490
20761
|
"module": "@glimmer/component"
|
|
@@ -20805,6 +21076,12 @@
|
|
|
20805
21076
|
"class": "Keywords",
|
|
20806
21077
|
"module": "@glimmer/component"
|
|
20807
21078
|
},
|
|
21079
|
+
{
|
|
21080
|
+
"file": "packages/@glimmer/destroyable/index.ts",
|
|
21081
|
+
"line": 241,
|
|
21082
|
+
"class": "Keywords",
|
|
21083
|
+
"module": "@glimmer/component"
|
|
21084
|
+
},
|
|
20808
21085
|
{
|
|
20809
21086
|
"file": "packages/@glimmer/global-context/index.ts",
|
|
20810
21087
|
"line": 4,
|
|
@@ -21942,21 +22219,21 @@
|
|
|
21942
22219
|
},
|
|
21943
22220
|
{
|
|
21944
22221
|
"file": "packages/@glimmer/runtime/lib/vm/append.ts",
|
|
21945
|
-
"line":
|
|
22222
|
+
"line": 146,
|
|
21946
22223
|
"description": "Fetch a value from a syscall register onto the stack.\n\n## Opcodes\n\n- Append: `Fetch`\n\n## State changes\n\n[!] push Eval Stack <- $register",
|
|
21947
22224
|
"class": "@glimmer/tracking",
|
|
21948
22225
|
"module": "@ember/helper"
|
|
21949
22226
|
},
|
|
21950
22227
|
{
|
|
21951
22228
|
"file": "packages/@glimmer/runtime/lib/vm/append.ts",
|
|
21952
|
-
"line":
|
|
22229
|
+
"line": 163,
|
|
21953
22230
|
"description": "Load a value from the stack into a syscall register.\n\n## Opcodes\n\n- Append: `Load`\n\n## State changes\n\n[!] pop Eval Stack -> `value`\n[$] $register <- `value`",
|
|
21954
22231
|
"class": "@glimmer/tracking",
|
|
21955
22232
|
"module": "@ember/helper"
|
|
21956
22233
|
},
|
|
21957
22234
|
{
|
|
21958
22235
|
"file": "packages/@glimmer/runtime/lib/vm/append.ts",
|
|
21959
|
-
"line":
|
|
22236
|
+
"line": 181,
|
|
21960
22237
|
"description": "Load a value into a syscall register.\n\n## State changes\n\n[$] $register <- `value`",
|
|
21961
22238
|
"utility": "",
|
|
21962
22239
|
"class": "@glimmer/tracking",
|
|
@@ -21964,7 +22241,7 @@
|
|
|
21964
22241
|
},
|
|
21965
22242
|
{
|
|
21966
22243
|
"file": "packages/@glimmer/runtime/lib/vm/append.ts",
|
|
21967
|
-
"line":
|
|
22244
|
+
"line": 194,
|
|
21968
22245
|
"description": "Fetch a value from a register (machine or syscall).\n\n## State changes\n\n[ ] get $register",
|
|
21969
22246
|
"utility": "",
|
|
21970
22247
|
"class": "@glimmer/tracking",
|
|
@@ -21972,105 +22249,105 @@
|
|
|
21972
22249
|
},
|
|
21973
22250
|
{
|
|
21974
22251
|
"file": "packages/@glimmer/runtime/lib/vm/append.ts",
|
|
21975
|
-
"line":
|
|
22252
|
+
"line": 337,
|
|
21976
22253
|
"description": "## Opcodes\n\n- Append: `BeginComponentTransaction`\n\n## State Changes\n\n[ ] create `guard` (`JumpIfNotModifiedOpcode`)\n[ ] create `tracker` (`BeginTrackFrameOpcode`)\n[!] push Updating Stack <- `guard`\n[!] push Updating Stack <- `tracker`\n[!] push Cache Stack <- `guard`\n[!] push Tracking Stack",
|
|
21977
22254
|
"class": "@glimmer/tracking",
|
|
21978
22255
|
"module": "@ember/helper"
|
|
21979
22256
|
},
|
|
21980
22257
|
{
|
|
21981
22258
|
"file": "packages/@glimmer/runtime/lib/vm/append.ts",
|
|
21982
|
-
"line":
|
|
22259
|
+
"line": 362,
|
|
21983
22260
|
"description": "## Opcodes\n\n- Append: `CommitComponentTransaction`\n\n## State Changes\n\nCreate a new `EndTrackFrameOpcode` (`end`)\n\n[!] pop CacheStack -> `guard`\n[!] pop Tracking Stack -> `tag`\n[ ] create `end` (`EndTrackFrameOpcode`) with `guard`\n[-] consume `tag`",
|
|
21984
22261
|
"class": "@glimmer/tracking",
|
|
21985
22262
|
"module": "@ember/helper"
|
|
21986
22263
|
},
|
|
21987
22264
|
{
|
|
21988
22265
|
"file": "packages/@glimmer/runtime/lib/vm/append.ts",
|
|
21989
|
-
"line":
|
|
22266
|
+
"line": 386,
|
|
21990
22267
|
"description": "## Opcodes\n\n- Append: `Enter`\n\n## State changes\n\n[!] push Element Stack as `block`\n[ ] create `try` (`TryOpcode`) with `block`, capturing `args` from the Eval Stack\n\nDid Enter (`try`):\n[-] associate destroyable `try`\n[!] push Destroyable Stack <- `try`\n[!] push Updating List <- `try`\n[!] push Updating Stack <- `try.children`",
|
|
21991
22268
|
"class": "@glimmer/tracking",
|
|
21992
22269
|
"module": "@ember/helper"
|
|
21993
22270
|
},
|
|
21994
22271
|
{
|
|
21995
22272
|
"file": "packages/@glimmer/runtime/lib/vm/append.ts",
|
|
21996
|
-
"line":
|
|
22273
|
+
"line": 413,
|
|
21997
22274
|
"description": "## Opcodes\n\n- Append: `Iterate`\n- Update: `ListBlock`\n\n## State changes\n\nCreate a new ref for the iterator item (`value`).\nCreate a new ref for the iterator key (`key`).\n\n[ ] create `valueRef` (`Reference`) from `value`\n[ ] create `keyRef` (`Reference`) from `key`\n[!] push Eval Stack <- `valueRef`\n[!] push Eval Stack <- `keyRef`\n[!] push Element Stack <- `UpdatableBlock` as `block`\n[ ] capture `closure` with *2* items from the Eval Stack\n[ ] create `iteration` (`ListItemOpcode`) with `closure`, `block`, `key`, `keyRef` and `valueRef`\n\nDid Enter (`iteration`):\n[-] associate destroyable `iteration`\n[!] push Destroyable Stack <- `iteration`\n[!] push Updating List <- `iteration`\n[!] push Updating Stack <- `iteration.children`",
|
|
21998
22275
|
"class": "@glimmer/tracking",
|
|
21999
22276
|
"module": "@ember/helper"
|
|
22000
22277
|
},
|
|
22001
22278
|
{
|
|
22002
22279
|
"file": "packages/@glimmer/runtime/lib/vm/append.ts",
|
|
22003
|
-
"line":
|
|
22280
|
+
"line": 460,
|
|
22004
22281
|
"description": "## Opcodes\n\n- Append: `EnterList`\n\n## State changes\n\n[ ] capture `closure` with *0* items from the Eval Stack, and `$pc` from `offset`\n[ ] create `updating` (empty `Array`)\n[!] push Element Stack <- `list` (`BlockList`) with `updating`\n[ ] create `list` (`ListBlockOpcode`) with `closure`, `list`, `updating` and `iterableRef`\n[!] push List Stack <- `list`\n\nDid Enter (`list`):\n[-] associate destroyable `list`\n[!] push Destroyable Stack <- `list`\n[!] push Updating List <- `list`\n[!] push Updating Stack <- `list.children`",
|
|
22005
22282
|
"class": "@glimmer/tracking",
|
|
22006
22283
|
"module": "@ember/helper"
|
|
22007
22284
|
},
|
|
22008
22285
|
{
|
|
22009
22286
|
"file": "packages/@glimmer/runtime/lib/vm/append.ts",
|
|
22010
|
-
"line":
|
|
22287
|
+
"line": 493,
|
|
22011
22288
|
"description": "## Opcodes\n\n- Append: `Enter`\n- Append: `Iterate`\n- Append: `EnterList`\n- Update: `ListBlock`\n\n## State changes\n\n[-] associate destroyable `opcode`\n[!] push Destroyable Stack <- `opcode`\n[!] push Updating List <- `opcode`\n[!] push Updating Stack <- `opcode.children`",
|
|
22012
22289
|
"class": "@glimmer/tracking",
|
|
22013
22290
|
"module": "@ember/helper"
|
|
22014
22291
|
},
|
|
22015
22292
|
{
|
|
22016
22293
|
"file": "packages/@glimmer/runtime/lib/vm/append.ts",
|
|
22017
|
-
"line":
|
|
22294
|
+
"line": 516,
|
|
22018
22295
|
"description": "## Opcodes\n\n- Append: `Exit`\n- Append: `ExitList`\n\n## State changes\n\n[!] pop Destroyable Stack\n[!] pop Element Stack\n[!] pop Updating Stack",
|
|
22019
22296
|
"class": "@glimmer/tracking",
|
|
22020
22297
|
"module": "@ember/helper"
|
|
22021
22298
|
},
|
|
22022
22299
|
{
|
|
22023
22300
|
"file": "packages/@glimmer/runtime/lib/vm/append.ts",
|
|
22024
|
-
"line":
|
|
22301
|
+
"line": 534,
|
|
22025
22302
|
"description": "## Opcodes\n\n- Append: `ExitList`\n\n## State changes\n\nPop List:\n[!] pop Destroyable Stack\n[!] pop Element Stack\n[!] pop Updating Stack\n\n[!] pop List Stack",
|
|
22026
22303
|
"class": "@glimmer/tracking",
|
|
22027
22304
|
"module": "@ember/helper"
|
|
22028
22305
|
},
|
|
22029
22306
|
{
|
|
22030
22307
|
"file": "packages/@glimmer/runtime/lib/vm/append.ts",
|
|
22031
|
-
"line":
|
|
22308
|
+
"line": 553,
|
|
22032
22309
|
"description": "## Opcodes\n\n- Append: `RootScope`\n- Append: `VirtualRootScope`\n\n## State changes\n\n[!] push Scope Stack",
|
|
22033
22310
|
"class": "@glimmer/tracking",
|
|
22034
22311
|
"module": "@ember/helper"
|
|
22035
22312
|
},
|
|
22036
22313
|
{
|
|
22037
22314
|
"file": "packages/@glimmer/runtime/lib/vm/append.ts",
|
|
22038
|
-
"line":
|
|
22315
|
+
"line": 569,
|
|
22039
22316
|
"description": "## Opcodes\n\n- Append: `ChildScope`\n\n## State changes\n\n[!] push Scope Stack <- `child` of current Scope",
|
|
22040
22317
|
"class": "@glimmer/tracking",
|
|
22041
22318
|
"module": "@ember/helper"
|
|
22042
22319
|
},
|
|
22043
22320
|
{
|
|
22044
22321
|
"file": "packages/@glimmer/runtime/lib/vm/append.ts",
|
|
22045
|
-
"line":
|
|
22322
|
+
"line": 582,
|
|
22046
22323
|
"description": "## Opcodes\n\n- Append: `Yield`\n\n## State changes\n\n[!] push Scope Stack <- `scope`",
|
|
22047
22324
|
"class": "@glimmer/tracking",
|
|
22048
22325
|
"module": "@ember/helper"
|
|
22049
22326
|
},
|
|
22050
22327
|
{
|
|
22051
22328
|
"file": "packages/@glimmer/runtime/lib/vm/append.ts",
|
|
22052
|
-
"line":
|
|
22329
|
+
"line": 595,
|
|
22053
22330
|
"description": "## Opcodes\n\n- Append: `PopScope`\n\n## State changes\n\n[!] pop Scope Stack",
|
|
22054
22331
|
"class": "@glimmer/tracking",
|
|
22055
22332
|
"module": "@ember/helper"
|
|
22056
22333
|
},
|
|
22057
22334
|
{
|
|
22058
22335
|
"file": "packages/@glimmer/runtime/lib/vm/append.ts",
|
|
22059
|
-
"line":
|
|
22336
|
+
"line": 608,
|
|
22060
22337
|
"description": "## Opcodes\n\n- Append: `PushDynamicScope`\n\n## State changes:\n\n[!] push Dynamic Scope Stack <- child of current Dynamic Scope",
|
|
22061
22338
|
"class": "@glimmer/tracking",
|
|
22062
22339
|
"module": "@ember/helper"
|
|
22063
22340
|
},
|
|
22064
22341
|
{
|
|
22065
22342
|
"file": "packages/@glimmer/runtime/lib/vm/append.ts",
|
|
22066
|
-
"line":
|
|
22343
|
+
"line": 623,
|
|
22067
22344
|
"description": "## Opcodes\n\n- Append: `BindDynamicScope`\n\n## State changes:\n\n[!] pop Dynamic Scope Stack `names.length` times",
|
|
22068
22345
|
"class": "@glimmer/tracking",
|
|
22069
22346
|
"module": "@ember/helper"
|
|
22070
22347
|
},
|
|
22071
22348
|
{
|
|
22072
22349
|
"file": "packages/@glimmer/runtime/lib/vm/append.ts",
|
|
22073
|
-
"line":
|
|
22350
|
+
"line": 640,
|
|
22074
22351
|
"description": "## State changes\n\n- [!] push Updating Stack",
|
|
22075
22352
|
"utility": "",
|
|
22076
22353
|
"class": "@glimmer/tracking",
|
|
@@ -22078,7 +22355,7 @@
|
|
|
22078
22355
|
},
|
|
22079
22356
|
{
|
|
22080
22357
|
"file": "packages/@glimmer/runtime/lib/vm/append.ts",
|
|
22081
|
-
"line":
|
|
22358
|
+
"line": 651,
|
|
22082
22359
|
"description": "## State changes\n\n[!] pop Updating Stack",
|
|
22083
22360
|
"utility": "",
|
|
22084
22361
|
"class": "@glimmer/tracking",
|
|
@@ -22086,7 +22363,7 @@
|
|
|
22086
22363
|
},
|
|
22087
22364
|
{
|
|
22088
22365
|
"file": "packages/@glimmer/runtime/lib/vm/append.ts",
|
|
22089
|
-
"line":
|
|
22366
|
+
"line": 662,
|
|
22090
22367
|
"description": "## State changes\n\n[!] push Updating List",
|
|
22091
22368
|
"utility": "",
|
|
22092
22369
|
"class": "@glimmer/tracking",
|
|
@@ -22094,7 +22371,7 @@
|
|
|
22094
22371
|
},
|
|
22095
22372
|
{
|
|
22096
22373
|
"file": "packages/@glimmer/runtime/lib/vm/append.ts",
|
|
22097
|
-
"line":
|
|
22374
|
+
"line": 677,
|
|
22098
22375
|
"description": "## State changes\n\n[-] associate destroyable `child`",
|
|
22099
22376
|
"utility": "",
|
|
22100
22377
|
"class": "@glimmer/tracking",
|
|
@@ -22102,76 +22379,76 @@
|
|
|
22102
22379
|
},
|
|
22103
22380
|
{
|
|
22104
22381
|
"file": "packages/@glimmer/runtime/lib/vm/append.ts",
|
|
22105
|
-
"line":
|
|
22382
|
+
"line": 696,
|
|
22106
22383
|
"description": "Get Tree Builder",
|
|
22107
22384
|
"class": "@glimmer/tracking",
|
|
22108
22385
|
"module": "@ember/helper"
|
|
22109
22386
|
},
|
|
22110
22387
|
{
|
|
22111
22388
|
"file": "packages/@glimmer/runtime/lib/vm/append.ts",
|
|
22112
|
-
"line":
|
|
22389
|
+
"line": 703,
|
|
22113
22390
|
"description": "Get current Scope",
|
|
22114
22391
|
"class": "@glimmer/tracking",
|
|
22115
22392
|
"module": "@ember/helper"
|
|
22116
22393
|
},
|
|
22117
22394
|
{
|
|
22118
22395
|
"file": "packages/@glimmer/runtime/lib/vm/append.ts",
|
|
22119
|
-
"line":
|
|
22396
|
+
"line": 710,
|
|
22120
22397
|
"description": "Get current Dynamic Scope",
|
|
22121
22398
|
"class": "@glimmer/tracking",
|
|
22122
22399
|
"module": "@ember/helper"
|
|
22123
22400
|
},
|
|
22124
22401
|
{
|
|
22125
22402
|
"file": "packages/@glimmer/runtime/lib/vm/append.ts",
|
|
22126
|
-
"line":
|
|
22403
|
+
"line": 821,
|
|
22127
22404
|
"description": "The address of the compiled template. This is converted into a\npc when the VM is created.",
|
|
22128
22405
|
"class": "@glimmer/tracking",
|
|
22129
22406
|
"module": "@ember/helper"
|
|
22130
22407
|
},
|
|
22131
22408
|
{
|
|
22132
22409
|
"file": "packages/@glimmer/runtime/lib/vm/append.ts",
|
|
22133
|
-
"line":
|
|
22410
|
+
"line": 827,
|
|
22134
22411
|
"description": "Optionally, specify the root scope for the VM. If not specified,\nthe VM will use a root scope with no `this` reference and no\nsymbols.",
|
|
22135
22412
|
"class": "@glimmer/tracking",
|
|
22136
22413
|
"module": "@ember/helper"
|
|
22137
22414
|
},
|
|
22138
22415
|
{
|
|
22139
22416
|
"file": "packages/@glimmer/runtime/lib/vm/append.ts",
|
|
22140
|
-
"line":
|
|
22417
|
+
"line": 833,
|
|
22141
22418
|
"class": "@glimmer/tracking",
|
|
22142
22419
|
"module": "@ember/helper"
|
|
22143
22420
|
},
|
|
22144
22421
|
{
|
|
22145
22422
|
"file": "packages/@glimmer/runtime/lib/vm/append.ts",
|
|
22146
|
-
"line":
|
|
22423
|
+
"line": 842,
|
|
22147
22424
|
"description": "The program counter that subsequent evaluations should start from.",
|
|
22148
22425
|
"class": "@glimmer/tracking",
|
|
22149
22426
|
"module": "@ember/helper"
|
|
22150
22427
|
},
|
|
22151
22428
|
{
|
|
22152
22429
|
"file": "packages/@glimmer/runtime/lib/vm/append.ts",
|
|
22153
|
-
"line":
|
|
22430
|
+
"line": 847,
|
|
22154
22431
|
"description": "The current value of the VM's scope (which changes whenever a component is invoked or a block\nwith block params is entered).",
|
|
22155
22432
|
"class": "@glimmer/tracking",
|
|
22156
22433
|
"module": "@ember/helper"
|
|
22157
22434
|
},
|
|
22158
22435
|
{
|
|
22159
22436
|
"file": "packages/@glimmer/runtime/lib/vm/append.ts",
|
|
22160
|
-
"line":
|
|
22437
|
+
"line": 853,
|
|
22161
22438
|
"description": "The current value of the VM's dynamic scope",
|
|
22162
22439
|
"class": "@glimmer/tracking",
|
|
22163
22440
|
"module": "@ember/helper"
|
|
22164
22441
|
},
|
|
22165
22442
|
{
|
|
22166
22443
|
"file": "packages/@glimmer/runtime/lib/vm/append.ts",
|
|
22167
|
-
"line":
|
|
22444
|
+
"line": 858,
|
|
22168
22445
|
"description": "A number of stack elements captured during the initial evaluation, and which should be restored\nto the stack when the block is re-evaluated.",
|
|
22169
22446
|
"class": "@glimmer/tracking",
|
|
22170
22447
|
"module": "@ember/helper"
|
|
22171
22448
|
},
|
|
22172
22449
|
{
|
|
22173
22450
|
"file": "packages/@glimmer/runtime/lib/vm/append.ts",
|
|
22174
|
-
"line":
|
|
22451
|
+
"line": 865,
|
|
22175
22452
|
"description": "A closure captures the state of the VM for a particular block of code that is necessary to\nre-invoke the block in the future.\n\nIn practice, this allows us to clear the previous render and \"replay\" the block's execution,\nrendering content in the same position as the first render.",
|
|
22176
22453
|
"class": "@glimmer/tracking",
|
|
22177
22454
|
"module": "@ember/helper"
|
|
@@ -24096,6 +24373,13 @@
|
|
|
24096
24373
|
"class": "TestAdapter",
|
|
24097
24374
|
"module": "@glimmer/tracking"
|
|
24098
24375
|
},
|
|
24376
|
+
{
|
|
24377
|
+
"file": "packages/@glimmer/util/lib/destroyable-key.ts",
|
|
24378
|
+
"line": 1,
|
|
24379
|
+
"description": "Classes Glimmer constructs itself declare this slot, so that\n`@glimmer/destroyable` can hold their meta directly rather than in its\n`WeakMap`. It lives here so packages below `@glimmer/destroyable` can declare\nthe slot without depending on it.\n\nNever write this onto an object Glimmer did not construct. Destroyables are\npublic through `@ember/destroyable` and can be any object a user hands in.",
|
|
24380
|
+
"class": "TestAdapter",
|
|
24381
|
+
"module": "@glimmer/tracking"
|
|
24382
|
+
},
|
|
24099
24383
|
{
|
|
24100
24384
|
"file": "packages/@glimmer/util/lib/intern.ts",
|
|
24101
24385
|
"line": 1,
|
|
@@ -24582,15 +24866,15 @@
|
|
|
24582
24866
|
},
|
|
24583
24867
|
{
|
|
24584
24868
|
"message": "unknown tag: internal",
|
|
24585
|
-
"line": " packages/@ember/object/mixin.ts:
|
|
24869
|
+
"line": " packages/@ember/object/mixin.ts:616"
|
|
24586
24870
|
},
|
|
24587
24871
|
{
|
|
24588
24872
|
"message": "unknown tag: internal",
|
|
24589
|
-
"line": " packages/@ember/object/mixin.ts:
|
|
24873
|
+
"line": " packages/@ember/object/mixin.ts:639"
|
|
24590
24874
|
},
|
|
24591
24875
|
{
|
|
24592
24876
|
"message": "unknown tag: internal",
|
|
24593
|
-
"line": " packages/@ember/object/mixin.ts:
|
|
24877
|
+
"line": " packages/@ember/object/mixin.ts:660"
|
|
24594
24878
|
},
|
|
24595
24879
|
{
|
|
24596
24880
|
"message": "replacing incorrect tag: returns with return",
|
|
@@ -24626,7 +24910,7 @@
|
|
|
24626
24910
|
},
|
|
24627
24911
|
{
|
|
24628
24912
|
"message": "replacing incorrect tag: returns with return",
|
|
24629
|
-
"line": " packages/@ember/routing/route.ts:
|
|
24913
|
+
"line": " packages/@ember/routing/route.ts:2151"
|
|
24630
24914
|
},
|
|
24631
24915
|
{
|
|
24632
24916
|
"message": "unknown tag: internal",
|
|
@@ -24638,39 +24922,51 @@
|
|
|
24638
24922
|
},
|
|
24639
24923
|
{
|
|
24640
24924
|
"message": "unknown tag: internal",
|
|
24641
|
-
"line": " packages/@glimmer/component/dist/-private/component.d.ts:10"
|
|
24925
|
+
"line": " packages/@glimmer/component/dist/component/src/-private/component.d.ts:10"
|
|
24926
|
+
},
|
|
24927
|
+
{
|
|
24928
|
+
"message": "unknown tag: internal",
|
|
24929
|
+
"line": " packages/@glimmer/component/dist/component/src/-private/component.d.ts:62"
|
|
24642
24930
|
},
|
|
24643
24931
|
{
|
|
24644
24932
|
"message": "unknown tag: internal",
|
|
24645
|
-
"line": " packages/@glimmer/component/dist/-private/component.d.ts:
|
|
24933
|
+
"line": " packages/@glimmer/component/dist/component/src/-private/component.d.ts:74"
|
|
24646
24934
|
},
|
|
24647
24935
|
{
|
|
24648
24936
|
"message": "unknown tag: internal",
|
|
24649
|
-
"line": " packages/@glimmer/component/dist
|
|
24937
|
+
"line": " packages/@glimmer/component/dist/dev/index.js:25"
|
|
24650
24938
|
},
|
|
24651
24939
|
{
|
|
24652
24940
|
"message": "unknown tag: internal",
|
|
24653
|
-
"line": " packages/@glimmer/component/dist/index.js:
|
|
24941
|
+
"line": " packages/@glimmer/component/dist/dev/index.js:42"
|
|
24654
24942
|
},
|
|
24655
24943
|
{
|
|
24656
24944
|
"message": "unknown tag: internal",
|
|
24657
|
-
"line": " packages/@glimmer/component/dist/index.js:
|
|
24945
|
+
"line": " packages/@glimmer/component/dist/dev/index.js:59"
|
|
24658
24946
|
},
|
|
24659
24947
|
{
|
|
24660
24948
|
"message": "unknown tag: internal",
|
|
24661
|
-
"line": " packages/@glimmer/component/dist/index.js:
|
|
24949
|
+
"line": " packages/@glimmer/component/dist/prod/index.js:13"
|
|
24662
24950
|
},
|
|
24663
24951
|
{
|
|
24664
24952
|
"message": "unknown tag: internal",
|
|
24665
|
-
"line": " packages/@glimmer/component/
|
|
24953
|
+
"line": " packages/@glimmer/component/dist/prod/index.js:30"
|
|
24666
24954
|
},
|
|
24667
24955
|
{
|
|
24668
24956
|
"message": "unknown tag: internal",
|
|
24669
|
-
"line": " packages/@glimmer/component/
|
|
24957
|
+
"line": " packages/@glimmer/component/dist/prod/index.js:47"
|
|
24670
24958
|
},
|
|
24671
24959
|
{
|
|
24672
24960
|
"message": "unknown tag: internal",
|
|
24673
|
-
"line": " packages/@glimmer/component/src/-private/component.ts:
|
|
24961
|
+
"line": " packages/@glimmer/component/src/-private/component.ts:29"
|
|
24962
|
+
},
|
|
24963
|
+
{
|
|
24964
|
+
"message": "unknown tag: internal",
|
|
24965
|
+
"line": " packages/@glimmer/component/src/-private/component.ts:72"
|
|
24966
|
+
},
|
|
24967
|
+
{
|
|
24968
|
+
"message": "unknown tag: internal",
|
|
24969
|
+
"line": " packages/@glimmer/component/src/-private/component.ts:90"
|
|
24674
24970
|
},
|
|
24675
24971
|
{
|
|
24676
24972
|
"message": "unknown tag: import",
|
|
@@ -24694,27 +24990,27 @@
|
|
|
24694
24990
|
},
|
|
24695
24991
|
{
|
|
24696
24992
|
"message": "unknown tag: utility",
|
|
24697
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
24993
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:181"
|
|
24698
24994
|
},
|
|
24699
24995
|
{
|
|
24700
24996
|
"message": "unknown tag: utility",
|
|
24701
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
24997
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:194"
|
|
24702
24998
|
},
|
|
24703
24999
|
{
|
|
24704
25000
|
"message": "unknown tag: utility",
|
|
24705
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
25001
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:640"
|
|
24706
25002
|
},
|
|
24707
25003
|
{
|
|
24708
25004
|
"message": "unknown tag: utility",
|
|
24709
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
25005
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:651"
|
|
24710
25006
|
},
|
|
24711
25007
|
{
|
|
24712
25008
|
"message": "unknown tag: utility",
|
|
24713
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
25009
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:662"
|
|
24714
25010
|
},
|
|
24715
25011
|
{
|
|
24716
25012
|
"message": "unknown tag: utility",
|
|
24717
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
25013
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:677"
|
|
24718
25014
|
},
|
|
24719
25015
|
{
|
|
24720
25016
|
"message": "unknown tag: debug",
|
|
@@ -25106,15 +25402,15 @@
|
|
|
25106
25402
|
},
|
|
25107
25403
|
{
|
|
25108
25404
|
"message": "Missing item type",
|
|
25109
|
-
"line": " packages/@ember/-internals/runtime/lib/mixins/container_proxy.ts:
|
|
25405
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/container_proxy.ts:22"
|
|
25110
25406
|
},
|
|
25111
25407
|
{
|
|
25112
25408
|
"message": "Missing item type",
|
|
25113
|
-
"line": " packages/@ember/-internals/runtime/lib/mixins/registry_proxy.ts:
|
|
25409
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/registry_proxy.ts:22"
|
|
25114
25410
|
},
|
|
25115
25411
|
{
|
|
25116
25412
|
"message": "Missing item type",
|
|
25117
|
-
"line": " packages/@ember/-internals/runtime/lib/mixins/target_action_support.ts:
|
|
25413
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/target_action_support.ts:33"
|
|
25118
25414
|
},
|
|
25119
25415
|
{
|
|
25120
25416
|
"message": "Missing item type\nConverts a camelized string into all lower case separated by underscores.\n\n```javascript\ndecamelize('innerHTML'); // 'inner_html'\ndecamelize('action_name'); // 'action_name'\ndecamelize('css-class-name'); // 'css-class-name'\ndecamelize('my favorite items'); // 'my favorite items'\n```",
|
|
@@ -25132,6 +25428,10 @@
|
|
|
25132
25428
|
"message": "Missing item type\nStrongly hint runtimes to intern the provided string.\n\nWhen do I need to use this function?\n\nFor the most part, never. Pre-mature optimization is bad, and often the\nruntime does exactly what you need it to, and more often the trade-off isn't\nworth it.\n\nWhy?\n\nRuntimes store strings in at least 2 different representations:\nRopes and Symbols (interned strings). The Rope provides a memory efficient\ndata-structure for strings created from concatenation or some other string\nmanipulation like splitting.\n\nUnfortunately checking equality of different ropes can be quite costly as\nruntimes must resort to clever string comparison algorithms. These\nalgorithms typically cost in proportion to the length of the string.\nLuckily, this is where the Symbols (interned strings) shine. As Symbols are\nunique by their string content, equality checks can be done by pointer\ncomparison.\n\nHow do I know if my string is a rope or symbol?\n\nTypically (warning general sweeping statement, but truthy in runtimes at\npresent) static strings created as part of the JS source are interned.\nStrings often used for comparisons can be interned at runtime if some\ncriteria are met. One of these criteria can be the size of the entire rope.\nFor example, in chrome 38 a rope longer then 12 characters will not\nintern, nor will segments of that rope.\n\nSome numbers: http://jsperf.com/eval-vs-keys/8\n\nKnown Trick™",
|
|
25133
25429
|
"line": " packages/@ember/-internals/utils/lib/intern.ts:1"
|
|
25134
25430
|
},
|
|
25431
|
+
{
|
|
25432
|
+
"message": "Missing item type\nKey for the internal Mixin constructor.\n\nEmber's own internals are built on mixins, so they need a way to construct\none without triggering the mixin deprecation that `Mixin.create` emits. This\nis deliberately a Symbol so that it does not show up as a discoverable\nproperty name and cannot be reached by name from application code.",
|
|
25433
|
+
"line": " packages/@ember/-internals/utils/lib/internal-mixin-create.ts:1"
|
|
25434
|
+
},
|
|
25135
25435
|
{
|
|
25136
25436
|
"message": "Missing item type",
|
|
25137
25437
|
"line": " packages/@ember/application/index.ts:33"
|
|
@@ -25178,51 +25478,47 @@
|
|
|
25178
25478
|
},
|
|
25179
25479
|
{
|
|
25180
25480
|
"message": "Missing item type\nThe final definition of NativeArray removes all native methods. This is the list of removed methods\nwhen run in Chrome 106.",
|
|
25181
|
-
"line": " packages/@ember/array/index.ts:
|
|
25481
|
+
"line": " packages/@ember/array/index.ts:1856"
|
|
25182
25482
|
},
|
|
25183
25483
|
{
|
|
25184
25484
|
"message": "Missing item type\nThese additional items must be redefined since `Omit` causes methods that return `this` to return the\ntype at the time of the Omit.",
|
|
25185
|
-
"line": " packages/@ember/array/index.ts:
|
|
25485
|
+
"line": " packages/@ember/array/index.ts:1873"
|
|
25186
25486
|
},
|
|
25187
25487
|
{
|
|
25188
25488
|
"message": "Missing item type\nRemove all elements from the array. This is useful if you\nwant to reuse an existing array without having to recreate it.",
|
|
25189
|
-
"line": " packages/@ember/array/index.ts:
|
|
25489
|
+
"line": " packages/@ember/array/index.ts:1897"
|
|
25190
25490
|
},
|
|
25191
25491
|
{
|
|
25192
25492
|
"message": "Missing item type\nThis will use the primitive `replace()` method to insert an object at the\nspecified index.",
|
|
25193
|
-
"line": " packages/@ember/array/index.ts:
|
|
25493
|
+
"line": " packages/@ember/array/index.ts:1902"
|
|
25194
25494
|
},
|
|
25195
25495
|
{
|
|
25196
25496
|
"message": "Missing item type\nRemove an object at the specified index using the `replace()` primitive\nmethod. You can pass either a single index, or a start and a length.",
|
|
25197
|
-
"line": " packages/@ember/array/index.ts:
|
|
25497
|
+
"line": " packages/@ember/array/index.ts:1907"
|
|
25198
25498
|
},
|
|
25199
25499
|
{
|
|
25200
25500
|
"message": "Missing item type\nAdd the objects in the passed numerable to the end of the array. Defers\nnotifying observers of the change until all objects are added.",
|
|
25201
|
-
"line": " packages/@ember/array/index.ts:
|
|
25501
|
+
"line": " packages/@ember/array/index.ts:1912"
|
|
25202
25502
|
},
|
|
25203
25503
|
{
|
|
25204
25504
|
"message": "Missing item type\nAdds the named objects to the beginning of the array. Defers notifying\nobservers until all objects have been added.",
|
|
25205
|
-
"line": " packages/@ember/array/index.ts:
|
|
25505
|
+
"line": " packages/@ember/array/index.ts:1917"
|
|
25206
25506
|
},
|
|
25207
25507
|
{
|
|
25208
25508
|
"message": "Missing item type\nReverse objects in the array. Works just like `reverse()` but it is\nKVO-compliant.",
|
|
25209
|
-
"line": " packages/@ember/array/index.ts:
|
|
25509
|
+
"line": " packages/@ember/array/index.ts:1922"
|
|
25210
25510
|
},
|
|
25211
25511
|
{
|
|
25212
25512
|
"message": "Missing item type\nReplace all the receiver's content with content of the argument.\nIf argument is an empty array receiver will be cleared.",
|
|
25213
|
-
"line": " packages/@ember/array/index.ts:
|
|
25513
|
+
"line": " packages/@ember/array/index.ts:1927"
|
|
25214
25514
|
},
|
|
25215
25515
|
{
|
|
25216
25516
|
"message": "Missing item type\nRemoves each object in the passed array from the receiver.",
|
|
25217
|
-
"line": " packages/@ember/array/index.ts:
|
|
25517
|
+
"line": " packages/@ember/array/index.ts:1949"
|
|
25218
25518
|
},
|
|
25219
25519
|
{
|
|
25220
25520
|
"message": "Missing item type\nAdds each object in the passed enumerable to the receiver.",
|
|
25221
|
-
"line": " packages/@ember/array/index.ts:
|
|
25222
|
-
},
|
|
25223
|
-
{
|
|
25224
|
-
"message": "Missing item type",
|
|
25225
|
-
"line": " packages/@ember/array/proxy.ts:178"
|
|
25521
|
+
"line": " packages/@ember/array/index.ts:1970"
|
|
25226
25522
|
},
|
|
25227
25523
|
{
|
|
25228
25524
|
"message": "Missing item type",
|
|
@@ -25230,7 +25526,7 @@
|
|
|
25230
25526
|
},
|
|
25231
25527
|
{
|
|
25232
25528
|
"message": "Missing item type",
|
|
25233
|
-
"line": " packages/@ember/array/proxy.ts:
|
|
25529
|
+
"line": " packages/@ember/array/proxy.ts:182"
|
|
25234
25530
|
},
|
|
25235
25531
|
{
|
|
25236
25532
|
"message": "Missing item type",
|
|
@@ -25238,7 +25534,7 @@
|
|
|
25238
25534
|
},
|
|
25239
25535
|
{
|
|
25240
25536
|
"message": "Missing item type",
|
|
25241
|
-
"line": " packages/@ember/array/proxy.ts:
|
|
25537
|
+
"line": " packages/@ember/array/proxy.ts:187"
|
|
25242
25538
|
},
|
|
25243
25539
|
{
|
|
25244
25540
|
"message": "Missing item type",
|
|
@@ -25260,6 +25556,10 @@
|
|
|
25260
25556
|
"message": "Missing item type",
|
|
25261
25557
|
"line": " packages/@ember/array/proxy.ts:198"
|
|
25262
25558
|
},
|
|
25559
|
+
{
|
|
25560
|
+
"message": "Missing item type",
|
|
25561
|
+
"line": " packages/@ember/array/proxy.ts:200"
|
|
25562
|
+
},
|
|
25263
25563
|
{
|
|
25264
25564
|
"message": "Missing item type\nTemplate-only components have no backing class instance, so `this` in their\ntemplates is null. This means that you can only reference passed in arguments\n(e.g. `{{@arg}}`).",
|
|
25265
25565
|
"line": " packages/@ember/component/template-only.ts:34"
|
|
@@ -25270,11 +25570,11 @@
|
|
|
25270
25570
|
},
|
|
25271
25571
|
{
|
|
25272
25572
|
"message": "Missing item type",
|
|
25273
|
-
"line": " packages/@ember/controller/index.ts:
|
|
25573
|
+
"line": " packages/@ember/controller/index.ts:35"
|
|
25274
25574
|
},
|
|
25275
25575
|
{
|
|
25276
25576
|
"message": "Missing item type\nA type registry for Ember `Controller`s. Meant to be declaration-merged so string\nlookups resolve to the correct type.\n\nBlueprints should include such a declaration merge for TypeScript:\n\n```ts\nimport Controller from '@ember/controller';\n\nexport default class ExampleController extends Controller {\n// ...\n}\n\ndeclare module '@ember/controller' {\n export interface Registry {\n example: ExampleController;\n }\n}\n```\n\nThen `@inject` can check that the service is registered correctly, and APIs\nlike `owner.lookup('controller:example')` can return `ExampleController`.",
|
|
25277
|
-
"line": " packages/@ember/controller/index.ts:
|
|
25577
|
+
"line": " packages/@ember/controller/index.ts:374"
|
|
25278
25578
|
},
|
|
25279
25579
|
{
|
|
25280
25580
|
"message": "Missing item type",
|
|
@@ -25310,55 +25610,59 @@
|
|
|
25310
25610
|
},
|
|
25311
25611
|
{
|
|
25312
25612
|
"message": "Missing item type",
|
|
25313
|
-
"line": " packages/@ember/object/core.ts:
|
|
25613
|
+
"line": " packages/@ember/object/core.ts:234"
|
|
25614
|
+
},
|
|
25615
|
+
{
|
|
25616
|
+
"message": "Missing item type",
|
|
25617
|
+
"line": " packages/@ember/object/core.ts:238"
|
|
25314
25618
|
},
|
|
25315
25619
|
{
|
|
25316
25620
|
"message": "Missing item type",
|
|
25317
|
-
"line": " packages/@ember/object/
|
|
25621
|
+
"line": " packages/@ember/object/mixin.ts:539"
|
|
25318
25622
|
},
|
|
25319
25623
|
{
|
|
25320
25624
|
"message": "Missing item type",
|
|
25321
|
-
"line": " packages/@ember/object/mixin.ts:
|
|
25625
|
+
"line": " packages/@ember/object/mixin.ts:542"
|
|
25322
25626
|
},
|
|
25323
25627
|
{
|
|
25324
25628
|
"message": "Missing item type",
|
|
25325
|
-
"line": " packages/@ember/object/mixin.ts:
|
|
25629
|
+
"line": " packages/@ember/object/mixin.ts:545"
|
|
25326
25630
|
},
|
|
25327
25631
|
{
|
|
25328
25632
|
"message": "Missing item type",
|
|
25329
|
-
"line": " packages/@ember/object/mixin.ts:
|
|
25633
|
+
"line": " packages/@ember/object/mixin.ts:548"
|
|
25330
25634
|
},
|
|
25331
25635
|
{
|
|
25332
25636
|
"message": "Missing item type",
|
|
25333
|
-
"line": " packages/@ember/object/mixin.ts:
|
|
25637
|
+
"line": " packages/@ember/object/mixin.ts:551"
|
|
25334
25638
|
},
|
|
25335
25639
|
{
|
|
25336
25640
|
"message": "Missing item type",
|
|
25337
|
-
"line": " packages/@ember/object/mixin.ts:
|
|
25641
|
+
"line": " packages/@ember/object/mixin.ts:556"
|
|
25338
25642
|
},
|
|
25339
25643
|
{
|
|
25340
25644
|
"message": "Missing item type",
|
|
25341
|
-
"line": " packages/@ember/object/mixin.ts:
|
|
25645
|
+
"line": " packages/@ember/object/mixin.ts:589"
|
|
25342
25646
|
},
|
|
25343
25647
|
{
|
|
25344
25648
|
"message": "Missing item type",
|
|
25345
|
-
"line": " packages/@ember/object/mixin.ts:
|
|
25649
|
+
"line": " packages/@ember/object/mixin.ts:598"
|
|
25346
25650
|
},
|
|
25347
25651
|
{
|
|
25348
25652
|
"message": "Missing item type",
|
|
25349
|
-
"line": " packages/@ember/object/mixin.ts:
|
|
25653
|
+
"line": " packages/@ember/object/mixin.ts:655"
|
|
25350
25654
|
},
|
|
25351
25655
|
{
|
|
25352
25656
|
"message": "Missing item type",
|
|
25353
|
-
"line": " packages/@ember/object/mixin.ts:
|
|
25657
|
+
"line": " packages/@ember/object/mixin.ts:681"
|
|
25354
25658
|
},
|
|
25355
25659
|
{
|
|
25356
25660
|
"message": "Missing item type",
|
|
25357
|
-
"line": " packages/@ember/object/mixin.ts:
|
|
25661
|
+
"line": " packages/@ember/object/mixin.ts:688"
|
|
25358
25662
|
},
|
|
25359
25663
|
{
|
|
25360
25664
|
"message": "Missing item type",
|
|
25361
|
-
"line": " packages/@ember/object/mixin.ts:
|
|
25665
|
+
"line": " packages/@ember/object/mixin.ts:695"
|
|
25362
25666
|
},
|
|
25363
25667
|
{
|
|
25364
25668
|
"message": "Missing item type",
|
|
@@ -25382,35 +25686,35 @@
|
|
|
25382
25686
|
},
|
|
25383
25687
|
{
|
|
25384
25688
|
"message": "Missing item type",
|
|
25385
|
-
"line": " packages/@ember/routing/route.ts:
|
|
25689
|
+
"line": " packages/@ember/routing/route.ts:281"
|
|
25386
25690
|
},
|
|
25387
25691
|
{
|
|
25388
25692
|
"message": "Missing item type",
|
|
25389
|
-
"line": " packages/@ember/routing/route.ts:
|
|
25693
|
+
"line": " packages/@ember/routing/route.ts:283"
|
|
25390
25694
|
},
|
|
25391
25695
|
{
|
|
25392
25696
|
"message": "Missing item type",
|
|
25393
|
-
"line": " packages/@ember/routing/route.ts:
|
|
25697
|
+
"line": " packages/@ember/routing/route.ts:286"
|
|
25394
25698
|
},
|
|
25395
25699
|
{
|
|
25396
25700
|
"message": "Missing item type",
|
|
25397
|
-
"line": " packages/@ember/routing/route.ts:
|
|
25701
|
+
"line": " packages/@ember/routing/route.ts:288"
|
|
25398
25702
|
},
|
|
25399
25703
|
{
|
|
25400
25704
|
"message": "Missing item type",
|
|
25401
|
-
"line": " packages/@ember/routing/route.ts:
|
|
25705
|
+
"line": " packages/@ember/routing/route.ts:1602"
|
|
25402
25706
|
},
|
|
25403
25707
|
{
|
|
25404
25708
|
"message": "Missing item type\nFinds the name of the substate route if it exists for the given route. A\nsubstate route is of the form `route_state`, such as `foo_loading`.",
|
|
25405
|
-
"line": " packages/@ember/routing/router.ts:
|
|
25709
|
+
"line": " packages/@ember/routing/router.ts:1680"
|
|
25406
25710
|
},
|
|
25407
25711
|
{
|
|
25408
25712
|
"message": "Missing item type\nFinds the name of the state route if it exists for the given route. A state\nroute is of the form `route.state`, such as `foo.loading`. Properly Handles\n`application` named routes.",
|
|
25409
|
-
"line": " packages/@ember/routing/router.ts:
|
|
25713
|
+
"line": " packages/@ember/routing/router.ts:1701"
|
|
25410
25714
|
},
|
|
25411
25715
|
{
|
|
25412
25716
|
"message": "Missing item type\nDetermines whether or not a route has been defined by checking that the route\nis in the Router's map and the owner has a registration for that route.",
|
|
25413
|
-
"line": " packages/@ember/routing/router.ts:
|
|
25717
|
+
"line": " packages/@ember/routing/router.ts:1723"
|
|
25414
25718
|
},
|
|
25415
25719
|
{
|
|
25416
25720
|
"message": "Missing item type",
|
|
@@ -25510,107 +25814,143 @@
|
|
|
25510
25814
|
},
|
|
25511
25815
|
{
|
|
25512
25816
|
"message": "Missing item type\nThis provides us a way to have a \"fallback\" which represents an empty object,\nwithout the downsides of how TS treats `{}`. Specifically: this will\ncorrectly leverage \"excess property checking\" so that, given a component\nwhich has no named args, if someone invokes it with any named args, they will\nget a type error.",
|
|
25513
|
-
"line": " packages/@glimmer/component/dist/-private/component.d.ts:10"
|
|
25817
|
+
"line": " packages/@glimmer/component/dist/component/src/-private/component.d.ts:10"
|
|
25514
25818
|
},
|
|
25515
25819
|
{
|
|
25516
25820
|
"message": "Missing item type",
|
|
25517
|
-
"line": " packages/@glimmer/component/dist/-private/component.d.ts:30"
|
|
25821
|
+
"line": " packages/@glimmer/component/dist/component/src/-private/component.d.ts:30"
|
|
25518
25822
|
},
|
|
25519
25823
|
{
|
|
25520
25824
|
"message": "Missing item type\nGiven any allowed shorthand form of a signature, desugars it to its full\nexpanded type.",
|
|
25521
|
-
"line": " packages/@glimmer/component/dist/-private/component.d.ts:62"
|
|
25825
|
+
"line": " packages/@glimmer/component/dist/component/src/-private/component.d.ts:62"
|
|
25522
25826
|
},
|
|
25523
25827
|
{
|
|
25524
25828
|
"message": "Missing item type",
|
|
25525
|
-
"line": " packages/@glimmer/component/dist/-private/component.d.ts:74"
|
|
25829
|
+
"line": " packages/@glimmer/component/dist/component/src/-private/component.d.ts:74"
|
|
25526
25830
|
},
|
|
25527
25831
|
{
|
|
25528
25832
|
"message": "Missing item type\nThe `Component` class defines an encapsulated UI element that is rendered to\nthe DOM. A component is made up of a template and, optionally, this component\nobject.\n\n## Defining a Component\n\nTo define a component, subclass `Component` and add your own properties,\nmethods and lifecycle hooks:\n\n```ts\nimport Component from '@glimmer/component';\n\nexport default class extends Component {\n}\n```\n\n## Lifecycle Hooks\n\nLifecycle hooks allow you to respond to changes to a component, such as when\nit gets created, rendered, updated or destroyed. To add a lifecycle hook to a\ncomponent, implement the hook as a method on your component subclass.\n\nFor example, to be notified when Glimmer has rendered your component so you\ncan attach a legacy jQuery plugin, implement the `didInsertElement()` method:\n\n```ts\nimport Component from '@glimmer/component';\n\nexport default class extends Component {\n didInsertElement() {\n $(this.element).pickadate();\n }\n}\n```\n\n## Data for Templates\n\n`Component`s have two different kinds of data, or state, that can be\ndisplayed in templates:\n\n1. Arguments\n2. Properties\n\nArguments are data that is passed in to a component from its parent\ncomponent. For example, if I have a `UserGreeting` component, I can pass it\na name and greeting to use:\n\n```hbs\n<UserGreeting @name=\"Ricardo\" @greeting=\"Olá\" />\n```\n\nInside my `UserGreeting` template, I can access the `@name` and `@greeting`\narguments that I've been given:\n\n```hbs\n{{@greeting}}, {{@name}}!\n```\n\nArguments are also available inside my component:\n\n```ts\nconsole.log(this.args.greeting); // prints \"Olá\"\n```\n\nProperties, on the other hand, are internal to the component and declared in\nthe class. You can use properties to store data that you want to show in the\ntemplate, or pass to another component as an argument.\n\n```ts\nimport Component from '@glimmer/component';\n\nexport default class extends Component {\n user = {\n name: 'Robbie'\n }\n}\n```\n\nIn the above example, we've defined a component with a `user` property that\ncontains an object with its own `name` property.\n\nWe can render that property in our template:\n\n```hbs\nHello, {{user.name}}!\n```\n\nWe can also take that property and pass it as an argument to the\n`UserGreeting` component we defined above:\n\n```hbs\n<UserGreeting @greeting=\"Hello\" @name={{user.name}} />\n```\n\n## Arguments vs. Properties\n\nRemember, arguments are data that was given to your component by its parent\ncomponent, and properties are data your component has defined for itself.\n\nYou can tell the difference between arguments and properties in templates\nbecause arguments always start with an `@` sign (think \"A is for arguments\"):\n\n```hbs\n{{@firstName}}\n```\n\nWe know that `@firstName` came from the parent component, not the current\ncomponent, because it starts with `@` and is therefore an argument.\n\nOn the other hand, if we see:\n\n```hbs\n{{name}}\n```\n\nWe know that `name` is a property on the component. If we want to know where\nthe data is coming from, we can go look at our component class to find out.\n\nInside the component itself, arguments always show up inside the component's\n`args` property. For example, if `{{@firstName}}` is `Tom` in the template,\ninside the component `this.args.firstName` would also be `Tom`.",
|
|
25529
|
-
"line": " packages/@glimmer/component/dist/-private/component.d.ts:79"
|
|
25833
|
+
"line": " packages/@glimmer/component/dist/component/src/-private/component.d.ts:79"
|
|
25530
25834
|
},
|
|
25531
25835
|
{
|
|
25532
25836
|
"message": "Missing item type\nConstructs a new component and assigns itself the passed properties. You\nshould not construct new components yourself. Instead, Glimmer will\ninstantiate new components automatically as it renders.",
|
|
25533
|
-
"line": " packages/@glimmer/component/dist/-private/component.d.ts:
|
|
25837
|
+
"line": " packages/@glimmer/component/dist/component/src/-private/component.d.ts:205"
|
|
25534
25838
|
},
|
|
25535
25839
|
{
|
|
25536
25840
|
"message": "Missing item type\nNamed arguments passed to the component from its parent component.\nThey can be accessed in JavaScript via `this.args.argumentName` and in the template via `@argumentName`.\n\nSay you have the following component, which will have two `args`, `firstName` and `lastName`:\n\n```hbs\n<my-component @firstName=\"Arthur\" @lastName=\"Dent\" />\n```\n\nIf you needed to calculate `fullName` by combining both of them, you would do:\n\n```ts\ndidInsertElement() {\n console.log(`Hi, my full name is ${this.args.firstName} ${this.args.lastName}`);\n}\n```\n\nWhile in the template you could do:\n\n```hbs\n<p>Welcome, {{@firstName}} {{@lastName}}!</p>\n```",
|
|
25537
|
-
"line": " packages/@glimmer/component/dist/-private/component.d.ts:
|
|
25841
|
+
"line": " packages/@glimmer/component/dist/component/src/-private/component.d.ts:214"
|
|
25538
25842
|
},
|
|
25539
25843
|
{
|
|
25540
25844
|
"message": "Missing item type\nCalled before the component has been removed from the DOM.",
|
|
25541
|
-
"line": " packages/@glimmer/component/dist/-private/component.d.ts:
|
|
25845
|
+
"line": " packages/@glimmer/component/dist/component/src/-private/component.d.ts:241"
|
|
25542
25846
|
},
|
|
25543
25847
|
{
|
|
25544
25848
|
"message": "Missing item type\nThis component manager runs in Ember.js environments and extends the base component manager to:\n\n1. Properly destroy the component's associated `meta` data structure\n2. Schedule destruction using Ember's runloop",
|
|
25545
|
-
"line": " packages/@glimmer/component/dist/-private/ember-component-manager.d.ts:4"
|
|
25849
|
+
"line": " packages/@glimmer/component/dist/component/src/-private/ember-component-manager.d.ts:4"
|
|
25546
25850
|
},
|
|
25547
25851
|
{
|
|
25548
25852
|
"message": "Missing item type\nThis provides us a way to have a \"fallback\" which represents an empty object,\nwithout the downsides of how TS treats `{}`. Specifically: this will\ncorrectly leverage \"excess property checking\" so that, given a component\nwhich has no named args, if someone invokes it with any named args, they will\nget a type error.",
|
|
25549
|
-
"line": " packages/@glimmer/component/dist/index.js:
|
|
25853
|
+
"line": " packages/@glimmer/component/dist/dev/index.js:25"
|
|
25550
25854
|
},
|
|
25551
25855
|
{
|
|
25552
25856
|
"message": "Missing item type",
|
|
25553
|
-
"line": " packages/@glimmer/component/dist/index.js:
|
|
25857
|
+
"line": " packages/@glimmer/component/dist/dev/index.js:40"
|
|
25554
25858
|
},
|
|
25555
25859
|
{
|
|
25556
25860
|
"message": "Missing item type\nGiven any allowed shorthand form of a signature, desugars it to its full\nexpanded type.",
|
|
25557
|
-
"line": " packages/@glimmer/component/dist/index.js:
|
|
25861
|
+
"line": " packages/@glimmer/component/dist/dev/index.js:42"
|
|
25558
25862
|
},
|
|
25559
25863
|
{
|
|
25560
25864
|
"message": "Missing item type",
|
|
25561
|
-
"line": " packages/@glimmer/component/dist/index.js:
|
|
25865
|
+
"line": " packages/@glimmer/component/dist/dev/index.js:59"
|
|
25562
25866
|
},
|
|
25563
25867
|
{
|
|
25564
25868
|
"message": "Missing item type\nThe `Component` class defines an encapsulated UI element that is rendered to\nthe DOM. A component is made up of a template and, optionally, this component\nobject.\n\n## Defining a Component\n\nTo define a component, subclass `Component` and add your own properties,\nmethods and lifecycle hooks:\n\n```ts\nimport Component from '@glimmer/component';\n\nexport default class extends Component {\n}\n```\n\n## Lifecycle Hooks\n\nLifecycle hooks allow you to respond to changes to a component, such as when\nit gets created, rendered, updated or destroyed. To add a lifecycle hook to a\ncomponent, implement the hook as a method on your component subclass.\n\nFor example, to be notified when Glimmer has rendered your component so you\ncan attach a legacy jQuery plugin, implement the `didInsertElement()` method:\n\n```ts\nimport Component from '@glimmer/component';\n\nexport default class extends Component {\n didInsertElement() {\n $(this.element).pickadate();\n }\n}\n```\n\n## Data for Templates\n\n`Component`s have two different kinds of data, or state, that can be\ndisplayed in templates:\n\n1. Arguments\n2. Properties\n\nArguments are data that is passed in to a component from its parent\ncomponent. For example, if I have a `UserGreeting` component, I can pass it\na name and greeting to use:\n\n```hbs\n<UserGreeting @name=\"Ricardo\" @greeting=\"Olá\" />\n```\n\nInside my `UserGreeting` template, I can access the `@name` and `@greeting`\narguments that I've been given:\n\n```hbs\n{{@greeting}}, {{@name}}!\n```\n\nArguments are also available inside my component:\n\n```ts\nconsole.log(this.args.greeting); // prints \"Olá\"\n```\n\nProperties, on the other hand, are internal to the component and declared in\nthe class. You can use properties to store data that you want to show in the\ntemplate, or pass to another component as an argument.\n\n```ts\nimport Component from '@glimmer/component';\n\nexport default class extends Component {\n user = {\n name: 'Robbie'\n }\n}\n```\n\nIn the above example, we've defined a component with a `user` property that\ncontains an object with its own `name` property.\n\nWe can render that property in our template:\n\n```hbs\nHello, {{user.name}}!\n```\n\nWe can also take that property and pass it as an argument to the\n`UserGreeting` component we defined above:\n\n```hbs\n<UserGreeting @greeting=\"Hello\" @name={{user.name}} />\n```\n\n## Arguments vs. Properties\n\nRemember, arguments are data that was given to your component by its parent\ncomponent, and properties are data your component has defined for itself.\n\nYou can tell the difference between arguments and properties in templates\nbecause arguments always start with an `@` sign (think \"A is for arguments\"):\n\n```hbs\n{{@firstName}}\n```\n\nWe know that `@firstName` came from the parent component, not the current\ncomponent, because it starts with `@` and is therefore an argument.\n\nOn the other hand, if we see:\n\n```hbs\n{{name}}\n```\n\nWe know that `name` is a property on the component. If we want to know where\nthe data is coming from, we can go look at our component class to find out.\n\nInside the component itself, arguments always show up inside the component's\n`args` property. For example, if `{{@firstName}}` is `Tom` in the template,\ninside the component `this.args.firstName` would also be `Tom`.",
|
|
25565
|
-
"line": " packages/@glimmer/component/dist/index.js:
|
|
25869
|
+
"line": " packages/@glimmer/component/dist/dev/index.js:64"
|
|
25566
25870
|
},
|
|
25567
25871
|
{
|
|
25568
25872
|
"message": "Missing item type\nConstructs a new component and assigns itself the passed properties. You\nshould not construct new components yourself. Instead, Glimmer will\ninstantiate new components automatically as it renders.",
|
|
25569
|
-
"line": " packages/@glimmer/component/dist/index.js:
|
|
25873
|
+
"line": " packages/@glimmer/component/dist/dev/index.js:191"
|
|
25570
25874
|
},
|
|
25571
25875
|
{
|
|
25572
25876
|
"message": "Missing item type\nNamed arguments passed to the component from its parent component.\nThey can be accessed in JavaScript via `this.args.argumentName` and in the template via `@argumentName`.\n\nSay you have the following component, which will have two `args`, `firstName` and `lastName`:\n\n```hbs\n<my-component @firstName=\"Arthur\" @lastName=\"Dent\" />\n```\n\nIf you needed to calculate `fullName` by combining both of them, you would do:\n\n```ts\ndidInsertElement() {\n console.log(`Hi, my full name is ${this.args.firstName} ${this.args.lastName}`);\n}\n```\n\nWhile in the template you could do:\n\n```hbs\n<p>Welcome, {{@firstName}} {{@lastName}}!</p>\n```",
|
|
25573
|
-
"line": " packages/@glimmer/component/dist/index.js:
|
|
25877
|
+
"line": " packages/@glimmer/component/dist/dev/index.js:206"
|
|
25574
25878
|
},
|
|
25575
25879
|
{
|
|
25576
25880
|
"message": "Missing item type\nCalled before the component has been removed from the DOM.",
|
|
25577
|
-
"line": " packages/@glimmer/component/dist/index.js:
|
|
25881
|
+
"line": " packages/@glimmer/component/dist/dev/index.js:238"
|
|
25578
25882
|
},
|
|
25579
25883
|
{
|
|
25580
25884
|
"message": "Missing item type\nThis component manager runs in Ember.js environments and extends the base component manager to:\n\n1. Properly destroy the component's associated `meta` data structure\n2. Schedule destruction using Ember's runloop",
|
|
25581
|
-
"line": " packages/@glimmer/component/dist/index.js:
|
|
25885
|
+
"line": " packages/@glimmer/component/dist/dev/index.js:273"
|
|
25582
25886
|
},
|
|
25583
25887
|
{
|
|
25584
25888
|
"message": "Missing item type\nThis provides us a way to have a \"fallback\" which represents an empty object,\nwithout the downsides of how TS treats `{}`. Specifically: this will\ncorrectly leverage \"excess property checking\" so that, given a component\nwhich has no named args, if someone invokes it with any named args, they will\nget a type error.",
|
|
25585
|
-
"line": " packages/@glimmer/component/
|
|
25889
|
+
"line": " packages/@glimmer/component/dist/prod/index.js:13"
|
|
25586
25890
|
},
|
|
25587
25891
|
{
|
|
25588
25892
|
"message": "Missing item type",
|
|
25589
|
-
"line": " packages/@glimmer/component/
|
|
25893
|
+
"line": " packages/@glimmer/component/dist/prod/index.js:28"
|
|
25590
25894
|
},
|
|
25591
25895
|
{
|
|
25592
25896
|
"message": "Missing item type\nGiven any allowed shorthand form of a signature, desugars it to its full\nexpanded type.",
|
|
25593
|
-
"line": " packages/@glimmer/component/
|
|
25897
|
+
"line": " packages/@glimmer/component/dist/prod/index.js:30"
|
|
25594
25898
|
},
|
|
25595
25899
|
{
|
|
25596
25900
|
"message": "Missing item type",
|
|
25597
|
-
"line": " packages/@glimmer/component/
|
|
25901
|
+
"line": " packages/@glimmer/component/dist/prod/index.js:47"
|
|
25598
25902
|
},
|
|
25599
25903
|
{
|
|
25600
25904
|
"message": "Missing item type\nThe `Component` class defines an encapsulated UI element that is rendered to\nthe DOM. A component is made up of a template and, optionally, this component\nobject.\n\n## Defining a Component\n\nTo define a component, subclass `Component` and add your own properties,\nmethods and lifecycle hooks:\n\n```ts\nimport Component from '@glimmer/component';\n\nexport default class extends Component {\n}\n```\n\n## Lifecycle Hooks\n\nLifecycle hooks allow you to respond to changes to a component, such as when\nit gets created, rendered, updated or destroyed. To add a lifecycle hook to a\ncomponent, implement the hook as a method on your component subclass.\n\nFor example, to be notified when Glimmer has rendered your component so you\ncan attach a legacy jQuery plugin, implement the `didInsertElement()` method:\n\n```ts\nimport Component from '@glimmer/component';\n\nexport default class extends Component {\n didInsertElement() {\n $(this.element).pickadate();\n }\n}\n```\n\n## Data for Templates\n\n`Component`s have two different kinds of data, or state, that can be\ndisplayed in templates:\n\n1. Arguments\n2. Properties\n\nArguments are data that is passed in to a component from its parent\ncomponent. For example, if I have a `UserGreeting` component, I can pass it\na name and greeting to use:\n\n```hbs\n<UserGreeting @name=\"Ricardo\" @greeting=\"Olá\" />\n```\n\nInside my `UserGreeting` template, I can access the `@name` and `@greeting`\narguments that I've been given:\n\n```hbs\n{{@greeting}}, {{@name}}!\n```\n\nArguments are also available inside my component:\n\n```ts\nconsole.log(this.args.greeting); // prints \"Olá\"\n```\n\nProperties, on the other hand, are internal to the component and declared in\nthe class. You can use properties to store data that you want to show in the\ntemplate, or pass to another component as an argument.\n\n```ts\nimport Component from '@glimmer/component';\n\nexport default class extends Component {\n user = {\n name: 'Robbie'\n }\n}\n```\n\nIn the above example, we've defined a component with a `user` property that\ncontains an object with its own `name` property.\n\nWe can render that property in our template:\n\n```hbs\nHello, {{user.name}}!\n```\n\nWe can also take that property and pass it as an argument to the\n`UserGreeting` component we defined above:\n\n```hbs\n<UserGreeting @greeting=\"Hello\" @name={{user.name}} />\n```\n\n## Arguments vs. Properties\n\nRemember, arguments are data that was given to your component by its parent\ncomponent, and properties are data your component has defined for itself.\n\nYou can tell the difference between arguments and properties in templates\nbecause arguments always start with an `@` sign (think \"A is for arguments\"):\n\n```hbs\n{{@firstName}}\n```\n\nWe know that `@firstName` came from the parent component, not the current\ncomponent, because it starts with `@` and is therefore an argument.\n\nOn the other hand, if we see:\n\n```hbs\n{{name}}\n```\n\nWe know that `name` is a property on the component. If we want to know where\nthe data is coming from, we can go look at our component class to find out.\n\nInside the component itself, arguments always show up inside the component's\n`args` property. For example, if `{{@firstName}}` is `Tom` in the template,\ninside the component `this.args.firstName` would also be `Tom`.",
|
|
25601
|
-
"line": " packages/@glimmer/component/
|
|
25905
|
+
"line": " packages/@glimmer/component/dist/prod/index.js:52"
|
|
25602
25906
|
},
|
|
25603
25907
|
{
|
|
25604
25908
|
"message": "Missing item type\nConstructs a new component and assigns itself the passed properties. You\nshould not construct new components yourself. Instead, Glimmer will\ninstantiate new components automatically as it renders.",
|
|
25605
|
-
"line": " packages/@glimmer/component/
|
|
25909
|
+
"line": " packages/@glimmer/component/dist/prod/index.js:179"
|
|
25606
25910
|
},
|
|
25607
25911
|
{
|
|
25608
25912
|
"message": "Missing item type\nNamed arguments passed to the component from its parent component.\nThey can be accessed in JavaScript via `this.args.argumentName` and in the template via `@argumentName`.\n\nSay you have the following component, which will have two `args`, `firstName` and `lastName`:\n\n```hbs\n<my-component @firstName=\"Arthur\" @lastName=\"Dent\" />\n```\n\nIf you needed to calculate `fullName` by combining both of them, you would do:\n\n```ts\ndidInsertElement() {\n console.log(`Hi, my full name is ${this.args.firstName} ${this.args.lastName}`);\n}\n```\n\nWhile in the template you could do:\n\n```hbs\n<p>Welcome, {{@firstName}} {{@lastName}}!</p>\n```",
|
|
25609
|
-
"line": " packages/@glimmer/component/
|
|
25913
|
+
"line": " packages/@glimmer/component/dist/prod/index.js:191"
|
|
25610
25914
|
},
|
|
25611
25915
|
{
|
|
25612
25916
|
"message": "Missing item type\nCalled before the component has been removed from the DOM.",
|
|
25613
|
-
"line": " packages/@glimmer/component/
|
|
25917
|
+
"line": " packages/@glimmer/component/dist/prod/index.js:223"
|
|
25918
|
+
},
|
|
25919
|
+
{
|
|
25920
|
+
"message": "Missing item type\nThis component manager runs in Ember.js environments and extends the base component manager to:\n\n1. Properly destroy the component's associated `meta` data structure\n2. Schedule destruction using Ember's runloop",
|
|
25921
|
+
"line": " packages/@glimmer/component/dist/prod/index.js:255"
|
|
25922
|
+
},
|
|
25923
|
+
{
|
|
25924
|
+
"message": "Missing item type\nThis provides us a way to have a \"fallback\" which represents an empty object,\nwithout the downsides of how TS treats `{}`. Specifically: this will\ncorrectly leverage \"excess property checking\" so that, given a component\nwhich has no named args, if someone invokes it with any named args, they will\nget a type error.",
|
|
25925
|
+
"line": " packages/@glimmer/component/src/-private/component.ts:29"
|
|
25926
|
+
},
|
|
25927
|
+
{
|
|
25928
|
+
"message": "Missing item type",
|
|
25929
|
+
"line": " packages/@glimmer/component/src/-private/component.ts:49"
|
|
25930
|
+
},
|
|
25931
|
+
{
|
|
25932
|
+
"message": "Missing item type\nGiven any allowed shorthand form of a signature, desugars it to its full\nexpanded type.",
|
|
25933
|
+
"line": " packages/@glimmer/component/src/-private/component.ts:72"
|
|
25934
|
+
},
|
|
25935
|
+
{
|
|
25936
|
+
"message": "Missing item type",
|
|
25937
|
+
"line": " packages/@glimmer/component/src/-private/component.ts:90"
|
|
25938
|
+
},
|
|
25939
|
+
{
|
|
25940
|
+
"message": "Missing item type\nThe `Component` class defines an encapsulated UI element that is rendered to\nthe DOM. A component is made up of a template and, optionally, this component\nobject.\n\n## Defining a Component\n\nTo define a component, subclass `Component` and add your own properties,\nmethods and lifecycle hooks:\n\n```ts\nimport Component from '@glimmer/component';\n\nexport default class extends Component {\n}\n```\n\n## Lifecycle Hooks\n\nLifecycle hooks allow you to respond to changes to a component, such as when\nit gets created, rendered, updated or destroyed. To add a lifecycle hook to a\ncomponent, implement the hook as a method on your component subclass.\n\nFor example, to be notified when Glimmer has rendered your component so you\ncan attach a legacy jQuery plugin, implement the `didInsertElement()` method:\n\n```ts\nimport Component from '@glimmer/component';\n\nexport default class extends Component {\n didInsertElement() {\n $(this.element).pickadate();\n }\n}\n```\n\n## Data for Templates\n\n`Component`s have two different kinds of data, or state, that can be\ndisplayed in templates:\n\n1. Arguments\n2. Properties\n\nArguments are data that is passed in to a component from its parent\ncomponent. For example, if I have a `UserGreeting` component, I can pass it\na name and greeting to use:\n\n```hbs\n<UserGreeting @name=\"Ricardo\" @greeting=\"Olá\" />\n```\n\nInside my `UserGreeting` template, I can access the `@name` and `@greeting`\narguments that I've been given:\n\n```hbs\n{{@greeting}}, {{@name}}!\n```\n\nArguments are also available inside my component:\n\n```ts\nconsole.log(this.args.greeting); // prints \"Olá\"\n```\n\nProperties, on the other hand, are internal to the component and declared in\nthe class. You can use properties to store data that you want to show in the\ntemplate, or pass to another component as an argument.\n\n```ts\nimport Component from '@glimmer/component';\n\nexport default class extends Component {\n user = {\n name: 'Robbie'\n }\n}\n```\n\nIn the above example, we've defined a component with a `user` property that\ncontains an object with its own `name` property.\n\nWe can render that property in our template:\n\n```hbs\nHello, {{user.name}}!\n```\n\nWe can also take that property and pass it as an argument to the\n`UserGreeting` component we defined above:\n\n```hbs\n<UserGreeting @greeting=\"Hello\" @name={{user.name}} />\n```\n\n## Arguments vs. Properties\n\nRemember, arguments are data that was given to your component by its parent\ncomponent, and properties are data your component has defined for itself.\n\nYou can tell the difference between arguments and properties in templates\nbecause arguments always start with an `@` sign (think \"A is for arguments\"):\n\n```hbs\n{{@firstName}}\n```\n\nWe know that `@firstName` came from the parent component, not the current\ncomponent, because it starts with `@` and is therefore an argument.\n\nOn the other hand, if we see:\n\n```hbs\n{{name}}\n```\n\nWe know that `name` is a property on the component. If we want to know where\nthe data is coming from, we can go look at our component class to find out.\n\nInside the component itself, arguments always show up inside the component's\n`args` property. For example, if `{{@firstName}}` is `Tom` in the template,\ninside the component `this.args.firstName` would also be `Tom`.",
|
|
25941
|
+
"line": " packages/@glimmer/component/src/-private/component.ts:96"
|
|
25942
|
+
},
|
|
25943
|
+
{
|
|
25944
|
+
"message": "Missing item type\nConstructs a new component and assigns itself the passed properties. You\nshould not construct new components yourself. Instead, Glimmer will\ninstantiate new components automatically as it renders.",
|
|
25945
|
+
"line": " packages/@glimmer/component/src/-private/component.ts:223"
|
|
25946
|
+
},
|
|
25947
|
+
{
|
|
25948
|
+
"message": "Missing item type\nNamed arguments passed to the component from its parent component.\nThey can be accessed in JavaScript via `this.args.argumentName` and in the template via `@argumentName`.\n\nSay you have the following component, which will have two `args`, `firstName` and `lastName`:\n\n```hbs\n<my-component @firstName=\"Arthur\" @lastName=\"Dent\" />\n```\n\nIf you needed to calculate `fullName` by combining both of them, you would do:\n\n```ts\ndidInsertElement() {\n console.log(`Hi, my full name is ${this.args.firstName} ${this.args.lastName}`);\n}\n```\n\nWhile in the template you could do:\n\n```hbs\n<p>Welcome, {{@firstName}} {{@lastName}}!</p>\n```",
|
|
25949
|
+
"line": " packages/@glimmer/component/src/-private/component.ts:241"
|
|
25950
|
+
},
|
|
25951
|
+
{
|
|
25952
|
+
"message": "Missing item type\nCalled before the component has been removed from the DOM.",
|
|
25953
|
+
"line": " packages/@glimmer/component/src/-private/component.ts:275"
|
|
25614
25954
|
},
|
|
25615
25955
|
{
|
|
25616
25956
|
"message": "Missing item type\nThis component manager runs in Ember.js environments and extends the base component manager to:\n\n1. Properly destroy the component's associated `meta` data structure\n2. Schedule destruction using Ember's runloop",
|
|
@@ -25792,6 +26132,10 @@
|
|
|
25792
26132
|
"message": "Missing item type\nThis function takes an optional function and returns its result. It's\nexpected to be used with optional debug methods, in the context of an\nexisting `LOCAL_DEBUG` check.",
|
|
25793
26133
|
"line": " packages/@glimmer/debug-util/lib/platform-utils.ts:13"
|
|
25794
26134
|
},
|
|
26135
|
+
{
|
|
26136
|
+
"message": "Missing item type",
|
|
26137
|
+
"line": " packages/@glimmer/destroyable/index.ts:241"
|
|
26138
|
+
},
|
|
25795
26139
|
{
|
|
25796
26140
|
"message": "Missing item type\nThis package contains global context functions for Glimmer. These functions\nare set by the embedding environment and must be set before initial render.\n\nThese functions should meet the following criteria:\n\n- Must be provided by the embedder, due to having framework specific\n behaviors (e.g. interop with classic Ember behaviors that should not be\n upstreamed) or to being out of scope for the VM (e.g. scheduling a\n revalidation)\n- Never differ between render roots\n- Never change over time",
|
|
25797
26141
|
"line": " packages/@glimmer/global-context/index.ts:4"
|
|
@@ -26258,135 +26602,135 @@
|
|
|
26258
26602
|
},
|
|
26259
26603
|
{
|
|
26260
26604
|
"message": "Missing item type\nFetch a value from a syscall register onto the stack.\n\n## Opcodes\n\n- Append: `Fetch`\n\n## State changes\n\n[!] push Eval Stack <- $register",
|
|
26261
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
26605
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:146"
|
|
26262
26606
|
},
|
|
26263
26607
|
{
|
|
26264
26608
|
"message": "Missing item type\nLoad a value from the stack into a syscall register.\n\n## Opcodes\n\n- Append: `Load`\n\n## State changes\n\n[!] pop Eval Stack -> `value`\n[$] $register <- `value`",
|
|
26265
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
26609
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:163"
|
|
26266
26610
|
},
|
|
26267
26611
|
{
|
|
26268
26612
|
"message": "Missing item type\nLoad a value into a syscall register.\n\n## State changes\n\n[$] $register <- `value`",
|
|
26269
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
26613
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:181"
|
|
26270
26614
|
},
|
|
26271
26615
|
{
|
|
26272
26616
|
"message": "Missing item type\nFetch a value from a register (machine or syscall).\n\n## State changes\n\n[ ] get $register",
|
|
26273
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
26617
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:194"
|
|
26274
26618
|
},
|
|
26275
26619
|
{
|
|
26276
26620
|
"message": "Missing item type\n## Opcodes\n\n- Append: `BeginComponentTransaction`\n\n## State Changes\n\n[ ] create `guard` (`JumpIfNotModifiedOpcode`)\n[ ] create `tracker` (`BeginTrackFrameOpcode`)\n[!] push Updating Stack <- `guard`\n[!] push Updating Stack <- `tracker`\n[!] push Cache Stack <- `guard`\n[!] push Tracking Stack",
|
|
26277
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
26621
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:337"
|
|
26278
26622
|
},
|
|
26279
26623
|
{
|
|
26280
26624
|
"message": "Missing item type\n## Opcodes\n\n- Append: `CommitComponentTransaction`\n\n## State Changes\n\nCreate a new `EndTrackFrameOpcode` (`end`)\n\n[!] pop CacheStack -> `guard`\n[!] pop Tracking Stack -> `tag`\n[ ] create `end` (`EndTrackFrameOpcode`) with `guard`\n[-] consume `tag`",
|
|
26281
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
26625
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:362"
|
|
26282
26626
|
},
|
|
26283
26627
|
{
|
|
26284
26628
|
"message": "Missing item type\n## Opcodes\n\n- Append: `Enter`\n\n## State changes\n\n[!] push Element Stack as `block`\n[ ] create `try` (`TryOpcode`) with `block`, capturing `args` from the Eval Stack\n\nDid Enter (`try`):\n[-] associate destroyable `try`\n[!] push Destroyable Stack <- `try`\n[!] push Updating List <- `try`\n[!] push Updating Stack <- `try.children`",
|
|
26285
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
26629
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:386"
|
|
26286
26630
|
},
|
|
26287
26631
|
{
|
|
26288
26632
|
"message": "Missing item type\n## Opcodes\n\n- Append: `Iterate`\n- Update: `ListBlock`\n\n## State changes\n\nCreate a new ref for the iterator item (`value`).\nCreate a new ref for the iterator key (`key`).\n\n[ ] create `valueRef` (`Reference`) from `value`\n[ ] create `keyRef` (`Reference`) from `key`\n[!] push Eval Stack <- `valueRef`\n[!] push Eval Stack <- `keyRef`\n[!] push Element Stack <- `UpdatableBlock` as `block`\n[ ] capture `closure` with *2* items from the Eval Stack\n[ ] create `iteration` (`ListItemOpcode`) with `closure`, `block`, `key`, `keyRef` and `valueRef`\n\nDid Enter (`iteration`):\n[-] associate destroyable `iteration`\n[!] push Destroyable Stack <- `iteration`\n[!] push Updating List <- `iteration`\n[!] push Updating Stack <- `iteration.children`",
|
|
26289
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
26633
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:413"
|
|
26290
26634
|
},
|
|
26291
26635
|
{
|
|
26292
26636
|
"message": "Missing item type\n## Opcodes\n\n- Append: `EnterList`\n\n## State changes\n\n[ ] capture `closure` with *0* items from the Eval Stack, and `$pc` from `offset`\n[ ] create `updating` (empty `Array`)\n[!] push Element Stack <- `list` (`BlockList`) with `updating`\n[ ] create `list` (`ListBlockOpcode`) with `closure`, `list`, `updating` and `iterableRef`\n[!] push List Stack <- `list`\n\nDid Enter (`list`):\n[-] associate destroyable `list`\n[!] push Destroyable Stack <- `list`\n[!] push Updating List <- `list`\n[!] push Updating Stack <- `list.children`",
|
|
26293
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
26637
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:460"
|
|
26294
26638
|
},
|
|
26295
26639
|
{
|
|
26296
26640
|
"message": "Missing item type\n## Opcodes\n\n- Append: `Enter`\n- Append: `Iterate`\n- Append: `EnterList`\n- Update: `ListBlock`\n\n## State changes\n\n[-] associate destroyable `opcode`\n[!] push Destroyable Stack <- `opcode`\n[!] push Updating List <- `opcode`\n[!] push Updating Stack <- `opcode.children`",
|
|
26297
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
26641
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:493"
|
|
26298
26642
|
},
|
|
26299
26643
|
{
|
|
26300
26644
|
"message": "Missing item type\n## Opcodes\n\n- Append: `Exit`\n- Append: `ExitList`\n\n## State changes\n\n[!] pop Destroyable Stack\n[!] pop Element Stack\n[!] pop Updating Stack",
|
|
26301
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
26645
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:516"
|
|
26302
26646
|
},
|
|
26303
26647
|
{
|
|
26304
26648
|
"message": "Missing item type\n## Opcodes\n\n- Append: `ExitList`\n\n## State changes\n\nPop List:\n[!] pop Destroyable Stack\n[!] pop Element Stack\n[!] pop Updating Stack\n\n[!] pop List Stack",
|
|
26305
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
26649
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:534"
|
|
26306
26650
|
},
|
|
26307
26651
|
{
|
|
26308
26652
|
"message": "Missing item type\n## Opcodes\n\n- Append: `RootScope`\n- Append: `VirtualRootScope`\n\n## State changes\n\n[!] push Scope Stack",
|
|
26309
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
26653
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:553"
|
|
26310
26654
|
},
|
|
26311
26655
|
{
|
|
26312
26656
|
"message": "Missing item type\n## Opcodes\n\n- Append: `ChildScope`\n\n## State changes\n\n[!] push Scope Stack <- `child` of current Scope",
|
|
26313
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
26657
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:569"
|
|
26314
26658
|
},
|
|
26315
26659
|
{
|
|
26316
26660
|
"message": "Missing item type\n## Opcodes\n\n- Append: `Yield`\n\n## State changes\n\n[!] push Scope Stack <- `scope`",
|
|
26317
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
26661
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:582"
|
|
26318
26662
|
},
|
|
26319
26663
|
{
|
|
26320
26664
|
"message": "Missing item type\n## Opcodes\n\n- Append: `PopScope`\n\n## State changes\n\n[!] pop Scope Stack",
|
|
26321
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
26665
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:595"
|
|
26322
26666
|
},
|
|
26323
26667
|
{
|
|
26324
26668
|
"message": "Missing item type\n## Opcodes\n\n- Append: `PushDynamicScope`\n\n## State changes:\n\n[!] push Dynamic Scope Stack <- child of current Dynamic Scope",
|
|
26325
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
26669
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:608"
|
|
26326
26670
|
},
|
|
26327
26671
|
{
|
|
26328
26672
|
"message": "Missing item type\n## Opcodes\n\n- Append: `BindDynamicScope`\n\n## State changes:\n\n[!] pop Dynamic Scope Stack `names.length` times",
|
|
26329
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
26673
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:623"
|
|
26330
26674
|
},
|
|
26331
26675
|
{
|
|
26332
26676
|
"message": "Missing item type\n## State changes\n\n- [!] push Updating Stack",
|
|
26333
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
26677
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:640"
|
|
26334
26678
|
},
|
|
26335
26679
|
{
|
|
26336
26680
|
"message": "Missing item type\n## State changes\n\n[!] pop Updating Stack",
|
|
26337
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
26681
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:651"
|
|
26338
26682
|
},
|
|
26339
26683
|
{
|
|
26340
26684
|
"message": "Missing item type\n## State changes\n\n[!] push Updating List",
|
|
26341
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
26685
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:662"
|
|
26342
26686
|
},
|
|
26343
26687
|
{
|
|
26344
26688
|
"message": "Missing item type\n## State changes\n\n[-] associate destroyable `child`",
|
|
26345
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
26689
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:677"
|
|
26346
26690
|
},
|
|
26347
26691
|
{
|
|
26348
26692
|
"message": "Missing item type\nGet Tree Builder",
|
|
26349
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
26693
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:696"
|
|
26350
26694
|
},
|
|
26351
26695
|
{
|
|
26352
26696
|
"message": "Missing item type\nGet current Scope",
|
|
26353
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
26697
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:703"
|
|
26354
26698
|
},
|
|
26355
26699
|
{
|
|
26356
26700
|
"message": "Missing item type\nGet current Dynamic Scope",
|
|
26357
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
26701
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:710"
|
|
26358
26702
|
},
|
|
26359
26703
|
{
|
|
26360
26704
|
"message": "Missing item type\nThe address of the compiled template. This is converted into a\npc when the VM is created.",
|
|
26361
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
26705
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:821"
|
|
26362
26706
|
},
|
|
26363
26707
|
{
|
|
26364
26708
|
"message": "Missing item type\nOptionally, specify the root scope for the VM. If not specified,\nthe VM will use a root scope with no `this` reference and no\nsymbols.",
|
|
26365
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
26709
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:827"
|
|
26366
26710
|
},
|
|
26367
26711
|
{
|
|
26368
26712
|
"message": "Missing item type",
|
|
26369
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
26713
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:833"
|
|
26370
26714
|
},
|
|
26371
26715
|
{
|
|
26372
26716
|
"message": "Missing item type\nThe program counter that subsequent evaluations should start from.",
|
|
26373
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
26717
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:842"
|
|
26374
26718
|
},
|
|
26375
26719
|
{
|
|
26376
26720
|
"message": "Missing item type\nThe current value of the VM's scope (which changes whenever a component is invoked or a block\nwith block params is entered).",
|
|
26377
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
26721
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:847"
|
|
26378
26722
|
},
|
|
26379
26723
|
{
|
|
26380
26724
|
"message": "Missing item type\nThe current value of the VM's dynamic scope",
|
|
26381
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
26725
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:853"
|
|
26382
26726
|
},
|
|
26383
26727
|
{
|
|
26384
26728
|
"message": "Missing item type\nA number of stack elements captured during the initial evaluation, and which should be restored\nto the stack when the block is re-evaluated.",
|
|
26385
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
26729
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:858"
|
|
26386
26730
|
},
|
|
26387
26731
|
{
|
|
26388
26732
|
"message": "Missing item type\nA closure captures the state of the VM for a particular block of code that is necessary to\nre-invoke the block in the future.\n\nIn practice, this allows us to clear the previous render and \"replay\" the block's execution,\nrendering content in the same position as the first render.",
|
|
26389
|
-
"line": " packages/@glimmer/runtime/lib/vm/append.ts:
|
|
26733
|
+
"line": " packages/@glimmer/runtime/lib/vm/append.ts:865"
|
|
26390
26734
|
},
|
|
26391
26735
|
{
|
|
26392
26736
|
"message": "Missing item type",
|
|
@@ -27444,6 +27788,10 @@
|
|
|
27444
27788
|
"message": "Missing item type\nZip two tuples with the same type and number of elements.",
|
|
27445
27789
|
"line": " packages/@glimmer/util/lib/array-utils.ts:36"
|
|
27446
27790
|
},
|
|
27791
|
+
{
|
|
27792
|
+
"message": "Missing item type\nClasses Glimmer constructs itself declare this slot, so that\n`@glimmer/destroyable` can hold their meta directly rather than in its\n`WeakMap`. It lives here so packages below `@glimmer/destroyable` can declare\nthe slot without depending on it.\n\nNever write this onto an object Glimmer did not construct. Destroyables are\npublic through `@ember/destroyable` and can be any object a user hands in.",
|
|
27793
|
+
"line": " packages/@glimmer/util/lib/destroyable-key.ts:1"
|
|
27794
|
+
},
|
|
27447
27795
|
{
|
|
27448
27796
|
"message": "Missing item type\nStrongly hint runtimes to intern the provided string.\n\nWhen do I need to use this function?\n\nFor the most part, never. Pre-mature optimization is bad, and often the\nruntime does exactly what you need it to, and more often the trade-off isn't\nworth it.\n\nWhy?\n\nRuntimes store strings in at least 2 different representations:\nRopes and Symbols (interned strings). The Rope provides a memory efficient\ndata-structure for strings created from concatenation or some other string\nmanipulation like splitting.\n\nUnfortunately checking equality of different ropes can be quite costly as\nruntimes must resort to clever string comparison algorithms. These\nalgorithms typically cost in proportion to the length of the string.\nLuckily, this is where the Symbols (interned strings) shine. As Symbols are\nunique by their string content, equality checks can be done by pointer\ncomparison.\n\nHow do I know if my string is a rope or symbol?\n\nTypically (warning general sweeping statement, but truthy in runtimes at\npresent) static strings created as part of the JS source are interned.\nStrings often used for comparisons can be interned at runtime if some\ncriteria are met. One of these criteria can be the size of the entire rope.\nFor example, in chrome 38 a rope longer then 12 characters will not\nintern, nor will segments of that rope.\n\nSome numbers: http://jsperf.com/eval-vs-keys/8\n\nKnown Trick™",
|
|
27449
27797
|
"line": " packages/@glimmer/util/lib/intern.ts:1"
|