marko 6.4.12 → 6.4.14
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/debug/dom/catch.feat.js +1 -1
- package/dist/debug/dom/catch.feat.mjs +1 -1
- package/dist/debug/dom/compat.feat.js +2 -2
- package/dist/debug/dom/compat.feat.mjs +2 -2
- 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/lazy.feat.js +1 -1
- package/dist/debug/dom/lazy.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-DaHYZpf2.mjs → dom-BORByF2b.mjs} +4 -2
- package/dist/debug/{dom-CtXOr4Nm.js → dom-sfzdCRAg.js} +3 -7
- package/dist/debug/dom.js +1 -1
- package/dist/debug/dom.mjs +1 -1
- package/dist/dom/catch.feat.js +3 -3
- package/dist/dom/catch.feat.mjs +1 -1
- package/dist/dom/compat.feat.js +15 -15
- package/dist/dom/compat.feat.mjs +2 -2
- 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 +2 -2
- package/dist/dom/dynamic-tag-script.feat.mjs +1 -1
- package/dist/dom/dynamic-tag-var.feat.js +3 -3
- package/dist/dom/dynamic-tag-var.feat.mjs +1 -1
- package/dist/dom/lazy.feat.js +1 -1
- package/dist/dom/lazy.feat.mjs +1 -1
- package/dist/dom/placeholder.feat.js +3 -3
- package/dist/dom/placeholder.feat.mjs +1 -1
- package/dist/{dom-BO-0hzLZ.mjs → dom-DKn1bCPC.mjs} +3 -2
- package/dist/{dom-BB-Te-3z.js → dom-DRiewpRL.js} +63 -67
- package/dist/dom.js +17 -17
- package/dist/dom.mjs +1 -1
- package/dist/translator/core/if.d.ts +0 -85
- package/dist/translator/core/index.d.ts +2 -85
- package/dist/translator/index.d.ts +2 -85
- package/dist/translator/index.js +35 -191
- package/dist/translator/interop/index.d.ts +2 -0
- package/package.json +4 -4
- package/tags/await.d.marko +9 -1
- package/tags/const.d.marko +7 -1
- package/tags/debug.d.marko +7 -1
- package/tags/define.d.marko +7 -1
- package/tags/effect.d.marko +6 -1
- package/tags/html-comment.d.marko +6 -0
- package/tags/html-script.d.marko +5 -0
- package/tags/html-style.d.marko +5 -0
- package/tags/id.d.marko +11 -1
- package/tags/let.d.marko +8 -1
- package/tags/lifecycle.d.marko +11 -1
- package/tags/log.d.marko +7 -1
- package/tags/script.d.marko +9 -1
- package/tags/show.d.marko +7 -1
- package/tags/try.d.marko +9 -1
- package/tags-html.d.ts +219 -134
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Bn as ParentBranch, Fn as ClosestBranch, Hn as PendingEffects, Mn as Scope, Un as PendingRenders, Vn as PendingEffectScopes, _ as renderCatch, an as installCatch, cn as queueEffect, jn as Pending, sn as queueAsyncRender, v as runPendingEffects } from "../dom-BORByF2b.mjs";
|
|
2
2
|
// src/dom/catch.feat.ts
|
|
3
3
|
const deferToPendingTry = (fn, scope, branch) => {
|
|
4
4
|
while (branch) {
|
|
@@ -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-sfzdCRAg.js");
|
|
4
4
|
// src/common/compat-meta.ts
|
|
5
5
|
const SET_SCOPE_REGISTER_ID = "$compat_setScope";
|
|
6
6
|
const RENDER_BODY_ID = "$compat_renderBody";
|
|
@@ -102,7 +102,7 @@ const compat = {
|
|
|
102
102
|
const renderBranch = (_) => {
|
|
103
103
|
if (!branch) {
|
|
104
104
|
created = 1;
|
|
105
|
-
branch = component.scope = require_control_flow.
|
|
105
|
+
branch = component.scope = require_control_flow.setupBranch(renderer, require_control_flow.createBranch(out.global, renderer, renderer[require_control_flow.Owner], document.body));
|
|
106
106
|
}
|
|
107
107
|
renderer[require_control_flow.LocalClosures]?.(branch);
|
|
108
108
|
renderer[require_control_flow.Params]?.(branch, renderer._ ? args[0] : args);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { An as Setup, Dn as Owner, En as LocalClosures, Gn as StartNode, In as EndNode, On as Params, Rn as Global, Sn as setClassAPIRenderer, St as init, cn as queueEffect, dt as _content, fn as runEffects, gt as setupBranch, ht as createBranch, ln as queueRender, on as prepareEffects, qt as destroyBranch, un as rendering, wn as Clone, xt as getRegisteredWithScope, yt as _resumed } from "../dom-BORByF2b.mjs";
|
|
2
2
|
// src/common/compat-meta.ts
|
|
3
3
|
const SET_SCOPE_REGISTER_ID = "$compat_setScope";
|
|
4
4
|
const RENDER_BODY_ID = "$compat_renderBody";
|
|
@@ -100,7 +100,7 @@ const compat = {
|
|
|
100
100
|
const renderBranch = (_) => {
|
|
101
101
|
if (!branch) {
|
|
102
102
|
created = 1;
|
|
103
|
-
branch = component.scope =
|
|
103
|
+
branch = component.scope = setupBranch(renderer, createBranch(out.global, renderer, renderer[Owner], document.body));
|
|
104
104
|
}
|
|
105
105
|
renderer[LocalClosures]?.(branch);
|
|
106
106
|
renderer[Params]?.(branch, renderer._ ? args[0] : args);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
2
|
+
const require_control_flow = require("../dom-sfzdCRAg.js");
|
|
3
3
|
// 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 { E as _attr_input_checkedValue_script, N as _attr_input_value_script, O as _attr_input_checked_script, V as controllableScripts } from "../dom-
|
|
1
|
+
import { E as _attr_input_checkedValue_script, N as _attr_input_value_script, O as _attr_input_checked_script, V as controllableScripts } from "../dom-BORByF2b.mjs";
|
|
2
2
|
// src/dom/controllable-input.feat.ts
|
|
3
3
|
controllableScripts[0] = _attr_input_checked_script;
|
|
4
4
|
controllableScripts[1] = _attr_input_checkedValue_script;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
2
|
+
const require_control_flow = require("../dom-sfzdCRAg.js");
|
|
3
3
|
// src/dom/controllable-open.feat.ts
|
|
4
4
|
require_control_flow.controllableScripts[4] = require_control_flow._attr_details_or_dialog_open_script;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { S as _attr_details_or_dialog_open_script, V as controllableScripts } from "../dom-
|
|
1
|
+
import { S as _attr_details_or_dialog_open_script, V as controllableScripts } from "../dom-BORByF2b.mjs";
|
|
2
2
|
// src/dom/controllable-open.feat.ts
|
|
3
3
|
controllableScripts[4] = _attr_details_or_dialog_open_script;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
2
|
+
const require_control_flow = require("../dom-sfzdCRAg.js");
|
|
3
3
|
// src/dom/controllable-select.feat.ts
|
|
4
4
|
require_control_flow.controllableScripts[3] = require_control_flow._attr_select_value_script;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { I as _attr_select_value_script, V as controllableScripts } from "../dom-
|
|
1
|
+
import { I as _attr_select_value_script, V as controllableScripts } from "../dom-BORByF2b.mjs";
|
|
2
2
|
// src/dom/controllable-select.feat.ts
|
|
3
3
|
controllableScripts[3] = _attr_select_value_script;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
2
|
+
const require_control_flow = require("../dom-sfzdCRAg.js");
|
|
3
3
|
// src/dom/controllable-textarea.feat.ts
|
|
4
4
|
require_control_flow.controllableScripts[2] = require_control_flow._attr_input_value_script;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { N as _attr_input_value_script, V as controllableScripts } from "../dom-
|
|
1
|
+
import { N as _attr_input_value_script, V as controllableScripts } from "../dom-BORByF2b.mjs";
|
|
2
2
|
// src/dom/controllable-textarea.feat.ts
|
|
3
3
|
controllableScripts[2] = _attr_input_value_script;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as _controllable_textarea, H as controllableSpreadHelpers, L as _controllable_input, R as _controllable_open, z as _controllable_select } from "../dom-
|
|
1
|
+
import { B as _controllable_textarea, H as controllableSpreadHelpers, L as _controllable_input, R as _controllable_open, z as _controllable_select } from "../dom-BORByF2b.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
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
2
|
+
const require_control_flow = require("../dom-sfzdCRAg.js");
|
|
3
3
|
// src/dom/dynamic-tag-script.feat.ts
|
|
4
4
|
require_control_flow._resumed[require_control_flow.DYNAMIC_TAG_SCRIPT_REGISTER_ID] = require_control_flow.withBranches(require_control_flow.dynamicTagScript);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Cn as withBranches, Zt as DYNAMIC_TAG_SCRIPT_REGISTER_ID, h as dynamicTagScript, yt as _resumed } from "../dom-BORByF2b.mjs";
|
|
2
2
|
// src/dom/dynamic-tag-script.feat.ts
|
|
3
3
|
_resumed[DYNAMIC_TAG_SCRIPT_REGISTER_ID] = withBranches(dynamicTagScript);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
2
|
+
const require_control_flow = require("../dom-sfzdCRAg.js");
|
|
3
3
|
// src/dom/dynamic-tag-var.feat.ts
|
|
4
4
|
require_control_flow.installBranchRenders();
|
|
5
5
|
require_control_flow.installDynamicTagVar((scope, branch, scopeKey, renderer) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { At as _el_read, Gn as StartNode, Kn as TagVariable, Pn as BranchRenders, g as installDynamicTagVar, in as installBranchRenders, rn as createBranchRenders } from "../dom-BORByF2b.mjs";
|
|
2
2
|
// src/dom/dynamic-tag-var.feat.ts
|
|
3
3
|
installBranchRenders();
|
|
4
4
|
installDynamicTagVar((scope, branch, scopeKey, renderer) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
2
|
+
const require_control_flow = require("../dom-sfzdCRAg.js");
|
|
3
3
|
// src/dom/placeholder.feat.ts
|
|
4
4
|
require_control_flow._resumed[require_control_flow.PLACEHOLDER_DISMISS_REGISTER_ID] = (tryBranch) => {
|
|
5
5
|
if (tryBranch["#PlaceholderBranch"]) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Qt as PLACEHOLDER_DISMISS_REGISTER_ID, Wn as PlaceholderBranch, qt as destroyBranch, yt as _resumed } from "../dom-BORByF2b.mjs";
|
|
2
2
|
// src/dom/placeholder.feat.ts
|
|
3
3
|
_resumed[PLACEHOLDER_DISMISS_REGISTER_ID] = (tryBranch) => {
|
|
4
4
|
if (tryBranch["#PlaceholderBranch"]) {
|
|
@@ -1181,7 +1181,9 @@ function setParentBranch(branch, parentBranch) {
|
|
|
1181
1181
|
branch[ClosestBranch] = branch;
|
|
1182
1182
|
}
|
|
1183
1183
|
function createAndSetupBranch($global, renderer, parentScope, parentNode) {
|
|
1184
|
-
|
|
1184
|
+
const branch = setupBranch(renderer, createBranch($global, renderer, parentScope, parentNode));
|
|
1185
|
+
renderer[Params]?.(branch, []);
|
|
1186
|
+
return branch;
|
|
1185
1187
|
}
|
|
1186
1188
|
function setupBranch(renderer, branch) {
|
|
1187
1189
|
renderer[Setup]?.(branch);
|
|
@@ -2219,4 +2221,4 @@ function bySecondArg(_item, index) {
|
|
|
2219
2221
|
function byFirstArg(name) {
|
|
2220
2222
|
return name;
|
|
2221
2223
|
}
|
|
2222
|
-
export { _attrs as $,
|
|
2224
|
+
export { _attrs as $, _on as $t, _attr_input_value_attribute_default as A, Setup as An, _el_read as At, _controllable_textarea as B, ParentBranch as Bn, _or as Bt, _attr_input_checked as C, withBranches as Cn, initEmbedded as Ct, _attr_input_checked_default as D, Owner as Dn, _closure as Dt, _attr_input_checkedValue_script as E, LocalClosures as En, withLazy as Et, _attr_select_value_default as F, ClosestBranch as Fn, _hoist_resume as Ft, _attr_class_item as G, StartNode as Gn, _var_change as Gt, controllableSpreadHelpers as H, PendingEffects as Hn, _return_change as Ht, _attr_select_value_script as I, EndNode as In, _id as It, _attr_content as J, attrTags as Jn, insertBranchBefore as Jt, _attr_class_items as K, TagVariable as Kn, _assert_init as Kt, _controllable_input as L, Gen$1 as Ln, _if_closure as Lt, _attr_input_value_dynamic_default as M, Scope as Mn, _for_selector as Mt, _attr_input_value_script as N, AwaitCounter as Nn, _global_read as Nt, _attr_input_checked_script as O, Params as On, _closure_get as Ot, _attr_select_value as P, BranchRenders as Pn, _hoist as Pt, _attr_style_items as Q, PLACEHOLDER_DISMISS_REGISTER_ID as Qt, _controllable_open as R, Global as Rn, _let as Rt, _attr_details_or_dialog_open_script as S, setClassAPIRenderer as Sn, init as St, _attr_input_checkedValue_default as T, Lazy as Tn, readyFailed as Tt, _attr as U, PendingRenders as Un, _script as Ut, controllableScripts as V, PendingEffectScopes as Vn, _return as Vt, _attr_class as W, PlaceholderBranch as Wn, _var as Wt, _attr_style as X, syncGen as Xt, _attr_nonce as Y, removeAndDestroyBranch as Yt, _attr_style_item as Z, DYNAMIC_TAG_SCRIPT_REGISTER_ID as Zt, renderCatch as _, forUntil as _n, _dynamic_tag_var_resume as _t, _for_in as a, installCatch as an, _lifecycle as at, _attr_details_or_dialog_open as b, _hoist_read_error as bn, _var_resume as bt, _for_to as c, queueEffect as cn, _text as ct, _for_until_unkeyed as d, run as dn, _content as dt, $signal as en, _attrs_content as et, _if as f, runEffects as fn, _content_closures as ft, installDynamicTagVar as g, forTo as gn, setupBranch as gt, dynamicTagScript as h, forOf as hn, createBranch as ht, _dynamic_tag_content as i, installBranchRenders as in, _html as it, _attr_input_value_default as j, Pending as jn, _for_closure as jt, _attr_input_value as k, Returns as kn, _const as kt, _for_to_unkeyed as l, queueRender as ln, _text_content as lt, _try as m, forIn as mn, _return_setup as mt, _await_promise as n, onAbort as nn, _attrs_partial_content as nt, _for_of as o, prepareEffects as on, _style_rule_item as ot, _show as p, runId as pn, _content_resume as pt, _attr_class_names as q, attrTag as qn, destroyBranch as qt, _dynamic_tag as r, createBranchRenders as rn, _attrs_script as rt, _for_of_unkeyed as s, queueAsyncRender as sn, _style_shell as st, _await_content as t, $signalReset as tn, _attrs_partial as tt, _for_until as u, rendering as un, _to_text as ut, runPendingEffects as v, _assert_class_toggles as vn, _el as vt, _attr_input_checkedValue as w, Clone as wn, ready as wt, _attr_details_or_dialog_open_default as x, _call as xn, getRegisteredWithScope as xt, startAwait as y, _assert_hoist as yn, _resumed as yt, _controllable_select as z, Load as zn, _let_change as zt };
|
|
@@ -1182,7 +1182,9 @@ function setParentBranch(branch, parentBranch) {
|
|
|
1182
1182
|
branch[ClosestBranch] = branch;
|
|
1183
1183
|
}
|
|
1184
1184
|
function createAndSetupBranch($global, renderer, parentScope, parentNode) {
|
|
1185
|
-
|
|
1185
|
+
const branch = setupBranch(renderer, createBranch($global, renderer, parentScope, parentNode));
|
|
1186
|
+
renderer[Params]?.(branch, []);
|
|
1187
|
+
return branch;
|
|
1186
1188
|
}
|
|
1187
1189
|
function setupBranch(renderer, branch) {
|
|
1188
1190
|
renderer[Setup]?.(branch);
|
|
@@ -2946,12 +2948,6 @@ Object.defineProperty(exports, "controllableSpreadHelpers", {
|
|
|
2946
2948
|
return controllableSpreadHelpers;
|
|
2947
2949
|
}
|
|
2948
2950
|
});
|
|
2949
|
-
Object.defineProperty(exports, "createAndSetupBranch", {
|
|
2950
|
-
enumerable: true,
|
|
2951
|
-
get: function() {
|
|
2952
|
-
return createAndSetupBranch;
|
|
2953
|
-
}
|
|
2954
|
-
});
|
|
2955
2951
|
Object.defineProperty(exports, "createBranch", {
|
|
2956
2952
|
enumerable: true,
|
|
2957
2953
|
get: function() {
|
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-sfzdCRAg.js");
|
|
4
4
|
// src/dom/template.ts
|
|
5
5
|
const _template = (id, template, walks, setup, inputSignal) => {
|
|
6
6
|
const renderer = require_control_flow._content(id, template, walks, setup, inputSignal)();
|
package/dist/debug/dom.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as _attrs, A as _attr_input_value_attribute_default,
|
|
1
|
+
import { $ as _attrs, $t as _on, A as _attr_input_value_attribute_default, An as Setup, At as _el_read, B as _controllable_textarea, Bt as _or, C as _attr_input_checked, Ct as initEmbedded, D as _attr_input_checked_default, Dt as _closure, E as _attr_input_checkedValue_script, F as _attr_select_value_default, Ft as _hoist_resume, G as _attr_class_item, Gn as StartNode, Gt as _var_change, Ht as _return_change, I as _attr_select_value_script, It as _id, J as _attr_content, Jn as attrTags, Jt as insertBranchBefore, K as _attr_class_items, Kn as TagVariable, Kt as _assert_init, L as _controllable_input, Lt as _if_closure, M as _attr_input_value_dynamic_default, Mt as _for_selector, N as _attr_input_value_script, Nt as _global_read, O as _attr_input_checked_script, On as Params, Ot as _closure_get, P as _attr_select_value, Pt as _hoist, Q as _attr_style_items, R as _controllable_open, Rt as _let, S as _attr_details_or_dialog_open_script, St as init, T as _attr_input_checkedValue_default, Tn as Lazy, Tt as readyFailed, U as _attr, Ut as _script, Vt as _return, W as _attr_class, Wt as _var, X as _attr_style, Xt as syncGen, Y as _attr_nonce, Yt as removeAndDestroyBranch, Z as _attr_style_item, _ as renderCatch, _n as forUntil, _t as _dynamic_tag_var_resume, a as _for_in, at as _lifecycle, b as _attr_details_or_dialog_open, bn as _hoist_read_error, bt as _var_resume, c as _for_to, ct as _text, d as _for_until_unkeyed, dn as run, dt as _content, en as $signal, et as _attrs_content, f as _if, fn as runEffects, ft as _content_closures, gn as forTo, gt as setupBranch, hn as forOf, ht as createBranch, i as _dynamic_tag_content, it as _html, j as _attr_input_value_default, jt as _for_closure, k as _attr_input_value, kt as _const, l as _for_to_unkeyed, ln as queueRender, lt as _text_content, m as _try, mn as forIn, mt as _return_setup, n as _await_promise, nn as onAbort, nt as _attrs_partial_content, o as _for_of, on as prepareEffects, ot as _style_rule_item, p as _show, pn as runId, pt as _content_resume, q as _attr_class_names, qn as attrTag, r as _dynamic_tag, rt as _attrs_script, s as _for_of_unkeyed, sn as queueAsyncRender, st as _style_shell, t as _await_content, tn as $signalReset, tt as _attrs_partial, u as _for_until, ut as _to_text, vn as _assert_class_toggles, vt as _el, w as _attr_input_checkedValue, wn as Clone, wt as ready, x as _attr_details_or_dialog_open_default, xn as _call, y as startAwait, yn as _assert_hoist, yt as _resumed, z as _controllable_select, zn as Load, zt as _let_change } from "./dom-BORByF2b.mjs";
|
|
2
2
|
// src/dom/template.ts
|
|
3
3
|
const _template = (id, template, walks, setup, inputSignal) => {
|
|
4
4
|
const renderer = _content(id, template, walks, setup, inputSignal)();
|
package/dist/dom/catch.feat.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
let require_control_flow = require("../dom-
|
|
2
|
+
let require_control_flow = require("../dom-DRiewpRL.js"), deferToPendingTry = (fn, scope, branch) => {
|
|
3
3
|
for (; branch;) {
|
|
4
|
-
if (branch.O?.i) return (scope.J ||= ((branch.JS ||= (branch.O.m && ((complete) => branch.O.c = (_) => complete() || require_control_flow.
|
|
4
|
+
if (branch.O?.i) return (scope.J ||= ((branch.JS ||= (branch.O.m && ((complete) => branch.O.c = (_) => complete() || require_control_flow.an(branch, require_control_flow.on, require_control_flow.v))(branch.O.c), [])).push(scope), /* @__PURE__ */ new Set())).add(fn);
|
|
5
5
|
branch = branch.N;
|
|
6
6
|
}
|
|
7
7
|
};
|
|
8
8
|
// src/dom/catch.feat.ts
|
|
9
|
-
require_control_flow.
|
|
9
|
+
require_control_flow.rn((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 && !deferToPendingTry(fn, scope, branch) && fn(scope);
|
|
12
12
|
}, (runRender) => (render) => {
|
package/dist/dom/catch.feat.mjs
CHANGED
|
@@ -4,7 +4,7 @@ let deferToPendingTry = (fn, scope, branch) => {
|
|
|
4
4
|
branch = branch.N;
|
|
5
5
|
}
|
|
6
6
|
};
|
|
7
|
-
import { _ as renderCatch,
|
|
7
|
+
import { _ as renderCatch, an as queueAsyncRender, on as queueEffect, rn as installCatch, v as runPendingEffects } from "../dom-DKn1bCPC.mjs";
|
|
8
8
|
// src/dom/catch.feat.ts
|
|
9
9
|
installCatch((effects) => {
|
|
10
10
|
let i = 0, fn, scope, branch;
|
package/dist/dom/compat.feat.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
let require_control_flow = require("../dom-
|
|
3
|
-
require_control_flow.
|
|
2
|
+
let require_control_flow = require("../dom-DRiewpRL.js"), RENDER_BODY_ID = "$C_b", classIdToBranch = /* @__PURE__ */ new Map(), classEventResolver, scopesByRender = /* @__PURE__ */ new WeakMap(), getRenderScopes = ($global) => {
|
|
3
|
+
require_control_flow.St($global.runtimeId);
|
|
4
4
|
let render = self[$global.runtimeId]?.[$global.renderId], scopes = render && scopesByRender.get(render);
|
|
5
5
|
return render && !scopes && scopesByRender.set(render, scopes = {}), scopes;
|
|
6
6
|
}, compat = {
|
|
7
|
-
setClassAPIRenderer: require_control_flow.
|
|
8
|
-
queueEffect: require_control_flow.
|
|
7
|
+
setClassAPIRenderer: require_control_flow.bn,
|
|
8
|
+
queueEffect: require_control_flow.on,
|
|
9
9
|
init(warp10Noop) {
|
|
10
|
-
require_control_flow.
|
|
10
|
+
require_control_flow.yt.$C_s = (scope) => {
|
|
11
11
|
if (getRenderScopes(scope.$)[scope.L] = scope, scope.m5c && classIdToBranch.set(scope.m5c, scope), classEventResolver) for (let key in scope) {
|
|
12
12
|
let resolved = classEventResolver(scope[key], scope);
|
|
13
13
|
resolved !== scope[key] && (scope[key] = resolved);
|
|
14
14
|
}
|
|
15
|
-
}, require_control_flow.
|
|
15
|
+
}, require_control_flow.yt[RENDER_BODY_ID] = warp10Noop;
|
|
16
16
|
},
|
|
17
17
|
setClassEventResolver(fn) {
|
|
18
18
|
classEventResolver = fn;
|
|
19
19
|
},
|
|
20
20
|
resumeClassFunction(id, build) {
|
|
21
|
-
require_control_flow.
|
|
21
|
+
require_control_flow.yt[id] = build;
|
|
22
22
|
},
|
|
23
23
|
getScope($global, scopeId) {
|
|
24
24
|
return getRenderScopes($global)?.[scopeId];
|
|
@@ -39,13 +39,13 @@ let require_control_flow = require("../dom-BB-Te-3z.js"), RENDER_BODY_ID = "$C_b
|
|
|
39
39
|
branch.S = startNode, branch.K = endNode;
|
|
40
40
|
},
|
|
41
41
|
runComponentEffects() {
|
|
42
|
-
this.effects && require_control_flow.
|
|
42
|
+
this.effects && require_control_flow.un(this.effects);
|
|
43
43
|
},
|
|
44
44
|
runComponentDestroy() {
|
|
45
|
-
this.scope && require_control_flow.
|
|
45
|
+
this.scope && require_control_flow.qt(this.scope);
|
|
46
46
|
},
|
|
47
47
|
resolveRegistered(value, $global) {
|
|
48
|
-
return Array.isArray(value) && typeof value[0] == "string" ? require_control_flow.
|
|
48
|
+
return Array.isArray(value) && typeof value[0] == "string" ? require_control_flow.xt(getRenderScopes($global)?.[value[1]], value[0]) : value;
|
|
49
49
|
},
|
|
50
50
|
createRenderer(id, clone) {
|
|
51
51
|
let renderer = require_control_flow.dt("", 0)();
|
|
@@ -66,16 +66,16 @@ let require_control_flow = require("../dom-BB-Te-3z.js"), RENDER_BODY_ID = "$C_b
|
|
|
66
66
|
};
|
|
67
67
|
},
|
|
68
68
|
render(out, component, renderer, args) {
|
|
69
|
-
require_control_flow.
|
|
69
|
+
require_control_flow.St(out.global.runtimeId);
|
|
70
70
|
let branch = component.scope, created = 0;
|
|
71
71
|
if (!branch && (branch = classIdToBranch.get(component.id)) && (component.scope = branch, classIdToBranch.delete(component.id)), args[0] && typeof args[0] == "object" && "renderBody" in args[0]) {
|
|
72
72
|
let input = args[0], normalizedInput = args[0] = {};
|
|
73
73
|
for (let key in input) normalizedInput[key === "renderBody" ? "content" : key] = input[key];
|
|
74
74
|
}
|
|
75
75
|
let renderBranch = (_) => {
|
|
76
|
-
branch ||= (created = 1, component.scope = require_control_flow.ht(out.global, renderer, renderer.e, document.body)), renderer.g?.(branch), renderer.d?.(branch, renderer._ ? args[0] : args);
|
|
76
|
+
branch ||= (created = 1, component.scope = require_control_flow.gt(renderer, require_control_flow.ht(out.global, renderer, renderer.e, document.body))), renderer.g?.(branch), renderer.d?.(branch, renderer._ ? args[0] : args);
|
|
77
77
|
};
|
|
78
|
-
if (component.effects = require_control_flow.
|
|
78
|
+
if (component.effects = require_control_flow.cn ? renderBranch() : require_control_flow.in(renderBranch), created) return branch.S.parentNode || branch.S;
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
81
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
@@ -86,9 +86,9 @@ function createClassRenderer(render, clone) {
|
|
|
86
86
|
return (id, value) => {
|
|
87
87
|
let renderer = create();
|
|
88
88
|
return renderer.a = id, renderer.b = cloneClass, renderer.c = (branch) => {
|
|
89
|
-
branch.m5b !== value && (branch.m5b = value, require_control_flow.
|
|
89
|
+
branch.m5b !== value && (branch.m5b = value, require_control_flow.sn(branch, renderBranch, 0));
|
|
90
90
|
}, renderer.d = (branch, input) => {
|
|
91
|
-
branch.m5b = value, branch.m5a = input, require_control_flow.
|
|
91
|
+
branch.m5b = value, branch.m5a = input, require_control_flow.sn(branch, renderBranch, 0);
|
|
92
92
|
}, renderer;
|
|
93
93
|
};
|
|
94
94
|
}
|
package/dist/dom/compat.feat.mjs
CHANGED
|
@@ -72,12 +72,12 @@ let RENDER_BODY_ID = "$C_b", classIdToBranch = /* @__PURE__ */ new Map(), classE
|
|
|
72
72
|
for (let key in input) normalizedInput[key === "renderBody" ? "content" : key] = input[key];
|
|
73
73
|
}
|
|
74
74
|
let renderBranch = (_) => {
|
|
75
|
-
branch ||= (created = 1, component.scope =
|
|
75
|
+
branch ||= (created = 1, component.scope = setupBranch(renderer, createBranch(out.global, renderer, renderer.e, document.body))), renderer.g?.(branch), renderer.d?.(branch, renderer._ ? args[0] : args);
|
|
76
76
|
};
|
|
77
77
|
if (component.effects = rendering ? renderBranch() : prepareEffects(renderBranch), created) return branch.S.parentNode || branch.S;
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
|
-
import {
|
|
80
|
+
import { St as init, bn as setClassAPIRenderer, cn as rendering, dt as _content, gt as setupBranch, ht as createBranch, in as prepareEffects, on as queueEffect, qt as destroyBranch, sn as queueRender, un as runEffects, xt as getRegisteredWithScope, yt as _resumed } from "../dom-DKn1bCPC.mjs";
|
|
81
81
|
// src/common/compat-meta.ts
|
|
82
82
|
// src/dom/compat.feat.ts
|
|
83
83
|
function createClassRenderer(render, clone) {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
let require_control_flow = require("../dom-
|
|
2
|
+
let require_control_flow = require("../dom-DRiewpRL.js");
|
|
3
3
|
require_control_flow.V[0] = require_control_flow.O, require_control_flow.V[1] = require_control_flow.E, require_control_flow.V[2] = require_control_flow.N;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { E as _attr_input_checkedValue_script, N as _attr_input_value_script, O as _attr_input_checked_script, V as controllableScripts } from "../dom-
|
|
1
|
+
import { E as _attr_input_checkedValue_script, N as _attr_input_value_script, O as _attr_input_checked_script, V as controllableScripts } from "../dom-DKn1bCPC.mjs";
|
|
2
2
|
controllableScripts[0] = _attr_input_checked_script, controllableScripts[1] = _attr_input_checkedValue_script, controllableScripts[2] = _attr_input_value_script;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { S as _attr_details_or_dialog_open_script, V as controllableScripts } from "../dom-
|
|
1
|
+
import { S as _attr_details_or_dialog_open_script, V as controllableScripts } from "../dom-DKn1bCPC.mjs";
|
|
2
2
|
// src/dom/controllable-open.feat.ts
|
|
3
3
|
controllableScripts[4] = _attr_details_or_dialog_open_script;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { I as _attr_select_value_script, V as controllableScripts } from "../dom-
|
|
1
|
+
import { I as _attr_select_value_script, V as controllableScripts } from "../dom-DKn1bCPC.mjs";
|
|
2
2
|
// src/dom/controllable-select.feat.ts
|
|
3
3
|
controllableScripts[3] = _attr_select_value_script;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { N as _attr_input_value_script, V as controllableScripts } from "../dom-
|
|
1
|
+
import { N as _attr_input_value_script, V as controllableScripts } from "../dom-DKn1bCPC.mjs";
|
|
2
2
|
// src/dom/controllable-textarea.feat.ts
|
|
3
3
|
controllableScripts[2] = _attr_input_value_script;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
let require_control_flow = require("../dom-
|
|
2
|
+
let require_control_flow = require("../dom-DRiewpRL.js");
|
|
3
3
|
require("./controllable-input.feat.js"), require("./controllable-open.feat.js"), require("./controllable-select.feat.js"), require_control_flow.H.INPUT = require_control_flow.L, require_control_flow.H.TEXTAREA = require_control_flow.B, require_control_flow.H.SELECT = require_control_flow.z, require_control_flow.H.DETAILS = require_control_flow.H.DIALOG = require_control_flow.R;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as _controllable_textarea, H as controllableSpreadHelpers, L as _controllable_input, R as _controllable_open, z as _controllable_select } from "../dom-
|
|
1
|
+
import { B as _controllable_textarea, H as controllableSpreadHelpers, L as _controllable_input, R as _controllable_open, z as _controllable_select } from "../dom-DKn1bCPC.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
1
|
"use strict";
|
|
2
|
-
let require_control_flow = require("../dom-
|
|
2
|
+
let require_control_flow = require("../dom-DRiewpRL.js");
|
|
3
3
|
// src/dom/dynamic-tag-script.feat.ts
|
|
4
|
-
require_control_flow.
|
|
4
|
+
require_control_flow.yt._d = require_control_flow.xn(require_control_flow.h);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h as dynamicTagScript, xn as withBranches, yt as _resumed } from "../dom-DKn1bCPC.mjs";
|
|
2
2
|
// src/dom/dynamic-tag-script.feat.ts
|
|
3
3
|
_resumed._d = withBranches(dynamicTagScript);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
let require_control_flow = require("../dom-
|
|
3
|
-
require_control_flow.
|
|
4
|
-
branch.BR = require_control_flow.
|
|
2
|
+
let require_control_flow = require("../dom-DRiewpRL.js");
|
|
3
|
+
require_control_flow.nn(), require_control_flow.g((scope, branch, scopeKey, renderer) => {
|
|
4
|
+
branch.BR = require_control_flow.tn(scope, scopeKey), typeof renderer == "string" && branch.T((_) => branch.S);
|
|
5
5
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as installDynamicTagVar, nn as
|
|
1
|
+
import { g as installDynamicTagVar, nn as installBranchRenders, tn as createBranchRenders } from "../dom-DKn1bCPC.mjs";
|
|
2
2
|
installBranchRenders(), installDynamicTagVar((scope, branch, scopeKey, renderer) => {
|
|
3
3
|
branch.BR = createBranchRenders(scope, scopeKey), typeof renderer == "string" && branch.T((_) => branch.S);
|
|
4
4
|
});
|
package/dist/dom/lazy.feat.js
CHANGED
package/dist/dom/lazy.feat.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
let require_control_flow = require("../dom-
|
|
2
|
+
let require_control_flow = require("../dom-DRiewpRL.js");
|
|
3
3
|
// src/dom/placeholder.feat.ts
|
|
4
|
-
require_control_flow.
|
|
5
|
-
tryBranch.P &&= (require_control_flow.
|
|
4
|
+
require_control_flow.yt._f = (tryBranch) => {
|
|
5
|
+
tryBranch.P &&= (require_control_flow.qt(tryBranch.P), 0);
|
|
6
6
|
};
|
|
@@ -642,7 +642,8 @@ function setParentBranch(branch, parentBranch) {
|
|
|
642
642
|
parentBranch && (branch.N = parentBranch, (parentBranch.D ||= /* @__PURE__ */ new Set()).add(branch)), branch.F = branch;
|
|
643
643
|
}
|
|
644
644
|
function createAndSetupBranch($global, renderer, parentScope, parentNode) {
|
|
645
|
-
|
|
645
|
+
let branch = setupBranch(renderer, createBranch($global, renderer, parentScope, parentNode));
|
|
646
|
+
return renderer.d?.(branch, []), branch;
|
|
646
647
|
}
|
|
647
648
|
function setupBranch(renderer, branch) {
|
|
648
649
|
return renderer.c?.(branch), branch;
|
|
@@ -1182,4 +1183,4 @@ function bySecondArg(_item, index) {
|
|
|
1182
1183
|
function byFirstArg(name) {
|
|
1183
1184
|
return name;
|
|
1184
1185
|
}
|
|
1185
|
-
export { _attrs as $, $
|
|
1186
|
+
export { _attrs as $, $signalReset as $t, _attr_input_value_attribute_default as A, _el_read as At, _controllable_textarea as B, _or as Bt, _attr_input_checked as C, initEmbedded as Ct, _attr_input_checked_default as D, _closure as Dt, _attr_input_checkedValue_script as E, withLazy as Et, _attr_select_value_default as F, _hoist_resume as Ft, _attr_class_item as G, _var_change as Gt, controllableSpreadHelpers as H, _return_change as Ht, _attr_select_value_script as I, _id as It, _attr_content as J, insertBranchBefore as Jt, _attr_class_items as K, _assert_init as Kt, _controllable_input as L, _if_closure as Lt, _attr_input_value_dynamic_default as M, _for_selector as Mt, _attr_input_value_script as N, _global_read as Nt, _attr_input_checked_script as O, _closure_get as Ot, _attr_select_value as P, _hoist as Pt, _attr_style_items as Q, $signal as Qt, _controllable_open as R, _let as Rt, _attr_details_or_dialog_open_script as S, init as St, _attr_input_checkedValue_default as T, readyFailed as Tt, _attr as U, _script as Ut, controllableScripts as V, _return as Vt, _attr_class as W, _var as Wt, _attr_style as X, syncGen as Xt, _attr_nonce as Y, removeAndDestroyBranch as Yt, _attr_style_item as Z, _on as Zt, renderCatch as _, _assert_hoist as _n, _dynamic_tag_var_resume as _t, _for_in as a, queueAsyncRender as an, _lifecycle as at, _attr_details_or_dialog_open as b, setClassAPIRenderer as bn, _var_resume as bt, _for_to as c, rendering as cn, _text as ct, _for_until_unkeyed as d, runId as dn, _content as dt, onAbort as en, _attrs_content as et, _if as f, forIn as fn, _content_closures as ft, installDynamicTagVar as g, _assert_class_toggles as gn, setupBranch as gt, dynamicTagScript as h, forUntil as hn, createBranch as ht, _dynamic_tag_content as i, prepareEffects as in, _html as it, _attr_input_value_default as j, _for_closure as jt, _attr_input_value as k, _const as kt, _for_to_unkeyed as l, run as ln, _text_content as lt, _try as m, forTo as mn, _return_setup as mt, _await_promise as n, installBranchRenders as nn, _attrs_partial_content as nt, _for_of as o, queueEffect as on, _style_rule_item as ot, _show as p, forOf as pn, _content_resume as pt, _attr_class_names as q, destroyBranch as qt, _dynamic_tag as r, installCatch as rn, _attrs_script as rt, _for_of_unkeyed as s, queueRender as sn, _style_shell as st, _await_content as t, createBranchRenders as tn, _attrs_partial as tt, _for_until as u, runEffects as un, _to_text as ut, runPendingEffects as v, _hoist_read_error as vn, _el as vt, _attr_input_checkedValue as w, ready as wt, _attr_details_or_dialog_open_default as x, withBranches as xn, getRegisteredWithScope as xt, startAwait as y, _call as yn, _resumed as yt, _controllable_select as z, _let_change as zt };
|