ember-source 4.4.0-alpha.3 → 4.4.0-alpha.6
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/-addon-import.js +9 -0
- package/blueprints/-maybe-polyfill-typescript-blueprints.js +17 -0
- package/blueprints/acceptance-test/index.js +8 -0
- package/blueprints/acceptance-test/mocha-rfc-232-files/tests/acceptance/{__name__-test.js → __name__-test.ts} +1 -1
- package/blueprints/acceptance-test/qunit-rfc-232-files/tests/acceptance/{__name__-test.js → __name__-test.ts} +1 -1
- package/blueprints/component/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
- package/blueprints/component/index.js +6 -1
- package/blueprints/component-addon/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
- package/blueprints/component-addon/index.js +9 -0
- package/blueprints/component-class/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
- package/blueprints/component-class/index.js +5 -0
- package/blueprints/component-class-addon/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
- package/blueprints/component-class-addon/index.js +9 -0
- package/blueprints/component-test/index.js +8 -0
- package/blueprints/component-test/mocha-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +2 -2
- package/blueprints/component-test/qunit-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +3 -3
- package/blueprints/controller/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
- package/blueprints/controller/index.js +10 -0
- package/blueprints/controller-test/index.js +10 -0
- package/blueprints/controller-test/mocha-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +1 -1
- package/blueprints/controller-test/qunit-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +1 -1
- package/blueprints/helper/files/__root__/__collection__/{__name__.js → __name__.ts} +0 -0
- package/blueprints/helper/index.js +9 -0
- package/blueprints/helper-addon/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
- package/blueprints/helper-test/index.js +9 -0
- package/blueprints/helper-test/mocha-rfc-232-files/__root__/__testType__/__collection__/{__name__-test.js → __name__-test.ts} +1 -1
- package/blueprints/helper-test/qunit-rfc-232-files/__root__/__testType__/__collection__/{__name__-test.js → __name__-test.ts} +1 -1
- package/blueprints/initializer/files/__root__/initializers/__name__.ts +6 -0
- package/blueprints/initializer/index.js +9 -0
- package/blueprints/initializer-addon/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
- package/blueprints/initializer-test/index.js +8 -0
- package/blueprints/initializer-test/mocha-rfc-232-files/__root__/__testType__/__path__/{__name__-test.js → __name__-test.ts} +3 -1
- package/blueprints/initializer-test/qunit-rfc-232-files/__root__/__testType__/__path__/__name__-test.ts +37 -0
- package/blueprints/instance-initializer/files/__root__/instance-initializers/__name__.ts +6 -0
- package/blueprints/instance-initializer/index.js +9 -0
- package/blueprints/instance-initializer-addon/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
- package/blueprints/instance-initializer-test/index.js +8 -0
- package/blueprints/instance-initializer-test/mocha-rfc-232-files/__root__/__testType__/__path__/{__name__-test.js → __name__-test.ts} +5 -1
- package/blueprints/instance-initializer-test/qunit-rfc-232-files/__root__/__testType__/__path__/{__name__-test.js → __name__-test.ts} +6 -1
- package/blueprints/route/files/__root__/__path__/{__name__.js → __name__.ts} +2 -4
- package/blueprints/route/index.js +9 -0
- package/blueprints/route-addon/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
- package/blueprints/route-addon/index.js +9 -0
- package/blueprints/route-test/index.js +9 -0
- package/blueprints/route-test/mocha-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +1 -1
- package/blueprints/route-test/qunit-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +1 -1
- package/blueprints/service/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
- package/blueprints/service/index.js +10 -0
- package/blueprints/service-test/index.js +8 -0
- package/blueprints/service-test/mocha-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +1 -1
- package/blueprints/service-test/qunit-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +1 -1
- package/blueprints/util/files/__root__/utils/{__name__.js → __name__.ts} +0 -0
- package/blueprints/util/index.js +10 -0
- package/blueprints/util-test/index.js +8 -0
- package/blueprints/util-test/mocha-rfc-232-files/__root__/__testType__/{__name__-test.js → __name__-test.ts} +0 -0
- package/blueprints/util-test/qunit-rfc-232-files/__root__/__testType__/{__name__-test.js → __name__-test.ts} +0 -0
- package/build-metadata.json +3 -3
- package/dist/ember-template-compiler.js +15 -13
- package/dist/ember-template-compiler.map +1 -1
- package/dist/ember-testing.js +8 -4
- package/dist/ember-testing.map +1 -1
- package/dist/ember.debug.js +478 -1149
- package/dist/ember.debug.map +1 -1
- package/dist/header/license.js +1 -1
- package/dist/packages/@ember/-internals/container/index.js +1 -25
- 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 +117 -749
- package/dist/packages/@ember/-internals/metal/index.js +17 -22
- package/dist/packages/@ember/-internals/routing/lib/services/router.js +140 -145
- package/dist/packages/@ember/-internals/routing/lib/system/router.js +3 -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/canary-features/index.js +1 -5
- package/dist/packages/@ember/debug/index.js +1 -1
- package/dist/packages/@ember/debug/lib/deprecate.js +6 -2
- package/dist/packages/@ember/renderer/index.js +21 -0
- package/dist/packages/ember/version.js +1 -1
- package/docs/data.json +447 -260
- package/package.json +15 -12
- package/blueprints/initializer/files/__root__/initializers/__name__.js +0 -5
- package/blueprints/initializer-test/qunit-rfc-232-files/__root__/__testType__/__path__/__name__-test.js +0 -34
- package/blueprints/instance-initializer/files/__root__/instance-initializers/__name__.js +0 -5
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.6"
|
|
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
|
},
|
|
@@ -2078,7 +2110,7 @@
|
|
|
2078
2110
|
"namespaces": {},
|
|
2079
2111
|
"tag": "module",
|
|
2080
2112
|
"file": "packages/@ember/canary-features/index.ts",
|
|
2081
|
-
"line":
|
|
2113
|
+
"line": 20,
|
|
2082
2114
|
"description": "Set `EmberENV.FEATURES` in your application's `config/environment.js` file\nto enable canary features in your application.\n\nSee the [feature flag guide](https://guides.emberjs.com/release/configuring-ember/feature-flags/)\nfor more details.",
|
|
2083
2115
|
"access": "public",
|
|
2084
2116
|
"tagname": ""
|
|
@@ -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",
|
|
@@ -2890,7 +2937,7 @@
|
|
|
2890
2937
|
"module": "@ember/routing",
|
|
2891
2938
|
"namespace": "",
|
|
2892
2939
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
2893
|
-
"line":
|
|
2940
|
+
"line": 24,
|
|
2894
2941
|
"description": "The Router service is the public API that provides access to the router.\n\nThe immediate benefit of the Router service is that you can inject it into components,\ngiving them a friendly way to initiate transitions and ask questions about the current\nglobal router state.\n\nIn this example, the Router service is injected into a component to initiate a transition\nto a dedicated route:\n\n```app/components/example.js\nimport Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\n\nexport default class ExampleComponent extends Component {\n @service router;\n\n @action\n next() {\n this.router.transitionTo('other.route');\n }\n}\n```\n\nLike any service, it can also be injected into helpers, routes, etc.",
|
|
2895
2942
|
"access": "public",
|
|
2896
2943
|
"tagname": "",
|
|
@@ -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,
|
|
@@ -3556,7 +3603,7 @@
|
|
|
3556
3603
|
"module": "@ember/canary-features",
|
|
3557
3604
|
"namespace": "",
|
|
3558
3605
|
"file": "packages/@ember/canary-features/index.ts",
|
|
3559
|
-
"line":
|
|
3606
|
+
"line": 20,
|
|
3560
3607
|
"description": "The hash of enabled Canary features. Add to this, any canary features\nbefore creating your application.",
|
|
3561
3608
|
"static": 1,
|
|
3562
3609
|
"since": "1.1.0",
|
|
@@ -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",
|
|
@@ -8573,7 +8634,7 @@
|
|
|
8573
8634
|
},
|
|
8574
8635
|
{
|
|
8575
8636
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8576
|
-
"line":
|
|
8637
|
+
"line": 80,
|
|
8577
8638
|
"description": "Transition the application into another route. The route may\nbe either a single route or route path:\n\nCalling `transitionTo` from the Router service will cause default query parameter values to be included in the URL.\nThis behavior is different from calling `transitionTo` on a route or `transitionToRoute` on a controller.\nSee the [Router Service RFC](https://github.com/emberjs/rfcs/blob/master/text/0095-router-service.md#query-parameter-semantics) for more info.\n\nIn the following example we use the Router service to navigate to a route with a\nspecific model from a Component in the first action, and in the second we trigger\na query-params only transition.\n\n```app/components/example.js\nimport Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\n\nexport default class extends Component {\n @service router;\n\n @action\n goToComments(post) {\n this.router.transitionTo('comments', post);\n }\n\n @action\n fetchMoreComments(latestComment) {\n this.router.transitionTo({\n queryParams: { commentsAfter: latestComment }\n });\n }\n}\n```",
|
|
8578
8639
|
"itemtype": "method",
|
|
8579
8640
|
"name": "transitionTo",
|
|
@@ -8608,7 +8669,7 @@
|
|
|
8608
8669
|
},
|
|
8609
8670
|
{
|
|
8610
8671
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8611
|
-
"line":
|
|
8672
|
+
"line": 139,
|
|
8612
8673
|
"description": "Similar to `transitionTo`, but instead of adding the destination to the browser's URL history,\nit replaces the entry for the current route.\nWhen the user clicks the \"back\" button in the browser, there will be fewer steps.\nThis is most commonly used to manage redirects in a way that does not cause confusing additions\nto the user's browsing history.\n\nCalling `replaceWith` from the Router service will cause default query parameter values to be included in the URL.\nThis behavior is different from calling `replaceWith` on a route.\nSee the [Router Service RFC](https://github.com/emberjs/rfcs/blob/master/text/0095-router-service.md#query-parameter-semantics) for more info.\n\nUsage example:\n\n```app/routes/application.js\nimport Route from '@ember/routing/route';\n\nexport default class extends Route {\n beforeModel() {\n if (!authorized()){\n this.replaceWith('unauthorized');\n }\n }\n});\n```",
|
|
8613
8674
|
"itemtype": "method",
|
|
8614
8675
|
"name": "replaceWith",
|
|
@@ -8641,7 +8702,7 @@
|
|
|
8641
8702
|
},
|
|
8642
8703
|
{
|
|
8643
8704
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8644
|
-
"line":
|
|
8705
|
+
"line": 178,
|
|
8645
8706
|
"description": "Generate a URL based on the supplied route name and optionally a model. The\nURL is returned as a string that can be used for any purpose.\n\nIn this example, the URL for the `author.books` route for a given author\nis copied to the clipboard.\n\n```app/templates/application.hbs\n<CopyLink @author={{hash id=\"tomster\" name=\"Tomster\"}} />\n```\n\n```app/components/copy-link.js\nimport Component from '@glimmer/component';\nimport { service } from '@ember/service';\nimport { action } from '@ember/object';\n\nexport default class CopyLinkComponent extends Component {\n @service router;\n @service clipboard;\n\n @action\n copyBooksURL() {\n if (this.author) {\n const url = this.router.urlFor('author.books', this.args.author);\n this.clipboard.set(url);\n // Clipboard now has /author/tomster/books\n }\n }\n}\n```\n\nJust like with `transitionTo` and `replaceWith`, `urlFor` can also handle\nquery parameters.\n\n```app/templates/application.hbs\n<CopyLink @author={{hash id=\"tomster\" name=\"Tomster\"}} />\n```\n\n```app/components/copy-link.js\nimport Component from '@glimmer/component';\nimport { service } from '@ember/service';\nimport { action } from '@ember/object';\n\nexport default class CopyLinkComponent extends Component {\n @service router;\n @service clipboard;\n\n @action\n copyOnlyEmberBooksURL() {\n if (this.author) {\n const url = this.router.urlFor('author.books', this.author, {\n queryParams: { filter: 'emberjs' }\n });\n this.clipboard.set(url);\n // Clipboard now has /author/tomster/books?filter=emberjs\n }\n }\n}\n```",
|
|
8646
8707
|
"itemtype": "method",
|
|
8647
8708
|
"name": "urlFor",
|
|
@@ -8674,7 +8735,7 @@
|
|
|
8674
8735
|
},
|
|
8675
8736
|
{
|
|
8676
8737
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8677
|
-
"line":
|
|
8738
|
+
"line": 251,
|
|
8678
8739
|
"description": "Returns `true` if `routeName/models/queryParams` is the active route, where `models` and `queryParams` are optional.\nSee [model](api/ember/release/classes/Route/methods/model?anchor=model) and\n[queryParams](/api/ember/3.7/classes/Route/properties/queryParams?anchor=queryParams) for more information about these arguments.\n\nIn the following example, `isActive` will return `true` if the current route is `/posts`.\n\n```app/components/posts.js\nimport Component from '@glimmer/component';\nimport { service } from '@ember/service';\n\nexport default class extends Component {\n @service router;\n\n displayComments() {\n return this.router.isActive('posts');\n }\n});\n```\n\nThe next example includes a dynamic segment, and will return `true` if the current route is `/posts/1`,\nassuming the post has an id of 1:\n\n```app/components/posts.js\nimport Component from '@glimmer/component';\nimport { service } from '@ember/service';\n\nexport default class extends Component {\n @service router;\n\n displayComments(post) {\n return this.router.isActive('posts', post.id);\n }\n});\n```\n\nWhere `post.id` is the id of a specific post, which is represented in the route as /posts/[post.id].\nIf `post.id` is equal to 1, then isActive will return true if the current route is /posts/1, and false if the route is anything else.",
|
|
8679
8740
|
"itemtype": "method",
|
|
8680
8741
|
"name": "isActive",
|
|
@@ -8707,7 +8768,7 @@
|
|
|
8707
8768
|
},
|
|
8708
8769
|
{
|
|
8709
8770
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8710
|
-
"line":
|
|
8771
|
+
"line": 355,
|
|
8711
8772
|
"description": "Takes a string URL and returns a `RouteInfo` for the leafmost route represented\nby the URL. Returns `null` if the URL is not recognized. This method expects to\nreceive the actual URL as seen by the browser including the app's `rootURL`.\n\nSee [RouteInfo](/ember/release/classes/RouteInfo) for more info.\n\nIn the following example `recognize` is used to verify if a path belongs to our\napplication before transitioning to it.\n\n```\nimport Component from '@ember/component';\nimport { service } from '@ember/service';\n\nexport default class extends Component {\n @service router;\n path = '/';\n\n click() {\n if (this.router.recognize(this.path)) {\n this.router.transitionTo(this.path);\n }\n }\n}\n```",
|
|
8712
8773
|
"itemtype": "method",
|
|
8713
8774
|
"name": "recognize",
|
|
@@ -8729,7 +8790,7 @@
|
|
|
8729
8790
|
},
|
|
8730
8791
|
{
|
|
8731
8792
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8732
|
-
"line":
|
|
8793
|
+
"line": 396,
|
|
8733
8794
|
"description": "Takes a string URL and returns a promise that resolves to a\n`RouteInfoWithAttributes` for the leafmost route represented by the URL.\nThe promise rejects if the URL is not recognized or an unhandled exception\nis encountered. This method expects to receive the actual URL as seen by\nthe browser including the app's `rootURL`.",
|
|
8734
8795
|
"itemtype": "method",
|
|
8735
8796
|
"name": "recognizeAndLoad",
|
|
@@ -8751,7 +8812,7 @@
|
|
|
8751
8812
|
},
|
|
8752
8813
|
{
|
|
8753
8814
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8754
|
-
"line":
|
|
8815
|
+
"line": 418,
|
|
8755
8816
|
"description": "You can register a listener for events emitted by this service with `.on()`:\n\n```app/routes/contact-form.js\nimport Route from '@ember/routing';\nimport { service } from '@ember/service';\n\nexport default class extends Route {\n @service router;\n\n activate() {\n this.router.on('routeWillChange', (transition) => {\n if (!transition.to.find(route => route.name === this.routeName)) {\n alert(\"Please save or cancel your changes.\");\n transition.abort();\n }\n })\n }\n}\n```",
|
|
8756
8817
|
"itemtype": "method",
|
|
8757
8818
|
"name": "on",
|
|
@@ -8774,7 +8835,7 @@
|
|
|
8774
8835
|
},
|
|
8775
8836
|
{
|
|
8776
8837
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8777
|
-
"line":
|
|
8838
|
+
"line": 445,
|
|
8778
8839
|
"description": "You can unregister a listener for events emitted by this service with `.off()`:\n\n```app/routes/contact-form.js\nimport Route from '@ember/routing';\nimport { service } from '@ember/service';\n\nexport default class extends Route {\n @service router;\n\n callback = (transition) => {\n if (!transition.to.find(route => route.name === this.routeName)) {\n alert(\"Please save or cancel your changes.\");\n transition.abort();\n }\n };\n\n activate() {\n this.router.on('routeWillChange', this.callback);\n }\n\n deactivate() {\n this.router.off('routeWillChange', this.callback);\n}\n```",
|
|
8779
8840
|
"itemtype": "method",
|
|
8780
8841
|
"name": "off",
|
|
@@ -8797,7 +8858,7 @@
|
|
|
8797
8858
|
},
|
|
8798
8859
|
{
|
|
8799
8860
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8800
|
-
"line":
|
|
8861
|
+
"line": 477,
|
|
8801
8862
|
"description": "The `routeWillChange` event is fired at the beginning of any\nattempted transition with a `Transition` object as the sole\nargument. This action can be used for aborting, redirecting,\nor decorating the transition from the currently active routes.\n\nA good example is preventing navigation when a form is\nhalf-filled out:\n\n```app/routes/contact-form.js\nimport Route from '@ember/routing';\nimport { service } from '@ember/service';\n\nexport default class extends Route {\n @service router;\n\n activate() {\n this.router.on('routeWillChange', (transition) => {\n if (!transition.to.find(route => route.name === this.routeName)) {\n alert(\"Please save or cancel your changes.\");\n transition.abort();\n }\n })\n }\n}\n```\n\nThe `routeWillChange` event fires whenever a new route is chosen as the desired target of a transition. This includes `transitionTo`, `replaceWith`, all redirection for any reason including error handling, and abort. Aborting implies changing the desired target back to where you already were. Once a transition has completed, `routeDidChange` fires.",
|
|
8802
8863
|
"itemtype": "event",
|
|
8803
8864
|
"name": "routeWillChange",
|
|
@@ -8815,7 +8876,7 @@
|
|
|
8815
8876
|
},
|
|
8816
8877
|
{
|
|
8817
8878
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8818
|
-
"line":
|
|
8879
|
+
"line": 511,
|
|
8819
8880
|
"description": "The `routeDidChange` event only fires once a transition has settled.\nThis includes aborts and error substates. Like the `routeWillChange` event\nit receives a Transition as the sole argument.\n\nA good example is sending some analytics when the route has transitioned:\n\n```app/routes/contact-form.js\nimport Route from '@ember/routing';\nimport { service } from '@ember/service';\n\nexport default class extends Route {\n @service router;\n\n activate() {\n this.router.on('routeDidChange', (transition) => {\n ga.send('pageView', {\n current: transition.to.name,\n from: transition.from.name\n });\n })\n }\n}\n```\n\n`routeDidChange` will be called after any `Route`'s\n[didTransition](/ember/release/classes/Route/events/didTransition?anchor=didTransition)\naction has been fired.\nThe updates of properties\n[currentURL](/ember/release/classes/RouterService/properties/currentURL?anchor=currentURL),\n[currentRouteName](/ember/release/classes/RouterService/properties/currentURL?anchor=currentRouteName)\nand\n[currentRoute](/ember/release/classes/RouterService/properties/currentURL?anchor=currentRoute)\nare completed at the time `routeDidChange` is called.",
|
|
8820
8881
|
"itemtype": "event",
|
|
8821
8882
|
"name": "routeDidChange",
|
|
@@ -8833,7 +8894,7 @@
|
|
|
8833
8894
|
},
|
|
8834
8895
|
{
|
|
8835
8896
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8836
|
-
"line":
|
|
8897
|
+
"line": 551,
|
|
8837
8898
|
"description": "Refreshes all currently active routes, doing a full transition.\nIf a route name is provided and refers to a currently active route,\nit will refresh only that route and its descendents.\nReturns a promise that will be resolved once the refresh is complete.\nAll resetController, beforeModel, model, afterModel, redirect, and setupController\nhooks will be called again. You will get new data from the model hook.",
|
|
8838
8899
|
"itemtype": "method",
|
|
8839
8900
|
"name": "refresh",
|
|
@@ -8848,9 +8909,6 @@
|
|
|
8848
8909
|
"return": {
|
|
8849
8910
|
"description": "Transition"
|
|
8850
8911
|
},
|
|
8851
|
-
"category": [
|
|
8852
|
-
"EMBER_ROUTING_ROUTER_SERVICE_REFRESH"
|
|
8853
|
-
],
|
|
8854
8912
|
"access": "public",
|
|
8855
8913
|
"tagname": "",
|
|
8856
8914
|
"class": "RouterService",
|
|
@@ -8858,7 +8916,7 @@
|
|
|
8858
8916
|
},
|
|
8859
8917
|
{
|
|
8860
8918
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8861
|
-
"line":
|
|
8919
|
+
"line": 581,
|
|
8862
8920
|
"description": "Name of the current route.\n\n This property represents the logical name of the route,\n which is comma separated.\n For the following router:\n\n ```app/router.js\n Router.map(function() {\n this.route('about');\n this.route('blog', function () {\n this.route('post', { path: ':post_id' });\n });\n });\n ```\n\n It will return:\n\n * `index` when you visit `/`\n * `about` when you visit `/about`\n * `blog.index` when you visit `/blog`\n * `blog.post` when you visit `/blog/some-post-id`",
|
|
8863
8921
|
"itemtype": "property",
|
|
8864
8922
|
"name": "currentRouteName",
|
|
@@ -8870,7 +8928,7 @@
|
|
|
8870
8928
|
},
|
|
8871
8929
|
{
|
|
8872
8930
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8873
|
-
"line":
|
|
8931
|
+
"line": 611,
|
|
8874
8932
|
"description": "Current URL for the application.\n\n This property represents the URL path for this route.\n For the following router:\n\n ```app/router.js\n Router.map(function() {\n this.route('about');\n this.route('blog', function () {\n this.route('post', { path: ':post_id' });\n });\n });\n ```\n\n It will return:\n\n * `/` when you visit `/`\n * `/about` when you visit `/about`\n * `/blog` when you visit `/blog`\n * `/blog/some-post-id` when you visit `/blog/some-post-id`",
|
|
8875
8933
|
"itemtype": "property",
|
|
8876
8934
|
"name": "currentURL",
|
|
@@ -8882,7 +8940,7 @@
|
|
|
8882
8940
|
},
|
|
8883
8941
|
{
|
|
8884
8942
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8885
|
-
"line":
|
|
8943
|
+
"line": 640,
|
|
8886
8944
|
"description": "The `location` property returns what implementation of the `location` API\nyour application is using, which determines what type of URL is being used.\n\nSee [Location](/ember/release/classes/Location) for more information.\n\nTo force a particular `location` API implementation to be used in your\napplication you can set a location type on your `config/environment`.\nFor example, to set the `history` type:\n\n```config/environment.js\n'use strict';\n\nmodule.exports = function(environment) {\n let ENV = {\n modulePrefix: 'router-service',\n environment,\n rootURL: '/',\n locationType: 'history',\n ...\n }\n}\n```\n\nThe following location types are available by default:\n`auto`, `hash`, `history`, `none`.\n\nSee [HashLocation](/ember/release/classes/HashLocation).\nSee [HistoryLocation](/ember/release/classes/HistoryLocation).\nSee [NoneLocation](/ember/release/classes/NoneLocation).\nSee [AutoLocation](/ember/release/classes/AutoLocation).",
|
|
8887
8945
|
"itemtype": "property",
|
|
8888
8946
|
"name": "location",
|
|
@@ -8897,7 +8955,7 @@
|
|
|
8897
8955
|
},
|
|
8898
8956
|
{
|
|
8899
8957
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8900
|
-
"line":
|
|
8958
|
+
"line": 680,
|
|
8901
8959
|
"description": "The `rootURL` property represents the URL of the root of\nthe application, '/' by default.\nThis prefix is assumed on all routes defined on this app.\n\nIf you change the `rootURL` in your environment configuration\nlike so:\n\n```config/environment.js\n'use strict';\n\nmodule.exports = function(environment) {\n let ENV = {\n modulePrefix: 'router-service',\n environment,\n rootURL: '/my-root',\n …\n }\n]\n```\n\nThis property will return `/my-root`.",
|
|
8902
8960
|
"itemtype": "property",
|
|
8903
8961
|
"name": "rootURL",
|
|
@@ -8909,7 +8967,7 @@
|
|
|
8909
8967
|
},
|
|
8910
8968
|
{
|
|
8911
8969
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8912
|
-
"line":
|
|
8970
|
+
"line": 710,
|
|
8913
8971
|
"description": "The `currentRoute` property contains metadata about the current leaf route.\nIt returns a `RouteInfo` object that has information like the route name,\nparams, query params and more.\n\nSee [RouteInfo](/ember/release/classes/RouteInfo) for more info.\n\nThis property is guaranteed to change whenever a route transition\nhappens (even when that transition only changes parameters\nand doesn't change the active route).\n\nUsage example:\n```app/components/header.js\n import Component from '@glimmer/component';\n import { service } from '@ember/service';\n import { notEmpty } from '@ember/object/computed';\n\n export default class extends Component {\n @service router;\n\n @notEmpty('router.currentRoute.child') isChildRoute;\n });\n```",
|
|
8914
8972
|
"itemtype": "property",
|
|
8915
8973
|
"name": "currentRoute",
|
|
@@ -10273,7 +10331,7 @@
|
|
|
10273
10331
|
},
|
|
10274
10332
|
{
|
|
10275
10333
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10276
|
-
"line":
|
|
10334
|
+
"line": 549,
|
|
10277
10335
|
"description": "Initializes the current router instance and sets up the change handling\nevent listeners used by the instances `location` implementation.\n\nA property named `initialURL` will be used to determine the initial URL.\nIf no value is found `/` will be used.",
|
|
10278
10336
|
"itemtype": "method",
|
|
10279
10337
|
"name": "startRouting",
|
|
@@ -10284,7 +10342,7 @@
|
|
|
10284
10342
|
},
|
|
10285
10343
|
{
|
|
10286
10344
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10287
|
-
"line":
|
|
10345
|
+
"line": 672,
|
|
10288
10346
|
"description": "Transition the application into another route. The route may\nbe either a single route or route path:",
|
|
10289
10347
|
"itemtype": "method",
|
|
10290
10348
|
"name": "transitionTo",
|
|
@@ -10318,7 +10376,7 @@
|
|
|
10318
10376
|
},
|
|
10319
10377
|
{
|
|
10320
10378
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10321
|
-
"line":
|
|
10379
|
+
"line": 717,
|
|
10322
10380
|
"description": "Similar to `transitionTo`, but instead of adding the destination to the browser's URL history,\nit replaces the entry for the current route.\nWhen the user clicks the \"back\" button in the browser, there will be fewer steps.\nThis is most commonly used to manage redirects in a way that does not cause confusing additions\nto the user's browsing history.",
|
|
10323
10381
|
"itemtype": "method",
|
|
10324
10382
|
"name": "replaceWith",
|
|
@@ -10352,7 +10410,7 @@
|
|
|
10352
10410
|
},
|
|
10353
10411
|
{
|
|
10354
10412
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10355
|
-
"line":
|
|
10413
|
+
"line": 744,
|
|
10356
10414
|
"description": "Determines if the supplied route is currently active.",
|
|
10357
10415
|
"itemtype": "method",
|
|
10358
10416
|
"name": "isActive",
|
|
@@ -10373,7 +10431,7 @@
|
|
|
10373
10431
|
},
|
|
10374
10432
|
{
|
|
10375
10433
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10376
|
-
"line":
|
|
10434
|
+
"line": 756,
|
|
10377
10435
|
"description": "An alternative form of `isActive` that doesn't require\nmanual concatenation of the arguments into a single\narray.",
|
|
10378
10436
|
"itemtype": "method",
|
|
10379
10437
|
"name": "isActiveIntent",
|
|
@@ -10403,7 +10461,7 @@
|
|
|
10403
10461
|
},
|
|
10404
10462
|
{
|
|
10405
10463
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10406
|
-
"line":
|
|
10464
|
+
"line": 778,
|
|
10407
10465
|
"description": "Does this router instance have the given route.",
|
|
10408
10466
|
"itemtype": "method",
|
|
10409
10467
|
"name": "hasRoute",
|
|
@@ -10418,7 +10476,7 @@
|
|
|
10418
10476
|
},
|
|
10419
10477
|
{
|
|
10420
10478
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10421
|
-
"line":
|
|
10479
|
+
"line": 789,
|
|
10422
10480
|
"description": "Resets the state of the router by clearing the current route\nhandlers and deactivating them.",
|
|
10423
10481
|
"access": "private",
|
|
10424
10482
|
"tagname": "",
|
|
@@ -10429,7 +10487,7 @@
|
|
|
10429
10487
|
},
|
|
10430
10488
|
{
|
|
10431
10489
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10432
|
-
"line":
|
|
10490
|
+
"line": 937,
|
|
10433
10491
|
"description": "Serializes the given query params according to their QP meta information.",
|
|
10434
10492
|
"access": "private",
|
|
10435
10493
|
"tagname": "",
|
|
@@ -10456,7 +10514,7 @@
|
|
|
10456
10514
|
},
|
|
10457
10515
|
{
|
|
10458
10516
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10459
|
-
"line":
|
|
10517
|
+
"line": 967,
|
|
10460
10518
|
"description": "Serializes the value of a query parameter based on a type",
|
|
10461
10519
|
"access": "private",
|
|
10462
10520
|
"tagname": "",
|
|
@@ -10479,7 +10537,7 @@
|
|
|
10479
10537
|
},
|
|
10480
10538
|
{
|
|
10481
10539
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10482
|
-
"line":
|
|
10540
|
+
"line": 985,
|
|
10483
10541
|
"description": "Deserializes the given query params according to their QP meta information.",
|
|
10484
10542
|
"access": "private",
|
|
10485
10543
|
"tagname": "",
|
|
@@ -10506,7 +10564,7 @@
|
|
|
10506
10564
|
},
|
|
10507
10565
|
{
|
|
10508
10566
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10509
|
-
"line":
|
|
10567
|
+
"line": 1013,
|
|
10510
10568
|
"description": "Deserializes the value of a query parameter based on a default type",
|
|
10511
10569
|
"access": "private",
|
|
10512
10570
|
"tagname": "",
|
|
@@ -10529,7 +10587,7 @@
|
|
|
10529
10587
|
},
|
|
10530
10588
|
{
|
|
10531
10589
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10532
|
-
"line":
|
|
10590
|
+
"line": 1034,
|
|
10533
10591
|
"description": "Removes (prunes) any query params with default values from the given QP\nobject. Default values are determined from the QP meta information per key.",
|
|
10534
10592
|
"access": "private",
|
|
10535
10593
|
"tagname": "",
|
|
@@ -10556,7 +10614,7 @@
|
|
|
10556
10614
|
},
|
|
10557
10615
|
{
|
|
10558
10616
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10559
|
-
"line":
|
|
10617
|
+
"line": 1115,
|
|
10560
10618
|
"description": "Prepares the query params for a URL or Transition. Restores any undefined QP\nkeys/values, serializes all values, and then prunes any default values.",
|
|
10561
10619
|
"access": "private",
|
|
10562
10620
|
"tagname": "",
|
|
@@ -10593,7 +10651,7 @@
|
|
|
10593
10651
|
},
|
|
10594
10652
|
{
|
|
10595
10653
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10596
|
-
"line":
|
|
10654
|
+
"line": 1142,
|
|
10597
10655
|
"description": "Returns the meta information for the query params of a given route. This\nwill be overridden to allow support for lazy routes.",
|
|
10598
10656
|
"access": "private",
|
|
10599
10657
|
"tagname": "",
|
|
@@ -10615,7 +10673,7 @@
|
|
|
10615
10673
|
},
|
|
10616
10674
|
{
|
|
10617
10675
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10618
|
-
"line":
|
|
10676
|
+
"line": 1156,
|
|
10619
10677
|
"description": "Returns a merged query params meta object for a given set of routeInfos.\nUseful for knowing what query params are available for a given route hierarchy.",
|
|
10620
10678
|
"access": "private",
|
|
10621
10679
|
"tagname": "",
|
|
@@ -10637,7 +10695,7 @@
|
|
|
10637
10695
|
},
|
|
10638
10696
|
{
|
|
10639
10697
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10640
|
-
"line":
|
|
10698
|
+
"line": 1218,
|
|
10641
10699
|
"description": "Maps all query param keys to their fully scoped property name of the form\n`controllerName:propName`.",
|
|
10642
10700
|
"access": "private",
|
|
10643
10701
|
"tagname": "",
|
|
@@ -10669,7 +10727,7 @@
|
|
|
10669
10727
|
},
|
|
10670
10728
|
{
|
|
10671
10729
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10672
|
-
"line":
|
|
10730
|
+
"line": 1256,
|
|
10673
10731
|
"description": "Hydrates (adds/restores) any query params that have pre-existing values into\nthe given queryParams hash. This is what allows query params to be \"sticky\"\nand restore their last known values for their scope.",
|
|
10674
10732
|
"access": "private",
|
|
10675
10733
|
"tagname": "",
|
|
@@ -10696,7 +10754,7 @@
|
|
|
10696
10754
|
},
|
|
10697
10755
|
{
|
|
10698
10756
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10699
|
-
"line":
|
|
10757
|
+
"line": 1427,
|
|
10700
10758
|
"description": "Handles updating the paths and notifying any listeners of the URL\nchange.\n\nTriggers the router level `didTransition` hook.\n\nFor example, to notify google analytics when the route changes,\nyou could use this hook. (Note: requires also including GA scripts, etc.)\n\n```javascript\nimport config from './config/environment';\nimport EmberRouter from '@ember/routing/router';\nimport { service } from '@ember/service';\n\nlet Router = EmberRouter.extend({\n location: config.locationType,\n\n router: service(),\n\n didTransition: function() {\n this._super(...arguments);\n\n ga('send', 'pageview', {\n page: this.router.currentURL,\n title: this.router.currentRouteName,\n });\n }\n});\n```",
|
|
10701
10759
|
"itemtype": "method",
|
|
10702
10760
|
"name": "didTransition",
|
|
@@ -10708,7 +10766,7 @@
|
|
|
10708
10766
|
},
|
|
10709
10767
|
{
|
|
10710
10768
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10711
|
-
"line":
|
|
10769
|
+
"line": 1464,
|
|
10712
10770
|
"description": "Handles notifying any listeners of an impending URL\nchange.\n\nTriggers the router level `willTransition` hook.",
|
|
10713
10771
|
"itemtype": "method",
|
|
10714
10772
|
"name": "willTransition",
|
|
@@ -10720,7 +10778,7 @@
|
|
|
10720
10778
|
},
|
|
10721
10779
|
{
|
|
10722
10780
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10723
|
-
"line":
|
|
10781
|
+
"line": 1477,
|
|
10724
10782
|
"description": "Represents the current URL.",
|
|
10725
10783
|
"itemtype": "property",
|
|
10726
10784
|
"name": "url",
|
|
@@ -10732,7 +10790,7 @@
|
|
|
10732
10790
|
},
|
|
10733
10791
|
{
|
|
10734
10792
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10735
|
-
"line":
|
|
10793
|
+
"line": 1635,
|
|
10736
10794
|
"description": "Finds the name of the substate route if it exists for the given route. A\nsubstate route is of the form `route_state`, such as `foo_loading`.",
|
|
10737
10795
|
"access": "private",
|
|
10738
10796
|
"tagname": "",
|
|
@@ -10757,7 +10815,7 @@
|
|
|
10757
10815
|
},
|
|
10758
10816
|
{
|
|
10759
10817
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10760
|
-
"line":
|
|
10818
|
+
"line": 1656,
|
|
10761
10819
|
"description": "Finds the name of the state route if it exists for the given route. A state\nroute is of the form `route.state`, such as `foo.loading`. Properly Handles\n`application` named routes.",
|
|
10762
10820
|
"access": "private",
|
|
10763
10821
|
"tagname": "",
|
|
@@ -10782,7 +10840,7 @@
|
|
|
10782
10840
|
},
|
|
10783
10841
|
{
|
|
10784
10842
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10785
|
-
"line":
|
|
10843
|
+
"line": 1678,
|
|
10786
10844
|
"description": "Determines whether or not a route has been defined by checking that the route\nis in the Router's map and the owner has a registration for that route.",
|
|
10787
10845
|
"access": "private",
|
|
10788
10846
|
"tagname": "",
|
|
@@ -11075,6 +11133,19 @@
|
|
|
11075
11133
|
"class": "Transition",
|
|
11076
11134
|
"module": "@ember/routing"
|
|
11077
11135
|
},
|
|
11136
|
+
{
|
|
11137
|
+
"file": "packages/@ember/-internals/runtime/lib/mixins/-proxy.d.ts",
|
|
11138
|
+
"line": 6,
|
|
11139
|
+
"description": "The object whose properties will be forwarded.",
|
|
11140
|
+
"itemtype": "property",
|
|
11141
|
+
"name": "content",
|
|
11142
|
+
"type": "{unknown}",
|
|
11143
|
+
"default": "null",
|
|
11144
|
+
"access": "public",
|
|
11145
|
+
"tagname": "",
|
|
11146
|
+
"class": "Ember.ProxyMixin",
|
|
11147
|
+
"module": "@ember/routing"
|
|
11148
|
+
},
|
|
11078
11149
|
{
|
|
11079
11150
|
"file": "packages/@ember/-internals/runtime/lib/mixins/-proxy.js",
|
|
11080
11151
|
"line": 64,
|
|
@@ -12132,7 +12203,7 @@
|
|
|
12132
12203
|
{
|
|
12133
12204
|
"name": "objects",
|
|
12134
12205
|
"description": "the objects to add",
|
|
12135
|
-
"type": "
|
|
12206
|
+
"type": "Enumerable"
|
|
12136
12207
|
}
|
|
12137
12208
|
],
|
|
12138
12209
|
"return": {
|
|
@@ -12418,28 +12489,28 @@
|
|
|
12418
12489
|
},
|
|
12419
12490
|
{
|
|
12420
12491
|
"file": "packages/@ember/-internals/runtime/lib/mixins/evented.d.ts",
|
|
12421
|
-
"line":
|
|
12492
|
+
"line": 23,
|
|
12422
12493
|
"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
12494
|
"class": "Evented",
|
|
12424
12495
|
"module": "@ember/enumerable"
|
|
12425
12496
|
},
|
|
12426
12497
|
{
|
|
12427
12498
|
"file": "packages/@ember/-internals/runtime/lib/mixins/evented.d.ts",
|
|
12428
|
-
"line":
|
|
12499
|
+
"line": 34,
|
|
12429
12500
|
"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
12501
|
"class": "Evented",
|
|
12431
12502
|
"module": "@ember/enumerable"
|
|
12432
12503
|
},
|
|
12433
12504
|
{
|
|
12434
12505
|
"file": "packages/@ember/-internals/runtime/lib/mixins/evented.d.ts",
|
|
12435
|
-
"line":
|
|
12506
|
+
"line": 40,
|
|
12436
12507
|
"description": "Cancels subscription for given name, target, and method.",
|
|
12437
12508
|
"class": "Evented",
|
|
12438
12509
|
"module": "@ember/enumerable"
|
|
12439
12510
|
},
|
|
12440
12511
|
{
|
|
12441
12512
|
"file": "packages/@ember/-internals/runtime/lib/mixins/evented.d.ts",
|
|
12442
|
-
"line":
|
|
12513
|
+
"line": 49,
|
|
12443
12514
|
"description": "Checks to see if object has any subscriptions for named event.",
|
|
12444
12515
|
"class": "Evented",
|
|
12445
12516
|
"module": "@ember/enumerable"
|
|
@@ -13509,13 +13580,25 @@
|
|
|
13509
13580
|
},
|
|
13510
13581
|
{
|
|
13511
13582
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13512
|
-
"line":
|
|
13583
|
+
"line": 14,
|
|
13513
13584
|
"class": "CoreObject",
|
|
13514
13585
|
"module": "@ember/array"
|
|
13515
13586
|
},
|
|
13516
13587
|
{
|
|
13517
13588
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13518
|
-
"line":
|
|
13589
|
+
"line": 17,
|
|
13590
|
+
"class": "CoreObject",
|
|
13591
|
+
"module": "@ember/array"
|
|
13592
|
+
},
|
|
13593
|
+
{
|
|
13594
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13595
|
+
"line": 22,
|
|
13596
|
+
"class": "CoreObject",
|
|
13597
|
+
"module": "@ember/array"
|
|
13598
|
+
},
|
|
13599
|
+
{
|
|
13600
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13601
|
+
"line": 24,
|
|
13519
13602
|
"class": "CoreObject",
|
|
13520
13603
|
"module": "@ember/array"
|
|
13521
13604
|
},
|
|
@@ -13528,26 +13611,56 @@
|
|
|
13528
13611
|
{
|
|
13529
13612
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13530
13613
|
"line": 33,
|
|
13614
|
+
"class": "CoreObject",
|
|
13615
|
+
"module": "@ember/array"
|
|
13616
|
+
},
|
|
13617
|
+
{
|
|
13618
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13619
|
+
"line": 36,
|
|
13620
|
+
"class": "CoreObject",
|
|
13621
|
+
"module": "@ember/array"
|
|
13622
|
+
},
|
|
13623
|
+
{
|
|
13624
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13625
|
+
"line": 44,
|
|
13626
|
+
"class": "CoreObject",
|
|
13627
|
+
"module": "@ember/array"
|
|
13628
|
+
},
|
|
13629
|
+
{
|
|
13630
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13631
|
+
"line": 50,
|
|
13632
|
+
"class": "CoreObject",
|
|
13633
|
+
"module": "@ember/array"
|
|
13634
|
+
},
|
|
13635
|
+
{
|
|
13636
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13637
|
+
"line": 53,
|
|
13638
|
+
"class": "CoreObject",
|
|
13639
|
+
"module": "@ember/array"
|
|
13640
|
+
},
|
|
13641
|
+
{
|
|
13642
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13643
|
+
"line": 56,
|
|
13531
13644
|
"description": "CoreObject constructor takes owner.",
|
|
13532
13645
|
"class": "CoreObject",
|
|
13533
13646
|
"module": "@ember/array"
|
|
13534
13647
|
},
|
|
13535
13648
|
{
|
|
13536
13649
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13537
|
-
"line":
|
|
13650
|
+
"line": 61,
|
|
13538
13651
|
"class": "CoreObject",
|
|
13539
13652
|
"module": "@ember/array"
|
|
13540
13653
|
},
|
|
13541
13654
|
{
|
|
13542
13655
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13543
|
-
"line":
|
|
13656
|
+
"line": 64,
|
|
13544
13657
|
"description": "An overridable method called when objects are instantiated. By default,\ndoes nothing unless it is overridden during class definition.",
|
|
13545
13658
|
"class": "CoreObject",
|
|
13546
13659
|
"module": "@ember/array"
|
|
13547
13660
|
},
|
|
13548
13661
|
{
|
|
13549
13662
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13550
|
-
"line":
|
|
13663
|
+
"line": 70,
|
|
13551
13664
|
"description": "Defines the properties that will be concatenated from the superclass (instead of overridden).",
|
|
13552
13665
|
"default": "null",
|
|
13553
13666
|
"class": "CoreObject",
|
|
@@ -13555,7 +13668,7 @@
|
|
|
13555
13668
|
},
|
|
13556
13669
|
{
|
|
13557
13670
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13558
|
-
"line":
|
|
13671
|
+
"line": 76,
|
|
13559
13672
|
"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
13673
|
"default": "false",
|
|
13561
13674
|
"class": "CoreObject",
|
|
@@ -13563,7 +13676,7 @@
|
|
|
13563
13676
|
},
|
|
13564
13677
|
{
|
|
13565
13678
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13566
|
-
"line":
|
|
13679
|
+
"line": 82,
|
|
13567
13680
|
"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
13681
|
"default": "false",
|
|
13569
13682
|
"class": "CoreObject",
|
|
@@ -13571,7 +13684,7 @@
|
|
|
13571
13684
|
},
|
|
13572
13685
|
{
|
|
13573
13686
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13574
|
-
"line":
|
|
13687
|
+
"line": 90,
|
|
13575
13688
|
"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
13689
|
"return": {
|
|
13577
13690
|
"description": "receiver"
|
|
@@ -13581,14 +13694,14 @@
|
|
|
13581
13694
|
},
|
|
13582
13695
|
{
|
|
13583
13696
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13584
|
-
"line":
|
|
13697
|
+
"line": 101,
|
|
13585
13698
|
"description": "Override to implement teardown.",
|
|
13586
13699
|
"class": "CoreObject",
|
|
13587
13700
|
"module": "@ember/array"
|
|
13588
13701
|
},
|
|
13589
13702
|
{
|
|
13590
13703
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13591
|
-
"line":
|
|
13704
|
+
"line": 106,
|
|
13592
13705
|
"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
13706
|
"return": {
|
|
13594
13707
|
"description": "string representation"
|
|
@@ -13598,19 +13711,19 @@
|
|
|
13598
13711
|
},
|
|
13599
13712
|
{
|
|
13600
13713
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13601
|
-
"line":
|
|
13714
|
+
"line": 118,
|
|
13602
13715
|
"class": "CoreObject",
|
|
13603
13716
|
"module": "@ember/array"
|
|
13604
13717
|
},
|
|
13605
13718
|
{
|
|
13606
13719
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13607
|
-
"line":
|
|
13720
|
+
"line": 124,
|
|
13608
13721
|
"class": "CoreObject",
|
|
13609
13722
|
"module": "@ember/array"
|
|
13610
13723
|
},
|
|
13611
13724
|
{
|
|
13612
13725
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13613
|
-
"line":
|
|
13726
|
+
"line": 127,
|
|
13614
13727
|
"description": "Iterate over each computed property for the class, passing its name and any\nassociated metadata (see metaForProperty) to the callback.",
|
|
13615
13728
|
"internal": "",
|
|
13616
13729
|
"class": "CoreObject",
|
|
@@ -13618,7 +13731,7 @@
|
|
|
13618
13731
|
},
|
|
13619
13732
|
{
|
|
13620
13733
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13621
|
-
"line":
|
|
13734
|
+
"line": 133,
|
|
13622
13735
|
"description": "Returns the original hash that was passed to meta().",
|
|
13623
13736
|
"params": [
|
|
13624
13737
|
{
|
|
@@ -13632,13 +13745,19 @@
|
|
|
13632
13745
|
},
|
|
13633
13746
|
{
|
|
13634
13747
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13635
|
-
"line":
|
|
13748
|
+
"line": 140,
|
|
13749
|
+
"class": "CoreObject",
|
|
13750
|
+
"module": "@ember/array"
|
|
13751
|
+
},
|
|
13752
|
+
{
|
|
13753
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13754
|
+
"line": 143,
|
|
13636
13755
|
"class": "CoreObject",
|
|
13637
13756
|
"module": "@ember/array"
|
|
13638
13757
|
},
|
|
13639
13758
|
{
|
|
13640
13759
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13641
|
-
"line":
|
|
13760
|
+
"line": 146,
|
|
13642
13761
|
"class": "CoreObject",
|
|
13643
13762
|
"module": "@ember/array"
|
|
13644
13763
|
},
|
|
@@ -14506,6 +14625,12 @@
|
|
|
14506
14625
|
"class": "Ember.EventDispatcher",
|
|
14507
14626
|
"module": "ember"
|
|
14508
14627
|
},
|
|
14628
|
+
{
|
|
14629
|
+
"file": "packages/@ember/-internals/views/lib/system/event_dispatcher.d.ts",
|
|
14630
|
+
"line": 8,
|
|
14631
|
+
"class": "Ember.EventDispatcher",
|
|
14632
|
+
"module": "ember"
|
|
14633
|
+
},
|
|
14509
14634
|
{
|
|
14510
14635
|
"file": "packages/@ember/-internals/views/lib/system/event_dispatcher.js",
|
|
14511
14636
|
"line": 27,
|
|
@@ -14619,7 +14744,7 @@
|
|
|
14619
14744
|
},
|
|
14620
14745
|
{
|
|
14621
14746
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14622
|
-
"line":
|
|
14747
|
+
"line": 35,
|
|
14623
14748
|
"access": "private",
|
|
14624
14749
|
"tagname": "",
|
|
14625
14750
|
"itemtype": "method",
|
|
@@ -14636,7 +14761,7 @@
|
|
|
14636
14761
|
},
|
|
14637
14762
|
{
|
|
14638
14763
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14639
|
-
"line":
|
|
14764
|
+
"line": 57,
|
|
14640
14765
|
"access": "private",
|
|
14641
14766
|
"tagname": "",
|
|
14642
14767
|
"itemtype": "method",
|
|
@@ -14653,7 +14778,7 @@
|
|
|
14653
14778
|
},
|
|
14654
14779
|
{
|
|
14655
14780
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14656
|
-
"line":
|
|
14781
|
+
"line": 77,
|
|
14657
14782
|
"access": "private",
|
|
14658
14783
|
"tagname": "",
|
|
14659
14784
|
"itemtype": "method",
|
|
@@ -14670,7 +14795,7 @@
|
|
|
14670
14795
|
},
|
|
14671
14796
|
{
|
|
14672
14797
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14673
|
-
"line":
|
|
14798
|
+
"line": 109,
|
|
14674
14799
|
"access": "private",
|
|
14675
14800
|
"tagname": "",
|
|
14676
14801
|
"itemtype": "method",
|
|
@@ -14687,7 +14812,7 @@
|
|
|
14687
14812
|
},
|
|
14688
14813
|
{
|
|
14689
14814
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14690
|
-
"line":
|
|
14815
|
+
"line": 152,
|
|
14691
14816
|
"access": "private",
|
|
14692
14817
|
"tagname": "",
|
|
14693
14818
|
"itemtype": "method",
|
|
@@ -14704,7 +14829,7 @@
|
|
|
14704
14829
|
},
|
|
14705
14830
|
{
|
|
14706
14831
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14707
|
-
"line":
|
|
14832
|
+
"line": 161,
|
|
14708
14833
|
"access": "private",
|
|
14709
14834
|
"tagname": "",
|
|
14710
14835
|
"itemtype": "method",
|
|
@@ -14721,7 +14846,7 @@
|
|
|
14721
14846
|
},
|
|
14722
14847
|
{
|
|
14723
14848
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14724
|
-
"line":
|
|
14849
|
+
"line": 176,
|
|
14725
14850
|
"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
14851
|
"access": "private",
|
|
14727
14852
|
"tagname": "",
|
|
@@ -14739,7 +14864,7 @@
|
|
|
14739
14864
|
},
|
|
14740
14865
|
{
|
|
14741
14866
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14742
|
-
"line":
|
|
14867
|
+
"line": 192,
|
|
14743
14868
|
"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
14869
|
"access": "private",
|
|
14745
14870
|
"tagname": "",
|
|
@@ -14757,7 +14882,7 @@
|
|
|
14757
14882
|
},
|
|
14758
14883
|
{
|
|
14759
14884
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14760
|
-
"line":
|
|
14885
|
+
"line": 208,
|
|
14761
14886
|
"description": "Determines if the element matches the specified selector.",
|
|
14762
14887
|
"access": "private",
|
|
14763
14888
|
"tagname": "",
|
|
@@ -14779,8 +14904,8 @@
|
|
|
14779
14904
|
"module": "ember"
|
|
14780
14905
|
},
|
|
14781
14906
|
{
|
|
14782
|
-
"file": "packages/@ember/-internals/views/lib/views/core_view.
|
|
14783
|
-
"line":
|
|
14907
|
+
"file": "packages/@ember/-internals/views/lib/views/core_view.ts",
|
|
14908
|
+
"line": 39,
|
|
14784
14909
|
"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
14910
|
"itemtype": "property",
|
|
14786
14911
|
"name": "parentView",
|
|
@@ -14793,8 +14918,8 @@
|
|
|
14793
14918
|
"namespace": "Ember"
|
|
14794
14919
|
},
|
|
14795
14920
|
{
|
|
14796
|
-
"file": "packages/@ember/-internals/views/lib/views/core_view.
|
|
14797
|
-
"line":
|
|
14921
|
+
"file": "packages/@ember/-internals/views/lib/views/core_view.ts",
|
|
14922
|
+
"line": 57,
|
|
14798
14923
|
"description": "Override the default event firing from `Evented` to\nalso call methods with the given name.",
|
|
14799
14924
|
"itemtype": "method",
|
|
14800
14925
|
"name": "trigger",
|
|
@@ -14811,6 +14936,13 @@
|
|
|
14811
14936
|
"module": "ember",
|
|
14812
14937
|
"namespace": "Ember"
|
|
14813
14938
|
},
|
|
14939
|
+
{
|
|
14940
|
+
"file": "packages/@ember/application/lib/application.d.ts",
|
|
14941
|
+
"line": 17,
|
|
14942
|
+
"class": "Application",
|
|
14943
|
+
"module": "ember",
|
|
14944
|
+
"namespace": "Ember"
|
|
14945
|
+
},
|
|
14814
14946
|
{
|
|
14815
14947
|
"file": "packages/@ember/application/lib/application.js",
|
|
14816
14948
|
"line": 185,
|
|
@@ -15408,7 +15540,7 @@
|
|
|
15408
15540
|
},
|
|
15409
15541
|
{
|
|
15410
15542
|
"file": "packages/@ember/canary-features/index.ts",
|
|
15411
|
-
"line":
|
|
15543
|
+
"line": 31,
|
|
15412
15544
|
"description": "Determine whether the specified `feature` is enabled. Used by Ember's\nbuild tools to exclude experimental features from beta/stable builds.\n\nYou can define the following configuration options:\n\n* `EmberENV.ENABLE_OPTIONAL_FEATURES` - enable any features that have not been explicitly\n enabled/disabled.",
|
|
15413
15545
|
"itemtype": "method",
|
|
15414
15546
|
"name": "isEnabled",
|
|
@@ -15551,7 +15683,7 @@
|
|
|
15551
15683
|
},
|
|
15552
15684
|
{
|
|
15553
15685
|
"file": "packages/@ember/debug/lib/deprecate.ts",
|
|
15554
|
-
"line":
|
|
15686
|
+
"line": 181,
|
|
15555
15687
|
"description": "Display a deprecation warning with the provided message and a stack trace\n(Chrome and Firefox only).\n\n* In a production build, this method is defined as an empty function (NOP).\nUses of this method in Ember itself are stripped from the ember.prod.js build.",
|
|
15556
15688
|
"itemtype": "method",
|
|
15557
15689
|
"name": "deprecate",
|
|
@@ -17411,6 +17543,21 @@
|
|
|
17411
17543
|
"class": "@ember/polyfills",
|
|
17412
17544
|
"module": "@ember/polyfills"
|
|
17413
17545
|
},
|
|
17546
|
+
{
|
|
17547
|
+
"file": "packages/@ember/renderer/index.ts",
|
|
17548
|
+
"line": 11,
|
|
17549
|
+
"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.",
|
|
17550
|
+
"itemtype": "method",
|
|
17551
|
+
"name": "renderSettled",
|
|
17552
|
+
"return": {
|
|
17553
|
+
"description": "a promise which fulfills when rendering has settled",
|
|
17554
|
+
"type": "Promise<void>"
|
|
17555
|
+
},
|
|
17556
|
+
"access": "public",
|
|
17557
|
+
"tagname": "",
|
|
17558
|
+
"class": "Renderer",
|
|
17559
|
+
"module": "@ember/renderer"
|
|
17560
|
+
},
|
|
17414
17561
|
{
|
|
17415
17562
|
"file": "packages/@ember/runloop/index.ts",
|
|
17416
17563
|
"line": 60,
|
|
@@ -17422,7 +17569,7 @@
|
|
|
17422
17569
|
"access": "private",
|
|
17423
17570
|
"tagname": "",
|
|
17424
17571
|
"class": "@ember/runloop",
|
|
17425
|
-
"module": "@ember/
|
|
17572
|
+
"module": "@ember/renderer"
|
|
17426
17573
|
},
|
|
17427
17574
|
{
|
|
17428
17575
|
"file": "packages/@ember/runloop/index.ts",
|
|
@@ -17461,7 +17608,7 @@
|
|
|
17461
17608
|
},
|
|
17462
17609
|
{
|
|
17463
17610
|
"file": "packages/@ember/runloop/index.ts",
|
|
17464
|
-
"line":
|
|
17611
|
+
"line": 151,
|
|
17465
17612
|
"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
17613
|
"itemtype": "method",
|
|
17467
17614
|
"name": "join",
|
|
@@ -17496,7 +17643,7 @@
|
|
|
17496
17643
|
},
|
|
17497
17644
|
{
|
|
17498
17645
|
"file": "packages/@ember/runloop/index.ts",
|
|
17499
|
-
"line":
|
|
17646
|
+
"line": 213,
|
|
17500
17647
|
"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
17648
|
"itemtype": "method",
|
|
17502
17649
|
"name": "bind",
|
|
@@ -17532,7 +17679,7 @@
|
|
|
17532
17679
|
},
|
|
17533
17680
|
{
|
|
17534
17681
|
"file": "packages/@ember/runloop/index.ts",
|
|
17535
|
-
"line":
|
|
17682
|
+
"line": 327,
|
|
17536
17683
|
"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
17684
|
"itemtype": "method",
|
|
17538
17685
|
"name": "begin",
|
|
@@ -17548,7 +17695,7 @@
|
|
|
17548
17695
|
},
|
|
17549
17696
|
{
|
|
17550
17697
|
"file": "packages/@ember/runloop/index.ts",
|
|
17551
|
-
"line":
|
|
17698
|
+
"line": 350,
|
|
17552
17699
|
"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
17700
|
"itemtype": "method",
|
|
17554
17701
|
"name": "end",
|
|
@@ -17564,7 +17711,7 @@
|
|
|
17564
17711
|
},
|
|
17565
17712
|
{
|
|
17566
17713
|
"file": "packages/@ember/runloop/index.ts",
|
|
17567
|
-
"line":
|
|
17714
|
+
"line": 373,
|
|
17568
17715
|
"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
17716
|
"itemtype": "method",
|
|
17570
17717
|
"name": "schedule",
|
|
@@ -17604,7 +17751,7 @@
|
|
|
17604
17751
|
},
|
|
17605
17752
|
{
|
|
17606
17753
|
"file": "packages/@ember/runloop/index.ts",
|
|
17607
|
-
"line":
|
|
17754
|
+
"line": 446,
|
|
17608
17755
|
"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
17756
|
"itemtype": "method",
|
|
17610
17757
|
"name": "later",
|
|
@@ -17644,7 +17791,7 @@
|
|
|
17644
17791
|
},
|
|
17645
17792
|
{
|
|
17646
17793
|
"file": "packages/@ember/runloop/index.ts",
|
|
17647
|
-
"line":
|
|
17794
|
+
"line": 497,
|
|
17648
17795
|
"description": "Schedule a function to run one time during the current RunLoop. This is equivalent\n to calling `scheduleOnce` with the \"actions\" queue.",
|
|
17649
17796
|
"itemtype": "method",
|
|
17650
17797
|
"name": "once",
|
|
@@ -17679,7 +17826,7 @@
|
|
|
17679
17826
|
},
|
|
17680
17827
|
{
|
|
17681
17828
|
"file": "packages/@ember/runloop/index.ts",
|
|
17682
|
-
"line":
|
|
17829
|
+
"line": 528,
|
|
17683
17830
|
"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
17831
|
"itemtype": "method",
|
|
17685
17832
|
"name": "scheduleOnce",
|
|
@@ -17720,7 +17867,7 @@
|
|
|
17720
17867
|
},
|
|
17721
17868
|
{
|
|
17722
17869
|
"file": "packages/@ember/runloop/index.ts",
|
|
17723
|
-
"line":
|
|
17870
|
+
"line": 622,
|
|
17724
17871
|
"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
17872
|
"itemtype": "method",
|
|
17726
17873
|
"name": "next",
|
|
@@ -17755,7 +17902,7 @@
|
|
|
17755
17902
|
},
|
|
17756
17903
|
{
|
|
17757
17904
|
"file": "packages/@ember/runloop/index.ts",
|
|
17758
|
-
"line":
|
|
17905
|
+
"line": 707,
|
|
17759
17906
|
"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
17907
|
"itemtype": "method",
|
|
17761
17908
|
"name": "cancel",
|
|
@@ -17778,7 +17925,7 @@
|
|
|
17778
17925
|
},
|
|
17779
17926
|
{
|
|
17780
17927
|
"file": "packages/@ember/runloop/index.ts",
|
|
17781
|
-
"line":
|
|
17928
|
+
"line": 778,
|
|
17782
17929
|
"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
17930
|
"itemtype": "method",
|
|
17784
17931
|
"name": "debounce",
|
|
@@ -17823,7 +17970,7 @@
|
|
|
17823
17970
|
},
|
|
17824
17971
|
{
|
|
17825
17972
|
"file": "packages/@ember/runloop/index.ts",
|
|
17826
|
-
"line":
|
|
17973
|
+
"line": 875,
|
|
17827
17974
|
"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
17975
|
"itemtype": "method",
|
|
17829
17976
|
"name": "throttle",
|
|
@@ -18596,11 +18743,11 @@
|
|
|
18596
18743
|
},
|
|
18597
18744
|
{
|
|
18598
18745
|
"message": "unknown tag: internal",
|
|
18599
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:
|
|
18746
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:127"
|
|
18600
18747
|
},
|
|
18601
18748
|
{
|
|
18602
18749
|
"message": "unknown tag: internal",
|
|
18603
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:
|
|
18750
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:133"
|
|
18604
18751
|
},
|
|
18605
18752
|
{
|
|
18606
18753
|
"message": "replacing incorrect tag: function with method",
|
|
@@ -18624,7 +18771,7 @@
|
|
|
18624
18771
|
},
|
|
18625
18772
|
{
|
|
18626
18773
|
"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:
|
|
18774
|
+
"line": " packages/@ember/-internals/container/lib/registry.ts:448"
|
|
18628
18775
|
},
|
|
18629
18776
|
{
|
|
18630
18777
|
"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.",
|
|
@@ -18948,15 +19095,15 @@
|
|
|
18948
19095
|
},
|
|
18949
19096
|
{
|
|
18950
19097
|
"message": "Missing item type\nFinds the name of the substate route if it exists for the given route. A\nsubstate route is of the form `route_state`, such as `foo_loading`.",
|
|
18951
|
-
"line": " packages/@ember/-internals/routing/lib/system/router.ts:
|
|
19098
|
+
"line": " packages/@ember/-internals/routing/lib/system/router.ts:1635"
|
|
18952
19099
|
},
|
|
18953
19100
|
{
|
|
18954
19101
|
"message": "Missing item type\nFinds the name of the state route if it exists for the given route. A state\nroute is of the form `route.state`, such as `foo.loading`. Properly Handles\n`application` named routes.",
|
|
18955
|
-
"line": " packages/@ember/-internals/routing/lib/system/router.ts:
|
|
19102
|
+
"line": " packages/@ember/-internals/routing/lib/system/router.ts:1656"
|
|
18956
19103
|
},
|
|
18957
19104
|
{
|
|
18958
19105
|
"message": "Missing item type\nDetermines whether or not a route has been defined by checking that the route\nis in the Router's map and the owner has a registration for that route.",
|
|
18959
|
-
"line": " packages/@ember/-internals/routing/lib/system/router.ts:
|
|
19106
|
+
"line": " packages/@ember/-internals/routing/lib/system/router.ts:1678"
|
|
18960
19107
|
},
|
|
18961
19108
|
{
|
|
18962
19109
|
"message": "Missing item type",
|
|
@@ -18972,19 +19119,19 @@
|
|
|
18972
19119
|
},
|
|
18973
19120
|
{
|
|
18974
19121
|
"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:
|
|
19122
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/evented.d.ts:23"
|
|
18976
19123
|
},
|
|
18977
19124
|
{
|
|
18978
19125
|
"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:
|
|
19126
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/evented.d.ts:34"
|
|
18980
19127
|
},
|
|
18981
19128
|
{
|
|
18982
19129
|
"message": "Missing item type\nCancels subscription for given name, target, and method.",
|
|
18983
|
-
"line": " packages/@ember/-internals/runtime/lib/mixins/evented.d.ts:
|
|
19130
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/evented.d.ts:40"
|
|
18984
19131
|
},
|
|
18985
19132
|
{
|
|
18986
19133
|
"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:
|
|
19134
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/evented.d.ts:49"
|
|
18988
19135
|
},
|
|
18989
19136
|
{
|
|
18990
19137
|
"message": "Missing item type\nThis mixin provides properties and property observing functionality, core features of the Ember object model.",
|
|
@@ -19044,75 +19191,107 @@
|
|
|
19044
19191
|
},
|
|
19045
19192
|
{
|
|
19046
19193
|
"message": "Missing item type",
|
|
19047
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:
|
|
19194
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:14"
|
|
19048
19195
|
},
|
|
19049
19196
|
{
|
|
19050
19197
|
"message": "Missing item type",
|
|
19051
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:
|
|
19198
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:17"
|
|
19199
|
+
},
|
|
19200
|
+
{
|
|
19201
|
+
"message": "Missing item type",
|
|
19202
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:22"
|
|
19203
|
+
},
|
|
19204
|
+
{
|
|
19205
|
+
"message": "Missing item type",
|
|
19206
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:24"
|
|
19052
19207
|
},
|
|
19053
19208
|
{
|
|
19054
19209
|
"message": "Missing item type",
|
|
19055
19210
|
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:30"
|
|
19056
19211
|
},
|
|
19057
19212
|
{
|
|
19058
|
-
"message": "Missing item type
|
|
19213
|
+
"message": "Missing item type",
|
|
19059
19214
|
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:33"
|
|
19060
19215
|
},
|
|
19061
19216
|
{
|
|
19062
19217
|
"message": "Missing item type",
|
|
19063
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:
|
|
19218
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:36"
|
|
19219
|
+
},
|
|
19220
|
+
{
|
|
19221
|
+
"message": "Missing item type",
|
|
19222
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:44"
|
|
19223
|
+
},
|
|
19224
|
+
{
|
|
19225
|
+
"message": "Missing item type",
|
|
19226
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:50"
|
|
19227
|
+
},
|
|
19228
|
+
{
|
|
19229
|
+
"message": "Missing item type",
|
|
19230
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:53"
|
|
19231
|
+
},
|
|
19232
|
+
{
|
|
19233
|
+
"message": "Missing item type\nCoreObject constructor takes owner.",
|
|
19234
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:56"
|
|
19235
|
+
},
|
|
19236
|
+
{
|
|
19237
|
+
"message": "Missing item type",
|
|
19238
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:61"
|
|
19064
19239
|
},
|
|
19065
19240
|
{
|
|
19066
19241
|
"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:
|
|
19242
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:64"
|
|
19068
19243
|
},
|
|
19069
19244
|
{
|
|
19070
19245
|
"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:
|
|
19246
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:70"
|
|
19072
19247
|
},
|
|
19073
19248
|
{
|
|
19074
19249
|
"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:
|
|
19250
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:76"
|
|
19076
19251
|
},
|
|
19077
19252
|
{
|
|
19078
19253
|
"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:
|
|
19254
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:82"
|
|
19080
19255
|
},
|
|
19081
19256
|
{
|
|
19082
19257
|
"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:
|
|
19258
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:90"
|
|
19084
19259
|
},
|
|
19085
19260
|
{
|
|
19086
19261
|
"message": "Missing item type\nOverride to implement teardown.",
|
|
19087
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:
|
|
19262
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:101"
|
|
19088
19263
|
},
|
|
19089
19264
|
{
|
|
19090
19265
|
"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:
|
|
19266
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:106"
|
|
19092
19267
|
},
|
|
19093
19268
|
{
|
|
19094
19269
|
"message": "Missing item type",
|
|
19095
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:
|
|
19270
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:118"
|
|
19096
19271
|
},
|
|
19097
19272
|
{
|
|
19098
19273
|
"message": "Missing item type",
|
|
19099
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:
|
|
19274
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:124"
|
|
19100
19275
|
},
|
|
19101
19276
|
{
|
|
19102
19277
|
"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:
|
|
19278
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:127"
|
|
19104
19279
|
},
|
|
19105
19280
|
{
|
|
19106
19281
|
"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:
|
|
19282
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:133"
|
|
19283
|
+
},
|
|
19284
|
+
{
|
|
19285
|
+
"message": "Missing item type",
|
|
19286
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:140"
|
|
19108
19287
|
},
|
|
19109
19288
|
{
|
|
19110
19289
|
"message": "Missing item type",
|
|
19111
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:
|
|
19290
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:143"
|
|
19112
19291
|
},
|
|
19113
19292
|
{
|
|
19114
19293
|
"message": "Missing item type",
|
|
19115
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:
|
|
19294
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:146"
|
|
19116
19295
|
},
|
|
19117
19296
|
{
|
|
19118
19297
|
"message": "Missing item type",
|
|
@@ -19130,6 +19309,14 @@
|
|
|
19130
19309
|
"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
19310
|
"line": " packages/@ember/-internals/utils/lib/intern.ts:1"
|
|
19132
19311
|
},
|
|
19312
|
+
{
|
|
19313
|
+
"message": "Missing item type",
|
|
19314
|
+
"line": " packages/@ember/-internals/views/lib/system/event_dispatcher.d.ts:8"
|
|
19315
|
+
},
|
|
19316
|
+
{
|
|
19317
|
+
"message": "Missing item type",
|
|
19318
|
+
"line": " packages/@ember/application/lib/application.d.ts:17"
|
|
19319
|
+
},
|
|
19133
19320
|
{
|
|
19134
19321
|
"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
19322
|
"line": " packages/@ember/application/lib/application.js:662"
|