ember-source 7.1.0-alpha.5 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build-metadata.json +3 -3
- package/dist/dev/packages/@ember/-internals/glimmer/index.js +11 -11
- package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +1 -1
- package/dist/dev/packages/@ember/-internals/views/index.js +0 -1
- package/dist/dev/packages/@ember/-internals/views/lib/views/core_view.js +1 -1
- package/dist/dev/packages/@ember/application/index.js +1 -1
- package/dist/dev/packages/@ember/application/instance.js +1 -1
- package/dist/dev/packages/@ember/array/index.js +4 -0
- package/dist/dev/packages/@ember/component/helper.js +1 -1
- package/dist/dev/packages/@ember/component/index.js +15 -9
- package/dist/dev/packages/@ember/component/template-only.js +1 -1
- package/dist/dev/packages/@ember/engine/index.js +1 -3
- package/dist/dev/packages/@ember/helper/index.js +8 -37
- package/dist/dev/packages/@ember/modifier/index.js +2 -2
- package/dist/dev/packages/@ember/modifier/on.js +1 -1
- package/dist/dev/packages/@ember/object/index.js +22 -17
- package/dist/dev/packages/@ember/reactive/collections.js +2 -0
- package/dist/dev/packages/@ember/renderer/index.js +1 -1
- package/dist/dev/packages/@ember/routing/index.js +11 -7
- package/dist/dev/packages/@ember/routing/route.js +3 -3
- package/dist/dev/packages/@ember/routing/router-service.js +20 -13
- package/dist/dev/packages/@ember/template-compiler/lib/compile-options.js +3 -3
- package/dist/dev/packages/@ember/template-compiler/lib/template.js +3 -3
- package/dist/dev/packages/@ember/template-factory/index.js +1 -1
- package/dist/dev/packages/@glimmer/destroyable/index.js +1 -1
- package/dist/dev/packages/@glimmer/manager/index.js +3 -3
- package/dist/dev/packages/@glimmer/node/index.js +2 -2
- package/dist/dev/packages/@glimmer/opcode-compiler/index.js +2 -5
- package/dist/dev/packages/@glimmer/program/index.js +4 -4
- package/dist/dev/packages/@glimmer/runtime/index.js +10 -12
- package/dist/dev/packages/@glimmer/vm/index.js +1 -1
- package/dist/dev/packages/ember/version.js +1 -1
- package/dist/dev/packages/ember-template-compiler/index.js +2 -2
- package/dist/dev/packages/shared-chunks/{api-AYt3zE12.js → api-BAmlf_CN.js} +1 -1
- package/dist/dev/packages/shared-chunks/{api-WvJPuo9z.js → api-BawZUDYD.js} +1 -1
- package/dist/dev/packages/shared-chunks/assert-Zqc4wiAV.js +6 -0
- package/dist/dev/packages/shared-chunks/{compiler-CXB_8GdR.js → compiler-QUSl_urU.js} +2 -3
- package/dist/dev/packages/shared-chunks/{curly-CvC8E_4-.js → curly-BBzF_bI8.js} +1 -1
- package/dist/dev/packages/shared-chunks/curried-BZnYakIg.js +5 -0
- package/dist/dev/packages/shared-chunks/{debug-to-string-CFb7h0lY.js → debug-to-string-C6LsA_qz.js} +1 -2
- package/dist/dev/packages/shared-chunks/{element-C-QcIABg.js → element-Cf3hqNOD.js} +4 -2
- package/dist/dev/packages/shared-chunks/{element-builder-kHVx0F__.js → element-builder--iTIJyCB.js} +1 -1
- package/dist/dev/packages/shared-chunks/{get-CpJjYeJO.js → get-BehtPmsu.js} +31 -34
- package/dist/dev/packages/shared-chunks/{hash-D3BENmhU.js → hash-BTwOuDGQ.js} +17 -11
- package/dist/dev/packages/shared-chunks/{helper-DlC4YesW.js → helper-BubrhyuN.js} +20 -8
- package/dist/dev/packages/shared-chunks/{index-CTxkmV78.js → index-CL1zjHwo.js} +91 -113
- package/dist/dev/packages/shared-chunks/{index-DmGmwWPJ.js → index-CyZiGiEI.js} +5 -6
- package/dist/dev/packages/shared-chunks/{internal-CbQSKXEm.js → internal-CAL-jHZt.js} +2 -2
- package/dist/dev/packages/shared-chunks/{internal-helper-Dsl9_7H_.js → internal-helper-Ez7zbEIa.js} +1 -1
- package/dist/dev/packages/shared-chunks/{invoke-B6j6DdDz.js → invoke-B8M5fQQS.js} +2 -2
- package/dist/dev/packages/shared-chunks/{on-D8QwT-eN.js → on-BQii6ILK.js} +8 -8
- package/dist/dev/packages/shared-chunks/{or-DBU9Ge4r.js → or-BTH3yuFG.js} +1 -1
- package/dist/dev/packages/shared-chunks/{program-context-CqcQMsfa.js → program-context-CadjldRr.js} +4 -3
- package/dist/{prod/packages/shared-chunks/registers-DoamZwaG.js → dev/packages/shared-chunks/registers-C_W2qYHJ.js} +1 -1
- package/dist/dev/packages/shared-chunks/{rehydrate-builder-DdzXTaJk.js → rehydrate-builder-DCyIgnCR.js} +2 -2
- package/dist/dev/packages/shared-chunks/{render-DDdabL30.js → render-CpKaO-BO.js} +9 -8
- package/dist/dev/packages/shared-chunks/{chunk-3SQBS3Y5-Cj4eryg1.js → runtime-CYyqkz5q-BOdRhmsS.js} +4 -59
- package/dist/dev/packages/shared-chunks/{serialize-builder-B3u9Wr3n.js → serialize-builder-DxgGRvH_.js} +1 -1
- package/dist/dev/packages/shared-chunks/{setup-registry-XxD0xvgf.js → setup-registry-BQZJfq-Y.js} +7 -7
- package/dist/dev/packages/shared-chunks/syscall-ops-BPFtDquC.js +133 -0
- package/dist/dev/packages/shared-chunks/{template-kM-7TTcc.js → template-R_5UMHhb.js} +1 -1
- package/dist/dev/packages/shared-chunks/{template-only-Yluyu0DY.js → template-only-BqOt8bDl.js} +1 -1
- package/dist/dev/packages/shared-chunks/{textarea-C0Us0PNJ.js → textarea-lD4apgrP.js} +9 -5
- package/dist/dev/packages/shared-chunks/{unique-id-A83bjEE-.js → unique-id-CgmHQiwi.js} +1 -1
- package/dist/dev/packages/shared-chunks/{untouchable-this-cH6_N2LJ.js → untouchable-this-B3DVwpHS.js} +6 -6
- package/dist/dev/packages/shared-chunks/vm-ops-ImHv0Wtg.js +12 -0
- package/dist/prod/packages/@ember/-internals/container/index.js +2 -3
- package/dist/prod/packages/@ember/-internals/glimmer/index.js +9 -9
- package/dist/prod/packages/@ember/-internals/meta/lib/meta.js +0 -2
- package/dist/prod/packages/@ember/-internals/metal/index.js +16 -17
- package/dist/prod/packages/@ember/-internals/routing/index.js +1 -2
- package/dist/prod/packages/@ember/-internals/runtime/lib/ext/rsvp.js +0 -1
- package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/-proxy.js +4 -5
- package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/action_handler.js +1 -2
- package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/registry_proxy.js +0 -1
- package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +3 -4
- package/dist/prod/packages/@ember/-internals/utils/index.js +0 -1
- package/dist/prod/packages/@ember/-internals/views/index.js +0 -1
- package/dist/prod/packages/@ember/-internals/views/lib/mixins/action_support.js +1 -2
- package/dist/prod/packages/@ember/-internals/views/lib/system/event_dispatcher.js +2 -3
- package/dist/prod/packages/@ember/-internals/views/lib/system/utils.js +0 -1
- package/dist/prod/packages/@ember/-internals/views/lib/views/core_view.js +2 -2
- package/dist/prod/packages/@ember/-internals/views/lib/views/states.js +0 -1
- package/dist/prod/packages/@ember/application/index.js +3 -3
- package/dist/prod/packages/@ember/application/instance.js +3 -4
- package/dist/prod/packages/@ember/application/namespace.js +1 -2
- package/dist/prod/packages/@ember/array/index.js +9 -6
- package/dist/prod/packages/@ember/array/proxy.js +5 -6
- package/dist/prod/packages/@ember/component/helper.js +1 -1
- package/dist/prod/packages/@ember/component/index.js +15 -10
- package/dist/prod/packages/@ember/controller/index.js +3 -3
- package/dist/prod/packages/@ember/debug/data-adapter.js +1 -1
- package/dist/prod/packages/@ember/engine/index.js +3 -6
- package/dist/prod/packages/@ember/engine/instance.js +0 -1
- package/dist/prod/packages/@ember/helper/index.js +5 -34
- package/dist/prod/packages/@ember/modifier/on.js +1 -1
- package/dist/prod/packages/@ember/object/-internals.js +0 -1
- package/dist/prod/packages/@ember/object/compat.js +1 -2
- package/dist/prod/packages/@ember/object/computed.js +2 -2
- package/dist/prod/packages/@ember/object/core.js +5 -6
- package/dist/prod/packages/@ember/object/evented.js +2 -2
- package/dist/prod/packages/@ember/object/events.js +1 -1
- package/dist/prod/packages/@ember/object/index.js +30 -25
- package/dist/prod/packages/@ember/object/internals.js +0 -1
- package/dist/prod/packages/@ember/object/lib/computed/computed_macros.js +4 -5
- package/dist/prod/packages/@ember/object/lib/computed/reduce_computed_macros.js +2 -3
- package/dist/prod/packages/@ember/object/mixin.js +4 -5
- package/dist/prod/packages/@ember/object/observable.js +7 -8
- package/dist/prod/packages/@ember/object/observers.js +1 -1
- package/dist/prod/packages/@ember/object/promise-proxy-mixin.js +3 -3
- package/dist/prod/packages/@ember/reactive/collections.js +2 -0
- package/dist/prod/packages/@ember/renderer/index.js +1 -1
- package/dist/prod/packages/@ember/routing/history-location.js +0 -1
- package/dist/prod/packages/@ember/routing/index.js +10 -7
- package/dist/prod/packages/@ember/routing/lib/dsl.js +0 -2
- package/dist/prod/packages/@ember/routing/lib/generate_controller.js +1 -2
- package/dist/prod/packages/@ember/routing/lib/routing-service.js +2 -3
- package/dist/prod/packages/@ember/routing/lib/utils.js +1 -2
- package/dist/prod/packages/@ember/routing/none-location.js +0 -1
- package/dist/prod/packages/@ember/routing/route.js +9 -10
- package/dist/prod/packages/@ember/routing/router-service.js +22 -16
- package/dist/prod/packages/@ember/routing/router.js +3 -4
- package/dist/prod/packages/@ember/runloop/index.js +1 -2
- package/dist/prod/packages/@ember/service/index.js +1 -1
- package/dist/prod/packages/@ember/template-compiler/lib/compile-options.js +3 -4
- package/dist/prod/packages/@ember/template-compiler/lib/plugins/assert-against-attrs.js +0 -1
- package/dist/prod/packages/@ember/template-compiler/lib/plugins/assert-against-named-outlets.js +0 -1
- package/dist/prod/packages/@ember/template-compiler/lib/plugins/assert-input-helper-without-block.js +0 -1
- package/dist/prod/packages/@ember/template-compiler/lib/plugins/assert-reserved-named-arguments.js +0 -2
- package/dist/prod/packages/@ember/template-compiler/lib/plugins/transform-each-track-array.js +0 -1
- package/dist/prod/packages/@ember/template-compiler/lib/plugins/transform-in-element.js +0 -1
- package/dist/prod/packages/@ember/template-compiler/lib/plugins/transform-resolutions.js +0 -1
- package/dist/prod/packages/@ember/template-compiler/lib/template.js +2 -2
- package/dist/prod/packages/@ember/template-factory/index.js +1 -1
- package/dist/prod/packages/@ember/utils/lib/compare.js +0 -1
- package/dist/prod/packages/@ember/utils/lib/is_empty.js +1 -1
- package/dist/prod/packages/@glimmer/node/index.js +2 -2
- package/dist/prod/packages/@glimmer/opcode-compiler/index.js +2 -5
- package/dist/prod/packages/@glimmer/program/index.js +2 -2
- package/dist/prod/packages/@glimmer/runtime/index.js +9 -11
- package/dist/prod/packages/@glimmer/tracking/index.js +1 -1
- package/dist/prod/packages/@glimmer/vm/index.js +1 -1
- package/dist/prod/packages/ember/version.js +1 -1
- package/dist/prod/packages/ember-template-compiler/index.js +2 -3
- package/dist/prod/packages/shared-chunks/{alias-CLuFeKoV.js → alias-DBW_V5vD.js} +5 -6
- package/dist/prod/packages/shared-chunks/{array-DHdr4__s.js → array-D6Couewv.js} +2 -3
- package/dist/prod/packages/shared-chunks/assert-Zqc4wiAV.js +6 -0
- package/dist/prod/packages/shared-chunks/{chain-tags-BJqcuCM1.js → chain-tags-C9rFtQ_x.js} +0 -1
- package/dist/prod/packages/shared-chunks/{compiler-DjQtTQGk.js → compiler-c4yUVrl_.js} +2 -3
- package/dist/prod/packages/shared-chunks/{computed-2Udcmflw.js → computed-DjCIU_ht.js} +3 -4
- package/dist/prod/packages/shared-chunks/{container-D5NwW5Fd.js → container-BYOnjnwz.js} +0 -1
- package/dist/prod/packages/shared-chunks/{curly-BsqvV8G0.js → curly-ZzX43b50.js} +2 -3
- package/dist/prod/packages/shared-chunks/curried-BZnYakIg.js +5 -0
- package/dist/prod/packages/shared-chunks/{debug-render-tree-BLtnOSbb.js → debug-render-tree-CF5O4-WI.js} +4 -4
- package/dist/prod/packages/shared-chunks/{decorator-DBCISop4.js → decorator-9ikVwsjY.js} +0 -1
- package/dist/prod/packages/shared-chunks/{element-BjFr0tO0.js → element-9DRa_9dO.js} +2 -1
- package/dist/prod/packages/shared-chunks/{element-builder-BPjq0rxK.js → element-builder-CnlTPNyw.js} +1 -1
- package/dist/prod/packages/shared-chunks/{events-970OxD6Q.js → events-DYrYz3V8.js} +0 -1
- package/dist/prod/packages/shared-chunks/{get-D5wxdTkY.js → get-Dt5L0TcU.js} +31 -34
- package/dist/prod/packages/shared-chunks/{get_properties-BcAC5sGx.js → get_properties-Nn08mLAH.js} +1 -1
- package/dist/prod/packages/shared-chunks/{hash-DcUe-meU.js → hash-Dkj3I4L4.js} +16 -10
- package/dist/prod/packages/shared-chunks/{helper-Da672z4a.js → helper-CN6UzshW.js} +18 -7
- package/dist/prod/packages/shared-chunks/{index--2U-v2nf.js → index-Bj71BDDA.js} +4 -5
- package/dist/prod/packages/shared-chunks/{index-D87qoERP.js → index-ClxHbCe9.js} +90 -112
- package/dist/prod/packages/shared-chunks/{injected_property-D9B-fPiH.js → injected_property--eJunJph.js} +2 -3
- package/dist/prod/packages/shared-chunks/{invoke-Dr_CRwA_.js → invoke-Cj5zMqHz.js} +1 -1
- package/dist/prod/packages/shared-chunks/{libraries-DaXpIDYN.js → libraries-_k-4KK5_.js} +1 -2
- package/dist/prod/packages/shared-chunks/{observers-Co4JALkS.js → observers-CDkeR0nI.js} +2 -2
- package/dist/prod/packages/shared-chunks/{on-C3ZQiUUD.js → on-CWgOWNSL.js} +7 -7
- package/dist/prod/packages/shared-chunks/{or-oTVMuHc8.js → or-Crsa2wci.js} +1 -1
- package/dist/prod/packages/shared-chunks/{program-context-CGMN-aQM.js → program-context-B8HKU7wu.js} +4 -3
- package/dist/prod/packages/shared-chunks/{property_get-hWJ0nGhW.js → property_get-CAFdpRyu.js} +0 -1
- package/dist/prod/packages/shared-chunks/{property_set-Dj5-ScWk.js → property_set-BunbMFtp.js} +3 -4
- package/dist/{dev/packages/shared-chunks/registers-DoamZwaG.js → prod/packages/shared-chunks/registers-C_W2qYHJ.js} +1 -1
- package/dist/prod/packages/shared-chunks/{rehydrate-builder-BKg2X6Lo.js → rehydrate-builder-DJ8k-6fg.js} +2 -2
- package/dist/prod/packages/shared-chunks/{render-nx5-PsDW.js → render-DkJJmoI4.js} +7 -6
- package/dist/prod/packages/shared-chunks/{chunk-3SQBS3Y5-Cj4eryg1.js → runtime-CYyqkz5q-BOdRhmsS.js} +4 -59
- package/dist/prod/packages/shared-chunks/{serialize-builder-BGbC30SN.js → serialize-builder-R3Ozg0sC.js} +1 -1
- package/dist/prod/packages/shared-chunks/{set_properties-oPyURk67.js → set_properties-LT3RzRmJ.js} +2 -2
- package/dist/prod/packages/shared-chunks/{setup-registry-TiaKLj5k.js → setup-registry-B3DhqtxX.js} +7 -8
- package/dist/prod/packages/shared-chunks/syscall-ops-BPFtDquC.js +133 -0
- package/dist/prod/packages/shared-chunks/{textarea-CPKZ1c_O.js → textarea-Byj32raR.js} +9 -6
- package/dist/prod/packages/shared-chunks/{tracked-CffAABMz.js → tracked-DAVrVqJl.js} +2 -3
- package/dist/prod/packages/shared-chunks/vm-ops-ImHv0Wtg.js +12 -0
- package/docs/data.json +196 -216
- package/lib/index.js +0 -1
- package/package.json +14 -15
- package/types/stable/@ember/-internals/glimmer/index.d.ts +165 -121
- package/types/stable/@ember/-internals/glimmer/lib/component.d.ts +8 -2
- package/types/stable/@ember/-internals/glimmer/lib/glimmer-tracking-docs.d.ts +12 -12
- package/types/stable/@ember/-internals/glimmer/lib/helper.d.ts +18 -6
- package/types/stable/@ember/-internals/glimmer/lib/helpers/array.d.ts +3 -1
- package/types/stable/@ember/-internals/glimmer/lib/helpers/component.d.ts +65 -121
- package/types/stable/@ember/-internals/glimmer/lib/helpers/concat.d.ts +8 -4
- package/types/stable/@ember/-internals/glimmer/lib/helpers/each-in.d.ts +16 -14
- package/types/stable/@ember/-internals/glimmer/lib/helpers/element.d.ts +2 -0
- package/types/stable/@ember/-internals/glimmer/lib/helpers/fn.d.ts +11 -7
- package/types/stable/@ember/-internals/glimmer/lib/helpers/get.d.ts +23 -29
- package/types/stable/@ember/-internals/glimmer/lib/helpers/hash.d.ts +3 -1
- package/types/stable/@ember/-internals/glimmer/lib/helpers/if-unless.d.ts +95 -49
- package/types/stable/@ember/-internals/glimmer/lib/helpers/mut.d.ts +23 -54
- package/types/stable/@ember/-internals/glimmer/lib/helpers/page-title.d.ts +6 -2
- package/types/stable/@ember/-internals/glimmer/lib/helpers/readonly.d.ts +4 -8
- package/types/stable/@ember/-internals/glimmer/lib/modifiers/on.d.ts +10 -10
- package/types/stable/@ember/-internals/glimmer/lib/syntax/in-element.d.ts +2 -0
- package/types/stable/@ember/-internals/glimmer/lib/syntax/let.d.ts +2 -14
- package/types/stable/@ember/-internals/glimmer/lib/syntax/mount.d.ts +15 -11
- package/types/stable/@ember/-internals/glimmer/lib/syntax/outlet.d.ts +17 -10
- package/types/stable/@ember/-internals/runtime/lib/mixins/target_action_support.d.ts +1 -1
- package/types/stable/@ember/-internals/views/index.d.ts +0 -1
- package/types/stable/@ember/array/index.d.ts +4 -0
- package/types/stable/@ember/controller/index.d.ts +1 -1
- package/types/stable/@ember/helper/index.d.ts +0 -29
- package/types/stable/@ember/object/index.d.ts +4 -3
- package/types/stable/@ember/object/observable.d.ts +4 -0
- package/types/stable/@ember/routing/route.d.ts +1 -1
- package/types/stable/@ember/routing/router-service.d.ts +20 -12
- package/types/stable/@glimmer/runtime/lib/helpers/array.d.ts +1 -1
- package/types/stable/@glimmer/runtime/lib/helpers/concat.d.ts +8 -3
- package/types/stable/@glimmer/runtime/lib/helpers/fn.d.ts +13 -7
- package/types/stable/@glimmer/runtime/lib/helpers/get.d.ts +21 -29
- package/types/stable/@glimmer/runtime/lib/helpers/hash.d.ts +1 -1
- package/types/stable/@glimmer/syntax/lib/get-template-locals.d.ts +1 -1
- package/types/stable/@glimmer/tracking/index.d.ts +12 -12
- package/types/stable/index.d.ts +0 -1
- package/dist/dev/packages/@ember/-internals/views/lib/component_lookup.js +0 -14
- package/dist/dev/packages/shared-chunks/assert-CUCJBR2C.js +0 -19
- package/dist/dev/packages/shared-chunks/curried-BVwSNqpf.js +0 -628
- package/dist/dev/packages/shared-chunks/opcode-metadata-9iSW5JGP.js +0 -285
- package/dist/prod/packages/@ember/-internals/views/lib/component_lookup.js +0 -14
- package/dist/prod/packages/shared-chunks/assert-CUCJBR2C.js +0 -19
- package/dist/prod/packages/shared-chunks/curried-BVwSNqpf.js +0 -628
- package/dist/prod/packages/shared-chunks/opcode-metadata-9iSW5JGP.js +0 -285
- package/types/stable/@ember/-internals/views/lib/component_lookup.d.ts +0 -8
package/build-metadata.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "7.1.0
|
|
2
|
+
"version": "7.1.0",
|
|
3
3
|
"buildType": "tag",
|
|
4
|
-
"SHA": "
|
|
5
|
-
"assetPath": "/tag/shas/
|
|
4
|
+
"SHA": "7c6f1709c1844fd40dc725150a67c9b0653d3492",
|
|
5
|
+
"assetPath": "/tag/shas/7c6f1709c1844fd40dc725150a67c9b0653d3492.tgz"
|
|
6
6
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export { t as template, a as templateCacheCounters } from '../../../shared-chunks/index-
|
|
2
|
-
export { R as RootTemplate, s as setupApplicationRegistry, a as setupEngineRegistry } from '../../../shared-chunks/setup-registry-
|
|
3
|
-
export { I as Input, T as Textarea } from '../../../shared-chunks/textarea-
|
|
1
|
+
export { t as template, a as templateCacheCounters } from '../../../shared-chunks/index-CyZiGiEI.js';
|
|
2
|
+
export { R as RootTemplate, s as setupApplicationRegistry, a as setupEngineRegistry } from '../../../shared-chunks/setup-registry-BQZJfq-Y.js';
|
|
3
|
+
export { I as Input, T as Textarea } from '../../../shared-chunks/textarea-lD4apgrP.js';
|
|
4
4
|
export { LinkTo } from '../../routing/index.js';
|
|
5
5
|
export { default as Component, setComponentManager } from '../../component/index.js';
|
|
6
|
-
export { H as Helper, h as helper } from '../../../shared-chunks/helper-
|
|
6
|
+
export { H as Helper, h as helper } from '../../../shared-chunks/helper-BubrhyuN.js';
|
|
7
7
|
export { S as SafeString, T as TrustedHTML, h as htmlSafe, i as isHTMLSafe, a as isTrustedHTML, t as trustHTML } from '../../../shared-chunks/index-D-xTBV4B.js';
|
|
8
|
-
export { O as OutletView, R as Renderer, _ as _resetRenderers, a as renderComponent, r as renderSettled } from '../../../shared-chunks/index-
|
|
9
|
-
export { D as DOMChanges } from '../../../shared-chunks/render-
|
|
10
|
-
export { D as DOMTreeConstruction } from '../../../shared-chunks/element-builder
|
|
8
|
+
export { O as OutletView, R as Renderer, _ as _resetRenderers, a as renderComponent, r as renderSettled } from '../../../shared-chunks/index-CL1zjHwo.js';
|
|
9
|
+
export { D as DOMChanges } from '../../../shared-chunks/render-CpKaO-BO.js';
|
|
10
|
+
export { D as DOMTreeConstruction } from '../../../shared-chunks/element-builder--iTIJyCB.js';
|
|
11
11
|
import '../../../@glimmer/destroyable/index.js';
|
|
12
|
-
export { i as isSerializationFirstNode } from '../../../shared-chunks/rehydrate-builder-
|
|
12
|
+
export { i as isSerializationFirstNode } from '../../../shared-chunks/rehydrate-builder-DCyIgnCR.js';
|
|
13
13
|
export { NodeDOMTreeConstruction } from '../../../@glimmer/node/index.js';
|
|
14
|
-
export { e as element } from '../../../shared-chunks/element-
|
|
15
|
-
export { u as uniqueId } from '../../../shared-chunks/unique-id-
|
|
16
|
-
export { c as componentCapabilities, m as modifierCapabilities } from '../../../shared-chunks/api-
|
|
14
|
+
export { e as element } from '../../../shared-chunks/element-Cf3hqNOD.js';
|
|
15
|
+
export { u as uniqueId } from '../../../shared-chunks/unique-id-CgmHQiwi.js';
|
|
16
|
+
export { c as componentCapabilities, m as modifierCapabilities } from '../../../shared-chunks/api-BAmlf_CN.js';
|
|
17
17
|
|
|
18
18
|
// STATE within a module is frowned upon, this exists
|
|
19
19
|
// to support Ember.TEMPLATES but shield ember internals from this legacy
|
|
@@ -12,7 +12,7 @@ import { assert } from '../../../../debug/lib/assert.js';
|
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
`TargetActionSupport` is a mixin that can be included in a class
|
|
15
|
-
to add a `triggerAction` method with semantics similar to the
|
|
15
|
+
to add a `triggerAction` method with semantics similar to the
|
|
16
16
|
`{{action}}` helper. In normal Ember usage, the `{{action}}` helper is
|
|
17
17
|
usually the best choice. This mixin is most often useful when you are
|
|
18
18
|
doing more complex event handling in Components.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { addChildView, clearElementView, clearViewElement, constructStyleDeprecationMessage, getChildViews, getElementView, getRootViews, getViewBoundingClientRect, getViewBounds, getViewClientRects, getViewElement, getViewId, isSimpleClick, setElementView, setViewElement } from './lib/system/utils.js';
|
|
2
2
|
export { default as EventDispatcher } from './lib/system/event_dispatcher.js';
|
|
3
|
-
export { default as ComponentLookup } from './lib/component_lookup.js';
|
|
4
3
|
export { default as CoreView } from './lib/views/core_view.js';
|
|
5
4
|
export { default as ActionSupport } from './lib/mixins/action_support.js';
|
|
6
5
|
export { MUTABLE_CELL } from './lib/compat/attrs.js';
|
|
@@ -3,7 +3,7 @@ import ActionHandler from '../../../runtime/lib/mixins/action_handler.js';
|
|
|
3
3
|
import Evented from '../../../../object/evented.js';
|
|
4
4
|
import { FrameworkObject } from '../../../../object/-internals.js';
|
|
5
5
|
import states from './states.js';
|
|
6
|
-
import { d as decorateFieldV2, i as initializeDeferredDecorator } from '../../../../../shared-chunks/
|
|
6
|
+
import { d as decorateFieldV2, i as initializeDeferredDecorator } from '../../../../../shared-chunks/runtime-CYyqkz5q-BOdRhmsS.js';
|
|
7
7
|
|
|
8
8
|
class CoreView extends FrameworkObject.extend(Evented, ActionHandler) {
|
|
9
9
|
isView = true;
|
|
@@ -24,7 +24,7 @@ import BucketCache from '../routing/lib/cache.js';
|
|
|
24
24
|
import ApplicationInstance from './instance.js';
|
|
25
25
|
import Engine, { buildInitializerMethod } from '../engine/index.js';
|
|
26
26
|
import { privatize } from '../-internals/container/index.js';
|
|
27
|
-
import { s as setupApplicationRegistry } from '../../shared-chunks/setup-registry-
|
|
27
|
+
import { s as setupApplicationRegistry } from '../../shared-chunks/setup-registry-BQZJfq-Y.js';
|
|
28
28
|
import RouterService from '../routing/router-service.js';
|
|
29
29
|
import { assert } from '../debug/lib/assert.js';
|
|
30
30
|
|
|
@@ -2,7 +2,7 @@ import { g as get } from '../../shared-chunks/property_get-CIBS9umw.js';
|
|
|
2
2
|
import { s as set } from '../../shared-chunks/property_set-D3PKyisF.js';
|
|
3
3
|
import { h as hasDOM, e as environment } from '../../shared-chunks/index-BGP1rw3B.js';
|
|
4
4
|
import EngineInstance from '../engine/instance.js';
|
|
5
|
-
import { r as renderSettled } from '../../shared-chunks/index-
|
|
5
|
+
import { r as renderSettled } from '../../shared-chunks/index-CL1zjHwo.js';
|
|
6
6
|
import '../debug/index.js';
|
|
7
7
|
import EmberRouter from '../routing/router.js';
|
|
8
8
|
import EventDispatcher from '../-internals/views/lib/system/event_dispatcher.js';
|
|
@@ -514,6 +514,10 @@ const MutableArray = Mixin.create(EmberArray, MutableEnumerable, {
|
|
|
514
514
|
/**
|
|
515
515
|
Creates an `NativeArray` from an Array-like object.
|
|
516
516
|
Does not modify the original object's contents.
|
|
517
|
+
|
|
518
|
+
This exists primarily for historic reasons and should not be used
|
|
519
|
+
in new code. Prefer native [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)
|
|
520
|
+
or [trackedArray](/ember/release/functions/@ember%2Freactive%2Fcollections/trackedArray).
|
|
517
521
|
|
|
518
522
|
Example
|
|
519
523
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { H as default, h as helper } from '../../shared-chunks/helper-
|
|
1
|
+
export { H as default, h as helper } from '../../shared-chunks/helper-BubrhyuN.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { g as getComponentTemplate, s as setComponentTemplate } from '../../shared-chunks/template-
|
|
1
|
+
export { g as getComponentTemplate, s as setComponentTemplate } from '../../shared-chunks/template-R_5UMHhb.js';
|
|
2
2
|
import { d as descriptorForProperty, n as nativeDescDecorator } from '../../shared-chunks/decorator-B5Uh5NFI.js';
|
|
3
3
|
import { g as get } from '../../shared-chunks/property_get-CIBS9umw.js';
|
|
4
4
|
import { P as PROPERTY_DID_CHANGE } from '../../shared-chunks/computed-CJnghmXC.js';
|
|
@@ -10,17 +10,17 @@ import CoreView from '../-internals/views/lib/views/core_view.js';
|
|
|
10
10
|
import EventDispatcher from '../-internals/views/lib/system/event_dispatcher.js';
|
|
11
11
|
import { g as guidFor } from '../../shared-chunks/guid-Cbq2sNV_.js';
|
|
12
12
|
import '../debug/index.js';
|
|
13
|
-
import { s as setInternalComponentManager } from '../../shared-chunks/api-
|
|
13
|
+
import { s as setInternalComponentManager } from '../../shared-chunks/api-BawZUDYD.js';
|
|
14
14
|
import { d as isUpdatableRef, u as updateRef } from '../../shared-chunks/reference-BoPB2LfI.js';
|
|
15
15
|
import { n as normalizeProperty } from '../../shared-chunks/props-fiqxqhAH.js';
|
|
16
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-
|
|
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
18
|
import { h as hasDOM } from '../../shared-chunks/index-BGP1rw3B.js';
|
|
19
|
-
import { a as decorateMethodV2 } from '../../shared-chunks/
|
|
19
|
+
import { a as decorateMethodV2 } from '../../shared-chunks/runtime-CYyqkz5q-BOdRhmsS.js';
|
|
20
20
|
import { assert } from '../debug/lib/assert.js';
|
|
21
|
-
export { I as Input, T as Textarea } from '../../shared-chunks/textarea-
|
|
22
|
-
import { s as setComponentManager$1 } from '../../shared-chunks/api-
|
|
23
|
-
export { c as capabilities } from '../../shared-chunks/api-
|
|
21
|
+
export { I as Input, T as Textarea } from '../../shared-chunks/textarea-lD4apgrP.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
24
|
import '../../@glimmer/destroyable/index.js';
|
|
25
25
|
import '../../@glimmer/global-context/index.js';
|
|
26
26
|
import '../../shared-chunks/capabilities-CZkuOqqC.js';
|
|
@@ -73,6 +73,12 @@ function matches(el, selector) {
|
|
|
73
73
|
API documentation for Template-only or Glimmer components, it is [available
|
|
74
74
|
here](/ember/release/modules/@glimmer%2Fcomponent).
|
|
75
75
|
|
|
76
|
+
Note: Prior to Ember 6.8, by default, components were authored in paired `.hbs` and `.js`
|
|
77
|
+
files. This is still supported, but the default authoring format is now `.gjs` or "template tag".
|
|
78
|
+
The documentation for `@ember/component` still refers to the older authoring format. To read about
|
|
79
|
+
the new authoring format, see the
|
|
80
|
+
[Glimmer Component API documentation](/ember/release/modules/@glimmer%2Fcomponent).
|
|
81
|
+
|
|
76
82
|
## Defining a Classic Component
|
|
77
83
|
|
|
78
84
|
If you want to customize the component in order to handle events, transform
|
|
@@ -99,7 +105,7 @@ function matches(el, selector) {
|
|
|
99
105
|
|
|
100
106
|
And then use it in the component's template:
|
|
101
107
|
|
|
102
|
-
```app/
|
|
108
|
+
```app/components/person-profile.hbs
|
|
103
109
|
<h1>{{this.displayName}}</h1>
|
|
104
110
|
{{yield}}
|
|
105
111
|
```
|
|
@@ -487,7 +493,7 @@ function matches(el, selector) {
|
|
|
487
493
|
The `layout` property should be set to the default export of a template
|
|
488
494
|
module, which is the name of a template file without the `.hbs` extension.
|
|
489
495
|
|
|
490
|
-
```app/
|
|
496
|
+
```app/components/person-profile.hbs
|
|
491
497
|
<h1>Person's Title</h1>
|
|
492
498
|
<div class='details'>{{yield}}</div>
|
|
493
499
|
```
|
|
@@ -13,8 +13,7 @@ import '../../route-recognizer/index.js';
|
|
|
13
13
|
import '../../shared-chunks/rsvp-CnCSY930.js';
|
|
14
14
|
import '../../shared-chunks/unrecognized-url-error-B3wUTorp.js';
|
|
15
15
|
import RoutingService from '../routing/lib/routing-service.js';
|
|
16
|
-
import
|
|
17
|
-
import { a as setupEngineRegistry } from '../../shared-chunks/setup-registry-XxD0xvgf.js';
|
|
16
|
+
import { a as setupEngineRegistry } from '../../shared-chunks/setup-registry-BQZJfq-Y.js';
|
|
18
17
|
import RegistryProxyMixin from '../-internals/runtime/lib/mixins/registry_proxy.js';
|
|
19
18
|
import { assert } from '../debug/lib/assert.js';
|
|
20
19
|
|
|
@@ -431,7 +430,6 @@ function commonSetupRegistry(registry) {
|
|
|
431
430
|
instantiate: false
|
|
432
431
|
});
|
|
433
432
|
registry.register('container-debug-adapter:main', ContainerDebugAdapter);
|
|
434
|
-
registry.register('component-lookup:main', ComponentLookup);
|
|
435
433
|
}
|
|
436
434
|
|
|
437
435
|
export { buildInitializerMethod, Engine as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as setHelperManager$1 } from '../../shared-chunks/api-
|
|
2
|
-
import { i as helperCapabilities } from '../../shared-chunks/api-
|
|
3
|
-
import { i as invokeHelper$1 } from '../../shared-chunks/invoke-
|
|
4
|
-
import { a as array$1, f as fn$1, h as hash$1 } from '../../shared-chunks/hash-
|
|
5
|
-
import { c as concat$1, g as get$1 } from '../../shared-chunks/get-
|
|
6
|
-
import { a as and$1, e as eq$1, g as gt$1, b as gte$1, l as lt$1, c as lte$1, n as neq$1, d as not$1, o as or$1 } from '../../shared-chunks/or-
|
|
7
|
-
import { e as element$1 } from '../../shared-chunks/element-
|
|
8
|
-
import { u as uniqueId$1 } from '../../shared-chunks/unique-id-
|
|
1
|
+
import { b as setHelperManager$1 } from '../../shared-chunks/api-BAmlf_CN.js';
|
|
2
|
+
import { i as helperCapabilities } from '../../shared-chunks/api-BawZUDYD.js';
|
|
3
|
+
import { i as invokeHelper$1 } from '../../shared-chunks/invoke-B8M5fQQS.js';
|
|
4
|
+
import { a as array$1, f as fn$1, h as hash$1 } from '../../shared-chunks/hash-BTwOuDGQ.js';
|
|
5
|
+
import { c as concat$1, g as get$1 } from '../../shared-chunks/get-BehtPmsu.js';
|
|
6
|
+
import { a as and$1, e as eq$1, g as gt$1, b as gte$1, l as lt$1, c as lte$1, n as neq$1, d as not$1, o as or$1 } from '../../shared-chunks/or-BTH3yuFG.js';
|
|
7
|
+
import { e as element$1 } from '../../shared-chunks/element-Cf3hqNOD.js';
|
|
8
|
+
import { u as uniqueId$1 } from '../../shared-chunks/unique-id-CgmHQiwi.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
@module @ember/helper
|
|
@@ -336,18 +336,12 @@ const invokeHelper = invokeHelper$1;
|
|
|
336
336
|
* as an argument to your components.
|
|
337
337
|
*
|
|
338
338
|
* ```
|
|
339
|
-
* import { hash } from '@ember/helper';
|
|
340
|
-
*
|
|
341
339
|
* <template>
|
|
342
340
|
* {{#each-in (hash givenName='Jen' familyName='Weber') as |key value|}}
|
|
343
341
|
* <p>{{key}}: {{value}}</p>
|
|
344
342
|
* {{/each-in}}
|
|
345
343
|
* </template>
|
|
346
344
|
* ```
|
|
347
|
-
*
|
|
348
|
-
* **NOTE:** this example uses the experimental `<template>` feature, which is
|
|
349
|
-
* the only place you need to import `hash` to use it (it is a built-in when
|
|
350
|
-
* writing standalone `.hbs` files).
|
|
351
345
|
*/
|
|
352
346
|
const hash = hash$1;
|
|
353
347
|
/**
|
|
@@ -355,7 +349,6 @@ const hash = hash$1;
|
|
|
355
349
|
* as an argument to your components.
|
|
356
350
|
*
|
|
357
351
|
* ```js
|
|
358
|
-
* import { array } from '@ember/helper';
|
|
359
352
|
*
|
|
360
353
|
* <template>
|
|
361
354
|
* <ul>
|
|
@@ -364,10 +357,6 @@ const hash = hash$1;
|
|
|
364
357
|
* {{/each}}
|
|
365
358
|
* </ul>
|
|
366
359
|
* </template>
|
|
367
|
-
*
|
|
368
|
-
* **NOTE:** this example uses the experimental `<template>` feature, which is
|
|
369
|
-
* the only place you need to import `array` to use it (it is a built-in when
|
|
370
|
-
* writing standalone `.hbs` files).
|
|
371
360
|
* ```
|
|
372
361
|
*/
|
|
373
362
|
const array = array$1;
|
|
@@ -388,10 +377,6 @@ const array = array$1;
|
|
|
388
377
|
*
|
|
389
378
|
* This will display the result of `@foo.item1` when `index` is `1`, and
|
|
390
379
|
* `this.foo.item2` when `index` is `2`, etc.
|
|
391
|
-
*
|
|
392
|
-
* **NOTE:** this example uses the experimental `<template>` feature, which is
|
|
393
|
-
* the only place you need to import `concat` to use it (it is a built-in when
|
|
394
|
-
* writing standalone `.hbs` files).
|
|
395
380
|
*/
|
|
396
381
|
const concat = concat$1;
|
|
397
382
|
/**
|
|
@@ -431,10 +416,6 @@ const concat = concat$1;
|
|
|
431
416
|
*
|
|
432
417
|
* This will display the result of `@foo.item1` when `index` is `1`, and
|
|
433
418
|
* `this.foo.item2` when `index` is `2`, etc.
|
|
434
|
-
*
|
|
435
|
-
* **NOTE:** this example uses the experimental `<template>` feature, which is
|
|
436
|
-
* the only place you need to import `concat` to use it (it is a built-in when
|
|
437
|
-
* writing standalone `.hbs` files).
|
|
438
419
|
*/
|
|
439
420
|
const get = get$1;
|
|
440
421
|
/**
|
|
@@ -476,7 +457,6 @@ const fn = fn$1;
|
|
|
476
457
|
* @param {number} left
|
|
477
458
|
* @param {number} right
|
|
478
459
|
* @return {boolean}
|
|
479
|
-
* @private
|
|
480
460
|
*/
|
|
481
461
|
const gt = gt$1;
|
|
482
462
|
/**
|
|
@@ -498,7 +478,6 @@ const gt = gt$1;
|
|
|
498
478
|
* @param {number} left
|
|
499
479
|
* @param {number} right
|
|
500
480
|
* @return {boolean}
|
|
501
|
-
* @private
|
|
502
481
|
*/
|
|
503
482
|
const gte = gte$1;
|
|
504
483
|
/**
|
|
@@ -520,7 +499,6 @@ const gte = gte$1;
|
|
|
520
499
|
* @param {number} left
|
|
521
500
|
* @param {number} right
|
|
522
501
|
* @return {boolean}
|
|
523
|
-
* @private
|
|
524
502
|
*/
|
|
525
503
|
const lt = lt$1;
|
|
526
504
|
/**
|
|
@@ -542,7 +520,6 @@ const lt = lt$1;
|
|
|
542
520
|
* @param {number} left
|
|
543
521
|
* @param {number} right
|
|
544
522
|
* @return {boolean}
|
|
545
|
-
* @private
|
|
546
523
|
*/
|
|
547
524
|
const lte = lte$1;
|
|
548
525
|
/**
|
|
@@ -564,7 +541,6 @@ const lte = lte$1;
|
|
|
564
541
|
*
|
|
565
542
|
* @method element
|
|
566
543
|
* @param {string} tagName
|
|
567
|
-
* @private
|
|
568
544
|
*/
|
|
569
545
|
const element = element$1;
|
|
570
546
|
/**
|
|
@@ -605,7 +581,6 @@ const uniqueId = uniqueId$1;
|
|
|
605
581
|
* @param {unknown} left
|
|
606
582
|
* @param {unknown} right
|
|
607
583
|
* @return {boolean}
|
|
608
|
-
* @private
|
|
609
584
|
*/
|
|
610
585
|
const eq = eq$1;
|
|
611
586
|
/**
|
|
@@ -627,7 +602,6 @@ const eq = eq$1;
|
|
|
627
602
|
* @param {unknown} left
|
|
628
603
|
* @param {unknown} right
|
|
629
604
|
* @return {boolean}
|
|
630
|
-
* @private
|
|
631
605
|
*/
|
|
632
606
|
const neq = neq$1;
|
|
633
607
|
/**
|
|
@@ -649,7 +623,6 @@ const neq = neq$1;
|
|
|
649
623
|
* @method and
|
|
650
624
|
* @param {unknown} args Two or more values to evaluate
|
|
651
625
|
* @return {unknown} The first falsy value or the last value
|
|
652
|
-
* @private
|
|
653
626
|
*/
|
|
654
627
|
const and = and$1;
|
|
655
628
|
/**
|
|
@@ -671,7 +644,6 @@ const and = and$1;
|
|
|
671
644
|
* @method or
|
|
672
645
|
* @param {unknown} args Two or more values to evaluate
|
|
673
646
|
* @return {unknown} The first truthy value or the last value
|
|
674
|
-
* @private
|
|
675
647
|
*/
|
|
676
648
|
const or = or$1;
|
|
677
649
|
/**
|
|
@@ -692,7 +664,6 @@ const or = or$1;
|
|
|
692
664
|
* @method not
|
|
693
665
|
* @param {unknown} value The value to negate
|
|
694
666
|
* @return {boolean}
|
|
695
|
-
* @private
|
|
696
667
|
*/
|
|
697
668
|
const not = not$1;
|
|
698
669
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as setModifierManager$1 } from '../../shared-chunks/api-
|
|
2
|
-
export { m as capabilities } from '../../shared-chunks/api-
|
|
1
|
+
import { d as setModifierManager$1 } from '../../shared-chunks/api-BAmlf_CN.js';
|
|
2
|
+
export { m as capabilities } from '../../shared-chunks/api-BAmlf_CN.js';
|
|
3
3
|
export { on } from './on.js';
|
|
4
4
|
|
|
5
5
|
// NOTE: this uses assignment to *require* that the `glimmerSetModifierManager`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as on$1 } from '../../shared-chunks/on-
|
|
1
|
+
import { o as on$1 } from '../../shared-chunks/on-BQii6ILK.js';
|
|
2
2
|
|
|
3
3
|
// In normal TypeScript, this modifier is essentially an opaque token that just
|
|
4
4
|
// needs to be importable. Declaring it with a unique interface like this,
|
|
@@ -40,8 +40,8 @@ class EmberObject extends CoreObject.extend(Observable) {
|
|
|
40
40
|
Decorator that turns the target function into an Action which can be accessed
|
|
41
41
|
directly by reference.
|
|
42
42
|
|
|
43
|
-
```
|
|
44
|
-
import Component from '@
|
|
43
|
+
```gjs
|
|
44
|
+
import Component from '@glimmer/component';
|
|
45
45
|
import { tracked } from '@glimmer/tracking';
|
|
46
46
|
import { action } from '@ember/object';
|
|
47
47
|
|
|
@@ -52,24 +52,24 @@ class EmberObject extends CoreObject.extend(Observable) {
|
|
|
52
52
|
toggleShowing() {
|
|
53
53
|
this.isShowing = !this.isShowing;
|
|
54
54
|
}
|
|
55
|
+
|
|
56
|
+
<template>
|
|
57
|
+
<button {{on "click" this.toggleShowing}}>Show tooltip</button>
|
|
58
|
+
|
|
59
|
+
{{#if isShowing}}
|
|
60
|
+
<div class="tooltip">
|
|
61
|
+
I'm a tooltip!
|
|
62
|
+
</div>
|
|
63
|
+
{{/if}}
|
|
64
|
+
</template>
|
|
55
65
|
}
|
|
56
66
|
```
|
|
57
|
-
```hbs
|
|
58
|
-
<!-- template.hbs -->
|
|
59
|
-
<button {{on "click" this.toggleShowing}}>Show tooltip</button>
|
|
60
|
-
|
|
61
|
-
{{#if isShowing}}
|
|
62
|
-
<div class="tooltip">
|
|
63
|
-
I'm a tooltip!
|
|
64
|
-
</div>
|
|
65
|
-
{{/if}}
|
|
66
|
-
```
|
|
67
67
|
|
|
68
68
|
It also binds the function directly to the instance, so it can be used in any
|
|
69
69
|
context and will correctly refer to the class it came from:
|
|
70
70
|
|
|
71
|
-
```
|
|
72
|
-
import Component from '@
|
|
71
|
+
```gjs
|
|
72
|
+
import Component from '@glimmer/component';
|
|
73
73
|
import { tracked } from '@glimmer/tracking';
|
|
74
74
|
import { action } from '@ember/object';
|
|
75
75
|
|
|
@@ -88,6 +88,10 @@ class EmberObject extends CoreObject.extend(Observable) {
|
|
|
88
88
|
toggleShowing() {
|
|
89
89
|
this.isShowing = !this.isShowing;
|
|
90
90
|
}
|
|
91
|
+
|
|
92
|
+
<template>
|
|
93
|
+
{{!-- ...--}}
|
|
94
|
+
</template>
|
|
91
95
|
}
|
|
92
96
|
```
|
|
93
97
|
|
|
@@ -170,9 +174,10 @@ setClassicDecorator(action);
|
|
|
170
174
|
});
|
|
171
175
|
```
|
|
172
176
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
177
|
+
While observers are still supported, there are [plans to deprecate them](https://github.com/emberjs/rfcs/pull/1115)
|
|
178
|
+
See the [in-progress deprecation guide](https://github.com/ember-learn/deprecation-app/pull/1407)
|
|
179
|
+
for guidance on how to avoid using observers.
|
|
180
|
+
|
|
176
181
|
@method observer
|
|
177
182
|
@for @ember/object
|
|
178
183
|
@param {String} propertyNames*
|
|
@@ -179,6 +179,8 @@ function trackedMap(data, options) {
|
|
|
179
179
|
return function (key, value) {
|
|
180
180
|
const hasExisting = target.has(key);
|
|
181
181
|
if (hasExisting) {
|
|
182
|
+
// TS doesn't know about the relationship between has and get
|
|
183
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
182
184
|
const isUnchanged = equals(target.get(key), value);
|
|
183
185
|
if (isUnchanged) return proxy;
|
|
184
186
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as renderComponent, r as renderSettled } from '../../shared-chunks/index-
|
|
1
|
+
export { a as renderComponent, r as renderSettled } from '../../shared-chunks/index-CL1zjHwo.js';
|
|
@@ -8,9 +8,9 @@ import { service } from '../service/index.js';
|
|
|
8
8
|
import { k as consumeTag, l as createCache, r as getValue, x as untrack } from '../../shared-chunks/cache-B7dqAS38.js';
|
|
9
9
|
import { t as tagFor } from '../../shared-chunks/meta-BmRXesrk.js';
|
|
10
10
|
import { on } from '../modifier/on.js';
|
|
11
|
-
import { t as templateFactory } from '../../shared-chunks/index-
|
|
12
|
-
import { I as InternalComponent, o as opaquify } from '../../shared-chunks/internal-
|
|
13
|
-
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../shared-chunks/
|
|
11
|
+
import { t as templateFactory } from '../../shared-chunks/index-CyZiGiEI.js';
|
|
12
|
+
import { I as InternalComponent, o as opaquify } from '../../shared-chunks/internal-CAL-jHZt.js';
|
|
13
|
+
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../shared-chunks/runtime-CYyqkz5q-BOdRhmsS.js';
|
|
14
14
|
import { assert } from '../debug/lib/assert.js';
|
|
15
15
|
|
|
16
16
|
const LinkToTemplate = templateFactory(
|
|
@@ -63,10 +63,14 @@ function isQueryParams(value) {
|
|
|
63
63
|
supplied model to the route as its `model` context of the route. The block for `LinkTo`
|
|
64
64
|
becomes the contents of the rendered element:
|
|
65
65
|
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
```gjs
|
|
67
|
+
import { LinkTo } from '@ember/routing';
|
|
68
|
+
|
|
69
|
+
<template>
|
|
70
|
+
<LinkTo @route='photoGallery'>
|
|
71
|
+
Great Hamster Photos
|
|
72
|
+
</LinkTo>
|
|
73
|
+
</template>
|
|
70
74
|
```
|
|
71
75
|
|
|
72
76
|
This will result in:
|
|
@@ -20,13 +20,13 @@ import { info } from '../debug/index.js';
|
|
|
20
20
|
import EngineInstance from '../engine/instance.js';
|
|
21
21
|
import { dependentKeyCompat } from '../object/compat.js';
|
|
22
22
|
import { once } from '../runloop/index.js';
|
|
23
|
-
import { c as hasInternalComponentManager } from '../../shared-chunks/api-
|
|
23
|
+
import { c as hasInternalComponentManager } from '../../shared-chunks/api-BawZUDYD.js';
|
|
24
24
|
import '../../route-recognizer/index.js';
|
|
25
25
|
import '../../shared-chunks/rsvp-CnCSY930.js';
|
|
26
26
|
import { S as STATE_SYMBOL, P as PARAMS_SYMBOL } from '../../shared-chunks/unrecognized-url-error-B3wUTorp.js';
|
|
27
27
|
import generateController from './lib/generate_controller.js';
|
|
28
28
|
import { prefixRouteNameArg, stashParamNames, calculateCacheKey, normalizeControllerQueryParams } from './lib/utils.js';
|
|
29
|
-
import { a as decorateMethodV2 } from '../../shared-chunks/
|
|
29
|
+
import { a as decorateMethodV2 } from '../../shared-chunks/runtime-CYyqkz5q-BOdRhmsS.js';
|
|
30
30
|
import { assert } from '../debug/lib/assert.js';
|
|
31
31
|
|
|
32
32
|
const RENDER = Symbol('render');
|
|
@@ -769,7 +769,7 @@ class Route extends EmberObject.extend(ActionHandler, Evented) {
|
|
|
769
769
|
```
|
|
770
770
|
Note that for routes with dynamic segments, this hook is not always
|
|
771
771
|
executed. If the route is entered through a transition (e.g. when
|
|
772
|
-
using the `link-to`
|
|
772
|
+
using the `link-to` helper or the `transitionTo` method
|
|
773
773
|
of routes), and a model context is already provided this hook
|
|
774
774
|
is not called.
|
|
775
775
|
A model context does not include a primitive string or number,
|
|
@@ -18,7 +18,7 @@ import '../array/index.js';
|
|
|
18
18
|
import Service from '../service/index.js';
|
|
19
19
|
import EmberRouter from './router.js';
|
|
20
20
|
import { resemblesURL, extractRouteArgs, shallowEqual } from './lib/utils.js';
|
|
21
|
-
import { d as decorateFieldV2, i as initializeDeferredDecorator } from '../../shared-chunks/
|
|
21
|
+
import { d as decorateFieldV2, i as initializeDeferredDecorator } from '../../shared-chunks/runtime-CYyqkz5q-BOdRhmsS.js';
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* @module @ember/routing/router-service
|
|
@@ -41,7 +41,7 @@ function cleanURL(url, rootURL) {
|
|
|
41
41
|
In this example, the Router service is injected into a component to initiate a transition
|
|
42
42
|
to a dedicated route:
|
|
43
43
|
|
|
44
|
-
```app/components/example.
|
|
44
|
+
```app/components/example.gjs
|
|
45
45
|
import Component from '@glimmer/component';
|
|
46
46
|
import { action } from '@ember/object';
|
|
47
47
|
import { service } from '@ember/service';
|
|
@@ -90,7 +90,7 @@ class RouterService extends Service.extend(Evented) {
|
|
|
90
90
|
In the following example we use the Router service to navigate to a route with a
|
|
91
91
|
specific model from a Component in the first action, and in the second we trigger
|
|
92
92
|
a query-params only transition.
|
|
93
|
-
```app/components/example.
|
|
93
|
+
```app/components/example.gjs
|
|
94
94
|
import Component from '@glimmer/component';
|
|
95
95
|
import { action } from '@ember/object';
|
|
96
96
|
import { service } from '@ember/service';
|
|
@@ -175,10 +175,14 @@ class RouterService extends Service.extend(Evented) {
|
|
|
175
175
|
URL is returned as a string that can be used for any purpose.
|
|
176
176
|
In this example, the URL for the `author.books` route for a given author
|
|
177
177
|
is copied to the clipboard.
|
|
178
|
-
```app/templates/application.
|
|
179
|
-
|
|
178
|
+
```app/templates/application.gjs
|
|
179
|
+
import CopyLink from '../components/copy-link';
|
|
180
|
+
|
|
181
|
+
<template>
|
|
182
|
+
<CopyLink @author={{hash id="tomster" name="Tomster"}} />
|
|
183
|
+
</template>
|
|
180
184
|
```
|
|
181
|
-
```app/components/copy-link.
|
|
185
|
+
```app/components/copy-link.gjs
|
|
182
186
|
import Component from '@glimmer/component';
|
|
183
187
|
import { service } from '@ember/service';
|
|
184
188
|
import { action } from '@ember/object';
|
|
@@ -197,10 +201,13 @@ class RouterService extends Service.extend(Evented) {
|
|
|
197
201
|
```
|
|
198
202
|
Just like with `transitionTo` and `replaceWith`, `urlFor` can also handle
|
|
199
203
|
query parameters.
|
|
200
|
-
```app/templates/application.
|
|
201
|
-
|
|
204
|
+
```app/templates/application.gjs
|
|
205
|
+
import CopyLink from '../components/copy-link';
|
|
206
|
+
<template>
|
|
207
|
+
<CopyLink @author={{hash id="tomster" name="Tomster"}} />
|
|
208
|
+
</template>
|
|
202
209
|
```
|
|
203
|
-
```app/components/copy-link.
|
|
210
|
+
```app/components/copy-link.gjs
|
|
204
211
|
import Component from '@glimmer/component';
|
|
205
212
|
import { service } from '@ember/service';
|
|
206
213
|
import { action } from '@ember/object';
|
|
@@ -237,7 +244,7 @@ class RouterService extends Service.extend(Evented) {
|
|
|
237
244
|
See [model](api/ember/release/classes/Route/methods/model?anchor=model) and
|
|
238
245
|
[queryParams](/api/ember/3.7/classes/Route/properties/queryParams?anchor=queryParams) for more information about these arguments.
|
|
239
246
|
In the following example, `isActive` will return `true` if the current route is `/posts`.
|
|
240
|
-
```app/components/posts.
|
|
247
|
+
```app/components/posts.gjs
|
|
241
248
|
import Component from '@glimmer/component';
|
|
242
249
|
import { service } from '@ember/service';
|
|
243
250
|
export default class extends Component {
|
|
@@ -249,7 +256,7 @@ class RouterService extends Service.extend(Evented) {
|
|
|
249
256
|
```
|
|
250
257
|
The next example includes a dynamic segment, and will return `true` if the current route is `/posts/1`,
|
|
251
258
|
assuming the post has an id of 1:
|
|
252
|
-
```app/components/posts.
|
|
259
|
+
```app/components/posts.gjs
|
|
253
260
|
import Component from '@glimmer/component';
|
|
254
261
|
import { service } from '@ember/service';
|
|
255
262
|
export default class extends Component {
|
|
@@ -323,7 +330,7 @@ class RouterService extends Service.extend(Evented) {
|
|
|
323
330
|
See [RouteInfo](/ember/release/classes/RouteInfo) for more info.
|
|
324
331
|
In the following example `recognize` is used to verify if a path belongs to our
|
|
325
332
|
application before transitioning to it.
|
|
326
|
-
```
|
|
333
|
+
```js
|
|
327
334
|
import Component from '@ember/component';
|
|
328
335
|
import { service } from '@ember/service';
|
|
329
336
|
export default class extends Component {
|
|
@@ -626,7 +633,7 @@ class RouterService extends Service.extend(Evented) {
|
|
|
626
633
|
happens (even when that transition only changes parameters
|
|
627
634
|
and doesn't change the active route).
|
|
628
635
|
Usage example:
|
|
629
|
-
```app/components/header.
|
|
636
|
+
```app/components/header.gjs
|
|
630
637
|
import Component from '@glimmer/component';
|
|
631
638
|
import { service } from '@ember/service';
|
|
632
639
|
import { notEmpty } from '@ember/object/computed';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as or, d as not, c as lte, l as lt, b as gte, g as gt, n as neq, a as and, e as eq } from '../../../shared-chunks/or-
|
|
2
|
-
import { h as hash, f as fn, a as array } from '../../../shared-chunks/hash-
|
|
3
|
-
import { e as element } from '../../../shared-chunks/element-
|
|
1
|
+
import { o as or, d as not, c as lte, l as lt, b as gte, g as gt, n as neq, a as and, e as eq } from '../../../shared-chunks/or-BTH3yuFG.js';
|
|
2
|
+
import { h as hash, f as fn, a as array } from '../../../shared-chunks/hash-BTwOuDGQ.js';
|
|
3
|
+
import { e as element } from '../../../shared-chunks/element-Cf3hqNOD.js';
|
|
4
4
|
import { on } from '../../modifier/on.js';
|
|
5
5
|
import '../../debug/index.js';
|
|
6
6
|
import { STRICT_MODE_KEYWORDS, STRICT_MODE_TRANSFORMS, RESOLUTION_MODE_TRANSFORMS } from './plugins/index.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import './plugins/allowed-globals.js';
|
|
2
2
|
import templateOnly from '../../component/template-only.js';
|
|
3
|
-
import { p as precompile } from '../../../shared-chunks/compiler-
|
|
4
|
-
import { s as setComponentTemplate } from '../../../shared-chunks/template-
|
|
5
|
-
import { t as templateFactory } from '../../../shared-chunks/index-
|
|
3
|
+
import { p as precompile } from '../../../shared-chunks/compiler-QUSl_urU.js';
|
|
4
|
+
import { s as setComponentTemplate } from '../../../shared-chunks/template-R_5UMHhb.js';
|
|
5
|
+
import { t as templateFactory } from '../../../shared-chunks/index-CyZiGiEI.js';
|
|
6
6
|
import compileOptions, { RUNTIME_KEYWORDS_NAME, keywords } from './compile-options.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as createTemplateFactory } from '../../shared-chunks/index-
|
|
1
|
+
export { t as createTemplateFactory } from '../../shared-chunks/index-CyZiGiEI.js';
|