ember-source 4.4.0-alpha.3 → 4.4.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -1
- package/blueprints/acceptance-test/mocha-rfc-232-files/tests/acceptance/__name__-test.js +1 -1
- package/blueprints/acceptance-test/qunit-rfc-232-files/tests/acceptance/__name__-test.js +1 -1
- package/blueprints/component-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.js +2 -2
- package/blueprints/component-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +2 -2
- package/blueprints/controller-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.js +1 -1
- package/blueprints/controller-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +1 -1
- package/blueprints/helper-test/mocha-rfc-232-files/__root__/__testType__/__collection__/__name__-test.js +1 -1
- package/blueprints/helper-test/qunit-rfc-232-files/__root__/__testType__/__collection__/__name__-test.js +1 -1
- package/blueprints/route-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.js +1 -1
- package/blueprints/route-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +1 -1
- package/blueprints/service-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.js +1 -1
- package/blueprints/service-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +1 -1
- package/build-metadata.json +3 -3
- package/dist/ember-template-compiler.js +7 -3
- package/dist/ember-template-compiler.map +1 -1
- package/dist/ember-testing.js +2 -2
- package/dist/ember-testing.map +1 -1
- package/dist/ember.debug.js +298 -957
- package/dist/ember.debug.map +1 -1
- package/dist/header/license.js +1 -1
- package/dist/packages/@ember/-internals/container/index.js +0 -16
- package/dist/packages/@ember/-internals/extension-support/lib/container_debug_adapter.js +10 -19
- package/dist/packages/@ember/-internals/extension-support/lib/data_adapter.js +113 -112
- package/dist/packages/@ember/-internals/glimmer/index.js +112 -748
- package/dist/packages/@ember/-internals/metal/index.js +1 -4
- package/dist/packages/@ember/-internals/routing/lib/system/router.js +1 -1
- package/dist/packages/@ember/-internals/runtime/lib/ext/rsvp.js +8 -4
- package/dist/packages/@ember/-internals/runtime/lib/mixins/-proxy.js +1 -1
- package/dist/packages/@ember/-internals/runtime/lib/mixins/array.js +1 -1
- package/dist/packages/@ember/-internals/runtime/lib/mixins/promise_proxy.js +16 -16
- package/dist/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +8 -8
- package/dist/packages/@ember/-internals/views/lib/system/utils.js +4 -2
- package/dist/packages/@ember/-internals/views/lib/views/core_view.js +5 -22
- package/dist/packages/@ember/debug/index.js +1 -1
- package/dist/packages/@ember/renderer/index.js +21 -0
- package/dist/packages/ember/version.js +1 -1
- package/docs/data.json +400 -210
- package/package.json +9 -9
package/docs/data.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "The Ember API",
|
|
4
4
|
"description": "The Ember API: a framework for building ambitious web applications",
|
|
5
5
|
"url": "https://emberjs.com/",
|
|
6
|
-
"version": "4.4.0-alpha.
|
|
6
|
+
"version": "4.4.0-alpha.4"
|
|
7
7
|
},
|
|
8
8
|
"files": {
|
|
9
9
|
"node_modules/rsvp/lib/rsvp/promise/all.js": {
|
|
@@ -202,8 +202,8 @@
|
|
|
202
202
|
},
|
|
203
203
|
"namespaces": {}
|
|
204
204
|
},
|
|
205
|
-
"packages/@ember/-internals/extension-support/lib/container_debug_adapter.
|
|
206
|
-
"name": "packages/@ember/-internals/extension-support/lib/container_debug_adapter.
|
|
205
|
+
"packages/@ember/-internals/extension-support/lib/container_debug_adapter.ts": {
|
|
206
|
+
"name": "packages/@ember/-internals/extension-support/lib/container_debug_adapter.ts",
|
|
207
207
|
"modules": {},
|
|
208
208
|
"classes": {
|
|
209
209
|
"ContainerDebugAdapter": 1
|
|
@@ -211,8 +211,8 @@
|
|
|
211
211
|
"fors": {},
|
|
212
212
|
"namespaces": {}
|
|
213
213
|
},
|
|
214
|
-
"packages/@ember/-internals/extension-support/lib/data_adapter.
|
|
215
|
-
"name": "packages/@ember/-internals/extension-support/lib/data_adapter.
|
|
214
|
+
"packages/@ember/-internals/extension-support/lib/data_adapter.ts": {
|
|
215
|
+
"name": "packages/@ember/-internals/extension-support/lib/data_adapter.ts",
|
|
216
216
|
"modules": {},
|
|
217
217
|
"classes": {
|
|
218
218
|
"DataAdapter": 1
|
|
@@ -930,6 +930,13 @@
|
|
|
930
930
|
"fors": {},
|
|
931
931
|
"namespaces": {}
|
|
932
932
|
},
|
|
933
|
+
"packages/@ember/-internals/runtime/lib/mixins/-proxy.d.ts": {
|
|
934
|
+
"name": "packages/@ember/-internals/runtime/lib/mixins/-proxy.d.ts",
|
|
935
|
+
"modules": {},
|
|
936
|
+
"classes": {},
|
|
937
|
+
"fors": {},
|
|
938
|
+
"namespaces": {}
|
|
939
|
+
},
|
|
933
940
|
"packages/@ember/-internals/runtime/lib/mixins/-proxy.js": {
|
|
934
941
|
"name": "packages/@ember/-internals/runtime/lib/mixins/-proxy.js",
|
|
935
942
|
"modules": {},
|
|
@@ -1286,6 +1293,13 @@
|
|
|
1286
1293
|
"fors": {},
|
|
1287
1294
|
"namespaces": {}
|
|
1288
1295
|
},
|
|
1296
|
+
"packages/@ember/-internals/views/lib/system/event_dispatcher.d.ts": {
|
|
1297
|
+
"name": "packages/@ember/-internals/views/lib/system/event_dispatcher.d.ts",
|
|
1298
|
+
"modules": {},
|
|
1299
|
+
"classes": {},
|
|
1300
|
+
"fors": {},
|
|
1301
|
+
"namespaces": {}
|
|
1302
|
+
},
|
|
1289
1303
|
"packages/@ember/-internals/views/lib/system/event_dispatcher.js": {
|
|
1290
1304
|
"name": "packages/@ember/-internals/views/lib/system/event_dispatcher.js",
|
|
1291
1305
|
"modules": {},
|
|
@@ -1304,8 +1318,8 @@
|
|
|
1304
1318
|
"fors": {},
|
|
1305
1319
|
"namespaces": {}
|
|
1306
1320
|
},
|
|
1307
|
-
"packages/@ember/-internals/views/lib/views/core_view.
|
|
1308
|
-
"name": "packages/@ember/-internals/views/lib/views/core_view.
|
|
1321
|
+
"packages/@ember/-internals/views/lib/views/core_view.ts": {
|
|
1322
|
+
"name": "packages/@ember/-internals/views/lib/views/core_view.ts",
|
|
1309
1323
|
"modules": {},
|
|
1310
1324
|
"classes": {
|
|
1311
1325
|
"Ember.CoreView": 1
|
|
@@ -1315,6 +1329,13 @@
|
|
|
1315
1329
|
"Ember": 1
|
|
1316
1330
|
}
|
|
1317
1331
|
},
|
|
1332
|
+
"packages/@ember/application/lib/application.d.ts": {
|
|
1333
|
+
"name": "packages/@ember/application/lib/application.d.ts",
|
|
1334
|
+
"modules": {},
|
|
1335
|
+
"classes": {},
|
|
1336
|
+
"fors": {},
|
|
1337
|
+
"namespaces": {}
|
|
1338
|
+
},
|
|
1318
1339
|
"packages/@ember/application/lib/application.js": {
|
|
1319
1340
|
"name": "packages/@ember/application/lib/application.js",
|
|
1320
1341
|
"modules": {
|
|
@@ -1578,6 +1599,17 @@
|
|
|
1578
1599
|
},
|
|
1579
1600
|
"namespaces": {}
|
|
1580
1601
|
},
|
|
1602
|
+
"packages/@ember/renderer/index.ts": {
|
|
1603
|
+
"name": "packages/@ember/renderer/index.ts",
|
|
1604
|
+
"modules": {
|
|
1605
|
+
"@ember/renderer": 1
|
|
1606
|
+
},
|
|
1607
|
+
"classes": {
|
|
1608
|
+
"Renderer": 1
|
|
1609
|
+
},
|
|
1610
|
+
"fors": {},
|
|
1611
|
+
"namespaces": {}
|
|
1612
|
+
},
|
|
1581
1613
|
"packages/@ember/runloop/index.ts": {
|
|
1582
1614
|
"name": "packages/@ember/runloop/index.ts",
|
|
1583
1615
|
"modules": {
|
|
@@ -1787,8 +1819,8 @@
|
|
|
1787
1819
|
},
|
|
1788
1820
|
"namespaces": {},
|
|
1789
1821
|
"tag": "module",
|
|
1790
|
-
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.
|
|
1791
|
-
"line":
|
|
1822
|
+
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.ts",
|
|
1823
|
+
"line": 158,
|
|
1792
1824
|
"access": "public",
|
|
1793
1825
|
"tagname": ""
|
|
1794
1826
|
},
|
|
@@ -1811,7 +1843,7 @@
|
|
|
1811
1843
|
"namespaces": {},
|
|
1812
1844
|
"tag": "main",
|
|
1813
1845
|
"file": "packages/@ember/-internals/glimmer/lib/helper.ts",
|
|
1814
|
-
"line":
|
|
1846
|
+
"line": 43,
|
|
1815
1847
|
"description": "[Glimmer](https://github.com/tildeio/glimmer) is a templating engine used by Ember.js that is compatible with a subset of the [Handlebars](http://handlebarsjs.com/) syntax.\n\n### Showing a property\n\nTemplates manage the flow of an application's UI, and display state (through\nthe DOM) to a user. For example, given a component with the property \"name\",\nthat component's template can use the name in several ways:\n\n```app/components/person-profile.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n name: 'Jill'\n});\n```\n\n```app/components/person-profile.hbs\n{{this.name}}\n<div>{{this.name}}</div>\n<span data-name={{this.name}}></span>\n```\n\nAny time the \"name\" property on the component changes, the DOM will be\nupdated.\n\nProperties can be chained as well:\n\n```handlebars\n{{@aUserModel.name}}\n<div>{{@listOfUsers.firstObject.name}}</div>\n```\n\n### Using Ember helpers\n\nWhen content is passed in mustaches `{{}}`, Ember will first try to find a helper\nor component with that name. For example, the `if` helper:\n\n```app/components/person-profile.hbs\n{{if this.name \"I have a name\" \"I have no name\"}}\n<span data-has-name={{if this.name true}}></span>\n```\n\nThe returned value is placed where the `{{}}` is called. The above style is\ncalled \"inline\". A second style of helper usage is called \"block\". For example:\n\n```handlebars\n{{#if this.name}}\n I have a name\n{{else}}\n I have no name\n{{/if}}\n```\n\nThe block form of helpers allows you to control how the UI is created based\non the values of properties.\nA third form of helper is called \"nested\". For example here the concat\nhelper will add \" Doe\" to a displayed name if the person has no last name:\n\n```handlebars\n<span data-name={{concat this.firstName (\n if this.lastName (concat \" \" this.lastName) \"Doe\"\n)}}></span>\n```\n\nEmber's built-in helpers are described under the [Ember.Templates.helpers](/ember/release/classes/Ember.Templates.helpers)\nnamespace. Documentation on creating custom helpers can be found under\n[helper](/ember/release/functions/@ember%2Fcomponent%2Fhelper/helper) (or\nunder [Helper](/ember/release/classes/Helper) if a helper requires access to\ndependency injection).\n\n### Invoking a Component\n\nEmber components represent state to the UI of an application. Further\nreading on components can be found under [Component](/ember/release/classes/Component).",
|
|
1816
1848
|
"itemtype": "main"
|
|
1817
1849
|
},
|
|
@@ -2214,6 +2246,21 @@
|
|
|
2214
2246
|
"file": "packages/@ember/polyfills/lib/assign.ts",
|
|
2215
2247
|
"line": 3
|
|
2216
2248
|
},
|
|
2249
|
+
"@ember/renderer": {
|
|
2250
|
+
"name": "@ember/renderer",
|
|
2251
|
+
"submodules": {},
|
|
2252
|
+
"elements": {},
|
|
2253
|
+
"classes": {
|
|
2254
|
+
"Renderer": 1
|
|
2255
|
+
},
|
|
2256
|
+
"fors": {},
|
|
2257
|
+
"namespaces": {},
|
|
2258
|
+
"tag": "module",
|
|
2259
|
+
"file": "packages/@ember/renderer/index.ts",
|
|
2260
|
+
"line": 6,
|
|
2261
|
+
"access": "public",
|
|
2262
|
+
"tagname": ""
|
|
2263
|
+
},
|
|
2217
2264
|
"@ember/runloop": {
|
|
2218
2265
|
"name": "@ember/runloop",
|
|
2219
2266
|
"submodules": {},
|
|
@@ -2363,7 +2410,7 @@
|
|
|
2363
2410
|
"module": "rsvp",
|
|
2364
2411
|
"namespace": "",
|
|
2365
2412
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
2366
|
-
"line":
|
|
2413
|
+
"line": 59,
|
|
2367
2414
|
"description": "A registry used to store factory and option information keyed\nby type.\n\nA `Registry` stores the factory and option information needed by a\n`Container` to instantiate and cache objects.\n\nThe API for `Registry` is still in flux and should not be considered stable.",
|
|
2368
2415
|
"access": "private",
|
|
2369
2416
|
"tagname": "",
|
|
@@ -2396,8 +2443,8 @@
|
|
|
2396
2443
|
"extension_for": [],
|
|
2397
2444
|
"module": "@ember/debug",
|
|
2398
2445
|
"namespace": "",
|
|
2399
|
-
"file": "packages/@ember/-internals/extension-support/lib/container_debug_adapter.
|
|
2400
|
-
"line":
|
|
2446
|
+
"file": "packages/@ember/-internals/extension-support/lib/container_debug_adapter.ts",
|
|
2447
|
+
"line": 16,
|
|
2401
2448
|
"description": "The `ContainerDebugAdapter` helps the container and resolver interface\nwith tools that debug Ember such as the\n[Ember Inspector](https://github.com/emberjs/ember-inspector)\nfor Chrome and Firefox.\n\nThis class can be extended by a custom resolver implementer\nto override some of the methods with library-specific code.\n\nThe methods likely to be overridden are:\n\n* `canCatalogEntriesByType`\n* `catalogEntriesByType`\n\nThe adapter will need to be registered\nin the application's container as `container-debug-adapter:main`.\n\nExample:\n\n```javascript\nApplication.initializer({\n name: \"containerDebugAdapter\",\n\n initialize(application) {\n application.register('container-debug-adapter:main', require('app/container-debug-adapter'));\n }\n});\n```",
|
|
2402
2449
|
"extends": "EmberObject",
|
|
2403
2450
|
"since": "1.5.0",
|
|
@@ -2414,8 +2461,8 @@
|
|
|
2414
2461
|
"extension_for": [],
|
|
2415
2462
|
"module": "@ember/debug",
|
|
2416
2463
|
"namespace": "",
|
|
2417
|
-
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.
|
|
2418
|
-
"line":
|
|
2464
|
+
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.ts",
|
|
2465
|
+
"line": 158,
|
|
2419
2466
|
"description": "The `DataAdapter` helps a data persistence library\ninterface with tools that debug Ember such\nas the [Ember Inspector](https://github.com/emberjs/ember-inspector)\nfor Chrome and Firefox.\n\nThis class will be extended by a persistence library\nwhich will override some of the methods with\nlibrary-specific code.\n\nThe methods likely to be overridden are:\n\n* `getFilters`\n* `detect`\n* `columnsForType`\n* `getRecords`\n* `getRecordColumnValues`\n* `getRecordKeywords`\n* `getRecordFilterValues`\n* `getRecordColor`\n\nThe adapter will need to be registered\nin the application's container as `dataAdapter:main`.\n\nExample:\n\n```javascript\nApplication.initializer({\n name: \"data-adapter\",\n\n initialize: function(application) {\n application.register('data-adapter:main', DS.DataAdapter);\n }\n});\n```",
|
|
2420
2467
|
"extends": "EmberObject",
|
|
2421
2468
|
"access": "public",
|
|
@@ -2480,7 +2527,7 @@
|
|
|
2480
2527
|
"module": "ember",
|
|
2481
2528
|
"namespace": "",
|
|
2482
2529
|
"file": "packages/@ember/-internals/glimmer/lib/utils/curly-component-state-bucket.ts",
|
|
2483
|
-
"line":
|
|
2530
|
+
"line": 15,
|
|
2484
2531
|
"description": "Represents the internal state of the component.",
|
|
2485
2532
|
"access": "private",
|
|
2486
2533
|
"tagname": ""
|
|
@@ -2507,7 +2554,7 @@
|
|
|
2507
2554
|
"module": "@ember/component",
|
|
2508
2555
|
"namespace": "",
|
|
2509
2556
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
2510
|
-
"line":
|
|
2557
|
+
"line": 38,
|
|
2511
2558
|
"description": "A component is a reusable UI element that consists of a `.hbs` template and an\noptional JavaScript class that defines its behavior. For example, someone\nmight make a `button` in the template and handle the click behavior in the\nJavaScript file that shares the same name as the template.\n\nComponents are broken down into two categories:\n\n- Components _without_ JavaScript, that are based only on a template. These\n are called Template-only or TO components.\n- Components _with_ JavaScript, which consist of a template and a backing\n class.\n\nEmber ships with two types of JavaScript classes for components:\n\n1. Glimmer components, imported from `@glimmer/component`, which are the\n default component's for Ember Octane (3.15) and more recent editions.\n2. Classic components, imported from `@ember/component`, which were the\n default for older editions of Ember (pre 3.15).\n\nBelow is the documentation for Classic components. If you are looking for the\nAPI documentation for Template-only or Glimmer components, it is\n[available here](/ember/release/modules/@glimmer%2Fcomponent).\n\n## Defining a Classic Component\n\nIf you want to customize the component in order to handle events, transform\narguments or maintain internal state, you implement a subclass of `Component`.\n\nOne example is to add computed properties to your component:\n\n```app/components/person-profile.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n displayName: computed('person.title', 'person.firstName', 'person.lastName', function() {\n let { title, firstName, lastName } = this.person;\n\n if (title) {\n return `${title} ${lastName}`;\n } else {\n return `${firstName} ${lastName}`;\n }\n })\n});\n```\n\nAnd then use it in the component's template:\n\n```app/templates/components/person-profile.hbs\n<h1>{{this.displayName}}</h1>\n{{yield}}\n```\n\n## Customizing a Classic Component's HTML Element in JavaScript\n\n### HTML Tag\n\nThe default HTML tag name used for a component's HTML representation is `div`.\nThis can be customized by setting the `tagName` property.\n\nConsider the following component class:\n\n```app/components/emphasized-paragraph.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n tagName: 'em'\n});\n```\n\nWhen invoked, this component would produce output that looks something like\nthis:\n\n```html\n<em id=\"ember1\" class=\"ember-view\"></em>\n```\n\n### HTML `class` Attribute\n\nThe HTML `class` attribute of a component's tag can be set by providing a\n`classNames` property that is set to an array of strings:\n\n```app/components/my-widget.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n classNames: ['my-class', 'my-other-class']\n});\n```\n\nInvoking this component will produce output that looks like this:\n\n```html\n<div id=\"ember1\" class=\"ember-view my-class my-other-class\"></div>\n```\n\n`class` attribute values can also be set by providing a `classNameBindings`\nproperty set to an array of properties names for the component. The return\nvalue of these properties will be added as part of the value for the\ncomponents's `class` attribute. These properties can be computed properties:\n\n```app/components/my-widget.js\nimport Component from '@ember/component';\nimport { computed } from '@ember/object';\n\nexport default Component.extend({\n classNames: ['my-class', 'my-other-class'],\n classNameBindings: ['propertyA', 'propertyB'],\n\n propertyA: 'from-a',\n propertyB: computed(function() {\n if (someLogic) { return 'from-b'; }\n })\n});\n```\n\nInvoking this component will produce HTML that looks like:\n\n```html\n<div id=\"ember1\" class=\"ember-view my-class my-other-class from-a from-b\"></div>\n```\n\nNote that `classNames` and `classNameBindings` is in addition to the `class`\nattribute passed with the angle bracket invocation syntax. Therefore, if this\ncomponent was invoked like so:\n\n```handlebars\n<MyWidget class=\"from-invocation\" />\n```\n\nThe resulting HTML will look similar to this:\n\n```html\n<div id=\"ember1\" class=\"from-invocation ember-view my-class my-other-class from-a from-b\"></div>\n```\n\nIf the value of a class name binding returns a boolean the property name\nitself will be used as the class name if the property is true. The class name\nwill not be added if the value is `false` or `undefined`.\n\n```app/components/my-widget.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n classNameBindings: ['hovered'],\n\n hovered: true\n});\n```\n\nInvoking this component will produce HTML that looks like:\n\n```html\n<div id=\"ember1\" class=\"ember-view hovered\"></div>\n```\n\n### Custom Class Names for Boolean Values\n\nWhen using boolean class name bindings you can supply a string value other\nthan the property name for use as the `class` HTML attribute by appending the\npreferred value after a \":\" character when defining the binding:\n\n```app/components/my-widget.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n classNameBindings: ['awesome:so-very-cool'],\n\n awesome: true\n});\n```\n\nInvoking this component will produce HTML that looks like:\n\n```html\n<div id=\"ember1\" class=\"ember-view so-very-cool\"></div>\n```\n\nBoolean value class name bindings whose property names are in a\ncamelCase-style format will be converted to a dasherized format:\n\n```app/components/my-widget.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n classNameBindings: ['isUrgent'],\n\n isUrgent: true\n});\n```\n\nInvoking this component will produce HTML that looks like:\n\n```html\n<div id=\"ember1\" class=\"ember-view is-urgent\"></div>\n```\n\nClass name bindings can also refer to object values that are found by\ntraversing a path relative to the component itself:\n\n```app/components/my-widget.js\nimport Component from '@ember/component';\nimport EmberObject from '@ember/object';\n\nexport default Component.extend({\n classNameBindings: ['messages.empty'],\n\n messages: EmberObject.create({\n empty: true\n })\n});\n```\n\nInvoking this component will produce HTML that looks like:\n\n```html\n<div id=\"ember1\" class=\"ember-view empty\"></div>\n```\n\nIf you want to add a class name for a property which evaluates to true and\nand a different class name if it evaluates to false, you can pass a binding\nlike this:\n\n```app/components/my-widget.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n classNameBindings: ['isEnabled:enabled:disabled'],\n isEnabled: true\n});\n```\n\nInvoking this component will produce HTML that looks like:\n\n```html\n<div id=\"ember1\" class=\"ember-view enabled\"></div>\n```\n\nWhen isEnabled is `false`, the resulting HTML representation looks like this:\n\n```html\n<div id=\"ember1\" class=\"ember-view disabled\"></div>\n```\n\nThis syntax offers the convenience to add a class if a property is `false`:\n\n```app/components/my-widget.js\nimport Component from '@ember/component';\n\n// Applies no class when isEnabled is true and class 'disabled' when isEnabled is false\nexport default Component.extend({\n classNameBindings: ['isEnabled::disabled'],\n isEnabled: true\n});\n```\n\nInvoking this component when the `isEnabled` property is true will produce\nHTML that looks like:\n\n```html\n<div id=\"ember1\" class=\"ember-view\"></div>\n```\n\nInvoking it when the `isEnabled` property on the component is `false` will\nproduce HTML that looks like:\n\n```html\n<div id=\"ember1\" class=\"ember-view disabled\"></div>\n```\n\nUpdates to the value of a class name binding will result in automatic update\nof the HTML `class` attribute in the component's rendered HTML\nrepresentation. If the value becomes `false` or `undefined` the class name\nwill be removed.\n\nBoth `classNames` and `classNameBindings` are concatenated properties. See\n[EmberObject](/ember/release/classes/EmberObject) documentation for more\ninformation about concatenated properties.\n\n### Other HTML Attributes\n\nThe HTML attribute section of a component's tag can be set by providing an\n`attributeBindings` property set to an array of property names on the component.\nThe return value of these properties will be used as the value of the component's\nHTML associated attribute:\n\n```app/components/my-anchor.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n tagName: 'a',\n attributeBindings: ['href'],\n\n href: 'http://google.com'\n});\n```\n\nInvoking this component will produce HTML that looks like:\n\n```html\n<a id=\"ember1\" class=\"ember-view\" href=\"http://google.com\"></a>\n```\n\nOne property can be mapped on to another by placing a \":\" between\nthe source property and the destination property:\n\n```app/components/my-anchor.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n tagName: 'a',\n attributeBindings: ['url:href'],\n\n url: 'http://google.com'\n});\n```\n\nInvoking this component will produce HTML that looks like:\n\n```html\n<a id=\"ember1\" class=\"ember-view\" href=\"http://google.com\"></a>\n```\n\nHTML attributes passed with angle bracket invocations will take precedence\nover those specified in `attributeBindings`. Therefore, if this component was\ninvoked like so:\n\n```handlebars\n<MyAnchor href=\"http://bing.com\" @url=\"http://google.com\" />\n```\n\nThe resulting HTML will looks like this:\n\n```html\n<a id=\"ember1\" class=\"ember-view\" href=\"http://bing.com\"></a>\n```\n\nNote that the `href` attribute is ultimately set to `http://bing.com`,\ndespite it having attribute binidng to the `url` property, which was\nset to `http://google.com`.\n\nNamespaced attributes (e.g. `xlink:href`) are supported, but have to be\nmapped, since `:` is not a valid character for properties in Javascript:\n\n```app/components/my-use.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n tagName: 'use',\n attributeBindings: ['xlinkHref:xlink:href'],\n\n xlinkHref: '#triangle'\n});\n```\n\nInvoking this component will produce HTML that looks like:\n\n```html\n<use xlink:href=\"#triangle\"></use>\n```\n\nIf the value of a property monitored by `attributeBindings` is a boolean, the\nattribute will be present or absent depending on the value:\n\n```app/components/my-text-input.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n tagName: 'input',\n attributeBindings: ['disabled'],\n\n disabled: false\n});\n```\n\nInvoking this component will produce HTML that looks like:\n\n```html\n<input id=\"ember1\" class=\"ember-view\" />\n```\n\n`attributeBindings` can refer to computed properties:\n\n```app/components/my-text-input.js\nimport Component from '@ember/component';\nimport { computed } from '@ember/object';\n\nexport default Component.extend({\n tagName: 'input',\n attributeBindings: ['disabled'],\n\n disabled: computed(function() {\n if (someLogic) {\n return true;\n } else {\n return false;\n }\n })\n});\n```\n\nTo prevent setting an attribute altogether, use `null` or `undefined` as the\nvalue of the property used in `attributeBindings`:\n\n```app/components/my-text-input.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n tagName: 'form',\n attributeBindings: ['novalidate'],\n novalidate: null\n});\n```\n\nUpdates to the property of an attribute binding will result in automatic\nupdate of the HTML attribute in the component's HTML output.\n\n`attributeBindings` is a concatenated property. See\n[EmberObject](/ember/release/classes/EmberObject) documentation for more\ninformation about concatenated properties.\n\n## Layouts\n\nThe `layout` property can be used to dynamically specify a template associated\nwith a component class, instead of relying on Ember to link together a\ncomponent class and a template based on file names.\n\nIn general, applications should not use this feature, but it's commonly used\nin addons for historical reasons.\n\nThe `layout` property should be set to the default export of a template\nmodule, which is the name of a template file without the `.hbs` extension.\n\n```app/templates/components/person-profile.hbs\n<h1>Person's Title</h1>\n<div class='details'>{{yield}}</div>\n```\n\n```app/components/person-profile.js\n import Component from '@ember/component';\n import layout from '../templates/components/person-profile';\n\n export default Component.extend({\n layout\n });\n```\n\nIf you invoke the component:\n\n```handlebars\n<PersonProfile>\n <h2>Chief Basket Weaver</h2>\n <h3>Fisherman Industries</h3>\n</PersonProfile>\n```\n\nor\n\n```handlebars\n{{#person-profile}}\n <h2>Chief Basket Weaver</h2>\n <h3>Fisherman Industries</h3>\n{{/person-profile}}\n```\n\nIt will result in the following HTML output:\n\n```html\n<h1>Person's Title</h1>\n <div class=\"details\">\n <h2>Chief Basket Weaver</h2>\n <h3>Fisherman Industries</h3>\n</div>\n```\n\n## Handling Browser Events\n\nComponents can respond to user-initiated events in one of three ways: passing\nactions with angle bracket invocation, adding event handler methods to the\ncomponent's class, or adding actions to the component's template.\n\n### Passing Actions With Angle Bracket Invocation\n\nFor one-off events specific to particular instance of a component, it is possible\nto pass actions to the component's element using angle bracket invocation syntax.\n\n```handlebars\n<MyWidget {{action 'firstWidgetClicked'}} />\n\n<MyWidget {{action 'secondWidgetClicked'}} />\n```\n\nIn this case, when the first component is clicked on, Ember will invoke the\n`firstWidgetClicked` action. When the second component is clicked on, Ember\nwill invoke the `secondWidgetClicked` action instead.\n\nBesides `{{action}}`, it is also possible to pass any arbitrary element modifiers\nusing the angle bracket invocation syntax.\n\n### Event Handler Methods\n\nComponents can also respond to user-initiated events by implementing a method\nthat matches the event name. This approach is appropriate when the same event\nshould be handled by all instances of the same component.\n\nAn event object will be passed as the argument to the event handler method.\n\n```app/components/my-widget.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n click(event) {\n // `event.target` is either the component's element or one of its children\n let tag = event.target.tagName.toLowerCase();\n console.log('clicked on a `<${tag}>` HTML element!');\n }\n});\n```\n\nIn this example, whenever the user clicked anywhere inside the component, it\nwill log a message to the console.\n\nIt is possible to handle event types other than `click` by implementing the\nfollowing event handler methods. In addition, custom events can be registered\nby using `Application.customEvents`.\n\nTouch events:\n\n* `touchStart`\n* `touchMove`\n* `touchEnd`\n* `touchCancel`\n\nKeyboard events:\n\n* `keyDown`\n* `keyUp`\n* `keyPress`\n\nMouse events:\n\n* `mouseDown`\n* `mouseUp`\n* `contextMenu`\n* `click`\n* `doubleClick`\n* `focusIn`\n* `focusOut`\n\nForm events:\n\n* `submit`\n* `change`\n* `focusIn`\n* `focusOut`\n* `input`\n\nDrag and drop events:\n\n* `dragStart`\n* `drag`\n* `dragEnter`\n* `dragLeave`\n* `dragOver`\n* `dragEnd`\n* `drop`\n\n### `{{action}}` Helper\n\nInstead of handling all events of a particular type anywhere inside the\ncomponent's element, you may instead want to limit it to a particular\nelement in the component's template. In this case, it would be more\nconvenient to implement an action instead.\n\nFor example, you could implement the action `hello` for the `person-profile`\ncomponent:\n\n```app/components/person-profile.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n actions: {\n hello(name) {\n console.log(\"Hello\", name);\n }\n }\n});\n```\n\nAnd then use it in the component's template:\n\n```app/templates/components/person-profile.hbs\n<h1>{{@person.name}}</h1>\n\n<button {{action 'hello' @person.name}}>\n Say Hello to {{@person.name}}\n</button>\n```\n\nWhen the user clicks the button, Ember will invoke the `hello` action,\npassing in the current value of `@person.name` as an argument.\n\nSee [Ember.Templates.helpers.action](/ember/release/classes/Ember.Templates.helpers/methods/action?anchor=action).",
|
|
2512
2559
|
"extends": "Ember.CoreView",
|
|
2513
2560
|
"uses": [
|
|
@@ -2542,7 +2589,7 @@
|
|
|
2542
2589
|
"module": "@ember/component",
|
|
2543
2590
|
"namespace": "",
|
|
2544
2591
|
"file": "packages/@ember/-internals/glimmer/lib/helper.ts",
|
|
2545
|
-
"line":
|
|
2592
|
+
"line": 43,
|
|
2546
2593
|
"description": "Ember Helpers are functions that can compute values, and are used in templates.\nFor example, this code calls a helper named `format-currency`:\n\n```app/templates/application.hbs\n<Cost @cents={{230}} />\n```\n\n```app/components/cost.hbs\n<div>{{format-currency @cents currency=\"$\"}}</div>\n```\n\nAdditionally a helper can be called as a nested helper.\nIn this example, we show the formatted currency value if the `showMoney`\nnamed argument is truthy.\n\n```handlebars\n{{if @showMoney (format-currency @cents currency=\"$\")}}\n```\n\nHelpers defined using a class must provide a `compute` function. For example:\n\n```app/helpers/format-currency.js\nimport Helper from '@ember/component/helper';\n\nexport default class extends Helper {\n compute([cents], { currency }) {\n return `${currency}${cents * 0.01}`;\n }\n}\n```\n\nEach time the input to a helper changes, the `compute` function will be\ncalled again.\n\nAs instances, these helpers also have access to the container and will accept\ninjected dependencies.\n\nAdditionally, class helpers can call `recompute` to force a new computation.",
|
|
2547
2594
|
"extends": "CoreObject",
|
|
2548
2595
|
"access": "public",
|
|
@@ -3479,8 +3526,8 @@
|
|
|
3479
3526
|
"extension_for": [],
|
|
3480
3527
|
"module": "ember",
|
|
3481
3528
|
"namespace": "Ember",
|
|
3482
|
-
"file": "packages/@ember/-internals/views/lib/views/core_view.
|
|
3483
|
-
"line":
|
|
3529
|
+
"file": "packages/@ember/-internals/views/lib/views/core_view.ts",
|
|
3530
|
+
"line": 7,
|
|
3484
3531
|
"description": "`Ember.CoreView` is an abstract class that exists to give view-like behavior\nto both Ember's main view class `Component` and other classes that don't need\nthe full functionality of `Component`.\n\nUnless you have specific needs for `CoreView`, you will use `Component`\nin your applications.",
|
|
3485
3532
|
"extends": "EmberObject",
|
|
3486
3533
|
"deprecated": true,
|
|
@@ -3746,6 +3793,21 @@
|
|
|
3746
3793
|
"module": "@ember/polyfills",
|
|
3747
3794
|
"namespace": ""
|
|
3748
3795
|
},
|
|
3796
|
+
"Renderer": {
|
|
3797
|
+
"name": "Renderer",
|
|
3798
|
+
"shortname": "Renderer",
|
|
3799
|
+
"classitems": [],
|
|
3800
|
+
"plugins": [],
|
|
3801
|
+
"extensions": [],
|
|
3802
|
+
"plugin_for": [],
|
|
3803
|
+
"extension_for": [],
|
|
3804
|
+
"module": "@ember/renderer",
|
|
3805
|
+
"namespace": "",
|
|
3806
|
+
"file": "packages/@ember/renderer/index.ts",
|
|
3807
|
+
"line": 6,
|
|
3808
|
+
"access": "public",
|
|
3809
|
+
"tagname": ""
|
|
3810
|
+
},
|
|
3749
3811
|
"@ember/runloop": {
|
|
3750
3812
|
"name": "@ember/runloop",
|
|
3751
3813
|
"shortname": "@ember/runloop",
|
|
@@ -4616,7 +4678,7 @@
|
|
|
4616
4678
|
},
|
|
4617
4679
|
{
|
|
4618
4680
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
4619
|
-
"line":
|
|
4681
|
+
"line": 100,
|
|
4620
4682
|
"description": "A backup registry for resolving registrations when no matches can be found.",
|
|
4621
4683
|
"access": "private",
|
|
4622
4684
|
"tagname": "",
|
|
@@ -4628,7 +4690,7 @@
|
|
|
4628
4690
|
},
|
|
4629
4691
|
{
|
|
4630
4692
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
4631
|
-
"line":
|
|
4693
|
+
"line": 108,
|
|
4632
4694
|
"description": "An object that has a `resolve` method that resolves a name.",
|
|
4633
4695
|
"access": "private",
|
|
4634
4696
|
"tagname": "",
|
|
@@ -4640,7 +4702,7 @@
|
|
|
4640
4702
|
},
|
|
4641
4703
|
{
|
|
4642
4704
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
4643
|
-
"line":
|
|
4705
|
+
"line": 116,
|
|
4644
4706
|
"access": "private",
|
|
4645
4707
|
"tagname": "",
|
|
4646
4708
|
"itemtype": "property",
|
|
@@ -4651,7 +4713,7 @@
|
|
|
4651
4713
|
},
|
|
4652
4714
|
{
|
|
4653
4715
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
4654
|
-
"line":
|
|
4716
|
+
"line": 122,
|
|
4655
4717
|
"access": "private",
|
|
4656
4718
|
"tagname": "",
|
|
4657
4719
|
"itemtype": "property",
|
|
@@ -4662,7 +4724,7 @@
|
|
|
4662
4724
|
},
|
|
4663
4725
|
{
|
|
4664
4726
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
4665
|
-
"line":
|
|
4727
|
+
"line": 129,
|
|
4666
4728
|
"access": "private",
|
|
4667
4729
|
"tagname": "",
|
|
4668
4730
|
"itemtype": "property",
|
|
@@ -4673,7 +4735,7 @@
|
|
|
4673
4735
|
},
|
|
4674
4736
|
{
|
|
4675
4737
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
4676
|
-
"line":
|
|
4738
|
+
"line": 136,
|
|
4677
4739
|
"access": "private",
|
|
4678
4740
|
"tagname": "",
|
|
4679
4741
|
"itemtype": "property",
|
|
@@ -4684,7 +4746,7 @@
|
|
|
4684
4746
|
},
|
|
4685
4747
|
{
|
|
4686
4748
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
4687
|
-
"line":
|
|
4749
|
+
"line": 143,
|
|
4688
4750
|
"access": "private",
|
|
4689
4751
|
"tagname": "",
|
|
4690
4752
|
"itemtype": "property",
|
|
@@ -4695,7 +4757,7 @@
|
|
|
4695
4757
|
},
|
|
4696
4758
|
{
|
|
4697
4759
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
4698
|
-
"line":
|
|
4760
|
+
"line": 150,
|
|
4699
4761
|
"description": "Creates a container based on this registry.",
|
|
4700
4762
|
"access": "private",
|
|
4701
4763
|
"tagname": "",
|
|
@@ -4717,7 +4779,7 @@
|
|
|
4717
4779
|
},
|
|
4718
4780
|
{
|
|
4719
4781
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
4720
|
-
"line":
|
|
4782
|
+
"line": 162,
|
|
4721
4783
|
"description": "Registers a factory for later injection.\n\nExample:\n\n```javascript\nlet registry = new Registry();\n\nregistry.register('model:user', Person, {singleton: false });\nregistry.register('fruit:favorite', Orange);\nregistry.register('communication:main', Email, {singleton: false});\n```",
|
|
4722
4784
|
"access": "private",
|
|
4723
4785
|
"tagname": "",
|
|
@@ -4745,7 +4807,7 @@
|
|
|
4745
4807
|
},
|
|
4746
4808
|
{
|
|
4747
4809
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
4748
|
-
"line":
|
|
4810
|
+
"line": 198,
|
|
4749
4811
|
"description": "Unregister a fullName\n\n```javascript\nlet registry = new Registry();\nregistry.register('model:user', User);\n\nregistry.resolve('model:user').create() instanceof User //=> true\n\nregistry.unregister('model:user')\nregistry.resolve('model:user') === undefined //=> true\n```",
|
|
4750
4812
|
"access": "private",
|
|
4751
4813
|
"tagname": "",
|
|
@@ -4763,7 +4825,7 @@
|
|
|
4763
4825
|
},
|
|
4764
4826
|
{
|
|
4765
4827
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
4766
|
-
"line":
|
|
4828
|
+
"line": 228,
|
|
4767
4829
|
"description": "Given a fullName return the corresponding factory.\n\nBy default `resolve` will retrieve the factory from\nthe registry.\n\n```javascript\nlet registry = new Registry();\nregistry.register('api:twitter', Twitter);\n\nregistry.resolve('api:twitter') // => Twitter\n```\n\nOptionally the registry can be provided with a custom resolver.\nIf provided, `resolve` will first provide the custom resolver\nthe opportunity to resolve the fullName, otherwise it will fallback\nto the registry.\n\n```javascript\nlet registry = new Registry();\nregistry.resolver = function(fullName) {\n // lookup via the module system of choice\n };\n\n// the twitter factory is added to the module system\nregistry.resolve('api:twitter') // => Twitter\n```",
|
|
4768
4830
|
"access": "private",
|
|
4769
4831
|
"tagname": "",
|
|
@@ -4799,7 +4861,7 @@
|
|
|
4799
4861
|
},
|
|
4800
4862
|
{
|
|
4801
4863
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
4802
|
-
"line":
|
|
4864
|
+
"line": 271,
|
|
4803
4865
|
"description": "A hook that can be used to describe how the resolver will\nattempt to find the factory.\n\nFor example, the default Ember `.describe` returns the full\nclass name (including namespace) where Ember's resolver expects\nto find the `fullName`.",
|
|
4804
4866
|
"access": "private",
|
|
4805
4867
|
"tagname": "",
|
|
@@ -4821,7 +4883,7 @@
|
|
|
4821
4883
|
},
|
|
4822
4884
|
{
|
|
4823
4885
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
4824
|
-
"line":
|
|
4886
|
+
"line": 294,
|
|
4825
4887
|
"description": "A hook to enable custom fullName normalization behavior",
|
|
4826
4888
|
"access": "private",
|
|
4827
4889
|
"tagname": "",
|
|
@@ -4843,7 +4905,7 @@
|
|
|
4843
4905
|
},
|
|
4844
4906
|
{
|
|
4845
4907
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
4846
|
-
"line":
|
|
4908
|
+
"line": 312,
|
|
4847
4909
|
"description": "Normalize a fullName based on the application's conventions",
|
|
4848
4910
|
"access": "private",
|
|
4849
4911
|
"tagname": "",
|
|
@@ -4865,7 +4927,7 @@
|
|
|
4865
4927
|
},
|
|
4866
4928
|
{
|
|
4867
4929
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
4868
|
-
"line":
|
|
4930
|
+
"line": 327,
|
|
4869
4931
|
"itemtype": "method",
|
|
4870
4932
|
"name": "makeToString",
|
|
4871
4933
|
"access": "private",
|
|
@@ -4891,7 +4953,7 @@
|
|
|
4891
4953
|
},
|
|
4892
4954
|
{
|
|
4893
4955
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
4894
|
-
"line":
|
|
4956
|
+
"line": 345,
|
|
4895
4957
|
"description": "Given a fullName check if the container is aware of its factory\nor singleton instance.",
|
|
4896
4958
|
"access": "private",
|
|
4897
4959
|
"tagname": "",
|
|
@@ -4927,7 +4989,7 @@
|
|
|
4927
4989
|
},
|
|
4928
4990
|
{
|
|
4929
4991
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
4930
|
-
"line":
|
|
4992
|
+
"line": 364,
|
|
4931
4993
|
"description": "Allow registering options for all factories of a type.\n\n```javascript\nlet registry = new Registry();\nlet container = registry.container();\n\n// if all of type `connection` must not be singletons\nregistry.optionsForType('connection', { singleton: false });\n\nregistry.register('connection:twitter', TwitterConnection);\nregistry.register('connection:facebook', FacebookConnection);\n\nlet twitter = container.lookup('connection:twitter');\nlet twitter2 = container.lookup('connection:twitter');\n\ntwitter === twitter2; // => false\n\nlet facebook = container.lookup('connection:facebook');\nlet facebook2 = container.lookup('connection:facebook');\n\nfacebook === facebook2; // => false\n```",
|
|
4932
4994
|
"access": "private",
|
|
4933
4995
|
"tagname": "",
|
|
@@ -4950,7 +5012,7 @@
|
|
|
4950
5012
|
},
|
|
4951
5013
|
{
|
|
4952
5014
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
4953
|
-
"line":
|
|
5015
|
+
"line": 405,
|
|
4954
5016
|
"access": "private",
|
|
4955
5017
|
"tagname": "",
|
|
4956
5018
|
"itemtype": "method",
|
|
@@ -4972,14 +5034,14 @@
|
|
|
4972
5034
|
},
|
|
4973
5035
|
{
|
|
4974
5036
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
4975
|
-
"line":
|
|
5037
|
+
"line": 448,
|
|
4976
5038
|
"description": "This is deprecated in favor of explicit injection of dependencies.\n\nReference: https://deprecations.emberjs.com/v3.x#toc_implicit-injections\n```\n\n@private\n@method injection\n@param {String} factoryName\n@param {String} property\n@param {String} injectionName\n@deprecated",
|
|
4977
5039
|
"class": "Registry",
|
|
4978
5040
|
"module": "rsvp"
|
|
4979
5041
|
},
|
|
4980
5042
|
{
|
|
4981
5043
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
4982
|
-
"line":
|
|
5044
|
+
"line": 478,
|
|
4983
5045
|
"access": "private",
|
|
4984
5046
|
"tagname": "",
|
|
4985
5047
|
"itemtype": "method",
|
|
@@ -5099,20 +5161,19 @@
|
|
|
5099
5161
|
"module": "rsvp"
|
|
5100
5162
|
},
|
|
5101
5163
|
{
|
|
5102
|
-
"file": "packages/@ember/-internals/extension-support/lib/container_debug_adapter.
|
|
5103
|
-
"line":
|
|
5164
|
+
"file": "packages/@ember/-internals/extension-support/lib/container_debug_adapter.ts",
|
|
5165
|
+
"line": 57,
|
|
5104
5166
|
"description": "The resolver instance of the application\nbeing debugged. This property will be injected\non creation.",
|
|
5105
5167
|
"itemtype": "property",
|
|
5106
5168
|
"name": "resolver",
|
|
5107
|
-
"default": "null",
|
|
5108
5169
|
"access": "public",
|
|
5109
5170
|
"tagname": "",
|
|
5110
5171
|
"class": "ContainerDebugAdapter",
|
|
5111
5172
|
"module": "@ember/debug"
|
|
5112
5173
|
},
|
|
5113
5174
|
{
|
|
5114
|
-
"file": "packages/@ember/-internals/extension-support/lib/container_debug_adapter.
|
|
5115
|
-
"line":
|
|
5175
|
+
"file": "packages/@ember/-internals/extension-support/lib/container_debug_adapter.ts",
|
|
5176
|
+
"line": 67,
|
|
5116
5177
|
"description": "Returns true if it is possible to catalog a list of available\nclasses in the resolver for a given type.",
|
|
5117
5178
|
"itemtype": "method",
|
|
5118
5179
|
"name": "canCatalogEntriesByType",
|
|
@@ -5133,8 +5194,8 @@
|
|
|
5133
5194
|
"module": "@ember/debug"
|
|
5134
5195
|
},
|
|
5135
5196
|
{
|
|
5136
|
-
"file": "packages/@ember/-internals/extension-support/lib/container_debug_adapter.
|
|
5137
|
-
"line":
|
|
5197
|
+
"file": "packages/@ember/-internals/extension-support/lib/container_debug_adapter.ts",
|
|
5198
|
+
"line": 84,
|
|
5138
5199
|
"description": "Returns the available classes a given type.",
|
|
5139
5200
|
"itemtype": "method",
|
|
5140
5201
|
"name": "catalogEntriesByType",
|
|
@@ -5155,8 +5216,8 @@
|
|
|
5155
5216
|
"module": "@ember/debug"
|
|
5156
5217
|
},
|
|
5157
5218
|
{
|
|
5158
|
-
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.
|
|
5159
|
-
"line":
|
|
5219
|
+
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.ts",
|
|
5220
|
+
"line": 214,
|
|
5160
5221
|
"description": "The container-debug-adapter which is used\nto list all models.",
|
|
5161
5222
|
"itemtype": "property",
|
|
5162
5223
|
"name": "containerDebugAdapter",
|
|
@@ -5168,8 +5229,8 @@
|
|
|
5168
5229
|
"module": "@ember/debug"
|
|
5169
5230
|
},
|
|
5170
5231
|
{
|
|
5171
|
-
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.
|
|
5172
|
-
"line":
|
|
5232
|
+
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.ts",
|
|
5233
|
+
"line": 224,
|
|
5173
5234
|
"description": "The number of attributes to send\nas columns. (Enough to make the record\nidentifiable).",
|
|
5174
5235
|
"access": "private",
|
|
5175
5236
|
"tagname": "",
|
|
@@ -5181,8 +5242,8 @@
|
|
|
5181
5242
|
"module": "@ember/debug"
|
|
5182
5243
|
},
|
|
5183
5244
|
{
|
|
5184
|
-
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.
|
|
5185
|
-
"line":
|
|
5245
|
+
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.ts",
|
|
5246
|
+
"line": 236,
|
|
5186
5247
|
"description": "Ember Data > v1.0.0-beta.18\nrequires string model names to be passed\naround instead of the actual factories.\n\nThis is a stamp for the Ember Inspector\nto differentiate between the versions\nto be able to support older versions too.",
|
|
5187
5248
|
"access": "public",
|
|
5188
5249
|
"tagname": "",
|
|
@@ -5192,8 +5253,8 @@
|
|
|
5192
5253
|
"module": "@ember/debug"
|
|
5193
5254
|
},
|
|
5194
5255
|
{
|
|
5195
|
-
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.
|
|
5196
|
-
"line":
|
|
5256
|
+
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.ts",
|
|
5257
|
+
"line": 250,
|
|
5197
5258
|
"description": "Map from records arrays to RecordsWatcher instances",
|
|
5198
5259
|
"access": "private",
|
|
5199
5260
|
"tagname": "",
|
|
@@ -5204,8 +5265,8 @@
|
|
|
5204
5265
|
"module": "@ember/debug"
|
|
5205
5266
|
},
|
|
5206
5267
|
{
|
|
5207
|
-
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.
|
|
5208
|
-
"line":
|
|
5268
|
+
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.ts",
|
|
5269
|
+
"line": 258,
|
|
5209
5270
|
"description": "Map from records arrays to TypeWatcher instances",
|
|
5210
5271
|
"access": "private",
|
|
5211
5272
|
"tagname": "",
|
|
@@ -5216,8 +5277,8 @@
|
|
|
5216
5277
|
"module": "@ember/debug"
|
|
5217
5278
|
},
|
|
5218
5279
|
{
|
|
5219
|
-
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.
|
|
5220
|
-
"line":
|
|
5280
|
+
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.ts",
|
|
5281
|
+
"line": 266,
|
|
5221
5282
|
"description": "Callback that is currently scheduled on backburner end to flush and check\nall active watchers.",
|
|
5222
5283
|
"access": "private",
|
|
5223
5284
|
"tagname": "",
|
|
@@ -5228,8 +5289,8 @@
|
|
|
5228
5289
|
"module": "@ember/debug"
|
|
5229
5290
|
},
|
|
5230
5291
|
{
|
|
5231
|
-
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.
|
|
5232
|
-
"line":
|
|
5292
|
+
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.ts",
|
|
5293
|
+
"line": 276,
|
|
5233
5294
|
"description": "Stores all methods that clear observers.\nThese methods will be called on destruction.",
|
|
5234
5295
|
"access": "private",
|
|
5235
5296
|
"tagname": "",
|
|
@@ -5240,8 +5301,8 @@
|
|
|
5240
5301
|
"module": "@ember/debug"
|
|
5241
5302
|
},
|
|
5242
5303
|
{
|
|
5243
|
-
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.
|
|
5244
|
-
"line":
|
|
5304
|
+
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.ts",
|
|
5305
|
+
"line": 285,
|
|
5245
5306
|
"description": "Specifies how records can be filtered.\nRecords returned will need to have a `filterValues`\nproperty with a key for every name in the returned array.",
|
|
5246
5307
|
"access": "public",
|
|
5247
5308
|
"tagname": "",
|
|
@@ -5255,8 +5316,8 @@
|
|
|
5255
5316
|
"module": "@ember/debug"
|
|
5256
5317
|
},
|
|
5257
5318
|
{
|
|
5258
|
-
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.
|
|
5259
|
-
"line":
|
|
5319
|
+
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.ts",
|
|
5320
|
+
"line": 299,
|
|
5260
5321
|
"description": "Fetch the model types and observe them for changes.",
|
|
5261
5322
|
"access": "public",
|
|
5262
5323
|
"tagname": "",
|
|
@@ -5282,8 +5343,8 @@
|
|
|
5282
5343
|
"module": "@ember/debug"
|
|
5283
5344
|
},
|
|
5284
5345
|
{
|
|
5285
|
-
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.
|
|
5286
|
-
"line":
|
|
5346
|
+
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.ts",
|
|
5347
|
+
"line": 347,
|
|
5287
5348
|
"description": "Fetch the records of a given type and observe them for changes.",
|
|
5288
5349
|
"access": "public",
|
|
5289
5350
|
"tagname": "",
|
|
@@ -5319,8 +5380,8 @@
|
|
|
5319
5380
|
"module": "@ember/debug"
|
|
5320
5381
|
},
|
|
5321
5382
|
{
|
|
5322
|
-
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.
|
|
5323
|
-
"line":
|
|
5383
|
+
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.ts",
|
|
5384
|
+
"line": 419,
|
|
5324
5385
|
"description": "Clear all observers before destruction",
|
|
5325
5386
|
"access": "private",
|
|
5326
5387
|
"tagname": "",
|
|
@@ -5330,8 +5391,8 @@
|
|
|
5330
5391
|
"module": "@ember/debug"
|
|
5331
5392
|
},
|
|
5332
5393
|
{
|
|
5333
|
-
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.
|
|
5334
|
-
"line":
|
|
5394
|
+
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.ts",
|
|
5395
|
+
"line": 437,
|
|
5335
5396
|
"description": "Detect whether a class is a model.\n\nTest that against the model class\nof your persistence library.",
|
|
5336
5397
|
"access": "public",
|
|
5337
5398
|
"tagname": "",
|
|
@@ -5344,8 +5405,8 @@
|
|
|
5344
5405
|
"module": "@ember/debug"
|
|
5345
5406
|
},
|
|
5346
5407
|
{
|
|
5347
|
-
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.
|
|
5348
|
-
"line":
|
|
5408
|
+
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.ts",
|
|
5409
|
+
"line": 451,
|
|
5349
5410
|
"description": "Get the columns for a given model type.",
|
|
5350
5411
|
"access": "public",
|
|
5351
5412
|
"tagname": "",
|
|
@@ -5359,8 +5420,8 @@
|
|
|
5359
5420
|
"module": "@ember/debug"
|
|
5360
5421
|
},
|
|
5361
5422
|
{
|
|
5362
|
-
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.
|
|
5363
|
-
"line":
|
|
5423
|
+
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.ts",
|
|
5424
|
+
"line": 464,
|
|
5364
5425
|
"description": "Adds observers to a model type class.",
|
|
5365
5426
|
"access": "private",
|
|
5366
5427
|
"tagname": "",
|
|
@@ -5386,8 +5447,8 @@
|
|
|
5386
5447
|
"module": "@ember/debug"
|
|
5387
5448
|
},
|
|
5388
5449
|
{
|
|
5389
|
-
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.
|
|
5390
|
-
"line":
|
|
5450
|
+
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.ts",
|
|
5451
|
+
"line": 501,
|
|
5391
5452
|
"description": "Wraps a given model type and observes changes to it.",
|
|
5392
5453
|
"access": "private",
|
|
5393
5454
|
"tagname": "",
|
|
@@ -5406,15 +5467,15 @@
|
|
|
5406
5467
|
}
|
|
5407
5468
|
],
|
|
5408
5469
|
"return": {
|
|
5409
|
-
"description": "
|
|
5470
|
+
"description": "The wrapped type has the following format:\n name: {String} The name of the type.\n count: {Integer} The number of records available.\n columns: {Columns} An array of columns to describe the record.\n object: {Class} The actual Model type class.",
|
|
5410
5471
|
"type": "Object"
|
|
5411
5472
|
},
|
|
5412
5473
|
"class": "DataAdapter",
|
|
5413
5474
|
"module": "@ember/debug"
|
|
5414
5475
|
},
|
|
5415
5476
|
{
|
|
5416
|
-
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.
|
|
5417
|
-
"line":
|
|
5477
|
+
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.ts",
|
|
5478
|
+
"line": 525,
|
|
5418
5479
|
"description": "Fetches all models defined in the application.",
|
|
5419
5480
|
"access": "private",
|
|
5420
5481
|
"tagname": "",
|
|
@@ -5428,8 +5489,8 @@
|
|
|
5428
5489
|
"module": "@ember/debug"
|
|
5429
5490
|
},
|
|
5430
5491
|
{
|
|
5431
|
-
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.
|
|
5432
|
-
"line":
|
|
5492
|
+
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.ts",
|
|
5493
|
+
"line": 550,
|
|
5433
5494
|
"description": "Loops over all namespaces and all objects\nattached to them.",
|
|
5434
5495
|
"access": "private",
|
|
5435
5496
|
"tagname": "",
|
|
@@ -5443,8 +5504,8 @@
|
|
|
5443
5504
|
"module": "@ember/debug"
|
|
5444
5505
|
},
|
|
5445
5506
|
{
|
|
5446
|
-
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.
|
|
5447
|
-
"line":
|
|
5507
|
+
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.ts",
|
|
5508
|
+
"line": 579,
|
|
5448
5509
|
"description": "Fetches all loaded records for a given type.",
|
|
5449
5510
|
"access": "public",
|
|
5450
5511
|
"tagname": "",
|
|
@@ -5458,8 +5519,8 @@
|
|
|
5458
5519
|
"module": "@ember/debug"
|
|
5459
5520
|
},
|
|
5460
5521
|
{
|
|
5461
|
-
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.
|
|
5462
|
-
"line":
|
|
5522
|
+
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.ts",
|
|
5523
|
+
"line": 592,
|
|
5463
5524
|
"description": "Wraps a record and observers changes to it.",
|
|
5464
5525
|
"access": "private",
|
|
5465
5526
|
"tagname": "",
|
|
@@ -5480,8 +5541,8 @@
|
|
|
5480
5541
|
"module": "@ember/debug"
|
|
5481
5542
|
},
|
|
5482
5543
|
{
|
|
5483
|
-
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.
|
|
5484
|
-
"line":
|
|
5544
|
+
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.ts",
|
|
5545
|
+
"line": 612,
|
|
5485
5546
|
"description": "Gets the values for each column.",
|
|
5486
5547
|
"access": "public",
|
|
5487
5548
|
"tagname": "",
|
|
@@ -5495,8 +5556,8 @@
|
|
|
5495
5556
|
"module": "@ember/debug"
|
|
5496
5557
|
},
|
|
5497
5558
|
{
|
|
5498
|
-
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.
|
|
5499
|
-
"line":
|
|
5559
|
+
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.ts",
|
|
5560
|
+
"line": 624,
|
|
5500
5561
|
"description": "Returns keywords to match when searching records.",
|
|
5501
5562
|
"access": "public",
|
|
5502
5563
|
"tagname": "",
|
|
@@ -5510,8 +5571,8 @@
|
|
|
5510
5571
|
"module": "@ember/debug"
|
|
5511
5572
|
},
|
|
5512
5573
|
{
|
|
5513
|
-
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.
|
|
5514
|
-
"line":
|
|
5574
|
+
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.ts",
|
|
5575
|
+
"line": 635,
|
|
5515
5576
|
"description": "Returns the values of filters defined by `getFilters`.",
|
|
5516
5577
|
"access": "public",
|
|
5517
5578
|
"tagname": "",
|
|
@@ -5532,8 +5593,8 @@
|
|
|
5532
5593
|
"module": "@ember/debug"
|
|
5533
5594
|
},
|
|
5534
5595
|
{
|
|
5535
|
-
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.
|
|
5536
|
-
"line":
|
|
5596
|
+
"file": "packages/@ember/-internals/extension-support/lib/data_adapter.ts",
|
|
5597
|
+
"line": 647,
|
|
5537
5598
|
"description": "Each record can have a color that represents its state.",
|
|
5538
5599
|
"access": "public",
|
|
5539
5600
|
"tagname": "",
|
|
@@ -6179,7 +6240,32 @@
|
|
|
6179
6240
|
},
|
|
6180
6241
|
{
|
|
6181
6242
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6182
|
-
"line":
|
|
6243
|
+
"line": 664,
|
|
6244
|
+
"description": "Layout can be used to wrap content in a component.",
|
|
6245
|
+
"itemtype": "property",
|
|
6246
|
+
"name": "layout",
|
|
6247
|
+
"type": "Function",
|
|
6248
|
+
"access": "public",
|
|
6249
|
+
"tagname": "",
|
|
6250
|
+
"class": "Component",
|
|
6251
|
+
"module": "@ember/component"
|
|
6252
|
+
},
|
|
6253
|
+
{
|
|
6254
|
+
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6255
|
+
"line": 672,
|
|
6256
|
+
"description": "The name of the layout to lookup if no layout is provided.\nBy default `Component` will lookup a template with this name in\n`Ember.TEMPLATES` (a shared global object).",
|
|
6257
|
+
"itemtype": "property",
|
|
6258
|
+
"name": "layoutName",
|
|
6259
|
+
"type": "String",
|
|
6260
|
+
"default": "undefined",
|
|
6261
|
+
"access": "private",
|
|
6262
|
+
"tagname": "",
|
|
6263
|
+
"class": "Component",
|
|
6264
|
+
"module": "@ember/component"
|
|
6265
|
+
},
|
|
6266
|
+
{
|
|
6267
|
+
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6268
|
+
"line": 789,
|
|
6183
6269
|
"description": "Normally, Ember's component model is \"write-only\". The component takes a\nbunch of attributes that it got passed in, and uses them to render its\ntemplate.\n\nOne nice thing about this model is that if you try to set a value to the\nsame thing as last time, Ember (through HTMLBars) will avoid doing any\nwork on the DOM.\n\nThis is not just a performance optimization. If an attribute has not\nchanged, it is important not to clobber the element's \"hidden state\".\nFor example, if you set an input's `value` to the same value as before,\nit will clobber selection state and cursor position. In other words,\nsetting an attribute is not **always** idempotent.\n\nThis method provides a way to read an element's attribute and also\nupdate the last value Ember knows about at the same time. This makes\nsetting an attribute idempotent.\n\nIn particular, what this means is that if you get an `<input>` element's\n`value` attribute and then re-render the template with the same value,\nit will avoid clobbering the cursor and selection position.\nSince most attribute sets are idempotent in the browser, you typically\ncan get away with reading attributes using jQuery, but the most reliable\nway to do so is through this method.",
|
|
6184
6270
|
"itemtype": "method",
|
|
6185
6271
|
"name": "readDOMAttr",
|
|
@@ -6200,7 +6286,7 @@
|
|
|
6200
6286
|
},
|
|
6201
6287
|
{
|
|
6202
6288
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6203
|
-
"line":
|
|
6289
|
+
"line": 840,
|
|
6204
6290
|
"description": "The WAI-ARIA role of the control represented by this view. For example, a\nbutton may have a role of type 'button', or a pane may have a role of\ntype 'alertdialog'. This property is used by assistive software to help\nvisually challenged users navigate rich web applications.\n\nThe full list of valid WAI-ARIA roles is available at:\n[https://www.w3.org/TR/wai-aria/#roles_categorization](https://www.w3.org/TR/wai-aria/#roles_categorization)",
|
|
6205
6291
|
"itemtype": "property",
|
|
6206
6292
|
"name": "ariaRole",
|
|
@@ -6213,7 +6299,7 @@
|
|
|
6213
6299
|
},
|
|
6214
6300
|
{
|
|
6215
6301
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6216
|
-
"line":
|
|
6302
|
+
"line": 855,
|
|
6217
6303
|
"description": "Enables components to take a list of parameters as arguments.\nFor example, a component that takes two parameters with the names\n`name` and `age`:\n\n```app/components/my-component.js\nimport Component from '@ember/component';\n\nlet MyComponent = Component.extend();\n\nMyComponent.reopenClass({\n positionalParams: ['name', 'age']\n});\n\nexport default MyComponent;\n```\n\nIt can then be invoked like this:\n\n```hbs\n{{my-component \"John\" 38}}\n```\n\nThe parameters can be referred to just like named parameters:\n\n```hbs\nName: {{name}}, Age: {{age}}.\n```\n\nUsing a string instead of an array allows for an arbitrary number of\nparameters:\n\n```app/components/my-component.js\nimport Component from '@ember/component';\n\nlet MyComponent = Component.extend();\n\nMyComponent.reopenClass({\n positionalParams: 'names'\n});\n\nexport default MyComponent;\n```\n\nIt can then be invoked like this:\n\n```hbs\n{{my-component \"John\" \"Michael\" \"Scott\"}}\n```\nThe parameters can then be referred to by enumerating over the list:\n\n```hbs\n{{#each names as |name|}}{{name}}{{/each}}\n```",
|
|
6218
6304
|
"static": 1,
|
|
6219
6305
|
"access": "public",
|
|
@@ -6226,7 +6312,7 @@
|
|
|
6226
6312
|
},
|
|
6227
6313
|
{
|
|
6228
6314
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6229
|
-
"line":
|
|
6315
|
+
"line": 916,
|
|
6230
6316
|
"description": "Called when the attributes passed into the component have been updated.\nCalled both during the initial render of a container and during a rerender.\nCan be used in place of an observer; code placed here will be executed\nevery time any attribute updates.",
|
|
6231
6317
|
"itemtype": "method",
|
|
6232
6318
|
"name": "didReceiveAttrs",
|
|
@@ -6238,7 +6324,7 @@
|
|
|
6238
6324
|
},
|
|
6239
6325
|
{
|
|
6240
6326
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6241
|
-
"line":
|
|
6327
|
+
"line": 927,
|
|
6242
6328
|
"description": "Called when the attributes passed into the component have been updated.\nCalled both during the initial render of a container and during a rerender.\nCan be used in place of an observer; code placed here will be executed\nevery time any attribute updates.",
|
|
6243
6329
|
"itemtype": "event",
|
|
6244
6330
|
"name": "didReceiveAttrs",
|
|
@@ -6250,7 +6336,7 @@
|
|
|
6250
6336
|
},
|
|
6251
6337
|
{
|
|
6252
6338
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6253
|
-
"line":
|
|
6339
|
+
"line": 937,
|
|
6254
6340
|
"description": "Called after a component has been rendered, both on initial render and\nin subsequent rerenders.",
|
|
6255
6341
|
"itemtype": "method",
|
|
6256
6342
|
"name": "didRender",
|
|
@@ -6262,7 +6348,7 @@
|
|
|
6262
6348
|
},
|
|
6263
6349
|
{
|
|
6264
6350
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6265
|
-
"line":
|
|
6351
|
+
"line": 946,
|
|
6266
6352
|
"description": "Called after a component has been rendered, both on initial render and\nin subsequent rerenders.",
|
|
6267
6353
|
"itemtype": "event",
|
|
6268
6354
|
"name": "didRender",
|
|
@@ -6274,7 +6360,7 @@
|
|
|
6274
6360
|
},
|
|
6275
6361
|
{
|
|
6276
6362
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6277
|
-
"line":
|
|
6363
|
+
"line": 954,
|
|
6278
6364
|
"description": "Called before a component has been rendered, both on initial render and\nin subsequent rerenders.",
|
|
6279
6365
|
"itemtype": "method",
|
|
6280
6366
|
"name": "willRender",
|
|
@@ -6286,7 +6372,7 @@
|
|
|
6286
6372
|
},
|
|
6287
6373
|
{
|
|
6288
6374
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6289
|
-
"line":
|
|
6375
|
+
"line": 963,
|
|
6290
6376
|
"description": "Called before a component has been rendered, both on initial render and\nin subsequent rerenders.",
|
|
6291
6377
|
"itemtype": "event",
|
|
6292
6378
|
"name": "willRender",
|
|
@@ -6298,7 +6384,7 @@
|
|
|
6298
6384
|
},
|
|
6299
6385
|
{
|
|
6300
6386
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6301
|
-
"line":
|
|
6387
|
+
"line": 971,
|
|
6302
6388
|
"description": "Called when the attributes passed into the component have been changed.\nCalled only during a rerender, not during an initial render.",
|
|
6303
6389
|
"itemtype": "method",
|
|
6304
6390
|
"name": "didUpdateAttrs",
|
|
@@ -6310,7 +6396,7 @@
|
|
|
6310
6396
|
},
|
|
6311
6397
|
{
|
|
6312
6398
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6313
|
-
"line":
|
|
6399
|
+
"line": 980,
|
|
6314
6400
|
"description": "Called when the attributes passed into the component have been changed.\nCalled only during a rerender, not during an initial render.",
|
|
6315
6401
|
"itemtype": "event",
|
|
6316
6402
|
"name": "didUpdateAttrs",
|
|
@@ -6322,7 +6408,7 @@
|
|
|
6322
6408
|
},
|
|
6323
6409
|
{
|
|
6324
6410
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6325
|
-
"line":
|
|
6411
|
+
"line": 988,
|
|
6326
6412
|
"description": "Called when the component is about to update and rerender itself.\nCalled only during a rerender, not during an initial render.",
|
|
6327
6413
|
"itemtype": "method",
|
|
6328
6414
|
"name": "willUpdate",
|
|
@@ -6334,7 +6420,7 @@
|
|
|
6334
6420
|
},
|
|
6335
6421
|
{
|
|
6336
6422
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6337
|
-
"line":
|
|
6423
|
+
"line": 997,
|
|
6338
6424
|
"description": "Called when the component is about to update and rerender itself.\nCalled only during a rerender, not during an initial render.",
|
|
6339
6425
|
"itemtype": "event",
|
|
6340
6426
|
"name": "willUpdate",
|
|
@@ -6346,7 +6432,7 @@
|
|
|
6346
6432
|
},
|
|
6347
6433
|
{
|
|
6348
6434
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6349
|
-
"line":
|
|
6435
|
+
"line": 1005,
|
|
6350
6436
|
"description": "Called when the component has updated and rerendered itself.\nCalled only during a rerender, not during an initial render.",
|
|
6351
6437
|
"itemtype": "method",
|
|
6352
6438
|
"name": "didUpdate",
|
|
@@ -6358,7 +6444,7 @@
|
|
|
6358
6444
|
},
|
|
6359
6445
|
{
|
|
6360
6446
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6361
|
-
"line":
|
|
6447
|
+
"line": 1014,
|
|
6362
6448
|
"description": "Called when the component has updated and rerendered itself.\nCalled only during a rerender, not during an initial render.",
|
|
6363
6449
|
"itemtype": "event",
|
|
6364
6450
|
"name": "didUpdate",
|
|
@@ -6370,32 +6456,7 @@
|
|
|
6370
6456
|
},
|
|
6371
6457
|
{
|
|
6372
6458
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6373
|
-
"line":
|
|
6374
|
-
"description": "Layout can be used to wrap content in a component.",
|
|
6375
|
-
"itemtype": "property",
|
|
6376
|
-
"name": "layout",
|
|
6377
|
-
"type": "Function",
|
|
6378
|
-
"access": "public",
|
|
6379
|
-
"tagname": "",
|
|
6380
|
-
"class": "Component",
|
|
6381
|
-
"module": "@ember/component"
|
|
6382
|
-
},
|
|
6383
|
-
{
|
|
6384
|
-
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6385
|
-
"line": 996,
|
|
6386
|
-
"description": "The name of the layout to lookup if no layout is provided.\nBy default `Component` will lookup a template with this name in\n`Ember.TEMPLATES` (a shared global object).",
|
|
6387
|
-
"itemtype": "property",
|
|
6388
|
-
"name": "layoutName",
|
|
6389
|
-
"type": "String",
|
|
6390
|
-
"default": "null",
|
|
6391
|
-
"access": "private",
|
|
6392
|
-
"tagname": "",
|
|
6393
|
-
"class": "Component",
|
|
6394
|
-
"module": "@ember/component"
|
|
6395
|
-
},
|
|
6396
|
-
{
|
|
6397
|
-
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6398
|
-
"line": 1006,
|
|
6459
|
+
"line": 1022,
|
|
6399
6460
|
"description": "The HTML `id` of the component's element in the DOM. You can provide this\nvalue yourself but it must be unique (just as in HTML):\n\n```handlebars\n{{my-component elementId=\"a-really-cool-id\"}}\n```\n\n```handlebars\n<MyComponent @elementId=\"a-really-cool-id\" />\n```\nIf not manually set a default value will be provided by the framework.\nOnce rendered an element's `elementId` is considered immutable and you\nshould never change it. If you need to compute a dynamic value for the\n`elementId`, you should do this when the component or element is being\ninstantiated:\n\n```javascript\nexport default Component.extend({\n init() {\n this._super(...arguments);\n\n var index = this.get('index');\n this.set('elementId', `component-id${index}`);\n }\n});\n```",
|
|
6400
6461
|
"itemtype": "property",
|
|
6401
6462
|
"name": "elementId",
|
|
@@ -6419,7 +6480,7 @@
|
|
|
6419
6480
|
},
|
|
6420
6481
|
{
|
|
6421
6482
|
"file": "packages/@ember/-internals/glimmer/lib/helper.ts",
|
|
6422
|
-
"line":
|
|
6483
|
+
"line": 89,
|
|
6423
6484
|
"description": "Override this function when writing a class-based helper.",
|
|
6424
6485
|
"itemtype": "method",
|
|
6425
6486
|
"name": "compute",
|
|
@@ -6443,7 +6504,7 @@
|
|
|
6443
6504
|
},
|
|
6444
6505
|
{
|
|
6445
6506
|
"file": "packages/@ember/-internals/glimmer/lib/helper.ts",
|
|
6446
|
-
"line":
|
|
6507
|
+
"line": 109,
|
|
6447
6508
|
"description": "On a class-based helper, it may be useful to force a recomputation of that\nhelpers value. This is akin to `rerender` on a component.\n\nFor example, this component will rerender when the `currentUser` on a\nsession service changes:\n\n```app/helpers/current-user-email.js\nimport Helper from '@ember/component/helper'\nimport { service } from '@ember/service'\nimport { observer } from '@ember/object'\n\nexport default Helper.extend({\n session: service(),\n\n onNewUser: observer('session.currentUser', function() {\n this.recompute();\n }),\n\n compute() {\n return this.get('session.currentUser.email');\n }\n});\n```",
|
|
6448
6509
|
"itemtype": "method",
|
|
6449
6510
|
"name": "recompute",
|
|
@@ -6455,7 +6516,7 @@
|
|
|
6455
6516
|
},
|
|
6456
6517
|
{
|
|
6457
6518
|
"file": "packages/@ember/-internals/glimmer/lib/helper.ts",
|
|
6458
|
-
"line":
|
|
6519
|
+
"line": 246,
|
|
6459
6520
|
"description": "In many cases it is not necessary to use the full `Helper` class.\nThe `helper` method create pure-function helpers without instances.\nFor example:\n\n```app/helpers/format-currency.js\nimport { helper } from '@ember/component/helper';\n\nexport default helper(function([cents], {currency}) {\n return `${currency}${cents * 0.01}`;\n});\n```",
|
|
6460
6521
|
"static": 1,
|
|
6461
6522
|
"params": [
|
|
@@ -7744,7 +7805,7 @@
|
|
|
7744
7805
|
},
|
|
7745
7806
|
{
|
|
7746
7807
|
"file": "packages/@ember/-internals/metal/lib/property_get.ts",
|
|
7747
|
-
"line":
|
|
7808
|
+
"line": 42,
|
|
7748
7809
|
"description": "Gets the value of a property on an object. If the property is computed,\nthe function will be invoked. If the property is not defined but the\nobject implements the `unknownProperty` method then that will be invoked.\n\n```javascript\nimport { get } from '@ember/object';\nget(obj, \"name\");\n```\n\nIf you plan to run on IE8 and older browsers then you should use this\nmethod anytime you want to retrieve a property on an object that you don't\nknow for sure is private. (Properties beginning with an underscore '_'\nare considered private.)\n\nOn all newer browsers, you only need to use this method to retrieve\nproperties if the property might not be defined on the object and you want\nto respect the `unknownProperty` handler. Otherwise you can ignore this\nmethod.\n\nNote that if the object itself is `undefined`, this method will throw\nan error.",
|
|
7749
7810
|
"itemtype": "method",
|
|
7750
7811
|
"name": "get",
|
|
@@ -11075,6 +11136,19 @@
|
|
|
11075
11136
|
"class": "Transition",
|
|
11076
11137
|
"module": "@ember/routing"
|
|
11077
11138
|
},
|
|
11139
|
+
{
|
|
11140
|
+
"file": "packages/@ember/-internals/runtime/lib/mixins/-proxy.d.ts",
|
|
11141
|
+
"line": 6,
|
|
11142
|
+
"description": "The object whose properties will be forwarded.",
|
|
11143
|
+
"itemtype": "property",
|
|
11144
|
+
"name": "content",
|
|
11145
|
+
"type": "{unknown}",
|
|
11146
|
+
"default": "null",
|
|
11147
|
+
"access": "public",
|
|
11148
|
+
"tagname": "",
|
|
11149
|
+
"class": "Ember.ProxyMixin",
|
|
11150
|
+
"module": "@ember/routing"
|
|
11151
|
+
},
|
|
11078
11152
|
{
|
|
11079
11153
|
"file": "packages/@ember/-internals/runtime/lib/mixins/-proxy.js",
|
|
11080
11154
|
"line": 64,
|
|
@@ -12132,7 +12206,7 @@
|
|
|
12132
12206
|
{
|
|
12133
12207
|
"name": "objects",
|
|
12134
12208
|
"description": "the objects to add",
|
|
12135
|
-
"type": "
|
|
12209
|
+
"type": "Enumerable"
|
|
12136
12210
|
}
|
|
12137
12211
|
],
|
|
12138
12212
|
"return": {
|
|
@@ -12418,28 +12492,28 @@
|
|
|
12418
12492
|
},
|
|
12419
12493
|
{
|
|
12420
12494
|
"file": "packages/@ember/-internals/runtime/lib/mixins/evented.d.ts",
|
|
12421
|
-
"line":
|
|
12495
|
+
"line": 23,
|
|
12422
12496
|
"description": "Subscribes a function to a named event and then cancels the subscription\nafter the first time the event is triggered. It is good to use ``one`` when\nyou only care about the first time an event has taken place.",
|
|
12423
12497
|
"class": "Evented",
|
|
12424
12498
|
"module": "@ember/enumerable"
|
|
12425
12499
|
},
|
|
12426
12500
|
{
|
|
12427
12501
|
"file": "packages/@ember/-internals/runtime/lib/mixins/evented.d.ts",
|
|
12428
|
-
"line":
|
|
12502
|
+
"line": 34,
|
|
12429
12503
|
"description": "Triggers a named event for the object. Any additional arguments\nwill be passed as parameters to the functions that are subscribed to the\nevent.",
|
|
12430
12504
|
"class": "Evented",
|
|
12431
12505
|
"module": "@ember/enumerable"
|
|
12432
12506
|
},
|
|
12433
12507
|
{
|
|
12434
12508
|
"file": "packages/@ember/-internals/runtime/lib/mixins/evented.d.ts",
|
|
12435
|
-
"line":
|
|
12509
|
+
"line": 40,
|
|
12436
12510
|
"description": "Cancels subscription for given name, target, and method.",
|
|
12437
12511
|
"class": "Evented",
|
|
12438
12512
|
"module": "@ember/enumerable"
|
|
12439
12513
|
},
|
|
12440
12514
|
{
|
|
12441
12515
|
"file": "packages/@ember/-internals/runtime/lib/mixins/evented.d.ts",
|
|
12442
|
-
"line":
|
|
12516
|
+
"line": 49,
|
|
12443
12517
|
"description": "Checks to see if object has any subscriptions for named event.",
|
|
12444
12518
|
"class": "Evented",
|
|
12445
12519
|
"module": "@ember/enumerable"
|
|
@@ -13509,13 +13583,25 @@
|
|
|
13509
13583
|
},
|
|
13510
13584
|
{
|
|
13511
13585
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13512
|
-
"line":
|
|
13586
|
+
"line": 14,
|
|
13513
13587
|
"class": "CoreObject",
|
|
13514
13588
|
"module": "@ember/array"
|
|
13515
13589
|
},
|
|
13516
13590
|
{
|
|
13517
13591
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13518
|
-
"line":
|
|
13592
|
+
"line": 17,
|
|
13593
|
+
"class": "CoreObject",
|
|
13594
|
+
"module": "@ember/array"
|
|
13595
|
+
},
|
|
13596
|
+
{
|
|
13597
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13598
|
+
"line": 22,
|
|
13599
|
+
"class": "CoreObject",
|
|
13600
|
+
"module": "@ember/array"
|
|
13601
|
+
},
|
|
13602
|
+
{
|
|
13603
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13604
|
+
"line": 24,
|
|
13519
13605
|
"class": "CoreObject",
|
|
13520
13606
|
"module": "@ember/array"
|
|
13521
13607
|
},
|
|
@@ -13528,26 +13614,56 @@
|
|
|
13528
13614
|
{
|
|
13529
13615
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13530
13616
|
"line": 33,
|
|
13617
|
+
"class": "CoreObject",
|
|
13618
|
+
"module": "@ember/array"
|
|
13619
|
+
},
|
|
13620
|
+
{
|
|
13621
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13622
|
+
"line": 36,
|
|
13623
|
+
"class": "CoreObject",
|
|
13624
|
+
"module": "@ember/array"
|
|
13625
|
+
},
|
|
13626
|
+
{
|
|
13627
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13628
|
+
"line": 44,
|
|
13629
|
+
"class": "CoreObject",
|
|
13630
|
+
"module": "@ember/array"
|
|
13631
|
+
},
|
|
13632
|
+
{
|
|
13633
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13634
|
+
"line": 50,
|
|
13635
|
+
"class": "CoreObject",
|
|
13636
|
+
"module": "@ember/array"
|
|
13637
|
+
},
|
|
13638
|
+
{
|
|
13639
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13640
|
+
"line": 53,
|
|
13641
|
+
"class": "CoreObject",
|
|
13642
|
+
"module": "@ember/array"
|
|
13643
|
+
},
|
|
13644
|
+
{
|
|
13645
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13646
|
+
"line": 56,
|
|
13531
13647
|
"description": "CoreObject constructor takes owner.",
|
|
13532
13648
|
"class": "CoreObject",
|
|
13533
13649
|
"module": "@ember/array"
|
|
13534
13650
|
},
|
|
13535
13651
|
{
|
|
13536
13652
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13537
|
-
"line":
|
|
13653
|
+
"line": 61,
|
|
13538
13654
|
"class": "CoreObject",
|
|
13539
13655
|
"module": "@ember/array"
|
|
13540
13656
|
},
|
|
13541
13657
|
{
|
|
13542
13658
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13543
|
-
"line":
|
|
13659
|
+
"line": 64,
|
|
13544
13660
|
"description": "An overridable method called when objects are instantiated. By default,\ndoes nothing unless it is overridden during class definition.",
|
|
13545
13661
|
"class": "CoreObject",
|
|
13546
13662
|
"module": "@ember/array"
|
|
13547
13663
|
},
|
|
13548
13664
|
{
|
|
13549
13665
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13550
|
-
"line":
|
|
13666
|
+
"line": 70,
|
|
13551
13667
|
"description": "Defines the properties that will be concatenated from the superclass (instead of overridden).",
|
|
13552
13668
|
"default": "null",
|
|
13553
13669
|
"class": "CoreObject",
|
|
@@ -13555,7 +13671,7 @@
|
|
|
13555
13671
|
},
|
|
13556
13672
|
{
|
|
13557
13673
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13558
|
-
"line":
|
|
13674
|
+
"line": 76,
|
|
13559
13675
|
"description": "Destroyed object property flag. If this property is true the observers and bindings were\nalready removed by the effect of calling the destroy() method.",
|
|
13560
13676
|
"default": "false",
|
|
13561
13677
|
"class": "CoreObject",
|
|
@@ -13563,7 +13679,7 @@
|
|
|
13563
13679
|
},
|
|
13564
13680
|
{
|
|
13565
13681
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13566
|
-
"line":
|
|
13682
|
+
"line": 82,
|
|
13567
13683
|
"description": "Destruction scheduled flag. The destroy() method has been called. The object stays intact\nuntil the end of the run loop at which point the isDestroyed flag is set.",
|
|
13568
13684
|
"default": "false",
|
|
13569
13685
|
"class": "CoreObject",
|
|
@@ -13571,7 +13687,7 @@
|
|
|
13571
13687
|
},
|
|
13572
13688
|
{
|
|
13573
13689
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13574
|
-
"line":
|
|
13690
|
+
"line": 90,
|
|
13575
13691
|
"description": "Destroys an object by setting the `isDestroyed` flag and removing its\nmetadata, which effectively destroys observers and bindings.\nIf you try to set a property on a destroyed object, an exception will be\nraised.\nNote that destruction is scheduled for the end of the run loop and does not\nhappen immediately. It will set an isDestroying flag immediately.",
|
|
13576
13692
|
"return": {
|
|
13577
13693
|
"description": "receiver"
|
|
@@ -13581,14 +13697,14 @@
|
|
|
13581
13697
|
},
|
|
13582
13698
|
{
|
|
13583
13699
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13584
|
-
"line":
|
|
13700
|
+
"line": 101,
|
|
13585
13701
|
"description": "Override to implement teardown.",
|
|
13586
13702
|
"class": "CoreObject",
|
|
13587
13703
|
"module": "@ember/array"
|
|
13588
13704
|
},
|
|
13589
13705
|
{
|
|
13590
13706
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13591
|
-
"line":
|
|
13707
|
+
"line": 106,
|
|
13592
13708
|
"description": "Returns a string representation which attempts to provide more information than Javascript's toString\ntypically does, in a generic way for all Ember objects (e.g., \"<App.Person:ember1024>\").",
|
|
13593
13709
|
"return": {
|
|
13594
13710
|
"description": "string representation"
|
|
@@ -13598,19 +13714,19 @@
|
|
|
13598
13714
|
},
|
|
13599
13715
|
{
|
|
13600
13716
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13601
|
-
"line":
|
|
13717
|
+
"line": 118,
|
|
13602
13718
|
"class": "CoreObject",
|
|
13603
13719
|
"module": "@ember/array"
|
|
13604
13720
|
},
|
|
13605
13721
|
{
|
|
13606
13722
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13607
|
-
"line":
|
|
13723
|
+
"line": 124,
|
|
13608
13724
|
"class": "CoreObject",
|
|
13609
13725
|
"module": "@ember/array"
|
|
13610
13726
|
},
|
|
13611
13727
|
{
|
|
13612
13728
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13613
|
-
"line":
|
|
13729
|
+
"line": 127,
|
|
13614
13730
|
"description": "Iterate over each computed property for the class, passing its name and any\nassociated metadata (see metaForProperty) to the callback.",
|
|
13615
13731
|
"internal": "",
|
|
13616
13732
|
"class": "CoreObject",
|
|
@@ -13618,7 +13734,7 @@
|
|
|
13618
13734
|
},
|
|
13619
13735
|
{
|
|
13620
13736
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13621
|
-
"line":
|
|
13737
|
+
"line": 133,
|
|
13622
13738
|
"description": "Returns the original hash that was passed to meta().",
|
|
13623
13739
|
"params": [
|
|
13624
13740
|
{
|
|
@@ -13632,13 +13748,19 @@
|
|
|
13632
13748
|
},
|
|
13633
13749
|
{
|
|
13634
13750
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13635
|
-
"line":
|
|
13751
|
+
"line": 140,
|
|
13752
|
+
"class": "CoreObject",
|
|
13753
|
+
"module": "@ember/array"
|
|
13754
|
+
},
|
|
13755
|
+
{
|
|
13756
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13757
|
+
"line": 143,
|
|
13636
13758
|
"class": "CoreObject",
|
|
13637
13759
|
"module": "@ember/array"
|
|
13638
13760
|
},
|
|
13639
13761
|
{
|
|
13640
13762
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13641
|
-
"line":
|
|
13763
|
+
"line": 146,
|
|
13642
13764
|
"class": "CoreObject",
|
|
13643
13765
|
"module": "@ember/array"
|
|
13644
13766
|
},
|
|
@@ -14506,6 +14628,12 @@
|
|
|
14506
14628
|
"class": "Ember.EventDispatcher",
|
|
14507
14629
|
"module": "ember"
|
|
14508
14630
|
},
|
|
14631
|
+
{
|
|
14632
|
+
"file": "packages/@ember/-internals/views/lib/system/event_dispatcher.d.ts",
|
|
14633
|
+
"line": 8,
|
|
14634
|
+
"class": "Ember.EventDispatcher",
|
|
14635
|
+
"module": "ember"
|
|
14636
|
+
},
|
|
14509
14637
|
{
|
|
14510
14638
|
"file": "packages/@ember/-internals/views/lib/system/event_dispatcher.js",
|
|
14511
14639
|
"line": 27,
|
|
@@ -14619,7 +14747,7 @@
|
|
|
14619
14747
|
},
|
|
14620
14748
|
{
|
|
14621
14749
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14622
|
-
"line":
|
|
14750
|
+
"line": 35,
|
|
14623
14751
|
"access": "private",
|
|
14624
14752
|
"tagname": "",
|
|
14625
14753
|
"itemtype": "method",
|
|
@@ -14636,7 +14764,7 @@
|
|
|
14636
14764
|
},
|
|
14637
14765
|
{
|
|
14638
14766
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14639
|
-
"line":
|
|
14767
|
+
"line": 57,
|
|
14640
14768
|
"access": "private",
|
|
14641
14769
|
"tagname": "",
|
|
14642
14770
|
"itemtype": "method",
|
|
@@ -14653,7 +14781,7 @@
|
|
|
14653
14781
|
},
|
|
14654
14782
|
{
|
|
14655
14783
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14656
|
-
"line":
|
|
14784
|
+
"line": 77,
|
|
14657
14785
|
"access": "private",
|
|
14658
14786
|
"tagname": "",
|
|
14659
14787
|
"itemtype": "method",
|
|
@@ -14670,7 +14798,7 @@
|
|
|
14670
14798
|
},
|
|
14671
14799
|
{
|
|
14672
14800
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14673
|
-
"line":
|
|
14801
|
+
"line": 109,
|
|
14674
14802
|
"access": "private",
|
|
14675
14803
|
"tagname": "",
|
|
14676
14804
|
"itemtype": "method",
|
|
@@ -14687,7 +14815,7 @@
|
|
|
14687
14815
|
},
|
|
14688
14816
|
{
|
|
14689
14817
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14690
|
-
"line":
|
|
14818
|
+
"line": 152,
|
|
14691
14819
|
"access": "private",
|
|
14692
14820
|
"tagname": "",
|
|
14693
14821
|
"itemtype": "method",
|
|
@@ -14704,7 +14832,7 @@
|
|
|
14704
14832
|
},
|
|
14705
14833
|
{
|
|
14706
14834
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14707
|
-
"line":
|
|
14835
|
+
"line": 161,
|
|
14708
14836
|
"access": "private",
|
|
14709
14837
|
"tagname": "",
|
|
14710
14838
|
"itemtype": "method",
|
|
@@ -14721,7 +14849,7 @@
|
|
|
14721
14849
|
},
|
|
14722
14850
|
{
|
|
14723
14851
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14724
|
-
"line":
|
|
14852
|
+
"line": 176,
|
|
14725
14853
|
"description": "`getViewClientRects` provides information about the position of the border\nbox edges of a view relative to the viewport.\n\nIt is only intended to be used by development tools like the Ember Inspector\nand may not work on older browsers.",
|
|
14726
14854
|
"access": "private",
|
|
14727
14855
|
"tagname": "",
|
|
@@ -14739,7 +14867,7 @@
|
|
|
14739
14867
|
},
|
|
14740
14868
|
{
|
|
14741
14869
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14742
|
-
"line":
|
|
14870
|
+
"line": 192,
|
|
14743
14871
|
"description": "`getViewBoundingClientRect` provides information about the position of the\nbounding border box edges of a view relative to the viewport.\n\nIt is only intended to be used by development tools like the Ember Inspector\nand may not work on older browsers.",
|
|
14744
14872
|
"access": "private",
|
|
14745
14873
|
"tagname": "",
|
|
@@ -14757,7 +14885,7 @@
|
|
|
14757
14885
|
},
|
|
14758
14886
|
{
|
|
14759
14887
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14760
|
-
"line":
|
|
14888
|
+
"line": 208,
|
|
14761
14889
|
"description": "Determines if the element matches the specified selector.",
|
|
14762
14890
|
"access": "private",
|
|
14763
14891
|
"tagname": "",
|
|
@@ -14779,8 +14907,8 @@
|
|
|
14779
14907
|
"module": "ember"
|
|
14780
14908
|
},
|
|
14781
14909
|
{
|
|
14782
|
-
"file": "packages/@ember/-internals/views/lib/views/core_view.
|
|
14783
|
-
"line":
|
|
14910
|
+
"file": "packages/@ember/-internals/views/lib/views/core_view.ts",
|
|
14911
|
+
"line": 39,
|
|
14784
14912
|
"description": "If the view is currently inserted into the DOM of a parent view, this\nproperty will point to the parent of the view.",
|
|
14785
14913
|
"itemtype": "property",
|
|
14786
14914
|
"name": "parentView",
|
|
@@ -14793,8 +14921,8 @@
|
|
|
14793
14921
|
"namespace": "Ember"
|
|
14794
14922
|
},
|
|
14795
14923
|
{
|
|
14796
|
-
"file": "packages/@ember/-internals/views/lib/views/core_view.
|
|
14797
|
-
"line":
|
|
14924
|
+
"file": "packages/@ember/-internals/views/lib/views/core_view.ts",
|
|
14925
|
+
"line": 57,
|
|
14798
14926
|
"description": "Override the default event firing from `Evented` to\nalso call methods with the given name.",
|
|
14799
14927
|
"itemtype": "method",
|
|
14800
14928
|
"name": "trigger",
|
|
@@ -14811,6 +14939,13 @@
|
|
|
14811
14939
|
"module": "ember",
|
|
14812
14940
|
"namespace": "Ember"
|
|
14813
14941
|
},
|
|
14942
|
+
{
|
|
14943
|
+
"file": "packages/@ember/application/lib/application.d.ts",
|
|
14944
|
+
"line": 17,
|
|
14945
|
+
"class": "Application",
|
|
14946
|
+
"module": "ember",
|
|
14947
|
+
"namespace": "Ember"
|
|
14948
|
+
},
|
|
14814
14949
|
{
|
|
14815
14950
|
"file": "packages/@ember/application/lib/application.js",
|
|
14816
14951
|
"line": 185,
|
|
@@ -17411,6 +17546,21 @@
|
|
|
17411
17546
|
"class": "@ember/polyfills",
|
|
17412
17547
|
"module": "@ember/polyfills"
|
|
17413
17548
|
},
|
|
17549
|
+
{
|
|
17550
|
+
"file": "packages/@ember/renderer/index.ts",
|
|
17551
|
+
"line": 11,
|
|
17552
|
+
"description": "Returns a promise which will resolve when rendering has settled. Settled in\nthis context is defined as when all of the tags in use are \"current\" (e.g.\n`renderers.every(r => r._isValid())`). When this is checked at the _end_ of\nthe run loop, this essentially guarantees that all rendering is completed.",
|
|
17553
|
+
"itemtype": "method",
|
|
17554
|
+
"name": "renderSettled",
|
|
17555
|
+
"return": {
|
|
17556
|
+
"description": "a promise which fulfills when rendering has settled",
|
|
17557
|
+
"type": "Promise<void>"
|
|
17558
|
+
},
|
|
17559
|
+
"access": "public",
|
|
17560
|
+
"tagname": "",
|
|
17561
|
+
"class": "Renderer",
|
|
17562
|
+
"module": "@ember/renderer"
|
|
17563
|
+
},
|
|
17414
17564
|
{
|
|
17415
17565
|
"file": "packages/@ember/runloop/index.ts",
|
|
17416
17566
|
"line": 60,
|
|
@@ -17422,7 +17572,7 @@
|
|
|
17422
17572
|
"access": "private",
|
|
17423
17573
|
"tagname": "",
|
|
17424
17574
|
"class": "@ember/runloop",
|
|
17425
|
-
"module": "@ember/
|
|
17575
|
+
"module": "@ember/renderer"
|
|
17426
17576
|
},
|
|
17427
17577
|
{
|
|
17428
17578
|
"file": "packages/@ember/runloop/index.ts",
|
|
@@ -17461,7 +17611,7 @@
|
|
|
17461
17611
|
},
|
|
17462
17612
|
{
|
|
17463
17613
|
"file": "packages/@ember/runloop/index.ts",
|
|
17464
|
-
"line":
|
|
17614
|
+
"line": 151,
|
|
17465
17615
|
"description": "If no run-loop is present, it creates a new one. If a run loop is\npresent it will queue itself to run on the existing run-loops action\nqueue.\n\nPlease note: This is not for normal usage, and should be used sparingly.\n\nIf invoked when not within a run loop:\n\n```javascript\nimport { join } from '@ember/runloop';\n\njoin(function() {\n // creates a new run-loop\n});\n```\n\nAlternatively, if called within an existing run loop:\n\n```javascript\nimport { run, join } from '@ember/runloop';\n\nrun(function() {\n // creates a new run-loop\n\n join(function() {\n // joins with the existing run-loop, and queues for invocation on\n // the existing run-loops action queue.\n });\n});\n```",
|
|
17466
17616
|
"itemtype": "method",
|
|
17467
17617
|
"name": "join",
|
|
@@ -17496,7 +17646,7 @@
|
|
|
17496
17646
|
},
|
|
17497
17647
|
{
|
|
17498
17648
|
"file": "packages/@ember/runloop/index.ts",
|
|
17499
|
-
"line":
|
|
17649
|
+
"line": 213,
|
|
17500
17650
|
"description": "Allows you to specify which context to call the specified function in while\nadding the execution of that function to the Ember run loop. This ability\nmakes this method a great way to asynchronously integrate third-party libraries\ninto your Ember application.\n\n`bind` takes two main arguments, the desired context and the function to\ninvoke in that context. Any additional arguments will be supplied as arguments\nto the function that is passed in.\n\nLet's use the creation of a TinyMCE component as an example. Currently,\nTinyMCE provides a setup configuration option we can use to do some processing\nafter the TinyMCE instance is initialized but before it is actually rendered.\nWe can use that setup option to do some additional setup for our component.\nThe component itself could look something like the following:\n\n```app/components/rich-text-editor.js\nimport Component from '@ember/component';\nimport { on } from '@ember/object/evented';\nimport { bind } from '@ember/runloop';\n\nexport default Component.extend({\n initializeTinyMCE: on('didInsertElement', function() {\n tinymce.init({\n selector: '#' + this.$().prop('id'),\n setup: bind(this, this.setupEditor)\n });\n }),\n\n didInsertElement() {\n tinymce.init({\n selector: '#' + this.$().prop('id'),\n setup: bind(this, this.setupEditor)\n });\n }\n\n setupEditor(editor) {\n this.set('editor', editor);\n\n editor.on('change', function() {\n console.log('content changed!');\n });\n }\n});\n```\n\nIn this example, we use `bind` to bind the setupEditor method to the\ncontext of the RichTextEditor component and to have the invocation of that\nmethod be safely handled and executed by the Ember run loop.",
|
|
17501
17651
|
"itemtype": "method",
|
|
17502
17652
|
"name": "bind",
|
|
@@ -17532,7 +17682,7 @@
|
|
|
17532
17682
|
},
|
|
17533
17683
|
{
|
|
17534
17684
|
"file": "packages/@ember/runloop/index.ts",
|
|
17535
|
-
"line":
|
|
17685
|
+
"line": 327,
|
|
17536
17686
|
"description": "Begins a new RunLoop. Any deferred actions invoked after the begin will\nbe buffered until you invoke a matching call to `end()`. This is\na lower-level way to use a RunLoop instead of using `run()`.\n\n```javascript\nimport { begin, end } from '@ember/runloop';\n\nbegin();\n// code to be executed within a RunLoop\nend();\n```",
|
|
17537
17687
|
"itemtype": "method",
|
|
17538
17688
|
"name": "begin",
|
|
@@ -17548,7 +17698,7 @@
|
|
|
17548
17698
|
},
|
|
17549
17699
|
{
|
|
17550
17700
|
"file": "packages/@ember/runloop/index.ts",
|
|
17551
|
-
"line":
|
|
17701
|
+
"line": 350,
|
|
17552
17702
|
"description": "Ends a RunLoop. This must be called sometime after you call\n`begin()` to flush any deferred actions. This is a lower-level way\nto use a RunLoop instead of using `run()`.\n\n```javascript\nimport { begin, end } from '@ember/runloop';\n\nbegin();\n// code to be executed within a RunLoop\nend();\n```",
|
|
17553
17703
|
"itemtype": "method",
|
|
17554
17704
|
"name": "end",
|
|
@@ -17564,7 +17714,7 @@
|
|
|
17564
17714
|
},
|
|
17565
17715
|
{
|
|
17566
17716
|
"file": "packages/@ember/runloop/index.ts",
|
|
17567
|
-
"line":
|
|
17717
|
+
"line": 373,
|
|
17568
17718
|
"description": "Adds the passed target/method and any optional arguments to the named\nqueue to be executed at the end of the RunLoop. If you have not already\nstarted a RunLoop when calling this method one will be started for you\nautomatically.\n\nAt the end of a RunLoop, any methods scheduled in this way will be invoked.\nMethods will be invoked in an order matching the named queues defined in\nthe `queues` property.\n\n```javascript\nimport { schedule } from '@ember/runloop';\n\nschedule('afterRender', this, function() {\n // this will be executed in the 'afterRender' queue\n console.log('scheduled on afterRender queue');\n});\n\nschedule('actions', this, function() {\n // this will be executed in the 'actions' queue\n console.log('scheduled on actions queue');\n});\n\n// Note the functions will be run in order based on the run queues order.\n// Output would be:\n// scheduled on actions queue\n// scheduled on afterRender queue\n```",
|
|
17569
17719
|
"itemtype": "method",
|
|
17570
17720
|
"name": "schedule",
|
|
@@ -17604,7 +17754,7 @@
|
|
|
17604
17754
|
},
|
|
17605
17755
|
{
|
|
17606
17756
|
"file": "packages/@ember/runloop/index.ts",
|
|
17607
|
-
"line":
|
|
17757
|
+
"line": 446,
|
|
17608
17758
|
"description": "Invokes the passed target/method and optional arguments after a specified\nperiod of time. The last parameter of this method must always be a number\nof milliseconds.\n\nYou should use this method whenever you need to run some action after a\nperiod of time instead of using `setTimeout()`. This method will ensure that\nitems that expire during the same script execution cycle all execute\ntogether, which is often more efficient than using a real setTimeout.\n\n```javascript\nimport { later } from '@ember/runloop';\n\nlater(myContext, function() {\n // code here will execute within a RunLoop in about 500ms with this == myContext\n}, 500);\n```",
|
|
17609
17759
|
"itemtype": "method",
|
|
17610
17760
|
"name": "later",
|
|
@@ -17644,7 +17794,7 @@
|
|
|
17644
17794
|
},
|
|
17645
17795
|
{
|
|
17646
17796
|
"file": "packages/@ember/runloop/index.ts",
|
|
17647
|
-
"line":
|
|
17797
|
+
"line": 497,
|
|
17648
17798
|
"description": "Schedule a function to run one time during the current RunLoop. This is equivalent\n to calling `scheduleOnce` with the \"actions\" queue.",
|
|
17649
17799
|
"itemtype": "method",
|
|
17650
17800
|
"name": "once",
|
|
@@ -17679,7 +17829,7 @@
|
|
|
17679
17829
|
},
|
|
17680
17830
|
{
|
|
17681
17831
|
"file": "packages/@ember/runloop/index.ts",
|
|
17682
|
-
"line":
|
|
17832
|
+
"line": 528,
|
|
17683
17833
|
"description": "Schedules a function to run one time in a given queue of the current RunLoop.\nCalling this method with the same queue/target/method combination will have\nno effect (past the initial call).\n\nNote that although you can pass optional arguments these will not be\nconsidered when looking for duplicates. New arguments will replace previous\ncalls.\n\n```javascript\nimport { run, scheduleOnce } from '@ember/runloop';\n\nfunction sayHi() {\n console.log('hi');\n}\n\nrun(function() {\n scheduleOnce('afterRender', myContext, sayHi);\n scheduleOnce('afterRender', myContext, sayHi);\n // sayHi will only be executed once, in the afterRender queue of the RunLoop\n});\n```\n\nAlso note that for `scheduleOnce` to prevent additional calls, you need to\npass the same function instance. The following case works as expected:\n\n```javascript\nfunction log() {\n console.log('Logging only once');\n}\n\nfunction scheduleIt() {\n scheduleOnce('actions', myContext, log);\n}\n\nscheduleIt();\nscheduleIt();\n```\n\nBut this other case will schedule the function multiple times:\n\n```javascript\nimport { scheduleOnce } from '@ember/runloop';\n\nfunction scheduleIt() {\n scheduleOnce('actions', myContext, function() {\n console.log('Closure');\n });\n}\n\nscheduleIt();\nscheduleIt();\n\n// \"Closure\" will print twice, even though we're using `scheduleOnce`,\n// because the function we pass to it won't match the\n// previously scheduled operation.\n```\n\nAvailable queues, and their order, can be found at `queues`",
|
|
17684
17834
|
"itemtype": "method",
|
|
17685
17835
|
"name": "scheduleOnce",
|
|
@@ -17720,7 +17870,7 @@
|
|
|
17720
17870
|
},
|
|
17721
17871
|
{
|
|
17722
17872
|
"file": "packages/@ember/runloop/index.ts",
|
|
17723
|
-
"line":
|
|
17873
|
+
"line": 622,
|
|
17724
17874
|
"description": "Schedules an item to run from within a separate run loop, after\ncontrol has been returned to the system. This is equivalent to calling\n`later` with a wait time of 1ms.\n\n```javascript\nimport { next } from '@ember/runloop';\n\nnext(myContext, function() {\n // code to be executed in the next run loop,\n // which will be scheduled after the current one\n});\n```\n\nMultiple operations scheduled with `next` will coalesce\ninto the same later run loop, along with any other operations\nscheduled by `later` that expire right around the same\ntime that `next` operations will fire.\n\nNote that there are often alternatives to using `next`.\nFor instance, if you'd like to schedule an operation to happen\nafter all DOM element operations have completed within the current\nrun loop, you can make use of the `afterRender` run loop queue (added\nby the `ember-views` package, along with the preceding `render` queue\nwhere all the DOM element operations happen).\n\nExample:\n\n```app/components/my-component.js\nimport Component from '@ember/component';\nimport { scheduleOnce } from '@ember/runloop';\n\nexport Component.extend({\n didInsertElement() {\n this._super(...arguments);\n scheduleOnce('afterRender', this, 'processChildElements');\n },\n\n processChildElements() {\n // ... do something with component's child component\n // elements after they've finished rendering, which\n // can't be done within this component's\n // `didInsertElement` hook because that gets run\n // before the child elements have been added to the DOM.\n }\n});\n```\n\nOne benefit of the above approach compared to using `next` is\nthat you will be able to perform DOM/CSS operations before unprocessed\nelements are rendered to the screen, which may prevent flickering or\nother artifacts caused by delaying processing until after rendering.\n\nThe other major benefit to the above approach is that `next`\nintroduces an element of non-determinism, which can make things much\nharder to test, due to its reliance on `setTimeout`; it's much harder\nto guarantee the order of scheduled operations when they are scheduled\noutside of the current run loop, i.e. with `next`.",
|
|
17725
17875
|
"itemtype": "method",
|
|
17726
17876
|
"name": "next",
|
|
@@ -17755,7 +17905,7 @@
|
|
|
17755
17905
|
},
|
|
17756
17906
|
{
|
|
17757
17907
|
"file": "packages/@ember/runloop/index.ts",
|
|
17758
|
-
"line":
|
|
17908
|
+
"line": 707,
|
|
17759
17909
|
"description": "Cancels a scheduled item. Must be a value returned by `later()`,\n`once()`, `scheduleOnce()`, `next()`, `debounce()`, or\n`throttle()`.\n\n```javascript\nimport {\n next,\n cancel,\n later,\n scheduleOnce,\n once,\n throttle,\n debounce\n} from '@ember/runloop';\n\nlet runNext = next(myContext, function() {\n // will not be executed\n});\n\ncancel(runNext);\n\nlet runLater = later(myContext, function() {\n // will not be executed\n}, 500);\n\ncancel(runLater);\n\nlet runScheduleOnce = scheduleOnce('afterRender', myContext, function() {\n // will not be executed\n});\n\ncancel(runScheduleOnce);\n\nlet runOnce = once(myContext, function() {\n // will not be executed\n});\n\ncancel(runOnce);\n\nlet throttle = throttle(myContext, function() {\n // will not be executed\n}, 1, false);\n\ncancel(throttle);\n\nlet debounce = debounce(myContext, function() {\n // will not be executed\n}, 1);\n\ncancel(debounce);\n\nlet debounceImmediate = debounce(myContext, function() {\n // will be executed since we passed in true (immediate)\n}, 100, true);\n\n// the 100ms delay until this method can be called again will be canceled\ncancel(debounceImmediate);\n```",
|
|
17760
17910
|
"itemtype": "method",
|
|
17761
17911
|
"name": "cancel",
|
|
@@ -17778,7 +17928,7 @@
|
|
|
17778
17928
|
},
|
|
17779
17929
|
{
|
|
17780
17930
|
"file": "packages/@ember/runloop/index.ts",
|
|
17781
|
-
"line":
|
|
17931
|
+
"line": 778,
|
|
17782
17932
|
"description": "Delay calling the target method until the debounce period has elapsed\nwith no additional debounce calls. If `debounce` is called again before\nthe specified time has elapsed, the timer is reset and the entire period\nmust pass again before the target method is called.\n\nThis method should be used when an event may be called multiple times\nbut the action should only be called once when the event is done firing.\nA common example is for scroll events where you only want updates to\nhappen once scrolling has ceased.\n\n```javascript\nimport { debounce } from '@ember/runloop';\n\nfunction whoRan() {\n console.log(this.name + ' ran.');\n}\n\nlet myContext = { name: 'debounce' };\n\ndebounce(myContext, whoRan, 150);\n\n// less than 150ms passes\ndebounce(myContext, whoRan, 150);\n\n// 150ms passes\n// whoRan is invoked with context myContext\n// console logs 'debounce ran.' one time.\n```\n\nImmediate allows you to run the function immediately, but debounce\nother calls for this function until the wait time has elapsed. If\n`debounce` is called again before the specified time has elapsed,\nthe timer is reset and the entire period must pass again before\nthe method can be called again.\n\n```javascript\nimport { debounce } from '@ember/runloop';\n\nfunction whoRan() {\n console.log(this.name + ' ran.');\n}\n\nlet myContext = { name: 'debounce' };\n\ndebounce(myContext, whoRan, 150, true);\n\n// console logs 'debounce ran.' one time immediately.\n// 100ms passes\ndebounce(myContext, whoRan, 150, true);\n\n// 150ms passes and nothing else is logged to the console and\n// the debouncee is no longer being watched\ndebounce(myContext, whoRan, 150, true);\n\n// console logs 'debounce ran.' one time immediately.\n// 150ms passes and nothing else is logged to the console and\n// the debouncee is no longer being watched\n```",
|
|
17783
17933
|
"itemtype": "method",
|
|
17784
17934
|
"name": "debounce",
|
|
@@ -17823,7 +17973,7 @@
|
|
|
17823
17973
|
},
|
|
17824
17974
|
{
|
|
17825
17975
|
"file": "packages/@ember/runloop/index.ts",
|
|
17826
|
-
"line":
|
|
17976
|
+
"line": 875,
|
|
17827
17977
|
"description": "Ensure that the target method is never called more frequently than\nthe specified spacing period. The target method is called immediately.\n\n```javascript\nimport { throttle } from '@ember/runloop';\n\nfunction whoRan() {\n console.log(this.name + ' ran.');\n}\n\nlet myContext = { name: 'throttle' };\n\nthrottle(myContext, whoRan, 150);\n// whoRan is invoked with context myContext\n// console logs 'throttle ran.'\n\n// 50ms passes\nthrottle(myContext, whoRan, 150);\n\n// 50ms passes\nthrottle(myContext, whoRan, 150);\n\n// 150ms passes\nthrottle(myContext, whoRan, 150);\n// whoRan is invoked with context myContext\n// console logs 'throttle ran.'\n```",
|
|
17828
17978
|
"itemtype": "method",
|
|
17829
17979
|
"name": "throttle",
|
|
@@ -18596,11 +18746,11 @@
|
|
|
18596
18746
|
},
|
|
18597
18747
|
{
|
|
18598
18748
|
"message": "unknown tag: internal",
|
|
18599
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:
|
|
18749
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:127"
|
|
18600
18750
|
},
|
|
18601
18751
|
{
|
|
18602
18752
|
"message": "unknown tag: internal",
|
|
18603
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:
|
|
18753
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:133"
|
|
18604
18754
|
},
|
|
18605
18755
|
{
|
|
18606
18756
|
"message": "replacing incorrect tag: function with method",
|
|
@@ -18624,7 +18774,7 @@
|
|
|
18624
18774
|
},
|
|
18625
18775
|
{
|
|
18626
18776
|
"message": "Missing item type\nThis is deprecated in favor of explicit injection of dependencies.\n\nReference: https://deprecations.emberjs.com/v3.x#toc_implicit-injections\n```\n\n@private\n@method injection\n@param {String} factoryName\n@param {String} property\n@param {String} injectionName\n@deprecated",
|
|
18627
|
-
"line": " packages/@ember/-internals/container/lib/registry.ts:
|
|
18777
|
+
"line": " packages/@ember/-internals/container/lib/registry.ts:448"
|
|
18628
18778
|
},
|
|
18629
18779
|
{
|
|
18630
18780
|
"message": "Missing item type\nThe `change` and `input` actions need to be overridden in the `Input`\nsubclass. Unfortunately, some ember-source builds currently uses babel\nloose mode to transpile its classes. Having the `@action` decorator on the\nsuper class creates a getter on the prototype, and when the subclass\noverrides the method, the loose mode transpilation would emit something\nlike `Subclass.prototype['change'] = function change() { ... }`, which\nfails because `prototype['change']` is getter-only/readonly. The correct\nsolution is to use `Object.defineProperty(prototype, 'change', ...)` but\nthat requires disabling loose mode. For now, the workaround is to add the\ndecorator only on the subclass. This is more of a configuration issue on\nour own builds and doesn't really affect apps.",
|
|
@@ -18972,19 +19122,19 @@
|
|
|
18972
19122
|
},
|
|
18973
19123
|
{
|
|
18974
19124
|
"message": "Missing item type\nSubscribes a function to a named event and then cancels the subscription\nafter the first time the event is triggered. It is good to use ``one`` when\nyou only care about the first time an event has taken place.",
|
|
18975
|
-
"line": " packages/@ember/-internals/runtime/lib/mixins/evented.d.ts:
|
|
19125
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/evented.d.ts:23"
|
|
18976
19126
|
},
|
|
18977
19127
|
{
|
|
18978
19128
|
"message": "Missing item type\nTriggers a named event for the object. Any additional arguments\nwill be passed as parameters to the functions that are subscribed to the\nevent.",
|
|
18979
|
-
"line": " packages/@ember/-internals/runtime/lib/mixins/evented.d.ts:
|
|
19129
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/evented.d.ts:34"
|
|
18980
19130
|
},
|
|
18981
19131
|
{
|
|
18982
19132
|
"message": "Missing item type\nCancels subscription for given name, target, and method.",
|
|
18983
|
-
"line": " packages/@ember/-internals/runtime/lib/mixins/evented.d.ts:
|
|
19133
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/evented.d.ts:40"
|
|
18984
19134
|
},
|
|
18985
19135
|
{
|
|
18986
19136
|
"message": "Missing item type\nChecks to see if object has any subscriptions for named event.",
|
|
18987
|
-
"line": " packages/@ember/-internals/runtime/lib/mixins/evented.d.ts:
|
|
19137
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/evented.d.ts:49"
|
|
18988
19138
|
},
|
|
18989
19139
|
{
|
|
18990
19140
|
"message": "Missing item type\nThis mixin provides properties and property observing functionality, core features of the Ember object model.",
|
|
@@ -19044,75 +19194,107 @@
|
|
|
19044
19194
|
},
|
|
19045
19195
|
{
|
|
19046
19196
|
"message": "Missing item type",
|
|
19047
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:
|
|
19197
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:14"
|
|
19198
|
+
},
|
|
19199
|
+
{
|
|
19200
|
+
"message": "Missing item type",
|
|
19201
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:17"
|
|
19202
|
+
},
|
|
19203
|
+
{
|
|
19204
|
+
"message": "Missing item type",
|
|
19205
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:22"
|
|
19048
19206
|
},
|
|
19049
19207
|
{
|
|
19050
19208
|
"message": "Missing item type",
|
|
19051
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:
|
|
19209
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:24"
|
|
19052
19210
|
},
|
|
19053
19211
|
{
|
|
19054
19212
|
"message": "Missing item type",
|
|
19055
19213
|
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:30"
|
|
19056
19214
|
},
|
|
19057
19215
|
{
|
|
19058
|
-
"message": "Missing item type
|
|
19216
|
+
"message": "Missing item type",
|
|
19059
19217
|
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:33"
|
|
19060
19218
|
},
|
|
19061
19219
|
{
|
|
19062
19220
|
"message": "Missing item type",
|
|
19063
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:
|
|
19221
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:36"
|
|
19222
|
+
},
|
|
19223
|
+
{
|
|
19224
|
+
"message": "Missing item type",
|
|
19225
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:44"
|
|
19226
|
+
},
|
|
19227
|
+
{
|
|
19228
|
+
"message": "Missing item type",
|
|
19229
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:50"
|
|
19230
|
+
},
|
|
19231
|
+
{
|
|
19232
|
+
"message": "Missing item type",
|
|
19233
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:53"
|
|
19234
|
+
},
|
|
19235
|
+
{
|
|
19236
|
+
"message": "Missing item type\nCoreObject constructor takes owner.",
|
|
19237
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:56"
|
|
19238
|
+
},
|
|
19239
|
+
{
|
|
19240
|
+
"message": "Missing item type",
|
|
19241
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:61"
|
|
19064
19242
|
},
|
|
19065
19243
|
{
|
|
19066
19244
|
"message": "Missing item type\nAn overridable method called when objects are instantiated. By default,\ndoes nothing unless it is overridden during class definition.",
|
|
19067
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:
|
|
19245
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:64"
|
|
19068
19246
|
},
|
|
19069
19247
|
{
|
|
19070
19248
|
"message": "Missing item type\nDefines the properties that will be concatenated from the superclass (instead of overridden).",
|
|
19071
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:
|
|
19249
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:70"
|
|
19072
19250
|
},
|
|
19073
19251
|
{
|
|
19074
19252
|
"message": "Missing item type\nDestroyed object property flag. If this property is true the observers and bindings were\nalready removed by the effect of calling the destroy() method.",
|
|
19075
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:
|
|
19253
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:76"
|
|
19076
19254
|
},
|
|
19077
19255
|
{
|
|
19078
19256
|
"message": "Missing item type\nDestruction scheduled flag. The destroy() method has been called. The object stays intact\nuntil the end of the run loop at which point the isDestroyed flag is set.",
|
|
19079
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:
|
|
19257
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:82"
|
|
19080
19258
|
},
|
|
19081
19259
|
{
|
|
19082
19260
|
"message": "Missing item type\nDestroys an object by setting the `isDestroyed` flag and removing its\nmetadata, which effectively destroys observers and bindings.\nIf you try to set a property on a destroyed object, an exception will be\nraised.\nNote that destruction is scheduled for the end of the run loop and does not\nhappen immediately. It will set an isDestroying flag immediately.",
|
|
19083
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:
|
|
19261
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:90"
|
|
19084
19262
|
},
|
|
19085
19263
|
{
|
|
19086
19264
|
"message": "Missing item type\nOverride to implement teardown.",
|
|
19087
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:
|
|
19265
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:101"
|
|
19088
19266
|
},
|
|
19089
19267
|
{
|
|
19090
19268
|
"message": "Missing item type\nReturns a string representation which attempts to provide more information than Javascript's toString\ntypically does, in a generic way for all Ember objects (e.g., \"<App.Person:ember1024>\").",
|
|
19091
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:
|
|
19269
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:106"
|
|
19092
19270
|
},
|
|
19093
19271
|
{
|
|
19094
19272
|
"message": "Missing item type",
|
|
19095
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:
|
|
19273
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:118"
|
|
19096
19274
|
},
|
|
19097
19275
|
{
|
|
19098
19276
|
"message": "Missing item type",
|
|
19099
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:
|
|
19277
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:124"
|
|
19100
19278
|
},
|
|
19101
19279
|
{
|
|
19102
19280
|
"message": "Missing item type\nIterate over each computed property for the class, passing its name and any\nassociated metadata (see metaForProperty) to the callback.",
|
|
19103
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:
|
|
19281
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:127"
|
|
19104
19282
|
},
|
|
19105
19283
|
{
|
|
19106
19284
|
"message": "Missing item type\nReturns the original hash that was passed to meta().",
|
|
19107
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:
|
|
19285
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:133"
|
|
19108
19286
|
},
|
|
19109
19287
|
{
|
|
19110
19288
|
"message": "Missing item type",
|
|
19111
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:
|
|
19289
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:140"
|
|
19112
19290
|
},
|
|
19113
19291
|
{
|
|
19114
19292
|
"message": "Missing item type",
|
|
19115
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:
|
|
19293
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:143"
|
|
19294
|
+
},
|
|
19295
|
+
{
|
|
19296
|
+
"message": "Missing item type",
|
|
19297
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:146"
|
|
19116
19298
|
},
|
|
19117
19299
|
{
|
|
19118
19300
|
"message": "Missing item type",
|
|
@@ -19130,6 +19312,14 @@
|
|
|
19130
19312
|
"message": "Missing item type\nStrongly hint runtimes to intern the provided string.\n\nWhen do I need to use this function?\n\nFor the most part, never. Pre-mature optimization is bad, and often the\nruntime does exactly what you need it to, and more often the trade-off isn't\nworth it.\n\nWhy?\n\nRuntimes store strings in at least 2 different representations:\nRopes and Symbols (interned strings). The Rope provides a memory efficient\ndata-structure for strings created from concatenation or some other string\nmanipulation like splitting.\n\nUnfortunately checking equality of different ropes can be quite costly as\nruntimes must resort to clever string comparison algorithms. These\nalgorithms typically cost in proportion to the length of the string.\nLuckily, this is where the Symbols (interned strings) shine. As Symbols are\nunique by their string content, equality checks can be done by pointer\ncomparison.\n\nHow do I know if my string is a rope or symbol?\n\nTypically (warning general sweeping statement, but truthy in runtimes at\npresent) static strings created as part of the JS source are interned.\nStrings often used for comparisons can be interned at runtime if some\ncriteria are met. One of these criteria can be the size of the entire rope.\nFor example, in chrome 38 a rope longer then 12 characters will not\nintern, nor will segments of that rope.\n\nSome numbers: http://jsperf.com/eval-vs-keys/8\n\nKnown Trick™",
|
|
19131
19313
|
"line": " packages/@ember/-internals/utils/lib/intern.ts:1"
|
|
19132
19314
|
},
|
|
19315
|
+
{
|
|
19316
|
+
"message": "Missing item type",
|
|
19317
|
+
"line": " packages/@ember/-internals/views/lib/system/event_dispatcher.d.ts:8"
|
|
19318
|
+
},
|
|
19319
|
+
{
|
|
19320
|
+
"message": "Missing item type",
|
|
19321
|
+
"line": " packages/@ember/application/lib/application.d.ts:17"
|
|
19322
|
+
},
|
|
19133
19323
|
{
|
|
19134
19324
|
"message": "Missing item type\nUnfortunately, a lot of existing code assumes the booting process is\n\"synchronous\". Specifically, a lot of tests assumes the last call to\n`app.advanceReadiness()` or `app.reset()` will result in the app being\nfully-booted when the current runloop completes.\n\nWe would like new code (like the `visit` API) to stop making this assumption,\nso we created the asynchronous version above that returns a promise. But until\nwe have migrated all the code, we would have to expose this method for use\n*internally* in places where we need to boot an app \"synchronously\".",
|
|
19135
19325
|
"line": " packages/@ember/application/lib/application.js:662"
|