xmlui 0.9.63 → 0.9.65

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.
Files changed (44) hide show
  1. package/dist/lib/{apiInterceptorWorker-DYPN1T0q.mjs → apiInterceptorWorker-COjte0L0.mjs} +1 -1
  2. package/dist/lib/{index-BcEgj7aN.mjs → index-E-Ytu3U3.mjs} +27231 -16682
  3. package/dist/lib/index.css +1 -1
  4. package/dist/lib/language-server-web-worker.mjs +1 -1
  5. package/dist/lib/language-server.mjs +1 -1
  6. package/dist/lib/{metadata-utils-DJM8orNd.mjs → metadata-utils-CeJek2aP.mjs} +1 -1
  7. package/dist/lib/{server-common-D0VA8gIv.mjs → server-common-Dtnes4sR.mjs} +79 -54
  8. package/dist/lib/{transform-BdB0APqE.mjs → transform--lQ60cbR.mjs} +61 -88
  9. package/dist/lib/xmlui-parser.d.ts +50 -2
  10. package/dist/lib/xmlui-parser.mjs +2 -2
  11. package/dist/lib/{xmlui-serializer-COAfRndx.mjs → xmlui-serializer-B1QY_Hg9.mjs} +11 -3
  12. package/dist/lib/xmlui.d.ts +52 -3
  13. package/dist/lib/xmlui.mjs +2 -2
  14. package/dist/metadata/{apiInterceptorWorker-PHZNbofw.mjs → apiInterceptorWorker-BK3aQR7T.mjs} +1 -1
  15. package/dist/metadata/{collectedComponentMetadata-BGIWhaXW.mjs → collectedComponentMetadata-yjl6u0V8.mjs} +25697 -16431
  16. package/dist/metadata/style.css +1 -1
  17. package/dist/metadata/xmlui-metadata.mjs +1 -1
  18. package/dist/metadata/xmlui-metadata.umd.js +149 -120
  19. package/dist/scripts/package.json +6 -1
  20. package/dist/scripts/src/components/Charts/BarChart/BarChartNative.js +6 -1
  21. package/dist/scripts/src/components/Charts/LineChart/LineChartNative.js +6 -1
  22. package/dist/scripts/src/components/CodeBlock/highlight-code.js +34 -13
  23. package/dist/scripts/src/components/ComponentProvider.js +4 -0
  24. package/dist/scripts/src/components/FormItem/FormItem.js +1 -0
  25. package/dist/scripts/src/components/FormSection/FormSection.js +42 -2
  26. package/dist/scripts/src/components/Icon/TableDeleteColumnIcon.js +7 -0
  27. package/dist/scripts/src/components/Icon/TableDeleteRowIcon.js +7 -0
  28. package/dist/scripts/src/components/Icon/TableInsertColumnIcon.js +7 -0
  29. package/dist/scripts/src/components/Icon/TableInsertRowIcon.js +7 -0
  30. package/dist/scripts/src/components/IconProvider.js +11 -0
  31. package/dist/scripts/src/components/Markdown/MarkdownNative.js +3 -3
  32. package/dist/scripts/src/components/Markdown/utils.js +13 -8
  33. package/dist/scripts/src/components/NavPanel/NavPanelNative.js +4 -0
  34. package/dist/scripts/src/components/NestedApp/AppWithCodeViewNative.js +3 -3
  35. package/dist/scripts/src/components/NestedApp/NestedAppNative.js +4 -3
  36. package/dist/scripts/src/components/NestedApp/defaultProps.js +1 -0
  37. package/dist/scripts/src/components/RadioGroup/RadioGroup.js +4 -6
  38. package/dist/scripts/src/components/TableEditor/TableEditor.js +183 -0
  39. package/dist/scripts/src/components/TableEditor/TableEditorNative.js +8 -0
  40. package/dist/scripts/src/parsers/xmlui-parser/transform.js +0 -31
  41. package/dist/standalone/xmlui-standalone.es.d.ts +52 -3
  42. package/dist/standalone/xmlui-standalone.umd.js +269 -237
  43. package/package.json +6 -1
  44. package/dist/scripts/src/components-core/theming/themes/solid.js +0 -16
@@ -1,10 +1,10 @@
1
1
  import { parseRegExpLiteral as Xe } from "@eslint-community/regexpp";
2
- const Bn = 1, Wn = 2, Un = 3, Mn = 4, yn = 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({
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: Mn,
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: yn,
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: Me,
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, M = !1, _ = this.getStartingPhaseThenReset();
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) ? (M = !0, _ = 17, u = i.Identifier) : re(h) ? (_ = 27, u = i.DecimalLiteral) : m(i.Unknown);
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, M = !0, u = i.Identifier, Je(h) || R();
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 M && (u = W.get(o) ?? (Ye(o[0]) && o[o.length - 1] !== "'" ? i.Identifier : i.Unknown)), {
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 ye {
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
- Me,
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
- Me,
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 M = this.convertToObjectDestructure(h);
1796
- M && u.push(M);
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 M = this.convertToArrayDestructure(h);
1803
- M && u.push(M);
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 M = this.parseExpr();
2500
- if (!M)
2499
+ const y = this.parseExpr();
2500
+ if (!y)
2501
2501
  return this.reportError("W001"), null;
2502
- O = M.type === ce ? M.exprs : [M];
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
- }, Mr = {
3547
+ }, yr = {
3548
3548
  code: "W002",
3549
3549
  category: 1,
3550
3550
  message: "Unterminated string literal."
3551
- }, yr = {
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: M,
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 M(k) {
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(yr, 4), O = c.Unknown;
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(Mr, 1);
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
- M();
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
- M();
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 M() {
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, y = "A" <= b[0] && b[0] <= "Z", G = P || y;
3981
- P && F($.duplAttr(b), N.pos, N.end), !T && y && F($.uppercaseAttr(b), N.pos, N.end), G || g.push({ name: b, ns: A });
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 y = !1;
4038
+ let M = !1;
4039
4039
  if (g.kind === c.StringLiteral) {
4040
4040
  const xe = g.end, Ae = v(!0);
4041
- y = Ae.kind === c.CData || Ae.kind === c.CloseNodeStart || Ae.kind === c.Script || Ae.kind === c.OpenNodeStart, o.resetTokenState(xe);
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
- y ? G = g.pos : A.length > 0 ? G = A[A.length - 1].end : I !== -1 ? G = N[I].pos : G = g.start;
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 (y)
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 y = I + a.prefixLength, G = new j(N, I, y, P);
4099
- return o.resetTokenState(y), p(), l.children.push(G), F(A, I, y), S(c.ErrorNode), a = void 0, v(g);
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 Me: {
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 ye(o);
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 = [], M = {};
4373
+ const h = [], y = {};
4374
4374
  D.filter((R) => R.type === be).forEach((R) => {
4375
4375
  const m = R;
4376
- if (M[m.id.name]) {
4376
+ if (y[m.id.name]) {
4377
4377
  V("W020", R, m.id.name);
4378
4378
  return;
4379
4379
  }
4380
- M[m.id.name] = m;
4380
+ y[m.id.name] = m;
4381
4381
  });
4382
4382
  const _ = {
4383
4383
  type: "ScriptModule",
4384
4384
  name: s,
4385
- functions: M,
4385
+ functions: y,
4386
4386
  statements: D,
4387
4387
  sources: /* @__PURE__ */ new Map()
4388
4388
  };
@@ -4543,14 +4543,7 @@ function Tt(e, n, r) {
4543
4543
  if (k === Ve)
4544
4544
  return O(f);
4545
4545
  let p = {
4546
- type: k,
4547
- debug: {
4548
- source: {
4549
- start: f.start,
4550
- end: f.end,
4551
- fileId: r
4552
- }
4553
- }
4546
+ type: k
4554
4547
  };
4555
4548
  return h(E, p, f), p;
4556
4549
  }
@@ -4558,14 +4551,7 @@ function Tt(e, n, r) {
4558
4551
  const k = sn(f, t, o);
4559
4552
  k === Ve && B("T006");
4560
4553
  let p = {
4561
- type: k,
4562
- debug: {
4563
- source: {
4564
- start: f.start,
4565
- end: f.end,
4566
- fileId: r
4567
- }
4568
- }
4554
+ type: k
4569
4555
  };
4570
4556
  return h(E, p, f), p;
4571
4557
  }
@@ -4599,32 +4585,19 @@ function Tt(e, n, r) {
4599
4585
  });
4600
4586
  let P = D(s, I);
4601
4587
  o.pop();
4602
- const y = {
4588
+ const M = {
4603
4589
  name: k.value,
4604
- component: P,
4605
- debug: {
4606
- source: {
4607
- start: E.start,
4608
- end: E.end,
4609
- fileId: r
4610
- }
4611
- }
4612
- };
4613
- S && (y.api = S), w && (P.vars = { ...P.vars, ...w }), p && (y.codeBehind = p.value), P.debug = {
4614
- source: {
4615
- start: I.start,
4616
- end: I.end,
4617
- fileId: r
4618
- }
4590
+ component: P
4619
4591
  };
4592
+ S && (M.api = S), w && (P.vars = { ...P.vars, ...w }), p && (M.codeBehind = p.value);
4620
4593
  const G = tn(E, b);
4621
- return h(s, y, G), y;
4594
+ return h(s, M, G), M;
4622
4595
  }
4623
4596
  function h(E, f, k) {
4624
4597
  var N;
4625
4598
  const p = !ne(f), S = Ee(k);
4626
4599
  if (o.push(/* @__PURE__ */ new Map()), S.forEach((T) => {
4627
- M(f, T);
4600
+ y(f, T);
4628
4601
  }), ke(k).forEach((T) => {
4629
4602
  if (T.kind === c.Script) {
4630
4603
  Ee(T).length > 0 && B("T022");
@@ -4720,7 +4693,7 @@ function Tt(e, n, r) {
4720
4693
  }
4721
4694
  }), o.pop(), !f.script || f.script.trim().length === 0)
4722
4695
  return;
4723
- const w = new ye(f.script);
4696
+ const w = new Me(f.script);
4724
4697
  try {
4725
4698
  w.parseStatements(), f.scriptCollected = Vr("Main", f.script);
4726
4699
  } catch (T) {
@@ -4729,7 +4702,7 @@ function Tt(e, n, r) {
4729
4702
  const g = ((N = f.scriptCollected) == null ? void 0 : N.moduleErrors) ?? {};
4730
4703
  Object.keys(g).length > 0 && (f.scriptError = g);
4731
4704
  }
4732
- function M(E, f) {
4705
+ function y(E, f) {
4733
4706
  const { namespace: k, startSegment: p, name: S, value: v, unsegmentedName: w } = x(f);
4734
4707
  if (k === "xmlns")
4735
4708
  return ln(o, E, w, v);
@@ -4825,7 +4798,7 @@ function Tt(e, n, r) {
4825
4798
  if (b && v.length >= 1) {
4826
4799
  if (w.length > 0)
4827
4800
  return B("T020"), null;
4828
- const P = v.map((y) => D(E, y));
4801
+ const P = v.map((M) => D(E, M));
4829
4802
  return {
4830
4803
  name: b,
4831
4804
  value: P.length === 1 ? P[0] : P
@@ -4921,20 +4894,20 @@ function Tt(e, n, r) {
4921
4894
  let g = !1, N = !1;
4922
4895
  for (let I = 0; I < f.length; ++I) {
4923
4896
  const P = f[I];
4924
- let y;
4897
+ let M;
4925
4898
  if (P.kind == c.Script) {
4926
4899
  N = !0;
4927
4900
  continue;
4928
4901
  }
4929
4902
  if (P.kind === c.ElementNode) {
4930
- y = X(P), f[I] = y;
4903
+ M = X(P), f[I] = M;
4931
4904
  continue;
4932
4905
  }
4933
4906
  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 ? y = ot(G) : y = nn(G) : y = {
4907
+ 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
4908
  kind: c.TextNode,
4936
4909
  text: G
4937
- }, f[I] = y;
4910
+ }, f[I] = M;
4938
4911
  }
4939
4912
  const T = [], b = [];
4940
4913
  let A = !1;
@@ -5033,7 +5006,7 @@ function Tt(e, n, r) {
5033
5006
  function Z(E) {
5034
5007
  if (typeof E != "string")
5035
5008
  return E;
5036
- const f = new ye(E);
5009
+ const f = new Me(E);
5037
5010
  try {
5038
5011
  return {
5039
5012
  __PARSED: !0,
@@ -5210,7 +5183,7 @@ function ln(e, n, r, t) {
5210
5183
  const s = e[e.length - 1];
5211
5184
  if (s.has(r))
5212
5185
  return B("T025", r);
5213
- s.set(r, a), n.namespaces ?? (n.namespaces = {}), n.namespaces[r] = a;
5186
+ s.set(r, a);
5214
5187
  }
5215
5188
  function ut(e, n) {
5216
5189
  e.children.length !== 2 && B("T001");
@@ -5242,7 +5215,7 @@ export {
5242
5215
  d as C,
5243
5216
  Dn as D,
5244
5217
  $e as E,
5245
- ye as F,
5218
+ Me as F,
5246
5219
  An as G,
5247
5220
  xn as H,
5248
5221
  q as I,
@@ -5286,15 +5259,15 @@ export {
5286
5259
  ue as ai,
5287
5260
  ce as aj,
5288
5261
  Ln as ak,
5289
- Me as al,
5262
+ ye as al,
5290
5263
  Ie as am,
5291
5264
  Be as an,
5292
5265
  Vr as ao,
5293
5266
  St as ap,
5294
5267
  Pe as b,
5295
- Mr as c,
5268
+ yr as c,
5296
5269
  _t as d,
5297
- yr as e,
5270
+ Mr as e,
5298
5271
  Fr as f,
5299
5272
  $r as g,
5300
5273
  Nt as h,
@@ -248,19 +248,67 @@ declare interface ComponentDef<TMd extends ComponentMetadata = ComponentMetadata
248
248
  contextVars?: Record<keyof TMd["contextVars"], string>;
249
249
  }
250
250
 
251
+ /**
252
+ * This interface represents the core properties of a component definition
253
+ * (independent of component metadata).
254
+ */
251
255
  declare interface ComponentDefCore {
256
+ /**
257
+ * The type discriminator field of the component; it defines the unique ID of the component type.
258
+ */
252
259
  type: string;
260
+ /**
261
+ * Unique identifier of a component-like object
262
+ */
253
263
  uid?: string;
264
+ /**
265
+ * An optional identifier we use for e2e tests; it does not influence the rendering of a component.
266
+ */
254
267
  testId?: string;
255
- namespaces?: Record<string, string>;
268
+ /**
269
+ * Though components manage their state internally, the app logic may require user
270
+ * state management. Components may have user *variables*, which the UI logic uses to
271
+ * manage the application state. This property holds the variables (name and value
272
+ * pairs) associated with this component definition.
273
+ */
256
274
  vars?: Record<string, any>;
275
+ /**
276
+ * Each component may have child components to constitute a hierarchy of components.
277
+ * This property holds the definition of these nested children.
278
+ */
257
279
  children?: ComponentDef[];
280
+ /**
281
+ * Components may have slots that can be filled with other components. This property
282
+ * holds the contents of the slots.
283
+ */
258
284
  slots?: Record<string, ComponentDef[]>;
285
+ /**
286
+ * This property is evaluated to a Boolean value during run time. When this value is
287
+ * `true`, the component with its children chain is rendered; otherwise, the entire
288
+ * component hierarchy is omitted from the rendered tree.
289
+ */
259
290
  when?: string | boolean;
291
+ /**
292
+ * Some components work with data obtained asynchronously. Fetching this data requires
293
+ * some state management handling the complexity (including error handling) of data
294
+ * access. A *loader* is responsible for managing this logic. This property holds the
295
+ * loaders associated with this component definition.
296
+ */
260
297
  loaders?: ComponentDef[];
298
+ /**
299
+ * Components may have functions that are used to perform some logic. This property
300
+ * holds the functions (name and function body) associated with this component
301
+ * definition.
302
+ */
261
303
  functions?: Record<string, any>;
304
+ /**
305
+ * Components managing state through variables or loaders are wrapped with containers
306
+ * responsible for this job. Just as components, containers form a hierarchy. While
307
+ * working with this hierarchy, parent components may flow state values (key and value
308
+ * pairs) to their child containers. This property holds the name of state values to
309
+ * flow down to the direct child containers.
310
+ */
262
311
  uses?: string[];
263
- debug?: Record<string, any>;
264
312
  }
265
313
 
266
314
  export declare const componentFileExtension = "xmlui";
@@ -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-BdB0APqE.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-COAfRndx.mjs";
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--lQ60cbR.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-B1QY_Hg9.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-BdB0APqE.mjs";
1
+ import { v as A, t as j } from "./transform--lQ60cbR.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(`Invalid lint severity option '${l}'. Must be one of: 'warning', 'error', 'skip'. Defaulting to 'warning'.`), 1;
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((a) => !e.getAttr(a)), n = Object.keys(l.events ?? {}).filter((a) => !e.getEvent(a)), s = Object.keys(l.api ?? {}).filter((a) => !e.getApi(a));
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));
@@ -325,19 +325,67 @@ export declare interface ComponentDef<TMd extends ComponentMetadata = ComponentM
325
325
  contextVars?: Record<keyof TMd["contextVars"], string>;
326
326
  }
327
327
 
328
+ /**
329
+ * This interface represents the core properties of a component definition
330
+ * (independent of component metadata).
331
+ */
328
332
  declare interface ComponentDefCore {
333
+ /**
334
+ * The type discriminator field of the component; it defines the unique ID of the component type.
335
+ */
329
336
  type: string;
337
+ /**
338
+ * Unique identifier of a component-like object
339
+ */
330
340
  uid?: string;
341
+ /**
342
+ * An optional identifier we use for e2e tests; it does not influence the rendering of a component.
343
+ */
331
344
  testId?: string;
332
- namespaces?: Record<string, string>;
345
+ /**
346
+ * Though components manage their state internally, the app logic may require user
347
+ * state management. Components may have user *variables*, which the UI logic uses to
348
+ * manage the application state. This property holds the variables (name and value
349
+ * pairs) associated with this component definition.
350
+ */
333
351
  vars?: Record<string, any>;
352
+ /**
353
+ * Each component may have child components to constitute a hierarchy of components.
354
+ * This property holds the definition of these nested children.
355
+ */
334
356
  children?: ComponentDef[];
357
+ /**
358
+ * Components may have slots that can be filled with other components. This property
359
+ * holds the contents of the slots.
360
+ */
335
361
  slots?: Record<string, ComponentDef[]>;
362
+ /**
363
+ * This property is evaluated to a Boolean value during run time. When this value is
364
+ * `true`, the component with its children chain is rendered; otherwise, the entire
365
+ * component hierarchy is omitted from the rendered tree.
366
+ */
336
367
  when?: string | boolean;
368
+ /**
369
+ * Some components work with data obtained asynchronously. Fetching this data requires
370
+ * some state management handling the complexity (including error handling) of data
371
+ * access. A *loader* is responsible for managing this logic. This property holds the
372
+ * loaders associated with this component definition.
373
+ */
337
374
  loaders?: ComponentDef[];
375
+ /**
376
+ * Components may have functions that are used to perform some logic. This property
377
+ * holds the functions (name and function body) associated with this component
378
+ * definition.
379
+ */
338
380
  functions?: Record<string, any>;
381
+ /**
382
+ * Components managing state through variables or loaders are wrapped with containers
383
+ * responsible for this job. Just as components, containers form a hierarchy. While
384
+ * working with this hierarchy, parent components may flow state values (key and value
385
+ * pairs) to their child containers. This property holds the name of state values to
386
+ * flow down to the direct child containers.
387
+ */
339
388
  uses?: string[];
340
- debug?: Record<string, any>;
341
389
  }
342
390
 
343
391
  declare type ComponentExtension = ComponentRendererDef | CompoundComponentDef;
@@ -880,7 +928,7 @@ declare interface NavHierarchyNode {
880
928
  lastLink?: boolean;
881
929
  }
882
930
 
883
- export declare function NestedApp({ api, app, components, config, activeTheme, activeTone, title, height, allowPlaygroundPopup, popOutUrl, withFrame, style, refVersion, }: NestedAppProps): JSX_2.Element;
931
+ export declare function NestedApp({ api, app, components, config, activeTheme, activeTone, title, height, allowPlaygroundPopup, popOutUrl, withFrame, noHeader, style, refVersion, }: NestedAppProps): JSX_2.Element;
884
932
 
885
933
  declare type NestedAppProps = {
886
934
  api?: any;
@@ -894,6 +942,7 @@ declare type NestedAppProps = {
894
942
  allowPlaygroundPopup?: boolean;
895
943
  popOutUrl?: string;
896
944
  withFrame?: boolean;
945
+ noHeader?: boolean;
897
946
  style?: CSSProperties;
898
947
  splitView?: boolean;
899
948
  refVersion?: number;
@@ -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-BcEgj7aN.mjs";
2
- import { X as q } from "./xmlui-serializer-COAfRndx.mjs";
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-E-Ytu3U3.mjs";
2
+ import { X as q } from "./xmlui-serializer-B1QY_Hg9.mjs";
3
3
  export {
4
4
  e as ApiInterceptorProvider,
5
5
  t as AppRoot,
@@ -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-BGIWhaXW.mjs";
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-yjl6u0V8.mjs";
11
11
  import Ga from "dexie";
12
12
  var at = /(%?)(%([sdijo]))/g;
13
13
  function ot(e, a) {