taggedjs 2.8.44 → 3.0.2

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 (532) hide show
  1. package/bundle.js +1 -1
  2. package/bundle.js.map +1 -1
  3. package/js/TagJsEvent.type.d.ts +1 -5
  4. package/js/TagJsEvent.type.js +6 -0
  5. package/js/TagJsEvent.type.js.map +1 -1
  6. package/js/elements/designElement.function.d.ts +48 -0
  7. package/js/elements/designElement.function.js +77 -0
  8. package/js/elements/designElement.function.js.map +1 -0
  9. package/js/elements/destroyDesignElement.function.d.ts +4 -0
  10. package/js/elements/destroyDesignElement.function.js +53 -0
  11. package/js/elements/destroyDesignElement.function.js.map +1 -0
  12. package/js/elements/div.d.ts +4 -0
  13. package/js/elements/div.js +6 -0
  14. package/js/elements/div.js.map +1 -0
  15. package/js/elements/elementFunctions.d.ts +20 -0
  16. package/js/elements/elementFunctions.js +140 -0
  17. package/js/elements/elementFunctions.js.map +1 -0
  18. package/js/elements/index.d.ts +50 -0
  19. package/js/elements/index.js +55 -0
  20. package/js/elements/index.js.map +1 -0
  21. package/js/elements/noElement.function.d.ts +4 -0
  22. package/js/elements/noElement.function.js +53 -0
  23. package/js/elements/noElement.function.js.map +1 -0
  24. package/js/elements/processChildren.d.ts +5 -0
  25. package/js/elements/processChildren.function.d.ts +8 -0
  26. package/js/elements/processChildren.function.js +63 -0
  27. package/js/elements/processChildren.function.js.map +1 -0
  28. package/js/elements/processChildren.js +48 -0
  29. package/js/elements/processChildren.js.map +1 -0
  30. package/js/elements/processDesignElementInit.function.d.ts +3 -0
  31. package/js/elements/processDesignElementInit.function.js +19 -0
  32. package/js/elements/processDesignElementInit.function.js.map +1 -0
  33. package/js/elements/processDesignElementUpdate.function.d.ts +4 -0
  34. package/js/elements/processDesignElementUpdate.function.js +70 -0
  35. package/js/elements/processDesignElementUpdate.function.js.map +1 -0
  36. package/js/elements/processElementVar.d.ts +4 -0
  37. package/js/elements/processElementVar.function.d.ts +5 -0
  38. package/js/elements/processElementVar.function.js +63 -0
  39. package/js/elements/processElementVar.function.js.map +1 -0
  40. package/js/elements/processElementVar.js +78 -0
  41. package/js/elements/processElementVar.js.map +1 -0
  42. package/js/elements/processElementVarFunction.d.ts +3 -0
  43. package/js/elements/processElementVarFunction.function.d.ts +4 -0
  44. package/js/elements/processElementVarFunction.function.js +67 -0
  45. package/js/elements/processElementVarFunction.function.js.map +1 -0
  46. package/js/elements/processElementVarFunction.js +53 -0
  47. package/js/elements/processElementVarFunction.js.map +1 -0
  48. package/js/index.d.ts +5 -3
  49. package/js/index.js +4 -2
  50. package/js/index.js.map +1 -1
  51. package/js/interpolations/attributes/addSupportEventListener.function.d.ts +2 -1
  52. package/js/interpolations/attributes/addSupportEventListener.function.js +10 -23
  53. package/js/interpolations/attributes/addSupportEventListener.function.js.map +1 -1
  54. package/js/interpolations/attributes/bindSubjectCallback.function.d.ts +2 -2
  55. package/js/interpolations/attributes/bindSubjectCallback.function.js +10 -8
  56. package/js/interpolations/attributes/bindSubjectCallback.function.js.map +1 -1
  57. package/js/interpolations/attributes/bubbleEvent.function.d.ts +1 -0
  58. package/js/interpolations/attributes/bubbleEvent.function.js +22 -0
  59. package/js/interpolations/attributes/bubbleEvent.function.js.map +1 -0
  60. package/js/interpolations/attributes/checkToResolvePromise.function.d.ts +2 -3
  61. package/js/interpolations/attributes/checkToResolvePromise.function.js +7 -10
  62. package/js/interpolations/attributes/checkToResolvePromise.function.js.map +1 -1
  63. package/js/interpolations/attributes/getSupportWithState.function.d.ts +2 -1
  64. package/js/interpolations/attributes/getSupportWithState.function.js +15 -1
  65. package/js/interpolations/attributes/getSupportWithState.function.js.map +1 -1
  66. package/js/interpolations/attributes/getUpTags.function.js +11 -3
  67. package/js/interpolations/attributes/getUpTags.function.js.map +1 -1
  68. package/js/interpolations/attributes/howToSetInputValue.function.d.ts +5 -2
  69. package/js/interpolations/attributes/howToSetInputValue.function.js +49 -2
  70. package/js/interpolations/attributes/howToSetInputValue.function.js.map +1 -1
  71. package/js/interpolations/attributes/isSpecialAttribute.function.js +2 -0
  72. package/js/interpolations/attributes/isSpecialAttribute.function.js.map +1 -1
  73. package/js/interpolations/attributes/processAttributeCallback.function.d.ts +1 -1
  74. package/js/interpolations/attributes/processFunctionAttr.function.d.ts +6 -0
  75. package/js/interpolations/attributes/processFunctionAttr.function.js +65 -0
  76. package/js/interpolations/attributes/processFunctionAttr.function.js.map +1 -0
  77. package/js/interpolations/attributes/processNameValueAttribute.function.d.ts +4 -4
  78. package/js/interpolations/attributes/processNameValueAttribute.function.js +15 -8
  79. package/js/interpolations/attributes/processNameValueAttribute.function.js.map +1 -1
  80. package/js/interpolations/attributes/renderTagArray.function.d.ts +1 -1
  81. package/js/interpolations/attributes/renderTagArray.function.js +5 -2
  82. package/js/interpolations/attributes/renderTagArray.function.js.map +1 -1
  83. package/js/interpolations/attributes/specialAttribute.js +6 -5
  84. package/js/interpolations/attributes/specialAttribute.js.map +1 -1
  85. package/js/interpolations/attributes/updateAttribute.function.d.ts +1 -2
  86. package/js/interpolations/attributes/updateAttribute.function.js +2 -2
  87. package/js/interpolations/attributes/updateAttribute.function.js.map +1 -1
  88. package/js/interpolations/attributes/updateNameOnlyAttrValue.function.d.ts +4 -0
  89. package/js/interpolations/attributes/updateNameOnlyAttrValue.function.js +39 -0
  90. package/js/interpolations/attributes/updateNameOnlyAttrValue.function.js.map +1 -0
  91. package/js/interpolations/interpolateTemplate.d.ts +1 -1
  92. package/js/interpolations/optimizers/ObjectNode.types.d.ts +5 -8
  93. package/js/interpolations/optimizers/attachDynamicDom.function.d.ts +3 -5
  94. package/js/interpolations/optimizers/attachDynamicDom.function.js +10 -7
  95. package/js/interpolations/optimizers/attachDynamicDom.function.js.map +1 -1
  96. package/js/interpolations/optimizers/domProcessContextItem.function.d.ts +1 -3
  97. package/js/interpolations/optimizers/domProcessContextItem.function.js +8 -9
  98. package/js/interpolations/optimizers/domProcessContextItem.function.js.map +1 -1
  99. package/js/isInstance.d.ts +1 -1
  100. package/js/isInstance.js +2 -0
  101. package/js/isInstance.js.map +1 -1
  102. package/js/render/addOneContext.function.d.ts +4 -0
  103. package/js/render/addOneContext.function.js +26 -0
  104. package/js/render/addOneContext.function.js.map +1 -0
  105. package/js/render/afterRender.function.d.ts +5 -2
  106. package/js/render/afterRender.function.js +24 -8
  107. package/js/render/afterRender.function.js.map +1 -1
  108. package/js/render/attributes/createDynamicAttribute.function.d.ts +6 -6
  109. package/js/render/attributes/createDynamicAttribute.function.js +34 -12
  110. package/js/render/attributes/createDynamicAttribute.function.js.map +1 -1
  111. package/js/render/attributes/processAttribute.function.d.ts +9 -10
  112. package/js/render/attributes/processAttribute.function.js +55 -57
  113. package/js/render/attributes/processAttribute.function.js.map +1 -1
  114. package/js/render/attributes/processStandAloneAttribute.function.d.ts +5 -0
  115. package/js/render/attributes/processStandAloneAttribute.function.js +37 -0
  116. package/js/render/attributes/processStandAloneAttribute.function.js.map +1 -0
  117. package/js/render/attributes/processTagJsAttribute.function.d.ts +7 -0
  118. package/js/render/attributes/processTagJsAttribute.function.js +24 -0
  119. package/js/render/attributes/processTagJsAttribute.function.js.map +1 -0
  120. package/js/render/attributes/processTagJsVarAttribute.function.d.ts +6 -0
  121. package/js/render/attributes/processTagJsVarAttribute.function.js +19 -0
  122. package/js/render/attributes/processTagJsVarAttribute.function.js.map +1 -0
  123. package/js/render/attributes/processUpdateAttrContext.function.d.ts +3 -3
  124. package/js/render/attributes/processUpdateAttrContext.function.js +29 -9
  125. package/js/render/attributes/processUpdateAttrContext.function.js.map +1 -1
  126. package/js/render/buildBeforeElement.function.d.ts +2 -4
  127. package/js/render/buildBeforeElement.function.js +16 -22
  128. package/js/render/buildBeforeElement.function.js.map +1 -1
  129. package/js/render/callTag.d.ts +4 -0
  130. package/js/render/callTag.function.d.ts +4 -0
  131. package/js/render/callTag.function.js +25 -0
  132. package/js/render/callTag.function.js.map +1 -0
  133. package/js/render/callTag.js +26 -0
  134. package/js/render/callTag.js.map +1 -0
  135. package/js/render/checkRenderUp.d.ts +2 -0
  136. package/js/render/checkRenderUp.function.d.ts +5 -0
  137. package/js/render/checkRenderUp.function.js +39 -0
  138. package/js/render/checkRenderUp.function.js.map +1 -0
  139. package/js/render/checkRenderUp.js +14 -0
  140. package/js/render/checkRenderUp.js.map +1 -0
  141. package/js/render/destroySupport.function.d.ts +1 -1
  142. package/js/render/destroySupport.function.js +12 -7
  143. package/js/render/destroySupport.function.js.map +1 -1
  144. package/js/render/dom/attachDomElement.function.d.ts +4 -0
  145. package/js/render/dom/attachDomElement.function.js +17 -0
  146. package/js/render/dom/attachDomElement.function.js.map +1 -0
  147. package/js/render/dom/attachDomElements.function.d.ts +2 -4
  148. package/js/render/dom/attachDomElements.function.js +48 -36
  149. package/js/render/dom/attachDomElements.function.js.map +1 -1
  150. package/js/render/dom/blankHandler.function.d.ts +1 -0
  151. package/js/render/dom/blankHandler.function.js +4 -0
  152. package/js/render/dom/blankHandler.function.js.map +1 -0
  153. package/js/render/dom/processAttributeArray.function.d.ts +4 -0
  154. package/js/render/dom/processAttributeArray.function.js +24 -0
  155. package/js/render/dom/processAttributeArray.function.js.map +1 -0
  156. package/js/render/executeWrap.function.d.ts +1 -1
  157. package/js/render/executeWrap.function.js +8 -6
  158. package/js/render/executeWrap.function.js.map +1 -1
  159. package/js/render/paint.function.d.ts +15 -6
  160. package/js/render/paint.function.js +40 -34
  161. package/js/render/paint.function.js.map +1 -1
  162. package/js/render/registerNewTagElement.function.d.ts +4 -2
  163. package/js/render/registerNewTagElement.function.js +24 -6
  164. package/js/render/registerNewTagElement.function.js.map +1 -1
  165. package/js/render/renderExistingTag.function.d.ts +1 -1
  166. package/js/render/renderExistingTag.function.js +3 -4
  167. package/js/render/renderExistingTag.function.js.map +1 -1
  168. package/js/render/renderSupport.function.d.ts +1 -4
  169. package/js/render/renderSupport.function.js +4 -37
  170. package/js/render/renderSupport.function.js.map +1 -1
  171. package/js/render/renderTagElement.function.d.ts +3 -3
  172. package/js/render/renderTagElement.function.js +48 -45
  173. package/js/render/renderTagElement.function.js.map +1 -1
  174. package/js/render/renderTagOnly.function.d.ts +7 -3
  175. package/js/render/renderTagOnly.function.js +31 -33
  176. package/js/render/renderTagOnly.function.js.map +1 -1
  177. package/js/render/renderWithSupport.function.d.ts +2 -2
  178. package/js/render/renderWithSupport.function.js +18 -7
  179. package/js/render/renderWithSupport.function.js.map +1 -1
  180. package/js/render/runAfterRender.function.d.ts +9 -0
  181. package/js/render/runAfterRender.function.js +37 -0
  182. package/js/render/runAfterRender.function.js.map +1 -0
  183. package/js/render/softDestroySupport.function.d.ts +1 -1
  184. package/js/render/softDestroySupport.function.js +11 -10
  185. package/js/render/softDestroySupport.function.js.map +1 -1
  186. package/js/render/update/processRenderOnceInit.function.d.ts +2 -3
  187. package/js/render/update/processRenderOnceInit.function.js +4 -4
  188. package/js/render/update/processRenderOnceInit.function.js.map +1 -1
  189. package/js/render/update/processTag.function.d.ts +2 -4
  190. package/js/render/update/processTag.function.js +12 -9
  191. package/js/render/update/processTag.function.js.map +1 -1
  192. package/js/render/update/updateExistingTagComponent.function.d.ts +1 -1
  193. package/js/render/update/updateExistingTagComponent.function.js +8 -8
  194. package/js/render/update/updateExistingTagComponent.function.js.map +1 -1
  195. package/js/render/update/updateSupportBy.function.d.ts +1 -2
  196. package/js/render/update/updateSupportBy.function.js +3 -4
  197. package/js/render/update/updateSupportBy.function.js.map +1 -1
  198. package/js/state/StateMemory.type.d.ts +5 -2
  199. package/js/state/array.function.js +1 -1
  200. package/js/state/array.function.js.map +1 -1
  201. package/js/state/callback.function.d.ts +7 -4
  202. package/js/state/callback.function.js +19 -16
  203. package/js/state/callback.function.js.map +1 -1
  204. package/js/state/callbackMaker.function.js +5 -4
  205. package/js/state/callbackMaker.function.js.map +1 -1
  206. package/js/state/callbackStateUpdate.function.d.ts +2 -2
  207. package/js/state/callbackStateUpdate.function.js +24 -6
  208. package/js/state/callbackStateUpdate.function.js.map +1 -1
  209. package/js/state/handleProviderChanges.function.d.ts +1 -1
  210. package/js/state/handleProviderChanges.function.js.map +1 -1
  211. package/js/state/index.d.ts +2 -2
  212. package/js/state/index.js +2 -2
  213. package/js/state/index.js.map +1 -1
  214. package/js/state/onDestroy.function.d.ts +3 -0
  215. package/js/state/onDestroy.function.js +11 -0
  216. package/js/state/onDestroy.function.js.map +1 -0
  217. package/js/state/onDestroy.js +1 -1
  218. package/js/state/onDestroy.js.map +1 -1
  219. package/js/state/onInit.function.d.ts +4 -0
  220. package/js/state/onInit.function.js +24 -0
  221. package/js/state/onInit.function.js.map +1 -0
  222. package/js/state/onInit.js +1 -1
  223. package/js/state/onInit.js.map +1 -1
  224. package/js/state/onRender.function.d.ts +1 -0
  225. package/js/state/onRender.function.js +22 -0
  226. package/js/state/onRender.function.js.map +1 -0
  227. package/js/state/providers.d.ts +1 -1
  228. package/js/state/providers.js +11 -9
  229. package/js/state/providers.js.map +1 -1
  230. package/js/state/providersChangeCheck.function.d.ts +2 -1
  231. package/js/state/providersChangeCheck.function.js +3 -2
  232. package/js/state/providersChangeCheck.function.js.map +1 -1
  233. package/js/state/reState.d.ts +2 -0
  234. package/js/state/reState.function.d.ts +5 -0
  235. package/js/state/reState.function.js +28 -0
  236. package/js/state/reState.function.js.map +1 -0
  237. package/js/state/reState.js +8 -0
  238. package/js/state/reState.js.map +1 -0
  239. package/js/state/setUse.function.d.ts +1 -1
  240. package/js/state/setUseMemory.object.js +1 -1
  241. package/js/state/setUseMemory.object.js.map +1 -1
  242. package/js/state/signal.function.d.ts +1 -1
  243. package/js/state/signal.function.js +9 -5
  244. package/js/state/signal.function.js.map +1 -1
  245. package/js/state/state.utils.d.ts +4 -4
  246. package/js/state/state.utils.js +10 -19
  247. package/js/state/state.utils.js.map +1 -1
  248. package/js/state/stateHandlers.js +12 -3
  249. package/js/state/stateHandlers.js.map +1 -1
  250. package/js/state/states.utils.js +7 -1
  251. package/js/state/states.utils.js.map +1 -1
  252. package/js/state/subject.function.d.ts +7 -6
  253. package/js/state/subject.function.js +13 -5
  254. package/js/state/subject.function.js.map +1 -1
  255. package/js/state/syncStates.function.d.ts +1 -1
  256. package/js/state/syncStates.function.js +5 -1
  257. package/js/state/syncStates.function.js.map +1 -1
  258. package/js/state/tagClosed$.subject.d.ts +1 -1
  259. package/js/state/tagClosed$.subject.js +1 -1
  260. package/js/state/tagClosed$.subject.js.map +1 -1
  261. package/js/state/watch.function.d.ts +6 -5
  262. package/js/state/watch.function.js +63 -38
  263. package/js/state/watch.function.js.map +1 -1
  264. package/js/subject/Subject.class.d.ts +17 -16
  265. package/js/subject/Subject.class.js +17 -14
  266. package/js/subject/Subject.class.js.map +1 -1
  267. package/js/tag/AnySupport.type.d.ts +5 -7
  268. package/js/tag/AttributeContextItem.type.d.ts +16 -0
  269. package/js/tag/AttributeContextItem.type.js +2 -0
  270. package/js/tag/AttributeContextItem.type.js.map +1 -0
  271. package/js/tag/Context.types.d.ts +5 -5
  272. package/js/tag/ContextItem.type.d.ts +31 -16
  273. package/js/tag/ContextStateMeta.type.d.ts +13 -0
  274. package/js/tag/ContextStateMeta.type.js +2 -0
  275. package/js/tag/ContextStateMeta.type.js.map +1 -0
  276. package/js/tag/ProcessInit.type.d.ts +8 -3
  277. package/js/tag/ProcessUpdate.type.d.ts +3 -3
  278. package/js/tag/SupportContextItem.type.d.ts +18 -2
  279. package/js/tag/Tag.type.d.ts +1 -1
  280. package/js/tag/TagMaker.type.d.ts +1 -1
  281. package/js/tag/checkDestroyPrevious.function.d.ts +1 -3
  282. package/js/tag/checkDestroyPrevious.function.js +3 -13
  283. package/js/tag/checkDestroyPrevious.function.js.map +1 -1
  284. package/js/tag/checkStateMismatch.function.d.ts +1 -1
  285. package/js/tag/checkStateMismatch.function.js +3 -3
  286. package/js/tag/checkStateMismatch.function.js.map +1 -1
  287. package/js/tag/checkTagValueChange.function.d.ts +4 -5
  288. package/js/tag/checkTagValueChange.function.js +89 -15
  289. package/js/tag/checkTagValueChange.function.js.map +1 -1
  290. package/js/tag/createHtmlSupport.function.d.ts +6 -5
  291. package/js/tag/createHtmlSupport.function.js +12 -9
  292. package/js/tag/createHtmlSupport.function.js.map +1 -1
  293. package/js/tag/createSupport.function.d.ts +3 -2
  294. package/js/tag/createSupport.function.js +4 -2
  295. package/js/tag/createSupport.function.js.map +1 -1
  296. package/js/tag/cycles/getSupportInCycle.function.d.ts +3 -0
  297. package/js/tag/cycles/getSupportInCycle.function.js +10 -0
  298. package/js/tag/cycles/getSupportInCycle.function.js.map +1 -0
  299. package/js/tag/cycles/index.d.ts +1 -0
  300. package/js/tag/cycles/index.js +2 -0
  301. package/js/tag/cycles/index.js.map +1 -0
  302. package/js/tag/cycles/setContextInCycle.function.d.ts +7 -0
  303. package/js/tag/cycles/setContextInCycle.function.js +19 -0
  304. package/js/tag/cycles/setContextInCycle.function.js.map +1 -0
  305. package/js/tag/destroyArrayContext.function.d.ts +4 -0
  306. package/js/tag/destroyArrayContext.function.js +14 -0
  307. package/js/tag/destroyArrayContext.function.js.map +1 -0
  308. package/js/tag/destroyContext.function.d.ts +1 -1
  309. package/js/tag/destroyContext.function.js +5 -4
  310. package/js/tag/destroyContext.function.js.map +1 -1
  311. package/js/tag/destroyContexts.function.d.ts +9 -0
  312. package/js/tag/destroyContexts.function.js +61 -0
  313. package/js/tag/destroyContexts.function.js.map +1 -0
  314. package/js/tag/destroyHtmlDomMeta.function.d.ts +3 -0
  315. package/js/tag/destroyHtmlDomMeta.function.js +19 -0
  316. package/js/tag/destroyHtmlDomMeta.function.js.map +1 -0
  317. package/js/tag/destroySupportByContextItem.function.d.ts +2 -0
  318. package/js/tag/destroySupportByContextItem.function.js +19 -0
  319. package/js/tag/destroySupportByContextItem.function.js.map +1 -0
  320. package/js/tag/domMetaCollector.d.ts +1 -1
  321. package/js/tag/domMetaCollector.js +1 -1
  322. package/js/tag/domMetaCollector.js.map +1 -1
  323. package/js/tag/getDomTag.function.js +7 -4
  324. package/js/tag/getDomTag.function.js.map +1 -1
  325. package/js/tag/getTagWrap.function.d.ts +1 -1
  326. package/js/tag/getTagWrap.function.js +2 -2
  327. package/js/tag/getTagWrap.function.js.map +1 -1
  328. package/js/tag/getTemplaterResult.function.d.ts +7 -20
  329. package/js/tag/getTemplaterResult.function.js +14 -3
  330. package/js/tag/getTemplaterResult.function.js.map +1 -1
  331. package/js/tag/hasPropChanges.function.js +3 -2
  332. package/js/tag/hasPropChanges.function.js.map +1 -1
  333. package/js/tag/hasSupportChanged.function.d.ts +2 -3
  334. package/js/tag/hasSupportChanged.function.js +0 -43
  335. package/js/tag/hasSupportChanged.function.js.map +1 -1
  336. package/js/tag/html.d.ts +3 -3
  337. package/js/tag/html.js.map +1 -1
  338. package/js/tag/index.d.ts +2 -3
  339. package/js/tag/index.js +1 -1
  340. package/js/tag/index.js.map +1 -1
  341. package/js/tag/isLikeTags.function.d.ts +1 -1
  342. package/js/tag/loadNewBaseSupport.function.d.ts +1 -1
  343. package/js/tag/loadNewBaseSupport.function.js +6 -3
  344. package/js/tag/loadNewBaseSupport.function.js.map +1 -1
  345. package/js/tag/output.function.d.ts +2 -2
  346. package/js/tag/output.function.js +31 -14
  347. package/js/tag/output.function.js.map +1 -1
  348. package/js/tag/processOuterDomTagInit.function.d.ts +4 -3
  349. package/js/tag/processOuterDomTagInit.function.js +22 -16
  350. package/js/tag/processOuterDomTagInit.function.js.map +1 -1
  351. package/js/tag/processUpdateContext.function.d.ts +1 -1
  352. package/js/tag/processUpdateContext.function.js +16 -11
  353. package/js/tag/processUpdateContext.function.js.map +1 -1
  354. package/js/tag/props/alterProp.function.d.ts +9 -7
  355. package/js/tag/props/alterProp.function.js +53 -26
  356. package/js/tag/props/alterProp.function.js.map +1 -1
  357. package/js/tag/props/clonePropsBy.function.d.ts +1 -1
  358. package/js/tag/props/safeRenderSupport.function.d.ts +1 -1
  359. package/js/tag/shallowPropMatch.function.d.ts +2 -0
  360. package/js/tag/shallowPropMatch.function.js +44 -0
  361. package/js/tag/shallowPropMatch.function.js.map +1 -0
  362. package/js/tag/smartRemoveKids.function.d.ts +4 -2
  363. package/js/tag/smartRemoveKids.function.js +28 -47
  364. package/js/tag/smartRemoveKids.function.js.map +1 -1
  365. package/js/tag/tag.types.d.ts +8 -4
  366. package/js/tag/tag.types.js.map +1 -1
  367. package/js/tag/tagElement.d.ts +4 -4
  368. package/js/tag/tagElement.js +30 -13
  369. package/js/tag/tagElement.js.map +1 -1
  370. package/js/tag/tagRunner.d.ts +1 -1
  371. package/js/tag/tagRunner.js +3 -4
  372. package/js/tag/tagRunner.js.map +1 -1
  373. package/js/tag/update/SubContext.type.d.ts +18 -8
  374. package/js/tag/update/arrays/compareArrayItems.function.d.ts +7 -0
  375. package/js/tag/update/arrays/compareArrayItems.function.js +39 -0
  376. package/js/tag/update/arrays/compareArrayItems.function.js.map +1 -0
  377. package/js/tag/update/arrays/processTagArray.d.ts +7 -0
  378. package/js/tag/update/arrays/processTagArray.js +81 -0
  379. package/js/tag/update/arrays/processTagArray.js.map +1 -0
  380. package/js/tag/update/checkStillSubscription.function.d.ts +4 -0
  381. package/js/tag/update/checkStillSubscription.function.js +16 -0
  382. package/js/tag/update/checkStillSubscription.function.js.map +1 -0
  383. package/js/tag/update/checkSubContext.function.d.ts +7 -2
  384. package/js/tag/update/checkSubContext.function.js +36 -9
  385. package/js/tag/update/checkSubContext.function.js.map +1 -1
  386. package/js/tag/update/compareArrayItems.function.d.ts +1 -1
  387. package/js/tag/update/compareArrayItems.function.js +7 -10
  388. package/js/tag/update/compareArrayItems.function.js.map +1 -1
  389. package/js/tag/update/convertTagToElementManaged.d.ts +2 -0
  390. package/js/tag/update/convertTagToElementManaged.function.d.ts +2 -0
  391. package/js/tag/update/convertTagToElementManaged.function.js +37 -0
  392. package/js/tag/update/convertTagToElementManaged.function.js.map +1 -0
  393. package/js/tag/update/convertTagToElementManaged.js +32 -0
  394. package/js/tag/update/convertTagToElementManaged.js.map +1 -0
  395. package/js/tag/update/createAndProcessContextItem.function.d.ts +4 -6
  396. package/js/tag/update/createAndProcessContextItem.function.js +9 -14
  397. package/js/tag/update/createAndProcessContextItem.function.js.map +1 -1
  398. package/js/tag/update/deleteContextSubContext.function.d.ts +5 -0
  399. package/js/tag/update/deleteContextSubContext.function.js +25 -0
  400. package/js/tag/update/deleteContextSubContext.function.js.map +1 -0
  401. package/js/tag/update/deleteSubContext.function.js +1 -4
  402. package/js/tag/update/deleteSubContext.function.js.map +1 -1
  403. package/js/tag/update/forceUpdateExistingValue.function.d.ts +4 -5
  404. package/js/tag/update/forceUpdateExistingValue.function.js +6 -5
  405. package/js/tag/update/forceUpdateExistingValue.function.js.map +1 -1
  406. package/js/tag/update/getNewGlobal.function.d.ts +4 -3
  407. package/js/tag/update/getNewGlobal.function.js +13 -2
  408. package/js/tag/update/getNewGlobal.function.js.map +1 -1
  409. package/js/tag/update/getOverrideTagVar.d.ts +5 -0
  410. package/js/tag/update/getOverrideTagVar.js +65 -0
  411. package/js/tag/update/getOverrideTagVar.js.map +1 -0
  412. package/js/tag/update/handleStillTag.function.d.ts +1 -1
  413. package/js/tag/update/handleStillTag.function.js +2 -3
  414. package/js/tag/update/handleStillTag.function.js.map +1 -1
  415. package/js/tag/update/handleTagTypeChangeFrom.d.ts +5 -0
  416. package/js/tag/update/handleTagTypeChangeFrom.function.d.ts +5 -0
  417. package/js/tag/update/handleTagTypeChangeFrom.function.js +13 -0
  418. package/js/tag/update/handleTagTypeChangeFrom.function.js.map +1 -0
  419. package/js/tag/update/handleTagTypeChangeFrom.js +13 -0
  420. package/js/tag/update/handleTagTypeChangeFrom.js.map +1 -0
  421. package/js/tag/update/index.d.ts +2 -2
  422. package/js/tag/update/index.js +2 -2
  423. package/js/tag/update/index.js.map +1 -1
  424. package/js/tag/update/onFirstSubContext.function.d.ts +1 -3
  425. package/js/tag/update/onFirstSubContext.function.js +1 -2
  426. package/js/tag/update/onFirstSubContext.function.js.map +1 -1
  427. package/js/tag/update/oneRenderToSupport.function.d.ts +1 -1
  428. package/js/tag/update/processDomTagInit.function.d.ts +2 -3
  429. package/js/tag/update/processDomTagInit.function.js +6 -5
  430. package/js/tag/update/processDomTagInit.function.js.map +1 -1
  431. package/js/tag/update/processFirstSubjectComponent.function.d.ts +7 -4
  432. package/js/tag/update/processFirstSubjectComponent.function.js +53 -17
  433. package/js/tag/update/processFirstSubjectComponent.function.js.map +1 -1
  434. package/js/tag/update/processFirstSubjectValue.function.d.ts +4 -6
  435. package/js/tag/update/processFirstSubjectValue.function.js +3 -6
  436. package/js/tag/update/processFirstSubjectValue.function.js.map +1 -1
  437. package/js/tag/update/processNewSubjectTag.function.d.ts +2 -3
  438. package/js/tag/update/processNewSubjectTag.function.js +5 -5
  439. package/js/tag/update/processNewSubjectTag.function.js.map +1 -1
  440. package/js/tag/update/processRegularValue.function.js +2 -1
  441. package/js/tag/update/processRegularValue.function.js.map +1 -1
  442. package/js/tag/update/processSignal.function.d.ts +4 -0
  443. package/js/tag/update/processSignal.function.js +11 -0
  444. package/js/tag/update/processSignal.function.js.map +1 -0
  445. package/js/tag/update/processSubscribe.function.d.ts +3 -2
  446. package/js/tag/update/processSubscribe.function.js +16 -10
  447. package/js/tag/update/processSubscribe.function.js.map +1 -1
  448. package/js/tag/update/processSubscribeWith.function.d.ts +6 -0
  449. package/js/tag/update/processSubscribeWith.function.js +26 -0
  450. package/js/tag/update/processSubscribeWith.function.js.map +1 -0
  451. package/js/tag/update/processTagArray.d.ts +3 -4
  452. package/js/tag/update/processTagArray.js +14 -14
  453. package/js/tag/update/processTagArray.js.map +1 -1
  454. package/js/tag/update/processTagComponentInit.function.d.ts +2 -3
  455. package/js/tag/update/processTagComponentInit.function.js +3 -5
  456. package/js/tag/update/processTagComponentInit.function.js.map +1 -1
  457. package/js/tag/update/processTagInit.function.d.ts +2 -3
  458. package/js/tag/update/processTagInit.function.js +4 -3
  459. package/js/tag/update/processTagInit.function.js.map +1 -1
  460. package/js/tag/update/processTagResult.function.d.ts +2 -3
  461. package/js/tag/update/processTagResult.function.js +2 -2
  462. package/js/tag/update/processTagResult.function.js.map +1 -1
  463. package/js/tag/update/processUpdateSubscribe.d.ts +4 -0
  464. package/js/tag/update/processUpdateSubscribe.function.d.ts +2 -0
  465. package/js/tag/update/processUpdateSubscribe.function.js +22 -0
  466. package/js/tag/update/processUpdateSubscribe.function.js.map +1 -0
  467. package/js/tag/update/processUpdateSubscribe.js +15 -0
  468. package/js/tag/update/processUpdateSubscribe.js.map +1 -0
  469. package/js/tag/update/setupSubscribe.function.d.ts +10 -8
  470. package/js/tag/update/setupSubscribe.function.js +66 -39
  471. package/js/tag/update/setupSubscribe.function.js.map +1 -1
  472. package/js/tag/update/syncPriorPropFunction.function.d.ts +1 -1
  473. package/js/tag/update/tagValueUpdateHandler.function.d.ts +2 -3
  474. package/js/tag/update/tagValueUpdateHandler.function.js +12 -3
  475. package/js/tag/update/tagValueUpdateHandler.function.js.map +1 -1
  476. package/js/tag/update/tryUpdateToTag.function.d.ts +2 -3
  477. package/js/tag/update/tryUpdateToTag.function.js +14 -12
  478. package/js/tag/update/tryUpdateToTag.function.js.map +1 -1
  479. package/js/tag/update/updateExistingArray.function.d.ts +1 -1
  480. package/js/tag/update/updateExistingObject.function.d.ts +1 -1
  481. package/js/tag/update/updateToDiffValue.function.d.ts +3 -3
  482. package/js/tag/update/updateToDiffValue.function.js +10 -10
  483. package/js/tag/update/updateToDiffValue.function.js.map +1 -1
  484. package/js/tagJsVars/getArrayTagJsVar.function.d.ts +1 -0
  485. package/js/tagJsVars/getArrayTagJsVar.function.js +22 -7
  486. package/js/tagJsVars/getArrayTagJsVar.function.js.map +1 -1
  487. package/js/tagJsVars/getInnerHTML.function.js +12 -8
  488. package/js/tagJsVars/getInnerHTML.function.js.map +1 -1
  489. package/js/tagJsVars/getSimpleTagVar.function.d.ts +5 -2
  490. package/js/tagJsVars/getSimpleTagVar.function.js +40 -13
  491. package/js/tagJsVars/getSimpleTagVar.function.js.map +1 -1
  492. package/js/tagJsVars/host.function.d.ts +12 -5
  493. package/js/tagJsVars/host.function.js +92 -18
  494. package/js/tagJsVars/host.function.js.map +1 -1
  495. package/js/tagJsVars/pipe.function.d.ts +2 -1
  496. package/js/tagJsVars/pipe.function.js +20 -8
  497. package/js/tagJsVars/pipe.function.js.map +1 -1
  498. package/js/tagJsVars/processAttributeUpdate.function.d.ts +5 -0
  499. package/js/tagJsVars/processAttributeUpdate.function.js +17 -0
  500. package/js/tagJsVars/processAttributeUpdate.function.js.map +1 -0
  501. package/js/tagJsVars/processSimpleAttribute.d.ts +3 -0
  502. package/js/tagJsVars/processSimpleAttribute.function.d.ts +7 -0
  503. package/js/tagJsVars/processSimpleAttribute.function.js +18 -0
  504. package/js/tagJsVars/processSimpleAttribute.function.js.map +1 -0
  505. package/js/tagJsVars/processSimpleAttribute.js +12 -0
  506. package/js/tagJsVars/processSimpleAttribute.js.map +1 -0
  507. package/js/tagJsVars/processSubscribeAttribute.function.d.ts +10 -0
  508. package/js/tagJsVars/processSubscribeAttribute.function.js +25 -0
  509. package/js/tagJsVars/processSubscribeAttribute.function.js.map +1 -0
  510. package/js/tagJsVars/processSubscribeAttributeUpdate.d.ts +5 -0
  511. package/js/tagJsVars/processSubscribeAttributeUpdate.function.d.ts +5 -0
  512. package/js/tagJsVars/processSubscribeAttributeUpdate.function.js +21 -0
  513. package/js/tagJsVars/processSubscribeAttributeUpdate.function.js.map +1 -0
  514. package/js/tagJsVars/processSubscribeAttributeUpdate.js +18 -0
  515. package/js/tagJsVars/processSubscribeAttributeUpdate.js.map +1 -0
  516. package/js/tagJsVars/processSubscribeWithAttribute.function.d.ts +18 -0
  517. package/js/tagJsVars/processSubscribeWithAttribute.function.js +23 -0
  518. package/js/tagJsVars/processSubscribeWithAttribute.function.js.map +1 -0
  519. package/js/tagJsVars/subscribe.function.d.ts +13 -11
  520. package/js/tagJsVars/subscribe.function.js +19 -11
  521. package/js/tagJsVars/subscribe.function.js.map +1 -1
  522. package/js/tagJsVars/subscribeWith.function.d.ts +5 -1
  523. package/js/tagJsVars/subscribeWith.function.js +35 -6
  524. package/js/tagJsVars/subscribeWith.function.js.map +1 -1
  525. package/js/tagJsVars/tag.function.d.ts +28 -0
  526. package/js/tagJsVars/tag.function.js +68 -8
  527. package/js/tagJsVars/tag.function.js.map +1 -1
  528. package/js/tagJsVars/tagInject.function.d.ts +5 -0
  529. package/js/tagJsVars/tagInject.function.js +43 -0
  530. package/js/tagJsVars/tagInject.function.js.map +1 -0
  531. package/js/tagJsVars/tagJsVar.type.d.ts +13 -6
  532. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { AnySupport } from '../tag/AnySupport.type.js';
1
+ import { AnySupport } from '../tag/index.js';
2
2
  import { SupportContextItem } from '../tag/SupportContextItem.type.js';
3
3
  export declare function renderExistingSupport(lastSupport: AnySupport, // should be global.newest
4
4
  newSupport: AnySupport, // new to be rendered
@@ -5,12 +5,11 @@ export function renderExistingSupport(lastSupport, // should be global.newest
5
5
  newSupport, // new to be rendered
6
6
  subject) {
7
7
  const result = renderWithSupport(newSupport, lastSupport, subject);
8
- const global = subject.global;
9
- // lastSupport !== newSupport &&
10
8
  if (result.wasLikeTags) {
11
- updateSupportBy(global.oldest, result.support);
9
+ const oldest = subject.state.oldest; // || result.support
10
+ updateSupportBy(oldest, result.support);
12
11
  return result.support;
13
12
  }
14
- return processTag(newSupport, subject, { added: 0, removed: 0 });
13
+ return processTag(newSupport, subject);
15
14
  }
16
15
  //# sourceMappingURL=renderExistingTag.function.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderExistingTag.function.js","sourceRoot":"","sources":["../../ts/render/renderExistingTag.function.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAK,iCAAiC,CAAA;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAA;AAEtE,MAAM,UAAU,qBAAqB,CACnC,WAAuB,EAAE,0BAA0B;AACnD,UAAsB,EAAE,qBAAqB;AAC7C,OAA2B;IAE3B,MAAM,MAAM,GAAG,iBAAiB,CAC9B,UAAU,EACV,WAAW,EACX,OAAO,CACR,CAAA;IAED,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAA;IAC7B,iCAAiC;IACjC,IAAI,MAAM,CAAC,WAAW,EAAG,CAAC;QACxB,eAAe,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,CAAA;QAC9C,OAAO,MAAM,CAAC,OAAO,CAAA;IACvB,CAAC;IAED,OAAO,UAAU,CACf,UAAU,EACV,OAAO,EACP,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CACzB,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"renderExistingTag.function.js","sourceRoot":"","sources":["../../ts/render/renderExistingTag.function.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAK,iCAAiC,CAAA;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAA;AAEtE,MAAM,UAAU,qBAAqB,CACnC,WAAuB,EAAE,0BAA0B;AACnD,UAAsB,EAAE,qBAAqB;AAC7C,OAA2B;IAE3B,MAAM,MAAM,GAAG,iBAAiB,CAC9B,UAAU,EACV,WAAW,EACX,OAAO,CACR,CAAA;IAED,IAAI,MAAM,CAAC,WAAW,EAAG,CAAC;QACxB,MAAM,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,MAAoB,CAAA,CAAC,oBAAoB;QACtE,eAAe,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,CAAA;QACvC,OAAO,MAAM,CAAC,OAAO,CAAA;IACvB,CAAC;IAED,OAAO,UAAU,CACf,UAAU,EACV,OAAO,CACR,CAAA;AACH,CAAC"}
@@ -1,10 +1,7 @@
1
- import { AnySupport } from '../tag/AnySupport.type.js';
2
- import { Props } from '../Props.js';
1
+ import { AnySupport } from '../tag/index.js';
3
2
  import { TemplaterResult } from '../tag/getTemplaterResult.function.js';
4
3
  export declare function isInlineHtml(templater: TemplaterResult): boolean;
5
4
  /** Main function used by all other callers to render/update display of a tag component */
6
5
  export declare function renderSupport<T extends AnySupport>(support: T): T;
7
6
  /** Renders the owner of the inline HTML even if the owner itself is inline html */
8
7
  export declare function renderInlineHtml(support: AnySupport): AnySupport;
9
- export declare function checkRenderUp(templater: TemplaterResult, support: AnySupport): boolean;
10
- export declare function hasPropLengthsChanged(nowProps: Props, latestProps: Props): boolean;
@@ -1,8 +1,5 @@
1
- import { deepEqual } from '../deepFunctions.js';
2
1
  import { renderExistingSupport } from './renderExistingTag.function.js';
3
2
  import { ValueTypes } from '../tag/ValueTypes.enum.js';
4
- import { PropWatches } from '../index.js';
5
- import { deepCompareDepth, immutablePropMatch, shallowPropMatch } from '../tag/hasSupportChanged.function.js';
6
3
  import { getSupportWithState } from '../interpolations/attributes/getSupportWithState.function.js';
7
4
  export function isInlineHtml(templater) {
8
5
  return ValueTypes.templater === templater.tagJsType;
@@ -22,52 +19,22 @@ export function renderSupport(support) {
22
19
  const result = renderInlineHtml(support);
23
20
  return result;
24
21
  }
25
- subject.locked = true;
22
+ subject.locked = 4;
26
23
  if (global.blocked.length) {
27
24
  support = global.blocked.pop();
28
25
  global.blocked = [];
29
26
  }
30
- const tag = renderExistingSupport(global.newest, support, subject);
27
+ const tag = renderExistingSupport(subject.state.newest, support, subject);
31
28
  delete subject.locked;
32
29
  return tag;
33
30
  }
34
31
  /** Renders the owner of the inline HTML even if the owner itself is inline html */
35
32
  export function renderInlineHtml(support) {
36
33
  const ownerSupport = getSupportWithState(support);
37
- const ownGlobal = ownerSupport.context.global;
38
- const newest = ownGlobal.newest;
34
+ const ownContext = ownerSupport.context;
35
+ const newest = ownContext.state.newest;
39
36
  // Function below may call renderInlineHtml again if owner is just inline HTML
40
37
  const result = renderSupport(newest);
41
38
  return result;
42
39
  }
43
- export function checkRenderUp(templater, support) {
44
- const selfPropChange = hasPropsToOwnerChanged(templater, support);
45
- // render owner up first and that will cause me to re-render
46
- if (selfPropChange) {
47
- return true;
48
- }
49
- return false;
50
- }
51
- /** Used when crawling up the chain of child-to-parent tags. See hasSupportChanged for the downward direction */
52
- function hasPropsToOwnerChanged(templater, support) {
53
- const nowProps = templater.props;
54
- const propsConfig = support.propsConfig;
55
- const latestProps = propsConfig.latest;
56
- const compareLen = hasPropLengthsChanged(nowProps, latestProps);
57
- if (compareLen) {
58
- return true;
59
- }
60
- switch (templater.propWatch) {
61
- case PropWatches.IMMUTABLE:
62
- return immutablePropMatch(nowProps, latestProps);
63
- case PropWatches.SHALLOW:
64
- return shallowPropMatch(nowProps, latestProps);
65
- }
66
- return !deepEqual(nowProps, latestProps, deepCompareDepth);
67
- }
68
- export function hasPropLengthsChanged(nowProps, latestProps) {
69
- const nowLen = nowProps.length;
70
- const latestLen = latestProps.length;
71
- return nowLen !== latestLen;
72
- }
73
40
  //# sourceMappingURL=renderSupport.function.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderSupport.function.js","sourceRoot":"","sources":["../../ts/render/renderSupport.function.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAK,iCAAiC,CAAA;AAEtE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAA;AAC7G,OAAO,EAAE,mBAAmB,EAAE,MAAM,8DAA8D,CAAA;AAElG,MAAM,UAAU,YAAY,CAAC,SAA0B;IACrD,OAAO,UAAU,CAAC,SAAS,KAAK,SAAS,CAAC,SAAS,CAAA;AACrD,CAAC;AAED,0FAA0F;AAC1F,MAAM,UAAU,aAAa,CAC3B,OAAU;IAEV,MAAM,OA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,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,MAAM,CAAA;IAEtC,8EAA8E;IAC9E,MAAM,MAAM,GAAG,aAAa,CAAC,MAAoB,CAAC,CAAA;IAElD,OAAO,MAAM,CAAA;AACf,CAAC"}
@@ -2,8 +2,9 @@ import { TemplaterResult } from '../tag/getTemplaterResult.function.js';
2
2
  import { SupportContextItem } from '../tag/SupportContextItem.type.js';
3
3
  import { TagWrapper } from '../tag/tag.utils.js';
4
4
  import { TagMaker } from '../tag/TagMaker.type.js';
5
- import { AnySupport, BaseTagGlobal } from '../index.js';
6
- export declare function renderTagElement(app: TagMaker, global: BaseTagGlobal, templater: TemplaterResult, templater2: TemplaterResult, element: Element, subject: SupportContextItem, isAppFunction: boolean): {
5
+ import { AnySupport, SupportTagGlobal } from '../index.js';
6
+ export declare function renderTagElement(app: TagMaker, global: SupportTagGlobal, templater: TemplaterResult, templater2: TemplaterResult, element: Element, // appElement
7
+ context: SupportContextItem, isAppFunction: boolean): {
7
8
  support: AnySupport;
8
9
  tags: TagWrapper<unknown>[];
9
10
  ValueTypes: {
@@ -20,4 +21,3 @@ export declare function renderTagElement(app: TagMaker, global: BaseTagGlobal, t
20
21
  host: string;
21
22
  };
22
23
  };
23
- export declare function runWrapper(templater: TemplaterResult, placeholder: Text, appElement: Element, subject: SupportContextItem, isAppFunction: boolean): AnySupport;
@@ -2,32 +2,42 @@ import { tags } from '../tag/tag.utils.js';
2
2
  import { empty, ValueTypes } from '../tag/ValueTypes.enum.js';
3
3
  import { destroySupport } from './destroySupport.function.js';
4
4
  import { paint, painting } from './paint.function.js';
5
- import { createSupport } from '../tag/createSupport.function.js';
6
- import { runAfterRender } from '../render/afterRender.function.js';
7
- import { executeWrap } from './executeWrap.function.js';
8
- import { registerTagElement } from './registerNewTagElement.function.js';
9
- import { loadNewBaseSupport } from '../tag/loadNewBaseSupport.function.js';
10
- import { reState } from '../state/state.utils.js';
11
- export function renderTagElement(app, global, templater, templater2, element, subject, isAppFunction) {
5
+ import { processReplacementComponent } from '../tag/update/processFirstSubjectComponent.function.js';
6
+ // Imports used only by the commented-out runWrapper/executeStateWrap functions:
7
+ // import { ContextStateSupport } from '../tag/ContextStateMeta.type.js'
8
+ // import { Wrapper } from '../index.js'
9
+ // import { createSupport } from '../tag/createSupport.function.js'
10
+ // import { runAfterSupportRender } from './runAfterRender.function.js'
11
+ // import { executeWrap } from './executeWrap.function.js'
12
+ // import { loadNewBaseSupport } from '../tag/loadNewBaseSupport.function.js'
13
+ // import { reStateSupport } from '../state/reState.function.js'
14
+ export function renderTagElement(app, global, templater, templater2, element, // appElement
15
+ context, isAppFunction) {
12
16
  const placeholder = document.createTextNode(empty);
13
17
  tags.push((templater.wrapper || { original: templater }));
14
- const support = runWrapper(templater, placeholder, element, subject, isAppFunction);
18
+ context.placeholder = placeholder;
19
+ /*
20
+ const support = runWrapper(
21
+ templater,
22
+ placeholder,
23
+ element,
24
+ context,
25
+ isAppFunction,
26
+ )
27
+ */
15
28
  global.isApp = true;
16
- if (isAppFunction) {
17
- templater2.tag = support.templater.tag;
18
- }
19
29
  if (!element) {
20
30
  throw new Error(`Cannot tagElement, element received is type ${typeof element} and not type Element`);
21
31
  }
22
32
  // enables hmr destroy so it can control entire app
23
33
  ;
24
34
  element.destroy = function () {
25
- const events = global.events;
35
+ const events = context.events;
26
36
  for (const eventName in events) {
27
37
  const callback = events[eventName];
28
38
  element.removeEventListener(eventName, callback);
29
39
  }
30
- global.events = {};
40
+ context.events = {};
31
41
  ++painting.locks;
32
42
  const toAwait = destroySupport(support, global); // never return anything here
33
43
  --painting.locks;
@@ -35,7 +45,31 @@ export function renderTagElement(app, global, templater, templater2, element, su
35
45
  return toAwait;
36
46
  };
37
47
  ++painting.locks;
38
- const newFragment = registerTagElement(support, element, global, templater, app, placeholder);
48
+ const newFragment = document.createDocumentFragment();
49
+ newFragment.appendChild(placeholder);
50
+ const ownerSupport = {
51
+ appSupport: {
52
+ appElement: element,
53
+ context,
54
+ },
55
+ appElement: element
56
+ };
57
+ const support = processReplacementComponent(templater, context, ownerSupport);
58
+ support.appElement = element;
59
+ // support.appSupport = support
60
+ if (isAppFunction) {
61
+ templater2.tag = support.templater.tag;
62
+ }
63
+ /*
64
+ const newFragment = registerTagElement(
65
+ support,
66
+ element,
67
+ global,
68
+ templater,
69
+ app,
70
+ placeholder,
71
+ )
72
+ */
39
73
  --painting.locks;
40
74
  paint();
41
75
  element.appendChild(newFragment);
@@ -45,35 +79,4 @@ export function renderTagElement(app, global, templater, templater2, element, su
45
79
  ValueTypes,
46
80
  };
47
81
  }
48
- export function runWrapper(templater, placeholder, appElement, subject, isAppFunction) {
49
- subject.placeholder = placeholder;
50
- const global = subject.global;
51
- const oldest = global.oldest;
52
- const isFirstRender = global.newest === oldest;
53
- const newSupport = createSupport(templater, global.newest, global.newest.appSupport, // ownerSupport.appSupport as AnySupport,
54
- subject);
55
- if (!isFirstRender) {
56
- reState(newSupport, global.newest, // global.oldest, // global.newest,
57
- oldest.state);
58
- }
59
- if (templater.tagJsType === ValueTypes.stateRender) {
60
- return executeStateWrap(templater, isAppFunction, newSupport, subject, appElement);
61
- }
62
- // Call the apps function for our tag templater
63
- const wrapper = templater.wrapper;
64
- const nowSupport = wrapper(newSupport, subject);
65
- runAfterRender(newSupport);
66
- return nowSupport;
67
- }
68
- function executeStateWrap(templater, isAppFunction, newSupport, subject, appElement) {
69
- const result = (templater.wrapper || { original: templater });
70
- if (!isAppFunction) {
71
- const newSupport = loadNewBaseSupport(templater, subject, appElement);
72
- runAfterRender(newSupport);
73
- return newSupport;
74
- }
75
- executeWrap(templater, result, newSupport);
76
- runAfterRender(newSupport);
77
- return newSupport;
78
- }
79
82
  //# sourceMappingURL=renderTagElement.function.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderTagElement.function.js","sourceRoot":"","sources":["../../ts/render/renderTagElement.function.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAc,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAA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AA;IAED,IAAG,CAAC,aAAa,EAAE,CAAC;QAClB,OAAO,CACL,UAAU,EACV,MAAM,CAAC,MAAM,EAAE,mCAAmC;QAClD,MAAM,CAAC,KAAK,CACb,CAAA;IACH,CAAC;IAED,IAAG,SAAS,CAAC,SAAS,KAAK,UAAU,CAAC,WAAW,EAAE,CAAC;QAClD,OAAO,gBAAgB,CACrB,SAAS,EACT,aAAa,EACb,UAAU,EACV,OAAO,EACP,UAAU,CACX,CAAA;IACH,CAAC;IAED,+CAA+C;IAC/C,MAAM,OAAO,GAAG,SAAS,CAAC,OAAkB,CAAA;IAC5C,MAAM,UAAU,GAAG,OAAO,CACxB,UAAU,EACV,OAAO,CACR,CAAA;IAED,cAAc,CAAC,UAAU,CAAC,CAAA;IAE1B,OAAO,UAAU,CAAA;AACnB,CAAC;AAED,SAAS,gBAAgB,CACvB,SAA0B,EAC1B,aAAsB,EACtB,UAAsB,EACtB,OAA2B,EAC3B,UAAmB;IAEnB,MAAM,MAAM,GAAG,CAAC,SAAS,CAAC,OAAO,IAAI,EAAC,QAAQ,EAAE,SAAS,EAAC,CAAmC,CAAA;IAE7F,IAAG,CAAC,aAAa,EAAE,CAAC;QAClB,MAAM,UAAU,GAAG,kBAAkB,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,CAAC,CAAA;QACrE,cAAc,CAAC,UAAU,CAAC,CAAA;QAC1B,OAAO,UAAU,CAAA;IACnB,CAAC;IAED,WAAW,CACT,SAAS,EACT,MAAM,EACN,UAAU,CACX,CAAA;IAED,cAAc,CAAC,UAAU,CAAC,CAAA;IAE1B,OAAO,UAAU,CAAA;AACnB,CAAC"}
1
+ {"version":3,"file":"renderTagElement.function.js","sourceRoot":"","sources":["../../ts/render/renderTagElement.function.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAc,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAAE,c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AC,CAAA,CAAC,6BAA6B;QAC7E,EAAE,QAAQ,CAAC,KAAK,CAAA;QAEhB,KAAK,EAAE,CAAA;QAEP,OAAO,OAAO,CAAA;IAChB,CAAC,CAAA;IAED,EAAE,QAAQ,CAAC,KAAK,CAAA;IAEhB,MAAM,WAAW,GAAG,QAAQ,CAAC,sBAAsB,EAAE,CAAA;IACrD,WAAW,CAAC,WAAW,CAAC,WAAW,CAAC,CAAA;IACpC,MAAM,YAAY,GAAG;QACnB,UAAU,EAAE;YACV,UAAU,EAAE,OAAO;YACnB,OAAO;SACR;QACD,UAAU,EAAE,OAAO;KACC,CAAA;IACtB,MAAM,OAAO,GAAG,2BAA2B,CACzC,SAAS,EACT,OAAO,EACP,YAAY,CACb,CAAA;IAED,OAAO,CAAC,UAAU,GAAG,OAAO,CAAA;IAC5B,+BAA+B;IAE/B,IAAG,aAAa,EAAE,CAAC;QACjB,UAAU,CAAC,GAAG,GAAG,OAAO,CAAC,SAAS,CAAC,GAAG,CAAA;IACxC,CAAC;IAED;;;;;;;;;MASE;IACF,EAAE,QAAQ,CAAC,KAAK,CAAA;IAEhB,KAAK,EAAE,CAAA;IACP,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,CAAA;IAEhC,OAAO;QACL,OAAO;QACP,IAAI;QACJ,UAAU;KACX,CAAA;AACH,CAAC"}
@@ -1,4 +1,8 @@
1
1
  import { SupportContextItem } from '../tag/SupportContextItem.type.js';
2
- import { AnySupport } from '../tag/AnySupport.type.js';
3
- export declare function renderTagOnly(newSupport: AnySupport, prevSupport: AnySupport | undefined, // causes restate
4
- subject: SupportContextItem, ownerSupport?: AnySupport): AnySupport;
2
+ import { AnySupport } from '../tag/index.js';
3
+ export declare function reRenderTag(newSupport: AnySupport, prevSupport: AnySupport | undefined, // causes restate
4
+ context: SupportContextItem, ownerSupport?: AnySupport): AnySupport;
5
+ /** Used during first renders of a support */
6
+ export declare function firstTagRender(newSupport: AnySupport, prevSupport: AnySupport | undefined, // causes restate
7
+ context: SupportContextItem, ownerSupport?: AnySupport): AnySupport;
8
+ export declare function getSupportOlderState(support?: AnySupport): import("../index.js").State | undefined;
@@ -1,36 +1,34 @@
1
- import { executeWrap } from './executeWrap.function.js';
2
- import { ValueTypes } from '../tag/ValueTypes.enum.js';
3
- import { runAfterRender } from './afterRender.function.js';
4
- import { initState, reState } from '../state/state.utils.js';
5
- import { createSupport } from '../tag/createSupport.function.js';
6
- export function renderTagOnly(newSupport, prevSupport, // causes restate
7
- subject, ownerSupport) {
8
- runBeforeRender(newSupport, prevSupport);
9
- const templater = newSupport.templater;
10
- let reSupport;
11
- // NEW TAG CREATED HERE
12
- if (templater.tagJsType === ValueTypes.stateRender) {
13
- const result = templater; // .wrapper as any// || {original: templater} as any
14
- reSupport = createSupport(templater, ownerSupport, newSupport.appSupport, // ownerSupport.appSupport as AnySupport,
15
- subject);
16
- executeWrap(templater, result, reSupport);
17
- }
18
- else {
19
- // functions wrapped in tag()
20
- const wrapper = templater.wrapper;
21
- // calls the function returned from getTagWrap()
22
- reSupport = wrapper(newSupport, subject, prevSupport);
23
- }
24
- runAfterRender(reSupport, ownerSupport);
25
- reSupport.ownerSupport = newSupport.ownerSupport; // || lastOwnerSupport) as AnySupport
26
- return reSupport;
1
+ import { initState } from '../state/state.utils.js';
2
+ import { callTag } from './callTag.function.js';
3
+ import { setSupportInCycle } from '../tag/cycles/getSupportInCycle.function.js';
4
+ import { removeContextInCycle } from '../tag/cycles/setContextInCycle.function.js';
5
+ import { reStateSupport } from '../state/reState.function.js';
6
+ export function reRenderTag(newSupport, prevSupport, // causes restate
7
+ context, ownerSupport) {
8
+ const stateMeta = context.state;
9
+ const prevState = stateMeta.older.state;
10
+ reStateSupport(newSupport, prevSupport, prevState);
11
+ return callTag(newSupport, prevSupport, context, ownerSupport);
27
12
  }
28
- function runBeforeRender(newSupport, prevSupport) {
29
- const prevState = prevSupport?.state;
30
- if (prevState) {
31
- reState(newSupport, prevSupport, prevState);
32
- return;
33
- }
34
- initState(newSupport);
13
+ /** Used during first renders of a support */
14
+ export function firstTagRender(newSupport, prevSupport, // causes restate
15
+ context, ownerSupport) {
16
+ initState(newSupport.context);
17
+ setSupportInCycle(newSupport);
18
+ const result = callTag(newSupport, prevSupport, context, ownerSupport);
19
+ removeContextInCycle();
20
+ return result;
35
21
  }
22
+ export function getSupportOlderState(support) {
23
+ const context = support?.context;
24
+ const stateMeta = context?.state;
25
+ return stateMeta?.older?.state;
26
+ }
27
+ /*
28
+ export function getSupportNewerState(support?: AnySupport) {
29
+ const context = support?.context as SupportContextItem
30
+ const stateMeta = context?.state
31
+ return stateMeta?.newer?.state
32
+ }
33
+ */
36
34
  //# sourceMappingURL=renderTagOnly.function.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderTagOnly.function.js","sourceRoot":"","sources":["../../ts/render/renderTagOnly.function.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAEtD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAGhE,MAAM,UAAU,aAAa,CAC3B,UAAsB,EACtB,WAAmC,EAAE,iBAAiB;AACtD,OAA0B,EAC1B,YAAyB;IAEzB,eAAe,CAAC,UAAU,EAAE,WAAW,CAAC,CAAA;IAExC,MAAM,SAAS,GAAG,UAAU,CAAC,SAAS,CAAA;IACtC,IAAI,SAAqB,CAAA;IAEzB,uBAAuB;IACvB,IAAG,SAAS,CAAC,SAAS,KAAK,UAAU,CAAC,WAAW,EAAE,CAAC;QAClD,MAAM,MAAM,GAAG,SAAmC,CAAA,CAAC,oDAAoD;QAEvG,SAAS,GAAG,aAAa,CACvB,SAAS,EACT,YAA0B,EAC1B,UAAU,CAAC,UAAU,EAAE,yCAAyC;QAChE,OAAO,CACR,CAAA;QAED,WAAW,CACT,SAAS,EACT,MAAM,EACN,SAAS,CACV,CAAA;IACH,CAAC;SAAM,CAAC;QACN,6BAA6B;QAC7B,MAAM,OAAO,GAAG,SAAS,CAAC,OAAkB,CAAA;QAE5C,gDAAgD;QAChD,SAAS,GAAG,OAAO,CACjB,UAAU,EACV,OAAO,EACP,WAAW,CACZ,CAAA;IACH,CAAC;IAED,cAAc,CAAC,SAAS,EAAE,YAAY,CAAC,CAAA;IAEvC,SAAS,CAAC,YAAY,GAAG,UAAU,CAAC,YAAY,CAAA,CAAA,qCAAqC;IAErF,OAAO,SAAS,CAAA;AAClB,CAAC;AAED,SAAS,eAAe,CACtB,UAAsB,EACtB,WAAwB;IAExB,MAAM,SAAS,GAAG,WAAW,EAAE,KAAK,CAAA;IAEpC,IAAG,SAAS,EAAE,CAAC;QACb,OAAO,CACL,UAAU,EACV,WAAW,EACX,SAAS,CACV,CAAA;QAED,OAAM;IACR,CAAC;IAED,SAAS,CAAC,UAAU,CAAC,CAAA;AACvB,CAAC"}
1
+ {"version":3,"file":"renderTagOnly.function.js","sourceRoot":"","sources":["../../ts/render/renderTagOnly.function.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAGnD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAA;AAC/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAA;AAClF,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAE7D,MAAM,UAAU,WAAW,CACzB,UAAsB,EACtB,WAAmC,EAAE,iBAAiB;AACtD,OAA2B,EAC3B,YAAyB;IAEzB,MAAM,SAAS,GAAG,OAAO,CAAC,KAAK,CAAA;IAC/B,MAAM,SAAS,GAAI,SAAS,CAAC,KAA6B,CAAC,KAAK,CAAA;IAEhE,cAAc,CACZ,UAAU,EACV,WAAyB,EACzB,SAAS,CACV,CAAA;IAED,OAAO,OAAO,CAAC,UAAU,EAAE,WAAW,EAAE,OAAO,EAAE,YAAY,CAAC,CAAA;AAChE,CAAC;AAED,6CAA6C;AAC7C,MAAM,UAAU,cAAc,CAC5B,UAAsB,EACtB,WAAmC,EAAE,iBAAiB;AACtD,OAA2B,EAC3B,YAAyB;IAEzB,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,CAAA;IAE7B,iBAAiB,CAAC,UAAU,CAAC,CAAA;IAE7B,MAAM,MAAM,GAAG,OAAO,CAAC,UAAU,EAAE,WAAW,EAAE,OAAO,EAAE,YAAY,CAAC,CAAA;IAEtE,oBAAoB,EAAE,CAAA;IAEtB,OAAO,MAAM,CAAA;AACf,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,OAAoB;IACvD,MAAM,OAAO,GAAG,OAAO,EAAE,OAA6B,CAAA;IACtD,MAAM,SAAS,GAAG,OAAO,EAAE,KAAK,CAAA;IAChC,OAAO,SAAS,EAAE,KAAK,EAAE,KAAK,CAAA;AAChC,CAAC;AACD;;;;;;EAME"}
@@ -1,8 +1,8 @@
1
- import { AnySupport } from '../tag/AnySupport.type.js';
1
+ import { AnySupport } from '../tag/index.js';
2
2
  import { SupportContextItem } from '../tag/SupportContextItem.type.js';
3
3
  /** TODO: This seems to support both new and updates and should be separated? */
4
4
  export declare function renderWithSupport(newSupport: AnySupport, lastSupport: AnySupport | undefined, // previous (global.newest)
5
- subject: SupportContextItem): {
5
+ context: SupportContextItem): {
6
6
  support: AnySupport;
7
7
  wasLikeTags: boolean;
8
8
  };
@@ -1,27 +1,38 @@
1
1
  import { moveProviders } from './update/updateExistingTagComponent.function.js';
2
2
  import { softDestroySupport } from './softDestroySupport.function.js';
3
- import { renderTagOnly } from './renderTagOnly.function.js';
3
+ import { firstTagRender, getSupportOlderState, reRenderTag } from './renderTagOnly.function.js';
4
4
  import { isLikeTags } from '../tag/isLikeTags.function.js';
5
5
  import { ValueTypes } from '../tag/ValueTypes.enum.js';
6
6
  /** TODO: This seems to support both new and updates and should be separated? */
7
7
  export function renderWithSupport(newSupport, lastSupport, // previous (global.newest)
8
- subject) {
9
- const reSupport = renderTagOnly(newSupport, lastSupport, subject);
8
+ context) {
9
+ let reSupport;
10
+ const olderState = getSupportOlderState(lastSupport);
11
+ // const olderState = getSupportNewerState(lastSupport)
12
+ if (olderState) {
13
+ reSupport = reRenderTag(newSupport, lastSupport, context);
14
+ }
15
+ else {
16
+ reSupport = firstTagRender(newSupport, lastSupport, context);
17
+ }
10
18
  const isLikeTag = !lastSupport || isLikeTags(lastSupport, reSupport);
11
19
  if (!isLikeTag) {
12
20
  moveProviders(lastSupport, reSupport);
13
21
  softDestroySupport(lastSupport);
14
- const global = reSupport.context.global;
15
- global.oldest = reSupport;
16
- global.newest = reSupport;
22
+ const context = reSupport.context;
23
+ context.state.oldest = reSupport;
24
+ context.state.newest = reSupport;
25
+ // context.state.older = context.state.newer
17
26
  }
18
27
  else if (lastSupport) {
19
28
  const tag = lastSupport.templater.tag;
20
- if (tag && subject.renderCount > 0) {
29
+ if (tag && context.renderCount > 0) {
21
30
  const lastTemplater = lastSupport?.templater;
22
31
  const lastTag = lastTemplater?.tag;
23
32
  checkTagSoftDestroy(tag, lastSupport, lastTag);
24
33
  }
34
+ // context.state.older = context.state.newer
35
+ // context.state.newer = context.state.older
25
36
  }
26
37
  reSupport.ownerSupport = newSupport.ownerSupport; // || lastOwnerSupport) as AnySupport
27
38
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"renderWithSupport.function.js","sourceRoot":"","sources":["../../ts/render/renderWithSupport.function.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,iDAAiD,CAAA;AAC/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AAErE,OAAO,EAAE,aAAa,EAAE,MAAK,6BAA6B,CAAA;AAC1D,OAAO,EAAE,UAAU,EAAE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C,MAAM,OAAO,GAAI,OAAkB,EAAE,GAAG,CAAA;QACxC,MAAM,MAAM,GAAI,GAAc,CAAC,GAAG,CAAA;QAClC,IAAG,OAAO,KAAK,MAAM,EAAE,CAAC;YACtB,kBAAkB,CAAC,WAAW,CAAC,CAAA;QACjC,CAAC;QAED,OAAM;IACR,CAAC;IAED,IAAG,OAAO,EAAE,CAAC;QACX,MAAM,WAAW,GAAI,OAAqB,CAAC,OAAO,CAAA;QAClD,IAAG,WAAW,EAAE,CAAC;YACf,MAAM,SAAS,GAAG,WAAW,EAAE,MAAM,CAAA;YACrC,MAAM,SAAS,GAAI,GAAiB,CAAC,OAAO,CAAC,MAAM,CAAA;YACnD,IAAG,SAAS,KAAK,SAAS,EAAE,CAAC;gBAC3B,kBAAkB,CAAC,WAAW,CAAC,CAAA;YACjC,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"renderWithSupport.function.js","sourceRoot":"","sources":["../../ts/render/renderWithSupport.function.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,iDAAiD,CAAA;AAC/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AACrE,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAK,6BAA6B,CAAA;AAC9F,OAAO,EAAE,UAAU,EAAE,MAAK,+BAA+B,CAAA;AAGzD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAGtD,gFAAgF;AAChF,MAAM,UAAU,iBAAiB,CAC/B,UAAsB,EACtB,WAAkC,EAAE,2BAA2B;AAC/D,OAA2B;IAE3B,IAAI,SAAqB,CAAA;IACzB,MAAM,UAAU,GAAG,oBAAoB,CAAC,WAAW,CAAC,CAAA;IACpD,uDAAuD;IAEvD,IAAI,UAAU,EAAG,CAAC;QAChB,SAAS,GAAG,WAAW,CACrB,UAAU,EACV,WAAW,EACX,OAAO,CACR,CAAA;IACH,CAAC;S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G,OAAO,KAAK,MAAM,EAAE,CAAC;YACtB,kBAAkB,CAAC,WAAW,CAAC,CAAA;QACjC,CAAC;QAED,OAAM;IACR,CAAC;IAED,IAAG,OAAO,EAAE,CAAC;QACX,MAAM,WAAW,GAAI,OAAqB,CAAC,OAAO,CAAA;QAClD,IAAG,WAAW,EAAE,CAAC;YACf,MAAM,SAAS,GAAG,WAAW,EAAE,MAAM,CAAA;YACrC,MAAM,SAAS,GAAI,GAAiB,CAAC,OAAO,CAAC,MAAM,CAAA;YACnD,IAAG,SAAS,KAAK,SAAS,EAAE,CAAC;gBAC3B,kBAAkB,CAAC,WAAW,CAAC,CAAA;YACjC,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { AnySupport, ContextItem } from '../tag/index.js';
2
+ /** Compares states of previous renders
3
+ * @property support - The workflow that supports a single tag
4
+ * @property ownerSupport - undefined when "support" is the app element
5
+ */
6
+ export declare function runAfterSupportRender(support: AnySupport, ownerSupport?: AnySupport): void;
7
+ /** run after rendering anything with state */
8
+ export declare function runAfterRender(context: ContextItem): void;
9
+ export declare function clearStateConfig(): void;
@@ -0,0 +1,37 @@
1
+ import { setUseMemory } from '../state/setUseMemory.object.js';
2
+ import { removeContextInCycle } from '../tag/cycles/setContextInCycle.function.js';
3
+ /** Compares states of previous renders
4
+ * @property support - The workflow that supports a single tag
5
+ * @property ownerSupport - undefined when "support" is the app element
6
+ */
7
+ export function runAfterSupportRender(support, ownerSupport) {
8
+ const subject = support.context;
9
+ ++subject.renderCount;
10
+ runAfterRender(support.context);
11
+ setUseMemory.tagClosed$.next(ownerSupport);
12
+ }
13
+ /** run after rendering anything with state */
14
+ export function runAfterRender(context) {
15
+ saveState(context);
16
+ // TODO: prove this is worth having
17
+ // checkStateMismatch(config, support)
18
+ clearStateConfig();
19
+ // setUseMemory.tagClosed$.next(ownerSupport)
20
+ }
21
+ function saveState(context) {
22
+ const config = setUseMemory.stateConfig;
23
+ const subject = context || config.context;
24
+ subject.state = subject.state || {};
25
+ subject.state.newer = { ...config };
26
+ const support = config.support;
27
+ subject.state.newest = support;
28
+ }
29
+ export function clearStateConfig() {
30
+ const config = setUseMemory.stateConfig;
31
+ delete config.prevSupport; // only this one really needed
32
+ delete config.support;
33
+ delete config.state;
34
+ delete config.states;
35
+ removeContextInCycle();
36
+ }
37
+ //# sourceMappingURL=runAfterRender.function.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runAfterRender.function.js","sourceRoot":"","sources":["../../ts/render/runAfterRender.function.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAE9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAA;AAElF;;;GAGG;AACH,MAAM,UAAU,qBAAqB,CACnC,OAAmB,EACnB,YAAyB;IAEzB,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAA;IAC/B,EAAE,OAAO,CAAC,WAAW,CAAA;IAErB,cAAc,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;IAC/B,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA;AAC5C,CAAC;AAED,8CAA8C;AAC9C,MAAM,UAAU,cAAc,CAC5B,OAAoB;IAEpB,SAAS,CAAC,OAAO,CAAC,CAAA;IAClB,mCAAmC;IACnC,sCAAsC;IACtC,gBAAgB,EAAE,CAAA;IAElB,6CAA6C;AAC/C,CAAC;AAED,SAAS,SAAS,CAChB,OAAoB;IAEpB,MAAM,MAAM,GAAgB,YAAY,CAAC,WAAW,CAAA;IACpD,MAAM,OAAO,GAAG,OAAO,IAAI,MAAM,CAAC,OAAsB,CAAA;IAExD,OAAO,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,EAAE,CAAA;IACnC,OAAO,CAAC,KAAK,CAAC,KAAK,GAAG,EAAE,GAAG,MAAM,EAAE,CAAA;IAEnC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAA;IAC9B,OAAO,CAAC,KAAK,CAAC,MAAM,GAAG,OAAO,CAAA;AAChC,CAAC;AAED,MAAM,UAAU,gBAAgB;IAC9B,MAAM,MAAM,GAAgB,YAAY,CAAC,WAAW,CAAA;IAEpD,OAAO,MAAM,CAAC,WAAW,CAAA,CAAC,8BAA8B;IACxD,OAAO,MAAM,CAAC,OAAO,CAAA;IACrB,OAAQ,MAAc,CAAC,KAAK,CAAA;IAC5B,OAAQ,MAAc,CAAC,MAAM,CAAA;IAC7B,oBAAoB,EAAE,CAAA;AACxB,CAAC"}
@@ -1,3 +1,3 @@
1
- import { AnySupport } from '../tag/AnySupport.type.js';
1
+ import { AnySupport } from '../tag/index.js';
2
2
  /** used when a tag swaps content returned */
3
3
  export declare function softDestroySupport(lastSupport: AnySupport): void;
@@ -1,27 +1,28 @@
1
- import { getChildTagsToSoftDestroy, unsubscribeFrom } from '../tag/destroyContext.function.js';
1
+ import { getChildTagsToSoftDestroy, unsubscribeFrom } from '../tag/destroyContexts.function.js';
2
2
  import { getNewGlobal } from '../tag/update/getNewGlobal.function.js';
3
3
  import { smartRemoveKids } from '../tag/smartRemoveKids.function.js';
4
4
  /** used when a tag swaps content returned */
5
5
  export function softDestroySupport(lastSupport) {
6
- const subject = lastSupport.context;
7
- const global = subject.global;
8
- const { subs, tags } = getChildTagsToSoftDestroy(global.contexts);
9
- softDestroyOne(global);
6
+ const context = lastSupport.context;
7
+ const global = context.global;
8
+ const { subs, tags } = getChildTagsToSoftDestroy(context.contexts);
9
+ softDestroyOne(context);
10
10
  for (const child of tags) {
11
11
  const cGlobal = child.context.global;
12
12
  if (cGlobal.deleted === true) {
13
13
  return;
14
14
  }
15
- softDestroyOne(cGlobal);
15
+ softDestroyOne(child.context);
16
16
  }
17
17
  const mySubs = global.subscriptions;
18
18
  if (mySubs) {
19
19
  subs.forEach(unsubscribeFrom);
20
20
  }
21
- getNewGlobal(subject);
21
+ getNewGlobal(context);
22
22
  }
23
- function softDestroyOne(global) {
24
- global.deleted = true; // the children are truly destroyed but the main support will be swapped
25
- smartRemoveKids(global, []);
23
+ function softDestroyOne(context) {
24
+ context.global.deleted = true; // the children are truly destroyed but the main support will be swapped
25
+ smartRemoveKids(context, []);
26
+ delete context.contexts;
26
27
  }
27
28
  //# sourceMappingURL=softDestroySupport.function.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"softDestroySupport.function.js","sourceRoot":"","sources":["../../ts/render/softDestroySupport.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAA;AAG9F,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAA;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAA;AAEpE,6CAA6C;AAC7C,MAAM,UAAU,kBAAkB,CAChC,WAAuB;IAEvB,MAAM,OAAO,GAAG,WAAW,CAAC,OAAO,CAAA;IACnC,MAAM,MAAM,GAAG,OAAO,CAAC,MAA0B,CAAA;IACjD,MAAM,EAAC,IAAI,EAAE,IAAI,EAAC,GAAG,yBAAyB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;IAE/D,cAAc,CAAC,MAAM,CAAC,CAAA;IACtB,KAAK,MAAM,KAAK,IAAI,IAAI,EAAE,CAAC;QACzB,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,CAAA;QACpC,IAAG,OAAO,CAAC,OAAO,KAAK,IAAI,EAAE,CAAC;YAC5B,OAAM;QACR,CAAC;QACD,cAAc,CAAE,OAAO,CAAE,CAAA;IAC3B,CAAC;IAED,MAAM,MAAM,GAAG,MAAM,CAAC,aAAa,CAAA;IACnC,IAAG,MAAM,EAAE,CAAC;QACV,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,CAAA;IAC/B,CAAC;IAED,YAAY,CAAC,OAAO,CAAC,CAAA;AACvB,CAAC;AAED,SAAS,cAAc,CACrB,MAAwB;IAExB,MAAM,CAAC,OAAO,GAAG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AC,QAAQ,CAAA;AAClC,CAAC"}
@@ -1,7 +1,6 @@
1
- import type { TagCounts } from '../../tag/TagCounts.type.js';
2
1
  import { ContextItem } from '../../tag/ContextItem.type.js';
3
- import { AnySupport } from '../../tag/AnySupport.type.js';
2
+ import { AnySupport } from '../../tag/index.js';
4
3
  import { TemplateValue } from '../../tag/TemplateValue.type.js';
5
4
  export declare function processRenderOnceInit(value: TemplateValue, contextItem: ContextItem, // could be tag via result.tag
6
5
  ownerSupport: AnySupport, // owningSupport
7
- counts: TagCounts, appendTo?: Element, insertBefore?: Text): AnySupport;
6
+ insertBefore?: Text, appendTo?: Element): AnySupport;
@@ -1,13 +1,13 @@
1
1
  import { oneRenderToSupport } from '../../tag/update/oneRenderToSupport.function.js';
2
- import { renderTagOnly } from '../renderTagOnly.function.js';
2
+ import { firstTagRender } from '../renderTagOnly.function.js';
3
3
  import { getNewGlobal } from '../../tag/update/getNewGlobal.function.js';
4
4
  import { processNewSubjectTag } from '../../tag/update/processNewSubjectTag.function.js';
5
5
  export function processRenderOnceInit(value, contextItem, // could be tag via result.tag
6
6
  ownerSupport, // owningSupport
7
- counts, appendTo, insertBefore) {
7
+ insertBefore, appendTo) {
8
8
  getNewGlobal(contextItem);
9
9
  const support = oneRenderToSupport(value, contextItem, ownerSupport);
10
- renderTagOnly(support, undefined, contextItem);
11
- return processNewSubjectTag(support.templater, contextItem, ownerSupport, counts, appendTo, insertBefore);
10
+ firstTagRender(support, undefined, contextItem);
11
+ return processNewSubjectTag(support.templater, contextItem, ownerSupport, appendTo, insertBefore);
12
12
  }
13
13
  //# sourceMappingURL=processRenderOnceInit.function.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"processRenderOnceInit.function.js","sourceRoot":"","sources":["../../../ts/render/update/processRenderOnceInit.function.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAA;AAGpF,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAA;AAExE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAA;AAIxF,MAAM,UAAU,qBAAqB,CACnC,KAAoB,EACpB,WAAwB,EAAE,8BAA8B;AACxD,YAAwB,EAAE,gBAAgB;AAC1C,MAAiB,EACjB,QAAkB,EAClB,YAAmB;IAEnB,YAAY,CAAC,WAAW,CAAC,CAAA;IAEzB,MAAM,OAAO,GAAG,kBAAkB,CAChC,KAAgB,EAChB,WAA0B,EAC1B,YAAY,CACb,CAAA;IAED,aAAa,CACX,OAAO,EACP,SAAS,EACT,WAAiC,CAElC,CAAA;IAED,OAAO,oBAAoB,CACzB,OAAO,CAAC,SAAS,EACjB,WAA0B,EAC1B,YAAY,EACZ,MAAM,EACN,QAAQ,EACR,YAAY,CACb,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"processRenderOnceInit.function.js","sourceRoot":"","sources":["../../../ts/render/update/processRenderOnceInit.function.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAA;AAEpF,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAA;AAExE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAA;AAIxF,MAAM,UAAU,qBAAqB,CACnC,KAAoB,EACpB,WAAwB,EAAE,8BAA8B;AACxD,YAAwB,EAAE,gBAAgB;AAC1C,YAAmB,EACnB,QAAkB;IAElB,YAAY,CAAC,WAAiC,CAAC,CAAA;IAE/C,MAAM,OAAO,GAAG,kBAAkB,CAChC,KAAgB,EAChB,WAA0B,EAC1B,YAAY,CACb,CAAA;IAED,cAAc,CACZ,OAAO,EACP,SAAS,EACT,WAAiC,CAElC,CAAA;IAED,OAAO,oBAAoB,CACzB,OAAO,CAAC,SAAS,EACjB,WAA0B,EAC1B,YAAY,EACZ,QAAQ,EACR,YAAY,CACb,CAAA;AACH,CAAC"}
@@ -2,16 +2,14 @@ import { TemplaterResult } from '../../tag/getTemplaterResult.function.js';
2
2
  import type { StringTag } from '../../tag/StringTag.type.js';
3
3
  import type { DomTag } from '../../tag/DomTag.type.js';
4
4
  import { ContextItem } from '../../tag/ContextItem.type.js';
5
- import type { TagCounts } from '../../tag/TagCounts.type.js';
6
- import { AnySupport } from '../../tag/AnySupport.type.js';
5
+ import { AnySupport } from '../../tag/index.js';
7
6
  import { SupportContextItem } from '../../tag/SupportContextItem.type.js';
8
7
  /** When first time render, adds to owner childTags
9
8
  * Used for BOTH inserts & updates to values that were something else
10
9
  * Intended use only for updates
11
10
  */
12
11
  export declare function processTag(ownerSupport: AnySupport, // owner
13
- contextItem: SupportContextItem, // could be tag via result.tag
14
- counts: TagCounts): AnySupport;
12
+ contextItem: SupportContextItem): AnySupport;
15
13
  export declare function tagFakeTemplater(tag: StringTag | DomTag): TemplaterResult;
16
14
  export declare function getFakeTemplater(): TemplaterResult;
17
15
  /** Create support for a tag component */