ember-source 5.11.0-beta.2 → 5.11.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.
Files changed (147) hide show
  1. package/build-metadata.json +3 -3
  2. package/dist/ember-template-compiler.js +48 -42
  3. package/dist/ember-testing.js +1 -1
  4. package/dist/ember.debug.js +23102 -23100
  5. package/dist/ember.prod.js +31562 -31563
  6. package/dist/packages/@ember/-internals/container/index.js +1 -1
  7. package/dist/packages/@ember/-internals/deprecations/index.js +2 -1
  8. package/dist/packages/@ember/-internals/glimmer/index.js +2 -1
  9. package/dist/packages/@ember/-internals/meta/lib/meta.js +4 -3
  10. package/dist/packages/@ember/-internals/metal/index.js +9 -8
  11. package/dist/packages/@ember/-internals/routing/index.js +6 -5
  12. package/dist/packages/@ember/-internals/runtime/lib/ext/rsvp.js +3 -2
  13. package/dist/packages/@ember/-internals/runtime/lib/mixins/-proxy.js +6 -5
  14. package/dist/packages/@ember/-internals/runtime/lib/mixins/action_handler.js +4 -3
  15. package/dist/packages/@ember/-internals/runtime/lib/mixins/container_proxy.js +1 -1
  16. package/dist/packages/@ember/-internals/runtime/lib/mixins/registry_proxy.js +2 -1
  17. package/dist/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +4 -3
  18. package/dist/packages/@ember/-internals/string/index.js +1 -1
  19. package/dist/packages/@ember/-internals/utils/index.js +4 -4
  20. package/dist/packages/@ember/-internals/views/index.js +1 -1
  21. package/dist/packages/@ember/-internals/views/lib/compat/fallback-view-registry.js +1 -1
  22. package/dist/packages/@ember/-internals/views/lib/component_lookup.js +1 -1
  23. package/dist/packages/@ember/-internals/views/lib/mixins/action_support.js +5 -3
  24. package/dist/packages/@ember/-internals/views/lib/mixins/child_views_support.js +3 -3
  25. package/dist/packages/@ember/-internals/views/lib/mixins/class_names_support.js +4 -3
  26. package/dist/packages/@ember/-internals/views/lib/mixins/view_support.js +4 -3
  27. package/dist/packages/@ember/-internals/views/lib/system/event_dispatcher.js +6 -12
  28. package/dist/packages/@ember/-internals/views/lib/system/utils.js +3 -2
  29. package/dist/packages/@ember/-internals/views/lib/views/core_view.js +76 -8
  30. package/dist/packages/@ember/-internals/views/lib/views/states.js +4 -3
  31. package/dist/packages/@ember/application/index.js +16 -7
  32. package/dist/packages/@ember/application/instance.js +13 -9
  33. package/dist/packages/@ember/application/namespace.js +7 -6
  34. package/dist/packages/@ember/array/index.js +617 -11
  35. package/dist/packages/@ember/array/make.js +1 -0
  36. package/dist/packages/@ember/array/mutable.js +1 -1
  37. package/dist/packages/@ember/array/proxy.js +8 -5
  38. package/dist/packages/@ember/component/helper.js +4 -4
  39. package/dist/packages/@ember/component/index.js +4 -4
  40. package/dist/packages/@ember/controller/index.js +6 -6
  41. package/dist/packages/@ember/debug/container-debug-adapter.js +5 -4
  42. package/dist/packages/@ember/debug/data-adapter.js +7 -4
  43. package/dist/packages/@ember/debug/index.js +213 -4
  44. package/dist/packages/@ember/debug/lib/assert.js +47 -0
  45. package/dist/packages/@ember/debug/lib/deprecate.js +194 -4
  46. package/dist/packages/@ember/debug/lib/inspect.js +120 -2
  47. package/dist/packages/@ember/debug/lib/warn.js +94 -3
  48. package/dist/packages/@ember/engine/index.js +440 -17
  49. package/dist/packages/@ember/engine/instance.js +175 -11
  50. package/dist/packages/@ember/engine/parent.js +1 -0
  51. package/dist/packages/@ember/helper/index.js +4 -4
  52. package/dist/packages/@ember/instrumentation/index.js +2 -1
  53. package/dist/packages/@ember/modifier/index.js +13 -5
  54. package/dist/packages/@ember/modifier/on.js +15 -0
  55. package/dist/packages/@ember/object/-internals.js +6 -5
  56. package/dist/packages/@ember/object/compat.js +4 -3
  57. package/dist/packages/@ember/object/computed.js +4 -4
  58. package/dist/packages/@ember/object/core.js +861 -14
  59. package/dist/packages/@ember/object/evented.js +4 -4
  60. package/dist/packages/@ember/object/events.js +3 -3
  61. package/dist/packages/@ember/object/index.js +260 -9
  62. package/dist/packages/@ember/object/internals.js +1 -1
  63. package/dist/packages/@ember/object/lib/computed/computed_macros.js +8 -6
  64. package/dist/packages/@ember/object/lib/computed/reduce_computed_macros.js +8 -4
  65. package/dist/packages/@ember/object/mixin.js +6 -5
  66. package/dist/packages/@ember/object/observable.js +103 -9
  67. package/dist/packages/@ember/object/observers.js +3 -3
  68. package/dist/packages/@ember/object/promise-proxy-mixin.js +5 -5
  69. package/dist/packages/@ember/renderer/index.js +4 -4
  70. package/dist/packages/@ember/routing/-internals.js +3 -1
  71. package/dist/packages/@ember/routing/hash-location.js +2 -2
  72. package/dist/packages/@ember/routing/history-location.js +3 -2
  73. package/dist/packages/@ember/routing/index.js +4 -4
  74. package/dist/packages/@ember/routing/lib/dsl.js +2 -1
  75. package/dist/packages/@ember/routing/lib/generate_controller.js +4 -3
  76. package/dist/packages/@ember/routing/lib/router_state.js +26 -1
  77. package/dist/packages/@ember/routing/lib/routing-service.js +107 -9
  78. package/dist/packages/@ember/routing/lib/utils.js +238 -7
  79. package/dist/packages/@ember/routing/none-location.js +3 -2
  80. package/dist/packages/@ember/routing/route.js +1618 -22
  81. package/dist/packages/@ember/routing/router-service.js +638 -12
  82. package/dist/packages/@ember/routing/router.js +1449 -14
  83. package/dist/packages/@ember/runloop/index.js +760 -6
  84. package/dist/packages/@ember/service/index.js +3 -3
  85. package/dist/packages/@ember/template/index.js +4 -4
  86. package/dist/packages/@ember/utils/index.js +2 -1
  87. package/dist/packages/@ember/utils/lib/compare.js +159 -4
  88. package/dist/packages/@ember/utils/lib/is_empty.js +4 -4
  89. package/dist/packages/@ember/utils/lib/type-of.js +110 -1
  90. package/dist/packages/@glimmer/tracking/index.js +3 -3
  91. package/dist/packages/@glimmer/tracking/primitives/cache.js +3 -3
  92. package/dist/packages/ember/barrel.js +28 -13
  93. package/dist/packages/ember/version.js +1 -1
  94. package/dist/packages/ember-testing/lib/adapters/adapter.js +1 -1
  95. package/dist/packages/ember-testing/lib/adapters/qunit.js +2 -1
  96. package/dist/packages/ember-testing/lib/ext/application.js +2 -1
  97. package/dist/packages/ember-testing/lib/ext/rsvp.js +1 -1
  98. package/dist/packages/ember-testing/lib/helpers/and_then.js +2 -1
  99. package/dist/packages/ember-testing/lib/helpers/current_path.js +8 -6
  100. package/dist/packages/ember-testing/lib/helpers/current_route_name.js +8 -6
  101. package/dist/packages/ember-testing/lib/helpers/current_url.js +6 -5
  102. package/dist/packages/ember-testing/lib/helpers/pause_test.js +2 -1
  103. package/dist/packages/ember-testing/lib/helpers/visit.js +4 -3
  104. package/dist/packages/ember-testing/lib/helpers/wait.js +4 -3
  105. package/dist/packages/ember-testing/lib/initializers.js +15 -8
  106. package/dist/packages/ember-testing/lib/setup_for_testing.js +1 -1
  107. package/dist/packages/ember-testing/lib/test/run.js +1 -1
  108. package/dist/packages/router_js/index.js +2 -1
  109. package/dist/packages/shared-chunks/{alias-By_2yu5c.js → alias-Dri0koi2.js} +5 -3
  110. package/dist/packages/shared-chunks/array-3xbmc_4J.js +119 -0
  111. package/dist/packages/shared-chunks/{cache-gDE3bkXq.js → cache-BESCGvbE.js} +667 -1529
  112. package/dist/packages/shared-chunks/{core_view-Cxne2_wu.js → chunk-3SQBS3Y5-Cj4eryg1.js} +1 -88
  113. package/dist/packages/shared-chunks/{index-BXPoca1S.js → index-Llq6dmgX.js} +40 -4660
  114. package/dist/packages/shared-chunks/{is_proxy-Dmis-70B.js → is_proxy-DjvCKvd5.js} +1 -1
  115. package/dist/packages/shared-chunks/{mandatory-setter-1UQhiJOb.js → mandatory-setter-BiXq-dpN.js} +2 -1
  116. package/dist/packages/shared-chunks/{name-z9D9Yibn.js → name-Dx2bGFVv.js} +1 -1
  117. package/dist/packages/shared-chunks/{namespace_search-CBgHTkDh.js → namespace_search-btMaPM-_.js} +2 -2
  118. package/dist/packages/shared-chunks/{property_set-CW4q-uo4.js → property_set-BapAkp3X.js} +5 -4
  119. package/dist/packages/shared-chunks/{registry-DzfcDwii.js → registry-B8WARvkP.js} +3 -2
  120. package/dist/packages/shared-chunks/{router-B-Q1aYBn.js → router-DrLZsJeE.js} +2 -482
  121. package/dist/packages/shared-chunks/{set_properties-DvalyQdu.js → set_properties-BScfxzvI.js} +2 -2
  122. package/dist/packages/shared-chunks/setup-registry-du4pSGZi.js +48 -0
  123. package/dist/packages/shared-chunks/{to-string-D8i3mjEU.js → to-string-B1BmwUkt.js} +1 -1
  124. package/dist/packages/shared-chunks/unrecognized-url-error-zpz-JEoG.js +484 -0
  125. package/docs/data.json +152 -142
  126. package/package.json +4 -7
  127. package/types/stable/@ember/-internals/metal/lib/array.d.ts +1 -2
  128. package/types/stable/@ember/-internals/metal/lib/object-at.d.ts +4 -0
  129. package/types/stable/@ember/-internals/metal/lib/observer.d.ts +2 -1
  130. package/types/stable/@ember/array/index.d.ts +1 -1
  131. package/types/stable/@ember/array/make.d.ts +3 -0
  132. package/types/stable/@ember/debug/index.d.ts +3 -7
  133. package/types/stable/@ember/debug/lib/assert.d.ts +8 -0
  134. package/types/stable/@ember/engine/index.d.ts +1 -1
  135. package/types/stable/@ember/engine/instance.d.ts +2 -2
  136. package/types/stable/@ember/engine/parent.d.ts +3 -0
  137. package/types/stable/@ember/modifier/index.d.ts +1 -3
  138. package/types/stable/@ember/modifier/on.d.ts +5 -0
  139. package/types/stable/@ember/routing/lib/routing-service.d.ts +1 -1
  140. package/types/stable/@ember/routing/route.d.ts +2 -3
  141. package/types/stable/@ember/routing/router-service.d.ts +1 -1
  142. package/types/stable/@ember/routing/router.d.ts +4 -4
  143. package/types/stable/ember/barrel.d.ts +1 -1
  144. package/types/stable/ember/index.d.ts +1 -1
  145. package/types/stable/index.d.ts +5 -0
  146. package/dist/packages/shared-chunks/index-DTxy4Zgx.js +0 -641
  147. package/dist/packages/shared-chunks/index-PYiGj1jp.js +0 -2071
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.11.0-beta.2"
6
+ "version": "5.11.1"
7
7
  },
8
8
  "files": {
9
9
  "node_modules/rsvp/lib/rsvp/promise/all.js": {
@@ -1087,6 +1087,15 @@
1087
1087
  "Ember": 1
1088
1088
  }
1089
1089
  },
1090
+ "packages/@ember/debug/lib/assert.ts": {
1091
+ "name": "packages/@ember/debug/lib/assert.ts",
1092
+ "modules": {},
1093
+ "classes": {},
1094
+ "fors": {
1095
+ "@ember/debug": 1
1096
+ },
1097
+ "namespaces": {}
1098
+ },
1090
1099
  "packages/@ember/debug/lib/capture-render-tree.ts": {
1091
1100
  "name": "packages/@ember/debug/lib/capture-render-tree.ts",
1092
1101
  "modules": {},
@@ -2123,7 +2132,8 @@
2123
2132
  },
2124
2133
  "fors": {
2125
2134
  "Ember.ControllerMixin": 1,
2126
- "@ember/controller": 1
2135
+ "@ember/controller": 1,
2136
+ "@ember/debug": 1
2127
2137
  },
2128
2138
  "namespaces": {
2129
2139
  "Ember": 1
@@ -2147,7 +2157,7 @@
2147
2157
  "namespaces": {},
2148
2158
  "tag": "module",
2149
2159
  "file": "packages/@ember/debug/index.ts",
2150
- "line": 137,
2160
+ "line": 133,
2151
2161
  "access": "public",
2152
2162
  "tagname": ""
2153
2163
  },
@@ -2313,7 +2323,7 @@
2313
2323
  "namespaces": {},
2314
2324
  "tag": "module",
2315
2325
  "file": "packages/@ember/object/observable.ts",
2316
- "line": 22
2326
+ "line": 26
2317
2327
  },
2318
2328
  "@ember/object/promise-proxy-mixin": {
2319
2329
  "name": "@ember/object/promise-proxy-mixin",
@@ -2440,7 +2450,7 @@
2440
2450
  "namespaces": {},
2441
2451
  "tag": "module",
2442
2452
  "file": "packages/@ember/routing/route.ts",
2443
- "line": 82
2453
+ "line": 81
2444
2454
  },
2445
2455
  "@ember/routing/router-service": {
2446
2456
  "name": "@ember/routing/router-service",
@@ -2466,7 +2476,7 @@
2466
2476
  "namespaces": {},
2467
2477
  "tag": "module",
2468
2478
  "file": "packages/@ember/routing/router.ts",
2469
- "line": 126
2479
+ "line": 128
2470
2480
  },
2471
2481
  "@ember/routing/transition": {
2472
2482
  "name": "@ember/routing/transition",
@@ -3929,7 +3939,7 @@
3929
3939
  "module": "@ember/object/observable",
3930
3940
  "namespace": "",
3931
3941
  "file": "packages/@ember/object/observable.ts",
3932
- "line": 22,
3942
+ "line": 26,
3933
3943
  "description": "## Overview\n\nThis mixin provides properties and property observing functionality, core\nfeatures of the Ember object model.\n\nProperties and observers allow one object to observe changes to a\nproperty on another object. This is one of the fundamental ways that\nmodels, controllers and views communicate with each other in an Ember\napplication.\n\nAny object that has this mixin applied can be used in observer\noperations. That includes `EmberObject` and most objects you will\ninteract with as you write your Ember application.\n\nNote that you will not generally apply this mixin to classes yourself,\nbut you will use the features provided by this module frequently, so it\nis important to understand how to use it.\n\n## Using `get()` and `set()`\n\nBecause of Ember's support for bindings and observers, you will always\naccess properties using the get method, and set properties using the\nset method. This allows the observing objects to be notified and\ncomputed properties to be handled properly.\n\nMore documentation about `get` and `set` are below.\n\n## Observing Property Changes\n\nYou typically observe property changes simply by using the `observer`\nfunction in classes that you write.\n\nFor example:\n\n```javascript\nimport { observer } from '@ember/object';\nimport EmberObject from '@ember/object';\n\nEmberObject.extend({\n valueObserver: observer('value', function(sender, key, value, rev) {\n // Executes whenever the \"value\" property changes\n // See the addObserver method for more information about the callback arguments\n })\n});\n```\n\nAlthough this is the most common way to add an observer, this capability\nis actually built into the `EmberObject` class on top of two methods\ndefined in this mixin: `addObserver` and `removeObserver`. You can use\nthese two methods to add and remove observers yourself if you need to\ndo so at runtime.\n\nTo add an observer for a property, call:\n\n```javascript\nobject.addObserver('propertyKey', targetObject, targetAction)\n```\n\nThis will call the `targetAction` method on the `targetObject` whenever\nthe value of the `propertyKey` changes.\n\nNote that if `propertyKey` is a computed property, the observer will be\ncalled when any of the property dependencies are changed, even if the\nresulting value of the computed property is unchanged. This is necessary\nbecause computed properties are not computed until `get` is called.",
3934
3944
  "access": "public",
3935
3945
  "tagname": ""
@@ -4140,7 +4150,7 @@
4140
4150
  "module": "@ember/routing/route",
4141
4151
  "namespace": "",
4142
4152
  "file": "packages/@ember/routing/route.ts",
4143
- "line": 82,
4153
+ "line": 81,
4144
4154
  "description": "The `Route` class is used to define individual routes. Refer to\nthe [routing guide](https://guides.emberjs.com/release/routing/) for documentation.",
4145
4155
  "extends": "EmberObject",
4146
4156
  "uses": [
@@ -4179,7 +4189,7 @@
4179
4189
  "module": "@ember/routing/router",
4180
4190
  "namespace": "",
4181
4191
  "file": "packages/@ember/routing/router.ts",
4182
- "line": 126,
4192
+ "line": 128,
4183
4193
  "description": "The `EmberRouter` class manages the application state and URLs. Refer to\nthe [routing guide](https://guides.emberjs.com/release/routing/) for documentation.",
4184
4194
  "extends": "EmberObject",
4185
4195
  "uses": [
@@ -11677,6 +11687,31 @@
11677
11687
  "class": "Ember.@ember/controller",
11678
11688
  "module": "@ember/controller"
11679
11689
  },
11690
+ {
11691
+ "file": "packages/@ember/debug/lib/assert.ts",
11692
+ "line": 16,
11693
+ "description": "Verify that a certain expectation is met, or throw a exception otherwise.\nThis is useful for communicating assumptions in the code to other human\nreaders as well as catching bugs that accidentally violates these\nexpectations.\nAssertions are removed from production builds, so they can be freely added\nfor documentation and debugging purposes without worries of incuring any\nperformance penalty. However, because of that, they should not be used for\nchecks that could reasonably fail during normal usage. Furthermore, care\nshould be taken to avoid accidentally relying on side-effects produced from\nevaluating the condition itself, since the code will not run in production.\n```javascript\nimport { assert } from '@ember/debug';\n// Test for truthiness\nassert('Must pass a string', typeof str === 'string');\n// Fail unconditionally\nassert('This code path should never be run');\n```",
11694
+ "itemtype": "method",
11695
+ "name": "assert",
11696
+ "static": 1,
11697
+ "params": [
11698
+ {
11699
+ "name": "description",
11700
+ "description": "Describes the expectation. This will become the\n text of the Error thrown if the assertion fails.",
11701
+ "type": "String"
11702
+ },
11703
+ {
11704
+ "name": "condition",
11705
+ "description": "Must be truthy for the assertion to pass. If\n falsy, an exception will be thrown.",
11706
+ "type": "Any"
11707
+ }
11708
+ ],
11709
+ "access": "public",
11710
+ "tagname": "",
11711
+ "since": "1.0.0",
11712
+ "class": "@ember/debug",
11713
+ "module": "@ember/controller"
11714
+ },
11680
11715
  {
11681
11716
  "file": "packages/@ember/debug/lib/capture-render-tree.ts",
11682
11717
  "line": 9,
@@ -12312,32 +12347,7 @@
12312
12347
  },
12313
12348
  {
12314
12349
  "file": "packages/@ember/debug/index.ts",
12315
- "line": 142,
12316
- "description": "Verify that a certain expectation is met, or throw a exception otherwise.\n\nThis is useful for communicating assumptions in the code to other human\nreaders as well as catching bugs that accidentally violates these\nexpectations.\n\nAssertions are removed from production builds, so they can be freely added\nfor documentation and debugging purposes without worries of incuring any\nperformance penalty. However, because of that, they should not be used for\nchecks that could reasonably fail during normal usage. Furthermore, care\nshould be taken to avoid accidentally relying on side-effects produced from\nevaluating the condition itself, since the code will not run in production.\n\n```javascript\nimport { assert } from '@ember/debug';\n\n// Test for truthiness\nassert('Must pass a string', typeof str === 'string');\n\n// Fail unconditionally\nassert('This code path should never be run');\n```",
12317
- "itemtype": "method",
12318
- "name": "assert",
12319
- "static": 1,
12320
- "params": [
12321
- {
12322
- "name": "description",
12323
- "description": "Describes the expectation. This will become the\n text of the Error thrown if the assertion fails.",
12324
- "type": "String"
12325
- },
12326
- {
12327
- "name": "condition",
12328
- "description": "Must be truthy for the assertion to pass. If\n falsy, an exception will be thrown.",
12329
- "type": "Any"
12330
- }
12331
- ],
12332
- "access": "public",
12333
- "tagname": "",
12334
- "since": "1.0.0",
12335
- "class": "@ember/debug",
12336
- "module": "@ember/debug"
12337
- },
12338
- {
12339
- "file": "packages/@ember/debug/index.ts",
12340
- "line": 187,
12350
+ "line": 138,
12341
12351
  "description": "Display a debug notice.\n\nCalls to this function are not invoked in production builds.\n\n```javascript\nimport { debug } from '@ember/debug';\n\ndebug('I\\'m a debug notice!');\n```",
12342
12352
  "itemtype": "method",
12343
12353
  "name": "debug",
@@ -12356,7 +12366,7 @@
12356
12366
  },
12357
12367
  {
12358
12368
  "file": "packages/@ember/debug/index.ts",
12359
- "line": 208,
12369
+ "line": 159,
12360
12370
  "description": "Display an info notice.\n\nCalls to this function are removed from production builds, so they can be\nfreely added for documentation and debugging purposes without worries of\nincuring any performance penalty.",
12361
12371
  "itemtype": "method",
12362
12372
  "name": "info",
@@ -12367,7 +12377,7 @@
12367
12377
  },
12368
12378
  {
12369
12379
  "file": "packages/@ember/debug/index.ts",
12370
- "line": 227,
12380
+ "line": 178,
12371
12381
  "description": "Alias an old, deprecated method with its new counterpart.\n\nDisplay a deprecation warning with the provided message and a stack trace\n(Chrome and Firefox only) when the assigned method is called.\n\nCalls to this function are removed from production builds, so they can be\nfreely added for documentation and debugging purposes without worries of\nincuring any performance penalty.\n\n```javascript\nimport { deprecateFunc } from '@ember/debug';\n\nEmber.oldMethod = deprecateFunc('Please use the new, updated method', options, Ember.newMethod);\n```",
12372
12382
  "itemtype": "method",
12373
12383
  "name": "deprecateFunc",
@@ -12401,7 +12411,7 @@
12401
12411
  },
12402
12412
  {
12403
12413
  "file": "packages/@ember/debug/index.ts",
12404
- "line": 272,
12414
+ "line": 223,
12405
12415
  "description": "Run a function meant for debugging.\n\nCalls to this function are removed from production builds, so they can be\nfreely added for documentation and debugging purposes without worries of\nincuring any performance penalty.\n\n```javascript\nimport Component from '@ember/component';\nimport { runInDebug } from '@ember/debug';\n\nrunInDebug(() => {\n Component.reopen({\n didInsertElement() {\n console.log(\"I'm happy\");\n }\n });\n});\n```",
12406
12416
  "itemtype": "method",
12407
12417
  "name": "runInDebug",
@@ -12932,7 +12942,7 @@
12932
12942
  },
12933
12943
  {
12934
12944
  "file": "packages/@ember/engine/instance.ts",
12935
- "line": 219,
12945
+ "line": 217,
12936
12946
  "description": "Clone dependencies shared between an engine instance and its parent.",
12937
12947
  "access": "private",
12938
12948
  "tagname": "",
@@ -14675,7 +14685,7 @@
14675
14685
  },
14676
14686
  {
14677
14687
  "file": "packages/@ember/object/observable.ts",
14678
- "line": 93,
14688
+ "line": 97,
14679
14689
  "description": "Retrieves the value of a property from the object.\n\nThis method is usually similar to using `object[keyName]` or `object.keyName`,\nhowever it supports both computed properties and the unknownProperty\nhandler.\n\nBecause `get` unifies the syntax for accessing all these kinds\nof properties, it can make many refactorings easier, such as replacing a\nsimple property with a computed property, or vice versa.\n\n### Computed Properties\n\nComputed properties are methods defined with the `property` modifier\ndeclared at the end, such as:\n\n```javascript\nimport { computed } from '@ember/object';\n\nfullName: computed('firstName', 'lastName', function() {\n return this.get('firstName') + ' ' + this.get('lastName');\n})\n```\n\nWhen you call `get` on a computed property, the function will be\ncalled and the return value will be returned instead of the function\nitself.\n\n### Unknown Properties\n\nLikewise, if you try to call `get` on a property whose value is\n`undefined`, the `unknownProperty()` method will be called on the object.\nIf this method returns any value other than `undefined`, it will be returned\ninstead. This allows you to implement \"virtual\" properties that are\nnot defined upfront.",
14680
14690
  "itemtype": "method",
14681
14691
  "name": "get",
@@ -14697,7 +14707,7 @@
14697
14707
  },
14698
14708
  {
14699
14709
  "file": "packages/@ember/object/observable.ts",
14700
- "line": 137,
14710
+ "line": 141,
14701
14711
  "description": "To get the values of multiple properties at once, call `getProperties`\nwith a list of strings or an array:\n\n```javascript\nrecord.getProperties('firstName', 'lastName', 'zipCode');\n// { firstName: 'John', lastName: 'Doe', zipCode: '10011' }\n```\n\nis equivalent to:\n\n```javascript\nrecord.getProperties(['firstName', 'lastName', 'zipCode']);\n// { firstName: 'John', lastName: 'Doe', zipCode: '10011' }\n```",
14702
14712
  "itemtype": "method",
14703
14713
  "name": "getProperties",
@@ -14719,7 +14729,7 @@
14719
14729
  },
14720
14730
  {
14721
14731
  "file": "packages/@ember/object/observable.ts",
14722
- "line": 164,
14732
+ "line": 168,
14723
14733
  "description": "Sets the provided key or path to the value.\n\n```javascript\nrecord.set(\"key\", value);\n```\n\nThis method is generally very similar to calling `object[\"key\"] = value` or\n`object.key = value`, except that it provides support for computed\nproperties, the `setUnknownProperty()` method and property observers.\n\n### Computed Properties\n\nIf you try to set a value on a key that has a computed property handler\ndefined (see the `get()` method for an example), then `set()` will call\nthat method, passing both the value and key instead of simply changing\nthe value itself. This is useful for those times when you need to\nimplement a property that is composed of one or more member\nproperties.\n\n### Unknown Properties\n\nIf you try to set a value on a key that is undefined in the target\nobject, then the `setUnknownProperty()` handler will be called instead. This\ngives you an opportunity to implement complex \"virtual\" properties that\nare not predefined on the object. If `setUnknownProperty()` returns\nundefined, then `set()` will simply set the value on the object.\n\n### Property Observers\n\nIn addition to changing the property, `set()` will also register a property\nchange with the object. Unless you have placed this call inside of a\n`beginPropertyChanges()` and `endPropertyChanges(),` any \"local\" observers\n(i.e. observer methods declared on the same object), will be called\nimmediately. Any \"remote\" observers (i.e. observer methods declared on\nanother object) will be placed in a queue and called at a later time in a\ncoalesced manner.",
14724
14734
  "itemtype": "method",
14725
14735
  "name": "set",
@@ -14746,7 +14756,7 @@
14746
14756
  },
14747
14757
  {
14748
14758
  "file": "packages/@ember/object/observable.ts",
14749
- "line": 212,
14759
+ "line": 216,
14750
14760
  "description": "Sets a list of properties at once. These properties are set inside\na single `beginPropertyChanges` and `endPropertyChanges` batch, so\nobservers will be buffered.\n\n```javascript\nrecord.setProperties({ firstName: 'Charles', lastName: 'Jolley' });\n```",
14751
14761
  "itemtype": "method",
14752
14762
  "name": "setProperties",
@@ -14768,7 +14778,7 @@
14768
14778
  },
14769
14779
  {
14770
14780
  "file": "packages/@ember/object/observable.ts",
14771
- "line": 229,
14781
+ "line": 233,
14772
14782
  "description": "Convenience method to call `propertyWillChange` and `propertyDidChange` in\nsuccession.\n\nNotify the observer system that a property has just changed.\n\nSometimes you need to change a value directly or indirectly without\nactually calling `get()` or `set()` on it. In this case, you can use this\nmethod instead. Calling this method will notify all observers that the\nproperty has potentially changed value.",
14773
14783
  "itemtype": "method",
14774
14784
  "name": "notifyPropertyChange",
@@ -14790,7 +14800,7 @@
14790
14800
  },
14791
14801
  {
14792
14802
  "file": "packages/@ember/object/observable.ts",
14793
- "line": 247,
14803
+ "line": 251,
14794
14804
  "description": "Adds an observer on a property.\n\nThis is the core method used to register an observer for a property.\n\nOnce you call this method, any time the key's value is set, your observer\nwill be notified. Note that the observers are triggered any time the\nvalue is set, regardless of whether it has actually changed. Your\nobserver should be prepared to handle that.\n\nThere are two common invocation patterns for `.addObserver()`:\n\n- Passing two arguments:\n - the name of the property to observe (as a string)\n - the function to invoke (an actual function)\n- Passing three arguments:\n - the name of the property to observe (as a string)\n - the target object (will be used to look up and invoke a\n function on)\n - the name of the function to invoke on the target object\n (as a string).\n\n```app/components/my-component.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n init() {\n this._super(...arguments);\n\n // the following are equivalent:\n\n // using three arguments\n this.addObserver('foo', this, 'fooDidChange');\n\n // using two arguments\n this.addObserver('foo', (...args) => {\n this.fooDidChange(...args);\n });\n },\n\n fooDidChange() {\n // your custom logic code\n }\n});\n```\n\n### Observer Methods\n\nObserver methods have the following signature:\n\n```app/components/my-component.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n init() {\n this._super(...arguments);\n this.addObserver('foo', this, 'fooDidChange');\n },\n\n fooDidChange(sender, key, value, rev) {\n // your code\n }\n});\n```\n\nThe `sender` is the object that changed. The `key` is the property that\nchanges. The `value` property is currently reserved and unused. The `rev`\nis the last property revision of the object when it changed, which you can\nuse to detect if the key value has really changed or not.\n\nUsually you will not need the value or revision parameters at\nthe end. In this case, it is common to write observer methods that take\nonly a sender and key value as parameters or, if you aren't interested in\nany of these values, to write an observer that has no parameters at all.",
14795
14805
  "itemtype": "method",
14796
14806
  "name": "addObserver",
@@ -14827,7 +14837,7 @@
14827
14837
  },
14828
14838
  {
14829
14839
  "file": "packages/@ember/object/observable.ts",
14830
- "line": 333,
14840
+ "line": 337,
14831
14841
  "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.",
14832
14842
  "itemtype": "method",
14833
14843
  "name": "removeObserver",
@@ -14864,7 +14874,7 @@
14864
14874
  },
14865
14875
  {
14866
14876
  "file": "packages/@ember/object/observable.ts",
14867
- "line": 354,
14877
+ "line": 358,
14868
14878
  "description": "Set the value of a property to the current value plus some amount.\n\n```javascript\nperson.incrementProperty('age');\nteam.incrementProperty('score', 2);\n```",
14869
14879
  "itemtype": "method",
14870
14880
  "name": "incrementProperty",
@@ -14891,7 +14901,7 @@
14891
14901
  },
14892
14902
  {
14893
14903
  "file": "packages/@ember/object/observable.ts",
14894
- "line": 371,
14904
+ "line": 375,
14895
14905
  "description": "Set the value of a property to the current value minus some amount.\n\n```javascript\nplayer.decrementProperty('lives');\norc.decrementProperty('health', 5);\n```",
14896
14906
  "itemtype": "method",
14897
14907
  "name": "decrementProperty",
@@ -14918,7 +14928,7 @@
14918
14928
  },
14919
14929
  {
14920
14930
  "file": "packages/@ember/object/observable.ts",
14921
- "line": 388,
14931
+ "line": 392,
14922
14932
  "description": "Set the value of a boolean property to the opposite of its\ncurrent value.\n\n```javascript\nstarship.toggleProperty('warpDriveEngaged');\n```",
14923
14933
  "itemtype": "method",
14924
14934
  "name": "toggleProperty",
@@ -14940,7 +14950,7 @@
14940
14950
  },
14941
14951
  {
14942
14952
  "file": "packages/@ember/object/observable.ts",
14943
- "line": 403,
14953
+ "line": 407,
14944
14954
  "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.",
14945
14955
  "itemtype": "method",
14946
14956
  "name": "cacheFor",
@@ -14962,7 +14972,7 @@
14962
14972
  },
14963
14973
  {
14964
14974
  "file": "packages/@ember/object/observable.ts",
14965
- "line": 433,
14975
+ "line": 437,
14966
14976
  "description": "Begins a grouping of property changes.\n\nYou can use this method to group property changes so that notifications\nwill not be sent until the changes are finished. If you plan to make a\nlarge number of changes to an object at one time, you should call this\nmethod at the beginning of the changes to begin deferring change\nnotifications. When you are done making changes, call\n`endPropertyChanges()` to deliver the deferred change notifications and end\ndeferring.",
14967
14977
  "itemtype": "method",
14968
14978
  "name": "beginPropertyChanges",
@@ -14977,7 +14987,7 @@
14977
14987
  },
14978
14988
  {
14979
14989
  "file": "packages/@ember/object/observable.ts",
14980
- "line": 453,
14990
+ "line": 457,
14981
14991
  "description": "Ends a grouping of property changes.\n\nYou can use this method to group property changes so that notifications\nwill not be sent until the changes are finished. If you plan to make a\nlarge number of changes to an object at one time, you should call\n`beginPropertyChanges()` at the beginning of the changes to defer change\nnotifications. When you are done making changes, call this method to\ndeliver the deferred change notifications and end deferring.",
14982
14992
  "itemtype": "method",
14983
14993
  "name": "endPropertyChanges",
@@ -14992,7 +15002,7 @@
14992
15002
  },
14993
15003
  {
14994
15004
  "file": "packages/@ember/object/observable.ts",
14995
- "line": 497,
15005
+ "line": 501,
14996
15006
  "description": "Returns `true` if the object currently has observers registered for a\nparticular key. You can use this method to potentially defer performing\nan expensive action until someone begins observing a particular property\non the object.",
14997
15007
  "itemtype": "method",
14998
15008
  "name": "hasObserverFor",
@@ -15868,7 +15878,7 @@
15868
15878
  },
15869
15879
  {
15870
15880
  "file": "packages/@ember/routing/route.ts",
15871
- "line": 94,
15881
+ "line": 93,
15872
15882
  "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.",
15873
15883
  "itemtype": "event",
15874
15884
  "name": "willTransition",
@@ -15887,7 +15897,7 @@
15887
15897
  },
15888
15898
  {
15889
15899
  "file": "packages/@ember/routing/route.ts",
15890
- "line": 139,
15900
+ "line": 138,
15891
15901
  "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 // your code there\n return true; // Bubble the didTransition event\n }\n}\n```",
15892
15902
  "itemtype": "event",
15893
15903
  "name": "didTransition",
@@ -15899,7 +15909,7 @@
15899
15909
  },
15900
15910
  {
15901
15911
  "file": "packages/@ember/routing/route.ts",
15902
- "line": 166,
15912
+ "line": 165,
15903
15913
  "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```",
15904
15914
  "itemtype": "event",
15905
15915
  "name": "loading",
@@ -15923,7 +15933,7 @@
15923
15933
  },
15924
15934
  {
15925
15935
  "file": "packages/@ember/routing/route.ts",
15926
- "line": 201,
15936
+ "line": 200,
15927
15937
  "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```",
15928
15938
  "itemtype": "event",
15929
15939
  "name": "error",
@@ -15947,31 +15957,31 @@
15947
15957
  },
15948
15958
  {
15949
15959
  "file": "packages/@ember/routing/route.ts",
15950
- "line": 274,
15960
+ "line": 273,
15951
15961
  "class": "Route",
15952
15962
  "module": "@ember/routing/route"
15953
15963
  },
15954
15964
  {
15955
15965
  "file": "packages/@ember/routing/route.ts",
15956
- "line": 276,
15966
+ "line": 275,
15957
15967
  "class": "Route",
15958
15968
  "module": "@ember/routing/route"
15959
15969
  },
15960
15970
  {
15961
15971
  "file": "packages/@ember/routing/route.ts",
15962
- "line": 279,
15972
+ "line": 278,
15963
15973
  "class": "Route",
15964
15974
  "module": "@ember/routing/route"
15965
15975
  },
15966
15976
  {
15967
15977
  "file": "packages/@ember/routing/route.ts",
15968
- "line": 281,
15978
+ "line": 280,
15969
15979
  "class": "Route",
15970
15980
  "module": "@ember/routing/route"
15971
15981
  },
15972
15982
  {
15973
15983
  "file": "packages/@ember/routing/route.ts",
15974
- "line": 309,
15984
+ "line": 303,
15975
15985
  "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.",
15976
15986
  "itemtype": "method",
15977
15987
  "name": "serialize",
@@ -15999,7 +16009,7 @@
15999
16009
  },
16000
16010
  {
16001
16011
  "file": "packages/@ember/routing/route.ts",
16002
- "line": 377,
16012
+ "line": 371,
16003
16013
  "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```",
16004
16014
  "itemtype": "property",
16005
16015
  "name": "queryParams",
@@ -16012,7 +16022,7 @@
16012
16022
  },
16013
16023
  {
16014
16024
  "file": "packages/@ember/routing/route.ts",
16015
- "line": 430,
16025
+ "line": 424,
16016
16026
  "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```",
16017
16027
  "itemtype": "property",
16018
16028
  "name": "templateName",
@@ -16026,7 +16036,7 @@
16026
16036
  },
16027
16037
  {
16028
16038
  "file": "packages/@ember/routing/route.ts",
16029
- "line": 463,
16039
+ "line": 457,
16030
16040
  "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.",
16031
16041
  "itemtype": "property",
16032
16042
  "name": "controllerName",
@@ -16040,7 +16050,7 @@
16040
16050
  },
16041
16051
  {
16042
16052
  "file": "packages/@ember/routing/route.ts",
16043
- "line": 486,
16053
+ "line": 480,
16044
16054
  "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```",
16045
16055
  "itemtype": "property",
16046
16056
  "name": "controller",
@@ -16053,7 +16063,7 @@
16053
16063
  },
16054
16064
  {
16055
16065
  "file": "packages/@ember/routing/route.ts",
16056
- "line": 517,
16066
+ "line": 511,
16057
16067
  "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`.",
16058
16068
  "itemtype": "property",
16059
16069
  "name": "routeName",
@@ -16066,7 +16076,7 @@
16066
16076
  },
16067
16077
  {
16068
16078
  "file": "packages/@ember/routing/route.ts",
16069
- "line": 531,
16079
+ "line": 525,
16070
16080
  "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`.",
16071
16081
  "itemtype": "property",
16072
16082
  "name": "fullRouteName",
@@ -16079,7 +16089,7 @@
16079
16089
  },
16080
16090
  {
16081
16091
  "file": "packages/@ember/routing/route.ts",
16082
- "line": 546,
16092
+ "line": 540,
16083
16093
  "description": "Sets the name for this route, including a fully resolved name for routes\ninside engines.",
16084
16094
  "access": "private",
16085
16095
  "tagname": "",
@@ -16097,7 +16107,7 @@
16097
16107
  },
16098
16108
  {
16099
16109
  "file": "packages/@ember/routing/route.ts",
16100
- "line": 561,
16110
+ "line": 555,
16101
16111
  "access": "private",
16102
16112
  "tagname": "",
16103
16113
  "itemtype": "method",
@@ -16107,7 +16117,7 @@
16107
16117
  },
16108
16118
  {
16109
16119
  "file": "packages/@ember/routing/route.ts",
16110
- "line": 595,
16120
+ "line": 589,
16111
16121
  "access": "private",
16112
16122
  "tagname": "",
16113
16123
  "itemtype": "property",
@@ -16117,7 +16127,7 @@
16117
16127
  },
16118
16128
  {
16119
16129
  "file": "packages/@ember/routing/route.ts",
16120
- "line": 604,
16130
+ "line": 598,
16121
16131
  "access": "private",
16122
16132
  "tagname": "",
16123
16133
  "itemtype": "method",
@@ -16127,7 +16137,7 @@
16127
16137
  },
16128
16138
  {
16129
16139
  "file": "packages/@ember/routing/route.ts",
16130
- "line": 612,
16140
+ "line": 606,
16131
16141
  "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`",
16132
16142
  "itemtype": "method",
16133
16143
  "name": "paramsFor",
@@ -16150,7 +16160,7 @@
16150
16160
  },
16151
16161
  {
16152
16162
  "file": "packages/@ember/routing/route.ts",
16153
- "line": 693,
16163
+ "line": 687,
16154
16164
  "description": "Serializes the query parameter key",
16155
16165
  "itemtype": "method",
16156
16166
  "name": "serializeQueryParamKey",
@@ -16168,7 +16178,7 @@
16168
16178
  },
16169
16179
  {
16170
16180
  "file": "packages/@ember/routing/route.ts",
16171
- "line": 704,
16181
+ "line": 698,
16172
16182
  "description": "Serializes value of the query parameter based on defaultValueType",
16173
16183
  "itemtype": "method",
16174
16184
  "name": "serializeQueryParam",
@@ -16196,7 +16206,7 @@
16196
16206
  },
16197
16207
  {
16198
16208
  "file": "packages/@ember/routing/route.ts",
16199
- "line": 720,
16209
+ "line": 714,
16200
16210
  "description": "Deserializes value of the query parameter based on defaultValueType",
16201
16211
  "itemtype": "method",
16202
16212
  "name": "deserializeQueryParam",
@@ -16224,7 +16234,7 @@
16224
16234
  },
16225
16235
  {
16226
16236
  "file": "packages/@ember/routing/route.ts",
16227
- "line": 736,
16237
+ "line": 730,
16228
16238
  "access": "private",
16229
16239
  "tagname": "",
16230
16240
  "itemtype": "property",
@@ -16234,7 +16244,7 @@
16234
16244
  },
16235
16245
  {
16236
16246
  "file": "packages/@ember/routing/route.ts",
16237
- "line": 752,
16247
+ "line": 746,
16238
16248
  "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```",
16239
16249
  "itemtype": "method",
16240
16250
  "name": "resetController",
@@ -16263,7 +16273,7 @@
16263
16273
  },
16264
16274
  {
16265
16275
  "file": "packages/@ember/routing/route.ts",
16266
- "line": 782,
16276
+ "line": 776,
16267
16277
  "access": "private",
16268
16278
  "tagname": "",
16269
16279
  "itemtype": "method",
@@ -16273,7 +16283,7 @@
16273
16283
  },
16274
16284
  {
16275
16285
  "file": "packages/@ember/routing/route.ts",
16276
- "line": 793,
16286
+ "line": 787,
16277
16287
  "access": "private",
16278
16288
  "tagname": "",
16279
16289
  "itemtype": "method",
@@ -16284,7 +16294,7 @@
16284
16294
  },
16285
16295
  {
16286
16296
  "file": "packages/@ember/routing/route.ts",
16287
- "line": 807,
16297
+ "line": 801,
16288
16298
  "access": "private",
16289
16299
  "tagname": "",
16290
16300
  "itemtype": "method",
@@ -16294,7 +16304,7 @@
16294
16304
  },
16295
16305
  {
16296
16306
  "file": "packages/@ember/routing/route.ts",
16297
- "line": 818,
16307
+ "line": 812,
16298
16308
  "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```",
16299
16309
  "itemtype": "event",
16300
16310
  "name": "activate",
@@ -16306,7 +16316,7 @@
16306
16316
  },
16307
16317
  {
16308
16318
  "file": "packages/@ember/routing/route.ts",
16309
- "line": 838,
16319
+ "line": 832,
16310
16320
  "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```",
16311
16321
  "itemtype": "event",
16312
16322
  "name": "deactivate",
@@ -16318,7 +16328,7 @@
16318
16328
  },
16319
16329
  {
16320
16330
  "file": "packages/@ember/routing/route.ts",
16321
- "line": 858,
16331
+ "line": 852,
16322
16332
  "description": "This hook is executed when the router completely exits this route. It is\nnot executed when the model for the route changes.",
16323
16333
  "itemtype": "method",
16324
16334
  "name": "deactivate",
@@ -16337,7 +16347,7 @@
16337
16347
  },
16338
16348
  {
16339
16349
  "file": "packages/@ember/routing/route.ts",
16340
- "line": 869,
16350
+ "line": 863,
16341
16351
  "description": "This hook is executed when the router enters the route. It is not executed\nwhen the model for the route changes.",
16342
16352
  "itemtype": "method",
16343
16353
  "name": "activate",
@@ -16356,7 +16366,7 @@
16356
16366
  },
16357
16367
  {
16358
16368
  "file": "packages/@ember/routing/route.ts",
16359
- "line": 880,
16369
+ "line": 874,
16360
16370
  "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.",
16361
16371
  "itemtype": "method",
16362
16372
  "name": "intermediateTransitionTo",
@@ -16380,7 +16390,7 @@
16380
16390
  },
16381
16391
  {
16382
16392
  "file": "packages/@ember/routing/route.ts",
16383
- "line": 902,
16393
+ "line": 896,
16384
16394
  "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.",
16385
16395
  "itemtype": "method",
16386
16396
  "name": "refresh",
@@ -16396,7 +16406,7 @@
16396
16406
  },
16397
16407
  {
16398
16408
  "file": "packages/@ember/routing/route.ts",
16399
- "line": 928,
16409
+ "line": 922,
16400
16410
  "description": "This hook is the entry point for router.js",
16401
16411
  "access": "private",
16402
16412
  "tagname": "",
@@ -16407,7 +16417,7 @@
16407
16417
  },
16408
16418
  {
16409
16419
  "file": "packages/@ember/routing/route.ts",
16410
- "line": 1003,
16420
+ "line": 997,
16411
16421
  "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.",
16412
16422
  "itemtype": "method",
16413
16423
  "name": "beforeModel",
@@ -16430,7 +16440,7 @@
16430
16440
  },
16431
16441
  {
16432
16442
  "file": "packages/@ember/routing/route.ts",
16433
- "line": 1038,
16443
+ "line": 1032,
16434
16444
  "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.",
16435
16445
  "itemtype": "method",
16436
16446
  "name": "afterModel",
@@ -16458,7 +16468,7 @@
16458
16468
  },
16459
16469
  {
16460
16470
  "file": "packages/@ember/routing/route.ts",
16461
- "line": 1082,
16471
+ "line": 1076,
16462
16472
  "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.",
16463
16473
  "itemtype": "method",
16464
16474
  "name": "redirect",
@@ -16482,7 +16492,7 @@
16482
16492
  },
16483
16493
  {
16484
16494
  "file": "packages/@ember/routing/route.ts",
16485
- "line": 1107,
16495
+ "line": 1101,
16486
16496
  "description": "Called when the context is changed by router.js.",
16487
16497
  "access": "private",
16488
16498
  "tagname": "",
@@ -16493,7 +16503,7 @@
16493
16503
  },
16494
16504
  {
16495
16505
  "file": "packages/@ember/routing/route.ts",
16496
- "line": 1117,
16506
+ "line": 1111,
16497
16507
  "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```",
16498
16508
  "itemtype": "method",
16499
16509
  "name": "model",
@@ -16521,7 +16531,7 @@
16521
16531
  },
16522
16532
  {
16523
16533
  "file": "packages/@ember/routing/route.ts",
16524
- "line": 1235,
16534
+ "line": 1229,
16525
16535
  "access": "private",
16526
16536
  "tagname": "",
16527
16537
  "itemtype": "method",
@@ -16547,7 +16557,7 @@
16547
16557
  },
16548
16558
  {
16549
16559
  "file": "packages/@ember/routing/route.ts",
16550
- "line": 1248,
16560
+ "line": 1242,
16551
16561
  "itemtype": "method",
16552
16562
  "name": "findModel",
16553
16563
  "params": [
@@ -16569,7 +16579,7 @@
16569
16579
  },
16570
16580
  {
16571
16581
  "file": "packages/@ember/routing/route.ts",
16572
- "line": 1272,
16582
+ "line": 1266,
16573
16583
  "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.",
16574
16584
  "example": [
16575
16585
  " 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```"
@@ -16602,7 +16612,7 @@
16602
16612
  },
16603
16613
  {
16604
16614
  "file": "packages/@ember/routing/route.ts",
16605
- "line": 1351,
16615
+ "line": 1345,
16606
16616
  "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```",
16607
16617
  "itemtype": "method",
16608
16618
  "name": "controllerFor",
@@ -16625,7 +16635,7 @@
16625
16635
  },
16626
16636
  {
16627
16637
  "file": "packages/@ember/routing/route.ts",
16628
- "line": 1405,
16638
+ "line": 1399,
16629
16639
  "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```",
16630
16640
  "itemtype": "method",
16631
16641
  "name": "generateController",
@@ -16643,7 +16653,7 @@
16643
16653
  },
16644
16654
  {
16645
16655
  "file": "packages/@ember/routing/route.ts",
16646
- "line": 1433,
16656
+ "line": 1427,
16647
16657
  "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```",
16648
16658
  "itemtype": "method",
16649
16659
  "name": "modelFor",
@@ -16666,7 +16676,7 @@
16666
16676
  },
16667
16677
  {
16668
16678
  "file": "packages/@ember/routing/route.ts",
16669
- "line": 1507,
16679
+ "line": 1501,
16670
16680
  "description": "`this[RENDER]` is used to set up the rendering option for the outlet state.",
16671
16681
  "itemtype": "method",
16672
16682
  "name": "this[RENDER]",
@@ -16677,7 +16687,7 @@
16677
16687
  },
16678
16688
  {
16679
16689
  "file": "packages/@ember/routing/route.ts",
16680
- "line": 1521,
16690
+ "line": 1515,
16681
16691
  "access": "private",
16682
16692
  "tagname": "",
16683
16693
  "itemtype": "method",
@@ -16687,7 +16697,7 @@
16687
16697
  },
16688
16698
  {
16689
16699
  "file": "packages/@ember/routing/route.ts",
16690
- "line": 1533,
16700
+ "line": 1527,
16691
16701
  "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```",
16692
16702
  "itemtype": "method",
16693
16703
  "name": "buildRouteInfoMetadata",
@@ -16702,13 +16712,13 @@
16702
16712
  },
16703
16713
  {
16704
16714
  "file": "packages/@ember/routing/route.ts",
16705
- "line": 1584,
16715
+ "line": 1578,
16706
16716
  "class": "Route",
16707
16717
  "module": "@ember/routing/route"
16708
16718
  },
16709
16719
  {
16710
16720
  "file": "packages/@ember/routing/route.ts",
16711
- "line": 1633,
16721
+ "line": 1627,
16712
16722
  "access": "private",
16713
16723
  "tagname": "",
16714
16724
  "itemtype": "property",
@@ -16718,7 +16728,7 @@
16718
16728
  },
16719
16729
  {
16720
16730
  "file": "packages/@ember/routing/route.ts",
16721
- "line": 1772,
16731
+ "line": 1766,
16722
16732
  "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```",
16723
16733
  "itemtype": "method",
16724
16734
  "name": "send",
@@ -16742,7 +16752,7 @@
16742
16752
  },
16743
16753
  {
16744
16754
  "file": "packages/@ember/routing/route.ts",
16745
- "line": 2052,
16755
+ "line": 2046,
16746
16756
  "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```",
16747
16757
  "itemtype": "property",
16748
16758
  "name": "controller",
@@ -16755,7 +16765,7 @@
16755
16765
  },
16756
16766
  {
16757
16767
  "file": "packages/@ember/routing/route.ts",
16758
- "line": 2083,
16768
+ "line": 2077,
16759
16769
  "description": "This action is called when one or more query params have changed. Bubbles.",
16760
16770
  "itemtype": "method",
16761
16771
  "name": "queryParamsDidChange",
@@ -17132,7 +17142,7 @@
17132
17142
  },
17133
17143
  {
17134
17144
  "file": "packages/@ember/routing/router.ts",
17135
- "line": 136,
17145
+ "line": 138,
17136
17146
  "description": "Represents the URL of the root of the application, often '/'. This prefix is\n assumed on all routes defined on this router.",
17137
17147
  "itemtype": "property",
17138
17148
  "name": "rootURL",
@@ -17144,7 +17154,7 @@
17144
17154
  },
17145
17155
  {
17146
17156
  "file": "packages/@ember/routing/router.ts",
17147
- "line": 147,
17157
+ "line": 149,
17148
17158
  "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 `history` by the `locationType` setting of `/config/environment.js`",
17149
17159
  "itemtype": "property",
17150
17160
  "name": "location",
@@ -17159,7 +17169,7 @@
17159
17169
  },
17160
17170
  {
17161
17171
  "file": "packages/@ember/routing/router.ts",
17162
- "line": 205,
17172
+ "line": 207,
17163
17173
  "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```",
17164
17174
  "itemtype": "method",
17165
17175
  "name": "map",
@@ -17176,7 +17186,7 @@
17176
17186
  },
17177
17187
  {
17178
17188
  "file": "packages/@ember/routing/router.ts",
17179
- "line": 540,
17189
+ "line": 542,
17180
17190
  "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.",
17181
17191
  "itemtype": "method",
17182
17192
  "name": "startRouting",
@@ -17187,7 +17197,7 @@
17187
17197
  },
17188
17198
  {
17189
17199
  "file": "packages/@ember/routing/router.ts",
17190
- "line": 696,
17200
+ "line": 698,
17191
17201
  "description": "Transition the application into another route. The route may\nbe either a single route or route path:",
17192
17202
  "itemtype": "method",
17193
17203
  "name": "transitionTo",
@@ -17221,7 +17231,7 @@
17221
17231
  },
17222
17232
  {
17223
17233
  "file": "packages/@ember/routing/router.ts",
17224
- "line": 741,
17234
+ "line": 743,
17225
17235
  "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.",
17226
17236
  "itemtype": "method",
17227
17237
  "name": "replaceWith",
@@ -17255,7 +17265,7 @@
17255
17265
  },
17256
17266
  {
17257
17267
  "file": "packages/@ember/routing/router.ts",
17258
- "line": 768,
17268
+ "line": 770,
17259
17269
  "description": "Determines if the supplied route is currently active.",
17260
17270
  "itemtype": "method",
17261
17271
  "name": "isActive",
@@ -17276,7 +17286,7 @@
17276
17286
  },
17277
17287
  {
17278
17288
  "file": "packages/@ember/routing/router.ts",
17279
- "line": 780,
17289
+ "line": 782,
17280
17290
  "description": "An alternative form of `isActive` that doesn't require\nmanual concatenation of the arguments into a single\narray.",
17281
17291
  "itemtype": "method",
17282
17292
  "name": "isActiveIntent",
@@ -17306,7 +17316,7 @@
17306
17316
  },
17307
17317
  {
17308
17318
  "file": "packages/@ember/routing/router.ts",
17309
- "line": 806,
17319
+ "line": 808,
17310
17320
  "description": "Does this router instance have the given route.",
17311
17321
  "itemtype": "method",
17312
17322
  "name": "hasRoute",
@@ -17321,7 +17331,7 @@
17321
17331
  },
17322
17332
  {
17323
17333
  "file": "packages/@ember/routing/router.ts",
17324
- "line": 817,
17334
+ "line": 819,
17325
17335
  "description": "Resets the state of the router by clearing the current route\nhandlers and deactivating them.",
17326
17336
  "access": "private",
17327
17337
  "tagname": "",
@@ -17332,7 +17342,7 @@
17332
17342
  },
17333
17343
  {
17334
17344
  "file": "packages/@ember/routing/router.ts",
17335
- "line": 916,
17345
+ "line": 918,
17336
17346
  "description": "Serializes the given query params according to their QP meta information.",
17337
17347
  "access": "private",
17338
17348
  "tagname": "",
@@ -17359,7 +17369,7 @@
17359
17369
  },
17360
17370
  {
17361
17371
  "file": "packages/@ember/routing/router.ts",
17362
- "line": 946,
17372
+ "line": 948,
17363
17373
  "description": "Serializes the value of a query parameter based on a type",
17364
17374
  "access": "private",
17365
17375
  "tagname": "",
@@ -17382,7 +17392,7 @@
17382
17392
  },
17383
17393
  {
17384
17394
  "file": "packages/@ember/routing/router.ts",
17385
- "line": 964,
17395
+ "line": 966,
17386
17396
  "description": "Deserializes the given query params according to their QP meta information.",
17387
17397
  "access": "private",
17388
17398
  "tagname": "",
@@ -17409,7 +17419,7 @@
17409
17419
  },
17410
17420
  {
17411
17421
  "file": "packages/@ember/routing/router.ts",
17412
- "line": 992,
17422
+ "line": 994,
17413
17423
  "description": "Deserializes the value of a query parameter based on a default type",
17414
17424
  "access": "private",
17415
17425
  "tagname": "",
@@ -17432,7 +17442,7 @@
17432
17442
  },
17433
17443
  {
17434
17444
  "file": "packages/@ember/routing/router.ts",
17435
- "line": 1013,
17445
+ "line": 1015,
17436
17446
  "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.",
17437
17447
  "access": "private",
17438
17448
  "tagname": "",
@@ -17459,7 +17469,7 @@
17459
17469
  },
17460
17470
  {
17461
17471
  "file": "packages/@ember/routing/router.ts",
17462
- "line": 1094,
17472
+ "line": 1096,
17463
17473
  "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.",
17464
17474
  "access": "private",
17465
17475
  "tagname": "",
@@ -17496,7 +17506,7 @@
17496
17506
  },
17497
17507
  {
17498
17508
  "file": "packages/@ember/routing/router.ts",
17499
- "line": 1121,
17509
+ "line": 1123,
17500
17510
  "description": "Returns the meta information for the query params of a given route. This\nwill be overridden to allow support for lazy routes.",
17501
17511
  "access": "private",
17502
17512
  "tagname": "",
@@ -17518,7 +17528,7 @@
17518
17528
  },
17519
17529
  {
17520
17530
  "file": "packages/@ember/routing/router.ts",
17521
- "line": 1135,
17531
+ "line": 1137,
17522
17532
  "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.",
17523
17533
  "access": "private",
17524
17534
  "tagname": "",
@@ -17540,7 +17550,7 @@
17540
17550
  },
17541
17551
  {
17542
17552
  "file": "packages/@ember/routing/router.ts",
17543
- "line": 1197,
17553
+ "line": 1199,
17544
17554
  "description": "Maps all query param keys to their fully scoped property name of the form\n`controllerName:propName`.",
17545
17555
  "access": "private",
17546
17556
  "tagname": "",
@@ -17572,7 +17582,7 @@
17572
17582
  },
17573
17583
  {
17574
17584
  "file": "packages/@ember/routing/router.ts",
17575
- "line": 1239,
17585
+ "line": 1241,
17576
17586
  "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.",
17577
17587
  "access": "private",
17578
17588
  "tagname": "",
@@ -17599,7 +17609,7 @@
17599
17609
  },
17600
17610
  {
17601
17611
  "file": "packages/@ember/routing/router.ts",
17602
- "line": 1410,
17612
+ "line": 1412,
17603
17613
  "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```",
17604
17614
  "itemtype": "method",
17605
17615
  "name": "didTransition",
@@ -17611,7 +17621,7 @@
17611
17621
  },
17612
17622
  {
17613
17623
  "file": "packages/@ember/routing/router.ts",
17614
- "line": 1447,
17624
+ "line": 1449,
17615
17625
  "description": "Handles notifying any listeners of an impending URL\nchange.\n\nTriggers the router level `willTransition` hook.",
17616
17626
  "itemtype": "method",
17617
17627
  "name": "willTransition",
@@ -17623,7 +17633,7 @@
17623
17633
  },
17624
17634
  {
17625
17635
  "file": "packages/@ember/routing/router.ts",
17626
- "line": 1460,
17636
+ "line": 1462,
17627
17637
  "description": "Represents the current URL.",
17628
17638
  "itemtype": "property",
17629
17639
  "name": "url",
@@ -17635,7 +17645,7 @@
17635
17645
  },
17636
17646
  {
17637
17647
  "file": "packages/@ember/routing/router.ts",
17638
- "line": 1623,
17648
+ "line": 1625,
17639
17649
  "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`.",
17640
17650
  "access": "private",
17641
17651
  "tagname": "",
@@ -17660,7 +17670,7 @@
17660
17670
  },
17661
17671
  {
17662
17672
  "file": "packages/@ember/routing/router.ts",
17663
- "line": 1644,
17673
+ "line": 1646,
17664
17674
  "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.",
17665
17675
  "access": "private",
17666
17676
  "tagname": "",
@@ -17685,7 +17695,7 @@
17685
17695
  },
17686
17696
  {
17687
17697
  "file": "packages/@ember/routing/router.ts",
17688
- "line": 1666,
17698
+ "line": 1668,
17689
17699
  "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.",
17690
17700
  "access": "private",
17691
17701
  "tagname": "",
@@ -19238,7 +19248,7 @@
19238
19248
  },
19239
19249
  {
19240
19250
  "message": "replacing incorrect tag: returns with return",
19241
- "line": " packages/@ember/routing/route.ts:2083"
19251
+ "line": " packages/@ember/routing/route.ts:2077"
19242
19252
  },
19243
19253
  {
19244
19254
  "message": "unknown tag: internal",
@@ -19826,35 +19836,35 @@
19826
19836
  },
19827
19837
  {
19828
19838
  "message": "Missing item type",
19829
- "line": " packages/@ember/routing/route.ts:274"
19839
+ "line": " packages/@ember/routing/route.ts:273"
19830
19840
  },
19831
19841
  {
19832
19842
  "message": "Missing item type",
19833
- "line": " packages/@ember/routing/route.ts:276"
19843
+ "line": " packages/@ember/routing/route.ts:275"
19834
19844
  },
19835
19845
  {
19836
19846
  "message": "Missing item type",
19837
- "line": " packages/@ember/routing/route.ts:279"
19847
+ "line": " packages/@ember/routing/route.ts:278"
19838
19848
  },
19839
19849
  {
19840
19850
  "message": "Missing item type",
19841
- "line": " packages/@ember/routing/route.ts:281"
19851
+ "line": " packages/@ember/routing/route.ts:280"
19842
19852
  },
19843
19853
  {
19844
19854
  "message": "Missing item type",
19845
- "line": " packages/@ember/routing/route.ts:1584"
19855
+ "line": " packages/@ember/routing/route.ts:1578"
19846
19856
  },
19847
19857
  {
19848
19858
  "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`.",
19849
- "line": " packages/@ember/routing/router.ts:1623"
19859
+ "line": " packages/@ember/routing/router.ts:1625"
19850
19860
  },
19851
19861
  {
19852
19862
  "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.",
19853
- "line": " packages/@ember/routing/router.ts:1644"
19863
+ "line": " packages/@ember/routing/router.ts:1646"
19854
19864
  },
19855
19865
  {
19856
19866
  "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.",
19857
- "line": " packages/@ember/routing/router.ts:1666"
19867
+ "line": " packages/@ember/routing/router.ts:1668"
19858
19868
  },
19859
19869
  {
19860
19870
  "message": "Missing item type",