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
package/js/state/providers.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AnySupport } from '../tag/
|
|
1
|
+
import { AnySupport } from '../tag/AnySupport.type.js';
|
|
2
2
|
export declare function providersChangeCheck(support: AnySupport): AnySupport[];
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { AnySupport } from '../tag/
|
|
1
|
+
import { AnySupport } from '../tag/AnySupport.type.js';
|
|
2
2
|
import { State, StateConfig } from './state.types.js';
|
|
3
|
-
import { StatesSetter } from './states.utils.js';
|
|
4
3
|
import { StateMemory } from './StateMemory.type.js';
|
|
5
4
|
export declare function initState(support: AnySupport, config: StateMemory): void;
|
|
6
|
-
export declare function reState(newSupport: AnySupport, prevSupport: AnySupport, config: StateMemory, prevState: State
|
|
5
|
+
export declare function reState(newSupport: AnySupport, prevSupport: AnySupport, config: StateMemory, prevState: State): void;
|
|
7
6
|
export declare class StateEchoBack {
|
|
8
7
|
}
|
|
9
8
|
/** sends a fake value and then sets back to received value */
|
package/js/state/state.utils.js
CHANGED
|
@@ -9,19 +9,14 @@ export function initState(support, config) {
|
|
|
9
9
|
config.statesIndex = 0;
|
|
10
10
|
config.support = support;
|
|
11
11
|
}
|
|
12
|
-
export function reState(newSupport, prevSupport, config, prevState
|
|
12
|
+
export function reState(newSupport, prevSupport, config, prevState) {
|
|
13
13
|
// set previous state memory
|
|
14
14
|
config.rearray = prevState;
|
|
15
15
|
config.stateArray = [];
|
|
16
16
|
config.states = [];
|
|
17
|
-
//config.states = prevStates
|
|
18
|
-
//config.states = [...prevStates]
|
|
19
|
-
// newSupport.states = [...prevStates]
|
|
20
|
-
// support.states = config.states
|
|
21
17
|
config.statesIndex = 0;
|
|
22
18
|
config.handlers.handler = runRestate;
|
|
23
19
|
config.handlers.statesHandler = reStatesHandler;
|
|
24
|
-
// config.support = support
|
|
25
20
|
config.prevSupport = prevSupport;
|
|
26
21
|
}
|
|
27
22
|
export class StateEchoBack {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.utils.js","sourceRoot":"","sources":["../../ts/state/state.utils.ts"],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AExB,MAAM,CAAE,KAAK,CAAE,GAAG,QAAQ,CAAC,aAAoB,CAAC,CAAA,CAAC,iCAAiC;IAClF,MAAM,CAAC,UAAU,CAAC,GAAG,QAAQ,CAAE,KAAK,CAAE,CAAA,CAAC,6BAA6B;IACpE,OAAO,CAAC,KAAK,EAAE,UAAU,CAAC,CAAA;AAC5B,CAAC"}
|
package/js/state/states.utils.js
CHANGED
|
@@ -2,20 +2,15 @@ import { setUseMemory } from './setUseMemory.object.js';
|
|
|
2
2
|
import { getSupportWithState } from '../interpolations/attributes/getSupportWithState.function.js';
|
|
3
3
|
export function firstStatesHandler(setter) {
|
|
4
4
|
const config = setUseMemory.stateConfig;
|
|
5
|
-
// State first time run
|
|
6
5
|
config.states[config.statesIndex] = setter;
|
|
7
|
-
// const support = config.support as AnySupport
|
|
8
|
-
// support.states[config.statesIndex] = setter
|
|
9
6
|
++config.statesIndex;
|
|
10
7
|
return setter((...args) => {
|
|
11
|
-
// state(args)
|
|
12
8
|
return args;
|
|
13
9
|
});
|
|
14
10
|
}
|
|
15
11
|
/** aka statesHandler */
|
|
16
12
|
export function reStatesHandler(setter) {
|
|
17
13
|
const config = setUseMemory.stateConfig;
|
|
18
|
-
const support = config.support;
|
|
19
14
|
const statesIndex = config.statesIndex;
|
|
20
15
|
const prevSupport = getSupportWithState(config.prevSupport);
|
|
21
16
|
const prevStates = prevSupport.states;
|
|
@@ -26,27 +21,9 @@ export function reStatesHandler(setter) {
|
|
|
26
21
|
lastValues = args;
|
|
27
22
|
return args;
|
|
28
23
|
});
|
|
29
|
-
let index = 0;
|
|
30
24
|
const resetter = (..._args) => {
|
|
31
|
-
// state(value) // fake call and do not care about result
|
|
32
|
-
// fake state() having been called
|
|
33
|
-
/*
|
|
34
|
-
config.stateArray.push({
|
|
35
|
-
get: () => args,
|
|
36
|
-
defaultValue: args,
|
|
37
|
-
})
|
|
38
|
-
*/
|
|
39
|
-
// const lastValue = lastValues[index]
|
|
40
|
-
/*
|
|
41
|
-
let lastValue: any
|
|
42
|
-
oldStates((...x) => {
|
|
43
|
-
return lastValue = x
|
|
44
|
-
})
|
|
45
|
-
*/
|
|
46
|
-
++index;
|
|
47
25
|
return lastValues;
|
|
48
26
|
};
|
|
49
|
-
//;(config.support as AnySupport).states[config.statesIndex] = setter
|
|
50
27
|
config.states[config.statesIndex] = setter;
|
|
51
28
|
++config.statesIndex;
|
|
52
29
|
return setter(resetter);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"states.utils.js","sourceRoot":"","sources":["../../ts/state/states.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"states.utils.js","sourceRoot":"","sources":["../../ts/state/states.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAGvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,8DAA8D,CAAA;AASlG,MAAM,UAAU,kBAAkB,CAChC,MAAoB;IAEpB,MAAM,MAAM,GAAgB,YAAY,CAAC,WAAW,CAAA;IACpD,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,GAAG,MAAM,CAAA;IAE1C,EAAE,MAAM,CAAC,WAAW,CAAA;IAEpB,OAAO,MAAM,CAAC,CAAkB,GAAG,IAAY,EAAE,EAAE;QACjD,OAAO,IAAI,CAAA;IACb,CAAC,CAAC,CAAA;AACJ,CAAC;AAED,wBAAwB;AACxB,MAAM,UAAU,eAAe,CAC7B,MAAoB;IAEpB,MAAM,MAAM,GAAgB,YAAY,CAAC,WAAW,CAAA;IACpD,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,CAAA;IACtC,MAAM,WAAW,GAAG,mBAAmB,CAAC,MAAM,CAAC,WAAyB,CAAC,CAAA;IAEzE,MAAM,UAAU,GAAG,WAAW,CAAC,MAAwB,CAAA;IACvD,mCAAmC;IAEnC,MAAM,SAAS,GAAG,UAAU,CAAC,WAAW,CAAC,CAAA;IACzC,IAAI,UAAU,GAAU,EAAE,CAAA;IAE1B,SAAS,CAAC,SAAS,QAAQ,CAAC,GAAG,IAAI;QACjC,UAAU,GAAG,IAAI,CAAA;QACjB,OAAO,IAAI,CAAA;IACb,CAAC,CAAC,CAAA;IAEF,MAAM,QAAQ,GAAG,CAAkB,GAAG,KAAa,EAAK,EAAE;QACxD,OAAO,UAAe,CAAA;IACxB,CAAC,CAAA;IAED,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,GAAG,MAAM,CAAA;IAC1C,EAAE,MAAM,CAAC,WAAW,CAAA;IAEpB,OAAO,MAAM,CAAC,QAAQ,CAAC,CAAA;AACzB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Subject } from '../subject/Subject.class.js';
|
|
2
|
-
import { AnySupport } from '../tag/
|
|
2
|
+
import { AnySupport } from '../tag/AnySupport.type.js';
|
|
3
3
|
/** Emits event at the end of a tag being rendered. Use tagClosed$.toPromise() to render a tag after a current tag is done rendering */
|
|
4
4
|
export declare const tagClosed$: Subject<AnySupport>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Counts } from '../interpolations/interpolateTemplate.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
|
export type ProcessInit = (value: any, // TemplateValue | StringTag | SubscribeValue | SignalObject,
|
|
5
5
|
contextItem: ContextItem, ownerSupport: AnySupport, counts: Counts, // {added:0, removed:0}
|
|
6
|
-
appendTo?: Element) => any;
|
|
6
|
+
appendTo?: Element, insertBefore?: Text) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signal.function.js","sourceRoot":"","sources":["../../ts/subject/signal.function.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"signal.function.js","sourceRoot":"","sources":["../../ts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AA;YAEhD,kCAAkC;YAClC,KAAK,CAAC,WAAW,GAAG,KAAK,CAAA;YAEzB,OAAO,KAAK,CAAA;QAChB,CAAC;KACJ,CAAA;AACL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnySupport.type.js","sourceRoot":"","sources":["../../ts/tag/AnySupport.type.ts"],"names":[],"mappings":""}
|
|
@@ -2,12 +2,10 @@ import { SpecialDefinition } from '../interpolations/attributes/processAttribute
|
|
|
2
2
|
import { HowToSet } from '../interpolations/attributes/howToSetInputValue.function.js';
|
|
3
3
|
import { InterpolateSubject, TemplateValue } from './update/processFirstSubject.utils.js';
|
|
4
4
|
import { Clone, TagGlobal } from './getTemplaterResult.function.js';
|
|
5
|
-
import { AnySupport
|
|
5
|
+
import { AnySupport } from './AnySupport.type.js';
|
|
6
|
+
import { SupportContextItem } from './createHtmlSupport.function.js';
|
|
6
7
|
export type ContextHandler = (value: TemplateValue, values: unknown[], newSupport: AnySupport, contextItem: ContextItem) => void;
|
|
7
|
-
export type LastArrayItem =
|
|
8
|
-
context: ContextItem;
|
|
9
|
-
global: TagGlobal;
|
|
10
|
-
};
|
|
8
|
+
export type LastArrayItem = ContextItem;
|
|
11
9
|
export type ContextItem = {
|
|
12
10
|
element?: Element;
|
|
13
11
|
handler?: ContextHandler;
|
package/js/tag/Tag.type.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TemplaterResult } from './getTemplaterResult.function.js';
|
|
2
2
|
import { ValueTypes } from './ValueTypes.enum.js';
|
|
3
|
-
import { AnySupport } from './
|
|
3
|
+
import { AnySupport } from './AnySupport.type.js';
|
|
4
4
|
import { ProcessInit } from '../subject/ProcessInit.type.js';
|
|
5
5
|
export type Tag = {
|
|
6
6
|
values: unknown[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnySupport } from './
|
|
1
|
+
import { AnySupport } from './AnySupport.type.js';
|
|
2
2
|
/** Compares states of previous renders
|
|
3
3
|
* @property support - The workflow that supports a single tag
|
|
4
4
|
* @property ownerSupport - undefined when "support" is the app element
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Counts } from '../interpolations/interpolateTemplate.js';
|
|
2
|
-
import { AnySupport } from './
|
|
2
|
+
import { AnySupport } from './AnySupport.type.js';
|
|
3
3
|
import { ContextItem } from './Context.types.js';
|
|
4
4
|
/** Function that kicks off actually putting tags down as HTML elements */
|
|
5
5
|
export declare function buildBeforeElement(support: AnySupport, counts: Counts, appendTo?: Element, insertBefore?: Text): {
|
|
6
6
|
context: ContextItem[];
|
|
7
|
-
subs: import("../interpolations/subscribeToTemplate.function.js").SubToTemplateOptions[];
|
|
8
7
|
dom: import("../interpolations/optimizers/ObjectNode.types.js").DomObjectChildren;
|
|
9
8
|
};
|
|
10
9
|
export declare function addOneContext(value: unknown, context: ContextItem[], withinOwnerElement: boolean): ContextItem;
|
|
@@ -14,7 +14,6 @@ export function buildBeforeElement(support, counts, appendTo, insertBefore) {
|
|
|
14
14
|
const result = attachHtmlDomMeta(support, counts, appendTo, insertBefore);
|
|
15
15
|
global.htmlDomMeta = result.dom;
|
|
16
16
|
--painting.locks;
|
|
17
|
-
// ++global.renderCount
|
|
18
17
|
// return fragment
|
|
19
18
|
return result;
|
|
20
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildBeforeElement.function.js","sourceRoot":"","sources":["../../ts/tag/buildBeforeElement.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4DAA4D,CAAA;
|
|
1
|
+
{"version":3,"file":"buildBeforeElement.function.js","sourceRoot":"","sources":["../../ts/tag/buildBeforeElement.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4DAA4D,CAAA;AAQ9F,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAA;AACnG,OAAO,EAAE,UAAU,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,CACb,CAAA;IAED,OAAO,MAAM,CAAA;AACf,CAAC;AAED,SAAS,WAAW,CAAC,OAAmB;IACtC,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAA;IACnC,MAAM,OAAO,GAAI,SAAS,CAAC,GAA0B,CAAA,CAAC,eAAe;IAErE,IAAG,OAAO,CAAC,SAAS,KAAK,UAAU,CAAC,GAAG,EAAE,CAAC;QACxC,OAAQ,OAAkB,CAAC,GAAiB,CAAA;IAC9C,CAAC;IAED,MAAM,OAAO,GAAI,OAAqB,CAAC,OAAO,CAAA;IAE9C,OAAO,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,CAAA;AAC5C,CAAC;AAED,MAAM,UAAU,aAAa,CAC3B,KAAc,EACd,OAAsB,EACtB,kBAA2B;IAE3B,MAAM,WAAW,GAAgB;QAC/B,KAAK;QACL,gBAAgB,EAAE,sBAAsB;QACxC,MAAM,EAAE,iBAAiB;QACzB,kBAAkB;KACnB,CAAA;IAED,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;IAEzB,OAAO,WAAW,CAAA;AACpB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SupportContextItem } from './
|
|
1
|
+
import { SupportContextItem } from './createHtmlSupport.function.js';
|
|
2
2
|
import { ContextItem } from './Context.types.js';
|
|
3
3
|
export declare function checkTagValueChange(newValue: unknown, contextItem: SupportContextItem): false | -1 | 7 | 8;
|
|
4
4
|
export declare function destorySupportByContextItem(contextItem: ContextItem): void;
|
|
@@ -2,7 +2,7 @@ import { getNewGlobal } from './update/getNewGlobal.function.js';
|
|
|
2
2
|
import { destroySupport } from './destroySupport.function.js';
|
|
3
3
|
import { isStaticTag } from '../isInstance.js';
|
|
4
4
|
import { isLikeTags } from './isLikeTags.function.js';
|
|
5
|
-
import { tryUpdateToTag } from './update/
|
|
5
|
+
import { tryUpdateToTag } from './update/tryUpdateToTag.function.js';
|
|
6
6
|
import { paint, paintAfters } from './paint.function.js';
|
|
7
7
|
export function checkTagValueChange(newValue, contextItem) {
|
|
8
8
|
const global = contextItem.global;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkTagValueChange.function.js","sourceRoot":"","sources":["../../ts/tag/checkTagValueChange.function.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"checkTagValueChange.function.js","sourceRoot":"","sources":["../../ts/tag/checkTagValueChange.function.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAE7D,OAAO,EAAE,WAAW,EAAE,MAAK,kBAAkB,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAK,0BAA0B,CAAA;AAEpD,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAA;AACpE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAExD,MAAM,UAAU,mBAAmB,CACjC,QAAiB,EACjB,WAA+B;IAE/B,MAAM,MAAM,GAAG,WAAW,CAAC,MAA0B,CAAA;IACrD,MAAM,WAAW,GAAG,MAAM,EAAE,MAAM,CAAA;IAClC,MAAM,UAAU,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAA;IACxC,MAAM,MAAM,GAAG,QAAsB,CAAA;IAErC,IAAG,UAAU,EAAE,CAAC;QACd,0BAA0B;QAC1B,MAAM,QAAQ,GAAG,UAAU,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;QAChD,IAAG,CAAC,QAAQ,EAAE,CAAC;YACb,cAAc,CAAC,WAAW,EAAE,MAAM,CAAC,CAAA;YACnC,YAAY,CAAC,WAAW,CAAC,CAAA;YACzB,OAAO,CAAC,CAAA,CAAC,aAAa;QACxB,CAAC;QAED,OAAO,KAAK,CAAA;IACd,CAAC;IAED,MAAM,KAAK,GAAI,QAAgB,EAAE,SAAS,CAAA;IAC1C,IAAG,KAAK,EAAE,CAAC;QACT,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAA;QAC7B,MAAM,YAAY,GAAG,OAAO,CAAC,YAA0B,CAAA;QACvD,MAAM,MAAM,GAAG,cAAc,CAAC,WAAW,EAAE,QAA2B,EAAE,YAAY,CAAC,CAAA;QACrF,OAAO,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAA;IACrC,CAAC;IAED,yDAAyD;IACzD,IAAG,WAAW,CAAC,OAAO,CAAC,WAAW,KAAK,CAAC,EAAE,CAAC;QACzC,OAAQ,WAA2B,CAAC,MAAM,CAAA;QAC1C,WAAW,CAAC,WAAW,GAAG,CAAC,CAAA;QAE3B,WAAW,CAAC,IAAI,CAAC,GAAG,EAAE;YACpB,cAAc,CAAC,WAAW,EAAE,MAAM,CAAC,CAAA;YACnC,WAAW,CAAC,KAAK,EAAE,CAAA,CAAC,4BAA4B;YAChD,KAAK,EAAE,CAAA;QACT,CAAC,CAAC,CAAA;QACF,OAAO,CAAC,CAAA,CAAC,iBAAiB;IAC5B,CAAC;IAED,2BAA2B,CAAC,WAAW,CAAC,CAAA;IAExC,OAAO,CAAC,CAAA,CAAC,kBAAkB;AAC7B,CAAC;AAED,MAAM,UAAU,2BAA2B,CACzC,WAAwB;IAExB,MAAM,MAAM,GAAG,WAAW,CAAC,MAA0B,CAAA;IACrD,MAAM,WAAW,GAAG,MAAM,EAAE,MAAM,CAAA;IAElC,kDAAkD;IAClD,cAAc,CAAC,WAAW,EAAE,MAAM,CAAC,CAAA;IACnC,OAAQ,WAA2B,CAAC,MAAM,CAEzC;IAAC,WAAkC,CAAC,WAAW,GAAG,CAAC,CAAA;AACtD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Props } from '../Props.js';
|
|
2
|
-
import { AnySupport } from './
|
|
2
|
+
import { AnySupport } from './AnySupport.type.js';
|
|
3
3
|
export declare function clonePropsBy(support: AnySupport, props: Props, castProps?: Props): {
|
|
4
4
|
latest: Props;
|
|
5
5
|
castProps: Props | undefined;
|
|
@@ -10,6 +10,8 @@ export function cloneTagJsValue(value, maxDepth) {
|
|
|
10
10
|
const tagJsType = value?.tagJsType;
|
|
11
11
|
if (tagJsType) {
|
|
12
12
|
switch (tagJsType) {
|
|
13
|
+
case ValueTypes.signal:
|
|
14
|
+
case ValueTypes.subscribe:
|
|
13
15
|
case ValueTypes.stateRender:
|
|
14
16
|
return undefined;
|
|
15
17
|
case ValueTypes.dom:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloneValueArray.function.js","sourceRoot":"","sources":["../../ts/tag/cloneValueArray.function.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAa,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAE1C,MAAM,UAAU,eAAe,CAC7B,MAAuC;IAEvC,OAAO,MAAM,CAAC,GAAG,CAAC,eAAsB,CAAC,CAAA;AAC3C,CAAC;AAED,8DAA8D;AAC9D,MAAM,UAAU,eAAe,CAC7B,KAAQ,EACR,QAAgB;IAEhB,MAAM,GAAG,GAAG,KAAkB,CAAA;IAE9B,MAAM,SAAS,GAAI,KAAa,EAAE,SAAsB,CAAA;IACxD,IAAG,SAAS,EAAE,CAAC;QACb,QAAQ,SAAS,EAAG,CAAC;YACnB,KAAK,UAAU,CAAC,WAAW;gBACzB,OAAO,SAAgB,CAAA;YAEzB,KAAK,UAAU,CAAC,GAAG,CAAC;YACpB,KAAK,UAAU,CAAC,GAAG,CAAC;YACpB,KAAK,UAAU,CAAC,SAAS;gBACvB,OAAO,eAAe,CAAC,GAAG,CAAC,MAAM,CAAM,CAAA;QAC3C,CAAC;IACH,CAAC;IAED,IAAG,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAClB,OAAO,eAAe,CAAC,GAA6B,CAAM,CAAA;IAC5D,CAAC;IAED,OAAO,SAAS,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAA;AACnC,CAAC"}
|
|
1
|
+
{"version":3,"file":"cloneValueArray.function.js","sourceRoot":"","sources":["../../ts/tag/cloneValueArray.function.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAa,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAE1C,MAAM,UAAU,eAAe,CAC7B,MAAuC;IAEvC,OAAO,MAAM,CAAC,GAAG,CAAC,eAAsB,CAAC,CAAA;AAC3C,CAAC;AAED,8DAA8D;AAC9D,MAAM,UAAU,eAAe,CAC7B,KAAQ,EACR,QAAgB;IAEhB,MAAM,GAAG,GAAG,KAAkB,CAAA;IAE9B,MAAM,SAAS,GAAI,KAAa,EAAE,SAAsB,CAAA;IACxD,IAAG,SAAS,EAAE,CAAC;QACb,QAAQ,SAAS,EAAG,CAAC;YACnB,KAAK,UAAU,CAAC,MAAM,CAAC;YACvB,KAAK,UAAU,CAAC,SAAS,CAAC;YAC1B,KAAK,UAAU,CAAC,WAAW;gBACzB,OAAO,SAAgB,CAAA;YAEzB,KAAK,UAAU,CAAC,GAAG,CAAC;YACpB,KAAK,UAAU,CAAC,GAAG,CAAC;YACpB,KAAK,UAAU,CAAC,SAAS;gBACvB,OAAO,eAAe,CAAC,GAAG,CAAC,MAAM,CAAM,CAAA;QAC3C,CAAC;IACH,CAAC;IAED,IAAG,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAClB,OAAO,eAAe,CAAC,GAA6B,CAAM,CAAA;IAC5D,CAAC;IAED,OAAO,SAAS,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAA;AACnC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { SupportTagGlobal, TemplaterResult } from './getTemplaterResult.function.js';
|
|
2
|
+
import { ContextItem } from './Context.types.js';
|
|
3
|
+
import { Props } from '../Props.js';
|
|
4
|
+
import { BaseSupport } from './BaseSupport.type.js';
|
|
5
|
+
import { AnySupport } from './AnySupport.type.js';
|
|
6
|
+
export type PropsConfig = {
|
|
7
|
+
latest: Props;
|
|
8
|
+
castProps?: Props;
|
|
9
|
+
};
|
|
10
|
+
export type HtmlSupport = {
|
|
11
|
+
appSupport: AnySupport;
|
|
12
|
+
ownerSupport?: AnySupport;
|
|
13
|
+
appElement?: Element;
|
|
14
|
+
propsConfig?: PropsConfig;
|
|
15
|
+
templater: TemplaterResult;
|
|
16
|
+
subject: ContextItem;
|
|
17
|
+
};
|
|
18
|
+
export type SupportContextItem = ContextItem & {
|
|
19
|
+
global: SupportTagGlobal;
|
|
20
|
+
/** Indicator of re-rending. Saves from double rending something already rendered */
|
|
21
|
+
renderCount: number;
|
|
22
|
+
};
|
|
23
|
+
/** used only for apps, otherwise use Support */
|
|
24
|
+
export declare function getBaseSupport(templater: TemplaterResult, subject: SupportContextItem, castedProps?: Props): BaseSupport;
|
|
25
|
+
export type Support = AnySupport & {
|
|
26
|
+
ownerSupport: AnySupport;
|
|
27
|
+
appSupport: BaseSupport;
|
|
28
|
+
};
|
|
29
|
+
/** Sets support states to empty array and clones props */
|
|
30
|
+
export declare function upgradeBaseToSupport(templater: TemplaterResult, // at runtime rendering of a tag, it needs to be married to a new Support()
|
|
31
|
+
support: BaseSupport, appSupport: AnySupport, castedProps?: Props): AnySupport;
|
|
32
|
+
export declare function createHtmlSupport(templater: TemplaterResult, // at runtime rendering of a tag, it needs to be married to a new Support()
|
|
33
|
+
ownerSupport: AnySupport, appSupport: AnySupport, subject: ContextItem, castedProps?: Props): AnySupport;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { clonePropsBy } from './clonePropsBy.function.js';
|
|
2
|
+
import { Subject } from '../subject/Subject.class.js';
|
|
3
|
+
/** used only for apps, otherwise use Support */
|
|
4
|
+
export function getBaseSupport(templater, subject, castedProps) {
|
|
5
|
+
const baseSupport = {
|
|
6
|
+
templater,
|
|
7
|
+
subject,
|
|
8
|
+
castedProps,
|
|
9
|
+
appSupport: undefined,
|
|
10
|
+
};
|
|
11
|
+
// baseSupport.appSupport = baseSupport
|
|
12
|
+
const global = subject.global;
|
|
13
|
+
global.blocked = [];
|
|
14
|
+
global.destroy$ = new Subject();
|
|
15
|
+
return baseSupport;
|
|
16
|
+
}
|
|
17
|
+
/** Sets support states to empty array and clones props */
|
|
18
|
+
export function upgradeBaseToSupport(templater, // at runtime rendering of a tag, it needs to be married to a new Support()
|
|
19
|
+
support, appSupport, castedProps) {
|
|
20
|
+
// ;(support as AnySupport).state = []
|
|
21
|
+
// ;(support as AnySupport).states = []
|
|
22
|
+
support.appSupport = appSupport;
|
|
23
|
+
const props = templater.props; // natural props
|
|
24
|
+
if (props) {
|
|
25
|
+
support.propsConfig = clonePropsBy(support, props, castedProps);
|
|
26
|
+
}
|
|
27
|
+
return support;
|
|
28
|
+
}
|
|
29
|
+
export function createHtmlSupport(templater, // at runtime rendering of a tag, it needs to be married to a new Support()
|
|
30
|
+
ownerSupport, appSupport, subject, castedProps) {
|
|
31
|
+
const support = {
|
|
32
|
+
templater,
|
|
33
|
+
subject,
|
|
34
|
+
castedProps,
|
|
35
|
+
appSupport: undefined,
|
|
36
|
+
};
|
|
37
|
+
support.ownerSupport = ownerSupport;
|
|
38
|
+
support.appSupport = appSupport;
|
|
39
|
+
return support;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=createHtmlSupport.function.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createHtmlSupport.function.js","sourceRoot":"","sources":["../../ts/tag/createHtmlSupport.function.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AA6BrD,gDAAgD;AAChD,MAAM,UAAU,cAAc,CAC5B,SAA0B,EAC1B,OAA0B,EAC1B,WAAmB;IAEnB,MAAM,WAAW,GAAG;QAClB,SAAS;QACT,OAAO;QACP,WAAW;QAEX,UAAU,EAAE,SAAkC;KAChC,CAAA;IAEhB,uCAAuC;IAEvC,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAA;IAC7B,MAAM,CAAC,OAAO,GAAG,EAAE,CAAA;IACnB,MAAM,CAAC,QAAQ,GAAG,IAAI,OAAO,EAAQ,CAAA;IAErC,OAAO,WAAW,CAAA;AACpB,CAAC;AAOD,0DAA0D;AAC1D,MAAM,UAAU,oBAAoB,CAClC,SAA0B,EAAE,2EAA2E;AACvG,OAAoB,EACpB,UAAsB,EACtB,WAAmB;IAEnB,sCAAsC;IACtC,uCAAuC;IAEvC,OAAO,CAAC,UAAU,GAAG,UAAU,CAAA;IAE/B,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAA,CAAE,gBAAgB;IAC/C,IAAG,KAAK,EAAE,CAAC;QACT,OAAO,CAAC,WAAW,GAAG,YAAY,CAAC,OAAqB,EAAE,KAAK,EAAE,WAAW,CAAC,CAAA;IAC/E,CAAC;IAED,OAAO,OAAqB,CAAA;AAC9B,CAAC;AAED,MAAM,UAAU,iBAAiB,CAC/B,SAA0B,EAAE,2EAA2E;AACvG,YAAwB,EACxB,UAAsB,EACtB,OAAoB,EACpB,WAAmB;IAEnB,MAAM,OAAO,GAAG;QACd,SAAS;QACT,OAAO;QACP,WAAW;QAEX,UAAU,EAAE,SAAkC;KAChC,CAAA;IAEhB,OAAO,CAAC,YAAY,GAAG,YAAY,CAAA;IACnC,OAAO,CAAC,UAAU,GAAG,UAAU,CAAA;IAC/B,OAAO,OAAqB,CAAA;AAC9B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TemplaterResult } from './getTemplaterResult.function.js';
|
|
2
|
+
import { ContextItem } from './Context.types.js';
|
|
3
|
+
import { Props } from '../Props.js';
|
|
4
|
+
import { AnySupport } from './AnySupport.type.js';
|
|
5
|
+
export declare function createSupport(templater: TemplaterResult, // at runtime rendering of a tag, it needs to be married to a new Support()
|
|
6
|
+
ownerSupport: AnySupport, appSupport: AnySupport, subject: ContextItem, castedProps?: Props): AnySupport;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { getBaseSupport, upgradeBaseToSupport } from './createHtmlSupport.function.js';
|
|
2
|
+
export function createSupport(templater, // at runtime rendering of a tag, it needs to be married to a new Support()
|
|
3
|
+
ownerSupport, appSupport, subject, castedProps) {
|
|
4
|
+
const support = getBaseSupport(templater, subject, castedProps);
|
|
5
|
+
support.ownerSupport = ownerSupport;
|
|
6
|
+
return upgradeBaseToSupport(templater, support, appSupport, castedProps);
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=createSupport.function.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createSupport.function.js","sourceRoot":"","sources":["../../ts/tag/createSupport.function.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAsB,oBAAoB,EAAE,MAAM,iCAAiC,CAAA;AAE1G,MAAM,UAAU,aAAa,CAC3B,SAA0B,EAAE,2EAA2E;AACvG,YAAwB,EACxB,UAAsB,EACtB,OAAoB,EACpB,WAAmB;IAEnB,MAAM,OAAO,GAAG,cAAc,CAC5B,SAAS,EACT,OAA6B,EAC7B,WAAW,CACE,CAAA;IAEf,OAAO,CAAC,YAAY,GAAG,YAAY,CAAA;IAEnC,OAAO,oBAAoB,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,CAAC,CAAA;AAC1E,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Subscription } from '../subject/subject.utils.js';
|
|
2
|
+
import { AnySupport } from './AnySupport.type.js';
|
|
3
|
+
import { ContextItem } from './Context.types.js';
|
|
4
|
+
export declare function destroyContext(childTags: ContextItem[]): void;
|
|
5
|
+
export declare function getChildTagsToSoftDestroy(childTags: ContextItem[], tags?: AnySupport[], subs?: Subscription<any>[]): {
|
|
6
|
+
subs: Subscription<any>[];
|
|
7
|
+
tags: AnySupport[];
|
|
8
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { isTagComponent } from '../isInstance.js';
|
|
2
|
+
import { runBeforeDestroy } from './tagRunner.js';
|
|
3
|
+
export function destroyContext(childTags) {
|
|
4
|
+
for (const child of childTags) {
|
|
5
|
+
// deleting arrays
|
|
6
|
+
const lastArray = child.lastArray;
|
|
7
|
+
if (lastArray) {
|
|
8
|
+
destroyContext(lastArray);
|
|
9
|
+
continue;
|
|
10
|
+
}
|
|
11
|
+
const global = child.global;
|
|
12
|
+
if (!global) {
|
|
13
|
+
continue; // not a support contextItem
|
|
14
|
+
}
|
|
15
|
+
const support = global.newest;
|
|
16
|
+
const iSubs = global.subscriptions;
|
|
17
|
+
if (iSubs) {
|
|
18
|
+
iSubs.forEach(iSub => iSub.unsubscribe());
|
|
19
|
+
}
|
|
20
|
+
if (isTagComponent(support.templater)) {
|
|
21
|
+
runBeforeDestroy(support, global);
|
|
22
|
+
}
|
|
23
|
+
const subTags = global.context;
|
|
24
|
+
destroyContext(subTags);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export function getChildTagsToSoftDestroy(childTags, tags = [], subs = []) {
|
|
28
|
+
for (const child of childTags) {
|
|
29
|
+
const global = child.global;
|
|
30
|
+
if (!global) {
|
|
31
|
+
continue;
|
|
32
|
+
}
|
|
33
|
+
const support = global.newest;
|
|
34
|
+
if (support) {
|
|
35
|
+
tags.push(support);
|
|
36
|
+
const iSubs = global.subscriptions;
|
|
37
|
+
if (iSubs) {
|
|
38
|
+
subs.push(...iSubs);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
const subTags = global.context;
|
|
42
|
+
if (subTags) {
|
|
43
|
+
getChildTagsToSoftDestroy(subTags, tags, subs);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return { tags, subs };
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=destroyContext.function.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"destroyContext.function.js","sourceRoot":"","sources":["../../ts/tag/destroyContext.function.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAIjD,MAAM,UAAU,cAAc,CAC5B,SAAwB;IAExB,KAAK,MAAM,KAAK,IAAI,SAAS,EAAE,CAAC;QAC9B,kBAAkB;QAClB,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,CAAA;QACjC,IAAG,SAAS,EAAE,CAAC;YACb,cAAc,CAAE,SAAS,CAAE,CAAA;YAC3B,SAAQ;QACV,CAAC;QAED,MAAM,MAAM,GAAG,KAAK,CAAC,MAA0B,CAAA;QAC/C,IAAG,CAAC,MAAM,EAAE,CAAC;YACX,SAAQ,CAAC,4BAA4B;QACvC,CAAC;QAED,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAA;QAC7B,MAAM,KAAK,GAAG,MAAM,CAAC,aAAa,CAAA;QAClC,IAAG,KAAK,EAAE,CAAC;YACT,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAA;QAC3C,CAAC;QAED,IAAG,cAAc,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC;YACrC,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAA;QACnC,CAAC;QAED,MAAM,OAAO,GAAG,MAAM,CAAC,OAAwB,CAAA;QAC/C,cAAc,CAAC,OAAO,CAAC,CAAA;IACzB,CAAC;AACH,CAAC;AAED,MAAM,UAAU,yBAAyB,CACvC,SAAwB,EACxB,OAAqB,EAAE,EACvB,OAA4B,EAAE;IAE9B,KAAK,MAAM,KAAK,IAAI,SAAS,EAAE,CAAC;QAC9B,MAAM,MAAM,GAAG,KAAK,CAAC,MAA0B,CAAA;QAE/C,IAAG,CAAC,MAAM,EAAE,CAAC;YACX,SAAQ;QACV,CAAC;QAED,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAA;QAC7B,IAAG,OAAO,EAAE,CAAC;YACX,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;YAClB,MAAM,KAAK,GAAG,MAAM,CAAC,aAAa,CAAA;YAClC,IAAG,KAAK,EAAE,CAAC;gBACT,IAAI,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAA;YACrB,CAAC;QACH,CAAC;QAED,MAAM,OAAO,GAAG,MAAM,CAAC,OAAwB,CAAA;QAC/C,IAAG,OAAO,EAAE,CAAC;YACX,yBAAyB,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;QAChD,CAAC;IACH,CAAC;IAED,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,CAAA;AACrB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SupportTagGlobal } from './getTemplaterResult.function.js';
|
|
2
|
-
import { AnySupport } from './
|
|
2
|
+
import { AnySupport } from './AnySupport.type.js';
|
|
3
3
|
export declare function destroySupport(support: AnySupport, global: SupportTagGlobal): Promise<void>[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { destroyContext } from './destroyContext.function.js';
|
|
2
2
|
import { smartRemoveKids } from './smartRemoveKids.function.js';
|
|
3
3
|
import { runBeforeDestroy } from './tagRunner.js';
|
|
4
4
|
export function destroySupport(support, global) {
|
|
@@ -7,7 +7,7 @@ export function destroySupport(support, global) {
|
|
|
7
7
|
subject.renderCount = 0; // if it comes back, wont be considered an update
|
|
8
8
|
const promises = [];
|
|
9
9
|
const context = global.context;
|
|
10
|
-
|
|
10
|
+
destroyContext(context);
|
|
11
11
|
if (global.destroy$) {
|
|
12
12
|
runBeforeDestroy(support, global);
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"destroySupport.function.js","sourceRoot":"","sources":["../../ts/tag/destroySupport.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"destroySupport.function.js","sourceRoot":"","sources":["../../ts/tag/destroySupport.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAE/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAIjD,MAAM,UAAU,cAAc,CAC5B,OAAmB,EACnB,MAAwB;IAExB,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAA;IAE/B,MAAM,CAAC,OAAO,GAAG,IAAI,CAAA;IACrB,OAAO,CAAC,WAAW,GAAG,CAAC,CAAA,CAAC,iDAAiD;IACzE,MAAM,QAAQ,GAAmB,EAAE,CAAA;IAEnC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAwB,CAAA;IAC/C,cAAc,CAAC,OAAO,CAAC,CAAA;IAEvB,IAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;QACnB,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAA;IACnC,CAAC;IAED,eAAe,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;IAEjC,OAAO,QAAQ,CAAA;AACjB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TemplaterResult } from './getTemplaterResult.function.js';
|
|
2
2
|
import { TagWrapper } from './tag.utils.js';
|
|
3
|
-
import { AnySupport } from './
|
|
3
|
+
import { AnySupport } from './AnySupport.type.js';
|
|
4
4
|
import { Props } from '../Props.js';
|
|
5
5
|
export declare function executeWrap(templater: TemplaterResult, result: TagWrapper<unknown>, useSupport: AnySupport, castedProps?: Props): AnySupport;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getSupportInCycle(): import("./
|
|
1
|
+
export declare function getSupportInCycle(): import("./AnySupport.type.js").AnySupport | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TemplaterResult, Wrapper } from './getTemplaterResult.function.js';
|
|
2
2
|
import { TagWrapper } from './tag.utils.js';
|
|
3
|
-
import { AnySupport } from './getSupport.function.js';
|
|
4
3
|
import { Props } from '../Props.js';
|
|
4
|
+
import { AnySupport } from './AnySupport.type.js';
|
|
5
5
|
/** creates/returns a function that when called then calls the original component function
|
|
6
6
|
* Gets used as templater.wrapper()
|
|
7
7
|
*/
|
|
@@ -3,7 +3,7 @@ import { syncFunctionProps } from './update/updateExistingTagComponent.function.
|
|
|
3
3
|
import { executeWrap } from './executeWrap.function.js';
|
|
4
4
|
import { PropWatches } from './tag.function.js';
|
|
5
5
|
import { deepCompareDepth, shallowCompareDepth } from './hasSupportChanged.function.js';
|
|
6
|
-
import {
|
|
6
|
+
import { createSupport } from './createSupport.function.js';
|
|
7
7
|
/** creates/returns a function that when called then calls the original component function
|
|
8
8
|
* Gets used as templater.wrapper()
|
|
9
9
|
*/
|
|
@@ -14,7 +14,7 @@ export function getTagWrap(templater, result) {
|
|
|
14
14
|
// wrap any prop functions that are passed in
|
|
15
15
|
const castedProps = getCastedProps(templater, newSupport, lastSupport);
|
|
16
16
|
const ownerSupport = newSupport.ownerSupport;
|
|
17
|
-
const useSupport =
|
|
17
|
+
const useSupport = createSupport(templater, ownerSupport, newSupport.appSupport, // ownerSupport.appSupport as AnySupport,
|
|
18
18
|
subject, castedProps);
|
|
19
19
|
return executeWrap(templater, result, useSupport, castedProps);
|
|
20
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTagWrap.function.js","sourceRoot":"","sources":["../../ts/tag/getTagWrap.function.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAK,0BAA0B,CAAA;AAGnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iDAAiD,CAAA;AACn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wB;IAExB,MAAM,QAAQ,GAAG,SAAS,CAAC,SAAS,KAAK,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,mBAAmB,CAAA;IAClG,MAAM,KAAK,GAAG,SAAS,CAAC,KAAc,CAAA;IACtC,MAAM,WAAW,GAAG,UAAU,CAAC,WAA0B,CAAA;IAEzD,wFAAwF;IACxF,IAAI,cAAc,GAAsB,WAAW,CAAC,SAAS,CAAA;IAC7D,MAAM,eAAe,GAAG,WAAW,EAAE,WAAW,CAAA;IAChD,MAAM,aAAa,GAAG,eAAe,EAAE,SAAS,CAAA;IAEhD,IAAG,aAAa,EAAE,CAAC;QACjB,WAAW,CAAC,SAAS,GAAG,aAAa,CAAA;QACrC,cAAc,GAAG,iBAAiB,CAChC,UAAU,EACV,WAAyB,EACxB,WAAuB,CAAC,YAAY,EACrC,KAAK,EACL,QAAQ,CACT,CAAA;IACH,CAAC;IAED,MAAM,WAAW,GAAG,cAAc,IAAI,SAAS,CAC7C,KAAK,EACL,UAAU,EACV,CAAC,CACF,CAAA;IAED,OAAO,WAAW,CAAA;AACpB,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { EventCallback } from './getDomTag.function.js';
|
|
2
|
-
import { StringTag } from './StringTag.type.js';
|
|
3
|
-
import { DomTag } from './DomTag.type.js';
|
|
4
2
|
import { ContextItem } from './Context.types.js';
|
|
5
|
-
import { AnySupport
|
|
3
|
+
import { AnySupport } from './AnySupport.type.js';
|
|
4
|
+
import { SupportContextItem } from './createHtmlSupport.function.js';
|
|
6
5
|
import { Props } from '../Props.js';
|
|
7
6
|
import { TagWrapper } from './tag.utils.js';
|
|
8
7
|
import { Provider } from '../state/providers.js';
|
|
@@ -13,6 +12,7 @@ import { ValueTypes } from './ValueTypes.enum.js';
|
|
|
13
12
|
import { DomObjectChildren } from '../interpolations/optimizers/ObjectNode.types.js';
|
|
14
13
|
import { PropWatches } from './tag.function.js';
|
|
15
14
|
import { ProcessInit } from '../subject/ProcessInit.type.js';
|
|
15
|
+
import { Tag } from './Tag.type.js';
|
|
16
16
|
export type Wrapper = ((newSupport: AnySupport, subject: ContextItem, prevSupport?: AnySupport) => AnySupport) & TagWrapper<unknown> & {
|
|
17
17
|
tagJsType: typeof ValueTypes.tagComponent | typeof ValueTypes.renderOnce | typeof ValueTypes.templater;
|
|
18
18
|
processInit: ProcessInit;
|
|
@@ -48,7 +48,7 @@ export type TemplaterResult = {
|
|
|
48
48
|
processInit: ProcessInit;
|
|
49
49
|
propWatch: PropWatches;
|
|
50
50
|
wrapper?: Wrapper;
|
|
51
|
-
tag?:
|
|
51
|
+
tag?: Tag;
|
|
52
52
|
props?: Props;
|
|
53
53
|
/** Used inside of an array.map() function */
|
|
54
54
|
key: <T>(arrayValue: T) => TemplaterResultArrayItem<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTemplaterResult.function.js","sourceRoot":"","sources":["../../ts/tag/getTemplaterResult.function.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getTemplaterResult.function.js","sourceRoot":"","sources":["../../ts/tag/getTemplaterResult.function.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAIjD,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAA;AAuEpE,MAAM,UAAU,kBAAkB,CAChC,SAAsB,EACtB,KAAa;IAEb,MAAM,SAAS,GAAoB;QACjC,SAAS,EAAE,UAAU,CAAC,SAAS;QAC/B,WAAW,EAAE,cAAc;QAE3B,SAAS;QACT,KAAK;QACL,GAAG,EAAE,SAAS,WAAW,CAAI,UAAa;YACvC,SAAyC,CAAC,UAAU,GAAG,UAAU,CAAA;YAClE,OAAO,SAAS,CAAA;QAClB,CAAC;KACF,CAAA;IAED,OAAO,SAAS,CAAA;AAClB,CAAC"}
|