ember-source 5.4.0-alpha.2 → 5.4.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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": "5.4.0-alpha.2"
6
+ "version": "5.4.0-alpha.4"
7
7
  },
8
8
  "files": {
9
9
  "node_modules/rsvp/lib/rsvp/promise/all.js": {
@@ -229,9 +229,7 @@
229
229
  },
230
230
  "packages/@ember/-internals/glimmer/lib/components/link-to.ts": {
231
231
  "name": "packages/@ember/-internals/glimmer/lib/components/link-to.ts",
232
- "modules": {
233
- "@ember/routing": 1
234
- },
232
+ "modules": {},
235
233
  "classes": {},
236
234
  "fors": {
237
235
  "Ember.Templates.components": 1,
@@ -1382,7 +1380,7 @@
1382
1380
  "packages/@ember/routing/lib/controller_for.ts": {
1383
1381
  "name": "packages/@ember/routing/lib/controller_for.ts",
1384
1382
  "modules": {
1385
- "ember/routing": 1
1383
+ "@ember/routing": 1
1386
1384
  },
1387
1385
  "classes": {},
1388
1386
  "fors": {
@@ -1798,12 +1796,13 @@
1798
1796
  },
1799
1797
  "fors": {
1800
1798
  "Ember.Templates.helpers": 1,
1801
- "@ember/routing": 1
1799
+ "@ember/routing": 1,
1800
+ "Ember": 1
1802
1801
  },
1803
1802
  "namespaces": {},
1804
1803
  "tag": "module",
1805
- "file": "packages/@ember/-internals/glimmer/lib/components/link-to.ts",
1806
- "line": 251
1804
+ "file": "packages/@ember/routing/lib/controller_for.ts",
1805
+ "line": 5
1807
1806
  },
1808
1807
  "ember": {
1809
1808
  "name": "ember",
@@ -2337,19 +2336,6 @@
2337
2336
  "access": "public",
2338
2337
  "tagname": ""
2339
2338
  },
2340
- "ember/routing": {
2341
- "name": "ember/routing",
2342
- "submodules": {},
2343
- "elements": {},
2344
- "classes": {},
2345
- "fors": {
2346
- "Ember": 1
2347
- },
2348
- "namespaces": {},
2349
- "tag": "module",
2350
- "file": "packages/@ember/routing/lib/controller_for.ts",
2351
- "line": 5
2352
- },
2353
2339
  "@ember/routing/hash-location": {
2354
2340
  "name": "@ember/routing/hash-location",
2355
2341
  "submodules": {},
@@ -15034,7 +15020,7 @@
15034
15020
  {
15035
15021
  "file": "packages/@ember/renderer/index.ts",
15036
15022
  "line": 11,
15037
- "description": "Returns a promise which will resolve when rendering has completed. In\nthis context, rendering is completed when all auto-tracked state that is\nconsumed in the template (including any tracked state in models, services,\netc. that are then used in a template) has been updated in the DOM.\n\nFor example, in a test you might want to update some tracked state and\nthen run some assertions after rendering has completed. You _could_ use\n`await settled()` in that location, but in some contexts you don't want to\nwait for full settledness (which includes test waiters, pending AJAX/fetch,\nrun loops, etc) but instead only want to know when that updated value has\nbeen rendered in the DOM. **THAT** is what `await renderSettled()` is\n_perfect_ for.\n\n```js\nimport { renderSettled } from '@ember/renderer';\nimport { render } from '@ember/test-helpers';\nimport { tracked } from '@glimmer/tracking';\nimport { hbs } from 'ember-cli-htmlbars';\nimport { setupRenderingTest } from 'my-app/tests/helpers';\nimport { module, test } from 'qunit';\n\nmodule('Integration | Component | profile-card', function (hooks) {\n setupRenderingTest(hooks);\n\n test(\"it renders the person's name\", async function (assert) {\n class Person {\n @tracked name = '';\n }\n\n this.person = new Person();\n this.person.name = 'John';\n\n await render(hbs`\n <ProfileCard @name={{this.person.name}} />\n `);\n\n assert.dom(this.element).hasText('John');\n\n this.person.name = 'Jane';\n\n await renderSettled(); // Wait until rendering has completed.\n\n assert.dom(this.element).hasText('Jane');\n });\n});\n```",
15023
+ "description": "Returns a promise which will resolve when rendering has completed. In\nthis context, rendering is completed when all auto-tracked state that is\nconsumed in the template (including any tracked state in models, services,\netc. that are then used in a template) has been updated in the DOM.\n\nFor example, in a test you might want to update some tracked state and\nthen run some assertions after rendering has completed. You _could_ use\n`await settled()` in that location, but in some contexts you don't want to\nwait for full settledness (which includes test waiters, pending AJAX/fetch,\nrun loops, etc) but instead only want to know when that updated value has\nbeen rendered in the DOM. **THAT** is what `await renderSettled()` is\n_perfect_ for.\n\n```js\nimport { renderSettled } from '@ember/renderer';\nimport { render } from '@ember/test-helpers';\nimport { tracked } from '@glimmer/tracking';\nimport { hbs } from 'ember-cli-htmlbars';\nimport { setupRenderingTest } from 'my-app/tests/helpers';\nimport { module, test } from 'qunit';\n\nmodule('Integration | Component | profile-card', function (hooks) {\n setupRenderingTest(hooks);\n\n test(\"it renders the person's name\", async function (assert) {\n class Person {\n @tracked name = '';\n }\n\n this.person = new Person();\n this.person.name = 'John';\n\n await render(hbs`\n <ProfileCard @name={{this.person.name}} />\n `);\n\n assert.dom().hasText('John');\n\n this.person.name = 'Jane';\n\n await renderSettled(); // Wait until rendering has completed.\n\n assert.dom().hasText('Jane');\n });\n});\n```",
15038
15024
  "itemtype": "method",
15039
15025
  "name": "renderSettled",
15040
15026
  "return": {
@@ -15055,7 +15041,7 @@
15055
15041
  "access": "private",
15056
15042
  "tagname": "",
15057
15043
  "class": "Ember",
15058
- "module": "ember/routing"
15044
+ "module": "@ember/routing"
15059
15045
  },
15060
15046
  {
15061
15047
  "file": "packages/@ember/routing/lib/generate_controller.ts",
@@ -15066,7 +15052,7 @@
15066
15052
  "access": "private",
15067
15053
  "tagname": "",
15068
15054
  "class": "Ember",
15069
- "module": "ember/routing"
15055
+ "module": "@ember/routing"
15070
15056
  },
15071
15057
  {
15072
15058
  "file": "packages/@ember/routing/lib/generate_controller.ts",
@@ -15078,7 +15064,7 @@
15078
15064
  "tagname": "",
15079
15065
  "since": "1.3.0",
15080
15066
  "class": "Ember",
15081
- "module": "ember/routing"
15067
+ "module": "@ember/routing"
15082
15068
  },
15083
15069
  {
15084
15070
  "file": "packages/@ember/routing/lib/location-utils.ts",
@@ -15086,7 +15072,7 @@
15086
15072
  "access": "private",
15087
15073
  "tagname": "Returns the current `location.pathname`, normalized for IE inconsistencies.",
15088
15074
  "class": "RoutingService",
15089
- "module": "ember/routing"
15075
+ "module": "@ember/routing"
15090
15076
  },
15091
15077
  {
15092
15078
  "file": "packages/@ember/routing/lib/location-utils.ts",
@@ -15094,7 +15080,7 @@
15094
15080
  "access": "private",
15095
15081
  "tagname": "Returns the current `location.search`.",
15096
15082
  "class": "RoutingService",
15097
- "module": "ember/routing"
15083
+ "module": "@ember/routing"
15098
15084
  },
15099
15085
  {
15100
15086
  "file": "packages/@ember/routing/lib/location-utils.ts",
@@ -15102,7 +15088,7 @@
15102
15088
  "access": "private",
15103
15089
  "tagname": "Returns the hash or empty string",
15104
15090
  "class": "RoutingService",
15105
- "module": "ember/routing"
15091
+ "module": "@ember/routing"
15106
15092
  },
15107
15093
  {
15108
15094
  "file": "packages/@ember/routing/lib/location-utils.ts",
@@ -15111,7 +15097,7 @@
15111
15097
  "access": "private",
15112
15098
  "tagname": "",
15113
15099
  "class": "RoutingService",
15114
- "module": "ember/routing"
15100
+ "module": "@ember/routing"
15115
15101
  },
15116
15102
  {
15117
15103
  "file": "packages/@ember/routing/hash-location.ts",
@@ -15725,7 +15711,7 @@
15725
15711
  {
15726
15712
  "file": "packages/@ember/routing/route.ts",
15727
15713
  "line": 91,
15728
- "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.",
15714
+ "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.router.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.",
15729
15715
  "itemtype": "event",
15730
15716
  "name": "willTransition",
15731
15717
  "params": [
@@ -15780,7 +15766,7 @@
15780
15766
  {
15781
15767
  "file": "packages/@ember/routing/route.ts",
15782
15768
  "line": 198,
15783
- "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```",
15769
+ "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';\nimport { service } from '@ember/service';\n\nexport default class AdminRoute extends Route {\n @service router;\n\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.router.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```",
15784
15770
  "itemtype": "event",
15785
15771
  "name": "error",
15786
15772
  "params": [
@@ -15803,31 +15789,31 @@
15803
15789
  },
15804
15790
  {
15805
15791
  "file": "packages/@ember/routing/route.ts",
15806
- "line": 268,
15792
+ "line": 271,
15807
15793
  "class": "Route",
15808
15794
  "module": "@ember/routing/route"
15809
15795
  },
15810
15796
  {
15811
15797
  "file": "packages/@ember/routing/route.ts",
15812
- "line": 270,
15798
+ "line": 273,
15813
15799
  "class": "Route",
15814
15800
  "module": "@ember/routing/route"
15815
15801
  },
15816
15802
  {
15817
15803
  "file": "packages/@ember/routing/route.ts",
15818
- "line": 273,
15804
+ "line": 276,
15819
15805
  "class": "Route",
15820
15806
  "module": "@ember/routing/route"
15821
15807
  },
15822
15808
  {
15823
15809
  "file": "packages/@ember/routing/route.ts",
15824
- "line": 275,
15810
+ "line": 278,
15825
15811
  "class": "Route",
15826
15812
  "module": "@ember/routing/route"
15827
15813
  },
15828
15814
  {
15829
15815
  "file": "packages/@ember/routing/route.ts",
15830
- "line": 303,
15816
+ "line": 306,
15831
15817
  "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.",
15832
15818
  "itemtype": "method",
15833
15819
  "name": "serialize",
@@ -15855,7 +15841,7 @@
15855
15841
  },
15856
15842
  {
15857
15843
  "file": "packages/@ember/routing/route.ts",
15858
- "line": 371,
15844
+ "line": 374,
15859
15845
  "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```",
15860
15846
  "itemtype": "property",
15861
15847
  "name": "queryParams",
@@ -15868,7 +15854,7 @@
15868
15854
  },
15869
15855
  {
15870
15856
  "file": "packages/@ember/routing/route.ts",
15871
- "line": 424,
15857
+ "line": 427,
15872
15858
  "description": "The name of the template to use by default when rendering this route's\ntemplate.\n\n```app/routes/posts/list.js\nimport Route from '@ember/routing/route';\n\nexport default class PostsListRoute extends Route {\n templateName = 'posts/list';\n}\n```\n\n```app/routes/posts/index.js\nimport PostsListRoute from '../posts/list';\n\nexport default class PostsIndexRoute extends PostsListRoute {};\n```\n\n```app/routes/posts/archived.js\nimport PostsListRoute from '../posts/list';\n\nexport default class PostsArchivedRoute extends PostsListRoute {};\n```",
15873
15859
  "itemtype": "property",
15874
15860
  "name": "templateName",
@@ -15882,7 +15868,7 @@
15882
15868
  },
15883
15869
  {
15884
15870
  "file": "packages/@ember/routing/route.ts",
15885
- "line": 457,
15871
+ "line": 460,
15886
15872
  "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.",
15887
15873
  "itemtype": "property",
15888
15874
  "name": "controllerName",
@@ -15896,7 +15882,7 @@
15896
15882
  },
15897
15883
  {
15898
15884
  "file": "packages/@ember/routing/route.ts",
15899
- "line": 480,
15885
+ "line": 483,
15900
15886
  "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```",
15901
15887
  "itemtype": "property",
15902
15888
  "name": "controller",
@@ -15909,7 +15895,7 @@
15909
15895
  },
15910
15896
  {
15911
15897
  "file": "packages/@ember/routing/route.ts",
15912
- "line": 511,
15898
+ "line": 514,
15913
15899
  "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`.",
15914
15900
  "itemtype": "property",
15915
15901
  "name": "routeName",
@@ -15922,7 +15908,7 @@
15922
15908
  },
15923
15909
  {
15924
15910
  "file": "packages/@ember/routing/route.ts",
15925
- "line": 525,
15911
+ "line": 528,
15926
15912
  "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`.",
15927
15913
  "itemtype": "property",
15928
15914
  "name": "fullRouteName",
@@ -15935,7 +15921,7 @@
15935
15921
  },
15936
15922
  {
15937
15923
  "file": "packages/@ember/routing/route.ts",
15938
- "line": 540,
15924
+ "line": 543,
15939
15925
  "description": "Sets the name for this route, including a fully resolved name for routes\ninside engines.",
15940
15926
  "access": "private",
15941
15927
  "tagname": "",
@@ -15953,7 +15939,7 @@
15953
15939
  },
15954
15940
  {
15955
15941
  "file": "packages/@ember/routing/route.ts",
15956
- "line": 555,
15942
+ "line": 558,
15957
15943
  "access": "private",
15958
15944
  "tagname": "",
15959
15945
  "itemtype": "method",
@@ -15963,7 +15949,7 @@
15963
15949
  },
15964
15950
  {
15965
15951
  "file": "packages/@ember/routing/route.ts",
15966
- "line": 589,
15952
+ "line": 592,
15967
15953
  "access": "private",
15968
15954
  "tagname": "",
15969
15955
  "itemtype": "property",
@@ -15973,7 +15959,7 @@
15973
15959
  },
15974
15960
  {
15975
15961
  "file": "packages/@ember/routing/route.ts",
15976
- "line": 598,
15962
+ "line": 601,
15977
15963
  "access": "private",
15978
15964
  "tagname": "",
15979
15965
  "itemtype": "method",
@@ -15983,7 +15969,7 @@
15983
15969
  },
15984
15970
  {
15985
15971
  "file": "packages/@ember/routing/route.ts",
15986
- "line": 606,
15972
+ "line": 609,
15987
15973
  "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`",
15988
15974
  "itemtype": "method",
15989
15975
  "name": "paramsFor",
@@ -16006,7 +15992,7 @@
16006
15992
  },
16007
15993
  {
16008
15994
  "file": "packages/@ember/routing/route.ts",
16009
- "line": 687,
15995
+ "line": 690,
16010
15996
  "description": "Serializes the query parameter key",
16011
15997
  "itemtype": "method",
16012
15998
  "name": "serializeQueryParamKey",
@@ -16024,7 +16010,7 @@
16024
16010
  },
16025
16011
  {
16026
16012
  "file": "packages/@ember/routing/route.ts",
16027
- "line": 698,
16013
+ "line": 701,
16028
16014
  "description": "Serializes value of the query parameter based on defaultValueType",
16029
16015
  "itemtype": "method",
16030
16016
  "name": "serializeQueryParam",
@@ -16052,7 +16038,7 @@
16052
16038
  },
16053
16039
  {
16054
16040
  "file": "packages/@ember/routing/route.ts",
16055
- "line": 714,
16041
+ "line": 717,
16056
16042
  "description": "Deserializes value of the query parameter based on defaultValueType",
16057
16043
  "itemtype": "method",
16058
16044
  "name": "deserializeQueryParam",
@@ -16080,7 +16066,7 @@
16080
16066
  },
16081
16067
  {
16082
16068
  "file": "packages/@ember/routing/route.ts",
16083
- "line": 730,
16069
+ "line": 733,
16084
16070
  "access": "private",
16085
16071
  "tagname": "",
16086
16072
  "itemtype": "property",
@@ -16090,7 +16076,7 @@
16090
16076
  },
16091
16077
  {
16092
16078
  "file": "packages/@ember/routing/route.ts",
16093
- "line": 746,
16079
+ "line": 749,
16094
16080
  "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```",
16095
16081
  "itemtype": "method",
16096
16082
  "name": "resetController",
@@ -16119,7 +16105,7 @@
16119
16105
  },
16120
16106
  {
16121
16107
  "file": "packages/@ember/routing/route.ts",
16122
- "line": 776,
16108
+ "line": 779,
16123
16109
  "access": "private",
16124
16110
  "tagname": "",
16125
16111
  "itemtype": "method",
@@ -16129,7 +16115,7 @@
16129
16115
  },
16130
16116
  {
16131
16117
  "file": "packages/@ember/routing/route.ts",
16132
- "line": 787,
16118
+ "line": 790,
16133
16119
  "access": "private",
16134
16120
  "tagname": "",
16135
16121
  "itemtype": "method",
@@ -16140,7 +16126,7 @@
16140
16126
  },
16141
16127
  {
16142
16128
  "file": "packages/@ember/routing/route.ts",
16143
- "line": 801,
16129
+ "line": 804,
16144
16130
  "access": "private",
16145
16131
  "tagname": "",
16146
16132
  "itemtype": "method",
@@ -16150,7 +16136,7 @@
16150
16136
  },
16151
16137
  {
16152
16138
  "file": "packages/@ember/routing/route.ts",
16153
- "line": 812,
16139
+ "line": 815,
16154
16140
  "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```",
16155
16141
  "itemtype": "event",
16156
16142
  "name": "activate",
@@ -16162,7 +16148,7 @@
16162
16148
  },
16163
16149
  {
16164
16150
  "file": "packages/@ember/routing/route.ts",
16165
- "line": 832,
16151
+ "line": 835,
16166
16152
  "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```",
16167
16153
  "itemtype": "event",
16168
16154
  "name": "deactivate",
@@ -16174,7 +16160,7 @@
16174
16160
  },
16175
16161
  {
16176
16162
  "file": "packages/@ember/routing/route.ts",
16177
- "line": 852,
16163
+ "line": 855,
16178
16164
  "description": "This hook is executed when the router completely exits this route. It is\nnot executed when the model for the route changes.",
16179
16165
  "itemtype": "method",
16180
16166
  "name": "deactivate",
@@ -16193,7 +16179,7 @@
16193
16179
  },
16194
16180
  {
16195
16181
  "file": "packages/@ember/routing/route.ts",
16196
- "line": 863,
16182
+ "line": 866,
16197
16183
  "description": "This hook is executed when the router enters the route. It is not executed\nwhen the model for the route changes.",
16198
16184
  "itemtype": "method",
16199
16185
  "name": "activate",
@@ -16212,7 +16198,7 @@
16212
16198
  },
16213
16199
  {
16214
16200
  "file": "packages/@ember/routing/route.ts",
16215
- "line": 874,
16201
+ "line": 877,
16216
16202
  "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.",
16217
16203
  "itemtype": "method",
16218
16204
  "name": "intermediateTransitionTo",
@@ -16236,7 +16222,7 @@
16236
16222
  },
16237
16223
  {
16238
16224
  "file": "packages/@ember/routing/route.ts",
16239
- "line": 896,
16225
+ "line": 899,
16240
16226
  "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.",
16241
16227
  "itemtype": "method",
16242
16228
  "name": "refresh",
@@ -16252,7 +16238,7 @@
16252
16238
  },
16253
16239
  {
16254
16240
  "file": "packages/@ember/routing/route.ts",
16255
- "line": 922,
16241
+ "line": 925,
16256
16242
  "description": "This hook is the entry point for router.js",
16257
16243
  "access": "private",
16258
16244
  "tagname": "",
@@ -16263,8 +16249,8 @@
16263
16249
  },
16264
16250
  {
16265
16251
  "file": "packages/@ember/routing/route.ts",
16266
- "line": 997,
16267
- "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.",
16252
+ "line": 1000,
16253
+ "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`router.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.",
16268
16254
  "itemtype": "method",
16269
16255
  "name": "beforeModel",
16270
16256
  "params": [
@@ -16286,8 +16272,8 @@
16286
16272
  },
16287
16273
  {
16288
16274
  "file": "packages/@ember/routing/route.ts",
16289
- "line": 1032,
16290
- "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.",
16275
+ "line": 1035,
16276
+ "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';\nimport { service } from '@ember/service';\n\nexport default class PostsRoute extends Route {\n @service router;\n\n afterModel(posts, transition) {\n if (posts.get('length') === 1) {\n this.router.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.",
16291
16277
  "itemtype": "method",
16292
16278
  "name": "afterModel",
16293
16279
  "params": [
@@ -16314,8 +16300,8 @@
16314
16300
  },
16315
16301
  {
16316
16302
  "file": "packages/@ember/routing/route.ts",
16317
- "line": 1073,
16318
- "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.",
16303
+ "line": 1079,
16304
+ "description": "A hook you can implement to optionally redirect to another route.\n\nCalling `this.router.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.router.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.",
16319
16305
  "itemtype": "method",
16320
16306
  "name": "redirect",
16321
16307
  "params": [
@@ -16338,7 +16324,7 @@
16338
16324
  },
16339
16325
  {
16340
16326
  "file": "packages/@ember/routing/route.ts",
16341
- "line": 1098,
16327
+ "line": 1104,
16342
16328
  "description": "Called when the context is changed by router.js.",
16343
16329
  "access": "private",
16344
16330
  "tagname": "",
@@ -16349,8 +16335,8 @@
16349
16335
  },
16350
16336
  {
16351
16337
  "file": "packages/@ember/routing/route.ts",
16352
- "line": 1108,
16353
- "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\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\nNote that the legacy behavior of automatically defining a model\nhook when a dynamic segment ending in `_id` is present is\n[deprecated](https://deprecations.emberjs.com/v5.x#toc_deprecate-implicit-route-model).\nYou should explicitly define a model hook whenever any segments are\npresent.\n\nExample\n\n```app/routes/post.js\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class PostRoute extends Route {\n @service store;\n\n model(params) {\n return this.store.findRecord('post', params.post_id);\n }\n}\n```",
16338
+ "line": 1114,
16339
+ "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\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.router.transitionTo('posts');\n\n// model passed in, so model hook not called\nthePost = store.findRecord('post', 1);\nthis.router.transitionTo('post', thePost);\n\n// integer passed in, model hook is called\nthis.router.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.router.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\nNote that the legacy behavior of automatically defining a model\nhook when a dynamic segment ending in `_id` is present is\n[deprecated](https://deprecations.emberjs.com/v5.x#toc_deprecate-implicit-route-model).\nYou should explicitly define a model hook whenever any segments are\npresent.\n\nExample\n\n```app/routes/post.js\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class PostRoute extends Route {\n @service store;\n\n model(params) {\n return this.store.findRecord('post', params.post_id);\n }\n}\n```",
16354
16340
  "itemtype": "method",
16355
16341
  "name": "model",
16356
16342
  "params": [
@@ -16377,7 +16363,7 @@
16377
16363
  },
16378
16364
  {
16379
16365
  "file": "packages/@ember/routing/route.ts",
16380
- "line": 1226,
16366
+ "line": 1232,
16381
16367
  "access": "private",
16382
16368
  "tagname": "",
16383
16369
  "itemtype": "method",
@@ -16403,7 +16389,7 @@
16403
16389
  },
16404
16390
  {
16405
16391
  "file": "packages/@ember/routing/route.ts",
16406
- "line": 1239,
16392
+ "line": 1245,
16407
16393
  "itemtype": "method",
16408
16394
  "name": "findModel",
16409
16395
  "params": [
@@ -16425,7 +16411,7 @@
16425
16411
  },
16426
16412
  {
16427
16413
  "file": "packages/@ember/routing/route.ts",
16428
- "line": 1266,
16414
+ "line": 1273,
16429
16415
  "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';\nimport { service } from '@ember/service';\n\nexport default class PhotosRoute extends Route {\n @service store;\n\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.",
16430
16416
  "example": [
16431
16417
  " 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```"
@@ -16458,7 +16444,7 @@
16458
16444
  },
16459
16445
  {
16460
16446
  "file": "packages/@ember/routing/route.ts",
16461
- "line": 1345,
16447
+ "line": 1352,
16462
16448
  "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```",
16463
16449
  "itemtype": "method",
16464
16450
  "name": "controllerFor",
@@ -16481,7 +16467,7 @@
16481
16467
  },
16482
16468
  {
16483
16469
  "file": "packages/@ember/routing/route.ts",
16484
- "line": 1399,
16470
+ "line": 1406,
16485
16471
  "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```",
16486
16472
  "itemtype": "method",
16487
16473
  "name": "generateController",
@@ -16499,7 +16485,7 @@
16499
16485
  },
16500
16486
  {
16501
16487
  "file": "packages/@ember/routing/route.ts",
16502
- "line": 1427,
16488
+ "line": 1434,
16503
16489
  "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```",
16504
16490
  "itemtype": "method",
16505
16491
  "name": "modelFor",
@@ -16522,7 +16508,7 @@
16522
16508
  },
16523
16509
  {
16524
16510
  "file": "packages/@ember/routing/route.ts",
16525
- "line": 1499,
16511
+ "line": 1506,
16526
16512
  "description": "`this[RENDER]` is used to render a template into a region of another template\n(indicated by an `{{outlet}}`).",
16527
16513
  "itemtype": "method",
16528
16514
  "name": "this[RENDER]",
@@ -16572,7 +16558,7 @@
16572
16558
  },
16573
16559
  {
16574
16560
  "file": "packages/@ember/routing/route.ts",
16575
- "line": 1526,
16561
+ "line": 1533,
16576
16562
  "access": "private",
16577
16563
  "tagname": "",
16578
16564
  "itemtype": "method",
@@ -16582,7 +16568,7 @@
16582
16568
  },
16583
16569
  {
16584
16570
  "file": "packages/@ember/routing/route.ts",
16585
- "line": 1539,
16571
+ "line": 1546,
16586
16572
  "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```",
16587
16573
  "itemtype": "method",
16588
16574
  "name": "buildRouteInfoMetadata",
@@ -16597,13 +16583,13 @@
16597
16583
  },
16598
16584
  {
16599
16585
  "file": "packages/@ember/routing/route.ts",
16600
- "line": 1590,
16586
+ "line": 1597,
16601
16587
  "class": "Route",
16602
16588
  "module": "@ember/routing/route"
16603
16589
  },
16604
16590
  {
16605
16591
  "file": "packages/@ember/routing/route.ts",
16606
- "line": 1639,
16592
+ "line": 1646,
16607
16593
  "access": "private",
16608
16594
  "tagname": "",
16609
16595
  "itemtype": "property",
@@ -16613,7 +16599,7 @@
16613
16599
  },
16614
16600
  {
16615
16601
  "file": "packages/@ember/routing/route.ts",
16616
- "line": 1778,
16602
+ "line": 1785,
16617
16603
  "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```",
16618
16604
  "itemtype": "method",
16619
16605
  "name": "send",
@@ -16637,7 +16623,7 @@
16637
16623
  },
16638
16624
  {
16639
16625
  "file": "packages/@ember/routing/route.ts",
16640
- "line": 2161,
16626
+ "line": 2168,
16641
16627
  "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```",
16642
16628
  "itemtype": "property",
16643
16629
  "name": "controller",
@@ -16650,7 +16636,7 @@
16650
16636
  },
16651
16637
  {
16652
16638
  "file": "packages/@ember/routing/route.ts",
16653
- "line": 2192,
16639
+ "line": 2199,
16654
16640
  "description": "This action is called when one or more query params have changed. Bubbles.",
16655
16641
  "itemtype": "method",
16656
16642
  "name": "queryParamsDidChange",
@@ -19125,7 +19111,7 @@
19125
19111
  },
19126
19112
  {
19127
19113
  "message": "replacing incorrect tag: returns with return",
19128
- "line": " packages/@ember/routing/route.ts:2192"
19114
+ "line": " packages/@ember/routing/route.ts:2199"
19129
19115
  },
19130
19116
  {
19131
19117
  "message": "unknown tag: internal",
@@ -19709,23 +19695,23 @@
19709
19695
  },
19710
19696
  {
19711
19697
  "message": "Missing item type",
19712
- "line": " packages/@ember/routing/route.ts:268"
19698
+ "line": " packages/@ember/routing/route.ts:271"
19713
19699
  },
19714
19700
  {
19715
19701
  "message": "Missing item type",
19716
- "line": " packages/@ember/routing/route.ts:270"
19702
+ "line": " packages/@ember/routing/route.ts:273"
19717
19703
  },
19718
19704
  {
19719
19705
  "message": "Missing item type",
19720
- "line": " packages/@ember/routing/route.ts:273"
19706
+ "line": " packages/@ember/routing/route.ts:276"
19721
19707
  },
19722
19708
  {
19723
19709
  "message": "Missing item type",
19724
- "line": " packages/@ember/routing/route.ts:275"
19710
+ "line": " packages/@ember/routing/route.ts:278"
19725
19711
  },
19726
19712
  {
19727
19713
  "message": "Missing item type",
19728
- "line": " packages/@ember/routing/route.ts:1590"
19714
+ "line": " packages/@ember/routing/route.ts:1597"
19729
19715
  },
19730
19716
  {
19731
19717
  "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`.",