ember-source 4.2.0-beta.1 → 4.3.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blueprints/component-addon/index.js +2 -3
- package/blueprints/component-class-addon/index.js +2 -3
- package/blueprints/controller/files/__root__/__path__/__name__.js +2 -2
- package/blueprints/controller/index.js +2 -4
- package/blueprints/route/files/__root__/__path__/__name__.js +3 -3
- package/blueprints/route/index.js +2 -3
- package/blueprints/service/files/__root__/__path__/__name__.js +2 -2
- package/blueprints/service/index.js +2 -4
- package/build-metadata.json +3 -3
- package/dist/ember-template-compiler.js +1238 -852
- package/dist/ember-template-compiler.map +1 -1
- package/dist/ember-testing.js +88 -56
- package/dist/ember-testing.map +1 -1
- package/dist/ember.debug.js +3211 -2123
- package/dist/ember.debug.map +1 -1
- package/dist/header/license.js +1 -1
- package/dist/header/loader.js +0 -1
- package/dist/packages/@ember/-internals/bootstrap/index.js +0 -2
- package/dist/packages/@ember/-internals/container/index.js +2 -1
- package/dist/packages/@ember/-internals/extension-support/lib/container_debug_adapter.js +3 -3
- package/dist/packages/@ember/-internals/extension-support/lib/data_adapter.js +52 -52
- package/dist/packages/@ember/-internals/glimmer/index.js +101 -80
- package/dist/packages/@ember/-internals/meta/lib/meta.js +59 -2
- package/dist/packages/@ember/-internals/metal/index.js +51 -76
- package/dist/packages/@ember/-internals/routing/lib/ext/controller.js +14 -4
- package/dist/packages/@ember/-internals/routing/lib/location/api.js +1 -0
- package/dist/packages/@ember/-internals/routing/lib/location/auto_location.js +3 -1
- package/dist/packages/@ember/-internals/routing/lib/services/router.js +7 -49
- package/dist/packages/@ember/-internals/routing/lib/services/routing.js +3 -1
- package/dist/packages/@ember/-internals/routing/lib/system/route.js +57 -33
- package/dist/packages/@ember/-internals/routing/lib/system/router.js +22 -7
- package/dist/packages/@ember/-internals/routing/lib/utils.js +23 -11
- package/dist/packages/@ember/-internals/runtime/lib/mixins/-proxy.js +1 -1
- package/dist/packages/@ember/-internals/runtime/lib/mixins/action_handler.js +32 -32
- package/dist/packages/@ember/-internals/runtime/lib/mixins/array.js +1 -0
- package/dist/packages/@ember/-internals/runtime/lib/mixins/comparable.js +4 -4
- package/dist/packages/@ember/-internals/runtime/lib/mixins/container_proxy.js +29 -29
- package/dist/packages/@ember/-internals/runtime/lib/mixins/promise_proxy.js +16 -16
- package/dist/packages/@ember/-internals/runtime/lib/mixins/registry_proxy.js +48 -48
- package/dist/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +8 -8
- package/dist/packages/@ember/-internals/runtime/lib/system/namespace.js +1 -2
- package/dist/packages/@ember/-internals/runtime/lib/type-of.js +1 -1
- package/dist/packages/@ember/-internals/utils/index.js +9 -9
- package/dist/packages/@ember/-internals/views/lib/mixins/view_support.js +2 -4
- package/dist/packages/@ember/-internals/views/lib/system/utils.js +1 -0
- package/dist/packages/@ember/application/lib/application.js +0 -2
- package/dist/packages/@ember/array/index.js +1 -1
- package/dist/packages/@ember/canary-features/index.js +2 -2
- package/dist/packages/@ember/debug/index.js +1 -1
- package/dist/packages/@ember/debug/lib/deprecate.js +12 -10
- package/dist/packages/@ember/object/compat.js +16 -7
- package/dist/packages/@ember/polyfills/lib/assign.js +1 -0
- package/dist/packages/@ember/runloop/index.js +9 -9
- package/dist/packages/@ember/string/index.js +1 -0
- package/dist/packages/ember/index.js +1 -2
- package/dist/packages/ember/version.js +1 -1
- package/docs/data.json +1362 -681
- package/package.json +31 -31
- package/blueprints/component-addon/native-files/__root__/__path__/__name__.js +0 -1
- package/blueprints/component-class-addon/native-files/__root__/__path__/__name__.js +0 -1
- package/blueprints/controller/native-files/__root__/__path__/__name__.js +0 -4
- package/blueprints/edition-detector.js +0 -13
- package/blueprints/route/native-files/__root__/__path__/__name__.js +0 -11
- package/blueprints/route/native-files/__root__/__templatepath__/__templatename__.hbs +0 -2
- package/blueprints/service/native-files/__root__/__path__/__name__.js +0 -4
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.
|
|
6
|
+
"version": "4.3.0-alpha.4"
|
|
7
7
|
},
|
|
8
8
|
"files": {
|
|
9
9
|
"node_modules/rsvp/lib/rsvp/promise/all.js": {
|
|
@@ -980,6 +980,13 @@
|
|
|
980
980
|
"fors": {},
|
|
981
981
|
"namespaces": {}
|
|
982
982
|
},
|
|
983
|
+
"packages/@ember/-internals/runtime/lib/mixins/evented.d.ts": {
|
|
984
|
+
"name": "packages/@ember/-internals/runtime/lib/mixins/evented.d.ts",
|
|
985
|
+
"modules": {},
|
|
986
|
+
"classes": {},
|
|
987
|
+
"fors": {},
|
|
988
|
+
"namespaces": {}
|
|
989
|
+
},
|
|
983
990
|
"packages/@ember/-internals/runtime/lib/mixins/evented.js": {
|
|
984
991
|
"name": "packages/@ember/-internals/runtime/lib/mixins/evented.js",
|
|
985
992
|
"modules": {},
|
|
@@ -1000,6 +1007,13 @@
|
|
|
1000
1007
|
"Ember": 1
|
|
1001
1008
|
}
|
|
1002
1009
|
},
|
|
1010
|
+
"packages/@ember/-internals/runtime/lib/mixins/observable.d.ts": {
|
|
1011
|
+
"name": "packages/@ember/-internals/runtime/lib/mixins/observable.d.ts",
|
|
1012
|
+
"modules": {},
|
|
1013
|
+
"classes": {},
|
|
1014
|
+
"fors": {},
|
|
1015
|
+
"namespaces": {}
|
|
1016
|
+
},
|
|
1003
1017
|
"packages/@ember/-internals/runtime/lib/mixins/observable.js": {
|
|
1004
1018
|
"name": "packages/@ember/-internals/runtime/lib/mixins/observable.js",
|
|
1005
1019
|
"modules": {},
|
|
@@ -1047,6 +1061,13 @@
|
|
|
1047
1061
|
"fors": {},
|
|
1048
1062
|
"namespaces": {}
|
|
1049
1063
|
},
|
|
1064
|
+
"packages/@ember/-internals/runtime/lib/system/core_object.d.ts": {
|
|
1065
|
+
"name": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
1066
|
+
"modules": {},
|
|
1067
|
+
"classes": {},
|
|
1068
|
+
"fors": {},
|
|
1069
|
+
"namespaces": {}
|
|
1070
|
+
},
|
|
1050
1071
|
"packages/@ember/-internals/runtime/lib/system/core_object.js": {
|
|
1051
1072
|
"name": "packages/@ember/-internals/runtime/lib/system/core_object.js",
|
|
1052
1073
|
"modules": {},
|
|
@@ -1062,12 +1083,17 @@
|
|
|
1062
1083
|
"name": "packages/@ember/-internals/runtime/lib/system/namespace.js",
|
|
1063
1084
|
"modules": {},
|
|
1064
1085
|
"classes": {
|
|
1065
|
-
"
|
|
1086
|
+
"Namespace": 1
|
|
1066
1087
|
},
|
|
1067
1088
|
"fors": {},
|
|
1068
|
-
"namespaces": {
|
|
1069
|
-
|
|
1070
|
-
|
|
1089
|
+
"namespaces": {}
|
|
1090
|
+
},
|
|
1091
|
+
"packages/@ember/-internals/runtime/lib/system/object.d.ts": {
|
|
1092
|
+
"name": "packages/@ember/-internals/runtime/lib/system/object.d.ts",
|
|
1093
|
+
"modules": {},
|
|
1094
|
+
"classes": {},
|
|
1095
|
+
"fors": {},
|
|
1096
|
+
"namespaces": {}
|
|
1071
1097
|
},
|
|
1072
1098
|
"packages/@ember/-internals/runtime/lib/system/object.js": {
|
|
1073
1099
|
"name": "packages/@ember/-internals/runtime/lib/system/object.js",
|
|
@@ -1114,41 +1140,6 @@
|
|
|
1114
1140
|
},
|
|
1115
1141
|
"namespaces": {}
|
|
1116
1142
|
},
|
|
1117
|
-
"packages/@ember/-internals/runtime/type-tests/core.test.ts": {
|
|
1118
|
-
"name": "packages/@ember/-internals/runtime/type-tests/core.test.ts",
|
|
1119
|
-
"modules": {},
|
|
1120
|
-
"classes": {},
|
|
1121
|
-
"fors": {},
|
|
1122
|
-
"namespaces": {}
|
|
1123
|
-
},
|
|
1124
|
-
"packages/@ember/-internals/runtime/types/-private/types.d.ts": {
|
|
1125
|
-
"name": "packages/@ember/-internals/runtime/types/-private/types.d.ts",
|
|
1126
|
-
"modules": {},
|
|
1127
|
-
"classes": {},
|
|
1128
|
-
"fors": {},
|
|
1129
|
-
"namespaces": {}
|
|
1130
|
-
},
|
|
1131
|
-
"packages/@ember/-internals/runtime/types/core.d.ts": {
|
|
1132
|
-
"name": "packages/@ember/-internals/runtime/types/core.d.ts",
|
|
1133
|
-
"modules": {},
|
|
1134
|
-
"classes": {},
|
|
1135
|
-
"fors": {},
|
|
1136
|
-
"namespaces": {}
|
|
1137
|
-
},
|
|
1138
|
-
"packages/@ember/-internals/runtime/types/evented.d.ts": {
|
|
1139
|
-
"name": "packages/@ember/-internals/runtime/types/evented.d.ts",
|
|
1140
|
-
"modules": {},
|
|
1141
|
-
"classes": {},
|
|
1142
|
-
"fors": {},
|
|
1143
|
-
"namespaces": {}
|
|
1144
|
-
},
|
|
1145
|
-
"packages/@ember/-internals/runtime/types/observable.d.ts": {
|
|
1146
|
-
"name": "packages/@ember/-internals/runtime/types/observable.d.ts",
|
|
1147
|
-
"modules": {},
|
|
1148
|
-
"classes": {},
|
|
1149
|
-
"fors": {},
|
|
1150
|
-
"namespaces": {}
|
|
1151
|
-
},
|
|
1152
1143
|
"packages/@ember/-internals/utils/lib/guid.ts": {
|
|
1153
1144
|
"name": "packages/@ember/-internals/utils/lib/guid.ts",
|
|
1154
1145
|
"modules": {},
|
|
@@ -1507,6 +1498,20 @@
|
|
|
1507
1498
|
},
|
|
1508
1499
|
"namespaces": {}
|
|
1509
1500
|
},
|
|
1501
|
+
"packages/@ember/object/type-tests/core/index.test.ts": {
|
|
1502
|
+
"name": "packages/@ember/object/type-tests/core/index.test.ts",
|
|
1503
|
+
"modules": {},
|
|
1504
|
+
"classes": {},
|
|
1505
|
+
"fors": {},
|
|
1506
|
+
"namespaces": {}
|
|
1507
|
+
},
|
|
1508
|
+
"packages/@ember/object/type-tests/ember-object.test.ts": {
|
|
1509
|
+
"name": "packages/@ember/object/type-tests/ember-object.test.ts",
|
|
1510
|
+
"modules": {},
|
|
1511
|
+
"classes": {},
|
|
1512
|
+
"fors": {},
|
|
1513
|
+
"namespaces": {}
|
|
1514
|
+
},
|
|
1510
1515
|
"packages/@ember/object/compat.ts": {
|
|
1511
1516
|
"name": "packages/@ember/object/compat.ts",
|
|
1512
1517
|
"modules": {},
|
|
@@ -1769,7 +1774,7 @@
|
|
|
1769
1774
|
"namespaces": {},
|
|
1770
1775
|
"tag": "main",
|
|
1771
1776
|
"file": "packages/@ember/-internals/glimmer/lib/helper.ts",
|
|
1772
|
-
"line":
|
|
1777
|
+
"line": 37,
|
|
1773
1778
|
"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).",
|
|
1774
1779
|
"itemtype": "main"
|
|
1775
1780
|
},
|
|
@@ -1823,7 +1828,6 @@
|
|
|
1823
1828
|
"Ember.MutableEnumerable": 1,
|
|
1824
1829
|
"RegistryProxyMixin": 1,
|
|
1825
1830
|
"Ember.TargetActionSupport": 1,
|
|
1826
|
-
"Ember.Namespace": 1,
|
|
1827
1831
|
"Ember.ActionSupport": 1,
|
|
1828
1832
|
"Ember.ClassNamesSupport": 1,
|
|
1829
1833
|
"Ember.ViewMixin": 1,
|
|
@@ -1978,6 +1982,7 @@
|
|
|
1978
1982
|
"elements": {},
|
|
1979
1983
|
"classes": {
|
|
1980
1984
|
"@ember/application": 1,
|
|
1985
|
+
"Namespace": 1,
|
|
1981
1986
|
"Application": 1,
|
|
1982
1987
|
"ApplicationInstance": 1,
|
|
1983
1988
|
"ApplicationInstance.BootOptions": 1
|
|
@@ -2305,7 +2310,7 @@
|
|
|
2305
2310
|
"module": "rsvp",
|
|
2306
2311
|
"namespace": "",
|
|
2307
2312
|
"file": "packages/@ember/-internals/container/lib/container.ts",
|
|
2308
|
-
"line":
|
|
2313
|
+
"line": 55,
|
|
2309
2314
|
"description": "A container used to instantiate and cache objects.\n\nEvery `Container` must be associated with a `Registry`, which is referenced\nto determine the factory and options that should be used to instantiate\nobjects.\n\nThe public API for `Container` is still in flux and should not be considered\nstable.",
|
|
2310
2315
|
"access": "private",
|
|
2311
2316
|
"tagname": ""
|
|
@@ -2438,7 +2443,7 @@
|
|
|
2438
2443
|
"module": "ember",
|
|
2439
2444
|
"namespace": "",
|
|
2440
2445
|
"file": "packages/@ember/-internals/glimmer/lib/utils/curly-component-state-bucket.ts",
|
|
2441
|
-
"line":
|
|
2446
|
+
"line": 33,
|
|
2442
2447
|
"description": "Represents the internal state of the component.",
|
|
2443
2448
|
"access": "private",
|
|
2444
2449
|
"tagname": ""
|
|
@@ -2500,7 +2505,7 @@
|
|
|
2500
2505
|
"module": "@ember/component",
|
|
2501
2506
|
"namespace": "",
|
|
2502
2507
|
"file": "packages/@ember/-internals/glimmer/lib/helper.ts",
|
|
2503
|
-
"line":
|
|
2508
|
+
"line": 37,
|
|
2504
2509
|
"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.",
|
|
2505
2510
|
"extends": "CoreObject",
|
|
2506
2511
|
"access": "public",
|
|
@@ -2551,7 +2556,7 @@
|
|
|
2551
2556
|
"module": "@ember/object",
|
|
2552
2557
|
"namespace": "",
|
|
2553
2558
|
"file": "packages/@ember/-internals/metal/lib/computed.ts",
|
|
2554
|
-
"line":
|
|
2559
|
+
"line": 72,
|
|
2555
2560
|
"description": "`@computed` is a decorator that turns a JavaScript getter and setter into a\ncomputed property, which is a _cached, trackable value_. By default the getter\nwill only be called once and the result will be cached. You can specify\nvarious properties that your computed property depends on. This will force the\ncached result to be cleared if the dependencies are modified, and lazily recomputed the next time something asks for it.\n\nIn the following example we decorate a getter - `fullName` - by calling\n`computed` with the property dependencies (`firstName` and `lastName`) as\narguments. The `fullName` getter will be called once (regardless of how many\ntimes it is accessed) as long as its dependencies do not change. Once\n`firstName` or `lastName` are updated any future calls to `fullName` will\nincorporate the new values, and any watchers of the value such as templates\nwill be updated:\n\n```javascript\nimport { computed, set } from '@ember/object';\n\nclass Person {\n constructor(firstName, lastName) {\n set(this, 'firstName', firstName);\n set(this, 'lastName', lastName);\n }\n\n @computed('firstName', 'lastName')\n get fullName() {\n return `${this.firstName} ${this.lastName}`;\n }\n});\n\nlet tom = new Person('Tom', 'Dale');\n\ntom.fullName; // 'Tom Dale'\n```\n\nYou can also provide a setter, which will be used when updating the computed\nproperty. Ember's `set` function must be used to update the property\nsince it will also notify observers of the property:\n\n```javascript\nimport { computed, set } from '@ember/object';\n\nclass Person {\n constructor(firstName, lastName) {\n set(this, 'firstName', firstName);\n set(this, 'lastName', lastName);\n }\n\n @computed('firstName', 'lastName')\n get fullName() {\n return `${this.firstName} ${this.lastName}`;\n }\n\n set fullName(value) {\n let [firstName, lastName] = value.split(' ');\n\n set(this, 'firstName', firstName);\n set(this, 'lastName', lastName);\n }\n});\n\nlet person = new Person();\n\nset(person, 'fullName', 'Peter Wagenet');\nperson.firstName; // 'Peter'\nperson.lastName; // 'Wagenet'\n```\n\nYou can also pass a getter function or object with `get` and `set` functions\nas the last argument to the computed decorator. This allows you to define\ncomputed property _macros_:\n\n```js\nimport { computed } from '@ember/object';\n\nfunction join(...keys) {\n return computed(...keys, function() {\n return keys.map(key => this[key]).join(' ');\n });\n}\n\nclass Person {\n @join('firstName', 'lastName')\n fullName;\n}\n```\n\nNote that when defined this way, getters and setters receive the _key_ of the\nproperty they are decorating as the first argument. Setters receive the value\nthey are setting to as the second argument instead. Additionally, setters must\n_return_ the value that should be cached:\n\n```javascript\nimport { computed, set } from '@ember/object';\n\nfunction fullNameMacro(firstNameKey, lastNameKey) {\n return computed(firstNameKey, lastNameKey, {\n get() {\n return `${this[firstNameKey]} ${this[lastNameKey]}`;\n }\n\n set(key, value) {\n let [firstName, lastName] = value.split(' ');\n\n set(this, firstNameKey, firstName);\n set(this, lastNameKey, lastName);\n\n return value;\n }\n });\n}\n\nclass Person {\n constructor(firstName, lastName) {\n set(this, 'firstName', firstName);\n set(this, 'lastName', lastName);\n }\n\n @fullNameMacro('firstName', 'lastName') fullName;\n});\n\nlet person = new Person();\n\nset(person, 'fullName', 'Peter Wagenet');\nperson.firstName; // 'Peter'\nperson.lastName; // 'Wagenet'\n```\n\nComputed properties can also be used in classic classes. To do this, we\nprovide the getter and setter as the last argument like we would for a macro,\nand we assign it to a property on the class definition. This is an _anonymous_\ncomputed macro:\n\n```javascript\nimport EmberObject, { computed, set } from '@ember/object';\n\nlet Person = EmberObject.extend({\n // these will be supplied by `create`\n firstName: null,\n lastName: null,\n\n fullName: computed('firstName', 'lastName', {\n get() {\n return `${this.firstName} ${this.lastName}`;\n }\n\n set(key, value) {\n let [firstName, lastName] = value.split(' ');\n\n set(this, 'firstName', firstName);\n set(this, 'lastName', lastName);\n\n return value;\n }\n })\n});\n\nlet tom = Person.create({\n firstName: 'Tom',\n lastName: 'Dale'\n});\n\ntom.get('fullName') // 'Tom Dale'\n```\n\nYou can overwrite computed property without setters with a normal property (no\nlonger computed) that won't change if dependencies change. You can also mark\ncomputed property as `.readOnly()` and block all attempts to set it.\n\n```javascript\nimport { computed, set } from '@ember/object';\n\nclass Person {\n constructor(firstName, lastName) {\n set(this, 'firstName', firstName);\n set(this, 'lastName', lastName);\n }\n\n @computed('firstName', 'lastName').readOnly()\n get fullName() {\n return `${this.firstName} ${this.lastName}`;\n }\n});\n\nlet person = new Person();\nperson.set('fullName', 'Peter Wagenet'); // Uncaught Error: Cannot set read-only property \"fullName\" on object: <(...):emberXXX>\n```\n\nAdditional resources:\n- [Decorators RFC](https://github.com/emberjs/rfcs/blob/master/text/0408-decorators.md)\n- [New CP syntax RFC](https://github.com/emberjs/rfcs/blob/master/text/0011-improved-cp-syntax.md)\n- [New computed syntax explained in \"Ember 1.12 released\" ](https://emberjs.com/blog/2015/05/13/ember-1-12-released.html#toc_new-computed-syntax)",
|
|
2556
2561
|
"access": "public",
|
|
2557
2562
|
"tagname": ""
|
|
@@ -2589,7 +2594,7 @@
|
|
|
2589
2594
|
"module": "@ember/object",
|
|
2590
2595
|
"namespace": "",
|
|
2591
2596
|
"file": "packages/@ember/-internals/metal/lib/decorator.ts",
|
|
2592
|
-
"line":
|
|
2597
|
+
"line": 48,
|
|
2593
2598
|
"description": "Objects of this type can implement an interface to respond to requests to\nget and set. The default implementation handles simple properties.",
|
|
2594
2599
|
"access": "private",
|
|
2595
2600
|
"tagname": ""
|
|
@@ -2695,7 +2700,7 @@
|
|
|
2695
2700
|
"module": "@ember/object",
|
|
2696
2701
|
"namespace": "",
|
|
2697
2702
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
2698
|
-
"line":
|
|
2703
|
+
"line": 445,
|
|
2699
2704
|
"description": "The `Mixin` class allows you to create mixins, whose properties can be\nadded to other classes. For instance,\n\n```javascript\nimport Mixin from '@ember/object/mixin';\n\nconst EditableMixin = Mixin.create({\n edit() {\n console.log('starting to edit');\n this.set('isEditing', true);\n },\n isEditing: false\n});\n```\n\n```javascript\nimport EmberObject from '@ember/object';\nimport EditableMixin from '../mixins/editable';\n\n// Mix mixins into classes by passing them as the first arguments to\n// `.extend.`\nconst Comment = EmberObject.extend(EditableMixin, {\n post: null\n});\n\nlet comment = Comment.create({\n post: somePost\n});\n\ncomment.edit(); // outputs 'starting to edit'\n```\n\nNote that Mixins are created with `Mixin.create`, not\n`Mixin.extend`.\n\nNote that mixins extend a constructor's prototype so arrays and object literals\ndefined as properties will be shared amongst objects that implement the mixin.\nIf you want to define a property in a mixin that is not shared, you can define\nit either as a computed property or have it be created on initialization of the object.\n\n```javascript\n// filters array will be shared amongst any object implementing mixin\nimport Mixin from '@ember/object/mixin';\nimport { A } from '@ember/array';\n\nconst FilterableMixin = Mixin.create({\n filters: A()\n});\n```\n\n```javascript\nimport Mixin from '@ember/object/mixin';\nimport { A } from '@ember/array';\nimport { computed } from '@ember/object';\n\n// filters will be a separate array for every object implementing the mixin\nconst FilterableMixin = Mixin.create({\n filters: computed(function() {\n return A();\n })\n});\n```\n\n```javascript\nimport Mixin from '@ember/object/mixin';\nimport { A } from '@ember/array';\n\n// filters will be created as a separate array during the object's initialization\nconst Filterable = Mixin.create({\n filters: null,\n\n init() {\n this._super(...arguments);\n this.set(\"filters\", A());\n }\n});\n```",
|
|
2700
2705
|
"access": "public",
|
|
2701
2706
|
"tagname": ""
|
|
@@ -2848,7 +2853,7 @@
|
|
|
2848
2853
|
"module": "@ember/routing",
|
|
2849
2854
|
"namespace": "",
|
|
2850
2855
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
2851
|
-
"line":
|
|
2856
|
+
"line": 24,
|
|
2852
2857
|
"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.",
|
|
2853
2858
|
"access": "public",
|
|
2854
2859
|
"tagname": "",
|
|
@@ -2865,7 +2870,7 @@
|
|
|
2865
2870
|
"module": "ember",
|
|
2866
2871
|
"namespace": "",
|
|
2867
2872
|
"file": "packages/@ember/-internals/routing/lib/services/routing.ts",
|
|
2868
|
-
"line":
|
|
2873
|
+
"line": 15,
|
|
2869
2874
|
"description": "The Routing service is used by LinkTo, and provides facilities for\nthe component/view layer to interact with the router.\n\nThis is a private service for internal usage only. For public usage,\nrefer to the `Router` service.",
|
|
2870
2875
|
"access": "private",
|
|
2871
2876
|
"tagname": ""
|
|
@@ -2929,7 +2934,7 @@
|
|
|
2929
2934
|
"module": "@ember/routing",
|
|
2930
2935
|
"namespace": "",
|
|
2931
2936
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
2932
|
-
"line":
|
|
2937
|
+
"line": 100,
|
|
2933
2938
|
"description": "The `Route` class is used to define individual routes. Refer to\nthe [routing guide](https://guides.emberjs.com/release/routing/) for documentation.",
|
|
2934
2939
|
"extends": "EmberObject",
|
|
2935
2940
|
"uses": [
|
|
@@ -2951,7 +2956,7 @@
|
|
|
2951
2956
|
"module": "@ember/routing",
|
|
2952
2957
|
"namespace": "",
|
|
2953
2958
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
2954
|
-
"line":
|
|
2959
|
+
"line": 133,
|
|
2955
2960
|
"description": "The `EmberRouter` class manages the application state and URLs. Refer to\nthe [routing guide](https://guides.emberjs.com/release/routing/) for documentation.",
|
|
2956
2961
|
"extends": "EmberObject",
|
|
2957
2962
|
"uses": [
|
|
@@ -3060,7 +3065,7 @@
|
|
|
3060
3065
|
"module": "@ember/array",
|
|
3061
3066
|
"namespace": "",
|
|
3062
3067
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
3063
|
-
"line":
|
|
3068
|
+
"line": 1327,
|
|
3064
3069
|
"description": "This mixin defines the API for modifying array-like objects. These methods\ncan be applied only to a collection that keeps its items in an ordered set.\nIt builds upon the Array mixin and adds methods to modify the array.\nOne concrete implementations of this class include ArrayProxy.\n\nIt is important to use the methods in this class to modify arrays so that\nchanges are observable. This allows the binding system in Ember to function\ncorrectly.\n\n\nNote that an Array can change even if it does not implement this mixin.\nFor example, one might implement a SparseArray that cannot be directly\nmodified, but if its underlying enumerable changes, it will change also.",
|
|
3065
3070
|
"uses": [
|
|
3066
3071
|
"EmberArray",
|
|
@@ -3080,7 +3085,7 @@
|
|
|
3080
3085
|
"module": "ember",
|
|
3081
3086
|
"namespace": "",
|
|
3082
3087
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
3083
|
-
"line":
|
|
3088
|
+
"line": 1748,
|
|
3084
3089
|
"description": "The NativeArray mixin contains the properties needed to make the native\nArray support MutableArray and all of its dependent APIs. Unless you\nhave `EmberENV.EXTEND_PROTOTYPES` or `EmberENV.EXTEND_PROTOTYPES.Array` set to\nfalse, this will be applied automatically. Otherwise you can apply the mixin\nat anytime by calling `Ember.NativeArray.apply(Array.prototype)`.",
|
|
3085
3090
|
"uses": [
|
|
3086
3091
|
"MutableArray",
|
|
@@ -3291,18 +3296,18 @@
|
|
|
3291
3296
|
"access": "public",
|
|
3292
3297
|
"tagname": ""
|
|
3293
3298
|
},
|
|
3294
|
-
"
|
|
3295
|
-
"name": "
|
|
3296
|
-
"shortname": "
|
|
3299
|
+
"Namespace": {
|
|
3300
|
+
"name": "Namespace",
|
|
3301
|
+
"shortname": "Namespace",
|
|
3297
3302
|
"classitems": [],
|
|
3298
3303
|
"plugins": [],
|
|
3299
3304
|
"extensions": [],
|
|
3300
3305
|
"plugin_for": [],
|
|
3301
3306
|
"extension_for": [],
|
|
3302
|
-
"module": "ember",
|
|
3303
|
-
"namespace": "
|
|
3307
|
+
"module": "@ember/application",
|
|
3308
|
+
"namespace": "",
|
|
3304
3309
|
"file": "packages/@ember/-internals/runtime/lib/system/namespace.js",
|
|
3305
|
-
"line":
|
|
3310
|
+
"line": 19,
|
|
3306
3311
|
"description": "A Namespace is an object usually used to contain other objects or methods\nsuch as an application or framework. Create a namespace anytime you want\nto define one of these new containers.\n\n# Example Usage\n\n```javascript\nMyFramework = Ember.Namespace.create({\n VERSION: '1.0.0'\n});\n```",
|
|
3307
3312
|
"extends": "EmberObject",
|
|
3308
3313
|
"access": "public",
|
|
@@ -3406,7 +3411,7 @@
|
|
|
3406
3411
|
"module": "ember",
|
|
3407
3412
|
"namespace": "Ember",
|
|
3408
3413
|
"file": "packages/@ember/-internals/views/lib/mixins/view_support.js",
|
|
3409
|
-
"line":
|
|
3414
|
+
"line": 420,
|
|
3410
3415
|
"access": "private",
|
|
3411
3416
|
"tagname": ""
|
|
3412
3417
|
},
|
|
@@ -4438,7 +4443,7 @@
|
|
|
4438
4443
|
},
|
|
4439
4444
|
{
|
|
4440
4445
|
"file": "packages/@ember/-internals/container/lib/container.ts",
|
|
4441
|
-
"line":
|
|
4446
|
+
"line": 95,
|
|
4442
4447
|
"access": "private",
|
|
4443
4448
|
"tagname": "",
|
|
4444
4449
|
"itemtype": "property",
|
|
@@ -4450,7 +4455,7 @@
|
|
|
4450
4455
|
},
|
|
4451
4456
|
{
|
|
4452
4457
|
"file": "packages/@ember/-internals/container/lib/container.ts",
|
|
4453
|
-
"line":
|
|
4458
|
+
"line": 102,
|
|
4454
4459
|
"access": "private",
|
|
4455
4460
|
"tagname": "",
|
|
4456
4461
|
"itemtype": "property",
|
|
@@ -4461,7 +4466,7 @@
|
|
|
4461
4466
|
},
|
|
4462
4467
|
{
|
|
4463
4468
|
"file": "packages/@ember/-internals/container/lib/container.ts",
|
|
4464
|
-
"line":
|
|
4469
|
+
"line": 108,
|
|
4465
4470
|
"access": "private",
|
|
4466
4471
|
"tagname": "",
|
|
4467
4472
|
"itemtype": "property",
|
|
@@ -4472,7 +4477,7 @@
|
|
|
4472
4477
|
},
|
|
4473
4478
|
{
|
|
4474
4479
|
"file": "packages/@ember/-internals/container/lib/container.ts",
|
|
4475
|
-
"line":
|
|
4480
|
+
"line": 114,
|
|
4476
4481
|
"description": "Given a fullName return a corresponding instance.\n The default behavior is for lookup to return a singleton instance.\nThe singleton is scoped to the container, allowing multiple containers\nto all have their own locally scoped singletons.\n ```javascript\nlet registry = new Registry();\nlet container = registry.container();\n registry.register('api:twitter', Twitter);\n let twitter = container.lookup('api:twitter');\n twitter instanceof Twitter; // => true\n // by default the container will return singletons\nlet twitter2 = container.lookup('api:twitter');\ntwitter2 instanceof Twitter; // => true\n twitter === twitter2; //=> true\n```\n If singletons are not wanted, an optional flag can be provided at lookup.\n ```javascript\nlet registry = new Registry();\nlet container = registry.container();\n registry.register('api:twitter', Twitter);\n let twitter = container.lookup('api:twitter', { singleton: false });\nlet twitter2 = container.lookup('api:twitter', { singleton: false });\n twitter === twitter2; //=> false\n```",
|
|
4477
4482
|
"access": "private",
|
|
4478
4483
|
"tagname": "",
|
|
@@ -4508,7 +4513,7 @@
|
|
|
4508
4513
|
},
|
|
4509
4514
|
{
|
|
4510
4515
|
"file": "packages/@ember/-internals/container/lib/container.ts",
|
|
4511
|
-
"line":
|
|
4516
|
+
"line": 154,
|
|
4512
4517
|
"description": "A depth first traversal, destroying the container, its descendant containers and all\ntheir managed objects.",
|
|
4513
4518
|
"access": "private",
|
|
4514
4519
|
"tagname": "",
|
|
@@ -4519,7 +4524,7 @@
|
|
|
4519
4524
|
},
|
|
4520
4525
|
{
|
|
4521
4526
|
"file": "packages/@ember/-internals/container/lib/container.ts",
|
|
4522
|
-
"line":
|
|
4527
|
+
"line": 171,
|
|
4523
4528
|
"description": "Clear either the entire cache or just the cache for a particular key.",
|
|
4524
4529
|
"access": "private",
|
|
4525
4530
|
"tagname": "",
|
|
@@ -4537,7 +4542,7 @@
|
|
|
4537
4542
|
},
|
|
4538
4543
|
{
|
|
4539
4544
|
"file": "packages/@ember/-internals/container/lib/container.ts",
|
|
4540
|
-
"line":
|
|
4545
|
+
"line": 188,
|
|
4541
4546
|
"description": "Returns an object that can be used to provide an owner to a\nmanually created instance.",
|
|
4542
4547
|
"access": "private",
|
|
4543
4548
|
"tagname": "",
|
|
@@ -4552,7 +4557,7 @@
|
|
|
4552
4557
|
},
|
|
4553
4558
|
{
|
|
4554
4559
|
"file": "packages/@ember/-internals/container/lib/container.ts",
|
|
4555
|
-
"line":
|
|
4560
|
+
"line": 201,
|
|
4556
4561
|
"description": "Given a fullName, return the corresponding factory. The consumer of the factory\nis responsible for the destruction of any factory instances, as there is no\nway for the container to ensure instances are destroyed when it itself is\ndestroyed.",
|
|
4557
4562
|
"access": "public",
|
|
4558
4563
|
"tagname": "",
|
|
@@ -4951,7 +4956,7 @@
|
|
|
4951
4956
|
},
|
|
4952
4957
|
{
|
|
4953
4958
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
4954
|
-
"line":
|
|
4959
|
+
"line": 479,
|
|
4955
4960
|
"access": "private",
|
|
4956
4961
|
"tagname": "",
|
|
4957
4962
|
"itemtype": "method",
|
|
@@ -5616,7 +5621,7 @@
|
|
|
5616
5621
|
},
|
|
5617
5622
|
{
|
|
5618
5623
|
"file": "packages/@ember/-internals/glimmer/lib/components/link-to.ts",
|
|
5619
|
-
"line":
|
|
5624
|
+
"line": 39,
|
|
5620
5625
|
"description": "The `LinkTo` component renders a link to the supplied `routeName` passing an optionally\nsupplied model to the route as its `model` context of the route. The block for `LinkTo`\nbecomes the contents of the rendered element:\n\n```handlebars\n<LinkTo @route='photoGallery'>\n Great Hamster Photos\n</LinkTo>\n```\n\nThis will result in:\n\n```html\n<a href=\"/hamster-photos\">\n Great Hamster Photos\n</a>\n```\n\n### Disabling the `LinkTo` component\n\nThe `LinkTo` component can be disabled by using the `disabled` argument. A disabled link\ndoesn't result in a transition when activated, and adds the `disabled` class to the `<a>`\nelement.\n\n(The class name to apply to the element can be overridden by using the `disabledClass`\nargument)\n\n```handlebars\n<LinkTo @route='photoGallery' @disabled={{true}}>\n Great Hamster Photos\n</LinkTo>\n```\n\n### Handling `href`\n\n`<LinkTo>` will use your application's Router to fill the element's `href` property with a URL\nthat matches the path to the supplied `routeName`.\n\n### Handling current route\n\nThe `LinkTo` component will apply a CSS class name of 'active' when the application's current\nroute matches the supplied routeName. For example, if the application's current route is\n'photoGallery.recent', then the following invocation of `LinkTo`:\n\n```handlebars\n<LinkTo @route='photoGallery.recent'>\n Great Hamster Photos\n</LinkTo>\n```\n\nwill result in\n\n```html\n<a href=\"/hamster-photos/this-week\" class=\"active\">\n Great Hamster Photos\n</a>\n```\n\nThe CSS class used for active classes can be customized by passing an `activeClass` argument:\n\n```handlebars\n<LinkTo @route='photoGallery.recent' @activeClass=\"current-url\">\n Great Hamster Photos\n</LinkTo>\n```\n\n```html\n<a href=\"/hamster-photos/this-week\" class=\"current-url\">\n Great Hamster Photos\n</a>\n```\n\n### Keeping a link active for other routes\n\nIf you need a link to be 'active' even when it doesn't match the current route, you can use the\n`current-when` argument.\n\n```handlebars\n<LinkTo @route='photoGallery' @current-when='photos'>\n Photo Gallery\n</LinkTo>\n```\n\nThis may be helpful for keeping links active for:\n\n* non-nested routes that are logically related\n* some secondary menu approaches\n* 'top navigation' with 'sub navigation' scenarios\n\nA link will be active if `current-when` is `true` or the current\nroute is the route this link would transition to.\n\nTo match multiple routes 'space-separate' the routes:\n\n```handlebars\n<LinkTo @route='gallery' @current-when='photos drawings paintings'>\n Art Gallery\n</LinkTo>\n```\n\n### Supplying a model\n\nAn optional `model` argument can be used for routes whose\npaths contain dynamic segments. This argument will become\nthe model context of the linked route:\n\n```javascript\nRouter.map(function() {\n this.route(\"photoGallery\", {path: \"hamster-photos/:photo_id\"});\n});\n```\n\n```handlebars\n<LinkTo @route='photoGallery' @model={{this.aPhoto}}>\n {{aPhoto.title}}\n</LinkTo>\n```\n\n```html\n<a href=\"/hamster-photos/42\">\n Tomster\n</a>\n```\n\n### Supplying multiple models\n\nFor deep-linking to route paths that contain multiple\ndynamic segments, the `models` argument can be used.\n\nAs the router transitions through the route path, each\nsupplied model argument will become the context for the\nroute with the dynamic segments:\n\n```javascript\nRouter.map(function() {\n this.route(\"photoGallery\", { path: \"hamster-photos/:photo_id\" }, function() {\n this.route(\"comment\", {path: \"comments/:comment_id\"});\n });\n});\n```\n\nThis argument will become the model context of the linked route:\n\n```handlebars\n<LinkTo @route='photoGallery.comment' @models={{array this.aPhoto this.comment}}>\n {{comment.body}}\n</LinkTo>\n```\n\n```html\n<a href=\"/hamster-photos/42/comments/718\">\n A+++ would snuggle again.\n</a>\n```\n\n### Supplying an explicit dynamic segment value\n\nIf you don't have a model object available to pass to `LinkTo`,\nan optional string or integer argument can be passed for routes whose\npaths contain dynamic segments. This argument will become the value\nof the dynamic segment:\n\n```javascript\nRouter.map(function() {\n this.route(\"photoGallery\", { path: \"hamster-photos/:photo_id\" });\n});\n```\n\n```handlebars\n<LinkTo @route='photoGallery' @model={{aPhotoId}}>\n {{this.aPhoto.title}}\n</LinkTo>\n```\n\n```html\n<a href=\"/hamster-photos/42\">\n Tomster\n</a>\n```\n\nWhen transitioning into the linked route, the `model` hook will\nbe triggered with parameters including this passed identifier.\n\n### Supplying query parameters\n\nIf you need to add optional key-value pairs that appear to the right of the ? in a URL,\nyou can use the `query` argument.\n\n```handlebars\n<LinkTo @route='photoGallery' @query={{hash page=1 per_page=20}}>\n Great Hamster Photos\n</LinkTo>\n```\n\nThis will result in:\n\n```html\n<a href=\"/hamster-photos?page=1&per_page=20\">\n Great Hamster Photos\n</a>\n```",
|
|
5621
5626
|
"itemtype": "method",
|
|
5622
5627
|
"name": "LinkTo",
|
|
@@ -5627,7 +5632,7 @@
|
|
|
5627
5632
|
},
|
|
5628
5633
|
{
|
|
5629
5634
|
"file": "packages/@ember/-internals/glimmer/lib/components/link-to.ts",
|
|
5630
|
-
"line":
|
|
5635
|
+
"line": 251,
|
|
5631
5636
|
"description": "See [Ember.Templates.components.LinkTo](/ember/release/classes/Ember.Templates.components/methods/input?anchor=LinkTo).",
|
|
5632
5637
|
"itemtype": "method",
|
|
5633
5638
|
"name": "link-to",
|
|
@@ -5641,7 +5646,7 @@
|
|
|
5641
5646
|
},
|
|
5642
5647
|
{
|
|
5643
5648
|
"file": "packages/@ember/-internals/glimmer/lib/components/link-to.ts",
|
|
5644
|
-
"line":
|
|
5649
|
+
"line": 260,
|
|
5645
5650
|
"description": "An opaque interface which can be imported and used in strict-mode\ntemplates to call <LinkTo>.\n\nSee [Ember.Templates.components.LinkTo](/ember/release/classes/Ember.Templates.components/methods/input?anchor=LinkTo).",
|
|
5646
5651
|
"itemtype": "method",
|
|
5647
5652
|
"name": "LinkTo",
|
|
@@ -5795,7 +5800,7 @@
|
|
|
5795
5800
|
{
|
|
5796
5801
|
"file": "packages/@ember/-internals/glimmer/lib/helpers/get.ts",
|
|
5797
5802
|
"line": 5,
|
|
5798
|
-
"description": "Dynamically look up a property on an object
|
|
5803
|
+
"description": "Dynamically look up a property on an object or an element in an array.\nThe second argument to `{{get}}` should have a string or number value,\nalthough it can be bound.\n\nFor example, these two usages are equivalent:\n\n```app/components/developer-detail.js\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class extends Component {\n @tracked developer = {\n name: \"Sandi Metz\",\n language: \"Ruby\"\n }\n}\n```\n\n```handlebars\n{{this.developer.name}}\n{{get this.developer \"name\"}}\n```\n\nIf there were several facts about a person, the `{{get}}` helper can dynamically\npick one:\n\n```app/templates/application.hbs\n<DeveloperDetail @factName=\"language\" />\n```\n\n```handlebars\n{{get this.developer @factName}}\n```\n\nFor a more complex example, this template would allow the user to switch\nbetween showing the user's name and preferred coding language with a click:\n\n```app/components/developer-detail.js\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class extends Component {\n @tracked developer = {\n name: \"Sandi Metz\",\n language: \"Ruby\"\n }\n\n @tracked currentFact = 'name'\n\n @action\n showFact(fact) {\n this.currentFact = fact;\n }\n}\n```\n\n```app/components/developer-detail.js\n{{get this.developer this.currentFact}}\n\n<button {{on 'click' (fn this.showFact \"name\")}}>Show name</button>\n<button {{on 'click' (fn this.showFact \"language\")}}>Show language</button>\n```\n\nThe `{{get}}` helper can also respect mutable values itself. For example:\n\n```app/components/developer-detail.js\n<Input @value={{mut (get this.person this.currentFact)}} />\n\n<button {{on 'click' (fn this.showFact \"name\")}}>Show name</button>\n<button {{on 'click' (fn this.showFact \"language\")}}>Show language</button>\n```\n\nWould allow the user to swap what fact is being displayed, and also edit\nthat fact via a two-way mutable binding.\n\nThe `{{get}}` helper can also be used for array element access via index.\nThis would display the value of the first element in the array `this.names`:\n\n```handlebars\n{{get this.names 0}}\n```\n\nArray element access also works with a dynamic second argument:\n\n```handlebars\n{{get this.names @index}}\n```",
|
|
5799
5804
|
"access": "public",
|
|
5800
5805
|
"tagname": "",
|
|
5801
5806
|
"itemtype": "method",
|
|
@@ -6108,13 +6113,13 @@
|
|
|
6108
6113
|
},
|
|
6109
6114
|
{
|
|
6110
6115
|
"file": "packages/@ember/-internals/glimmer/lib/views/outlet.ts",
|
|
6111
|
-
"line":
|
|
6116
|
+
"line": 104,
|
|
6112
6117
|
"class": "Component",
|
|
6113
6118
|
"module": "@ember/template"
|
|
6114
6119
|
},
|
|
6115
6120
|
{
|
|
6116
6121
|
"file": "packages/@ember/-internals/glimmer/lib/views/outlet.ts",
|
|
6117
|
-
"line":
|
|
6122
|
+
"line": 112,
|
|
6118
6123
|
"class": "Component",
|
|
6119
6124
|
"module": "@ember/template"
|
|
6120
6125
|
},
|
|
@@ -6360,19 +6365,7 @@
|
|
|
6360
6365
|
},
|
|
6361
6366
|
{
|
|
6362
6367
|
"file": "packages/@ember/-internals/glimmer/lib/helper.ts",
|
|
6363
|
-
"line":
|
|
6364
|
-
"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```",
|
|
6365
|
-
"itemtype": "method",
|
|
6366
|
-
"name": "recompute",
|
|
6367
|
-
"access": "public",
|
|
6368
|
-
"tagname": "",
|
|
6369
|
-
"since": "1.13.0",
|
|
6370
|
-
"class": "Helper",
|
|
6371
|
-
"module": "@ember/component"
|
|
6372
|
-
},
|
|
6373
|
-
{
|
|
6374
|
-
"file": "packages/@ember/-internals/glimmer/lib/helper.ts",
|
|
6375
|
-
"line": 118,
|
|
6368
|
+
"line": 83,
|
|
6376
6369
|
"description": "Override this function when writing a class-based helper.",
|
|
6377
6370
|
"itemtype": "method",
|
|
6378
6371
|
"name": "compute",
|
|
@@ -6396,7 +6389,19 @@
|
|
|
6396
6389
|
},
|
|
6397
6390
|
{
|
|
6398
6391
|
"file": "packages/@ember/-internals/glimmer/lib/helper.ts",
|
|
6399
|
-
"line":
|
|
6392
|
+
"line": 103,
|
|
6393
|
+
"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```",
|
|
6394
|
+
"itemtype": "method",
|
|
6395
|
+
"name": "recompute",
|
|
6396
|
+
"access": "public",
|
|
6397
|
+
"tagname": "",
|
|
6398
|
+
"since": "1.13.0",
|
|
6399
|
+
"class": "Helper",
|
|
6400
|
+
"module": "@ember/component"
|
|
6401
|
+
},
|
|
6402
|
+
{
|
|
6403
|
+
"file": "packages/@ember/-internals/glimmer/lib/helper.ts",
|
|
6404
|
+
"line": 239,
|
|
6400
6405
|
"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```",
|
|
6401
6406
|
"static": 1,
|
|
6402
6407
|
"params": [
|
|
@@ -6500,133 +6505,379 @@
|
|
|
6500
6505
|
},
|
|
6501
6506
|
{
|
|
6502
6507
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6503
|
-
"line":
|
|
6504
|
-
"description": "Flattening is based on a global revision counter. If the revision has\nbumped it means that somewhere in a class inheritance chain something has\nchanged, so we need to reflatten everything. This can only happen if:\n\n1. A meta has been flattened (listener has been called)\n2. The meta is a prototype meta with children who have inherited its\n listeners\n3. A new listener is subsequently added to the meta (e.g. via `.reopen()`)\n\nThis is a very rare occurrence, so while the counter is global it shouldn't\nbe updated very often in practice.",
|
|
6508
|
+
"line": 89,
|
|
6505
6509
|
"class": "Ember",
|
|
6506
6510
|
"module": "ember"
|
|
6507
6511
|
},
|
|
6508
6512
|
{
|
|
6509
6513
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6510
|
-
"line":
|
|
6511
|
-
"description": "Retrieves the meta hash for an object. If `writable` is true ensures the\nhash is writable for this object as well.\n\nThe meta object contains information about computed property descriptors as\nwell as any watched properties and other information. You generally will\nnot access this information directly but instead work with higher level\nmethods that manipulate this hash indirectly.",
|
|
6512
|
-
"itemtype": "method",
|
|
6513
|
-
"name": "meta",
|
|
6514
|
-
"access": "private",
|
|
6515
|
-
"tagname": "",
|
|
6516
|
-
"params": [
|
|
6517
|
-
{
|
|
6518
|
-
"name": "obj",
|
|
6519
|
-
"description": "The object to retrieve meta for",
|
|
6520
|
-
"type": "Object"
|
|
6521
|
-
},
|
|
6522
|
-
{
|
|
6523
|
-
"name": "writable",
|
|
6524
|
-
"description": "Pass `false` if you do not intend to modify\n the meta hash, allowing the method to avoid making an unnecessary copy.",
|
|
6525
|
-
"type": "Boolean",
|
|
6526
|
-
"optional": true,
|
|
6527
|
-
"optdefault": "true"
|
|
6528
|
-
}
|
|
6529
|
-
],
|
|
6530
|
-
"return": {
|
|
6531
|
-
"description": "the meta hash for an object",
|
|
6532
|
-
"type": "Object"
|
|
6533
|
-
},
|
|
6514
|
+
"line": 91,
|
|
6534
6515
|
"class": "Ember",
|
|
6535
6516
|
"module": "ember"
|
|
6536
6517
|
},
|
|
6537
6518
|
{
|
|
6538
|
-
"file": "packages/@ember/-internals/
|
|
6539
|
-
"line":
|
|
6540
|
-
"
|
|
6541
|
-
"
|
|
6542
|
-
"name": "createCache",
|
|
6543
|
-
"static": 1,
|
|
6544
|
-
"access": "public",
|
|
6545
|
-
"tagname": "",
|
|
6546
|
-
"class": "@glimmer/tracking/primitives/cache",
|
|
6547
|
-
"module": "@glimmer/tracking/primitives/cache"
|
|
6519
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6520
|
+
"line": 93,
|
|
6521
|
+
"class": "Ember",
|
|
6522
|
+
"module": "ember"
|
|
6548
6523
|
},
|
|
6549
6524
|
{
|
|
6550
|
-
"file": "packages/@ember/-internals/
|
|
6551
|
-
"line":
|
|
6552
|
-
"
|
|
6553
|
-
"
|
|
6554
|
-
"name": "getValue",
|
|
6555
|
-
"static": 1,
|
|
6556
|
-
"access": "public",
|
|
6557
|
-
"tagname": "",
|
|
6558
|
-
"class": "@glimmer/tracking/primitives/cache",
|
|
6559
|
-
"module": "@glimmer/tracking/primitives/cache"
|
|
6525
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6526
|
+
"line": 95,
|
|
6527
|
+
"class": "Ember",
|
|
6528
|
+
"module": "ember"
|
|
6560
6529
|
},
|
|
6561
6530
|
{
|
|
6562
|
-
"file": "packages/@ember/-internals/
|
|
6563
|
-
"line":
|
|
6564
|
-
"
|
|
6565
|
-
"
|
|
6566
|
-
"name": "isConst",
|
|
6567
|
-
"static": 1,
|
|
6568
|
-
"access": "public",
|
|
6569
|
-
"tagname": "",
|
|
6570
|
-
"class": "@glimmer/tracking/primitives/cache",
|
|
6571
|
-
"module": "@glimmer/tracking/primitives/cache"
|
|
6531
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6532
|
+
"line": 97,
|
|
6533
|
+
"class": "Ember",
|
|
6534
|
+
"module": "ember"
|
|
6572
6535
|
},
|
|
6573
6536
|
{
|
|
6574
|
-
"file": "packages/@ember/-internals/
|
|
6575
|
-
"line":
|
|
6576
|
-
"
|
|
6577
|
-
"
|
|
6578
|
-
"name": "readOnly",
|
|
6579
|
-
"return": {
|
|
6580
|
-
"description": "this",
|
|
6581
|
-
"type": "ComputedProperty"
|
|
6582
|
-
},
|
|
6583
|
-
"chainable": 1,
|
|
6584
|
-
"access": "public",
|
|
6585
|
-
"tagname": "",
|
|
6586
|
-
"class": "ComputedProperty",
|
|
6587
|
-
"module": "@ember/object"
|
|
6537
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6538
|
+
"line": 99,
|
|
6539
|
+
"class": "Ember",
|
|
6540
|
+
"module": "ember"
|
|
6588
6541
|
},
|
|
6589
6542
|
{
|
|
6590
|
-
"file": "packages/@ember/-internals/
|
|
6591
|
-
"line":
|
|
6592
|
-
"
|
|
6593
|
-
"
|
|
6594
|
-
"name": "meta",
|
|
6595
|
-
"params": [
|
|
6596
|
-
{
|
|
6597
|
-
"name": "meta",
|
|
6598
|
-
"description": "",
|
|
6599
|
-
"type": "Object"
|
|
6600
|
-
}
|
|
6601
|
-
],
|
|
6602
|
-
"chainable": 1,
|
|
6603
|
-
"access": "public",
|
|
6604
|
-
"tagname": "",
|
|
6605
|
-
"class": "ComputedProperty",
|
|
6606
|
-
"module": "@ember/object"
|
|
6543
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6544
|
+
"line": 101,
|
|
6545
|
+
"class": "Ember",
|
|
6546
|
+
"module": "ember"
|
|
6607
6547
|
},
|
|
6608
6548
|
{
|
|
6609
|
-
"file": "packages/@ember/-internals/
|
|
6610
|
-
"line":
|
|
6611
|
-
"
|
|
6612
|
-
"
|
|
6613
|
-
|
|
6614
|
-
|
|
6615
|
-
"
|
|
6616
|
-
|
|
6617
|
-
|
|
6618
|
-
|
|
6619
|
-
|
|
6620
|
-
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
"
|
|
6629
|
-
|
|
6549
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6550
|
+
"line": 103,
|
|
6551
|
+
"class": "Ember",
|
|
6552
|
+
"module": "ember"
|
|
6553
|
+
},
|
|
6554
|
+
{
|
|
6555
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6556
|
+
"line": 105,
|
|
6557
|
+
"class": "Ember",
|
|
6558
|
+
"module": "ember"
|
|
6559
|
+
},
|
|
6560
|
+
{
|
|
6561
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6562
|
+
"line": 108,
|
|
6563
|
+
"class": "Ember",
|
|
6564
|
+
"module": "ember"
|
|
6565
|
+
},
|
|
6566
|
+
{
|
|
6567
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6568
|
+
"line": 110,
|
|
6569
|
+
"class": "Ember",
|
|
6570
|
+
"module": "ember"
|
|
6571
|
+
},
|
|
6572
|
+
{
|
|
6573
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6574
|
+
"line": 112,
|
|
6575
|
+
"class": "Ember",
|
|
6576
|
+
"module": "ember"
|
|
6577
|
+
},
|
|
6578
|
+
{
|
|
6579
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6580
|
+
"line": 114,
|
|
6581
|
+
"class": "Ember",
|
|
6582
|
+
"module": "ember"
|
|
6583
|
+
},
|
|
6584
|
+
{
|
|
6585
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6586
|
+
"line": 118,
|
|
6587
|
+
"class": "Ember",
|
|
6588
|
+
"module": "ember"
|
|
6589
|
+
},
|
|
6590
|
+
{
|
|
6591
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6592
|
+
"line": 141,
|
|
6593
|
+
"class": "Ember",
|
|
6594
|
+
"module": "ember"
|
|
6595
|
+
},
|
|
6596
|
+
{
|
|
6597
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6598
|
+
"line": 155,
|
|
6599
|
+
"class": "Ember",
|
|
6600
|
+
"module": "ember"
|
|
6601
|
+
},
|
|
6602
|
+
{
|
|
6603
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6604
|
+
"line": 160,
|
|
6605
|
+
"class": "Ember",
|
|
6606
|
+
"module": "ember"
|
|
6607
|
+
},
|
|
6608
|
+
{
|
|
6609
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6610
|
+
"line": 165,
|
|
6611
|
+
"class": "Ember",
|
|
6612
|
+
"module": "ember"
|
|
6613
|
+
},
|
|
6614
|
+
{
|
|
6615
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6616
|
+
"line": 170,
|
|
6617
|
+
"class": "Ember",
|
|
6618
|
+
"module": "ember"
|
|
6619
|
+
},
|
|
6620
|
+
{
|
|
6621
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6622
|
+
"line": 175,
|
|
6623
|
+
"class": "Ember",
|
|
6624
|
+
"module": "ember"
|
|
6625
|
+
},
|
|
6626
|
+
{
|
|
6627
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6628
|
+
"line": 180,
|
|
6629
|
+
"class": "Ember",
|
|
6630
|
+
"module": "ember"
|
|
6631
|
+
},
|
|
6632
|
+
{
|
|
6633
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6634
|
+
"line": 195,
|
|
6635
|
+
"class": "Ember",
|
|
6636
|
+
"module": "ember"
|
|
6637
|
+
},
|
|
6638
|
+
{
|
|
6639
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6640
|
+
"line": 208,
|
|
6641
|
+
"class": "Ember",
|
|
6642
|
+
"module": "ember"
|
|
6643
|
+
},
|
|
6644
|
+
{
|
|
6645
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6646
|
+
"line": 215,
|
|
6647
|
+
"class": "Ember",
|
|
6648
|
+
"module": "ember"
|
|
6649
|
+
},
|
|
6650
|
+
{
|
|
6651
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6652
|
+
"line": 222,
|
|
6653
|
+
"class": "Ember",
|
|
6654
|
+
"module": "ember"
|
|
6655
|
+
},
|
|
6656
|
+
{
|
|
6657
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6658
|
+
"line": 229,
|
|
6659
|
+
"class": "Ember",
|
|
6660
|
+
"module": "ember"
|
|
6661
|
+
},
|
|
6662
|
+
{
|
|
6663
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6664
|
+
"line": 236,
|
|
6665
|
+
"class": "Ember",
|
|
6666
|
+
"module": "ember"
|
|
6667
|
+
},
|
|
6668
|
+
{
|
|
6669
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6670
|
+
"line": 253,
|
|
6671
|
+
"class": "Ember",
|
|
6672
|
+
"module": "ember"
|
|
6673
|
+
},
|
|
6674
|
+
{
|
|
6675
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6676
|
+
"line": 268,
|
|
6677
|
+
"class": "Ember",
|
|
6678
|
+
"module": "ember"
|
|
6679
|
+
},
|
|
6680
|
+
{
|
|
6681
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6682
|
+
"line": 282,
|
|
6683
|
+
"class": "Ember",
|
|
6684
|
+
"module": "ember"
|
|
6685
|
+
},
|
|
6686
|
+
{
|
|
6687
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6688
|
+
"line": 287,
|
|
6689
|
+
"class": "Ember",
|
|
6690
|
+
"module": "ember"
|
|
6691
|
+
},
|
|
6692
|
+
{
|
|
6693
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6694
|
+
"line": 307,
|
|
6695
|
+
"class": "Ember",
|
|
6696
|
+
"module": "ember"
|
|
6697
|
+
},
|
|
6698
|
+
{
|
|
6699
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6700
|
+
"line": 321,
|
|
6701
|
+
"class": "Ember",
|
|
6702
|
+
"module": "ember"
|
|
6703
|
+
},
|
|
6704
|
+
{
|
|
6705
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6706
|
+
"line": 327,
|
|
6707
|
+
"class": "Ember",
|
|
6708
|
+
"module": "ember"
|
|
6709
|
+
},
|
|
6710
|
+
{
|
|
6711
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6712
|
+
"line": 332,
|
|
6713
|
+
"class": "Ember",
|
|
6714
|
+
"module": "ember"
|
|
6715
|
+
},
|
|
6716
|
+
{
|
|
6717
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6718
|
+
"line": 353,
|
|
6719
|
+
"class": "Ember",
|
|
6720
|
+
"module": "ember"
|
|
6721
|
+
},
|
|
6722
|
+
{
|
|
6723
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6724
|
+
"line": 368,
|
|
6725
|
+
"class": "Ember",
|
|
6726
|
+
"module": "ember"
|
|
6727
|
+
},
|
|
6728
|
+
{
|
|
6729
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6730
|
+
"line": 472,
|
|
6731
|
+
"description": "Flattening is based on a global revision counter. If the revision has\nbumped it means that somewhere in a class inheritance chain something has\nchanged, so we need to reflatten everything. This can only happen if:\n\n1. A meta has been flattened (listener has been called)\n2. The meta is a prototype meta with children who have inherited its\n listeners\n3. A new listener is subsequently added to the meta (e.g. via `.reopen()`)\n\nThis is a very rare occurrence, so while the counter is global it shouldn't\nbe updated very often in practice.",
|
|
6732
|
+
"class": "Ember",
|
|
6733
|
+
"module": "ember"
|
|
6734
|
+
},
|
|
6735
|
+
{
|
|
6736
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6737
|
+
"line": 547,
|
|
6738
|
+
"class": "Ember",
|
|
6739
|
+
"module": "ember"
|
|
6740
|
+
},
|
|
6741
|
+
{
|
|
6742
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6743
|
+
"line": 580,
|
|
6744
|
+
"class": "Ember",
|
|
6745
|
+
"module": "ember"
|
|
6746
|
+
},
|
|
6747
|
+
{
|
|
6748
|
+
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6749
|
+
"line": 674,
|
|
6750
|
+
"description": "Retrieves the meta hash for an object. If `writable` is true ensures the\nhash is writable for this object as well.\n\nThe meta object contains information about computed property descriptors as\nwell as any watched properties and other information. You generally will\nnot access this information directly but instead work with higher level\nmethods that manipulate this hash indirectly.",
|
|
6751
|
+
"itemtype": "method",
|
|
6752
|
+
"name": "meta",
|
|
6753
|
+
"access": "private",
|
|
6754
|
+
"tagname": "",
|
|
6755
|
+
"params": [
|
|
6756
|
+
{
|
|
6757
|
+
"name": "obj",
|
|
6758
|
+
"description": "The object to retrieve meta for",
|
|
6759
|
+
"type": "Object"
|
|
6760
|
+
},
|
|
6761
|
+
{
|
|
6762
|
+
"name": "writable",
|
|
6763
|
+
"description": "Pass `false` if you do not intend to modify\n the meta hash, allowing the method to avoid making an unnecessary copy.",
|
|
6764
|
+
"type": "Boolean",
|
|
6765
|
+
"optional": true,
|
|
6766
|
+
"optdefault": "true"
|
|
6767
|
+
}
|
|
6768
|
+
],
|
|
6769
|
+
"return": {
|
|
6770
|
+
"description": "the meta hash for an object",
|
|
6771
|
+
"type": "Object"
|
|
6772
|
+
},
|
|
6773
|
+
"class": "Ember",
|
|
6774
|
+
"module": "ember"
|
|
6775
|
+
},
|
|
6776
|
+
{
|
|
6777
|
+
"file": "packages/@ember/-internals/metal/lib/cache.ts",
|
|
6778
|
+
"line": 14,
|
|
6779
|
+
"description": "Receives a function, and returns a wrapped version of it that memoizes based on\n_autotracking_. The function will only rerun whenever any tracked values used\nwithin it have changed. Otherwise, it will return the previous value.\n\n```js\nimport { tracked } from '@glimmer/tracking';\nimport { createCache, getValue } from '@glimmer/tracking/primitives/cache';\n\nclass State {\n @tracked value;\n}\n\nlet state = new State();\nlet computeCount = 0;\n\nlet counter = createCache(() => {\n // consume the state. Now, `counter` will\n // only rerun if `state.value` changes.\n state.value;\n\n return ++computeCount;\n});\n\ngetValue(counter); // 1\n\n// returns the same value because no tracked state has changed\ngetValue(counter); // 1\n\nstate.value = 'foo';\n\n// reruns because a tracked value used in the function has changed,\n// incermenting the counter\ngetValue(counter); // 2\n```",
|
|
6780
|
+
"itemtype": "method",
|
|
6781
|
+
"name": "createCache",
|
|
6782
|
+
"static": 1,
|
|
6783
|
+
"access": "public",
|
|
6784
|
+
"tagname": "",
|
|
6785
|
+
"class": "@glimmer/tracking/primitives/cache",
|
|
6786
|
+
"module": "@glimmer/tracking/primitives/cache"
|
|
6787
|
+
},
|
|
6788
|
+
{
|
|
6789
|
+
"file": "packages/@ember/-internals/metal/lib/cache.ts",
|
|
6790
|
+
"line": 56,
|
|
6791
|
+
"description": "Gets the value of a cache created with `createCache`.\n\n```js\nimport { tracked } from '@glimmer/tracking';\nimport { createCache, getValue } from '@glimmer/tracking/primitives/cache';\n\nlet computeCount = 0;\n\nlet counter = createCache(() => {\n return ++computeCount;\n});\n\ngetValue(counter); // 1\n```",
|
|
6792
|
+
"itemtype": "method",
|
|
6793
|
+
"name": "getValue",
|
|
6794
|
+
"static": 1,
|
|
6795
|
+
"access": "public",
|
|
6796
|
+
"tagname": "",
|
|
6797
|
+
"class": "@glimmer/tracking/primitives/cache",
|
|
6798
|
+
"module": "@glimmer/tracking/primitives/cache"
|
|
6799
|
+
},
|
|
6800
|
+
{
|
|
6801
|
+
"file": "packages/@ember/-internals/metal/lib/cache.ts",
|
|
6802
|
+
"line": 78,
|
|
6803
|
+
"description": "Can be used to check if a memoized function is _constant_. If no tracked state\nwas used while running a memoized function, it will never rerun, because nothing\ncan invalidate its result. `isConst` can be used to determine if a memoized\nfunction is constant or not, in order to optimize code surrounding that\nfunction.\n\n```js\nimport { tracked } from '@glimmer/tracking';\nimport { createCache, getValue, isConst } from '@glimmer/tracking/primitives/cache';\n\nclass State {\n @tracked value;\n}\n\nlet state = new State();\nlet computeCount = 0;\n\nlet counter = createCache(() => {\n // consume the state\n state.value;\n\n return computeCount++;\n});\n\nlet constCounter = createCache(() => {\n return computeCount++;\n});\n\ngetValue(counter);\ngetValue(constCounter);\n\nisConst(counter); // false\nisConst(constCounter); // true\n```\n\nIf called on a cache that hasn't been accessed yet, it will throw an\nerror. This is because there's no way to know if the function will be constant\nor not yet, and so this helps prevent missing an optimization opportunity on\naccident.",
|
|
6804
|
+
"itemtype": "method",
|
|
6805
|
+
"name": "isConst",
|
|
6806
|
+
"static": 1,
|
|
6807
|
+
"access": "public",
|
|
6808
|
+
"tagname": "",
|
|
6809
|
+
"class": "@glimmer/tracking/primitives/cache",
|
|
6810
|
+
"module": "@glimmer/tracking/primitives/cache"
|
|
6811
|
+
},
|
|
6812
|
+
{
|
|
6813
|
+
"file": "packages/@ember/-internals/metal/lib/computed.ts",
|
|
6814
|
+
"line": 600,
|
|
6815
|
+
"description": "Call on a computed property to set it into read-only mode. When in this\nmode the computed property will throw an error when set.\n\nExample:\n\n```javascript\nimport { computed, set } from '@ember/object';\n\nclass Person {\n @computed().readOnly()\n get guid() {\n return 'guid-guid-guid';\n }\n}\n\nlet person = new Person();\nset(person, 'guid', 'new-guid'); // will throw an exception\n```\n\nClassic Class Example:\n\n```javascript\nimport EmberObject, { computed } from '@ember/object';\n\nlet Person = EmberObject.extend({\n guid: computed(function() {\n return 'guid-guid-guid';\n }).readOnly()\n});\n\nlet person = Person.create();\nperson.set('guid', 'new-guid'); // will throw an exception\n```",
|
|
6816
|
+
"itemtype": "method",
|
|
6817
|
+
"name": "readOnly",
|
|
6818
|
+
"return": {
|
|
6819
|
+
"description": "this",
|
|
6820
|
+
"type": "ComputedProperty"
|
|
6821
|
+
},
|
|
6822
|
+
"chainable": 1,
|
|
6823
|
+
"access": "public",
|
|
6824
|
+
"tagname": "",
|
|
6825
|
+
"class": "ComputedProperty",
|
|
6826
|
+
"module": "@ember/object"
|
|
6827
|
+
},
|
|
6828
|
+
{
|
|
6829
|
+
"file": "packages/@ember/-internals/metal/lib/computed.ts",
|
|
6830
|
+
"line": 650,
|
|
6831
|
+
"description": "In some cases, you may want to annotate computed properties with additional\nmetadata about how they function or what values they operate on. For example,\ncomputed property functions may close over variables that are then no longer\navailable for introspection. You can pass a hash of these values to a\ncomputed property.\n\nExample:\n\n```javascript\nimport { computed } from '@ember/object';\nimport Person from 'my-app/utils/person';\n\nclass Store {\n @computed().meta({ type: Person })\n get person() {\n let personId = this.personId;\n return Person.create({ id: personId });\n }\n}\n```\n\nClassic Class Example:\n\n```javascript\nimport { computed } from '@ember/object';\nimport Person from 'my-app/utils/person';\n\nconst Store = EmberObject.extend({\n person: computed(function() {\n let personId = this.get('personId');\n return Person.create({ id: personId });\n }).meta({ type: Person })\n});\n```\n\nThe hash that you pass to the `meta()` function will be saved on the\ncomputed property descriptor under the `_meta` key. Ember runtime\nexposes a public API for retrieving these values from classes,\nvia the `metaForProperty()` function.",
|
|
6832
|
+
"itemtype": "method",
|
|
6833
|
+
"name": "meta",
|
|
6834
|
+
"params": [
|
|
6835
|
+
{
|
|
6836
|
+
"name": "meta",
|
|
6837
|
+
"description": "",
|
|
6838
|
+
"type": "Object"
|
|
6839
|
+
}
|
|
6840
|
+
],
|
|
6841
|
+
"chainable": 1,
|
|
6842
|
+
"access": "public",
|
|
6843
|
+
"tagname": "",
|
|
6844
|
+
"class": "ComputedProperty",
|
|
6845
|
+
"module": "@ember/object"
|
|
6846
|
+
},
|
|
6847
|
+
{
|
|
6848
|
+
"file": "packages/@ember/-internals/metal/lib/computed.ts",
|
|
6849
|
+
"line": 709,
|
|
6850
|
+
"class": "ComputedProperty",
|
|
6851
|
+
"module": "@ember/object"
|
|
6852
|
+
},
|
|
6853
|
+
{
|
|
6854
|
+
"file": "packages/@ember/-internals/metal/lib/computed.ts",
|
|
6855
|
+
"line": 715,
|
|
6856
|
+
"class": "ComputedProperty",
|
|
6857
|
+
"module": "@ember/object"
|
|
6858
|
+
},
|
|
6859
|
+
{
|
|
6860
|
+
"file": "packages/@ember/-internals/metal/lib/computed.ts",
|
|
6861
|
+
"line": 723,
|
|
6862
|
+
"description": "This helper returns a new property descriptor that wraps the passed\ncomputed property function. You can use this helper to define properties with\nnative decorator syntax, mixins, or via `defineProperty()`.\n\nExample:\n\n```js\nimport { computed, set } from '@ember/object';\n\nclass Person {\n constructor() {\n this.firstName = 'Betty';\n this.lastName = 'Jones';\n },\n\n @computed('firstName', 'lastName')\n get fullName() {\n return `${this.firstName} ${this.lastName}`;\n }\n}\n\nlet client = new Person();\n\nclient.fullName; // 'Betty Jones'\n\nset(client, 'lastName', 'Fuller');\nclient.fullName; // 'Betty Fuller'\n```\n\nClassic Class Example:\n\n```js\nimport EmberObject, { computed } from '@ember/object';\n\nlet Person = EmberObject.extend({\n init() {\n this._super(...arguments);\n\n this.firstName = 'Betty';\n this.lastName = 'Jones';\n },\n\n fullName: computed('firstName', 'lastName', function() {\n return `${this.get('firstName')} ${this.get('lastName')}`;\n })\n});\n\nlet client = Person.create();\n\nclient.get('fullName'); // 'Betty Jones'\n\nclient.set('lastName', 'Fuller');\nclient.get('fullName'); // 'Betty Fuller'\n```\n\nYou can also provide a setter, either directly on the class using native class\nsyntax, or by passing a hash with `get` and `set` functions.\n\nExample:\n\n```js\nimport { computed, set } from '@ember/object';\n\nclass Person {\n constructor() {\n this.firstName = 'Betty';\n this.lastName = 'Jones';\n },\n\n @computed('firstName', 'lastName')\n get fullName() {\n return `${this.firstName} ${this.lastName}`;\n }\n\n set fullName(value) {\n let [firstName, lastName] = value.split(/\\s+/);\n\n set(this, 'firstName', firstName);\n set(this, 'lastName', lastName);\n\n return value;\n }\n}\n\nlet client = new Person();\n\nclient.fullName; // 'Betty Jones'\n\nset(client, 'lastName', 'Fuller');\nclient.fullName; // 'Betty Fuller'\n```\n\nClassic Class Example:\n\n```js\nimport EmberObject, { computed } from '@ember/object';\n\nlet Person = EmberObject.extend({\n init() {\n this._super(...arguments);\n\n this.firstName = 'Betty';\n this.lastName = 'Jones';\n },\n\n fullName: computed('firstName', 'lastName', {\n get(key) {\n return `${this.get('firstName')} ${this.get('lastName')}`;\n },\n set(key, value) {\n let [firstName, lastName] = value.split(/\\s+/);\n this.setProperties({ firstName, lastName });\n return value;\n }\n })\n});\n\nlet client = Person.create();\nclient.get('firstName'); // 'Betty'\n\nclient.set('fullName', 'Carroll Fuller');\nclient.get('firstName'); // 'Carroll'\n```\n\nWhen passed as an argument, the `set` function should accept two parameters,\n`key` and `value`. The value returned from `set` will be the new value of the\nproperty.\n\n_Note: This is the preferred way to define computed properties when writing third-party\nlibraries that depend on or use Ember, since there is no guarantee that the user\nwill have [prototype Extensions](https://guides.emberjs.com/release/configuring-ember/disabling-prototype-extensions/) enabled._",
|
|
6863
|
+
"itemtype": "method",
|
|
6864
|
+
"name": "computed",
|
|
6865
|
+
"static": 1,
|
|
6866
|
+
"params": [
|
|
6867
|
+
{
|
|
6868
|
+
"name": "dependentKeys*",
|
|
6869
|
+
"description": "Optional dependent keys that trigger this computed property.",
|
|
6870
|
+
"type": "String",
|
|
6871
|
+
"optional": true
|
|
6872
|
+
},
|
|
6873
|
+
{
|
|
6874
|
+
"name": "func",
|
|
6875
|
+
"description": "The computed property function.",
|
|
6876
|
+
"type": "Function"
|
|
6877
|
+
}
|
|
6878
|
+
],
|
|
6879
|
+
"return": {
|
|
6880
|
+
"description": "property decorator instance",
|
|
6630
6881
|
"type": "ComputedDecorator"
|
|
6631
6882
|
},
|
|
6632
6883
|
"access": "public",
|
|
@@ -6636,7 +6887,7 @@
|
|
|
6636
6887
|
},
|
|
6637
6888
|
{
|
|
6638
6889
|
"file": "packages/@ember/-internals/metal/lib/computed.ts",
|
|
6639
|
-
"line":
|
|
6890
|
+
"line": 908,
|
|
6640
6891
|
"description": "Allows checking if a given property on an object is a computed property. For the most part,\nthis doesn't matter (you would normally just access the property directly and use its value),\nbut for some tooling specific scenarios (e.g. the ember-inspector) it is important to\ndifferentiate if a property is a computed property or a \"normal\" property.\n\nThis will work on either a class's prototype or an instance itself.",
|
|
6641
6892
|
"static": 1,
|
|
6642
6893
|
"itemtype": "method",
|
|
@@ -6648,7 +6899,7 @@
|
|
|
6648
6899
|
},
|
|
6649
6900
|
{
|
|
6650
6901
|
"file": "packages/@ember/-internals/metal/lib/decorator.ts",
|
|
6651
|
-
"line":
|
|
6902
|
+
"line": 154,
|
|
6652
6903
|
"description": "Returns the CP descriptor associated with `obj` and `keyName`, if any.",
|
|
6653
6904
|
"itemtype": "method",
|
|
6654
6905
|
"name": "descriptorForProperty",
|
|
@@ -6675,7 +6926,7 @@
|
|
|
6675
6926
|
},
|
|
6676
6927
|
{
|
|
6677
6928
|
"file": "packages/@ember/-internals/metal/lib/decorator.ts",
|
|
6678
|
-
"line":
|
|
6929
|
+
"line": 182,
|
|
6679
6930
|
"description": "Check whether a value is a decorator",
|
|
6680
6931
|
"itemtype": "method",
|
|
6681
6932
|
"name": "isClassicDecorator",
|
|
@@ -6697,7 +6948,7 @@
|
|
|
6697
6948
|
},
|
|
6698
6949
|
{
|
|
6699
6950
|
"file": "packages/@ember/-internals/metal/lib/decorator.ts",
|
|
6700
|
-
"line":
|
|
6951
|
+
"line": 194,
|
|
6701
6952
|
"description": "Set a value as a decorator",
|
|
6702
6953
|
"itemtype": "method",
|
|
6703
6954
|
"name": "setClassicDecorator",
|
|
@@ -7048,7 +7299,7 @@
|
|
|
7048
7299
|
},
|
|
7049
7300
|
{
|
|
7050
7301
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7051
|
-
"line":
|
|
7302
|
+
"line": 431,
|
|
7052
7303
|
"itemtype": "method",
|
|
7053
7304
|
"name": "mixin",
|
|
7054
7305
|
"params": [
|
|
@@ -7072,7 +7323,43 @@
|
|
|
7072
7323
|
},
|
|
7073
7324
|
{
|
|
7074
7325
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7075
|
-
"line":
|
|
7326
|
+
"line": 528,
|
|
7327
|
+
"class": "Mixin",
|
|
7328
|
+
"module": "@ember/object"
|
|
7329
|
+
},
|
|
7330
|
+
{
|
|
7331
|
+
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7332
|
+
"line": 531,
|
|
7333
|
+
"class": "Mixin",
|
|
7334
|
+
"module": "@ember/object"
|
|
7335
|
+
},
|
|
7336
|
+
{
|
|
7337
|
+
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7338
|
+
"line": 534,
|
|
7339
|
+
"class": "Mixin",
|
|
7340
|
+
"module": "@ember/object"
|
|
7341
|
+
},
|
|
7342
|
+
{
|
|
7343
|
+
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7344
|
+
"line": 537,
|
|
7345
|
+
"class": "Mixin",
|
|
7346
|
+
"module": "@ember/object"
|
|
7347
|
+
},
|
|
7348
|
+
{
|
|
7349
|
+
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7350
|
+
"line": 540,
|
|
7351
|
+
"class": "Mixin",
|
|
7352
|
+
"module": "@ember/object"
|
|
7353
|
+
},
|
|
7354
|
+
{
|
|
7355
|
+
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7356
|
+
"line": 543,
|
|
7357
|
+
"class": "Mixin",
|
|
7358
|
+
"module": "@ember/object"
|
|
7359
|
+
},
|
|
7360
|
+
{
|
|
7361
|
+
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7362
|
+
"line": 569,
|
|
7076
7363
|
"itemtype": "method",
|
|
7077
7364
|
"name": "create",
|
|
7078
7365
|
"static": 1,
|
|
@@ -7090,7 +7377,13 @@
|
|
|
7090
7377
|
},
|
|
7091
7378
|
{
|
|
7092
7379
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7093
|
-
"line":
|
|
7380
|
+
"line": 584,
|
|
7381
|
+
"class": "@ember/object/mixin",
|
|
7382
|
+
"module": "@ember/object"
|
|
7383
|
+
},
|
|
7384
|
+
{
|
|
7385
|
+
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7386
|
+
"line": 602,
|
|
7094
7387
|
"itemtype": "method",
|
|
7095
7388
|
"name": "reopen",
|
|
7096
7389
|
"params": [
|
|
@@ -7102,12 +7395,13 @@
|
|
|
7102
7395
|
],
|
|
7103
7396
|
"access": "private",
|
|
7104
7397
|
"tagname": "",
|
|
7398
|
+
"internal": "",
|
|
7105
7399
|
"class": "@ember/object/mixin",
|
|
7106
7400
|
"module": "@ember/object"
|
|
7107
7401
|
},
|
|
7108
7402
|
{
|
|
7109
7403
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7110
|
-
"line":
|
|
7404
|
+
"line": 625,
|
|
7111
7405
|
"itemtype": "method",
|
|
7112
7406
|
"name": "apply",
|
|
7113
7407
|
"params": [
|
|
@@ -7121,12 +7415,19 @@
|
|
|
7121
7415
|
},
|
|
7122
7416
|
"access": "private",
|
|
7123
7417
|
"tagname": "",
|
|
7418
|
+
"internal": "",
|
|
7419
|
+
"class": "@ember/object/mixin",
|
|
7420
|
+
"module": "@ember/object"
|
|
7421
|
+
},
|
|
7422
|
+
{
|
|
7423
|
+
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7424
|
+
"line": 641,
|
|
7124
7425
|
"class": "@ember/object/mixin",
|
|
7125
7426
|
"module": "@ember/object"
|
|
7126
7427
|
},
|
|
7127
7428
|
{
|
|
7128
7429
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7129
|
-
"line":
|
|
7430
|
+
"line": 646,
|
|
7130
7431
|
"itemtype": "method",
|
|
7131
7432
|
"name": "detect",
|
|
7132
7433
|
"params": [
|
|
@@ -7141,12 +7442,31 @@
|
|
|
7141
7442
|
},
|
|
7142
7443
|
"access": "private",
|
|
7143
7444
|
"tagname": "",
|
|
7445
|
+
"internal": "",
|
|
7446
|
+
"class": "@ember/object/mixin",
|
|
7447
|
+
"module": "@ember/object"
|
|
7448
|
+
},
|
|
7449
|
+
{
|
|
7450
|
+
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7451
|
+
"line": 667,
|
|
7452
|
+
"class": "@ember/object/mixin",
|
|
7453
|
+
"module": "@ember/object"
|
|
7454
|
+
},
|
|
7455
|
+
{
|
|
7456
|
+
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7457
|
+
"line": 674,
|
|
7144
7458
|
"class": "@ember/object/mixin",
|
|
7145
7459
|
"module": "@ember/object"
|
|
7146
7460
|
},
|
|
7147
7461
|
{
|
|
7148
7462
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7149
|
-
"line":
|
|
7463
|
+
"line": 679,
|
|
7464
|
+
"class": "@ember/object/mixin",
|
|
7465
|
+
"module": "@ember/object"
|
|
7466
|
+
},
|
|
7467
|
+
{
|
|
7468
|
+
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7469
|
+
"line": 771,
|
|
7150
7470
|
"description": "Specify a method that observes property changes.\n\n```javascript\nimport EmberObject from '@ember/object';\nimport { observer } from '@ember/object';\n\nexport default EmberObject.extend({\n valueObserver: observer('value', function() {\n // Executes whenever the \"value\" property changes\n })\n});\n```\n\nAlso available as `Function.prototype.observes` if prototype extensions are\nenabled.",
|
|
7151
7471
|
"itemtype": "method",
|
|
7152
7472
|
"name": "observer",
|
|
@@ -7492,7 +7812,7 @@
|
|
|
7492
7812
|
"tagname": "Marks a property as tracked.\n\nBy default, a component's properties are expected to be static,\nmeaning you are not able to update them and have the template update accordingly.\nMarking a property as tracked means that when that property changes,\na rerender of the component is scheduled so the template is kept up to date.\n\nThere are two usages for the `@tracked` decorator, shown below.",
|
|
7493
7813
|
"example": [
|
|
7494
7814
|
" No dependencies\n\nIf you don't pass an argument to `@tracked`, only changes to that property\nwill be tracked:\n\n```typescript\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class MyComponent extends Component {\n @tracked\n remainingApples = 10\n}\n```\n\nWhen something changes the component's `remainingApples` property, the rerender\nwill be scheduled.",
|
|
7495
|
-
" Dependents\n\nIn the case that you have a computed property that depends other\nproperties, you want to track both so that when one of the\ndependents change, a rerender is scheduled.\n\nIn the following example we have two properties,\n`eatenApples`, and `remainingApples`.\n\n```typescript\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nconst totalApples = 100;\n\nexport default class MyComponent extends Component {\n @tracked\n eatenApples = 0\n\n
|
|
7815
|
+
" Dependents\n\nIn the case that you have a computed property that depends other\nproperties, you want to track both so that when one of the\ndependents change, a rerender is scheduled.\n\nIn the following example we have two properties,\n`eatenApples`, and `remainingApples`.\n\n```typescript\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nconst totalApples = 100;\n\nexport default class MyComponent extends Component {\n @tracked\n eatenApples = 0\n\n get remainingApples() {\n return totalApples - this.eatenApples;\n }\n\n increment() {\n this.eatenApples = this.eatenApples + 1;\n }\n}\n```"
|
|
7496
7816
|
],
|
|
7497
7817
|
"params": [
|
|
7498
7818
|
{
|
|
@@ -7505,7 +7825,25 @@
|
|
|
7505
7825
|
},
|
|
7506
7826
|
{
|
|
7507
7827
|
"file": "packages/@ember/-internals/owner/index.ts",
|
|
7508
|
-
"line":
|
|
7828
|
+
"line": 36,
|
|
7829
|
+
"class": "@ember/application",
|
|
7830
|
+
"module": "@ember/application"
|
|
7831
|
+
},
|
|
7832
|
+
{
|
|
7833
|
+
"file": "packages/@ember/-internals/owner/index.ts",
|
|
7834
|
+
"line": 38,
|
|
7835
|
+
"class": "@ember/application",
|
|
7836
|
+
"module": "@ember/application"
|
|
7837
|
+
},
|
|
7838
|
+
{
|
|
7839
|
+
"file": "packages/@ember/-internals/owner/index.ts",
|
|
7840
|
+
"line": 40,
|
|
7841
|
+
"class": "@ember/application",
|
|
7842
|
+
"module": "@ember/application"
|
|
7843
|
+
},
|
|
7844
|
+
{
|
|
7845
|
+
"file": "packages/@ember/-internals/owner/index.ts",
|
|
7846
|
+
"line": 44,
|
|
7509
7847
|
"description": "Framework objects in an Ember application (components, services, routes, etc.)\nare created via a factory and dependency injection system. Each of these\nobjects is the responsibility of an \"owner\", which handled its\ninstantiation and manages its lifetime.\n\n`getOwner` fetches the owner object responsible for an instance. This can\nbe used to lookup or resolve other class instances, or register new factories\ninto the owner.\n\nFor example, this component dynamically looks up a service based on the\n`audioType` passed as an argument:\n\n```app/components/play-audio.js\nimport Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { getOwner } from '@ember/application';\n\n// Usage:\n//\n// <PlayAudio @audioType={{@model.audioType}} @audioFile={{@model.file}}/>\n//\nexport default class extends Component {\n get audioService() {\n let owner = getOwner(this);\n return owner.lookup(`service:${this.args.audioType}`);\n }\n\n @action\n onPlay() {\n let player = this.audioService;\n player.play(this.args.audioFile);\n }\n}\n```",
|
|
7510
7848
|
"itemtype": "method",
|
|
7511
7849
|
"name": "getOwner",
|
|
@@ -7529,7 +7867,7 @@
|
|
|
7529
7867
|
},
|
|
7530
7868
|
{
|
|
7531
7869
|
"file": "packages/@ember/-internals/owner/index.ts",
|
|
7532
|
-
"line":
|
|
7870
|
+
"line": 92,
|
|
7533
7871
|
"description": "`setOwner` forces a new owner on a given object instance. This is primarily\nuseful in some testing cases.",
|
|
7534
7872
|
"itemtype": "method",
|
|
7535
7873
|
"name": "setOwner",
|
|
@@ -7554,7 +7892,7 @@
|
|
|
7554
7892
|
},
|
|
7555
7893
|
{
|
|
7556
7894
|
"file": "packages/@ember/-internals/routing/lib/ext/controller.ts",
|
|
7557
|
-
"line":
|
|
7895
|
+
"line": 24,
|
|
7558
7896
|
"description": "Defines which query parameters the controller accepts.\nIf you give the names `['category','page']` it will bind\nthe values of these query parameters to the variables\n`this.category` and `this.page`.\n\nBy default, query parameters are parsed as strings. This\nmay cause unexpected behavior if a query parameter is used with `toggleProperty`,\nbecause the initial value set for `param=false` will be the string `\"false\"`, which is truthy.\n\nTo avoid this, you may specify that the query parameter should be parsed as a boolean\nby using the following verbose form with a `type` property:\n```javascript\n queryParams: [{\n category: {\n type: 'boolean'\n }\n }]\n```\nAvailable values for the `type` parameter are `'boolean'`, `'number'`, `'array'`, and `'string'`.\nIf query param type is not specified, it will default to `'string'`.",
|
|
7559
7897
|
"itemtype": "property",
|
|
7560
7898
|
"name": "queryParams",
|
|
@@ -7565,7 +7903,7 @@
|
|
|
7565
7903
|
},
|
|
7566
7904
|
{
|
|
7567
7905
|
"file": "packages/@ember/-internals/routing/lib/ext/controller.ts",
|
|
7568
|
-
"line":
|
|
7906
|
+
"line": 52,
|
|
7569
7907
|
"description": "This property is updated to various different callback functions depending on\nthe current \"state\" of the backing route. It is used by\n`Controller.prototype._qpChanged`.\n\nThe methods backing each state can be found in the `Route.prototype._qp` computed\nproperty return value (the `.states` property). The current values are listed here for\nthe sanity of future travelers:\n\n* `inactive` - This state is used when this controller instance is not part of the active\n route hierarchy. Set in `Route.prototype._reset` (a `router.js` microlib hook) and\n `Route.prototype.actions.finalizeQueryParamChange`.\n* `active` - This state is used when this controller instance is part of the active\n route hierarchy. Set in `Route.prototype.actions.finalizeQueryParamChange`.\n* `allowOverrides` - This state is used in `Route.prototype.setup` (`route.js` microlib hook).",
|
|
7570
7908
|
"itemtype": "method",
|
|
7571
7909
|
"name": "_qpDelegate",
|
|
@@ -7576,7 +7914,7 @@
|
|
|
7576
7914
|
},
|
|
7577
7915
|
{
|
|
7578
7916
|
"file": "packages/@ember/-internals/routing/lib/ext/controller.ts",
|
|
7579
|
-
"line":
|
|
7917
|
+
"line": 73,
|
|
7580
7918
|
"description": "During `Route#setup` observers are created to invoke this method\nwhen any of the query params declared in `Controller#queryParams` property\nare changed.\n\nWhen invoked this method uses the currently active query param update delegate\n(see `Controller.prototype._qpDelegate` for details) and invokes it with\nthe QP key/value being changed.",
|
|
7581
7919
|
"itemtype": "method",
|
|
7582
7920
|
"name": "_qpChanged",
|
|
@@ -7587,7 +7925,7 @@
|
|
|
7587
7925
|
},
|
|
7588
7926
|
{
|
|
7589
7927
|
"file": "packages/@ember/-internals/routing/lib/ext/controller.ts",
|
|
7590
|
-
"line":
|
|
7928
|
+
"line": 94,
|
|
7591
7929
|
"description": "Transition the application into another route. The route may\nbe either a single route or route path:\n\n```javascript\naController.transitionToRoute('blogPosts');\naController.transitionToRoute('blogPosts.recentEntries');\n```\n\nOptionally supply a model for the route in question. The model\nwill be serialized into the URL using the `serialize` hook of\nthe route:\n\n```javascript\naController.transitionToRoute('blogPost', aPost);\n```\n\nIf a literal is passed (such as a number or a string), it will\nbe treated as an identifier instead. In this case, the `model`\nhook of the route will be triggered:\n\n```javascript\naController.transitionToRoute('blogPost', 1);\n```\n\nMultiple models will be applied last to first recursively up the\nroute tree.\n\n```app/router.js\nRouter.map(function() {\n this.route('blogPost', { path: ':blogPostId' }, function() {\n this.route('blogComment', { path: ':blogCommentId', resetNamespace: true });\n });\n});\n```\n\n```javascript\naController.transitionToRoute('blogComment', aPost, aComment);\naController.transitionToRoute('blogComment', 1, 13);\n```\n\nIt is also possible to pass a URL (a string that starts with a\n`/`).\n\n```javascript\naController.transitionToRoute('/');\naController.transitionToRoute('/blog/post/1/comment/13');\naController.transitionToRoute('/blog/posts?sort=title');\n```\n\nAn options hash with a `queryParams` property may be provided as\nthe final argument to add query parameters to the destination URL.\n\n```javascript\naController.transitionToRoute('blogPost', 1, {\n queryParams: { showComments: 'true' }\n});\n\n// if you just want to transition the query parameters without changing the route\naController.transitionToRoute({ queryParams: { sort: 'date' } });\n```\n\nSee also [replaceRoute](/ember/release/classes/Ember.ControllerMixin/methods/replaceRoute?anchor=replaceRoute).",
|
|
7592
7930
|
"params": [
|
|
7593
7931
|
{
|
|
@@ -7622,7 +7960,7 @@
|
|
|
7622
7960
|
},
|
|
7623
7961
|
{
|
|
7624
7962
|
"file": "packages/@ember/-internals/routing/lib/ext/controller.ts",
|
|
7625
|
-
"line":
|
|
7963
|
+
"line": 184,
|
|
7626
7964
|
"description": "Transition into another route while replacing the current URL, if possible.\nThis will replace the current history entry instead of adding a new one.\nBeside that, it is identical to `transitionToRoute` in all other respects.\n\n```javascript\naController.replaceRoute('blogPosts');\naController.replaceRoute('blogPosts.recentEntries');\n```\n\nOptionally supply a model for the route in question. The model\nwill be serialized into the URL using the `serialize` hook of\nthe route:\n\n```javascript\naController.replaceRoute('blogPost', aPost);\n```\n\nIf a literal is passed (such as a number or a string), it will\nbe treated as an identifier instead. In this case, the `model`\nhook of the route will be triggered:\n\n```javascript\naController.replaceRoute('blogPost', 1);\n```\n\nMultiple models will be applied last to first recursively up the\nroute tree.\n\n```app/router.js\nRouter.map(function() {\n this.route('blogPost', { path: ':blogPostId' }, function() {\n this.route('blogComment', { path: ':blogCommentId', resetNamespace: true });\n });\n});\n```\n\n```\naController.replaceRoute('blogComment', aPost, aComment);\naController.replaceRoute('blogComment', 1, 13);\n```\n\nIt is also possible to pass a URL (a string that starts with a\n`/`).\n\n```javascript\naController.replaceRoute('/');\naController.replaceRoute('/blog/post/1/comment/13');\n```",
|
|
7627
7965
|
"params": [
|
|
7628
7966
|
{
|
|
@@ -7761,7 +8099,7 @@
|
|
|
7761
8099
|
},
|
|
7762
8100
|
{
|
|
7763
8101
|
"file": "packages/@ember/-internals/routing/lib/location/auto_location.ts",
|
|
7764
|
-
"line":
|
|
8102
|
+
"line": 300,
|
|
7765
8103
|
"access": "private",
|
|
7766
8104
|
"tagname": "Returns the current path as it should appear for HistoryLocation supported\nbrowsers. This may very well differ from the real current path (e.g. if it\nstarts off as a hashed URL)",
|
|
7767
8105
|
"class": "AutoLocation",
|
|
@@ -7769,7 +8107,7 @@
|
|
|
7769
8107
|
},
|
|
7770
8108
|
{
|
|
7771
8109
|
"file": "packages/@ember/-internals/routing/lib/location/auto_location.ts",
|
|
7772
|
-
"line":
|
|
8110
|
+
"line": 346,
|
|
7773
8111
|
"access": "private",
|
|
7774
8112
|
"tagname": "Returns the current path as it should appear for HashLocation supported\nbrowsers. This may very well differ from the real current path.",
|
|
7775
8113
|
"itemtype": "method",
|
|
@@ -8191,7 +8529,7 @@
|
|
|
8191
8529
|
},
|
|
8192
8530
|
{
|
|
8193
8531
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8194
|
-
"line":
|
|
8532
|
+
"line": 74,
|
|
8195
8533
|
"description": "Transition the application into another route. The route may\nbe either a single route or route path:\n\nSee [transitionTo](/ember/release/classes/Route/methods/transitionTo?anchor=transitionTo) for more info.\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```",
|
|
8196
8534
|
"itemtype": "method",
|
|
8197
8535
|
"name": "transitionTo",
|
|
@@ -8226,7 +8564,7 @@
|
|
|
8226
8564
|
},
|
|
8227
8565
|
{
|
|
8228
8566
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8229
|
-
"line":
|
|
8567
|
+
"line": 143,
|
|
8230
8568
|
"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\nSee [replaceWith](/ember/release/classes/Route/methods/replaceWith?anchor=replaceWith) for more info.\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```",
|
|
8231
8569
|
"itemtype": "method",
|
|
8232
8570
|
"name": "replaceWith",
|
|
@@ -8259,7 +8597,7 @@
|
|
|
8259
8597
|
},
|
|
8260
8598
|
{
|
|
8261
8599
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8262
|
-
"line":
|
|
8600
|
+
"line": 184,
|
|
8263
8601
|
"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```",
|
|
8264
8602
|
"itemtype": "method",
|
|
8265
8603
|
"name": "urlFor",
|
|
@@ -8292,7 +8630,7 @@
|
|
|
8292
8630
|
},
|
|
8293
8631
|
{
|
|
8294
8632
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8295
|
-
"line":
|
|
8633
|
+
"line": 258,
|
|
8296
8634
|
"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.",
|
|
8297
8635
|
"itemtype": "method",
|
|
8298
8636
|
"name": "isActive",
|
|
@@ -8325,7 +8663,7 @@
|
|
|
8325
8663
|
},
|
|
8326
8664
|
{
|
|
8327
8665
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8328
|
-
"line":
|
|
8666
|
+
"line": 352,
|
|
8329
8667
|
"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```",
|
|
8330
8668
|
"itemtype": "method",
|
|
8331
8669
|
"name": "recognize",
|
|
@@ -8343,7 +8681,7 @@
|
|
|
8343
8681
|
},
|
|
8344
8682
|
{
|
|
8345
8683
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8346
|
-
"line":
|
|
8684
|
+
"line": 392,
|
|
8347
8685
|
"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`.",
|
|
8348
8686
|
"itemtype": "method",
|
|
8349
8687
|
"name": "recognizeAndLoad",
|
|
@@ -8361,7 +8699,7 @@
|
|
|
8361
8699
|
},
|
|
8362
8700
|
{
|
|
8363
8701
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8364
|
-
"line":
|
|
8702
|
+
"line": 413,
|
|
8365
8703
|
"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 constructor() {\n super(...arguments);\n\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.",
|
|
8366
8704
|
"itemtype": "event",
|
|
8367
8705
|
"name": "routeWillChange",
|
|
@@ -8379,7 +8717,7 @@
|
|
|
8379
8717
|
},
|
|
8380
8718
|
{
|
|
8381
8719
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8382
|
-
"line":
|
|
8720
|
+
"line": 449,
|
|
8383
8721
|
"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 constructor() {\n super(...arguments);\n\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.",
|
|
8384
8722
|
"itemtype": "event",
|
|
8385
8723
|
"name": "routeDidChange",
|
|
@@ -8397,7 +8735,7 @@
|
|
|
8397
8735
|
},
|
|
8398
8736
|
{
|
|
8399
8737
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8400
|
-
"line":
|
|
8738
|
+
"line": 494,
|
|
8401
8739
|
"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.",
|
|
8402
8740
|
"itemtype": "method",
|
|
8403
8741
|
"name": "refresh",
|
|
@@ -8422,7 +8760,7 @@
|
|
|
8422
8760
|
},
|
|
8423
8761
|
{
|
|
8424
8762
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8425
|
-
"line":
|
|
8763
|
+
"line": 529,
|
|
8426
8764
|
"description": "Name of the current route.\n\nThis property represents the logical name of the route,\nwhich is comma separated.\nFor the following router:\n\n```app/router.js\nRouter.map(function() {\n this.route('about');\n this.route('blog', function () {\n this.route('post', { path: ':post_id' });\n });\n});\n```\n\nIt 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`",
|
|
8427
8765
|
"itemtype": "property",
|
|
8428
8766
|
"name": "currentRouteName",
|
|
@@ -8434,7 +8772,7 @@
|
|
|
8434
8772
|
},
|
|
8435
8773
|
{
|
|
8436
8774
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8437
|
-
"line":
|
|
8775
|
+
"line": 558,
|
|
8438
8776
|
"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\nRouter.map(function() {\n this.route('about');\n this.route('blog', function () {\n this.route('post', { path: ':post_id' });\n });\n});\n```\n\nIt 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`",
|
|
8439
8777
|
"itemtype": "property",
|
|
8440
8778
|
"name": "currentURL",
|
|
@@ -8446,7 +8784,7 @@
|
|
|
8446
8784
|
},
|
|
8447
8785
|
{
|
|
8448
8786
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8449
|
-
"line":
|
|
8787
|
+
"line": 586,
|
|
8450
8788
|
"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).",
|
|
8451
8789
|
"itemtype": "property",
|
|
8452
8790
|
"name": "location",
|
|
@@ -8461,7 +8799,7 @@
|
|
|
8461
8799
|
},
|
|
8462
8800
|
{
|
|
8463
8801
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8464
|
-
"line":
|
|
8802
|
+
"line": 625,
|
|
8465
8803
|
"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`.",
|
|
8466
8804
|
"itemtype": "property",
|
|
8467
8805
|
"name": "rootURL",
|
|
@@ -8473,7 +8811,7 @@
|
|
|
8473
8811
|
},
|
|
8474
8812
|
{
|
|
8475
8813
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8476
|
-
"line":
|
|
8814
|
+
"line": 654,
|
|
8477
8815
|
"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```",
|
|
8478
8816
|
"itemtype": "property",
|
|
8479
8817
|
"name": "currentRoute",
|
|
@@ -8779,7 +9117,7 @@
|
|
|
8779
9117
|
},
|
|
8780
9118
|
{
|
|
8781
9119
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
8782
|
-
"line":
|
|
9120
|
+
"line": 162,
|
|
8783
9121
|
"description": "Configuration hash for this route's queryParams. The possible\nconfiguration options and their defaults are as follows\n(assuming a query param whose controller property is `page`):\n\n```javascript\nqueryParams: {\n page: {\n // By default, controller query param properties don't\n // cause a full transition when they are changed, but\n // rather only cause the URL to update. Setting\n // `refreshModel` to true will cause an \"in-place\"\n // transition to occur, whereby the model hooks for\n // this route (and any child routes) will re-fire, allowing\n // you to reload models (e.g., from the server) using the\n // updated query param values.\n refreshModel: false,\n\n // By default, changes to controller query param properties\n // cause the URL to update via `pushState`, which means an\n // item will be added to the browser's history, allowing\n // you to use the back button to restore the app to the\n // previous state before the query param property was changed.\n // Setting `replace` to true will use `replaceState` (or its\n // hash location equivalent), which causes no browser history\n // item to be added. This options name and default value are\n // the same as the `link-to` helper's `replace` option.\n replace: false,\n\n // By default, the query param URL key is the same name as\n // the controller property name. Use `as` to specify a\n // different URL key.\n as: 'page'\n }\n}\n```",
|
|
8784
9122
|
"itemtype": "property",
|
|
8785
9123
|
"name": "queryParams",
|
|
@@ -8792,7 +9130,7 @@
|
|
|
8792
9130
|
},
|
|
8793
9131
|
{
|
|
8794
9132
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
8795
|
-
"line":
|
|
9133
|
+
"line": 215,
|
|
8796
9134
|
"description": "The name of the template to use by default when rendering this routes\ntemplate.\n\n```app/routes/posts/list.js\nimport Route from '@ember/routing/route';\n\nexport default class extends Route {\n templateName = 'posts/list'\n});\n```\n\n```app/routes/posts/index.js\nimport PostsList from '../posts/list';\n\nexport default class extends PostsList {};\n```\n\n```app/routes/posts/archived.js\nimport PostsList from '../posts/list';\n\nexport default class extends PostsList {};\n```",
|
|
8797
9135
|
"itemtype": "property",
|
|
8798
9136
|
"name": "templateName",
|
|
@@ -8806,7 +9144,7 @@
|
|
|
8806
9144
|
},
|
|
8807
9145
|
{
|
|
8808
9146
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
8809
|
-
"line":
|
|
9147
|
+
"line": 248,
|
|
8810
9148
|
"description": "The name of the controller to associate with this route.\n\nBy default, Ember will lookup a route's controller that matches the name\nof the route (i.e. `posts.new`). However,\nif you would like to define a specific controller to use, you can do so\nusing this property.\n\nThis is useful in many ways, as the controller specified will be:\n\n* passed to the `setupController` method.\n* used as the controller for the template being rendered by the route.\n* returned from a call to `controllerFor` for the route.",
|
|
8811
9149
|
"itemtype": "property",
|
|
8812
9150
|
"name": "controllerName",
|
|
@@ -8820,7 +9158,7 @@
|
|
|
8820
9158
|
},
|
|
8821
9159
|
{
|
|
8822
9160
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
8823
|
-
"line":
|
|
9161
|
+
"line": 271,
|
|
8824
9162
|
"description": "The controller associated with this route.\n\nExample\n\n```app/routes/form.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class FormRoute extends Route {\n @action\n willTransition(transition) {\n if (this.controller.get('userHasEnteredData') &&\n !confirm('Are you sure you want to abandon progress?')) {\n transition.abort();\n } else {\n // Bubble the `willTransition` action so that\n // parent routes can decide whether or not to abort.\n return true;\n }\n }\n}\n```",
|
|
8825
9163
|
"itemtype": "property",
|
|
8826
9164
|
"name": "controller",
|
|
@@ -8833,7 +9171,7 @@
|
|
|
8833
9171
|
},
|
|
8834
9172
|
{
|
|
8835
9173
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
8836
|
-
"line":
|
|
9174
|
+
"line": 302,
|
|
8837
9175
|
"description": "The name of the route, dot-delimited.\n\nFor example, a route found at `app/routes/posts/post.js` will have\na `routeName` of `posts.post`.",
|
|
8838
9176
|
"itemtype": "property",
|
|
8839
9177
|
"name": "routeName",
|
|
@@ -8846,7 +9184,7 @@
|
|
|
8846
9184
|
},
|
|
8847
9185
|
{
|
|
8848
9186
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
8849
|
-
"line":
|
|
9187
|
+
"line": 316,
|
|
8850
9188
|
"description": "The name of the route, dot-delimited, including the engine prefix\nif applicable.\n\nFor example, a route found at `addon/routes/posts/post.js` within an\nengine named `admin` will have a `fullRouteName` of `admin.posts.post`.",
|
|
8851
9189
|
"itemtype": "property",
|
|
8852
9190
|
"name": "fullRouteName",
|
|
@@ -8859,7 +9197,7 @@
|
|
|
8859
9197
|
},
|
|
8860
9198
|
{
|
|
8861
9199
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
8862
|
-
"line":
|
|
9200
|
+
"line": 331,
|
|
8863
9201
|
"description": "Sets the name for this route, including a fully resolved name for routes\ninside engines.",
|
|
8864
9202
|
"access": "private",
|
|
8865
9203
|
"tagname": "",
|
|
@@ -8877,7 +9215,7 @@
|
|
|
8877
9215
|
},
|
|
8878
9216
|
{
|
|
8879
9217
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
8880
|
-
"line":
|
|
9218
|
+
"line": 346,
|
|
8881
9219
|
"access": "private",
|
|
8882
9220
|
"tagname": "",
|
|
8883
9221
|
"itemtype": "method",
|
|
@@ -8887,7 +9225,7 @@
|
|
|
8887
9225
|
},
|
|
8888
9226
|
{
|
|
8889
9227
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
8890
|
-
"line":
|
|
9228
|
+
"line": 378,
|
|
8891
9229
|
"access": "private",
|
|
8892
9230
|
"tagname": "",
|
|
8893
9231
|
"itemtype": "property",
|
|
@@ -8897,7 +9235,7 @@
|
|
|
8897
9235
|
},
|
|
8898
9236
|
{
|
|
8899
9237
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
8900
|
-
"line":
|
|
9238
|
+
"line": 387,
|
|
8901
9239
|
"access": "private",
|
|
8902
9240
|
"tagname": "",
|
|
8903
9241
|
"itemtype": "method",
|
|
@@ -8907,7 +9245,7 @@
|
|
|
8907
9245
|
},
|
|
8908
9246
|
{
|
|
8909
9247
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
8910
|
-
"line":
|
|
9248
|
+
"line": 395,
|
|
8911
9249
|
"description": "Returns a hash containing the parameters of an ancestor route.\n\nYou may notice that `this.paramsFor` sometimes works when referring to a\nchild route, but this behavior should not be relied upon as only ancestor\nroutes are certain to be loaded in time.\n\nExample\n\n```app/router.js\n// ...\n\nRouter.map(function() {\n this.route('member', { path: ':name' }, function() {\n this.route('interest', { path: ':interest' });\n });\n});\n```\n\n```app/routes/member.js\nimport Route from '@ember/routing/route';\n\nexport default class MemberRoute extends Route {\n queryParams = {\n memberQp: { refreshModel: true }\n }\n}\n```\n\n```app/routes/member/interest.js\nimport Route from '@ember/routing/route';\n\nexport default class MemberInterestRoute extends Route {\n queryParams = {\n interestQp: { refreshModel: true }\n }\n\n model() {\n return this.paramsFor('member');\n }\n}\n```\n\nIf we visit `/turing/maths?memberQp=member&interestQp=interest` the model for\nthe `member.interest` route is a hash with:\n\n* `name`: `turing`\n* `memberQp`: `member`",
|
|
8912
9250
|
"itemtype": "method",
|
|
8913
9251
|
"name": "paramsFor",
|
|
@@ -8930,7 +9268,7 @@
|
|
|
8930
9268
|
},
|
|
8931
9269
|
{
|
|
8932
9270
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
8933
|
-
"line":
|
|
9271
|
+
"line": 476,
|
|
8934
9272
|
"description": "Serializes the query parameter key",
|
|
8935
9273
|
"itemtype": "method",
|
|
8936
9274
|
"name": "serializeQueryParamKey",
|
|
@@ -8948,7 +9286,7 @@
|
|
|
8948
9286
|
},
|
|
8949
9287
|
{
|
|
8950
9288
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
8951
|
-
"line":
|
|
9289
|
+
"line": 487,
|
|
8952
9290
|
"description": "Serializes value of the query parameter based on defaultValueType",
|
|
8953
9291
|
"itemtype": "method",
|
|
8954
9292
|
"name": "serializeQueryParam",
|
|
@@ -8976,7 +9314,7 @@
|
|
|
8976
9314
|
},
|
|
8977
9315
|
{
|
|
8978
9316
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
8979
|
-
"line":
|
|
9317
|
+
"line": 503,
|
|
8980
9318
|
"description": "Deserializes value of the query parameter based on defaultValueType",
|
|
8981
9319
|
"itemtype": "method",
|
|
8982
9320
|
"name": "deserializeQueryParam",
|
|
@@ -9004,7 +9342,7 @@
|
|
|
9004
9342
|
},
|
|
9005
9343
|
{
|
|
9006
9344
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9007
|
-
"line":
|
|
9345
|
+
"line": 519,
|
|
9008
9346
|
"access": "private",
|
|
9009
9347
|
"tagname": "",
|
|
9010
9348
|
"itemtype": "property",
|
|
@@ -9014,7 +9352,7 @@
|
|
|
9014
9352
|
},
|
|
9015
9353
|
{
|
|
9016
9354
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9017
|
-
"line":
|
|
9355
|
+
"line": 535,
|
|
9018
9356
|
"description": "A hook you can use to reset controller values either when the model\nchanges or the route is exiting.\n\n```app/routes/articles.js\nimport Route from '@ember/routing/route';\n\nexport default class ArticlesRoute extends Route {\n resetController(controller, isExiting, transition) {\n if (isExiting && transition.targetName !== 'error') {\n controller.set('page', 1);\n }\n }\n}\n```",
|
|
9019
9357
|
"itemtype": "method",
|
|
9020
9358
|
"name": "resetController",
|
|
@@ -9043,7 +9381,7 @@
|
|
|
9043
9381
|
},
|
|
9044
9382
|
{
|
|
9045
9383
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9046
|
-
"line":
|
|
9384
|
+
"line": 562,
|
|
9047
9385
|
"access": "private",
|
|
9048
9386
|
"tagname": "",
|
|
9049
9387
|
"itemtype": "method",
|
|
@@ -9053,7 +9391,7 @@
|
|
|
9053
9391
|
},
|
|
9054
9392
|
{
|
|
9055
9393
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9056
|
-
"line":
|
|
9394
|
+
"line": 573,
|
|
9057
9395
|
"access": "private",
|
|
9058
9396
|
"tagname": "",
|
|
9059
9397
|
"itemtype": "method",
|
|
@@ -9064,7 +9402,7 @@
|
|
|
9064
9402
|
},
|
|
9065
9403
|
{
|
|
9066
9404
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9067
|
-
"line":
|
|
9405
|
+
"line": 587,
|
|
9068
9406
|
"access": "private",
|
|
9069
9407
|
"tagname": "",
|
|
9070
9408
|
"itemtype": "method",
|
|
@@ -9074,7 +9412,7 @@
|
|
|
9074
9412
|
},
|
|
9075
9413
|
{
|
|
9076
9414
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9077
|
-
"line":
|
|
9415
|
+
"line": 598,
|
|
9078
9416
|
"description": "The `willTransition` action 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/route';\nimport { action } from '@ember/object';\n\nexport default class ContactFormRoute extends Route {\n @action\n willTransition(transition) {\n if (this.controller.get('userHasEnteredData')) {\n this.controller.displayNavigationConfirm();\n transition.abort();\n }\n }\n}\n```\n\nYou can also redirect elsewhere by calling\n`this.transitionTo('elsewhere')` from within `willTransition`.\nNote that `willTransition` will not be fired for the\nredirecting `transitionTo`, since `willTransition` doesn't\nfire when there is already a transition underway. If you want\nsubsequent `willTransition` actions to fire for the redirecting\ntransition, you must first explicitly call\n`transition.abort()`.\n\nTo allow the `willTransition` event to continue bubbling to the parent\nroute, use `return true;`. When the `willTransition` method has a\nreturn value of `true` then the parent route's `willTransition` method\nwill be fired, enabling \"bubbling\" behavior for the event.",
|
|
9079
9417
|
"itemtype": "event",
|
|
9080
9418
|
"name": "willTransition",
|
|
@@ -9093,7 +9431,7 @@
|
|
|
9093
9431
|
},
|
|
9094
9432
|
{
|
|
9095
9433
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9096
|
-
"line":
|
|
9434
|
+
"line": 642,
|
|
9097
9435
|
"description": "The `didTransition` action is fired after a transition has\nsuccessfully been completed. This occurs after the normal model\nhooks (`beforeModel`, `model`, `afterModel`, `setupController`)\nhave resolved. The `didTransition` action has no arguments,\nhowever, it can be useful for tracking page views or resetting\nstate on the controller.\n\n```app/routes/login.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class LoginRoute extends Route {\n @action\n didTransition() {\n this.controller.get('errors.base').clear();\n return true; // Bubble the didTransition event\n }\n}\n```",
|
|
9098
9436
|
"itemtype": "event",
|
|
9099
9437
|
"name": "didTransition",
|
|
@@ -9105,7 +9443,7 @@
|
|
|
9105
9443
|
},
|
|
9106
9444
|
{
|
|
9107
9445
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9108
|
-
"line":
|
|
9446
|
+
"line": 668,
|
|
9109
9447
|
"description": "The `loading` action is fired on the route when a route's `model`\nhook returns a promise that is not already resolved. The current\n`Transition` object is the first parameter and the route that\ntriggered the loading event is the second parameter.\n\n```app/routes/application.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class ApplicationRoute extends Route {\n @action\n loading(transition, route) {\n let controller = this.controllerFor('foo');\n\n // The controller may not be instantiated when initially loading\n if (controller) {\n controller.currentlyLoading = true;\n\n transition.finally(function() {\n controller.currentlyLoading = false;\n });\n }\n }\n}\n```",
|
|
9110
9448
|
"itemtype": "event",
|
|
9111
9449
|
"name": "loading",
|
|
@@ -9129,7 +9467,7 @@
|
|
|
9129
9467
|
},
|
|
9130
9468
|
{
|
|
9131
9469
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9132
|
-
"line":
|
|
9470
|
+
"line": 702,
|
|
9133
9471
|
"description": "When attempting to transition into a route, any of the hooks\nmay return a promise that rejects, at which point an `error`\naction will be fired on the partially-entered routes, allowing\nfor per-route error handling logic, or shared error handling\nlogic defined on a parent route.\n\nHere is an example of an error handler that will be invoked\nfor rejected promises from the various hooks on the route,\nas well as any unhandled errors from child routes:\n\n```app/routes/admin.js\nimport { reject } from 'rsvp';\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class AdminRoute extends Route {\n beforeModel() {\n return reject('bad things!');\n }\n\n @action\n error(error, transition) {\n // Assuming we got here due to the error in `beforeModel`,\n // we can expect that error === \"bad things!\",\n // but a promise model rejecting would also\n // call this hook, as would any errors encountered\n // in `afterModel`.\n\n // The `error` hook is also provided the failed\n // `transition`, which can be stored and later\n // `.retry()`d if desired.\n\n this.transitionTo('login');\n }\n}\n```\n\n`error` actions that bubble up all the way to `ApplicationRoute`\nwill fire a default error handler that logs the error. You can\nspecify your own global default error handler by overriding the\n`error` handler on `ApplicationRoute`:\n\n```app/routes/application.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class ApplicationRoute extends Route {\n @action\n error(error, transition) {\n this.controllerFor('banner').displayError(error.message);\n }\n}\n```",
|
|
9134
9472
|
"itemtype": "event",
|
|
9135
9473
|
"name": "error",
|
|
@@ -9153,7 +9491,7 @@
|
|
|
9153
9491
|
},
|
|
9154
9492
|
{
|
|
9155
9493
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9156
|
-
"line":
|
|
9494
|
+
"line": 763,
|
|
9157
9495
|
"description": "This event is triggered when the router enters the route. It is\nnot executed when the model for the route changes.\n\n```app/routes/application.js\nimport { on } from '@ember/object/evented';\nimport Route from '@ember/routing/route';\n\nexport default Route.extend({\n collectAnalytics: on('activate', function(){\n collectAnalytics();\n })\n});\n```",
|
|
9158
9496
|
"itemtype": "event",
|
|
9159
9497
|
"name": "activate",
|
|
@@ -9165,7 +9503,7 @@
|
|
|
9165
9503
|
},
|
|
9166
9504
|
{
|
|
9167
9505
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9168
|
-
"line":
|
|
9506
|
+
"line": 783,
|
|
9169
9507
|
"description": "This event is triggered when the router completely exits this\nroute. It is not executed when the model for the route changes.\n\n```app/routes/index.js\nimport { on } from '@ember/object/evented';\nimport Route from '@ember/routing/route';\n\nexport default Route.extend({\n trackPageLeaveAnalytics: on('deactivate', function(){\n trackPageLeaveAnalytics();\n })\n});\n```",
|
|
9170
9508
|
"itemtype": "event",
|
|
9171
9509
|
"name": "deactivate",
|
|
@@ -9177,7 +9515,7 @@
|
|
|
9177
9515
|
},
|
|
9178
9516
|
{
|
|
9179
9517
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9180
|
-
"line":
|
|
9518
|
+
"line": 803,
|
|
9181
9519
|
"description": "This hook is executed when the router completely exits this route. It is\nnot executed when the model for the route changes.",
|
|
9182
9520
|
"itemtype": "method",
|
|
9183
9521
|
"name": "deactivate",
|
|
@@ -9196,7 +9534,7 @@
|
|
|
9196
9534
|
},
|
|
9197
9535
|
{
|
|
9198
9536
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9199
|
-
"line":
|
|
9537
|
+
"line": 814,
|
|
9200
9538
|
"description": "This hook is executed when the router enters the route. It is not executed\nwhen the model for the route changes.",
|
|
9201
9539
|
"itemtype": "method",
|
|
9202
9540
|
"name": "activate",
|
|
@@ -9215,7 +9553,7 @@
|
|
|
9215
9553
|
},
|
|
9216
9554
|
{
|
|
9217
9555
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9218
|
-
"line":
|
|
9556
|
+
"line": 825,
|
|
9219
9557
|
"description": "Transition the application into another route. The route may\nbe either a single route or route path:\n\n```javascript\nthis.transitionTo('blogPosts');\nthis.transitionTo('blogPosts.recentEntries');\n```\n\nOptionally supply a model for the route in question. The model\nwill be serialized into the URL using the `serialize` hook of\nthe route:\n\n```javascript\nthis.transitionTo('blogPost', aPost);\n```\n\nIf a literal is passed (such as a number or a string), it will\nbe treated as an identifier instead. In this case, the `model`\nhook of the route will be triggered:\n\n```javascript\nthis.transitionTo('blogPost', 1);\n```\n\nMultiple models will be applied last to first recursively up the\nroute tree.\n\n```app/routes.js\n// ...\n\nRouter.map(function() {\n this.route('blogPost', { path:':blogPostId' }, function() {\n this.route('blogComment', { path: ':blogCommentId' });\n });\n});\n\nexport default Router;\n```\n\n```javascript\nthis.transitionTo('blogComment', aPost, aComment);\nthis.transitionTo('blogComment', 1, 13);\n```\n\nIt is also possible to pass a URL (a string that starts with a\n`/`).\n\n```javascript\nthis.transitionTo('/');\nthis.transitionTo('/blog/post/1/comment/13');\nthis.transitionTo('/blog/posts?sort=title');\n```\n\nAn options hash with a `queryParams` property may be provided as\nthe final argument to add query parameters to the destination URL.\n\n```javascript\nthis.transitionTo('blogPost', 1, {\n queryParams: { showComments: 'true' }\n});\n\n// if you just want to transition the query parameters without changing the route\nthis.transitionTo({ queryParams: { sort: 'date' } });\n```\n\nSee also [replaceWith](#method_replaceWith).\n\nSimple Transition Example\n\n```app/routes.js\n// ...\n\nRouter.map(function() {\n this.route('index');\n this.route('secret');\n this.route('fourOhFour', { path: '*:' });\n});\n\nexport default Router;\n```\n\n```app/routes/index.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class IndexRoute extends Route {\n @action\n moveToSecret(context) {\n if (authorized()) {\n this.transitionTo('secret', context);\n } else {\n this.transitionTo('fourOhFour');\n }\n }\n}\n```\n\nTransition to a nested route\n\n```app/router.js\n// ...\n\nRouter.map(function() {\n this.route('articles', { path: '/articles' }, function() {\n this.route('new');\n });\n});\n\nexport default Router;\n```\n\n```app/routes/index.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class IndexRoute extends Route {\n @action\n transitionToNewArticle() {\n this.transitionTo('articles.new');\n }\n}\n```\n\nMultiple Models Example\n\n```app/router.js\n// ...\n\nRouter.map(function() {\n this.route('index');\n\n this.route('breakfast', { path: ':breakfastId' }, function() {\n this.route('cereal', { path: ':cerealId' });\n });\n});\n\nexport default Router;\n```\n\n```app/routes/index.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class IndexRoute extends Route {\n @action\n moveToChocolateCereal() {\n let cereal = { cerealId: 'ChocolateYumminess' };\n let breakfast = { breakfastId: 'CerealAndMilk' };\n\n this.transitionTo('breakfast.cereal', breakfast, cereal);\n }\n}\n```\n\nNested Route with Query String Example\n\n```app/routes.js\n// ...\n\nRouter.map(function() {\n this.route('fruits', function() {\n this.route('apples');\n });\n});\n\nexport default Router;\n```\n\n```app/routes/index.js\nimport Route from '@ember/routing/route';\n\nexport default class IndexRoute extends Route {\n @action\n transitionToApples() {\n this.transitionTo('fruits.apples', { queryParams: { color: 'red' } });\n }\n}\n```",
|
|
9220
9558
|
"itemtype": "method",
|
|
9221
9559
|
"name": "transitionTo",
|
|
@@ -9253,7 +9591,7 @@
|
|
|
9253
9591
|
},
|
|
9254
9592
|
{
|
|
9255
9593
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9256
|
-
"line":
|
|
9594
|
+
"line": 1023,
|
|
9257
9595
|
"description": "Perform a synchronous transition into another route without attempting\nto resolve promises, update the URL, or abort any currently active\nasynchronous transitions (i.e. regular transitions caused by\n`transitionTo` or URL changes).\n\nThis method is handy for performing intermediate transitions on the\nway to a final destination route, and is called internally by the\ndefault implementations of the `error` and `loading` handlers.",
|
|
9258
9596
|
"itemtype": "method",
|
|
9259
9597
|
"name": "intermediateTransitionTo",
|
|
@@ -9277,7 +9615,7 @@
|
|
|
9277
9615
|
},
|
|
9278
9616
|
{
|
|
9279
9617
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9280
|
-
"line":
|
|
9618
|
+
"line": 1045,
|
|
9281
9619
|
"description": "Refresh the model on this route and any child routes, firing the\n`beforeModel`, `model`, and `afterModel` hooks in a similar fashion\nto how routes are entered when transitioning in from other route.\nThe current route params (e.g. `article_id`) will be passed in\nto the respective model hooks, and if a different model is returned,\n`setupController` and associated route hooks will re-fire as well.\n\nAn example usage of this method is re-querying the server for the\nlatest information using the same parameters as when the route\nwas first entered.\n\nNote that this will cause `model` hooks to fire even on routes\nthat were provided a model object when the route was initially\nentered.",
|
|
9282
9620
|
"itemtype": "method",
|
|
9283
9621
|
"name": "refresh",
|
|
@@ -9293,7 +9631,7 @@
|
|
|
9293
9631
|
},
|
|
9294
9632
|
{
|
|
9295
9633
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9296
|
-
"line":
|
|
9634
|
+
"line": 1071,
|
|
9297
9635
|
"description": "Transition into another route while replacing the current URL, if possible.\nThis will replace the current history entry instead of adding a new one.\nBeside that, it is identical to `transitionTo` in all other respects. See\n'transitionTo' for additional information regarding multiple models.\n\nExample\n\n```app/router.js\n// ...\n\nRouter.map(function() {\n this.route('index');\n this.route('secret');\n});\n\nexport default Router;\n```\n\n```app/routes/secret.js\nimport Route from '@ember/routing/route';\n\nexport default class SecretRoute Route {\n afterModel() {\n if (!authorized()){\n this.replaceWith('index');\n }\n }\n}\n```",
|
|
9298
9636
|
"itemtype": "method",
|
|
9299
9637
|
"name": "replaceWith",
|
|
@@ -9329,7 +9667,7 @@
|
|
|
9329
9667
|
},
|
|
9330
9668
|
{
|
|
9331
9669
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9332
|
-
"line":
|
|
9670
|
+
"line": 1119,
|
|
9333
9671
|
"description": "This hook is the entry point for router.js",
|
|
9334
9672
|
"access": "private",
|
|
9335
9673
|
"tagname": "",
|
|
@@ -9340,7 +9678,7 @@
|
|
|
9340
9678
|
},
|
|
9341
9679
|
{
|
|
9342
9680
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9343
|
-
"line":
|
|
9681
|
+
"line": 1199,
|
|
9344
9682
|
"description": "This hook is the first of the route entry validation hooks\ncalled when an attempt is made to transition into a route\nor one of its children. It is called before `model` and\n`afterModel`, and is appropriate for cases when:\n\n1) A decision can be made to redirect elsewhere without\n needing to resolve the model first.\n2) Any async operations need to occur first before the\n model is attempted to be resolved.\n\nThis hook is provided the current `transition` attempt\nas a parameter, which can be used to `.abort()` the transition,\nsave it for a later `.retry()`, or retrieve values set\non it from a previous hook. You can also just call\n`this.transitionTo` to another route to implicitly\nabort the `transition`.\n\nYou can return a promise from this hook to pause the\ntransition until the promise resolves (or rejects). This could\nbe useful, for instance, for retrieving async code from\nthe server that is required to enter a route.",
|
|
9345
9683
|
"itemtype": "method",
|
|
9346
9684
|
"name": "beforeModel",
|
|
@@ -9363,7 +9701,7 @@
|
|
|
9363
9701
|
},
|
|
9364
9702
|
{
|
|
9365
9703
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9366
|
-
"line":
|
|
9704
|
+
"line": 1233,
|
|
9367
9705
|
"description": "This hook is called after this route's model has resolved.\nIt follows identical async/promise semantics to `beforeModel`\nbut is provided the route's resolved model in addition to\nthe `transition`, and is therefore suited to performing\nlogic that can only take place after the model has already\nresolved.\n\n```app/routes/posts.js\nimport Route from '@ember/routing/route';\n\nexport default class PostsRoute extends Route {\n afterModel(posts, transition) {\n if (posts.get('length') === 1) {\n this.transitionTo('post.show', posts.get('firstObject'));\n }\n }\n}\n```\n\nRefer to documentation for `beforeModel` for a description\nof transition-pausing semantics when a promise is returned\nfrom this hook.",
|
|
9368
9706
|
"itemtype": "method",
|
|
9369
9707
|
"name": "afterModel",
|
|
@@ -9391,7 +9729,7 @@
|
|
|
9391
9729
|
},
|
|
9392
9730
|
{
|
|
9393
9731
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9394
|
-
"line":
|
|
9732
|
+
"line": 1270,
|
|
9395
9733
|
"description": "A hook you can implement to optionally redirect to another route.\n\nCalling `this.transitionTo` from inside of the `redirect` hook will\nabort the current transition (into the route that has implemented `redirect`).\n\n`redirect` and `afterModel` behave very similarly and are\ncalled almost at the same time, but they have an important\ndistinction when calling `this.transitionTo` to a child route\nof the current route. From `afterModel`, this new transition\ninvalidates the current transition, causing `beforeModel`,\n`model`, and `afterModel` hooks to be called again. But the\nsame transition started from `redirect` does _not_ invalidate\nthe current transition. In other words, by the time the `redirect`\nhook has been called, both the resolved model and the attempted\nentry into this route are considered fully validated.",
|
|
9396
9734
|
"itemtype": "method",
|
|
9397
9735
|
"name": "redirect",
|
|
@@ -9415,7 +9753,7 @@
|
|
|
9415
9753
|
},
|
|
9416
9754
|
{
|
|
9417
9755
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9418
|
-
"line":
|
|
9756
|
+
"line": 1295,
|
|
9419
9757
|
"description": "Called when the context is changed by router.js.",
|
|
9420
9758
|
"access": "private",
|
|
9421
9759
|
"tagname": "",
|
|
@@ -9426,7 +9764,7 @@
|
|
|
9426
9764
|
},
|
|
9427
9765
|
{
|
|
9428
9766
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9429
|
-
"line":
|
|
9767
|
+
"line": 1305,
|
|
9430
9768
|
"description": "A hook you can implement to convert the URL into the model for\nthis route.\n\n```app/router.js\n// ...\n\nRouter.map(function() {\n this.route('post', { path: '/posts/:post_id' });\n});\n\nexport default Router;\n```\n\nThe model for the `post` route is `store.findRecord('post', params.post_id)`.\n\nBy default, if your route has a dynamic segment ending in `_id`:\n\n* The model class is determined from the segment (`post_id`'s\n class is `App.Post`)\n* The find method is called on the model class with the value of\n the dynamic segment.\n\nNote that for routes with dynamic segments, this hook is not always\nexecuted. If the route is entered through a transition (e.g. when\nusing the `link-to` Handlebars helper or the `transitionTo` method\nof routes), and a model context is already provided this hook\nis not called.\n\nA model context does not include a primitive string or number,\nwhich does cause the model hook to be called.\n\nRoutes without dynamic segments will always execute the model hook.\n\n```javascript\n// no dynamic segment, model hook always called\nthis.transitionTo('posts');\n\n// model passed in, so model hook not called\nthePost = store.findRecord('post', 1);\nthis.transitionTo('post', thePost);\n\n// integer passed in, model hook is called\nthis.transitionTo('post', 1);\n\n// model id passed in, model hook is called\n// useful for forcing the hook to execute\nthePost = store.findRecord('post', 1);\nthis.transitionTo('post', thePost.id);\n```\n\nThis hook follows the asynchronous/promise semantics\ndescribed in the documentation for `beforeModel`. In particular,\nif a promise returned from `model` fails, the error will be\nhandled by the `error` hook on `Route`.\n\nExample\n\n```app/routes/post.js\nimport Route from '@ember/routing/route';\n\nexport default class PostRoute extends Route {\n model(params) {\n return this.store.findRecord('post', params.post_id);\n }\n}\n```",
|
|
9431
9769
|
"itemtype": "method",
|
|
9432
9770
|
"name": "model",
|
|
@@ -9454,7 +9792,7 @@
|
|
|
9454
9792
|
},
|
|
9455
9793
|
{
|
|
9456
9794
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9457
|
-
"line":
|
|
9795
|
+
"line": 1415,
|
|
9458
9796
|
"access": "private",
|
|
9459
9797
|
"tagname": "",
|
|
9460
9798
|
"itemtype": "method",
|
|
@@ -9480,7 +9818,7 @@
|
|
|
9480
9818
|
},
|
|
9481
9819
|
{
|
|
9482
9820
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9483
|
-
"line":
|
|
9821
|
+
"line": 1428,
|
|
9484
9822
|
"itemtype": "method",
|
|
9485
9823
|
"name": "findModel",
|
|
9486
9824
|
"params": [
|
|
@@ -9502,7 +9840,7 @@
|
|
|
9502
9840
|
},
|
|
9503
9841
|
{
|
|
9504
9842
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9505
|
-
"line":
|
|
9843
|
+
"line": 1439,
|
|
9506
9844
|
"description": "A hook you can use to setup the controller for the current route.\n\nThis method is called with the controller for the current route and the\nmodel supplied by the `model` hook.\n\nBy default, the `setupController` hook sets the `model` property of\nthe controller to the specified `model` when it is not `undefined`.\n\nIf you implement the `setupController` hook in your Route, it will\nprevent this default behavior. If you want to preserve that behavior\nwhen implementing your `setupController` function, make sure to call\n`super`:\n\n```app/routes/photos.js\nimport Route from '@ember/routing/route';\n\nexport default class PhotosRoute extends Route {\n model() {\n return this.store.findAll('photo');\n }\n\n setupController(controller, model) {\n super.setupController(controller, model);\n\n this.controllerFor('application').set('showingPhotos', true);\n }\n}\n```\n\nThe provided controller will be one resolved based on the name\nof this route.\n\nIf no explicit controller is defined, Ember will automatically create one.\n\nAs an example, consider the router:\n\n```app/router.js\n// ...\n\nRouter.map(function() {\n this.route('post', { path: '/posts/:post_id' });\n});\n\nexport default Router;\n```\n\nIf you have defined a file for the post controller,\nthe framework will use it.\nIf it is not defined, a basic `Controller` instance would be used.",
|
|
9507
9845
|
"example": [
|
|
9508
9846
|
" Behavior of a basic Controller\n\n```app/routes/post.js\nimport Route from '@ember/routing/route';\n\nexport default class PostRoute extends Route {\n setupController(controller, model) {\n controller.set('model', model);\n }\n});\n```"
|
|
@@ -9535,7 +9873,7 @@
|
|
|
9535
9873
|
},
|
|
9536
9874
|
{
|
|
9537
9875
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9538
|
-
"line":
|
|
9876
|
+
"line": 1515,
|
|
9539
9877
|
"description": "Returns the controller of the current route, or a parent (or any ancestor)\nroute in a route hierarchy.\n\nThe controller instance must already have been created, either through entering the\nassociated route or using `generateController`.\n\n```app/routes/post.js\nimport Route from '@ember/routing/route';\n\nexport default class PostRoute extends Route {\n setupController(controller, post) {\n super.setupController(controller, post);\n\n this.controllerFor('posts').set('currentPost', post);\n }\n}\n```",
|
|
9540
9878
|
"itemtype": "method",
|
|
9541
9879
|
"name": "controllerFor",
|
|
@@ -9558,7 +9896,7 @@
|
|
|
9558
9896
|
},
|
|
9559
9897
|
{
|
|
9560
9898
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9561
|
-
"line":
|
|
9899
|
+
"line": 1562,
|
|
9562
9900
|
"description": "Generates a controller for a route.\n\nExample\n\n```app/routes/post.js\nimport Route from '@ember/routing/route';\n\nexport default class Post extends Route {\n setupController(controller, post) {\n super.setupController(controller, post);\n\n this.generateController('posts');\n }\n}\n```",
|
|
9563
9901
|
"itemtype": "method",
|
|
9564
9902
|
"name": "generateController",
|
|
@@ -9576,7 +9914,7 @@
|
|
|
9576
9914
|
},
|
|
9577
9915
|
{
|
|
9578
9916
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9579
|
-
"line":
|
|
9917
|
+
"line": 1590,
|
|
9580
9918
|
"description": "Returns the resolved model of a parent (or any ancestor) route\nin a route hierarchy. During a transition, all routes\nmust resolve a model object, and if a route\nneeds access to a parent route's model in order to\nresolve a model (or just reuse the model from a parent),\nit can call `this.modelFor(theNameOfParentRoute)` to\nretrieve it. If the ancestor route's model was a promise,\nits resolved result is returned.\n\nExample\n\n```app/router.js\n// ...\n\nRouter.map(function() {\n this.route('post', { path: '/posts/:post_id' }, function() {\n this.route('comments');\n });\n});\n\nexport default Router;\n```\n\n```app/routes/post/comments.js\nimport Route from '@ember/routing/route';\n\nexport default class PostCommentsRoute extends Route {\n model() {\n let post = this.modelFor('post');\n\n return post.comments;\n }\n}\n```",
|
|
9581
9919
|
"itemtype": "method",
|
|
9582
9920
|
"name": "modelFor",
|
|
@@ -9599,7 +9937,7 @@
|
|
|
9599
9937
|
},
|
|
9600
9938
|
{
|
|
9601
9939
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9602
|
-
"line":
|
|
9940
|
+
"line": 1662,
|
|
9603
9941
|
"description": "`this[RENDER]` is used to render a template into a region of another template\n(indicated by an `{{outlet}}`).",
|
|
9604
9942
|
"itemtype": "method",
|
|
9605
9943
|
"name": "this[RENDER]",
|
|
@@ -9649,7 +9987,7 @@
|
|
|
9649
9987
|
},
|
|
9650
9988
|
{
|
|
9651
9989
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9652
|
-
"line":
|
|
9990
|
+
"line": 1689,
|
|
9653
9991
|
"access": "private",
|
|
9654
9992
|
"tagname": "",
|
|
9655
9993
|
"itemtype": "method",
|
|
@@ -9659,7 +9997,7 @@
|
|
|
9659
9997
|
},
|
|
9660
9998
|
{
|
|
9661
9999
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9662
|
-
"line":
|
|
10000
|
+
"line": 1702,
|
|
9663
10001
|
"description": "Allows you to produce custom metadata for the route.\nThe return value of this method will be attached to\nits corresponding RouteInfoWithAttributes object.\n\nExample\n\n```app/routes/posts/index.js\nimport Route from '@ember/routing/route';\n\nexport default class PostsIndexRoute extends Route {\n buildRouteInfoMetadata() {\n return { title: 'Posts Page' }\n }\n}\n```\n\n```app/routes/application.js\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ApplicationRoute extends Route {\n @service router\n\n constructor() {\n super(...arguments);\n\n this.router.on('routeDidChange', transition => {\n document.title = transition.to.metadata.title;\n // would update document's title to \"Posts Page\"\n });\n }\n}\n```",
|
|
9664
10002
|
"itemtype": "method",
|
|
9665
10003
|
"name": "buildRouteInfoMetadata",
|
|
@@ -9674,7 +10012,7 @@
|
|
|
9674
10012
|
},
|
|
9675
10013
|
{
|
|
9676
10014
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9677
|
-
"line":
|
|
10015
|
+
"line": 1752,
|
|
9678
10016
|
"description": "Store property provides a hook for data persistence libraries to inject themselves.\n\nBy default, this store property provides the exact same functionality previously\nin the model hook.\n\nCurrently, the required interface is:\n\n`store.find(modelName, findArguments)`",
|
|
9679
10017
|
"itemtype": "property",
|
|
9680
10018
|
"name": "store",
|
|
@@ -9686,7 +10024,7 @@
|
|
|
9686
10024
|
},
|
|
9687
10025
|
{
|
|
9688
10026
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9689
|
-
"line":
|
|
10027
|
+
"line": 1818,
|
|
9690
10028
|
"access": "private",
|
|
9691
10029
|
"tagname": "",
|
|
9692
10030
|
"itemtype": "property",
|
|
@@ -9696,7 +10034,7 @@
|
|
|
9696
10034
|
},
|
|
9697
10035
|
{
|
|
9698
10036
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9699
|
-
"line":
|
|
10037
|
+
"line": 1950,
|
|
9700
10038
|
"description": "Sends an action to the router, which will delegate it to the currently\nactive route hierarchy per the bubbling rules explained under `actions`.\n\nExample\n\n```app/router.js\n// ...\n\nRouter.map(function() {\n this.route('index');\n});\n\nexport default Router;\n```\n\n```app/routes/application.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class ApplicationRoute extends Route {\n @action\n track(arg) {\n console.log(arg, 'was clicked');\n }\n}\n```\n\n```app/routes/index.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class IndexRoute extends Route {\n @action\n trackIfDebug(arg) {\n if (debug) {\n this.send('track', arg);\n }\n }\n}\n```",
|
|
9701
10039
|
"itemtype": "method",
|
|
9702
10040
|
"name": "send",
|
|
@@ -9720,7 +10058,7 @@
|
|
|
9720
10058
|
},
|
|
9721
10059
|
{
|
|
9722
10060
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9723
|
-
"line":
|
|
10061
|
+
"line": 2282,
|
|
9724
10062
|
"description": "A hook you can implement to convert the route's model into parameters\nfor the URL.\n\n```app/router.js\n// ...\n\nRouter.map(function() {\n this.route('post', { path: '/posts/:post_id' });\n});\n\n```\n\n```app/routes/post.js\nimport Route from '@ember/routing/route';\n\nexport default class PostRoute extends Route {\n model({ post_id }) {\n // the server returns `{ id: 12 }`\n return fetch(`/posts/${post_id}`;\n }\n\n serialize(model) {\n // this will make the URL `/posts/12`\n return { post_id: model.id };\n }\n}\n```\n\nThe default `serialize` method will insert the model's `id` into the\nroute's dynamic segment (in this case, `:post_id`) if the segment contains '_id'.\nIf the route has multiple dynamic segments or does not contain '_id', `serialize`\nwill return `getProperties(model, params)`\n\nThis method is called when `transitionTo` is called with a context\nin order to populate the URL.",
|
|
9725
10063
|
"itemtype": "method",
|
|
9726
10064
|
"name": "serialize",
|
|
@@ -9748,7 +10086,7 @@
|
|
|
9748
10086
|
},
|
|
9749
10087
|
{
|
|
9750
10088
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9751
|
-
"line":
|
|
10089
|
+
"line": 2352,
|
|
9752
10090
|
"description": "The controller associated with this route.\n\nExample\n\n```app/routes/form.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class FormRoute extends Route {\n @action\n willTransition(transition) {\n if (this.controller.get('userHasEnteredData') &&\n !confirm('Are you sure you want to abandon progress?')) {\n transition.abort();\n } else {\n // Bubble the `willTransition` action so that\n // parent routes can decide whether or not to abort.\n return true;\n }\n }\n}\n```",
|
|
9753
10091
|
"itemtype": "property",
|
|
9754
10092
|
"name": "controller",
|
|
@@ -9761,7 +10099,7 @@
|
|
|
9761
10099
|
},
|
|
9762
10100
|
{
|
|
9763
10101
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9764
|
-
"line":
|
|
10102
|
+
"line": 2383,
|
|
9765
10103
|
"description": "This action is called when one or more query params have changed. Bubbles.",
|
|
9766
10104
|
"itemtype": "method",
|
|
9767
10105
|
"name": "queryParamsDidChange",
|
|
@@ -9793,7 +10131,7 @@
|
|
|
9793
10131
|
},
|
|
9794
10132
|
{
|
|
9795
10133
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
9796
|
-
"line":
|
|
10134
|
+
"line": 143,
|
|
9797
10135
|
"description": "Represents the URL of the root of the application, often '/'. This prefix is\n assumed on all routes defined on this router.",
|
|
9798
10136
|
"itemtype": "property",
|
|
9799
10137
|
"name": "rootURL",
|
|
@@ -9805,7 +10143,7 @@
|
|
|
9805
10143
|
},
|
|
9806
10144
|
{
|
|
9807
10145
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
9808
|
-
"line":
|
|
10146
|
+
"line": 154,
|
|
9809
10147
|
"description": "The `location` property determines the type of URL's that your\n application will use.\n\n The following location types are currently available:\n\n * `history` - use the browser's history API to make the URLs look just like any standard URL\n * `hash` - use `#` to separate the server part of the URL from the Ember part: `/blog/#/posts/new`\n * `none` - do not store the Ember URL in the actual browser URL (mainly used for testing)\n * `auto` - use the best option based on browser capabilities: `history` if possible, then `hash` if possible, otherwise `none`\n\n This value is defaulted to `auto` by the `locationType` setting of `/config/environment.js`",
|
|
9810
10148
|
"itemtype": "property",
|
|
9811
10149
|
"name": "location",
|
|
@@ -9820,7 +10158,7 @@
|
|
|
9820
10158
|
},
|
|
9821
10159
|
{
|
|
9822
10160
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
9823
|
-
"line":
|
|
10161
|
+
"line": 212,
|
|
9824
10162
|
"description": "The `Router.map` function allows you to define mappings from URLs to routes\nin your application. These mappings are defined within the\nsupplied callback function using `this.route`.\n\nThe first parameter is the name of the route which is used by default as the\npath name as well.\n\nThe second parameter is the optional options hash. Available options are:\n\n * `path`: allows you to provide your own path as well as mark dynamic\n segments.\n * `resetNamespace`: false by default; when nesting routes, ember will\n combine the route names to form the fully-qualified route name, which is\n used with `{{link-to}}` or manually transitioning to routes. Setting\n `resetNamespace: true` will cause the route not to inherit from its\n parent route's names. This is handy for preventing extremely long route names.\n Keep in mind that the actual URL path behavior is still retained.\n\nThe third parameter is a function, which can be used to nest routes.\nNested routes, by default, will have the parent route tree's route name and\npath prepended to it's own.\n\n```app/router.js\nRouter.map(function(){\n this.route('post', { path: '/post/:post_id' }, function() {\n this.route('edit');\n this.route('comments', { resetNamespace: true }, function() {\n this.route('new');\n });\n });\n});\n```",
|
|
9825
10163
|
"itemtype": "method",
|
|
9826
10164
|
"name": "map",
|
|
@@ -9837,7 +10175,7 @@
|
|
|
9837
10175
|
},
|
|
9838
10176
|
{
|
|
9839
10177
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
9840
|
-
"line":
|
|
10178
|
+
"line": 539,
|
|
9841
10179
|
"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.",
|
|
9842
10180
|
"itemtype": "method",
|
|
9843
10181
|
"name": "startRouting",
|
|
@@ -9848,7 +10186,7 @@
|
|
|
9848
10186
|
},
|
|
9849
10187
|
{
|
|
9850
10188
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
9851
|
-
"line":
|
|
10189
|
+
"line": 662,
|
|
9852
10190
|
"description": "Transition the application into another route. The route may\nbe either a single route or route path:\n\nSee [transitionTo](/ember/release/classes/Route/methods/transitionTo?anchor=transitionTo) for more info.",
|
|
9853
10191
|
"itemtype": "method",
|
|
9854
10192
|
"name": "transitionTo",
|
|
@@ -9881,7 +10219,7 @@
|
|
|
9881
10219
|
},
|
|
9882
10220
|
{
|
|
9883
10221
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
9884
|
-
"line":
|
|
10222
|
+
"line": 719,
|
|
9885
10223
|
"description": "Determines if the supplied route is currently active.",
|
|
9886
10224
|
"itemtype": "method",
|
|
9887
10225
|
"name": "isActive",
|
|
@@ -9902,7 +10240,7 @@
|
|
|
9902
10240
|
},
|
|
9903
10241
|
{
|
|
9904
10242
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
9905
|
-
"line":
|
|
10243
|
+
"line": 731,
|
|
9906
10244
|
"description": "An alternative form of `isActive` that doesn't require\nmanual concatenation of the arguments into a single\narray.",
|
|
9907
10245
|
"itemtype": "method",
|
|
9908
10246
|
"name": "isActiveIntent",
|
|
@@ -9932,7 +10270,7 @@
|
|
|
9932
10270
|
},
|
|
9933
10271
|
{
|
|
9934
10272
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
9935
|
-
"line":
|
|
10273
|
+
"line": 753,
|
|
9936
10274
|
"description": "Does this router instance have the given route.",
|
|
9937
10275
|
"itemtype": "method",
|
|
9938
10276
|
"name": "hasRoute",
|
|
@@ -9947,7 +10285,7 @@
|
|
|
9947
10285
|
},
|
|
9948
10286
|
{
|
|
9949
10287
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
9950
|
-
"line":
|
|
10288
|
+
"line": 764,
|
|
9951
10289
|
"description": "Resets the state of the router by clearing the current route\nhandlers and deactivating them.",
|
|
9952
10290
|
"access": "private",
|
|
9953
10291
|
"tagname": "",
|
|
@@ -9958,7 +10296,7 @@
|
|
|
9958
10296
|
},
|
|
9959
10297
|
{
|
|
9960
10298
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
9961
|
-
"line":
|
|
10299
|
+
"line": 908,
|
|
9962
10300
|
"description": "Serializes the given query params according to their QP meta information.",
|
|
9963
10301
|
"access": "private",
|
|
9964
10302
|
"tagname": "",
|
|
@@ -9985,7 +10323,7 @@
|
|
|
9985
10323
|
},
|
|
9986
10324
|
{
|
|
9987
10325
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
9988
|
-
"line":
|
|
10326
|
+
"line": 938,
|
|
9989
10327
|
"description": "Serializes the value of a query parameter based on a type",
|
|
9990
10328
|
"access": "private",
|
|
9991
10329
|
"tagname": "",
|
|
@@ -10008,7 +10346,7 @@
|
|
|
10008
10346
|
},
|
|
10009
10347
|
{
|
|
10010
10348
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10011
|
-
"line":
|
|
10349
|
+
"line": 956,
|
|
10012
10350
|
"description": "Deserializes the given query params according to their QP meta information.",
|
|
10013
10351
|
"access": "private",
|
|
10014
10352
|
"tagname": "",
|
|
@@ -10035,7 +10373,7 @@
|
|
|
10035
10373
|
},
|
|
10036
10374
|
{
|
|
10037
10375
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10038
|
-
"line":
|
|
10376
|
+
"line": 981,
|
|
10039
10377
|
"description": "Deserializes the value of a query parameter based on a default type",
|
|
10040
10378
|
"access": "private",
|
|
10041
10379
|
"tagname": "",
|
|
@@ -10058,7 +10396,7 @@
|
|
|
10058
10396
|
},
|
|
10059
10397
|
{
|
|
10060
10398
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10061
|
-
"line":
|
|
10399
|
+
"line": 1002,
|
|
10062
10400
|
"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.",
|
|
10063
10401
|
"access": "private",
|
|
10064
10402
|
"tagname": "",
|
|
@@ -10085,7 +10423,7 @@
|
|
|
10085
10423
|
},
|
|
10086
10424
|
{
|
|
10087
10425
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10088
|
-
"line":
|
|
10426
|
+
"line": 1088,
|
|
10089
10427
|
"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.",
|
|
10090
10428
|
"access": "private",
|
|
10091
10429
|
"tagname": "",
|
|
@@ -10122,7 +10460,7 @@
|
|
|
10122
10460
|
},
|
|
10123
10461
|
{
|
|
10124
10462
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10125
|
-
"line":
|
|
10463
|
+
"line": 1115,
|
|
10126
10464
|
"description": "Returns the meta information for the query params of a given route. This\nwill be overridden to allow support for lazy routes.",
|
|
10127
10465
|
"access": "private",
|
|
10128
10466
|
"tagname": "",
|
|
@@ -10144,7 +10482,7 @@
|
|
|
10144
10482
|
},
|
|
10145
10483
|
{
|
|
10146
10484
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10147
|
-
"line":
|
|
10485
|
+
"line": 1129,
|
|
10148
10486
|
"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.",
|
|
10149
10487
|
"access": "private",
|
|
10150
10488
|
"tagname": "",
|
|
@@ -10166,7 +10504,7 @@
|
|
|
10166
10504
|
},
|
|
10167
10505
|
{
|
|
10168
10506
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10169
|
-
"line":
|
|
10507
|
+
"line": 1194,
|
|
10170
10508
|
"description": "Maps all query param keys to their fully scoped property name of the form\n`controllerName:propName`.",
|
|
10171
10509
|
"access": "private",
|
|
10172
10510
|
"tagname": "",
|
|
@@ -10198,7 +10536,7 @@
|
|
|
10198
10536
|
},
|
|
10199
10537
|
{
|
|
10200
10538
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10201
|
-
"line":
|
|
10539
|
+
"line": 1236,
|
|
10202
10540
|
"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.",
|
|
10203
10541
|
"access": "private",
|
|
10204
10542
|
"tagname": "",
|
|
@@ -10225,7 +10563,7 @@
|
|
|
10225
10563
|
},
|
|
10226
10564
|
{
|
|
10227
10565
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10228
|
-
"line":
|
|
10566
|
+
"line": 1400,
|
|
10229
10567
|
"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```",
|
|
10230
10568
|
"itemtype": "method",
|
|
10231
10569
|
"name": "didTransition",
|
|
@@ -10237,7 +10575,7 @@
|
|
|
10237
10575
|
},
|
|
10238
10576
|
{
|
|
10239
10577
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10240
|
-
"line":
|
|
10578
|
+
"line": 1437,
|
|
10241
10579
|
"description": "Handles notifying any listeners of an impending URL\nchange.\n\nTriggers the router level `willTransition` hook.",
|
|
10242
10580
|
"itemtype": "method",
|
|
10243
10581
|
"name": "willTransition",
|
|
@@ -10249,7 +10587,7 @@
|
|
|
10249
10587
|
},
|
|
10250
10588
|
{
|
|
10251
10589
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10252
|
-
"line":
|
|
10590
|
+
"line": 1450,
|
|
10253
10591
|
"description": "Represents the current URL.",
|
|
10254
10592
|
"itemtype": "property",
|
|
10255
10593
|
"name": "url",
|
|
@@ -10261,7 +10599,7 @@
|
|
|
10261
10599
|
},
|
|
10262
10600
|
{
|
|
10263
10601
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10264
|
-
"line":
|
|
10602
|
+
"line": 1606,
|
|
10265
10603
|
"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`.",
|
|
10266
10604
|
"access": "private",
|
|
10267
10605
|
"tagname": "",
|
|
@@ -10286,7 +10624,7 @@
|
|
|
10286
10624
|
},
|
|
10287
10625
|
{
|
|
10288
10626
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10289
|
-
"line":
|
|
10627
|
+
"line": 1627,
|
|
10290
10628
|
"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.",
|
|
10291
10629
|
"access": "private",
|
|
10292
10630
|
"tagname": "",
|
|
@@ -10311,7 +10649,7 @@
|
|
|
10311
10649
|
},
|
|
10312
10650
|
{
|
|
10313
10651
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10314
|
-
"line":
|
|
10652
|
+
"line": 1649,
|
|
10315
10653
|
"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.",
|
|
10316
10654
|
"access": "private",
|
|
10317
10655
|
"tagname": "",
|
|
@@ -11298,7 +11636,7 @@
|
|
|
11298
11636
|
},
|
|
11299
11637
|
{
|
|
11300
11638
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11301
|
-
"line":
|
|
11639
|
+
"line": 1117,
|
|
11302
11640
|
"description": "Invokes the named method on every object in the receiver that\nimplements it. This method corresponds to the implementation in\nPrototype 1.6.\n\n```javascript\nclass Person {\n name = null;\n\n constructor(name) {\n this.name = name;\n }\n\n greet(prefix='Hello') {\n return `${prefix} ${this.name}`;\n }\n}\n\nlet people = [new Person('Joe'), new Person('Matt')];\n\npeople.invoke('greet'); // ['Hello Joe', 'Hello Matt']\npeople.invoke('greet', 'Bonjour'); // ['Bonjour Joe', 'Bonjour Matt']\n```",
|
|
11303
11641
|
"itemtype": "method",
|
|
11304
11642
|
"name": "invoke",
|
|
@@ -11325,7 +11663,7 @@
|
|
|
11325
11663
|
},
|
|
11326
11664
|
{
|
|
11327
11665
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11328
|
-
"line":
|
|
11666
|
+
"line": 1155,
|
|
11329
11667
|
"description": "Simply converts the object into a genuine array. The order is not\nguaranteed. Corresponds to the method implemented by Prototype.",
|
|
11330
11668
|
"itemtype": "method",
|
|
11331
11669
|
"name": "toArray",
|
|
@@ -11340,7 +11678,7 @@
|
|
|
11340
11678
|
},
|
|
11341
11679
|
{
|
|
11342
11680
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11343
|
-
"line":
|
|
11681
|
+
"line": 1167,
|
|
11344
11682
|
"description": "Returns a copy of the array with all `null` and `undefined` elements removed.\n\n```javascript\nlet arr = ['a', null, 'c', undefined];\narr.compact(); // ['a', 'c']\n```",
|
|
11345
11683
|
"itemtype": "method",
|
|
11346
11684
|
"name": "compact",
|
|
@@ -11355,7 +11693,7 @@
|
|
|
11355
11693
|
},
|
|
11356
11694
|
{
|
|
11357
11695
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11358
|
-
"line":
|
|
11696
|
+
"line": 1183,
|
|
11359
11697
|
"description": "Used to determine if the array contains the passed object.\nReturns `true` if found, `false` otherwise.\n\nThe optional `startAt` argument can be used to pass a starting\nindex to search from, effectively slicing the searchable portion\nof the array. If it's negative it will add the array length to\nthe startAt value passed in as the index to search from. If less\nthan or equal to `-1 * array.length` the entire array is searched.\n\nThis method has the same behavior of JavaScript's [Array.includes](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes).\n\n```javascript\n[1, 2, 3].includes(2); // true\n[1, 2, 3].includes(4); // false\n[1, 2, 3].includes(3, 2); // true\n[1, 2, 3].includes(3, 3); // false\n[1, 2, 3].includes(3, -1); // true\n[1, 2, 3].includes(1, -1); // false\n[1, 2, 3].includes(1, -4); // true\n[1, 2, NaN].includes(NaN); // true\n```",
|
|
11360
11698
|
"itemtype": "method",
|
|
11361
11699
|
"name": "includes",
|
|
@@ -11382,7 +11720,7 @@
|
|
|
11382
11720
|
},
|
|
11383
11721
|
{
|
|
11384
11722
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11385
|
-
"line":
|
|
11723
|
+
"line": 1216,
|
|
11386
11724
|
"description": "Sorts the array by the keys specified in the argument.\n\nYou may provide multiple arguments to sort by multiple properties.\n\n```javascript\n let colors = [\n { name: 'red', weight: 500 },\n { name: 'green', weight: 600 },\n { name: 'blue', weight: 500 }\n];\n\n colors.sortBy('name');\n // [{name: 'blue', weight: 500}, {name: 'green', weight: 600}, {name: 'red', weight: 500}]\n\n colors.sortBy('weight', 'name');\n // [{name: 'blue', weight: 500}, {name: 'red', weight: 500}, {name: 'green', weight: 600}]\n ```",
|
|
11387
11725
|
"itemtype": "method",
|
|
11388
11726
|
"name": "sortBy",
|
|
@@ -11405,7 +11743,7 @@
|
|
|
11405
11743
|
},
|
|
11406
11744
|
{
|
|
11407
11745
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11408
|
-
"line":
|
|
11746
|
+
"line": 1260,
|
|
11409
11747
|
"description": "Returns a new array that contains only unique values. The default\nimplementation returns an array regardless of the receiver type.\n\n```javascript\nlet arr = ['a', 'a', 'b', 'b'];\narr.uniq(); // ['a', 'b']\n```\n\nThis only works on primitive data types, e.g. Strings, Numbers, etc.",
|
|
11410
11748
|
"itemtype": "method",
|
|
11411
11749
|
"name": "uniq",
|
|
@@ -11420,7 +11758,7 @@
|
|
|
11420
11758
|
},
|
|
11421
11759
|
{
|
|
11422
11760
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11423
|
-
"line":
|
|
11761
|
+
"line": 1279,
|
|
11424
11762
|
"description": "Returns a new array that contains only items containing a unique property value.\nThe default implementation returns an array regardless of the receiver type.\n\n```javascript\nlet arr = [{ value: 'a' }, { value: 'a' }, { value: 'b' }, { value: 'b' }];\narr.uniqBy('value'); // [{ value: 'a' }, { value: 'b' }]\n\nlet arr = [2.2, 2.1, 3.2, 3.3];\narr.uniqBy(Math.floor); // [2.2, 3.2];\n```",
|
|
11425
11763
|
"itemtype": "method",
|
|
11426
11764
|
"name": "uniqBy",
|
|
@@ -11442,7 +11780,7 @@
|
|
|
11442
11780
|
},
|
|
11443
11781
|
{
|
|
11444
11782
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11445
|
-
"line":
|
|
11783
|
+
"line": 1301,
|
|
11446
11784
|
"description": "Returns a new array that excludes the passed value. The default\nimplementation returns an array regardless of the receiver type.\nIf the receiver does not contain the value it returns the original array.\n\n```javascript\nlet arr = ['a', 'b', 'a', 'c'];\narr.without('a'); // ['b', 'c']\n```",
|
|
11447
11785
|
"itemtype": "method",
|
|
11448
11786
|
"name": "without",
|
|
@@ -11464,7 +11802,7 @@
|
|
|
11464
11802
|
},
|
|
11465
11803
|
{
|
|
11466
11804
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11467
|
-
"line":
|
|
11805
|
+
"line": 1349,
|
|
11468
11806
|
"description": "__Required.__ You must implement this method to apply this mixin.\n\nThis is one of the primitives you must implement to support `Array`.\nYou should replace amt objects started at idx with the objects in the\npassed array.\n\nNote that this method is expected to validate the type(s) of objects that it expects.",
|
|
11469
11807
|
"itemtype": "method",
|
|
11470
11808
|
"name": "replace",
|
|
@@ -11492,7 +11830,7 @@
|
|
|
11492
11830
|
},
|
|
11493
11831
|
{
|
|
11494
11832
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11495
|
-
"line":
|
|
11833
|
+
"line": 1368,
|
|
11496
11834
|
"description": "Remove all elements from the array. This is useful if you\nwant to reuse an existing array without having to recreate it.\n\n```javascript\nlet colors = ['red', 'green', 'blue'];\n\ncolors.length; // 3\ncolors.clear(); // []\ncolors.length; // 0\n```",
|
|
11497
11835
|
"itemtype": "method",
|
|
11498
11836
|
"name": "clear",
|
|
@@ -11507,7 +11845,7 @@
|
|
|
11507
11845
|
},
|
|
11508
11846
|
{
|
|
11509
11847
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11510
|
-
"line":
|
|
11848
|
+
"line": 1394,
|
|
11511
11849
|
"description": "This will use the primitive `replace()` method to insert an object at the\nspecified index.\n\n```javascript\nlet colors = ['red', 'green', 'blue'];\n\ncolors.insertAt(2, 'yellow'); // ['red', 'green', 'yellow', 'blue']\ncolors.insertAt(5, 'orange'); // Error: Index out of range\n```",
|
|
11512
11850
|
"itemtype": "method",
|
|
11513
11851
|
"name": "insertAt",
|
|
@@ -11534,7 +11872,7 @@
|
|
|
11534
11872
|
},
|
|
11535
11873
|
{
|
|
11536
11874
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11537
|
-
"line":
|
|
11875
|
+
"line": 1416,
|
|
11538
11876
|
"description": "Remove an object at the specified index using the `replace()` primitive\nmethod. You can pass either a single index, or a start and a length.\n\nIf you pass a start and length that is beyond the\nlength this method will throw an assertion.\n\n```javascript\nlet colors = ['red', 'green', 'blue', 'yellow', 'orange'];\n\ncolors.removeAt(0); // ['green', 'blue', 'yellow', 'orange']\ncolors.removeAt(2, 2); // ['green', 'blue']\ncolors.removeAt(4, 2); // Error: Index out of range\n```",
|
|
11539
11877
|
"itemtype": "method",
|
|
11540
11878
|
"name": "removeAt",
|
|
@@ -11561,7 +11899,7 @@
|
|
|
11561
11899
|
},
|
|
11562
11900
|
{
|
|
11563
11901
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11564
|
-
"line":
|
|
11902
|
+
"line": 1441,
|
|
11565
11903
|
"description": "Push the object onto the end of the array. Works just like `push()` but it\nis KVO-compliant.\n\n```javascript\nlet colors = ['red', 'green'];\n\ncolors.pushObject('black'); // ['red', 'green', 'black']\ncolors.pushObject(['yellow']); // ['red', 'green', ['yellow']]\n```",
|
|
11566
11904
|
"itemtype": "method",
|
|
11567
11905
|
"name": "pushObject",
|
|
@@ -11582,7 +11920,7 @@
|
|
|
11582
11920
|
},
|
|
11583
11921
|
{
|
|
11584
11922
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11585
|
-
"line":
|
|
11923
|
+
"line": 1461,
|
|
11586
11924
|
"description": "Add the objects in the passed array to the end of the array. Defers\nnotifying observers of the change until all objects are added.\n\n```javascript\nlet colors = ['red'];\n\ncolors.pushObjects(['yellow', 'orange']); // ['red', 'yellow', 'orange']\n```",
|
|
11587
11925
|
"itemtype": "method",
|
|
11588
11926
|
"name": "pushObjects",
|
|
@@ -11604,7 +11942,7 @@
|
|
|
11604
11942
|
},
|
|
11605
11943
|
{
|
|
11606
11944
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11607
|
-
"line":
|
|
11945
|
+
"line": 1481,
|
|
11608
11946
|
"description": "Pop object from array or nil if none are left. Works just like `pop()` but\nit is KVO-compliant.\n\n```javascript\nlet colors = ['red', 'green', 'blue'];\n\ncolors.popObject(); // 'blue'\nconsole.log(colors); // ['red', 'green']\n```",
|
|
11609
11947
|
"itemtype": "method",
|
|
11610
11948
|
"name": "popObject",
|
|
@@ -11618,7 +11956,7 @@
|
|
|
11618
11956
|
},
|
|
11619
11957
|
{
|
|
11620
11958
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11621
|
-
"line":
|
|
11959
|
+
"line": 1507,
|
|
11622
11960
|
"description": "Shift an object from start of array or nil if none are left. Works just\nlike `shift()` but it is KVO-compliant.\n\n```javascript\nlet colors = ['red', 'green', 'blue'];\n\ncolors.shiftObject(); // 'red'\nconsole.log(colors); // ['green', 'blue']\n```",
|
|
11623
11961
|
"itemtype": "method",
|
|
11624
11962
|
"name": "shiftObject",
|
|
@@ -11632,7 +11970,7 @@
|
|
|
11632
11970
|
},
|
|
11633
11971
|
{
|
|
11634
11972
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11635
|
-
"line":
|
|
11973
|
+
"line": 1532,
|
|
11636
11974
|
"description": "Unshift an object to start of array. Works just like `unshift()` but it is\nKVO-compliant.\n\n```javascript\nlet colors = ['red'];\n\ncolors.unshiftObject('yellow'); // ['yellow', 'red']\ncolors.unshiftObject(['black']); // [['black'], 'yellow', 'red']\n```",
|
|
11637
11975
|
"itemtype": "method",
|
|
11638
11976
|
"name": "unshiftObject",
|
|
@@ -11653,7 +11991,7 @@
|
|
|
11653
11991
|
},
|
|
11654
11992
|
{
|
|
11655
11993
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11656
|
-
"line":
|
|
11994
|
+
"line": 1552,
|
|
11657
11995
|
"description": "Adds the named objects to the beginning of the array. Defers notifying\nobservers until all objects have been added.\n\n```javascript\nlet colors = ['red'];\n\ncolors.unshiftObjects(['black', 'white']); // ['black', 'white', 'red']\ncolors.unshiftObjects('yellow'); // Type Error: 'undefined' is not a function\n```",
|
|
11658
11996
|
"itemtype": "method",
|
|
11659
11997
|
"name": "unshiftObjects",
|
|
@@ -11675,7 +12013,7 @@
|
|
|
11675
12013
|
},
|
|
11676
12014
|
{
|
|
11677
12015
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11678
|
-
"line":
|
|
12016
|
+
"line": 1573,
|
|
11679
12017
|
"description": "Reverse objects in the array. Works just like `reverse()` but it is\nKVO-compliant.",
|
|
11680
12018
|
"itemtype": "method",
|
|
11681
12019
|
"name": "reverseObjects",
|
|
@@ -11690,7 +12028,7 @@
|
|
|
11690
12028
|
},
|
|
11691
12029
|
{
|
|
11692
12030
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11693
|
-
"line":
|
|
12031
|
+
"line": 1592,
|
|
11694
12032
|
"description": "Replace all the receiver's content with content of the argument.\nIf argument is an empty array receiver will be cleared.\n\n```javascript\nlet colors = ['red', 'green', 'blue'];\n\ncolors.setObjects(['black', 'white']); // ['black', 'white']\ncolors.setObjects([]); // []\n```",
|
|
11695
12033
|
"itemtype": "method",
|
|
11696
12034
|
"name": "setObjects",
|
|
@@ -11712,7 +12050,7 @@
|
|
|
11712
12050
|
},
|
|
11713
12051
|
{
|
|
11714
12052
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11715
|
-
"line":
|
|
12053
|
+
"line": 1619,
|
|
11716
12054
|
"description": "Remove all occurrences of an object in the array.\n\n```javascript\nlet cities = ['Chicago', 'Berlin', 'Lima', 'Chicago'];\n\ncities.removeObject('Chicago'); // ['Berlin', 'Lima']\ncities.removeObject('Lima'); // ['Berlin']\ncities.removeObject('Tokyo') // ['Berlin']\n```",
|
|
11717
12055
|
"itemtype": "method",
|
|
11718
12056
|
"name": "removeObject",
|
|
@@ -11734,7 +12072,7 @@
|
|
|
11734
12072
|
},
|
|
11735
12073
|
{
|
|
11736
12074
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11737
|
-
"line":
|
|
12075
|
+
"line": 1647,
|
|
11738
12076
|
"description": "Removes each object in the passed array from the receiver.",
|
|
11739
12077
|
"itemtype": "method",
|
|
11740
12078
|
"name": "removeObjects",
|
|
@@ -11756,7 +12094,7 @@
|
|
|
11756
12094
|
},
|
|
11757
12095
|
{
|
|
11758
12096
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11759
|
-
"line":
|
|
12097
|
+
"line": 1664,
|
|
11760
12098
|
"description": "Push the object onto the end of the array if it is not already\npresent in the array.\n\n```javascript\nlet cities = ['Chicago', 'Berlin'];\n\ncities.addObject('Lima'); // ['Chicago', 'Berlin', 'Lima']\ncities.addObject('Berlin'); // ['Chicago', 'Berlin', 'Lima']\n```",
|
|
11761
12099
|
"itemtype": "method",
|
|
11762
12100
|
"name": "addObject",
|
|
@@ -11778,7 +12116,7 @@
|
|
|
11778
12116
|
},
|
|
11779
12117
|
{
|
|
11780
12118
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11781
|
-
"line":
|
|
12119
|
+
"line": 1690,
|
|
11782
12120
|
"description": "Adds each object in the passed array to the receiver.",
|
|
11783
12121
|
"itemtype": "method",
|
|
11784
12122
|
"name": "addObjects",
|
|
@@ -11800,7 +12138,7 @@
|
|
|
11800
12138
|
},
|
|
11801
12139
|
{
|
|
11802
12140
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11803
|
-
"line":
|
|
12141
|
+
"line": 1706,
|
|
11804
12142
|
"description": "Creates an `Ember.NativeArray` from an Array-like object.\nDoes not modify the original object's contents. `A()` is not needed if\n`EmberENV.EXTEND_PROTOTYPES` is `true` (the default value). However,\nit is recommended that you use `A()` when creating addons for\nember or when you can not guarantee that `EmberENV.EXTEND_PROTOTYPES`\nwill be `true`.\n\nExample\n\n```app/components/my-component.js\nimport Component from '@ember/component';\nimport { A } from '@ember/array';\n\nexport default Component.extend({\n tagName: 'ul',\n classNames: ['pagination'],\n\n init() {\n this._super(...arguments);\n\n if (!this.get('content')) {\n this.set('content', A());\n this.set('otherContent', A([1,2,3]));\n }\n }\n});\n```",
|
|
11805
12143
|
"itemtype": "method",
|
|
11806
12144
|
"name": "A",
|
|
@@ -11924,6 +12262,48 @@
|
|
|
11924
12262
|
"class": "ContainerProxyMixin",
|
|
11925
12263
|
"module": "ember"
|
|
11926
12264
|
},
|
|
12265
|
+
{
|
|
12266
|
+
"file": "packages/@ember/-internals/runtime/lib/mixins/evented.d.ts",
|
|
12267
|
+
"line": 3,
|
|
12268
|
+
"description": "This mixin allows for Ember objects to subscribe to and emit events.",
|
|
12269
|
+
"class": "Evented",
|
|
12270
|
+
"module": "@ember/enumerable"
|
|
12271
|
+
},
|
|
12272
|
+
{
|
|
12273
|
+
"file": "packages/@ember/-internals/runtime/lib/mixins/evented.d.ts",
|
|
12274
|
+
"line": 7,
|
|
12275
|
+
"description": "Subscribes to a named event with given function.",
|
|
12276
|
+
"class": "Evented",
|
|
12277
|
+
"module": "@ember/enumerable"
|
|
12278
|
+
},
|
|
12279
|
+
{
|
|
12280
|
+
"file": "packages/@ember/-internals/runtime/lib/mixins/evented.d.ts",
|
|
12281
|
+
"line": 16,
|
|
12282
|
+
"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.",
|
|
12283
|
+
"class": "Evented",
|
|
12284
|
+
"module": "@ember/enumerable"
|
|
12285
|
+
},
|
|
12286
|
+
{
|
|
12287
|
+
"file": "packages/@ember/-internals/runtime/lib/mixins/evented.d.ts",
|
|
12288
|
+
"line": 27,
|
|
12289
|
+
"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.",
|
|
12290
|
+
"class": "Evented",
|
|
12291
|
+
"module": "@ember/enumerable"
|
|
12292
|
+
},
|
|
12293
|
+
{
|
|
12294
|
+
"file": "packages/@ember/-internals/runtime/lib/mixins/evented.d.ts",
|
|
12295
|
+
"line": 33,
|
|
12296
|
+
"description": "Cancels subscription for given name, target, and method.",
|
|
12297
|
+
"class": "Evented",
|
|
12298
|
+
"module": "@ember/enumerable"
|
|
12299
|
+
},
|
|
12300
|
+
{
|
|
12301
|
+
"file": "packages/@ember/-internals/runtime/lib/mixins/evented.d.ts",
|
|
12302
|
+
"line": 42,
|
|
12303
|
+
"description": "Checks to see if object has any subscriptions for named event.",
|
|
12304
|
+
"class": "Evented",
|
|
12305
|
+
"module": "@ember/enumerable"
|
|
12306
|
+
},
|
|
11927
12307
|
{
|
|
11928
12308
|
"file": "packages/@ember/-internals/runtime/lib/mixins/evented.js",
|
|
11929
12309
|
"line": 54,
|
|
@@ -12064,6 +12444,102 @@
|
|
|
12064
12444
|
"class": "Evented",
|
|
12065
12445
|
"module": "@ember/object"
|
|
12066
12446
|
},
|
|
12447
|
+
{
|
|
12448
|
+
"file": "packages/@ember/-internals/runtime/lib/mixins/observable.d.ts",
|
|
12449
|
+
"line": 7,
|
|
12450
|
+
"description": "This mixin provides properties and property observing functionality, core features of the Ember object model.",
|
|
12451
|
+
"class": "Observable",
|
|
12452
|
+
"module": "ember",
|
|
12453
|
+
"namespace": "Ember"
|
|
12454
|
+
},
|
|
12455
|
+
{
|
|
12456
|
+
"file": "packages/@ember/-internals/runtime/lib/mixins/observable.d.ts",
|
|
12457
|
+
"line": 11,
|
|
12458
|
+
"description": "Retrieves the value of a property from the object.",
|
|
12459
|
+
"class": "Observable",
|
|
12460
|
+
"module": "ember",
|
|
12461
|
+
"namespace": "Ember"
|
|
12462
|
+
},
|
|
12463
|
+
{
|
|
12464
|
+
"file": "packages/@ember/-internals/runtime/lib/mixins/observable.d.ts",
|
|
12465
|
+
"line": 16,
|
|
12466
|
+
"description": "To get the values of multiple properties at once, call `getProperties`\nwith a list of strings or an array:",
|
|
12467
|
+
"class": "Observable",
|
|
12468
|
+
"module": "ember",
|
|
12469
|
+
"namespace": "Ember"
|
|
12470
|
+
},
|
|
12471
|
+
{
|
|
12472
|
+
"file": "packages/@ember/-internals/runtime/lib/mixins/observable.d.ts",
|
|
12473
|
+
"line": 24,
|
|
12474
|
+
"description": "Sets the provided key or path to the value.",
|
|
12475
|
+
"class": "Observable",
|
|
12476
|
+
"module": "ember",
|
|
12477
|
+
"namespace": "Ember"
|
|
12478
|
+
},
|
|
12479
|
+
{
|
|
12480
|
+
"file": "packages/@ember/-internals/runtime/lib/mixins/observable.d.ts",
|
|
12481
|
+
"line": 30,
|
|
12482
|
+
"description": "Sets a list of properties at once. These properties are set inside\na single `beginPropertyChanges` and `endPropertyChanges` batch, so\nobservers will be buffered.",
|
|
12483
|
+
"class": "Observable",
|
|
12484
|
+
"module": "ember",
|
|
12485
|
+
"namespace": "Ember"
|
|
12486
|
+
},
|
|
12487
|
+
{
|
|
12488
|
+
"file": "packages/@ember/-internals/runtime/lib/mixins/observable.d.ts",
|
|
12489
|
+
"line": 37,
|
|
12490
|
+
"description": "Convenience method to call `propertyWillChange` and `propertyDidChange` in\nsuccession.",
|
|
12491
|
+
"class": "Observable",
|
|
12492
|
+
"module": "ember",
|
|
12493
|
+
"namespace": "Ember"
|
|
12494
|
+
},
|
|
12495
|
+
{
|
|
12496
|
+
"file": "packages/@ember/-internals/runtime/lib/mixins/observable.d.ts",
|
|
12497
|
+
"line": 43,
|
|
12498
|
+
"description": "Adds an observer on a property.",
|
|
12499
|
+
"class": "Observable",
|
|
12500
|
+
"module": "ember",
|
|
12501
|
+
"namespace": "Ember"
|
|
12502
|
+
},
|
|
12503
|
+
{
|
|
12504
|
+
"file": "packages/@ember/-internals/runtime/lib/mixins/observable.d.ts",
|
|
12505
|
+
"line": 49,
|
|
12506
|
+
"description": "Remove an observer you have previously registered on this object. Pass\nthe same key, target, and method you passed to `addObserver()` and your\ntarget will no longer receive notifications.",
|
|
12507
|
+
"class": "Observable",
|
|
12508
|
+
"module": "ember",
|
|
12509
|
+
"namespace": "Ember"
|
|
12510
|
+
},
|
|
12511
|
+
{
|
|
12512
|
+
"file": "packages/@ember/-internals/runtime/lib/mixins/observable.d.ts",
|
|
12513
|
+
"line": 62,
|
|
12514
|
+
"description": "Set the value of a property to the current value plus some amount.",
|
|
12515
|
+
"class": "Observable",
|
|
12516
|
+
"module": "ember",
|
|
12517
|
+
"namespace": "Ember"
|
|
12518
|
+
},
|
|
12519
|
+
{
|
|
12520
|
+
"file": "packages/@ember/-internals/runtime/lib/mixins/observable.d.ts",
|
|
12521
|
+
"line": 68,
|
|
12522
|
+
"description": "Set the value of a property to the current value minus some amount.",
|
|
12523
|
+
"class": "Observable",
|
|
12524
|
+
"module": "ember",
|
|
12525
|
+
"namespace": "Ember"
|
|
12526
|
+
},
|
|
12527
|
+
{
|
|
12528
|
+
"file": "packages/@ember/-internals/runtime/lib/mixins/observable.d.ts",
|
|
12529
|
+
"line": 74,
|
|
12530
|
+
"description": "Set the value of a boolean property to the opposite of its\ncurrent value.",
|
|
12531
|
+
"class": "Observable",
|
|
12532
|
+
"module": "ember",
|
|
12533
|
+
"namespace": "Ember"
|
|
12534
|
+
},
|
|
12535
|
+
{
|
|
12536
|
+
"file": "packages/@ember/-internals/runtime/lib/mixins/observable.d.ts",
|
|
12537
|
+
"line": 80,
|
|
12538
|
+
"description": "Returns the cached value of a computed property, if it exists.\nThis allows you to inspect the value of a computed property\nwithout accidentally invoking it if it is intended to be\ngenerated lazily.",
|
|
12539
|
+
"class": "Observable",
|
|
12540
|
+
"module": "ember",
|
|
12541
|
+
"namespace": "Ember"
|
|
12542
|
+
},
|
|
12067
12543
|
{
|
|
12068
12544
|
"file": "packages/@ember/-internals/runtime/lib/mixins/observable.js",
|
|
12069
12545
|
"line": 92,
|
|
@@ -12877,6 +13353,148 @@
|
|
|
12877
13353
|
"class": "ArrayProxy",
|
|
12878
13354
|
"module": "@ember/array"
|
|
12879
13355
|
},
|
|
13356
|
+
{
|
|
13357
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13358
|
+
"line": 1,
|
|
13359
|
+
"description": "Used to infer the type of ember classes of type `T`.\n\nGenerally you would use `EmberClass.create()` instead of `new EmberClass()`.\n\nThe single-arg constructor is required by the typescript compiler.\nThe multi-arg constructor is included for better ergonomics.\n\nImplementation is carefully chosen for the reasons described in\nhttps://github.com/typed-ember/ember-typings/pull/29",
|
|
13360
|
+
"class": "CoreObject",
|
|
13361
|
+
"module": "@ember/array"
|
|
13362
|
+
},
|
|
13363
|
+
{
|
|
13364
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13365
|
+
"line": 19,
|
|
13366
|
+
"class": "CoreObject",
|
|
13367
|
+
"module": "@ember/array"
|
|
13368
|
+
},
|
|
13369
|
+
{
|
|
13370
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13371
|
+
"line": 25,
|
|
13372
|
+
"class": "CoreObject",
|
|
13373
|
+
"module": "@ember/array"
|
|
13374
|
+
},
|
|
13375
|
+
{
|
|
13376
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13377
|
+
"line": 28,
|
|
13378
|
+
"class": "CoreObject",
|
|
13379
|
+
"module": "@ember/array"
|
|
13380
|
+
},
|
|
13381
|
+
{
|
|
13382
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13383
|
+
"line": 31,
|
|
13384
|
+
"description": "CoreObject constructor takes initial object properties as an argument.",
|
|
13385
|
+
"class": "CoreObject",
|
|
13386
|
+
"module": "@ember/array"
|
|
13387
|
+
},
|
|
13388
|
+
{
|
|
13389
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13390
|
+
"line": 36,
|
|
13391
|
+
"class": "CoreObject",
|
|
13392
|
+
"module": "@ember/array"
|
|
13393
|
+
},
|
|
13394
|
+
{
|
|
13395
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13396
|
+
"line": 39,
|
|
13397
|
+
"description": "An overridable method called when objects are instantiated. By default,\ndoes nothing unless it is overridden during class definition.",
|
|
13398
|
+
"class": "CoreObject",
|
|
13399
|
+
"module": "@ember/array"
|
|
13400
|
+
},
|
|
13401
|
+
{
|
|
13402
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13403
|
+
"line": 45,
|
|
13404
|
+
"description": "Defines the properties that will be concatenated from the superclass (instead of overridden).",
|
|
13405
|
+
"default": "null",
|
|
13406
|
+
"class": "CoreObject",
|
|
13407
|
+
"module": "@ember/array"
|
|
13408
|
+
},
|
|
13409
|
+
{
|
|
13410
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13411
|
+
"line": 51,
|
|
13412
|
+
"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.",
|
|
13413
|
+
"default": "false",
|
|
13414
|
+
"class": "CoreObject",
|
|
13415
|
+
"module": "@ember/array"
|
|
13416
|
+
},
|
|
13417
|
+
{
|
|
13418
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13419
|
+
"line": 57,
|
|
13420
|
+
"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.",
|
|
13421
|
+
"default": "false",
|
|
13422
|
+
"class": "CoreObject",
|
|
13423
|
+
"module": "@ember/array"
|
|
13424
|
+
},
|
|
13425
|
+
{
|
|
13426
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13427
|
+
"line": 64,
|
|
13428
|
+
"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.",
|
|
13429
|
+
"return": {
|
|
13430
|
+
"description": "receiver"
|
|
13431
|
+
},
|
|
13432
|
+
"class": "CoreObject",
|
|
13433
|
+
"module": "@ember/array"
|
|
13434
|
+
},
|
|
13435
|
+
{
|
|
13436
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13437
|
+
"line": 75,
|
|
13438
|
+
"description": "Override to implement teardown.",
|
|
13439
|
+
"class": "CoreObject",
|
|
13440
|
+
"module": "@ember/array"
|
|
13441
|
+
},
|
|
13442
|
+
{
|
|
13443
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13444
|
+
"line": 80,
|
|
13445
|
+
"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>\").",
|
|
13446
|
+
"return": {
|
|
13447
|
+
"description": "string representation"
|
|
13448
|
+
},
|
|
13449
|
+
"class": "CoreObject",
|
|
13450
|
+
"module": "@ember/array"
|
|
13451
|
+
},
|
|
13452
|
+
{
|
|
13453
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13454
|
+
"line": 92,
|
|
13455
|
+
"class": "CoreObject",
|
|
13456
|
+
"module": "@ember/array"
|
|
13457
|
+
},
|
|
13458
|
+
{
|
|
13459
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13460
|
+
"line": 98,
|
|
13461
|
+
"class": "CoreObject",
|
|
13462
|
+
"module": "@ember/array"
|
|
13463
|
+
},
|
|
13464
|
+
{
|
|
13465
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13466
|
+
"line": 101,
|
|
13467
|
+
"description": "Iterate over each computed property for the class, passing its name and any\nassociated metadata (see metaForProperty) to the callback.",
|
|
13468
|
+
"internal": "",
|
|
13469
|
+
"class": "CoreObject",
|
|
13470
|
+
"module": "@ember/array"
|
|
13471
|
+
},
|
|
13472
|
+
{
|
|
13473
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13474
|
+
"line": 107,
|
|
13475
|
+
"description": "Returns the original hash that was passed to meta().",
|
|
13476
|
+
"params": [
|
|
13477
|
+
{
|
|
13478
|
+
"name": "key",
|
|
13479
|
+
"description": "property name"
|
|
13480
|
+
}
|
|
13481
|
+
],
|
|
13482
|
+
"internal": "",
|
|
13483
|
+
"class": "CoreObject",
|
|
13484
|
+
"module": "@ember/array"
|
|
13485
|
+
},
|
|
13486
|
+
{
|
|
13487
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13488
|
+
"line": 114,
|
|
13489
|
+
"class": "CoreObject",
|
|
13490
|
+
"module": "@ember/array"
|
|
13491
|
+
},
|
|
13492
|
+
{
|
|
13493
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13494
|
+
"line": 117,
|
|
13495
|
+
"class": "CoreObject",
|
|
13496
|
+
"module": "@ember/array"
|
|
13497
|
+
},
|
|
12880
13498
|
{
|
|
12881
13499
|
"file": "packages/@ember/-internals/runtime/lib/system/core_object.js",
|
|
12882
13500
|
"line": 275,
|
|
@@ -13120,6 +13738,12 @@
|
|
|
13120
13738
|
"class": "@ember/object",
|
|
13121
13739
|
"module": "@ember/object"
|
|
13122
13740
|
},
|
|
13741
|
+
{
|
|
13742
|
+
"file": "packages/@ember/-internals/runtime/lib/system/object.d.ts",
|
|
13743
|
+
"line": 9,
|
|
13744
|
+
"class": "EmberObject",
|
|
13745
|
+
"module": "@ember/application"
|
|
13746
|
+
},
|
|
13123
13747
|
{
|
|
13124
13748
|
"file": "packages/@ember/-internals/runtime/lib/compare.js",
|
|
13125
13749
|
"line": 44,
|
|
@@ -13185,8 +13809,7 @@
|
|
|
13185
13809
|
"params": [
|
|
13186
13810
|
{
|
|
13187
13811
|
"name": "item",
|
|
13188
|
-
"description": "the item to check"
|
|
13189
|
-
"type": "Object"
|
|
13812
|
+
"description": "the item to check"
|
|
13190
13813
|
}
|
|
13191
13814
|
],
|
|
13192
13815
|
"return": {
|
|
@@ -13199,256 +13822,6 @@
|
|
|
13199
13822
|
"class": "@ember/utils",
|
|
13200
13823
|
"module": "@ember/utils"
|
|
13201
13824
|
},
|
|
13202
|
-
{
|
|
13203
|
-
"file": "packages/@ember/-internals/runtime/type-tests/core.test.ts",
|
|
13204
|
-
"line": 4,
|
|
13205
|
-
"class": "Ember",
|
|
13206
|
-
"module": "@ember/utils"
|
|
13207
|
-
},
|
|
13208
|
-
{
|
|
13209
|
-
"file": "packages/@ember/-internals/runtime/type-tests/core.test.ts",
|
|
13210
|
-
"line": 13,
|
|
13211
|
-
"class": "Ember",
|
|
13212
|
-
"module": "@ember/utils"
|
|
13213
|
-
},
|
|
13214
|
-
{
|
|
13215
|
-
"file": "packages/@ember/-internals/runtime/type-tests/core.test.ts",
|
|
13216
|
-
"line": 21,
|
|
13217
|
-
"class": "Ember",
|
|
13218
|
-
"module": "@ember/utils"
|
|
13219
|
-
},
|
|
13220
|
-
{
|
|
13221
|
-
"file": "packages/@ember/-internals/runtime/types/-private/types.d.ts",
|
|
13222
|
-
"line": 1,
|
|
13223
|
-
"description": "Map type `T` to a plain object hash with the identity mapping.\n\nDiscards any additional object identity like the ability to `new()` up the class.\nThe `new()` capability is added back later by merging `EmberClassConstructor<T>`\n\nImplementation is carefully chosen for the reasons described in\nhttps://github.com/typed-ember/ember-typings/pull/29",
|
|
13224
|
-
"class": "Ember",
|
|
13225
|
-
"module": "@ember/utils"
|
|
13226
|
-
},
|
|
13227
|
-
{
|
|
13228
|
-
"file": "packages/@ember/-internals/runtime/types/-private/types.d.ts",
|
|
13229
|
-
"line": 16,
|
|
13230
|
-
"description": "Used to infer the type of ember classes of type `T`.\n\nGenerally you would use `EmberClass.create()` instead of `new EmberClass()`.\n\nThe single-arg constructor is required by the typescript compiler.\nThe multi-arg constructor is included for better ergonomics.\n\nImplementation is carefully chosen for the reasons described in\nhttps://github.com/typed-ember/ember-typings/pull/29",
|
|
13231
|
-
"class": "Ember",
|
|
13232
|
-
"module": "@ember/utils"
|
|
13233
|
-
},
|
|
13234
|
-
{
|
|
13235
|
-
"file": "packages/@ember/-internals/runtime/types/-private/types.d.ts",
|
|
13236
|
-
"line": 30,
|
|
13237
|
-
"description": "Check that any arguments to `create()` match the type's properties.\n\nAccept any additional properties and add merge them into the instance.",
|
|
13238
|
-
"class": "Ember",
|
|
13239
|
-
"module": "@ember/utils"
|
|
13240
|
-
},
|
|
13241
|
-
{
|
|
13242
|
-
"file": "packages/@ember/-internals/runtime/types/core.d.ts",
|
|
13243
|
-
"line": 8,
|
|
13244
|
-
"description": "CoreObject constructor takes initial object properties as an argument.",
|
|
13245
|
-
"class": "Ember",
|
|
13246
|
-
"module": "@ember/utils"
|
|
13247
|
-
},
|
|
13248
|
-
{
|
|
13249
|
-
"file": "packages/@ember/-internals/runtime/types/core.d.ts",
|
|
13250
|
-
"line": 15,
|
|
13251
|
-
"description": "An overridable method called when objects are instantiated. By default,\ndoes nothing unless it is overridden during class definition.",
|
|
13252
|
-
"class": "Ember",
|
|
13253
|
-
"module": "@ember/utils"
|
|
13254
|
-
},
|
|
13255
|
-
{
|
|
13256
|
-
"file": "packages/@ember/-internals/runtime/types/core.d.ts",
|
|
13257
|
-
"line": 21,
|
|
13258
|
-
"description": "Defines the properties that will be concatenated from the superclass (instead of overridden).",
|
|
13259
|
-
"default": "null",
|
|
13260
|
-
"class": "Ember",
|
|
13261
|
-
"module": "@ember/utils"
|
|
13262
|
-
},
|
|
13263
|
-
{
|
|
13264
|
-
"file": "packages/@ember/-internals/runtime/types/core.d.ts",
|
|
13265
|
-
"line": 27,
|
|
13266
|
-
"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.",
|
|
13267
|
-
"default": "false",
|
|
13268
|
-
"class": "Ember",
|
|
13269
|
-
"module": "@ember/utils"
|
|
13270
|
-
},
|
|
13271
|
-
{
|
|
13272
|
-
"file": "packages/@ember/-internals/runtime/types/core.d.ts",
|
|
13273
|
-
"line": 33,
|
|
13274
|
-
"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.",
|
|
13275
|
-
"default": "false",
|
|
13276
|
-
"class": "Ember",
|
|
13277
|
-
"module": "@ember/utils"
|
|
13278
|
-
},
|
|
13279
|
-
{
|
|
13280
|
-
"file": "packages/@ember/-internals/runtime/types/core.d.ts",
|
|
13281
|
-
"line": 40,
|
|
13282
|
-
"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.",
|
|
13283
|
-
"return": {
|
|
13284
|
-
"description": "receiver"
|
|
13285
|
-
},
|
|
13286
|
-
"class": "Ember",
|
|
13287
|
-
"module": "@ember/utils"
|
|
13288
|
-
},
|
|
13289
|
-
{
|
|
13290
|
-
"file": "packages/@ember/-internals/runtime/types/core.d.ts",
|
|
13291
|
-
"line": 51,
|
|
13292
|
-
"description": "Override to implement teardown.",
|
|
13293
|
-
"class": "Ember",
|
|
13294
|
-
"module": "@ember/utils"
|
|
13295
|
-
},
|
|
13296
|
-
{
|
|
13297
|
-
"file": "packages/@ember/-internals/runtime/types/core.d.ts",
|
|
13298
|
-
"line": 56,
|
|
13299
|
-
"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>\").",
|
|
13300
|
-
"return": {
|
|
13301
|
-
"description": "string representation"
|
|
13302
|
-
},
|
|
13303
|
-
"class": "Ember",
|
|
13304
|
-
"module": "@ember/utils"
|
|
13305
|
-
},
|
|
13306
|
-
{
|
|
13307
|
-
"file": "packages/@ember/-internals/runtime/types/core.d.ts",
|
|
13308
|
-
"line": 75,
|
|
13309
|
-
"description": "Iterate over each computed property for the class, passing its name and any\nassociated metadata (see metaForProperty) to the callback.",
|
|
13310
|
-
"class": "Ember",
|
|
13311
|
-
"module": "@ember/utils"
|
|
13312
|
-
},
|
|
13313
|
-
{
|
|
13314
|
-
"file": "packages/@ember/-internals/runtime/types/core.d.ts",
|
|
13315
|
-
"line": 80,
|
|
13316
|
-
"description": "Returns the original hash that was passed to meta().",
|
|
13317
|
-
"params": [
|
|
13318
|
-
{
|
|
13319
|
-
"name": "key",
|
|
13320
|
-
"description": "property name"
|
|
13321
|
-
}
|
|
13322
|
-
],
|
|
13323
|
-
"class": "Ember",
|
|
13324
|
-
"module": "@ember/utils"
|
|
13325
|
-
},
|
|
13326
|
-
{
|
|
13327
|
-
"file": "packages/@ember/-internals/runtime/types/evented.d.ts",
|
|
13328
|
-
"line": 3,
|
|
13329
|
-
"description": "This mixin allows for Ember objects to subscribe to and emit events.",
|
|
13330
|
-
"class": "Ember",
|
|
13331
|
-
"module": "@ember/utils"
|
|
13332
|
-
},
|
|
13333
|
-
{
|
|
13334
|
-
"file": "packages/@ember/-internals/runtime/types/evented.d.ts",
|
|
13335
|
-
"line": 7,
|
|
13336
|
-
"description": "Subscribes to a named event with given function.",
|
|
13337
|
-
"class": "Ember",
|
|
13338
|
-
"module": "@ember/utils"
|
|
13339
|
-
},
|
|
13340
|
-
{
|
|
13341
|
-
"file": "packages/@ember/-internals/runtime/types/evented.d.ts",
|
|
13342
|
-
"line": 16,
|
|
13343
|
-
"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.",
|
|
13344
|
-
"class": "Ember",
|
|
13345
|
-
"module": "@ember/utils"
|
|
13346
|
-
},
|
|
13347
|
-
{
|
|
13348
|
-
"file": "packages/@ember/-internals/runtime/types/evented.d.ts",
|
|
13349
|
-
"line": 27,
|
|
13350
|
-
"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.",
|
|
13351
|
-
"class": "Ember",
|
|
13352
|
-
"module": "@ember/utils"
|
|
13353
|
-
},
|
|
13354
|
-
{
|
|
13355
|
-
"file": "packages/@ember/-internals/runtime/types/evented.d.ts",
|
|
13356
|
-
"line": 33,
|
|
13357
|
-
"description": "Cancels subscription for given name, target, and method.",
|
|
13358
|
-
"class": "Ember",
|
|
13359
|
-
"module": "@ember/utils"
|
|
13360
|
-
},
|
|
13361
|
-
{
|
|
13362
|
-
"file": "packages/@ember/-internals/runtime/types/evented.d.ts",
|
|
13363
|
-
"line": 42,
|
|
13364
|
-
"description": "Checks to see if object has any subscriptions for named event.",
|
|
13365
|
-
"class": "Ember",
|
|
13366
|
-
"module": "@ember/utils"
|
|
13367
|
-
},
|
|
13368
|
-
{
|
|
13369
|
-
"file": "packages/@ember/-internals/runtime/types/observable.d.ts",
|
|
13370
|
-
"line": 3,
|
|
13371
|
-
"description": "This mixin provides properties and property observing functionality, core features of the Ember object model.",
|
|
13372
|
-
"class": "Ember",
|
|
13373
|
-
"module": "@ember/utils"
|
|
13374
|
-
},
|
|
13375
|
-
{
|
|
13376
|
-
"file": "packages/@ember/-internals/runtime/types/observable.d.ts",
|
|
13377
|
-
"line": 7,
|
|
13378
|
-
"description": "Retrieves the value of a property from the object.",
|
|
13379
|
-
"class": "Ember",
|
|
13380
|
-
"module": "@ember/utils"
|
|
13381
|
-
},
|
|
13382
|
-
{
|
|
13383
|
-
"file": "packages/@ember/-internals/runtime/types/observable.d.ts",
|
|
13384
|
-
"line": 12,
|
|
13385
|
-
"description": "To get the values of multiple properties at once, call `getProperties`\nwith a list of strings or an array:",
|
|
13386
|
-
"class": "Ember",
|
|
13387
|
-
"module": "@ember/utils"
|
|
13388
|
-
},
|
|
13389
|
-
{
|
|
13390
|
-
"file": "packages/@ember/-internals/runtime/types/observable.d.ts",
|
|
13391
|
-
"line": 18,
|
|
13392
|
-
"description": "Sets the provided key or path to the value.",
|
|
13393
|
-
"class": "Ember",
|
|
13394
|
-
"module": "@ember/utils"
|
|
13395
|
-
},
|
|
13396
|
-
{
|
|
13397
|
-
"file": "packages/@ember/-internals/runtime/types/observable.d.ts",
|
|
13398
|
-
"line": 23,
|
|
13399
|
-
"description": "Sets a list of properties at once. These properties are set inside\na single `beginPropertyChanges` and `endPropertyChanges` batch, so\nobservers will be buffered.",
|
|
13400
|
-
"class": "Ember",
|
|
13401
|
-
"module": "@ember/utils"
|
|
13402
|
-
},
|
|
13403
|
-
{
|
|
13404
|
-
"file": "packages/@ember/-internals/runtime/types/observable.d.ts",
|
|
13405
|
-
"line": 33,
|
|
13406
|
-
"description": "Convenience method to call `propertyWillChange` and `propertyDidChange` in\nsuccession.",
|
|
13407
|
-
"class": "Ember",
|
|
13408
|
-
"module": "@ember/utils"
|
|
13409
|
-
},
|
|
13410
|
-
{
|
|
13411
|
-
"file": "packages/@ember/-internals/runtime/types/observable.d.ts",
|
|
13412
|
-
"line": 38,
|
|
13413
|
-
"description": "Adds an observer on a property.",
|
|
13414
|
-
"class": "Ember",
|
|
13415
|
-
"module": "@ember/utils"
|
|
13416
|
-
},
|
|
13417
|
-
{
|
|
13418
|
-
"file": "packages/@ember/-internals/runtime/types/observable.d.ts",
|
|
13419
|
-
"line": 43,
|
|
13420
|
-
"description": "Remove an observer you have previously registered on this object. Pass\nthe same key, target, and method you passed to `addObserver()` and your\ntarget will no longer receive notifications.",
|
|
13421
|
-
"class": "Ember",
|
|
13422
|
-
"module": "@ember/utils"
|
|
13423
|
-
},
|
|
13424
|
-
{
|
|
13425
|
-
"file": "packages/@ember/-internals/runtime/types/observable.d.ts",
|
|
13426
|
-
"line": 54,
|
|
13427
|
-
"description": "Set the value of a property to the current value plus some amount.",
|
|
13428
|
-
"class": "Ember",
|
|
13429
|
-
"module": "@ember/utils"
|
|
13430
|
-
},
|
|
13431
|
-
{
|
|
13432
|
-
"file": "packages/@ember/-internals/runtime/types/observable.d.ts",
|
|
13433
|
-
"line": 58,
|
|
13434
|
-
"description": "Set the value of a property to the current value minus some amount.",
|
|
13435
|
-
"class": "Ember",
|
|
13436
|
-
"module": "@ember/utils"
|
|
13437
|
-
},
|
|
13438
|
-
{
|
|
13439
|
-
"file": "packages/@ember/-internals/runtime/types/observable.d.ts",
|
|
13440
|
-
"line": 62,
|
|
13441
|
-
"description": "Set the value of a boolean property to the opposite of its\ncurrent value.",
|
|
13442
|
-
"class": "Ember",
|
|
13443
|
-
"module": "@ember/utils"
|
|
13444
|
-
},
|
|
13445
|
-
{
|
|
13446
|
-
"file": "packages/@ember/-internals/runtime/types/observable.d.ts",
|
|
13447
|
-
"line": 67,
|
|
13448
|
-
"description": "Returns the cached value of a computed property, if it exists.\nThis allows you to inspect the value of a computed property\nwithout accidentally invoking it if it is intended to be\ngenerated lazily.",
|
|
13449
|
-
"class": "Ember",
|
|
13450
|
-
"module": "@ember/utils"
|
|
13451
|
-
},
|
|
13452
13825
|
{
|
|
13453
13826
|
"file": "packages/@ember/-internals/utils/lib/guid.ts",
|
|
13454
13827
|
"line": 8,
|
|
@@ -13953,7 +14326,7 @@
|
|
|
13953
14326
|
},
|
|
13954
14327
|
{
|
|
13955
14328
|
"file": "packages/@ember/-internals/views/lib/mixins/view_support.js",
|
|
13956
|
-
"line":
|
|
14329
|
+
"line": 407,
|
|
13957
14330
|
"description": "Handle events from `EventDispatcher`",
|
|
13958
14331
|
"itemtype": "method",
|
|
13959
14332
|
"name": "handleEvent",
|
|
@@ -14167,7 +14540,7 @@
|
|
|
14167
14540
|
},
|
|
14168
14541
|
{
|
|
14169
14542
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14170
|
-
"line":
|
|
14543
|
+
"line": 157,
|
|
14171
14544
|
"access": "private",
|
|
14172
14545
|
"tagname": "",
|
|
14173
14546
|
"itemtype": "method",
|
|
@@ -14184,7 +14557,7 @@
|
|
|
14184
14557
|
},
|
|
14185
14558
|
{
|
|
14186
14559
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14187
|
-
"line":
|
|
14560
|
+
"line": 166,
|
|
14188
14561
|
"access": "private",
|
|
14189
14562
|
"tagname": "",
|
|
14190
14563
|
"itemtype": "method",
|
|
@@ -14201,7 +14574,7 @@
|
|
|
14201
14574
|
},
|
|
14202
14575
|
{
|
|
14203
14576
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14204
|
-
"line":
|
|
14577
|
+
"line": 181,
|
|
14205
14578
|
"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.",
|
|
14206
14579
|
"access": "private",
|
|
14207
14580
|
"tagname": "",
|
|
@@ -14219,7 +14592,7 @@
|
|
|
14219
14592
|
},
|
|
14220
14593
|
{
|
|
14221
14594
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14222
|
-
"line":
|
|
14595
|
+
"line": 197,
|
|
14223
14596
|
"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.",
|
|
14224
14597
|
"access": "private",
|
|
14225
14598
|
"tagname": "",
|
|
@@ -14237,7 +14610,7 @@
|
|
|
14237
14610
|
},
|
|
14238
14611
|
{
|
|
14239
14612
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14240
|
-
"line":
|
|
14613
|
+
"line": 213,
|
|
14241
14614
|
"description": "Determines if the element matches the specified selector.",
|
|
14242
14615
|
"access": "private",
|
|
14243
14616
|
"tagname": "",
|
|
@@ -14383,7 +14756,7 @@
|
|
|
14383
14756
|
},
|
|
14384
14757
|
{
|
|
14385
14758
|
"file": "packages/@ember/application/lib/application.js",
|
|
14386
|
-
"line":
|
|
14759
|
+
"line": 376,
|
|
14387
14760
|
"description": "Create an ApplicationInstance for this application.",
|
|
14388
14761
|
"access": "public",
|
|
14389
14762
|
"tagname": "",
|
|
@@ -14398,7 +14771,7 @@
|
|
|
14398
14771
|
},
|
|
14399
14772
|
{
|
|
14400
14773
|
"file": "packages/@ember/application/lib/application.js",
|
|
14401
|
-
"line":
|
|
14774
|
+
"line": 399,
|
|
14402
14775
|
"description": "Start tracking an ApplicationInstance for this application.\nUsed when the ApplicationInstance is created.",
|
|
14403
14776
|
"access": "private",
|
|
14404
14777
|
"tagname": "",
|
|
@@ -14409,7 +14782,7 @@
|
|
|
14409
14782
|
},
|
|
14410
14783
|
{
|
|
14411
14784
|
"file": "packages/@ember/application/lib/application.js",
|
|
14412
|
-
"line":
|
|
14785
|
+
"line": 410,
|
|
14413
14786
|
"description": "Stop tracking an ApplicationInstance for this application.\nUsed when the ApplicationInstance is about to be destroyed.",
|
|
14414
14787
|
"access": "private",
|
|
14415
14788
|
"tagname": "",
|
|
@@ -14420,7 +14793,7 @@
|
|
|
14420
14793
|
},
|
|
14421
14794
|
{
|
|
14422
14795
|
"file": "packages/@ember/application/lib/application.js",
|
|
14423
|
-
"line":
|
|
14796
|
+
"line": 421,
|
|
14424
14797
|
"description": "Enable the legacy globals mode by allowing this application to act\nas a global namespace. See the docs on the `_globalsMode` property\nfor details.\n\nMost of these features are already deprecated in 1.x, so we can\nstop using them internally and try to remove them.",
|
|
14425
14798
|
"access": "private",
|
|
14426
14799
|
"tagname": "",
|
|
@@ -14431,7 +14804,7 @@
|
|
|
14431
14804
|
},
|
|
14432
14805
|
{
|
|
14433
14806
|
"file": "packages/@ember/application/lib/application.js",
|
|
14434
|
-
"line":
|
|
14807
|
+
"line": 465,
|
|
14435
14808
|
"description": "Automatically kick-off the boot process for the application once the\nDOM has become ready.\n\nThe initialization itself is scheduled on the actions queue which\nensures that code-loading finishes before booting.\n\nIf you are asynchronously loading code, you should call `deferReadiness()`\nto defer booting, and then call `advanceReadiness()` once all of your code\nhas finished loading.",
|
|
14436
14809
|
"access": "private",
|
|
14437
14810
|
"tagname": "",
|
|
@@ -14442,7 +14815,7 @@
|
|
|
14442
14815
|
},
|
|
14443
14816
|
{
|
|
14444
14817
|
"file": "packages/@ember/application/lib/application.js",
|
|
14445
|
-
"line":
|
|
14818
|
+
"line": 492,
|
|
14446
14819
|
"description": "This is the autoboot flow:\n\n1. Boot the app by calling `this.boot()`\n2. Create an instance (or use the `__deprecatedInstance__` in globals mode)\n3. Boot the instance by calling `instance.boot()`\n4. Invoke the `App.ready()` callback\n5. Kick-off routing on the instance\n\nIdeally, this is all we would need to do:\n\n```javascript\n_autoBoot() {\n this.boot().then(() => {\n let instance = (this._globalsMode) ? this.__deprecatedInstance__ : this.buildInstance();\n return instance.boot();\n }).then((instance) => {\n App.ready();\n instance.startRouting();\n });\n}\n```\n\nUnfortunately, we cannot actually write this because we need to participate\nin the \"synchronous\" boot process. While the code above would work fine on\nthe initial boot (i.e. DOM ready), when `App.reset()` is called, we need to\nboot a new instance synchronously (see the documentation on `_bootSync()`\nfor details).\n\nBecause of this restriction, the actual logic of this method is located\ninside `didBecomeReady()`.",
|
|
14447
14820
|
"access": "private",
|
|
14448
14821
|
"tagname": "",
|
|
@@ -14453,7 +14826,7 @@
|
|
|
14453
14826
|
},
|
|
14454
14827
|
{
|
|
14455
14828
|
"file": "packages/@ember/application/lib/application.js",
|
|
14456
|
-
"line":
|
|
14829
|
+
"line": 537,
|
|
14457
14830
|
"description": "Use this to defer readiness until some condition is true.\n\nExample:\n\n```javascript\nimport Application from '@ember/application';\n\nlet App = Application.create();\n\nApp.deferReadiness();\n\nfetch('/auth-token')\n.then(response => response.json())\n.then(data => {\n App.token = data.token;\n App.advanceReadiness();\n});\n```\n\nThis allows you to perform asynchronous setup logic and defer\nbooting your application until the setup has finished.\n\nHowever, if the setup requires a loading UI, it might be better\nto use the router for this purpose.",
|
|
14458
14831
|
"itemtype": "method",
|
|
14459
14832
|
"name": "deferReadiness",
|
|
@@ -14464,7 +14837,7 @@
|
|
|
14464
14837
|
},
|
|
14465
14838
|
{
|
|
14466
14839
|
"file": "packages/@ember/application/lib/application.js",
|
|
14467
|
-
"line":
|
|
14840
|
+
"line": 587,
|
|
14468
14841
|
"description": "Call `advanceReadiness` after any asynchronous setup logic has completed.\nEach call to `deferReadiness` must be matched by a call to `advanceReadiness`\nor the application will never become ready and routing will not begin.",
|
|
14469
14842
|
"itemtype": "method",
|
|
14470
14843
|
"name": "advanceReadiness",
|
|
@@ -14478,7 +14851,7 @@
|
|
|
14478
14851
|
},
|
|
14479
14852
|
{
|
|
14480
14853
|
"file": "packages/@ember/application/lib/application.js",
|
|
14481
|
-
"line":
|
|
14854
|
+
"line": 624,
|
|
14482
14855
|
"description": "Initialize the application and return a promise that resolves with the `Application`\nobject when the boot process is complete.\n\nRun any application initializers and run the application load hook. These hooks may\nchoose to defer readiness. For example, an authentication hook might want to defer\nreadiness until the auth token has been retrieved.\n\nBy default, this method is called automatically on \"DOM ready\"; however, if autoboot\nis disabled, this is automatically called when the first application instance is\ncreated via `visit`.",
|
|
14483
14856
|
"access": "public",
|
|
14484
14857
|
"tagname": "",
|
|
@@ -14493,7 +14866,7 @@
|
|
|
14493
14866
|
},
|
|
14494
14867
|
{
|
|
14495
14868
|
"file": "packages/@ember/application/lib/application.js",
|
|
14496
|
-
"line":
|
|
14869
|
+
"line": 662,
|
|
14497
14870
|
"description": "Unfortunately, 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\".",
|
|
14498
14871
|
"access": "private",
|
|
14499
14872
|
"tagname": "",
|
|
@@ -14502,7 +14875,7 @@
|
|
|
14502
14875
|
},
|
|
14503
14876
|
{
|
|
14504
14877
|
"file": "packages/@ember/application/lib/application.js",
|
|
14505
|
-
"line":
|
|
14878
|
+
"line": 701,
|
|
14506
14879
|
"description": "Reset the application. This is typically used only in tests. It cleans up\nthe application in the following order:\n\n1. Deactivate existing routes\n2. Destroy all objects in the container\n3. Create a new application container\n4. Re-route to the existing url\n\nTypical Example:\n\n```javascript\nimport Application from '@ember/application';\nlet App;\n\nrun(function() {\n App = Application.create();\n});\n\nmodule('acceptance test', {\n setup: function() {\n App.reset();\n }\n});\n\ntest('first test', function() {\n // App is freshly reset\n});\n\ntest('second test', function() {\n // App is again freshly reset\n});\n```\n\nAdvanced Example:\n\nOccasionally you may want to prevent the app from initializing during\nsetup. This could enable extra configuration, or enable asserting prior\nto the app becoming ready.\n\n```javascript\nimport Application from '@ember/application';\nlet App;\n\nrun(function() {\n App = Application.create();\n});\n\nmodule('acceptance test', {\n setup: function() {\n run(function() {\n App.reset();\n App.deferReadiness();\n });\n }\n});\n\ntest('first test', function() {\n ok(true, 'something before app is initialized');\n\n run(function() {\n App.advanceReadiness();\n });\n\n ok(true, 'something after app is initialized');\n});\n```",
|
|
14507
14880
|
"itemtype": "method",
|
|
14508
14881
|
"name": "reset",
|
|
@@ -14513,7 +14886,7 @@
|
|
|
14513
14886
|
},
|
|
14514
14887
|
{
|
|
14515
14888
|
"file": "packages/@ember/application/lib/application.js",
|
|
14516
|
-
"line":
|
|
14889
|
+
"line": 804,
|
|
14517
14890
|
"access": "private",
|
|
14518
14891
|
"tagname": "",
|
|
14519
14892
|
"itemtype": "method",
|
|
@@ -14523,7 +14896,7 @@
|
|
|
14523
14896
|
},
|
|
14524
14897
|
{
|
|
14525
14898
|
"file": "packages/@ember/application/lib/application.js",
|
|
14526
|
-
"line":
|
|
14899
|
+
"line": 854,
|
|
14527
14900
|
"description": "Called when the Application has become ready, immediately before routing\nbegins. The call will be delayed until the DOM has become ready.",
|
|
14528
14901
|
"itemtype": "event",
|
|
14529
14902
|
"name": "ready",
|
|
@@ -14534,7 +14907,7 @@
|
|
|
14534
14907
|
},
|
|
14535
14908
|
{
|
|
14536
14909
|
"file": "packages/@ember/application/lib/application.js",
|
|
14537
|
-
"line":
|
|
14910
|
+
"line": 879,
|
|
14538
14911
|
"description": "Boot a new instance of `ApplicationInstance` for the current\napplication and navigate it to the given `url`. Returns a `Promise` that\nresolves with the instance when the initial routing and rendering is\ncomplete, or rejects with any error that occurred during the boot process.\n\nWhen `autoboot` is disabled, calling `visit` would first cause the\napplication to boot, which runs the application initializers.\n\nThis method also takes a hash of boot-time configuration options for\ncustomizing the instance's behavior. See the documentation on\n`ApplicationInstance.BootOptions` for details.\n\n`ApplicationInstance.BootOptions` is an interface class that exists\npurely to document the available options; you do not need to construct it\nmanually. Simply pass a regular JavaScript object containing of the\ndesired options:\n\n```javascript\nMyApp.visit(\"/\", { location: \"none\", rootElement: \"#container\" });\n```\n\n### Supported Scenarios\n\nWhile the `BootOptions` class exposes a large number of knobs, not all\ncombinations of them are valid; certain incompatible combinations might\nresult in unexpected behavior.\n\nFor example, booting the instance in the full browser environment\nwhile specifying a foreign `document` object (e.g. `{ isBrowser: true,\ndocument: iframe.contentDocument }`) does not work correctly today,\nlargely due to Ember's jQuery dependency.\n\nCurrently, there are three officially supported scenarios/configurations.\nUsages outside of these scenarios are not guaranteed to work, but please\nfeel free to file bug reports documenting your experience and any issues\nyou encountered to help expand support.\n\n#### Browser Applications (Manual Boot)\n\nThe setup is largely similar to how Ember works out-of-the-box. Normally,\nEmber will boot a default instance for your Application on \"DOM ready\".\nHowever, you can customize this behavior by disabling `autoboot`.\n\nFor example, this allows you to render a miniture demo of your application\ninto a specific area on your marketing website:\n\n```javascript\nimport MyApp from 'my-app';\n\n$(function() {\n let App = MyApp.create({ autoboot: false });\n\n let options = {\n // Override the router's location adapter to prevent it from updating\n // the URL in the address bar\n location: 'none',\n\n // Override the default `rootElement` on the app to render into a\n // specific `div` on the page\n rootElement: '#demo'\n };\n\n // Start the app at the special demo URL\n App.visit('/demo', options);\n});\n```\n\nOr perhaps you might want to boot two instances of your app on the same\npage for a split-screen multiplayer experience:\n\n```javascript\nimport MyApp from 'my-app';\n\n$(function() {\n let App = MyApp.create({ autoboot: false });\n\n let sessionId = MyApp.generateSessionID();\n\n let player1 = App.visit(`/matches/join?name=Player+1&session=${sessionId}`, { rootElement: '#left', location: 'none' });\n let player2 = App.visit(`/matches/join?name=Player+2&session=${sessionId}`, { rootElement: '#right', location: 'none' });\n\n Promise.all([player1, player2]).then(() => {\n // Both apps have completed the initial render\n $('#loading').fadeOut();\n });\n});\n```\n\nDo note that each app instance maintains their own registry/container, so\nthey will run in complete isolation by default.\n\n#### Server-Side Rendering (also known as FastBoot)\n\nThis setup allows you to run your Ember app in a server environment using\nNode.js and render its content into static HTML for SEO purposes.\n\n```javascript\nconst HTMLSerializer = new SimpleDOM.HTMLSerializer(SimpleDOM.voidMap);\n\nfunction renderURL(url) {\n let dom = new SimpleDOM.Document();\n let rootElement = dom.body;\n let options = { isBrowser: false, document: dom, rootElement: rootElement };\n\n return MyApp.visit(options).then(instance => {\n try {\n return HTMLSerializer.serialize(rootElement.firstChild);\n } finally {\n instance.destroy();\n }\n });\n}\n```\n\nIn this scenario, because Ember does not have access to a global `document`\nobject in the Node.js environment, you must provide one explicitly. In practice,\nin the non-browser environment, the stand-in `document` object only needs to\nimplement a limited subset of the full DOM API. The `SimpleDOM` library is known\nto work.\n\nSince there is no DOM access in the non-browser environment, you must also\nspecify a DOM `Element` object in the same `document` for the `rootElement` option\n(as opposed to a selector string like `\"body\"`).\n\nSee the documentation on the `isBrowser`, `document` and `rootElement` properties\non `ApplicationInstance.BootOptions` for details.\n\n#### Server-Side Resource Discovery\n\nThis setup allows you to run the routing layer of your Ember app in a server\nenvironment using Node.js and completely disable rendering. This allows you\nto simulate and discover the resources (i.e. AJAX requests) needed to fulfill\na given request and eagerly \"push\" these resources to the client.\n\n```app/initializers/network-service.js\nimport BrowserNetworkService from 'app/services/network/browser';\nimport NodeNetworkService from 'app/services/network/node';\n\n// Inject a (hypothetical) service for abstracting all AJAX calls and use\n// the appropriate implementation on the client/server. This also allows the\n// server to log all the AJAX calls made during a particular request and use\n// that for resource-discovery purpose.\n\nexport function initialize(application) {\n if (window) { // browser\n application.register('service:network', BrowserNetworkService);\n } else { // node\n application.register('service:network', NodeNetworkService);\n }\n};\n\nexport default {\n name: 'network-service',\n initialize: initialize\n};\n```\n\n```app/routes/post.js\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\n// An example of how the (hypothetical) service is used in routes.\n\nexport default class IndexRoute extends Route {\n @service network;\n\n model(params) {\n return this.network.fetch(`/api/posts/${params.post_id}.json`);\n }\n\n afterModel(post) {\n if (post.isExternalContent) {\n return this.network.fetch(`/api/external/?url=${post.externalURL}`);\n } else {\n return post;\n }\n }\n}\n```\n\n```javascript\n// Finally, put all the pieces together\n\nfunction discoverResourcesFor(url) {\n return MyApp.visit(url, { isBrowser: false, shouldRender: false }).then(instance => {\n let networkService = instance.lookup('service:network');\n return networkService.requests; // => { \"/api/posts/123.json\": \"...\" }\n });\n}\n```",
|
|
14539
14912
|
"access": "public",
|
|
14540
14913
|
"tagname": "",
|
|
@@ -14561,7 +14934,7 @@
|
|
|
14561
14934
|
},
|
|
14562
14935
|
{
|
|
14563
14936
|
"file": "packages/@ember/application/lib/application.js",
|
|
14564
|
-
"line":
|
|
14937
|
+
"line": 1100,
|
|
14565
14938
|
"description": "This creates a registry with the default Ember naming conventions.\n\nIt also configures the registry:\n\n* registered views are created every time they are looked up (they are\n not singletons)\n* registered templates are not factories; the registered value is\n returned directly.\n* the router receives the application as its `namespace` property\n* all controllers receive the router as their `target` and `controllers`\n properties\n* all controllers receive the application as their `namespace` property\n* the application view receives the application controller as its\n `controller` property\n* the application view receives the application template as its\n `defaultTemplate` property",
|
|
14566
14939
|
"itemtype": "method",
|
|
14567
14940
|
"name": "buildRegistry",
|
|
@@ -15005,7 +15378,7 @@
|
|
|
15005
15378
|
},
|
|
15006
15379
|
{
|
|
15007
15380
|
"file": "packages/@ember/debug/lib/deprecate.ts",
|
|
15008
|
-
"line":
|
|
15381
|
+
"line": 36,
|
|
15009
15382
|
"description": "Allows for runtime registration of handler functions that override the default deprecation behavior.\nDeprecations are invoked by calls to [@ember/debug/deprecate](/ember/release/classes/@ember%2Fdebug/methods/deprecate?anchor=deprecate).\nThe following example demonstrates its usage by registering a handler that throws an error if the\nmessage contains the word \"should\", otherwise defers to the default handler.\n\n```javascript\nimport { registerDeprecationHandler } from '@ember/debug';\n\nregisterDeprecationHandler((message, options, next) => {\n if (message.indexOf('should') !== -1) {\n throw new Error(`Deprecation message with should: ${message}`);\n } else {\n // defer to whatever handler was registered before this one\n next(message, options);\n }\n});\n```\n\nThe handler function takes the following arguments:\n\n<ul>\n <li> <code>message</code> - The message received from the deprecation call.</li>\n <li> <code>options</code> - An object passed in with the deprecation call containing additional information including:</li>\n <ul>\n <li> <code>id</code> - An id of the deprecation in the form of <code>package-name.specific-deprecation</code>.</li>\n <li> <code>until</code> - The Ember version number the feature and deprecation will be removed in.</li>\n </ul>\n <li> <code>next</code> - A function that calls into the previously registered handler.</li>\n</ul>",
|
|
15010
15383
|
"access": "public",
|
|
15011
15384
|
"tagname": "",
|
|
@@ -15025,7 +15398,7 @@
|
|
|
15025
15398
|
},
|
|
15026
15399
|
{
|
|
15027
15400
|
"file": "packages/@ember/debug/lib/deprecate.ts",
|
|
15028
|
-
"line":
|
|
15401
|
+
"line": 177,
|
|
15029
15402
|
"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.",
|
|
15030
15403
|
"itemtype": "method",
|
|
15031
15404
|
"name": "deprecate",
|
|
@@ -16778,9 +17151,41 @@
|
|
|
16778
17151
|
"class": "@ember/object/computed",
|
|
16779
17152
|
"module": "@ember/object"
|
|
16780
17153
|
},
|
|
17154
|
+
{
|
|
17155
|
+
"file": "packages/@ember/object/type-tests/core/index.test.ts",
|
|
17156
|
+
"line": 7,
|
|
17157
|
+
"class": "@ember/object/compat",
|
|
17158
|
+
"module": "@ember/object"
|
|
17159
|
+
},
|
|
17160
|
+
{
|
|
17161
|
+
"file": "packages/@ember/object/type-tests/core/index.test.ts",
|
|
17162
|
+
"line": 16,
|
|
17163
|
+
"class": "@ember/object/compat",
|
|
17164
|
+
"module": "@ember/object"
|
|
17165
|
+
},
|
|
17166
|
+
{
|
|
17167
|
+
"file": "packages/@ember/object/type-tests/core/index.test.ts",
|
|
17168
|
+
"line": 24,
|
|
17169
|
+
"class": "@ember/object/compat",
|
|
17170
|
+
"module": "@ember/object"
|
|
17171
|
+
},
|
|
17172
|
+
{
|
|
17173
|
+
"file": "packages/@ember/object/type-tests/ember-object.test.ts",
|
|
17174
|
+
"line": 7,
|
|
17175
|
+
"description": "Zero-argument case",
|
|
17176
|
+
"class": "@ember/object/compat",
|
|
17177
|
+
"module": "@ember/object"
|
|
17178
|
+
},
|
|
17179
|
+
{
|
|
17180
|
+
"file": "packages/@ember/object/type-tests/ember-object.test.ts",
|
|
17181
|
+
"line": 18,
|
|
17182
|
+
"description": "One-argument case",
|
|
17183
|
+
"class": "@ember/object/compat",
|
|
17184
|
+
"module": "@ember/object"
|
|
17185
|
+
},
|
|
16781
17186
|
{
|
|
16782
17187
|
"file": "packages/@ember/object/compat.ts",
|
|
16783
|
-
"line":
|
|
17188
|
+
"line": 40,
|
|
16784
17189
|
"description": "`@dependentKeyCompat` is decorator that can be used on _native getters_ that\nuse tracked properties. It exposes the getter to Ember's classic computed\nproperty and observer systems, so they can watch it for changes. It can be\nused in both native and classic classes.\n\nNative Example:\n\n```js\nimport { tracked } from '@glimmer/tracking';\nimport { dependentKeyCompat } from '@ember/object/compat';\nimport { computed, set } from '@ember/object';\n\nclass Person {\n @tracked firstName;\n @tracked lastName;\n\n @dependentKeyCompat\n get fullName() {\n return `${this.firstName} ${this.lastName}`;\n }\n}\n\nclass Profile {\n constructor(person) {\n set(this, 'person', person);\n }\n\n @computed('person.fullName')\n get helloMessage() {\n return `Hello, ${this.person.fullName}!`;\n }\n}\n```\n\nClassic Example:\n\n```js\nimport { tracked } from '@glimmer/tracking';\nimport { dependentKeyCompat } from '@ember/object/compat';\nimport EmberObject, { computed, observer, set } from '@ember/object';\n\nconst Person = EmberObject.extend({\n firstName: tracked(),\n lastName: tracked(),\n\n fullName: dependentKeyCompat(function() {\n return `${this.firstName} ${this.lastName}`;\n }),\n});\n\nconst Profile = EmberObject.extend({\n person: null,\n\n helloMessage: computed('person.fullName', function() {\n return `Hello, ${this.person.fullName}!`;\n }),\n\n onNameUpdated: observer('person.fullName', function() {\n console.log('person name updated!');\n }),\n});\n```\n\n`dependentKeyCompat()` can receive a getter function or an object containing\n`get`/`set` methods when used in classic classes, like computed properties.\n\nIn general, only properties which you _expect_ to be watched by older,\nuntracked clases should be marked as dependency compatible. The decorator is\nmeant as an interop layer for parts of Ember's older classic APIs, and should\nnot be applied to every possible getter/setter in classes. The number of\ndependency compatible getters should be _minimized_ wherever possible. New\napplication code should not need to use `@dependentKeyCompat`, since it is\nonly for interoperation with older code.",
|
|
16785
17190
|
"access": "public",
|
|
16786
17191
|
"tagname": "",
|
|
@@ -18006,7 +18411,19 @@
|
|
|
18006
18411
|
"warnings": [
|
|
18007
18412
|
{
|
|
18008
18413
|
"message": "replacing incorrect tag: returns with return",
|
|
18009
|
-
"line": " packages/@ember/-internals/container/lib/container.ts:
|
|
18414
|
+
"line": " packages/@ember/-internals/container/lib/container.ts:188"
|
|
18415
|
+
},
|
|
18416
|
+
{
|
|
18417
|
+
"message": "unknown tag: internal",
|
|
18418
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:602"
|
|
18419
|
+
},
|
|
18420
|
+
{
|
|
18421
|
+
"message": "unknown tag: internal",
|
|
18422
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:625"
|
|
18423
|
+
},
|
|
18424
|
+
{
|
|
18425
|
+
"message": "unknown tag: internal",
|
|
18426
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:646"
|
|
18010
18427
|
},
|
|
18011
18428
|
{
|
|
18012
18429
|
"message": "unknown tag: decorator",
|
|
@@ -18022,7 +18439,15 @@
|
|
|
18022
18439
|
},
|
|
18023
18440
|
{
|
|
18024
18441
|
"message": "replacing incorrect tag: returns with return",
|
|
18025
|
-
"line": " packages/@ember/-internals/routing/lib/system/route.ts:
|
|
18442
|
+
"line": " packages/@ember/-internals/routing/lib/system/route.ts:2383"
|
|
18443
|
+
},
|
|
18444
|
+
{
|
|
18445
|
+
"message": "unknown tag: internal",
|
|
18446
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:101"
|
|
18447
|
+
},
|
|
18448
|
+
{
|
|
18449
|
+
"message": "unknown tag: internal",
|
|
18450
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:107"
|
|
18026
18451
|
},
|
|
18027
18452
|
{
|
|
18028
18453
|
"message": "replacing incorrect tag: function with method",
|
|
@@ -18110,203 +18535,439 @@
|
|
|
18110
18535
|
},
|
|
18111
18536
|
{
|
|
18112
18537
|
"message": "Missing item type",
|
|
18113
|
-
"line": " packages/@ember/-internals/glimmer/lib/views/outlet.ts:
|
|
18538
|
+
"line": " packages/@ember/-internals/glimmer/lib/views/outlet.ts:104"
|
|
18114
18539
|
},
|
|
18115
18540
|
{
|
|
18116
18541
|
"message": "Missing item type",
|
|
18117
|
-
"line": " packages/@ember/-internals/glimmer/lib/views/outlet.ts:
|
|
18542
|
+
"line": " packages/@ember/-internals/glimmer/lib/views/outlet.ts:112"
|
|
18118
18543
|
},
|
|
18119
18544
|
{
|
|
18120
18545
|
"message": "Missing item type\nThe template-compiler does not support strict mode at this time.\nprecompile from ember-template-compiler returns a string and\nnot a template-factory, so it doesn't help with strict-mode testing.\n\nWe also can't import from `@ember/template-compiler` because it\ndoesn't exist to this kind of test, otherwise we'd be able to use\nprecompileTemplate, which would be perfect :D\n\nCopied(ish) from https://github.com/NullVoxPopuli/ember-repl/blob/main/addon/hbs.ts#L51",
|
|
18121
18546
|
"line": " packages/@ember/-internals/glimmer/tests/integration/custom-helper-test.js:12"
|
|
18122
18547
|
},
|
|
18548
|
+
{
|
|
18549
|
+
"message": "Missing item type",
|
|
18550
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:89"
|
|
18551
|
+
},
|
|
18552
|
+
{
|
|
18553
|
+
"message": "Missing item type",
|
|
18554
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:91"
|
|
18555
|
+
},
|
|
18556
|
+
{
|
|
18557
|
+
"message": "Missing item type",
|
|
18558
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:93"
|
|
18559
|
+
},
|
|
18560
|
+
{
|
|
18561
|
+
"message": "Missing item type",
|
|
18562
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:95"
|
|
18563
|
+
},
|
|
18564
|
+
{
|
|
18565
|
+
"message": "Missing item type",
|
|
18566
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:97"
|
|
18567
|
+
},
|
|
18568
|
+
{
|
|
18569
|
+
"message": "Missing item type",
|
|
18570
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:99"
|
|
18571
|
+
},
|
|
18572
|
+
{
|
|
18573
|
+
"message": "Missing item type",
|
|
18574
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:101"
|
|
18575
|
+
},
|
|
18576
|
+
{
|
|
18577
|
+
"message": "Missing item type",
|
|
18578
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:103"
|
|
18579
|
+
},
|
|
18580
|
+
{
|
|
18581
|
+
"message": "Missing item type",
|
|
18582
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:105"
|
|
18583
|
+
},
|
|
18584
|
+
{
|
|
18585
|
+
"message": "Missing item type",
|
|
18586
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:108"
|
|
18587
|
+
},
|
|
18588
|
+
{
|
|
18589
|
+
"message": "Missing item type",
|
|
18590
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:110"
|
|
18591
|
+
},
|
|
18592
|
+
{
|
|
18593
|
+
"message": "Missing item type",
|
|
18594
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:112"
|
|
18595
|
+
},
|
|
18596
|
+
{
|
|
18597
|
+
"message": "Missing item type",
|
|
18598
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:114"
|
|
18599
|
+
},
|
|
18600
|
+
{
|
|
18601
|
+
"message": "Missing item type",
|
|
18602
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:118"
|
|
18603
|
+
},
|
|
18604
|
+
{
|
|
18605
|
+
"message": "Missing item type",
|
|
18606
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:141"
|
|
18607
|
+
},
|
|
18608
|
+
{
|
|
18609
|
+
"message": "Missing item type",
|
|
18610
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:155"
|
|
18611
|
+
},
|
|
18612
|
+
{
|
|
18613
|
+
"message": "Missing item type",
|
|
18614
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:160"
|
|
18615
|
+
},
|
|
18616
|
+
{
|
|
18617
|
+
"message": "Missing item type",
|
|
18618
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:165"
|
|
18619
|
+
},
|
|
18620
|
+
{
|
|
18621
|
+
"message": "Missing item type",
|
|
18622
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:170"
|
|
18623
|
+
},
|
|
18624
|
+
{
|
|
18625
|
+
"message": "Missing item type",
|
|
18626
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:175"
|
|
18627
|
+
},
|
|
18628
|
+
{
|
|
18629
|
+
"message": "Missing item type",
|
|
18630
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:180"
|
|
18631
|
+
},
|
|
18632
|
+
{
|
|
18633
|
+
"message": "Missing item type",
|
|
18634
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:195"
|
|
18635
|
+
},
|
|
18636
|
+
{
|
|
18637
|
+
"message": "Missing item type",
|
|
18638
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:208"
|
|
18639
|
+
},
|
|
18640
|
+
{
|
|
18641
|
+
"message": "Missing item type",
|
|
18642
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:215"
|
|
18643
|
+
},
|
|
18644
|
+
{
|
|
18645
|
+
"message": "Missing item type",
|
|
18646
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:222"
|
|
18647
|
+
},
|
|
18648
|
+
{
|
|
18649
|
+
"message": "Missing item type",
|
|
18650
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:229"
|
|
18651
|
+
},
|
|
18652
|
+
{
|
|
18653
|
+
"message": "Missing item type",
|
|
18654
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:236"
|
|
18655
|
+
},
|
|
18656
|
+
{
|
|
18657
|
+
"message": "Missing item type",
|
|
18658
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:253"
|
|
18659
|
+
},
|
|
18660
|
+
{
|
|
18661
|
+
"message": "Missing item type",
|
|
18662
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:268"
|
|
18663
|
+
},
|
|
18664
|
+
{
|
|
18665
|
+
"message": "Missing item type",
|
|
18666
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:282"
|
|
18667
|
+
},
|
|
18668
|
+
{
|
|
18669
|
+
"message": "Missing item type",
|
|
18670
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:287"
|
|
18671
|
+
},
|
|
18672
|
+
{
|
|
18673
|
+
"message": "Missing item type",
|
|
18674
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:307"
|
|
18675
|
+
},
|
|
18676
|
+
{
|
|
18677
|
+
"message": "Missing item type",
|
|
18678
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:321"
|
|
18679
|
+
},
|
|
18680
|
+
{
|
|
18681
|
+
"message": "Missing item type",
|
|
18682
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:327"
|
|
18683
|
+
},
|
|
18684
|
+
{
|
|
18685
|
+
"message": "Missing item type",
|
|
18686
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:332"
|
|
18687
|
+
},
|
|
18688
|
+
{
|
|
18689
|
+
"message": "Missing item type",
|
|
18690
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:353"
|
|
18691
|
+
},
|
|
18692
|
+
{
|
|
18693
|
+
"message": "Missing item type",
|
|
18694
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:368"
|
|
18695
|
+
},
|
|
18123
18696
|
{
|
|
18124
18697
|
"message": "Missing item type\nFlattening is based on a global revision counter. If the revision has\nbumped it means that somewhere in a class inheritance chain something has\nchanged, so we need to reflatten everything. This can only happen if:\n\n1. A meta has been flattened (listener has been called)\n2. The meta is a prototype meta with children who have inherited its\n listeners\n3. A new listener is subsequently added to the meta (e.g. via `.reopen()`)\n\nThis is a very rare occurrence, so while the counter is global it shouldn't\nbe updated very often in practice.",
|
|
18125
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18698
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:472"
|
|
18126
18699
|
},
|
|
18127
18700
|
{
|
|
18128
|
-
"message": "Missing item type
|
|
18129
|
-
"line": " packages/@ember/-internals/
|
|
18701
|
+
"message": "Missing item type",
|
|
18702
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:547"
|
|
18130
18703
|
},
|
|
18131
18704
|
{
|
|
18132
18705
|
"message": "Missing item type",
|
|
18133
|
-
"line": " packages/@ember/-internals/
|
|
18706
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:580"
|
|
18134
18707
|
},
|
|
18135
18708
|
{
|
|
18136
18709
|
"message": "Missing item type",
|
|
18137
|
-
"line": " packages/@ember/-internals/
|
|
18710
|
+
"line": " packages/@ember/-internals/metal/lib/computed.ts:709"
|
|
18138
18711
|
},
|
|
18139
18712
|
{
|
|
18140
|
-
"message": "Missing item type
|
|
18141
|
-
"line": " packages/@ember/-internals/
|
|
18713
|
+
"message": "Missing item type",
|
|
18714
|
+
"line": " packages/@ember/-internals/metal/lib/computed.ts:715"
|
|
18142
18715
|
},
|
|
18143
18716
|
{
|
|
18144
18717
|
"message": "Missing item type",
|
|
18145
|
-
"line": " packages/@ember/-internals/
|
|
18718
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:528"
|
|
18146
18719
|
},
|
|
18147
18720
|
{
|
|
18148
18721
|
"message": "Missing item type",
|
|
18149
|
-
"line": " packages/@ember/-internals/
|
|
18722
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:531"
|
|
18150
18723
|
},
|
|
18151
18724
|
{
|
|
18152
18725
|
"message": "Missing item type",
|
|
18153
|
-
"line": " packages/@ember/-internals/
|
|
18726
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:534"
|
|
18154
18727
|
},
|
|
18155
18728
|
{
|
|
18156
18729
|
"message": "Missing item type",
|
|
18157
|
-
"line": " packages/@ember/-internals/
|
|
18730
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:537"
|
|
18158
18731
|
},
|
|
18159
18732
|
{
|
|
18160
|
-
"message": "Missing item type
|
|
18161
|
-
"line": " packages/@ember/-internals/
|
|
18733
|
+
"message": "Missing item type",
|
|
18734
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:540"
|
|
18162
18735
|
},
|
|
18163
18736
|
{
|
|
18164
|
-
"message": "Missing item type
|
|
18165
|
-
"line": " packages/@ember/-internals/
|
|
18737
|
+
"message": "Missing item type",
|
|
18738
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:543"
|
|
18166
18739
|
},
|
|
18167
18740
|
{
|
|
18168
|
-
"message": "Missing item type
|
|
18169
|
-
"line": " packages/@ember/-internals/
|
|
18741
|
+
"message": "Missing item type",
|
|
18742
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:584"
|
|
18170
18743
|
},
|
|
18171
18744
|
{
|
|
18172
|
-
"message": "Missing item type
|
|
18173
|
-
"line": " packages/@ember/-internals/
|
|
18745
|
+
"message": "Missing item type",
|
|
18746
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:641"
|
|
18174
18747
|
},
|
|
18175
18748
|
{
|
|
18176
18749
|
"message": "Missing item type",
|
|
18177
|
-
"line": " packages/@ember/-internals/
|
|
18750
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:667"
|
|
18178
18751
|
},
|
|
18179
18752
|
{
|
|
18180
18753
|
"message": "Missing item type",
|
|
18181
|
-
"line": " packages/@ember/-internals/
|
|
18754
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:674"
|
|
18182
18755
|
},
|
|
18183
18756
|
{
|
|
18184
18757
|
"message": "Missing item type",
|
|
18185
|
-
"line": " packages/@ember/-internals/
|
|
18758
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:679"
|
|
18186
18759
|
},
|
|
18187
18760
|
{
|
|
18188
|
-
"message": "Missing item type\
|
|
18189
|
-
"line": " packages/@ember/-internals/
|
|
18761
|
+
"message": "Missing item type\nPrimarily used for cases where we are redefining a class, e.g. mixins/reopen\nbeing applied later. Revalidates all the observers, resetting their tags.",
|
|
18762
|
+
"line": " packages/@ember/-internals/metal/lib/observer.ts:154"
|
|
18190
18763
|
},
|
|
18191
18764
|
{
|
|
18192
|
-
"message": "Missing item type
|
|
18193
|
-
"line": " packages/@ember/-internals/
|
|
18765
|
+
"message": "Missing item type",
|
|
18766
|
+
"line": " packages/@ember/-internals/metal/lib/tracked.ts:16"
|
|
18194
18767
|
},
|
|
18195
18768
|
{
|
|
18196
|
-
"message": "Missing item type
|
|
18197
|
-
"line": " packages/@ember/-internals/
|
|
18769
|
+
"message": "Missing item type",
|
|
18770
|
+
"line": " packages/@ember/-internals/owner/index.ts:36"
|
|
18198
18771
|
},
|
|
18199
18772
|
{
|
|
18200
|
-
"message": "Missing item type
|
|
18201
|
-
"line": " packages/@ember/-internals/
|
|
18773
|
+
"message": "Missing item type",
|
|
18774
|
+
"line": " packages/@ember/-internals/owner/index.ts:38"
|
|
18202
18775
|
},
|
|
18203
18776
|
{
|
|
18204
|
-
"message": "Missing item type
|
|
18205
|
-
"line": " packages/@ember/-internals/
|
|
18777
|
+
"message": "Missing item type",
|
|
18778
|
+
"line": " packages/@ember/-internals/owner/index.ts:40"
|
|
18206
18779
|
},
|
|
18207
18780
|
{
|
|
18208
|
-
"message": "Missing item type
|
|
18209
|
-
"line": " packages/@ember/-internals/
|
|
18781
|
+
"message": "Missing item type",
|
|
18782
|
+
"line": " packages/@ember/-internals/routing/lib/location/auto_location.ts:76"
|
|
18210
18783
|
},
|
|
18211
18784
|
{
|
|
18212
|
-
"message": "Missing item type\
|
|
18213
|
-
"line": " packages/@ember/-internals/
|
|
18785
|
+
"message": "Missing item type\nCalled by the router to instruct the location to do any feature detection\nnecessary. In the case of AutoLocation, we detect whether to use history\nor hash concrete implementations.",
|
|
18786
|
+
"line": " packages/@ember/-internals/routing/lib/location/auto_location.ts:154"
|
|
18214
18787
|
},
|
|
18215
18788
|
{
|
|
18216
|
-
"message": "Missing item type
|
|
18217
|
-
"line": " packages/@ember/-internals/
|
|
18789
|
+
"message": "Missing item type",
|
|
18790
|
+
"line": " packages/@ember/-internals/routing/lib/location/auto_location.ts:300"
|
|
18218
18791
|
},
|
|
18219
18792
|
{
|
|
18220
|
-
"message": "Missing item type
|
|
18221
|
-
"line": " packages/@ember/-internals/
|
|
18793
|
+
"message": "Missing item type",
|
|
18794
|
+
"line": " packages/@ember/-internals/routing/lib/location/util.ts:1"
|
|
18222
18795
|
},
|
|
18223
18796
|
{
|
|
18224
|
-
"message": "Missing item type
|
|
18225
|
-
"line": " packages/@ember/-internals/
|
|
18797
|
+
"message": "Missing item type",
|
|
18798
|
+
"line": " packages/@ember/-internals/routing/lib/location/util.ts:16"
|
|
18226
18799
|
},
|
|
18227
18800
|
{
|
|
18228
|
-
"message": "Missing item type
|
|
18229
|
-
"line": " packages/@ember/-internals/
|
|
18801
|
+
"message": "Missing item type",
|
|
18802
|
+
"line": " packages/@ember/-internals/routing/lib/location/util.ts:25"
|
|
18230
18803
|
},
|
|
18231
18804
|
{
|
|
18232
|
-
"message": "Missing item type\
|
|
18233
|
-
"line": " packages/@ember/-internals/
|
|
18805
|
+
"message": "Missing item type\nReplaces the current location, making sure we explicitly include the origin\nto prevent redirecting to a different origin.",
|
|
18806
|
+
"line": " packages/@ember/-internals/routing/lib/location/util.ts:103"
|
|
18234
18807
|
},
|
|
18235
18808
|
{
|
|
18236
|
-
"message": "Missing item type\
|
|
18237
|
-
"line": " packages/@ember/-internals/
|
|
18809
|
+
"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`.",
|
|
18810
|
+
"line": " packages/@ember/-internals/routing/lib/system/router.ts:1606"
|
|
18811
|
+
},
|
|
18812
|
+
{
|
|
18813
|
+
"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.",
|
|
18814
|
+
"line": " packages/@ember/-internals/routing/lib/system/router.ts:1627"
|
|
18815
|
+
},
|
|
18816
|
+
{
|
|
18817
|
+
"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.",
|
|
18818
|
+
"line": " packages/@ember/-internals/routing/lib/system/router.ts:1649"
|
|
18238
18819
|
},
|
|
18239
18820
|
{
|
|
18240
18821
|
"message": "Missing item type\nThis mixin allows for Ember objects to subscribe to and emit events.",
|
|
18241
|
-
"line": " packages/@ember/-internals/runtime/
|
|
18822
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/evented.d.ts:3"
|
|
18242
18823
|
},
|
|
18243
18824
|
{
|
|
18244
18825
|
"message": "Missing item type\nSubscribes to a named event with given function.",
|
|
18245
|
-
"line": " packages/@ember/-internals/runtime/
|
|
18826
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/evented.d.ts:7"
|
|
18246
18827
|
},
|
|
18247
18828
|
{
|
|
18248
18829
|
"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.",
|
|
18249
|
-
"line": " packages/@ember/-internals/runtime/
|
|
18830
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/evented.d.ts:16"
|
|
18250
18831
|
},
|
|
18251
18832
|
{
|
|
18252
18833
|
"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.",
|
|
18253
|
-
"line": " packages/@ember/-internals/runtime/
|
|
18834
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/evented.d.ts:27"
|
|
18254
18835
|
},
|
|
18255
18836
|
{
|
|
18256
18837
|
"message": "Missing item type\nCancels subscription for given name, target, and method.",
|
|
18257
|
-
"line": " packages/@ember/-internals/runtime/
|
|
18838
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/evented.d.ts:33"
|
|
18258
18839
|
},
|
|
18259
18840
|
{
|
|
18260
18841
|
"message": "Missing item type\nChecks to see if object has any subscriptions for named event.",
|
|
18261
|
-
"line": " packages/@ember/-internals/runtime/
|
|
18842
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/evented.d.ts:42"
|
|
18262
18843
|
},
|
|
18263
18844
|
{
|
|
18264
18845
|
"message": "Missing item type\nThis mixin provides properties and property observing functionality, core features of the Ember object model.",
|
|
18265
|
-
"line": " packages/@ember/-internals/runtime/
|
|
18846
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:7"
|
|
18266
18847
|
},
|
|
18267
18848
|
{
|
|
18268
18849
|
"message": "Missing item type\nRetrieves the value of a property from the object.",
|
|
18269
|
-
"line": " packages/@ember/-internals/runtime/
|
|
18850
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:11"
|
|
18270
18851
|
},
|
|
18271
18852
|
{
|
|
18272
18853
|
"message": "Missing item type\nTo get the values of multiple properties at once, call `getProperties`\nwith a list of strings or an array:",
|
|
18273
|
-
"line": " packages/@ember/-internals/runtime/
|
|
18854
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:16"
|
|
18274
18855
|
},
|
|
18275
18856
|
{
|
|
18276
18857
|
"message": "Missing item type\nSets the provided key or path to the value.",
|
|
18277
|
-
"line": " packages/@ember/-internals/runtime/
|
|
18858
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:24"
|
|
18278
18859
|
},
|
|
18279
18860
|
{
|
|
18280
18861
|
"message": "Missing item type\nSets a list of properties at once. These properties are set inside\na single `beginPropertyChanges` and `endPropertyChanges` batch, so\nobservers will be buffered.",
|
|
18281
|
-
"line": " packages/@ember/-internals/runtime/
|
|
18862
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:30"
|
|
18282
18863
|
},
|
|
18283
18864
|
{
|
|
18284
18865
|
"message": "Missing item type\nConvenience method to call `propertyWillChange` and `propertyDidChange` in\nsuccession.",
|
|
18285
|
-
"line": " packages/@ember/-internals/runtime/
|
|
18866
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:37"
|
|
18286
18867
|
},
|
|
18287
18868
|
{
|
|
18288
18869
|
"message": "Missing item type\nAdds an observer on a property.",
|
|
18289
|
-
"line": " packages/@ember/-internals/runtime/
|
|
18870
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:43"
|
|
18290
18871
|
},
|
|
18291
18872
|
{
|
|
18292
18873
|
"message": "Missing item type\nRemove an observer you have previously registered on this object. Pass\nthe same key, target, and method you passed to `addObserver()` and your\ntarget will no longer receive notifications.",
|
|
18293
|
-
"line": " packages/@ember/-internals/runtime/
|
|
18874
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:49"
|
|
18294
18875
|
},
|
|
18295
18876
|
{
|
|
18296
18877
|
"message": "Missing item type\nSet the value of a property to the current value plus some amount.",
|
|
18297
|
-
"line": " packages/@ember/-internals/runtime/
|
|
18878
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:62"
|
|
18298
18879
|
},
|
|
18299
18880
|
{
|
|
18300
18881
|
"message": "Missing item type\nSet the value of a property to the current value minus some amount.",
|
|
18301
|
-
"line": " packages/@ember/-internals/runtime/
|
|
18882
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:68"
|
|
18302
18883
|
},
|
|
18303
18884
|
{
|
|
18304
18885
|
"message": "Missing item type\nSet the value of a boolean property to the opposite of its\ncurrent value.",
|
|
18305
|
-
"line": " packages/@ember/-internals/runtime/
|
|
18886
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:74"
|
|
18306
18887
|
},
|
|
18307
18888
|
{
|
|
18308
18889
|
"message": "Missing item type\nReturns the cached value of a computed property, if it exists.\nThis allows you to inspect the value of a computed property\nwithout accidentally invoking it if it is intended to be\ngenerated lazily.",
|
|
18309
|
-
"line": " packages/@ember/-internals/runtime/
|
|
18890
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:80"
|
|
18891
|
+
},
|
|
18892
|
+
{
|
|
18893
|
+
"message": "Missing item type\nUsed to infer the type of ember classes of type `T`.\n\nGenerally you would use `EmberClass.create()` instead of `new EmberClass()`.\n\nThe single-arg constructor is required by the typescript compiler.\nThe multi-arg constructor is included for better ergonomics.\n\nImplementation is carefully chosen for the reasons described in\nhttps://github.com/typed-ember/ember-typings/pull/29",
|
|
18894
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:1"
|
|
18895
|
+
},
|
|
18896
|
+
{
|
|
18897
|
+
"message": "Missing item type",
|
|
18898
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:19"
|
|
18899
|
+
},
|
|
18900
|
+
{
|
|
18901
|
+
"message": "Missing item type",
|
|
18902
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:25"
|
|
18903
|
+
},
|
|
18904
|
+
{
|
|
18905
|
+
"message": "Missing item type",
|
|
18906
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:28"
|
|
18907
|
+
},
|
|
18908
|
+
{
|
|
18909
|
+
"message": "Missing item type\nCoreObject constructor takes initial object properties as an argument.",
|
|
18910
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:31"
|
|
18911
|
+
},
|
|
18912
|
+
{
|
|
18913
|
+
"message": "Missing item type",
|
|
18914
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:36"
|
|
18915
|
+
},
|
|
18916
|
+
{
|
|
18917
|
+
"message": "Missing item type\nAn overridable method called when objects are instantiated. By default,\ndoes nothing unless it is overridden during class definition.",
|
|
18918
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:39"
|
|
18919
|
+
},
|
|
18920
|
+
{
|
|
18921
|
+
"message": "Missing item type\nDefines the properties that will be concatenated from the superclass (instead of overridden).",
|
|
18922
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:45"
|
|
18923
|
+
},
|
|
18924
|
+
{
|
|
18925
|
+
"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.",
|
|
18926
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:51"
|
|
18927
|
+
},
|
|
18928
|
+
{
|
|
18929
|
+
"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.",
|
|
18930
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:57"
|
|
18931
|
+
},
|
|
18932
|
+
{
|
|
18933
|
+
"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.",
|
|
18934
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:64"
|
|
18935
|
+
},
|
|
18936
|
+
{
|
|
18937
|
+
"message": "Missing item type\nOverride to implement teardown.",
|
|
18938
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:75"
|
|
18939
|
+
},
|
|
18940
|
+
{
|
|
18941
|
+
"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>\").",
|
|
18942
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:80"
|
|
18943
|
+
},
|
|
18944
|
+
{
|
|
18945
|
+
"message": "Missing item type",
|
|
18946
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:92"
|
|
18947
|
+
},
|
|
18948
|
+
{
|
|
18949
|
+
"message": "Missing item type",
|
|
18950
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:98"
|
|
18951
|
+
},
|
|
18952
|
+
{
|
|
18953
|
+
"message": "Missing item type\nIterate over each computed property for the class, passing its name and any\nassociated metadata (see metaForProperty) to the callback.",
|
|
18954
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:101"
|
|
18955
|
+
},
|
|
18956
|
+
{
|
|
18957
|
+
"message": "Missing item type\nReturns the original hash that was passed to meta().",
|
|
18958
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:107"
|
|
18959
|
+
},
|
|
18960
|
+
{
|
|
18961
|
+
"message": "Missing item type",
|
|
18962
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:114"
|
|
18963
|
+
},
|
|
18964
|
+
{
|
|
18965
|
+
"message": "Missing item type",
|
|
18966
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:117"
|
|
18967
|
+
},
|
|
18968
|
+
{
|
|
18969
|
+
"message": "Missing item type",
|
|
18970
|
+
"line": " packages/@ember/-internals/runtime/lib/system/object.d.ts:9"
|
|
18310
18971
|
},
|
|
18311
18972
|
{
|
|
18312
18973
|
"message": "Missing item type",
|
|
@@ -18322,7 +18983,7 @@
|
|
|
18322
18983
|
},
|
|
18323
18984
|
{
|
|
18324
18985
|
"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\".",
|
|
18325
|
-
"line": " packages/@ember/application/lib/application.js:
|
|
18986
|
+
"line": " packages/@ember/application/lib/application.js:662"
|
|
18326
18987
|
},
|
|
18327
18988
|
{
|
|
18328
18989
|
"message": "Missing item type\nOverrides the base `EngineInstance._bootSync` method with concerns relevant\nto booting application (instead of engine) instances.\n\nThis method should only contain synchronous boot concerns. Asynchronous\nboot concerns should eventually be moved to the `boot` method, which\nreturns a promise.\n\nUntil all boot code has been made asynchronous, we need to continue to\nexpose this method for use *internally* in places where we need to boot an\ninstance synchronously.",
|
|
@@ -18359,6 +19020,26 @@
|
|
|
18359
19020
|
{
|
|
18360
19021
|
"message": "Missing item type\nUnfortunately, a lot of existing code assumes booting an instance is\nsynchronous – specifically, a lot of tests assume the last call to\n`app.advanceReadiness()` or `app.reset()` will result in a new instance\nbeing fully-booted when the current runloop completes.\n\nWe would like new code (like the `visit` API) to stop making this\nassumption, so we created the asynchronous version above that returns a\npromise. But until we have migrated all the code, we would have to expose\nthis method for use *internally* in places where we need to boot an instance\nsynchronously.",
|
|
18361
19022
|
"line": " packages/@ember/engine/instance.js:85"
|
|
19023
|
+
},
|
|
19024
|
+
{
|
|
19025
|
+
"message": "Missing item type",
|
|
19026
|
+
"line": " packages/@ember/object/type-tests/core/index.test.ts:7"
|
|
19027
|
+
},
|
|
19028
|
+
{
|
|
19029
|
+
"message": "Missing item type",
|
|
19030
|
+
"line": " packages/@ember/object/type-tests/core/index.test.ts:16"
|
|
19031
|
+
},
|
|
19032
|
+
{
|
|
19033
|
+
"message": "Missing item type",
|
|
19034
|
+
"line": " packages/@ember/object/type-tests/core/index.test.ts:24"
|
|
19035
|
+
},
|
|
19036
|
+
{
|
|
19037
|
+
"message": "Missing item type\nZero-argument case",
|
|
19038
|
+
"line": " packages/@ember/object/type-tests/ember-object.test.ts:7"
|
|
19039
|
+
},
|
|
19040
|
+
{
|
|
19041
|
+
"message": "Missing item type\nOne-argument case",
|
|
19042
|
+
"line": " packages/@ember/object/type-tests/ember-object.test.ts:18"
|
|
18362
19043
|
}
|
|
18363
19044
|
]
|
|
18364
19045
|
}
|