xmlui 0.9.62 → 0.9.64
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/lib/{apiInterceptorWorker-BXyXjzpe.mjs → apiInterceptorWorker--1siIib9.mjs} +1 -1
- package/dist/lib/{index-BRbUXnCk.mjs → index-DQYBJR26.mjs} +27379 -16829
- package/dist/lib/index.css +1 -1
- package/dist/lib/language-server-web-worker.mjs +1 -1
- package/dist/lib/language-server.mjs +1 -1
- package/dist/lib/{metadata-utils-DJM8orNd.mjs → metadata-utils-Bes0jMw3.mjs} +1 -1
- package/dist/lib/{server-common-D0VA8gIv.mjs → server-common-CfdMYx46.mjs} +2 -2
- package/dist/lib/{transform-BdB0APqE.mjs → transform-C_5kSXBN.mjs} +58 -58
- package/dist/lib/xmlui-parser.d.ts +0 -1
- package/dist/lib/xmlui-parser.mjs +2 -2
- package/dist/lib/{xmlui-serializer-COAfRndx.mjs → xmlui-serializer-jEIItW8v.mjs} +11 -3
- package/dist/lib/xmlui.d.ts +3 -4
- package/dist/lib/xmlui.mjs +2 -2
- package/dist/metadata/{apiInterceptorWorker-8ismUE1H.mjs → apiInterceptorWorker-C1cI935F.mjs} +1 -1
- package/dist/metadata/{collectedComponentMetadata-xeEJhtEt.mjs → collectedComponentMetadata-CEyXwr66.mjs} +25726 -16430
- package/dist/metadata/style.css +1 -1
- package/dist/metadata/xmlui-metadata.mjs +1 -1
- package/dist/metadata/xmlui-metadata.umd.js +146 -117
- package/dist/scripts/package.json +6 -1
- package/dist/scripts/src/components/Charts/BarChart/BarChartNative.js +6 -1
- package/dist/scripts/src/components/Charts/LineChart/LineChartNative.js +6 -1
- package/dist/scripts/src/components/CodeBlock/highlight-code.js +34 -13
- package/dist/scripts/src/components/ComponentProvider.js +4 -0
- package/dist/scripts/src/components/FormItem/FormItem.js +1 -0
- package/dist/scripts/src/components/FormSection/FormSection.js +42 -2
- package/dist/scripts/src/components/Icon/TableDeleteColumnIcon.js +7 -0
- package/dist/scripts/src/components/Icon/TableDeleteRowIcon.js +7 -0
- package/dist/scripts/src/components/Icon/TableInsertColumnIcon.js +7 -0
- package/dist/scripts/src/components/Icon/TableInsertRowIcon.js +7 -0
- package/dist/scripts/src/components/IconProvider.js +11 -0
- package/dist/scripts/src/components/List/ListNative.js +13 -3
- package/dist/scripts/src/components/Markdown/MarkdownNative.js +3 -3
- package/dist/scripts/src/components/Markdown/utils.js +13 -8
- package/dist/scripts/src/components/NavPanel/NavPanelNative.js +4 -0
- package/dist/scripts/src/components/NestedApp/AppWithCodeViewNative.js +3 -3
- package/dist/scripts/src/components/NestedApp/NestedAppNative.js +15 -12
- package/dist/scripts/src/components/NestedApp/defaultProps.js +1 -0
- package/dist/scripts/src/components/RadioGroup/RadioGroup.js +4 -6
- package/dist/scripts/src/components/TableEditor/TableEditor.js +183 -0
- package/dist/scripts/src/components/TableEditor/TableEditorNative.js +8 -0
- package/dist/scripts/src/parsers/xmlui-parser/transform.js +0 -3
- package/dist/standalone/xmlui-standalone.es.d.ts +3 -4
- package/dist/standalone/xmlui-standalone.umd.js +274 -242
- package/package.json +6 -1
- package/dist/scripts/src/components-core/theming/themes/solid.js +0 -16
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MarkupKind as Vl, CompletionItemKind as Ot, TextDocuments as cn, TextDocumentSyncKind as vn, DidChangeConfigurationNotification as xn } from "vscode-languageserver";
|
|
2
2
|
import { TextDocument as bn } from "vscode-languageserver-textdocument";
|
|
3
|
-
import { S as k, B as zl, h as pn } from "./transform-
|
|
4
|
-
import { a as hn, M as Hn } from "./metadata-utils-
|
|
3
|
+
import { S as k, B as zl, h as pn } from "./transform-C_5kSXBN.mjs";
|
|
4
|
+
import { a as hn, M as Hn } from "./metadata-utils-Bes0jMw3.mjs";
|
|
5
5
|
var ae = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
6
6
|
function gn(e) {
|
|
7
7
|
if (e.__esModule) return e;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { parseRegExpLiteral as Xe } from "@eslint-community/regexpp";
|
|
2
|
-
const Bn = 1, Wn = 2, Un = 3,
|
|
2
|
+
const Bn = 1, Wn = 2, Un = 3, yn = 4, Mn = 5, Fn = 6, $n = 7, qn = 8, Xn = 9, Gn = 10, Hn = 11, Qn = 12, zn = 13, Yn = 14, Jn = 15, Zn = 16, Kn = 17, Cn = 18, jn = 19, Vn = 20, er = 100, nr = 101, rr = 102, tr = 103, ir = 104, lr = 105, sr = 106, ar = 107, or = 108, cr = 109, ur = 110, fr = 111, hr = 112, dr = 113, pr = 114, Er = 115, kr = 116, gr = 117, _r = 118, Nr = 200, Sr = 201, Tr = 202, mr = 203, xr = 204, Ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
3
|
__proto__: null,
|
|
4
4
|
T_ARRAY_DESTRUCTURE: Tr,
|
|
5
5
|
T_ARRAY_LITERAL: ur,
|
|
6
6
|
T_ARROW_EXPRESSION: Er,
|
|
7
|
-
T_ARROW_EXPRESSION_STATEMENT:
|
|
7
|
+
T_ARROW_EXPRESSION_STATEMENT: yn,
|
|
8
8
|
T_ASSIGNMENT_EXPRESSION: dr,
|
|
9
9
|
T_BINARY_EXPRESSION: nr,
|
|
10
10
|
T_BLOCK_STATEMENT: Bn,
|
|
@@ -24,7 +24,7 @@ const Bn = 1, Wn = 2, Un = 3, Mn = 4, yn = 5, Fn = 6, $n = 7, qn = 8, Xn = 9, Gn
|
|
|
24
24
|
T_FUNCTION_INVOCATION_EXPRESSION: ir,
|
|
25
25
|
T_IDENTIFIER: ar,
|
|
26
26
|
T_IF_STATEMENT: qn,
|
|
27
|
-
T_LET_STATEMENT:
|
|
27
|
+
T_LET_STATEMENT: Mn,
|
|
28
28
|
T_LITERAL: cr,
|
|
29
29
|
T_MEMBER_ACCESS_EXPRESSION: lr,
|
|
30
30
|
T_NO_ARG_EXPRESSION: pr,
|
|
@@ -88,7 +88,7 @@ const Bn = 1, Wn = 2, Un = 3, Mn = 4, yn = 5, Fn = 6, $n = 7, qn = 8, Xn = 9, Gn
|
|
|
88
88
|
T_POSTFIX_OP_EXPRESSION: In,
|
|
89
89
|
T_REACTIVE_VAR_DECLARATION: wn,
|
|
90
90
|
// Other node type values
|
|
91
|
-
T_VAR_DECLARATION:
|
|
91
|
+
T_VAR_DECLARATION: ye,
|
|
92
92
|
T_DESTRUCTURE: Ie,
|
|
93
93
|
T_ARRAY_DESTRUCTURE: te,
|
|
94
94
|
T_OBJECT_DESTRUCTURE: ae,
|
|
@@ -213,7 +213,7 @@ class He {
|
|
|
213
213
|
fetch() {
|
|
214
214
|
const n = this, r = this.input, t = this._prefetchedPos || r.position, l = r.line, a = this._prefetchedColumn || r.column;
|
|
215
215
|
this._lastFetchPosition = this.input.position;
|
|
216
|
-
let s = null, o = "", u = i.Eof, D = r.position, O = r.column, h = null,
|
|
216
|
+
let s = null, o = "", u = i.Eof, D = r.position, O = r.column, h = null, y = !1, _ = this.getStartingPhaseThenReset();
|
|
217
217
|
for (; ; ) {
|
|
218
218
|
if (h = this.fetchNextChar(), h === null)
|
|
219
219
|
return R();
|
|
@@ -304,7 +304,7 @@ class He {
|
|
|
304
304
|
s = h, _ = 35;
|
|
305
305
|
break;
|
|
306
306
|
default:
|
|
307
|
-
Ye(h) ? (
|
|
307
|
+
Ye(h) ? (y = !0, _ = 17, u = i.Identifier) : re(h) ? (_ = 27, u = i.DecimalLiteral) : m(i.Unknown);
|
|
308
308
|
break;
|
|
309
309
|
}
|
|
310
310
|
break;
|
|
@@ -520,7 +520,7 @@ class He {
|
|
|
520
520
|
case 6:
|
|
521
521
|
if (h === "{")
|
|
522
522
|
return m(i.DollarLBrace);
|
|
523
|
-
_ = 17,
|
|
523
|
+
_ = 17, y = !0, u = i.Identifier, Je(h) || R();
|
|
524
524
|
break;
|
|
525
525
|
case 33: {
|
|
526
526
|
_ = 34;
|
|
@@ -679,7 +679,7 @@ class He {
|
|
|
679
679
|
o += h, n._prefetched = null, n._prefetchedPos = null, n._prefetchedColumn = null, D = r.position, O = r.position;
|
|
680
680
|
}
|
|
681
681
|
function R() {
|
|
682
|
-
return
|
|
682
|
+
return y && (u = W.get(o) ?? (Ye(o[0]) && o[o.length - 1] !== "'" ? i.Identifier : i.Unknown)), {
|
|
683
683
|
text: o,
|
|
684
684
|
type: u,
|
|
685
685
|
startPosition: t,
|
|
@@ -948,7 +948,7 @@ let Ir = 0;
|
|
|
948
948
|
function Le() {
|
|
949
949
|
return ++Ir;
|
|
950
950
|
}
|
|
951
|
-
class
|
|
951
|
+
class Me {
|
|
952
952
|
/**
|
|
953
953
|
* Initializes the parser with the specified source code
|
|
954
954
|
* @param source Source code to parse
|
|
@@ -1144,7 +1144,7 @@ class ye {
|
|
|
1144
1144
|
return this.reportError("W009", s), null;
|
|
1145
1145
|
if (t.push(
|
|
1146
1146
|
this.createExpressionNode(
|
|
1147
|
-
|
|
1147
|
+
ye,
|
|
1148
1148
|
a,
|
|
1149
1149
|
l,
|
|
1150
1150
|
r
|
|
@@ -1202,7 +1202,7 @@ class ye {
|
|
|
1202
1202
|
if (s === null) return null;
|
|
1203
1203
|
if (a.expr = s, r = s.endToken, t.push(
|
|
1204
1204
|
this.createExpressionNode(
|
|
1205
|
-
|
|
1205
|
+
ye,
|
|
1206
1206
|
a,
|
|
1207
1207
|
l,
|
|
1208
1208
|
r
|
|
@@ -1792,15 +1792,15 @@ class ye {
|
|
|
1792
1792
|
break;
|
|
1793
1793
|
case fe: {
|
|
1794
1794
|
if (o = !h.parenthesized, o) {
|
|
1795
|
-
const
|
|
1796
|
-
|
|
1795
|
+
const y = this.convertToObjectDestructure(h);
|
|
1796
|
+
y && u.push(y);
|
|
1797
1797
|
}
|
|
1798
1798
|
break;
|
|
1799
1799
|
}
|
|
1800
1800
|
case ue: {
|
|
1801
1801
|
if (o = !h.parenthesized, o) {
|
|
1802
|
-
const
|
|
1803
|
-
|
|
1802
|
+
const y = this.convertToArrayDestructure(h);
|
|
1803
|
+
y && u.push(y);
|
|
1804
1804
|
}
|
|
1805
1805
|
break;
|
|
1806
1806
|
}
|
|
@@ -2496,10 +2496,10 @@ class ye {
|
|
|
2496
2496
|
this._lexer.get();
|
|
2497
2497
|
let O = [];
|
|
2498
2498
|
if (this._lexer.peek().type !== i.RParent) {
|
|
2499
|
-
const
|
|
2500
|
-
if (!
|
|
2499
|
+
const y = this.parseExpr();
|
|
2500
|
+
if (!y)
|
|
2501
2501
|
return this.reportError("W001"), null;
|
|
2502
|
-
O =
|
|
2502
|
+
O = y.type === ce ? y.exprs : [y];
|
|
2503
2503
|
}
|
|
2504
2504
|
const h = this._lexer.peek();
|
|
2505
2505
|
this.expectToken(i.RParent, "W006"), r = this.createExpressionNode(
|
|
@@ -3544,11 +3544,11 @@ const Pe = {
|
|
|
3544
3544
|
code: "W001",
|
|
3545
3545
|
category: 1,
|
|
3546
3546
|
message: "Invalid character."
|
|
3547
|
-
},
|
|
3547
|
+
}, yr = {
|
|
3548
3548
|
code: "W002",
|
|
3549
3549
|
category: 1,
|
|
3550
3550
|
message: "Unterminated string literal."
|
|
3551
|
-
},
|
|
3551
|
+
}, Mr = {
|
|
3552
3552
|
code: "W007",
|
|
3553
3553
|
category: 1,
|
|
3554
3554
|
message: "Unterminated comment"
|
|
@@ -3571,7 +3571,7 @@ function qr(e, n, r, t, l) {
|
|
|
3571
3571
|
getTokenText: () => a.substring(D, s),
|
|
3572
3572
|
getTokenValue: () => h,
|
|
3573
3573
|
isIdentifier: () => O === c.Identifier,
|
|
3574
|
-
peekChar:
|
|
3574
|
+
peekChar: y,
|
|
3575
3575
|
scanChar: _,
|
|
3576
3576
|
scan: V,
|
|
3577
3577
|
scanTrivia: R,
|
|
@@ -3582,7 +3582,7 @@ function qr(e, n, r, t, l) {
|
|
|
3582
3582
|
resetTokenState: ee,
|
|
3583
3583
|
back: J
|
|
3584
3584
|
};
|
|
3585
|
-
function
|
|
3585
|
+
function y(k) {
|
|
3586
3586
|
if (s + (k ?? 0) >= o)
|
|
3587
3587
|
return null;
|
|
3588
3588
|
const p = Q(s + (k ?? 0));
|
|
@@ -3659,7 +3659,7 @@ function qr(e, n, r, t, l) {
|
|
|
3659
3659
|
return s += 3, O = c.CommentTrivia;
|
|
3660
3660
|
s += le(x(s));
|
|
3661
3661
|
}
|
|
3662
|
-
return f(
|
|
3662
|
+
return f(Mr, 4), O = c.Unknown;
|
|
3663
3663
|
} else if (
|
|
3664
3664
|
// --- <![CDATA[ section
|
|
3665
3665
|
x(s + 1) === d.exclamation && x(s + 2) === d.openBracket && x(s + 3) === d.C && x(s + 4) === d.D && x(s + 5) === d.A && x(s + 6) === d.T && x(s + 7) === d.A && x(s + 8) === d.openBracket
|
|
@@ -3750,7 +3750,7 @@ function qr(e, n, r, t, l) {
|
|
|
3750
3750
|
let p = "", S = s;
|
|
3751
3751
|
for (; ; ) {
|
|
3752
3752
|
if (s >= o) {
|
|
3753
|
-
p += a.substring(S, s), f(
|
|
3753
|
+
p += a.substring(S, s), f(yr, 1);
|
|
3754
3754
|
break;
|
|
3755
3755
|
}
|
|
3756
3756
|
if (x(s) === k) {
|
|
@@ -3839,7 +3839,7 @@ function Kr(e) {
|
|
|
3839
3839
|
k();
|
|
3840
3840
|
break;
|
|
3841
3841
|
case c.OpenNodeStart:
|
|
3842
|
-
|
|
3842
|
+
y();
|
|
3843
3843
|
break;
|
|
3844
3844
|
default:
|
|
3845
3845
|
const N = z(Yr);
|
|
@@ -3858,7 +3858,7 @@ function Kr(e) {
|
|
|
3858
3858
|
k();
|
|
3859
3859
|
break;
|
|
3860
3860
|
case c.OpenNodeStart:
|
|
3861
|
-
|
|
3861
|
+
y();
|
|
3862
3862
|
break;
|
|
3863
3863
|
case c.CloseNodeStart:
|
|
3864
3864
|
case c.EndOfFileToken:
|
|
@@ -3870,7 +3870,7 @@ function Kr(e) {
|
|
|
3870
3870
|
}
|
|
3871
3871
|
l.children && l.children.length > 0 ? S(c.ContentListNode) : w();
|
|
3872
3872
|
}
|
|
3873
|
-
function
|
|
3873
|
+
function y() {
|
|
3874
3874
|
p(), f(c.OpenNodeStart);
|
|
3875
3875
|
let g = !0, N = null;
|
|
3876
3876
|
if (ie(c.Identifier)) {
|
|
@@ -3977,8 +3977,8 @@ function Kr(e) {
|
|
|
3977
3977
|
return S(c.TagNameNode);
|
|
3978
3978
|
}
|
|
3979
3979
|
function Q(g, { nameIdent: N, nsIdent: T }) {
|
|
3980
|
-
const b = D(N), A = T && D(T), I = ({ ns: U, name: de }) => de === b && U === A, P = g.findIndex(I) !== -1,
|
|
3981
|
-
P && F($.duplAttr(b), N.pos, N.end), !T &&
|
|
3980
|
+
const b = D(N), A = T && D(T), I = ({ ns: U, name: de }) => de === b && U === A, P = g.findIndex(I) !== -1, M = "A" <= b[0] && b[0] <= "Z", G = P || M;
|
|
3981
|
+
P && F($.duplAttr(b), N.pos, N.end), !T && M && F($.uppercaseAttr(b), N.pos, N.end), G || g.push({ name: b, ns: A });
|
|
3982
3982
|
}
|
|
3983
3983
|
function X({ code: g, message: N, category: T }) {
|
|
3984
3984
|
const { pos: b, end: A } = Z();
|
|
@@ -4035,19 +4035,19 @@ function Kr(e) {
|
|
|
4035
4035
|
P = b;
|
|
4036
4036
|
break;
|
|
4037
4037
|
}
|
|
4038
|
-
let
|
|
4038
|
+
let M = !1;
|
|
4039
4039
|
if (g.kind === c.StringLiteral) {
|
|
4040
4040
|
const xe = g.end, Ae = v(!0);
|
|
4041
|
-
|
|
4041
|
+
M = Ae.kind === c.CData || Ae.kind === c.CloseNodeStart || Ae.kind === c.Script || Ae.kind === c.OpenNodeStart, o.resetTokenState(xe);
|
|
4042
4042
|
}
|
|
4043
4043
|
let G;
|
|
4044
|
-
|
|
4044
|
+
M ? G = g.pos : A.length > 0 ? G = A[A.length - 1].end : I !== -1 ? G = N[I].pos : G = g.start;
|
|
4045
4045
|
let U;
|
|
4046
4046
|
A.length > 0 && (U = A, A[0].pos);
|
|
4047
4047
|
let de = c.TextNode, Se = -1;
|
|
4048
4048
|
if (P !== -1)
|
|
4049
4049
|
Se = N[P].pos, o.resetTokenState(Se);
|
|
4050
|
-
else if (
|
|
4050
|
+
else if (M)
|
|
4051
4051
|
de = c.StringLiteral, Se = g.end;
|
|
4052
4052
|
else {
|
|
4053
4053
|
for (; ; ) {
|
|
@@ -4095,8 +4095,8 @@ function Kr(e) {
|
|
|
4095
4095
|
const I = o.getTokenStart(), P = T.length > 0 ? T : void 0;
|
|
4096
4096
|
if (T = [], g && A.code === $e.invalidChar)
|
|
4097
4097
|
return a = void 0, new j(N, I, o.getTokenEnd(), P);
|
|
4098
|
-
const
|
|
4099
|
-
return o.resetTokenState(
|
|
4098
|
+
const M = I + a.prefixLength, G = new j(N, I, M, P);
|
|
4099
|
+
return o.resetTokenState(M), p(), l.children.push(G), F(A, I, M), S(c.ErrorNode), a = void 0, v(g);
|
|
4100
4100
|
}
|
|
4101
4101
|
switch (N) {
|
|
4102
4102
|
case c.CommentTrivia:
|
|
@@ -4304,7 +4304,7 @@ function L(e, n, r, t, l, a) {
|
|
|
4304
4304
|
case Rn:
|
|
4305
4305
|
case In:
|
|
4306
4306
|
return n = (t == null ? void 0 : t(!0, e, n, l, a)) || n, n.cancel || !n.skipChildren && (n = L(e.expr, n, r, t, e, "operand"), n.cancel) || (n = (t == null ? void 0 : t(!1, e, n, l, a)) || n), n;
|
|
4307
|
-
case
|
|
4307
|
+
case ye: {
|
|
4308
4308
|
if (n = (t == null ? void 0 : t(!0, e, n, l, a)) || n, n.cancel) return n;
|
|
4309
4309
|
if (!n.skipChildren) {
|
|
4310
4310
|
if (e.aDestr !== void 0) {
|
|
@@ -4354,7 +4354,7 @@ function jr(e, n) {
|
|
|
4354
4354
|
function a(s, o) {
|
|
4355
4355
|
if (r.has(s))
|
|
4356
4356
|
return r.get(s);
|
|
4357
|
-
const u = new
|
|
4357
|
+
const u = new Me(o);
|
|
4358
4358
|
let D = [];
|
|
4359
4359
|
try {
|
|
4360
4360
|
D = u.parseStatements();
|
|
@@ -4370,19 +4370,19 @@ function jr(e, n) {
|
|
|
4370
4370
|
line: O.startLine,
|
|
4371
4371
|
column: O.startColumn
|
|
4372
4372
|
}), null;
|
|
4373
|
-
const h = [],
|
|
4373
|
+
const h = [], y = {};
|
|
4374
4374
|
D.filter((R) => R.type === be).forEach((R) => {
|
|
4375
4375
|
const m = R;
|
|
4376
|
-
if (
|
|
4376
|
+
if (y[m.id.name]) {
|
|
4377
4377
|
V("W020", R, m.id.name);
|
|
4378
4378
|
return;
|
|
4379
4379
|
}
|
|
4380
|
-
|
|
4380
|
+
y[m.id.name] = m;
|
|
4381
4381
|
});
|
|
4382
4382
|
const _ = {
|
|
4383
4383
|
type: "ScriptModule",
|
|
4384
4384
|
name: s,
|
|
4385
|
-
functions:
|
|
4385
|
+
functions: y,
|
|
4386
4386
|
statements: D,
|
|
4387
4387
|
sources: /* @__PURE__ */ new Map()
|
|
4388
4388
|
};
|
|
@@ -4599,7 +4599,7 @@ function Tt(e, n, r) {
|
|
|
4599
4599
|
});
|
|
4600
4600
|
let P = D(s, I);
|
|
4601
4601
|
o.pop();
|
|
4602
|
-
const
|
|
4602
|
+
const M = {
|
|
4603
4603
|
name: k.value,
|
|
4604
4604
|
component: P,
|
|
4605
4605
|
debug: {
|
|
@@ -4610,7 +4610,7 @@ function Tt(e, n, r) {
|
|
|
4610
4610
|
}
|
|
4611
4611
|
}
|
|
4612
4612
|
};
|
|
4613
|
-
S && (
|
|
4613
|
+
S && (M.api = S), w && (P.vars = { ...P.vars, ...w }), p && (M.codeBehind = p.value), P.debug = {
|
|
4614
4614
|
source: {
|
|
4615
4615
|
start: I.start,
|
|
4616
4616
|
end: I.end,
|
|
@@ -4618,13 +4618,13 @@ function Tt(e, n, r) {
|
|
|
4618
4618
|
}
|
|
4619
4619
|
};
|
|
4620
4620
|
const G = tn(E, b);
|
|
4621
|
-
return h(s,
|
|
4621
|
+
return h(s, M, G), M;
|
|
4622
4622
|
}
|
|
4623
4623
|
function h(E, f, k) {
|
|
4624
4624
|
var N;
|
|
4625
4625
|
const p = !ne(f), S = Ee(k);
|
|
4626
4626
|
if (o.push(/* @__PURE__ */ new Map()), S.forEach((T) => {
|
|
4627
|
-
|
|
4627
|
+
y(f, T);
|
|
4628
4628
|
}), ke(k).forEach((T) => {
|
|
4629
4629
|
if (T.kind === c.Script) {
|
|
4630
4630
|
Ee(T).length > 0 && B("T022");
|
|
@@ -4720,7 +4720,7 @@ function Tt(e, n, r) {
|
|
|
4720
4720
|
}
|
|
4721
4721
|
}), o.pop(), !f.script || f.script.trim().length === 0)
|
|
4722
4722
|
return;
|
|
4723
|
-
const w = new
|
|
4723
|
+
const w = new Me(f.script);
|
|
4724
4724
|
try {
|
|
4725
4725
|
w.parseStatements(), f.scriptCollected = Vr("Main", f.script);
|
|
4726
4726
|
} catch (T) {
|
|
@@ -4729,7 +4729,7 @@ function Tt(e, n, r) {
|
|
|
4729
4729
|
const g = ((N = f.scriptCollected) == null ? void 0 : N.moduleErrors) ?? {};
|
|
4730
4730
|
Object.keys(g).length > 0 && (f.scriptError = g);
|
|
4731
4731
|
}
|
|
4732
|
-
function
|
|
4732
|
+
function y(E, f) {
|
|
4733
4733
|
const { namespace: k, startSegment: p, name: S, value: v, unsegmentedName: w } = x(f);
|
|
4734
4734
|
if (k === "xmlns")
|
|
4735
4735
|
return ln(o, E, w, v);
|
|
@@ -4825,7 +4825,7 @@ function Tt(e, n, r) {
|
|
|
4825
4825
|
if (b && v.length >= 1) {
|
|
4826
4826
|
if (w.length > 0)
|
|
4827
4827
|
return B("T020"), null;
|
|
4828
|
-
const P = v.map((
|
|
4828
|
+
const P = v.map((M) => D(E, M));
|
|
4829
4829
|
return {
|
|
4830
4830
|
name: b,
|
|
4831
4831
|
value: P.length === 1 ? P[0] : P
|
|
@@ -4921,20 +4921,20 @@ function Tt(e, n, r) {
|
|
|
4921
4921
|
let g = !1, N = !1;
|
|
4922
4922
|
for (let I = 0; I < f.length; ++I) {
|
|
4923
4923
|
const P = f[I];
|
|
4924
|
-
let
|
|
4924
|
+
let M;
|
|
4925
4925
|
if (P.kind == c.Script) {
|
|
4926
4926
|
N = !0;
|
|
4927
4927
|
continue;
|
|
4928
4928
|
}
|
|
4929
4929
|
if (P.kind === c.ElementNode) {
|
|
4930
|
-
|
|
4930
|
+
M = X(P), f[I] = M;
|
|
4931
4931
|
continue;
|
|
4932
4932
|
}
|
|
4933
4933
|
let G = t(P);
|
|
4934
|
-
P.kind === c.StringLiteral ? G = G.slice(1, -1) : P.kind === c.CData ? g = !0 : (P.kind, c.TextNode), S ? g ?
|
|
4934
|
+
P.kind === c.StringLiteral ? G = G.slice(1, -1) : P.kind === c.CData ? g = !0 : (P.kind, c.TextNode), S ? g ? M = ot(G) : M = nn(G) : M = {
|
|
4935
4935
|
kind: c.TextNode,
|
|
4936
4936
|
text: G
|
|
4937
|
-
}, f[I] =
|
|
4937
|
+
}, f[I] = M;
|
|
4938
4938
|
}
|
|
4939
4939
|
const T = [], b = [];
|
|
4940
4940
|
let A = !1;
|
|
@@ -5033,7 +5033,7 @@ function Tt(e, n, r) {
|
|
|
5033
5033
|
function Z(E) {
|
|
5034
5034
|
if (typeof E != "string")
|
|
5035
5035
|
return E;
|
|
5036
|
-
const f = new
|
|
5036
|
+
const f = new Me(E);
|
|
5037
5037
|
try {
|
|
5038
5038
|
return {
|
|
5039
5039
|
__PARSED: !0,
|
|
@@ -5210,7 +5210,7 @@ function ln(e, n, r, t) {
|
|
|
5210
5210
|
const s = e[e.length - 1];
|
|
5211
5211
|
if (s.has(r))
|
|
5212
5212
|
return B("T025", r);
|
|
5213
|
-
s.set(r, a)
|
|
5213
|
+
s.set(r, a);
|
|
5214
5214
|
}
|
|
5215
5215
|
function ut(e, n) {
|
|
5216
5216
|
e.children.length !== 2 && B("T001");
|
|
@@ -5242,7 +5242,7 @@ export {
|
|
|
5242
5242
|
d as C,
|
|
5243
5243
|
Dn as D,
|
|
5244
5244
|
$e as E,
|
|
5245
|
-
|
|
5245
|
+
Me as F,
|
|
5246
5246
|
An as G,
|
|
5247
5247
|
xn as H,
|
|
5248
5248
|
q as I,
|
|
@@ -5286,15 +5286,15 @@ export {
|
|
|
5286
5286
|
ue as ai,
|
|
5287
5287
|
ce as aj,
|
|
5288
5288
|
Ln as ak,
|
|
5289
|
-
|
|
5289
|
+
ye as al,
|
|
5290
5290
|
Ie as am,
|
|
5291
5291
|
Be as an,
|
|
5292
5292
|
Vr as ao,
|
|
5293
5293
|
St as ap,
|
|
5294
5294
|
Pe as b,
|
|
5295
|
-
|
|
5295
|
+
yr as c,
|
|
5296
5296
|
_t as d,
|
|
5297
|
-
|
|
5297
|
+
Mr as e,
|
|
5298
5298
|
Fr as f,
|
|
5299
5299
|
$r as g,
|
|
5300
5300
|
Nt as h,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { q as s, s as t, A as i, t as r, v as n, C as o, r as d, a as g, b as m, f as C, e as p, g as l, c as N, D as _, o as D, E as c, N as E, P as S, S as x, T as U, U as A, j as L, h as P, d as f, i as y, B as u, n as b, k as h, m as M, l as v, w as I, u as O, p as T, x as K, z as R, y as X } from "./transform-
|
|
2
|
-
import { b as F, L as B, X as j, a as q, c as w, g as z, e as G, l as H, d as V, m as W, p as J } from "./xmlui-serializer-
|
|
1
|
+
import { q as s, s as t, A as i, t as r, v as n, C as o, r as d, a as g, b as m, f as C, e as p, g as l, c as N, D as _, o as D, E as c, N as E, P as S, S as x, T as U, U as A, j as L, h as P, d as f, i as y, B as u, n as b, k as h, m as M, l as v, w as I, u as O, p as T, x as K, z as R, y as X } from "./transform-C_5kSXBN.mjs";
|
|
2
|
+
import { b as F, L as B, X as j, a as q, c as w, g as z, e as G, l as H, d as V, m as W, p as J } from "./xmlui-serializer-jEIItW8v.mjs";
|
|
3
3
|
export {
|
|
4
4
|
s as AttributeKeyNode,
|
|
5
5
|
t as AttributeListNode,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { v as A, t as j } from "./transform-
|
|
1
|
+
import { v as A, t as j } from "./transform-C_5kSXBN.mjs";
|
|
2
2
|
const k = "xmlui", P = "xmlui.xs", D = "xs";
|
|
3
3
|
var V = /* @__PURE__ */ ((l) => (l[l.Skip = 0] = "Skip", l[l.Warning = 1] = "Warning", l[l.Error = 2] = "Error", l))(V || {}), w = /* @__PURE__ */ ((l) => (l[l.UnrecognisedProp = 0] = "UnrecognisedProp", l))(w || {});
|
|
4
4
|
function L(l) {
|
|
@@ -12,7 +12,9 @@ function L(l) {
|
|
|
12
12
|
case "skip":
|
|
13
13
|
return 0;
|
|
14
14
|
default:
|
|
15
|
-
return console.warn(
|
|
15
|
+
return console.warn(
|
|
16
|
+
`Invalid lint severity option '${l}'. Must be one of: 'warning', 'error', 'skip'. Defaulting to 'warning'.`
|
|
17
|
+
), 1;
|
|
16
18
|
}
|
|
17
19
|
}
|
|
18
20
|
function z({
|
|
@@ -105,7 +107,13 @@ function g(l, e, t) {
|
|
|
105
107
|
return t;
|
|
106
108
|
}
|
|
107
109
|
function x(l, e, t) {
|
|
108
|
-
const r = Object.keys(l.props ?? {}).filter(
|
|
110
|
+
const r = Object.keys(l.props ?? {}).filter(
|
|
111
|
+
(a) => !e.getAttr(a)
|
|
112
|
+
), n = Object.keys(l.events ?? {}).filter(
|
|
113
|
+
(a) => !e.getEvent(a)
|
|
114
|
+
), s = Object.keys(l.api ?? {}).filter(
|
|
115
|
+
(a) => !e.getApi(a)
|
|
116
|
+
);
|
|
109
117
|
r.push(...n), r.push(...s);
|
|
110
118
|
for (const a of r)
|
|
111
119
|
t.push(S(l, a));
|
package/dist/lib/xmlui.d.ts
CHANGED
|
@@ -329,7 +329,6 @@ declare interface ComponentDefCore {
|
|
|
329
329
|
type: string;
|
|
330
330
|
uid?: string;
|
|
331
331
|
testId?: string;
|
|
332
|
-
namespaces?: Record<string, string>;
|
|
333
332
|
vars?: Record<string, any>;
|
|
334
333
|
children?: ComponentDef[];
|
|
335
334
|
slots?: Record<string, ComponentDef[]>;
|
|
@@ -880,7 +879,7 @@ declare interface NavHierarchyNode {
|
|
|
880
879
|
lastLink?: boolean;
|
|
881
880
|
}
|
|
882
881
|
|
|
883
|
-
export declare function NestedApp({ api, app, components, config, activeTheme, activeTone, title, height, allowPlaygroundPopup, popOutUrl, withFrame, style, refVersion, }: NestedAppProps): JSX_2.Element;
|
|
882
|
+
export declare function NestedApp({ api, app, components, config, activeTheme, activeTone, title, height, allowPlaygroundPopup, popOutUrl, withFrame, noHeader, style, refVersion, }: NestedAppProps): JSX_2.Element;
|
|
884
883
|
|
|
885
884
|
declare type NestedAppProps = {
|
|
886
885
|
api?: any;
|
|
@@ -894,6 +893,7 @@ declare type NestedAppProps = {
|
|
|
894
893
|
allowPlaygroundPopup?: boolean;
|
|
895
894
|
popOutUrl?: string;
|
|
896
895
|
withFrame?: boolean;
|
|
896
|
+
noHeader?: boolean;
|
|
897
897
|
style?: CSSProperties;
|
|
898
898
|
splitView?: boolean;
|
|
899
899
|
refVersion?: number;
|
|
@@ -1158,7 +1158,7 @@ export declare const Stack: ForwardRefExoticComponent<Props_2 & RefAttributes<an
|
|
|
1158
1158
|
* representation); ApiInterceptor can emulate some backend functionality
|
|
1159
1159
|
* running in the browser.
|
|
1160
1160
|
*/
|
|
1161
|
-
export declare function StandaloneApp({ appDef, decorateComponentsWithTestId, debugEnabled,
|
|
1161
|
+
export declare function StandaloneApp({ appDef, decorateComponentsWithTestId, debugEnabled, runtime, extensionManager, }: StandaloneAppProps): JSX_2.Element;
|
|
1162
1162
|
|
|
1163
1163
|
export declare type StandaloneAppDescription = {
|
|
1164
1164
|
name?: string;
|
|
@@ -1181,7 +1181,6 @@ declare type StandaloneAppProps = {
|
|
|
1181
1181
|
debugEnabled?: boolean;
|
|
1182
1182
|
runtime?: any;
|
|
1183
1183
|
extensionManager?: StandaloneExtensionManager;
|
|
1184
|
-
waitForApiInterceptor?: boolean;
|
|
1185
1184
|
};
|
|
1186
1185
|
|
|
1187
1186
|
/**
|
package/dist/lib/xmlui.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { y as e, A as t, B as o, E as r, I as n, L as p, H as u, N as i, z as l, i as C, h as d, S as m, b as x, k as T, l as c, D as S, F as A, G as g, V as h, C as v, c as B, e as I, f as L, w as b, j as k, p as y, s as E, t as M, K as V, n as f, q as H, M as N, v as R, J as D, u as U, x as X } from "./index-
|
|
2
|
-
import { X as q } from "./xmlui-serializer-
|
|
1
|
+
import { y as e, A as t, B as o, E as r, I as n, L as p, H as u, N as i, z as l, i as C, h as d, S as m, b as x, k as T, l as c, D as S, F as A, G as g, V as h, C as v, c as B, e as I, f as L, w as b, j as k, p as y, s as E, t as M, K as V, n as f, q as H, M as N, v as R, J as D, u as U, x as X } from "./index-DQYBJR26.mjs";
|
|
2
|
+
import { X as q } from "./xmlui-serializer-jEIItW8v.mjs";
|
|
3
3
|
export {
|
|
4
4
|
e as ApiInterceptorProvider,
|
|
5
5
|
t as AppRoot,
|
package/dist/metadata/{apiInterceptorWorker-8ismUE1H.mjs → apiInterceptorWorker-C1cI935F.mjs}
RENAMED
|
@@ -7,7 +7,7 @@ var F = (e, a, o) => Go(e, typeof a != "symbol" ? a + "" : a, o), ka = (e, a, o)
|
|
|
7
7
|
var ge = (e, a, o) => (ka(e, a, "read from private field"), o ? o.call(e) : a.get(e)), _e = (e, a, o) => a.has(e) ? Wa("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(e) : a.set(e, o), fa = (e, a, o, t) => (ka(e, a, "write to private field"), t ? t.call(e, o) : a.set(e, o), o), ze = (e, a, o) => (ka(e, a, "access private method"), o);
|
|
8
8
|
import { delay as Ho, HttpResponse as Be, http as Vo } from "msw";
|
|
9
9
|
import { isArray as co, isObject as lo, mapValues as Jo } from "lodash-es";
|
|
10
|
-
import { r as Xo, g as Ko, d as Yo, m as Qo, a as Zo, o as ba, T as et } from "./collectedComponentMetadata-
|
|
10
|
+
import { r as Xo, g as Ko, d as Yo, m as Qo, a as Zo, o as ba, T as et } from "./collectedComponentMetadata-CEyXwr66.mjs";
|
|
11
11
|
import Ga from "dexie";
|
|
12
12
|
var at = /(%?)(%([sdijo]))/g;
|
|
13
13
|
function ot(e, a) {
|