taggedjs 2.5.4 → 2.5.6
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 +3378 -2966
- package/bundle.js.map +1 -1
- package/js/Props.d.ts +1 -1
- package/js/Tag.class.d.ts +1 -1
- package/js/TemplaterResult.class.d.ts +14 -8
- package/js/TemplaterResult.class.js +13 -3
- package/js/TemplaterResult.class.js.map +1 -1
- package/js/afterInterpolateElement.function.d.ts +2 -2
- package/js/alterProps.function.d.ts +2 -3
- package/js/alterProps.function.js +6 -7
- package/js/alterProps.function.js.map +1 -1
- package/js/checkDestroyPrevious.function.d.ts +3 -3
- package/js/checkDestroyPrevious.function.js +2 -2
- package/js/checkDestroyPrevious.function.js.map +1 -1
- package/js/cloneValueArray.function.d.ts +1 -1
- package/js/destroy.support.d.ts +1 -1
- package/js/destroyTag.function.d.ts +1 -1
- package/js/hasTagSupportChanged.function.d.ts +1 -1
- package/js/index.d.ts +15 -12
- package/js/index.js +15 -12
- package/js/index.js.map +1 -1
- package/js/insertAfter.function.d.ts +1 -1
- package/js/interpolations/Clones.type.d.ts +3 -0
- package/js/interpolations/Clones.type.js +2 -0
- package/js/interpolations/Clones.type.js.map +1 -0
- package/js/interpolations/ElementTargetEvent.interface.d.ts +6 -0
- package/js/interpolations/ElementTargetEvent.interface.js +2 -0
- package/js/interpolations/ElementTargetEvent.interface.js.map +1 -0
- package/js/interpolations/afterInterpolateElement.function.d.ts +4 -0
- package/js/interpolations/afterInterpolateElement.function.js +12 -0
- package/js/interpolations/afterInterpolateElement.function.js.map +1 -0
- package/js/interpolations/bindSubjectCallback.function.d.ts +1 -1
- package/js/interpolations/bindSubjectCallback.function.js +11 -9
- package/js/interpolations/bindSubjectCallback.function.js.map +1 -1
- package/js/interpolations/interpolateAttributes.d.ts +2 -2
- package/js/interpolations/interpolateContentTemplates.d.ts +2 -2
- package/js/interpolations/interpolateElement.d.ts +2 -2
- package/js/interpolations/interpolateElement.js +1 -1
- package/js/interpolations/interpolateElement.js.map +1 -1
- package/js/interpolations/interpolateTemplate.d.ts +4 -4
- package/js/interpolations/interpolateTemplate.js +19 -4
- package/js/interpolations/interpolateTemplate.js.map +1 -1
- package/js/interpolations/processAttribute.function.d.ts +2 -2
- package/js/interpolations/scanTextAreaValue.function.d.ts +2 -2
- package/js/isInstance.d.ts +2 -2
- package/js/isInstance.js +2 -1
- package/js/isInstance.js.map +1 -1
- package/js/isLikeTags.function.d.ts +2 -1
- package/js/isLikeTags.function.js +3 -0
- package/js/isLikeTags.function.js.map +1 -1
- package/js/processNewValue.function.d.ts +1 -1
- package/js/processNewValue.function.js +1 -1
- package/js/processNewValue.function.js.map +1 -1
- package/js/processSubjectComponent.function.d.ts +1 -1
- package/js/processSubjectComponent.function.js +1 -1
- package/js/processSubjectComponent.function.js.map +1 -1
- package/js/processSubjectValue.function.d.ts +2 -2
- package/js/processSubjectValue.function.js +2 -2
- package/js/processSubjectValue.function.js.map +1 -1
- package/js/processTag.function.d.ts +1 -1
- package/js/processTag.function.js +1 -1
- package/js/processTag.function.js.map +1 -1
- package/js/processTagArray.d.ts +1 -1
- package/js/processTagArray.js +2 -2
- package/js/processTagArray.js.map +1 -1
- package/js/processTagResult.function.d.ts +2 -2
- package/js/render.d.ts +1 -1
- package/js/render.js +6 -5
- package/js/render.js.map +1 -1
- package/js/renderExistingTag.function.d.ts +1 -1
- package/js/renderExistingTag.function.js +3 -4
- package/js/renderExistingTag.function.js.map +1 -1
- package/js/renderSubjectComponent.function.d.ts +1 -1
- package/js/renderSubjectComponent.function.js +1 -1
- package/js/renderSubjectComponent.function.js.map +1 -1
- package/js/renderTagOnly.function.d.ts +4 -0
- package/js/renderTagOnly.function.js +39 -0
- package/js/renderTagOnly.function.js.map +1 -0
- package/js/renderTagSupport.function.d.ts +1 -1
- package/js/renderTagSupport.function.js +1 -1
- package/js/renderTagSupport.function.js.map +1 -1
- package/js/renderWithSupport.function.d.ts +2 -3
- package/js/renderWithSupport.function.js +4 -36
- package/js/renderWithSupport.function.js.map +1 -1
- package/js/state/callbackMaker.function.d.ts +3 -2
- package/js/state/callbackMaker.function.js +40 -18
- package/js/state/callbackMaker.function.js.map +1 -1
- package/js/state/children.d.ts +1 -0
- package/js/state/children.js +14 -0
- package/js/state/children.js.map +1 -0
- package/js/state/index.d.ts +2 -1
- package/js/state/index.js +2 -1
- package/js/state/index.js.map +1 -1
- package/js/state/provider.utils.d.ts +1 -1
- package/js/state/provider.utils.js +7 -7
- package/js/state/provider.utils.js.map +1 -1
- package/js/state/providers.d.ts +4 -2
- package/js/state/providers.js +56 -47
- package/js/state/providers.js.map +1 -1
- package/js/state/setUse.function.d.ts +9 -8
- package/js/state/setUse.function.js.map +1 -1
- package/js/state/state.function.js +17 -0
- package/js/state/state.function.js.map +1 -1
- package/js/state/state.utils.d.ts +1 -1
- package/js/state/state.utils.js +38 -24
- package/js/state/state.utils.js.map +1 -1
- package/js/state/subject.function.d.ts +12 -0
- package/js/state/subject.function.js +23 -0
- package/js/state/subject.function.js.map +1 -0
- package/js/state/syncStates.function.d.ts +2 -0
- package/js/state/syncStates.function.js +11 -0
- package/js/state/syncStates.function.js.map +1 -0
- package/js/state/watch.function.d.ts +20 -3
- package/js/state/watch.function.js +106 -10
- package/js/state/watch.function.js.map +1 -1
- package/js/subject/Subject.class.d.ts +9 -3
- package/js/subject/Subject.class.js +20 -54
- package/js/subject/Subject.class.js.map +1 -1
- package/js/subject/Subject.utils.d.ts +6 -3
- package/js/subject/Subject.utils.js +51 -3
- package/js/subject/Subject.utils.js.map +1 -1
- package/js/subject/ValueSubject.d.ts +2 -2
- package/js/subject/combineLatest.function.js +10 -2
- package/js/subject/combineLatest.function.js.map +1 -1
- package/js/subject/subject.cancel.d.ts +2 -0
- package/js/subject/subject.cancel.js +3 -0
- package/js/subject/subject.cancel.js.map +1 -0
- package/js/subject/will.functions.d.ts +1 -1
- package/js/subject.types.d.ts +2 -2
- package/js/tag/Tag.class.d.ts +43 -0
- package/js/tag/Tag.class.js +27 -0
- package/js/tag/Tag.class.js.map +1 -0
- package/js/tag/TagSupport.class.d.ts +58 -0
- package/js/tag/TagSupport.class.js +306 -0
- package/js/tag/TagSupport.class.js.map +1 -0
- package/js/tag/checkDestroyPrevious.function.d.ts +8 -0
- package/js/tag/checkDestroyPrevious.function.js +83 -0
- package/js/tag/checkDestroyPrevious.function.js.map +1 -0
- package/js/tag/cloneValueArray.function.d.ts +2 -0
- package/js/tag/cloneValueArray.function.js +19 -0
- package/js/tag/cloneValueArray.function.js.map +1 -0
- package/js/tag/destroy.support.d.ts +6 -0
- package/js/tag/destroy.support.js +10 -0
- package/js/tag/destroy.support.js.map +1 -0
- package/js/tag/destroyTag.function.d.ts +3 -0
- package/js/tag/destroyTag.function.js +12 -0
- package/js/tag/destroyTag.function.js.map +1 -0
- package/js/tag/elementDestroyCheck.function.d.ts +3 -0
- package/js/tag/elementDestroyCheck.function.js +17 -0
- package/js/tag/elementDestroyCheck.function.js.map +1 -0
- package/js/tag/getSupportInCycle.function.d.ts +1 -0
- package/js/tag/getSupportInCycle.function.js +5 -0
- package/js/tag/getSupportInCycle.function.js.map +1 -0
- package/js/tag/hasPropChanges.function.d.ts +9 -0
- package/js/tag/hasPropChanges.function.js +80 -0
- package/js/tag/hasPropChanges.function.js.map +1 -0
- package/js/tag/hasTagSupportChanged.function.d.ts +4 -0
- package/js/tag/hasTagSupportChanged.function.js +23 -0
- package/js/tag/hasTagSupportChanged.function.js.map +1 -0
- package/js/tag/html.d.ts +4 -0
- package/js/tag/html.js +5 -0
- package/js/tag/html.js.map +1 -0
- package/js/tag/isLikeTags.function.d.ts +5 -0
- package/js/tag/isLikeTags.function.js +42 -0
- package/js/tag/isLikeTags.function.js.map +1 -0
- package/js/tag/render/renderExistingTag.function.d.ts +7 -0
- package/js/tag/render/renderExistingTag.function.js +32 -0
- package/js/tag/render/renderExistingTag.function.js.map +1 -0
- package/js/tag/render/renderSubjectComponent.function.d.ts +3 -0
- package/js/tag/render/renderSubjectComponent.function.js +14 -0
- package/js/tag/render/renderSubjectComponent.function.js.map +1 -0
- package/js/tag/render/renderTagOnly.function.d.ts +3 -0
- package/js/tag/render/renderTagOnly.function.js +41 -0
- package/js/tag/render/renderTagOnly.function.js.map +1 -0
- package/js/tag/render/renderTagSupport.function.d.ts +4 -0
- package/js/tag/render/renderTagSupport.function.js +37 -0
- package/js/tag/render/renderTagSupport.function.js.map +1 -0
- package/js/tag/render/renderWithSupport.function.d.ts +5 -0
- package/js/tag/render/renderWithSupport.function.js +31 -0
- package/js/tag/render/renderWithSupport.function.js.map +1 -0
- package/js/tag/setTagPlaceholder.function.d.ts +4 -0
- package/js/tag/setTagPlaceholder.function.js +12 -0
- package/js/tag/setTagPlaceholder.function.js.map +1 -0
- package/js/tag/tag.d.ts +26 -0
- package/js/tag/tag.js +121 -0
- package/js/tag/tag.js.map +1 -0
- package/js/tag/tagElement.d.ts +9 -0
- package/js/tag/tagElement.js +60 -0
- package/js/tag/tagElement.js.map +1 -0
- package/js/tag/tagRunner.d.ts +5 -0
- package/js/tag/tagRunner.js +28 -0
- package/js/tag/tagRunner.js.map +1 -0
- package/js/tag/update/processNewValue.function.d.ts +3 -0
- package/js/tag/update/processNewValue.function.js +42 -0
- package/js/tag/update/processNewValue.function.js.map +1 -0
- package/js/tag/update/processRegularValue.function.d.ts +5 -0
- package/js/tag/update/processRegularValue.function.js +15 -0
- package/js/tag/update/processRegularValue.function.js.map +1 -0
- package/js/tag/update/processSubjectComponent.function.d.ts +9 -0
- package/js/tag/update/processSubjectComponent.function.js +35 -0
- package/js/tag/update/processSubjectComponent.function.js.map +1 -0
- package/js/tag/update/processSubjectValue.function.d.ts +27 -0
- package/js/tag/update/processSubjectValue.function.js +55 -0
- package/js/tag/update/processSubjectValue.function.js.map +1 -0
- package/js/tag/update/processTag.function.d.ts +11 -0
- package/js/tag/update/processTag.function.js +46 -0
- package/js/tag/update/processTag.function.js.map +1 -0
- package/js/tag/update/processTagArray.d.ts +22 -0
- package/js/tag/update/processTagArray.js +122 -0
- package/js/tag/update/processTagArray.js.map +1 -0
- package/js/tag/update/processTagResult.function.d.ts +11 -0
- package/js/tag/update/processTagResult.function.js +30 -0
- package/js/tag/update/processTagResult.function.js.map +1 -0
- package/js/tag/update/updateContextItem.function.d.ts +3 -0
- package/js/tag/update/updateContextItem.function.js +44 -0
- package/js/tag/update/updateContextItem.function.js.map +1 -0
- package/js/tag/update/updateExistingTagComponent.function.d.ts +5 -0
- package/js/tag/update/updateExistingTagComponent.function.js +116 -0
- package/js/tag/update/updateExistingTagComponent.function.js.map +1 -0
- package/js/tag/update/updateExistingValue.function.d.ts +4 -0
- package/js/tag/update/updateExistingValue.function.js +137 -0
- package/js/tag/update/updateExistingValue.function.js.map +1 -0
- package/js/tag/updates/processNewValue.function.d.ts +3 -0
- package/js/tag/updates/processNewValue.function.js +43 -0
- package/js/tag/updates/processNewValue.function.js.map +1 -0
- package/js/tag.js +1 -1
- package/js/tag.js.map +1 -1
- package/js/tagElement.d.ts +1 -1
- package/js/tagElement.js +1 -1
- package/js/tagElement.js.map +1 -1
- package/js/tagRunner.d.ts +1 -1
- package/js/updateBeforeTemplate.function.d.ts +1 -1
- package/js/updateBeforeTemplate.function.js.map +1 -1
- package/js/updateContextItem.function.d.ts +1 -1
- package/js/updateContextItem.function.js +1 -1
- package/js/updateContextItem.function.js.map +1 -1
- package/js/updateExistingTagComponent.function.d.ts +2 -2
- package/js/updateExistingTagComponent.function.js +3 -3
- package/js/updateExistingTagComponent.function.js.map +1 -1
- package/js/updateExistingValue.function.d.ts +3 -3
- package/js/updateExistingValue.function.js +6 -6
- package/js/updateExistingValue.function.js.map +1 -1
- package/package.json +1 -1
package/js/Props.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type Props =
|
|
1
|
+
export type Props = any[];
|
package/js/Tag.class.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Counts } from './interpolations/interpolateTemplate';
|
|
2
2
|
import { State } from './state';
|
|
3
3
|
import { InterpolatedTemplates } from './interpolations/interpolations';
|
|
4
|
-
import { InterpolateSubject } from './processSubjectValue.function';
|
|
4
|
+
import { InterpolateSubject } from './tag/update/processSubjectValue.function';
|
|
5
5
|
import { TemplaterResult } from './TemplaterResult.class';
|
|
6
6
|
export declare const variablePrefix = "__tagvar";
|
|
7
7
|
export declare const escapeVariable: string;
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
import { Context, Tag } from './Tag.class';
|
|
2
|
-
import { BaseTagSupport, TagSupport } from './TagSupport.class';
|
|
1
|
+
import { Context, Tag } from './tag/Tag.class';
|
|
2
|
+
import { BaseTagSupport, TagSupport } from './tag/TagSupport.class';
|
|
3
3
|
import { Props } from './Props';
|
|
4
|
-
import { TagChildren } from './tag';
|
|
4
|
+
import { TagChildren, TagWrapper } from './tag/tag';
|
|
5
5
|
import { Provider } from './state/providers';
|
|
6
6
|
import { OnDestroyCallback } from './state/onDestroy';
|
|
7
7
|
import { TagSubject } from './subject.types';
|
|
8
8
|
import { OnInitCallback } from './state/onInit';
|
|
9
|
-
import { Subscription } from './subject/
|
|
10
|
-
import { InsertBefore } from './Clones.type';
|
|
9
|
+
import { Subscription } from './subject/subject.utils';
|
|
10
|
+
import { InsertBefore } from './interpolations/Clones.type';
|
|
11
|
+
import { TagValues } from './tag/html';
|
|
12
|
+
export type OriginalFunction = (() => Tag) & {
|
|
13
|
+
compareTo: string;
|
|
14
|
+
};
|
|
11
15
|
export type Wrapper = ((tagSupport: BaseTagSupport, subject: TagSubject) => TagSupport) & {
|
|
12
|
-
|
|
16
|
+
parentWrap: TagWrapper<any>;
|
|
13
17
|
};
|
|
14
18
|
export type TagGlobal = {
|
|
15
19
|
oldest?: TagSupport;
|
|
@@ -28,10 +32,12 @@ export type TagGlobal = {
|
|
|
28
32
|
};
|
|
29
33
|
export declare class TemplaterResult {
|
|
30
34
|
props: Props;
|
|
31
|
-
children: TagChildren;
|
|
32
35
|
isTemplater: boolean;
|
|
33
36
|
tagged: boolean;
|
|
34
37
|
wrapper?: Wrapper;
|
|
38
|
+
madeChildIntoSubject: boolean;
|
|
35
39
|
tag?: Tag;
|
|
36
|
-
|
|
40
|
+
children: TagChildren;
|
|
41
|
+
constructor(props: Props);
|
|
42
|
+
html(strings: string[] | TemplateStringsArray, ...values: TagValues): this;
|
|
37
43
|
}
|
|
@@ -1,13 +1,23 @@
|
|
|
1
|
+
import { Tag } from './tag/Tag.class';
|
|
2
|
+
import { kidsToTagArraySubject } from './tag/tag';
|
|
3
|
+
import { ValueSubject } from './subject';
|
|
1
4
|
export class TemplaterResult {
|
|
2
5
|
props;
|
|
3
|
-
children;
|
|
4
6
|
isTemplater = true;
|
|
5
7
|
tagged;
|
|
6
8
|
wrapper;
|
|
9
|
+
madeChildIntoSubject = false;
|
|
7
10
|
tag;
|
|
8
|
-
|
|
11
|
+
children = new ValueSubject([]);
|
|
12
|
+
constructor(props) {
|
|
9
13
|
this.props = props;
|
|
10
|
-
|
|
14
|
+
}
|
|
15
|
+
html(strings, ...values) {
|
|
16
|
+
const children = new Tag(strings, values);
|
|
17
|
+
const { childSubject, madeSubject } = kidsToTagArraySubject(children);
|
|
18
|
+
this.children = childSubject;
|
|
19
|
+
this.madeChildIntoSubject = madeSubject;
|
|
20
|
+
return this;
|
|
11
21
|
}
|
|
12
22
|
}
|
|
13
23
|
//# sourceMappingURL=TemplaterResult.class.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TemplaterResult.class.js","sourceRoot":"","sources":["../ts/TemplaterResult.class.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TemplaterResult.class.js","sourceRoot":"","sources":["../ts/TemplaterResult.class.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAG9C,OAAO,EAA2B,qBAAqB,EAAE,MAAM,WAAW,CAAA;AAQ1E,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAkCxC,MAAM,OAAO,eAAe;IAUP;IATnB,WAAW,GAAG,IAAI,CAAA;IAClB,MAAM,CAAU;IAChB,OAAO,CAAU;IAEjB,oBAAoB,GAAG,KAAK,CAAA;IAE5B,GAAG,CAAM;IACT,QAAQ,GAAgB,IAAI,YAAY,CAAC,EAAW,CAAC,CAAA;IAErD,YAAmB,KAAY;QAAZ,UAAK,GAAL,KAAK,CAAO;IAAG,CAAC;IAEnC,IAAI,CACF,OAAwC,EACxC,GAAG,MAAiB;QAEpB,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,OAAmB,EAAE,MAAM,CAAC,CAAA;QACrD,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,qBAAqB,CAAC,QAAQ,CAAC,CAAA;QACrE,IAAI,CAAC,QAAQ,GAAG,YAAY,CAAA;QAE5B,IAAI,CAAC,oBAAoB,GAAG,WAAW,CAAA;QACvC,OAAO,IAAI,CAAA;IACb,CAAC;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InsertBefore } from './Clones.type';
|
|
1
|
+
import { InsertBefore } from './interpolations/Clones.type';
|
|
2
2
|
import { Context, ElementBuildOptions } from './Tag.class';
|
|
3
|
-
import { TagSupport } from './TagSupport.class';
|
|
3
|
+
import { TagSupport } from './tag/TagSupport.class';
|
|
4
4
|
export declare function afterInterpolateElement(container: Element, insertBefore: InsertBefore, tagSupport: TagSupport, context: Context, options: ElementBuildOptions): ChildNode[];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare function alterProps(props: Props, ownerSupport: TagSupport): any;
|
|
1
|
+
import { TagSupport } from './tag/TagSupport.class';
|
|
2
|
+
export declare function alterProps(props: unknown, ownerSupport: TagSupport): any;
|
|
4
3
|
export declare function callbackPropOwner(toCall: Function, callWith: any, ownerSupport: TagSupport): any;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { deepClone, deepEqual } from './deepFunctions';
|
|
2
2
|
import { isTag } from './isInstance';
|
|
3
|
-
import { renderTagSupport } from './renderTagSupport.function';
|
|
3
|
+
import { renderTagSupport } from './tag/render/renderTagSupport.function';
|
|
4
4
|
import { setUse } from './state';
|
|
5
|
-
import {
|
|
5
|
+
import { getSupportInCycle } from './tag/getSupportInCycle.function';
|
|
6
6
|
/* Used to rewrite props that are functions. When they are called it should cause parent rendering */
|
|
7
7
|
export function alterProps(props, ownerSupport) {
|
|
8
8
|
const isPropTag = isTag(props);
|
|
@@ -10,11 +10,10 @@ export function alterProps(props, ownerSupport) {
|
|
|
10
10
|
const newProps = resetFunctionProps(watchProps, ownerSupport);
|
|
11
11
|
return newProps;
|
|
12
12
|
}
|
|
13
|
-
function resetFunctionProps(
|
|
14
|
-
if (typeof (
|
|
15
|
-
return
|
|
13
|
+
function resetFunctionProps(newProps, ownerSupport) {
|
|
14
|
+
if (typeof (newProps) !== 'object' || !ownerSupport) {
|
|
15
|
+
return newProps;
|
|
16
16
|
}
|
|
17
|
-
const newProps = props;
|
|
18
17
|
// BELOW: Do not clone because if first argument is object, the memory ref back is lost
|
|
19
18
|
// const newProps = {...props}
|
|
20
19
|
Object.entries(newProps).forEach(([name, value]) => {
|
|
@@ -38,7 +37,7 @@ function resetFunctionProps(props, ownerSupport) {
|
|
|
38
37
|
}
|
|
39
38
|
export function callbackPropOwner(toCall, callWith, ownerSupport) {
|
|
40
39
|
// const renderCount = ownerSupport.global.renderCount
|
|
41
|
-
const cycle =
|
|
40
|
+
const cycle = getSupportInCycle();
|
|
42
41
|
const result = toCall(...callWith);
|
|
43
42
|
const run = () => {
|
|
44
43
|
const lastestOwner = ownerSupport.global.newest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alterProps.function.js","sourceRoot":"","sources":["../ts/alterProps.function.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"alterProps.function.js","sourceRoot":"","sources":["../ts/alterProps.function.ts"],"names":[],"mappings":"AACA,OAAO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IAAG,CAAC,KAAK,EAAE,CAAC;QACV,OAAO,GAAG,EAAE,CAAA;IACd,CAAC;IAED,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;IAExC,OAAO,MAAM,CAAA;AACf,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { InterpolateSubject } from './processSubjectValue.function';
|
|
1
|
+
import { InterpolateSubject } from './tag/update/processSubjectValue.function';
|
|
2
2
|
import { Counts } from './interpolations/interpolateTemplate';
|
|
3
|
-
import { InsertBefore } from './Clones.type';
|
|
4
|
-
import { TagSupport } from './TagSupport.class';
|
|
3
|
+
import { InsertBefore } from './interpolations/Clones.type';
|
|
4
|
+
import { TagSupport } from './tag/TagSupport.class';
|
|
5
5
|
export declare function checkDestroyPrevious(subject: InterpolateSubject, // existing.value is the old value
|
|
6
6
|
newValue: unknown, insertBefore: InsertBefore): false | "array" | 2 | "different-tag" | "changed-simple-value";
|
|
7
7
|
export declare function destroyArrayTag(tagSupport: TagSupport, counts: Counts): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isTag, isTagArray, isTagComponent } from './isInstance';
|
|
2
|
-
import { isLikeTags } from './isLikeTags.function';
|
|
3
|
-
import { destroyTagMemory, destroyTagSupportPast } from './destroyTag.function';
|
|
2
|
+
import { isLikeTags } from './tag/isLikeTags.function';
|
|
3
|
+
import { destroyTagMemory, destroyTagSupportPast } from './tag/destroyTag.function';
|
|
4
4
|
import { insertAfter } from './insertAfter.function';
|
|
5
5
|
export function checkDestroyPrevious(subject, // existing.value is the old value
|
|
6
6
|
newValue, insertBefore) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkDestroyPrevious.function.js","sourceRoot":"","sources":["../ts/checkDestroyPrevious.function.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAGhE,OAAO,EAAE,UAA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IAC9D,MAAM,UAAU,GAAG,YAAY,CAAC,UAAwB,CAAA;IACxD,UAAU,CAAC,WAAW,CAAC,YAAY,CAAC,CAAA;AACtC,CAAC;AAED,SAAS,kBAAkB,CACzB,YAA0B,EAAE,wBAAwB;AACpD,OAAuB;IAEvB,MAAM,KAAK,GAAG,OAAO,CAAC,KAAgB,CAAA;IACtC,MAAM,MAAM,GAAG,KAAK,CAAC,UAAwB,CAAA;IAG7C,+BAA+B;IAC/B,MAAM,CAAC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,CAAA;IACxC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAA;IAEzB,OAAO,OAAO,CAAC,KAAK,CAAA;IACpB,OAAO,OAAO,CAAC,SAAS,CAAA;AAC1B,CAAC;AAED,MAAM,UAAU,gBAAgB,CAC9B,WAAuB;IAEvB,MAAM,YAAY,GAAG,WAAW,CAAC,MAAM,CAAC,YAAuB,CAAA;IAC/D,MAAM,MAAM,GAAG,WAAW,CAAC,MAAM,CAAA;IACjC,MAAM,cAAc,GAAG,MAAM,CAAC,WAAW,CAAA;IACzC,IAAG,cAAc,EAAE,CAAC;QAClB,WAAW,CAAC,YAAY,EAAE,cAAc,CAAC,CAAA;QACzC,OAAO,MAAM,CAAC,WAAW,CAAA;IAC3B,CAAC;AACH,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Tag } from './Tag.class';
|
|
1
|
+
import { Tag } from './tag/Tag.class';
|
|
2
2
|
export declare function cloneValueArray<T>(values: (T | Tag | Tag[])[]): T[];
|
package/js/destroy.support.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { TagSubject } from './subject.types';
|
|
2
|
-
import { TagSupport } from './TagSupport.class';
|
|
2
|
+
import { TagSupport } from './tag/TagSupport.class';
|
|
3
3
|
export declare function destroyTagMemory(oldTagSupport: TagSupport, subject: TagSubject): void;
|
|
4
4
|
export declare function destroyTagSupportPast(oldTagSupport: TagSupport): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Props } from "./Props";
|
|
2
|
-
import { BaseTagSupport } from "./TagSupport.class";
|
|
2
|
+
import { BaseTagSupport } from "./tag/TagSupport.class";
|
|
3
3
|
import { TemplaterResult } from "./TemplaterResult.class";
|
|
4
4
|
export declare function hasTagSupportChanged(oldTagSupport: BaseTagSupport, newTagSupport: BaseTagSupport, newTemplater: TemplaterResult): number | false;
|
|
5
5
|
export declare function hasPropChanges(props: Props, // natural props
|
package/js/index.d.ts
CHANGED
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
export * from "./tag";
|
|
2
|
-
export * from "./html";
|
|
1
|
+
export * from "./tag/tag";
|
|
2
|
+
export * from "./tag/html";
|
|
3
3
|
export * from "./errors";
|
|
4
4
|
export * from "./isInstance";
|
|
5
5
|
export * from "./state/index";
|
|
6
6
|
export * from "./subject/index";
|
|
7
|
-
export * from "./TagSupport.class";
|
|
8
|
-
export * from "./ElementTargetEvent.interface";
|
|
7
|
+
export * from "./tag/TagSupport.class";
|
|
8
|
+
export * from "./interpolations/ElementTargetEvent.interface";
|
|
9
9
|
export * from "./interpolations/interpolateElement";
|
|
10
|
-
export { tagElement } from "./tagElement";
|
|
11
|
-
export { Tag } from "./Tag.class";
|
|
12
|
-
export { runBeforeRender } from "./tagRunner";
|
|
13
|
-
export { renderTagSupport } from "./renderTagSupport.function";
|
|
14
|
-
export { renderWithSupport } from "./renderWithSupport.function";
|
|
15
|
-
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
10
|
+
export { tagElement } from "./tag/tagElement";
|
|
11
|
+
export { Tag } from "./tag/Tag.class";
|
|
12
|
+
export { runBeforeRender } from "./tag/tagRunner";
|
|
13
|
+
export { renderTagSupport } from "./tag/render/renderTagSupport.function";
|
|
14
|
+
export { renderWithSupport } from "./tag/render/renderWithSupport.function";
|
|
15
|
+
export { isLikeValueSets } from "./tag/isLikeTags.function";
|
|
16
|
+
import { renderTagOnly } from "./tag/render/renderTagOnly.function";
|
|
17
|
+
import { renderTagSupport } from "./tag/render/renderTagSupport.function";
|
|
18
|
+
import { renderWithSupport } from "./tag/render/renderWithSupport.function";
|
|
19
|
+
import { tagElement } from "./tag/tagElement";
|
|
18
20
|
export declare const hmr: {
|
|
19
21
|
tagElement: typeof tagElement;
|
|
20
22
|
renderWithSupport: typeof renderWithSupport;
|
|
21
23
|
renderTagSupport: typeof renderTagSupport;
|
|
24
|
+
renderTagOnly: typeof renderTagOnly;
|
|
22
25
|
};
|
package/js/index.js
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
export * from "./tag";
|
|
2
|
-
export * from "./html";
|
|
1
|
+
export * from "./tag/tag";
|
|
2
|
+
export * from "./tag/html";
|
|
3
3
|
export * from "./errors";
|
|
4
4
|
export * from "./isInstance";
|
|
5
5
|
export * from "./state/index";
|
|
6
6
|
export * from "./subject/index";
|
|
7
|
-
export * from "./TagSupport.class";
|
|
8
|
-
export * from "./ElementTargetEvent.interface";
|
|
7
|
+
export * from "./tag/TagSupport.class";
|
|
8
|
+
export * from "./interpolations/ElementTargetEvent.interface";
|
|
9
9
|
export * from "./interpolations/interpolateElement";
|
|
10
|
-
export { tagElement } from "./tagElement";
|
|
11
|
-
export { Tag } from "./Tag.class";
|
|
12
|
-
export { runBeforeRender } from "./tagRunner";
|
|
13
|
-
export { renderTagSupport } from "./renderTagSupport.function";
|
|
14
|
-
export { renderWithSupport } from "./renderWithSupport.function";
|
|
15
|
-
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
10
|
+
export { tagElement } from "./tag/tagElement";
|
|
11
|
+
export { Tag } from "./tag/Tag.class";
|
|
12
|
+
export { runBeforeRender } from "./tag/tagRunner";
|
|
13
|
+
export { renderTagSupport } from "./tag/render/renderTagSupport.function";
|
|
14
|
+
export { renderWithSupport } from "./tag/render/renderWithSupport.function";
|
|
15
|
+
export { isLikeValueSets } from "./tag/isLikeTags.function";
|
|
16
|
+
import { renderTagOnly } from "./tag/render/renderTagOnly.function";
|
|
17
|
+
import { renderTagSupport } from "./tag/render/renderTagSupport.function";
|
|
18
|
+
import { renderWithSupport } from "./tag/render/renderWithSupport.function";
|
|
19
|
+
import { tagElement } from "./tag/tagElement";
|
|
18
20
|
export const hmr = {
|
|
19
21
|
tagElement, renderWithSupport, renderTagSupport,
|
|
22
|
+
renderTagOnly,
|
|
20
23
|
};
|
|
21
24
|
//# sourceMappingURL=index.js.map
|
package/js/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../ts/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../ts/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,+CAA+C,CAAA;AAC7D,cAAc,qCAAqC,CAAA;AAEnD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAA;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAA;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAA;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,UAAU,EAAE,iBAAiB,EAAE,gBAAgB;IAC/C,aAAa;CACd,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InsertBefore } from "./Clones.type";
|
|
1
|
+
import { InsertBefore } from "./interpolations/Clones.type";
|
|
2
2
|
export declare function insertAfter(newNode: InsertBefore, referenceNode: InsertBefore): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Clones.type.js","sourceRoot":"","sources":["../../ts/interpolations/Clones.type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ElementTargetEvent.interface.js","sourceRoot":"","sources":["../../ts/interpolations/ElementTargetEvent.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { InsertBefore } from './Clones.type';
|
|
2
|
+
import { Context, ElementBuildOptions } from '../tag/Tag.class';
|
|
3
|
+
import { TagSupport } from '../tag/TagSupport.class';
|
|
4
|
+
export declare function afterInterpolateElement(container: Element, insertBefore: InsertBefore, tagSupport: TagSupport, context: Context, options: ElementBuildOptions): ChildNode[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { buildClones } from '../render';
|
|
2
|
+
import { afterElmBuild } from './interpolateTemplate';
|
|
3
|
+
export function afterInterpolateElement(container, insertBefore, tagSupport, context, options) {
|
|
4
|
+
const clones = buildClones(container, insertBefore);
|
|
5
|
+
if (!clones.length) {
|
|
6
|
+
return clones;
|
|
7
|
+
}
|
|
8
|
+
clones.forEach(clone => afterElmBuild(clone, options, context, tagSupport));
|
|
9
|
+
tagSupport.clones.push(...clones);
|
|
10
|
+
return clones;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=afterInterpolateElement.function.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"afterInterpolateElement.function.js","sourceRoot":"","sources":["../../ts/interpolations/afterInterpolateElement.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAKrD,MAAM,UAAU,uBAAuB,CACrC,SAAkB,EAClB,YAA0B,EAC1B,UAAsB,EACtB,OAAgB,EAChB,OAA4B;IAE5B,MAAM,MAAM,GAAG,WAAW,CAAC,SAAS,EAAE,YAAY,CAAC,CAAA;IACnD,IAAG,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;QAClB,OAAO,MAAM,CAAA;IACf,CAAC;IAED,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAA;IAC3E,UAAU,CAAC,MAAM,CAAC,IAAI,CAAE,GAAG,MAAM,CAAE,CAAA;IAEnC,OAAO,MAAM,CAAA;AACf,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** File largely responsible for reacting to element events, such as onclick */
|
|
2
|
-
import { TagSupport } from "../TagSupport.class";
|
|
2
|
+
import { TagSupport } from "../tag/TagSupport.class";
|
|
3
3
|
export type Callback = (...args: any[]) => any & {
|
|
4
4
|
isChildOverride?: true;
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** File largely responsible for reacting to element events, such as onclick */
|
|
2
|
-
import { renderTagSupport } from "../renderTagSupport.function";
|
|
2
|
+
import { renderTagSupport } from "../tag/render/renderTagSupport.function";
|
|
3
3
|
export function bindSubjectCallback(value, tagSupport) {
|
|
4
4
|
// Is this children? No override needed
|
|
5
5
|
if (value.isChildOverride) {
|
|
@@ -11,12 +11,14 @@ export function bindSubjectCallback(value, tagSupport) {
|
|
|
11
11
|
return subjectFunction;
|
|
12
12
|
}
|
|
13
13
|
export function runTagCallback(value, tagSupport, bindTo, args) {
|
|
14
|
-
const
|
|
14
|
+
const myGlobal = tagSupport.global;
|
|
15
|
+
const renderCount = myGlobal.renderCount;
|
|
15
16
|
const method = value.bind(bindTo);
|
|
16
17
|
const callbackResult = method(...args);
|
|
17
|
-
const sameRenderCount = renderCount ===
|
|
18
|
+
const sameRenderCount = renderCount === myGlobal.renderCount;
|
|
19
|
+
const skipRender = !sameRenderCount || myGlobal.deleted;
|
|
18
20
|
// already rendered OR tag was deleted before event processing
|
|
19
|
-
if (
|
|
21
|
+
if (skipRender) {
|
|
20
22
|
if (callbackResult instanceof Promise) {
|
|
21
23
|
return callbackResult.then(() => {
|
|
22
24
|
return 'promise-no-data-ever'; // tag was deleted during event processing
|
|
@@ -24,15 +26,15 @@ export function runTagCallback(value, tagSupport, bindTo, args) {
|
|
|
24
26
|
}
|
|
25
27
|
return 'no-data-ever'; // already rendered
|
|
26
28
|
}
|
|
27
|
-
const newest = renderTagSupport(
|
|
28
|
-
|
|
29
|
+
const newest = renderTagSupport(myGlobal.newest, true);
|
|
30
|
+
myGlobal.newest = newest;
|
|
29
31
|
if (callbackResult instanceof Promise) {
|
|
30
32
|
return callbackResult.then(() => {
|
|
31
|
-
if (
|
|
33
|
+
if (myGlobal.deleted) {
|
|
32
34
|
return 'promise-no-data-ever'; // tag was deleted during event processing
|
|
33
35
|
}
|
|
34
|
-
const newest = renderTagSupport(
|
|
35
|
-
|
|
36
|
+
const newest = renderTagSupport(myGlobal.newest, true);
|
|
37
|
+
myGlobal.newest = newest;
|
|
36
38
|
return 'promise-no-data-ever';
|
|
37
39
|
});
|
|
38
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bindSubjectCallback.function.js","sourceRoot":"","sources":["../../ts/interpolations/bindSubjectCallback.function.ts"],"names":[],"mappings":"AAAA,+EAA+E;
|
|
1
|
+
{"version":3,"file":"bindSubjectCallback.function.js","sourceRoot":"","sources":["../../ts/interpolations/bindSubjectCallback.function.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAG/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,y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O,EAAE,CAAC;QACrC,OAAO,cAAc,CAAC,IAAI,CAAC,GAAG,EAAE;YAC9B,IAAG,QAAQ,CAAC,OAAO,EAAE,CAAC;gBACpB,OAAO,sBAAsB,CAAA,CAAC,0CAA0C;YAC1E,CAAC;YAED,MAAM,MAAM,GAAG,gBAAgB,CAC7B,QAAQ,CAAC,MAAoB,EAC7B,IAAI,CACL,CAAA;YAED,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAA;YAExB,OAAO,sBAAsB,CAAA;QAC/B,CAAC,CAAC,CAAA;IACJ,CAAC;IAED,kCAAkC;IAClC,OAAO,cAAc,CAAA;AACvB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Context } from "../Tag.class";
|
|
2
|
-
import { TagSupport } from "../TagSupport.class";
|
|
1
|
+
import { Context } from "../tag/Tag.class";
|
|
2
|
+
import { TagSupport } from "../tag/TagSupport.class";
|
|
3
3
|
export type HowToSet = (element: Element, name: string, value: string) => any;
|
|
4
4
|
export declare function interpolateAttributes(child: Element, scope: Context, ownerSupport: TagSupport): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Clones } from "
|
|
2
|
-
import { TagSupport } from "../TagSupport.class";
|
|
1
|
+
import { Clones } from "./Clones.type";
|
|
2
|
+
import { TagSupport } from "../tag/TagSupport.class";
|
|
3
3
|
import { InterpolateOptions } from "./interpolateElement";
|
|
4
4
|
import { InterpolateComponentResult } from "./interpolateTemplate";
|
|
5
5
|
export type InterpolatedContentTemplates = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InterpolatedContentTemplates } from "./interpolateContentTemplates";
|
|
2
|
-
import { Context, TagTemplate } from "../Tag.class";
|
|
2
|
+
import { Context, TagTemplate } from "../tag/Tag.class";
|
|
3
3
|
import { Counts } from "./interpolateTemplate";
|
|
4
|
-
import { TagSupport } from "../TagSupport.class";
|
|
4
|
+
import { TagSupport } from "../tag/TagSupport.class";
|
|
5
5
|
export type InterpolateOptions = {
|
|
6
6
|
/** make the element go on document */
|
|
7
7
|
forceElement?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { interpolateAttributes } from "./interpolateAttributes";
|
|
2
2
|
import { interpolateToTemplates } from "./interpolations";
|
|
3
3
|
import { interpolateContentTemplates } from "./interpolateContentTemplates";
|
|
4
|
-
import { escapeSearch, variablePrefix } from "../Tag.class";
|
|
4
|
+
import { escapeSearch, variablePrefix } from "../tag/Tag.class";
|
|
5
5
|
/** Review elements within an element */
|
|
6
6
|
export function interpolateElement(container, // element containing innerHTML to review interpolations
|
|
7
7
|
context, // variables used to evaluate
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interpolateElement.js","sourceRoot":"","sources":["../../ts/interpolations/interpolateElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AACzD,OAAO,EAAgC,2BAA2B,EAAE,MAAM,+BAA+B,CAAA;AACzG,OAAO,EAAwB,YAAY,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"interpolateElement.js","sourceRoot":"","sources":["../../ts/interpolations/interpolateElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AACzD,OAAO,EAAgC,2BAA2B,EAAE,MAAM,+BAA+B,CAAA;AACzG,OAAO,EAAwB,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAWrF,wCAAwC;AACxC,MAAM,UAAU,kBAAkB,CAChC,SAAkB,EAAE,wDAAwD;AAC5E,OAAgB,EAAE,6BAA6B;AAC/C,qBAAkC,EAClC,YAAwB,EACxB,OAA2B;IAE3B,MAAM,MAAM,GAAW,EAAE,CAAA;IACzB,MAAM,aAAa,GAAiC,E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OAAO,CAAC,YAAY,EAAE,cAAc,CAAC,CAAA;IACnE,OAAO,MAAM,CAAA;AACf,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Context, ElementBuildOptions } from "../Tag.class";
|
|
1
|
+
import { Context, ElementBuildOptions } from "../tag/Tag.class";
|
|
2
2
|
import { InterpolateOptions } from "./interpolateElement";
|
|
3
|
-
import { Clones, InsertBefore } from "
|
|
4
|
-
import { InterpolateSubject } from "../processSubjectValue.function";
|
|
5
|
-
import { TagSupport } from "../TagSupport.class";
|
|
3
|
+
import { Clones, InsertBefore } from "./Clones.type";
|
|
4
|
+
import { InterpolateSubject } from "../tag/update/processSubjectValue.function";
|
|
5
|
+
import { TagSupport } from "../tag/TagSupport.class";
|
|
6
6
|
export type Template = Element & {
|
|
7
7
|
clone?: any;
|
|
8
8
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { variablePrefix } from "../Tag.class";
|
|
1
|
+
import { variablePrefix } from "../tag/Tag.class";
|
|
2
2
|
import { elementInitCheck } from "./elementInitCheck";
|
|
3
|
-
import { processSubjectValue } from "../processSubjectValue.function";
|
|
3
|
+
import { processSubjectValue } from "../tag/update/processSubjectValue.function";
|
|
4
4
|
import { isTagArray, isTagComponent } from "../isInstance";
|
|
5
5
|
import { scanTextAreaValue } from "./scanTextAreaValue.function";
|
|
6
|
-
import { updateExistingValue } from "../updateExistingValue.function";
|
|
6
|
+
import { updateExistingValue } from "../tag/update/updateExistingValue.function";
|
|
7
|
+
import { swapInsertBefore } from "../tag/setTagPlaceholder.function";
|
|
7
8
|
export function interpolateTemplate(insertBefore, // <template end interpolate /> (will be removed)
|
|
8
9
|
context, // variable scope of {`__tagvar${index}`:'x'}
|
|
9
10
|
ownerSupport, // Tag class
|
|
@@ -39,7 +40,7 @@ options) {
|
|
|
39
40
|
export function subscribeToTemplate(insertBefore, subject, ownerSupport, counts, // used for animation stagger computing
|
|
40
41
|
{ isForceElement }) {
|
|
41
42
|
let called = false;
|
|
42
|
-
const
|
|
43
|
+
const onValue = (value) => {
|
|
43
44
|
if (called) {
|
|
44
45
|
updateExistingValue(subject, value, ownerSupport, insertBefore);
|
|
45
46
|
return;
|
|
@@ -54,7 +55,21 @@ export function subscribeToTemplate(insertBefore, subject, ownerSupport, counts,
|
|
|
54
55
|
}
|
|
55
56
|
called = true;
|
|
56
57
|
};
|
|
58
|
+
let mutatingCallback = onValue;
|
|
59
|
+
const callback = (value) => mutatingCallback(value);
|
|
57
60
|
const sub = subject.subscribe(callback);
|
|
61
|
+
// on subscribe, the Subject did NOT emit immediately. Lets pull the template off the document
|
|
62
|
+
if (insertBefore.parentNode) {
|
|
63
|
+
const clone = subject.clone = swapInsertBefore(insertBefore);
|
|
64
|
+
mutatingCallback = v => {
|
|
65
|
+
const parentNode = clone.parentNode;
|
|
66
|
+
parentNode.insertBefore(insertBefore, clone);
|
|
67
|
+
parentNode.removeChild(clone);
|
|
68
|
+
delete subject.clone;
|
|
69
|
+
mutatingCallback = onValue; // all future calls will just produce value
|
|
70
|
+
onValue(v); // calls for rending
|
|
71
|
+
};
|
|
72
|
+
}
|
|
58
73
|
ownerSupport.global.subscriptions.push(sub);
|
|
59
74
|
}
|
|
60
75
|
export function afterElmBuild(elm, options, context, ownerSupport) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interpolateTemplate.js","sourceRoot":"","sources":["../../ts/interpolations/interpolateTemplate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"interpolateTemplate.js","sourceRoot":"","sources":["../../ts/interpolations/interpolateTemplate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAE/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD,OAAO,EAAqC,mBAAmB,EAAE,MAAM,4CAA4C,CAAA;AACnH,OAAO,EAAE,UAAU,EAAE,c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,OAAO,CAAC,KAAK,CAAA;YACpB,gBAAgB,GAAG,OAAO,CAAA,CAAC,2CAA2C;YACtE,OAAO,CAAC,CAAC,CAAC,CAAA,CAAC,oBAAoB;QACjC,CAAC,CAAA;IACH,CAAC;IAED,YAAY,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AAC7C,CAAC;AAOD,MAAM,UAAU,aAAa,CAC3B,GAAwB,EACxB,OAA4B,EAC5B,OAAgB,EAChB,YAAwB;IAExB,IAAG,CAAE,GAAe,CAAC,YAAY,EAAE,CAAC;QAClC,OAAM;IACR,CAAC;IAED,MAAM,OAAO,GAAG,GAAG,CAAC,QAAQ,CAAA,CAAC,cAAc;IAC3C,IAAG,OAAO,KAAG,UAAU,EAAE,CAAC;QACxB,iBAAiB,CAAC,GAA0B,EAAE,OAAO,EAAE,YAAY,CAAC,CAAA;IACtE,CAAC;IAED,IAAI,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAA;IAC/B,IAAI,GAAG,gBAAgB,CAAC,GAAG,EAAE,OAAO,CAAC,MAAM,CAAC,GAAG,IAAI,CAAA;IAEnD,IAAI,GAAe,CAAC,QAAQ,EAAE,CAAC;QAC7B,IAAI,KAAK,CAAC,GAAI,GAAe,CAAC,QAAe,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;YACtE,MAAM,UAAU,GAAG;gBACjB,GAAG,OAAO;gBACX,MAAM,EAAE,OAAO,CAAC,MAAM;aACtB,CAAA;YAED,OAAO,aAAa,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,YAAY,CAAC,CAAA;QAChE,CAAC,CAAC,CAAA;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Context } from '../Tag.class';
|
|
1
|
+
import { Context } from '../tag/Tag.class';
|
|
2
2
|
import { HowToSet } from './interpolateAttributes';
|
|
3
|
-
import { TagSupport } from '../TagSupport.class';
|
|
3
|
+
import { TagSupport } from '../tag/TagSupport.class';
|
|
4
4
|
export declare function processAttribute(attrName: string, value: string | null, child: Element, scope: Context, ownerSupport: TagSupport, howToSet: HowToSet): void;
|
|
5
5
|
export type NoDisplayValue = false | null | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Context } from '../Tag.class';
|
|
2
|
-
import { TagSupport } from '../TagSupport.class';
|
|
1
|
+
import { Context } from '../tag/Tag.class';
|
|
2
|
+
import { TagSupport } from '../tag/TagSupport.class';
|
|
3
3
|
export declare function scanTextAreaValue(textarea: HTMLTextAreaElement, context: Context, ownerSupport: TagSupport): void;
|
package/js/isInstance.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SubjectLike } from "./subject/
|
|
2
|
-
import { Tag } from "./Tag.class";
|
|
1
|
+
import { SubjectLike } from "./subject/subject.utils";
|
|
2
|
+
import { Tag } from "./tag/Tag.class";
|
|
3
3
|
import { TemplaterResult } from "./TemplaterResult.class";
|
|
4
4
|
export declare function isTagComponent(value?: TemplaterResult | unknown): boolean;
|
|
5
5
|
export declare function isTag(value?: TemplaterResult | Tag | unknown): boolean;
|
package/js/isInstance.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export function isTagComponent(value) {
|
|
2
|
-
return value?.wrapper?.original instanceof Function;
|
|
2
|
+
return value?.wrapper?.parentWrap.original instanceof Function;
|
|
3
3
|
}
|
|
4
4
|
export function isTag(value) {
|
|
5
5
|
return isTagTemplater(value) || isTagClass(value);
|
|
@@ -12,6 +12,7 @@ export function isTagClass(value) {
|
|
|
12
12
|
const templater = value;
|
|
13
13
|
return templater?.isTagClass === true;
|
|
14
14
|
}
|
|
15
|
+
// isSubjectLike
|
|
15
16
|
export function isSubjectInstance(subject) {
|
|
16
17
|
return (subject?.isSubject === true || subject?.subscribe) ? true : false; // subject?.isSubject === true ||
|
|
17
18
|
}
|