ember-source 4.4.0-alpha.6 → 4.4.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -5
- package/build-metadata.json +3 -3
- package/dist/ember-template-compiler.js +2 -2
- package/dist/ember-template-compiler.map +1 -1
- package/dist/ember-testing.js +1 -1
- package/dist/ember-testing.map +1 -1
- package/dist/ember.debug.js +304 -593
- package/dist/ember.debug.map +1 -1
- package/dist/header/license.js +1 -1
- package/dist/packages/@ember/-internals/container/index.js +0 -1
- package/dist/packages/@ember/-internals/glimmer/index.js +102 -217
- package/dist/packages/@ember/-internals/meta/lib/meta.js +1 -1
- package/dist/packages/@ember/-internals/metal/index.js +6 -3
- package/dist/packages/@ember/-internals/routing/lib/system/route-info.js +4 -0
- package/dist/packages/@ember/-internals/routing/lib/system/transition.js +4 -0
- package/dist/packages/@ember/-internals/runtime/lib/system/core_object.js +118 -302
- package/dist/packages/@ember/-internals/runtime/lib/system/object.js +8 -23
- package/dist/packages/@ember/-internals/views/lib/views/core_view.js +47 -29
- package/dist/packages/ember/version.js +1 -1
- package/docs/data.json +401 -760
- package/package.json +15 -15
- package/dist/packages/@ember/renderer/index.js +0 -21
package/docs/data.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "The Ember API",
|
|
4
4
|
"description": "The Ember API: a framework for building ambitious web applications",
|
|
5
5
|
"url": "https://emberjs.com/",
|
|
6
|
-
"version": "4.4.0-alpha.
|
|
6
|
+
"version": "4.4.0-alpha.7"
|
|
7
7
|
},
|
|
8
8
|
"files": {
|
|
9
9
|
"node_modules/rsvp/lib/rsvp/promise/all.js": {
|
|
@@ -549,6 +549,13 @@
|
|
|
549
549
|
},
|
|
550
550
|
"namespaces": {}
|
|
551
551
|
},
|
|
552
|
+
"packages/@ember/-internals/glimmer/lib/renderer.ts": {
|
|
553
|
+
"name": "packages/@ember/-internals/glimmer/lib/renderer.ts",
|
|
554
|
+
"modules": {},
|
|
555
|
+
"classes": {},
|
|
556
|
+
"fors": {},
|
|
557
|
+
"namespaces": {}
|
|
558
|
+
},
|
|
552
559
|
"packages/@ember/-internals/glimmer/tests/integration/custom-helper-test.js": {
|
|
553
560
|
"name": "packages/@ember/-internals/glimmer/tests/integration/custom-helper-test.js",
|
|
554
561
|
"modules": {},
|
|
@@ -891,7 +898,9 @@
|
|
|
891
898
|
},
|
|
892
899
|
"packages/@ember/-internals/routing/lib/system/route-info.ts": {
|
|
893
900
|
"name": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
894
|
-
"modules": {
|
|
901
|
+
"modules": {
|
|
902
|
+
"@ember/routing": 1
|
|
903
|
+
},
|
|
895
904
|
"classes": {
|
|
896
905
|
"RouteInfoWithAttributes": 1,
|
|
897
906
|
"RouteInfo": 1
|
|
@@ -901,9 +910,7 @@
|
|
|
901
910
|
},
|
|
902
911
|
"packages/@ember/-internals/routing/lib/system/route.ts": {
|
|
903
912
|
"name": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
904
|
-
"modules": {
|
|
905
|
-
"@ember/routing": 1
|
|
906
|
-
},
|
|
913
|
+
"modules": {},
|
|
907
914
|
"classes": {
|
|
908
915
|
"Route": 1
|
|
909
916
|
},
|
|
@@ -1098,15 +1105,8 @@
|
|
|
1098
1105
|
"fors": {},
|
|
1099
1106
|
"namespaces": {}
|
|
1100
1107
|
},
|
|
1101
|
-
"packages/@ember/-internals/runtime/lib/system/core_object.
|
|
1102
|
-
"name": "packages/@ember/-internals/runtime/lib/system/core_object.
|
|
1103
|
-
"modules": {},
|
|
1104
|
-
"classes": {},
|
|
1105
|
-
"fors": {},
|
|
1106
|
-
"namespaces": {}
|
|
1107
|
-
},
|
|
1108
|
-
"packages/@ember/-internals/runtime/lib/system/core_object.js": {
|
|
1109
|
-
"name": "packages/@ember/-internals/runtime/lib/system/core_object.js",
|
|
1108
|
+
"packages/@ember/-internals/runtime/lib/system/core_object.ts": {
|
|
1109
|
+
"name": "packages/@ember/-internals/runtime/lib/system/core_object.ts",
|
|
1110
1110
|
"modules": {},
|
|
1111
1111
|
"classes": {
|
|
1112
1112
|
"CoreObject": 1
|
|
@@ -1125,15 +1125,8 @@
|
|
|
1125
1125
|
"fors": {},
|
|
1126
1126
|
"namespaces": {}
|
|
1127
1127
|
},
|
|
1128
|
-
"packages/@ember/-internals/runtime/lib/system/object.
|
|
1129
|
-
"name": "packages/@ember/-internals/runtime/lib/system/object.
|
|
1130
|
-
"modules": {},
|
|
1131
|
-
"classes": {},
|
|
1132
|
-
"fors": {},
|
|
1133
|
-
"namespaces": {}
|
|
1134
|
-
},
|
|
1135
|
-
"packages/@ember/-internals/runtime/lib/system/object.js": {
|
|
1136
|
-
"name": "packages/@ember/-internals/runtime/lib/system/object.js",
|
|
1128
|
+
"packages/@ember/-internals/runtime/lib/system/object.ts": {
|
|
1129
|
+
"name": "packages/@ember/-internals/runtime/lib/system/object.ts",
|
|
1137
1130
|
"modules": {},
|
|
1138
1131
|
"classes": {
|
|
1139
1132
|
"EmberObject": 1
|
|
@@ -1599,17 +1592,6 @@
|
|
|
1599
1592
|
},
|
|
1600
1593
|
"namespaces": {}
|
|
1601
1594
|
},
|
|
1602
|
-
"packages/@ember/renderer/index.ts": {
|
|
1603
|
-
"name": "packages/@ember/renderer/index.ts",
|
|
1604
|
-
"modules": {
|
|
1605
|
-
"@ember/renderer": 1
|
|
1606
|
-
},
|
|
1607
|
-
"classes": {
|
|
1608
|
-
"Renderer": 1
|
|
1609
|
-
},
|
|
1610
|
-
"fors": {},
|
|
1611
|
-
"namespaces": {}
|
|
1612
|
-
},
|
|
1613
1595
|
"packages/@ember/runloop/index.ts": {
|
|
1614
1596
|
"name": "packages/@ember/runloop/index.ts",
|
|
1615
1597
|
"modules": {
|
|
@@ -1860,6 +1842,8 @@
|
|
|
1860
1842
|
"HistoryLocation": 1,
|
|
1861
1843
|
"NoneLocation": 1,
|
|
1862
1844
|
"RouterService": 1,
|
|
1845
|
+
"RouteInfoWithAttributes": 1,
|
|
1846
|
+
"RouteInfo": 1,
|
|
1863
1847
|
"Route": 1,
|
|
1864
1848
|
"EmberRouter": 1,
|
|
1865
1849
|
"Transition": 1
|
|
@@ -1872,7 +1856,7 @@
|
|
|
1872
1856
|
"namespaces": {},
|
|
1873
1857
|
"tag": "module",
|
|
1874
1858
|
"file": "packages/@ember/-internals/routing/lib/system/transition.ts",
|
|
1875
|
-
"line":
|
|
1859
|
+
"line": 5
|
|
1876
1860
|
},
|
|
1877
1861
|
"ember": {
|
|
1878
1862
|
"name": "ember",
|
|
@@ -1887,8 +1871,6 @@
|
|
|
1887
1871
|
"Ember.ControllerMixin": 1,
|
|
1888
1872
|
"RoutingService": 1,
|
|
1889
1873
|
"BucketCache": 1,
|
|
1890
|
-
"RouteInfoWithAttributes": 1,
|
|
1891
|
-
"RouteInfo": 1,
|
|
1892
1874
|
"Ember.ProxyMixin": 1,
|
|
1893
1875
|
"Ember.ActionHandler": 1,
|
|
1894
1876
|
"Ember.NativeArray": 1,
|
|
@@ -2246,21 +2228,6 @@
|
|
|
2246
2228
|
"file": "packages/@ember/polyfills/lib/assign.ts",
|
|
2247
2229
|
"line": 3
|
|
2248
2230
|
},
|
|
2249
|
-
"@ember/renderer": {
|
|
2250
|
-
"name": "@ember/renderer",
|
|
2251
|
-
"submodules": {},
|
|
2252
|
-
"elements": {},
|
|
2253
|
-
"classes": {
|
|
2254
|
-
"Renderer": 1
|
|
2255
|
-
},
|
|
2256
|
-
"fors": {},
|
|
2257
|
-
"namespaces": {},
|
|
2258
|
-
"tag": "module",
|
|
2259
|
-
"file": "packages/@ember/renderer/index.ts",
|
|
2260
|
-
"line": 6,
|
|
2261
|
-
"access": "public",
|
|
2262
|
-
"tagname": ""
|
|
2263
|
-
},
|
|
2264
2231
|
"@ember/runloop": {
|
|
2265
2232
|
"name": "@ember/runloop",
|
|
2266
2233
|
"submodules": {},
|
|
@@ -2554,7 +2521,7 @@
|
|
|
2554
2521
|
"module": "@ember/component",
|
|
2555
2522
|
"namespace": "",
|
|
2556
2523
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
2557
|
-
"line":
|
|
2524
|
+
"line": 37,
|
|
2558
2525
|
"description": "A component is a reusable UI element that consists of a `.hbs` template and an\noptional JavaScript class that defines its behavior. For example, someone\nmight make a `button` in the template and handle the click behavior in the\nJavaScript file that shares the same name as the template.\n\nComponents are broken down into two categories:\n\n- Components _without_ JavaScript, that are based only on a template. These\n are called Template-only or TO components.\n- Components _with_ JavaScript, which consist of a template and a backing\n class.\n\nEmber ships with two types of JavaScript classes for components:\n\n1. Glimmer components, imported from `@glimmer/component`, which are the\n default component's for Ember Octane (3.15) and more recent editions.\n2. Classic components, imported from `@ember/component`, which were the\n default for older editions of Ember (pre 3.15).\n\nBelow is the documentation for Classic components. If you are looking for the\nAPI documentation for Template-only or Glimmer components, it is\n[available here](/ember/release/modules/@glimmer%2Fcomponent).\n\n## Defining a Classic Component\n\nIf you want to customize the component in order to handle events, transform\narguments or maintain internal state, you implement a subclass of `Component`.\n\nOne example is to add computed properties to your component:\n\n```app/components/person-profile.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n displayName: computed('person.title', 'person.firstName', 'person.lastName', function() {\n let { title, firstName, lastName } = this.person;\n\n if (title) {\n return `${title} ${lastName}`;\n } else {\n return `${firstName} ${lastName}`;\n }\n })\n});\n```\n\nAnd then use it in the component's template:\n\n```app/templates/components/person-profile.hbs\n<h1>{{this.displayName}}</h1>\n{{yield}}\n```\n\n## Customizing a Classic Component's HTML Element in JavaScript\n\n### HTML Tag\n\nThe default HTML tag name used for a component's HTML representation is `div`.\nThis can be customized by setting the `tagName` property.\n\nConsider the following component class:\n\n```app/components/emphasized-paragraph.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n tagName: 'em'\n});\n```\n\nWhen invoked, this component would produce output that looks something like\nthis:\n\n```html\n<em id=\"ember1\" class=\"ember-view\"></em>\n```\n\n### HTML `class` Attribute\n\nThe HTML `class` attribute of a component's tag can be set by providing a\n`classNames` property that is set to an array of strings:\n\n```app/components/my-widget.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n classNames: ['my-class', 'my-other-class']\n});\n```\n\nInvoking this component will produce output that looks like this:\n\n```html\n<div id=\"ember1\" class=\"ember-view my-class my-other-class\"></div>\n```\n\n`class` attribute values can also be set by providing a `classNameBindings`\nproperty set to an array of properties names for the component. The return\nvalue of these properties will be added as part of the value for the\ncomponents's `class` attribute. These properties can be computed properties:\n\n```app/components/my-widget.js\nimport Component from '@ember/component';\nimport { computed } from '@ember/object';\n\nexport default Component.extend({\n classNames: ['my-class', 'my-other-class'],\n classNameBindings: ['propertyA', 'propertyB'],\n\n propertyA: 'from-a',\n propertyB: computed(function() {\n if (someLogic) { return 'from-b'; }\n })\n});\n```\n\nInvoking this component will produce HTML that looks like:\n\n```html\n<div id=\"ember1\" class=\"ember-view my-class my-other-class from-a from-b\"></div>\n```\n\nNote that `classNames` and `classNameBindings` is in addition to the `class`\nattribute passed with the angle bracket invocation syntax. Therefore, if this\ncomponent was invoked like so:\n\n```handlebars\n<MyWidget class=\"from-invocation\" />\n```\n\nThe resulting HTML will look similar to this:\n\n```html\n<div id=\"ember1\" class=\"from-invocation ember-view my-class my-other-class from-a from-b\"></div>\n```\n\nIf the value of a class name binding returns a boolean the property name\nitself will be used as the class name if the property is true. The class name\nwill not be added if the value is `false` or `undefined`.\n\n```app/components/my-widget.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n classNameBindings: ['hovered'],\n\n hovered: true\n});\n```\n\nInvoking this component will produce HTML that looks like:\n\n```html\n<div id=\"ember1\" class=\"ember-view hovered\"></div>\n```\n\n### Custom Class Names for Boolean Values\n\nWhen using boolean class name bindings you can supply a string value other\nthan the property name for use as the `class` HTML attribute by appending the\npreferred value after a \":\" character when defining the binding:\n\n```app/components/my-widget.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n classNameBindings: ['awesome:so-very-cool'],\n\n awesome: true\n});\n```\n\nInvoking this component will produce HTML that looks like:\n\n```html\n<div id=\"ember1\" class=\"ember-view so-very-cool\"></div>\n```\n\nBoolean value class name bindings whose property names are in a\ncamelCase-style format will be converted to a dasherized format:\n\n```app/components/my-widget.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n classNameBindings: ['isUrgent'],\n\n isUrgent: true\n});\n```\n\nInvoking this component will produce HTML that looks like:\n\n```html\n<div id=\"ember1\" class=\"ember-view is-urgent\"></div>\n```\n\nClass name bindings can also refer to object values that are found by\ntraversing a path relative to the component itself:\n\n```app/components/my-widget.js\nimport Component from '@ember/component';\nimport EmberObject from '@ember/object';\n\nexport default Component.extend({\n classNameBindings: ['messages.empty'],\n\n messages: EmberObject.create({\n empty: true\n })\n});\n```\n\nInvoking this component will produce HTML that looks like:\n\n```html\n<div id=\"ember1\" class=\"ember-view empty\"></div>\n```\n\nIf you want to add a class name for a property which evaluates to true and\nand a different class name if it evaluates to false, you can pass a binding\nlike this:\n\n```app/components/my-widget.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n classNameBindings: ['isEnabled:enabled:disabled'],\n isEnabled: true\n});\n```\n\nInvoking this component will produce HTML that looks like:\n\n```html\n<div id=\"ember1\" class=\"ember-view enabled\"></div>\n```\n\nWhen isEnabled is `false`, the resulting HTML representation looks like this:\n\n```html\n<div id=\"ember1\" class=\"ember-view disabled\"></div>\n```\n\nThis syntax offers the convenience to add a class if a property is `false`:\n\n```app/components/my-widget.js\nimport Component from '@ember/component';\n\n// Applies no class when isEnabled is true and class 'disabled' when isEnabled is false\nexport default Component.extend({\n classNameBindings: ['isEnabled::disabled'],\n isEnabled: true\n});\n```\n\nInvoking this component when the `isEnabled` property is true will produce\nHTML that looks like:\n\n```html\n<div id=\"ember1\" class=\"ember-view\"></div>\n```\n\nInvoking it when the `isEnabled` property on the component is `false` will\nproduce HTML that looks like:\n\n```html\n<div id=\"ember1\" class=\"ember-view disabled\"></div>\n```\n\nUpdates to the value of a class name binding will result in automatic update\nof the HTML `class` attribute in the component's rendered HTML\nrepresentation. If the value becomes `false` or `undefined` the class name\nwill be removed.\n\nBoth `classNames` and `classNameBindings` are concatenated properties. See\n[EmberObject](/ember/release/classes/EmberObject) documentation for more\ninformation about concatenated properties.\n\n### Other HTML Attributes\n\nThe HTML attribute section of a component's tag can be set by providing an\n`attributeBindings` property set to an array of property names on the component.\nThe return value of these properties will be used as the value of the component's\nHTML associated attribute:\n\n```app/components/my-anchor.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n tagName: 'a',\n attributeBindings: ['href'],\n\n href: 'http://google.com'\n});\n```\n\nInvoking this component will produce HTML that looks like:\n\n```html\n<a id=\"ember1\" class=\"ember-view\" href=\"http://google.com\"></a>\n```\n\nOne property can be mapped on to another by placing a \":\" between\nthe source property and the destination property:\n\n```app/components/my-anchor.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n tagName: 'a',\n attributeBindings: ['url:href'],\n\n url: 'http://google.com'\n});\n```\n\nInvoking this component will produce HTML that looks like:\n\n```html\n<a id=\"ember1\" class=\"ember-view\" href=\"http://google.com\"></a>\n```\n\nHTML attributes passed with angle bracket invocations will take precedence\nover those specified in `attributeBindings`. Therefore, if this component was\ninvoked like so:\n\n```handlebars\n<MyAnchor href=\"http://bing.com\" @url=\"http://google.com\" />\n```\n\nThe resulting HTML will looks like this:\n\n```html\n<a id=\"ember1\" class=\"ember-view\" href=\"http://bing.com\"></a>\n```\n\nNote that the `href` attribute is ultimately set to `http://bing.com`,\ndespite it having attribute binidng to the `url` property, which was\nset to `http://google.com`.\n\nNamespaced attributes (e.g. `xlink:href`) are supported, but have to be\nmapped, since `:` is not a valid character for properties in Javascript:\n\n```app/components/my-use.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n tagName: 'use',\n attributeBindings: ['xlinkHref:xlink:href'],\n\n xlinkHref: '#triangle'\n});\n```\n\nInvoking this component will produce HTML that looks like:\n\n```html\n<use xlink:href=\"#triangle\"></use>\n```\n\nIf the value of a property monitored by `attributeBindings` is a boolean, the\nattribute will be present or absent depending on the value:\n\n```app/components/my-text-input.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n tagName: 'input',\n attributeBindings: ['disabled'],\n\n disabled: false\n});\n```\n\nInvoking this component will produce HTML that looks like:\n\n```html\n<input id=\"ember1\" class=\"ember-view\" />\n```\n\n`attributeBindings` can refer to computed properties:\n\n```app/components/my-text-input.js\nimport Component from '@ember/component';\nimport { computed } from '@ember/object';\n\nexport default Component.extend({\n tagName: 'input',\n attributeBindings: ['disabled'],\n\n disabled: computed(function() {\n if (someLogic) {\n return true;\n } else {\n return false;\n }\n })\n});\n```\n\nTo prevent setting an attribute altogether, use `null` or `undefined` as the\nvalue of the property used in `attributeBindings`:\n\n```app/components/my-text-input.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n tagName: 'form',\n attributeBindings: ['novalidate'],\n novalidate: null\n});\n```\n\nUpdates to the property of an attribute binding will result in automatic\nupdate of the HTML attribute in the component's HTML output.\n\n`attributeBindings` is a concatenated property. See\n[EmberObject](/ember/release/classes/EmberObject) documentation for more\ninformation about concatenated properties.\n\n## Layouts\n\nThe `layout` property can be used to dynamically specify a template associated\nwith a component class, instead of relying on Ember to link together a\ncomponent class and a template based on file names.\n\nIn general, applications should not use this feature, but it's commonly used\nin addons for historical reasons.\n\nThe `layout` property should be set to the default export of a template\nmodule, which is the name of a template file without the `.hbs` extension.\n\n```app/templates/components/person-profile.hbs\n<h1>Person's Title</h1>\n<div class='details'>{{yield}}</div>\n```\n\n```app/components/person-profile.js\n import Component from '@ember/component';\n import layout from '../templates/components/person-profile';\n\n export default Component.extend({\n layout\n });\n```\n\nIf you invoke the component:\n\n```handlebars\n<PersonProfile>\n <h2>Chief Basket Weaver</h2>\n <h3>Fisherman Industries</h3>\n</PersonProfile>\n```\n\nor\n\n```handlebars\n{{#person-profile}}\n <h2>Chief Basket Weaver</h2>\n <h3>Fisherman Industries</h3>\n{{/person-profile}}\n```\n\nIt will result in the following HTML output:\n\n```html\n<h1>Person's Title</h1>\n <div class=\"details\">\n <h2>Chief Basket Weaver</h2>\n <h3>Fisherman Industries</h3>\n</div>\n```\n\n## Handling Browser Events\n\nComponents can respond to user-initiated events in one of three ways: passing\nactions with angle bracket invocation, adding event handler methods to the\ncomponent's class, or adding actions to the component's template.\n\n### Passing Actions With Angle Bracket Invocation\n\nFor one-off events specific to particular instance of a component, it is possible\nto pass actions to the component's element using angle bracket invocation syntax.\n\n```handlebars\n<MyWidget {{action 'firstWidgetClicked'}} />\n\n<MyWidget {{action 'secondWidgetClicked'}} />\n```\n\nIn this case, when the first component is clicked on, Ember will invoke the\n`firstWidgetClicked` action. When the second component is clicked on, Ember\nwill invoke the `secondWidgetClicked` action instead.\n\nBesides `{{action}}`, it is also possible to pass any arbitrary element modifiers\nusing the angle bracket invocation syntax.\n\n### Event Handler Methods\n\nComponents can also respond to user-initiated events by implementing a method\nthat matches the event name. This approach is appropriate when the same event\nshould be handled by all instances of the same component.\n\nAn event object will be passed as the argument to the event handler method.\n\n```app/components/my-widget.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n click(event) {\n // `event.target` is either the component's element or one of its children\n let tag = event.target.tagName.toLowerCase();\n console.log('clicked on a `<${tag}>` HTML element!');\n }\n});\n```\n\nIn this example, whenever the user clicked anywhere inside the component, it\nwill log a message to the console.\n\nIt is possible to handle event types other than `click` by implementing the\nfollowing event handler methods. In addition, custom events can be registered\nby using `Application.customEvents`.\n\nTouch events:\n\n* `touchStart`\n* `touchMove`\n* `touchEnd`\n* `touchCancel`\n\nKeyboard events:\n\n* `keyDown`\n* `keyUp`\n* `keyPress`\n\nMouse events:\n\n* `mouseDown`\n* `mouseUp`\n* `contextMenu`\n* `click`\n* `doubleClick`\n* `focusIn`\n* `focusOut`\n\nForm events:\n\n* `submit`\n* `change`\n* `focusIn`\n* `focusOut`\n* `input`\n\nDrag and drop events:\n\n* `dragStart`\n* `drag`\n* `dragEnter`\n* `dragLeave`\n* `dragOver`\n* `dragEnd`\n* `drop`\n\n### `{{action}}` Helper\n\nInstead of handling all events of a particular type anywhere inside the\ncomponent's element, you may instead want to limit it to a particular\nelement in the component's template. In this case, it would be more\nconvenient to implement an action instead.\n\nFor example, you could implement the action `hello` for the `person-profile`\ncomponent:\n\n```app/components/person-profile.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n actions: {\n hello(name) {\n console.log(\"Hello\", name);\n }\n }\n});\n```\n\nAnd then use it in the component's template:\n\n```app/templates/components/person-profile.hbs\n<h1>{{@person.name}}</h1>\n\n<button {{action 'hello' @person.name}}>\n Say Hello to {{@person.name}}\n</button>\n```\n\nWhen the user clicks the button, Ember will invoke the `hello` action,\npassing in the current value of `@person.name` as an argument.\n\nSee [Ember.Templates.helpers.action](/ember/release/classes/Ember.Templates.helpers/methods/action?anchor=action).",
|
|
2559
2526
|
"extends": "Ember.CoreView",
|
|
2560
2527
|
"uses": [
|
|
@@ -2784,7 +2751,7 @@
|
|
|
2784
2751
|
"module": "@ember/object",
|
|
2785
2752
|
"namespace": "",
|
|
2786
2753
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
2787
|
-
"line":
|
|
2754
|
+
"line": 444,
|
|
2788
2755
|
"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```",
|
|
2789
2756
|
"access": "public",
|
|
2790
2757
|
"tagname": ""
|
|
@@ -2983,10 +2950,10 @@
|
|
|
2983
2950
|
"extensions": [],
|
|
2984
2951
|
"plugin_for": [],
|
|
2985
2952
|
"extension_for": [],
|
|
2986
|
-
"module": "ember",
|
|
2953
|
+
"module": "@ember/routing",
|
|
2987
2954
|
"namespace": "",
|
|
2988
2955
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
2989
|
-
"line":
|
|
2956
|
+
"line": 7,
|
|
2990
2957
|
"description": "A `RouteInfoWithAttributes` is an object that contains\nmetadata, including the resolved value from the routes\n`model` hook. Like `RouteInfo`, a `RouteInfoWithAttributes`\nrepresents a specific route within a Transition.\nIt is read-only and internally immutable. It is also not\nobservable, because a Transition instance is never\nchanged after creation.",
|
|
2991
2958
|
"access": "public",
|
|
2992
2959
|
"tagname": ""
|
|
@@ -2999,10 +2966,10 @@
|
|
|
2999
2966
|
"extensions": [],
|
|
3000
2967
|
"plugin_for": [],
|
|
3001
2968
|
"extension_for": [],
|
|
3002
|
-
"module": "ember",
|
|
2969
|
+
"module": "@ember/routing",
|
|
3003
2970
|
"namespace": "",
|
|
3004
2971
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
3005
|
-
"line":
|
|
2972
|
+
"line": 124,
|
|
3006
2973
|
"description": "A RouteInfo is an object that contains metadata\nabout a specific route within a Transition. It is\nread-only and internally immutable. It is also not\nobservable, because a Transition instance is never\nchanged after creation.",
|
|
3007
2974
|
"access": "public",
|
|
3008
2975
|
"tagname": ""
|
|
@@ -3060,7 +3027,7 @@
|
|
|
3060
3027
|
"module": "@ember/routing",
|
|
3061
3028
|
"namespace": "",
|
|
3062
3029
|
"file": "packages/@ember/-internals/routing/lib/system/transition.ts",
|
|
3063
|
-
"line":
|
|
3030
|
+
"line": 5,
|
|
3064
3031
|
"description": "A Transition is a thennable (a promise-like object) that represents\nan attempt to transition to another route. It can be aborted, either\nexplicitly via `abort` or by attempting another transition while a\nprevious one is still underway. An aborted transition can also\nbe `retry()`d later.",
|
|
3065
3032
|
"access": "public",
|
|
3066
3033
|
"tagname": ""
|
|
@@ -3374,8 +3341,8 @@
|
|
|
3374
3341
|
"extension_for": [],
|
|
3375
3342
|
"module": "@ember/object",
|
|
3376
3343
|
"namespace": "",
|
|
3377
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.
|
|
3378
|
-
"line":
|
|
3344
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.ts",
|
|
3345
|
+
"line": 174,
|
|
3379
3346
|
"description": "`CoreObject` is the base class for all Ember constructs. It establishes a\nclass system based on Ember's Mixin system, and provides the basis for the\nEmber Object Model. `CoreObject` should generally not be used directly,\ninstead you should use `EmberObject`.\n\n## Usage\n\nYou can define a class by extending from `CoreObject` using the `extend`\nmethod:\n\n```js\nconst Person = CoreObject.extend({\n name: 'Tomster',\n});\n```\n\nFor detailed usage, see the [Object Model](https://guides.emberjs.com/release/object-model/)\nsection of the guides.\n\n## Usage with Native Classes\n\nNative JavaScript `class` syntax can be used to extend from any `CoreObject`\nbased class:\n\n```js\nclass Person extends CoreObject {\n init() {\n super.init(...arguments);\n this.name = 'Tomster';\n }\n}\n```\n\nSome notes about `class` usage:\n\n* `new` syntax is not currently supported with classes that extend from\n `EmberObject` or `CoreObject`. You must continue to use the `create` method\n when making new instances of classes, even if they are defined using native\n class syntax. If you want to use `new` syntax, consider creating classes\n which do _not_ extend from `EmberObject` or `CoreObject`. Ember features,\n such as computed properties and decorators, will still work with base-less\n classes.\n* Instead of using `this._super()`, you must use standard `super` syntax in\n native classes. See the [MDN docs on classes](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes#Super_class_calls_with_super)\n for more details.\n* Native classes support using [constructors](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes#Constructor)\n to set up newly-created instances. Ember uses these to, among other things,\n support features that need to retrieve other entities by name, like Service\n injection and `getOwner`. To ensure your custom instance setup logic takes\n place after this important work is done, avoid using the `constructor` in\n favor of `init`.\n* Properties passed to `create` will be available on the instance by the time\n `init` runs, so any code that requires these values should work at that\n time.\n* Using native classes, and switching back to the old Ember Object model is\n fully supported.",
|
|
3380
3347
|
"access": "public",
|
|
3381
3348
|
"tagname": ""
|
|
@@ -3407,7 +3374,7 @@
|
|
|
3407
3374
|
"extension_for": [],
|
|
3408
3375
|
"module": "@ember/object",
|
|
3409
3376
|
"namespace": "",
|
|
3410
|
-
"file": "packages/@ember/-internals/runtime/lib/system/object.
|
|
3377
|
+
"file": "packages/@ember/-internals/runtime/lib/system/object.ts",
|
|
3411
3378
|
"line": 13,
|
|
3412
3379
|
"description": "`EmberObject` is the main base class for all Ember objects. It is a subclass\nof `CoreObject` with the `Observable` mixin applied. For details,\nsee the documentation for each of these.",
|
|
3413
3380
|
"extends": "CoreObject",
|
|
@@ -3527,7 +3494,7 @@
|
|
|
3527
3494
|
"module": "ember",
|
|
3528
3495
|
"namespace": "Ember",
|
|
3529
3496
|
"file": "packages/@ember/-internals/views/lib/views/core_view.ts",
|
|
3530
|
-
"line":
|
|
3497
|
+
"line": 6,
|
|
3531
3498
|
"description": "`Ember.CoreView` is an abstract class that exists to give view-like behavior\nto both Ember's main view class `Component` and other classes that don't need\nthe full functionality of `Component`.\n\nUnless you have specific needs for `CoreView`, you will use `Component`\nin your applications.",
|
|
3532
3499
|
"extends": "EmberObject",
|
|
3533
3500
|
"deprecated": true,
|
|
@@ -3793,21 +3760,6 @@
|
|
|
3793
3760
|
"module": "@ember/polyfills",
|
|
3794
3761
|
"namespace": ""
|
|
3795
3762
|
},
|
|
3796
|
-
"Renderer": {
|
|
3797
|
-
"name": "Renderer",
|
|
3798
|
-
"shortname": "Renderer",
|
|
3799
|
-
"classitems": [],
|
|
3800
|
-
"plugins": [],
|
|
3801
|
-
"extensions": [],
|
|
3802
|
-
"plugin_for": [],
|
|
3803
|
-
"extension_for": [],
|
|
3804
|
-
"module": "@ember/renderer",
|
|
3805
|
-
"namespace": "",
|
|
3806
|
-
"file": "packages/@ember/renderer/index.ts",
|
|
3807
|
-
"line": 6,
|
|
3808
|
-
"access": "public",
|
|
3809
|
-
"tagname": ""
|
|
3810
|
-
},
|
|
3811
3763
|
"@ember/runloop": {
|
|
3812
3764
|
"name": "@ember/runloop",
|
|
3813
3765
|
"shortname": "@ember/runloop",
|
|
@@ -6240,82 +6192,58 @@
|
|
|
6240
6192
|
},
|
|
6241
6193
|
{
|
|
6242
6194
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6243
|
-
"line":
|
|
6244
|
-
"description": "
|
|
6245
|
-
"itemtype": "
|
|
6246
|
-
"name": "
|
|
6247
|
-
"type": "Function",
|
|
6195
|
+
"line": 654,
|
|
6196
|
+
"description": "Called when the attributes passed into the component have been updated.\n Called both during the initial render of a container and during a rerender.\n Can be used in place of an observer; code placed here will be executed\n every time any attribute updates.",
|
|
6197
|
+
"itemtype": "method",
|
|
6198
|
+
"name": "didReceiveAttrs",
|
|
6248
6199
|
"access": "public",
|
|
6249
6200
|
"tagname": "",
|
|
6201
|
+
"since": "1.13.0",
|
|
6250
6202
|
"class": "Component",
|
|
6251
6203
|
"module": "@ember/component"
|
|
6252
6204
|
},
|
|
6253
6205
|
{
|
|
6254
6206
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6255
|
-
"line":
|
|
6256
|
-
"description": "
|
|
6257
|
-
"itemtype": "
|
|
6258
|
-
"name": "
|
|
6259
|
-
"type": "String",
|
|
6260
|
-
"default": "undefined",
|
|
6261
|
-
"access": "private",
|
|
6262
|
-
"tagname": "",
|
|
6263
|
-
"class": "Component",
|
|
6264
|
-
"module": "@ember/component"
|
|
6265
|
-
},
|
|
6266
|
-
{
|
|
6267
|
-
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6268
|
-
"line": 789,
|
|
6269
|
-
"description": "Normally, Ember's component model is \"write-only\". The component takes a\nbunch of attributes that it got passed in, and uses them to render its\ntemplate.\n\nOne nice thing about this model is that if you try to set a value to the\nsame thing as last time, Ember (through HTMLBars) will avoid doing any\nwork on the DOM.\n\nThis is not just a performance optimization. If an attribute has not\nchanged, it is important not to clobber the element's \"hidden state\".\nFor example, if you set an input's `value` to the same value as before,\nit will clobber selection state and cursor position. In other words,\nsetting an attribute is not **always** idempotent.\n\nThis method provides a way to read an element's attribute and also\nupdate the last value Ember knows about at the same time. This makes\nsetting an attribute idempotent.\n\nIn particular, what this means is that if you get an `<input>` element's\n`value` attribute and then re-render the template with the same value,\nit will avoid clobbering the cursor and selection position.\nSince most attribute sets are idempotent in the browser, you typically\ncan get away with reading attributes using jQuery, but the most reliable\nway to do so is through this method.",
|
|
6270
|
-
"itemtype": "method",
|
|
6271
|
-
"name": "readDOMAttr",
|
|
6272
|
-
"params": [
|
|
6273
|
-
{
|
|
6274
|
-
"name": "name",
|
|
6275
|
-
"description": "the name of the attribute",
|
|
6276
|
-
"type": "String"
|
|
6277
|
-
}
|
|
6278
|
-
],
|
|
6279
|
-
"return": {
|
|
6280
|
-
"description": "String"
|
|
6281
|
-
},
|
|
6207
|
+
"line": 665,
|
|
6208
|
+
"description": "Called when the attributes passed into the component have been updated.\n Called both during the initial render of a container and during a rerender.\n Can be used in place of an observer; code placed here will be executed\n every time any attribute updates.",
|
|
6209
|
+
"itemtype": "event",
|
|
6210
|
+
"name": "didReceiveAttrs",
|
|
6282
6211
|
"access": "public",
|
|
6283
6212
|
"tagname": "",
|
|
6213
|
+
"since": "1.13.0",
|
|
6284
6214
|
"class": "Component",
|
|
6285
6215
|
"module": "@ember/component"
|
|
6286
6216
|
},
|
|
6287
6217
|
{
|
|
6288
6218
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6289
|
-
"line":
|
|
6290
|
-
"description": "
|
|
6291
|
-
"itemtype": "
|
|
6292
|
-
"name": "
|
|
6293
|
-
"type": "String",
|
|
6294
|
-
"default": "null",
|
|
6219
|
+
"line": 675,
|
|
6220
|
+
"description": "Called after a component has been rendered, both on initial render and\n in subsequent rerenders.",
|
|
6221
|
+
"itemtype": "method",
|
|
6222
|
+
"name": "didRender",
|
|
6295
6223
|
"access": "public",
|
|
6296
6224
|
"tagname": "",
|
|
6225
|
+
"since": "1.13.0",
|
|
6297
6226
|
"class": "Component",
|
|
6298
6227
|
"module": "@ember/component"
|
|
6299
6228
|
},
|
|
6300
6229
|
{
|
|
6301
6230
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6302
|
-
"line":
|
|
6303
|
-
"description": "
|
|
6304
|
-
"
|
|
6231
|
+
"line": 684,
|
|
6232
|
+
"description": "Called after a component has been rendered, both on initial render and\n in subsequent rerenders.",
|
|
6233
|
+
"itemtype": "event",
|
|
6234
|
+
"name": "didRender",
|
|
6305
6235
|
"access": "public",
|
|
6306
6236
|
"tagname": "",
|
|
6307
|
-
"itemtype": "property",
|
|
6308
|
-
"name": "positionalParams",
|
|
6309
6237
|
"since": "1.13.0",
|
|
6310
6238
|
"class": "Component",
|
|
6311
6239
|
"module": "@ember/component"
|
|
6312
6240
|
},
|
|
6313
6241
|
{
|
|
6314
6242
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6315
|
-
"line":
|
|
6316
|
-
"description": "Called
|
|
6243
|
+
"line": 692,
|
|
6244
|
+
"description": "Called before a component has been rendered, both on initial render and\n in subsequent rerenders.",
|
|
6317
6245
|
"itemtype": "method",
|
|
6318
|
-
"name": "
|
|
6246
|
+
"name": "willRender",
|
|
6319
6247
|
"access": "public",
|
|
6320
6248
|
"tagname": "",
|
|
6321
6249
|
"since": "1.13.0",
|
|
@@ -6324,10 +6252,10 @@
|
|
|
6324
6252
|
},
|
|
6325
6253
|
{
|
|
6326
6254
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6327
|
-
"line":
|
|
6328
|
-
"description": "Called
|
|
6255
|
+
"line": 701,
|
|
6256
|
+
"description": "Called before a component has been rendered, both on initial render and\n in subsequent rerenders.",
|
|
6329
6257
|
"itemtype": "event",
|
|
6330
|
-
"name": "
|
|
6258
|
+
"name": "willRender",
|
|
6331
6259
|
"access": "public",
|
|
6332
6260
|
"tagname": "",
|
|
6333
6261
|
"since": "1.13.0",
|
|
@@ -6336,10 +6264,10 @@
|
|
|
6336
6264
|
},
|
|
6337
6265
|
{
|
|
6338
6266
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6339
|
-
"line":
|
|
6340
|
-
"description": "Called
|
|
6267
|
+
"line": 709,
|
|
6268
|
+
"description": "Called when the attributes passed into the component have been changed.\n Called only during a rerender, not during an initial render.",
|
|
6341
6269
|
"itemtype": "method",
|
|
6342
|
-
"name": "
|
|
6270
|
+
"name": "didUpdateAttrs",
|
|
6343
6271
|
"access": "public",
|
|
6344
6272
|
"tagname": "",
|
|
6345
6273
|
"since": "1.13.0",
|
|
@@ -6348,10 +6276,10 @@
|
|
|
6348
6276
|
},
|
|
6349
6277
|
{
|
|
6350
6278
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6351
|
-
"line":
|
|
6352
|
-
"description": "Called
|
|
6279
|
+
"line": 718,
|
|
6280
|
+
"description": "Called when the attributes passed into the component have been changed.\n Called only during a rerender, not during an initial render.",
|
|
6353
6281
|
"itemtype": "event",
|
|
6354
|
-
"name": "
|
|
6282
|
+
"name": "didUpdateAttrs",
|
|
6355
6283
|
"access": "public",
|
|
6356
6284
|
"tagname": "",
|
|
6357
6285
|
"since": "1.13.0",
|
|
@@ -6360,10 +6288,10 @@
|
|
|
6360
6288
|
},
|
|
6361
6289
|
{
|
|
6362
6290
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6363
|
-
"line":
|
|
6364
|
-
"description": "Called
|
|
6291
|
+
"line": 726,
|
|
6292
|
+
"description": "Called when the component is about to update and rerender itself.\n Called only during a rerender, not during an initial render.",
|
|
6365
6293
|
"itemtype": "method",
|
|
6366
|
-
"name": "
|
|
6294
|
+
"name": "willUpdate",
|
|
6367
6295
|
"access": "public",
|
|
6368
6296
|
"tagname": "",
|
|
6369
6297
|
"since": "1.13.0",
|
|
@@ -6372,10 +6300,10 @@
|
|
|
6372
6300
|
},
|
|
6373
6301
|
{
|
|
6374
6302
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6375
|
-
"line":
|
|
6376
|
-
"description": "Called
|
|
6303
|
+
"line": 735,
|
|
6304
|
+
"description": "Called when the component is about to update and rerender itself.\n Called only during a rerender, not during an initial render.",
|
|
6377
6305
|
"itemtype": "event",
|
|
6378
|
-
"name": "
|
|
6306
|
+
"name": "willUpdate",
|
|
6379
6307
|
"access": "public",
|
|
6380
6308
|
"tagname": "",
|
|
6381
6309
|
"since": "1.13.0",
|
|
@@ -6384,10 +6312,10 @@
|
|
|
6384
6312
|
},
|
|
6385
6313
|
{
|
|
6386
6314
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6387
|
-
"line":
|
|
6388
|
-
"description": "Called when the
|
|
6315
|
+
"line": 743,
|
|
6316
|
+
"description": "Called when the component has updated and rerendered itself.\n Called only during a rerender, not during an initial render.",
|
|
6389
6317
|
"itemtype": "method",
|
|
6390
|
-
"name": "
|
|
6318
|
+
"name": "didUpdate",
|
|
6391
6319
|
"access": "public",
|
|
6392
6320
|
"tagname": "",
|
|
6393
6321
|
"since": "1.13.0",
|
|
@@ -6396,10 +6324,10 @@
|
|
|
6396
6324
|
},
|
|
6397
6325
|
{
|
|
6398
6326
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6399
|
-
"line":
|
|
6400
|
-
"description": "Called when the
|
|
6327
|
+
"line": 752,
|
|
6328
|
+
"description": "Called when the component has updated and rerendered itself.\n Called only during a rerender, not during an initial render.",
|
|
6401
6329
|
"itemtype": "event",
|
|
6402
|
-
"name": "
|
|
6330
|
+
"name": "didUpdate",
|
|
6403
6331
|
"access": "public",
|
|
6404
6332
|
"tagname": "",
|
|
6405
6333
|
"since": "1.13.0",
|
|
@@ -6408,61 +6336,85 @@
|
|
|
6408
6336
|
},
|
|
6409
6337
|
{
|
|
6410
6338
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6411
|
-
"line":
|
|
6412
|
-
"description": "
|
|
6413
|
-
"itemtype": "
|
|
6414
|
-
"name": "
|
|
6339
|
+
"line": 760,
|
|
6340
|
+
"description": "The HTML `id` of the component's element in the DOM. You can provide this\nvalue yourself but it must be unique (just as in HTML):\n\n```handlebars\n{{my-component elementId=\"a-really-cool-id\"}}\n```\n\n```handlebars\n<MyComponent @elementId=\"a-really-cool-id\" />\n```\nIf not manually set a default value will be provided by the framework.\nOnce rendered an element's `elementId` is considered immutable and you\nshould never change it. If you need to compute a dynamic value for the\n`elementId`, you should do this when the component or element is being\ninstantiated:\n\n```javascript\nexport default Component.extend({\n init() {\n this._super(...arguments);\n\n var index = this.get('index');\n this.set('elementId', `component-id${index}`);\n }\n});\n```",
|
|
6341
|
+
"itemtype": "property",
|
|
6342
|
+
"name": "elementId",
|
|
6343
|
+
"type": "String",
|
|
6415
6344
|
"access": "public",
|
|
6416
6345
|
"tagname": "",
|
|
6417
|
-
"since": "1.13.0",
|
|
6418
6346
|
"class": "Component",
|
|
6419
6347
|
"module": "@ember/component"
|
|
6420
6348
|
},
|
|
6421
6349
|
{
|
|
6422
6350
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6423
|
-
"line":
|
|
6424
|
-
"description": "
|
|
6425
|
-
"itemtype": "
|
|
6426
|
-
"name": "
|
|
6351
|
+
"line": 942,
|
|
6352
|
+
"description": "Normally, Ember's component model is \"write-only\". The component takes a\nbunch of attributes that it got passed in, and uses them to render its\ntemplate.\n\nOne nice thing about this model is that if you try to set a value to the\nsame thing as last time, Ember (through HTMLBars) will avoid doing any\nwork on the DOM.\n\nThis is not just a performance optimization. If an attribute has not\nchanged, it is important not to clobber the element's \"hidden state\".\nFor example, if you set an input's `value` to the same value as before,\nit will clobber selection state and cursor position. In other words,\nsetting an attribute is not **always** idempotent.\n\nThis method provides a way to read an element's attribute and also\nupdate the last value Ember knows about at the same time. This makes\nsetting an attribute idempotent.\n\nIn particular, what this means is that if you get an `<input>` element's\n`value` attribute and then re-render the template with the same value,\nit will avoid clobbering the cursor and selection position.\nSince most attribute sets are idempotent in the browser, you typically\ncan get away with reading attributes using jQuery, but the most reliable\nway to do so is through this method.",
|
|
6353
|
+
"itemtype": "method",
|
|
6354
|
+
"name": "readDOMAttr",
|
|
6355
|
+
"params": [
|
|
6356
|
+
{
|
|
6357
|
+
"name": "name",
|
|
6358
|
+
"description": "the name of the attribute",
|
|
6359
|
+
"type": "String"
|
|
6360
|
+
}
|
|
6361
|
+
],
|
|
6362
|
+
"return": {
|
|
6363
|
+
"description": "String"
|
|
6364
|
+
},
|
|
6427
6365
|
"access": "public",
|
|
6428
6366
|
"tagname": "",
|
|
6429
|
-
"since": "1.13.0",
|
|
6430
6367
|
"class": "Component",
|
|
6431
6368
|
"module": "@ember/component"
|
|
6432
6369
|
},
|
|
6433
6370
|
{
|
|
6434
6371
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6435
|
-
"line":
|
|
6436
|
-
"description": "
|
|
6437
|
-
"itemtype": "
|
|
6438
|
-
"name": "
|
|
6372
|
+
"line": 1002,
|
|
6373
|
+
"description": "Layout can be used to wrap content in a component.",
|
|
6374
|
+
"itemtype": "property",
|
|
6375
|
+
"name": "layout",
|
|
6376
|
+
"type": "Function",
|
|
6439
6377
|
"access": "public",
|
|
6440
6378
|
"tagname": "",
|
|
6441
|
-
"since": "1.13.0",
|
|
6442
6379
|
"class": "Component",
|
|
6443
6380
|
"module": "@ember/component"
|
|
6444
6381
|
},
|
|
6445
6382
|
{
|
|
6446
6383
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6447
|
-
"line":
|
|
6448
|
-
"description": "
|
|
6449
|
-
"itemtype": "
|
|
6450
|
-
"name": "
|
|
6451
|
-
"
|
|
6384
|
+
"line": 1010,
|
|
6385
|
+
"description": "The name of the layout to lookup if no layout is provided.\nBy default `Component` will lookup a template with this name in\n`Ember.TEMPLATES` (a shared global object).",
|
|
6386
|
+
"itemtype": "property",
|
|
6387
|
+
"name": "layoutName",
|
|
6388
|
+
"type": "String",
|
|
6389
|
+
"default": "undefined",
|
|
6390
|
+
"access": "private",
|
|
6452
6391
|
"tagname": "",
|
|
6453
|
-
"since": "1.13.0",
|
|
6454
6392
|
"class": "Component",
|
|
6455
6393
|
"module": "@ember/component"
|
|
6456
6394
|
},
|
|
6457
6395
|
{
|
|
6458
6396
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6459
|
-
"line":
|
|
6460
|
-
"description": "The
|
|
6397
|
+
"line": 1021,
|
|
6398
|
+
"description": "The WAI-ARIA role of the control represented by this view. For example, a\n button may have a role of type 'button', or a pane may have a role of\n type 'alertdialog'. This property is used by assistive software to help\n visually challenged users navigate rich web applications.\n\n The full list of valid WAI-ARIA roles is available at:\n [https://www.w3.org/TR/wai-aria/#roles_categorization](https://www.w3.org/TR/wai-aria/#roles_categorization)",
|
|
6461
6399
|
"itemtype": "property",
|
|
6462
|
-
"name": "
|
|
6400
|
+
"name": "ariaRole",
|
|
6463
6401
|
"type": "String",
|
|
6402
|
+
"default": "undefined",
|
|
6403
|
+
"access": "public",
|
|
6404
|
+
"tagname": "",
|
|
6405
|
+
"class": "Component",
|
|
6406
|
+
"module": "@ember/component"
|
|
6407
|
+
},
|
|
6408
|
+
{
|
|
6409
|
+
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6410
|
+
"line": 1046,
|
|
6411
|
+
"description": "Enables components to take a list of parameters as arguments.\n For example, a component that takes two parameters with the names\n `name` and `age`:\n\n ```app/components/my-component.js\n import Component from '@ember/component';\n\n let MyComponent = Component.extend();\n\n MyComponent.reopenClass({\n positionalParams: ['name', 'age']\n });\n\n export default MyComponent;\n ```\n\n It can then be invoked like this:\n\n ```hbs\n {{my-component \"John\" 38}}\n ```\n\n The parameters can be referred to just like named parameters:\n\n ```hbs\n Name: {{name}}, Age: {{age}}.\n ```\n\n Using a string instead of an array allows for an arbitrary number of\n parameters:\n\n ```app/components/my-component.js\n import Component from '@ember/component';\n\n let MyComponent = Component.extend();\n\n MyComponent.reopenClass({\n positionalParams: 'names'\n });\n\n export default MyComponent;\n ```\n\n It can then be invoked like this:\n\n ```hbs\n {{my-component \"John\" \"Michael\" \"Scott\"}}\n ```\n The parameters can then be referred to by enumerating over the list:\n\n ```hbs\n {{#each names as |name|}}{{name}}{{/each}}\n ```",
|
|
6412
|
+
"static": 1,
|
|
6464
6413
|
"access": "public",
|
|
6465
6414
|
"tagname": "",
|
|
6415
|
+
"itemtype": "property",
|
|
6416
|
+
"name": "positionalParams",
|
|
6417
|
+
"since": "1.13.0",
|
|
6466
6418
|
"class": "Component",
|
|
6467
6419
|
"module": "@ember/component"
|
|
6468
6420
|
},
|
|
@@ -6516,7 +6468,7 @@
|
|
|
6516
6468
|
},
|
|
6517
6469
|
{
|
|
6518
6470
|
"file": "packages/@ember/-internals/glimmer/lib/helper.ts",
|
|
6519
|
-
"line":
|
|
6471
|
+
"line": 247,
|
|
6520
6472
|
"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```",
|
|
6521
6473
|
"static": 1,
|
|
6522
6474
|
"params": [
|
|
@@ -6534,6 +6486,12 @@
|
|
|
6534
6486
|
"class": "@ember/component/helper",
|
|
6535
6487
|
"module": "@ember/component"
|
|
6536
6488
|
},
|
|
6489
|
+
{
|
|
6490
|
+
"file": "packages/@ember/-internals/glimmer/lib/renderer.ts",
|
|
6491
|
+
"line": 297,
|
|
6492
|
+
"class": "Ember.Templates.helpers",
|
|
6493
|
+
"module": "@ember/component"
|
|
6494
|
+
},
|
|
6537
6495
|
{
|
|
6538
6496
|
"file": "packages/@ember/-internals/glimmer/tests/integration/custom-helper-test.js",
|
|
6539
6497
|
"line": 12,
|
|
@@ -6620,248 +6578,248 @@
|
|
|
6620
6578
|
},
|
|
6621
6579
|
{
|
|
6622
6580
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6623
|
-
"line":
|
|
6581
|
+
"line": 90,
|
|
6624
6582
|
"class": "Ember",
|
|
6625
6583
|
"module": "ember"
|
|
6626
6584
|
},
|
|
6627
6585
|
{
|
|
6628
6586
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6629
|
-
"line":
|
|
6587
|
+
"line": 92,
|
|
6630
6588
|
"class": "Ember",
|
|
6631
6589
|
"module": "ember"
|
|
6632
6590
|
},
|
|
6633
6591
|
{
|
|
6634
6592
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6635
|
-
"line":
|
|
6593
|
+
"line": 94,
|
|
6636
6594
|
"class": "Ember",
|
|
6637
6595
|
"module": "ember"
|
|
6638
6596
|
},
|
|
6639
6597
|
{
|
|
6640
6598
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6641
|
-
"line":
|
|
6599
|
+
"line": 96,
|
|
6642
6600
|
"class": "Ember",
|
|
6643
6601
|
"module": "ember"
|
|
6644
6602
|
},
|
|
6645
6603
|
{
|
|
6646
6604
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6647
|
-
"line":
|
|
6605
|
+
"line": 98,
|
|
6648
6606
|
"class": "Ember",
|
|
6649
6607
|
"module": "ember"
|
|
6650
6608
|
},
|
|
6651
6609
|
{
|
|
6652
6610
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6653
|
-
"line":
|
|
6611
|
+
"line": 100,
|
|
6654
6612
|
"class": "Ember",
|
|
6655
6613
|
"module": "ember"
|
|
6656
6614
|
},
|
|
6657
6615
|
{
|
|
6658
6616
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6659
|
-
"line":
|
|
6617
|
+
"line": 102,
|
|
6660
6618
|
"class": "Ember",
|
|
6661
6619
|
"module": "ember"
|
|
6662
6620
|
},
|
|
6663
6621
|
{
|
|
6664
6622
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6665
|
-
"line":
|
|
6623
|
+
"line": 104,
|
|
6666
6624
|
"class": "Ember",
|
|
6667
6625
|
"module": "ember"
|
|
6668
6626
|
},
|
|
6669
6627
|
{
|
|
6670
6628
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6671
|
-
"line":
|
|
6629
|
+
"line": 106,
|
|
6672
6630
|
"class": "Ember",
|
|
6673
6631
|
"module": "ember"
|
|
6674
6632
|
},
|
|
6675
6633
|
{
|
|
6676
6634
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6677
|
-
"line":
|
|
6635
|
+
"line": 109,
|
|
6678
6636
|
"class": "Ember",
|
|
6679
6637
|
"module": "ember"
|
|
6680
6638
|
},
|
|
6681
6639
|
{
|
|
6682
6640
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6683
|
-
"line":
|
|
6641
|
+
"line": 111,
|
|
6684
6642
|
"class": "Ember",
|
|
6685
6643
|
"module": "ember"
|
|
6686
6644
|
},
|
|
6687
6645
|
{
|
|
6688
6646
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6689
|
-
"line":
|
|
6647
|
+
"line": 113,
|
|
6690
6648
|
"class": "Ember",
|
|
6691
6649
|
"module": "ember"
|
|
6692
6650
|
},
|
|
6693
6651
|
{
|
|
6694
6652
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6695
|
-
"line":
|
|
6653
|
+
"line": 115,
|
|
6696
6654
|
"class": "Ember",
|
|
6697
6655
|
"module": "ember"
|
|
6698
6656
|
},
|
|
6699
6657
|
{
|
|
6700
6658
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6701
|
-
"line":
|
|
6659
|
+
"line": 119,
|
|
6702
6660
|
"class": "Ember",
|
|
6703
6661
|
"module": "ember"
|
|
6704
6662
|
},
|
|
6705
6663
|
{
|
|
6706
6664
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6707
|
-
"line":
|
|
6665
|
+
"line": 142,
|
|
6708
6666
|
"class": "Ember",
|
|
6709
6667
|
"module": "ember"
|
|
6710
6668
|
},
|
|
6711
6669
|
{
|
|
6712
6670
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6713
|
-
"line":
|
|
6671
|
+
"line": 156,
|
|
6714
6672
|
"class": "Ember",
|
|
6715
6673
|
"module": "ember"
|
|
6716
6674
|
},
|
|
6717
6675
|
{
|
|
6718
6676
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6719
|
-
"line":
|
|
6677
|
+
"line": 161,
|
|
6720
6678
|
"class": "Ember",
|
|
6721
6679
|
"module": "ember"
|
|
6722
6680
|
},
|
|
6723
6681
|
{
|
|
6724
6682
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6725
|
-
"line":
|
|
6683
|
+
"line": 166,
|
|
6726
6684
|
"class": "Ember",
|
|
6727
6685
|
"module": "ember"
|
|
6728
6686
|
},
|
|
6729
6687
|
{
|
|
6730
6688
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6731
|
-
"line":
|
|
6689
|
+
"line": 171,
|
|
6732
6690
|
"class": "Ember",
|
|
6733
6691
|
"module": "ember"
|
|
6734
6692
|
},
|
|
6735
6693
|
{
|
|
6736
6694
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6737
|
-
"line":
|
|
6695
|
+
"line": 176,
|
|
6738
6696
|
"class": "Ember",
|
|
6739
6697
|
"module": "ember"
|
|
6740
6698
|
},
|
|
6741
6699
|
{
|
|
6742
6700
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6743
|
-
"line":
|
|
6701
|
+
"line": 181,
|
|
6744
6702
|
"class": "Ember",
|
|
6745
6703
|
"module": "ember"
|
|
6746
6704
|
},
|
|
6747
6705
|
{
|
|
6748
6706
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6749
|
-
"line":
|
|
6707
|
+
"line": 196,
|
|
6750
6708
|
"class": "Ember",
|
|
6751
6709
|
"module": "ember"
|
|
6752
6710
|
},
|
|
6753
6711
|
{
|
|
6754
6712
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6755
|
-
"line":
|
|
6713
|
+
"line": 209,
|
|
6756
6714
|
"class": "Ember",
|
|
6757
6715
|
"module": "ember"
|
|
6758
6716
|
},
|
|
6759
6717
|
{
|
|
6760
6718
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6761
|
-
"line":
|
|
6719
|
+
"line": 216,
|
|
6762
6720
|
"class": "Ember",
|
|
6763
6721
|
"module": "ember"
|
|
6764
6722
|
},
|
|
6765
6723
|
{
|
|
6766
6724
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6767
|
-
"line":
|
|
6725
|
+
"line": 223,
|
|
6768
6726
|
"class": "Ember",
|
|
6769
6727
|
"module": "ember"
|
|
6770
6728
|
},
|
|
6771
6729
|
{
|
|
6772
6730
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6773
|
-
"line":
|
|
6731
|
+
"line": 230,
|
|
6774
6732
|
"class": "Ember",
|
|
6775
6733
|
"module": "ember"
|
|
6776
6734
|
},
|
|
6777
6735
|
{
|
|
6778
6736
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6779
|
-
"line":
|
|
6737
|
+
"line": 237,
|
|
6780
6738
|
"class": "Ember",
|
|
6781
6739
|
"module": "ember"
|
|
6782
6740
|
},
|
|
6783
6741
|
{
|
|
6784
6742
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6785
|
-
"line":
|
|
6743
|
+
"line": 254,
|
|
6786
6744
|
"class": "Ember",
|
|
6787
6745
|
"module": "ember"
|
|
6788
6746
|
},
|
|
6789
6747
|
{
|
|
6790
6748
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6791
|
-
"line":
|
|
6749
|
+
"line": 269,
|
|
6792
6750
|
"class": "Ember",
|
|
6793
6751
|
"module": "ember"
|
|
6794
6752
|
},
|
|
6795
6753
|
{
|
|
6796
6754
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6797
|
-
"line":
|
|
6755
|
+
"line": 283,
|
|
6798
6756
|
"class": "Ember",
|
|
6799
6757
|
"module": "ember"
|
|
6800
6758
|
},
|
|
6801
6759
|
{
|
|
6802
6760
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6803
|
-
"line":
|
|
6761
|
+
"line": 288,
|
|
6804
6762
|
"class": "Ember",
|
|
6805
6763
|
"module": "ember"
|
|
6806
6764
|
},
|
|
6807
6765
|
{
|
|
6808
6766
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6809
|
-
"line":
|
|
6767
|
+
"line": 308,
|
|
6810
6768
|
"class": "Ember",
|
|
6811
6769
|
"module": "ember"
|
|
6812
6770
|
},
|
|
6813
6771
|
{
|
|
6814
6772
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6815
|
-
"line":
|
|
6773
|
+
"line": 322,
|
|
6816
6774
|
"class": "Ember",
|
|
6817
6775
|
"module": "ember"
|
|
6818
6776
|
},
|
|
6819
6777
|
{
|
|
6820
6778
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6821
|
-
"line":
|
|
6779
|
+
"line": 328,
|
|
6822
6780
|
"class": "Ember",
|
|
6823
6781
|
"module": "ember"
|
|
6824
6782
|
},
|
|
6825
6783
|
{
|
|
6826
6784
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6827
|
-
"line":
|
|
6785
|
+
"line": 333,
|
|
6828
6786
|
"class": "Ember",
|
|
6829
6787
|
"module": "ember"
|
|
6830
6788
|
},
|
|
6831
6789
|
{
|
|
6832
6790
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6833
|
-
"line":
|
|
6791
|
+
"line": 354,
|
|
6834
6792
|
"class": "Ember",
|
|
6835
6793
|
"module": "ember"
|
|
6836
6794
|
},
|
|
6837
6795
|
{
|
|
6838
6796
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6839
|
-
"line":
|
|
6797
|
+
"line": 369,
|
|
6840
6798
|
"class": "Ember",
|
|
6841
6799
|
"module": "ember"
|
|
6842
6800
|
},
|
|
6843
6801
|
{
|
|
6844
6802
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6845
|
-
"line":
|
|
6803
|
+
"line": 476,
|
|
6846
6804
|
"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.",
|
|
6847
6805
|
"class": "Ember",
|
|
6848
6806
|
"module": "ember"
|
|
6849
6807
|
},
|
|
6850
6808
|
{
|
|
6851
6809
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6852
|
-
"line":
|
|
6810
|
+
"line": 550,
|
|
6853
6811
|
"class": "Ember",
|
|
6854
6812
|
"module": "ember"
|
|
6855
6813
|
},
|
|
6856
6814
|
{
|
|
6857
6815
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6858
|
-
"line":
|
|
6816
|
+
"line": 581,
|
|
6859
6817
|
"class": "Ember",
|
|
6860
6818
|
"module": "ember"
|
|
6861
6819
|
},
|
|
6862
6820
|
{
|
|
6863
6821
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6864
|
-
"line":
|
|
6822
|
+
"line": 673,
|
|
6865
6823
|
"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.",
|
|
6866
6824
|
"itemtype": "method",
|
|
6867
6825
|
"name": "meta",
|
|
@@ -7014,7 +6972,7 @@
|
|
|
7014
6972
|
},
|
|
7015
6973
|
{
|
|
7016
6974
|
"file": "packages/@ember/-internals/metal/lib/decorator.ts",
|
|
7017
|
-
"line":
|
|
6975
|
+
"line": 156,
|
|
7018
6976
|
"description": "Returns the CP descriptor associated with `obj` and `keyName`, if any.",
|
|
7019
6977
|
"itemtype": "method",
|
|
7020
6978
|
"name": "descriptorForProperty",
|
|
@@ -7041,7 +6999,7 @@
|
|
|
7041
6999
|
},
|
|
7042
7000
|
{
|
|
7043
7001
|
"file": "packages/@ember/-internals/metal/lib/decorator.ts",
|
|
7044
|
-
"line":
|
|
7002
|
+
"line": 184,
|
|
7045
7003
|
"description": "Check whether a value is a decorator",
|
|
7046
7004
|
"itemtype": "method",
|
|
7047
7005
|
"name": "isClassicDecorator",
|
|
@@ -7063,7 +7021,7 @@
|
|
|
7063
7021
|
},
|
|
7064
7022
|
{
|
|
7065
7023
|
"file": "packages/@ember/-internals/metal/lib/decorator.ts",
|
|
7066
|
-
"line":
|
|
7024
|
+
"line": 196,
|
|
7067
7025
|
"description": "Set a value as a decorator",
|
|
7068
7026
|
"itemtype": "method",
|
|
7069
7027
|
"name": "setClassicDecorator",
|
|
@@ -7414,7 +7372,7 @@
|
|
|
7414
7372
|
},
|
|
7415
7373
|
{
|
|
7416
7374
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7417
|
-
"line":
|
|
7375
|
+
"line": 430,
|
|
7418
7376
|
"itemtype": "method",
|
|
7419
7377
|
"name": "mixin",
|
|
7420
7378
|
"params": [
|
|
@@ -7438,43 +7396,43 @@
|
|
|
7438
7396
|
},
|
|
7439
7397
|
{
|
|
7440
7398
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7441
|
-
"line":
|
|
7399
|
+
"line": 527,
|
|
7442
7400
|
"class": "Mixin",
|
|
7443
7401
|
"module": "@ember/object"
|
|
7444
7402
|
},
|
|
7445
7403
|
{
|
|
7446
7404
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7447
|
-
"line":
|
|
7405
|
+
"line": 530,
|
|
7448
7406
|
"class": "Mixin",
|
|
7449
7407
|
"module": "@ember/object"
|
|
7450
7408
|
},
|
|
7451
7409
|
{
|
|
7452
7410
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7453
|
-
"line":
|
|
7411
|
+
"line": 533,
|
|
7454
7412
|
"class": "Mixin",
|
|
7455
7413
|
"module": "@ember/object"
|
|
7456
7414
|
},
|
|
7457
7415
|
{
|
|
7458
7416
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7459
|
-
"line":
|
|
7417
|
+
"line": 536,
|
|
7460
7418
|
"class": "Mixin",
|
|
7461
7419
|
"module": "@ember/object"
|
|
7462
7420
|
},
|
|
7463
7421
|
{
|
|
7464
7422
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7465
|
-
"line":
|
|
7423
|
+
"line": 539,
|
|
7466
7424
|
"class": "Mixin",
|
|
7467
7425
|
"module": "@ember/object"
|
|
7468
7426
|
},
|
|
7469
7427
|
{
|
|
7470
7428
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7471
|
-
"line":
|
|
7429
|
+
"line": 542,
|
|
7472
7430
|
"class": "Mixin",
|
|
7473
7431
|
"module": "@ember/object"
|
|
7474
7432
|
},
|
|
7475
7433
|
{
|
|
7476
7434
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7477
|
-
"line":
|
|
7435
|
+
"line": 568,
|
|
7478
7436
|
"itemtype": "method",
|
|
7479
7437
|
"name": "create",
|
|
7480
7438
|
"static": 1,
|
|
@@ -7492,13 +7450,13 @@
|
|
|
7492
7450
|
},
|
|
7493
7451
|
{
|
|
7494
7452
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7495
|
-
"line":
|
|
7453
|
+
"line": 583,
|
|
7496
7454
|
"class": "@ember/object/mixin",
|
|
7497
7455
|
"module": "@ember/object"
|
|
7498
7456
|
},
|
|
7499
7457
|
{
|
|
7500
7458
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7501
|
-
"line":
|
|
7459
|
+
"line": 601,
|
|
7502
7460
|
"itemtype": "method",
|
|
7503
7461
|
"name": "reopen",
|
|
7504
7462
|
"params": [
|
|
@@ -7516,7 +7474,7 @@
|
|
|
7516
7474
|
},
|
|
7517
7475
|
{
|
|
7518
7476
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7519
|
-
"line":
|
|
7477
|
+
"line": 624,
|
|
7520
7478
|
"itemtype": "method",
|
|
7521
7479
|
"name": "apply",
|
|
7522
7480
|
"params": [
|
|
@@ -7536,13 +7494,13 @@
|
|
|
7536
7494
|
},
|
|
7537
7495
|
{
|
|
7538
7496
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7539
|
-
"line":
|
|
7497
|
+
"line": 640,
|
|
7540
7498
|
"class": "@ember/object/mixin",
|
|
7541
7499
|
"module": "@ember/object"
|
|
7542
7500
|
},
|
|
7543
7501
|
{
|
|
7544
7502
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7545
|
-
"line":
|
|
7503
|
+
"line": 645,
|
|
7546
7504
|
"itemtype": "method",
|
|
7547
7505
|
"name": "detect",
|
|
7548
7506
|
"params": [
|
|
@@ -7563,25 +7521,25 @@
|
|
|
7563
7521
|
},
|
|
7564
7522
|
{
|
|
7565
7523
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7566
|
-
"line":
|
|
7524
|
+
"line": 666,
|
|
7567
7525
|
"class": "@ember/object/mixin",
|
|
7568
7526
|
"module": "@ember/object"
|
|
7569
7527
|
},
|
|
7570
7528
|
{
|
|
7571
7529
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7572
|
-
"line":
|
|
7530
|
+
"line": 673,
|
|
7573
7531
|
"class": "@ember/object/mixin",
|
|
7574
7532
|
"module": "@ember/object"
|
|
7575
7533
|
},
|
|
7576
7534
|
{
|
|
7577
7535
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7578
|
-
"line":
|
|
7536
|
+
"line": 678,
|
|
7579
7537
|
"class": "@ember/object/mixin",
|
|
7580
7538
|
"module": "@ember/object"
|
|
7581
7539
|
},
|
|
7582
7540
|
{
|
|
7583
7541
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7584
|
-
"line":
|
|
7542
|
+
"line": 770,
|
|
7585
7543
|
"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.",
|
|
7586
7544
|
"itemtype": "method",
|
|
7587
7545
|
"name": "observer",
|
|
@@ -7805,7 +7763,7 @@
|
|
|
7805
7763
|
},
|
|
7806
7764
|
{
|
|
7807
7765
|
"file": "packages/@ember/-internals/metal/lib/property_get.ts",
|
|
7808
|
-
"line":
|
|
7766
|
+
"line": 50,
|
|
7809
7767
|
"description": "Gets the value of a property on an object. If the property is computed,\nthe function will be invoked. If the property is not defined but the\nobject implements the `unknownProperty` method then that will be invoked.\n\n```javascript\nimport { get } from '@ember/object';\nget(obj, \"name\");\n```\n\nIf you plan to run on IE8 and older browsers then you should use this\nmethod anytime you want to retrieve a property on an object that you don't\nknow for sure is private. (Properties beginning with an underscore '_'\nare considered private.)\n\nOn all newer browsers, you only need to use this method to retrieve\nproperties if the property might not be defined on the object and you want\nto respect the `unknownProperty` handler. Otherwise you can ignore this\nmethod.\n\nNote that if the object itself is `undefined`, this method will throw\nan error.",
|
|
7810
7768
|
"itemtype": "method",
|
|
7811
7769
|
"name": "get",
|
|
@@ -9013,7 +8971,7 @@
|
|
|
9013
8971
|
},
|
|
9014
8972
|
{
|
|
9015
8973
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
9016
|
-
"line":
|
|
8974
|
+
"line": 20,
|
|
9017
8975
|
"description": "The dot-separated, fully-qualified name of the\nroute, like \"people.index\".",
|
|
9018
8976
|
"itemtype": "property",
|
|
9019
8977
|
"name": "name",
|
|
@@ -9021,11 +8979,11 @@
|
|
|
9021
8979
|
"access": "public",
|
|
9022
8980
|
"tagname": "",
|
|
9023
8981
|
"class": "RouteInfoWithAttributes",
|
|
9024
|
-
"module": "ember"
|
|
8982
|
+
"module": "@ember/routing"
|
|
9025
8983
|
},
|
|
9026
8984
|
{
|
|
9027
8985
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
9028
|
-
"line":
|
|
8986
|
+
"line": 27,
|
|
9029
8987
|
"description": "The final segment of the fully-qualified name of\nthe route, like \"index\"",
|
|
9030
8988
|
"itemtype": "property",
|
|
9031
8989
|
"name": "localName",
|
|
@@ -9033,11 +8991,11 @@
|
|
|
9033
8991
|
"access": "public",
|
|
9034
8992
|
"tagname": "",
|
|
9035
8993
|
"class": "RouteInfoWithAttributes",
|
|
9036
|
-
"module": "ember"
|
|
8994
|
+
"module": "@ember/routing"
|
|
9037
8995
|
},
|
|
9038
8996
|
{
|
|
9039
8997
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
9040
|
-
"line":
|
|
8998
|
+
"line": 34,
|
|
9041
8999
|
"description": "The values of the route's parameters. These are the\nsame params that are received as arguments to the\nroute's model hook. Contains only the parameters\nvalid for this route, if any (params for parent or\nchild routes are not merged).",
|
|
9042
9000
|
"itemtype": "property",
|
|
9043
9001
|
"name": "params",
|
|
@@ -9045,11 +9003,11 @@
|
|
|
9045
9003
|
"access": "public",
|
|
9046
9004
|
"tagname": "",
|
|
9047
9005
|
"class": "RouteInfoWithAttributes",
|
|
9048
|
-
"module": "ember"
|
|
9006
|
+
"module": "@ember/routing"
|
|
9049
9007
|
},
|
|
9050
9008
|
{
|
|
9051
9009
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
9052
|
-
"line":
|
|
9010
|
+
"line": 44,
|
|
9053
9011
|
"description": "The ordered list of the names of the params\nrequired for this route. It will contain the same\nstrings as `Object.keys(params)`, but here the order\nis significant. This allows users to correctly pass\nparams into routes programmatically.",
|
|
9054
9012
|
"itemtype": "property",
|
|
9055
9013
|
"name": "paramNames",
|
|
@@ -9057,11 +9015,11 @@
|
|
|
9057
9015
|
"access": "public",
|
|
9058
9016
|
"tagname": "",
|
|
9059
9017
|
"class": "RouteInfoWithAttributes",
|
|
9060
|
-
"module": "ember"
|
|
9018
|
+
"module": "@ember/routing"
|
|
9061
9019
|
},
|
|
9062
9020
|
{
|
|
9063
9021
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
9064
|
-
"line":
|
|
9022
|
+
"line": 54,
|
|
9065
9023
|
"description": "The values of any queryParams on this route.",
|
|
9066
9024
|
"itemtype": "property",
|
|
9067
9025
|
"name": "queryParams",
|
|
@@ -9069,11 +9027,11 @@
|
|
|
9069
9027
|
"access": "public",
|
|
9070
9028
|
"tagname": "",
|
|
9071
9029
|
"class": "RouteInfoWithAttributes",
|
|
9072
|
-
"module": "ember"
|
|
9030
|
+
"module": "@ember/routing"
|
|
9073
9031
|
},
|
|
9074
9032
|
{
|
|
9075
9033
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
9076
|
-
"line":
|
|
9034
|
+
"line": 60,
|
|
9077
9035
|
"description": "This is the resolved return value from the\nroute's model hook.",
|
|
9078
9036
|
"itemtype": "property",
|
|
9079
9037
|
"name": "attributes",
|
|
@@ -9081,11 +9039,11 @@
|
|
|
9081
9039
|
"access": "public",
|
|
9082
9040
|
"tagname": "",
|
|
9083
9041
|
"class": "RouteInfoWithAttributes",
|
|
9084
|
-
"module": "ember"
|
|
9042
|
+
"module": "@ember/routing"
|
|
9085
9043
|
},
|
|
9086
9044
|
{
|
|
9087
9045
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
9088
|
-
"line":
|
|
9046
|
+
"line": 67,
|
|
9089
9047
|
"description": "Will contain the result `Route#buildRouteInfoMetadata`\nfor the corresponding Route.",
|
|
9090
9048
|
"itemtype": "property",
|
|
9091
9049
|
"name": "metadata",
|
|
@@ -9093,11 +9051,11 @@
|
|
|
9093
9051
|
"access": "public",
|
|
9094
9052
|
"tagname": "",
|
|
9095
9053
|
"class": "RouteInfoWithAttributes",
|
|
9096
|
-
"module": "ember"
|
|
9054
|
+
"module": "@ember/routing"
|
|
9097
9055
|
},
|
|
9098
9056
|
{
|
|
9099
9057
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
9100
|
-
"line":
|
|
9058
|
+
"line": 74,
|
|
9101
9059
|
"description": "A reference to the parent route's RouteInfo.\nThis can be used to traverse upward to the topmost\n`RouteInfo`.",
|
|
9102
9060
|
"itemtype": "property",
|
|
9103
9061
|
"name": "parent",
|
|
@@ -9105,11 +9063,11 @@
|
|
|
9105
9063
|
"access": "public",
|
|
9106
9064
|
"tagname": "",
|
|
9107
9065
|
"class": "RouteInfoWithAttributes",
|
|
9108
|
-
"module": "ember"
|
|
9066
|
+
"module": "@ember/routing"
|
|
9109
9067
|
},
|
|
9110
9068
|
{
|
|
9111
9069
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
9112
|
-
"line":
|
|
9070
|
+
"line": 82,
|
|
9113
9071
|
"description": "A reference to the child route's RouteInfo.\nThis can be used to traverse downward to the\nleafmost `RouteInfo`.",
|
|
9114
9072
|
"itemtype": "property",
|
|
9115
9073
|
"name": "child",
|
|
@@ -9117,11 +9075,11 @@
|
|
|
9117
9075
|
"access": "public",
|
|
9118
9076
|
"tagname": "",
|
|
9119
9077
|
"class": "RouteInfoWithAttributes",
|
|
9120
|
-
"module": "ember"
|
|
9078
|
+
"module": "@ember/routing"
|
|
9121
9079
|
},
|
|
9122
9080
|
{
|
|
9123
9081
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
9124
|
-
"line":
|
|
9082
|
+
"line": 90,
|
|
9125
9083
|
"description": "Allows you to traverse through the linked list\nof `RouteInfo`s from the topmost to leafmost.\nReturns the first `RouteInfo` in the linked list\nfor which the callback returns true.\n\n This method is similar to the `find()` method\n defined in ECMAScript 2015.\n\n The callback method you provide should have the\n following signature (all parameters are optional):\n\n ```javascript\n function(item, index, array);\n ```\n\n - `item` is the current item in the iteration.\n - `index` is the current index in the iteration.\n - `array` is the array itself.\n\n It should return the `true` to include the item in\n the results, `false` otherwise.\n\n Note that in addition to a callback, you can also\n pass an optional target object that will be set as\n `this` on the context.",
|
|
9126
9084
|
"itemtype": "method",
|
|
9127
9085
|
"name": "find",
|
|
@@ -9145,11 +9103,11 @@
|
|
|
9145
9103
|
"access": "public",
|
|
9146
9104
|
"tagname": "",
|
|
9147
9105
|
"class": "RouteInfoWithAttributes",
|
|
9148
|
-
"module": "ember"
|
|
9106
|
+
"module": "@ember/routing"
|
|
9149
9107
|
},
|
|
9150
9108
|
{
|
|
9151
9109
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
9152
|
-
"line":
|
|
9110
|
+
"line": 135,
|
|
9153
9111
|
"description": "The dot-separated, fully-qualified name of the\nroute, like \"people.index\".",
|
|
9154
9112
|
"itemtype": "property",
|
|
9155
9113
|
"name": "name",
|
|
@@ -9157,11 +9115,11 @@
|
|
|
9157
9115
|
"access": "public",
|
|
9158
9116
|
"tagname": "",
|
|
9159
9117
|
"class": "RouteInfo",
|
|
9160
|
-
"module": "ember"
|
|
9118
|
+
"module": "@ember/routing"
|
|
9161
9119
|
},
|
|
9162
9120
|
{
|
|
9163
9121
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
9164
|
-
"line":
|
|
9122
|
+
"line": 142,
|
|
9165
9123
|
"description": "The final segment of the fully-qualified name of\nthe route, like \"index\"",
|
|
9166
9124
|
"itemtype": "property",
|
|
9167
9125
|
"name": "localName",
|
|
@@ -9169,11 +9127,11 @@
|
|
|
9169
9127
|
"access": "public",
|
|
9170
9128
|
"tagname": "",
|
|
9171
9129
|
"class": "RouteInfo",
|
|
9172
|
-
"module": "ember"
|
|
9130
|
+
"module": "@ember/routing"
|
|
9173
9131
|
},
|
|
9174
9132
|
{
|
|
9175
9133
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
9176
|
-
"line":
|
|
9134
|
+
"line": 149,
|
|
9177
9135
|
"description": "The values of the route's parameters. These are the\nsame params that are received as arguments to the\nroute's `model` hook. Contains only the parameters\nvalid for this route, if any (params for parent or\nchild routes are not merged).",
|
|
9178
9136
|
"itemtype": "property",
|
|
9179
9137
|
"name": "params",
|
|
@@ -9181,11 +9139,11 @@
|
|
|
9181
9139
|
"access": "public",
|
|
9182
9140
|
"tagname": "",
|
|
9183
9141
|
"class": "RouteInfo",
|
|
9184
|
-
"module": "ember"
|
|
9142
|
+
"module": "@ember/routing"
|
|
9185
9143
|
},
|
|
9186
9144
|
{
|
|
9187
9145
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
9188
|
-
"line":
|
|
9146
|
+
"line": 159,
|
|
9189
9147
|
"description": "The ordered list of the names of the params\nrequired for this route. It will contain the same\nstrings as Object.keys(params), but here the order\nis significant. This allows users to correctly pass\nparams into routes programmatically.",
|
|
9190
9148
|
"itemtype": "property",
|
|
9191
9149
|
"name": "paramNames",
|
|
@@ -9193,11 +9151,11 @@
|
|
|
9193
9151
|
"access": "public",
|
|
9194
9152
|
"tagname": "",
|
|
9195
9153
|
"class": "RouteInfo",
|
|
9196
|
-
"module": "ember"
|
|
9154
|
+
"module": "@ember/routing"
|
|
9197
9155
|
},
|
|
9198
9156
|
{
|
|
9199
9157
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
9200
|
-
"line":
|
|
9158
|
+
"line": 169,
|
|
9201
9159
|
"description": "The values of any queryParams on this route.",
|
|
9202
9160
|
"itemtype": "property",
|
|
9203
9161
|
"name": "queryParams",
|
|
@@ -9205,11 +9163,11 @@
|
|
|
9205
9163
|
"access": "public",
|
|
9206
9164
|
"tagname": "",
|
|
9207
9165
|
"class": "RouteInfo",
|
|
9208
|
-
"module": "ember"
|
|
9166
|
+
"module": "@ember/routing"
|
|
9209
9167
|
},
|
|
9210
9168
|
{
|
|
9211
9169
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
9212
|
-
"line":
|
|
9170
|
+
"line": 175,
|
|
9213
9171
|
"description": "Will contain the result `Route#buildRouteInfoMetadata`\nfor the corresponding Route.",
|
|
9214
9172
|
"itemtype": "property",
|
|
9215
9173
|
"name": "metadata",
|
|
@@ -9217,11 +9175,11 @@
|
|
|
9217
9175
|
"access": "public",
|
|
9218
9176
|
"tagname": "",
|
|
9219
9177
|
"class": "RouteInfo",
|
|
9220
|
-
"module": "ember"
|
|
9178
|
+
"module": "@ember/routing"
|
|
9221
9179
|
},
|
|
9222
9180
|
{
|
|
9223
9181
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
9224
|
-
"line":
|
|
9182
|
+
"line": 182,
|
|
9225
9183
|
"description": "A reference to the parent route's `RouteInfo`.\nThis can be used to traverse upward to the topmost\n`RouteInfo`.",
|
|
9226
9184
|
"itemtype": "property",
|
|
9227
9185
|
"name": "parent",
|
|
@@ -9229,11 +9187,11 @@
|
|
|
9229
9187
|
"access": "public",
|
|
9230
9188
|
"tagname": "",
|
|
9231
9189
|
"class": "RouteInfo",
|
|
9232
|
-
"module": "ember"
|
|
9190
|
+
"module": "@ember/routing"
|
|
9233
9191
|
},
|
|
9234
9192
|
{
|
|
9235
9193
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
9236
|
-
"line":
|
|
9194
|
+
"line": 190,
|
|
9237
9195
|
"description": "A reference to the child route's `RouteInfo`.\nThis can be used to traverse downward to the\nleafmost `RouteInfo`.",
|
|
9238
9196
|
"itemtype": "property",
|
|
9239
9197
|
"name": "child",
|
|
@@ -9241,11 +9199,11 @@
|
|
|
9241
9199
|
"access": "public",
|
|
9242
9200
|
"tagname": "",
|
|
9243
9201
|
"class": "RouteInfo",
|
|
9244
|
-
"module": "ember"
|
|
9202
|
+
"module": "@ember/routing"
|
|
9245
9203
|
},
|
|
9246
9204
|
{
|
|
9247
9205
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
9248
|
-
"line":
|
|
9206
|
+
"line": 198,
|
|
9249
9207
|
"description": "Allows you to traverse through the linked list\nof `RouteInfo`s from the topmost to leafmost.\nReturns the first `RouteInfo` in the linked list\nfor which the callback returns true.\n\n This method is similar to the `find()` method\n defined in ECMAScript 2015.\n\n The callback method you provide should have the\n following signature (all parameters are optional):\n\n ```javascript\n function(item, index, array);\n ```\n\n - `item` is the current item in the iteration.\n - `index` is the current index in the iteration.\n - `array` is the array itself.\n\n It should return the `true` to include the item in\n the results, `false` otherwise.\n\n Note that in addition to a callback, you can also\n pass an optional target object that will be set as\n `this` on the context.",
|
|
9250
9208
|
"itemtype": "method",
|
|
9251
9209
|
"name": "find",
|
|
@@ -9269,7 +9227,7 @@
|
|
|
9269
9227
|
"access": "public",
|
|
9270
9228
|
"tagname": "",
|
|
9271
9229
|
"class": "RouteInfo",
|
|
9272
|
-
"module": "ember"
|
|
9230
|
+
"module": "@ember/routing"
|
|
9273
9231
|
},
|
|
9274
9232
|
{
|
|
9275
9233
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
@@ -9352,7 +9310,7 @@
|
|
|
9352
9310
|
},
|
|
9353
9311
|
{
|
|
9354
9312
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9355
|
-
"line":
|
|
9313
|
+
"line": 305,
|
|
9356
9314
|
"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.",
|
|
9357
9315
|
"itemtype": "method",
|
|
9358
9316
|
"name": "serialize",
|
|
@@ -9380,8 +9338,8 @@
|
|
|
9380
9338
|
},
|
|
9381
9339
|
{
|
|
9382
9340
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9383
|
-
"line":
|
|
9384
|
-
"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
|
|
9341
|
+
"line": 373,
|
|
9342
|
+
"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```",
|
|
9385
9343
|
"itemtype": "property",
|
|
9386
9344
|
"name": "queryParams",
|
|
9387
9345
|
"type": "Object",
|
|
@@ -9393,7 +9351,7 @@
|
|
|
9393
9351
|
},
|
|
9394
9352
|
{
|
|
9395
9353
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9396
|
-
"line":
|
|
9354
|
+
"line": 426,
|
|
9397
9355
|
"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```",
|
|
9398
9356
|
"itemtype": "property",
|
|
9399
9357
|
"name": "templateName",
|
|
@@ -9407,7 +9365,7 @@
|
|
|
9407
9365
|
},
|
|
9408
9366
|
{
|
|
9409
9367
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9410
|
-
"line":
|
|
9368
|
+
"line": 459,
|
|
9411
9369
|
"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.",
|
|
9412
9370
|
"itemtype": "property",
|
|
9413
9371
|
"name": "controllerName",
|
|
@@ -9421,7 +9379,7 @@
|
|
|
9421
9379
|
},
|
|
9422
9380
|
{
|
|
9423
9381
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9424
|
-
"line":
|
|
9382
|
+
"line": 482,
|
|
9425
9383
|
"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```",
|
|
9426
9384
|
"itemtype": "property",
|
|
9427
9385
|
"name": "controller",
|
|
@@ -9434,7 +9392,7 @@
|
|
|
9434
9392
|
},
|
|
9435
9393
|
{
|
|
9436
9394
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9437
|
-
"line":
|
|
9395
|
+
"line": 513,
|
|
9438
9396
|
"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`.",
|
|
9439
9397
|
"itemtype": "property",
|
|
9440
9398
|
"name": "routeName",
|
|
@@ -9447,7 +9405,7 @@
|
|
|
9447
9405
|
},
|
|
9448
9406
|
{
|
|
9449
9407
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9450
|
-
"line":
|
|
9408
|
+
"line": 527,
|
|
9451
9409
|
"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`.",
|
|
9452
9410
|
"itemtype": "property",
|
|
9453
9411
|
"name": "fullRouteName",
|
|
@@ -9460,7 +9418,7 @@
|
|
|
9460
9418
|
},
|
|
9461
9419
|
{
|
|
9462
9420
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9463
|
-
"line":
|
|
9421
|
+
"line": 542,
|
|
9464
9422
|
"description": "Sets the name for this route, including a fully resolved name for routes\ninside engines.",
|
|
9465
9423
|
"access": "private",
|
|
9466
9424
|
"tagname": "",
|
|
@@ -9478,7 +9436,7 @@
|
|
|
9478
9436
|
},
|
|
9479
9437
|
{
|
|
9480
9438
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9481
|
-
"line":
|
|
9439
|
+
"line": 557,
|
|
9482
9440
|
"access": "private",
|
|
9483
9441
|
"tagname": "",
|
|
9484
9442
|
"itemtype": "method",
|
|
@@ -9488,7 +9446,7 @@
|
|
|
9488
9446
|
},
|
|
9489
9447
|
{
|
|
9490
9448
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9491
|
-
"line":
|
|
9449
|
+
"line": 588,
|
|
9492
9450
|
"access": "private",
|
|
9493
9451
|
"tagname": "",
|
|
9494
9452
|
"itemtype": "property",
|
|
@@ -9498,7 +9456,7 @@
|
|
|
9498
9456
|
},
|
|
9499
9457
|
{
|
|
9500
9458
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9501
|
-
"line":
|
|
9459
|
+
"line": 597,
|
|
9502
9460
|
"access": "private",
|
|
9503
9461
|
"tagname": "",
|
|
9504
9462
|
"itemtype": "method",
|
|
@@ -9508,7 +9466,7 @@
|
|
|
9508
9466
|
},
|
|
9509
9467
|
{
|
|
9510
9468
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9511
|
-
"line":
|
|
9469
|
+
"line": 605,
|
|
9512
9470
|
"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`",
|
|
9513
9471
|
"itemtype": "method",
|
|
9514
9472
|
"name": "paramsFor",
|
|
@@ -9531,7 +9489,7 @@
|
|
|
9531
9489
|
},
|
|
9532
9490
|
{
|
|
9533
9491
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9534
|
-
"line":
|
|
9492
|
+
"line": 686,
|
|
9535
9493
|
"description": "Serializes the query parameter key",
|
|
9536
9494
|
"itemtype": "method",
|
|
9537
9495
|
"name": "serializeQueryParamKey",
|
|
@@ -9549,7 +9507,7 @@
|
|
|
9549
9507
|
},
|
|
9550
9508
|
{
|
|
9551
9509
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9552
|
-
"line":
|
|
9510
|
+
"line": 697,
|
|
9553
9511
|
"description": "Serializes value of the query parameter based on defaultValueType",
|
|
9554
9512
|
"itemtype": "method",
|
|
9555
9513
|
"name": "serializeQueryParam",
|
|
@@ -9577,7 +9535,7 @@
|
|
|
9577
9535
|
},
|
|
9578
9536
|
{
|
|
9579
9537
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9580
|
-
"line":
|
|
9538
|
+
"line": 713,
|
|
9581
9539
|
"description": "Deserializes value of the query parameter based on defaultValueType",
|
|
9582
9540
|
"itemtype": "method",
|
|
9583
9541
|
"name": "deserializeQueryParam",
|
|
@@ -9605,7 +9563,7 @@
|
|
|
9605
9563
|
},
|
|
9606
9564
|
{
|
|
9607
9565
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9608
|
-
"line":
|
|
9566
|
+
"line": 729,
|
|
9609
9567
|
"access": "private",
|
|
9610
9568
|
"tagname": "",
|
|
9611
9569
|
"itemtype": "property",
|
|
@@ -9615,7 +9573,7 @@
|
|
|
9615
9573
|
},
|
|
9616
9574
|
{
|
|
9617
9575
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9618
|
-
"line":
|
|
9576
|
+
"line": 745,
|
|
9619
9577
|
"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```",
|
|
9620
9578
|
"itemtype": "method",
|
|
9621
9579
|
"name": "resetController",
|
|
@@ -9644,7 +9602,7 @@
|
|
|
9644
9602
|
},
|
|
9645
9603
|
{
|
|
9646
9604
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9647
|
-
"line":
|
|
9605
|
+
"line": 772,
|
|
9648
9606
|
"access": "private",
|
|
9649
9607
|
"tagname": "",
|
|
9650
9608
|
"itemtype": "method",
|
|
@@ -9654,7 +9612,7 @@
|
|
|
9654
9612
|
},
|
|
9655
9613
|
{
|
|
9656
9614
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9657
|
-
"line":
|
|
9615
|
+
"line": 783,
|
|
9658
9616
|
"access": "private",
|
|
9659
9617
|
"tagname": "",
|
|
9660
9618
|
"itemtype": "method",
|
|
@@ -9665,7 +9623,7 @@
|
|
|
9665
9623
|
},
|
|
9666
9624
|
{
|
|
9667
9625
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9668
|
-
"line":
|
|
9626
|
+
"line": 797,
|
|
9669
9627
|
"access": "private",
|
|
9670
9628
|
"tagname": "",
|
|
9671
9629
|
"itemtype": "method",
|
|
@@ -9675,7 +9633,7 @@
|
|
|
9675
9633
|
},
|
|
9676
9634
|
{
|
|
9677
9635
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9678
|
-
"line":
|
|
9636
|
+
"line": 808,
|
|
9679
9637
|
"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```",
|
|
9680
9638
|
"itemtype": "event",
|
|
9681
9639
|
"name": "activate",
|
|
@@ -9687,7 +9645,7 @@
|
|
|
9687
9645
|
},
|
|
9688
9646
|
{
|
|
9689
9647
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9690
|
-
"line":
|
|
9648
|
+
"line": 828,
|
|
9691
9649
|
"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```",
|
|
9692
9650
|
"itemtype": "event",
|
|
9693
9651
|
"name": "deactivate",
|
|
@@ -9699,7 +9657,7 @@
|
|
|
9699
9657
|
},
|
|
9700
9658
|
{
|
|
9701
9659
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9702
|
-
"line":
|
|
9660
|
+
"line": 848,
|
|
9703
9661
|
"description": "This hook is executed when the router completely exits this route. It is\nnot executed when the model for the route changes.",
|
|
9704
9662
|
"itemtype": "method",
|
|
9705
9663
|
"name": "deactivate",
|
|
@@ -9718,7 +9676,7 @@
|
|
|
9718
9676
|
},
|
|
9719
9677
|
{
|
|
9720
9678
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9721
|
-
"line":
|
|
9679
|
+
"line": 859,
|
|
9722
9680
|
"description": "This hook is executed when the router enters the route. It is not executed\nwhen the model for the route changes.",
|
|
9723
9681
|
"itemtype": "method",
|
|
9724
9682
|
"name": "activate",
|
|
@@ -9737,7 +9695,7 @@
|
|
|
9737
9695
|
},
|
|
9738
9696
|
{
|
|
9739
9697
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9740
|
-
"line":
|
|
9698
|
+
"line": 870,
|
|
9741
9699
|
"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```",
|
|
9742
9700
|
"itemtype": "method",
|
|
9743
9701
|
"name": "transitionTo",
|
|
@@ -9775,7 +9733,7 @@
|
|
|
9775
9733
|
},
|
|
9776
9734
|
{
|
|
9777
9735
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9778
|
-
"line":
|
|
9736
|
+
"line": 1068,
|
|
9779
9737
|
"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.",
|
|
9780
9738
|
"itemtype": "method",
|
|
9781
9739
|
"name": "intermediateTransitionTo",
|
|
@@ -9799,7 +9757,7 @@
|
|
|
9799
9757
|
},
|
|
9800
9758
|
{
|
|
9801
9759
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9802
|
-
"line":
|
|
9760
|
+
"line": 1090,
|
|
9803
9761
|
"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.",
|
|
9804
9762
|
"itemtype": "method",
|
|
9805
9763
|
"name": "refresh",
|
|
@@ -9815,7 +9773,7 @@
|
|
|
9815
9773
|
},
|
|
9816
9774
|
{
|
|
9817
9775
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9818
|
-
"line":
|
|
9776
|
+
"line": 1116,
|
|
9819
9777
|
"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```",
|
|
9820
9778
|
"itemtype": "method",
|
|
9821
9779
|
"name": "replaceWith",
|
|
@@ -9851,7 +9809,7 @@
|
|
|
9851
9809
|
},
|
|
9852
9810
|
{
|
|
9853
9811
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9854
|
-
"line":
|
|
9812
|
+
"line": 1164,
|
|
9855
9813
|
"description": "This hook is the entry point for router.js",
|
|
9856
9814
|
"access": "private",
|
|
9857
9815
|
"tagname": "",
|
|
@@ -9862,7 +9820,7 @@
|
|
|
9862
9820
|
},
|
|
9863
9821
|
{
|
|
9864
9822
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9865
|
-
"line":
|
|
9823
|
+
"line": 1239,
|
|
9866
9824
|
"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.",
|
|
9867
9825
|
"itemtype": "method",
|
|
9868
9826
|
"name": "beforeModel",
|
|
@@ -9885,7 +9843,7 @@
|
|
|
9885
9843
|
},
|
|
9886
9844
|
{
|
|
9887
9845
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9888
|
-
"line":
|
|
9846
|
+
"line": 1274,
|
|
9889
9847
|
"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.",
|
|
9890
9848
|
"itemtype": "method",
|
|
9891
9849
|
"name": "afterModel",
|
|
@@ -9913,7 +9871,7 @@
|
|
|
9913
9871
|
},
|
|
9914
9872
|
{
|
|
9915
9873
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9916
|
-
"line":
|
|
9874
|
+
"line": 1312,
|
|
9917
9875
|
"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.",
|
|
9918
9876
|
"itemtype": "method",
|
|
9919
9877
|
"name": "redirect",
|
|
@@ -9937,7 +9895,7 @@
|
|
|
9937
9895
|
},
|
|
9938
9896
|
{
|
|
9939
9897
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9940
|
-
"line":
|
|
9898
|
+
"line": 1337,
|
|
9941
9899
|
"description": "Called when the context is changed by router.js.",
|
|
9942
9900
|
"access": "private",
|
|
9943
9901
|
"tagname": "",
|
|
@@ -9948,7 +9906,7 @@
|
|
|
9948
9906
|
},
|
|
9949
9907
|
{
|
|
9950
9908
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9951
|
-
"line":
|
|
9909
|
+
"line": 1347,
|
|
9952
9910
|
"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```",
|
|
9953
9911
|
"itemtype": "method",
|
|
9954
9912
|
"name": "model",
|
|
@@ -9976,7 +9934,7 @@
|
|
|
9976
9934
|
},
|
|
9977
9935
|
{
|
|
9978
9936
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9979
|
-
"line":
|
|
9937
|
+
"line": 1462,
|
|
9980
9938
|
"access": "private",
|
|
9981
9939
|
"tagname": "",
|
|
9982
9940
|
"itemtype": "method",
|
|
@@ -10002,7 +9960,7 @@
|
|
|
10002
9960
|
},
|
|
10003
9961
|
{
|
|
10004
9962
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
10005
|
-
"line":
|
|
9963
|
+
"line": 1475,
|
|
10006
9964
|
"itemtype": "method",
|
|
10007
9965
|
"name": "findModel",
|
|
10008
9966
|
"params": [
|
|
@@ -10024,7 +9982,7 @@
|
|
|
10024
9982
|
},
|
|
10025
9983
|
{
|
|
10026
9984
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
10027
|
-
"line":
|
|
9985
|
+
"line": 1486,
|
|
10028
9986
|
"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.",
|
|
10029
9987
|
"example": [
|
|
10030
9988
|
" 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```"
|
|
@@ -10057,7 +10015,7 @@
|
|
|
10057
10015
|
},
|
|
10058
10016
|
{
|
|
10059
10017
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
10060
|
-
"line":
|
|
10018
|
+
"line": 1562,
|
|
10061
10019
|
"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```",
|
|
10062
10020
|
"itemtype": "method",
|
|
10063
10021
|
"name": "controllerFor",
|
|
@@ -10080,7 +10038,7 @@
|
|
|
10080
10038
|
},
|
|
10081
10039
|
{
|
|
10082
10040
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
10083
|
-
"line":
|
|
10041
|
+
"line": 1616,
|
|
10084
10042
|
"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```",
|
|
10085
10043
|
"itemtype": "method",
|
|
10086
10044
|
"name": "generateController",
|
|
@@ -10098,7 +10056,7 @@
|
|
|
10098
10056
|
},
|
|
10099
10057
|
{
|
|
10100
10058
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
10101
|
-
"line":
|
|
10059
|
+
"line": 1644,
|
|
10102
10060
|
"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```",
|
|
10103
10061
|
"itemtype": "method",
|
|
10104
10062
|
"name": "modelFor",
|
|
@@ -10121,7 +10079,7 @@
|
|
|
10121
10079
|
},
|
|
10122
10080
|
{
|
|
10123
10081
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
10124
|
-
"line":
|
|
10082
|
+
"line": 1716,
|
|
10125
10083
|
"description": "`this[RENDER]` is used to render a template into a region of another template\n(indicated by an `{{outlet}}`).",
|
|
10126
10084
|
"itemtype": "method",
|
|
10127
10085
|
"name": "this[RENDER]",
|
|
@@ -10171,7 +10129,7 @@
|
|
|
10171
10129
|
},
|
|
10172
10130
|
{
|
|
10173
10131
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
10174
|
-
"line":
|
|
10132
|
+
"line": 1743,
|
|
10175
10133
|
"access": "private",
|
|
10176
10134
|
"tagname": "",
|
|
10177
10135
|
"itemtype": "method",
|
|
@@ -10181,7 +10139,7 @@
|
|
|
10181
10139
|
},
|
|
10182
10140
|
{
|
|
10183
10141
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
10184
|
-
"line":
|
|
10142
|
+
"line": 1756,
|
|
10185
10143
|
"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```",
|
|
10186
10144
|
"itemtype": "method",
|
|
10187
10145
|
"name": "buildRouteInfoMetadata",
|
|
@@ -10196,7 +10154,7 @@
|
|
|
10196
10154
|
},
|
|
10197
10155
|
{
|
|
10198
10156
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
10199
|
-
"line":
|
|
10157
|
+
"line": 1807,
|
|
10200
10158
|
"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)`",
|
|
10201
10159
|
"itemtype": "property",
|
|
10202
10160
|
"name": "store",
|
|
@@ -10208,7 +10166,7 @@
|
|
|
10208
10166
|
},
|
|
10209
10167
|
{
|
|
10210
10168
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
10211
|
-
"line":
|
|
10169
|
+
"line": 1873,
|
|
10212
10170
|
"access": "private",
|
|
10213
10171
|
"tagname": "",
|
|
10214
10172
|
"itemtype": "property",
|
|
@@ -10218,7 +10176,7 @@
|
|
|
10218
10176
|
},
|
|
10219
10177
|
{
|
|
10220
10178
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
10221
|
-
"line":
|
|
10179
|
+
"line": 2010,
|
|
10222
10180
|
"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```",
|
|
10223
10181
|
"itemtype": "method",
|
|
10224
10182
|
"name": "send",
|
|
@@ -10242,7 +10200,7 @@
|
|
|
10242
10200
|
},
|
|
10243
10201
|
{
|
|
10244
10202
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
10245
|
-
"line":
|
|
10203
|
+
"line": 2388,
|
|
10246
10204
|
"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```",
|
|
10247
10205
|
"itemtype": "property",
|
|
10248
10206
|
"name": "controller",
|
|
@@ -10255,7 +10213,7 @@
|
|
|
10255
10213
|
},
|
|
10256
10214
|
{
|
|
10257
10215
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
10258
|
-
"line":
|
|
10216
|
+
"line": 2419,
|
|
10259
10217
|
"description": "This action is called when one or more query params have changed. Bubbles.",
|
|
10260
10218
|
"itemtype": "method",
|
|
10261
10219
|
"name": "queryParamsDidChange",
|
|
@@ -10875,7 +10833,7 @@
|
|
|
10875
10833
|
},
|
|
10876
10834
|
{
|
|
10877
10835
|
"file": "packages/@ember/-internals/routing/lib/system/transition.ts",
|
|
10878
|
-
"line":
|
|
10836
|
+
"line": 16,
|
|
10879
10837
|
"description": "The Transition's internal promise. Calling `.then` on this property\nis that same as calling `.then` on the Transition object itself, but\nthis property is exposed for when you want to pass around a\nTransition's promise, but not the Transition object itself, since\nTransition object can be externally `abort`ed, while the promise\ncannot.",
|
|
10880
10838
|
"itemtype": "property",
|
|
10881
10839
|
"name": "promise",
|
|
@@ -10887,7 +10845,7 @@
|
|
|
10887
10845
|
},
|
|
10888
10846
|
{
|
|
10889
10847
|
"file": "packages/@ember/-internals/routing/lib/system/transition.ts",
|
|
10890
|
-
"line":
|
|
10848
|
+
"line": 29,
|
|
10891
10849
|
"description": "Custom state can be stored on a Transition's `data` object.\nThis can be useful for decorating a Transition within an earlier\nhook and shared with a later hook. Properties set on `data` will\nbe copied to new transitions generated by calling `retry` on this\ntransition.",
|
|
10892
10850
|
"itemtype": "property",
|
|
10893
10851
|
"name": "data",
|
|
@@ -10899,7 +10857,7 @@
|
|
|
10899
10857
|
},
|
|
10900
10858
|
{
|
|
10901
10859
|
"file": "packages/@ember/-internals/routing/lib/system/transition.ts",
|
|
10902
|
-
"line":
|
|
10860
|
+
"line": 41,
|
|
10903
10861
|
"description": "A standard promise hook that resolves if the transition\nsucceeds and rejects if it fails/redirects/aborts.\n\nForwards to the internal `promise` property which you can\nuse in situations where you want to pass around a thennable,\nbut not the Transition itself.",
|
|
10904
10862
|
"itemtype": "method",
|
|
10905
10863
|
"name": "then",
|
|
@@ -10931,7 +10889,7 @@
|
|
|
10931
10889
|
},
|
|
10932
10890
|
{
|
|
10933
10891
|
"file": "packages/@ember/-internals/routing/lib/system/transition.ts",
|
|
10934
|
-
"line":
|
|
10892
|
+
"line": 58,
|
|
10935
10893
|
"description": "Forwards to the internal `promise` property which you can\n use in situations where you want to pass around a thennable,\n but not the Transition itself.",
|
|
10936
10894
|
"itemtype": "method",
|
|
10937
10895
|
"name": "catch",
|
|
@@ -10958,7 +10916,7 @@
|
|
|
10958
10916
|
},
|
|
10959
10917
|
{
|
|
10960
10918
|
"file": "packages/@ember/-internals/routing/lib/system/transition.ts",
|
|
10961
|
-
"line":
|
|
10919
|
+
"line": 72,
|
|
10962
10920
|
"description": "Forwards to the internal `promise` property which you can\n use in situations where you want to pass around a thennable,\n but not the Transition itself.",
|
|
10963
10921
|
"itemtype": "method",
|
|
10964
10922
|
"name": "finally",
|
|
@@ -10985,7 +10943,7 @@
|
|
|
10985
10943
|
},
|
|
10986
10944
|
{
|
|
10987
10945
|
"file": "packages/@ember/-internals/routing/lib/system/transition.ts",
|
|
10988
|
-
"line":
|
|
10946
|
+
"line": 86,
|
|
10989
10947
|
"description": "Aborts the Transition. Note you can also implicitly abort a transition\nby initiating another transition while a previous one is underway.",
|
|
10990
10948
|
"itemtype": "method",
|
|
10991
10949
|
"name": "abort",
|
|
@@ -11000,7 +10958,7 @@
|
|
|
11000
10958
|
},
|
|
11001
10959
|
{
|
|
11002
10960
|
"file": "packages/@ember/-internals/routing/lib/system/transition.ts",
|
|
11003
|
-
"line":
|
|
10961
|
+
"line": 95,
|
|
11004
10962
|
"description": "Retries a previously-aborted transition (making sure to abort the\n transition if it's still active). Returns a new transition that\n represents the new attempt to transition.",
|
|
11005
10963
|
"itemtype": "method",
|
|
11006
10964
|
"name": "retry",
|
|
@@ -11015,7 +10973,7 @@
|
|
|
11015
10973
|
},
|
|
11016
10974
|
{
|
|
11017
10975
|
"file": "packages/@ember/-internals/routing/lib/system/transition.ts",
|
|
11018
|
-
"line":
|
|
10976
|
+
"line": 106,
|
|
11019
10977
|
"description": "Sets the URL-changing method to be employed at the end of a\n successful transition. By default, a new Transition will just\n use `updateURL`, but passing 'replace' to this method will\n cause the URL to update using 'replaceWith' instead. Omitting\n a parameter will disable the URL change, allowing for transitions\n that don't update the URL at completion (this is also used for\n handleURL, since the URL has already changed before the\n transition took place).",
|
|
11020
10978
|
"itemtype": "method",
|
|
11021
10979
|
"name": "method",
|
|
@@ -11037,7 +10995,7 @@
|
|
|
11037
10995
|
},
|
|
11038
10996
|
{
|
|
11039
10997
|
"file": "packages/@ember/-internals/routing/lib/system/transition.ts",
|
|
11040
|
-
"line":
|
|
10998
|
+
"line": 127,
|
|
11041
10999
|
"description": "Fires an event on the current list of resolved/resolving\n handlers within this transition. Useful for firing events\n on route hierarchies that haven't fully been entered yet.\nNote: This method is also aliased as `send`",
|
|
11042
11000
|
"itemtype": "method",
|
|
11043
11001
|
"name": "trigger",
|
|
@@ -11062,7 +11020,7 @@
|
|
|
11062
11020
|
},
|
|
11063
11021
|
{
|
|
11064
11022
|
"file": "packages/@ember/-internals/routing/lib/system/transition.ts",
|
|
11065
|
-
"line":
|
|
11023
|
+
"line": 141,
|
|
11066
11024
|
"description": "This property is a `RouteInfo` object that represents\nwhere the router is transitioning to. It's important\nto note that a `RouteInfo` is a linked list and this\nproperty represents the leafmost route.",
|
|
11067
11025
|
"itemtype": "property",
|
|
11068
11026
|
"name": "to",
|
|
@@ -11074,7 +11032,7 @@
|
|
|
11074
11032
|
},
|
|
11075
11033
|
{
|
|
11076
11034
|
"file": "packages/@ember/-internals/routing/lib/system/transition.ts",
|
|
11077
|
-
"line":
|
|
11035
|
+
"line": 150,
|
|
11078
11036
|
"description": "This property is a `RouteInfo` object that represents\nwhere transition originated from. It's important\nto note that a `RouteInfo` is a linked list and this\nproperty represents the head node of the list.\nIn the case of an initial render, `from` will be set to\n`null`.",
|
|
11079
11037
|
"itemtype": "property",
|
|
11080
11038
|
"name": "from",
|
|
@@ -11086,7 +11044,7 @@
|
|
|
11086
11044
|
},
|
|
11087
11045
|
{
|
|
11088
11046
|
"file": "packages/@ember/-internals/routing/lib/system/transition.ts",
|
|
11089
|
-
"line":
|
|
11047
|
+
"line": 161,
|
|
11090
11048
|
"description": "Transitions are aborted and their promises rejected\nwhen redirects occur; this method returns a promise\nthat will follow any redirects that occur and fulfill\nwith the value fulfilled by any redirecting transitions\nthat occur.",
|
|
11091
11049
|
"itemtype": "method",
|
|
11092
11050
|
"name": "followRedirects",
|
|
@@ -11101,7 +11059,7 @@
|
|
|
11101
11059
|
},
|
|
11102
11060
|
{
|
|
11103
11061
|
"file": "packages/@ember/-internals/routing/lib/system/transition.ts",
|
|
11104
|
-
"line":
|
|
11062
|
+
"line": 174,
|
|
11105
11063
|
"description": "In non-production builds, this function will return the stack that this Transition was\ncreated within. In production builds, this function will not be present.",
|
|
11106
11064
|
"itemtype": "method",
|
|
11107
11065
|
"name": "debugCreationStack",
|
|
@@ -11113,7 +11071,7 @@
|
|
|
11113
11071
|
},
|
|
11114
11072
|
{
|
|
11115
11073
|
"file": "packages/@ember/-internals/routing/lib/system/transition.ts",
|
|
11116
|
-
"line":
|
|
11074
|
+
"line": 182,
|
|
11117
11075
|
"description": "In non-production builds, this function will return the stack that this Transition was\naborted within (or `undefined` if the Transition has not been aborted yet). In production\nbuilds, this function will not be present.",
|
|
11118
11076
|
"itemtype": "method",
|
|
11119
11077
|
"name": "debugAbortStack",
|
|
@@ -11125,7 +11083,7 @@
|
|
|
11125
11083
|
},
|
|
11126
11084
|
{
|
|
11127
11085
|
"file": "packages/@ember/-internals/routing/lib/system/transition.ts",
|
|
11128
|
-
"line":
|
|
11086
|
+
"line": 191,
|
|
11129
11087
|
"description": "In non-production builds, this property references the Transition that _this_ Transition\nwas derived from or `undefined` if this transition did not derive from another. In\nproduction builds, this property will not be present.",
|
|
11130
11088
|
"itemtype": "property",
|
|
11131
11089
|
"name": "debugPreviousTransition",
|
|
@@ -12489,28 +12447,28 @@
|
|
|
12489
12447
|
},
|
|
12490
12448
|
{
|
|
12491
12449
|
"file": "packages/@ember/-internals/runtime/lib/mixins/evented.d.ts",
|
|
12492
|
-
"line":
|
|
12450
|
+
"line": 16,
|
|
12493
12451
|
"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.",
|
|
12494
12452
|
"class": "Evented",
|
|
12495
12453
|
"module": "@ember/enumerable"
|
|
12496
12454
|
},
|
|
12497
12455
|
{
|
|
12498
12456
|
"file": "packages/@ember/-internals/runtime/lib/mixins/evented.d.ts",
|
|
12499
|
-
"line":
|
|
12457
|
+
"line": 27,
|
|
12500
12458
|
"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.",
|
|
12501
12459
|
"class": "Evented",
|
|
12502
12460
|
"module": "@ember/enumerable"
|
|
12503
12461
|
},
|
|
12504
12462
|
{
|
|
12505
12463
|
"file": "packages/@ember/-internals/runtime/lib/mixins/evented.d.ts",
|
|
12506
|
-
"line":
|
|
12464
|
+
"line": 33,
|
|
12507
12465
|
"description": "Cancels subscription for given name, target, and method.",
|
|
12508
12466
|
"class": "Evented",
|
|
12509
12467
|
"module": "@ember/enumerable"
|
|
12510
12468
|
},
|
|
12511
12469
|
{
|
|
12512
12470
|
"file": "packages/@ember/-internals/runtime/lib/mixins/evented.d.ts",
|
|
12513
|
-
"line":
|
|
12471
|
+
"line": 42,
|
|
12514
12472
|
"description": "Checks to see if object has any subscriptions for named event.",
|
|
12515
12473
|
"class": "Evented",
|
|
12516
12474
|
"module": "@ember/enumerable"
|
|
@@ -13572,198 +13530,14 @@
|
|
|
13572
13530
|
"module": "@ember/array"
|
|
13573
13531
|
},
|
|
13574
13532
|
{
|
|
13575
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.
|
|
13576
|
-
"line":
|
|
13577
|
-
"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",
|
|
13578
|
-
"class": "CoreObject",
|
|
13579
|
-
"module": "@ember/array"
|
|
13580
|
-
},
|
|
13581
|
-
{
|
|
13582
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13583
|
-
"line": 14,
|
|
13584
|
-
"class": "CoreObject",
|
|
13585
|
-
"module": "@ember/array"
|
|
13586
|
-
},
|
|
13587
|
-
{
|
|
13588
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13589
|
-
"line": 17,
|
|
13590
|
-
"class": "CoreObject",
|
|
13591
|
-
"module": "@ember/array"
|
|
13592
|
-
},
|
|
13593
|
-
{
|
|
13594
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13595
|
-
"line": 22,
|
|
13596
|
-
"class": "CoreObject",
|
|
13597
|
-
"module": "@ember/array"
|
|
13598
|
-
},
|
|
13599
|
-
{
|
|
13600
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13601
|
-
"line": 24,
|
|
13602
|
-
"class": "CoreObject",
|
|
13603
|
-
"module": "@ember/array"
|
|
13604
|
-
},
|
|
13605
|
-
{
|
|
13606
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13607
|
-
"line": 30,
|
|
13608
|
-
"class": "CoreObject",
|
|
13609
|
-
"module": "@ember/array"
|
|
13610
|
-
},
|
|
13611
|
-
{
|
|
13612
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13613
|
-
"line": 33,
|
|
13614
|
-
"class": "CoreObject",
|
|
13615
|
-
"module": "@ember/array"
|
|
13616
|
-
},
|
|
13617
|
-
{
|
|
13618
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13619
|
-
"line": 36,
|
|
13620
|
-
"class": "CoreObject",
|
|
13621
|
-
"module": "@ember/array"
|
|
13622
|
-
},
|
|
13623
|
-
{
|
|
13624
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13625
|
-
"line": 44,
|
|
13626
|
-
"class": "CoreObject",
|
|
13627
|
-
"module": "@ember/array"
|
|
13628
|
-
},
|
|
13629
|
-
{
|
|
13630
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13631
|
-
"line": 50,
|
|
13632
|
-
"class": "CoreObject",
|
|
13633
|
-
"module": "@ember/array"
|
|
13634
|
-
},
|
|
13635
|
-
{
|
|
13636
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13637
|
-
"line": 53,
|
|
13638
|
-
"class": "CoreObject",
|
|
13639
|
-
"module": "@ember/array"
|
|
13640
|
-
},
|
|
13641
|
-
{
|
|
13642
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13643
|
-
"line": 56,
|
|
13644
|
-
"description": "CoreObject constructor takes owner.",
|
|
13645
|
-
"class": "CoreObject",
|
|
13646
|
-
"module": "@ember/array"
|
|
13647
|
-
},
|
|
13648
|
-
{
|
|
13649
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13650
|
-
"line": 61,
|
|
13651
|
-
"class": "CoreObject",
|
|
13652
|
-
"module": "@ember/array"
|
|
13653
|
-
},
|
|
13654
|
-
{
|
|
13655
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13656
|
-
"line": 64,
|
|
13657
|
-
"description": "An overridable method called when objects are instantiated. By default,\ndoes nothing unless it is overridden during class definition.",
|
|
13658
|
-
"class": "CoreObject",
|
|
13659
|
-
"module": "@ember/array"
|
|
13660
|
-
},
|
|
13661
|
-
{
|
|
13662
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13663
|
-
"line": 70,
|
|
13664
|
-
"description": "Defines the properties that will be concatenated from the superclass (instead of overridden).",
|
|
13665
|
-
"default": "null",
|
|
13666
|
-
"class": "CoreObject",
|
|
13667
|
-
"module": "@ember/array"
|
|
13668
|
-
},
|
|
13669
|
-
{
|
|
13670
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13671
|
-
"line": 76,
|
|
13672
|
-
"description": "Destroyed object property flag. If this property is true the observers and bindings were\nalready removed by the effect of calling the destroy() method.",
|
|
13673
|
-
"default": "false",
|
|
13674
|
-
"class": "CoreObject",
|
|
13675
|
-
"module": "@ember/array"
|
|
13676
|
-
},
|
|
13677
|
-
{
|
|
13678
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13679
|
-
"line": 82,
|
|
13680
|
-
"description": "Destruction scheduled flag. The destroy() method has been called. The object stays intact\nuntil the end of the run loop at which point the isDestroyed flag is set.",
|
|
13681
|
-
"default": "false",
|
|
13682
|
-
"class": "CoreObject",
|
|
13683
|
-
"module": "@ember/array"
|
|
13684
|
-
},
|
|
13685
|
-
{
|
|
13686
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13687
|
-
"line": 90,
|
|
13688
|
-
"description": "Destroys an object by setting the `isDestroyed` flag and removing its\nmetadata, which effectively destroys observers and bindings.\nIf you try to set a property on a destroyed object, an exception will be\nraised.\nNote that destruction is scheduled for the end of the run loop and does not\nhappen immediately. It will set an isDestroying flag immediately.",
|
|
13689
|
-
"return": {
|
|
13690
|
-
"description": "receiver"
|
|
13691
|
-
},
|
|
13692
|
-
"class": "CoreObject",
|
|
13693
|
-
"module": "@ember/array"
|
|
13694
|
-
},
|
|
13695
|
-
{
|
|
13696
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13697
|
-
"line": 101,
|
|
13698
|
-
"description": "Override to implement teardown.",
|
|
13699
|
-
"class": "CoreObject",
|
|
13700
|
-
"module": "@ember/array"
|
|
13701
|
-
},
|
|
13702
|
-
{
|
|
13703
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13704
|
-
"line": 106,
|
|
13705
|
-
"description": "Returns a string representation which attempts to provide more information than Javascript's toString\ntypically does, in a generic way for all Ember objects (e.g., \"<App.Person:ember1024>\").",
|
|
13706
|
-
"return": {
|
|
13707
|
-
"description": "string representation"
|
|
13708
|
-
},
|
|
13709
|
-
"class": "CoreObject",
|
|
13710
|
-
"module": "@ember/array"
|
|
13711
|
-
},
|
|
13712
|
-
{
|
|
13713
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13714
|
-
"line": 118,
|
|
13715
|
-
"class": "CoreObject",
|
|
13716
|
-
"module": "@ember/array"
|
|
13717
|
-
},
|
|
13718
|
-
{
|
|
13719
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13720
|
-
"line": 124,
|
|
13721
|
-
"class": "CoreObject",
|
|
13722
|
-
"module": "@ember/array"
|
|
13723
|
-
},
|
|
13724
|
-
{
|
|
13725
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13726
|
-
"line": 127,
|
|
13727
|
-
"description": "Iterate over each computed property for the class, passing its name and any\nassociated metadata (see metaForProperty) to the callback.",
|
|
13728
|
-
"internal": "",
|
|
13729
|
-
"class": "CoreObject",
|
|
13730
|
-
"module": "@ember/array"
|
|
13731
|
-
},
|
|
13732
|
-
{
|
|
13733
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13734
|
-
"line": 133,
|
|
13735
|
-
"description": "Returns the original hash that was passed to meta().",
|
|
13736
|
-
"params": [
|
|
13737
|
-
{
|
|
13738
|
-
"name": "key",
|
|
13739
|
-
"description": "property name"
|
|
13740
|
-
}
|
|
13741
|
-
],
|
|
13742
|
-
"internal": "",
|
|
13743
|
-
"class": "CoreObject",
|
|
13744
|
-
"module": "@ember/array"
|
|
13745
|
-
},
|
|
13746
|
-
{
|
|
13747
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13748
|
-
"line": 140,
|
|
13749
|
-
"class": "CoreObject",
|
|
13750
|
-
"module": "@ember/array"
|
|
13751
|
-
},
|
|
13752
|
-
{
|
|
13753
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13754
|
-
"line": 143,
|
|
13755
|
-
"class": "CoreObject",
|
|
13756
|
-
"module": "@ember/array"
|
|
13757
|
-
},
|
|
13758
|
-
{
|
|
13759
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.d.ts",
|
|
13760
|
-
"line": 146,
|
|
13533
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.ts",
|
|
13534
|
+
"line": 236,
|
|
13761
13535
|
"class": "CoreObject",
|
|
13762
|
-
"module": "@ember/
|
|
13536
|
+
"module": "@ember/object"
|
|
13763
13537
|
},
|
|
13764
13538
|
{
|
|
13765
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.
|
|
13766
|
-
"line":
|
|
13539
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.ts",
|
|
13540
|
+
"line": 318,
|
|
13767
13541
|
"description": "An overridable method called when objects are instantiated. By default,\ndoes nothing unless it is overridden during class definition.\n\nExample:\n\n```javascript\nimport EmberObject from '@ember/object';\n\nconst Person = EmberObject.extend({\n init() {\n alert(`Name is ${this.get('name')}`);\n }\n});\n\nlet steve = Person.create({\n name: 'Steve'\n});\n\n// alerts 'Name is Steve'.\n```\n\nNOTE: If you do override `init` for a framework class like `Component`\nfrom `@ember/component`, be sure to call `this._super(...arguments)`\nin your `init` declaration!\nIf you don't, Ember may not have an opportunity to\ndo important setup work, and you'll see strange behavior in your\napplication.",
|
|
13768
13542
|
"itemtype": "method",
|
|
13769
13543
|
"name": "init",
|
|
@@ -13773,8 +13547,8 @@
|
|
|
13773
13547
|
"module": "@ember/object"
|
|
13774
13548
|
},
|
|
13775
13549
|
{
|
|
13776
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.
|
|
13777
|
-
"line":
|
|
13550
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.ts",
|
|
13551
|
+
"line": 352,
|
|
13778
13552
|
"description": "Defines the properties that will be concatenated from the superclass\n(instead of overridden).\n\nBy default, when you extend an Ember class a property defined in\nthe subclass overrides a property with the same name that is defined\nin the superclass. However, there are some cases where it is preferable\nto build up a property's value by combining the superclass' property\nvalue with the subclass' value. An example of this in use within Ember\nis the `classNames` property of `Component` from `@ember/component`.\n\nHere is some sample code showing the difference between a concatenated\nproperty and a normal one:\n\n```javascript\nimport EmberObject from '@ember/object';\n\nconst Bar = EmberObject.extend({\n // Configure which properties to concatenate\n concatenatedProperties: ['concatenatedProperty'],\n\n someNonConcatenatedProperty: ['bar'],\n concatenatedProperty: ['bar']\n});\n\nconst FooBar = Bar.extend({\n someNonConcatenatedProperty: ['foo'],\n concatenatedProperty: ['foo']\n});\n\nlet fooBar = FooBar.create();\nfooBar.get('someNonConcatenatedProperty'); // ['foo']\nfooBar.get('concatenatedProperty'); // ['bar', 'foo']\n```\n\nThis behavior extends to object creation as well. Continuing the\nabove example:\n\n```javascript\nlet fooBar = FooBar.create({\n someNonConcatenatedProperty: ['baz'],\n concatenatedProperty: ['baz']\n})\nfooBar.get('someNonConcatenatedProperty'); // ['baz']\nfooBar.get('concatenatedProperty'); // ['bar', 'foo', 'baz']\n```\n\nAdding a single property that is not an array will just add it in the array:\n\n```javascript\nlet fooBar = FooBar.create({\n concatenatedProperty: 'baz'\n})\nview.get('concatenatedProperty'); // ['bar', 'foo', 'baz']\n```\n\nUsing the `concatenatedProperties` property, we can tell Ember to mix the\ncontent of the properties.\n\nIn `Component` the `classNames`, `classNameBindings` and\n`attributeBindings` properties are concatenated.\n\nThis feature is available for you to use throughout the Ember object model,\nalthough typical app developers are likely to use it infrequently. Since\nit changes expectations about behavior of properties, you should properly\ndocument its usage in each individual concatenated property (to not\nmislead your users to think they can override the property in a subclass).",
|
|
13779
13553
|
"itemtype": "property",
|
|
13780
13554
|
"name": "concatenatedProperties",
|
|
@@ -13786,8 +13560,8 @@
|
|
|
13786
13560
|
"module": "@ember/object"
|
|
13787
13561
|
},
|
|
13788
13562
|
{
|
|
13789
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.
|
|
13790
|
-
"line":
|
|
13563
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.ts",
|
|
13564
|
+
"line": 426,
|
|
13791
13565
|
"description": "Defines the properties that will be merged from the superclass\n(instead of overridden).\n\nBy default, when you extend an Ember class a property defined in\nthe subclass overrides a property with the same name that is defined\nin the superclass. However, there are some cases where it is preferable\nto build up a property's value by merging the superclass property value\nwith the subclass property's value. An example of this in use within Ember\nis the `queryParams` property of routes.\n\nHere is some sample code showing the difference between a merged\nproperty and a normal one:\n\n```javascript\nimport EmberObject from '@ember/object';\n\nconst Bar = EmberObject.extend({\n // Configure which properties are to be merged\n mergedProperties: ['mergedProperty'],\n\n someNonMergedProperty: {\n nonMerged: 'superclass value of nonMerged'\n },\n mergedProperty: {\n page: { replace: false },\n limit: { replace: true }\n }\n});\n\nconst FooBar = Bar.extend({\n someNonMergedProperty: {\n completelyNonMerged: 'subclass value of nonMerged'\n },\n mergedProperty: {\n limit: { replace: false }\n }\n});\n\nlet fooBar = FooBar.create();\n\nfooBar.get('someNonMergedProperty');\n// => { completelyNonMerged: 'subclass value of nonMerged' }\n//\n// Note the entire object, including the nonMerged property of\n// the superclass object, has been replaced\n\nfooBar.get('mergedProperty');\n// => {\n// page: {replace: false},\n// limit: {replace: false}\n// }\n//\n// Note the page remains from the superclass, and the\n// `limit` property's value of `false` has been merged from\n// the subclass.\n```\n\nThis behavior is not available during object `create` calls. It is only\navailable at `extend` time.\n\nIn `Route` the `queryParams` property is merged.\n\nThis feature is available for you to use throughout the Ember object model,\nalthough typical app developers are likely to use it infrequently. Since\nit changes expectations about behavior of properties, you should properly\ndocument its usage in each individual merged property (to not\nmislead your users to think they can override the property in a subclass).",
|
|
13792
13566
|
"itemtype": "property",
|
|
13793
13567
|
"name": "mergedProperties",
|
|
@@ -13799,8 +13573,8 @@
|
|
|
13799
13573
|
"module": "@ember/object"
|
|
13800
13574
|
},
|
|
13801
13575
|
{
|
|
13802
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.
|
|
13803
|
-
"line":
|
|
13576
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.ts",
|
|
13577
|
+
"line": 501,
|
|
13804
13578
|
"description": "Destroyed object property flag.\n\nif this property is `true` the observers and bindings were already\nremoved by the effect of calling the `destroy()` method.",
|
|
13805
13579
|
"itemtype": "property",
|
|
13806
13580
|
"name": "isDestroyed",
|
|
@@ -13811,8 +13585,8 @@
|
|
|
13811
13585
|
"module": "@ember/object"
|
|
13812
13586
|
},
|
|
13813
13587
|
{
|
|
13814
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.
|
|
13815
|
-
"line":
|
|
13588
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.ts",
|
|
13589
|
+
"line": 519,
|
|
13816
13590
|
"description": "Destruction scheduled flag. The `destroy()` method has been called.\n\nThe object stays intact until the end of the run loop at which point\nthe `isDestroyed` flag is set.",
|
|
13817
13591
|
"itemtype": "property",
|
|
13818
13592
|
"name": "isDestroying",
|
|
@@ -13823,8 +13597,8 @@
|
|
|
13823
13597
|
"module": "@ember/object"
|
|
13824
13598
|
},
|
|
13825
13599
|
{
|
|
13826
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.
|
|
13827
|
-
"line":
|
|
13600
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.ts",
|
|
13601
|
+
"line": 537,
|
|
13828
13602
|
"description": "Destroys an object by setting the `isDestroyed` flag and removing its\nmetadata, which effectively destroys observers and bindings.\n\nIf you try to set a property on a destroyed object, an exception will be\nraised.\n\nNote that destruction is scheduled for the end of the run loop and does not\nhappen immediately. It will set an isDestroying flag immediately.",
|
|
13829
13603
|
"itemtype": "method",
|
|
13830
13604
|
"name": "destroy",
|
|
@@ -13838,8 +13612,8 @@
|
|
|
13838
13612
|
"module": "@ember/object"
|
|
13839
13613
|
},
|
|
13840
13614
|
{
|
|
13841
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.
|
|
13842
|
-
"line":
|
|
13615
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.ts",
|
|
13616
|
+
"line": 564,
|
|
13843
13617
|
"description": "Override to implement teardown.",
|
|
13844
13618
|
"itemtype": "method",
|
|
13845
13619
|
"name": "willDestroy",
|
|
@@ -13849,8 +13623,8 @@
|
|
|
13849
13623
|
"module": "@ember/object"
|
|
13850
13624
|
},
|
|
13851
13625
|
{
|
|
13852
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.
|
|
13853
|
-
"line":
|
|
13626
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.ts",
|
|
13627
|
+
"line": 572,
|
|
13854
13628
|
"description": "Returns a string representation which attempts to provide more information\nthan Javascript's `toString` typically does, in a generic way for all Ember\nobjects.\n\n```javascript\nimport EmberObject from '@ember/object';\n\nconst Person = EmberObject.extend();\nperson = Person.create();\nperson.toString(); //=> \"<Person:ember1024>\"\n```\n\nIf the object's class is not defined on an Ember namespace, it will\nindicate it is a subclass of the registered superclass:\n\n```javascript\nconst Student = Person.extend();\nlet student = Student.create();\nstudent.toString(); //=> \"<(subclass of Person):ember1025>\"\n```\n\nIf the method `toStringExtension` is defined, its return value will be\nincluded in the output.\n\n```javascript\nconst Teacher = Person.extend({\n toStringExtension() {\n return this.get('fullName');\n }\n});\nteacher = Teacher.create();\nteacher.toString(); //=> \"<Teacher:ember1026:Tom Dale>\"\n```",
|
|
13855
13629
|
"itemtype": "method",
|
|
13856
13630
|
"name": "toString",
|
|
@@ -13864,8 +13638,8 @@
|
|
|
13864
13638
|
"module": "@ember/object"
|
|
13865
13639
|
},
|
|
13866
13640
|
{
|
|
13867
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.
|
|
13868
|
-
"line":
|
|
13641
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.ts",
|
|
13642
|
+
"line": 617,
|
|
13869
13643
|
"description": "Creates a new subclass.\n\n```javascript\nimport EmberObject from '@ember/object';\n\nconst Person = EmberObject.extend({\n say(thing) {\n alert(thing);\n }\n});\n```\n\nThis defines a new subclass of EmberObject: `Person`. It contains one method: `say()`.\n\nYou can also create a subclass from any existing class by calling its `extend()` method.\nFor example, you might want to create a subclass of Ember's built-in `Component` class:\n\n```javascript\nimport Component from '@ember/component';\n\nconst PersonComponent = Component.extend({\n tagName: 'li',\n classNameBindings: ['isAdministrator']\n});\n```\n\nWhen defining a subclass, you can override methods but still access the\nimplementation of your parent class by calling the special `_super()` method:\n\n```javascript\nimport EmberObject from '@ember/object';\n\nconst Person = EmberObject.extend({\n say(thing) {\n let name = this.get('name');\n alert(`${name} says: ${thing}`);\n }\n});\n\nconst Soldier = Person.extend({\n say(thing) {\n this._super(`${thing}, sir!`);\n },\n march(numberOfHours) {\n alert(`${this.get('name')} marches for ${numberOfHours} hours.`);\n }\n});\n\nlet yehuda = Soldier.create({\n name: 'Yehuda Katz'\n});\n\nyehuda.say('Yes'); // alerts \"Yehuda Katz says: Yes, sir!\"\n```\n\nThe `create()` on line #17 creates an *instance* of the `Soldier` class.\nThe `extend()` on line #8 creates a *subclass* of `Person`. Any instance\nof the `Person` class will *not* have the `march()` method.\n\nYou can also pass `Mixin` classes to add additional properties to the subclass.\n\n```javascript\nimport EmberObject from '@ember/object';\nimport Mixin from '@ember/object/mixin';\n\nconst Person = EmberObject.extend({\n say(thing) {\n alert(`${this.get('name')} says: ${thing}`);\n }\n});\n\nconst SingingMixin = Mixin.create({\n sing(thing) {\n alert(`${this.get('name')} sings: la la la ${thing}`);\n }\n});\n\nconst BroadwayStar = Person.extend(SingingMixin, {\n dance() {\n alert(`${this.get('name')} dances: tap tap tap tap `);\n }\n});\n```\n\nThe `BroadwayStar` class contains three methods: `say()`, `sing()`, and `dance()`.",
|
|
13870
13644
|
"itemtype": "method",
|
|
13871
13645
|
"name": "extend",
|
|
@@ -13892,8 +13666,8 @@
|
|
|
13892
13666
|
"module": "@ember/object"
|
|
13893
13667
|
},
|
|
13894
13668
|
{
|
|
13895
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.
|
|
13896
|
-
"line":
|
|
13669
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.ts",
|
|
13670
|
+
"line": 721,
|
|
13897
13671
|
"description": "Creates an instance of a class. Accepts either no arguments, or an object\ncontaining values to initialize the newly instantiated object with.\n\n```javascript\nimport EmberObject from '@ember/object';\n\nconst Person = EmberObject.extend({\n helloWorld() {\n alert(`Hi, my name is ${this.get('name')}`);\n }\n});\n\nlet tom = Person.create({\n name: 'Tom Dale'\n});\n\ntom.helloWorld(); // alerts \"Hi, my name is Tom Dale\".\n```\n\n`create` will call the `init` function if defined during\n`AnyObject.extend`\n\nIf no arguments are passed to `create`, it will not set values to the new\ninstance during initialization:\n\n```javascript\nlet noName = Person.create();\nnoName.helloWorld(); // alerts undefined\n```\n\nNOTE: For performance reasons, you cannot declare methods or computed\nproperties during `create`. You should instead declare methods and computed\nproperties when using `extend`.",
|
|
13898
13672
|
"itemtype": "method",
|
|
13899
13673
|
"name": "create",
|
|
@@ -13912,8 +13686,8 @@
|
|
|
13912
13686
|
"module": "@ember/object"
|
|
13913
13687
|
},
|
|
13914
13688
|
{
|
|
13915
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.
|
|
13916
|
-
"line":
|
|
13689
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.ts",
|
|
13690
|
+
"line": 786,
|
|
13917
13691
|
"description": "Augments a constructor's prototype with additional\nproperties and functions:\n\n```javascript\nimport EmberObject from '@ember/object';\n\nconst MyObject = EmberObject.extend({\n name: 'an object'\n});\n\no = MyObject.create();\no.get('name'); // 'an object'\n\nMyObject.reopen({\n say(msg) {\n console.log(msg);\n }\n});\n\no2 = MyObject.create();\no2.say('hello'); // logs \"hello\"\n\no.say('goodbye'); // logs \"goodbye\"\n```\n\nTo add functions and properties to the constructor itself,\nsee `reopenClass`",
|
|
13918
13692
|
"itemtype": "method",
|
|
13919
13693
|
"name": "reopen",
|
|
@@ -13924,8 +13698,8 @@
|
|
|
13924
13698
|
"module": "@ember/object"
|
|
13925
13699
|
},
|
|
13926
13700
|
{
|
|
13927
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.
|
|
13928
|
-
"line":
|
|
13701
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.ts",
|
|
13702
|
+
"line": 840,
|
|
13929
13703
|
"description": "Augments a constructor's own properties and functions:\n\n```javascript\nimport EmberObject from '@ember/object';\n\nconst MyObject = EmberObject.extend({\n name: 'an object'\n});\n\nMyObject.reopenClass({\n canBuild: false\n});\n\nMyObject.canBuild; // false\no = MyObject.create();\n```\n\nIn other words, this creates static properties and functions for the class.\nThese are only available on the class and not on any instance of that class.\n\n```javascript\nimport EmberObject from '@ember/object';\n\nconst Person = EmberObject.extend({\n name: '',\n sayHello() {\n alert(`Hello. My name is ${this.get('name')}`);\n }\n});\n\nPerson.reopenClass({\n species: 'Homo sapiens',\n\n createPerson(name) {\n return Person.create({ name });\n }\n});\n\nlet tom = Person.create({\n name: 'Tom Dale'\n});\nlet yehuda = Person.createPerson('Yehuda Katz');\n\ntom.sayHello(); // \"Hello. My name is Tom Dale\"\nyehuda.sayHello(); // \"Hello. My name is Yehuda Katz\"\nalert(Person.species); // \"Homo sapiens\"\n```\n\nNote that `species` and `createPerson` are *not* valid on the `tom` and `yehuda`\nvariables. They are only valid on `Person`.\n\nTo add functions and properties to instances of\na constructor by extending the constructor's prototype\nsee `reopen`",
|
|
13930
13704
|
"itemtype": "method",
|
|
13931
13705
|
"name": "reopenClass",
|
|
@@ -13936,8 +13710,8 @@
|
|
|
13936
13710
|
"module": "@ember/object"
|
|
13937
13711
|
},
|
|
13938
13712
|
{
|
|
13939
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.
|
|
13940
|
-
"line":
|
|
13713
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.ts",
|
|
13714
|
+
"line": 923,
|
|
13941
13715
|
"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\nexample, computed property functions may close over variables that are then\nno longer available for introspection.\n\nYou can pass a hash of these values to a computed property like this:\n\n```javascript\nimport { computed } from '@ember/object';\n\nperson: computed(function() {\n let personId = this.get('personId');\n return Person.create({ id: personId });\n}).meta({ type: Person })\n```\n\nOnce you've done this, you can retrieve the values saved to the computed\nproperty from your class like this:\n\n```javascript\nMyClass.metaForProperty('person');\n```\n\nThis will return the original hash that was passed to `meta()`.",
|
|
13942
13716
|
"static": 1,
|
|
13943
13717
|
"itemtype": "method",
|
|
@@ -13955,8 +13729,8 @@
|
|
|
13955
13729
|
"module": "@ember/object"
|
|
13956
13730
|
},
|
|
13957
13731
|
{
|
|
13958
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.
|
|
13959
|
-
"line":
|
|
13732
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.ts",
|
|
13733
|
+
"line": 966,
|
|
13960
13734
|
"description": "Iterate over each computed property for the class, passing its name\nand any associated metadata (see `metaForProperty`) to the callback.",
|
|
13961
13735
|
"static": 1,
|
|
13962
13736
|
"itemtype": "method",
|
|
@@ -13979,8 +13753,8 @@
|
|
|
13979
13753
|
"module": "@ember/object"
|
|
13980
13754
|
},
|
|
13981
13755
|
{
|
|
13982
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.
|
|
13983
|
-
"line":
|
|
13756
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.ts",
|
|
13757
|
+
"line": 1058,
|
|
13984
13758
|
"description": "Provides lookup-time type validation for injected properties.",
|
|
13985
13759
|
"access": "private",
|
|
13986
13760
|
"tagname": "",
|
|
@@ -13990,8 +13764,8 @@
|
|
|
13990
13764
|
"module": "@ember/object"
|
|
13991
13765
|
},
|
|
13992
13766
|
{
|
|
13993
|
-
"file": "packages/@ember/-internals/runtime/lib/system/core_object.
|
|
13994
|
-
"line":
|
|
13767
|
+
"file": "packages/@ember/-internals/runtime/lib/system/core_object.ts",
|
|
13768
|
+
"line": 1079,
|
|
13995
13769
|
"description": "Returns a hash of property names and container names that injected\nproperties will lookup on the container lazily.",
|
|
13996
13770
|
"itemtype": "method",
|
|
13997
13771
|
"name": "_lazyInjections",
|
|
@@ -14004,12 +13778,6 @@
|
|
|
14004
13778
|
"class": "@ember/object",
|
|
14005
13779
|
"module": "@ember/object"
|
|
14006
13780
|
},
|
|
14007
|
-
{
|
|
14008
|
-
"file": "packages/@ember/-internals/runtime/lib/system/object.d.ts",
|
|
14009
|
-
"line": 9,
|
|
14010
|
-
"class": "EmberObject",
|
|
14011
|
-
"module": "@ember/application"
|
|
14012
|
-
},
|
|
14013
13781
|
{
|
|
14014
13782
|
"file": "packages/@ember/-internals/runtime/lib/compare.ts",
|
|
14015
13783
|
"line": 48,
|
|
@@ -14919,7 +14687,7 @@
|
|
|
14919
14687
|
},
|
|
14920
14688
|
{
|
|
14921
14689
|
"file": "packages/@ember/-internals/views/lib/views/core_view.ts",
|
|
14922
|
-
"line":
|
|
14690
|
+
"line": 78,
|
|
14923
14691
|
"description": "Override the default event firing from `Evented` to\nalso call methods with the given name.",
|
|
14924
14692
|
"itemtype": "method",
|
|
14925
14693
|
"name": "trigger",
|
|
@@ -17450,7 +17218,7 @@
|
|
|
17450
17218
|
},
|
|
17451
17219
|
{
|
|
17452
17220
|
"file": "packages/@ember/object/type-tests/core/index.test.ts",
|
|
17453
|
-
"line":
|
|
17221
|
+
"line": 28,
|
|
17454
17222
|
"class": "@ember/object/compat",
|
|
17455
17223
|
"module": "@ember/object"
|
|
17456
17224
|
},
|
|
@@ -17543,21 +17311,6 @@
|
|
|
17543
17311
|
"class": "@ember/polyfills",
|
|
17544
17312
|
"module": "@ember/polyfills"
|
|
17545
17313
|
},
|
|
17546
|
-
{
|
|
17547
|
-
"file": "packages/@ember/renderer/index.ts",
|
|
17548
|
-
"line": 11,
|
|
17549
|
-
"description": "Returns a promise which will resolve when rendering has settled. Settled in\nthis context is defined as when all of the tags in use are \"current\" (e.g.\n`renderers.every(r => r._isValid())`). When this is checked at the _end_ of\nthe run loop, this essentially guarantees that all rendering is completed.",
|
|
17550
|
-
"itemtype": "method",
|
|
17551
|
-
"name": "renderSettled",
|
|
17552
|
-
"return": {
|
|
17553
|
-
"description": "a promise which fulfills when rendering has settled",
|
|
17554
|
-
"type": "Promise<void>"
|
|
17555
|
-
},
|
|
17556
|
-
"access": "public",
|
|
17557
|
-
"tagname": "",
|
|
17558
|
-
"class": "Renderer",
|
|
17559
|
-
"module": "@ember/renderer"
|
|
17560
|
-
},
|
|
17561
17314
|
{
|
|
17562
17315
|
"file": "packages/@ember/runloop/index.ts",
|
|
17563
17316
|
"line": 60,
|
|
@@ -17569,7 +17322,7 @@
|
|
|
17569
17322
|
"access": "private",
|
|
17570
17323
|
"tagname": "",
|
|
17571
17324
|
"class": "@ember/runloop",
|
|
17572
|
-
"module": "@ember/
|
|
17325
|
+
"module": "@ember/polyfills"
|
|
17573
17326
|
},
|
|
17574
17327
|
{
|
|
17575
17328
|
"file": "packages/@ember/runloop/index.ts",
|
|
@@ -18715,15 +18468,15 @@
|
|
|
18715
18468
|
},
|
|
18716
18469
|
{
|
|
18717
18470
|
"message": "unknown tag: internal",
|
|
18718
|
-
"line": " packages/@ember/-internals/metal/lib/mixin.ts:
|
|
18471
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:601"
|
|
18719
18472
|
},
|
|
18720
18473
|
{
|
|
18721
18474
|
"message": "unknown tag: internal",
|
|
18722
|
-
"line": " packages/@ember/-internals/metal/lib/mixin.ts:
|
|
18475
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:624"
|
|
18723
18476
|
},
|
|
18724
18477
|
{
|
|
18725
18478
|
"message": "unknown tag: internal",
|
|
18726
|
-
"line": " packages/@ember/-internals/metal/lib/mixin.ts:
|
|
18479
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:645"
|
|
18727
18480
|
},
|
|
18728
18481
|
{
|
|
18729
18482
|
"message": "unknown tag: decorator",
|
|
@@ -18731,23 +18484,15 @@
|
|
|
18731
18484
|
},
|
|
18732
18485
|
{
|
|
18733
18486
|
"message": "replacing incorrect tag: returns with return",
|
|
18734
|
-
"line": " packages/@ember/-internals/routing/lib/system/route-info.ts:
|
|
18487
|
+
"line": " packages/@ember/-internals/routing/lib/system/route-info.ts:90"
|
|
18735
18488
|
},
|
|
18736
18489
|
{
|
|
18737
18490
|
"message": "replacing incorrect tag: returns with return",
|
|
18738
|
-
"line": " packages/@ember/-internals/routing/lib/system/route-info.ts:
|
|
18491
|
+
"line": " packages/@ember/-internals/routing/lib/system/route-info.ts:198"
|
|
18739
18492
|
},
|
|
18740
18493
|
{
|
|
18741
18494
|
"message": "replacing incorrect tag: returns with return",
|
|
18742
|
-
"line": " packages/@ember/-internals/routing/lib/system/route.ts:
|
|
18743
|
-
},
|
|
18744
|
-
{
|
|
18745
|
-
"message": "unknown tag: internal",
|
|
18746
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:127"
|
|
18747
|
-
},
|
|
18748
|
-
{
|
|
18749
|
-
"message": "unknown tag: internal",
|
|
18750
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:133"
|
|
18495
|
+
"line": " packages/@ember/-internals/routing/lib/system/route.ts:2419"
|
|
18751
18496
|
},
|
|
18752
18497
|
{
|
|
18753
18498
|
"message": "replacing incorrect tag: function with method",
|
|
@@ -18841,169 +18586,173 @@
|
|
|
18841
18586
|
"message": "Missing item type",
|
|
18842
18587
|
"line": " packages/@ember/-internals/glimmer/lib/views/outlet.ts:115"
|
|
18843
18588
|
},
|
|
18589
|
+
{
|
|
18590
|
+
"message": "Missing item type",
|
|
18591
|
+
"line": " packages/@ember/-internals/glimmer/lib/renderer.ts:297"
|
|
18592
|
+
},
|
|
18844
18593
|
{
|
|
18845
18594
|
"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",
|
|
18846
18595
|
"line": " packages/@ember/-internals/glimmer/tests/integration/custom-helper-test.js:12"
|
|
18847
18596
|
},
|
|
18848
18597
|
{
|
|
18849
18598
|
"message": "Missing item type",
|
|
18850
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18599
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:90"
|
|
18851
18600
|
},
|
|
18852
18601
|
{
|
|
18853
18602
|
"message": "Missing item type",
|
|
18854
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18603
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:92"
|
|
18855
18604
|
},
|
|
18856
18605
|
{
|
|
18857
18606
|
"message": "Missing item type",
|
|
18858
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18607
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:94"
|
|
18859
18608
|
},
|
|
18860
18609
|
{
|
|
18861
18610
|
"message": "Missing item type",
|
|
18862
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18611
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:96"
|
|
18863
18612
|
},
|
|
18864
18613
|
{
|
|
18865
18614
|
"message": "Missing item type",
|
|
18866
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18615
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:98"
|
|
18867
18616
|
},
|
|
18868
18617
|
{
|
|
18869
18618
|
"message": "Missing item type",
|
|
18870
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18619
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:100"
|
|
18871
18620
|
},
|
|
18872
18621
|
{
|
|
18873
18622
|
"message": "Missing item type",
|
|
18874
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18623
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:102"
|
|
18875
18624
|
},
|
|
18876
18625
|
{
|
|
18877
18626
|
"message": "Missing item type",
|
|
18878
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18627
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:104"
|
|
18879
18628
|
},
|
|
18880
18629
|
{
|
|
18881
18630
|
"message": "Missing item type",
|
|
18882
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18631
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:106"
|
|
18883
18632
|
},
|
|
18884
18633
|
{
|
|
18885
18634
|
"message": "Missing item type",
|
|
18886
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18635
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:109"
|
|
18887
18636
|
},
|
|
18888
18637
|
{
|
|
18889
18638
|
"message": "Missing item type",
|
|
18890
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18639
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:111"
|
|
18891
18640
|
},
|
|
18892
18641
|
{
|
|
18893
18642
|
"message": "Missing item type",
|
|
18894
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18643
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:113"
|
|
18895
18644
|
},
|
|
18896
18645
|
{
|
|
18897
18646
|
"message": "Missing item type",
|
|
18898
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18647
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:115"
|
|
18899
18648
|
},
|
|
18900
18649
|
{
|
|
18901
18650
|
"message": "Missing item type",
|
|
18902
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18651
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:119"
|
|
18903
18652
|
},
|
|
18904
18653
|
{
|
|
18905
18654
|
"message": "Missing item type",
|
|
18906
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18655
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:142"
|
|
18907
18656
|
},
|
|
18908
18657
|
{
|
|
18909
18658
|
"message": "Missing item type",
|
|
18910
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18659
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:156"
|
|
18911
18660
|
},
|
|
18912
18661
|
{
|
|
18913
18662
|
"message": "Missing item type",
|
|
18914
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18663
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:161"
|
|
18915
18664
|
},
|
|
18916
18665
|
{
|
|
18917
18666
|
"message": "Missing item type",
|
|
18918
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18667
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:166"
|
|
18919
18668
|
},
|
|
18920
18669
|
{
|
|
18921
18670
|
"message": "Missing item type",
|
|
18922
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18671
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:171"
|
|
18923
18672
|
},
|
|
18924
18673
|
{
|
|
18925
18674
|
"message": "Missing item type",
|
|
18926
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18675
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:176"
|
|
18927
18676
|
},
|
|
18928
18677
|
{
|
|
18929
18678
|
"message": "Missing item type",
|
|
18930
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18679
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:181"
|
|
18931
18680
|
},
|
|
18932
18681
|
{
|
|
18933
18682
|
"message": "Missing item type",
|
|
18934
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18683
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:196"
|
|
18935
18684
|
},
|
|
18936
18685
|
{
|
|
18937
18686
|
"message": "Missing item type",
|
|
18938
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18687
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:209"
|
|
18939
18688
|
},
|
|
18940
18689
|
{
|
|
18941
18690
|
"message": "Missing item type",
|
|
18942
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18691
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:216"
|
|
18943
18692
|
},
|
|
18944
18693
|
{
|
|
18945
18694
|
"message": "Missing item type",
|
|
18946
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18695
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:223"
|
|
18947
18696
|
},
|
|
18948
18697
|
{
|
|
18949
18698
|
"message": "Missing item type",
|
|
18950
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18699
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:230"
|
|
18951
18700
|
},
|
|
18952
18701
|
{
|
|
18953
18702
|
"message": "Missing item type",
|
|
18954
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18703
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:237"
|
|
18955
18704
|
},
|
|
18956
18705
|
{
|
|
18957
18706
|
"message": "Missing item type",
|
|
18958
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18707
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:254"
|
|
18959
18708
|
},
|
|
18960
18709
|
{
|
|
18961
18710
|
"message": "Missing item type",
|
|
18962
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18711
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:269"
|
|
18963
18712
|
},
|
|
18964
18713
|
{
|
|
18965
18714
|
"message": "Missing item type",
|
|
18966
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18715
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:283"
|
|
18967
18716
|
},
|
|
18968
18717
|
{
|
|
18969
18718
|
"message": "Missing item type",
|
|
18970
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18719
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:288"
|
|
18971
18720
|
},
|
|
18972
18721
|
{
|
|
18973
18722
|
"message": "Missing item type",
|
|
18974
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18723
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:308"
|
|
18975
18724
|
},
|
|
18976
18725
|
{
|
|
18977
18726
|
"message": "Missing item type",
|
|
18978
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18727
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:322"
|
|
18979
18728
|
},
|
|
18980
18729
|
{
|
|
18981
18730
|
"message": "Missing item type",
|
|
18982
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18731
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:328"
|
|
18983
18732
|
},
|
|
18984
18733
|
{
|
|
18985
18734
|
"message": "Missing item type",
|
|
18986
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18735
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:333"
|
|
18987
18736
|
},
|
|
18988
18737
|
{
|
|
18989
18738
|
"message": "Missing item type",
|
|
18990
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18739
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:354"
|
|
18991
18740
|
},
|
|
18992
18741
|
{
|
|
18993
18742
|
"message": "Missing item type",
|
|
18994
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18743
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:369"
|
|
18995
18744
|
},
|
|
18996
18745
|
{
|
|
18997
18746
|
"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.",
|
|
18998
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18747
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:476"
|
|
18999
18748
|
},
|
|
19000
18749
|
{
|
|
19001
18750
|
"message": "Missing item type",
|
|
19002
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18751
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:550"
|
|
19003
18752
|
},
|
|
19004
18753
|
{
|
|
19005
18754
|
"message": "Missing item type",
|
|
19006
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18755
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:581"
|
|
19007
18756
|
},
|
|
19008
18757
|
{
|
|
19009
18758
|
"message": "Missing item type",
|
|
@@ -19015,47 +18764,47 @@
|
|
|
19015
18764
|
},
|
|
19016
18765
|
{
|
|
19017
18766
|
"message": "Missing item type",
|
|
19018
|
-
"line": " packages/@ember/-internals/metal/lib/mixin.ts:
|
|
18767
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:527"
|
|
19019
18768
|
},
|
|
19020
18769
|
{
|
|
19021
18770
|
"message": "Missing item type",
|
|
19022
|
-
"line": " packages/@ember/-internals/metal/lib/mixin.ts:
|
|
18771
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:530"
|
|
19023
18772
|
},
|
|
19024
18773
|
{
|
|
19025
18774
|
"message": "Missing item type",
|
|
19026
|
-
"line": " packages/@ember/-internals/metal/lib/mixin.ts:
|
|
18775
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:533"
|
|
19027
18776
|
},
|
|
19028
18777
|
{
|
|
19029
18778
|
"message": "Missing item type",
|
|
19030
|
-
"line": " packages/@ember/-internals/metal/lib/mixin.ts:
|
|
18779
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:536"
|
|
19031
18780
|
},
|
|
19032
18781
|
{
|
|
19033
18782
|
"message": "Missing item type",
|
|
19034
|
-
"line": " packages/@ember/-internals/metal/lib/mixin.ts:
|
|
18783
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:539"
|
|
19035
18784
|
},
|
|
19036
18785
|
{
|
|
19037
18786
|
"message": "Missing item type",
|
|
19038
|
-
"line": " packages/@ember/-internals/metal/lib/mixin.ts:
|
|
18787
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:542"
|
|
19039
18788
|
},
|
|
19040
18789
|
{
|
|
19041
18790
|
"message": "Missing item type",
|
|
19042
|
-
"line": " packages/@ember/-internals/metal/lib/mixin.ts:
|
|
18791
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:583"
|
|
19043
18792
|
},
|
|
19044
18793
|
{
|
|
19045
18794
|
"message": "Missing item type",
|
|
19046
|
-
"line": " packages/@ember/-internals/metal/lib/mixin.ts:
|
|
18795
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:640"
|
|
19047
18796
|
},
|
|
19048
18797
|
{
|
|
19049
18798
|
"message": "Missing item type",
|
|
19050
|
-
"line": " packages/@ember/-internals/metal/lib/mixin.ts:
|
|
18799
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:666"
|
|
19051
18800
|
},
|
|
19052
18801
|
{
|
|
19053
18802
|
"message": "Missing item type",
|
|
19054
|
-
"line": " packages/@ember/-internals/metal/lib/mixin.ts:
|
|
18803
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:673"
|
|
19055
18804
|
},
|
|
19056
18805
|
{
|
|
19057
18806
|
"message": "Missing item type",
|
|
19058
|
-
"line": " packages/@ember/-internals/metal/lib/mixin.ts:
|
|
18807
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:678"
|
|
19059
18808
|
},
|
|
19060
18809
|
{
|
|
19061
18810
|
"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.",
|
|
@@ -19119,19 +18868,19 @@
|
|
|
19119
18868
|
},
|
|
19120
18869
|
{
|
|
19121
18870
|
"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.",
|
|
19122
|
-
"line": " packages/@ember/-internals/runtime/lib/mixins/evented.d.ts:
|
|
18871
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/evented.d.ts:16"
|
|
19123
18872
|
},
|
|
19124
18873
|
{
|
|
19125
18874
|
"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.",
|
|
19126
|
-
"line": " packages/@ember/-internals/runtime/lib/mixins/evented.d.ts:
|
|
18875
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/evented.d.ts:27"
|
|
19127
18876
|
},
|
|
19128
18877
|
{
|
|
19129
18878
|
"message": "Missing item type\nCancels subscription for given name, target, and method.",
|
|
19130
|
-
"line": " packages/@ember/-internals/runtime/lib/mixins/evented.d.ts:
|
|
18879
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/evented.d.ts:33"
|
|
19131
18880
|
},
|
|
19132
18881
|
{
|
|
19133
18882
|
"message": "Missing item type\nChecks to see if object has any subscriptions for named event.",
|
|
19134
|
-
"line": " packages/@ember/-internals/runtime/lib/mixins/evented.d.ts:
|
|
18883
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/evented.d.ts:42"
|
|
19135
18884
|
},
|
|
19136
18885
|
{
|
|
19137
18886
|
"message": "Missing item type\nThis mixin provides properties and property observing functionality, core features of the Ember object model.",
|
|
@@ -19185,117 +18934,9 @@
|
|
|
19185
18934
|
"message": "Missing item type",
|
|
19186
18935
|
"line": " packages/@ember/-internals/runtime/lib/mixins/registry_proxy.d.ts:7"
|
|
19187
18936
|
},
|
|
19188
|
-
{
|
|
19189
|
-
"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",
|
|
19190
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:3"
|
|
19191
|
-
},
|
|
19192
|
-
{
|
|
19193
|
-
"message": "Missing item type",
|
|
19194
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:14"
|
|
19195
|
-
},
|
|
19196
|
-
{
|
|
19197
|
-
"message": "Missing item type",
|
|
19198
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:17"
|
|
19199
|
-
},
|
|
19200
|
-
{
|
|
19201
|
-
"message": "Missing item type",
|
|
19202
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:22"
|
|
19203
|
-
},
|
|
19204
|
-
{
|
|
19205
|
-
"message": "Missing item type",
|
|
19206
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:24"
|
|
19207
|
-
},
|
|
19208
|
-
{
|
|
19209
|
-
"message": "Missing item type",
|
|
19210
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:30"
|
|
19211
|
-
},
|
|
19212
|
-
{
|
|
19213
|
-
"message": "Missing item type",
|
|
19214
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:33"
|
|
19215
|
-
},
|
|
19216
|
-
{
|
|
19217
|
-
"message": "Missing item type",
|
|
19218
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:36"
|
|
19219
|
-
},
|
|
19220
|
-
{
|
|
19221
|
-
"message": "Missing item type",
|
|
19222
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:44"
|
|
19223
|
-
},
|
|
19224
|
-
{
|
|
19225
|
-
"message": "Missing item type",
|
|
19226
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:50"
|
|
19227
|
-
},
|
|
19228
|
-
{
|
|
19229
|
-
"message": "Missing item type",
|
|
19230
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:53"
|
|
19231
|
-
},
|
|
19232
|
-
{
|
|
19233
|
-
"message": "Missing item type\nCoreObject constructor takes owner.",
|
|
19234
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:56"
|
|
19235
|
-
},
|
|
19236
|
-
{
|
|
19237
|
-
"message": "Missing item type",
|
|
19238
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:61"
|
|
19239
|
-
},
|
|
19240
|
-
{
|
|
19241
|
-
"message": "Missing item type\nAn overridable method called when objects are instantiated. By default,\ndoes nothing unless it is overridden during class definition.",
|
|
19242
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:64"
|
|
19243
|
-
},
|
|
19244
|
-
{
|
|
19245
|
-
"message": "Missing item type\nDefines the properties that will be concatenated from the superclass (instead of overridden).",
|
|
19246
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:70"
|
|
19247
|
-
},
|
|
19248
|
-
{
|
|
19249
|
-
"message": "Missing item type\nDestroyed object property flag. If this property is true the observers and bindings were\nalready removed by the effect of calling the destroy() method.",
|
|
19250
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:76"
|
|
19251
|
-
},
|
|
19252
|
-
{
|
|
19253
|
-
"message": "Missing item type\nDestruction scheduled flag. The destroy() method has been called. The object stays intact\nuntil the end of the run loop at which point the isDestroyed flag is set.",
|
|
19254
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:82"
|
|
19255
|
-
},
|
|
19256
|
-
{
|
|
19257
|
-
"message": "Missing item type\nDestroys an object by setting the `isDestroyed` flag and removing its\nmetadata, which effectively destroys observers and bindings.\nIf you try to set a property on a destroyed object, an exception will be\nraised.\nNote that destruction is scheduled for the end of the run loop and does not\nhappen immediately. It will set an isDestroying flag immediately.",
|
|
19258
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:90"
|
|
19259
|
-
},
|
|
19260
|
-
{
|
|
19261
|
-
"message": "Missing item type\nOverride to implement teardown.",
|
|
19262
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:101"
|
|
19263
|
-
},
|
|
19264
|
-
{
|
|
19265
|
-
"message": "Missing item type\nReturns a string representation which attempts to provide more information than Javascript's toString\ntypically does, in a generic way for all Ember objects (e.g., \"<App.Person:ember1024>\").",
|
|
19266
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:106"
|
|
19267
|
-
},
|
|
19268
|
-
{
|
|
19269
|
-
"message": "Missing item type",
|
|
19270
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:118"
|
|
19271
|
-
},
|
|
19272
|
-
{
|
|
19273
|
-
"message": "Missing item type",
|
|
19274
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:124"
|
|
19275
|
-
},
|
|
19276
|
-
{
|
|
19277
|
-
"message": "Missing item type\nIterate over each computed property for the class, passing its name and any\nassociated metadata (see metaForProperty) to the callback.",
|
|
19278
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:127"
|
|
19279
|
-
},
|
|
19280
|
-
{
|
|
19281
|
-
"message": "Missing item type\nReturns the original hash that was passed to meta().",
|
|
19282
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:133"
|
|
19283
|
-
},
|
|
19284
|
-
{
|
|
19285
|
-
"message": "Missing item type",
|
|
19286
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:140"
|
|
19287
|
-
},
|
|
19288
|
-
{
|
|
19289
|
-
"message": "Missing item type",
|
|
19290
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:143"
|
|
19291
|
-
},
|
|
19292
|
-
{
|
|
19293
|
-
"message": "Missing item type",
|
|
19294
|
-
"line": " packages/@ember/-internals/runtime/lib/system/core_object.d.ts:146"
|
|
19295
|
-
},
|
|
19296
18937
|
{
|
|
19297
18938
|
"message": "Missing item type",
|
|
19298
|
-
"line": " packages/@ember/-internals/runtime/lib/system/
|
|
18939
|
+
"line": " packages/@ember/-internals/runtime/lib/system/core_object.ts:236"
|
|
19299
18940
|
},
|
|
19300
18941
|
{
|
|
19301
18942
|
"message": "Missing item type",
|
|
@@ -19371,7 +19012,7 @@
|
|
|
19371
19012
|
},
|
|
19372
19013
|
{
|
|
19373
19014
|
"message": "Missing item type",
|
|
19374
|
-
"line": " packages/@ember/object/type-tests/core/index.test.ts:
|
|
19015
|
+
"line": " packages/@ember/object/type-tests/core/index.test.ts:28"
|
|
19375
19016
|
},
|
|
19376
19017
|
{
|
|
19377
19018
|
"message": "Missing item type\nZero-argument case",
|