ripple 0.3.9 → 0.3.10
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/CHANGELOG.md +12 -0
- package/package.json +2 -2
- package/src/compiler/phases/1-parse/index.js +25 -15
- package/src/compiler/phases/2-analyze/index.js +35 -88
- package/src/compiler/phases/2-analyze/prune.js +13 -5
- package/src/compiler/phases/3-transform/client/index.js +188 -56
- package/src/compiler/phases/3-transform/server/index.js +62 -40
- package/src/compiler/types/index.d.ts +9 -1
- package/src/compiler/types/parse.d.ts +2 -0
- package/src/compiler/utils.js +101 -1
- package/src/runtime/element.js +39 -0
- package/src/runtime/internal/client/composite.js +10 -6
- package/src/runtime/internal/client/expression.js +218 -0
- package/src/runtime/internal/client/index.js +4 -0
- package/src/runtime/internal/client/portal.js +12 -6
- package/src/runtime/internal/server/index.js +26 -1
- package/tests/client/basic/basic.components.test.ripple +85 -87
- package/tests/client/basic/basic.errors.test.ripple +4 -8
- package/tests/client/basic/basic.rendering.test.ripple +23 -8
- package/tests/client/capture-error.js +12 -0
- package/tests/client/compiler/compiler.basic.test.ripple +76 -6
- package/tests/client/composite/composite.props.test.ripple +1 -3
- package/tests/client/composite/composite.render.test.ripple +45 -13
- package/tests/client/css/global-additional-cases.test.ripple +3 -3
- package/tests/client/svg.test.ripple +4 -4
- package/tests/hydration/basic.test.js +23 -0
- package/tests/hydration/compiled/client/basic.js +118 -66
- package/tests/hydration/compiled/client/composite.js +90 -37
- package/tests/hydration/compiled/client/events.js +18 -18
- package/tests/hydration/compiled/client/for.js +62 -62
- package/tests/hydration/compiled/client/head.js +10 -10
- package/tests/hydration/compiled/client/hmr.js +13 -10
- package/tests/hydration/compiled/client/html.js +274 -236
- package/tests/hydration/compiled/client/if-children.js +41 -35
- package/tests/hydration/compiled/client/if.js +2 -2
- package/tests/hydration/compiled/client/mixed-control-flow.js +12 -12
- package/tests/hydration/compiled/client/nested-control-flow.js +46 -46
- package/tests/hydration/compiled/client/portal.js +8 -8
- package/tests/hydration/compiled/client/reactivity.js +14 -14
- package/tests/hydration/compiled/client/return.js +2 -2
- package/tests/hydration/compiled/client/try.js +4 -4
- package/tests/hydration/compiled/server/basic.js +64 -31
- package/tests/hydration/compiled/server/composite.js +62 -29
- package/tests/hydration/compiled/server/hmr.js +24 -37
- package/tests/hydration/compiled/server/html.js +472 -611
- package/tests/hydration/compiled/server/if-children.js +77 -103
- package/tests/hydration/compiled/server/portal.js +8 -8
- package/tests/hydration/components/basic.ripple +15 -5
- package/tests/hydration/components/composite.ripple +13 -1
- package/tests/hydration/components/hmr.ripple +1 -3
- package/tests/hydration/components/html.ripple +13 -35
- package/tests/hydration/components/if-children.ripple +4 -8
- package/tests/hydration/composite.test.js +11 -0
- package/tests/server/basic.attributes.test.ripple +50 -0
- package/tests/server/basic.components.test.ripple +22 -28
- package/tests/server/basic.test.ripple +12 -0
- package/tests/server/compiler.test.ripple +25 -8
- package/tests/server/composite.props.test.ripple +1 -3
- package/tests/server/style-identifier.test.ripple +2 -4
- package/types/index.d.ts +9 -2
|
@@ -13,19 +13,23 @@ var root_8 = _$_.template(`<!><!>`, 1, 2);
|
|
|
13
13
|
var root_9 = _$_.template(`<div> </div>`, 0);
|
|
14
14
|
var root_10 = _$_.template(`<!>`, 1, 1);
|
|
15
15
|
var root_11 = _$_.template(`<div> </div><span> </span>`, 1, 2);
|
|
16
|
-
var root_12 = _$_.template(`<
|
|
17
|
-
var root_13 = _$_.template(`<!><
|
|
18
|
-
var root_14 = _$_.template(`<h1 class="sr-only">
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
var
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var root_23 = _$_.template(`<
|
|
28
|
-
var root_24 = _$_.template(`<
|
|
16
|
+
var root_12 = _$_.template(`<div class="text-prop"><!></div>`, 0);
|
|
17
|
+
var root_13 = _$_.template(`<!><button class="show-text">Show</button>`, 1, 2);
|
|
18
|
+
var root_14 = _$_.template(`<h1 class="sr-only">heading</h1><p class="subtitle">first paragraph</p><p class="subtitle">second paragraph</p>`, 1, 3);
|
|
19
|
+
var root_15 = _$_.template(`<!><span class="sibling1"> </span><span class="sibling2"> </span>`, 1, 3);
|
|
20
|
+
var root_16 = _$_.template(`<h1 class="sr-only">Ripple</h1><img src="/images/logo.png" alt="Logo" class="logo"><p class="subtitle">the elegant TypeScript UI framework</p>`, 1, 3);
|
|
21
|
+
var root_18 = _$_.template(`<a href="/playground" class="playground-link">Playground</a>`, 0);
|
|
22
|
+
var root_17 = _$_.template(`<div class="social-links"><a href="https://github.com" class="github-link">GitHub</a><a href="https://discord.com" class="discord-link">Discord</a><!></div>`, 0);
|
|
23
|
+
var root_19 = _$_.template(`<main><div class="container"><!></div></main>`, 0);
|
|
24
|
+
var root_20 = _$_.template(`<div class="content"><p>Some content here</p></div>`, 0);
|
|
25
|
+
var root_22 = _$_.template(`<!><!><!><!>`, 1, 4);
|
|
26
|
+
var root_21 = _$_.template(`<!>`, 1, 1);
|
|
27
|
+
var root_23 = _$_.template(`<footer class="last-child">I am the last child</footer>`, 0);
|
|
28
|
+
var root_24 = _$_.template(`<div class="wrapper"><h1>Header</h1><p>Some content</p><!></div>`, 0);
|
|
29
|
+
var root_25 = _$_.template(`<div class="inner"><span>Inner text</span><!></div>`, 0);
|
|
30
|
+
var root_26 = _$_.template(`<section class="outer"><h2>Section title</h2><!></section>`, 0);
|
|
31
|
+
|
|
32
|
+
import { track } from 'ripple';
|
|
29
33
|
|
|
30
34
|
export function StaticText(__anchor, _, __block) {
|
|
31
35
|
_$_.push_component();
|
|
@@ -129,13 +133,13 @@ export function Greeting(__anchor, props, __block) {
|
|
|
129
133
|
var div_6 = root_9();
|
|
130
134
|
|
|
131
135
|
{
|
|
132
|
-
var
|
|
136
|
+
var expression = _$_.child(div_6, true);
|
|
133
137
|
|
|
134
138
|
_$_.pop(div_6);
|
|
135
139
|
}
|
|
136
140
|
|
|
137
141
|
_$_.render(() => {
|
|
138
|
-
_$_.set_text(
|
|
142
|
+
_$_.set_text(expression, 'Hello ' + _$_.with_scope(__block, () => String(props.name)));
|
|
139
143
|
});
|
|
140
144
|
|
|
141
145
|
_$_.append(__anchor, div_6);
|
|
@@ -157,21 +161,21 @@ export function ExpressionContent(__anchor, _, __block) {
|
|
|
157
161
|
_$_.push_component();
|
|
158
162
|
|
|
159
163
|
const value = 42;
|
|
160
|
-
const
|
|
164
|
+
const label = 'computed';
|
|
161
165
|
var fragment_4 = root_11();
|
|
162
166
|
var div_7 = _$_.first_child_frag(fragment_4);
|
|
163
167
|
|
|
164
168
|
{
|
|
165
|
-
var
|
|
169
|
+
var expression_1 = _$_.child(div_7, true);
|
|
166
170
|
|
|
167
|
-
|
|
171
|
+
expression_1.nodeValue = value;
|
|
168
172
|
_$_.pop(div_7);
|
|
169
173
|
}
|
|
170
174
|
|
|
171
175
|
var span_2 = _$_.sibling(div_7);
|
|
172
176
|
|
|
173
177
|
{
|
|
174
|
-
var
|
|
178
|
+
var expression_2 = _$_.child(span_2, true);
|
|
175
179
|
|
|
176
180
|
_$_.pop(span_2);
|
|
177
181
|
}
|
|
@@ -179,20 +183,63 @@ export function ExpressionContent(__anchor, _, __block) {
|
|
|
179
183
|
_$_.next();
|
|
180
184
|
|
|
181
185
|
_$_.render(() => {
|
|
182
|
-
_$_.set_text(
|
|
186
|
+
_$_.set_text(expression_2, _$_.with_scope(__block, () => label.toUpperCase()));
|
|
183
187
|
});
|
|
184
188
|
|
|
185
189
|
_$_.append(__anchor, fragment_4, true);
|
|
186
190
|
_$_.pop_component();
|
|
187
191
|
}
|
|
188
192
|
|
|
193
|
+
function TextProp(__anchor, __props, __block) {
|
|
194
|
+
_$_.push_component();
|
|
195
|
+
|
|
196
|
+
var div_8 = root_12();
|
|
197
|
+
|
|
198
|
+
{
|
|
199
|
+
var expression_3 = _$_.child(div_8);
|
|
200
|
+
|
|
201
|
+
_$_.pop(div_8);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
_$_.render(() => {
|
|
205
|
+
_$_.expression(expression_3, () => __props.children);
|
|
206
|
+
});
|
|
207
|
+
|
|
208
|
+
_$_.append(__anchor, div_8);
|
|
209
|
+
_$_.pop_component();
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export function TextPropWithToggle(__anchor, _, __block) {
|
|
213
|
+
_$_.push_component();
|
|
214
|
+
|
|
215
|
+
let lazy = _$_.track(false, void 0, void 0, __block);
|
|
216
|
+
var fragment_5 = root_13();
|
|
217
|
+
var node_4 = _$_.first_child_frag(fragment_5);
|
|
218
|
+
|
|
219
|
+
TextProp(
|
|
220
|
+
node_4,
|
|
221
|
+
{
|
|
222
|
+
get children() {
|
|
223
|
+
return _$_.normalize_children(_$_.get(lazy) ? 'hello' : '');
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
_$_.active_block
|
|
227
|
+
);
|
|
228
|
+
|
|
229
|
+
var button_1 = _$_.sibling(node_4);
|
|
230
|
+
|
|
231
|
+
button_1.__click = () => _$_.set(lazy, true);
|
|
232
|
+
_$_.append(__anchor, fragment_5);
|
|
233
|
+
_$_.pop_component();
|
|
234
|
+
}
|
|
235
|
+
|
|
189
236
|
function StaticHeader(__anchor, _, __block) {
|
|
190
237
|
_$_.push_component();
|
|
191
238
|
|
|
192
|
-
var
|
|
239
|
+
var fragment_6 = root_14();
|
|
193
240
|
|
|
194
241
|
_$_.next(2);
|
|
195
|
-
_$_.append(__anchor,
|
|
242
|
+
_$_.append(__anchor, fragment_6, true);
|
|
196
243
|
_$_.pop_component();
|
|
197
244
|
}
|
|
198
245
|
|
|
@@ -200,89 +247,92 @@ export function StaticChildWithSiblings(__anchor, _, __block) {
|
|
|
200
247
|
_$_.push_component();
|
|
201
248
|
|
|
202
249
|
const foo = 'bar';
|
|
203
|
-
var
|
|
204
|
-
var
|
|
250
|
+
var fragment_7 = root_15();
|
|
251
|
+
var node_5 = _$_.first_child_frag(fragment_7);
|
|
205
252
|
|
|
206
|
-
StaticHeader(
|
|
253
|
+
StaticHeader(node_5, {}, _$_.active_block);
|
|
207
254
|
|
|
208
|
-
var span_3 = _$_.sibling(
|
|
255
|
+
var span_3 = _$_.sibling(node_5);
|
|
209
256
|
|
|
210
257
|
{
|
|
211
|
-
var
|
|
258
|
+
var expression_4 = _$_.child(span_3, true);
|
|
212
259
|
|
|
213
|
-
|
|
260
|
+
expression_4.nodeValue = foo;
|
|
214
261
|
_$_.pop(span_3);
|
|
215
262
|
}
|
|
216
263
|
|
|
217
264
|
var span_4 = _$_.sibling(span_3);
|
|
218
265
|
|
|
219
266
|
{
|
|
220
|
-
var
|
|
267
|
+
var expression_5 = _$_.child(span_4, true);
|
|
221
268
|
|
|
222
|
-
|
|
269
|
+
expression_5.nodeValue = foo;
|
|
223
270
|
_$_.pop(span_4);
|
|
224
271
|
}
|
|
225
272
|
|
|
226
273
|
_$_.next();
|
|
227
|
-
_$_.append(__anchor,
|
|
274
|
+
_$_.append(__anchor, fragment_7, true);
|
|
228
275
|
_$_.pop_component();
|
|
229
276
|
}
|
|
230
277
|
|
|
231
278
|
function Header(__anchor, _, __block) {
|
|
232
279
|
_$_.push_component();
|
|
233
280
|
|
|
234
|
-
var
|
|
281
|
+
var fragment_8 = root_16();
|
|
235
282
|
|
|
236
283
|
_$_.next(2);
|
|
237
|
-
_$_.append(__anchor,
|
|
284
|
+
_$_.append(__anchor, fragment_8, true);
|
|
238
285
|
_$_.pop_component();
|
|
239
286
|
}
|
|
240
287
|
|
|
241
288
|
function Actions(__anchor, { playgroundVisible = false }, __block) {
|
|
242
289
|
_$_.push_component();
|
|
243
290
|
|
|
244
|
-
var
|
|
291
|
+
var div_9 = root_17();
|
|
245
292
|
|
|
246
293
|
{
|
|
247
|
-
var a_2 = _$_.child(
|
|
294
|
+
var a_2 = _$_.child(div_9);
|
|
248
295
|
var a_1 = _$_.sibling(a_2);
|
|
249
|
-
var
|
|
296
|
+
var node_6 = _$_.sibling(a_1);
|
|
250
297
|
|
|
251
298
|
{
|
|
252
299
|
var consequent = (__anchor) => {
|
|
253
|
-
var a_3 =
|
|
300
|
+
var a_3 = root_18();
|
|
254
301
|
|
|
255
302
|
_$_.append(__anchor, a_3);
|
|
256
303
|
};
|
|
257
304
|
|
|
258
|
-
_$_.if(
|
|
305
|
+
_$_.if(node_6, (__render) => {
|
|
259
306
|
if (playgroundVisible) __render(consequent);
|
|
260
307
|
});
|
|
261
308
|
}
|
|
262
309
|
|
|
263
|
-
_$_.pop(
|
|
310
|
+
_$_.pop(div_9);
|
|
264
311
|
}
|
|
265
312
|
|
|
266
|
-
_$_.append(__anchor,
|
|
313
|
+
_$_.append(__anchor, div_9);
|
|
267
314
|
_$_.pop_component();
|
|
268
315
|
}
|
|
269
316
|
|
|
270
317
|
function Layout(__anchor, { children }, __block) {
|
|
271
318
|
_$_.push_component();
|
|
272
319
|
|
|
273
|
-
var main_1 =
|
|
320
|
+
var main_1 = root_19();
|
|
274
321
|
|
|
275
322
|
{
|
|
276
|
-
var
|
|
323
|
+
var div_10 = _$_.child(main_1);
|
|
277
324
|
|
|
278
325
|
{
|
|
279
|
-
var
|
|
326
|
+
var expression_6 = _$_.child(div_10);
|
|
280
327
|
|
|
281
|
-
|
|
282
|
-
_$_.pop(div_9);
|
|
328
|
+
_$_.pop(div_10);
|
|
283
329
|
}
|
|
284
330
|
}
|
|
285
331
|
|
|
332
|
+
_$_.render(() => {
|
|
333
|
+
_$_.expression(expression_6, () => children);
|
|
334
|
+
});
|
|
335
|
+
|
|
286
336
|
_$_.append(__anchor, main_1);
|
|
287
337
|
_$_.pop_component();
|
|
288
338
|
}
|
|
@@ -290,26 +340,26 @@ function Layout(__anchor, { children }, __block) {
|
|
|
290
340
|
function Content(__anchor, _, __block) {
|
|
291
341
|
_$_.push_component();
|
|
292
342
|
|
|
293
|
-
var
|
|
343
|
+
var div_11 = root_20();
|
|
294
344
|
|
|
295
|
-
_$_.append(__anchor,
|
|
345
|
+
_$_.append(__anchor, div_11);
|
|
296
346
|
_$_.pop_component();
|
|
297
347
|
}
|
|
298
348
|
|
|
299
349
|
export function WebsiteIndex(__anchor, _, __block) {
|
|
300
350
|
_$_.push_component();
|
|
301
351
|
|
|
302
|
-
var
|
|
303
|
-
var node_7 = _$_.first_child_frag(
|
|
352
|
+
var fragment_9 = root_21();
|
|
353
|
+
var node_7 = _$_.first_child_frag(fragment_9);
|
|
304
354
|
|
|
305
355
|
Layout(
|
|
306
356
|
node_7,
|
|
307
357
|
{
|
|
308
|
-
children(__anchor, _, __block) {
|
|
358
|
+
children: _$_.ripple_element(function render_children(__anchor, _, __block) {
|
|
309
359
|
_$_.push_component();
|
|
310
360
|
|
|
311
|
-
var
|
|
312
|
-
var node_8 = _$_.first_child_frag(
|
|
361
|
+
var fragment_10 = root_22();
|
|
362
|
+
var node_8 = _$_.first_child_frag(fragment_10);
|
|
313
363
|
|
|
314
364
|
Header(node_8, {}, _$_.active_block);
|
|
315
365
|
|
|
@@ -324,21 +374,21 @@ export function WebsiteIndex(__anchor, _, __block) {
|
|
|
324
374
|
var node_11 = _$_.sibling(node_10);
|
|
325
375
|
|
|
326
376
|
Actions(node_11, { playgroundVisible: false }, _$_.active_block);
|
|
327
|
-
_$_.append(__anchor,
|
|
377
|
+
_$_.append(__anchor, fragment_10);
|
|
328
378
|
_$_.pop_component();
|
|
329
|
-
}
|
|
379
|
+
})
|
|
330
380
|
},
|
|
331
381
|
_$_.active_block
|
|
332
382
|
);
|
|
333
383
|
|
|
334
|
-
_$_.append(__anchor,
|
|
384
|
+
_$_.append(__anchor, fragment_9);
|
|
335
385
|
_$_.pop_component();
|
|
336
386
|
}
|
|
337
387
|
|
|
338
388
|
function LastChild(__anchor, _, __block) {
|
|
339
389
|
_$_.push_component();
|
|
340
390
|
|
|
341
|
-
var footer_1 =
|
|
391
|
+
var footer_1 = root_23();
|
|
342
392
|
|
|
343
393
|
_$_.append(__anchor, footer_1);
|
|
344
394
|
_$_.pop_component();
|
|
@@ -347,42 +397,42 @@ function LastChild(__anchor, _, __block) {
|
|
|
347
397
|
export function ComponentAsLastSibling(__anchor, _, __block) {
|
|
348
398
|
_$_.push_component();
|
|
349
399
|
|
|
350
|
-
var
|
|
400
|
+
var div_12 = root_24();
|
|
351
401
|
|
|
352
402
|
{
|
|
353
|
-
var h1_1 = _$_.child(
|
|
403
|
+
var h1_1 = _$_.child(div_12);
|
|
354
404
|
var p_1 = _$_.sibling(h1_1);
|
|
355
405
|
var node_12 = _$_.sibling(p_1);
|
|
356
406
|
|
|
357
407
|
LastChild(node_12, {}, _$_.active_block);
|
|
358
|
-
_$_.pop(
|
|
408
|
+
_$_.pop(div_12);
|
|
359
409
|
}
|
|
360
410
|
|
|
361
|
-
_$_.append(__anchor,
|
|
411
|
+
_$_.append(__anchor, div_12);
|
|
362
412
|
_$_.pop_component();
|
|
363
413
|
}
|
|
364
414
|
|
|
365
415
|
function InnerContent(__anchor, _, __block) {
|
|
366
416
|
_$_.push_component();
|
|
367
417
|
|
|
368
|
-
var
|
|
418
|
+
var div_13 = root_25();
|
|
369
419
|
|
|
370
420
|
{
|
|
371
|
-
var span_5 = _$_.child(
|
|
421
|
+
var span_5 = _$_.child(div_13);
|
|
372
422
|
var node_13 = _$_.sibling(span_5);
|
|
373
423
|
|
|
374
424
|
LastChild(node_13, {}, _$_.active_block);
|
|
375
|
-
_$_.pop(
|
|
425
|
+
_$_.pop(div_13);
|
|
376
426
|
}
|
|
377
427
|
|
|
378
|
-
_$_.append(__anchor,
|
|
428
|
+
_$_.append(__anchor, div_13);
|
|
379
429
|
_$_.pop_component();
|
|
380
430
|
}
|
|
381
431
|
|
|
382
432
|
export function NestedComponentAsLastSibling(__anchor, _, __block) {
|
|
383
433
|
_$_.push_component();
|
|
384
434
|
|
|
385
|
-
var section_1 =
|
|
435
|
+
var section_1 = root_26();
|
|
386
436
|
|
|
387
437
|
{
|
|
388
438
|
var h2_1 = _$_.child(section_1);
|
|
@@ -394,4 +444,6 @@ export function NestedComponentAsLastSibling(__anchor, _, __block) {
|
|
|
394
444
|
|
|
395
445
|
_$_.append(__anchor, section_1);
|
|
396
446
|
_$_.pop_component();
|
|
397
|
-
}
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
_$_.delegate(['click']);
|
|
@@ -2,15 +2,18 @@
|
|
|
2
2
|
import * as _$_ from 'ripple/internal/client';
|
|
3
3
|
|
|
4
4
|
var root = _$_.template(`<div class="layout"><!></div>`, 0);
|
|
5
|
-
var root_1 = _$_.template(`<div class="
|
|
6
|
-
var root_2 = _$_.template(`<
|
|
7
|
-
var root_3 = _$_.template(
|
|
8
|
-
var root_5 = _$_.template(`<!>`, 1, 1);
|
|
5
|
+
var root_1 = _$_.template(`<div class="layout">before<!>after</div>`, 0);
|
|
6
|
+
var root_2 = _$_.template(`<div class="single">single</div>`, 0);
|
|
7
|
+
var root_3 = _$_.template(`<h1>title</h1><p>description</p>`, 1, 2);
|
|
9
8
|
var root_4 = _$_.template(`<!>`, 1, 1);
|
|
10
|
-
var root_7 = _$_.template(`<!><div class="extra">extra</div>`, 1, 2);
|
|
11
9
|
var root_6 = _$_.template(`<!>`, 1, 1);
|
|
10
|
+
var root_5 = _$_.template(`<!>`, 1, 1);
|
|
11
|
+
var root_8 = _$_.template(`<!><div class="extra">extra</div>`, 1, 2);
|
|
12
|
+
var root_7 = _$_.template(`<!>`, 1, 1);
|
|
13
|
+
var root_10 = _$_.template(`<!>`, 1, 1);
|
|
12
14
|
var root_9 = _$_.template(`<!>`, 1, 1);
|
|
13
|
-
var
|
|
15
|
+
var root_12 = _$_.template(`<!>`, 1, 1);
|
|
16
|
+
var root_11 = _$_.template(`<!>`, 1, 1);
|
|
14
17
|
|
|
15
18
|
export function Layout(__anchor, __props, __block) {
|
|
16
19
|
_$_.push_component();
|
|
@@ -18,29 +21,52 @@ export function Layout(__anchor, __props, __block) {
|
|
|
18
21
|
var div_1 = root();
|
|
19
22
|
|
|
20
23
|
{
|
|
21
|
-
var
|
|
24
|
+
var expression = _$_.child(div_1);
|
|
22
25
|
|
|
23
|
-
_$_.composite(() => __props.children, node, {});
|
|
24
26
|
_$_.pop(div_1);
|
|
25
27
|
}
|
|
26
28
|
|
|
29
|
+
_$_.render(() => {
|
|
30
|
+
_$_.expression(expression, () => __props.children);
|
|
31
|
+
});
|
|
32
|
+
|
|
27
33
|
_$_.append(__anchor, div_1);
|
|
28
34
|
_$_.pop_component();
|
|
29
35
|
}
|
|
30
36
|
|
|
31
|
-
export function
|
|
37
|
+
export function TextWrappedLayout(__anchor, __props, __block) {
|
|
32
38
|
_$_.push_component();
|
|
33
39
|
|
|
34
40
|
var div_2 = root_1();
|
|
35
41
|
|
|
42
|
+
{
|
|
43
|
+
var text = _$_.child(div_2);
|
|
44
|
+
var expression_1 = _$_.sibling(text);
|
|
45
|
+
|
|
46
|
+
_$_.pop(div_2);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
_$_.render(() => {
|
|
50
|
+
_$_.expression(expression_1, () => __props.children);
|
|
51
|
+
});
|
|
52
|
+
|
|
36
53
|
_$_.append(__anchor, div_2);
|
|
37
54
|
_$_.pop_component();
|
|
38
55
|
}
|
|
39
56
|
|
|
57
|
+
export function SingleChild(__anchor, _, __block) {
|
|
58
|
+
_$_.push_component();
|
|
59
|
+
|
|
60
|
+
var div_3 = root_2();
|
|
61
|
+
|
|
62
|
+
_$_.append(__anchor, div_3);
|
|
63
|
+
_$_.pop_component();
|
|
64
|
+
}
|
|
65
|
+
|
|
40
66
|
export function MultiRootChild(__anchor, _, __block) {
|
|
41
67
|
_$_.push_component();
|
|
42
68
|
|
|
43
|
-
var fragment =
|
|
69
|
+
var fragment = root_3();
|
|
44
70
|
|
|
45
71
|
_$_.next();
|
|
46
72
|
_$_.append(__anchor, fragment, true);
|
|
@@ -50,10 +76,10 @@ export function MultiRootChild(__anchor, _, __block) {
|
|
|
50
76
|
export function EmptyLayout(__anchor, _, __block) {
|
|
51
77
|
_$_.push_component();
|
|
52
78
|
|
|
53
|
-
var fragment_1 =
|
|
54
|
-
var
|
|
79
|
+
var fragment_1 = root_4();
|
|
80
|
+
var node = _$_.first_child_frag(fragment_1);
|
|
55
81
|
|
|
56
|
-
Layout(
|
|
82
|
+
Layout(node, {}, _$_.active_block);
|
|
57
83
|
_$_.append(__anchor, fragment_1);
|
|
58
84
|
_$_.pop_component();
|
|
59
85
|
}
|
|
@@ -61,22 +87,22 @@ export function EmptyLayout(__anchor, _, __block) {
|
|
|
61
87
|
export function LayoutWithSingleChild(__anchor, _, __block) {
|
|
62
88
|
_$_.push_component();
|
|
63
89
|
|
|
64
|
-
var fragment_2 =
|
|
65
|
-
var
|
|
90
|
+
var fragment_2 = root_5();
|
|
91
|
+
var node_1 = _$_.first_child_frag(fragment_2);
|
|
66
92
|
|
|
67
93
|
Layout(
|
|
68
|
-
|
|
94
|
+
node_1,
|
|
69
95
|
{
|
|
70
|
-
children(__anchor, _, __block) {
|
|
96
|
+
children: _$_.ripple_element(function render_children(__anchor, _, __block) {
|
|
71
97
|
_$_.push_component();
|
|
72
98
|
|
|
73
|
-
var fragment_3 =
|
|
74
|
-
var
|
|
99
|
+
var fragment_3 = root_6();
|
|
100
|
+
var node_2 = _$_.first_child_frag(fragment_3);
|
|
75
101
|
|
|
76
|
-
SingleChild(
|
|
102
|
+
SingleChild(node_2, {}, _$_.active_block);
|
|
77
103
|
_$_.append(__anchor, fragment_3);
|
|
78
104
|
_$_.pop_component();
|
|
79
|
-
}
|
|
105
|
+
})
|
|
80
106
|
},
|
|
81
107
|
_$_.active_block
|
|
82
108
|
);
|
|
@@ -88,22 +114,22 @@ export function LayoutWithSingleChild(__anchor, _, __block) {
|
|
|
88
114
|
export function LayoutWithMultipleChildren(__anchor, _, __block) {
|
|
89
115
|
_$_.push_component();
|
|
90
116
|
|
|
91
|
-
var fragment_4 =
|
|
92
|
-
var
|
|
117
|
+
var fragment_4 = root_7();
|
|
118
|
+
var node_3 = _$_.first_child_frag(fragment_4);
|
|
93
119
|
|
|
94
120
|
Layout(
|
|
95
|
-
|
|
121
|
+
node_3,
|
|
96
122
|
{
|
|
97
|
-
children(__anchor, _, __block) {
|
|
123
|
+
children: _$_.ripple_element(function render_children(__anchor, _, __block) {
|
|
98
124
|
_$_.push_component();
|
|
99
125
|
|
|
100
|
-
var fragment_5 =
|
|
101
|
-
var
|
|
126
|
+
var fragment_5 = root_8();
|
|
127
|
+
var node_4 = _$_.first_child_frag(fragment_5);
|
|
102
128
|
|
|
103
|
-
SingleChild(
|
|
129
|
+
SingleChild(node_4, {}, _$_.active_block);
|
|
104
130
|
_$_.append(__anchor, fragment_5);
|
|
105
131
|
_$_.pop_component();
|
|
106
|
-
}
|
|
132
|
+
})
|
|
107
133
|
},
|
|
108
134
|
_$_.active_block
|
|
109
135
|
);
|
|
@@ -115,26 +141,53 @@ export function LayoutWithMultipleChildren(__anchor, _, __block) {
|
|
|
115
141
|
export function LayoutWithMultiRootChild(__anchor, _, __block) {
|
|
116
142
|
_$_.push_component();
|
|
117
143
|
|
|
118
|
-
var fragment_6 =
|
|
119
|
-
var
|
|
144
|
+
var fragment_6 = root_9();
|
|
145
|
+
var node_5 = _$_.first_child_frag(fragment_6);
|
|
120
146
|
|
|
121
147
|
Layout(
|
|
122
|
-
|
|
148
|
+
node_5,
|
|
123
149
|
{
|
|
124
|
-
children(__anchor, _, __block) {
|
|
150
|
+
children: _$_.ripple_element(function render_children(__anchor, _, __block) {
|
|
125
151
|
_$_.push_component();
|
|
126
152
|
|
|
127
|
-
var fragment_7 =
|
|
128
|
-
var
|
|
153
|
+
var fragment_7 = root_10();
|
|
154
|
+
var node_6 = _$_.first_child_frag(fragment_7);
|
|
129
155
|
|
|
130
|
-
MultiRootChild(
|
|
156
|
+
MultiRootChild(node_6, {}, _$_.active_block);
|
|
131
157
|
_$_.append(__anchor, fragment_7);
|
|
132
158
|
_$_.pop_component();
|
|
133
|
-
}
|
|
159
|
+
})
|
|
134
160
|
},
|
|
135
161
|
_$_.active_block
|
|
136
162
|
);
|
|
137
163
|
|
|
138
164
|
_$_.append(__anchor, fragment_6);
|
|
139
165
|
_$_.pop_component();
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export function LayoutWithTextAroundChildren(__anchor, _, __block) {
|
|
169
|
+
_$_.push_component();
|
|
170
|
+
|
|
171
|
+
var fragment_8 = root_11();
|
|
172
|
+
var node_7 = _$_.first_child_frag(fragment_8);
|
|
173
|
+
|
|
174
|
+
TextWrappedLayout(
|
|
175
|
+
node_7,
|
|
176
|
+
{
|
|
177
|
+
children: _$_.ripple_element(function render_children(__anchor, _, __block) {
|
|
178
|
+
_$_.push_component();
|
|
179
|
+
|
|
180
|
+
var fragment_9 = root_12();
|
|
181
|
+
var node_8 = _$_.first_child_frag(fragment_9);
|
|
182
|
+
|
|
183
|
+
SingleChild(node_8, {}, _$_.active_block);
|
|
184
|
+
_$_.append(__anchor, fragment_9);
|
|
185
|
+
_$_.pop_component();
|
|
186
|
+
})
|
|
187
|
+
},
|
|
188
|
+
_$_.active_block
|
|
189
|
+
);
|
|
190
|
+
|
|
191
|
+
_$_.append(__anchor, fragment_8);
|
|
192
|
+
_$_.pop_component();
|
|
140
193
|
}
|