xmlui 0.9.0 → 0.9.1
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/{apiInterceptorWorker-B1u6prJM.mjs → apiInterceptorWorker-230V_-Ds.mjs} +1 -1
- package/dist/{index-CVvazA5D.mjs → index-DUwwx3L4.mjs} +28 -12
- package/dist/scripts/src/components-core/script-runner/eval-tree-async.js +29 -10
- package/dist/xmlui-standalone.umd.js +30 -14
- package/dist/xmlui.mjs +1 -1
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
12
12
|
var _executor, _DeferredPromise_instances, decorate_fn, _a2;
|
|
13
13
|
import { delay as delay$1, HttpResponse, http } from "msw";
|
|
14
14
|
import { isArray, isObject as isObject$1, mapValues } from "lodash-es";
|
|
15
|
-
import { r as runEventHandlerCode, g as getDate, d as delay, m as miscellaneousUtils, a as dateFunctions, o as orderBy, T as ThrowStatementError } from "./index-
|
|
15
|
+
import { r as runEventHandlerCode, g as getDate, d as delay, m as miscellaneousUtils, a as dateFunctions, o as orderBy, T as ThrowStatementError } from "./index-DUwwx3L4.mjs";
|
|
16
16
|
import Dexie from "dexie";
|
|
17
17
|
var POSITIONALS_EXP = /(%?)(%([sdijo]))/g;
|
|
18
18
|
function serializePositional(positional, flag) {
|
|
@@ -30808,7 +30808,7 @@ function IconProvider({ children }) {
|
|
|
30808
30808
|
/* @__PURE__ */ jsx("svg", { style: { display: "none" }, ref: spriteRootRef })
|
|
30809
30809
|
] });
|
|
30810
30810
|
}
|
|
30811
|
-
const version = "0.9.
|
|
30811
|
+
const version = "0.9.1";
|
|
30812
30812
|
const ApiInterceptorContext = createContext(null);
|
|
30813
30813
|
function useApiInterceptorContext() {
|
|
30814
30814
|
return useContext(ApiInterceptorContext);
|
|
@@ -31224,12 +31224,15 @@ async function evalBindingExpressionTreeAsync(thisStack, expr, evalContext, thre
|
|
|
31224
31224
|
}
|
|
31225
31225
|
async function evalMemberAccessAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
31226
31226
|
await evaluator(thisStack, expr.obj, evalContext, thread);
|
|
31227
|
+
await completeExprValue(expr.obj, thread);
|
|
31227
31228
|
return evalMemberAccessCore(thisStack, expr, evalContext, thread);
|
|
31228
31229
|
}
|
|
31229
31230
|
async function evalCalculatedMemberAccessAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
31230
31231
|
await evaluator(thisStack, expr.obj, evalContext, thread);
|
|
31232
|
+
await completeExprValue(expr.obj, thread);
|
|
31231
31233
|
await evaluator(thisStack, expr.member, evalContext, thread);
|
|
31232
31234
|
thisStack.pop();
|
|
31235
|
+
await completeExprValue(expr.member, thread);
|
|
31233
31236
|
return evalCalculatedMemberAccessCore(thisStack, expr, evalContext, thread);
|
|
31234
31237
|
}
|
|
31235
31238
|
async function evalSequenceAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
@@ -31305,14 +31308,13 @@ async function evalObjectLiteralAsync(evaluator, thisStack, expr, evalContext, t
|
|
|
31305
31308
|
async function evalUnaryAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
31306
31309
|
await evaluator(thisStack, expr.expr, evalContext, thread);
|
|
31307
31310
|
thisStack.pop();
|
|
31311
|
+
await completeExprValue(expr.expr, thread);
|
|
31308
31312
|
return evalUnaryCore(expr, thisStack, evalContext, thread);
|
|
31309
31313
|
}
|
|
31310
31314
|
async function evalBinaryAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
31311
|
-
var _a, _b;
|
|
31312
31315
|
await evaluator(thisStack, expr.left, evalContext, thread);
|
|
31313
31316
|
thisStack.pop();
|
|
31314
|
-
const l = await
|
|
31315
|
-
setExprValue(expr.left, { value: l }, thread);
|
|
31317
|
+
const l = await completeExprValue(expr.left, thread);
|
|
31316
31318
|
if (expr.op === "&&" && !l) {
|
|
31317
31319
|
setExprValue(expr, { value: l }, thread);
|
|
31318
31320
|
return l;
|
|
@@ -31323,13 +31325,13 @@ async function evalBinaryAsync(evaluator, thisStack, expr, evalContext, thread)
|
|
|
31323
31325
|
}
|
|
31324
31326
|
await evaluator(thisStack, expr.right, evalContext, thread);
|
|
31325
31327
|
thisStack.pop();
|
|
31326
|
-
|
|
31327
|
-
setExprValue(expr.right, { value: r }, thread);
|
|
31328
|
+
await completeExprValue(expr.right, thread);
|
|
31328
31329
|
return evalBinaryCore(expr, thisStack, evalContext, thread);
|
|
31329
31330
|
}
|
|
31330
31331
|
async function evalConditionalAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
31331
|
-
|
|
31332
|
+
await evaluator(thisStack, expr.cond, evalContext, thread);
|
|
31332
31333
|
thisStack.pop();
|
|
31334
|
+
const condition = await completeExprValue(expr.cond, thread);
|
|
31333
31335
|
const value = await evaluator(
|
|
31334
31336
|
thisStack,
|
|
31335
31337
|
condition ? expr.thenE : expr.elseE,
|
|
@@ -31348,8 +31350,10 @@ async function evalAssignmentAsync(evaluator, thisStack, expr, evalContext, thre
|
|
|
31348
31350
|
}
|
|
31349
31351
|
await evaluator(thisStack, leftValue, evalContext, thread);
|
|
31350
31352
|
thisStack.pop();
|
|
31353
|
+
await completeExprValue(leftValue, thread);
|
|
31351
31354
|
await evaluator(thisStack, expr.expr, evalContext, thread);
|
|
31352
31355
|
thisStack.pop();
|
|
31356
|
+
await completeExprValue(expr.expr, thread);
|
|
31353
31357
|
const value = evalAssignmentCore(thisStack, expr, evalContext, thread);
|
|
31354
31358
|
if (updatesState && evalContext.onDidUpdate) {
|
|
31355
31359
|
evalContext.onDidUpdate(rootScope, rootScope.name, "assignment");
|
|
@@ -31364,6 +31368,7 @@ async function evalPreOrPostAsync(evaluator, thisStack, expr, evalContext, threa
|
|
|
31364
31368
|
}
|
|
31365
31369
|
await evaluator(thisStack, expr.expr, evalContext, thread);
|
|
31366
31370
|
thisStack.pop();
|
|
31371
|
+
await completeExprValue(expr.expr, thread);
|
|
31367
31372
|
const value = evalPreOrPostCore(thisStack, expr, evalContext, thread);
|
|
31368
31373
|
if (updatesState && evalContext.onDidUpdate) {
|
|
31369
31374
|
evalContext.onDidUpdate(rootScope, rootScope.name, "pre-post");
|
|
@@ -31377,12 +31382,14 @@ async function evalFunctionInvocationAsync(evaluator, thisStack, expr, evalConte
|
|
|
31377
31382
|
let hostObject;
|
|
31378
31383
|
if (expr.obj.type === T_MEMBER_ACCESS_EXPRESSION) {
|
|
31379
31384
|
hostObject = await evaluator(thisStack, expr.obj.obj, evalContext, thread);
|
|
31385
|
+
await completeExprValue(expr.obj.obj, thread);
|
|
31380
31386
|
functionObj = evalMemberAccessCore(thisStack, expr.obj, evalContext, thread);
|
|
31381
31387
|
if (expr.obj.obj.type === T_IDENTIFIER && (hostObject == null ? void 0 : hostObject._SUPPORT_IMPLICIT_CONTEXT)) {
|
|
31382
31388
|
implicitContextObject = hostObject;
|
|
31383
31389
|
}
|
|
31384
31390
|
} else {
|
|
31385
|
-
|
|
31391
|
+
await evaluator(thisStack, expr.obj, evalContext, thread);
|
|
31392
|
+
functionObj = await completeExprValue(expr.obj, thread);
|
|
31386
31393
|
}
|
|
31387
31394
|
thisStack.pop();
|
|
31388
31395
|
const functionArgs = [];
|
|
@@ -31405,7 +31412,8 @@ async function evalFunctionInvocationAsync(evaluator, thisStack, expr, evalConte
|
|
|
31405
31412
|
for (let i = 0; i < expr.arguments.length; i++) {
|
|
31406
31413
|
const arg = expr.arguments[i];
|
|
31407
31414
|
if (arg.type === T_SPREAD_EXPRESSION) {
|
|
31408
|
-
|
|
31415
|
+
await evaluator([], arg.expr, evalContext, thread);
|
|
31416
|
+
const funcArg = await completeExprValue(arg.expr, thread);
|
|
31409
31417
|
if (!Array.isArray(funcArg)) {
|
|
31410
31418
|
throw new Error("Spread operator within a function invocation expects an array operand.");
|
|
31411
31419
|
}
|
|
@@ -31418,7 +31426,8 @@ async function evalFunctionInvocationAsync(evaluator, thisStack, expr, evalConte
|
|
|
31418
31426
|
};
|
|
31419
31427
|
functionArgs.push(wrappedFunc);
|
|
31420
31428
|
} else {
|
|
31421
|
-
|
|
31429
|
+
await evaluator([], arg, evalContext, thread);
|
|
31430
|
+
const funcArg = await completeExprValue(arg, thread);
|
|
31422
31431
|
if (funcArg == null ? void 0 : funcArg._ARROW_EXPR_) {
|
|
31423
31432
|
const wrappedFuncArg = await createArrowFunctionAsync(evaluator, funcArg);
|
|
31424
31433
|
const wrappedFunc = (...args) => wrappedFuncArg(funcArg.args, evalContext, thread, ...args);
|
|
@@ -31623,12 +31632,19 @@ async function completePromise(input2) {
|
|
|
31623
31632
|
async function evalTemplateLiteralAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
31624
31633
|
const segmentValues = new Array(expr.segments.length);
|
|
31625
31634
|
for (let i = 0; i < expr.segments.length; ++i) {
|
|
31626
|
-
|
|
31635
|
+
await evaluator(thisStack, expr.segments[i], evalContext, thread);
|
|
31627
31636
|
thisStack.pop();
|
|
31637
|
+
const evaledValue = await completeExprValue(expr.segments[i], thread);
|
|
31628
31638
|
segmentValues[i] = evaledValue;
|
|
31629
31639
|
}
|
|
31630
31640
|
return evalTemplateLiteralCore(segmentValues);
|
|
31631
31641
|
}
|
|
31642
|
+
async function completeExprValue(expr, thread) {
|
|
31643
|
+
const exprValue = getExprValue(expr, thread);
|
|
31644
|
+
const awaited = await completePromise(exprValue == null ? void 0 : exprValue.value);
|
|
31645
|
+
setExprValue(expr, { ...exprValue, value: awaited }, thread);
|
|
31646
|
+
return awaited;
|
|
31647
|
+
}
|
|
31632
31648
|
async function processStatementQueueAsync(statements, evalContext, thread) {
|
|
31633
31649
|
var _a, _b, _c;
|
|
31634
31650
|
if (!thread) {
|
|
@@ -34776,7 +34792,7 @@ function ApiInterceptorProvider({
|
|
|
34776
34792
|
let interceptorWorker;
|
|
34777
34793
|
(async () => {
|
|
34778
34794
|
if (process.env.VITE_MOCK_ENABLED) {
|
|
34779
|
-
const { createApiInterceptorWorker } = await import("./apiInterceptorWorker-
|
|
34795
|
+
const { createApiInterceptorWorker } = await import("./apiInterceptorWorker-230V_-Ds.mjs");
|
|
34780
34796
|
if (interceptor) {
|
|
34781
34797
|
interceptorWorker = await createApiInterceptorWorker(interceptor, apiWorker);
|
|
34782
34798
|
if (!apiWorker) {
|
|
@@ -11,6 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.evalBindingAsync = evalBindingAsync;
|
|
13
13
|
exports.executeArrowExpression = executeArrowExpression;
|
|
14
|
+
exports.completeExprValue = completeExprValue;
|
|
14
15
|
const lodash_es_1 = require("lodash-es");
|
|
15
16
|
const ScriptingSourceTreeExp_1 = require("../../abstractions/scripting/ScriptingSourceTreeExp");
|
|
16
17
|
const process_statement_async_1 = require("./process-statement-async");
|
|
@@ -128,6 +129,7 @@ function evalBindingExpressionTreeAsync(thisStack, expr, evalContext, thread) {
|
|
|
128
129
|
function evalMemberAccessAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
129
130
|
return __awaiter(this, void 0, void 0, function* () {
|
|
130
131
|
yield evaluator(thisStack, expr.obj, evalContext, thread);
|
|
132
|
+
yield completeExprValue(expr.obj, thread);
|
|
131
133
|
// --- At this point we definitely keep the parent object on `thisStack`, as it will be the context object
|
|
132
134
|
// --- of a FunctionInvocationExpression, if that follows the MemberAccess. Other operations would call
|
|
133
135
|
// --- `thisStack.pop()` to remove the result from the previous `evalBindingExpressionTree` call.
|
|
@@ -137,8 +139,10 @@ function evalMemberAccessAsync(evaluator, thisStack, expr, evalContext, thread)
|
|
|
137
139
|
function evalCalculatedMemberAccessAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
138
140
|
return __awaiter(this, void 0, void 0, function* () {
|
|
139
141
|
yield evaluator(thisStack, expr.obj, evalContext, thread);
|
|
142
|
+
yield completeExprValue(expr.obj, thread);
|
|
140
143
|
yield evaluator(thisStack, expr.member, evalContext, thread);
|
|
141
144
|
thisStack.pop();
|
|
145
|
+
yield completeExprValue(expr.member, thread);
|
|
142
146
|
return (0, eval_tree_common_1.evalCalculatedMemberAccessCore)(thisStack, expr, evalContext, thread);
|
|
143
147
|
});
|
|
144
148
|
}
|
|
@@ -230,16 +234,15 @@ function evalUnaryAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
|
230
234
|
return __awaiter(this, void 0, void 0, function* () {
|
|
231
235
|
yield evaluator(thisStack, expr.expr, evalContext, thread);
|
|
232
236
|
thisStack.pop();
|
|
237
|
+
yield completeExprValue(expr.expr, thread);
|
|
233
238
|
return (0, eval_tree_common_1.evalUnaryCore)(expr, thisStack, evalContext, thread);
|
|
234
239
|
});
|
|
235
240
|
}
|
|
236
241
|
function evalBinaryAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
237
242
|
return __awaiter(this, void 0, void 0, function* () {
|
|
238
|
-
var _a, _b;
|
|
239
243
|
yield evaluator(thisStack, expr.left, evalContext, thread);
|
|
240
244
|
thisStack.pop();
|
|
241
|
-
const l = yield
|
|
242
|
-
(0, eval_tree_common_1.setExprValue)(expr.left, { value: l }, thread);
|
|
245
|
+
const l = yield completeExprValue(expr.left, thread);
|
|
243
246
|
if (expr.op === "&&" && !l) {
|
|
244
247
|
(0, eval_tree_common_1.setExprValue)(expr, { value: l }, thread);
|
|
245
248
|
return l;
|
|
@@ -250,15 +253,15 @@ function evalBinaryAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
|
250
253
|
}
|
|
251
254
|
yield evaluator(thisStack, expr.right, evalContext, thread);
|
|
252
255
|
thisStack.pop();
|
|
253
|
-
|
|
254
|
-
(0, eval_tree_common_1.setExprValue)(expr.right, { value: r }, thread);
|
|
256
|
+
yield completeExprValue(expr.right, thread);
|
|
255
257
|
return (0, eval_tree_common_1.evalBinaryCore)(expr, thisStack, evalContext, thread);
|
|
256
258
|
});
|
|
257
259
|
}
|
|
258
260
|
function evalConditionalAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
259
261
|
return __awaiter(this, void 0, void 0, function* () {
|
|
260
|
-
|
|
262
|
+
yield evaluator(thisStack, expr.cond, evalContext, thread);
|
|
261
263
|
thisStack.pop();
|
|
264
|
+
const condition = yield completeExprValue(expr.cond, thread);
|
|
262
265
|
const value = yield evaluator(thisStack, condition ? expr.thenE : expr.elseE, evalContext, thread);
|
|
263
266
|
(0, eval_tree_common_1.setExprValue)(expr, { value }, thread);
|
|
264
267
|
return value;
|
|
@@ -274,8 +277,10 @@ function evalAssignmentAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
|
274
277
|
}
|
|
275
278
|
yield evaluator(thisStack, leftValue, evalContext, thread);
|
|
276
279
|
thisStack.pop();
|
|
280
|
+
yield completeExprValue(leftValue, thread);
|
|
277
281
|
yield evaluator(thisStack, expr.expr, evalContext, thread);
|
|
278
282
|
thisStack.pop();
|
|
283
|
+
yield completeExprValue(expr.expr, thread);
|
|
279
284
|
const value = (0, eval_tree_common_1.evalAssignmentCore)(thisStack, expr, evalContext, thread);
|
|
280
285
|
if (updatesState && evalContext.onDidUpdate) {
|
|
281
286
|
evalContext.onDidUpdate(rootScope, rootScope.name, "assignment");
|
|
@@ -292,6 +297,7 @@ function evalPreOrPostAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
|
292
297
|
}
|
|
293
298
|
yield evaluator(thisStack, expr.expr, evalContext, thread);
|
|
294
299
|
thisStack.pop();
|
|
300
|
+
yield completeExprValue(expr.expr, thread);
|
|
295
301
|
const value = (0, eval_tree_common_1.evalPreOrPostCore)(thisStack, expr, evalContext, thread);
|
|
296
302
|
if (updatesState && evalContext.onDidUpdate) {
|
|
297
303
|
evalContext.onDidUpdate(rootScope, rootScope.name, "pre-post");
|
|
@@ -308,6 +314,7 @@ function evalFunctionInvocationAsync(evaluator, thisStack, expr, evalContext, th
|
|
|
308
314
|
// --- Check for contexted object
|
|
309
315
|
if (expr.obj.type === ScriptingSourceTreeExp_1.T_MEMBER_ACCESS_EXPRESSION) {
|
|
310
316
|
hostObject = yield evaluator(thisStack, expr.obj.obj, evalContext, thread);
|
|
317
|
+
yield completeExprValue(expr.obj.obj, thread);
|
|
311
318
|
functionObj = (0, eval_tree_common_1.evalMemberAccessCore)(thisStack, expr.obj, evalContext, thread);
|
|
312
319
|
if (expr.obj.obj.type === ScriptingSourceTreeExp_1.T_IDENTIFIER && (hostObject === null || hostObject === void 0 ? void 0 : hostObject._SUPPORT_IMPLICIT_CONTEXT)) {
|
|
313
320
|
implicitContextObject = hostObject;
|
|
@@ -315,7 +322,8 @@ function evalFunctionInvocationAsync(evaluator, thisStack, expr, evalContext, th
|
|
|
315
322
|
}
|
|
316
323
|
else {
|
|
317
324
|
// --- Get the object on which to invoke the function
|
|
318
|
-
|
|
325
|
+
yield evaluator(thisStack, expr.obj, evalContext, thread);
|
|
326
|
+
functionObj = yield completeExprValue(expr.obj, thread);
|
|
319
327
|
}
|
|
320
328
|
thisStack.pop();
|
|
321
329
|
// --- Keep function arguments here, we pass it to the function later
|
|
@@ -335,7 +343,8 @@ function evalFunctionInvocationAsync(evaluator, thisStack, expr, evalContext, th
|
|
|
335
343
|
for (let i = 0; i < expr.arguments.length; i++) {
|
|
336
344
|
const arg = expr.arguments[i];
|
|
337
345
|
if (arg.type === ScriptingSourceTreeExp_1.T_SPREAD_EXPRESSION) {
|
|
338
|
-
|
|
346
|
+
yield evaluator([], arg.expr, evalContext, thread);
|
|
347
|
+
const funcArg = yield completeExprValue(arg.expr, thread);
|
|
339
348
|
if (!Array.isArray(funcArg)) {
|
|
340
349
|
throw new Error("Spread operator within a function invocation expects an array operand.");
|
|
341
350
|
}
|
|
@@ -350,7 +359,8 @@ function evalFunctionInvocationAsync(evaluator, thisStack, expr, evalContext, th
|
|
|
350
359
|
functionArgs.push(wrappedFunc);
|
|
351
360
|
}
|
|
352
361
|
else {
|
|
353
|
-
|
|
362
|
+
yield evaluator([], arg, evalContext, thread);
|
|
363
|
+
const funcArg = yield completeExprValue(arg, thread);
|
|
354
364
|
if (funcArg === null || funcArg === void 0 ? void 0 : funcArg._ARROW_EXPR_) {
|
|
355
365
|
const wrappedFuncArg = yield createArrowFunctionAsync(evaluator, funcArg);
|
|
356
366
|
const wrappedFunc = (...args) => wrappedFuncArg(funcArg.args, evalContext, thread, ...args);
|
|
@@ -586,10 +596,19 @@ function evalTemplateLiteralAsync(evaluator, thisStack, expr, evalContext, threa
|
|
|
586
596
|
return __awaiter(this, void 0, void 0, function* () {
|
|
587
597
|
const segmentValues = new Array(expr.segments.length);
|
|
588
598
|
for (let i = 0; i < expr.segments.length; ++i) {
|
|
589
|
-
|
|
599
|
+
yield evaluator(thisStack, expr.segments[i], evalContext, thread);
|
|
590
600
|
thisStack.pop();
|
|
601
|
+
const evaledValue = yield completeExprValue(expr.segments[i], thread);
|
|
591
602
|
segmentValues[i] = evaledValue;
|
|
592
603
|
}
|
|
593
604
|
return (0, eval_tree_common_1.evalTemplateLiteralCore)(segmentValues);
|
|
594
605
|
});
|
|
595
606
|
}
|
|
607
|
+
function completeExprValue(expr, thread) {
|
|
608
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
609
|
+
const exprValue = (0, eval_tree_common_1.getExprValue)(expr, thread);
|
|
610
|
+
const awaited = yield completePromise(exprValue === null || exprValue === void 0 ? void 0 : exprValue.value);
|
|
611
|
+
(0, eval_tree_common_1.setExprValue)(expr, Object.assign(Object.assign({}, exprValue), { value: awaited }), thread);
|
|
612
|
+
return awaited;
|
|
613
|
+
});
|
|
614
|
+
}
|
|
@@ -15998,7 +15998,7 @@ li ._htmlOl_1snis_205 {
|
|
|
15998
15998
|
});
|
|
15999
15999
|
}
|
|
16000
16000
|
}
|
|
16001
|
-
var define_process_env_default$9 = { NODE_ENV: "production", VITE_MOCK_ENABLED: true, VITE_MOCK_WORKER_LOCATION: "mockApi.js", VITE_USED_COMPONENTS_Pdf: "false", VITE_USED_COMPONENTS_Chart: "false", VITE_USER_COMPONENTS_XmluiCodeHightlighter: "false", VITE_USED_COMPONENTS_Tree: "false", VITE_XMLUI_VERSION: "0.9.
|
|
16001
|
+
var define_process_env_default$9 = { NODE_ENV: "production", VITE_MOCK_ENABLED: true, VITE_MOCK_WORKER_LOCATION: "mockApi.js", VITE_USED_COMPONENTS_Pdf: "false", VITE_USED_COMPONENTS_Chart: "false", VITE_USER_COMPONENTS_XmluiCodeHightlighter: "false", VITE_USED_COMPONENTS_Tree: "false", VITE_XMLUI_VERSION: "0.9.1 (built 4/1/2025)" };
|
|
16002
16002
|
class Mutation extends Removable {
|
|
16003
16003
|
constructor(config) {
|
|
16004
16004
|
super();
|
|
@@ -131167,7 +131167,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
131167
131167
|
/* @__PURE__ */ jsxRuntimeExports.jsx("svg", { style: { display: "none" }, ref: spriteRootRef })
|
|
131168
131168
|
] });
|
|
131169
131169
|
}
|
|
131170
|
-
const version = "0.9.
|
|
131170
|
+
const version = "0.9.1";
|
|
131171
131171
|
const ApiInterceptorContext = reactExports.createContext(null);
|
|
131172
131172
|
function useApiInterceptorContext() {
|
|
131173
131173
|
return reactExports.useContext(ApiInterceptorContext);
|
|
@@ -131583,12 +131583,15 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
131583
131583
|
}
|
|
131584
131584
|
async function evalMemberAccessAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
131585
131585
|
await evaluator(thisStack, expr.obj, evalContext, thread);
|
|
131586
|
+
await completeExprValue(expr.obj, thread);
|
|
131586
131587
|
return evalMemberAccessCore(thisStack, expr, evalContext, thread);
|
|
131587
131588
|
}
|
|
131588
131589
|
async function evalCalculatedMemberAccessAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
131589
131590
|
await evaluator(thisStack, expr.obj, evalContext, thread);
|
|
131591
|
+
await completeExprValue(expr.obj, thread);
|
|
131590
131592
|
await evaluator(thisStack, expr.member, evalContext, thread);
|
|
131591
131593
|
thisStack.pop();
|
|
131594
|
+
await completeExprValue(expr.member, thread);
|
|
131592
131595
|
return evalCalculatedMemberAccessCore(thisStack, expr, evalContext, thread);
|
|
131593
131596
|
}
|
|
131594
131597
|
async function evalSequenceAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
@@ -131664,14 +131667,13 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
131664
131667
|
async function evalUnaryAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
131665
131668
|
await evaluator(thisStack, expr.expr, evalContext, thread);
|
|
131666
131669
|
thisStack.pop();
|
|
131670
|
+
await completeExprValue(expr.expr, thread);
|
|
131667
131671
|
return evalUnaryCore(expr, thisStack, evalContext, thread);
|
|
131668
131672
|
}
|
|
131669
131673
|
async function evalBinaryAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
131670
|
-
var _a3, _b3;
|
|
131671
131674
|
await evaluator(thisStack, expr.left, evalContext, thread);
|
|
131672
131675
|
thisStack.pop();
|
|
131673
|
-
const l2 = await
|
|
131674
|
-
setExprValue(expr.left, { value: l2 }, thread);
|
|
131676
|
+
const l2 = await completeExprValue(expr.left, thread);
|
|
131675
131677
|
if (expr.op === "&&" && !l2) {
|
|
131676
131678
|
setExprValue(expr, { value: l2 }, thread);
|
|
131677
131679
|
return l2;
|
|
@@ -131682,13 +131684,13 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
131682
131684
|
}
|
|
131683
131685
|
await evaluator(thisStack, expr.right, evalContext, thread);
|
|
131684
131686
|
thisStack.pop();
|
|
131685
|
-
|
|
131686
|
-
setExprValue(expr.right, { value: r2 }, thread);
|
|
131687
|
+
await completeExprValue(expr.right, thread);
|
|
131687
131688
|
return evalBinaryCore(expr, thisStack, evalContext, thread);
|
|
131688
131689
|
}
|
|
131689
131690
|
async function evalConditionalAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
131690
|
-
|
|
131691
|
+
await evaluator(thisStack, expr.cond, evalContext, thread);
|
|
131691
131692
|
thisStack.pop();
|
|
131693
|
+
const condition = await completeExprValue(expr.cond, thread);
|
|
131692
131694
|
const value = await evaluator(
|
|
131693
131695
|
thisStack,
|
|
131694
131696
|
condition ? expr.thenE : expr.elseE,
|
|
@@ -131707,8 +131709,10 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
131707
131709
|
}
|
|
131708
131710
|
await evaluator(thisStack, leftValue, evalContext, thread);
|
|
131709
131711
|
thisStack.pop();
|
|
131712
|
+
await completeExprValue(leftValue, thread);
|
|
131710
131713
|
await evaluator(thisStack, expr.expr, evalContext, thread);
|
|
131711
131714
|
thisStack.pop();
|
|
131715
|
+
await completeExprValue(expr.expr, thread);
|
|
131712
131716
|
const value = evalAssignmentCore(thisStack, expr, evalContext, thread);
|
|
131713
131717
|
if (updatesState && evalContext.onDidUpdate) {
|
|
131714
131718
|
evalContext.onDidUpdate(rootScope, rootScope.name, "assignment");
|
|
@@ -131723,6 +131727,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
131723
131727
|
}
|
|
131724
131728
|
await evaluator(thisStack, expr.expr, evalContext, thread);
|
|
131725
131729
|
thisStack.pop();
|
|
131730
|
+
await completeExprValue(expr.expr, thread);
|
|
131726
131731
|
const value = evalPreOrPostCore(thisStack, expr, evalContext, thread);
|
|
131727
131732
|
if (updatesState && evalContext.onDidUpdate) {
|
|
131728
131733
|
evalContext.onDidUpdate(rootScope, rootScope.name, "pre-post");
|
|
@@ -131736,12 +131741,14 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
131736
131741
|
let hostObject;
|
|
131737
131742
|
if (expr.obj.type === T_MEMBER_ACCESS_EXPRESSION) {
|
|
131738
131743
|
hostObject = await evaluator(thisStack, expr.obj.obj, evalContext, thread);
|
|
131744
|
+
await completeExprValue(expr.obj.obj, thread);
|
|
131739
131745
|
functionObj = evalMemberAccessCore(thisStack, expr.obj, evalContext, thread);
|
|
131740
131746
|
if (expr.obj.obj.type === T_IDENTIFIER && (hostObject == null ? void 0 : hostObject._SUPPORT_IMPLICIT_CONTEXT)) {
|
|
131741
131747
|
implicitContextObject = hostObject;
|
|
131742
131748
|
}
|
|
131743
131749
|
} else {
|
|
131744
|
-
|
|
131750
|
+
await evaluator(thisStack, expr.obj, evalContext, thread);
|
|
131751
|
+
functionObj = await completeExprValue(expr.obj, thread);
|
|
131745
131752
|
}
|
|
131746
131753
|
thisStack.pop();
|
|
131747
131754
|
const functionArgs = [];
|
|
@@ -131764,7 +131771,8 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
131764
131771
|
for (let i2 = 0; i2 < expr.arguments.length; i2++) {
|
|
131765
131772
|
const arg = expr.arguments[i2];
|
|
131766
131773
|
if (arg.type === T_SPREAD_EXPRESSION) {
|
|
131767
|
-
|
|
131774
|
+
await evaluator([], arg.expr, evalContext, thread);
|
|
131775
|
+
const funcArg = await completeExprValue(arg.expr, thread);
|
|
131768
131776
|
if (!Array.isArray(funcArg)) {
|
|
131769
131777
|
throw new Error("Spread operator within a function invocation expects an array operand.");
|
|
131770
131778
|
}
|
|
@@ -131777,7 +131785,8 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
131777
131785
|
};
|
|
131778
131786
|
functionArgs.push(wrappedFunc);
|
|
131779
131787
|
} else {
|
|
131780
|
-
|
|
131788
|
+
await evaluator([], arg, evalContext, thread);
|
|
131789
|
+
const funcArg = await completeExprValue(arg, thread);
|
|
131781
131790
|
if (funcArg == null ? void 0 : funcArg._ARROW_EXPR_) {
|
|
131782
131791
|
const wrappedFuncArg = await createArrowFunctionAsync(evaluator, funcArg);
|
|
131783
131792
|
const wrappedFunc = (...args) => wrappedFuncArg(funcArg.args, evalContext, thread, ...args);
|
|
@@ -131982,12 +131991,19 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
131982
131991
|
async function evalTemplateLiteralAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
131983
131992
|
const segmentValues = new Array(expr.segments.length);
|
|
131984
131993
|
for (let i2 = 0; i2 < expr.segments.length; ++i2) {
|
|
131985
|
-
|
|
131994
|
+
await evaluator(thisStack, expr.segments[i2], evalContext, thread);
|
|
131986
131995
|
thisStack.pop();
|
|
131996
|
+
const evaledValue = await completeExprValue(expr.segments[i2], thread);
|
|
131987
131997
|
segmentValues[i2] = evaledValue;
|
|
131988
131998
|
}
|
|
131989
131999
|
return evalTemplateLiteralCore(segmentValues);
|
|
131990
132000
|
}
|
|
132001
|
+
async function completeExprValue(expr, thread) {
|
|
132002
|
+
const exprValue = getExprValue(expr, thread);
|
|
132003
|
+
const awaited = await completePromise(exprValue == null ? void 0 : exprValue.value);
|
|
132004
|
+
setExprValue(expr, { ...exprValue, value: awaited }, thread);
|
|
132005
|
+
return awaited;
|
|
132006
|
+
}
|
|
131991
132007
|
async function processStatementQueueAsync(statements, evalContext, thread) {
|
|
131992
132008
|
var _a3, _b3, _c3;
|
|
131993
132009
|
if (!thread) {
|
|
@@ -135906,7 +135922,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
135906
135922
|
ToneChangerButton: ToneChangerButtonMd,
|
|
135907
135923
|
Tree: TreeMd
|
|
135908
135924
|
};
|
|
135909
|
-
var define_process_env_default$2 = { VITE_XMLUI_VERSION: "0.9.
|
|
135925
|
+
var define_process_env_default$2 = { VITE_XMLUI_VERSION: "0.9.1 (built 4/1/2025)" };
|
|
135910
135926
|
const MAIN_FILE = "Main." + componentFileExtension;
|
|
135911
135927
|
const MAIN_CODE_BEHIND_FILE = "Main." + codeBehindFileExtension;
|
|
135912
135928
|
const CONFIG_FILE = "config.json";
|
|
@@ -148929,7 +148945,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
148929
148945
|
function isResponseWithoutBody(status) {
|
|
148930
148946
|
return RESPONSE_STATUS_CODES_WITHOUT_BODY.has(status);
|
|
148931
148947
|
}
|
|
148932
|
-
var define_process_env_default$1 = { NODE_ENV: "production", VITE_MOCK_ENABLED: true, VITE_MOCK_WORKER_LOCATION: "mockApi.js", VITE_USED_COMPONENTS_Pdf: "false", VITE_USED_COMPONENTS_Chart: "false", VITE_USER_COMPONENTS_XmluiCodeHightlighter: "false", VITE_USED_COMPONENTS_Tree: "false", VITE_XMLUI_VERSION: "0.9.
|
|
148948
|
+
var define_process_env_default$1 = { NODE_ENV: "production", VITE_MOCK_ENABLED: true, VITE_MOCK_WORKER_LOCATION: "mockApi.js", VITE_USED_COMPONENTS_Pdf: "false", VITE_USED_COMPONENTS_Chart: "false", VITE_USER_COMPONENTS_XmluiCodeHightlighter: "false", VITE_USED_COMPONENTS_Tree: "false", VITE_XMLUI_VERSION: "0.9.1 (built 4/1/2025)" };
|
|
148933
148949
|
var __defProp$7 = Object.defineProperty;
|
|
148934
148950
|
var __export = (target2, all2) => {
|
|
148935
148951
|
for (var name2 in all2)
|
package/dist/xmlui.mjs
CHANGED