@torpor/view 0.4.6 → 0.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (467) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/{Component-ODmDVKFt.d.ts → Component-BDUCwkBQ.d.cts} +2 -2
  3. package/dist/{Component-C-2ML-6s.d.cts.map → Component-BDUCwkBQ.d.cts.map} +1 -1
  4. package/dist/{Component-C-2ML-6s.d.cts → Component-JVwSemf-.d.ts} +2 -2
  5. package/dist/{Component-ODmDVKFt.d.ts.map → Component-JVwSemf-.d.ts.map} +1 -1
  6. package/dist/compile.cjs +70 -30
  7. package/dist/compile.cjs.map +1 -1
  8. package/dist/compile.d.cts +1 -1
  9. package/dist/compile.d.ts +1 -1
  10. package/dist/compile.js +70 -30
  11. package/dist/compile.js.map +1 -1
  12. package/dist/index.cjs +1 -1
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.d.cts +3 -3
  15. package/dist/index.d.cts.map +1 -1
  16. package/dist/index.d.ts +3 -3
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +1 -1
  19. package/dist/index.js.map +1 -1
  20. package/dist/ssr.d.cts +1 -1
  21. package/dist/ssr.d.cts.map +1 -1
  22. package/dist/ssr.d.ts +1 -1
  23. package/dist/ssr.d.ts.map +1 -1
  24. package/package.json +1 -1
  25. package/src/compile/build/client/buildCode.ts +2 -2
  26. package/src/compile/build/client/buildComponentNode.ts +6 -2
  27. package/src/compile/build/client/buildElementNode.ts +1 -1
  28. package/src/compile/build/client/buildFragment.ts +9 -0
  29. package/src/compile/build/client/buildMount.ts +4 -2
  30. package/src/compile/build/client/buildSlotNode.ts +24 -7
  31. package/src/compile/build/server/buildServerCode.ts +2 -2
  32. package/src/compile/build/server/buildServerComponentNode.ts +27 -8
  33. package/src/render/addEvent.ts +4 -2
  34. package/src/render/fillLayoutSlot.ts +1 -1
  35. package/src/types/ServerSlotRender.ts +2 -2
  36. package/src/types/SlotRender.ts +2 -2
  37. package/test/attributes/components/output/Attributes-client.ts +1 -1
  38. package/test/attributes/components/output/Attributes-server.ts +1 -1
  39. package/test/attributes/components/output/Disappearing-client.ts +1 -1
  40. package/test/attributes/components/output/Disappearing-server.ts +1 -1
  41. package/test/attributes/components/temp/{Attributes-client-3bd2893680ee0c727dc67385478c21caa0316f82.ts → Attributes-client-b9b98b8c868cc4f13484ae2237d59ef9491dfbf3.ts} +1 -1
  42. package/test/attributes/components/temp/{Attributes-server-ff919598a34afdc67888e3fb80a79d1b27170d1c.ts → Attributes-server-439da9a70f565053da8581652250142a12f4a7d3.ts} +1 -1
  43. package/test/attributes/components/temp/{Disappearing-client-3bd2893680ee0c727dc67385478c21caa0316f82.ts → Disappearing-client-b9b98b8c868cc4f13484ae2237d59ef9491dfbf3.ts} +1 -1
  44. package/test/attributes/components/temp/{Disappearing-server-ff919598a34afdc67888e3fb80a79d1b27170d1c.ts → Disappearing-server-439da9a70f565053da8581652250142a12f4a7d3.ts} +1 -1
  45. package/test/await/await.test.ts +5 -3
  46. package/test/await/components/output/Await-client.ts +8 -6
  47. package/test/await/components/output/Await-server.ts +7 -5
  48. package/test/await/components/temp/{Await-client-8ad3f252c4550020753eea3c04cde0da435c6aae.ts → Await-client-284921284e6ae52b607902682f7f9b69bffe1515.ts} +8 -6
  49. package/test/await/components/temp/{Await-server-4187f28e62fa1789ccd5e336457f74d158981055.ts → Await-server-1f8c2fd1781b769d00312410ca22d1f8e2def3e2.ts} +7 -5
  50. package/test/bench/components/Bench.torp +109 -109
  51. package/test/bench/components/output/Bench-client.ts +181 -388
  52. package/test/bench/components/output/Bench-server.ts +11 -23
  53. package/test/bench/components/temp/Bench-client-4ceb87d3dcd31fc9f176994c53b864b4128540cb.ts +214 -0
  54. package/test/bench/components/temp/{Bench-server-d42ad0e83d431c6ff0f185e964792b04c4b97c06.ts → Bench-server-84e241e91b2dd1790ea86b4a3af78d04fa9dd9f0.ts} +11 -23
  55. package/test/bind/bind-component.test.ts +1 -1
  56. package/test/bind/components/output/BindComponent-client.ts +4 -4
  57. package/test/bind/components/output/BindComponent-server.ts +7 -7
  58. package/test/bind/components/output/BindText-client.ts +3 -3
  59. package/test/bind/components/output/BindText-server.ts +2 -2
  60. package/test/bind/components/temp/{BindComponent-client-59dbb5565268702ed2935e7e8cc7609b0f956bdc.ts → BindComponent-client-acbb75b9dc9685722e49a937138b8f8d2e5f0539.ts} +4 -4
  61. package/test/bind/components/temp/{BindComponent-server-2e2d1fe69007b6d2b084c3117a5be4a06258872e.ts → BindComponent-server-5ac3ae9fff9117e8a62c1f8a6333b64e50ccad26.ts} +7 -7
  62. package/test/bind/components/temp/{BindText-client-eebe53ed8c48b5bbd046621efa6d9b5d3d753f6f.ts → BindText-client-12ad90dae9678c8cdc7d8f2266ff6ed58824d57e.ts} +3 -3
  63. package/test/bind/components/temp/{BindText-server-b8c0e4e7e82cf0bfb92f2301b0e444b0cb6b404c.ts → BindText-server-d23c19942047551a7be16220d24aeb95cf7ff16e.ts} +2 -2
  64. package/test/build-server/components/output/IfNested-client.ts +80 -95
  65. package/test/build-server/components/output/IfNested-server.ts +1 -1
  66. package/test/{if/components/temp/IfNested-client-c6e1a6f5db2525cfab93214e65ed624e76dfc504.ts → build-server/components/temp/IfNested-client-50abd76ec9369ac6cf42f0264870914923f30b5c.ts} +1 -1
  67. package/test/{if/components/temp/IfNested-server-31a9acef02893719ca6df5a53c71bba94391bc3a.ts → build-server/components/temp/IfNested-server-8a2513b704782704e7e184924c35e55958b15ae1.ts} +1 -1
  68. package/test/child-component/components/output/ChildComponent-client.ts +3 -3
  69. package/test/child-component/components/output/ChildComponent-server.ts +6 -6
  70. package/test/child-component/components/temp/{ChildComponent-client-a0ac41e8516d1584b2318770b6a5fc791e07b53b.ts → ChildComponent-client-63a83042fd341882e31e4fe9344294cbe83f00e5.ts} +3 -3
  71. package/test/child-component/components/temp/{ChildComponent-server-ec2d2faa587fb40711072956f1eb4a4eed9510d3.ts → ChildComponent-server-b7846325dc852d230821d741377a70cb654c6c58.ts} +6 -6
  72. package/test/class/components/output/Class-client.ts +3 -3
  73. package/test/class/components/output/Class-server.ts +5 -5
  74. package/test/class/components/temp/{Class-client-28a59ce1bd5ccd2c6cc48d803216a5346fcf2329.ts → Class-client-919c8e138d3885b62ad3440c2d6925edae8e4892.ts} +3 -3
  75. package/test/class/components/temp/{Class-server-ae3bb23a8e2c4cd1252e256970317ff2d764ae72.ts → Class-server-e4adcf242d5620acfcfa31c57b9b35c323a15664.ts} +5 -5
  76. package/test/component/components/output/Component-client.ts +3 -3
  77. package/test/component/components/output/Component-server.ts +6 -6
  78. package/test/component/components/temp/{Component-client-475c9724b22ebc18149075860326ffd395c4caa0.ts → Component-client-a433db324e16bc80b647022bba8717c7b5d285a6.ts} +3 -3
  79. package/test/component/components/temp/{Component-server-3fcb9457d9f0d0eefc9626801634751a83110f60.ts → Component-server-737acb88705af3ce16c74678df99b687be921b66.ts} +6 -6
  80. package/test/console/components/output/Console-client.ts +2 -2
  81. package/test/console/components/output/Console-server.ts +2 -2
  82. package/test/console/components/temp/{Console-client-216948ecb8660c46e6614dcfea02114ba9fd84f3.ts → Console-client-2d6a441342c992f6be9f4139a3354055f7aa6c41.ts} +2 -2
  83. package/test/console/components/temp/{Console-server-75be90e854adaa7aecae21b483571d939a26aa65.ts → Console-server-e5c69bad6cbc68c8d35b657d2df0605431c520df.ts} +2 -2
  84. package/test/const/components/output/Const-client.ts +2 -2
  85. package/test/const/components/output/Const-server.ts +2 -2
  86. package/test/const/components/temp/{Const-client-e15d20cc9c3e75577a7dee834a421883b18983de.ts → Const-client-9d8262840860a5cb686c4923d0c8567ffc704b35.ts} +2 -2
  87. package/test/const/components/temp/{Const-server-36be8942f14caaed006208936d88dd19e1ff1e29.ts → Const-server-26e98a80ebfd657bba9de8ef21443a65996c995b.ts} +2 -2
  88. package/test/context/components/output/Context-client.ts +6 -6
  89. package/test/context/components/output/Context-server.ts +6 -8
  90. package/test/context/components/temp/{Context-client-b05948865340ce7743af46cb4400dc542e1e7260.ts → Context-client-c1437b9cb8765f3d73b315982dd52e8458345da9.ts} +6 -6
  91. package/test/context/components/temp/{Context-server-9c25c1e4456e2b24b5afd87ba27e55ca45308ef0.ts → Context-server-52193f64b90c8388a8a5d5dfe81bd68e3d4eada2.ts} +6 -8
  92. package/test/effects/components/output/ForEffect-client.ts +1 -1
  93. package/test/effects/components/output/ForEffect-server.ts +1 -1
  94. package/test/effects/components/output/IfEffect-client.ts +1 -1
  95. package/test/effects/components/output/IfEffect-server.ts +1 -1
  96. package/test/effects/components/output/NestedIfEffect-client.ts +1 -1
  97. package/test/effects/components/output/NestedIfEffect-server.ts +1 -1
  98. package/test/effects/components/temp/{ForEffect-client-841255d13e0691d88345d9ea89c5fb021ca4db02.ts → ForEffect-client-74072b430ca76fba1ebcad8bbc14754874f60969.ts} +1 -1
  99. package/test/effects/components/temp/{ForEffect-server-3211305e6a2145f78bc3e14d2f26b7db0e192ec1.ts → ForEffect-server-a6306a1526624693d2b71ae1ecb13b658c95cbfc.ts} +1 -1
  100. package/test/effects/components/temp/{IfEffect-client-b2eb2a38dec9cad49b7d1103aab0d2c3324e569a.ts → IfEffect-client-bdc34d65604493fc1475e2e98f7ae262a0ca5f34.ts} +1 -1
  101. package/test/effects/components/temp/{IfEffect-server-81d8f48c6fcb57d99a18b394f8a6320adfb5f864.ts → IfEffect-server-a93ce34f749fc8eca2cb8fa9750622cf8ad1dade.ts} +1 -1
  102. package/test/effects/components/temp/{NestedIfEffect-client-a75dd167f3469f4a5f6730445128d3eff956afe2.ts → NestedIfEffect-client-944bd749d83ebce0f6ae66c6751f38ecd430df05.ts} +1 -1
  103. package/test/effects/components/temp/{NestedIfEffect-server-78aa084b0f5ff89c543ce3287254bc3269450090.ts → NestedIfEffect-server-7fbfcc91d32a454c2759d4dd2791bdd15393d470.ts} +1 -1
  104. package/test/events/components/output/Events-client.ts +5 -5
  105. package/test/events/components/output/Events-server.ts +3 -3
  106. package/test/events/components/temp/{Events-client-af611081aa6cb1567461367daf3068df86c6ff23.ts → Events-client-a02f139a6aed6e9105eeb23cee802f3d1b8550e5.ts} +5 -5
  107. package/test/events/components/temp/{Events-server-e9b3526168eb4472cc70f4afc89c69d2238defac.ts → Events-server-3eeea257aecdf7e096c7feb9feb2e84703cfe38c.ts} +3 -3
  108. package/test/events/events.test.ts +1 -1
  109. package/test/for/components/output/For-client.ts +2 -2
  110. package/test/for/components/output/For-server.ts +2 -2
  111. package/test/for/components/output/ForAfterFor-client.ts +2 -2
  112. package/test/for/components/output/ForAfterFor-server.ts +2 -2
  113. package/test/for/components/output/ForContainingFor-client.ts +2 -2
  114. package/test/for/components/output/ForContainingFor-server.ts +2 -2
  115. package/test/for/components/output/ForContainingFunction-client.ts +3 -3
  116. package/test/for/components/output/ForContainingFunction-server.ts +2 -2
  117. package/test/for/components/output/ForContainingIf-client.ts +2 -2
  118. package/test/for/components/output/ForContainingIf-server.ts +2 -2
  119. package/test/for/components/output/ForEscape-client.ts +2 -2
  120. package/test/for/components/output/ForEscape-server.ts +2 -2
  121. package/test/for/components/output/ForIn-client.ts +1 -1
  122. package/test/for/components/output/ForIn-server.ts +1 -1
  123. package/test/for/components/output/ForOf-client.ts +1 -1
  124. package/test/for/components/output/ForOf-server.ts +1 -1
  125. package/test/for/components/temp/{For-client-69c16449ab9b63fd8ace8cb1364105a80e6e1c40.ts → For-client-b999b399f32cac80c8ca1c9a718e35705a2dc10f.ts} +2 -2
  126. package/test/for/components/temp/{For-server-754c089d3569660a976c799396e8a68a39d3cddf.ts → For-server-58c21b5e077266b759d017e7cb696dc0ae1d14f6.ts} +2 -2
  127. package/test/for/components/temp/{ForAfterFor-client-b57ee13c70d8504456dbb5f75efd9defecab8cd1.ts → ForAfterFor-client-315138c704ee78185fbaf09a3f055e4c00a3a91d.ts} +2 -2
  128. package/test/for/components/temp/{ForAfterFor-server-2e927aa1fb165ed46b798d930a62a9125486c2f1.ts → ForAfterFor-server-484aa0db27d3feff0e74ad88a369e35576e0ffe7.ts} +2 -2
  129. package/test/for/components/temp/{ForContainingFor-client-bc5cc8b51b248bebc28fdba5e69d56af4148a66a.ts → ForContainingFor-client-d9ed22634282fabc29ed8bdd5e4cb3ee699f5f56.ts} +2 -2
  130. package/test/for/components/temp/{ForContainingFor-server-5e9e48ef3a3a2f411e4261d8aef8d68ace4f941b.ts → ForContainingFor-server-35e9268474f8fb887cb824d41b115957fac2ac46.ts} +2 -2
  131. package/test/for/components/temp/{ForContainingFunction-client-f29a23d27f5458760406127c58520d6abf924409.ts → ForContainingFunction-client-a1a63d73cf56ffc50e5f46cd2e2cc71bf0ebaa4c.ts} +3 -3
  132. package/test/for/components/temp/{ForContainingFunction-server-bce5cf9e382b61c9eee613c6377525c9b0446228.ts → ForContainingFunction-server-c97c0131eed62a1b1fd22da182825fcf717c160a.ts} +2 -2
  133. package/test/for/components/temp/{ForContainingIf-client-da96adc2e61301142e0728b55665ef241c19f9a4.ts → ForContainingIf-client-9fd42948e04eeb5114d22c4d986e27a101c7e73a.ts} +2 -2
  134. package/test/for/components/temp/{ForContainingIf-server-77dc43708cb24365aa0e8e8a3e0249d699511684.ts → ForContainingIf-server-ba43d99a0430bd211525168f199c5b6706526e08.ts} +2 -2
  135. package/test/for/components/temp/{ForEscape-client-f2b7590f8e93981bc0cd0c0845ad22df1dc050b6.ts → ForEscape-client-f6ee68cf9081cecccc78d793da192df403a573d4.ts} +2 -2
  136. package/test/for/components/temp/{ForEscape-server-bc955de63d856c3f2c4458cccef19c2323f59e63.ts → ForEscape-server-ed5da041557c5ef2988e3e1bb1094340b8e86266.ts} +2 -2
  137. package/test/for/components/temp/{ForIn-client-8754824447479fba5ba3676b5c1dcb1e3591575f.ts → ForIn-client-f82576cc3c950432fec8c196ba25596f191177ae.ts} +1 -1
  138. package/test/for/components/temp/{ForIn-server-be47db482067aac3e01f80a8dec585aec1d084b6.ts → ForIn-server-8c9d8c3e2272731706b27a18ea4a7dc7c7b644ac.ts} +1 -1
  139. package/test/for/components/temp/{ForOf-client-852d13b24329f89bd864313bc376f73174b9965e.ts → ForOf-client-1a89bfa049d931c7ec848d80196cd75bc67868a6.ts} +1 -1
  140. package/test/for/components/temp/{ForOf-server-cbee79227e10264dc7afdea59ef2e1980641420a.ts → ForOf-server-5ed73f4ddb3cd32ced6d2d0d7d1db3c0e241a5d6.ts} +1 -1
  141. package/test/function/components/output/Function-client.ts +3 -3
  142. package/test/function/components/output/Function-server.ts +2 -2
  143. package/test/function/components/temp/{Function-client-8ae7f26bcaee6b57251659efc2abcdfd9c0d30e1.ts → Function-client-a9072c015aa3f89966fbfc905109c2c6ecac3846.ts} +3 -3
  144. package/test/function/components/temp/{Function-server-44ab0f134c3da5672c71e6bdabc92295af6afa85.ts → Function-server-9a4b3a772ac4b0ff50b6e7c6a6f83913412b134b.ts} +2 -2
  145. package/test/helpers.ts +12 -3
  146. package/test/html/components/output/Html-client.ts +1 -1
  147. package/test/html/components/output/Html-server.ts +1 -1
  148. package/test/html/components/temp/{Html-client-2e1b6cfd24f6114f3e9b0fb0adc0022841c2196b.ts → Html-client-206a7cd3478abde0e6902a8cb953dc20d6a2cd3f.ts} +1 -1
  149. package/test/html/components/temp/{Html-server-e626c9e5a0607070453608feb9118936937c9cb4.ts → Html-server-8eeb3231f8863cca92099793eebb05a0c2d69110.ts} +1 -1
  150. package/test/if/components/output/ElseIfTrue-client.ts +1 -1
  151. package/test/if/components/output/ElseIfTrue-server.ts +1 -1
  152. package/test/if/components/output/ElseTrue-client.ts +1 -1
  153. package/test/if/components/output/ElseTrue-server.ts +1 -1
  154. package/test/if/components/output/IfAfterIf-client.ts +1 -1
  155. package/test/if/components/output/IfAfterIf-server.ts +1 -1
  156. package/test/if/components/output/IfCache-client.ts +3 -2
  157. package/test/if/components/output/IfCache-server.ts +1 -1
  158. package/test/if/components/output/IfContainingFor-client.ts +1 -1
  159. package/test/if/components/output/IfContainingFor-server.ts +1 -1
  160. package/test/if/components/output/IfContainingFunction-client.ts +2 -2
  161. package/test/if/components/output/IfContainingFunction-server.ts +1 -1
  162. package/test/if/components/output/IfContainingIf-client.ts +1 -1
  163. package/test/if/components/output/IfContainingIf-server.ts +1 -1
  164. package/test/if/components/output/IfElseFalse-client.ts +1 -1
  165. package/test/if/components/output/IfElseFalse-server.ts +1 -1
  166. package/test/if/components/output/IfElseTrue-client.ts +1 -1
  167. package/test/if/components/output/IfElseTrue-server.ts +1 -1
  168. package/test/if/components/output/IfFalse-client.ts +1 -1
  169. package/test/if/components/output/IfFalse-server.ts +1 -1
  170. package/test/if/components/output/IfNested-client.ts +1 -1
  171. package/test/if/components/output/IfNested-server.ts +1 -1
  172. package/test/if/components/temp/{ElseTrue-client-e4ab334d09c6eb8190c00102160e5db88c14bef4.ts → ElseIfTrue-client-6eb8f5e058f266603104442f46cd96206bbceee8.ts} +1 -1
  173. package/test/if/components/temp/{ElseTrue-server-d16c5f90da5cb991243d0ea131e7eb2a717d6515.ts → ElseIfTrue-server-47a3f8077b1a8b0db5da756b1934e92f09ff4c13.ts} +1 -1
  174. package/test/if/components/temp/{ElseIfTrue-client-e4ab334d09c6eb8190c00102160e5db88c14bef4.ts → ElseTrue-client-6eb8f5e058f266603104442f46cd96206bbceee8.ts} +1 -1
  175. package/test/if/components/temp/{ElseIfTrue-server-d16c5f90da5cb991243d0ea131e7eb2a717d6515.ts → ElseTrue-server-47a3f8077b1a8b0db5da756b1934e92f09ff4c13.ts} +1 -1
  176. package/test/if/components/temp/{IfAfterIf-client-b12abbd827f186b231ce7669ce676f612c66220d.ts → IfAfterIf-client-b042b5047978b9054a6a89e45f4d157249885821.ts} +1 -1
  177. package/test/if/components/temp/{IfAfterIf-server-ebc99950e0f603ba7dbe7a92cb94fda67743be42.ts → IfAfterIf-server-479ceb567eb7e771ecd0f2a370a99dfca28b36f7.ts} +1 -1
  178. package/test/if/components/temp/{IfCache-client-d9e7265dbce9b89bf67f4d0eb33967c89a4bec3f.ts → IfCache-client-3d0bc2841d050f6d86bbccddfdcaf0b0b781ab87.ts} +3 -2
  179. package/test/if/components/temp/{IfCache-server-efde9bb64835bdaa6da95acf84abc43c38340203.ts → IfCache-server-4115f625d77b834c0d82f76dace5a29e9bf10683.ts} +1 -1
  180. package/test/if/components/temp/{IfContainingFor-client-dc70bb4ae31c2320b4e22f4f26d87d5650667713.ts → IfContainingFor-client-0b27933986c4593fdad3c81ac22e32d7ee6bd40f.ts} +1 -1
  181. package/test/if/components/temp/{IfContainingFor-server-a54062a628b406040428c6a4b9b06067e02fe478.ts → IfContainingFor-server-7dadac38399f1a22968fc16715b6647cf3e0729c.ts} +1 -1
  182. package/test/if/components/temp/{IfContainingFunction-client-1d8f1ce12f4098b425be18149d9c58ea9c4e8de6.ts → IfContainingFunction-client-b3a3e7e2b2b44618fa722403d51717532fc237e4.ts} +2 -2
  183. package/test/if/components/temp/{IfContainingFunction-server-4666fe29a65d47a998a9357ca34453cf3210f239.ts → IfContainingFunction-server-a204a3f1dc468dd8dc783199eb73edb1d49e5775.ts} +1 -1
  184. package/test/if/components/temp/{IfContainingIf-client-c92cd49733d7b28ccbc37ec62936a195020a7a10.ts → IfContainingIf-client-3cf3407e41d0bd4d2927f97cbc5f9df661537702.ts} +1 -1
  185. package/test/if/components/temp/{IfContainingIf-server-ad5fe7a67235cce0e92432a72ceb278d168c9d7f.ts → IfContainingIf-server-4fbee02784b014175bcb5cc90c3c6246d15a6f5e.ts} +1 -1
  186. package/test/if/components/temp/{IfElseFalse-client-63cb84ef58ec24276372af50e9f213391d4c9d1c.ts → IfElseFalse-client-9bccfbdf5da704d3756ff48e2cf6987e6125dc1f.ts} +1 -1
  187. package/test/if/components/temp/{IfElseTrue-server-fcb8e3008932399fb4cca53ef09bdd201030d3cb.ts → IfElseFalse-server-52f6dac76bacbe350071957956cb282dba8cfbdd.ts} +1 -1
  188. package/test/if/components/temp/{IfElseTrue-client-63cb84ef58ec24276372af50e9f213391d4c9d1c.ts → IfElseTrue-client-9bccfbdf5da704d3756ff48e2cf6987e6125dc1f.ts} +1 -1
  189. package/test/if/components/temp/{IfElseFalse-server-fcb8e3008932399fb4cca53ef09bdd201030d3cb.ts → IfElseTrue-server-52f6dac76bacbe350071957956cb282dba8cfbdd.ts} +1 -1
  190. package/test/if/components/temp/{IfFalse-client-b8f2b5b8fe046cfbb48be281edf8a0e11f35db18.ts → IfFalse-client-9ad6f6e3f7abb5d9927d4823315886542c6ec611.ts} +1 -1
  191. package/test/if/components/temp/{IfFalse-server-e5330a5735d1bcc62b8321d368efecc7ce645d1b.ts → IfFalse-server-d13dc53aa5d556c19183947090657e045b6c32c5.ts} +1 -1
  192. package/test/if/components/temp/IfNested-client-50abd76ec9369ac6cf42f0264870914923f30b5c.ts +101 -0
  193. package/test/{build-server/components/temp/IfNested-server-31a9acef02893719ca6df5a53c71bba94391bc3a.ts → if/components/temp/IfNested-server-8a2513b704782704e7e184924c35e55958b15ae1.ts} +1 -1
  194. package/test/imports/{commented-imports.ts → commented-imports.test.ts} +2 -2
  195. package/test/imports/{imports.ts → imports.test.ts} +2 -2
  196. package/test/imports/{multiple-imports.ts → multiple-imports.test.ts} +2 -2
  197. package/test/mount/components/output/Mount-client.ts +2 -2
  198. package/test/mount/components/output/Mount-server.ts +2 -2
  199. package/test/mount/components/temp/{Mount-client-3465b845172e105e5114e495b85925e383711c11.ts → Mount-client-ce5a39e2bd6942a589b1a91d392ee841d55bccf2.ts} +2 -2
  200. package/test/mount/components/temp/{Mount-server-55416a0e5c937354b3777edfe04c3eeb149f843c.ts → Mount-server-26084a91839f500626771919e57ddefcd9b35af6.ts} +2 -2
  201. package/test/on-mount/components/output/OnMount-client.ts +4 -3
  202. package/test/on-mount/components/output/OnMount-server.ts +2 -2
  203. package/test/on-mount/components/temp/{OnMount-client-eae1a7ae40d1b402761ef6452e1da94f3da52209.ts → OnMount-client-218e35c32f4c3d30a193775e4aecd50d5663da0d.ts} +4 -3
  204. package/test/on-mount/components/temp/{OnMount-server-2c968e45320906e0188322bd3fd6ca65c08ad1ba.ts → OnMount-server-1b724b3d6b49bc7cc2416bead3e5fa481e91d504.ts} +2 -2
  205. package/test/party/13-emit-to-parent.test.ts +1 -1
  206. package/test/party/components/output/ComputedState-client.ts +2 -2
  207. package/test/party/components/output/ComputedState-server.ts +2 -2
  208. package/test/party/components/output/Conditional-client.ts +3 -3
  209. package/test/party/components/output/Conditional-server.ts +2 -2
  210. package/test/party/components/output/Context-client.ts +5 -5
  211. package/test/party/components/output/Context-server.ts +4 -5
  212. package/test/party/components/output/DeclareState-client.ts +2 -2
  213. package/test/party/components/output/DeclareState-server.ts +2 -2
  214. package/test/party/components/output/DomRef-client.ts +2 -2
  215. package/test/party/components/output/DomRef-server.ts +2 -2
  216. package/test/party/components/output/EmitToParent-client.ts +6 -6
  217. package/test/party/components/output/EmitToParent-server.ts +8 -8
  218. package/test/party/components/output/EventClick-client.ts +3 -3
  219. package/test/party/components/output/EventClick-server.ts +2 -2
  220. package/test/party/components/output/InputCheckbox-client.ts +2 -2
  221. package/test/party/components/output/InputCheckbox-server.ts +2 -2
  222. package/test/party/components/output/InputRadio-client.ts +2 -2
  223. package/test/party/components/output/InputRadio-server.ts +2 -2
  224. package/test/party/components/output/InputSelect-client.ts +4 -4
  225. package/test/party/components/output/InputSelect-server.ts +2 -2
  226. package/test/party/components/output/InputText-client.ts +2 -2
  227. package/test/party/components/output/InputText-server.ts +2 -2
  228. package/test/party/components/output/Loop-client.ts +2 -2
  229. package/test/party/components/output/Loop-server.ts +2 -2
  230. package/test/party/components/output/MinimalTemplate-client.ts +2 -2
  231. package/test/party/components/output/MinimalTemplate-server.ts +2 -2
  232. package/test/party/components/output/OnMount-client.ts +2 -2
  233. package/test/party/components/output/OnMount-server.ts +2 -2
  234. package/test/party/components/output/Props-client.ts +3 -3
  235. package/test/party/components/output/Props-server.ts +9 -9
  236. package/test/party/components/output/Slot-client.ts +6 -5
  237. package/test/party/components/output/Slot-server.ts +6 -7
  238. package/test/party/components/output/SlotFallback-client.ts +6 -5
  239. package/test/party/components/output/SlotFallback-server.ts +6 -7
  240. package/test/party/components/output/Styling-client.ts +2 -2
  241. package/test/party/components/output/Styling-server.ts +2 -2
  242. package/test/party/components/output/UpdateState-client.ts +2 -2
  243. package/test/party/components/output/UpdateState-server.ts +2 -2
  244. package/test/party/components/temp/{ComputedState-client-eef842f02b6aa7abda42221f86c5b973dd9de829.ts → ComputedState-client-fcd3c890f4dc9058c4ee29e7cdbfda23a8d4695f.ts} +2 -2
  245. package/test/party/components/temp/{ComputedState-server-d8f17812ea8bb9218940e4abcfe49824ab16e8f7.ts → ComputedState-server-ae1a02b6e98e8e4d37be20a37af002b29e54e259.ts} +2 -2
  246. package/test/party/components/temp/{Conditional-client-ed1ba6a97d722503560ffbb3dece1d9af5fbadd2.ts → Conditional-client-39c1844a9395f8620541f6599ee4547906c35d69.ts} +3 -3
  247. package/test/party/components/temp/{Conditional-server-d19a62e18b1e5340c2133d32c4c20d7b03acb275.ts → Conditional-server-2b55ee76a71a9e697124cb93b6d3bb5b90709855.ts} +2 -2
  248. package/test/party/components/temp/{Context-client-fd121c4a2766ee5b41caf79f485f5f11142e43e0.ts → Context-client-696777e5ce1ad7ef2f5bc8e4c2c1a81fb3a98ece.ts} +5 -5
  249. package/test/party/components/temp/{Context-server-e4140b5eff2774645270cd83276137f3deb9bf1b.ts → Context-server-2a72df9fe275e376a358954d962ff05b22d2c8e9.ts} +4 -5
  250. package/test/party/components/temp/{DeclareState-client-ac001e93d902207dd1bfc6315be47947a4872212.ts → DeclareState-client-cbade5ab902b3d7d5bf8054f9cc7e149334e3560.ts} +2 -2
  251. package/test/party/components/temp/{DeclareState-server-6cd408635cfdd584fe908babcca131e1da65cf27.ts → DeclareState-server-f941a9e5505c3e5125cbd5bcab99d74407b6b570.ts} +2 -2
  252. package/test/party/components/temp/{DomRef-client-6849a0bf523f0193b369591d543a2b52103e35b0.ts → DomRef-client-6e643c9cfee7fed10c6cead9fcad055646712aa6.ts} +2 -2
  253. package/test/party/components/temp/{DomRef-server-a1c79cff631364be4aabe8892c08022135ee4fea.ts → DomRef-server-a81201ce5b2987207ca9375370ff278bb51d12b0.ts} +2 -2
  254. package/test/party/components/temp/{EmitToParent-client-3666116e65f3e8d4dbb0782d93f631a855b094ec.ts → EmitToParent-client-89b1744b0bc1e50dc2091c6e63dfe9b62a0b8d46.ts} +6 -6
  255. package/test/party/components/temp/{EmitToParent-server-f5a5dac8cf1c9e443dd76797435942bf8ec687be.ts → EmitToParent-server-79aabe3df7c5fd61144e53a71ab3833375cbd473.ts} +8 -8
  256. package/test/party/components/temp/{EventClick-client-4344b8012e6f6310b25c6b43d9f5991dc93037e8.ts → EventClick-client-2c7393fcd73e6d10d17f5f19aacafeb91ab219f6.ts} +3 -3
  257. package/test/party/components/temp/{EventClick-server-6caf88d4154969d1d5b502425ce67c07d2e4a79a.ts → EventClick-server-7ae082e9c92107b0f042f9b0877e7e4c7ad0fa38.ts} +2 -2
  258. package/test/party/components/temp/{InputCheckbox-client-1caf209b10b5eaa74bf6eb9b7068b425e294e940.ts → InputCheckbox-client-377a0a0505e307b19dcca95cb9b1cf9c8a38835b.ts} +2 -2
  259. package/test/party/components/temp/{InputCheckbox-server-1d56579ca4fcd39e228c9f19fa4602774fcffbc4.ts → InputCheckbox-server-82f054fbabb357aa466b489bfdea76e582ff220e.ts} +2 -2
  260. package/test/party/components/temp/{InputRadio-client-a3d5bfe78006351fb9d1653ac8f24c193e4cf173.ts → InputRadio-client-38c3f46fabdb94ca79c71888ce3335687461fcbd.ts} +2 -2
  261. package/test/party/components/temp/{InputRadio-server-10fda5f41d12f9c23e38d6ea3f9d5c6da64e2d44.ts → InputRadio-server-620981bdc7ab6d42ba08e04ba8c16f9ed477e1c0.ts} +2 -2
  262. package/test/party/components/temp/{InputSelect-client-6827b541b2a0569745e21823bc3420bdfff746b2.ts → InputSelect-client-bac5f12f5560e702794587702c883c273c92394f.ts} +4 -4
  263. package/test/party/components/temp/{InputSelect-server-090193bc5786a342e83e566cd6c423478955368a.ts → InputSelect-server-c36d8b8c533d2104122490dde64554f65cb15544.ts} +2 -2
  264. package/test/party/components/temp/{InputText-client-8ae588dfd76e4fd83614100be45513ab77a7357b.ts → InputText-client-2a189403e60e6f932829370233ddede2be782334.ts} +2 -2
  265. package/test/party/components/temp/{InputText-server-3a93651aa9f344c68ee65d638fc34f3361690ea9.ts → InputText-server-3546f8ce8a31bbe0869b9a351d6da7f649e7daf6.ts} +2 -2
  266. package/test/party/components/temp/{Loop-client-79bc3b13d7f6a733694cb5f3ee4b91667ea5c5b5.ts → Loop-client-c99929d3487880b8526d0ed3602c96dd36da1a8c.ts} +2 -2
  267. package/test/party/components/temp/{Loop-server-7a462b2de89d0d49b878c794b874ddc1bc518c50.ts → Loop-server-5bbcca21d3ec9a1f314aaf02d89d18cb08dcc7ee.ts} +2 -2
  268. package/test/party/components/temp/{MinimalTemplate-client-727021df06e846bc9d184dfd7cfa2a3fd92556b1.ts → MinimalTemplate-client-72e8afffe412117e38f8045196704fa3ac384213.ts} +2 -2
  269. package/test/party/components/temp/{MinimalTemplate-server-8ab84a3653ec59bd140782dcd7aea0d16abf0019.ts → MinimalTemplate-server-5df0b3d954b992d75cc0de1ae65cfc48d1059422.ts} +2 -2
  270. package/test/party/components/temp/{OnMount-client-4725eee82d65a2a9e098a0aa0b04c0eb15617ca6.ts → OnMount-client-f16abd053b4b1ba31fc806e8c3a39163a46cb6a2.ts} +2 -2
  271. package/test/party/components/temp/{OnMount-server-cb12c3a94e5a15306e2c78aad4aa2ee1f9be3f05.ts → OnMount-server-9c991ae9f8ab11a4b0343e9fffa8ce8b945bb056.ts} +2 -2
  272. package/test/party/components/temp/{Props-client-7dbf4a9aecc5b1890492db1d30904341bfd0e9eb.ts → Props-client-863b630f7f77c4609f6171886bf812b9452cfceb.ts} +3 -3
  273. package/test/party/components/temp/{Props-server-945071c89c88628544956a35d7f0cadc47caa955.ts → Props-server-208bcc8cbc5c5e7ed0072c350cf96eb6b4754686.ts} +9 -9
  274. package/test/party/components/temp/{Slot-client-573e4ca6d35aea12306749eb7377f20ac90292dc.ts → Slot-client-4406668a963796d1117ec818118e504e55b18e4c.ts} +6 -5
  275. package/test/party/components/temp/{Slot-server-aaffce53c1d9bac7d24eba6f2400fced2b7a9f7c.ts → Slot-server-9ffd9b714b531112129b5c826dd8586a5ea73209.ts} +6 -7
  276. package/test/party/components/temp/{SlotFallback-client-573e4ca6d35aea12306749eb7377f20ac90292dc.ts → SlotFallback-client-4406668a963796d1117ec818118e504e55b18e4c.ts} +6 -5
  277. package/test/party/components/temp/{SlotFallback-server-aaffce53c1d9bac7d24eba6f2400fced2b7a9f7c.ts → SlotFallback-server-9ffd9b714b531112129b5c826dd8586a5ea73209.ts} +6 -7
  278. package/test/party/components/temp/{Styling-client-262de42541af3154966ba60eef7b04572ebbb2a7.ts → Styling-client-59c057fc5b6c226d667351ea7f748abbe86f1c96.ts} +2 -2
  279. package/test/party/components/temp/{Styling-server-781c357ad52d626180f766a0301a4ee05db4bdf1.ts → Styling-server-32af1b2077f7979b0956904ee9e657a41f512a5c.ts} +2 -2
  280. package/test/party/components/temp/{UpdateState-client-394ff9d0df2e1b8ab85e7f851f4784787f129ed0.ts → UpdateState-client-3b087abf0cb4b1e784623f3de6dabbcb63703e07.ts} +2 -2
  281. package/test/party/components/temp/{UpdateState-server-d1f8f1f61ece4bad87d20019006625ca03021226.ts → UpdateState-server-9c6e94e88cd8b9032aeae0a2c4a6cd51f7d09c95.ts} +2 -2
  282. package/test/props/components/output/Reactive-client.ts +6 -5
  283. package/test/props/components/output/Reactive-server.ts +8 -7
  284. package/test/props/components/output/Reactive-types.ts +1 -1
  285. package/test/props/components/temp/{Reactive-client-dc9aadcdcb4a950141942769806a1017c9076b20.ts → Reactive-client-a911a7026a02bf32c185e29a87f5b8611685e370.ts} +6 -5
  286. package/test/props/components/temp/{Reactive-server-738cf1237188d69c8cfa76ff3a8f3344f3512c78.ts → Reactive-server-6728168c7df78b8ebf94b53358cb8f6f5e7ce6e7.ts} +8 -7
  287. package/test/props/components/temp/{Reactive-types-bd642939107f1be06666bfce1ad97a94ccc21ee1.ts → Reactive-types-f0238cd99c1271ff53705c40848ec94c8ca25e3a.ts} +1 -1
  288. package/test/props/reactive.test.ts +2 -2
  289. package/test/replace/components/output/Replace-client.ts +1 -1
  290. package/test/replace/components/output/Replace-server.ts +1 -1
  291. package/test/replace/components/temp/{Replace-client-81652c7f64437d91a034e7fe1de7cec08ccacd53.ts → Replace-client-d5e681fe8c662c832916d61ae22d51e65dfeba53.ts} +1 -1
  292. package/test/replace/components/temp/{Replace-server-8affa8d7bddd9011206c96d250062fb096296d23.ts → Replace-server-f415c96e5ea7c2f370fd3c55ef6b8b7e0cb7b3ee.ts} +1 -1
  293. package/test/slots/components/output/BasicSlot-client.ts +6 -5
  294. package/test/slots/components/output/BasicSlot-server.ts +6 -6
  295. package/test/slots/components/output/LetSlot-client.ts +7 -4
  296. package/test/slots/components/output/LetSlot-server.ts +7 -6
  297. package/test/slots/components/output/LetSlot-types.ts +1 -1
  298. package/test/slots/components/output/NamedSlot-client.ts +8 -6
  299. package/test/slots/components/output/NamedSlot-server.ts +8 -7
  300. package/test/slots/components/output/UnusedSlot-client.ts +4 -4
  301. package/test/slots/components/output/UnusedSlot-server.ts +4 -5
  302. package/test/slots/components/temp/{BasicSlot-client-8a51c7a21638cc96da2b2766e46310d099687f8e.ts → BasicSlot-client-c1e9885dc85d13e4b44d54e0ad800c0d46e35914.ts} +6 -5
  303. package/test/slots/components/temp/{BasicSlot-server-8d3adcd44f4a021022fcc289ce0529946f2d9bab.ts → BasicSlot-server-a2deda4f03ac76f9bb924e01a9c04a82ef8c6576.ts} +6 -6
  304. package/test/slots/components/temp/{LetSlot-client-328fd8a9fcfc6b68c0380f99d3f09ede33babc2f.ts → LetSlot-client-3b1779874d3c9b1289fb62f124af5ebaf78279a8.ts} +7 -4
  305. package/test/slots/components/temp/{LetSlot-server-1c56e0f0ccc3c2bad37f89ed13bcdec58ac58ea7.ts → LetSlot-server-276bc0a6777f67cb357ec2cde625cdd81e1dc882.ts} +7 -6
  306. package/test/slots/components/temp/{LetSlot-types-3d05614de77a23df63a3cc1873b27ce1b0148c58.ts → LetSlot-types-10ae95da96dbe9990b06cbff94e7db0c8651d2b5.ts} +1 -1
  307. package/test/slots/components/temp/{NamedSlot-client-f0b62a74a30ecb0d0fe715d56eb772a38fe13e87.ts → NamedSlot-client-8faa564d1002c199f102aa148657d82628d1ebd7.ts} +8 -6
  308. package/test/slots/components/temp/{NamedSlot-server-48c68d96b467ea74ca8f2c87ef27292eaa0b4fbb.ts → NamedSlot-server-66508f6683c334a800d612ee55942e414ac13766.ts} +8 -7
  309. package/test/slots/components/temp/{UnusedSlot-client-b8794d03a1566ab0a7ec888b907dd94e685fcf52.ts → UnusedSlot-client-2e23b278b99db53bc0fde9c98836d8e26481a40e.ts} +4 -4
  310. package/test/slots/components/temp/{UnusedSlot-server-bc71b5741d284ecd3036cc177ff00f62002d20fa.ts → UnusedSlot-server-315be7277a95a1fb4c8e9519e4b796c57272ce9d.ts} +4 -5
  311. package/test/slots/let-slot.test.ts +1 -1
  312. package/test/special-component/components/output/SpecialComponent-client.ts +9 -8
  313. package/test/special-component/components/output/SpecialComponent-server.ts +12 -11
  314. package/test/special-component/components/output/SpecialComponent-types.ts +1 -1
  315. package/test/special-component/components/temp/{SpecialComponent-client-4a9face6c61d943cd94c995b174877f08a6af9f4.ts → SpecialComponent-client-d81a30dda5d8d509e8661caa70bbc89265bc65c1.ts} +9 -8
  316. package/test/special-component/components/temp/{SpecialComponent-server-dfed8066f3d6cfc5bc0f13c7a575aa0d20a2fb31.ts → SpecialComponent-server-cebe1ec049e2ce8303e94a1246acca40c64443c8.ts} +12 -11
  317. package/test/special-component/components/temp/{SpecialComponent-types-196e5e5c55f61a9d24837f8de1fb9e9eeb2dd3f1.ts → SpecialComponent-types-3ef4f140ba29c98357caf0f2618785437b5804de.ts} +1 -1
  318. package/test/special-component/special-component.test.ts +2 -2
  319. package/test/special-element/components/output/SpecialElement-client.ts +1 -1
  320. package/test/special-element/components/output/SpecialElement-server.ts +1 -1
  321. package/test/special-element/components/temp/{SpecialElement-client-56b2d385272626ac7c75ff7b2b6876ff2280d5db.ts → SpecialElement-client-2887938dfcd02e042d8fe5501845d043b098616a.ts} +1 -1
  322. package/test/special-element/components/temp/{SpecialElement-server-95a4f433ff0a417556de779629f99b39885c6671.ts → SpecialElement-server-254b4fb61873549a24d215891a9195ba008b6098.ts} +1 -1
  323. package/test/special-head/components/output/SpecialHead-client.ts +2 -2
  324. package/test/special-head/components/output/SpecialHead-server.ts +2 -2
  325. package/test/special-head/components/temp/{SpecialHead-client-1aeeecccf0bc9ef671d422cbac5b6e460ae3c18b.ts → SpecialHead-client-3b8455aa874ae0113a7f718cb64b310d84430ce6.ts} +2 -2
  326. package/test/special-head/components/temp/{SpecialHead-server-8a44ede68129efa2ee87425cec6e959e59bdd15b.ts → SpecialHead-server-702470ee8fabae38313dc532dd5f26995d2366f6.ts} +2 -2
  327. package/test/special-self/components/output/SpecialSelf-client.ts +1 -1
  328. package/test/special-self/components/output/SpecialSelf-server.ts +4 -4
  329. package/test/special-self/components/temp/{SpecialSelf-client-baf46bd8104e26f37e699a1a0918ea2d8f1a8e8a.ts → SpecialSelf-client-cb6aba06aa4bec73485ef48bc05557a5c935f54c.ts} +1 -1
  330. package/test/special-self/components/temp/{SpecialSelf-server-6693e5b04f32373b538a43e9e2070ce3a8384882.ts → SpecialSelf-server-b7f52c0bb10d507086e63a100cd1c7c705b1c014.ts} +4 -4
  331. package/test/style/components/output/Style-client.ts +1 -1
  332. package/test/style/components/output/Style-server.ts +1 -1
  333. package/test/style/components/temp/{Style-client-9fac281c13b602dd3c56709a922987a0a922f289.ts → Style-client-8896b4c0fe78e346904fbcf24d629bbe20a56860.ts} +1 -1
  334. package/test/style/components/temp/{Style-server-9e4e9cd818bb8c466929b0c81ee1161d6fe0490a.ts → Style-server-f789c9d022ece18ce7a5729284dd555ad874371d.ts} +1 -1
  335. package/test/svg/components/output/Svg-client.ts +2 -1
  336. package/test/svg/components/output/Svg-server.ts +1 -1
  337. package/test/svg/components/temp/{Svg-client-ce4c8c2bb0954f69797b74f29f97f0caa1f1efca.ts → Svg-client-0397419af735b847de6c56bd6ad2bb4eb6dc1ba2.ts} +2 -1
  338. package/test/svg/components/temp/{Svg-server-b9b60e589502533127c30e89967d9dec0828d1a5.ts → Svg-server-1b0a6697637618fd25b59d5bf54babb1afeacf2e.ts} +1 -1
  339. package/test/switch/components/output/Switch-client.ts +1 -1
  340. package/test/switch/components/output/Switch-server.ts +1 -1
  341. package/test/switch/components/temp/{Switch-client-5e9c1cd0d99c95a53136b8647289c95d4475ed19.ts → Switch-client-8de47f56a21297420acf8bc27fc03149f258028b.ts} +1 -1
  342. package/test/switch/components/temp/{Switch-server-a47cc56d303c27853c804fde42ac4a4eef14b6dd.ts → Switch-server-9995e5e44b0a790ecdaa5e3c7367e3af85f1173b.ts} +1 -1
  343. package/test/text/components/output/Text-client.ts +1 -1
  344. package/test/text/components/output/Text-server.ts +1 -1
  345. package/test/text/components/temp/{Text-client-e8ac547ff02dd3514e6daaa3f194e955edfe7eb9.ts → Text-client-3b2555c36eef59b2d79b1d5a6d3edf4ff28a6816.ts} +1 -1
  346. package/test/text/components/temp/{Text-server-2010bf7bc69e04835349a96f405394d2dc905f74.ts → Text-server-fe60ab39cd9f3ec6e258ad77f4e86411038eb928.ts} +1 -1
  347. package/test/watch-array/components/output/ArrayAllFunctions-client.ts +1 -1
  348. package/test/watch-array/components/output/ArrayAllFunctions-server.ts +1 -1
  349. package/test/watch-array/components/output/ArrayAllFunctionsUnkeyed-client.ts +1 -1
  350. package/test/watch-array/components/output/ArrayAllFunctionsUnkeyed-server.ts +1 -1
  351. package/test/watch-array/components/output/ArrayEmpty-client.ts +1 -1
  352. package/test/watch-array/components/output/ArrayEmpty-server.ts +1 -1
  353. package/test/watch-array/components/output/ArrayEntries-client.ts +1 -1
  354. package/test/watch-array/components/output/ArrayEntries-server.ts +1 -1
  355. package/test/watch-array/components/output/ArrayIndexes-client.ts +1 -1
  356. package/test/watch-array/components/output/ArrayIndexes-server.ts +1 -1
  357. package/test/watch-array/components/output/ArrayPop-client.ts +1 -1
  358. package/test/watch-array/components/output/ArrayPop-server.ts +1 -1
  359. package/test/watch-array/components/output/ArrayPush-client.ts +1 -1
  360. package/test/watch-array/components/output/ArrayPush-server.ts +1 -1
  361. package/test/watch-array/components/output/ArrayReassign-client.ts +1 -1
  362. package/test/watch-array/components/output/ArrayReassign-server.ts +1 -1
  363. package/test/watch-array/components/output/ArrayReverse-client.ts +1 -1
  364. package/test/watch-array/components/output/ArrayReverse-server.ts +1 -1
  365. package/test/watch-array/components/output/ArraySetObject-client.ts +1 -1
  366. package/test/watch-array/components/output/ArraySetObject-server.ts +1 -1
  367. package/test/watch-array/components/output/ArraySetProperty-client.ts +1 -1
  368. package/test/watch-array/components/output/ArraySetProperty-server.ts +1 -1
  369. package/test/watch-array/components/output/ArrayShift-client.ts +1 -1
  370. package/test/watch-array/components/output/ArrayShift-server.ts +1 -1
  371. package/test/watch-array/components/output/ArraySort-client.ts +1 -1
  372. package/test/watch-array/components/output/ArraySort-server.ts +1 -1
  373. package/test/watch-array/components/output/ArraySpliceAdd-client.ts +1 -1
  374. package/test/watch-array/components/output/ArraySpliceAdd-server.ts +1 -1
  375. package/test/watch-array/components/output/ArraySpliceDelete-client.ts +1 -1
  376. package/test/watch-array/components/output/ArraySpliceDelete-server.ts +1 -1
  377. package/test/watch-array/components/output/ArraySpliceDeleteAll-client.ts +1 -1
  378. package/test/watch-array/components/output/ArraySpliceDeleteAll-server.ts +1 -1
  379. package/test/watch-array/components/output/ArraySpliceDeleteAndAdd-client.ts +1 -1
  380. package/test/watch-array/components/output/ArraySpliceDeleteAndAdd-server.ts +1 -1
  381. package/test/watch-array/components/output/ArraySpliceDeleteEnd-client.ts +1 -1
  382. package/test/watch-array/components/output/ArraySpliceDeleteEnd-server.ts +1 -1
  383. package/test/watch-array/components/output/ArraySwap-client.ts +1 -1
  384. package/test/watch-array/components/output/ArraySwap-server.ts +1 -1
  385. package/test/watch-array/components/output/ArrayUnshift-client.ts +1 -1
  386. package/test/watch-array/components/output/ArrayUnshift-server.ts +1 -1
  387. package/test/watch-array/components/output/ArrayUpdateAssignment-client.ts +1 -1
  388. package/test/watch-array/components/output/ArrayUpdateAssignment-server.ts +1 -1
  389. package/test/watch-array/components/temp/{ArrayPop-client-fcd44b588ebc667ff1e645ac95ea9ce6511dde04.ts → ArrayAllFunctions-client-10c627fb82e67bba84b0a0bc1ffe79430dcd7255.ts} +1 -1
  390. package/test/watch-array/components/temp/{ArrayPush-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts → ArrayAllFunctions-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts} +1 -1
  391. package/test/watch-array/components/temp/{ArrayAllFunctionsUnkeyed-client-f60e58a2cf8361b50f0598aa021576b320716897.ts → ArrayAllFunctionsUnkeyed-client-0aede144ecd4a1de98d0ac6265fc4275e9803f9e.ts} +1 -1
  392. package/test/watch-array/components/temp/{ArrayAllFunctionsUnkeyed-server-322c441892520db8657a2a9d9d7e85f5c46794f2.ts → ArrayAllFunctionsUnkeyed-server-5a3dbdec1785a4b9ad02f5d877764257f28bc6dd.ts} +1 -1
  393. package/test/watch-array/components/temp/{ArrayAllFunctions-client-fcd44b588ebc667ff1e645ac95ea9ce6511dde04.ts → ArrayEmpty-client-10c627fb82e67bba84b0a0bc1ffe79430dcd7255.ts} +1 -1
  394. package/test/watch-array/components/temp/{ArrayEmpty-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts → ArrayEmpty-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts} +1 -1
  395. package/test/watch-array/components/temp/{ArrayEntries-client-2d9b2fcda6b7706ef82b8d4bb590f5fab77fdcdd.ts → ArrayEntries-client-40c8fbd950418f90335fee16250a42778d8bfbaf.ts} +1 -1
  396. package/test/watch-array/components/temp/{ArrayEntries-server-6c5765b7a65daa55477271cf6ce45347f424bfe3.ts → ArrayEntries-server-120529d0e96f1dd0c1cff0507f60e0e0b4fc0360.ts} +1 -1
  397. package/test/watch-array/components/temp/{ArrayIndexes-client-b30b5caaf0f9a559730dce0ab966da6de84abbc9.ts → ArrayIndexes-client-89d3c7c1e89ca1c402183e84c3a2a8ed02bde10b.ts} +1 -1
  398. package/test/watch-array/components/temp/{ArrayIndexes-server-7eaf5792252f44551d0a691997f4409106ccfebb.ts → ArrayIndexes-server-cf0648f9442836997c4d64fad5959f453ad5d77f.ts} +1 -1
  399. package/test/watch-array/components/temp/{ArrayEmpty-client-fcd44b588ebc667ff1e645ac95ea9ce6511dde04.ts → ArrayPop-client-10c627fb82e67bba84b0a0bc1ffe79430dcd7255.ts} +1 -1
  400. package/test/watch-array/components/temp/{ArrayPop-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts → ArrayPop-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts} +1 -1
  401. package/test/watch-array/components/temp/{ArrayPush-client-fcd44b588ebc667ff1e645ac95ea9ce6511dde04.ts → ArrayPush-client-10c627fb82e67bba84b0a0bc1ffe79430dcd7255.ts} +1 -1
  402. package/test/watch-array/components/temp/{ArrayAllFunctions-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts → ArrayPush-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts} +1 -1
  403. package/test/watch-array/components/temp/ArrayReassign-client-10c627fb82e67bba84b0a0bc1ffe79430dcd7255.ts +83 -0
  404. package/test/watch-array/components/temp/ArrayReassign-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts +22 -0
  405. package/test/watch-array/components/temp/ArrayReverse-client-10c627fb82e67bba84b0a0bc1ffe79430dcd7255.ts +83 -0
  406. package/test/watch-array/components/temp/ArrayReverse-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts +22 -0
  407. package/test/watch-array/components/temp/ArraySetObject-client-10c627fb82e67bba84b0a0bc1ffe79430dcd7255.ts +83 -0
  408. package/test/watch-array/components/temp/ArraySetObject-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts +22 -0
  409. package/test/watch-array/components/temp/ArraySetProperty-client-10c627fb82e67bba84b0a0bc1ffe79430dcd7255.ts +83 -0
  410. package/test/watch-array/components/temp/ArraySetProperty-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts +22 -0
  411. package/test/watch-array/components/temp/ArrayShift-client-10c627fb82e67bba84b0a0bc1ffe79430dcd7255.ts +83 -0
  412. package/test/watch-array/components/temp/ArrayShift-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts +22 -0
  413. package/test/watch-array/components/temp/ArraySort-client-10c627fb82e67bba84b0a0bc1ffe79430dcd7255.ts +83 -0
  414. package/test/watch-array/components/temp/ArraySort-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts +22 -0
  415. package/test/watch-array/components/temp/ArraySpliceAdd-client-10c627fb82e67bba84b0a0bc1ffe79430dcd7255.ts +83 -0
  416. package/test/watch-array/components/temp/ArraySpliceAdd-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts +22 -0
  417. package/test/watch-array/components/temp/ArraySpliceDelete-client-10c627fb82e67bba84b0a0bc1ffe79430dcd7255.ts +83 -0
  418. package/test/watch-array/components/temp/ArraySpliceDelete-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts +22 -0
  419. package/test/watch-array/components/temp/ArraySpliceDeleteAll-client-10c627fb82e67bba84b0a0bc1ffe79430dcd7255.ts +83 -0
  420. package/test/watch-array/components/temp/ArraySpliceDeleteAll-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts +22 -0
  421. package/test/watch-array/components/temp/ArraySpliceDeleteAndAdd-client-10c627fb82e67bba84b0a0bc1ffe79430dcd7255.ts +83 -0
  422. package/test/watch-array/components/temp/ArraySpliceDeleteAndAdd-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts +22 -0
  423. package/test/watch-array/components/temp/ArraySpliceDeleteEnd-client-10c627fb82e67bba84b0a0bc1ffe79430dcd7255.ts +83 -0
  424. package/test/watch-array/components/temp/ArraySpliceDeleteEnd-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts +22 -0
  425. package/test/watch-array/components/temp/ArraySwap-client-10c627fb82e67bba84b0a0bc1ffe79430dcd7255.ts +83 -0
  426. package/test/watch-array/components/temp/ArraySwap-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts +22 -0
  427. package/test/watch-array/components/temp/ArrayUnshift-client-10c627fb82e67bba84b0a0bc1ffe79430dcd7255.ts +83 -0
  428. package/test/watch-array/components/temp/ArrayUnshift-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts +22 -0
  429. package/test/watch-array/components/temp/ArrayUpdateAssignment-client-10c627fb82e67bba84b0a0bc1ffe79430dcd7255.ts +83 -0
  430. package/test/watch-array/components/temp/ArrayUpdateAssignment-server-d1a89cfb5dc28f027a56266feef2ede8e7ee8570.ts +22 -0
  431. package/test/watch-object/components/output/WatchObject-client.ts +2 -2
  432. package/test/watch-object/components/output/WatchObject-server.ts +2 -2
  433. package/test/watch-object/components/output/WatchObject-types.ts +1 -1
  434. package/test/watch-object/components/temp/{WatchObject-client-fa0eda21911b5d8674baa290bfdbd8329cbc7f08.ts → WatchObject-client-6e179fea629d983307056536ab5a3cf9141335fa.ts} +2 -2
  435. package/test/watch-object/components/temp/{WatchObject-server-a31141b2d513f4d7244698e72f3888524fd8e55e.ts → WatchObject-server-b4a2dbff5525a2af64c1216cf6b6ecf800c03566.ts} +2 -2
  436. package/test/watch-object/components/temp/{WatchObject-types-70c7bde732f624bfbb8e353bf9d1be8dbaea63e1.ts → WatchObject-types-05e791b7c4023f8ae6e8dd548fe3f16ea8c16d10.ts} +1 -1
  437. package/test/watch-object/watch-object.test.ts +1 -1
  438. package/test/bench/components/temp/Bench-client-49f3ccc588596e2139b3c7911faf6804e77f9c7f.ts +0 -421
  439. package/test/build-server/components/temp/IfNested-client-b0df2bb83863455bc0ea0be7612e3bc50765a43e.ts +0 -116
  440. package/test/watch-array/components/temp/ArrayReassign-client-fcd44b588ebc667ff1e645ac95ea9ce6511dde04.ts +0 -83
  441. package/test/watch-array/components/temp/ArrayReassign-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts +0 -22
  442. package/test/watch-array/components/temp/ArrayReverse-client-fcd44b588ebc667ff1e645ac95ea9ce6511dde04.ts +0 -83
  443. package/test/watch-array/components/temp/ArrayReverse-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts +0 -22
  444. package/test/watch-array/components/temp/ArraySetObject-client-fcd44b588ebc667ff1e645ac95ea9ce6511dde04.ts +0 -83
  445. package/test/watch-array/components/temp/ArraySetObject-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts +0 -22
  446. package/test/watch-array/components/temp/ArraySetProperty-client-fcd44b588ebc667ff1e645ac95ea9ce6511dde04.ts +0 -83
  447. package/test/watch-array/components/temp/ArraySetProperty-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts +0 -22
  448. package/test/watch-array/components/temp/ArrayShift-client-fcd44b588ebc667ff1e645ac95ea9ce6511dde04.ts +0 -83
  449. package/test/watch-array/components/temp/ArrayShift-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts +0 -22
  450. package/test/watch-array/components/temp/ArraySort-client-fcd44b588ebc667ff1e645ac95ea9ce6511dde04.ts +0 -83
  451. package/test/watch-array/components/temp/ArraySort-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts +0 -22
  452. package/test/watch-array/components/temp/ArraySpliceAdd-client-fcd44b588ebc667ff1e645ac95ea9ce6511dde04.ts +0 -83
  453. package/test/watch-array/components/temp/ArraySpliceAdd-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts +0 -22
  454. package/test/watch-array/components/temp/ArraySpliceDelete-client-fcd44b588ebc667ff1e645ac95ea9ce6511dde04.ts +0 -83
  455. package/test/watch-array/components/temp/ArraySpliceDelete-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts +0 -22
  456. package/test/watch-array/components/temp/ArraySpliceDeleteAll-client-fcd44b588ebc667ff1e645ac95ea9ce6511dde04.ts +0 -83
  457. package/test/watch-array/components/temp/ArraySpliceDeleteAll-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts +0 -22
  458. package/test/watch-array/components/temp/ArraySpliceDeleteAndAdd-client-fcd44b588ebc667ff1e645ac95ea9ce6511dde04.ts +0 -83
  459. package/test/watch-array/components/temp/ArraySpliceDeleteAndAdd-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts +0 -22
  460. package/test/watch-array/components/temp/ArraySpliceDeleteEnd-client-fcd44b588ebc667ff1e645ac95ea9ce6511dde04.ts +0 -83
  461. package/test/watch-array/components/temp/ArraySpliceDeleteEnd-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts +0 -22
  462. package/test/watch-array/components/temp/ArraySwap-client-fcd44b588ebc667ff1e645ac95ea9ce6511dde04.ts +0 -83
  463. package/test/watch-array/components/temp/ArraySwap-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts +0 -22
  464. package/test/watch-array/components/temp/ArrayUnshift-client-fcd44b588ebc667ff1e645ac95ea9ce6511dde04.ts +0 -83
  465. package/test/watch-array/components/temp/ArrayUnshift-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts +0 -22
  466. package/test/watch-array/components/temp/ArrayUpdateAssignment-client-fcd44b588ebc667ff1e645ac95ea9ce6511dde04.ts +0 -83
  467. package/test/watch-array/components/temp/ArrayUpdateAssignment-server-f463a29dee7f143455591e89d001dd42dab9db7b.ts +0 -22
@@ -0,0 +1,214 @@
1
+ import $peek from "../../../../src/watch/$peek";
2
+ import $run from "../../../../src/watch/$run";
3
+ import $watch from "../../../../src/watch/$watch";
4
+ import type ListItem from "../../../../src/types/ListItem";
5
+ import type SlotRender from "../../../../src/types/SlotRender";
6
+ import t_add_fragment from "../../../../src/render/addFragment";
7
+ import t_anchor from "../../../../src/render/nodeAnchor";
8
+ import t_child from "../../../../src/render/nodeChild";
9
+ import t_class from "../../../../src/render/buildClasses";
10
+ import t_event from "../../../../src/render/addEvent";
11
+ import t_fmt from "../../../../src/render/formatText";
12
+ import t_fragment from "../../../../src/render/getFragment";
13
+ import t_list_item from "../../../../src/render/newListItem";
14
+ import t_next from "../../../../src/render/nodeNext";
15
+ import t_pop_region from "../../../../src/render/popRegion";
16
+ import t_push_region from "../../../../src/render/pushRegion";
17
+ import t_region from "../../../../src/render/newRegion";
18
+ import t_root from "../../../../src/render/nodeRoot";
19
+ import t_run_list from "../../../../src/render/runList";
20
+
21
+ export default function Bench(
22
+ $parent: ParentNode,
23
+ $anchor: Node | null,
24
+ // @ts-ignore
25
+ $props?: Record<PropertyKey, any>,
26
+ // @ts-ignore
27
+ $context?: Record<PropertyKey, any>,
28
+ // @ts-ignore
29
+ $slots?: Record<string, SlotRender>
30
+ ): void {
31
+ $peek(() => { /**/
32
+
33
+ let rowId = 1;
34
+ let $state: { data: Item[], selected: number | null } = $watch({
35
+ data: [],
36
+ selected: null,
37
+ });
38
+
39
+ const adjectives = [
40
+ "pretty",
41
+ "large",
42
+ "big",
43
+ "small",
44
+ "tall",
45
+ "short",
46
+ "long",
47
+ "handsome",
48
+ "plain",
49
+ "quaint",
50
+ "clean",
51
+ "elegant",
52
+ "easy",
53
+ "angry",
54
+ "crazy",
55
+ "helpful",
56
+ "mushy",
57
+ "odd",
58
+ "unsightly",
59
+ "adorable",
60
+ "important",
61
+ "inexpensive",
62
+ "cheap",
63
+ "expensive",
64
+ "fancy",
65
+ ];
66
+ const colours = ["red", "yellow", "blue", "green", "pink", "brown", "purple", "brown", "white", "black", "orange"];
67
+ const nouns = [
68
+ "table",
69
+ "chair",
70
+ "house",
71
+ "bbq",
72
+ "desk",
73
+ "car",
74
+ "pony",
75
+ "cookie",
76
+ "sandwich",
77
+ "burger",
78
+ "pizza",
79
+ "mouse",
80
+ "keyboard",
81
+ ];
82
+
83
+ function append() {
84
+ $state.data = [...$state.data, ...buildData(1000)];
85
+ }
86
+
87
+ function clear() {
88
+ $state.data = [];
89
+ }
90
+
91
+ function partialUpdate() {
92
+ for (let i = 0; i < $state.data.length; i += 10) {
93
+ const row = $state.data[i];
94
+ row.label = row.label + " !!!";
95
+ }
96
+ }
97
+
98
+ function remove(row: Item) {
99
+ const clone = $state.data.slice();
100
+ clone.splice(clone.indexOf(row), 1);
101
+ $state.data = clone;
102
+ }
103
+
104
+ function create() {
105
+ // TODO: Build this up to 1000:
106
+ $state.data = buildData(10);
107
+ }
108
+
109
+ function createLots() {
110
+ $state.data = buildData(10000);
111
+ }
112
+
113
+ function swapRows() {
114
+ if ($state.data.length > 998) {
115
+ const clone = $state.data.slice();
116
+ const tmp = clone[1];
117
+ clone[1] = clone[998];
118
+ clone[998] = tmp;
119
+ $state.data = clone;
120
+ }
121
+ }
122
+
123
+ function _random(max: number) {
124
+ return Math.round(Math.random() * 1000) % max;
125
+ }
126
+
127
+ class Item {
128
+ id = rowId++;
129
+ label = `${adjectives[_random(adjectives.length)]} ${colours[_random(colours.length)]} ${nouns[_random(nouns.length)]}`;
130
+ }
131
+
132
+ function buildData(length = 1000) {
133
+ const data: Item[] = Array.from({ length })
134
+ for (let i = 0; i < length; i++) {
135
+ data[i] = $watch(new Item());
136
+ }
137
+ return data;
138
+ }
139
+
140
+ /* User interface */
141
+ const t_fragments: DocumentFragment[] = [];
142
+
143
+ const t_fragment_0 = t_fragment($parent.ownerDocument!, t_fragments, 0, ` <div id="main" class="container"> <div class="jumbotron"> <div class="row"> <div class="col-md-6"> <h1>Torpor (keyed)</h1> </div> <div class="col-md-6"> <div class="row"> <div class="col-sm-6 smallpad"> <button type="button" class="btn btn-primary btn-block" id="create">Create 1,000 rows</button> </div> <div class="col-sm-6 smallpad"> <button type="button" class="btn btn-primary btn-block" id="createlots"> Create 10,000 rows </button> </div> <div class="col-sm-6 smallpad"> <button type="button" class="btn btn-primary btn-block" id="append"> Append 1,000 rows </button> </div> <div class="col-sm-6 smallpad"> <button type="button" class="btn btn-primary btn-block" id="update"> Update every 10th row </button> </div> <div class="col-sm-6 smallpad"> <button type="button" class="btn btn-primary btn-block" id="clear">Clear</button> </div> <div class="col-sm-6 smallpad"> <button type="button" class="btn btn-primary btn-block" id="swaprows">Swap Rows</button> </div> </div> </div> </div> </div> <table class="table table-hover table-striped test-data"> <tbody> <!> </tbody> </table> <span class="preloadicon glyphicon glyphicon-remove" aria-hidden="true"></span> </div> `);
144
+ const t_root_0 = t_root(t_fragment_0, true);
145
+ const t_button_1 = t_next(t_child(t_next(t_child(t_next(t_child(t_next(t_next(t_next(t_child(t_next(t_child(t_next(t_child(t_next(t_root_0))))))), true)))))))) as HTMLButtonElement;
146
+ const t_button_2 = t_next(t_child(t_next(t_next(t_next(t_child(t_next(t_child(t_next(t_next(t_next(t_child(t_next(t_child(t_next(t_child(t_next(t_root_0))))))), true)))))), true)))) as HTMLButtonElement;
147
+ const t_button_3 = t_next(t_child(t_next(t_next(t_next(t_next(t_next(t_child(t_next(t_child(t_next(t_next(t_next(t_child(t_next(t_child(t_next(t_child(t_next(t_root_0))))))), true)))))), true)), true)))) as HTMLButtonElement;
148
+ const t_button_4 = t_next(t_child(t_next(t_next(t_next(t_next(t_next(t_next(t_next(t_child(t_next(t_child(t_next(t_next(t_next(t_child(t_next(t_child(t_next(t_child(t_next(t_root_0))))))), true)))))), true)), true)), true)))) as HTMLButtonElement;
149
+ const t_button_5 = t_next(t_child(t_next(t_next(t_next(t_next(t_next(t_next(t_next(t_next(t_next(t_child(t_next(t_child(t_next(t_next(t_next(t_child(t_next(t_child(t_next(t_child(t_next(t_root_0))))))), true)))))), true)), true)), true)), true)))) as HTMLButtonElement;
150
+ const t_button_6 = t_next(t_child(t_next(t_next(t_next(t_next(t_next(t_next(t_next(t_next(t_next(t_next(t_next(t_child(t_next(t_child(t_next(t_next(t_next(t_child(t_next(t_child(t_next(t_child(t_next(t_root_0))))))), true)))))), true)), true)), true)), true)), true)))) as HTMLButtonElement;
151
+ const t_for_parent_1 = t_next(t_child(t_next(t_next(t_next(t_child(t_next(t_root_0))), true)))) as HTMLElement;
152
+ let t_for_anchor_1 = t_anchor(t_next(t_child(t_next(t_child(t_next(t_next(t_next(t_child(t_next(t_root_0))), true))))))) as HTMLElement;
153
+
154
+ /* @for */
155
+ let t_for_region_1 = t_region();
156
+ t_run_list(
157
+ t_for_region_1,
158
+ t_for_parent_1,
159
+ t_for_anchor_1,
160
+ () => {
161
+ let t_new_items_1: ListItem[] = [];
162
+ let t_previous_item_1 = t_for_region_1;
163
+ let t_next_item_1 = t_for_region_1.nextRegion;
164
+ for (let row of $state.data) {
165
+ let t_new_item_1 = t_list_item(
166
+ { row },
167
+ row.id,
168
+ );
169
+ t_new_item_1.previousRegion = t_previous_item_1;
170
+ t_previous_item_1.nextRegion = t_new_item_1;
171
+ t_previous_item_1 = t_new_item_1;
172
+ t_new_items_1.push(t_new_item_1);
173
+ }
174
+ t_for_region_1.nextRegion = t_next_item_1;
175
+ return t_new_items_1;
176
+ },
177
+ (t_item_1, t_before_1) => {
178
+ let t_old_region_1 = t_push_region(t_item_1);
179
+ const t_fragment_1 = t_fragment($parent.ownerDocument!, t_fragments, 1, ` <tr> <td class="col-md-1">#</td> <td class="col-md-4"> <a>#</a> </td> <td class="col-md-1"> <a> <span class="glyphicon glyphicon-remove" aria-hidden="true"></span> </a> </td> <td class="col-md-6"></td> </tr> `);
180
+ const t_root_1 = t_root(t_fragment_1, true);
181
+ const t_tr_1 = t_next(t_root_1) as HTMLElement;
182
+ const t_text_1 = t_child(t_next(t_child(t_tr_1)));
183
+ const t_a_1 = t_next(t_child(t_next(t_next(t_next(t_child(t_tr_1)), true)))) as HTMLAnchorElement;
184
+ const t_text_2 = t_child(t_a_1);
185
+ const t_a_2 = t_next(t_child(t_next(t_next(t_next(t_next(t_next(t_child(t_tr_1)), true)), true)))) as HTMLAnchorElement;
186
+ const t_text_3 = t_next(t_tr_1, true);
187
+ t_event(t_a_1, "click", () => $state.selected = t_item_1.data.row.id);
188
+ t_event(t_a_2, "click", () => remove(t_item_1.data.row));
189
+ $run(() => {
190
+ t_tr_1.className = t_class({ danger: $state.selected === t_item_1.data.row.id });
191
+ t_text_1.textContent = t_fmt(t_item_1.data.row.id);
192
+ t_text_2.textContent = ` ${t_fmt(t_item_1.data.row.label)} `;
193
+ });
194
+ t_add_fragment(t_fragment_1, t_for_parent_1, t_before_1, t_text_3);
195
+ t_next(t_text_3);
196
+ t_pop_region(t_old_region_1);
197
+ },
198
+ (t_old_item, t_new_item) => {
199
+ t_old_item.data.row = t_new_item.data.row;
200
+ }
201
+ );
202
+
203
+ const t_text_4 = t_next(t_next(t_root_0), true);
204
+ t_event(t_button_1, "click", create);
205
+ t_event(t_button_2, "click", createLots);
206
+ t_event(t_button_3, "click", append);
207
+ t_event(t_button_4, "click", partialUpdate);
208
+ t_event(t_button_5, "click", clear);
209
+ t_event(t_button_6, "click", swapRows);
210
+ t_add_fragment(t_fragment_0, $parent, $anchor, t_text_4);
211
+ t_next(t_text_4);
212
+
213
+ /**/ });
214
+ }
@@ -1,21 +1,21 @@
1
- import t_class from "../../../../src/render/buildClasses";
2
- import t_fmt from "../../../../src/render/formatText";
3
1
  import $watch from "../../../../src/ssr/$serverWatch";
4
2
  import type ServerSlotRender from "../../../../src/types/ServerSlotRender";
3
+ import t_class from "../../../../src/render/buildClasses";
4
+ import t_fmt from "../../../../src/render/formatText";
5
5
 
6
6
  export default function Bench(
7
7
  // @ts-ignore
8
- $props: Record<PropertyKey, any> | undefined,
8
+ $props?: Record<PropertyKey, any>,
9
9
  // @ts-ignore
10
- $context: Record<PropertyKey, any>,
10
+ $context?: Record<PropertyKey, any>,
11
11
  // @ts-ignore
12
- $slots?: Record<string, ServerSlotRender>,
13
- ): { body: string; head: string } {
12
+ $slots?: Record<string, ServerSlotRender>
13
+ ): { body: string, head: string } {
14
14
  let t_body = "";
15
15
  let t_head = "";
16
16
 
17
17
  let rowId = 1;
18
- let $state = $watch({
18
+ let $state: { data: Item[], selected: number | null } = $watch({
19
19
  data: [],
20
20
  selected: null,
21
21
  });
@@ -47,19 +47,7 @@ export default function Bench(
47
47
  "expensive",
48
48
  "fancy",
49
49
  ];
50
- const colours = [
51
- "red",
52
- "yellow",
53
- "blue",
54
- "green",
55
- "pink",
56
- "brown",
57
- "purple",
58
- "brown",
59
- "white",
60
- "black",
61
- "orange",
62
- ];
50
+ const colours = ["red", "yellow", "blue", "green", "pink", "brown", "purple", "brown", "white", "black", "orange"];
63
51
  const nouns = [
64
52
  "table",
65
53
  "chair",
@@ -91,7 +79,7 @@ export default function Bench(
91
79
  }
92
80
  }
93
81
 
94
- function remove(row) {
82
+ function remove(row: Item) {
95
83
  const clone = $state.data.slice();
96
84
  clone.splice(clone.indexOf(row), 1);
97
85
  $state.data = clone;
@@ -116,7 +104,7 @@ export default function Bench(
116
104
  }
117
105
  }
118
106
 
119
- function _random(max) {
107
+ function _random(max: number) {
120
108
  return Math.round(Math.random() * 1000) % max;
121
109
  }
122
110
 
@@ -126,7 +114,7 @@ export default function Bench(
126
114
  }
127
115
 
128
116
  function buildData(length = 1000) {
129
- const data = Array.from({ length });
117
+ const data: Item[] = Array.from({ length })
130
118
  for (let i = 0; i < length; i++) {
131
119
  data[i] = $watch(new Item());
132
120
  }
@@ -15,7 +15,7 @@ export default function BindComponent() {
15
15
  }
16
16
  }
17
17
 
18
- function BindText($props: any) {
18
+ function BindText() {
19
19
  @render {
20
20
  <input &value={$props.name} />
21
21
  }
@@ -15,9 +15,9 @@ export default function BindComponent(
15
15
  $parent: ParentNode,
16
16
  $anchor: Node | null,
17
17
  // @ts-ignore
18
- $props: Record<PropertyKey, any> | undefined,
18
+ $props?: Record<PropertyKey, any>,
19
19
  // @ts-ignore
20
- $context: Record<PropertyKey, any>,
20
+ $context?: Record<PropertyKey, any>,
21
21
  // @ts-ignore
22
22
  $slots?: Record<string, SlotRender>
23
23
  ): void {
@@ -58,9 +58,9 @@ export default function BindComponent(
58
58
  function BindText(
59
59
  $parent: ParentNode,
60
60
  $anchor: Node | null,
61
- $props: any,
61
+ $props: Record<PropertyKey, any>,
62
62
  // @ts-ignore
63
- $context: Record<PropertyKey, any>,
63
+ $context?: Record<PropertyKey, any>,
64
64
  // @ts-ignore
65
65
  $slots?: Record<string, SlotRender>
66
66
  ): void {
@@ -5,9 +5,9 @@ import t_fmt from "../../../../src/render/formatText";
5
5
 
6
6
  export default function BindComponent(
7
7
  // @ts-ignore
8
- $props: Record<PropertyKey, any> | undefined,
8
+ $props?: Record<PropertyKey, any>,
9
9
  // @ts-ignore
10
- $context: Record<PropertyKey, any>,
10
+ $context?: Record<PropertyKey, any>,
11
11
  // @ts-ignore
12
12
  $slots?: Record<string, ServerSlotRender>
13
13
  ): { body: string, head: string } {
@@ -18,9 +18,9 @@ export default function BindComponent(
18
18
 
19
19
  /* User interface */
20
20
  t_body += ` <![>`;
21
- const t_props_1: any = {};
22
- t_props_1["&name"] = $state.name;
23
-
21
+ const t_props_1 = {
22
+ name: $state.name,
23
+ };
24
24
  const t_comp_1 = BindText(t_props_1, $context);
25
25
  t_body += t_comp_1.body;
26
26
  t_head += t_comp_1.head;
@@ -30,9 +30,9 @@ export default function BindComponent(
30
30
  }
31
31
 
32
32
  function BindText(
33
- $props: any,
33
+ $props: Record<PropertyKey, any>,
34
34
  // @ts-ignore
35
- $context: Record<PropertyKey, any>,
35
+ $context?: Record<PropertyKey, any>,
36
36
  // @ts-ignore
37
37
  $slots?: Record<string, ServerSlotRender>
38
38
  ): { body: string, head: string } {
@@ -14,9 +14,9 @@ export default function BindText(
14
14
  $parent: ParentNode,
15
15
  $anchor: Node | null,
16
16
  // @ts-ignore
17
- $props: Record<PropertyKey, any> | undefined,
17
+ $props?: Record<PropertyKey, any>,
18
18
  // @ts-ignore
19
- $context: Record<PropertyKey, any>,
19
+ $context?: Record<PropertyKey, any>,
20
20
  // @ts-ignore
21
21
  $slots?: Record<string, SlotRender>
22
22
  ): void {
@@ -30,7 +30,7 @@ export default function BindText(
30
30
  const t_fragment_0 = t_fragment($parent.ownerDocument!, t_fragments, 0, ` <input></input> <select> <option value=0>First</option> <option value=1>Second</option> <option value=2>Third</option> </select> <p>#</p> <p>#</p> `);
31
31
  const t_root_0 = t_root(t_fragment_0, true);
32
32
  const t_input_1 = t_next(t_root_0) as HTMLInputElement;
33
- const t_select_1 = t_next(t_next(t_input_1, true)) as HTMLElement;
33
+ const t_select_1 = t_next(t_next(t_input_1, true)) as HTMLSelectElement;
34
34
  const t_text_1 = t_child(t_next(t_next(t_select_1, true)));
35
35
  const t_text_2 = t_child(t_next(t_next(t_next(t_next(t_select_1, true)), true)));
36
36
  const t_text_3 = t_next(t_next(t_next(t_next(t_next(t_select_1, true)), true)), true);
@@ -5,9 +5,9 @@ import t_fmt from "../../../../src/render/formatText";
5
5
 
6
6
  export default function BindText(
7
7
  // @ts-ignore
8
- $props: Record<PropertyKey, any> | undefined,
8
+ $props?: Record<PropertyKey, any>,
9
9
  // @ts-ignore
10
- $context: Record<PropertyKey, any>,
10
+ $context?: Record<PropertyKey, any>,
11
11
  // @ts-ignore
12
12
  $slots?: Record<string, ServerSlotRender>
13
13
  ): { body: string, head: string } {
@@ -15,9 +15,9 @@ export default function BindComponent(
15
15
  $parent: ParentNode,
16
16
  $anchor: Node | null,
17
17
  // @ts-ignore
18
- $props: Record<PropertyKey, any> | undefined,
18
+ $props?: Record<PropertyKey, any>,
19
19
  // @ts-ignore
20
- $context: Record<PropertyKey, any>,
20
+ $context?: Record<PropertyKey, any>,
21
21
  // @ts-ignore
22
22
  $slots?: Record<string, SlotRender>
23
23
  ): void {
@@ -58,9 +58,9 @@ export default function BindComponent(
58
58
  function BindText(
59
59
  $parent: ParentNode,
60
60
  $anchor: Node | null,
61
- $props: any,
61
+ $props: Record<PropertyKey, any>,
62
62
  // @ts-ignore
63
- $context: Record<PropertyKey, any>,
63
+ $context?: Record<PropertyKey, any>,
64
64
  // @ts-ignore
65
65
  $slots?: Record<string, SlotRender>
66
66
  ): void {
@@ -5,9 +5,9 @@ import t_fmt from "../../../../src/render/formatText";
5
5
 
6
6
  export default function BindComponent(
7
7
  // @ts-ignore
8
- $props: Record<PropertyKey, any> | undefined,
8
+ $props?: Record<PropertyKey, any>,
9
9
  // @ts-ignore
10
- $context: Record<PropertyKey, any>,
10
+ $context?: Record<PropertyKey, any>,
11
11
  // @ts-ignore
12
12
  $slots?: Record<string, ServerSlotRender>
13
13
  ): { body: string, head: string } {
@@ -18,9 +18,9 @@ export default function BindComponent(
18
18
 
19
19
  /* User interface */
20
20
  t_body += ` <![>`;
21
- const t_props_1: any = {};
22
- t_props_1["&name"] = $state.name;
23
-
21
+ const t_props_1 = {
22
+ name: $state.name,
23
+ };
24
24
  const t_comp_1 = BindText(t_props_1, $context);
25
25
  t_body += t_comp_1.body;
26
26
  t_head += t_comp_1.head;
@@ -30,9 +30,9 @@ export default function BindComponent(
30
30
  }
31
31
 
32
32
  function BindText(
33
- $props: any,
33
+ $props: Record<PropertyKey, any>,
34
34
  // @ts-ignore
35
- $context: Record<PropertyKey, any>,
35
+ $context?: Record<PropertyKey, any>,
36
36
  // @ts-ignore
37
37
  $slots?: Record<string, ServerSlotRender>
38
38
  ): { body: string, head: string } {
@@ -14,9 +14,9 @@ export default function BindText(
14
14
  $parent: ParentNode,
15
15
  $anchor: Node | null,
16
16
  // @ts-ignore
17
- $props: Record<PropertyKey, any> | undefined,
17
+ $props?: Record<PropertyKey, any>,
18
18
  // @ts-ignore
19
- $context: Record<PropertyKey, any>,
19
+ $context?: Record<PropertyKey, any>,
20
20
  // @ts-ignore
21
21
  $slots?: Record<string, SlotRender>
22
22
  ): void {
@@ -30,7 +30,7 @@ export default function BindText(
30
30
  const t_fragment_0 = t_fragment($parent.ownerDocument!, t_fragments, 0, ` <input></input> <select> <option value=0>First</option> <option value=1>Second</option> <option value=2>Third</option> </select> <p>#</p> <p>#</p> `);
31
31
  const t_root_0 = t_root(t_fragment_0, true);
32
32
  const t_input_1 = t_next(t_root_0) as HTMLInputElement;
33
- const t_select_1 = t_next(t_next(t_input_1, true)) as HTMLElement;
33
+ const t_select_1 = t_next(t_next(t_input_1, true)) as HTMLSelectElement;
34
34
  const t_text_1 = t_child(t_next(t_next(t_select_1, true)));
35
35
  const t_text_2 = t_child(t_next(t_next(t_next(t_next(t_select_1, true)), true)));
36
36
  const t_text_3 = t_next(t_next(t_next(t_next(t_next(t_select_1, true)), true)), true);
@@ -5,9 +5,9 @@ import t_fmt from "../../../../src/render/formatText";
5
5
 
6
6
  export default function BindText(
7
7
  // @ts-ignore
8
- $props: Record<PropertyKey, any> | undefined,
8
+ $props?: Record<PropertyKey, any>,
9
9
  // @ts-ignore
10
- $context: Record<PropertyKey, any>,
10
+ $context?: Record<PropertyKey, any>,
11
11
  // @ts-ignore
12
12
  $slots?: Record<string, ServerSlotRender>
13
13
  ): { body: string, head: string } {