|
|
|
@@ -28,7 +28,7 @@ exports[`slots can define a default content 2`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const b3 = callSlot(ctx, node, key, 'default', false, {}, defaultContent1);
|
|
|
|
|
const b3 = callSlot(ctx, node, key, 'default', false, {}, defaultContent1.bind(this));
|
|
|
|
|
return block1([], [b3]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -54,8 +54,8 @@ exports[`slots can define and call slots 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
const b4 = comp1({slots: markRaw({'header': {__render: slot1, __ctx: ctx1}, 'footer': {__render: slot2, __ctx: ctx1}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
const b4 = comp1({slots: markRaw({'header': {__render: slot1.bind(this), __ctx: ctx1}, 'footer': {__render: slot2.bind(this), __ctx: ctx1}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
return block1([], [b4]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -89,8 +89,8 @@ exports[`slots can define and call slots with bound params 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
return comp1({slots: markRaw({'abc': {__render: slot1, __ctx: ctx1, getValue: bind(ctx, ctx['getValue'])}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
return comp1({slots: markRaw({'abc': {__render: slot1.bind(this), __ctx: ctx1, getValue: bind(this, ctx['getValue'])}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -129,8 +129,8 @@ exports[`slots can define and call slots with params 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
const b4 = comp1({slots: markRaw({'header': {__render: slot1, __ctx: ctx1, param: ctx['var']}, 'footer': {__render: slot2, __ctx: ctx1, param: '5'}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
const b4 = comp1({slots: markRaw({'header': {__render: slot1.bind(this), __ctx: ctx1, param: ctx['var']}, 'footer': {__render: slot2.bind(this), __ctx: ctx1, param: '5'}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
return block1([], [b4]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -165,7 +165,7 @@ exports[`slots can render node with t-ref and Component in same slot 1`] = `
|
|
|
|
|
let block2 = createBlock(\`<div block-ref=\\"0\\"/>\`);
|
|
|
|
|
|
|
|
|
|
function slot1(ctx, node, key = \\"\\") {
|
|
|
|
|
const refs = ctx.__owl__.refs;
|
|
|
|
|
const refs = this.__owl__.refs;
|
|
|
|
|
const ref1 = (el) => refs[\`div\`] = el;
|
|
|
|
|
const b2 = block2([ref1]);
|
|
|
|
|
const b3 = comp1({}, key + \`__1\`, node, this, null);
|
|
|
|
@@ -173,7 +173,7 @@ exports[`slots can render node with t-ref and Component in same slot 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
return comp2({slots: markRaw({'default': {__render: slot1, __ctx: ctx}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
return comp2({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -226,7 +226,7 @@ exports[`slots can use component in default-content of t-slot 2`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
return callSlot(ctx, node, key, 'default', false, {}, defaultContent1);
|
|
|
|
|
return callSlot(ctx, node, key, 'default', false, {}, defaultContent1.bind(this));
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -266,7 +266,7 @@ exports[`slots can use t-call in default-content of t-slot 2`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
return callSlot(ctx, node, key, 'default', false, {}, defaultContent1);
|
|
|
|
|
return callSlot(ctx, node, key, 'default', false, {}, defaultContent1.bind(this));
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -296,7 +296,7 @@ exports[`slots content is the default slot (variation) 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1, __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -328,7 +328,7 @@ exports[`slots content is the default slot 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const b3 = comp1({slots: markRaw({'default': {__render: slot1, __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
const b3 = comp1({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
return block1([], [b3]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -363,8 +363,8 @@ exports[`slots default content is not rendered if named slot is provided 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
const b3 = comp1({slots: markRaw({'header': {__render: slot1, __ctx: ctx1}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
const b3 = comp1({slots: markRaw({'header': {__render: slot1.bind(this), __ctx: ctx1}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
return block1([], [b3]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -383,7 +383,7 @@ exports[`slots default content is not rendered if named slot is provided 2`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const b3 = callSlot(ctx, node, key, 'header', false, {}, defaultContent1);
|
|
|
|
|
const b3 = callSlot(ctx, node, key, 'header', false, {}, defaultContent1.bind(this));
|
|
|
|
|
return block1([], [b3]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -403,7 +403,7 @@ exports[`slots default content is not rendered if slot is provided 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const b3 = comp1({slots: markRaw({'default': {__render: slot1, __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
const b3 = comp1({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
return block1([], [b3]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -422,7 +422,7 @@ exports[`slots default content is not rendered if slot is provided 2`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const b3 = callSlot(ctx, node, key, 'default', false, {}, defaultContent1);
|
|
|
|
|
const b3 = callSlot(ctx, node, key, 'default', false, {}, defaultContent1.bind(this));
|
|
|
|
|
return block1([], [b3]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -442,8 +442,8 @@ exports[`slots default slot next to named slot, with default content 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
const b3 = comp1({slots: markRaw({'footer': {__render: slot1, __ctx: ctx1}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
const b3 = comp1({slots: markRaw({'footer': {__render: slot1.bind(this), __ctx: ctx1}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
return block1([], [b3]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -466,8 +466,8 @@ exports[`slots default slot next to named slot, with default content 2`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const b3 = callSlot(ctx, node, key, 'default', false, {}, defaultContent1);
|
|
|
|
|
const b5 = callSlot(ctx, node, key, 'footer', false, {}, defaultContent2);
|
|
|
|
|
const b3 = callSlot(ctx, node, key, 'default', false, {}, defaultContent1.bind(this));
|
|
|
|
|
const b5 = callSlot(ctx, node, key, 'footer', false, {}, defaultContent2.bind(this));
|
|
|
|
|
return block1([], [b3, b5]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -485,7 +485,7 @@ exports[`slots default slot with params with - in it 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1, __ctx: ctx, __scope: \\"slotScope\\"}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx, __scope: \\"slotScope\\"}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -520,7 +520,7 @@ exports[`slots default slot with slot scope: shorthand syntax 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1, __ctx: ctx, __scope: \\"slotScope\\"}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx, __scope: \\"slotScope\\"}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -552,7 +552,7 @@ exports[`slots default slot work with text nodes (variation) 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1, __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -583,7 +583,7 @@ exports[`slots default slot work with text nodes 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const b3 = comp1({slots: markRaw({'default': {__render: slot1, __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
const b3 = comp1({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
return block1([], [b3]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -619,8 +619,8 @@ exports[`slots dynamic slot in multiple locations 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
return comp2({location: ctx['state'].location,slots: markRaw({'coffee': {__render: slot1, __ctx: ctx1}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
return comp2({location: ctx['state'].location,slots: markRaw({'coffee': {__render: slot1.bind(this), __ctx: ctx1}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -685,8 +685,8 @@ exports[`slots dynamic t-slot call 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
const b6 = comp1({slots: markRaw({'slot1': {__render: slot1, __ctx: ctx1}, 'slot2': {__render: slot2, __ctx: ctx1}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
const b6 = comp1({slots: markRaw({'slot1': {__render: slot1.bind(this), __ctx: ctx1}, 'slot2': {__render: slot2.bind(this), __ctx: ctx1}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
return block1([], [b6]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -732,8 +732,8 @@ exports[`slots dynamic t-slot call with default 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
const b6 = comp1({slots: markRaw({'slot1': {__render: slot1, __ctx: ctx1}, 'slot2': {__render: slot2, __ctx: ctx1}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
const b6 = comp1({slots: markRaw({'slot1': {__render: slot1.bind(this), __ctx: ctx1}, 'slot2': {__render: slot2.bind(this), __ctx: ctx1}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
return block1([], [b6]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -753,7 +753,7 @@ exports[`slots dynamic t-slot call with default 2`] = `
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
let hdlr1 = [ctx['toggle'], ctx];
|
|
|
|
|
const b3 = callSlot(ctx, node, key + \`__1\`, (ctx['current'].slot), true, {}, defaultContent1);
|
|
|
|
|
const b3 = callSlot(ctx, node, key + \`__1\`, (ctx['current'].slot), true, {}, defaultContent1.bind(this));
|
|
|
|
|
return block1([hdlr1], [b3]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -771,7 +771,7 @@ exports[`slots fun: two calls to the same slot 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1, __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -865,8 +865,8 @@ exports[`slots mix of slots, t-call, t-call with body, and giving own props chil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1, __ctx: ctx1}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx1}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -952,7 +952,7 @@ exports[`slots multiple roots are allowed in a default slot 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const b5 = comp1({slots: markRaw({'default': {__render: slot1, __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
const b5 = comp1({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
return block1([], [b5]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -991,8 +991,8 @@ exports[`slots multiple roots are allowed in a named slot 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
const b5 = comp1({slots: markRaw({'content': {__render: slot1, __ctx: ctx1}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
const b5 = comp1({slots: markRaw({'content': {__render: slot1.bind(this), __ctx: ctx1}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
return block1([], [b5]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -1031,8 +1031,8 @@ exports[`slots multiple slots containing components 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
return comp3({slots: markRaw({'s1': {__render: slot1, __ctx: ctx1}, 's2': {__render: slot2, __ctx: ctx1}})}, key + \`__3\`, node, this, null);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
return comp3({slots: markRaw({'s1': {__render: slot1.bind(this), __ctx: ctx1}, 's2': {__render: slot2.bind(this), __ctx: ctx1}})}, key + \`__3\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -1085,8 +1085,8 @@ exports[`slots named slot inside slot 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function slot2(ctx, node, key = \\"\\") {
|
|
|
|
|
const ctx2 = capture(ctx);
|
|
|
|
|
return comp1({slots: markRaw({'brol': {__render: slot3, __ctx: ctx2}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
const ctx2 = capture(ctx, this);
|
|
|
|
|
return comp1({slots: markRaw({'brol': {__render: slot3.bind(this), __ctx: ctx2}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function slot3(ctx, node, key = \\"\\") {
|
|
|
|
@@ -1095,8 +1095,8 @@ exports[`slots named slot inside slot 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
const b5 = comp2({slots: markRaw({'brol': {__render: slot1, __ctx: ctx1}, 'default': {__render: slot2, __ctx: ctx1}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
const b5 = comp2({slots: markRaw({'brol': {__render: slot1.bind(this), __ctx: ctx1}, 'default': {__render: slot2.bind(this), __ctx: ctx1}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
return block1([], [b5]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -1136,8 +1136,8 @@ exports[`slots named slot inside slot, part 3 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function slot2(ctx, node, key = \\"\\") {
|
|
|
|
|
const ctx2 = capture(ctx);
|
|
|
|
|
return comp1({slots: markRaw({'brol': {__render: slot3, __ctx: ctx2}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
const ctx2 = capture(ctx, this);
|
|
|
|
|
return comp1({slots: markRaw({'brol': {__render: slot3.bind(this), __ctx: ctx2}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function slot3(ctx, node, key = \\"\\") {
|
|
|
|
@@ -1146,8 +1146,8 @@ exports[`slots named slot inside slot, part 3 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
const b5 = comp2({slots: markRaw({'brol': {__render: slot1, __ctx: ctx1}, 'default': {__render: slot2, __ctx: ctx1}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
const b5 = comp2({slots: markRaw({'brol': {__render: slot1.bind(this), __ctx: ctx1}, 'default': {__render: slot2.bind(this), __ctx: ctx1}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
return block1([], [b5]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -1197,7 +1197,7 @@ exports[`slots named slots can define a default content 2`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const b3 = callSlot(ctx, node, key, 'header', false, {}, defaultContent1);
|
|
|
|
|
const b3 = callSlot(ctx, node, key, 'header', false, {}, defaultContent1.bind(this));
|
|
|
|
|
return block1([], [b3]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -1221,8 +1221,8 @@ exports[`slots named slots inside slot, again 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function slot2(ctx, node, key = \\"\\") {
|
|
|
|
|
const ctx2 = capture(ctx);
|
|
|
|
|
return comp1({slots: markRaw({'brol2': {__render: slot3, __ctx: ctx2}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
const ctx2 = capture(ctx, this);
|
|
|
|
|
return comp1({slots: markRaw({'brol2': {__render: slot3.bind(this), __ctx: ctx2}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function slot3(ctx, node, key = \\"\\") {
|
|
|
|
@@ -1231,8 +1231,8 @@ exports[`slots named slots inside slot, again 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
const b5 = comp2({slots: markRaw({'brol1': {__render: slot1, __ctx: ctx1}, 'default': {__render: slot2, __ctx: ctx1}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
const b5 = comp2({slots: markRaw({'brol1': {__render: slot1.bind(this), __ctx: ctx1}, 'default': {__render: slot2.bind(this), __ctx: ctx1}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
return block1([], [b5]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -1255,8 +1255,8 @@ exports[`slots named slots inside slot, again 2`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const b3 = callSlot(ctx, node, key, 'brol1', false, {}, defaultContent1);
|
|
|
|
|
const b5 = callSlot(ctx, node, key, 'brol2', false, {}, defaultContent2);
|
|
|
|
|
const b3 = callSlot(ctx, node, key, 'brol1', false, {}, defaultContent1.bind(this));
|
|
|
|
|
const b5 = callSlot(ctx, node, key, 'brol2', false, {}, defaultContent2.bind(this));
|
|
|
|
|
const b6 = callSlot(ctx, node, key, 'default', false, {});
|
|
|
|
|
return block1([], [b3, b5, b6]);
|
|
|
|
|
}
|
|
|
|
@@ -1275,7 +1275,7 @@ exports[`slots nested slots in same template 1`] = `
|
|
|
|
|
let block1 = createBlock(\`<span id=\\"parent\\"><block-child-0/></span>\`);
|
|
|
|
|
|
|
|
|
|
function slot1(ctx, node, key = \\"\\") {
|
|
|
|
|
return comp2({slots: markRaw({'default': {__render: slot2, __ctx: ctx}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
return comp2({slots: markRaw({'default': {__render: slot2.bind(this), __ctx: ctx}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function slot2(ctx, node, key = \\"\\") {
|
|
|
|
@@ -1283,7 +1283,7 @@ exports[`slots nested slots in same template 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const b4 = comp3({slots: markRaw({'default': {__render: slot1, __ctx: ctx}})}, key + \`__3\`, node, this, null);
|
|
|
|
|
const b4 = comp3({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx}})}, key + \`__3\`, node, this, null);
|
|
|
|
|
return block1([], [b4]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -1345,7 +1345,7 @@ exports[`slots nested slots: evaluation context and parented relationship 1`] =
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
return comp2({slots: markRaw({'default': {__render: slot1, __ctx: ctx}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
return comp2({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -1362,7 +1362,7 @@ exports[`slots nested slots: evaluation context and parented relationship 2`] =
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1, __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -1435,7 +1435,7 @@ exports[`slots simple default slot 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1, __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -1473,7 +1473,7 @@ exports[`slots simple default slot with params 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1, __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -1505,7 +1505,7 @@ exports[`slots simple default slot with params and bound function 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1, __ctx: ctx, __scope: \\"slotScope\\"}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx, __scope: \\"slotScope\\"}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -1517,7 +1517,7 @@ exports[`slots simple default slot with params and bound function 2`] = `
|
|
|
|
|
let { callSlot, bind } = helpers;
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
return callSlot(ctx, node, key, 'default', false, {fn: bind(ctx, ctx['getValue'])});
|
|
|
|
|
return callSlot(ctx, node, key, 'default', false, {fn: bind(this, ctx['getValue'])});
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -1534,7 +1534,7 @@ exports[`slots simple default slot, variation 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1, __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -1569,8 +1569,8 @@ exports[`slots simple dynamic slot with slot scope 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
return comp1({slots: markRaw({'slotName': {__render: slot1, __ctx: ctx1, __scope: \\"slotScope\\"}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
return comp1({slots: markRaw({'slotName': {__render: slot1.bind(this), __ctx: ctx1, __scope: \\"slotScope\\"}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -1599,7 +1599,7 @@ exports[`slots simple named and empty slot -- 2 1`] = `
|
|
|
|
|
const comp1 = app.createComponent(\`Child\`, true, true, false, true);
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
return comp1({slots: markRaw({'myEmptySlot': {myProp: 'myProp text'}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -1618,7 +1618,7 @@ exports[`slots simple named and empty slot -- 2 2`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const b3 = callSlot(ctx, node, key, 'myEmptySlot', false, {}, defaultContent1);
|
|
|
|
|
const b3 = callSlot(ctx, node, key, 'myEmptySlot', false, {}, defaultContent1.bind(this));
|
|
|
|
|
return block1([], [b3]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -1636,8 +1636,8 @@ exports[`slots simple named and empty slot 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
return comp1({slots: markRaw({'myEmptySlot': {}, 'default': {__render: slot1, __ctx: ctx1}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
return comp1({slots: markRaw({'myEmptySlot': {}, 'default': {__render: slot1.bind(this), __ctx: ctx1}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -1676,8 +1676,8 @@ exports[`slots simple slot with slot scope 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
return comp1({slots: markRaw({'slotName': {__render: slot1, __ctx: ctx1, __scope: \\"slotScope\\"}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
return comp1({slots: markRaw({'slotName': {__render: slot1.bind(this), __ctx: ctx1, __scope: \\"slotScope\\"}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -1712,8 +1712,8 @@ exports[`slots slot and (inline) t-call 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
const b3 = comp1({slots: markRaw({'default': {__render: slot1, __ctx: ctx1}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
const b3 = comp1({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx1}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
return block1([], [b3]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -1762,8 +1762,8 @@ exports[`slots slot and t-call 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
const b3 = comp1({slots: markRaw({'default': {__render: slot1, __ctx: ctx1}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
const b3 = comp1({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx1}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
return block1([], [b3]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -1811,7 +1811,7 @@ exports[`slots slot and t-esc 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const b3 = comp1({slots: markRaw({'default': {__render: slot1, __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
const b3 = comp1({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
return block1([], [b3]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -1849,7 +1849,7 @@ exports[`slots slot are properly rendered if inner props are changed 1`] = `
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
let hdlr1 = [ctx['inc'], ctx];
|
|
|
|
|
let txt1 = ctx['state'].val;
|
|
|
|
|
const b3 = comp2({slots: markRaw({'default': {__render: slot1, __ctx: ctx}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
const b3 = comp2({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
return block1([hdlr1, txt1], [b3]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -1897,7 +1897,7 @@ exports[`slots slot content has different key from other content -- dynamic slot
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
return comp2({slots: markRaw({'default': {__render: slot1, __ctx: ctx}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
return comp2({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -1945,7 +1945,7 @@ exports[`slots slot content has different key from other content -- static slot
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
return comp2({slots: markRaw({'default': {__render: slot1, __ctx: ctx}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
return comp2({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -1997,8 +1997,8 @@ exports[`slots slot content is bound to caller (variation) 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1, __ctx: ctx1}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx1}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -2033,7 +2033,7 @@ exports[`slots slot content is bound to caller 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1, __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -2068,7 +2068,7 @@ exports[`slots slot in multiple locations 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
return comp2({location: ctx['state'].location,slots: markRaw({'default': {__render: slot1, __ctx: ctx}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
return comp2({location: ctx['state'].location,slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -2123,7 +2123,7 @@ exports[`slots slot in t-foreach locations 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
return comp2({list: ctx['state'].list,slots: markRaw({'default': {__render: slot1, __ctx: ctx}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
return comp2({list: ctx['state'].list,slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -2180,7 +2180,7 @@ exports[`slots slot preserves properly parented relationship 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const b3 = comp2({slots: markRaw({'default': {__render: slot1, __ctx: ctx}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
const b3 = comp2({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
return block1([], [b3]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -2224,8 +2224,8 @@ exports[`slots slot preserves properly parented relationship, even through t-cal
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
const b3 = comp1({slots: markRaw({'default': {__render: slot1, __ctx: ctx1}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
const b3 = comp1({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx1}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
return block1([], [b3]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -2285,8 +2285,8 @@ exports[`slots slot with slot scope and t-props 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
return comp1({slots: markRaw({'slotName': {__render: slot1, __ctx: ctx1, __scope: \\"info\\"}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
return comp1({slots: markRaw({'slotName': {__render: slot1.bind(this), __ctx: ctx1, __scope: \\"info\\"}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -2315,7 +2315,7 @@ exports[`slots slots and wrapper components 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1, __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -2365,7 +2365,7 @@ exports[`slots slots are properly bound to correct component 2`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
return callSlot(ctx, node, key, 'default', false, {}, defaultContent1);
|
|
|
|
|
return callSlot(ctx, node, key, 'default', false, {}, defaultContent1.bind(this));
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -2387,8 +2387,8 @@ exports[`slots slots are rendered with proper context 1`] = `
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
let txt1 = ctx['state'].val;
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
const b3 = comp1({slots: markRaw({'footer': {__render: slot1, __ctx: ctx1}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
const b3 = comp1({slots: markRaw({'footer': {__render: slot1.bind(this), __ctx: ctx1}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
return block1([txt1], [b3]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -2431,8 +2431,8 @@ exports[`slots slots are rendered with proper context, part 2 1`] = `
|
|
|
|
|
for (let i1 = 0; i1 < l_block2; i1++) {
|
|
|
|
|
ctx[\`user\`] = v_block2[i1];
|
|
|
|
|
const key1 = ctx['user'].id;
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
const b7 = comp1({to: '/user/'+ctx['user'].id,slots: markRaw({'default': {__render: slot1, __ctx: ctx1}})}, key + \`__1__\${key1}\`, node, this, null);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
const b7 = comp1({to: '/user/'+ctx['user'].id,slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx1}})}, key + \`__1__\${key1}\`, node, this, null);
|
|
|
|
|
c_block2[i1] = withKey(block3([], [b7]), key1);
|
|
|
|
|
}
|
|
|
|
|
const b2 = list(c_block2);
|
|
|
|
@@ -2480,8 +2480,8 @@ exports[`slots slots are rendered with proper context, part 3 1`] = `
|
|
|
|
|
ctx[\`user\`] = v_block2[i1];
|
|
|
|
|
const key1 = ctx['user'].id;
|
|
|
|
|
setContextValue(ctx, \\"userdescr\\", 'User '+ctx['user'].name);
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
const b5 = comp1({to: '/user/'+ctx['user'].id,slots: markRaw({'default': {__render: slot1, __ctx: ctx1}})}, key + \`__1__\${key1}\`, node, this, null);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
const b5 = comp1({to: '/user/'+ctx['user'].id,slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx1}})}, key + \`__1__\${key1}\`, node, this, null);
|
|
|
|
|
c_block2[i1] = withKey(block3([], [b5]), key1);
|
|
|
|
|
}
|
|
|
|
|
const b2 = list(c_block2);
|
|
|
|
@@ -2523,8 +2523,8 @@ exports[`slots slots are rendered with proper context, part 4 1`] = `
|
|
|
|
|
ctx = Object.create(ctx);
|
|
|
|
|
ctx[isBoundary] = 1
|
|
|
|
|
setContextValue(ctx, \\"userdescr\\", 'User '+ctx['state'].user.name);
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
const b3 = comp1({to: '/user/'+ctx['state'].user.id,slots: markRaw({'default': {__render: slot1, __ctx: ctx1}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
const b3 = comp1({to: '/user/'+ctx['state'].user.id,slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx1}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
return block1([], [b3]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -2565,8 +2565,8 @@ exports[`slots slots in slots, with vars 1`] = `
|
|
|
|
|
ctx = Object.create(ctx);
|
|
|
|
|
ctx[isBoundary] = 1
|
|
|
|
|
setContextValue(ctx, \\"test\\", ctx['state'].name);
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
const b3 = comp1({slots: markRaw({'default': {__render: slot1, __ctx: ctx1}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
const b3 = comp1({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx1}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
return block1([], [b3]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -2586,7 +2586,7 @@ exports[`slots slots in slots, with vars 2`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const b3 = comp1({slots: markRaw({'default': {__render: slot1, __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
const b3 = comp1({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
return block1([], [b3]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -2627,8 +2627,8 @@ exports[`slots slots in t-foreach and re-rendering 1`] = `
|
|
|
|
|
ctx[\`n\`] = v_block2[i1];
|
|
|
|
|
ctx[\`n_index\`] = i1;
|
|
|
|
|
const key1 = ctx['n_index'];
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
c_block2[i1] = withKey(comp1({slots: markRaw({'default': {__render: slot1, __ctx: ctx1}})}, key + \`__1__\${key1}\`, node, this, null), key1);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
c_block2[i1] = withKey(comp1({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx1}})}, key + \`__1__\${key1}\`, node, this, null), key1);
|
|
|
|
|
}
|
|
|
|
|
const b2 = list(c_block2);
|
|
|
|
|
return block1([], [b2]);
|
|
|
|
@@ -2682,8 +2682,8 @@ exports[`slots slots in t-foreach in t-foreach 1`] = `
|
|
|
|
|
for (let i2 = 0; i2 < l_block6; i2++) {
|
|
|
|
|
ctx[\`node2\`] = v_block6[i2];
|
|
|
|
|
const key2 = ctx['node2'].key;
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
c_block6[i2] = withKey(comp1({slots: markRaw({'default': {__render: slot1, __ctx: ctx1}})}, key + \`__1__\${key1}__\${key2}\`, node, this, null), key2);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
c_block6[i2] = withKey(comp1({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx1}})}, key + \`__1__\${key1}__\${key2}\`, node, this, null), key2);
|
|
|
|
|
}
|
|
|
|
|
ctx = ctx.__proto__;
|
|
|
|
|
const b6 = list(c_block6);
|
|
|
|
@@ -2734,8 +2734,8 @@ exports[`slots slots in t-foreach with t-set and re-rendering 1`] = `
|
|
|
|
|
ctx[\`n_index\`] = i1;
|
|
|
|
|
const key1 = ctx['n_index'];
|
|
|
|
|
setContextValue(ctx, \\"dummy\\", ctx['n_index']);
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
c_block2[i1] = withKey(comp1({slots: markRaw({'default': {__render: slot1, __ctx: ctx1}})}, key + \`__1__\${key1}\`, node, this, null), key1);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
c_block2[i1] = withKey(comp1({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx1}})}, key + \`__1__\${key1}\`, node, this, null), key1);
|
|
|
|
|
}
|
|
|
|
|
const b2 = list(c_block2);
|
|
|
|
|
return block1([], [b2]);
|
|
|
|
@@ -2774,8 +2774,8 @@ exports[`slots t-debug on a t-set-slot (defining a slot) 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
const b3 = comp1({slots: markRaw({'content': {__render: slot1, __ctx: ctx1}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
const b3 = comp1({slots: markRaw({'content': {__render: slot1.bind(this), __ctx: ctx1}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
return block1([], [b3]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -2813,8 +2813,8 @@ exports[`slots t-set t-value in a slot 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
const b3 = comp1({slots: markRaw({'default': {__render: slot1, __ctx: ctx1}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
const b3 = comp1({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx1}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
return block1([], [b3]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -2847,8 +2847,8 @@ exports[`slots t-set-slot=default has priority over rest of the content 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1, __ctx: ctx1}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx1}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -2905,8 +2905,8 @@ exports[`slots t-slot in recursive templates 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1, __ctx: ctx1}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx1}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -2941,7 +2941,7 @@ exports[`slots t-slot nested within another slot 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const b3 = comp2({slots: markRaw({'default': {__render: slot1, __ctx: ctx}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
const b3 = comp2({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
return block1([], [b3]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -2958,7 +2958,7 @@ exports[`slots t-slot nested within another slot 2`] = `
|
|
|
|
|
let block1 = createBlock(\`<span id=\\"c2\\"><block-child-0/></span>\`);
|
|
|
|
|
|
|
|
|
|
function slot1(ctx, node, key = \\"\\") {
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot2, __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot2.bind(this), __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function slot2(ctx, node, key = \\"\\") {
|
|
|
|
@@ -2966,7 +2966,7 @@ exports[`slots t-slot nested within another slot 2`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const b4 = comp2({slots: markRaw({'default': {__render: slot1, __ctx: ctx}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
const b4 = comp2({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
return block1([], [b4]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -3029,7 +3029,7 @@ exports[`slots t-slot scope context 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1, __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -3050,7 +3050,7 @@ exports[`slots t-slot scope context 2`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1, __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
return comp1({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx}})}, key + \`__1\`, node, this, null);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
@@ -3083,8 +3083,8 @@ exports[`slots t-slot within dynamic t-call 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const ctx1 = capture(ctx);
|
|
|
|
|
const b3 = comp1({slots: markRaw({'default': {__render: slot1, __ctx: ctx1}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
const ctx1 = capture(ctx, this);
|
|
|
|
|
const b3 = comp1({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx1}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
return block1([], [b3]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
@@ -3148,7 +3148,7 @@ exports[`slots template can just return a slot 1`] = `
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
const b3 = comp2({slots: markRaw({'default': {__render: slot1, __ctx: ctx}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
const b3 = comp2({slots: markRaw({'default': {__render: slot1.bind(this), __ctx: ctx}})}, key + \`__2\`, node, this, null);
|
|
|
|
|
return block1([], [b3]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|