@torpor/view 0.4.15 → 0.4.17
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/dist/compile.cjs +11 -4
- package/dist/compile.mjs +11 -4
- package/dist/compile.mjs.map +1 -1
- package/package.json +4 -1
- package/.oxlintrc.json +0 -3
- package/CHANGELOG.md +0 -356
- package/scripts/buildTestOutput.ts +0 -15
- package/scripts/copyToRepl.ts +0 -36
- package/src/ambient.d.ts +0 -24
- package/src/compile/build/client/BuildStatus.ts +0 -22
- package/src/compile/build/client/addMappedText.ts +0 -25
- package/src/compile/build/client/addMappedTextWithOffsets.ts +0 -31
- package/src/compile/build/client/addPopDevBoundary.ts +0 -10
- package/src/compile/build/client/addPushDevBoundary.ts +0 -28
- package/src/compile/build/client/buildAddFragment.ts +0 -51
- package/src/compile/build/client/buildAwaitNode.ts +0 -166
- package/src/compile/build/client/buildCode.ts +0 -202
- package/src/compile/build/client/buildComponentNode.ts +0 -266
- package/src/compile/build/client/buildControlNode.ts +0 -86
- package/src/compile/build/client/buildElementNode.ts +0 -431
- package/src/compile/build/client/buildForNode.ts +0 -180
- package/src/compile/build/client/buildFragment.ts +0 -800
- package/src/compile/build/client/buildFragmentText.ts +0 -239
- package/src/compile/build/client/buildHtmlNode.ts +0 -73
- package/src/compile/build/client/buildIfNode.ts +0 -102
- package/src/compile/build/client/buildMount.ts +0 -19
- package/src/compile/build/client/buildNode.ts +0 -60
- package/src/compile/build/client/buildReplaceNode.ts +0 -69
- package/src/compile/build/client/buildRootNode.ts +0 -29
- package/src/compile/build/client/buildRun.ts +0 -23
- package/src/compile/build/client/buildScriptNode.ts +0 -16
- package/src/compile/build/client/buildSlotNode.ts +0 -83
- package/src/compile/build/client/buildSpecialNode.ts +0 -38
- package/src/compile/build/client/buildStyles.ts +0 -85
- package/src/compile/build/client/buildSwitchNode.ts +0 -107
- package/src/compile/build/client/buildTextNode.ts +0 -106
- package/src/compile/build/client/getAttributeOffsets.ts +0 -90
- package/src/compile/build/client/replaceForVarNames.ts +0 -16
- package/src/compile/build/client/stashRun.ts +0 -22
- package/src/compile/build/client/stashRunWithOffsets.ts +0 -38
- package/src/compile/build/server/BuildServerStatus.ts +0 -10
- package/src/compile/build/server/buildServerAwaitNode.ts +0 -49
- package/src/compile/build/server/buildServerCode.ts +0 -148
- package/src/compile/build/server/buildServerComponentNode.ts +0 -141
- package/src/compile/build/server/buildServerControlNode.ts +0 -103
- package/src/compile/build/server/buildServerElementNode.ts +0 -128
- package/src/compile/build/server/buildServerForNode.ts +0 -57
- package/src/compile/build/server/buildServerHtmlNode.ts +0 -27
- package/src/compile/build/server/buildServerIfNode.ts +0 -57
- package/src/compile/build/server/buildServerNode.ts +0 -50
- package/src/compile/build/server/buildServerReplaceNode.ts +0 -51
- package/src/compile/build/server/buildServerRootNode.ts +0 -14
- package/src/compile/build/server/buildServerScriptNode.ts +0 -13
- package/src/compile/build/server/buildServerSlotNode.ts +0 -79
- package/src/compile/build/server/buildServerSpecialNode.ts +0 -35
- package/src/compile/build/server/buildServerSwitchNode.ts +0 -60
- package/src/compile/build/server/buildServerTextNode.ts +0 -70
- package/src/compile/build/utils/nextVarName.ts +0 -20
- package/src/compile/build.ts +0 -31
- package/src/compile/buildType.ts +0 -42
- package/src/compile/parse/ParseStatus.ts +0 -20
- package/src/compile/parse/addSpaceElement.ts +0 -26
- package/src/compile/parse/parseCode.ts +0 -466
- package/src/compile/parse/parseControl.ts +0 -314
- package/src/compile/parse/parseElement.ts +0 -197
- package/src/compile/parse/parseImports.ts +0 -66
- package/src/compile/parse/parseInlineScript.ts +0 -36
- package/src/compile/parse/parseMarkup.ts +0 -49
- package/src/compile/parse/parseStyles.ts +0 -94
- package/src/compile/parse/parseTag.ts +0 -156
- package/src/compile/parse/parseText.ts +0 -96
- package/src/compile/parse/scopeStyles.ts +0 -57
- package/src/compile/parse/slottifyChildNodes.ts +0 -32
- package/src/compile/parse/utils/accept.ts +0 -21
- package/src/compile/parse/utils/addError.ts +0 -44
- package/src/compile/parse/utils/consumeAlphaNumeric.ts +0 -21
- package/src/compile/parse/utils/consumeNonSpace.ts +0 -21
- package/src/compile/parse/utils/consumeSpace.ts +0 -21
- package/src/compile/parse/utils/consumeUntil.ts +0 -21
- package/src/compile/parse/utils/expect.ts +0 -27
- package/src/compile/parse/utils/isAlphaNumeric.ts +0 -17
- package/src/compile/parse/utils/isAlphaNumericChar.ts +0 -19
- package/src/compile/parse/utils/isSpace.ts +0 -17
- package/src/compile/parse/utils/isSpaceChar.ts +0 -12
- package/src/compile/parse.ts +0 -14
- package/src/compile/types/BuildOptions.ts +0 -25
- package/src/compile/types/BuildResult.ts +0 -10
- package/src/compile/types/CompileError.ts +0 -9
- package/src/compile/types/Import.ts +0 -7
- package/src/compile/types/ParseResult.ts +0 -8
- package/src/compile/types/ScriptChunk.ts +0 -6
- package/src/compile/types/SourceMapping.ts +0 -7
- package/src/compile/types/SourceSpan.ts +0 -4
- package/src/compile/types/comments.ts +0 -6
- package/src/compile/types/nodes/Attribute.ts +0 -9
- package/src/compile/types/nodes/ControlNode.ts +0 -19
- package/src/compile/types/nodes/ElementNode.ts +0 -22
- package/src/compile/types/nodes/Fragment.ts +0 -20
- package/src/compile/types/nodes/NodeType.ts +0 -3
- package/src/compile/types/nodes/OperationType.ts +0 -26
- package/src/compile/types/nodes/ParentNode.ts +0 -7
- package/src/compile/types/nodes/RootNode.ts +0 -11
- package/src/compile/types/nodes/TemplateNode.ts +0 -18
- package/src/compile/types/nodes/TextNode.ts +0 -9
- package/src/compile/types/styles/Attribute.ts +0 -4
- package/src/compile/types/styles/Style.ts +0 -7
- package/src/compile/types/styles/StyleBlock.ts +0 -7
- package/src/compile/utils/Builder.ts +0 -89
- package/src/compile/utils/endOfString.ts +0 -8
- package/src/compile/utils/endOfTemplateString.ts +0 -14
- package/src/compile/utils/hash.ts +0 -13
- package/src/compile/utils/isComponentNode.ts +0 -6
- package/src/compile/utils/isControlNode.ts +0 -6
- package/src/compile/utils/isElementNode.ts +0 -6
- package/src/compile/utils/isFullyReactive.ts +0 -11
- package/src/compile/utils/isParentNode.ts +0 -6
- package/src/compile/utils/isReactive.ts +0 -11
- package/src/compile/utils/isSpaceNode.ts +0 -8
- package/src/compile/utils/isSpecialNode.ts +0 -6
- package/src/compile/utils/isTextNode.ts +0 -6
- package/src/compile/utils/trimAny.ts +0 -19
- package/src/compile/utils/trimEnd.ts +0 -15
- package/src/compile/utils/trimMatched.ts +0 -16
- package/src/compile/utils/trimQuotes.ts +0 -20
- package/src/compile/utils/trimStart.ts +0 -15
- package/src/compile/utils/trimStartAndEnd.ts +0 -15
- package/src/compile/utils/voidTags.ts +0 -18
- package/src/compile.ts +0 -10
- package/src/debug/printNode.ts +0 -65
- package/src/debug/printRegions.ts +0 -74
- package/src/debug/printSignalDiagram.ts +0 -139
- package/src/debug/printSimpleDiagram.ts +0 -88
- package/src/dev/devContext.ts +0 -31
- package/src/dev/popDevBoundary.ts +0 -5
- package/src/dev/pushDevBoundary.ts +0 -25
- package/src/dev/setDevMode.ts +0 -235
- package/src/dev/types/DevBoundary.ts +0 -7
- package/src/dev/types/DevContext.ts +0 -28
- package/src/dev.ts +0 -6
- package/src/index.ts +0 -77
- package/src/render/addAnimation.ts +0 -15
- package/src/render/addEvent.ts +0 -15
- package/src/render/addFragment.ts +0 -85
- package/src/render/animate.ts +0 -52
- package/src/render/applyProps.ts +0 -22
- package/src/render/buildClasses.ts +0 -33
- package/src/render/buildStyles.ts +0 -23
- package/src/render/clearLayoutSlot.ts +0 -8
- package/src/render/clearRegion.ts +0 -71
- package/src/render/context.ts +0 -42
- package/src/render/createComment.ts +0 -3
- package/src/render/createElement.ts +0 -27
- package/src/render/createFragment.ts +0 -7
- package/src/render/createText.ts +0 -8
- package/src/render/fillLayoutSlot.ts +0 -27
- package/src/render/formatAttributeText.ts +0 -3
- package/src/render/formatText.ts +0 -3
- package/src/render/getFragment.ts +0 -30
- package/src/render/hydrate.ts +0 -41
- package/src/render/hydrateRoot.ts +0 -32
- package/src/render/hydrationMarkers.ts +0 -5
- package/src/render/isCommentNode.ts +0 -3
- package/src/render/isFragmentNode.ts +0 -3
- package/src/render/isTextNode.ts +0 -3
- package/src/render/mount.ts +0 -41
- package/src/render/moveRegion.ts +0 -14
- package/src/render/newListItem.ts +0 -19
- package/src/render/newRegion.ts +0 -13
- package/src/render/nodeAnchor.ts +0 -66
- package/src/render/nodeCheckHydrationBreak.ts +0 -25
- package/src/render/nodeChild.ts +0 -23
- package/src/render/nodeNext.ts +0 -24
- package/src/render/nodeRoot.ts +0 -50
- package/src/render/nodeSkip.ts +0 -20
- package/src/render/popRegion.ts +0 -9
- package/src/render/pushRegion.ts +0 -30
- package/src/render/runControl.ts +0 -36
- package/src/render/runControlBranch.ts +0 -18
- package/src/render/runList.ts +0 -52
- package/src/render/runListItems.ts +0 -198
- package/src/render/setAttribute.ts +0 -7
- package/src/render/setDynamicElement.ts +0 -16
- package/src/ssr/$serverBatch.ts +0 -3
- package/src/ssr/$serverCache.ts +0 -3
- package/src/ssr/$serverMount.ts +0 -3
- package/src/ssr/$serverPeek.ts +0 -3
- package/src/ssr/$serverRun.ts +0 -3
- package/src/ssr/$serverUnwrap.ts +0 -3
- package/src/ssr/$serverWatch.ts +0 -3
- package/src/ssr.ts +0 -17
- package/src/types/Animation.ts +0 -4
- package/src/types/ClassValue.ts +0 -8
- package/src/types/Cleanup.ts +0 -7
- package/src/types/Component.ts +0 -14
- package/src/types/Computed.ts +0 -62
- package/src/types/Context.ts +0 -99
- package/src/types/Effect.ts +0 -54
- package/src/types/ListItem.ts +0 -6
- package/src/types/ProxyData.ts +0 -10
- package/src/types/ProxySignal.ts +0 -28
- package/src/types/Region.ts +0 -19
- package/src/types/ServerComponent.ts +0 -12
- package/src/types/ServerSlotRender.ts +0 -6
- package/src/types/SlotRender.ts +0 -8
- package/src/types/StyleValue.ts +0 -8
- package/src/types/Subscription.ts +0 -57
- package/src/types/Template.ts +0 -12
- package/src/types/TemplateComponent.ts +0 -27
- package/src/types/WatchOptions.ts +0 -9
- package/src/types/constants.ts +0 -14
- package/src/watch/$batch.ts +0 -22
- package/src/watch/$cache.ts +0 -34
- package/src/watch/$mount.ts +0 -11
- package/src/watch/$peek.ts +0 -14
- package/src/watch/$run.ts +0 -33
- package/src/watch/$stream.ts +0 -1
- package/src/watch/$unwrap.ts +0 -12
- package/src/watch/$watch.ts +0 -49
- package/src/watch/batchEnd.ts +0 -17
- package/src/watch/batchStart.ts +0 -5
- package/src/watch/checkComputed.ts +0 -46
- package/src/watch/checkEffect.ts +0 -32
- package/src/watch/checkSources.ts +0 -63
- package/src/watch/clearSources.ts +0 -39
- package/src/watch/clearTargets.ts +0 -28
- package/src/watch/deactivateSources.ts +0 -19
- package/src/watch/propagateSignal.ts +0 -99
- package/src/watch/proxyGet.ts +0 -134
- package/src/watch/proxySet.ts +0 -51
- package/src/watch/runCleanups.ts +0 -40
- package/src/watch/runComputed.ts +0 -36
- package/src/watch/runEffect.ts +0 -50
- package/src/watch/symbols.ts +0 -5
- package/src/watch/trackProxySignal.ts +0 -21
- package/src/watch/trackSignal.ts +0 -69
- package/src/watch/transferEffects.ts +0 -67
- package/src/watch/triggerEffects.ts +0 -59
- package/src/wrappers/ReactiveDate.ts +0 -68
- package/test/attributes/attributes.test.ts +0 -70
- package/test/attributes/components/output/Attributes-client.ts +0 -35
- package/test/attributes/components/output/Attributes-server.ts +0 -18
- package/test/attributes/components/output/Attributes-types.ts +0 -10
- package/test/attributes/components/output/Disappearing-client.ts +0 -35
- package/test/attributes/components/output/Disappearing-server.ts +0 -18
- package/test/attributes/components/output/Disappearing-types.ts +0 -10
- package/test/attributes/components/temp/Attributes-client-881ae1bc8de5b8b63c416dea9e11bffcf28b2e8e.ts +0 -35
- package/test/attributes/components/temp/Attributes-server-439da9a70f565053da8581652250142a12f4a7d3.ts +0 -18
- package/test/attributes/components/temp/Attributes-types-5892927754ac19a8b3a8560fa1c78ce653e5f318.ts +0 -10
- package/test/attributes/components/temp/Disappearing-client-881ae1bc8de5b8b63c416dea9e11bffcf28b2e8e.ts +0 -35
- package/test/attributes/components/temp/Disappearing-server-439da9a70f565053da8581652250142a12f4a7d3.ts +0 -18
- package/test/attributes/components/temp/Disappearing-types-5892927754ac19a8b3a8560fa1c78ce653e5f318.ts +0 -10
- package/test/attributes/disappearing.test.ts +0 -78
- package/test/attributes/errors.test.ts +0 -35
- package/test/attributes/parse.test.ts +0 -297
- package/test/await/await.test.ts +0 -88
- package/test/await/components/output/Await-client.ts +0 -120
- package/test/await/components/output/Await-server.ts +0 -40
- package/test/await/components/output/Await-types.ts +0 -10
- package/test/await/components/temp/Await-client-973bd47c40dcbc9622a278e5519c341656505fc0.ts +0 -120
- package/test/await/components/temp/Await-server-1f8c2fd1781b769d00312410ca22d1f8e2def3e2.ts +0 -40
- package/test/await/components/temp/Await-types-355b335acd1c17a2271920d51e542ce1fc61eeef.ts +0 -10
- package/test/bench/bench.bench.ts +0 -33
- package/test/bench/components/Bench.torp +0 -170
- package/test/bench/components/output/Bench-client.ts +0 -214
- package/test/bench/components/output/Bench-server.ts +0 -132
- package/test/bench/components/output/Bench-types.ts +0 -10
- package/test/bench/components/temp/Bench-client-4ceb87d3dcd31fc9f176994c53b864b4128540cb.ts +0 -214
- package/test/bench/components/temp/Bench-server-84e241e91b2dd1790ea86b4a3af78d04fa9dd9f0.ts +0 -132
- package/test/bench/components/temp/Bench-types-a798f6c7b7ec235754ff5fdd5d7020633253b042.ts +0 -10
- package/test/bind/bind-component.test.ts +0 -55
- package/test/bind/bind-text.test.ts +0 -65
- package/test/bind/components/output/BindComponent-client.ts +0 -79
- package/test/bind/components/output/BindComponent-server.ts +0 -46
- package/test/bind/components/output/BindComponent-types.ts +0 -10
- package/test/bind/components/output/BindText-client.ts +0 -50
- package/test/bind/components/output/BindText-server.ts +0 -23
- package/test/bind/components/output/BindText-types.ts +0 -10
- package/test/bind/components/temp/BindComponent-client-45295d08bc4570c2d059d880dabc052656c80311.ts +0 -79
- package/test/bind/components/temp/BindComponent-server-5ac3ae9fff9117e8a62c1f8a6333b64e50ccad26.ts +0 -46
- package/test/bind/components/temp/BindComponent-types-8a10f6efddd92990ed5390f3c89ba17db179d801.ts +0 -10
- package/test/bind/components/temp/BindText-client-228eeb9b0fccd8baf7aea4fb8e9678e0537fb506.ts +0 -50
- package/test/bind/components/temp/BindText-server-d23c19942047551a7be16220d24aeb95cf7ff16e.ts +0 -23
- package/test/bind/components/temp/BindText-types-5892d9ef33c61a0de524b74323ba135accee8175.ts +0 -10
- package/test/build-server/build-server-element-node.test.ts +0 -61
- package/test/build-server/build-server.test.ts +0 -42
- package/test/build-server/components/IfNested.torp +0 -19
- package/test/build-server/components/output/IfNested-client.ts +0 -101
- package/test/build-server/components/output/IfNested-server.ts +0 -31
- package/test/build-server/components/output/IfNested-types.ts +0 -10
- package/test/build-server/components/temp/IfNested-client-50abd76ec9369ac6cf42f0264870914923f30b5c.ts +0 -101
- package/test/build-server/components/temp/IfNested-server-8a2513b704782704e7e184924c35e55958b15ae1.ts +0 -31
- package/test/build-server/components/temp/IfNested-types-692d58ca98f3534102193a44aa358994f798ca7b.ts +0 -10
- package/test/buildHtml.ts +0 -73
- package/test/buildOutputFiles.ts +0 -217
- package/test/child-component/child-component.test.ts +0 -41
- package/test/child-component/components/output/ChildComponent-client.ts +0 -65
- package/test/child-component/components/output/ChildComponent-server.ts +0 -42
- package/test/child-component/components/output/ChildComponent-types.ts +0 -10
- package/test/child-component/components/temp/ChildComponent-client-b32ac4d5bd6791f3c2c44457880554b416574bd5.ts +0 -65
- package/test/child-component/components/temp/ChildComponent-server-b7846325dc852d230821d741377a70cb654c6c58.ts +0 -42
- package/test/child-component/components/temp/ChildComponent-types-4d26850ef18600f398f7aa9c4502071349bf5624.ts +0 -10
- package/test/class/class.test.ts +0 -165
- package/test/class/components/output/Class-client.ts +0 -123
- package/test/class/components/output/Class-server.ts +0 -78
- package/test/class/components/output/Class-types.ts +0 -10
- package/test/class/components/temp/Class-client-c100fef7474dd892108c52b2cfed5825a3412e8b.ts +0 -123
- package/test/class/components/temp/Class-server-f42d0611a27002b493da55392baf7244d31e0d39.ts +0 -78
- package/test/class/components/temp/Class-types-38567e85c9ec17739c7c97e12281fc1818267190.ts +0 -10
- package/test/comments/html-comments.test.ts +0 -37
- package/test/comments/js-block-comments.test.ts +0 -42
- package/test/comments/js-line-comments.test.ts +0 -37
- package/test/component/component.test.ts +0 -41
- package/test/component/components/output/Component-client.ts +0 -65
- package/test/component/components/output/Component-server.ts +0 -42
- package/test/component/components/output/Component-types.ts +0 -10
- package/test/component/components/temp/Component-client-b96484e81ee8aaccbd0025155ff76a9b40d1b56a.ts +0 -65
- package/test/component/components/temp/Component-server-737acb88705af3ce16c74678df99b687be921b66.ts +0 -42
- package/test/component/components/temp/Component-types-3ef4f140ba29c98357caf0f2618785437b5804de.ts +0 -10
- package/test/console/components/output/Console-client.ts +0 -29
- package/test/console/components/output/Console-server.ts +0 -18
- package/test/console/components/output/Console-types.ts +0 -10
- package/test/console/components/temp/Console-client-8714c492e9017b582573e22b9be515bb7c70b2d9.ts +0 -29
- package/test/console/components/temp/Console-server-e5c69bad6cbc68c8d35b657d2df0605431c520df.ts +0 -18
- package/test/console/components/temp/Console-types-93ad3f25ddc6280fcff2cf4db7c2913d3a474912.ts +0 -10
- package/test/console/console.test.ts +0 -31
- package/test/const/components/output/Const-client.ts +0 -36
- package/test/const/components/output/Const-server.ts +0 -21
- package/test/const/components/output/Const-types.ts +0 -10
- package/test/const/components/temp/Const-client-0d9518b180ca43f6cf66e1a8467286ed5fed8e09.ts +0 -36
- package/test/const/components/temp/Const-server-26e98a80ebfd657bba9de8ef21443a65996c995b.ts +0 -21
- package/test/const/components/temp/Const-types-afba269310bd143aa325752d3cc7e0c598fd0de2.ts +0 -10
- package/test/const/const.test.ts +0 -37
- package/test/context/components/output/Context-client.ts +0 -99
- package/test/context/components/output/Context-server.ts +0 -67
- package/test/context/components/output/Context-types.ts +0 -10
- package/test/context/components/temp/Context-client-a07d9fff7f94993f639a12247527016d150e9b0f.ts +0 -99
- package/test/context/components/temp/Context-server-52193f64b90c8388a8a5d5dfe81bd68e3d4eada2.ts +0 -67
- package/test/context/components/temp/Context-types-e6be7d1cf118d7a8927af59db780010392966d01.ts +0 -10
- package/test/context/context.test.ts +0 -59
- package/test/effects/components/output/ForEffect-client.ts +0 -78
- package/test/effects/components/output/ForEffect-server.ts +0 -22
- package/test/effects/components/output/ForEffect-types.ts +0 -10
- package/test/effects/components/output/IfEffect-client.ts +0 -64
- package/test/effects/components/output/IfEffect-server.ts +0 -24
- package/test/effects/components/output/IfEffect-types.ts +0 -10
- package/test/effects/components/output/NestedIfEffect-client.ts +0 -88
- package/test/effects/components/output/NestedIfEffect-server.ts +0 -28
- package/test/effects/components/output/NestedIfEffect-types.ts +0 -10
- package/test/effects/components/temp/ForEffect-client-317189ae9a2569c0f4b9243ccfc3f580ad03c5e1.ts +0 -78
- package/test/effects/components/temp/ForEffect-server-a6306a1526624693d2b71ae1ecb13b658c95cbfc.ts +0 -22
- package/test/effects/components/temp/ForEffect-types-cfec41b41b054674bf8b01ce0e0003c8a6640a82.ts +0 -10
- package/test/effects/components/temp/IfEffect-client-5cac9165b868c2c3738c2aa498e754975baf7b3d.ts +0 -64
- package/test/effects/components/temp/IfEffect-server-a93ce34f749fc8eca2cb8fa9750622cf8ad1dade.ts +0 -24
- package/test/effects/components/temp/IfEffect-types-7b245b6e531e122e0d0cfb72903bb88223b98793.ts +0 -10
- package/test/effects/components/temp/NestedIfEffect-client-6d34eb573b43fc480ccbad626ebf3c6c3e8a29e8.ts +0 -88
- package/test/effects/components/temp/NestedIfEffect-server-7fbfcc91d32a454c2759d4dd2791bdd15393d470.ts +0 -28
- package/test/effects/components/temp/NestedIfEffect-types-0912466d777f52f3616557823a7e47f5901cb755.ts +0 -10
- package/test/effects/for-effect.test.ts +0 -73
- package/test/effects/if-effect.test.ts +0 -54
- package/test/effects/nested-if-effect.test.ts +0 -79
- package/test/events/components/output/Events-client.ts +0 -46
- package/test/events/components/output/Events-server.ts +0 -26
- package/test/events/components/output/Events-types.ts +0 -10
- package/test/events/components/temp/Events-client-ccab6c0f3bda2d4f18336c27aaa8ade40ea63a43.ts +0 -46
- package/test/events/components/temp/Events-server-3eeea257aecdf7e096c7feb9feb2e84703cfe38c.ts +0 -26
- package/test/events/components/temp/Events-types-f259dd221aa967b0426746303f1f2c33aeeaf068.ts +0 -10
- package/test/events/events.test.ts +0 -62
- package/test/for/components/output/For-client.ts +0 -80
- package/test/for/components/output/For-server.ts +0 -23
- package/test/for/components/output/For-types.ts +0 -10
- package/test/for/components/output/ForAfterFor-client.ts +0 -123
- package/test/for/components/output/ForAfterFor-server.ts +0 -27
- package/test/for/components/output/ForAfterFor-types.ts +0 -10
- package/test/for/components/output/ForContainingFor-client.ts +0 -118
- package/test/for/components/output/ForContainingFor-server.ts +0 -27
- package/test/for/components/output/ForContainingFor-types.ts +0 -10
- package/test/for/components/output/ForContainingFunction-client.ts +0 -88
- package/test/for/components/output/ForContainingFunction-server.ts +0 -29
- package/test/for/components/output/ForContainingFunction-types.ts +0 -10
- package/test/for/components/output/ForContainingIf-client.ts +0 -106
- package/test/for/components/output/ForContainingIf-server.ts +0 -27
- package/test/for/components/output/ForContainingIf-types.ts +0 -10
- package/test/for/components/output/ForEscape-client.ts +0 -99
- package/test/for/components/output/ForEscape-server.ts +0 -26
- package/test/for/components/output/ForEscape-types.ts +0 -10
- package/test/for/components/output/ForIn-client.ts +0 -79
- package/test/for/components/output/ForIn-server.ts +0 -22
- package/test/for/components/output/ForIn-types.ts +0 -10
- package/test/for/components/output/ForOf-client.ts +0 -79
- package/test/for/components/output/ForOf-server.ts +0 -22
- package/test/for/components/output/ForOf-types.ts +0 -10
- package/test/for/components/temp/For-client-6ef77eb2784d244c6591436da31b40c47ddde004.ts +0 -80
- package/test/for/components/temp/For-server-58c21b5e077266b759d017e7cb696dc0ae1d14f6.ts +0 -23
- package/test/for/components/temp/For-types-8bcd17ab2e0faebb340a19f56e052cc94820a29a.ts +0 -10
- package/test/for/components/temp/ForAfterFor-client-af52b59320b4e67714548b747f8aae7a5a15c93b.ts +0 -123
- package/test/for/components/temp/ForAfterFor-server-484aa0db27d3feff0e74ad88a369e35576e0ffe7.ts +0 -27
- package/test/for/components/temp/ForAfterFor-types-443c279cbffc1d07b01b09349cfddc6c081be6bb.ts +0 -10
- package/test/for/components/temp/ForContainingFor-client-361995d2d1a09c06265b6951b5577fc421a1ddcf.ts +0 -118
- package/test/for/components/temp/ForContainingFor-server-35e9268474f8fb887cb824d41b115957fac2ac46.ts +0 -27
- package/test/for/components/temp/ForContainingFor-types-e29bd72e1a1b98bbd196088afb0d6296b8eb9014.ts +0 -10
- package/test/for/components/temp/ForContainingFunction-client-0e704cc69989fb9da72c0528cbf5d0f66bcea224.ts +0 -88
- package/test/for/components/temp/ForContainingFunction-server-c97c0131eed62a1b1fd22da182825fcf717c160a.ts +0 -29
- package/test/for/components/temp/ForContainingFunction-types-16613a1611dfc0b949a78fadd771f6737de61703.ts +0 -10
- package/test/for/components/temp/ForContainingIf-client-97a42fb914e0a3c13509114d0c0cac135f303f16.ts +0 -106
- package/test/for/components/temp/ForContainingIf-server-ba43d99a0430bd211525168f199c5b6706526e08.ts +0 -27
- package/test/for/components/temp/ForContainingIf-types-16613a1611dfc0b949a78fadd771f6737de61703.ts +0 -10
- package/test/for/components/temp/ForEscape-client-af763615c118e3cfd0b3f4008e9a3c209ffbb2dd.ts +0 -99
- package/test/for/components/temp/ForEscape-server-ed5da041557c5ef2988e3e1bb1094340b8e86266.ts +0 -26
- package/test/for/components/temp/ForEscape-types-bb4f3457b02c2ad97a7b6cbc66f9097a37728ed2.ts +0 -10
- package/test/for/components/temp/ForIn-client-06be96d11abe3408aa72519b9eba9ea590327093.ts +0 -79
- package/test/for/components/temp/ForIn-server-8c9d8c3e2272731706b27a18ea4a7dc7c7b644ac.ts +0 -22
- package/test/for/components/temp/ForIn-types-fb4f7b02e23a40d27376760b7e1d06f8ecaa13ba.ts +0 -10
- package/test/for/components/temp/ForOf-client-cc2563ccd0d1b08dfc1b4ee3e1d5a66516009059.ts +0 -79
- package/test/for/components/temp/ForOf-server-5ed73f4ddb3cd32ced6d2d0d7d1db3c0e241a5d6.ts +0 -22
- package/test/for/components/temp/ForOf-types-6e2fbcd0fbfd3c0a2c3d8c458fdda7b05c2a19b1.ts +0 -10
- package/test/for/for-after-for.test.ts +0 -56
- package/test/for/for-containing-for.test.ts +0 -46
- package/test/for/for-containing-function.test.ts +0 -47
- package/test/for/for-containing-if.test.ts +0 -48
- package/test/for/for-escape.test.ts +0 -59
- package/test/for/for-in.test.ts +0 -61
- package/test/for/for-of.test.ts +0 -55
- package/test/for/for-with-key.test.ts +0 -50
- package/test/for/for.test.ts +0 -46
- package/test/function/components/output/Function-client.ts +0 -46
- package/test/function/components/output/Function-server.ts +0 -28
- package/test/function/components/output/Function-types.ts +0 -10
- package/test/function/components/temp/Function-client-a386620409f1dd3658c357fc574c96aa8dd9b9be.ts +0 -46
- package/test/function/components/temp/Function-server-9a4b3a772ac4b0ff50b6e7c6a6f83913412b134b.ts +0 -28
- package/test/function/components/temp/Function-types-5479cb46b9bef3251b7961fb6e99a8c30cd4220f.ts +0 -10
- package/test/function/function.test.ts +0 -50
- package/test/globalSetup.ts +0 -13
- package/test/helpers.ts +0 -170
- package/test/html/components/output/Html-client.ts +0 -50
- package/test/html/components/output/Html-server.ts +0 -17
- package/test/html/components/output/Html-types.ts +0 -10
- package/test/html/components/temp/Html-client-956231afa11be99d3fdc19a37817333b0d17e356.ts +0 -50
- package/test/html/components/temp/Html-server-8eeb3231f8863cca92099793eebb05a0c2d69110.ts +0 -17
- package/test/html/components/temp/Html-types-c5dc816f932e3fb021c006f266a7c9a2f2fb5353.ts +0 -10
- package/test/html/html.test.ts +0 -58
- package/test/hydrateComponent.ts +0 -16
- package/test/if/components/output/ElseIfTrue-client.ts +0 -76
- package/test/if/components/output/ElseIfTrue-server.ts +0 -27
- package/test/if/components/output/ElseIfTrue-types.ts +0 -10
- package/test/if/components/output/ElseTrue-client.ts +0 -76
- package/test/if/components/output/ElseTrue-server.ts +0 -27
- package/test/if/components/output/ElseTrue-types.ts +0 -10
- package/test/if/components/output/IfAfterIf-client.ts +0 -80
- package/test/if/components/output/IfAfterIf-server.ts +0 -25
- package/test/if/components/output/IfAfterIf-types.ts +0 -10
- package/test/if/components/output/IfCache-client.ts +0 -70
- package/test/if/components/output/IfCache-server.ts +0 -24
- package/test/if/components/output/IfCache-types.ts +0 -10
- package/test/if/components/output/IfContainingFor-client.ts +0 -104
- package/test/if/components/output/IfContainingFor-server.ts +0 -26
- package/test/if/components/output/IfContainingFor-types.ts +0 -10
- package/test/if/components/output/IfContainingFunction-client.ts +0 -64
- package/test/if/components/output/IfContainingFunction-server.ts +0 -27
- package/test/if/components/output/IfContainingFunction-types.ts +0 -10
- package/test/if/components/output/IfContainingIf-client.ts +0 -88
- package/test/if/components/output/IfContainingIf-server.ts +0 -28
- package/test/if/components/output/IfContainingIf-types.ts +0 -10
- package/test/if/components/output/IfElseFalse-client.ts +0 -64
- package/test/if/components/output/IfElseFalse-server.ts +0 -24
- package/test/if/components/output/IfElseFalse-types.ts +0 -10
- package/test/if/components/output/IfElseTrue-client.ts +0 -64
- package/test/if/components/output/IfElseTrue-server.ts +0 -24
- package/test/if/components/output/IfElseTrue-types.ts +0 -10
- package/test/if/components/output/IfFalse-client.ts +0 -56
- package/test/if/components/output/IfFalse-server.ts +0 -21
- package/test/if/components/output/IfFalse-types.ts +0 -10
- package/test/if/components/output/IfNested-client.ts +0 -96
- package/test/if/components/output/IfNested-server.ts +0 -31
- package/test/if/components/output/IfNested-types.ts +0 -10
- package/test/if/components/temp/ElseIfTrue-client-d16eee5a11582717355deb9781b3ba9695f496c0.ts +0 -76
- package/test/if/components/temp/ElseIfTrue-server-47a3f8077b1a8b0db5da756b1934e92f09ff4c13.ts +0 -27
- package/test/if/components/temp/ElseIfTrue-types-a492d2b6e8517f598befca7127cd514244239984.ts +0 -10
- package/test/if/components/temp/ElseTrue-client-d16eee5a11582717355deb9781b3ba9695f496c0.ts +0 -76
- package/test/if/components/temp/ElseTrue-server-47a3f8077b1a8b0db5da756b1934e92f09ff4c13.ts +0 -27
- package/test/if/components/temp/ElseTrue-types-a492d2b6e8517f598befca7127cd514244239984.ts +0 -10
- package/test/if/components/temp/IfAfterIf-client-70712848820e1bb593ee7c5f5d333d82a58f6a97.ts +0 -80
- package/test/if/components/temp/IfAfterIf-server-479ceb567eb7e771ecd0f2a370a99dfca28b36f7.ts +0 -25
- package/test/if/components/temp/IfAfterIf-types-c4bd4f93c103a618889f40c77d55fa7de454f70b.ts +0 -10
- package/test/if/components/temp/IfCache-client-470e5e1f0c2111d5756e55f3dcc0f5404a70bade.ts +0 -70
- package/test/if/components/temp/IfCache-server-4115f625d77b834c0d82f76dace5a29e9bf10683.ts +0 -24
- package/test/if/components/temp/IfCache-types-02f467ce9ebc23ae68c9e5f33c90ecc96b666452.ts +0 -10
- package/test/if/components/temp/IfContainingFor-client-500dab2db4653b0fc121a16f74b2cab8335c72f1.ts +0 -104
- package/test/if/components/temp/IfContainingFor-server-7dadac38399f1a22968fc16715b6647cf3e0729c.ts +0 -26
- package/test/if/components/temp/IfContainingFor-types-f93572daa0ecf537aabeba1277394d193fe39e9a.ts +0 -10
- package/test/if/components/temp/IfContainingFunction-client-3dbc7f995da90672bbbdaaecab3f6ce8e05830af.ts +0 -64
- package/test/if/components/temp/IfContainingFunction-server-a204a3f1dc468dd8dc783199eb73edb1d49e5775.ts +0 -27
- package/test/if/components/temp/IfContainingFunction-types-f93572daa0ecf537aabeba1277394d193fe39e9a.ts +0 -10
- package/test/if/components/temp/IfContainingIf-client-37ab307b4f6e316d79681b42f37649eeb7136798.ts +0 -88
- package/test/if/components/temp/IfContainingIf-server-4fbee02784b014175bcb5cc90c3c6246d15a6f5e.ts +0 -28
- package/test/if/components/temp/IfContainingIf-types-f93572daa0ecf537aabeba1277394d193fe39e9a.ts +0 -10
- package/test/if/components/temp/IfContainingIfAfterIf-client-f435f9bc464edfaf580ef7c1726a4be5ba8c6f6f.ts +0 -116
- package/test/if/components/temp/IfContainingIfAfterIf-server-2cfd604fd3a7187217437bd97dc89a4c6aeb8726.ts +0 -29
- package/test/if/components/temp/IfContainingIfAfterIf-types-805203b39332252a17996786ac79ece914bbea34.ts +0 -10
- package/test/if/components/temp/IfElseFalse-client-b2d08e03aee434b3758134b5cfb72bd2f18fa22e.ts +0 -64
- package/test/if/components/temp/IfElseFalse-server-52f6dac76bacbe350071957956cb282dba8cfbdd.ts +0 -24
- package/test/if/components/temp/IfElseFalse-types-e81080227f8f69ac1d81141d97a07e0a0e9391c1.ts +0 -10
- package/test/if/components/temp/IfElseTrue-client-b2d08e03aee434b3758134b5cfb72bd2f18fa22e.ts +0 -64
- package/test/if/components/temp/IfElseTrue-server-52f6dac76bacbe350071957956cb282dba8cfbdd.ts +0 -24
- package/test/if/components/temp/IfElseTrue-types-e81080227f8f69ac1d81141d97a07e0a0e9391c1.ts +0 -10
- package/test/if/components/temp/IfFalse-client-fbccb762d70b201b676b58c28e9c932e86c705cf.ts +0 -56
- package/test/if/components/temp/IfFalse-server-d13dc53aa5d556c19183947090657e045b6c32c5.ts +0 -21
- package/test/if/components/temp/IfFalse-types-1d512c6d82e2af9efe0221a9929b05ad62fd97fb.ts +0 -10
- package/test/if/components/temp/IfNested-client-8e7f7c3e3ea0058b3b4cbe702bd10a7f2a1fe5cd.ts +0 -96
- package/test/if/components/temp/IfNested-server-8a2513b704782704e7e184924c35e55958b15ae1.ts +0 -31
- package/test/if/components/temp/IfNested-types-692d58ca98f3534102193a44aa358994f798ca7b.ts +0 -10
- package/test/if/else-if-true.test.ts +0 -70
- package/test/if/else-true.test.ts +0 -70
- package/test/if/if-after-if.test.ts +0 -64
- package/test/if/if-cache.test.ts +0 -77
- package/test/if/if-containing-for.test.ts +0 -65
- package/test/if/if-containing-function.test.ts +0 -57
- package/test/if/if-containing-if.test.ts +0 -67
- package/test/if/if-else-false.test.ts +0 -66
- package/test/if/if-else-true.test.ts +0 -69
- package/test/if/if-false.test.ts +0 -56
- package/test/if/if-nested.test.ts +0 -72
- package/test/importComponent.ts +0 -34
- package/test/importComponentFromFile.ts +0 -19
- package/test/imports/commented-imports.test.ts +0 -30
- package/test/imports/imports.test.ts +0 -37
- package/test/imports/multiple-imports.test.ts +0 -182
- package/test/mount/components/output/Mount-client.ts +0 -36
- package/test/mount/components/output/Mount-server.ts +0 -25
- package/test/mount/components/output/Mount-types.ts +0 -10
- package/test/mount/components/temp/Mount-client-411fc5e02f2d296627d26b3b5004dcbae0d176d9.ts +0 -36
- package/test/mount/components/temp/Mount-server-26084a91839f500626771919e57ddefcd9b35af6.ts +0 -25
- package/test/mount/components/temp/Mount-types-2d88616243f860d43b8b7d74a6bbeff9b2c6f27b.ts +0 -10
- package/test/mount/mount.test.ts +0 -42
- package/test/mountComponent.ts +0 -11
- package/test/on-mount/components/output/OnMount-client.ts +0 -33
- package/test/on-mount/components/output/OnMount-server.ts +0 -18
- package/test/on-mount/components/output/OnMount-types.ts +0 -10
- package/test/on-mount/components/temp/OnMount-client-7fb23d48f5c93e7026b0aefe1488e678b5f91042.ts +0 -33
- package/test/on-mount/components/temp/OnMount-server-1b724b3d6b49bc7cc2416bead3e5fa481e91d504.ts +0 -18
- package/test/on-mount/components/temp/OnMount-types-d0f834addb351520cc75a589cb9ec5b6a5a787b4.ts +0 -10
- package/test/on-mount/on-mount.test.ts +0 -36
- package/test/party/1-declare-state.test.ts +0 -39
- package/test/party/10-on-mount.test.ts +0 -45
- package/test/party/12-props.test.ts +0 -59
- package/test/party/13-emit-to-parent.test.ts +0 -71
- package/test/party/14-slot.test.ts +0 -58
- package/test/party/15-slot-fallback.test.ts +0 -58
- package/test/party/16-context.test.ts +0 -67
- package/test/party/17-input-text.test.ts +0 -48
- package/test/party/18-input-checkbox.test.ts +0 -49
- package/test/party/19-input-radio.test.ts +0 -60
- package/test/party/2-update-state.test.ts +0 -40
- package/test/party/20-input-select.test.ts +0 -71
- package/test/party/3-computed-state.test.ts +0 -42
- package/test/party/4-minimal-template.test.ts +0 -35
- package/test/party/5-styling.test.ts +0 -43
- package/test/party/6-loop.test.ts +0 -44
- package/test/party/7-event-click.test.ts +0 -50
- package/test/party/8-dom-ref.test.ts +0 -43
- package/test/party/9-conditional.test.ts +0 -74
- package/test/party/components/output/ComputedState-client.ts +0 -42
- package/test/party/components/output/ComputedState-server.ts +0 -27
- package/test/party/components/output/ComputedState-types.ts +0 -10
- package/test/party/components/output/Conditional-client.ts +0 -105
- package/test/party/components/output/Conditional-server.ts +0 -42
- package/test/party/components/output/Conditional-types.ts +0 -10
- package/test/party/components/output/Context-client.ts +0 -83
- package/test/party/components/output/Context-server.ts +0 -52
- package/test/party/components/output/Context-types.ts +0 -10
- package/test/party/components/output/DeclareState-client.ts +0 -39
- package/test/party/components/output/DeclareState-server.ts +0 -24
- package/test/party/components/output/DeclareState-types.ts +0 -10
- package/test/party/components/output/DomRef-client.ts +0 -37
- package/test/party/components/output/DomRef-server.ts +0 -26
- package/test/party/components/output/DomRef-types.ts +0 -10
- package/test/party/components/output/EmitToParent-client.ts +0 -87
- package/test/party/components/output/EmitToParent-server.ts +0 -56
- package/test/party/components/output/EmitToParent-types.ts +0 -10
- package/test/party/components/output/EventClick-client.ts +0 -46
- package/test/party/components/output/EventClick-server.ts +0 -28
- package/test/party/components/output/EventClick-types.ts +0 -10
- package/test/party/components/output/InputCheckbox-client.ts +0 -45
- package/test/party/components/output/InputCheckbox-server.ts +0 -24
- package/test/party/components/output/InputCheckbox-types.ts +0 -10
- package/test/party/components/output/InputRadio-client.ts +0 -54
- package/test/party/components/output/InputRadio-server.ts +0 -25
- package/test/party/components/output/InputRadio-types.ts +0 -10
- package/test/party/components/output/InputSelect-client.ts +0 -105
- package/test/party/components/output/InputSelect-server.ts +0 -36
- package/test/party/components/output/InputSelect-types.ts +0 -10
- package/test/party/components/output/InputText-client.ts +0 -45
- package/test/party/components/output/InputText-server.ts +0 -25
- package/test/party/components/output/InputText-types.ts +0 -10
- package/test/party/components/output/Loop-client.ts +0 -83
- package/test/party/components/output/Loop-server.ts +0 -25
- package/test/party/components/output/Loop-types.ts +0 -10
- package/test/party/components/output/MinimalTemplate-client.ts +0 -27
- package/test/party/components/output/MinimalTemplate-server.ts +0 -18
- package/test/party/components/output/MinimalTemplate-types.ts +0 -10
- package/test/party/components/output/OnMount-client.ts +0 -43
- package/test/party/components/output/OnMount-server.ts +0 -29
- package/test/party/components/output/OnMount-types.ts +0 -10
- package/test/party/components/output/Props-client.ts +0 -83
- package/test/party/components/output/Props-server.ts +0 -50
- package/test/party/components/output/Props-types.ts +0 -10
- package/test/party/components/output/Slot-client.ts +0 -85
- package/test/party/components/output/Slot-server.ts +0 -69
- package/test/party/components/output/Slot-types.ts +0 -10
- package/test/party/components/output/SlotFallback-client.ts +0 -85
- package/test/party/components/output/SlotFallback-server.ts +0 -69
- package/test/party/components/output/SlotFallback-types.ts +0 -10
- package/test/party/components/output/Styling-client.ts +0 -27
- package/test/party/components/output/Styling-server.ts +0 -21
- package/test/party/components/output/Styling-types.ts +0 -10
- package/test/party/components/output/UpdateState-client.ts +0 -40
- package/test/party/components/output/UpdateState-server.ts +0 -25
- package/test/party/components/output/UpdateState-types.ts +0 -10
- package/test/party/components/temp/ComputedState-client-473e1fa90e27365be8f5ea1432977ac16c5ed586.ts +0 -42
- package/test/party/components/temp/ComputedState-server-ae1a02b6e98e8e4d37be20a37af002b29e54e259.ts +0 -27
- package/test/party/components/temp/ComputedState-types-436bd75fe7808c3a30389aeb1740aea361aa8681.ts +0 -10
- package/test/party/components/temp/Conditional-client-5c7921202718284dba4d3236219532564351ae43.ts +0 -105
- package/test/party/components/temp/Conditional-server-2b55ee76a71a9e697124cb93b6d3bb5b90709855.ts +0 -42
- package/test/party/components/temp/Conditional-types-d301a2317da01a215fc8e5222dc6ff87226fa250.ts +0 -10
- package/test/party/components/temp/Context-client-d38e35d2f851fa88938cc1758fd8820fa47dfe8e.ts +0 -83
- package/test/party/components/temp/Context-server-2a72df9fe275e376a358954d962ff05b22d2c8e9.ts +0 -52
- package/test/party/components/temp/Context-types-d04199ab7d43ecc12ceccb7a0bef7ff38ac1e8b1.ts +0 -10
- package/test/party/components/temp/DeclareState-client-44648d7db561c7e88021e076335475511b2d37fe.ts +0 -39
- package/test/party/components/temp/DeclareState-server-f941a9e5505c3e5125cbd5bcab99d74407b6b570.ts +0 -24
- package/test/party/components/temp/DeclareState-types-06f89338c785a1fd352ed7de3ebe02b30722760d.ts +0 -10
- package/test/party/components/temp/DomRef-client-cae57e146fc33eb104a6ada0476c07a434a65562.ts +0 -37
- package/test/party/components/temp/DomRef-server-a81201ce5b2987207ca9375370ff278bb51d12b0.ts +0 -26
- package/test/party/components/temp/DomRef-types-33da14c13216ca00edaa8f02508db21f5cd32d31.ts +0 -10
- package/test/party/components/temp/EmitToParent-client-d5379e6fa015e1e591f061852f5bcc35a80c584c.ts +0 -87
- package/test/party/components/temp/EmitToParent-server-79aabe3df7c5fd61144e53a71ab3833375cbd473.ts +0 -56
- package/test/party/components/temp/EmitToParent-types-10a6f55029e859366f9a3a73cdcdb3f63e89dbeb.ts +0 -10
- package/test/party/components/temp/EventClick-client-c7584b79c09e2545c81553e76233b9d07f286d06.ts +0 -46
- package/test/party/components/temp/EventClick-server-7ae082e9c92107b0f042f9b0877e7e4c7ad0fa38.ts +0 -28
- package/test/party/components/temp/EventClick-types-206b0704ee2e25f5f3198d716fa524295581c075.ts +0 -10
- package/test/party/components/temp/InputCheckbox-client-97f354e60679541174229d2b0ac71663023b008a.ts +0 -45
- package/test/party/components/temp/InputCheckbox-server-82f054fbabb357aa466b489bfdea76e582ff220e.ts +0 -24
- package/test/party/components/temp/InputCheckbox-types-23d4e196c659901c347a7b3e5c9e4a6668234adb.ts +0 -10
- package/test/party/components/temp/InputRadio-client-ba6fa665a594ba2ea291eaa211aa236be3ae1999.ts +0 -54
- package/test/party/components/temp/InputRadio-server-620981bdc7ab6d42ba08e04ba8c16f9ed477e1c0.ts +0 -25
- package/test/party/components/temp/InputRadio-types-526e2bb4c36ec1bed87eaf5722093a0eaefcd9d3.ts +0 -10
- package/test/party/components/temp/InputSelect-client-531d91c6bd0ef17dad8b40f0903138be3631025a.ts +0 -105
- package/test/party/components/temp/InputSelect-server-c36d8b8c533d2104122490dde64554f65cb15544.ts +0 -36
- package/test/party/components/temp/InputSelect-types-e652a36ebdd98e8c23a8de3156c4499023f09301.ts +0 -10
- package/test/party/components/temp/InputText-client-08763044ae40897bd697e9a62a23660853abd829.ts +0 -45
- package/test/party/components/temp/InputText-server-3546f8ce8a31bbe0869b9a351d6da7f649e7daf6.ts +0 -25
- package/test/party/components/temp/InputText-types-ab629048402441fde9a292bc2d376c0deea482a8.ts +0 -10
- package/test/party/components/temp/Loop-client-4f033ac051223f80ce4e8c82bd61641b6da94178.ts +0 -83
- package/test/party/components/temp/Loop-server-5bbcca21d3ec9a1f314aaf02d89d18cb08dcc7ee.ts +0 -25
- package/test/party/components/temp/Loop-types-075975e9b9074b49f96f99d660f0ee580546a630.ts +0 -10
- package/test/party/components/temp/MinimalTemplate-client-8163ab942acd62118fcbc955b14965fcccffdb4b.ts +0 -27
- package/test/party/components/temp/MinimalTemplate-server-5df0b3d954b992d75cc0de1ae65cfc48d1059422.ts +0 -18
- package/test/party/components/temp/MinimalTemplate-types-3c153ac7af343dbce6cb081f1ae1b4f85d7f0b10.ts +0 -10
- package/test/party/components/temp/OnMount-client-aa37e9cedf6353d464c0ed9d87d2edceb83069d3.ts +0 -43
- package/test/party/components/temp/OnMount-server-9c991ae9f8ab11a4b0343e9fffa8ce8b945bb056.ts +0 -29
- package/test/party/components/temp/OnMount-types-dfb55ea9b607c89167dbd7538523a484a6eec300.ts +0 -10
- package/test/party/components/temp/Props-client-760a5da0a852aea0c4d0f07a977e1a0e1b892782.ts +0 -83
- package/test/party/components/temp/Props-server-208bcc8cbc5c5e7ed0072c350cf96eb6b4754686.ts +0 -50
- package/test/party/components/temp/Props-types-3e70c106e03c68b4aa06c2fe21dfeceffe7cc313.ts +0 -10
- package/test/party/components/temp/Slot-client-e353ce6d73839cf111973dbd731ca0166f6d2c5c.ts +0 -85
- package/test/party/components/temp/Slot-server-9ffd9b714b531112129b5c826dd8586a5ea73209.ts +0 -69
- package/test/party/components/temp/Slot-types-ea73d641565a4478759166f462206dd97c92cedd.ts +0 -10
- package/test/party/components/temp/SlotFallback-client-e353ce6d73839cf111973dbd731ca0166f6d2c5c.ts +0 -85
- package/test/party/components/temp/SlotFallback-server-9ffd9b714b531112129b5c826dd8586a5ea73209.ts +0 -69
- package/test/party/components/temp/SlotFallback-types-ea73d641565a4478759166f462206dd97c92cedd.ts +0 -10
- package/test/party/components/temp/Styling-client-a85514d860d10fb97b83eea979c11aa7bef7dc23.ts +0 -27
- package/test/party/components/temp/Styling-server-32af1b2077f7979b0956904ee9e657a41f512a5c.ts +0 -21
- package/test/party/components/temp/Styling-types-f1ce4f0b03d404c70704f271ce9bfc5d5107346c.ts +0 -10
- package/test/party/components/temp/UpdateState-client-10e1582a52dd50d99cd0c48a76910ce9d5ae3fd1.ts +0 -40
- package/test/party/components/temp/UpdateState-server-9c6e94e88cd8b9032aeae0a2c4a6cd51f7d09c95.ts +0 -25
- package/test/party/components/temp/UpdateState-types-9c69805006d2d3bb457c5d4d87db8baeb431aeb6.ts +0 -10
- package/test/preact.test.ts +0 -2560
- package/test/props/components/output/Reactive-client.ts +0 -73
- package/test/props/components/output/Reactive-server.ts +0 -45
- package/test/props/components/output/Reactive-types.ts +0 -10
- package/test/props/components/temp/Reactive-client-f827f9bee0043cea318d45af4882792c2f5f0514.ts +0 -73
- package/test/props/components/temp/Reactive-server-6728168c7df78b8ebf94b53358cb8f6f5e7ce6e7.ts +0 -45
- package/test/props/components/temp/Reactive-types-f0238cd99c1271ff53705c40848ec94c8ca25e3a.ts +0 -10
- package/test/props/props.test.ts +0 -17
- package/test/props/reactive.test.ts +0 -52
- package/test/replace/components/output/Replace-client.ts +0 -58
- package/test/replace/components/output/Replace-server.ts +0 -23
- package/test/replace/components/output/Replace-types.ts +0 -10
- package/test/replace/components/temp/Replace-client-00856a163c5bf2c42ddda4f856461d1ac4d47bf9.ts +0 -58
- package/test/replace/components/temp/Replace-server-f415c96e5ea7c2f370fd3c55ef6b8b7e0cb7b3ee.ts +0 -23
- package/test/replace/components/temp/Replace-types-9aedaa79e9b616ea1780ea97306f3428faa5d477.ts +0 -10
- package/test/replace/replace.test.ts +0 -64
- package/test/run/watch-array.test.ts +0 -22
- package/test/run/watch-defined-property.test.ts +0 -25
- package/test/run/watch-effect.test.ts +0 -17
- package/test/run/watch-function.test.ts +0 -20
- package/test/run/watch-getter.test.ts +0 -20
- package/test/run/watch-set-same-value.test.ts +0 -28
- package/test/script/script-with-comments.test.ts +0 -34
- package/test/script/script-with-strings.test.ts +0 -28
- package/test/script/script.test.ts +0 -24
- package/test/slots/basic-slot.test.ts +0 -48
- package/test/slots/components/output/BasicSlot-client.ts +0 -79
- package/test/slots/components/output/BasicSlot-server.ts +0 -55
- package/test/slots/components/output/BasicSlot-types.ts +0 -10
- package/test/slots/components/output/LetSlot-client.ts +0 -135
- package/test/slots/components/output/LetSlot-server.ts +0 -61
- package/test/slots/components/output/LetSlot-types.ts +0 -10
- package/test/slots/components/output/NamedSlot-client.ts +0 -98
- package/test/slots/components/output/NamedSlot-server.ts +0 -71
- package/test/slots/components/output/NamedSlot-types.ts +0 -10
- package/test/slots/components/output/UnusedSlot-client.ts +0 -65
- package/test/slots/components/output/UnusedSlot-server.ts +0 -44
- package/test/slots/components/output/UnusedSlot-types.ts +0 -10
- package/test/slots/components/temp/BasicSlot-client-fb283dc3759b543cb0b4b5561a9c79b29d520fb9.ts +0 -79
- package/test/slots/components/temp/BasicSlot-server-a2deda4f03ac76f9bb924e01a9c04a82ef8c6576.ts +0 -55
- package/test/slots/components/temp/BasicSlot-types-709765786c453e34088db3e894a59fb3332d3ed1.ts +0 -10
- package/test/slots/components/temp/LetSlot-client-484681cc8921276d4f499153715954dbd1b5db33.ts +0 -135
- package/test/slots/components/temp/LetSlot-server-276bc0a6777f67cb357ec2cde625cdd81e1dc882.ts +0 -61
- package/test/slots/components/temp/LetSlot-types-10ae95da96dbe9990b06cbff94e7db0c8651d2b5.ts +0 -10
- package/test/slots/components/temp/NamedSlot-client-dbd42fb0e05da85cc4e5933adac770e63bcdf0e5.ts +0 -98
- package/test/slots/components/temp/NamedSlot-server-66508f6683c334a800d612ee55942e414ac13766.ts +0 -71
- package/test/slots/components/temp/NamedSlot-types-ed10fb6338eb9bd67281b9658bd7b10b572d346a.ts +0 -10
- package/test/slots/components/temp/UnusedSlot-client-eba6314df240becf0b8144e8a728c9c300311c97.ts +0 -65
- package/test/slots/components/temp/UnusedSlot-server-315be7277a95a1fb4c8e9519e4b796c57272ce9d.ts +0 -44
- package/test/slots/components/temp/UnusedSlot-types-88f7e38611b4cae1067969cf702cde41422837ae.ts +0 -10
- package/test/slots/let-slot.test.ts +0 -62
- package/test/slots/named-slot.test.ts +0 -55
- package/test/slots/unused-slot.test.ts +0 -45
- package/test/source-maps/interpolated.test.ts +0 -88
- package/test/source-maps/parse.test.ts +0 -62
- package/test/special-component/components/output/SpecialComponent-client.ts +0 -127
- package/test/special-component/components/output/SpecialComponent-server.ts +0 -83
- package/test/special-component/components/output/SpecialComponent-types.ts +0 -10
- package/test/special-component/components/temp/SpecialComponent-client-87b33f7abbaa5821348ac63491021bd8a994da07.ts +0 -127
- package/test/special-component/components/temp/SpecialComponent-server-cebe1ec049e2ce8303e94a1246acca40c64443c8.ts +0 -83
- package/test/special-component/components/temp/SpecialComponent-types-3ef4f140ba29c98357caf0f2618785437b5804de.ts +0 -10
- package/test/special-component/special-component.test.ts +0 -76
- package/test/special-element/components/output/SpecialElement-client.ts +0 -36
- package/test/special-element/components/output/SpecialElement-server.ts +0 -17
- package/test/special-element/components/output/SpecialElement-types.ts +0 -10
- package/test/special-element/components/temp/SpecialElement-client-6c11102dc76f11f2d437d78936651fe50b8ec97e.ts +0 -36
- package/test/special-element/components/temp/SpecialElement-server-254b4fb61873549a24d215891a9195ba008b6098.ts +0 -17
- package/test/special-element/components/temp/SpecialElement-types-478aac6fcc8cc71dc587b534bb45ddcde069e2cb.ts +0 -10
- package/test/special-element/special-element.test.ts +0 -55
- package/test/special-head/components/output/SpecialHead-client.ts +0 -22
- package/test/special-head/components/output/SpecialHead-server.ts +0 -15
- package/test/special-head/components/output/SpecialHead-types.ts +0 -10
- package/test/special-head/components/temp/SpecialHead-client-39c4f86e998309da6125f563bd4d45d89250f108.ts +0 -22
- package/test/special-head/components/temp/SpecialHead-server-702470ee8fabae38313dc532dd5f26995d2366f6.ts +0 -15
- package/test/special-head/components/temp/SpecialHead-types-88772e6c9aefe7f65c342350ad45b29e7fa16604.ts +0 -10
- package/test/special-head/special-head.test.ts +0 -49
- package/test/special-self/components/output/SpecialSelf-client.ts +0 -75
- package/test/special-self/components/output/SpecialSelf-server.ts +0 -29
- package/test/special-self/components/output/SpecialSelf-types.ts +0 -10
- package/test/special-self/components/temp/SpecialSelf-client-088aa4e2721c30b8be1538630250aee43fe5bd0d.ts +0 -75
- package/test/special-self/components/temp/SpecialSelf-server-b7f52c0bb10d507086e63a100cd1c7c705b1c014.ts +0 -29
- package/test/special-self/components/temp/SpecialSelf-types-d438955d6f42951942dfa72ec1b79ad4ee95e966.ts +0 -10
- package/test/special-self/special-self.test.ts +0 -54
- package/test/style/components/output/Style-client.ts +0 -32
- package/test/style/components/output/Style-server.ts +0 -18
- package/test/style/components/output/Style-types.ts +0 -10
- package/test/style/components/temp/Style-client-1a7f59c1a65f59b76e8c196d9ebd6524a9c88b59.ts +0 -32
- package/test/style/components/temp/Style-server-f789c9d022ece18ce7a5729284dd555ad874371d.ts +0 -18
- package/test/style/components/temp/Style-types-d7ced2961f74be74eebaedfb98c492c6789d3cb8.ts +0 -10
- package/test/style/parse.test.ts +0 -597
- package/test/style/style.test.ts +0 -56
- package/test/svg/components/output/Svg-client.ts +0 -72
- package/test/svg/components/output/Svg-server.ts +0 -25
- package/test/svg/components/output/Svg-types.ts +0 -10
- package/test/svg/components/temp/Svg-client-822c22abd8dc029cd16551cfaad5a5b996d6d90a.ts +0 -72
- package/test/svg/components/temp/Svg-server-1b0a6697637618fd25b59d5bf54babb1afeacf2e.ts +0 -25
- package/test/svg/components/temp/Svg-types-70f9e311a005452b58286636c0dcb67a73e9fab4.ts +0 -10
- package/test/svg/svg.test.ts +0 -57
- package/test/switch/components/output/Switch-client.ts +0 -89
- package/test/switch/components/output/Switch-server.ts +0 -40
- package/test/switch/components/output/Switch-types.ts +0 -18
- package/test/switch/components/temp/Switch-client-b818bdff1d68b371a4ddb02f2c980e2e076dbbcf.ts +0 -89
- package/test/switch/components/temp/Switch-server-9995e5e44b0a790ecdaa5e3c7367e3af85f1173b.ts +0 -40
- package/test/switch/components/temp/Switch-types-fad2e2b194747eb6c06474c81de5f814c15e06aa.ts +0 -18
- package/test/switch/switch.test.ts +0 -81
- package/test/template/basic-file.test.ts +0 -84
- package/test/template/empty-file.test.ts +0 -14
- package/test/template/errors.test.ts +0 -305
- package/test/text/components/output/Text-client.ts +0 -38
- package/test/text/components/output/Text-server.ts +0 -21
- package/test/text/components/output/Text-types.ts +0 -13
- package/test/text/components/temp/Text-client-5ae847f527793bc47cdc979746910e215fab7475.ts +0 -38
- package/test/text/components/temp/Text-server-fe60ab39cd9f3ec6e258ad77f4e86411038eb928.ts +0 -21
- package/test/text/components/temp/Text-types-8734fa84ea5e6d078b66a771ec48b821c954573f.ts +0 -13
- package/test/text/text.test.ts +0 -59
- package/test/watch/watch-nested-object.test.ts +0 -16
- package/test/watch/watch-null-object.test.ts +0 -9
- package/test/watch/watch-null-property.test.ts +0 -10
- package/test/watch/watch-simple-object.test.ts +0 -12
- package/test/watch/watch-undefined-object.test.ts +0 -9
- package/test/watch/watch-undefined-property.test.ts +0 -9
- package/test/watch-array/ArrayState.ts +0 -6
- package/test/watch-array/array-all-functions-unkeyed.test.ts +0 -99
- package/test/watch-array/array-all-functions.test.ts +0 -100
- package/test/watch-array/array-empty.test.ts +0 -53
- package/test/watch-array/array-entries.test.ts +0 -75
- package/test/watch-array/array-indexes.test.ts +0 -75
- package/test/watch-array/array-pop.test.ts +0 -68
- package/test/watch-array/array-push.test.ts +0 -68
- package/test/watch-array/array-reassign.test.ts +0 -77
- package/test/watch-array/array-reverse.test.ts +0 -68
- package/test/watch-array/array-set-object.test.ts +0 -68
- package/test/watch-array/array-set-property.test.ts +0 -68
- package/test/watch-array/array-shift.test.ts +0 -68
- package/test/watch-array/array-sort.test.ts +0 -72
- package/test/watch-array/array-splice-add.test.ts +0 -68
- package/test/watch-array/array-splice-delete-all.test.ts +0 -68
- package/test/watch-array/array-splice-delete-and-add.test.ts +0 -68
- package/test/watch-array/array-splice-delete-end.test.ts +0 -68
- package/test/watch-array/array-splice-delete.test.ts +0 -68
- package/test/watch-array/array-swap.test.ts +0 -72
- package/test/watch-array/array-unshift.test.ts +0 -68
- package/test/watch-array/array-update-assignment.test.ts +0 -73
- package/test/watch-array/components/output/ArrayAllFunctions-client.ts +0 -80
- package/test/watch-array/components/output/ArrayAllFunctions-server.ts +0 -22
- package/test/watch-array/components/output/ArrayAllFunctions-types.ts +0 -10
- package/test/watch-array/components/output/ArrayAllFunctionsUnkeyed-client.ts +0 -79
- package/test/watch-array/components/output/ArrayAllFunctionsUnkeyed-server.ts +0 -22
- package/test/watch-array/components/output/ArrayAllFunctionsUnkeyed-types.ts +0 -10
- package/test/watch-array/components/output/ArrayEmpty-client.ts +0 -80
- package/test/watch-array/components/output/ArrayEmpty-server.ts +0 -22
- package/test/watch-array/components/output/ArrayEmpty-types.ts +0 -10
- package/test/watch-array/components/output/ArrayEntries-client.ts +0 -81
- package/test/watch-array/components/output/ArrayEntries-server.ts +0 -22
- package/test/watch-array/components/output/ArrayEntries-types.ts +0 -10
- package/test/watch-array/components/output/ArrayIndexes-client.ts +0 -80
- package/test/watch-array/components/output/ArrayIndexes-server.ts +0 -22
- package/test/watch-array/components/output/ArrayIndexes-types.ts +0 -10
- package/test/watch-array/components/output/ArrayPop-client.ts +0 -80
- package/test/watch-array/components/output/ArrayPop-server.ts +0 -22
- package/test/watch-array/components/output/ArrayPop-types.ts +0 -10
- package/test/watch-array/components/output/ArrayPush-client.ts +0 -80
- package/test/watch-array/components/output/ArrayPush-server.ts +0 -22
- package/test/watch-array/components/output/ArrayPush-types.ts +0 -10
- package/test/watch-array/components/output/ArrayReassign-client.ts +0 -80
- package/test/watch-array/components/output/ArrayReassign-server.ts +0 -22
- package/test/watch-array/components/output/ArrayReassign-types.ts +0 -10
- package/test/watch-array/components/output/ArrayReverse-client.ts +0 -80
- package/test/watch-array/components/output/ArrayReverse-server.ts +0 -22
- package/test/watch-array/components/output/ArrayReverse-types.ts +0 -10
- package/test/watch-array/components/output/ArraySetObject-client.ts +0 -80
- package/test/watch-array/components/output/ArraySetObject-server.ts +0 -22
- package/test/watch-array/components/output/ArraySetObject-types.ts +0 -10
- package/test/watch-array/components/output/ArraySetProperty-client.ts +0 -80
- package/test/watch-array/components/output/ArraySetProperty-server.ts +0 -22
- package/test/watch-array/components/output/ArraySetProperty-types.ts +0 -10
- package/test/watch-array/components/output/ArrayShift-client.ts +0 -80
- package/test/watch-array/components/output/ArrayShift-server.ts +0 -22
- package/test/watch-array/components/output/ArrayShift-types.ts +0 -10
- package/test/watch-array/components/output/ArraySort-client.ts +0 -80
- package/test/watch-array/components/output/ArraySort-server.ts +0 -22
- package/test/watch-array/components/output/ArraySort-types.ts +0 -10
- package/test/watch-array/components/output/ArraySpliceAdd-client.ts +0 -80
- package/test/watch-array/components/output/ArraySpliceAdd-server.ts +0 -22
- package/test/watch-array/components/output/ArraySpliceAdd-types.ts +0 -10
- package/test/watch-array/components/output/ArraySpliceDelete-client.ts +0 -80
- package/test/watch-array/components/output/ArraySpliceDelete-server.ts +0 -22
- package/test/watch-array/components/output/ArraySpliceDelete-types.ts +0 -10
- package/test/watch-array/components/output/ArraySpliceDeleteAll-client.ts +0 -80
- package/test/watch-array/components/output/ArraySpliceDeleteAll-server.ts +0 -22
- package/test/watch-array/components/output/ArraySpliceDeleteAll-types.ts +0 -10
- package/test/watch-array/components/output/ArraySpliceDeleteAndAdd-client.ts +0 -80
- package/test/watch-array/components/output/ArraySpliceDeleteAndAdd-server.ts +0 -22
- package/test/watch-array/components/output/ArraySpliceDeleteAndAdd-types.ts +0 -10
- package/test/watch-array/components/output/ArraySpliceDeleteEnd-client.ts +0 -80
- package/test/watch-array/components/output/ArraySpliceDeleteEnd-server.ts +0 -22
- package/test/watch-array/components/output/ArraySpliceDeleteEnd-types.ts +0 -10
- package/test/watch-array/components/output/ArraySwap-client.ts +0 -80
- package/test/watch-array/components/output/ArraySwap-server.ts +0 -22
- package/test/watch-array/components/output/ArraySwap-types.ts +0 -10
- package/test/watch-array/components/output/ArrayUnshift-client.ts +0 -80
- package/test/watch-array/components/output/ArrayUnshift-server.ts +0 -22
- package/test/watch-array/components/output/ArrayUnshift-types.ts +0 -10
- package/test/watch-array/components/output/ArrayUpdateAssignment-client.ts +0 -80
- package/test/watch-array/components/output/ArrayUpdateAssignment-server.ts +0 -22
- package/test/watch-array/components/output/ArrayUpdateAssignment-types.ts +0 -10
- package/test/watch-array/components/temp/ArrayAllFunctions-client-544d5ee7280f204fab57094bc41652d4656104aa.ts +0 -80
- package/test/watch-array/components/temp/ArrayAllFunctions-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts +0 -22
- package/test/watch-array/components/temp/ArrayAllFunctions-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +0 -10
- package/test/watch-array/components/temp/ArrayAllFunctionsUnkeyed-client-cdea644623ae3b5c005a990d70cc22864a81b4d7.ts +0 -79
- package/test/watch-array/components/temp/ArrayAllFunctionsUnkeyed-server-5a3dbdec1785a4b9ad02f5d877764257f28bc6dd.ts +0 -22
- package/test/watch-array/components/temp/ArrayAllFunctionsUnkeyed-types-6f544a6b354c46913b9ee0e843d0a6482af2745d.ts +0 -10
- package/test/watch-array/components/temp/ArrayEmpty-client-544d5ee7280f204fab57094bc41652d4656104aa.ts +0 -80
- package/test/watch-array/components/temp/ArrayEmpty-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts +0 -22
- package/test/watch-array/components/temp/ArrayEmpty-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +0 -10
- package/test/watch-array/components/temp/ArrayEntries-client-c34e4ebcafc19fd07331a6637b1a21702c6b7e4c.ts +0 -81
- package/test/watch-array/components/temp/ArrayEntries-server-120529d0e96f1dd0c1cff0507f60e0e0b4fc0360.ts +0 -22
- package/test/watch-array/components/temp/ArrayEntries-types-ae83cd05c68e5e6b7e8d31212035c14ec9ea6b85.ts +0 -10
- package/test/watch-array/components/temp/ArrayIndexes-client-d6f07960e57bd1308a7923dc5e4b35c459c500ad.ts +0 -80
- package/test/watch-array/components/temp/ArrayIndexes-server-cf0648f9442836997c4d64fad5959f453ad5d77f.ts +0 -22
- package/test/watch-array/components/temp/ArrayIndexes-types-5f02ec73d46553fd5730abfe022dba9a76a341f7.ts +0 -10
- package/test/watch-array/components/temp/ArrayPop-client-544d5ee7280f204fab57094bc41652d4656104aa.ts +0 -80
- package/test/watch-array/components/temp/ArrayPop-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts +0 -22
- package/test/watch-array/components/temp/ArrayPop-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +0 -10
- package/test/watch-array/components/temp/ArrayPush-client-544d5ee7280f204fab57094bc41652d4656104aa.ts +0 -80
- package/test/watch-array/components/temp/ArrayPush-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts +0 -22
- package/test/watch-array/components/temp/ArrayPush-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +0 -10
- package/test/watch-array/components/temp/ArrayReassign-client-544d5ee7280f204fab57094bc41652d4656104aa.ts +0 -80
- package/test/watch-array/components/temp/ArrayReassign-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts +0 -22
- package/test/watch-array/components/temp/ArrayReassign-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +0 -10
- package/test/watch-array/components/temp/ArrayReverse-client-544d5ee7280f204fab57094bc41652d4656104aa.ts +0 -80
- package/test/watch-array/components/temp/ArrayReverse-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts +0 -22
- package/test/watch-array/components/temp/ArrayReverse-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +0 -10
- package/test/watch-array/components/temp/ArraySetObject-client-544d5ee7280f204fab57094bc41652d4656104aa.ts +0 -80
- package/test/watch-array/components/temp/ArraySetObject-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts +0 -22
- package/test/watch-array/components/temp/ArraySetObject-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +0 -10
- package/test/watch-array/components/temp/ArraySetProperty-client-544d5ee7280f204fab57094bc41652d4656104aa.ts +0 -80
- package/test/watch-array/components/temp/ArraySetProperty-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts +0 -22
- package/test/watch-array/components/temp/ArraySetProperty-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +0 -10
- package/test/watch-array/components/temp/ArrayShift-client-544d5ee7280f204fab57094bc41652d4656104aa.ts +0 -80
- package/test/watch-array/components/temp/ArrayShift-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts +0 -22
- package/test/watch-array/components/temp/ArrayShift-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +0 -10
- package/test/watch-array/components/temp/ArraySort-client-544d5ee7280f204fab57094bc41652d4656104aa.ts +0 -80
- package/test/watch-array/components/temp/ArraySort-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts +0 -22
- package/test/watch-array/components/temp/ArraySort-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +0 -10
- package/test/watch-array/components/temp/ArraySpliceAdd-client-544d5ee7280f204fab57094bc41652d4656104aa.ts +0 -80
- package/test/watch-array/components/temp/ArraySpliceAdd-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts +0 -22
- package/test/watch-array/components/temp/ArraySpliceAdd-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +0 -10
- package/test/watch-array/components/temp/ArraySpliceDelete-client-544d5ee7280f204fab57094bc41652d4656104aa.ts +0 -80
- package/test/watch-array/components/temp/ArraySpliceDelete-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts +0 -22
- package/test/watch-array/components/temp/ArraySpliceDelete-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +0 -10
- package/test/watch-array/components/temp/ArraySpliceDeleteAll-client-544d5ee7280f204fab57094bc41652d4656104aa.ts +0 -80
- package/test/watch-array/components/temp/ArraySpliceDeleteAll-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts +0 -22
- package/test/watch-array/components/temp/ArraySpliceDeleteAll-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +0 -10
- package/test/watch-array/components/temp/ArraySpliceDeleteAndAdd-client-544d5ee7280f204fab57094bc41652d4656104aa.ts +0 -80
- package/test/watch-array/components/temp/ArraySpliceDeleteAndAdd-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts +0 -22
- package/test/watch-array/components/temp/ArraySpliceDeleteAndAdd-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +0 -10
- package/test/watch-array/components/temp/ArraySpliceDeleteEnd-client-544d5ee7280f204fab57094bc41652d4656104aa.ts +0 -80
- package/test/watch-array/components/temp/ArraySpliceDeleteEnd-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts +0 -22
- package/test/watch-array/components/temp/ArraySpliceDeleteEnd-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +0 -10
- package/test/watch-array/components/temp/ArraySwap-client-544d5ee7280f204fab57094bc41652d4656104aa.ts +0 -80
- package/test/watch-array/components/temp/ArraySwap-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts +0 -22
- package/test/watch-array/components/temp/ArraySwap-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +0 -10
- package/test/watch-array/components/temp/ArrayUnshift-client-544d5ee7280f204fab57094bc41652d4656104aa.ts +0 -80
- package/test/watch-array/components/temp/ArrayUnshift-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts +0 -22
- package/test/watch-array/components/temp/ArrayUnshift-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +0 -10
- package/test/watch-array/components/temp/ArrayUpdateAssignment-client-544d5ee7280f204fab57094bc41652d4656104aa.ts +0 -80
- package/test/watch-array/components/temp/ArrayUpdateAssignment-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts +0 -22
- package/test/watch-array/components/temp/ArrayUpdateAssignment-types-4afcc38999fa0a5d5b28b8c54ea8f25659d91165.ts +0 -10
- package/test/watch-object/components/output/WatchObject-client.ts +0 -33
- package/test/watch-object/components/output/WatchObject-server.ts +0 -18
- package/test/watch-object/components/output/WatchObject-types.ts +0 -10
- package/test/watch-object/components/output/WatchUndefinedPropertyChange-client.ts +0 -33
- package/test/watch-object/components/output/WatchUndefinedPropertyChange-server.ts +0 -18
- package/test/watch-object/components/output/WatchUndefinedPropertyChange-types.ts +0 -10
- package/test/watch-object/components/temp/WatchObject-client-7068d8e33606a7a3e55a957fcab43bbc6e52d9ce.ts +0 -33
- package/test/watch-object/components/temp/WatchObject-server-b4a2dbff5525a2af64c1216cf6b6ecf800c03566.ts +0 -18
- package/test/watch-object/components/temp/WatchObject-types-05e791b7c4023f8ae6e8dd548fe3f16ea8c16d10.ts +0 -10
- package/test/watch-object/components/temp/WatchUndefinedPropertyChange-client-6c9b07c9055c68e1123a0ca0e34ffaf0bcfe0095.ts +0 -33
- package/test/watch-object/components/temp/WatchUndefinedPropertyChange-server-7af97c0938c3c851f60e86ef27188e0bcd432354.ts +0 -18
- package/test/watch-object/components/temp/WatchUndefinedPropertyChange-types-05e791b7c4023f8ae6e8dd548fe3f16ea8c16d10.ts +0 -10
- package/test/watch-object/watch-object.test.ts +0 -96
- package/test/watch-object/watch-undefined-property-change.test.ts +0 -51
- package/tsconfig.json +0 -4
- package/tsdown.config.ts +0 -6
- package/vitest.config.ts +0 -13
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import type ControlNode from "../../types/nodes/ControlNode";
|
|
2
|
-
import Builder from "../../utils/Builder";
|
|
3
|
-
import type BuildStatus from "./BuildStatus";
|
|
4
|
-
import buildAwaitNode from "./buildAwaitNode";
|
|
5
|
-
import buildForNode from "./buildForNode";
|
|
6
|
-
import buildHtmlNode from "./buildHtmlNode";
|
|
7
|
-
import buildIfNode from "./buildIfNode";
|
|
8
|
-
import buildReplaceNode from "./buildReplaceNode";
|
|
9
|
-
import buildScriptNode from "./buildScriptNode";
|
|
10
|
-
import buildSwitchNode from "./buildSwitchNode";
|
|
11
|
-
|
|
12
|
-
export default function buildControlNode(node: ControlNode, status: BuildStatus, b: Builder): void {
|
|
13
|
-
switch (node.operation) {
|
|
14
|
-
case "@if group": {
|
|
15
|
-
buildIfNode(node, status, b);
|
|
16
|
-
break;
|
|
17
|
-
}
|
|
18
|
-
case "@if":
|
|
19
|
-
case "@else if":
|
|
20
|
-
case "@else": {
|
|
21
|
-
// These get handled with @if group, above
|
|
22
|
-
break;
|
|
23
|
-
}
|
|
24
|
-
case "@switch group": {
|
|
25
|
-
buildSwitchNode(node, status, b);
|
|
26
|
-
break;
|
|
27
|
-
}
|
|
28
|
-
case "@case":
|
|
29
|
-
case "@default": {
|
|
30
|
-
// These get handled with @switch, above
|
|
31
|
-
break;
|
|
32
|
-
}
|
|
33
|
-
case "@for group": {
|
|
34
|
-
buildForNode(node, status, b);
|
|
35
|
-
break;
|
|
36
|
-
}
|
|
37
|
-
case "@for":
|
|
38
|
-
case "@key": {
|
|
39
|
-
// These get handled with @for, above
|
|
40
|
-
break;
|
|
41
|
-
}
|
|
42
|
-
case "@await group": {
|
|
43
|
-
buildAwaitNode(node, status, b);
|
|
44
|
-
break;
|
|
45
|
-
}
|
|
46
|
-
case "@await":
|
|
47
|
-
case "@then":
|
|
48
|
-
case "@catch": {
|
|
49
|
-
// These get handled with @await group, above
|
|
50
|
-
break;
|
|
51
|
-
}
|
|
52
|
-
case "@replace group": {
|
|
53
|
-
buildReplaceNode(node, status, b);
|
|
54
|
-
break;
|
|
55
|
-
}
|
|
56
|
-
case "@replace": {
|
|
57
|
-
// This gets handled with @replace group, above
|
|
58
|
-
break;
|
|
59
|
-
}
|
|
60
|
-
case "@html group": {
|
|
61
|
-
buildHtmlNode(node, status, b);
|
|
62
|
-
break;
|
|
63
|
-
}
|
|
64
|
-
case "@html": {
|
|
65
|
-
// This gets handled with @html group, above
|
|
66
|
-
break;
|
|
67
|
-
}
|
|
68
|
-
case "@const":
|
|
69
|
-
case "@console":
|
|
70
|
-
case "@debugger": {
|
|
71
|
-
buildScriptNode(node, status, b);
|
|
72
|
-
break;
|
|
73
|
-
}
|
|
74
|
-
case "@function":
|
|
75
|
-
case "@async function": {
|
|
76
|
-
b.append("");
|
|
77
|
-
buildScriptNode(node, status, b);
|
|
78
|
-
b.append("");
|
|
79
|
-
break;
|
|
80
|
-
}
|
|
81
|
-
default: {
|
|
82
|
-
// eslint-disable-next-line restrict-template-expressions
|
|
83
|
-
throw new Error(`Invalid operation: ${node.operation}`);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
@@ -1,431 +0,0 @@
|
|
|
1
|
-
import type SourceSpan from "../../types/SourceSpan";
|
|
2
|
-
import type ElementNode from "../../types/nodes/ElementNode";
|
|
3
|
-
import type TextNode from "../../types/nodes/TextNode";
|
|
4
|
-
import Builder from "../../utils/Builder";
|
|
5
|
-
import trimEnd from "../../utils/trimEnd";
|
|
6
|
-
import trimQuotes from "../../utils/trimQuotes";
|
|
7
|
-
import nextVarName from "../utils/nextVarName";
|
|
8
|
-
import type BuildStatus from "./BuildStatus";
|
|
9
|
-
import addMappedText from "./addMappedText";
|
|
10
|
-
import buildAddFragment from "./buildAddFragment";
|
|
11
|
-
import buildFragment from "./buildFragment";
|
|
12
|
-
import buildMount from "./buildMount";
|
|
13
|
-
import buildNode from "./buildNode";
|
|
14
|
-
import buildRun from "./buildRun";
|
|
15
|
-
import getAttributeOffsets from "./getAttributeOffsets";
|
|
16
|
-
import replaceForVarNames from "./replaceForVarNames";
|
|
17
|
-
import stashRun from "./stashRun";
|
|
18
|
-
import stashRunWithOffsets from "./stashRunWithOffsets";
|
|
19
|
-
|
|
20
|
-
export default function buildElementNode(
|
|
21
|
-
node: ElementNode,
|
|
22
|
-
status: BuildStatus,
|
|
23
|
-
b: Builder,
|
|
24
|
-
parentName: string,
|
|
25
|
-
root = false,
|
|
26
|
-
): void {
|
|
27
|
-
if (status.inHead) {
|
|
28
|
-
if (node.tagName === "title") {
|
|
29
|
-
buildTitleNode(node, status, b);
|
|
30
|
-
} else {
|
|
31
|
-
buildHeadNode(node, status, b);
|
|
32
|
-
}
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
const svgElement = node.tagName === "svg";
|
|
37
|
-
const oldns = status.ns;
|
|
38
|
-
if (svgElement) {
|
|
39
|
-
status.ns = true;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
const varName = node.varName;
|
|
43
|
-
if (varName) {
|
|
44
|
-
if (node.tagName === "@element") {
|
|
45
|
-
buildDynamicElementNode(node, status, b);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// PERF: Does this have much of an impact??
|
|
49
|
-
if (root) {
|
|
50
|
-
//status.imports.add("t_apply_props");
|
|
51
|
-
//// TODO: I think we know what the props are at this stage, so we could be more direct?
|
|
52
|
-
//b.append("");
|
|
53
|
-
//b.append(
|
|
54
|
-
// `t_apply_props(${varName}, $props, [${status.props.map((p) => `'${p}'`).join(", ")}]);`,
|
|
55
|
-
//);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
buildElementAttributes(node, varName, status, b);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
const oldPreserveWhitespace = status.preserveWhitespace;
|
|
62
|
-
status.preserveWhitespace = node.tagName === "code" || node.tagName === "pre";
|
|
63
|
-
for (let child of node.children) {
|
|
64
|
-
buildNode(child, status, b, parentName, "null");
|
|
65
|
-
}
|
|
66
|
-
status.preserveWhitespace = oldPreserveWhitespace;
|
|
67
|
-
|
|
68
|
-
if (svgElement) {
|
|
69
|
-
status.ns = oldns;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
function buildDynamicElementNode(node: ElementNode, status: BuildStatus, b: Builder) {
|
|
74
|
-
let selfAttribute = node.attributes.find((a) => a.name === "self");
|
|
75
|
-
if (selfAttribute && selfAttribute.value && selfAttribute.fullyReactive) {
|
|
76
|
-
status.imports.add("$run");
|
|
77
|
-
status.imports.add("t_dynamic");
|
|
78
|
-
let selfValue = selfAttribute.value;
|
|
79
|
-
|
|
80
|
-
b.append("$run(() => {");
|
|
81
|
-
b.append(`${node.varName} = t_dynamic(${node.varName}, ${selfValue});`);
|
|
82
|
-
|
|
83
|
-
let parentName = node.varName;
|
|
84
|
-
|
|
85
|
-
buildFragment(node, status, b, parentName!, "null");
|
|
86
|
-
|
|
87
|
-
status.fragmentStack.push({
|
|
88
|
-
fragment: node.fragment,
|
|
89
|
-
path: "",
|
|
90
|
-
});
|
|
91
|
-
for (let child of node.children) {
|
|
92
|
-
buildNode(child, status, b, parentName!, "null");
|
|
93
|
-
}
|
|
94
|
-
status.fragmentStack.pop();
|
|
95
|
-
|
|
96
|
-
buildAddFragment(node, status, b, parentName!, "null");
|
|
97
|
-
|
|
98
|
-
b.append(`}${status.options.dev === true ? `, "setDynamic"` : ""});`);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
function buildTitleNode(node: ElementNode, status: BuildStatus, b: Builder) {
|
|
103
|
-
let content = (node.children[0] as TextNode).content || "";
|
|
104
|
-
|
|
105
|
-
// Replace all spaces with a single space, both to save space and to remove
|
|
106
|
-
// newlines from generated JS strings
|
|
107
|
-
content = content.replace(/\s+/g, " ");
|
|
108
|
-
|
|
109
|
-
// TODO: Should be fancier about this in parse -- e.g. ignore braces in
|
|
110
|
-
// quotes, unclosed, etc
|
|
111
|
-
let reactiveStarted = false;
|
|
112
|
-
let reactiveCount = 0;
|
|
113
|
-
for (let i = 0; i < content.length; i++) {
|
|
114
|
-
if (content[i] === "{") {
|
|
115
|
-
reactiveStarted = true;
|
|
116
|
-
} else if (content[i] === "}") {
|
|
117
|
-
if (reactiveStarted) {
|
|
118
|
-
reactiveCount += 1;
|
|
119
|
-
reactiveStarted = false;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
if (reactiveCount) {
|
|
125
|
-
status.imports.add("t_fmt");
|
|
126
|
-
if (reactiveCount === 1 && content.startsWith("{") && content.endsWith("}")) {
|
|
127
|
-
content = `t_fmt(${content.substring(1, content.length - 1)})`;
|
|
128
|
-
} else {
|
|
129
|
-
content = `\`${content.replaceAll("{", "${t_fmt(").replaceAll("}", ")}")}\``;
|
|
130
|
-
}
|
|
131
|
-
} else {
|
|
132
|
-
content = `"${content}"`;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
status.imports.add("$run");
|
|
136
|
-
b.append("$run(() => {");
|
|
137
|
-
b.append(`
|
|
138
|
-
const t_old_title = document.title;
|
|
139
|
-
document.title = ${content};
|
|
140
|
-
return () => document.title = t_old_title;
|
|
141
|
-
}${status.options.dev === true ? `, "runTitle"` : ""});`);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
function buildHeadNode(node: ElementNode, status: BuildStatus, b: Builder) {
|
|
145
|
-
status.imports.add("$run");
|
|
146
|
-
// TODO: dedupe e.g. <meta name="x"> or on special key
|
|
147
|
-
b.append("$run(() => {");
|
|
148
|
-
b.append(`
|
|
149
|
-
const t_head_el = document.createElement("${node.tagName}");
|
|
150
|
-
document.getElementsByTagName("head")[0].appendChild(t_head_el);`);
|
|
151
|
-
for (let { name, value, span } of node.attributes) {
|
|
152
|
-
if (value != null) {
|
|
153
|
-
status.imports.add("t_attribute");
|
|
154
|
-
value = replaceForVarNames(value, status);
|
|
155
|
-
addMappedText(`t_attribute(t_head_el, "${name}", `, value, ");", span, status, b);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
b.append(`}${status.options.dev === true ? `, "runHead"` : ""});`);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
function buildElementAttributes(
|
|
162
|
-
node: ElementNode,
|
|
163
|
-
varName: string,
|
|
164
|
-
status: BuildStatus,
|
|
165
|
-
b: Builder,
|
|
166
|
-
) {
|
|
167
|
-
let fragment = status.fragmentStack.at(-1)?.fragment;
|
|
168
|
-
if (!fragment) throw new Error("No fragment on stack");
|
|
169
|
-
|
|
170
|
-
// TODO: Add an error if any reactive attributes are used non-reactively
|
|
171
|
-
|
|
172
|
-
// Do &ref first, just in case any other attributes depend on it being set
|
|
173
|
-
// e.g. if you have a `style` attribute that depends on the element's size
|
|
174
|
-
const refAttribute = node.attributes.find((a) => a.name === "&ref");
|
|
175
|
-
if (refAttribute) {
|
|
176
|
-
let { value, fullyReactive } = refAttribute;
|
|
177
|
-
if (value != null && fullyReactive) {
|
|
178
|
-
// Bind the DOM element to a user-defined variable
|
|
179
|
-
b.append(`${value} = ${varName};`);
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
for (let { name, value, reactive, fullyReactive, span } of node.attributes) {
|
|
184
|
-
if (name === "self" && node.tagName === "@element") {
|
|
185
|
-
// Ignore this special attribute
|
|
186
|
-
} else if (name === "&ref") {
|
|
187
|
-
// Ignore this one, it should have been done already, above
|
|
188
|
-
} else if (value != null && fullyReactive) {
|
|
189
|
-
if (name === "&group") {
|
|
190
|
-
buildBindGroupAttribute(node, varName, value, status, b);
|
|
191
|
-
} else if (name === "&value" || name === "&checked") {
|
|
192
|
-
buildBindAttribute(node, varName, name, value, status, b);
|
|
193
|
-
} else if (name === "onmount") {
|
|
194
|
-
// The onmount event is faked by us by creating a $mount. This
|
|
195
|
-
// also means that you can have unmount functionality by
|
|
196
|
-
// returning a cleanup function
|
|
197
|
-
buildMount("elMount", `return (${trimEnd(value.trim(), ";")})(${varName});`, status, b);
|
|
198
|
-
} else if (name.startsWith("on")) {
|
|
199
|
-
buildEventAttribute(varName, name, value, span, status, b);
|
|
200
|
-
} else if (name.startsWith("transition")) {
|
|
201
|
-
buildTransitionAttribute(node, varName, name, value, status, b);
|
|
202
|
-
} else if (name === "class") {
|
|
203
|
-
status.imports.add("t_class");
|
|
204
|
-
const params = [value];
|
|
205
|
-
if (node.scopeStyles) {
|
|
206
|
-
params.push(`"torp-${status.styleHash}"`);
|
|
207
|
-
}
|
|
208
|
-
// SVGs have a different className
|
|
209
|
-
const propName = status.ns ? "className.baseVal" : "className";
|
|
210
|
-
stashRun(
|
|
211
|
-
fragment,
|
|
212
|
-
`${status.ns ? "// @ts-ignore\n" : ""}${varName}.${propName} = t_class(`,
|
|
213
|
-
params.join(", "),
|
|
214
|
-
");",
|
|
215
|
-
span,
|
|
216
|
-
status,
|
|
217
|
-
);
|
|
218
|
-
} else if (name === "style") {
|
|
219
|
-
status.imports.add("t_style");
|
|
220
|
-
stashRun(fragment, `${varName}.setAttribute("style", t_style(`, value, "));", span, status);
|
|
221
|
-
} else if (name.includes("-")) {
|
|
222
|
-
// Handle data-, aria- etc
|
|
223
|
-
status.imports.add("t_attribute");
|
|
224
|
-
stashRun(fragment, `t_attribute(${varName}, "${name}", `, value, ");", span, status);
|
|
225
|
-
// NOTE: dataset seems to be a tiny bit slower?
|
|
226
|
-
//const propName = name.substring(name.indexOf("-"));
|
|
227
|
-
//buildRun("setDataAttribute", `${varName}.dataset.${propName} = ${value};`, status, b);
|
|
228
|
-
} else {
|
|
229
|
-
status.imports.add("t_attribute");
|
|
230
|
-
stashRun(fragment, `t_attribute(${varName}, "${name}", `, value, ");", span, status);
|
|
231
|
-
}
|
|
232
|
-
} else if (value != null && reactive) {
|
|
233
|
-
const { newValue, spans, offsets, lengths } = getAttributeOffsets(value, span);
|
|
234
|
-
value = newValue;
|
|
235
|
-
if (name === "class") {
|
|
236
|
-
status.imports.add("t_class");
|
|
237
|
-
const params = [value];
|
|
238
|
-
if (node.scopeStyles) {
|
|
239
|
-
params.push(`"torp-${status.styleHash}"`);
|
|
240
|
-
}
|
|
241
|
-
// SVGs have a different className
|
|
242
|
-
const propName = status.ns ? "className.baseVal" : "className";
|
|
243
|
-
stashRunWithOffsets(
|
|
244
|
-
fragment,
|
|
245
|
-
`${status.ns ? "// @ts-ignore\n" : ""}${varName}.${propName} = t_class(`,
|
|
246
|
-
params.join(", "),
|
|
247
|
-
");",
|
|
248
|
-
spans,
|
|
249
|
-
offsets,
|
|
250
|
-
lengths,
|
|
251
|
-
status,
|
|
252
|
-
);
|
|
253
|
-
} else if (name === "style") {
|
|
254
|
-
status.imports.add("t_style");
|
|
255
|
-
stashRunWithOffsets(
|
|
256
|
-
fragment,
|
|
257
|
-
`${varName}.setAttribute("style", t_style(`,
|
|
258
|
-
value,
|
|
259
|
-
"));",
|
|
260
|
-
spans,
|
|
261
|
-
offsets,
|
|
262
|
-
lengths,
|
|
263
|
-
status,
|
|
264
|
-
);
|
|
265
|
-
} else if (name.includes("-")) {
|
|
266
|
-
// Handle data-, aria- etc
|
|
267
|
-
status.imports.add("t_attribute");
|
|
268
|
-
stashRunWithOffsets(
|
|
269
|
-
fragment,
|
|
270
|
-
`t_attribute(${varName}, "${name}", `,
|
|
271
|
-
value,
|
|
272
|
-
");",
|
|
273
|
-
spans,
|
|
274
|
-
offsets,
|
|
275
|
-
lengths,
|
|
276
|
-
status,
|
|
277
|
-
);
|
|
278
|
-
// NOTE: dataset seems to be a tiny bit slower?
|
|
279
|
-
//const propName = name.substring(name.indexOf("-"));
|
|
280
|
-
//buildRun("setDataAttribute", `${varName}.dataset.${propName} = ${value};`, status, b);
|
|
281
|
-
} else {
|
|
282
|
-
status.imports.add("t_attribute");
|
|
283
|
-
stashRunWithOffsets(
|
|
284
|
-
fragment,
|
|
285
|
-
`t_attribute(${varName}, "${name}", `,
|
|
286
|
-
value,
|
|
287
|
-
");",
|
|
288
|
-
spans,
|
|
289
|
-
offsets,
|
|
290
|
-
lengths,
|
|
291
|
-
status,
|
|
292
|
-
);
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
function buildBindGroupAttribute(
|
|
299
|
-
node: ElementNode,
|
|
300
|
-
varName: string,
|
|
301
|
-
value: string,
|
|
302
|
-
status: BuildStatus,
|
|
303
|
-
b: Builder,
|
|
304
|
-
) {
|
|
305
|
-
value = replaceForVarNames(value, status);
|
|
306
|
-
|
|
307
|
-
// Automatically add an event to bind the value
|
|
308
|
-
// TODO: Only tested this with radio buttons
|
|
309
|
-
let eventName = "change";
|
|
310
|
-
let inputValue = node.attributes.find((a) => a.name === "value")?.value;
|
|
311
|
-
let set = `${value} == ${inputValue}`;
|
|
312
|
-
let propName = "checked";
|
|
313
|
-
const setAttribute = `${varName}.${propName} = ${set}`;
|
|
314
|
-
buildRun("setBinding", `${setAttribute};`, status, b);
|
|
315
|
-
// TODO: Add a parseInput method that handles NaN etc
|
|
316
|
-
status.imports.add("t_event");
|
|
317
|
-
b.append(`t_event(${varName}, "${eventName}", (e) => {
|
|
318
|
-
if (e.target.${propName}) ${value} = ${inputValue};
|
|
319
|
-
});`);
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
function buildBindAttribute(
|
|
323
|
-
node: ElementNode,
|
|
324
|
-
varName: string,
|
|
325
|
-
name: string,
|
|
326
|
-
value: string,
|
|
327
|
-
status: BuildStatus,
|
|
328
|
-
b: Builder,
|
|
329
|
-
) {
|
|
330
|
-
value = replaceForVarNames(value, status);
|
|
331
|
-
|
|
332
|
-
// Automatically add an event to bind the value
|
|
333
|
-
// TODO: Need to check the element to find out what type of event to add
|
|
334
|
-
let eventName = "input";
|
|
335
|
-
let defaultValue = '""';
|
|
336
|
-
let inputValue = "e.target.value";
|
|
337
|
-
if (node.tagName === "input") {
|
|
338
|
-
let typeAttribute = node.attributes.find((a) => a.name === "type");
|
|
339
|
-
if (typeAttribute && typeAttribute.value) {
|
|
340
|
-
switch (trimQuotes(typeAttribute.value)) {
|
|
341
|
-
case "number": {
|
|
342
|
-
defaultValue = "0";
|
|
343
|
-
inputValue = "Number(e.target.value)";
|
|
344
|
-
break;
|
|
345
|
-
}
|
|
346
|
-
case "checkbox": {
|
|
347
|
-
defaultValue = "false";
|
|
348
|
-
inputValue = "e.target.checked";
|
|
349
|
-
break;
|
|
350
|
-
}
|
|
351
|
-
case "radio": {
|
|
352
|
-
eventName = "change";
|
|
353
|
-
inputValue = "e.target.value";
|
|
354
|
-
break;
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
} else if (node.tagName === "select") {
|
|
359
|
-
eventName = "change";
|
|
360
|
-
}
|
|
361
|
-
let set = `${value} || ${defaultValue}`;
|
|
362
|
-
const propName = name.substring(1);
|
|
363
|
-
const setAttribute = `${varName}.${propName} = ${set}`;
|
|
364
|
-
buildRun("setBinding", `${setAttribute};`, status, b);
|
|
365
|
-
// TODO: Add a parseInput method that handles NaN etc
|
|
366
|
-
status.imports.add("t_event");
|
|
367
|
-
b.append(`t_event(${varName}, "${eventName}", (e) => ${value} = ${inputValue});`);
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
function buildEventAttribute(
|
|
371
|
-
varName: string,
|
|
372
|
-
name: string,
|
|
373
|
-
value: string,
|
|
374
|
-
span: SourceSpan,
|
|
375
|
-
status: BuildStatus,
|
|
376
|
-
b: Builder,
|
|
377
|
-
) {
|
|
378
|
-
value = replaceForVarNames(value, status);
|
|
379
|
-
|
|
380
|
-
// Add an event listener, after the fragment has been added
|
|
381
|
-
const eventName = name.substring(2);
|
|
382
|
-
status.imports.add("t_event");
|
|
383
|
-
addMappedText(`t_event(${varName}, "${eventName}", `, value, `);`, span, status, b);
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
function buildTransitionAttribute(
|
|
387
|
-
node: ElementNode,
|
|
388
|
-
varName: string,
|
|
389
|
-
name: string,
|
|
390
|
-
value: string,
|
|
391
|
-
status: BuildStatus,
|
|
392
|
-
b: Builder,
|
|
393
|
-
) {
|
|
394
|
-
value = replaceForVarNames(value, status);
|
|
395
|
-
|
|
396
|
-
status.imports.add("t_animate");
|
|
397
|
-
|
|
398
|
-
// Add an in and out transition, after the fragment has been added
|
|
399
|
-
// TODO: Separate these -- you should be able to have multiple,
|
|
400
|
-
// unrelated entry and exit transitions?
|
|
401
|
-
let entryVarName = nextVarName("trans_in", status);
|
|
402
|
-
let exitVarName = nextVarName("trans_out", status);
|
|
403
|
-
|
|
404
|
-
if (name === "transition") {
|
|
405
|
-
b.append(`const ${entryVarName} = (${value})(${varName});`);
|
|
406
|
-
b.append(`const ${exitVarName} = ${entryVarName};`);
|
|
407
|
-
b.append(`t_animate(${varName}, ${entryVarName}, ${exitVarName});`);
|
|
408
|
-
} else if (name === "transition-in") {
|
|
409
|
-
let outAttribute = node.attributes.find((a) => a.name === "transition-out");
|
|
410
|
-
if (outAttribute && outAttribute.value && outAttribute.fullyReactive) {
|
|
411
|
-
let outValue = outAttribute.value;
|
|
412
|
-
b.append(`const ${entryVarName} = (${value})(${varName});`);
|
|
413
|
-
b.append(`const ${exitVarName} = (${outValue})(${varName});`);
|
|
414
|
-
b.append(`t_animate(${varName}, ${entryVarName}, ${exitVarName});`);
|
|
415
|
-
} else {
|
|
416
|
-
b.append(`const ${entryVarName} = (${value})(${varName});`);
|
|
417
|
-
b.append(`t_animate(${varName}, ${entryVarName});`);
|
|
418
|
-
}
|
|
419
|
-
} else if (name === "transition-out") {
|
|
420
|
-
let inAttribute = node.attributes.find((a) => a.name === "transition-in");
|
|
421
|
-
if (inAttribute) {
|
|
422
|
-
// This has already been handled with transition-in, above
|
|
423
|
-
return;
|
|
424
|
-
} else {
|
|
425
|
-
b.append(`const ${exitVarName} = (${value})(${varName});`);
|
|
426
|
-
b.append(`t_animate(${varName}, null, ${entryVarName});`);
|
|
427
|
-
}
|
|
428
|
-
} else {
|
|
429
|
-
// TODO: Add an error
|
|
430
|
-
}
|
|
431
|
-
}
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import type ControlNode from "../../types/nodes/ControlNode";
|
|
2
|
-
import Builder from "../../utils/Builder";
|
|
3
|
-
import isControlNode from "../../utils/isControlNode";
|
|
4
|
-
import trimMatched from "../../utils/trimMatched";
|
|
5
|
-
import nextVarName from "../utils/nextVarName";
|
|
6
|
-
import type BuildStatus from "./BuildStatus";
|
|
7
|
-
import addMappedText from "./addMappedText";
|
|
8
|
-
import addPopDevBoundary from "./addPopDevBoundary";
|
|
9
|
-
import addPushDevBoundary from "./addPushDevBoundary";
|
|
10
|
-
import buildAddFragment from "./buildAddFragment";
|
|
11
|
-
import buildFragment from "./buildFragment";
|
|
12
|
-
import buildNode from "./buildNode";
|
|
13
|
-
import replaceForVarNames from "./replaceForVarNames";
|
|
14
|
-
|
|
15
|
-
const forLoopRegex = /for\s*\((.+?);.*?;.*?\)/;
|
|
16
|
-
const forLoopVarsRegex = /(?:let\s+|var\s+){0,1}([^\s,;+=]+)(?:\s*=\s*[^,;]+){0,1}/g;
|
|
17
|
-
const forOfRegex = /for\s*\(\s*(?:let\s*|var\s*){0,1}(.+?)\s+(?:of|in).*?\)/;
|
|
18
|
-
|
|
19
|
-
export default function buildForNode(node: ControlNode, status: BuildStatus, b: Builder): void {
|
|
20
|
-
const parentName = node.parentName!;
|
|
21
|
-
const anchorName = node.varName ?? "null";
|
|
22
|
-
|
|
23
|
-
// HACK:
|
|
24
|
-
node = node.children[0] as ControlNode;
|
|
25
|
-
|
|
26
|
-
// HACK: Need to wrangle the declaration(s) out of the for loop and put them in data
|
|
27
|
-
// TODO: Handle destructuring, quotes, comments etc
|
|
28
|
-
const forVarNames: string[] = [];
|
|
29
|
-
const forLoopMatch = node.statement.match(forLoopRegex);
|
|
30
|
-
if (forLoopMatch) {
|
|
31
|
-
const forVarMatches = forLoopMatch[1].matchAll(forLoopVarsRegex);
|
|
32
|
-
for (let match of forVarMatches) {
|
|
33
|
-
forVarNames.push(match[1]);
|
|
34
|
-
}
|
|
35
|
-
} else {
|
|
36
|
-
const forOfMatch = node.statement.match(forOfRegex);
|
|
37
|
-
if (forOfMatch) {
|
|
38
|
-
const match = forOfMatch[1];
|
|
39
|
-
if (
|
|
40
|
-
(match.startsWith("{") && match.endsWith("}")) ||
|
|
41
|
-
(match.startsWith("[") && match.endsWith("]"))
|
|
42
|
-
) {
|
|
43
|
-
forVarNames.push(
|
|
44
|
-
...trimMatched(trimMatched(match, "{", "}"), "[", "]")
|
|
45
|
-
.split(",")
|
|
46
|
-
.map((m) => m.trim()),
|
|
47
|
-
);
|
|
48
|
-
} else {
|
|
49
|
-
forVarNames.push(match);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
const regionName = nextVarName("for_region", status);
|
|
55
|
-
const listItemsName = nextVarName("new_items", status);
|
|
56
|
-
const previousItemName = nextVarName("previous_item", status);
|
|
57
|
-
const nextItemName = nextVarName("next_item", status);
|
|
58
|
-
const newItemName = nextVarName("new_item", status);
|
|
59
|
-
const itemName = nextVarName("item", status);
|
|
60
|
-
const beforeName = nextVarName("before", status);
|
|
61
|
-
|
|
62
|
-
// Get the key node if it's been set
|
|
63
|
-
let keyStatement = "";
|
|
64
|
-
const key = node.children.find(
|
|
65
|
-
(n) => n.type === "control" && (n as ControlNode).operation === "@key",
|
|
66
|
-
) as ControlNode;
|
|
67
|
-
if (key !== undefined) {
|
|
68
|
-
let matches = key.statement.match(/^(\s*@*key\s*=\s*)(.+?)\s*;*\s*$/);
|
|
69
|
-
if (matches) {
|
|
70
|
-
key.span.start += matches[1].length;
|
|
71
|
-
keyStatement = matches[2];
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
status.imports.add("t_region");
|
|
76
|
-
status.imports.add("t_run_list");
|
|
77
|
-
status.imports.add("t_list_item");
|
|
78
|
-
status.imports.add("ListItem");
|
|
79
|
-
|
|
80
|
-
b.append("");
|
|
81
|
-
b.append("/* @for */");
|
|
82
|
-
addPushDevBoundary("control", `@${node.statement}`, status, b);
|
|
83
|
-
b.append(`
|
|
84
|
-
let ${regionName} = t_region(${status.options.dev === true ? `"for"` : ""});
|
|
85
|
-
t_run_list(
|
|
86
|
-
${regionName},
|
|
87
|
-
${parentName},
|
|
88
|
-
${anchorName},
|
|
89
|
-
${status.options.dev === true ? "function createNewItems() {" : "() => {"}
|
|
90
|
-
let ${listItemsName}: ListItem[] = [];
|
|
91
|
-
let ${previousItemName} = ${regionName};
|
|
92
|
-
let ${nextItemName} = ${regionName}.nextRegion;`);
|
|
93
|
-
|
|
94
|
-
// TODO: replaceForVarNames is going to throw mapping out
|
|
95
|
-
addMappedText("", `${replaceForVarNames(node.statement, status)}`, " {", node.span, status, b);
|
|
96
|
-
|
|
97
|
-
b.append(`let ${newItemName} = t_list_item(`);
|
|
98
|
-
// TODO: Should map these
|
|
99
|
-
b.append(`{ ${forVarNames.join(", ")} },`);
|
|
100
|
-
if (key !== undefined) {
|
|
101
|
-
addMappedText("", `${keyStatement || "undefined"}`, ",", key.span, status, b);
|
|
102
|
-
}
|
|
103
|
-
if (status.options.dev === true) {
|
|
104
|
-
b.append(`"for item"`);
|
|
105
|
-
}
|
|
106
|
-
b.append(");");
|
|
107
|
-
b.append(`
|
|
108
|
-
${newItemName}.previousRegion = ${previousItemName};
|
|
109
|
-
${previousItemName}.nextRegion = ${newItemName};
|
|
110
|
-
${previousItemName} = ${newItemName};
|
|
111
|
-
${listItemsName}.push(${newItemName});
|
|
112
|
-
}
|
|
113
|
-
${regionName}.nextRegion = ${nextItemName};
|
|
114
|
-
return ${listItemsName};
|
|
115
|
-
},
|
|
116
|
-
${status.options.dev === true ? `function createListItem(${itemName}, ${beforeName}) {` : `(${itemName}, ${beforeName}) => {`}`);
|
|
117
|
-
|
|
118
|
-
let oldForVarNames = status.forVarNames;
|
|
119
|
-
status.forVarNames = [
|
|
120
|
-
...status.forVarNames,
|
|
121
|
-
...forVarNames.map((v) => [v, `${itemName}.data.${v}`]),
|
|
122
|
-
];
|
|
123
|
-
buildForItem(node, status, b, parentName, beforeName, itemName);
|
|
124
|
-
status.forVarNames = oldForVarNames;
|
|
125
|
-
|
|
126
|
-
b.append(`},
|
|
127
|
-
${status.options.dev === true ? "function updateListItem(t_old_item, t_new_item) {" : "(t_old_item, t_new_item) => {"}`);
|
|
128
|
-
for (let varName of forVarNames) {
|
|
129
|
-
b.append(`t_old_item.data.${varName} = t_new_item.data.${varName};`);
|
|
130
|
-
}
|
|
131
|
-
b.append(`}
|
|
132
|
-
);`);
|
|
133
|
-
|
|
134
|
-
addPopDevBoundary(status, b);
|
|
135
|
-
|
|
136
|
-
b.append("");
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
function buildForItem(
|
|
140
|
-
node: ControlNode,
|
|
141
|
-
status: BuildStatus,
|
|
142
|
-
b: Builder,
|
|
143
|
-
parentName: string,
|
|
144
|
-
beforeName: string,
|
|
145
|
-
itemName: string,
|
|
146
|
-
) {
|
|
147
|
-
const oldRegionName = nextVarName("old_region", status);
|
|
148
|
-
|
|
149
|
-
status.imports.add("t_push_region");
|
|
150
|
-
b.append(`let ${oldRegionName} = t_push_region(${itemName});`);
|
|
151
|
-
|
|
152
|
-
buildFragment(node, status, b, parentName, beforeName);
|
|
153
|
-
|
|
154
|
-
status.fragmentStack.push({
|
|
155
|
-
fragment: node.fragment!,
|
|
156
|
-
path: "",
|
|
157
|
-
});
|
|
158
|
-
for (let child of node.children) {
|
|
159
|
-
if (isControlNode(child) && child.operation === "@key") {
|
|
160
|
-
continue;
|
|
161
|
-
}
|
|
162
|
-
buildNode(child, status, b, parentName, beforeName);
|
|
163
|
-
}
|
|
164
|
-
status.fragmentStack.pop();
|
|
165
|
-
|
|
166
|
-
buildAddFragment(node, status, b, parentName, beforeName);
|
|
167
|
-
|
|
168
|
-
// If we wanted to return the fragment instead:
|
|
169
|
-
//b.append(`t_item.startNode = t_fragment_1.firstChild;`);
|
|
170
|
-
//b.append(`t_item.endNode = t_fragment_1.lastChild;`);
|
|
171
|
-
//for (let ev of node.fragment!.events) {
|
|
172
|
-
// b.append(`${ev.varName}.addEventListener("${ev.eventName}", ${ev.handler});`);
|
|
173
|
-
//}
|
|
174
|
-
|
|
175
|
-
status.imports.add("t_pop_region");
|
|
176
|
-
b.append(`t_pop_region(${oldRegionName});`);
|
|
177
|
-
|
|
178
|
-
// If we wanted to return the fragment instead:
|
|
179
|
-
//b.append(`return t_fragment_${node.fragment!.number};`);
|
|
180
|
-
}
|