taggedjs 2.8.44 → 3.0.3

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 (535) 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/htmlTag.function.d.ts +48 -0
  19. package/js/elements/htmlTag.function.js +77 -0
  20. package/js/elements/htmlTag.function.js.map +1 -0
  21. package/js/elements/index.d.ts +52 -0
  22. package/js/elements/index.js +56 -0
  23. package/js/elements/index.js.map +1 -0
  24. package/js/elements/noElement.function.d.ts +4 -0
  25. package/js/elements/noElement.function.js +53 -0
  26. package/js/elements/noElement.function.js.map +1 -0
  27. package/js/elements/processChildren.d.ts +5 -0
  28. package/js/elements/processChildren.function.d.ts +8 -0
  29. package/js/elements/processChildren.function.js +63 -0
  30. package/js/elements/processChildren.function.js.map +1 -0
  31. package/js/elements/processChildren.js +48 -0
  32. package/js/elements/processChildren.js.map +1 -0
  33. package/js/elements/processDesignElementInit.function.d.ts +3 -0
  34. package/js/elements/processDesignElementInit.function.js +19 -0
  35. package/js/elements/processDesignElementInit.function.js.map +1 -0
  36. package/js/elements/processDesignElementUpdate.function.d.ts +4 -0
  37. package/js/elements/processDesignElementUpdate.function.js +70 -0
  38. package/js/elements/processDesignElementUpdate.function.js.map +1 -0
  39. package/js/elements/processElementVar.d.ts +4 -0
  40. package/js/elements/processElementVar.function.d.ts +5 -0
  41. package/js/elements/processElementVar.function.js +63 -0
  42. package/js/elements/processElementVar.function.js.map +1 -0
  43. package/js/elements/processElementVar.js +78 -0
  44. package/js/elements/processElementVar.js.map +1 -0
  45. package/js/elements/processElementVarFunction.d.ts +3 -0
  46. package/js/elements/processElementVarFunction.function.d.ts +4 -0
  47. package/js/elements/processElementVarFunction.function.js +67 -0
  48. package/js/elements/processElementVarFunction.function.js.map +1 -0
  49. package/js/elements/processElementVarFunction.js +53 -0
  50. package/js/elements/processElementVarFunction.js.map +1 -0
  51. package/js/index.d.ts +5 -3
  52. package/js/index.js +4 -2
  53. package/js/index.js.map +1 -1
  54. package/js/interpolations/attributes/addSupportEventListener.function.d.ts +2 -1
  55. package/js/interpolations/attributes/addSupportEventListener.function.js +10 -23
  56. package/js/interpolations/attributes/addSupportEventListener.function.js.map +1 -1
  57. package/js/interpolations/attributes/bindSubjectCallback.function.d.ts +2 -2
  58. package/js/interpolations/attributes/bindSubjectCallback.function.js +10 -8
  59. package/js/interpolations/attributes/bindSubjectCallback.function.js.map +1 -1
  60. package/js/interpolations/attributes/bubbleEvent.function.d.ts +1 -0
  61. package/js/interpolations/attributes/bubbleEvent.function.js +22 -0
  62. package/js/interpolations/attributes/bubbleEvent.function.js.map +1 -0
  63. package/js/interpolations/attributes/checkToResolvePromise.function.d.ts +2 -3
  64. package/js/interpolations/attributes/checkToResolvePromise.function.js +7 -10
  65. package/js/interpolations/attributes/checkToResolvePromise.function.js.map +1 -1
  66. package/js/interpolations/attributes/getSupportWithState.function.d.ts +2 -1
  67. package/js/interpolations/attributes/getSupportWithState.function.js +15 -1
  68. package/js/interpolations/attributes/getSupportWithState.function.js.map +1 -1
  69. package/js/interpolations/attributes/getUpTags.function.js +11 -3
  70. package/js/interpolations/attributes/getUpTags.function.js.map +1 -1
  71. package/js/interpolations/attributes/howToSetInputValue.function.d.ts +5 -2
  72. package/js/interpolations/attributes/howToSetInputValue.function.js +49 -2
  73. package/js/interpolations/attributes/howToSetInputValue.function.js.map +1 -1
  74. package/js/interpolations/attributes/isSpecialAttribute.function.js +2 -0
  75. package/js/interpolations/attributes/isSpecialAttribute.function.js.map +1 -1
  76. package/js/interpolations/attributes/processAttributeCallback.function.d.ts +1 -1
  77. package/js/interpolations/attributes/processFunctionAttr.function.d.ts +6 -0
  78. package/js/interpolations/attributes/processFunctionAttr.function.js +65 -0
  79. package/js/interpolations/attributes/processFunctionAttr.function.js.map +1 -0
  80. package/js/interpolations/attributes/processNameValueAttribute.function.d.ts +4 -4
  81. package/js/interpolations/attributes/processNameValueAttribute.function.js +15 -8
  82. package/js/interpolations/attributes/processNameValueAttribute.function.js.map +1 -1
  83. package/js/interpolations/attributes/renderTagArray.function.d.ts +1 -1
  84. package/js/interpolations/attributes/renderTagArray.function.js +5 -2
  85. package/js/interpolations/attributes/renderTagArray.function.js.map +1 -1
  86. package/js/interpolations/attributes/specialAttribute.js +6 -5
  87. package/js/interpolations/attributes/specialAttribute.js.map +1 -1
  88. package/js/interpolations/attributes/updateAttribute.function.d.ts +1 -2
  89. package/js/interpolations/attributes/updateAttribute.function.js +2 -2
  90. package/js/interpolations/attributes/updateAttribute.function.js.map +1 -1
  91. package/js/interpolations/attributes/updateNameOnlyAttrValue.function.d.ts +4 -0
  92. package/js/interpolations/attributes/updateNameOnlyAttrValue.function.js +39 -0
  93. package/js/interpolations/attributes/updateNameOnlyAttrValue.function.js.map +1 -0
  94. package/js/interpolations/interpolateTemplate.d.ts +1 -1
  95. package/js/interpolations/optimizers/ObjectNode.types.d.ts +5 -8
  96. package/js/interpolations/optimizers/attachDynamicDom.function.d.ts +3 -5
  97. package/js/interpolations/optimizers/attachDynamicDom.function.js +10 -7
  98. package/js/interpolations/optimizers/attachDynamicDom.function.js.map +1 -1
  99. package/js/interpolations/optimizers/domProcessContextItem.function.d.ts +1 -3
  100. package/js/interpolations/optimizers/domProcessContextItem.function.js +8 -9
  101. package/js/interpolations/optimizers/domProcessContextItem.function.js.map +1 -1
  102. package/js/isInstance.d.ts +1 -1
  103. package/js/isInstance.js +2 -0
  104. package/js/isInstance.js.map +1 -1
  105. package/js/render/addOneContext.function.d.ts +4 -0
  106. package/js/render/addOneContext.function.js +26 -0
  107. package/js/render/addOneContext.function.js.map +1 -0
  108. package/js/render/afterRender.function.d.ts +5 -2
  109. package/js/render/afterRender.function.js +24 -8
  110. package/js/render/afterRender.function.js.map +1 -1
  111. package/js/render/attributes/createDynamicAttribute.function.d.ts +6 -6
  112. package/js/render/attributes/createDynamicAttribute.function.js +34 -12
  113. package/js/render/attributes/createDynamicAttribute.function.js.map +1 -1
  114. package/js/render/attributes/processAttribute.function.d.ts +9 -10
  115. package/js/render/attributes/processAttribute.function.js +55 -57
  116. package/js/render/attributes/processAttribute.function.js.map +1 -1
  117. package/js/render/attributes/processStandAloneAttribute.function.d.ts +5 -0
  118. package/js/render/attributes/processStandAloneAttribute.function.js +37 -0
  119. package/js/render/attributes/processStandAloneAttribute.function.js.map +1 -0
  120. package/js/render/attributes/processTagJsAttribute.function.d.ts +7 -0
  121. package/js/render/attributes/processTagJsAttribute.function.js +24 -0
  122. package/js/render/attributes/processTagJsAttribute.function.js.map +1 -0
  123. package/js/render/attributes/processTagJsVarAttribute.function.d.ts +6 -0
  124. package/js/render/attributes/processTagJsVarAttribute.function.js +19 -0
  125. package/js/render/attributes/processTagJsVarAttribute.function.js.map +1 -0
  126. package/js/render/attributes/processUpdateAttrContext.function.d.ts +3 -3
  127. package/js/render/attributes/processUpdateAttrContext.function.js +29 -9
  128. package/js/render/attributes/processUpdateAttrContext.function.js.map +1 -1
  129. package/js/render/buildBeforeElement.function.d.ts +2 -4
  130. package/js/render/buildBeforeElement.function.js +16 -22
  131. package/js/render/buildBeforeElement.function.js.map +1 -1
  132. package/js/render/callTag.d.ts +4 -0
  133. package/js/render/callTag.function.d.ts +4 -0
  134. package/js/render/callTag.function.js +25 -0
  135. package/js/render/callTag.function.js.map +1 -0
  136. package/js/render/callTag.js +26 -0
  137. package/js/render/callTag.js.map +1 -0
  138. package/js/render/checkRenderUp.d.ts +2 -0
  139. package/js/render/checkRenderUp.function.d.ts +5 -0
  140. package/js/render/checkRenderUp.function.js +39 -0
  141. package/js/render/checkRenderUp.function.js.map +1 -0
  142. package/js/render/checkRenderUp.js +14 -0
  143. package/js/render/checkRenderUp.js.map +1 -0
  144. package/js/render/destroySupport.function.d.ts +1 -1
  145. package/js/render/destroySupport.function.js +12 -7
  146. package/js/render/destroySupport.function.js.map +1 -1
  147. package/js/render/dom/attachDomElement.function.d.ts +4 -0
  148. package/js/render/dom/attachDomElement.function.js +17 -0
  149. package/js/render/dom/attachDomElement.function.js.map +1 -0
  150. package/js/render/dom/attachDomElements.function.d.ts +2 -4
  151. package/js/render/dom/attachDomElements.function.js +48 -36
  152. package/js/render/dom/attachDomElements.function.js.map +1 -1
  153. package/js/render/dom/blankHandler.function.d.ts +1 -0
  154. package/js/render/dom/blankHandler.function.js +4 -0
  155. package/js/render/dom/blankHandler.function.js.map +1 -0
  156. package/js/render/dom/processAttributeArray.function.d.ts +4 -0
  157. package/js/render/dom/processAttributeArray.function.js +24 -0
  158. package/js/render/dom/processAttributeArray.function.js.map +1 -0
  159. package/js/render/executeWrap.function.d.ts +1 -1
  160. package/js/render/executeWrap.function.js +8 -6
  161. package/js/render/executeWrap.function.js.map +1 -1
  162. package/js/render/paint.function.d.ts +15 -6
  163. package/js/render/paint.function.js +40 -34
  164. package/js/render/paint.function.js.map +1 -1
  165. package/js/render/registerNewTagElement.function.d.ts +4 -2
  166. package/js/render/registerNewTagElement.function.js +24 -6
  167. package/js/render/registerNewTagElement.function.js.map +1 -1
  168. package/js/render/renderExistingTag.function.d.ts +1 -1
  169. package/js/render/renderExistingTag.function.js +3 -4
  170. package/js/render/renderExistingTag.function.js.map +1 -1
  171. package/js/render/renderSupport.function.d.ts +1 -4
  172. package/js/render/renderSupport.function.js +4 -37
  173. package/js/render/renderSupport.function.js.map +1 -1
  174. package/js/render/renderTagElement.function.d.ts +3 -3
  175. package/js/render/renderTagElement.function.js +48 -45
  176. package/js/render/renderTagElement.function.js.map +1 -1
  177. package/js/render/renderTagOnly.function.d.ts +7 -3
  178. package/js/render/renderTagOnly.function.js +31 -33
  179. package/js/render/renderTagOnly.function.js.map +1 -1
  180. package/js/render/renderWithSupport.function.d.ts +2 -2
  181. package/js/render/renderWithSupport.function.js +18 -7
  182. package/js/render/renderWithSupport.function.js.map +1 -1
  183. package/js/render/runAfterRender.function.d.ts +9 -0
  184. package/js/render/runAfterRender.function.js +37 -0
  185. package/js/render/runAfterRender.function.js.map +1 -0
  186. package/js/render/softDestroySupport.function.d.ts +1 -1
  187. package/js/render/softDestroySupport.function.js +11 -10
  188. package/js/render/softDestroySupport.function.js.map +1 -1
  189. package/js/render/update/processRenderOnceInit.function.d.ts +2 -3
  190. package/js/render/update/processRenderOnceInit.function.js +4 -4
  191. package/js/render/update/processRenderOnceInit.function.js.map +1 -1
  192. package/js/render/update/processTag.function.d.ts +2 -4
  193. package/js/render/update/processTag.function.js +12 -9
  194. package/js/render/update/processTag.function.js.map +1 -1
  195. package/js/render/update/updateExistingTagComponent.function.d.ts +1 -1
  196. package/js/render/update/updateExistingTagComponent.function.js +8 -8
  197. package/js/render/update/updateExistingTagComponent.function.js.map +1 -1
  198. package/js/render/update/updateSupportBy.function.d.ts +1 -2
  199. package/js/render/update/updateSupportBy.function.js +3 -4
  200. package/js/render/update/updateSupportBy.function.js.map +1 -1
  201. package/js/state/StateMemory.type.d.ts +5 -2
  202. package/js/state/array.function.js +1 -1
  203. package/js/state/array.function.js.map +1 -1
  204. package/js/state/callback.function.d.ts +7 -4
  205. package/js/state/callback.function.js +19 -16
  206. package/js/state/callback.function.js.map +1 -1
  207. package/js/state/callbackMaker.function.js +5 -4
  208. package/js/state/callbackMaker.function.js.map +1 -1
  209. package/js/state/callbackStateUpdate.function.d.ts +2 -2
  210. package/js/state/callbackStateUpdate.function.js +24 -6
  211. package/js/state/callbackStateUpdate.function.js.map +1 -1
  212. package/js/state/handleProviderChanges.function.d.ts +1 -1
  213. package/js/state/handleProviderChanges.function.js.map +1 -1
  214. package/js/state/index.d.ts +2 -2
  215. package/js/state/index.js +2 -2
  216. package/js/state/index.js.map +1 -1
  217. package/js/state/onDestroy.function.d.ts +3 -0
  218. package/js/state/onDestroy.function.js +11 -0
  219. package/js/state/onDestroy.function.js.map +1 -0
  220. package/js/state/onDestroy.js +1 -1
  221. package/js/state/onDestroy.js.map +1 -1
  222. package/js/state/onInit.function.d.ts +4 -0
  223. package/js/state/onInit.function.js +24 -0
  224. package/js/state/onInit.function.js.map +1 -0
  225. package/js/state/onInit.js +1 -1
  226. package/js/state/onInit.js.map +1 -1
  227. package/js/state/onRender.function.d.ts +1 -0
  228. package/js/state/onRender.function.js +22 -0
  229. package/js/state/onRender.function.js.map +1 -0
  230. package/js/state/providers.d.ts +1 -1
  231. package/js/state/providers.js +11 -9
  232. package/js/state/providers.js.map +1 -1
  233. package/js/state/providersChangeCheck.function.d.ts +2 -1
  234. package/js/state/providersChangeCheck.function.js +3 -2
  235. package/js/state/providersChangeCheck.function.js.map +1 -1
  236. package/js/state/reState.d.ts +2 -0
  237. package/js/state/reState.function.d.ts +5 -0
  238. package/js/state/reState.function.js +28 -0
  239. package/js/state/reState.function.js.map +1 -0
  240. package/js/state/reState.js +8 -0
  241. package/js/state/reState.js.map +1 -0
  242. package/js/state/setUse.function.d.ts +1 -1
  243. package/js/state/setUseMemory.object.js +1 -1
  244. package/js/state/setUseMemory.object.js.map +1 -1
  245. package/js/state/signal.function.d.ts +1 -1
  246. package/js/state/signal.function.js +9 -5
  247. package/js/state/signal.function.js.map +1 -1
  248. package/js/state/state.utils.d.ts +4 -4
  249. package/js/state/state.utils.js +10 -19
  250. package/js/state/state.utils.js.map +1 -1
  251. package/js/state/stateHandlers.js +12 -3
  252. package/js/state/stateHandlers.js.map +1 -1
  253. package/js/state/states.utils.js +7 -1
  254. package/js/state/states.utils.js.map +1 -1
  255. package/js/state/subject.function.d.ts +7 -6
  256. package/js/state/subject.function.js +13 -5
  257. package/js/state/subject.function.js.map +1 -1
  258. package/js/state/syncStates.function.d.ts +1 -1
  259. package/js/state/syncStates.function.js +5 -1
  260. package/js/state/syncStates.function.js.map +1 -1
  261. package/js/state/tagClosed$.subject.d.ts +1 -1
  262. package/js/state/tagClosed$.subject.js +1 -1
  263. package/js/state/tagClosed$.subject.js.map +1 -1
  264. package/js/state/watch.function.d.ts +6 -5
  265. package/js/state/watch.function.js +63 -38
  266. package/js/state/watch.function.js.map +1 -1
  267. package/js/subject/Subject.class.d.ts +17 -16
  268. package/js/subject/Subject.class.js +17 -14
  269. package/js/subject/Subject.class.js.map +1 -1
  270. package/js/tag/AnySupport.type.d.ts +5 -7
  271. package/js/tag/AttributeContextItem.type.d.ts +16 -0
  272. package/js/tag/AttributeContextItem.type.js +2 -0
  273. package/js/tag/AttributeContextItem.type.js.map +1 -0
  274. package/js/tag/Context.types.d.ts +5 -5
  275. package/js/tag/ContextItem.type.d.ts +31 -16
  276. package/js/tag/ContextStateMeta.type.d.ts +13 -0
  277. package/js/tag/ContextStateMeta.type.js +2 -0
  278. package/js/tag/ContextStateMeta.type.js.map +1 -0
  279. package/js/tag/ProcessInit.type.d.ts +8 -3
  280. package/js/tag/ProcessUpdate.type.d.ts +3 -3
  281. package/js/tag/SupportContextItem.type.d.ts +18 -2
  282. package/js/tag/Tag.type.d.ts +1 -1
  283. package/js/tag/TagMaker.type.d.ts +1 -1
  284. package/js/tag/checkDestroyPrevious.function.d.ts +1 -3
  285. package/js/tag/checkDestroyPrevious.function.js +3 -13
  286. package/js/tag/checkDestroyPrevious.function.js.map +1 -1
  287. package/js/tag/checkStateMismatch.function.d.ts +1 -1
  288. package/js/tag/checkStateMismatch.function.js +3 -3
  289. package/js/tag/checkStateMismatch.function.js.map +1 -1
  290. package/js/tag/checkTagValueChange.function.d.ts +4 -5
  291. package/js/tag/checkTagValueChange.function.js +89 -15
  292. package/js/tag/checkTagValueChange.function.js.map +1 -1
  293. package/js/tag/createHtmlSupport.function.d.ts +6 -5
  294. package/js/tag/createHtmlSupport.function.js +12 -9
  295. package/js/tag/createHtmlSupport.function.js.map +1 -1
  296. package/js/tag/createSupport.function.d.ts +3 -2
  297. package/js/tag/createSupport.function.js +4 -2
  298. package/js/tag/createSupport.function.js.map +1 -1
  299. package/js/tag/cycles/getSupportInCycle.function.d.ts +3 -0
  300. package/js/tag/cycles/getSupportInCycle.function.js +10 -0
  301. package/js/tag/cycles/getSupportInCycle.function.js.map +1 -0
  302. package/js/tag/cycles/index.d.ts +1 -0
  303. package/js/tag/cycles/index.js +2 -0
  304. package/js/tag/cycles/index.js.map +1 -0
  305. package/js/tag/cycles/setContextInCycle.function.d.ts +7 -0
  306. package/js/tag/cycles/setContextInCycle.function.js +19 -0
  307. package/js/tag/cycles/setContextInCycle.function.js.map +1 -0
  308. package/js/tag/destroyArrayContext.function.d.ts +4 -0
  309. package/js/tag/destroyArrayContext.function.js +14 -0
  310. package/js/tag/destroyArrayContext.function.js.map +1 -0
  311. package/js/tag/destroyContext.function.d.ts +1 -1
  312. package/js/tag/destroyContext.function.js +5 -4
  313. package/js/tag/destroyContext.function.js.map +1 -1
  314. package/js/tag/destroyContexts.function.d.ts +9 -0
  315. package/js/tag/destroyContexts.function.js +61 -0
  316. package/js/tag/destroyContexts.function.js.map +1 -0
  317. package/js/tag/destroyHtmlDomMeta.function.d.ts +3 -0
  318. package/js/tag/destroyHtmlDomMeta.function.js +19 -0
  319. package/js/tag/destroyHtmlDomMeta.function.js.map +1 -0
  320. package/js/tag/destroySupportByContextItem.function.d.ts +2 -0
  321. package/js/tag/destroySupportByContextItem.function.js +19 -0
  322. package/js/tag/destroySupportByContextItem.function.js.map +1 -0
  323. package/js/tag/domMetaCollector.d.ts +1 -1
  324. package/js/tag/domMetaCollector.js +1 -1
  325. package/js/tag/domMetaCollector.js.map +1 -1
  326. package/js/tag/getDomTag.function.js +7 -4
  327. package/js/tag/getDomTag.function.js.map +1 -1
  328. package/js/tag/getTagWrap.function.d.ts +1 -1
  329. package/js/tag/getTagWrap.function.js +2 -2
  330. package/js/tag/getTagWrap.function.js.map +1 -1
  331. package/js/tag/getTemplaterResult.function.d.ts +7 -20
  332. package/js/tag/getTemplaterResult.function.js +14 -3
  333. package/js/tag/getTemplaterResult.function.js.map +1 -1
  334. package/js/tag/hasPropChanges.function.js +3 -2
  335. package/js/tag/hasPropChanges.function.js.map +1 -1
  336. package/js/tag/hasSupportChanged.function.d.ts +2 -3
  337. package/js/tag/hasSupportChanged.function.js +0 -43
  338. package/js/tag/hasSupportChanged.function.js.map +1 -1
  339. package/js/tag/html.d.ts +3 -3
  340. package/js/tag/html.js.map +1 -1
  341. package/js/tag/index.d.ts +2 -3
  342. package/js/tag/index.js +1 -1
  343. package/js/tag/index.js.map +1 -1
  344. package/js/tag/isLikeTags.function.d.ts +1 -1
  345. package/js/tag/loadNewBaseSupport.function.d.ts +1 -1
  346. package/js/tag/loadNewBaseSupport.function.js +6 -3
  347. package/js/tag/loadNewBaseSupport.function.js.map +1 -1
  348. package/js/tag/output.function.d.ts +2 -2
  349. package/js/tag/output.function.js +31 -14
  350. package/js/tag/output.function.js.map +1 -1
  351. package/js/tag/processOuterDomTagInit.function.d.ts +4 -3
  352. package/js/tag/processOuterDomTagInit.function.js +22 -16
  353. package/js/tag/processOuterDomTagInit.function.js.map +1 -1
  354. package/js/tag/processUpdateContext.function.d.ts +1 -1
  355. package/js/tag/processUpdateContext.function.js +16 -11
  356. package/js/tag/processUpdateContext.function.js.map +1 -1
  357. package/js/tag/props/alterProp.function.d.ts +9 -7
  358. package/js/tag/props/alterProp.function.js +53 -26
  359. package/js/tag/props/alterProp.function.js.map +1 -1
  360. package/js/tag/props/clonePropsBy.function.d.ts +1 -1
  361. package/js/tag/props/safeRenderSupport.function.d.ts +1 -1
  362. package/js/tag/shallowPropMatch.function.d.ts +2 -0
  363. package/js/tag/shallowPropMatch.function.js +44 -0
  364. package/js/tag/shallowPropMatch.function.js.map +1 -0
  365. package/js/tag/smartRemoveKids.function.d.ts +4 -2
  366. package/js/tag/smartRemoveKids.function.js +28 -47
  367. package/js/tag/smartRemoveKids.function.js.map +1 -1
  368. package/js/tag/tag.types.d.ts +8 -4
  369. package/js/tag/tag.types.js.map +1 -1
  370. package/js/tag/tagElement.d.ts +4 -4
  371. package/js/tag/tagElement.js +30 -13
  372. package/js/tag/tagElement.js.map +1 -1
  373. package/js/tag/tagRunner.d.ts +1 -1
  374. package/js/tag/tagRunner.js +3 -4
  375. package/js/tag/tagRunner.js.map +1 -1
  376. package/js/tag/update/SubContext.type.d.ts +18 -8
  377. package/js/tag/update/arrays/compareArrayItems.function.d.ts +7 -0
  378. package/js/tag/update/arrays/compareArrayItems.function.js +39 -0
  379. package/js/tag/update/arrays/compareArrayItems.function.js.map +1 -0
  380. package/js/tag/update/arrays/processTagArray.d.ts +7 -0
  381. package/js/tag/update/arrays/processTagArray.js +81 -0
  382. package/js/tag/update/arrays/processTagArray.js.map +1 -0
  383. package/js/tag/update/checkStillSubscription.function.d.ts +4 -0
  384. package/js/tag/update/checkStillSubscription.function.js +16 -0
  385. package/js/tag/update/checkStillSubscription.function.js.map +1 -0
  386. package/js/tag/update/checkSubContext.function.d.ts +7 -2
  387. package/js/tag/update/checkSubContext.function.js +36 -9
  388. package/js/tag/update/checkSubContext.function.js.map +1 -1
  389. package/js/tag/update/compareArrayItems.function.d.ts +1 -1
  390. package/js/tag/update/compareArrayItems.function.js +7 -10
  391. package/js/tag/update/compareArrayItems.function.js.map +1 -1
  392. package/js/tag/update/convertTagToElementManaged.d.ts +2 -0
  393. package/js/tag/update/convertTagToElementManaged.function.d.ts +2 -0
  394. package/js/tag/update/convertTagToElementManaged.function.js +37 -0
  395. package/js/tag/update/convertTagToElementManaged.function.js.map +1 -0
  396. package/js/tag/update/convertTagToElementManaged.js +32 -0
  397. package/js/tag/update/convertTagToElementManaged.js.map +1 -0
  398. package/js/tag/update/createAndProcessContextItem.function.d.ts +4 -6
  399. package/js/tag/update/createAndProcessContextItem.function.js +9 -14
  400. package/js/tag/update/createAndProcessContextItem.function.js.map +1 -1
  401. package/js/tag/update/deleteContextSubContext.function.d.ts +5 -0
  402. package/js/tag/update/deleteContextSubContext.function.js +25 -0
  403. package/js/tag/update/deleteContextSubContext.function.js.map +1 -0
  404. package/js/tag/update/deleteSubContext.function.js +1 -4
  405. package/js/tag/update/deleteSubContext.function.js.map +1 -1
  406. package/js/tag/update/forceUpdateExistingValue.function.d.ts +4 -5
  407. package/js/tag/update/forceUpdateExistingValue.function.js +6 -5
  408. package/js/tag/update/forceUpdateExistingValue.function.js.map +1 -1
  409. package/js/tag/update/getNewGlobal.function.d.ts +4 -3
  410. package/js/tag/update/getNewGlobal.function.js +13 -2
  411. package/js/tag/update/getNewGlobal.function.js.map +1 -1
  412. package/js/tag/update/getOverrideTagVar.d.ts +5 -0
  413. package/js/tag/update/getOverrideTagVar.js +65 -0
  414. package/js/tag/update/getOverrideTagVar.js.map +1 -0
  415. package/js/tag/update/handleStillTag.function.d.ts +1 -1
  416. package/js/tag/update/handleStillTag.function.js +2 -3
  417. package/js/tag/update/handleStillTag.function.js.map +1 -1
  418. package/js/tag/update/handleTagTypeChangeFrom.d.ts +5 -0
  419. package/js/tag/update/handleTagTypeChangeFrom.function.d.ts +5 -0
  420. package/js/tag/update/handleTagTypeChangeFrom.function.js +13 -0
  421. package/js/tag/update/handleTagTypeChangeFrom.function.js.map +1 -0
  422. package/js/tag/update/handleTagTypeChangeFrom.js +13 -0
  423. package/js/tag/update/handleTagTypeChangeFrom.js.map +1 -0
  424. package/js/tag/update/index.d.ts +2 -2
  425. package/js/tag/update/index.js +2 -2
  426. package/js/tag/update/index.js.map +1 -1
  427. package/js/tag/update/onFirstSubContext.function.d.ts +1 -3
  428. package/js/tag/update/onFirstSubContext.function.js +1 -2
  429. package/js/tag/update/onFirstSubContext.function.js.map +1 -1
  430. package/js/tag/update/oneRenderToSupport.function.d.ts +1 -1
  431. package/js/tag/update/processDomTagInit.function.d.ts +2 -3
  432. package/js/tag/update/processDomTagInit.function.js +6 -5
  433. package/js/tag/update/processDomTagInit.function.js.map +1 -1
  434. package/js/tag/update/processFirstSubjectComponent.function.d.ts +7 -4
  435. package/js/tag/update/processFirstSubjectComponent.function.js +53 -17
  436. package/js/tag/update/processFirstSubjectComponent.function.js.map +1 -1
  437. package/js/tag/update/processFirstSubjectValue.function.d.ts +4 -6
  438. package/js/tag/update/processFirstSubjectValue.function.js +3 -6
  439. package/js/tag/update/processFirstSubjectValue.function.js.map +1 -1
  440. package/js/tag/update/processNewSubjectTag.function.d.ts +2 -3
  441. package/js/tag/update/processNewSubjectTag.function.js +5 -5
  442. package/js/tag/update/processNewSubjectTag.function.js.map +1 -1
  443. package/js/tag/update/processRegularValue.function.js +2 -1
  444. package/js/tag/update/processRegularValue.function.js.map +1 -1
  445. package/js/tag/update/processSignal.function.d.ts +4 -0
  446. package/js/tag/update/processSignal.function.js +11 -0
  447. package/js/tag/update/processSignal.function.js.map +1 -0
  448. package/js/tag/update/processSubscribe.function.d.ts +3 -2
  449. package/js/tag/update/processSubscribe.function.js +16 -10
  450. package/js/tag/update/processSubscribe.function.js.map +1 -1
  451. package/js/tag/update/processSubscribeWith.function.d.ts +6 -0
  452. package/js/tag/update/processSubscribeWith.function.js +26 -0
  453. package/js/tag/update/processSubscribeWith.function.js.map +1 -0
  454. package/js/tag/update/processTagArray.d.ts +3 -4
  455. package/js/tag/update/processTagArray.js +14 -14
  456. package/js/tag/update/processTagArray.js.map +1 -1
  457. package/js/tag/update/processTagComponentInit.function.d.ts +2 -3
  458. package/js/tag/update/processTagComponentInit.function.js +3 -5
  459. package/js/tag/update/processTagComponentInit.function.js.map +1 -1
  460. package/js/tag/update/processTagInit.function.d.ts +2 -3
  461. package/js/tag/update/processTagInit.function.js +4 -3
  462. package/js/tag/update/processTagInit.function.js.map +1 -1
  463. package/js/tag/update/processTagResult.function.d.ts +2 -3
  464. package/js/tag/update/processTagResult.function.js +2 -2
  465. package/js/tag/update/processTagResult.function.js.map +1 -1
  466. package/js/tag/update/processUpdateSubscribe.d.ts +4 -0
  467. package/js/tag/update/processUpdateSubscribe.function.d.ts +2 -0
  468. package/js/tag/update/processUpdateSubscribe.function.js +22 -0
  469. package/js/tag/update/processUpdateSubscribe.function.js.map +1 -0
  470. package/js/tag/update/processUpdateSubscribe.js +15 -0
  471. package/js/tag/update/processUpdateSubscribe.js.map +1 -0
  472. package/js/tag/update/setupSubscribe.function.d.ts +10 -8
  473. package/js/tag/update/setupSubscribe.function.js +66 -39
  474. package/js/tag/update/setupSubscribe.function.js.map +1 -1
  475. package/js/tag/update/syncPriorPropFunction.function.d.ts +1 -1
  476. package/js/tag/update/tagValueUpdateHandler.function.d.ts +2 -3
  477. package/js/tag/update/tagValueUpdateHandler.function.js +12 -3
  478. package/js/tag/update/tagValueUpdateHandler.function.js.map +1 -1
  479. package/js/tag/update/tryUpdateToTag.function.d.ts +2 -3
  480. package/js/tag/update/tryUpdateToTag.function.js +14 -12
  481. package/js/tag/update/tryUpdateToTag.function.js.map +1 -1
  482. package/js/tag/update/updateExistingArray.function.d.ts +1 -1
  483. package/js/tag/update/updateExistingObject.function.d.ts +1 -1
  484. package/js/tag/update/updateToDiffValue.function.d.ts +3 -3
  485. package/js/tag/update/updateToDiffValue.function.js +10 -10
  486. package/js/tag/update/updateToDiffValue.function.js.map +1 -1
  487. package/js/tagJsVars/getArrayTagJsVar.function.d.ts +1 -0
  488. package/js/tagJsVars/getArrayTagJsVar.function.js +22 -7
  489. package/js/tagJsVars/getArrayTagJsVar.function.js.map +1 -1
  490. package/js/tagJsVars/getInnerHTML.function.js +12 -8
  491. package/js/tagJsVars/getInnerHTML.function.js.map +1 -1
  492. package/js/tagJsVars/getSimpleTagVar.function.d.ts +5 -2
  493. package/js/tagJsVars/getSimpleTagVar.function.js +40 -13
  494. package/js/tagJsVars/getSimpleTagVar.function.js.map +1 -1
  495. package/js/tagJsVars/host.function.d.ts +12 -5
  496. package/js/tagJsVars/host.function.js +92 -18
  497. package/js/tagJsVars/host.function.js.map +1 -1
  498. package/js/tagJsVars/pipe.function.d.ts +2 -1
  499. package/js/tagJsVars/pipe.function.js +20 -8
  500. package/js/tagJsVars/pipe.function.js.map +1 -1
  501. package/js/tagJsVars/processAttributeUpdate.function.d.ts +5 -0
  502. package/js/tagJsVars/processAttributeUpdate.function.js +17 -0
  503. package/js/tagJsVars/processAttributeUpdate.function.js.map +1 -0
  504. package/js/tagJsVars/processSimpleAttribute.d.ts +3 -0
  505. package/js/tagJsVars/processSimpleAttribute.function.d.ts +7 -0
  506. package/js/tagJsVars/processSimpleAttribute.function.js +18 -0
  507. package/js/tagJsVars/processSimpleAttribute.function.js.map +1 -0
  508. package/js/tagJsVars/processSimpleAttribute.js +12 -0
  509. package/js/tagJsVars/processSimpleAttribute.js.map +1 -0
  510. package/js/tagJsVars/processSubscribeAttribute.function.d.ts +10 -0
  511. package/js/tagJsVars/processSubscribeAttribute.function.js +25 -0
  512. package/js/tagJsVars/processSubscribeAttribute.function.js.map +1 -0
  513. package/js/tagJsVars/processSubscribeAttributeUpdate.d.ts +5 -0
  514. package/js/tagJsVars/processSubscribeAttributeUpdate.function.d.ts +5 -0
  515. package/js/tagJsVars/processSubscribeAttributeUpdate.function.js +21 -0
  516. package/js/tagJsVars/processSubscribeAttributeUpdate.function.js.map +1 -0
  517. package/js/tagJsVars/processSubscribeAttributeUpdate.js +18 -0
  518. package/js/tagJsVars/processSubscribeAttributeUpdate.js.map +1 -0
  519. package/js/tagJsVars/processSubscribeWithAttribute.function.d.ts +18 -0
  520. package/js/tagJsVars/processSubscribeWithAttribute.function.js +23 -0
  521. package/js/tagJsVars/processSubscribeWithAttribute.function.js.map +1 -0
  522. package/js/tagJsVars/subscribe.function.d.ts +13 -11
  523. package/js/tagJsVars/subscribe.function.js +19 -11
  524. package/js/tagJsVars/subscribe.function.js.map +1 -1
  525. package/js/tagJsVars/subscribeWith.function.d.ts +5 -1
  526. package/js/tagJsVars/subscribeWith.function.js +35 -6
  527. package/js/tagJsVars/subscribeWith.function.js.map +1 -1
  528. package/js/tagJsVars/tag.function.d.ts +28 -0
  529. package/js/tagJsVars/tag.function.js +68 -8
  530. package/js/tagJsVars/tag.function.js.map +1 -1
  531. package/js/tagJsVars/tagInject.function.d.ts +5 -0
  532. package/js/tagJsVars/tagInject.function.js +43 -0
  533. package/js/tagJsVars/tagInject.function.js.map +1 -0
  534. package/js/tagJsVars/tagJsVar.type.d.ts +13 -6
  535. package/package.json +1 -1
@@ -0,0 +1,5 @@
1
+ import { AnySupport } from '../tag/index.js';
2
+ import { Props } from '../Props.js';
3
+ import { TemplaterResult } from '../tag/getTemplaterResult.function.js';
4
+ export declare function checkRenderUp(templater: TemplaterResult, support: AnySupport): boolean;
5
+ export declare function hasPropLengthsChanged(nowProps: Props, latestProps: Props): boolean;
@@ -0,0 +1,39 @@
1
+ import { deepEqual } from '../deepFunctions.js';
2
+ import { PropWatches } from '../index.js';
3
+ import { deepCompareDepth, immutablePropMatch } from '../tag/hasSupportChanged.function.js';
4
+ import { shallowPropMatch } from '../tag/shallowPropMatch.function.js';
5
+ export function checkRenderUp(templater, support) {
6
+ const global = support.context.global;
7
+ if (global && global.deleted) {
8
+ return false;
9
+ }
10
+ const selfPropChange = hasPropsToOwnerChanged(templater, support);
11
+ // render owner up first and that will cause me to re-render
12
+ if (selfPropChange) {
13
+ return true;
14
+ }
15
+ return false;
16
+ }
17
+ /** Used when crawling up the chain of child-to-parent tags. See hasSupportChanged for the downward direction */
18
+ function hasPropsToOwnerChanged(templater, support) {
19
+ const nowProps = templater.props;
20
+ const propsConfig = support.propsConfig;
21
+ const latestProps = propsConfig.latest;
22
+ const compareLen = hasPropLengthsChanged(nowProps, latestProps);
23
+ if (compareLen) {
24
+ return true;
25
+ }
26
+ switch (templater.propWatch) {
27
+ case PropWatches.IMMUTABLE:
28
+ return immutablePropMatch(nowProps, latestProps);
29
+ case PropWatches.SHALLOW:
30
+ return shallowPropMatch(nowProps, latestProps);
31
+ }
32
+ return !deepEqual(nowProps, latestProps, deepCompareDepth);
33
+ }
34
+ export function hasPropLengthsChanged(nowProps, latestProps) {
35
+ const nowLen = nowProps.length;
36
+ const latestLen = latestProps.length;
37
+ return nowLen !== latestLen;
38
+ }
39
+ //# sourceMappingURL=checkRenderUp.function.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkRenderUp.function.js","sourceRoot":"","sources":["../../ts/render/checkRenderUp.function.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAG/C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAA;AAC3F,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AAEtE,MAAM,UAAU,aAAa,CAC3B,SAA0B,EAC1B,OAAmB;IAEnB,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAA;IACrC,IAAI,MAAM,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;QAC7B,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,cAAc,GAAG,sBAAsB,CAC3C,SAAS,EACT,OAAO,CACR,CAAA;IAED,4DAA4D;IAC5D,IAAG,cAAc,EAAE,CAAC;QAClB,OAAO,IAAI,CAAA;IACb,CAAC;IAED,OAAO,KAAK,CAAA;AACd,CAAC;AAED,gHAAgH;AAChH,SAAS,sBAAsB,CAC7B,SAA0B,EAC1B,OAAmB;IAEnB,MAAM,QAAQ,GAAG,SAAS,CAAC,KAAc,CAAA;IACzC,MAAM,WAAW,GAAG,OAAO,CAAC,WAA0B,CAAA;IACtD,MAAM,WAAW,GAAG,WAAW,CAAC,MAAM,CAAA;IACtC,MAAM,UAAU,GAAG,qBAAqB,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAA;IAE/D,IAAG,UAAU,EAAE,CAAC;QACd,OAAO,IAAI,CAAA;IACb,CAAC;IAED,QAAQ,SAAS,CAAC,SAAS,EAAE,CAAC;QAC5B,KAAK,WAAW,CAAC,SAAS;YACxB,OAAO,kBAAkB,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAA;QAElD,KAAK,WAAW,CAAC,OAAO;YACtB,OAAO,gBAAgB,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAA;IAClD,CAAC;IAED,OAAO,CAAC,SAAS,CAAC,QAAQ,EAAE,WAAW,EAAE,gBAAgB,CAAC,CAAA;AAC5D,CAAC;AAED,MAAM,UAAU,qBAAqB,CACnC,QAAe,EACf,WAAkB;IAElB,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAA;IAC9B,MAAM,SAAS,GAAG,WAAW,CAAC,MAAM,CAAA;IAEpC,OAAO,MAAM,KAAK,SAAS,CAAA;AAC7B,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { hasPropsToOwnerChanged } from './renderSupport.function.js';
2
+ export function checkRenderUp(templater, support) {
3
+ const global = support.context.global;
4
+ if (global && global.deleted) {
5
+ return false;
6
+ }
7
+ const selfPropChange = hasPropsToOwnerChanged(templater, support);
8
+ // render owner up first and that will cause me to re-render
9
+ if (selfPropChange) {
10
+ return true;
11
+ }
12
+ return false;
13
+ }
14
+ //# sourceMappingURL=checkRenderUp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkRenderUp.js","sourceRoot":"","sources":["../../ts/render/checkRenderUp.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AAGpE,MAAM,UAAU,aAAa,CAC3B,SAA0B,EAC1B,OAAmB;IAEnB,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAA;IACrC,IAAI,MAAM,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;QAC7B,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,cAAc,GAAG,sBAAsB,CAC3C,SAAS,EACT,OAAO,CACR,CAAC;IAEF,4DAA4D;IAC5D,IAAI,cAAc,EAAE,CAAC;QACnB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import { SupportTagGlobal } from '../tag/getTemplaterResult.function.js';
2
- import { AnySupport } from '../tag/AnySupport.type.js';
2
+ import { AnySupport } from '../tag/index.js';
3
3
  export declare function destroySupport(support: AnySupport, global: SupportTagGlobal): Promise<void>[];
@@ -1,17 +1,22 @@
1
- import { destroyContext } from '../tag/destroyContext.function.js';
1
+ import { destroyContexts } from '../tag/destroyContexts.function.js';
2
2
  import { smartRemoveKids } from '../tag/smartRemoveKids.function.js';
3
3
  import { runBeforeDestroy } from '../tag/tagRunner.js';
4
4
  export function destroySupport(support, global) {
5
- const subject = support.context;
5
+ const context = support.context;
6
6
  global.deleted = true;
7
- subject.renderCount = 0; // if it comes back, wont be considered an update
7
+ context.renderCount = 0; // if it comes back, wont be considered an update
8
8
  const promises = [];
9
- const context = global.contexts;
10
- destroyContext(context, support);
11
- if (global.destroy$) {
9
+ const subContexts = context.contexts;
10
+ destroyContexts(subContexts, support);
11
+ // tag() only destroy
12
+ if (support.templater.wrapper) {
12
13
  runBeforeDestroy(support, global);
13
14
  }
14
- smartRemoveKids(global, promises);
15
+ smartRemoveKids(context, promises);
16
+ delete context.state;
17
+ delete context.contexts;
18
+ delete context.returnValue;
19
+ delete context.providers;
15
20
  return promises;
16
21
  }
17
22
  //# sourceMappingURL=destroySupport.function.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"destroySupport.function.js","sourceRoot":"","sources":["../../ts/render/destroySupport.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,oCAA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G,CAAC;QAC/B,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAA;IACnC,CAAC;IAED,eAAe,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAA;IAElC,OAAQ,OAAuB,CAAC,KAAK,CAAA;IACrC,OAAQ,OAAuB,CAAC,QAAQ,CAAA;IACxC,OAAO,OAAO,CAAC,WAAW,CAAA;IAC1B,OAAO,OAAO,CAAC,SAAS,CAAA;IAExB,OAAO,QAAQ,CAAA;AACjB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { DomObjectElement } from "../../interpolations/optimizers/ObjectNode.types.js";
2
+ import { AnySupport } from "../../tag/AnySupport.type.js";
3
+ import { ContextItem } from "../../tag/ContextItem.type.js";
4
+ export declare function attachDomElement(domElement: HTMLElement, node: DomObjectElement, values: any[], support: AnySupport, parentContext: ContextItem, appendTo: Element | undefined, insertBefore: Text | undefined): void;
@@ -0,0 +1,17 @@
1
+ import { paintAppends, paintAppend, paintCommands, paintBefore } from "../paint.function.js";
2
+ import { processAttributeArray } from "./processAttributeArray.function.js";
3
+ export function attachDomElement(domElement, node, values, support, parentContext, appendTo, insertBefore) {
4
+ // attributes that may effect style, come first for performance
5
+ if (node.at) {
6
+ processAttributeArray(node.at, values, domElement, support,
7
+ // contexts,
8
+ parentContext);
9
+ }
10
+ if (appendTo) {
11
+ paintAppends.push([paintAppend, [appendTo, domElement, 'appendToAttachDomElement']]);
12
+ }
13
+ else {
14
+ paintCommands.push([paintBefore, [insertBefore, domElement, 'insertBeforeAttachDomElement']]);
15
+ }
16
+ }
17
+ //# sourceMappingURL=attachDomElement.function.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attachDomElement.function.js","sourceRoot":"","sources":["../../../ts/render/dom/attachDomElement.function.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAG5F,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAA;AAE3E,MAAM,UAAU,gBAAgB,CAC9B,UAAuB,EACvB,IAAsB,EACtB,MAAa,EACb,OAAmB,EACnB,aAA0B,EAC1B,QAA6B,EAC7B,YAA8B;IAE9B,+DAA+D;IAC/D,IAAI,IAAI,CAAC,EAAE,EAAE,CAAC;QACZ,qBAAqB,CACnB,IAAI,CAAC,EAAE,EACP,MAAM,EACN,UAAU,EACV,OAAO;QACP,YAAY;QACZ,aAAa,CAEd,CAAA;IACH,CAAC;IAED,IAAI,QAAQ,EAAE,CAAC;QACb,YAAY,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE,UAAU,EAAE,0BAA0B,CAAC,CAAC,CAAC,CAAA;IACtF,CAAC;SAAM,CAAC;QACN,aAAa,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC,YAAY,EAAE,UAAU,EAAE,8BAA8B,CAAC,CAAC,CAAC,CAAA;IAC/F,CAAC;AACH,CAAC"}
@@ -2,10 +2,8 @@ import { DomObjectChildren } from "../../interpolations/optimizers/ObjectNode.ty
2
2
  import { AnySupport } from "../../tag/AnySupport.type.js";
3
3
  import { ContextItem } from "../../tag/ContextItem.type.js";
4
4
  import { ObjectChildren } from "../../interpolations/optimizers/LikeObjectElement.type.js";
5
- import { TagCounts } from "../../tag/TagCounts.type.js";
6
- export declare const blankHandler: () => undefined;
7
- export declare function attachDomElements(nodes: ObjectChildren, values: any[], support: AnySupport, counts: TagCounts, // used for animation stagger computing
8
- contexts: ContextItem[], depth: number, // used to know if dynamic variables live within parent owner tag/support
5
+ import { SupportContextItem } from "../../index.js";
6
+ export declare function attachDomElements(nodes: ObjectChildren, values: any[], support: AnySupport, parentContext: SupportContextItem, depth: number, // used to know if dynamic variables live within parent owner tag/support
9
7
  appendTo?: Element, insertBefore?: Text): {
10
8
  contexts: ContextItem[];
11
9
  dom: DomObjectChildren;
@@ -1,29 +1,40 @@
1
1
  // taggedjs-no-compile
2
- import { howToSetFirstInputValue, howToSetStandAloneAttr } from "../../interpolations/attributes/howToSetInputValue.function.js";
3
- import { paintAppend, paintAppendElementString, paintAppends, paintBefore, paintBeforeElementString, paintCommands } from "../paint.function.js";
4
- import { processAttribute } from "../attributes/processAttribute.function.js";
2
+ import { paintAppend, paintAppendElementString, paintAppends, paintBeforeElementString, paintCommands } from "../paint.function.js";
5
3
  import { empty } from "../../tag/ValueTypes.enum.js";
6
4
  import { attachDynamicDom } from "../../interpolations/optimizers/attachDynamicDom.function.js";
7
- export const blankHandler = function blankHandler() {
8
- return undefined;
9
- };
10
- export function attachDomElements(nodes, values, support, counts, // used for animation stagger computing
11
- contexts, depth, // used to know if dynamic variables live within parent owner tag/support
5
+ import { attachDomElement } from "./attachDomElement.function.js";
6
+ import { Subject } from "../../subject/Subject.class.js";
7
+ import { isFunction } from "../../index.js";
8
+ export function attachDomElements(nodes, values, support, parentContext, depth, // used to know if dynamic variables live within parent owner tag/support
12
9
  appendTo, insertBefore) {
10
+ const context = support.context;
11
+ const contexts = context.contexts;
12
+ parentContext = context;
13
+ // const contexts = parentContext.contexts
13
14
  const dom = [];
14
15
  if (appendTo && insertBefore === undefined) {
15
16
  insertBefore = document.createTextNode(empty);
16
17
  paintAppends.push([paintAppend, [appendTo, insertBefore]]);
17
18
  appendTo = undefined;
18
19
  }
20
+ // loop map of elements that need to be put down on document
19
21
  for (let index = 0; index < nodes.length; ++index) {
20
22
  const node = nodes[index];
21
- const value = node.v;
22
- const isNum = !isNaN(value);
23
+ const v = node.v;
24
+ const isNum = !isNaN(v);
23
25
  if (isNum) {
24
- const index = contexts.length;
25
- const value = values[index];
26
- attachDynamicDom(value, contexts, support, counts, depth, appendTo, insertBefore);
26
+ // const valueIndex = context.varCounter // contexts.length
27
+ // const valueIndex = (parentContext as SupportContextItem).varCounter // contexts.length
28
+ const valueIndex = Number(v); // (parentContext as SupportContextItem).varCounter // contexts.length
29
+ const realValue = values[valueIndex];
30
+ const isSkipFun = isFunction(realValue) && realValue.tagJsType === undefined;
31
+ if (isSkipFun) {
32
+ ++parentContext.varCounter;
33
+ // TODO: I dont think we ever get in here?
34
+ continue;
35
+ }
36
+ const contextItem = attachDynamicDom(realValue, contexts, support, parentContext, depth, appendTo, insertBefore);
37
+ contextItem.valueIndex = valueIndex;
27
38
  continue;
28
39
  }
29
40
  const newNode = {}; // DomObjectText
@@ -32,34 +43,35 @@ appendTo, insertBefore) {
32
43
  attachDomText(newNode, node, appendTo, insertBefore);
33
44
  continue;
34
45
  }
35
- // one single html element
36
- const domElement = attachDomElement(newNode, node, values, support, contexts, counts, appendTo, insertBefore);
46
+ const domElement = newNode.domElement = document.createElement(node.nn);
47
+ // Create parent context for attributes first
48
+ const newParentContext = {
49
+ updateCount: 0,
50
+ isAttrs: true,
51
+ element: domElement,
52
+ parentContext,
53
+ contexts: [],
54
+ destroy$: new Subject(),
55
+ render$: new Subject(),
56
+ tagJsVar: {
57
+ tagJsType: 'new-parent-context'
58
+ },
59
+ valueIndex: -1,
60
+ withinOwnerElement: true,
61
+ };
62
+ newParentContext.varCounter = 0;
63
+ // one single html element. This is where attribute processing takes place
64
+ attachDomElement(domElement, node, values, support, newParentContext, appendTo, insertBefore);
65
+ // Update parent context with element and attribute contexts
66
+ newParentContext.element = domElement;
37
67
  if (node.ch) {
38
- newNode.ch = attachDomElements(node.ch, values, support, counts, contexts, depth + 1, domElement, insertBefore).dom;
68
+ newNode.ch = attachDomElements(node.ch, values, support, newParentContext,
69
+ // contexts,
70
+ depth + 1, domElement, insertBefore).dom;
39
71
  }
40
72
  }
41
73
  return { dom, contexts };
42
74
  }
43
- function attachDomElement(newNode, node, values, support, contexts, counts, appendTo, insertBefore) {
44
- const domElement = newNode.domElement = document.createElement(node.nn);
45
- // attributes that may effect style, come first for performance
46
- if (node.at) {
47
- for (const attr of node.at) {
48
- const name = attr[0];
49
- const value = attr[1];
50
- const isSpecial = attr[2] || false;
51
- const howToSet = attr.length > 1 ? howToSetFirstInputValue : howToSetStandAloneAttr;
52
- processAttribute(values, name, domElement, support, howToSet, contexts, isSpecial, counts, value);
53
- }
54
- }
55
- if (appendTo) {
56
- paintAppends.push([paintAppend, [appendTo, domElement]]);
57
- }
58
- else {
59
- paintCommands.push([paintBefore, [insertBefore, domElement]]);
60
- }
61
- return domElement;
62
- }
63
75
  function attachDomText(newNode, node, owner, insertBefore) {
64
76
  const textNode = newNode;
65
77
  const string = textNode.tc = node.tc;
@@ -1 +1 @@
1
- {"version":3,"file":"attachDomElements.function.js","sourceRoot":"","sources":["../../../ts/render/dom/attachDomElements.function.ts"],"names":[],"mappings":"AAAA,sBAAsB;AAGtB,OAAO,EAAY,uBAAuB,EAAE,sBAAsB,EAAE,MAAM,gEAAgE,CAAA;AAC1I,OAAO,EAAE,WAAW,EAAE,wBAAwB,EAAE,YAAY,EAAE,WAAW,EAAE,wBAAwB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEhJ,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAA;AAG7E,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAA;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8DAA8D,CAAA;AAG/F,MAAM,CAAC,MAAM,YAAY,GAAG,SAAS,YAAY;IAC/C,OAAO,SAAS,CAAA;AAClB,CAAC,CAAA;AAED,MAAM,UAAU,iBAAiB,CAC/B,KAAqB,EACrB,MAAa,EACb,OAAmB,EACnB,MAAiB,EAAE,uCAAuC;AAC1D,QAAuB,EACvB,KAAa,EAAE,yEAAyE;AACxF,QAAkB,EAClB,YAAmB;IAKnB,MAAM,GAAG,GAAsB,EAAE,CAAA;IAEjC,IAAG,QAAQ,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;QAC1C,YAAY,GAAG,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,CAAA;QAC7C,YAAY,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC,CAAA;QAC1D,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0B,EAC1B,YAA8B;IAE9B,MAAM,QAAQ,GAAI,OAAgC,CAAA;IAClD,MAAM,MAAM,GAAG,QAAQ,CAAC,EAAE,GAAI,IAA6B,CAAC,EAAE,CAAA;IAE9D,IAAI,KAAK,EAAE,CAAC;QACV,YAAY,CAAC,IAAI,CAAC,CAAC,wBAAwB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,iBAAiB,CAAC,GAAS;oBAC/F,QAAQ,CAAC,UAAU,GAAG,GAAG,CAAA;gBAC3B,CAAC,CAAC,CAAC,CAAC,CAAA;QACJ,OAAM;IACR,CAAC;IAED,aAAa,CAAC,IAAI,CAAC,CAAC,wBAAwB,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,SAAS,kBAAkB,CAAC,GAAS;gBACxG,QAAQ,CAAC,UAAU,GAAG,GAAG,CAAA;YAC3B,CAAC,CAAC,CAAC,CAAC,CAAA;AACN,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const blankHandler: () => any;
@@ -0,0 +1,4 @@
1
+ export const blankHandler = function blankHandler() {
2
+ return undefined;
3
+ };
4
+ //# sourceMappingURL=blankHandler.function.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blankHandler.function.js","sourceRoot":"","sources":["../../../ts/render/dom/blankHandler.function.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG,SAAS,YAAY;IAC/C,OAAO,SAAS,CAAA;AAClB,CAAC,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { ContextItem } from "../../tag/ContextItem.type.js";
2
+ import { AnySupport } from "../../tag/AnySupport.type.js";
3
+ import { Attribute } from "../../interpolations/optimizers/ObjectNode.types.js";
4
+ export declare function processAttributeArray(attrs: Attribute[], values: any[], domElement: HTMLElement, support: AnySupport, parentContext: ContextItem): void;
@@ -0,0 +1,24 @@
1
+ import { howToSetStandAloneAttr, setNonFunctionInputValue } from "../../interpolations/attributes/howToSetInputValue.function.js";
2
+ import { processAttribute } from "../attributes/processAttribute.function.js";
3
+ export function processAttributeArray(attrs, values, domElement, support,
4
+ // contexts: ContextItem[],
5
+ parentContext) {
6
+ for (const attr of attrs) {
7
+ const name = attr[0];
8
+ const value = attr[1];
9
+ // const isSpecial2 = !value?.tagJsVar && (typeof(name) === 'string' && isSpecialAttr(name))
10
+ const isSpecial = attr[2] || false; // isSpecial2
11
+ let howToSet = attr.length > 1 ? setNonFunctionInputValue : howToSetStandAloneAttr;
12
+ if (attr[3]) {
13
+ howToSet = attr[3];
14
+ }
15
+ // const contexts = support.context.contexts
16
+ const contexts = parentContext.contexts;
17
+ const newContext = processAttribute(name, value, values, domElement, support, howToSet, contexts, parentContext, isSpecial) || undefined;
18
+ if (typeof newContext === 'object') {
19
+ contexts.push(newContext);
20
+ ++parentContext.varCounter;
21
+ }
22
+ }
23
+ }
24
+ //# sourceMappingURL=processAttributeArray.function.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"processAttributeArray.function.js","sourceRoot":"","sources":["../../../ts/render/dom/processAttributeArray.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,gEAAgE,CAAA;AAC3I,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAA;AAM7E,MAAM,UAAU,qBAAqB,CACnC,KAAkB,EAClB,MAAa,EACb,UAAuB,EACvB,OAAmB;AACnB,2BAA2B;AAC3B,aAA0B;IAE1B,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,CAAA;QACpB,MAAM,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,CAAA;QACrB,4FAA4F;QAC5F,MAAM,SAAS,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,KAAK,CAAA,CAAC,aAAa;QAChD,IAAI,QAAQ,GAAa,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,sBAAsB,CAAA;QAE5F,IAAG,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;YACX,QAAQ,GAAG,IAAI,CAAC,CAAC,CAAC,CAAA;QACpB,CAAC;QAED,4CAA4C;QAC5C,MAAM,QAAQ,GAAG,aAAa,CAAC,QAAyB,CAAA;QACxD,MAAM,UAAU,GAAG,gBAAgB,CACjC,IAAI,EACJ,KAAK,EACL,MAAM,EACN,UAAU,EACV,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,SAAS,CACK,IAAI,SAAS,CAAA;QAE7B,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE,CAAC;YACnC,QAAQ,CAAC,IAAI,CAAC,UAAyB,CAAC,CAAA;YACxC,EAAG,aAAoC,CAAC,UAAU,CAAA;QACpD,CAAC;IACH,CAAC;AACH,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { TemplaterResult } from '../tag/getTemplaterResult.function.js';
2
2
  import { TagWrapper } from '../tag/tag.utils.js';
3
- import { AnySupport } from '../tag/AnySupport.type.js';
3
+ import { AnySupport } from '../tag/index.js';
4
4
  import { Props } from '../Props.js';
5
5
  export declare function executeWrap(templater: TemplaterResult, result: TagWrapper<unknown>, useSupport: AnySupport, castedProps?: Props): AnySupport;
@@ -1,6 +1,7 @@
1
1
  import { BasicTypes, ValueTypes } from '../tag/ValueTypes.enum.js';
2
2
  import { setUseMemory } from '../state/setUseMemory.object.js';
3
- import { setSupportInCycle } from '../tag/getSupportInCycle.function.js';
3
+ import { setSupportInCycle } from '../tag/cycles/getSupportInCycle.function.js';
4
+ import { removeContextInCycle } from '../tag/cycles/setContextInCycle.function.js';
4
5
  export function executeWrap(templater, result, useSupport, castedProps) {
5
6
  const originalFunction = result.original; // (innerTagWrap as any).original as unknown as TagComponent
6
7
  const stateless = templater.tagJsType === ValueTypes.stateRender;
@@ -12,16 +13,17 @@ export function executeWrap(templater, result, useSupport, castedProps) {
12
13
  }
13
14
  else {
14
15
  tag = originalFunction(...castedProps);
15
- // CALL ORIGINAL COMPONENT FUNCTION
16
- if (typeof (tag) === BasicTypes.function) {
16
+ // tag returns another function expected to be called
17
+ if (typeof (tag) === BasicTypes.function && tag.tagJsType === undefined) {
17
18
  tag = tag();
18
19
  }
19
20
  }
21
+ useSupport.context.returnValue = tag;
22
+ useSupport.returnValue = tag;
20
23
  tag.templater = templater;
21
24
  templater.tag = tag;
22
- useSupport.state = config.stateArray;
23
- useSupport.states = config.states;
24
- // useSupport.states = [...config.states]
25
+ useSupport.context.state.newer = { ...config };
26
+ removeContextInCycle();
25
27
  return useSupport;
26
28
  }
27
29
  //# sourceMappingURL=executeWrap.function.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"executeWrap.function.js","sourceRoot":"","sources":["../../ts/render/executeWrap.function.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAE9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAA;AAIxE,MAAM,UAAU,WAAW,CACzB,SAA0B,EAC1B,MAA2B,EAC3B,UAAsB,EACtB,WAAmB;IAEnB,MAAM,gBAAgB,GAAG,MAAM,CAAC,QAAQ,CAAA,CAAC,4DAA4D;IACrG,MAAM,SAAS,GAAG,SAAS,CAAC,SAAS,KAAK,UAAU,CAAC,WAAW,CAAA;IAChE,MAAM,MAAM,GAAG,YAAY,CAAC,WAAW,CAAA;IAEvC,iBAAiB,CAAC,UAAU,CAAC,CAAA;IAE7B,IAAI,GAAc,CAAC;IACnB,IAAG,SAAS,EAAE,CAAC;QACb,GAAG,GAAI,SAAwC,EAAE,CAAA;IACnD,CAAC;SAAM,CAAC;QACN,GAAG,GAAG,gBAAgB,CAAC,GAAG,WAAwB,CAAc,CAAA;QAEhE,mCAAmC;QACnC,IAAG,OAAM,CAAC,GAAG,CAAC,KAAK,UAAU,CAAC,QAAQ,EAAE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G,GAAI,GAAkC,EAAE,CAAA;QAC7C,CAAC;IACH,CAAC;IAED,UAAU,CAAC,OAAO,CAAC,WAAW,GAAG,GAAG,CAAA;IACpC,UAAU,CAAC,WAAW,GAAG,GAAG,CAAA;IAC5B,GAAG,CAAC,SAAS,GAAG,SAAS,CAAA;IACzB,SAAS,CAAC,GAAG,GAAG,GAAG,CAAA;IAEnB,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,GAAG,EAAE,GAAG,MAAM,EAAE,CAAA;IAE9C,oBAAoB,EAAE,CAAA;IAEtB,OAAO,UAAU,CAAA;AACnB,CAAC"}
@@ -1,8 +1,14 @@
1
- export type PaintCommand = [((...args: any[]) => unknown), any[]];
1
+ /** A function expected to paint by commands such as a html painter that renders elements */
2
+ export type painter = (...args: any[]) => unknown;
3
+ export type PaintCommand = [
4
+ painter,
5
+ /** arguments for the painter */
6
+ any[]
7
+ ];
2
8
  /** Typically used for animations to run before clearing elements */
3
- export declare function addPaintRemoveAwait(promise: Promise<any>): void;
9
+ export declare function addPaintRemoveAwait(_promise: Promise<any>): void;
4
10
  export declare let paintCommands: PaintCommand[];
5
- export declare let paintRemoves: PaintCommand[];
11
+ export declare const paintRemoves: PaintCommand[];
6
12
  export declare let paintContent: PaintCommand[];
7
13
  export declare let paintAppends: PaintCommand[];
8
14
  export declare let paintAfters: PaintCommand[];
@@ -11,11 +17,14 @@ export declare const painting: {
11
17
  removeLocks: number;
12
18
  };
13
19
  export declare function setContent(text: string, textNode: Text): void;
20
+ /** you must lock before calling this function */
14
21
  export declare function paint(): any;
15
- export declare function addPaintRemover(element: Text | Element): void;
16
- export declare function paintBefore(relative: Text | Element, element: Text | Element): void;
22
+ export declare function addPaintRemover(element: Text | Element, caller?: string): void;
23
+ /** insertBefore. For parent.appendChild() see paintAppend */
24
+ export declare function paintBefore(relative: Text | Element, element: Text | Element, _caller: string): void;
25
+ /** parent.appendChild(). For insertBefore see paintBefore */
17
26
  export declare function paintAppend(relative: Text | Element, element: Text | Element): void;
18
- export declare function paintBeforeText(relative: Text | Element, text: string, callback?: (created: Text) => any): void;
27
+ export declare function paintBeforeText(relative: Text | Element, text: string, callback: ((created: Text) => any) | undefined, _caller: string): void;
19
28
  export declare function paintAppendText(relative: Text | Element, text: string, callback: (created: Text) => any): void;
20
29
  /** Used when HTML content is safe and expected */
21
30
  export declare function paintBeforeElementString(relative: Text | Element, text: string, callback?: (created: Text) => any): void;
@@ -1,16 +1,20 @@
1
- import { blankHandler } from "./dom/attachDomElements.function.js";
1
+ import { blankHandler } from "./dom/blankHandler.function.js";
2
2
  /** Typically used for animations to run before clearing elements */
3
- export function addPaintRemoveAwait(promise) {
4
- if (paintRemoveAwaits.length) {
5
- paintRemoveAwaits[paintRemoveAwaits.length - 1].paintRemoves.push(...paintRemoves);
6
- paintRemoves = [];
3
+ export function addPaintRemoveAwait(_promise) {
4
+ /*
5
+ if(paintRemoveAwaits.length) {
6
+ paintRemoveAwaits[paintRemoveAwaits.length - 1].paintRemoves.push( ...paintRemoves )
7
+ paintRemoves = []
7
8
  }
8
- paintRemoveAwaits.push({ promise, paintRemoves });
9
- paintRemoves = [];
9
+
10
+ paintRemoveAwaits.push({promise, paintRemoves})
11
+ paintRemoves = []
12
+ */
10
13
  }
11
- let paintRemoveAwaits = [];
14
+ // let paintRemoveAwaits: {promise: Promise<any>, paintRemoves: PaintCommand[]}[] = []
12
15
  export let paintCommands = [];
13
- export let paintRemoves = [];
16
+ // export let paintRemoves: PaintCommand[] = []
17
+ export const paintRemoves = [];
14
18
  export let paintContent = [];
15
19
  // TODO: This this is duplicate of paintCommands (however timing is currently and issue and cant be removed)
16
20
  export let paintAppends = [];
@@ -22,16 +26,21 @@ export const painting = {
22
26
  export function setContent(text, textNode) {
23
27
  textNode.textContent = text;
24
28
  }
29
+ /** you must lock before calling this function */
25
30
  export function paint() {
26
31
  if (painting.locks > 0) {
32
+ // throw new Error('double paint')
27
33
  return;
28
34
  }
29
- return runCycles();
35
+ runCycles();
30
36
  }
31
37
  function runCycles() {
38
+ ++painting.locks;
32
39
  runPaintCycles();
40
+ --painting.locks;
33
41
  runAfterCycle();
34
42
  }
43
+ /** Deletes happen last */
35
44
  function runAfterCycle() {
36
45
  paintReset();
37
46
  const nowPaintAfters = paintAfters;
@@ -41,30 +50,16 @@ function runAfterCycle() {
41
50
  }
42
51
  }
43
52
  function runPaintRemoves() {
44
- if (paintRemoveAwaits.length) {
45
- const currentAwaits = paintRemoveAwaits.map(data => data.promise.then(() => {
46
- const paintRemoves = data.paintRemoves;
47
- for (const content of paintRemoves) {
48
- // call paintRemover()
49
- content[0](...content[1]);
50
- }
51
- }));
52
- paintRemoveAwaits = [];
53
- const outerPaintRemoves = paintRemoves;
54
- return Promise.all(currentAwaits).then(() => {
55
- for (const content of outerPaintRemoves) {
56
- content[0](...content[1]);
57
- }
58
- });
59
- }
60
53
  // element.parentNode.removeChild
61
54
  for (const content of paintRemoves) {
62
55
  content[0](...content[1]);
63
56
  }
64
57
  }
65
58
  function runPaintCycles() {
59
+ const removes = paintRemoves.length;
66
60
  runPaintRemoves();
67
- paintRemoves = [];
61
+ // paintRemoves = []
62
+ paintRemoves.splice(0, removes);
68
63
  // styles/attributes and textElement.textContent
69
64
  for (const content of paintContent) {
70
65
  content[0](...content[1]);
@@ -83,17 +78,28 @@ function paintReset() {
83
78
  paintContent = [];
84
79
  paintAppends = [];
85
80
  }
86
- export function addPaintRemover(element) {
87
- paintRemoves.push([paintRemover, [element]]);
81
+ export function addPaintRemover(element, caller) {
82
+ paintRemoves.push([paintRemover, [element, caller]]);
88
83
  }
89
84
  /** must be used with paintRemoves */
90
85
  function paintRemover(element, _caller) {
91
86
  const parentNode = element.parentNode;
87
+ /*
88
+ if(!element) {
89
+ console.debug('no element by', _caller)
90
+ }
91
+ if(!parentNode) {
92
+ console.debug('no parentNode by', _caller)
93
+ }
94
+ */
92
95
  parentNode.removeChild(element);
93
96
  }
94
- export function paintBefore(relative, element) {
95
- relative.parentNode.insertBefore(element, relative);
97
+ /** insertBefore. For parent.appendChild() see paintAppend */
98
+ export function paintBefore(relative, element, _caller) {
99
+ const parentNode = relative.parentNode;
100
+ parentNode.insertBefore(element, relative);
96
101
  }
102
+ /** parent.appendChild(). For insertBefore see paintBefore */
97
103
  export function paintAppend(relative, element) {
98
104
  relative.appendChild(element);
99
105
  }
@@ -104,9 +110,9 @@ function toPlainTextElm(text) {
104
110
  // delete <!-- -->
105
111
  return document.createTextNode(contentCleaner.innerHTML);
106
112
  }
107
- export function paintBeforeText(relative, text, callback = blankHandler) {
113
+ export function paintBeforeText(relative, text, callback = blankHandler, _caller) {
108
114
  const textElm = toPlainTextElm(text);
109
- paintBefore(relative, textElm);
115
+ paintBefore(relative, textElm, _caller);
110
116
  callback(textElm);
111
117
  }
112
118
  export function paintAppendText(relative, text, callback) {
@@ -118,7 +124,7 @@ export function paintAppendText(relative, text, callback) {
118
124
  export function paintBeforeElementString(relative, text, callback = blankHandler) {
119
125
  contentCleaner.innerHTML = text;
120
126
  const textElm = document.createTextNode(contentCleaner.textContent); // toPlainTextElm(text)
121
- paintBefore(relative, textElm);
127
+ paintBefore(relative, textElm, 'paintBeforeElementString');
122
128
  callback(textElm);
123
129
  }
124
130
  /** Used when HTML content is safe and expected */
@@ -1 +1 @@
1
- {"version":3,"file":"paint.function.js","sourceRoot":"","sources":["../../ts/render/paint.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAA;AAIlE,oEAAoE;AACpE,MAAM,UAAU,mBAAmB,CAAC,OAAqB;IACvD,IAAG,iBAAiB,CAAC,MAAM,EAAE,CAAC;QAC5B,iBAAiB,CAAC,iBAAiB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,CAAE,GAAG,YAAY,CAAE,CAAA;QACpF,YAAY,GAAG,EAAE,CAAA;IACnB,CAAC;IAED,iBAAiB,CAAC,IAAI,CAAC,EAAC,OAAO,EAAE,YAAY,EAAC,CAAC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,CAAC,OAAO,CAAC,CAAA;AACnB,CAAC;AAED,kDAAkD;AAClD,MAAM,UAAU,wBAAwB,CACtC,QAAwB,EACxB,IAAY,EACZ,QAAgC;IAEhC,cAAc,CAAC,SAAS,GAAG,IAAI,CAAA;IAC/B,MAAM,OAAO,GAAG,QAAQ,CAAC,cAAc,CAAC,cAAc,CAAC,WAAqB,CAAC,CAAA,CAAC,uBAAuB;IACrG,WAAW,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;IAC9B,QAAQ,CAAC,OAAO,CAAC,CAAA;AACnB,CAAC"}
@@ -1,4 +1,6 @@
1
1
  import { TemplaterResult } from '../tag/getTemplaterResult.function.js';
2
2
  import { TagMaker } from '../tag/TagMaker.type.js';
3
- import { AnySupport, BaseTagGlobal } from '../index.js';
4
- export declare function registerTagElement(support: AnySupport, element: Element | HTMLElement, global: BaseTagGlobal, templater: TemplaterResult, app: TagMaker, placeholder: Text): DocumentFragment;
3
+ import { AnySupport, TagGlobal } from '../index.js';
4
+ /** Only called by renderTagElement */
5
+ export declare function registerTagElement(support: AnySupport, element: Element | HTMLElement, global: TagGlobal, // TODO: remove
6
+ templater: TemplaterResult, app: TagMaker, placeholder: Text): DocumentFragment;