x-runtime-lib 0.6.56 → 0.7.0

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,2 +1,2 @@
1
- import { ZItem } from "../../../../../types";
1
+ import { ZItem } from '../../../../../types';
2
2
  export declare const thumbLabelItemsV1: ZItem[];
package/dist/index.js CHANGED
@@ -2,12 +2,11 @@ var _n = Object.defineProperty;
2
2
  var kn = (t, e, n) => e in t ? _n(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var he = (t, e, n) => kn(t, typeof e != "symbol" ? e + "" : e, n);
4
4
  import { computed as a, inject as j, provide as K, readonly as Xe, onBeforeMount as Cn, onUnmounted as se, defineComponent as T, useTemplateRef as Pt, onMounted as Wt, watch as X, nextTick as Bt, createElementBlock as R, openBlock as C, normalizeStyle as oe, ref as Q, watchEffect as Dt, createBlock as I, h as E, resolveComponent as N, withCtx as A, renderSlot as M, unref as H, createVNode as D, createSlots as _e, renderList as wn, useId as zt, isRef as Rt, createCommentVNode as Mt, withModifiers as Vn, normalizeClass as Sn, toDisplayString as $n } from "vue";
5
- import { waitUtil as Ft, eventBus as Ye, messageInfo as Tn, messageSuccess as In, messageWarning as Nn, messageError as Ht, createAxios as An, openConfirmDlg as Ln, openPromptDlg as En, useViewStack as Ot } from "x-essential-lib";
6
- import { useTheme as Pn } from "vuetify";
7
- import { c as W, u as Wn, r as jt, e as Kt, i as Bn, a as Dn, b as zn, d as Rn, f as Mn, g as Fn, h as Hn, j as On, I as jn, m as Kn } from "./vendor.k0dcepe8.js";
5
+ import { waitUtil as Ft, eventBus as Ye, messageInfo as Tn, messageSuccess as In, messageWarning as Nn, messageError as Ht, createAxios as An, globalObjects as Ln, openConfirmDlg as En, openPromptDlg as Pn, useViewStack as Ot } from "x-essential-lib";
6
+ import { useTheme as Wn } from "vuetify";
7
+ import { c as W, u as Bn, r as jt, e as Kt, i as Dn, a as zn, b as Rn, d as Mn, f as Fn, g as Hn, h as On, j as jn, I as Kn, m as Un } from "./vendor.k0dcepe8.js";
8
8
  import { useI18n as Ut } from "vue-i18n";
9
- import { getErrorMessage as Un } from "x-error-lib";
10
- import { globalState as Zn } from "x-state-lib";
9
+ import { getErrorMessage as Zn } from "x-error-lib";
11
10
  const Y = {}, qn = {
12
11
  key: "add",
13
12
  name: "METHOD_ADD",
@@ -113,7 +112,7 @@ function Yt(t) {
113
112
  return { show: e, position: n, type: o, data: l, applyYAxis: s };
114
113
  }
115
114
  function ae(t, e) {
116
- const { computedThemes: n } = Pn(), o = a(() => {
115
+ const { computedThemes: n } = Wn(), o = a(() => {
117
116
  var p;
118
117
  return (p = e.value) == null ? void 0 : p.mode;
119
118
  }), l = a(() => {
@@ -213,7 +212,7 @@ function tt(t) {
213
212
  const e = t.substring(0, t.length - 1), n = parseFloat(e);
214
213
  return !isNaN(n);
215
214
  }
216
- function br(t) {
215
+ function fr(t) {
217
216
  if (typeof t != "string" || !t.endsWith("px"))
218
217
  return;
219
218
  const e = t.substring(0, t.length - 2), n = parseFloat(e);
@@ -341,7 +340,7 @@ function Xn(t, e, n, o, l) {
341
340
  }
342
341
  }
343
342
  }
344
- function yr(t, e) {
343
+ function br(t, e) {
345
344
  function n(o) {
346
345
  if (o.basic.id === e)
347
346
  return o;
@@ -366,50 +365,50 @@ function Yn(t) {
366
365
  const n = W(t);
367
366
  return e(n), n;
368
367
  }
369
- function vr(t) {
368
+ function yr(t) {
370
369
  const e = [];
371
370
  return t.forEach((n) => {
372
371
  e.push(Yn(n));
373
372
  }), e;
374
373
  }
375
374
  const en = "runtimeEnv", tn = "runtimeMode", nn = "runtimeDevice", on = "runtimeDark", ln = "runtimeType", rn = "runtimeData", sn = "runtimeDepends", an = "runtimeSandbox";
376
- function xr(t) {
375
+ function vr(t) {
377
376
  K(en, t);
378
377
  }
379
378
  function un() {
380
379
  return j(en);
381
380
  }
382
- function hr(t) {
381
+ function xr(t) {
383
382
  K(tn, t);
384
383
  }
385
384
  function L() {
386
385
  return j(tn);
387
386
  }
388
- function gr(t) {
387
+ function hr(t) {
389
388
  K(nn, Xe(t));
390
389
  }
391
390
  function U() {
392
391
  return j(nn);
393
392
  }
394
- function _r(t) {
393
+ function gr(t) {
395
394
  K(on, Xe(t));
396
395
  }
397
396
  function F() {
398
397
  return j(on);
399
398
  }
400
- function kr(t) {
399
+ function _r(t) {
401
400
  K(ln, t);
402
401
  }
403
402
  function Z() {
404
403
  return j(ln);
405
404
  }
406
- function Cr(t) {
405
+ function kr(t) {
407
406
  K(rn, t);
408
407
  }
409
408
  function q() {
410
409
  return j(rn);
411
410
  }
412
- function wr(t) {
411
+ function Cr(t) {
413
412
  K(sn, Xe(t));
414
413
  }
415
414
  function cn() {
@@ -532,15 +531,15 @@ const Jn = ["#dd6b66", "#759aa0", "#e69d87", "#8dc1a9", "#ea7e53", "#eedd78", "#
532
531
  dataZoom: to,
533
532
  markPoint: no
534
533
  };
535
- Wn([
536
- Bn,
534
+ Bn([
537
535
  Dn,
538
536
  zn,
539
537
  Rn,
540
538
  Mn,
541
539
  Fn,
542
540
  Hn,
543
- On
541
+ On,
542
+ jn
544
543
  ]);
545
544
  jt("dark", $i);
546
545
  jt("light", io);
@@ -702,8 +701,8 @@ function ro(t, e) {
702
701
  const pn = An({
703
702
  baseUrl: "http://localhost/computebase/",
704
703
  onError: (t) => {
705
- const { i18n: e } = Zn.base;
706
- Ht(Un(e, t));
704
+ const { i18n: e } = Ln;
705
+ Ht(Zn(e, t));
707
706
  }
708
707
  });
709
708
  window.API_URL && (pn.defaults.baseURL = window.API_URL + "/computebase/");
@@ -829,13 +828,13 @@ function co(t, e, n) {
829
828
  }
830
829
  function m(i, f, c) {
831
830
  const b = e.pseudoToNative(i), d = e.pseudoToNative(f);
832
- Ln({ title: b, text: d }).then((_) => {
831
+ En({ title: b, text: d }).then((_) => {
833
832
  c(e.nativeToPseudo(_)), e.run();
834
833
  });
835
834
  }
836
835
  function r(i, f, c, b) {
837
836
  const d = e.pseudoToNative(i), _ = e.pseudoToNative(f), w = e.pseudoToNative(c);
838
- En({ title: d, label: _, value: w }).then((v) => {
837
+ Pn({ title: d, label: _, value: w }).then((v) => {
839
838
  b(e.nativeToPseudo(v)), e.run();
840
839
  });
841
840
  }
@@ -999,7 +998,7 @@ function __destroy__() {
999
998
  }
1000
999
  `, vo = po + fo + bo + yo;
1001
1000
  function fn(t, e) {
1002
- const n = new jn(
1001
+ const n = new Kn(
1003
1002
  vo,
1004
1003
  (o, l) => {
1005
1004
  mo(t, o, l);
@@ -1013,7 +1012,7 @@ __triggerEvent__('globality', 'startup');
1013
1012
  function bn(t) {
1014
1013
  t.appendCode("__destroy__();"), t.run();
1015
1014
  }
1016
- function Vr(t, e, n, o, l) {
1015
+ function wr(t, e, n, o, l) {
1017
1016
  let s = t;
1018
1017
  for (let p = 0; p < e.length; p++)
1019
1018
  if (s = s.children[e[p]], !s) {
@@ -1031,7 +1030,7 @@ function Vr(t, e, n, o, l) {
1031
1030
  children: {}
1032
1031
  }, s.children[n] = u);
1033
1032
  }
1034
- const Sr = [
1033
+ const Vr = [
1035
1034
  "string",
1036
1035
  "number",
1037
1036
  "boolean",
@@ -1039,7 +1038,7 @@ const Sr = [
1039
1038
  "object"
1040
1039
  ];
1041
1040
  function yn() {
1042
- return Kn();
1041
+ return Un();
1043
1042
  }
1044
1043
  const xo = /* @__PURE__ */ T({
1045
1044
  __name: "index",
@@ -2708,7 +2707,7 @@ const ft = {
2708
2707
  key: "settings",
2709
2708
  name: "x-runtime-lib.settings",
2710
2709
  children: []
2711
- }, $r = {
2710
+ }, Sr = {
2712
2711
  key: vn,
2713
2712
  name: "x-runtime-lib.badge",
2714
2713
  comp: _o,
@@ -3085,7 +3084,7 @@ const _t = {
3085
3084
  key: "settings",
3086
3085
  name: "x-runtime-lib.settings",
3087
3086
  children: []
3088
- }, Tr = {
3087
+ }, $r = {
3089
3088
  key: Ie,
3090
3089
  name: "x-runtime-lib.fileInput",
3091
3090
  comp: Lo,
@@ -4387,11 +4386,11 @@ const Pl = [
4387
4386
  );
4388
4387
  });
4389
4388
  };
4390
- async function Ir(t) {
4389
+ async function Tr(t) {
4391
4390
  return (await rr(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.a2x9tv02.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.da0zepid.js") }), `./locales/${t}/index.ts`, 4)).default;
4392
4391
  }
4393
4392
  export {
4394
- $r as badgeV1,
4393
+ Sr as badgeV1,
4395
4394
  sl as barChartV1,
4396
4395
  Jt as breakpoints,
4397
4396
  pl as btnV1,
@@ -4402,18 +4401,18 @@ export {
4402
4401
  yl as dataTableV1,
4403
4402
  vl as dialogV1,
4404
4403
  Yn as duplicateNode,
4405
- vr as duplicateNodes,
4404
+ yr as duplicateNodes,
4406
4405
  Y as elements,
4407
- Vr as ensureContext,
4408
- Sr as fieldTypes,
4409
- Tr as fileInputV1,
4406
+ wr as ensureContext,
4407
+ Vr as fieldTypes,
4408
+ $r as fileInputV1,
4410
4409
  Ze as flexLayoutEntryV1,
4411
4410
  Ge as flexLayoutV1,
4412
4411
  gl as formV1,
4413
4412
  ee as genId,
4414
4413
  le as getBreakpointProp,
4415
4414
  st as getIndexOfBreakpoint,
4416
- yr as getNode,
4415
+ br as getNode,
4417
4416
  at as getPropDefault,
4418
4417
  ve as getPropTag,
4419
4418
  cl as globalityV1,
@@ -4429,21 +4428,21 @@ export {
4429
4428
  tt as isPercentStr,
4430
4429
  ye as isPixelStr,
4431
4430
  ul as lineChartV1,
4432
- Ir as loadLocaleMessageRuntime,
4431
+ Tr as loadLocaleMessageRuntime,
4433
4432
  _l as menuV1,
4434
4433
  yn as newEventBus,
4435
4434
  kl as numberInputV1,
4436
4435
  ge as parsePercentStr,
4437
- br as parsePixelStr,
4436
+ fr as parsePixelStr,
4438
4437
  lt as pkgs,
4439
- _r as provideDark,
4440
- Cr as provideData,
4441
- wr as provideDepends,
4442
- gr as provideDevice,
4443
- xr as provideEnv,
4444
- hr as provideMode,
4438
+ gr as provideDark,
4439
+ kr as provideData,
4440
+ Cr as provideDepends,
4441
+ hr as provideDevice,
4442
+ vr as provideEnv,
4443
+ xr as provideMode,
4445
4444
  dn as provideSandbox,
4446
- kr as provideType,
4445
+ _r as provideType,
4447
4446
  wl as radioGroupV1,
4448
4447
  Cl as radioV1,
4449
4448
  Vl as rangeSliderV1,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-runtime-lib",
3
3
  "private": false,
4
- "version": "0.6.56",
4
+ "version": "0.7.0",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -33,8 +33,7 @@
33
33
  },
34
34
  "peerDependencies": {
35
35
  "x-error-lib": "^0.5.3",
36
- "x-essential-lib": "^0.8.13",
37
- "x-state-lib": "^0.2.4"
36
+ "x-essential-lib": "^0.8.14"
38
37
  },
39
38
  "devDependencies": {
40
39
  "@eslint/js": "^9.28.0",