x-runtime-lib 0.5.19 → 0.5.20

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.
@@ -1,13 +1,14 @@
1
1
  import { BaseProps } from '../../../../types';
2
2
  declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
3
4
  slots: {
4
5
  default?(_: {}): any;
5
6
  };
6
7
  refs: {};
7
- attrs: Partial<{}>;
8
+ rootEl: HTMLDivElement;
8
9
  };
9
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
- declare const __VLS_component: import("vue").DefineComponent<BaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BaseProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_component: import("vue").DefineComponent<BaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BaseProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
11
12
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
13
  export default _default;
13
14
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,10 +1,11 @@
1
1
  import { BaseProps } from '../../../../types';
2
2
  declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
3
4
  slots: {
4
5
  default?(_: {}): any;
5
6
  };
6
7
  refs: {};
7
- attrs: Partial<{}>;
8
+ rootEl: any;
8
9
  };
9
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
11
  declare const __VLS_component: import("vue").DefineComponent<BaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BaseProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var Ta = Object.defineProperty;
2
2
  var Na = (n, o, c) => o in n ? Ta(n, o, { enumerable: !0, configurable: !0, writable: !0, value: c }) : n[o] = c;
3
3
  var Wt = (n, o, c) => Na(n, typeof o != "symbol" ? o + "" : o, c);
4
- import { provide as _e, inject as be, readonly as Et, isReactive as qn, defineComponent as ne, computed as N, resolveComponent as Ne, openBlock as H, createBlock as fe, unref as De, createElementBlock as Ue, createVNode as q, normalizeStyle as Sa, renderSlot as Zn, onUnmounted as fr, watch as xa, h as J, createSlots as qt, renderList as wa, withCtx as te, onBeforeMount as Pa, isRef as Ca, createCommentVNode as ka } from "vue";
4
+ import { provide as me, inject as _e, readonly as Et, isReactive as qn, defineComponent as ne, computed as N, resolveComponent as Ne, openBlock as H, createBlock as fe, unref as De, createElementBlock as Ue, createVNode as q, normalizeStyle as Sa, renderSlot as Zn, onUnmounted as fr, watch as xa, h as J, createSlots as qt, renderList as wa, withCtx as te, onBeforeMount as Pa, isRef as Ca, createCommentVNode as ka } from "vue";
5
5
  import { useI18n as Qn } from "vue-i18n";
6
6
  import { eventBus as Le, messageInfo as Aa, messageSuccess as Ia, messageWarning as Da, messageError as La, openConfirmDlg as Ma, openPromptDlg as Fa, useViewStack as Ua } from "x-essential-lib";
7
7
  const fn = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
@@ -294,18 +294,18 @@ function Ru(n, o) {
294
294
  var c = this.__data__;
295
295
  return this.size += this.has(n) ? 0 : 1, c[n] = Qe && o === void 0 ? Eu : o, this;
296
296
  }
297
- function Te(n) {
297
+ function Oe(n) {
298
298
  var o = -1, c = n == null ? 0 : n.length;
299
299
  for (this.clear(); ++o < c; ) {
300
300
  var v = n[o];
301
301
  this.set(v[0], v[1]);
302
302
  }
303
303
  }
304
- Te.prototype.clear = pu;
305
- Te.prototype.delete = du;
306
- Te.prototype.get = mu;
307
- Te.prototype.has = gu;
308
- Te.prototype.set = Ru;
304
+ Oe.prototype.clear = pu;
305
+ Oe.prototype.delete = du;
306
+ Oe.prototype.get = mu;
307
+ Oe.prototype.has = gu;
308
+ Oe.prototype.set = Ru;
309
309
  function Ou() {
310
310
  this.__data__ = [], this.size = 0;
311
311
  }
@@ -349,9 +349,9 @@ pe.prototype.set = Pu;
349
349
  var et = xe(ie, "Map");
350
350
  function Cu() {
351
351
  this.size = 0, this.__data__ = {
352
- hash: new Te(),
352
+ hash: new Oe(),
353
353
  map: new (et || pe)(),
354
- string: new Te()
354
+ string: new Oe()
355
355
  };
356
356
  }
357
357
  function ku(n) {
@@ -661,7 +661,7 @@ function yl(n, o, c, v, _) {
661
661
  console.error(`spawnNode [ref] element not found in pkg, ${E}`);
662
662
  return;
663
663
  }
664
- const i = me[t];
664
+ const i = Te[t];
665
665
  if (!i) {
666
666
  console.error(`spawnNode [ref] element not found in global, ${E}`);
667
667
  return;
@@ -680,7 +680,7 @@ function yl(n, o, c, v, _) {
680
680
  console.error(`spawnNode [key] element not found in pkg, ${E}`);
681
681
  return;
682
682
  }
683
- const e = me[t];
683
+ const e = Te[t];
684
684
  if (!e) {
685
685
  console.error(`spawnNode [key] element not found in global, ${E}`);
686
686
  return;
@@ -727,52 +727,52 @@ function Rc(n) {
727
727
  }
728
728
  const Ti = "runtimeEnv", Ni = "runtimeMode", Si = "runtimeDevice", xi = "runtimeDark", wi = "runtimeType", Pi = "runtimeData", Ci = "runtimeDepends", ki = "runtimeInterpreter";
729
729
  function Oc(n) {
730
- _e(Ti, n);
730
+ me(Ti, n);
731
731
  }
732
732
  function Ai() {
733
- return be(Ti);
733
+ return _e(Ti);
734
734
  }
735
735
  function Tc(n) {
736
- _e(Ni, n);
736
+ me(Ni, n);
737
737
  }
738
738
  function de() {
739
- return be(Ni);
739
+ return _e(Ni);
740
740
  }
741
741
  function Nc(n) {
742
- _e(Si, Et(n));
742
+ me(Si, Et(n));
743
743
  }
744
744
  function Ii() {
745
- return be(Si);
745
+ return _e(Si);
746
746
  }
747
747
  function Sc(n) {
748
- _e(xi, Et(n));
748
+ me(xi, Et(n));
749
749
  }
750
750
  function $e() {
751
- return be(xi);
751
+ return _e(xi);
752
752
  }
753
753
  function xc(n) {
754
- _e(wi, n);
754
+ me(wi, n);
755
755
  }
756
756
  function Rr() {
757
- return be(wi);
757
+ return _e(wi);
758
758
  }
759
759
  function wc(n) {
760
- console.assert(qn(n)), _e(Pi, Et(n));
760
+ console.assert(qn(n)), me(Pi, Et(n));
761
761
  }
762
762
  function Or() {
763
- return be(Pi);
763
+ return _e(Pi);
764
764
  }
765
765
  function Pc(n) {
766
- console.assert(qn(n)), _e(Ci, Et(n));
766
+ console.assert(qn(n)), me(Ci, Et(n));
767
767
  }
768
768
  function Di() {
769
- return be(Ci);
769
+ return _e(Ci);
770
770
  }
771
771
  function Li(n) {
772
- _e(ki, n);
772
+ me(ki, n);
773
773
  }
774
774
  function _l() {
775
- return be(ki);
775
+ return _e(ki);
776
776
  }
777
777
  const bl = /* @__PURE__ */ ne({
778
778
  __name: "index",
@@ -4074,8 +4074,8 @@ const Dl = {}, Ll = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4074
4074
  } else if (u.nativeFunc)
4075
4075
  e.scope.strict || (e.funcThis_ = this.boxThis_(e.funcThis_)), e.value = u.nativeFunc.apply(e.funcThis_, e.arguments_);
4076
4076
  else if (u.asyncFunc) {
4077
- var W = this, Ve = function(ge) {
4078
- e.value = ge, W.paused_ = !1;
4077
+ var W = this, Ve = function(be) {
4078
+ e.value = be, W.paused_ = !1;
4079
4079
  }, Q = u.asyncFunc.length - 1, we = e.arguments_.concat(
4080
4080
  new Array(Q)
4081
4081
  ).slice(0, Q);
@@ -4563,7 +4563,7 @@ const Dl = {}, Ll = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4563
4563
  break;
4564
4564
  }
4565
4565
  return { line: m, column: d - b };
4566
- }, a = 0, p = 0, h = 0, g, S, T, x, A, L, W, Ve = 0, Q = 0, we, ge, B, K;
4566
+ }, a = 0, p = 0, h = 0, g, S, T, x, A, L, W, Ve = 0, Q = 0, we, be, B, K;
4567
4567
  function I(f, d) {
4568
4568
  var m = l(t, f);
4569
4569
  d += " (" + m.line + ":" + m.column + ")";
@@ -4600,7 +4600,7 @@ const Dl = {}, Ll = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4600
4600
  typeof: { keyword: "typeof", prefix: !0, beforeExpr: !0 },
4601
4601
  void: { keyword: "void", prefix: !0, beforeExpr: !0 },
4602
4602
  delete: { keyword: "delete", prefix: !0, beforeExpr: !0 }
4603
- }, It = { type: "[", beforeExpr: !0 }, Dt = { type: "]" }, Ge = { type: "{", beforeExpr: !0 }, Ce = { type: "}" }, oe = { type: "(", beforeExpr: !0 }, re = { type: ")" }, he = { type: ",", beforeExpr: !0 }, ue = { type: ";", beforeExpr: !0 }, Ye = { type: ":", beforeExpr: !0 }, Yr = { type: "." }, zr = { type: "?", beforeExpr: !0 }, Xr = { binop: 10, beforeExpr: !0 }, Wr = { isAssign: !0, beforeExpr: !0 }, Ee = { isAssign: !0, beforeExpr: !0 }, Gi = { postfix: !0, prefix: !0, isUpdate: !0 }, Jr = { prefix: !0, beforeExpr: !0 }, Hr = { binop: 1, beforeExpr: !0 }, Kr = { binop: 2, beforeExpr: !0 }, Yi = { binop: 3, beforeExpr: !0 }, zi = { binop: 4, beforeExpr: !0 }, Xi = { binop: 5, beforeExpr: !0 }, Wi = { binop: 6, beforeExpr: !0 }, Ji = { binop: 7, beforeExpr: !0 }, Hi = { binop: 8, beforeExpr: !0 }, Ki = { binop: 9, prefix: !0, beforeExpr: !0 }, qi = { binop: 10, beforeExpr: !0 };
4603
+ }, It = { type: "[", beforeExpr: !0 }, Dt = { type: "]" }, Ge = { type: "{", beforeExpr: !0 }, Ce = { type: "}" }, oe = { type: "(", beforeExpr: !0 }, re = { type: ")" }, he = { type: ",", beforeExpr: !0 }, ue = { type: ";", beforeExpr: !0 }, Ye = { type: ":", beforeExpr: !0 }, Yr = { type: "." }, zr = { type: "?", beforeExpr: !0 }, Xr = { binop: 10, beforeExpr: !0 }, Wr = { isAssign: !0, beforeExpr: !0 }, ge = { isAssign: !0, beforeExpr: !0 }, Gi = { postfix: !0, prefix: !0, isUpdate: !0 }, Jr = { prefix: !0, beforeExpr: !0 }, Hr = { binop: 1, beforeExpr: !0 }, Kr = { binop: 2, beforeExpr: !0 }, Yi = { binop: 3, beforeExpr: !0 }, zi = { binop: 4, beforeExpr: !0 }, Xi = { binop: 5, beforeExpr: !0 }, Wi = { binop: 6, beforeExpr: !0 }, Ji = { binop: 7, beforeExpr: !0 }, Hi = { binop: 8, beforeExpr: !0 }, Ki = { binop: 9, prefix: !0, beforeExpr: !0 }, qi = { binop: 10, beforeExpr: !0 };
4604
4604
  function ot(f) {
4605
4605
  for (var d = f.split(" "), m = /* @__PURE__ */ Object.create(null), b = 0; b < d.length; b++)
4606
4606
  m[d[b]] = !0;
@@ -4613,17 +4613,17 @@ const Dl = {}, Ll = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4613
4613
  }, en = function(f) {
4614
4614
  return f < 48 ? f === 36 : f < 58 ? !0 : f < 65 ? !1 : f < 91 ? !0 : f < 97 ? f === 95 : f < 123 ? !0 : f >= 170 && ra.test(String.fromCharCode(f));
4615
4615
  };
4616
- function Re() {
4616
+ function Ee() {
4617
4617
  this.line = L, this.column = a - W;
4618
4618
  }
4619
4619
  function na() {
4620
4620
  L = 1, a = W = 0, A = !0, ze();
4621
4621
  }
4622
4622
  function V(f, d) {
4623
- h = a, r.locations && (S = new Re()), T = f, ze(), x = d, A = f.beforeExpr;
4623
+ h = a, r.locations && (S = new Ee()), T = f, ze(), x = d, A = f.beforeExpr;
4624
4624
  }
4625
4625
  function ia() {
4626
- var f = r.onComment && r.locations && new Re(), d = a, m = t.indexOf("*/", a += 2);
4626
+ var f = r.onComment && r.locations && new Ee(), d = a, m = t.indexOf("*/", a += 2);
4627
4627
  if (m === -1 && I(a - 2, "Unterminated comment"), a = m + 2, r.locations) {
4628
4628
  lt.lastIndex = d;
4629
4629
  for (var b; (b = lt.exec(t)) && b.index < a; )
@@ -4635,11 +4635,11 @@ const Dl = {}, Ll = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4635
4635
  d,
4636
4636
  a,
4637
4637
  f,
4638
- r.locations && new Re()
4638
+ r.locations && new Ee()
4639
4639
  );
4640
4640
  }
4641
4641
  function Lt() {
4642
- for (var f = a, d = r.onComment && r.locations && new Re(), m = t.charCodeAt(a += 2); a < e && m !== 10 && m !== 13 && m !== 8232 && m !== 8233; )
4642
+ for (var f = a, d = r.onComment && r.locations && new Ee(), m = t.charCodeAt(a += 2); a < e && m !== 10 && m !== 13 && m !== 8232 && m !== 8233; )
4643
4643
  ++a, m = t.charCodeAt(a);
4644
4644
  r.onComment && r.onComment(
4645
4645
  !1,
@@ -4647,7 +4647,7 @@ const Dl = {}, Ll = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4647
4647
  f,
4648
4648
  a,
4649
4649
  d,
4650
- r.locations && new Re()
4650
+ r.locations && new Ee()
4651
4651
  );
4652
4652
  }
4653
4653
  function ze() {
@@ -4684,19 +4684,19 @@ const Dl = {}, Ll = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4684
4684
  }
4685
4685
  function oa() {
4686
4686
  var f = t.charCodeAt(a + 1);
4687
- A ? (++a, tn()) : f === 61 ? G(Ee, 2) : G(Xr, 1);
4687
+ A ? (++a, tn()) : f === 61 ? G(ge, 2) : G(Xr, 1);
4688
4688
  }
4689
4689
  function ua() {
4690
4690
  var f = t.charCodeAt(a + 1);
4691
- f === 61 ? G(Ee, 2) : G(qi, 1);
4691
+ f === 61 ? G(ge, 2) : G(qi, 1);
4692
4692
  }
4693
4693
  function sa(f) {
4694
4694
  var d = t.charCodeAt(a + 1);
4695
- d === f ? G(f === 124 ? Hr : Kr, 2) : d === 61 ? G(Ee, 2) : G(f === 124 ? Yi : Xi, 1);
4695
+ d === f ? G(f === 124 ? Hr : Kr, 2) : d === 61 ? G(ge, 2) : G(f === 124 ? Yi : Xi, 1);
4696
4696
  }
4697
4697
  function la() {
4698
4698
  var f = t.charCodeAt(a + 1);
4699
- f === 61 ? G(Ee, 2) : G(zi, 1);
4699
+ f === 61 ? G(ge, 2) : G(zi, 1);
4700
4700
  }
4701
4701
  function ca(f) {
4702
4702
  var d = t.charCodeAt(a + 1);
@@ -4706,12 +4706,12 @@ const Dl = {}, Ll = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4706
4706
  return;
4707
4707
  }
4708
4708
  G(Gi, 2);
4709
- } else d === 61 ? G(Ee, 2) : G(Ki, 1);
4709
+ } else d === 61 ? G(ge, 2) : G(Ki, 1);
4710
4710
  }
4711
4711
  function fa(f) {
4712
4712
  var d = t.charCodeAt(a + 1), m = 1;
4713
4713
  if (d === f) {
4714
- m = f === 62 && t.charCodeAt(a + 2) === 62 ? 3 : 2, t.charCodeAt(a + m) === 61 ? G(Ee, m + 1) : G(Hi, m);
4714
+ m = f === 62 && t.charCodeAt(a + 2) === 62 ? 3 : 2, t.charCodeAt(a + m) === 61 ? G(ge, m + 1) : G(Hi, m);
4715
4715
  return;
4716
4716
  }
4717
4717
  if (d === 33 && f === 60 && t.charCodeAt(a + 2) === 45 && t.charCodeAt(a + 3) === 45) {
@@ -4789,7 +4789,7 @@ const Dl = {}, Ll = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4789
4789
  return !1;
4790
4790
  }
4791
4791
  function ke(f) {
4792
- if (f ? a = p + 1 : p = a, r.locations && (g = new Re()), f) return tn();
4792
+ if (f ? a = p + 1 : p = a, r.locations && (g = new Ee()), f) return tn();
4793
4793
  if (a >= e) return V(St);
4794
4794
  var d = t.charCodeAt(a);
4795
4795
  if (ct(d) || d === 92)
@@ -4979,7 +4979,7 @@ const Dl = {}, Ll = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4979
4979
  function pt() {
4980
4980
  return !r.strictSemicolons && (T === St || T === Ce || st.test(t.slice(Q, p)));
4981
4981
  }
4982
- function Oe() {
4982
+ function Re() {
4983
4983
  !j(ue) && !pt() && se();
4984
4984
  }
4985
4985
  function $(f) {
@@ -4992,7 +4992,7 @@ const Dl = {}, Ll = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4992
4992
  f.type !== "Identifier" && f.type !== "MemberExpression" && I(f.start, "Assigning to rvalue"), K && f.type === "Identifier" && ut(f.name) && I(f.start, "Assigning to " + f.name + " in strict mode");
4993
4993
  }
4994
4994
  function ya(f) {
4995
- Ve = Q = a, r.locations && (we = new Re()), ge = K = !1, B = [], ke();
4995
+ Ve = Q = a, r.locations && (we = new Ee()), be = K = !1, B = [], ke();
4996
4996
  var d = f || z(), m = !0;
4997
4997
  for (f || (d.body = []); T !== St; ) {
4998
4998
  var b = ee();
@@ -5002,14 +5002,14 @@ const Dl = {}, Ll = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
5002
5002
  }
5003
5003
  var Ut = { kind: "loop" }, ma = { kind: "switch" };
5004
5004
  function ee() {
5005
- (T === Xr || T === Ee && x === "/=") && ke(!0);
5005
+ (T === Xr || T === ge && x === "/=") && ke(!0);
5006
5006
  var f = T, d = z();
5007
5007
  switch (f) {
5008
5008
  case xt:
5009
5009
  case xr:
5010
5010
  D();
5011
5011
  var m = f === xt;
5012
- j(ue) || pt() ? d.label = null : T !== Pe ? se() : (d.label = ye(), Oe());
5012
+ j(ue) || pt() ? d.label = null : T !== Pe ? se() : (d.label = ye(), Re());
5013
5013
  for (var b = 0; b < B.length; ++b) {
5014
5014
  var C = B[b];
5015
5015
  if ((d.label === null || C.name === d.label.name) && (C.kind !== null && (m || C.kind === "loop") || d.label && m))
@@ -5017,9 +5017,9 @@ const Dl = {}, Ll = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
5017
5017
  }
5018
5018
  return b === B.length && I(d.start, "Unsyntactic " + f.keyword), P(d, m ? "BreakStatement" : "ContinueStatement");
5019
5019
  case wr:
5020
- return D(), Oe(), P(d, "DebuggerStatement");
5020
+ return D(), Re(), P(d, "DebuggerStatement");
5021
5021
  case Cr:
5022
- return D(), B.push(Ut), d.body = ee(), B.pop(), $(At), d.test = We(), Oe(), P(d, "DoWhileStatement");
5022
+ return D(), B.push(Ut), d.body = ee(), B.pop(), $(At), d.test = We(), Re(), P(d, "DoWhileStatement");
5023
5023
  case Ir:
5024
5024
  if (D(), B.push(Ut), $(oe), T === ue) return jt(d, null);
5025
5025
  if (T === kt) {
@@ -5033,7 +5033,7 @@ const Dl = {}, Ll = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
5033
5033
  case Dr:
5034
5034
  return D(), d.test = We(), d.consequent = ee(), d.alternate = j(kr) ? ee() : null, P(d, "IfStatement");
5035
5035
  case Lr:
5036
- return !ge && !r.allowReturnOutsideFunction && I(p, "'return' outside of function"), D(), j(ue) || pt() ? d.argument = null : (d.argument = X(), Oe()), P(d, "ReturnStatement");
5036
+ return !be && !r.allowReturnOutsideFunction && I(p, "'return' outside of function"), D(), j(ue) || pt() ? d.argument = null : (d.argument = X(), Re()), P(d, "ReturnStatement");
5037
5037
  case Ct:
5038
5038
  D(), d.discriminant = We(), d.cases = [], $(Ge), B.push(ma);
5039
5039
  for (var k, U; T !== Ce; )
@@ -5044,7 +5044,7 @@ const Dl = {}, Ll = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
5044
5044
  k || se(), k.consequent.push(ee());
5045
5045
  return k && P(k, "SwitchCase"), D(), B.pop(), P(d, "SwitchStatement");
5046
5046
  case Mr:
5047
- return D(), st.test(t.slice(Q, p)) && I(Q, "Illegal newline after throw"), d.argument = X(), Oe(), P(d, "ThrowStatement");
5047
+ return D(), st.test(t.slice(Q, p)) && I(Q, "Illegal newline after throw"), d.argument = X(), Re(), P(d, "ThrowStatement");
5048
5048
  case Fr:
5049
5049
  if (D(), d.block = Je(), d.handler = null, T === Sr) {
5050
5050
  var Ie = z();
@@ -5052,7 +5052,7 @@ const Dl = {}, Ll = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
5052
5052
  }
5053
5053
  return d.finalizer = j(Ar) ? Je() : null, !d.handler && !d.finalizer && I(d.start, "Missing catch or finally clause"), P(d, "TryStatement");
5054
5054
  case kt:
5055
- return D(), ln(d), Oe(), P(d, "VariableDeclaration");
5055
+ return D(), ln(d), Re(), P(d, "VariableDeclaration");
5056
5056
  case At:
5057
5057
  return D(), d.test = We(), B.push(Ut), d.body = ee(), B.pop(), P(d, "WhileStatement");
5058
5058
  case Ur:
@@ -5069,7 +5069,7 @@ const Dl = {}, Ll = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
5069
5069
  var Oa = T.isLoop ? "loop" : T === Ct ? "switch" : null;
5070
5070
  return B.push({ name: Xt, kind: Oa }), d.body = ee(), B.pop(), d.label = ht, P(d, "LabeledStatement");
5071
5071
  } else
5072
- return d.expression = ht, Oe(), P(d, "ExpressionStatement");
5072
+ return d.expression = ht, Re(), P(d, "ExpressionStatement");
5073
5073
  }
5074
5074
  }
5075
5075
  function We() {
@@ -5218,8 +5218,8 @@ const Dl = {}, Ll = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
5218
5218
  var m = !0;
5219
5219
  for ($(oe); !j(re); )
5220
5220
  m ? m = !1 : $(he), f.params.push(ye());
5221
- var b = ge, C = B;
5222
- if (ge = !0, B = [], f.body = Je(!0), ge = b, B = C, K || f.body.body.length && Ft(f.body.body[0]))
5221
+ var b = be, C = B;
5222
+ if (be = !0, B = [], f.body = Je(!0), be = b, B = C, K || f.body.body.length && Ft(f.body.body[0]))
5223
5223
  for (var w = f.id ? -1 : 0; w < f.params.length; ++w) {
5224
5224
  var k = w < 0 ? f.id : f.params[w];
5225
5225
  if ((qr(k.name) || ut(k.name)) && I(k.start, "Defining '" + k.name + "' in strict mode"), w >= 0)
@@ -5657,7 +5657,7 @@ const le = /* @__PURE__ */ ne({
5657
5657
  { deep: !0, immediate: !0 }
5658
5658
  );
5659
5659
  function e(a) {
5660
- const p = Tr[y.version].refKey, h = me[p];
5660
+ const p = Tr[y.version].refKey, h = Te[p];
5661
5661
  return h ? J(h.comp, {
5662
5662
  refContext: {
5663
5663
  parent: c.refContext,
@@ -5668,7 +5668,7 @@ const le = /* @__PURE__ */ ne({
5668
5668
  }
5669
5669
  function i(a) {
5670
5670
  var g;
5671
- const p = me[a.basic.key];
5671
+ const p = Te[a.basic.key];
5672
5672
  if (!p)
5673
5673
  return console.assert(!1, `element not found key=${a.basic.key}`), J("div", `element not found key=${a.basic.key}`);
5674
5674
  const h = [];
@@ -6033,8 +6033,13 @@ const Zl = ["id"], Ql = /* @__PURE__ */ ne({
6033
6033
  }, tc = {
6034
6034
  key: ur,
6035
6035
  name: "x-runtime-lib.globality",
6036
- comp: "",
6037
- slots: [],
6036
+ comp: null,
6037
+ slots: [
6038
+ {
6039
+ key: "default",
6040
+ name: "x-runtime-lib.default"
6041
+ }
6042
+ ],
6038
6043
  events: [
6039
6044
  {
6040
6045
  key: "startup",
@@ -6202,7 +6207,7 @@ const Zl = ["id"], Ql = /* @__PURE__ */ ne({
6202
6207
  return y === "page" ? g === "common" ? e(h) : console.assert(!1) : y === "comp" && g === "common" ? e(h) : console.assert(!1), h;
6203
6208
  });
6204
6209
  function s(h) {
6205
- const g = Tr[O.version].refKey, S = me[g];
6210
+ const g = Tr[O.version].refKey, S = Te[g];
6206
6211
  return S ? J(S.comp, {
6207
6212
  refContext: {
6208
6213
  parent: c.refContext,
@@ -6213,7 +6218,7 @@ const Zl = ["id"], Ql = /* @__PURE__ */ ne({
6213
6218
  }
6214
6219
  function u(h) {
6215
6220
  var T;
6216
- const g = me[h.basic.key];
6221
+ const g = Te[h.basic.key];
6217
6222
  if (!g)
6218
6223
  return console.assert(!1, `element not found key=${h.basic.key}`), J("div", `element not found key=${h.basic.key}`);
6219
6224
  const S = [];
@@ -6640,7 +6645,7 @@ const Zl = ["id"], Ql = /* @__PURE__ */ ne({
6640
6645
  ]
6641
6646
  }, Tr = {
6642
6647
  v1: dc
6643
- }, me = {}, hc = {
6648
+ }, Te = {}, hc = {
6644
6649
  key: "add",
6645
6650
  name: "METHOD_ADD",
6646
6651
  inputs: [],
@@ -6651,7 +6656,7 @@ const Zl = ["id"], Ql = /* @__PURE__ */ ne({
6651
6656
  }
6652
6657
  ]
6653
6658
  }, ae = (n) => {
6654
- me[n.key] && console.assert(!1, `element duplicate key=${n.key}`), n.slots.length > 0 && n.methods.unshift(hc), me[n.key] = n;
6659
+ n.slots.some((o) => o.key === "default") && n.methods.unshift(hc), Te[n.key] = n;
6655
6660
  };
6656
6661
  ae(El);
6657
6662
  ae(Tl);
@@ -6682,7 +6687,7 @@ async function Cc(n) {
6682
6687
  export {
6683
6688
  ml as duplicateNode,
6684
6689
  Rc as duplicateNodes,
6685
- me as elements,
6690
+ Te as elements,
6686
6691
  ei as genId,
6687
6692
  Ec as getNode,
6688
6693
  Dn as getPropDefault,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-runtime-lib",
3
3
  "private": false,
4
- "version": "0.5.19",
4
+ "version": "0.5.20",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -48,6 +48,6 @@
48
48
  "vite-plugin-css-injected-by-js": "^3.5.2",
49
49
  "vite-plugin-vuetify": "^2.0.4",
50
50
  "vue-router": "^4.4.3",
51
- "vue-tsc": "^2.1.6"
51
+ "vue-tsc": "^2.2.0"
52
52
  }
53
53
  }