taggedjs 2.5.13 → 2.5.15
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 -4784
- package/bundle.js.gz +0 -0
- package/bundle.js.map +1 -1
- package/bundle.js.map.gz +0 -0
- package/js/alterProps.function.d.ts +1 -1
- package/js/alterProps.function.js +6 -6
- package/js/alterProps.function.js.map +1 -1
- package/js/index.d.ts +19 -21
- package/js/index.js +18 -20
- package/js/index.js.map +1 -1
- package/js/insertAfter.function.d.ts +1 -1
- package/js/interpolations/Clones.type.d.ts +1 -1
- package/js/interpolations/afterInterpolateElement.function.d.ts +3 -3
- package/js/interpolations/afterInterpolateElement.function.js +2 -2
- package/js/interpolations/afterInterpolateElement.function.js.map +1 -1
- package/js/interpolations/bindSubjectCallback.function.d.ts +1 -1
- package/js/interpolations/bindSubjectCallback.function.js +1 -1
- package/js/interpolations/bindSubjectCallback.function.js.map +1 -1
- package/js/interpolations/elementInitCheck.d.ts +1 -1
- package/js/interpolations/interpolateAttributes.d.ts +2 -2
- package/js/interpolations/interpolateAttributes.js +1 -1
- package/js/interpolations/interpolateAttributes.js.map +1 -1
- package/js/interpolations/interpolateContentTemplates.d.ts +4 -4
- package/js/interpolations/interpolateContentTemplates.js +1 -1
- package/js/interpolations/interpolateContentTemplates.js.map +1 -1
- package/js/interpolations/interpolateElement.d.ts +5 -5
- package/js/interpolations/interpolateElement.js +4 -4
- package/js/interpolations/interpolateElement.js.map +1 -1
- package/js/interpolations/interpolateTemplate.d.ts +5 -5
- package/js/interpolations/interpolateTemplate.js +8 -8
- package/js/interpolations/interpolateTemplate.js.map +1 -1
- package/js/interpolations/processAttribute.function.d.ts +3 -3
- package/js/interpolations/processAttribute.function.js +3 -3
- package/js/interpolations/processAttribute.function.js.map +1 -1
- package/js/interpolations/scanTextAreaValue.function.d.ts +2 -2
- package/js/interpolations/scanTextAreaValue.function.js +1 -1
- package/js/interpolations/scanTextAreaValue.function.js.map +1 -1
- package/js/isInstance.d.ts +5 -5
- package/js/isInstance.js +12 -8
- package/js/isInstance.js.map +1 -1
- package/js/render.d.ts +1 -1
- package/js/state/callbackMaker.function.js +5 -5
- package/js/state/callbackMaker.function.js.map +1 -1
- package/js/state/children.d.ts +1 -1
- package/js/state/children.js +1 -1
- package/js/state/children.js.map +1 -1
- package/js/state/index.d.ts +12 -12
- package/js/state/index.js +11 -11
- package/js/state/index.js.map +1 -1
- package/js/state/letProp.function.d.ts +1 -1
- package/js/state/letProp.function.js +2 -2
- package/js/state/letProp.function.js.map +1 -1
- package/js/state/letState.function.d.ts +1 -1
- package/js/state/letState.function.js +2 -2
- package/js/state/letState.function.js.map +1 -1
- package/js/state/onDestroy.js +1 -1
- package/js/state/onDestroy.js.map +1 -1
- package/js/state/onInit.js +1 -1
- package/js/state/onInit.js.map +1 -1
- package/js/state/provider.utils.d.ts +1 -1
- package/js/state/provider.utils.js +2 -2
- package/js/state/provider.utils.js.map +1 -1
- package/js/state/providers.d.ts +1 -1
- package/js/state/providers.js +3 -3
- package/js/state/providers.js.map +1 -1
- package/js/state/setUse.function.d.ts +3 -3
- package/js/state/state.function.js +3 -3
- package/js/state/state.function.js.map +1 -1
- package/js/state/state.utils.d.ts +1 -1
- package/js/state/state.utils.js +2 -2
- package/js/state/state.utils.js.map +1 -1
- package/js/state/subject.function.d.ts +2 -2
- package/js/state/subject.function.js +6 -6
- package/js/state/subject.function.js.map +1 -1
- package/js/state/syncStates.function.d.ts +1 -1
- package/js/state/watch.function.d.ts +1 -1
- package/js/state/watch.function.js +6 -25
- package/js/state/watch.function.js.map +1 -1
- package/js/subject/Subject.class.d.ts +8 -4
- package/js/subject/Subject.class.js +46 -15
- package/js/subject/Subject.class.js.map +1 -1
- package/js/subject/ValueSubject.d.ts +4 -3
- package/js/subject/ValueSubject.js +3 -2
- package/js/subject/ValueSubject.js.map +1 -1
- package/js/subject/combineLatest.function.d.ts +1 -1
- package/js/subject/combineLatest.function.js +1 -1
- package/js/subject/combineLatest.function.js.map +1 -1
- package/js/subject/index.d.ts +4 -4
- package/js/subject/index.js +4 -4
- package/js/subject/index.js.map +1 -1
- package/js/subject/subject.utils.d.ts +2 -2
- package/js/subject/subject.utils.js +5 -5
- package/js/subject/subject.utils.js.map +1 -1
- package/js/subject/will.functions.d.ts +1 -1
- package/js/subject.types.d.ts +6 -6
- package/js/tag/Tag.class.d.ts +8 -7
- package/js/tag/Tag.class.js +2 -1
- package/js/tag/Tag.class.js.map +1 -1
- package/js/tag/TagSupport.class.d.ts +10 -10
- package/js/tag/TagSupport.class.js +27 -27
- package/js/tag/TagSupport.class.js.map +1 -1
- package/js/{TemplaterResult.class.d.ts → tag/TemplaterResult.class.d.ts} +13 -13
- package/js/tag/TemplaterResult.class.js +22 -0
- package/js/tag/TemplaterResult.class.js.map +1 -0
- package/js/tag/ValueTypes.enum.d.ts +13 -0
- package/js/tag/ValueTypes.enum.js +15 -0
- package/js/tag/ValueTypes.enum.js.map +1 -0
- package/js/tag/checkDestroyPrevious.function.d.ts +6 -5
- package/js/tag/checkDestroyPrevious.function.js +11 -10
- package/js/tag/checkDestroyPrevious.function.js.map +1 -1
- package/js/tag/cloneValueArray.function.d.ts +1 -1
- package/js/tag/cloneValueArray.function.js +12 -11
- package/js/tag/cloneValueArray.function.js.map +1 -1
- package/js/tag/destroy.support.d.ts +1 -1
- package/js/tag/destroyTag.function.d.ts +1 -1
- package/js/tag/destroyTag.function.js.map +1 -1
- package/js/tag/getSupportInCycle.function.d.ts +1 -1
- package/js/tag/getSupportInCycle.function.js +1 -1
- package/js/tag/getSupportInCycle.function.js.map +1 -1
- package/js/tag/getTagWrap.function.d.ts +6 -0
- package/js/tag/getTagWrap.function.js +67 -0
- package/js/tag/getTagWrap.function.js.map +1 -0
- package/js/tag/hasPropChanges.function.d.ts +1 -1
- package/js/tag/hasPropChanges.function.js +1 -1
- package/js/tag/hasPropChanges.function.js.map +1 -1
- package/js/tag/hasTagSupportChanged.function.d.ts +2 -2
- package/js/tag/hasTagSupportChanged.function.js +1 -1
- package/js/tag/hasTagSupportChanged.function.js.map +1 -1
- package/js/tag/html.d.ts +3 -3
- package/js/tag/html.js +1 -1
- package/js/tag/html.js.map +1 -1
- package/js/tag/index.d.ts +5 -0
- package/js/tag/index.js +6 -0
- package/js/tag/index.js.map +1 -0
- package/js/tag/isLikeTags.function.d.ts +2 -2
- package/js/tag/kidsToTagArraySubject.function.d.ts +5 -0
- package/js/tag/kidsToTagArraySubject.function.js +21 -0
- package/js/tag/kidsToTagArraySubject.function.js.map +1 -0
- package/js/tag/render/renderExistingTag.function.d.ts +2 -2
- package/js/tag/render/renderExistingTag.function.js +3 -3
- package/js/tag/render/renderExistingTag.function.js.map +1 -1
- package/js/tag/render/renderSubjectComponent.function.d.ts +2 -2
- package/js/tag/render/renderSubjectComponent.function.js +1 -1
- package/js/tag/render/renderSubjectComponent.function.js.map +1 -1
- package/js/tag/render/renderTagOnly.function.d.ts +2 -2
- package/js/tag/render/renderTagOnly.function.js +3 -3
- package/js/tag/render/renderTagOnly.function.js.map +1 -1
- package/js/tag/render/renderTagSupport.function.d.ts +1 -1
- package/js/tag/render/renderTagSupport.function.js +2 -2
- package/js/tag/render/renderTagSupport.function.js.map +1 -1
- package/js/tag/render/renderWithSupport.function.d.ts +2 -2
- package/js/tag/render/renderWithSupport.function.js +3 -3
- package/js/tag/render/renderWithSupport.function.js.map +1 -1
- package/js/tag/setTagPlaceholder.function.d.ts +2 -2
- package/js/tag/tag.d.ts +9 -11
- package/js/tag/tag.js +25 -101
- package/js/tag/tag.js.map +1 -1
- package/js/tag/tag.types.d.ts +13 -0
- package/js/tag/tag.types.js +6 -0
- package/js/tag/tag.types.js.map +1 -0
- package/js/tag/tag.utils.d.ts +9 -4
- package/js/tag/tag.utils.js.map +1 -1
- package/js/tag/tagElement.d.ts +3 -3
- package/js/tag/tagElement.js +4 -4
- package/js/tag/tagElement.js.map +1 -1
- package/js/tag/tagRunner.d.ts +1 -1
- package/js/tag/tagRunner.js +3 -3
- package/js/tag/tagRunner.js.map +1 -1
- package/js/tag/update/ValueTypes.enum.d.ts +13 -0
- package/js/tag/update/ValueTypes.enum.js +15 -0
- package/js/tag/update/ValueTypes.enum.js.map +1 -0
- package/js/tag/update/processFirstSubject.utils.d.ts +11 -23
- package/js/tag/update/processFirstSubject.utils.js +28 -37
- package/js/tag/update/processFirstSubject.utils.js.map +1 -1
- package/js/tag/update/processFirstSubjectValue.function.d.ts +7 -4
- package/js/tag/update/processFirstSubjectValue.function.js +25 -22
- package/js/tag/update/processFirstSubjectValue.function.js.map +1 -1
- package/js/tag/update/processNewValue.function.d.ts +2 -2
- package/js/tag/update/processNewValue.function.js +5 -4
- package/js/tag/update/processNewValue.function.js.map +1 -1
- package/js/tag/update/processRegularValue.function.d.ts +1 -1
- package/js/tag/update/processRegularValue.function.js +1 -1
- package/js/tag/update/processRegularValue.function.js.map +1 -1
- package/js/tag/update/processSubjectComponent.function.d.ts +5 -5
- package/js/tag/update/processSubjectComponent.function.js +4 -4
- package/js/tag/update/processSubjectComponent.function.js.map +1 -1
- package/js/tag/update/processTag.function.d.ts +6 -6
- package/js/tag/update/processTag.function.js +11 -11
- package/js/tag/update/processTag.function.js.map +1 -1
- package/js/tag/update/processTagArray.d.ts +6 -6
- package/js/tag/update/processTagArray.js +6 -6
- package/js/tag/update/processTagArray.js.map +1 -1
- package/js/tag/update/processTagResult.function.d.ts +5 -5
- package/js/tag/update/updateContextItem.function.d.ts +2 -2
- package/js/tag/update/updateContextItem.function.js +5 -3
- package/js/tag/update/updateContextItem.function.js.map +1 -1
- package/js/tag/update/updateExistingTagComponent.function.d.ts +3 -3
- package/js/tag/update/updateExistingTagComponent.function.js +8 -8
- package/js/tag/update/updateExistingTagComponent.function.js.map +1 -1
- package/js/tag/update/updateExistingValue.function.d.ts +3 -3
- package/js/tag/update/updateExistingValue.function.js +14 -15
- package/js/tag/update/updateExistingValue.function.js.map +1 -1
- package/js/updateBeforeTemplate.function.d.ts +2 -2
- package/package.json +2 -1
- package/js/TemplaterResult.class.js +0 -23
- package/js/TemplaterResult.class.js.map +0 -1
- package/js/tag/update/processSubjectValue.function.d.ts +0 -7
- package/js/tag/update/processSubjectValue.function.js +0 -31
- package/js/tag/update/processSubjectValue.function.js.map +0 -1
package/bundle.js.map.gz
ADDED
|
Binary file
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TagSupport } from './tag/TagSupport.class';
|
|
1
|
+
import { TagSupport } from './tag/TagSupport.class.js';
|
|
2
2
|
export declare function alterProps(props: unknown, ownerSupport: TagSupport): any;
|
|
3
3
|
export declare function callbackPropOwner(toCall: Function, callWith: any, ownerSupport: TagSupport): any;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { deepClone, deepEqual } from './deepFunctions';
|
|
2
|
-
import {
|
|
3
|
-
import { renderTagSupport } from './tag/render/renderTagSupport.function';
|
|
4
|
-
import { setUse } from './state';
|
|
5
|
-
import { getSupportInCycle } from './tag/getSupportInCycle.function';
|
|
1
|
+
import { deepClone, deepEqual } from './deepFunctions.js';
|
|
2
|
+
import { isStaticTag } from './isInstance.js';
|
|
3
|
+
import { renderTagSupport } from './tag/render/renderTagSupport.function.js';
|
|
4
|
+
import { setUse } from './state/index.js';
|
|
5
|
+
import { getSupportInCycle } from './tag/getSupportInCycle.function.js';
|
|
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
|
-
const isPropTag =
|
|
8
|
+
const isPropTag = isStaticTag(props);
|
|
9
9
|
const watchProps = isPropTag ? 0 : props;
|
|
10
10
|
const newProps = resetFunctionProps(watchProps, ownerSupport);
|
|
11
11
|
return newProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alterProps.function.js","sourceRoot":"","sources":["../ts/alterProps.function.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":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AM,CAAA;IACf,CAAC,CAAA;IAED,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"}
|
package/js/index.d.ts
CHANGED
|
@@ -1,27 +1,25 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { renderWithSupport } from "./tag/render/renderWithSupport.function";
|
|
20
|
-
import { tagElement } from "./tag/tagElement";
|
|
1
|
+
export * from './tag/index.js';
|
|
2
|
+
export * from './errors.js';
|
|
3
|
+
export * from './isInstance.js';
|
|
4
|
+
export * from './state/index.js';
|
|
5
|
+
export * from './subject/index.js';
|
|
6
|
+
export * from './tag/TagSupport.class.js';
|
|
7
|
+
export * from './interpolations/ElementTargetEvent.interface.js';
|
|
8
|
+
export * from './interpolations/interpolateElement.js';
|
|
9
|
+
export { tagElement } from './tag/tagElement.js';
|
|
10
|
+
export { Tag, variablePrefix } from './tag/Tag.class.js';
|
|
11
|
+
export { runBeforeRender } from './tag/tagRunner.js';
|
|
12
|
+
export { renderTagSupport } from './tag/render/renderTagSupport.function.js';
|
|
13
|
+
export { renderWithSupport } from './tag/render/renderWithSupport.function.js';
|
|
14
|
+
export { isLikeValueSets } from './tag/isLikeTags.function.js';
|
|
15
|
+
import { renderTagOnly } from './tag/render/renderTagOnly.function.js';
|
|
16
|
+
import { renderTagSupport } from './tag/render/renderTagSupport.function.js';
|
|
17
|
+
import { renderWithSupport } from './tag/render/renderWithSupport.function.js';
|
|
18
|
+
import { tagElement } from './tag/tagElement.js';
|
|
21
19
|
export declare const hmr: {
|
|
22
20
|
tagElement: typeof tagElement;
|
|
23
21
|
renderWithSupport: typeof renderWithSupport;
|
|
24
22
|
renderTagSupport: typeof renderTagSupport;
|
|
25
23
|
renderTagOnly: typeof renderTagOnly;
|
|
26
24
|
};
|
|
27
|
-
export { Wrapper } from './TemplaterResult.class';
|
|
25
|
+
export { type Wrapper } from './tag/TemplaterResult.class.js';
|
package/js/index.js
CHANGED
|
@@ -1,23 +1,21 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { renderWithSupport } from "./tag/render/renderWithSupport.function";
|
|
20
|
-
import { tagElement } from "./tag/tagElement";
|
|
1
|
+
export * from './tag/index.js';
|
|
2
|
+
export * from './errors.js';
|
|
3
|
+
export * from './isInstance.js';
|
|
4
|
+
export * from './state/index.js';
|
|
5
|
+
export * from './subject/index.js';
|
|
6
|
+
export * from './tag/TagSupport.class.js';
|
|
7
|
+
export * from './interpolations/ElementTargetEvent.interface.js';
|
|
8
|
+
export * from './interpolations/interpolateElement.js';
|
|
9
|
+
export { tagElement } from './tag/tagElement.js';
|
|
10
|
+
export { Tag, variablePrefix } from './tag/Tag.class.js';
|
|
11
|
+
export { runBeforeRender } from './tag/tagRunner.js';
|
|
12
|
+
export { renderTagSupport } from './tag/render/renderTagSupport.function.js';
|
|
13
|
+
export { renderWithSupport } from './tag/render/renderWithSupport.function.js';
|
|
14
|
+
export { isLikeValueSets } from './tag/isLikeTags.function.js';
|
|
15
|
+
import { renderTagOnly } from './tag/render/renderTagOnly.function.js';
|
|
16
|
+
import { renderTagSupport } from './tag/render/renderTagSupport.function.js';
|
|
17
|
+
import { renderWithSupport } from './tag/render/renderWithSupport.function.js';
|
|
18
|
+
import { tagElement } from './tag/tagElement.js';
|
|
21
19
|
export const hmr = {
|
|
22
20
|
tagElement, renderWithSupport, renderTagSupport,
|
|
23
21
|
renderTagOnly,
|
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,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,2BAA2B,CAAA;AACzC,cAAc,kDAAkD,CAAA;AAChE,cAAc,wCAAwC,CAAA;AAEtD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAA;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAA;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAE9D,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAA;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAA;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAA;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,UAAU,EAAE,iBAAiB,EAAE,gBAAgB;IAC/C,aAAa;CACd,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InsertBefore } from
|
|
1
|
+
import { InsertBefore } from './interpolations/Clones.type.js';
|
|
2
2
|
export declare function insertAfter(newNode: InsertBefore, referenceNode: InsertBefore): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InsertBefore } from './Clones.type';
|
|
2
|
-
import { Context, ElementBuildOptions } from '../tag/Tag.class';
|
|
3
|
-
import { TagSupport } from '../tag/TagSupport.class';
|
|
1
|
+
import { InsertBefore } from './Clones.type.js';
|
|
2
|
+
import { Context, ElementBuildOptions } from '../tag/Tag.class.js';
|
|
3
|
+
import { TagSupport } from '../tag/TagSupport.class.js';
|
|
4
4
|
export declare function afterInterpolateElement(container: DocumentFragment, insertBefore: InsertBefore, tagSupport: TagSupport, context: Context, options: ElementBuildOptions): ChildNode[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { buildClones } from '../render';
|
|
2
|
-
import { afterElmBuild } from './interpolateTemplate';
|
|
1
|
+
import { buildClones } from '../render.js';
|
|
2
|
+
import { afterElmBuild } from './interpolateTemplate.js';
|
|
3
3
|
export function afterInterpolateElement(container, insertBefore, tagSupport, context, options) {
|
|
4
4
|
const clones = buildClones(container, insertBefore);
|
|
5
5
|
if (!clones.length) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"afterInterpolateElement.function.js","sourceRoot":"","sources":["../../ts/interpolations/afterInterpolateElement.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"afterInterpolateElement.function.js","sourceRoot":"","sources":["../../ts/interpolations/afterInterpolateElement.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAKxD,MAAM,UAAU,uBAAuB,CACrC,SAA2B,EAC3B,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,KAAK,IAAI,KAAK,GAAG,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,KAAK,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC;QACxD,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;QAC3B,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,CAAC,CAAA;QAClD,UAAU,CAAC,MAAM,CAAC,IAAI,CAAE,KAAK,CAAE,CAAA;IACjC,CAAC;IAED,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
|
|
2
|
+
import { TagSupport } from '../tag/TagSupport.class.js';
|
|
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
|
|
2
|
+
import { renderTagSupport } from '../tag/render/renderTagSupport.function.js';
|
|
3
3
|
export function bindSubjectCallback(value, tagSupport) {
|
|
4
4
|
// Is this children? No override needed
|
|
5
5
|
if (value.isChildOverride) {
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
1
|
+
{"version":3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M,GAAG,gBAAgB,CAC7B,QAAQ,CAAC,MAAoB,EAC7B,IAAI,CACL,CAAA;IAED,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAA;IAExB,IAAG,cAAc,YAAY,OAAO,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,2 +1,2 @@
|
|
|
1
|
-
import { Counts } from
|
|
1
|
+
import { Counts } from './interpolateTemplate.js';
|
|
2
2
|
export declare function elementInitCheck(nextSibling: Element | ChildNode, counts: Counts): number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Context } from
|
|
2
|
-
import { TagSupport } from
|
|
1
|
+
import { Context } from '../tag/Tag.class.js';
|
|
2
|
+
import { TagSupport } from '../tag/TagSupport.class.js';
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interpolateAttributes.js","sourceRoot":"","sources":["../../ts/interpolations/interpolateAttributes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"interpolateAttributes.js","sourceRoot":"","sources":["../../ts/interpolations/interpolateAttributes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AAIjE,SAAS,iBAAiB,CACxB,OAAgB,EAChB,IAAY,EACZ,KAAa;IAEb,OAAO,CAAC,YAAY,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;AACnC,CAAC;AAED,SAAS,kBAAkB,CACzB,OAAgB,EAChB,IAAY,EACZ,KAAa;IAEZ,OAAe,CAAC,IAAI,CAAC,GAAG,KAAK,CAAA;AAChC,CAAC;AAED,MAAM,UAAU,qBAAqB,CACnC,KAAc,EACd,KAAc,EACd,YAAwB;IAExB,MAAM,SAAS,GAAG,KAAK,CAAC,iBAAiB,EAAE,CAAA;IAE3C,IAAI,QAAQ,GAAG,iBAAiB,CAAA;IAEhC,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC;QACtD,MAAM,QAAQ,GAAG,SAAS,CAAC,KAAK,CAAC,CAAA;QACjC,IAAG,KAAK,CAAC,QAAQ,KAAK,OAAO,IAAI,QAAQ,KAAK,OAAO,EAAE,CAAC;YACtD,QAAQ,GAAG,kBAAkB,CAAA;QAC/B,CAAC;QAED,MAAM,KAAK,GAAG,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAA;QAC1C,gBAAgB,CAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAA;QAEvE,QAAQ,GAAG,iBAAiB,CAAA,CAAC,WAAW;IAC1C,CAAC;AACH,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Clones } from
|
|
2
|
-
import { TagSupport } from
|
|
3
|
-
import { InterpolateOptions } from
|
|
4
|
-
import { InterpolateComponentResult } from
|
|
1
|
+
import { Clones } from './Clones.type.js';
|
|
2
|
+
import { TagSupport } from '../tag/TagSupport.class.js';
|
|
3
|
+
import { InterpolateOptions } from './interpolateElement.js';
|
|
4
|
+
import { InterpolateComponentResult } from './interpolateTemplate.js';
|
|
5
5
|
export type InterpolatedContentTemplates = {
|
|
6
6
|
clones: Clones;
|
|
7
7
|
tagComponents: InterpolateComponentResult[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { interpolateTemplate } from
|
|
1
|
+
import { interpolateTemplate } from './interpolateTemplate.js';
|
|
2
2
|
export function interpolateContentTemplates(context, tagSupport, options, children) {
|
|
3
3
|
// counting for animation stagger computing
|
|
4
4
|
const counts = options.counts;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interpolateContentTemplates.js","sourceRoot":"","sources":["../../ts/interpolations/interpolateContentTemplates.ts"],"names":[],"mappings":"AAGA,OAAO,EAAwC,mBAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"interpolateContentTemplates.js","sourceRoot":"","sources":["../../ts/interpolations/interpolateContentTemplates.ts"],"names":[],"mappings":"AAGA,OAAO,EAAwC,mBAAmB,EAAE,MAAK,0BAA0B,CAAA;AAOnG,MAAM,UAAU,2BAA2B,CACzC,OAAY,EACZ,UAAsB,EACtB,OAA2B,EAC3B,QAAwB;IAExB,2CAA2C;IAC3C,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAA;IAC7B,MAAM,MAAM,GAAW,EAAE,CAAA;IACzB,MAAM,aAAa,GAAiC,EAAE,CAAA;IACtD,MAAM,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAA;IACnC,KAAK,IAAI,KAAK,GAAC,WAAW,GAAC,CAAC,EAAE,KAAK,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC;QAClD,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;QAC7B,MAAM,EAAC,MAAM,EAAE,UAAU,EAAE,YAAY,EAAC,GAAG,mBAAmB,CAC5D,KAAiB,EACjB,OAAO,EACP,UAAU,EACV,MAAM,EACN,OAAO,CACR,CAAA;QAED,MAAM,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC,CAAA;QAE1B,IAAG,YAAY,EAAE,CAA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|
1
|
-
import { InterpolatedContentTemplates } from
|
|
2
|
-
import { Context, TagTemplate } from
|
|
3
|
-
import { Counts } from
|
|
4
|
-
import { TagSupport } from
|
|
1
|
+
import { InterpolatedContentTemplates } from './interpolateContentTemplates.js';
|
|
2
|
+
import { Context, TagTemplate } from '../tag/Tag.class.js';
|
|
3
|
+
import { Counts } from './interpolateTemplate.js';
|
|
4
|
+
import { TagSupport } from '../tag/TagSupport.class.js';
|
|
5
5
|
export type InterpolateOptions = {
|
|
6
6
|
counts: Counts;
|
|
7
7
|
};
|
|
@@ -9,4 +9,4 @@ export type InterpolateOptions = {
|
|
|
9
9
|
export declare function interpolateElement(container: DocumentFragment, // element containing innerHTML to review interpolations
|
|
10
10
|
context: Context, // variables used to evaluate
|
|
11
11
|
interpolatedTemplates: TagTemplate, ownerSupport: TagSupport, options: InterpolateOptions): InterpolatedContentTemplates;
|
|
12
|
-
export declare function interpolateString(string: string): import("./interpolations").InterpolatedTemplates;
|
|
12
|
+
export declare function interpolateString(string: string): import("./interpolations.js").InterpolatedTemplates;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { interpolateAttributes } from
|
|
2
|
-
import { interpolateToTemplates } from
|
|
3
|
-
import { interpolateContentTemplates } from
|
|
4
|
-
import { escapeSearch, variablePrefix } from
|
|
1
|
+
import { interpolateAttributes } from './interpolateAttributes.js';
|
|
2
|
+
import { interpolateToTemplates } from './interpolations.js';
|
|
3
|
+
import { interpolateContentTemplates } from './interpolateContentTemplates.js';
|
|
4
|
+
import { escapeSearch, variablePrefix } from '../tag/Tag.class.js';
|
|
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,
|
|
1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B,CAChC,QAAwB,EACxB,OAAgB,EAChB,YAAwB;IAExB,KAAK,IAAI,KAAK,GAAC,QAAQ,CAAC,MAAM,GAAC,CAAC,EAAE,KAAK,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC;QACtD,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;QAC7B,qBAAqB,CAAC,KAAK,EAAE,OAAO,EAAE,YAAY,CAAC,CAAA;QAEnD,IAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;YAClB,yBAAyB,CAAC,KAAK,CAAC,QAAQ,EAAE,OAAO,EAAE,YAAY,CAAC,CAAA;QAClE,CAAC;IACH,CAAC;AACH,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,MAAc;IAC9C,MAAM,MAAM,GAAG,sBAAsB,CAAC,MAAM,CAAC,CAAA;IAC7C,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,YAAY,EAAE,cAAc,CAAC,CAAA;IACnE,OAAO,MAAM,CAAA;AACf,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Context, ElementBuildOptions } from
|
|
2
|
-
import { InterpolateOptions } from
|
|
3
|
-
import { Clones, InsertBefore } from
|
|
4
|
-
import { InterpolateSubject } from
|
|
5
|
-
import { TagSupport } from
|
|
1
|
+
import { Context, ElementBuildOptions } from '../tag/Tag.class.js';
|
|
2
|
+
import { InterpolateOptions } from './interpolateElement.js';
|
|
3
|
+
import { Clones, InsertBefore } from './Clones.type.js';
|
|
4
|
+
import { InterpolateSubject } from '../tag/update/processFirstSubject.utils.js';
|
|
5
|
+
import { TagSupport } from '../tag/TagSupport.class.js';
|
|
6
6
|
export type Template = Element & {
|
|
7
7
|
clone?: any;
|
|
8
8
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { variablePrefix } from
|
|
2
|
-
import { elementInitCheck } from
|
|
3
|
-
import { processFirstSubjectValue } from
|
|
4
|
-
import { isTagArray, isTagComponent } from
|
|
5
|
-
import { scanTextAreaValue } from
|
|
6
|
-
import { updateExistingValue } from
|
|
7
|
-
import { swapInsertBefore } from
|
|
1
|
+
import { variablePrefix } from '../tag/Tag.class.js';
|
|
2
|
+
import { elementInitCheck } from './elementInitCheck.js';
|
|
3
|
+
import { processFirstSubjectValue } from '../tag/update/processFirstSubjectValue.function.js';
|
|
4
|
+
import { isTagArray, isTagComponent } from '../isInstance.js';
|
|
5
|
+
import { scanTextAreaValue } from './scanTextAreaValue.function.js';
|
|
6
|
+
import { updateExistingValue } from '../tag/update/updateExistingValue.function.js';
|
|
7
|
+
import { swapInsertBefore } from '../tag/setTagPlaceholder.function.js';
|
|
8
8
|
export function interpolateTemplate(insertBefore, // <template end interpolate /> (will be removed)
|
|
9
9
|
context, // variable scope of {`__tagvar${index}`:'x'}
|
|
10
10
|
ownerSupport, // Tag class
|
|
@@ -20,7 +20,7 @@ options) {
|
|
|
20
20
|
return { clones }; // ignore, not a tagVar
|
|
21
21
|
}
|
|
22
22
|
const existingSubject = context[variableName];
|
|
23
|
-
const isDynamic = isTagComponent(existingSubject.
|
|
23
|
+
const isDynamic = isTagComponent(existingSubject._value) || isTagArray(existingSubject.value);
|
|
24
24
|
// process dynamics later
|
|
25
25
|
if (isDynamic) {
|
|
26
26
|
return {
|
|
@@ -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,qBAAqB,CAAA;AAElF,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAGxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,oDAAoD,CAAA;AAC7F,O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,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,MAAM,QAAQ,GAAI,GAAe,CAAC,QAAe,CAAA;QACjD,KAAK,IAAI,KAAK,GAAG,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,KAAK,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC;YAC1D,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;YAC7B,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;IACH,CAAC;AACH,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Context } from '../tag/Tag.class';
|
|
2
|
-
import { HowToSet } from './interpolateAttributes';
|
|
3
|
-
import { TagSupport } from '../tag/TagSupport.class';
|
|
1
|
+
import { Context } from '../tag/Tag.class.js';
|
|
2
|
+
import { HowToSet } from './interpolateAttributes.js';
|
|
3
|
+
import { TagSupport } from '../tag/TagSupport.class.js';
|
|
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,6 +1,6 @@
|
|
|
1
|
-
import { inputAttribute } from './inputAttribute';
|
|
2
|
-
import { isSubjectInstance } from '../isInstance';
|
|
3
|
-
import { bindSubjectCallback } from './bindSubjectCallback.function';
|
|
1
|
+
import { inputAttribute } from './inputAttribute.js';
|
|
2
|
+
import { isSubjectInstance } from '../isInstance.js';
|
|
3
|
+
import { bindSubjectCallback } from './bindSubjectCallback.function.js';
|
|
4
4
|
const startRegX = /^\s*{__tagvar/;
|
|
5
5
|
const endRegX = /}\s*$/;
|
|
6
6
|
function isTagVar(value) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processAttribute.function.js","sourceRoot":"","sources":["../../ts/interpolations/processAttribute.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"processAttribute.function.js","sourceRoot":"","sources":["../../ts/interpolations/processAttribute.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAGpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AAGvE,MAAM,SAAS,GAAG,eAAe,CAAA;AACjC,MAAM,OAAO,GAAG,OAAO,CAAA;AACvB,SAAS,QAAQ,CAAC,KAAoB;IACpC,OAAO,KAAK,IAAI,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;AAC5E,CAAC;AAED,MAAM,UAAU,gBAAgB,CAC9B,QAAgB,EAChB,KAAoB,EACpB,KAAc,EACd,KAAc,EACd,YAAwB,EACxB,QA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AAQ,EAAE,MAAM,CAAC,CAAA;IACjC,6CAA6C;IAC7C,OAAM;AACR,CAAC;AAKD,SAAS,4BAA4B,CACnC,YAA2C,EAC3C,KAAc,EACd,QAAgB,EAChB,SAAkB,EAClB,QAAkB;IAElB,IAAG,YAAY,YAAY,QAAQ,EAAE,CAAC;QACpC,MAAM,GAAG,GAAG,UAAS,GAAG,IAAW;YACjC,OAAO,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;QAClC,CAAC,CAAA;QAED,8BAA8B;QAC9B,GAAG,CAAC,WAAW,GAAG,YAAY,CAE7B;QAAC,KAAa,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAA;QAE/B,OAAM;IACR,CAAC;IAED,IAAI,SAAS,EAAE,CAAC;QACd,cAAc,CAAC,QAAQ,EAAE,YAAY,EAAE,KAAK,CAAC,CAAA;QAC7C,OAAM;IACR,CAAC;IAED,IAAG,YAAY,EAAE,CAAC;QAChB,QAAQ,CAAC,KAAK,EAAE,QAAQ,EAAE,YAAsB,CAAC,CAAA;QACjD,OAAM;IACR,CAAC;IAED,MAAM,WAAW,GAAG,CAAC,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,QAAQ,CAAC,YAA8B,CAAC,CAAA;IACrF,IAAG,WAAW,EAAE,CAAC;QACf,KAAK,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAA;QAC/B,OAAM;IACR,CAAC;IAED,aAAa;IACb,QAAQ,CAAC,KAAK,EAAE,QAAQ,EAAE,YAAsB,CAAC,CAAA;AACnD,CAAC;AAED,uDAAuD;AACvD,SAAS,aAAa,CACpB,QAAyB;IAEzB,OAAO,QAAQ,CAAC,MAAM,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAA;AACnD,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Context } from '../tag/Tag.class';
|
|
2
|
-
import { TagSupport } from '../tag/TagSupport.class';
|
|
1
|
+
import { Context } from '../tag/Tag.class.js';
|
|
2
|
+
import { TagSupport } from '../tag/TagSupport.class.js';
|
|
3
3
|
export declare function scanTextAreaValue(textarea: HTMLTextAreaElement, context: Context, ownerSupport: TagSupport): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { processAttribute } from './processAttribute.function';
|
|
1
|
+
import { processAttribute } from './processAttribute.function.js';
|
|
2
2
|
const search = new RegExp('\\s*<template interpolate end id="__tagvar(\\d{1,4})"([^>]*)></template>(\\s*)');
|
|
3
3
|
export function scanTextAreaValue(textarea, context, ownerSupport) {
|
|
4
4
|
const value = textarea.value;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scanTextAreaValue.function.js","sourceRoot":"","sources":["../../ts/interpolations/scanTextAreaValue.function.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"scanTextAreaValue.function.js","sourceRoot":"","sources":["../../ts/interpolations/scanTextAreaValue.function.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AAEjE,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,gFAAgF,CAAC,CAAA;AAE3G,MAAM,UAAU,iBAAiB,CAC/B,QAA6B,EAC7B,OAAgB,EAChB,YAAwB;IAExB,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAA;IAC5B,IAAI,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,IAAG,CAAC,EAAG,CAAC;QAC9B,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAC/C,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;QACnC,MAAM,OAAO,GAAG,GAAG,GAAG,KAAK,GAAG,GAAG,CAAA;QACjC,QAAQ,CAAC,KAAK,GAAG,EAAE,CAAA;QACnB,QAAQ,CAAC,YAAY,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAA;QAEhD,MAAM,QAAQ,GAAa,CAAC,IAAI,EAAE,KAAK,EAAE,KAAa,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,GAAG,KAAK,CAAA;QAEjF,gBAAgB,CACd,gBAAgB,EAChB,OAAO,EAAE,sCAAsC;QAC/C,QAAQ,EACR,OAAO,EACP,YAAY,EACZ,QAAQ,CACT,CAAA;IACH,CAAC;AACH,CAAC"}
|
package/js/isInstance.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { SubjectLike } from
|
|
2
|
-
import { Tag } from
|
|
3
|
-
import { TemplaterResult } from
|
|
4
|
-
export declare function
|
|
1
|
+
import { SubjectLike } from './subject/subject.utils.js';
|
|
2
|
+
import { Tag } from './tag/Tag.class.js';
|
|
3
|
+
import { TemplaterResult } from './tag/TemplaterResult.class.js';
|
|
4
|
+
export declare function isStaticTag(value?: TemplaterResult | Tag | unknown): boolean;
|
|
5
5
|
export declare function isTagTemplater(value?: TemplaterResult | unknown): boolean;
|
|
6
6
|
export declare function isTagComponent(value?: TemplaterResult | unknown): boolean;
|
|
7
7
|
export declare function isTagClass(value?: Tag | unknown): boolean;
|
|
8
8
|
export declare function isSubjectInstance(subject?: SubjectLike<any> | any): Boolean;
|
|
9
|
-
export declare function isTagArray(value:
|
|
9
|
+
export declare function isTagArray(value: unknown): boolean;
|
package/js/isInstance.js
CHANGED
|
@@ -1,23 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { ValueTypes } from './tag/ValueTypes.enum.js';
|
|
2
|
+
export function isStaticTag(value) {
|
|
3
|
+
return [
|
|
4
|
+
ValueTypes.tag,
|
|
5
|
+
ValueTypes.templater,
|
|
6
|
+
].includes(value?.tagJsType);
|
|
3
7
|
}
|
|
4
8
|
export function isTagTemplater(value) {
|
|
5
|
-
|
|
6
|
-
return templater?.isTemplater === true && templater.wrapper === undefined;
|
|
9
|
+
return value?.tagJsType === ValueTypes.templater;
|
|
7
10
|
}
|
|
8
11
|
// TODO: whats the difference between isTagClass and isTagComponent
|
|
9
12
|
export function isTagComponent(value) {
|
|
10
|
-
return value?.
|
|
13
|
+
return value?.tagJsType === ValueTypes.tagComponent;
|
|
11
14
|
}
|
|
12
15
|
export function isTagClass(value) {
|
|
13
|
-
|
|
14
|
-
return templater?.isTagClass === true;
|
|
16
|
+
return value?.tagJsType === ValueTypes.tag;
|
|
15
17
|
}
|
|
16
18
|
// isSubjectLike
|
|
17
19
|
export function isSubjectInstance(subject) {
|
|
18
20
|
return (subject?.isSubject === true || subject?.subscribe) ? true : false; // subject?.isSubject === true ||
|
|
19
21
|
}
|
|
20
22
|
export function isTagArray(value) {
|
|
21
|
-
return value instanceof Array && value.every(x =>
|
|
23
|
+
return value instanceof Array && value.every(x => [
|
|
24
|
+
ValueTypes.tag, ValueTypes.templater, ValueTypes.tag, ValueTypes.tagComponent
|
|
25
|
+
].includes(x?.tagJsType));
|
|
22
26
|
}
|
|
23
27
|
//# sourceMappingURL=isInstance.js.map
|
package/js/isInstance.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isInstance.js","sourceRoot":"","sources":["../ts/isInstance.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"isInstance.js","sourceRoot":"","sources":["../ts/isInstance.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAErD,MAAM,UAAU,WAAW,CACzB,KAAuC;IAEvC,OAAO;QACL,UAAU,CAAC,GAAG;QACd,UAAU,CAAC,SAAS;KACrB,CAAC,QAAQ,CAAG,KAAa,EAAE,SAAS,CAAE,CAAA;AACzC,CAAC;AAED,MAAM,UAAU,cAAc,CAC5B,KAAiC;IAEjC,OAAQ,KAAyB,EAAE,SAAS,KAAK,UAAU,CAAC,SAAS,CAAA;AACvE,CAAC;AAED,mEAAmE;AACnE,MAAM,UAAU,cAAc,CAC5B,KAAiC;IAEjC,OAAQ,KAAyB,EAAE,SAAS,KAAK,UAAU,CAAC,YAAY,CAAA;AAC1E,CAAC;AAED,MAAM,UAAU,UAAU,CACxB,KAAqB;IAErB,OAAQ,KAAa,EAAE,SAAS,KAAK,UAAU,CAAC,GAAG,CAAA;AACrD,CAAC;AAED,gBAAgB;AAChB,MAAM,UAAU,iBAAiB,CAC/B,OAAgC;IAEhC,OAAO,CAAC,OAAO,EAAE,SAAS,KAAK,IAAI,IAAI,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAA,CAAC,kCAAkC;AAC9G,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,KAAc;IACvC,OAAO,KAAK,YAAY,KAAK,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;QAChD,UAAU,CAAC,GAAG,EAAE,UAAU,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG,EAAE,UAAU,CAAC,YAAY;KAC9E,CAAC,QAAQ,CAAE,CAAC,EAAE,SAAS,CAAE,CAAC,CAAA;AAC7B,CAAC"}
|
package/js/render.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InsertBefore } from
|
|
1
|
+
import { InsertBefore } from './interpolations/Clones.type.js';
|
|
2
2
|
export declare function buildClones(temporary: DocumentFragment, insertBefore: InsertBefore): ChildNode[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { setUse } from
|
|
2
|
-
import { renderTagSupport } from
|
|
3
|
-
import { SyncCallbackError } from
|
|
4
|
-
import { syncStates } from
|
|
5
|
-
import { getSupportInCycle } from
|
|
1
|
+
import { setUse } from './setUse.function.js';
|
|
2
|
+
import { renderTagSupport } from '../tag/render/renderTagSupport.function.js';
|
|
3
|
+
import { SyncCallbackError } from '../errors.js';
|
|
4
|
+
import { syncStates } from './syncStates.function.js';
|
|
5
|
+
import { getSupportInCycle } from '../tag/getSupportInCycle.function.js';
|
|
6
6
|
let innerCallback = (callback) => (a, b, c, d, e, f) => {
|
|
7
7
|
throw new SyncCallbackError('Callback function was called immediately in sync and must instead be call async');
|
|
8
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callbackMaker.function.js","sourceRoot":"","sources":["../../ts/state/callbackMaker.function.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"callbackMaker.function.js","sourceRoot":"","sources":["../../ts/state/callbackMaker.function.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAE7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAA;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAA;AAOxE,IAAI,aAAa,GAAG,CAClB,QAAiC,EACjC,EAAE,CAAC,CAAC,CAAI,EAAE,CAAI,EAAE,CAAI,EAAE,CAAI,EAAE,CAAI,EAAE,CAAI,EAAK,EAAE;IAC7C,MAAM,IAAI,iBAAiB,CAAC,iFAAiF,CAAC,CAAA;AAChH,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,EAAE,CAAC,aAAa,CAAA;AAEhD,MAAM,cAAc,GAAG,aAAa,CAAA,CAAC,gBAAgB;AAErD,MAAM,CAAC;IACL,YAAY,EAAE,CAAC,UAA0B,EAAE,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACpE,YAAY,EAAE,CAAC,UAA0B,EAAE,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACpE,WAAW,EAAE,CAAC,UAA0B,EAAE,EAAE;QAC1C,CAAC;QAAC,UAAU,CAAC,MAAc,CAAC,aAAa,GAAG,IAAI,CAAA;QAChD,aAAa,GAAG,c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B,UAA0B,EAC1B,QAAkD,EAClD,QAAe,EACf,GAAG,IAAW;IAEd,MAAM,KAAK,GAAG,UAAU,CAAC,MAAM,CAAC,KAAK,CAAA;IAErC,qDAAqD;IACrD,UAAU,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAA;IAE3B,mBAAmB;IACnB,MAAM,YAAY,GAAG,QAAQ,CAAC,GAAG,IAAiC,CAAC,CAAA;IAEnE,gDAAgD;IAChD,UAAU,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAA;IAE3B;;;;MAIE;IAEF,gBAAgB,CACd,UAAwB,EACxB,KAAK,CACN,CAAA;IAED,IAAG,YAAY,YAAY,OAAO,EAAE,CAAC;QACnC,YAAY,CAAC,OAAO,CAAC,GAAG,EAAE;YACxB,gDAAgD;YAChD,UAAU,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAA;YAE3B,gBAAgB,CACd,UAAwB,EACxB,KAAK,CACN,CAAA;QACH,CAAC,CAAC,CAAA;IACJ,CAAC;IAED,wBAAwB;IACxB,OAAO,YAAY,CAAA;AACrB,CAAC"}
|
package/js/state/children.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function children(): import("
|
|
1
|
+
export declare function children(): import("../index.js").TagChildren;
|
package/js/state/children.js
CHANGED
package/js/state/children.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"children.js","sourceRoot":"","sources":["../../ts/state/children.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"children.js","sourceRoot":"","sources":["../../ts/state/children.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAK,sBAAsB,CAAA;AAE5C,SAAS,oBAAoB,CAAC,OAAoC;IAChE,MAAM,CAAC,MAAM,CAAC,sBAAsB,GAAG,OAAqB,CAAA;AAC9D,CAAC;AAED,MAAM,UAAU,QAAQ;IACtB,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,sBAAoC,CAAA;IACrE,MAAM,QAAQ,GAAG,UAAU,CAAC,SAAS,CAAC,QAAQ,CAAA;IAC9C,OAAO,QAAQ,CAAA;AACjB,CAAC;AAED,MAAM,CAAC;IACL,YAAY,EAAE,UAAU,CAAC,EAAE,CAAC,oBAAoB,CAAC,UAAU,CAAC;IAC5D,YAAY,EAAE,UAAU,CAAC,EAAE,CAAC,oBAAoB,CAAC,UAAU,CAAC;CAC7D,CAAC,CAAA"}
|