@torpor/view 0.4.7 → 0.4.9

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