taggedjs 2.8.27 → 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 +4 -4
- package/js/alterProp.function.js +19 -13
- 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 +1 -1
- package/js/interpolations/attributes/bindSubjectCallback.function.js.map +1 -1
- package/js/interpolations/attributes/getSupportWithState.function.d.ts +1 -1
- 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 +1 -1
- package/js/interpolations/attributes/processAttributeCallback.function.d.ts +1 -1
- package/js/interpolations/attributes/processNameValueAttribute.function.d.ts +1 -1
- 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 -36
- 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/subscribeToTemplate.function.d.ts +1 -3
- package/js/interpolations/subscribeToTemplate.function.js +1 -35
- package/js/interpolations/subscribeToTemplate.function.js.map +1 -1
- package/js/isInstance.d.ts +1 -1
- package/js/state/StateMemory.type.d.ts +1 -1
- package/js/state/callback.function.d.ts +1 -1
- package/js/state/callbackStateUpdate.function.d.ts +1 -1
- package/js/state/handleProviderChanges.function.d.ts +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 +1 -6
- package/js/state/state.utils.js.map +1 -1
- package/js/state/states.utils.js +0 -23
- package/js/state/states.utils.js.map +1 -1
- package/js/state/syncStates.function.d.ts +1 -1
- package/js/state/tagClosed$.subject.d.ts +1 -1
- package/js/subject/ProcessInit.type.d.ts +2 -2
- 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 +3 -5
- package/js/tag/Tag.type.d.ts +1 -1
- package/js/tag/afterRender.function.d.ts +1 -1
- package/js/tag/buildBeforeElement.function.d.ts +1 -2
- package/js/tag/buildBeforeElement.function.js +0 -1
- package/js/tag/buildBeforeElement.function.js.map +1 -1
- package/js/tag/checkStateMismatch.function.d.ts +1 -1
- package/js/tag/checkTagValueChange.function.d.ts +1 -1
- package/js/tag/checkTagValueChange.function.js +1 -1
- 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/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 +4 -4
- 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/processUpdateAttrContext.function.d.ts +1 -1
- package/js/tag/processUpdateContext.function.d.ts +1 -1
- package/js/tag/render/renderExistingTag.function.d.ts +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 +3 -3
- package/js/tag/render/renderTagOnly.function.js.map +1 -1
- package/js/tag/render/renderWithSupport.function.d.ts +2 -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 +1 -1
- package/js/tag/render/softDestroySupport.function.js.map +1 -1
- package/js/tag/tagElement.d.ts +2 -1
- package/js/tag/tagElement.js +4 -7
- package/js/tag/tagElement.js.map +1 -1
- package/js/tag/tagRunner.d.ts +1 -1
- package/js/tag/update/compareArrayItems.function.js +1 -1
- 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 +1 -1
- package/js/tag/update/processDomTagInit.function.js.map +1 -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 +0 -1
- package/js/tag/update/processFirstSubjectValue.function.js.map +1 -1
- package/js/tag/update/processNewSubjectTag.function.d.ts +1 -1
- package/js/tag/update/processNewSubjectTag.function.js +0 -14
- 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 -2
- package/js/tag/update/processNewValue.function.js.map +1 -1
- package/js/tag/update/processRenderOnceInit.function.d.ts +1 -1
- package/js/tag/update/processRenderOnceInit.function.js.map +1 -1
- package/js/tag/update/processSubscribe.function.d.ts +2 -2
- package/js/tag/update/processSubscribe.function.js +2 -2
- package/js/tag/update/processSubscribe.function.js.map +1 -1
- package/js/tag/update/processTag.function.d.ts +2 -1
- package/js/tag/update/processTag.function.js +3 -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 -43
- package/js/tag/update/processTagArray.js.map +1 -1
- package/js/tag/update/processTagComponentInit.function.d.ts +1 -1
- package/js/tag/update/processTagComponentInit.function.js.map +1 -1
- package/js/tag/update/processTagInit.function.d.ts +1 -1
- package/js/tag/update/processTagInit.function.js.map +1 -1
- 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 +9 -6
- package/js/tag/update/setupSubscribe.function.js +32 -19
- package/js/tag/update/setupSubscribe.function.js.map +1 -1
- 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 +2 -9
- package/js/tag/update/updateExistingValue.function.js +3 -128
- 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
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { AnySupport } from './tag/
|
|
1
|
+
import { AnySupport } from './tag/AnySupport.type.js';
|
|
2
2
|
import { TemplaterResult } from './tag/getTemplaterResult.function.js';
|
|
3
3
|
import { Props } from './Props.js';
|
|
4
4
|
import { UnknownFunction } from './tag/index.js';
|
|
5
5
|
import { Subject } from './subject/Subject.class.js';
|
|
6
6
|
export declare function castProps(props: Props, newSupport: AnySupport, depth: number): unknown[];
|
|
7
7
|
export declare function alterProp(prop: unknown, ownerSupport: AnySupport, newSupport: AnySupport, depth: number): unknown;
|
|
8
|
-
export declare function checkProp(value: unknown | TemplaterResult | SubableProp | unknown[] | Record<string, unknown>, ownerSupport: AnySupport, newSupport: AnySupport, depth: number): unknown;
|
|
8
|
+
export declare function checkProp(value: unknown | TemplaterResult | SubableProp | unknown[] | Record<string, unknown>, ownerSupport: AnySupport, newSupport: AnySupport, depth: number, owner?: any): unknown;
|
|
9
9
|
type SubableProp = {
|
|
10
10
|
[name: string]: {
|
|
11
11
|
subscription: Subject<void>;
|
|
@@ -18,11 +18,11 @@ export type WrapRunner = (() => unknown) & {
|
|
|
18
18
|
};
|
|
19
19
|
export declare function getPropWrap(value: {
|
|
20
20
|
mem?: unknown;
|
|
21
|
-
}, ownerSupport: AnySupport): {
|
|
21
|
+
}, owner: any, ownerSupport: AnySupport): {
|
|
22
22
|
mem?: unknown;
|
|
23
23
|
};
|
|
24
24
|
/** Function shared by alterProps() and updateExistingTagComponent... TODO: May want to have to functions to reduce cycle checking? */
|
|
25
|
-
export declare function callbackPropOwner(toCall: UnknownFunction, callWith: unknown[], ownerSupport: AnySupport): unknown;
|
|
25
|
+
export declare function callbackPropOwner(toCall: UnknownFunction, owner: any, callWith: unknown[], ownerSupport: AnySupport): unknown;
|
|
26
26
|
export declare function isSkipPropValue(value: unknown): string | true;
|
|
27
27
|
export declare function safeRenderSupport(newest: AnySupport, ownerSupport: AnySupport): AnySupport | undefined;
|
|
28
28
|
export {};
|
package/js/alterProp.function.js
CHANGED
|
@@ -18,7 +18,7 @@ export function alterProp(prop, ownerSupport, newSupport, depth) {
|
|
|
18
18
|
}
|
|
19
19
|
return checkProp(prop, ownerSupport, newSupport, depth);
|
|
20
20
|
}
|
|
21
|
-
export function checkProp(value, ownerSupport, newSupport, depth) {
|
|
21
|
+
export function checkProp(value, ownerSupport, newSupport, depth, owner) {
|
|
22
22
|
if (!value) {
|
|
23
23
|
return value;
|
|
24
24
|
}
|
|
@@ -26,7 +26,7 @@ export function checkProp(value, ownerSupport, newSupport, depth) {
|
|
|
26
26
|
return value;
|
|
27
27
|
}
|
|
28
28
|
if (typeof (value) === BasicTypes.function) {
|
|
29
|
-
return getPropWrap(value, ownerSupport);
|
|
29
|
+
return getPropWrap(value, owner, ownerSupport);
|
|
30
30
|
}
|
|
31
31
|
if (depth === deepCompareDepth) {
|
|
32
32
|
return value;
|
|
@@ -43,7 +43,7 @@ export function checkProp(value, ownerSupport, newSupport, depth) {
|
|
|
43
43
|
function checkArrayProp(value, newSupport, ownerSupport, depth) {
|
|
44
44
|
for (let index = value.length - 1; index >= 0; --index) {
|
|
45
45
|
const subValue = value[index];
|
|
46
|
-
value[index] = checkProp(subValue, ownerSupport, newSupport, depth + 1);
|
|
46
|
+
value[index] = checkProp(subValue, ownerSupport, newSupport, depth + 1, value);
|
|
47
47
|
if (typeof (subValue) === BasicTypes.function) {
|
|
48
48
|
if (subValue.mem) {
|
|
49
49
|
continue;
|
|
@@ -57,7 +57,7 @@ function checkObjectProp(value, newSupport, ownerSupport, depth) {
|
|
|
57
57
|
const keys = Object.keys(value);
|
|
58
58
|
for (const name of keys) {
|
|
59
59
|
const subValue = value[name];
|
|
60
|
-
const result = checkProp(subValue, ownerSupport, newSupport, depth + 1);
|
|
60
|
+
const result = checkProp(subValue, ownerSupport, newSupport, depth + 1, value);
|
|
61
61
|
const newSubValue = value[name];
|
|
62
62
|
if (newSubValue === result) {
|
|
63
63
|
continue;
|
|
@@ -86,7 +86,7 @@ function afterCheckProp(depth, index, originalValue, newProp, newSupport) {
|
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
export function getPropWrap(value, ownerSupport) {
|
|
89
|
+
export function getPropWrap(value, owner, ownerSupport) {
|
|
90
90
|
const already = value.mem;
|
|
91
91
|
// already previously converted by a parent?
|
|
92
92
|
if (already) {
|
|
@@ -99,27 +99,33 @@ export function getPropWrap(value, ownerSupport) {
|
|
|
99
99
|
wrap.mem = value;
|
|
100
100
|
// Currently, call self but over parent state changes, I may need to call a newer parent tag owner
|
|
101
101
|
wrap.toCall = function toCallRunner(...args) {
|
|
102
|
-
return callbackPropOwner(wrap.mem, args, ownerSupport);
|
|
102
|
+
return callbackPropOwner(wrap.mem, owner, args, ownerSupport);
|
|
103
103
|
};
|
|
104
104
|
// copy data properties that maybe on source function
|
|
105
105
|
Object.assign(wrap, value);
|
|
106
106
|
return wrap;
|
|
107
107
|
}
|
|
108
108
|
/** Function shared by alterProps() and updateExistingTagComponent... TODO: May want to have to functions to reduce cycle checking? */
|
|
109
|
-
export function callbackPropOwner(toCall, callWith, ownerSupport) {
|
|
109
|
+
export function callbackPropOwner(toCall, owner, callWith, ownerSupport) {
|
|
110
110
|
const global = ownerSupport.subject.global;
|
|
111
111
|
const newest = global?.newest || ownerSupport;
|
|
112
112
|
const supportInCycle = getSupportInCycle();
|
|
113
113
|
const noCycle = supportInCycle === undefined;
|
|
114
|
-
|
|
114
|
+
// actual function call to original method
|
|
115
|
+
const callbackResult = toCall.apply(owner, callWith);
|
|
115
116
|
const run = function propCallbackProcessor() {
|
|
116
117
|
const global = newest.subject.global;
|
|
117
118
|
// are we in a rendering cycle? then its being called by alterProps
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
119
|
+
/*
|
|
120
|
+
if(noCycle === false) {
|
|
121
|
+
const allMatched = global.locked === true
|
|
122
|
+
|
|
123
|
+
if(allMatched) {
|
|
124
|
+
return callbackResult // owner did not change
|
|
125
|
+
}
|
|
126
|
+
}*/
|
|
127
|
+
if (!global || global.locked === true) {
|
|
128
|
+
return callbackResult; // currently in the middle of rendering
|
|
123
129
|
}
|
|
124
130
|
safeRenderSupport(newest, ownerSupport);
|
|
125
131
|
return callbackResult;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alterProp.function.js","sourceRoot":"","sources":["../ts/alterProp.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAA;AACvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAA;AAEnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAA;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AAEtE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAM/C,MAAM,UAAU,SAAS,CACvB,KAAY,EACZ,UAAsB,EACtB,KAAa;IAEb,OAAO,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,SAAS,CAChC,IAAI,EACJ,UAAU,CAAC,YAA0B,EACrC,UAAU,EACV,KAAK,CACN,CAAC,CAAA;AACJ,CAAC;AAED,qGAAqG;AACrG,MAAM,UAAU,SAAS,CACvB,IAAa,EACb,YAAwB,EACxB,UAAsB,EACtB,KAAa;IAEb,IAAG,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QAC9B,OAAO,IAAI,CAAA;IACb,CAAC;IAED,IAAG,CAAC,YAAY,EAAE,CAAC;QACjB,OAAO,IAAI,CAAA,CAAC,kBAAkB;IAChC,CAAC;IAED,OAAO,SAAS,CAAC,IAAI,EAAE,YAAY,EAAE,UAAU,EAAE,KAAK,CAAC,CAAA;AACzD,CAAC;AAED,MAAM,UAAU,SAAS,CACvB,KAAoF,EACpF,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CAAC,MAAM,GAAG,IAAI,CAAA;IAEpB,sBAAsB,CACpB,MAAM,CAAC,MAAM,EACb,MAAM,EACN,YAAY,EACZ,OAAO,CACR,CAAA;IAED,OAAO,MAAM,CAAC,MAAM,CAAA;AACtB,CAAC"}
|
package/js/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export * from './state/index.js';
|
|
|
5
5
|
export { states } from './state/states.function.js';
|
|
6
6
|
export * from './subject/index.js';
|
|
7
7
|
export * from './interpolations/index.js';
|
|
8
|
-
export * from './tag/
|
|
8
|
+
export * from './tag/createHtmlSupport.function.js';
|
|
9
9
|
export * from './interpolations/attributes/howToSetInputValue.function.js';
|
|
10
10
|
export * from './interpolations/attributes/ElementTargetEvent.interface.js';
|
|
11
11
|
export { type Wrapper } from './tag/getTemplaterResult.function.js';
|
package/js/index.js
CHANGED
|
@@ -5,7 +5,7 @@ export * from './state/index.js';
|
|
|
5
5
|
export { states } from './state/states.function.js';
|
|
6
6
|
export * from './subject/index.js';
|
|
7
7
|
export * from './interpolations/index.js';
|
|
8
|
-
export * from './tag/
|
|
8
|
+
export * from './tag/createHtmlSupport.function.js';
|
|
9
9
|
export * from './interpolations/attributes/howToSetInputValue.function.js';
|
|
10
10
|
export * from './interpolations/attributes/ElementTargetEvent.interface.js';
|
|
11
11
|
import { renderTagOnly } from './tag/render/renderTagOnly.function.js';
|
package/js/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../ts/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AACnD,cAAc,oBAAoB,CAAA;AAClC,cAAc,2BAA2B,CAAA;AACzC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../ts/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AACnD,cAAc,oBAAoB,CAAA;AAClC,cAAc,2BAA2B,CAAA;AACzC,cAAc,qCAAqC,CAAA;AACnD,cAAc,4DAA4D,CAAA;AAC1E,cAAc,6DAA6D,CAAA;AAI3E,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAA;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAA;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAA;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAE/C,OAAO,EACL,UAAU,EAAE,iBAAiB,EAAE,aAAa,EAC5C,aAAa,EAAE,KAAK,GACrB,CAAA;AAED,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,UAAU,EAAE,iBAAiB,EAAE,aAAa;IAC5C,aAAa,EAAE,KAAK;CACrB,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { EventCallback } from '../../tag/index.js';
|
|
2
|
-
import { AnySupport } from '../../tag/
|
|
2
|
+
import { AnySupport } from '../../tag/AnySupport.type.js';
|
|
3
3
|
export declare function addSupportEventListener(support: AnySupport, eventName: string, element: Element, callback: EventCallback): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** File largely responsible for reacting to element events, such as onclick */
|
|
2
|
-
import { AnySupport } from '../../tag/
|
|
2
|
+
import { AnySupport } from '../../tag/AnySupport.type.js';
|
|
3
3
|
import { TagGlobal } from '../../tag/getTemplaterResult.function.js';
|
|
4
4
|
import { StatesSetter } from '../../state/states.utils.js';
|
|
5
5
|
export type Callback = (...args: any[]) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bindSubjectCallback.function.js","sourceRoot":"","sources":["../../../ts/interpolations/attributes/bindSubjectCallback.function.ts"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,+EAA+E;AAE/E,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"bindSubjectCallback.function.js","sourceRoot":"","sources":["../../../ts/interpolations/attributes/bindSubjectCallback.function.ts"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,+EAA+E;AAE/E,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAA;AAG1E,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AAEnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AAEvE,MAAM,MAAM,GAAG,cAAc,CAAA;AAC7B,MAAM,aAAa,GAAG,sBAAsB,CAAA;AAI5C,MAAM,UAAU,mBAAmB,CACjC,KAAe,EACf,OAAmB;IAEnB,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,MAA0B,CAAA;IAEzD,gCAAgC;IAChC,MAAM,eAAe,GAAG,UACtB,OAAgB,EAAE,IAAW;QAE7B,IAAG,MAAM,CAAC,OAAO,KAAK,IAAI,EAAE,CAAC;YAC3B,OAAM;QACR,CAAC;QAED,2EAA2E;QAC3E,OAAO,cAAc,CACnB,eAAe,CAAC,WAAW,EAC3B,eAAe,CAAC,OAAO,EAAE,SAAS;QAClC,eAAe,CAAC,MAAM,EAAE,SAAS;QACjC,OAAO,EACP,IAAI,CACL,CAAA;IACH,CAAC,CAAA;IAED,2EAA2E;IAC3E,eAAe,CAAC,WAAW,GAAG,KAAK,CAAA;IAEnC,MAAM,SAAS,GAAG,mBAAmB,CAAC,OAAO,CAAC,CAAA;IAC9C,eAAe,CAAC,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E,MAAM,CAAC,CAAA;AAChE,CAAC;AAED,MAAM,UAAU,yBAAyB,CACvC,cAAmB,EACnB,IAAgB,EAChB,MAAiB;IAEjB,IAAG,SAAS,CAAC,cAAc,CAAC,EAAE,CAAC;QAC7B,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,MAAmB,CAAA;QAChD,OAAO,CAAC,MAAM,GAAG,IAAI,CAAA;QAErB,OAAO,cAAc,CAAC,IAAI,CAAC,GAAG,EAAE;YAC9B,IAAG,MAAM,CAAC,OAAO,KAAK,IAAI,EAAE,CAAC;gBAC3B,OAAO,aAAa,CAAA,CAAC,0CAA0C;YACjE,CAAC;YAED,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,MAAmB,CAAA;YAChD,OAAO,OAAO,CAAC,MAAM,CAAA;YACrB,MAAM,YAAY,GAAG,SAAS,CAAC,IAAI,CAAC,CAAA;YACpC,oBAAoB,CAAC,YAAY,CAAC,CAAA;YAElC,OAAO,aAAa,CAAA;QACtB,CAAC,CAAC,CAAA;IACJ,CAAC;IAED,OAAO,MAAM,CAAA;AACf,CAAC;AAED,MAAM,UAAU,UAAU,CACxB,GAAe;IAEf,MAAM,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC,MAA0B,CAAA;IACrD,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAA;IAE9B,KAAI,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;QAC3B,MAAM,UAAU,GAAG,aAAa,CAAC,KAAK,CAAC,CAAA;QACvC,MAAM,CAAC,MAAM,GAAG,UAAU,CAAA;IAC5B,CAAC;IAED,MAAM,CAAC,OAAO,GAAG,EAAE,CAAA;IAEnB,OAAO,MAAM,CAAC,MAAM,CAAA;AACtB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AnySupport } from '../../tag/
|
|
1
|
+
import { AnySupport } from '../../tag/AnySupport.type.js';
|
|
2
2
|
export declare function getSupportWithState(support: AnySupport): AnySupport;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AnySupport } from "../../tag/
|
|
1
|
+
import { AnySupport } from "../../tag/AnySupport.type.js";
|
|
2
2
|
export declare function getUpTags(support: AnySupport, supports?: AnySupport[]): AnySupport[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getUpTags.function.js","sourceRoot":"","sources":["../../../ts/interpolations/attributes/getUpTags.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAA;AACnF,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAA;
|
|
1
|
+
{"version":3,"file":"getUpTags.function.js","sourceRoot":"","sources":["../../../ts/interpolations/attributes/getUpTags.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAA;AACnF,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAA;AAIxF,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAA;AAEzD,MAAM,UAAU,SAAS,CACvB,OAAmB,EACnB,WAAyB,EAAE;IAEzB,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,MAA0B,CAAA;IACzD,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAA;IACnC,MAAM,UAAU,GAAG,YAAY,CAAC,SAAS,CAAC,CAAA;IAC1C,MAAM,YAAY,GAAI,OAAmB,CAAC,YAAY,CAAA;IAEtD,IAAG,MAAM,CAAC,MAAM,EAAE,CAAC;QACjB,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QACtB,OAAO,QAAQ,CAAA;IACjB,CAAC;IAED,2CAA2C;IAC3C,IAAI,UAAU,EAAG,CAAC;QAChB,OAAO,SAAS,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAA;IAC1C,CAAC;IAED,MAAM,UAAU,GAAG,OAAO,CAAA,CAAC,8BAA8B;IACzD,MAAM,WAAW,GAAG,cAAc,CAAC,UAAU,CAAC,SAAS,CAAC,CAAA;IACxD,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,SAAS,CAAA;IAC7C,MAAM,aAAa,GAAG,YAAY,IAAI,SAAS,KAAK,UAAU,CAAC,WAAW,CAAA;IAC1E,MAAM,UAAU,GAAG,aAAa,IAAI,CAAC,CAAC,WAAW,IAAI,aAAa,CAAC,YAAY,EAAE,UAAU,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,CAAA;IAEnH,MAAM,WAAW,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAA;IACpD,QAAQ,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,CAAA;IAE7B,IAAG,UAAU,EAAE,CAAC;QACd,SAAS,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAA;QAEjC,IAAG,WAAW,EAAE,CAAC;YACf,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;QAC3B,CAAC;QAED,OAAO,QAAQ,CAAA,CAAC,2DAA2D;IAC7E,CAAC;IAED,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;IAEzB,OAAO,QAAQ,CAAA;AACnB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HowToSet } from './howToSetInputValue.function.js';
|
|
2
|
-
import { AnySupport } from '../../tag/
|
|
2
|
+
import { AnySupport } from '../../tag/AnySupport.type.js';
|
|
3
3
|
import { ContextItem } from '../../tag/Context.types.js';
|
|
4
4
|
import { Counts } from '../interpolateTemplate.js';
|
|
5
5
|
type TagVarIdNum = {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { AnySupport } from '../../tag/
|
|
1
|
+
import { AnySupport } from '../../tag/AnySupport.type.js';
|
|
2
2
|
import { Callback } from './bindSubjectCallback.function.js';
|
|
3
3
|
export declare function processAttributeFunction(element: Element, newAttrValue: Callback, support: AnySupport, attrName: string): void;
|
|
@@ -2,7 +2,7 @@ import { HowToSet } from './howToSetInputValue.function.js';
|
|
|
2
2
|
import { TagGlobal } from '../../tag/getTemplaterResult.function.js';
|
|
3
3
|
import { SpecialDefinition } from './processAttribute.function.js';
|
|
4
4
|
import { ContextItem } from '../../tag/Context.types.js';
|
|
5
|
-
import { AnySupport } from '../../tag/
|
|
5
|
+
import { AnySupport } from '../../tag/AnySupport.type.js';
|
|
6
6
|
import { Counts } from '../interpolateTemplate.js';
|
|
7
7
|
export declare function processDynamicNameValueAttribute(attrName: string, value: any | TagGlobal, contextItem: ContextItem, element: Element, howToSet: HowToSet, support: AnySupport, counts: Counts, isSpecial: SpecialDefinition): void;
|
|
8
8
|
export declare function processNonDynamicAttr(attrName: string, value: string, element: Element, howToSet: HowToSet, counts: Counts, support: AnySupport, isSpecial: SpecialDefinition): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AnySupport } from '../../tag/
|
|
1
|
+
import { AnySupport } from '../../tag/AnySupport.type.js';
|
|
2
2
|
export declare function renderTagUpdateArray(supports: AnySupport[]): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnySupport } from "../../tag/
|
|
1
|
+
import { AnySupport } from "../../tag/AnySupport.type.js";
|
|
2
2
|
import { Counts } from "../interpolateTemplate.js";
|
|
3
3
|
import { SpecialDefinition } from "./processAttribute.function.js";
|
|
4
4
|
/** handles init, destroy, autofocus, autoselect, style., class. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HowToSet } from './howToSetInputValue.function.js';
|
|
2
|
-
import { AnySupport } from '../../tag/
|
|
2
|
+
import { AnySupport } from '../../tag/AnySupport.type.js';
|
|
3
3
|
import { ContextItem } from '../../tag/Context.types.js';
|
|
4
4
|
import { Counts } from '../interpolateTemplate.js';
|
|
5
5
|
export declare function updateNameOnlyAttrValue(values: unknown[], attrValue: string | boolean | Record<string, any>, lastValue: string | Record<string, any> | undefined, element: Element, ownerSupport: AnySupport, howToSet: HowToSet, context: ContextItem[], counts: Counts): void;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { DomObjectChildren } from "./ObjectNode.types.js";
|
|
2
|
-
import { AnySupport } from "../../tag/
|
|
3
|
-
import { SubToTemplateOptions } from "../subscribeToTemplate.function.js";
|
|
2
|
+
import { AnySupport } from "../../tag/AnySupport.type.js";
|
|
4
3
|
import { ContextItem } from "../../tag/Context.types.js";
|
|
5
4
|
import { ObjectChildren } from "./LikeObjectElement.type.js";
|
|
6
5
|
import { Counts } from "../interpolateTemplate.js";
|
|
7
6
|
export declare const blankHandler: () => undefined;
|
|
8
7
|
export declare function attachDomElements(nodes: ObjectChildren, values: any[], support: AnySupport, counts: Counts, // used for animation stagger computing
|
|
9
8
|
context: ContextItem[], depth: number, // used to know if dynamic variables live within parent owner tag/support
|
|
10
|
-
appendTo?: Element, insertBefore?: Text
|
|
9
|
+
appendTo?: Element, insertBefore?: Text): {
|
|
11
10
|
context: ContextItem[];
|
|
12
|
-
subs: SubToTemplateOptions[];
|
|
13
11
|
dom: DomObjectChildren;
|
|
14
12
|
};
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
// taggedjs-no-compile
|
|
2
|
-
import { processFirstSubjectValue } from "../../tag/update/processFirstSubjectValue.function.js";
|
|
3
2
|
import { howToSetFirstInputValue } from "../attributes/howToSetInputValue.function.js";
|
|
4
3
|
import { paintAppends, paintInsertBefores } from "../../tag/paint.function.js";
|
|
5
4
|
import { processAttribute } from "../attributes/processAttribute.function.js";
|
|
6
|
-
import { addOneContext } from "../../tag/index.js";
|
|
7
5
|
import { empty } from "../../tag/ValueTypes.enum.js";
|
|
8
|
-
import {
|
|
6
|
+
import { attachDynamicDom } from "./attachDynamicDom.function.js";
|
|
9
7
|
export const blankHandler = () => undefined;
|
|
10
8
|
const someDiv = (typeof document === 'object' && document.createElement('div')); // used for content cleaning
|
|
11
9
|
export function attachDomElements(nodes, values, support, counts, // used for animation stagger computing
|
|
12
10
|
context, depth, // used to know if dynamic variables live within parent owner tag/support
|
|
13
|
-
appendTo, insertBefore
|
|
11
|
+
appendTo, insertBefore) {
|
|
14
12
|
const dom = [];
|
|
15
13
|
if (appendTo && insertBefore === undefined) {
|
|
16
14
|
insertBefore = document.createTextNode(empty);
|
|
@@ -27,7 +25,7 @@ appendTo, insertBefore, subs = []) {
|
|
|
27
25
|
if (isNum) {
|
|
28
26
|
const index = context.length;
|
|
29
27
|
const value = values[index];
|
|
30
|
-
attachDynamicDom(value,
|
|
28
|
+
attachDynamicDom(value, context, support, counts, depth, appendTo, insertBefore);
|
|
31
29
|
continue;
|
|
32
30
|
}
|
|
33
31
|
const newNode = {}; // DomObjectText
|
|
@@ -39,10 +37,10 @@ appendTo, insertBefore, subs = []) {
|
|
|
39
37
|
// one single html element
|
|
40
38
|
const domElement = attachDomElement(newNode, node, values, support, context, counts, appendTo, insertBefore);
|
|
41
39
|
if (node.ch) {
|
|
42
|
-
newNode.ch = attachDomElements(node.ch, values, support, counts, context, depth + 1, domElement, insertBefore
|
|
40
|
+
newNode.ch = attachDomElements(node.ch, values, support, counts, context, depth + 1, domElement, insertBefore).dom;
|
|
43
41
|
}
|
|
44
42
|
}
|
|
45
|
-
return {
|
|
43
|
+
return { dom, context };
|
|
46
44
|
}
|
|
47
45
|
function attachDomElement(newNode, node, values, support, context, counts, appendTo, insertBefore) {
|
|
48
46
|
const domElement = newNode.domElement = document.createElement(node.nn);
|
|
@@ -89,33 +87,4 @@ function attachDomText(newNode, node, owner, insertBefore) {
|
|
|
89
87
|
});
|
|
90
88
|
}
|
|
91
89
|
}
|
|
92
|
-
function attachDynamicDom(value, index, context, support, subs, counts, // used for animation stagger computing
|
|
93
|
-
depth, // used to indicate if variable lives within an owner's element
|
|
94
|
-
appendTo, insertBefore) {
|
|
95
|
-
const marker = document.createTextNode(empty);
|
|
96
|
-
const isWithinOwnerElement = depth > 0;
|
|
97
|
-
const contextItem = addOneContext(value, context, isWithinOwnerElement);
|
|
98
|
-
contextItem.placeholder = marker;
|
|
99
|
-
if (appendTo) {
|
|
100
|
-
paintAppends.push({
|
|
101
|
-
relative: appendTo,
|
|
102
|
-
element: marker,
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
else {
|
|
106
|
-
paintInsertBefores.push({
|
|
107
|
-
relative: insertBefore,
|
|
108
|
-
element: marker,
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
// how to handle value updates
|
|
112
|
-
contextItem.handler = (newValue, _newValues, newSupport, newContextItem) => updateExistingValue(newContextItem, newValue, newSupport);
|
|
113
|
-
const global = support.subject.global;
|
|
114
|
-
global.locked = true;
|
|
115
|
-
processFirstSubjectValue(value, contextItem, support, counts, appendTo, insertBefore);
|
|
116
|
-
const global2 = support.subject.global;
|
|
117
|
-
delete global2.locked;
|
|
118
|
-
contextItem.value = value;
|
|
119
|
-
return;
|
|
120
|
-
}
|
|
121
90
|
//# sourceMappingURL=attachDomElements.function.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachDomElements.function.js","sourceRoot":"","sources":["../../../ts/interpolations/optimizers/attachDomElements.function.ts"],"names":[],"mappings":"AAAA,sBAAsB;
|
|
1
|
+
{"version":3,"file":"attachDomElements.function.js","sourceRoot":"","sources":["../../../ts/interpolations/optimizers/attachDomElements.function.ts"],"names":[],"mappings":"AAAA,sBAAsB;AAGtB,OAAO,EAAE,uBAAuB,EAAE,MAAM,8CAA8C,CAAA;AACtF,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAE9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAA;AAG7E,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAA;AAEpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AAEjE,MAAM,CAAC,MAAM,YAAY,GAAG,GA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AAS,EACT,MAAM,EACN,KAAK,CACN,CAAA;QACH,CAAC,CAAC,CAAA;IACJ,CAAC;IAED,IAAI,QAAQ,EAAE,CAAC;QACb,YAAY,CAAC,IAAI,CAAC;YAChB,OAAO,EAAE,UAAU;YACnB,QAAQ,EAAE,QAAQ;SACnB,CAAC,CAAA;IACJ,CAAC;SAAM,CAAC;QACN,kBAAkB,CAAC,IAAI,CAAC;YACtB,OAAO,EAAE,UAAU;YACnB,QAAQ,EAAE,YAAoB;SAC/B,CAAC,CAAA;IACJ,CAAC;IACD,OAAO,UAAU,CAAA;AACnB,CAAC;AAED,SAAS,aAAa,CACpB,OAAyB,EACzB,IAAsB,EACtB,KAA0B,EAC1B,YAA8B;IAE9B,MAAM,QAAQ,GAAI,OAAgC,CAAA;IAClD,MAAM,MAAM,GAAG,QAAQ,CAAC,EAAE,GAAI,IAA6B,CAAC,EAAE,CAAA;IAE9D,OAAO,CAAC,SAAS,GAAG,MAAM,CAAA;IAC1B,MAAM,UAAU,GAAG,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAEpF,IAAI,KAAK,EAAE,CAAC;QACV,YAAY,CAAC,IAAI,CAAC;YAChB,OAAO,EAAE,UAAU;YACnB,QAAQ,EAAE,KAAK;SAChB,CAAC,CAAA;IACJ,CAAC;SAAM,CAAC;QACN,kBAAkB,CAAC,IAAI,CAAC;YACtB,OAAO,EAAE,UAAU;YACnB,QAAQ,EAAE,YAAoB;SAC/B,CAAC,CAAA;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AnySupport } from "../../tag/AnySupport.type.js";
|
|
2
|
+
import { ContextItem } from "../../tag/Context.types.js";
|
|
3
|
+
import { Counts } from "../interpolateTemplate.js";
|
|
4
|
+
export declare function attachDynamicDom(value: any, context: ContextItem[], support: AnySupport, // owner
|
|
5
|
+
counts: Counts, // used for animation stagger computing
|
|
6
|
+
depth: number, // used to indicate if variable lives within an owner's element
|
|
7
|
+
appendTo?: Element, insertBefore?: Text): void;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// taggedjs-no-compile
|
|
2
|
+
import { paintAppends, paintInsertBefores } from "../../tag/paint.function.js";
|
|
3
|
+
import { addOneContext } from "../../tag/index.js";
|
|
4
|
+
import { empty } from "../../tag/ValueTypes.enum.js";
|
|
5
|
+
import { domProcessContextItem } from "./domProcessContextItem.function.js";
|
|
6
|
+
export function attachDynamicDom(value, context, support, // owner
|
|
7
|
+
counts, // used for animation stagger computing
|
|
8
|
+
depth, // used to indicate if variable lives within an owner's element
|
|
9
|
+
appendTo, insertBefore) {
|
|
10
|
+
const marker = document.createTextNode(empty);
|
|
11
|
+
const isWithinOwnerElement = depth > 0;
|
|
12
|
+
const contextItem = addOneContext(value, context, isWithinOwnerElement);
|
|
13
|
+
contextItem.placeholder = marker;
|
|
14
|
+
if (appendTo) {
|
|
15
|
+
paintAppends.push({
|
|
16
|
+
relative: appendTo,
|
|
17
|
+
element: marker,
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
paintInsertBefores.push({
|
|
22
|
+
relative: insertBefore,
|
|
23
|
+
element: marker,
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
domProcessContextItem(value, contextItem, support, counts, appendTo, insertBefore);
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=attachDynamicDom.function.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attachDynamicDom.function.js","sourceRoot":"","sources":["../../../ts/interpolations/optimizers/attachDynamicDom.function.ts"],"names":[],"mappings":"AAAA,sBAAsB;AAEtB,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAG9E,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAA;AAEpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAA;AAE3E,MAAM,UAAU,gBAAgB,CAC9B,KAAU,EACV,OAAsB,EACtB,OAAmB,EAAE,QAAQ;AAC7B,MAAc,EAAE,uCAAuC;AACvD,KAAa,EAAE,+DAA+D;AAC9E,QAAkB,EAClB,YAAmB;IAEnB,MAAM,MAAM,GAAG,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,CAAA;IAC7C,MAAM,oBAAoB,GAAG,KAAK,GAAG,CAAC,CAAA;IACtC,MAAM,WAAW,GAAG,aAAa,CAC/B,KAAK,EACL,OAAO,EACP,oBAAoB,CACrB,CAAA;IAED,WAAW,CAAC,WAAW,GAAG,MAAM,CAAA;IAEhC,IAAG,QAAQ,EAAE,CAAC;QACZ,YAAY,CAAC,IAAI,CAAC;YAChB,QAAQ,EAAE,QAAQ;YAClB,OAAO,EAAE,MAAM;SAChB,CAAC,CAAA;IACJ,CAAC;SAAM,CAAC;QACN,kBAAkB,CAAC,IAAI,CAAC;YACtB,QAAQ,EAAE,YAAoB;YAC9B,OAAO,EAAE,MAAM;SAChB,CAAC,CAAA;IACJ,CAAC;IAED,qBAAqB,CAAC,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAA;AACpF,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AnySupport } from "../../tag/AnySupport.type.js";
|
|
2
|
+
import { ContextItem } from "../../tag/Context.types.js";
|
|
3
|
+
import { Counts } from "../interpolateTemplate.js";
|
|
4
|
+
export declare function domProcessContextItem(value: any, contextItem: ContextItem, support: AnySupport, counts: Counts, // used for animation stagger computing
|
|
5
|
+
appendTo?: Element, insertBefore?: Text): void;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// taggedjs-no-compile
|
|
2
|
+
import { processFirstSubjectValue } from "../../tag/update/processFirstSubjectValue.function.js";
|
|
3
|
+
import { updateExistingValue } from "../../tag/update/updateExistingValue.function.js";
|
|
4
|
+
export function domProcessContextItem(value, contextItem, support, counts, // used for animation stagger computing
|
|
5
|
+
appendTo, insertBefore) {
|
|
6
|
+
// how to handle value updates
|
|
7
|
+
contextItem.handler = domContextHandler;
|
|
8
|
+
const global = support.subject.global;
|
|
9
|
+
global.locked = true;
|
|
10
|
+
processFirstSubjectValue(value, contextItem, support, counts, appendTo, insertBefore);
|
|
11
|
+
const global2 = support.subject.global;
|
|
12
|
+
delete global2.locked;
|
|
13
|
+
contextItem.value = value;
|
|
14
|
+
}
|
|
15
|
+
function domContextHandler(newValue, _newValues, newSupport, newContextItem) {
|
|
16
|
+
return updateExistingValue(newContextItem, newValue, newSupport);
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=domProcessContextItem.function.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domProcessContextItem.function.js","sourceRoot":"","sources":["../../../ts/interpolations/optimizers/domProcessContextItem.function.ts"],"names":[],"mappings":"AAAA,sBAAsB;AAEtB,OAAO,EAAE,wBAAwB,EAAE,MAAM,uDAAuD,CAAA;AAMhG,OAAO,EAAE,mBAAmB,EAAE,MAAM,kDAAkD,CAAA;AAGtF,MAAM,UAAU,qBAAqB,CACnC,KAAU,EACV,WAAwB,EACxB,OAAmB,EACnB,MAAc,EAAE,uCAAuC;AACvD,QAAkB,EAClB,YAAmB;IAEnB,8BAA8B;IAC9B,WAAW,CAAC,OAAO,GAAG,iBAAiB,CAAA;IAEvC,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,MAAmB,CAAA;IAClD,MAAM,CAAC,MAAM,GAAG,IAAI,CAAA;IAEpB,wBAAwB,CACtB,KAAK,EACL,WAAW,EACX,OAAO,EACP,MAAM,EACN,QAAQ,EACR,YAAY,CACb,CAAA;IAED,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,MAAmB,CAAA;IACnD,OAAO,OAAO,CAAC,MAAM,CAAA;IACrB,WAAW,CAAC,KAAK,GAAG,KAAK,CAAA;AAC3B,CAAC;AAED,SAAS,iBAAiB,CACxB,QAAuB,EACvB,UAAqB,EACrB,UAAsB,EACtB,cAA2B;IAE3B,OAAO,mBAAmB,CACxB,cAAc,EACd,QAAyB,EACzB,UAAU,CACX,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AnySupport } from "../../tag/AnySupport.type.js";
|
|
2
|
+
import { ContextItem } from "../../tag/Context.types.js";
|
|
3
|
+
import { Counts } from "../interpolateTemplate.js";
|
|
4
|
+
export declare function domProcessContextItem(value: any, contextItem: ContextItem, support: AnySupport, counts: Counts, // used for animation stagger computing
|
|
5
|
+
appendTo?: Element, insertBefore?: Text): void;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// taggedjs-no-compile
|
|
2
|
+
import { processFirstSubjectValue } from "../../tag/update/processFirstSubjectValue.function.js";
|
|
3
|
+
import { updateExistingValue } from "../../tag/update/updateExistingValue.function.js";
|
|
4
|
+
export function domProcessContextItem(value, contextItem, support, counts, // used for animation stagger computing
|
|
5
|
+
appendTo, insertBefore) {
|
|
6
|
+
// how to handle value updates
|
|
7
|
+
contextItem.handler = domContextHandler;
|
|
8
|
+
const global = support.subject.global;
|
|
9
|
+
global.locked = true;
|
|
10
|
+
processFirstSubjectValue(value, contextItem, support, counts, appendTo, insertBefore);
|
|
11
|
+
const global2 = support.subject.global;
|
|
12
|
+
delete global2.locked;
|
|
13
|
+
contextItem.value = value;
|
|
14
|
+
}
|
|
15
|
+
function domContextHandler(newValue, _newValues, newSupport, newContextItem) {
|
|
16
|
+
return updateExistingValue(newContextItem, newValue, newSupport);
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=processDomContextItem.function.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"processDomContextItem.function.js","sourceRoot":"","sources":["../../../ts/interpolations/optimizers/processDomContextItem.function.ts"],"names":[],"mappings":"AAAA,sBAAsB;AAEtB,OAAO,EAAE,wBAAwB,EAAE,MAAM,uDAAuD,CAAA;AAMhG,OAAO,EAAE,mBAAmB,EAAE,MAAM,kDAAkD,CAAA;AAGtF,MAAM,UAAU,qBAAqB,CACnC,KAAU,EACV,WAAwB,EACxB,OAAmB,EACnB,MAAc,EAAE,uCAAuC;AACvD,QAAkB,EAClB,YAAmB;IAEnB,8BAA8B;IAC9B,WAAW,CAAC,OAAO,GAAG,iBAAiB,CAAA;IAEvC,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,MAAmB,CAAA;IAClD,MAAM,CAAC,MAAM,GAAG,IAAI,CAAA;IAEpB,wBAAwB,CACtB,KAAK,EACL,WAAW,EACX,OAAO,EACP,MAAM,EACN,QAAQ,EACR,YAAY,CACb,CAAA;IAED,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,MAAmB,CAAA;IACnD,OAAO,OAAO,CAAC,MAAM,CAAA;IACrB,WAAW,CAAC,KAAK,GAAG,KAAK,CAAA;AAC3B,CAAC;AAED,SAAS,iBAAiB,CACxB,QAAuB,EACvB,UAAqB,EACrB,UAAsB,EACtB,cAA2B;IAE3B,OAAO,mBAAmB,CACxB,cAAc,EACd,QAAyB,EACzB,UAAU,CACX,CAAA;AACH,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TemplateValue } from '../tag/update/processFirstSubject.utils.js';
|
|
2
2
|
import { ContextItem } from '../tag/Context.types.js';
|
|
3
|
-
import { AnySupport } from '../tag/
|
|
3
|
+
import { AnySupport } from '../tag/AnySupport.type.js';
|
|
4
4
|
/** Used for values that are to subscribe to */
|
|
5
5
|
export declare function processSubUpdate(value: TemplateValue, // Observable | Subject
|
|
6
6
|
contextItem: ContextItem, support: AnySupport): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InterpolateSubject } from '../tag/update/processFirstSubject.utils.js';
|
|
2
2
|
import { ContextItem } from '../tag/Context.types.js';
|
|
3
|
-
import { AnySupport } from '../tag/
|
|
3
|
+
import { AnySupport } from '../tag/AnySupport.type.js';
|
|
4
4
|
import { Counts } from './interpolateTemplate.js';
|
|
5
5
|
export type SubToTemplateOptions = {
|
|
6
6
|
insertBefore: Text;
|
|
@@ -10,5 +10,3 @@ export type SubToTemplateOptions = {
|
|
|
10
10
|
contextItem: ContextItem;
|
|
11
11
|
appendTo?: Element;
|
|
12
12
|
};
|
|
13
|
-
/** @deprecated Used for when dynamic value is truly something to subscribe to */
|
|
14
|
-
export declare function subscribeToTemplate({ subject, support, counts, contextItem, appendTo, }: SubToTemplateOptions): void;
|
|
@@ -1,36 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { processSubUpdate } from './processSubscriptionUpdate.function.js';
|
|
3
|
-
import { setUseMemory } from '../state/setUseMemory.object.js';
|
|
4
|
-
import { paint } from '../tag/paint.function.js';
|
|
5
|
-
/** @deprecated Used for when dynamic value is truly something to subscribe to */
|
|
6
|
-
export function subscribeToTemplate({ subject, support, counts, contextItem, appendTo, }) {
|
|
7
|
-
const sub = setupSubscribeCallbackProcessor(subject, contextItem, support, counts, appendTo);
|
|
8
|
-
// Manage unsubscribing
|
|
9
|
-
const global = support.subject.global;
|
|
10
|
-
const subs = global.subscriptions = global.subscriptions || [];
|
|
11
|
-
subs.push(sub);
|
|
12
|
-
}
|
|
13
|
-
function setupSubscribeCallbackProcessor(observable, contextItem, support, // ownerSupport ?
|
|
14
|
-
counts, // used for animation stagger computing
|
|
15
|
-
appendTo) {
|
|
16
|
-
let onValue = function onSubValue(value) {
|
|
17
|
-
processFirstSubjectValue(value, contextItem, support, { ...counts }, syncRun ? appendTo : undefined);
|
|
18
|
-
if (!syncRun && !setUseMemory.stateConfig.support) {
|
|
19
|
-
paint();
|
|
20
|
-
}
|
|
21
|
-
// from now on just run update
|
|
22
|
-
onValue = function subscriptionUpdate(value) {
|
|
23
|
-
processSubUpdate(value, contextItem, support);
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
// onValue mutates so function below calls original and mutation
|
|
27
|
-
const callback = function subValueProcessor(value) {
|
|
28
|
-
onValue(value);
|
|
29
|
-
}; // as unknown as (ValueSubjectSubscriber<Callback> & ValueSubjectSubscriber<unknown>)
|
|
30
|
-
let syncRun = true;
|
|
31
|
-
const sub = observable.subscribe(callback);
|
|
32
|
-
contextItem.subject = observable;
|
|
33
|
-
syncRun = false;
|
|
34
|
-
return sub;
|
|
35
|
-
}
|
|
1
|
+
export {};
|
|
36
2
|
//# sourceMappingURL=subscribeToTemplate.function.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscribeToTemplate.function.js","sourceRoot":"","sources":["../../ts/interpolations/subscribeToTemplate.function.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"subscribeToTemplate.function.js","sourceRoot":"","sources":["../../ts/interpolations/subscribeToTemplate.function.ts"],"names":[],"mappings":""}
|
package/js/isInstance.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SubjectLike } from './subject/subject.utils.js';
|
|
2
|
-
import { AnySupport } from './tag/
|
|
2
|
+
import { AnySupport } from './tag/AnySupport.type.js';
|
|
3
3
|
import { StringTag } from './tag/StringTag.type.js';
|
|
4
4
|
import { TemplaterResult } from './tag/getTemplaterResult.function.js';
|
|
5
5
|
export declare function isSimpleType(value: any): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnySupport } from "../tag/
|
|
1
|
+
import { AnySupport } from "../tag/AnySupport.type.js";
|
|
2
2
|
import { State } from "./state.types.js";
|
|
3
3
|
import { runFirstState } from "./stateHandlers.js";
|
|
4
4
|
import { firstStatesHandler, StatesSetter } from "./states.utils.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnySupport } from '../tag/
|
|
1
|
+
import { AnySupport } from '../tag/AnySupport.type.js';
|
|
2
2
|
import { Callback } from './callbackMaker.function.js';
|
|
3
3
|
import { StateMemory } from './StateMemory.type.js';
|
|
4
4
|
/** Wrap a function that will be called back. After the wrapper and function are called, a rendering cycle will update display */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnySupport } from '../tag/
|
|
1
|
+
import { AnySupport } from '../tag/AnySupport.type.js';
|
|
2
2
|
import { Callback } from './callbackMaker.function.js';
|
|
3
3
|
import { StatesSetter } from './states.utils.js';
|
|
4
4
|
export default function callbackStateUpdate<T>(support: AnySupport, oldStates: StatesSetter[], callback: Callback<any, any, any, any, any, any, T>, ...args: any[]): T;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnySupport } from '../tag/
|
|
1
|
+
import { AnySupport } from '../tag/AnySupport.type.js';
|
|
2
2
|
import { Provider } from './providers.js';
|
|
3
3
|
export declare function handleProviderChanges(appSupport: AnySupport, provider: Provider): TagWithProvider[];
|
|
4
4
|
type TagWithProvider = {
|