ember-source 4.3.0-alpha.2 → 4.4.0-alpha.1
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 +6 -2
- package/build-metadata.json +3 -3
- package/dist/dependencies/router_js.js +66 -31
- package/dist/ember-template-compiler.js +1169 -779
- package/dist/ember-template-compiler.map +1 -1
- package/dist/ember-testing.js +74 -43
- package/dist/ember-testing.map +1 -1
- package/dist/ember.debug.js +3290 -2760
- package/dist/ember.debug.map +1 -1
- package/dist/header/license.js +1 -1
- package/dist/packages/@ember/-internals/container/index.js +15 -11
- package/dist/packages/@ember/-internals/extension-support/lib/container_debug_adapter.js +3 -3
- package/dist/packages/@ember/-internals/extension-support/lib/data_adapter.js +52 -52
- package/dist/packages/@ember/-internals/glimmer/index.js +139 -103
- package/dist/packages/@ember/-internals/meta/lib/meta.js +8 -9
- package/dist/packages/@ember/-internals/metal/index.js +44 -45
- package/dist/packages/@ember/-internals/routing/lib/ext/controller.js +10 -8
- package/dist/packages/@ember/-internals/routing/lib/location/auto_location.js +3 -1
- package/dist/packages/@ember/-internals/routing/lib/services/router.js +155 -190
- package/dist/packages/@ember/-internals/routing/lib/services/routing.js +3 -1
- package/dist/packages/@ember/-internals/routing/lib/system/route-info.js +2 -2
- package/dist/packages/@ember/-internals/routing/lib/system/route.js +110 -378
- package/dist/packages/@ember/-internals/routing/lib/system/router.js +74 -36
- package/dist/packages/@ember/-internals/routing/lib/utils.js +33 -21
- package/dist/packages/@ember/-internals/runtime/lib/mixins/-proxy.js +1 -1
- package/dist/packages/@ember/-internals/runtime/lib/mixins/array.js +1 -0
- package/dist/packages/@ember/-internals/runtime/lib/mixins/comparable.js +4 -4
- package/dist/packages/@ember/-internals/runtime/lib/mixins/container_proxy.js +29 -29
- package/dist/packages/@ember/-internals/runtime/lib/mixins/promise_proxy.js +16 -16
- package/dist/packages/@ember/-internals/runtime/lib/mixins/registry_proxy.js +48 -48
- package/dist/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +8 -8
- package/dist/packages/@ember/-internals/runtime/lib/system/namespace.js +1 -2
- package/dist/packages/@ember/-internals/runtime/lib/type-of.js +1 -1
- package/dist/packages/@ember/-internals/utils/index.js +10 -8
- package/dist/packages/@ember/-internals/views/lib/system/utils.js +2 -0
- package/dist/packages/@ember/array/index.js +1 -1
- package/dist/packages/@ember/controller/index.js +3 -54
- package/dist/packages/@ember/instrumentation/index.js +9 -13
- package/dist/packages/@ember/object/compat.js +16 -7
- package/dist/packages/@ember/routing/router-service.js +1 -0
- package/dist/packages/@ember/service/index.js +6 -73
- package/dist/packages/ember/version.js +1 -1
- package/docs/data.json +571 -521
- package/package.json +13 -13
package/docs/data.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "The Ember API",
|
|
4
4
|
"description": "The Ember API: a framework for building ambitious web applications",
|
|
5
5
|
"url": "https://emberjs.com/",
|
|
6
|
-
"version": "4.
|
|
6
|
+
"version": "4.4.0-alpha.1"
|
|
7
7
|
},
|
|
8
8
|
"files": {
|
|
9
9
|
"node_modules/rsvp/lib/rsvp/promise/all.js": {
|
|
@@ -1083,12 +1083,10 @@
|
|
|
1083
1083
|
"name": "packages/@ember/-internals/runtime/lib/system/namespace.js",
|
|
1084
1084
|
"modules": {},
|
|
1085
1085
|
"classes": {
|
|
1086
|
-
"
|
|
1086
|
+
"Namespace": 1
|
|
1087
1087
|
},
|
|
1088
1088
|
"fors": {},
|
|
1089
|
-
"namespaces": {
|
|
1090
|
-
"Ember": 1
|
|
1091
|
-
}
|
|
1089
|
+
"namespaces": {}
|
|
1092
1090
|
},
|
|
1093
1091
|
"packages/@ember/-internals/runtime/lib/system/object.d.ts": {
|
|
1094
1092
|
"name": "packages/@ember/-internals/runtime/lib/system/object.d.ts",
|
|
@@ -1341,6 +1339,13 @@
|
|
|
1341
1339
|
},
|
|
1342
1340
|
"namespaces": {}
|
|
1343
1341
|
},
|
|
1342
|
+
"packages/@ember/controller/lib/controller_mixin.d.ts": {
|
|
1343
|
+
"name": "packages/@ember/controller/lib/controller_mixin.d.ts",
|
|
1344
|
+
"modules": {},
|
|
1345
|
+
"classes": {},
|
|
1346
|
+
"fors": {},
|
|
1347
|
+
"namespaces": {}
|
|
1348
|
+
},
|
|
1344
1349
|
"packages/@ember/controller/lib/controller_mixin.js": {
|
|
1345
1350
|
"name": "packages/@ember/controller/lib/controller_mixin.js",
|
|
1346
1351
|
"modules": {},
|
|
@@ -1352,8 +1357,8 @@
|
|
|
1352
1357
|
"Ember": 1
|
|
1353
1358
|
}
|
|
1354
1359
|
},
|
|
1355
|
-
"packages/@ember/controller/index.
|
|
1356
|
-
"name": "packages/@ember/controller/index.
|
|
1360
|
+
"packages/@ember/controller/index.ts": {
|
|
1361
|
+
"name": "packages/@ember/controller/index.ts",
|
|
1357
1362
|
"modules": {
|
|
1358
1363
|
"@ember/controller": 1
|
|
1359
1364
|
},
|
|
@@ -1554,8 +1559,8 @@
|
|
|
1554
1559
|
},
|
|
1555
1560
|
"namespaces": {}
|
|
1556
1561
|
},
|
|
1557
|
-
"packages/@ember/service/index.
|
|
1558
|
-
"name": "packages/@ember/service/index.
|
|
1562
|
+
"packages/@ember/service/index.ts": {
|
|
1563
|
+
"name": "packages/@ember/service/index.ts",
|
|
1559
1564
|
"modules": {
|
|
1560
1565
|
"@ember/service": 1
|
|
1561
1566
|
},
|
|
@@ -1776,7 +1781,7 @@
|
|
|
1776
1781
|
"namespaces": {},
|
|
1777
1782
|
"tag": "main",
|
|
1778
1783
|
"file": "packages/@ember/-internals/glimmer/lib/helper.ts",
|
|
1779
|
-
"line":
|
|
1784
|
+
"line": 37,
|
|
1780
1785
|
"description": "[Glimmer](https://github.com/tildeio/glimmer) is a templating engine used by Ember.js that is compatible with a subset of the [Handlebars](http://handlebarsjs.com/) syntax.\n\n### Showing a property\n\nTemplates manage the flow of an application's UI, and display state (through\nthe DOM) to a user. For example, given a component with the property \"name\",\nthat component's template can use the name in several ways:\n\n```app/components/person-profile.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n name: 'Jill'\n});\n```\n\n```app/components/person-profile.hbs\n{{this.name}}\n<div>{{this.name}}</div>\n<span data-name={{this.name}}></span>\n```\n\nAny time the \"name\" property on the component changes, the DOM will be\nupdated.\n\nProperties can be chained as well:\n\n```handlebars\n{{@aUserModel.name}}\n<div>{{@listOfUsers.firstObject.name}}</div>\n```\n\n### Using Ember helpers\n\nWhen content is passed in mustaches `{{}}`, Ember will first try to find a helper\nor component with that name. For example, the `if` helper:\n\n```app/components/person-profile.hbs\n{{if this.name \"I have a name\" \"I have no name\"}}\n<span data-has-name={{if this.name true}}></span>\n```\n\nThe returned value is placed where the `{{}}` is called. The above style is\ncalled \"inline\". A second style of helper usage is called \"block\". For example:\n\n```handlebars\n{{#if this.name}}\n I have a name\n{{else}}\n I have no name\n{{/if}}\n```\n\nThe block form of helpers allows you to control how the UI is created based\non the values of properties.\nA third form of helper is called \"nested\". For example here the concat\nhelper will add \" Doe\" to a displayed name if the person has no last name:\n\n```handlebars\n<span data-name={{concat this.firstName (\n if this.lastName (concat \" \" this.lastName) \"Doe\"\n)}}></span>\n```\n\nEmber's built-in helpers are described under the [Ember.Templates.helpers](/ember/release/classes/Ember.Templates.helpers)\nnamespace. Documentation on creating custom helpers can be found under\n[helper](/ember/release/functions/@ember%2Fcomponent%2Fhelper/helper) (or\nunder [Helper](/ember/release/classes/Helper) if a helper requires access to\ndependency injection).\n\n### Invoking a Component\n\nEmber components represent state to the UI of an application. Further\nreading on components can be found under [Component](/ember/release/classes/Component).",
|
|
1781
1786
|
"itemtype": "main"
|
|
1782
1787
|
},
|
|
@@ -1830,7 +1835,6 @@
|
|
|
1830
1835
|
"Ember.MutableEnumerable": 1,
|
|
1831
1836
|
"RegistryProxyMixin": 1,
|
|
1832
1837
|
"Ember.TargetActionSupport": 1,
|
|
1833
|
-
"Ember.Namespace": 1,
|
|
1834
1838
|
"Ember.ActionSupport": 1,
|
|
1835
1839
|
"Ember.ClassNamesSupport": 1,
|
|
1836
1840
|
"Ember.ViewMixin": 1,
|
|
@@ -1985,6 +1989,7 @@
|
|
|
1985
1989
|
"elements": {},
|
|
1986
1990
|
"classes": {
|
|
1987
1991
|
"@ember/application": 1,
|
|
1992
|
+
"Namespace": 1,
|
|
1988
1993
|
"Application": 1,
|
|
1989
1994
|
"ApplicationInstance": 1,
|
|
1990
1995
|
"ApplicationInstance.BootOptions": 1
|
|
@@ -2078,8 +2083,8 @@
|
|
|
2078
2083
|
},
|
|
2079
2084
|
"namespaces": {},
|
|
2080
2085
|
"tag": "module",
|
|
2081
|
-
"file": "packages/@ember/controller/index.
|
|
2082
|
-
"line":
|
|
2086
|
+
"file": "packages/@ember/controller/index.ts",
|
|
2087
|
+
"line": 11
|
|
2083
2088
|
},
|
|
2084
2089
|
"@ember/destroyable": {
|
|
2085
2090
|
"name": "@ember/destroyable",
|
|
@@ -2160,7 +2165,7 @@
|
|
|
2160
2165
|
"namespaces": {},
|
|
2161
2166
|
"tag": "module",
|
|
2162
2167
|
"file": "packages/@ember/instrumentation/index.ts",
|
|
2163
|
-
"line":
|
|
2168
|
+
"line": 40,
|
|
2164
2169
|
"access": "private",
|
|
2165
2170
|
"tagname": ""
|
|
2166
2171
|
},
|
|
@@ -2207,8 +2212,8 @@
|
|
|
2207
2212
|
},
|
|
2208
2213
|
"namespaces": {},
|
|
2209
2214
|
"tag": "module",
|
|
2210
|
-
"file": "packages/@ember/service/index.
|
|
2211
|
-
"line":
|
|
2215
|
+
"file": "packages/@ember/service/index.ts",
|
|
2216
|
+
"line": 90,
|
|
2212
2217
|
"access": "public",
|
|
2213
2218
|
"tagname": ""
|
|
2214
2219
|
},
|
|
@@ -2223,7 +2228,7 @@
|
|
|
2223
2228
|
"namespaces": {},
|
|
2224
2229
|
"tag": "module",
|
|
2225
2230
|
"file": "packages/@ember/string/index.ts",
|
|
2226
|
-
"line":
|
|
2231
|
+
"line": 74
|
|
2227
2232
|
},
|
|
2228
2233
|
"@ember/test": {
|
|
2229
2234
|
"name": "@ember/test",
|
|
@@ -2312,7 +2317,7 @@
|
|
|
2312
2317
|
"module": "rsvp",
|
|
2313
2318
|
"namespace": "",
|
|
2314
2319
|
"file": "packages/@ember/-internals/container/lib/container.ts",
|
|
2315
|
-
"line":
|
|
2320
|
+
"line": 55,
|
|
2316
2321
|
"description": "A container used to instantiate and cache objects.\n\nEvery `Container` must be associated with a `Registry`, which is referenced\nto determine the factory and options that should be used to instantiate\nobjects.\n\nThe public API for `Container` is still in flux and should not be considered\nstable.",
|
|
2317
2322
|
"access": "private",
|
|
2318
2323
|
"tagname": ""
|
|
@@ -2507,7 +2512,7 @@
|
|
|
2507
2512
|
"module": "@ember/component",
|
|
2508
2513
|
"namespace": "",
|
|
2509
2514
|
"file": "packages/@ember/-internals/glimmer/lib/helper.ts",
|
|
2510
|
-
"line":
|
|
2515
|
+
"line": 37,
|
|
2511
2516
|
"description": "Ember Helpers are functions that can compute values, and are used in templates.\nFor example, this code calls a helper named `format-currency`:\n\n```app/templates/application.hbs\n<Cost @cents={{230}} />\n```\n\n```app/components/cost.hbs\n<div>{{format-currency @cents currency=\"$\"}}</div>\n```\n\nAdditionally a helper can be called as a nested helper.\nIn this example, we show the formatted currency value if the `showMoney`\nnamed argument is truthy.\n\n```handlebars\n{{if @showMoney (format-currency @cents currency=\"$\")}}\n```\n\nHelpers defined using a class must provide a `compute` function. For example:\n\n```app/helpers/format-currency.js\nimport Helper from '@ember/component/helper';\n\nexport default class extends Helper {\n compute([cents], { currency }) {\n return `${currency}${cents * 0.01}`;\n }\n}\n```\n\nEach time the input to a helper changes, the `compute` function will be\ncalled again.\n\nAs instances, these helpers also have access to the container and will accept\ninjected dependencies.\n\nAdditionally, class helpers can call `recompute` to force a new computation.",
|
|
2512
2517
|
"extends": "CoreObject",
|
|
2513
2518
|
"access": "public",
|
|
@@ -2596,7 +2601,7 @@
|
|
|
2596
2601
|
"module": "@ember/object",
|
|
2597
2602
|
"namespace": "",
|
|
2598
2603
|
"file": "packages/@ember/-internals/metal/lib/decorator.ts",
|
|
2599
|
-
"line":
|
|
2604
|
+
"line": 49,
|
|
2600
2605
|
"description": "Objects of this type can implement an interface to respond to requests to\nget and set. The default implementation handles simple properties.",
|
|
2601
2606
|
"access": "private",
|
|
2602
2607
|
"tagname": ""
|
|
@@ -2702,7 +2707,7 @@
|
|
|
2702
2707
|
"module": "@ember/object",
|
|
2703
2708
|
"namespace": "",
|
|
2704
2709
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
2705
|
-
"line":
|
|
2710
|
+
"line": 440,
|
|
2706
2711
|
"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```",
|
|
2707
2712
|
"access": "public",
|
|
2708
2713
|
"tagname": ""
|
|
@@ -2855,7 +2860,7 @@
|
|
|
2855
2860
|
"module": "@ember/routing",
|
|
2856
2861
|
"namespace": "",
|
|
2857
2862
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
2858
|
-
"line":
|
|
2863
|
+
"line": 25,
|
|
2859
2864
|
"description": "The Router service is the public API that provides access to the router.\n\nThe immediate benefit of the Router service is that you can inject it into components,\ngiving them a friendly way to initiate transitions and ask questions about the current\nglobal router state.\n\nIn this example, the Router service is injected into a component to initiate a transition\nto a dedicated route:\n\n```app/components/example.js\nimport Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\n\nexport default class ExampleComponent extends Component {\n @service router;\n\n @action\n next() {\n this.router.transitionTo('other.route');\n }\n}\n```\n\nLike any service, it can also be injected into helpers, routes, etc.",
|
|
2860
2865
|
"access": "public",
|
|
2861
2866
|
"tagname": "",
|
|
@@ -2872,7 +2877,7 @@
|
|
|
2872
2877
|
"module": "ember",
|
|
2873
2878
|
"namespace": "",
|
|
2874
2879
|
"file": "packages/@ember/-internals/routing/lib/services/routing.ts",
|
|
2875
|
-
"line":
|
|
2880
|
+
"line": 17,
|
|
2876
2881
|
"description": "The Routing service is used by LinkTo, and provides facilities for\nthe component/view layer to interact with the router.\n\nThis is a private service for internal usage only. For public usage,\nrefer to the `Router` service.",
|
|
2877
2882
|
"access": "private",
|
|
2878
2883
|
"tagname": ""
|
|
@@ -2904,7 +2909,7 @@
|
|
|
2904
2909
|
"module": "ember",
|
|
2905
2910
|
"namespace": "",
|
|
2906
2911
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
2907
|
-
"line":
|
|
2912
|
+
"line": 3,
|
|
2908
2913
|
"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.",
|
|
2909
2914
|
"access": "public",
|
|
2910
2915
|
"tagname": ""
|
|
@@ -2920,7 +2925,7 @@
|
|
|
2920
2925
|
"module": "ember",
|
|
2921
2926
|
"namespace": "",
|
|
2922
2927
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
2923
|
-
"line":
|
|
2928
|
+
"line": 120,
|
|
2924
2929
|
"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.",
|
|
2925
2930
|
"access": "public",
|
|
2926
2931
|
"tagname": ""
|
|
@@ -2936,7 +2941,7 @@
|
|
|
2936
2941
|
"module": "@ember/routing",
|
|
2937
2942
|
"namespace": "",
|
|
2938
2943
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
2939
|
-
"line":
|
|
2944
|
+
"line": 79,
|
|
2940
2945
|
"description": "The `Route` class is used to define individual routes. Refer to\nthe [routing guide](https://guides.emberjs.com/release/routing/) for documentation.",
|
|
2941
2946
|
"extends": "EmberObject",
|
|
2942
2947
|
"uses": [
|
|
@@ -2958,7 +2963,7 @@
|
|
|
2958
2963
|
"module": "@ember/routing",
|
|
2959
2964
|
"namespace": "",
|
|
2960
2965
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
2961
|
-
"line":
|
|
2966
|
+
"line": 143,
|
|
2962
2967
|
"description": "The `EmberRouter` class manages the application state and URLs. Refer to\nthe [routing guide](https://guides.emberjs.com/release/routing/) for documentation.",
|
|
2963
2968
|
"extends": "EmberObject",
|
|
2964
2969
|
"uses": [
|
|
@@ -3067,7 +3072,7 @@
|
|
|
3067
3072
|
"module": "@ember/array",
|
|
3068
3073
|
"namespace": "",
|
|
3069
3074
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
3070
|
-
"line":
|
|
3075
|
+
"line": 1327,
|
|
3071
3076
|
"description": "This mixin defines the API for modifying array-like objects. These methods\ncan be applied only to a collection that keeps its items in an ordered set.\nIt builds upon the Array mixin and adds methods to modify the array.\nOne concrete implementations of this class include ArrayProxy.\n\nIt is important to use the methods in this class to modify arrays so that\nchanges are observable. This allows the binding system in Ember to function\ncorrectly.\n\n\nNote that an Array can change even if it does not implement this mixin.\nFor example, one might implement a SparseArray that cannot be directly\nmodified, but if its underlying enumerable changes, it will change also.",
|
|
3072
3077
|
"uses": [
|
|
3073
3078
|
"EmberArray",
|
|
@@ -3087,7 +3092,7 @@
|
|
|
3087
3092
|
"module": "ember",
|
|
3088
3093
|
"namespace": "",
|
|
3089
3094
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
3090
|
-
"line":
|
|
3095
|
+
"line": 1748,
|
|
3091
3096
|
"description": "The NativeArray mixin contains the properties needed to make the native\nArray support MutableArray and all of its dependent APIs. Unless you\nhave `EmberENV.EXTEND_PROTOTYPES` or `EmberENV.EXTEND_PROTOTYPES.Array` set to\nfalse, this will be applied automatically. Otherwise you can apply the mixin\nat anytime by calling `Ember.NativeArray.apply(Array.prototype)`.",
|
|
3092
3097
|
"uses": [
|
|
3093
3098
|
"MutableArray",
|
|
@@ -3298,18 +3303,18 @@
|
|
|
3298
3303
|
"access": "public",
|
|
3299
3304
|
"tagname": ""
|
|
3300
3305
|
},
|
|
3301
|
-
"
|
|
3302
|
-
"name": "
|
|
3303
|
-
"shortname": "
|
|
3306
|
+
"Namespace": {
|
|
3307
|
+
"name": "Namespace",
|
|
3308
|
+
"shortname": "Namespace",
|
|
3304
3309
|
"classitems": [],
|
|
3305
3310
|
"plugins": [],
|
|
3306
3311
|
"extensions": [],
|
|
3307
3312
|
"plugin_for": [],
|
|
3308
3313
|
"extension_for": [],
|
|
3309
|
-
"module": "ember",
|
|
3310
|
-
"namespace": "
|
|
3314
|
+
"module": "@ember/application",
|
|
3315
|
+
"namespace": "",
|
|
3311
3316
|
"file": "packages/@ember/-internals/runtime/lib/system/namespace.js",
|
|
3312
|
-
"line":
|
|
3317
|
+
"line": 19,
|
|
3313
3318
|
"description": "A Namespace is an object usually used to contain other objects or methods\nsuch as an application or framework. Create a namespace anytime you want\nto define one of these new containers.\n\n# Example Usage\n\n```javascript\nMyFramework = Ember.Namespace.create({\n VERSION: '1.0.0'\n});\n```",
|
|
3314
3319
|
"extends": "EmberObject",
|
|
3315
3320
|
"access": "public",
|
|
@@ -3549,8 +3554,8 @@
|
|
|
3549
3554
|
"extension_for": [],
|
|
3550
3555
|
"module": "@ember/controller",
|
|
3551
3556
|
"namespace": "",
|
|
3552
|
-
"file": "packages/@ember/controller/index.
|
|
3553
|
-
"line":
|
|
3557
|
+
"file": "packages/@ember/controller/index.ts",
|
|
3558
|
+
"line": 11,
|
|
3554
3559
|
"extends": "EmberObject",
|
|
3555
3560
|
"uses": [
|
|
3556
3561
|
"Ember.ControllerMixin"
|
|
@@ -3672,7 +3677,7 @@
|
|
|
3672
3677
|
"module": "@ember/instrumentation",
|
|
3673
3678
|
"namespace": "",
|
|
3674
3679
|
"file": "packages/@ember/instrumentation/index.ts",
|
|
3675
|
-
"line":
|
|
3680
|
+
"line": 40,
|
|
3676
3681
|
"description": "The purpose of the Ember Instrumentation module is\nto provide efficient, general-purpose instrumentation\nfor Ember.\n\nSubscribe to a listener by using `subscribe`:\n\n```javascript\nimport { subscribe } from '@ember/instrumentation';\n\nsubscribe(\"render\", {\n before(name, timestamp, payload) {\n\n },\n\n after(name, timestamp, payload) {\n\n }\n});\n```\n\nIf you return a value from the `before` callback, that same\nvalue will be passed as a fourth parameter to the `after`\ncallback.\n\nInstrument a block of code by using `instrument`:\n\n```javascript\nimport { instrument } from '@ember/instrumentation';\n\ninstrument(\"render.handlebars\", payload, function() {\n // rendering logic\n}, binding);\n```\n\nEvent names passed to `instrument` are namespaced\nby periods, from more general to more specific. Subscribers\ncan listen for events by whatever level of granularity they\nare interested in.\n\nIn the above example, the event is `render.handlebars`,\nand the subscriber listened for all events beginning with\n`render`. It would receive callbacks for events named\n`render`, `render.handlebars`, `render.container`, or\neven `render.handlebars.layout`.",
|
|
3677
3682
|
"static": 1,
|
|
3678
3683
|
"access": "private",
|
|
@@ -3743,8 +3748,8 @@
|
|
|
3743
3748
|
"extension_for": [],
|
|
3744
3749
|
"module": "@ember/service",
|
|
3745
3750
|
"namespace": "",
|
|
3746
|
-
"file": "packages/@ember/service/index.
|
|
3747
|
-
"line":
|
|
3751
|
+
"file": "packages/@ember/service/index.ts",
|
|
3752
|
+
"line": 90,
|
|
3748
3753
|
"extends": "EmberObject",
|
|
3749
3754
|
"since": "1.10.0",
|
|
3750
3755
|
"access": "public",
|
|
@@ -3761,7 +3766,7 @@
|
|
|
3761
3766
|
"module": "@ember/string",
|
|
3762
3767
|
"namespace": "",
|
|
3763
3768
|
"file": "packages/@ember/string/index.ts",
|
|
3764
|
-
"line":
|
|
3769
|
+
"line": 74,
|
|
3765
3770
|
"description": "Defines string helper methods including string formatting and localization.",
|
|
3766
3771
|
"access": "public",
|
|
3767
3772
|
"tagname": ""
|
|
@@ -4445,7 +4450,7 @@
|
|
|
4445
4450
|
},
|
|
4446
4451
|
{
|
|
4447
4452
|
"file": "packages/@ember/-internals/container/lib/container.ts",
|
|
4448
|
-
"line":
|
|
4453
|
+
"line": 95,
|
|
4449
4454
|
"access": "private",
|
|
4450
4455
|
"tagname": "",
|
|
4451
4456
|
"itemtype": "property",
|
|
@@ -4457,7 +4462,7 @@
|
|
|
4457
4462
|
},
|
|
4458
4463
|
{
|
|
4459
4464
|
"file": "packages/@ember/-internals/container/lib/container.ts",
|
|
4460
|
-
"line":
|
|
4465
|
+
"line": 102,
|
|
4461
4466
|
"access": "private",
|
|
4462
4467
|
"tagname": "",
|
|
4463
4468
|
"itemtype": "property",
|
|
@@ -4468,7 +4473,7 @@
|
|
|
4468
4473
|
},
|
|
4469
4474
|
{
|
|
4470
4475
|
"file": "packages/@ember/-internals/container/lib/container.ts",
|
|
4471
|
-
"line":
|
|
4476
|
+
"line": 108,
|
|
4472
4477
|
"access": "private",
|
|
4473
4478
|
"tagname": "",
|
|
4474
4479
|
"itemtype": "property",
|
|
@@ -4479,7 +4484,7 @@
|
|
|
4479
4484
|
},
|
|
4480
4485
|
{
|
|
4481
4486
|
"file": "packages/@ember/-internals/container/lib/container.ts",
|
|
4482
|
-
"line":
|
|
4487
|
+
"line": 114,
|
|
4483
4488
|
"description": "Given a fullName return a corresponding instance.\n The default behavior is for lookup to return a singleton instance.\nThe singleton is scoped to the container, allowing multiple containers\nto all have their own locally scoped singletons.\n ```javascript\nlet registry = new Registry();\nlet container = registry.container();\n registry.register('api:twitter', Twitter);\n let twitter = container.lookup('api:twitter');\n twitter instanceof Twitter; // => true\n // by default the container will return singletons\nlet twitter2 = container.lookup('api:twitter');\ntwitter2 instanceof Twitter; // => true\n twitter === twitter2; //=> true\n```\n If singletons are not wanted, an optional flag can be provided at lookup.\n ```javascript\nlet registry = new Registry();\nlet container = registry.container();\n registry.register('api:twitter', Twitter);\n let twitter = container.lookup('api:twitter', { singleton: false });\nlet twitter2 = container.lookup('api:twitter', { singleton: false });\n twitter === twitter2; //=> false\n```",
|
|
4484
4489
|
"access": "private",
|
|
4485
4490
|
"tagname": "",
|
|
@@ -4515,7 +4520,7 @@
|
|
|
4515
4520
|
},
|
|
4516
4521
|
{
|
|
4517
4522
|
"file": "packages/@ember/-internals/container/lib/container.ts",
|
|
4518
|
-
"line":
|
|
4523
|
+
"line": 154,
|
|
4519
4524
|
"description": "A depth first traversal, destroying the container, its descendant containers and all\ntheir managed objects.",
|
|
4520
4525
|
"access": "private",
|
|
4521
4526
|
"tagname": "",
|
|
@@ -4526,7 +4531,7 @@
|
|
|
4526
4531
|
},
|
|
4527
4532
|
{
|
|
4528
4533
|
"file": "packages/@ember/-internals/container/lib/container.ts",
|
|
4529
|
-
"line":
|
|
4534
|
+
"line": 171,
|
|
4530
4535
|
"description": "Clear either the entire cache or just the cache for a particular key.",
|
|
4531
4536
|
"access": "private",
|
|
4532
4537
|
"tagname": "",
|
|
@@ -4544,7 +4549,7 @@
|
|
|
4544
4549
|
},
|
|
4545
4550
|
{
|
|
4546
4551
|
"file": "packages/@ember/-internals/container/lib/container.ts",
|
|
4547
|
-
"line":
|
|
4552
|
+
"line": 188,
|
|
4548
4553
|
"description": "Returns an object that can be used to provide an owner to a\nmanually created instance.",
|
|
4549
4554
|
"access": "private",
|
|
4550
4555
|
"tagname": "",
|
|
@@ -4559,7 +4564,7 @@
|
|
|
4559
4564
|
},
|
|
4560
4565
|
{
|
|
4561
4566
|
"file": "packages/@ember/-internals/container/lib/container.ts",
|
|
4562
|
-
"line":
|
|
4567
|
+
"line": 201,
|
|
4563
4568
|
"description": "Given a fullName, return the corresponding factory. The consumer of the factory\nis responsible for the destruction of any factory instances, as there is no\nway for the container to ensure instances are destroyed when it itself is\ndestroyed.",
|
|
4564
4569
|
"access": "public",
|
|
4565
4570
|
"tagname": "",
|
|
@@ -4951,14 +4956,14 @@
|
|
|
4951
4956
|
},
|
|
4952
4957
|
{
|
|
4953
4958
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
4954
|
-
"line":
|
|
4959
|
+
"line": 450,
|
|
4955
4960
|
"description": "This is deprecated in favor of explicit injection of dependencies.\n\nReference: https://deprecations.emberjs.com/v3.x#toc_implicit-injections\n```\n\n@private\n@method injection\n@param {String} factoryName\n@param {String} property\n@param {String} injectionName\n@deprecated",
|
|
4956
4961
|
"class": "Registry",
|
|
4957
4962
|
"module": "rsvp"
|
|
4958
4963
|
},
|
|
4959
4964
|
{
|
|
4960
4965
|
"file": "packages/@ember/-internals/container/lib/registry.ts",
|
|
4961
|
-
"line":
|
|
4966
|
+
"line": 480,
|
|
4962
4967
|
"access": "private",
|
|
4963
4968
|
"tagname": "",
|
|
4964
4969
|
"itemtype": "method",
|
|
@@ -5701,7 +5706,7 @@
|
|
|
5701
5706
|
},
|
|
5702
5707
|
{
|
|
5703
5708
|
"file": "packages/@ember/-internals/glimmer/lib/helpers/-track-array.ts",
|
|
5704
|
-
"line":
|
|
5709
|
+
"line": 12,
|
|
5705
5710
|
"description": "This reference is used to get the `[]` tag of iterables, so we can trigger\nupdates to `{{each}}` when it changes. It is put into place by a template\ntransform at build time, similar to the (-each-in) helper",
|
|
5706
5711
|
"class": "Ember.Templates.helpers",
|
|
5707
5712
|
"module": "ember"
|
|
@@ -5766,7 +5771,7 @@
|
|
|
5766
5771
|
},
|
|
5767
5772
|
{
|
|
5768
5773
|
"file": "packages/@ember/-internals/glimmer/lib/helpers/each-in.ts",
|
|
5769
|
-
"line":
|
|
5774
|
+
"line": 13,
|
|
5770
5775
|
"description": "The `{{#each}}` helper loops over elements in a collection. It is an extension\nof the base Handlebars `{{#each}}` helper.\n\nThe default behavior of `{{#each}}` is to yield its inner block once for every\nitem in an array passing the item as the first block parameter.\n\nAssuming the `@developers` argument contains this array:\n\n```javascript\n[{ name: 'Yehuda' },{ name: 'Tom' }, { name: 'Paul' }];\n```\n\n```handlebars\n<ul>\n {{#each @developers as |person|}}\n <li>Hello, {{person.name}}!</li>\n {{/each}}\n</ul>\n```\n\nThe same rules apply to arrays of primitives.\n\n```javascript\n['Yehuda', 'Tom', 'Paul']\n```\n\n```handlebars\n<ul>\n {{#each @developerNames as |name|}}\n <li>Hello, {{name}}!</li>\n {{/each}}\n</ul>\n```\n\nDuring iteration, the index of each item in the array is provided as a second block\nparameter.\n\n```handlebars\n<ul>\n {{#each @developers as |person index|}}\n <li>Hello, {{person.name}}! You're number {{index}} in line</li>\n {{/each}}\n</ul>\n```\n\n### Specifying Keys\n\nIn order to improve rendering speed, Ember will try to reuse the DOM elements\nwhere possible. Specifically, if the same item is present in the array both\nbefore and after the change, its DOM output will be reused.\n\nThe `key` option is used to tell Ember how to determine if the items in the\narray being iterated over with `{{#each}}` has changed between renders. By\ndefault the item's object identity is used.\n\nThis is usually sufficient, so in most cases, the `key` option is simply not\nneeded. However, in some rare cases, the objects' identities may change even\nthough they represent the same underlying data.\n\nFor example:\n\n```javascript\npeople.map(person => {\n return { ...person, type: 'developer' };\n});\n```\n\nIn this case, each time the `people` array is `map`-ed over, it will produce\nan new array with completely different objects between renders. In these cases,\nyou can help Ember determine how these objects related to each other with the\n`key` option:\n\n```handlebars\n<ul>\n {{#each @developers key=\"name\" as |person|}}\n <li>Hello, {{person.name}}!</li>\n {{/each}}\n</ul>\n```\n\nBy doing so, Ember will use the value of the property specified (`person.name`\nin the example) to find a \"match\" from the previous render. That is, if Ember\nhas previously seen an object from the `@developers` array with a matching\nname, its DOM elements will be re-used.\n\nThere are two special values for `key`:\n\n * `@index` - The index of the item in the array.\n * `@identity` - The item in the array itself.\n\n### {{else}} condition\n\n`{{#each}}` can have a matching `{{else}}`. The contents of this block will render\nif the collection is empty.\n\n```handlebars\n<ul>\n {{#each @developers as |person|}}\n <li>{{person.name}} is available!</li>\n {{else}}\n <li>Sorry, nobody is available for this task.</li>\n {{/each}}\n</ul>\n```",
|
|
5771
5776
|
"itemtype": "method",
|
|
5772
5777
|
"name": "each",
|
|
@@ -5777,7 +5782,7 @@
|
|
|
5777
5782
|
},
|
|
5778
5783
|
{
|
|
5779
5784
|
"file": "packages/@ember/-internals/glimmer/lib/helpers/each-in.ts",
|
|
5780
|
-
"line":
|
|
5785
|
+
"line": 124,
|
|
5781
5786
|
"description": "The `{{each-in}}` helper loops over properties on an object.\n\nFor example, given this component definition:\n\n```app/components/developer-details.js\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class extends Component {\n @tracked developer = {\n \"name\": \"Shelly Sails\",\n \"age\": 42\n };\n}\n```\n\nThis template would display all properties on the `developer`\nobject in a list:\n\n```app/components/developer-details.hbs\n<ul>\n {{#each-in this.developer as |key value|}}\n <li>{{key}}: {{value}}</li>\n {{/each-in}}\n</ul>\n```\n\nOutputting their name and age:\n\n```html\n<ul>\n <li>name: Shelly Sails</li>\n <li>age: 42</li>\n</ul>\n```",
|
|
5782
5787
|
"itemtype": "method",
|
|
5783
5788
|
"name": "each-in",
|
|
@@ -5913,7 +5918,7 @@
|
|
|
5913
5918
|
},
|
|
5914
5919
|
{
|
|
5915
5920
|
"file": "packages/@ember/-internals/glimmer/lib/helpers/readonly.ts",
|
|
5916
|
-
"line":
|
|
5921
|
+
"line": 9,
|
|
5917
5922
|
"description": "The `readonly` helper let's you specify that a binding is one-way only,\ninstead of two-way.\nWhen you pass a `readonly` binding from an outer context (e.g. parent component),\nto to an inner context (e.g. child component), you are saying that changing that\nproperty in the inner context does not change the value in the outer context.\n\nTo specify that a binding is read-only, when invoking the child `Component`:\n\n```app/components/my-parent.js\nexport default Component.extend({\n totalClicks: 3\n});\n```\n\n```app/templates/components/my-parent.hbs\n{{log totalClicks}} // -> 3\n<MyChild @childClickCount={{readonly totalClicks}} />\n```\n```\n{{my-child childClickCount=(readonly totalClicks)}}\n```\n\nNow, when you update `childClickCount`:\n\n```app/components/my-child.js\nexport default Component.extend({\n click() {\n this.incrementProperty('childClickCount');\n }\n});\n```\n\nThe value updates in the child component, but not the parent component:\n\n```app/templates/components/my-child.hbs\n{{log childClickCount}} //-> 4\n```\n\n```app/templates/components/my-parent.hbs\n{{log totalClicks}} //-> 3\n<MyChild @childClickCount={{readonly totalClicks}} />\n```\nor\n```app/templates/components/my-parent.hbs\n{{log totalClicks}} //-> 3\n{{my-child childClickCount=(readonly totalClicks)}}\n```\n\n### Objects and Arrays\n\nWhen passing a property that is a complex object (e.g. object, array) instead of a primitive object (e.g. number, string),\nonly the reference to the object is protected using the readonly helper.\nThis means that you can change properties of the object both on the parent component, as well as the child component.\nThe `readonly` binding behaves similar to the `const` keyword in JavaScript.\n\nLet's look at an example:\n\nFirst let's set up the parent component:\n\n```app/components/my-parent.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n clicks: null,\n\n init() {\n this._super(...arguments);\n this.set('clicks', { total: 3 });\n }\n});\n```\n\n```app/templates/components/my-parent.hbs\n{{log clicks.total}} //-> 3\n<MyChild @childClicks={{readonly clicks}} />\n```\n```app/templates/components/my-parent.hbs\n{{log clicks.total}} //-> 3\n{{my-child childClicks=(readonly clicks)}}\n```\n\nNow, if you update the `total` property of `childClicks`:\n\n```app/components/my-child.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n click() {\n this.get('clicks').incrementProperty('total');\n }\n});\n```\n\nYou will see the following happen:\n\n```app/templates/components/my-parent.hbs\n{{log clicks.total}} //-> 4\n<MyChild @childClicks={{readonly clicks}} />\n```\nor\n```app/templates/components/my-parent.hbs\n{{log clicks.total}} //-> 4\n{{my-child childClicks=(readonly clicks)}}\n```\n\n```app/templates/components/my-child.hbs\n{{log childClicks.total}} //-> 4\n```",
|
|
5918
5923
|
"itemtype": "method",
|
|
5919
5924
|
"name": "readonly",
|
|
@@ -6115,19 +6120,19 @@
|
|
|
6115
6120
|
},
|
|
6116
6121
|
{
|
|
6117
6122
|
"file": "packages/@ember/-internals/glimmer/lib/views/outlet.ts",
|
|
6118
|
-
"line":
|
|
6123
|
+
"line": 104,
|
|
6119
6124
|
"class": "Component",
|
|
6120
6125
|
"module": "@ember/template"
|
|
6121
6126
|
},
|
|
6122
6127
|
{
|
|
6123
6128
|
"file": "packages/@ember/-internals/glimmer/lib/views/outlet.ts",
|
|
6124
|
-
"line":
|
|
6129
|
+
"line": 112,
|
|
6125
6130
|
"class": "Component",
|
|
6126
6131
|
"module": "@ember/template"
|
|
6127
6132
|
},
|
|
6128
6133
|
{
|
|
6129
6134
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6130
|
-
"line":
|
|
6135
|
+
"line": 752,
|
|
6131
6136
|
"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.",
|
|
6132
6137
|
"itemtype": "method",
|
|
6133
6138
|
"name": "readDOMAttr",
|
|
@@ -6148,7 +6153,7 @@
|
|
|
6148
6153
|
},
|
|
6149
6154
|
{
|
|
6150
6155
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6151
|
-
"line":
|
|
6156
|
+
"line": 803,
|
|
6152
6157
|
"description": "The WAI-ARIA role of the control represented by this view. For example, a\nbutton may have a role of type 'button', or a pane may have a role of\ntype 'alertdialog'. This property is used by assistive software to help\nvisually challenged users navigate rich web applications.\n\nThe full list of valid WAI-ARIA roles is available at:\n[https://www.w3.org/TR/wai-aria/#roles_categorization](https://www.w3.org/TR/wai-aria/#roles_categorization)",
|
|
6153
6158
|
"itemtype": "property",
|
|
6154
6159
|
"name": "ariaRole",
|
|
@@ -6161,7 +6166,7 @@
|
|
|
6161
6166
|
},
|
|
6162
6167
|
{
|
|
6163
6168
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6164
|
-
"line":
|
|
6169
|
+
"line": 818,
|
|
6165
6170
|
"description": "Enables components to take a list of parameters as arguments.\nFor example, a component that takes two parameters with the names\n`name` and `age`:\n\n```app/components/my-component.js\nimport Component from '@ember/component';\n\nlet MyComponent = Component.extend();\n\nMyComponent.reopenClass({\n positionalParams: ['name', 'age']\n});\n\nexport default MyComponent;\n```\n\nIt can then be invoked like this:\n\n```hbs\n{{my-component \"John\" 38}}\n```\n\nThe parameters can be referred to just like named parameters:\n\n```hbs\nName: {{name}}, Age: {{age}}.\n```\n\nUsing a string instead of an array allows for an arbitrary number of\nparameters:\n\n```app/components/my-component.js\nimport Component from '@ember/component';\n\nlet MyComponent = Component.extend();\n\nMyComponent.reopenClass({\n positionalParams: 'names'\n});\n\nexport default MyComponent;\n```\n\nIt can then be invoked like this:\n\n```hbs\n{{my-component \"John\" \"Michael\" \"Scott\"}}\n```\nThe parameters can then be referred to by enumerating over the list:\n\n```hbs\n{{#each names as |name|}}{{name}}{{/each}}\n```",
|
|
6166
6171
|
"static": 1,
|
|
6167
6172
|
"access": "public",
|
|
@@ -6174,7 +6179,7 @@
|
|
|
6174
6179
|
},
|
|
6175
6180
|
{
|
|
6176
6181
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6177
|
-
"line":
|
|
6182
|
+
"line": 879,
|
|
6178
6183
|
"description": "Called when the attributes passed into the component have been updated.\nCalled both during the initial render of a container and during a rerender.\nCan be used in place of an observer; code placed here will be executed\nevery time any attribute updates.",
|
|
6179
6184
|
"itemtype": "method",
|
|
6180
6185
|
"name": "didReceiveAttrs",
|
|
@@ -6186,7 +6191,7 @@
|
|
|
6186
6191
|
},
|
|
6187
6192
|
{
|
|
6188
6193
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6189
|
-
"line":
|
|
6194
|
+
"line": 890,
|
|
6190
6195
|
"description": "Called when the attributes passed into the component have been updated.\nCalled both during the initial render of a container and during a rerender.\nCan be used in place of an observer; code placed here will be executed\nevery time any attribute updates.",
|
|
6191
6196
|
"itemtype": "event",
|
|
6192
6197
|
"name": "didReceiveAttrs",
|
|
@@ -6198,7 +6203,7 @@
|
|
|
6198
6203
|
},
|
|
6199
6204
|
{
|
|
6200
6205
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6201
|
-
"line":
|
|
6206
|
+
"line": 900,
|
|
6202
6207
|
"description": "Called after a component has been rendered, both on initial render and\nin subsequent rerenders.",
|
|
6203
6208
|
"itemtype": "method",
|
|
6204
6209
|
"name": "didRender",
|
|
@@ -6210,7 +6215,7 @@
|
|
|
6210
6215
|
},
|
|
6211
6216
|
{
|
|
6212
6217
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6213
|
-
"line":
|
|
6218
|
+
"line": 909,
|
|
6214
6219
|
"description": "Called after a component has been rendered, both on initial render and\nin subsequent rerenders.",
|
|
6215
6220
|
"itemtype": "event",
|
|
6216
6221
|
"name": "didRender",
|
|
@@ -6222,7 +6227,7 @@
|
|
|
6222
6227
|
},
|
|
6223
6228
|
{
|
|
6224
6229
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6225
|
-
"line":
|
|
6230
|
+
"line": 917,
|
|
6226
6231
|
"description": "Called before a component has been rendered, both on initial render and\nin subsequent rerenders.",
|
|
6227
6232
|
"itemtype": "method",
|
|
6228
6233
|
"name": "willRender",
|
|
@@ -6234,7 +6239,7 @@
|
|
|
6234
6239
|
},
|
|
6235
6240
|
{
|
|
6236
6241
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6237
|
-
"line":
|
|
6242
|
+
"line": 926,
|
|
6238
6243
|
"description": "Called before a component has been rendered, both on initial render and\nin subsequent rerenders.",
|
|
6239
6244
|
"itemtype": "event",
|
|
6240
6245
|
"name": "willRender",
|
|
@@ -6246,7 +6251,7 @@
|
|
|
6246
6251
|
},
|
|
6247
6252
|
{
|
|
6248
6253
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6249
|
-
"line":
|
|
6254
|
+
"line": 934,
|
|
6250
6255
|
"description": "Called when the attributes passed into the component have been changed.\nCalled only during a rerender, not during an initial render.",
|
|
6251
6256
|
"itemtype": "method",
|
|
6252
6257
|
"name": "didUpdateAttrs",
|
|
@@ -6258,7 +6263,7 @@
|
|
|
6258
6263
|
},
|
|
6259
6264
|
{
|
|
6260
6265
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6261
|
-
"line":
|
|
6266
|
+
"line": 943,
|
|
6262
6267
|
"description": "Called when the attributes passed into the component have been changed.\nCalled only during a rerender, not during an initial render.",
|
|
6263
6268
|
"itemtype": "event",
|
|
6264
6269
|
"name": "didUpdateAttrs",
|
|
@@ -6270,7 +6275,7 @@
|
|
|
6270
6275
|
},
|
|
6271
6276
|
{
|
|
6272
6277
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6273
|
-
"line":
|
|
6278
|
+
"line": 951,
|
|
6274
6279
|
"description": "Called when the component is about to update and rerender itself.\nCalled only during a rerender, not during an initial render.",
|
|
6275
6280
|
"itemtype": "method",
|
|
6276
6281
|
"name": "willUpdate",
|
|
@@ -6282,7 +6287,7 @@
|
|
|
6282
6287
|
},
|
|
6283
6288
|
{
|
|
6284
6289
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6285
|
-
"line":
|
|
6290
|
+
"line": 960,
|
|
6286
6291
|
"description": "Called when the component is about to update and rerender itself.\nCalled only during a rerender, not during an initial render.",
|
|
6287
6292
|
"itemtype": "event",
|
|
6288
6293
|
"name": "willUpdate",
|
|
@@ -6294,7 +6299,7 @@
|
|
|
6294
6299
|
},
|
|
6295
6300
|
{
|
|
6296
6301
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6297
|
-
"line":
|
|
6302
|
+
"line": 968,
|
|
6298
6303
|
"description": "Called when the component has updated and rerendered itself.\nCalled only during a rerender, not during an initial render.",
|
|
6299
6304
|
"itemtype": "method",
|
|
6300
6305
|
"name": "didUpdate",
|
|
@@ -6306,7 +6311,7 @@
|
|
|
6306
6311
|
},
|
|
6307
6312
|
{
|
|
6308
6313
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6309
|
-
"line":
|
|
6314
|
+
"line": 977,
|
|
6310
6315
|
"description": "Called when the component has updated and rerendered itself.\nCalled only during a rerender, not during an initial render.",
|
|
6311
6316
|
"itemtype": "event",
|
|
6312
6317
|
"name": "didUpdate",
|
|
@@ -6318,7 +6323,7 @@
|
|
|
6318
6323
|
},
|
|
6319
6324
|
{
|
|
6320
6325
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6321
|
-
"line":
|
|
6326
|
+
"line": 985,
|
|
6322
6327
|
"description": "Layout can be used to wrap content in a component.",
|
|
6323
6328
|
"itemtype": "property",
|
|
6324
6329
|
"name": "layout",
|
|
@@ -6330,7 +6335,7 @@
|
|
|
6330
6335
|
},
|
|
6331
6336
|
{
|
|
6332
6337
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6333
|
-
"line":
|
|
6338
|
+
"line": 992,
|
|
6334
6339
|
"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).",
|
|
6335
6340
|
"itemtype": "property",
|
|
6336
6341
|
"name": "layoutName",
|
|
@@ -6343,7 +6348,7 @@
|
|
|
6343
6348
|
},
|
|
6344
6349
|
{
|
|
6345
6350
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6346
|
-
"line":
|
|
6351
|
+
"line": 1002,
|
|
6347
6352
|
"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```",
|
|
6348
6353
|
"itemtype": "property",
|
|
6349
6354
|
"name": "elementId",
|
|
@@ -6367,19 +6372,7 @@
|
|
|
6367
6372
|
},
|
|
6368
6373
|
{
|
|
6369
6374
|
"file": "packages/@ember/-internals/glimmer/lib/helper.ts",
|
|
6370
|
-
"line":
|
|
6371
|
-
"description": "On a class-based helper, it may be useful to force a recomputation of that\nhelpers value. This is akin to `rerender` on a component.\n\nFor example, this component will rerender when the `currentUser` on a\nsession service changes:\n\n```app/helpers/current-user-email.js\nimport Helper from '@ember/component/helper'\nimport { service } from '@ember/service'\nimport { observer } from '@ember/object'\n\nexport default Helper.extend({\n session: service(),\n\n onNewUser: observer('session.currentUser', function() {\n this.recompute();\n }),\n\n compute() {\n return this.get('session.currentUser.email');\n }\n});\n```",
|
|
6372
|
-
"itemtype": "method",
|
|
6373
|
-
"name": "recompute",
|
|
6374
|
-
"access": "public",
|
|
6375
|
-
"tagname": "",
|
|
6376
|
-
"since": "1.13.0",
|
|
6377
|
-
"class": "Helper",
|
|
6378
|
-
"module": "@ember/component"
|
|
6379
|
-
},
|
|
6380
|
-
{
|
|
6381
|
-
"file": "packages/@ember/-internals/glimmer/lib/helper.ts",
|
|
6382
|
-
"line": 118,
|
|
6375
|
+
"line": 83,
|
|
6383
6376
|
"description": "Override this function when writing a class-based helper.",
|
|
6384
6377
|
"itemtype": "method",
|
|
6385
6378
|
"name": "compute",
|
|
@@ -6403,7 +6396,19 @@
|
|
|
6403
6396
|
},
|
|
6404
6397
|
{
|
|
6405
6398
|
"file": "packages/@ember/-internals/glimmer/lib/helper.ts",
|
|
6406
|
-
"line":
|
|
6399
|
+
"line": 103,
|
|
6400
|
+
"description": "On a class-based helper, it may be useful to force a recomputation of that\nhelpers value. This is akin to `rerender` on a component.\n\nFor example, this component will rerender when the `currentUser` on a\nsession service changes:\n\n```app/helpers/current-user-email.js\nimport Helper from '@ember/component/helper'\nimport { service } from '@ember/service'\nimport { observer } from '@ember/object'\n\nexport default Helper.extend({\n session: service(),\n\n onNewUser: observer('session.currentUser', function() {\n this.recompute();\n }),\n\n compute() {\n return this.get('session.currentUser.email');\n }\n});\n```",
|
|
6401
|
+
"itemtype": "method",
|
|
6402
|
+
"name": "recompute",
|
|
6403
|
+
"access": "public",
|
|
6404
|
+
"tagname": "",
|
|
6405
|
+
"since": "1.13.0",
|
|
6406
|
+
"class": "Helper",
|
|
6407
|
+
"module": "@ember/component"
|
|
6408
|
+
},
|
|
6409
|
+
{
|
|
6410
|
+
"file": "packages/@ember/-internals/glimmer/lib/helper.ts",
|
|
6411
|
+
"line": 239,
|
|
6407
6412
|
"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```",
|
|
6408
6413
|
"static": 1,
|
|
6409
6414
|
"params": [
|
|
@@ -6729,7 +6734,7 @@
|
|
|
6729
6734
|
},
|
|
6730
6735
|
{
|
|
6731
6736
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6732
|
-
"line":
|
|
6737
|
+
"line": 473,
|
|
6733
6738
|
"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.",
|
|
6734
6739
|
"class": "Ember",
|
|
6735
6740
|
"module": "ember"
|
|
@@ -6742,13 +6747,13 @@
|
|
|
6742
6747
|
},
|
|
6743
6748
|
{
|
|
6744
6749
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6745
|
-
"line":
|
|
6750
|
+
"line": 578,
|
|
6746
6751
|
"class": "Ember",
|
|
6747
6752
|
"module": "ember"
|
|
6748
6753
|
},
|
|
6749
6754
|
{
|
|
6750
6755
|
"file": "packages/@ember/-internals/meta/lib/meta.ts",
|
|
6751
|
-
"line":
|
|
6756
|
+
"line": 670,
|
|
6752
6757
|
"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.",
|
|
6753
6758
|
"itemtype": "method",
|
|
6754
6759
|
"name": "meta",
|
|
@@ -6889,7 +6894,7 @@
|
|
|
6889
6894
|
},
|
|
6890
6895
|
{
|
|
6891
6896
|
"file": "packages/@ember/-internals/metal/lib/computed.ts",
|
|
6892
|
-
"line":
|
|
6897
|
+
"line": 911,
|
|
6893
6898
|
"description": "Allows checking if a given property on an object is a computed property. For the most part,\nthis doesn't matter (you would normally just access the property directly and use its value),\nbut for some tooling specific scenarios (e.g. the ember-inspector) it is important to\ndifferentiate if a property is a computed property or a \"normal\" property.\n\nThis will work on either a class's prototype or an instance itself.",
|
|
6894
6899
|
"static": 1,
|
|
6895
6900
|
"itemtype": "method",
|
|
@@ -6901,7 +6906,7 @@
|
|
|
6901
6906
|
},
|
|
6902
6907
|
{
|
|
6903
6908
|
"file": "packages/@ember/-internals/metal/lib/decorator.ts",
|
|
6904
|
-
"line":
|
|
6909
|
+
"line": 158,
|
|
6905
6910
|
"description": "Returns the CP descriptor associated with `obj` and `keyName`, if any.",
|
|
6906
6911
|
"itemtype": "method",
|
|
6907
6912
|
"name": "descriptorForProperty",
|
|
@@ -6928,7 +6933,7 @@
|
|
|
6928
6933
|
},
|
|
6929
6934
|
{
|
|
6930
6935
|
"file": "packages/@ember/-internals/metal/lib/decorator.ts",
|
|
6931
|
-
"line":
|
|
6936
|
+
"line": 186,
|
|
6932
6937
|
"description": "Check whether a value is a decorator",
|
|
6933
6938
|
"itemtype": "method",
|
|
6934
6939
|
"name": "isClassicDecorator",
|
|
@@ -6950,7 +6955,7 @@
|
|
|
6950
6955
|
},
|
|
6951
6956
|
{
|
|
6952
6957
|
"file": "packages/@ember/-internals/metal/lib/decorator.ts",
|
|
6953
|
-
"line":
|
|
6958
|
+
"line": 198,
|
|
6954
6959
|
"description": "Set a value as a decorator",
|
|
6955
6960
|
"itemtype": "method",
|
|
6956
6961
|
"name": "setClassicDecorator",
|
|
@@ -7301,7 +7306,7 @@
|
|
|
7301
7306
|
},
|
|
7302
7307
|
{
|
|
7303
7308
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7304
|
-
"line":
|
|
7309
|
+
"line": 426,
|
|
7305
7310
|
"itemtype": "method",
|
|
7306
7311
|
"name": "mixin",
|
|
7307
7312
|
"params": [
|
|
@@ -7325,43 +7330,43 @@
|
|
|
7325
7330
|
},
|
|
7326
7331
|
{
|
|
7327
7332
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7328
|
-
"line":
|
|
7333
|
+
"line": 523,
|
|
7329
7334
|
"class": "Mixin",
|
|
7330
7335
|
"module": "@ember/object"
|
|
7331
7336
|
},
|
|
7332
7337
|
{
|
|
7333
7338
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7334
|
-
"line":
|
|
7339
|
+
"line": 526,
|
|
7335
7340
|
"class": "Mixin",
|
|
7336
7341
|
"module": "@ember/object"
|
|
7337
7342
|
},
|
|
7338
7343
|
{
|
|
7339
7344
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7340
|
-
"line":
|
|
7345
|
+
"line": 529,
|
|
7341
7346
|
"class": "Mixin",
|
|
7342
7347
|
"module": "@ember/object"
|
|
7343
7348
|
},
|
|
7344
7349
|
{
|
|
7345
7350
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7346
|
-
"line":
|
|
7351
|
+
"line": 532,
|
|
7347
7352
|
"class": "Mixin",
|
|
7348
7353
|
"module": "@ember/object"
|
|
7349
7354
|
},
|
|
7350
7355
|
{
|
|
7351
7356
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7352
|
-
"line":
|
|
7357
|
+
"line": 535,
|
|
7353
7358
|
"class": "Mixin",
|
|
7354
7359
|
"module": "@ember/object"
|
|
7355
7360
|
},
|
|
7356
7361
|
{
|
|
7357
7362
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7358
|
-
"line":
|
|
7363
|
+
"line": 538,
|
|
7359
7364
|
"class": "Mixin",
|
|
7360
7365
|
"module": "@ember/object"
|
|
7361
7366
|
},
|
|
7362
7367
|
{
|
|
7363
7368
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7364
|
-
"line":
|
|
7369
|
+
"line": 564,
|
|
7365
7370
|
"itemtype": "method",
|
|
7366
7371
|
"name": "create",
|
|
7367
7372
|
"static": 1,
|
|
@@ -7379,13 +7384,13 @@
|
|
|
7379
7384
|
},
|
|
7380
7385
|
{
|
|
7381
7386
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7382
|
-
"line":
|
|
7387
|
+
"line": 579,
|
|
7383
7388
|
"class": "@ember/object/mixin",
|
|
7384
7389
|
"module": "@ember/object"
|
|
7385
7390
|
},
|
|
7386
7391
|
{
|
|
7387
7392
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7388
|
-
"line":
|
|
7393
|
+
"line": 597,
|
|
7389
7394
|
"itemtype": "method",
|
|
7390
7395
|
"name": "reopen",
|
|
7391
7396
|
"params": [
|
|
@@ -7403,7 +7408,7 @@
|
|
|
7403
7408
|
},
|
|
7404
7409
|
{
|
|
7405
7410
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7406
|
-
"line":
|
|
7411
|
+
"line": 620,
|
|
7407
7412
|
"itemtype": "method",
|
|
7408
7413
|
"name": "apply",
|
|
7409
7414
|
"params": [
|
|
@@ -7423,13 +7428,13 @@
|
|
|
7423
7428
|
},
|
|
7424
7429
|
{
|
|
7425
7430
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7426
|
-
"line":
|
|
7431
|
+
"line": 636,
|
|
7427
7432
|
"class": "@ember/object/mixin",
|
|
7428
7433
|
"module": "@ember/object"
|
|
7429
7434
|
},
|
|
7430
7435
|
{
|
|
7431
7436
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7432
|
-
"line":
|
|
7437
|
+
"line": 641,
|
|
7433
7438
|
"itemtype": "method",
|
|
7434
7439
|
"name": "detect",
|
|
7435
7440
|
"params": [
|
|
@@ -7450,25 +7455,25 @@
|
|
|
7450
7455
|
},
|
|
7451
7456
|
{
|
|
7452
7457
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7453
|
-
"line":
|
|
7458
|
+
"line": 662,
|
|
7454
7459
|
"class": "@ember/object/mixin",
|
|
7455
7460
|
"module": "@ember/object"
|
|
7456
7461
|
},
|
|
7457
7462
|
{
|
|
7458
7463
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7459
|
-
"line":
|
|
7464
|
+
"line": 669,
|
|
7460
7465
|
"class": "@ember/object/mixin",
|
|
7461
7466
|
"module": "@ember/object"
|
|
7462
7467
|
},
|
|
7463
7468
|
{
|
|
7464
7469
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7465
|
-
"line":
|
|
7470
|
+
"line": 674,
|
|
7466
7471
|
"class": "@ember/object/mixin",
|
|
7467
7472
|
"module": "@ember/object"
|
|
7468
7473
|
},
|
|
7469
7474
|
{
|
|
7470
7475
|
"file": "packages/@ember/-internals/metal/lib/mixin.ts",
|
|
7471
|
-
"line":
|
|
7476
|
+
"line": 766,
|
|
7472
7477
|
"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.",
|
|
7473
7478
|
"itemtype": "method",
|
|
7474
7479
|
"name": "observer",
|
|
@@ -7808,7 +7813,7 @@
|
|
|
7808
7813
|
},
|
|
7809
7814
|
{
|
|
7810
7815
|
"file": "packages/@ember/-internals/metal/lib/tracked.ts",
|
|
7811
|
-
"line":
|
|
7816
|
+
"line": 17,
|
|
7812
7817
|
"decorator": "",
|
|
7813
7818
|
"access": "private",
|
|
7814
7819
|
"tagname": "Marks a property as tracked.\n\nBy default, a component's properties are expected to be static,\nmeaning you are not able to update them and have the template update accordingly.\nMarking a property as tracked means that when that property changes,\na rerender of the component is scheduled so the template is kept up to date.\n\nThere are two usages for the `@tracked` decorator, shown below.",
|
|
@@ -7827,7 +7832,25 @@
|
|
|
7827
7832
|
},
|
|
7828
7833
|
{
|
|
7829
7834
|
"file": "packages/@ember/-internals/owner/index.ts",
|
|
7830
|
-
"line":
|
|
7835
|
+
"line": 36,
|
|
7836
|
+
"class": "@ember/application",
|
|
7837
|
+
"module": "@ember/application"
|
|
7838
|
+
},
|
|
7839
|
+
{
|
|
7840
|
+
"file": "packages/@ember/-internals/owner/index.ts",
|
|
7841
|
+
"line": 38,
|
|
7842
|
+
"class": "@ember/application",
|
|
7843
|
+
"module": "@ember/application"
|
|
7844
|
+
},
|
|
7845
|
+
{
|
|
7846
|
+
"file": "packages/@ember/-internals/owner/index.ts",
|
|
7847
|
+
"line": 40,
|
|
7848
|
+
"class": "@ember/application",
|
|
7849
|
+
"module": "@ember/application"
|
|
7850
|
+
},
|
|
7851
|
+
{
|
|
7852
|
+
"file": "packages/@ember/-internals/owner/index.ts",
|
|
7853
|
+
"line": 44,
|
|
7831
7854
|
"description": "Framework objects in an Ember application (components, services, routes, etc.)\nare created via a factory and dependency injection system. Each of these\nobjects is the responsibility of an \"owner\", which handled its\ninstantiation and manages its lifetime.\n\n`getOwner` fetches the owner object responsible for an instance. This can\nbe used to lookup or resolve other class instances, or register new factories\ninto the owner.\n\nFor example, this component dynamically looks up a service based on the\n`audioType` passed as an argument:\n\n```app/components/play-audio.js\nimport Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { getOwner } from '@ember/application';\n\n// Usage:\n//\n// <PlayAudio @audioType={{@model.audioType}} @audioFile={{@model.file}}/>\n//\nexport default class extends Component {\n get audioService() {\n let owner = getOwner(this);\n return owner.lookup(`service:${this.args.audioType}`);\n }\n\n @action\n onPlay() {\n let player = this.audioService;\n player.play(this.args.audioFile);\n }\n}\n```",
|
|
7832
7855
|
"itemtype": "method",
|
|
7833
7856
|
"name": "getOwner",
|
|
@@ -7851,7 +7874,7 @@
|
|
|
7851
7874
|
},
|
|
7852
7875
|
{
|
|
7853
7876
|
"file": "packages/@ember/-internals/owner/index.ts",
|
|
7854
|
-
"line":
|
|
7877
|
+
"line": 92,
|
|
7855
7878
|
"description": "`setOwner` forces a new owner on a given object instance. This is primarily\nuseful in some testing cases.",
|
|
7856
7879
|
"itemtype": "method",
|
|
7857
7880
|
"name": "setOwner",
|
|
@@ -7876,7 +7899,7 @@
|
|
|
7876
7899
|
},
|
|
7877
7900
|
{
|
|
7878
7901
|
"file": "packages/@ember/-internals/routing/lib/ext/controller.ts",
|
|
7879
|
-
"line":
|
|
7902
|
+
"line": 25,
|
|
7880
7903
|
"description": "Defines which query parameters the controller accepts.\nIf you give the names `['category','page']` it will bind\nthe values of these query parameters to the variables\n`this.category` and `this.page`.\n\nBy default, query parameters are parsed as strings. This\nmay cause unexpected behavior if a query parameter is used with `toggleProperty`,\nbecause the initial value set for `param=false` will be the string `\"false\"`, which is truthy.\n\nTo avoid this, you may specify that the query parameter should be parsed as a boolean\nby using the following verbose form with a `type` property:\n```javascript\n queryParams: [{\n category: {\n type: 'boolean'\n }\n }]\n```\nAvailable values for the `type` parameter are `'boolean'`, `'number'`, `'array'`, and `'string'`.\nIf query param type is not specified, it will default to `'string'`.",
|
|
7881
7904
|
"itemtype": "property",
|
|
7882
7905
|
"name": "queryParams",
|
|
@@ -7887,7 +7910,7 @@
|
|
|
7887
7910
|
},
|
|
7888
7911
|
{
|
|
7889
7912
|
"file": "packages/@ember/-internals/routing/lib/ext/controller.ts",
|
|
7890
|
-
"line":
|
|
7913
|
+
"line": 53,
|
|
7891
7914
|
"description": "This property is updated to various different callback functions depending on\nthe current \"state\" of the backing route. It is used by\n`Controller.prototype._qpChanged`.\n\nThe methods backing each state can be found in the `Route.prototype._qp` computed\nproperty return value (the `.states` property). The current values are listed here for\nthe sanity of future travelers:\n\n* `inactive` - This state is used when this controller instance is not part of the active\n route hierarchy. Set in `Route.prototype._reset` (a `router.js` microlib hook) and\n `Route.prototype.actions.finalizeQueryParamChange`.\n* `active` - This state is used when this controller instance is part of the active\n route hierarchy. Set in `Route.prototype.actions.finalizeQueryParamChange`.\n* `allowOverrides` - This state is used in `Route.prototype.setup` (`route.js` microlib hook).",
|
|
7892
7915
|
"itemtype": "method",
|
|
7893
7916
|
"name": "_qpDelegate",
|
|
@@ -7898,7 +7921,7 @@
|
|
|
7898
7921
|
},
|
|
7899
7922
|
{
|
|
7900
7923
|
"file": "packages/@ember/-internals/routing/lib/ext/controller.ts",
|
|
7901
|
-
"line":
|
|
7924
|
+
"line": 74,
|
|
7902
7925
|
"description": "During `Route#setup` observers are created to invoke this method\nwhen any of the query params declared in `Controller#queryParams` property\nare changed.\n\nWhen invoked this method uses the currently active query param update delegate\n(see `Controller.prototype._qpDelegate` for details) and invokes it with\nthe QP key/value being changed.",
|
|
7903
7926
|
"itemtype": "method",
|
|
7904
7927
|
"name": "_qpChanged",
|
|
@@ -7909,13 +7932,18 @@
|
|
|
7909
7932
|
},
|
|
7910
7933
|
{
|
|
7911
7934
|
"file": "packages/@ember/-internals/routing/lib/ext/controller.ts",
|
|
7912
|
-
"line":
|
|
7935
|
+
"line": 95,
|
|
7913
7936
|
"description": "Transition the application into another route. The route may\nbe either a single route or route path:\n\n```javascript\naController.transitionToRoute('blogPosts');\naController.transitionToRoute('blogPosts.recentEntries');\n```\n\nOptionally supply a model for the route in question. The model\nwill be serialized into the URL using the `serialize` hook of\nthe route:\n\n```javascript\naController.transitionToRoute('blogPost', aPost);\n```\n\nIf a literal is passed (such as a number or a string), it will\nbe treated as an identifier instead. In this case, the `model`\nhook of the route will be triggered:\n\n```javascript\naController.transitionToRoute('blogPost', 1);\n```\n\nMultiple models will be applied last to first recursively up the\nroute tree.\n\n```app/router.js\nRouter.map(function() {\n this.route('blogPost', { path: ':blogPostId' }, function() {\n this.route('blogComment', { path: ':blogCommentId', resetNamespace: true });\n });\n});\n```\n\n```javascript\naController.transitionToRoute('blogComment', aPost, aComment);\naController.transitionToRoute('blogComment', 1, 13);\n```\n\nIt is also possible to pass a URL (a string that starts with a\n`/`).\n\n```javascript\naController.transitionToRoute('/');\naController.transitionToRoute('/blog/post/1/comment/13');\naController.transitionToRoute('/blog/posts?sort=title');\n```\n\nAn options hash with a `queryParams` property may be provided as\nthe final argument to add query parameters to the destination URL.\n\n```javascript\naController.transitionToRoute('blogPost', 1, {\n queryParams: { showComments: 'true' }\n});\n\n// if you just want to transition the query parameters without changing the route\naController.transitionToRoute({ queryParams: { sort: 'date' } });\n```\n\nSee also [replaceRoute](/ember/release/classes/Ember.ControllerMixin/methods/replaceRoute?anchor=replaceRoute).",
|
|
7937
|
+
"itemtype": "method",
|
|
7938
|
+
"name": "transitionToRoute",
|
|
7939
|
+
"deprecated": true,
|
|
7940
|
+
"deprecationMessage": "Use transitionTo from the Router service instead.",
|
|
7914
7941
|
"params": [
|
|
7915
7942
|
{
|
|
7916
7943
|
"name": "name",
|
|
7917
7944
|
"description": "the name of the route or a URL",
|
|
7918
|
-
"type": "String"
|
|
7945
|
+
"type": "String",
|
|
7946
|
+
"optional": true
|
|
7919
7947
|
},
|
|
7920
7948
|
{
|
|
7921
7949
|
"name": "models",
|
|
@@ -7929,14 +7957,10 @@
|
|
|
7929
7957
|
"optional": true
|
|
7930
7958
|
}
|
|
7931
7959
|
],
|
|
7932
|
-
"itemtype": "method",
|
|
7933
|
-
"name": "transitionToRoute",
|
|
7934
7960
|
"return": {
|
|
7935
7961
|
"description": "the transition object associated with this\n attempted transition",
|
|
7936
7962
|
"type": "Transition"
|
|
7937
7963
|
},
|
|
7938
|
-
"deprecated": true,
|
|
7939
|
-
"deprecationMessage": "Use transitionTo from the Router service instead.",
|
|
7940
7964
|
"access": "public",
|
|
7941
7965
|
"tagname": "",
|
|
7942
7966
|
"class": "Ember.ControllerMixin",
|
|
@@ -7944,28 +7968,35 @@
|
|
|
7944
7968
|
},
|
|
7945
7969
|
{
|
|
7946
7970
|
"file": "packages/@ember/-internals/routing/lib/ext/controller.ts",
|
|
7947
|
-
"line":
|
|
7971
|
+
"line": 185,
|
|
7948
7972
|
"description": "Transition into another route while replacing the current URL, if possible.\nThis will replace the current history entry instead of adding a new one.\nBeside that, it is identical to `transitionToRoute` in all other respects.\n\n```javascript\naController.replaceRoute('blogPosts');\naController.replaceRoute('blogPosts.recentEntries');\n```\n\nOptionally supply a model for the route in question. The model\nwill be serialized into the URL using the `serialize` hook of\nthe route:\n\n```javascript\naController.replaceRoute('blogPost', aPost);\n```\n\nIf a literal is passed (such as a number or a string), it will\nbe treated as an identifier instead. In this case, the `model`\nhook of the route will be triggered:\n\n```javascript\naController.replaceRoute('blogPost', 1);\n```\n\nMultiple models will be applied last to first recursively up the\nroute tree.\n\n```app/router.js\nRouter.map(function() {\n this.route('blogPost', { path: ':blogPostId' }, function() {\n this.route('blogComment', { path: ':blogCommentId', resetNamespace: true });\n });\n});\n```\n\n```\naController.replaceRoute('blogComment', aPost, aComment);\naController.replaceRoute('blogComment', 1, 13);\n```\n\nIt is also possible to pass a URL (a string that starts with a\n`/`).\n\n```javascript\naController.replaceRoute('/');\naController.replaceRoute('/blog/post/1/comment/13');\n```",
|
|
7973
|
+
"itemtype": "method",
|
|
7974
|
+
"name": "replaceRoute",
|
|
7975
|
+
"deprecated": true,
|
|
7976
|
+
"deprecationMessage": "Use replaceWith from the Router service instead.",
|
|
7949
7977
|
"params": [
|
|
7950
7978
|
{
|
|
7951
7979
|
"name": "name",
|
|
7952
7980
|
"description": "the name of the route or a URL",
|
|
7953
|
-
"type": "String"
|
|
7981
|
+
"type": "String",
|
|
7982
|
+
"optional": true
|
|
7954
7983
|
},
|
|
7955
7984
|
{
|
|
7956
7985
|
"name": "models",
|
|
7957
7986
|
"description": "the model(s) or identifier(s) to be used\nwhile transitioning to the route.",
|
|
7958
7987
|
"type": "...Object"
|
|
7988
|
+
},
|
|
7989
|
+
{
|
|
7990
|
+
"name": "options",
|
|
7991
|
+
"description": "optional hash with a queryParams property\ncontaining a mapping of query parameters",
|
|
7992
|
+
"type": "Object",
|
|
7993
|
+
"optional": true
|
|
7959
7994
|
}
|
|
7960
7995
|
],
|
|
7961
|
-
"itemtype": "method",
|
|
7962
|
-
"name": "replaceRoute",
|
|
7963
7996
|
"return": {
|
|
7964
7997
|
"description": "the transition object associated with this\n attempted transition",
|
|
7965
7998
|
"type": "Transition"
|
|
7966
7999
|
},
|
|
7967
|
-
"deprecated": true,
|
|
7968
|
-
"deprecationMessage": "Use replaceWith from the Router service instead.",
|
|
7969
8000
|
"access": "public",
|
|
7970
8001
|
"tagname": "",
|
|
7971
8002
|
"class": "Ember.ControllerMixin",
|
|
@@ -8083,7 +8114,7 @@
|
|
|
8083
8114
|
},
|
|
8084
8115
|
{
|
|
8085
8116
|
"file": "packages/@ember/-internals/routing/lib/location/auto_location.ts",
|
|
8086
|
-
"line":
|
|
8117
|
+
"line": 300,
|
|
8087
8118
|
"access": "private",
|
|
8088
8119
|
"tagname": "Returns the current path as it should appear for HistoryLocation supported\nbrowsers. This may very well differ from the real current path (e.g. if it\nstarts off as a hashed URL)",
|
|
8089
8120
|
"class": "AutoLocation",
|
|
@@ -8091,7 +8122,7 @@
|
|
|
8091
8122
|
},
|
|
8092
8123
|
{
|
|
8093
8124
|
"file": "packages/@ember/-internals/routing/lib/location/auto_location.ts",
|
|
8094
|
-
"line":
|
|
8125
|
+
"line": 346,
|
|
8095
8126
|
"access": "private",
|
|
8096
8127
|
"tagname": "Returns the current path as it should appear for HashLocation supported\nbrowsers. This may very well differ from the real current path.",
|
|
8097
8128
|
"itemtype": "method",
|
|
@@ -8513,8 +8544,8 @@
|
|
|
8513
8544
|
},
|
|
8514
8545
|
{
|
|
8515
8546
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8516
|
-
"line":
|
|
8517
|
-
"description": "Transition the application into another route. The route may\nbe either a single route or route path:\n\
|
|
8547
|
+
"line": 77,
|
|
8548
|
+
"description": "Transition the application into another route. The route may\nbe either a single route or route path:\n\nCalling `transitionTo` from the Router service will cause default query parameter values to be included in the URL.\nThis behavior is different from calling `transitionTo` on a route or `transitionToRoute` on a controller.\nSee the [Router Service RFC](https://github.com/emberjs/rfcs/blob/master/text/0095-router-service.md#query-parameter-semantics) for more info.\n\nIn the following example we use the Router service to navigate to a route with a\nspecific model from a Component in the first action, and in the second we trigger\na query-params only transition.\n\n```app/components/example.js\nimport Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\n\nexport default class extends Component {\n @service router;\n\n @action\n goToComments(post) {\n this.router.transitionTo('comments', post);\n }\n\n @action\n fetchMoreComments(latestComment) {\n this.router.transitionTo({\n queryParams: { commentsAfter: latestComment }\n });\n }\n}\n```",
|
|
8518
8549
|
"itemtype": "method",
|
|
8519
8550
|
"name": "transitionTo",
|
|
8520
8551
|
"params": [
|
|
@@ -8548,8 +8579,8 @@
|
|
|
8548
8579
|
},
|
|
8549
8580
|
{
|
|
8550
8581
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8551
|
-
"line":
|
|
8552
|
-
"description": "Similar to `transitionTo`, but instead of adding the destination to the browser's URL history,\nit replaces the entry for the current route.\nWhen the user clicks the \"back\" button in the browser, there will be fewer steps.\nThis is most commonly used to manage redirects in a way that does not cause confusing additions\nto the user's browsing history.\n\
|
|
8582
|
+
"line": 137,
|
|
8583
|
+
"description": "Similar to `transitionTo`, but instead of adding the destination to the browser's URL history,\nit replaces the entry for the current route.\nWhen the user clicks the \"back\" button in the browser, there will be fewer steps.\nThis is most commonly used to manage redirects in a way that does not cause confusing additions\nto the user's browsing history.\n\nCalling `replaceWith` from the Router service will cause default query parameter values to be included in the URL.\nThis behavior is different from calling `replaceWith` on a route.\nSee the [Router Service RFC](https://github.com/emberjs/rfcs/blob/master/text/0095-router-service.md#query-parameter-semantics) for more info.\n\nUsage example:\n\n```app/routes/application.js\nimport Route from '@ember/routing/route';\n\nexport default class extends Route {\n beforeModel() {\n if (!authorized()){\n this.replaceWith('unauthorized');\n }\n }\n});\n```",
|
|
8553
8584
|
"itemtype": "method",
|
|
8554
8585
|
"name": "replaceWith",
|
|
8555
8586
|
"params": [
|
|
@@ -8581,7 +8612,7 @@
|
|
|
8581
8612
|
},
|
|
8582
8613
|
{
|
|
8583
8614
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8584
|
-
"line":
|
|
8615
|
+
"line": 176,
|
|
8585
8616
|
"description": "Generate a URL based on the supplied route name and optionally a model. The\nURL is returned as a string that can be used for any purpose.\n\nIn this example, the URL for the `author.books` route for a given author\nis copied to the clipboard.\n\n```app/templates/application.hbs\n<CopyLink @author={{hash id=\"tomster\" name=\"Tomster\"}} />\n```\n\n```app/components/copy-link.js\nimport Component from '@glimmer/component';\nimport { service } from '@ember/service';\nimport { action } from '@ember/object';\n\nexport default class CopyLinkComponent extends Component {\n @service router;\n @service clipboard;\n\n @action\n copyBooksURL() {\n if (this.author) {\n const url = this.router.urlFor('author.books', this.args.author);\n this.clipboard.set(url);\n // Clipboard now has /author/tomster/books\n }\n }\n}\n```\n\nJust like with `transitionTo` and `replaceWith`, `urlFor` can also handle\nquery parameters.\n\n```app/templates/application.hbs\n<CopyLink @author={{hash id=\"tomster\" name=\"Tomster\"}} />\n```\n\n```app/components/copy-link.js\nimport Component from '@glimmer/component';\nimport { service } from '@ember/service';\nimport { action } from '@ember/object';\n\nexport default class CopyLinkComponent extends Component {\n @service router;\n @service clipboard;\n\n @action\n copyOnlyEmberBooksURL() {\n if (this.author) {\n const url = this.router.urlFor('author.books', this.author, {\n queryParams: { filter: 'emberjs' }\n });\n this.clipboard.set(url);\n // Clipboard now has /author/tomster/books?filter=emberjs\n }\n }\n}\n```",
|
|
8586
8617
|
"itemtype": "method",
|
|
8587
8618
|
"name": "urlFor",
|
|
@@ -8593,7 +8624,7 @@
|
|
|
8593
8624
|
},
|
|
8594
8625
|
{
|
|
8595
8626
|
"name": "models",
|
|
8596
|
-
"description": "the model(s)
|
|
8627
|
+
"description": "the model(s) for the route.",
|
|
8597
8628
|
"type": "...Object"
|
|
8598
8629
|
},
|
|
8599
8630
|
{
|
|
@@ -8614,7 +8645,7 @@
|
|
|
8614
8645
|
},
|
|
8615
8646
|
{
|
|
8616
8647
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8617
|
-
"line":
|
|
8648
|
+
"line": 249,
|
|
8618
8649
|
"description": "Returns `true` if `routeName/models/queryParams` is the active route, where `models` and `queryParams` are optional.\nSee [model](api/ember/release/classes/Route/methods/model?anchor=model) and\n[queryParams](/api/ember/3.7/classes/Route/properties/queryParams?anchor=queryParams) for more information about these arguments.\n\nIn the following example, `isActive` will return `true` if the current route is `/posts`.\n\n```app/components/posts.js\nimport Component from '@glimmer/component';\nimport { service } from '@ember/service';\n\nexport default class extends Component {\n @service router;\n\n displayComments() {\n return this.router.isActive('posts');\n }\n});\n```\n\nThe next example includes a dynamic segment, and will return `true` if the current route is `/posts/1`,\nassuming the post has an id of 1:\n\n```app/components/posts.js\nimport Component from '@glimmer/component';\nimport { service } from '@ember/service';\n\nexport default class extends Component {\n @service router;\n\n displayComments(post) {\n return this.router.isActive('posts', post.id);\n }\n});\n```\n\nWhere `post.id` is the id of a specific post, which is represented in the route as /posts/[post.id].\nIf `post.id` is equal to 1, then isActive will return true if the current route is /posts/1, and false if the route is anything else.",
|
|
8619
8650
|
"itemtype": "method",
|
|
8620
8651
|
"name": "isActive",
|
|
@@ -8647,7 +8678,7 @@
|
|
|
8647
8678
|
},
|
|
8648
8679
|
{
|
|
8649
8680
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8650
|
-
"line":
|
|
8681
|
+
"line": 343,
|
|
8651
8682
|
"description": "Takes a string URL and returns a `RouteInfo` for the leafmost route represented\nby the URL. Returns `null` if the URL is not recognized. This method expects to\nreceive the actual URL as seen by the browser including the app's `rootURL`.\n\nSee [RouteInfo](/ember/release/classes/RouteInfo) for more info.\n\nIn the following example `recognize` is used to verify if a path belongs to our\napplication before transitioning to it.\n\n```\nimport Component from '@ember/component';\nimport { service } from '@ember/service';\n\nexport default class extends Component {\n @service router;\n path = '/';\n\n click() {\n if (this.router.recognize(this.path)) {\n this.router.transitionTo(this.path);\n }\n }\n}\n```",
|
|
8652
8683
|
"itemtype": "method",
|
|
8653
8684
|
"name": "recognize",
|
|
@@ -8658,6 +8689,10 @@
|
|
|
8658
8689
|
"type": "String"
|
|
8659
8690
|
}
|
|
8660
8691
|
],
|
|
8692
|
+
"return": {
|
|
8693
|
+
"description": "",
|
|
8694
|
+
"type": "RouteInfo | null"
|
|
8695
|
+
},
|
|
8661
8696
|
"access": "public",
|
|
8662
8697
|
"tagname": "",
|
|
8663
8698
|
"class": "RouterService",
|
|
@@ -8665,7 +8700,7 @@
|
|
|
8665
8700
|
},
|
|
8666
8701
|
{
|
|
8667
8702
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8668
|
-
"line":
|
|
8703
|
+
"line": 384,
|
|
8669
8704
|
"description": "Takes a string URL and returns a promise that resolves to a\n`RouteInfoWithAttributes` for the leafmost route represented by the URL.\nThe promise rejects if the URL is not recognized or an unhandled exception\nis encountered. This method expects to receive the actual URL as seen by\nthe browser including the app's `rootURL`.",
|
|
8670
8705
|
"itemtype": "method",
|
|
8671
8706
|
"name": "recognizeAndLoad",
|
|
@@ -8676,6 +8711,10 @@
|
|
|
8676
8711
|
"type": "String"
|
|
8677
8712
|
}
|
|
8678
8713
|
],
|
|
8714
|
+
"return": {
|
|
8715
|
+
"description": "",
|
|
8716
|
+
"type": "RouteInfo"
|
|
8717
|
+
},
|
|
8679
8718
|
"access": "public",
|
|
8680
8719
|
"tagname": "",
|
|
8681
8720
|
"class": "RouterService",
|
|
@@ -8683,7 +8722,7 @@
|
|
|
8683
8722
|
},
|
|
8684
8723
|
{
|
|
8685
8724
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8686
|
-
"line":
|
|
8725
|
+
"line": 406,
|
|
8687
8726
|
"description": "The `routeWillChange` event is fired at the beginning of any\nattempted transition with a `Transition` object as the sole\nargument. This action can be used for aborting, redirecting,\nor decorating the transition from the currently active routes.\n\nA good example is preventing navigation when a form is\nhalf-filled out:\n\n```app/routes/contact-form.js\nimport Route from '@ember/routing';\nimport { service } from '@ember/service';\n\nexport default class extends Route {\n @service router;\n\n constructor() {\n super(...arguments);\n\n this.router.on('routeWillChange', (transition) => {\n if (!transition.to.find(route => route.name === this.routeName)) {\n alert(\"Please save or cancel your changes.\");\n transition.abort();\n }\n })\n }\n}\n```\n\nThe `routeWillChange` event fires whenever a new route is chosen as the desired target of a transition. This includes `transitionTo`, `replaceWith`, all redirection for any reason including error handling, and abort. Aborting implies changing the desired target back to where you already were. Once a transition has completed, `routeDidChange` fires.",
|
|
8688
8727
|
"itemtype": "event",
|
|
8689
8728
|
"name": "routeWillChange",
|
|
@@ -8701,7 +8740,7 @@
|
|
|
8701
8740
|
},
|
|
8702
8741
|
{
|
|
8703
8742
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8704
|
-
"line":
|
|
8743
|
+
"line": 442,
|
|
8705
8744
|
"description": "The `routeDidChange` event only fires once a transition has settled.\nThis includes aborts and error substates. Like the `routeWillChange` event\nit receives a Transition as the sole argument.\n\nA good example is sending some analytics when the route has transitioned:\n\n```app/routes/contact-form.js\nimport Route from '@ember/routing';\nimport { service } from '@ember/service';\n\nexport default class extends Route {\n @service router;\n\n constructor() {\n super(...arguments);\n\n this.router.on('routeDidChange', (transition) => {\n ga.send('pageView', {\n current: transition.to.name,\n from: transition.from.name\n });\n })\n }\n}\n```\n\n`routeDidChange` will be called after any `Route`'s\n[didTransition](/ember/release/classes/Route/events/didTransition?anchor=didTransition)\naction has been fired.\nThe updates of properties\n[currentURL](/ember/release/classes/RouterService/properties/currentURL?anchor=currentURL),\n[currentRouteName](/ember/release/classes/RouterService/properties/currentURL?anchor=currentRouteName)\nand\n[currentRoute](/ember/release/classes/RouterService/properties/currentURL?anchor=currentRoute)\nare completed at the time `routeDidChange` is called.",
|
|
8706
8745
|
"itemtype": "event",
|
|
8707
8746
|
"name": "routeDidChange",
|
|
@@ -8719,7 +8758,7 @@
|
|
|
8719
8758
|
},
|
|
8720
8759
|
{
|
|
8721
8760
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8722
|
-
"line":
|
|
8761
|
+
"line": 485,
|
|
8723
8762
|
"description": "Refreshes all currently active routes, doing a full transition.\nIf a route name is provided and refers to a currently active route,\nit will refresh only that route and its descendents.\nReturns a promise that will be resolved once the refresh is complete.\nAll resetController, beforeModel, model, afterModel, redirect, and setupController\nhooks will be called again. You will get new data from the model hook.",
|
|
8724
8763
|
"itemtype": "method",
|
|
8725
8764
|
"name": "refresh",
|
|
@@ -8744,11 +8783,11 @@
|
|
|
8744
8783
|
},
|
|
8745
8784
|
{
|
|
8746
8785
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8747
|
-
"line":
|
|
8748
|
-
"description": "Name of the current route.\n\
|
|
8786
|
+
"line": 522,
|
|
8787
|
+
"description": "Name of the current route.\n\n This property represents the logical name of the route,\n which is comma separated.\n For the following router:\n\n ```app/router.js\n Router.map(function() {\n this.route('about');\n this.route('blog', function () {\n this.route('post', { path: ':post_id' });\n });\n });\n ```\n\n It will return:\n\n * `index` when you visit `/`\n * `about` when you visit `/about`\n * `blog.index` when you visit `/blog`\n * `blog.post` when you visit `/blog/some-post-id`",
|
|
8749
8788
|
"itemtype": "property",
|
|
8750
8789
|
"name": "currentRouteName",
|
|
8751
|
-
"type": "String",
|
|
8790
|
+
"type": "{String | null}",
|
|
8752
8791
|
"access": "public",
|
|
8753
8792
|
"tagname": "",
|
|
8754
8793
|
"class": "RouterService",
|
|
@@ -8756,8 +8795,8 @@
|
|
|
8756
8795
|
},
|
|
8757
8796
|
{
|
|
8758
8797
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8759
|
-
"line":
|
|
8760
|
-
"description": "Current URL for the application.\n\n
|
|
8798
|
+
"line": 552,
|
|
8799
|
+
"description": "Current URL for the application.\n\n This property represents the URL path for this route.\n For the following router:\n\n ```app/router.js\n Router.map(function() {\n this.route('about');\n this.route('blog', function () {\n this.route('post', { path: ':post_id' });\n });\n });\n ```\n\n It will return:\n\n * `/` when you visit `/`\n * `/about` when you visit `/about`\n * `/blog` when you visit `/blog`\n * `/blog/some-post-id` when you visit `/blog/some-post-id`",
|
|
8761
8800
|
"itemtype": "property",
|
|
8762
8801
|
"name": "currentURL",
|
|
8763
8802
|
"type": "String",
|
|
@@ -8768,7 +8807,7 @@
|
|
|
8768
8807
|
},
|
|
8769
8808
|
{
|
|
8770
8809
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8771
|
-
"line":
|
|
8810
|
+
"line": 581,
|
|
8772
8811
|
"description": "The `location` property returns what implementation of the `location` API\nyour application is using, which determines what type of URL is being used.\n\nSee [Location](/ember/release/classes/Location) for more information.\n\nTo force a particular `location` API implementation to be used in your\napplication you can set a location type on your `config/environment`.\nFor example, to set the `history` type:\n\n```config/environment.js\n'use strict';\n\nmodule.exports = function(environment) {\n let ENV = {\n modulePrefix: 'router-service',\n environment,\n rootURL: '/',\n locationType: 'history',\n ...\n }\n}\n```\n\nThe following location types are available by default:\n`auto`, `hash`, `history`, `none`.\n\nSee [HashLocation](/ember/release/classes/HashLocation).\nSee [HistoryLocation](/ember/release/classes/HistoryLocation).\nSee [NoneLocation](/ember/release/classes/NoneLocation).\nSee [AutoLocation](/ember/release/classes/AutoLocation).",
|
|
8773
8812
|
"itemtype": "property",
|
|
8774
8813
|
"name": "location",
|
|
@@ -8795,7 +8834,7 @@
|
|
|
8795
8834
|
},
|
|
8796
8835
|
{
|
|
8797
8836
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8798
|
-
"line":
|
|
8837
|
+
"line": 651,
|
|
8799
8838
|
"description": "The `currentRoute` property contains metadata about the current leaf route.\nIt returns a `RouteInfo` object that has information like the route name,\nparams, query params and more.\n\nSee [RouteInfo](/ember/release/classes/RouteInfo) for more info.\n\nThis property is guaranteed to change whenever a route transition\nhappens (even when that transition only changes parameters\nand doesn't change the active route).\n\nUsage example:\n```app/components/header.js\n import Component from '@glimmer/component';\n import { service } from '@ember/service';\n import { notEmpty } from '@ember/object/computed';\n\n export default class extends Component {\n @service router;\n\n @notEmpty('router.currentRoute.child') isChildRoute;\n });\n```",
|
|
8800
8839
|
"itemtype": "property",
|
|
8801
8840
|
"name": "currentRoute",
|
|
@@ -8841,7 +8880,7 @@
|
|
|
8841
8880
|
},
|
|
8842
8881
|
{
|
|
8843
8882
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
8844
|
-
"line":
|
|
8883
|
+
"line": 16,
|
|
8845
8884
|
"description": "The dot-separated, fully-qualified name of the\nroute, like \"people.index\".",
|
|
8846
8885
|
"itemtype": "property",
|
|
8847
8886
|
"name": "name",
|
|
@@ -8853,7 +8892,7 @@
|
|
|
8853
8892
|
},
|
|
8854
8893
|
{
|
|
8855
8894
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
8856
|
-
"line":
|
|
8895
|
+
"line": 23,
|
|
8857
8896
|
"description": "The final segment of the fully-qualified name of\nthe route, like \"index\"",
|
|
8858
8897
|
"itemtype": "property",
|
|
8859
8898
|
"name": "localName",
|
|
@@ -8865,7 +8904,7 @@
|
|
|
8865
8904
|
},
|
|
8866
8905
|
{
|
|
8867
8906
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
8868
|
-
"line":
|
|
8907
|
+
"line": 30,
|
|
8869
8908
|
"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).",
|
|
8870
8909
|
"itemtype": "property",
|
|
8871
8910
|
"name": "params",
|
|
@@ -8877,7 +8916,7 @@
|
|
|
8877
8916
|
},
|
|
8878
8917
|
{
|
|
8879
8918
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
8880
|
-
"line":
|
|
8919
|
+
"line": 40,
|
|
8881
8920
|
"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.",
|
|
8882
8921
|
"itemtype": "property",
|
|
8883
8922
|
"name": "paramNames",
|
|
@@ -8889,7 +8928,7 @@
|
|
|
8889
8928
|
},
|
|
8890
8929
|
{
|
|
8891
8930
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
8892
|
-
"line":
|
|
8931
|
+
"line": 50,
|
|
8893
8932
|
"description": "The values of any queryParams on this route.",
|
|
8894
8933
|
"itemtype": "property",
|
|
8895
8934
|
"name": "queryParams",
|
|
@@ -8901,11 +8940,11 @@
|
|
|
8901
8940
|
},
|
|
8902
8941
|
{
|
|
8903
8942
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
8904
|
-
"line":
|
|
8943
|
+
"line": 56,
|
|
8905
8944
|
"description": "This is the resolved return value from the\nroute's model hook.",
|
|
8906
8945
|
"itemtype": "property",
|
|
8907
8946
|
"name": "attributes",
|
|
8908
|
-
"type": "Object|Array|String",
|
|
8947
|
+
"type": "Object|Array|String|undefined",
|
|
8909
8948
|
"access": "public",
|
|
8910
8949
|
"tagname": "",
|
|
8911
8950
|
"class": "RouteInfoWithAttributes",
|
|
@@ -8913,7 +8952,7 @@
|
|
|
8913
8952
|
},
|
|
8914
8953
|
{
|
|
8915
8954
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
8916
|
-
"line":
|
|
8955
|
+
"line": 63,
|
|
8917
8956
|
"description": "Will contain the result `Route#buildRouteInfoMetadata`\nfor the corresponding Route.",
|
|
8918
8957
|
"itemtype": "property",
|
|
8919
8958
|
"name": "metadata",
|
|
@@ -8925,7 +8964,7 @@
|
|
|
8925
8964
|
},
|
|
8926
8965
|
{
|
|
8927
8966
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
8928
|
-
"line":
|
|
8967
|
+
"line": 70,
|
|
8929
8968
|
"description": "A reference to the parent route's RouteInfo.\nThis can be used to traverse upward to the topmost\n`RouteInfo`.",
|
|
8930
8969
|
"itemtype": "property",
|
|
8931
8970
|
"name": "parent",
|
|
@@ -8937,7 +8976,7 @@
|
|
|
8937
8976
|
},
|
|
8938
8977
|
{
|
|
8939
8978
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
8940
|
-
"line":
|
|
8979
|
+
"line": 78,
|
|
8941
8980
|
"description": "A reference to the child route's RouteInfo.\nThis can be used to traverse downward to the\nleafmost `RouteInfo`.",
|
|
8942
8981
|
"itemtype": "property",
|
|
8943
8982
|
"name": "child",
|
|
@@ -8949,7 +8988,7 @@
|
|
|
8949
8988
|
},
|
|
8950
8989
|
{
|
|
8951
8990
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
8952
|
-
"line":
|
|
8991
|
+
"line": 86,
|
|
8953
8992
|
"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.",
|
|
8954
8993
|
"itemtype": "method",
|
|
8955
8994
|
"name": "find",
|
|
@@ -8977,7 +9016,7 @@
|
|
|
8977
9016
|
},
|
|
8978
9017
|
{
|
|
8979
9018
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
8980
|
-
"line":
|
|
9019
|
+
"line": 131,
|
|
8981
9020
|
"description": "The dot-separated, fully-qualified name of the\nroute, like \"people.index\".",
|
|
8982
9021
|
"itemtype": "property",
|
|
8983
9022
|
"name": "name",
|
|
@@ -8989,7 +9028,7 @@
|
|
|
8989
9028
|
},
|
|
8990
9029
|
{
|
|
8991
9030
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
8992
|
-
"line":
|
|
9031
|
+
"line": 138,
|
|
8993
9032
|
"description": "The final segment of the fully-qualified name of\nthe route, like \"index\"",
|
|
8994
9033
|
"itemtype": "property",
|
|
8995
9034
|
"name": "localName",
|
|
@@ -9001,7 +9040,7 @@
|
|
|
9001
9040
|
},
|
|
9002
9041
|
{
|
|
9003
9042
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
9004
|
-
"line":
|
|
9043
|
+
"line": 145,
|
|
9005
9044
|
"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).",
|
|
9006
9045
|
"itemtype": "property",
|
|
9007
9046
|
"name": "params",
|
|
@@ -9013,7 +9052,7 @@
|
|
|
9013
9052
|
},
|
|
9014
9053
|
{
|
|
9015
9054
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
9016
|
-
"line":
|
|
9055
|
+
"line": 155,
|
|
9017
9056
|
"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.",
|
|
9018
9057
|
"itemtype": "property",
|
|
9019
9058
|
"name": "paramNames",
|
|
@@ -9025,7 +9064,7 @@
|
|
|
9025
9064
|
},
|
|
9026
9065
|
{
|
|
9027
9066
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
9028
|
-
"line":
|
|
9067
|
+
"line": 165,
|
|
9029
9068
|
"description": "The values of any queryParams on this route.",
|
|
9030
9069
|
"itemtype": "property",
|
|
9031
9070
|
"name": "queryParams",
|
|
@@ -9037,7 +9076,7 @@
|
|
|
9037
9076
|
},
|
|
9038
9077
|
{
|
|
9039
9078
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
9040
|
-
"line":
|
|
9079
|
+
"line": 171,
|
|
9041
9080
|
"description": "Will contain the result `Route#buildRouteInfoMetadata`\nfor the corresponding Route.",
|
|
9042
9081
|
"itemtype": "property",
|
|
9043
9082
|
"name": "metadata",
|
|
@@ -9049,7 +9088,7 @@
|
|
|
9049
9088
|
},
|
|
9050
9089
|
{
|
|
9051
9090
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
9052
|
-
"line":
|
|
9091
|
+
"line": 178,
|
|
9053
9092
|
"description": "A reference to the parent route's `RouteInfo`.\nThis can be used to traverse upward to the topmost\n`RouteInfo`.",
|
|
9054
9093
|
"itemtype": "property",
|
|
9055
9094
|
"name": "parent",
|
|
@@ -9061,7 +9100,7 @@
|
|
|
9061
9100
|
},
|
|
9062
9101
|
{
|
|
9063
9102
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
9064
|
-
"line":
|
|
9103
|
+
"line": 186,
|
|
9065
9104
|
"description": "A reference to the child route's `RouteInfo`.\nThis can be used to traverse downward to the\nleafmost `RouteInfo`.",
|
|
9066
9105
|
"itemtype": "property",
|
|
9067
9106
|
"name": "child",
|
|
@@ -9073,7 +9112,7 @@
|
|
|
9073
9112
|
},
|
|
9074
9113
|
{
|
|
9075
9114
|
"file": "packages/@ember/-internals/routing/lib/system/route-info.ts",
|
|
9076
|
-
"line":
|
|
9115
|
+
"line": 194,
|
|
9077
9116
|
"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.",
|
|
9078
9117
|
"itemtype": "method",
|
|
9079
9118
|
"name": "find",
|
|
@@ -9101,7 +9140,114 @@
|
|
|
9101
9140
|
},
|
|
9102
9141
|
{
|
|
9103
9142
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9104
|
-
"line":
|
|
9143
|
+
"line": 91,
|
|
9144
|
+
"description": "The `willTransition` action is fired at the beginning of any\nattempted transition with a `Transition` object as the sole\nargument. This action can be used for aborting, redirecting,\nor decorating the transition from the currently active routes.\n\nA good example is preventing navigation when a form is\nhalf-filled out:\n\n```app/routes/contact-form.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class ContactFormRoute extends Route {\n @action\n willTransition(transition) {\n if (this.controller.get('userHasEnteredData')) {\n this.controller.displayNavigationConfirm();\n transition.abort();\n }\n }\n}\n```\n\nYou can also redirect elsewhere by calling\n`this.transitionTo('elsewhere')` from within `willTransition`.\nNote that `willTransition` will not be fired for the\nredirecting `transitionTo`, since `willTransition` doesn't\nfire when there is already a transition underway. If you want\nsubsequent `willTransition` actions to fire for the redirecting\ntransition, you must first explicitly call\n`transition.abort()`.\n\nTo allow the `willTransition` event to continue bubbling to the parent\nroute, use `return true;`. When the `willTransition` method has a\nreturn value of `true` then the parent route's `willTransition` method\nwill be fired, enabling \"bubbling\" behavior for the event.",
|
|
9145
|
+
"itemtype": "event",
|
|
9146
|
+
"name": "willTransition",
|
|
9147
|
+
"params": [
|
|
9148
|
+
{
|
|
9149
|
+
"name": "transition",
|
|
9150
|
+
"description": "",
|
|
9151
|
+
"type": "Transition"
|
|
9152
|
+
}
|
|
9153
|
+
],
|
|
9154
|
+
"since": "1.0.0",
|
|
9155
|
+
"access": "public",
|
|
9156
|
+
"tagname": "",
|
|
9157
|
+
"class": "Route",
|
|
9158
|
+
"module": "@ember/routing"
|
|
9159
|
+
},
|
|
9160
|
+
{
|
|
9161
|
+
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9162
|
+
"line": 136,
|
|
9163
|
+
"description": "The `didTransition` action is fired after a transition has\nsuccessfully been completed. This occurs after the normal model\nhooks (`beforeModel`, `model`, `afterModel`, `setupController`)\nhave resolved. The `didTransition` action has no arguments,\nhowever, it can be useful for tracking page views or resetting\nstate on the controller.\n\n```app/routes/login.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class LoginRoute extends Route {\n @action\n didTransition() {\n this.controller.get('errors.base').clear();\n return true; // Bubble the didTransition event\n }\n}\n```",
|
|
9164
|
+
"itemtype": "event",
|
|
9165
|
+
"name": "didTransition",
|
|
9166
|
+
"since": "1.2.0",
|
|
9167
|
+
"access": "public",
|
|
9168
|
+
"tagname": "",
|
|
9169
|
+
"class": "Route",
|
|
9170
|
+
"module": "@ember/routing"
|
|
9171
|
+
},
|
|
9172
|
+
{
|
|
9173
|
+
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9174
|
+
"line": 163,
|
|
9175
|
+
"description": "The `loading` action is fired on the route when a route's `model`\nhook returns a promise that is not already resolved. The current\n`Transition` object is the first parameter and the route that\ntriggered the loading event is the second parameter.\n\n```app/routes/application.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class ApplicationRoute extends Route {\n @action\n loading(transition, route) {\n let controller = this.controllerFor('foo');\n\n // The controller may not be instantiated when initially loading\n if (controller) {\n controller.currentlyLoading = true;\n\n transition.finally(function() {\n controller.currentlyLoading = false;\n });\n }\n }\n}\n```",
|
|
9176
|
+
"itemtype": "event",
|
|
9177
|
+
"name": "loading",
|
|
9178
|
+
"params": [
|
|
9179
|
+
{
|
|
9180
|
+
"name": "transition",
|
|
9181
|
+
"description": "",
|
|
9182
|
+
"type": "Transition"
|
|
9183
|
+
},
|
|
9184
|
+
{
|
|
9185
|
+
"name": "route",
|
|
9186
|
+
"description": "The route that triggered the loading event",
|
|
9187
|
+
"type": "Route"
|
|
9188
|
+
}
|
|
9189
|
+
],
|
|
9190
|
+
"since": "1.2.0",
|
|
9191
|
+
"access": "public",
|
|
9192
|
+
"tagname": "",
|
|
9193
|
+
"class": "Route",
|
|
9194
|
+
"module": "@ember/routing"
|
|
9195
|
+
},
|
|
9196
|
+
{
|
|
9197
|
+
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9198
|
+
"line": 198,
|
|
9199
|
+
"description": "When attempting to transition into a route, any of the hooks\nmay return a promise that rejects, at which point an `error`\naction will be fired on the partially-entered routes, allowing\nfor per-route error handling logic, or shared error handling\nlogic defined on a parent route.\n\nHere is an example of an error handler that will be invoked\nfor rejected promises from the various hooks on the route,\nas well as any unhandled errors from child routes:\n\n```app/routes/admin.js\nimport { reject } from 'rsvp';\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class AdminRoute extends Route {\n beforeModel() {\n return reject('bad things!');\n }\n\n @action\n error(error, transition) {\n // Assuming we got here due to the error in `beforeModel`,\n // we can expect that error === \"bad things!\",\n // but a promise model rejecting would also\n // call this hook, as would any errors encountered\n // in `afterModel`.\n\n // The `error` hook is also provided the failed\n // `transition`, which can be stored and later\n // `.retry()`d if desired.\n\n this.transitionTo('login');\n }\n}\n```\n\n`error` actions that bubble up all the way to `ApplicationRoute`\nwill fire a default error handler that logs the error. You can\nspecify your own global default error handler by overriding the\n`error` handler on `ApplicationRoute`:\n\n```app/routes/application.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class ApplicationRoute extends Route {\n @action\n error(error, transition) {\n this.controllerFor('banner').displayError(error.message);\n }\n}\n```",
|
|
9200
|
+
"itemtype": "event",
|
|
9201
|
+
"name": "error",
|
|
9202
|
+
"params": [
|
|
9203
|
+
{
|
|
9204
|
+
"name": "error",
|
|
9205
|
+
"description": "",
|
|
9206
|
+
"type": "Error"
|
|
9207
|
+
},
|
|
9208
|
+
{
|
|
9209
|
+
"name": "transition",
|
|
9210
|
+
"description": "",
|
|
9211
|
+
"type": "Transition"
|
|
9212
|
+
}
|
|
9213
|
+
],
|
|
9214
|
+
"since": "1.0.0",
|
|
9215
|
+
"access": "public",
|
|
9216
|
+
"tagname": "",
|
|
9217
|
+
"class": "Route",
|
|
9218
|
+
"module": "@ember/routing"
|
|
9219
|
+
},
|
|
9220
|
+
{
|
|
9221
|
+
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9222
|
+
"line": 304,
|
|
9223
|
+
"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.",
|
|
9224
|
+
"itemtype": "method",
|
|
9225
|
+
"name": "serialize",
|
|
9226
|
+
"params": [
|
|
9227
|
+
{
|
|
9228
|
+
"name": "model",
|
|
9229
|
+
"description": "the routes model",
|
|
9230
|
+
"type": "Object"
|
|
9231
|
+
},
|
|
9232
|
+
{
|
|
9233
|
+
"name": "params",
|
|
9234
|
+
"description": "an Array of parameter names for the current\n route (in the example, `['post_id']`.",
|
|
9235
|
+
"type": "Array"
|
|
9236
|
+
}
|
|
9237
|
+
],
|
|
9238
|
+
"return": {
|
|
9239
|
+
"description": "the serialized parameters",
|
|
9240
|
+
"type": "Object"
|
|
9241
|
+
},
|
|
9242
|
+
"since": "1.0.0",
|
|
9243
|
+
"access": "public",
|
|
9244
|
+
"tagname": "",
|
|
9245
|
+
"class": "Route",
|
|
9246
|
+
"module": "@ember/routing"
|
|
9247
|
+
},
|
|
9248
|
+
{
|
|
9249
|
+
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9250
|
+
"line": 372,
|
|
9105
9251
|
"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```",
|
|
9106
9252
|
"itemtype": "property",
|
|
9107
9253
|
"name": "queryParams",
|
|
@@ -9114,7 +9260,7 @@
|
|
|
9114
9260
|
},
|
|
9115
9261
|
{
|
|
9116
9262
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9117
|
-
"line":
|
|
9263
|
+
"line": 425,
|
|
9118
9264
|
"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```",
|
|
9119
9265
|
"itemtype": "property",
|
|
9120
9266
|
"name": "templateName",
|
|
@@ -9128,7 +9274,7 @@
|
|
|
9128
9274
|
},
|
|
9129
9275
|
{
|
|
9130
9276
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9131
|
-
"line":
|
|
9277
|
+
"line": 458,
|
|
9132
9278
|
"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.",
|
|
9133
9279
|
"itemtype": "property",
|
|
9134
9280
|
"name": "controllerName",
|
|
@@ -9142,7 +9288,7 @@
|
|
|
9142
9288
|
},
|
|
9143
9289
|
{
|
|
9144
9290
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9145
|
-
"line":
|
|
9291
|
+
"line": 481,
|
|
9146
9292
|
"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```",
|
|
9147
9293
|
"itemtype": "property",
|
|
9148
9294
|
"name": "controller",
|
|
@@ -9155,7 +9301,7 @@
|
|
|
9155
9301
|
},
|
|
9156
9302
|
{
|
|
9157
9303
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9158
|
-
"line":
|
|
9304
|
+
"line": 512,
|
|
9159
9305
|
"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`.",
|
|
9160
9306
|
"itemtype": "property",
|
|
9161
9307
|
"name": "routeName",
|
|
@@ -9168,7 +9314,7 @@
|
|
|
9168
9314
|
},
|
|
9169
9315
|
{
|
|
9170
9316
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9171
|
-
"line":
|
|
9317
|
+
"line": 526,
|
|
9172
9318
|
"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`.",
|
|
9173
9319
|
"itemtype": "property",
|
|
9174
9320
|
"name": "fullRouteName",
|
|
@@ -9181,7 +9327,7 @@
|
|
|
9181
9327
|
},
|
|
9182
9328
|
{
|
|
9183
9329
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9184
|
-
"line":
|
|
9330
|
+
"line": 541,
|
|
9185
9331
|
"description": "Sets the name for this route, including a fully resolved name for routes\ninside engines.",
|
|
9186
9332
|
"access": "private",
|
|
9187
9333
|
"tagname": "",
|
|
@@ -9199,7 +9345,7 @@
|
|
|
9199
9345
|
},
|
|
9200
9346
|
{
|
|
9201
9347
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9202
|
-
"line":
|
|
9348
|
+
"line": 556,
|
|
9203
9349
|
"access": "private",
|
|
9204
9350
|
"tagname": "",
|
|
9205
9351
|
"itemtype": "method",
|
|
@@ -9209,7 +9355,7 @@
|
|
|
9209
9355
|
},
|
|
9210
9356
|
{
|
|
9211
9357
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9212
|
-
"line":
|
|
9358
|
+
"line": 587,
|
|
9213
9359
|
"access": "private",
|
|
9214
9360
|
"tagname": "",
|
|
9215
9361
|
"itemtype": "property",
|
|
@@ -9219,7 +9365,7 @@
|
|
|
9219
9365
|
},
|
|
9220
9366
|
{
|
|
9221
9367
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9222
|
-
"line":
|
|
9368
|
+
"line": 596,
|
|
9223
9369
|
"access": "private",
|
|
9224
9370
|
"tagname": "",
|
|
9225
9371
|
"itemtype": "method",
|
|
@@ -9229,7 +9375,7 @@
|
|
|
9229
9375
|
},
|
|
9230
9376
|
{
|
|
9231
9377
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9232
|
-
"line":
|
|
9378
|
+
"line": 604,
|
|
9233
9379
|
"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`",
|
|
9234
9380
|
"itemtype": "method",
|
|
9235
9381
|
"name": "paramsFor",
|
|
@@ -9252,7 +9398,7 @@
|
|
|
9252
9398
|
},
|
|
9253
9399
|
{
|
|
9254
9400
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9255
|
-
"line":
|
|
9401
|
+
"line": 685,
|
|
9256
9402
|
"description": "Serializes the query parameter key",
|
|
9257
9403
|
"itemtype": "method",
|
|
9258
9404
|
"name": "serializeQueryParamKey",
|
|
@@ -9270,7 +9416,7 @@
|
|
|
9270
9416
|
},
|
|
9271
9417
|
{
|
|
9272
9418
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9273
|
-
"line":
|
|
9419
|
+
"line": 696,
|
|
9274
9420
|
"description": "Serializes value of the query parameter based on defaultValueType",
|
|
9275
9421
|
"itemtype": "method",
|
|
9276
9422
|
"name": "serializeQueryParam",
|
|
@@ -9298,7 +9444,7 @@
|
|
|
9298
9444
|
},
|
|
9299
9445
|
{
|
|
9300
9446
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9301
|
-
"line":
|
|
9447
|
+
"line": 712,
|
|
9302
9448
|
"description": "Deserializes value of the query parameter based on defaultValueType",
|
|
9303
9449
|
"itemtype": "method",
|
|
9304
9450
|
"name": "deserializeQueryParam",
|
|
@@ -9326,7 +9472,7 @@
|
|
|
9326
9472
|
},
|
|
9327
9473
|
{
|
|
9328
9474
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9329
|
-
"line":
|
|
9475
|
+
"line": 728,
|
|
9330
9476
|
"access": "private",
|
|
9331
9477
|
"tagname": "",
|
|
9332
9478
|
"itemtype": "property",
|
|
@@ -9336,7 +9482,7 @@
|
|
|
9336
9482
|
},
|
|
9337
9483
|
{
|
|
9338
9484
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9339
|
-
"line":
|
|
9485
|
+
"line": 744,
|
|
9340
9486
|
"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```",
|
|
9341
9487
|
"itemtype": "method",
|
|
9342
9488
|
"name": "resetController",
|
|
@@ -9347,67 +9493,17 @@
|
|
|
9347
9493
|
"type": "Controller"
|
|
9348
9494
|
},
|
|
9349
9495
|
{
|
|
9350
|
-
"name": "isExiting",
|
|
9351
|
-
"description": "",
|
|
9352
|
-
"type": "Boolean"
|
|
9353
|
-
},
|
|
9354
|
-
{
|
|
9355
|
-
"name": "transition",
|
|
9356
|
-
"description": "",
|
|
9357
|
-
"type": "Object"
|
|
9358
|
-
}
|
|
9359
|
-
],
|
|
9360
|
-
"since": "1.7.0",
|
|
9361
|
-
"access": "public",
|
|
9362
|
-
"tagname": "",
|
|
9363
|
-
"class": "Route",
|
|
9364
|
-
"module": "@ember/routing"
|
|
9365
|
-
},
|
|
9366
|
-
{
|
|
9367
|
-
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9368
|
-
"line": 558,
|
|
9369
|
-
"access": "private",
|
|
9370
|
-
"tagname": "",
|
|
9371
|
-
"itemtype": "method",
|
|
9372
|
-
"name": "exit",
|
|
9373
|
-
"class": "Route",
|
|
9374
|
-
"module": "@ember/routing"
|
|
9375
|
-
},
|
|
9376
|
-
{
|
|
9377
|
-
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9378
|
-
"line": 569,
|
|
9379
|
-
"access": "private",
|
|
9380
|
-
"tagname": "",
|
|
9381
|
-
"itemtype": "method",
|
|
9382
|
-
"name": "_internalReset",
|
|
9383
|
-
"since": "3.6.0",
|
|
9384
|
-
"class": "Route",
|
|
9385
|
-
"module": "@ember/routing"
|
|
9386
|
-
},
|
|
9387
|
-
{
|
|
9388
|
-
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9389
|
-
"line": 583,
|
|
9390
|
-
"access": "private",
|
|
9391
|
-
"tagname": "",
|
|
9392
|
-
"itemtype": "method",
|
|
9393
|
-
"name": "enter",
|
|
9394
|
-
"class": "Route",
|
|
9395
|
-
"module": "@ember/routing"
|
|
9396
|
-
},
|
|
9397
|
-
{
|
|
9398
|
-
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9399
|
-
"line": 594,
|
|
9400
|
-
"description": "The `willTransition` action is fired at the beginning of any\nattempted transition with a `Transition` object as the sole\nargument. This action can be used for aborting, redirecting,\nor decorating the transition from the currently active routes.\n\nA good example is preventing navigation when a form is\nhalf-filled out:\n\n```app/routes/contact-form.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class ContactFormRoute extends Route {\n @action\n willTransition(transition) {\n if (this.controller.get('userHasEnteredData')) {\n this.controller.displayNavigationConfirm();\n transition.abort();\n }\n }\n}\n```\n\nYou can also redirect elsewhere by calling\n`this.transitionTo('elsewhere')` from within `willTransition`.\nNote that `willTransition` will not be fired for the\nredirecting `transitionTo`, since `willTransition` doesn't\nfire when there is already a transition underway. If you want\nsubsequent `willTransition` actions to fire for the redirecting\ntransition, you must first explicitly call\n`transition.abort()`.\n\nTo allow the `willTransition` event to continue bubbling to the parent\nroute, use `return true;`. When the `willTransition` method has a\nreturn value of `true` then the parent route's `willTransition` method\nwill be fired, enabling \"bubbling\" behavior for the event.",
|
|
9401
|
-
"itemtype": "event",
|
|
9402
|
-
"name": "willTransition",
|
|
9403
|
-
"params": [
|
|
9404
|
-
{
|
|
9496
|
+
"name": "isExiting",
|
|
9497
|
+
"description": "",
|
|
9498
|
+
"type": "Boolean"
|
|
9499
|
+
},
|
|
9500
|
+
{
|
|
9405
9501
|
"name": "transition",
|
|
9406
9502
|
"description": "",
|
|
9407
|
-
"type": "
|
|
9503
|
+
"type": "Object"
|
|
9408
9504
|
}
|
|
9409
9505
|
],
|
|
9410
|
-
"since": "1.
|
|
9506
|
+
"since": "1.7.0",
|
|
9411
9507
|
"access": "public",
|
|
9412
9508
|
"tagname": "",
|
|
9413
9509
|
"class": "Route",
|
|
@@ -9415,67 +9511,38 @@
|
|
|
9415
9511
|
},
|
|
9416
9512
|
{
|
|
9417
9513
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9418
|
-
"line":
|
|
9419
|
-
"
|
|
9420
|
-
"itemtype": "event",
|
|
9421
|
-
"name": "didTransition",
|
|
9422
|
-
"since": "1.2.0",
|
|
9423
|
-
"access": "public",
|
|
9514
|
+
"line": 771,
|
|
9515
|
+
"access": "private",
|
|
9424
9516
|
"tagname": "",
|
|
9517
|
+
"itemtype": "method",
|
|
9518
|
+
"name": "exit",
|
|
9425
9519
|
"class": "Route",
|
|
9426
9520
|
"module": "@ember/routing"
|
|
9427
9521
|
},
|
|
9428
9522
|
{
|
|
9429
9523
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9430
|
-
"line":
|
|
9431
|
-
"
|
|
9432
|
-
"itemtype": "event",
|
|
9433
|
-
"name": "loading",
|
|
9434
|
-
"params": [
|
|
9435
|
-
{
|
|
9436
|
-
"name": "transition",
|
|
9437
|
-
"description": "",
|
|
9438
|
-
"type": "Transition"
|
|
9439
|
-
},
|
|
9440
|
-
{
|
|
9441
|
-
"name": "route",
|
|
9442
|
-
"description": "The route that triggered the loading event",
|
|
9443
|
-
"type": "Route"
|
|
9444
|
-
}
|
|
9445
|
-
],
|
|
9446
|
-
"since": "1.2.0",
|
|
9447
|
-
"access": "public",
|
|
9524
|
+
"line": 782,
|
|
9525
|
+
"access": "private",
|
|
9448
9526
|
"tagname": "",
|
|
9527
|
+
"itemtype": "method",
|
|
9528
|
+
"name": "_internalReset",
|
|
9529
|
+
"since": "3.6.0",
|
|
9449
9530
|
"class": "Route",
|
|
9450
9531
|
"module": "@ember/routing"
|
|
9451
9532
|
},
|
|
9452
9533
|
{
|
|
9453
9534
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9454
|
-
"line":
|
|
9455
|
-
"
|
|
9456
|
-
"itemtype": "event",
|
|
9457
|
-
"name": "error",
|
|
9458
|
-
"params": [
|
|
9459
|
-
{
|
|
9460
|
-
"name": "error",
|
|
9461
|
-
"description": "",
|
|
9462
|
-
"type": "Error"
|
|
9463
|
-
},
|
|
9464
|
-
{
|
|
9465
|
-
"name": "transition",
|
|
9466
|
-
"description": "",
|
|
9467
|
-
"type": "Transition"
|
|
9468
|
-
}
|
|
9469
|
-
],
|
|
9470
|
-
"since": "1.0.0",
|
|
9471
|
-
"access": "public",
|
|
9535
|
+
"line": 796,
|
|
9536
|
+
"access": "private",
|
|
9472
9537
|
"tagname": "",
|
|
9538
|
+
"itemtype": "method",
|
|
9539
|
+
"name": "enter",
|
|
9473
9540
|
"class": "Route",
|
|
9474
9541
|
"module": "@ember/routing"
|
|
9475
9542
|
},
|
|
9476
9543
|
{
|
|
9477
9544
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9478
|
-
"line":
|
|
9545
|
+
"line": 807,
|
|
9479
9546
|
"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```",
|
|
9480
9547
|
"itemtype": "event",
|
|
9481
9548
|
"name": "activate",
|
|
@@ -9487,7 +9554,7 @@
|
|
|
9487
9554
|
},
|
|
9488
9555
|
{
|
|
9489
9556
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9490
|
-
"line":
|
|
9557
|
+
"line": 827,
|
|
9491
9558
|
"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```",
|
|
9492
9559
|
"itemtype": "event",
|
|
9493
9560
|
"name": "deactivate",
|
|
@@ -9499,7 +9566,7 @@
|
|
|
9499
9566
|
},
|
|
9500
9567
|
{
|
|
9501
9568
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9502
|
-
"line":
|
|
9569
|
+
"line": 847,
|
|
9503
9570
|
"description": "This hook is executed when the router completely exits this route. It is\nnot executed when the model for the route changes.",
|
|
9504
9571
|
"itemtype": "method",
|
|
9505
9572
|
"name": "deactivate",
|
|
@@ -9518,7 +9585,7 @@
|
|
|
9518
9585
|
},
|
|
9519
9586
|
{
|
|
9520
9587
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9521
|
-
"line":
|
|
9588
|
+
"line": 858,
|
|
9522
9589
|
"description": "This hook is executed when the router enters the route. It is not executed\nwhen the model for the route changes.",
|
|
9523
9590
|
"itemtype": "method",
|
|
9524
9591
|
"name": "activate",
|
|
@@ -9537,7 +9604,7 @@
|
|
|
9537
9604
|
},
|
|
9538
9605
|
{
|
|
9539
9606
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9540
|
-
"line":
|
|
9607
|
+
"line": 869,
|
|
9541
9608
|
"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```",
|
|
9542
9609
|
"itemtype": "method",
|
|
9543
9610
|
"name": "transitionTo",
|
|
@@ -9575,7 +9642,7 @@
|
|
|
9575
9642
|
},
|
|
9576
9643
|
{
|
|
9577
9644
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9578
|
-
"line":
|
|
9645
|
+
"line": 1067,
|
|
9579
9646
|
"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.",
|
|
9580
9647
|
"itemtype": "method",
|
|
9581
9648
|
"name": "intermediateTransitionTo",
|
|
@@ -9599,7 +9666,7 @@
|
|
|
9599
9666
|
},
|
|
9600
9667
|
{
|
|
9601
9668
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9602
|
-
"line":
|
|
9669
|
+
"line": 1089,
|
|
9603
9670
|
"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.",
|
|
9604
9671
|
"itemtype": "method",
|
|
9605
9672
|
"name": "refresh",
|
|
@@ -9615,7 +9682,7 @@
|
|
|
9615
9682
|
},
|
|
9616
9683
|
{
|
|
9617
9684
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9618
|
-
"line":
|
|
9685
|
+
"line": 1115,
|
|
9619
9686
|
"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```",
|
|
9620
9687
|
"itemtype": "method",
|
|
9621
9688
|
"name": "replaceWith",
|
|
@@ -9651,7 +9718,7 @@
|
|
|
9651
9718
|
},
|
|
9652
9719
|
{
|
|
9653
9720
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9654
|
-
"line":
|
|
9721
|
+
"line": 1163,
|
|
9655
9722
|
"description": "This hook is the entry point for router.js",
|
|
9656
9723
|
"access": "private",
|
|
9657
9724
|
"tagname": "",
|
|
@@ -9662,7 +9729,7 @@
|
|
|
9662
9729
|
},
|
|
9663
9730
|
{
|
|
9664
9731
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9665
|
-
"line":
|
|
9732
|
+
"line": 1238,
|
|
9666
9733
|
"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.",
|
|
9667
9734
|
"itemtype": "method",
|
|
9668
9735
|
"name": "beforeModel",
|
|
@@ -9685,7 +9752,7 @@
|
|
|
9685
9752
|
},
|
|
9686
9753
|
{
|
|
9687
9754
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9688
|
-
"line":
|
|
9755
|
+
"line": 1273,
|
|
9689
9756
|
"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.",
|
|
9690
9757
|
"itemtype": "method",
|
|
9691
9758
|
"name": "afterModel",
|
|
@@ -9713,7 +9780,7 @@
|
|
|
9713
9780
|
},
|
|
9714
9781
|
{
|
|
9715
9782
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9716
|
-
"line":
|
|
9783
|
+
"line": 1311,
|
|
9717
9784
|
"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.",
|
|
9718
9785
|
"itemtype": "method",
|
|
9719
9786
|
"name": "redirect",
|
|
@@ -9737,7 +9804,7 @@
|
|
|
9737
9804
|
},
|
|
9738
9805
|
{
|
|
9739
9806
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9740
|
-
"line":
|
|
9807
|
+
"line": 1336,
|
|
9741
9808
|
"description": "Called when the context is changed by router.js.",
|
|
9742
9809
|
"access": "private",
|
|
9743
9810
|
"tagname": "",
|
|
@@ -9748,7 +9815,7 @@
|
|
|
9748
9815
|
},
|
|
9749
9816
|
{
|
|
9750
9817
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9751
|
-
"line":
|
|
9818
|
+
"line": 1346,
|
|
9752
9819
|
"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```",
|
|
9753
9820
|
"itemtype": "method",
|
|
9754
9821
|
"name": "model",
|
|
@@ -9776,7 +9843,7 @@
|
|
|
9776
9843
|
},
|
|
9777
9844
|
{
|
|
9778
9845
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9779
|
-
"line":
|
|
9846
|
+
"line": 1461,
|
|
9780
9847
|
"access": "private",
|
|
9781
9848
|
"tagname": "",
|
|
9782
9849
|
"itemtype": "method",
|
|
@@ -9802,7 +9869,7 @@
|
|
|
9802
9869
|
},
|
|
9803
9870
|
{
|
|
9804
9871
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9805
|
-
"line":
|
|
9872
|
+
"line": 1474,
|
|
9806
9873
|
"itemtype": "method",
|
|
9807
9874
|
"name": "findModel",
|
|
9808
9875
|
"params": [
|
|
@@ -9824,7 +9891,7 @@
|
|
|
9824
9891
|
},
|
|
9825
9892
|
{
|
|
9826
9893
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9827
|
-
"line":
|
|
9894
|
+
"line": 1485,
|
|
9828
9895
|
"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.",
|
|
9829
9896
|
"example": [
|
|
9830
9897
|
" 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```"
|
|
@@ -9857,7 +9924,7 @@
|
|
|
9857
9924
|
},
|
|
9858
9925
|
{
|
|
9859
9926
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9860
|
-
"line":
|
|
9927
|
+
"line": 1561,
|
|
9861
9928
|
"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```",
|
|
9862
9929
|
"itemtype": "method",
|
|
9863
9930
|
"name": "controllerFor",
|
|
@@ -9870,7 +9937,7 @@
|
|
|
9870
9937
|
],
|
|
9871
9938
|
"return": {
|
|
9872
9939
|
"description": "",
|
|
9873
|
-
"type": "Controller"
|
|
9940
|
+
"type": "Controller | undefined"
|
|
9874
9941
|
},
|
|
9875
9942
|
"since": "1.0.0",
|
|
9876
9943
|
"access": "public",
|
|
@@ -9880,7 +9947,7 @@
|
|
|
9880
9947
|
},
|
|
9881
9948
|
{
|
|
9882
9949
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9883
|
-
"line":
|
|
9950
|
+
"line": 1610,
|
|
9884
9951
|
"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```",
|
|
9885
9952
|
"itemtype": "method",
|
|
9886
9953
|
"name": "generateController",
|
|
@@ -9898,7 +9965,7 @@
|
|
|
9898
9965
|
},
|
|
9899
9966
|
{
|
|
9900
9967
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9901
|
-
"line":
|
|
9968
|
+
"line": 1638,
|
|
9902
9969
|
"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```",
|
|
9903
9970
|
"itemtype": "method",
|
|
9904
9971
|
"name": "modelFor",
|
|
@@ -9921,7 +9988,7 @@
|
|
|
9921
9988
|
},
|
|
9922
9989
|
{
|
|
9923
9990
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9924
|
-
"line":
|
|
9991
|
+
"line": 1710,
|
|
9925
9992
|
"description": "`this[RENDER]` is used to render a template into a region of another template\n(indicated by an `{{outlet}}`).",
|
|
9926
9993
|
"itemtype": "method",
|
|
9927
9994
|
"name": "this[RENDER]",
|
|
@@ -9971,7 +10038,7 @@
|
|
|
9971
10038
|
},
|
|
9972
10039
|
{
|
|
9973
10040
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9974
|
-
"line":
|
|
10041
|
+
"line": 1737,
|
|
9975
10042
|
"access": "private",
|
|
9976
10043
|
"tagname": "",
|
|
9977
10044
|
"itemtype": "method",
|
|
@@ -9981,7 +10048,7 @@
|
|
|
9981
10048
|
},
|
|
9982
10049
|
{
|
|
9983
10050
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9984
|
-
"line":
|
|
10051
|
+
"line": 1750,
|
|
9985
10052
|
"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```",
|
|
9986
10053
|
"itemtype": "method",
|
|
9987
10054
|
"name": "buildRouteInfoMetadata",
|
|
@@ -9996,7 +10063,7 @@
|
|
|
9996
10063
|
},
|
|
9997
10064
|
{
|
|
9998
10065
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9999
|
-
"line":
|
|
10066
|
+
"line": 1801,
|
|
10000
10067
|
"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)`",
|
|
10001
10068
|
"itemtype": "property",
|
|
10002
10069
|
"name": "store",
|
|
@@ -10008,7 +10075,7 @@
|
|
|
10008
10075
|
},
|
|
10009
10076
|
{
|
|
10010
10077
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
10011
|
-
"line":
|
|
10078
|
+
"line": 1867,
|
|
10012
10079
|
"access": "private",
|
|
10013
10080
|
"tagname": "",
|
|
10014
10081
|
"itemtype": "property",
|
|
@@ -10018,7 +10085,7 @@
|
|
|
10018
10085
|
},
|
|
10019
10086
|
{
|
|
10020
10087
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
10021
|
-
"line":
|
|
10088
|
+
"line": 2002,
|
|
10022
10089
|
"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```",
|
|
10023
10090
|
"itemtype": "method",
|
|
10024
10091
|
"name": "send",
|
|
@@ -10042,35 +10109,7 @@
|
|
|
10042
10109
|
},
|
|
10043
10110
|
{
|
|
10044
10111
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
10045
|
-
"line":
|
|
10046
|
-
"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.",
|
|
10047
|
-
"itemtype": "method",
|
|
10048
|
-
"name": "serialize",
|
|
10049
|
-
"params": [
|
|
10050
|
-
{
|
|
10051
|
-
"name": "model",
|
|
10052
|
-
"description": "the routes model",
|
|
10053
|
-
"type": "Object"
|
|
10054
|
-
},
|
|
10055
|
-
{
|
|
10056
|
-
"name": "params",
|
|
10057
|
-
"description": "an Array of parameter names for the current\n route (in the example, `['post_id']`.",
|
|
10058
|
-
"type": "Array"
|
|
10059
|
-
}
|
|
10060
|
-
],
|
|
10061
|
-
"return": {
|
|
10062
|
-
"description": "the serialized parameters",
|
|
10063
|
-
"type": "Object"
|
|
10064
|
-
},
|
|
10065
|
-
"since": "1.0.0",
|
|
10066
|
-
"access": "public",
|
|
10067
|
-
"tagname": "",
|
|
10068
|
-
"class": "Route",
|
|
10069
|
-
"module": "@ember/routing"
|
|
10070
|
-
},
|
|
10071
|
-
{
|
|
10072
|
-
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
10073
|
-
"line": 2340,
|
|
10112
|
+
"line": 2379,
|
|
10074
10113
|
"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```",
|
|
10075
10114
|
"itemtype": "property",
|
|
10076
10115
|
"name": "controller",
|
|
@@ -10083,7 +10122,7 @@
|
|
|
10083
10122
|
},
|
|
10084
10123
|
{
|
|
10085
10124
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
10086
|
-
"line":
|
|
10125
|
+
"line": 2410,
|
|
10087
10126
|
"description": "This action is called when one or more query params have changed. Bubbles.",
|
|
10088
10127
|
"itemtype": "method",
|
|
10089
10128
|
"name": "queryParamsDidChange",
|
|
@@ -10115,7 +10154,7 @@
|
|
|
10115
10154
|
},
|
|
10116
10155
|
{
|
|
10117
10156
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10118
|
-
"line":
|
|
10157
|
+
"line": 153,
|
|
10119
10158
|
"description": "Represents the URL of the root of the application, often '/'. This prefix is\n assumed on all routes defined on this router.",
|
|
10120
10159
|
"itemtype": "property",
|
|
10121
10160
|
"name": "rootURL",
|
|
@@ -10127,7 +10166,7 @@
|
|
|
10127
10166
|
},
|
|
10128
10167
|
{
|
|
10129
10168
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10130
|
-
"line":
|
|
10169
|
+
"line": 164,
|
|
10131
10170
|
"description": "The `location` property determines the type of URL's that your\n application will use.\n\n The following location types are currently available:\n\n * `history` - use the browser's history API to make the URLs look just like any standard URL\n * `hash` - use `#` to separate the server part of the URL from the Ember part: `/blog/#/posts/new`\n * `none` - do not store the Ember URL in the actual browser URL (mainly used for testing)\n * `auto` - use the best option based on browser capabilities: `history` if possible, then `hash` if possible, otherwise `none`\n\n This value is defaulted to `auto` by the `locationType` setting of `/config/environment.js`",
|
|
10132
10171
|
"itemtype": "property",
|
|
10133
10172
|
"name": "location",
|
|
@@ -10142,7 +10181,7 @@
|
|
|
10142
10181
|
},
|
|
10143
10182
|
{
|
|
10144
10183
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10145
|
-
"line":
|
|
10184
|
+
"line": 222,
|
|
10146
10185
|
"description": "The `Router.map` function allows you to define mappings from URLs to routes\nin your application. These mappings are defined within the\nsupplied callback function using `this.route`.\n\nThe first parameter is the name of the route which is used by default as the\npath name as well.\n\nThe second parameter is the optional options hash. Available options are:\n\n * `path`: allows you to provide your own path as well as mark dynamic\n segments.\n * `resetNamespace`: false by default; when nesting routes, ember will\n combine the route names to form the fully-qualified route name, which is\n used with `{{link-to}}` or manually transitioning to routes. Setting\n `resetNamespace: true` will cause the route not to inherit from its\n parent route's names. This is handy for preventing extremely long route names.\n Keep in mind that the actual URL path behavior is still retained.\n\nThe third parameter is a function, which can be used to nest routes.\nNested routes, by default, will have the parent route tree's route name and\npath prepended to it's own.\n\n```app/router.js\nRouter.map(function(){\n this.route('post', { path: '/post/:post_id' }, function() {\n this.route('edit');\n this.route('comments', { resetNamespace: true }, function() {\n this.route('new');\n });\n });\n});\n```",
|
|
10147
10186
|
"itemtype": "method",
|
|
10148
10187
|
"name": "map",
|
|
@@ -10159,7 +10198,7 @@
|
|
|
10159
10198
|
},
|
|
10160
10199
|
{
|
|
10161
10200
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10162
|
-
"line":
|
|
10201
|
+
"line": 551,
|
|
10163
10202
|
"description": "Initializes the current router instance and sets up the change handling\nevent listeners used by the instances `location` implementation.\n\nA property named `initialURL` will be used to determine the initial URL.\nIf no value is found `/` will be used.",
|
|
10164
10203
|
"itemtype": "method",
|
|
10165
10204
|
"name": "startRouting",
|
|
@@ -10170,15 +10209,50 @@
|
|
|
10170
10209
|
},
|
|
10171
10210
|
{
|
|
10172
10211
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10173
|
-
"line":
|
|
10174
|
-
"description": "Transition the application into another route. The route may\nbe either a single route or route path
|
|
10212
|
+
"line": 674,
|
|
10213
|
+
"description": "Transition the application into another route. The route may\nbe either a single route or route path:",
|
|
10175
10214
|
"itemtype": "method",
|
|
10176
10215
|
"name": "transitionTo",
|
|
10177
10216
|
"params": [
|
|
10178
10217
|
{
|
|
10179
10218
|
"name": "name",
|
|
10180
10219
|
"description": "the name of the route or a URL",
|
|
10181
|
-
"type": "String"
|
|
10220
|
+
"type": "String",
|
|
10221
|
+
"optional": true
|
|
10222
|
+
},
|
|
10223
|
+
{
|
|
10224
|
+
"name": "models",
|
|
10225
|
+
"description": "the model(s) or identifier(s) to be used while\n transitioning to the route.",
|
|
10226
|
+
"type": "...Object"
|
|
10227
|
+
},
|
|
10228
|
+
{
|
|
10229
|
+
"name": "options",
|
|
10230
|
+
"description": "optional hash with a queryParams property\n containing a mapping of query parameters",
|
|
10231
|
+
"type": "Object",
|
|
10232
|
+
"optional": true
|
|
10233
|
+
}
|
|
10234
|
+
],
|
|
10235
|
+
"return": {
|
|
10236
|
+
"description": "the transition object associated with this\n attempted transition",
|
|
10237
|
+
"type": "Transition"
|
|
10238
|
+
},
|
|
10239
|
+
"access": "public",
|
|
10240
|
+
"tagname": "",
|
|
10241
|
+
"class": "EmberRouter",
|
|
10242
|
+
"module": "@ember/routing"
|
|
10243
|
+
},
|
|
10244
|
+
{
|
|
10245
|
+
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10246
|
+
"line": 719,
|
|
10247
|
+
"description": "Similar to `transitionTo`, but instead of adding the destination to the browser's URL history,\nit replaces the entry for the current route.\nWhen the user clicks the \"back\" button in the browser, there will be fewer steps.\nThis is most commonly used to manage redirects in a way that does not cause confusing additions\nto the user's browsing history.",
|
|
10248
|
+
"itemtype": "method",
|
|
10249
|
+
"name": "replaceWith",
|
|
10250
|
+
"params": [
|
|
10251
|
+
{
|
|
10252
|
+
"name": "name",
|
|
10253
|
+
"description": "the name of the route or a URL",
|
|
10254
|
+
"type": "String",
|
|
10255
|
+
"optional": true
|
|
10182
10256
|
},
|
|
10183
10257
|
{
|
|
10184
10258
|
"name": "models",
|
|
@@ -10203,7 +10277,7 @@
|
|
|
10203
10277
|
},
|
|
10204
10278
|
{
|
|
10205
10279
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10206
|
-
"line":
|
|
10280
|
+
"line": 746,
|
|
10207
10281
|
"description": "Determines if the supplied route is currently active.",
|
|
10208
10282
|
"itemtype": "method",
|
|
10209
10283
|
"name": "isActive",
|
|
@@ -10224,7 +10298,7 @@
|
|
|
10224
10298
|
},
|
|
10225
10299
|
{
|
|
10226
10300
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10227
|
-
"line":
|
|
10301
|
+
"line": 758,
|
|
10228
10302
|
"description": "An alternative form of `isActive` that doesn't require\nmanual concatenation of the arguments into a single\narray.",
|
|
10229
10303
|
"itemtype": "method",
|
|
10230
10304
|
"name": "isActiveIntent",
|
|
@@ -10254,7 +10328,7 @@
|
|
|
10254
10328
|
},
|
|
10255
10329
|
{
|
|
10256
10330
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10257
|
-
"line":
|
|
10331
|
+
"line": 780,
|
|
10258
10332
|
"description": "Does this router instance have the given route.",
|
|
10259
10333
|
"itemtype": "method",
|
|
10260
10334
|
"name": "hasRoute",
|
|
@@ -10269,7 +10343,7 @@
|
|
|
10269
10343
|
},
|
|
10270
10344
|
{
|
|
10271
10345
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10272
|
-
"line":
|
|
10346
|
+
"line": 791,
|
|
10273
10347
|
"description": "Resets the state of the router by clearing the current route\nhandlers and deactivating them.",
|
|
10274
10348
|
"access": "private",
|
|
10275
10349
|
"tagname": "",
|
|
@@ -10280,7 +10354,7 @@
|
|
|
10280
10354
|
},
|
|
10281
10355
|
{
|
|
10282
10356
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10283
|
-
"line":
|
|
10357
|
+
"line": 937,
|
|
10284
10358
|
"description": "Serializes the given query params according to their QP meta information.",
|
|
10285
10359
|
"access": "private",
|
|
10286
10360
|
"tagname": "",
|
|
@@ -10307,7 +10381,7 @@
|
|
|
10307
10381
|
},
|
|
10308
10382
|
{
|
|
10309
10383
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10310
|
-
"line":
|
|
10384
|
+
"line": 967,
|
|
10311
10385
|
"description": "Serializes the value of a query parameter based on a type",
|
|
10312
10386
|
"access": "private",
|
|
10313
10387
|
"tagname": "",
|
|
@@ -10330,7 +10404,7 @@
|
|
|
10330
10404
|
},
|
|
10331
10405
|
{
|
|
10332
10406
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10333
|
-
"line":
|
|
10407
|
+
"line": 985,
|
|
10334
10408
|
"description": "Deserializes the given query params according to their QP meta information.",
|
|
10335
10409
|
"access": "private",
|
|
10336
10410
|
"tagname": "",
|
|
@@ -10357,7 +10431,7 @@
|
|
|
10357
10431
|
},
|
|
10358
10432
|
{
|
|
10359
10433
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10360
|
-
"line":
|
|
10434
|
+
"line": 1013,
|
|
10361
10435
|
"description": "Deserializes the value of a query parameter based on a default type",
|
|
10362
10436
|
"access": "private",
|
|
10363
10437
|
"tagname": "",
|
|
@@ -10380,7 +10454,7 @@
|
|
|
10380
10454
|
},
|
|
10381
10455
|
{
|
|
10382
10456
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10383
|
-
"line":
|
|
10457
|
+
"line": 1034,
|
|
10384
10458
|
"description": "Removes (prunes) any query params with default values from the given QP\nobject. Default values are determined from the QP meta information per key.",
|
|
10385
10459
|
"access": "private",
|
|
10386
10460
|
"tagname": "",
|
|
@@ -10407,7 +10481,7 @@
|
|
|
10407
10481
|
},
|
|
10408
10482
|
{
|
|
10409
10483
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10410
|
-
"line":
|
|
10484
|
+
"line": 1120,
|
|
10411
10485
|
"description": "Prepares the query params for a URL or Transition. Restores any undefined QP\nkeys/values, serializes all values, and then prunes any default values.",
|
|
10412
10486
|
"access": "private",
|
|
10413
10487
|
"tagname": "",
|
|
@@ -10444,7 +10518,7 @@
|
|
|
10444
10518
|
},
|
|
10445
10519
|
{
|
|
10446
10520
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10447
|
-
"line":
|
|
10521
|
+
"line": 1147,
|
|
10448
10522
|
"description": "Returns the meta information for the query params of a given route. This\nwill be overridden to allow support for lazy routes.",
|
|
10449
10523
|
"access": "private",
|
|
10450
10524
|
"tagname": "",
|
|
@@ -10466,7 +10540,7 @@
|
|
|
10466
10540
|
},
|
|
10467
10541
|
{
|
|
10468
10542
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10469
|
-
"line":
|
|
10543
|
+
"line": 1161,
|
|
10470
10544
|
"description": "Returns a merged query params meta object for a given set of routeInfos.\nUseful for knowing what query params are available for a given route hierarchy.",
|
|
10471
10545
|
"access": "private",
|
|
10472
10546
|
"tagname": "",
|
|
@@ -10488,7 +10562,7 @@
|
|
|
10488
10562
|
},
|
|
10489
10563
|
{
|
|
10490
10564
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10491
|
-
"line":
|
|
10565
|
+
"line": 1223,
|
|
10492
10566
|
"description": "Maps all query param keys to their fully scoped property name of the form\n`controllerName:propName`.",
|
|
10493
10567
|
"access": "private",
|
|
10494
10568
|
"tagname": "",
|
|
@@ -10520,7 +10594,7 @@
|
|
|
10520
10594
|
},
|
|
10521
10595
|
{
|
|
10522
10596
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10523
|
-
"line":
|
|
10597
|
+
"line": 1261,
|
|
10524
10598
|
"description": "Hydrates (adds/restores) any query params that have pre-existing values into\nthe given queryParams hash. This is what allows query params to be \"sticky\"\nand restore their last known values for their scope.",
|
|
10525
10599
|
"access": "private",
|
|
10526
10600
|
"tagname": "",
|
|
@@ -10547,7 +10621,7 @@
|
|
|
10547
10621
|
},
|
|
10548
10622
|
{
|
|
10549
10623
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10550
|
-
"line":
|
|
10624
|
+
"line": 1432,
|
|
10551
10625
|
"description": "Handles updating the paths and notifying any listeners of the URL\nchange.\n\nTriggers the router level `didTransition` hook.\n\nFor example, to notify google analytics when the route changes,\nyou could use this hook. (Note: requires also including GA scripts, etc.)\n\n```javascript\nimport config from './config/environment';\nimport EmberRouter from '@ember/routing/router';\nimport { service } from '@ember/service';\n\nlet Router = EmberRouter.extend({\n location: config.locationType,\n\n router: service(),\n\n didTransition: function() {\n this._super(...arguments);\n\n ga('send', 'pageview', {\n page: this.router.currentURL,\n title: this.router.currentRouteName,\n });\n }\n});\n```",
|
|
10552
10626
|
"itemtype": "method",
|
|
10553
10627
|
"name": "didTransition",
|
|
@@ -10559,7 +10633,7 @@
|
|
|
10559
10633
|
},
|
|
10560
10634
|
{
|
|
10561
10635
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10562
|
-
"line":
|
|
10636
|
+
"line": 1469,
|
|
10563
10637
|
"description": "Handles notifying any listeners of an impending URL\nchange.\n\nTriggers the router level `willTransition` hook.",
|
|
10564
10638
|
"itemtype": "method",
|
|
10565
10639
|
"name": "willTransition",
|
|
@@ -10571,7 +10645,7 @@
|
|
|
10571
10645
|
},
|
|
10572
10646
|
{
|
|
10573
10647
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10574
|
-
"line":
|
|
10648
|
+
"line": 1482,
|
|
10575
10649
|
"description": "Represents the current URL.",
|
|
10576
10650
|
"itemtype": "property",
|
|
10577
10651
|
"name": "url",
|
|
@@ -10583,7 +10657,7 @@
|
|
|
10583
10657
|
},
|
|
10584
10658
|
{
|
|
10585
10659
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10586
|
-
"line":
|
|
10660
|
+
"line": 1640,
|
|
10587
10661
|
"description": "Finds the name of the substate route if it exists for the given route. A\nsubstate route is of the form `route_state`, such as `foo_loading`.",
|
|
10588
10662
|
"access": "private",
|
|
10589
10663
|
"tagname": "",
|
|
@@ -10608,7 +10682,7 @@
|
|
|
10608
10682
|
},
|
|
10609
10683
|
{
|
|
10610
10684
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10611
|
-
"line":
|
|
10685
|
+
"line": 1661,
|
|
10612
10686
|
"description": "Finds the name of the state route if it exists for the given route. A state\nroute is of the form `route.state`, such as `foo.loading`. Properly Handles\n`application` named routes.",
|
|
10613
10687
|
"access": "private",
|
|
10614
10688
|
"tagname": "",
|
|
@@ -10633,7 +10707,7 @@
|
|
|
10633
10707
|
},
|
|
10634
10708
|
{
|
|
10635
10709
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10636
|
-
"line":
|
|
10710
|
+
"line": 1683,
|
|
10637
10711
|
"description": "Determines whether or not a route has been defined by checking that the route\nis in the Router's map and the owner has a registration for that route.",
|
|
10638
10712
|
"access": "private",
|
|
10639
10713
|
"tagname": "",
|
|
@@ -11620,7 +11694,7 @@
|
|
|
11620
11694
|
},
|
|
11621
11695
|
{
|
|
11622
11696
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11623
|
-
"line":
|
|
11697
|
+
"line": 1117,
|
|
11624
11698
|
"description": "Invokes the named method on every object in the receiver that\nimplements it. This method corresponds to the implementation in\nPrototype 1.6.\n\n```javascript\nclass Person {\n name = null;\n\n constructor(name) {\n this.name = name;\n }\n\n greet(prefix='Hello') {\n return `${prefix} ${this.name}`;\n }\n}\n\nlet people = [new Person('Joe'), new Person('Matt')];\n\npeople.invoke('greet'); // ['Hello Joe', 'Hello Matt']\npeople.invoke('greet', 'Bonjour'); // ['Bonjour Joe', 'Bonjour Matt']\n```",
|
|
11625
11699
|
"itemtype": "method",
|
|
11626
11700
|
"name": "invoke",
|
|
@@ -11647,7 +11721,7 @@
|
|
|
11647
11721
|
},
|
|
11648
11722
|
{
|
|
11649
11723
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11650
|
-
"line":
|
|
11724
|
+
"line": 1155,
|
|
11651
11725
|
"description": "Simply converts the object into a genuine array. The order is not\nguaranteed. Corresponds to the method implemented by Prototype.",
|
|
11652
11726
|
"itemtype": "method",
|
|
11653
11727
|
"name": "toArray",
|
|
@@ -11662,7 +11736,7 @@
|
|
|
11662
11736
|
},
|
|
11663
11737
|
{
|
|
11664
11738
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11665
|
-
"line":
|
|
11739
|
+
"line": 1167,
|
|
11666
11740
|
"description": "Returns a copy of the array with all `null` and `undefined` elements removed.\n\n```javascript\nlet arr = ['a', null, 'c', undefined];\narr.compact(); // ['a', 'c']\n```",
|
|
11667
11741
|
"itemtype": "method",
|
|
11668
11742
|
"name": "compact",
|
|
@@ -11677,7 +11751,7 @@
|
|
|
11677
11751
|
},
|
|
11678
11752
|
{
|
|
11679
11753
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11680
|
-
"line":
|
|
11754
|
+
"line": 1183,
|
|
11681
11755
|
"description": "Used to determine if the array contains the passed object.\nReturns `true` if found, `false` otherwise.\n\nThe optional `startAt` argument can be used to pass a starting\nindex to search from, effectively slicing the searchable portion\nof the array. If it's negative it will add the array length to\nthe startAt value passed in as the index to search from. If less\nthan or equal to `-1 * array.length` the entire array is searched.\n\nThis method has the same behavior of JavaScript's [Array.includes](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes).\n\n```javascript\n[1, 2, 3].includes(2); // true\n[1, 2, 3].includes(4); // false\n[1, 2, 3].includes(3, 2); // true\n[1, 2, 3].includes(3, 3); // false\n[1, 2, 3].includes(3, -1); // true\n[1, 2, 3].includes(1, -1); // false\n[1, 2, 3].includes(1, -4); // true\n[1, 2, NaN].includes(NaN); // true\n```",
|
|
11682
11756
|
"itemtype": "method",
|
|
11683
11757
|
"name": "includes",
|
|
@@ -11704,7 +11778,7 @@
|
|
|
11704
11778
|
},
|
|
11705
11779
|
{
|
|
11706
11780
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11707
|
-
"line":
|
|
11781
|
+
"line": 1216,
|
|
11708
11782
|
"description": "Sorts the array by the keys specified in the argument.\n\nYou may provide multiple arguments to sort by multiple properties.\n\n```javascript\n let colors = [\n { name: 'red', weight: 500 },\n { name: 'green', weight: 600 },\n { name: 'blue', weight: 500 }\n];\n\n colors.sortBy('name');\n // [{name: 'blue', weight: 500}, {name: 'green', weight: 600}, {name: 'red', weight: 500}]\n\n colors.sortBy('weight', 'name');\n // [{name: 'blue', weight: 500}, {name: 'red', weight: 500}, {name: 'green', weight: 600}]\n ```",
|
|
11709
11783
|
"itemtype": "method",
|
|
11710
11784
|
"name": "sortBy",
|
|
@@ -11727,7 +11801,7 @@
|
|
|
11727
11801
|
},
|
|
11728
11802
|
{
|
|
11729
11803
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11730
|
-
"line":
|
|
11804
|
+
"line": 1260,
|
|
11731
11805
|
"description": "Returns a new array that contains only unique values. The default\nimplementation returns an array regardless of the receiver type.\n\n```javascript\nlet arr = ['a', 'a', 'b', 'b'];\narr.uniq(); // ['a', 'b']\n```\n\nThis only works on primitive data types, e.g. Strings, Numbers, etc.",
|
|
11732
11806
|
"itemtype": "method",
|
|
11733
11807
|
"name": "uniq",
|
|
@@ -11742,7 +11816,7 @@
|
|
|
11742
11816
|
},
|
|
11743
11817
|
{
|
|
11744
11818
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11745
|
-
"line":
|
|
11819
|
+
"line": 1279,
|
|
11746
11820
|
"description": "Returns a new array that contains only items containing a unique property value.\nThe default implementation returns an array regardless of the receiver type.\n\n```javascript\nlet arr = [{ value: 'a' }, { value: 'a' }, { value: 'b' }, { value: 'b' }];\narr.uniqBy('value'); // [{ value: 'a' }, { value: 'b' }]\n\nlet arr = [2.2, 2.1, 3.2, 3.3];\narr.uniqBy(Math.floor); // [2.2, 3.2];\n```",
|
|
11747
11821
|
"itemtype": "method",
|
|
11748
11822
|
"name": "uniqBy",
|
|
@@ -11764,7 +11838,7 @@
|
|
|
11764
11838
|
},
|
|
11765
11839
|
{
|
|
11766
11840
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11767
|
-
"line":
|
|
11841
|
+
"line": 1301,
|
|
11768
11842
|
"description": "Returns a new array that excludes the passed value. The default\nimplementation returns an array regardless of the receiver type.\nIf the receiver does not contain the value it returns the original array.\n\n```javascript\nlet arr = ['a', 'b', 'a', 'c'];\narr.without('a'); // ['b', 'c']\n```",
|
|
11769
11843
|
"itemtype": "method",
|
|
11770
11844
|
"name": "without",
|
|
@@ -11786,7 +11860,7 @@
|
|
|
11786
11860
|
},
|
|
11787
11861
|
{
|
|
11788
11862
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11789
|
-
"line":
|
|
11863
|
+
"line": 1349,
|
|
11790
11864
|
"description": "__Required.__ You must implement this method to apply this mixin.\n\nThis is one of the primitives you must implement to support `Array`.\nYou should replace amt objects started at idx with the objects in the\npassed array.\n\nNote that this method is expected to validate the type(s) of objects that it expects.",
|
|
11791
11865
|
"itemtype": "method",
|
|
11792
11866
|
"name": "replace",
|
|
@@ -11814,7 +11888,7 @@
|
|
|
11814
11888
|
},
|
|
11815
11889
|
{
|
|
11816
11890
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11817
|
-
"line":
|
|
11891
|
+
"line": 1368,
|
|
11818
11892
|
"description": "Remove all elements from the array. This is useful if you\nwant to reuse an existing array without having to recreate it.\n\n```javascript\nlet colors = ['red', 'green', 'blue'];\n\ncolors.length; // 3\ncolors.clear(); // []\ncolors.length; // 0\n```",
|
|
11819
11893
|
"itemtype": "method",
|
|
11820
11894
|
"name": "clear",
|
|
@@ -11829,7 +11903,7 @@
|
|
|
11829
11903
|
},
|
|
11830
11904
|
{
|
|
11831
11905
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11832
|
-
"line":
|
|
11906
|
+
"line": 1394,
|
|
11833
11907
|
"description": "This will use the primitive `replace()` method to insert an object at the\nspecified index.\n\n```javascript\nlet colors = ['red', 'green', 'blue'];\n\ncolors.insertAt(2, 'yellow'); // ['red', 'green', 'yellow', 'blue']\ncolors.insertAt(5, 'orange'); // Error: Index out of range\n```",
|
|
11834
11908
|
"itemtype": "method",
|
|
11835
11909
|
"name": "insertAt",
|
|
@@ -11856,7 +11930,7 @@
|
|
|
11856
11930
|
},
|
|
11857
11931
|
{
|
|
11858
11932
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11859
|
-
"line":
|
|
11933
|
+
"line": 1416,
|
|
11860
11934
|
"description": "Remove an object at the specified index using the `replace()` primitive\nmethod. You can pass either a single index, or a start and a length.\n\nIf you pass a start and length that is beyond the\nlength this method will throw an assertion.\n\n```javascript\nlet colors = ['red', 'green', 'blue', 'yellow', 'orange'];\n\ncolors.removeAt(0); // ['green', 'blue', 'yellow', 'orange']\ncolors.removeAt(2, 2); // ['green', 'blue']\ncolors.removeAt(4, 2); // Error: Index out of range\n```",
|
|
11861
11935
|
"itemtype": "method",
|
|
11862
11936
|
"name": "removeAt",
|
|
@@ -11883,7 +11957,7 @@
|
|
|
11883
11957
|
},
|
|
11884
11958
|
{
|
|
11885
11959
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11886
|
-
"line":
|
|
11960
|
+
"line": 1441,
|
|
11887
11961
|
"description": "Push the object onto the end of the array. Works just like `push()` but it\nis KVO-compliant.\n\n```javascript\nlet colors = ['red', 'green'];\n\ncolors.pushObject('black'); // ['red', 'green', 'black']\ncolors.pushObject(['yellow']); // ['red', 'green', ['yellow']]\n```",
|
|
11888
11962
|
"itemtype": "method",
|
|
11889
11963
|
"name": "pushObject",
|
|
@@ -11904,7 +11978,7 @@
|
|
|
11904
11978
|
},
|
|
11905
11979
|
{
|
|
11906
11980
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11907
|
-
"line":
|
|
11981
|
+
"line": 1461,
|
|
11908
11982
|
"description": "Add the objects in the passed array to the end of the array. Defers\nnotifying observers of the change until all objects are added.\n\n```javascript\nlet colors = ['red'];\n\ncolors.pushObjects(['yellow', 'orange']); // ['red', 'yellow', 'orange']\n```",
|
|
11909
11983
|
"itemtype": "method",
|
|
11910
11984
|
"name": "pushObjects",
|
|
@@ -11926,7 +12000,7 @@
|
|
|
11926
12000
|
},
|
|
11927
12001
|
{
|
|
11928
12002
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11929
|
-
"line":
|
|
12003
|
+
"line": 1481,
|
|
11930
12004
|
"description": "Pop object from array or nil if none are left. Works just like `pop()` but\nit is KVO-compliant.\n\n```javascript\nlet colors = ['red', 'green', 'blue'];\n\ncolors.popObject(); // 'blue'\nconsole.log(colors); // ['red', 'green']\n```",
|
|
11931
12005
|
"itemtype": "method",
|
|
11932
12006
|
"name": "popObject",
|
|
@@ -11940,7 +12014,7 @@
|
|
|
11940
12014
|
},
|
|
11941
12015
|
{
|
|
11942
12016
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11943
|
-
"line":
|
|
12017
|
+
"line": 1507,
|
|
11944
12018
|
"description": "Shift an object from start of array or nil if none are left. Works just\nlike `shift()` but it is KVO-compliant.\n\n```javascript\nlet colors = ['red', 'green', 'blue'];\n\ncolors.shiftObject(); // 'red'\nconsole.log(colors); // ['green', 'blue']\n```",
|
|
11945
12019
|
"itemtype": "method",
|
|
11946
12020
|
"name": "shiftObject",
|
|
@@ -11954,7 +12028,7 @@
|
|
|
11954
12028
|
},
|
|
11955
12029
|
{
|
|
11956
12030
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11957
|
-
"line":
|
|
12031
|
+
"line": 1532,
|
|
11958
12032
|
"description": "Unshift an object to start of array. Works just like `unshift()` but it is\nKVO-compliant.\n\n```javascript\nlet colors = ['red'];\n\ncolors.unshiftObject('yellow'); // ['yellow', 'red']\ncolors.unshiftObject(['black']); // [['black'], 'yellow', 'red']\n```",
|
|
11959
12033
|
"itemtype": "method",
|
|
11960
12034
|
"name": "unshiftObject",
|
|
@@ -11975,7 +12049,7 @@
|
|
|
11975
12049
|
},
|
|
11976
12050
|
{
|
|
11977
12051
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11978
|
-
"line":
|
|
12052
|
+
"line": 1552,
|
|
11979
12053
|
"description": "Adds the named objects to the beginning of the array. Defers notifying\nobservers until all objects have been added.\n\n```javascript\nlet colors = ['red'];\n\ncolors.unshiftObjects(['black', 'white']); // ['black', 'white', 'red']\ncolors.unshiftObjects('yellow'); // Type Error: 'undefined' is not a function\n```",
|
|
11980
12054
|
"itemtype": "method",
|
|
11981
12055
|
"name": "unshiftObjects",
|
|
@@ -11997,7 +12071,7 @@
|
|
|
11997
12071
|
},
|
|
11998
12072
|
{
|
|
11999
12073
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
12000
|
-
"line":
|
|
12074
|
+
"line": 1573,
|
|
12001
12075
|
"description": "Reverse objects in the array. Works just like `reverse()` but it is\nKVO-compliant.",
|
|
12002
12076
|
"itemtype": "method",
|
|
12003
12077
|
"name": "reverseObjects",
|
|
@@ -12012,7 +12086,7 @@
|
|
|
12012
12086
|
},
|
|
12013
12087
|
{
|
|
12014
12088
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
12015
|
-
"line":
|
|
12089
|
+
"line": 1592,
|
|
12016
12090
|
"description": "Replace all the receiver's content with content of the argument.\nIf argument is an empty array receiver will be cleared.\n\n```javascript\nlet colors = ['red', 'green', 'blue'];\n\ncolors.setObjects(['black', 'white']); // ['black', 'white']\ncolors.setObjects([]); // []\n```",
|
|
12017
12091
|
"itemtype": "method",
|
|
12018
12092
|
"name": "setObjects",
|
|
@@ -12034,7 +12108,7 @@
|
|
|
12034
12108
|
},
|
|
12035
12109
|
{
|
|
12036
12110
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
12037
|
-
"line":
|
|
12111
|
+
"line": 1619,
|
|
12038
12112
|
"description": "Remove all occurrences of an object in the array.\n\n```javascript\nlet cities = ['Chicago', 'Berlin', 'Lima', 'Chicago'];\n\ncities.removeObject('Chicago'); // ['Berlin', 'Lima']\ncities.removeObject('Lima'); // ['Berlin']\ncities.removeObject('Tokyo') // ['Berlin']\n```",
|
|
12039
12113
|
"itemtype": "method",
|
|
12040
12114
|
"name": "removeObject",
|
|
@@ -12056,7 +12130,7 @@
|
|
|
12056
12130
|
},
|
|
12057
12131
|
{
|
|
12058
12132
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
12059
|
-
"line":
|
|
12133
|
+
"line": 1647,
|
|
12060
12134
|
"description": "Removes each object in the passed array from the receiver.",
|
|
12061
12135
|
"itemtype": "method",
|
|
12062
12136
|
"name": "removeObjects",
|
|
@@ -12078,7 +12152,7 @@
|
|
|
12078
12152
|
},
|
|
12079
12153
|
{
|
|
12080
12154
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
12081
|
-
"line":
|
|
12155
|
+
"line": 1664,
|
|
12082
12156
|
"description": "Push the object onto the end of the array if it is not already\npresent in the array.\n\n```javascript\nlet cities = ['Chicago', 'Berlin'];\n\ncities.addObject('Lima'); // ['Chicago', 'Berlin', 'Lima']\ncities.addObject('Berlin'); // ['Chicago', 'Berlin', 'Lima']\n```",
|
|
12083
12157
|
"itemtype": "method",
|
|
12084
12158
|
"name": "addObject",
|
|
@@ -12100,7 +12174,7 @@
|
|
|
12100
12174
|
},
|
|
12101
12175
|
{
|
|
12102
12176
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
12103
|
-
"line":
|
|
12177
|
+
"line": 1690,
|
|
12104
12178
|
"description": "Adds each object in the passed array to the receiver.",
|
|
12105
12179
|
"itemtype": "method",
|
|
12106
12180
|
"name": "addObjects",
|
|
@@ -12122,7 +12196,7 @@
|
|
|
12122
12196
|
},
|
|
12123
12197
|
{
|
|
12124
12198
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
12125
|
-
"line":
|
|
12199
|
+
"line": 1706,
|
|
12126
12200
|
"description": "Creates an `Ember.NativeArray` from an Array-like object.\nDoes not modify the original object's contents. `A()` is not needed if\n`EmberENV.EXTEND_PROTOTYPES` is `true` (the default value). However,\nit is recommended that you use `A()` when creating addons for\nember or when you can not guarantee that `EmberENV.EXTEND_PROTOTYPES`\nwill be `true`.\n\nExample\n\n```app/components/my-component.js\nimport Component from '@ember/component';\nimport { A } from '@ember/array';\n\nexport default Component.extend({\n tagName: 'ul',\n classNames: ['pagination'],\n\n init() {\n this._super(...arguments);\n\n if (!this.get('content')) {\n this.set('content', A());\n this.set('otherContent', A([1,2,3]));\n }\n }\n});\n```",
|
|
12127
12201
|
"itemtype": "method",
|
|
12128
12202
|
"name": "A",
|
|
@@ -12454,7 +12528,7 @@
|
|
|
12454
12528
|
},
|
|
12455
12529
|
{
|
|
12456
12530
|
"file": "packages/@ember/-internals/runtime/lib/mixins/observable.d.ts",
|
|
12457
|
-
"line":
|
|
12531
|
+
"line": 24,
|
|
12458
12532
|
"description": "Sets the provided key or path to the value.",
|
|
12459
12533
|
"class": "Observable",
|
|
12460
12534
|
"module": "ember",
|
|
@@ -12462,7 +12536,7 @@
|
|
|
12462
12536
|
},
|
|
12463
12537
|
{
|
|
12464
12538
|
"file": "packages/@ember/-internals/runtime/lib/mixins/observable.d.ts",
|
|
12465
|
-
"line":
|
|
12539
|
+
"line": 30,
|
|
12466
12540
|
"description": "Sets a list of properties at once. These properties are set inside\na single `beginPropertyChanges` and `endPropertyChanges` batch, so\nobservers will be buffered.",
|
|
12467
12541
|
"class": "Observable",
|
|
12468
12542
|
"module": "ember",
|
|
@@ -12470,7 +12544,7 @@
|
|
|
12470
12544
|
},
|
|
12471
12545
|
{
|
|
12472
12546
|
"file": "packages/@ember/-internals/runtime/lib/mixins/observable.d.ts",
|
|
12473
|
-
"line":
|
|
12547
|
+
"line": 37,
|
|
12474
12548
|
"description": "Convenience method to call `propertyWillChange` and `propertyDidChange` in\nsuccession.",
|
|
12475
12549
|
"class": "Observable",
|
|
12476
12550
|
"module": "ember",
|
|
@@ -12478,7 +12552,7 @@
|
|
|
12478
12552
|
},
|
|
12479
12553
|
{
|
|
12480
12554
|
"file": "packages/@ember/-internals/runtime/lib/mixins/observable.d.ts",
|
|
12481
|
-
"line":
|
|
12555
|
+
"line": 43,
|
|
12482
12556
|
"description": "Adds an observer on a property.",
|
|
12483
12557
|
"class": "Observable",
|
|
12484
12558
|
"module": "ember",
|
|
@@ -12486,7 +12560,7 @@
|
|
|
12486
12560
|
},
|
|
12487
12561
|
{
|
|
12488
12562
|
"file": "packages/@ember/-internals/runtime/lib/mixins/observable.d.ts",
|
|
12489
|
-
"line":
|
|
12563
|
+
"line": 49,
|
|
12490
12564
|
"description": "Remove an observer you have previously registered on this object. Pass\nthe same key, target, and method you passed to `addObserver()` and your\ntarget will no longer receive notifications.",
|
|
12491
12565
|
"class": "Observable",
|
|
12492
12566
|
"module": "ember",
|
|
@@ -12494,7 +12568,7 @@
|
|
|
12494
12568
|
},
|
|
12495
12569
|
{
|
|
12496
12570
|
"file": "packages/@ember/-internals/runtime/lib/mixins/observable.d.ts",
|
|
12497
|
-
"line":
|
|
12571
|
+
"line": 62,
|
|
12498
12572
|
"description": "Set the value of a property to the current value plus some amount.",
|
|
12499
12573
|
"class": "Observable",
|
|
12500
12574
|
"module": "ember",
|
|
@@ -12502,7 +12576,7 @@
|
|
|
12502
12576
|
},
|
|
12503
12577
|
{
|
|
12504
12578
|
"file": "packages/@ember/-internals/runtime/lib/mixins/observable.d.ts",
|
|
12505
|
-
"line":
|
|
12579
|
+
"line": 68,
|
|
12506
12580
|
"description": "Set the value of a property to the current value minus some amount.",
|
|
12507
12581
|
"class": "Observable",
|
|
12508
12582
|
"module": "ember",
|
|
@@ -12510,7 +12584,7 @@
|
|
|
12510
12584
|
},
|
|
12511
12585
|
{
|
|
12512
12586
|
"file": "packages/@ember/-internals/runtime/lib/mixins/observable.d.ts",
|
|
12513
|
-
"line":
|
|
12587
|
+
"line": 74,
|
|
12514
12588
|
"description": "Set the value of a boolean property to the opposite of its\ncurrent value.",
|
|
12515
12589
|
"class": "Observable",
|
|
12516
12590
|
"module": "ember",
|
|
@@ -12518,7 +12592,7 @@
|
|
|
12518
12592
|
},
|
|
12519
12593
|
{
|
|
12520
12594
|
"file": "packages/@ember/-internals/runtime/lib/mixins/observable.d.ts",
|
|
12521
|
-
"line":
|
|
12595
|
+
"line": 80,
|
|
12522
12596
|
"description": "Returns the cached value of a computed property, if it exists.\nThis allows you to inspect the value of a computed property\nwithout accidentally invoking it if it is intended to be\ngenerated lazily.",
|
|
12523
12597
|
"class": "Observable",
|
|
12524
12598
|
"module": "ember",
|
|
@@ -13724,38 +13798,9 @@
|
|
|
13724
13798
|
},
|
|
13725
13799
|
{
|
|
13726
13800
|
"file": "packages/@ember/-internals/runtime/lib/system/object.d.ts",
|
|
13727
|
-
"line":
|
|
13728
|
-
"class": "EmberObject",
|
|
13729
|
-
"module": "ember",
|
|
13730
|
-
"namespace": "Ember"
|
|
13731
|
-
},
|
|
13732
|
-
{
|
|
13733
|
-
"file": "packages/@ember/-internals/runtime/lib/system/object.d.ts",
|
|
13734
|
-
"line": 14,
|
|
13735
|
-
"class": "EmberObject",
|
|
13736
|
-
"module": "ember",
|
|
13737
|
-
"namespace": "Ember"
|
|
13738
|
-
},
|
|
13739
|
-
{
|
|
13740
|
-
"file": "packages/@ember/-internals/runtime/lib/system/object.d.ts",
|
|
13741
|
-
"line": 31,
|
|
13742
|
-
"class": "EmberObject",
|
|
13743
|
-
"module": "ember",
|
|
13744
|
-
"namespace": "Ember"
|
|
13745
|
-
},
|
|
13746
|
-
{
|
|
13747
|
-
"file": "packages/@ember/-internals/runtime/lib/system/object.d.ts",
|
|
13748
|
-
"line": 34,
|
|
13749
|
-
"class": "EmberObject",
|
|
13750
|
-
"module": "ember",
|
|
13751
|
-
"namespace": "Ember"
|
|
13752
|
-
},
|
|
13753
|
-
{
|
|
13754
|
-
"file": "packages/@ember/-internals/runtime/lib/system/object.d.ts",
|
|
13755
|
-
"line": 41,
|
|
13801
|
+
"line": 9,
|
|
13756
13802
|
"class": "EmberObject",
|
|
13757
|
-
"module": "ember"
|
|
13758
|
-
"namespace": "Ember"
|
|
13803
|
+
"module": "@ember/application"
|
|
13759
13804
|
},
|
|
13760
13805
|
{
|
|
13761
13806
|
"file": "packages/@ember/-internals/runtime/lib/compare.js",
|
|
@@ -13822,8 +13867,7 @@
|
|
|
13822
13867
|
"params": [
|
|
13823
13868
|
{
|
|
13824
13869
|
"name": "item",
|
|
13825
|
-
"description": "the item to check"
|
|
13826
|
-
"type": "Object"
|
|
13870
|
+
"description": "the item to check"
|
|
13827
13871
|
}
|
|
13828
13872
|
],
|
|
13829
13873
|
"return": {
|
|
@@ -13942,7 +13986,7 @@
|
|
|
13942
13986
|
},
|
|
13943
13987
|
{
|
|
13944
13988
|
"file": "packages/@ember/-internals/utils/lib/inspect.ts",
|
|
13945
|
-
"line":
|
|
13989
|
+
"line": 15,
|
|
13946
13990
|
"description": "Convenience method to inspect an object. This method will attempt to\nconvert the object into a useful string description.\n\nIt is a pretty simple implementation. If you want something more robust,\nuse something like JSDump: https://github.com/NV/jsDump",
|
|
13947
13991
|
"itemtype": "method",
|
|
13948
13992
|
"name": "inspect",
|
|
@@ -14503,7 +14547,7 @@
|
|
|
14503
14547
|
},
|
|
14504
14548
|
{
|
|
14505
14549
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14506
|
-
"line":
|
|
14550
|
+
"line": 63,
|
|
14507
14551
|
"access": "private",
|
|
14508
14552
|
"tagname": "",
|
|
14509
14553
|
"itemtype": "method",
|
|
@@ -14520,7 +14564,7 @@
|
|
|
14520
14564
|
},
|
|
14521
14565
|
{
|
|
14522
14566
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14523
|
-
"line":
|
|
14567
|
+
"line": 83,
|
|
14524
14568
|
"access": "private",
|
|
14525
14569
|
"tagname": "",
|
|
14526
14570
|
"itemtype": "method",
|
|
@@ -14537,7 +14581,7 @@
|
|
|
14537
14581
|
},
|
|
14538
14582
|
{
|
|
14539
14583
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14540
|
-
"line":
|
|
14584
|
+
"line": 115,
|
|
14541
14585
|
"access": "private",
|
|
14542
14586
|
"tagname": "",
|
|
14543
14587
|
"itemtype": "method",
|
|
@@ -14554,7 +14598,7 @@
|
|
|
14554
14598
|
},
|
|
14555
14599
|
{
|
|
14556
14600
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14557
|
-
"line":
|
|
14601
|
+
"line": 158,
|
|
14558
14602
|
"access": "private",
|
|
14559
14603
|
"tagname": "",
|
|
14560
14604
|
"itemtype": "method",
|
|
@@ -14571,7 +14615,7 @@
|
|
|
14571
14615
|
},
|
|
14572
14616
|
{
|
|
14573
14617
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14574
|
-
"line":
|
|
14618
|
+
"line": 167,
|
|
14575
14619
|
"access": "private",
|
|
14576
14620
|
"tagname": "",
|
|
14577
14621
|
"itemtype": "method",
|
|
@@ -14588,7 +14632,7 @@
|
|
|
14588
14632
|
},
|
|
14589
14633
|
{
|
|
14590
14634
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14591
|
-
"line":
|
|
14635
|
+
"line": 182,
|
|
14592
14636
|
"description": "`getViewClientRects` provides information about the position of the border\nbox edges of a view relative to the viewport.\n\nIt is only intended to be used by development tools like the Ember Inspector\nand may not work on older browsers.",
|
|
14593
14637
|
"access": "private",
|
|
14594
14638
|
"tagname": "",
|
|
@@ -14606,7 +14650,7 @@
|
|
|
14606
14650
|
},
|
|
14607
14651
|
{
|
|
14608
14652
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14609
|
-
"line":
|
|
14653
|
+
"line": 198,
|
|
14610
14654
|
"description": "`getViewBoundingClientRect` provides information about the position of the\nbounding border box edges of a view relative to the viewport.\n\nIt is only intended to be used by development tools like the Ember Inspector\nand may not work on older browsers.",
|
|
14611
14655
|
"access": "private",
|
|
14612
14656
|
"tagname": "",
|
|
@@ -14624,7 +14668,7 @@
|
|
|
14624
14668
|
},
|
|
14625
14669
|
{
|
|
14626
14670
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14627
|
-
"line":
|
|
14671
|
+
"line": 214,
|
|
14628
14672
|
"description": "Determines if the element matches the specified selector.",
|
|
14629
14673
|
"access": "private",
|
|
14630
14674
|
"tagname": "",
|
|
@@ -15321,6 +15365,12 @@
|
|
|
15321
15365
|
"class": "@ember/component/template-only",
|
|
15322
15366
|
"module": "@ember/component/template-only"
|
|
15323
15367
|
},
|
|
15368
|
+
{
|
|
15369
|
+
"file": "packages/@ember/controller/lib/controller_mixin.d.ts",
|
|
15370
|
+
"line": 8,
|
|
15371
|
+
"class": "Ember.ControllerMixin",
|
|
15372
|
+
"module": "@ember/component/template-only"
|
|
15373
|
+
},
|
|
15324
15374
|
{
|
|
15325
15375
|
"file": "packages/@ember/controller/lib/controller_mixin.js",
|
|
15326
15376
|
"line": 21,
|
|
@@ -15347,8 +15397,8 @@
|
|
|
15347
15397
|
"namespace": "Ember"
|
|
15348
15398
|
},
|
|
15349
15399
|
{
|
|
15350
|
-
"file": "packages/@ember/controller/index.
|
|
15351
|
-
"line":
|
|
15400
|
+
"file": "packages/@ember/controller/index.ts",
|
|
15401
|
+
"line": 20,
|
|
15352
15402
|
"description": "Creates a property that lazily looks up another controller in the container.\nCan only be used when defining another controller.\n\nExample:\n\n```app/controllers/post.js\nimport Controller, {\n inject as controller\n} from '@ember/controller';\n\nexport default class PostController extends Controller {\n @controller posts;\n}\n```\n\nClassic Class Example:\n\n```app/controllers/post.js\nimport Controller, {\n inject as controller\n} from '@ember/controller';\n\nexport default Controller.extend({\n posts: controller()\n});\n```\n\nThis example will create a `posts` property on the `post` controller that\nlooks up the `posts` controller in the container, making it easy to reference\nother controllers.",
|
|
15353
15403
|
"itemtype": "method",
|
|
15354
15404
|
"name": "inject",
|
|
@@ -16232,7 +16282,7 @@
|
|
|
16232
16282
|
},
|
|
16233
16283
|
{
|
|
16234
16284
|
"file": "packages/@ember/instrumentation/index.ts",
|
|
16235
|
-
"line":
|
|
16285
|
+
"line": 121,
|
|
16236
16286
|
"description": "Notifies event's subscribers, calls `before` and `after` hooks.",
|
|
16237
16287
|
"itemtype": "method",
|
|
16238
16288
|
"name": "instrument",
|
|
@@ -16267,7 +16317,7 @@
|
|
|
16267
16317
|
},
|
|
16268
16318
|
{
|
|
16269
16319
|
"file": "packages/@ember/instrumentation/index.ts",
|
|
16270
|
-
"line":
|
|
16320
|
+
"line": 282,
|
|
16271
16321
|
"description": "Subscribes to a particular event or instrumented block of code.",
|
|
16272
16322
|
"itemtype": "method",
|
|
16273
16323
|
"name": "subscribe",
|
|
@@ -16297,7 +16347,7 @@
|
|
|
16297
16347
|
},
|
|
16298
16348
|
{
|
|
16299
16349
|
"file": "packages/@ember/instrumentation/index.ts",
|
|
16300
|
-
"line":
|
|
16350
|
+
"line": 322,
|
|
16301
16351
|
"description": "Unsubscribes from a particular event or instrumented block of code.",
|
|
16302
16352
|
"itemtype": "method",
|
|
16303
16353
|
"name": "unsubscribe",
|
|
@@ -16317,7 +16367,7 @@
|
|
|
16317
16367
|
},
|
|
16318
16368
|
{
|
|
16319
16369
|
"file": "packages/@ember/instrumentation/index.ts",
|
|
16320
|
-
"line":
|
|
16370
|
+
"line": 345,
|
|
16321
16371
|
"description": "Resets `Instrumentation` by flushing list of subscribers.",
|
|
16322
16372
|
"itemtype": "method",
|
|
16323
16373
|
"name": "reset",
|
|
@@ -17199,7 +17249,7 @@
|
|
|
17199
17249
|
},
|
|
17200
17250
|
{
|
|
17201
17251
|
"file": "packages/@ember/object/compat.ts",
|
|
17202
|
-
"line":
|
|
17252
|
+
"line": 40,
|
|
17203
17253
|
"description": "`@dependentKeyCompat` is decorator that can be used on _native getters_ that\nuse tracked properties. It exposes the getter to Ember's classic computed\nproperty and observer systems, so they can watch it for changes. It can be\nused in both native and classic classes.\n\nNative Example:\n\n```js\nimport { tracked } from '@glimmer/tracking';\nimport { dependentKeyCompat } from '@ember/object/compat';\nimport { computed, set } from '@ember/object';\n\nclass Person {\n @tracked firstName;\n @tracked lastName;\n\n @dependentKeyCompat\n get fullName() {\n return `${this.firstName} ${this.lastName}`;\n }\n}\n\nclass Profile {\n constructor(person) {\n set(this, 'person', person);\n }\n\n @computed('person.fullName')\n get helloMessage() {\n return `Hello, ${this.person.fullName}!`;\n }\n}\n```\n\nClassic Example:\n\n```js\nimport { tracked } from '@glimmer/tracking';\nimport { dependentKeyCompat } from '@ember/object/compat';\nimport EmberObject, { computed, observer, set } from '@ember/object';\n\nconst Person = EmberObject.extend({\n firstName: tracked(),\n lastName: tracked(),\n\n fullName: dependentKeyCompat(function() {\n return `${this.firstName} ${this.lastName}`;\n }),\n});\n\nconst Profile = EmberObject.extend({\n person: null,\n\n helloMessage: computed('person.fullName', function() {\n return `Hello, ${this.person.fullName}!`;\n }),\n\n onNameUpdated: observer('person.fullName', function() {\n console.log('person name updated!');\n }),\n});\n```\n\n`dependentKeyCompat()` can receive a getter function or an object containing\n`get`/`set` methods when used in classic classes, like computed properties.\n\nIn general, only properties which you _expect_ to be watched by older,\nuntracked clases should be marked as dependency compatible. The decorator is\nmeant as an interop layer for parts of Ember's older classic APIs, and should\nnot be applied to every possible getter/setter in classes. The number of\ndependency compatible getters should be _minimized_ wherever possible. New\napplication code should not need to use `@dependentKeyCompat`, since it is\nonly for interoperation with older code.",
|
|
17204
17254
|
"access": "public",
|
|
17205
17255
|
"tagname": "",
|
|
@@ -17728,8 +17778,8 @@
|
|
|
17728
17778
|
"module": "@ember/runloop"
|
|
17729
17779
|
},
|
|
17730
17780
|
{
|
|
17731
|
-
"file": "packages/@ember/service/index.
|
|
17732
|
-
"line":
|
|
17781
|
+
"file": "packages/@ember/service/index.ts",
|
|
17782
|
+
"line": 13,
|
|
17733
17783
|
"itemtype": "method",
|
|
17734
17784
|
"name": "inject",
|
|
17735
17785
|
"static": 1,
|
|
@@ -17751,8 +17801,8 @@
|
|
|
17751
17801
|
"module": "@ember/service"
|
|
17752
17802
|
},
|
|
17753
17803
|
{
|
|
17754
|
-
"file": "packages/@ember/service/index.
|
|
17755
|
-
"line":
|
|
17804
|
+
"file": "packages/@ember/service/index.ts",
|
|
17805
|
+
"line": 33,
|
|
17756
17806
|
"description": "Creates a property that lazily looks up a service in the container. There are\nno restrictions as to what objects a service can be injected into.\n\nExample:\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('auth') authManager;\n\n model() {\n return this.authManager.findCurrentUser();\n }\n}\n```\n\nClassic Class Example:\n\n```app/routes/application.js\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default Route.extend({\n authManager: service('auth'),\n\n model() {\n return this.get('authManager').findCurrentUser();\n }\n});\n```\n\nThis example will create an `authManager` property on the application route\nthat looks up the `auth` service in the container, making it easily accessible\nin the `model` hook.",
|
|
17757
17807
|
"itemtype": "method",
|
|
17758
17808
|
"name": "service",
|
|
@@ -17776,7 +17826,7 @@
|
|
|
17776
17826
|
},
|
|
17777
17827
|
{
|
|
17778
17828
|
"file": "packages/@ember/string/index.ts",
|
|
17779
|
-
"line":
|
|
17829
|
+
"line": 81,
|
|
17780
17830
|
"description": "Splits a string into separate units separated by spaces, eliminating any\nempty strings in the process.\n\n```javascript\nimport { w } from '@ember/string';\n\nw(\"alpha beta gamma\").forEach(function(key) {\n console.log(key);\n});\n\n// > alpha\n// > beta\n// > gamma\n```",
|
|
17781
17831
|
"itemtype": "method",
|
|
17782
17832
|
"name": "w",
|
|
@@ -17798,7 +17848,7 @@
|
|
|
17798
17848
|
},
|
|
17799
17849
|
{
|
|
17800
17850
|
"file": "packages/@ember/string/index.ts",
|
|
17801
|
-
"line":
|
|
17851
|
+
"line": 106,
|
|
17802
17852
|
"description": "Converts a camelized string into all lower case separated by underscores.\n\n```javascript\nimport { decamelize } from '@ember/string';\n\ndecamelize('innerHTML'); // 'inner_html'\ndecamelize('action_name'); // 'action_name'\ndecamelize('css-class-name'); // 'css-class-name'\ndecamelize('my favorite items'); // 'my favorite items'\n```",
|
|
17803
17853
|
"itemtype": "method",
|
|
17804
17854
|
"name": "decamelize",
|
|
@@ -17820,7 +17870,7 @@
|
|
|
17820
17870
|
},
|
|
17821
17871
|
{
|
|
17822
17872
|
"file": "packages/@ember/string/index.ts",
|
|
17823
|
-
"line":
|
|
17873
|
+
"line": 127,
|
|
17824
17874
|
"description": "Replaces underscores, spaces, or camelCase with dashes.\n\n```javascript\nimport { dasherize } from '@ember/string';\n\ndasherize('innerHTML'); // 'inner-html'\ndasherize('action_name'); // 'action-name'\ndasherize('css-class-name'); // 'css-class-name'\ndasherize('my favorite items'); // 'my-favorite-items'\ndasherize('privateDocs/ownerInvoice'; // 'private-docs/owner-invoice'\n```",
|
|
17825
17875
|
"itemtype": "method",
|
|
17826
17876
|
"name": "dasherize",
|
|
@@ -17842,7 +17892,7 @@
|
|
|
17842
17892
|
},
|
|
17843
17893
|
{
|
|
17844
17894
|
"file": "packages/@ember/string/index.ts",
|
|
17845
|
-
"line":
|
|
17895
|
+
"line": 149,
|
|
17846
17896
|
"description": "Returns the lowerCamelCase form of a string.\n\n```javascript\nimport { camelize } from '@ember/string';\n\ncamelize('innerHTML'); // 'innerHTML'\ncamelize('action_name'); // 'actionName'\ncamelize('css-class-name'); // 'cssClassName'\ncamelize('my favorite items'); // 'myFavoriteItems'\ncamelize('My Favorite Items'); // 'myFavoriteItems'\ncamelize('private-docs/owner-invoice'); // 'privateDocs/ownerInvoice'\n```",
|
|
17847
17897
|
"itemtype": "method",
|
|
17848
17898
|
"name": "camelize",
|
|
@@ -17864,7 +17914,7 @@
|
|
|
17864
17914
|
},
|
|
17865
17915
|
{
|
|
17866
17916
|
"file": "packages/@ember/string/index.ts",
|
|
17867
|
-
"line":
|
|
17917
|
+
"line": 172,
|
|
17868
17918
|
"description": "Returns the UpperCamelCase form of a string.\n\n```javascript\nimport { classify } from '@ember/string';\n\nclassify('innerHTML'); // 'InnerHTML'\nclassify('action_name'); // 'ActionName'\nclassify('css-class-name'); // 'CssClassName'\nclassify('my favorite items'); // 'MyFavoriteItems'\nclassify('private-docs/owner-invoice'); // 'PrivateDocs/OwnerInvoice'\n```",
|
|
17869
17919
|
"itemtype": "method",
|
|
17870
17920
|
"name": "classify",
|
|
@@ -17886,7 +17936,7 @@
|
|
|
17886
17936
|
},
|
|
17887
17937
|
{
|
|
17888
17938
|
"file": "packages/@ember/string/index.ts",
|
|
17889
|
-
"line":
|
|
17939
|
+
"line": 194,
|
|
17890
17940
|
"description": "More general than decamelize. Returns the lower\\_case\\_and\\_underscored\nform of a string.\n\n```javascript\nimport { underscore } from '@ember/string';\n\nunderscore('innerHTML'); // 'inner_html'\nunderscore('action_name'); // 'action_name'\nunderscore('css-class-name'); // 'css_class_name'\nunderscore('my favorite items'); // 'my_favorite_items'\nunderscore('privateDocs/ownerInvoice'); // 'private_docs/owner_invoice'\n```",
|
|
17891
17941
|
"itemtype": "method",
|
|
17892
17942
|
"name": "underscore",
|
|
@@ -17908,7 +17958,7 @@
|
|
|
17908
17958
|
},
|
|
17909
17959
|
{
|
|
17910
17960
|
"file": "packages/@ember/string/index.ts",
|
|
17911
|
-
"line":
|
|
17961
|
+
"line": 217,
|
|
17912
17962
|
"description": "Returns the Capitalized form of a string\n\n```javascript\nimport { capitalize } from '@ember/string';\n\ncapitalize('innerHTML') // 'InnerHTML'\ncapitalize('action_name') // 'Action_name'\ncapitalize('css-class-name') // 'Css-class-name'\ncapitalize('my favorite items') // 'My favorite items'\ncapitalize('privateDocs/ownerInvoice'); // 'PrivateDocs/ownerInvoice'\n```",
|
|
17913
17963
|
"itemtype": "method",
|
|
17914
17964
|
"name": "capitalize",
|
|
@@ -18425,35 +18475,35 @@
|
|
|
18425
18475
|
"warnings": [
|
|
18426
18476
|
{
|
|
18427
18477
|
"message": "replacing incorrect tag: returns with return",
|
|
18428
|
-
"line": " packages/@ember/-internals/container/lib/container.ts:
|
|
18478
|
+
"line": " packages/@ember/-internals/container/lib/container.ts:188"
|
|
18429
18479
|
},
|
|
18430
18480
|
{
|
|
18431
18481
|
"message": "unknown tag: internal",
|
|
18432
|
-
"line": " packages/@ember/-internals/metal/lib/mixin.ts:
|
|
18482
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:597"
|
|
18433
18483
|
},
|
|
18434
18484
|
{
|
|
18435
18485
|
"message": "unknown tag: internal",
|
|
18436
|
-
"line": " packages/@ember/-internals/metal/lib/mixin.ts:
|
|
18486
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:620"
|
|
18437
18487
|
},
|
|
18438
18488
|
{
|
|
18439
18489
|
"message": "unknown tag: internal",
|
|
18440
|
-
"line": " packages/@ember/-internals/metal/lib/mixin.ts:
|
|
18490
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:641"
|
|
18441
18491
|
},
|
|
18442
18492
|
{
|
|
18443
18493
|
"message": "unknown tag: decorator",
|
|
18444
|
-
"line": " packages/@ember/-internals/metal/lib/tracked.ts:
|
|
18494
|
+
"line": " packages/@ember/-internals/metal/lib/tracked.ts:17"
|
|
18445
18495
|
},
|
|
18446
18496
|
{
|
|
18447
18497
|
"message": "replacing incorrect tag: returns with return",
|
|
18448
|
-
"line": " packages/@ember/-internals/routing/lib/system/route-info.ts:
|
|
18498
|
+
"line": " packages/@ember/-internals/routing/lib/system/route-info.ts:86"
|
|
18449
18499
|
},
|
|
18450
18500
|
{
|
|
18451
18501
|
"message": "replacing incorrect tag: returns with return",
|
|
18452
|
-
"line": " packages/@ember/-internals/routing/lib/system/route-info.ts:
|
|
18502
|
+
"line": " packages/@ember/-internals/routing/lib/system/route-info.ts:194"
|
|
18453
18503
|
},
|
|
18454
18504
|
{
|
|
18455
18505
|
"message": "replacing incorrect tag: returns with return",
|
|
18456
|
-
"line": " packages/@ember/-internals/routing/lib/system/route.ts:
|
|
18506
|
+
"line": " packages/@ember/-internals/routing/lib/system/route.ts:2410"
|
|
18457
18507
|
},
|
|
18458
18508
|
{
|
|
18459
18509
|
"message": "unknown tag: internal",
|
|
@@ -18485,7 +18535,7 @@
|
|
|
18485
18535
|
},
|
|
18486
18536
|
{
|
|
18487
18537
|
"message": "Missing item type\nThis is deprecated in favor of explicit injection of dependencies.\n\nReference: https://deprecations.emberjs.com/v3.x#toc_implicit-injections\n```\n\n@private\n@method injection\n@param {String} factoryName\n@param {String} property\n@param {String} injectionName\n@deprecated",
|
|
18488
|
-
"line": " packages/@ember/-internals/container/lib/registry.ts:
|
|
18538
|
+
"line": " packages/@ember/-internals/container/lib/registry.ts:450"
|
|
18489
18539
|
},
|
|
18490
18540
|
{
|
|
18491
18541
|
"message": "Missing item type\nThe `change` and `input` actions need to be overridden in the `Input`\nsubclass. Unfortunately, some ember-source builds currently uses babel\nloose mode to transpile its classes. Having the `@action` decorator on the\nsuper class creates a getter on the prototype, and when the subclass\noverrides the method, the loose mode transpilation would emit something\nlike `Subclass.prototype['change'] = function change() { ... }`, which\nfails because `prototype['change']` is getter-only/readonly. The correct\nsolution is to use `Object.defineProperty(prototype, 'change', ...)` but\nthat requires disabling loose mode. For now, the workaround is to add the\ndecorator only on the subclass. This is more of a configuration issue on\nour own builds and doesn't really affect apps.",
|
|
@@ -18509,7 +18559,7 @@
|
|
|
18509
18559
|
},
|
|
18510
18560
|
{
|
|
18511
18561
|
"message": "Missing item type\nThis reference is used to get the `[]` tag of iterables, so we can trigger\nupdates to `{{each}}` when it changes. It is put into place by a template\ntransform at build time, similar to the (-each-in) helper",
|
|
18512
|
-
"line": " packages/@ember/-internals/glimmer/lib/helpers/-track-array.ts:
|
|
18562
|
+
"line": " packages/@ember/-internals/glimmer/lib/helpers/-track-array.ts:12"
|
|
18513
18563
|
},
|
|
18514
18564
|
{
|
|
18515
18565
|
"message": "Missing item type\nNot sure why this is here, we use the owner of the template for lookups.\n\nMaybe this is for the render helper?",
|
|
@@ -18549,11 +18599,11 @@
|
|
|
18549
18599
|
},
|
|
18550
18600
|
{
|
|
18551
18601
|
"message": "Missing item type",
|
|
18552
|
-
"line": " packages/@ember/-internals/glimmer/lib/views/outlet.ts:
|
|
18602
|
+
"line": " packages/@ember/-internals/glimmer/lib/views/outlet.ts:104"
|
|
18553
18603
|
},
|
|
18554
18604
|
{
|
|
18555
18605
|
"message": "Missing item type",
|
|
18556
|
-
"line": " packages/@ember/-internals/glimmer/lib/views/outlet.ts:
|
|
18606
|
+
"line": " packages/@ember/-internals/glimmer/lib/views/outlet.ts:112"
|
|
18557
18607
|
},
|
|
18558
18608
|
{
|
|
18559
18609
|
"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",
|
|
@@ -18709,7 +18759,7 @@
|
|
|
18709
18759
|
},
|
|
18710
18760
|
{
|
|
18711
18761
|
"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.",
|
|
18712
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18762
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:473"
|
|
18713
18763
|
},
|
|
18714
18764
|
{
|
|
18715
18765
|
"message": "Missing item type",
|
|
@@ -18717,7 +18767,7 @@
|
|
|
18717
18767
|
},
|
|
18718
18768
|
{
|
|
18719
18769
|
"message": "Missing item type",
|
|
18720
|
-
"line": " packages/@ember/-internals/meta/lib/meta.ts:
|
|
18770
|
+
"line": " packages/@ember/-internals/meta/lib/meta.ts:578"
|
|
18721
18771
|
},
|
|
18722
18772
|
{
|
|
18723
18773
|
"message": "Missing item type",
|
|
@@ -18729,47 +18779,47 @@
|
|
|
18729
18779
|
},
|
|
18730
18780
|
{
|
|
18731
18781
|
"message": "Missing item type",
|
|
18732
|
-
"line": " packages/@ember/-internals/metal/lib/mixin.ts:
|
|
18782
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:523"
|
|
18733
18783
|
},
|
|
18734
18784
|
{
|
|
18735
18785
|
"message": "Missing item type",
|
|
18736
|
-
"line": " packages/@ember/-internals/metal/lib/mixin.ts:
|
|
18786
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:526"
|
|
18737
18787
|
},
|
|
18738
18788
|
{
|
|
18739
18789
|
"message": "Missing item type",
|
|
18740
|
-
"line": " packages/@ember/-internals/metal/lib/mixin.ts:
|
|
18790
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:529"
|
|
18741
18791
|
},
|
|
18742
18792
|
{
|
|
18743
18793
|
"message": "Missing item type",
|
|
18744
|
-
"line": " packages/@ember/-internals/metal/lib/mixin.ts:
|
|
18794
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:532"
|
|
18745
18795
|
},
|
|
18746
18796
|
{
|
|
18747
18797
|
"message": "Missing item type",
|
|
18748
|
-
"line": " packages/@ember/-internals/metal/lib/mixin.ts:
|
|
18798
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:535"
|
|
18749
18799
|
},
|
|
18750
18800
|
{
|
|
18751
18801
|
"message": "Missing item type",
|
|
18752
|
-
"line": " packages/@ember/-internals/metal/lib/mixin.ts:
|
|
18802
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:538"
|
|
18753
18803
|
},
|
|
18754
18804
|
{
|
|
18755
18805
|
"message": "Missing item type",
|
|
18756
|
-
"line": " packages/@ember/-internals/metal/lib/mixin.ts:
|
|
18806
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:579"
|
|
18757
18807
|
},
|
|
18758
18808
|
{
|
|
18759
18809
|
"message": "Missing item type",
|
|
18760
|
-
"line": " packages/@ember/-internals/metal/lib/mixin.ts:
|
|
18810
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:636"
|
|
18761
18811
|
},
|
|
18762
18812
|
{
|
|
18763
18813
|
"message": "Missing item type",
|
|
18764
|
-
"line": " packages/@ember/-internals/metal/lib/mixin.ts:
|
|
18814
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:662"
|
|
18765
18815
|
},
|
|
18766
18816
|
{
|
|
18767
18817
|
"message": "Missing item type",
|
|
18768
|
-
"line": " packages/@ember/-internals/metal/lib/mixin.ts:
|
|
18818
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:669"
|
|
18769
18819
|
},
|
|
18770
18820
|
{
|
|
18771
18821
|
"message": "Missing item type",
|
|
18772
|
-
"line": " packages/@ember/-internals/metal/lib/mixin.ts:
|
|
18822
|
+
"line": " packages/@ember/-internals/metal/lib/mixin.ts:674"
|
|
18773
18823
|
},
|
|
18774
18824
|
{
|
|
18775
18825
|
"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.",
|
|
@@ -18777,7 +18827,19 @@
|
|
|
18777
18827
|
},
|
|
18778
18828
|
{
|
|
18779
18829
|
"message": "Missing item type",
|
|
18780
|
-
"line": " packages/@ember/-internals/metal/lib/tracked.ts:
|
|
18830
|
+
"line": " packages/@ember/-internals/metal/lib/tracked.ts:17"
|
|
18831
|
+
},
|
|
18832
|
+
{
|
|
18833
|
+
"message": "Missing item type",
|
|
18834
|
+
"line": " packages/@ember/-internals/owner/index.ts:36"
|
|
18835
|
+
},
|
|
18836
|
+
{
|
|
18837
|
+
"message": "Missing item type",
|
|
18838
|
+
"line": " packages/@ember/-internals/owner/index.ts:38"
|
|
18839
|
+
},
|
|
18840
|
+
{
|
|
18841
|
+
"message": "Missing item type",
|
|
18842
|
+
"line": " packages/@ember/-internals/owner/index.ts:40"
|
|
18781
18843
|
},
|
|
18782
18844
|
{
|
|
18783
18845
|
"message": "Missing item type",
|
|
@@ -18789,7 +18851,7 @@
|
|
|
18789
18851
|
},
|
|
18790
18852
|
{
|
|
18791
18853
|
"message": "Missing item type",
|
|
18792
|
-
"line": " packages/@ember/-internals/routing/lib/location/auto_location.ts:
|
|
18854
|
+
"line": " packages/@ember/-internals/routing/lib/location/auto_location.ts:300"
|
|
18793
18855
|
},
|
|
18794
18856
|
{
|
|
18795
18857
|
"message": "Missing item type",
|
|
@@ -18809,15 +18871,15 @@
|
|
|
18809
18871
|
},
|
|
18810
18872
|
{
|
|
18811
18873
|
"message": "Missing item type\nFinds the name of the substate route if it exists for the given route. A\nsubstate route is of the form `route_state`, such as `foo_loading`.",
|
|
18812
|
-
"line": " packages/@ember/-internals/routing/lib/system/router.ts:
|
|
18874
|
+
"line": " packages/@ember/-internals/routing/lib/system/router.ts:1640"
|
|
18813
18875
|
},
|
|
18814
18876
|
{
|
|
18815
18877
|
"message": "Missing item type\nFinds the name of the state route if it exists for the given route. A state\nroute is of the form `route.state`, such as `foo.loading`. Properly Handles\n`application` named routes.",
|
|
18816
|
-
"line": " packages/@ember/-internals/routing/lib/system/router.ts:
|
|
18878
|
+
"line": " packages/@ember/-internals/routing/lib/system/router.ts:1661"
|
|
18817
18879
|
},
|
|
18818
18880
|
{
|
|
18819
18881
|
"message": "Missing item type\nDetermines whether or not a route has been defined by checking that the route\nis in the Router's map and the owner has a registration for that route.",
|
|
18820
|
-
"line": " packages/@ember/-internals/routing/lib/system/router.ts:
|
|
18882
|
+
"line": " packages/@ember/-internals/routing/lib/system/router.ts:1683"
|
|
18821
18883
|
},
|
|
18822
18884
|
{
|
|
18823
18885
|
"message": "Missing item type\nThis mixin allows for Ember objects to subscribe to and emit events.",
|
|
@@ -18857,39 +18919,39 @@
|
|
|
18857
18919
|
},
|
|
18858
18920
|
{
|
|
18859
18921
|
"message": "Missing item type\nSets the provided key or path to the value.",
|
|
18860
|
-
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:
|
|
18922
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:24"
|
|
18861
18923
|
},
|
|
18862
18924
|
{
|
|
18863
18925
|
"message": "Missing item type\nSets a list of properties at once. These properties are set inside\na single `beginPropertyChanges` and `endPropertyChanges` batch, so\nobservers will be buffered.",
|
|
18864
|
-
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:
|
|
18926
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:30"
|
|
18865
18927
|
},
|
|
18866
18928
|
{
|
|
18867
18929
|
"message": "Missing item type\nConvenience method to call `propertyWillChange` and `propertyDidChange` in\nsuccession.",
|
|
18868
|
-
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:
|
|
18930
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:37"
|
|
18869
18931
|
},
|
|
18870
18932
|
{
|
|
18871
18933
|
"message": "Missing item type\nAdds an observer on a property.",
|
|
18872
|
-
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:
|
|
18934
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:43"
|
|
18873
18935
|
},
|
|
18874
18936
|
{
|
|
18875
18937
|
"message": "Missing item type\nRemove an observer you have previously registered on this object. Pass\nthe same key, target, and method you passed to `addObserver()` and your\ntarget will no longer receive notifications.",
|
|
18876
|
-
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:
|
|
18938
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:49"
|
|
18877
18939
|
},
|
|
18878
18940
|
{
|
|
18879
18941
|
"message": "Missing item type\nSet the value of a property to the current value plus some amount.",
|
|
18880
|
-
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:
|
|
18942
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:62"
|
|
18881
18943
|
},
|
|
18882
18944
|
{
|
|
18883
18945
|
"message": "Missing item type\nSet the value of a property to the current value minus some amount.",
|
|
18884
|
-
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:
|
|
18946
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:68"
|
|
18885
18947
|
},
|
|
18886
18948
|
{
|
|
18887
18949
|
"message": "Missing item type\nSet the value of a boolean property to the opposite of its\ncurrent value.",
|
|
18888
|
-
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:
|
|
18950
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:74"
|
|
18889
18951
|
},
|
|
18890
18952
|
{
|
|
18891
18953
|
"message": "Missing item type\nReturns the cached value of a computed property, if it exists.\nThis allows you to inspect the value of a computed property\nwithout accidentally invoking it if it is intended to be\ngenerated lazily.",
|
|
18892
|
-
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:
|
|
18954
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:80"
|
|
18893
18955
|
},
|
|
18894
18956
|
{
|
|
18895
18957
|
"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",
|
|
@@ -18969,23 +19031,7 @@
|
|
|
18969
19031
|
},
|
|
18970
19032
|
{
|
|
18971
19033
|
"message": "Missing item type",
|
|
18972
|
-
"line": " packages/@ember/-internals/runtime/lib/system/object.d.ts:
|
|
18973
|
-
},
|
|
18974
|
-
{
|
|
18975
|
-
"message": "Missing item type",
|
|
18976
|
-
"line": " packages/@ember/-internals/runtime/lib/system/object.d.ts:14"
|
|
18977
|
-
},
|
|
18978
|
-
{
|
|
18979
|
-
"message": "Missing item type",
|
|
18980
|
-
"line": " packages/@ember/-internals/runtime/lib/system/object.d.ts:31"
|
|
18981
|
-
},
|
|
18982
|
-
{
|
|
18983
|
-
"message": "Missing item type",
|
|
18984
|
-
"line": " packages/@ember/-internals/runtime/lib/system/object.d.ts:34"
|
|
18985
|
-
},
|
|
18986
|
-
{
|
|
18987
|
-
"message": "Missing item type",
|
|
18988
|
-
"line": " packages/@ember/-internals/runtime/lib/system/object.d.ts:41"
|
|
19034
|
+
"line": " packages/@ember/-internals/runtime/lib/system/object.d.ts:9"
|
|
18989
19035
|
},
|
|
18990
19036
|
{
|
|
18991
19037
|
"message": "Missing item type",
|
|
@@ -19035,6 +19081,10 @@
|
|
|
19035
19081
|
"message": "Missing item type\nNavigate the instance to a particular URL. This is useful in tests, for\nexample, or to tell the app to start at a particular URL. This method\nreturns a promise that resolves with the app instance when the transition\nis complete, or rejects if the transion was aborted due to an error.",
|
|
19036
19082
|
"line": " packages/@ember/application/instance.js:223"
|
|
19037
19083
|
},
|
|
19084
|
+
{
|
|
19085
|
+
"message": "Missing item type",
|
|
19086
|
+
"line": " packages/@ember/controller/lib/controller_mixin.d.ts:8"
|
|
19087
|
+
},
|
|
19038
19088
|
{
|
|
19039
19089
|
"message": "Missing item type\nUnfortunately, a lot of existing code assumes booting an instance is\nsynchronous – specifically, a lot of tests assume the last call to\n`app.advanceReadiness()` or `app.reset()` will result in a new instance\nbeing fully-booted when the current runloop completes.\n\nWe would like new code (like the `visit` API) to stop making this\nassumption, so we created the asynchronous version above that returns a\npromise. But until we have migrated all the code, we would have to expose\nthis method for use *internally* in places where we need to boot an instance\nsynchronously.",
|
|
19040
19090
|
"line": " packages/@ember/engine/instance.js:85"
|