ripple 0.4.1 → 0.4.3
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 +162 -0
- package/package.json +9 -3
- package/src/constants.js +4 -0
- package/src/jsx-runtime.d.ts +2 -1
- package/src/runtime/array.js +15 -9
- package/src/runtime/index-client.js +25 -7
- package/src/runtime/index-server.js +1 -0
- package/src/runtime/internal/client/attributes.js +313 -0
- package/src/runtime/internal/client/blocks.js +4 -14
- package/src/runtime/internal/client/component.js +2 -5
- package/src/runtime/internal/client/composite.js +14 -6
- package/src/runtime/internal/client/constants.js +12 -6
- package/src/runtime/internal/client/context.js +3 -2
- package/src/runtime/internal/client/css.js +11 -26
- package/src/runtime/internal/client/errors.js +188 -0
- package/src/runtime/internal/client/events.js +79 -34
- package/src/runtime/internal/client/expression.js +21 -116
- package/src/runtime/internal/client/for.js +272 -222
- package/src/runtime/internal/client/head.js +4 -3
- package/src/runtime/internal/client/html.js +5 -3
- package/src/runtime/internal/client/hydrate.js +484 -0
- package/src/runtime/internal/client/hydration-enabled.js +7 -0
- package/src/runtime/internal/client/hydration.js +16 -97
- package/src/runtime/internal/client/if.js +13 -9
- package/src/runtime/internal/client/index.js +16 -8
- package/src/runtime/internal/client/operations.js +12 -9
- package/src/runtime/internal/client/portal.js +3 -2
- package/src/runtime/internal/client/render.js +75 -321
- package/src/runtime/internal/client/root-boundary-enabled.js +7 -0
- package/src/runtime/internal/client/runtime.js +129 -362
- package/src/runtime/internal/client/template-ns.js +47 -0
- package/src/runtime/internal/client/template.js +63 -140
- package/src/runtime/internal/client/track-async.js +356 -0
- package/src/runtime/internal/client/try.js +133 -319
- package/src/runtime/internal/client/types.d.ts +48 -24
- package/src/runtime/internal/server/index.js +38 -33
- package/src/runtime/internal/server/prerender.js +27 -0
- package/src/server/index.js +1 -0
- package/src/utils/class-name.js +28 -0
- package/tests/client/basic/basic.errors.test.tsrx +3 -3
- package/tests/client/compiler/__snapshots__/compiler.typescript.test.tsrx.snap +0 -2
- package/tests/client/compiler/compiler.basic.test.tsrx +4 -4
- package/tests/client/compiler/compiler.tracked-access.test.tsrx +3 -3
- package/tests/client/composite/composite.props.test.tsrx +10 -10
- package/tests/client/derived-release.test.tsrx +3 -3
- package/tests/client/for-item.test.tsrx +443 -0
- package/tests/client/for-selector.test.tsrx +95 -0
- package/tests/hydration/compiled/client/basic.js +97 -123
- package/tests/hydration/compiled/client/composite.js +5 -5
- package/tests/hydration/compiled/client/events.js +84 -79
- package/tests/hydration/compiled/client/for.js +229 -233
- package/tests/hydration/compiled/client/fragment-cursor.js +781 -481
- package/tests/hydration/compiled/client/head.js +23 -26
- package/tests/hydration/compiled/client/hmr.js +4 -4
- package/tests/hydration/compiled/client/html-in-template.js +5 -5
- package/tests/hydration/compiled/client/html.js +174 -208
- package/tests/hydration/compiled/client/if-children.js +71 -70
- package/tests/hydration/compiled/client/if-fragment-controlflow.js +46 -46
- package/tests/hydration/compiled/client/if.js +26 -26
- package/tests/hydration/compiled/client/mixed-control-flow.js +63 -105
- package/tests/hydration/compiled/client/nested-control-flow.js +170 -390
- package/tests/hydration/compiled/client/portal.js +10 -10
- package/tests/hydration/compiled/client/reactivity.js +36 -50
- package/tests/hydration/compiled/client/return.js +2 -2
- package/tests/hydration/compiled/client/streaming.js +34 -40
- package/tests/hydration/compiled/client/switch.js +25 -25
- package/tests/hydration/compiled/client/track-async-serialization.js +41 -41
- package/tests/hydration/compiled/client/try.js +15 -15
- package/tests/hydration/compiled/client/typed-text.js +8 -19
- package/tests/hydration/compiled/server/basic.js +6 -6
- package/tests/hydration/compiled/server/events.js +13 -61
- package/tests/hydration/compiled/server/for.js +23 -31
- package/tests/hydration/compiled/server/fragment-cursor.js +214 -366
- package/tests/hydration/compiled/server/head.js +6 -6
- package/tests/hydration/compiled/server/hmr.js +1 -1
- package/tests/hydration/compiled/server/html.js +1 -1
- package/tests/hydration/compiled/server/if-children.js +9 -9
- package/tests/hydration/compiled/server/if.js +5 -5
- package/tests/hydration/compiled/server/mixed-control-flow.js +4 -4
- package/tests/hydration/compiled/server/portal.js +1 -1
- package/tests/hydration/compiled/server/reactivity.js +9 -9
- package/tests/hydration/compiled/server/streaming.js +9 -9
- package/tests/hydration/compiled/server/switch.js +4 -4
- package/tests/hydration/compiled/server/track-async-serialization.js +16 -16
- package/tests/hydration/compiled/server/try.js +4 -4
- package/tests/hydration/compiled/server/typed-text.js +1 -1
- package/tests/hydration/components/fragment-cursor.tsrx +60 -0
- package/tests/hydration/components/track-async-serialization.tsrx +2 -2
- package/tests/hydration/fragment-cursor.test.js +34 -1
- package/tests/hydration/track-async-serialization.test.js +1 -1
- package/tests/server/basic.components.test.tsrx +3 -3
- package/tests/server/basic.test.tsrx +23 -0
- package/tests/server/track-async-serialization.test.tsrx +6 -6
- package/tests/utils/tracked-types.test.js +3 -3
- package/types/index.d.ts +8 -8
- package/types/server.d.ts +17 -0
|
@@ -1,57 +1,59 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import * as _$_ from 'ripple/internal/client';
|
|
3
3
|
|
|
4
|
-
var root_1 = _$_.template(`<div
|
|
4
|
+
var root_1 = _$_.template(`<div>`);
|
|
5
5
|
|
|
6
6
|
function render(__prev) {
|
|
7
|
-
var __pattern = _$_.get(__prev.
|
|
7
|
+
var __pattern = _$_.get(__prev._a);
|
|
8
8
|
var __a = `A-${__pattern.id}`;
|
|
9
9
|
|
|
10
10
|
if (__prev.a !== __a) {
|
|
11
|
-
_$_.
|
|
11
|
+
_$_.set_text_content(__prev._b, __a, __prev.a);
|
|
12
|
+
__prev.a = __a;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
var __b = `row row-${__pattern.id} kind-a`;
|
|
15
16
|
|
|
16
17
|
if (__prev.b !== __b) {
|
|
17
|
-
_$_.set_class(__prev.
|
|
18
|
+
_$_.set_class(__prev._b, __prev.b = __b);
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
21
|
|
|
21
|
-
var root_2 = _$_.template(`<div>pending a
|
|
22
|
+
var root_2 = _$_.template(`<div>pending a`);
|
|
22
23
|
|
|
23
24
|
function render_1(__prev) {
|
|
24
|
-
var __a = `pending pending-${_$_.get(__prev.
|
|
25
|
+
var __a = `pending pending-${_$_.get(__prev._a).id}`;
|
|
25
26
|
|
|
26
27
|
if (__prev.a !== __a) {
|
|
27
|
-
_$_.set_class(__prev.
|
|
28
|
+
_$_.set_class(__prev._b, __prev.a = __a);
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
|
|
31
|
-
var root_3 = _$_.template(`<div
|
|
32
|
+
var root_3 = _$_.template(`<div>`);
|
|
32
33
|
|
|
33
34
|
function render_2(__prev) {
|
|
34
|
-
var __pattern_1 = _$_.get(__prev.
|
|
35
|
+
var __pattern_1 = _$_.get(__prev._a);
|
|
35
36
|
var __a = `B-${__pattern_1.id}`;
|
|
36
37
|
|
|
37
38
|
if (__prev.a !== __a) {
|
|
38
|
-
_$_.
|
|
39
|
+
_$_.set_text_content(__prev._b, __a, __prev.a);
|
|
40
|
+
__prev.a = __a;
|
|
39
41
|
}
|
|
40
42
|
|
|
41
43
|
var __b = `row row-${__pattern_1.id} kind-b`;
|
|
42
44
|
|
|
43
45
|
if (__prev.b !== __b) {
|
|
44
|
-
_$_.set_class(__prev.
|
|
46
|
+
_$_.set_class(__prev._b, __prev.b = __b);
|
|
45
47
|
}
|
|
46
48
|
}
|
|
47
49
|
|
|
48
|
-
var root_4 = _$_.template(`<div>pending b
|
|
50
|
+
var root_4 = _$_.template(`<div>pending b`);
|
|
49
51
|
|
|
50
52
|
function render_3(__prev) {
|
|
51
|
-
var __a = `pending pending-${_$_.get(__prev.
|
|
53
|
+
var __a = `pending pending-${_$_.get(__prev._a).id}`;
|
|
52
54
|
|
|
53
55
|
if (__prev.a !== __a) {
|
|
54
|
-
_$_.set_class(__prev.
|
|
56
|
+
_$_.set_class(__prev._b, __prev.a = __a);
|
|
55
57
|
}
|
|
56
58
|
}
|
|
57
59
|
|
|
@@ -61,25 +63,14 @@ function switch_case_0(__anchor, pattern) {
|
|
|
61
63
|
(__anchor) => {
|
|
62
64
|
var div = root_1();
|
|
63
65
|
|
|
64
|
-
{
|
|
65
|
-
var expression = _$_.hydrating ? _$_.hydrate_text() : div.firstChild;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
_$_.render(render, {
|
|
69
|
-
a: ' ',
|
|
70
|
-
b: _$_.UNINITIALIZED,
|
|
71
|
-
_pattern: pattern,
|
|
72
|
-
_expression: expression,
|
|
73
|
-
_div: div
|
|
74
|
-
});
|
|
75
|
-
|
|
66
|
+
_$_.render(render, { a: '', b: _$_.UNINITIALIZED, _a: pattern, _b: div });
|
|
76
67
|
_$_.append(__anchor, div);
|
|
77
68
|
},
|
|
78
69
|
null,
|
|
79
70
|
(__anchor) => {
|
|
80
71
|
var div_1 = root_2();
|
|
81
72
|
|
|
82
|
-
_$_.render(render_1, { a: _$_.UNINITIALIZED,
|
|
73
|
+
_$_.render(render_1, { a: _$_.UNINITIALIZED, _a: pattern, _b: div_1 });
|
|
83
74
|
_$_.append(__anchor, div_1);
|
|
84
75
|
},
|
|
85
76
|
true
|
|
@@ -92,25 +83,14 @@ function switch_case_default(__anchor, pattern) {
|
|
|
92
83
|
(__anchor) => {
|
|
93
84
|
var div_2 = root_3();
|
|
94
85
|
|
|
95
|
-
{
|
|
96
|
-
var expression_1 = _$_.hydrating ? _$_.hydrate_text() : div_2.firstChild;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
_$_.render(render_2, {
|
|
100
|
-
a: ' ',
|
|
101
|
-
b: _$_.UNINITIALIZED,
|
|
102
|
-
_pattern: pattern,
|
|
103
|
-
_expression_1: expression_1,
|
|
104
|
-
_div_2: div_2
|
|
105
|
-
});
|
|
106
|
-
|
|
86
|
+
_$_.render(render_2, { a: '', b: _$_.UNINITIALIZED, _a: pattern, _b: div_2 });
|
|
107
87
|
_$_.append(__anchor, div_2);
|
|
108
88
|
},
|
|
109
89
|
null,
|
|
110
90
|
(__anchor) => {
|
|
111
91
|
var div_3 = root_4();
|
|
112
92
|
|
|
113
|
-
_$_.render(render_3, { a: _$_.UNINITIALIZED,
|
|
93
|
+
_$_.render(render_3, { a: _$_.UNINITIALIZED, _a: pattern, _b: div_3 });
|
|
114
94
|
_$_.append(__anchor, div_3);
|
|
115
95
|
},
|
|
116
96
|
true
|
|
@@ -135,7 +115,7 @@ function if_1(pattern) {
|
|
|
135
115
|
if (_$_.get(pattern).enabled) return consequent;
|
|
136
116
|
}
|
|
137
117
|
|
|
138
|
-
var root = _$_.template(`<section class=
|
|
118
|
+
var root = _$_.template(`<section class=mixed-static>`);
|
|
139
119
|
|
|
140
120
|
function MixedControlFlowStatic_render(__anchor, __block) {
|
|
141
121
|
const rows = [
|
|
@@ -154,7 +134,7 @@ function MixedControlFlowStatic_render(__anchor, __block) {
|
|
|
154
134
|
_$_.if(__anchor, if_1, true, pattern);
|
|
155
135
|
},
|
|
156
136
|
4,
|
|
157
|
-
(pattern) =>
|
|
137
|
+
(pattern) => pattern.id
|
|
158
138
|
);
|
|
159
139
|
|
|
160
140
|
_$_.hydrating && _$_.pop(section);
|
|
@@ -165,61 +145,52 @@ function MixedControlFlowStatic_render(__anchor, __block) {
|
|
|
165
145
|
|
|
166
146
|
MixedControlFlowStatic[_$_.$r] = MixedControlFlowStatic_render;
|
|
167
147
|
|
|
168
|
-
var root_8 = _$_.template(`<p
|
|
148
|
+
var root_8 = _$_.template(`<p>`);
|
|
169
149
|
|
|
170
150
|
function render_4(__prev) {
|
|
171
|
-
var __pattern_1_1 = _$_.get(__prev.
|
|
151
|
+
var __pattern_1_1 = _$_.get(__prev._a);
|
|
172
152
|
var __a = `A:${__pattern_1_1.label}`;
|
|
173
153
|
|
|
174
154
|
if (__prev.a !== __a) {
|
|
175
|
-
_$_.
|
|
155
|
+
_$_.set_text_content(__prev._b, __a, __prev.a);
|
|
156
|
+
__prev.a = __a;
|
|
176
157
|
}
|
|
177
158
|
|
|
178
159
|
var __b = `item item-${__pattern_1_1.id}`;
|
|
179
160
|
|
|
180
161
|
if (__prev.b !== __b) {
|
|
181
|
-
_$_.set_class(__prev.
|
|
162
|
+
_$_.set_class(__prev._b, __prev.b = __b);
|
|
182
163
|
}
|
|
183
164
|
}
|
|
184
165
|
|
|
185
|
-
var root_9 = _$_.template(`<p class=
|
|
186
|
-
var root_10 = _$_.template(`<p
|
|
166
|
+
var root_9 = _$_.template(`<p class=pending>pending a`);
|
|
167
|
+
var root_10 = _$_.template(`<p>`);
|
|
187
168
|
|
|
188
169
|
function render_5(__prev) {
|
|
189
|
-
var __pattern_1_2 = _$_.get(__prev.
|
|
170
|
+
var __pattern_1_2 = _$_.get(__prev._a);
|
|
190
171
|
var __a = `B:${__pattern_1_2.label}`;
|
|
191
172
|
|
|
192
173
|
if (__prev.a !== __a) {
|
|
193
|
-
_$_.
|
|
174
|
+
_$_.set_text_content(__prev._b, __a, __prev.a);
|
|
175
|
+
__prev.a = __a;
|
|
194
176
|
}
|
|
195
177
|
|
|
196
178
|
var __b = `item item-${__pattern_1_2.id}`;
|
|
197
179
|
|
|
198
180
|
if (__prev.b !== __b) {
|
|
199
|
-
_$_.set_class(__prev.
|
|
181
|
+
_$_.set_class(__prev._b, __prev.b = __b);
|
|
200
182
|
}
|
|
201
183
|
}
|
|
202
184
|
|
|
203
|
-
var root_11 = _$_.template(`<p class=
|
|
185
|
+
var root_11 = _$_.template(`<p class=pending>pending b`);
|
|
204
186
|
|
|
205
|
-
function switch_case_0_1(__anchor, { mode, pattern_1 }) {
|
|
187
|
+
function switch_case_0_1(__anchor, { a: mode, b: pattern_1 }) {
|
|
206
188
|
_$_.try(
|
|
207
189
|
__anchor,
|
|
208
190
|
(__anchor) => {
|
|
209
191
|
var p = root_8();
|
|
210
192
|
|
|
211
|
-
{
|
|
212
|
-
var expression_2 = _$_.hydrating ? _$_.hydrate_text() : p.firstChild;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
_$_.render(render_4, {
|
|
216
|
-
a: ' ',
|
|
217
|
-
b: _$_.UNINITIALIZED,
|
|
218
|
-
_pattern_1: pattern_1,
|
|
219
|
-
_expression_2: expression_2,
|
|
220
|
-
_p: p
|
|
221
|
-
});
|
|
222
|
-
|
|
193
|
+
_$_.render(render_4, { a: '', b: _$_.UNINITIALIZED, _a: pattern_1, _b: p });
|
|
223
194
|
_$_.append(__anchor, p);
|
|
224
195
|
},
|
|
225
196
|
null,
|
|
@@ -232,24 +203,13 @@ function switch_case_0_1(__anchor, { mode, pattern_1 }) {
|
|
|
232
203
|
);
|
|
233
204
|
}
|
|
234
205
|
|
|
235
|
-
function switch_case_default_1(__anchor, { mode, pattern_1 }) {
|
|
206
|
+
function switch_case_default_1(__anchor, { a: mode, b: pattern_1 }) {
|
|
236
207
|
_$_.try(
|
|
237
208
|
__anchor,
|
|
238
209
|
(__anchor) => {
|
|
239
210
|
var p_2 = root_10();
|
|
240
211
|
|
|
241
|
-
{
|
|
242
|
-
var expression_3 = _$_.hydrating ? _$_.hydrate_text() : p_2.firstChild;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
_$_.render(render_5, {
|
|
246
|
-
a: ' ',
|
|
247
|
-
b: _$_.UNINITIALIZED,
|
|
248
|
-
_pattern_1: pattern_1,
|
|
249
|
-
_expression_3: expression_3,
|
|
250
|
-
_p_2: p_2
|
|
251
|
-
});
|
|
252
|
-
|
|
212
|
+
_$_.render(render_5, { a: '', b: _$_.UNINITIALIZED, _a: pattern_1, _b: p_2 });
|
|
253
213
|
_$_.append(__anchor, p_2);
|
|
254
214
|
},
|
|
255
215
|
null,
|
|
@@ -262,7 +222,7 @@ function switch_case_default_1(__anchor, { mode, pattern_1 }) {
|
|
|
262
222
|
);
|
|
263
223
|
}
|
|
264
224
|
|
|
265
|
-
function switch_2({ mode, pattern_1 }) {
|
|
225
|
+
function switch_2({ a: mode, b: pattern_1 }) {
|
|
266
226
|
switch (mode.value) {
|
|
267
227
|
case 'a':
|
|
268
228
|
return switch_case_0_1;
|
|
@@ -272,9 +232,9 @@ function switch_2({ mode, pattern_1 }) {
|
|
|
272
232
|
}
|
|
273
233
|
}
|
|
274
234
|
|
|
275
|
-
var root_7 = _$_.template(`<div class=
|
|
235
|
+
var root_7 = _$_.template(`<div class=mixed-reactive-list>`);
|
|
276
236
|
|
|
277
|
-
function consequent_1(__anchor, { show, items, mode }) {
|
|
237
|
+
function consequent_1(__anchor, { a: show, b: items, c: mode }) {
|
|
278
238
|
var div_4 = root_7();
|
|
279
239
|
|
|
280
240
|
{
|
|
@@ -282,10 +242,10 @@ function consequent_1(__anchor, { show, items, mode }) {
|
|
|
282
242
|
div_4,
|
|
283
243
|
() => items.value,
|
|
284
244
|
(__anchor, pattern_1) => {
|
|
285
|
-
_$_.switch(__anchor, switch_2, true, { mode, pattern_1 });
|
|
245
|
+
_$_.switch(__anchor, switch_2, true, { a: mode, b: pattern_1 });
|
|
286
246
|
},
|
|
287
247
|
4,
|
|
288
|
-
(pattern_1) =>
|
|
248
|
+
(pattern_1) => pattern_1.id
|
|
289
249
|
);
|
|
290
250
|
|
|
291
251
|
_$_.hydrating && _$_.pop(div_4);
|
|
@@ -294,17 +254,17 @@ function consequent_1(__anchor, { show, items, mode }) {
|
|
|
294
254
|
_$_.append(__anchor, div_4);
|
|
295
255
|
}
|
|
296
256
|
|
|
297
|
-
function if_2({ show, items, mode }) {
|
|
257
|
+
function if_2({ a: show, b: items, c: mode }) {
|
|
298
258
|
if (show.value) return consequent_1;
|
|
299
259
|
}
|
|
300
260
|
|
|
301
|
-
var root_6 = _$_.template(`<button class=
|
|
261
|
+
var root_6 = _$_.template(`<button class=toggle-show>Toggle Show</button><button class=toggle-mode>Toggle Mode</button><button class=add-item>Add Item</button><!>`, 1, 4);
|
|
302
262
|
var root_5 = _$_.template(`<!>`, 1, 1);
|
|
303
263
|
|
|
304
264
|
function MixedControlFlowReactive_render(__anchor, __block) {
|
|
305
|
-
const show = _$_.track(true, __block, '
|
|
306
|
-
const mode = _$_.track('a', __block, '
|
|
307
|
-
const items = _$_.track([{ id: 1, label: 'One' }, { id: 2, label: 'Two' }], __block, '
|
|
265
|
+
const show = _$_.track(true, __block, 'p7xgkm');
|
|
266
|
+
const mode = _$_.track('a', __block, 'pc8xwi');
|
|
267
|
+
const items = _$_.track([{ id: 1, label: 'One' }, { id: 2, label: 'Two' }], __block, 'xgaqxi');
|
|
308
268
|
var fragment = root_5();
|
|
309
269
|
var node_1 = _$_.first_child_frag(fragment);
|
|
310
270
|
|
|
@@ -330,7 +290,7 @@ function MixedControlFlowReactive_render(__anchor, __block) {
|
|
|
330
290
|
|
|
331
291
|
var node = _$_.hydrating ? _$_.hydrate_sibling() : button_2.nextSibling;
|
|
332
292
|
|
|
333
|
-
_$_.if(node, if_2, false, { show, items, mode });
|
|
293
|
+
_$_.if(node, if_2, false, { a: show, b: items, c: mode });
|
|
334
294
|
_$_.append(__anchor, fragment_1);
|
|
335
295
|
}));
|
|
336
296
|
|
|
@@ -339,10 +299,10 @@ function MixedControlFlowReactive_render(__anchor, __block) {
|
|
|
339
299
|
|
|
340
300
|
MixedControlFlowReactive[_$_.$r] = MixedControlFlowReactive_render;
|
|
341
301
|
|
|
342
|
-
var root_14 = _$_.template(`<div
|
|
343
|
-
var root_15 = _$_.template(`<div class=
|
|
302
|
+
var root_14 = _$_.template(`<div>`);
|
|
303
|
+
var root_15 = _$_.template(`<div class=unexpected>unexpected`);
|
|
344
304
|
|
|
345
|
-
function switch_case_0_2(__anchor, { state, row }) {
|
|
305
|
+
function switch_case_0_2(__anchor, { a: state, b: row }) {
|
|
346
306
|
_$_.try(
|
|
347
307
|
__anchor,
|
|
348
308
|
(__anchor) => {
|
|
@@ -352,12 +312,10 @@ function switch_case_0_2(__anchor, { state, row }) {
|
|
|
352
312
|
(__anchor) => {
|
|
353
313
|
var div_6 = root_14();
|
|
354
314
|
|
|
355
|
-
_$_.set_class(div_6, `pending-row pending-row-${row}
|
|
315
|
+
_$_.set_class(div_6, `pending-row pending-row-${row}`);
|
|
356
316
|
|
|
357
317
|
{
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
expression_4.nodeValue = `pending ${row}`;
|
|
318
|
+
div_6.textContent = `pending ${row}`;
|
|
361
319
|
}
|
|
362
320
|
|
|
363
321
|
_$_.append(__anchor, div_6);
|
|
@@ -366,13 +324,13 @@ function switch_case_0_2(__anchor, { state, row }) {
|
|
|
366
324
|
);
|
|
367
325
|
}
|
|
368
326
|
|
|
369
|
-
function switch_case_default_2(__anchor, { state, row }) {
|
|
327
|
+
function switch_case_default_2(__anchor, { a: state, b: row }) {
|
|
370
328
|
var div_7 = root_15();
|
|
371
329
|
|
|
372
330
|
_$_.append(__anchor, div_7);
|
|
373
331
|
}
|
|
374
332
|
|
|
375
|
-
function switch_3({ state, row }) {
|
|
333
|
+
function switch_3({ a: state, b: row }) {
|
|
376
334
|
switch (state) {
|
|
377
335
|
case 'slow':
|
|
378
336
|
return switch_case_0_2;
|
|
@@ -382,15 +340,15 @@ function switch_3({ state, row }) {
|
|
|
382
340
|
}
|
|
383
341
|
}
|
|
384
342
|
|
|
385
|
-
function consequent_2(__anchor, { row, state }) {
|
|
386
|
-
_$_.switch(__anchor, switch_3, true, { state, row });
|
|
343
|
+
function consequent_2(__anchor, { a: row, b: state }) {
|
|
344
|
+
_$_.switch(__anchor, switch_3, true, { a: state, b: row });
|
|
387
345
|
}
|
|
388
346
|
|
|
389
|
-
function if_3({ row, state }) {
|
|
347
|
+
function if_3({ a: row, b: state }) {
|
|
390
348
|
if (row === 1) return consequent_2;
|
|
391
349
|
}
|
|
392
350
|
|
|
393
|
-
var root_13 = _$_.template(`<div class=
|
|
351
|
+
var root_13 = _$_.template(`<div class=before>before</div><!>`, 1, 2);
|
|
394
352
|
var root_12 = _$_.template(`<!>`, 1, 1);
|
|
395
353
|
|
|
396
354
|
function MixedControlFlowAsyncPending_render(__anchor, __block) {
|
|
@@ -408,7 +366,7 @@ function MixedControlFlowAsyncPending_render(__anchor, __block) {
|
|
|
408
366
|
node_2,
|
|
409
367
|
() => rows,
|
|
410
368
|
(__anchor, row) => {
|
|
411
|
-
_$_.if(__anchor, if_3, true, { row, state });
|
|
369
|
+
_$_.if(__anchor, if_3, true, { a: row, b: state });
|
|
412
370
|
},
|
|
413
371
|
0
|
|
414
372
|
);
|
|
@@ -421,10 +379,10 @@ function MixedControlFlowAsyncPending_render(__anchor, __block) {
|
|
|
421
379
|
|
|
422
380
|
MixedControlFlowAsyncPending[_$_.$r] = MixedControlFlowAsyncPending_render;
|
|
423
381
|
|
|
424
|
-
var root_16 = _$_.template(`<div class=
|
|
382
|
+
var root_16 = _$_.template(`<div class=resolved-row> `);
|
|
425
383
|
|
|
426
384
|
function AsyncRow_render(__anchor, __block, { label }) {
|
|
427
|
-
const value = _$_.track_async(() => _$_.with_scope(__block, () => Promise.resolve(label)), __block, '
|
|
385
|
+
const value = _$_.track_async(() => _$_.with_scope(__block, () => Promise.resolve(label)), __block, '4nsq00');
|
|
428
386
|
var div_8 = root_16();
|
|
429
387
|
|
|
430
388
|
{
|