taggedjs 2.4.14 → 2.4.17
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 +707 -756
- package/bundle.js.map +1 -1
- package/js/Clones.type.d.ts +0 -1
- package/js/Clones.type.js +1 -1
- package/js/Clones.type.js.map +1 -1
- package/js/Tag.class.d.ts +1 -1
- package/js/Tag.class.js +52 -92
- package/js/Tag.class.js.map +1 -1
- package/js/TemplaterResult.class.d.ts +20 -19
- package/js/TemplaterResult.class.js +1 -1
- package/js/TemplaterResult.class.js.map +1 -1
- package/js/checkDestroyPrevious.function.js +5 -11
- package/js/checkDestroyPrevious.function.js.map +1 -1
- package/js/{Errors.d.ts → errors.d.ts} +3 -0
- package/js/{Errors.js → errors.js} +6 -0
- package/js/{Errors.js.map → errors.js.map} +1 -1
- package/js/index.d.ts +1 -9
- package/js/index.js +1 -12
- package/js/index.js.map +1 -1
- package/js/interpolateTemplate.js +3 -0
- package/js/interpolateTemplate.js.map +1 -1
- package/js/processSubjectComponent.function.js +4 -1
- package/js/processSubjectComponent.function.js.map +1 -1
- package/js/processTag.function.js +1 -1
- package/js/processTag.function.js.map +1 -1
- package/js/processTagArray.d.ts +1 -2
- package/js/processTagArray.js +12 -32
- package/js/processTagArray.js.map +1 -1
- package/js/processTagResult.function.d.ts +3 -2
- package/js/processTagResult.function.js +5 -3
- package/js/processTagResult.function.js.map +1 -1
- package/js/renderExistingTag.function.js +1 -1
- package/js/renderExistingTag.function.js.map +1 -1
- package/js/state/callbackMaker.function.d.ts +3 -0
- package/js/state/callbackMaker.function.js +52 -0
- package/js/state/callbackMaker.function.js.map +1 -0
- package/js/state/getCallback.d.ts +3 -0
- package/js/state/getCallback.js +51 -0
- package/js/state/getCallback.js.map +1 -0
- package/js/state/index.d.ts +10 -0
- package/js/state/index.js +10 -0
- package/js/state/index.js.map +1 -0
- package/js/state/letState.function.d.ts +3 -0
- package/js/state/letState.function.js +42 -0
- package/js/state/letState.function.js.map +1 -0
- package/js/state/onDestroy.d.ts +2 -0
- package/js/state/onDestroy.js +17 -0
- package/js/state/onDestroy.js.map +1 -0
- package/js/state/onInit.d.ts +2 -0
- package/js/state/onInit.js +17 -0
- package/js/state/onInit.js.map +1 -0
- package/js/state/provider.utils.d.ts +2 -0
- package/js/state/provider.utils.js +45 -0
- package/js/state/provider.utils.js.map +1 -0
- package/js/state/providers.d.ts +18 -0
- package/js/state/providers.js +86 -0
- package/js/state/providers.js.map +1 -0
- package/js/state/setProp.function.d.ts +3 -0
- package/js/state/setProp.function.js +37 -0
- package/js/state/setProp.function.js.map +1 -0
- package/js/state/setUse.function.d.ts +23 -0
- package/js/state/setUse.function.js +14 -0
- package/js/state/setUse.function.js.map +1 -0
- package/js/state/state.function.d.ts +2 -0
- package/js/state/state.function.js +34 -0
- package/js/state/state.function.js.map +1 -0
- package/js/state/state.utils.d.ts +22 -0
- package/js/state/state.utils.js +85 -0
- package/js/state/state.utils.js.map +1 -0
- package/js/state/watch.function.d.ts +3 -0
- package/js/state/watch.function.js +20 -0
- package/js/state/watch.function.js.map +1 -0
- package/js/subject/Subject.class.js +4 -4
- package/js/subject/Subject.class.js.map +1 -1
- package/js/subject/Subject.utils.d.ts +1 -1
- package/js/subject/ValueSubject.d.ts +1 -1
- package/js/subject/ValueSubject.js +1 -1
- package/js/subject/ValueSubject.js.map +1 -1
- package/js/tag.js +1 -1
- package/js/tag.js.map +1 -1
- package/js/tagRunner.js +1 -1
- package/js/tagRunner.js.map +1 -1
- package/js/updateExistingTagComponent.function.js +1 -6
- package/js/updateExistingTagComponent.function.js.map +1 -1
- package/js/updateExistingValue.function.js +4 -19
- package/js/updateExistingValue.function.js.map +1 -1
- package/package.json +1 -1
- package/js/Subject.d.ts +0 -17
- package/js/Subject.js +0 -47
- package/js/Subject.js.map +0 -1
- package/js/ValueSubject.d.ts +0 -8
- package/js/ValueSubject.js +0 -15
- package/js/ValueSubject.js.map +0 -1
- package/js/bindSubjectCallback.function 9.27.33/342/200/257AM.js" +0 -32
- package/js/bindSubjectCallback.function.d 9.27.33/342/200/257AM.ts" +0 -8
- package/js/redrawTag.function.d.ts +0 -5
- package/js/redrawTag.function.js +0 -18
- package/js/redrawTag.function.js.map +0 -1
- package/js/templater.utils.d.ts +0 -37
- package/js/templater.utils.js +0 -118
- package/js/templater.utils.js.map +0 -1
- package/js/updateExistingTag.function.d.ts +0 -4
- package/js/updateExistingTag.function.js +0 -24
- package/js/updateExistingTag.function.js.map +0 -1
package/js/ValueSubject.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Subject } from './Subject';
|
|
2
|
-
type ValueSubjectSubscriber<T> = (value: T) => unknown;
|
|
3
|
-
export declare class ValueSubject<T> extends Subject<T> {
|
|
4
|
-
value: T;
|
|
5
|
-
constructor(value: T);
|
|
6
|
-
subscribe(callback: ValueSubjectSubscriber<T>): import("./Subject").Subscription;
|
|
7
|
-
}
|
|
8
|
-
export {};
|
package/js/ValueSubject.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Subject } from './Subject';
|
|
2
|
-
export class ValueSubject extends Subject {
|
|
3
|
-
value;
|
|
4
|
-
constructor(value) {
|
|
5
|
-
super(value);
|
|
6
|
-
this.value = value;
|
|
7
|
-
}
|
|
8
|
-
subscribe(callback) {
|
|
9
|
-
const unsubscribe = super.subscribe(callback);
|
|
10
|
-
// Call the callback immediately with the current value
|
|
11
|
-
callback(this.value);
|
|
12
|
-
return unsubscribe;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=ValueSubject.js.map
|
package/js/ValueSubject.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ValueSubject.js","sourceRoot":"","sources":["../ts/ValueSubject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAqB,MAAM,WAAW,CAAA;AAItD,MAAM,OAAO,YAAgB,SAAQ,OAAU;IAC1B;IAAnB,YAAmB,KAAQ;QACzB,KAAK,CAAC,KAAK,CAAC,CAAA;QADK,UAAK,GAAL,KAAK,CAAG;IAE3B,CAAC;IAED,SAAS,CAAC,QAAmC;QAC3C,MAAM,WAAW,GAAG,KAAK,CAAC,SAAS,CAAC,QAAgC,CAAC,CAAA;QAErE,uDAAuD;QACvD,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAEpB,OAAO,WAAW,CAAA;IACpB,CAAC;CACF"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/** File largely responsible for reacting to element events, such as onclick */
|
|
2
|
-
export function bindSubjectCallback(value, tag) {
|
|
3
|
-
// Is this children? No override needed
|
|
4
|
-
if (value.isChildOverride) {
|
|
5
|
-
return value;
|
|
6
|
-
}
|
|
7
|
-
const subjectFunction = (element, args) => runTagCallback(value, tag, element, args);
|
|
8
|
-
// link back to original. Mostly used for <div oninit ondestroy> animations
|
|
9
|
-
subjectFunction.tagFunction = value;
|
|
10
|
-
return subjectFunction;
|
|
11
|
-
}
|
|
12
|
-
export function runTagCallback(value, tag, bindTo, args) {
|
|
13
|
-
const tagSupport = tag.tagSupport;
|
|
14
|
-
const renderCount = tagSupport ? tagSupport.memory.renderCount : 0;
|
|
15
|
-
const method = value.bind(bindTo);
|
|
16
|
-
const callbackResult = method(...args);
|
|
17
|
-
const sameRenderCount = renderCount === tagSupport.memory.renderCount;
|
|
18
|
-
// TODO: need to restore this
|
|
19
|
-
if (tagSupport && !sameRenderCount) {
|
|
20
|
-
// return // already rendered
|
|
21
|
-
}
|
|
22
|
-
tagSupport.render();
|
|
23
|
-
if (callbackResult instanceof Promise) {
|
|
24
|
-
return callbackResult.then(() => {
|
|
25
|
-
tagSupport.render();
|
|
26
|
-
return 'promise-no-data-ever';
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
// Caller always expects a Promise
|
|
30
|
-
return 'no-data-ever';
|
|
31
|
-
}
|
|
32
|
-
//# sourceMappingURL=bindSubjectCallback.function.js.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/** File largely responsible for reacting to element events, such as onclick */
|
|
2
|
-
import { Tag } from "./Tag.class.js";
|
|
3
|
-
type Callback = (...args: any[]) => any & {
|
|
4
|
-
isChildOverride?: true;
|
|
5
|
-
};
|
|
6
|
-
export declare function bindSubjectCallback(value: Callback, tag: Tag): Callback;
|
|
7
|
-
export declare function runTagCallback(value: Callback, tag: Tag, bindTo: unknown, args: any[]): Promise<string> | "no-data-ever";
|
|
8
|
-
export {};
|
package/js/redrawTag.function.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { renderWithSupport } from "./TemplaterResult.class";
|
|
2
|
-
/** for components */
|
|
3
|
-
export function redrawTag(subject, templater, ownerTag) {
|
|
4
|
-
const existingTag = subject.tag || templater.global.newest || templater.global.oldest;
|
|
5
|
-
if (!templater.global.oldest) {
|
|
6
|
-
throw new Error('issue before event redraw');
|
|
7
|
-
}
|
|
8
|
-
const tagSupport = templater.tagSupport; // || existingTag?.tagSupport
|
|
9
|
-
if (!templater.tagSupport) {
|
|
10
|
-
throw new Error('need tag support');
|
|
11
|
-
}
|
|
12
|
-
if (!tagSupport.templater.global.oldest) {
|
|
13
|
-
throw new Error('33333');
|
|
14
|
-
}
|
|
15
|
-
let retag = renderWithSupport(tagSupport, existingTag, subject, ownerTag);
|
|
16
|
-
return retag;
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=redrawTag.function.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redrawTag.function.js","sourceRoot":"","sources":["../ts/redrawTag.function.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAE5E,qBAAqB;AACrB,MAAM,UAAU,SAAS,CACvB,OAAmB,EACnB,SAA0B,EAC1B,QAAa;IAGb,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,IAAI,SAAS,CAAC,MAAM,CAAC,MAAM,IAAI,SAAS,CAAC,MAAM,CAAC,MAAM,CAAA;IAErF,IAAG,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;QAC5B,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAA;IAC9C,CAAC;IAED,MAAM,UAAU,GAAG,SAAS,CAAC,UAAU,CAAA,CAAC,6BAA6B;IAErE,IAAG,CAAC,SAAS,CAAC,UAAU,EAAE,CAAC;QACzB,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAA;IACrC,CAAC;IAED,IAAG,CAAC,UAAU,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;QACvC,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAA;IAC1B,CAAC;IAED,IAAI,KAAK,GAAG,iBAAiB,CAC3B,UAAU,EACV,WAAW,EACX,OAAO,EACP,QAAQ,CACT,CAAA;IAED,OAAO,KAAK,CAAA;AACd,CAAC"}
|
package/js/templater.utils.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Context, Tag } from './Tag.class';
|
|
2
|
-
import { BaseTagSupport } from './TagSupport.class';
|
|
3
|
-
import { Props } from './Props';
|
|
4
|
-
import { TagChildren } from './tag';
|
|
5
|
-
import { Provider } from './providers';
|
|
6
|
-
import { OnDestroyCallback } from './onDestroy';
|
|
7
|
-
export type Wrapper = ((tagSupport: BaseTagSupport) => Tag) & {
|
|
8
|
-
original: () => Tag;
|
|
9
|
-
};
|
|
10
|
-
export declare class TemplaterResult {
|
|
11
|
-
props: Props;
|
|
12
|
-
children: TagChildren;
|
|
13
|
-
tagged: boolean;
|
|
14
|
-
wrapper: Wrapper;
|
|
15
|
-
global: {
|
|
16
|
-
oldest?: Tag;
|
|
17
|
-
newest?: Tag;
|
|
18
|
-
context: Context;
|
|
19
|
-
providers: Provider[];
|
|
20
|
-
/** Indicator of re-rending. Saves from double rending something already rendered */
|
|
21
|
-
renderCount: number;
|
|
22
|
-
destroyCallback?: OnDestroyCallback;
|
|
23
|
-
insertBefore?: Element | Text;
|
|
24
|
-
};
|
|
25
|
-
tagSupport: BaseTagSupport;
|
|
26
|
-
constructor(props: Props, children: TagChildren);
|
|
27
|
-
redraw?: (force?: boolean) => Tag;
|
|
28
|
-
isTemplater: boolean;
|
|
29
|
-
renderWithSupport(tagSupport: BaseTagSupport, existingTag: Tag | undefined, ownerTag?: Tag): {
|
|
30
|
-
remit: boolean;
|
|
31
|
-
retag: Tag;
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
export interface TemplateRedraw extends TemplaterResult {
|
|
35
|
-
redraw: () => Tag;
|
|
36
|
-
}
|
|
37
|
-
export declare function alterProps(props: Props, templater: TemplaterResult): any;
|
package/js/templater.utils.js
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { isTagInstance } from './isInstance';
|
|
2
|
-
import { runAfterRender, runBeforeRedraw, runBeforeRender } from './tagRunner';
|
|
3
|
-
import { setUse } from './setUse.function';
|
|
4
|
-
export class TemplaterResult {
|
|
5
|
-
props;
|
|
6
|
-
children;
|
|
7
|
-
tagged;
|
|
8
|
-
wrapper;
|
|
9
|
-
global = {
|
|
10
|
-
context: {}, // populated after reading interpolated.values array converted to an object {variable0, variable:1}
|
|
11
|
-
providers: [],
|
|
12
|
-
/** Indicator of re-rending. Saves from double rending something already rendered */
|
|
13
|
-
renderCount: 0,
|
|
14
|
-
};
|
|
15
|
-
tagSupport;
|
|
16
|
-
constructor(props, children) {
|
|
17
|
-
this.props = props;
|
|
18
|
-
this.children = children;
|
|
19
|
-
}
|
|
20
|
-
redraw;
|
|
21
|
-
isTemplater = true;
|
|
22
|
-
renderWithSupport(tagSupport, existingTag, ownerTag) {
|
|
23
|
-
const wrapTagSupport = tagSupport; // this.tagSupport
|
|
24
|
-
// this.tagSupport = wrapTagSupport
|
|
25
|
-
/* BEFORE RENDER */
|
|
26
|
-
// signify to other operations that a rendering has occurred so they do not need to render again
|
|
27
|
-
// ++wrapTagSupport.memory.renderCount
|
|
28
|
-
const runtimeOwnerTag = existingTag?.ownerTag || ownerTag;
|
|
29
|
-
if (existingTag) {
|
|
30
|
-
runBeforeRedraw(wrapTagSupport, existingTag);
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
if (!wrapTagSupport) {
|
|
34
|
-
throw new Error('63521');
|
|
35
|
-
}
|
|
36
|
-
// first time render
|
|
37
|
-
runBeforeRender(wrapTagSupport, runtimeOwnerTag);
|
|
38
|
-
// TODO: Logic below most likely could live within providers.ts inside the runBeforeRender function
|
|
39
|
-
const providers = setUse.memory.providerConfig;
|
|
40
|
-
providers.ownerTag = runtimeOwnerTag;
|
|
41
|
-
}
|
|
42
|
-
/* END: BEFORE RENDER */
|
|
43
|
-
const retag = this.wrapper(wrapTagSupport);
|
|
44
|
-
/* AFTER */
|
|
45
|
-
runAfterRender(wrapTagSupport, retag);
|
|
46
|
-
retag.ownerTag = runtimeOwnerTag;
|
|
47
|
-
wrapTagSupport.templater.global.newest = retag;
|
|
48
|
-
if (this.global.oldest && !this.global.oldest.hasLiveElements) {
|
|
49
|
-
throw new Error('56513540');
|
|
50
|
-
}
|
|
51
|
-
if (wrapTagSupport.templater.global.oldest && !wrapTagSupport.templater.global.oldest.hasLiveElements) {
|
|
52
|
-
throw new Error('5555 - 10');
|
|
53
|
-
}
|
|
54
|
-
// new maybe not needed
|
|
55
|
-
// this.oldest = this.oldest || retag
|
|
56
|
-
// wrapTagSupport.oldest = wrapTagSupport.oldest || retag
|
|
57
|
-
return { remit: true, retag };
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
/* Used to rewrite props that are functions. When they are called it should cause parent rendering */
|
|
61
|
-
export function alterProps(props, templater) {
|
|
62
|
-
function callback(toCall, callWith) {
|
|
63
|
-
const renderCount = templater.global.renderCount;
|
|
64
|
-
const callbackResult = toCall(...callWith);
|
|
65
|
-
const tag = templater.global.newest;
|
|
66
|
-
let tagSupport = tag?.tagSupport.ownerTagSupport;
|
|
67
|
-
if (tagSupport) {
|
|
68
|
-
tagSupport = templater.global.newest?.tagSupport || templater.global.oldest?.tagSupport || tagSupport;
|
|
69
|
-
}
|
|
70
|
-
if (templater.global.renderCount > renderCount) {
|
|
71
|
-
throw new Error('already rendered');
|
|
72
|
-
}
|
|
73
|
-
const ownerTag = tag?.ownerTag;
|
|
74
|
-
if (ownerTag) {
|
|
75
|
-
const newestOwner = ownerTag.tagSupport.templater.global.newest;
|
|
76
|
-
newestOwner.tagSupport.render();
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
console.log('alter prop reder', {
|
|
80
|
-
original: tagSupport.templater.wrapper.original,
|
|
81
|
-
ownerTag: tag?.ownerTag,
|
|
82
|
-
});
|
|
83
|
-
const newTag = tagSupport.render(); // call owner to render
|
|
84
|
-
if (!templater.global.oldest) {
|
|
85
|
-
throw new Error('lklk');
|
|
86
|
-
}
|
|
87
|
-
templater.global.newest = newTag;
|
|
88
|
-
// templater.global.oldest = templater.global.oldest || newTag
|
|
89
|
-
return callbackResult;
|
|
90
|
-
}
|
|
91
|
-
const isPropTag = isTagInstance(props);
|
|
92
|
-
const watchProps = isPropTag ? 0 : props;
|
|
93
|
-
const newProps = resetFunctionProps(watchProps, callback);
|
|
94
|
-
return newProps;
|
|
95
|
-
}
|
|
96
|
-
function resetFunctionProps(props, callback) {
|
|
97
|
-
if (typeof (props) !== 'object') {
|
|
98
|
-
return props;
|
|
99
|
-
}
|
|
100
|
-
const newProps = props;
|
|
101
|
-
// BELOW: Do not clone because if first argument is object, the memory ref back is lost
|
|
102
|
-
// const newProps = {...props}
|
|
103
|
-
Object.entries(newProps).forEach(([name, value]) => {
|
|
104
|
-
if (value instanceof Function) {
|
|
105
|
-
const original = newProps[name].original;
|
|
106
|
-
if (original) {
|
|
107
|
-
return; // already previously converted
|
|
108
|
-
}
|
|
109
|
-
newProps[name] = (...args) => {
|
|
110
|
-
return callback(value, args);
|
|
111
|
-
};
|
|
112
|
-
newProps[name].original = value;
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
return newProps;
|
|
117
|
-
}
|
|
118
|
-
//# sourceMappingURL=templater.utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"templater.utils.js","sourceRoot":"","sources":["../ts/templater.utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAC9E,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAU1C,MAAM,OAAO,eAAe;IAuBjB;IACA;IAvBT,MAAM,CAAU;IAChB,OAAO,CAAU;IAEjB,MAAM,GASF;QACF,OAAO,EAAE,EAAE,EAAE,mGAAmG;QAChH,SAAS,EAAE,EAAE;QACb,oFAAoF;QACpF,WAAW,EAAE,CAAC;KACf,CAAA;IAED,UAAU,CAAiB;IAE3B,YACS,KAAY,EACZ,QAAqB;QADrB,UAAK,GAAL,KAAK,CAAO;QACZ,aAAQ,GAAR,QAAQ,CAAa;IAC3B,CAAC;IAEJ,MAAM,CAEE;IACR,WAAW,GAAG,IAAI,CAAA;IAElB,iBAAiB,CACf,UAA0B,EAC1B,WAA4B,EAC5B,QAAc;QAEd,MAAM,cAAc,GAAG,UAAU,CAAA,CAAC,kBAAkB;QACpD,mCAAmC;QAEnC,mBAAmB;QACjB,gGAAgG;QAChG,sCAAsC;QAEtC,MAAM,eAAe,GAAG,WAAW,EAAE,QAAQ,IAAI,QAAQ,CAAA;QAEzD,IAAG,WAAW,EAAE,CAAC;YACf,eAAe,CAAC,cAAc,EAAE,WAAW,CAAC,CAAA;QAC9C,CAAC;aAAM,CAAC;YACN,IAAG,CAAC,cAAc,EAAE,CAAC;gBACnB,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAA;YAC1B,CAAC;YACD,oBAAoB;YACpB,eAAe,CAAC,cAAc,EAA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QAAQ,CAAA;AACjB,CAAC;AAED,SAAS,kBAAkB,CACzB,KAAU,EACV,QAAiD;IAEjD,IAAG,OAAM,CAAC,KAAK,CAAC,KAAG,QAAQ,EAAE,CAAC;QAC5B,OAAO,KAAK,CAAA;IACd,CAAC;IAED,MAAM,QAAQ,GAAG,KAAK,CAAA;IACtB,uFAAuF;IACvF,+BAA+B;IAE/B,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE;QACjD,IAAG,KAAK,YAAY,QAAQ,EAAE,CAAC;YAC7B,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAA;YAExC,IAAG,QAAQ,EAAE,CAAC;gBACZ,OAAM,CAAC,+BAA+B;YACxC,CAAC;YAED,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,IAAW,EAAE,EAAE;gBAClC,OAAO,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;YAC9B,CAAC,CAAA;YAED,QAAQ,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,KAAK,CAAA;YAE/B,OAAM;QACR,CAAC;IACH,CAAC,CAAC,CAAA;IAEF,OAAO,QAAQ,CAAA;AACjB,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { runAfterRender, runBeforeRedraw } from './tagRunner';
|
|
2
|
-
export function updateExistingTag(templater, ogTag, existingSubject) {
|
|
3
|
-
if (!templater.tagSupport) {
|
|
4
|
-
throw new Error('start clone tag support here');
|
|
5
|
-
}
|
|
6
|
-
console.log('redraw templater!!!!', { wrapp: templater.wrapper?.original });
|
|
7
|
-
templater.render();
|
|
8
|
-
return;
|
|
9
|
-
const tagSupport = ogTag.tagSupport;
|
|
10
|
-
const oldest = templater.global.oldest;
|
|
11
|
-
const newest = templater.global.newest;
|
|
12
|
-
// runBeforeRedraw(oldest.tagSupport, newest || oldest)
|
|
13
|
-
runBeforeRedraw(oldest.tagSupport, oldest);
|
|
14
|
-
const wrapTagSupport = tagSupport; // newest.tagSupport || tagSupport
|
|
15
|
-
// const retag = templater.wrapper(wrapTagSupport)
|
|
16
|
-
const retag = templater.wrapper(wrapTagSupport);
|
|
17
|
-
templater.global.newest = retag;
|
|
18
|
-
runAfterRender(oldest.tagSupport, oldest);
|
|
19
|
-
ogTag.updateByTag(retag);
|
|
20
|
-
// oldest.updateByTag(retag)
|
|
21
|
-
existingSubject.set(templater);
|
|
22
|
-
return [];
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=updateExistingTag.function.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateExistingTag.function.js","sourceRoot":"","sources":["../ts/updateExistingTag.function.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAG7D,MAAM,UAAU,iBAAiB,CAC/B,SAA0B,EAC1B,KAAU,EACV,eAA2B;IAE3B,IAAG,CAAC,SAAS,CAAC,UAAU,EAAE,CAAC;QACzB,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAA;IACjD,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,EAAC,KAAK,EAAC,SAAS,CAAC,OAAO,EAAE,QAAQ,EAAC,CAAC,CAEvE;IAAC,SAAiB,CAAC,MAAM,EAAE,CAAA;IAC5B,OAAM;IAEN,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CAAA;IACnC,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,MAAa,CAAA;IAC7C,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,MAAa,CAAA;IAE7C,uDAAuD;IACvD,eAAe,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAA;IAE1C,MAAM,cAAc,GAAG,UAAU,CAAA,CAAC,kCAAkC;IAEpE,kDAAkD;IAClD,MAAM,KAAK,GAAG,SAAS,CAAC,OAAO,CAAC,cAAc,CAAC,CAAA;IAE/C,SAAS,CAAC,MAAM,CAAC,MAAM,GAAG,KAAK,CAAA;IAE/B,cAAc,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAA;IACzC,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,CAAA;IACxB,4BAA4B;IAE5B,eAAe,CAAC,GAAG,CAAC,SAAS,CAAC,CAAA;IAE9B,OAAO,EAAE,CAAA;AACX,CAAC"}
|