ember-source 2.16.0 → 2.16.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/dist/ember-runtime.js +356 -202
- data/dist/ember-template-compiler.js +443 -255
- data/dist/ember-testing.js +74 -59
- data/dist/ember-tests.js +162 -42
- data/dist/ember-tests.prod.js +157 -46
- data/dist/ember.debug.js +804 -629
- data/dist/ember.min.js +11 -11
- data/dist/ember.prod.js +743 -567
- metadata +3 -3
data/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 2.16.
|
9
|
+
* @version 2.16.1
|
10
10
|
*/
|
11
11
|
|
12
12
|
var enifed, requireModule, Ember;
|
@@ -11233,19 +11233,18 @@ enifed('ember-application/system/application-instance', ['exports', 'ember-utils
|
|
11233
11233
|
it once the particular test run or FastBoot request has finished.
|
11234
11234
|
|
11235
11235
|
@public
|
11236
|
-
@class
|
11237
|
-
@extends
|
11236
|
+
@class ApplicationInstance
|
11237
|
+
@extends EngineInstance
|
11238
11238
|
*/
|
11239
11239
|
|
11240
11240
|
/**
|
11241
|
-
@module ember
|
11242
|
-
@submodule ember-application
|
11241
|
+
@module @ember/application
|
11243
11242
|
*/
|
11244
11243
|
|
11245
11244
|
var ApplicationInstance = _engineInstance.default.extend({
|
11246
11245
|
/**
|
11247
11246
|
The `Application` for which this is an instance.
|
11248
|
-
@property {
|
11247
|
+
@property {Application} application
|
11249
11248
|
@private
|
11250
11249
|
*/
|
11251
11250
|
application: null,
|
@@ -11439,7 +11438,7 @@ enifed('ember-application/system/application-instance', ['exports', 'ember-utils
|
|
11439
11438
|
Internal, experimental or otherwise unstable flags are marked as private.
|
11440
11439
|
|
11441
11440
|
@class BootOptions
|
11442
|
-
@namespace
|
11441
|
+
@namespace ApplicationInstance
|
11443
11442
|
@public
|
11444
11443
|
*/
|
11445
11444
|
BootOptions = function BootOptions() {
|
@@ -11762,8 +11761,7 @@ enifed('ember-application/system/application', ['exports', 'ember-babel', 'ember
|
|
11762
11761
|
begins.
|
11763
11762
|
|
11764
11763
|
@class Application
|
11765
|
-
@
|
11766
|
-
@extends Ember.Engine
|
11764
|
+
@extends Engine
|
11767
11765
|
@uses RegistryProxyMixin
|
11768
11766
|
@public
|
11769
11767
|
*/
|
@@ -12200,8 +12198,8 @@ enifed('ember-application/system/engine-instance', ['exports', 'ember-babel', 'e
|
|
12200
12198
|
running `Engine`.
|
12201
12199
|
|
12202
12200
|
@public
|
12203
|
-
@class
|
12204
|
-
@extends
|
12201
|
+
@class EngineInstance
|
12202
|
+
@extends EmberObject
|
12205
12203
|
@uses RegistryProxyMixin
|
12206
12204
|
@uses ContainerProxyMixin
|
12207
12205
|
*/
|
@@ -12357,7 +12355,8 @@ enifed('ember-application/system/engine-parent', ['exports', 'ember-utils'], fun
|
|
12357
12355
|
@method getEngineParent
|
12358
12356
|
@param {EngineInstance} engine An engine instance.
|
12359
12357
|
@return {EngineInstance} The parent engine instance.
|
12360
|
-
@for
|
12358
|
+
@for @ember/engine
|
12359
|
+
@static
|
12361
12360
|
@private
|
12362
12361
|
*/
|
12363
12362
|
function getEngineParent(engine) {
|
@@ -12403,7 +12402,6 @@ enifed('ember-application/system/engine', ['exports', 'ember-babel', 'ember-util
|
|
12403
12402
|
Engines can spawn `EngineInstance` instances via `buildInstance()`.
|
12404
12403
|
|
12405
12404
|
@class Engine
|
12406
|
-
@namespace Ember
|
12407
12405
|
@extends Ember.Namespace
|
12408
12406
|
@uses RegistryProxy
|
12409
12407
|
@public
|
@@ -12790,8 +12788,7 @@ enifed('ember-application/system/resolver', ['exports', 'ember-utils', 'ember-me
|
|
12790
12788
|
|
12791
12789
|
exports.Resolver = undefined;
|
12792
12790
|
/**
|
12793
|
-
@module ember
|
12794
|
-
@submodule ember-application
|
12791
|
+
@module @ember/application
|
12795
12792
|
*/
|
12796
12793
|
|
12797
12794
|
var Resolver = exports.Resolver = _emberRuntime.Object.extend({
|
@@ -12857,32 +12854,25 @@ enifed('ember-application/system/resolver', ['exports', 'ember-utils', 'ember-me
|
|
12857
12854
|
|
12858
12855
|
Some examples of how names are resolved:
|
12859
12856
|
|
12860
|
-
```
|
12857
|
+
```text
|
12861
12858
|
'template:post' //=> Ember.TEMPLATES['post']
|
12862
12859
|
'template:posts/byline' //=> Ember.TEMPLATES['posts/byline']
|
12863
12860
|
'template:posts.byline' //=> Ember.TEMPLATES['posts/byline']
|
12864
|
-
'template:blogPost' //=> Ember.TEMPLATES['
|
12865
|
-
// OR
|
12866
|
-
// Ember.TEMPLATES['blog_post']
|
12861
|
+
'template:blogPost' //=> Ember.TEMPLATES['blog-post']
|
12867
12862
|
'controller:post' //=> App.PostController
|
12868
12863
|
'controller:posts.index' //=> App.PostsIndexController
|
12869
12864
|
'controller:blog/post' //=> Blog.PostController
|
12870
|
-
'controller:basic' //=>
|
12865
|
+
'controller:basic' //=> Controller
|
12871
12866
|
'route:post' //=> App.PostRoute
|
12872
12867
|
'route:posts.index' //=> App.PostsIndexRoute
|
12873
12868
|
'route:blog/post' //=> Blog.PostRoute
|
12874
|
-
'route:basic' //=>
|
12875
|
-
'view:post' //=> App.PostView
|
12876
|
-
'view:posts.index' //=> App.PostsIndexView
|
12877
|
-
'view:blog/post' //=> Blog.PostView
|
12878
|
-
'view:basic' //=> Ember.View
|
12869
|
+
'route:basic' //=> Route
|
12879
12870
|
'foo:post' //=> App.PostFoo
|
12880
12871
|
'model:post' //=> App.Post
|
12881
12872
|
```
|
12882
12873
|
|
12883
|
-
@class
|
12884
|
-
@
|
12885
|
-
@extends Ember.Object
|
12874
|
+
@class GlobalsResolver
|
12875
|
+
@extends EmberObject
|
12886
12876
|
@public
|
12887
12877
|
*/
|
12888
12878
|
|
@@ -13222,10 +13212,7 @@ enifed('ember-application/utils/validate-type', ['exports', 'ember-debug'], func
|
|
13222
13212
|
component: ['deprecate', 'isComponentFactory', 'Ember.Component'],
|
13223
13213
|
view: ['deprecate', 'isViewFactory', 'Ember.View'],
|
13224
13214
|
service: ['deprecate', 'isServiceFactory', 'Ember.Service']
|
13225
|
-
};
|
13226
|
-
@module ember
|
13227
|
-
@submodule ember-application
|
13228
|
-
*/
|
13215
|
+
};
|
13229
13216
|
|
13230
13217
|
function validateType(resolvedType, parsedName) {
|
13231
13218
|
var validationAttributes = VALIDATED_TYPES[parsedName.type];
|
@@ -13460,12 +13447,10 @@ enifed('ember-debug/deprecate', ['exports', 'ember-debug/error', 'ember-console'
|
|
13460
13447
|
|
13461
13448
|
exports.missingOptionsUntilDeprecation = exports.missingOptionsIdDeprecation = exports.missingOptionsDeprecation = exports.registerHandler = undefined;
|
13462
13449
|
|
13463
|
-
|
13464
13450
|
/**
|
13465
|
-
|
13466
|
-
|
13451
|
+
@module @ember/debug
|
13452
|
+
@public
|
13467
13453
|
*/
|
13468
|
-
|
13469
13454
|
/**
|
13470
13455
|
Allows for runtime registration of handler functions that override the default deprecation behavior.
|
13471
13456
|
Deprecations are invoked by calls to [Ember.deprecate](https://emberjs.com/api/classes/Ember.html#method_deprecate).
|
@@ -13498,7 +13483,7 @@ enifed('ember-debug/deprecate', ['exports', 'ember-debug/error', 'ember-console'
|
|
13498
13483
|
@public
|
13499
13484
|
@static
|
13500
13485
|
@method registerDeprecationHandler
|
13501
|
-
@for
|
13486
|
+
@for @ember/debug
|
13502
13487
|
@param handler {Function} A function to handle deprecation calls.
|
13503
13488
|
@since 2.1.0
|
13504
13489
|
*/
|
@@ -13590,13 +13575,17 @@ enifed('ember-debug/deprecate', ['exports', 'ember-debug/error', 'ember-console'
|
|
13590
13575
|
exports.missingOptionsDeprecation = missingOptionsDeprecation = 'When calling `Ember.deprecate` you ' + 'must provide an `options` hash as the third parameter. ' + '`options` should include `id` and `until` properties.';
|
13591
13576
|
exports.missingOptionsIdDeprecation = missingOptionsIdDeprecation = 'When calling `Ember.deprecate` you must provide `id` in options.';
|
13592
13577
|
exports.missingOptionsUntilDeprecation = missingOptionsUntilDeprecation = 'When calling `Ember.deprecate` you must provide `until` in options.';
|
13593
|
-
|
13578
|
+
/**
|
13579
|
+
@module @ember/application
|
13580
|
+
@public
|
13581
|
+
*/
|
13594
13582
|
/**
|
13595
13583
|
Display a deprecation warning with the provided message and a stack trace
|
13596
13584
|
(Chrome and Firefox only).
|
13597
13585
|
* In a production build, this method is defined as an empty function (NOP).
|
13598
13586
|
Uses of this method in Ember itself are stripped from the ember.prod.js build.
|
13599
13587
|
@method deprecate
|
13588
|
+
@for @ember/application/deprecations
|
13600
13589
|
@param {String} message A description of the deprecation.
|
13601
13590
|
@param {Boolean} test A boolean. If falsy, the deprecation will be displayed.
|
13602
13591
|
@param {Object} options
|
@@ -13608,7 +13597,7 @@ enifed('ember-debug/deprecate', ['exports', 'ember-debug/error', 'ember-console'
|
|
13608
13597
|
warning will be removed.
|
13609
13598
|
@param {String} [options.url] An optional url to the transition guide on the
|
13610
13599
|
emberjs.com website.
|
13611
|
-
@
|
13600
|
+
@static
|
13612
13601
|
@public
|
13613
13602
|
@since 1.0.0
|
13614
13603
|
*/
|
@@ -13650,6 +13639,9 @@ enifed('ember-debug/deprecate', ['exports', 'ember-debug/error', 'ember-console'
|
|
13650
13639
|
enifed("ember-debug/error", ["exports", "ember-babel"], function (exports, _emberBabel) {
|
13651
13640
|
"use strict";
|
13652
13641
|
|
13642
|
+
/**
|
13643
|
+
@module @ember/error
|
13644
|
+
*/
|
13653
13645
|
function ExtendBuiltin(klass) {
|
13654
13646
|
function ExtendableBuiltin() {
|
13655
13647
|
klass.apply(this, arguments);
|
@@ -13663,8 +13655,7 @@ enifed("ember-debug/error", ["exports", "ember-babel"], function (exports, _embe
|
|
13663
13655
|
/**
|
13664
13656
|
A subclass of the JavaScript Error object for use in Ember.
|
13665
13657
|
|
13666
|
-
@class
|
13667
|
-
@namespace Ember
|
13658
|
+
@class EmberError
|
13668
13659
|
@extends Error
|
13669
13660
|
@constructor
|
13670
13661
|
@public
|
@@ -13708,6 +13699,10 @@ enifed('ember-debug/features', ['exports', 'ember-environment', 'ember/features'
|
|
13708
13699
|
var FEATURES = _features.FEATURES;
|
13709
13700
|
|
13710
13701
|
|
13702
|
+
/**
|
13703
|
+
@module ember
|
13704
|
+
*/
|
13705
|
+
|
13711
13706
|
/**
|
13712
13707
|
The hash of enabled Canary features. Add to this, any canary features
|
13713
13708
|
before creating your application.
|
@@ -13896,13 +13891,7 @@ enifed('ember-debug/index', ['exports', 'ember-debug/warn', 'ember-debug/depreca
|
|
13896
13891
|
}
|
13897
13892
|
|
13898
13893
|
/**
|
13899
|
-
@module ember
|
13900
|
-
@submodule ember-debug
|
13901
|
-
*/
|
13902
|
-
|
13903
|
-
/**
|
13904
|
-
@class Ember
|
13905
|
-
@public
|
13894
|
+
@module @ember/debug
|
13906
13895
|
*/
|
13907
13896
|
|
13908
13897
|
if (true) {
|
@@ -13911,12 +13900,15 @@ enifed('ember-debug/index', ['exports', 'ember-debug/warn', 'ember-debug/depreca
|
|
13911
13900
|
* In a production build, this method is defined as an empty function (NOP).
|
13912
13901
|
Uses of this method in Ember itself are stripped from the ember.prod.js build.
|
13913
13902
|
```javascript
|
13914
|
-
|
13915
|
-
|
13903
|
+
import { assert } from '@ember/debug';
|
13904
|
+
// Test for truthiness
|
13905
|
+
assert('Must pass a valid object', obj);
|
13916
13906
|
// Fail unconditionally
|
13917
|
-
|
13907
|
+
assert('This code path should never be run');
|
13918
13908
|
```
|
13919
13909
|
@method assert
|
13910
|
+
@static
|
13911
|
+
@for @ember/debug
|
13920
13912
|
@param {String} desc A description of the assertion. This will become
|
13921
13913
|
the text of the Error thrown if the assertion fails.
|
13922
13914
|
@param {Boolean} test Must be truthy for the assertion to pass. If
|
@@ -13935,9 +13927,12 @@ enifed('ember-debug/index', ['exports', 'ember-debug/warn', 'ember-debug/depreca
|
|
13935
13927
|
* In a production build, this method is defined as an empty function (NOP).
|
13936
13928
|
Uses of this method in Ember itself are stripped from the ember.prod.js build.
|
13937
13929
|
```javascript
|
13938
|
-
|
13930
|
+
import { debug } from '@ember/debug';
|
13931
|
+
debug('I\'m a debug notice!');
|
13939
13932
|
```
|
13940
13933
|
@method debug
|
13934
|
+
@for @ember/debug
|
13935
|
+
@static
|
13941
13936
|
@param {String} message A debug message to display.
|
13942
13937
|
@public
|
13943
13938
|
*/
|
@@ -13956,6 +13951,11 @@ enifed('ember-debug/index', ['exports', 'ember-debug/warn', 'ember-debug/depreca
|
|
13956
13951
|
_emberConsole.default.info.apply(undefined, arguments);
|
13957
13952
|
});
|
13958
13953
|
|
13954
|
+
/**
|
13955
|
+
@module @ember/application
|
13956
|
+
@public
|
13957
|
+
*/
|
13958
|
+
|
13959
13959
|
/**
|
13960
13960
|
Alias an old, deprecated method with its new counterpart.
|
13961
13961
|
Display a deprecation warning with the provided message and a stack trace
|
@@ -13965,6 +13965,8 @@ enifed('ember-debug/index', ['exports', 'ember-debug/warn', 'ember-debug/depreca
|
|
13965
13965
|
Ember.oldMethod = Ember.deprecateFunc('Please use the new, updated method', Ember.newMethod);
|
13966
13966
|
```
|
13967
13967
|
@method deprecateFunc
|
13968
|
+
@static
|
13969
|
+
@for @ember/application/deprecations
|
13968
13970
|
@param {String} message A description of the deprecation.
|
13969
13971
|
@param {Object} [options] The options object for Ember.deprecate.
|
13970
13972
|
@param {Function} func The new function called to replace its deprecated counterpart.
|
@@ -13996,13 +13998,19 @@ enifed('ember-debug/index', ['exports', 'ember-debug/warn', 'ember-debug/depreca
|
|
13996
13998
|
}
|
13997
13999
|
});
|
13998
14000
|
|
14001
|
+
/**
|
14002
|
+
@module @ember/debug
|
14003
|
+
@public
|
14004
|
+
*/
|
13999
14005
|
/**
|
14000
14006
|
Run a function meant for debugging.
|
14001
14007
|
* In a production build, this method is defined as an empty function (NOP).
|
14002
14008
|
Uses of this method in Ember itself are stripped from the ember.prod.js build.
|
14003
14009
|
```javascript
|
14004
|
-
|
14005
|
-
|
14010
|
+
import Component from '@ember/component';
|
14011
|
+
import { runInDebug } from '@ember/debug';
|
14012
|
+
runInDebug(() => {
|
14013
|
+
Component.reopen({
|
14006
14014
|
didInsertElement() {
|
14007
14015
|
console.log("I'm happy");
|
14008
14016
|
}
|
@@ -14010,6 +14018,8 @@ enifed('ember-debug/index', ['exports', 'ember-debug/warn', 'ember-debug/depreca
|
|
14010
14018
|
});
|
14011
14019
|
```
|
14012
14020
|
@method runInDebug
|
14021
|
+
@for @ember/debug
|
14022
|
+
@static
|
14013
14023
|
@param {Function} func The function to be executed.
|
14014
14024
|
@since 1.5.0
|
14015
14025
|
@public
|
@@ -14035,7 +14045,7 @@ enifed('ember-debug/index', ['exports', 'ember-debug/warn', 'ember-debug/depreca
|
|
14035
14045
|
|
14036
14046
|
if (true && !(0, _testing.isTesting)()) {
|
14037
14047
|
/**
|
14038
|
-
Will call `
|
14048
|
+
Will call `warn()` if ENABLE_OPTIONAL_FEATURES or
|
14039
14049
|
any specific FEATURES flag is truthy.
|
14040
14050
|
This method is called automatically in debug canary builds.
|
14041
14051
|
@private
|
@@ -14130,19 +14140,19 @@ enifed('ember-debug/warn', ['exports', 'ember-console', 'ember-debug/deprecate',
|
|
14130
14140
|
missingOptionsIdDeprecation = void 0;
|
14131
14141
|
|
14132
14142
|
/**
|
14133
|
-
@module ember
|
14134
|
-
@submodule ember-debug
|
14143
|
+
@module @ember/debug
|
14135
14144
|
*/
|
14136
14145
|
|
14137
14146
|
if (true) {
|
14138
14147
|
/**
|
14139
14148
|
Allows for runtime registration of handler functions that override the default warning behavior.
|
14140
|
-
Warnings are invoked by calls made to [
|
14149
|
+
Warnings are invoked by calls made to [warn](https://emberjs.com/api/classes/Ember.html#method_warn).
|
14141
14150
|
The following example demonstrates its usage by registering a handler that does nothing overriding Ember's
|
14142
14151
|
default warning behavior.
|
14143
14152
|
```javascript
|
14144
|
-
|
14145
|
-
|
14153
|
+
import { registerWarnHandler } from '@ember/debug';
|
14154
|
+
// next is not called, so no warnings get the default behavior
|
14155
|
+
registerWarnHandler(() => {});
|
14146
14156
|
```
|
14147
14157
|
The handler function takes the following arguments:
|
14148
14158
|
<ul>
|
@@ -14156,7 +14166,7 @@ enifed('ember-debug/warn', ['exports', 'ember-console', 'ember-debug/deprecate',
|
|
14156
14166
|
@public
|
14157
14167
|
@static
|
14158
14168
|
@method registerWarnHandler
|
14159
|
-
@for
|
14169
|
+
@for @ember/debug
|
14160
14170
|
@param handler {Function} A function to handle warnings.
|
14161
14171
|
@since 2.1.0
|
14162
14172
|
*/
|
@@ -14171,14 +14181,16 @@ enifed('ember-debug/warn', ['exports', 'ember-console', 'ember-debug/deprecate',
|
|
14171
14181
|
}
|
14172
14182
|
});
|
14173
14183
|
|
14174
|
-
exports.missingOptionsDeprecation = missingOptionsDeprecation = 'When calling `
|
14175
|
-
exports.missingOptionsIdDeprecation = missingOptionsIdDeprecation = 'When calling `
|
14184
|
+
exports.missingOptionsDeprecation = missingOptionsDeprecation = 'When calling `warn` you ' + 'must provide an `options` hash as the third parameter. ' + '`options` should include an `id` property.';
|
14185
|
+
exports.missingOptionsIdDeprecation = missingOptionsIdDeprecation = 'When calling `warn` you must provide `id` in options.';
|
14176
14186
|
|
14177
14187
|
/**
|
14178
14188
|
Display a warning with the provided message.
|
14179
14189
|
* In a production build, this method is defined as an empty function (NOP).
|
14180
14190
|
Uses of this method in Ember itself are stripped from the ember.prod.js build.
|
14181
14191
|
@method warn
|
14192
|
+
@for @ember/debug
|
14193
|
+
@static
|
14182
14194
|
@param {String} message A warning to display.
|
14183
14195
|
@param {Boolean} test An optional boolean. If falsy, the warning
|
14184
14196
|
will be displayed.
|
@@ -14186,7 +14198,6 @@ enifed('ember-debug/warn', ['exports', 'ember-console', 'ember-debug/deprecate',
|
|
14186
14198
|
`id` for this warning. The `id` can be used by Ember debugging tools
|
14187
14199
|
to change the behavior (raise, log, or silence) for that specific warning.
|
14188
14200
|
The `id` should be namespaced by dots, e.g. "ember-debug.feature-flag-with-features-stripped"
|
14189
|
-
@for Ember
|
14190
14201
|
@public
|
14191
14202
|
@since 1.0.0
|
14192
14203
|
*/
|
@@ -15573,11 +15584,7 @@ enifed('ember-glimmer/component-managers/outlet', ['exports', 'ember-babel', 'em
|
|
15573
15584
|
outlet = _ref$render.outlet;
|
15574
15585
|
|
15575
15586
|
return { object: name + ':' + outlet };
|
15576
|
-
}
|
15577
|
-
@module ember
|
15578
|
-
@submodule ember-glimmer
|
15579
|
-
*/
|
15580
|
-
|
15587
|
+
}
|
15581
15588
|
|
15582
15589
|
function NOOP() {}
|
15583
15590
|
|
@@ -15947,19 +15954,18 @@ enifed('ember-glimmer/component', ['exports', 'ember-utils', 'ember-views', 'emb
|
|
15947
15954
|
var BOUNDS = exports.BOUNDS = (0, _emberUtils.symbol)('BOUNDS');
|
15948
15955
|
|
15949
15956
|
/**
|
15950
|
-
@module ember
|
15951
|
-
@submodule ember-glimmer
|
15957
|
+
@module @ember/component
|
15952
15958
|
*/
|
15953
15959
|
|
15954
15960
|
/**
|
15955
|
-
|
15961
|
+
A `Component` is a view that is completely
|
15956
15962
|
isolated. Properties accessed in its templates go
|
15957
15963
|
to the view object and actions are targeted at
|
15958
15964
|
the view object. There is no access to the
|
15959
15965
|
surrounding context or outer controller; all
|
15960
15966
|
contextual information must be passed in.
|
15961
15967
|
|
15962
|
-
The easiest way to create
|
15968
|
+
The easiest way to create a `Component` is via
|
15963
15969
|
a template. If you name a template
|
15964
15970
|
`app/components/my-foo.hbs`, you will be able to use
|
15965
15971
|
`{{my-foo}}` in other templates, which will make
|
@@ -15995,7 +16001,7 @@ enifed('ember-glimmer/component', ['exports', 'ember-utils', 'ember-views', 'emb
|
|
15995
16001
|
|
15996
16002
|
If you want to customize the component, in order to
|
15997
16003
|
handle events or actions, you implement a subclass
|
15998
|
-
of `
|
16004
|
+
of `Component` named after the name of the
|
15999
16005
|
component.
|
16000
16006
|
|
16001
16007
|
For example, you could implement the action
|
@@ -16076,11 +16082,13 @@ enifed('ember-glimmer/component', ['exports', 'ember-utils', 'ember-views', 'emb
|
|
16076
16082
|
|
16077
16083
|
```app/components/my-widget.js
|
16078
16084
|
import Component from '@ember/component';
|
16085
|
+
import { computed } from '@ember/object';
|
16079
16086
|
|
16080
16087
|
export default Component.extend({
|
16081
16088
|
classNameBindings: ['propertyA', 'propertyB'],
|
16089
|
+
|
16082
16090
|
propertyA: 'from-a',
|
16083
|
-
propertyB:
|
16091
|
+
propertyB: computed(function() {
|
16084
16092
|
if (someLogic) { return 'from-b'; }
|
16085
16093
|
})
|
16086
16094
|
});
|
@@ -16101,6 +16109,7 @@ enifed('ember-glimmer/component', ['exports', 'ember-utils', 'ember-views', 'emb
|
|
16101
16109
|
|
16102
16110
|
export default Component.extend({
|
16103
16111
|
classNameBindings: ['hovered'],
|
16112
|
+
|
16104
16113
|
hovered: true
|
16105
16114
|
});
|
16106
16115
|
```
|
@@ -16120,6 +16129,7 @@ enifed('ember-glimmer/component', ['exports', 'ember-utils', 'ember-views', 'emb
|
|
16120
16129
|
|
16121
16130
|
export default Component.extend({
|
16122
16131
|
classNameBindings: ['awesome:so-very-cool'],
|
16132
|
+
|
16123
16133
|
awesome: true
|
16124
16134
|
});
|
16125
16135
|
```
|
@@ -16138,6 +16148,7 @@ enifed('ember-glimmer/component', ['exports', 'ember-utils', 'ember-views', 'emb
|
|
16138
16148
|
|
16139
16149
|
export default Component.extend({
|
16140
16150
|
classNameBindings: ['isUrgent'],
|
16151
|
+
|
16141
16152
|
isUrgent: true
|
16142
16153
|
});
|
16143
16154
|
```
|
@@ -16153,10 +16164,12 @@ enifed('ember-glimmer/component', ['exports', 'ember-utils', 'ember-views', 'emb
|
|
16153
16164
|
|
16154
16165
|
```app/components/my-widget.js
|
16155
16166
|
import Component from '@ember/component';
|
16167
|
+
import EmberObject from '@ember/object';
|
16156
16168
|
|
16157
16169
|
export default Component.extend({
|
16158
16170
|
classNameBindings: ['messages.empty'],
|
16159
|
-
|
16171
|
+
|
16172
|
+
messages: EmberObject.create({
|
16160
16173
|
empty: true
|
16161
16174
|
})
|
16162
16175
|
});
|
@@ -16224,7 +16237,7 @@ enifed('ember-glimmer/component', ['exports', 'ember-utils', 'ember-views', 'emb
|
|
16224
16237
|
representation. If the value becomes `false` or `undefined` the class name
|
16225
16238
|
will be removed.
|
16226
16239
|
Both `classNames` and `classNameBindings` are concatenated properties. See
|
16227
|
-
[
|
16240
|
+
[EmberObject](/api/classes/Ember.Object.html) documentation for more
|
16228
16241
|
information about concatenated properties.
|
16229
16242
|
|
16230
16243
|
|
@@ -16241,6 +16254,7 @@ enifed('ember-glimmer/component', ['exports', 'ember-utils', 'ember-views', 'emb
|
|
16241
16254
|
export default Component.extend({
|
16242
16255
|
tagName: 'a',
|
16243
16256
|
attributeBindings: ['href'],
|
16257
|
+
|
16244
16258
|
href: 'http://google.com'
|
16245
16259
|
});
|
16246
16260
|
```
|
@@ -16260,6 +16274,7 @@ enifed('ember-glimmer/component', ['exports', 'ember-utils', 'ember-views', 'emb
|
|
16260
16274
|
export default Component.extend({
|
16261
16275
|
tagName: 'a',
|
16262
16276
|
attributeBindings: ['url:href'],
|
16277
|
+
|
16263
16278
|
url: 'http://google.com'
|
16264
16279
|
});
|
16265
16280
|
```
|
@@ -16279,6 +16294,7 @@ enifed('ember-glimmer/component', ['exports', 'ember-utils', 'ember-views', 'emb
|
|
16279
16294
|
export default Component.extend({
|
16280
16295
|
tagName: 'use',
|
16281
16296
|
attributeBindings: ['xlinkHref:xlink:href'],
|
16297
|
+
|
16282
16298
|
xlinkHref: '#triangle'
|
16283
16299
|
});
|
16284
16300
|
```
|
@@ -16298,6 +16314,7 @@ enifed('ember-glimmer/component', ['exports', 'ember-utils', 'ember-views', 'emb
|
|
16298
16314
|
export default Component.extend({
|
16299
16315
|
tagName: 'input',
|
16300
16316
|
attributeBindings: ['disabled'],
|
16317
|
+
|
16301
16318
|
disabled: false
|
16302
16319
|
});
|
16303
16320
|
```
|
@@ -16312,11 +16329,13 @@ enifed('ember-glimmer/component', ['exports', 'ember-utils', 'ember-views', 'emb
|
|
16312
16329
|
|
16313
16330
|
```app/components/my-text-input.js
|
16314
16331
|
import Component from '@ember/component';
|
16332
|
+
import { computed } from '@ember/object';
|
16315
16333
|
|
16316
16334
|
export default Component.extend({
|
16317
16335
|
tagName: 'input',
|
16318
16336
|
attributeBindings: ['disabled'],
|
16319
|
-
|
16337
|
+
|
16338
|
+
disabled: computed(function() {
|
16320
16339
|
if (someLogic) {
|
16321
16340
|
return true;
|
16322
16341
|
} else {
|
@@ -16341,7 +16360,7 @@ enifed('ember-glimmer/component', ['exports', 'ember-utils', 'ember-views', 'emb
|
|
16341
16360
|
|
16342
16361
|
Updates to the property of an attribute binding will result in automatic
|
16343
16362
|
update of the HTML attribute in the component's rendered HTML representation.
|
16344
|
-
`attributeBindings` is a concatenated property. See [
|
16363
|
+
`attributeBindings` is a concatenated property. See [EmberObject](/api/classes/Ember.Object.html)
|
16345
16364
|
documentation for more information about concatenated properties.
|
16346
16365
|
|
16347
16366
|
|
@@ -16461,7 +16480,6 @@ enifed('ember-glimmer/component', ['exports', 'ember-utils', 'ember-views', 'emb
|
|
16461
16480
|
* `drop`
|
16462
16481
|
|
16463
16482
|
@class Component
|
16464
|
-
@namespace Ember
|
16465
16483
|
@extends Ember.CoreView
|
16466
16484
|
@uses Ember.TargetActionSupport
|
16467
16485
|
@uses Ember.ClassNamesSupport
|
@@ -16582,17 +16600,19 @@ enifed('ember-glimmer/components/link-to', ['exports', 'ember-console', 'ember-d
|
|
16582
16600
|
'use strict';
|
16583
16601
|
|
16584
16602
|
/**
|
16585
|
-
|
16586
|
-
|
16603
|
+
@module @ember/routing
|
16604
|
+
*/
|
16605
|
+
/**
|
16606
|
+
`LinkComponent` renders an element whose `click` event triggers a
|
16607
|
+
transition of the application's instance of `Router` to
|
16587
16608
|
a supplied route by name.
|
16588
16609
|
|
16589
|
-
`
|
16610
|
+
`LinkComponent` components are invoked with {{#link-to}}. Properties
|
16590
16611
|
of this class can be overridden with `reopen` to customize application-wide
|
16591
16612
|
behavior.
|
16592
16613
|
|
16593
16614
|
@class LinkComponent
|
16594
|
-
@
|
16595
|
-
@extends Ember.Component
|
16615
|
+
@extends Component
|
16596
16616
|
@see {Ember.Templates.helpers.link-to}
|
16597
16617
|
@public
|
16598
16618
|
**/
|
@@ -17055,7 +17075,6 @@ enifed('ember-glimmer/components/link-to', ['exports', 'ember-console', 'ember-d
|
|
17055
17075
|
}
|
17056
17076
|
}); /**
|
17057
17077
|
@module ember
|
17058
|
-
@submodule ember-glimmer
|
17059
17078
|
*/
|
17060
17079
|
|
17061
17080
|
/**
|
@@ -17130,11 +17149,14 @@ enifed('ember-glimmer/components/link-to', ['exports', 'ember-console', 'ember-d
|
|
17130
17149
|
|
17131
17150
|
any passed value to `disabled` will disable it except `undefined`.
|
17132
17151
|
to ensure that only `true` disable the `link-to` component you can
|
17133
|
-
override the global behavior of `
|
17152
|
+
override the global behavior of `LinkComponent`.
|
17134
17153
|
|
17135
17154
|
```javascript
|
17136
|
-
|
17137
|
-
|
17155
|
+
import LinkComponent from '@ember/routing/link-component';
|
17156
|
+
import { computed } from '@ember/object';
|
17157
|
+
|
17158
|
+
LinkComponent.reopen({
|
17159
|
+
disabled: computed(function(key, value) {
|
17138
17160
|
if (value !== undefined) {
|
17139
17161
|
this.set('_isDisabled', value === true);
|
17140
17162
|
}
|
@@ -17150,7 +17172,7 @@ enifed('ember-glimmer/components/link-to', ['exports', 'ember-console', 'ember-d
|
|
17150
17172
|
fill the element's `href` property with a url that
|
17151
17173
|
matches the path to the supplied `routeName` for your
|
17152
17174
|
router's configured `Location` scheme, which defaults
|
17153
|
-
to
|
17175
|
+
to HashLocation.
|
17154
17176
|
|
17155
17177
|
### Handling current route
|
17156
17178
|
`{{link-to}}` will apply a CSS class name of 'active'
|
@@ -17315,7 +17337,7 @@ enifed('ember-glimmer/components/link-to', ['exports', 'ember-console', 'ember-d
|
|
17315
17337
|
```
|
17316
17338
|
|
17317
17339
|
### Overriding attributes
|
17318
|
-
You can override any given property of the `
|
17340
|
+
You can override any given property of the `LinkComponent`
|
17319
17341
|
that is generated by the `{{link-to}}` component by passing
|
17320
17342
|
key/value pairs, like so:
|
17321
17343
|
|
@@ -17325,18 +17347,20 @@ enifed('ember-glimmer/components/link-to', ['exports', 'ember-console', 'ember-d
|
|
17325
17347
|
{{/link-to}}
|
17326
17348
|
```
|
17327
17349
|
|
17328
|
-
See [
|
17350
|
+
See [LinkComponent](/api/classes/Ember.LinkComponent.html) for a
|
17329
17351
|
complete list of overrideable properties. Be sure to also
|
17330
17352
|
check out inherited properties of `LinkComponent`.
|
17331
17353
|
|
17332
17354
|
### Overriding Application-wide Defaults
|
17333
|
-
``{{link-to}}`` creates an instance of `
|
17355
|
+
``{{link-to}}`` creates an instance of `LinkComponent`
|
17334
17356
|
for rendering. To override options for your entire
|
17335
|
-
application, reopen `
|
17357
|
+
application, reopen `LinkComponent` and supply the
|
17336
17358
|
desired values:
|
17337
17359
|
|
17338
17360
|
``` javascript
|
17339
|
-
|
17361
|
+
import LinkComponent from '@ember/routing/link-component';
|
17362
|
+
|
17363
|
+
LinkComponent.reopen({
|
17340
17364
|
activeClass: "is-active",
|
17341
17365
|
tagName: 'li'
|
17342
17366
|
})
|
@@ -17346,18 +17370,19 @@ enifed('ember-glimmer/components/link-to', ['exports', 'ember-console', 'ember-d
|
|
17346
17370
|
this manner:
|
17347
17371
|
|
17348
17372
|
``` javascript
|
17349
|
-
|
17373
|
+
import LinkCompoennt from '@ember/routing/link-component';
|
17374
|
+
|
17375
|
+
LinkComponent.reopen({
|
17350
17376
|
eventName: 'customEventName'
|
17351
17377
|
});
|
17352
17378
|
```
|
17353
|
-
|
17354
17379
|
@method link-to
|
17355
17380
|
@for Ember.Templates.helpers
|
17356
17381
|
@param {String} routeName
|
17357
17382
|
@param {Object} [context]*
|
17358
17383
|
@param [options] {Object} Handlebars key/value pairs of options, you can override any property of Ember.LinkComponent
|
17359
17384
|
@return {String} HTML string
|
17360
|
-
@see {
|
17385
|
+
@see {LinkComponent}
|
17361
17386
|
@public
|
17362
17387
|
*/
|
17363
17388
|
|
@@ -17389,8 +17414,7 @@ enifed('ember-glimmer/components/text_field', ['exports', 'ember-metal', 'ember-
|
|
17389
17414
|
'use strict';
|
17390
17415
|
|
17391
17416
|
var inputTypes = Object.create(null); /**
|
17392
|
-
@module ember
|
17393
|
-
@submodule ember-views
|
17417
|
+
@module @ember/component
|
17394
17418
|
*/
|
17395
17419
|
|
17396
17420
|
function canSetTypeOfInput(type) {
|
@@ -17427,12 +17451,10 @@ enifed('ember-glimmer/components/text_field', ['exports', 'ember-metal', 'ember-
|
|
17427
17451
|
## Layout and LayoutName properties
|
17428
17452
|
|
17429
17453
|
Because HTML `input` elements are self closing `layout` and `layoutName`
|
17430
|
-
properties will not be applied.
|
17431
|
-
layout section for more information.
|
17454
|
+
properties will not be applied.
|
17432
17455
|
|
17433
17456
|
@class TextField
|
17434
|
-
@
|
17435
|
-
@extends Ember.Component
|
17457
|
+
@extends Component
|
17436
17458
|
@uses Ember.TextSupport
|
17437
17459
|
@public
|
17438
17460
|
*/
|
@@ -17922,13 +17944,12 @@ enifed('ember-glimmer/helper', ['exports', 'ember-utils', 'ember-runtime', '@gli
|
|
17922
17944
|
|
17923
17945
|
Additionally, class helpers can call `recompute` to force a new computation.
|
17924
17946
|
|
17925
|
-
@class
|
17947
|
+
@class Helper
|
17926
17948
|
@public
|
17927
17949
|
@since 1.13.0
|
17928
17950
|
*/
|
17929
17951
|
/**
|
17930
|
-
@module ember
|
17931
|
-
@submodule ember-glimmer
|
17952
|
+
@module @ember/component
|
17932
17953
|
*/
|
17933
17954
|
|
17934
17955
|
var Helper = _emberRuntime.FrameworkObject.extend({
|
@@ -17958,7 +17979,7 @@ enifed('ember-glimmer/helper', ['exports', 'ember-utils', 'ember-runtime', '@gli
|
|
17958
17979
|
});
|
17959
17980
|
|
17960
17981
|
/**
|
17961
|
-
In many cases, the ceremony of a full `
|
17982
|
+
In many cases, the ceremony of a full `Helper` class is not required.
|
17962
17983
|
The `helper` method create pure-function helpers without instances. For
|
17963
17984
|
example:
|
17964
17985
|
|
@@ -17975,6 +17996,7 @@ enifed('ember-glimmer/helper', ['exports', 'ember-utils', 'ember-runtime', '@gli
|
|
17975
17996
|
@static
|
17976
17997
|
@param {Function} helper The helper function
|
17977
17998
|
@method helper
|
17999
|
+
@for @ember/component/helper
|
17978
18000
|
@public
|
17979
18001
|
@since 1.13.0
|
17980
18002
|
*/
|
@@ -18121,7 +18143,6 @@ enifed('ember-glimmer/helpers/action', ['exports', 'ember-utils', 'ember-metal',
|
|
18121
18143
|
|
18122
18144
|
var INVOKE = exports.INVOKE = (0, _emberUtils.symbol)('INVOKE'); /**
|
18123
18145
|
@module ember
|
18124
|
-
@submodule ember-glimmer
|
18125
18146
|
*/
|
18126
18147
|
var ACTION = exports.ACTION = (0, _emberUtils.symbol)('ACTION');
|
18127
18148
|
|
@@ -18316,7 +18337,7 @@ enifed('ember-glimmer/helpers/action', ['exports', 'ember-utils', 'ember-metal',
|
|
18316
18337
|
If you need the default handler to trigger you should either register your
|
18317
18338
|
own event handler, or use event methods on your view class. See
|
18318
18339
|
["Responding to Browser Events"](/api/classes/Ember.Component#responding-to-browser-events)
|
18319
|
-
in the documentation for
|
18340
|
+
in the documentation for `Component` for more information.
|
18320
18341
|
|
18321
18342
|
### Specifying DOM event type
|
18322
18343
|
|
@@ -18521,8 +18542,8 @@ enifed('ember-glimmer/helpers/component', ['exports', 'ember-babel', 'ember-util
|
|
18521
18542
|
this.lastName = nameOrDef;
|
18522
18543
|
|
18523
18544
|
if (typeof nameOrDef === 'string') {
|
18524
|
-
(true && !(nameOrDef !== 'input') && (0, _emberDebug.assert)('You cannot use the input helper as a contextual helper. Please extend
|
18525
|
-
(true && !(nameOrDef !== 'textarea') && (0, _emberDebug.assert)('You cannot use the textarea helper as a contextual helper. Please extend
|
18545
|
+
(true && !(nameOrDef !== 'input') && (0, _emberDebug.assert)('You cannot use the input helper as a contextual helper. Please extend TextField or Checkbox to use it as a contextual component.', nameOrDef !== 'input'));
|
18546
|
+
(true && !(nameOrDef !== 'textarea') && (0, _emberDebug.assert)('You cannot use the textarea helper as a contextual helper. Please extend TextArea to use it as a contextual component.', nameOrDef !== 'textarea'));
|
18526
18547
|
|
18527
18548
|
definition = env.getComponentDefinition(nameOrDef, meta);
|
18528
18549
|
(true && !(definition) && (0, _emberDebug.assert)('The component helper cannot be used without a valid component name. You used "' + nameOrDef + '" via (component "' + nameOrDef + '")', definition));
|
@@ -18623,7 +18644,6 @@ enifed('ember-glimmer/helpers/concat', ['exports', 'ember-glimmer/utils/referenc
|
|
18623
18644
|
|
18624
18645
|
/**
|
18625
18646
|
@module ember
|
18626
|
-
@submodule ember-glimmer
|
18627
18647
|
*/
|
18628
18648
|
|
18629
18649
|
/**
|
@@ -18767,7 +18787,6 @@ enifed('ember-glimmer/helpers/each-in', ['exports', 'ember-utils'], function (ex
|
|
18767
18787
|
*/
|
18768
18788
|
var EACH_IN_REFERENCE = (0, _emberUtils.symbol)('EACH_IN'); /**
|
18769
18789
|
@module ember
|
18770
|
-
@submodule ember-glimmer
|
18771
18790
|
*/
|
18772
18791
|
function isEachIn(ref) {
|
18773
18792
|
return ref && ref[EACH_IN_REFERENCE];
|
@@ -18818,7 +18837,7 @@ enifed('ember-glimmer/helpers/get', ['exports', 'ember-babel', 'ember-metal', 'e
|
|
18818
18837
|
var path = this.lastPath = this.pathReference.value();
|
18819
18838
|
|
18820
18839
|
if (path !== lastPath) {
|
18821
|
-
if (path !== undefined && path !== null) {
|
18840
|
+
if (path !== undefined && path !== null && path !== '') {
|
18822
18841
|
var pathType = typeof path;
|
18823
18842
|
|
18824
18843
|
if (pathType === 'string') {
|
@@ -19018,7 +19037,7 @@ enifed('ember-glimmer/helpers/loc', ['exports', 'ember-glimmer/utils/references'
|
|
19018
19037
|
};
|
19019
19038
|
|
19020
19039
|
/**
|
19021
|
-
Calls [
|
19040
|
+
Calls [loc](/api/classes/Ember.String.html#method_loc) with the
|
19022
19041
|
provided string. This is a convenient way to localize text within a template.
|
19023
19042
|
For example:
|
19024
19043
|
|
@@ -19052,7 +19071,6 @@ enifed('ember-glimmer/helpers/loc', ['exports', 'ember-glimmer/utils/references'
|
|
19052
19071
|
|
19053
19072
|
/**
|
19054
19073
|
@module ember
|
19055
|
-
@submodule ember-glimmer
|
19056
19074
|
*/
|
19057
19075
|
function locHelper(_ref) {
|
19058
19076
|
var positional = _ref.positional;
|
@@ -19087,7 +19105,6 @@ enifed('ember-glimmer/helpers/log', ['exports', 'ember-glimmer/utils/references'
|
|
19087
19105
|
}
|
19088
19106
|
/**
|
19089
19107
|
@module ember
|
19090
|
-
@submodule ember-glimmer
|
19091
19108
|
*/
|
19092
19109
|
});
|
19093
19110
|
enifed('ember-glimmer/helpers/mut', ['exports', 'ember-utils', 'ember-debug', 'ember-glimmer/utils/references', 'ember-glimmer/helpers/action'], function (exports, _emberUtils, _emberDebug, _references, _action) {
|
@@ -19198,7 +19215,6 @@ enifed('ember-glimmer/helpers/mut', ['exports', 'ember-utils', 'ember-debug', 'e
|
|
19198
19215
|
*/
|
19199
19216
|
/**
|
19200
19217
|
@module ember
|
19201
|
-
@submodule ember-glimmer
|
19202
19218
|
*/
|
19203
19219
|
var MUT_REFERENCE = (0, _emberUtils.symbol)('MUT');
|
19204
19220
|
var SOURCE = (0, _emberUtils.symbol)('SOURCE');
|
@@ -19236,7 +19252,6 @@ enifed('ember-glimmer/helpers/query-param', ['exports', 'ember-utils', 'ember-gl
|
|
19236
19252
|
*/
|
19237
19253
|
/**
|
19238
19254
|
@module ember
|
19239
|
-
@submodule ember-glimmer
|
19240
19255
|
*/
|
19241
19256
|
function queryParams(_ref) {
|
19242
19257
|
var positional = _ref.positional,
|
@@ -20466,7 +20481,6 @@ enifed('ember-glimmer/syntax/input', ['exports', 'ember-debug', 'ember-glimmer/u
|
|
20466
20481
|
exports.inputMacro = inputMacro;
|
20467
20482
|
/**
|
20468
20483
|
@module ember
|
20469
|
-
@submodule ember-glimmer
|
20470
20484
|
*/
|
20471
20485
|
function buildTextFieldSyntax(params, hash, builder) {
|
20472
20486
|
var definition = builder.env.getComponentDefinition('-text-field', builder.meta.templateMeta);
|
@@ -20476,8 +20490,8 @@ enifed('ember-glimmer/syntax/input', ['exports', 'ember-debug', 'ember-glimmer/u
|
|
20476
20490
|
|
20477
20491
|
/**
|
20478
20492
|
The `{{input}}` helper lets you create an HTML `<input />` component.
|
20479
|
-
It causes an `
|
20480
|
-
see the [
|
20493
|
+
It causes an `TextField` component to be rendered. For more info,
|
20494
|
+
see the [TextField](/api/classes/Ember.TextField.html) docs and
|
20481
20495
|
the [templates guide](https://emberjs.com/guides/templates/input-helpers/).
|
20482
20496
|
|
20483
20497
|
```handlebars
|
@@ -20547,22 +20561,23 @@ enifed('ember-glimmer/syntax/input', ['exports', 'ember-debug', 'ember-glimmer/u
|
|
20547
20561
|
```
|
20548
20562
|
See more about [Text Support Actions](/api/classes/Ember.TextField.html)
|
20549
20563
|
|
20550
|
-
### Extending `
|
20564
|
+
### Extending `TextField`
|
20551
20565
|
|
20552
|
-
Internally, `{{input type="text"}}` creates an instance of `
|
20553
|
-
arguments from the helper to `
|
20566
|
+
Internally, `{{input type="text"}}` creates an instance of `TextField`, passing
|
20567
|
+
arguments from the helper to `TextField`'s `create` method. You can extend the
|
20554
20568
|
capabilities of text inputs in your applications by reopening this class. For example,
|
20555
20569
|
if you are building a Bootstrap project where `data-*` attributes are used, you
|
20556
20570
|
can add one to the `TextField`'s `attributeBindings` property:
|
20557
20571
|
|
20558
20572
|
```javascript
|
20559
|
-
|
20573
|
+
import TextField from '@ember/component/text-field';
|
20574
|
+
TextField.reopen({
|
20560
20575
|
attributeBindings: ['data-error']
|
20561
20576
|
});
|
20562
20577
|
```
|
20563
20578
|
|
20564
|
-
Keep in mind when writing `
|
20565
|
-
itself extends `
|
20579
|
+
Keep in mind when writing `TextField` subclasses that `TextField`
|
20580
|
+
itself extends `Component`. Expect isolated component semantics, not
|
20566
20581
|
legacy 1.x view semantics (like `controller` being present).
|
20567
20582
|
See more about [Ember components](/api/classes/Ember.Component.html)
|
20568
20583
|
|
@@ -20588,15 +20603,17 @@ enifed('ember-glimmer/syntax/input', ['exports', 'ember-debug', 'ember-glimmer/u
|
|
20588
20603
|
* `autofocus`
|
20589
20604
|
* `form`
|
20590
20605
|
|
20591
|
-
### Extending `
|
20606
|
+
### Extending `Checkbox`
|
20592
20607
|
|
20593
|
-
Internally, `{{input type="checkbox"}}` creates an instance of `
|
20594
|
-
arguments from the helper to `
|
20608
|
+
Internally, `{{input type="checkbox"}}` creates an instance of `Checkbox`, passing
|
20609
|
+
arguments from the helper to `Checkbox`'s `create` method. You can extend the
|
20595
20610
|
capablilties of checkbox inputs in your applications by reopening this class. For example,
|
20596
20611
|
if you wanted to add a css class to all checkboxes in your application:
|
20597
20612
|
|
20598
20613
|
```javascript
|
20599
|
-
|
20614
|
+
import Checkbox from '@ember/component/checkbox';
|
20615
|
+
|
20616
|
+
Checkbox.reopen({
|
20600
20617
|
classNames: ['my-app-checkbox']
|
20601
20618
|
});
|
20602
20619
|
```
|
@@ -20653,7 +20670,6 @@ enifed('ember-glimmer/syntax/mount', ['exports', 'ember-babel', 'ember-debug', '
|
|
20653
20670
|
exports.mountMacro = mountMacro;
|
20654
20671
|
/**
|
20655
20672
|
@module ember
|
20656
|
-
@submodule ember-glimmer
|
20657
20673
|
*/
|
20658
20674
|
function dynamicEngineFor(vm, args, meta) {
|
20659
20675
|
var env = vm.env;
|
@@ -20676,7 +20692,7 @@ enifed('ember-glimmer/syntax/mount', ['exports', 'ember-babel', 'ember-debug', '
|
|
20676
20692
|
|
20677
20693
|
Additionally, you can also pass in a `model` argument that will be
|
20678
20694
|
set as the engines model. This can be an existing object:
|
20679
|
-
|
20695
|
+
|
20680
20696
|
```
|
20681
20697
|
<div>
|
20682
20698
|
{{mount 'admin' model=userSettings}}
|
@@ -20906,7 +20922,6 @@ enifed('ember-glimmer/syntax/render', ['exports', '@glimmer/reference', 'ember-d
|
|
20906
20922
|
exports.renderMacro = renderMacro;
|
20907
20923
|
/**
|
20908
20924
|
@module ember
|
20909
|
-
@submodule ember-glimmer
|
20910
20925
|
*/
|
20911
20926
|
|
20912
20927
|
function makeComponentDefinition(vm, args) {
|
@@ -21104,7 +21119,7 @@ enifed("ember-glimmer/templates/empty", ["exports", "ember-glimmer/template"], f
|
|
21104
21119
|
enifed("ember-glimmer/templates/link-to", ["exports", "ember-glimmer/template"], function (exports, _template) {
|
21105
21120
|
"use strict";
|
21106
21121
|
|
21107
|
-
exports.default = (0, _template.default)({ "id": "
|
21122
|
+
exports.default = (0, _template.default)({ "id": "Gq3gxZ6f", "block": "{\"symbols\":[\"&default\"],\"statements\":[[4,\"if\",[[20,[\"linkTitle\"]]],null,{\"statements\":[[1,[18,\"linkTitle\"],false]],\"parameters\":[]},{\"statements\":[[11,1]],\"parameters\":[]}]],\"hasEval\":false}", "meta": { "moduleName": "ember-glimmer/templates/link-to.hbs" } });
|
21108
21123
|
});
|
21109
21124
|
enifed("ember-glimmer/templates/outlet", ["exports", "ember-glimmer/template"], function (exports, _template) {
|
21110
21125
|
"use strict";
|
@@ -21158,9 +21173,9 @@ enifed('ember-glimmer/utils/bindings', ['exports', 'ember-babel', '@glimmer/refe
|
|
21158
21173
|
type = _values$index[0];
|
21159
21174
|
|
21160
21175
|
|
21161
|
-
if (type === _wireFormat.Ops.Get) {
|
21176
|
+
if (type === _wireFormat.Ops.Get || type === _wireFormat.Ops.MaybeLocal) {
|
21162
21177
|
var getExp = values[index];
|
21163
|
-
var path = getExp[
|
21178
|
+
var path = getExp[getExp.length - 1];
|
21164
21179
|
var propName = path[path.length - 1];
|
21165
21180
|
hash[1][index] = [_wireFormat.Ops.Helper, ['-class'], [getExp, propName]];
|
21166
21181
|
}
|
@@ -21353,7 +21368,6 @@ enifed('ember-glimmer/utils/curly-component-state-bucket', ['exports', 'ember-ba
|
|
21353
21368
|
|
21354
21369
|
/**
|
21355
21370
|
@module ember
|
21356
|
-
@submodule ember-glimmer
|
21357
21371
|
*/
|
21358
21372
|
|
21359
21373
|
/**
|
@@ -22427,11 +22441,13 @@ enifed('ember-glimmer/utils/string', ['exports', 'ember-babel', 'ember-debug'],
|
|
22427
22441
|
ensure Ember's rendering layer does not escape the HTML.
|
22428
22442
|
|
22429
22443
|
```javascript
|
22430
|
-
|
22444
|
+
import { htmlSafe } from '@ember/string';
|
22445
|
+
|
22446
|
+
htmlSafe('<div>someString</div>')
|
22431
22447
|
```
|
22432
22448
|
|
22433
22449
|
@method htmlSafe
|
22434
|
-
@for
|
22450
|
+
@for @ember/string
|
22435
22451
|
@static
|
22436
22452
|
@return {Handlebars.SafeString} A string that will not be HTML escaped by Handlebars.
|
22437
22453
|
@public
|
@@ -22446,18 +22462,20 @@ enifed('ember-glimmer/utils/string', ['exports', 'ember-babel', 'ember-debug'],
|
|
22446
22462
|
}
|
22447
22463
|
|
22448
22464
|
/**
|
22449
|
-
Detects if a string was decorated using `
|
22465
|
+
Detects if a string was decorated using `htmlSafe`.
|
22450
22466
|
|
22451
22467
|
```javascript
|
22468
|
+
import { htmlSafe, isHTMLSafe } from '@ember/string';
|
22469
|
+
|
22452
22470
|
var plainString = 'plain string',
|
22453
|
-
safeString =
|
22471
|
+
safeString = htmlSafe('<div>someValue</div>');
|
22454
22472
|
|
22455
|
-
|
22456
|
-
|
22473
|
+
isHTMLSafe(plainString); // false
|
22474
|
+
isHTMLSafe(safeString); // true
|
22457
22475
|
```
|
22458
22476
|
|
22459
22477
|
@method isHTMLSafe
|
22460
|
-
@for
|
22478
|
+
@for @ember/string
|
22461
22479
|
@static
|
22462
22480
|
@return {Boolean} `true` if the string was decorated with `htmlSafe`, `false` otherwise.
|
22463
22481
|
@public
|
@@ -22672,7 +22690,6 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
22672
22690
|
|
22673
22691
|
/**
|
22674
22692
|
@module ember
|
22675
|
-
@submodule ember-metal
|
22676
22693
|
*/
|
22677
22694
|
|
22678
22695
|
/**
|
@@ -22855,8 +22872,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
22855
22872
|
}
|
22856
22873
|
|
22857
22874
|
/**
|
22858
|
-
@module ember
|
22859
|
-
@submodule ember-metal
|
22875
|
+
@module @ember/object
|
22860
22876
|
*/
|
22861
22877
|
/*
|
22862
22878
|
The event system uses a series of nested hashes to store listeners on an
|
@@ -22880,7 +22896,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
22880
22896
|
Add an event listener
|
22881
22897
|
|
22882
22898
|
@method addListener
|
22883
|
-
@
|
22899
|
+
@static
|
22900
|
+
@for @ember/object/events
|
22884
22901
|
@param obj
|
22885
22902
|
@param {String} eventName
|
22886
22903
|
@param {Object|Function} target A target object or a function
|
@@ -22889,7 +22906,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
22889
22906
|
@public
|
22890
22907
|
*/
|
22891
22908
|
function addListener(obj, eventName, target, method, once) {
|
22892
|
-
true && !(!!obj && !!eventName) && emberDebug.assert('You must pass at least an object and event name to
|
22909
|
+
true && !(!!obj && !!eventName) && emberDebug.assert('You must pass at least an object and event name to addListener', !!obj && !!eventName);
|
22893
22910
|
true && !(eventName !== 'didInitAttrs') && emberDebug.deprecate('didInitAttrs called in ' + (obj && obj.toString && obj.toString()) + '.', eventName !== 'didInitAttrs', {
|
22894
22911
|
id: 'ember-views.did-init-attrs',
|
22895
22912
|
until: '3.0.0',
|
@@ -22916,10 +22933,11 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
22916
22933
|
/**
|
22917
22934
|
Remove an event listener
|
22918
22935
|
|
22919
|
-
Arguments should match those passed to `
|
22936
|
+
Arguments should match those passed to `addListener`.
|
22920
22937
|
|
22921
22938
|
@method removeListener
|
22922
|
-
@
|
22939
|
+
@static
|
22940
|
+
@for @ember/object/events
|
22923
22941
|
@param obj
|
22924
22942
|
@param {String} eventName
|
22925
22943
|
@param {Object|Function} target A target object or a function
|
@@ -22927,7 +22945,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
22927
22945
|
@public
|
22928
22946
|
*/
|
22929
22947
|
function removeListener(obj, eventName, target, method) {
|
22930
|
-
true && !(!!obj && !!eventName) && emberDebug.assert('You must pass at least an object and event name to
|
22948
|
+
true && !(!!obj && !!eventName) && emberDebug.assert('You must pass at least an object and event name to removeListener', !!obj && !!eventName);
|
22931
22949
|
|
22932
22950
|
if (!method && 'function' === typeof target) {
|
22933
22951
|
method = target;
|
@@ -22947,7 +22965,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
22947
22965
|
setting that property.
|
22948
22966
|
|
22949
22967
|
@method suspendListener
|
22950
|
-
@
|
22968
|
+
@static
|
22969
|
+
@for @ember/object/events
|
22951
22970
|
|
22952
22971
|
@private
|
22953
22972
|
@param obj
|
@@ -22964,7 +22983,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
22964
22983
|
Suspends multiple listeners during a callback.
|
22965
22984
|
|
22966
22985
|
@method suspendListeners
|
22967
|
-
@
|
22986
|
+
@static
|
22987
|
+
@for @ember/object/events
|
22968
22988
|
|
22969
22989
|
@private
|
22970
22990
|
@param obj
|
@@ -22986,7 +23006,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
22986
23006
|
|
22987
23007
|
@private
|
22988
23008
|
@method watchedEvents
|
22989
|
-
@
|
23009
|
+
@static
|
23010
|
+
@for @ember/object/events
|
22990
23011
|
@param obj
|
22991
23012
|
*/
|
22992
23013
|
function watchedEvents(obj) {
|
@@ -23001,7 +23022,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
23001
23022
|
is not passed, the actions stored on the passed object are invoked.
|
23002
23023
|
|
23003
23024
|
@method sendEvent
|
23004
|
-
@
|
23025
|
+
@static
|
23026
|
+
@for @ember/object/events
|
23005
23027
|
@param obj
|
23006
23028
|
@param {String} eventName
|
23007
23029
|
@param {Array} params Optional parameters for each listener.
|
@@ -23058,7 +23080,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
23058
23080
|
/**
|
23059
23081
|
@private
|
23060
23082
|
@method hasListeners
|
23061
|
-
@
|
23083
|
+
@static
|
23084
|
+
@for @ember/object/events
|
23062
23085
|
@param obj
|
23063
23086
|
@param {String} eventName
|
23064
23087
|
*/
|
@@ -23074,7 +23097,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
23074
23097
|
/**
|
23075
23098
|
@private
|
23076
23099
|
@method listenersFor
|
23077
|
-
@
|
23100
|
+
@static
|
23101
|
+
@for @ember/object/events
|
23078
23102
|
@param obj
|
23079
23103
|
@param {String} eventName
|
23080
23104
|
*/
|
@@ -23102,19 +23126,24 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
23102
23126
|
|
23103
23127
|
|
23104
23128
|
``` javascript
|
23105
|
-
|
23106
|
-
|
23129
|
+
import EmberObject from '@ember/object';
|
23130
|
+
import { on } from '@ember/object/evented';
|
23131
|
+
import { sendEvent } from '@ember/object/events';
|
23132
|
+
|
23133
|
+
let Job = EmberObject.extend({
|
23134
|
+
logCompleted: on('completed', function() {
|
23107
23135
|
console.log('Job completed!');
|
23108
23136
|
})
|
23109
23137
|
});
|
23110
23138
|
|
23111
23139
|
let job = Job.create();
|
23112
23140
|
|
23113
|
-
|
23141
|
+
sendEvent(job, 'completed'); // Logs 'Job completed!'
|
23114
23142
|
```
|
23115
23143
|
|
23116
23144
|
@method on
|
23117
|
-
@
|
23145
|
+
@static
|
23146
|
+
@for @ember/object/evented
|
23118
23147
|
@param {String} eventNames*
|
23119
23148
|
@param {Function} func
|
23120
23149
|
@return func
|
@@ -23128,10 +23157,10 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
23128
23157
|
var func = args.pop();
|
23129
23158
|
var events = args;
|
23130
23159
|
|
23131
|
-
true && !(typeof func === 'function') && emberDebug.assert('
|
23160
|
+
true && !(typeof func === 'function') && emberDebug.assert('on expects function as last argument', typeof func === 'function');
|
23132
23161
|
true && !(events.length > 0 && events.every(function (p) {
|
23133
23162
|
return typeof p === 'string' && p.length;
|
23134
|
-
})) && emberDebug.assert('
|
23163
|
+
})) && emberDebug.assert('on called without valid event names', events.length > 0 && events.every(function (p) {
|
23135
23164
|
return typeof p === 'string' && p.length;
|
23136
23165
|
}));
|
23137
23166
|
|
@@ -23374,6 +23403,11 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
23374
23403
|
};
|
23375
23404
|
}
|
23376
23405
|
|
23406
|
+
/**
|
23407
|
+
@module ember
|
23408
|
+
@private
|
23409
|
+
*/
|
23410
|
+
|
23377
23411
|
var PROPERTY_DID_CHANGE = emberUtils.symbol('PROPERTY_DID_CHANGE');
|
23378
23412
|
|
23379
23413
|
var beforeObserverSet = new ObserverSet();
|
@@ -23682,7 +23716,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
23682
23716
|
}
|
23683
23717
|
|
23684
23718
|
/**
|
23685
|
-
@module ember
|
23719
|
+
@module @ember/object
|
23686
23720
|
*/
|
23687
23721
|
|
23688
23722
|
// ..........................................................
|
@@ -23726,7 +23760,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
23726
23760
|
if (!m.isInitialized(this)) {
|
23727
23761
|
m.writeValues(name, value);
|
23728
23762
|
} else {
|
23729
|
-
true && !false && emberDebug.assert('You must use
|
23763
|
+
true && !false && emberDebug.assert('You must use set() to set the `' + name + '` property (of ' + this + ') to `' + value + '`.', false);
|
23730
23764
|
}
|
23731
23765
|
}
|
23732
23766
|
|
@@ -23766,7 +23800,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
23766
23800
|
/**
|
23767
23801
|
NOTE: This is a low-level method used by other parts of the API. You almost
|
23768
23802
|
never want to call this method directly. Instead you should use
|
23769
|
-
`
|
23803
|
+
`mixin()` to define new properties.
|
23770
23804
|
|
23771
23805
|
Defines a property on an object. This method works much like the ES5
|
23772
23806
|
`Object.defineProperty()` method except that it can also accept computed
|
@@ -23780,8 +23814,10 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
23780
23814
|
## Examples
|
23781
23815
|
|
23782
23816
|
```javascript
|
23817
|
+
import { defineProperty, computed } from '@ember/object';
|
23818
|
+
|
23783
23819
|
// ES5 compatible mode
|
23784
|
-
|
23820
|
+
defineProperty(contact, 'firstName', {
|
23785
23821
|
writable: true,
|
23786
23822
|
configurable: false,
|
23787
23823
|
enumerable: true,
|
@@ -23789,17 +23825,17 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
23789
23825
|
});
|
23790
23826
|
|
23791
23827
|
// define a simple property
|
23792
|
-
|
23828
|
+
defineProperty(contact, 'lastName', undefined, 'Jolley');
|
23793
23829
|
|
23794
23830
|
// define a computed property
|
23795
|
-
|
23831
|
+
defineProperty(contact, 'fullName', computed('firstName', 'lastName', function() {
|
23796
23832
|
return this.firstName+' '+this.lastName;
|
23797
23833
|
}));
|
23798
23834
|
```
|
23799
23835
|
|
23800
23836
|
@private
|
23801
23837
|
@method defineProperty
|
23802
|
-
@for
|
23838
|
+
@for @ember/object
|
23803
23839
|
@param {Object} obj the object to define this property on. This may be a prototype.
|
23804
23840
|
@param {String} keyName the name of the property
|
23805
23841
|
@param {Descriptor} [desc] an instance of `Descriptor` (typically a
|
@@ -24467,7 +24503,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
24467
24503
|
}
|
24468
24504
|
|
24469
24505
|
/**
|
24470
|
-
@module ember
|
24506
|
+
@module ember
|
24471
24507
|
*/
|
24472
24508
|
|
24473
24509
|
var UNDEFINED = emberUtils.symbol('undefined');
|
@@ -25181,7 +25217,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
25181
25217
|
}
|
25182
25218
|
|
25183
25219
|
/**
|
25184
|
-
@module ember
|
25220
|
+
@module @ember/object
|
25185
25221
|
*/
|
25186
25222
|
|
25187
25223
|
var ALLOWABLE_TYPES = {
|
@@ -25220,7 +25256,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
25220
25256
|
an error.
|
25221
25257
|
|
25222
25258
|
@method get
|
25223
|
-
@for
|
25259
|
+
@for @ember/object
|
25260
|
+
@static
|
25224
25261
|
@param {Object} obj The object to retrieve from.
|
25225
25262
|
@param {String} keyName The property key to retrieve
|
25226
25263
|
@return {Object} the property value or `null`.
|
@@ -25279,7 +25316,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
25279
25316
|
```
|
25280
25317
|
|
25281
25318
|
@method getWithDefault
|
25282
|
-
@for
|
25319
|
+
@for @ember/object
|
25320
|
+
@static
|
25283
25321
|
@param {Object} obj The object to retrieve from.
|
25284
25322
|
@param {String} keyName The name of the property to retrieve
|
25285
25323
|
@param {Object} defaultValue The value to return if the property value is undefined
|
@@ -25295,6 +25333,9 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
25295
25333
|
return value;
|
25296
25334
|
}
|
25297
25335
|
|
25336
|
+
/**
|
25337
|
+
@module @ember/object
|
25338
|
+
*/
|
25298
25339
|
/**
|
25299
25340
|
Sets the value of a property on an object, respecting computed properties
|
25300
25341
|
and notifying observers and other listeners of the change. If the
|
@@ -25306,7 +25347,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
25306
25347
|
```
|
25307
25348
|
|
25308
25349
|
@method set
|
25309
|
-
@
|
25350
|
+
@static
|
25351
|
+
@for @ember/object
|
25310
25352
|
@param {Object} obj The object to modify.
|
25311
25353
|
@param {String} keyName The property key to set
|
25312
25354
|
@param {Object} value The value to set
|
@@ -25395,7 +25437,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
25395
25437
|
an object has been destroyed.
|
25396
25438
|
|
25397
25439
|
@method trySet
|
25398
|
-
@
|
25440
|
+
@static
|
25441
|
+
@for @ember/object
|
25399
25442
|
@param {Object} root The object to modify.
|
25400
25443
|
@param {String} path The property path to set
|
25401
25444
|
@param {Object} value The value to set
|
@@ -25406,8 +25449,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
25406
25449
|
}
|
25407
25450
|
|
25408
25451
|
/**
|
25409
|
-
@module ember
|
25410
|
-
@submodule ember-metal
|
25452
|
+
@module @ember/object
|
25411
25453
|
*/
|
25412
25454
|
|
25413
25455
|
var END_WITH_EACH_REGEX = /\.@each$/;
|
@@ -25421,19 +25463,22 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
25421
25463
|
Example
|
25422
25464
|
|
25423
25465
|
```js
|
25466
|
+
import { expandProperties } from '@ember/object/computed';
|
25467
|
+
|
25424
25468
|
function echo(arg){ console.log(arg); }
|
25425
25469
|
|
25426
|
-
|
25427
|
-
|
25428
|
-
|
25429
|
-
|
25430
|
-
|
25431
|
-
|
25432
|
-
|
25470
|
+
expandProperties('foo.bar', echo); //=> 'foo.bar'
|
25471
|
+
expandProperties('{foo,bar}', echo); //=> 'foo', 'bar'
|
25472
|
+
expandProperties('foo.{bar,baz}', echo); //=> 'foo.bar', 'foo.baz'
|
25473
|
+
expandProperties('{foo,bar}.baz', echo); //=> 'foo.baz', 'bar.baz'
|
25474
|
+
expandProperties('foo.{bar,baz}.[]', echo) //=> 'foo.bar.[]', 'foo.baz.[]'
|
25475
|
+
expandProperties('{foo,bar}.{spam,eggs}', echo) //=> 'foo.spam', 'foo.eggs', 'bar.spam', 'bar.eggs'
|
25476
|
+
expandProperties('{foo}.bar.{baz}') //=> 'foo.bar.baz'
|
25433
25477
|
```
|
25434
25478
|
|
25435
25479
|
@method expandProperties
|
25436
|
-
@
|
25480
|
+
@static
|
25481
|
+
@for @ember/object
|
25437
25482
|
@public
|
25438
25483
|
@param {String} pattern The property pattern to expand.
|
25439
25484
|
@param {Function} callback The callback to invoke. It is invoked once per
|
@@ -25475,7 +25520,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
25475
25520
|
}
|
25476
25521
|
|
25477
25522
|
/**
|
25478
|
-
@module ember
|
25523
|
+
@module ember
|
25479
25524
|
*/
|
25480
25525
|
/**
|
25481
25526
|
Starts watching a property on an object. Whenever the property changes,
|
@@ -25515,11 +25560,6 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
25515
25560
|
}
|
25516
25561
|
}
|
25517
25562
|
|
25518
|
-
/**
|
25519
|
-
@module ember
|
25520
|
-
@submodule ember-metal
|
25521
|
-
*/
|
25522
|
-
|
25523
25563
|
// ..........................................................
|
25524
25564
|
// DEPENDENT KEYS
|
25525
25565
|
//
|
@@ -25559,8 +25599,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
25559
25599
|
}
|
25560
25600
|
|
25561
25601
|
/**
|
25562
|
-
@module ember
|
25563
|
-
@submodule ember-metal
|
25602
|
+
@module @ember/object
|
25564
25603
|
*/
|
25565
25604
|
|
25566
25605
|
var DEEP_EACH_REGEX = /\.@each\.[^.]+\./;
|
@@ -25574,23 +25613,25 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
25574
25613
|
result to be recomputed if the dependencies are modified.
|
25575
25614
|
|
25576
25615
|
In the following example we declare a computed property - `fullName` - by calling
|
25577
|
-
|
25616
|
+
`computed` with property dependencies (`firstName` and `lastName`) as leading arguments and getter accessor function. The `fullName` getter function
|
25578
25617
|
will be called once (regardless of how many times it is accessed) as long
|
25579
25618
|
as its dependencies have not changed. Once `firstName` or `lastName` are updated
|
25580
25619
|
any future calls (or anything bound) to `fullName` will incorporate the new
|
25581
25620
|
values.
|
25582
25621
|
|
25583
25622
|
```javascript
|
25584
|
-
|
25623
|
+
import EmberObject, { computed } from '@ember/object';
|
25624
|
+
|
25625
|
+
let Person = EmberObject.extend({
|
25585
25626
|
// these will be supplied by `create`
|
25586
25627
|
firstName: null,
|
25587
25628
|
lastName: null,
|
25588
25629
|
|
25589
|
-
fullName:
|
25630
|
+
fullName: computed('firstName', 'lastName', function() {
|
25590
25631
|
let firstName = this.get('firstName'),
|
25591
25632
|
lastName = this.get('lastName');
|
25592
25633
|
|
25593
|
-
return firstName
|
25634
|
+
return `${firstName} ${lastName}`;
|
25594
25635
|
})
|
25595
25636
|
});
|
25596
25637
|
|
@@ -25607,12 +25648,14 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
25607
25648
|
value you want to set it to as arguments.
|
25608
25649
|
|
25609
25650
|
```javascript
|
25610
|
-
|
25651
|
+
import EmberObject, { computed } from '@ember/object';
|
25652
|
+
|
25653
|
+
let Person = EmberObject.extend({
|
25611
25654
|
// these will be supplied by `create`
|
25612
25655
|
firstName: null,
|
25613
25656
|
lastName: null,
|
25614
25657
|
|
25615
|
-
fullName:
|
25658
|
+
fullName: computed('firstName', 'lastName', {
|
25616
25659
|
get(key) {
|
25617
25660
|
let firstName = this.get('firstName'),
|
25618
25661
|
lastName = this.get('lastName');
|
@@ -25642,12 +25685,14 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
25642
25685
|
You can also mark computed property as `.readOnly()` and block all attempts to set it.
|
25643
25686
|
|
25644
25687
|
```javascript
|
25645
|
-
|
25688
|
+
import EmberObject, { computed } from '@ember/object';
|
25689
|
+
|
25690
|
+
let Person = EmberObject.extend({
|
25646
25691
|
// these will be supplied by `create`
|
25647
25692
|
firstName: null,
|
25648
25693
|
lastName: null,
|
25649
25694
|
|
25650
|
-
fullName:
|
25695
|
+
fullName: computed('firstName', 'lastName', {
|
25651
25696
|
get(key) {
|
25652
25697
|
let firstName = this.get('firstName');
|
25653
25698
|
let lastName = this.get('lastName');
|
@@ -25666,7 +25711,6 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
25666
25711
|
- [New computed syntax explained in "Ember 1.12 released" ](https://emberjs.com/blog/2015/05/13/ember-1-12-released.html#toc_new-computed-syntax)
|
25667
25712
|
|
25668
25713
|
@class ComputedProperty
|
25669
|
-
@namespace Ember
|
25670
25714
|
@public
|
25671
25715
|
*/
|
25672
25716
|
function ComputedProperty(config, opts) {
|
@@ -25675,10 +25719,10 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
25675
25719
|
if (hasGetterOnly) {
|
25676
25720
|
this._getter = config;
|
25677
25721
|
} else {
|
25678
|
-
true && !(typeof config === 'object' && !Array.isArray(config)) && emberDebug.assert('
|
25722
|
+
true && !(typeof config === 'object' && !Array.isArray(config)) && emberDebug.assert('computed expects a function or an object as last argument.', typeof config === 'object' && !Array.isArray(config));
|
25679
25723
|
true && !Object.keys(config).every(function (key) {
|
25680
25724
|
return key === 'get' || key === 'set';
|
25681
|
-
}) && emberDebug.assert('Config object passed to
|
25725
|
+
}) && emberDebug.assert('Config object passed to computed can only contain `get` or `set` keys.', Object.keys(config).every(function (key) {
|
25682
25726
|
return key === 'get' || key === 'set';
|
25683
25727
|
}));
|
25684
25728
|
|
@@ -25711,15 +25755,19 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
25711
25755
|
invalidation and notification when cached value is invalidated.
|
25712
25756
|
|
25713
25757
|
```javascript
|
25714
|
-
|
25715
|
-
|
25758
|
+
import EmberObject, { computed } from '@ember/object';
|
25759
|
+
|
25760
|
+
let outsideService = EmberObject.extend({
|
25761
|
+
value: computed(function() {
|
25716
25762
|
return OutsideService.getValue();
|
25717
25763
|
}).volatile()
|
25718
25764
|
}).create();
|
25719
25765
|
```
|
25720
25766
|
|
25721
25767
|
@method volatile
|
25722
|
-
@
|
25768
|
+
@static
|
25769
|
+
@for @ember/object/computed
|
25770
|
+
@return {ComputedProperty} this
|
25723
25771
|
@chainable
|
25724
25772
|
@public
|
25725
25773
|
*/
|
@@ -25733,8 +25781,10 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
25733
25781
|
mode the computed property will throw an error when set.
|
25734
25782
|
|
25735
25783
|
```javascript
|
25736
|
-
|
25737
|
-
|
25784
|
+
import EmberObject, { computed } from '@ember/object';
|
25785
|
+
|
25786
|
+
let Person = EmberObject.extend({
|
25787
|
+
guid: computed(function() {
|
25738
25788
|
return 'guid-guid-guid';
|
25739
25789
|
}).readOnly()
|
25740
25790
|
});
|
@@ -25745,7 +25795,9 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
25745
25795
|
```
|
25746
25796
|
|
25747
25797
|
@method readOnly
|
25748
|
-
@
|
25798
|
+
@static
|
25799
|
+
@for @ember/object/computed
|
25800
|
+
@return {ComputedProperty} this
|
25749
25801
|
@chainable
|
25750
25802
|
@public
|
25751
25803
|
*/
|
@@ -25761,13 +25813,15 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
25761
25813
|
arguments containing key paths that this computed property depends on.
|
25762
25814
|
|
25763
25815
|
```javascript
|
25764
|
-
|
25765
|
-
|
25816
|
+
import EmberObject, { computed } from '@ember/object';
|
25817
|
+
|
25818
|
+
let President = EmberObject.extend({
|
25819
|
+
fullName: computed('firstName', 'lastName', function() {
|
25766
25820
|
return this.get('firstName') + ' ' + this.get('lastName');
|
25767
25821
|
|
25768
25822
|
// Tell Ember that this computed property depends on firstName
|
25769
25823
|
// and lastName
|
25770
|
-
})
|
25824
|
+
})
|
25771
25825
|
});
|
25772
25826
|
|
25773
25827
|
let president = President.create({
|
@@ -25779,8 +25833,10 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
25779
25833
|
```
|
25780
25834
|
|
25781
25835
|
@method property
|
25836
|
+
@static
|
25837
|
+
@for @ember/object/computed
|
25782
25838
|
@param {String} path* zero or more property paths
|
25783
|
-
@return {
|
25839
|
+
@return {ComputedProperty} this
|
25784
25840
|
@chainable
|
25785
25841
|
@public
|
25786
25842
|
*/
|
@@ -25825,6 +25881,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
25825
25881
|
via the `metaForProperty()` function.
|
25826
25882
|
|
25827
25883
|
@method meta
|
25884
|
+
@static
|
25885
|
+
@for @ember/object/computed
|
25828
25886
|
@param {Object} meta
|
25829
25887
|
@chainable
|
25830
25888
|
@public
|
@@ -25981,13 +26039,15 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
25981
26039
|
/**
|
25982
26040
|
This helper returns a new property descriptor that wraps the passed
|
25983
26041
|
computed property function. You can use this helper to define properties
|
25984
|
-
with mixins or via `
|
26042
|
+
with mixins or via `defineProperty()`.
|
25985
26043
|
|
25986
26044
|
If you pass a function as an argument, it will be used as a getter. A computed
|
25987
26045
|
property defined in this way might look like this:
|
25988
26046
|
|
25989
26047
|
```js
|
25990
|
-
|
26048
|
+
import EmberObject, { computed } from '@ember/object';
|
26049
|
+
|
26050
|
+
let Person = EmberObject.extend({
|
25991
26051
|
init() {
|
25992
26052
|
this._super(...arguments);
|
25993
26053
|
|
@@ -25995,7 +26055,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
25995
26055
|
this.lastName = 'Jones';
|
25996
26056
|
},
|
25997
26057
|
|
25998
|
-
fullName:
|
26058
|
+
fullName: computed('firstName', 'lastName', function() {
|
25999
26059
|
return `${this.get('firstName')} ${this.get('lastName')}`;
|
26000
26060
|
})
|
26001
26061
|
});
|
@@ -26012,7 +26072,9 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
26012
26072
|
argument to provide both a getter and setter:
|
26013
26073
|
|
26014
26074
|
```js
|
26015
|
-
|
26075
|
+
import EmberObject, { computed } from '@ember/object';
|
26076
|
+
|
26077
|
+
let Person = EmberObject.extend({
|
26016
26078
|
init() {
|
26017
26079
|
this._super(...arguments);
|
26018
26080
|
|
@@ -26020,7 +26082,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
26020
26082
|
this.lastName = 'Jones';
|
26021
26083
|
},
|
26022
26084
|
|
26023
|
-
fullName:
|
26085
|
+
fullName: computed('firstName', 'lastName', {
|
26024
26086
|
get(key) {
|
26025
26087
|
return `${this.get('firstName')} ${this.get('lastName')}`;
|
26026
26088
|
},
|
@@ -26054,13 +26116,12 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
26054
26116
|
}.property('firstName', 'lastName')
|
26055
26117
|
```
|
26056
26118
|
|
26057
|
-
@
|
26058
|
-
@
|
26059
|
-
@constructor
|
26119
|
+
@method computed
|
26120
|
+
@for @ember/object
|
26060
26121
|
@static
|
26061
26122
|
@param {String} [dependentKeys*] Optional dependent keys that trigger this computed property.
|
26062
26123
|
@param {Function} func The computed property function.
|
26063
|
-
@return {
|
26124
|
+
@return {ComputedProperty} property descriptor instance
|
26064
26125
|
@public
|
26065
26126
|
*/
|
26066
26127
|
function computed() {
|
@@ -26086,7 +26147,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
26086
26147
|
it to be created.
|
26087
26148
|
|
26088
26149
|
@method cacheFor
|
26089
|
-
@
|
26150
|
+
@static
|
26151
|
+
@for @ember/object/internals
|
26090
26152
|
@param {Object} obj the object whose property you want to check
|
26091
26153
|
@param {String} key the name of the property whose cached value you want
|
26092
26154
|
to return
|
@@ -26208,18 +26270,24 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
26208
26270
|
AliasedProperty.prototype._meta = undefined;
|
26209
26271
|
AliasedProperty.prototype.meta = ComputedProperty.prototype.meta;
|
26210
26272
|
|
26273
|
+
/**
|
26274
|
+
@module @ember/polyfills
|
26275
|
+
*/
|
26211
26276
|
/**
|
26212
26277
|
Merge the contents of two objects together into the first object.
|
26213
26278
|
|
26214
26279
|
```javascript
|
26215
|
-
|
26280
|
+
import { merge } from '@ember/polyfills';
|
26281
|
+
|
26282
|
+
merge({ first: 'Tom' }, { last: 'Dale' }); // { first: 'Tom', last: 'Dale' }
|
26216
26283
|
var a = { first: 'Yehuda' };
|
26217
26284
|
var b = { last: 'Katz' };
|
26218
|
-
|
26285
|
+
merge(a, b); // a == { first: 'Yehuda', last: 'Katz' }, b == { last: 'Katz' }
|
26219
26286
|
```
|
26220
26287
|
|
26221
26288
|
@method merge
|
26222
|
-
@
|
26289
|
+
@static
|
26290
|
+
@for @ember/polyfills
|
26223
26291
|
@param {Object} original The object to merge into
|
26224
26292
|
@param {Object} updates The object to copy properties from
|
26225
26293
|
@return {Object}
|
@@ -26243,7 +26311,6 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
26243
26311
|
|
26244
26312
|
/**
|
26245
26313
|
@module ember
|
26246
|
-
@submodule ember-metal
|
26247
26314
|
*/
|
26248
26315
|
|
26249
26316
|
/**
|
@@ -26280,15 +26347,22 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
26280
26347
|
/* eslint no-console:off */
|
26281
26348
|
/* global console */
|
26282
26349
|
|
26350
|
+
/**
|
26351
|
+
@module @ember/instrumentation
|
26352
|
+
@private
|
26353
|
+
*/
|
26354
|
+
|
26283
26355
|
/**
|
26284
26356
|
The purpose of the Ember Instrumentation module is
|
26285
26357
|
to provide efficient, general-purpose instrumentation
|
26286
26358
|
for Ember.
|
26287
26359
|
|
26288
|
-
Subscribe to a listener by using `
|
26360
|
+
Subscribe to a listener by using `subscribe`:
|
26289
26361
|
|
26290
26362
|
```javascript
|
26291
|
-
|
26363
|
+
import { subscribe } from '@ember/instrumentation';
|
26364
|
+
|
26365
|
+
subscribe("render", {
|
26292
26366
|
before(name, timestamp, payload) {
|
26293
26367
|
|
26294
26368
|
},
|
@@ -26303,15 +26377,17 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
26303
26377
|
value will be passed as a fourth parameter to the `after`
|
26304
26378
|
callback.
|
26305
26379
|
|
26306
|
-
Instrument a block of code by using `
|
26380
|
+
Instrument a block of code by using `instrument`:
|
26307
26381
|
|
26308
26382
|
```javascript
|
26309
|
-
|
26383
|
+
import { instrument } from '@ember/instrumentation';
|
26384
|
+
|
26385
|
+
instrument("render.handlebars", payload, function() {
|
26310
26386
|
// rendering logic
|
26311
26387
|
}, binding);
|
26312
26388
|
```
|
26313
26389
|
|
26314
|
-
Event names passed to `
|
26390
|
+
Event names passed to `instrument` are namespaced
|
26315
26391
|
by periods, from more general to more specific. Subscribers
|
26316
26392
|
can listen for events by whatever level of granularity they
|
26317
26393
|
are interested in.
|
@@ -26323,7 +26399,6 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
26323
26399
|
even `render.handlebars.layout`.
|
26324
26400
|
|
26325
26401
|
@class Instrumentation
|
26326
|
-
@namespace Ember
|
26327
26402
|
@static
|
26328
26403
|
@private
|
26329
26404
|
*/
|
@@ -26358,8 +26433,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
26358
26433
|
Notifies event's subscribers, calls `before` and `after` hooks.
|
26359
26434
|
|
26360
26435
|
@method instrument
|
26361
|
-
@
|
26362
|
-
|
26436
|
+
@for @ember/instrumentation
|
26437
|
+
@static
|
26363
26438
|
@param {String} [name] Namespaced event name.
|
26364
26439
|
@param {Object} _payload
|
26365
26440
|
@param {Function} callback Function that you're instrumenting.
|
@@ -26465,7 +26540,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
26465
26540
|
Subscribes to a particular event or instrumented block of code.
|
26466
26541
|
|
26467
26542
|
@method subscribe
|
26468
|
-
@
|
26543
|
+
@for @ember/instrumentation
|
26544
|
+
@static
|
26469
26545
|
|
26470
26546
|
@param {String} [pattern] Namespaced event name.
|
26471
26547
|
@param {Object} [object] Before and After hooks.
|
@@ -26506,7 +26582,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
26506
26582
|
Unsubscribes from a particular event or instrumented block of code.
|
26507
26583
|
|
26508
26584
|
@method unsubscribe
|
26509
|
-
@
|
26585
|
+
@for @ember/instrumentation
|
26586
|
+
@static
|
26510
26587
|
|
26511
26588
|
@param {Object} [subscriber]
|
26512
26589
|
@private
|
@@ -26525,10 +26602,11 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
26525
26602
|
}
|
26526
26603
|
|
26527
26604
|
/**
|
26528
|
-
Resets `
|
26605
|
+
Resets `Instrumentation` by flushing list of subscribers.
|
26529
26606
|
|
26530
26607
|
@method reset
|
26531
|
-
@
|
26608
|
+
@for @ember/instrumentation
|
26609
|
+
@static
|
26532
26610
|
@private
|
26533
26611
|
*/
|
26534
26612
|
function reset() {
|
@@ -26593,6 +26671,9 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
26593
26671
|
}
|
26594
26672
|
}
|
26595
26673
|
|
26674
|
+
/**
|
26675
|
+
@module ember
|
26676
|
+
*/
|
26596
26677
|
var id = 0;
|
26597
26678
|
|
26598
26679
|
// Returns whether Type(value) is Object according to the terminology in the spec
|
@@ -26730,22 +26811,26 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
26730
26811
|
|
26731
26812
|
var weak_map = emberUtils.HAS_NATIVE_WEAKMAP ? WeakMap : WeakMapPolyfill;
|
26732
26813
|
|
26814
|
+
/**
|
26815
|
+
@module @ember/utils
|
26816
|
+
*/
|
26733
26817
|
/**
|
26734
26818
|
Returns true if the passed value is null or undefined. This avoids errors
|
26735
26819
|
from JSLint complaining about use of ==, which can be technically
|
26736
26820
|
confusing.
|
26737
26821
|
|
26738
26822
|
```javascript
|
26739
|
-
|
26740
|
-
|
26741
|
-
|
26742
|
-
|
26743
|
-
|
26744
|
-
|
26823
|
+
isNone(); // true
|
26824
|
+
isNone(null); // true
|
26825
|
+
isNone(undefined); // true
|
26826
|
+
isNone(''); // false
|
26827
|
+
isNone([]); // false
|
26828
|
+
isNone(function() {}); // false
|
26745
26829
|
```
|
26746
26830
|
|
26747
26831
|
@method isNone
|
26748
|
-
@
|
26832
|
+
@static
|
26833
|
+
@for @ember/utils
|
26749
26834
|
@param {Object} obj Value to test
|
26750
26835
|
@return {Boolean}
|
26751
26836
|
@public
|
@@ -26754,28 +26839,32 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
26754
26839
|
return obj === null || obj === undefined;
|
26755
26840
|
}
|
26756
26841
|
|
26842
|
+
/**
|
26843
|
+
@module @ember/utils
|
26844
|
+
*/
|
26757
26845
|
/**
|
26758
26846
|
Verifies that a value is `null` or `undefined`, an empty string, or an empty
|
26759
26847
|
array.
|
26760
26848
|
|
26761
|
-
Constrains the rules on `
|
26849
|
+
Constrains the rules on `isNone` by returning true for empty strings and
|
26762
26850
|
empty arrays.
|
26763
26851
|
|
26764
26852
|
```javascript
|
26765
|
-
|
26766
|
-
|
26767
|
-
|
26768
|
-
|
26769
|
-
|
26770
|
-
|
26771
|
-
|
26772
|
-
|
26773
|
-
|
26774
|
-
|
26853
|
+
isEmpty(); // true
|
26854
|
+
isEmpty(null); // true
|
26855
|
+
isEmpty(undefined); // true
|
26856
|
+
isEmpty(''); // true
|
26857
|
+
isEmpty([]); // true
|
26858
|
+
isEmpty({}); // false
|
26859
|
+
isEmpty('Adam Hawkins'); // false
|
26860
|
+
isEmpty([0,1,2]); // false
|
26861
|
+
isEmpty('\n\t'); // false
|
26862
|
+
isEmpty(' '); // false
|
26775
26863
|
```
|
26776
26864
|
|
26777
26865
|
@method isEmpty
|
26778
|
-
@
|
26866
|
+
@static
|
26867
|
+
@for @ember/utils
|
26779
26868
|
@param {Object} obj Value to test
|
26780
26869
|
@return {Boolean}
|
26781
26870
|
@public
|
@@ -26813,25 +26902,31 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
26813
26902
|
return false;
|
26814
26903
|
}
|
26815
26904
|
|
26905
|
+
/**
|
26906
|
+
@module @ember/utils
|
26907
|
+
*/
|
26816
26908
|
/**
|
26817
26909
|
A value is blank if it is empty or a whitespace string.
|
26818
26910
|
|
26819
26911
|
```javascript
|
26820
|
-
|
26821
|
-
|
26822
|
-
|
26823
|
-
|
26824
|
-
|
26825
|
-
|
26826
|
-
|
26827
|
-
|
26828
|
-
|
26829
|
-
|
26830
|
-
|
26912
|
+
import { isBlank } from '@ember/utils';
|
26913
|
+
|
26914
|
+
isBlank(); // true
|
26915
|
+
isBlank(null); // true
|
26916
|
+
isBlank(undefined); // true
|
26917
|
+
isBlank(''); // true
|
26918
|
+
isBlank([]); // true
|
26919
|
+
isBlank('\n\t'); // true
|
26920
|
+
isBlank(' '); // true
|
26921
|
+
isBlank({}); // false
|
26922
|
+
isBlank('\n\t Hello'); // false
|
26923
|
+
isBlank('Hello world'); // false
|
26924
|
+
isBlank([1,2,3]); // false
|
26831
26925
|
```
|
26832
26926
|
|
26833
26927
|
@method isBlank
|
26834
|
-
@
|
26928
|
+
@static
|
26929
|
+
@for @ember/utils
|
26835
26930
|
@param {Object} obj Value to test
|
26836
26931
|
@return {Boolean}
|
26837
26932
|
@since 1.5.0
|
@@ -26841,31 +26936,35 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
26841
26936
|
return isEmpty(obj) || typeof obj === 'string' && /\S/.test(obj) === false;
|
26842
26937
|
}
|
26843
26938
|
|
26939
|
+
/**
|
26940
|
+
@module @ember/utils
|
26941
|
+
*/
|
26844
26942
|
/**
|
26845
26943
|
A value is present if it not `isBlank`.
|
26846
26944
|
|
26847
26945
|
```javascript
|
26848
|
-
|
26849
|
-
|
26850
|
-
|
26851
|
-
|
26852
|
-
|
26853
|
-
|
26854
|
-
|
26855
|
-
|
26856
|
-
|
26857
|
-
|
26858
|
-
|
26859
|
-
|
26860
|
-
|
26861
|
-
|
26862
|
-
|
26863
|
-
|
26864
|
-
|
26946
|
+
isPresent(); // false
|
26947
|
+
isPresent(null); // false
|
26948
|
+
isPresent(undefined); // false
|
26949
|
+
isPresent(''); // false
|
26950
|
+
isPresent(' '); // false
|
26951
|
+
isPresent('\n\t'); // false
|
26952
|
+
isPresent([]); // false
|
26953
|
+
isPresent({ length: 0 }) // false
|
26954
|
+
isPresent(false); // true
|
26955
|
+
isPresent(true); // true
|
26956
|
+
isPresent('string'); // true
|
26957
|
+
isPresent(0); // true
|
26958
|
+
isPresent(function() {}) // true
|
26959
|
+
isPresent({}); // true
|
26960
|
+
isPresent(false); // true
|
26961
|
+
isPresent('\n\t Hello'); // true
|
26962
|
+
isPresent([1,2,3]); // true
|
26865
26963
|
```
|
26866
26964
|
|
26867
26965
|
@method isPresent
|
26868
|
-
@
|
26966
|
+
@static
|
26967
|
+
@for @ember/utils
|
26869
26968
|
@param {Object} obj Value to test
|
26870
26969
|
@return {Boolean}
|
26871
26970
|
@since 1.8.0
|
@@ -26896,6 +26995,9 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
26896
26995
|
onErrorMethod: 'onerror'
|
26897
26996
|
});
|
26898
26997
|
|
26998
|
+
/**
|
26999
|
+
@module @ember/runloop
|
27000
|
+
*/
|
26899
27001
|
// ..........................................................
|
26900
27002
|
// run - this is ideally the only public API the dev sees
|
26901
27003
|
//
|
@@ -26916,8 +27018,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
26916
27018
|
});
|
26917
27019
|
```
|
26918
27020
|
|
26919
|
-
@class
|
26920
|
-
@namespace Ember
|
27021
|
+
@class @ember/runloop
|
26921
27022
|
@static
|
26922
27023
|
@constructor
|
26923
27024
|
@param {Object} [target] target of method to call
|
@@ -26960,7 +27061,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
26960
27061
|
```
|
26961
27062
|
|
26962
27063
|
@method join
|
26963
|
-
@
|
27064
|
+
@static
|
27065
|
+
@for @ember/runloop
|
26964
27066
|
@param {Object} [target] target of method to call
|
26965
27067
|
@param {Function|String} method Method to invoke.
|
26966
27068
|
May be a function or a string. If you pass a string
|
@@ -27024,7 +27126,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
27024
27126
|
method be safely handled and executed by the Ember run loop.
|
27025
27127
|
|
27026
27128
|
@method bind
|
27027
|
-
@
|
27129
|
+
@static
|
27130
|
+
@for @ember/runloop
|
27028
27131
|
@param {Object} [target] target of method to call
|
27029
27132
|
@param {Function|String} method Method to invoke.
|
27030
27133
|
May be a function or a string. If you pass a string
|
@@ -27064,6 +27167,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
27064
27167
|
```
|
27065
27168
|
|
27066
27169
|
@method begin
|
27170
|
+
@static
|
27171
|
+
@for @ember/runloop
|
27067
27172
|
@return {void}
|
27068
27173
|
@public
|
27069
27174
|
*/
|
@@ -27083,6 +27188,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
27083
27188
|
```
|
27084
27189
|
|
27085
27190
|
@method end
|
27191
|
+
@static
|
27192
|
+
@for @ember/runloop
|
27086
27193
|
@return {void}
|
27087
27194
|
@public
|
27088
27195
|
*/
|
@@ -27130,6 +27237,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
27130
27237
|
```
|
27131
27238
|
|
27132
27239
|
@method schedule
|
27240
|
+
@static
|
27241
|
+
@for @ember/runloop
|
27133
27242
|
@param {String} queue The name of the queue to schedule against.
|
27134
27243
|
Default queues are 'sync' and 'actions'
|
27135
27244
|
@param {Object} [target] target object to use as the context when invoking a method.
|
@@ -27170,6 +27279,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
27170
27279
|
```
|
27171
27280
|
|
27172
27281
|
@method sync
|
27282
|
+
@static
|
27283
|
+
@for @ember/runloop
|
27173
27284
|
@return {void}
|
27174
27285
|
@private
|
27175
27286
|
*/
|
@@ -27196,6 +27307,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
27196
27307
|
```
|
27197
27308
|
|
27198
27309
|
@method later
|
27310
|
+
@static
|
27311
|
+
@for @ember/runloop
|
27199
27312
|
@param {Object} [target] target of method to invoke
|
27200
27313
|
@param {Function|String} method The method to invoke.
|
27201
27314
|
If you pass a string it will be resolved on the
|
@@ -27214,6 +27327,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
27214
27327
|
to calling `scheduleOnce` with the "actions" queue.
|
27215
27328
|
|
27216
27329
|
@method once
|
27330
|
+
@static
|
27331
|
+
@for @ember/runloop
|
27217
27332
|
@param {Object} [target] The target of the method to invoke.
|
27218
27333
|
@param {Function|String} method The method to invoke.
|
27219
27334
|
If you pass a string it will be resolved on the
|
@@ -27290,6 +27405,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
27290
27405
|
Available queues, and their order, can be found at `run.queues`
|
27291
27406
|
|
27292
27407
|
@method scheduleOnce
|
27408
|
+
@static
|
27409
|
+
@for @ember/runloop
|
27293
27410
|
@param {String} [queue] The name of the queue to schedule against. Default queues are 'sync' and 'actions'.
|
27294
27411
|
@param {Object} [target] The target of the method to invoke.
|
27295
27412
|
@param {Function|String} method The method to invoke.
|
@@ -27362,6 +27479,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
27362
27479
|
outside of the current run loop, i.e. with `run.next`.
|
27363
27480
|
|
27364
27481
|
@method next
|
27482
|
+
@static
|
27483
|
+
@for @ember/runloop
|
27365
27484
|
@param {Object} [target] target of method to invoke
|
27366
27485
|
@param {Function|String} method The method to invoke.
|
27367
27486
|
If you pass a string it will be resolved on the
|
@@ -27430,6 +27549,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
27430
27549
|
```
|
27431
27550
|
|
27432
27551
|
@method cancel
|
27552
|
+
@static
|
27553
|
+
@for @ember/runloop
|
27433
27554
|
@param {Object} timer Timer object to cancel
|
27434
27555
|
@return {Boolean} true if canceled or false/undefined if it wasn't found
|
27435
27556
|
@public
|
@@ -27496,6 +27617,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
27496
27617
|
```
|
27497
27618
|
|
27498
27619
|
@method debounce
|
27620
|
+
@static
|
27621
|
+
@for @ember/runloop
|
27499
27622
|
@param {Object} [target] target of method to invoke
|
27500
27623
|
@param {Function|String} method The method to invoke.
|
27501
27624
|
May be a function or a string. If you pass a string
|
@@ -27539,6 +27662,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
27539
27662
|
```
|
27540
27663
|
|
27541
27664
|
@method throttle
|
27665
|
+
@static
|
27666
|
+
@for @ember/runloop
|
27542
27667
|
@param {Object} [target] target of method to invoke
|
27543
27668
|
@param {Function|String} method The method to invoke.
|
27544
27669
|
May be a function or a string. If you pass a string
|
@@ -27570,6 +27695,9 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
27570
27695
|
}
|
27571
27696
|
};
|
27572
27697
|
|
27698
|
+
/**
|
27699
|
+
@module ember
|
27700
|
+
*/
|
27573
27701
|
/**
|
27574
27702
|
Helper class that allows you to register your library with Ember.
|
27575
27703
|
|
@@ -27643,7 +27771,6 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
27643
27771
|
|
27644
27772
|
/**
|
27645
27773
|
@module ember
|
27646
|
-
@submodule ember-metal
|
27647
27774
|
*/
|
27648
27775
|
|
27649
27776
|
/*
|
@@ -27651,7 +27778,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
27651
27778
|
which are often used as dictionaries, may only have Strings as keys.
|
27652
27779
|
|
27653
27780
|
Because Ember has a way to get a unique identifier for every object
|
27654
|
-
via `
|
27781
|
+
via `guidFor`, we can implement a performant Map with arbitrary
|
27655
27782
|
keys. Because it is commonly used in low-level bookkeeping, Map is
|
27656
27783
|
implemented as a pure JavaScript object for performance.
|
27657
27784
|
|
@@ -27661,7 +27788,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
27661
27788
|
forEach method for iteration.
|
27662
27789
|
|
27663
27790
|
Map is mocked out to look like an Ember object, so you can do
|
27664
|
-
`
|
27791
|
+
`EmberMap.create()` for symmetry with other Ember classes.
|
27665
27792
|
*/
|
27666
27793
|
function missingFunction(fn) {
|
27667
27794
|
throw new TypeError(Object.prototype.toString.call(fn) + ' is not a function');
|
@@ -27869,7 +27996,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
27869
27996
|
Internally, a Map has two data structures:
|
27870
27997
|
|
27871
27998
|
1. `keys`: an OrderedSet of all of the existing keys
|
27872
|
-
2. `values`: a JavaScript Object indexed by the `
|
27999
|
+
2. `values`: a JavaScript Object indexed by the `guidFor(key)`
|
27873
28000
|
|
27874
28001
|
When a key/value pair is added for the first time, we
|
27875
28002
|
add the key to the `keys` OrderedSet, and create or
|
@@ -28074,7 +28201,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
28074
28201
|
@param [options]
|
28075
28202
|
@param {*} [options.defaultValue]
|
28076
28203
|
@return {Ember.MapWithDefault|Ember.Map} If options are passed, returns
|
28077
|
-
`
|
28204
|
+
`MapWithDefault` otherwise returns `EmberMap`
|
28078
28205
|
@private
|
28079
28206
|
*/
|
28080
28207
|
MapWithDefault.create = function (options) {
|
@@ -28123,23 +28250,32 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
28123
28250
|
};
|
28124
28251
|
|
28125
28252
|
/**
|
28126
|
-
|
28253
|
+
@module @ember/object
|
28254
|
+
*/
|
28255
|
+
|
28256
|
+
/**
|
28257
|
+
To get multiple properties at once, call `getProperties`
|
28127
28258
|
with an object followed by a list of strings or an array:
|
28128
28259
|
|
28129
28260
|
```javascript
|
28130
|
-
|
28261
|
+
import { getProperties } from '@ember/object';
|
28262
|
+
|
28263
|
+
getProperties(record, 'firstName', 'lastName', 'zipCode');
|
28131
28264
|
// { firstName: 'John', lastName: 'Doe', zipCode: '10011' }
|
28132
28265
|
```
|
28133
28266
|
|
28134
28267
|
is equivalent to:
|
28135
28268
|
|
28136
28269
|
```javascript
|
28137
|
-
|
28270
|
+
import { getProperties } from '@ember/object';
|
28271
|
+
|
28272
|
+
getProperties(record, ['firstName', 'lastName', 'zipCode']);
|
28138
28273
|
// { firstName: 'John', lastName: 'Doe', zipCode: '10011' }
|
28139
28274
|
```
|
28140
28275
|
|
28141
28276
|
@method getProperties
|
28142
|
-
@
|
28277
|
+
@static
|
28278
|
+
@for @ember/object
|
28143
28279
|
@param {Object} obj
|
28144
28280
|
@param {String...|Array} list of keys to get
|
28145
28281
|
@return {Object}
|
@@ -28160,6 +28296,9 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
28160
28296
|
return ret;
|
28161
28297
|
}
|
28162
28298
|
|
28299
|
+
/**
|
28300
|
+
@module @ember/object
|
28301
|
+
*/
|
28163
28302
|
/**
|
28164
28303
|
Set a list of properties on an object. These properties are set inside
|
28165
28304
|
a single `beginPropertyChanges` and `endPropertyChanges` batch, so
|
@@ -28176,6 +28315,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
28176
28315
|
```
|
28177
28316
|
|
28178
28317
|
@method setProperties
|
28318
|
+
@static
|
28319
|
+
@for @ember/object
|
28179
28320
|
@param obj
|
28180
28321
|
@param {Object} properties
|
28181
28322
|
@return properties
|
@@ -28199,7 +28340,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
28199
28340
|
}
|
28200
28341
|
|
28201
28342
|
/**
|
28202
|
-
@module ember
|
28343
|
+
@module @ember/object
|
28203
28344
|
*/
|
28204
28345
|
|
28205
28346
|
var AFTER_OBSERVERS = ':change';
|
@@ -28215,7 +28356,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
28215
28356
|
|
28216
28357
|
/**
|
28217
28358
|
@method addObserver
|
28218
|
-
@
|
28359
|
+
@static
|
28360
|
+
@for @ember/object/observers
|
28219
28361
|
@param obj
|
28220
28362
|
@param {String} _path
|
28221
28363
|
@param {Object|Function} target
|
@@ -28235,7 +28377,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
28235
28377
|
|
28236
28378
|
/**
|
28237
28379
|
@method removeObserver
|
28238
|
-
@
|
28380
|
+
@static
|
28381
|
+
@for @ember/object/observers
|
28239
28382
|
@param obj
|
28240
28383
|
@param {String} path
|
28241
28384
|
@param {Object|Function} target
|
@@ -28251,7 +28394,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
28251
28394
|
|
28252
28395
|
/**
|
28253
28396
|
@method _addBeforeObserver
|
28254
|
-
@
|
28397
|
+
@static
|
28398
|
+
@for @ember/object/observers
|
28255
28399
|
@param obj
|
28256
28400
|
@param {String} path
|
28257
28401
|
@param {Object|Function} target
|
@@ -28281,7 +28425,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
28281
28425
|
|
28282
28426
|
/**
|
28283
28427
|
@method removeBeforeObserver
|
28284
|
-
@
|
28428
|
+
@static
|
28429
|
+
@for @ember/object/observers
|
28285
28430
|
@param obj
|
28286
28431
|
@param {String} path
|
28287
28432
|
@param {Object|Function} target
|
@@ -28298,7 +28443,6 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
28298
28443
|
|
28299
28444
|
/**
|
28300
28445
|
@module ember
|
28301
|
-
@submodule ember-metal
|
28302
28446
|
*/
|
28303
28447
|
|
28304
28448
|
// ..........................................................
|
@@ -28779,8 +28923,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
28779
28923
|
}
|
28780
28924
|
|
28781
28925
|
/**
|
28782
|
-
@module ember
|
28783
|
-
@submodule ember-metal
|
28926
|
+
@module @ember/object
|
28784
28927
|
*/
|
28785
28928
|
var a_concat = Array.prototype.concat;
|
28786
28929
|
var isArray = Array.isArray;
|
@@ -29156,7 +29299,6 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
29156
29299
|
|
29157
29300
|
/**
|
29158
29301
|
@method mixin
|
29159
|
-
@for Ember
|
29160
29302
|
@param obj
|
29161
29303
|
@param mixins*
|
29162
29304
|
@return obj
|
@@ -29172,21 +29314,28 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
29172
29314
|
}
|
29173
29315
|
|
29174
29316
|
/**
|
29175
|
-
The `
|
29317
|
+
The `Mixin` class allows you to create mixins, whose properties can be
|
29176
29318
|
added to other classes. For instance,
|
29177
29319
|
|
29178
29320
|
```javascript
|
29179
|
-
|
29321
|
+
import Mixin from '@ember/object/mixin';
|
29322
|
+
|
29323
|
+
const EditableMixin = Mixin.create({
|
29180
29324
|
edit() {
|
29181
29325
|
console.log('starting to edit');
|
29182
29326
|
this.set('isEditing', true);
|
29183
29327
|
},
|
29184
29328
|
isEditing: false
|
29185
29329
|
});
|
29330
|
+
```
|
29331
|
+
|
29332
|
+
```javascript
|
29333
|
+
import EmberObject from '@ember/object';
|
29334
|
+
import EditableMixin from '../mixins/editable';
|
29186
29335
|
|
29187
29336
|
// Mix mixins into classes by passing them as the first arguments to
|
29188
29337
|
// `.extend.`
|
29189
|
-
const Comment =
|
29338
|
+
const Comment = EmberObject.extend(EditableMixin, {
|
29190
29339
|
post: null
|
29191
29340
|
});
|
29192
29341
|
|
@@ -29197,8 +29346,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
29197
29346
|
comment.edit(); // outputs 'starting to edit'
|
29198
29347
|
```
|
29199
29348
|
|
29200
|
-
Note that Mixins are created with `
|
29201
|
-
`
|
29349
|
+
Note that Mixins are created with `Mixin.create`, not
|
29350
|
+
`Mixin.extend`.
|
29202
29351
|
|
29203
29352
|
Note that mixins extend a constructor's prototype so arrays and object literals
|
29204
29353
|
defined as properties will be shared amongst objects that implement the mixin.
|
@@ -29207,28 +29356,43 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
29207
29356
|
|
29208
29357
|
```javascript
|
29209
29358
|
// filters array will be shared amongst any object implementing mixin
|
29210
|
-
|
29211
|
-
|
29359
|
+
import Mixin from '@ember/object/mixin';
|
29360
|
+
import { A } from '@ember/array';
|
29361
|
+
|
29362
|
+
const FilterableMixin = Mixin.create({
|
29363
|
+
filters: A()
|
29212
29364
|
});
|
29365
|
+
```
|
29366
|
+
|
29367
|
+
```javascript
|
29368
|
+
import Mixin from '@ember/object/mixin';
|
29369
|
+
import { A } from '@ember/array';
|
29370
|
+
import { computed } from '@ember/object';
|
29213
29371
|
|
29214
29372
|
// filters will be a separate array for every object implementing the mixin
|
29215
|
-
const FilterableMixin =
|
29216
|
-
filters:
|
29217
|
-
return
|
29373
|
+
const FilterableMixin = Mixin.create({
|
29374
|
+
filters: computed(function() {
|
29375
|
+
return A();
|
29218
29376
|
})
|
29219
29377
|
});
|
29378
|
+
```
|
29379
|
+
|
29380
|
+
```javascript
|
29381
|
+
import Mixin from '@ember/object/mixin';
|
29382
|
+
import { A } from '@ember/array';
|
29220
29383
|
|
29221
29384
|
// filters will be created as a separate array during the object's initialization
|
29222
|
-
const Filterable =
|
29385
|
+
const Filterable = Mixin.create({
|
29386
|
+
filters: null,
|
29387
|
+
|
29223
29388
|
init() {
|
29224
29389
|
this._super(...arguments);
|
29225
|
-
this.set("filters",
|
29390
|
+
this.set("filters", A());
|
29226
29391
|
}
|
29227
29392
|
});
|
29228
29393
|
```
|
29229
29394
|
|
29230
29395
|
@class Mixin
|
29231
|
-
@namespace Ember
|
29232
29396
|
@public
|
29233
29397
|
*/
|
29234
29398
|
|
@@ -29273,6 +29437,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
29273
29437
|
|
29274
29438
|
/**
|
29275
29439
|
@method create
|
29440
|
+
@for @ember/object/mixin
|
29276
29441
|
@static
|
29277
29442
|
@param arguments*
|
29278
29443
|
@public
|
@@ -29291,7 +29456,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
29291
29456
|
};
|
29292
29457
|
|
29293
29458
|
// returns the mixins currently applied to the specified object
|
29294
|
-
// TODO: Make
|
29459
|
+
// TODO: Make `mixin`
|
29295
29460
|
|
29296
29461
|
|
29297
29462
|
Mixin.mixins = function mixins(obj) {
|
@@ -29510,7 +29675,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
29510
29675
|
```
|
29511
29676
|
|
29512
29677
|
@method aliasMethod
|
29513
|
-
@
|
29678
|
+
@static
|
29679
|
+
@for @ember/object
|
29514
29680
|
@param {String} methodName name of the method to alias
|
29515
29681
|
@public
|
29516
29682
|
*/
|
@@ -29526,8 +29692,11 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
29526
29692
|
Specify a method that observes property changes.
|
29527
29693
|
|
29528
29694
|
```javascript
|
29529
|
-
|
29530
|
-
|
29695
|
+
import EmberObject from '@ember/object';
|
29696
|
+
import { observer } from '@ember/object';
|
29697
|
+
|
29698
|
+
export default EmberObject.extend({
|
29699
|
+
valueObserver: observer('value', function() {
|
29531
29700
|
// Executes whenever the "value" property changes
|
29532
29701
|
})
|
29533
29702
|
});
|
@@ -29537,11 +29706,12 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
29537
29706
|
enabled.
|
29538
29707
|
|
29539
29708
|
@method observer
|
29540
|
-
@for
|
29709
|
+
@for @ember/object
|
29541
29710
|
@param {String} propertyNames*
|
29542
29711
|
@param {Function} func
|
29543
29712
|
@return func
|
29544
29713
|
@public
|
29714
|
+
@static
|
29545
29715
|
*/
|
29546
29716
|
function observer() {
|
29547
29717
|
var _paths = void 0,
|
@@ -29553,7 +29723,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
29553
29723
|
|
29554
29724
|
if (typeof args[args.length - 1] !== 'function') {
|
29555
29725
|
// revert to old, soft-deprecated argument ordering
|
29556
|
-
true && !false && emberDebug.deprecate('Passing the dependentKeys after the callback function in
|
29726
|
+
true && !false && emberDebug.deprecate('Passing the dependentKeys after the callback function in observer is deprecated. Ensure the callback function is the last argument.', false, { id: 'ember-metal.observer-argument-order', until: '3.0.0' });
|
29557
29727
|
|
29558
29728
|
func = args.shift();
|
29559
29729
|
_paths = args;
|
@@ -29562,10 +29732,10 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
29562
29732
|
_paths = args;
|
29563
29733
|
}
|
29564
29734
|
|
29565
|
-
true && !(typeof func === 'function') && emberDebug.assert('
|
29735
|
+
true && !(typeof func === 'function') && emberDebug.assert('observer called without a function', typeof func === 'function');
|
29566
29736
|
true && !(_paths.length > 0 && _paths.every(function (p) {
|
29567
29737
|
return typeof p === 'string' && p.length;
|
29568
|
-
})) && emberDebug.assert('
|
29738
|
+
})) && emberDebug.assert('observer called without valid path', _paths.length > 0 && _paths.every(function (p) {
|
29569
29739
|
return typeof p === 'string' && p.length;
|
29570
29740
|
}));
|
29571
29741
|
|
@@ -29586,15 +29756,17 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
29586
29756
|
Specify a method that observes property changes.
|
29587
29757
|
|
29588
29758
|
```javascript
|
29589
|
-
|
29759
|
+
import EmberObject from '@ember/object';
|
29760
|
+
|
29761
|
+
EmberObject.extend({
|
29590
29762
|
valueObserver: Ember.immediateObserver('value', function() {
|
29591
29763
|
// Executes whenever the "value" property changes
|
29592
29764
|
})
|
29593
29765
|
});
|
29594
29766
|
```
|
29595
29767
|
|
29596
|
-
In the future, `
|
29597
|
-
`
|
29768
|
+
In the future, `observer` may become asynchronous. In this event,
|
29769
|
+
`immediateObserver` will maintain the synchronous behavior.
|
29598
29770
|
|
29599
29771
|
Also available as `Function.prototype.observesImmediately` if prototype extensions are
|
29600
29772
|
enabled.
|
@@ -29603,12 +29775,12 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
29603
29775
|
@for Ember
|
29604
29776
|
@param {String} propertyNames*
|
29605
29777
|
@param {Function} func
|
29606
|
-
@deprecated Use `
|
29778
|
+
@deprecated Use `observer` instead.
|
29607
29779
|
@return func
|
29608
29780
|
@private
|
29609
29781
|
*/
|
29610
29782
|
function _immediateObserver() {
|
29611
|
-
true && !false && emberDebug.deprecate('Usage of `Ember.immediateObserver` is deprecated, use `
|
29783
|
+
true && !false && emberDebug.deprecate('Usage of `Ember.immediateObserver` is deprecated, use `observer` instead.', false, { id: 'ember-metal.immediate-observer', until: '3.0.0' });
|
29612
29784
|
|
29613
29785
|
for (var i = 0; i < arguments.length; i++) {
|
29614
29786
|
var arg = arguments[i];
|
@@ -29669,6 +29841,11 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
29669
29841
|
return func;
|
29670
29842
|
}
|
29671
29843
|
|
29844
|
+
/**
|
29845
|
+
@module ember
|
29846
|
+
@private
|
29847
|
+
*/
|
29848
|
+
|
29672
29849
|
/**
|
29673
29850
|
Read-only property that returns the result of a container lookup.
|
29674
29851
|
|
@@ -29692,7 +29869,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
29692
29869
|
var desc = this[keyName];
|
29693
29870
|
var owner = emberUtils.getOwner(this) || this.container; // fallback to `container` for backwards compat
|
29694
29871
|
|
29695
|
-
true && !(desc && desc.isDescriptor && desc.type) && emberDebug.assert('InjectedProperties should be defined with the
|
29872
|
+
true && !(desc && desc.isDescriptor && desc.type) && emberDebug.assert('InjectedProperties should be defined with the inject computed property macros.', desc && desc.isDescriptor && desc.type);
|
29696
29873
|
true && !owner && emberDebug.assert('Attempting to lookup an injected property on an object without a container, ensure that the object was instantiated via a container.', owner);
|
29697
29874
|
|
29698
29875
|
return owner.lookup(desc.type + ':' + (desc.name || keyName));
|
@@ -29782,11 +29959,6 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
29782
29959
|
return Descriptor$$1;
|
29783
29960
|
}(Descriptor);
|
29784
29961
|
|
29785
|
-
/**
|
29786
|
-
@module ember
|
29787
|
-
@submodule ember-metal
|
29788
|
-
*/
|
29789
|
-
|
29790
29962
|
exports['default'] = Ember;
|
29791
29963
|
exports.computed = computed;
|
29792
29964
|
exports.cacheFor = cacheFor;
|
@@ -29896,7 +30068,6 @@ enifed('ember-routing/ext/controller', ['exports', 'ember-metal', 'ember-runtime
|
|
29896
30068
|
|
29897
30069
|
/**
|
29898
30070
|
@module ember
|
29899
|
-
@submodule ember-routing
|
29900
30071
|
*/
|
29901
30072
|
|
29902
30073
|
_emberRuntime.ControllerMixin.reopen({
|
@@ -29974,11 +30145,6 @@ enifed('ember-routing/ext/controller', ['exports', 'ember-metal', 'ember-runtime
|
|
29974
30145
|
enifed('ember-routing/ext/run_loop', ['ember-metal'], function (_emberMetal) {
|
29975
30146
|
'use strict';
|
29976
30147
|
|
29977
|
-
/**
|
29978
|
-
@module ember
|
29979
|
-
@submodule ember-views
|
29980
|
-
*/
|
29981
|
-
|
29982
30148
|
// Add a new named queue after the 'actions' queue (where RSVP promises
|
29983
30149
|
// resolve), which is used in router transitions to prevent unnecessary
|
29984
30150
|
// loading state entry if all context promises resolve on the
|
@@ -30529,8 +30695,7 @@ enifed('ember-routing/location/history_location', ['exports', 'ember-metal', 'em
|
|
30529
30695
|
'use strict';
|
30530
30696
|
|
30531
30697
|
/**
|
30532
|
-
@module ember
|
30533
|
-
@submodule ember-routing
|
30698
|
+
@module @ember/routing
|
30534
30699
|
*/
|
30535
30700
|
|
30536
30701
|
var popstateFired = false;
|
@@ -30571,8 +30736,7 @@ enifed('ember-routing/location/history_location', ['exports', 'ember-metal', 'em
|
|
30571
30736
|
define.
|
30572
30737
|
|
30573
30738
|
@class HistoryLocation
|
30574
|
-
@
|
30575
|
-
@extends Ember.Object
|
30739
|
+
@extends EmberObject
|
30576
30740
|
@protected
|
30577
30741
|
*/
|
30578
30742
|
exports.default = _emberRuntime.Object.extend({
|
@@ -31045,7 +31209,6 @@ enifed('ember-routing/services/router', ['exports', 'ember-runtime', 'ember-rout
|
|
31045
31209
|
*/
|
31046
31210
|
/**
|
31047
31211
|
@module ember
|
31048
|
-
@submodule ember-routing
|
31049
31212
|
*/
|
31050
31213
|
|
31051
31214
|
var RouterService = _emberRuntime.Service.extend({
|
@@ -31335,7 +31498,6 @@ enifed("ember-routing/system/controller_for", ["exports"], function (exports) {
|
|
31335
31498
|
exports.default = controllerFor;
|
31336
31499
|
/**
|
31337
31500
|
@module ember
|
31338
|
-
@submodule ember-routing
|
31339
31501
|
*/
|
31340
31502
|
|
31341
31503
|
/**
|
@@ -31352,11 +31514,6 @@ enifed("ember-routing/system/controller_for", ["exports"], function (exports) {
|
|
31352
31514
|
enifed('ember-routing/system/dsl', ['exports', 'ember-babel', 'ember-utils', 'ember-debug'], function (exports, _emberBabel, _emberUtils, _emberDebug) {
|
31353
31515
|
'use strict';
|
31354
31516
|
|
31355
|
-
/**
|
31356
|
-
@module ember
|
31357
|
-
@submodule ember-routing
|
31358
|
-
*/
|
31359
|
-
|
31360
31517
|
var uuid = 0;
|
31361
31518
|
|
31362
31519
|
var DSL = function () {
|
@@ -31584,7 +31741,6 @@ enifed('ember-routing/system/generate_controller', ['exports', 'ember-metal', 'e
|
|
31584
31741
|
|
31585
31742
|
/**
|
31586
31743
|
@module ember
|
31587
|
-
@submodule ember-routing
|
31588
31744
|
*/
|
31589
31745
|
|
31590
31746
|
/**
|
@@ -31684,8 +31840,7 @@ enifed('ember-routing/system/route', ['exports', 'ember-utils', 'ember-metal', '
|
|
31684
31840
|
}
|
31685
31841
|
|
31686
31842
|
/**
|
31687
|
-
@module ember
|
31688
|
-
@submodule ember-routing
|
31843
|
+
@module @ember/routing
|
31689
31844
|
*/
|
31690
31845
|
|
31691
31846
|
/**
|
@@ -31693,10 +31848,9 @@ enifed('ember-routing/system/route', ['exports', 'ember-utils', 'ember-metal', '
|
|
31693
31848
|
the [routing guide](https://emberjs.com/guides/routing/) for documentation.
|
31694
31849
|
|
31695
31850
|
@class Route
|
31696
|
-
@
|
31697
|
-
@extends Ember.Object
|
31851
|
+
@extends EmberObject
|
31698
31852
|
@uses Ember.ActionHandler
|
31699
|
-
@uses
|
31853
|
+
@uses Evented
|
31700
31854
|
@since 1.0.0
|
31701
31855
|
@public
|
31702
31856
|
*/
|
@@ -31735,7 +31889,7 @@ enifed('ember-routing/system/route', ['exports', 'ember-utils', 'ember-metal', '
|
|
31735
31889
|
}
|
31736
31890
|
```
|
31737
31891
|
@property queryParams
|
31738
|
-
@for
|
31892
|
+
@for Route
|
31739
31893
|
@type Object
|
31740
31894
|
@since 1.6.0
|
31741
31895
|
@public
|
@@ -32122,7 +32276,7 @@ enifed('ember-routing/system/route', ['exports', 'ember-utils', 'ember-metal', '
|
|
32122
32276
|
```
|
32123
32277
|
@event loading
|
32124
32278
|
@param {Transition} transition
|
32125
|
-
@param {
|
32279
|
+
@param {Route} route The route that triggered the loading event
|
32126
32280
|
@since 1.2.0
|
32127
32281
|
@public
|
32128
32282
|
*/
|
@@ -32231,7 +32385,7 @@ enifed('ember-routing/system/route', ['exports', 'ember-utils', 'ember-metal', '
|
|
32231
32385
|
});
|
32232
32386
|
```
|
32233
32387
|
@property controller
|
32234
|
-
@type
|
32388
|
+
@type Controller
|
32235
32389
|
@since 1.6.0
|
32236
32390
|
@public
|
32237
32391
|
*/
|
@@ -32287,7 +32441,10 @@ enifed('ember-routing/system/route', ['exports', 'ember-utils', 'ember-metal', '
|
|
32287
32441
|
} else {
|
32288
32442
|
if (presentKey) {
|
32289
32443
|
svalue = params[presentKey];
|
32290
|
-
|
32444
|
+
|
32445
|
+
if (svalue !== undefined) {
|
32446
|
+
value = route.deserializeQueryParam(svalue, qp.urlKey, qp.type);
|
32447
|
+
}
|
32291
32448
|
} else {
|
32292
32449
|
// No QP provided; use default value.
|
32293
32450
|
svalue = qp.serializedDefaultValue;
|
@@ -33034,8 +33191,7 @@ enifed('ember-routing/system/router', ['exports', 'ember-utils', 'ember-console'
|
|
33034
33191
|
}
|
33035
33192
|
|
33036
33193
|
/**
|
33037
|
-
@module ember
|
33038
|
-
@submodule ember-routing
|
33194
|
+
@module @ember/routing
|
33039
33195
|
*/
|
33040
33196
|
|
33041
33197
|
var slice = Array.prototype.slice;
|
@@ -33046,9 +33202,8 @@ enifed('ember-routing/system/router', ['exports', 'ember-utils', 'ember-console'
|
|
33046
33202
|
the [routing guide](https://emberjs.com/guides/routing/) for documentation.
|
33047
33203
|
|
33048
33204
|
@class Router
|
33049
|
-
@
|
33050
|
-
@
|
33051
|
-
@uses Ember.Evented
|
33205
|
+
@extends EmberObject
|
33206
|
+
@uses Evented
|
33052
33207
|
@public
|
33053
33208
|
*/
|
33054
33209
|
var EmberRouter = _emberRuntime.Object.extend(_emberRuntime.Evented, {
|
@@ -33063,7 +33218,7 @@ enifed('ember-routing/system/router', ['exports', 'ember-utils', 'ember-console'
|
|
33063
33218
|
This value is defaulted to `auto` by the `locationType` setting of `/config/environment.js`
|
33064
33219
|
@property location
|
33065
33220
|
@default 'hash'
|
33066
|
-
@see {
|
33221
|
+
@see {Location}
|
33067
33222
|
@public
|
33068
33223
|
*/
|
33069
33224
|
location: 'hash',
|
@@ -33546,7 +33701,9 @@ enifed('ember-routing/system/router', ['exports', 'ember-utils', 'ember-console'
|
|
33546
33701
|
});
|
33547
33702
|
},
|
33548
33703
|
_serializeQueryParam: function (value, type) {
|
33549
|
-
if (
|
33704
|
+
if (value === null || value === undefined) {
|
33705
|
+
return value;
|
33706
|
+
} else if (type === 'array') {
|
33550
33707
|
return JSON.stringify(value);
|
33551
33708
|
}
|
33552
33709
|
|
@@ -33563,7 +33720,9 @@ enifed('ember-routing/system/router', ['exports', 'ember-utils', 'ember-console'
|
|
33563
33720
|
});
|
33564
33721
|
},
|
33565
33722
|
_deserializeQueryParam: function (value, defaultType) {
|
33566
|
-
if (
|
33723
|
+
if (value === null || value === undefined) {
|
33724
|
+
return value;
|
33725
|
+
} else if (defaultType === 'boolean') {
|
33567
33726
|
return value === 'true';
|
33568
33727
|
} else if (defaultType === 'number') {
|
33569
33728
|
return Number(value).valueOf();
|
@@ -33731,7 +33890,7 @@ enifed('ember-routing/system/router', ['exports', 'ember-utils', 'ember-console'
|
|
33731
33890
|
return true;
|
33732
33891
|
}
|
33733
33892
|
|
33734
|
-
if (_fromRouterService) {
|
33893
|
+
if (_fromRouterService && presentProp !== false) {
|
33735
33894
|
return false;
|
33736
33895
|
}
|
33737
33896
|
|
@@ -33739,7 +33898,7 @@ enifed('ember-routing/system/router', ['exports', 'ember-utils', 'ember-console'
|
|
33739
33898
|
}()) && (0, _emberDebug.assert)('You passed the `' + presentProp + '` query parameter during a transition into ' + qp.route.routeName + ', please update to ' + qp.urlKey, function () {
|
33740
33899
|
if (qp.urlKey === presentProp) {
|
33741
33900
|
return true;
|
33742
|
-
}if (_fromRouterService) {
|
33901
|
+
}if (_fromRouterService && presentProp !== false) {
|
33743
33902
|
return false;
|
33744
33903
|
}return true;
|
33745
33904
|
}()));
|
@@ -34012,7 +34171,7 @@ enifed('ember-routing/system/router', ['exports', 'ember-utils', 'ember-console'
|
|
34012
34171
|
|
34013
34172
|
@private
|
34014
34173
|
@param {Owner} owner
|
34015
|
-
@param {
|
34174
|
+
@param {Router} router
|
34016
34175
|
@param {String} localName
|
34017
34176
|
@param {String} fullName
|
34018
34177
|
@return {Boolean}
|
@@ -34740,8 +34899,7 @@ enifed('ember-runtime/computed/computed_macros', ['exports', 'ember-metal', 'emb
|
|
34740
34899
|
|
34741
34900
|
|
34742
34901
|
/**
|
34743
|
-
@module ember
|
34744
|
-
@submodule ember-metal
|
34902
|
+
@module @ember/object
|
34745
34903
|
*/
|
34746
34904
|
|
34747
34905
|
function expandPropertiesToArray(predicateName, properties) {
|
@@ -34809,9 +34967,10 @@ enifed('ember-runtime/computed/computed_macros', ['exports', 'ember-metal', 'emb
|
|
34809
34967
|
|
34810
34968
|
@since 1.6.0
|
34811
34969
|
@method empty
|
34812
|
-
@
|
34970
|
+
@static
|
34971
|
+
@for @ember/object/computed
|
34813
34972
|
@param {String} dependentKey
|
34814
|
-
@return {
|
34973
|
+
@return {ComputedProperty} computed property which negate
|
34815
34974
|
the original value for property
|
34816
34975
|
@public
|
34817
34976
|
*/
|
@@ -34840,9 +34999,10 @@ enifed('ember-runtime/computed/computed_macros', ['exports', 'ember-metal', 'emb
|
|
34840
34999
|
```
|
34841
35000
|
|
34842
35001
|
@method notEmpty
|
34843
|
-
@
|
35002
|
+
@static
|
35003
|
+
@for @ember/object/computed
|
34844
35004
|
@param {String} dependentKey
|
34845
|
-
@return {
|
35005
|
+
@return {ComputedProperty} computed property which returns true if
|
34846
35006
|
original value for property is not empty.
|
34847
35007
|
@public
|
34848
35008
|
*/
|
@@ -34874,9 +35034,10 @@ enifed('ember-runtime/computed/computed_macros', ['exports', 'ember-metal', 'emb
|
|
34874
35034
|
```
|
34875
35035
|
|
34876
35036
|
@method none
|
34877
|
-
@
|
35037
|
+
@static
|
35038
|
+
@for @ember/object/computed
|
34878
35039
|
@param {String} dependentKey
|
34879
|
-
@return {
|
35040
|
+
@return {ComputedProperty} computed property which
|
34880
35041
|
returns true if original value for property is null or undefined.
|
34881
35042
|
@public
|
34882
35043
|
*/
|
@@ -34905,9 +35066,10 @@ enifed('ember-runtime/computed/computed_macros', ['exports', 'ember-metal', 'emb
|
|
34905
35066
|
```
|
34906
35067
|
|
34907
35068
|
@method not
|
34908
|
-
@
|
35069
|
+
@static
|
35070
|
+
@for @ember/object/computed
|
34909
35071
|
@param {String} dependentKey
|
34910
|
-
@return {
|
35072
|
+
@return {ComputedProperty} computed property which returns
|
34911
35073
|
inverse of the original value for property
|
34912
35074
|
@public
|
34913
35075
|
*/
|
@@ -34938,9 +35100,10 @@ enifed('ember-runtime/computed/computed_macros', ['exports', 'ember-metal', 'emb
|
|
34938
35100
|
```
|
34939
35101
|
|
34940
35102
|
@method bool
|
34941
|
-
@
|
35103
|
+
@static
|
35104
|
+
@for @ember/object/computed
|
34942
35105
|
@param {String} dependentKey
|
34943
|
-
@return {
|
35106
|
+
@return {ComputedProperty} computed property which converts
|
34944
35107
|
to boolean the original value for property
|
34945
35108
|
@public
|
34946
35109
|
*/
|
@@ -34972,10 +35135,11 @@ enifed('ember-runtime/computed/computed_macros', ['exports', 'ember-metal', 'emb
|
|
34972
35135
|
```
|
34973
35136
|
|
34974
35137
|
@method match
|
34975
|
-
@
|
35138
|
+
@static
|
35139
|
+
@for @ember/object/computed
|
34976
35140
|
@param {String} dependentKey
|
34977
35141
|
@param {RegExp} regexp
|
34978
|
-
@return {
|
35142
|
+
@return {ComputedProperty} computed property which match
|
34979
35143
|
the original value for property against a given RegExp
|
34980
35144
|
@public
|
34981
35145
|
*/
|
@@ -35007,10 +35171,11 @@ enifed('ember-runtime/computed/computed_macros', ['exports', 'ember-metal', 'emb
|
|
35007
35171
|
```
|
35008
35172
|
|
35009
35173
|
@method equal
|
35010
|
-
@
|
35174
|
+
@static
|
35175
|
+
@for @ember/object/computed
|
35011
35176
|
@param {String} dependentKey
|
35012
35177
|
@param {String|Number|Object} value
|
35013
|
-
@return {
|
35178
|
+
@return {ComputedProperty} computed property which returns true if
|
35014
35179
|
the original value for property is equal to the given value.
|
35015
35180
|
@public
|
35016
35181
|
*/
|
@@ -35041,10 +35206,11 @@ enifed('ember-runtime/computed/computed_macros', ['exports', 'ember-metal', 'emb
|
|
35041
35206
|
```
|
35042
35207
|
|
35043
35208
|
@method gt
|
35044
|
-
@
|
35209
|
+
@static
|
35210
|
+
@for @ember/object/computed
|
35045
35211
|
@param {String} dependentKey
|
35046
35212
|
@param {Number} value
|
35047
|
-
@return {
|
35213
|
+
@return {ComputedProperty} computed property which returns true if
|
35048
35214
|
the original value for property is greater than given value.
|
35049
35215
|
@public
|
35050
35216
|
*/
|
@@ -35075,10 +35241,11 @@ enifed('ember-runtime/computed/computed_macros', ['exports', 'ember-metal', 'emb
|
|
35075
35241
|
```
|
35076
35242
|
|
35077
35243
|
@method gte
|
35078
|
-
@
|
35244
|
+
@static
|
35245
|
+
@for @ember/object/computed
|
35079
35246
|
@param {String} dependentKey
|
35080
35247
|
@param {Number} value
|
35081
|
-
@return {
|
35248
|
+
@return {ComputedProperty} computed property which returns true if
|
35082
35249
|
the original value for property is greater or equal then given value.
|
35083
35250
|
@public
|
35084
35251
|
*/
|
@@ -35109,10 +35276,11 @@ enifed('ember-runtime/computed/computed_macros', ['exports', 'ember-metal', 'emb
|
|
35109
35276
|
```
|
35110
35277
|
|
35111
35278
|
@method lt
|
35112
|
-
@
|
35279
|
+
@static
|
35280
|
+
@for @ember/object/computed
|
35113
35281
|
@param {String} dependentKey
|
35114
35282
|
@param {Number} value
|
35115
|
-
@return {
|
35283
|
+
@return {ComputedProperty} computed property which returns true if
|
35116
35284
|
the original value for property is less then given value.
|
35117
35285
|
@public
|
35118
35286
|
*/
|
@@ -35143,10 +35311,11 @@ enifed('ember-runtime/computed/computed_macros', ['exports', 'ember-metal', 'emb
|
|
35143
35311
|
```
|
35144
35312
|
|
35145
35313
|
@method lte
|
35146
|
-
@
|
35314
|
+
@static
|
35315
|
+
@for @ember/object/computed
|
35147
35316
|
@param {String} dependentKey
|
35148
35317
|
@param {Number} value
|
35149
|
-
@return {
|
35318
|
+
@return {ComputedProperty} computed property which returns true if
|
35150
35319
|
the original value for property is less or equal than given value.
|
35151
35320
|
@public
|
35152
35321
|
*/
|
@@ -35187,9 +35356,10 @@ enifed('ember-runtime/computed/computed_macros', ['exports', 'ember-metal', 'emb
|
|
35187
35356
|
```
|
35188
35357
|
|
35189
35358
|
@method and
|
35190
|
-
@
|
35359
|
+
@static
|
35360
|
+
@for @ember/object/computed
|
35191
35361
|
@param {String} dependentKey*
|
35192
|
-
@return {
|
35362
|
+
@return {ComputedProperty} computed property which performs
|
35193
35363
|
a logical `and` on the values of all the original values for properties.
|
35194
35364
|
@public
|
35195
35365
|
*/
|
@@ -35226,9 +35396,10 @@ enifed('ember-runtime/computed/computed_macros', ['exports', 'ember-metal', 'emb
|
|
35226
35396
|
```
|
35227
35397
|
|
35228
35398
|
@method or
|
35229
|
-
@
|
35399
|
+
@static
|
35400
|
+
@for @ember/object/computed
|
35230
35401
|
@param {String} dependentKey*
|
35231
|
-
@return {
|
35402
|
+
@return {ComputedProperty} computed property which performs
|
35232
35403
|
a logical `or` on the values of all the original values for properties.
|
35233
35404
|
@public
|
35234
35405
|
*/
|
@@ -35257,9 +35428,10 @@ enifed('ember-runtime/computed/computed_macros', ['exports', 'ember-metal', 'emb
|
|
35257
35428
|
```
|
35258
35429
|
|
35259
35430
|
@method alias
|
35260
|
-
@
|
35431
|
+
@static
|
35432
|
+
@for @ember/object/computed
|
35261
35433
|
@param {String} dependentKey
|
35262
|
-
@return {
|
35434
|
+
@return {ComputedProperty} computed property which creates an
|
35263
35435
|
alias to the original value for property.
|
35264
35436
|
@public
|
35265
35437
|
*/
|
@@ -35291,9 +35463,10 @@ enifed('ember-runtime/computed/computed_macros', ['exports', 'ember-metal', 'emb
|
|
35291
35463
|
```
|
35292
35464
|
|
35293
35465
|
@method oneWay
|
35294
|
-
@
|
35466
|
+
@static
|
35467
|
+
@for @ember/object/computed
|
35295
35468
|
@param {String} dependentKey
|
35296
|
-
@return {
|
35469
|
+
@return {ComputedProperty} computed property which creates a
|
35297
35470
|
one way computed property to the original value for property.
|
35298
35471
|
@public
|
35299
35472
|
*/
|
@@ -35306,9 +35479,10 @@ enifed('ember-runtime/computed/computed_macros', ['exports', 'ember-metal', 'emb
|
|
35306
35479
|
whose name is somewhat ambiguous as to which direction the data flows.
|
35307
35480
|
|
35308
35481
|
@method reads
|
35309
|
-
@
|
35482
|
+
@static
|
35483
|
+
@for @ember/object/computed
|
35310
35484
|
@param {String} dependentKey
|
35311
|
-
@return {
|
35485
|
+
@return {ComputedProperty} computed property which creates a
|
35312
35486
|
one way computed property to the original value for property.
|
35313
35487
|
@public
|
35314
35488
|
*/
|
@@ -35341,9 +35515,10 @@ enifed('ember-runtime/computed/computed_macros', ['exports', 'ember-metal', 'emb
|
|
35341
35515
|
```
|
35342
35516
|
|
35343
35517
|
@method readOnly
|
35344
|
-
@
|
35518
|
+
@static
|
35519
|
+
@for @ember/object/computed
|
35345
35520
|
@param {String} dependentKey
|
35346
|
-
@return {
|
35521
|
+
@return {ComputedProperty} computed property which creates a
|
35347
35522
|
one way computed property to the original value for property.
|
35348
35523
|
@since 1.5.0
|
35349
35524
|
@public
|
@@ -35373,10 +35548,11 @@ enifed('ember-runtime/computed/computed_macros', ['exports', 'ember-metal', 'emb
|
|
35373
35548
|
```
|
35374
35549
|
|
35375
35550
|
@method deprecatingAlias
|
35376
|
-
@
|
35551
|
+
@static
|
35552
|
+
@for @ember/object/computed
|
35377
35553
|
@param {String} dependentKey
|
35378
35554
|
@param {Object} options Options for `Ember.deprecate`.
|
35379
|
-
@return {
|
35555
|
+
@return {ComputedProperty} computed property which creates an
|
35380
35556
|
alias with a deprecation to the original value for property.
|
35381
35557
|
@since 1.7.0
|
35382
35558
|
@public
|
@@ -35415,8 +35591,7 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
|
|
35415
35591
|
exports.collect = collect;
|
35416
35592
|
exports.sort = sort;
|
35417
35593
|
/**
|
35418
|
-
@module ember
|
35419
|
-
@submodule ember-runtime
|
35594
|
+
@module @ember/object
|
35420
35595
|
*/
|
35421
35596
|
|
35422
35597
|
function reduceMacro(dependentKey, callback, initialValue) {
|
@@ -35470,7 +35645,8 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
|
|
35470
35645
|
in the dependent array.
|
35471
35646
|
|
35472
35647
|
@method sum
|
35473
|
-
@for
|
35648
|
+
@for @ember/object/computed
|
35649
|
+
@static
|
35474
35650
|
@param {String} dependentKey
|
35475
35651
|
@return {Ember.ComputedProperty} computes the sum of all values in the dependentKey's array
|
35476
35652
|
@since 1.4.0
|
@@ -35518,7 +35694,8 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
|
|
35518
35694
|
This behavior is consistent with `Math.max`.
|
35519
35695
|
|
35520
35696
|
@method max
|
35521
|
-
@for
|
35697
|
+
@for @ember/object/computed
|
35698
|
+
@static
|
35522
35699
|
@param {String} dependentKey
|
35523
35700
|
@return {Ember.ComputedProperty} computes the largest value in the dependentKey's array
|
35524
35701
|
@public
|
@@ -35565,7 +35742,8 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
|
|
35565
35742
|
This behavior is consistent with `Math.min`.
|
35566
35743
|
|
35567
35744
|
@method min
|
35568
|
-
@for
|
35745
|
+
@for @ember/object/computed
|
35746
|
+
@static
|
35569
35747
|
@param {String} dependentKey
|
35570
35748
|
@return {Ember.ComputedProperty} computes the smallest value in the dependentKey's array
|
35571
35749
|
@public
|
@@ -35604,7 +35782,8 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
|
|
35604
35782
|
```
|
35605
35783
|
|
35606
35784
|
@method map
|
35607
|
-
@for
|
35785
|
+
@for @ember/object/computed
|
35786
|
+
@static
|
35608
35787
|
@param {String} dependentKey
|
35609
35788
|
@param {Function} callback
|
35610
35789
|
@return {Ember.ComputedProperty} an array mapped via the callback
|
@@ -35640,7 +35819,8 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
|
|
35640
35819
|
```
|
35641
35820
|
|
35642
35821
|
@method mapBy
|
35643
|
-
@for
|
35822
|
+
@for @ember/object/computed
|
35823
|
+
@static
|
35644
35824
|
@param {String} dependentKey
|
35645
35825
|
@param {String} propertyKey
|
35646
35826
|
@return {Ember.ComputedProperty} an array mapped to the specified key
|
@@ -35708,7 +35888,8 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
|
|
35708
35888
|
|
35709
35889
|
|
35710
35890
|
@method filter
|
35711
|
-
@for
|
35891
|
+
@for @ember/object/computed
|
35892
|
+
@static
|
35712
35893
|
@param {String} dependentKey
|
35713
35894
|
@param {Function} callback
|
35714
35895
|
@return {Ember.ComputedProperty} the filtered array
|
@@ -35740,7 +35921,8 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
|
|
35740
35921
|
```
|
35741
35922
|
|
35742
35923
|
@method filterBy
|
35743
|
-
@for
|
35924
|
+
@for @ember/object/computed
|
35925
|
+
@static
|
35744
35926
|
@param {String} dependentKey
|
35745
35927
|
@param {String} propertyKey
|
35746
35928
|
@param {*} value
|
@@ -35787,7 +35969,8 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
|
|
35787
35969
|
```
|
35788
35970
|
|
35789
35971
|
@method uniq
|
35790
|
-
@for
|
35972
|
+
@for @ember/object/computed
|
35973
|
+
@static
|
35791
35974
|
@param {String} propertyKey*
|
35792
35975
|
@return {Ember.ComputedProperty} computes a new array with all the
|
35793
35976
|
unique elements from the dependent array
|
@@ -35840,7 +36023,8 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
|
|
35840
36023
|
```
|
35841
36024
|
|
35842
36025
|
@method uniqBy
|
35843
|
-
@for
|
36026
|
+
@for @ember/object/computed
|
36027
|
+
@static
|
35844
36028
|
@param {String} dependentKey
|
35845
36029
|
@param {String} propertyKey
|
35846
36030
|
@return {Ember.ComputedProperty} computes a new array with all the
|
@@ -35897,7 +36081,8 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
|
|
35897
36081
|
```
|
35898
36082
|
|
35899
36083
|
@method union
|
35900
|
-
@for
|
36084
|
+
@for @ember/object/computed
|
36085
|
+
@static
|
35901
36086
|
@param {String} propertyKey*
|
35902
36087
|
@return {Ember.ComputedProperty} computes a new array with all the
|
35903
36088
|
unique elements from the dependent array
|
@@ -35923,7 +36108,8 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
|
|
35923
36108
|
```
|
35924
36109
|
|
35925
36110
|
@method intersect
|
35926
|
-
@for
|
36111
|
+
@for @ember/object/computed
|
36112
|
+
@static
|
35927
36113
|
@param {String} propertyKey*
|
35928
36114
|
@return {Ember.ComputedProperty} computes a new array with all the
|
35929
36115
|
duplicated elements from the dependent arrays
|
@@ -35989,7 +36175,8 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
|
|
35989
36175
|
```
|
35990
36176
|
|
35991
36177
|
@method setDiff
|
35992
|
-
@for
|
36178
|
+
@for @ember/object/computed
|
36179
|
+
@static
|
35993
36180
|
@param {String} setAProperty
|
35994
36181
|
@param {String} setBProperty
|
35995
36182
|
@return {Ember.ComputedProperty} computes a new array with all the
|
@@ -36043,7 +36230,8 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
|
|
36043
36230
|
```
|
36044
36231
|
|
36045
36232
|
@method collect
|
36046
|
-
@for
|
36233
|
+
@for @ember/object/computed
|
36234
|
+
@static
|
36047
36235
|
@param {String} dependentKey*
|
36048
36236
|
@return {Ember.ComputedProperty} computed property which maps
|
36049
36237
|
values of all passed in properties to an array.
|
@@ -36127,7 +36315,8 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
|
|
36127
36315
|
```
|
36128
36316
|
|
36129
36317
|
@method sort
|
36130
|
-
@for
|
36318
|
+
@for @ember/object/computed
|
36319
|
+
@static
|
36131
36320
|
@param {String} itemsKey
|
36132
36321
|
@param {String or Function} sortDefinition a dependent key to an
|
36133
36322
|
array of sort properties (add `:desc` to the arrays sort properties to sort descending) or a function to use when sorting
|
@@ -36181,12 +36370,6 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
|
|
36181
36370
|
});
|
36182
36371
|
}
|
36183
36372
|
|
36184
|
-
var itemsKeyIsAtThis = itemsKey === '@this';
|
36185
|
-
var items = itemsKeyIsAtThis ? this : (0, _emberMetal.get)(this, itemsKey);
|
36186
|
-
if (!(0, _utils.isArray)(items)) {
|
36187
|
-
return (0, _native_array.A)();
|
36188
|
-
}
|
36189
|
-
|
36190
36373
|
function sortPropertyDidChange() {
|
36191
36374
|
this.notifyPropertyChange(key);
|
36192
36375
|
}
|
@@ -36202,6 +36385,12 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
|
|
36202
36385
|
|
36203
36386
|
activeObserversMap.set(this, activeObservers);
|
36204
36387
|
|
36388
|
+
var itemsKeyIsAtThis = itemsKey === '@this';
|
36389
|
+
var items = itemsKeyIsAtThis ? this : (0, _emberMetal.get)(this, itemsKey);
|
36390
|
+
if (!(0, _utils.isArray)(items)) {
|
36391
|
+
return (0, _native_array.A)();
|
36392
|
+
}
|
36393
|
+
|
36205
36394
|
return sortByNormalizedSortProperties(items, normalizedSortProperties);
|
36206
36395
|
}, { dependentKeys: [sortPropertiesKey + '.[]'], readOnly: true });
|
36207
36396
|
|
@@ -36242,14 +36431,12 @@ enifed('ember-runtime/controllers/controller', ['exports', 'ember-debug', 'ember
|
|
36242
36431
|
'use strict';
|
36243
36432
|
|
36244
36433
|
/**
|
36245
|
-
@module ember
|
36246
|
-
@submodule ember-runtime
|
36434
|
+
@module @ember/controller
|
36247
36435
|
*/
|
36248
36436
|
|
36249
36437
|
/**
|
36250
36438
|
@class Controller
|
36251
|
-
@
|
36252
|
-
@extends Ember.Object
|
36439
|
+
@extends EmberObject
|
36253
36440
|
@uses Ember.ControllerMixin
|
36254
36441
|
@public
|
36255
36442
|
*/
|
@@ -36279,21 +36466,12 @@ enifed('ember-runtime/controllers/controller', ['exports', 'ember-debug', 'ember
|
|
36279
36466
|
|
36280
36467
|
This example will create a `posts` property on the `post` controller that
|
36281
36468
|
looks up the `posts` controller in the container, making it easy to
|
36282
|
-
reference other controllers.
|
36469
|
+
reference other controllers.
|
36283
36470
|
|
36284
|
-
|
36285
|
-
|
36286
|
-
|
36287
|
-
|
36288
|
-
export default Controller.extend({
|
36289
|
-
needs: 'posts',
|
36290
|
-
posts: alias('controllers.posts')
|
36291
|
-
});
|
36292
|
-
```
|
36293
|
-
|
36294
|
-
@method controller
|
36471
|
+
@method inject
|
36472
|
+
@static
|
36473
|
+
@for @ember/controller
|
36295
36474
|
@since 1.10.0
|
36296
|
-
@for Ember.inject
|
36297
36475
|
@param {String} name (optional) name of the controller to inject, defaults
|
36298
36476
|
to the property's name
|
36299
36477
|
@return {Ember.InjectedProperty} injection descriptor instance
|
@@ -36308,7 +36486,9 @@ enifed('ember-runtime/copy', ['exports', 'ember-debug', 'ember-runtime/system/ob
|
|
36308
36486
|
|
36309
36487
|
exports.default = copy;
|
36310
36488
|
|
36311
|
-
|
36489
|
+
/**
|
36490
|
+
@module @ember/object
|
36491
|
+
*/
|
36312
36492
|
function _copy(obj, deep, seen, copies) {
|
36313
36493
|
var ret = void 0,
|
36314
36494
|
loc = void 0,
|
@@ -36382,7 +36562,8 @@ enifed('ember-runtime/copy', ['exports', 'ember-debug', 'ember-runtime/system/ob
|
|
36382
36562
|
is simply returned.
|
36383
36563
|
|
36384
36564
|
@method copy
|
36385
|
-
@
|
36565
|
+
@static
|
36566
|
+
@for @ember/object/internals
|
36386
36567
|
@param {Object} obj The object to clone
|
36387
36568
|
@param {Boolean} [deep=false] If true, a deep copy of the object is made.
|
36388
36569
|
@return {Object} The copied object
|
@@ -36406,7 +36587,6 @@ enifed('ember-runtime/ext/function', ['ember-environment', 'ember-metal', 'ember
|
|
36406
36587
|
|
36407
36588
|
var FunctionPrototype = Function.prototype; /**
|
36408
36589
|
@module ember
|
36409
|
-
@submodule ember-runtime
|
36410
36590
|
*/
|
36411
36591
|
|
36412
36592
|
if (_emberEnvironment.ENV.EXTEND_PROTOTYPES.Function) {
|
@@ -36480,7 +36660,7 @@ enifed('ember-runtime/ext/function', ['ember-environment', 'ember-metal', 'ember
|
|
36480
36660
|
});
|
36481
36661
|
```
|
36482
36662
|
In the future this method may become asynchronous.
|
36483
|
-
See `
|
36663
|
+
See `observer`.
|
36484
36664
|
@method observes
|
36485
36665
|
@for Function
|
36486
36666
|
@public
|
@@ -36622,8 +36802,7 @@ enifed('ember-runtime/ext/string', ['ember-environment', 'ember-runtime/system/s
|
|
36622
36802
|
'use strict';
|
36623
36803
|
|
36624
36804
|
/**
|
36625
|
-
@module ember
|
36626
|
-
@submodule ember-runtime
|
36805
|
+
@module @ember/string
|
36627
36806
|
*/
|
36628
36807
|
|
36629
36808
|
var StringPrototype = String.prototype;
|
@@ -36632,7 +36811,8 @@ enifed('ember-runtime/ext/string', ['ember-environment', 'ember-runtime/system/s
|
|
36632
36811
|
/**
|
36633
36812
|
See [Ember.String.fmt](/api/classes/Ember.String.html#method_fmt).
|
36634
36813
|
@method fmt
|
36635
|
-
@for
|
36814
|
+
@for @ember/string
|
36815
|
+
@static
|
36636
36816
|
@private
|
36637
36817
|
@deprecated
|
36638
36818
|
*/
|
@@ -36647,7 +36827,8 @@ enifed('ember-runtime/ext/string', ['ember-environment', 'ember-runtime/system/s
|
|
36647
36827
|
/**
|
36648
36828
|
See [Ember.String.w](/api/classes/Ember.String.html#method_w).
|
36649
36829
|
@method w
|
36650
|
-
@for
|
36830
|
+
@for @ember/string
|
36831
|
+
@static
|
36651
36832
|
@private
|
36652
36833
|
*/
|
36653
36834
|
StringPrototype.w = function () {
|
@@ -36657,7 +36838,8 @@ enifed('ember-runtime/ext/string', ['ember-environment', 'ember-runtime/system/s
|
|
36657
36838
|
/**
|
36658
36839
|
See [Ember.String.loc](/api/classes/Ember.String.html#method_loc).
|
36659
36840
|
@method loc
|
36660
|
-
@for
|
36841
|
+
@for @ember/string
|
36842
|
+
@static
|
36661
36843
|
@private
|
36662
36844
|
*/
|
36663
36845
|
StringPrototype.loc = function () {
|
@@ -36671,7 +36853,8 @@ enifed('ember-runtime/ext/string', ['ember-environment', 'ember-runtime/system/s
|
|
36671
36853
|
/**
|
36672
36854
|
See [Ember.String.camelize](/api/classes/Ember.String.html#method_camelize).
|
36673
36855
|
@method camelize
|
36674
|
-
@for
|
36856
|
+
@for @ember/string
|
36857
|
+
@static
|
36675
36858
|
@private
|
36676
36859
|
*/
|
36677
36860
|
StringPrototype.camelize = function () {
|
@@ -36681,7 +36864,8 @@ enifed('ember-runtime/ext/string', ['ember-environment', 'ember-runtime/system/s
|
|
36681
36864
|
/**
|
36682
36865
|
See [Ember.String.decamelize](/api/classes/Ember.String.html#method_decamelize).
|
36683
36866
|
@method decamelize
|
36684
|
-
@for
|
36867
|
+
@for @ember/string
|
36868
|
+
@static
|
36685
36869
|
@private
|
36686
36870
|
*/
|
36687
36871
|
StringPrototype.decamelize = function () {
|
@@ -36691,7 +36875,8 @@ enifed('ember-runtime/ext/string', ['ember-environment', 'ember-runtime/system/s
|
|
36691
36875
|
/**
|
36692
36876
|
See [Ember.String.dasherize](/api/classes/Ember.String.html#method_dasherize).
|
36693
36877
|
@method dasherize
|
36694
|
-
@for
|
36878
|
+
@for @ember/string
|
36879
|
+
@static
|
36695
36880
|
@private
|
36696
36881
|
*/
|
36697
36882
|
StringPrototype.dasherize = function () {
|
@@ -36701,7 +36886,8 @@ enifed('ember-runtime/ext/string', ['ember-environment', 'ember-runtime/system/s
|
|
36701
36886
|
/**
|
36702
36887
|
See [Ember.String.underscore](/api/classes/Ember.String.html#method_underscore).
|
36703
36888
|
@method underscore
|
36704
|
-
@for
|
36889
|
+
@for @ember/string
|
36890
|
+
@static
|
36705
36891
|
@private
|
36706
36892
|
*/
|
36707
36893
|
StringPrototype.underscore = function () {
|
@@ -36711,7 +36897,8 @@ enifed('ember-runtime/ext/string', ['ember-environment', 'ember-runtime/system/s
|
|
36711
36897
|
/**
|
36712
36898
|
See [Ember.String.classify](/api/classes/Ember.String.html#method_classify).
|
36713
36899
|
@method classify
|
36714
|
-
@for
|
36900
|
+
@for @ember/string
|
36901
|
+
@static
|
36715
36902
|
@private
|
36716
36903
|
*/
|
36717
36904
|
StringPrototype.classify = function () {
|
@@ -36721,7 +36908,8 @@ enifed('ember-runtime/ext/string', ['ember-environment', 'ember-runtime/system/s
|
|
36721
36908
|
/**
|
36722
36909
|
See [Ember.String.capitalize](/api/classes/Ember.String.html#method_capitalize).
|
36723
36910
|
@method capitalize
|
36724
|
-
@for
|
36911
|
+
@for @ember/string
|
36912
|
+
@static
|
36725
36913
|
@private
|
36726
36914
|
*/
|
36727
36915
|
StringPrototype.capitalize = function () {
|
@@ -37350,7 +37538,6 @@ enifed('ember-runtime/mixins/-proxy', ['exports', 'ember-babel', '@glimmer/refer
|
|
37350
37538
|
|
37351
37539
|
/**
|
37352
37540
|
@module ember
|
37353
|
-
@submodule ember-runtime
|
37354
37541
|
*/
|
37355
37542
|
|
37356
37543
|
function contentPropertyWillChange(content, contentKey) {
|
@@ -37479,7 +37666,6 @@ enifed('ember-runtime/mixins/action_handler', ['exports', 'ember-metal', 'ember-
|
|
37479
37666
|
*/
|
37480
37667
|
/**
|
37481
37668
|
@module ember
|
37482
|
-
@submodule ember-runtime
|
37483
37669
|
*/
|
37484
37670
|
|
37485
37671
|
var ActionHandler = _emberMetal.Mixin.create({
|
@@ -37714,15 +37900,14 @@ enifed('ember-runtime/mixins/array', ['exports', 'ember-utils', 'ember-metal', '
|
|
37714
37900
|
contents in a KVO-friendly way. You can also be notified whenever the
|
37715
37901
|
membership of an array changes by using `.observes('myArray.[]')`.
|
37716
37902
|
|
37717
|
-
To support `
|
37903
|
+
To support `EmberArray` in your own class, you must override two
|
37718
37904
|
primitives to use it: `length()` and `objectAt()`.
|
37719
37905
|
|
37720
|
-
Note that the
|
37721
|
-
mixin. All `
|
37906
|
+
Note that the EmberArray mixin also incorporates the `Ember.Enumerable`
|
37907
|
+
mixin. All `EmberArray`-like objects are also enumerable.
|
37722
37908
|
|
37723
|
-
@class
|
37724
|
-
@
|
37725
|
-
@uses Ember.Enumerable
|
37909
|
+
@class EmberArray
|
37910
|
+
@uses Enumerable
|
37726
37911
|
@since Ember 0.9.0
|
37727
37912
|
@public
|
37728
37913
|
*/
|
@@ -38023,7 +38208,6 @@ enifed('ember-runtime/mixins/container_proxy', ['exports', 'ember-metal'], funct
|
|
38023
38208
|
}
|
38024
38209
|
}; /**
|
38025
38210
|
@module ember
|
38026
|
-
@submodule ember-runtime
|
38027
38211
|
*/
|
38028
38212
|
exports.default = _emberMetal.Mixin.create(containerProxyMixin);
|
38029
38213
|
});
|
@@ -38112,8 +38296,8 @@ enifed('ember-runtime/mixins/enumerable', ['exports', 'ember-utils', 'ember-meta
|
|
38112
38296
|
'use strict';
|
38113
38297
|
|
38114
38298
|
var _emberA = void 0; /**
|
38115
|
-
@module ember
|
38116
|
-
@
|
38299
|
+
@module @ember/enumerable
|
38300
|
+
@private
|
38117
38301
|
*/
|
38118
38302
|
|
38119
38303
|
// ..........................................................
|
@@ -38182,7 +38366,6 @@ enifed('ember-runtime/mixins/enumerable', ['exports', 'ember-utils', 'ember-meta
|
|
38182
38366
|
JavaScript 1.8 API.
|
38183
38367
|
|
38184
38368
|
@class Enumerable
|
38185
|
-
@namespace Ember
|
38186
38369
|
@since Ember 0.9
|
38187
38370
|
@private
|
38188
38371
|
*/
|
@@ -38917,7 +39100,6 @@ enifed('ember-runtime/mixins/freezable', ['exports', 'ember-metal', 'ember-debug
|
|
38917
39100
|
*/
|
38918
39101
|
/**
|
38919
39102
|
@module ember
|
38920
|
-
@submodule ember-runtime
|
38921
39103
|
*/
|
38922
39104
|
|
38923
39105
|
var Freezable = exports.Freezable = _emberMetal.Mixin.create({
|
@@ -38961,8 +39143,7 @@ enifed('ember-runtime/mixins/mutable_array', ['exports', 'ember-metal', 'ember-r
|
|
38961
39143
|
|
38962
39144
|
exports.removeAt = removeAt;
|
38963
39145
|
/**
|
38964
|
-
@module ember
|
38965
|
-
@submodule ember-runtime
|
39146
|
+
@module @ember/array
|
38966
39147
|
*/
|
38967
39148
|
|
38968
39149
|
var OUT_OF_RANGE_EXCEPTION = 'Index out of range';
|
@@ -39005,8 +39186,7 @@ enifed('ember-runtime/mixins/mutable_array', ['exports', 'ember-metal', 'ember-r
|
|
39005
39186
|
modified, but if its underlying enumerable changes, it will change also.
|
39006
39187
|
|
39007
39188
|
@class MutableArray
|
39008
|
-
@
|
39009
|
-
@uses Ember.Array
|
39189
|
+
@uses EmberArray
|
39010
39190
|
@uses Ember.MutableEnumerable
|
39011
39191
|
@public
|
39012
39192
|
*/
|
@@ -39022,7 +39202,7 @@ enifed('ember-runtime/mixins/mutable_array', ['exports', 'ember-metal', 'ember-r
|
|
39022
39202
|
idx >= length, then append to the end of the array.
|
39023
39203
|
@param {Number} amt Number of elements that should be removed from
|
39024
39204
|
the array, starting at *idx*.
|
39025
|
-
@param {
|
39205
|
+
@param {EmberArray} objects An array of zero or more objects that should be
|
39026
39206
|
inserted into the array at *idx*
|
39027
39207
|
@public
|
39028
39208
|
*/
|
@@ -39063,7 +39243,7 @@ enifed('ember-runtime/mixins/mutable_array', ['exports', 'ember-metal', 'ember-r
|
|
39063
39243
|
@method insertAt
|
39064
39244
|
@param {Number} idx index of insert the object at.
|
39065
39245
|
@param {Object} object object to insert
|
39066
|
-
@return {
|
39246
|
+
@return {EmberArray} receiver
|
39067
39247
|
@public
|
39068
39248
|
*/
|
39069
39249
|
insertAt: function (idx, object) {
|
@@ -39090,7 +39270,7 @@ enifed('ember-runtime/mixins/mutable_array', ['exports', 'ember-metal', 'ember-r
|
|
39090
39270
|
@method removeAt
|
39091
39271
|
@param {Number} start index, start of range
|
39092
39272
|
@param {Number} len length of passing range
|
39093
|
-
@return {
|
39273
|
+
@return {EmberArray} receiver
|
39094
39274
|
@public
|
39095
39275
|
*/
|
39096
39276
|
removeAt: function (start, len) {
|
@@ -39125,8 +39305,8 @@ enifed('ember-runtime/mixins/mutable_array', ['exports', 'ember-metal', 'ember-r
|
|
39125
39305
|
colors.pushObjects(['yellow', 'orange']); // ['red', 'yellow', 'orange']
|
39126
39306
|
```
|
39127
39307
|
@method pushObjects
|
39128
|
-
@param {
|
39129
|
-
@return {
|
39308
|
+
@param {Enumerable} objects the objects to add
|
39309
|
+
@return {EmberArray} receiver
|
39130
39310
|
@public
|
39131
39311
|
*/
|
39132
39312
|
pushObjects: function (objects) {
|
@@ -39213,8 +39393,8 @@ enifed('ember-runtime/mixins/mutable_array', ['exports', 'ember-metal', 'ember-r
|
|
39213
39393
|
colors.unshiftObjects('yellow'); // Type Error: 'undefined' is not a function
|
39214
39394
|
```
|
39215
39395
|
@method unshiftObjects
|
39216
|
-
@param {
|
39217
|
-
@return {
|
39396
|
+
@param {Enumberable} objects the objects to add
|
39397
|
+
@return {EmberArray} receiver
|
39218
39398
|
@public
|
39219
39399
|
*/
|
39220
39400
|
unshiftObjects: function (objects) {
|
@@ -39227,7 +39407,7 @@ enifed('ember-runtime/mixins/mutable_array', ['exports', 'ember-metal', 'ember-r
|
|
39227
39407
|
Reverse objects in the array. Works just like `reverse()` but it is
|
39228
39408
|
KVO-compliant.
|
39229
39409
|
@method reverseObjects
|
39230
|
-
@return {
|
39410
|
+
@return {EmberArray} receiver
|
39231
39411
|
@public
|
39232
39412
|
*/
|
39233
39413
|
reverseObjects: function () {
|
@@ -39251,9 +39431,9 @@ enifed('ember-runtime/mixins/mutable_array', ['exports', 'ember-metal', 'ember-r
|
|
39251
39431
|
colors.setObjects([]); // []
|
39252
39432
|
```
|
39253
39433
|
@method setObjects
|
39254
|
-
@param {
|
39434
|
+
@param {EmberArray} objects array whose content will be used for replacing
|
39255
39435
|
the content of the receiver
|
39256
|
-
@return {
|
39436
|
+
@return {EmberArray} receiver with the new content
|
39257
39437
|
@public
|
39258
39438
|
*/
|
39259
39439
|
setObjects: function (objects) {
|
@@ -39281,7 +39461,7 @@ enifed('ember-runtime/mixins/mutable_array', ['exports', 'ember-metal', 'ember-r
|
|
39281
39461
|
```
|
39282
39462
|
@method removeObject
|
39283
39463
|
@param {*} obj object to remove
|
39284
|
-
@return {
|
39464
|
+
@return {EmberArray} receiver
|
39285
39465
|
@public
|
39286
39466
|
*/
|
39287
39467
|
removeObject: function (obj) {
|
@@ -39307,7 +39487,7 @@ enifed('ember-runtime/mixins/mutable_array', ['exports', 'ember-metal', 'ember-r
|
|
39307
39487
|
```
|
39308
39488
|
@method addObject
|
39309
39489
|
@param {*} obj object to add, if not already present
|
39310
|
-
@return {
|
39490
|
+
@return {EmberArray} receiver
|
39311
39491
|
@public
|
39312
39492
|
*/
|
39313
39493
|
addObject: function (obj) {
|
@@ -39523,7 +39703,7 @@ enifed('ember-runtime/mixins/observable', ['exports', 'ember-metal', 'ember-debu
|
|
39523
39703
|
`endPropertyChanges()` to deliver the deferred change notifications and end
|
39524
39704
|
deferring.
|
39525
39705
|
@method beginPropertyChanges
|
39526
|
-
@return {
|
39706
|
+
@return {Observable}
|
39527
39707
|
@private
|
39528
39708
|
*/
|
39529
39709
|
beginPropertyChanges: function () {
|
@@ -39541,7 +39721,7 @@ enifed('ember-runtime/mixins/observable', ['exports', 'ember-metal', 'ember-debu
|
|
39541
39721
|
notifications. When you are done making changes, call this method to
|
39542
39722
|
deliver the deferred change notifications and end deferring.
|
39543
39723
|
@method endPropertyChanges
|
39544
|
-
@return {
|
39724
|
+
@return {Observable}
|
39545
39725
|
@private
|
39546
39726
|
*/
|
39547
39727
|
endPropertyChanges: function () {
|
@@ -39563,7 +39743,7 @@ enifed('ember-runtime/mixins/observable', ['exports', 'ember-metal', 'ember-debu
|
|
39563
39743
|
like.
|
39564
39744
|
@method propertyWillChange
|
39565
39745
|
@param {String} keyName The property key that is about to change.
|
39566
|
-
@return {
|
39746
|
+
@return {Observable}
|
39567
39747
|
@private
|
39568
39748
|
*/
|
39569
39749
|
propertyWillChange: function (keyName) {
|
@@ -39585,7 +39765,7 @@ enifed('ember-runtime/mixins/observable', ['exports', 'ember-metal', 'ember-debu
|
|
39585
39765
|
like.
|
39586
39766
|
@method propertyDidChange
|
39587
39767
|
@param {String} keyName The property key that has just changed.
|
39588
|
-
@return {
|
39768
|
+
@return {Observable}
|
39589
39769
|
@private
|
39590
39770
|
*/
|
39591
39771
|
propertyDidChange: function (keyName) {
|
@@ -39599,7 +39779,7 @@ enifed('ember-runtime/mixins/observable', ['exports', 'ember-metal', 'ember-debu
|
|
39599
39779
|
succession.
|
39600
39780
|
@method notifyPropertyChange
|
39601
39781
|
@param {String} keyName The property key to be notified about.
|
39602
|
-
@return {
|
39782
|
+
@return {Observable}
|
39603
39783
|
@public
|
39604
39784
|
*/
|
39605
39785
|
notifyPropertyChange: function (keyName) {
|
@@ -39781,8 +39961,7 @@ enifed('ember-runtime/mixins/promise_proxy', ['exports', 'ember-metal', 'ember-d
|
|
39781
39961
|
'use strict';
|
39782
39962
|
|
39783
39963
|
/**
|
39784
|
-
@module ember
|
39785
|
-
@submodule ember-runtime
|
39964
|
+
@module @ember/object
|
39786
39965
|
*/
|
39787
39966
|
|
39788
39967
|
function tap(proxy, promise) {
|
@@ -39865,7 +40044,7 @@ enifed('ember-runtime/mixins/promise_proxy', ['exports', 'ember-metal', 'ember-d
|
|
39865
40044
|
proxy.get('lastName') //=> 'Penner'
|
39866
40045
|
```
|
39867
40046
|
|
39868
|
-
@class
|
40047
|
+
@class PromiseProxyMixin
|
39869
40048
|
@public
|
39870
40049
|
*/
|
39871
40050
|
exports.default = _emberMetal.Mixin.create({
|
@@ -40373,8 +40552,7 @@ enifed('ember-runtime/system/array_proxy', ['exports', 'ember-metal', 'ember-run
|
|
40373
40552
|
'use strict';
|
40374
40553
|
|
40375
40554
|
/**
|
40376
|
-
@module ember
|
40377
|
-
@submodule ember-runtime
|
40555
|
+
@module @ember/array
|
40378
40556
|
*/
|
40379
40557
|
|
40380
40558
|
var OUT_OF_RANGE_EXCEPTION = 'Index out of range';
|
@@ -40418,9 +40596,8 @@ enifed('ember-runtime/system/array_proxy', ['exports', 'ember-metal', 'ember-run
|
|
40418
40596
|
```
|
40419
40597
|
|
40420
40598
|
@class ArrayProxy
|
40421
|
-
@
|
40422
|
-
@
|
40423
|
-
@uses Ember.MutableArray
|
40599
|
+
@extends EmberObject
|
40600
|
+
@uses MutableArray
|
40424
40601
|
@public
|
40425
40602
|
*/
|
40426
40603
|
exports.default = _object.default.extend(_mutable_array.default, {
|
@@ -40429,7 +40606,7 @@ enifed('ember-runtime/system/array_proxy', ['exports', 'ember-metal', 'ember-run
|
|
40429
40606
|
The content array. Must be an object that implements `Ember.Array` and/or
|
40430
40607
|
`Ember.MutableArray.`
|
40431
40608
|
@property content
|
40432
|
-
@type
|
40609
|
+
@type EmberArray
|
40433
40610
|
@private
|
40434
40611
|
*/
|
40435
40612
|
content: null,
|
@@ -40466,7 +40643,7 @@ enifed('ember-runtime/system/array_proxy', ['exports', 'ember-metal', 'ember-run
|
|
40466
40643
|
@method replaceContent
|
40467
40644
|
@param {Number} idx The starting index
|
40468
40645
|
@param {Number} amt The number of items to remove from the content.
|
40469
|
-
@param {
|
40646
|
+
@param {EmberArray} objects Optional array of objects to insert or null if no
|
40470
40647
|
objects.
|
40471
40648
|
@return {void}
|
40472
40649
|
@private
|
@@ -40501,7 +40678,7 @@ enifed('ember-runtime/system/array_proxy', ['exports', 'ember-metal', 'ember-run
|
|
40501
40678
|
/**
|
40502
40679
|
Override to implement content array `willChange` observer.
|
40503
40680
|
@method contentArrayWillChange
|
40504
|
-
@param {
|
40681
|
+
@param {EmberArray} contentArray the content array
|
40505
40682
|
@param {Number} start starting index of the change
|
40506
40683
|
@param {Number} removeCount count of items removed
|
40507
40684
|
@param {Number} addCount count of items added
|
@@ -40511,7 +40688,7 @@ enifed('ember-runtime/system/array_proxy', ['exports', 'ember-metal', 'ember-run
|
|
40511
40688
|
/**
|
40512
40689
|
Override to implement content array `didChange` observer.
|
40513
40690
|
@method contentArrayDidChange
|
40514
|
-
@param {
|
40691
|
+
@param {EmberArray} contentArray the content array
|
40515
40692
|
@param {Number} start starting index of the change
|
40516
40693
|
@param {Number} removeCount count of items removed
|
40517
40694
|
@param {Number} addCount count of items added
|
@@ -40887,7 +41064,6 @@ enifed('ember-runtime/system/core_object', ['exports', 'ember-babel', 'ember-uti
|
|
40887
41064
|
|
40888
41065
|
/**
|
40889
41066
|
@class CoreObject
|
40890
|
-
@namespace Ember
|
40891
41067
|
@public
|
40892
41068
|
*/
|
40893
41069
|
var CoreObject = makeCtor();
|
@@ -41121,8 +41297,7 @@ enifed('ember-runtime/system/lazy_load', ['exports', 'ember-environment'], funct
|
|
41121
41297
|
|
41122
41298
|
|
41123
41299
|
/**
|
41124
|
-
@module ember
|
41125
|
-
@submodule ember-runtime
|
41300
|
+
@module @ember/application
|
41126
41301
|
*/
|
41127
41302
|
|
41128
41303
|
var loadHooks = _emberEnvironment.ENV.EMBER_LOAD_HOOKS || {}; /*globals CustomEvent */
|
@@ -41144,7 +41319,8 @@ enifed('ember-runtime/system/lazy_load', ['exports', 'ember-environment'], funct
|
|
41144
41319
|
```
|
41145
41320
|
|
41146
41321
|
@method onLoad
|
41147
|
-
@
|
41322
|
+
@static
|
41323
|
+
@for @ember/application
|
41148
41324
|
@param name {String} name of hook
|
41149
41325
|
@param callback {Function} callback to be called
|
41150
41326
|
@private
|
@@ -41165,7 +41341,8 @@ enifed('ember-runtime/system/lazy_load', ['exports', 'ember-environment'], funct
|
|
41165
41341
|
loading. Triggers any callbacks registered for this event.
|
41166
41342
|
|
41167
41343
|
@method runLoadHooks
|
41168
|
-
@
|
41344
|
+
@static
|
41345
|
+
@for @ember/application
|
41169
41346
|
@param name {String} name of hook
|
41170
41347
|
@param object {Object} object to pass to callbacks
|
41171
41348
|
@private
|
@@ -41196,7 +41373,6 @@ enifed('ember-runtime/system/namespace', ['exports', 'ember-utils', 'ember-metal
|
|
41196
41373
|
var searchDisabled = false; // Preloaded into namespaces
|
41197
41374
|
/**
|
41198
41375
|
@module ember
|
41199
|
-
@submodule ember-runtime
|
41200
41376
|
*/
|
41201
41377
|
function isSearchDisabled() {
|
41202
41378
|
return searchDisabled;
|
@@ -41434,10 +41610,9 @@ enifed('ember-runtime/system/native_array', ['exports', 'ember-metal', 'ember-en
|
|
41434
41610
|
false, this will be applied automatically. Otherwise you can apply the mixin
|
41435
41611
|
at anytime by calling `Ember.NativeArray.apply(Array.prototype)`.
|
41436
41612
|
|
41437
|
-
@class NativeArray
|
41438
|
-
@
|
41439
|
-
@uses
|
41440
|
-
@uses Ember.Observable
|
41613
|
+
@class Ember.NativeArray
|
41614
|
+
@uses MutableArray
|
41615
|
+
@uses Observable
|
41441
41616
|
@uses Ember.Copyable
|
41442
41617
|
@public
|
41443
41618
|
*/
|
@@ -41533,8 +41708,9 @@ enifed('ember-runtime/system/native_array', ['exports', 'ember-metal', 'ember-en
|
|
41533
41708
|
```
|
41534
41709
|
|
41535
41710
|
@method A
|
41536
|
-
@
|
41537
|
-
@
|
41711
|
+
@static
|
41712
|
+
@for @ember/array
|
41713
|
+
@return {EmberArray}
|
41538
41714
|
@public
|
41539
41715
|
*/
|
41540
41716
|
var A = void 0;
|
@@ -41573,10 +41749,9 @@ enifed('ember-runtime/system/object', ['exports', 'ember-utils', 'ember-metal',
|
|
41573
41749
|
of `Ember.CoreObject` with the `Ember.Observable` mixin applied. For details,
|
41574
41750
|
see the documentation for each of these.
|
41575
41751
|
|
41576
|
-
@class
|
41577
|
-
@
|
41578
|
-
@
|
41579
|
-
@uses Ember.Observable
|
41752
|
+
@class EmberObject
|
41753
|
+
@extends CoreObject
|
41754
|
+
@uses Observable
|
41580
41755
|
@public
|
41581
41756
|
*/
|
41582
41757
|
var EmberObject = _core_object.default.extend(_observable.default, (_CoreObject$extend = {
|
@@ -41645,6 +41820,11 @@ enifed('ember-runtime/system/object_proxy', ['exports', 'ember-runtime/system/ob
|
|
41645
41820
|
enifed('ember-runtime/system/service', ['exports', 'ember-runtime/system/object', 'ember-runtime/inject'], function (exports, _object, _inject) {
|
41646
41821
|
'use strict';
|
41647
41822
|
|
41823
|
+
/**
|
41824
|
+
@module @ember/service
|
41825
|
+
@public
|
41826
|
+
*/
|
41827
|
+
|
41648
41828
|
/**
|
41649
41829
|
Creates a property that lazily looks up a service in the container. There
|
41650
41830
|
are no restrictions as to what objects a service can be injected into.
|
@@ -41668,9 +41848,10 @@ enifed('ember-runtime/system/service', ['exports', 'ember-runtime/system/object'
|
|
41668
41848
|
that looks up the `auth` service in the container, making it easily
|
41669
41849
|
accessible in the `model` hook.
|
41670
41850
|
|
41671
|
-
@method
|
41851
|
+
@method inject
|
41852
|
+
@static
|
41672
41853
|
@since 1.10.0
|
41673
|
-
@for
|
41854
|
+
@for @ember/service
|
41674
41855
|
@param {String} name (optional) name of the service to inject, defaults to
|
41675
41856
|
the property's name
|
41676
41857
|
@return {Ember.InjectedProperty} injection descriptor instance
|
@@ -41680,8 +41861,7 @@ enifed('ember-runtime/system/service', ['exports', 'ember-runtime/system/object'
|
|
41680
41861
|
|
41681
41862
|
/**
|
41682
41863
|
@class Service
|
41683
|
-
|
41684
|
-
@extends Ember.Object
|
41864
|
+
|
41685
41865
|
@since 1.10.0
|
41686
41866
|
@public
|
41687
41867
|
*/
|
@@ -41700,8 +41880,7 @@ enifed('ember-runtime/system/string', ['exports', 'ember-metal', 'ember-debug',
|
|
41700
41880
|
|
41701
41881
|
|
41702
41882
|
var STRING_DASHERIZE_REGEXP = /[ _]/g; /**
|
41703
|
-
@module ember
|
41704
|
-
@submodule ember-runtime
|
41883
|
+
@module @ember/string
|
41705
41884
|
*/
|
41706
41885
|
|
41707
41886
|
|
@@ -41830,8 +42009,6 @@ enifed('ember-runtime/system/string', ['exports', 'ember-metal', 'ember-debug',
|
|
41830
42009
|
added to the `String.prototype` as well.
|
41831
42010
|
|
41832
42011
|
@class String
|
41833
|
-
@namespace Ember
|
41834
|
-
@static
|
41835
42012
|
@public
|
41836
42013
|
*/
|
41837
42014
|
exports.default = {
|
@@ -42029,7 +42206,9 @@ enifed('ember-runtime/utils', ['exports', 'ember-runtime/mixins/array', 'ember-r
|
|
42029
42206
|
|
42030
42207
|
var toString = Object.prototype.toString;
|
42031
42208
|
|
42032
|
-
|
42209
|
+
/**
|
42210
|
+
@module @ember/array
|
42211
|
+
*/
|
42033
42212
|
/**
|
42034
42213
|
Returns true if the passed object is an array or Array-like.
|
42035
42214
|
|
@@ -42049,7 +42228,8 @@ enifed('ember-runtime/utils', ['exports', 'ember-runtime/mixins/array', 'ember-r
|
|
42049
42228
|
```
|
42050
42229
|
|
42051
42230
|
@method isArray
|
42052
|
-
@
|
42231
|
+
@static
|
42232
|
+
@for @ember/array
|
42053
42233
|
@param {Object} obj The object to test
|
42054
42234
|
@return {Boolean} true if the passed object is an array or Array-like
|
42055
42235
|
@public
|
@@ -42075,7 +42255,9 @@ enifed('ember-runtime/utils', ['exports', 'ember-runtime/mixins/array', 'ember-r
|
|
42075
42255
|
}
|
42076
42256
|
return false;
|
42077
42257
|
}
|
42078
|
-
|
42258
|
+
/**
|
42259
|
+
@module @ember/utils
|
42260
|
+
*/
|
42079
42261
|
/**
|
42080
42262
|
Returns a consistent type for the passed object.
|
42081
42263
|
|
@@ -42126,10 +42308,11 @@ enifed('ember-runtime/utils', ['exports', 'ember-runtime/mixins/array', 'ember-r
|
|
42126
42308
|
```
|
42127
42309
|
|
42128
42310
|
@method typeOf
|
42129
|
-
@for
|
42311
|
+
@for @ember/utils
|
42130
42312
|
@param {Object} item the item to check
|
42131
42313
|
@return {String} the type
|
42132
42314
|
@public
|
42315
|
+
@static
|
42133
42316
|
*/
|
42134
42317
|
function typeOf(item) {
|
42135
42318
|
if (item === null) {
|
@@ -42409,7 +42592,6 @@ enifed('ember-template-compiler/plugins/transform-action-syntax', ['exports'], f
|
|
42409
42592
|
exports.default = transformActionSyntax;
|
42410
42593
|
/**
|
42411
42594
|
@module ember
|
42412
|
-
@submodule ember-glimmer
|
42413
42595
|
*/
|
42414
42596
|
|
42415
42597
|
/**
|
@@ -42491,7 +42673,6 @@ enifed('ember-template-compiler/plugins/transform-attrs-into-args', ['exports'],
|
|
42491
42673
|
exports.default = transformAttrsIntoArgs;
|
42492
42674
|
/**
|
42493
42675
|
@module ember
|
42494
|
-
@submodule ember-glimmer
|
42495
42676
|
*/
|
42496
42677
|
|
42497
42678
|
/**
|
@@ -42672,7 +42853,6 @@ enifed('ember-template-compiler/plugins/transform-each-in-into-each', ['exports'
|
|
42672
42853
|
exports.default = transformEachInIntoEach;
|
42673
42854
|
/**
|
42674
42855
|
@module ember
|
42675
|
-
@submodule ember-glimmer
|
42676
42856
|
*/
|
42677
42857
|
|
42678
42858
|
/**
|
@@ -42715,7 +42895,6 @@ enifed('ember-template-compiler/plugins/transform-has-block-syntax', ['exports']
|
|
42715
42895
|
exports.default = transformHasBlockSyntax;
|
42716
42896
|
/**
|
42717
42897
|
@module ember
|
42718
|
-
@submodule ember-glimmer
|
42719
42898
|
*/
|
42720
42899
|
|
42721
42900
|
/**
|
@@ -42819,7 +42998,6 @@ enifed('ember-template-compiler/plugins/transform-input-on-to-onEvent', ['export
|
|
42819
42998
|
|
42820
42999
|
/**
|
42821
43000
|
@module ember
|
42822
|
-
@submodule ember-htmlbars
|
42823
43001
|
*/
|
42824
43002
|
|
42825
43003
|
/**
|
@@ -42934,7 +43112,6 @@ enifed('ember-template-compiler/plugins/transform-input-type-syntax', ['exports'
|
|
42934
43112
|
exports.default = transformInputTypeSyntax;
|
42935
43113
|
/**
|
42936
43114
|
@module ember
|
42937
|
-
@submodule ember-glimmer
|
42938
43115
|
*/
|
42939
43116
|
|
42940
43117
|
/**
|
@@ -43315,7 +43492,6 @@ enifed('ember-template-compiler/system/bootstrap', ['exports', 'ember-debug', 'e
|
|
43315
43492
|
*/
|
43316
43493
|
/**
|
43317
43494
|
@module ember
|
43318
|
-
@submodule ember-templates
|
43319
43495
|
*/
|
43320
43496
|
|
43321
43497
|
function bootstrap(_ref) {
|
@@ -43467,7 +43643,6 @@ enifed('ember-template-compiler/system/compile', ['exports', 'require', 'ember-t
|
|
43467
43643
|
exports.default = compile;
|
43468
43644
|
/**
|
43469
43645
|
@module ember
|
43470
|
-
@submodule ember-template-compiler
|
43471
43646
|
*/
|
43472
43647
|
var template = void 0;
|
43473
43648
|
|
@@ -43501,7 +43676,6 @@ enifed('ember-template-compiler/system/precompile', ['exports', 'ember-template-
|
|
43501
43676
|
exports.default = precompile;
|
43502
43677
|
/**
|
43503
43678
|
@module ember
|
43504
|
-
@submodule ember-template-compiler
|
43505
43679
|
*/
|
43506
43680
|
|
43507
43681
|
var glimmerPrecompile = void 0;
|
@@ -43536,8 +43710,7 @@ enifed('ember-testing/adapters/adapter', ['exports', 'ember-runtime'], function
|
|
43536
43710
|
}
|
43537
43711
|
|
43538
43712
|
/**
|
43539
|
-
@module ember
|
43540
|
-
@submodule ember-testing
|
43713
|
+
@module @ember/test
|
43541
43714
|
*/
|
43542
43715
|
|
43543
43716
|
/**
|
@@ -43545,7 +43718,6 @@ enifed('ember-testing/adapters/adapter', ['exports', 'ember-runtime'], function
|
|
43545
43718
|
by an adapter for various test frameworks.
|
43546
43719
|
|
43547
43720
|
@class Adapter
|
43548
|
-
@namespace Ember.Test
|
43549
43721
|
@public
|
43550
43722
|
*/
|
43551
43723
|
exports.default = _emberRuntime.Object.extend({
|
@@ -43891,10 +44063,6 @@ enifed("ember-testing/helpers/and_then", ["exports"], function (exports) {
|
|
43891
44063
|
"use strict";
|
43892
44064
|
|
43893
44065
|
exports.default = andThen;
|
43894
|
-
/**
|
43895
|
-
@module ember
|
43896
|
-
@submodule ember-testing
|
43897
|
-
*/
|
43898
44066
|
function andThen(app, callback) {
|
43899
44067
|
return app.testHelpers.wait(callback(app));
|
43900
44068
|
}
|
@@ -43937,7 +44105,6 @@ enifed('ember-testing/helpers/click', ['exports', 'ember-testing/events'], funct
|
|
43937
44105
|
return app.testHelpers.wait();
|
43938
44106
|
} /**
|
43939
44107
|
@module ember
|
43940
|
-
@submodule ember-testing
|
43941
44108
|
*/
|
43942
44109
|
});
|
43943
44110
|
enifed('ember-testing/helpers/current_path', ['exports', 'ember-metal'], function (exports, _emberMetal) {
|
@@ -43969,7 +44136,6 @@ enifed('ember-testing/helpers/current_path', ['exports', 'ember-metal'], functio
|
|
43969
44136
|
return (0, _emberMetal.get)(routingService, 'currentPath');
|
43970
44137
|
} /**
|
43971
44138
|
@module ember
|
43972
|
-
@submodule ember-testing
|
43973
44139
|
*/
|
43974
44140
|
});
|
43975
44141
|
enifed('ember-testing/helpers/current_route_name', ['exports', 'ember-metal'], function (exports, _emberMetal) {
|
@@ -43999,7 +44165,6 @@ enifed('ember-testing/helpers/current_route_name', ['exports', 'ember-metal'], f
|
|
43999
44165
|
return (0, _emberMetal.get)(routingService, 'currentRouteName');
|
44000
44166
|
} /**
|
44001
44167
|
@module ember
|
44002
|
-
@submodule ember-testing
|
44003
44168
|
*/
|
44004
44169
|
});
|
44005
44170
|
enifed('ember-testing/helpers/current_url', ['exports', 'ember-metal'], function (exports, _emberMetal) {
|
@@ -44031,7 +44196,6 @@ enifed('ember-testing/helpers/current_url', ['exports', 'ember-metal'], function
|
|
44031
44196
|
return (0, _emberMetal.get)(router, 'location').getURL();
|
44032
44197
|
} /**
|
44033
44198
|
@module ember
|
44034
|
-
@submodule ember-testing
|
44035
44199
|
*/
|
44036
44200
|
});
|
44037
44201
|
enifed('ember-testing/helpers/fill_in', ['exports', 'ember-testing/events'], function (exports, _events) {
|
@@ -44078,7 +44242,6 @@ enifed('ember-testing/helpers/fill_in', ['exports', 'ember-testing/events'], fun
|
|
44078
44242
|
return app.testHelpers.wait();
|
44079
44243
|
} /**
|
44080
44244
|
@module ember
|
44081
|
-
@submodule ember-testing
|
44082
44245
|
*/
|
44083
44246
|
});
|
44084
44247
|
enifed('ember-testing/helpers/find', ['exports', 'ember-metal'], function (exports, _emberMetal) {
|
@@ -44117,7 +44280,6 @@ enifed('ember-testing/helpers/find', ['exports', 'ember-metal'], function (expor
|
|
44117
44280
|
return $el;
|
44118
44281
|
} /**
|
44119
44282
|
@module ember
|
44120
|
-
@submodule ember-testing
|
44121
44283
|
*/
|
44122
44284
|
});
|
44123
44285
|
enifed('ember-testing/helpers/find_with_assert', ['exports'], function (exports) {
|
@@ -44126,7 +44288,6 @@ enifed('ember-testing/helpers/find_with_assert', ['exports'], function (exports)
|
|
44126
44288
|
exports.default = findWithAssert;
|
44127
44289
|
/**
|
44128
44290
|
@module ember
|
44129
|
-
@submodule ember-testing
|
44130
44291
|
*/
|
44131
44292
|
/**
|
44132
44293
|
Like `find`, but throws an error if the element selector returns no results.
|
@@ -44166,7 +44327,6 @@ enifed("ember-testing/helpers/key_event", ["exports"], function (exports) {
|
|
44166
44327
|
exports.default = keyEvent;
|
44167
44328
|
/**
|
44168
44329
|
@module ember
|
44169
|
-
@submodule ember-testing
|
44170
44330
|
*/
|
44171
44331
|
/**
|
44172
44332
|
Simulates a key event, e.g. `keypress`, `keydown`, `keyup` with the desired keyCode
|
@@ -44218,7 +44378,6 @@ enifed('ember-testing/helpers/pause_test', ['exports', 'ember-runtime', 'ember-c
|
|
44218
44378
|
*/
|
44219
44379
|
/**
|
44220
44380
|
@module ember
|
44221
|
-
@submodule ember-testing
|
44222
44381
|
*/
|
44223
44382
|
function resumeTest() {
|
44224
44383
|
(true && !(resume) && (0, _emberDebug.assert)('Testing has not been paused. There is nothing to resume.', resume));
|
@@ -44338,7 +44497,6 @@ enifed('ember-testing/helpers/trigger_event', ['exports', 'ember-testing/events'
|
|
44338
44497
|
return app.testHelpers.wait();
|
44339
44498
|
} /**
|
44340
44499
|
@module ember
|
44341
|
-
@submodule ember-testing
|
44342
44500
|
*/
|
44343
44501
|
});
|
44344
44502
|
enifed('ember-testing/helpers/visit', ['exports', 'ember-metal'], function (exports, _emberMetal) {
|
@@ -44388,7 +44546,6 @@ enifed('ember-testing/helpers/visit', ['exports', 'ember-metal'], function (expo
|
|
44388
44546
|
return app.testHelpers.wait();
|
44389
44547
|
} /**
|
44390
44548
|
@module ember
|
44391
|
-
@submodule ember-testing
|
44392
44549
|
*/
|
44393
44550
|
});
|
44394
44551
|
enifed('ember-testing/helpers/wait', ['exports', 'ember-testing/test/waiters', 'ember-runtime', 'ember-metal', 'ember-testing/test/pending_requests'], function (exports, _waiters, _emberRuntime, _emberMetal, _pending_requests) {
|
@@ -44427,7 +44584,6 @@ enifed('ember-testing/helpers/wait', ['exports', 'ember-testing/test/waiters', '
|
|
44427
44584
|
*/
|
44428
44585
|
/**
|
44429
44586
|
@module ember
|
44430
|
-
@submodule ember-testing
|
44431
44587
|
*/
|
44432
44588
|
function wait(app, value) {
|
44433
44589
|
return new _emberRuntime.RSVP.Promise(function (resolve) {
|
@@ -44557,7 +44713,6 @@ enifed('ember-testing/support', ['ember-debug', 'ember-views', 'ember-environmen
|
|
44557
44713
|
|
44558
44714
|
/**
|
44559
44715
|
@module ember
|
44560
|
-
@submodule ember-testing
|
44561
44716
|
*/
|
44562
44717
|
|
44563
44718
|
var $ = _emberViews.jQuery;
|
@@ -44662,7 +44817,6 @@ enifed('ember-testing/test', ['exports', 'ember-testing/test/helpers', 'ember-te
|
|
44662
44817
|
*/
|
44663
44818
|
/**
|
44664
44819
|
@module ember
|
44665
|
-
@submodule ember-testing
|
44666
44820
|
*/
|
44667
44821
|
Object.defineProperty(Test, 'adapter', {
|
44668
44822
|
get: _adapter.getAdapter,
|
@@ -44719,6 +44873,9 @@ enifed('ember-testing/test/helpers', ['exports', 'ember-testing/test/promise'],
|
|
44719
44873
|
exports.registerAsyncHelper = registerAsyncHelper;
|
44720
44874
|
exports.unregisterHelper = unregisterHelper;
|
44721
44875
|
var helpers = exports.helpers = {};
|
44876
|
+
/**
|
44877
|
+
@module @ember/test
|
44878
|
+
*/
|
44722
44879
|
|
44723
44880
|
/**
|
44724
44881
|
`registerHelper` is used to register a test helper that will be injected
|
@@ -44745,7 +44902,8 @@ enifed('ember-testing/test/helpers', ['exports', 'ember-testing/test/promise'],
|
|
44745
44902
|
```
|
44746
44903
|
|
44747
44904
|
@public
|
44748
|
-
@for
|
44905
|
+
@for @ember/test
|
44906
|
+
@static
|
44749
44907
|
@method registerHelper
|
44750
44908
|
@param {String} name The name of the helper method to add.
|
44751
44909
|
@param {Function} helperMethod
|
@@ -44793,7 +44951,7 @@ enifed('ember-testing/test/helpers', ['exports', 'ember-testing/test/promise'],
|
|
44793
44951
|
```
|
44794
44952
|
|
44795
44953
|
@public
|
44796
|
-
@for
|
44954
|
+
@for @ember/test
|
44797
44955
|
@method registerAsyncHelper
|
44798
44956
|
@param {String} name The name of the helper method to add.
|
44799
44957
|
@param {Function} helperMethod
|
@@ -44817,6 +44975,8 @@ enifed('ember-testing/test/helpers', ['exports', 'ember-testing/test/promise'],
|
|
44817
44975
|
|
44818
44976
|
@public
|
44819
44977
|
@method unregisterHelper
|
44978
|
+
@static
|
44979
|
+
@for @ember/test
|
44820
44980
|
@param {String} name The helper to remove.
|
44821
44981
|
*/
|
44822
44982
|
function unregisterHelper(name) {
|
@@ -45024,6 +45184,9 @@ enifed('ember-testing/test/waiters', ['exports', 'ember-debug'], function (expor
|
|
45024
45184
|
exports.checkWaiters = checkWaiters;
|
45025
45185
|
|
45026
45186
|
|
45187
|
+
/**
|
45188
|
+
@module @ember/test
|
45189
|
+
*/
|
45027
45190
|
var contexts = [];
|
45028
45191
|
var callbacks = [];
|
45029
45192
|
|
@@ -45052,7 +45215,8 @@ enifed('ember-testing/test/waiters', ['exports', 'ember-debug'], function (expor
|
|
45052
45215
|
```
|
45053
45216
|
|
45054
45217
|
@public
|
45055
|
-
@for
|
45218
|
+
@for @ember/test
|
45219
|
+
@static
|
45056
45220
|
@method registerWaiter
|
45057
45221
|
@param {Object} context (optional)
|
45058
45222
|
@param {Function} callback
|
@@ -45075,7 +45239,8 @@ enifed('ember-testing/test/waiters', ['exports', 'ember-debug'], function (expor
|
|
45075
45239
|
registered with `registerWaiter`.
|
45076
45240
|
|
45077
45241
|
@public
|
45078
|
-
@for
|
45242
|
+
@for @ember/test
|
45243
|
+
@static
|
45079
45244
|
@method unregisterWaiter
|
45080
45245
|
@param {Object} context (optional)
|
45081
45246
|
@param {Function} callback
|
@@ -45106,7 +45271,7 @@ enifed('ember-testing/test/waiters', ['exports', 'ember-debug'], function (expor
|
|
45106
45271
|
infrastructure.
|
45107
45272
|
|
45108
45273
|
@public
|
45109
|
-
@for
|
45274
|
+
@for @ember/test
|
45110
45275
|
@static
|
45111
45276
|
@method checkWaiters
|
45112
45277
|
*/
|
@@ -45186,6 +45351,10 @@ enifed('ember-utils', ['exports'], function (exports) {
|
|
45186
45351
|
return str;
|
45187
45352
|
}
|
45188
45353
|
|
45354
|
+
/**
|
45355
|
+
@module @ember/object
|
45356
|
+
*/
|
45357
|
+
|
45189
45358
|
/**
|
45190
45359
|
Previously we used `Ember.$.uuid`, however `$.uuid` has been removed from
|
45191
45360
|
jQuery master. We'll just bootstrap our own uuid now.
|
@@ -45263,7 +45432,8 @@ enifed('ember-utils', ['exports'], function (exports) {
|
|
45263
45432
|
|
45264
45433
|
@private
|
45265
45434
|
@method generateGuid
|
45266
|
-
@
|
45435
|
+
@static
|
45436
|
+
@for @ember/object/internals
|
45267
45437
|
@param {Object} [obj] Object the guid will be used for. If passed in, the guid will
|
45268
45438
|
be saved on the object and reused whenever you pass the same object
|
45269
45439
|
again.
|
@@ -45303,8 +45473,9 @@ enifed('ember-utils', ['exports'], function (exports) {
|
|
45303
45473
|
You can also use this method on DOM Element objects.
|
45304
45474
|
|
45305
45475
|
@public
|
45476
|
+
@static
|
45306
45477
|
@method guidFor
|
45307
|
-
@for
|
45478
|
+
@for @ember/object/internals
|
45308
45479
|
@param {Object} obj any object, string, number, Element, or primitive
|
45309
45480
|
@return {String} the unique guid for this instance.
|
45310
45481
|
*/
|
@@ -45386,8 +45557,7 @@ enifed('ember-utils', ['exports'], function (exports) {
|
|
45386
45557
|
}
|
45387
45558
|
|
45388
45559
|
/**
|
45389
|
-
@module ember
|
45390
|
-
@submodule ember-runtime
|
45560
|
+
@module @ember/application
|
45391
45561
|
*/
|
45392
45562
|
|
45393
45563
|
var OWNER = symbol('OWNER');
|
@@ -45409,7 +45579,7 @@ enifed('ember-utils', ['exports'], function (exports) {
|
|
45409
45579
|
import Component from '@ember/component';
|
45410
45580
|
import { computed } from '@ember/object';
|
45411
45581
|
import { getOwner } from '@ember/application';
|
45412
|
-
|
45582
|
+
|
45413
45583
|
// Usage:
|
45414
45584
|
//
|
45415
45585
|
// {{play-audio audioType=model.audioType audioFile=model.file}}
|
@@ -45428,7 +45598,8 @@ enifed('ember-utils', ['exports'], function (exports) {
|
|
45428
45598
|
```
|
45429
45599
|
|
45430
45600
|
@method getOwner
|
45431
|
-
@
|
45601
|
+
@static
|
45602
|
+
@for @ember/application
|
45432
45603
|
@param {Object} object An object with an owner.
|
45433
45604
|
@return {Object} An owner object.
|
45434
45605
|
@since 2.3.0
|
@@ -45443,7 +45614,8 @@ enifed('ember-utils', ['exports'], function (exports) {
|
|
45443
45614
|
useful in some testing cases.
|
45444
45615
|
|
45445
45616
|
@method setOwner
|
45446
|
-
@
|
45617
|
+
@static
|
45618
|
+
@for @ember/application
|
45447
45619
|
@param {Object} object An object instance.
|
45448
45620
|
@param {Object} object The new owner object of the object instance.
|
45449
45621
|
@since 2.3.0
|
@@ -45453,6 +45625,9 @@ enifed('ember-utils', ['exports'], function (exports) {
|
|
45453
45625
|
object[OWNER] = owner;
|
45454
45626
|
}
|
45455
45627
|
|
45628
|
+
/**
|
45629
|
+
@module @ember/polyfills
|
45630
|
+
*/
|
45456
45631
|
/**
|
45457
45632
|
Copy properties from a source object to a target object.
|
45458
45633
|
|
@@ -45464,11 +45639,12 @@ enifed('ember-utils', ['exports'], function (exports) {
|
|
45464
45639
|
```
|
45465
45640
|
|
45466
45641
|
@method assign
|
45467
|
-
@for
|
45642
|
+
@for @ember/polyfills
|
45468
45643
|
@param {Object} original The object to assign into
|
45469
45644
|
@param {Object} ...args The objects to copy properties from
|
45470
45645
|
@return {Object}
|
45471
45646
|
@public
|
45647
|
+
@static
|
45472
45648
|
*/
|
45473
45649
|
function assign(original) {
|
45474
45650
|
for (var i = 1; i < arguments.length; i++) {
|
@@ -45572,7 +45748,9 @@ enifed('ember-utils', ['exports'], function (exports) {
|
|
45572
45748
|
}
|
45573
45749
|
|
45574
45750
|
var objectToString = Object.prototype.toString;
|
45575
|
-
|
45751
|
+
/**
|
45752
|
+
@module @ember/debug
|
45753
|
+
*/
|
45576
45754
|
/**
|
45577
45755
|
Convenience method to inspect an object. This method will attempt to
|
45578
45756
|
convert the object into a useful string description.
|
@@ -45581,7 +45759,7 @@ enifed('ember-utils', ['exports'], function (exports) {
|
|
45581
45759
|
use something like JSDump: https://github.com/NV/jsDump
|
45582
45760
|
|
45583
45761
|
@method inspect
|
45584
|
-
@
|
45762
|
+
@static
|
45585
45763
|
@param {Object} obj The object you want to inspect.
|
45586
45764
|
@return {String} A description of the object
|
45587
45765
|
@since 1.4.0
|
@@ -45722,7 +45900,9 @@ enifed('ember-utils', ['exports'], function (exports) {
|
|
45722
45900
|
|
45723
45901
|
var isArray = Array.isArray;
|
45724
45902
|
|
45725
|
-
|
45903
|
+
/**
|
45904
|
+
@module @ember/array
|
45905
|
+
*/
|
45726
45906
|
/**
|
45727
45907
|
Forces the passed object to be part of an array. If the object is already
|
45728
45908
|
an array, it will return the object. Otherwise, it will add the object to
|
@@ -45741,7 +45921,8 @@ enifed('ember-utils', ['exports'], function (exports) {
|
|
45741
45921
|
```
|
45742
45922
|
|
45743
45923
|
@method makeArray
|
45744
|
-
@
|
45924
|
+
@static
|
45925
|
+
@for @ember/array
|
45745
45926
|
@param {Object} obj the object
|
45746
45927
|
@return {Array}
|
45747
45928
|
@private
|
@@ -46046,7 +46227,6 @@ enifed('ember-views/mixins/action_support', ['exports', 'ember-utils', 'ember-me
|
|
46046
46227
|
|
46047
46228
|
/**
|
46048
46229
|
@module ember
|
46049
|
-
@submodule ember-views
|
46050
46230
|
*/
|
46051
46231
|
function validateAction(component, actionName) {
|
46052
46232
|
if (actionName && actionName[_attrs.MUTABLE_CELL]) {
|
@@ -46227,7 +46407,6 @@ enifed('ember-views/mixins/class_names_support', ['exports', 'ember-metal', 'emb
|
|
46227
46407
|
|
46228
46408
|
/**
|
46229
46409
|
@module ember
|
46230
|
-
@submodule ember-views
|
46231
46410
|
*/
|
46232
46411
|
|
46233
46412
|
var EMPTY_ARRAY = Object.freeze([]);
|
@@ -46302,7 +46481,6 @@ enifed('ember-views/mixins/text_support', ['exports', 'ember-metal', 'ember-runt
|
|
46302
46481
|
|
46303
46482
|
/**
|
46304
46483
|
@module ember
|
46305
|
-
@submodule ember-views
|
46306
46484
|
*/
|
46307
46485
|
|
46308
46486
|
var KEY_EVENTS = {
|
@@ -46405,7 +46583,7 @@ enifed('ember-views/mixins/text_support', ['exports', 'ember-metal', 'ember-runt
|
|
46405
46583
|
@class TextSupport
|
46406
46584
|
@namespace Ember
|
46407
46585
|
@uses Ember.TargetActionSupport
|
46408
|
-
@extends
|
46586
|
+
@extends Mixin
|
46409
46587
|
@private
|
46410
46588
|
*/
|
46411
46589
|
exports.default = _emberMetal.Mixin.create(_emberRuntime.TargetActionSupport, {
|
@@ -46825,7 +47003,6 @@ enifed("ember-views/system/action_manager", ["exports"], function (exports) {
|
|
46825
47003
|
exports.default = ActionManager;
|
46826
47004
|
/**
|
46827
47005
|
@module ember
|
46828
|
-
@submodule ember-views
|
46829
47006
|
*/
|
46830
47007
|
|
46831
47008
|
function ActionManager() {}
|
@@ -46844,7 +47021,6 @@ enifed('ember-views/system/event_dispatcher', ['exports', 'ember-utils', 'ember-
|
|
46844
47021
|
|
46845
47022
|
/**
|
46846
47023
|
@module ember
|
46847
|
-
@submodule ember-views
|
46848
47024
|
*/
|
46849
47025
|
|
46850
47026
|
var ROOT_ELEMENT_CLASS = 'ember-application';
|
@@ -47134,11 +47310,7 @@ enifed('ember-views/system/ext', ['ember-metal'], function (_emberMetal) {
|
|
47134
47310
|
// Add a new named queue for rendering views that happens
|
47135
47311
|
// after bindings have synced, and a queue for scheduling actions
|
47136
47312
|
// that should occur after view rendering.
|
47137
|
-
_emberMetal.run._addQueue('render', 'actions');
|
47138
|
-
@module ember
|
47139
|
-
@submodule ember-views
|
47140
|
-
*/
|
47141
|
-
|
47313
|
+
_emberMetal.run._addQueue('render', 'actions');
|
47142
47314
|
_emberMetal.run._addQueue('afterRender', 'render');
|
47143
47315
|
});
|
47144
47316
|
enifed('ember-views/system/jquery', ['exports', 'ember-environment'], function (exports, _emberEnvironment) {
|
@@ -47240,7 +47412,6 @@ enifed('ember-views/system/utils', ['exports', 'ember-utils'], function (exports
|
|
47240
47412
|
|
47241
47413
|
/**
|
47242
47414
|
@module ember
|
47243
|
-
@submodule ember-views
|
47244
47415
|
*/
|
47245
47416
|
|
47246
47417
|
function isSimpleClick(event) {
|
@@ -47628,11 +47799,6 @@ enifed('ember-views/views/states/default', ['exports', 'ember-debug'], function
|
|
47628
47799
|
enifed('ember-views/views/states/destroying', ['exports', 'ember-utils', 'ember-debug', 'ember-views/views/states/default'], function (exports, _emberUtils, _emberDebug, _default2) {
|
47629
47800
|
'use strict';
|
47630
47801
|
|
47631
|
-
/**
|
47632
|
-
@module ember
|
47633
|
-
@submodule ember-views
|
47634
|
-
*/
|
47635
|
-
|
47636
47802
|
var destroying = Object.create(_default2.default);
|
47637
47803
|
|
47638
47804
|
(0, _emberUtils.assign)(destroying, {
|
@@ -47676,11 +47842,6 @@ enifed('ember-views/views/states/has_element', ['exports', 'ember-utils', 'ember
|
|
47676
47842
|
enifed('ember-views/views/states/in_dom', ['exports', 'ember-utils', 'ember-metal', 'ember-debug', 'ember-views/views/states/has_element'], function (exports, _emberUtils, _emberMetal, _emberDebug, _has_element) {
|
47677
47843
|
'use strict';
|
47678
47844
|
|
47679
|
-
/**
|
47680
|
-
@module ember
|
47681
|
-
@submodule ember-views
|
47682
|
-
*/
|
47683
|
-
|
47684
47845
|
var inDOM = Object.create(_has_element.default);
|
47685
47846
|
|
47686
47847
|
(0, _emberUtils.assign)(inDOM, {
|
@@ -48181,13 +48342,6 @@ enifed('ember/index', ['exports', 'require', 'ember-environment', 'node-module',
|
|
48181
48342
|
// this is so that the global exports occur properly
|
48182
48343
|
|
48183
48344
|
|
48184
|
-
/**
|
48185
|
-
Alias for jQuery
|
48186
|
-
|
48187
|
-
@method $
|
48188
|
-
@for Ember
|
48189
|
-
@public
|
48190
|
-
*/
|
48191
48345
|
_emberMetal.default.$ = _emberViews.jQuery;
|
48192
48346
|
|
48193
48347
|
_emberMetal.default.ViewTargetActionSupport = _emberViews.ViewTargetActionSupport;
|
@@ -48248,6 +48402,7 @@ enifed('ember/index', ['exports', 'require', 'ember-environment', 'node-module',
|
|
48248
48402
|
|
48249
48403
|
/**
|
48250
48404
|
@module ember
|
48405
|
+
@private
|
48251
48406
|
*/
|
48252
48407
|
exports.default = _emberMetal.default;
|
48253
48408
|
|
@@ -48258,11 +48413,31 @@ enifed('ember/index', ['exports', 'require', 'ember-environment', 'node-module',
|
|
48258
48413
|
} else {
|
48259
48414
|
_emberEnvironment.context.exports.Ember = _emberEnvironment.context.exports.Em = _emberMetal.default;
|
48260
48415
|
}
|
48416
|
+
|
48417
|
+
/**
|
48418
|
+
@module jquery
|
48419
|
+
@public
|
48420
|
+
*/
|
48421
|
+
|
48422
|
+
/**
|
48423
|
+
@class jquery
|
48424
|
+
@public
|
48425
|
+
@static
|
48426
|
+
*/
|
48427
|
+
|
48428
|
+
/**
|
48429
|
+
Alias for jQuery
|
48430
|
+
|
48431
|
+
@for jquery
|
48432
|
+
@method $
|
48433
|
+
@static
|
48434
|
+
@public
|
48435
|
+
*/
|
48261
48436
|
});
|
48262
48437
|
enifed("ember/version", ["exports"], function (exports) {
|
48263
48438
|
"use strict";
|
48264
48439
|
|
48265
|
-
exports.default = "2.16.
|
48440
|
+
exports.default = "2.16.1";
|
48266
48441
|
});
|
48267
48442
|
enifed("handlebars", ["exports"], function (exports) {
|
48268
48443
|
"use strict";
|