@torpor/view 0.1.6 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/compile.cjs +4 -8
- package/dist/compile.cjs.map +1 -1
- package/dist/compile.js +4 -8
- package/dist/compile.js.map +1 -1
- package/dist/index.cjs +1 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -4
- package/dist/index.js.map +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +1 -1
- package/src/compile/build/client/buildFragment.ts +2 -8
- package/src/compile/build/server/buildServerComponentNode.ts +12 -1
- package/src/render/nodeAnchor.ts +1 -11
- package/test/await/components/output/Await-client.ts +2 -2
- package/test/await/components/temp/{Await-client-5d753441145fbac078393af24cccadb208453d69.ts → Await-client-9c30564ea39457e614e60c0cc0a71c431e8a1e76.ts} +2 -2
- package/test/bind/components/output/BindComponent-client.ts +2 -2
- package/test/bind/components/output/BindComponent-server.ts +2 -2
- package/test/bind/components/temp/{BindComponent-client-aaeb489ce72b664c6372f8764f7e665994a751a7.ts → BindComponent-client-6f650efb818a185ef33e1b071cfd77415a803dd3.ts} +2 -2
- package/test/bind/components/temp/{BindComponent-server-c630dee0bee6cea49d5eb8bea04979a737bb8f5e.ts → BindComponent-server-2e6caf0cbbb2831eb4bfbd7dcd6cf4d5c422d047.ts} +2 -2
- package/test/child-component/components/output/ParentChild-client.ts +1 -1
- package/test/child-component/components/output/ParentChild-server.ts +2 -2
- package/test/child-component/components/temp/{ParentChild-client-6cf4d156ea46338815270faf67f56472f1a4ccd4.ts → ParentChild-client-50ca7e499599209c9d674f2561413ca14a282c22.ts} +1 -1
- package/test/child-component/components/temp/{ParentChild-server-a34a8b5acf1c00d1990f8ab7433599506265a45a.ts → ParentChild-server-5e4a7fa5f4cd1c7dbe6866819025d2c03bfc62cb.ts} +2 -2
- package/test/class/components/output/Class-client.ts +1 -1
- package/test/class/components/output/Class-server.ts +2 -2
- package/test/class/components/temp/{Class-client-0405eff591f854c04e5728df0479014ef91efc61.ts → Class-client-de2491c550647203bea08727fa8c88f30654db0a.ts} +1 -1
- package/test/class/components/temp/{Class-server-daf30ffb1bacf9877e3385dc9a3eede61c972329.ts → Class-server-c24c01d0d3a98169172aba453c183c4152705be9.ts} +2 -2
- package/test/component/components/output/Component-client.ts +2 -2
- package/test/component/components/output/Component-server.ts +2 -2
- package/test/component/components/temp/{Component-client-355b42e5f7411c399e2f50fba3580f4f7c3fa943.ts → Component-client-350d20784712c710929cc3ab34c6828b0ea338d8.ts} +2 -2
- package/test/component/components/temp/{Component-server-81012827b18e82d787d194a0a1a9d4e07311a336.ts → Component-server-57f59c74599572da6322a67cb97848cfbfcf6968.ts} +2 -2
- package/test/effects/components/output/For-client.ts +1 -1
- package/test/effects/components/output/If-client.ts +1 -1
- package/test/effects/components/output/NestedIf-client.ts +3 -3
- package/test/effects/components/temp/{For-client-fbe876286c0f99b8391ff0c06c92b58bf580218f.ts → For-client-35bf9bea43f53d6c0cf807f9e31500765fa0b455.ts} +1 -1
- package/test/effects/components/temp/{If-client-420a093f13de6ce07d2d4bc94705901809096cd9.ts → If-client-efb994796596d9d08f59a0ab5ffdacc74bd04545.ts} +1 -1
- package/test/effects/components/temp/{NestedIf-client-af88ec303b1a4184263bb370ef5b1f1e8aca8efc.ts → NestedIf-client-845b3789b8a938439bff758bc9b3731d769c8ff6.ts} +3 -3
- package/test/for/components/output/For-client.ts +1 -1
- package/test/for/components/output/ForEscape-client.ts +1 -1
- package/test/for/components/output/ForIn-client.ts +1 -1
- package/test/for/components/output/ForOf-client.ts +1 -1
- package/test/for/components/temp/{For-client-421f2a6ca501d135c0aef9d1aaea25de0e1c00e4.ts → For-client-8ecb11a2f34c81f837bffdb88598da06d8c19158.ts} +1 -1
- package/test/for/components/temp/{ForEscape-client-72879c80f7544c2edfc224095740bdea20e1e12d.ts → ForEscape-client-14e7648415d967cdc57bf03d176eb6b6dddf0fb2.ts} +1 -1
- package/test/for/components/temp/{ForIn-client-e12c45d7f53e50ea3ed456110138dfb95f6930e0.ts → ForIn-client-25cd67f246a50fc6d926a8c66aa5e106f19578a8.ts} +1 -1
- package/test/for/components/temp/{ForOf-client-422d67d6c046f1d1de655719d061ea29f67d23f7.ts → ForOf-client-8f6598ccd9dc7b79aff6167b90ccea94f3029c84.ts} +1 -1
- package/test/html/components/output/Html-client.ts +1 -1
- package/test/html/components/temp/{Html-client-2f309b06c3304a952d249057dec058a514d52874.ts → Html-client-93b0d666142c64cd651dc37f14f12884b2f30612.ts} +1 -1
- package/test/if/components/output/IfAfterIf-client.ts +3 -3
- package/test/if/components/output/IfElse-client.ts +2 -2
- package/test/if/components/output/IfElseIf-client.ts +2 -2
- package/test/if/components/output/IfFalse-client.ts +2 -2
- package/test/if/components/output/IfNested-client.ts +4 -4
- package/test/if/components/temp/{IfAfterIf-client-5ddfc6dc62ffbc9a518220458403008e88e69e6c.ts → IfAfterIf-client-6b4833209a01cdad18d453839e9c8b5dad2a8510.ts} +3 -3
- package/test/if/components/temp/{IfElse-client-815057ffb2d9a1861bb316d445321947ddedbb65.ts → IfElse-client-f7eb8e5fe5e62975a2442c4b0ff3344fa44cef69.ts} +2 -2
- package/test/if/components/temp/{IfElseIf-client-a7b16a8af24fdd3caa7b9e8e56d4bdb6ad3ab855.ts → IfElseIf-client-734f1b2d9133294573770c1ffc2b589273498532.ts} +2 -2
- package/test/if/components/temp/{IfFalse-client-6507ff8abd4842b78da27d8a9d4964abc1d9b727.ts → IfFalse-client-8a388cb48b4a5879d491f57d1f2551834de1e72e.ts} +2 -2
- package/test/if/components/temp/{IfNested-client-e09f8af625b4e0b3e9eb210440f8edda720f0d53.ts → IfNested-client-f3045daba052e459add6e7f84e8d21ba7b0d81e4.ts} +4 -4
- package/test/party/components/output/AnswerButtonApp-client.ts +2 -2
- package/test/party/components/output/AnswerButtonApp-server.ts +2 -2
- package/test/party/components/output/ColorSelect-client.ts +1 -1
- package/test/party/components/output/Colors-client.ts +1 -1
- package/test/party/components/output/FunnyButton-client.ts +1 -1
- package/test/party/components/output/FunnyButtonApp-client.ts +2 -2
- package/test/party/components/output/FunnyButtonApp-server.ts +3 -3
- package/test/party/components/output/TrafficLight-client.ts +1 -1
- package/test/party/components/output/UserProfileApp-client.ts +2 -2
- package/test/party/components/output/UserProfileApp-server.ts +2 -2
- package/test/party/components/output/UserProfileContextApp-client.ts +1 -1
- package/test/party/components/output/UserProfileContextApp-server.ts +2 -2
- package/test/party/components/temp/{AnswerButtonApp-client-a2b16c738467742436b1a2ddaf2d767795a4d625.ts → AnswerButtonApp-client-5661f07868550612bcdeee268b82c473af6a2613.ts} +2 -2
- package/test/party/components/temp/{AnswerButtonApp-server-16161f2c9062dd11b8b6b8c898f9f1249ae2400d.ts → AnswerButtonApp-server-e4ea88e0f4d65508950594437e5e34424bd28897.ts} +2 -2
- package/test/party/components/temp/{ColorSelect-client-4e848c296047911f4c0e3bc1447e5562ce06087c.ts → ColorSelect-client-70bf59d6399d63c0eed421b9d370a1e5c97a89ca.ts} +1 -1
- package/test/party/components/temp/{Colors-client-dde7bf60e2b16383ec981b08f8414b1ebeb349a5.ts → Colors-client-806316cc5e01e8235c0b025cad34b1068addf5a5.ts} +1 -1
- package/test/party/components/temp/{FunnyButton-client-61a1699da08e210375edff33f7b27d3cc0e99cc3.ts → FunnyButton-client-6d5662018a5a5529fd52ee82f7c88975b5c3355a.ts} +1 -1
- package/test/party/components/temp/{FunnyButtonApp-client-cbce6a591bae38ab8b312551f8741d50ae6294bf.ts → FunnyButtonApp-client-daa929c6d64f67e4a1a387b884317a4bb615b5d4.ts} +2 -2
- package/test/party/components/temp/{FunnyButtonApp-server-48d37de0c755843a2be34d7c7cb5c730689dcc2f.ts → FunnyButtonApp-server-80d85ede7da558154a5aa17cd602d6724bf1c9cb.ts} +3 -3
- package/test/party/components/temp/{TrafficLight-client-4010f51fde4c8c21e6c232eff974c86820dbad4f.ts → TrafficLight-client-4a90675ca6157ed7701aefa0d9141575960a1d47.ts} +1 -1
- package/test/party/components/temp/{UserProfileApp-client-32b5cc129b32af5cdd94f39c6fb09a2e4806b04e.ts → UserProfileApp-client-e0bfaa4ffed336c8be4b23dd81800501980c9938.ts} +2 -2
- package/test/party/components/temp/{UserProfileApp-server-97397c42aaac0ee3902218d02c0ce6884434cc5b.ts → UserProfileApp-server-86c204098fd0ffbeded50372354488768b255156.ts} +2 -2
- package/test/party/components/temp/{UserProfileContextApp-client-c4b64ccf44069bcbf18acb585afa62ac9127aeb9.ts → UserProfileContextApp-client-05ce216919de6ffde56d1c2c39299173d9b611b3.ts} +1 -1
- package/test/party/components/temp/{UserProfileContextApp-server-95a4b12d30cef621db55d5de102a906ac7286fb2.ts → UserProfileContextApp-server-c970abaa8326db9a5efc3a5c64741743ae0dd1ca.ts} +2 -2
- package/test/props/components/output/Reactive-client.ts +1 -1
- package/test/props/components/output/Reactive-server.ts +2 -2
- package/test/props/components/temp/{Reactive-client-249382840865c9911857b89085bc85ff901b8e8f.ts → Reactive-client-cf6e602b2f74fce8e9451b6c41c6f8ff8eab63a3.ts} +1 -1
- package/test/props/components/temp/{Reactive-server-770cd3df7c877c0c99e156b2ba6d1f8b35914027.ts → Reactive-server-206bcc8984bad12c5712661b77d000216cdfe66d.ts} +2 -2
- package/test/replace/components/output/Replace-client.ts +1 -1
- package/test/replace/components/temp/{Replace-client-ef66f06bc0cfa91e800b185dbccbca6a98693c21.ts → Replace-client-2a9ee3430708b469fa31bbc6989eed5b2f22984d.ts} +1 -1
- package/test/slots/components/output/Article-client.ts +3 -3
- package/test/slots/components/output/Basic-client.ts +2 -2
- package/test/slots/components/output/Basic-server.ts +2 -2
- package/test/slots/components/output/Header-client.ts +1 -1
- package/test/slots/components/output/Let-client.ts +2 -2
- package/test/slots/components/output/Let-server.ts +2 -2
- package/test/slots/components/output/List-client.ts +2 -2
- package/test/slots/components/output/Named-client.ts +2 -2
- package/test/slots/components/output/Named-server.ts +2 -2
- package/test/slots/components/output/Unused-client.ts +2 -2
- package/test/slots/components/output/Unused-server.ts +2 -2
- package/test/slots/components/temp/{Article-client-f7676836f5ded94222b11ef81e41dd675d1af04b.ts → Article-client-3f2da4b399f94ae8c329489e1ba0ba98196df9c5.ts} +3 -3
- package/test/slots/components/temp/{Basic-client-e7650b8be5f6e50fa0f2f343a145f86edfe14ff4.ts → Basic-client-a2c4bf685d4b75d0395da427b7754c2a58374dd7.ts} +2 -2
- package/test/slots/components/temp/{Basic-server-aed46a5b459cce50e7ddb311c42a76b9e91c2dae.ts → Basic-server-6b37594c9bf74e0c86a05b20213f69651e2cc937.ts} +2 -2
- package/test/slots/components/temp/{Header-client-127c27e6bfcd5b37cc871164cd665b740418dc82.ts → Header-client-d7418b71df5db36d58a73e909233863a6c03678b.ts} +1 -1
- package/test/slots/components/temp/{Let-client-c107eb0fe42f125996d2c9a83ab7b3c1916ca26d.ts → Let-client-913f9dede92b68a3f4a13d1f56f99b3e08e01efe.ts} +2 -2
- package/test/slots/components/temp/{Let-server-62727e5e2db3df405cdbe7a2d339a99113fc7f4a.ts → Let-server-8cad3b1199bec801bc3a1f2f3dbc20f2ef1e9741.ts} +2 -2
- package/test/slots/components/temp/{List-client-ca1d8f9a9cc8b513323de7c5531a4ec03898d920.ts → List-client-6bc2d267a8b2028a14b12b2c70feb7c6a47d6d64.ts} +2 -2
- package/test/slots/components/temp/{Named-client-636b6a18c25a27099f883cb9eeb04e182e248941.ts → Named-client-f6e7a984759ce8f50bc52dcf56f6f06cab925a80.ts} +2 -2
- package/test/slots/components/temp/{Named-server-829daa82c94fd7142a721cabac1b3402cca8fce6.ts → Named-server-2aac48bb8c7300d1a8858917fe81edc17c6372fa.ts} +2 -2
- package/test/slots/components/temp/{Unused-client-0aefcc79e9ae050358fa049a35b7e8e0a6bc2d66.ts → Unused-client-ea0a096aa7a1c958f3bf807f35340b96f8a025ee.ts} +2 -2
- package/test/slots/components/temp/{Unused-server-379b45ff313e82f8b2949385f50d8ea482094520.ts → Unused-server-6e832928d7db6c43c556e7bda8af34ac37c0d4c1.ts} +2 -2
- package/test/special-component/components/output/BigTitle-client.ts +1 -1
- package/test/special-component/components/output/Component-client.ts +3 -3
- package/test/special-component/components/output/Component-server.ts +2 -1
- package/test/special-component/components/output/SmallTitle-client.ts +1 -1
- package/test/special-component/components/temp/{BigTitle-client-04ca3c7b6aaf76b81baa5a3d3720fbd2a1760550.ts → BigTitle-client-c4bd66406d55ce83ab4491c4114d563055e1c275.ts} +1 -1
- package/test/special-component/components/temp/{Component-client-24cd39596c4281ee2709e6aa482818d071825b4f.ts → Component-client-c39c66cf5274445bb863fd759e0ef223613a9f3a.ts} +3 -3
- package/test/special-component/components/temp/{Component-server-3564dfcef8d015cab4944a3c75cc6cf329f3fad6.ts → Component-server-14cd9beb57d6e833f75ab8c6624eb9841444ef63.ts} +2 -1
- package/test/special-component/components/temp/{SmallTitle-client-213b422377a30fe0b12f7256e654bf0313ac9cf9.ts → SmallTitle-client-e4b3e51243ca4f1efca21ac0f957b81e8bc93167.ts} +1 -1
- package/test/special-self/components/output/Self-client.ts +3 -3
- package/test/special-self/components/output/Self-server.ts +2 -2
- package/test/special-self/components/temp/{Self-client-99b34229c85a477881299311f56f48686352c3b3.ts → Self-client-43a0a90fac58867c88bf32221883e8da342a0295.ts} +3 -3
- package/test/special-self/components/temp/{Self-server-ee440757ca9772d7b4111451a9ee05a157302e7c.ts → Self-server-b857c30c279a16dd81ad29567fb8abb9b2a0c239.ts} +2 -2
- package/test/svg/components/output/Shape-client.ts +1 -1
- package/test/svg/components/temp/{Shape-client-368789c592401c3e4c99ddcdb8fe6dded45eb34a.ts → Shape-client-052ea7838de07222602834de58968a3f89e6ea56.ts} +1 -1
- package/test/switch/components/output/Switch-client.ts +1 -1
- package/test/switch/components/temp/{Switch-client-5ef1937202adac7fd5aae866357d95beb4b5805f.ts → Switch-client-30113fadf131c72e7c24160fa62068b651716896.ts} +1 -1
- package/test/watch-array/components/output/Array-client.ts +1 -1
- package/test/watch-array/components/output/ArrayEntries-client.ts +1 -1
- package/test/watch-array/components/output/ArrayIndexes-client.ts +1 -1
- package/test/watch-array/components/output/ArrayUnkeyed-client.ts +1 -1
- package/test/watch-array/components/temp/{Array-client-24ccac431fa237432ec4875234773f36a9a5b120.ts → Array-client-d048f5c224a3f2e2729878dbb069ce15ca913e12.ts} +1 -1
- package/test/watch-array/components/temp/{ArrayEntries-client-ebfb391a78325be4411f24a1ecfdc45ca3a6a621.ts → ArrayEntries-client-741607b276718f5deb520e3b657dbf6abbb8081c.ts} +1 -1
- package/test/watch-array/components/temp/{ArrayIndexes-client-0a4b3226862bb1de13fdbc7a14f689d9f7ade2a1.ts → ArrayIndexes-client-8ab14b254ef67dafad5228c9ec1906eb3b3babef.ts} +1 -1
- package/test/watch-array/components/temp/{ArrayUnkeyed-client-0966fa5ed460f4c627d8d619e493601098d6a33e.ts → ArrayUnkeyed-client-9684aba82757748815b94c04bf3f8d1f98332535.ts} +1 -1
package/package.json
CHANGED
|
@@ -661,18 +661,12 @@ function declareParentAndAnchorFragmentVars(
|
|
|
661
661
|
path.children.push(anchorPath);
|
|
662
662
|
|
|
663
663
|
node.varName = nextVarName(`${name}_anchor`, status);
|
|
664
|
-
const anchorVarPath = getFragmentVarPath(
|
|
665
|
-
fragment,
|
|
666
|
-
status,
|
|
667
|
-
`t_anchor(${node.varName}, true)`,
|
|
668
|
-
anchorPath,
|
|
669
|
-
varPaths,
|
|
670
|
-
);
|
|
664
|
+
const anchorVarPath = getFragmentVarPath(fragment, status, node.varName, anchorPath, varPaths);
|
|
671
665
|
if (status.options?.useCreateElement) {
|
|
672
666
|
b.append(`let ${node.varName};`);
|
|
673
667
|
} else {
|
|
674
668
|
status.imports.add("t_anchor");
|
|
675
|
-
b.append(`
|
|
669
|
+
b.append(`let ${node.varName} = t_anchor(${anchorVarPath}) as HTMLElement;`);
|
|
676
670
|
|
|
677
671
|
printDebug(node.varName, status, b);
|
|
678
672
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
ANCHOR_COMMENT,
|
|
3
|
+
HYDRATION_END_COMMENT,
|
|
4
|
+
HYDRATION_START_COMMENT,
|
|
5
|
+
} from "../../types/comments";
|
|
2
6
|
import { type ElementNode } from "../../types/nodes/ElementNode";
|
|
3
7
|
import isSpecialNode from "../../types/nodes/isSpecialNode";
|
|
4
8
|
import Builder from "../../utils/Builder";
|
|
@@ -15,6 +19,10 @@ export default function buildServerComponentNode(
|
|
|
15
19
|
status: BuildServerStatus,
|
|
16
20
|
b: Builder,
|
|
17
21
|
): void {
|
|
22
|
+
// Surround the entire control statement with bracketed comments, so that we
|
|
23
|
+
// can skip to the end to set the anchor node when hydrating
|
|
24
|
+
status.output += HYDRATION_START_COMMENT;
|
|
25
|
+
|
|
18
26
|
if (status.output) {
|
|
19
27
|
b.append(`$output += \`${status.output}\`;`);
|
|
20
28
|
status.output = "";
|
|
@@ -126,6 +134,9 @@ export default function buildServerComponentNode(
|
|
|
126
134
|
b.append("");
|
|
127
135
|
b.append(`$output += ${componentName}(${renderParams})`);
|
|
128
136
|
|
|
137
|
+
// End the control statement
|
|
138
|
+
status.output += HYDRATION_END_COMMENT;
|
|
139
|
+
|
|
129
140
|
// Add the anchor node
|
|
130
141
|
status.output += ANCHOR_COMMENT;
|
|
131
142
|
}
|
package/src/render/nodeAnchor.ts
CHANGED
|
@@ -15,20 +15,10 @@ import nodeNext from "./nodeNext";
|
|
|
15
15
|
* the matched comments.
|
|
16
16
|
*
|
|
17
17
|
* @param node The potential anchor node.
|
|
18
|
-
* @param subsequent Whether this is the second time the anchor is being retrieved.
|
|
19
18
|
* @returns The anchor node.
|
|
20
19
|
*/
|
|
21
|
-
export default function nodeAnchor(node: ChildNode
|
|
20
|
+
export default function nodeAnchor(node: ChildNode): ChildNode {
|
|
22
21
|
if (context.hydrationNode) {
|
|
23
|
-
// The first time we get a node anchor during hydration, the hydration
|
|
24
|
-
// node gets set to the first node in the statement, and then we work
|
|
25
|
-
// through the nodes until we get to the anchor node itself. So, the
|
|
26
|
-
// second time we get the anchor node, the hydration node should have
|
|
27
|
-
// been set to it. I'm not sure this is going to always be the case...
|
|
28
|
-
if (subsequent) {
|
|
29
|
-
return context.hydrationNode;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
22
|
if (isComment(node) && node.data === HYDRATION_START) {
|
|
33
23
|
// Skip and remove the start node, setting the hydration node in
|
|
34
24
|
// nodeNext
|
|
@@ -50,7 +50,7 @@ export default function Await(
|
|
|
50
50
|
// @ts-ignore
|
|
51
51
|
const t_root_0 = t_root(t_fragment_0, true);
|
|
52
52
|
const t_await_parent_1 = t_next(t_root_0) as HTMLElement;
|
|
53
|
-
|
|
53
|
+
let t_await_anchor_1 = t_anchor(t_next(t_child(t_await_parent_1))) as HTMLElement;
|
|
54
54
|
|
|
55
55
|
/* @await */
|
|
56
56
|
const t_await_range_1 = t_range();
|
|
@@ -106,7 +106,7 @@ export default function Await(
|
|
|
106
106
|
})(t_await_token_1);
|
|
107
107
|
});
|
|
108
108
|
|
|
109
|
-
const t_button_1 = t_next(t_next(
|
|
109
|
+
const t_button_1 = t_next(t_next(t_await_anchor_1, true)) as HTMLElement;
|
|
110
110
|
// @ts-ignore
|
|
111
111
|
const t_text_5 = t_next(t_await_parent_1, true);
|
|
112
112
|
t_event(t_button_1, "click", () => $state.guesser = guessNumber(100));
|
|
@@ -50,7 +50,7 @@ export default function Await(
|
|
|
50
50
|
// @ts-ignore
|
|
51
51
|
const t_root_0 = t_root(t_fragment_0, true);
|
|
52
52
|
const t_await_parent_1 = t_next(t_root_0) as HTMLElement;
|
|
53
|
-
|
|
53
|
+
let t_await_anchor_1 = t_anchor(t_next(t_child(t_await_parent_1))) as HTMLElement;
|
|
54
54
|
|
|
55
55
|
/* @await */
|
|
56
56
|
const t_await_range_1 = t_range();
|
|
@@ -106,7 +106,7 @@ export default function Await(
|
|
|
106
106
|
})(t_await_token_1);
|
|
107
107
|
});
|
|
108
108
|
|
|
109
|
-
const t_button_1 = t_next(t_next(
|
|
109
|
+
const t_button_1 = t_next(t_next(t_await_anchor_1, true)) as HTMLElement;
|
|
110
110
|
// @ts-ignore
|
|
111
111
|
const t_text_5 = t_next(t_await_parent_1, true);
|
|
112
112
|
t_event(t_button_1, "click", () => $state.guesser = guessNumber(100));
|
|
@@ -30,7 +30,7 @@ export default function BindComponent(
|
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
const t_root_0 = t_root(t_fragment_0, true);
|
|
32
32
|
const t_comp_parent_1 = t_next(t_root_0) as HTMLElement;
|
|
33
|
-
|
|
33
|
+
let t_comp_anchor_1 = t_anchor(t_next(t_child(t_comp_parent_1))) as HTMLElement;
|
|
34
34
|
|
|
35
35
|
/* @component */
|
|
36
36
|
const t_props_1: any = $watch({});
|
|
@@ -42,7 +42,7 @@ export default function BindComponent(
|
|
|
42
42
|
});
|
|
43
43
|
BindText(t_comp_parent_1, t_comp_anchor_1, t_props_1, $context);
|
|
44
44
|
|
|
45
|
-
const t_text_1 = t_child(t_next(t_next(
|
|
45
|
+
const t_text_1 = t_child(t_next(t_next(t_comp_anchor_1, true)));
|
|
46
46
|
// @ts-ignore
|
|
47
47
|
const t_text_2 = t_next(t_comp_parent_1, true);
|
|
48
48
|
$run(function setTextContent() {
|
|
@@ -16,12 +16,12 @@ export default function BindComponent(
|
|
|
16
16
|
|
|
17
17
|
/* User interface */
|
|
18
18
|
let $output = "";
|
|
19
|
-
$output += ` <div>
|
|
19
|
+
$output += ` <div> <![>`;
|
|
20
20
|
const t_props_1: any = {};
|
|
21
21
|
t_props_1["&name"] = $state.name;
|
|
22
22
|
|
|
23
23
|
$output += BindText(t_props_1, $context)
|
|
24
|
-
$output +=
|
|
24
|
+
$output += `<!]><!> <p>Hello, ${t_fmt($state.name)}</p> </div> `;
|
|
25
25
|
|
|
26
26
|
return $output;
|
|
27
27
|
}
|
|
@@ -30,7 +30,7 @@ export default function BindComponent(
|
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
const t_root_0 = t_root(t_fragment_0, true);
|
|
32
32
|
const t_comp_parent_1 = t_next(t_root_0) as HTMLElement;
|
|
33
|
-
|
|
33
|
+
let t_comp_anchor_1 = t_anchor(t_next(t_child(t_comp_parent_1))) as HTMLElement;
|
|
34
34
|
|
|
35
35
|
/* @component */
|
|
36
36
|
const t_props_1: any = $watch({});
|
|
@@ -42,7 +42,7 @@ export default function BindComponent(
|
|
|
42
42
|
});
|
|
43
43
|
BindText(t_comp_parent_1, t_comp_anchor_1, t_props_1, $context);
|
|
44
44
|
|
|
45
|
-
const t_text_1 = t_child(t_next(t_next(
|
|
45
|
+
const t_text_1 = t_child(t_next(t_next(t_comp_anchor_1, true)));
|
|
46
46
|
// @ts-ignore
|
|
47
47
|
const t_text_2 = t_next(t_comp_parent_1, true);
|
|
48
48
|
$run(function setTextContent() {
|
|
@@ -16,12 +16,12 @@ export default function BindComponent(
|
|
|
16
16
|
|
|
17
17
|
/* User interface */
|
|
18
18
|
let $output = "";
|
|
19
|
-
$output += ` <div>
|
|
19
|
+
$output += ` <div> <![>`;
|
|
20
20
|
const t_props_1: any = {};
|
|
21
21
|
t_props_1["&name"] = $state.name;
|
|
22
22
|
|
|
23
23
|
$output += BindText(t_props_1, $context)
|
|
24
|
-
$output +=
|
|
24
|
+
$output += `<!]><!> <p>Hello, ${t_fmt($state.name)}</p> </div> `;
|
|
25
25
|
|
|
26
26
|
return $output;
|
|
27
27
|
}
|
|
@@ -27,7 +27,7 @@ export default function ParentChild(
|
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
const t_root_0 = t_root(t_fragment_0, true);
|
|
29
29
|
const t_comp_parent_1 = t_next(t_root_0) as HTMLElement;
|
|
30
|
-
|
|
30
|
+
let t_comp_anchor_1 = t_anchor(t_next(t_child(t_comp_parent_1))) as HTMLElement;
|
|
31
31
|
|
|
32
32
|
/* @component */
|
|
33
33
|
const t_props_1: any = $watch({});
|
|
@@ -12,12 +12,12 @@ export default function ParentChild(
|
|
|
12
12
|
|
|
13
13
|
/* User interface */
|
|
14
14
|
let $output = "";
|
|
15
|
-
$output += ` <div>
|
|
15
|
+
$output += ` <div> <![>`;
|
|
16
16
|
const t_props_1: any = {};
|
|
17
17
|
t_props_1["name"] = "Anna";
|
|
18
18
|
|
|
19
19
|
$output += Child(t_props_1, $context)
|
|
20
|
-
$output +=
|
|
20
|
+
$output += `<!]><!> </div> `;
|
|
21
21
|
|
|
22
22
|
return $output;
|
|
23
23
|
}
|
|
@@ -27,7 +27,7 @@ export default function ParentChild(
|
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
const t_root_0 = t_root(t_fragment_0, true);
|
|
29
29
|
const t_comp_parent_1 = t_next(t_root_0) as HTMLElement;
|
|
30
|
-
|
|
30
|
+
let t_comp_anchor_1 = t_anchor(t_next(t_child(t_comp_parent_1))) as HTMLElement;
|
|
31
31
|
|
|
32
32
|
/* @component */
|
|
33
33
|
const t_props_1: any = $watch({});
|
|
@@ -12,12 +12,12 @@ export default function ParentChild(
|
|
|
12
12
|
|
|
13
13
|
/* User interface */
|
|
14
14
|
let $output = "";
|
|
15
|
-
$output += ` <div>
|
|
15
|
+
$output += ` <div> <![>`;
|
|
16
16
|
const t_props_1: any = {};
|
|
17
17
|
t_props_1["name"] = "Anna";
|
|
18
18
|
|
|
19
19
|
$output += Child(t_props_1, $context)
|
|
20
|
-
$output +=
|
|
20
|
+
$output += `<!]><!> </div> `;
|
|
21
21
|
|
|
22
22
|
return $output;
|
|
23
23
|
}
|
|
@@ -32,7 +32,7 @@ export default function Class(
|
|
|
32
32
|
const t_div_3 = t_next(t_next(t_div_2, true)) as HTMLDivElement;
|
|
33
33
|
const t_div_4 = t_next(t_next(t_div_3, true)) as HTMLDivElement;
|
|
34
34
|
const t_comp_parent_1 = t_next(t_root_0) as HTMLElement;
|
|
35
|
-
|
|
35
|
+
let t_comp_anchor_1 = t_anchor(t_next(t_next(t_div_4, true))) as HTMLElement;
|
|
36
36
|
|
|
37
37
|
/* @component */
|
|
38
38
|
const t_props_1: any = $watch({});
|
|
@@ -13,12 +13,12 @@ export default function Class(
|
|
|
13
13
|
|
|
14
14
|
/* User interface */
|
|
15
15
|
let $output = "";
|
|
16
|
-
$output += ` <div class="torp-1ljxz83"> <div id="divid" class="torp-1ljxz83"> From id </div> <div class="divclass torp-1ljxz83"> From string </div> <a class="${t_class({ hello: true, red: $props.red, green: $props.green, blue: $props.blue }, "torp-1ljxz83")}"> From state </a> <div class="${t_class({ hello: true, red: $props.red, green: $props.green, blue: $props.blue }, "torp-1ljxz83")}"> From state with scope </div> <div class="${t_class({ foo: true, bar: false, baz: 5, qux: null }, "torp-1ljxz83")}"> Class object </div> <div class="${t_class([ "foo", false, true && "baz", undefined ], "torp-1ljxz83")}"> Class array </div> <div class="${t_class([ "foo", 0, { bar: true }, "", [1 && "baz", ["qux"]] ], "torp-1ljxz83")}"> Class nested </div>
|
|
16
|
+
$output += ` <div class="torp-1ljxz83"> <div id="divid" class="torp-1ljxz83"> From id </div> <div class="divclass torp-1ljxz83"> From string </div> <a class="${t_class({ hello: true, red: $props.red, green: $props.green, blue: $props.blue }, "torp-1ljxz83")}"> From state </a> <div class="${t_class({ hello: true, red: $props.red, green: $props.green, blue: $props.blue }, "torp-1ljxz83")}"> From state with scope </div> <div class="${t_class({ foo: true, bar: false, baz: 5, qux: null }, "torp-1ljxz83")}"> Class object </div> <div class="${t_class([ "foo", false, true && "baz", undefined ], "torp-1ljxz83")}"> Class array </div> <div class="${t_class([ "foo", 0, { bar: true }, "", [1 && "baz", ["qux"]] ], "torp-1ljxz83")}"> Class nested </div> <![>`;
|
|
17
17
|
const t_props_1: any = {};
|
|
18
18
|
t_props_1["class"] = t_class({ "child-class": true }, "torp-1ljxz83");
|
|
19
19
|
|
|
20
20
|
$output += Child(t_props_1, $context)
|
|
21
|
-
$output +=
|
|
21
|
+
$output += `<!]><!> </div> `;
|
|
22
22
|
|
|
23
23
|
return $output;
|
|
24
24
|
}
|
|
@@ -32,7 +32,7 @@ export default function Class(
|
|
|
32
32
|
const t_div_3 = t_next(t_next(t_div_2, true)) as HTMLDivElement;
|
|
33
33
|
const t_div_4 = t_next(t_next(t_div_3, true)) as HTMLDivElement;
|
|
34
34
|
const t_comp_parent_1 = t_next(t_root_0) as HTMLElement;
|
|
35
|
-
|
|
35
|
+
let t_comp_anchor_1 = t_anchor(t_next(t_next(t_div_4, true))) as HTMLElement;
|
|
36
36
|
|
|
37
37
|
/* @component */
|
|
38
38
|
const t_props_1: any = $watch({});
|
|
@@ -13,12 +13,12 @@ export default function Class(
|
|
|
13
13
|
|
|
14
14
|
/* User interface */
|
|
15
15
|
let $output = "";
|
|
16
|
-
$output += ` <div class="torp-1ljxz83"> <div id="divid" class="torp-1ljxz83"> From id </div> <div class="divclass torp-1ljxz83"> From string </div> <a class="${t_class({ hello: true, red: $props.red, green: $props.green, blue: $props.blue }, "torp-1ljxz83")}"> From state </a> <div class="${t_class({ hello: true, red: $props.red, green: $props.green, blue: $props.blue }, "torp-1ljxz83")}"> From state with scope </div> <div class="${t_class({ foo: true, bar: false, baz: 5, qux: null }, "torp-1ljxz83")}"> Class object </div> <div class="${t_class([ "foo", false, true && "baz", undefined ], "torp-1ljxz83")}"> Class array </div> <div class="${t_class([ "foo", 0, { bar: true }, "", [1 && "baz", ["qux"]] ], "torp-1ljxz83")}"> Class nested </div>
|
|
16
|
+
$output += ` <div class="torp-1ljxz83"> <div id="divid" class="torp-1ljxz83"> From id </div> <div class="divclass torp-1ljxz83"> From string </div> <a class="${t_class({ hello: true, red: $props.red, green: $props.green, blue: $props.blue }, "torp-1ljxz83")}"> From state </a> <div class="${t_class({ hello: true, red: $props.red, green: $props.green, blue: $props.blue }, "torp-1ljxz83")}"> From state with scope </div> <div class="${t_class({ foo: true, bar: false, baz: 5, qux: null }, "torp-1ljxz83")}"> Class object </div> <div class="${t_class([ "foo", false, true && "baz", undefined ], "torp-1ljxz83")}"> Class array </div> <div class="${t_class([ "foo", 0, { bar: true }, "", [1 && "baz", ["qux"]] ], "torp-1ljxz83")}"> Class nested </div> <![>`;
|
|
17
17
|
const t_props_1: any = {};
|
|
18
18
|
t_props_1["class"] = t_class({ "child-class": true }, "torp-1ljxz83");
|
|
19
19
|
|
|
20
20
|
$output += Child(t_props_1, $context)
|
|
21
|
-
$output +=
|
|
21
|
+
$output += `<!]><!> </div> `;
|
|
22
22
|
|
|
23
23
|
return $output;
|
|
24
24
|
}
|
|
@@ -25,7 +25,7 @@ export default function Component(
|
|
|
25
25
|
const t_fragment_0 = t_fragment($parent.ownerDocument!, t_fragments, 0, ` <!> `);
|
|
26
26
|
// @ts-ignore
|
|
27
27
|
const t_root_0 = t_root(t_fragment_0, true);
|
|
28
|
-
|
|
28
|
+
let t_comp_anchor_1 = t_anchor(t_next(t_root_0)) as HTMLElement;
|
|
29
29
|
|
|
30
30
|
/* @component */
|
|
31
31
|
const t_props_1: any = $watch({});
|
|
@@ -33,7 +33,7 @@ export default function Component(
|
|
|
33
33
|
Header(t_fragment_0, t_comp_anchor_1, t_props_1, $context);
|
|
34
34
|
|
|
35
35
|
// @ts-ignore
|
|
36
|
-
const t_text_1 = t_next(
|
|
36
|
+
const t_text_1 = t_next(t_comp_anchor_1, true);
|
|
37
37
|
t_add_fragment(t_fragment_0, $parent, $anchor, t_text_1);
|
|
38
38
|
t_next(t_text_1);
|
|
39
39
|
|
|
@@ -13,12 +13,12 @@ export default function Component(
|
|
|
13
13
|
|
|
14
14
|
/* User interface */
|
|
15
15
|
let $output = "";
|
|
16
|
-
$output += `
|
|
16
|
+
$output += ` <![>`;
|
|
17
17
|
const t_props_1: any = {};
|
|
18
18
|
t_props_1["name"] = "Amy";
|
|
19
19
|
|
|
20
20
|
$output += Header(t_props_1, $context)
|
|
21
|
-
$output +=
|
|
21
|
+
$output += `<!]><!> `;
|
|
22
22
|
|
|
23
23
|
return $output;
|
|
24
24
|
}
|
|
@@ -25,7 +25,7 @@ export default function Component(
|
|
|
25
25
|
const t_fragment_0 = t_fragment($parent.ownerDocument!, t_fragments, 0, ` <!> `);
|
|
26
26
|
// @ts-ignore
|
|
27
27
|
const t_root_0 = t_root(t_fragment_0, true);
|
|
28
|
-
|
|
28
|
+
let t_comp_anchor_1 = t_anchor(t_next(t_root_0)) as HTMLElement;
|
|
29
29
|
|
|
30
30
|
/* @component */
|
|
31
31
|
const t_props_1: any = $watch({});
|
|
@@ -33,7 +33,7 @@ export default function Component(
|
|
|
33
33
|
Header(t_fragment_0, t_comp_anchor_1, t_props_1, $context);
|
|
34
34
|
|
|
35
35
|
// @ts-ignore
|
|
36
|
-
const t_text_1 = t_next(
|
|
36
|
+
const t_text_1 = t_next(t_comp_anchor_1, true);
|
|
37
37
|
t_add_fragment(t_fragment_0, $parent, $anchor, t_text_1);
|
|
38
38
|
t_next(t_text_1);
|
|
39
39
|
|
|
@@ -13,12 +13,12 @@ export default function Component(
|
|
|
13
13
|
|
|
14
14
|
/* User interface */
|
|
15
15
|
let $output = "";
|
|
16
|
-
$output += `
|
|
16
|
+
$output += ` <![>`;
|
|
17
17
|
const t_props_1: any = {};
|
|
18
18
|
t_props_1["name"] = "Amy";
|
|
19
19
|
|
|
20
20
|
$output += Header(t_props_1, $context)
|
|
21
|
-
$output +=
|
|
21
|
+
$output += `<!]><!> `;
|
|
22
22
|
|
|
23
23
|
return $output;
|
|
24
24
|
}
|
|
@@ -33,7 +33,7 @@ export default function For(
|
|
|
33
33
|
// @ts-ignore
|
|
34
34
|
const t_root_0 = t_root(t_fragment_0, true);
|
|
35
35
|
const t_for_parent_1 = t_next(t_root_0) as HTMLElement;
|
|
36
|
-
|
|
36
|
+
let t_for_anchor_1 = t_anchor(t_next(t_child(t_for_parent_1))) as HTMLElement;
|
|
37
37
|
|
|
38
38
|
/* @for */
|
|
39
39
|
let t_for_range_1 = t_range();
|
|
@@ -28,7 +28,7 @@ export default function If(
|
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
const t_root_0 = t_root(t_fragment_0, true);
|
|
30
30
|
const t_if_parent_1 = t_next(t_root_0) as HTMLElement;
|
|
31
|
-
|
|
31
|
+
let t_if_anchor_1 = t_anchor(t_next(t_child(t_if_parent_1))) as HTMLElement;
|
|
32
32
|
|
|
33
33
|
/* @if */
|
|
34
34
|
const t_if_range_1 = t_range();
|
|
@@ -28,7 +28,7 @@ export default function NestedIf(
|
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
const t_root_0 = t_root(t_fragment_0, true);
|
|
30
30
|
const t_if_parent_1 = t_next(t_root_0) as HTMLElement;
|
|
31
|
-
|
|
31
|
+
let t_if_anchor_1 = t_anchor(t_next(t_child(t_if_parent_1))) as HTMLElement;
|
|
32
32
|
|
|
33
33
|
/* @if */
|
|
34
34
|
const t_if_range_1 = t_range();
|
|
@@ -38,7 +38,7 @@ export default function NestedIf(
|
|
|
38
38
|
const t_fragment_1 = t_fragment($parent.ownerDocument!, t_fragments, 1, ` <!> `);
|
|
39
39
|
// @ts-ignore
|
|
40
40
|
const t_root_1 = t_root(t_fragment_1, true);
|
|
41
|
-
|
|
41
|
+
let t_if_anchor_2 = t_anchor(t_next(t_root_1)) as HTMLElement;
|
|
42
42
|
|
|
43
43
|
/* @if */
|
|
44
44
|
const t_if_range_2 = t_range();
|
|
@@ -68,7 +68,7 @@ export default function NestedIf(
|
|
|
68
68
|
});
|
|
69
69
|
|
|
70
70
|
// @ts-ignore
|
|
71
|
-
const t_text_3 = t_next(
|
|
71
|
+
const t_text_3 = t_next(t_if_anchor_2, true);
|
|
72
72
|
t_add_fragment(t_fragment_1, t_if_parent_1, t_before, t_text_3);
|
|
73
73
|
t_next(t_text_3);
|
|
74
74
|
});
|
|
@@ -33,7 +33,7 @@ export default function For(
|
|
|
33
33
|
// @ts-ignore
|
|
34
34
|
const t_root_0 = t_root(t_fragment_0, true);
|
|
35
35
|
const t_for_parent_1 = t_next(t_root_0) as HTMLElement;
|
|
36
|
-
|
|
36
|
+
let t_for_anchor_1 = t_anchor(t_next(t_child(t_for_parent_1))) as HTMLElement;
|
|
37
37
|
|
|
38
38
|
/* @for */
|
|
39
39
|
let t_for_range_1 = t_range();
|
|
@@ -28,7 +28,7 @@ export default function If(
|
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
const t_root_0 = t_root(t_fragment_0, true);
|
|
30
30
|
const t_if_parent_1 = t_next(t_root_0) as HTMLElement;
|
|
31
|
-
|
|
31
|
+
let t_if_anchor_1 = t_anchor(t_next(t_child(t_if_parent_1))) as HTMLElement;
|
|
32
32
|
|
|
33
33
|
/* @if */
|
|
34
34
|
const t_if_range_1 = t_range();
|
|
@@ -28,7 +28,7 @@ export default function NestedIf(
|
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
const t_root_0 = t_root(t_fragment_0, true);
|
|
30
30
|
const t_if_parent_1 = t_next(t_root_0) as HTMLElement;
|
|
31
|
-
|
|
31
|
+
let t_if_anchor_1 = t_anchor(t_next(t_child(t_if_parent_1))) as HTMLElement;
|
|
32
32
|
|
|
33
33
|
/* @if */
|
|
34
34
|
const t_if_range_1 = t_range();
|
|
@@ -38,7 +38,7 @@ export default function NestedIf(
|
|
|
38
38
|
const t_fragment_1 = t_fragment($parent.ownerDocument!, t_fragments, 1, ` <!> `);
|
|
39
39
|
// @ts-ignore
|
|
40
40
|
const t_root_1 = t_root(t_fragment_1, true);
|
|
41
|
-
|
|
41
|
+
let t_if_anchor_2 = t_anchor(t_next(t_root_1)) as HTMLElement;
|
|
42
42
|
|
|
43
43
|
/* @if */
|
|
44
44
|
const t_if_range_2 = t_range();
|
|
@@ -68,7 +68,7 @@ export default function NestedIf(
|
|
|
68
68
|
});
|
|
69
69
|
|
|
70
70
|
// @ts-ignore
|
|
71
|
-
const t_text_3 = t_next(
|
|
71
|
+
const t_text_3 = t_next(t_if_anchor_2, true);
|
|
72
72
|
t_add_fragment(t_fragment_1, t_if_parent_1, t_before, t_text_3);
|
|
73
73
|
t_next(t_text_3);
|
|
74
74
|
});
|
|
@@ -32,7 +32,7 @@ export default function For(
|
|
|
32
32
|
// @ts-ignore
|
|
33
33
|
const t_root_0 = t_root(t_fragment_0, true);
|
|
34
34
|
const t_for_parent_1 = t_next(t_root_0) as HTMLElement;
|
|
35
|
-
|
|
35
|
+
let t_for_anchor_1 = t_anchor(t_next(t_child(t_for_parent_1))) as HTMLElement;
|
|
36
36
|
|
|
37
37
|
/* @for */
|
|
38
38
|
let t_for_range_1 = t_range();
|
|
@@ -36,7 +36,7 @@ export default function ForEscape(
|
|
|
36
36
|
// @ts-ignore
|
|
37
37
|
const t_root_0 = t_root(t_fragment_0, true);
|
|
38
38
|
const t_for_parent_1 = t_next(t_root_0) as HTMLElement;
|
|
39
|
-
|
|
39
|
+
let t_for_anchor_1 = t_anchor(t_next(t_child(t_for_parent_1))) as HTMLElement;
|
|
40
40
|
|
|
41
41
|
/* @for */
|
|
42
42
|
let t_for_range_1 = t_range();
|
|
@@ -33,7 +33,7 @@ export default function ForIn(
|
|
|
33
33
|
// @ts-ignore
|
|
34
34
|
const t_root_0 = t_root(t_fragment_0, true);
|
|
35
35
|
const t_for_parent_1 = t_next(t_root_0) as HTMLElement;
|
|
36
|
-
|
|
36
|
+
let t_for_anchor_1 = t_anchor(t_next(t_child(t_for_parent_1))) as HTMLElement;
|
|
37
37
|
|
|
38
38
|
/* @for */
|
|
39
39
|
let t_for_range_1 = t_range();
|
|
@@ -33,7 +33,7 @@ export default function ForOf(
|
|
|
33
33
|
// @ts-ignore
|
|
34
34
|
const t_root_0 = t_root(t_fragment_0, true);
|
|
35
35
|
const t_for_parent_1 = t_next(t_root_0) as HTMLElement;
|
|
36
|
-
|
|
36
|
+
let t_for_anchor_1 = t_anchor(t_next(t_child(t_for_parent_1))) as HTMLElement;
|
|
37
37
|
|
|
38
38
|
/* @for */
|
|
39
39
|
let t_for_range_1 = t_range();
|
|
@@ -32,7 +32,7 @@ export default function For(
|
|
|
32
32
|
// @ts-ignore
|
|
33
33
|
const t_root_0 = t_root(t_fragment_0, true);
|
|
34
34
|
const t_for_parent_1 = t_next(t_root_0) as HTMLElement;
|
|
35
|
-
|
|
35
|
+
let t_for_anchor_1 = t_anchor(t_next(t_child(t_for_parent_1))) as HTMLElement;
|
|
36
36
|
|
|
37
37
|
/* @for */
|
|
38
38
|
let t_for_range_1 = t_range();
|
|
@@ -36,7 +36,7 @@ export default function ForEscape(
|
|
|
36
36
|
// @ts-ignore
|
|
37
37
|
const t_root_0 = t_root(t_fragment_0, true);
|
|
38
38
|
const t_for_parent_1 = t_next(t_root_0) as HTMLElement;
|
|
39
|
-
|
|
39
|
+
let t_for_anchor_1 = t_anchor(t_next(t_child(t_for_parent_1))) as HTMLElement;
|
|
40
40
|
|
|
41
41
|
/* @for */
|
|
42
42
|
let t_for_range_1 = t_range();
|
|
@@ -33,7 +33,7 @@ export default function ForIn(
|
|
|
33
33
|
// @ts-ignore
|
|
34
34
|
const t_root_0 = t_root(t_fragment_0, true);
|
|
35
35
|
const t_for_parent_1 = t_next(t_root_0) as HTMLElement;
|
|
36
|
-
|
|
36
|
+
let t_for_anchor_1 = t_anchor(t_next(t_child(t_for_parent_1))) as HTMLElement;
|
|
37
37
|
|
|
38
38
|
/* @for */
|
|
39
39
|
let t_for_range_1 = t_range();
|
|
@@ -33,7 +33,7 @@ export default function ForOf(
|
|
|
33
33
|
// @ts-ignore
|
|
34
34
|
const t_root_0 = t_root(t_fragment_0, true);
|
|
35
35
|
const t_for_parent_1 = t_next(t_root_0) as HTMLElement;
|
|
36
|
-
|
|
36
|
+
let t_for_anchor_1 = t_anchor(t_next(t_child(t_for_parent_1))) as HTMLElement;
|
|
37
37
|
|
|
38
38
|
/* @for */
|
|
39
39
|
let t_for_range_1 = t_range();
|
|
@@ -28,7 +28,7 @@ export default function Html(
|
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
const t_root_0 = t_root(t_fragment_0, true);
|
|
30
30
|
const t_html_parent_1 = t_next(t_root_0) as HTMLElement;
|
|
31
|
-
|
|
31
|
+
let t_html_anchor_1 = t_anchor(t_next(t_child(t_html_parent_1))) as HTMLElement;
|
|
32
32
|
|
|
33
33
|
/* @html */
|
|
34
34
|
const t_html_range_1 = t_range();
|
|
@@ -28,7 +28,7 @@ export default function Html(
|
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
const t_root_0 = t_root(t_fragment_0, true);
|
|
30
30
|
const t_html_parent_1 = t_next(t_root_0) as HTMLElement;
|
|
31
|
-
|
|
31
|
+
let t_html_anchor_1 = t_anchor(t_next(t_child(t_html_parent_1))) as HTMLElement;
|
|
32
32
|
|
|
33
33
|
/* @html */
|
|
34
34
|
const t_html_range_1 = t_range();
|
|
@@ -26,7 +26,7 @@ export default function IfAfterIf(
|
|
|
26
26
|
const t_fragment_0 = t_fragment($parent.ownerDocument!, t_fragments, 0, ` <!> <!> `);
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
const t_root_0 = t_root(t_fragment_0, true);
|
|
29
|
-
|
|
29
|
+
let t_if_anchor_1 = t_anchor(t_next(t_root_0)) as HTMLElement;
|
|
30
30
|
|
|
31
31
|
/* @if */
|
|
32
32
|
const t_if_range_1 = t_range();
|
|
@@ -48,7 +48,7 @@ export default function IfAfterIf(
|
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
let t_if_anchor_2 = t_anchor(t_next(t_next(t_if_anchor_1, true))) as HTMLElement;
|
|
52
52
|
|
|
53
53
|
/* @if */
|
|
54
54
|
const t_if_range_2 = t_range();
|
|
@@ -71,7 +71,7 @@ export default function IfAfterIf(
|
|
|
71
71
|
});
|
|
72
72
|
|
|
73
73
|
// @ts-ignore
|
|
74
|
-
const t_text_3 = t_next(
|
|
74
|
+
const t_text_3 = t_next(t_if_anchor_2, true);
|
|
75
75
|
t_add_fragment(t_fragment_0, $parent, $anchor, t_text_3);
|
|
76
76
|
t_next(t_text_3);
|
|
77
77
|
|
|
@@ -26,7 +26,7 @@ export default function IfElse(
|
|
|
26
26
|
const t_fragment_0 = t_fragment($parent.ownerDocument!, t_fragments, 0, ` <!> `);
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
const t_root_0 = t_root(t_fragment_0, true);
|
|
29
|
-
|
|
29
|
+
let t_if_anchor_1 = t_anchor(t_next(t_root_0)) as HTMLElement;
|
|
30
30
|
|
|
31
31
|
/* @if */
|
|
32
32
|
const t_if_range_1 = t_range();
|
|
@@ -56,7 +56,7 @@ export default function IfElse(
|
|
|
56
56
|
});
|
|
57
57
|
|
|
58
58
|
// @ts-ignore
|
|
59
|
-
const t_text_3 = t_next(
|
|
59
|
+
const t_text_3 = t_next(t_if_anchor_1, true);
|
|
60
60
|
t_add_fragment(t_fragment_0, $parent, $anchor, t_text_3);
|
|
61
61
|
t_next(t_text_3);
|
|
62
62
|
|
|
@@ -26,7 +26,7 @@ export default function IfElseIf(
|
|
|
26
26
|
const t_fragment_0 = t_fragment($parent.ownerDocument!, t_fragments, 0, ` <!> `);
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
const t_root_0 = t_root(t_fragment_0, true);
|
|
29
|
-
|
|
29
|
+
let t_if_anchor_1 = t_anchor(t_next(t_root_0)) as HTMLElement;
|
|
30
30
|
|
|
31
31
|
/* @if */
|
|
32
32
|
const t_if_range_1 = t_range();
|
|
@@ -67,7 +67,7 @@ export default function IfElseIf(
|
|
|
67
67
|
});
|
|
68
68
|
|
|
69
69
|
// @ts-ignore
|
|
70
|
-
const t_text_4 = t_next(
|
|
70
|
+
const t_text_4 = t_next(t_if_anchor_1, true);
|
|
71
71
|
t_add_fragment(t_fragment_0, $parent, $anchor, t_text_4);
|
|
72
72
|
t_next(t_text_4);
|
|
73
73
|
|