ember-source 7.0.0-beta.1 → 7.1.0-alpha.2
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 +7 -7
- package/dist/dev/packages/@ember/application/index.js +5 -5
- package/dist/dev/packages/@ember/application/instance.js +4 -4
- package/dist/dev/packages/@ember/component/helper.js +4 -4
- package/dist/dev/packages/@ember/component/index.js +4 -4
- package/dist/dev/packages/@ember/component/template-only.js +2 -2
- package/dist/dev/packages/@ember/engine/index.js +5 -5
- package/dist/dev/packages/@ember/helper/index.js +24 -6
- package/dist/dev/packages/@ember/modifier/index.js +4 -4
- package/dist/dev/packages/@ember/modifier/on.js +2 -2
- package/dist/dev/packages/@ember/renderer/index.js +4 -4
- package/dist/dev/packages/@ember/routing/index.js +4 -4
- package/dist/dev/packages/@ember/template/index.js +4 -4
- package/dist/dev/packages/@ember/template-compiler/lib/compile-options.js +48 -6
- package/dist/dev/packages/@ember/template-compiler/lib/plugins/auto-import-builtins.js +57 -0
- package/dist/dev/packages/@ember/template-compiler/lib/plugins/index.js +3 -1
- package/dist/dev/packages/@ember/template-compiler/lib/template.js +29 -13
- package/dist/dev/packages/@ember/template-factory/index.js +1 -1
- package/dist/dev/packages/@glimmer/node/index.js +4 -4
- package/dist/dev/packages/@glimmer/opcode-compiler/index.js +2 -2
- package/dist/dev/packages/@glimmer/program/index.js +1 -1
- package/dist/dev/packages/@glimmer/runtime/index.js +5 -5
- 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/{compiler-CNj62pww.js → compiler-BenCxenr.js} +0 -3
- package/dist/dev/packages/shared-chunks/{constants-eoaL3OJQ.js → constants-DKn6zqFX.js} +1 -1
- package/dist/dev/packages/shared-chunks/{dynamic-CFg3dljk.js → dynamic-Cu9Xpdzc.js} +2 -18
- package/dist/dev/packages/shared-chunks/{element-builder-BOxP8emt.js → element-builder-Dw_Ic9cD.js} +1 -1
- package/dist/dev/packages/shared-chunks/{index-PxU6E7q8.js → index-AD_RxZjB.js} +117 -21
- package/dist/dev/packages/shared-chunks/{index-Q7JnrdBn.js → index-CtPSmMCE.js} +2 -2
- package/dist/dev/packages/shared-chunks/{invoke-DxRPE05O.js → invoke-D0D6CvD5.js} +1 -1
- package/dist/dev/packages/shared-chunks/{program-context-BRjCC_BA.js → program-context-yOi1EExe.js} +1 -1
- package/dist/dev/packages/shared-chunks/{rehydrate-builder-DPImr9e9.js → rehydrate-builder-CfBtYUkk.js} +2 -2
- package/dist/dev/packages/shared-chunks/{render-sg8BuFaE.js → render-t-LAXUYI.js} +3 -3
- package/dist/dev/packages/shared-chunks/{serialize-builder-b_gSYCSS.js → serialize-builder-BUG9CxHC.js} +3 -3
- package/dist/dev/packages/shared-chunks/{setup-registry-DGdDOxrk.js → setup-registry-CxXWLs26.js} +6 -6
- package/dist/prod/packages/@ember/-internals/glimmer/index.js +7 -7
- package/dist/prod/packages/@ember/application/index.js +5 -5
- package/dist/prod/packages/@ember/application/instance.js +4 -4
- package/dist/prod/packages/@ember/component/helper.js +4 -4
- package/dist/prod/packages/@ember/component/index.js +4 -4
- package/dist/prod/packages/@ember/component/template-only.js +2 -2
- package/dist/prod/packages/@ember/engine/index.js +5 -5
- package/dist/prod/packages/@ember/helper/index.js +24 -6
- package/dist/prod/packages/@ember/modifier/index.js +4 -4
- package/dist/prod/packages/@ember/modifier/on.js +2 -2
- package/dist/prod/packages/@ember/renderer/index.js +4 -4
- package/dist/prod/packages/@ember/routing/index.js +4 -4
- package/dist/prod/packages/@ember/template/index.js +4 -4
- package/dist/prod/packages/@ember/template-compiler/lib/compile-options.js +45 -6
- package/dist/prod/packages/@ember/template-compiler/lib/plugins/auto-import-builtins.js +57 -0
- package/dist/prod/packages/@ember/template-compiler/lib/plugins/index.js +3 -1
- package/dist/prod/packages/@ember/template-compiler/lib/template.js +29 -13
- package/dist/prod/packages/@ember/template-factory/index.js +1 -1
- package/dist/prod/packages/@glimmer/node/index.js +4 -4
- package/dist/prod/packages/@glimmer/opcode-compiler/index.js +2 -2
- package/dist/prod/packages/@glimmer/program/index.js +1 -1
- package/dist/prod/packages/@glimmer/runtime/index.js +5 -5
- package/dist/prod/packages/ember/version.js +1 -1
- package/dist/prod/packages/ember-template-compiler/index.js +2 -2
- package/dist/prod/packages/shared-chunks/{compiler-Ddfo5StE.js → compiler-Rwrmj1ki.js} +0 -3
- package/dist/prod/packages/shared-chunks/{constants-b-2IVErl.js → constants-CB3pk7dH.js} +1 -1
- package/dist/prod/packages/shared-chunks/{element-builder-CiLTrXD6.js → element-builder-DbktcGKV.js} +1 -1
- package/dist/prod/packages/shared-chunks/{index-DZLHQAlb.js → index-BVy-auLZ.js} +110 -21
- package/dist/prod/packages/shared-chunks/{index-CSVCFS_p.js → index-nW__r2nX.js} +2 -2
- package/dist/prod/packages/shared-chunks/{invoke-DxL00a1D.js → invoke-BuwCkcVB.js} +1 -1
- package/dist/prod/packages/shared-chunks/{on-CrTl7JQU.js → on-ByzWKBWe.js} +2 -18
- package/dist/prod/packages/shared-chunks/{program-context-C-JdYXRA.js → program-context-BdUXf-jj.js} +1 -1
- package/dist/prod/packages/shared-chunks/{rehydrate-builder-CSn1aIO1.js → rehydrate-builder-M_dh82nR.js} +2 -2
- package/dist/prod/packages/shared-chunks/{render-C1ZnScKH.js → render-DJ-BzvgU.js} +3 -3
- package/dist/prod/packages/shared-chunks/{serialize-builder-CVQ3q8rJ.js → serialize-builder-BpVMgrCr.js} +3 -3
- package/dist/prod/packages/shared-chunks/{setup-registry-CMNYh2jY.js → setup-registry-KYxkFexK.js} +6 -6
- package/docs/data.json +154 -51
- package/package.json +7 -6
- package/types/stable/@ember/-internals/glimmer/index.d.ts +1 -0
- package/types/stable/@ember/-internals/glimmer/lib/component-managers/mount.d.ts +1 -1
- package/types/stable/@ember/-internals/glimmer/lib/component-managers/route-template.d.ts +1 -2
- package/types/stable/@ember/-internals/glimmer/lib/helpers/element.d.ts +29 -0
- package/types/stable/@ember/helper/index.d.ts +20 -0
- package/types/stable/@ember/template-compiler/lib/compile-options.d.ts +8 -0
- package/types/stable/@ember/template-compiler/lib/plugins/auto-import-builtins.d.ts +14 -0
- package/types/stable/@ember/template-compiler/lib/plugins/index.d.ts +3 -1
- package/types/stable/@ember/template-compiler/lib/types.d.ts +22 -3
- package/types/stable/@glimmer/global-context/index.d.ts +0 -3
- package/types/stable/@glimmer/interfaces/lib/compile/wire-format/api.d.ts +0 -1
- package/types/stable/@glimmer/interfaces/lib/managers/internal/component.d.ts +1 -2
- package/types/stable/@glimmer/interfaces/lib/runtime/debug-render-tree.d.ts +0 -2
- package/types/stable/@glimmer/runtime/lib/debug-render-tree.d.ts +0 -1
- package/types/stable/@glimmer/syntax/lib/parser/tokenizer-event-handlers.d.ts +0 -7
- package/types/stable/ember-template-compiler/lib/plugins/auto-import-builtins.d.ts +5 -0
- package/types/stable/index.d.ts +3 -0
|
@@ -10,7 +10,7 @@ import './reference-C3TKDRnP.js';
|
|
|
10
10
|
import { c as capabilityFlagsFrom, m as managerHasCapability } from './capabilities-O_xc7Yqk.js';
|
|
11
11
|
import { g as getComponentTemplate } from './template-kM-7TTcc.js';
|
|
12
12
|
import { I as InternalComponentCapabilities } from './flags-B9qxc-pB.js';
|
|
13
|
-
import { t as templateFactory } from './index-
|
|
13
|
+
import { t as templateFactory } from './index-CtPSmMCE.js';
|
|
14
14
|
import { SexpOpcodes as opcodes } from '../@glimmer/wire-format/index.js';
|
|
15
15
|
|
|
16
16
|
function unwrapHandle(handle) {
|
|
@@ -14,7 +14,7 @@ import { createIteratorRef } from '../@glimmer/reference/index.js';
|
|
|
14
14
|
import { s as setLocalDebugType } from './debug-brand-B1TWjOCH.js';
|
|
15
15
|
import { b as EMPTY_STRING_ARRAY, e as enumerate, c as emptyArray } from './array-utils-CZQxrdD3.js';
|
|
16
16
|
import { a as assert } from './assert-CUCJBR2C.js';
|
|
17
|
-
import { a as unwrapTemplate } from './constants-
|
|
17
|
+
import { a as unwrapTemplate } from './constants-DKn6zqFX.js';
|
|
18
18
|
import { I as InternalComponentCapabilities } from './flags-B9qxc-pB.js';
|
|
19
19
|
import { a as castToBrowser } from './simple-cast-DCvJLSin.js';
|
|
20
20
|
|
|
@@ -423,7 +423,6 @@ class DebugRenderTreeImpl {
|
|
|
423
423
|
instance,
|
|
424
424
|
refs
|
|
425
425
|
} = node;
|
|
426
|
-
let template = this.captureTemplate(node);
|
|
427
426
|
let bounds = this.captureBounds(node);
|
|
428
427
|
let children = this.captureRefs(refs);
|
|
429
428
|
return {
|
|
@@ -432,16 +431,10 @@ class DebugRenderTreeImpl {
|
|
|
432
431
|
name,
|
|
433
432
|
args: reifyArgsDebug(args),
|
|
434
433
|
instance,
|
|
435
|
-
template,
|
|
436
434
|
bounds,
|
|
437
435
|
children
|
|
438
436
|
};
|
|
439
437
|
}
|
|
440
|
-
captureTemplate({
|
|
441
|
-
template
|
|
442
|
-
}) {
|
|
443
|
-
return template || null;
|
|
444
|
-
}
|
|
445
438
|
captureBounds(node) {
|
|
446
439
|
let bounds = expect(node.bounds);
|
|
447
440
|
let parentElement = bounds.parentElement();
|
|
@@ -1511,25 +1504,17 @@ APPEND_OPCODES.add(VM_GET_COMPONENT_SELF_OP, (vm, {
|
|
|
1511
1504
|
vm.args.setup(vm.stack, names, [], 0, true);
|
|
1512
1505
|
args = vm.args.capture();
|
|
1513
1506
|
}
|
|
1514
|
-
let moduleName;
|
|
1515
1507
|
let compilable = definition.compilable;
|
|
1516
1508
|
if (compilable === null) {
|
|
1517
1509
|
assert(managerHasCapability(manager, instance.capabilities, InternalComponentCapabilities.dynamicLayout));
|
|
1518
1510
|
let resolver = vm.context.resolver;
|
|
1519
1511
|
compilable = resolver === null ? null : manager.getDynamicLayout(state, resolver);
|
|
1520
|
-
if (compilable !== null) {
|
|
1521
|
-
moduleName = compilable.moduleName;
|
|
1522
|
-
} else {
|
|
1523
|
-
moduleName = '__default__.hbs';
|
|
1524
|
-
}
|
|
1525
|
-
} else {
|
|
1526
|
-
moduleName = compilable.moduleName;
|
|
1527
1512
|
}
|
|
1528
1513
|
|
|
1529
1514
|
// For tearing down the debugRenderTree
|
|
1530
1515
|
vm.associateDestroyable(instance);
|
|
1531
1516
|
if (hasCustomDebugRenderTreeLifecycle(manager)) {
|
|
1532
|
-
let nodes = manager.getDebugCustomRenderTree(instance.definition.state, instance.state, args
|
|
1517
|
+
let nodes = manager.getDebugCustomRenderTree(instance.definition.state, instance.state, args);
|
|
1533
1518
|
nodes.forEach(node => {
|
|
1534
1519
|
let {
|
|
1535
1520
|
bucket
|
|
@@ -1547,7 +1532,6 @@ APPEND_OPCODES.add(VM_GET_COMPONENT_SELF_OP, (vm, {
|
|
|
1547
1532
|
type: 'component',
|
|
1548
1533
|
name,
|
|
1549
1534
|
args,
|
|
1550
|
-
template: moduleName,
|
|
1551
1535
|
instance: valueForRef(selfRef)
|
|
1552
1536
|
});
|
|
1553
1537
|
registerDestructor(instance, () => {
|
package/dist/dev/packages/shared-chunks/{element-builder-BOxP8emt.js → element-builder-Dw_Ic9cD.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as DOMOperations, b as CursorImpl, C as ConcreteBounds, n as dynamicAttribute, j as clear } from './dynamic-
|
|
1
|
+
import { G as DOMOperations, b as CursorImpl, C as ConcreteBounds, n as dynamicAttribute, j as clear } from './dynamic-Cu9Xpdzc.js';
|
|
2
2
|
import { a as assert } from './assert-CUCJBR2C.js';
|
|
3
3
|
import { s as setLocalDebugType } from './debug-brand-B1TWjOCH.js';
|
|
4
4
|
import './debug-to-string-CFb7h0lY.js';
|
|
@@ -2,14 +2,14 @@ import './fragment-Cc5k9Oy4.js';
|
|
|
2
2
|
import './debug-to-string-CFb7h0lY.js';
|
|
3
3
|
import setGlobalContext from '../@glimmer/global-context/index.js';
|
|
4
4
|
import { untrack, consumeTag, tagFor, createCache, getValue, valueForTag, beginUntrackFrame, endUntrackFrame, beginTrackFrame, endTrackFrame, validateTag, createTag, dirtyTag as DIRTY_TAG$1, CONSTANT_TAG, isTracking, debug, CURRENT_TAG } from '../@glimmer/validator/index.js';
|
|
5
|
-
import { v as valueForRef, i as isConstRef, a as createConstRef, l as isUpdatableRef, u as updateRef, c as createComputeRef, d as createPrimitiveRef, b as childRefFor, g as childRefFromParts, U as UNDEFINED_REFERENCE, h as createInvokableRef, j as createReadOnlyRef, k as createUnboundRef, e as createDebugAliasRef } from './reference-C3TKDRnP.js';
|
|
6
|
-
import { t as templateFactory } from './index-
|
|
5
|
+
import { v as valueForRef, i as isConstRef, a as createConstRef, l as isUpdatableRef, u as updateRef, c as createComputeRef, d as createPrimitiveRef, b as childRefFor, g as childRefFromParts, U as UNDEFINED_REFERENCE, h as createInvokableRef, j as createReadOnlyRef, k as createUnboundRef, e as createDebugAliasRef, N as NULL_REFERENCE } from './reference-C3TKDRnP.js';
|
|
6
|
+
import { t as templateFactory } from './index-CtPSmMCE.js';
|
|
7
7
|
import { registerDestructor, associateDestroyableChild, isDestroyed, destroy, isDestroying } from '../@glimmer/destroyable/index.js';
|
|
8
8
|
import { c as capabilityFlagsFrom } from './capabilities-O_xc7Yqk.js';
|
|
9
9
|
import { getFactoryFor, privatize } from '../@ember/-internals/container/index.js';
|
|
10
10
|
import { warn, debugFreeze, deprecate } from '../@ember/debug/index.js';
|
|
11
|
-
import { w as reifyPositional, s as normalizeProperty, E as EMPTY_ARGS, l as createCapturedArgs, e as EMPTY_POSITIONAL, m as curry, q as hash, p as get$1, o as fn, k as concat, i as array, t as on$1, T as TEMPLATE_ONLY_COMPONENT_MANAGER, z as templateOnlyComponent } from './dynamic-
|
|
12
|
-
import './constants-
|
|
11
|
+
import { w as reifyPositional, s as normalizeProperty, E as EMPTY_ARGS, l as createCapturedArgs, e as EMPTY_POSITIONAL, m as curry, q as hash, p as get$1, o as fn, k as concat, i as array, t as on$1, T as TEMPLATE_ONLY_COMPONENT_MANAGER, z as templateOnlyComponent } from './dynamic-Cu9Xpdzc.js';
|
|
12
|
+
import './constants-DKn6zqFX.js';
|
|
13
13
|
import { join, schedule, _backburner, _getCurrentRunLoop } from '../@ember/runloop/index.js';
|
|
14
14
|
import { h as hasDOM } from './index-BGP1rw3B.js';
|
|
15
15
|
import { action } from '../@ember/object/index.js';
|
|
@@ -48,8 +48,8 @@ import { setHelperManager } from '../@glimmer/manager/index.js';
|
|
|
48
48
|
import { d as dict } from './collections-D_nY_0UJ.js';
|
|
49
49
|
import { artifacts } from '../@glimmer/program/index.js';
|
|
50
50
|
import { R as RuntimeOpImpl } from './program-DfV0v8aa.js';
|
|
51
|
-
import { c as runtimeOptions, i as inTransaction, r as renderComponent$1, a as renderMain } from './render-
|
|
52
|
-
import { c as clientBuilder } from './element-builder-
|
|
51
|
+
import { c as runtimeOptions, i as inTransaction, r as renderComponent$1, a as renderMain } from './render-t-LAXUYI.js';
|
|
52
|
+
import { c as clientBuilder } from './element-builder-Dw_Ic9cD.js';
|
|
53
53
|
import { a as RSVP } from './rsvp-CnCSY930.js';
|
|
54
54
|
import EngineInstance from '../@ember/engine/instance.js';
|
|
55
55
|
import { _ as _setProp, s as set } from './property_set-DaoZXGM5.js';
|
|
@@ -60,7 +60,7 @@ import '../route-recognizer/index.js';
|
|
|
60
60
|
import './unrecognized-url-error-B3wUTorp.js';
|
|
61
61
|
import '../@ember/routing/lib/routing-service.js';
|
|
62
62
|
import { generateControllerFactory } from '../@ember/routing/lib/generate_controller.js';
|
|
63
|
-
import { E as EvaluationContextImpl } from './program-context-
|
|
63
|
+
import { E as EvaluationContextImpl } from './program-context-yOi1EExe.js';
|
|
64
64
|
|
|
65
65
|
const RootTemplate = templateFactory(
|
|
66
66
|
/*
|
|
@@ -3777,8 +3777,7 @@ class OutletComponentManager {
|
|
|
3777
3777
|
// "main" used to be the outlet name, keeping it around for compatibility
|
|
3778
3778
|
name: 'main',
|
|
3779
3779
|
args: EMPTY_ARGS,
|
|
3780
|
-
instance: undefined
|
|
3781
|
-
template: undefined
|
|
3780
|
+
instance: undefined
|
|
3782
3781
|
});
|
|
3783
3782
|
if (state.engine) {
|
|
3784
3783
|
nodes.push({
|
|
@@ -3786,8 +3785,7 @@ class OutletComponentManager {
|
|
|
3786
3785
|
type: 'engine',
|
|
3787
3786
|
name: state.engine.mountPoint,
|
|
3788
3787
|
args: EMPTY_ARGS,
|
|
3789
|
-
instance: state.engine.instance
|
|
3790
|
-
template: undefined
|
|
3788
|
+
instance: state.engine.instance
|
|
3791
3789
|
});
|
|
3792
3790
|
}
|
|
3793
3791
|
return nodes;
|
|
@@ -4892,7 +4890,7 @@ class MountManager {
|
|
|
4892
4890
|
}) {
|
|
4893
4891
|
return name;
|
|
4894
4892
|
}
|
|
4895
|
-
getDebugCustomRenderTree(definition, state, args
|
|
4893
|
+
getDebugCustomRenderTree(definition, state, args) {
|
|
4896
4894
|
return [{
|
|
4897
4895
|
bucket: state.engine,
|
|
4898
4896
|
instance: state.engine,
|
|
@@ -4904,8 +4902,7 @@ class MountManager {
|
|
|
4904
4902
|
instance: state.controller,
|
|
4905
4903
|
type: 'route-template',
|
|
4906
4904
|
name: 'application',
|
|
4907
|
-
args
|
|
4908
|
-
template: templateModuleName
|
|
4905
|
+
args
|
|
4909
4906
|
}];
|
|
4910
4907
|
}
|
|
4911
4908
|
getSelf({
|
|
@@ -5061,16 +5058,14 @@ class RouteTemplateManager {
|
|
|
5061
5058
|
return `route-template (${name})`;
|
|
5062
5059
|
}
|
|
5063
5060
|
getDebugCustomRenderTree({
|
|
5064
|
-
name
|
|
5065
|
-
templateName
|
|
5061
|
+
name
|
|
5066
5062
|
}, state, args) {
|
|
5067
5063
|
return [{
|
|
5068
5064
|
bucket: state,
|
|
5069
5065
|
type: 'route-template',
|
|
5070
5066
|
name,
|
|
5071
5067
|
args,
|
|
5072
|
-
instance: state.controller
|
|
5073
|
-
template: templateName
|
|
5068
|
+
instance: state.controller
|
|
5074
5069
|
}];
|
|
5075
5070
|
}
|
|
5076
5071
|
getCapabilities() {
|
|
@@ -5107,8 +5102,7 @@ class RouteTemplate {
|
|
|
5107
5102
|
// message. Is that desirable?
|
|
5108
5103
|
this.resolvedName = name;
|
|
5109
5104
|
this.state = {
|
|
5110
|
-
name
|
|
5111
|
-
templateName: unwrapped.moduleName
|
|
5105
|
+
name
|
|
5112
5106
|
};
|
|
5113
5107
|
this.compilable = unwrapped.asLayout();
|
|
5114
5108
|
}
|
|
@@ -6207,4 +6201,106 @@ const OutletTemplate = templateFactory(
|
|
|
6207
6201
|
"isStrictMode": true
|
|
6208
6202
|
});
|
|
6209
6203
|
|
|
6210
|
-
|
|
6204
|
+
/**
|
|
6205
|
+
@module @ember/helper
|
|
6206
|
+
*/
|
|
6207
|
+
|
|
6208
|
+
|
|
6209
|
+
// ============ Element Component (for string tag names) ============
|
|
6210
|
+
// Renders content wrapped in the specified HTML element, or just renders
|
|
6211
|
+
// content without a wrapper for empty string.
|
|
6212
|
+
|
|
6213
|
+
const ELEMENT_CAPABILITIES = {
|
|
6214
|
+
createInstance: true,
|
|
6215
|
+
wrapped: true
|
|
6216
|
+
};
|
|
6217
|
+
class ElementComponentManager {
|
|
6218
|
+
getCapabilities() {
|
|
6219
|
+
return ELEMENT_CAPABILITIES;
|
|
6220
|
+
}
|
|
6221
|
+
getDebugName(state) {
|
|
6222
|
+
return `(element "${state.tagName}")`;
|
|
6223
|
+
}
|
|
6224
|
+
getSelf() {
|
|
6225
|
+
return NULL_REFERENCE;
|
|
6226
|
+
}
|
|
6227
|
+
getDestroyable() {
|
|
6228
|
+
return null;
|
|
6229
|
+
}
|
|
6230
|
+
didCreateElement() {}
|
|
6231
|
+
create(_owner, state) {
|
|
6232
|
+
// For empty string, return null so getTagName returns null (no wrapper element)
|
|
6233
|
+
return state.tagName || null;
|
|
6234
|
+
}
|
|
6235
|
+
getTagName(state) {
|
|
6236
|
+
return state;
|
|
6237
|
+
}
|
|
6238
|
+
didRenderLayout() {}
|
|
6239
|
+
didUpdateLayout() {}
|
|
6240
|
+
didCreate() {}
|
|
6241
|
+
didUpdate() {}
|
|
6242
|
+
}
|
|
6243
|
+
const ELEMENT_COMPONENT_MANAGER = new ElementComponentManager();
|
|
6244
|
+
class ElementComponentDefinition {
|
|
6245
|
+
constructor(tagName) {
|
|
6246
|
+
this.tagName = tagName;
|
|
6247
|
+
}
|
|
6248
|
+
toString() {
|
|
6249
|
+
return `(element "${this.tagName}")`;
|
|
6250
|
+
}
|
|
6251
|
+
}
|
|
6252
|
+
setInternalComponentManager(ELEMENT_COMPONENT_MANAGER, ElementComponentDefinition.prototype);
|
|
6253
|
+
|
|
6254
|
+
// Cache component definitions per tag name to avoid creating duplicate definitions
|
|
6255
|
+
const ELEMENT_DEFINITIONS = new Map();
|
|
6256
|
+
function getElementDefinition(tagName) {
|
|
6257
|
+
let definition = ELEMENT_DEFINITIONS.get(tagName);
|
|
6258
|
+
if (definition === undefined) {
|
|
6259
|
+
definition = new ElementComponentDefinition(tagName);
|
|
6260
|
+
ELEMENT_DEFINITIONS.set(tagName, definition);
|
|
6261
|
+
}
|
|
6262
|
+
return definition;
|
|
6263
|
+
}
|
|
6264
|
+
|
|
6265
|
+
// ============ Element Helper ============
|
|
6266
|
+
|
|
6267
|
+
/**
|
|
6268
|
+
The `element` helper lets you dynamically set the tag name of an element.
|
|
6269
|
+
|
|
6270
|
+
```handlebars
|
|
6271
|
+
{{#let (element @tagName) as |Tag|}}
|
|
6272
|
+
<Tag class="my-element">Hello</Tag>
|
|
6273
|
+
{{/let}}
|
|
6274
|
+
```
|
|
6275
|
+
|
|
6276
|
+
When `@tagName` is `"h1"`, this renders `<h1 class="my-element">Hello</h1>`.
|
|
6277
|
+
|
|
6278
|
+
When `@tagName` is an empty string `""`, the block content is rendered without
|
|
6279
|
+
a wrapping element.
|
|
6280
|
+
|
|
6281
|
+
Passing `null`, `undefined`, or non-string values will throw an assertion error.
|
|
6282
|
+
|
|
6283
|
+
Changing the tag name will tear down and recreate the element and its contents.
|
|
6284
|
+
|
|
6285
|
+
@method element
|
|
6286
|
+
@for Ember.Templates.helpers
|
|
6287
|
+
@public
|
|
6288
|
+
*/
|
|
6289
|
+
const glimmerElement = internalHelper(({
|
|
6290
|
+
positional,
|
|
6291
|
+
named
|
|
6292
|
+
}) => {
|
|
6293
|
+
return createComputeRef(() => {
|
|
6294
|
+
{
|
|
6295
|
+
(!(positional.length === 1) && assert('The `element` helper takes a single positional argument', positional.length === 1));
|
|
6296
|
+
(!(Object.keys(named).length === 0) && assert('The `element` helper does not take any named arguments', Object.keys(named).length === 0));
|
|
6297
|
+
}
|
|
6298
|
+
let tagName = valueForRef(positional[0]);
|
|
6299
|
+
{
|
|
6300
|
+
(!(typeof tagName === 'string') && assert(`The argument passed to the \`element\` helper must be a string${tagName === null || tagName === undefined || typeof tagName === 'object' ? '' : ` (you passed \`${tagName}\`)`}`, typeof tagName === 'string'));
|
|
6301
|
+
}
|
|
6302
|
+
return getElementDefinition(tagName);
|
|
6303
|
+
}, null, 'element');
|
|
6304
|
+
});
|
|
6305
|
+
|
|
6306
|
+
export { Component as C, Helper as H, Input as I, LinkTo as L, OutletView as O, RootTemplate as R, SafeString as S, Textarea as T, _resetRenderers as _, OutletTemplate as a, Renderer as b, TrustedHTML as c, htmlSafe as d, isTrustedHTML as e, renderComponent as f, glimmerElement as g, helper$1 as h, isHTMLSafe as i, renderSettled as r, trustHTML as t, uniqueId$1 as u };
|
|
@@ -905,13 +905,13 @@ function CompilePositional(op, positional) {
|
|
|
905
905
|
return positional.length;
|
|
906
906
|
}
|
|
907
907
|
function meta(layout) {
|
|
908
|
-
let [, locals, upvars
|
|
908
|
+
let [, locals, upvars] = layout.block;
|
|
909
909
|
let scopeRecord = layout.scope?.() ?? null;
|
|
910
910
|
return {
|
|
911
911
|
symbols: {
|
|
912
912
|
locals,
|
|
913
913
|
upvars,
|
|
914
|
-
lexical: scopeRecord ? Object.keys(scopeRecord) :
|
|
914
|
+
lexical: scopeRecord ? Object.keys(scopeRecord) : undefined
|
|
915
915
|
},
|
|
916
916
|
scopeValues: scopeRecord ? Object.values(scopeRecord) : null,
|
|
917
917
|
isStrictMode: layout.isStrictMode,
|
|
@@ -6,7 +6,7 @@ import { createCache, getValue } from '../@glimmer/validator/index.js';
|
|
|
6
6
|
import './reference-C3TKDRnP.js';
|
|
7
7
|
import './capabilities-O_xc7Yqk.js';
|
|
8
8
|
import { getOwner } from '../@glimmer/owner/index.js';
|
|
9
|
-
import { E as EMPTY_ARGS, d as EMPTY_NAMED, e as EMPTY_POSITIONAL } from './dynamic-
|
|
9
|
+
import { E as EMPTY_ARGS, d as EMPTY_NAMED, e as EMPTY_POSITIONAL } from './dynamic-Cu9Xpdzc.js';
|
|
10
10
|
|
|
11
11
|
let ARGS_CACHES = new WeakMap() ;
|
|
12
12
|
function getArgs(proxy) {
|
package/dist/dev/packages/shared-chunks/{program-context-BRjCC_BA.js → program-context-yOi1EExe.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { V as VM_MAIN_OP, a as VM_CONTENT_TYPE_OP, b as VM_ASSERT_SAME_OP, d as VM_APPEND_HTML_OP, e as VM_APPEND_TEXT_OP, f as VM_RESOLVE_CURRIED_COMPONENT_OP, g as VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP, h as VM_APPEND_SAFE_HTML_OP, i as VM_APPEND_DOCUMENT_FRAGMENT_OP, j as VM_APPEND_NODE_OP, k as VM_INVOKE_STATIC_OP } from './fragment-Cc5k9Oy4.js';
|
|
2
2
|
import { ContentType } from '../@glimmer/vm/index.js';
|
|
3
3
|
import { $ as $s0 } from './registers-ylirb0dq.js';
|
|
4
|
-
import { f as EncoderImpl, g as encodeOp, i as invokePreparedComponent, S as SwitchCases, h as InvokeBareComponent, C as CallDynamic } from './index-
|
|
4
|
+
import { f as EncoderImpl, g as encodeOp, i as invokePreparedComponent, S as SwitchCases, h as InvokeBareComponent, C as CallDynamic } from './index-CtPSmMCE.js';
|
|
5
5
|
|
|
6
6
|
class StdLib {
|
|
7
7
|
constructor(main, trustingGuardedAppend, cautiousGuardedAppend, trustingNonDynamicAppend, cautiousNonDynamicAppend) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { C as ConcreteBounds, A as COMMENT_NODE, b as CursorImpl, B as TEXT_NODE, F as ELEMENT_NODE, N as NS_SVG } from './dynamic-
|
|
1
|
+
import { C as ConcreteBounds, A as COMMENT_NODE, b as CursorImpl, B as TEXT_NODE, F as ELEMENT_NODE, N as NS_SVG } from './dynamic-Cu9Xpdzc.js';
|
|
2
2
|
import './fragment-Cc5k9Oy4.js';
|
|
3
3
|
import { a as assert } from './assert-CUCJBR2C.js';
|
|
4
4
|
import './debug-to-string-CFb7h0lY.js';
|
|
5
5
|
import { e as expect } from './collections-D_nY_0UJ.js';
|
|
6
6
|
import { c as castToSimple, a as castToBrowser } from './simple-cast-DCvJLSin.js';
|
|
7
|
-
import { N as NewTreeBuilder, R as RemoteBlock } from './element-builder-
|
|
7
|
+
import { N as NewTreeBuilder, R as RemoteBlock } from './element-builder-Dw_Ic9cD.js';
|
|
8
8
|
|
|
9
9
|
const SERIALIZATION_FIRST_NODE_STRING = '%+b:0%';
|
|
10
10
|
function isSerializationFirstNode(node) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import './debug-to-string-CFb7h0lY.js';
|
|
2
2
|
import { u as unwrap, e as expect, S as StackImpl } from './collections-D_nY_0UJ.js';
|
|
3
|
-
import { u as unwrapHandle } from './constants-
|
|
3
|
+
import { u as unwrapHandle } from './constants-DKn6zqFX.js';
|
|
4
4
|
import { assertGlobalContextWasSet } from '../@glimmer/global-context/index.js';
|
|
5
5
|
import { track, updateTag as UPDATE_TAG, debug, resetTracking, beginTrackFrame, endTrackFrame } from '../@glimmer/validator/index.js';
|
|
6
6
|
import { U as UNDEFINED_REFERENCE, v as valueForRef, u as updateRef, a as createConstRef, b as childRefFor } from './reference-C3TKDRnP.js';
|
|
7
7
|
import { a as assert } from './assert-CUCJBR2C.js';
|
|
8
8
|
import { P as ProgramImpl } from './program-DfV0v8aa.js';
|
|
9
|
-
import { H as DebugRenderTreeImpl, I as isArgumentError, f as DOMChangesImpl, J as APPEND_OPCODES, K as move, j as clear, V as VMArgumentsImpl, L as externs, M as JumpIfNotModifiedOpcode, O as BeginTrackFrameOpcode, P as EndTrackFrameOpcode } from './dynamic-
|
|
10
|
-
import { D as DOMTreeConstruction, N as NewTreeBuilder } from './element-builder-
|
|
9
|
+
import { H as DebugRenderTreeImpl, I as isArgumentError, f as DOMChangesImpl, J as APPEND_OPCODES, K as move, j as clear, V as VMArgumentsImpl, L as externs, M as JumpIfNotModifiedOpcode, O as BeginTrackFrameOpcode, P as EndTrackFrameOpcode } from './dynamic-Cu9Xpdzc.js';
|
|
10
|
+
import { D as DOMTreeConstruction, N as NewTreeBuilder } from './element-builder-Dw_Ic9cD.js';
|
|
11
11
|
import { a as assign } from './object-utils-AijlD-JH.js';
|
|
12
12
|
import { destroyChildren, associateDestroyableChild, destroy, registerDestructor } from '../@glimmer/destroyable/index.js';
|
|
13
13
|
import { createIteratorItemRef } from '../@glimmer/reference/index.js';
|
|
@@ -3,11 +3,11 @@ import './debug-to-string-CFb7h0lY.js';
|
|
|
3
3
|
import '../@glimmer/global-context/index.js';
|
|
4
4
|
import '../@glimmer/validator/index.js';
|
|
5
5
|
import './reference-C3TKDRnP.js';
|
|
6
|
-
import { C as ConcreteBounds } from './dynamic-
|
|
7
|
-
import './constants-
|
|
6
|
+
import { C as ConcreteBounds } from './dynamic-Cu9Xpdzc.js';
|
|
7
|
+
import './constants-DKn6zqFX.js';
|
|
8
8
|
import '../@glimmer/destroyable/index.js';
|
|
9
9
|
import './capabilities-O_xc7Yqk.js';
|
|
10
|
-
import { N as NewTreeBuilder } from './element-builder-
|
|
10
|
+
import { N as NewTreeBuilder } from './element-builder-Dw_Ic9cD.js';
|
|
11
11
|
|
|
12
12
|
/* eslint-disable @typescript-eslint/no-unsafe-enum-comparison */
|
|
13
13
|
|
package/dist/dev/packages/shared-chunks/{setup-registry-DGdDOxrk.js → setup-registry-CxXWLs26.js}
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { privatize } from '../@ember/-internals/container/index.js';
|
|
2
2
|
import { getOwner } from '../@ember/-internals/owner/index.js';
|
|
3
3
|
import '../@ember/debug/index.js';
|
|
4
|
-
import { O as OutletView, a as OutletTemplate, I as Input, L as LinkTo, T as Textarea, R as RootTemplate, b as Renderer } from './index-
|
|
4
|
+
import { O as OutletView, a as OutletTemplate, I as Input, L as LinkTo, T as Textarea, R as RootTemplate, b as Renderer } from './index-AD_RxZjB.js';
|
|
5
5
|
import './fragment-Cc5k9Oy4.js';
|
|
6
6
|
import './debug-to-string-CFb7h0lY.js';
|
|
7
7
|
import '../@glimmer/global-context/index.js';
|
|
8
8
|
import '../@glimmer/validator/index.js';
|
|
9
9
|
import './reference-C3TKDRnP.js';
|
|
10
|
-
import './dynamic-
|
|
11
|
-
import './constants-
|
|
10
|
+
import './dynamic-Cu9Xpdzc.js';
|
|
11
|
+
import './constants-DKn6zqFX.js';
|
|
12
12
|
import '../@glimmer/destroyable/index.js';
|
|
13
13
|
import './capabilities-O_xc7Yqk.js';
|
|
14
|
-
import { c as clientBuilder } from './element-builder-
|
|
15
|
-
import { r as rehydrationBuilder } from './rehydrate-builder-
|
|
16
|
-
import { s as serializeBuilder } from './serialize-builder-
|
|
14
|
+
import { c as clientBuilder } from './element-builder-Dw_Ic9cD.js';
|
|
15
|
+
import { r as rehydrationBuilder } from './rehydrate-builder-CfBtYUkk.js';
|
|
16
|
+
import { s as serializeBuilder } from './serialize-builder-BUG9CxHC.js';
|
|
17
17
|
import { assert } from '../@ember/debug/lib/assert.js';
|
|
18
18
|
|
|
19
19
|
function setupApplicationRegistry(registry) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import '../../../shared-chunks/fragment-EpVz5Xuc.js';
|
|
2
2
|
import '../../../@glimmer/validator/index.js';
|
|
3
3
|
import '../../../shared-chunks/reference-BNqcwZWH.js';
|
|
4
|
-
export { t as template, a as templateCacheCounters } from '../../../shared-chunks/index-
|
|
4
|
+
export { t as template, a as templateCacheCounters } from '../../../shared-chunks/index-nW__r2nX.js';
|
|
5
5
|
import '../../../shared-chunks/capabilities-DGmQ_mz4.js';
|
|
6
6
|
export { componentCapabilities, modifierCapabilities } from '../../../@glimmer/manager/index.js';
|
|
7
|
-
export { C as Component, H as Helper, I as Input, L as LinkTo, O as OutletView, b as Renderer, R as RootTemplate, S as SafeString, T as Textarea, c as TrustedHTML, _ as _resetRenderers, h as helper, d as htmlSafe, i as isHTMLSafe, e as isTrustedHTML, f as renderComponent, r as renderSettled, t as trustHTML, u as uniqueId } from '../../../shared-chunks/index-
|
|
8
|
-
export { s as setupApplicationRegistry, a as setupEngineRegistry } from '../../../shared-chunks/setup-registry-
|
|
9
|
-
export { D as DOMChanges } from '../../../shared-chunks/on-
|
|
10
|
-
import '../../../shared-chunks/constants-
|
|
11
|
-
export { i as isSerializationFirstNode } from '../../../shared-chunks/rehydrate-builder-
|
|
7
|
+
export { C as Component, H as Helper, I as Input, L as LinkTo, O as OutletView, b as Renderer, R as RootTemplate, S as SafeString, T as Textarea, c as TrustedHTML, _ as _resetRenderers, g as element, h as helper, d as htmlSafe, i as isHTMLSafe, e as isTrustedHTML, f as renderComponent, r as renderSettled, t as trustHTML, u as uniqueId } from '../../../shared-chunks/index-BVy-auLZ.js';
|
|
8
|
+
export { s as setupApplicationRegistry, a as setupEngineRegistry } from '../../../shared-chunks/setup-registry-KYxkFexK.js';
|
|
9
|
+
export { D as DOMChanges } from '../../../shared-chunks/on-ByzWKBWe.js';
|
|
10
|
+
import '../../../shared-chunks/constants-CB3pk7dH.js';
|
|
11
|
+
export { i as isSerializationFirstNode } from '../../../shared-chunks/rehydrate-builder-M_dh82nR.js';
|
|
12
12
|
export { NodeDOMTreeConstruction } from '../../../@glimmer/node/index.js';
|
|
13
13
|
export { setComponentManager } from '../../component/index.js';
|
|
14
|
-
export { D as DOMTreeConstruction } from '../../../shared-chunks/element-builder-
|
|
14
|
+
export { D as DOMTreeConstruction } from '../../../shared-chunks/element-builder-DbktcGKV.js';
|
|
15
15
|
|
|
16
16
|
// STATE within a module is frowned upon, this exists
|
|
17
17
|
// to support Ember.TEMPLATES but shield ember internals from this legacy
|
|
@@ -39,11 +39,11 @@ import ApplicationInstance from './instance.js';
|
|
|
39
39
|
import Engine, { buildInitializerMethod } from '../engine/index.js';
|
|
40
40
|
import { privatize } from '../-internals/container/index.js';
|
|
41
41
|
import '../../shared-chunks/fragment-EpVz5Xuc.js';
|
|
42
|
-
import '../../shared-chunks/index-
|
|
43
|
-
import '../../shared-chunks/index-
|
|
44
|
-
import { s as setupApplicationRegistry } from '../../shared-chunks/setup-registry-
|
|
45
|
-
import '../../shared-chunks/on-
|
|
46
|
-
import '../../shared-chunks/constants-
|
|
42
|
+
import '../../shared-chunks/index-nW__r2nX.js';
|
|
43
|
+
import '../../shared-chunks/index-BVy-auLZ.js';
|
|
44
|
+
import { s as setupApplicationRegistry } from '../../shared-chunks/setup-registry-KYxkFexK.js';
|
|
45
|
+
import '../../shared-chunks/on-ByzWKBWe.js';
|
|
46
|
+
import '../../shared-chunks/constants-CB3pk7dH.js';
|
|
47
47
|
import RouterService from '../routing/router-service.js';
|
|
48
48
|
|
|
49
49
|
/**
|
|
@@ -4,14 +4,14 @@ import EngineInstance from '../engine/instance.js';
|
|
|
4
4
|
import '../../shared-chunks/fragment-EpVz5Xuc.js';
|
|
5
5
|
import '../../@glimmer/validator/index.js';
|
|
6
6
|
import '../../shared-chunks/reference-BNqcwZWH.js';
|
|
7
|
-
import '../../shared-chunks/index-
|
|
7
|
+
import '../../shared-chunks/index-nW__r2nX.js';
|
|
8
8
|
import '../../shared-chunks/capabilities-DGmQ_mz4.js';
|
|
9
|
-
import { r as renderSettled } from '../../shared-chunks/index-
|
|
9
|
+
import { r as renderSettled } from '../../shared-chunks/index-BVy-auLZ.js';
|
|
10
10
|
import '../-internals/container/index.js';
|
|
11
11
|
import '../../shared-chunks/super-Cm_a_cLQ.js';
|
|
12
12
|
import '../-internals/environment/index.js';
|
|
13
|
-
import '../../shared-chunks/on-
|
|
14
|
-
import '../../shared-chunks/constants-
|
|
13
|
+
import '../../shared-chunks/on-ByzWKBWe.js';
|
|
14
|
+
import '../../shared-chunks/constants-CB3pk7dH.js';
|
|
15
15
|
import '../runloop/index.js';
|
|
16
16
|
import '../routing/router.js';
|
|
17
17
|
import { g as get } from '../../shared-chunks/observers-R1ZklwWy.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import '../../shared-chunks/fragment-EpVz5Xuc.js';
|
|
2
2
|
import '../../@glimmer/validator/index.js';
|
|
3
3
|
import '../../shared-chunks/reference-BNqcwZWH.js';
|
|
4
|
-
import '../../shared-chunks/index-
|
|
4
|
+
import '../../shared-chunks/index-nW__r2nX.js';
|
|
5
5
|
import '../../shared-chunks/capabilities-DGmQ_mz4.js';
|
|
6
|
-
export { H as default, h as helper } from '../../shared-chunks/index-
|
|
6
|
+
export { H as default, h as helper } from '../../shared-chunks/index-BVy-auLZ.js';
|
|
7
7
|
import '../-internals/container/index.js';
|
|
8
8
|
import '../../shared-chunks/super-Cm_a_cLQ.js';
|
|
9
9
|
import '../-internals/environment/index.js';
|
|
10
|
-
import '../../shared-chunks/on-
|
|
11
|
-
import '../../shared-chunks/constants-
|
|
10
|
+
import '../../shared-chunks/on-ByzWKBWe.js';
|
|
11
|
+
import '../../shared-chunks/constants-CB3pk7dH.js';
|
|
12
12
|
import '../runloop/index.js';
|
|
@@ -5,13 +5,13 @@ import { setComponentManager as setComponentManager$1 } from '../../@glimmer/man
|
|
|
5
5
|
export { componentCapabilities as capabilities } from '../../@glimmer/manager/index.js';
|
|
6
6
|
export { g as getComponentTemplate, s as setComponentTemplate } from '../../shared-chunks/template-Dc_cBOoX.js';
|
|
7
7
|
import '../../shared-chunks/fragment-EpVz5Xuc.js';
|
|
8
|
-
import '../../shared-chunks/index-
|
|
9
|
-
export { I as Input, T as Textarea, C as default } from '../../shared-chunks/index-
|
|
8
|
+
import '../../shared-chunks/index-nW__r2nX.js';
|
|
9
|
+
export { I as Input, T as Textarea, C as default } from '../../shared-chunks/index-BVy-auLZ.js';
|
|
10
10
|
import '../-internals/container/index.js';
|
|
11
11
|
import '../../shared-chunks/super-Cm_a_cLQ.js';
|
|
12
12
|
import '../-internals/environment/index.js';
|
|
13
|
-
import '../../shared-chunks/on-
|
|
14
|
-
import '../../shared-chunks/constants-
|
|
13
|
+
import '../../shared-chunks/on-ByzWKBWe.js';
|
|
14
|
+
import '../../shared-chunks/constants-CB3pk7dH.js';
|
|
15
15
|
import '../runloop/index.js';
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../../shared-chunks/fragment-EpVz5Xuc.js';
|
|
2
2
|
import '../../@glimmer/validator/index.js';
|
|
3
3
|
import '../../shared-chunks/reference-BNqcwZWH.js';
|
|
4
|
-
import { w as templateOnlyComponent } from '../../shared-chunks/on-
|
|
5
|
-
import '../../shared-chunks/constants-
|
|
4
|
+
import { w as templateOnlyComponent } from '../../shared-chunks/on-ByzWKBWe.js';
|
|
5
|
+
import '../../shared-chunks/constants-CB3pk7dH.js';
|
|
6
6
|
import '../../shared-chunks/capabilities-DGmQ_mz4.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -22,11 +22,11 @@ import '../-internals/views/lib/views/core_view.js';
|
|
|
22
22
|
import '../-internals/views/lib/mixins/action_support.js';
|
|
23
23
|
import '../-internals/views/lib/views/states.js';
|
|
24
24
|
import '../../shared-chunks/fragment-EpVz5Xuc.js';
|
|
25
|
-
import '../../shared-chunks/index-
|
|
26
|
-
import '../../shared-chunks/index-
|
|
27
|
-
import { a as setupEngineRegistry } from '../../shared-chunks/setup-registry-
|
|
28
|
-
import '../../shared-chunks/on-
|
|
29
|
-
import '../../shared-chunks/constants-
|
|
25
|
+
import '../../shared-chunks/index-nW__r2nX.js';
|
|
26
|
+
import '../../shared-chunks/index-BVy-auLZ.js';
|
|
27
|
+
import { a as setupEngineRegistry } from '../../shared-chunks/setup-registry-KYxkFexK.js';
|
|
28
|
+
import '../../shared-chunks/on-ByzWKBWe.js';
|
|
29
|
+
import '../../shared-chunks/constants-CB3pk7dH.js';
|
|
30
30
|
import '../runloop/index.js';
|
|
31
31
|
import RegistryProxyMixin from '../-internals/runtime/lib/mixins/registry_proxy.js';
|
|
32
32
|
import '../-internals/runtime/lib/mixins/container_proxy.js';
|
|
@@ -4,11 +4,11 @@ import '../../@glimmer/validator/index.js';
|
|
|
4
4
|
import '../../shared-chunks/reference-BNqcwZWH.js';
|
|
5
5
|
import { setHelperManager as setHelperManager$1 } from '../../@glimmer/manager/index.js';
|
|
6
6
|
import '../../shared-chunks/fragment-EpVz5Xuc.js';
|
|
7
|
-
import { h as array$1, j as concat$1, m as fn$1, n as get$1, o as hash$1 } from '../../shared-chunks/on-
|
|
8
|
-
import '../../shared-chunks/constants-
|
|
9
|
-
import { i as invokeHelper$1 } from '../../shared-chunks/invoke-
|
|
10
|
-
import '../../shared-chunks/index-
|
|
11
|
-
import { u as uniqueId$1 } from '../../shared-chunks/index-
|
|
7
|
+
import { h as array$1, j as concat$1, m as fn$1, n as get$1, o as hash$1 } from '../../shared-chunks/on-ByzWKBWe.js';
|
|
8
|
+
import '../../shared-chunks/constants-CB3pk7dH.js';
|
|
9
|
+
import { i as invokeHelper$1 } from '../../shared-chunks/invoke-BuwCkcVB.js';
|
|
10
|
+
import '../../shared-chunks/index-nW__r2nX.js';
|
|
11
|
+
import { g as glimmerElement, u as uniqueId$1 } from '../../shared-chunks/index-BVy-auLZ.js';
|
|
12
12
|
import '../-internals/container/index.js';
|
|
13
13
|
import '../../shared-chunks/super-Cm_a_cLQ.js';
|
|
14
14
|
import '../-internals/environment/index.js';
|
|
@@ -464,6 +464,24 @@ const get = get$1;
|
|
|
464
464
|
* ```
|
|
465
465
|
*/
|
|
466
466
|
const fn = fn$1;
|
|
467
|
+
/**
|
|
468
|
+
* The `element` helper lets you dynamically set the tag name of an element.
|
|
469
|
+
*
|
|
470
|
+
* ```js
|
|
471
|
+
* import { element } from '@ember/helper';
|
|
472
|
+
*
|
|
473
|
+
* <template>
|
|
474
|
+
* {{#let (element @tagName) as |Tag|}}
|
|
475
|
+
* <Tag class="my-element">Hello</Tag>
|
|
476
|
+
* {{/let}}
|
|
477
|
+
* </template>
|
|
478
|
+
* ```
|
|
479
|
+
*
|
|
480
|
+
* When `@tagName` is `"h1"`, this renders `<h1 class="my-element">Hello</h1>`.
|
|
481
|
+
* When `@tagName` is an empty string, the block content is rendered without a
|
|
482
|
+
* wrapping element. When `@tagName` is `null` or `undefined`, nothing is rendered.
|
|
483
|
+
*/
|
|
484
|
+
const element = glimmerElement;
|
|
467
485
|
/**
|
|
468
486
|
* Use the {{uniqueId}} helper to generate a unique ID string suitable for use as
|
|
469
487
|
* an ID attribute in the DOM.
|
|
@@ -486,4 +504,4 @@ const uniqueId = uniqueId$1;
|
|
|
486
504
|
|
|
487
505
|
/* eslint-enable @typescript-eslint/no-empty-object-type */
|
|
488
506
|
|
|
489
|
-
export { array, capabilities, concat, fn, get, hash, invokeHelper, setHelperManager, uniqueId };
|
|
507
|
+
export { array, capabilities, concat, element, fn, get, hash, invokeHelper, setHelperManager, uniqueId };
|
|
@@ -5,13 +5,13 @@ import { setModifierManager as setModifierManager$1 } from '../../@glimmer/manag
|
|
|
5
5
|
export { modifierCapabilities as capabilities } from '../../@glimmer/manager/index.js';
|
|
6
6
|
export { on } from './on.js';
|
|
7
7
|
import '../../shared-chunks/fragment-EpVz5Xuc.js';
|
|
8
|
-
import '../../shared-chunks/index-
|
|
9
|
-
import '../../shared-chunks/index-
|
|
8
|
+
import '../../shared-chunks/index-nW__r2nX.js';
|
|
9
|
+
import '../../shared-chunks/index-BVy-auLZ.js';
|
|
10
10
|
import '../-internals/container/index.js';
|
|
11
11
|
import '../../shared-chunks/super-Cm_a_cLQ.js';
|
|
12
12
|
import '../-internals/environment/index.js';
|
|
13
|
-
import '../../shared-chunks/on-
|
|
14
|
-
import '../../shared-chunks/constants-
|
|
13
|
+
import '../../shared-chunks/on-ByzWKBWe.js';
|
|
14
|
+
import '../../shared-chunks/constants-CB3pk7dH.js';
|
|
15
15
|
import '../runloop/index.js';
|
|
16
16
|
|
|
17
17
|
// NOTE: this uses assignment to *require* that the `glimmerSetModifierManager`
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../../shared-chunks/fragment-EpVz5Xuc.js';
|
|
2
2
|
import '../../@glimmer/validator/index.js';
|
|
3
3
|
import '../../shared-chunks/reference-BNqcwZWH.js';
|
|
4
|
-
import { q as on$1 } from '../../shared-chunks/on-
|
|
5
|
-
import '../../shared-chunks/constants-
|
|
4
|
+
import { q as on$1 } from '../../shared-chunks/on-ByzWKBWe.js';
|
|
5
|
+
import '../../shared-chunks/constants-CB3pk7dH.js';
|
|
6
6
|
import '../../shared-chunks/capabilities-DGmQ_mz4.js';
|
|
7
7
|
|
|
8
8
|
// In normal TypeScript, this modifier is essentially an opaque token that just
|