taggedjs 2.4.17 → 2.4.32
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 +1314 -1241
- package/bundle.js.map +1 -1
- package/js/Clones.type.d.ts +1 -1
- package/js/Tag.class.d.ts +5 -40
- package/js/Tag.class.js +2 -347
- package/js/Tag.class.js.map +1 -1
- package/js/TagSupport.class.d.ts +40 -6
- package/js/TagSupport.class.js +268 -30
- package/js/TagSupport.class.js.map +1 -1
- package/js/TemplaterResult.class.d.ts +13 -13
- package/js/TemplaterResult.class.js +34 -45
- package/js/TemplaterResult.class.js.map +1 -1
- package/js/afterInterpolateElement.function.d.ts +4 -0
- package/js/afterInterpolateElement.function.js +14 -0
- package/js/afterInterpolateElement.function.js.map +1 -0
- package/js/alterProps.function.d.ts +2 -4
- package/js/alterProps.function.js +7 -15
- package/js/alterProps.function.js.map +1 -1
- package/js/bindSubjectCallback.function.js +0 -3
- package/js/bindSubjectCallback.function.js.map +1 -1
- package/js/checkDestroyPrevious.function.d.ts +5 -5
- package/js/checkDestroyPrevious.function.js +20 -17
- package/js/checkDestroyPrevious.function.js.map +1 -1
- package/js/cloneValueArray.function.d.ts +2 -0
- package/js/cloneValueArray.function.js +19 -0
- package/js/cloneValueArray.function.js.map +1 -0
- package/js/deepFunctions.js +36 -29
- package/js/deepFunctions.js.map +1 -1
- package/js/destroy.support.d.ts +6 -0
- package/js/destroy.support.js +10 -0
- package/js/destroy.support.js.map +1 -0
- package/js/destroyTag.function.d.ts +2 -3
- package/js/destroyTag.function.js +7 -11
- package/js/destroyTag.function.js.map +1 -1
- package/js/hasTagSupportChanged.function.js +0 -12
- package/js/hasTagSupportChanged.function.js.map +1 -1
- package/js/index.d.ts +2 -1
- package/js/index.js +2 -1
- package/js/index.js.map +1 -1
- package/js/interpolateTemplate.js +0 -3
- package/js/interpolateTemplate.js.map +1 -1
- package/js/interpolations/bindSubjectCallback.function.d.ts +7 -0
- package/js/interpolations/bindSubjectCallback.function.js +40 -0
- package/js/interpolations/bindSubjectCallback.function.js.map +1 -0
- package/js/interpolations/elementInitCheck.d.ts +2 -0
- package/js/interpolations/elementInitCheck.js +18 -0
- package/js/interpolations/elementInitCheck.js.map +1 -0
- package/js/interpolations/inputAttribute.d.ts +1 -0
- package/js/interpolations/inputAttribute.js +19 -0
- package/js/interpolations/inputAttribute.js.map +1 -0
- package/js/interpolations/interpolateAttributes.d.ts +4 -0
- package/js/interpolations/interpolateAttributes.js +20 -0
- package/js/interpolations/interpolateAttributes.js.map +1 -0
- package/js/interpolations/interpolateContentTemplates.d.ts +9 -0
- package/js/interpolations/interpolateContentTemplates.js +42 -0
- package/js/interpolations/interpolateContentTemplates.js.map +1 -0
- package/js/interpolations/interpolateElement.d.ts +14 -0
- package/js/interpolations/interpolateElement.js +36 -0
- package/js/interpolations/interpolateElement.js.map +1 -0
- package/js/interpolations/interpolateTemplate.d.ts +32 -0
- package/js/interpolations/interpolateTemplate.js +80 -0
- package/js/interpolations/interpolateTemplate.js.map +1 -0
- package/js/interpolations/interpolations.d.ts +7 -0
- package/js/interpolations/interpolations.js +18 -0
- package/js/interpolations/interpolations.js.map +1 -0
- package/js/interpolations/processAttribute.function.d.ts +5 -0
- package/js/interpolations/processAttribute.function.js +122 -0
- package/js/interpolations/processAttribute.function.js.map +1 -0
- package/js/interpolations/scanTextAreaValue.function.d.ts +3 -0
- package/js/interpolations/scanTextAreaValue.function.js +16 -0
- package/js/interpolations/scanTextAreaValue.function.js.map +1 -0
- package/js/interpolations.js +1 -2
- package/js/interpolations.js.map +1 -1
- package/js/isInstance.d.ts +4 -1
- package/js/isInstance.js +12 -4
- package/js/isInstance.js.map +1 -1
- package/js/isLikeTags.function.d.ts +3 -1
- package/js/isLikeTags.function.js +15 -6
- package/js/isLikeTags.function.js.map +1 -1
- package/js/processNewValue.function.d.ts +3 -2
- package/js/processNewValue.function.js +27 -11
- package/js/processNewValue.function.js.map +1 -1
- package/js/processRegularValue.function.d.ts +1 -1
- package/js/processSubjectComponent.function.d.ts +5 -5
- package/js/processSubjectComponent.function.js +26 -34
- package/js/processSubjectComponent.function.js.map +1 -1
- package/js/processSubjectValue.function.d.ts +11 -7
- package/js/processSubjectValue.function.js +20 -7
- package/js/processSubjectValue.function.js.map +1 -1
- package/js/processTag.function.d.ts +8 -4
- package/js/processTag.function.js +23 -39
- package/js/processTag.function.js.map +1 -1
- package/js/processTagArray.d.ts +6 -4
- package/js/processTagArray.js +41 -39
- package/js/processTagArray.js.map +1 -1
- package/js/processTagResult.function.d.ts +4 -4
- package/js/processTagResult.function.js +14 -30
- package/js/processTagResult.function.js.map +1 -1
- package/js/renderExistingTag.function.d.ts +6 -6
- package/js/renderExistingTag.function.js +26 -22
- package/js/renderExistingTag.function.js.map +1 -1
- package/js/renderTagSupport.function.d.ts +2 -3
- package/js/renderTagSupport.function.js +17 -20
- package/js/renderTagSupport.function.js.map +1 -1
- package/js/setTagPlaceholder.function.d.ts +2 -0
- package/js/setTagPlaceholder.function.js +8 -0
- package/js/setTagPlaceholder.function.js.map +1 -0
- package/js/state/callbackMaker.function.d.ts +2 -2
- package/js/state/callbackMaker.function.js +4 -5
- package/js/state/callbackMaker.function.js.map +1 -1
- package/js/state/onDestroy.js +2 -2
- package/js/state/onDestroy.js.map +1 -1
- package/js/state/onInit.js +4 -5
- package/js/state/onInit.js.map +1 -1
- package/js/state/provider.utils.d.ts +2 -2
- package/js/state/provider.utils.js +11 -16
- package/js/state/provider.utils.js.map +1 -1
- package/js/state/providers.d.ts +8 -3
- package/js/state/providers.js +15 -18
- package/js/state/providers.js.map +1 -1
- package/js/state/setUse.function.d.ts +12 -10
- package/js/state/setUse.function.js.map +1 -1
- package/js/state/state.utils.d.ts +1 -3
- package/js/state/state.utils.js +19 -13
- package/js/state/state.utils.js.map +1 -1
- package/js/state/watch.function.d.ts +6 -1
- package/js/state/watch.function.js +8 -3
- package/js/state/watch.function.js.map +1 -1
- package/js/subject/Subject.class.d.ts +10 -6
- package/js/subject/Subject.class.js +26 -10
- package/js/subject/Subject.class.js.map +1 -1
- package/js/subject/Subject.utils.d.ts +7 -5
- package/js/subject/Subject.utils.js.map +1 -1
- package/js/subject/ValueSubject.d.ts +2 -2
- package/js/subject/ValueSubject.js +1 -1
- package/js/subject/ValueSubject.js.map +1 -1
- package/js/subject/combineLatest.function.js.map +1 -1
- package/js/subject.types.d.ts +18 -0
- package/js/subject.types.js +2 -0
- package/js/subject.types.js.map +1 -0
- package/js/tag.d.ts +1 -1
- package/js/tag.js +25 -31
- package/js/tag.js.map +1 -1
- package/js/tagElement.d.ts +3 -7
- package/js/tagElement.js +24 -24
- package/js/tagElement.js.map +1 -1
- package/js/tagRunner.d.ts +7 -6
- package/js/tagRunner.js +16 -8
- package/js/tagRunner.js.map +1 -1
- package/js/updateBeforeTemplate.function.d.ts +1 -1
- package/js/updateBeforeTemplate.function.js.map +1 -1
- package/js/updateContextItem.function.d.ts +3 -0
- package/js/updateContextItem.function.js +43 -0
- package/js/updateContextItem.function.js.map +1 -0
- package/js/updateExistingTagComponent.function.d.ts +4 -4
- package/js/updateExistingTagComponent.function.js +49 -87
- package/js/updateExistingTagComponent.function.js.map +1 -1
- package/js/updateExistingValue.function.d.ts +2 -7
- package/js/updateExistingValue.function.js +94 -50
- package/js/updateExistingValue.function.js.map +1 -1
- package/package.json +1 -1
- /package/js/{errors.d.ts → Errors.d.ts} +0 -0
- /package/js/{errors.js → Errors.js} +0 -0
- /package/js/{errors.js.map → Errors.js.map} +0 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { isSubjectInstance, isTagComponent } from './isInstance';
|
|
2
|
+
import { TagSupport } from './TagSupport.class';
|
|
3
|
+
export function updateContextItem(context, variableName, value) {
|
|
4
|
+
const subject = context[variableName];
|
|
5
|
+
const tagSubject = subject;
|
|
6
|
+
const tagSupport = tagSubject.tagSupport;
|
|
7
|
+
if (tagSupport) {
|
|
8
|
+
if (value) {
|
|
9
|
+
if (isTagComponent(value)) {
|
|
10
|
+
const templater = value;
|
|
11
|
+
let newSupport = new TagSupport(templater, tagSupport.ownerTagSupport, subject);
|
|
12
|
+
if (isTagComponent(tagSupport)) {
|
|
13
|
+
shareTemplaterGlobal(tagSupport, newSupport);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
if (isSubjectInstance(value)) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
// listeners will evaluate updated values to possibly update display(s)
|
|
22
|
+
subject.set(value);
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
function shareTemplaterGlobal(oldTagSupport, tagSupport) {
|
|
26
|
+
const oldTemp = oldTagSupport.templater;
|
|
27
|
+
const oldWrap = oldTemp.wrapper; // tag versus component
|
|
28
|
+
const oldValueFn = oldWrap.original;
|
|
29
|
+
const templater = tagSupport.templater;
|
|
30
|
+
const newWrapper = templater.wrapper;
|
|
31
|
+
const newValueFn = newWrapper?.original;
|
|
32
|
+
const fnMatched = oldValueFn === newValueFn;
|
|
33
|
+
if (fnMatched) {
|
|
34
|
+
tagSupport.global = oldTagSupport.global;
|
|
35
|
+
// ??? new mirroring transfer state
|
|
36
|
+
const newest = oldTagSupport.global.newest;
|
|
37
|
+
if (newest) {
|
|
38
|
+
const prevState = newest.memory.state;
|
|
39
|
+
tagSupport.memory.state = [...prevState];
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=updateContextItem.function.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateContextItem.function.js","sourceRoot":"","sources":["../ts/updateContextItem.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAKhE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAG/C,MAAM,UAAU,iBAAiB,CAC/B,OAAgB,EAChB,YAAoB,EACpB,KAAoB;IAEp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,CAAC,MAAoB,CAAA;QACxD,IAAG,MAAM,EAAE,CAAC;YACV,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAA;YACrC,UAAU,CAAC,MAAM,CAAC,KAAK,GAAG,CAAC,GAAG,SAAS,CAAC,CAAA;QAC1C,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TagSubject } from './
|
|
2
|
-
import {
|
|
3
|
-
import { Tag } from './Tag.class';
|
|
1
|
+
import { TagSubject } from './subject.types';
|
|
2
|
+
import { TagSupport } from './TagSupport.class';
|
|
4
3
|
import { InsertBefore } from './Clones.type';
|
|
5
|
-
export declare function updateExistingTagComponent(
|
|
4
|
+
export declare function updateExistingTagComponent(ownerSupport: TagSupport, tagSupport: TagSupport, // lastest
|
|
5
|
+
subject: TagSubject, insertBefore: InsertBefore): TagSupport;
|
|
@@ -3,134 +3,96 @@ import { processSubjectComponent } from './processSubjectComponent.function';
|
|
|
3
3
|
import { destroyTagMemory } from './destroyTag.function';
|
|
4
4
|
import { renderTagSupport } from './renderTagSupport.function';
|
|
5
5
|
import { callbackPropOwner } from './alterProps.function';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
import { isLikeTags } from './isLikeTags.function';
|
|
7
|
+
export function updateExistingTagComponent(ownerSupport, tagSupport, // lastest
|
|
8
|
+
subject, insertBefore) {
|
|
9
|
+
// ??? changed during mirroring
|
|
10
|
+
// let lastSupport = subject.tagSupport
|
|
11
|
+
let lastSupport = subject.tagSupport?.global.newest; // || subject.tagSupport
|
|
12
|
+
let oldestTag = lastSupport.global.oldest;
|
|
13
|
+
const oldWrapper = lastSupport.templater.wrapper;
|
|
14
|
+
const newWrapper = tagSupport.templater.wrapper;
|
|
10
15
|
let isSameTag = false;
|
|
11
16
|
if (oldWrapper && newWrapper) {
|
|
12
17
|
const oldFunction = oldWrapper.original;
|
|
13
18
|
const newFunction = newWrapper.original;
|
|
14
19
|
isSameTag = oldFunction === newFunction;
|
|
15
20
|
}
|
|
16
|
-
const
|
|
17
|
-
const oldGlobal = oldTagSupport.templater.global;
|
|
18
|
-
// const placeholderElm = ownerTag.tagSupport.templater.global.placeholderElm
|
|
19
|
-
const placeholderElm = oldGlobal.placeholder;
|
|
20
|
-
if (placeholderElm) {
|
|
21
|
-
if (!placeholderElm.parentNode) {
|
|
22
|
-
throw new Error('stop here no subject parent node update existing tag');
|
|
23
|
-
}
|
|
24
|
-
}
|
|
21
|
+
const templater = tagSupport.templater;
|
|
25
22
|
if (!isSameTag) {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
insertBefore, // oldInsertBefore,
|
|
30
|
-
ownerTag, {
|
|
23
|
+
const oldestSupport = lastSupport.global.oldest;
|
|
24
|
+
destroyTagMemory(oldestSupport, subject);
|
|
25
|
+
return processSubjectComponent(templater, subject, insertBefore, ownerSupport, {
|
|
31
26
|
forceElement: false,
|
|
32
27
|
counts: { added: 0, removed: 0 },
|
|
33
28
|
});
|
|
34
29
|
}
|
|
35
30
|
else {
|
|
36
|
-
const
|
|
37
|
-
const hasChanged = hasTagSupportChanged(oldTagSupport, newTagSupport, templater);
|
|
31
|
+
const hasChanged = hasTagSupportChanged(lastSupport, tagSupport, templater);
|
|
38
32
|
if (!hasChanged) {
|
|
39
33
|
// if the new props are an object then implicitly since no change, the old props are an object
|
|
40
34
|
const newProps = templater.props;
|
|
41
35
|
if (newProps && typeof (newProps) === 'object') {
|
|
42
|
-
|
|
43
|
-
// const oldProps = existingTag.tagSupport.propsConfig.latestCloned as Record<string,any> // newestTag.props as Record<string, any>
|
|
44
|
-
syncFunctionProps(templater, existingTag, ownerTag, newProps);
|
|
36
|
+
syncFunctionProps(lastSupport, ownerSupport, newProps);
|
|
45
37
|
}
|
|
46
|
-
return
|
|
38
|
+
return lastSupport; // its the same tag component
|
|
47
39
|
}
|
|
48
40
|
}
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
const newTag = renderTagSupport(templater.tagSupport, false);
|
|
55
|
-
existingTag = subject.tag;
|
|
56
|
-
const newOldest = newTag.tagSupport.templater.global.oldest;
|
|
41
|
+
const previous = lastSupport.global.newest;
|
|
42
|
+
const newSupport = renderTagSupport(tagSupport, false);
|
|
43
|
+
lastSupport = subject.tagSupport;
|
|
44
|
+
const newOldest = newSupport.global.oldest;
|
|
57
45
|
const hasOldest = newOldest ? true : false;
|
|
58
46
|
if (!hasOldest) {
|
|
59
|
-
return buildNewTag(
|
|
60
|
-
// ??? newly changed
|
|
61
|
-
insertBefore, // oldInsertBefore,
|
|
62
|
-
oldTagSupport, subject);
|
|
47
|
+
return buildNewTag(newSupport, insertBefore, lastSupport, subject);
|
|
63
48
|
}
|
|
64
49
|
if (newOldest && templater.children.value.length) {
|
|
65
|
-
const oldKidsSub = newOldest.
|
|
50
|
+
const oldKidsSub = newOldest.templater.children;
|
|
66
51
|
oldKidsSub.set(templater.children.value);
|
|
67
52
|
}
|
|
68
|
-
// const newTag = tempResult.newest as Tag
|
|
69
|
-
if (previous && !oldestTag) {
|
|
70
|
-
throw new Error('bad elders');
|
|
71
|
-
}
|
|
72
53
|
// detect if both the function is the same and the return is the same
|
|
73
|
-
const isLikeTag = isSameTag && previous
|
|
74
|
-
if (previous && !oldestTag) {
|
|
75
|
-
throw new Error('bad elders');
|
|
76
|
-
}
|
|
77
|
-
let oldest = oldTagSupport.templater.global.oldest;
|
|
54
|
+
const isLikeTag = isSameTag && isLikeTags(previous, newSupport);
|
|
78
55
|
if (isLikeTag) {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
subject.tag = newTag;
|
|
83
|
-
oldestTag.updateByTag(newTag); // the oldest tag has element references
|
|
84
|
-
return newTag;
|
|
56
|
+
subject.tagSupport = newSupport;
|
|
57
|
+
oldestTag.updateBy(newSupport); // the oldest tag has element references
|
|
58
|
+
return newSupport;
|
|
85
59
|
}
|
|
86
60
|
else {
|
|
87
61
|
// Although function looked the same it returned a different html result
|
|
88
|
-
if (isSameTag &&
|
|
89
|
-
destroyTagMemory(
|
|
90
|
-
|
|
62
|
+
if (isSameTag && lastSupport) {
|
|
63
|
+
destroyTagMemory(lastSupport, subject);
|
|
64
|
+
newSupport.global.context = {}; // do not share previous outputs
|
|
91
65
|
}
|
|
92
|
-
|
|
66
|
+
oldestTag = undefined;
|
|
93
67
|
}
|
|
94
|
-
if (!
|
|
95
|
-
|
|
68
|
+
if (!oldestTag) {
|
|
69
|
+
lastSupport = newSupport;
|
|
70
|
+
buildNewTag(newSupport, lastSupport.global.insertBefore, lastSupport, subject);
|
|
96
71
|
}
|
|
97
|
-
|
|
98
|
-
return
|
|
99
|
-
}
|
|
100
|
-
function checkStateChanged(state) {
|
|
101
|
-
return !state.newest.every(state => {
|
|
102
|
-
const lastValue = state.lastValue;
|
|
103
|
-
const nowValue = state.get();
|
|
104
|
-
const matched = lastValue === nowValue;
|
|
105
|
-
if (matched) {
|
|
106
|
-
return true;
|
|
107
|
-
}
|
|
108
|
-
return false;
|
|
109
|
-
});
|
|
72
|
+
lastSupport.global.newest = newSupport;
|
|
73
|
+
return newSupport;
|
|
110
74
|
}
|
|
111
|
-
function buildNewTag(
|
|
112
|
-
|
|
75
|
+
function buildNewTag(newSupport, oldInsertBefore, oldTagSupport, subject) {
|
|
76
|
+
newSupport.buildBeforeElement(oldInsertBefore, {
|
|
113
77
|
forceElement: true,
|
|
114
78
|
counts: { added: 0, removed: 0 },
|
|
115
79
|
});
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
oldTagSupport.
|
|
119
|
-
oldTagSupport.
|
|
120
|
-
subject.
|
|
121
|
-
return
|
|
80
|
+
newSupport.global.oldest = newSupport;
|
|
81
|
+
newSupport.global.newest = newSupport;
|
|
82
|
+
oldTagSupport.global.oldest = newSupport;
|
|
83
|
+
oldTagSupport.global.newest = newSupport;
|
|
84
|
+
subject.tagSupport = newSupport;
|
|
85
|
+
return newSupport;
|
|
122
86
|
}
|
|
123
|
-
function syncFunctionProps(
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
const priorProps =
|
|
127
|
-
const
|
|
128
|
-
const ownerSupport = oldLatest.tagSupport;
|
|
87
|
+
function syncFunctionProps(lastSupport, ownerSupport, newProps) {
|
|
88
|
+
lastSupport = lastSupport.global.newest || lastSupport;
|
|
89
|
+
const priorPropConfig = lastSupport.propsConfig;
|
|
90
|
+
const priorProps = priorPropConfig.latestCloned;
|
|
91
|
+
const prevSupport = ownerSupport.global.newest;
|
|
129
92
|
Object.entries(priorProps).forEach(([name, value]) => {
|
|
130
93
|
if (!(value instanceof Function)) {
|
|
131
94
|
return;
|
|
132
95
|
}
|
|
133
|
-
const newOriginal = value.original;
|
|
134
96
|
// TODO: The code below maybe irrelevant
|
|
135
97
|
const newCallback = newProps[name];
|
|
136
98
|
const original = newCallback.original;
|
|
@@ -140,7 +102,7 @@ function syncFunctionProps(templater, existingTag, ownerTag, newProps) {
|
|
|
140
102
|
// Currently, call self but over parent state changes, I may need to call a newer parent tag owner
|
|
141
103
|
priorProps[name].toCall = (...args) => {
|
|
142
104
|
return callbackPropOwner(newCallback, // value, // newOriginal,
|
|
143
|
-
args,
|
|
105
|
+
args, prevSupport);
|
|
144
106
|
};
|
|
145
107
|
return;
|
|
146
108
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateExistingTagComponent.function.js","sourceRoot":"","sources":["../ts/updateExistingTagComponent.function.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"updateExistingTagComponent.function.js","sourceRoot":"","sources":["../ts/updateExistingTagComponent.function.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAA;AAEtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAA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,WAAW,CAAA;IAC/C,MAAM,UAAU,GAAG,eAAe,CAAC,YAAmC,CAAA;IACtE,MAAM,WAAW,GAAG,YAAY,CAAC,MAAM,CAAC,MAAoB,CAAA;IAE5D,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE;QACnD,IAAG,CAAC,CAAC,KAAK,YAAY,QAAQ,CAAC,EAAE,CAAC;YAChC,OAAM;QACR,CAAC;QAED,wCAAwC;QACxC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAA;QAClC,MAAM,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAA;QACrC,IAAG,QAAQ,EAAE,CAAC;YACZ,OAAM,CAAC,+BAA+B;QACxC,CAAC;QAED,kGAAkG;QAClG,UAAU,CAAC,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC,GAAG,IAAW,EAAE,EAAE;YAC3C,OAAO,iBAAiB,CACtB,WAAW,EAAE,yBAAyB;YACtC,IAAI,EACJ,WAAW,CACZ,CAAA;QACH,CAAC,CAAA;QAED,OAAM;IACR,CAAC,CAAC,CAAA;AACJ,CAAC"}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import { TagSupport } from './TagSupport.class';
|
|
2
|
-
import {
|
|
3
|
-
import { TemplaterResult } from './TemplaterResult.class';
|
|
4
|
-
import { Tag } from './Tag.class';
|
|
5
|
-
import { InterpolateSubject } from './processSubjectValue.function';
|
|
6
|
-
import { RegularValue } from './processRegularValue.function';
|
|
2
|
+
import { InterpolateSubject, TemplateValue } from './processSubjectValue.function';
|
|
7
3
|
import { InsertBefore } from './Clones.type';
|
|
8
|
-
export
|
|
9
|
-
export declare function updateExistingValue(subject: InterpolateSubject, value: ExistingValue, ownerTag: Tag, insertBefore: InsertBefore): InterpolateSubject;
|
|
4
|
+
export declare function updateExistingValue(subject: InterpolateSubject, value: TemplateValue, ownerSupport: TagSupport, insertBefore: InsertBefore): InterpolateSubject;
|
|
@@ -1,94 +1,138 @@
|
|
|
1
1
|
import { TagSupport } from './TagSupport.class';
|
|
2
|
-
import {
|
|
2
|
+
import { TemplaterResult } from './TemplaterResult.class';
|
|
3
|
+
import { isSubjectInstance, isTagArray, isTagClass, isTagComponent, isTagTemplater } from './isInstance';
|
|
3
4
|
import { processTagArray } from './processTagArray';
|
|
4
5
|
import { updateExistingTagComponent } from './updateExistingTagComponent.function';
|
|
5
6
|
import { processRegularValue } from './processRegularValue.function';
|
|
6
7
|
import { checkDestroyPrevious } from './checkDestroyPrevious.function';
|
|
8
|
+
import { ValueSubject } from './subject/ValueSubject';
|
|
7
9
|
import { processSubjectComponent } from './processSubjectComponent.function';
|
|
8
10
|
import { isLikeTags } from './isLikeTags.function';
|
|
9
|
-
import { bindSubjectCallback } from './bindSubjectCallback.function';
|
|
10
|
-
import {
|
|
11
|
-
|
|
11
|
+
import { bindSubjectCallback } from './interpolations/bindSubjectCallback.function';
|
|
12
|
+
import { setupNewTemplater, getFakeTemplater, processTag } from './processTag.function';
|
|
13
|
+
import { insertAfter } from './insertAfter.function';
|
|
14
|
+
export function updateExistingValue(subject, value, ownerSupport, insertBefore) {
|
|
12
15
|
const subjectTag = subject;
|
|
13
16
|
const isComponent = isTagComponent(value);
|
|
14
17
|
checkDestroyPrevious(subject, value, insertBefore);
|
|
15
18
|
// handle already seen tag components
|
|
16
19
|
if (isComponent) {
|
|
17
|
-
|
|
18
|
-
// When was something before component
|
|
19
|
-
if (!subjectTag.tag) {
|
|
20
|
-
processSubjectComponent(templater, subjectTag, insertBefore, // oldInsertBefore as InsertBefore,
|
|
21
|
-
ownerTag, {
|
|
22
|
-
forceElement: true,
|
|
23
|
-
counts: { added: 0, removed: 0 },
|
|
24
|
-
});
|
|
25
|
-
return subjectTag;
|
|
26
|
-
}
|
|
27
|
-
templater.tagSupport = new TagSupport(
|
|
28
|
-
// subjectTag.tag.tagSupport.ownerTagSupport,
|
|
29
|
-
ownerTag.tagSupport, templater, subjectTag);
|
|
30
|
-
updateExistingTagComponent(ownerTag, templater, // latest value
|
|
31
|
-
subjectTag, insertBefore);
|
|
32
|
-
return subjectTag;
|
|
20
|
+
return prepareUpdateToComponent(value, subjectTag, insertBefore, ownerSupport);
|
|
33
21
|
}
|
|
34
22
|
// was component but no longer
|
|
35
|
-
const
|
|
36
|
-
if (
|
|
37
|
-
handleStillTag(
|
|
23
|
+
const tagSupport = subjectTag.tagSupport;
|
|
24
|
+
if (tagSupport) {
|
|
25
|
+
handleStillTag(subject, value, ownerSupport);
|
|
38
26
|
return subjectTag;
|
|
39
27
|
}
|
|
40
28
|
// its another tag array
|
|
41
29
|
if (isTagArray(value)) {
|
|
42
30
|
processTagArray(subject, value, insertBefore, // oldInsertBefore as InsertBefore,
|
|
43
|
-
|
|
31
|
+
ownerSupport, { counts: {
|
|
44
32
|
added: 0,
|
|
45
33
|
removed: 0,
|
|
46
34
|
} });
|
|
47
35
|
return subject;
|
|
48
36
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
const bound = bindSubjectCallback(value, ownerTag);
|
|
53
|
-
subject.set(bound);
|
|
54
|
-
return subject;
|
|
37
|
+
if (isTagTemplater(value)) {
|
|
38
|
+
processTag(value, insertBefore, ownerSupport, subjectTag);
|
|
39
|
+
return subjectTag;
|
|
55
40
|
}
|
|
56
|
-
if (
|
|
57
|
-
|
|
58
|
-
|
|
41
|
+
if (isTagClass(value)) {
|
|
42
|
+
const tag = value;
|
|
43
|
+
let templater = tag.templater;
|
|
44
|
+
if (!templater) {
|
|
45
|
+
templater = getFakeTemplater();
|
|
46
|
+
tag.templater = templater;
|
|
47
|
+
templater.tag = tag;
|
|
59
48
|
}
|
|
60
|
-
processTag(
|
|
49
|
+
processTag(templater, insertBefore, ownerSupport, subjectTag);
|
|
61
50
|
return subjectTag;
|
|
62
51
|
}
|
|
63
52
|
// we have been given a subject
|
|
64
53
|
if (isSubjectInstance(value)) {
|
|
65
54
|
return value;
|
|
66
55
|
}
|
|
56
|
+
// now its a function
|
|
57
|
+
if (value instanceof Function) {
|
|
58
|
+
const bound = bindSubjectCallback(value, ownerSupport);
|
|
59
|
+
subject.set(bound);
|
|
60
|
+
return subject;
|
|
61
|
+
}
|
|
67
62
|
// This will cause all other values to render
|
|
68
|
-
processRegularValue(value, subject,
|
|
69
|
-
// ??? - changed to insertBefore for tag switching with template removal
|
|
70
|
-
insertBefore // oldInsertBefore as InsertBefore,
|
|
71
|
-
);
|
|
63
|
+
processRegularValue(value, subject, insertBefore);
|
|
72
64
|
return subjectTag;
|
|
73
65
|
}
|
|
74
|
-
function handleStillTag(
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
const
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
66
|
+
function handleStillTag(subject, value, ownerSupport) {
|
|
67
|
+
const lastSupport = subject.tagSupport;
|
|
68
|
+
let templater = value;
|
|
69
|
+
const isClass = isTagClass(value);
|
|
70
|
+
if (isClass) {
|
|
71
|
+
const tag = value;
|
|
72
|
+
templater = tag.templater;
|
|
73
|
+
if (!templater) {
|
|
74
|
+
const children = new ValueSubject([]);
|
|
75
|
+
templater = new TemplaterResult(undefined, children);
|
|
76
|
+
templater.tag = tag;
|
|
77
|
+
tag.templater = templater;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
const valueSupport = new TagSupport(templater, ownerSupport, subject);
|
|
81
|
+
if (isClass) {
|
|
82
|
+
valueSupport.global = lastSupport.global;
|
|
83
|
+
}
|
|
84
|
+
const isSameTag = value && isLikeTags(lastSupport, valueSupport);
|
|
85
|
+
if (isTagTemplater(value)) {
|
|
86
|
+
setupNewTemplater(valueSupport, ownerSupport, subject);
|
|
81
87
|
}
|
|
82
88
|
if (isSameTag) {
|
|
83
|
-
|
|
89
|
+
lastSupport.updateBy(valueSupport);
|
|
84
90
|
return;
|
|
85
91
|
}
|
|
86
|
-
if (isSameTag
|
|
87
|
-
const subjectTag = subject
|
|
88
|
-
const global =
|
|
92
|
+
if (isSameTag) {
|
|
93
|
+
// const subjectTag = subject as TagSubject
|
|
94
|
+
const global = lastSupport.global;
|
|
89
95
|
const insertBefore = global.insertBefore;
|
|
90
|
-
return processTag(
|
|
96
|
+
return processTag(templater, insertBefore, ownerSupport, subject);
|
|
91
97
|
}
|
|
92
98
|
return processRegularValue(value, subject, subject.insertBefore);
|
|
93
99
|
}
|
|
100
|
+
function prepareUpdateToComponent(templater, subjectTag, insertBefore, ownerSupport) {
|
|
101
|
+
// When was something before component
|
|
102
|
+
if (!subjectTag.tagSupport) {
|
|
103
|
+
processSubjectComponent(templater, subjectTag, insertBefore, // oldInsertBefore as InsertBefore,
|
|
104
|
+
ownerSupport, {
|
|
105
|
+
forceElement: true,
|
|
106
|
+
counts: { added: 0, removed: 0 },
|
|
107
|
+
});
|
|
108
|
+
return subjectTag;
|
|
109
|
+
}
|
|
110
|
+
const tagSupport = new TagSupport(templater, ownerSupport, subjectTag);
|
|
111
|
+
// ??? new mirroring
|
|
112
|
+
const subjectSup = subjectTag.tagSupport;
|
|
113
|
+
// const prevSupport = (subjectSup.global.newest || subjectSup) as TagSupport
|
|
114
|
+
const prevSupport = subjectSup.global.newest;
|
|
115
|
+
if (prevSupport) {
|
|
116
|
+
const newestState = prevSupport.memory.state;
|
|
117
|
+
tagSupport.memory.state = [...newestState];
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
const placeholder = subjectSup.global.placeholder;
|
|
121
|
+
if (placeholder && !insertBefore.parentNode) {
|
|
122
|
+
insertAfter(insertBefore, placeholder);
|
|
123
|
+
delete subjectSup.global.placeholder;
|
|
124
|
+
}
|
|
125
|
+
// insertBefore = subjectSup.global.placeholder || insertBefore
|
|
126
|
+
processSubjectComponent(templater, subjectTag, insertBefore, ownerSupport, {
|
|
127
|
+
forceElement: true,
|
|
128
|
+
counts: { added: 0, removed: 0 },
|
|
129
|
+
});
|
|
130
|
+
return subjectTag;
|
|
131
|
+
}
|
|
132
|
+
tagSupport.global = subjectSup.global;
|
|
133
|
+
subjectTag.tagSupport = tagSupport;
|
|
134
|
+
updateExistingTagComponent(ownerSupport, tagSupport, // latest value
|
|
135
|
+
subjectTag, insertBefore);
|
|
136
|
+
return subjectTag;
|
|
137
|
+
}
|
|
94
138
|
//# sourceMappingURL=updateExistingValue.function.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateExistingValue.function.js","sourceRoot":"","sources":["../ts/updateExistingValue.function.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"updateExistingValue.function.js","sourceRoot":"","sources":["../ts/updateExistingValue.function.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AACzD,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAExG,OAAO,EAAmB,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACpE,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAA;AAClF,OAAO,EAAgB,mBAAmB,EAAE,MAAM,gCAAgC,CAAA;AAClF,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAA;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAClD,OAAO,EAAY,mBAAmB,EAAE,MAAM,+CAA+C,CAAA;AAC7F,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAGvF,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAEpD,MAAM,UAAU,mB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