marko 6.3.35 → 6.3.36
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/dist/common/meta.d.ts +1 -0
- 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-var.feat.js +7 -0
- package/dist/debug/dom/dynamic-tag-var.feat.mjs +6 -0
- package/dist/debug/{dom-Bt4OoZ-j.js → dom-BbFAdZEB.js} +22 -3
- package/dist/debug/{dom-B57LrRnX.mjs → dom-ClMc0GK9.mjs} +11 -4
- package/dist/debug/dom.js +1 -1
- package/dist/debug/dom.mjs +1 -1
- package/dist/debug/html.js +6 -4
- package/dist/debug/html.mjs +6 -4
- package/dist/dom/catch.feat.js +4 -4
- package/dist/dom/catch.feat.mjs +1 -1
- package/dist/dom/control-flow.d.ts +2 -0
- package/dist/dom/controllable-input.feat.js +2 -2
- package/dist/dom/controllable-input.feat.mjs +1 -1
- package/dist/dom/controllable-open.feat.js +2 -2
- package/dist/dom/controllable-open.feat.mjs +1 -1
- package/dist/dom/controllable-select.feat.js +2 -2
- package/dist/dom/controllable-select.feat.mjs +1 -1
- package/dist/dom/controllable-textarea.feat.js +2 -2
- package/dist/dom/controllable-textarea.feat.mjs +1 -1
- package/dist/dom/controllable.feat.js +2 -2
- package/dist/dom/controllable.feat.mjs +1 -1
- package/dist/dom/dynamic-tag-var.feat.d.ts +1 -0
- package/dist/dom/dynamic-tag-var.feat.js +3 -0
- package/dist/dom/dynamic-tag-var.feat.mjs +4 -0
- package/dist/{dom-BeF9xIzO.js → dom-59H9kVUF.js} +115 -107
- package/dist/{dom-BP2XSglG.mjs → dom-BKDjlXIl.mjs} +7 -4
- package/dist/dom.js +34 -34
- package/dist/dom.mjs +1 -1
- package/dist/html.js +4 -4
- package/dist/html.mjs +4 -4
- package/dist/translator/index.js +150 -31
- package/dist/translator/util/references.d.ts +1 -0
- package/dist/translator/util/runtime.d.ts +1 -1
- package/dist/translator/util/traverse.d.ts +2 -0
- package/package.json +4 -4
package/dist/common/meta.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Cn as
|
|
1
|
+
import { Cn as ParentBranch, Qt as placeholderShown, Tn as PendingRenders, Xt as caughtError, Zt as installCatch, g as renderCatch, gn as Scope, hn as Pending, vn as ClosestBranch, wn as PendingEffects } from "../dom-ClMc0GK9.mjs";
|
|
2
2
|
//#region src/dom/catch.feat.ts
|
|
3
3
|
const handlePendingTry = (fn, scope, branch) => {
|
|
4
4
|
while (branch) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
2
|
+
const require_control_flow = require("../dom-BbFAdZEB.js");
|
|
3
3
|
//#region src/dom/controllable-input.feat.ts
|
|
4
4
|
require_control_flow.controllableScripts[0] = require_control_flow._attr_input_checked_script;
|
|
5
5
|
require_control_flow.controllableScripts[1] = require_control_flow._attr_input_checkedValue_script;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as _attr_input_value_script, C as _attr_input_checkedValue_script, T as _attr_input_checked_script, z as controllableScripts } from "../dom-ClMc0GK9.mjs";
|
|
2
2
|
//#region src/dom/controllable-input.feat.ts
|
|
3
3
|
controllableScripts[0] = _attr_input_checked_script;
|
|
4
4
|
controllableScripts[1] = _attr_input_checkedValue_script;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
2
|
+
const require_control_flow = require("../dom-BbFAdZEB.js");
|
|
3
3
|
//#region src/dom/controllable-open.feat.ts
|
|
4
4
|
require_control_flow.controllableScripts[4] = require_control_flow._attr_details_or_dialog_open_script;
|
|
5
5
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { y as _attr_details_or_dialog_open_script, z as controllableScripts } from "../dom-ClMc0GK9.mjs";
|
|
2
2
|
//#region src/dom/controllable-open.feat.ts
|
|
3
3
|
controllableScripts[4] = _attr_details_or_dialog_open_script;
|
|
4
4
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
2
|
+
const require_control_flow = require("../dom-BbFAdZEB.js");
|
|
3
3
|
//#region src/dom/controllable-select.feat.ts
|
|
4
4
|
require_control_flow.controllableScripts[3] = require_control_flow._attr_select_value_script;
|
|
5
5
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { N as _attr_select_value_script, z as controllableScripts } from "../dom-ClMc0GK9.mjs";
|
|
2
2
|
//#region src/dom/controllable-select.feat.ts
|
|
3
3
|
controllableScripts[3] = _attr_select_value_script;
|
|
4
4
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
2
|
+
const require_control_flow = require("../dom-BbFAdZEB.js");
|
|
3
3
|
//#region src/dom/controllable-textarea.feat.ts
|
|
4
4
|
require_control_flow.controllableScripts[2] = require_control_flow._attr_input_value_script;
|
|
5
5
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as _attr_input_value_script, z as controllableScripts } from "../dom-ClMc0GK9.mjs";
|
|
2
2
|
//#region src/dom/controllable-textarea.feat.ts
|
|
3
3
|
controllableScripts[2] = _attr_input_value_script;
|
|
4
4
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as
|
|
1
|
+
import { F as _controllable_open, I as _controllable_select, L as _controllable_textarea, P as _controllable_input, R as controllableRenders } from "../dom-ClMc0GK9.mjs";
|
|
2
2
|
import "./controllable-input.feat.mjs";
|
|
3
3
|
import "./controllable-open.feat.mjs";
|
|
4
4
|
import "./controllable-select.feat.mjs";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const require_control_flow = require("../dom-BbFAdZEB.js");
|
|
3
|
+
//#region src/dom/dynamic-tag-var.feat.ts
|
|
4
|
+
const elementGetter = (branch) => () => require_control_flow._el_read(branch[require_control_flow.StartNode]);
|
|
5
|
+
require_control_flow.installDynamicTagVar((branch) => branch[require_control_flow.TagVariable](elementGetter(branch)));
|
|
6
|
+
require_control_flow._resume(require_control_flow.DYNAMIC_TAG_VAR_REGISTER_ID, elementGetter);
|
|
7
|
+
//#endregion
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Dn as TagVariable, En as StartNode, Et as _el_read, gt as _resume, m as installDynamicTagVar, qt as DYNAMIC_TAG_VAR_REGISTER_ID } from "../dom-ClMc0GK9.mjs";
|
|
2
|
+
//#region src/dom/dynamic-tag-var.feat.ts
|
|
3
|
+
const elementGetter = (branch) => () => _el_read(branch[StartNode]);
|
|
4
|
+
installDynamicTagVar((branch) => branch[TagVariable](elementGetter(branch)));
|
|
5
|
+
_resume(DYNAMIC_TAG_VAR_REGISTER_ID, elementGetter);
|
|
6
|
+
//#endregion
|
|
@@ -446,6 +446,7 @@ function abort(ctrl) {
|
|
|
446
446
|
//#endregion
|
|
447
447
|
//#region src/common/meta.ts
|
|
448
448
|
const DYNAMIC_TAG_SCRIPT_REGISTER_ID = "_dynamicTagScript";
|
|
449
|
+
const DYNAMIC_TAG_VAR_REGISTER_ID = "_dynamicTagVar";
|
|
449
450
|
//#endregion
|
|
450
451
|
//#region src/common/opt.ts
|
|
451
452
|
function toArray(opt) {
|
|
@@ -1161,7 +1162,7 @@ function _style_shell(scope, nodeAccessor) {
|
|
|
1161
1162
|
const element = scope[nodeAccessor];
|
|
1162
1163
|
const id = _id(scope);
|
|
1163
1164
|
_attr_nonce(scope, nodeAccessor);
|
|
1164
|
-
element
|
|
1165
|
+
_attr(element, "class", id);
|
|
1165
1166
|
_text_content(element, "." + id + "~*{}");
|
|
1166
1167
|
}
|
|
1167
1168
|
function _style_rule_item(element, name, value) {
|
|
@@ -1861,8 +1862,10 @@ let _dynamic_tag = /*@__PURE__*/ withBranches((nodeAccessor, getContent, getTagV
|
|
|
1861
1862
|
const normalizedRenderer = normalizeDynamicRenderer(newRenderer);
|
|
1862
1863
|
if (scope[rendererAccessor] !== (scope[rendererAccessor] = rendererKey(normalizedRenderer)) || getContent && !(normalizedRenderer || scope[childScopeAccessor])) {
|
|
1863
1864
|
setConditionalRenderer(scope, nodeAccessor, normalizedRenderer || (getContent ? getContent(scope) : void 0), createBranchWithTagNameOrRenderer);
|
|
1864
|
-
if (getTagVar) if (scope[childScopeAccessor])
|
|
1865
|
-
|
|
1865
|
+
if (getTagVar) if (scope[childScopeAccessor]) {
|
|
1866
|
+
scope[childScopeAccessor][TagVariable] = (value) => getTagVar()(scope, value);
|
|
1867
|
+
if (typeof normalizedRenderer === "string") bindNativeTagVar?.(scope[childScopeAccessor]);
|
|
1868
|
+
} else getTagVar()(scope, void 0);
|
|
1866
1869
|
if (typeof normalizedRenderer === "string") {
|
|
1867
1870
|
if (getContent) {
|
|
1868
1871
|
const content = getContent(scope);
|
|
@@ -1903,6 +1906,10 @@ const _dynamic_tag_content = /*@__PURE__*/ withBranches((nodeAccessor) => {
|
|
|
1903
1906
|
if (renderer) for (const accessor in renderer[LocalClosures]) renderer[LocalClosures][accessor](scope[childScopeAccessor], renderer[LocalClosureValues][accessor]);
|
|
1904
1907
|
};
|
|
1905
1908
|
});
|
|
1909
|
+
let bindNativeTagVar;
|
|
1910
|
+
function installDynamicTagVar(bind) {
|
|
1911
|
+
bindNativeTagVar = bind;
|
|
1912
|
+
}
|
|
1906
1913
|
const _resume_dynamic_tag = /*@__PURE__*/ withBranches(() => _resume(DYNAMIC_TAG_SCRIPT_REGISTER_ID, dynamicTagScript));
|
|
1907
1914
|
function dynamicTagScript(branch) {
|
|
1908
1915
|
_attrs_script(branch, `#${branch[Renderer].toLowerCase()}/0`);
|
|
@@ -2087,6 +2094,12 @@ Object.defineProperty(exports, "ClosestBranch", {
|
|
|
2087
2094
|
return ClosestBranch;
|
|
2088
2095
|
}
|
|
2089
2096
|
});
|
|
2097
|
+
Object.defineProperty(exports, "DYNAMIC_TAG_VAR_REGISTER_ID", {
|
|
2098
|
+
enumerable: true,
|
|
2099
|
+
get: function() {
|
|
2100
|
+
return DYNAMIC_TAG_VAR_REGISTER_ID;
|
|
2101
|
+
}
|
|
2102
|
+
});
|
|
2090
2103
|
Object.defineProperty(exports, "EndNode", {
|
|
2091
2104
|
enumerable: true,
|
|
2092
2105
|
get: function() {
|
|
@@ -2771,6 +2784,12 @@ Object.defineProperty(exports, "installCatch", {
|
|
|
2771
2784
|
return installCatch;
|
|
2772
2785
|
}
|
|
2773
2786
|
});
|
|
2787
|
+
Object.defineProperty(exports, "installDynamicTagVar", {
|
|
2788
|
+
enumerable: true,
|
|
2789
|
+
get: function() {
|
|
2790
|
+
return installDynamicTagVar;
|
|
2791
|
+
}
|
|
2792
|
+
});
|
|
2774
2793
|
Object.defineProperty(exports, "patchDynamicTag", {
|
|
2775
2794
|
enumerable: true,
|
|
2776
2795
|
get: function() {
|
|
@@ -445,6 +445,7 @@ function abort(ctrl) {
|
|
|
445
445
|
//#endregion
|
|
446
446
|
//#region src/common/meta.ts
|
|
447
447
|
const DYNAMIC_TAG_SCRIPT_REGISTER_ID = "_dynamicTagScript";
|
|
448
|
+
const DYNAMIC_TAG_VAR_REGISTER_ID = "_dynamicTagVar";
|
|
448
449
|
//#endregion
|
|
449
450
|
//#region src/common/opt.ts
|
|
450
451
|
function toArray(opt) {
|
|
@@ -1160,7 +1161,7 @@ function _style_shell(scope, nodeAccessor) {
|
|
|
1160
1161
|
const element = scope[nodeAccessor];
|
|
1161
1162
|
const id = _id(scope);
|
|
1162
1163
|
_attr_nonce(scope, nodeAccessor);
|
|
1163
|
-
element
|
|
1164
|
+
_attr(element, "class", id);
|
|
1164
1165
|
_text_content(element, "." + id + "~*{}");
|
|
1165
1166
|
}
|
|
1166
1167
|
function _style_rule_item(element, name, value) {
|
|
@@ -1860,8 +1861,10 @@ let _dynamic_tag = /*@__PURE__*/ withBranches((nodeAccessor, getContent, getTagV
|
|
|
1860
1861
|
const normalizedRenderer = normalizeDynamicRenderer(newRenderer);
|
|
1861
1862
|
if (scope[rendererAccessor] !== (scope[rendererAccessor] = rendererKey(normalizedRenderer)) || getContent && !(normalizedRenderer || scope[childScopeAccessor])) {
|
|
1862
1863
|
setConditionalRenderer(scope, nodeAccessor, normalizedRenderer || (getContent ? getContent(scope) : void 0), createBranchWithTagNameOrRenderer);
|
|
1863
|
-
if (getTagVar) if (scope[childScopeAccessor])
|
|
1864
|
-
|
|
1864
|
+
if (getTagVar) if (scope[childScopeAccessor]) {
|
|
1865
|
+
scope[childScopeAccessor][TagVariable] = (value) => getTagVar()(scope, value);
|
|
1866
|
+
if (typeof normalizedRenderer === "string") bindNativeTagVar?.(scope[childScopeAccessor]);
|
|
1867
|
+
} else getTagVar()(scope, void 0);
|
|
1865
1868
|
if (typeof normalizedRenderer === "string") {
|
|
1866
1869
|
if (getContent) {
|
|
1867
1870
|
const content = getContent(scope);
|
|
@@ -1902,6 +1905,10 @@ const _dynamic_tag_content = /*@__PURE__*/ withBranches((nodeAccessor) => {
|
|
|
1902
1905
|
if (renderer) for (const accessor in renderer[LocalClosures]) renderer[LocalClosures][accessor](scope[childScopeAccessor], renderer[LocalClosureValues][accessor]);
|
|
1903
1906
|
};
|
|
1904
1907
|
});
|
|
1908
|
+
let bindNativeTagVar;
|
|
1909
|
+
function installDynamicTagVar(bind) {
|
|
1910
|
+
bindNativeTagVar = bind;
|
|
1911
|
+
}
|
|
1905
1912
|
const _resume_dynamic_tag = /*@__PURE__*/ withBranches(() => _resume(DYNAMIC_TAG_SCRIPT_REGISTER_ID, dynamicTagScript));
|
|
1906
1913
|
function dynamicTagScript(branch) {
|
|
1907
1914
|
_attrs_script(branch, `#${branch[Renderer].toLowerCase()}/0`);
|
|
@@ -2056,4 +2063,4 @@ function byFirstArg(name) {
|
|
|
2056
2063
|
return name;
|
|
2057
2064
|
}
|
|
2058
2065
|
//#endregion
|
|
2059
|
-
export {
|
|
2066
|
+
export { _attrs_script as $, prepareEffects as $t, _attr_input_value_script as A, _hoist_resume as At, _attr as B, _var_change as Bt, _attr_input_checkedValue_script as C, ParentBranch as Cn, _closure as Ct, _attr_input_value_attribute_default as D, TagVariable as Dn, _for_closure as Dt, _attr_input_value as E, StartNode as En, _el_read as Et, _controllable_open as F, _or as Ft, _attr_nonce as G, syncGen as Gt, _attr_class_item as H, destroyBranch as Ht, _controllable_select as I, _return as It, _attr_style_items as J, $signal as Jt, _attr_style as K, _on as Kt, _controllable_textarea as L, _return_change as Lt, _attr_select_value_default as M, _if_closure as Mt, _attr_select_value_script as N, _let as Nt, _attr_input_value_default as O, _for_selector as Ot, _controllable_input as P, _let_change as Pt, _attrs_partial_content as Q, placeholderShown as Qt, controllableRenders as R, _script as Rt, _attr_input_checkedValue_default as S, Load as Sn, _child_setup as St, _attr_input_checked_script as T, PendingRenders as Tn, _const as Tt, _attr_class_items as U, insertBranchBefore as Ut, _attr_class as V, _assert_init as Vt, _attr_content as W, removeAndDestroyBranch as Wt, _attrs_content as X, caughtError as Xt, _attrs as Y, $signalReset as Yt, _attrs_partial as Z, installCatch as Zt, _attr_details_or_dialog_open as _, AwaitCounter as _n, _var_resume as _t, _for_in as a, forIn as an, _text_content as at, _attr_input_checked as b, Gen$1 as bn, initEmbedded as bt, _for_until as c, forUntil as cn, toInsertNode as ct, _show as d, Clone as dn, _content_resume as dt, queueAsyncRender as en, _html as et, _try as f, Owner as fn, createAndSetupBranch as ft, renderCatch as g, Scope as gn, _resume as gt, patchDynamicTag as h, Pending as hn, _el as ht, _dynamic_tag_content as i, runId as in, _text as it, _attr_select_value as j, _id as jt, _attr_input_value_dynamic_default as k, _hoist as kt, _if as l, _assert_hoist as ln, _content as lt, installDynamicTagVar as m, Setup as mn, setupBranch as mt, _await_promise as n, run as nn, _style_rule_item as nt, _for_of as o, forOf as on, _to_text as ot, addAwaitCounter as p, Params as pn, createBranch as pt, _attr_style_item as q, DYNAMIC_TAG_VAR_REGISTER_ID as qt, _dynamic_tag as r, runEffects as rn, _style_shell as rt, _for_to as s, forTo as sn, insertChildNodes as st, _await_content as t, queueEffect as tn, _lifecycle as tt, _resume_dynamic_tag as u, _call as un, _content_closures as ut, _attr_details_or_dialog_open_default as v, ClosestBranch as vn, getRegisteredWithScope as vt, _attr_input_checked_default as w, PendingEffects as wn, _closure_get as wt, _attr_input_checkedValue as x, Global as xn, ready as xt, _attr_details_or_dialog_open_script as y, EndNode as yn, init as yt, controllableScripts as z, _var as zt };
|
package/dist/debug/dom.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const require_control_flow = require("./dom-
|
|
3
|
+
const require_control_flow = require("./dom-BbFAdZEB.js");
|
|
4
4
|
//#region src/common/attr-tag.ts
|
|
5
5
|
const empty = [];
|
|
6
6
|
const rest = Symbol("Attribute Tag");
|
package/dist/debug/dom.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as _attrs_script, $t as prepareEffects, A as _attr_input_value_script, At as _hoist_resume, B as _attr, Bt as _var_change, C as _attr_input_checkedValue_script, Ct as _closure, D as _attr_input_value_attribute_default, Dn as TagVariable, Dt as _for_closure, E as _attr_input_value, En as StartNode, Et as _el_read, F as _controllable_open, Ft as _or, G as _attr_nonce, Gt as syncGen, H as _attr_class_item, Ht as destroyBranch, I as _controllable_select, It as _return, J as _attr_style_items, Jt as $signal, K as _attr_style, Kt as _on, L as _controllable_textarea, Lt as _return_change, M as _attr_select_value_default, Mt as _if_closure, N as _attr_select_value_script, Nt as _let, O as _attr_input_value_default, Ot as _for_selector, P as _controllable_input, Pt as _let_change, Q as _attrs_partial_content, Rt as _script, S as _attr_input_checkedValue_default, Sn as Load, St as _child_setup, T as _attr_input_checked_script, Tt as _const, U as _attr_class_items, Ut as insertBranchBefore, V as _attr_class, Vt as _assert_init, W as _attr_content, Wt as removeAndDestroyBranch, X as _attrs_content, Y as _attrs, Yt as $signalReset, Z as _attrs_partial, _ as _attr_details_or_dialog_open, _t as _var_resume, a as _for_in, an as forIn, at as _text_content, b as _attr_input_checked, bt as initEmbedded, c as _for_until, cn as forUntil, ct as toInsertNode, d as _show, dn as Clone, dt as _content_resume, en as queueAsyncRender, et as _html, f as _try, fn as Owner, ft as createAndSetupBranch, g as renderCatch, gt as _resume, h as patchDynamicTag, ht as _el, i as _dynamic_tag_content, in as runId, it as _text, j as _attr_select_value, jt as _id, k as _attr_input_value_dynamic_default, kt as _hoist, l as _if, ln as _assert_hoist, lt as _content, mn as Setup, mt as setupBranch, n as _await_promise, nn as run, nt as _style_rule_item, o as _for_of, on as forOf, ot as _to_text, p as addAwaitCounter, pn as Params, pt as createBranch, q as _attr_style_item, r as _dynamic_tag, rn as runEffects, rt as _style_shell, s as _for_to, sn as forTo, st as insertChildNodes, t as _await_content, tn as queueEffect, tt as _lifecycle, u as _resume_dynamic_tag, un as _call, ut as _content_closures, v as _attr_details_or_dialog_open_default, vt as getRegisteredWithScope, w as _attr_input_checked_default, wt as _closure_get, x as _attr_input_checkedValue, xn as Global, xt as ready, y as _attr_details_or_dialog_open_script, yn as EndNode, yt as init, zt as _var } from "./dom-ClMc0GK9.mjs";
|
|
2
2
|
//#region src/common/attr-tag.ts
|
|
3
3
|
const empty = [];
|
|
4
4
|
const rest = Symbol("Attribute Tag");
|
package/dist/debug/html.js
CHANGED
|
@@ -255,6 +255,7 @@ function joinWithAnd(a) {
|
|
|
255
255
|
//#endregion
|
|
256
256
|
//#region src/common/meta.ts
|
|
257
257
|
const DYNAMIC_TAG_SCRIPT_REGISTER_ID = "_dynamicTagScript";
|
|
258
|
+
const DYNAMIC_TAG_VAR_REGISTER_ID = "_dynamicTagVar";
|
|
258
259
|
//#endregion
|
|
259
260
|
//#region src/html/content.ts
|
|
260
261
|
function _to_text(val) {
|
|
@@ -3077,10 +3078,10 @@ let _dynamic_tag = (scopeId, accessor, tag, inputOrArgs, content, inputIsArgs, s
|
|
|
3077
3078
|
if (renderer === "textarea") {
|
|
3078
3079
|
if (renderContent) throw new Error("A dynamic tag rendering a `<textarea>` cannot have `content` and must use the `value` attribute instead.");
|
|
3079
3080
|
_html(_attr_textarea_value(branchId, `#${renderer.toLowerCase()}/0`, input.value, input.valueChange, 1));
|
|
3080
|
-
} else
|
|
3081
|
-
if (typeof renderContent !== "function") throw new Error(`Body content is not supported for the \`<${renderer}>\` tag.`);
|
|
3082
|
-
if (renderer === "select" && ("value" in input || "valueChange" in input)) _attr_select_value(branchId, `#${renderer.toLowerCase()}/0`, input.value, input.valueChange, renderContent, 1);
|
|
3083
|
-
else _dynamic_tag(branchId, `#${renderer.toLowerCase()}/0`, renderContent, void 0, 0, void 0, serializeReason);
|
|
3081
|
+
} else {
|
|
3082
|
+
if (renderContent && typeof renderContent !== "function") throw new Error(`Body content is not supported for the \`<${renderer}>\` tag.`);
|
|
3083
|
+
if (renderer === "select" && ("value" in input || "valueChange" in input)) _attr_select_value(branchId, `#${renderer.toLowerCase()}/0`, input.value, input.valueChange, renderContent ? () => _dynamic_tag(branchId, `#${renderer.toLowerCase()}/0`, renderContent, void 0, 0, void 0, serializeReason) : void 0, 1);
|
|
3084
|
+
else if (renderContent) _dynamic_tag(branchId, `#${renderer.toLowerCase()}/0`, renderContent, void 0, 0, void 0, serializeReason);
|
|
3084
3085
|
}
|
|
3085
3086
|
_html(`</${renderer}>`);
|
|
3086
3087
|
} else if (content) throw new Error(`Body content is not supported for the \`<${renderer}>\` tag.`);
|
|
@@ -3093,6 +3094,7 @@ let _dynamic_tag = (scopeId, accessor, tag, inputOrArgs, content, inputIsArgs, s
|
|
|
3093
3094
|
if (shouldResume || needsScript) _html(state.mark("'", scopeId + " " + accessor + " " + branchId));
|
|
3094
3095
|
};
|
|
3095
3096
|
renderNative();
|
|
3097
|
+
result = _el(branchId, DYNAMIC_TAG_VAR_REGISTER_ID);
|
|
3096
3098
|
} else {
|
|
3097
3099
|
const chunk = getChunk();
|
|
3098
3100
|
const beforeBranch = shouldResume ? deferBranchStart(chunk) : void 0;
|
package/dist/debug/html.mjs
CHANGED
|
@@ -253,6 +253,7 @@ function joinWithAnd(a) {
|
|
|
253
253
|
//#endregion
|
|
254
254
|
//#region src/common/meta.ts
|
|
255
255
|
const DYNAMIC_TAG_SCRIPT_REGISTER_ID = "_dynamicTagScript";
|
|
256
|
+
const DYNAMIC_TAG_VAR_REGISTER_ID = "_dynamicTagVar";
|
|
256
257
|
//#endregion
|
|
257
258
|
//#region src/html/content.ts
|
|
258
259
|
function _to_text(val) {
|
|
@@ -3075,10 +3076,10 @@ let _dynamic_tag = (scopeId, accessor, tag, inputOrArgs, content, inputIsArgs, s
|
|
|
3075
3076
|
if (renderer === "textarea") {
|
|
3076
3077
|
if (renderContent) throw new Error("A dynamic tag rendering a `<textarea>` cannot have `content` and must use the `value` attribute instead.");
|
|
3077
3078
|
_html(_attr_textarea_value(branchId, `#${renderer.toLowerCase()}/0`, input.value, input.valueChange, 1));
|
|
3078
|
-
} else
|
|
3079
|
-
if (typeof renderContent !== "function") throw new Error(`Body content is not supported for the \`<${renderer}>\` tag.`);
|
|
3080
|
-
if (renderer === "select" && ("value" in input || "valueChange" in input)) _attr_select_value(branchId, `#${renderer.toLowerCase()}/0`, input.value, input.valueChange, renderContent, 1);
|
|
3081
|
-
else _dynamic_tag(branchId, `#${renderer.toLowerCase()}/0`, renderContent, void 0, 0, void 0, serializeReason);
|
|
3079
|
+
} else {
|
|
3080
|
+
if (renderContent && typeof renderContent !== "function") throw new Error(`Body content is not supported for the \`<${renderer}>\` tag.`);
|
|
3081
|
+
if (renderer === "select" && ("value" in input || "valueChange" in input)) _attr_select_value(branchId, `#${renderer.toLowerCase()}/0`, input.value, input.valueChange, renderContent ? () => _dynamic_tag(branchId, `#${renderer.toLowerCase()}/0`, renderContent, void 0, 0, void 0, serializeReason) : void 0, 1);
|
|
3082
|
+
else if (renderContent) _dynamic_tag(branchId, `#${renderer.toLowerCase()}/0`, renderContent, void 0, 0, void 0, serializeReason);
|
|
3082
3083
|
}
|
|
3083
3084
|
_html(`</${renderer}>`);
|
|
3084
3085
|
} else if (content) throw new Error(`Body content is not supported for the \`<${renderer}>\` tag.`);
|
|
@@ -3091,6 +3092,7 @@ let _dynamic_tag = (scopeId, accessor, tag, inputOrArgs, content, inputIsArgs, s
|
|
|
3091
3092
|
if (shouldResume || needsScript) _html(state.mark("'", scopeId + " " + accessor + " " + branchId));
|
|
3092
3093
|
};
|
|
3093
3094
|
renderNative();
|
|
3095
|
+
result = _el(branchId, DYNAMIC_TAG_VAR_REGISTER_ID);
|
|
3094
3096
|
} else {
|
|
3095
3097
|
const chunk = getChunk();
|
|
3096
3098
|
const beforeBranch = shouldResume ? deferBranchStart(chunk) : void 0;
|
package/dist/dom/catch.feat.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
let require_control_flow = require("../dom-
|
|
1
|
+
let require_control_flow = require("../dom-59H9kVUF.js"), handlePendingTry = (fn, scope, branch) => {
|
|
2
2
|
for (; branch;) {
|
|
3
3
|
if (branch.O?.i) return (branch.J ||= []).push(fn, scope);
|
|
4
4
|
branch = branch.N;
|
|
5
5
|
}
|
|
6
6
|
};
|
|
7
7
|
//#region src/dom/catch.feat.ts
|
|
8
|
-
require_control_flow.
|
|
9
|
-
if (checkPending || require_control_flow.
|
|
8
|
+
require_control_flow.Xt((runEffects) => (effects, checkPending = require_control_flow.Zt.has(effects)) => {
|
|
9
|
+
if (checkPending || require_control_flow.Yt.has(effects)) {
|
|
10
10
|
let i = 0, fn, scope, branch;
|
|
11
11
|
for (; i < effects.length;) fn = effects[i++], scope = effects[i++], (branch = scope.F)?.H !== 0 && !(checkPending && handlePendingTry(fn, scope, branch)) && fn(scope);
|
|
12
12
|
} else runEffects(effects);
|
|
@@ -19,7 +19,7 @@ require_control_flow.Yt((runEffects) => (effects, checkPending = require_control
|
|
|
19
19
|
}
|
|
20
20
|
render.f = 0, runRender(render);
|
|
21
21
|
} catch (error) {
|
|
22
|
-
require_control_flow.
|
|
22
|
+
require_control_flow.g(render.b, error);
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
//#endregion
|
package/dist/dom/catch.feat.mjs
CHANGED
|
@@ -4,7 +4,7 @@ let handlePendingTry = (fn, scope, branch) => {
|
|
|
4
4
|
branch = branch.N;
|
|
5
5
|
}
|
|
6
6
|
};
|
|
7
|
-
import {
|
|
7
|
+
import { Xt as installCatch, Yt as caughtError, Zt as placeholderShown, g as renderCatch } from "../dom-BKDjlXIl.mjs";
|
|
8
8
|
//#region src/dom/catch.feat.ts
|
|
9
9
|
installCatch((runEffects) => (effects, checkPending = placeholderShown.has(effects)) => {
|
|
10
10
|
if (checkPending || caughtError.has(effects)) {
|
|
@@ -15,6 +15,8 @@ export declare function rendererKey(renderer: Renderer | string | undefined): st
|
|
|
15
15
|
export declare function patchDynamicTag(fn: <T extends typeof _dynamic_tag>(cond: T) => T): void;
|
|
16
16
|
export declare let _dynamic_tag: (nodeAccessor: EncodedAccessor, getContent?: ((scope: Scope) => Renderer) | 0, getTagVar?: (() => Signal<unknown>) | 0, inputIsArgs?: 1) => Signal<Renderer | string | undefined>;
|
|
17
17
|
export declare const _dynamic_tag_content: (nodeAccessor: EncodedAccessor) => Signal<Renderer | undefined>;
|
|
18
|
+
export declare let bindNativeTagVar: undefined | ((branch: Scope) => void);
|
|
19
|
+
export declare function installDynamicTagVar(bind: typeof bindNativeTagVar): void;
|
|
18
20
|
export declare const _resume_dynamic_tag: () => typeof dynamicTagScript;
|
|
19
21
|
declare function dynamicTagScript(branch: Scope): void;
|
|
20
22
|
export declare function setConditionalRenderer<T>(scope: Scope, nodeAccessor: Accessor, newRenderer: T, createBranch: ($global: Scope[typeof AccessorProp.Global], renderer: NonNullable<T>, parentScope: Scope, parentNode: ParentNode) => BranchScope): void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
let require_control_flow = require("../dom-
|
|
2
|
-
require_control_flow.
|
|
1
|
+
let require_control_flow = require("../dom-59H9kVUF.js");
|
|
2
|
+
require_control_flow.z[0] = require_control_flow.T, require_control_flow.z[1] = require_control_flow.C, require_control_flow.z[2] = require_control_flow.A;
|
|
3
3
|
//#endregion
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as _attr_input_value_script, C as _attr_input_checkedValue_script, T as _attr_input_checked_script, z as controllableScripts } from "../dom-BKDjlXIl.mjs";
|
|
2
2
|
controllableScripts[0] = _attr_input_checked_script, controllableScripts[1] = _attr_input_checkedValue_script, controllableScripts[2] = _attr_input_value_script;
|
|
3
3
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
let require_control_flow = require("../dom-
|
|
1
|
+
let require_control_flow = require("../dom-59H9kVUF.js");
|
|
2
2
|
//#region src/dom/controllable-open.feat.ts
|
|
3
|
-
require_control_flow.
|
|
3
|
+
require_control_flow.z[4] = require_control_flow.y;
|
|
4
4
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { y as _attr_details_or_dialog_open_script, z as controllableScripts } from "../dom-BKDjlXIl.mjs";
|
|
2
2
|
//#region src/dom/controllable-open.feat.ts
|
|
3
3
|
controllableScripts[4] = _attr_details_or_dialog_open_script;
|
|
4
4
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
let require_control_flow = require("../dom-
|
|
1
|
+
let require_control_flow = require("../dom-59H9kVUF.js");
|
|
2
2
|
//#region src/dom/controllable-select.feat.ts
|
|
3
|
-
require_control_flow.
|
|
3
|
+
require_control_flow.z[3] = require_control_flow.N;
|
|
4
4
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { N as _attr_select_value_script, z as controllableScripts } from "../dom-BKDjlXIl.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
|
-
let require_control_flow = require("../dom-
|
|
1
|
+
let require_control_flow = require("../dom-59H9kVUF.js");
|
|
2
2
|
//#region src/dom/controllable-textarea.feat.ts
|
|
3
|
-
require_control_flow.
|
|
3
|
+
require_control_flow.z[2] = require_control_flow.A;
|
|
4
4
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as _attr_input_value_script, z as controllableScripts } from "../dom-BKDjlXIl.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-
|
|
2
|
-
require("./controllable-input.feat.js"), require("./controllable-open.feat.js"), require("./controllable-select.feat.js"), require_control_flow.
|
|
1
|
+
let require_control_flow = require("../dom-59H9kVUF.js");
|
|
2
|
+
require("./controllable-input.feat.js"), require("./controllable-open.feat.js"), require("./controllable-select.feat.js"), require_control_flow.R.INPUT = require_control_flow.P, require_control_flow.R.TEXTAREA = require_control_flow.L, require_control_flow.R.SELECT = require_control_flow.I, require_control_flow.R.DETAILS = require_control_flow.R.DIALOG = require_control_flow.F;
|
|
3
3
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as
|
|
1
|
+
import { F as _controllable_open, I as _controllable_select, L as _controllable_textarea, P as _controllable_input, R as controllableRenders } from "../dom-BKDjlXIl.mjs";
|
|
2
2
|
import "./controllable-input.feat.mjs";
|
|
3
3
|
import "./controllable-open.feat.mjs";
|
|
4
4
|
import "./controllable-select.feat.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|