marko 6.3.54 → 6.3.56
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/cheatsheet.md +1 -0
- package/dist/common/accessor.d.ts +3 -0
- package/dist/common/accessor.debug.d.ts +3 -0
- package/dist/common/constants/closure-scopes-prop.d.ts +4 -0
- package/dist/common/constants/closure-scopes-prop.debug.d.ts +4 -0
- package/dist/common/types.d.ts +1 -1
- package/dist/debug/dom/catch.feat.js +1 -1
- package/dist/debug/dom/catch.feat.mjs +1 -1
- package/dist/debug/dom/controllable-input.feat.js +1 -1
- package/dist/debug/dom/controllable-input.feat.mjs +1 -1
- package/dist/debug/dom/controllable-open.feat.js +1 -1
- package/dist/debug/dom/controllable-open.feat.mjs +1 -1
- package/dist/debug/dom/controllable-select.feat.js +1 -1
- package/dist/debug/dom/controllable-select.feat.mjs +1 -1
- package/dist/debug/dom/controllable-textarea.feat.js +1 -1
- package/dist/debug/dom/controllable-textarea.feat.mjs +1 -1
- package/dist/debug/dom/controllable.feat.js +1 -1
- package/dist/debug/dom/controllable.feat.mjs +1 -1
- package/dist/debug/dom/dynamic-tag-script.feat.js +1 -1
- package/dist/debug/dom/dynamic-tag-script.feat.mjs +1 -1
- package/dist/debug/dom/dynamic-tag-var.feat.js +1 -1
- package/dist/debug/dom/dynamic-tag-var.feat.mjs +1 -1
- package/dist/debug/dom/placeholder.feat.js +1 -1
- package/dist/debug/dom/placeholder.feat.mjs +1 -1
- package/dist/debug/{dom-tl43c2wO.mjs → dom-BeCNT5R5.mjs} +12 -11
- package/dist/debug/{dom-CI0Vojyk.js → dom-DcwejnYg.js} +17 -16
- package/dist/debug/dom.js +2 -2
- package/dist/debug/dom.mjs +2 -2
- package/dist/debug/html.js +7 -11
- package/dist/debug/html.mjs +7 -11
- package/dist/dom/catch.feat.js +1 -1
- package/dist/dom/catch.feat.mjs +1 -1
- package/dist/dom/controllable-input.feat.js +1 -1
- package/dist/dom/controllable-input.feat.mjs +1 -1
- package/dist/dom/controllable-open.feat.js +1 -1
- package/dist/dom/controllable-open.feat.mjs +1 -1
- package/dist/dom/controllable-select.feat.js +1 -1
- package/dist/dom/controllable-select.feat.mjs +1 -1
- package/dist/dom/controllable-textarea.feat.js +1 -1
- package/dist/dom/controllable-textarea.feat.mjs +1 -1
- package/dist/dom/controllable.feat.js +1 -1
- package/dist/dom/controllable.feat.mjs +1 -1
- package/dist/dom/dynamic-tag-script.feat.js +1 -1
- package/dist/dom/dynamic-tag-script.feat.mjs +1 -1
- package/dist/dom/dynamic-tag-var.feat.js +1 -1
- package/dist/dom/dynamic-tag-var.feat.mjs +1 -1
- package/dist/dom/placeholder.feat.js +1 -1
- package/dist/dom/placeholder.feat.mjs +1 -1
- package/dist/dom/resume.d.ts +1 -1
- package/dist/dom/signals.d.ts +1 -1
- package/dist/{dom-4udEPZaj.mjs → dom-BwNsIevR.mjs} +11 -8
- package/dist/{dom-C1mr-TA7.js → dom-QEF0csuC.js} +12 -9
- package/dist/dom.d.ts +1 -1
- package/dist/dom.js +2 -2
- package/dist/dom.mjs +2 -2
- package/dist/html.js +5 -10
- package/dist/html.mjs +5 -10
- package/dist/translator/index.js +102 -118
- package/dist/translator/util/optional.d.ts +1 -3
- package/dist/translator/util/references.d.ts +3 -0
- package/dist/translator/util/serialize-reasons.d.ts +2 -0
- package/dist/translator/util/translate-attrs.d.ts +2 -1
- package/package.json +4 -4
- package/tags-html.d.ts +4 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as controllableScripts, I as _attr_select_value_script } from "../dom-
|
|
1
|
+
import { H as controllableScripts, I as _attr_select_value_script } from "../dom-BwNsIevR.mjs";
|
|
2
2
|
//#region src/dom/controllable-select.feat.ts
|
|
3
3
|
controllableScripts[3] = _attr_select_value_script;
|
|
4
4
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as controllableScripts, N as _attr_input_value_script } from "../dom-
|
|
1
|
+
import { H as controllableScripts, N as _attr_input_value_script } from "../dom-BwNsIevR.mjs";
|
|
2
2
|
//#region src/dom/controllable-textarea.feat.ts
|
|
3
3
|
controllableScripts[2] = _attr_input_value_script;
|
|
4
4
|
//#endregion
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
let require_control_flow = require("../dom-
|
|
1
|
+
let require_control_flow = require("../dom-QEF0csuC.js");
|
|
2
2
|
require("./controllable-input.feat.js"), require("./controllable-open.feat.js"), require("./controllable-select.feat.js"), require_control_flow.V.INPUT = require_control_flow.L, require_control_flow.V.TEXTAREA = require_control_flow.B, require_control_flow.V.SELECT = require_control_flow.z, require_control_flow.V.DETAILS = require_control_flow.V.DIALOG = require_control_flow.R;
|
|
3
3
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as _controllable_textarea, L as _controllable_input, R as _controllable_open, V as controllableRenders, z as _controllable_select } from "../dom-
|
|
1
|
+
import { B as _controllable_textarea, L as _controllable_input, R as _controllable_open, V as controllableRenders, z as _controllable_select } from "../dom-BwNsIevR.mjs";
|
|
2
2
|
import "./controllable-input.feat.mjs";
|
|
3
3
|
import "./controllable-open.feat.mjs";
|
|
4
4
|
import "./controllable-select.feat.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bt as _resumed, g as dynamicTagScript, yn as withBranches } from "../dom-
|
|
1
|
+
import { bt as _resumed, g as dynamicTagScript, yn as withBranches } from "../dom-BwNsIevR.mjs";
|
|
2
2
|
//#region src/dom/dynamic-tag-script.feat.ts
|
|
3
3
|
_resumed._d = withBranches(dynamicTagScript);
|
|
4
4
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Yt as destroyBranch, bt as _resumed } from "../dom-
|
|
1
|
+
import { Yt as destroyBranch, bt as _resumed } from "../dom-BwNsIevR.mjs";
|
|
2
2
|
//#region src/dom/placeholder.feat.ts
|
|
3
3
|
_resumed._f = (tryBranch) => {
|
|
4
4
|
tryBranch.P &&= (destroyBranch(tryBranch.P), 0);
|
package/dist/dom/resume.d.ts
CHANGED
|
@@ -33,5 +33,5 @@ export declare let isResuming: undefined | 0 | 1;
|
|
|
33
33
|
export declare function getRegisteredWithScope(id: string, scope?: Scope): unknown;
|
|
34
34
|
export declare function _var_resume<T extends Signal<unknown>>(id: string, signal: T): T;
|
|
35
35
|
export declare function _el(id: string, accessor: EncodedAccessor): (scope: Scope) => () => any;
|
|
36
|
-
export declare function
|
|
36
|
+
export declare function _dynamic_tag_var_resume(accessor: EncodedAccessor): void;
|
|
37
37
|
export {};
|
package/dist/dom/signals.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare function _for_selector(ownerLoopNodeAccessor: EncodedAccessor, ow
|
|
|
10
10
|
export declare function _if_closure(ownerConditionalNodeAccessor: EncodedAccessor, branch: number, fn: SignalFn): SignalFn;
|
|
11
11
|
export declare function subscribeToScopeSet(ownerScope: Scope, accessor: Accessor, scope: Scope): void;
|
|
12
12
|
export declare function _closure(...closureSignals: ReturnType<typeof _closure_get>[]): (scope: Scope) => void;
|
|
13
|
-
export declare function _closure_get(valueAccessor: EncodedAccessor, fn: SignalFn, getOwnerScope?: (scope: Scope) => Scope, resumeId?: string
|
|
13
|
+
export declare function _closure_get(valueAccessor: EncodedAccessor, fn: SignalFn, getOwnerScope?: (scope: Scope) => Scope, resumeId?: string): ((scope: Scope, resumed?: 1) => void) & {
|
|
14
14
|
scopeInstancesAccessor: string;
|
|
15
15
|
signalIndexAccessor: string;
|
|
16
16
|
index: number;
|
|
@@ -439,16 +439,19 @@ function _closure(...closureSignals) {
|
|
|
439
439
|
let [firstSignal] = closureSignals, scopeInstances = firstSignal.a, signalIndex = firstSignal.b;
|
|
440
440
|
for (let i = closureSignals.length; i--;) closureSignals[i].c = i;
|
|
441
441
|
return (scope) => {
|
|
442
|
-
if (scope[scopeInstances])
|
|
442
|
+
if (scope[scopeInstances]) {
|
|
443
|
+
scope[scopeInstances]._ = 1;
|
|
444
|
+
for (let childScope of scope[scopeInstances]) childScope.H > 0 && childScope.H < runId && queueRender(childScope, closureSignals[childScope[signalIndex] || 0], -1);
|
|
445
|
+
}
|
|
443
446
|
};
|
|
444
447
|
}
|
|
445
|
-
function _closure_get(valueAccessor, fn, getOwnerScope, resumeId
|
|
448
|
+
function _closure_get(valueAccessor, fn, getOwnerScope, resumeId) {
|
|
446
449
|
valueAccessor = decodeAccessor(valueAccessor);
|
|
447
450
|
let closureSignal = ((scope, resumed) => {
|
|
448
451
|
let ownerScope = getOwnerScope ? getOwnerScope(scope) : scope._;
|
|
449
|
-
scope[closureSignal.b] = closureSignal.c, (!resumed ||
|
|
452
|
+
scope[closureSignal.b] = closureSignal.c, (!resumed || ownerScope[closureSignal.a]._) && fn(scope), subscribeToScopeSet(ownerScope, closureSignal.a, scope);
|
|
450
453
|
});
|
|
451
|
-
return closureSignal.a = valueAccessor, closureSignal.b = "C" + valueAccessor, resumeId && (
|
|
454
|
+
return closureSignal.a = valueAccessor, closureSignal.b = "C" + valueAccessor, resumeId && (_resumed[resumeId] = (scope) => closureSignal(scope, 1)), closureSignal;
|
|
452
455
|
}
|
|
453
456
|
function _child_setup(setup) {
|
|
454
457
|
return setup._ = (scope, owner) => {
|
|
@@ -610,7 +613,7 @@ function _var_resume(id, signal) {
|
|
|
610
613
|
function _el(id, accessor) {
|
|
611
614
|
return accessor = decodeAccessor(accessor), _resumed[id] = (scope) => () => scope[accessor];
|
|
612
615
|
}
|
|
613
|
-
function
|
|
616
|
+
function _dynamic_tag_var_resume(accessor) {
|
|
614
617
|
accessor = decodeAccessor(accessor), _resumed["-" + accessor] = (scope) => () => {
|
|
615
618
|
let node = scope[accessor];
|
|
616
619
|
return node.nodeType === 8 ? node.previousSibling : node;
|
|
@@ -1029,10 +1032,10 @@ function _await_promise(nodeAccessor, params) {
|
|
|
1029
1032
|
isPromise(scope[promiseAccessor]) || (scope[promiseAccessor] = 0);
|
|
1030
1033
|
let awaitBranch = scope[branchAccessor], tryPlaceholder = (isPromise(promise) || scope[promiseAccessor]) && findBranchWithKey(scope, "Q"), tryBranch = tryPlaceholder || awaitBranch;
|
|
1031
1034
|
if (!tryBranch) {
|
|
1032
|
-
let
|
|
1035
|
+
let deferred = scope[promiseAccessor] = () => deferred === scope[promiseAccessor] && awaitPromise(scope, promise), awaitCounter = findBranchWithKey(scope, "Q")?.O;
|
|
1033
1036
|
if (awaitCounter?.i) {
|
|
1034
1037
|
let complete = awaitCounter.c;
|
|
1035
|
-
awaitCounter.c = () => complete() || queueAsyncRender(scope,
|
|
1038
|
+
awaitCounter.c = () => complete() || queueAsyncRender(scope, deferred);
|
|
1036
1039
|
}
|
|
1037
1040
|
return;
|
|
1038
1041
|
}
|
|
@@ -1168,4 +1171,4 @@ function byFirstArg(name) {
|
|
|
1168
1171
|
return name;
|
|
1169
1172
|
}
|
|
1170
1173
|
//#endregion
|
|
1171
|
-
export { _attrs_content as $, _on as $t, _attr_input_value_attribute_default as A, _closure_get as At, _controllable_textarea as B, _let as Bt, _attr_input_checked as C, init as Ct, _attr_input_checked_default as D, withLazy as Dt, _attr_input_checkedValue_script as E, readyFailed as Et, _attr_select_value_default as F, _global_read as Ft, _attr_class_item as G, _script as Gt, controllableScripts as H, _or as Ht, _attr_select_value_script as I, _hoist as It, _attr_nonce as J, _assert_init as Jt, _attr_class_items as K, _var as Kt, _controllable_input as L, _hoist_resume as Lt, _attr_input_value_dynamic_default as M, _el_read as Mt, _attr_input_value_script as N, _for_closure as Nt, _attr_input_checked_script as O, _child_setup as Ot, _attr_select_value as P, _for_selector as Pt, _attrs as Q, syncGen as Qt, _controllable_open as R, _id as Rt, _attr_details_or_dialog_open_script as S, getRegisteredWithScope as St, _attr_input_checkedValue_default as T, ready as Tt, _attr as U, _return as Ut, controllableRenders as V, _let_change as Vt, _attr_class as W, _return_change as Wt, _attr_style_item as X, insertBranchBefore as Xt, _attr_style as Y, destroyBranch as Yt, _attr_style_items as Z, removeAndDestroyBranch as Zt, installDynamicTagVar as _, _hoist_read_error as _n, setupBranch as _t, _for_in as a, prepareEffects as an, _style_rule_item as at, _attr_details_or_dialog_open as b, _resumed as bt, _for_to as c, queueRender as cn, _text_content as ct, _for_until_unkeyed as d, runId as dn, toInsertNode as dt, $signal as en, _attrs_partial as et, _if as f, forIn as fn, _content as ft, dynamicTagScript as g, _assert_hoist as gn, createBranch as gt, addAwaitCounter as h, forUntil as hn, createAndSetupBranch as ht, _dynamic_tag_content as i, placeholderShown as in, _lifecycle as it, _attr_input_value_default as j, _const as jt, _attr_input_value as k, _closure as kt, _for_to_unkeyed as l, run as ln, _to_text as lt, _try as m, forTo as mn, _content_resume as mt, _await_promise as n, caughtError as nn, _attrs_script as nt, _for_of as o, queueAsyncRender as on, _style_shell as ot, _show as p, forOf as pn, _content_closures as pt, _attr_content as q, _var_change as qt, _dynamic_tag as r, installCatch as rn, _html as rt, _for_of_unkeyed as s, queueEffect as sn, _text as st, _await_content as t, $signalReset as tn, _attrs_partial_content as tt, _for_until as u, runEffects as un, insertChildNodes as ut, patchDynamicTag as v, _call as vn,
|
|
1174
|
+
export { _attrs_content as $, _on as $t, _attr_input_value_attribute_default as A, _closure_get as At, _controllable_textarea as B, _let as Bt, _attr_input_checked as C, init as Ct, _attr_input_checked_default as D, withLazy as Dt, _attr_input_checkedValue_script as E, readyFailed as Et, _attr_select_value_default as F, _global_read as Ft, _attr_class_item as G, _script as Gt, controllableScripts as H, _or as Ht, _attr_select_value_script as I, _hoist as It, _attr_nonce as J, _assert_init as Jt, _attr_class_items as K, _var as Kt, _controllable_input as L, _hoist_resume as Lt, _attr_input_value_dynamic_default as M, _el_read as Mt, _attr_input_value_script as N, _for_closure as Nt, _attr_input_checked_script as O, _child_setup as Ot, _attr_select_value as P, _for_selector as Pt, _attrs as Q, syncGen as Qt, _controllable_open as R, _id as Rt, _attr_details_or_dialog_open_script as S, getRegisteredWithScope as St, _attr_input_checkedValue_default as T, ready as Tt, _attr as U, _return as Ut, controllableRenders as V, _let_change as Vt, _attr_class as W, _return_change as Wt, _attr_style_item as X, insertBranchBefore as Xt, _attr_style as Y, destroyBranch as Yt, _attr_style_items as Z, removeAndDestroyBranch as Zt, installDynamicTagVar as _, _hoist_read_error as _n, setupBranch as _t, _for_in as a, prepareEffects as an, _style_rule_item as at, _attr_details_or_dialog_open as b, _resumed as bt, _for_to as c, queueRender as cn, _text_content as ct, _for_until_unkeyed as d, runId as dn, toInsertNode as dt, $signal as en, _attrs_partial as et, _if as f, forIn as fn, _content as ft, dynamicTagScript as g, _assert_hoist as gn, createBranch as gt, addAwaitCounter as h, forUntil as hn, createAndSetupBranch as ht, _dynamic_tag_content as i, placeholderShown as in, _lifecycle as it, _attr_input_value_default as j, _const as jt, _attr_input_value as k, _closure as kt, _for_to_unkeyed as l, run as ln, _to_text as lt, _try as m, forTo as mn, _content_resume as mt, _await_promise as n, caughtError as nn, _attrs_script as nt, _for_of as o, queueAsyncRender as on, _style_shell as ot, _show as p, forOf as pn, _content_closures as pt, _attr_content as q, _var_change as qt, _dynamic_tag as r, installCatch as rn, _html as rt, _for_of_unkeyed as s, queueEffect as sn, _text as st, _await_content as t, $signalReset as tn, _attrs_partial_content as tt, _for_until as u, runEffects as un, insertChildNodes as ut, patchDynamicTag as v, _call as vn, _dynamic_tag_var_resume as vt, _attr_input_checkedValue as w, initEmbedded as wt, _attr_details_or_dialog_open_default as x, _var_resume as xt, renderCatch as y, withBranches as yn, _el as yt, _controllable_select as z, _if_closure as zt };
|
|
@@ -439,16 +439,19 @@ function _closure(...closureSignals) {
|
|
|
439
439
|
let [firstSignal] = closureSignals, scopeInstances = firstSignal.a, signalIndex = firstSignal.b;
|
|
440
440
|
for (let i = closureSignals.length; i--;) closureSignals[i].c = i;
|
|
441
441
|
return (scope) => {
|
|
442
|
-
if (scope[scopeInstances])
|
|
442
|
+
if (scope[scopeInstances]) {
|
|
443
|
+
scope[scopeInstances]._ = 1;
|
|
444
|
+
for (let childScope of scope[scopeInstances]) childScope.H > 0 && childScope.H < runId && queueRender(childScope, closureSignals[childScope[signalIndex] || 0], -1);
|
|
445
|
+
}
|
|
443
446
|
};
|
|
444
447
|
}
|
|
445
|
-
function _closure_get(valueAccessor, fn, getOwnerScope, resumeId
|
|
448
|
+
function _closure_get(valueAccessor, fn, getOwnerScope, resumeId) {
|
|
446
449
|
valueAccessor = decodeAccessor(valueAccessor);
|
|
447
450
|
let closureSignal = ((scope, resumed) => {
|
|
448
451
|
let ownerScope = getOwnerScope ? getOwnerScope(scope) : scope._;
|
|
449
|
-
scope[closureSignal.b] = closureSignal.c, (!resumed ||
|
|
452
|
+
scope[closureSignal.b] = closureSignal.c, (!resumed || ownerScope[closureSignal.a]._) && fn(scope), subscribeToScopeSet(ownerScope, closureSignal.a, scope);
|
|
450
453
|
});
|
|
451
|
-
return closureSignal.a = valueAccessor, closureSignal.b = "C" + valueAccessor, resumeId && (
|
|
454
|
+
return closureSignal.a = valueAccessor, closureSignal.b = "C" + valueAccessor, resumeId && (_resumed[resumeId] = (scope) => closureSignal(scope, 1)), closureSignal;
|
|
452
455
|
}
|
|
453
456
|
function _child_setup(setup) {
|
|
454
457
|
return setup._ = (scope, owner) => {
|
|
@@ -610,7 +613,7 @@ function _var_resume(id, signal) {
|
|
|
610
613
|
function _el(id, accessor) {
|
|
611
614
|
return accessor = decodeAccessor(accessor), _resumed[id] = (scope) => () => scope[accessor];
|
|
612
615
|
}
|
|
613
|
-
function
|
|
616
|
+
function _dynamic_tag_var_resume(accessor) {
|
|
614
617
|
accessor = decodeAccessor(accessor), _resumed["-" + accessor] = (scope) => () => {
|
|
615
618
|
let node = scope[accessor];
|
|
616
619
|
return node.nodeType === 8 ? node.previousSibling : node;
|
|
@@ -1029,10 +1032,10 @@ function _await_promise(nodeAccessor, params) {
|
|
|
1029
1032
|
isPromise(scope[promiseAccessor]) || (scope[promiseAccessor] = 0);
|
|
1030
1033
|
let awaitBranch = scope[branchAccessor], tryPlaceholder = (isPromise(promise) || scope[promiseAccessor]) && findBranchWithKey(scope, "Q"), tryBranch = tryPlaceholder || awaitBranch;
|
|
1031
1034
|
if (!tryBranch) {
|
|
1032
|
-
let
|
|
1035
|
+
let deferred = scope[promiseAccessor] = () => deferred === scope[promiseAccessor] && awaitPromise(scope, promise), awaitCounter = findBranchWithKey(scope, "Q")?.O;
|
|
1033
1036
|
if (awaitCounter?.i) {
|
|
1034
1037
|
let complete = awaitCounter.c;
|
|
1035
|
-
awaitCounter.c = () => complete() || queueAsyncRender(scope,
|
|
1038
|
+
awaitCounter.c = () => complete() || queueAsyncRender(scope, deferred);
|
|
1036
1039
|
}
|
|
1037
1040
|
return;
|
|
1038
1041
|
}
|
|
@@ -1755,7 +1758,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1755
1758
|
}), Object.defineProperty(exports, "vt", {
|
|
1756
1759
|
enumerable: !0,
|
|
1757
1760
|
get: function() {
|
|
1758
|
-
return
|
|
1761
|
+
return _dynamic_tag_var_resume;
|
|
1759
1762
|
}
|
|
1760
1763
|
}), Object.defineProperty(exports, "w", {
|
|
1761
1764
|
enumerable: !0,
|
|
@@ -1790,7 +1793,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1790
1793
|
}), Object.defineProperty(exports, "yt", {
|
|
1791
1794
|
enumerable: !0,
|
|
1792
1795
|
get: function() {
|
|
1793
|
-
return
|
|
1796
|
+
return _el;
|
|
1794
1797
|
}
|
|
1795
1798
|
}), Object.defineProperty(exports, "z", {
|
|
1796
1799
|
enumerable: !0,
|
package/dist/dom.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export { _on } from "./dom/event";
|
|
|
11
11
|
export { _load_event_trigger, _load_idle_trigger, _load_media_trigger, _load_race_trigger, _load_setup, _load_signal, _load_template, _load_visible_trigger, } from "./dom/load";
|
|
12
12
|
export { run } from "./dom/queue";
|
|
13
13
|
export { _content, _content_closures, _content_resume } from "./dom/renderer";
|
|
14
|
-
export {
|
|
14
|
+
export { _dynamic_tag_var_resume, _el, _resumed, _var_resume, init, initEmbedded, ready, readyFailed, } from "./dom/resume";
|
|
15
15
|
export { _assert_init } from "./dom/scope";
|
|
16
16
|
export { _child_setup, _closure, _closure_get, _const, _el_read, _global_read, _for_closure, _for_selector, _hoist, _hoist_resume, _id, _if_closure, _let, _let_change, _or, _return, _return_change, _script, _var, _var_change, } from "./dom/signals";
|
|
17
17
|
export { _template } from "./dom/template";
|
package/dist/dom.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
let require_control_flow = require("./dom-
|
|
1
|
+
let require_control_flow = require("./dom-QEF0csuC.js"), empty = [], rest = Symbol(), classIdToBranch = /* @__PURE__ */ new Map(), classEventResolver, scopesByRender = /* @__PURE__ */ new WeakMap(), getRenderScopes = ($global) => {
|
|
2
2
|
require_control_flow.Ct($global.runtimeId);
|
|
3
3
|
let render = self[$global.runtimeId]?.[$global.renderId], scopes = render && scopesByRender.get(render);
|
|
4
4
|
return render && !scopes && scopesByRender.set(render, scopes = {}), scopes;
|
|
@@ -199,4 +199,4 @@ exports.$signal = require_control_flow.en, exports.$signalReset = require_contro
|
|
|
199
199
|
get: function() {
|
|
200
200
|
return require_control_flow.r;
|
|
201
201
|
}
|
|
202
|
-
}), exports._dynamic_tag_content = require_control_flow.i, exports.
|
|
202
|
+
}), exports._dynamic_tag_content = require_control_flow.i, exports._dynamic_tag_var_resume = require_control_flow.vt, exports._el = require_control_flow.yt, exports._el_read = require_control_flow.Mt, exports._for_closure = require_control_flow.Nt, exports._for_in = require_control_flow.a, exports._for_of = require_control_flow.o, exports._for_of_unkeyed = require_control_flow.s, exports._for_selector = require_control_flow.Pt, exports._for_to = require_control_flow.c, exports._for_to_unkeyed = require_control_flow.l, exports._for_until = require_control_flow.u, exports._for_until_unkeyed = require_control_flow.d, exports._global_read = require_control_flow.Ft, exports._hoist = require_control_flow.It, exports._hoist_read_error = require_control_flow._n, exports._hoist_resume = require_control_flow.Lt, exports._html = require_control_flow.rt, exports._id = require_control_flow.Rt, exports._if = require_control_flow.f, exports._if_closure = require_control_flow.zt, exports._let = require_control_flow.Bt, exports._let_change = require_control_flow.Vt, exports._lifecycle = require_control_flow.it, exports._load_event_trigger = _load_event_trigger, exports._load_idle_trigger = _load_idle_trigger, exports._load_media_trigger = _load_media_trigger, exports._load_race_trigger = _load_race_trigger, exports._load_setup = _load_setup, exports._load_signal = _load_signal, exports._load_template = _load_template, exports._load_visible_trigger = _load_visible_trigger, exports._on = require_control_flow.$t, exports._or = require_control_flow.Ht, exports._resumed = require_control_flow.bt, exports._return = require_control_flow.Ut, exports._return_change = require_control_flow.Wt, exports._script = require_control_flow.Gt, exports._show = require_control_flow.p, exports._style_rule_item = require_control_flow.at, exports._style_shell = require_control_flow.ot, exports._template = _template, exports._text = require_control_flow.st, exports._text_content = require_control_flow.ct, exports._to_text = require_control_flow.lt, exports._try = require_control_flow.m, exports._var = require_control_flow.Kt, exports._var_change = require_control_flow.qt, exports._var_resume = require_control_flow.xt, exports.attrTag = attrTag, exports.attrTags = attrTags, exports.compat = compat, exports.forIn = require_control_flow.fn, exports.forOf = require_control_flow.pn, exports.forTo = require_control_flow.mn, exports.forUntil = require_control_flow.hn, exports.init = require_control_flow.Ct, exports.initEmbedded = require_control_flow.wt, exports.ready = require_control_flow.Tt, exports.readyFailed = require_control_flow.Et, exports.run = require_control_flow.ln;
|
package/dist/dom.mjs
CHANGED
|
@@ -92,7 +92,7 @@ let empty = [], rest = Symbol(), classIdToBranch = /* @__PURE__ */ new Map(), cl
|
|
|
92
92
|
};
|
|
93
93
|
return apply;
|
|
94
94
|
});
|
|
95
|
-
import { $ as _attrs_content, $t as _on, A as _attr_input_value_attribute_default, At as _closure_get, B as _controllable_textarea, Bt as _let, C as _attr_input_checked, Ct as init, D as _attr_input_checked_default, Dt as withLazy, E as _attr_input_checkedValue_script, Et as readyFailed, F as _attr_select_value_default, Ft as _global_read, G as _attr_class_item, Gt as _script, Ht as _or, I as _attr_select_value_script, It as _hoist, J as _attr_nonce, Jt as _assert_init, K as _attr_class_items, Kt as _var, L as _controllable_input, Lt as _hoist_resume, M as _attr_input_value_dynamic_default, Mt as _el_read, N as _attr_input_value_script, Nt as _for_closure, O as _attr_input_checked_script, Ot as _child_setup, P as _attr_select_value, Pt as _for_selector, Q as _attrs, Qt as syncGen, R as _controllable_open, Rt as _id, S as _attr_details_or_dialog_open_script, St as getRegisteredWithScope, T as _attr_input_checkedValue_default, Tt as ready, U as _attr, Ut as _return, Vt as _let_change, W as _attr_class, Wt as _return_change, X as _attr_style_item, Xt as insertBranchBefore, Y as _attr_style, Yt as destroyBranch, Z as _attr_style_items, Zt as removeAndDestroyBranch, _n as _hoist_read_error, _t as setupBranch, a as _for_in, an as prepareEffects, at as _style_rule_item, b as _attr_details_or_dialog_open, bt as _resumed, c as _for_to, cn as queueRender, ct as _text_content, d as _for_until_unkeyed, dn as runId, dt as toInsertNode, en as $signal, et as _attrs_partial, f as _if, fn as forIn, ft as _content, gn as _assert_hoist, gt as createBranch, h as addAwaitCounter, hn as forUntil, ht as createAndSetupBranch, i as _dynamic_tag_content, it as _lifecycle, j as _attr_input_value_default, jt as _const, k as _attr_input_value, kt as _closure, l as _for_to_unkeyed, ln as run, lt as _to_text, m as _try, mn as forTo, mt as _content_resume, n as _await_promise, nt as _attrs_script, o as _for_of, on as queueAsyncRender, ot as _style_shell, p as _show, pn as forOf, pt as _content_closures, q as _attr_content, qt as _var_change, r as _dynamic_tag, rt as _html, s as _for_of_unkeyed, sn as queueEffect, st as _text, t as _await_content, tn as $signalReset, tt as _attrs_partial_content, u as _for_until, un as runEffects, ut as insertChildNodes, v as patchDynamicTag, vn as _call, vt as
|
|
95
|
+
import { $ as _attrs_content, $t as _on, A as _attr_input_value_attribute_default, At as _closure_get, B as _controllable_textarea, Bt as _let, C as _attr_input_checked, Ct as init, D as _attr_input_checked_default, Dt as withLazy, E as _attr_input_checkedValue_script, Et as readyFailed, F as _attr_select_value_default, Ft as _global_read, G as _attr_class_item, Gt as _script, Ht as _or, I as _attr_select_value_script, It as _hoist, J as _attr_nonce, Jt as _assert_init, K as _attr_class_items, Kt as _var, L as _controllable_input, Lt as _hoist_resume, M as _attr_input_value_dynamic_default, Mt as _el_read, N as _attr_input_value_script, Nt as _for_closure, O as _attr_input_checked_script, Ot as _child_setup, P as _attr_select_value, Pt as _for_selector, Q as _attrs, Qt as syncGen, R as _controllable_open, Rt as _id, S as _attr_details_or_dialog_open_script, St as getRegisteredWithScope, T as _attr_input_checkedValue_default, Tt as ready, U as _attr, Ut as _return, Vt as _let_change, W as _attr_class, Wt as _return_change, X as _attr_style_item, Xt as insertBranchBefore, Y as _attr_style, Yt as destroyBranch, Z as _attr_style_items, Zt as removeAndDestroyBranch, _n as _hoist_read_error, _t as setupBranch, a as _for_in, an as prepareEffects, at as _style_rule_item, b as _attr_details_or_dialog_open, bt as _resumed, c as _for_to, cn as queueRender, ct as _text_content, d as _for_until_unkeyed, dn as runId, dt as toInsertNode, en as $signal, et as _attrs_partial, f as _if, fn as forIn, ft as _content, gn as _assert_hoist, gt as createBranch, h as addAwaitCounter, hn as forUntil, ht as createAndSetupBranch, i as _dynamic_tag_content, it as _lifecycle, j as _attr_input_value_default, jt as _const, k as _attr_input_value, kt as _closure, l as _for_to_unkeyed, ln as run, lt as _to_text, m as _try, mn as forTo, mt as _content_resume, n as _await_promise, nt as _attrs_script, o as _for_of, on as queueAsyncRender, ot as _style_shell, p as _show, pn as forOf, pt as _content_closures, q as _attr_content, qt as _var_change, r as _dynamic_tag, rt as _html, s as _for_of_unkeyed, sn as queueEffect, st as _text, t as _await_content, tn as $signalReset, tt as _attrs_partial_content, u as _for_until, un as runEffects, ut as insertChildNodes, v as patchDynamicTag, vn as _call, vt as _dynamic_tag_var_resume, w as _attr_input_checkedValue, wt as initEmbedded, x as _attr_details_or_dialog_open_default, xt as _var_resume, y as renderCatch, yt as _el, z as _controllable_select, zt as _if_closure } from "./dom-BwNsIevR.mjs";
|
|
96
96
|
//#region src/common/attr-tag.ts
|
|
97
97
|
function attrTag(attrs) {
|
|
98
98
|
return attrs[Symbol.iterator] = attrTagIterator, attrs[rest] = empty, attrs;
|
|
@@ -195,4 +195,4 @@ function getSelectorOrResolve(selector, resolve) {
|
|
|
195
195
|
return document.querySelector(selector) || resolve();
|
|
196
196
|
}
|
|
197
197
|
//#endregion
|
|
198
|
-
export { $signal, $signalReset, _assert_hoist, _assert_init, _attr, _attr_class, _attr_class_item, _attr_class_items, _attr_content, _attr_details_or_dialog_open as _attr_details_open, _attr_details_or_dialog_open as _attr_dialog_open, _attr_details_or_dialog_open_default as _attr_details_open_default, _attr_details_or_dialog_open_default as _attr_dialog_open_default, _attr_details_or_dialog_open_script as _attr_details_open_script, _attr_details_or_dialog_open_script as _attr_dialog_open_script, _attr_input_checked, _attr_input_checkedValue, _attr_input_checkedValue_default, _attr_input_checkedValue_script, _attr_input_checked_default, _attr_input_checked_script, _attr_input_value, _attr_input_value as _attr_textarea_value, _attr_input_value_attribute_default, _attr_input_value_default, _attr_input_value_default as _attr_textarea_value_default, _attr_input_value_dynamic_default, _attr_input_value_script, _attr_input_value_script as _attr_textarea_value_script, _attr_nonce, _attr_select_value, _attr_select_value_default, _attr_select_value_script, _attr_style, _attr_style_item, _attr_style_items, _attrs, _attrs_content, _attrs_partial, _attrs_partial_content, _attrs_script, _await_content, _await_promise, _call, _child_setup, _closure, _closure_get, _const, _content, _content_closures, _content_resume, _controllable_input, _controllable_open, _controllable_select, _controllable_textarea, _dynamic_tag, _dynamic_tag_content, _el, _el_read, _for_closure, _for_in, _for_of, _for_of_unkeyed, _for_selector, _for_to, _for_to_unkeyed, _for_until, _for_until_unkeyed, _global_read, _hoist, _hoist_read_error, _hoist_resume, _html, _id, _if, _if_closure, _let, _let_change, _lifecycle, _load_event_trigger, _load_idle_trigger, _load_media_trigger, _load_race_trigger, _load_setup, _load_signal, _load_template, _load_visible_trigger, _on, _or,
|
|
198
|
+
export { $signal, $signalReset, _assert_hoist, _assert_init, _attr, _attr_class, _attr_class_item, _attr_class_items, _attr_content, _attr_details_or_dialog_open as _attr_details_open, _attr_details_or_dialog_open as _attr_dialog_open, _attr_details_or_dialog_open_default as _attr_details_open_default, _attr_details_or_dialog_open_default as _attr_dialog_open_default, _attr_details_or_dialog_open_script as _attr_details_open_script, _attr_details_or_dialog_open_script as _attr_dialog_open_script, _attr_input_checked, _attr_input_checkedValue, _attr_input_checkedValue_default, _attr_input_checkedValue_script, _attr_input_checked_default, _attr_input_checked_script, _attr_input_value, _attr_input_value as _attr_textarea_value, _attr_input_value_attribute_default, _attr_input_value_default, _attr_input_value_default as _attr_textarea_value_default, _attr_input_value_dynamic_default, _attr_input_value_script, _attr_input_value_script as _attr_textarea_value_script, _attr_nonce, _attr_select_value, _attr_select_value_default, _attr_select_value_script, _attr_style, _attr_style_item, _attr_style_items, _attrs, _attrs_content, _attrs_partial, _attrs_partial_content, _attrs_script, _await_content, _await_promise, _call, _child_setup, _closure, _closure_get, _const, _content, _content_closures, _content_resume, _controllable_input, _controllable_open, _controllable_select, _controllable_textarea, _dynamic_tag, _dynamic_tag_content, _dynamic_tag_var_resume, _el, _el_read, _for_closure, _for_in, _for_of, _for_of_unkeyed, _for_selector, _for_to, _for_to_unkeyed, _for_until, _for_until_unkeyed, _global_read, _hoist, _hoist_read_error, _hoist_resume, _html, _id, _if, _if_closure, _let, _let_change, _lifecycle, _load_event_trigger, _load_idle_trigger, _load_media_trigger, _load_race_trigger, _load_setup, _load_signal, _load_template, _load_visible_trigger, _on, _or, _resumed, _return, _return_change, _script, _show, _style_rule_item, _style_shell, _template, _text, _text_content, _to_text, _try, _var, _var_change, _var_resume, attrTag, attrTags, compat, forIn, forOf, forTo, forUntil, init, initEmbedded, ready, readyFailed, run };
|
package/dist/html.js
CHANGED
|
@@ -486,7 +486,7 @@ var State$1 = class {
|
|
|
486
486
|
strs = /* @__PURE__ */ new Map();
|
|
487
487
|
refs = /* @__PURE__ */ new WeakMap();
|
|
488
488
|
pendingAssignments = /* @__PURE__ */ new Set();
|
|
489
|
-
boundary
|
|
489
|
+
boundary;
|
|
490
490
|
channel = void 0;
|
|
491
491
|
channelDeps = null;
|
|
492
492
|
mutated = [];
|
|
@@ -798,9 +798,7 @@ function writeRegExp(state, val) {
|
|
|
798
798
|
return source.includes("<") ? state.buf.push(`RegExp(${quote(source, 0)}${val.flags ? ",\"" + val.flags + "\"" : ""})`) : state.buf.push("/" + (unsafeRegExpSourceDetect.test(source) ? source.replace(unsafeRegExpSourceReg, replaceUnsafeRegExpSourceChar) : source) + "/" + val.flags), !0;
|
|
799
799
|
}
|
|
800
800
|
function writePromise(state, val, ref) {
|
|
801
|
-
let { boundary, channel } = state;
|
|
802
|
-
if (!boundary) return !1;
|
|
803
|
-
let pId = nextRefAccess(state), handle = newAsyncHandle(state, ref, pId);
|
|
801
|
+
let { boundary, channel } = state, pId = nextRefAccess(state), handle = newAsyncHandle(state, ref, pId);
|
|
804
802
|
return state.buf.push("(p=>p=new Promise((f,r)=>" + pId + "={f,r(e){p.catch(_=>0);r(e)}}))()"), val.then((v) => writeAsyncCall(state, boundary, handle, "f", v, channel, pId), (v) => writeAsyncCall(state, boundary, handle, "r", v, channel, pId)), boundary.startAsync(), !0;
|
|
805
803
|
}
|
|
806
804
|
function newAsyncHandle(state, parent, id) {
|
|
@@ -980,9 +978,8 @@ function writeTemporal(state, val, name) {
|
|
|
980
978
|
return state.buf.push("Temporal." + name + ".from(" + quote(val.toString(), 0) + ")"), !0;
|
|
981
979
|
}
|
|
982
980
|
function writeReadableStream(state, val, ref) {
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
let reader = val.getReader(), iterId = nextRefAccess(state), handle = newAsyncHandle(state, ref, iterId), onFulfilled = ({ value, done }) => {
|
|
981
|
+
if (val.locked) return !1;
|
|
982
|
+
let { boundary, channel } = state, reader = val.getReader(), iterId = nextRefAccess(state), handle = newAsyncHandle(state, ref, iterId), onFulfilled = ({ value, done }) => {
|
|
986
983
|
done ? writeAsyncCall(state, boundary, handle, "r", value, channel) : boundary.signal.aborted || (reader.read().then(onFulfilled, onRejected), boundary.startAsync(), writeAsyncCall(state, boundary, handle, "f", value, channel));
|
|
987
984
|
}, onRejected = (reason) => {
|
|
988
985
|
writeAsyncCall(state, boundary, handle, "j", reason, channel);
|
|
@@ -1020,9 +1017,7 @@ function writeGenerator(state, iter, ref) {
|
|
|
1020
1017
|
}
|
|
1021
1018
|
function writeAsyncGenerator(state, iter, ref) {
|
|
1022
1019
|
if (iter[kTouchedIterator]) return state.buf.push("(async function*(){}())"), !0;
|
|
1023
|
-
let { boundary, channel } = state
|
|
1024
|
-
if (!boundary) return !1;
|
|
1025
|
-
let iterId = nextRefAccess(state), handle = newAsyncHandle(state, ref, iterId), onFulfilled = ({ value, done }) => {
|
|
1020
|
+
let { boundary, channel } = state, iterId = nextRefAccess(state), handle = newAsyncHandle(state, ref, iterId), onFulfilled = ({ value, done }) => {
|
|
1026
1021
|
done ? writeAsyncCall(state, boundary, handle, "r", value, channel) : boundary.signal.aborted || (iter.next().then(onFulfilled, onRejected), boundary.startAsync(), writeAsyncCall(state, boundary, handle, "f", value, channel));
|
|
1027
1022
|
}, onRejected = (reason) => {
|
|
1028
1023
|
writeAsyncCall(state, boundary, handle, "j", reason, channel);
|
package/dist/html.mjs
CHANGED
|
@@ -485,7 +485,7 @@ var State$1 = class {
|
|
|
485
485
|
strs = /* @__PURE__ */ new Map();
|
|
486
486
|
refs = /* @__PURE__ */ new WeakMap();
|
|
487
487
|
pendingAssignments = /* @__PURE__ */ new Set();
|
|
488
|
-
boundary
|
|
488
|
+
boundary;
|
|
489
489
|
channel = void 0;
|
|
490
490
|
channelDeps = null;
|
|
491
491
|
mutated = [];
|
|
@@ -797,9 +797,7 @@ function writeRegExp(state, val) {
|
|
|
797
797
|
return source.includes("<") ? state.buf.push(`RegExp(${quote(source, 0)}${val.flags ? ",\"" + val.flags + "\"" : ""})`) : state.buf.push("/" + (unsafeRegExpSourceDetect.test(source) ? source.replace(unsafeRegExpSourceReg, replaceUnsafeRegExpSourceChar) : source) + "/" + val.flags), !0;
|
|
798
798
|
}
|
|
799
799
|
function writePromise(state, val, ref) {
|
|
800
|
-
let { boundary, channel } = state;
|
|
801
|
-
if (!boundary) return !1;
|
|
802
|
-
let pId = nextRefAccess(state), handle = newAsyncHandle(state, ref, pId);
|
|
800
|
+
let { boundary, channel } = state, pId = nextRefAccess(state), handle = newAsyncHandle(state, ref, pId);
|
|
803
801
|
return state.buf.push("(p=>p=new Promise((f,r)=>" + pId + "={f,r(e){p.catch(_=>0);r(e)}}))()"), val.then((v) => writeAsyncCall(state, boundary, handle, "f", v, channel, pId), (v) => writeAsyncCall(state, boundary, handle, "r", v, channel, pId)), boundary.startAsync(), !0;
|
|
804
802
|
}
|
|
805
803
|
function newAsyncHandle(state, parent, id) {
|
|
@@ -979,9 +977,8 @@ function writeTemporal(state, val, name) {
|
|
|
979
977
|
return state.buf.push("Temporal." + name + ".from(" + quote(val.toString(), 0) + ")"), !0;
|
|
980
978
|
}
|
|
981
979
|
function writeReadableStream(state, val, ref) {
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
let reader = val.getReader(), iterId = nextRefAccess(state), handle = newAsyncHandle(state, ref, iterId), onFulfilled = ({ value, done }) => {
|
|
980
|
+
if (val.locked) return !1;
|
|
981
|
+
let { boundary, channel } = state, reader = val.getReader(), iterId = nextRefAccess(state), handle = newAsyncHandle(state, ref, iterId), onFulfilled = ({ value, done }) => {
|
|
985
982
|
done ? writeAsyncCall(state, boundary, handle, "r", value, channel) : boundary.signal.aborted || (reader.read().then(onFulfilled, onRejected), boundary.startAsync(), writeAsyncCall(state, boundary, handle, "f", value, channel));
|
|
986
983
|
}, onRejected = (reason) => {
|
|
987
984
|
writeAsyncCall(state, boundary, handle, "j", reason, channel);
|
|
@@ -1019,9 +1016,7 @@ function writeGenerator(state, iter, ref) {
|
|
|
1019
1016
|
}
|
|
1020
1017
|
function writeAsyncGenerator(state, iter, ref) {
|
|
1021
1018
|
if (iter[kTouchedIterator]) return state.buf.push("(async function*(){}())"), !0;
|
|
1022
|
-
let { boundary, channel } = state
|
|
1023
|
-
if (!boundary) return !1;
|
|
1024
|
-
let iterId = nextRefAccess(state), handle = newAsyncHandle(state, ref, iterId), onFulfilled = ({ value, done }) => {
|
|
1019
|
+
let { boundary, channel } = state, iterId = nextRefAccess(state), handle = newAsyncHandle(state, ref, iterId), onFulfilled = ({ value, done }) => {
|
|
1025
1020
|
done ? writeAsyncCall(state, boundary, handle, "r", value, channel) : boundary.signal.aborted || (iter.next().then(onFulfilled, onRejected), boundary.startAsync(), writeAsyncCall(state, boundary, handle, "f", value, channel));
|
|
1026
1021
|
}, onRejected = (reason) => {
|
|
1027
1022
|
writeAsyncCall(state, boundary, handle, "j", reason, channel);
|