ripple 0.3.11 → 0.3.13
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 +43 -0
- package/package.json +8 -2
- package/src/compiler/phases/1-parse/index.js +73 -30
- package/src/compiler/phases/2-analyze/index.js +28 -58
- package/src/compiler/phases/3-transform/client/index.js +127 -164
- package/src/compiler/phases/3-transform/segments.js +4 -8
- package/src/compiler/phases/3-transform/server/index.js +210 -360
- package/src/compiler/types/import.d.ts +0 -12
- package/src/compiler/types/index.d.ts +12 -5
- package/src/compiler/types/parse.d.ts +2 -0
- package/src/compiler/utils.js +39 -44
- package/src/helpers.d.ts +2 -0
- package/src/runtime/index-client.js +15 -13
- package/src/runtime/index-server.js +18 -11
- package/src/runtime/internal/client/blocks.js +19 -23
- package/src/runtime/internal/client/constants.js +20 -9
- package/src/runtime/internal/client/index.js +14 -4
- package/src/runtime/internal/client/runtime.js +435 -173
- package/src/runtime/internal/client/try.js +334 -156
- package/src/runtime/internal/client/types.d.ts +26 -0
- package/src/runtime/internal/server/blocks.js +183 -0
- package/src/runtime/internal/server/constants.js +7 -0
- package/src/runtime/internal/server/index.js +780 -148
- package/src/runtime/internal/server/types.d.ts +35 -0
- package/src/server/index.js +1 -1
- package/src/utils/async.js +35 -0
- package/src/utils/builders.js +3 -1
- package/tests/client/__snapshots__/computed-properties.test.rsrx.snap +49 -0
- package/tests/client/__snapshots__/for.test.rsrx.snap +319 -0
- package/tests/client/__snapshots__/html.test.rsrx.snap +40 -0
- package/tests/client/_etc.test.rsrx +7 -0
- package/tests/client/array/{array.static.test.ripple → array.static.test.rsrx} +18 -20
- package/tests/client/async-suspend.test.rsrx +662 -0
- package/tests/client/basic/__snapshots__/basic.attributes.test.rsrx.snap +60 -0
- package/tests/client/basic/__snapshots__/basic.rendering.test.rsrx.snap +59 -0
- package/tests/client/basic/{basic.errors.test.ripple → basic.errors.test.rsrx} +2 -2
- package/tests/client/compiler/__snapshots__/compiler.assignments.test.rsrx.snap +12 -0
- package/tests/client/compiler/__snapshots__/compiler.typescript.test.rsrx.snap +46 -0
- package/tests/client/compiler/{compiler.try-in-function.test.ripple → compiler.try-in-function.test.rsrx} +8 -6
- package/tests/client/composite/__snapshots__/composite.render.test.rsrx.snap +37 -0
- package/tests/client/{function-overload.test.ripple → function-overload.test.rsrx} +1 -1
- package/tests/client/try.test.rsrx +1702 -0
- package/tests/hydration/build-components.js +5 -3
- package/tests/hydration/compiled/client/head.js +11 -11
- package/tests/hydration/compiled/client/mixed-control-flow.js +55 -70
- package/tests/hydration/compiled/client/nested-control-flow.js +72 -88
- package/tests/hydration/compiled/client/try.js +42 -54
- package/tests/hydration/compiled/server/basic.js +491 -369
- package/tests/hydration/compiled/server/composite.js +153 -128
- package/tests/hydration/compiled/server/events.js +166 -145
- package/tests/hydration/compiled/server/for.js +821 -677
- package/tests/hydration/compiled/server/head.js +200 -165
- package/tests/hydration/compiled/server/hmr.js +62 -54
- package/tests/hydration/compiled/server/html-in-template.js +64 -55
- package/tests/hydration/compiled/server/html.js +1477 -1360
- package/tests/hydration/compiled/server/if-children.js +448 -408
- package/tests/hydration/compiled/server/if.js +204 -171
- package/tests/hydration/compiled/server/mixed-control-flow.js +237 -195
- package/tests/hydration/compiled/server/nested-control-flow.js +533 -467
- package/tests/hydration/compiled/server/portal.js +94 -107
- package/tests/hydration/compiled/server/reactivity.js +87 -64
- package/tests/hydration/compiled/server/return.js +1424 -1174
- package/tests/hydration/compiled/server/switch.js +268 -238
- package/tests/hydration/compiled/server/try.js +98 -87
- package/tests/hydration/components/{mixed-control-flow.ripple → mixed-control-flow.rsrx} +2 -2
- package/tests/hydration/components/{try.ripple → try.rsrx} +4 -2
- package/tests/hydration/mixed-control-flow.test.js +14 -0
- package/tests/hydration/nested-control-flow.test.js +50 -48
- package/tests/hydration/try.test.js +25 -0
- package/tests/server/__snapshots__/compiler.test.ripple.snap +0 -32
- package/tests/server/__snapshots__/compiler.test.rsrx.snap +95 -0
- package/tests/server/{compiler.test.ripple → compiler.test.rsrx} +0 -17
- package/tests/server/{html-nesting-validation.test.ripple → html-nesting-validation.test.rsrx} +3 -3
- package/tests/server/streaming-ssr.test.rsrx +115 -0
- package/tests/server/try.test.rsrx +503 -0
- package/tests/utils/compiler-compat-config.test.js +3 -3
- package/tests/utils/vite-plugin-config.test.js +1 -1
- package/tests/utils/vite-plugin-hmr.test.js +5 -5
- package/tsconfig.json +4 -0
- package/types/index.d.ts +13 -23
- package/types/server.d.ts +43 -16
- package/tests/client/_etc.test.ripple +0 -5
- package/tests/client/async-suspend.test.ripple +0 -94
- package/tests/client/try.test.ripple +0 -196
- package/tests/server/streaming-ssr.test.ripple +0 -68
- package/tests/server/try.test.ripple +0 -82
- /package/tests/client/array/{array.copy-within.test.ripple → array.copy-within.test.rsrx} +0 -0
- /package/tests/client/array/{array.derived.test.ripple → array.derived.test.rsrx} +0 -0
- /package/tests/client/array/{array.iteration.test.ripple → array.iteration.test.rsrx} +0 -0
- /package/tests/client/array/{array.mutations.test.ripple → array.mutations.test.rsrx} +0 -0
- /package/tests/client/array/{array.to-methods.test.ripple → array.to-methods.test.rsrx} +0 -0
- /package/tests/client/basic/{basic.attributes.test.ripple → basic.attributes.test.rsrx} +0 -0
- /package/tests/client/basic/{basic.collections.test.ripple → basic.collections.test.rsrx} +0 -0
- /package/tests/client/basic/{basic.components.test.ripple → basic.components.test.rsrx} +0 -0
- /package/tests/client/basic/{basic.events.test.ripple → basic.events.test.rsrx} +0 -0
- /package/tests/client/basic/{basic.get-set.test.ripple → basic.get-set.test.rsrx} +0 -0
- /package/tests/client/basic/{basic.hmr.test.ripple → basic.hmr.test.rsrx} +0 -0
- /package/tests/client/basic/{basic.reactivity.test.ripple → basic.reactivity.test.rsrx} +0 -0
- /package/tests/client/basic/{basic.rendering.test.ripple → basic.rendering.test.rsrx} +0 -0
- /package/tests/client/basic/{basic.styling.test.ripple → basic.styling.test.rsrx} +0 -0
- /package/tests/client/basic/{basic.utilities.test.ripple → basic.utilities.test.rsrx} +0 -0
- /package/tests/client/{boundaries.test.ripple → boundaries.test.rsrx} +0 -0
- /package/tests/client/compiler/{compiler.assignments.test.ripple → compiler.assignments.test.rsrx} +0 -0
- /package/tests/client/compiler/{compiler.attributes.test.ripple → compiler.attributes.test.rsrx} +0 -0
- /package/tests/client/compiler/{compiler.basic.test.ripple → compiler.basic.test.rsrx} +0 -0
- /package/tests/client/compiler/{compiler.regex.test.ripple → compiler.regex.test.rsrx} +0 -0
- /package/tests/client/compiler/{compiler.tracked-access.test.ripple → compiler.tracked-access.test.rsrx} +0 -0
- /package/tests/client/compiler/{compiler.typescript.test.ripple → compiler.typescript.test.rsrx} +0 -0
- /package/tests/client/composite/{composite.dynamic-components.test.ripple → composite.dynamic-components.test.rsrx} +0 -0
- /package/tests/client/composite/{composite.generics.test.ripple → composite.generics.test.rsrx} +0 -0
- /package/tests/client/composite/{composite.props.test.ripple → composite.props.test.rsrx} +0 -0
- /package/tests/client/composite/{composite.reactivity.test.ripple → composite.reactivity.test.rsrx} +0 -0
- /package/tests/client/composite/{composite.render.test.ripple → composite.render.test.rsrx} +0 -0
- /package/tests/client/{computed-properties.test.ripple → computed-properties.test.rsrx} +0 -0
- /package/tests/client/{context.test.ripple → context.test.rsrx} +0 -0
- /package/tests/client/css/{global-additional-cases.test.ripple → global-additional-cases.test.rsrx} +0 -0
- /package/tests/client/css/{global-advanced-selectors.test.ripple → global-advanced-selectors.test.rsrx} +0 -0
- /package/tests/client/css/{global-at-rules.test.ripple → global-at-rules.test.rsrx} +0 -0
- /package/tests/client/css/{global-basic.test.ripple → global-basic.test.rsrx} +0 -0
- /package/tests/client/css/{global-classes-ids.test.ripple → global-classes-ids.test.rsrx} +0 -0
- /package/tests/client/css/{global-combinators.test.ripple → global-combinators.test.rsrx} +0 -0
- /package/tests/client/css/{global-complex-nesting.test.ripple → global-complex-nesting.test.rsrx} +0 -0
- /package/tests/client/css/{global-edge-cases.test.ripple → global-edge-cases.test.rsrx} +0 -0
- /package/tests/client/css/{global-keyframes.test.ripple → global-keyframes.test.rsrx} +0 -0
- /package/tests/client/css/{global-nested.test.ripple → global-nested.test.rsrx} +0 -0
- /package/tests/client/css/{global-pseudo.test.ripple → global-pseudo.test.rsrx} +0 -0
- /package/tests/client/css/{global-scoping.test.ripple → global-scoping.test.rsrx} +0 -0
- /package/tests/client/css/{style-identifier.test.ripple → style-identifier.test.rsrx} +0 -0
- /package/tests/client/{date.test.ripple → date.test.rsrx} +0 -0
- /package/tests/client/{dynamic-elements.test.ripple → dynamic-elements.test.rsrx} +0 -0
- /package/tests/client/{events.test.ripple → events.test.rsrx} +0 -0
- /package/tests/client/{for.test.ripple → for.test.rsrx} +0 -0
- /package/tests/client/{function-overload-import.ripple → function-overload-import.rsrx} +0 -0
- /package/tests/client/{head.test.ripple → head.test.rsrx} +0 -0
- /package/tests/client/{html.test.ripple → html.test.rsrx} +0 -0
- /package/tests/client/{input-value.test.ripple → input-value.test.rsrx} +0 -0
- /package/tests/client/{lazy-destructuring.test.ripple → lazy-destructuring.test.rsrx} +0 -0
- /package/tests/client/{map.test.ripple → map.test.rsrx} +0 -0
- /package/tests/client/{media-query.test.ripple → media-query.test.rsrx} +0 -0
- /package/tests/client/{object.test.ripple → object.test.rsrx} +0 -0
- /package/tests/client/{portal.test.ripple → portal.test.rsrx} +0 -0
- /package/tests/client/{ref.test.ripple → ref.test.rsrx} +0 -0
- /package/tests/client/{return.test.ripple → return.test.rsrx} +0 -0
- /package/tests/client/{set.test.ripple → set.test.rsrx} +0 -0
- /package/tests/client/{svg.test.ripple → svg.test.rsrx} +0 -0
- /package/tests/client/{switch.test.ripple → switch.test.rsrx} +0 -0
- /package/tests/client/{tsx.test.ripple → tsx.test.rsrx} +0 -0
- /package/tests/client/{typescript-generics.test.ripple → typescript-generics.test.rsrx} +0 -0
- /package/tests/client/url/{url.derived.test.ripple → url.derived.test.rsrx} +0 -0
- /package/tests/client/url/{url.parsing.test.ripple → url.parsing.test.rsrx} +0 -0
- /package/tests/client/url/{url.partial-removal.test.ripple → url.partial-removal.test.rsrx} +0 -0
- /package/tests/client/url/{url.reactivity.test.ripple → url.reactivity.test.rsrx} +0 -0
- /package/tests/client/url/{url.serialization.test.ripple → url.serialization.test.rsrx} +0 -0
- /package/tests/client/url-search-params/{url-search-params.derived.test.ripple → url-search-params.derived.test.rsrx} +0 -0
- /package/tests/client/url-search-params/{url-search-params.initialization.test.ripple → url-search-params.initialization.test.rsrx} +0 -0
- /package/tests/client/url-search-params/{url-search-params.iteration.test.ripple → url-search-params.iteration.test.rsrx} +0 -0
- /package/tests/client/url-search-params/{url-search-params.mutation.test.ripple → url-search-params.mutation.test.rsrx} +0 -0
- /package/tests/client/url-search-params/{url-search-params.retrieval.test.ripple → url-search-params.retrieval.test.rsrx} +0 -0
- /package/tests/client/url-search-params/{url-search-params.serialization.test.ripple → url-search-params.serialization.test.rsrx} +0 -0
- /package/tests/client/url-search-params/{url-search-params.tracked-url.test.ripple → url-search-params.tracked-url.test.rsrx} +0 -0
- /package/tests/hydration/components/{basic.ripple → basic.rsrx} +0 -0
- /package/tests/hydration/components/{composite.ripple → composite.rsrx} +0 -0
- /package/tests/hydration/components/{events.ripple → events.rsrx} +0 -0
- /package/tests/hydration/components/{for.ripple → for.rsrx} +0 -0
- /package/tests/hydration/components/{head.ripple → head.rsrx} +0 -0
- /package/tests/hydration/components/{hmr.ripple → hmr.rsrx} +0 -0
- /package/tests/hydration/components/{html-in-template.ripple → html-in-template.rsrx} +0 -0
- /package/tests/hydration/components/{html.ripple → html.rsrx} +0 -0
- /package/tests/hydration/components/{if-children.ripple → if-children.rsrx} +0 -0
- /package/tests/hydration/components/{if.ripple → if.rsrx} +0 -0
- /package/tests/hydration/components/{nested-control-flow.ripple → nested-control-flow.rsrx} +0 -0
- /package/tests/hydration/components/{portal.ripple → portal.rsrx} +0 -0
- /package/tests/hydration/components/{reactivity.ripple → reactivity.rsrx} +0 -0
- /package/tests/hydration/components/{return.ripple → return.rsrx} +0 -0
- /package/tests/hydration/components/{switch.ripple → switch.rsrx} +0 -0
- /package/tests/server/{await.test.ripple → await.test.rsrx} +0 -0
- /package/tests/server/{basic.attributes.test.ripple → basic.attributes.test.rsrx} +0 -0
- /package/tests/server/{basic.components.test.ripple → basic.components.test.rsrx} +0 -0
- /package/tests/server/{basic.test.ripple → basic.test.rsrx} +0 -0
- /package/tests/server/{composite.props.test.ripple → composite.props.test.rsrx} +0 -0
- /package/tests/server/{composite.test.ripple → composite.test.rsrx} +0 -0
- /package/tests/server/{context.test.ripple → context.test.rsrx} +0 -0
- /package/tests/server/{dynamic-elements.test.ripple → dynamic-elements.test.rsrx} +0 -0
- /package/tests/server/{for.test.ripple → for.test.rsrx} +0 -0
- /package/tests/server/{head.test.ripple → head.test.rsrx} +0 -0
- /package/tests/server/{if.test.ripple → if.test.rsrx} +0 -0
- /package/tests/server/{lazy-destructuring.test.ripple → lazy-destructuring.test.rsrx} +0 -0
- /package/tests/server/{return.test.ripple → return.test.rsrx} +0 -0
- /package/tests/server/{style-identifier.test.ripple → style-identifier.test.rsrx} +0 -0
- /package/tests/server/{switch.test.ripple → switch.test.rsrx} +0 -0
|
@@ -3,1722 +3,1822 @@ import * as _$_ from 'ripple/internal/server';
|
|
|
3
3
|
|
|
4
4
|
import { track } from 'ripple/server';
|
|
5
5
|
|
|
6
|
-
export function StaticHtml(
|
|
6
|
+
export function StaticHtml() {
|
|
7
7
|
_$_.push_component();
|
|
8
8
|
|
|
9
9
|
const html = '<p><strong>Bold</strong> text</p>';
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
_$_.regular_block(() => {
|
|
12
|
+
_$_.output_push('<div');
|
|
13
|
+
_$_.output_push('>');
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
{
|
|
16
|
+
const html_value = String(html ?? '');
|
|
16
17
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
_$_.output_push('<!--' + _$_.hash(html_value) + '-->');
|
|
19
|
+
_$_.output_push(html_value);
|
|
20
|
+
_$_.output_push('<!---->');
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
_$_.output_push('</div>');
|
|
24
|
+
});
|
|
21
25
|
|
|
22
|
-
__output.push('</div>');
|
|
23
26
|
_$_.pop_component();
|
|
24
27
|
}
|
|
25
28
|
|
|
26
|
-
export function DynamicHtml(
|
|
29
|
+
export function DynamicHtml() {
|
|
27
30
|
_$_.push_component();
|
|
28
31
|
|
|
29
32
|
const content = '<p>Dynamic <span>HTML</span> content</p>';
|
|
30
33
|
|
|
31
|
-
|
|
32
|
-
|
|
34
|
+
_$_.regular_block(() => {
|
|
35
|
+
_$_.output_push('<div');
|
|
36
|
+
_$_.output_push('>');
|
|
33
37
|
|
|
34
|
-
|
|
35
|
-
|
|
38
|
+
{
|
|
39
|
+
const html_value_1 = String(content ?? '');
|
|
36
40
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
+
_$_.output_push('<!--' + _$_.hash(html_value_1) + '-->');
|
|
42
|
+
_$_.output_push(html_value_1);
|
|
43
|
+
_$_.output_push('<!---->');
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
_$_.output_push('</div>');
|
|
47
|
+
});
|
|
41
48
|
|
|
42
|
-
__output.push('</div>');
|
|
43
49
|
_$_.pop_component();
|
|
44
50
|
}
|
|
45
51
|
|
|
46
|
-
export function EmptyHtml(
|
|
52
|
+
export function EmptyHtml() {
|
|
47
53
|
_$_.push_component();
|
|
48
54
|
|
|
49
55
|
const html = '';
|
|
50
56
|
|
|
51
|
-
|
|
52
|
-
|
|
57
|
+
_$_.regular_block(() => {
|
|
58
|
+
_$_.output_push('<div');
|
|
59
|
+
_$_.output_push('>');
|
|
53
60
|
|
|
54
|
-
|
|
55
|
-
|
|
61
|
+
{
|
|
62
|
+
const html_value_2 = String(html ?? '');
|
|
56
63
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
64
|
+
_$_.output_push('<!--' + _$_.hash(html_value_2) + '-->');
|
|
65
|
+
_$_.output_push(html_value_2);
|
|
66
|
+
_$_.output_push('<!---->');
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
_$_.output_push('</div>');
|
|
70
|
+
});
|
|
61
71
|
|
|
62
|
-
__output.push('</div>');
|
|
63
72
|
_$_.pop_component();
|
|
64
73
|
}
|
|
65
74
|
|
|
66
|
-
export function ComplexHtml(
|
|
75
|
+
export function ComplexHtml() {
|
|
67
76
|
_$_.push_component();
|
|
68
77
|
|
|
69
78
|
const html = '<div class="nested"><span>Nested <em>content</em></span></div>';
|
|
70
79
|
|
|
71
|
-
|
|
72
|
-
|
|
80
|
+
_$_.regular_block(() => {
|
|
81
|
+
_$_.output_push('<section');
|
|
82
|
+
_$_.output_push('>');
|
|
73
83
|
|
|
74
|
-
|
|
75
|
-
|
|
84
|
+
{
|
|
85
|
+
const html_value_3 = String(html ?? '');
|
|
76
86
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
87
|
+
_$_.output_push('<!--' + _$_.hash(html_value_3) + '-->');
|
|
88
|
+
_$_.output_push(html_value_3);
|
|
89
|
+
_$_.output_push('<!---->');
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
_$_.output_push('</section>');
|
|
93
|
+
});
|
|
81
94
|
|
|
82
|
-
__output.push('</section>');
|
|
83
95
|
_$_.pop_component();
|
|
84
96
|
}
|
|
85
97
|
|
|
86
|
-
export function MultipleHtml(
|
|
98
|
+
export function MultipleHtml() {
|
|
87
99
|
_$_.push_component();
|
|
88
100
|
|
|
89
101
|
const html1 = '<p>First paragraph</p>';
|
|
90
102
|
const html2 = '<p>Second paragraph</p>';
|
|
91
103
|
|
|
92
|
-
|
|
93
|
-
|
|
104
|
+
_$_.regular_block(() => {
|
|
105
|
+
_$_.output_push('<div');
|
|
106
|
+
_$_.output_push('>');
|
|
94
107
|
|
|
95
|
-
|
|
96
|
-
|
|
108
|
+
{
|
|
109
|
+
const html_value_4 = String(html1 ?? '');
|
|
97
110
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
111
|
+
_$_.output_push('<!--' + _$_.hash(html_value_4) + '-->');
|
|
112
|
+
_$_.output_push(html_value_4);
|
|
113
|
+
_$_.output_push('<!---->');
|
|
101
114
|
|
|
102
|
-
|
|
115
|
+
const html_value_5 = String(html2 ?? '');
|
|
103
116
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
117
|
+
_$_.output_push('<!--' + _$_.hash(html_value_5) + '-->');
|
|
118
|
+
_$_.output_push(html_value_5);
|
|
119
|
+
_$_.output_push('<!---->');
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
_$_.output_push('</div>');
|
|
123
|
+
});
|
|
108
124
|
|
|
109
|
-
__output.push('</div>');
|
|
110
125
|
_$_.pop_component();
|
|
111
126
|
}
|
|
112
127
|
|
|
113
|
-
export function HtmlWithReactivity(
|
|
128
|
+
export function HtmlWithReactivity() {
|
|
114
129
|
_$_.push_component();
|
|
115
|
-
__output.push('<div');
|
|
116
|
-
__output.push('>');
|
|
117
130
|
|
|
118
|
-
{
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
__output.push('<!---->');
|
|
122
|
-
__output.push('<button');
|
|
123
|
-
__output.push('>');
|
|
131
|
+
_$_.regular_block(() => {
|
|
132
|
+
_$_.output_push('<div');
|
|
133
|
+
_$_.output_push('>');
|
|
124
134
|
|
|
125
135
|
{
|
|
126
|
-
|
|
136
|
+
_$_.output_push('<!--1tb17hh-->');
|
|
137
|
+
_$_.output_push('<p>Count: 0</p>');
|
|
138
|
+
_$_.output_push('<!---->');
|
|
139
|
+
_$_.output_push('<button');
|
|
140
|
+
_$_.output_push('>');
|
|
141
|
+
|
|
142
|
+
{
|
|
143
|
+
_$_.output_push('Increment');
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
_$_.output_push('</button>');
|
|
127
147
|
}
|
|
128
148
|
|
|
129
|
-
|
|
130
|
-
}
|
|
149
|
+
_$_.output_push('</div>');
|
|
150
|
+
});
|
|
131
151
|
|
|
132
|
-
__output.push('</div>');
|
|
133
152
|
_$_.pop_component();
|
|
134
153
|
}
|
|
135
154
|
|
|
136
|
-
export function HtmlWrapper(
|
|
155
|
+
export function HtmlWrapper({ children }) {
|
|
137
156
|
_$_.push_component();
|
|
138
|
-
__output.push('<div');
|
|
139
|
-
__output.push(' class="wrapper"');
|
|
140
|
-
__output.push('>');
|
|
141
157
|
|
|
142
|
-
{
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
158
|
+
_$_.regular_block(() => {
|
|
159
|
+
_$_.output_push('<div');
|
|
160
|
+
_$_.output_push(' class="wrapper"');
|
|
161
|
+
_$_.output_push('>');
|
|
146
162
|
|
|
147
163
|
{
|
|
148
|
-
_$_.
|
|
164
|
+
_$_.output_push('<div');
|
|
165
|
+
_$_.output_push(' class="inner"');
|
|
166
|
+
_$_.output_push('>');
|
|
167
|
+
|
|
168
|
+
{
|
|
169
|
+
_$_.render_expression(children);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
_$_.output_push('</div>');
|
|
149
173
|
}
|
|
150
174
|
|
|
151
|
-
|
|
152
|
-
}
|
|
175
|
+
_$_.output_push('</div>');
|
|
176
|
+
});
|
|
153
177
|
|
|
154
|
-
__output.push('</div>');
|
|
155
178
|
_$_.pop_component();
|
|
156
179
|
}
|
|
157
180
|
|
|
158
|
-
export function HtmlInChildren(
|
|
181
|
+
export function HtmlInChildren() {
|
|
159
182
|
_$_.push_component();
|
|
160
183
|
|
|
161
184
|
const content = '<p><strong>Bold</strong> text</p>';
|
|
162
185
|
|
|
163
|
-
{
|
|
164
|
-
|
|
186
|
+
_$_.regular_block(() => {
|
|
187
|
+
{
|
|
188
|
+
const comp = HtmlWrapper;
|
|
165
189
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
__output.push('>');
|
|
190
|
+
const args = [
|
|
191
|
+
{
|
|
192
|
+
children: _$_.ripple_element(function render_children() {
|
|
193
|
+
_$_.push_component();
|
|
194
|
+
_$_.output_push('<div');
|
|
195
|
+
_$_.output_push(' class="vp-doc"');
|
|
196
|
+
_$_.output_push('>');
|
|
174
197
|
|
|
175
|
-
|
|
176
|
-
|
|
198
|
+
{
|
|
199
|
+
const html_value_6 = String(content ?? '');
|
|
177
200
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
201
|
+
_$_.output_push('<!--' + _$_.hash(html_value_6) + '-->');
|
|
202
|
+
_$_.output_push(html_value_6);
|
|
203
|
+
_$_.output_push('<!---->');
|
|
204
|
+
}
|
|
182
205
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
206
|
+
_$_.output_push('</div>');
|
|
207
|
+
_$_.pop_component();
|
|
208
|
+
})
|
|
209
|
+
}
|
|
210
|
+
];
|
|
188
211
|
|
|
189
|
-
|
|
190
|
-
|
|
212
|
+
comp(...args);
|
|
213
|
+
}
|
|
214
|
+
});
|
|
191
215
|
|
|
192
216
|
_$_.pop_component();
|
|
193
217
|
}
|
|
194
218
|
|
|
195
|
-
export function HtmlInChildrenWithSiblings(
|
|
219
|
+
export function HtmlInChildrenWithSiblings() {
|
|
196
220
|
_$_.push_component();
|
|
197
221
|
|
|
198
222
|
const content = '<p>Dynamic content</p>';
|
|
199
223
|
|
|
200
|
-
{
|
|
201
|
-
|
|
224
|
+
_$_.regular_block(() => {
|
|
225
|
+
{
|
|
226
|
+
const comp = HtmlWrapper;
|
|
202
227
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
__output.push('>');
|
|
228
|
+
const args = [
|
|
229
|
+
{
|
|
230
|
+
children: _$_.ripple_element(function render_children() {
|
|
231
|
+
_$_.push_component();
|
|
232
|
+
_$_.output_push('<h1');
|
|
233
|
+
_$_.output_push('>');
|
|
210
234
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
235
|
+
{
|
|
236
|
+
_$_.output_push('Title');
|
|
237
|
+
}
|
|
214
238
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
239
|
+
_$_.output_push('</h1>');
|
|
240
|
+
_$_.output_push('<div');
|
|
241
|
+
_$_.output_push(' class="content"');
|
|
242
|
+
_$_.output_push('>');
|
|
219
243
|
|
|
220
|
-
|
|
221
|
-
|
|
244
|
+
{
|
|
245
|
+
const html_value_7 = String(content ?? '');
|
|
222
246
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
247
|
+
_$_.output_push('<!--' + _$_.hash(html_value_7) + '-->');
|
|
248
|
+
_$_.output_push(html_value_7);
|
|
249
|
+
_$_.output_push('<!---->');
|
|
250
|
+
}
|
|
227
251
|
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
252
|
+
_$_.output_push('</div>');
|
|
253
|
+
_$_.pop_component();
|
|
254
|
+
})
|
|
255
|
+
}
|
|
256
|
+
];
|
|
233
257
|
|
|
234
|
-
|
|
235
|
-
|
|
258
|
+
comp(...args);
|
|
259
|
+
}
|
|
260
|
+
});
|
|
236
261
|
|
|
237
262
|
_$_.pop_component();
|
|
238
263
|
}
|
|
239
264
|
|
|
240
|
-
export function MultipleHtmlInChildren(
|
|
265
|
+
export function MultipleHtmlInChildren() {
|
|
241
266
|
_$_.push_component();
|
|
242
267
|
|
|
243
268
|
const html1 = '<p>First</p>';
|
|
244
269
|
const html2 = '<p>Second</p>';
|
|
245
270
|
|
|
246
|
-
{
|
|
247
|
-
|
|
271
|
+
_$_.regular_block(() => {
|
|
272
|
+
{
|
|
273
|
+
const comp = HtmlWrapper;
|
|
248
274
|
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
__output.push('>');
|
|
275
|
+
const args = [
|
|
276
|
+
{
|
|
277
|
+
children: _$_.ripple_element(function render_children() {
|
|
278
|
+
_$_.push_component();
|
|
279
|
+
_$_.output_push('<div');
|
|
280
|
+
_$_.output_push(' class="doc"');
|
|
281
|
+
_$_.output_push('>');
|
|
257
282
|
|
|
258
|
-
|
|
259
|
-
|
|
283
|
+
{
|
|
284
|
+
const html_value_8 = String(html1 ?? '');
|
|
260
285
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
286
|
+
_$_.output_push('<!--' + _$_.hash(html_value_8) + '-->');
|
|
287
|
+
_$_.output_push(html_value_8);
|
|
288
|
+
_$_.output_push('<!---->');
|
|
264
289
|
|
|
265
|
-
|
|
290
|
+
const html_value_9 = String(html2 ?? '');
|
|
266
291
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
292
|
+
_$_.output_push('<!--' + _$_.hash(html_value_9) + '-->');
|
|
293
|
+
_$_.output_push(html_value_9);
|
|
294
|
+
_$_.output_push('<!---->');
|
|
295
|
+
}
|
|
271
296
|
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
297
|
+
_$_.output_push('</div>');
|
|
298
|
+
_$_.pop_component();
|
|
299
|
+
})
|
|
300
|
+
}
|
|
301
|
+
];
|
|
277
302
|
|
|
278
|
-
|
|
279
|
-
|
|
303
|
+
comp(...args);
|
|
304
|
+
}
|
|
305
|
+
});
|
|
280
306
|
|
|
281
307
|
_$_.pop_component();
|
|
282
308
|
}
|
|
283
309
|
|
|
284
|
-
export function HtmlWithComments(
|
|
310
|
+
export function HtmlWithComments() {
|
|
285
311
|
_$_.push_component();
|
|
286
312
|
|
|
287
313
|
const content = '<p>Before comment</p><!-- TODO: Elaborate --><p>After comment</p>';
|
|
288
314
|
|
|
289
|
-
|
|
290
|
-
|
|
315
|
+
_$_.regular_block(() => {
|
|
316
|
+
_$_.output_push('<div');
|
|
317
|
+
_$_.output_push('>');
|
|
291
318
|
|
|
292
|
-
|
|
293
|
-
|
|
319
|
+
{
|
|
320
|
+
const html_value_10 = String(content ?? '');
|
|
294
321
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
322
|
+
_$_.output_push('<!--' + _$_.hash(html_value_10) + '-->');
|
|
323
|
+
_$_.output_push(html_value_10);
|
|
324
|
+
_$_.output_push('<!---->');
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
_$_.output_push('</div>');
|
|
328
|
+
});
|
|
299
329
|
|
|
300
|
-
__output.push('</div>');
|
|
301
330
|
_$_.pop_component();
|
|
302
331
|
}
|
|
303
332
|
|
|
304
|
-
export function HtmlWithEmptyComment(
|
|
333
|
+
export function HtmlWithEmptyComment() {
|
|
305
334
|
_$_.push_component();
|
|
306
335
|
|
|
307
336
|
const content = '<p>Before</p><!----><p>After</p>';
|
|
308
337
|
|
|
309
|
-
|
|
310
|
-
|
|
338
|
+
_$_.regular_block(() => {
|
|
339
|
+
_$_.output_push('<div');
|
|
340
|
+
_$_.output_push('>');
|
|
311
341
|
|
|
312
|
-
|
|
313
|
-
|
|
342
|
+
{
|
|
343
|
+
const html_value_11 = String(content ?? '');
|
|
314
344
|
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
345
|
+
_$_.output_push('<!--' + _$_.hash(html_value_11) + '-->');
|
|
346
|
+
_$_.output_push(html_value_11);
|
|
347
|
+
_$_.output_push('<!---->');
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
_$_.output_push('</div>');
|
|
351
|
+
});
|
|
319
352
|
|
|
320
|
-
__output.push('</div>');
|
|
321
353
|
_$_.pop_component();
|
|
322
354
|
}
|
|
323
355
|
|
|
324
|
-
export function HtmlWithCommentsInChildren(
|
|
356
|
+
export function HtmlWithCommentsInChildren() {
|
|
325
357
|
_$_.push_component();
|
|
326
358
|
|
|
327
359
|
const content = '<h2 id="intro">Introduction</h2><p>Some text</p><!-- TODO --><p>More text</p>';
|
|
328
360
|
|
|
329
|
-
{
|
|
330
|
-
|
|
361
|
+
_$_.regular_block(() => {
|
|
362
|
+
{
|
|
363
|
+
const comp = HtmlWrapper;
|
|
331
364
|
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
__output.push('>');
|
|
365
|
+
const args = [
|
|
366
|
+
{
|
|
367
|
+
children: _$_.ripple_element(function render_children() {
|
|
368
|
+
_$_.push_component();
|
|
369
|
+
_$_.output_push('<div');
|
|
370
|
+
_$_.output_push(' class="vp-doc"');
|
|
371
|
+
_$_.output_push('>');
|
|
340
372
|
|
|
341
|
-
|
|
342
|
-
|
|
373
|
+
{
|
|
374
|
+
const html_value_12 = String(content ?? '');
|
|
343
375
|
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
376
|
+
_$_.output_push('<!--' + _$_.hash(html_value_12) + '-->');
|
|
377
|
+
_$_.output_push(html_value_12);
|
|
378
|
+
_$_.output_push('<!---->');
|
|
379
|
+
}
|
|
348
380
|
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
381
|
+
_$_.output_push('</div>');
|
|
382
|
+
_$_.pop_component();
|
|
383
|
+
})
|
|
384
|
+
}
|
|
385
|
+
];
|
|
354
386
|
|
|
355
|
-
|
|
356
|
-
|
|
387
|
+
comp(...args);
|
|
388
|
+
}
|
|
389
|
+
});
|
|
357
390
|
|
|
358
391
|
_$_.pop_component();
|
|
359
392
|
}
|
|
360
393
|
|
|
361
|
-
function DocFooter(
|
|
394
|
+
function DocFooter() {
|
|
362
395
|
_$_.push_component();
|
|
363
|
-
__output.push('<footer');
|
|
364
|
-
__output.push(' class="doc-footer"');
|
|
365
|
-
__output.push('>');
|
|
366
396
|
|
|
367
|
-
{
|
|
368
|
-
|
|
369
|
-
|
|
397
|
+
_$_.regular_block(() => {
|
|
398
|
+
_$_.output_push('<footer');
|
|
399
|
+
_$_.output_push(' class="doc-footer"');
|
|
400
|
+
_$_.output_push('>');
|
|
401
|
+
|
|
402
|
+
{
|
|
403
|
+
_$_.output_push('Footer content');
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
_$_.output_push('</footer>');
|
|
407
|
+
});
|
|
370
408
|
|
|
371
|
-
__output.push('</footer>');
|
|
372
409
|
_$_.pop_component();
|
|
373
410
|
}
|
|
374
411
|
|
|
375
|
-
export function DocLayout(
|
|
376
|
-
__output,
|
|
377
|
-
{ children, editPath = '', nextLink = null, toc = [] }
|
|
378
|
-
) {
|
|
412
|
+
export function DocLayout({ children, editPath = '', nextLink = null, toc = [] }) {
|
|
379
413
|
_$_.push_component();
|
|
380
|
-
__output.push('<div');
|
|
381
|
-
__output.push(' class="layout"');
|
|
382
|
-
__output.push('>');
|
|
383
414
|
|
|
384
|
-
{
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
415
|
+
_$_.regular_block(() => {
|
|
416
|
+
_$_.output_push('<div');
|
|
417
|
+
_$_.output_push(' class="layout"');
|
|
418
|
+
_$_.output_push('>');
|
|
388
419
|
|
|
389
420
|
{
|
|
390
|
-
|
|
391
|
-
|
|
421
|
+
_$_.output_push('<div');
|
|
422
|
+
_$_.output_push(' class="content-container"');
|
|
423
|
+
_$_.output_push('>');
|
|
392
424
|
|
|
393
425
|
{
|
|
394
|
-
|
|
395
|
-
|
|
426
|
+
_$_.output_push('<article');
|
|
427
|
+
_$_.output_push('>');
|
|
396
428
|
|
|
397
429
|
{
|
|
398
|
-
_$_.
|
|
399
|
-
|
|
430
|
+
_$_.output_push('<div');
|
|
431
|
+
_$_.output_push('>');
|
|
400
432
|
|
|
401
|
-
|
|
402
|
-
|
|
433
|
+
{
|
|
434
|
+
_$_.render_expression(children);
|
|
435
|
+
}
|
|
403
436
|
|
|
404
|
-
|
|
405
|
-
|
|
437
|
+
_$_.output_push('</div>');
|
|
438
|
+
}
|
|
406
439
|
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
__output.push(' class="edit-link"');
|
|
410
|
-
__output.push('>');
|
|
440
|
+
_$_.output_push('</article>');
|
|
441
|
+
_$_.output_push('<!--[-->');
|
|
411
442
|
|
|
412
|
-
{
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
443
|
+
if (editPath) {
|
|
444
|
+
_$_.output_push('<div');
|
|
445
|
+
_$_.output_push(' class="edit-link"');
|
|
446
|
+
_$_.output_push('>');
|
|
416
447
|
|
|
417
448
|
{
|
|
418
|
-
|
|
449
|
+
_$_.output_push('<a');
|
|
450
|
+
_$_.output_push(_$_.attr('href', `https://github.com/edit/${editPath}`, false));
|
|
451
|
+
_$_.output_push('>');
|
|
452
|
+
|
|
453
|
+
{
|
|
454
|
+
_$_.output_push('Edit');
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
_$_.output_push('</a>');
|
|
419
458
|
}
|
|
420
459
|
|
|
421
|
-
|
|
460
|
+
_$_.output_push('</div>');
|
|
422
461
|
}
|
|
423
462
|
|
|
424
|
-
|
|
425
|
-
|
|
463
|
+
_$_.output_push('<!--]-->');
|
|
464
|
+
_$_.output_push('<!--[-->');
|
|
426
465
|
|
|
427
|
-
|
|
428
|
-
|
|
466
|
+
if (nextLink) {
|
|
467
|
+
_$_.output_push('<nav');
|
|
468
|
+
_$_.output_push(' class="prev-next"');
|
|
469
|
+
_$_.output_push('>');
|
|
429
470
|
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
471
|
+
{
|
|
472
|
+
_$_.output_push('<a');
|
|
473
|
+
_$_.output_push(_$_.attr('href', nextLink.href, false));
|
|
474
|
+
_$_.output_push('>');
|
|
434
475
|
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
__output.push('>');
|
|
476
|
+
{
|
|
477
|
+
_$_.output_push(_$_.escape(nextLink.text));
|
|
478
|
+
}
|
|
439
479
|
|
|
440
|
-
|
|
441
|
-
__output.push(_$_.escape(nextLink.text));
|
|
480
|
+
_$_.output_push('</a>');
|
|
442
481
|
}
|
|
443
482
|
|
|
444
|
-
|
|
483
|
+
_$_.output_push('</nav>');
|
|
445
484
|
}
|
|
446
485
|
|
|
447
|
-
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
__output.push('<!--]-->');
|
|
486
|
+
_$_.output_push('<!--]-->');
|
|
451
487
|
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
488
|
+
{
|
|
489
|
+
const comp = DocFooter;
|
|
490
|
+
const args = [{}];
|
|
455
491
|
|
|
456
|
-
|
|
492
|
+
comp(...args);
|
|
493
|
+
}
|
|
457
494
|
}
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
__output.push('</div>');
|
|
461
|
-
__output.push('<aside');
|
|
462
|
-
__output.push('>');
|
|
463
495
|
|
|
464
|
-
|
|
465
|
-
|
|
496
|
+
_$_.output_push('</div>');
|
|
497
|
+
_$_.output_push('<aside');
|
|
498
|
+
_$_.output_push('>');
|
|
466
499
|
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
__output.push(' class="toc"');
|
|
470
|
-
__output.push('>');
|
|
500
|
+
{
|
|
501
|
+
_$_.output_push('<!--[-->');
|
|
471
502
|
|
|
472
|
-
{
|
|
473
|
-
|
|
474
|
-
|
|
503
|
+
if (toc.length > 0) {
|
|
504
|
+
_$_.output_push('<div');
|
|
505
|
+
_$_.output_push(' class="toc"');
|
|
506
|
+
_$_.output_push('>');
|
|
475
507
|
|
|
476
508
|
{
|
|
477
|
-
|
|
509
|
+
_$_.output_push('<ul');
|
|
510
|
+
_$_.output_push('>');
|
|
478
511
|
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
__output.push('>');
|
|
512
|
+
{
|
|
513
|
+
_$_.output_push('<!--[-->');
|
|
482
514
|
|
|
483
|
-
{
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
__output.push('>');
|
|
515
|
+
for (const item of toc) {
|
|
516
|
+
_$_.output_push('<li');
|
|
517
|
+
_$_.output_push('>');
|
|
487
518
|
|
|
488
519
|
{
|
|
489
|
-
|
|
520
|
+
_$_.output_push('<a');
|
|
521
|
+
_$_.output_push(_$_.attr('href', item.href, false));
|
|
522
|
+
_$_.output_push('>');
|
|
523
|
+
|
|
524
|
+
{
|
|
525
|
+
_$_.output_push(_$_.escape(item.text));
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
_$_.output_push('</a>');
|
|
490
529
|
}
|
|
491
530
|
|
|
492
|
-
|
|
531
|
+
_$_.output_push('</li>');
|
|
493
532
|
}
|
|
494
533
|
|
|
495
|
-
|
|
534
|
+
_$_.output_push('<!--]-->');
|
|
496
535
|
}
|
|
497
536
|
|
|
498
|
-
|
|
537
|
+
_$_.output_push('</ul>');
|
|
499
538
|
}
|
|
500
539
|
|
|
501
|
-
|
|
540
|
+
_$_.output_push('</div>');
|
|
502
541
|
}
|
|
503
542
|
|
|
504
|
-
|
|
543
|
+
_$_.output_push('<!--]-->');
|
|
505
544
|
}
|
|
506
545
|
|
|
507
|
-
|
|
546
|
+
_$_.output_push('</aside>');
|
|
508
547
|
}
|
|
509
548
|
|
|
510
|
-
|
|
511
|
-
}
|
|
549
|
+
_$_.output_push('</div>');
|
|
550
|
+
});
|
|
512
551
|
|
|
513
|
-
__output.push('</div>');
|
|
514
552
|
_$_.pop_component();
|
|
515
553
|
}
|
|
516
554
|
|
|
517
|
-
export function HtmlWithServerData(
|
|
555
|
+
export function HtmlWithServerData() {
|
|
518
556
|
_$_.push_component();
|
|
519
557
|
|
|
520
558
|
const content = '<h1 id="intro" class="doc-h1">Introduction</h1><p>Ripple is a framework.</p>';
|
|
521
559
|
|
|
522
|
-
{
|
|
523
|
-
|
|
560
|
+
_$_.regular_block(() => {
|
|
561
|
+
{
|
|
562
|
+
const comp = DocLayout;
|
|
524
563
|
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
__output.push('>');
|
|
564
|
+
const args = [
|
|
565
|
+
{
|
|
566
|
+
editPath: "docs/introduction.md",
|
|
567
|
+
nextLink: { href: '/docs/quick-start', text: 'Quick Start' },
|
|
568
|
+
toc: [
|
|
569
|
+
{ href: '#intro', text: 'Introduction' },
|
|
570
|
+
{ href: '#features', text: 'Features' }
|
|
571
|
+
],
|
|
572
|
+
|
|
573
|
+
children: _$_.ripple_element(function render_children() {
|
|
574
|
+
_$_.push_component();
|
|
575
|
+
_$_.output_push('<div');
|
|
576
|
+
_$_.output_push(' class="vp-doc"');
|
|
577
|
+
_$_.output_push('>');
|
|
540
578
|
|
|
541
|
-
|
|
542
|
-
|
|
579
|
+
{
|
|
580
|
+
const html_value_13 = String(content ?? '');
|
|
543
581
|
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
582
|
+
_$_.output_push('<!--' + _$_.hash(html_value_13) + '-->');
|
|
583
|
+
_$_.output_push(html_value_13);
|
|
584
|
+
_$_.output_push('<!---->');
|
|
585
|
+
}
|
|
548
586
|
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
587
|
+
_$_.output_push('</div>');
|
|
588
|
+
_$_.pop_component();
|
|
589
|
+
})
|
|
590
|
+
}
|
|
591
|
+
];
|
|
554
592
|
|
|
555
|
-
|
|
556
|
-
|
|
593
|
+
comp(...args);
|
|
594
|
+
}
|
|
595
|
+
});
|
|
557
596
|
|
|
558
597
|
_$_.pop_component();
|
|
559
598
|
}
|
|
560
599
|
|
|
561
|
-
export function HtmlWithClientDefaults(
|
|
600
|
+
export function HtmlWithClientDefaults() {
|
|
562
601
|
_$_.push_component();
|
|
563
602
|
|
|
564
603
|
const content = '<h1 id="intro" class="doc-h1">Introduction</h1><p>Ripple is a framework.</p>';
|
|
565
604
|
|
|
566
|
-
{
|
|
567
|
-
|
|
605
|
+
_$_.regular_block(() => {
|
|
606
|
+
{
|
|
607
|
+
const comp = DocLayout;
|
|
568
608
|
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
__output.push('>');
|
|
609
|
+
const args = [
|
|
610
|
+
{
|
|
611
|
+
children: _$_.ripple_element(function render_children() {
|
|
612
|
+
_$_.push_component();
|
|
613
|
+
_$_.output_push('<div');
|
|
614
|
+
_$_.output_push(' class="vp-doc"');
|
|
615
|
+
_$_.output_push('>');
|
|
577
616
|
|
|
578
|
-
|
|
579
|
-
|
|
617
|
+
{
|
|
618
|
+
const html_value_14 = String(content ?? '');
|
|
580
619
|
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
620
|
+
_$_.output_push('<!--' + _$_.hash(html_value_14) + '-->');
|
|
621
|
+
_$_.output_push(html_value_14);
|
|
622
|
+
_$_.output_push('<!---->');
|
|
623
|
+
}
|
|
585
624
|
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
625
|
+
_$_.output_push('</div>');
|
|
626
|
+
_$_.pop_component();
|
|
627
|
+
})
|
|
628
|
+
}
|
|
629
|
+
];
|
|
591
630
|
|
|
592
|
-
|
|
593
|
-
|
|
631
|
+
comp(...args);
|
|
632
|
+
}
|
|
633
|
+
});
|
|
594
634
|
|
|
595
635
|
_$_.pop_component();
|
|
596
636
|
}
|
|
597
637
|
|
|
598
|
-
export function HtmlWithUndefinedContent(
|
|
638
|
+
export function HtmlWithUndefinedContent() {
|
|
599
639
|
_$_.push_component();
|
|
600
640
|
|
|
601
641
|
const content = undefined;
|
|
602
642
|
|
|
603
|
-
{
|
|
604
|
-
|
|
643
|
+
_$_.regular_block(() => {
|
|
644
|
+
{
|
|
645
|
+
const comp = DocLayout;
|
|
605
646
|
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
__output.push('>');
|
|
647
|
+
const args = [
|
|
648
|
+
{
|
|
649
|
+
children: _$_.ripple_element(function render_children() {
|
|
650
|
+
_$_.push_component();
|
|
651
|
+
_$_.output_push('<div');
|
|
652
|
+
_$_.output_push(' class="vp-doc"');
|
|
653
|
+
_$_.output_push('>');
|
|
614
654
|
|
|
615
|
-
|
|
616
|
-
|
|
655
|
+
{
|
|
656
|
+
const html_value_15 = String(content ?? '');
|
|
617
657
|
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
658
|
+
_$_.output_push('<!--' + _$_.hash(html_value_15) + '-->');
|
|
659
|
+
_$_.output_push(html_value_15);
|
|
660
|
+
_$_.output_push('<!---->');
|
|
661
|
+
}
|
|
622
662
|
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
663
|
+
_$_.output_push('</div>');
|
|
664
|
+
_$_.pop_component();
|
|
665
|
+
})
|
|
666
|
+
}
|
|
667
|
+
];
|
|
628
668
|
|
|
629
|
-
|
|
630
|
-
|
|
669
|
+
comp(...args);
|
|
670
|
+
}
|
|
671
|
+
});
|
|
631
672
|
|
|
632
673
|
_$_.pop_component();
|
|
633
674
|
}
|
|
634
675
|
|
|
635
|
-
function DynamicHeading(
|
|
676
|
+
function DynamicHeading({ level, children }) {
|
|
636
677
|
_$_.push_component();
|
|
637
|
-
__output.push('<!--[-->');
|
|
638
678
|
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
__output.push('<h1');
|
|
642
|
-
__output.push(' class="heading"');
|
|
643
|
-
__output.push('>');
|
|
644
|
-
{
|
|
645
|
-
_$_.render_expression(__output, children);
|
|
646
|
-
}
|
|
647
|
-
__output.push('</h1>');
|
|
679
|
+
_$_.regular_block(() => {
|
|
680
|
+
_$_.output_push('<!--[-->');
|
|
648
681
|
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
682
|
+
switch (level) {
|
|
683
|
+
case 1:
|
|
684
|
+
_$_.output_push('<h1');
|
|
685
|
+
_$_.output_push(' class="heading"');
|
|
686
|
+
_$_.output_push('>');
|
|
687
|
+
{
|
|
688
|
+
_$_.render_expression(children);
|
|
689
|
+
}
|
|
690
|
+
_$_.output_push('</h1>');
|
|
691
|
+
|
|
692
|
+
case 2:
|
|
693
|
+
_$_.output_push('<h2');
|
|
694
|
+
_$_.output_push(' class="heading"');
|
|
695
|
+
_$_.output_push('>');
|
|
696
|
+
{
|
|
697
|
+
_$_.render_expression(children);
|
|
698
|
+
}
|
|
699
|
+
_$_.output_push('</h2>');
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
_$_.output_push('<!--]-->');
|
|
703
|
+
});
|
|
658
704
|
|
|
659
|
-
__output.push('<!--]-->');
|
|
660
705
|
_$_.pop_component();
|
|
661
706
|
}
|
|
662
707
|
|
|
663
|
-
function CodeBlock(
|
|
708
|
+
function CodeBlock({ code }) {
|
|
664
709
|
_$_.push_component();
|
|
665
710
|
|
|
666
711
|
const highlighted = `<pre class="shiki"><code>${code}</code></pre>`;
|
|
667
712
|
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
{
|
|
673
|
-
__output.push('<div');
|
|
674
|
-
__output.push(' class="header"');
|
|
675
|
-
__output.push('>');
|
|
713
|
+
_$_.regular_block(() => {
|
|
714
|
+
_$_.output_push('<div');
|
|
715
|
+
_$_.output_push(' class="code-block"');
|
|
716
|
+
_$_.output_push('>');
|
|
676
717
|
|
|
677
718
|
{
|
|
678
|
-
|
|
679
|
-
|
|
719
|
+
_$_.output_push('<div');
|
|
720
|
+
_$_.output_push(' class="header"');
|
|
721
|
+
_$_.output_push('>');
|
|
680
722
|
|
|
681
723
|
{
|
|
682
|
-
|
|
683
|
-
|
|
724
|
+
_$_.output_push('<button');
|
|
725
|
+
_$_.output_push('>');
|
|
726
|
+
|
|
727
|
+
{
|
|
728
|
+
_$_.output_push('Copy');
|
|
729
|
+
}
|
|
684
730
|
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
731
|
+
_$_.output_push('</button>');
|
|
732
|
+
_$_.output_push('<span');
|
|
733
|
+
_$_.output_push(' class="lang"');
|
|
734
|
+
_$_.output_push('>');
|
|
689
735
|
|
|
690
|
-
|
|
691
|
-
|
|
736
|
+
{
|
|
737
|
+
_$_.output_push('js');
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
_$_.output_push('</span>');
|
|
692
741
|
}
|
|
693
742
|
|
|
694
|
-
|
|
695
|
-
|
|
743
|
+
_$_.output_push('</div>');
|
|
744
|
+
_$_.output_push('<div');
|
|
745
|
+
_$_.output_push(' class="content"');
|
|
746
|
+
_$_.output_push('>');
|
|
696
747
|
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
__output.push(' class="content"');
|
|
700
|
-
__output.push('>');
|
|
748
|
+
{
|
|
749
|
+
const html_value_16 = String(highlighted ?? '');
|
|
701
750
|
|
|
702
|
-
|
|
703
|
-
|
|
751
|
+
_$_.output_push('<!--' + _$_.hash(html_value_16) + '-->');
|
|
752
|
+
_$_.output_push(html_value_16);
|
|
753
|
+
_$_.output_push('<!---->');
|
|
754
|
+
}
|
|
704
755
|
|
|
705
|
-
|
|
706
|
-
__output.push(html_value_16);
|
|
707
|
-
__output.push('<!---->');
|
|
756
|
+
_$_.output_push('</div>');
|
|
708
757
|
}
|
|
709
758
|
|
|
710
|
-
|
|
711
|
-
}
|
|
759
|
+
_$_.output_push('</div>');
|
|
760
|
+
});
|
|
712
761
|
|
|
713
|
-
__output.push('</div>');
|
|
714
762
|
_$_.pop_component();
|
|
715
763
|
}
|
|
716
764
|
|
|
717
|
-
function ContentWrapper(
|
|
765
|
+
function ContentWrapper({ children }) {
|
|
718
766
|
_$_.push_component();
|
|
719
|
-
__output.push('<div');
|
|
720
|
-
__output.push(' class="wrapper"');
|
|
721
|
-
__output.push('>');
|
|
722
767
|
|
|
723
|
-
{
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
768
|
+
_$_.regular_block(() => {
|
|
769
|
+
_$_.output_push('<div');
|
|
770
|
+
_$_.output_push(' class="wrapper"');
|
|
771
|
+
_$_.output_push('>');
|
|
727
772
|
|
|
728
773
|
{
|
|
729
|
-
_$_.
|
|
774
|
+
_$_.output_push('<div');
|
|
775
|
+
_$_.output_push(' class="inner"');
|
|
776
|
+
_$_.output_push('>');
|
|
777
|
+
|
|
778
|
+
{
|
|
779
|
+
_$_.render_expression(children);
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
_$_.output_push('</div>');
|
|
730
783
|
}
|
|
731
784
|
|
|
732
|
-
|
|
733
|
-
}
|
|
785
|
+
_$_.output_push('</div>');
|
|
786
|
+
});
|
|
734
787
|
|
|
735
|
-
__output.push('</div>');
|
|
736
788
|
_$_.pop_component();
|
|
737
789
|
}
|
|
738
790
|
|
|
739
|
-
export function HtmlAfterSwitchInChildren(
|
|
791
|
+
export function HtmlAfterSwitchInChildren() {
|
|
740
792
|
_$_.push_component();
|
|
741
793
|
|
|
742
|
-
{
|
|
743
|
-
|
|
794
|
+
_$_.regular_block(() => {
|
|
795
|
+
{
|
|
796
|
+
const comp = ContentWrapper;
|
|
744
797
|
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
_$_.push_component();
|
|
798
|
+
const args = [
|
|
799
|
+
{
|
|
800
|
+
children: _$_.ripple_element(function render_children() {
|
|
801
|
+
_$_.push_component();
|
|
750
802
|
|
|
751
|
-
|
|
752
|
-
|
|
803
|
+
{
|
|
804
|
+
const comp = DynamicHeading;
|
|
753
805
|
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
];
|
|
806
|
+
const args = [
|
|
807
|
+
{
|
|
808
|
+
level: 1,
|
|
809
|
+
children: _$_.ripple_element(function render_children() {
|
|
810
|
+
_$_.push_component();
|
|
811
|
+
_$_.output_push('Title');
|
|
812
|
+
_$_.pop_component();
|
|
813
|
+
})
|
|
814
|
+
}
|
|
815
|
+
];
|
|
765
816
|
|
|
766
|
-
|
|
767
|
-
|
|
817
|
+
comp(...args);
|
|
818
|
+
}
|
|
768
819
|
|
|
769
|
-
|
|
770
|
-
|
|
820
|
+
_$_.output_push('<p');
|
|
821
|
+
_$_.output_push('>');
|
|
771
822
|
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
823
|
+
{
|
|
824
|
+
_$_.output_push('First paragraph');
|
|
825
|
+
}
|
|
775
826
|
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
827
|
+
_$_.output_push('</p>');
|
|
828
|
+
_$_.output_push('<p');
|
|
829
|
+
_$_.output_push('>');
|
|
779
830
|
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
831
|
+
{
|
|
832
|
+
_$_.output_push('Second paragraph');
|
|
833
|
+
}
|
|
783
834
|
|
|
784
|
-
|
|
835
|
+
_$_.output_push('</p>');
|
|
785
836
|
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
837
|
+
{
|
|
838
|
+
const comp = CodeBlock;
|
|
839
|
+
const args = [{ code: "const x = 1;" }];
|
|
789
840
|
|
|
790
|
-
|
|
791
|
-
|
|
841
|
+
comp(...args);
|
|
842
|
+
}
|
|
792
843
|
|
|
793
|
-
|
|
794
|
-
|
|
844
|
+
_$_.output_push('<p');
|
|
845
|
+
_$_.output_push('>');
|
|
795
846
|
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
847
|
+
{
|
|
848
|
+
_$_.output_push('After code');
|
|
849
|
+
}
|
|
799
850
|
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
851
|
+
_$_.output_push('</p>');
|
|
852
|
+
_$_.pop_component();
|
|
853
|
+
})
|
|
854
|
+
}
|
|
855
|
+
];
|
|
805
856
|
|
|
806
|
-
|
|
807
|
-
|
|
857
|
+
comp(...args);
|
|
858
|
+
}
|
|
859
|
+
});
|
|
808
860
|
|
|
809
861
|
_$_.pop_component();
|
|
810
862
|
}
|
|
811
863
|
|
|
812
|
-
function NavItem(
|
|
864
|
+
function NavItem({ href, text: label, active = false }) {
|
|
813
865
|
_$_.push_component();
|
|
814
|
-
__output.push('<div');
|
|
815
|
-
__output.push(_$_.attr('class', `nav-item${active ? ' active' : ''}`));
|
|
816
|
-
__output.push('>');
|
|
817
866
|
|
|
818
|
-
{
|
|
819
|
-
|
|
867
|
+
_$_.regular_block(() => {
|
|
868
|
+
_$_.output_push('<div');
|
|
869
|
+
_$_.output_push(_$_.attr('class', `nav-item${active ? ' active' : ''}`));
|
|
870
|
+
_$_.output_push('>');
|
|
820
871
|
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
__output.push(' class="indicator"');
|
|
824
|
-
__output.push('>');
|
|
825
|
-
__output.push('</div>');
|
|
826
|
-
}
|
|
872
|
+
{
|
|
873
|
+
_$_.output_push('<!--[-->');
|
|
827
874
|
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
875
|
+
if (active) {
|
|
876
|
+
_$_.output_push('<div');
|
|
877
|
+
_$_.output_push(' class="indicator"');
|
|
878
|
+
_$_.output_push('>');
|
|
879
|
+
_$_.output_push('</div>');
|
|
880
|
+
}
|
|
832
881
|
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
882
|
+
_$_.output_push('<!--]-->');
|
|
883
|
+
_$_.output_push('<a');
|
|
884
|
+
_$_.output_push(_$_.attr('href', href, false));
|
|
885
|
+
_$_.output_push('>');
|
|
836
886
|
|
|
837
887
|
{
|
|
838
|
-
|
|
888
|
+
_$_.output_push('<span');
|
|
889
|
+
_$_.output_push('>');
|
|
890
|
+
|
|
891
|
+
{
|
|
892
|
+
_$_.output_push(_$_.escape(label));
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
_$_.output_push('</span>');
|
|
839
896
|
}
|
|
840
897
|
|
|
841
|
-
|
|
898
|
+
_$_.output_push('</a>');
|
|
842
899
|
}
|
|
843
900
|
|
|
844
|
-
|
|
845
|
-
}
|
|
901
|
+
_$_.output_push('</div>');
|
|
902
|
+
});
|
|
846
903
|
|
|
847
|
-
__output.push('</div>');
|
|
848
904
|
_$_.pop_component();
|
|
849
905
|
}
|
|
850
906
|
|
|
851
|
-
function SidebarSection(
|
|
907
|
+
function SidebarSection({ title, children }) {
|
|
852
908
|
_$_.push_component();
|
|
853
909
|
|
|
854
910
|
let lazy = _$_.track(true);
|
|
855
911
|
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
{
|
|
861
|
-
__output.push('<div');
|
|
862
|
-
__output.push(' class="section-header"');
|
|
863
|
-
__output.push('>');
|
|
912
|
+
_$_.regular_block(() => {
|
|
913
|
+
_$_.output_push('<section');
|
|
914
|
+
_$_.output_push(' class="sidebar-section"');
|
|
915
|
+
_$_.output_push('>');
|
|
864
916
|
|
|
865
917
|
{
|
|
866
|
-
|
|
867
|
-
|
|
918
|
+
_$_.output_push('<div');
|
|
919
|
+
_$_.output_push(' class="section-header"');
|
|
920
|
+
_$_.output_push('>');
|
|
868
921
|
|
|
869
922
|
{
|
|
870
|
-
|
|
871
|
-
|
|
923
|
+
_$_.output_push('<h2');
|
|
924
|
+
_$_.output_push('>');
|
|
872
925
|
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
926
|
+
{
|
|
927
|
+
_$_.output_push(_$_.escape(title));
|
|
928
|
+
}
|
|
876
929
|
|
|
877
|
-
|
|
878
|
-
|
|
930
|
+
_$_.output_push('</h2>');
|
|
931
|
+
_$_.output_push('<button');
|
|
932
|
+
_$_.output_push('>');
|
|
933
|
+
|
|
934
|
+
{
|
|
935
|
+
_$_.output_push('Toggle');
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
_$_.output_push('</button>');
|
|
879
939
|
}
|
|
880
940
|
|
|
881
|
-
|
|
882
|
-
|
|
941
|
+
_$_.output_push('</div>');
|
|
942
|
+
_$_.output_push('<!--[-->');
|
|
883
943
|
|
|
884
|
-
|
|
885
|
-
|
|
944
|
+
if (_$_.get(lazy)) {
|
|
945
|
+
_$_.output_push('<div');
|
|
946
|
+
_$_.output_push(' class="section-items"');
|
|
947
|
+
_$_.output_push('>');
|
|
886
948
|
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
__output.push('>');
|
|
949
|
+
{
|
|
950
|
+
_$_.render_expression(children);
|
|
951
|
+
}
|
|
891
952
|
|
|
892
|
-
|
|
893
|
-
_$_.render_expression(__output, children);
|
|
953
|
+
_$_.output_push('</div>');
|
|
894
954
|
}
|
|
895
955
|
|
|
896
|
-
|
|
956
|
+
_$_.output_push('<!--]-->');
|
|
897
957
|
}
|
|
898
958
|
|
|
899
|
-
|
|
900
|
-
}
|
|
959
|
+
_$_.output_push('</section>');
|
|
960
|
+
});
|
|
901
961
|
|
|
902
|
-
__output.push('</section>');
|
|
903
962
|
_$_.pop_component();
|
|
904
963
|
}
|
|
905
964
|
|
|
906
|
-
function SideNav(
|
|
965
|
+
function SideNav({ currentPath }) {
|
|
907
966
|
_$_.push_component();
|
|
908
|
-
__output.push('<aside');
|
|
909
|
-
__output.push(' class="sidebar"');
|
|
910
|
-
__output.push('>');
|
|
911
967
|
|
|
912
|
-
{
|
|
913
|
-
|
|
914
|
-
|
|
968
|
+
_$_.regular_block(() => {
|
|
969
|
+
_$_.output_push('<aside');
|
|
970
|
+
_$_.output_push(' class="sidebar"');
|
|
971
|
+
_$_.output_push('>');
|
|
915
972
|
|
|
916
973
|
{
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
__output.push('>');
|
|
974
|
+
_$_.output_push('<nav');
|
|
975
|
+
_$_.output_push('>');
|
|
920
976
|
|
|
921
977
|
{
|
|
978
|
+
_$_.output_push('<div');
|
|
979
|
+
_$_.output_push(' class="group"');
|
|
980
|
+
_$_.output_push('>');
|
|
981
|
+
|
|
922
982
|
{
|
|
923
|
-
|
|
983
|
+
{
|
|
984
|
+
const comp = SidebarSection;
|
|
924
985
|
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
_$_.push_component();
|
|
986
|
+
const args = [
|
|
987
|
+
{
|
|
988
|
+
title: "Getting Started",
|
|
989
|
+
children: _$_.ripple_element(function render_children() {
|
|
990
|
+
_$_.push_component();
|
|
931
991
|
|
|
932
|
-
|
|
933
|
-
|
|
992
|
+
{
|
|
993
|
+
const comp = NavItem;
|
|
934
994
|
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
];
|
|
995
|
+
const args = [
|
|
996
|
+
{
|
|
997
|
+
href: "/intro",
|
|
998
|
+
text: "Introduction",
|
|
999
|
+
active: currentPath === '/intro'
|
|
1000
|
+
}
|
|
1001
|
+
];
|
|
943
1002
|
|
|
944
|
-
|
|
945
|
-
|
|
1003
|
+
comp(...args);
|
|
1004
|
+
}
|
|
946
1005
|
|
|
947
|
-
|
|
948
|
-
|
|
1006
|
+
{
|
|
1007
|
+
const comp = NavItem;
|
|
949
1008
|
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
];
|
|
1009
|
+
const args = [
|
|
1010
|
+
{
|
|
1011
|
+
href: "/start",
|
|
1012
|
+
text: "Quick Start",
|
|
1013
|
+
active: currentPath === '/start'
|
|
1014
|
+
}
|
|
1015
|
+
];
|
|
958
1016
|
|
|
959
|
-
|
|
960
|
-
|
|
1017
|
+
comp(...args);
|
|
1018
|
+
}
|
|
961
1019
|
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
1020
|
+
_$_.pop_component();
|
|
1021
|
+
})
|
|
1022
|
+
}
|
|
1023
|
+
];
|
|
966
1024
|
|
|
967
|
-
|
|
1025
|
+
comp(...args);
|
|
1026
|
+
}
|
|
968
1027
|
}
|
|
969
|
-
}
|
|
970
1028
|
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
1029
|
+
_$_.output_push('</div>');
|
|
1030
|
+
_$_.output_push('<div');
|
|
1031
|
+
_$_.output_push(' class="group"');
|
|
1032
|
+
_$_.output_push('>');
|
|
975
1033
|
|
|
976
|
-
{
|
|
977
1034
|
{
|
|
978
|
-
|
|
1035
|
+
{
|
|
1036
|
+
const comp = SidebarSection;
|
|
979
1037
|
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
_$_.push_component();
|
|
1038
|
+
const args = [
|
|
1039
|
+
{
|
|
1040
|
+
title: "Guide",
|
|
1041
|
+
children: _$_.ripple_element(function render_children() {
|
|
1042
|
+
_$_.push_component();
|
|
986
1043
|
|
|
987
|
-
|
|
988
|
-
|
|
1044
|
+
{
|
|
1045
|
+
const comp = NavItem;
|
|
989
1046
|
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
];
|
|
1047
|
+
const args = [
|
|
1048
|
+
{
|
|
1049
|
+
href: "/guide/app",
|
|
1050
|
+
text: "Application",
|
|
1051
|
+
active: currentPath === '/guide/app'
|
|
1052
|
+
}
|
|
1053
|
+
];
|
|
998
1054
|
|
|
999
|
-
|
|
1000
|
-
|
|
1055
|
+
comp(...args);
|
|
1056
|
+
}
|
|
1001
1057
|
|
|
1002
|
-
|
|
1003
|
-
|
|
1058
|
+
{
|
|
1059
|
+
const comp = NavItem;
|
|
1004
1060
|
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
];
|
|
1061
|
+
const args = [
|
|
1062
|
+
{
|
|
1063
|
+
href: "/guide/syntax",
|
|
1064
|
+
text: "Syntax",
|
|
1065
|
+
active: currentPath === '/guide/syntax'
|
|
1066
|
+
}
|
|
1067
|
+
];
|
|
1013
1068
|
|
|
1014
|
-
|
|
1015
|
-
|
|
1069
|
+
comp(...args);
|
|
1070
|
+
}
|
|
1016
1071
|
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1072
|
+
_$_.pop_component();
|
|
1073
|
+
})
|
|
1074
|
+
}
|
|
1075
|
+
];
|
|
1021
1076
|
|
|
1022
|
-
|
|
1077
|
+
comp(...args);
|
|
1078
|
+
}
|
|
1023
1079
|
}
|
|
1080
|
+
|
|
1081
|
+
_$_.output_push('</div>');
|
|
1024
1082
|
}
|
|
1025
1083
|
|
|
1026
|
-
|
|
1084
|
+
_$_.output_push('</nav>');
|
|
1027
1085
|
}
|
|
1028
1086
|
|
|
1029
|
-
|
|
1030
|
-
}
|
|
1087
|
+
_$_.output_push('</aside>');
|
|
1088
|
+
});
|
|
1031
1089
|
|
|
1032
|
-
__output.push('</aside>');
|
|
1033
1090
|
_$_.pop_component();
|
|
1034
1091
|
}
|
|
1035
1092
|
|
|
1036
|
-
function PageHeader(
|
|
1093
|
+
function PageHeader() {
|
|
1037
1094
|
_$_.push_component();
|
|
1038
|
-
__output.push('<header');
|
|
1039
|
-
__output.push(' class="page-header"');
|
|
1040
|
-
__output.push('>');
|
|
1041
1095
|
|
|
1042
|
-
{
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1096
|
+
_$_.regular_block(() => {
|
|
1097
|
+
_$_.output_push('<header');
|
|
1098
|
+
_$_.output_push(' class="page-header"');
|
|
1099
|
+
_$_.output_push('>');
|
|
1046
1100
|
|
|
1047
1101
|
{
|
|
1048
|
-
|
|
1102
|
+
_$_.output_push('<div');
|
|
1103
|
+
_$_.output_push(' class="logo"');
|
|
1104
|
+
_$_.output_push('>');
|
|
1105
|
+
|
|
1106
|
+
{
|
|
1107
|
+
_$_.output_push('MyApp');
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
_$_.output_push('</div>');
|
|
1049
1111
|
}
|
|
1050
1112
|
|
|
1051
|
-
|
|
1052
|
-
}
|
|
1113
|
+
_$_.output_push('</header>');
|
|
1114
|
+
});
|
|
1053
1115
|
|
|
1054
|
-
__output.push('</header>');
|
|
1055
1116
|
_$_.pop_component();
|
|
1056
1117
|
}
|
|
1057
1118
|
|
|
1058
|
-
export function LayoutWithSidebarAndMain(
|
|
1119
|
+
export function LayoutWithSidebarAndMain() {
|
|
1059
1120
|
_$_.push_component();
|
|
1060
|
-
__output.push('<div');
|
|
1061
|
-
__output.push(' class="layout"');
|
|
1062
|
-
__output.push('>');
|
|
1063
|
-
|
|
1064
|
-
{
|
|
1065
|
-
{
|
|
1066
|
-
const comp = PageHeader;
|
|
1067
|
-
const args = [__output, {}];
|
|
1068
|
-
|
|
1069
|
-
comp(...args);
|
|
1070
|
-
}
|
|
1071
1121
|
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1122
|
+
_$_.regular_block(() => {
|
|
1123
|
+
_$_.output_push('<div');
|
|
1124
|
+
_$_.output_push(' class="layout"');
|
|
1125
|
+
_$_.output_push('>');
|
|
1075
1126
|
|
|
1076
1127
|
{
|
|
1077
1128
|
{
|
|
1078
|
-
const comp =
|
|
1079
|
-
const args = [
|
|
1129
|
+
const comp = PageHeader;
|
|
1130
|
+
const args = [{}];
|
|
1080
1131
|
|
|
1081
1132
|
comp(...args);
|
|
1082
1133
|
}
|
|
1083
1134
|
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1135
|
+
_$_.output_push('<div');
|
|
1136
|
+
_$_.output_push(' class="content-wrapper"');
|
|
1137
|
+
_$_.output_push('>');
|
|
1087
1138
|
|
|
1088
1139
|
{
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1140
|
+
{
|
|
1141
|
+
const comp = SideNav;
|
|
1142
|
+
const args = [{ currentPath: "/intro" }];
|
|
1143
|
+
|
|
1144
|
+
comp(...args);
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
_$_.output_push('<main');
|
|
1148
|
+
_$_.output_push(' class="main-content"');
|
|
1149
|
+
_$_.output_push('>');
|
|
1092
1150
|
|
|
1093
1151
|
{
|
|
1094
|
-
|
|
1095
|
-
|
|
1152
|
+
_$_.output_push('<div');
|
|
1153
|
+
_$_.output_push(' class="article"');
|
|
1154
|
+
_$_.output_push('>');
|
|
1096
1155
|
|
|
1097
1156
|
{
|
|
1098
|
-
|
|
1099
|
-
|
|
1157
|
+
_$_.output_push('<div');
|
|
1158
|
+
_$_.output_push('>');
|
|
1100
1159
|
|
|
1101
1160
|
{
|
|
1102
|
-
|
|
1103
|
-
|
|
1161
|
+
_$_.output_push('<h1');
|
|
1162
|
+
_$_.output_push('>');
|
|
1104
1163
|
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1164
|
+
{
|
|
1165
|
+
_$_.output_push('Introduction');
|
|
1166
|
+
}
|
|
1108
1167
|
|
|
1109
|
-
|
|
1110
|
-
|
|
1168
|
+
_$_.output_push('</h1>');
|
|
1169
|
+
_$_.output_push('<p');
|
|
1170
|
+
_$_.output_push('>');
|
|
1171
|
+
|
|
1172
|
+
{
|
|
1173
|
+
_$_.output_push('Welcome to the docs.');
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
_$_.output_push('</p>');
|
|
1111
1177
|
}
|
|
1112
1178
|
|
|
1113
|
-
|
|
1179
|
+
_$_.output_push('</div>');
|
|
1114
1180
|
}
|
|
1115
1181
|
|
|
1116
|
-
|
|
1117
|
-
|
|
1182
|
+
_$_.output_push('</div>');
|
|
1183
|
+
_$_.output_push('<!--[-->');
|
|
1118
1184
|
|
|
1119
|
-
|
|
1120
|
-
|
|
1185
|
+
if (true) {
|
|
1186
|
+
_$_.output_push('<div');
|
|
1187
|
+
_$_.output_push(' class="edit-link"');
|
|
1188
|
+
_$_.output_push('>');
|
|
1121
1189
|
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1190
|
+
{
|
|
1191
|
+
_$_.output_push('<a');
|
|
1192
|
+
_$_.output_push(' href="/edit"');
|
|
1193
|
+
_$_.output_push('>');
|
|
1126
1194
|
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
__output.push('>');
|
|
1195
|
+
{
|
|
1196
|
+
_$_.output_push('Edit');
|
|
1197
|
+
}
|
|
1131
1198
|
|
|
1132
|
-
|
|
1133
|
-
__output.push('Edit');
|
|
1199
|
+
_$_.output_push('</a>');
|
|
1134
1200
|
}
|
|
1135
1201
|
|
|
1136
|
-
|
|
1202
|
+
_$_.output_push('</div>');
|
|
1137
1203
|
}
|
|
1138
1204
|
|
|
1139
|
-
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
|
-
__output.push('<!--]-->');
|
|
1205
|
+
_$_.output_push('<!--]-->');
|
|
1143
1206
|
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1207
|
+
{
|
|
1208
|
+
const comp = PageHeader;
|
|
1209
|
+
const args = [{}];
|
|
1147
1210
|
|
|
1148
|
-
|
|
1211
|
+
comp(...args);
|
|
1212
|
+
}
|
|
1149
1213
|
}
|
|
1214
|
+
|
|
1215
|
+
_$_.output_push('</main>');
|
|
1150
1216
|
}
|
|
1151
1217
|
|
|
1152
|
-
|
|
1218
|
+
_$_.output_push('</div>');
|
|
1153
1219
|
}
|
|
1154
1220
|
|
|
1155
|
-
|
|
1156
|
-
}
|
|
1221
|
+
_$_.output_push('</div>');
|
|
1222
|
+
});
|
|
1157
1223
|
|
|
1158
|
-
__output.push('</div>');
|
|
1159
1224
|
_$_.pop_component();
|
|
1160
1225
|
}
|
|
1161
1226
|
|
|
1162
|
-
function ArticleWrapper(
|
|
1227
|
+
function ArticleWrapper({ children }) {
|
|
1163
1228
|
_$_.push_component();
|
|
1164
|
-
__output.push('<article');
|
|
1165
|
-
__output.push(' class="doc-content"');
|
|
1166
|
-
__output.push('>');
|
|
1167
1229
|
|
|
1168
|
-
{
|
|
1169
|
-
|
|
1170
|
-
|
|
1230
|
+
_$_.regular_block(() => {
|
|
1231
|
+
_$_.output_push('<article');
|
|
1232
|
+
_$_.output_push(' class="doc-content"');
|
|
1233
|
+
_$_.output_push('>');
|
|
1171
1234
|
|
|
1172
1235
|
{
|
|
1173
|
-
_$_.
|
|
1236
|
+
_$_.output_push('<div');
|
|
1237
|
+
_$_.output_push('>');
|
|
1238
|
+
|
|
1239
|
+
{
|
|
1240
|
+
_$_.render_expression(children);
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
_$_.output_push('</div>');
|
|
1174
1244
|
}
|
|
1175
1245
|
|
|
1176
|
-
|
|
1177
|
-
}
|
|
1246
|
+
_$_.output_push('</article>');
|
|
1247
|
+
});
|
|
1178
1248
|
|
|
1179
|
-
__output.push('</article>');
|
|
1180
1249
|
_$_.pop_component();
|
|
1181
1250
|
}
|
|
1182
1251
|
|
|
1183
|
-
function SimpleFooter(
|
|
1252
|
+
function SimpleFooter() {
|
|
1184
1253
|
_$_.push_component();
|
|
1185
|
-
__output.push('<footer');
|
|
1186
|
-
__output.push(' class="doc-footer"');
|
|
1187
|
-
__output.push('>');
|
|
1188
1254
|
|
|
1189
|
-
{
|
|
1190
|
-
|
|
1191
|
-
|
|
1255
|
+
_$_.regular_block(() => {
|
|
1256
|
+
_$_.output_push('<footer');
|
|
1257
|
+
_$_.output_push(' class="doc-footer"');
|
|
1258
|
+
_$_.output_push('>');
|
|
1259
|
+
|
|
1260
|
+
{
|
|
1261
|
+
_$_.output_push('Footer');
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
_$_.output_push('</footer>');
|
|
1265
|
+
});
|
|
1192
1266
|
|
|
1193
|
-
__output.push('</footer>');
|
|
1194
1267
|
_$_.pop_component();
|
|
1195
1268
|
}
|
|
1196
1269
|
|
|
1197
|
-
export function ArticleWithChildrenThenSibling(
|
|
1270
|
+
export function ArticleWithChildrenThenSibling() {
|
|
1198
1271
|
_$_.push_component();
|
|
1199
|
-
__output.push('<div');
|
|
1200
|
-
__output.push(' class="content-container"');
|
|
1201
|
-
__output.push('>');
|
|
1202
1272
|
|
|
1203
|
-
{
|
|
1204
|
-
|
|
1205
|
-
|
|
1273
|
+
_$_.regular_block(() => {
|
|
1274
|
+
_$_.output_push('<div');
|
|
1275
|
+
_$_.output_push(' class="content-container"');
|
|
1276
|
+
_$_.output_push('>');
|
|
1206
1277
|
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
children: _$_.ripple_element(function render_children(__output) {
|
|
1211
|
-
_$_.push_component();
|
|
1212
|
-
__output.push('<h1');
|
|
1213
|
-
__output.push('>');
|
|
1278
|
+
{
|
|
1279
|
+
{
|
|
1280
|
+
const comp = ArticleWrapper;
|
|
1214
1281
|
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1282
|
+
const args = [
|
|
1283
|
+
{
|
|
1284
|
+
children: _$_.ripple_element(function render_children() {
|
|
1285
|
+
_$_.push_component();
|
|
1286
|
+
_$_.output_push('<h1');
|
|
1287
|
+
_$_.output_push('>');
|
|
1218
1288
|
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1289
|
+
{
|
|
1290
|
+
_$_.output_push('Title');
|
|
1291
|
+
}
|
|
1222
1292
|
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1293
|
+
_$_.output_push('</h1>');
|
|
1294
|
+
_$_.output_push('<p');
|
|
1295
|
+
_$_.output_push('>');
|
|
1226
1296
|
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
}
|
|
1231
|
-
];
|
|
1297
|
+
{
|
|
1298
|
+
_$_.output_push('Content goes here.');
|
|
1299
|
+
}
|
|
1232
1300
|
|
|
1233
|
-
|
|
1234
|
-
|
|
1301
|
+
_$_.output_push('</p>');
|
|
1302
|
+
_$_.pop_component();
|
|
1303
|
+
})
|
|
1304
|
+
}
|
|
1305
|
+
];
|
|
1235
1306
|
|
|
1236
|
-
|
|
1307
|
+
comp(...args);
|
|
1308
|
+
}
|
|
1237
1309
|
|
|
1238
|
-
|
|
1239
|
-
__output.push('<div');
|
|
1240
|
-
__output.push(' class="edit-link"');
|
|
1241
|
-
__output.push('>');
|
|
1310
|
+
_$_.output_push('<!--[-->');
|
|
1242
1311
|
|
|
1243
|
-
{
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1312
|
+
if (true) {
|
|
1313
|
+
_$_.output_push('<div');
|
|
1314
|
+
_$_.output_push(' class="edit-link"');
|
|
1315
|
+
_$_.output_push('>');
|
|
1247
1316
|
|
|
1248
1317
|
{
|
|
1249
|
-
|
|
1318
|
+
_$_.output_push('<a');
|
|
1319
|
+
_$_.output_push(' href="/edit"');
|
|
1320
|
+
_$_.output_push('>');
|
|
1321
|
+
|
|
1322
|
+
{
|
|
1323
|
+
_$_.output_push('Edit');
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
_$_.output_push('</a>');
|
|
1250
1327
|
}
|
|
1251
1328
|
|
|
1252
|
-
|
|
1329
|
+
_$_.output_push('</div>');
|
|
1253
1330
|
}
|
|
1254
1331
|
|
|
1255
|
-
|
|
1256
|
-
|
|
1332
|
+
_$_.output_push('<!--]-->');
|
|
1333
|
+
_$_.output_push('<!--[-->');
|
|
1257
1334
|
|
|
1258
|
-
|
|
1259
|
-
|
|
1335
|
+
if (true) {
|
|
1336
|
+
_$_.output_push('<nav');
|
|
1337
|
+
_$_.output_push(' class="prev-next"');
|
|
1338
|
+
_$_.output_push('>');
|
|
1260
1339
|
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1340
|
+
{
|
|
1341
|
+
_$_.output_push('<a');
|
|
1342
|
+
_$_.output_push(' href="/prev"');
|
|
1343
|
+
_$_.output_push('>');
|
|
1265
1344
|
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
__output.push('>');
|
|
1345
|
+
{
|
|
1346
|
+
_$_.output_push('Previous');
|
|
1347
|
+
}
|
|
1270
1348
|
|
|
1271
|
-
|
|
1272
|
-
__output.push('Previous');
|
|
1349
|
+
_$_.output_push('</a>');
|
|
1273
1350
|
}
|
|
1274
1351
|
|
|
1275
|
-
|
|
1352
|
+
_$_.output_push('</nav>');
|
|
1276
1353
|
}
|
|
1277
1354
|
|
|
1278
|
-
|
|
1279
|
-
}
|
|
1280
|
-
|
|
1281
|
-
__output.push('<!--]-->');
|
|
1355
|
+
_$_.output_push('<!--]-->');
|
|
1282
1356
|
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1357
|
+
{
|
|
1358
|
+
const comp = SimpleFooter;
|
|
1359
|
+
const args = [{}];
|
|
1286
1360
|
|
|
1287
|
-
|
|
1361
|
+
comp(...args);
|
|
1362
|
+
}
|
|
1288
1363
|
}
|
|
1289
|
-
}
|
|
1290
1364
|
|
|
1291
|
-
|
|
1365
|
+
_$_.output_push('</div>');
|
|
1366
|
+
});
|
|
1367
|
+
|
|
1292
1368
|
_$_.pop_component();
|
|
1293
1369
|
}
|
|
1294
1370
|
|
|
1295
|
-
export function ArticleWithHtmlChildThenSibling(
|
|
1371
|
+
export function ArticleWithHtmlChildThenSibling() {
|
|
1296
1372
|
_$_.push_component();
|
|
1297
1373
|
|
|
1298
1374
|
const htmlContent = '<pre><code>const x = 1;</code></pre>';
|
|
1299
1375
|
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1376
|
+
_$_.regular_block(() => {
|
|
1377
|
+
_$_.output_push('<div');
|
|
1378
|
+
_$_.output_push(' class="content-container"');
|
|
1379
|
+
_$_.output_push('>');
|
|
1303
1380
|
|
|
1304
|
-
{
|
|
1305
1381
|
{
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
const args = [
|
|
1309
|
-
__output,
|
|
1310
|
-
{
|
|
1311
|
-
children: _$_.ripple_element(function render_children(__output) {
|
|
1312
|
-
_$_.push_component();
|
|
1313
|
-
__output.push('<div');
|
|
1314
|
-
__output.push(' class="doc-content"');
|
|
1315
|
-
__output.push('>');
|
|
1382
|
+
{
|
|
1383
|
+
const comp = ArticleWrapper;
|
|
1316
1384
|
|
|
1317
|
-
|
|
1318
|
-
|
|
1385
|
+
const args = [
|
|
1386
|
+
{
|
|
1387
|
+
children: _$_.ripple_element(function render_children() {
|
|
1388
|
+
_$_.push_component();
|
|
1389
|
+
_$_.output_push('<div');
|
|
1390
|
+
_$_.output_push(' class="doc-content"');
|
|
1391
|
+
_$_.output_push('>');
|
|
1319
1392
|
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
__output.push('<!---->');
|
|
1323
|
-
}
|
|
1393
|
+
{
|
|
1394
|
+
const html_value_17 = String(htmlContent ?? '');
|
|
1324
1395
|
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
];
|
|
1396
|
+
_$_.output_push('<!--' + _$_.hash(html_value_17) + '-->');
|
|
1397
|
+
_$_.output_push(html_value_17);
|
|
1398
|
+
_$_.output_push('<!---->');
|
|
1399
|
+
}
|
|
1330
1400
|
|
|
1331
|
-
|
|
1332
|
-
|
|
1401
|
+
_$_.output_push('</div>');
|
|
1402
|
+
_$_.pop_component();
|
|
1403
|
+
})
|
|
1404
|
+
}
|
|
1405
|
+
];
|
|
1333
1406
|
|
|
1334
|
-
|
|
1407
|
+
comp(...args);
|
|
1408
|
+
}
|
|
1335
1409
|
|
|
1336
|
-
|
|
1337
|
-
__output.push('<div');
|
|
1338
|
-
__output.push(' class="edit-link"');
|
|
1339
|
-
__output.push('>');
|
|
1410
|
+
_$_.output_push('<!--[-->');
|
|
1340
1411
|
|
|
1341
|
-
{
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1412
|
+
if (true) {
|
|
1413
|
+
_$_.output_push('<div');
|
|
1414
|
+
_$_.output_push(' class="edit-link"');
|
|
1415
|
+
_$_.output_push('>');
|
|
1345
1416
|
|
|
1346
1417
|
{
|
|
1347
|
-
|
|
1418
|
+
_$_.output_push('<a');
|
|
1419
|
+
_$_.output_push(' href="/edit"');
|
|
1420
|
+
_$_.output_push('>');
|
|
1421
|
+
|
|
1422
|
+
{
|
|
1423
|
+
_$_.output_push('Edit');
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1426
|
+
_$_.output_push('</a>');
|
|
1348
1427
|
}
|
|
1349
1428
|
|
|
1350
|
-
|
|
1429
|
+
_$_.output_push('</div>');
|
|
1351
1430
|
}
|
|
1352
1431
|
|
|
1353
|
-
|
|
1354
|
-
}
|
|
1355
|
-
|
|
1356
|
-
__output.push('<!--]-->');
|
|
1432
|
+
_$_.output_push('<!--]-->');
|
|
1357
1433
|
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1434
|
+
{
|
|
1435
|
+
const comp = SimpleFooter;
|
|
1436
|
+
const args = [{}];
|
|
1361
1437
|
|
|
1362
|
-
|
|
1438
|
+
comp(...args);
|
|
1439
|
+
}
|
|
1363
1440
|
}
|
|
1364
|
-
}
|
|
1365
1441
|
|
|
1366
|
-
|
|
1442
|
+
_$_.output_push('</div>');
|
|
1443
|
+
});
|
|
1444
|
+
|
|
1367
1445
|
_$_.pop_component();
|
|
1368
1446
|
}
|
|
1369
1447
|
|
|
1370
|
-
function InlineArticleLayout(
|
|
1448
|
+
function InlineArticleLayout({ children }) {
|
|
1371
1449
|
_$_.push_component();
|
|
1372
|
-
__output.push('<div');
|
|
1373
|
-
__output.push(' class="content-container"');
|
|
1374
|
-
__output.push('>');
|
|
1375
1450
|
|
|
1376
|
-
{
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1451
|
+
_$_.regular_block(() => {
|
|
1452
|
+
_$_.output_push('<div');
|
|
1453
|
+
_$_.output_push(' class="content-container"');
|
|
1454
|
+
_$_.output_push('>');
|
|
1380
1455
|
|
|
1381
1456
|
{
|
|
1382
|
-
|
|
1383
|
-
|
|
1457
|
+
_$_.output_push('<article');
|
|
1458
|
+
_$_.output_push(' class="doc-content"');
|
|
1459
|
+
_$_.output_push('>');
|
|
1384
1460
|
|
|
1385
1461
|
{
|
|
1386
|
-
_$_.
|
|
1462
|
+
_$_.output_push('<div');
|
|
1463
|
+
_$_.output_push('>');
|
|
1464
|
+
|
|
1465
|
+
{
|
|
1466
|
+
_$_.render_expression(children);
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
_$_.output_push('</div>');
|
|
1387
1470
|
}
|
|
1388
1471
|
|
|
1389
|
-
|
|
1390
|
-
|
|
1472
|
+
_$_.output_push('</article>');
|
|
1473
|
+
_$_.output_push('<!--[-->');
|
|
1391
1474
|
|
|
1392
|
-
|
|
1393
|
-
|
|
1475
|
+
if (true) {
|
|
1476
|
+
_$_.output_push('<div');
|
|
1477
|
+
_$_.output_push(' class="edit-link"');
|
|
1478
|
+
_$_.output_push('>');
|
|
1394
1479
|
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1480
|
+
{
|
|
1481
|
+
_$_.output_push('<a');
|
|
1482
|
+
_$_.output_push(' href="/edit"');
|
|
1483
|
+
_$_.output_push('>');
|
|
1399
1484
|
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
__output.push('>');
|
|
1485
|
+
{
|
|
1486
|
+
_$_.output_push('Edit');
|
|
1487
|
+
}
|
|
1404
1488
|
|
|
1405
|
-
|
|
1406
|
-
__output.push('Edit');
|
|
1489
|
+
_$_.output_push('</a>');
|
|
1407
1490
|
}
|
|
1408
1491
|
|
|
1409
|
-
|
|
1492
|
+
_$_.output_push('</div>');
|
|
1410
1493
|
}
|
|
1411
1494
|
|
|
1412
|
-
|
|
1413
|
-
}
|
|
1414
|
-
|
|
1415
|
-
__output.push('<!--]-->');
|
|
1495
|
+
_$_.output_push('<!--]-->');
|
|
1416
1496
|
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1497
|
+
{
|
|
1498
|
+
const comp = SimpleFooter;
|
|
1499
|
+
const args = [{}];
|
|
1420
1500
|
|
|
1421
|
-
|
|
1501
|
+
comp(...args);
|
|
1502
|
+
}
|
|
1422
1503
|
}
|
|
1423
|
-
}
|
|
1424
1504
|
|
|
1425
|
-
|
|
1505
|
+
_$_.output_push('</div>');
|
|
1506
|
+
});
|
|
1507
|
+
|
|
1426
1508
|
_$_.pop_component();
|
|
1427
1509
|
}
|
|
1428
1510
|
|
|
1429
|
-
export function InlineArticleWithHtmlChild(
|
|
1511
|
+
export function InlineArticleWithHtmlChild() {
|
|
1430
1512
|
_$_.push_component();
|
|
1431
1513
|
|
|
1432
1514
|
const htmlContent = '<pre><code>const x = 1;</code></pre>';
|
|
1433
1515
|
|
|
1434
|
-
{
|
|
1435
|
-
|
|
1516
|
+
_$_.regular_block(() => {
|
|
1517
|
+
{
|
|
1518
|
+
const comp = InlineArticleLayout;
|
|
1436
1519
|
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
__output.push('>');
|
|
1520
|
+
const args = [
|
|
1521
|
+
{
|
|
1522
|
+
children: _$_.ripple_element(function render_children() {
|
|
1523
|
+
_$_.push_component();
|
|
1524
|
+
_$_.output_push('<div');
|
|
1525
|
+
_$_.output_push(' class="doc-content"');
|
|
1526
|
+
_$_.output_push('>');
|
|
1445
1527
|
|
|
1446
|
-
|
|
1447
|
-
|
|
1528
|
+
{
|
|
1529
|
+
const html_value_18 = String(htmlContent ?? '');
|
|
1448
1530
|
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1531
|
+
_$_.output_push('<!--' + _$_.hash(html_value_18) + '-->');
|
|
1532
|
+
_$_.output_push(html_value_18);
|
|
1533
|
+
_$_.output_push('<!---->');
|
|
1534
|
+
}
|
|
1453
1535
|
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1536
|
+
_$_.output_push('</div>');
|
|
1537
|
+
_$_.pop_component();
|
|
1538
|
+
})
|
|
1539
|
+
}
|
|
1540
|
+
];
|
|
1459
1541
|
|
|
1460
|
-
|
|
1461
|
-
|
|
1542
|
+
comp(...args);
|
|
1543
|
+
}
|
|
1544
|
+
});
|
|
1462
1545
|
|
|
1463
1546
|
_$_.pop_component();
|
|
1464
1547
|
}
|
|
1465
1548
|
|
|
1466
|
-
function HeaderStub(
|
|
1549
|
+
function HeaderStub() {
|
|
1467
1550
|
_$_.push_component();
|
|
1468
|
-
__output.push('<header');
|
|
1469
|
-
__output.push(' class="header"');
|
|
1470
|
-
__output.push('>');
|
|
1471
1551
|
|
|
1472
|
-
{
|
|
1473
|
-
|
|
1474
|
-
|
|
1552
|
+
_$_.regular_block(() => {
|
|
1553
|
+
_$_.output_push('<header');
|
|
1554
|
+
_$_.output_push(' class="header"');
|
|
1555
|
+
_$_.output_push('>');
|
|
1556
|
+
|
|
1557
|
+
{
|
|
1558
|
+
_$_.output_push('Header');
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
_$_.output_push('</header>');
|
|
1562
|
+
});
|
|
1475
1563
|
|
|
1476
|
-
__output.push('</header>');
|
|
1477
1564
|
_$_.pop_component();
|
|
1478
1565
|
}
|
|
1479
1566
|
|
|
1480
|
-
function SidebarStub(
|
|
1567
|
+
function SidebarStub() {
|
|
1481
1568
|
_$_.push_component();
|
|
1482
|
-
__output.push('<aside');
|
|
1483
|
-
__output.push(' class="sidebar"');
|
|
1484
|
-
__output.push('>');
|
|
1485
1569
|
|
|
1486
|
-
{
|
|
1487
|
-
|
|
1488
|
-
|
|
1570
|
+
_$_.regular_block(() => {
|
|
1571
|
+
_$_.output_push('<aside');
|
|
1572
|
+
_$_.output_push(' class="sidebar"');
|
|
1573
|
+
_$_.output_push('>');
|
|
1574
|
+
|
|
1575
|
+
{
|
|
1576
|
+
_$_.output_push('Sidebar');
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1579
|
+
_$_.output_push('</aside>');
|
|
1580
|
+
});
|
|
1489
1581
|
|
|
1490
|
-
__output.push('</aside>');
|
|
1491
1582
|
_$_.pop_component();
|
|
1492
1583
|
}
|
|
1493
1584
|
|
|
1494
|
-
function FooterStub(
|
|
1585
|
+
function FooterStub() {
|
|
1495
1586
|
_$_.push_component();
|
|
1496
|
-
__output.push('<footer');
|
|
1497
|
-
__output.push(' class="footer"');
|
|
1498
|
-
__output.push('>');
|
|
1499
1587
|
|
|
1500
|
-
{
|
|
1501
|
-
|
|
1502
|
-
|
|
1588
|
+
_$_.regular_block(() => {
|
|
1589
|
+
_$_.output_push('<footer');
|
|
1590
|
+
_$_.output_push(' class="footer"');
|
|
1591
|
+
_$_.output_push('>');
|
|
1592
|
+
|
|
1593
|
+
{
|
|
1594
|
+
_$_.output_push('Footer');
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
_$_.output_push('</footer>');
|
|
1598
|
+
});
|
|
1503
1599
|
|
|
1504
|
-
__output.push('</footer>');
|
|
1505
1600
|
_$_.pop_component();
|
|
1506
1601
|
}
|
|
1507
1602
|
|
|
1508
|
-
function DocsLayoutInner(
|
|
1603
|
+
function DocsLayoutInner({ children, editPath = '', nextLink = null }) {
|
|
1509
1604
|
_$_.push_component();
|
|
1510
|
-
__output.push('<div');
|
|
1511
|
-
__output.push(' class="layout"');
|
|
1512
|
-
__output.push('>');
|
|
1513
|
-
|
|
1514
|
-
{
|
|
1515
|
-
{
|
|
1516
|
-
const comp = HeaderStub;
|
|
1517
|
-
const args = [__output, {}];
|
|
1518
|
-
|
|
1519
|
-
comp(...args);
|
|
1520
|
-
}
|
|
1521
1605
|
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1606
|
+
_$_.regular_block(() => {
|
|
1607
|
+
_$_.output_push('<div');
|
|
1608
|
+
_$_.output_push(' class="layout"');
|
|
1609
|
+
_$_.output_push('>');
|
|
1525
1610
|
|
|
1526
1611
|
{
|
|
1527
1612
|
{
|
|
1528
|
-
const comp =
|
|
1529
|
-
const args = [
|
|
1613
|
+
const comp = HeaderStub;
|
|
1614
|
+
const args = [{}];
|
|
1530
1615
|
|
|
1531
1616
|
comp(...args);
|
|
1532
1617
|
}
|
|
1533
1618
|
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1619
|
+
_$_.output_push('<div');
|
|
1620
|
+
_$_.output_push(' class="docs-wrapper"');
|
|
1621
|
+
_$_.output_push('>');
|
|
1537
1622
|
|
|
1538
1623
|
{
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1624
|
+
{
|
|
1625
|
+
const comp = SidebarStub;
|
|
1626
|
+
const args = [{}];
|
|
1627
|
+
|
|
1628
|
+
comp(...args);
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1631
|
+
_$_.output_push('<main');
|
|
1632
|
+
_$_.output_push(' class="docs-main"');
|
|
1633
|
+
_$_.output_push('>');
|
|
1542
1634
|
|
|
1543
1635
|
{
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1636
|
+
_$_.output_push('<div');
|
|
1637
|
+
_$_.output_push(' class="docs-container"');
|
|
1638
|
+
_$_.output_push('>');
|
|
1547
1639
|
|
|
1548
1640
|
{
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1641
|
+
_$_.output_push('<div');
|
|
1642
|
+
_$_.output_push(' class="content"');
|
|
1643
|
+
_$_.output_push('>');
|
|
1552
1644
|
|
|
1553
1645
|
{
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1646
|
+
_$_.output_push('<div');
|
|
1647
|
+
_$_.output_push(' class="content-container"');
|
|
1648
|
+
_$_.output_push('>');
|
|
1557
1649
|
|
|
1558
1650
|
{
|
|
1559
|
-
|
|
1560
|
-
|
|
1651
|
+
_$_.output_push('<article');
|
|
1652
|
+
_$_.output_push(' class="doc-content"');
|
|
1653
|
+
_$_.output_push('>');
|
|
1561
1654
|
|
|
1562
1655
|
{
|
|
1563
|
-
_$_.
|
|
1564
|
-
|
|
1656
|
+
_$_.output_push('<div');
|
|
1657
|
+
_$_.output_push('>');
|
|
1565
1658
|
|
|
1566
|
-
|
|
1567
|
-
|
|
1659
|
+
{
|
|
1660
|
+
_$_.render_expression(children);
|
|
1661
|
+
}
|
|
1568
1662
|
|
|
1569
|
-
|
|
1570
|
-
|
|
1663
|
+
_$_.output_push('</div>');
|
|
1664
|
+
}
|
|
1571
1665
|
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
__output.push(' class="edit-link"');
|
|
1575
|
-
__output.push('>');
|
|
1666
|
+
_$_.output_push('</article>');
|
|
1667
|
+
_$_.output_push('<!--[-->');
|
|
1576
1668
|
|
|
1577
|
-
{
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1669
|
+
if (editPath) {
|
|
1670
|
+
_$_.output_push('<div');
|
|
1671
|
+
_$_.output_push(' class="edit-link"');
|
|
1672
|
+
_$_.output_push('>');
|
|
1581
1673
|
|
|
1582
1674
|
{
|
|
1583
|
-
|
|
1675
|
+
_$_.output_push('<a');
|
|
1676
|
+
_$_.output_push(' href="/edit"');
|
|
1677
|
+
_$_.output_push('>');
|
|
1678
|
+
|
|
1679
|
+
{
|
|
1680
|
+
_$_.output_push('Edit on GitHub');
|
|
1681
|
+
}
|
|
1682
|
+
|
|
1683
|
+
_$_.output_push('</a>');
|
|
1584
1684
|
}
|
|
1585
1685
|
|
|
1586
|
-
|
|
1686
|
+
_$_.output_push('</div>');
|
|
1587
1687
|
}
|
|
1588
1688
|
|
|
1589
|
-
|
|
1590
|
-
|
|
1689
|
+
_$_.output_push('<!--]-->');
|
|
1690
|
+
_$_.output_push('<!--[-->');
|
|
1591
1691
|
|
|
1592
|
-
|
|
1593
|
-
|
|
1692
|
+
if (nextLink) {
|
|
1693
|
+
_$_.output_push('<nav');
|
|
1694
|
+
_$_.output_push(' class="prev-next"');
|
|
1695
|
+
_$_.output_push('>');
|
|
1594
1696
|
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1697
|
+
{
|
|
1698
|
+
_$_.output_push('<a');
|
|
1699
|
+
_$_.output_push(_$_.attr('href', nextLink.href, false));
|
|
1700
|
+
_$_.output_push('>');
|
|
1599
1701
|
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
__output.push('>');
|
|
1702
|
+
{
|
|
1703
|
+
_$_.output_push(_$_.escape(nextLink.text));
|
|
1704
|
+
}
|
|
1604
1705
|
|
|
1605
|
-
|
|
1606
|
-
__output.push(_$_.escape(nextLink.text));
|
|
1706
|
+
_$_.output_push('</a>');
|
|
1607
1707
|
}
|
|
1608
1708
|
|
|
1609
|
-
|
|
1709
|
+
_$_.output_push('</nav>');
|
|
1610
1710
|
}
|
|
1611
1711
|
|
|
1612
|
-
|
|
1613
|
-
}
|
|
1614
|
-
|
|
1615
|
-
__output.push('<!--]-->');
|
|
1712
|
+
_$_.output_push('<!--]-->');
|
|
1616
1713
|
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1714
|
+
{
|
|
1715
|
+
const comp = FooterStub;
|
|
1716
|
+
const args = [{}];
|
|
1620
1717
|
|
|
1621
|
-
|
|
1718
|
+
comp(...args);
|
|
1719
|
+
}
|
|
1622
1720
|
}
|
|
1721
|
+
|
|
1722
|
+
_$_.output_push('</div>');
|
|
1623
1723
|
}
|
|
1624
1724
|
|
|
1625
|
-
|
|
1725
|
+
_$_.output_push('</div>');
|
|
1626
1726
|
}
|
|
1627
1727
|
|
|
1628
|
-
|
|
1728
|
+
_$_.output_push('</div>');
|
|
1629
1729
|
}
|
|
1630
1730
|
|
|
1631
|
-
|
|
1731
|
+
_$_.output_push('</main>');
|
|
1632
1732
|
}
|
|
1633
1733
|
|
|
1634
|
-
|
|
1734
|
+
_$_.output_push('</div>');
|
|
1635
1735
|
}
|
|
1636
1736
|
|
|
1637
|
-
|
|
1638
|
-
}
|
|
1737
|
+
_$_.output_push('</div>');
|
|
1738
|
+
});
|
|
1639
1739
|
|
|
1640
|
-
__output.push('</div>');
|
|
1641
1740
|
_$_.pop_component();
|
|
1642
1741
|
}
|
|
1643
1742
|
|
|
1644
|
-
export function DocsLayoutWithData(
|
|
1743
|
+
export function DocsLayoutWithData() {
|
|
1645
1744
|
_$_.push_component();
|
|
1646
1745
|
|
|
1647
1746
|
const htmlContent = '<h1>Title</h1><p>Content</p>';
|
|
1648
1747
|
|
|
1649
|
-
{
|
|
1650
|
-
|
|
1748
|
+
_$_.regular_block(() => {
|
|
1749
|
+
{
|
|
1750
|
+
const comp = DocsLayoutInner;
|
|
1651
1751
|
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
__output.push('>');
|
|
1752
|
+
const args = [
|
|
1753
|
+
{
|
|
1754
|
+
editPath: "docs/styling.md",
|
|
1755
|
+
nextLink: { href: '/next', text: 'Next' },
|
|
1756
|
+
children: _$_.ripple_element(function render_children() {
|
|
1757
|
+
_$_.push_component();
|
|
1758
|
+
_$_.output_push('<div');
|
|
1759
|
+
_$_.output_push(' class="doc-content"');
|
|
1760
|
+
_$_.output_push('>');
|
|
1662
1761
|
|
|
1663
|
-
|
|
1664
|
-
|
|
1762
|
+
{
|
|
1763
|
+
const html_value_19 = String(htmlContent ?? '');
|
|
1665
1764
|
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1765
|
+
_$_.output_push('<!--' + _$_.hash(html_value_19) + '-->');
|
|
1766
|
+
_$_.output_push(html_value_19);
|
|
1767
|
+
_$_.output_push('<!---->');
|
|
1768
|
+
}
|
|
1670
1769
|
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1770
|
+
_$_.output_push('</div>');
|
|
1771
|
+
_$_.pop_component();
|
|
1772
|
+
})
|
|
1773
|
+
}
|
|
1774
|
+
];
|
|
1676
1775
|
|
|
1677
|
-
|
|
1678
|
-
|
|
1776
|
+
comp(...args);
|
|
1777
|
+
}
|
|
1778
|
+
});
|
|
1679
1779
|
|
|
1680
1780
|
_$_.pop_component();
|
|
1681
1781
|
}
|
|
1682
1782
|
|
|
1683
|
-
export function DocsLayoutWithoutData(
|
|
1783
|
+
export function DocsLayoutWithoutData() {
|
|
1684
1784
|
_$_.push_component();
|
|
1685
1785
|
|
|
1686
1786
|
const htmlContent = undefined;
|
|
1687
1787
|
|
|
1688
|
-
{
|
|
1689
|
-
|
|
1788
|
+
_$_.regular_block(() => {
|
|
1789
|
+
{
|
|
1790
|
+
const comp = DocsLayoutInner;
|
|
1690
1791
|
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
__output.push('>');
|
|
1792
|
+
const args = [
|
|
1793
|
+
{
|
|
1794
|
+
children: _$_.ripple_element(function render_children() {
|
|
1795
|
+
_$_.push_component();
|
|
1796
|
+
_$_.output_push('<div');
|
|
1797
|
+
_$_.output_push(' class="doc-content"');
|
|
1798
|
+
_$_.output_push('>');
|
|
1699
1799
|
|
|
1700
|
-
|
|
1701
|
-
|
|
1800
|
+
{
|
|
1801
|
+
const html_value_20 = String(htmlContent ?? '');
|
|
1702
1802
|
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1803
|
+
_$_.output_push('<!--' + _$_.hash(html_value_20) + '-->');
|
|
1804
|
+
_$_.output_push(html_value_20);
|
|
1805
|
+
_$_.output_push('<!---->');
|
|
1806
|
+
}
|
|
1707
1807
|
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1808
|
+
_$_.output_push('</div>');
|
|
1809
|
+
_$_.pop_component();
|
|
1810
|
+
})
|
|
1811
|
+
}
|
|
1812
|
+
];
|
|
1713
1813
|
|
|
1714
|
-
|
|
1715
|
-
|
|
1814
|
+
comp(...args);
|
|
1815
|
+
}
|
|
1816
|
+
});
|
|
1716
1817
|
|
|
1717
1818
|
_$_.pop_component();
|
|
1718
1819
|
}
|
|
1719
1820
|
|
|
1720
1821
|
function DocsLayoutExact(
|
|
1721
|
-
__output,
|
|
1722
1822
|
{
|
|
1723
1823
|
children,
|
|
1724
1824
|
editPath = '',
|
|
@@ -1728,274 +1828,279 @@ function DocsLayoutExact(
|
|
|
1728
1828
|
}
|
|
1729
1829
|
) {
|
|
1730
1830
|
_$_.push_component();
|
|
1731
|
-
__output.push('<div');
|
|
1732
|
-
__output.push(' class="layout"');
|
|
1733
|
-
__output.push('>');
|
|
1734
|
-
|
|
1735
|
-
{
|
|
1736
|
-
{
|
|
1737
|
-
const comp = HeaderStub;
|
|
1738
|
-
const args = [__output, {}];
|
|
1739
1831
|
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
__output.push(' class="docs-wrapper"');
|
|
1745
|
-
__output.push('>');
|
|
1832
|
+
_$_.regular_block(() => {
|
|
1833
|
+
_$_.output_push('<div');
|
|
1834
|
+
_$_.output_push(' class="layout"');
|
|
1835
|
+
_$_.output_push('>');
|
|
1746
1836
|
|
|
1747
1837
|
{
|
|
1748
1838
|
{
|
|
1749
|
-
const comp =
|
|
1750
|
-
const args = [
|
|
1839
|
+
const comp = HeaderStub;
|
|
1840
|
+
const args = [{}];
|
|
1751
1841
|
|
|
1752
1842
|
comp(...args);
|
|
1753
1843
|
}
|
|
1754
1844
|
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1845
|
+
_$_.output_push('<div');
|
|
1846
|
+
_$_.output_push(' class="docs-wrapper"');
|
|
1847
|
+
_$_.output_push('>');
|
|
1758
1848
|
|
|
1759
1849
|
{
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1850
|
+
{
|
|
1851
|
+
const comp = SidebarStub;
|
|
1852
|
+
const args = [{}];
|
|
1853
|
+
|
|
1854
|
+
comp(...args);
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1857
|
+
_$_.output_push('<main');
|
|
1858
|
+
_$_.output_push(' class="docs-main"');
|
|
1859
|
+
_$_.output_push('>');
|
|
1763
1860
|
|
|
1764
1861
|
{
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1862
|
+
_$_.output_push('<div');
|
|
1863
|
+
_$_.output_push(' class="docs-container"');
|
|
1864
|
+
_$_.output_push('>');
|
|
1768
1865
|
|
|
1769
1866
|
{
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1867
|
+
_$_.output_push('<div');
|
|
1868
|
+
_$_.output_push(' class="content"');
|
|
1869
|
+
_$_.output_push('>');
|
|
1773
1870
|
|
|
1774
1871
|
{
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1872
|
+
_$_.output_push('<div');
|
|
1873
|
+
_$_.output_push(' class="content-container"');
|
|
1874
|
+
_$_.output_push('>');
|
|
1778
1875
|
|
|
1779
1876
|
{
|
|
1780
|
-
|
|
1781
|
-
|
|
1877
|
+
_$_.output_push('<article');
|
|
1878
|
+
_$_.output_push(' class="doc-content"');
|
|
1879
|
+
_$_.output_push('>');
|
|
1782
1880
|
|
|
1783
1881
|
{
|
|
1784
|
-
_$_.
|
|
1785
|
-
|
|
1882
|
+
_$_.output_push('<div');
|
|
1883
|
+
_$_.output_push('>');
|
|
1786
1884
|
|
|
1787
|
-
|
|
1788
|
-
|
|
1885
|
+
{
|
|
1886
|
+
_$_.render_expression(children);
|
|
1887
|
+
}
|
|
1789
1888
|
|
|
1790
|
-
|
|
1791
|
-
|
|
1889
|
+
_$_.output_push('</div>');
|
|
1890
|
+
}
|
|
1792
1891
|
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
__output.push(' class="edit-link"');
|
|
1796
|
-
__output.push('>');
|
|
1892
|
+
_$_.output_push('</article>');
|
|
1893
|
+
_$_.output_push('<!--[-->');
|
|
1797
1894
|
|
|
1798
|
-
{
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1895
|
+
if (editPath) {
|
|
1896
|
+
_$_.output_push('<div');
|
|
1897
|
+
_$_.output_push(' class="edit-link"');
|
|
1898
|
+
_$_.output_push('>');
|
|
1802
1899
|
|
|
1803
1900
|
{
|
|
1804
|
-
|
|
1901
|
+
_$_.output_push('<a');
|
|
1902
|
+
_$_.output_push(_$_.attr('href', `/edit/${editPath}`, false));
|
|
1903
|
+
_$_.output_push('>');
|
|
1904
|
+
|
|
1905
|
+
{
|
|
1906
|
+
_$_.output_push('Edit on GitHub');
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
_$_.output_push('</a>');
|
|
1805
1910
|
}
|
|
1806
1911
|
|
|
1807
|
-
|
|
1912
|
+
_$_.output_push('</div>');
|
|
1808
1913
|
}
|
|
1809
1914
|
|
|
1810
|
-
|
|
1811
|
-
|
|
1915
|
+
_$_.output_push('<!--]-->');
|
|
1916
|
+
_$_.output_push('<!--[-->');
|
|
1812
1917
|
|
|
1813
|
-
|
|
1814
|
-
|
|
1918
|
+
if (prevLink || nextLink) {
|
|
1919
|
+
_$_.output_push('<nav');
|
|
1920
|
+
_$_.output_push(' class="prev-next"');
|
|
1921
|
+
_$_.output_push('>');
|
|
1815
1922
|
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
__output.push(' class="prev-next"');
|
|
1819
|
-
__output.push('>');
|
|
1923
|
+
{
|
|
1924
|
+
_$_.output_push('<!--[-->');
|
|
1820
1925
|
|
|
1821
|
-
|
|
1822
|
-
|
|
1926
|
+
if (prevLink) {
|
|
1927
|
+
_$_.output_push('<a');
|
|
1928
|
+
_$_.output_push(_$_.attr('href', prevLink.href, false));
|
|
1929
|
+
_$_.output_push(' class="pager prev"');
|
|
1930
|
+
_$_.output_push('>');
|
|
1823
1931
|
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
__output.push('>');
|
|
1932
|
+
{
|
|
1933
|
+
_$_.output_push('<span');
|
|
1934
|
+
_$_.output_push(' class="title"');
|
|
1935
|
+
_$_.output_push('>');
|
|
1829
1936
|
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
__output.push('>');
|
|
1937
|
+
{
|
|
1938
|
+
_$_.output_push(_$_.escape(prevLink.text));
|
|
1939
|
+
}
|
|
1834
1940
|
|
|
1835
|
-
|
|
1836
|
-
__output.push(_$_.escape(prevLink.text));
|
|
1941
|
+
_$_.output_push('</span>');
|
|
1837
1942
|
}
|
|
1838
1943
|
|
|
1839
|
-
|
|
1944
|
+
_$_.output_push('</a>');
|
|
1945
|
+
} else {
|
|
1946
|
+
_$_.output_push('<span');
|
|
1947
|
+
_$_.output_push('>');
|
|
1948
|
+
_$_.output_push('</span>');
|
|
1840
1949
|
}
|
|
1841
1950
|
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
__output.push('<span');
|
|
1845
|
-
__output.push('>');
|
|
1846
|
-
__output.push('</span>');
|
|
1847
|
-
}
|
|
1951
|
+
_$_.output_push('<!--]-->');
|
|
1952
|
+
_$_.output_push('<!--[-->');
|
|
1848
1953
|
|
|
1849
|
-
|
|
1850
|
-
|
|
1954
|
+
if (nextLink) {
|
|
1955
|
+
_$_.output_push('<a');
|
|
1956
|
+
_$_.output_push(_$_.attr('href', nextLink.href, false));
|
|
1957
|
+
_$_.output_push(' class="pager next"');
|
|
1958
|
+
_$_.output_push('>');
|
|
1851
1959
|
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
__output.push('>');
|
|
1960
|
+
{
|
|
1961
|
+
_$_.output_push('<span');
|
|
1962
|
+
_$_.output_push(' class="title"');
|
|
1963
|
+
_$_.output_push('>');
|
|
1857
1964
|
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
__output.push('>');
|
|
1965
|
+
{
|
|
1966
|
+
_$_.output_push(_$_.escape(nextLink.text));
|
|
1967
|
+
}
|
|
1862
1968
|
|
|
1863
|
-
|
|
1864
|
-
__output.push(_$_.escape(nextLink.text));
|
|
1969
|
+
_$_.output_push('</span>');
|
|
1865
1970
|
}
|
|
1866
1971
|
|
|
1867
|
-
|
|
1972
|
+
_$_.output_push('</a>');
|
|
1868
1973
|
}
|
|
1869
1974
|
|
|
1870
|
-
|
|
1975
|
+
_$_.output_push('<!--]-->');
|
|
1871
1976
|
}
|
|
1872
1977
|
|
|
1873
|
-
|
|
1978
|
+
_$_.output_push('</nav>');
|
|
1874
1979
|
}
|
|
1875
1980
|
|
|
1876
|
-
|
|
1877
|
-
}
|
|
1878
|
-
|
|
1879
|
-
__output.push('<!--]-->');
|
|
1981
|
+
_$_.output_push('<!--]-->');
|
|
1880
1982
|
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1983
|
+
{
|
|
1984
|
+
const comp = FooterStub;
|
|
1985
|
+
const args = [{}];
|
|
1884
1986
|
|
|
1885
|
-
|
|
1987
|
+
comp(...args);
|
|
1988
|
+
}
|
|
1886
1989
|
}
|
|
1990
|
+
|
|
1991
|
+
_$_.output_push('</div>');
|
|
1887
1992
|
}
|
|
1888
1993
|
|
|
1889
|
-
|
|
1890
|
-
|
|
1994
|
+
_$_.output_push('</div>');
|
|
1995
|
+
_$_.output_push('<aside');
|
|
1996
|
+
_$_.output_push(' class="aside"');
|
|
1997
|
+
_$_.output_push('>');
|
|
1891
1998
|
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
__output.push(' class="aside"');
|
|
1895
|
-
__output.push('>');
|
|
1999
|
+
{
|
|
2000
|
+
_$_.output_push('<!--[-->');
|
|
1896
2001
|
|
|
1897
|
-
|
|
1898
|
-
|
|
2002
|
+
if (toc.length > 0) {
|
|
2003
|
+
_$_.output_push('<div');
|
|
2004
|
+
_$_.output_push(' class="aside-content"');
|
|
2005
|
+
_$_.output_push('>');
|
|
1899
2006
|
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
2007
|
+
{
|
|
2008
|
+
_$_.output_push('<nav');
|
|
2009
|
+
_$_.output_push(' class="outline"');
|
|
2010
|
+
_$_.output_push('>');
|
|
1904
2011
|
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
__output.push(' class="outline"');
|
|
1908
|
-
__output.push('>');
|
|
2012
|
+
{
|
|
2013
|
+
_$_.output_push('<!--[-->');
|
|
1909
2014
|
|
|
1910
|
-
|
|
1911
|
-
|
|
2015
|
+
for (const item of toc) {
|
|
2016
|
+
_$_.output_push('<a');
|
|
2017
|
+
_$_.output_push(_$_.attr('href', item.href, false));
|
|
2018
|
+
_$_.output_push('>');
|
|
1912
2019
|
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
__output.push('>');
|
|
2020
|
+
{
|
|
2021
|
+
_$_.output_push(_$_.escape(item.text));
|
|
2022
|
+
}
|
|
1917
2023
|
|
|
1918
|
-
|
|
1919
|
-
__output.push(_$_.escape(item.text));
|
|
2024
|
+
_$_.output_push('</a>');
|
|
1920
2025
|
}
|
|
1921
2026
|
|
|
1922
|
-
|
|
2027
|
+
_$_.output_push('<!--]-->');
|
|
1923
2028
|
}
|
|
1924
2029
|
|
|
1925
|
-
|
|
2030
|
+
_$_.output_push('</nav>');
|
|
1926
2031
|
}
|
|
1927
2032
|
|
|
1928
|
-
|
|
2033
|
+
_$_.output_push('</div>');
|
|
1929
2034
|
}
|
|
1930
2035
|
|
|
1931
|
-
|
|
2036
|
+
_$_.output_push('<!--]-->');
|
|
1932
2037
|
}
|
|
1933
2038
|
|
|
1934
|
-
|
|
2039
|
+
_$_.output_push('</aside>');
|
|
1935
2040
|
}
|
|
1936
2041
|
|
|
1937
|
-
|
|
2042
|
+
_$_.output_push('</div>');
|
|
1938
2043
|
}
|
|
1939
2044
|
|
|
1940
|
-
|
|
2045
|
+
_$_.output_push('</main>');
|
|
1941
2046
|
}
|
|
1942
2047
|
|
|
1943
|
-
|
|
2048
|
+
_$_.output_push('</div>');
|
|
1944
2049
|
}
|
|
1945
2050
|
|
|
1946
|
-
|
|
1947
|
-
}
|
|
2051
|
+
_$_.output_push('</div>');
|
|
2052
|
+
});
|
|
1948
2053
|
|
|
1949
|
-
__output.push('</div>');
|
|
1950
2054
|
_$_.pop_component();
|
|
1951
2055
|
}
|
|
1952
2056
|
|
|
1953
|
-
export function DocsLayoutExactWithData(
|
|
2057
|
+
export function DocsLayoutExactWithData() {
|
|
1954
2058
|
_$_.push_component();
|
|
1955
2059
|
|
|
1956
2060
|
const htmlContent = '<h1>Styling Guide</h1><p>Content</p>';
|
|
1957
2061
|
|
|
1958
|
-
{
|
|
1959
|
-
|
|
2062
|
+
_$_.regular_block(() => {
|
|
2063
|
+
{
|
|
2064
|
+
const comp = DocsLayoutExact;
|
|
1960
2065
|
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
__output.push('>');
|
|
2066
|
+
const args = [
|
|
2067
|
+
{
|
|
2068
|
+
editPath: "docs/guide/styling.md",
|
|
2069
|
+
prevLink: { href: '/prev', text: 'Previous' },
|
|
2070
|
+
nextLink: { href: '/next', text: 'Next' },
|
|
2071
|
+
toc: [
|
|
2072
|
+
{ href: '#intro', text: 'Introduction' },
|
|
2073
|
+
{ href: '#usage', text: 'Usage' }
|
|
2074
|
+
],
|
|
2075
|
+
|
|
2076
|
+
children: _$_.ripple_element(function render_children() {
|
|
2077
|
+
_$_.push_component();
|
|
2078
|
+
_$_.output_push('<div');
|
|
2079
|
+
_$_.output_push(' class="doc-content"');
|
|
2080
|
+
_$_.output_push('>');
|
|
1977
2081
|
|
|
1978
|
-
|
|
1979
|
-
|
|
2082
|
+
{
|
|
2083
|
+
const html_value_21 = String(htmlContent ?? '');
|
|
1980
2084
|
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
2085
|
+
_$_.output_push('<!--' + _$_.hash(html_value_21) + '-->');
|
|
2086
|
+
_$_.output_push(html_value_21);
|
|
2087
|
+
_$_.output_push('<!---->');
|
|
2088
|
+
}
|
|
1985
2089
|
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
2090
|
+
_$_.output_push('</div>');
|
|
2091
|
+
_$_.pop_component();
|
|
2092
|
+
})
|
|
2093
|
+
}
|
|
2094
|
+
];
|
|
1991
2095
|
|
|
1992
|
-
|
|
1993
|
-
|
|
2096
|
+
comp(...args);
|
|
2097
|
+
}
|
|
2098
|
+
});
|
|
1994
2099
|
|
|
1995
2100
|
_$_.pop_component();
|
|
1996
2101
|
}
|
|
1997
2102
|
|
|
1998
|
-
export function DocsLayoutExactWithoutData(
|
|
2103
|
+
export function DocsLayoutExactWithoutData() {
|
|
1999
2104
|
_$_.push_component();
|
|
2000
2105
|
|
|
2001
2106
|
const htmlContent = undefined;
|
|
@@ -2004,193 +2109,205 @@ export function DocsLayoutExactWithoutData(__output) {
|
|
|
2004
2109
|
const nextLink = undefined;
|
|
2005
2110
|
const toc = undefined;
|
|
2006
2111
|
|
|
2007
|
-
{
|
|
2008
|
-
|
|
2112
|
+
_$_.regular_block(() => {
|
|
2113
|
+
{
|
|
2114
|
+
const comp = DocsLayoutExact;
|
|
2009
2115
|
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
__output.push('>');
|
|
2116
|
+
const args = [
|
|
2117
|
+
{
|
|
2118
|
+
editPath,
|
|
2119
|
+
prevLink,
|
|
2120
|
+
nextLink,
|
|
2121
|
+
toc,
|
|
2122
|
+
children: _$_.ripple_element(function render_children() {
|
|
2123
|
+
_$_.push_component();
|
|
2124
|
+
_$_.output_push('<div');
|
|
2125
|
+
_$_.output_push(' class="doc-content"');
|
|
2126
|
+
_$_.output_push('>');
|
|
2022
2127
|
|
|
2023
|
-
|
|
2024
|
-
|
|
2128
|
+
{
|
|
2129
|
+
const html_value_22 = String(htmlContent ?? '');
|
|
2025
2130
|
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2131
|
+
_$_.output_push('<!--' + _$_.hash(html_value_22) + '-->');
|
|
2132
|
+
_$_.output_push(html_value_22);
|
|
2133
|
+
_$_.output_push('<!---->');
|
|
2134
|
+
}
|
|
2030
2135
|
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2136
|
+
_$_.output_push('</div>');
|
|
2137
|
+
_$_.pop_component();
|
|
2138
|
+
})
|
|
2139
|
+
}
|
|
2140
|
+
];
|
|
2036
2141
|
|
|
2037
|
-
|
|
2038
|
-
|
|
2142
|
+
comp(...args);
|
|
2143
|
+
}
|
|
2144
|
+
});
|
|
2039
2145
|
|
|
2040
2146
|
_$_.pop_component();
|
|
2041
2147
|
}
|
|
2042
2148
|
|
|
2043
|
-
export function TemplateWithHtmlContent(
|
|
2149
|
+
export function TemplateWithHtmlContent() {
|
|
2044
2150
|
_$_.push_component();
|
|
2045
2151
|
|
|
2046
2152
|
const data = { title: 'Test', value: 42 };
|
|
2047
2153
|
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
{
|
|
2052
|
-
__output.push('<template');
|
|
2053
|
-
__output.push(' id="t1"');
|
|
2054
|
-
__output.push('>');
|
|
2154
|
+
_$_.regular_block(() => {
|
|
2155
|
+
_$_.output_push('<div');
|
|
2156
|
+
_$_.output_push('>');
|
|
2055
2157
|
|
|
2056
2158
|
{
|
|
2057
|
-
|
|
2159
|
+
_$_.output_push('<template');
|
|
2160
|
+
_$_.output_push(' id="t1"');
|
|
2161
|
+
_$_.output_push('>');
|
|
2058
2162
|
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
__output.push('<!---->');
|
|
2062
|
-
}
|
|
2163
|
+
{
|
|
2164
|
+
const html_value_23 = String(JSON.stringify(data) ?? '');
|
|
2063
2165
|
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2166
|
+
_$_.output_push('<!--' + _$_.hash(html_value_23) + '-->');
|
|
2167
|
+
_$_.output_push(html_value_23);
|
|
2168
|
+
_$_.output_push('<!---->');
|
|
2169
|
+
}
|
|
2068
2170
|
|
|
2069
|
-
|
|
2070
|
-
|
|
2171
|
+
_$_.output_push('</template>');
|
|
2172
|
+
_$_.output_push('<p');
|
|
2173
|
+
_$_.output_push(' class="content"');
|
|
2174
|
+
_$_.output_push('>');
|
|
2175
|
+
|
|
2176
|
+
{
|
|
2177
|
+
_$_.output_push('Main content');
|
|
2178
|
+
}
|
|
2179
|
+
|
|
2180
|
+
_$_.output_push('</p>');
|
|
2071
2181
|
}
|
|
2072
2182
|
|
|
2073
|
-
|
|
2074
|
-
}
|
|
2183
|
+
_$_.output_push('</div>');
|
|
2184
|
+
});
|
|
2075
2185
|
|
|
2076
|
-
__output.push('</div>');
|
|
2077
2186
|
_$_.pop_component();
|
|
2078
2187
|
}
|
|
2079
2188
|
|
|
2080
|
-
export function TemplateWithHtmlAndSiblings(
|
|
2189
|
+
export function TemplateWithHtmlAndSiblings() {
|
|
2081
2190
|
_$_.push_component();
|
|
2082
2191
|
|
|
2083
2192
|
const data = { name: 'Ripple', version: '1.0' };
|
|
2084
2193
|
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
{
|
|
2090
|
-
__output.push('<h1');
|
|
2091
|
-
__output.push('>');
|
|
2194
|
+
_$_.regular_block(() => {
|
|
2195
|
+
_$_.output_push('<div');
|
|
2196
|
+
_$_.output_push(' class="wrapper"');
|
|
2197
|
+
_$_.output_push('>');
|
|
2092
2198
|
|
|
2093
2199
|
{
|
|
2094
|
-
|
|
2095
|
-
|
|
2200
|
+
_$_.output_push('<h1');
|
|
2201
|
+
_$_.output_push('>');
|
|
2096
2202
|
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
__output.push('>');
|
|
2203
|
+
{
|
|
2204
|
+
_$_.output_push('Title');
|
|
2205
|
+
}
|
|
2101
2206
|
|
|
2102
|
-
|
|
2103
|
-
|
|
2207
|
+
_$_.output_push('</h1>');
|
|
2208
|
+
_$_.output_push('<template');
|
|
2209
|
+
_$_.output_push(' id="data-template"');
|
|
2210
|
+
_$_.output_push('>');
|
|
2104
2211
|
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2212
|
+
{
|
|
2213
|
+
const html_value_24 = String(JSON.stringify(data) ?? '');
|
|
2214
|
+
|
|
2215
|
+
_$_.output_push('<!--' + _$_.hash(html_value_24) + '-->');
|
|
2216
|
+
_$_.output_push(html_value_24);
|
|
2217
|
+
_$_.output_push('<!---->');
|
|
2218
|
+
}
|
|
2109
2219
|
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2220
|
+
_$_.output_push('</template>');
|
|
2221
|
+
_$_.output_push('<p');
|
|
2222
|
+
_$_.output_push(' class="after-template"');
|
|
2223
|
+
_$_.output_push('>');
|
|
2114
2224
|
|
|
2115
|
-
|
|
2116
|
-
|
|
2225
|
+
{
|
|
2226
|
+
_$_.output_push('Content after template');
|
|
2227
|
+
}
|
|
2228
|
+
|
|
2229
|
+
_$_.output_push('</p>');
|
|
2117
2230
|
}
|
|
2118
2231
|
|
|
2119
|
-
|
|
2120
|
-
}
|
|
2232
|
+
_$_.output_push('</div>');
|
|
2233
|
+
});
|
|
2121
2234
|
|
|
2122
|
-
__output.push('</div>');
|
|
2123
2235
|
_$_.pop_component();
|
|
2124
2236
|
}
|
|
2125
2237
|
|
|
2126
|
-
function LayoutWithTemplate(
|
|
2238
|
+
function LayoutWithTemplate({ children, data }) {
|
|
2127
2239
|
_$_.push_component();
|
|
2128
|
-
__output.push('<div');
|
|
2129
|
-
__output.push(' class="layout"');
|
|
2130
|
-
__output.push('>');
|
|
2131
2240
|
|
|
2132
|
-
{
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2241
|
+
_$_.regular_block(() => {
|
|
2242
|
+
_$_.output_push('<div');
|
|
2243
|
+
_$_.output_push(' class="layout"');
|
|
2244
|
+
_$_.output_push('>');
|
|
2136
2245
|
|
|
2137
2246
|
{
|
|
2138
|
-
|
|
2247
|
+
_$_.output_push('<template');
|
|
2248
|
+
_$_.output_push(' id="page-data"');
|
|
2249
|
+
_$_.output_push('>');
|
|
2139
2250
|
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2251
|
+
{
|
|
2252
|
+
const html_value_25 = String(JSON.stringify(data) ?? '');
|
|
2253
|
+
|
|
2254
|
+
_$_.output_push('<!--' + _$_.hash(html_value_25) + '-->');
|
|
2255
|
+
_$_.output_push(html_value_25);
|
|
2256
|
+
_$_.output_push('<!---->');
|
|
2257
|
+
}
|
|
2144
2258
|
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2259
|
+
_$_.output_push('</template>');
|
|
2260
|
+
_$_.output_push('<main');
|
|
2261
|
+
_$_.output_push('>');
|
|
2148
2262
|
|
|
2149
|
-
|
|
2150
|
-
|
|
2263
|
+
{
|
|
2264
|
+
_$_.render_expression(children);
|
|
2265
|
+
}
|
|
2266
|
+
|
|
2267
|
+
_$_.output_push('</main>');
|
|
2151
2268
|
}
|
|
2152
2269
|
|
|
2153
|
-
|
|
2154
|
-
}
|
|
2270
|
+
_$_.output_push('</div>');
|
|
2271
|
+
});
|
|
2155
2272
|
|
|
2156
|
-
__output.push('</div>');
|
|
2157
2273
|
_$_.pop_component();
|
|
2158
2274
|
}
|
|
2159
2275
|
|
|
2160
|
-
export function NestedTemplateInLayout(
|
|
2276
|
+
export function NestedTemplateInLayout() {
|
|
2161
2277
|
_$_.push_component();
|
|
2162
2278
|
|
|
2163
2279
|
const doc = { title: 'Comparison', html: '<p>Content</p>' };
|
|
2164
2280
|
|
|
2165
|
-
{
|
|
2166
|
-
|
|
2281
|
+
_$_.regular_block(() => {
|
|
2282
|
+
{
|
|
2283
|
+
const comp = LayoutWithTemplate;
|
|
2167
2284
|
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
__output.push('>');
|
|
2285
|
+
const args = [
|
|
2286
|
+
{
|
|
2287
|
+
data: doc,
|
|
2288
|
+
children: _$_.ripple_element(function render_children() {
|
|
2289
|
+
_$_.push_component();
|
|
2290
|
+
_$_.output_push('<div');
|
|
2291
|
+
_$_.output_push(' class="doc-content"');
|
|
2292
|
+
_$_.output_push('>');
|
|
2177
2293
|
|
|
2178
|
-
|
|
2179
|
-
|
|
2294
|
+
{
|
|
2295
|
+
const html_value_26 = String(doc.html ?? '');
|
|
2180
2296
|
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2297
|
+
_$_.output_push('<!--' + _$_.hash(html_value_26) + '-->');
|
|
2298
|
+
_$_.output_push(html_value_26);
|
|
2299
|
+
_$_.output_push('<!---->');
|
|
2300
|
+
}
|
|
2185
2301
|
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2302
|
+
_$_.output_push('</div>');
|
|
2303
|
+
_$_.pop_component();
|
|
2304
|
+
})
|
|
2305
|
+
}
|
|
2306
|
+
];
|
|
2191
2307
|
|
|
2192
|
-
|
|
2193
|
-
|
|
2308
|
+
comp(...args);
|
|
2309
|
+
}
|
|
2310
|
+
});
|
|
2194
2311
|
|
|
2195
2312
|
_$_.pop_component();
|
|
2196
2313
|
}
|