taggedjs 2.8.26 → 2.8.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle.js +1 -1
- package/bundle.js.map +1 -1
- package/js/alterProp.function.d.ts +5 -5
- package/js/alterProp.function.js +19 -20
- package/js/alterProp.function.js.map +1 -1
- package/js/index.d.ts +1 -1
- package/js/index.js +1 -1
- package/js/index.js.map +1 -1
- package/js/interpolations/attributes/addSupportEventListener.function.d.ts +1 -1
- package/js/interpolations/attributes/bindSubjectCallback.function.d.ts +4 -2
- package/js/interpolations/attributes/bindSubjectCallback.function.js +14 -6
- package/js/interpolations/attributes/bindSubjectCallback.function.js.map +1 -1
- package/js/interpolations/attributes/getSupportWithState.function.d.ts +2 -0
- package/js/interpolations/attributes/getSupportWithState.function.js +10 -0
- package/js/interpolations/attributes/getSupportWithState.function.js.map +1 -0
- package/js/interpolations/attributes/getUpTags.function.d.ts +1 -1
- package/js/interpolations/attributes/getUpTags.function.js.map +1 -1
- package/js/interpolations/attributes/processAttribute.function.d.ts +3 -3
- package/js/interpolations/attributes/processAttribute.function.js +2 -7
- package/js/interpolations/attributes/processAttribute.function.js.map +1 -1
- package/js/interpolations/attributes/processAttributeCallback.function.d.ts +1 -1
- package/js/interpolations/attributes/processNameValueAttribute.function.d.ts +2 -2
- package/js/interpolations/attributes/renderTagArray.function.d.ts +1 -1
- package/js/interpolations/attributes/specialAttribute.d.ts +1 -1
- package/js/interpolations/attributes/updateAttribute.function.d.ts +1 -1
- package/js/interpolations/interpolateTemplate.d.ts +1 -1
- package/js/interpolations/optimizers/attachDomElements.function.d.ts +2 -4
- package/js/interpolations/optimizers/attachDomElements.function.js +5 -49
- package/js/interpolations/optimizers/attachDomElements.function.js.map +1 -1
- package/js/interpolations/optimizers/attachDynamicDom.function.d.ts +7 -0
- package/js/interpolations/optimizers/attachDynamicDom.function.js +28 -0
- package/js/interpolations/optimizers/attachDynamicDom.function.js.map +1 -0
- package/js/interpolations/optimizers/domProcessContextItem.function.d.ts +5 -0
- package/js/interpolations/optimizers/domProcessContextItem.function.js +18 -0
- package/js/interpolations/optimizers/domProcessContextItem.function.js.map +1 -0
- package/js/interpolations/optimizers/processDomContextItem.function.d.ts +5 -0
- package/js/interpolations/optimizers/processDomContextItem.function.js +18 -0
- package/js/interpolations/optimizers/processDomContextItem.function.js.map +1 -0
- package/js/interpolations/processSubscriptionUpdate.function.d.ts +1 -1
- package/js/interpolations/processSubscriptionUpdate.function.js +2 -2
- package/js/interpolations/processSubscriptionUpdate.function.js.map +1 -1
- package/js/interpolations/subscribeToTemplate.function.d.ts +1 -3
- package/js/interpolations/subscribeToTemplate.function.js +1 -29
- package/js/interpolations/subscribeToTemplate.function.js.map +1 -1
- package/js/isInstance.d.ts +1 -1
- package/js/isInstance.js.map +1 -1
- package/js/state/StateMemory.type.d.ts +2 -1
- package/js/state/callback.function.d.ts +1 -1
- package/js/state/callback.function.js +2 -6
- package/js/state/callback.function.js.map +1 -1
- package/js/state/callbackMaker.function.js +0 -1
- package/js/state/callbackMaker.function.js.map +1 -1
- package/js/state/callbackStateUpdate.function.d.ts +2 -7
- package/js/state/callbackStateUpdate.function.js +5 -31
- package/js/state/callbackStateUpdate.function.js.map +1 -1
- package/js/state/handleProviderChanges.function.d.ts +1 -1
- package/js/state/index.d.ts +1 -0
- package/js/state/index.js +1 -0
- package/js/state/index.js.map +1 -1
- package/js/state/letProp.function.js +10 -7
- package/js/state/letProp.function.js.map +1 -1
- package/js/state/providers.d.ts +1 -1
- package/js/state/providersChangeCheck.function.d.ts +1 -1
- package/js/state/setUse.function.d.ts +1 -1
- package/js/state/state.utils.d.ts +2 -3
- package/js/state/state.utils.js +3 -3
- package/js/state/state.utils.js.map +1 -1
- package/js/state/states.function.d.ts +1 -1
- package/js/state/states.function.js.map +1 -1
- package/js/state/states.utils.d.ts +2 -1
- package/js/state/states.utils.js +13 -25
- package/js/state/states.utils.js.map +1 -1
- package/js/state/subject.function.js +3 -3
- package/js/state/subject.function.js.map +1 -1
- package/js/state/subscribe.function.d.ts +18 -0
- package/js/state/subscribe.function.js +14 -0
- package/js/state/subscribe.function.js.map +1 -0
- package/js/state/syncStates.function.d.ts +4 -2
- package/js/state/syncStates.function.js +18 -13
- package/js/state/syncStates.function.js.map +1 -1
- package/js/state/tagClosed$.subject.d.ts +1 -1
- package/js/state/watch.function.js +2 -2
- package/js/state/watch.function.js.map +1 -1
- package/js/subject/ProcessInit.type.d.ts +6 -0
- package/js/subject/ProcessInit.type.js +2 -0
- package/js/subject/ProcessInit.type.js.map +1 -0
- package/js/subject/Subject.class.d.ts +2 -1
- package/js/subject/Subject.class.js.map +1 -1
- package/js/subject/ValueSubject.d.ts +1 -1
- package/js/subject/signal.function.d.ts +9 -15
- package/js/subject/signal.function.js +4 -0
- package/js/subject/signal.function.js.map +1 -1
- package/js/tag/AnySupport.type.d.ts +7 -0
- package/js/tag/AnySupport.type.js +2 -0
- package/js/tag/AnySupport.type.js.map +1 -0
- package/js/tag/BaseSupport.type.d.ts +1 -1
- package/js/tag/Context.types.d.ts +6 -7
- package/js/tag/Tag.type.d.ts +4 -2
- package/js/tag/ValueTypes.enum.d.ts +2 -2
- package/js/tag/ValueTypes.enum.js +4 -2
- package/js/tag/ValueTypes.enum.js.map +1 -1
- package/js/tag/afterRender.function.d.ts +1 -1
- package/js/tag/afterRender.function.js +7 -5
- package/js/tag/afterRender.function.js.map +1 -1
- package/js/tag/buildBeforeElement.function.d.ts +1 -2
- package/js/tag/buildBeforeElement.function.js +3 -2
- package/js/tag/buildBeforeElement.function.js.map +1 -1
- package/js/tag/checkDestroyPrevious.function.d.ts +1 -0
- package/js/tag/checkDestroyPrevious.function.js +4 -1
- package/js/tag/checkDestroyPrevious.function.js.map +1 -1
- package/js/tag/checkStateMismatch.function.d.ts +1 -1
- package/js/tag/checkTagValueChange.function.d.ts +3 -1
- package/js/tag/checkTagValueChange.function.js +7 -2
- package/js/tag/checkTagValueChange.function.js.map +1 -1
- package/js/tag/clonePropsBy.function.d.ts +1 -1
- package/js/tag/cloneValueArray.function.js +2 -0
- package/js/tag/cloneValueArray.function.js.map +1 -1
- package/js/tag/createHtmlSupport.function.d.ts +33 -0
- package/js/tag/createHtmlSupport.function.js +41 -0
- package/js/tag/createHtmlSupport.function.js.map +1 -0
- package/js/tag/createSupport.function.d.ts +6 -0
- package/js/tag/createSupport.function.js +8 -0
- package/js/tag/createSupport.function.js.map +1 -0
- package/js/tag/destroyContext.function.d.ts +8 -0
- package/js/tag/destroyContext.function.js +48 -0
- package/js/tag/destroyContext.function.js.map +1 -0
- package/js/tag/destroySupport.function.d.ts +1 -1
- package/js/tag/destroySupport.function.js +2 -2
- package/js/tag/destroySupport.function.js.map +1 -1
- package/js/tag/executeWrap.function.d.ts +1 -1
- package/js/tag/executeWrap.function.js +3 -2
- package/js/tag/executeWrap.function.js.map +1 -1
- package/js/tag/getDomTag.function.js +3 -0
- package/js/tag/getDomTag.function.js.map +1 -1
- package/js/tag/getSupport.function.d.ts +1 -0
- package/js/tag/getSupport.function.js +3 -3
- package/js/tag/getSupport.function.js.map +1 -1
- package/js/tag/getSupportInCycle.function.d.ts +1 -1
- package/js/tag/getTagWrap.function.d.ts +1 -1
- package/js/tag/getTagWrap.function.js +2 -2
- package/js/tag/getTagWrap.function.js.map +1 -1
- package/js/tag/getTemplaterResult.function.d.ts +8 -5
- package/js/tag/getTemplaterResult.function.js +3 -1
- package/js/tag/getTemplaterResult.function.js.map +1 -1
- package/js/tag/index.d.ts +4 -3
- package/js/tag/index.js.map +1 -1
- package/js/tag/isLikeTags.function.d.ts +1 -1
- package/js/tag/isLikeTags.function.js +0 -1
- package/js/tag/isLikeTags.function.js.map +1 -1
- package/js/tag/processUpdateAttrContext.function.d.ts +1 -1
- package/js/tag/processUpdateContext.function.d.ts +1 -1
- package/js/tag/render/renderExistingTag.function.d.ts +4 -2
- package/js/tag/render/renderExistingTag.function.js +2 -1
- package/js/tag/render/renderExistingTag.function.js.map +1 -1
- package/js/tag/render/renderSupport.function.d.ts +1 -1
- package/js/tag/render/renderSupport.function.js.map +1 -1
- package/js/tag/render/renderTagOnly.function.d.ts +2 -1
- package/js/tag/render/renderTagOnly.function.js +4 -16
- package/js/tag/render/renderTagOnly.function.js.map +1 -1
- package/js/tag/render/renderWithSupport.function.d.ts +3 -2
- package/js/tag/render/renderWithSupport.function.js +1 -1
- package/js/tag/render/renderWithSupport.function.js.map +1 -1
- package/js/tag/render/softDestroySupport.function.d.ts +1 -1
- package/js/tag/render/softDestroySupport.function.js +11 -12
- package/js/tag/render/softDestroySupport.function.js.map +1 -1
- package/js/tag/tag.function.js +9 -2
- package/js/tag/tag.function.js.map +1 -1
- package/js/tag/tagElement.d.ts +2 -1
- package/js/tag/tagElement.js +23 -20
- package/js/tag/tagElement.js.map +1 -1
- package/js/tag/tagRunner.d.ts +1 -1
- package/js/tag/update/compareArrayItems.function.d.ts +1 -1
- package/js/tag/update/compareArrayItems.function.js +1 -23
- package/js/tag/update/compareArrayItems.function.js.map +1 -1
- package/js/tag/update/createAndProcessContextItem.function.d.ts +7 -0
- package/js/tag/update/createAndProcessContextItem.function.js +32 -0
- package/js/tag/update/createAndProcessContextItem.function.js.map +1 -0
- package/js/tag/update/forceUpdateExistingValue.function.d.ts +7 -0
- package/js/tag/update/forceUpdateExistingValue.function.js +13 -0
- package/js/tag/update/forceUpdateExistingValue.function.js.map +1 -0
- package/js/tag/update/handleStillTag.function.d.ts +5 -0
- package/js/tag/update/handleStillTag.function.js +11 -0
- package/js/tag/update/handleStillTag.function.js.map +1 -0
- package/js/tag/update/oneRenderToSupport.function.d.ts +1 -1
- package/js/tag/update/processDomTagInit.function.d.ts +9 -0
- package/js/tag/update/processDomTagInit.function.js +23 -0
- package/js/tag/update/processDomTagInit.function.js.map +1 -0
- package/js/tag/update/processFirstSubject.utils.d.ts +2 -1
- package/js/tag/update/processFirstSubjectComponent.function.d.ts +2 -1
- package/js/tag/update/processFirstSubjectComponent.function.js +3 -3
- package/js/tag/update/processFirstSubjectComponent.function.js.map +1 -1
- package/js/tag/update/processFirstSubjectValue.function.d.ts +1 -1
- package/js/tag/update/processFirstSubjectValue.function.js +2 -62
- package/js/tag/update/processFirstSubjectValue.function.js.map +1 -1
- package/js/tag/update/processNewSubjectTag.function.d.ts +3 -3
- package/js/tag/update/processNewSubjectTag.function.js +2 -16
- package/js/tag/update/processNewSubjectTag.function.js.map +1 -1
- package/js/tag/update/processNewValue.function.d.ts +2 -1
- package/js/tag/update/processNewValue.function.js +3 -3
- package/js/tag/update/processNewValue.function.js.map +1 -1
- package/js/tag/update/processRenderOnceInit.function.d.ts +8 -0
- package/js/tag/update/processRenderOnceInit.function.js +17 -0
- package/js/tag/update/processRenderOnceInit.function.js.map +1 -0
- package/js/tag/update/processSubscribe.function.d.ts +9 -0
- package/js/tag/update/processSubscribe.function.js +10 -0
- package/js/tag/update/processSubscribe.function.js.map +1 -0
- package/js/tag/update/processTag.function.d.ts +2 -1
- package/js/tag/update/processTag.function.js +5 -7
- package/js/tag/update/processTag.function.js.map +1 -1
- package/js/tag/update/processTagArray.d.ts +1 -1
- package/js/tag/update/processTagArray.js +9 -42
- package/js/tag/update/processTagArray.js.map +1 -1
- package/js/tag/update/processTagComponentInit.function.d.ts +7 -0
- package/js/tag/update/processTagComponentInit.function.js +17 -0
- package/js/tag/update/processTagComponentInit.function.js.map +1 -0
- package/js/tag/update/processTagInit.function.d.ts +4 -0
- package/js/tag/update/processTagInit.function.js +11 -0
- package/js/tag/update/processTagInit.function.js.map +1 -0
- package/js/tag/update/processTagResult.function.d.ts +1 -1
- package/js/tag/update/processTagResult.function.js +1 -10
- package/js/tag/update/processTagResult.function.js.map +1 -1
- package/js/tag/update/setupSubscribe.function.d.ts +21 -0
- package/js/tag/update/setupSubscribe.function.js +85 -0
- package/js/tag/update/setupSubscribe.function.js.map +1 -0
- package/js/tag/update/syncPriorPropFunction.function.d.ts +1 -1
- package/js/tag/update/tryUpdateToTag.function.d.ts +7 -0
- package/js/tag/update/tryUpdateToTag.function.js +64 -0
- package/js/tag/update/tryUpdateToTag.function.js.map +1 -0
- package/js/tag/update/updateContextItemBySupport.function.d.ts +3 -0
- package/js/tag/update/updateContextItemBySupport.function.js +10 -0
- package/js/tag/update/updateContextItemBySupport.function.js.map +1 -0
- package/js/tag/update/updateExistingArray.function.d.ts +1 -1
- package/js/tag/update/updateExistingObject.function.d.ts +1 -1
- package/js/tag/update/updateExistingTagComponent.function.d.ts +2 -1
- package/js/tag/update/updateExistingTagComponent.function.js.map +1 -1
- package/js/tag/update/updateExistingValue.function.d.ts +3 -6
- package/js/tag/update/updateExistingValue.function.js +5 -99
- package/js/tag/update/updateExistingValue.function.js.map +1 -1
- package/js/tag/update/updateToDiffValue.function.d.ts +5 -0
- package/js/tag/update/updateToDiffValue.function.js +28 -0
- package/js/tag/update/updateToDiffValue.function.js.map +1 -0
- package/js/tag/updateSupportBy.function.d.ts +1 -1
- package/js/tag/updateSupportBy.function.js +3 -2
- package/js/tag/updateSupportBy.function.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { clonePropsBy } from './clonePropsBy.function.js';
|
|
2
|
+
import { Subject } from '../subject/Subject.class.js';
|
|
3
|
+
/** used only for apps, otherwise use Support */
|
|
4
|
+
export function getBaseSupport(templater, subject, castedProps) {
|
|
5
|
+
const baseSupport = {
|
|
6
|
+
templater,
|
|
7
|
+
subject,
|
|
8
|
+
castedProps,
|
|
9
|
+
appSupport: undefined,
|
|
10
|
+
};
|
|
11
|
+
// baseSupport.appSupport = baseSupport
|
|
12
|
+
const global = subject.global;
|
|
13
|
+
global.blocked = [];
|
|
14
|
+
global.destroy$ = new Subject();
|
|
15
|
+
return baseSupport;
|
|
16
|
+
}
|
|
17
|
+
/** Sets support states to empty array and clones props */
|
|
18
|
+
export function upgradeBaseToSupport(templater, // at runtime rendering of a tag, it needs to be married to a new Support()
|
|
19
|
+
support, appSupport, castedProps) {
|
|
20
|
+
// ;(support as AnySupport).state = []
|
|
21
|
+
// ;(support as AnySupport).states = []
|
|
22
|
+
support.appSupport = appSupport;
|
|
23
|
+
const props = templater.props; // natural props
|
|
24
|
+
if (props) {
|
|
25
|
+
support.propsConfig = clonePropsBy(support, props, castedProps);
|
|
26
|
+
}
|
|
27
|
+
return support;
|
|
28
|
+
}
|
|
29
|
+
export function createHtmlSupport(templater, // at runtime rendering of a tag, it needs to be married to a new Support()
|
|
30
|
+
ownerSupport, appSupport, subject, castedProps) {
|
|
31
|
+
const support = {
|
|
32
|
+
templater,
|
|
33
|
+
subject,
|
|
34
|
+
castedProps,
|
|
35
|
+
appSupport: undefined,
|
|
36
|
+
};
|
|
37
|
+
support.ownerSupport = ownerSupport;
|
|
38
|
+
support.appSupport = appSupport;
|
|
39
|
+
return support;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=createHtmlSupport.function.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createHtmlSupport.function.js","sourceRoot":"","sources":["../../ts/tag/createHtmlSupport.function.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AA6BrD,gDAAgD;AAChD,MAAM,UAAU,cAAc,CAC5B,SAA0B,EAC1B,OAA0B,EAC1B,WAAmB;IAEnB,MAAM,WAAW,GAAG;QAClB,SAAS;QACT,OAAO;QACP,WAAW;QAEX,UAAU,EAAE,SAAkC;KAChC,CAAA;IAEhB,uCAAuC;IAEvC,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAA;IAC7B,MAAM,CAAC,OAAO,GAAG,EAAE,CAAA;IACnB,MAAM,CAAC,QAAQ,GAAG,IAAI,OAAO,EAAQ,CAAA;IAErC,OAAO,WAAW,CAAA;AACpB,CAAC;AAOD,0DAA0D;AAC1D,MAAM,UAAU,oBAAoB,CAClC,SAA0B,EAAE,2EAA2E;AACvG,OAAoB,EACpB,UAAsB,EACtB,WAAmB;IAEnB,sCAAsC;IACtC,uCAAuC;IAEvC,OAAO,CAAC,UAAU,GAAG,UAAU,CAAA;IAE/B,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAA,CAAE,gBAAgB;IAC/C,IAAG,KAAK,EAAE,CAAC;QACT,OAAO,CAAC,WAAW,GAAG,YAAY,CAAC,OAAqB,EAAE,KAAK,EAAE,WAAW,CAAC,CAAA;IAC/E,CAAC;IAED,OAAO,OAAqB,CAAA;AAC9B,CAAC;AAED,MAAM,UAAU,iBAAiB,CAC/B,SAA0B,EAAE,2EAA2E;AACvG,YAAwB,EACxB,UAAsB,EACtB,OAAoB,EACpB,WAAmB;IAEnB,MAAM,OAAO,GAAG;QACd,SAAS;QACT,OAAO;QACP,WAAW;QAEX,UAAU,EAAE,SAAkC;KAChC,CAAA;IAEhB,OAAO,CAAC,YAAY,GAAG,YAAY,CAAA;IACnC,OAAO,CAAC,UAAU,GAAG,UAAU,CAAA;IAC/B,OAAO,OAAqB,CAAA;AAC9B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TemplaterResult } from './getTemplaterResult.function.js';
|
|
2
|
+
import { ContextItem } from './Context.types.js';
|
|
3
|
+
import { Props } from '../Props.js';
|
|
4
|
+
import { AnySupport } from './AnySupport.type.js';
|
|
5
|
+
export declare function createSupport(templater: TemplaterResult, // at runtime rendering of a tag, it needs to be married to a new Support()
|
|
6
|
+
ownerSupport: AnySupport, appSupport: AnySupport, subject: ContextItem, castedProps?: Props): AnySupport;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { getBaseSupport, upgradeBaseToSupport } from './createHtmlSupport.function.js';
|
|
2
|
+
export function createSupport(templater, // at runtime rendering of a tag, it needs to be married to a new Support()
|
|
3
|
+
ownerSupport, appSupport, subject, castedProps) {
|
|
4
|
+
const support = getBaseSupport(templater, subject, castedProps);
|
|
5
|
+
support.ownerSupport = ownerSupport;
|
|
6
|
+
return upgradeBaseToSupport(templater, support, appSupport, castedProps);
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=createSupport.function.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createSupport.function.js","sourceRoot":"","sources":["../../ts/tag/createSupport.function.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAsB,oBAAoB,EAAE,MAAM,iCAAiC,CAAA;AAE1G,MAAM,UAAU,aAAa,CAC3B,SAA0B,EAAE,2EAA2E;AACvG,YAAwB,EACxB,UAAsB,EACtB,OAAoB,EACpB,WAAmB;IAEnB,MAAM,OAAO,GAAG,cAAc,CAC5B,SAAS,EACT,OAA6B,EAC7B,WAAW,CACE,CAAA;IAEf,OAAO,CAAC,YAAY,GAAG,YAAY,CAAA;IAEnC,OAAO,oBAAoB,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,CAAC,CAAA;AAC1E,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Subscription } from '../subject/subject.utils.js';
|
|
2
|
+
import { AnySupport } from './AnySupport.type.js';
|
|
3
|
+
import { ContextItem } from './Context.types.js';
|
|
4
|
+
export declare function destroyContext(childTags: ContextItem[]): void;
|
|
5
|
+
export declare function getChildTagsToSoftDestroy(childTags: ContextItem[], tags?: AnySupport[], subs?: Subscription<any>[]): {
|
|
6
|
+
subs: Subscription<any>[];
|
|
7
|
+
tags: AnySupport[];
|
|
8
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { isTagComponent } from '../isInstance.js';
|
|
2
|
+
import { runBeforeDestroy } from './tagRunner.js';
|
|
3
|
+
export function destroyContext(childTags) {
|
|
4
|
+
for (const child of childTags) {
|
|
5
|
+
// deleting arrays
|
|
6
|
+
const lastArray = child.lastArray;
|
|
7
|
+
if (lastArray) {
|
|
8
|
+
destroyContext(lastArray);
|
|
9
|
+
continue;
|
|
10
|
+
}
|
|
11
|
+
const global = child.global;
|
|
12
|
+
if (!global) {
|
|
13
|
+
continue; // not a support contextItem
|
|
14
|
+
}
|
|
15
|
+
const support = global.newest;
|
|
16
|
+
const iSubs = global.subscriptions;
|
|
17
|
+
if (iSubs) {
|
|
18
|
+
iSubs.forEach(iSub => iSub.unsubscribe());
|
|
19
|
+
}
|
|
20
|
+
if (isTagComponent(support.templater)) {
|
|
21
|
+
runBeforeDestroy(support, global);
|
|
22
|
+
}
|
|
23
|
+
const subTags = global.context;
|
|
24
|
+
destroyContext(subTags);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export function getChildTagsToSoftDestroy(childTags, tags = [], subs = []) {
|
|
28
|
+
for (const child of childTags) {
|
|
29
|
+
const global = child.global;
|
|
30
|
+
if (!global) {
|
|
31
|
+
continue;
|
|
32
|
+
}
|
|
33
|
+
const support = global.newest;
|
|
34
|
+
if (support) {
|
|
35
|
+
tags.push(support);
|
|
36
|
+
const iSubs = global.subscriptions;
|
|
37
|
+
if (iSubs) {
|
|
38
|
+
subs.push(...iSubs);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
const subTags = global.context;
|
|
42
|
+
if (subTags) {
|
|
43
|
+
getChildTagsToSoftDestroy(subTags, tags, subs);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return { tags, subs };
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=destroyContext.function.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"destroyContext.function.js","sourceRoot":"","sources":["../../ts/tag/destroyContext.function.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAIjD,MAAM,UAAU,cAAc,CAC5B,SAAwB;IAExB,KAAK,MAAM,KAAK,IAAI,SAAS,EAAE,CAAC;QAC9B,kBAAkB;QAClB,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,CAAA;QACjC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;QAC/C,IAAG,OAAO,EAAE,CAAC;YACX,yBAAyB,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;QAChD,CAAC;IACH,CAAC;IAED,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,CAAA;AACrB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SupportTagGlobal } from './getTemplaterResult.function.js';
|
|
2
|
-
import { AnySupport } from './
|
|
2
|
+
import { AnySupport } from './AnySupport.type.js';
|
|
3
3
|
export declare function destroySupport(support: AnySupport, global: SupportTagGlobal): Promise<void>[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { destroyContext } from './destroyContext.function.js';
|
|
2
2
|
import { smartRemoveKids } from './smartRemoveKids.function.js';
|
|
3
3
|
import { runBeforeDestroy } from './tagRunner.js';
|
|
4
4
|
export function destroySupport(support, global) {
|
|
@@ -7,7 +7,7 @@ export function destroySupport(support, global) {
|
|
|
7
7
|
subject.renderCount = 0; // if it comes back, wont be considered an update
|
|
8
8
|
const promises = [];
|
|
9
9
|
const context = global.context;
|
|
10
|
-
|
|
10
|
+
destroyContext(context);
|
|
11
11
|
if (global.destroy$) {
|
|
12
12
|
runBeforeDestroy(support, global);
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"destroySupport.function.js","sourceRoot":"","sources":["../../ts/tag/destroySupport.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"destroySupport.function.js","sourceRoot":"","sources":["../../ts/tag/destroySupport.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAE/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAIjD,MAAM,UAAU,cAAc,CAC5B,OAAmB,EACnB,MAAwB;IAExB,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAA;IAE/B,MAAM,CAAC,OAAO,GAAG,IAAI,CAAA;IACrB,OAAO,CAAC,WAAW,GAAG,CAAC,CAAA,CAAC,iDAAiD;IACzE,MAAM,QAAQ,GAAmB,EAAE,CAAA;IAEnC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAwB,CAAA;IAC/C,cAAc,CAAC,OAAO,CAAC,CAAA;IAEvB,IAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;QACnB,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAA;IACnC,CAAC;IAED,eAAe,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;IAEjC,OAAO,QAAQ,CAAA;AACjB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TemplaterResult } from './getTemplaterResult.function.js';
|
|
2
2
|
import { TagWrapper } from './tag.utils.js';
|
|
3
|
-
import { AnySupport } from './
|
|
3
|
+
import { AnySupport } from './AnySupport.type.js';
|
|
4
4
|
import { Props } from '../Props.js';
|
|
5
5
|
export declare function executeWrap(templater: TemplaterResult, result: TagWrapper<unknown>, useSupport: AnySupport, castedProps?: Props): AnySupport;
|
|
@@ -3,6 +3,8 @@ import { setUseMemory } from '../state/setUseMemory.object.js';
|
|
|
3
3
|
export function executeWrap(templater, result, useSupport, castedProps) {
|
|
4
4
|
const originalFunction = result.original; // (innerTagWrap as any).original as unknown as TagComponent
|
|
5
5
|
const stateless = templater.tagJsType === ValueTypes.stateRender;
|
|
6
|
+
const config = setUseMemory.stateConfig;
|
|
7
|
+
config.support = useSupport;
|
|
6
8
|
let tag;
|
|
7
9
|
if (stateless) {
|
|
8
10
|
tag = templater();
|
|
@@ -16,10 +18,9 @@ export function executeWrap(templater, result, useSupport, castedProps) {
|
|
|
16
18
|
}
|
|
17
19
|
tag.templater = templater;
|
|
18
20
|
templater.tag = tag;
|
|
19
|
-
const config = setUseMemory.stateConfig;
|
|
20
21
|
useSupport.state = config.stateArray;
|
|
21
22
|
useSupport.states = config.states;
|
|
22
|
-
//
|
|
23
|
+
// useSupport.states = [...config.states]
|
|
23
24
|
return useSupport;
|
|
24
25
|
}
|
|
25
26
|
//# sourceMappingURL=executeWrap.function.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executeWrap.function.js","sourceRoot":"","sources":["../../ts/tag/executeWrap.function.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAK9D,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;
|
|
1
|
+
{"version":3,"file":"executeWrap.function.js","sourceRoot":"","sources":["../../ts/tag/executeWrap.function.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAK9D,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,MAAM,CAAC,OAAO,GAAG,UAAU,CAAA;IAE3B,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,CAAC;YACvC,GAAG,GAAI,GAAkC,EAAE,CAAA;QAC7C,CAAC;IACH,CAAC;IAED,GAAG,CAAC,SAAS,GAAG,SAAS,CAAA;IACzB,SAAS,CAAC,GAAG,GAAG,GAAG,CAAA;IAEnB,UAAU,CAAC,KAAK,GAAG,MAAM,CAAC,UAAU,CAAA;IACpC,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAA;IACjC,yCAAyC;IAEzC,OAAO,UAAU,CAAA;AACnB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// taggedjs-no-compile
|
|
2
2
|
import { ValueTypes } from './ValueTypes.enum.js';
|
|
3
3
|
import { getSupportInCycle } from './getSupportInCycle.function.js';
|
|
4
|
+
import { processDomTagInit } from './update/processDomTagInit.function.js';
|
|
4
5
|
export const variablePrefix = ':tagvar';
|
|
5
6
|
export const variableSuffix = ':';
|
|
6
7
|
export function getStringTag(strings, values) {
|
|
@@ -8,6 +9,7 @@ export function getStringTag(strings, values) {
|
|
|
8
9
|
values,
|
|
9
10
|
ownerSupport: getSupportInCycle(),
|
|
10
11
|
tagJsType: ValueTypes.tag,
|
|
12
|
+
processInit: processDomTagInit,
|
|
11
13
|
strings,
|
|
12
14
|
/** Used within an array.map() that returns html aka array.map(x => html``.key(x)) */
|
|
13
15
|
key(arrayValue) {
|
|
@@ -27,6 +29,7 @@ export function getDomTag(dom, values) {
|
|
|
27
29
|
ownerSupport: getSupportInCycle(),
|
|
28
30
|
dom,
|
|
29
31
|
tagJsType: ValueTypes.dom,
|
|
32
|
+
processInit: processDomTagInit,
|
|
30
33
|
key: function keyFun(arrayValue) {
|
|
31
34
|
tag.arrayValue = arrayValue;
|
|
32
35
|
return tag;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDomTag.function.js","sourceRoot":"","sources":["../../ts/tag/getDomTag.function.ts"],"names":[],"mappings":"AAAA,sBAAsB;AAMtB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;
|
|
1
|
+
{"version":3,"file":"getDomTag.function.js","sourceRoot":"","sources":["../../ts/tag/getDomTag.function.ts"],"names":[],"mappings":"AAAA,sBAAsB;AAMtB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AAGnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAA;AAE1E,MAAM,CAAC,MAAM,cAAc,GAAG,SAAS,CAAA;AACvC,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAA;AA0BjC,MAAM,UAAU,YAAY,CAC1B,OAAiB,EACjB,MAAiB;IAEjB,MAAM,GAAG,GAAc;QACrB,MAAM;QACN,YAAY,EAAE,iBAAiB,EAAE;QAEjC,SAAS,EAAE,UAAU,CAAC,GAAG;QACzB,WAAW,EAAE,iBAAiB;QAE9B,OAAO;QAEP,qFAAqF;QACrF,GAAG,CAAI,UAAa;YAClB,GAAG,CAAC,UAAU,GAAG,UAAU,CAAA;YAC3B,OAAO,GAA4B,CAAA;QACrC,CAAC;QAED,IAAI,EAAE,SAAS,IAAI,CACjB,OAAwC,EACxC,MAAiB;YAEjB,GAAG,CAAC,QAAQ,GAAG,EAAC,OAAO,EAAE,MAAM,EAAC,CAAA;YAChC,OAAO,GAAG,CAAA;QACZ,CAAC;KACF,CAAA;IAED,OAAO,GAAG,CAAA;AACZ,CAAC;AAED,MAAM,UAAU,SAAS,CACvB,GAAuB,EACvB,MAAiB;IAEjB,MAAM,GAAG,GAAW;QAClB,MAAM;QACN,YAAY,EAAE,iBAAiB,EAAE;QACjC,GAAG;QAEH,SAAS,EAAE,UAAU,CAAC,GAAG;QACzB,WAAW,EAAE,iBAAiB;QAE9B,GAAG,EAAE,SAAS,MAAM,CAAC,UAAmB;YACtC,GAAG,CAAC,UAAU,GAAG,UAAU,CAAA;YAC3B,OAAO,GAAG,CAAA;QACZ,CAAC;QACD,IAAI,EAAE;YACJ,GAAG,EAAE,SAAS,GAAG,CACf,GAAuB,EAAE,iBAAiB;YAC1C,MAAiB;gBAEjB,GAAG,CAAC,QAAQ,GAAG,EAAC,GAAG,EAAE,GAAG,EAAE,MAAM,EAAC,CAAA;gBACjC,OAAO,GAAG,CAAA;YACZ,CAAC;SACF;KACF,CAAA;IACD,OAAO,GAAG,CAAA;AACZ,CAAC"}
|
|
@@ -31,6 +31,7 @@ export type Support = AnySupport & {
|
|
|
31
31
|
ownerSupport: AnySupport;
|
|
32
32
|
appSupport: BaseSupport;
|
|
33
33
|
};
|
|
34
|
+
/** Sets support states to empty array and clones props */
|
|
34
35
|
export declare function upgradeBaseToSupport(templater: TemplaterResult, // at runtime rendering of a tag, it needs to be married to a new Support()
|
|
35
36
|
support: BaseSupport, appSupport: AnySupport, castedProps?: Props): AnySupport;
|
|
36
37
|
export declare function getHtmlSupport(templater: TemplaterResult, // at runtime rendering of a tag, it needs to be married to a new Support()
|
|
@@ -14,11 +14,11 @@ export function getBaseSupport(templater, subject, castedProps) {
|
|
|
14
14
|
global.destroy$ = new Subject();
|
|
15
15
|
return baseSupport;
|
|
16
16
|
}
|
|
17
|
+
/** Sets support states to empty array and clones props */
|
|
17
18
|
export function upgradeBaseToSupport(templater, // at runtime rendering of a tag, it needs to be married to a new Support()
|
|
18
19
|
support, appSupport, castedProps) {
|
|
19
|
-
;
|
|
20
|
-
support.
|
|
21
|
-
support.states = [];
|
|
20
|
+
// ;(support as AnySupport).state = []
|
|
21
|
+
// ;(support as AnySupport).states = []
|
|
22
22
|
support.appSupport = appSupport;
|
|
23
23
|
const props = templater.props; // natural props
|
|
24
24
|
if (props) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSupport.function.js","sourceRoot":"","sources":["../../ts/tag/getSupport.function.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AAmCrD,gDAAgD;AAChD,MAAM,UAAU,cAAc,CAC5B,SAA0B,EAC1B,OAA0B,EAC1B,WAAmB;IAEnB,MAAM,WAAW,GAAG;QAClB,SAAS;QACT,OAAO;QACP,WAAW;QAEX,UAAU,EAAE,SAAkC;KAChC,CAAA;IAEhB,uCAAuC;IAEvC,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAA;IAC7B,MAAM,CAAC,OAAO,GAAG,EAAE,CAAA;IACnB,MAAM,CAAC,QAAQ,GAAG,IAAI,OAAO,EAAQ,CAAA;IAErC,OAAO,WAAW,CAAA;AACpB,CAAC;AAOD,MAAM,UAAU,oBAAoB,CAClC,SAA0B,EAAE,2EAA2E;AACvG,OAAoB,EACpB,UAAsB,EACtB,WAAmB;IAEnB,
|
|
1
|
+
{"version":3,"file":"getSupport.function.js","sourceRoot":"","sources":["../../ts/tag/getSupport.function.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AAmCrD,gDAAgD;AAChD,MAAM,UAAU,cAAc,CAC5B,SAA0B,EAC1B,OAA0B,EAC1B,WAAmB;IAEnB,MAAM,WAAW,GAAG;QAClB,SAAS;QACT,OAAO;QACP,WAAW;QAEX,UAAU,EAAE,SAAkC;KAChC,CAAA;IAEhB,uCAAuC;IAEvC,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAA;IAC7B,MAAM,CAAC,OAAO,GAAG,EAAE,CAAA;IACnB,MAAM,CAAC,QAAQ,GAAG,IAAI,OAAO,EAAQ,CAAA;IAErC,OAAO,WAAW,CAAA;AACpB,CAAC;AAOD,0DAA0D;AAC1D,MAAM,UAAU,oBAAoB,CAClC,SAA0B,EAAE,2EAA2E;AACvG,OAAoB,EACpB,UAAsB,EACtB,WAAmB;IAEnB,sCAAsC;IACtC,uCAAuC;IAEvC,OAAO,CAAC,UAAU,GAAG,UAAU,CAAA;IAE/B,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAA,CAAE,gBAAgB;IAC/C,IAAG,KAAK,EAAE,CAAC;QACT,OAAO,CAAC,WAAW,GAAG,YAAY,CAAC,OAAqB,EAAE,KAAK,EAAE,WAAW,CAAC,CAAA;IAC/E,CAAC;IAED,OAAO,OAAqB,CAAA;AAC9B,CAAC;AAED,MAAM,UAAU,cAAc,CAC5B,SAA0B,EAAE,2EAA2E;AACvG,YAAwB,EACxB,UAAsB,EACtB,OAAoB,EACpB,WAAmB;IAEnB,MAAM,OAAO,GAAG;QACd,SAAS;QACT,OAAO;QACP,WAAW;QAEX,UAAU,EAAE,SAAkC;KAChC,CAAA;IAEhB,OAAO,CAAC,YAAY,GAAG,YAAY,CAAA;IACnC,OAAO,CAAC,UAAU,GAAG,UAAU,CAAA;IAC/B,OAAO,OAAqB,CAAA;AAC9B,CAAC;AAED,MAAM,UAAU,UAAU,CACxB,SAA0B,EAAE,2EAA2E;AACvG,YAAwB,EACxB,UAAsB,EACtB,OAAoB,EACpB,WAAmB;IAEnB,MAAM,OAAO,GAAG,cAAc,CAC5B,SAAS,EACT,OAA6B,EAC7B,WAAW,CACE,CAAA;IAEf,OAAO,CAAC,YAAY,GAAG,YAAY,CAAA;IAEnC,OAAO,oBAAoB,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,CAAC,CAAA;AAC1E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getSupportInCycle(): import("./
|
|
1
|
+
export declare function getSupportInCycle(): import("./AnySupport.type.js").AnySupport | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TemplaterResult, Wrapper } from './getTemplaterResult.function.js';
|
|
2
2
|
import { TagWrapper } from './tag.utils.js';
|
|
3
|
-
import { AnySupport } from './getSupport.function.js';
|
|
4
3
|
import { Props } from '../Props.js';
|
|
4
|
+
import { AnySupport } from './AnySupport.type.js';
|
|
5
5
|
/** creates/returns a function that when called then calls the original component function
|
|
6
6
|
* Gets used as templater.wrapper()
|
|
7
7
|
*/
|
|
@@ -3,7 +3,7 @@ import { syncFunctionProps } from './update/updateExistingTagComponent.function.
|
|
|
3
3
|
import { executeWrap } from './executeWrap.function.js';
|
|
4
4
|
import { PropWatches } from './tag.function.js';
|
|
5
5
|
import { deepCompareDepth, shallowCompareDepth } from './hasSupportChanged.function.js';
|
|
6
|
-
import {
|
|
6
|
+
import { createSupport } from './createSupport.function.js';
|
|
7
7
|
/** creates/returns a function that when called then calls the original component function
|
|
8
8
|
* Gets used as templater.wrapper()
|
|
9
9
|
*/
|
|
@@ -14,7 +14,7 @@ export function getTagWrap(templater, result) {
|
|
|
14
14
|
// wrap any prop functions that are passed in
|
|
15
15
|
const castedProps = getCastedProps(templater, newSupport, lastSupport);
|
|
16
16
|
const ownerSupport = newSupport.ownerSupport;
|
|
17
|
-
const useSupport =
|
|
17
|
+
const useSupport = createSupport(templater, ownerSupport, newSupport.appSupport, // ownerSupport.appSupport as AnySupport,
|
|
18
18
|
subject, castedProps);
|
|
19
19
|
return executeWrap(templater, result, useSupport, castedProps);
|
|
20
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTagWrap.function.js","sourceRoot":"","sources":["../../ts/tag/getTagWrap.function.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAK,0BAA0B,CAAA;AAGnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iDAAiD,CAAA;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/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,CAAC,CAAC,mBAAmB,CAAA;IAClG,MAAM,KAAK,GAAG,SAAS,CAAC,KAAc,CAAA;IACtC,MAAM,WAAW,GAAG,UAAU,CAAC,WAA0B,CAAA;IAEzD,wFAAwF;IACxF,IAAI,cAAc,GAAsB,WAAW,CAAC,SAAS,CAAA;IAC7D,MAAM,eAAe,GAAG,WAAW,EAAE,WAAW,CAAA;IAChD,MAAM,aAAa,GAAG,eAAe,EAAE,SAAS,CAAA;IAEhD,IAAG,aAAa,EAAE,CAAC;QACjB,WAAW,CAAC,SAAS,GAAG,aAAa,CAAA;QACrC,cAAc,GAAG,iBAAiB,CAChC,UAAU,EACV,WAAyB,EACxB,WAAuB,CAAC,YAAY,EACrC,KAAK,EACL,QAAQ,CACT,CAAA;IACH,CAAC;IAED,MAAM,WAAW,GAAG,cAAc,IAAI,SAAS,CAC7C,KAAK,EACL,UAAU,EACV,CAAC,CACF,CAAA;IAED,OAAO,WAAW,CAAA;AACpB,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { EventCallback } from './getDomTag.function.js';
|
|
2
|
-
import { StringTag } from './StringTag.type.js';
|
|
3
|
-
import { DomTag } from './DomTag.type.js';
|
|
4
2
|
import { ContextItem } from './Context.types.js';
|
|
5
|
-
import { AnySupport
|
|
3
|
+
import { AnySupport } from './AnySupport.type.js';
|
|
4
|
+
import { SupportContextItem } from './createHtmlSupport.function.js';
|
|
6
5
|
import { Props } from '../Props.js';
|
|
7
6
|
import { TagWrapper } from './tag.utils.js';
|
|
8
7
|
import { Provider } from '../state/providers.js';
|
|
@@ -12,8 +11,11 @@ import { Subject } from '../subject/index.js';
|
|
|
12
11
|
import { ValueTypes } from './ValueTypes.enum.js';
|
|
13
12
|
import { DomObjectChildren } from '../interpolations/optimizers/ObjectNode.types.js';
|
|
14
13
|
import { PropWatches } from './tag.function.js';
|
|
14
|
+
import { ProcessInit } from '../subject/ProcessInit.type.js';
|
|
15
|
+
import { Tag } from './Tag.type.js';
|
|
15
16
|
export type Wrapper = ((newSupport: AnySupport, subject: ContextItem, prevSupport?: AnySupport) => AnySupport) & TagWrapper<unknown> & {
|
|
16
17
|
tagJsType: typeof ValueTypes.tagComponent | typeof ValueTypes.renderOnce | typeof ValueTypes.templater;
|
|
18
|
+
processInit: ProcessInit;
|
|
17
19
|
};
|
|
18
20
|
/** NOT shared across variable spots. The Subject/ContextItem is more global than this is */
|
|
19
21
|
export type TagGlobal = {
|
|
@@ -42,10 +44,11 @@ export type Events = {
|
|
|
42
44
|
};
|
|
43
45
|
export type Clone = (Element | Text | ChildNode);
|
|
44
46
|
export type TemplaterResult = {
|
|
45
|
-
propWatch: PropWatches;
|
|
46
47
|
tagJsType: string;
|
|
48
|
+
processInit: ProcessInit;
|
|
49
|
+
propWatch: PropWatches;
|
|
47
50
|
wrapper?: Wrapper;
|
|
48
|
-
tag?:
|
|
51
|
+
tag?: Tag;
|
|
49
52
|
props?: Props;
|
|
50
53
|
/** Used inside of an array.map() function */
|
|
51
54
|
key: <T>(arrayValue: T) => TemplaterResultArrayItem<T>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { ValueTypes } from './ValueTypes.enum.js';
|
|
2
|
+
import { processTagInit } from './update/processTagInit.function.js';
|
|
2
3
|
export function getTemplaterResult(propWatch, props) {
|
|
3
4
|
const templater = {
|
|
5
|
+
tagJsType: ValueTypes.templater,
|
|
6
|
+
processInit: processTagInit,
|
|
4
7
|
propWatch,
|
|
5
8
|
props,
|
|
6
|
-
tagJsType: ValueTypes.templater,
|
|
7
9
|
key: function keyTemplate(arrayValue) {
|
|
8
10
|
templater.arrayValue = arrayValue;
|
|
9
11
|
return templater;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTemplaterResult.function.js","sourceRoot":"","sources":["../../ts/tag/getTemplaterResult.function.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getTemplaterResult.function.js","sourceRoot":"","sources":["../../ts/tag/getTemplaterResult.function.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAIjD,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAA;AAuEpE,MAAM,UAAU,kBAAkB,CAChC,SAAsB,EACtB,KAAa;IAEb,MAAM,SAAS,GAAoB;QACjC,SAAS,EAAE,UAAU,CAAC,SAAS;QAC/B,WAAW,EAAE,cAAc;QAE3B,SAAS;QACT,KAAK;QACL,GAAG,EAAE,SAAS,WAAW,CAAI,UAAa;YACvC,SAAyC,CAAC,UAAU,GAAG,UAAU,CAAA;YAClE,OAAO,SAAS,CAAA;QAClB,CAAC;KACF,CAAA;IAED,OAAO,SAAS,CAAA;AAClB,CAAC"}
|
package/js/tag/index.d.ts
CHANGED
|
@@ -15,13 +15,14 @@ export * from './checkDestroyPrevious.function.js';
|
|
|
15
15
|
export * from './checkTagValueChange.function.js';
|
|
16
16
|
export * from './Context.types.js';
|
|
17
17
|
export * from './tagElement.js';
|
|
18
|
-
export type { Tag } from './Tag.type.js';
|
|
19
|
-
export type { DomTag } from './DomTag.type.js';
|
|
20
18
|
export { variablePrefix } from './getDomTag.function.js';
|
|
21
|
-
export type { StringTag } from './StringTag.type.js';
|
|
22
19
|
export { renderSupport } from './render/renderSupport.function.js';
|
|
23
20
|
export { renderWithSupport } from './render/renderWithSupport.function.js';
|
|
24
21
|
export { paint } from './paint.function.js';
|
|
25
22
|
export { processFirstSubjectValue } from './update/processFirstSubjectValue.function.js';
|
|
26
23
|
export { hasPropChanges } from './hasPropChanges.function.js';
|
|
27
24
|
export { PropWatches } from './tag.function.js';
|
|
25
|
+
export type { Tag } from './Tag.type.js';
|
|
26
|
+
export type { DomTag } from './DomTag.type.js';
|
|
27
|
+
export type { StringTag } from './StringTag.type.js';
|
|
28
|
+
export type { AnySupport } from './AnySupport.type.js';
|
package/js/tag/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../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AAE,MAAM,wCAAwC,CAAA;AAC1E,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAC3C,OAAO,EAAE,wBAAwB,EAAE,MAAM,+CAA+C,CAAA;AACxF,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StringTag } from './StringTag.type.js';
|
|
2
2
|
import type { DomTag } from './DomTag.type.js';
|
|
3
|
-
import { AnySupport } from './
|
|
3
|
+
import { AnySupport } from './AnySupport.type.js';
|
|
4
4
|
export declare function isLikeTags(support0: AnySupport | StringTag, // new
|
|
5
5
|
support1: AnySupport): boolean;
|
|
6
6
|
export declare function isLikeDomTags(tag0: DomTag, tag1: DomTag): boolean;
|
|
@@ -37,7 +37,6 @@ support1) {
|
|
|
37
37
|
return false;
|
|
38
38
|
}
|
|
39
39
|
const everyStringMatched = strings0.every((string, index) => strings1[index].length === string.length // performance, just compare length of strings // TODO: Document this
|
|
40
|
-
// strings1[index] === string // slower
|
|
41
40
|
);
|
|
42
41
|
if (!everyStringMatched) {
|
|
43
42
|
return false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isLikeTags.function.js","sourceRoot":"","sources":["../../ts/tag/isLikeTags.function.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAE7D,MAAM,UAAU,UAAU,CACxB,QAAgC,EAAE,MAAM;AACxC,QAAoB;IAEpB,MAAM,UAAU,GAAG,QAAQ,CAAC,SAAwC,CAAA;IACpE,MAAM,UAAU,GAAG,QAAQ,CAAC,SAA4B,CAAA;IAExD,MAAM,IAAI,GAAG,UAAU,EAAE,GAAG,IAAK,QAA+B,CAAA;IAChE,MAAM,IAAI,GAAG,UAAU,CAAC,GAAqC,CAAA,CAAC,uBAAuB;IAErF,IAAG,UA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;IAED,MAAM,YAAY,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,KAAK,EAAC,EAAE;QACjD,MAAM,SAAS,GAAG,OAAO,CAAC,KAAK,CAAC,CAAA;QAChC,MAAM,WAAW,GAAG,OAAM,CAAC,KAAK,CAAC,KAAK,UAAU,CAAC,QAAQ,IAAI,OAAM,CAAC,SAAS,CAAC,KAAK,UAAU,CAAC,QAAQ,CAAA;QAEtG,IAAG,WAAW,EAAE,CAAC;YACf,MAAM,WAAW,GAAG,KAAK,CAAC,QAAQ,EAAE,KAAK,SAAS,CAAC,QAAQ,EAAE,CAAA;YAC7D,IAAG,WAAW,EAAE,CAAC;gBACf,OAAO,IAAI,CAAA;YACb,CAAC;YAED,OAAO,KAAK,CAAA;QACd,CAAC;QAED,OAAO,IAAI,CAAA;IACb,CAAC,CAAC,CAAA;IAEF,IAAG,YAAY,EAAE,CAAC;QAChB,OAAO,IAAI,CAAA;IACb,CAAC;IAED,OAAO,KAAK,CAAA;AACd,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { AnySupport } from './
|
|
1
|
+
import { AnySupport } from './AnySupport.type.js';
|
|
2
2
|
import { ContextItem } from './Context.types.js';
|
|
3
3
|
export declare function processUpdateAttrContext(values: unknown[], value: unknown, contextItem: ContextItem, ownerSupport: AnySupport): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnySupport } from './
|
|
1
|
+
import { AnySupport } from './AnySupport.type.js';
|
|
2
2
|
import { ContextItem } from './Context.types.js';
|
|
3
3
|
export declare function processUpdateContext(support: AnySupport, context: ContextItem[]): ContextItem[];
|
|
4
4
|
/** returns boolean of did render */
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { AnySupport
|
|
2
|
-
|
|
1
|
+
import { AnySupport } from '../AnySupport.type.js';
|
|
2
|
+
import { SupportContextItem } from '../createHtmlSupport.function.js';
|
|
3
|
+
export declare function renderExistingReadyTag(lastSupport: AnySupport, // should be global.newest
|
|
4
|
+
newSupport: AnySupport, // new to be rendered
|
|
3
5
|
ownerSupport: AnySupport, // ownerSupport
|
|
4
6
|
subject: SupportContextItem): AnySupport;
|
|
@@ -3,7 +3,8 @@ import { processTag } from '../update/processTag.function.js';
|
|
|
3
3
|
import { updateSupportBy } from '../updateSupportBy.function.js';
|
|
4
4
|
const fooCounts = { added: 0, removed: 0 };
|
|
5
5
|
// TODO: This function is being called for 1st time renders WHEN renderCount === 1
|
|
6
|
-
export function renderExistingReadyTag(lastSupport,
|
|
6
|
+
export function renderExistingReadyTag(lastSupport, // should be global.newest
|
|
7
|
+
newSupport, // new to be rendered
|
|
7
8
|
ownerSupport, // ownerSupport
|
|
8
9
|
subject) {
|
|
9
10
|
const global = subject.global;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderExistingTag.function.js","sourceRoot":"","sources":["../../../ts/tag/render/renderExistingTag.function.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"renderExistingTag.function.js","sourceRoot":"","sources":["../../../ts/tag/render/renderExistingTag.function.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAK,iCAAiC,CAAA;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAA;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAGhE,MAAM,SAAS,GAAW,EAAE,KAAK,EAAC,CAAC,EAAE,OAAO,EAAC,CAAC,EAAE,CAAA;AAEhD,kFAAkF;AAClF,MAAM,UAAU,sBAAsB,CACpC,WAAuB,EAAE,0BAA0B;AACnD,UAAsB,EAAE,qBAAqB;AAC7C,YAAwB,EAAE,eAAe;AACzC,OAA2B;IAE3B,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAA;IAC7B,MAAM,EAAC,OAAO,EAAE,WAAW,EAAC,GAAG,iBAAiB,CAC9C,UAAU,EACV,WAAW,EAAE,6CAA6C;IAC1D,OAAO,EACP,YAA0B,CAC3B,CAAA;IAED,IAAI,WAAW,EAAG,CAAC;QACjB,eAAe,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;QACvC,OAAO,OAAO,CAAA;IAChB,CAAC;IAED,UAAU,CACR,YAAY,EACZ,OAAO,EACP,SAAS,CACV,CAAA;IAED,OAAO,OAAO,CAAA;AAChB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnySupport } from '../
|
|
1
|
+
import { AnySupport } from '../AnySupport.type.js';
|
|
2
2
|
import { Props } from '../../Props.js';
|
|
3
3
|
import { TemplaterResult } from '../getTemplaterResult.function.js';
|
|
4
4
|
export declare function isInlineHtml(templater: TemplaterResult): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderSupport.function.js","sourceRoot":"","sources":["../../../ts/tag/render/renderSupport.function.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"renderSupport.function.js","sourceRoot":"","sources":["../../../ts/tag/render/renderSupport.function.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAK,iCAAiC,CAAA;AAEvE,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AAEzG,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,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,MAA0B,CAAA;IACzD,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAA;IACnC,MAAM,UAAU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YAAwB,EACxB,SAA0B,EAC1B,OAAmB;IAEnB,MAAM,cAAc,GAAG,sBAAsB,CAC3C,SAAS,EACT,OAAO,CACR,CAAA;IAED,4DAA4D;IAC5D,IAAG,YAAY,IAAI,cAAc,EAAE,CAAC;QAClC,OAAO,IAAI,CAAA;IACb,CAAC;IAED,OAAO,KAAK,CAAA;AACd,CAAC;AAED,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;IACpC;;;;;;MAME;IACF,OAAO,MAAM,KAAK,SAAS,CAAA;AAC7B,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SupportContextItem } from '../createHtmlSupport.function.js';
|
|
2
|
+
import { AnySupport } from '../AnySupport.type.js';
|
|
2
3
|
export declare function renderTagOnly(newSupport: AnySupport, prevSupport: AnySupport | undefined, // causes restate
|
|
3
4
|
subject: SupportContextItem, ownerSupport?: AnySupport): AnySupport;
|
|
@@ -3,17 +3,13 @@ import { ValueTypes } from '../ValueTypes.enum.js';
|
|
|
3
3
|
import { runAfterRender } from '../afterRender.function.js';
|
|
4
4
|
import { initState, reState } from '../../state/state.utils.js';
|
|
5
5
|
import { setUseMemory } from '../../state/setUseMemory.object.js';
|
|
6
|
-
import {
|
|
6
|
+
import { createSupport } from '../createSupport.function.js';
|
|
7
7
|
export function renderTagOnly(newSupport, prevSupport, // causes restate
|
|
8
8
|
subject, ownerSupport) {
|
|
9
|
-
const global = subject.global;
|
|
10
|
-
const oldRenderCount = subject.renderCount;
|
|
11
9
|
const prevState = prevSupport?.state;
|
|
12
10
|
const config = setUseMemory.stateConfig;
|
|
13
11
|
if (prevState) {
|
|
14
|
-
|
|
15
|
-
config.prevSupport = prevSupport;
|
|
16
|
-
reState(newSupport, setUseMemory.stateConfig, prevState, prevStates);
|
|
12
|
+
reState(newSupport, prevSupport, setUseMemory.stateConfig, prevState);
|
|
17
13
|
}
|
|
18
14
|
else {
|
|
19
15
|
initState(newSupport, config);
|
|
@@ -23,25 +19,17 @@ subject, ownerSupport) {
|
|
|
23
19
|
// NEW TAG CREATED HERE
|
|
24
20
|
if (templater.tagJsType === ValueTypes.stateRender) {
|
|
25
21
|
const result = templater; // .wrapper as any// || {original: templater} as any
|
|
26
|
-
|
|
27
|
-
const useSupport = getSupport(templater, ownerSupport, newSupport.appSupport, // ownerSupport.appSupport as AnySupport,
|
|
22
|
+
reSupport = createSupport(templater, ownerSupport, newSupport.appSupport, // ownerSupport.appSupport as AnySupport,
|
|
28
23
|
subject);
|
|
29
|
-
|
|
30
|
-
reSupport.states = newSupport.states;
|
|
24
|
+
executeWrap(templater, result, reSupport);
|
|
31
25
|
}
|
|
32
26
|
else {
|
|
33
27
|
// functions wrapped in tag()
|
|
34
28
|
const wrapper = templater.wrapper;
|
|
35
29
|
// calls the function returned from getTagWrap()
|
|
36
30
|
reSupport = wrapper(newSupport, subject, prevSupport);
|
|
37
|
-
reSupport.states = newSupport.states;
|
|
38
31
|
}
|
|
39
32
|
runAfterRender(reSupport, ownerSupport);
|
|
40
|
-
// When we rendered, only 1 render should have taken place OTHERWISE rendering caused another render and that is the latest instead
|
|
41
|
-
// TODO: below most likely not needed
|
|
42
|
-
if (subject.renderCount > oldRenderCount + 1) {
|
|
43
|
-
return global.newest;
|
|
44
|
-
}
|
|
45
33
|
return reSupport;
|
|
46
34
|
}
|
|
47
35
|
//# sourceMappingURL=renderTagOnly.function.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderTagOnly.function.js","sourceRoot":"","sources":["../../../ts/tag/render/renderTagOnly.function.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAElD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAA;AACjE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"renderTagOnly.function.js","sourceRoot":"","sources":["../../../ts/tag/render/renderTagOnly.function.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAElD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAA;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAG5D,MAAM,UAAU,aAAa,CAC3B,UAAsB,EACtB,WAAmC,EAAE,iBAAiB;AACtD,OAA0B,EAC1B,YAAyB;IAEzB,MAAM,SAAS,GAAG,WAAW,EAAE,KAAK,CAAA;IACpC,MAAM,MAAM,GAAG,YAAY,CAAC,WAAW,CAAA;IAEvC,IAAG,SAAS,EAAE,CAAC;QACb,OAAO,CACL,UAAU,EACV,WAAW,EACX,YAAY,CAAC,WAAW,EACxB,SAAS,CACV,CAAA;IACH,CAAC;SAAM,CAAC;QACN,SAAS,CAAC,UAAU,EAAE,MAAM,CAAC,CAAA;IAC/B,CAAC;IAED,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,OAAO,SAAS,CAAA;AAClB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { AnySupport
|
|
1
|
+
import { AnySupport } from '../AnySupport.type.js';
|
|
2
|
+
import { SupportContextItem } from '../createHtmlSupport.function.js';
|
|
2
3
|
/** TODO: This seems to support both new and updates and should be separated? */
|
|
3
|
-
export declare function renderWithSupport(newSupport: AnySupport, lastSupport: AnySupport | undefined, // previous
|
|
4
|
+
export declare function renderWithSupport(newSupport: AnySupport, lastSupport: AnySupport | undefined, // previous (global.newest)
|
|
4
5
|
subject: SupportContextItem, // events & memory
|
|
5
6
|
ownerSupport?: AnySupport): {
|
|
6
7
|
support: AnySupport;
|
|
@@ -4,7 +4,7 @@ import { renderTagOnly } from './renderTagOnly.function.js';
|
|
|
4
4
|
import { isLikeTags } from '../isLikeTags.function.js';
|
|
5
5
|
import { ValueTypes } from '../ValueTypes.enum.js';
|
|
6
6
|
/** TODO: This seems to support both new and updates and should be separated? */
|
|
7
|
-
export function renderWithSupport(newSupport, lastSupport, // previous
|
|
7
|
+
export function renderWithSupport(newSupport, lastSupport, // previous (global.newest)
|
|
8
8
|
subject, // events & memory
|
|
9
9
|
ownerSupport) {
|
|
10
10
|
const lastTemplater = lastSupport?.templater;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderWithSupport.function.js","sourceRoot":"","sources":["../../../ts/tag/render/renderWithSupport.function.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"renderWithSupport.function.js","sourceRoot":"","sources":["../../../ts/tag/render/renderWithSupport.function.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,kDAAkD,CAAA;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AAErE,OAAO,EAAE,aAAa,EAAE,MAAK,6BAA6B,CAAA;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAK,2BAA2B,CAAA;AAGrD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAGlD,gFAAgF;AAChF,MAAM,UAAU,iBAAiB,CAC/B,UAAsB,EACtB,WAAkC,EAAE,2BAA2B;AAC/D,OAA2B,EAAE,kBAAkB;AAC/C,YAAyB;IAEzB,MAAM,aAAa,GAAG,WAAW,EAAE,SAAS,CAAA;IAC5C,MAAM,OAAO,GAAG,aAAa,EAAE,GAAG,CAAA;IAElC,M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