ember-source 4.9.0-alpha.3 → 4.9.0-alpha.4
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/CHANGELOG.md +4 -0
- package/build-metadata.json +3 -3
- package/dist/ember-template-compiler.js +9 -4
- 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 +28 -1427
- package/dist/ember.debug.map +1 -1
- package/dist/header/license.js +1 -1
- package/dist/packages/@ember/-internals/glimmer/index.js +5 -5
- package/dist/packages/@ember/-internals/meta/lib/meta.js +13 -13
- package/dist/packages/@ember/array/index.js +0 -909
- package/dist/packages/@ember/array/proxy.js +0 -31
- package/dist/packages/@ember/controller/index.js +0 -156
- package/dist/packages/@ember/debug/data-adapter.js +8 -2
- package/dist/packages/@ember/object/observable.js +0 -228
- package/dist/packages/@ember/object/promise-proxy-mixin.js +0 -80
- package/dist/packages/@ember/routing/route.js +1 -1
- package/dist/packages/ember/version.js +1 -1
- package/docs/data.json +262 -383
- package/package.json +10 -9
package/dist/header/license.js
CHANGED
|
@@ -2654,7 +2654,7 @@ class Component extends CoreView.extend(ChildViewsSupport, ViewStateSupport, Cla
|
|
|
2654
2654
|
assert(`Cannot call \`readDOMAttr\` on ${this} which does not have an element`, _element !== null);
|
|
2655
2655
|
let element = _element;
|
|
2656
2656
|
let isSVG = element.namespaceURI === "http://www.w3.org/2000/svg"
|
|
2657
|
-
/* SVG */
|
|
2657
|
+
/* Namespace.SVG */
|
|
2658
2658
|
;
|
|
2659
2659
|
let {
|
|
2660
2660
|
type,
|
|
@@ -4701,7 +4701,7 @@ const mountHelper = internalHelper((args, owner) => {
|
|
|
4701
4701
|
assert(`You used \`{{mount '${name}'}}\`, but the engine '${name}' can not be found.`, owner.hasRegistration(`engine:${name}`));
|
|
4702
4702
|
lastName = name;
|
|
4703
4703
|
lastDef = curry(0
|
|
4704
|
-
/* Component */
|
|
4704
|
+
/* CurriedType.Component */
|
|
4705
4705
|
, new MountDefinition(name), owner, captured, true);
|
|
4706
4706
|
return lastDef;
|
|
4707
4707
|
} else {
|
|
@@ -4783,7 +4783,7 @@ const outletHelper = internalHelper((_args, owner, scope) => {
|
|
|
4783
4783
|
|
|
4784
4784
|
let args = createCapturedArgs(named, EMPTY_POSITIONAL);
|
|
4785
4785
|
definition = curry(0
|
|
4786
|
-
/* Component */
|
|
4786
|
+
/* CurriedType.Component */
|
|
4787
4787
|
, new OutletComponentDefinition(state), (_b = (_a = outletState === null || outletState === void 0 ? void 0 : outletState.render) === null || _a === void 0 ? void 0 : _a.owner) !== null && _b !== void 0 ? _b : owner, args, true);
|
|
4788
4788
|
} else {
|
|
4789
4789
|
definition = null;
|
|
@@ -5396,7 +5396,7 @@ class Renderer {
|
|
|
5396
5396
|
let definition = createRootOutlet(view);
|
|
5397
5397
|
|
|
5398
5398
|
this._appendDefinition(view, curry(0
|
|
5399
|
-
/* Component */
|
|
5399
|
+
/* CurriedType.Component */
|
|
5400
5400
|
, definition, view.owner, null, true), target);
|
|
5401
5401
|
}
|
|
5402
5402
|
|
|
@@ -5404,7 +5404,7 @@ class Renderer {
|
|
|
5404
5404
|
let definition = new RootComponentDefinition(view);
|
|
5405
5405
|
|
|
5406
5406
|
this._appendDefinition(view, curry(0
|
|
5407
|
-
/* Component */
|
|
5407
|
+
/* CurriedType.Component */
|
|
5408
5408
|
, definition, this._owner, null, true), target);
|
|
5409
5409
|
}
|
|
5410
5410
|
|
|
@@ -312,9 +312,9 @@ export class Meta {
|
|
|
312
312
|
}
|
|
313
313
|
|
|
314
314
|
this.pushListener(eventName, target, method, once ? 1
|
|
315
|
-
/* ONCE */
|
|
315
|
+
/* ListenerKind.ONCE */
|
|
316
316
|
: 0
|
|
317
|
-
/* ADD */
|
|
317
|
+
/* ListenerKind.ADD */
|
|
318
318
|
, sync);
|
|
319
319
|
}
|
|
320
320
|
/** @internal */
|
|
@@ -326,7 +326,7 @@ export class Meta {
|
|
|
326
326
|
}
|
|
327
327
|
|
|
328
328
|
this.pushListener(eventName, target, method, 2
|
|
329
|
-
/* REMOVE */
|
|
329
|
+
/* ListenerKind.REMOVE */
|
|
330
330
|
);
|
|
331
331
|
}
|
|
332
332
|
|
|
@@ -346,7 +346,7 @@ export class Meta {
|
|
|
346
346
|
if (i === -1) {
|
|
347
347
|
assert('You cannot add function listeners to prototypes. Convert the listener to a string listener, or add it to the instance instead.', !(this.isPrototypeMeta(this.source) && typeof method === 'function'));
|
|
348
348
|
assert('You attempted to remove a function listener which did not exist on the instance, which means you may have attempted to remove it before it was added.', !(!this.isPrototypeMeta(this.source) && typeof method === 'function' && kind === 2
|
|
349
|
-
/* REMOVE */
|
|
349
|
+
/* ListenerKind.REMOVE */
|
|
350
350
|
));
|
|
351
351
|
listeners.push({
|
|
352
352
|
event,
|
|
@@ -361,16 +361,16 @@ export class Meta {
|
|
|
361
361
|
// want to splice it out entirely so we don't hold onto a reference.
|
|
362
362
|
|
|
363
363
|
if (kind === 2
|
|
364
|
-
/* REMOVE */
|
|
364
|
+
/* ListenerKind.REMOVE */
|
|
365
365
|
&& listener.kind !== 2
|
|
366
|
-
/* REMOVE */
|
|
366
|
+
/* ListenerKind.REMOVE */
|
|
367
367
|
) {
|
|
368
368
|
listeners.splice(i, 1);
|
|
369
369
|
} else {
|
|
370
370
|
assert(`You attempted to add an observer for the same method on '${event.split(':')[0]}' twice to ${target} as both sync and async. Observers must be either sync or async, they cannot be both. This is likely a mistake, you should either remove the code that added the observer a second time, or update it to always be sync or async. The method was ${String(method)}.`, !(listener.kind === 0
|
|
371
|
-
/* ADD */
|
|
371
|
+
/* ListenerKind.ADD */
|
|
372
372
|
&& kind === 0
|
|
373
|
-
/* ADD */
|
|
373
|
+
/* ListenerKind.ADD */
|
|
374
374
|
&& listener.sync !== sync)); // update own listener
|
|
375
375
|
|
|
376
376
|
listener.kind = kind;
|
|
@@ -485,9 +485,9 @@ export class Meta {
|
|
|
485
485
|
// REMOVE listeners are placeholders that tell us not to
|
|
486
486
|
// inherit, so they never match. Only ADD and ONCE can match.
|
|
487
487
|
if (listener.event === eventName && (listener.kind === 0
|
|
488
|
-
/* ADD */
|
|
488
|
+
/* ListenerKind.ADD */
|
|
489
489
|
|| listener.kind === 1
|
|
490
|
-
/* ONCE */
|
|
490
|
+
/* ListenerKind.ONCE */
|
|
491
491
|
)) {
|
|
492
492
|
if (result === undefined) {
|
|
493
493
|
// we create this array only after we've found a listener that
|
|
@@ -496,7 +496,7 @@ export class Meta {
|
|
|
496
496
|
}
|
|
497
497
|
|
|
498
498
|
result.push(listener.target, listener.method, listener.kind === 1
|
|
499
|
-
/* ONCE */
|
|
499
|
+
/* ListenerKind.ONCE */
|
|
500
500
|
);
|
|
501
501
|
}
|
|
502
502
|
}
|
|
@@ -520,9 +520,9 @@ export class Meta {
|
|
|
520
520
|
// REMOVE listeners are placeholders that tell us not to
|
|
521
521
|
// inherit, so they never match. Only ADD and ONCE can match.
|
|
522
522
|
if ((listener.kind === 0
|
|
523
|
-
/* ADD */
|
|
523
|
+
/* ListenerKind.ADD */
|
|
524
524
|
|| listener.kind === 1
|
|
525
|
-
/* ONCE */
|
|
525
|
+
/* ListenerKind.ONCE */
|
|
526
526
|
) && listener.event.indexOf(':change') !== -1) {
|
|
527
527
|
if (result === undefined) {
|
|
528
528
|
// we create this array only after we've found a listener that
|