ember-source 4.8.0-beta.1 → 4.8.0-beta.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/CHANGELOG.md +5 -0
- 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 +2 -516
- package/dist/ember.debug.map +1 -1
- package/dist/header/license.js +1 -1
- package/dist/packages/@ember/-internals/runtime/lib/mixins/registry_proxy.js +0 -7
- package/dist/packages/ember/version.js +1 -1
- package/docs/data.json +63 -63
- package/package.json +19 -4
- package/types/preview/@ember/-internals/resolver.d.ts +35 -0
- package/types/preview/@ember/application/-private/event-dispatcher.d.ts +18 -0
- package/types/preview/@ember/application/-private/registry.d.ts +15 -0
- package/types/preview/@ember/application/deprecations.d.ts +24 -0
- package/types/preview/@ember/application/index.d.ts +153 -0
- package/types/preview/@ember/application/instance.d.ts +9 -0
- package/types/preview/@ember/application/tsconfig.json +3 -0
- package/types/preview/@ember/application/types.d.ts +29 -0
- package/types/preview/@ember/array/-private/enumerable.d.ts +13 -0
- package/types/preview/@ember/array/-private/mutable-enumerable.d.ts +13 -0
- package/types/preview/@ember/array/-private/native-array.d.ts +23 -0
- package/types/preview/@ember/array/index.d.ts +243 -0
- package/types/preview/@ember/array/mutable.d.ts +94 -0
- package/types/preview/@ember/array/proxy.d.ts +29 -0
- package/types/preview/@ember/array/tsconfig.json +3 -0
- package/types/preview/@ember/component/-private/class-names-support.d.ts +27 -0
- package/types/preview/@ember/component/-private/core-view.d.ts +14 -0
- package/types/preview/@ember/component/-private/glimmer-interfaces.d.ts +45 -0
- package/types/preview/@ember/component/-private/signature-utils.d.ts +107 -0
- package/types/preview/@ember/component/-private/view-mixin.d.ts +59 -0
- package/types/preview/@ember/component/helper.d.ts +122 -0
- package/types/preview/@ember/component/index.d.ts +132 -0
- package/types/preview/@ember/component/template-only.d.ts +47 -0
- package/types/preview/@ember/component/tsconfig.json +3 -0
- package/types/preview/@ember/controller/index.d.ts +48 -0
- package/types/preview/@ember/controller/tsconfig.json +3 -0
- package/types/preview/@ember/debug/container-debug-adapter.d.ts +13 -0
- package/types/preview/@ember/debug/data-adapter.d.ts +64 -0
- package/types/preview/@ember/debug/index.d.ts +98 -0
- package/types/preview/@ember/debug/tsconfig.json +3 -0
- package/types/preview/@ember/destroyable/index.d.ts +23 -0
- package/types/preview/@ember/destroyable/tsconfig.json +3 -0
- package/types/preview/@ember/engine/-private/container-proxy-mixin.d.ts +17 -0
- package/types/preview/@ember/engine/-private/registry-proxy-mixin.d.ts +54 -0
- package/types/preview/@ember/engine/-private/types/initializer.d.ts +8 -0
- package/types/preview/@ember/engine/index.d.ts +45 -0
- package/types/preview/@ember/engine/instance.d.ts +24 -0
- package/types/preview/@ember/engine/tsconfig.json +3 -0
- package/types/preview/@ember/error/index.d.ts +6 -0
- package/types/preview/@ember/error/tsconfig.json +3 -0
- package/types/preview/@ember/helper/index.d.ts +49 -0
- package/types/preview/@ember/helper/tsconfig.json +3 -0
- package/types/preview/@ember/modifier/index.d.ts +33 -0
- package/types/preview/@ember/modifier/tsconfig.json +3 -0
- package/types/preview/@ember/object/-private/action-handler.d.ts +31 -0
- package/types/preview/@ember/object/-private/types.d.ts +63 -0
- package/types/preview/@ember/object/compat.d.ts +9 -0
- package/types/preview/@ember/object/computed.d.ts +263 -0
- package/types/preview/@ember/object/core.d.ts +89 -0
- package/types/preview/@ember/object/evented.d.ts +45 -0
- package/types/preview/@ember/object/events.d.ts +47 -0
- package/types/preview/@ember/object/index.d.ts +126 -0
- package/types/preview/@ember/object/internals.d.ts +17 -0
- package/types/preview/@ember/object/mixin.d.ts +19 -0
- package/types/preview/@ember/object/observable.d.ts +89 -0
- package/types/preview/@ember/object/observers.d.ts +34 -0
- package/types/preview/@ember/object/promise-proxy-mixin.d.ts +37 -0
- package/types/preview/@ember/object/proxy.d.ts +27 -0
- package/types/preview/@ember/object/tsconfig.json +3 -0
- package/types/preview/@ember/owner/index.d.ts +102 -0
- package/types/preview/@ember/owner/tsconfig.json +3 -0
- package/types/preview/@ember/polyfills/index.d.ts +23 -0
- package/types/preview/@ember/polyfills/tsconfig.json +3 -0
- package/types/preview/@ember/polyfills/types.d.ts +6 -0
- package/types/preview/@ember/routing/-private/router-dsl.d.ts +20 -0
- package/types/preview/@ember/routing/auto-location.d.ts +8 -0
- package/types/preview/@ember/routing/hash-location.d.ts +10 -0
- package/types/preview/@ember/routing/history-location.d.ts +9 -0
- package/types/preview/@ember/routing/index.d.ts +20 -0
- package/types/preview/@ember/routing/none-location.d.ts +11 -0
- package/types/preview/@ember/routing/route-info.d.ts +74 -0
- package/types/preview/@ember/routing/route.d.ts +533 -0
- package/types/preview/@ember/routing/router-service.d.ts +351 -0
- package/types/preview/@ember/routing/router.d.ts +49 -0
- package/types/preview/@ember/routing/transition.d.ts +126 -0
- package/types/preview/@ember/routing/tsconfig.json +3 -0
- package/types/preview/@ember/routing/types.d.ts +15 -0
- package/types/preview/@ember/runloop/-private/backburner.d.ts +43 -0
- package/types/preview/@ember/runloop/-private/types.d.ts +9 -0
- package/types/preview/@ember/runloop/index.d.ts +175 -0
- package/types/preview/@ember/runloop/tsconfig.json +3 -0
- package/types/preview/@ember/runloop/types.d.ts +5 -0
- package/types/preview/@ember/service/index.d.ts +25 -0
- package/types/preview/@ember/service/tsconfig.json +3 -0
- package/types/preview/@ember/string/index.d.ts +9 -0
- package/types/preview/@ember/string/tsconfig.json +3 -0
- package/types/preview/@ember/template/-private/handlebars.d.ts +7 -0
- package/types/preview/@ember/template/index.d.ts +5 -0
- package/types/preview/@ember/template/tsconfig.json +3 -0
- package/types/preview/@ember/test/adapter.d.ts +22 -0
- package/types/preview/@ember/test/index.d.ts +49 -0
- package/types/preview/@ember/test/tsconfig.json +3 -0
- package/types/preview/@ember/utils/-private/types.d.ts +39 -0
- package/types/preview/@ember/utils/index.d.ts +42 -0
- package/types/preview/@ember/utils/tsconfig.json +3 -0
- package/types/preview/ember/-private/type-utils.d.ts +54 -0
- package/types/preview/ember/index.d.ts +381 -0
- package/types/preview/ember/tsconfig.json +3 -0
- package/types/preview/index.d.ts +120 -0
- package/types/preview/tsconfig.json +6 -0
- package/dist/packages/@ember/runloop/type-tests.ts/begin-end.test.js +0 -5
- package/dist/packages/@ember/runloop/type-tests.ts/bind.test.js +0 -59
- package/dist/packages/@ember/runloop/type-tests.ts/cancel.test.js +0 -5
- package/dist/packages/@ember/runloop/type-tests.ts/debounce.test.js +0 -77
- package/dist/packages/@ember/runloop/type-tests.ts/join.test.js +0 -38
- package/dist/packages/@ember/runloop/type-tests.ts/later.test.js +0 -38
- package/dist/packages/@ember/runloop/type-tests.ts/next.test.js +0 -38
- package/dist/packages/@ember/runloop/type-tests.ts/once.test.js +0 -38
- package/dist/packages/@ember/runloop/type-tests.ts/run.test.js +0 -38
- package/dist/packages/@ember/runloop/type-tests.ts/schedule-once.test.js +0 -39
- package/dist/packages/@ember/runloop/type-tests.ts/schedule.test.js +0 -39
- package/dist/packages/@ember/runloop/type-tests.ts/throttle.test.js +0 -77
package/dist/ember.debug.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Portions Copyright 2008-2011 Apple Inc. All rights reserved.
|
|
7
7
|
* @license Licensed under MIT license
|
|
8
8
|
* See https://raw.github.com/emberjs/ember.js/master/LICENSE
|
|
9
|
-
* @version 4.8.0-beta.
|
|
9
|
+
* @version 4.8.0-beta.2
|
|
10
10
|
*/
|
|
11
11
|
/* eslint-disable no-var */
|
|
12
12
|
|
|
@@ -11837,13 +11837,6 @@ define("@ember/-internals/runtime/lib/mixins/registry_proxy", ["exports", "@embe
|
|
|
11837
11837
|
var RegistryProxyMixin = _mixin.default.create({
|
|
11838
11838
|
__registry__: null,
|
|
11839
11839
|
|
|
11840
|
-
/**
|
|
11841
|
-
Given a fullName return the corresponding factory.
|
|
11842
|
-
@public
|
|
11843
|
-
@method resolveRegistration
|
|
11844
|
-
@param {String} fullName
|
|
11845
|
-
@return {Function} fullName's factory
|
|
11846
|
-
*/
|
|
11847
11840
|
resolveRegistration(fullName) {
|
|
11848
11841
|
(true && !(this.__registry__.isValidFullName(fullName)) && (0, _debug.assert)('fullName must be a proper full name', this.__registry__.isValidFullName(fullName)));
|
|
11849
11842
|
return this.__registry__.resolve(fullName);
|
|
@@ -32496,513 +32489,6 @@ define("@ember/runloop/index", ["exports", "@ember/debug", "@ember/-internals/er
|
|
|
32496
32489
|
return _backburner.throttle(...arguments);
|
|
32497
32490
|
}
|
|
32498
32491
|
});
|
|
32499
|
-
define("@ember/runloop/type-tests.ts/begin-end.test", ["@ember/runloop", "expect-type"], function (_runloop, _expectType) {
|
|
32500
|
-
"use strict";
|
|
32501
|
-
|
|
32502
|
-
(0, _expectType.expectTypeOf)((0, _runloop.begin)()).toEqualTypeOf(); // code to be executed within a RunLoop
|
|
32503
|
-
|
|
32504
|
-
(0, _expectType.expectTypeOf)((0, _runloop.end)()).toEqualTypeOf();
|
|
32505
|
-
});
|
|
32506
|
-
define("@ember/runloop/type-tests.ts/bind.test", ["@ember/runloop", "expect-type"], function (_runloop, _expectType) {
|
|
32507
|
-
"use strict";
|
|
32508
|
-
|
|
32509
|
-
class Foo {
|
|
32510
|
-
test(_foo, _bar, _baz) {
|
|
32511
|
-
return 1;
|
|
32512
|
-
}
|
|
32513
|
-
|
|
32514
|
-
}
|
|
32515
|
-
|
|
32516
|
-
var foo = new Foo(); // With only function
|
|
32517
|
-
|
|
32518
|
-
(0, _expectType.expectTypeOf)((0, _runloop.bind)((_foo, _bar, _baz) => {
|
|
32519
|
-
return 1;
|
|
32520
|
-
})).toEqualTypeOf();
|
|
32521
|
-
(0, _expectType.expectTypeOf)((0, _runloop.bind)((_foo, _bar, _baz) => {
|
|
32522
|
-
return 1;
|
|
32523
|
-
}, 1)).toEqualTypeOf();
|
|
32524
|
-
(0, _expectType.expectTypeOf)((0, _runloop.bind)((_foo, _bar, _baz) => {
|
|
32525
|
-
return 1;
|
|
32526
|
-
}, 1, true)).toEqualTypeOf();
|
|
32527
|
-
(0, _expectType.expectTypeOf)((0, _runloop.bind)((_foo, _bar, _baz) => {
|
|
32528
|
-
return 1;
|
|
32529
|
-
}, 1, true, 'baz')).toEqualTypeOf();
|
|
32530
|
-
(0, _expectType.expectTypeOf)((0, _runloop.bind)((_foo, _bar, _baz) => {
|
|
32531
|
-
return 1;
|
|
32532
|
-
}, 1, true, undefined)).toEqualTypeOf();
|
|
32533
|
-
(0, _runloop.bind)(_foo => {
|
|
32534
|
-
return 1; // @ts-expect-error invalid argument
|
|
32535
|
-
}, 'string'); // With target and function
|
|
32536
|
-
|
|
32537
|
-
(0, _expectType.expectTypeOf)((0, _runloop.bind)(foo, function (_foo, _bar, _baz) {
|
|
32538
|
-
(0, _expectType.expectTypeOf)(this).toEqualTypeOf();
|
|
32539
|
-
return 1;
|
|
32540
|
-
})).toEqualTypeOf();
|
|
32541
|
-
(0, _expectType.expectTypeOf)((0, _runloop.bind)(foo, function (_foo, _bar, _baz) {
|
|
32542
|
-
return 1;
|
|
32543
|
-
}, 1)).toEqualTypeOf();
|
|
32544
|
-
(0, _expectType.expectTypeOf)((0, _runloop.bind)(foo, function (_foo, _bar, _baz) {
|
|
32545
|
-
return 1;
|
|
32546
|
-
}, 1, true)).toEqualTypeOf();
|
|
32547
|
-
(0, _expectType.expectTypeOf)((0, _runloop.bind)(foo, function (_foo, _bar, _baz) {
|
|
32548
|
-
return 1;
|
|
32549
|
-
}, 1, true, 'baz')).toEqualTypeOf();
|
|
32550
|
-
(0, _expectType.expectTypeOf)((0, _runloop.bind)(foo, function (_foo, _bar, _baz) {
|
|
32551
|
-
return 1;
|
|
32552
|
-
}, 1, true, undefined)).toEqualTypeOf(); // @ts-expect-error Invalid args
|
|
32553
|
-
|
|
32554
|
-
(0, _runloop.bind)(foo, function (_foo) {
|
|
32555
|
-
return 1;
|
|
32556
|
-
}, 'string'); // With function string reference
|
|
32557
|
-
|
|
32558
|
-
(0, _expectType.expectTypeOf)((0, _runloop.bind)(foo, 'test')).toEqualTypeOf();
|
|
32559
|
-
(0, _expectType.expectTypeOf)((0, _runloop.bind)(foo, 'test', 1)).toEqualTypeOf();
|
|
32560
|
-
(0, _expectType.expectTypeOf)((0, _runloop.bind)(foo, 'test', 1, true)).toEqualTypeOf();
|
|
32561
|
-
(0, _expectType.expectTypeOf)((0, _runloop.bind)(foo, 'test', 1, true, 'baz')).toEqualTypeOf();
|
|
32562
|
-
(0, _expectType.expectTypeOf)((0, _runloop.bind)(foo, 'test', 1, true, undefined)).toEqualTypeOf(); // @ts-expect-error Invalid args
|
|
32563
|
-
|
|
32564
|
-
(0, _runloop.bind)(foo, 'test', 'string');
|
|
32565
|
-
});
|
|
32566
|
-
define("@ember/runloop/type-tests.ts/cancel.test", ["@ember/runloop", "expect-type"], function (_runloop, _expectType) {
|
|
32567
|
-
"use strict";
|
|
32568
|
-
|
|
32569
|
-
var runNext = (0, _runloop.next)(null, () => {// will not be executed
|
|
32570
|
-
});
|
|
32571
|
-
(0, _expectType.expectTypeOf)((0, _runloop.cancel)(runNext)).toEqualTypeOf();
|
|
32572
|
-
});
|
|
32573
|
-
define("@ember/runloop/type-tests.ts/debounce.test", ["@ember/runloop", "expect-type"], function (_runloop, _expectType) {
|
|
32574
|
-
"use strict";
|
|
32575
|
-
|
|
32576
|
-
// From Docs
|
|
32577
|
-
function whoRan() {// Do stuff
|
|
32578
|
-
}
|
|
32579
|
-
|
|
32580
|
-
var myContext = {
|
|
32581
|
-
name: 'debounce',
|
|
32582
|
-
|
|
32583
|
-
test(_foo, _baz) {}
|
|
32584
|
-
|
|
32585
|
-
};
|
|
32586
|
-
(0, _runloop.debounce)(myContext, whoRan, 150); // less than 150ms passes
|
|
32587
|
-
|
|
32588
|
-
(0, _runloop.debounce)(myContext, whoRan, 150);
|
|
32589
|
-
(0, _runloop.debounce)(myContext, whoRan, 150, true); // console logs 'debounce ran.' one time immediately.
|
|
32590
|
-
// 100ms passes
|
|
32591
|
-
|
|
32592
|
-
(0, _runloop.debounce)(myContext, whoRan, 150, true); // 150ms passes and nothing else is logged to the console and
|
|
32593
|
-
// the debouncee is no longer being watched
|
|
32594
|
-
|
|
32595
|
-
(0, _runloop.debounce)(myContext, whoRan, 150, true); // console logs 'debounce ran.' one time immediately.
|
|
32596
|
-
// 150ms passes and nothing else is logged to the console and
|
|
32597
|
-
// the debouncee is no longer being watched
|
|
32598
|
-
// Method only
|
|
32599
|
-
|
|
32600
|
-
(0, _expectType.expectTypeOf)((0, _runloop.debounce)((_foo, _baz) => {}, 1, undefined, 1)).toEqualTypeOf(); // @ts-expect-error Requires wait
|
|
32601
|
-
|
|
32602
|
-
(0, _runloop.debounce)((_foo, _baz) => {}, 1, true); // @ts-expect-error Requires all args
|
|
32603
|
-
|
|
32604
|
-
(0, _runloop.debounce)((_foo, _baz) => {}, 1, 1); // Can set immediate
|
|
32605
|
-
|
|
32606
|
-
(0, _runloop.debounce)((_foo, _baz) => {}, 1, true, 1, true); // With target
|
|
32607
|
-
|
|
32608
|
-
(0, _runloop.debounce)(myContext, function (_foo, _baz) {
|
|
32609
|
-
(0, _expectType.expectTypeOf)(this).toEqualTypeOf(myContext);
|
|
32610
|
-
}, 1, true, 1, true); // With key
|
|
32611
|
-
|
|
32612
|
-
(0, _runloop.debounce)(myContext, 'test', 1, true, 1, true); // @ts-expect-error invalid key
|
|
32613
|
-
|
|
32614
|
-
(0, _runloop.debounce)(myContext, 'invalid');
|
|
32615
|
-
|
|
32616
|
-
class Foo {
|
|
32617
|
-
test(_foo, _bar, _baz) {
|
|
32618
|
-
return 1;
|
|
32619
|
-
}
|
|
32620
|
-
|
|
32621
|
-
}
|
|
32622
|
-
|
|
32623
|
-
var foo = new Foo(); // With only function
|
|
32624
|
-
|
|
32625
|
-
(0, _expectType.expectTypeOf)((0, _runloop.debounce)((_foo, _bar, _baz) => {
|
|
32626
|
-
return 1;
|
|
32627
|
-
}, 1, true, undefined, 1)).toEqualTypeOf();
|
|
32628
|
-
(0, _expectType.expectTypeOf)((0, _runloop.debounce)((_foo, _bar, _baz) => {
|
|
32629
|
-
return 1;
|
|
32630
|
-
}, 1, true, 'string', 1)).toEqualTypeOf();
|
|
32631
|
-
(0, _runloop.debounce)(_foo => {
|
|
32632
|
-
return 1; // @ts-expect-error invalid argument
|
|
32633
|
-
}, 'string'); // With target and function
|
|
32634
|
-
|
|
32635
|
-
(0, _expectType.expectTypeOf)((0, _runloop.debounce)(foo, function (_foo, _bar, _baz) {
|
|
32636
|
-
(0, _expectType.expectTypeOf)(this).toEqualTypeOf();
|
|
32637
|
-
return 1;
|
|
32638
|
-
}, 1, true, undefined, 1)).toEqualTypeOf();
|
|
32639
|
-
(0, _expectType.expectTypeOf)((0, _runloop.debounce)(foo, function (_foo, _bar, _baz) {
|
|
32640
|
-
return 1;
|
|
32641
|
-
}, 1, true, 'string', 1)).toEqualTypeOf(); // @ts-expect-error invalid args
|
|
32642
|
-
|
|
32643
|
-
(0, _runloop.debounce)(foo, function (_foo, _bar, _baz) {
|
|
32644
|
-
return 1;
|
|
32645
|
-
}, 1, 'string', true, 1); // With function string reference
|
|
32646
|
-
|
|
32647
|
-
(0, _expectType.expectTypeOf)((0, _runloop.debounce)(foo, 'test', 1, true, 'string', 1)).toEqualTypeOf();
|
|
32648
|
-
(0, _expectType.expectTypeOf)((0, _runloop.debounce)(foo, 'test', 1, true, undefined, 1)).toEqualTypeOf(); // @ts-expect-error Invalid args
|
|
32649
|
-
|
|
32650
|
-
(0, _runloop.debounce)(foo, 'test', 'string');
|
|
32651
|
-
});
|
|
32652
|
-
define("@ember/runloop/type-tests.ts/join.test", ["@ember/runloop", "expect-type"], function (_runloop, _expectType) {
|
|
32653
|
-
"use strict";
|
|
32654
|
-
|
|
32655
|
-
class Foo {
|
|
32656
|
-
test(_foo, _bar, _baz) {
|
|
32657
|
-
return 1;
|
|
32658
|
-
}
|
|
32659
|
-
|
|
32660
|
-
}
|
|
32661
|
-
|
|
32662
|
-
var foo = new Foo(); // With only function
|
|
32663
|
-
|
|
32664
|
-
(0, _expectType.expectTypeOf)((0, _runloop.join)((_foo, _bar, _baz) => {
|
|
32665
|
-
return 1;
|
|
32666
|
-
}, 1, true)).toEqualTypeOf();
|
|
32667
|
-
(0, _expectType.expectTypeOf)((0, _runloop.join)((_foo, _bar, _baz) => {
|
|
32668
|
-
return 1;
|
|
32669
|
-
}, 1, true, 'string')).toEqualTypeOf();
|
|
32670
|
-
(0, _runloop.join)(_foo => {
|
|
32671
|
-
return 1; // @ts-expect-error invalid argument
|
|
32672
|
-
}, 'string'); // With target and function
|
|
32673
|
-
|
|
32674
|
-
(0, _expectType.expectTypeOf)((0, _runloop.join)(foo, function (_foo, _bar, _baz) {
|
|
32675
|
-
(0, _expectType.expectTypeOf)(this).toEqualTypeOf();
|
|
32676
|
-
return 1;
|
|
32677
|
-
}, 1, true)).toEqualTypeOf();
|
|
32678
|
-
(0, _expectType.expectTypeOf)((0, _runloop.join)(foo, function (_foo, _bar, _baz) {
|
|
32679
|
-
return 1;
|
|
32680
|
-
}, 1, true, 'string')).toEqualTypeOf(); // @ts-expect-error invalid args
|
|
32681
|
-
|
|
32682
|
-
(0, _runloop.join)(foo, function (_foo, _bar, _baz) {
|
|
32683
|
-
return 1;
|
|
32684
|
-
}, 1, 'string'); // With function string reference
|
|
32685
|
-
|
|
32686
|
-
(0, _expectType.expectTypeOf)((0, _runloop.join)(foo, 'test', 1, true)).toEqualTypeOf();
|
|
32687
|
-
(0, _expectType.expectTypeOf)((0, _runloop.join)(foo, 'test', 1, true, 'string')).toEqualTypeOf(); // @ts-expect-error Invalid args
|
|
32688
|
-
|
|
32689
|
-
(0, _runloop.join)(foo, 'test', 'string');
|
|
32690
|
-
});
|
|
32691
|
-
define("@ember/runloop/type-tests.ts/later.test", ["@ember/runloop", "expect-type"], function (_runloop, _expectType) {
|
|
32692
|
-
"use strict";
|
|
32693
|
-
|
|
32694
|
-
class Foo {
|
|
32695
|
-
test(_foo, _bar, _baz) {
|
|
32696
|
-
return 1;
|
|
32697
|
-
}
|
|
32698
|
-
|
|
32699
|
-
}
|
|
32700
|
-
|
|
32701
|
-
var foo = new Foo(); // With only function
|
|
32702
|
-
|
|
32703
|
-
(0, _expectType.expectTypeOf)((0, _runloop.later)((_foo, _bar, _baz) => {
|
|
32704
|
-
return 1;
|
|
32705
|
-
}, 1, true, undefined, 1)).toEqualTypeOf();
|
|
32706
|
-
(0, _expectType.expectTypeOf)((0, _runloop.later)((_foo, _bar, _baz) => {
|
|
32707
|
-
return 1;
|
|
32708
|
-
}, 1, true, 'string', 1)).toEqualTypeOf();
|
|
32709
|
-
(0, _runloop.later)(_foo => {
|
|
32710
|
-
return 1; // @ts-expect-error invalid argument
|
|
32711
|
-
}, 'string'); // With target and function
|
|
32712
|
-
|
|
32713
|
-
(0, _expectType.expectTypeOf)((0, _runloop.later)(foo, function (_foo, _bar, _baz) {
|
|
32714
|
-
(0, _expectType.expectTypeOf)(this).toEqualTypeOf();
|
|
32715
|
-
return 1;
|
|
32716
|
-
}, 1, true, undefined, 1)).toEqualTypeOf();
|
|
32717
|
-
(0, _expectType.expectTypeOf)((0, _runloop.later)(foo, function (_foo, _bar, _baz) {
|
|
32718
|
-
return 1;
|
|
32719
|
-
}, 1, true, 'string', 1)).toEqualTypeOf(); // @ts-expect-error invalid args
|
|
32720
|
-
|
|
32721
|
-
(0, _runloop.later)(foo, function (_foo, _bar, _baz) {
|
|
32722
|
-
return 1;
|
|
32723
|
-
}, 1, 'string', true, 1); // With function string reference
|
|
32724
|
-
|
|
32725
|
-
(0, _expectType.expectTypeOf)((0, _runloop.later)(foo, 'test', 1, true, 'string', 1)).toEqualTypeOf();
|
|
32726
|
-
(0, _expectType.expectTypeOf)((0, _runloop.later)(foo, 'test', 1, true, undefined, 1)).toEqualTypeOf(); // @ts-expect-error Invalid args
|
|
32727
|
-
|
|
32728
|
-
(0, _runloop.later)(foo, 'test', 'string');
|
|
32729
|
-
});
|
|
32730
|
-
define("@ember/runloop/type-tests.ts/next.test", ["@ember/runloop", "expect-type"], function (_runloop, _expectType) {
|
|
32731
|
-
"use strict";
|
|
32732
|
-
|
|
32733
|
-
class Foo {
|
|
32734
|
-
test(_foo, _bar, _baz) {
|
|
32735
|
-
return 1;
|
|
32736
|
-
}
|
|
32737
|
-
|
|
32738
|
-
}
|
|
32739
|
-
|
|
32740
|
-
var foo = new Foo(); // With only function
|
|
32741
|
-
|
|
32742
|
-
(0, _expectType.expectTypeOf)((0, _runloop.next)((_foo, _bar, _baz) => {
|
|
32743
|
-
return 1;
|
|
32744
|
-
}, 1, true, undefined)).toEqualTypeOf();
|
|
32745
|
-
(0, _expectType.expectTypeOf)((0, _runloop.next)((_foo, _bar, _baz) => {
|
|
32746
|
-
return 1;
|
|
32747
|
-
}, 1, true, 'string')).toEqualTypeOf();
|
|
32748
|
-
(0, _runloop.next)(_foo => {
|
|
32749
|
-
return 1; // @ts-expect-error invalid argument
|
|
32750
|
-
}, 'string'); // With target and function
|
|
32751
|
-
|
|
32752
|
-
(0, _expectType.expectTypeOf)((0, _runloop.next)(foo, function (_foo, _bar, _baz) {
|
|
32753
|
-
(0, _expectType.expectTypeOf)(this).toEqualTypeOf();
|
|
32754
|
-
return 1;
|
|
32755
|
-
}, 1, true)).toEqualTypeOf();
|
|
32756
|
-
(0, _expectType.expectTypeOf)((0, _runloop.next)(foo, function (_foo, _bar, _baz) {
|
|
32757
|
-
return 1;
|
|
32758
|
-
}, 1, true, 'string')).toEqualTypeOf(); // @ts-expect-error invalid args
|
|
32759
|
-
|
|
32760
|
-
(0, _runloop.next)(foo, function (_foo, _bar, _baz) {
|
|
32761
|
-
return 1;
|
|
32762
|
-
}, 1, 'string', true); // With function string reference
|
|
32763
|
-
|
|
32764
|
-
(0, _expectType.expectTypeOf)((0, _runloop.next)(foo, 'test', 1, true, 'string')).toEqualTypeOf();
|
|
32765
|
-
(0, _expectType.expectTypeOf)((0, _runloop.next)(foo, 'test', 1, true)).toEqualTypeOf(); // @ts-expect-error Invalid args
|
|
32766
|
-
|
|
32767
|
-
(0, _runloop.next)(foo, 'test', 'string');
|
|
32768
|
-
});
|
|
32769
|
-
define("@ember/runloop/type-tests.ts/once.test", ["@ember/runloop", "expect-type"], function (_runloop, _expectType) {
|
|
32770
|
-
"use strict";
|
|
32771
|
-
|
|
32772
|
-
class Foo {
|
|
32773
|
-
test(_foo, _bar, _baz) {
|
|
32774
|
-
return 1;
|
|
32775
|
-
}
|
|
32776
|
-
|
|
32777
|
-
}
|
|
32778
|
-
|
|
32779
|
-
var foo = new Foo(); // With only function
|
|
32780
|
-
|
|
32781
|
-
(0, _expectType.expectTypeOf)((0, _runloop.once)((_foo, _bar, _baz) => {
|
|
32782
|
-
return 1;
|
|
32783
|
-
}, 1, true, undefined)).toEqualTypeOf();
|
|
32784
|
-
(0, _expectType.expectTypeOf)((0, _runloop.once)((_foo, _bar, _baz) => {
|
|
32785
|
-
return 1;
|
|
32786
|
-
}, 1, true, 'string')).toEqualTypeOf();
|
|
32787
|
-
(0, _runloop.once)(_foo => {
|
|
32788
|
-
return 1; // @ts-expect-error invalid argument
|
|
32789
|
-
}, 'string'); // With target and function
|
|
32790
|
-
|
|
32791
|
-
(0, _expectType.expectTypeOf)((0, _runloop.once)(foo, function (_foo, _bar, _baz) {
|
|
32792
|
-
(0, _expectType.expectTypeOf)(this).toEqualTypeOf();
|
|
32793
|
-
return 1;
|
|
32794
|
-
}, 1, true)).toEqualTypeOf();
|
|
32795
|
-
(0, _expectType.expectTypeOf)((0, _runloop.once)(foo, function (_foo, _bar, _baz) {
|
|
32796
|
-
return 1;
|
|
32797
|
-
}, 1, true, 'string')).toEqualTypeOf(); // @ts-expect-error invalid args
|
|
32798
|
-
|
|
32799
|
-
(0, _runloop.once)(foo, function (_foo, _bar, _baz) {
|
|
32800
|
-
return 1;
|
|
32801
|
-
}, 1, 'string', true); // With function string reference
|
|
32802
|
-
|
|
32803
|
-
(0, _expectType.expectTypeOf)((0, _runloop.once)(foo, 'test', 1, true, 'string')).toEqualTypeOf();
|
|
32804
|
-
(0, _expectType.expectTypeOf)((0, _runloop.once)(foo, 'test', 1, true)).toEqualTypeOf(); // @ts-expect-error Invalid args
|
|
32805
|
-
|
|
32806
|
-
(0, _runloop.once)(foo, 'test', 'string');
|
|
32807
|
-
});
|
|
32808
|
-
define("@ember/runloop/type-tests.ts/run.test", ["@ember/runloop", "expect-type"], function (_runloop, _expectType) {
|
|
32809
|
-
"use strict";
|
|
32810
|
-
|
|
32811
|
-
class Foo {
|
|
32812
|
-
test(_foo, _bar, _baz) {
|
|
32813
|
-
return 1;
|
|
32814
|
-
}
|
|
32815
|
-
|
|
32816
|
-
}
|
|
32817
|
-
|
|
32818
|
-
var foo = new Foo(); // With only function
|
|
32819
|
-
|
|
32820
|
-
(0, _expectType.expectTypeOf)((0, _runloop.run)((_foo, _bar, _baz) => {
|
|
32821
|
-
return 1;
|
|
32822
|
-
}, 1, true, undefined)).toEqualTypeOf();
|
|
32823
|
-
(0, _expectType.expectTypeOf)((0, _runloop.run)((_foo, _bar, _baz) => {
|
|
32824
|
-
return 1;
|
|
32825
|
-
}, 1, true, 'string')).toEqualTypeOf();
|
|
32826
|
-
(0, _runloop.run)(_foo => {
|
|
32827
|
-
return 1; // @ts-expect-error invalid argument
|
|
32828
|
-
}, 'string'); // With target and function
|
|
32829
|
-
|
|
32830
|
-
(0, _expectType.expectTypeOf)((0, _runloop.run)(foo, function (_foo, _bar, _baz) {
|
|
32831
|
-
(0, _expectType.expectTypeOf)(this).toEqualTypeOf();
|
|
32832
|
-
return 1;
|
|
32833
|
-
}, 1, true)).toEqualTypeOf();
|
|
32834
|
-
(0, _expectType.expectTypeOf)((0, _runloop.run)(foo, function (_foo, _bar, _baz) {
|
|
32835
|
-
return 1;
|
|
32836
|
-
}, 1, true, 'string')).toEqualTypeOf(); // @ts-expect-error invalid args
|
|
32837
|
-
|
|
32838
|
-
(0, _runloop.run)(foo, function (_foo, _bar, _baz) {
|
|
32839
|
-
return 1;
|
|
32840
|
-
}, 1, 'string', true); // With function string reference
|
|
32841
|
-
|
|
32842
|
-
(0, _expectType.expectTypeOf)((0, _runloop.run)(foo, 'test', 1, true, 'string')).toEqualTypeOf();
|
|
32843
|
-
(0, _expectType.expectTypeOf)((0, _runloop.run)(foo, 'test', 1, true)).toEqualTypeOf(); // @ts-expect-error Invalid args
|
|
32844
|
-
|
|
32845
|
-
(0, _runloop.run)(foo, 'test', 'string');
|
|
32846
|
-
});
|
|
32847
|
-
define("@ember/runloop/type-tests.ts/schedule-once.test", ["@ember/runloop", "expect-type"], function (_runloop, _expectType) {
|
|
32848
|
-
"use strict";
|
|
32849
|
-
|
|
32850
|
-
class Foo {
|
|
32851
|
-
test(_foo, _bar, _baz) {
|
|
32852
|
-
return 1;
|
|
32853
|
-
}
|
|
32854
|
-
|
|
32855
|
-
}
|
|
32856
|
-
|
|
32857
|
-
var foo = new Foo(); // With only function
|
|
32858
|
-
|
|
32859
|
-
(0, _expectType.expectTypeOf)((0, _runloop.scheduleOnce)('my-queue', (_foo, _bar, _baz) => {
|
|
32860
|
-
return 1;
|
|
32861
|
-
}, 1, true, undefined)).toEqualTypeOf();
|
|
32862
|
-
(0, _expectType.expectTypeOf)((0, _runloop.scheduleOnce)('my-queue', (_foo, _bar, _baz) => {
|
|
32863
|
-
return 1;
|
|
32864
|
-
}, 1, true, 'string')).toEqualTypeOf();
|
|
32865
|
-
(0, _runloop.scheduleOnce)('my-queue', _foo => {
|
|
32866
|
-
return 1;
|
|
32867
|
-
}, // @ts-expect-error invalid argument
|
|
32868
|
-
'string'); // With target and function
|
|
32869
|
-
|
|
32870
|
-
(0, _expectType.expectTypeOf)((0, _runloop.scheduleOnce)('my-queue', foo, function (_foo, _bar, _baz) {
|
|
32871
|
-
(0, _expectType.expectTypeOf)(this).toEqualTypeOf();
|
|
32872
|
-
return 1;
|
|
32873
|
-
}, 1, true)).toEqualTypeOf();
|
|
32874
|
-
(0, _expectType.expectTypeOf)((0, _runloop.scheduleOnce)('my-queue', foo, function (_foo, _bar, _baz) {
|
|
32875
|
-
return 1;
|
|
32876
|
-
}, 1, true, 'string')).toEqualTypeOf(); // @ts-expect-error invalid args
|
|
32877
|
-
|
|
32878
|
-
(0, _runloop.scheduleOnce)('my-queue', foo, function (_foo, _bar, _baz) {
|
|
32879
|
-
return 1;
|
|
32880
|
-
}, 1, 'string', true); // With function string reference
|
|
32881
|
-
|
|
32882
|
-
(0, _expectType.expectTypeOf)((0, _runloop.scheduleOnce)('my-queue', foo, 'test', 1, true, 'string')).toEqualTypeOf();
|
|
32883
|
-
(0, _expectType.expectTypeOf)((0, _runloop.scheduleOnce)('my-queue', foo, 'test', 1, true)).toEqualTypeOf(); // @ts-expect-error Invalid args
|
|
32884
|
-
|
|
32885
|
-
(0, _runloop.scheduleOnce)('my-queue', foo, 'test', 'string');
|
|
32886
|
-
});
|
|
32887
|
-
define("@ember/runloop/type-tests.ts/schedule.test", ["@ember/runloop", "expect-type"], function (_runloop, _expectType) {
|
|
32888
|
-
"use strict";
|
|
32889
|
-
|
|
32890
|
-
class Foo {
|
|
32891
|
-
test(_foo, _bar, _baz) {
|
|
32892
|
-
return 1;
|
|
32893
|
-
}
|
|
32894
|
-
|
|
32895
|
-
}
|
|
32896
|
-
|
|
32897
|
-
var foo = new Foo(); // With only function
|
|
32898
|
-
|
|
32899
|
-
(0, _expectType.expectTypeOf)((0, _runloop.schedule)('my-queue', (_foo, _bar, _baz) => {
|
|
32900
|
-
return 1;
|
|
32901
|
-
}, 1, true, undefined)).toEqualTypeOf();
|
|
32902
|
-
(0, _expectType.expectTypeOf)((0, _runloop.schedule)('my-queue', (_foo, _bar, _baz) => {
|
|
32903
|
-
return 1;
|
|
32904
|
-
}, 1, true, 'string')).toEqualTypeOf();
|
|
32905
|
-
(0, _runloop.schedule)('my-queue', _foo => {
|
|
32906
|
-
return 1;
|
|
32907
|
-
}, // @ts-expect-error invalid argument
|
|
32908
|
-
'string'); // With target and function
|
|
32909
|
-
|
|
32910
|
-
(0, _expectType.expectTypeOf)((0, _runloop.schedule)('my-queue', foo, function (_foo, _bar, _baz) {
|
|
32911
|
-
(0, _expectType.expectTypeOf)(this).toEqualTypeOf();
|
|
32912
|
-
return 1;
|
|
32913
|
-
}, 1, true)).toEqualTypeOf();
|
|
32914
|
-
(0, _expectType.expectTypeOf)((0, _runloop.schedule)('my-queue', foo, function (_foo, _bar, _baz) {
|
|
32915
|
-
return 1;
|
|
32916
|
-
}, 1, true, 'string')).toEqualTypeOf(); // @ts-expect-error invalid args
|
|
32917
|
-
|
|
32918
|
-
(0, _runloop.schedule)('my-queue', foo, function (_foo, _bar, _baz) {
|
|
32919
|
-
return 1;
|
|
32920
|
-
}, 1, 'string', true); // With function string reference
|
|
32921
|
-
|
|
32922
|
-
(0, _expectType.expectTypeOf)((0, _runloop.schedule)('my-queue', foo, 'test', 1, true, 'string')).toEqualTypeOf();
|
|
32923
|
-
(0, _expectType.expectTypeOf)((0, _runloop.schedule)('my-queue', foo, 'test', 1, true)).toEqualTypeOf(); // @ts-expect-error Invalid args
|
|
32924
|
-
|
|
32925
|
-
(0, _runloop.schedule)('my-queue', foo, 'test', 'string');
|
|
32926
|
-
});
|
|
32927
|
-
define("@ember/runloop/type-tests.ts/throttle.test", ["@ember/runloop", "expect-type"], function (_runloop, _expectType) {
|
|
32928
|
-
"use strict";
|
|
32929
|
-
|
|
32930
|
-
// From Docs
|
|
32931
|
-
function whoRan() {// Do stuff
|
|
32932
|
-
}
|
|
32933
|
-
|
|
32934
|
-
var myContext = {
|
|
32935
|
-
name: 'throttle',
|
|
32936
|
-
|
|
32937
|
-
test(_foo, _baz) {}
|
|
32938
|
-
|
|
32939
|
-
};
|
|
32940
|
-
(0, _runloop.throttle)(myContext, whoRan, 150); // less than 150ms passes
|
|
32941
|
-
|
|
32942
|
-
(0, _runloop.throttle)(myContext, whoRan, 150);
|
|
32943
|
-
(0, _runloop.throttle)(myContext, whoRan, 150, true); // console logs 'throttle ran.' one time immediately.
|
|
32944
|
-
// 100ms passes
|
|
32945
|
-
|
|
32946
|
-
(0, _runloop.throttle)(myContext, whoRan, 150, true); // 150ms passes and nothing else is logged to the console and
|
|
32947
|
-
// the throttlee is no longer being watched
|
|
32948
|
-
|
|
32949
|
-
(0, _runloop.throttle)(myContext, whoRan, 150, true); // console logs 'throttle ran.' one time immediately.
|
|
32950
|
-
// 150ms passes and nothing else is logged to the console and
|
|
32951
|
-
// the throttlee is no longer being watched
|
|
32952
|
-
// Method only
|
|
32953
|
-
|
|
32954
|
-
(0, _expectType.expectTypeOf)((0, _runloop.throttle)((_foo, _baz) => {}, 1, undefined, 1)).toEqualTypeOf(); // Wait is optional
|
|
32955
|
-
|
|
32956
|
-
(0, _runloop.throttle)((_foo, _baz) => {}, 1, true); // @ts-expect-error Requires all args
|
|
32957
|
-
|
|
32958
|
-
(0, _runloop.throttle)((_foo, _baz) => {}, 1, 1); // Can set immediate
|
|
32959
|
-
|
|
32960
|
-
(0, _runloop.throttle)((_foo, _baz) => {}, 1, true, 1, true); // With target
|
|
32961
|
-
|
|
32962
|
-
(0, _runloop.throttle)(myContext, function (_foo, _baz) {
|
|
32963
|
-
(0, _expectType.expectTypeOf)(this).toEqualTypeOf(myContext);
|
|
32964
|
-
}, 1, true, 1, true); // With key
|
|
32965
|
-
|
|
32966
|
-
(0, _runloop.throttle)(myContext, 'test', 1, true, 1, true); // @ts-expect-error invalid key
|
|
32967
|
-
|
|
32968
|
-
(0, _runloop.throttle)(myContext, 'invalid');
|
|
32969
|
-
|
|
32970
|
-
class Foo {
|
|
32971
|
-
test(_foo, _bar, _baz) {
|
|
32972
|
-
return 1;
|
|
32973
|
-
}
|
|
32974
|
-
|
|
32975
|
-
}
|
|
32976
|
-
|
|
32977
|
-
var foo = new Foo(); // With only function
|
|
32978
|
-
|
|
32979
|
-
(0, _expectType.expectTypeOf)((0, _runloop.throttle)((_foo, _bar, _baz) => {
|
|
32980
|
-
return 1;
|
|
32981
|
-
}, 1, true, undefined, 1)).toEqualTypeOf();
|
|
32982
|
-
(0, _expectType.expectTypeOf)((0, _runloop.throttle)((_foo, _bar, _baz) => {
|
|
32983
|
-
return 1;
|
|
32984
|
-
}, 1, true, 'string', 1)).toEqualTypeOf();
|
|
32985
|
-
(0, _runloop.throttle)(_foo => {
|
|
32986
|
-
return 1; // @ts-expect-error invalid argument
|
|
32987
|
-
}, 'string'); // With target and function
|
|
32988
|
-
|
|
32989
|
-
(0, _expectType.expectTypeOf)((0, _runloop.throttle)(foo, function (_foo, _bar, _baz) {
|
|
32990
|
-
(0, _expectType.expectTypeOf)(this).toEqualTypeOf();
|
|
32991
|
-
return 1;
|
|
32992
|
-
}, 1, true, undefined, 1)).toEqualTypeOf();
|
|
32993
|
-
(0, _expectType.expectTypeOf)((0, _runloop.throttle)(foo, function (_foo, _bar, _baz) {
|
|
32994
|
-
return 1;
|
|
32995
|
-
}, 1, true, 'string', 1)).toEqualTypeOf(); // @ts-expect-error invalid args
|
|
32996
|
-
|
|
32997
|
-
(0, _runloop.throttle)(foo, function (_foo, _bar, _baz) {
|
|
32998
|
-
return 1;
|
|
32999
|
-
}, 1, 'string', true, 1); // With function string reference
|
|
33000
|
-
|
|
33001
|
-
(0, _expectType.expectTypeOf)((0, _runloop.throttle)(foo, 'test', 1, true, 'string', 1)).toEqualTypeOf();
|
|
33002
|
-
(0, _expectType.expectTypeOf)((0, _runloop.throttle)(foo, 'test', 1, true, undefined, 1)).toEqualTypeOf(); // @ts-expect-error Invalid args
|
|
33003
|
-
|
|
33004
|
-
(0, _runloop.throttle)(foo, 'test', 'string');
|
|
33005
|
-
});
|
|
33006
32492
|
define("@ember/service/index", ["exports", "@ember/object/-internals", "@ember/-internals/metal"], function (_exports, _internals, _metal) {
|
|
33007
32493
|
"use strict";
|
|
33008
32494
|
|
|
@@ -53625,7 +53111,7 @@ define("ember/version", ["exports"], function (_exports) {
|
|
|
53625
53111
|
value: true
|
|
53626
53112
|
});
|
|
53627
53113
|
_exports.default = void 0;
|
|
53628
|
-
var _default = "4.8.0-beta.
|
|
53114
|
+
var _default = "4.8.0-beta.2";
|
|
53629
53115
|
_exports.default = _default;
|
|
53630
53116
|
});
|
|
53631
53117
|
define("route-recognizer", ["exports"], function (_exports) {
|