marko 6.0.60 → 6.0.62
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/types.d.ts +4 -3
- package/dist/debug/dom.js +350 -378
- package/dist/debug/dom.mjs +350 -378
- package/dist/debug/html.js +268 -263
- package/dist/debug/html.mjs +218 -213
- package/dist/dom/abort-signal.d.ts +2 -2
- package/dist/dom/control-flow.d.ts +8 -8
- package/dist/dom/controllable.d.ts +11 -11
- package/dist/dom/dom.d.ts +17 -18
- package/dist/dom/event.d.ts +1 -1
- package/dist/dom/queue.d.ts +1 -1
- package/dist/dom/renderer.d.ts +4 -4
- package/dist/dom/resume.d.ts +3 -3
- package/dist/dom/signals.d.ts +14 -14
- package/dist/dom/template.d.ts +1 -1
- package/dist/dom.d.ts +10 -10
- package/dist/dom.js +285 -305
- package/dist/dom.mjs +285 -305
- package/dist/html/attrs.d.ts +14 -14
- package/dist/html/compat.d.ts +5 -5
- package/dist/html/content.d.ts +4 -4
- package/dist/html/dynamic-tag.d.ts +3 -3
- package/dist/html/template.d.ts +1 -1
- package/dist/html/writer.d.ts +26 -26
- package/dist/html.d.ts +5 -5
- package/dist/html.js +263 -254
- package/dist/html.mjs +213 -204
- package/dist/translator/index.js +500 -482
- package/dist/translator/util/runtime.d.ts +8 -8
- package/dist/translator/util/signals.d.ts +1 -1
- package/package.json +1 -1
package/dist/debug/dom.mjs
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
// src/common/attr-tag.ts
|
2
2
|
var empty = [];
|
3
3
|
var rest = true ? Symbol("Attribute Tag") : Symbol();
|
4
|
-
function attrTag(
|
5
|
-
|
6
|
-
|
7
|
-
return
|
4
|
+
function attrTag(attrs) {
|
5
|
+
attrs[Symbol.iterator] = attrTagIterator;
|
6
|
+
attrs[rest] = empty;
|
7
|
+
return attrs;
|
8
8
|
}
|
9
|
-
function attrTags(first,
|
9
|
+
function attrTags(first, attrs) {
|
10
10
|
if (first) {
|
11
11
|
if (first[rest] === empty) {
|
12
|
-
first[rest] = [
|
12
|
+
first[rest] = [attrs];
|
13
13
|
} else {
|
14
|
-
first[rest].push(
|
14
|
+
first[rest].push(attrs);
|
15
15
|
}
|
16
16
|
return first;
|
17
17
|
}
|
18
|
-
return attrTag(
|
18
|
+
return attrTag(attrs);
|
19
19
|
}
|
20
20
|
function* attrTagIterator() {
|
21
21
|
yield this;
|
@@ -48,14 +48,14 @@ function forTo(to, from, step, cb) {
|
|
48
48
|
function classValue(classValue2) {
|
49
49
|
return toDelimitedString(classValue2, " ", stringifyClassObject);
|
50
50
|
}
|
51
|
-
function stringifyClassObject(name,
|
52
|
-
return
|
51
|
+
function stringifyClassObject(name, value) {
|
52
|
+
return value ? name : "";
|
53
53
|
}
|
54
54
|
function styleValue(styleValue2) {
|
55
55
|
return toDelimitedString(styleValue2, ";", stringifyStyleObject);
|
56
56
|
}
|
57
|
-
function stringifyStyleObject(name,
|
58
|
-
return
|
57
|
+
function stringifyStyleObject(name, value) {
|
58
|
+
return value || value === 0 ? name + ":" + value : "";
|
59
59
|
}
|
60
60
|
function toDelimitedString(val, delimiter, stringify) {
|
61
61
|
let str = "";
|
@@ -90,13 +90,13 @@ function isEventHandler(name) {
|
|
90
90
|
function getEventHandlerName(name) {
|
91
91
|
return name[2] === "-" ? name.slice(3) : name.slice(2).toLowerCase();
|
92
92
|
}
|
93
|
-
function normalizeDynamicRenderer(
|
94
|
-
return
|
93
|
+
function normalizeDynamicRenderer(value) {
|
94
|
+
return value ? value.content || value.default || value : void 0;
|
95
95
|
}
|
96
96
|
|
97
97
|
// src/dom/event.ts
|
98
98
|
var defaultDelegator = createDelegator();
|
99
|
-
function
|
99
|
+
function _on(element, type, handler) {
|
100
100
|
if (element["$" + type] === void 0) {
|
101
101
|
defaultDelegator(element, type, handleDelegated);
|
102
102
|
}
|
@@ -211,57 +211,57 @@ function walk(startNode, walkCodes, branch) {
|
|
211
211
|
walkInternal(0, walkCodes, branch);
|
212
212
|
}
|
213
213
|
function walkInternal(currentWalkIndex, walkCodes, scope) {
|
214
|
-
let
|
214
|
+
let value;
|
215
215
|
let storedMultiplier = 0;
|
216
216
|
let currentMultiplier = 0;
|
217
217
|
let currentScopeIndex = 0;
|
218
218
|
for (; currentWalkIndex < walkCodes.length; ) {
|
219
|
-
|
219
|
+
value = walkCodes.charCodeAt(currentWalkIndex++);
|
220
220
|
currentMultiplier = storedMultiplier;
|
221
221
|
storedMultiplier = 0;
|
222
|
-
if (
|
222
|
+
if (value === 32 /* Get */) {
|
223
223
|
const node = walker.currentNode;
|
224
224
|
scope[true ? getDebugKey(currentScopeIndex, walker.currentNode) : currentScopeIndex] = node;
|
225
225
|
scope["Getter:" /* Getter */ + (true ? getDebugKey(currentScopeIndex++, walker.currentNode) : currentScopeIndex++)] = () => node;
|
226
|
-
} else if (
|
226
|
+
} else if (value === 37 /* Replace */ || value === 49 /* DynamicTagWithVar */) {
|
227
227
|
walker.currentNode.replaceWith(
|
228
228
|
walker.currentNode = scope[true ? getDebugKey(currentScopeIndex++, "#text") : currentScopeIndex++] = new Text()
|
229
229
|
);
|
230
|
-
if (
|
230
|
+
if (value === 49 /* DynamicTagWithVar */) {
|
231
231
|
scope[true ? getDebugKey(currentScopeIndex++, "#scopeOffset") : currentScopeIndex++] = skipScope(scope);
|
232
232
|
}
|
233
|
-
} else if (
|
233
|
+
} else if (value === 38 /* EndChild */) {
|
234
234
|
return currentWalkIndex;
|
235
|
-
} else if (
|
235
|
+
} else if (value === 47 /* BeginChild */ || value === 48 /* BeginChildWithVar */) {
|
236
236
|
currentWalkIndex = walkInternal(
|
237
237
|
currentWalkIndex,
|
238
238
|
walkCodes,
|
239
239
|
scope[true ? getDebugKey(currentScopeIndex++, "#childScope") : currentScopeIndex++] = createScope(scope.$global, scope.___closestBranch)
|
240
240
|
);
|
241
|
-
if (
|
241
|
+
if (value === 48 /* BeginChildWithVar */) {
|
242
242
|
scope[true ? getDebugKey(currentScopeIndex++, "#scopeOffset") : currentScopeIndex++] = skipScope(scope);
|
243
243
|
}
|
244
|
-
} else if (
|
245
|
-
|
246
|
-
while (
|
244
|
+
} else if (value < 91 /* NextEnd */ + 1) {
|
245
|
+
value = 20 /* Next */ * currentMultiplier + value - 67 /* Next */;
|
246
|
+
while (value--) {
|
247
247
|
walker.nextNode();
|
248
248
|
}
|
249
|
-
} else if (
|
250
|
-
|
251
|
-
while (
|
249
|
+
} else if (value < 106 /* OverEnd */ + 1) {
|
250
|
+
value = 10 /* Over */ * currentMultiplier + value - 97 /* Over */;
|
251
|
+
while (value--) {
|
252
252
|
walker.nextSibling();
|
253
253
|
}
|
254
|
-
} else if (
|
255
|
-
|
256
|
-
while (
|
254
|
+
} else if (value < 116 /* OutEnd */ + 1) {
|
255
|
+
value = 10 /* Out */ * currentMultiplier + value - 107 /* Out */;
|
256
|
+
while (value--) {
|
257
257
|
walker.parentNode();
|
258
258
|
}
|
259
259
|
walker.nextSibling();
|
260
260
|
} else {
|
261
|
-
if (
|
262
|
-
throw new Error(`Unknown walk code: ${
|
261
|
+
if (value < 117 /* Multiplier */ || value > 126 /* MultiplierEnd */) {
|
262
|
+
throw new Error(`Unknown walk code: ${value}`);
|
263
263
|
}
|
264
|
-
storedMultiplier = currentMultiplier * 10 /* Multiplier */ +
|
264
|
+
storedMultiplier = currentMultiplier * 10 /* Multiplier */ + value - 117 /* Multiplier */;
|
265
265
|
}
|
266
266
|
}
|
267
267
|
}
|
@@ -301,84 +301,72 @@ function init(runtimeId = DEFAULT_RUNTIME_ID) {
|
|
301
301
|
value: resumeRender = ((renderId) => {
|
302
302
|
const render = resumeRender[renderId] = renders2[renderId] || renders2(renderId);
|
303
303
|
const walk2 = render.w;
|
304
|
-
const commentPrefixLen = render.i.length;
|
305
304
|
const scopeLookup = render.s = {};
|
306
305
|
const serializeContext = {
|
307
306
|
_: registeredValues
|
308
307
|
};
|
309
308
|
const branches = branchesEnabled && /* @__PURE__ */ (() => {
|
310
|
-
const
|
311
|
-
const
|
312
|
-
const
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
let
|
318
|
-
let
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
309
|
+
const branchParents = /* @__PURE__ */ new Map();
|
310
|
+
const branchStarts = [];
|
311
|
+
const orphanBranches = [];
|
312
|
+
const endBranch = (singleNode) => {
|
313
|
+
const parent = visit.parentNode;
|
314
|
+
let startVisit = visit;
|
315
|
+
let i = orphanBranches.length;
|
316
|
+
let claimed = 0;
|
317
|
+
let branchId;
|
318
|
+
let branch;
|
319
|
+
while (branchId = +lastToken) {
|
320
|
+
branch = scopeLookup[branchId] ||= {};
|
321
|
+
if (singleNode) {
|
322
|
+
while (startVisit.previousSibling && ~visits.indexOf(
|
323
|
+
startVisit = startVisit.previousSibling
|
324
|
+
)) ;
|
325
|
+
branch.___endNode = branch.___startNode = startVisit;
|
326
|
+
if (visitType === "'" /* BranchEndNativeTag */) {
|
327
|
+
branch[true ? getDebugKey(0, startVisit) : 0] = startVisit;
|
328
|
+
}
|
329
|
+
} else {
|
330
|
+
startVisit = branchStarts.pop();
|
331
|
+
if (parent !== startVisit.parentNode) {
|
332
|
+
parent.prepend(startVisit);
|
333
|
+
}
|
334
|
+
branch.___startNode = startVisit;
|
335
|
+
branch.___endNode = visit.previousSibling === startVisit ? startVisit : parent.insertBefore(new Text(), visit);
|
336
|
+
}
|
337
|
+
while (i-- && orphanBranches[i] > branchId) {
|
338
|
+
branchParents.set(orphanBranches[i], branchId);
|
339
|
+
claimed++;
|
340
|
+
}
|
341
|
+
orphanBranches.push(branchId);
|
342
|
+
branchParents.set(branchId, 0);
|
343
|
+
nextToken();
|
344
|
+
}
|
345
|
+
orphanBranches.splice(i, claimed);
|
324
346
|
};
|
325
347
|
return {
|
326
348
|
___visit() {
|
327
|
-
if (
|
328
|
-
|
329
|
-
|
330
|
-
currentBranchId = branchStack.pop();
|
331
|
-
}
|
332
|
-
if (currentBranchId) {
|
333
|
-
branchStack.push(currentBranchId);
|
334
|
-
parentBranchIds.set(scopeId, currentBranchId);
|
335
|
-
}
|
336
|
-
currentBranchId = scopeId;
|
337
|
-
visitScope.___startNode = visit;
|
338
|
-
} else if (visitToken === "]" /* BranchEnd */) {
|
339
|
-
const curParent = visit.parentNode;
|
340
|
-
const startNode = endBranch(
|
341
|
-
currentBranchId,
|
342
|
-
visit
|
343
|
-
).___startNode;
|
344
|
-
visitScope[visitData] = visit;
|
345
|
-
if (curParent !== startNode.parentNode) {
|
346
|
-
curParent.prepend(startNode);
|
347
|
-
}
|
348
|
-
currentBranchId = branchStack.pop();
|
349
|
+
if (visitType === "[" /* BranchStart */) {
|
350
|
+
endBranch();
|
351
|
+
branchStarts.push(visit);
|
349
352
|
} else {
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
~next ? next : visitData.length
|
359
|
-
);
|
360
|
-
curNode = endBranch(childScopeId, curNode).___endNode;
|
361
|
-
parentBranchIds.set(childScopeId, scopeId);
|
362
|
-
if (visitToken === "'" /* BranchNativeTag */) {
|
363
|
-
const childBranch = scopeLookup[childScopeId];
|
364
|
-
childBranch[true ? getDebugKey(0, curNode) : 0] = childBranch.___startNode = childBranch.___endNode = curNode;
|
365
|
-
}
|
366
|
-
}
|
353
|
+
visitScope[
|
354
|
+
nextToken()
|
355
|
+
/* read accessor */
|
356
|
+
] = visitType === ")" /* BranchEndOnlyChildInParent */ || visitType === "}" /* BranchEndSingleNodeOnlyChildInParent */ ? visit.parentNode : visit;
|
357
|
+
nextToken();
|
358
|
+
endBranch(
|
359
|
+
visitType !== "]" /* BranchEnd */ && visitType !== ")" /* BranchEndOnlyChildInParent */
|
360
|
+
);
|
367
361
|
}
|
368
362
|
},
|
369
363
|
___scope(scope) {
|
370
|
-
|
371
|
-
if (
|
372
|
-
scope.___closestBranch
|
373
|
-
|
374
|
-
if (branchIds.has(scopeId)) {
|
375
|
-
const branch = scope;
|
376
|
-
const parentBranch = branch.___closestBranch;
|
377
|
-
scope.___closestBranch = branch;
|
378
|
-
if (parentBranch) {
|
379
|
-
branch.___parentBranch = parentBranch;
|
380
|
-
(parentBranch.___branchScopes ||= /* @__PURE__ */ new Set()).add(branch);
|
364
|
+
scope.___closestBranch = scopeLookup[scope["#ClosestBranchId" /* ClosestBranchId */] || branchParents.get(scopeId)];
|
365
|
+
if (branchParents.has(scopeId)) {
|
366
|
+
if (scope.___closestBranch) {
|
367
|
+
((scope.___parentBranch = scope.___closestBranch).___branchScopes ||= /* @__PURE__ */ new Set()).add(scope);
|
381
368
|
}
|
369
|
+
scope.___closestBranch = scope;
|
382
370
|
}
|
383
371
|
}
|
384
372
|
};
|
@@ -391,29 +379,31 @@ function init(runtimeId = DEFAULT_RUNTIME_ID) {
|
|
391
379
|
let scopeId;
|
392
380
|
let visit;
|
393
381
|
let visitText;
|
394
|
-
let
|
395
|
-
let visitDataIndex;
|
396
|
-
let visitToken;
|
382
|
+
let visitType;
|
397
383
|
let visitScope;
|
384
|
+
let lastToken;
|
385
|
+
let lastTokenIndex;
|
386
|
+
const nextToken = () => lastToken = visitText.slice(
|
387
|
+
lastTokenIndex,
|
388
|
+
// eslint-disable-next-line no-cond-assign
|
389
|
+
(lastTokenIndex = visitText.indexOf(" ", lastTokenIndex) + 1) ? lastTokenIndex - 1 : visitText.length
|
390
|
+
);
|
398
391
|
render.w = () => {
|
399
392
|
try {
|
400
393
|
walk2();
|
401
394
|
isResuming = 1;
|
402
395
|
for (visit of visits = render.v) {
|
396
|
+
lastTokenIndex = render.i.length;
|
403
397
|
visitText = visit.data;
|
404
|
-
|
405
|
-
scopeId = +
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
};
|
414
|
-
if (visitToken === "*" /* Node */) {
|
415
|
-
visitScope["Getter:" /* Getter */ + visitData] = /* @__PURE__ */ ((node) => () => node)(visitScope[visitData] = visit.previousSibling);
|
416
|
-
} else if (branches) {
|
398
|
+
visitType = visitText[lastTokenIndex++];
|
399
|
+
if (scopeId = +nextToken()) {
|
400
|
+
visitScope = scopeLookup[scopeId] ||= {
|
401
|
+
___id: scopeId
|
402
|
+
};
|
403
|
+
}
|
404
|
+
if (visitType === "*" /* Node */) {
|
405
|
+
visitScope["Getter:" /* Getter */ + nextToken()] = /* @__PURE__ */ ((node) => () => node)(visitScope[lastToken] = visit.previousSibling);
|
406
|
+
} else if (branchesEnabled) {
|
417
407
|
branches.___visit();
|
418
408
|
}
|
419
409
|
}
|
@@ -446,7 +436,7 @@ function init(runtimeId = DEFAULT_RUNTIME_ID) {
|
|
446
436
|
scopeLookup[scopeId]
|
447
437
|
);
|
448
438
|
}
|
449
|
-
if (
|
439
|
+
if (branchesEnabled) {
|
450
440
|
branches.___scope(scope);
|
451
441
|
}
|
452
442
|
if (true) {
|
@@ -477,24 +467,24 @@ function init(runtimeId = DEFAULT_RUNTIME_ID) {
|
|
477
467
|
}
|
478
468
|
}
|
479
469
|
var isResuming;
|
480
|
-
function
|
470
|
+
function _resume(id, obj) {
|
481
471
|
registeredValues[id] = obj;
|
482
472
|
return obj;
|
483
473
|
}
|
484
|
-
function
|
485
|
-
registeredValues[id] = (scope) => (
|
474
|
+
function _var_resume(id, signal) {
|
475
|
+
registeredValues[id] = (scope) => (value) => signal(scope, value);
|
486
476
|
return signal;
|
487
477
|
}
|
488
478
|
function getRegisteredWithScope(id, scope) {
|
489
479
|
const val = registeredValues[id];
|
490
480
|
return scope ? val(scope) : val;
|
491
481
|
}
|
492
|
-
function
|
493
|
-
return
|
482
|
+
function _el(id, key) {
|
483
|
+
return _resume(id, (scope) => () => scope[key]());
|
494
484
|
}
|
495
485
|
|
496
486
|
// src/dom/controllable.ts
|
497
|
-
function
|
487
|
+
function _attr_input_checked(scope, nodeAccessor, checked, checkedChange) {
|
498
488
|
setCheckboxValue(
|
499
489
|
scope,
|
500
490
|
nodeAccessor,
|
@@ -503,7 +493,7 @@ function controllable_input_checked(scope, nodeAccessor, checked, checkedChange)
|
|
503
493
|
checkedChange
|
504
494
|
);
|
505
495
|
}
|
506
|
-
function
|
496
|
+
function _attr_input_checked_script(scope, nodeAccessor) {
|
507
497
|
const el = scope[nodeAccessor];
|
508
498
|
syncControllable(el, "input", hasCheckboxChanged, () => {
|
509
499
|
const checkedChange = scope["ControlledHandler:" /* ControlledHandler */ + nodeAccessor];
|
@@ -515,18 +505,18 @@ function controllable_input_checked_effect(scope, nodeAccessor) {
|
|
515
505
|
}
|
516
506
|
});
|
517
507
|
}
|
518
|
-
function
|
508
|
+
function _attr_input_checkedValue(scope, nodeAccessor, checkedValue, checkedValueChange, value) {
|
519
509
|
scope["ControlledValue:" /* ControlledValue */ + nodeAccessor] = checkedValue;
|
520
|
-
|
510
|
+
_attr(scope[nodeAccessor], "value", value);
|
521
511
|
setCheckboxValue(
|
522
512
|
scope,
|
523
513
|
nodeAccessor,
|
524
514
|
1 /* InputCheckedValue */,
|
525
|
-
Array.isArray(checkedValue) ? checkedValue.includes(
|
515
|
+
Array.isArray(checkedValue) ? checkedValue.includes(value) : checkedValue === value,
|
526
516
|
checkedValueChange
|
527
517
|
);
|
528
518
|
}
|
529
|
-
function
|
519
|
+
function _attr_input_checkedValue_script(scope, nodeAccessor) {
|
530
520
|
const el = scope[nodeAccessor];
|
531
521
|
syncControllable(el, "input", hasCheckboxChanged, () => {
|
532
522
|
const checkedValueChange = scope["ControlledHandler:" /* ControlledHandler */ + nodeAccessor];
|
@@ -549,13 +539,13 @@ function controllable_input_checkedValue_effect(scope, nodeAccessor) {
|
|
549
539
|
}
|
550
540
|
});
|
551
541
|
}
|
552
|
-
function
|
542
|
+
function _attr_input_value(scope, nodeAccessor, value, valueChange) {
|
553
543
|
const el = scope[nodeAccessor];
|
554
|
-
const normalizedValue = normalizeStrProp(
|
544
|
+
const normalizedValue = normalizeStrProp(value);
|
555
545
|
scope["ControlledHandler:" /* ControlledHandler */ + nodeAccessor] = valueChange;
|
556
546
|
if (valueChange) {
|
557
547
|
scope["ControlledType:" /* ControlledType */ + nodeAccessor] = 0 /* InputChecked */;
|
558
|
-
scope["ControlledValue:" /* ControlledValue */ + nodeAccessor] =
|
548
|
+
scope["ControlledValue:" /* ControlledValue */ + nodeAccessor] = value;
|
559
549
|
if (el.isConnected) {
|
560
550
|
setValueAndUpdateSelection(el, normalizedValue);
|
561
551
|
} else {
|
@@ -566,7 +556,7 @@ function controllable_input_value(scope, nodeAccessor, value2, valueChange) {
|
|
566
556
|
el.defaultValue = normalizedValue;
|
567
557
|
}
|
568
558
|
}
|
569
|
-
function
|
559
|
+
function _attr_input_value_script(scope, nodeAccessor) {
|
570
560
|
const el = scope[nodeAccessor];
|
571
561
|
if (isResuming) {
|
572
562
|
scope["ControlledValue:" /* ControlledValue */ + nodeAccessor] = el.defaultValue;
|
@@ -585,24 +575,24 @@ function controllable_input_value_effect(scope, nodeAccessor) {
|
|
585
575
|
}
|
586
576
|
});
|
587
577
|
}
|
588
|
-
function
|
578
|
+
function _attr_select_value(scope, nodeAccessor, value, valueChange) {
|
589
579
|
scope["ControlledHandler:" /* ControlledHandler */ + nodeAccessor] = valueChange;
|
590
580
|
if (valueChange) {
|
591
581
|
scope["ControlledType:" /* ControlledType */ + nodeAccessor] = 3 /* SelectValue */;
|
592
|
-
scope["ControlledValue:" /* ControlledValue */ + nodeAccessor] =
|
582
|
+
scope["ControlledValue:" /* ControlledValue */ + nodeAccessor] = value;
|
593
583
|
} else {
|
594
584
|
scope["ControlledType:" /* ControlledType */ + nodeAccessor] = 5 /* None */;
|
595
585
|
}
|
596
586
|
pendingEffects.unshift(
|
597
587
|
() => setSelectOptions(
|
598
588
|
scope[nodeAccessor],
|
599
|
-
|
589
|
+
value,
|
600
590
|
valueChange
|
601
591
|
),
|
602
592
|
scope
|
603
593
|
);
|
604
594
|
}
|
605
|
-
function
|
595
|
+
function _attr_select_value_script(scope, nodeAccessor) {
|
606
596
|
const el = scope[nodeAccessor];
|
607
597
|
const onChange = () => {
|
608
598
|
const valueChange = scope["ControlledHandler:" /* ControlledHandler */ + nodeAccessor];
|
@@ -621,8 +611,8 @@ function controllable_select_value_effect(scope, nodeAccessor) {
|
|
621
611
|
};
|
622
612
|
if (!el._) {
|
623
613
|
new MutationObserver(() => {
|
624
|
-
const
|
625
|
-
if (Array.isArray(
|
614
|
+
const value = scope["ControlledValue:" /* ControlledValue */ + nodeAccessor];
|
615
|
+
if (Array.isArray(value) ? value.length !== el.selectedOptions.length || value.some((value2, i) => value2 != el.selectedOptions[i].value) : el.value != value) {
|
626
616
|
onChange();
|
627
617
|
}
|
628
618
|
}).observe(el, {
|
@@ -632,10 +622,10 @@ function controllable_select_value_effect(scope, nodeAccessor) {
|
|
632
622
|
}
|
633
623
|
syncControllable(el, "input", hasSelectChanged, onChange);
|
634
624
|
}
|
635
|
-
function setSelectOptions(el,
|
636
|
-
if (Array.isArray(
|
625
|
+
function setSelectOptions(el, value, valueChange) {
|
626
|
+
if (Array.isArray(value)) {
|
637
627
|
for (const opt of el.options) {
|
638
|
-
const selected =
|
628
|
+
const selected = value.includes(opt.value);
|
639
629
|
if (valueChange) {
|
640
630
|
opt.selected = selected;
|
641
631
|
} else {
|
@@ -643,7 +633,7 @@ function setSelectOptions(el, value2, valueChange) {
|
|
643
633
|
}
|
644
634
|
}
|
645
635
|
} else {
|
646
|
-
const normalizedValue = normalizeStrProp(
|
636
|
+
const normalizedValue = normalizeStrProp(value);
|
647
637
|
if (valueChange) {
|
648
638
|
el.value = normalizedValue;
|
649
639
|
} else {
|
@@ -653,7 +643,7 @@ function setSelectOptions(el, value2, valueChange) {
|
|
653
643
|
}
|
654
644
|
}
|
655
645
|
}
|
656
|
-
function
|
646
|
+
function _attr_details_or_dialog_open(scope, nodeAccessor, open, openChange) {
|
657
647
|
scope["ControlledHandler:" /* ControlledHandler */ + nodeAccessor] = openChange;
|
658
648
|
if (openChange) {
|
659
649
|
scope["ControlledType:" /* ControlledType */ + nodeAccessor] = 4 /* DetailsOrDialogOpen */;
|
@@ -662,7 +652,7 @@ function controllable_detailsOrDialog_open(scope, nodeAccessor, open, openChange
|
|
662
652
|
}
|
663
653
|
scope[nodeAccessor].open = scope["ControlledValue:" /* ControlledValue */ + nodeAccessor] = normalizeBoolProp(open);
|
664
654
|
}
|
665
|
-
function
|
655
|
+
function _attr_details_or_dialog_open_script(scope, nodeAccessor) {
|
666
656
|
const el = scope[nodeAccessor];
|
667
657
|
const hasChanged = () => el.open !== scope["ControlledValue:" /* ControlledValue */ + nodeAccessor];
|
668
658
|
syncControllable(
|
@@ -681,13 +671,13 @@ function controllable_detailsOrDialog_open_effect(scope, nodeAccessor) {
|
|
681
671
|
);
|
682
672
|
}
|
683
673
|
var inputType = "";
|
684
|
-
function setValueAndUpdateSelection(el,
|
685
|
-
if (el.value !==
|
674
|
+
function setValueAndUpdateSelection(el, value) {
|
675
|
+
if (el.value !== value) {
|
686
676
|
const updatedPosition = resolveCursorPosition(
|
687
677
|
inputType,
|
688
678
|
el.getRootNode().activeElement === el && el.selectionStart,
|
689
679
|
el.value,
|
690
|
-
el.value =
|
680
|
+
el.value = value
|
691
681
|
);
|
692
682
|
if (~updatedPosition) {
|
693
683
|
el.setSelectionRange(updatedPosition, updatedPosition);
|
@@ -751,11 +741,11 @@ function hasSelectChanged(el) {
|
|
751
741
|
function hasFormElementChanged(el) {
|
752
742
|
return el.options ? hasSelectChanged(el) : hasValueChanged(el) || hasCheckboxChanged(el);
|
753
743
|
}
|
754
|
-
function normalizeStrProp(
|
755
|
-
return normalizeAttrValue(
|
744
|
+
function normalizeStrProp(value) {
|
745
|
+
return normalizeAttrValue(value) || "";
|
756
746
|
}
|
757
|
-
function normalizeBoolProp(
|
758
|
-
return
|
747
|
+
function normalizeBoolProp(value) {
|
748
|
+
return value != null && value !== false;
|
759
749
|
}
|
760
750
|
function updateList(arr, val, push) {
|
761
751
|
const index = arr.indexOf(val);
|
@@ -767,9 +757,9 @@ function toValueProp(it) {
|
|
767
757
|
|
768
758
|
// src/dom/parse-html.ts
|
769
759
|
var parsers = {};
|
770
|
-
function parseHTML(
|
760
|
+
function parseHTML(html, ns) {
|
771
761
|
const parser = parsers[ns] ||= document.createElementNS(ns, "template");
|
772
|
-
parser.innerHTML =
|
762
|
+
parser.innerHTML = html;
|
773
763
|
return parser.content || parser;
|
774
764
|
}
|
775
765
|
|
@@ -817,7 +807,7 @@ function triggerMacroTask() {
|
|
817
807
|
}
|
818
808
|
|
819
809
|
// src/dom/signals.ts
|
820
|
-
function
|
810
|
+
function _let(valueAccessor, fn) {
|
821
811
|
if (true) {
|
822
812
|
var id = +valueAccessor.slice(
|
823
813
|
valueAccessor.lastIndexOf("/") + 1
|
@@ -828,42 +818,42 @@ function state(valueAccessor, fn) {
|
|
828
818
|
);
|
829
819
|
}
|
830
820
|
const valueChangeAccessor = "TagVariableChange:" /* TagVariableChange */ + valueAccessor;
|
831
|
-
const update = (scope,
|
832
|
-
if (scope[valueAccessor] !==
|
833
|
-
scope[valueAccessor] =
|
834
|
-
fn(scope,
|
821
|
+
const update = (scope, value) => {
|
822
|
+
if (scope[valueAccessor] !== value) {
|
823
|
+
scope[valueAccessor] = value;
|
824
|
+
fn(scope, value);
|
835
825
|
}
|
836
826
|
};
|
837
|
-
return (scope,
|
827
|
+
return (scope, value, valueChange) => {
|
838
828
|
if (rendering) {
|
839
|
-
if ((scope[valueChangeAccessor] = valueChange) && scope[valueAccessor] !==
|
840
|
-
scope[valueAccessor] =
|
841
|
-
fn(scope,
|
829
|
+
if ((scope[valueChangeAccessor] = valueChange) && scope[valueAccessor] !== value || !(valueAccessor in scope)) {
|
830
|
+
scope[valueAccessor] = value;
|
831
|
+
fn(scope, value);
|
842
832
|
}
|
843
833
|
} else if (scope[valueChangeAccessor]) {
|
844
|
-
scope[valueChangeAccessor](
|
834
|
+
scope[valueChangeAccessor](value);
|
845
835
|
} else {
|
846
836
|
schedule();
|
847
837
|
queueRender(
|
848
838
|
scope,
|
849
839
|
update,
|
850
840
|
true ? id : valueAccessor,
|
851
|
-
|
841
|
+
value
|
852
842
|
);
|
853
843
|
}
|
854
|
-
return
|
844
|
+
return value;
|
855
845
|
};
|
856
846
|
}
|
857
|
-
function
|
847
|
+
function _const(valueAccessor, fn = () => {
|
858
848
|
}) {
|
859
|
-
return (scope,
|
860
|
-
if (!(valueAccessor in scope) || scope[valueAccessor] !==
|
861
|
-
scope[valueAccessor] =
|
862
|
-
fn(scope,
|
849
|
+
return (scope, value) => {
|
850
|
+
if (!(valueAccessor in scope) || scope[valueAccessor] !== value) {
|
851
|
+
scope[valueAccessor] = value;
|
852
|
+
fn(scope, value);
|
863
853
|
}
|
864
854
|
};
|
865
855
|
}
|
866
|
-
function
|
856
|
+
function _or(id, fn, defaultPending = 1, scopeIdAccessor = /* @__KEY__ */ "___id") {
|
867
857
|
return (scope) => {
|
868
858
|
if (scope.___creating) {
|
869
859
|
if (scope[id] === void 0) {
|
@@ -876,7 +866,7 @@ function intersection(id, fn, defaultPending = 1, scopeIdAccessor = /* @__KEY__
|
|
876
866
|
}
|
877
867
|
};
|
878
868
|
}
|
879
|
-
function
|
869
|
+
function _for_closure(valueAccessor, ownerLoopNodeAccessor, fn) {
|
880
870
|
const childSignal = closure(valueAccessor, fn);
|
881
871
|
const loopScopeAccessor = "LoopScopeArray:" /* LoopScopeArray */ + ownerLoopNodeAccessor;
|
882
872
|
const loopScopeMapAccessor = "LoopScopeMap:" /* LoopScopeMap */ + ownerLoopNodeAccessor;
|
@@ -902,7 +892,7 @@ function loopClosure(valueAccessor, ownerLoopNodeAccessor, fn) {
|
|
902
892
|
ownerSignal._ = childSignal;
|
903
893
|
return ownerSignal;
|
904
894
|
}
|
905
|
-
function
|
895
|
+
function _if_closure(valueAccessor, ownerConditionalNodeAccessor, branch, fn) {
|
906
896
|
const childSignal = closure(valueAccessor, fn);
|
907
897
|
const scopeAccessor = "ConditionalScope:" /* ConditionalScope */ + ownerConditionalNodeAccessor;
|
908
898
|
const branchAccessor = "ConditionalRenderer:" /* ConditionalRenderer */ + ownerConditionalNodeAccessor;
|
@@ -919,13 +909,13 @@ function subscribeToScopeSet(ownerScope, accessor, scope) {
|
|
919
909
|
const subscribers = ownerScope[accessor] ||= /* @__PURE__ */ new Set();
|
920
910
|
if (!subscribers.has(scope)) {
|
921
911
|
subscribers.add(scope);
|
922
|
-
|
912
|
+
$signal(scope, -1).addEventListener(
|
923
913
|
"abort",
|
924
914
|
() => ownerScope[accessor].delete(scope)
|
925
915
|
);
|
926
916
|
}
|
927
917
|
}
|
928
|
-
function
|
918
|
+
function _closure(...closureSignals) {
|
929
919
|
const [{ ___scopeInstancesAccessor, ___signalIndexAccessor }] = closureSignals;
|
930
920
|
for (let i = closureSignals.length; i--; ) {
|
931
921
|
closureSignals[i].___index = i;
|
@@ -944,7 +934,7 @@ function dynamicClosure(...closureSignals) {
|
|
944
934
|
}
|
945
935
|
};
|
946
936
|
}
|
947
|
-
function
|
937
|
+
function _closure_get(valueAccessor, fn, getOwnerScope) {
|
948
938
|
const childSignal = closure(valueAccessor, fn, getOwnerScope);
|
949
939
|
const closureSignal = ((scope) => {
|
950
940
|
scope[closureSignal.___signalIndexAccessor] = closureSignal.___index;
|
@@ -967,22 +957,22 @@ function closure(valueAccessor, fn, getOwnerScope) {
|
|
967
957
|
);
|
968
958
|
};
|
969
959
|
}
|
970
|
-
function
|
971
|
-
scope[childAccessor]["#TagVariable" /* TagVariable */] = (
|
960
|
+
function _var(scope, childAccessor, signal) {
|
961
|
+
scope[childAccessor]["#TagVariable" /* TagVariable */] = (value) => signal(scope, value);
|
972
962
|
}
|
973
|
-
var
|
974
|
-
function
|
963
|
+
var _return = (scope, value) => scope["#TagVariable" /* TagVariable */]?.(value);
|
964
|
+
function _return_change(scope, changeHandler) {
|
975
965
|
scope["#TagVariableChange" /* TagVariableChange */] = changeHandler;
|
976
966
|
}
|
977
|
-
var
|
967
|
+
var _var_change = (scope, value) => scope["#TagVariableChange" /* TagVariableChange */]?.(value);
|
978
968
|
var tagIdsByGlobal = /* @__PURE__ */ new WeakMap();
|
979
|
-
function
|
969
|
+
function _id({ $global }) {
|
980
970
|
const id = tagIdsByGlobal.get($global) || 0;
|
981
971
|
tagIdsByGlobal.set($global, id + 1);
|
982
972
|
return "c" + $global.runtimeId + $global.renderId + id.toString(36);
|
983
973
|
}
|
984
|
-
function
|
985
|
-
|
974
|
+
function _script(id, fn) {
|
975
|
+
_resume(id, fn);
|
986
976
|
return (scope) => {
|
987
977
|
queueEffect(scope, fn);
|
988
978
|
};
|
@@ -1000,7 +990,7 @@ function* traverseAllHoisted(scope, path, curIndex = path.length - 1) {
|
|
1000
990
|
}
|
1001
991
|
}
|
1002
992
|
}
|
1003
|
-
function
|
993
|
+
function _hoist(...path) {
|
1004
994
|
return (scope) => {
|
1005
995
|
const getOne = (...args) => iterator().next().value(...args);
|
1006
996
|
const iterator = getOne[Symbol.iterator] = () => traverseAllHoisted(scope, path);
|
@@ -1039,7 +1029,7 @@ function setupBranch(renderer, branch) {
|
|
1039
1029
|
}
|
1040
1030
|
return branch;
|
1041
1031
|
}
|
1042
|
-
function
|
1032
|
+
function _content(id, template, walks, setup, params, dynamicScopesAccessor) {
|
1043
1033
|
walks = walks ? walks.replace(/[^\0-1]+$/, "") : "";
|
1044
1034
|
setup = setup ? setup._ || setup : void 0;
|
1045
1035
|
params ||= void 0;
|
@@ -1066,16 +1056,16 @@ function createContent(id, template, walks, setup, params, dynamicScopesAccessor
|
|
1066
1056
|
};
|
1067
1057
|
};
|
1068
1058
|
}
|
1069
|
-
function
|
1070
|
-
return
|
1059
|
+
function _content_resume(id, template, walks, setup, params, dynamicScopesAccessor) {
|
1060
|
+
return _resume(
|
1071
1061
|
id,
|
1072
|
-
|
1062
|
+
_content(id, template, walks, setup, params, dynamicScopesAccessor)
|
1073
1063
|
);
|
1074
1064
|
}
|
1075
|
-
function
|
1065
|
+
function _content_closures(renderer, closureFns) {
|
1076
1066
|
const closureSignals = {};
|
1077
1067
|
for (const key in closureFns) {
|
1078
|
-
closureSignals[key] =
|
1068
|
+
closureSignals[key] = _const(key, closureFns[key]);
|
1079
1069
|
}
|
1080
1070
|
return (owner, closureValues) => {
|
1081
1071
|
const instance = renderer(owner);
|
@@ -1084,12 +1074,12 @@ function localClosures(renderer, closureFns) {
|
|
1084
1074
|
return instance;
|
1085
1075
|
};
|
1086
1076
|
}
|
1087
|
-
function
|
1088
|
-
return
|
1077
|
+
function _content_branch(template, walks, setup, params) {
|
1078
|
+
return _content("", template, walks, setup, params)();
|
1089
1079
|
}
|
1090
1080
|
var cloneCache = {};
|
1091
|
-
function createCloneableHTML(
|
1092
|
-
const { firstChild, lastChild } = parseHTML(
|
1081
|
+
function createCloneableHTML(html, ns) {
|
1082
|
+
const { firstChild, lastChild } = parseHTML(html, ns);
|
1093
1083
|
const parent = document.createElementNS(ns, "t");
|
1094
1084
|
insertChildNodes(parent, null, firstChild, lastChild);
|
1095
1085
|
return firstChild === lastChild && firstChild.nodeType < 8 /* Comment */ ? (branch, walks) => {
|
@@ -1107,53 +1097,53 @@ function createCloneableHTML(html2, ns) {
|
|
1107
1097
|
}
|
1108
1098
|
|
1109
1099
|
// src/dom/dom.ts
|
1110
|
-
function
|
1111
|
-
setAttribute(element, name, normalizeAttrValue(
|
1100
|
+
function _attr(element, name, value) {
|
1101
|
+
setAttribute(element, name, normalizeAttrValue(value));
|
1112
1102
|
}
|
1113
|
-
function setAttribute(element, name,
|
1114
|
-
if (element.getAttribute(name) !=
|
1115
|
-
if (
|
1103
|
+
function setAttribute(element, name, value) {
|
1104
|
+
if (element.getAttribute(name) != value) {
|
1105
|
+
if (value === void 0) {
|
1116
1106
|
element.removeAttribute(name);
|
1117
1107
|
} else {
|
1118
|
-
element.setAttribute(name,
|
1108
|
+
element.setAttribute(name, value);
|
1119
1109
|
}
|
1120
1110
|
}
|
1121
1111
|
}
|
1122
|
-
function
|
1123
|
-
setAttribute(element, "class", classValue(
|
1112
|
+
function _attr_class(element, value) {
|
1113
|
+
setAttribute(element, "class", classValue(value) || void 0);
|
1124
1114
|
}
|
1125
|
-
function
|
1115
|
+
function _attr_class_items(element, items) {
|
1126
1116
|
for (const key in items) {
|
1127
|
-
|
1117
|
+
_attr_class_item(element, key, items[key]);
|
1128
1118
|
}
|
1129
1119
|
}
|
1130
|
-
function
|
1131
|
-
element.classList.toggle(name, !!
|
1120
|
+
function _attr_class_item(element, name, value) {
|
1121
|
+
element.classList.toggle(name, !!value);
|
1132
1122
|
}
|
1133
|
-
function
|
1134
|
-
setAttribute(element, "style", styleValue(
|
1123
|
+
function _attr_style(element, value) {
|
1124
|
+
setAttribute(element, "style", styleValue(value) || void 0);
|
1135
1125
|
}
|
1136
|
-
function
|
1126
|
+
function _attr_style_items(element, items) {
|
1137
1127
|
for (const key in items) {
|
1138
|
-
|
1128
|
+
_attr_style_item(element, key, items[key]);
|
1139
1129
|
}
|
1140
1130
|
}
|
1141
|
-
function
|
1142
|
-
element.style.setProperty(name,
|
1131
|
+
function _attr_style_item(element, name, value) {
|
1132
|
+
element.style.setProperty(name, value || value === 0 ? value + "" : "");
|
1143
1133
|
}
|
1144
|
-
function
|
1145
|
-
const normalizedValue = normalizeString(
|
1134
|
+
function _text(node, value) {
|
1135
|
+
const normalizedValue = normalizeString(value);
|
1146
1136
|
if (node.data !== normalizedValue) {
|
1147
1137
|
node.data = normalizedValue;
|
1148
1138
|
}
|
1149
1139
|
}
|
1150
|
-
function
|
1151
|
-
const normalizedValue = normalizeString(
|
1140
|
+
function _text_content(node, value) {
|
1141
|
+
const normalizedValue = normalizeString(value);
|
1152
1142
|
if (node.textContent !== normalizedValue) {
|
1153
1143
|
node.textContent = normalizedValue;
|
1154
1144
|
}
|
1155
1145
|
}
|
1156
|
-
function
|
1146
|
+
function _attrs(scope, nodeAccessor, nextAttrs) {
|
1157
1147
|
const el = scope[nodeAccessor];
|
1158
1148
|
for (let i = el.attributes.length; i--; ) {
|
1159
1149
|
const { name } = el.attributes.item(i);
|
@@ -1163,14 +1153,14 @@ function attrs(scope, nodeAccessor, nextAttrs) {
|
|
1163
1153
|
}
|
1164
1154
|
attrsInternal(scope, nodeAccessor, nextAttrs);
|
1165
1155
|
}
|
1166
|
-
function
|
1167
|
-
|
1168
|
-
|
1156
|
+
function _attrs_content(scope, nodeAccessor, nextAttrs) {
|
1157
|
+
_attrs(scope, nodeAccessor, nextAttrs);
|
1158
|
+
_attr_content(scope, nodeAccessor, nextAttrs?.content);
|
1169
1159
|
}
|
1170
|
-
function hasAttrAlias(element,
|
1171
|
-
return
|
1160
|
+
function hasAttrAlias(element, attr, nextAttrs) {
|
1161
|
+
return attr === "checked" && element.tagName === "INPUT" && "checkedValue" in nextAttrs;
|
1172
1162
|
}
|
1173
|
-
function
|
1163
|
+
function _attrs_partial(scope, nodeAccessor, nextAttrs, skip) {
|
1174
1164
|
const el = scope[nodeAccessor];
|
1175
1165
|
const partial = {};
|
1176
1166
|
for (let i = el.attributes.length; i--; ) {
|
@@ -1184,9 +1174,9 @@ function partialAttrs(scope, nodeAccessor, nextAttrs, skip) {
|
|
1184
1174
|
}
|
1185
1175
|
attrsInternal(scope, nodeAccessor, partial);
|
1186
1176
|
}
|
1187
|
-
function
|
1188
|
-
|
1189
|
-
|
1177
|
+
function _attrs_partial_content(scope, nodeAccessor, nextAttrs, skip) {
|
1178
|
+
_attrs_partial(scope, nodeAccessor, nextAttrs, skip);
|
1179
|
+
_attr_content(scope, nodeAccessor, nextAttrs?.content);
|
1190
1180
|
}
|
1191
1181
|
function attrsInternal(scope, nodeAccessor, nextAttrs) {
|
1192
1182
|
const el = scope[nodeAccessor];
|
@@ -1195,14 +1185,14 @@ function attrsInternal(scope, nodeAccessor, nextAttrs) {
|
|
1195
1185
|
switch (el.tagName) {
|
1196
1186
|
case "INPUT":
|
1197
1187
|
if ("checked" in nextAttrs || "checkedChange" in nextAttrs) {
|
1198
|
-
|
1188
|
+
_attr_input_checked(
|
1199
1189
|
scope,
|
1200
1190
|
nodeAccessor,
|
1201
1191
|
nextAttrs.checked,
|
1202
1192
|
nextAttrs.checkedChange
|
1203
1193
|
);
|
1204
1194
|
} else if ("checkedValue" in nextAttrs || "checkedValueChange" in nextAttrs) {
|
1205
|
-
|
1195
|
+
_attr_input_checkedValue(
|
1206
1196
|
scope,
|
1207
1197
|
nodeAccessor,
|
1208
1198
|
nextAttrs.checkedValue,
|
@@ -1210,7 +1200,7 @@ function attrsInternal(scope, nodeAccessor, nextAttrs) {
|
|
1210
1200
|
nextAttrs.value
|
1211
1201
|
);
|
1212
1202
|
} else if ("value" in nextAttrs || "valueChange" in nextAttrs) {
|
1213
|
-
|
1203
|
+
_attr_input_value(
|
1214
1204
|
scope,
|
1215
1205
|
nodeAccessor,
|
1216
1206
|
nextAttrs.value,
|
@@ -1223,7 +1213,7 @@ function attrsInternal(scope, nodeAccessor, nextAttrs) {
|
|
1223
1213
|
break;
|
1224
1214
|
case "SELECT":
|
1225
1215
|
if ("value" in nextAttrs || "valueChange" in nextAttrs) {
|
1226
|
-
|
1216
|
+
_attr_select_value(
|
1227
1217
|
scope,
|
1228
1218
|
nodeAccessor,
|
1229
1219
|
nextAttrs.value,
|
@@ -1234,7 +1224,7 @@ function attrsInternal(scope, nodeAccessor, nextAttrs) {
|
|
1234
1224
|
break;
|
1235
1225
|
case "TEXTAREA":
|
1236
1226
|
if ("value" in nextAttrs || "valueChange" in nextAttrs) {
|
1237
|
-
|
1227
|
+
_attr_input_value(
|
1238
1228
|
scope,
|
1239
1229
|
nodeAccessor,
|
1240
1230
|
nextAttrs.value,
|
@@ -1246,7 +1236,7 @@ function attrsInternal(scope, nodeAccessor, nextAttrs) {
|
|
1246
1236
|
case "DETAILS":
|
1247
1237
|
case "DIALOG":
|
1248
1238
|
if ("open" in nextAttrs || "openChange" in nextAttrs) {
|
1249
|
-
|
1239
|
+
_attr_details_or_dialog_open(
|
1250
1240
|
scope,
|
1251
1241
|
nodeAccessor,
|
1252
1242
|
nextAttrs.open,
|
@@ -1257,27 +1247,27 @@ function attrsInternal(scope, nodeAccessor, nextAttrs) {
|
|
1257
1247
|
break;
|
1258
1248
|
}
|
1259
1249
|
for (const name in nextAttrs) {
|
1260
|
-
const
|
1250
|
+
const value = nextAttrs[name];
|
1261
1251
|
switch (name) {
|
1262
1252
|
case "class":
|
1263
|
-
|
1253
|
+
_attr_class(el, value);
|
1264
1254
|
break;
|
1265
1255
|
case "style":
|
1266
|
-
|
1256
|
+
_attr_style(el, value);
|
1267
1257
|
break;
|
1268
1258
|
default: {
|
1269
1259
|
if (isEventHandler(name)) {
|
1270
|
-
(events ||= scope["EventAttributes:" /* EventAttributes */ + nodeAccessor] = {})[getEventHandlerName(name)] =
|
1260
|
+
(events ||= scope["EventAttributes:" /* EventAttributes */ + nodeAccessor] = {})[getEventHandlerName(name)] = value;
|
1271
1261
|
} else if (!(skip?.test(name) || name === "content" && el.tagName !== "META")) {
|
1272
|
-
|
1262
|
+
_attr(el, name, value);
|
1273
1263
|
}
|
1274
1264
|
break;
|
1275
1265
|
}
|
1276
1266
|
}
|
1277
1267
|
}
|
1278
1268
|
}
|
1279
|
-
function
|
1280
|
-
const content = normalizeClientRender(
|
1269
|
+
function _attr_content(scope, nodeAccessor, value) {
|
1270
|
+
const content = normalizeClientRender(value);
|
1281
1271
|
const rendererAccessor = "ConditionalRenderer:" /* ConditionalRenderer */ + nodeAccessor;
|
1282
1272
|
if (scope[rendererAccessor] !== (scope[rendererAccessor] = content?.___id)) {
|
1283
1273
|
setConditionalRenderer(scope, nodeAccessor, content, createAndSetupBranch);
|
@@ -1290,36 +1280,36 @@ function insertContent(scope, nodeAccessor, value2) {
|
|
1290
1280
|
}
|
1291
1281
|
}
|
1292
1282
|
}
|
1293
|
-
function
|
1283
|
+
function _attrs_script(scope, nodeAccessor) {
|
1294
1284
|
const el = scope[nodeAccessor];
|
1295
1285
|
const events = scope["EventAttributes:" /* EventAttributes */ + nodeAccessor];
|
1296
1286
|
switch (scope["ControlledType:" /* ControlledType */ + nodeAccessor]) {
|
1297
1287
|
case 0 /* InputChecked */:
|
1298
|
-
|
1288
|
+
_attr_input_checked_script(scope, nodeAccessor);
|
1299
1289
|
break;
|
1300
1290
|
case 1 /* InputCheckedValue */:
|
1301
|
-
|
1291
|
+
_attr_input_checkedValue_script(scope, nodeAccessor);
|
1302
1292
|
break;
|
1303
1293
|
case 2 /* InputValue */:
|
1304
|
-
|
1294
|
+
_attr_input_value_script(scope, nodeAccessor);
|
1305
1295
|
break;
|
1306
1296
|
case 3 /* SelectValue */:
|
1307
|
-
|
1297
|
+
_attr_select_value_script(scope, nodeAccessor);
|
1308
1298
|
break;
|
1309
1299
|
case 4 /* DetailsOrDialogOpen */:
|
1310
|
-
|
1300
|
+
_attr_details_or_dialog_open_script(scope, nodeAccessor);
|
1311
1301
|
break;
|
1312
1302
|
}
|
1313
1303
|
for (const name in events) {
|
1314
|
-
|
1304
|
+
_on(el, name, events[name]);
|
1315
1305
|
}
|
1316
1306
|
}
|
1317
|
-
function
|
1307
|
+
function _html(scope, value, accessor) {
|
1318
1308
|
const firstChild = scope[accessor];
|
1319
1309
|
const parentNode = firstChild.parentNode;
|
1320
1310
|
const lastChild = scope["DynamicPlaceholderLastChild:" /* DynamicPlaceholderLastChild */ + accessor] || firstChild;
|
1321
1311
|
const newContent = parseHTML(
|
1322
|
-
|
1312
|
+
value || value === 0 ? value + "" : "",
|
1323
1313
|
parentNode.namespaceURI
|
1324
1314
|
);
|
1325
1315
|
insertChildNodes(
|
@@ -1330,43 +1320,27 @@ function html(scope, value2, accessor) {
|
|
1330
1320
|
);
|
1331
1321
|
removeChildNodes(firstChild, lastChild);
|
1332
1322
|
}
|
1333
|
-
function normalizeClientRender(
|
1334
|
-
const renderer = normalizeDynamicRenderer(
|
1323
|
+
function normalizeClientRender(value) {
|
1324
|
+
const renderer = normalizeDynamicRenderer(value);
|
1335
1325
|
if (renderer) {
|
1336
1326
|
if (renderer.___id) {
|
1337
1327
|
return renderer;
|
1338
1328
|
} else if (true) {
|
1339
1329
|
throw new Error(
|
1340
|
-
`Invalid \`content\` attribute. Received ${typeof
|
1330
|
+
`Invalid \`content\` attribute. Received ${typeof value}`
|
1341
1331
|
);
|
1342
1332
|
}
|
1343
1333
|
}
|
1344
1334
|
}
|
1345
|
-
function
|
1346
|
-
|
1347
|
-
|
1348
|
-
const node = scope[nodeIndex];
|
1349
|
-
if (prevProps) {
|
1350
|
-
for (const name in prevProps) {
|
1351
|
-
if (!(name in nextProps)) {
|
1352
|
-
node[name] = void 0;
|
1353
|
-
}
|
1354
|
-
}
|
1355
|
-
}
|
1356
|
-
for (const name in nextProps) {
|
1357
|
-
node[name] = nextProps[name];
|
1335
|
+
function normalizeAttrValue(value) {
|
1336
|
+
if (value || value === 0) {
|
1337
|
+
return value === true ? "" : value + "";
|
1358
1338
|
}
|
1359
|
-
scope[index + "-"] = nextProps;
|
1360
1339
|
}
|
1361
|
-
function
|
1362
|
-
|
1363
|
-
return value2 === true ? "" : value2 + "";
|
1364
|
-
}
|
1340
|
+
function normalizeString(value) {
|
1341
|
+
return value || value === 0 ? value + "" : "\u200D";
|
1365
1342
|
}
|
1366
|
-
function
|
1367
|
-
return value2 || value2 === 0 ? value2 + "" : "\u200D";
|
1368
|
-
}
|
1369
|
-
function lifecycle(scope, index, thisObj) {
|
1343
|
+
function _lifecycle(scope, index, thisObj) {
|
1370
1344
|
const instance = scope[index];
|
1371
1345
|
if (instance) {
|
1372
1346
|
Object.assign(instance, thisObj);
|
@@ -1374,10 +1348,7 @@ function lifecycle(scope, index, thisObj) {
|
|
1374
1348
|
} else {
|
1375
1349
|
scope[index] = thisObj;
|
1376
1350
|
thisObj.onMount?.();
|
1377
|
-
|
1378
|
-
scope,
|
1379
|
-
"LifecycleAbortController:" /* LifecycleAbortController */ + index
|
1380
|
-
).onabort = () => thisObj.onDestroy?.();
|
1351
|
+
$signal(scope, "LifecycleAbortController:" /* LifecycleAbortController */ + index).onabort = () => thisObj.onDestroy?.();
|
1381
1352
|
}
|
1382
1353
|
}
|
1383
1354
|
function removeChildNodes(startNode, endNode) {
|
@@ -1572,7 +1543,7 @@ function longestIncreasingSubsequence(a) {
|
|
1572
1543
|
}
|
1573
1544
|
|
1574
1545
|
// src/dom/control-flow.ts
|
1575
|
-
function
|
1546
|
+
function _await(nodeAccessor, renderer) {
|
1576
1547
|
const promiseAccessor = "Promise:" /* Promise */ + nodeAccessor;
|
1577
1548
|
const branchAccessor = "ConditionalScope:" /* ConditionalScope */ + nodeAccessor;
|
1578
1549
|
return (scope, promise) => {
|
@@ -1617,7 +1588,7 @@ function awaitTag(nodeAccessor, renderer) {
|
|
1617
1588
|
tempDetachBranch(awaitBranch);
|
1618
1589
|
}
|
1619
1590
|
const thisPromise = scope[promiseAccessor] = promise.then(
|
1620
|
-
(
|
1591
|
+
(data) => {
|
1621
1592
|
if (thisPromise === scope[promiseAccessor]) {
|
1622
1593
|
scope[promiseAccessor] = 0;
|
1623
1594
|
schedule();
|
@@ -1643,7 +1614,7 @@ function awaitTag(nodeAccessor, renderer) {
|
|
1643
1614
|
);
|
1644
1615
|
referenceNode.remove();
|
1645
1616
|
}
|
1646
|
-
renderer.___params?.(awaitBranch, [
|
1617
|
+
renderer.___params?.(awaitBranch, [data]);
|
1647
1618
|
if (tryWithPlaceholder) {
|
1648
1619
|
placeholderShown.add(pendingEffects);
|
1649
1620
|
if (!--tryWithPlaceholder.___pendingAsyncCount) {
|
@@ -1677,14 +1648,14 @@ function awaitTag(nodeAccessor, renderer) {
|
|
1677
1648
|
);
|
1678
1649
|
};
|
1679
1650
|
}
|
1680
|
-
function
|
1651
|
+
function _try(nodeAccessor, content) {
|
1681
1652
|
const branchAccessor = "ConditionalScope:" /* ConditionalScope */ + nodeAccessor;
|
1682
1653
|
return (scope, input) => {
|
1683
1654
|
if (!scope[branchAccessor]) {
|
1684
1655
|
setConditionalRenderer(
|
1685
1656
|
scope,
|
1686
1657
|
nodeAccessor,
|
1687
|
-
|
1658
|
+
content,
|
1688
1659
|
createAndSetupBranch
|
1689
1660
|
);
|
1690
1661
|
}
|
@@ -1723,7 +1694,7 @@ function renderCatch(scope, error) {
|
|
1723
1694
|
);
|
1724
1695
|
}
|
1725
1696
|
}
|
1726
|
-
function
|
1697
|
+
function _if(nodeAccessor, ...branches) {
|
1727
1698
|
const branchAccessor = "ConditionalRenderer:" /* ConditionalRenderer */ + nodeAccessor;
|
1728
1699
|
enableBranches();
|
1729
1700
|
return (scope, newBranch) => {
|
@@ -1738,9 +1709,9 @@ function conditional(nodeAccessor, ...branches) {
|
|
1738
1709
|
};
|
1739
1710
|
}
|
1740
1711
|
function patchDynamicTag(fn) {
|
1741
|
-
|
1712
|
+
_dynamic_tag = fn(_dynamic_tag);
|
1742
1713
|
}
|
1743
|
-
var
|
1714
|
+
var _dynamic_tag = function dynamicTag(nodeAccessor, getContent, getTagVar, inputIsArgs) {
|
1744
1715
|
const childScopeAccessor = "ConditionalScope:" /* ConditionalScope */ + nodeAccessor;
|
1745
1716
|
const rendererAccessor = "ConditionalRenderer:" /* ConditionalRenderer */ + nodeAccessor;
|
1746
1717
|
enableBranches();
|
@@ -1754,7 +1725,7 @@ var dynamicTag = function dynamicTag2(nodeAccessor, getContent, getTagVar, input
|
|
1754
1725
|
createBranchWithTagNameOrRenderer
|
1755
1726
|
);
|
1756
1727
|
if (getTagVar) {
|
1757
|
-
|
1728
|
+
_var(scope, childScopeAccessor, getTagVar());
|
1758
1729
|
}
|
1759
1730
|
if (typeof normalizedRenderer === "string") {
|
1760
1731
|
if (getContent) {
|
@@ -1785,7 +1756,7 @@ var dynamicTag = function dynamicTag2(nodeAccessor, getContent, getTagVar, input
|
|
1785
1756
|
const childScope = scope[childScopeAccessor];
|
1786
1757
|
const args = getInput?.();
|
1787
1758
|
if (typeof normalizedRenderer === "string") {
|
1788
|
-
(getContent ?
|
1759
|
+
(getContent ? _attrs : _attrs_content)(
|
1789
1760
|
childScope,
|
1790
1761
|
true ? `#${normalizedRenderer}/0` : 0,
|
1791
1762
|
(inputIsArgs ? args[0] : args) || {}
|
@@ -1840,7 +1811,7 @@ function setConditionalRenderer(scope, nodeAccessor, newRenderer, createBranch2)
|
|
1840
1811
|
referenceNode.remove();
|
1841
1812
|
}
|
1842
1813
|
}
|
1843
|
-
function
|
1814
|
+
function _for_of(nodeAccessor, renderer) {
|
1844
1815
|
return loop(
|
1845
1816
|
nodeAccessor,
|
1846
1817
|
renderer,
|
@@ -1856,14 +1827,14 @@ function loopOf(nodeAccessor, renderer) {
|
|
1856
1827
|
}
|
1857
1828
|
);
|
1858
1829
|
}
|
1859
|
-
function
|
1830
|
+
function _for_in(nodeAccessor, renderer) {
|
1860
1831
|
return loop(
|
1861
1832
|
nodeAccessor,
|
1862
1833
|
renderer,
|
1863
|
-
([obj, by = byFirstArg], cb) => forIn(obj, (key,
|
1834
|
+
([obj, by = byFirstArg], cb) => forIn(obj, (key, value) => cb(by(key, value), [key, value]))
|
1864
1835
|
);
|
1865
1836
|
}
|
1866
|
-
function
|
1837
|
+
function _for_to(nodeAccessor, renderer) {
|
1867
1838
|
return loop(
|
1868
1839
|
nodeAccessor,
|
1869
1840
|
renderer,
|
@@ -1873,7 +1844,7 @@ function loopTo(nodeAccessor, renderer) {
|
|
1873
1844
|
function loop(nodeAccessor, renderer, forEach) {
|
1874
1845
|
const params = renderer.___params;
|
1875
1846
|
enableBranches();
|
1876
|
-
return (scope,
|
1847
|
+
return (scope, value) => {
|
1877
1848
|
const referenceNode = scope[nodeAccessor];
|
1878
1849
|
const oldMap = scope["LoopScopeMap:" /* LoopScopeMap */ + nodeAccessor];
|
1879
1850
|
const oldArray = oldMap ? scope["LoopScopeArray:" /* LoopScopeArray */ + nodeAccessor] || [
|
@@ -1882,7 +1853,7 @@ function loop(nodeAccessor, renderer, forEach) {
|
|
1882
1853
|
const parentNode = referenceNode.nodeType > 1 /* Element */ ? referenceNode.parentNode || oldArray[0].___startNode.parentNode : referenceNode;
|
1883
1854
|
const newMap = scope["LoopScopeMap:" /* LoopScopeMap */ + nodeAccessor] = /* @__PURE__ */ new Map();
|
1884
1855
|
const newArray = scope["LoopScopeArray:" /* LoopScopeArray */ + nodeAccessor] = [];
|
1885
|
-
forEach(
|
1856
|
+
forEach(value, (key, args) => {
|
1886
1857
|
const branch = oldMap?.get(key) || createAndSetupBranch(scope.$global, renderer, scope, parentNode);
|
1887
1858
|
params?.(branch, args);
|
1888
1859
|
newMap.set(key, branch);
|
@@ -1936,17 +1907,17 @@ var pendingEffects = [];
|
|
1936
1907
|
var pendingScopes = [];
|
1937
1908
|
var rendering;
|
1938
1909
|
var scopeKeyOffset = 1e3;
|
1939
|
-
function queueRender(scope, signal, signalKey,
|
1910
|
+
function queueRender(scope, signal, signalKey, value, scopeKey = scope.___id) {
|
1940
1911
|
const key = scopeKey * scopeKeyOffset + signalKey;
|
1941
1912
|
const existingRender = signalKey >= 0 && pendingRendersLookup.get(key);
|
1942
1913
|
if (existingRender) {
|
1943
|
-
existingRender.___value =
|
1914
|
+
existingRender.___value = value;
|
1944
1915
|
} else {
|
1945
1916
|
const render = {
|
1946
1917
|
___key: key,
|
1947
1918
|
___scope: scope,
|
1948
1919
|
___signal: signal,
|
1949
|
-
___value:
|
1920
|
+
___value: value
|
1950
1921
|
};
|
1951
1922
|
let i = pendingRenders.push(render) - 1;
|
1952
1923
|
while (i) {
|
@@ -2036,8 +2007,8 @@ function runRenders() {
|
|
2036
2007
|
pendingScopes = [];
|
2037
2008
|
}
|
2038
2009
|
var runRender = (render) => render.___signal(render.___scope, render.___value);
|
2039
|
-
var
|
2040
|
-
|
2010
|
+
var _enable_catch = () => {
|
2011
|
+
_enable_catch = () => {
|
2041
2012
|
};
|
2042
2013
|
enableBranches();
|
2043
2014
|
const handlePendingTry = (fn, scope, branch) => {
|
@@ -2076,14 +2047,14 @@ var enableCatch = () => {
|
|
2076
2047
|
};
|
2077
2048
|
|
2078
2049
|
// src/dom/abort-signal.ts
|
2079
|
-
function
|
2050
|
+
function $signalReset(scope, id) {
|
2080
2051
|
const ctrl = scope.___abortControllers?.[id];
|
2081
2052
|
if (ctrl) {
|
2082
2053
|
queueEffect(ctrl, abort);
|
2083
2054
|
scope.___abortControllers[id] = void 0;
|
2084
2055
|
}
|
2085
2056
|
}
|
2086
|
-
function
|
2057
|
+
function $signal(scope, id) {
|
2087
2058
|
if (scope.___closestBranch) {
|
2088
2059
|
(scope.___closestBranch.___abortScopes ||= /* @__PURE__ */ new Set()).add(scope);
|
2089
2060
|
}
|
@@ -2105,13 +2076,13 @@ var compat = {
|
|
2105
2076
|
patchDynamicTag,
|
2106
2077
|
queueEffect,
|
2107
2078
|
init(warp10Noop) {
|
2108
|
-
|
2079
|
+
_resume(SET_SCOPE_REGISTER_ID, (branch) => {
|
2109
2080
|
classIdToBranch.set(branch.m5c, branch);
|
2110
2081
|
});
|
2111
|
-
|
2082
|
+
_resume(RENDER_BODY_ID, warp10Noop);
|
2112
2083
|
},
|
2113
2084
|
registerRenderer(fn) {
|
2114
|
-
|
2085
|
+
_resume(RENDERER_REGISTER_ID, fn);
|
2115
2086
|
},
|
2116
2087
|
isRenderer(renderer) {
|
2117
2088
|
return renderer.___clone;
|
@@ -2133,17 +2104,17 @@ var compat = {
|
|
2133
2104
|
destroyBranch(this.scope);
|
2134
2105
|
}
|
2135
2106
|
},
|
2136
|
-
resolveRegistered(
|
2137
|
-
if (Array.isArray(
|
2107
|
+
resolveRegistered(value, $global) {
|
2108
|
+
if (Array.isArray(value) && typeof value[0] === "string") {
|
2138
2109
|
return getRegisteredWithScope(
|
2139
|
-
|
2140
|
-
|
2110
|
+
value[0],
|
2111
|
+
value.length === 2 && self[$global.runtimeId]?.[$global.renderId]?.s[value[1]]
|
2141
2112
|
);
|
2142
2113
|
}
|
2143
|
-
return
|
2114
|
+
return value;
|
2144
2115
|
},
|
2145
2116
|
createRenderer(params, clone) {
|
2146
|
-
const renderer =
|
2117
|
+
const renderer = _content_branch(0, 0, 0, params);
|
2147
2118
|
renderer.___clone = (branch) => {
|
2148
2119
|
const cloned = clone();
|
2149
2120
|
branch.___startNode = cloned.startNode;
|
@@ -2185,8 +2156,8 @@ var compat = {
|
|
2185
2156
|
};
|
2186
2157
|
|
2187
2158
|
// src/dom/template.ts
|
2188
|
-
var
|
2189
|
-
const renderer =
|
2159
|
+
var _template = (id, template, walks, setup, inputSignal) => {
|
2160
|
+
const renderer = _content(
|
2190
2161
|
id,
|
2191
2162
|
template,
|
2192
2163
|
walks,
|
@@ -2202,7 +2173,7 @@ var createTemplate = (id, template, walks, setup, inputSignal) => {
|
|
2202
2173
|
);
|
2203
2174
|
};
|
2204
2175
|
}
|
2205
|
-
return
|
2176
|
+
return _resume(id, renderer);
|
2206
2177
|
};
|
2207
2178
|
function mount(input = {}, reference, position) {
|
2208
2179
|
let branch;
|
@@ -2276,7 +2247,7 @@ function mount(input = {}, reference, position) {
|
|
2276
2247
|
return curValue;
|
2277
2248
|
},
|
2278
2249
|
set value(newValue) {
|
2279
|
-
|
2250
|
+
_var_change(branch, newValue);
|
2280
2251
|
},
|
2281
2252
|
update(newInput) {
|
2282
2253
|
if (args) {
|
@@ -2293,75 +2264,76 @@ function mount(input = {}, reference, position) {
|
|
2293
2264
|
};
|
2294
2265
|
}
|
2295
2266
|
export {
|
2296
|
-
|
2267
|
+
$signal,
|
2268
|
+
$signalReset,
|
2269
|
+
_attr,
|
2270
|
+
_attr_class,
|
2271
|
+
_attr_class_item,
|
2272
|
+
_attr_class_items,
|
2273
|
+
_attr_content,
|
2274
|
+
_attr_details_or_dialog_open as _attr_details_open,
|
2275
|
+
_attr_details_or_dialog_open_script as _attr_details_open_script,
|
2276
|
+
_attr_details_or_dialog_open as _attr_dialog_open,
|
2277
|
+
_attr_details_or_dialog_open_script as _attr_dialog_open_script,
|
2278
|
+
_attr_input_checked,
|
2279
|
+
_attr_input_checkedValue,
|
2280
|
+
_attr_input_checkedValue_script,
|
2281
|
+
_attr_input_checked_script,
|
2282
|
+
_attr_input_value,
|
2283
|
+
_attr_input_value_script,
|
2284
|
+
_attr_select_value,
|
2285
|
+
_attr_select_value_script,
|
2286
|
+
_attr_style,
|
2287
|
+
_attr_style_item,
|
2288
|
+
_attr_style_items,
|
2289
|
+
_attr_input_value as _attr_textarea_value,
|
2290
|
+
_attr_input_value_script as _attr_textarea_value_script,
|
2291
|
+
_attrs,
|
2292
|
+
_attrs_content,
|
2293
|
+
_attrs_partial,
|
2294
|
+
_attrs_partial_content,
|
2295
|
+
_attrs_script,
|
2296
|
+
_await,
|
2297
|
+
_closure,
|
2298
|
+
_closure_get,
|
2299
|
+
_const,
|
2300
|
+
_content,
|
2301
|
+
_content_branch,
|
2302
|
+
_content_closures,
|
2303
|
+
_content_resume,
|
2304
|
+
_dynamic_tag,
|
2305
|
+
_el,
|
2306
|
+
_enable_catch,
|
2307
|
+
_for_closure,
|
2308
|
+
_for_in,
|
2309
|
+
_for_of,
|
2310
|
+
_for_to,
|
2311
|
+
_hoist,
|
2312
|
+
_html,
|
2313
|
+
_id,
|
2314
|
+
_if,
|
2315
|
+
_if_closure,
|
2316
|
+
_let,
|
2317
|
+
_lifecycle,
|
2318
|
+
_on,
|
2319
|
+
_or,
|
2320
|
+
_resume,
|
2321
|
+
_return,
|
2322
|
+
_return_change,
|
2323
|
+
_script,
|
2324
|
+
_template,
|
2325
|
+
_text,
|
2326
|
+
_text_content,
|
2327
|
+
_try,
|
2328
|
+
_var,
|
2329
|
+
_var_change,
|
2330
|
+
_var_resume,
|
2297
2331
|
attrTag,
|
2298
2332
|
attrTags,
|
2299
|
-
attrs,
|
2300
|
-
attrsAndContent,
|
2301
|
-
attrsEvents,
|
2302
|
-
awaitTag,
|
2303
|
-
classAttr,
|
2304
|
-
classItem,
|
2305
|
-
classItems,
|
2306
2333
|
compat,
|
2307
|
-
conditional,
|
2308
|
-
conditionalClosure,
|
2309
|
-
controllable_detailsOrDialog_open,
|
2310
|
-
controllable_detailsOrDialog_open_effect,
|
2311
|
-
controllable_input_checked,
|
2312
|
-
controllable_input_checkedValue,
|
2313
|
-
controllable_input_checkedValue_effect,
|
2314
|
-
controllable_input_checked_effect,
|
2315
|
-
controllable_input_value,
|
2316
|
-
controllable_input_value_effect,
|
2317
|
-
controllable_select_value,
|
2318
|
-
controllable_select_value_effect,
|
2319
|
-
controllable_input_value as controllable_textarea_value,
|
2320
|
-
controllable_input_value_effect as controllable_textarea_value_effect,
|
2321
|
-
createContent,
|
2322
|
-
createRenderer,
|
2323
|
-
createTemplate,
|
2324
|
-
createTry,
|
2325
|
-
data,
|
2326
|
-
dynamicClosure,
|
2327
|
-
dynamicClosureRead,
|
2328
|
-
dynamicTag,
|
2329
|
-
effect,
|
2330
|
-
enableCatch,
|
2331
2334
|
forIn,
|
2332
2335
|
forOf,
|
2333
2336
|
forTo,
|
2334
|
-
getAbortSignal,
|
2335
|
-
hoist,
|
2336
|
-
html,
|
2337
2337
|
init,
|
2338
|
-
|
2339
|
-
intersection,
|
2340
|
-
lifecycle,
|
2341
|
-
localClosures,
|
2342
|
-
loopClosure,
|
2343
|
-
loopIn,
|
2344
|
-
loopOf,
|
2345
|
-
loopTo,
|
2346
|
-
nextTagId,
|
2347
|
-
nodeRef,
|
2348
|
-
on,
|
2349
|
-
partialAttrs,
|
2350
|
-
partialAttrsAndContent,
|
2351
|
-
props,
|
2352
|
-
register,
|
2353
|
-
registerBoundSignal,
|
2354
|
-
registerContent,
|
2355
|
-
resetAbortSignal,
|
2356
|
-
run,
|
2357
|
-
setTagVar,
|
2358
|
-
setTagVarChange,
|
2359
|
-
state,
|
2360
|
-
styleAttr,
|
2361
|
-
styleItem,
|
2362
|
-
styleItems,
|
2363
|
-
tagVarSignal,
|
2364
|
-
tagVarSignalChange,
|
2365
|
-
textContent,
|
2366
|
-
value
|
2338
|
+
run
|
2367
2339
|
};
|