ember-source 7.1.0-alpha.4 → 7.1.0-beta.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 (499) hide show
  1. package/build-metadata.json +3 -3
  2. package/dist/dev/packages/@ember/-internals/container/index.js +4 -401
  3. package/dist/dev/packages/@ember/-internals/deprecations/index.js +1 -1
  4. package/dist/dev/packages/@ember/-internals/environment/index.js +3 -161
  5. package/dist/dev/packages/@ember/-internals/glimmer/index.js +14 -15
  6. package/dist/dev/packages/@ember/-internals/meta/lib/meta.js +0 -1
  7. package/dist/dev/packages/@ember/-internals/metal/index.js +18 -9
  8. package/dist/dev/packages/@ember/-internals/routing/index.js +1 -10
  9. package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/-proxy.js +10 -12
  10. package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/action_handler.js +1 -10
  11. package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +3 -10
  12. package/dist/dev/packages/@ember/-internals/string/index.js +0 -1
  13. package/dist/dev/packages/@ember/-internals/utils/index.js +8 -3
  14. package/dist/dev/packages/@ember/-internals/views/index.js +0 -1
  15. package/dist/dev/packages/@ember/-internals/views/lib/compat/fallback-view-registry.js +0 -1
  16. package/dist/dev/packages/@ember/-internals/views/lib/mixins/action_support.js +3 -12
  17. package/dist/dev/packages/@ember/-internals/views/lib/system/event_dispatcher.js +2 -11
  18. package/dist/dev/packages/@ember/-internals/views/lib/system/utils.js +1 -1
  19. package/dist/dev/packages/@ember/-internals/views/lib/views/core_view.js +2 -19
  20. package/dist/dev/packages/@ember/-internals/views/lib/views/states.js +1 -1
  21. package/dist/dev/packages/@ember/application/index.js +5 -28
  22. package/dist/dev/packages/@ember/application/instance.js +3 -22
  23. package/dist/dev/packages/@ember/application/namespace.js +4 -11
  24. package/dist/dev/packages/@ember/array/index.js +7 -15
  25. package/dist/dev/packages/@ember/array/proxy.js +10 -14
  26. package/dist/dev/packages/@ember/canary-features/index.js +1 -1
  27. package/dist/dev/packages/@ember/component/helper.js +1 -14
  28. package/dist/dev/packages/@ember/component/index.js +1356 -17
  29. package/dist/dev/packages/@ember/component/template-only.js +1 -9
  30. package/dist/dev/packages/@ember/controller/index.js +3 -19
  31. package/dist/dev/packages/@ember/debug/container-debug-adapter.js +0 -19
  32. package/dist/dev/packages/@ember/debug/data-adapter.js +4 -11
  33. package/dist/dev/packages/@ember/debug/index.js +1 -1
  34. package/dist/dev/packages/@ember/debug/lib/deprecate.js +1 -1
  35. package/dist/dev/packages/@ember/engine/index.js +3 -31
  36. package/dist/dev/packages/@ember/engine/instance.js +3 -8
  37. package/dist/dev/packages/@ember/helper/index.js +159 -21
  38. package/dist/dev/packages/@ember/instrumentation/index.js +1 -1
  39. package/dist/dev/packages/@ember/modifier/index.js +2 -16
  40. package/dist/dev/packages/@ember/modifier/on.js +1 -9
  41. package/dist/dev/packages/@ember/object/-internals.js +3 -11
  42. package/dist/dev/packages/@ember/object/compat.js +3 -10
  43. package/dist/dev/packages/@ember/object/computed.js +2 -12
  44. package/dist/dev/packages/@ember/object/core.js +10 -18
  45. package/dist/dev/packages/@ember/object/evented.js +2 -12
  46. package/dist/dev/packages/@ember/object/events.js +1 -11
  47. package/dist/dev/packages/@ember/object/index.js +10 -14
  48. package/dist/dev/packages/@ember/object/internals.js +1 -1
  49. package/dist/dev/packages/@ember/object/lib/computed/computed_macros.js +6 -23
  50. package/dist/dev/packages/@ember/object/lib/computed/reduce_computed_macros.js +3 -12
  51. package/dist/dev/packages/@ember/object/mixin.js +7 -10
  52. package/dist/dev/packages/@ember/object/observable.js +8 -12
  53. package/dist/dev/packages/@ember/object/observers.js +1 -11
  54. package/dist/dev/packages/@ember/object/promise-proxy-mixin.js +3 -13
  55. package/dist/dev/packages/@ember/object/proxy.js +0 -7
  56. package/dist/dev/packages/@ember/reactive/collections.js +591 -1
  57. package/dist/dev/packages/@ember/renderer/index.js +1 -14
  58. package/dist/dev/packages/@ember/routing/-internals.js +1 -10
  59. package/dist/dev/packages/@ember/routing/index.js +614 -14
  60. package/dist/dev/packages/@ember/routing/lib/generate_controller.js +2 -11
  61. package/dist/dev/packages/@ember/routing/lib/routing-service.js +7 -17
  62. package/dist/dev/packages/@ember/routing/lib/utils.js +2 -11
  63. package/dist/dev/packages/@ember/routing/route.js +13 -24
  64. package/dist/dev/packages/@ember/routing/router-service.js +9 -18
  65. package/dist/dev/packages/@ember/routing/router.js +5 -21
  66. package/dist/dev/packages/@ember/runloop/index.js +1 -10
  67. package/dist/dev/packages/@ember/service/index.js +1 -11
  68. package/dist/dev/packages/@ember/template/index.js +1 -14
  69. package/dist/dev/packages/@ember/template-compiler/lib/compile-options.js +12 -15
  70. package/dist/dev/packages/@ember/template-compiler/lib/dasherize-component-name.js +0 -1
  71. package/dist/dev/packages/@ember/template-compiler/lib/plugins/auto-import-builtins.js +13 -60
  72. package/dist/dev/packages/@ember/template-compiler/lib/plugins/index.js +1 -1
  73. package/dist/dev/packages/@ember/template-compiler/lib/plugins/transform-resolutions.js +1 -3
  74. package/dist/dev/packages/@ember/template-compiler/lib/template.js +3 -11
  75. package/dist/dev/packages/@ember/template-factory/index.js +1 -8
  76. package/dist/dev/packages/@ember/utils/lib/compare.js +0 -7
  77. package/dist/dev/packages/@ember/utils/lib/is_empty.js +1 -12
  78. package/dist/dev/packages/@glimmer/destroyable/index.js +1 -1
  79. package/dist/dev/packages/@glimmer/manager/index.js +5 -315
  80. package/dist/dev/packages/@glimmer/node/index.js +3 -11
  81. package/dist/dev/packages/@glimmer/opcode-compiler/index.js +2 -7
  82. package/dist/dev/packages/@glimmer/program/index.js +194 -3
  83. package/dist/dev/packages/@glimmer/reference/index.js +4 -5
  84. package/dist/dev/packages/@glimmer/runtime/index.js +15 -10
  85. package/dist/dev/packages/@glimmer/tracking/index.js +2 -11
  86. package/dist/dev/packages/@glimmer/tracking/primitives/cache/index.js +1 -11
  87. package/dist/dev/packages/@glimmer/util/index.js +1 -2
  88. package/dist/dev/packages/@glimmer/validator/index.js +4 -1253
  89. package/dist/dev/packages/@glimmer/vm/index.js +1 -1
  90. package/dist/dev/packages/@glimmer/wire-format/index.js +3 -65
  91. package/dist/dev/packages/ember/version.js +1 -1
  92. package/dist/dev/packages/ember-template-compiler/index.js +7 -7
  93. package/dist/dev/packages/shared-chunks/{alias-CSC0WIbj.js → alias-ZcMQckQV.js} +8 -4
  94. package/dist/dev/packages/shared-chunks/api-BAmlf_CN.js +310 -0
  95. package/dist/dev/packages/shared-chunks/{api-BQMslHhq.js → api-BawZUDYD.js} +5 -6
  96. package/dist/dev/packages/shared-chunks/{args-proxy-DgXMc9b5.js → args-proxy-BNLuRFlO.js} +2 -4
  97. package/dist/dev/packages/shared-chunks/{array-D8PfjQHi.js → array-Bh_kUjzy.js} +2 -1
  98. package/dist/dev/packages/shared-chunks/assert-Zqc4wiAV.js +6 -0
  99. package/dist/dev/packages/shared-chunks/cache-B7dqAS38.js +596 -0
  100. package/dist/dev/packages/shared-chunks/{capabilities-O_xc7Yqk.js → capabilities-CZkuOqqC.js} +0 -5
  101. package/dist/dev/packages/shared-chunks/chain-tags-D6tuFUj_.js +190 -0
  102. package/dist/dev/packages/shared-chunks/{collections-D_nY_0UJ.js → collections-DPkjqeA3.js} +0 -1
  103. package/dist/dev/packages/shared-chunks/{compiler-D1leQ3Gl.js → compiler-QUSl_urU.js} +7043 -235
  104. package/dist/dev/packages/shared-chunks/computed-CJnghmXC.js +980 -0
  105. package/dist/dev/packages/shared-chunks/container-BzzHmCNj.js +404 -0
  106. package/dist/dev/packages/shared-chunks/curly-BBzF_bI8.js +617 -0
  107. package/dist/dev/packages/shared-chunks/curried-BZnYakIg.js +5 -0
  108. package/dist/dev/packages/shared-chunks/{debug-to-string-CFb7h0lY.js → debug-to-string-C6LsA_qz.js} +1 -2
  109. package/dist/dev/packages/shared-chunks/decorator-B5Uh5NFI.js +135 -0
  110. package/dist/dev/packages/shared-chunks/element-DQJOvSlQ.js +109 -0
  111. package/dist/dev/packages/shared-chunks/element-builder--iTIJyCB.js +812 -0
  112. package/dist/dev/packages/shared-chunks/env-g-kaAFLN.js +161 -0
  113. package/dist/dev/packages/shared-chunks/events-6aFVjD4k.js +180 -0
  114. package/dist/dev/packages/shared-chunks/get-D5b5QlqE.js +138 -0
  115. package/dist/dev/packages/shared-chunks/get-debug-name-CSniHBsn.js +45 -0
  116. package/dist/dev/packages/shared-chunks/get_properties-CIm8IAtP.js +55 -0
  117. package/dist/dev/packages/shared-chunks/guid-Cbq2sNV_.js +123 -0
  118. package/dist/dev/packages/shared-chunks/hash-BRRFQJ99.js +192 -0
  119. package/dist/dev/packages/shared-chunks/helper-Do7NCZHI.js +314 -0
  120. package/dist/dev/packages/shared-chunks/index-CwnQYqK5.js +2500 -0
  121. package/dist/dev/packages/shared-chunks/{index-BUPd6pkm.js → index-CyZiGiEI.js} +28 -29
  122. package/dist/dev/packages/shared-chunks/index-D-xTBV4B.js +220 -0
  123. package/dist/dev/packages/shared-chunks/injected_property-B4T-FzZZ.js +70 -0
  124. package/dist/dev/packages/shared-chunks/intern-zquhAEIg.js +51 -0
  125. package/dist/dev/packages/shared-chunks/internal-CAL-jHZt.js +140 -0
  126. package/dist/dev/packages/shared-chunks/internal-helper-Ez7zbEIa.js +7 -0
  127. package/dist/dev/packages/shared-chunks/{neq-DujMPv1k.js → invoke-B8M5fQQS.js} +4 -32
  128. package/dist/{prod/packages/shared-chunks/is_proxy-Cr1qlMv_.js → dev/packages/shared-chunks/is_proxy-Bzg0d4m4.js} +1 -1
  129. package/dist/dev/packages/shared-chunks/libraries-CHBwbR72.js +79 -0
  130. package/dist/dev/packages/shared-chunks/mandatory-setter-BpbAMTzV.js +107 -0
  131. package/dist/dev/packages/shared-chunks/meta-BmRXesrk.js +46 -0
  132. package/dist/{prod/packages/shared-chunks/name-C68GLLO3.js → dev/packages/shared-chunks/name-Clp4Vsod.js} +1 -1
  133. package/dist/dev/packages/shared-chunks/{namespace_search-uT8odThF.js → namespace_search-BfvzEQzN.js} +1 -2
  134. package/dist/dev/packages/shared-chunks/normalize-CKySQVU7.js +84 -0
  135. package/dist/dev/packages/shared-chunks/observers-C2DurkLG.js +199 -0
  136. package/dist/dev/packages/shared-chunks/on-BueSMv9L.js +253 -0
  137. package/dist/dev/packages/shared-chunks/opcodes-CplRyHl_.js +50 -0
  138. package/dist/dev/packages/shared-chunks/or-O0eJQ4K-.js +118 -0
  139. package/dist/{prod/packages/shared-chunks/program-B7SJZ5NF.js → dev/packages/shared-chunks/program-DzAfcWFj.js} +1 -1
  140. package/dist/{prod/packages/shared-chunks/program-context-DFiwaPMR.js → dev/packages/shared-chunks/program-context-CadjldRr.js} +4 -3
  141. package/dist/dev/packages/shared-chunks/property_get-CIBS9umw.js +139 -0
  142. package/dist/dev/packages/shared-chunks/{property_set-DaoZXGM5.js → property_set-D3PKyisF.js} +4 -2
  143. package/dist/dev/packages/shared-chunks/props-fiqxqhAH.js +85 -0
  144. package/dist/dev/packages/shared-chunks/{reference-C3TKDRnP.js → reference-BoPB2LfI.js} +3 -4
  145. package/dist/{prod/packages/shared-chunks/registers-ylirb0dq.js → dev/packages/shared-chunks/registers-C_W2qYHJ.js} +1 -1
  146. package/dist/{prod/packages/shared-chunks/rehydrate-builder-D3t52iGR.js → dev/packages/shared-chunks/rehydrate-builder-DCyIgnCR.js} +7 -4
  147. package/dist/dev/packages/shared-chunks/{render-DCchifOK.js → render-CpKaO-BO.js} +512 -16
  148. package/dist/{prod/packages/shared-chunks/chunk-3SQBS3Y5-Cj4eryg1.js → dev/packages/shared-chunks/runtime-CYyqkz5q-BOdRhmsS.js} +4 -59
  149. package/dist/{prod/packages/shared-chunks/serialize-builder-iXiRs1Pg.js → dev/packages/shared-chunks/serialize-builder-DxgGRvH_.js} +2 -7
  150. package/dist/dev/packages/shared-chunks/set_properties-BghuuGJx.js +48 -0
  151. package/dist/dev/packages/shared-chunks/{setup-registry-DxchCIL2.js → setup-registry-BC5VMvei.js} +34 -14
  152. package/dist/dev/packages/shared-chunks/spec-BXl1reqK.js +16 -0
  153. package/dist/dev/packages/shared-chunks/super-BBBjgF69.js +91 -0
  154. package/dist/dev/packages/shared-chunks/syscall-ops-BPFtDquC.js +133 -0
  155. package/dist/dev/packages/shared-chunks/template-BRrQR6KS.js +16 -0
  156. package/dist/dev/packages/shared-chunks/{template-kM-7TTcc.js → template-R_5UMHhb.js} +1 -1
  157. package/dist/dev/packages/shared-chunks/template-only-BqOt8bDl.js +78 -0
  158. package/dist/dev/packages/shared-chunks/textarea-WSlUEr0y.js +468 -0
  159. package/dist/dev/packages/shared-chunks/tracked-CKE4wnE6.js +148 -0
  160. package/dist/dev/packages/shared-chunks/tracked-data-CGnA4ytZ.js +31 -0
  161. package/dist/dev/packages/shared-chunks/transform-resolutions-h1ik8gqW.js +645 -0
  162. package/dist/dev/packages/shared-chunks/unique-id-CgmHQiwi.js +32 -0
  163. package/dist/{prod/packages/shared-chunks/on-CersD7PL.js → dev/packages/shared-chunks/untouchable-this-B3DVwpHS.js} +215 -1397
  164. package/dist/dev/packages/shared-chunks/vm-ops-ImHv0Wtg.js +12 -0
  165. package/dist/dev/packages/shared-chunks/well-known-_EVO9RaV.js +17 -0
  166. package/dist/prod/packages/@ember/-internals/container/index.js +4 -315
  167. package/dist/prod/packages/@ember/-internals/deprecations/index.js +1 -1
  168. package/dist/prod/packages/@ember/-internals/environment/index.js +3 -158
  169. package/dist/prod/packages/@ember/-internals/glimmer/index.js +14 -13
  170. package/dist/prod/packages/@ember/-internals/meta/lib/meta.js +0 -3
  171. package/dist/prod/packages/@ember/-internals/metal/index.js +18 -13
  172. package/dist/prod/packages/@ember/-internals/routing/index.js +1 -6
  173. package/dist/prod/packages/@ember/-internals/runtime/lib/ext/rsvp.js +0 -1
  174. package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/-proxy.js +9 -10
  175. package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/action_handler.js +1 -6
  176. package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/registry_proxy.js +0 -1
  177. package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +2 -6
  178. package/dist/prod/packages/@ember/-internals/string/index.js +0 -2
  179. package/dist/prod/packages/@ember/-internals/utils/index.js +32 -30
  180. package/dist/prod/packages/@ember/-internals/views/index.js +0 -1
  181. package/dist/prod/packages/@ember/-internals/views/lib/compat/fallback-view-registry.js +0 -2
  182. package/dist/prod/packages/@ember/-internals/views/lib/mixins/action_support.js +1 -6
  183. package/dist/prod/packages/@ember/-internals/views/lib/system/event_dispatcher.js +2 -7
  184. package/dist/prod/packages/@ember/-internals/views/lib/system/utils.js +1 -2
  185. package/dist/prod/packages/@ember/-internals/views/lib/views/core_view.js +2 -15
  186. package/dist/prod/packages/@ember/-internals/views/lib/views/states.js +0 -2
  187. package/dist/prod/packages/@ember/application/index.js +5 -24
  188. package/dist/prod/packages/@ember/application/instance.js +5 -18
  189. package/dist/prod/packages/@ember/application/namespace.js +4 -8
  190. package/dist/prod/packages/@ember/array/index.js +7 -12
  191. package/dist/prod/packages/@ember/array/proxy.js +9 -10
  192. package/dist/prod/packages/@ember/canary-features/index.js +1 -1
  193. package/dist/prod/packages/@ember/component/helper.js +1 -12
  194. package/dist/prod/packages/@ember/component/index.js +1291 -15
  195. package/dist/prod/packages/@ember/component/template-only.js +1 -6
  196. package/dist/prod/packages/@ember/controller/index.js +3 -16
  197. package/dist/prod/packages/@ember/debug/container-debug-adapter.js +1 -15
  198. package/dist/prod/packages/@ember/debug/data-adapter.js +5 -7
  199. package/dist/prod/packages/@ember/debug/index.js +1 -1
  200. package/dist/prod/packages/@ember/debug/lib/deprecate.js +1 -1
  201. package/dist/prod/packages/@ember/engine/index.js +3 -27
  202. package/dist/prod/packages/@ember/engine/instance.js +3 -9
  203. package/dist/prod/packages/@ember/helper/index.js +159 -19
  204. package/dist/prod/packages/@ember/instrumentation/index.js +1 -1
  205. package/dist/prod/packages/@ember/modifier/index.js +2 -14
  206. package/dist/prod/packages/@ember/modifier/on.js +1 -6
  207. package/dist/prod/packages/@ember/object/-internals.js +2 -6
  208. package/dist/prod/packages/@ember/object/compat.js +3 -7
  209. package/dist/prod/packages/@ember/object/computed.js +2 -8
  210. package/dist/prod/packages/@ember/object/core.js +8 -15
  211. package/dist/prod/packages/@ember/object/evented.js +2 -7
  212. package/dist/prod/packages/@ember/object/events.js +1 -6
  213. package/dist/prod/packages/@ember/object/index.js +10 -12
  214. package/dist/prod/packages/@ember/object/internals.js +2 -6
  215. package/dist/prod/packages/@ember/object/lib/computed/computed_macros.js +5 -20
  216. package/dist/prod/packages/@ember/object/lib/computed/reduce_computed_macros.js +2 -9
  217. package/dist/prod/packages/@ember/object/mixin.js +6 -9
  218. package/dist/prod/packages/@ember/object/observable.js +7 -9
  219. package/dist/prod/packages/@ember/object/observers.js +1 -6
  220. package/dist/prod/packages/@ember/object/promise-proxy-mixin.js +3 -9
  221. package/dist/prod/packages/@ember/object/proxy.js +0 -7
  222. package/dist/prod/packages/@ember/reactive/collections.js +591 -1
  223. package/dist/prod/packages/@ember/renderer/index.js +1 -12
  224. package/dist/prod/packages/@ember/routing/history-location.js +0 -1
  225. package/dist/prod/packages/@ember/routing/index.js +580 -12
  226. package/dist/prod/packages/@ember/routing/lib/dsl.js +0 -2
  227. package/dist/prod/packages/@ember/routing/lib/generate_controller.js +1 -6
  228. package/dist/prod/packages/@ember/routing/lib/routing-service.js +4 -14
  229. package/dist/prod/packages/@ember/routing/lib/utils.js +1 -6
  230. package/dist/prod/packages/@ember/routing/none-location.js +0 -1
  231. package/dist/prod/packages/@ember/routing/route.js +12 -22
  232. package/dist/prod/packages/@ember/routing/router-service.js +6 -15
  233. package/dist/prod/packages/@ember/routing/router.js +4 -17
  234. package/dist/prod/packages/@ember/runloop/index.js +1 -6
  235. package/dist/prod/packages/@ember/service/index.js +1 -7
  236. package/dist/prod/packages/@ember/template/index.js +1 -12
  237. package/dist/prod/packages/@ember/template-compiler/lib/compile-options.js +12 -14
  238. package/dist/prod/packages/@ember/template-compiler/lib/dasherize-component-name.js +0 -2
  239. package/dist/prod/packages/@ember/template-compiler/lib/plugins/assert-against-attrs.js +0 -1
  240. package/dist/prod/packages/@ember/template-compiler/lib/plugins/assert-against-named-outlets.js +0 -1
  241. package/dist/prod/packages/@ember/template-compiler/lib/plugins/assert-input-helper-without-block.js +0 -1
  242. package/dist/prod/packages/@ember/template-compiler/lib/plugins/assert-reserved-named-arguments.js +0 -2
  243. package/dist/prod/packages/@ember/template-compiler/lib/plugins/auto-import-builtins.js +13 -60
  244. package/dist/prod/packages/@ember/template-compiler/lib/plugins/index.js +1 -1
  245. package/dist/prod/packages/@ember/template-compiler/lib/plugins/transform-each-track-array.js +0 -1
  246. package/dist/prod/packages/@ember/template-compiler/lib/plugins/transform-in-element.js +0 -1
  247. package/dist/prod/packages/@ember/template-compiler/lib/plugins/transform-resolutions.js +126 -4
  248. package/dist/prod/packages/@ember/template-compiler/lib/template.js +2 -7
  249. package/dist/prod/packages/@ember/template-factory/index.js +1 -5
  250. package/dist/prod/packages/@ember/utils/lib/compare.js +0 -8
  251. package/dist/prod/packages/@ember/utils/lib/is_empty.js +1 -7
  252. package/dist/prod/packages/@glimmer/manager/index.js +4 -292
  253. package/dist/prod/packages/@glimmer/node/index.js +3 -8
  254. package/dist/prod/packages/@glimmer/opcode-compiler/index.js +2 -5
  255. package/dist/prod/packages/@glimmer/program/index.js +194 -3
  256. package/dist/prod/packages/@glimmer/reference/index.js +4 -4
  257. package/dist/prod/packages/@glimmer/runtime/index.js +14 -8
  258. package/dist/prod/packages/@glimmer/tracking/index.js +2 -7
  259. package/dist/prod/packages/@glimmer/tracking/primitives/cache/index.js +1 -6
  260. package/dist/prod/packages/@glimmer/util/index.js +2 -2
  261. package/dist/prod/packages/@glimmer/validator/index.js +5 -1016
  262. package/dist/prod/packages/@glimmer/vm/index.js +1 -1
  263. package/dist/prod/packages/@glimmer/wire-format/index.js +3 -65
  264. package/dist/prod/packages/ember/version.js +1 -1
  265. package/dist/prod/packages/ember-template-compiler/index.js +4 -7
  266. package/dist/prod/packages/shared-chunks/{alias-BLBQkche.js → alias-DBW_V5vD.js} +7 -6
  267. package/dist/prod/packages/shared-chunks/api-CM1trl_4.js +289 -0
  268. package/dist/prod/packages/shared-chunks/{api-B5UrgITK.js → api-zh_k31vb.js} +4 -5
  269. package/dist/prod/packages/shared-chunks/{args-proxy-Dl0A0YWI.js → args-proxy-BDXbXCF9.js} +2 -2
  270. package/dist/prod/packages/shared-chunks/{array-kVQfzrQn.js → array-D6Couewv.js} +2 -3
  271. package/dist/prod/packages/shared-chunks/assert-Zqc4wiAV.js +6 -0
  272. package/dist/prod/packages/shared-chunks/cache-BIlOoPA7.js +371 -0
  273. package/dist/prod/packages/shared-chunks/{capabilities-DXA-L0iT.js → capabilities-_5e35539.js} +0 -3
  274. package/dist/prod/packages/shared-chunks/chain-tags-C9rFtQ_x.js +178 -0
  275. package/dist/prod/packages/shared-chunks/{compiler-Bbki2GT_.js → compiler-c4yUVrl_.js} +7044 -193
  276. package/dist/prod/packages/shared-chunks/{namespace_search-Dcdalhj6.js → computed-DjCIU_ht.js} +108 -239
  277. package/dist/prod/packages/shared-chunks/container-BYOnjnwz.js +315 -0
  278. package/dist/prod/packages/shared-chunks/curly-ZzX43b50.js +545 -0
  279. package/dist/prod/packages/shared-chunks/curried-BZnYakIg.js +5 -0
  280. package/dist/prod/packages/shared-chunks/debug-render-tree-CF5O4-WI.js +2049 -0
  281. package/dist/prod/packages/shared-chunks/{decorator-BdDDBUd2.js → decorator-9ikVwsjY.js} +0 -1
  282. package/dist/prod/packages/shared-chunks/element-DUOVW5Ho.js +100 -0
  283. package/dist/prod/packages/shared-chunks/{element-builder-CzXb9l1W.js → element-builder-CnlTPNyw.js} +109 -88
  284. package/dist/prod/packages/shared-chunks/env-DXxsTFkM.js +158 -0
  285. package/dist/prod/packages/shared-chunks/events-DYrYz3V8.js +174 -0
  286. package/dist/prod/packages/shared-chunks/get-t0-itmA-.js +138 -0
  287. package/dist/prod/packages/shared-chunks/get_properties-Nn08mLAH.js +55 -0
  288. package/dist/prod/packages/shared-chunks/guid-Cbq2sNV_.js +123 -0
  289. package/dist/prod/packages/shared-chunks/hash-mcs3pEFO.js +192 -0
  290. package/dist/prod/packages/shared-chunks/helper-DLjV2ZZW.js +298 -0
  291. package/dist/prod/packages/shared-chunks/{index-CjaDF9kC.js → index-Bj71BDDA.js} +17 -10
  292. package/dist/prod/packages/shared-chunks/index-D-xTBV4B.js +220 -0
  293. package/dist/prod/packages/shared-chunks/index-qDFz6Mfe.js +2322 -0
  294. package/dist/prod/packages/shared-chunks/{injected_property-CTVs5FPh.js → injected_property--eJunJph.js} +2 -3
  295. package/dist/prod/packages/shared-chunks/intern-zquhAEIg.js +51 -0
  296. package/dist/prod/packages/shared-chunks/internal-DidurjJB.js +137 -0
  297. package/dist/prod/packages/shared-chunks/internal-helper-DIbr1RgC.js +7 -0
  298. package/dist/prod/packages/shared-chunks/{neq-BqdovTuC.js → invoke-Cj5zMqHz.js} +4 -24
  299. package/dist/{dev/packages/shared-chunks/is_proxy-B0smdQy8.js → prod/packages/shared-chunks/is_proxy-Bzg0d4m4.js} +1 -1
  300. package/dist/prod/packages/shared-chunks/libraries-_k-4KK5_.js +59 -0
  301. package/dist/prod/packages/shared-chunks/meta-B9mldqPL.js +36 -0
  302. package/dist/{dev/packages/shared-chunks/name-Z7dpqvzn.js → prod/packages/shared-chunks/name-Clp4Vsod.js} +1 -1
  303. package/dist/prod/packages/shared-chunks/namespace_search-BfvzEQzN.js +134 -0
  304. package/dist/prod/packages/shared-chunks/normalize-D9jDJVGg.js +84 -0
  305. package/dist/prod/packages/shared-chunks/observers-CDkeR0nI.js +199 -0
  306. package/dist/prod/packages/shared-chunks/on-B5NVufs_.js +228 -0
  307. package/dist/prod/packages/shared-chunks/opcodes-CplRyHl_.js +50 -0
  308. package/dist/prod/packages/shared-chunks/or-3AxY5TPj.js +91 -0
  309. package/dist/{dev/packages/shared-chunks/program-DfV0v8aa.js → prod/packages/shared-chunks/program-B7CWdS8W.js} +1 -2
  310. package/dist/{dev/packages/shared-chunks/program-context-sJz0oHOA.js → prod/packages/shared-chunks/program-context-B8HKU7wu.js} +4 -3
  311. package/dist/prod/packages/shared-chunks/property_get-CAFdpRyu.js +121 -0
  312. package/dist/prod/packages/shared-chunks/{property_set-B2sZxeCw.js → property_set-BunbMFtp.js} +3 -5
  313. package/dist/prod/packages/shared-chunks/props-fiqxqhAH.js +85 -0
  314. package/dist/prod/packages/shared-chunks/{reference-BNqcwZWH.js → reference-BshxG6wn.js} +3 -3
  315. package/dist/{dev/packages/shared-chunks/registers-ylirb0dq.js → prod/packages/shared-chunks/registers-C_W2qYHJ.js} +1 -1
  316. package/dist/{dev/packages/shared-chunks/rehydrate-builder-BRH0p0wA.js → prod/packages/shared-chunks/rehydrate-builder-DJ8k-6fg.js} +7 -7
  317. package/dist/prod/packages/shared-chunks/{render-D78XHdek.js → render-DkJJmoI4.js} +488 -12
  318. package/dist/{dev/packages/shared-chunks/chunk-3SQBS3Y5-Cj4eryg1.js → prod/packages/shared-chunks/runtime-CYyqkz5q-BOdRhmsS.js} +4 -59
  319. package/dist/{dev/packages/shared-chunks/serialize-builder-DiO7Ak9_.js → prod/packages/shared-chunks/serialize-builder-R3Ozg0sC.js} +2 -10
  320. package/dist/prod/packages/shared-chunks/set_properties-LT3RzRmJ.js +48 -0
  321. package/dist/prod/packages/shared-chunks/{setup-registry-Cs-7NIJU.js → setup-registry-C2KfZJWI.js} +34 -13
  322. package/dist/prod/packages/shared-chunks/spec-BXl1reqK.js +16 -0
  323. package/dist/prod/packages/shared-chunks/super-BBBjgF69.js +91 -0
  324. package/dist/prod/packages/shared-chunks/syscall-ops-BPFtDquC.js +133 -0
  325. package/dist/prod/packages/shared-chunks/template-BRrQR6KS.js +16 -0
  326. package/dist/prod/packages/shared-chunks/template-only-BtLl0uH0.js +78 -0
  327. package/dist/prod/packages/shared-chunks/textarea-CHqL0Rdh.js +454 -0
  328. package/dist/prod/packages/shared-chunks/{tracked-Cl5l4v8b.js → tracked-DAVrVqJl.js} +5 -4
  329. package/dist/prod/packages/shared-chunks/tracked-data-C83f5V5S.js +31 -0
  330. package/dist/prod/packages/shared-chunks/unique-id-CfHImDRV.js +32 -0
  331. package/dist/prod/packages/shared-chunks/vm-ops-ImHv0Wtg.js +12 -0
  332. package/dist/prod/packages/shared-chunks/well-known-_EVO9RaV.js +17 -0
  333. package/docs/data.json +1237 -1023
  334. package/lib/index.js +0 -1
  335. package/package.json +14 -12
  336. package/types/stable/@ember/-internals/container/lib/registry.d.ts +1 -1
  337. package/types/stable/@ember/-internals/deprecations/index.d.ts +1 -1
  338. package/types/stable/@ember/-internals/glimmer/index.d.ts +1 -1
  339. package/types/stable/@ember/-internals/glimmer/lib/component-managers/curly.d.ts +1 -1
  340. package/types/stable/@ember/-internals/glimmer/lib/component-managers/mount.d.ts +1 -1
  341. package/types/stable/@ember/-internals/glimmer/lib/component-managers/outlet.d.ts +1 -1
  342. package/types/stable/@ember/-internals/glimmer/lib/component-managers/route-template.d.ts +2 -2
  343. package/types/stable/@ember/-internals/glimmer/lib/component.d.ts +9 -7
  344. package/types/stable/@ember/-internals/glimmer/lib/components/abstract-input.d.ts +1 -1
  345. package/types/stable/@ember/-internals/glimmer/lib/dom.d.ts +6 -2
  346. package/types/stable/@ember/-internals/glimmer/lib/environment.d.ts +1 -1
  347. package/types/stable/@ember/-internals/glimmer/lib/helper.d.ts +1 -1
  348. package/types/stable/@ember/-internals/glimmer/lib/renderer.d.ts +3 -3
  349. package/types/stable/@ember/-internals/glimmer/lib/setup-registry.d.ts +1 -1
  350. package/types/stable/@ember/-internals/glimmer/lib/utils/bindings.d.ts +1 -1
  351. package/types/stable/@ember/-internals/glimmer/lib/utils/curly-component-state-bucket.d.ts +3 -2
  352. package/types/stable/@ember/-internals/glimmer/lib/utils/iterator.d.ts +1 -1
  353. package/types/stable/@ember/-internals/glimmer/lib/utils/managers.d.ts +2 -1
  354. package/types/stable/@ember/-internals/glimmer/lib/utils/serialization-first-node-helpers.d.ts +1 -1
  355. package/types/stable/@ember/-internals/glimmer/lib/utils/string.d.ts +1 -1
  356. package/types/stable/@ember/-internals/meta/lib/meta.d.ts +3 -2
  357. package/types/stable/@ember/-internals/metal/lib/cache.d.ts +1 -1
  358. package/types/stable/@ember/-internals/metal/lib/chain-tags.d.ts +3 -2
  359. package/types/stable/@ember/-internals/metal/lib/computed.d.ts +1 -1
  360. package/types/stable/@ember/-internals/metal/lib/decorator.d.ts +1 -1
  361. package/types/stable/@ember/-internals/metal/lib/deprecate_property.d.ts +1 -1
  362. package/types/stable/@ember/-internals/metal/lib/events.d.ts +1 -1
  363. package/types/stable/@ember/-internals/metal/lib/observer.d.ts +1 -1
  364. package/types/stable/@ember/-internals/metal/lib/properties.d.ts +1 -1
  365. package/types/stable/@ember/-internals/metal/lib/property_events.d.ts +1 -1
  366. package/types/stable/@ember/-internals/metal/lib/tags.d.ts +2 -1
  367. package/types/stable/@ember/-internals/runtime/lib/mixins/container_proxy.d.ts +1 -1
  368. package/types/stable/@ember/-internals/runtime/lib/mixins/registry_proxy.d.ts +1 -1
  369. package/types/stable/@ember/-internals/utils/lib/is_proxy.d.ts +1 -1
  370. package/types/stable/@ember/-internals/utils/lib/mandatory-setter.d.ts +1 -1
  371. package/types/stable/@ember/-internals/views/index.d.ts +0 -1
  372. package/types/stable/@ember/-internals/views/lib/system/utils.d.ts +1 -1
  373. package/types/stable/@ember/-internals/views/lib/views/core_view.d.ts +2 -2
  374. package/types/stable/@ember/-internals/views/lib/views/states.d.ts +1 -1
  375. package/types/stable/@ember/application/index.d.ts +5 -4
  376. package/types/stable/@ember/application/instance.d.ts +4 -3
  377. package/types/stable/@ember/application/namespace.d.ts +1 -1
  378. package/types/stable/@ember/array/proxy.d.ts +4 -3
  379. package/types/stable/@ember/component/helper.d.ts +1 -1
  380. package/types/stable/@ember/component/index.d.ts +6 -3
  381. package/types/stable/@ember/controller/index.d.ts +2 -2
  382. package/types/stable/@ember/debug/container-debug-adapter.d.ts +1 -1
  383. package/types/stable/@ember/engine/index.d.ts +3 -3
  384. package/types/stable/@ember/engine/instance.d.ts +4 -3
  385. package/types/stable/@ember/helper/index.d.ts +167 -5
  386. package/types/stable/@ember/modifier/index.d.ts +1 -1
  387. package/types/stable/@ember/object/-internals.d.ts +2 -2
  388. package/types/stable/@ember/object/compat.d.ts +2 -2
  389. package/types/stable/@ember/object/computed.d.ts +3 -1
  390. package/types/stable/@ember/object/evented.d.ts +1 -1
  391. package/types/stable/@ember/object/events.d.ts +1 -1
  392. package/types/stable/@ember/object/index.d.ts +8 -2
  393. package/types/stable/@ember/object/lib/computed/computed_macros.d.ts +1 -1
  394. package/types/stable/@ember/object/mixin.d.ts +1 -1
  395. package/types/stable/@ember/object/observers.d.ts +1 -1
  396. package/types/stable/@ember/object/proxy.d.ts +1 -1
  397. package/types/stable/@ember/reactive/collections.d.ts +6 -6
  398. package/types/stable/@ember/renderer/index.d.ts +2 -2
  399. package/types/stable/@ember/routing/index.d.ts +1 -1
  400. package/types/stable/@ember/routing/lib/controller_for.d.ts +2 -2
  401. package/types/stable/@ember/routing/route.d.ts +2 -2
  402. package/types/stable/@ember/routing/router.d.ts +2 -2
  403. package/types/stable/@ember/service/index.d.ts +1 -1
  404. package/types/stable/@ember/template/index.d.ts +1 -1
  405. package/types/stable/@ember/template-compiler/lib/dasherize-component-name.d.ts +1 -1
  406. package/types/stable/@ember/template-compiler/lib/plugins/assert-against-attrs.d.ts +1 -1
  407. package/types/stable/@ember/template-compiler/lib/plugins/assert-against-named-outlets.d.ts +1 -1
  408. package/types/stable/@ember/template-compiler/lib/plugins/assert-input-helper-without-block.d.ts +1 -1
  409. package/types/stable/@ember/template-compiler/lib/plugins/assert-reserved-named-arguments.d.ts +1 -1
  410. package/types/stable/@ember/template-compiler/lib/plugins/auto-import-builtins.d.ts +1 -4
  411. package/types/stable/@ember/template-compiler/lib/plugins/transform-action-syntax.d.ts +1 -1
  412. package/types/stable/@ember/template-compiler/lib/plugins/transform-each-in-into-each.d.ts +1 -1
  413. package/types/stable/@ember/template-compiler/lib/plugins/transform-each-track-array.d.ts +1 -1
  414. package/types/stable/@ember/template-compiler/lib/plugins/transform-in-element.d.ts +1 -1
  415. package/types/stable/@ember/template-compiler/lib/plugins/transform-quoted-bindings-into-just-bindings.d.ts +1 -1
  416. package/types/stable/@ember/template-compiler/lib/plugins/transform-resolutions.d.ts +1 -1
  417. package/types/stable/@ember/template-compiler/lib/plugins/transform-wrap-mount-and-outlet.d.ts +1 -1
  418. package/types/stable/@ember/template-compiler/lib/plugins/utils.d.ts +1 -1
  419. package/types/stable/@ember/template-compiler/lib/system/calculate-location-display.d.ts +1 -1
  420. package/types/stable/@ember/template-compiler/lib/types.d.ts +2 -1
  421. package/types/stable/@ember/template-factory/index.d.ts +1 -1
  422. package/types/stable/@glimmer/compiler/lib/builder/builder-interface.d.ts +2 -2
  423. package/types/stable/@glimmer/compiler/lib/builder/builder.d.ts +2 -2
  424. package/types/stable/@glimmer/compiler/lib/compiler.d.ts +1 -1
  425. package/types/stable/@glimmer/compiler/lib/passes/1-normalization/context.d.ts +2 -1
  426. package/types/stable/@glimmer/compiler/lib/passes/1-normalization/index.d.ts +2 -1
  427. package/types/stable/@glimmer/compiler/lib/passes/1-normalization/keywords/impl.d.ts +2 -1
  428. package/types/stable/@glimmer/compiler/lib/passes/1-normalization/keywords/utils/curry.d.ts +1 -1
  429. package/types/stable/@glimmer/compiler/lib/passes/1-normalization/keywords/utils/dynamic-vars.d.ts +1 -1
  430. package/types/stable/@glimmer/compiler/lib/passes/1-normalization/keywords/utils/has-block.d.ts +2 -1
  431. package/types/stable/@glimmer/compiler/lib/passes/1-normalization/keywords/utils/if-unless.d.ts +1 -1
  432. package/types/stable/@glimmer/compiler/lib/passes/1-normalization/keywords/utils/log.d.ts +1 -1
  433. package/types/stable/@glimmer/compiler/lib/passes/1-normalization/visitors/element/classified.d.ts +1 -1
  434. package/types/stable/@glimmer/compiler/lib/passes/1-normalization/visitors/element/component.d.ts +1 -1
  435. package/types/stable/@glimmer/compiler/lib/passes/1-normalization/visitors/element/simple-element.d.ts +2 -1
  436. package/types/stable/@glimmer/compiler/lib/passes/1-normalization/visitors/expressions.d.ts +1 -1
  437. package/types/stable/@glimmer/compiler/lib/passes/1-normalization/visitors/statements.d.ts +1 -1
  438. package/types/stable/@glimmer/compiler/lib/passes/1-normalization/visitors/strict-mode.d.ts +1 -1
  439. package/types/stable/@glimmer/compiler/lib/passes/2-encoding/expressions.d.ts +1 -1
  440. package/types/stable/@glimmer/compiler/lib/passes/2-encoding/mir.d.ts +3 -1
  441. package/types/stable/@glimmer/compiler/lib/shared/result.d.ts +1 -1
  442. package/types/stable/@glimmer/manager/lib/public/component.d.ts +1 -1
  443. package/types/stable/@glimmer/manager/lib/util/args-proxy.d.ts +1 -1
  444. package/types/stable/@glimmer/manager/lib/util/capabilities.d.ts +1 -1
  445. package/types/stable/@glimmer/node/lib/node-dom-helper.d.ts +1 -1
  446. package/types/stable/@glimmer/opcode-compiler/lib/opcode-builder/helpers/components.d.ts +1 -1
  447. package/types/stable/@glimmer/runtime/index.d.ts +7 -4
  448. package/types/stable/@glimmer/runtime/lib/compiled/expressions/concat.d.ts +1 -1
  449. package/types/stable/@glimmer/runtime/lib/compiled/opcodes/-debug-strip.d.ts +4 -3
  450. package/types/stable/@glimmer/runtime/lib/compiled/opcodes/component.d.ts +1 -1
  451. package/types/stable/@glimmer/runtime/lib/compiled/opcodes/dom.d.ts +2 -2
  452. package/types/stable/@glimmer/runtime/lib/compiled/opcodes/vm.d.ts +2 -2
  453. package/types/stable/@glimmer/runtime/lib/component/template-only.d.ts +1 -1
  454. package/types/stable/@glimmer/runtime/lib/curried-value.d.ts +1 -1
  455. package/types/stable/@glimmer/runtime/lib/helpers/and.d.ts +3 -0
  456. package/types/stable/@glimmer/runtime/lib/helpers/gt.d.ts +8 -0
  457. package/types/stable/@glimmer/runtime/lib/helpers/gte.d.ts +8 -0
  458. package/types/stable/@glimmer/runtime/lib/helpers/invoke.d.ts +1 -1
  459. package/types/stable/@glimmer/runtime/lib/helpers/lt.d.ts +8 -0
  460. package/types/stable/@glimmer/runtime/lib/helpers/lte.d.ts +8 -0
  461. package/types/stable/@glimmer/runtime/lib/helpers/not.d.ts +3 -0
  462. package/types/stable/@glimmer/runtime/lib/helpers/or.d.ts +3 -0
  463. package/types/stable/@glimmer/runtime/lib/opcodes.d.ts +2 -2
  464. package/types/stable/@glimmer/runtime/lib/references/class-list.d.ts +1 -1
  465. package/types/stable/@glimmer/runtime/lib/references/curry-value.d.ts +1 -1
  466. package/types/stable/@glimmer/runtime/lib/render.d.ts +1 -1
  467. package/types/stable/@glimmer/runtime/lib/scope.d.ts +1 -1
  468. package/types/stable/@glimmer/runtime/lib/vm/append.d.ts +3 -2
  469. package/types/stable/@glimmer/runtime/lib/vm/arguments.d.ts +2 -2
  470. package/types/stable/@glimmer/runtime/lib/vm/content/text.d.ts +1 -1
  471. package/types/stable/@glimmer/runtime/lib/vm/element-builder.d.ts +1 -1
  472. package/types/stable/@glimmer/runtime/lib/vm/low-level.d.ts +2 -1
  473. package/types/stable/@glimmer/runtime/lib/vm/rehydrate-builder.d.ts +1 -1
  474. package/types/stable/@glimmer/runtime/lib/vm/update.d.ts +2 -1
  475. package/types/stable/@glimmer/syntax/lib/keywords.d.ts +2 -2
  476. package/types/stable/@glimmer/tracking/index.d.ts +2 -1
  477. package/types/stable/@glimmer/tracking/primitives/cache.d.ts +1 -1
  478. package/types/stable/index.d.ts +7 -1
  479. package/dist/dev/packages/@ember/-internals/views/lib/component_lookup.js +0 -14
  480. package/dist/dev/packages/shared-chunks/assert-CUCJBR2C.js +0 -19
  481. package/dist/dev/packages/shared-chunks/constants-BbdWMvgs.js +0 -213
  482. package/dist/dev/packages/shared-chunks/dynamic-CgX8M02_.js +0 -3823
  483. package/dist/dev/packages/shared-chunks/element-builder-BpJIoi99.js +0 -404
  484. package/dist/dev/packages/shared-chunks/fragment-Cc5k9Oy4.js +0 -911
  485. package/dist/dev/packages/shared-chunks/index-RzG0Jvjx.js +0 -6306
  486. package/dist/dev/packages/shared-chunks/mandatory-setter-DHZe7-kW.js +0 -425
  487. package/dist/dev/packages/shared-chunks/observers-Bj9qLVau.js +0 -2062
  488. package/dist/dev/packages/shared-chunks/set_properties-kVGzZL_a.js +0 -100
  489. package/dist/dev/packages/shared-chunks/transform-resolutions-D-YtZ0_g.js +0 -7458
  490. package/dist/prod/packages/@ember/-internals/views/lib/component_lookup.js +0 -14
  491. package/dist/prod/packages/shared-chunks/constants-DThhT5fu.js +0 -210
  492. package/dist/prod/packages/shared-chunks/fragment-D7nBU9ae.js +0 -925
  493. package/dist/prod/packages/shared-chunks/index-r-Dz_hzt.js +0 -5931
  494. package/dist/prod/packages/shared-chunks/observers-tZ2aOzr4.js +0 -714
  495. package/dist/prod/packages/shared-chunks/set_properties-C1T46IiN.js +0 -101
  496. package/dist/prod/packages/shared-chunks/super-Cm_a_cLQ.js +0 -275
  497. package/dist/prod/packages/shared-chunks/transform-resolutions-DR4GLmR2.js +0 -6936
  498. package/types/stable/@ember/-internals/views/lib/component_lookup.d.ts +0 -8
  499. package/dist/prod/packages/shared-chunks/{collections-GpG8lT2g.js → collections-C3Y8z_9v.js} +9 -9
@@ -1,20 +1,1359 @@
1
- import '../../shared-chunks/debug-to-string-CFb7h0lY.js';
2
- import '../../@glimmer/global-context/index.js';
3
- import '../../@glimmer/destroyable/index.js';
4
- import '../../@glimmer/validator/index.js';
5
- import '../../shared-chunks/reference-C3TKDRnP.js';
6
- import '../../shared-chunks/capabilities-O_xc7Yqk.js';
7
- import { setComponentManager as setComponentManager$1 } from '../../@glimmer/manager/index.js';
8
- export { componentCapabilities as capabilities } from '../../@glimmer/manager/index.js';
9
- export { g as getComponentTemplate, s as setComponentTemplate } from '../../shared-chunks/template-kM-7TTcc.js';
10
- import '../../shared-chunks/fragment-Cc5k9Oy4.js';
11
- import '../../shared-chunks/index-BUPd6pkm.js';
12
- export { I as Input, T as Textarea, C as default } from '../../shared-chunks/index-RzG0Jvjx.js';
13
- import '../-internals/container/index.js';
1
+ export { g as getComponentTemplate, s as setComponentTemplate } from '../../shared-chunks/template-R_5UMHhb.js';
2
+ import { d as descriptorForProperty, n as nativeDescDecorator } from '../../shared-chunks/decorator-B5Uh5NFI.js';
3
+ import { g as get } from '../../shared-chunks/property_get-CIBS9umw.js';
4
+ import { P as PROPERTY_DID_CHANGE } from '../../shared-chunks/computed-CJnghmXC.js';
5
+ import { getOwner } from '../-internals/owner/index.js';
6
+ import TargetActionSupport from '../-internals/runtime/lib/mixins/target_action_support.js';
7
+ import ActionSupport from '../-internals/views/lib/mixins/action_support.js';
8
+ import { getViewElement, getChildViews, addChildView } from '../-internals/views/lib/system/utils.js';
9
+ import CoreView from '../-internals/views/lib/views/core_view.js';
10
+ import EventDispatcher from '../-internals/views/lib/system/event_dispatcher.js';
11
+ import { g as guidFor } from '../../shared-chunks/guid-Cbq2sNV_.js';
14
12
  import '../debug/index.js';
15
- import '../../shared-chunks/dynamic-CgX8M02_.js';
16
- import '../../shared-chunks/constants-BbdWMvgs.js';
17
- import '../runloop/index.js';
13
+ import { s as setInternalComponentManager } from '../../shared-chunks/api-BawZUDYD.js';
14
+ import { d as isUpdatableRef, u as updateRef } from '../../shared-chunks/reference-BoPB2LfI.js';
15
+ import { n as normalizeProperty } from '../../shared-chunks/props-fiqxqhAH.js';
16
+ import { m as createTag, D as DIRTY_TAG$1 } from '../../shared-chunks/cache-B7dqAS38.js';
17
+ import { I as IS_DISPATCHING_ATTRS, D as DIRTY_TAG, B as BOUNDS, g as getComponentCapturedArgs, C as CURLY_COMPONENT_MANAGER } from '../../shared-chunks/curly-BBzF_bI8.js';
18
+ import { h as hasDOM } from '../../shared-chunks/index-BGP1rw3B.js';
19
+ import { a as decorateMethodV2 } from '../../shared-chunks/runtime-CYyqkz5q-BOdRhmsS.js';
20
+ import { assert } from '../debug/lib/assert.js';
21
+ export { I as Input, T as Textarea } from '../../shared-chunks/textarea-WSlUEr0y.js';
22
+ import { s as setComponentManager$1 } from '../../shared-chunks/api-BAmlf_CN.js';
23
+ export { c as capabilities } from '../../shared-chunks/api-BAmlf_CN.js';
24
+ import '../../@glimmer/destroyable/index.js';
25
+ import '../../@glimmer/global-context/index.js';
26
+ import '../../shared-chunks/capabilities-CZkuOqqC.js';
27
+
28
+ let lazyEventsProcessed = new WeakMap();
29
+ const EMPTY_ARRAY = Object.freeze([]);
30
+
31
+ /**
32
+ Determines if the element matches the specified selector.
33
+
34
+ @private
35
+ @method matches
36
+ @param {DOMElement} el
37
+ @param {String} selector
38
+ */
39
+ const elMatches = typeof Element !== 'undefined' ? Element.prototype.matches : undefined;
40
+ function matches(el, selector) {
41
+ (!(elMatches !== undefined) && assert('cannot call `matches` in fastboot mode', elMatches !== undefined));
42
+ return elMatches.call(el, selector);
43
+ }
44
+
45
+ /**
46
+ @module @ember/component
47
+ */
48
+
49
+ // A zero-runtime-overhead private symbol to use in branding the component to
50
+ // preserve its type parameter.
51
+
52
+ /**
53
+ A component is a reusable UI element that consists of a `.hbs` template and an
54
+ optional JavaScript class that defines its behavior. For example, someone
55
+ might make a `button` in the template and handle the click behavior in the
56
+ JavaScript file that shares the same name as the template.
57
+
58
+ Components are broken down into two categories:
59
+
60
+ - Components _without_ JavaScript, that are based only on a template. These
61
+ are called Template-only or TO components.
62
+ - Components _with_ JavaScript, which consist of a template and a backing
63
+ class.
64
+
65
+ Ember ships with two types of JavaScript classes for components:
66
+
67
+ 1. Glimmer components, imported from `@glimmer/component`, which are the
68
+ default component's for Ember Octane (3.15) and more recent editions.
69
+ 2. Classic components, imported from `@ember/component`, which were the
70
+ default for older editions of Ember (pre 3.15).
71
+
72
+ Below is the documentation for Classic components. If you are looking for the
73
+ API documentation for Template-only or Glimmer components, it is [available
74
+ here](/ember/release/modules/@glimmer%2Fcomponent).
75
+
76
+ ## Defining a Classic Component
77
+
78
+ If you want to customize the component in order to handle events, transform
79
+ arguments or maintain internal state, you implement a subclass of `Component`.
80
+
81
+ One example is to add computed properties to your component:
82
+
83
+ ```app/components/person-profile.js
84
+ import Component from '@ember/component';
85
+
86
+ export default class extends Component {
87
+ @computed('person.title', 'person.firstName', 'person.lastName')
88
+ get displayName() {
89
+ let { title, firstName, lastName } = this.person;
90
+
91
+ if (title) {
92
+ return `${title} ${lastName}`;
93
+ } else {
94
+ return `${firstName} ${lastName}`;
95
+ }
96
+ }
97
+ }
98
+ ```
99
+
100
+ And then use it in the component's template:
101
+
102
+ ```app/templates/components/person-profile.hbs
103
+ <h1>{{this.displayName}}</h1>
104
+ {{yield}}
105
+ ```
106
+
107
+ ## Customizing a Classic Component's HTML Element in JavaScript
108
+
109
+ ### HTML Tag
110
+
111
+ The default HTML tag name used for a component's HTML representation is `div`.
112
+ This can be customized by setting the `tagName` property.
113
+
114
+ Consider the following component class:
115
+
116
+ ```app/components/emphasized-paragraph.js
117
+ import Component from '@ember/component';
118
+
119
+ export default class extends Component {
120
+ tagName = 'em';
121
+ }
122
+ ```
123
+
124
+ When invoked, this component would produce output that looks something like
125
+ this:
126
+
127
+ ```html
128
+ <em id="ember1" class="ember-view"></em>
129
+ ```
130
+
131
+ ### HTML `class` Attribute
132
+
133
+ The HTML `class` attribute of a component's tag can be set by providing a
134
+ `classNames` property that is set to an array of strings:
135
+
136
+ ```app/components/my-widget.js
137
+ import Component from '@ember/component';
138
+
139
+ export default class extends Component {
140
+ classNames = ['my-class', 'my-other-class'];
141
+ }
142
+ ```
143
+
144
+ Invoking this component will produce output that looks like this:
145
+
146
+ ```html
147
+ <div id="ember1" class="ember-view my-class my-other-class"></div>
148
+ ```
149
+
150
+ `class` attribute values can also be set by providing a `classNameBindings`
151
+ property set to an array of properties names for the component. The return
152
+ value of these properties will be added as part of the value for the
153
+ components's `class` attribute. These properties can be computed properties:
154
+
155
+ ```app/components/my-widget.js
156
+ import Component from '@ember/component';
157
+ import { computed } from '@ember/object';
158
+
159
+ export default class extends Component {
160
+ classNames = ['my-class', 'my-other-class'];
161
+ classNameBindings = ['propertyA', 'propertyB'];
162
+
163
+ propertyA = 'from-a';
164
+
165
+ get propertyB {
166
+ if (someLogic) { return 'from-b'; }
167
+ }
168
+ }
169
+ ```
170
+
171
+ Invoking this component will produce HTML that looks like:
172
+
173
+ ```html
174
+ <div id="ember1" class="ember-view my-class my-other-class from-a from-b"></div>
175
+ ```
176
+
177
+ Note that `classNames` and `classNameBindings` is in addition to the `class`
178
+ attribute passed with the angle bracket invocation syntax. Therefore, if this
179
+ component was invoked like so:
180
+
181
+ ```handlebars
182
+ <MyWidget class="from-invocation" />
183
+ ```
184
+
185
+ The resulting HTML will look similar to this:
186
+
187
+ ```html
188
+ <div id="ember1" class="from-invocation ember-view my-class my-other-class from-a from-b"></div>
189
+ ```
190
+
191
+ If the value of a class name binding returns a boolean the property name
192
+ itself will be used as the class name if the property is true. The class name
193
+ will not be added if the value is `false` or `undefined`.
194
+
195
+ ```app/components/my-widget.js
196
+ import Component from '@ember/component';
197
+
198
+ export default class extends Component {
199
+ classNameBindings = ['hovered'];
200
+
201
+ hovered = true;
202
+ }
203
+ ```
204
+
205
+ Invoking this component will produce HTML that looks like:
206
+
207
+ ```html
208
+ <div id="ember1" class="ember-view hovered"></div>
209
+ ```
210
+
211
+ ### Custom Class Names for Boolean Values
212
+
213
+ When using boolean class name bindings you can supply a string value other
214
+ than the property name for use as the `class` HTML attribute by appending the
215
+ preferred value after a ":" character when defining the binding:
216
+
217
+ ```app/components/my-widget.js
218
+ import Component from '@ember/component';
219
+
220
+ export default class extends Component {
221
+ classNameBindings = ['awesome:so-very-cool'];
222
+
223
+ awesome = true;
224
+ }
225
+ ```
226
+
227
+ Invoking this component will produce HTML that looks like:
228
+
229
+ ```html
230
+ <div id="ember1" class="ember-view so-very-cool"></div>
231
+ ```
232
+
233
+ Boolean value class name bindings whose property names are in a
234
+ camelCase-style format will be converted to a dasherized format:
235
+
236
+ ```app/components/my-widget.js
237
+ import Component from '@ember/component';
238
+
239
+ export default class extends Component {
240
+ classNameBindings = ['isUrgent'];
241
+
242
+ isUrgent = true;
243
+ }
244
+ ```
245
+
246
+ Invoking this component will produce HTML that looks like:
247
+
248
+ ```html
249
+ <div id="ember1" class="ember-view is-urgent"></div>
250
+ ```
251
+
252
+ Class name bindings can also refer to object values that are found by
253
+ traversing a path relative to the component itself:
254
+
255
+ ```app/components/my-widget.js
256
+ import Component from '@ember/component';
257
+ import EmberObject from '@ember/object';
258
+
259
+ export default class extends Component {
260
+ classNameBindings = ['messages.empty'];
261
+
262
+ messages = EmberObject.create({
263
+ empty: true
264
+ });
265
+ }
266
+ ```
267
+
268
+ Invoking this component will produce HTML that looks like:
269
+
270
+ ```html
271
+ <div id="ember1" class="ember-view empty"></div>
272
+ ```
273
+
274
+ If you want to add a class name for a property which evaluates to true and and
275
+ a different class name if it evaluates to false, you can pass a binding like
276
+ this:
277
+
278
+ ```app/components/my-widget.js
279
+ import Component from '@ember/component';
280
+
281
+ export default class extends Component {
282
+ classNameBindings = ['isEnabled:enabled:disabled'];
283
+
284
+ isEnabled = true;
285
+ }
286
+ ```
287
+
288
+ Invoking this component will produce HTML that looks like:
289
+
290
+ ```html
291
+ <div id="ember1" class="ember-view enabled"></div>
292
+ ```
293
+
294
+ When isEnabled is `false`, the resulting HTML representation looks like this:
295
+
296
+ ```html
297
+ <div id="ember1" class="ember-view disabled"></div>
298
+ ```
299
+
300
+ This syntax offers the convenience to add a class if a property is `false`:
301
+
302
+ ```app/components/my-widget.js
303
+ import Component from '@ember/component';
304
+
305
+ // Applies no class when isEnabled is true and class 'disabled' when isEnabled is false
306
+ export default class extends Component {
307
+ classNameBindings = ['isEnabled::disabled'];
308
+
309
+ isEnabled = true;
310
+ }
311
+ ```
312
+
313
+ Invoking this component when the `isEnabled` property is true will produce
314
+ HTML that looks like:
315
+
316
+ ```html
317
+ <div id="ember1" class="ember-view"></div>
318
+ ```
319
+
320
+ Invoking it when the `isEnabled` property on the component is `false` will
321
+ produce HTML that looks like:
322
+
323
+ ```html
324
+ <div id="ember1" class="ember-view disabled"></div>
325
+ ```
326
+
327
+ Updates to the value of a class name binding will result in automatic update
328
+ of the HTML `class` attribute in the component's rendered HTML
329
+ representation. If the value becomes `false` or `undefined` the class name
330
+ will be removed.
331
+
332
+ Both `classNames` and `classNameBindings` are concatenated properties. See
333
+ [EmberObject](/ember/release/classes/EmberObject) documentation for more
334
+ information about concatenated properties.
335
+
336
+ ### Other HTML Attributes
337
+
338
+ The HTML attribute section of a component's tag can be set by providing an
339
+ `attributeBindings` property set to an array of property names on the
340
+ component. The return value of these properties will be used as the value of
341
+ the component's HTML associated attribute:
342
+
343
+ ```app/components/my-anchor.js
344
+ import Component from '@ember/component';
345
+
346
+ export default class extends Component {
347
+ tagName = 'a';
348
+ attributeBindings = ['href'];
349
+
350
+ href = 'http://google.com';
351
+ };
352
+ ```
353
+
354
+ Invoking this component will produce HTML that looks like:
355
+
356
+ ```html
357
+ <a id="ember1" class="ember-view" href="http://google.com"></a>
358
+ ```
359
+
360
+ One property can be mapped on to another by placing a ":" between the source
361
+ property and the destination property:
362
+
363
+ ```app/components/my-anchor.js
364
+ import Component from '@ember/component';
365
+
366
+ export default class extends Component {
367
+ tagName = 'a';
368
+ attributeBindings = ['url:href'];
369
+
370
+ url = 'http://google.com';
371
+ };
372
+ ```
373
+
374
+ Invoking this component will produce HTML that looks like:
375
+
376
+ ```html
377
+ <a id="ember1" class="ember-view" href="http://google.com"></a>
378
+ ```
379
+
380
+ HTML attributes passed with angle bracket invocations will take precedence
381
+ over those specified in `attributeBindings`. Therefore, if this component was
382
+ invoked like so:
383
+
384
+ ```handlebars
385
+ <MyAnchor href="http://bing.com" @url="http://google.com" />
386
+ ```
387
+
388
+ The resulting HTML will looks like this:
389
+
390
+ ```html
391
+ <a id="ember1" class="ember-view" href="http://bing.com"></a>
392
+ ```
393
+
394
+ Note that the `href` attribute is ultimately set to `http://bing.com`, despite
395
+ it having attribute binidng to the `url` property, which was set to
396
+ `http://google.com`.
397
+
398
+ Namespaced attributes (e.g. `xlink:href`) are supported, but have to be
399
+ mapped, since `:` is not a valid character for properties in Javascript:
400
+
401
+ ```app/components/my-use.js
402
+ import Component from '@ember/component';
403
+
404
+ export default class extends Component {
405
+ tagName = 'use';
406
+ attributeBindings = ['xlinkHref:xlink:href'];
407
+
408
+ xlinkHref = '#triangle';
409
+ };
410
+ ```
411
+
412
+ Invoking this component will produce HTML that looks like:
413
+
414
+ ```html
415
+ <use xlink:href="#triangle"></use>
416
+ ```
417
+
418
+ If the value of a property monitored by `attributeBindings` is a boolean, the
419
+ attribute will be present or absent depending on the value:
420
+
421
+ ```app/components/my-text-input.js
422
+ import Component from '@ember/component';
423
+
424
+ export default class extends Component {
425
+ tagName = 'input';
426
+ attributeBindings = ['disabled'];
427
+
428
+ disabled = false;
429
+ };
430
+ ```
431
+
432
+ Invoking this component will produce HTML that looks like:
433
+
434
+ ```html
435
+ <input id="ember1" class="ember-view" />
436
+ ```
437
+
438
+ `attributeBindings` can refer to computed properties:
439
+
440
+ ```app/components/my-text-input.js
441
+ import Component from '@ember/component';
442
+ import { computed } from '@ember/object';
443
+
444
+ export default class extends Component {
445
+ tagName = 'input';
446
+ attributeBindings = ['disabled'];
447
+
448
+ get disabled() {
449
+ if (someLogic) {
450
+ return true;
451
+ } else {
452
+ return false;
453
+ }
454
+ }
455
+ };
456
+ ```
457
+
458
+ To prevent setting an attribute altogether, use `null` or `undefined` as the
459
+ value of the property used in `attributeBindings`:
460
+
461
+ ```app/components/my-text-input.js
462
+ import Component from '@ember/component';
463
+
464
+ export default class extends Component {
465
+ tagName = 'form';
466
+ attributeBindings = ['novalidate'];
467
+ novalidate = null;
468
+ };
469
+ ```
470
+
471
+ Updates to the property of an attribute binding will result in automatic
472
+ update of the HTML attribute in the component's HTML output.
473
+
474
+ `attributeBindings` is a concatenated property. See
475
+ [EmberObject](/ember/release/classes/EmberObject) documentation for more
476
+ information about concatenated properties.
477
+
478
+ ## Layouts
479
+
480
+ The `layout` property can be used to dynamically specify a template associated
481
+ with a component class, instead of relying on Ember to link together a
482
+ component class and a template based on file names.
483
+
484
+ In general, applications should not use this feature, but it's commonly used
485
+ in addons for historical reasons.
486
+
487
+ The `layout` property should be set to the default export of a template
488
+ module, which is the name of a template file without the `.hbs` extension.
489
+
490
+ ```app/templates/components/person-profile.hbs
491
+ <h1>Person's Title</h1>
492
+ <div class='details'>{{yield}}</div>
493
+ ```
494
+
495
+ ```app/components/person-profile.js
496
+ import Component from '@ember/component';
497
+ import layout from '../templates/components/person-profile';
498
+
499
+ export default class extends Component {
500
+ layout = layout;
501
+ }
502
+ ```
503
+
504
+ If you invoke the component:
505
+
506
+ ```handlebars
507
+ <PersonProfile>
508
+ <h2>Chief Basket Weaver</h2>
509
+ <h3>Fisherman Industries</h3>
510
+ </PersonProfile>
511
+ ```
512
+
513
+ or
514
+
515
+ ```handlebars
516
+ {{#person-profile}}
517
+ <h2>Chief Basket Weaver</h2>
518
+ <h3>Fisherman Industries</h3>
519
+ {{/person-profile}}
520
+ ```
521
+
522
+ It will result in the following HTML output:
523
+
524
+ ```html
525
+ <h1>Person's Title</h1>
526
+ <div class="details">
527
+ <h2>Chief Basket Weaver</h2>
528
+ <h3>Fisherman Industries</h3>
529
+ </div>
530
+ ```
531
+
532
+ ## Handling Browser Events
533
+
534
+ There are two ways to handle user-initiated events:
535
+
536
+ ### Using the `on` modifier to capture browser events
537
+
538
+ In a component's template, you can attach an event handler to any element with the `on` modifier:
539
+
540
+ ```handlebars
541
+ <button {{on 'click' this.doSomething}} />
542
+ ```
543
+
544
+ This will call the function on your component:
545
+
546
+ ```js
547
+ import Component from '@ember/component';
548
+
549
+ export default class ExampleComponent extends Component {
550
+ doSomething = (event) => {
551
+ // `event` is the native click Event
552
+ console.log('clicked on the button');
553
+ };
554
+ }
555
+ ```
556
+
557
+ See the [Guide on Component event
558
+ handlers](https://guides.emberjs.com/release/components/component-state-and-actions/#toc_html-modifiers-and-actions)
559
+ and the [API docs for `on`](../Ember.Templates.helpers/methods/on?anchor=on)
560
+ for more details.
561
+
562
+ ### Event Handler Methods
563
+
564
+ Components can also respond to user-initiated events by implementing a method
565
+ that matches the event name. This approach is appropriate when the same event
566
+ should be handled by all instances of the same component.
567
+
568
+ An event object will be passed as the argument to the event handler method.
569
+
570
+ ```app/components/my-widget.js
571
+ import Component from '@ember/component';
572
+
573
+ export default class extends Component {
574
+ click(event) {
575
+ // `event.target` is either the component's element or one of its children
576
+ let tag = event.target.tagName.toLowerCase();
577
+ console.log('clicked on a `<${tag}>` HTML element!');
578
+ }
579
+ }
580
+ ```
581
+
582
+ In this example, whenever the user clicked anywhere inside the component, it
583
+ will log a message to the console.
584
+
585
+ It is possible to handle event types other than `click` by implementing the
586
+ following event handler methods. In addition, custom events can be registered
587
+ by using `Application.customEvents`.
588
+
589
+ Touch events:
590
+
591
+ * `touchStart`
592
+ * `touchMove`
593
+ * `touchEnd`
594
+ * `touchCancel`
595
+
596
+ Keyboard events:
597
+
598
+ * `keyDown`
599
+ * `keyUp`
600
+ * `keyPress`
601
+
602
+ Mouse events:
603
+
604
+ * `mouseDown`
605
+ * `mouseUp`
606
+ * `contextMenu`
607
+ * `click`
608
+ * `doubleClick`
609
+ * `focusIn`
610
+ * `focusOut`
611
+
612
+ Form events:
613
+
614
+ * `submit`
615
+ * `change`
616
+ * `focusIn`
617
+ * `focusOut`
618
+ * `input`
619
+
620
+ Drag and drop events:
621
+
622
+ * `dragStart`
623
+ * `drag`
624
+ * `dragEnter`
625
+ * `dragLeave`
626
+ * `dragOver`
627
+ * `dragEnd`
628
+ * `drop`
629
+
630
+ @class Component
631
+ @extends Ember.CoreView
632
+ @uses Ember.TargetActionSupport
633
+ @uses Ember.ActionSupport
634
+ @public
635
+ */
636
+ // This type param is used in the class, so must appear here.
637
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
638
+
639
+ class Component extends CoreView.extend(TargetActionSupport, ActionSupport, {
640
+ // These need to be overridable via extend/create but should still
641
+ // have a default. Defining them here is the best way to achieve that.
642
+ didReceiveAttrs() {},
643
+ didRender() {},
644
+ didUpdate() {},
645
+ didUpdateAttrs() {},
646
+ willRender() {},
647
+ willUpdate() {}
648
+ }, {
649
+ concatenatedProperties: ['attributeBindings', 'classNames', 'classNameBindings'],
650
+ classNames: EMPTY_ARRAY,
651
+ classNameBindings: EMPTY_ARRAY
652
+ }) {
653
+ isComponent = true;
654
+
655
+ // SAFETY: this has no runtime existence whatsoever; it is a "phantom type"
656
+ // here to preserve the type param.
657
+
658
+ // SAFTEY: This is set in `init`.
659
+
660
+ /**
661
+ Standard CSS class names to apply to the view's outer element. This
662
+ property automatically inherits any class names defined by the view's
663
+ superclasses as well.
664
+ @property classNames
665
+ @type Array
666
+ @default ['ember-view']
667
+ @public
668
+ */
669
+
670
+ /**
671
+ A list of properties of the view to apply as class names. If the property
672
+ is a string value, the value of that string will be applied as a class
673
+ name.
674
+ ```javascript
675
+ // Applies the 'high' class to the view element
676
+ import Component from '@ember/component';
677
+ Component.extend({
678
+ classNameBindings: ['priority'],
679
+ priority: 'high'
680
+ });
681
+ ```
682
+ If the value of the property is a Boolean, the name of that property is
683
+ added as a dasherized class name.
684
+ ```javascript
685
+ // Applies the 'is-urgent' class to the view element
686
+ import Component from '@ember/component';
687
+ Component.extend({
688
+ classNameBindings: ['isUrgent'],
689
+ isUrgent: true
690
+ });
691
+ ```
692
+ If you would prefer to use a custom value instead of the dasherized
693
+ property name, you can pass a binding like this:
694
+ ```javascript
695
+ // Applies the 'urgent' class to the view element
696
+ import Component from '@ember/component';
697
+ Component.extend({
698
+ classNameBindings: ['isUrgent:urgent'],
699
+ isUrgent: true
700
+ });
701
+ ```
702
+ If you would like to specify a class that should only be added when the
703
+ property is false, you can declare a binding like this:
704
+ ```javascript
705
+ // Applies the 'disabled' class to the view element
706
+ import Component from '@ember/component';
707
+ Component.extend({
708
+ classNameBindings: ['isEnabled::disabled'],
709
+ isEnabled: false
710
+ });
711
+ ```
712
+ This list of properties is inherited from the component's superclasses as well.
713
+ @property classNameBindings
714
+ @type Array
715
+ @default []
716
+ @public
717
+ */
718
+
719
+ init(properties) {
720
+ super.init(properties);
721
+
722
+ // Handle methods from ViewMixin.
723
+ // The native class inheritance will not work for mixins. To work around this,
724
+ // we copy the existing rerender method provided by the mixin and swap in the
725
+ // new rerender method from our class.
726
+ this._superRerender = this.rerender;
727
+ this.rerender = this._rerender;
728
+ this[IS_DISPATCHING_ATTRS] = false;
729
+ this[DIRTY_TAG] = createTag();
730
+ this[BOUNDS] = null;
731
+ const eventDispatcher = this._dispatcher;
732
+ if (eventDispatcher) {
733
+ let lazyEventsProcessedForComponentClass = lazyEventsProcessed.get(eventDispatcher);
734
+ if (!lazyEventsProcessedForComponentClass) {
735
+ lazyEventsProcessedForComponentClass = new WeakSet();
736
+ lazyEventsProcessed.set(eventDispatcher, lazyEventsProcessedForComponentClass);
737
+ }
738
+ let proto = Object.getPrototypeOf(this);
739
+ if (!lazyEventsProcessedForComponentClass.has(proto)) {
740
+ let lazyEvents = eventDispatcher.lazyEvents;
741
+ lazyEvents.forEach((mappedEventName, event) => {
742
+ if (mappedEventName !== null && typeof this[mappedEventName] === 'function') {
743
+ eventDispatcher.setupHandlerForBrowserEvent(event);
744
+ }
745
+ });
746
+ lazyEventsProcessedForComponentClass.add(proto);
747
+ }
748
+ }
749
+ if (eventDispatcher && this.renderer._isInteractive && this.tagName === '') {
750
+ let eventNames = [];
751
+ let events = eventDispatcher.finalEventNameMapping;
752
+ for (let key in events) {
753
+ let methodName = events[key];
754
+ if (methodName && typeof this[methodName] === 'function') {
755
+ eventNames.push(methodName);
756
+ }
757
+ }
758
+ // If in a tagless component, assert that no event handlers are defined
759
+ (!(!eventNames.length) && assert(`You can not define \`${eventNames}\` function(s) to handle DOM event in the \`${this}\` tagless component since it doesn't have any DOM element.`, !eventNames.length));
760
+ }
761
+ (!(descriptorForProperty(this, 'classNameBindings') === undefined && Array.isArray(this.classNameBindings)) && assert(`Only arrays are allowed for 'classNameBindings'`, descriptorForProperty(this, 'classNameBindings') === undefined && Array.isArray(this.classNameBindings)));
762
+ (!(descriptorForProperty(this, 'classNames') === undefined && Array.isArray(this.classNames)) && assert(`Only arrays of static class strings are allowed for 'classNames'. For dynamic classes, use 'classNameBindings'.`, descriptorForProperty(this, 'classNames') === undefined && Array.isArray(this.classNames))); // ViewMixin
763
+ // Setup a view, but do not finish waking it up.
764
+ // * configure `childViews`
765
+ // * register the view with the global views hash, which is used for event
766
+ // dispatch
767
+ (!(descriptorForProperty(this, 'elementId') === undefined) && assert(`You cannot use a computed property for the component's \`elementId\` (${this}).`, descriptorForProperty(this, 'elementId') === undefined));
768
+ (!(descriptorForProperty(this, 'tagName') === undefined) && assert(`You cannot use a computed property for the component's \`tagName\` (${this}).`, descriptorForProperty(this, 'tagName') === undefined));
769
+ if (!this.elementId && this.tagName !== '') {
770
+ this.elementId = guidFor(this);
771
+ }
772
+ }
773
+ __dispatcher;
774
+ get _dispatcher() {
775
+ if (this.__dispatcher === undefined) {
776
+ let owner = getOwner(this);
777
+ (!(owner) && assert('Component is unexpectedly missing an owner', owner));
778
+ if (owner.lookup('-environment:main').isInteractive) {
779
+ let dispatcher = owner.lookup('event_dispatcher:main');
780
+ (!(dispatcher instanceof EventDispatcher) && assert('Expected dispatcher to be an EventDispatcher', dispatcher instanceof EventDispatcher));
781
+ this.__dispatcher = dispatcher;
782
+ } else {
783
+ // In FastBoot we have no EventDispatcher. Set to null to not try again to look it up.
784
+ this.__dispatcher = null;
785
+ }
786
+ }
787
+ return this.__dispatcher;
788
+ }
789
+ on(name, target, method) {
790
+ this._dispatcher?.setupHandlerForEmberEvent(name);
791
+ // The `on` method here comes from the Evented mixin. Since this mixin
792
+ // is applied to the parent of this class, however, we are still able
793
+ // to use `super`.
794
+ return super.on(name, target, method);
795
+ }
796
+
797
+ // Changed to `rerender` on init
798
+ _rerender() {
799
+ DIRTY_TAG$1(this[DIRTY_TAG]);
800
+ this._superRerender();
801
+ }
802
+ [PROPERTY_DID_CHANGE](key, value) {
803
+ if (this[IS_DISPATCHING_ATTRS]) {
804
+ return;
805
+ }
806
+ let args = getComponentCapturedArgs(this);
807
+ let reference = args !== undefined ? args[key] : undefined;
808
+ if (reference !== undefined && isUpdatableRef(reference)) {
809
+ updateRef(reference, arguments.length === 2 ? value : get(this, key));
810
+ }
811
+ }
812
+ getAttr(key) {
813
+ // TODO Intimate API should be deprecated
814
+ return this.get(key);
815
+ }
816
+
817
+ /**
818
+ Normally, Ember's component model is "write-only". The component takes a
819
+ bunch of attributes that it got passed in, and uses them to render its
820
+ template.
821
+ One nice thing about this model is that if you try to set a value to the
822
+ same thing as last time, Ember (through HTMLBars) will avoid doing any
823
+ work on the DOM.
824
+ This is not just a performance optimization. If an attribute has not
825
+ changed, it is important not to clobber the element's "hidden state".
826
+ For example, if you set an input's `value` to the same value as before,
827
+ it will clobber selection state and cursor position. In other words,
828
+ setting an attribute is not **always** idempotent.
829
+ This method provides a way to read an element's attribute and also
830
+ update the last value Ember knows about at the same time. This makes
831
+ setting an attribute idempotent.
832
+ In particular, what this means is that if you get an `<input>` element's
833
+ `value` attribute and then re-render the template with the same value,
834
+ it will avoid clobbering the cursor and selection position.
835
+ Since most attribute sets are idempotent in the browser, you typically
836
+ can get away with reading attributes using jQuery, but the most reliable
837
+ way to do so is through this method.
838
+ @method readDOMAttr
839
+ @param {String} name the name of the attribute
840
+ @return String
841
+ @public
842
+ */
843
+ readDOMAttr(name) {
844
+ // TODO revisit this
845
+ let _element = getViewElement(this);
846
+ (!(_element !== null) && assert(`Cannot call \`readDOMAttr\` on ${this} which does not have an element`, _element !== null));
847
+ let element = _element;
848
+ let isSVG = element.namespaceURI === 'http://www.w3.org/2000/svg';
849
+ let {
850
+ type,
851
+ normalized
852
+ } = normalizeProperty(element, name);
853
+ if (isSVG || type === 'attr') {
854
+ return element.getAttribute(normalized);
855
+ }
856
+ return element[normalized];
857
+ }
858
+
859
+ // --- Declarations which support mixins ---
860
+ // We use `declare` on these properties, even though they are optional, so
861
+ // that they do not get created on the class *at all* when emitting the
862
+ // transpiled code. Otherwise, since declared class properties are equivalent
863
+ // to calling `defineProperty` in the class constructor, they would "stomp"
864
+ // the properties supplied by mixins.
865
+
866
+ /**
867
+ A list of properties of the view to apply as attributes. If the property
868
+ is a string value, the value of that string will be applied as the value
869
+ for an attribute of the property's name.
870
+ The following example creates a tag like `<div priority="high" />`.
871
+ ```app/components/my-component.js
872
+ import Component from '@ember/component';
873
+ export default Component.extend({
874
+ attributeBindings: ['priority'],
875
+ priority: 'high'
876
+ });
877
+ ```
878
+ If the value of the property is a Boolean, the attribute is treated as
879
+ an HTML Boolean attribute. It will be present if the property is `true`
880
+ and omitted if the property is `false`.
881
+ The following example creates markup like `<div visible />`.
882
+ ```app/components/my-component.js
883
+ import Component from '@ember/component';
884
+ export default Component.extend({
885
+ attributeBindings: ['visible'],
886
+ visible: true
887
+ });
888
+ ```
889
+ If you would prefer to use a custom value instead of the property name,
890
+ you can create the same markup as the last example with a binding like
891
+ this:
892
+ ```app/components/my-component.js
893
+ import Component from '@ember/component';
894
+ export default Component.extend({
895
+ attributeBindings: ['isVisible:visible'],
896
+ isVisible: true
897
+ });
898
+ ```
899
+ This list of attributes is inherited from the component's superclasses,
900
+ as well.
901
+ @property attributeBindings
902
+ @type Array
903
+ @default []
904
+ @public
905
+ */
906
+
907
+ /**
908
+ Enables components to take a list of parameters as arguments.
909
+ For example, a component that takes two parameters with the names
910
+ `name` and `age`:
911
+ ```app/components/my-component.js
912
+ import Component from '@ember/component';
913
+ export default class MyComponent extends Component {
914
+ static positionalParams = ['name', 'age'];
915
+ }
916
+ ```
917
+ It can then be invoked like this:
918
+ ```hbs
919
+ {{my-component "John" 38}}
920
+ ```
921
+ The parameters can be referred to just like named parameters:
922
+ ```hbs
923
+ Name: {{name}}, Age: {{age}}.
924
+ ```
925
+ Using a string instead of an array allows for an arbitrary number of
926
+ parameters:
927
+ ```app/components/my-component.js
928
+ import Component from '@ember/component';
929
+ export default class MyComponent extends Component {
930
+ static positionalParams = 'names';
931
+ }
932
+ ```
933
+ It can then be invoked like this:
934
+ ```hbs
935
+ {{my-component "John" "Michael" "Scott"}}
936
+ ```
937
+ The parameters can then be referred to by enumerating over the list:
938
+ ```hbs
939
+ {{#each names as |name|}}{{name}}{{/each}}
940
+ ```
941
+ @static
942
+ @public
943
+ @property positionalParams
944
+ @since 1.13.0
945
+ */ /**
946
+ Enables components to take a list of parameters as arguments.
947
+ For example, a component that takes two parameters with the names
948
+ `name` and `age`:
949
+ ```app/components/my-component.js
950
+ import Component from '@ember/component';
951
+ export default class MyComponent extends Component {
952
+ static positionalParams = ['name', 'age'];
953
+ }
954
+ ```
955
+ It can then be invoked like this:
956
+ ```hbs
957
+ {{my-component "John" 38}}
958
+ ```
959
+ The parameters can be referred to just like named parameters:
960
+ ```hbs
961
+ Name: {{name}}, Age: {{age}}.
962
+ ```
963
+ Using a string instead of an array allows for an arbitrary number of
964
+ parameters:
965
+ ```app/components/my-component.js
966
+ import Component from '@ember/component';
967
+ export default class MyComponent extends Component {
968
+ static positionalParams = 'names';
969
+ }
970
+ ```
971
+ It can then be invoked like this:
972
+ ```hbs
973
+ {{my-component "John" "Michael" "Scott"}}
974
+ ```
975
+ The parameters can then be referred to by enumerating over the list:
976
+ ```hbs
977
+ {{#each names as |name|}}{{name}}{{/each}}
978
+ ```
979
+ @static
980
+ @public
981
+ @property positionalParams
982
+ @since 1.13.0
983
+ */
984
+
985
+ /**
986
+ Layout can be used to wrap content in a component.
987
+ @property layout
988
+ @type Function
989
+ @public
990
+ */
991
+
992
+ /**
993
+ The name of the layout to lookup if no layout is provided.
994
+ By default `Component` will lookup a template with this name in
995
+ `Ember.TEMPLATES` (a shared global object).
996
+ @property layoutName
997
+ @type String
998
+ @default undefined
999
+ @private
1000
+ */
1001
+
1002
+ /**
1003
+ The WAI-ARIA role of the control represented by this view. For example, a
1004
+ button may have a role of type 'button', or a pane may have a role of
1005
+ type 'alertdialog'. This property is used by assistive software to help
1006
+ visually challenged users navigate rich web applications.
1007
+ The full list of valid WAI-ARIA roles is available at:
1008
+ [https://www.w3.org/TR/wai-aria/#roles_categorization](https://www.w3.org/TR/wai-aria/#roles_categorization)
1009
+ @property ariaRole
1010
+ @type String
1011
+ @default undefined
1012
+ @public
1013
+ */
1014
+
1015
+ /**
1016
+ Array of child views. You should never edit this array directly.
1017
+ @property childViews
1018
+ @type Array
1019
+ @default []
1020
+ @private
1021
+ */
1022
+ // @ts-expect-error TODO: Fix these types
1023
+ get childViews() {
1024
+ return getChildViews(this);
1025
+ }
1026
+ static {
1027
+ decorateMethodV2(this.prototype, "childViews", [nativeDescDecorator({
1028
+ configurable: false,
1029
+ enumerable: false
1030
+ })]);
1031
+ }
1032
+ appendChild(view) {
1033
+ addChildView(this, view);
1034
+ }
1035
+ _transitionTo(state) {
1036
+ let priorState = this._currentState;
1037
+ let currentState = this._currentState = this._states[state];
1038
+ this._state = state;
1039
+ if (priorState && priorState.exit) {
1040
+ priorState.exit(this);
1041
+ }
1042
+ if (currentState.enter) {
1043
+ currentState.enter(this);
1044
+ }
1045
+ }
1046
+
1047
+ // Begin ViewMixin
1048
+
1049
+ // ..........................................................
1050
+ // TEMPLATE SUPPORT
1051
+ //
1052
+
1053
+ /**
1054
+ Return the nearest ancestor that is an instance of the provided
1055
+ class or mixin.
1056
+ @method nearestOfType
1057
+ @param {Class,Mixin} klass Subclass of Ember.View (or Ember.View itself),
1058
+ or an instance of Mixin.
1059
+ @return Ember.View
1060
+ @deprecated use `yield` and contextual components for composition instead.
1061
+ @private
1062
+ */
1063
+ nearestOfType(klass) {
1064
+ let view = this.parentView;
1065
+ while (view) {
1066
+ if (klass.detect(view.constructor)) {
1067
+ return view;
1068
+ }
1069
+ view = view.parentView;
1070
+ }
1071
+ return;
1072
+ }
1073
+
1074
+ /**
1075
+ Return the nearest ancestor that has a given property.
1076
+ @method nearestWithProperty
1077
+ @param {String} property A property name
1078
+ @return Ember.View
1079
+ @deprecated use `yield` and contextual components for composition instead.
1080
+ @private
1081
+ */
1082
+ nearestWithProperty(property) {
1083
+ let view = this.parentView;
1084
+ while (view) {
1085
+ if (property in view) {
1086
+ return view;
1087
+ }
1088
+ view = view.parentView;
1089
+ }
1090
+ return;
1091
+ }
1092
+
1093
+ /**
1094
+ Renders the view again. This will work regardless of whether the
1095
+ view is already in the DOM or not. If the view is in the DOM, the
1096
+ rendering process will be deferred to give bindings a chance
1097
+ to synchronize.
1098
+ If children were added during the rendering process using `appendChild`,
1099
+ `rerender` will remove them, because they will be added again
1100
+ if needed by the next `render`.
1101
+ In general, if the display of your view changes, you should modify
1102
+ the DOM element directly instead of manually calling `rerender`, which can
1103
+ be slow.
1104
+ @method rerender
1105
+ @public
1106
+ */
1107
+ rerender() {
1108
+ return this._currentState.rerender(this);
1109
+ }
1110
+
1111
+ // ..........................................................
1112
+ // ELEMENT SUPPORT
1113
+ //
1114
+
1115
+ /**
1116
+ Returns the current DOM element for the view.
1117
+ @property element
1118
+ @type DOMElement
1119
+ @public
1120
+ */
1121
+ // @ts-expect-error The types are not correct here
1122
+ get element() {
1123
+ return this.renderer.getElement(this);
1124
+ }
1125
+
1126
+ /**
1127
+ Appends the view's element to the specified parent element.
1128
+ Note that this method just schedules the view to be appended; the DOM
1129
+ element will not be appended to the given element until all bindings have
1130
+ finished synchronizing.
1131
+ This is not typically a function that you will need to call directly when
1132
+ building your application. If you do need to use `appendTo`, be sure that
1133
+ the target element you are providing is associated with an `Application`
1134
+ and does not have an ancestor element that is associated with an Ember view.
1135
+ @method appendTo
1136
+ @param {String|DOMElement} A selector, element, HTML string
1137
+ @return {Ember.View} receiver
1138
+ @private
1139
+ */
1140
+ static {
1141
+ decorateMethodV2(this.prototype, "element", [nativeDescDecorator({
1142
+ configurable: false,
1143
+ enumerable: false
1144
+ })]);
1145
+ }
1146
+ appendTo(selector) {
1147
+ let target;
1148
+ if (hasDOM) {
1149
+ (!(typeof selector === 'string' || selector instanceof Element) && assert(`Expected a selector or instance of Element`, typeof selector === 'string' || selector instanceof Element));
1150
+ target = typeof selector === 'string' ? document.querySelector(selector) : selector;
1151
+ (!(target) && assert(`You tried to append to (${selector}) but that isn't in the DOM`, target));
1152
+ (!(!matches(target, '.ember-view')) && assert('You cannot append to an existing Ember.View.', !matches(target, '.ember-view')));
1153
+ (!((() => {
1154
+ let node = target.parentNode;
1155
+ while (node instanceof Element) {
1156
+ if (matches(node, '.ember-view')) {
1157
+ return false;
1158
+ }
1159
+ node = node.parentNode;
1160
+ }
1161
+ return true;
1162
+ })()) && assert('You cannot append to an existing Ember.View.', (() => {
1163
+ let node = target.parentNode;
1164
+ while (node instanceof Element) {
1165
+ if (matches(node, '.ember-view')) {
1166
+ return false;
1167
+ }
1168
+ node = node.parentNode;
1169
+ }
1170
+ return true;
1171
+ })()));
1172
+ } else {
1173
+ target = selector;
1174
+ (!(typeof target !== 'string') && assert(`You tried to append to a selector string (${selector}) in an environment without a DOM`, typeof target !== 'string'));
1175
+ (!(typeof target.appendChild === 'function') && assert(`You tried to append to a non-Element (${selector}) in an environment without a DOM`, typeof target.appendChild === 'function'));
1176
+ }
1177
+
1178
+ // SAFETY: SimpleElement is supposed to be a subset of Element so this _should_ be safe.
1179
+ // However, the types are more specific in some places which necessitates the `as`.
1180
+ this.renderer.appendTo(this, target);
1181
+ return this;
1182
+ }
1183
+
1184
+ /**
1185
+ Appends the view's element to the document body. If the view does
1186
+ not have an HTML representation yet
1187
+ the element will be generated automatically.
1188
+ If your application uses the `rootElement` property, you must append
1189
+ the view within that element. Rendering views outside of the `rootElement`
1190
+ is not supported.
1191
+ Note that this method just schedules the view to be appended; the DOM
1192
+ element will not be appended to the document body until all bindings have
1193
+ finished synchronizing.
1194
+ @method append
1195
+ @return {Ember.View} receiver
1196
+ @private
1197
+ */
1198
+ append() {
1199
+ return this.appendTo(document.body);
1200
+ }
1201
+
1202
+ /**
1203
+ The HTML `id` of the view's element in the DOM. You can provide this
1204
+ value yourself but it must be unique (just as in HTML):
1205
+ ```handlebars
1206
+ {{my-component elementId="a-really-cool-id"}}
1207
+ ```
1208
+ If not manually set a default value will be provided by the framework.
1209
+ Once rendered an element's `elementId` is considered immutable and you
1210
+ should never change it. If you need to compute a dynamic value for the
1211
+ `elementId`, you should do this when the component or element is being
1212
+ instantiated:
1213
+ ```app/components/my-component.js
1214
+ import Component from '@ember/component';
1215
+ export default Component.extend({
1216
+ init() {
1217
+ this._super(...arguments);
1218
+ let index = this.get('index');
1219
+ this.set('elementId', 'component-id' + index);
1220
+ }
1221
+ });
1222
+ ```
1223
+ @property elementId
1224
+ @type String
1225
+ @public
1226
+ */
1227
+
1228
+ /**
1229
+ Called when a view is going to insert an element into the DOM.
1230
+ @event willInsertElement
1231
+ @public
1232
+ */
1233
+ willInsertElement() {
1234
+ return this;
1235
+ }
1236
+
1237
+ /**
1238
+ Called when the element of the view has been inserted into the DOM.
1239
+ Override this function to do any set up that requires an element
1240
+ in the document body.
1241
+ When a view has children, didInsertElement will be called on the
1242
+ child view(s) first and on itself afterwards.
1243
+ @event didInsertElement
1244
+ @public
1245
+ */
1246
+ didInsertElement() {
1247
+ return this;
1248
+ }
1249
+
1250
+ /**
1251
+ Called when the view is about to rerender, but before anything has
1252
+ been torn down. This is a good opportunity to tear down any manual
1253
+ observers you have installed based on the DOM state
1254
+ @event willClearRender
1255
+ @public
1256
+ */
1257
+ willClearRender() {
1258
+ return this;
1259
+ }
1260
+
1261
+ /**
1262
+ You must call `destroy` on a view to destroy the view (and all of its
1263
+ child views). This will remove the view from any parent node, then make
1264
+ sure that the DOM element managed by the view can be released by the
1265
+ memory manager.
1266
+ @method destroy
1267
+ @private
1268
+ */
1269
+ destroy() {
1270
+ super.destroy();
1271
+ this._currentState.destroy(this);
1272
+ return this;
1273
+ }
1274
+
1275
+ /**
1276
+ Called when the element of the view is going to be destroyed. Override
1277
+ this function to do any teardown that requires an element, like removing
1278
+ event listeners.
1279
+ Please note: any property changes made during this event will have no
1280
+ effect on object observers.
1281
+ @event willDestroyElement
1282
+ @public
1283
+ */
1284
+ willDestroyElement() {
1285
+ return this;
1286
+ }
1287
+
1288
+ /**
1289
+ Called after the element of the view is destroyed.
1290
+ @event willDestroyElement
1291
+ @public
1292
+ */
1293
+ didDestroyElement() {
1294
+ return this;
1295
+ }
1296
+
1297
+ /**
1298
+ Called when the parentView property has changed.
1299
+ @event parentViewDidChange
1300
+ @private
1301
+ */
1302
+ parentViewDidChange() {
1303
+ return this;
1304
+ }
1305
+
1306
+ // ..........................................................
1307
+ // STANDARD RENDER PROPERTIES
1308
+ //
1309
+
1310
+ /**
1311
+ Tag name for the view's outer element. The tag name is only used when an
1312
+ element is first created. If you change the `tagName` for an element, you
1313
+ must destroy and recreate the view element.
1314
+ By default, the render buffer will use a `<div>` tag for views.
1315
+ If the tagName is `''`, the view will be tagless, with no outer element.
1316
+ Component properties that depend on the presence of an outer element, such
1317
+ as `classNameBindings` and `attributeBindings`, do not work with tagless
1318
+ components. Tagless components cannot implement methods to handle events,
1319
+ and their `element` property has a `null` value.
1320
+ @property tagName
1321
+ @type String
1322
+ @default null
1323
+ @public
1324
+ */
1325
+
1326
+ // We leave this null by default so we can tell the difference between
1327
+ // the default case and a user-specified tag.
1328
+
1329
+ // .......................................................
1330
+ // EVENT HANDLING
1331
+ //
1332
+
1333
+ /**
1334
+ Handle events from `EventDispatcher`
1335
+ @method handleEvent
1336
+ @param eventName {String}
1337
+ @param evt {Event}
1338
+ @private
1339
+ */
1340
+ handleEvent(eventName, evt) {
1341
+ return this._currentState.handleEvent(this, eventName, evt);
1342
+ }
1343
+
1344
+ // End ViewMixin
1345
+
1346
+ static isComponentFactory = true;
1347
+ static toString() {
1348
+ return '@ember/component';
1349
+ }
1350
+ }
1351
+
1352
+ // We continue to use reopenClass here so that positionalParams can be overridden with reopenClass in subclasses.
1353
+ Component.reopenClass({
1354
+ positionalParams: []
1355
+ });
1356
+ setInternalComponentManager(CURLY_COMPONENT_MANAGER, Component);
18
1357
 
19
1358
  /**
20
1359
  Associate a class with a component manager (an object that is responsible for
@@ -31,4 +1370,4 @@ function setComponentManager(manager, obj) {
31
1370
  return setComponentManager$1(manager, obj);
32
1371
  }
33
1372
 
34
- export { setComponentManager };
1373
+ export { Component as default, setComponentManager };