ember-source 5.3.0-alpha.1 → 5.3.0-alpha.2
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/ember-template-compiler.js +2 -2
- package/dist/ember-template-compiler.map +1 -1
- package/dist/ember-testing.js +1 -1
- package/dist/ember-testing.map +1 -1
- package/dist/ember.debug.js +11 -44
- package/dist/ember.debug.map +1 -1
- package/dist/header/license.js +1 -1
- package/dist/packages/@ember/-internals/views/lib/system/event_dispatcher.js +0 -4
- package/dist/packages/@ember/object/core.js +0 -32
- package/dist/packages/@ember/routing/route.js +9 -6
- package/dist/packages/ember/version.js +1 -1
- package/docs/data.json +56 -56
- package/package.json +4 -2
- package/types/stable/@ember/-internals/container/lib/registry.d.ts +6 -3
- package/types/stable/@ember/-internals/glimmer/lib/component-managers/curly.d.ts +1 -2
- package/types/stable/@ember/-internals/glimmer/lib/component.d.ts +1 -1
- package/types/stable/@ember/-internals/glimmer/lib/renderer.d.ts +1 -1
- package/types/stable/@ember/-internals/views/lib/mixins/view_support.d.ts +1 -1
- package/types/stable/@ember/-internals/views/lib/system/utils.d.ts +6 -7
- package/types/stable/@ember/array/proxy.d.ts +2 -2
- package/types/stable/@ember/object/core.d.ts +6 -1
- package/types/stable/@ember/routing/route.d.ts +4 -3
package/dist/header/license.js
CHANGED
|
@@ -197,8 +197,6 @@ export default class EventDispatcher extends EmberObject {
|
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
let viewHandler = (target, event) => {
|
|
200
|
-
// SAFETY: SimpleElement is supposed to be a subset of Element so this _should_ be safe.
|
|
201
|
-
// However, the types are more specific in some places which necessitates the `as`.
|
|
202
200
|
let view = getElementView(target);
|
|
203
201
|
let result = true;
|
|
204
202
|
if (view) {
|
|
@@ -252,8 +250,6 @@ export default class EventDispatcher extends EmberObject {
|
|
|
252
250
|
let target = event.target;
|
|
253
251
|
assert(`[BUG] Received event without an Element target: ${event.type}, ${target}`, target instanceof Element);
|
|
254
252
|
do {
|
|
255
|
-
// SAFETY: SimpleElement is supposed to be a subset of Element so this _should_ be safe.
|
|
256
|
-
// However, the types are more specific in some places which necessitates the `as`.
|
|
257
253
|
if (getElementView(target)) {
|
|
258
254
|
if (viewHandler(target, event) === false) {
|
|
259
255
|
event.preventDefault();
|
|
@@ -374,38 +374,6 @@ class CoreObject {
|
|
|
374
374
|
reopen.apply(Class.PrototypeMixin, mixins);
|
|
375
375
|
return Class;
|
|
376
376
|
}
|
|
377
|
-
/**
|
|
378
|
-
Creates an instance of a class. Accepts either no arguments, or an object
|
|
379
|
-
containing values to initialize the newly instantiated object with.
|
|
380
|
-
```javascript
|
|
381
|
-
import EmberObject from '@ember/object';
|
|
382
|
-
const Person = EmberObject.extend({
|
|
383
|
-
helloWorld() {
|
|
384
|
-
alert(`Hi, my name is ${this.get('name')}`);
|
|
385
|
-
}
|
|
386
|
-
});
|
|
387
|
-
let tom = Person.create({
|
|
388
|
-
name: 'Tom Dale'
|
|
389
|
-
});
|
|
390
|
-
tom.helloWorld(); // alerts "Hi, my name is Tom Dale".
|
|
391
|
-
```
|
|
392
|
-
`create` will call the `init` function if defined during
|
|
393
|
-
`AnyObject.extend`
|
|
394
|
-
If no arguments are passed to `create`, it will not set values to the new
|
|
395
|
-
instance during initialization:
|
|
396
|
-
```javascript
|
|
397
|
-
let noName = Person.create();
|
|
398
|
-
noName.helloWorld(); // alerts undefined
|
|
399
|
-
```
|
|
400
|
-
NOTE: For performance reasons, you cannot declare methods or computed
|
|
401
|
-
properties during `create`. You should instead declare methods and computed
|
|
402
|
-
properties when using `extend`.
|
|
403
|
-
@method create
|
|
404
|
-
@for @ember/object
|
|
405
|
-
@static
|
|
406
|
-
@param [arguments]*
|
|
407
|
-
@public
|
|
408
|
-
*/
|
|
409
377
|
static create(...args) {
|
|
410
378
|
let props = args[0];
|
|
411
379
|
let instance;
|
|
@@ -605,7 +605,13 @@ class Route extends EmberObject.extend(ActionHandler, Evented) {
|
|
|
605
605
|
@private
|
|
606
606
|
*/
|
|
607
607
|
findModel(...args) {
|
|
608
|
-
|
|
608
|
+
// SAFETY: it's all absurd lies; there is no explicit contract for `store`
|
|
609
|
+
// and we allow people to register *anything* here and we call it: GLHF! The
|
|
610
|
+
// fallback path here means we correctly handle the case where there is no
|
|
611
|
+
// explicit store injection on the route subclass.
|
|
612
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
613
|
+
let store = 'store' in this ? this.store : get(this, '_store');
|
|
614
|
+
return store.find(...args);
|
|
609
615
|
}
|
|
610
616
|
/**
|
|
611
617
|
A hook you can use to setup the controller for the current route.
|
|
@@ -810,7 +816,7 @@ class Route extends EmberObject.extend(ActionHandler, Evented) {
|
|
|
810
816
|
@type {Object}
|
|
811
817
|
@private
|
|
812
818
|
*/
|
|
813
|
-
get
|
|
819
|
+
get _store() {
|
|
814
820
|
const owner = getOwner(this);
|
|
815
821
|
assert('Route is unexpectedly missing an owner', owner);
|
|
816
822
|
let routeName = this.routeName;
|
|
@@ -827,9 +833,6 @@ class Route extends EmberObject.extend(ActionHandler, Evented) {
|
|
|
827
833
|
}
|
|
828
834
|
};
|
|
829
835
|
}
|
|
830
|
-
set store(value) {
|
|
831
|
-
defineProperty(this, 'store', null, value);
|
|
832
|
-
}
|
|
833
836
|
/**
|
|
834
837
|
@private
|
|
835
838
|
@property _qp
|
|
@@ -943,7 +946,7 @@ class Route extends EmberObject.extend(ActionHandler, Evented) {
|
|
|
943
946
|
}
|
|
944
947
|
}
|
|
945
948
|
Route.isRouteFactory = true;
|
|
946
|
-
__decorate([computed], Route.prototype, "
|
|
949
|
+
__decorate([computed], Route.prototype, "_store", null);
|
|
947
950
|
__decorate([computed], Route.prototype, "_qp", null);
|
|
948
951
|
function parentRoute(route) {
|
|
949
952
|
let routeInfo = routeInfoFor(route, route._router._routerMicrolib.state.routeInfos, -1);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "5.3.0-alpha.
|
|
1
|
+
export default "5.3.0-alpha.2";
|
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": "5.3.0-alpha.
|
|
6
|
+
"version": "5.3.0-alpha.2"
|
|
7
7
|
},
|
|
8
8
|
"files": {
|
|
9
9
|
"node_modules/rsvp/lib/rsvp/promise/all.js": {
|
|
@@ -2611,7 +2611,7 @@
|
|
|
2611
2611
|
"module": "rsvp",
|
|
2612
2612
|
"namespace": "",
|
|
2613
2613
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
2614
|
-
"line":
|
|
2614
|
+
"line": 36,
|
|
2615
2615
|
"description": "A registry used to store factory and option information keyed\nby type.\n\nA `Registry` stores the factory and option information needed by a\n`Container` to instantiate and cache objects.\n\nThe API for `Registry` is still in flux and should not be considered stable.",
|
|
2616
2616
|
"access": "private",
|
|
2617
2617
|
"tagname": "",
|
|
@@ -3368,7 +3368,7 @@
|
|
|
3368
3368
|
"module": "ember",
|
|
3369
3369
|
"namespace": "Ember",
|
|
3370
3370
|
"file": "packages/@ember/-internals/views/lib/system/event_dispatcher.ts",
|
|
3371
|
-
"line":
|
|
3371
|
+
"line": 18,
|
|
3372
3372
|
"description": "`Ember.EventDispatcher` handles delegating browser events to their\ncorresponding `Ember.Views.` For example, when you click on a view,\n`Ember.EventDispatcher` ensures that that view's `mouseDown` method gets\ncalled.",
|
|
3373
3373
|
"access": "private",
|
|
3374
3374
|
"tagname": "",
|
|
@@ -5054,7 +5054,7 @@
|
|
|
5054
5054
|
},
|
|
5055
5055
|
{
|
|
5056
5056
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
5057
|
-
"line":
|
|
5057
|
+
"line": 75,
|
|
5058
5058
|
"description": "A backup registry for resolving registrations when no matches can be found.",
|
|
5059
5059
|
"access": "private",
|
|
5060
5060
|
"tagname": "",
|
|
@@ -5066,7 +5066,7 @@
|
|
|
5066
5066
|
},
|
|
5067
5067
|
{
|
|
5068
5068
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
5069
|
-
"line":
|
|
5069
|
+
"line": 83,
|
|
5070
5070
|
"description": "An object that has a `resolve` method that resolves a name.",
|
|
5071
5071
|
"access": "private",
|
|
5072
5072
|
"tagname": "",
|
|
@@ -5078,7 +5078,7 @@
|
|
|
5078
5078
|
},
|
|
5079
5079
|
{
|
|
5080
5080
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
5081
|
-
"line":
|
|
5081
|
+
"line": 91,
|
|
5082
5082
|
"access": "private",
|
|
5083
5083
|
"tagname": "",
|
|
5084
5084
|
"itemtype": "property",
|
|
@@ -5089,7 +5089,7 @@
|
|
|
5089
5089
|
},
|
|
5090
5090
|
{
|
|
5091
5091
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
5092
|
-
"line":
|
|
5092
|
+
"line": 97,
|
|
5093
5093
|
"access": "private",
|
|
5094
5094
|
"tagname": "",
|
|
5095
5095
|
"itemtype": "property",
|
|
@@ -5100,7 +5100,7 @@
|
|
|
5100
5100
|
},
|
|
5101
5101
|
{
|
|
5102
5102
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
5103
|
-
"line":
|
|
5103
|
+
"line": 104,
|
|
5104
5104
|
"access": "private",
|
|
5105
5105
|
"tagname": "",
|
|
5106
5106
|
"itemtype": "property",
|
|
@@ -5111,7 +5111,7 @@
|
|
|
5111
5111
|
},
|
|
5112
5112
|
{
|
|
5113
5113
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
5114
|
-
"line":
|
|
5114
|
+
"line": 111,
|
|
5115
5115
|
"access": "private",
|
|
5116
5116
|
"tagname": "",
|
|
5117
5117
|
"itemtype": "property",
|
|
@@ -5122,7 +5122,7 @@
|
|
|
5122
5122
|
},
|
|
5123
5123
|
{
|
|
5124
5124
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
5125
|
-
"line":
|
|
5125
|
+
"line": 118,
|
|
5126
5126
|
"access": "private",
|
|
5127
5127
|
"tagname": "",
|
|
5128
5128
|
"itemtype": "property",
|
|
@@ -5133,7 +5133,7 @@
|
|
|
5133
5133
|
},
|
|
5134
5134
|
{
|
|
5135
5135
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
5136
|
-
"line":
|
|
5136
|
+
"line": 125,
|
|
5137
5137
|
"description": "Creates a container based on this registry.",
|
|
5138
5138
|
"access": "private",
|
|
5139
5139
|
"tagname": "",
|
|
@@ -5155,7 +5155,7 @@
|
|
|
5155
5155
|
},
|
|
5156
5156
|
{
|
|
5157
5157
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
5158
|
-
"line":
|
|
5158
|
+
"line": 137,
|
|
5159
5159
|
"description": "Registers a factory for later injection.\n\nExample:\n\n```javascript\nlet registry = new Registry();\n\nregistry.register('model:user', Person, {singleton: false });\nregistry.register('fruit:favorite', Orange);\nregistry.register('communication:main', Email, {singleton: false});\n```",
|
|
5160
5160
|
"access": "private",
|
|
5161
5161
|
"tagname": "",
|
|
@@ -5183,7 +5183,7 @@
|
|
|
5183
5183
|
},
|
|
5184
5184
|
{
|
|
5185
5185
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
5186
|
-
"line":
|
|
5186
|
+
"line": 186,
|
|
5187
5187
|
"description": "Unregister a fullName\n\n```javascript\nlet registry = new Registry();\nregistry.register('model:user', User);\n\nregistry.resolve('model:user').create() instanceof User //=> true\n\nregistry.unregister('model:user')\nregistry.resolve('model:user') === undefined //=> true\n```",
|
|
5188
5188
|
"access": "private",
|
|
5189
5189
|
"tagname": "",
|
|
@@ -5201,7 +5201,7 @@
|
|
|
5201
5201
|
},
|
|
5202
5202
|
{
|
|
5203
5203
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
5204
|
-
"line":
|
|
5204
|
+
"line": 214,
|
|
5205
5205
|
"description": "Given a fullName return the corresponding factory.\n\nBy default `resolve` will retrieve the factory from\nthe registry.\n\n```javascript\nlet registry = new Registry();\nregistry.register('api:twitter', Twitter);\n\nregistry.resolve('api:twitter') // => Twitter\n```\n\nOptionally the registry can be provided with a custom resolver.\nIf provided, `resolve` will first provide the custom resolver\nthe opportunity to resolve the fullName, otherwise it will fallback\nto the registry.\n\n```javascript\nlet registry = new Registry();\nregistry.resolver = function(fullName) {\n // lookup via the module system of choice\n };\n\n// the twitter factory is added to the module system\nregistry.resolve('api:twitter') // => Twitter\n```",
|
|
5206
5206
|
"access": "private",
|
|
5207
5207
|
"tagname": "",
|
|
@@ -5223,7 +5223,7 @@
|
|
|
5223
5223
|
},
|
|
5224
5224
|
{
|
|
5225
5225
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
5226
|
-
"line":
|
|
5226
|
+
"line": 255,
|
|
5227
5227
|
"description": "A hook that can be used to describe how the resolver will\nattempt to find the factory.\n\nFor example, the default Ember `.describe` returns the full\nclass name (including namespace) where Ember's resolver expects\nto find the `fullName`.",
|
|
5228
5228
|
"access": "private",
|
|
5229
5229
|
"tagname": "",
|
|
@@ -5245,7 +5245,7 @@
|
|
|
5245
5245
|
},
|
|
5246
5246
|
{
|
|
5247
5247
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
5248
|
-
"line":
|
|
5248
|
+
"line": 278,
|
|
5249
5249
|
"description": "A hook to enable custom fullName normalization behavior",
|
|
5250
5250
|
"access": "private",
|
|
5251
5251
|
"tagname": "",
|
|
@@ -5267,7 +5267,7 @@
|
|
|
5267
5267
|
},
|
|
5268
5268
|
{
|
|
5269
5269
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
5270
|
-
"line":
|
|
5270
|
+
"line": 296,
|
|
5271
5271
|
"description": "Normalize a fullName based on the application's conventions",
|
|
5272
5272
|
"access": "private",
|
|
5273
5273
|
"tagname": "",
|
|
@@ -5289,7 +5289,7 @@
|
|
|
5289
5289
|
},
|
|
5290
5290
|
{
|
|
5291
5291
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
5292
|
-
"line":
|
|
5292
|
+
"line": 311,
|
|
5293
5293
|
"itemtype": "method",
|
|
5294
5294
|
"name": "makeToString",
|
|
5295
5295
|
"access": "private",
|
|
@@ -5315,7 +5315,7 @@
|
|
|
5315
5315
|
},
|
|
5316
5316
|
{
|
|
5317
5317
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
5318
|
-
"line":
|
|
5318
|
+
"line": 329,
|
|
5319
5319
|
"description": "Given a fullName check if the container is aware of its factory\nor singleton instance.",
|
|
5320
5320
|
"access": "private",
|
|
5321
5321
|
"tagname": "",
|
|
@@ -5351,7 +5351,7 @@
|
|
|
5351
5351
|
},
|
|
5352
5352
|
{
|
|
5353
5353
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
5354
|
-
"line":
|
|
5354
|
+
"line": 348,
|
|
5355
5355
|
"description": "Allow registering options for all factories of a type.\n\n```javascript\nlet registry = new Registry();\nlet container = registry.container();\n\n// if all of type `connection` must not be singletons\nregistry.optionsForType('connection', { singleton: false });\n\nregistry.register('connection:twitter', TwitterConnection);\nregistry.register('connection:facebook', FacebookConnection);\n\nlet twitter = container.lookup('connection:twitter');\nlet twitter2 = container.lookup('connection:twitter');\n\ntwitter === twitter2; // => false\n\nlet facebook = container.lookup('connection:facebook');\nlet facebook2 = container.lookup('connection:facebook');\n\nfacebook === facebook2; // => false\n```",
|
|
5356
5356
|
"access": "private",
|
|
5357
5357
|
"tagname": "",
|
|
@@ -5374,7 +5374,7 @@
|
|
|
5374
5374
|
},
|
|
5375
5375
|
{
|
|
5376
5376
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
5377
|
-
"line":
|
|
5377
|
+
"line": 389,
|
|
5378
5378
|
"access": "private",
|
|
5379
5379
|
"tagname": "",
|
|
5380
5380
|
"itemtype": "method",
|
|
@@ -5396,7 +5396,7 @@
|
|
|
5396
5396
|
},
|
|
5397
5397
|
{
|
|
5398
5398
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
5399
|
-
"line":
|
|
5399
|
+
"line": 432,
|
|
5400
5400
|
"access": "private",
|
|
5401
5401
|
"tagname": "",
|
|
5402
5402
|
"itemtype": "method",
|
|
@@ -8923,7 +8923,7 @@
|
|
|
8923
8923
|
},
|
|
8924
8924
|
{
|
|
8925
8925
|
"file": "packages/@ember/-internals/views/lib/system/event_dispatcher.ts",
|
|
8926
|
-
"line":
|
|
8926
|
+
"line": 30,
|
|
8927
8927
|
"description": "The set of events names (and associated handler function names) to be setup\nand dispatched by the `EventDispatcher`. Modifications to this list can be done\nat setup time, generally via the `Application.customEvents` hash.\n\nTo add new events to be listened to:\n\n```javascript\nimport Application from '@ember/application';\n\nlet App = Application.create({\n customEvents: {\n paste: 'paste'\n }\n});\n```\n\nTo prevent default events from being listened to:\n\n```javascript\nimport Application from '@ember/application';\n\nlet App = Application.create({\n customEvents: {\n mouseenter: null,\n mouseleave: null\n }\n});\n```",
|
|
8928
8928
|
"itemtype": "property",
|
|
8929
8929
|
"name": "events",
|
|
@@ -8936,7 +8936,7 @@
|
|
|
8936
8936
|
},
|
|
8937
8937
|
{
|
|
8938
8938
|
"file": "packages/@ember/-internals/views/lib/system/event_dispatcher.ts",
|
|
8939
|
-
"line":
|
|
8939
|
+
"line": 90,
|
|
8940
8940
|
"description": "The root DOM element to which event listeners should be attached. Event\nlisteners will be attached to the document unless this is overridden.\n\nCan be specified as a DOMElement or a selector string.\n\nThe default body is a string since this may be evaluated before document.body\nexists in the DOM.",
|
|
8941
8941
|
"access": "private",
|
|
8942
8942
|
"tagname": "",
|
|
@@ -8950,7 +8950,7 @@
|
|
|
8950
8950
|
},
|
|
8951
8951
|
{
|
|
8952
8952
|
"file": "packages/@ember/-internals/views/lib/system/event_dispatcher.ts",
|
|
8953
|
-
"line":
|
|
8953
|
+
"line": 113,
|
|
8954
8954
|
"description": "Sets up event listeners for standard browser events.\n\nThis will be called after the browser sends a `DOMContentReady` event. By\ndefault, it will set up all of the listeners on the document body. If you\nwould like to register the listeners on a different element, set the event\ndispatcher's `root` property.",
|
|
8955
8955
|
"access": "private",
|
|
8956
8956
|
"tagname": "",
|
|
@@ -8969,7 +8969,7 @@
|
|
|
8969
8969
|
},
|
|
8970
8970
|
{
|
|
8971
8971
|
"file": "packages/@ember/-internals/views/lib/system/event_dispatcher.ts",
|
|
8972
|
-
"line":
|
|
8972
|
+
"line": 207,
|
|
8973
8973
|
"description": "Setup event listeners for the given browser event name",
|
|
8974
8974
|
"access": "private",
|
|
8975
8975
|
"tagname": "",
|
|
@@ -8987,7 +8987,7 @@
|
|
|
8987
8987
|
},
|
|
8988
8988
|
{
|
|
8989
8989
|
"file": "packages/@ember/-internals/views/lib/system/event_dispatcher.ts",
|
|
8990
|
-
"line":
|
|
8990
|
+
"line": 220,
|
|
8991
8991
|
"description": "Setup event listeners for the given Ember event name (camel case)",
|
|
8992
8992
|
"access": "private",
|
|
8993
8993
|
"tagname": "",
|
|
@@ -9005,7 +9005,7 @@
|
|
|
9005
9005
|
},
|
|
9006
9006
|
{
|
|
9007
9007
|
"file": "packages/@ember/-internals/views/lib/system/event_dispatcher.ts",
|
|
9008
|
-
"line":
|
|
9008
|
+
"line": 237,
|
|
9009
9009
|
"description": "Registers an event listener on the rootElement. If the given event is\ntriggered, the provided event handler will be triggered on the target view.\n\nIf the target view does not implement the event handler, or if the handler\nreturns `false`, the parent view will be called. The event will continue to\nbubble to each successive parent view until it reaches the top.",
|
|
9010
9010
|
"access": "private",
|
|
9011
9011
|
"tagname": "",
|
|
@@ -9034,7 +9034,7 @@
|
|
|
9034
9034
|
},
|
|
9035
9035
|
{
|
|
9036
9036
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
9037
|
-
"line":
|
|
9037
|
+
"line": 35,
|
|
9038
9038
|
"access": "private",
|
|
9039
9039
|
"tagname": "",
|
|
9040
9040
|
"itemtype": "method",
|
|
@@ -9051,7 +9051,7 @@
|
|
|
9051
9051
|
},
|
|
9052
9052
|
{
|
|
9053
9053
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
9054
|
-
"line":
|
|
9054
|
+
"line": 57,
|
|
9055
9055
|
"access": "private",
|
|
9056
9056
|
"tagname": "",
|
|
9057
9057
|
"itemtype": "method",
|
|
@@ -9068,7 +9068,7 @@
|
|
|
9068
9068
|
},
|
|
9069
9069
|
{
|
|
9070
9070
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
9071
|
-
"line":
|
|
9071
|
+
"line": 77,
|
|
9072
9072
|
"access": "private",
|
|
9073
9073
|
"tagname": "",
|
|
9074
9074
|
"itemtype": "method",
|
|
@@ -9085,7 +9085,7 @@
|
|
|
9085
9085
|
},
|
|
9086
9086
|
{
|
|
9087
9087
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
9088
|
-
"line":
|
|
9088
|
+
"line": 109,
|
|
9089
9089
|
"access": "private",
|
|
9090
9090
|
"tagname": "",
|
|
9091
9091
|
"itemtype": "method",
|
|
@@ -9102,7 +9102,7 @@
|
|
|
9102
9102
|
},
|
|
9103
9103
|
{
|
|
9104
9104
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
9105
|
-
"line":
|
|
9105
|
+
"line": 152,
|
|
9106
9106
|
"access": "private",
|
|
9107
9107
|
"tagname": "",
|
|
9108
9108
|
"itemtype": "method",
|
|
@@ -9119,7 +9119,7 @@
|
|
|
9119
9119
|
},
|
|
9120
9120
|
{
|
|
9121
9121
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
9122
|
-
"line":
|
|
9122
|
+
"line": 161,
|
|
9123
9123
|
"access": "private",
|
|
9124
9124
|
"tagname": "",
|
|
9125
9125
|
"itemtype": "method",
|
|
@@ -9136,7 +9136,7 @@
|
|
|
9136
9136
|
},
|
|
9137
9137
|
{
|
|
9138
9138
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
9139
|
-
"line":
|
|
9139
|
+
"line": 176,
|
|
9140
9140
|
"description": "`getViewClientRects` provides information about the position of the border\nbox edges of a view relative to the viewport.\n\nIt is only intended to be used by development tools like the Ember Inspector\nand may not work on older browsers.",
|
|
9141
9141
|
"access": "private",
|
|
9142
9142
|
"tagname": "",
|
|
@@ -9154,7 +9154,7 @@
|
|
|
9154
9154
|
},
|
|
9155
9155
|
{
|
|
9156
9156
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
9157
|
-
"line":
|
|
9157
|
+
"line": 192,
|
|
9158
9158
|
"description": "`getViewBoundingClientRect` provides information about the position of the\nbounding border box edges of a view relative to the viewport.\n\nIt is only intended to be used by development tools like the Ember Inspector\nand may not work on older browsers.",
|
|
9159
9159
|
"access": "private",
|
|
9160
9160
|
"tagname": "",
|
|
@@ -9172,7 +9172,7 @@
|
|
|
9172
9172
|
},
|
|
9173
9173
|
{
|
|
9174
9174
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
9175
|
-
"line":
|
|
9175
|
+
"line": 208,
|
|
9176
9176
|
"description": "Determines if the element matches the specified selector.",
|
|
9177
9177
|
"access": "private",
|
|
9178
9178
|
"tagname": "",
|
|
@@ -14073,7 +14073,7 @@
|
|
|
14073
14073
|
},
|
|
14074
14074
|
{
|
|
14075
14075
|
"file": "packages/@ember/object/core.ts",
|
|
14076
|
-
"line":
|
|
14076
|
+
"line": 810,
|
|
14077
14077
|
"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`",
|
|
14078
14078
|
"itemtype": "method",
|
|
14079
14079
|
"name": "reopen",
|
|
@@ -14085,7 +14085,7 @@
|
|
|
14085
14085
|
},
|
|
14086
14086
|
{
|
|
14087
14087
|
"file": "packages/@ember/object/core.ts",
|
|
14088
|
-
"line":
|
|
14088
|
+
"line": 864,
|
|
14089
14089
|
"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`",
|
|
14090
14090
|
"itemtype": "method",
|
|
14091
14091
|
"name": "reopenClass",
|
|
@@ -14097,7 +14097,7 @@
|
|
|
14097
14097
|
},
|
|
14098
14098
|
{
|
|
14099
14099
|
"file": "packages/@ember/object/core.ts",
|
|
14100
|
-
"line":
|
|
14100
|
+
"line": 950,
|
|
14101
14101
|
"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()`.",
|
|
14102
14102
|
"static": 1,
|
|
14103
14103
|
"itemtype": "method",
|
|
@@ -14116,7 +14116,7 @@
|
|
|
14116
14116
|
},
|
|
14117
14117
|
{
|
|
14118
14118
|
"file": "packages/@ember/object/core.ts",
|
|
14119
|
-
"line":
|
|
14119
|
+
"line": 993,
|
|
14120
14120
|
"description": "Iterate over each computed property for the class, passing its name\nand any associated metadata (see `metaForProperty`) to the callback.",
|
|
14121
14121
|
"static": 1,
|
|
14122
14122
|
"itemtype": "method",
|
|
@@ -14140,7 +14140,7 @@
|
|
|
14140
14140
|
},
|
|
14141
14141
|
{
|
|
14142
14142
|
"file": "packages/@ember/object/core.ts",
|
|
14143
|
-
"line":
|
|
14143
|
+
"line": 1085,
|
|
14144
14144
|
"description": "Provides lookup-time type validation for injected properties.",
|
|
14145
14145
|
"access": "private",
|
|
14146
14146
|
"tagname": "",
|
|
@@ -14151,7 +14151,7 @@
|
|
|
14151
14151
|
},
|
|
14152
14152
|
{
|
|
14153
14153
|
"file": "packages/@ember/object/core.ts",
|
|
14154
|
-
"line":
|
|
14154
|
+
"line": 1106,
|
|
14155
14155
|
"description": "Returns a hash of property names and container names that injected\nproperties will lookup on the container lazily.",
|
|
14156
14156
|
"itemtype": "method",
|
|
14157
14157
|
"name": "_lazyInjections",
|
|
@@ -16418,7 +16418,7 @@
|
|
|
16418
16418
|
},
|
|
16419
16419
|
{
|
|
16420
16420
|
"file": "packages/@ember/routing/route.ts",
|
|
16421
|
-
"line":
|
|
16421
|
+
"line": 1246,
|
|
16422
16422
|
"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';\n\nexport default class PhotosRoute extends Route {\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.",
|
|
16423
16423
|
"example": [
|
|
16424
16424
|
" 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```"
|
|
@@ -16451,7 +16451,7 @@
|
|
|
16451
16451
|
},
|
|
16452
16452
|
{
|
|
16453
16453
|
"file": "packages/@ember/routing/route.ts",
|
|
16454
|
-
"line":
|
|
16454
|
+
"line": 1322,
|
|
16455
16455
|
"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```",
|
|
16456
16456
|
"itemtype": "method",
|
|
16457
16457
|
"name": "controllerFor",
|
|
@@ -16474,7 +16474,7 @@
|
|
|
16474
16474
|
},
|
|
16475
16475
|
{
|
|
16476
16476
|
"file": "packages/@ember/routing/route.ts",
|
|
16477
|
-
"line":
|
|
16477
|
+
"line": 1376,
|
|
16478
16478
|
"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```",
|
|
16479
16479
|
"itemtype": "method",
|
|
16480
16480
|
"name": "generateController",
|
|
@@ -16492,7 +16492,7 @@
|
|
|
16492
16492
|
},
|
|
16493
16493
|
{
|
|
16494
16494
|
"file": "packages/@ember/routing/route.ts",
|
|
16495
|
-
"line":
|
|
16495
|
+
"line": 1404,
|
|
16496
16496
|
"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```",
|
|
16497
16497
|
"itemtype": "method",
|
|
16498
16498
|
"name": "modelFor",
|
|
@@ -16515,7 +16515,7 @@
|
|
|
16515
16515
|
},
|
|
16516
16516
|
{
|
|
16517
16517
|
"file": "packages/@ember/routing/route.ts",
|
|
16518
|
-
"line":
|
|
16518
|
+
"line": 1476,
|
|
16519
16519
|
"description": "`this[RENDER]` is used to render a template into a region of another template\n(indicated by an `{{outlet}}`).",
|
|
16520
16520
|
"itemtype": "method",
|
|
16521
16521
|
"name": "this[RENDER]",
|
|
@@ -16565,7 +16565,7 @@
|
|
|
16565
16565
|
},
|
|
16566
16566
|
{
|
|
16567
16567
|
"file": "packages/@ember/routing/route.ts",
|
|
16568
|
-
"line":
|
|
16568
|
+
"line": 1503,
|
|
16569
16569
|
"access": "private",
|
|
16570
16570
|
"tagname": "",
|
|
16571
16571
|
"itemtype": "method",
|
|
@@ -16575,7 +16575,7 @@
|
|
|
16575
16575
|
},
|
|
16576
16576
|
{
|
|
16577
16577
|
"file": "packages/@ember/routing/route.ts",
|
|
16578
|
-
"line":
|
|
16578
|
+
"line": 1516,
|
|
16579
16579
|
"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```",
|
|
16580
16580
|
"itemtype": "method",
|
|
16581
16581
|
"name": "buildRouteInfoMetadata",
|
|
@@ -16590,7 +16590,7 @@
|
|
|
16590
16590
|
},
|
|
16591
16591
|
{
|
|
16592
16592
|
"file": "packages/@ember/routing/route.ts",
|
|
16593
|
-
"line":
|
|
16593
|
+
"line": 1567,
|
|
16594
16594
|
"description": "Store property provides a hook for data persistence libraries to inject themselves.\n\nBy default, this store property provides the exact same functionality previously\nin the model hook.\n\nCurrently, the required interface is:\n\n`store.find(modelName, findArguments)`",
|
|
16595
16595
|
"itemtype": "property",
|
|
16596
16596
|
"name": "store",
|
|
@@ -16602,7 +16602,7 @@
|
|
|
16602
16602
|
},
|
|
16603
16603
|
{
|
|
16604
16604
|
"file": "packages/@ember/routing/route.ts",
|
|
16605
|
-
"line":
|
|
16605
|
+
"line": 1629,
|
|
16606
16606
|
"access": "private",
|
|
16607
16607
|
"tagname": "",
|
|
16608
16608
|
"itemtype": "property",
|
|
@@ -16612,7 +16612,7 @@
|
|
|
16612
16612
|
},
|
|
16613
16613
|
{
|
|
16614
16614
|
"file": "packages/@ember/routing/route.ts",
|
|
16615
|
-
"line":
|
|
16615
|
+
"line": 1768,
|
|
16616
16616
|
"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```",
|
|
16617
16617
|
"itemtype": "method",
|
|
16618
16618
|
"name": "send",
|
|
@@ -16636,7 +16636,7 @@
|
|
|
16636
16636
|
},
|
|
16637
16637
|
{
|
|
16638
16638
|
"file": "packages/@ember/routing/route.ts",
|
|
16639
|
-
"line":
|
|
16639
|
+
"line": 2151,
|
|
16640
16640
|
"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```",
|
|
16641
16641
|
"itemtype": "property",
|
|
16642
16642
|
"name": "controller",
|
|
@@ -16649,7 +16649,7 @@
|
|
|
16649
16649
|
},
|
|
16650
16650
|
{
|
|
16651
16651
|
"file": "packages/@ember/routing/route.ts",
|
|
16652
|
-
"line":
|
|
16652
|
+
"line": 2182,
|
|
16653
16653
|
"description": "This action is called when one or more query params have changed. Bubbles.",
|
|
16654
16654
|
"itemtype": "method",
|
|
16655
16655
|
"name": "queryParamsDidChange",
|
|
@@ -19124,7 +19124,7 @@
|
|
|
19124
19124
|
},
|
|
19125
19125
|
{
|
|
19126
19126
|
"message": "replacing incorrect tag: returns with return",
|
|
19127
|
-
"line": " packages/@ember/routing/route.ts:
|
|
19127
|
+
"line": " packages/@ember/routing/route.ts:2182"
|
|
19128
19128
|
},
|
|
19129
19129
|
{
|
|
19130
19130
|
"message": "unknown tag: internal",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-source",
|
|
3
|
-
"version": "5.3.0-alpha.
|
|
3
|
+
"version": "5.3.0-alpha.2",
|
|
4
4
|
"description": "A JavaScript framework for creating ambitious web applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -71,8 +71,10 @@
|
|
|
71
71
|
"@glimmer/program": "0.84.2",
|
|
72
72
|
"@glimmer/reference": "0.84.2",
|
|
73
73
|
"@glimmer/runtime": "0.84.2",
|
|
74
|
+
"@glimmer/syntax": "0.84.2",
|
|
74
75
|
"@glimmer/validator": "0.84.2",
|
|
75
76
|
"@glimmer/vm-babel-plugins": "0.84.2",
|
|
77
|
+
"@simple-dom/interface": "^1.4.0",
|
|
76
78
|
"babel-plugin-debug-macros": "^0.3.4",
|
|
77
79
|
"babel-plugin-filter-imports": "^4.0.0",
|
|
78
80
|
"backburner.js": "^2.7.0",
|
|
@@ -184,7 +186,7 @@
|
|
|
184
186
|
"node": "16.20.0",
|
|
185
187
|
"yarn": "1.22.19"
|
|
186
188
|
},
|
|
187
|
-
"_originalVersion": "5.3.0-alpha.
|
|
189
|
+
"_originalVersion": "5.3.0-alpha.2",
|
|
188
190
|
"_versionPreviouslyCalculated": true,
|
|
189
191
|
"publishConfig": {
|
|
190
192
|
"tag": "alpha"
|