ember-source 7.3.0-alpha.5 → 7.3.0
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 +9 -0
- package/dist/dev/packages/@ember/-internals/glimmer/index.js +7 -7
- package/dist/dev/packages/@ember/-internals/routing/index.js +2 -2
- package/dist/dev/packages/@ember/-internals/runtime/index.js +1 -1
- package/dist/dev/packages/@ember/-internals/runtime/lib/ext/rsvp.js +1 -1
- package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/action_handler.js +4 -0
- package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +3 -0
- package/dist/dev/packages/@ember/-internals/views/lib/mixins/action_support.js +2 -0
- package/dist/dev/packages/@ember/application/index.js +3 -3
- package/dist/dev/packages/@ember/application/instance.js +9 -9
- package/dist/dev/packages/@ember/component/helper.js +2 -2
- package/dist/dev/packages/@ember/component/index.js +3 -3
- package/dist/dev/packages/@ember/engine/index.js +3 -3
- package/dist/dev/packages/@ember/engine/instance.js +1 -1
- package/dist/dev/packages/@ember/helper/index.js +1132 -79
- package/dist/dev/packages/@ember/modifier/on.js +1 -1
- package/dist/dev/packages/@ember/object/compat.js +0 -32
- package/dist/dev/packages/@ember/renderer/index.js +1 -1
- package/dist/dev/packages/@ember/routing/-internals.js +2 -2
- package/dist/dev/packages/@ember/routing/index.js +11 -28
- package/dist/dev/packages/@ember/routing/lib/utils.js +2 -2
- package/dist/dev/packages/@ember/routing/route.js +2 -2
- package/dist/dev/packages/@ember/routing/router-service.js +9 -9
- package/dist/dev/packages/@ember/routing/router.js +2 -2
- package/dist/dev/packages/@ember/template-compiler/lib/compile-options.js +3 -3
- package/dist/dev/packages/@ember/template-compiler/lib/template.js +2 -2
- package/dist/dev/packages/@ember/template-factory/index.js +1 -1
- package/dist/dev/packages/@glimmer/opcode-compiler/index.js +2 -2
- package/dist/dev/packages/@glimmer/program/index.js +3 -3
- package/dist/dev/packages/@glimmer/runtime/index.js +7 -7
- package/dist/dev/packages/@glimmer/wire-format/index.js +2 -5
- package/dist/dev/packages/ember/version.js +1 -1
- package/dist/dev/packages/ember-template-compiler/index.js +2 -2
- package/dist/dev/packages/router_js/index.js +2 -2
- package/dist/dev/packages/rsvp/index.js +1 -2281
- package/dist/dev/packages/shared-chunks/{arguments-CDkbOqTS.js → arguments-BVmnQtAM.js} +10 -19
- package/dist/dev/packages/shared-chunks/{compiler-QUSl_urU.js → compiler-BHFFl-fv.js} +1 -1
- package/dist/dev/packages/shared-chunks/{curly-BbL6STF2.js → curly-qZIwixUW.js} +1 -1
- package/dist/dev/packages/shared-chunks/{element-BYLB-q7a.js → element-Cgoi4ldD.js} +0 -24
- package/dist/dev/packages/shared-chunks/get-BVBR6Afa.js +40 -0
- package/dist/dev/packages/shared-chunks/hash-BcOgEgJg.js +57 -0
- package/dist/dev/packages/shared-chunks/{index-DaFzpTIE.js → index-BYUSIu_W.js} +3 -3
- package/dist/dev/packages/shared-chunks/{index-Czn34wUZ.js → index-COgCjiy-.js} +193 -77
- package/dist/dev/packages/shared-chunks/{invoke-d9sqa50M.js → invoke-BzXY_4h3.js} +1 -1
- package/dist/dev/packages/shared-chunks/{not-DYh6AY9Z.js → not-CmLRAsFE.js} +1 -1
- package/dist/dev/packages/shared-chunks/{on-DlF0Wy7P.js → on-DXmOUOBH.js} +22 -11
- package/dist/dev/packages/shared-chunks/{opcodes-CplRyHl_.js → opcodes-DDajoGhq.js} +0 -4
- package/dist/dev/packages/shared-chunks/{outlet-B4qORyui.js → outlet-D6v6ZBvX.js} +3 -3
- package/dist/dev/packages/shared-chunks/{program-context-Dq8xN2HI.js → program-context-BBB1Ga5h.js} +2 -2
- package/dist/dev/packages/shared-chunks/{render-CtH73XOv.js → render-B5RULomD.js} +2 -2
- package/dist/{prod/packages/shared-chunks/rsvp.es-DR7yS7qg.js → dev/packages/shared-chunks/rsvp-aLN_pQtn.js} +152 -148
- package/dist/dev/packages/shared-chunks/{setup-registry-h519ZsHS.js → setup-registry-CVtsD0q2.js} +35 -13
- package/dist/{prod/packages/shared-chunks/syscall-ops-CN7STuUn.js → dev/packages/shared-chunks/syscall-ops-CkPT1Kfx.js} +1 -2
- package/dist/dev/packages/shared-chunks/{textarea-DEvw4ezm.js → textarea-DvS6Xmdh.js} +3 -23
- package/dist/dev/packages/shared-chunks/{unique-id-DQOhouG1.js → unique-id-Csxuh1I7.js} +0 -4
- package/dist/dev/packages/shared-chunks/{unrecognized-url-error-B8loxkay.js → unrecognized-url-error-cXUp-SK3.js} +1 -1
- package/dist/prod/packages/@ember/-internals/deprecations/index.js +9 -0
- package/dist/prod/packages/@ember/-internals/glimmer/index.js +7 -7
- package/dist/prod/packages/@ember/-internals/routing/index.js +2 -2
- package/dist/prod/packages/@ember/-internals/runtime/index.js +1 -1
- package/dist/prod/packages/@ember/-internals/runtime/lib/ext/rsvp.js +1 -1
- package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/action_handler.js +4 -0
- package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +3 -0
- package/dist/prod/packages/@ember/-internals/views/lib/mixins/action_support.js +2 -0
- package/dist/prod/packages/@ember/application/index.js +3 -3
- package/dist/prod/packages/@ember/application/instance.js +9 -9
- package/dist/prod/packages/@ember/component/helper.js +2 -2
- package/dist/prod/packages/@ember/component/index.js +3 -3
- package/dist/prod/packages/@ember/engine/index.js +3 -3
- package/dist/prod/packages/@ember/engine/instance.js +1 -1
- package/dist/prod/packages/@ember/helper/index.js +1132 -79
- package/dist/prod/packages/@ember/modifier/on.js +1 -1
- package/dist/prod/packages/@ember/object/compat.js +0 -32
- package/dist/prod/packages/@ember/renderer/index.js +1 -1
- package/dist/prod/packages/@ember/routing/index.js +10 -27
- package/dist/prod/packages/@ember/routing/lib/utils.js +2 -2
- package/dist/prod/packages/@ember/routing/route.js +2 -2
- package/dist/prod/packages/@ember/routing/router-service.js +9 -9
- package/dist/prod/packages/@ember/routing/router.js +2 -2
- package/dist/prod/packages/@ember/template-compiler/lib/compile-options.js +3 -3
- package/dist/prod/packages/@ember/template-compiler/lib/template.js +2 -2
- package/dist/prod/packages/@ember/template-factory/index.js +1 -1
- package/dist/prod/packages/@glimmer/opcode-compiler/index.js +2 -2
- package/dist/prod/packages/@glimmer/program/index.js +3 -3
- package/dist/prod/packages/@glimmer/runtime/index.js +7 -7
- package/dist/prod/packages/@glimmer/wire-format/index.js +2 -5
- package/dist/prod/packages/ember/version.js +1 -1
- package/dist/prod/packages/ember-template-compiler/index.js +2 -2
- package/dist/prod/packages/router_js/index.js +2 -2
- package/dist/prod/packages/rsvp/index.js +1 -2281
- package/dist/prod/packages/shared-chunks/{arguments-BzAkZVBa.js → arguments-Carzx7C4.js} +6 -19
- package/dist/prod/packages/shared-chunks/{compiler-lBSssiWp.js → compiler-Wt5SWcrF.js} +1 -1
- package/dist/prod/packages/shared-chunks/{curly-CU2jYOtm.js → curly-xbTtts9R.js} +1 -1
- package/dist/prod/packages/shared-chunks/{element-DgHdPZ8u.js → element-BmBjPjkQ.js} +0 -24
- package/dist/prod/packages/shared-chunks/get-ZhOO_1qS.js +40 -0
- package/dist/prod/packages/shared-chunks/hash-b373B4IL.js +57 -0
- package/dist/prod/packages/shared-chunks/{index-XmtQRWbX.js → index-B-2NDHmt.js} +193 -77
- package/dist/prod/packages/shared-chunks/{index-Bf53M8eS.js → index-kwuZeaNz.js} +3 -3
- package/dist/prod/packages/shared-chunks/{invoke-DhQ5QRp2.js → invoke-B-r9UQVH.js} +1 -1
- package/dist/prod/packages/shared-chunks/{not-BOIVROuv.js → not-DOTpWiG3.js} +1 -1
- package/dist/prod/packages/shared-chunks/{on-BZHAxzdq.js → on-B-5KCq9L.js} +22 -11
- package/dist/prod/packages/shared-chunks/{opcodes-CplRyHl_.js → opcodes-DDajoGhq.js} +0 -4
- package/dist/prod/packages/shared-chunks/{outlet-CsNMfeOj.js → outlet-DDxtxFLV.js} +3 -3
- package/dist/prod/packages/shared-chunks/{program-context-COSioH46.js → program-context-WVlzpPdi.js} +2 -2
- package/dist/prod/packages/shared-chunks/{render-Bf7GviCY.js → render-OqKpH1Pf.js} +2 -2
- package/dist/{dev/packages/shared-chunks/rsvp.es-DR7yS7qg.js → prod/packages/shared-chunks/rsvp-aLN_pQtn.js} +152 -148
- package/dist/prod/packages/shared-chunks/{setup-registry-DFSQHIUs.js → setup-registry-CRFWTdVC.js} +35 -13
- package/dist/{dev/packages/shared-chunks/syscall-ops-CN7STuUn.js → prod/packages/shared-chunks/syscall-ops-CkPT1Kfx.js} +1 -2
- package/dist/prod/packages/shared-chunks/{textarea-DMmdvgk2.js → textarea-B-sssXGa.js} +3 -23
- package/dist/prod/packages/shared-chunks/{unique-id-o2pS74go.js → unique-id-BJb1p8EG.js} +0 -4
- package/dist/prod/packages/shared-chunks/{unrecognized-url-error-jjQ-FqKB.js → unrecognized-url-error-xC654tCo.js} +1 -1
- package/docs/data.json +1237 -1395
- package/package.json +5 -7
- package/types/stable/@ember/-internals/deprecations/index.d.ts +6 -0
- package/types/stable/@ember/-internals/glimmer/index.d.ts +7 -380
- package/types/stable/@ember/-internals/glimmer/lib/component.d.ts +1 -1
- package/types/stable/@ember/-internals/glimmer/lib/helper.d.ts +2 -2
- package/types/stable/@ember/-internals/glimmer/lib/helpers/each-in.d.ts +171 -62
- package/types/stable/@ember/-internals/glimmer/lib/helpers/element.d.ts +0 -24
- package/types/stable/@ember/-internals/glimmer/lib/helpers/mut.d.ts +3 -2
- package/types/stable/@ember/-internals/glimmer/lib/helpers/readonly.d.ts +3 -1
- package/types/stable/@ember/-internals/glimmer/lib/helpers/unbound.d.ts +6 -2
- package/types/stable/@ember/-internals/glimmer/lib/helpers/unique-id.d.ts +0 -3
- package/types/stable/@ember/-internals/glimmer/lib/syntax/mount.d.ts +4 -2
- package/types/stable/@ember/-internals/glimmer/lib/syntax/outlet.d.ts +7 -2
- package/types/stable/@ember/helper/index.d.ts +1113 -73
- package/types/stable/@ember/object/compat.d.ts +0 -32
- package/types/stable/@ember/object/core.d.ts +1 -1
- package/types/stable/@ember/routing/router-service.d.ts +9 -9
- package/types/stable/@glimmer/interfaces/lib/compile/wire-format/api.d.ts +1 -9
- package/types/stable/@glimmer/interfaces/lib/compile/wire-format/opcodes.d.ts +0 -4
- package/types/stable/@glimmer/interfaces/lib/vm-opcodes.d.ts +0 -4
- package/types/stable/@glimmer/opcode-compiler/lib/opcode-builder/helpers/conditional.d.ts +1 -1
- package/types/stable/@glimmer/opcode-compiler/lib/syntax/statements.d.ts +1 -1
- package/types/stable/@glimmer/runtime/lib/helpers/array.d.ts +0 -33
- package/types/stable/@glimmer/runtime/lib/helpers/concat.d.ts +0 -25
- package/types/stable/@glimmer/runtime/lib/helpers/fn.d.ts +0 -70
- package/types/stable/@glimmer/runtime/lib/helpers/get.d.ts +0 -69
- package/types/stable/@glimmer/runtime/lib/helpers/hash.d.ts +0 -36
- package/types/stable/index.d.ts +0 -14
- package/dist/dev/packages/shared-chunks/get-6I3sjd-I.js +0 -135
- package/dist/dev/packages/shared-chunks/hash-6NDs_5_f.js +0 -198
- package/dist/prod/packages/shared-chunks/get-Dago5uGl.js +0 -135
- package/dist/prod/packages/shared-chunks/hash-gEXIsSO4.js +0 -198
- package/types/stable/@ember/-internals/glimmer/lib/helpers/array.d.ts +0 -43
- package/types/stable/@ember/-internals/glimmer/lib/helpers/component.d.ts +0 -93
- package/types/stable/@ember/-internals/glimmer/lib/helpers/concat.d.ts +0 -32
- package/types/stable/@ember/-internals/glimmer/lib/helpers/fn.d.ts +0 -77
- package/types/stable/@ember/-internals/glimmer/lib/helpers/get.d.ts +0 -94
- package/types/stable/@ember/-internals/glimmer/lib/helpers/hash.d.ts +0 -46
- package/types/stable/@ember/-internals/glimmer/lib/helpers/helper.d.ts +0 -43
- package/types/stable/@ember/-internals/glimmer/lib/helpers/if-unless.d.ts +0 -228
- package/types/stable/@ember/-internals/glimmer/lib/helpers/log.d.ts +0 -19
- package/types/stable/@ember/-internals/glimmer/lib/helpers/modifier.d.ts +0 -42
- package/types/stable/@ember/-internals/glimmer/lib/helpers/page-title.d.ts +0 -24
- package/types/stable/@ember/-internals/glimmer/lib/modifiers/on.d.ts +0 -95
- package/types/stable/@ember/-internals/glimmer/lib/syntax/in-element.d.ts +0 -49
- package/types/stable/@ember/-internals/glimmer/lib/syntax/let.d.ts +0 -43
package/build-metadata.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "7.3.0
|
|
2
|
+
"version": "7.3.0",
|
|
3
3
|
"buildType": "tag",
|
|
4
|
-
"SHA": "
|
|
5
|
-
"assetPath": "/tag/shas/
|
|
4
|
+
"SHA": "4bffdcad2967657793ebcbdb0b991ecb59d19cf7",
|
|
5
|
+
"assetPath": "/tag/shas/4bffdcad2967657793ebcbdb0b991ecb59d19cf7.tgz"
|
|
6
6
|
}
|
|
@@ -112,6 +112,15 @@ const DEPRECATIONS = {
|
|
|
112
112
|
},
|
|
113
113
|
until: '7.5.0',
|
|
114
114
|
url: 'https://deprecations.emberjs.com/id/deprecate-comparable-mixin'
|
|
115
|
+
}),
|
|
116
|
+
DEPRECATE_TARGET_ACTION_SUPPORT: deprecation({
|
|
117
|
+
for: 'ember-source',
|
|
118
|
+
id: 'deprecate-target-action-support',
|
|
119
|
+
since: {
|
|
120
|
+
available: '7.3.0'
|
|
121
|
+
},
|
|
122
|
+
until: '8.0.0',
|
|
123
|
+
url: 'https://deprecations.emberjs.com/id/deprecate-target-action-support'
|
|
115
124
|
})
|
|
116
125
|
};
|
|
117
126
|
function deprecateUntil(message, deprecation) {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export { t as template, a as templateCacheCounters } from '../../../shared-chunks/index-
|
|
2
|
-
export { O as OutletView, R as Renderer, a as RootTemplate, s as setupApplicationRegistry, b as setupEngineRegistry } from '../../../shared-chunks/setup-registry-
|
|
3
|
-
export { I as Input, T as Textarea } from '../../../shared-chunks/textarea-
|
|
1
|
+
export { t as template, a as templateCacheCounters } from '../../../shared-chunks/index-BYUSIu_W.js';
|
|
2
|
+
export { O as OutletView, R as Renderer, a as RootTemplate, s as setupApplicationRegistry, b as setupEngineRegistry } from '../../../shared-chunks/setup-registry-CVtsD0q2.js';
|
|
3
|
+
export { I as Input, T as Textarea } from '../../../shared-chunks/textarea-DvS6Xmdh.js';
|
|
4
4
|
export { LinkTo } from '../../routing/index.js';
|
|
5
5
|
export { default as Component, setComponentManager } from '../../component/index.js';
|
|
6
6
|
export { default as Helper, helper } from '../../component/helper.js';
|
|
7
7
|
export { S as SafeString, T as TrustedHTML, h as htmlSafe, i as isHTMLSafe, a as isTrustedHTML, t as trustHTML } from '../../../shared-chunks/index-D-xTBV4B.js';
|
|
8
|
-
export { D as DOMChanges } from '../../../shared-chunks/render-
|
|
8
|
+
export { D as DOMChanges } from '../../../shared-chunks/render-B5RULomD.js';
|
|
9
9
|
export { D as DOMTreeConstruction } from '../../../shared-chunks/api-Dz70AUL_.js';
|
|
10
10
|
import '../../../@glimmer/destroyable/index.js';
|
|
11
11
|
export { i as isSerializationFirstNode } from '../../../shared-chunks/rehydrate-builder-CsnkZkur.js';
|
|
12
12
|
export { NodeDOMTreeConstruction } from '../../../@glimmer/node/index.js';
|
|
13
|
-
export { e as element } from '../../../shared-chunks/element-
|
|
14
|
-
export { u as uniqueId } from '../../../shared-chunks/unique-id-
|
|
15
|
-
export { _ as _resetRenderers, r as renderComponent, a as renderSettled } from '../../../shared-chunks/index-
|
|
13
|
+
export { e as element } from '../../../shared-chunks/element-Cgoi4ldD.js';
|
|
14
|
+
export { u as uniqueId } from '../../../shared-chunks/unique-id-Csxuh1I7.js';
|
|
15
|
+
export { _ as _resetRenderers, r as renderComponent, a as renderSettled } from '../../../shared-chunks/index-COgCjiy-.js';
|
|
16
16
|
export { c as componentCapabilities, m as modifierCapabilities } from '../../../shared-chunks/api-BlZDPg1n.js';
|
|
17
17
|
|
|
18
18
|
// STATE within a module is frowned upon, this exists
|
|
@@ -2,8 +2,8 @@ import '../../../shared-chunks/property_get-DXwpgTe7.js';
|
|
|
2
2
|
import '../../debug/index.js';
|
|
3
3
|
import '../../engine/instance.js';
|
|
4
4
|
import '../../../route-recognizer/index.js';
|
|
5
|
-
import '../../../shared-chunks/rsvp
|
|
6
|
-
import '../../../shared-chunks/unrecognized-url-error-
|
|
5
|
+
import '../../../shared-chunks/rsvp-aLN_pQtn.js';
|
|
6
|
+
import '../../../shared-chunks/unrecognized-url-error-cXUp-SK3.js';
|
|
7
7
|
import '../../routing/lib/routing-service.js';
|
|
8
8
|
export { default as generateController, generateControllerFactory } from '../../routing/lib/generate_controller.js';
|
|
9
9
|
export { default as RouterDSL } from '../../routing/lib/dsl.js';
|
|
@@ -6,4 +6,4 @@ export { default as _ProxyMixin, contentFor as _contentFor } from './lib/mixins/
|
|
|
6
6
|
export { default as MutableEnumerable } from '../../enumerable/mutable.js';
|
|
7
7
|
export { default as TargetActionSupport } from './lib/mixins/target_action_support.js';
|
|
8
8
|
export { onerrorDefault } from './lib/ext/rsvp.js';
|
|
9
|
-
export { R as RSVP } from '../../../shared-chunks/rsvp
|
|
9
|
+
export { R as RSVP } from '../../../shared-chunks/rsvp-aLN_pQtn.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as configure, o as on, R as RSVP } from '../../../../../shared-chunks/rsvp
|
|
1
|
+
import { c as configure, o as on, R as RSVP } from '../../../../../shared-chunks/rsvp-aLN_pQtn.js';
|
|
2
2
|
import { _backburner, _rsvpErrorQueue } from '../../../../runloop/index.js';
|
|
3
3
|
import { getDispatchOverride } from '../../../error-handling/index.js';
|
|
4
4
|
import '../../../../debug/index.js';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import Mixin from '../../../../object/mixin.js';
|
|
2
2
|
import { g as get } from '../../../../../shared-chunks/property_get-DXwpgTe7.js';
|
|
3
3
|
import '../../../../debug/index.js';
|
|
4
|
+
import { deprecateUntil, DEPRECATIONS } from '../../../deprecations/index.js';
|
|
4
5
|
import { assert } from '../../../../debug/lib/assert.js';
|
|
5
6
|
|
|
6
7
|
/**
|
|
@@ -135,6 +136,7 @@ const ActionHandler = Mixin.create({
|
|
|
135
136
|
});
|
|
136
137
|
```
|
|
137
138
|
@property actions
|
|
139
|
+
@deprecated Use the `@action` decorator instead.
|
|
138
140
|
@type Object
|
|
139
141
|
@default null
|
|
140
142
|
@public
|
|
@@ -163,11 +165,13 @@ const ActionHandler = Mixin.create({
|
|
|
163
165
|
});
|
|
164
166
|
```
|
|
165
167
|
@method send
|
|
168
|
+
@deprecated Use direct method calls instead.
|
|
166
169
|
@param {String} actionName The action to trigger
|
|
167
170
|
@param {*} context a context to send with the action
|
|
168
171
|
@public
|
|
169
172
|
*/
|
|
170
173
|
send(actionName, ...args) {
|
|
174
|
+
deprecateUntil(`Calling \`.send()\` on ${this} is deprecated. Invoke the corresponding method directly.`, DEPRECATIONS.DEPRECATE_TARGET_ACTION_SUPPORT);
|
|
171
175
|
(!(!this.isDestroying && !this.isDestroyed) && assert(`Attempted to call .send() with the action '${actionName}' on the destroyed object '${this}'.`, !this.isDestroying && !this.isDestroyed));
|
|
172
176
|
if (this.actions && this.actions[actionName]) {
|
|
173
177
|
let shouldBubble = this.actions[actionName].apply(this, args) === true;
|
|
@@ -3,6 +3,7 @@ import { g as get } from '../../../../../shared-chunks/property_get-DXwpgTe7.js'
|
|
|
3
3
|
import { c as computed } from '../../../../../shared-chunks/computed-DGxbeUbf.js';
|
|
4
4
|
import Mixin from '../../../../object/mixin.js';
|
|
5
5
|
import '../../../../debug/index.js';
|
|
6
|
+
import { deprecateUntil, DEPRECATIONS } from '../../../deprecations/index.js';
|
|
6
7
|
import { assert } from '../../../../debug/lib/assert.js';
|
|
7
8
|
|
|
8
9
|
/**
|
|
@@ -85,11 +86,13 @@ const TargetActionSupport = Mixin.create({
|
|
|
85
86
|
});
|
|
86
87
|
```
|
|
87
88
|
@method triggerAction
|
|
89
|
+
@deprecated Use a direct method call or closure action instead.
|
|
88
90
|
@param opts {Object} (optional, with the optional keys action, target and/or actionContext)
|
|
89
91
|
@return {Boolean} true if the action was sent successfully and did not return false
|
|
90
92
|
@private
|
|
91
93
|
*/
|
|
92
94
|
triggerAction(opts = {}) {
|
|
95
|
+
deprecateUntil(`Calling \`triggerAction\` on ${this} is deprecated. Invoke the target method directly.`, DEPRECATIONS.DEPRECATE_TARGET_ACTION_SUPPORT);
|
|
93
96
|
let {
|
|
94
97
|
action,
|
|
95
98
|
target,
|
|
@@ -2,6 +2,7 @@ import { g as get } from '../../../../../shared-chunks/property_get-DXwpgTe7.js'
|
|
|
2
2
|
import Mixin from '../../../../object/mixin.js';
|
|
3
3
|
import inspect from '../../../../debug/lib/inspect.js';
|
|
4
4
|
import '../../../../debug/index.js';
|
|
5
|
+
import { deprecateUntil, DEPRECATIONS } from '../../../deprecations/index.js';
|
|
5
6
|
import { assert } from '../../../../debug/lib/assert.js';
|
|
6
7
|
|
|
7
8
|
/**
|
|
@@ -16,6 +17,7 @@ import { assert } from '../../../../debug/lib/assert.js';
|
|
|
16
17
|
|
|
17
18
|
const ActionSupport = Mixin.create({
|
|
18
19
|
send(actionName, ...args) {
|
|
20
|
+
deprecateUntil(`Calling \`.send()\` on ${this} is deprecated. Invoke the corresponding method directly.`, DEPRECATIONS.DEPRECATE_TARGET_ACTION_SUPPORT);
|
|
19
21
|
(!(!this.isDestroying && !this.isDestroyed) && assert(`Attempted to call .send() with the action '${actionName}' on the destroyed object '${this}'.`, !this.isDestroying && !this.isDestroyed));
|
|
20
22
|
let action = this.actions && this.actions[actionName];
|
|
21
23
|
if (action) {
|
|
@@ -16,14 +16,14 @@ import NoneLocation from '../routing/none-location.js';
|
|
|
16
16
|
import '../../shared-chunks/property_get-DXwpgTe7.js';
|
|
17
17
|
import '../engine/instance.js';
|
|
18
18
|
import '../../route-recognizer/index.js';
|
|
19
|
-
import { R as RSVP } from '../../shared-chunks/rsvp
|
|
20
|
-
import '../../shared-chunks/unrecognized-url-error-
|
|
19
|
+
import { R as RSVP } from '../../shared-chunks/rsvp-aLN_pQtn.js';
|
|
20
|
+
import '../../shared-chunks/unrecognized-url-error-cXUp-SK3.js';
|
|
21
21
|
import '../routing/lib/routing-service.js';
|
|
22
22
|
import BucketCache from '../routing/lib/cache.js';
|
|
23
23
|
import ApplicationInstance from './instance.js';
|
|
24
24
|
import Engine, { buildInitializerMethod } from '../engine/index.js';
|
|
25
25
|
import { privatize } from '../-internals/container/index.js';
|
|
26
|
-
import { s as setupApplicationRegistry } from '../../shared-chunks/setup-registry-
|
|
26
|
+
import { s as setupApplicationRegistry } from '../../shared-chunks/setup-registry-CVtsD0q2.js';
|
|
27
27
|
import RouterService from '../routing/router-service.js';
|
|
28
28
|
import { assert } from '../debug/lib/assert.js';
|
|
29
29
|
|
|
@@ -8,21 +8,21 @@ import '../debug/index.js';
|
|
|
8
8
|
import '../../@glimmer/destroyable/index.js';
|
|
9
9
|
import '../../shared-chunks/reference-BqOLhKFy.js';
|
|
10
10
|
import '../../shared-chunks/api-Dz70AUL_.js';
|
|
11
|
-
import '../../shared-chunks/arguments-
|
|
11
|
+
import '../../shared-chunks/arguments-BVmnQtAM.js';
|
|
12
12
|
import '../../shared-chunks/cache-DGDPVCpC.js';
|
|
13
|
-
import '../../shared-chunks/render-
|
|
13
|
+
import '../../shared-chunks/render-B5RULomD.js';
|
|
14
14
|
import '../../@glimmer/global-context/index.js';
|
|
15
|
-
import '../../shared-chunks/curly-
|
|
16
|
-
import '../../shared-chunks/outlet-
|
|
15
|
+
import '../../shared-chunks/curly-qZIwixUW.js';
|
|
16
|
+
import '../../shared-chunks/outlet-D6v6ZBvX.js';
|
|
17
17
|
import '../../shared-chunks/container-BzzHmCNj.js';
|
|
18
18
|
import '../../shared-chunks/env-g-kaAFLN.js';
|
|
19
19
|
import '../../shared-chunks/capabilities-CajW4QjE.js';
|
|
20
|
-
import '../../shared-chunks/hash-
|
|
21
|
-
import '../../shared-chunks/get-
|
|
22
|
-
import '../../shared-chunks/on-
|
|
20
|
+
import '../../shared-chunks/hash-BcOgEgJg.js';
|
|
21
|
+
import '../../shared-chunks/get-BVBR6Afa.js';
|
|
22
|
+
import '../../shared-chunks/on-DXmOUOBH.js';
|
|
23
23
|
import '../../shared-chunks/template-only-Cu639ICT.js';
|
|
24
|
-
import { a as renderSettled } from '../../shared-chunks/index-
|
|
25
|
-
import '../../shared-chunks/unique-id-
|
|
24
|
+
import { a as renderSettled } from '../../shared-chunks/index-COgCjiy-.js';
|
|
25
|
+
import '../../shared-chunks/unique-id-Csxuh1I7.js';
|
|
26
26
|
import '../runloop/index.js';
|
|
27
27
|
import EmberRouter from '../routing/router.js';
|
|
28
28
|
import EventDispatcher from '../-internals/views/lib/system/event_dispatcher.js';
|
|
@@ -28,7 +28,7 @@ const RECOMPUTE_TAG = Symbol('RECOMPUTE_TAG');
|
|
|
28
28
|
Ember Helpers are functions that can compute values, and are used in templates.
|
|
29
29
|
For example, this code calls a helper named `format-currency`:
|
|
30
30
|
|
|
31
|
-
```app/templates/application.gjs
|
|
31
|
+
```gjs {data-filename="app/templates/application.gjs"}
|
|
32
32
|
import Cost from '../components/cost';
|
|
33
33
|
|
|
34
34
|
<template>
|
|
@@ -36,7 +36,7 @@ const RECOMPUTE_TAG = Symbol('RECOMPUTE_TAG');
|
|
|
36
36
|
</template>
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
```app/components/cost.gjs
|
|
39
|
+
```gjs {data-filename="app/components/cost.gjs"}
|
|
40
40
|
import formatCurrency from '../helpers/format-currency';
|
|
41
41
|
|
|
42
42
|
<template>
|
|
@@ -14,11 +14,11 @@ import { s as setInternalComponentManager } from '../../shared-chunks/api-DuLOZM
|
|
|
14
14
|
import { d as isUpdatableRef, u as updateRef } from '../../shared-chunks/reference-BqOLhKFy.js';
|
|
15
15
|
import { n as normalizeProperty } from '../../shared-chunks/props-fiqxqhAH.js';
|
|
16
16
|
import { r as createTag, D as DIRTY_TAG$1 } from '../../shared-chunks/cache-DGDPVCpC.js';
|
|
17
|
-
import { I as IS_DISPATCHING_ATTRS, D as DIRTY_TAG, B as BOUNDS, g as getComponentCapturedArgs, b as CURLY_COMPONENT_MANAGER } from '../../shared-chunks/curly-
|
|
17
|
+
import { I as IS_DISPATCHING_ATTRS, D as DIRTY_TAG, B as BOUNDS, g as getComponentCapturedArgs, b as CURLY_COMPONENT_MANAGER } from '../../shared-chunks/curly-qZIwixUW.js';
|
|
18
18
|
import { h as hasDOM } from '../../shared-chunks/index-BGP1rw3B.js';
|
|
19
19
|
import { a as decorateMethodV2 } from '../../shared-chunks/runtime-CYyqkz5q-BOdRhmsS.js';
|
|
20
20
|
import { assert } from '../debug/lib/assert.js';
|
|
21
|
-
export { I as Input, T as Textarea } from '../../shared-chunks/textarea-
|
|
21
|
+
export { I as Input, T as Textarea } from '../../shared-chunks/textarea-DvS6Xmdh.js';
|
|
22
22
|
import { s as setComponentManager$1 } from '../../shared-chunks/api-BlZDPg1n.js';
|
|
23
23
|
export { c as capabilities } from '../../shared-chunks/api-BlZDPg1n.js';
|
|
24
24
|
import '../../@glimmer/destroyable/index.js';
|
|
@@ -562,7 +562,7 @@ function matches(el, selector) {
|
|
|
562
562
|
|
|
563
563
|
See the [Guide on Component event
|
|
564
564
|
handlers](https://guides.emberjs.com/release/components/component-state-and-actions/#toc_html-modifiers-and-actions)
|
|
565
|
-
and the [API docs for `on`](../
|
|
565
|
+
and the [API docs for `on`](../functions/Keywords/on)
|
|
566
566
|
for more details.
|
|
567
567
|
|
|
568
568
|
### Event Handler Methods
|
|
@@ -10,10 +10,10 @@ import { g as get } from '../../shared-chunks/property_get-DXwpgTe7.js';
|
|
|
10
10
|
import { s as set } from '../../shared-chunks/property_set-DezUwDX4.js';
|
|
11
11
|
import EngineInstance from './instance.js';
|
|
12
12
|
import '../../route-recognizer/index.js';
|
|
13
|
-
import '../../shared-chunks/rsvp
|
|
14
|
-
import '../../shared-chunks/unrecognized-url-error-
|
|
13
|
+
import '../../shared-chunks/rsvp-aLN_pQtn.js';
|
|
14
|
+
import '../../shared-chunks/unrecognized-url-error-cXUp-SK3.js';
|
|
15
15
|
import RoutingService from '../routing/lib/routing-service.js';
|
|
16
|
-
import { b as setupEngineRegistry } from '../../shared-chunks/setup-registry-
|
|
16
|
+
import { b as setupEngineRegistry } from '../../shared-chunks/setup-registry-CVtsD0q2.js';
|
|
17
17
|
import RegistryProxyMixin from '../-internals/runtime/lib/mixins/registry_proxy.js';
|
|
18
18
|
import { StrictResolver } from './lib/strict-resolver.js';
|
|
19
19
|
import { assert } from '../debug/lib/assert.js';
|
|
@@ -8,7 +8,7 @@ import ContainerProxyMixin from '../-internals/runtime/lib/mixins/container_prox
|
|
|
8
8
|
import RegistryProxyMixin from '../-internals/runtime/lib/mixins/registry_proxy.js';
|
|
9
9
|
import { isFactory } from '../-internals/owner/index.js';
|
|
10
10
|
import { assert } from '../debug/lib/assert.js';
|
|
11
|
-
import { R as RSVP } from '../../shared-chunks/rsvp
|
|
11
|
+
import { R as RSVP } from '../../shared-chunks/rsvp-aLN_pQtn.js';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
@module @ember/engine
|