x-runtime-lib 0.8.96 → 0.8.97

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.
@@ -0,0 +1,3 @@
1
+ export * from './elementMethod';
2
+ export * from './elementProperty';
3
+ export * from './theme';
@@ -9,6 +9,3 @@ export * from './common/color/v1';
9
9
  export * from './common/margin/v1';
10
10
  export * from './common/padding/v1';
11
11
  export * from './common/size/v1';
12
- export * from './core/elementMethod';
13
- export * from './core/elementProperty';
14
- export * from './core/theme';
@@ -12,8 +12,8 @@ const e = {
12
12
  angle: "角度",
13
13
  append: "后置",
14
14
  appendIcon: "后置图标",
15
- appendInner: "后置/内部",
16
- appendInnerIcon: "后置图标/内部",
15
+ appendInner: "后置 / 内部",
16
+ appendInnerIcon: "后置图标 / 内部",
17
17
  aspectRatio: "宽高比",
18
18
  auto: "自动",
19
19
  autofocus: "自动聚焦",
@@ -239,8 +239,8 @@ const e = {
239
239
  prefix: "前缀",
240
240
  prepend: "前置",
241
241
  prependIcon: "前置图标",
242
- prependInner: "前置/内部",
243
- prependInnerIcon: "前置图标/内部",
242
+ prependInner: "前置 / 内部",
243
+ prependInnerIcon: "前置图标 / 内部",
244
244
  primary: "首要",
245
245
  property: "属性",
246
246
  propertyChange: "属性变化",
@@ -286,8 +286,8 @@ const e = {
286
286
  small: "小",
287
287
  solid: "实线",
288
288
  solo: "独自",
289
- soloFilled: "独自/充满",
290
- soloInverted: "独自/倒置",
289
+ soloFilled: "独自 / 充满",
290
+ soloInverted: "独自 / 倒置",
291
291
  sortable: "可排序",
292
292
  spaceAround: "环绕",
293
293
  spaceBetween: "间隔",
package/dist/index.js CHANGED
@@ -29,7 +29,7 @@ var we = (t, e, n) => {
29
29
  };
30
30
  return s();
31
31
  };
32
- import { defineComponent as $, createElementBlock as te, renderSlot as M, unref as o, openBlock as h, createElementVNode as Y, computed as v, normalizeStyle as ee, ref as oe, watchEffect as pe, watch as re, onBeforeMount as Yo, onUnmounted as Oe, createBlock as S, withCtx as _, createCommentVNode as ne, useTemplateRef as so, onMounted as lo, nextTick as ao, useAttrs as Zo, h as ae, resolveComponent as E, createVNode as R, isRef as J, createSlots as Rn, renderList as Qo, useId as co, withModifiers as er, normalizeClass as tr, toDisplayString as nr, inject as se, provide as le, readonly as Kn } from "vue";
32
+ import { defineComponent as $, createElementBlock as te, renderSlot as M, unref as o, openBlock as h, createElementVNode as Y, computed as v, normalizeStyle as ee, onBeforeMount as Yo, onUnmounted as Oe, ref as oe, watchEffect as pe, watch as re, createBlock as S, withCtx as _, createCommentVNode as ne, useTemplateRef as so, onMounted as lo, nextTick as ao, useAttrs as Zo, h as ae, resolveComponent as E, createVNode as R, isRef as J, createSlots as Rn, renderList as Qo, useId as co, withModifiers as er, normalizeClass as tr, toDisplayString as nr, inject as se, provide as le, readonly as Kn } from "vue";
33
33
  import { globalObjects as he, waitUtil as uo, useViewStack as po, eventBus as mo, messageInfo as ir, messageSuccess as or, messageWarning as yo, messageError as fo, createAxios as rr, openConfirmDlg as sr, openPromptDlg as lr } from "x-essential-lib";
34
34
  import { CameraHelper as bo, DirectionalLightHelper as ar, PointLightHelper as cr, SpotLightHelper as ur } from "three";
35
35
  import { c as W, i as ce, q as Ge, u as pr, r as go, e as ho, a as mr, b as dr, d as yr, f as fr, g as br, h as gr, j as hr, k as xr, l as xo, X as vr, Y as kr, K as _r, m as wr, n as Sr, o as Vr, p as $r } from "./vendor.eh9kttp2.js";
@@ -288,7 +288,19 @@ const Me = {}, w = (t) => {
288
288
  }, null, 4)
289
289
  ], 4)) : M(r.$slots, "default", { key: 1 });
290
290
  }
291
- }), Br = (t, e, n, i) => {
291
+ });
292
+ function Je(t, e, n) {
293
+ const i = fe();
294
+ if (i) {
295
+ const r = v(() => Mu("elementMethod", t.node.basic.id, e));
296
+ Yo(() => {
297
+ i.eventBus?.on(r.value, n);
298
+ }), Oe(() => {
299
+ i.eventBus?.off(r.value, n);
300
+ });
301
+ }
302
+ }
303
+ const Br = (t, e, n, i) => {
292
304
  let r;
293
305
  if (t ? r = t.getElementProperty(e.basic.id, n) : r = be(e, n), i) {
294
306
  if (typeof r == "string")
@@ -309,6 +321,10 @@ function l(t, e, n) {
309
321
  ce(s, a) || Wr(i, t.node, e, r.value, n);
310
322
  }), { property: r };
311
323
  }
324
+ function F() {
325
+ const t = Ne();
326
+ return { theme: v(() => t.value ? "dark" : "light") };
327
+ }
312
328
  function me(t) {
313
329
  const { property: e } = l(t, [
314
330
  "transform",
@@ -475,21 +491,6 @@ function de(t) {
475
491
  }
476
492
  return { width: i, minWidth: r, maxWidth: s, height: a, minHeight: c, maxHeight: u, applySize: m };
477
493
  }
478
- function Je(t, e, n) {
479
- const i = fe();
480
- if (i) {
481
- const r = v(() => Mu("elementMethod", t.node.basic.id, e));
482
- Yo(() => {
483
- i.eventBus?.on(r.value, n);
484
- }), Oe(() => {
485
- i.eventBus?.off(r.value, n);
486
- });
487
- }
488
- }
489
- function F() {
490
- const t = Ne();
491
- return { theme: v(() => t.value ? "dark" : "light") };
492
- }
493
494
  const Rr = ["bottom", "far", "left", "near", "position", "right", "rotation", "scale", "top"], Kr = /* @__PURE__ */ $({
494
495
  __name: "index",
495
496
  props: {
@@ -8994,7 +8995,7 @@ const Hu = (t, e, n) => {
8994
8995
  });
8995
8996
  };
8996
8997
  async function Kp(t) {
8997
- return (await Hu(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.fcu7dx2e.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.l3h6mxad.js") }), `./locales/${t}/index.ts`, 4)).default;
8998
+ return (await Hu(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.fcu7dx2e.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.ab9hc9dj.js") }), `./locales/${t}/index.ts`, 4)).default;
8998
8999
  }
8999
9000
  export {
9000
9001
  np as addIndent,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-runtime-lib",
3
3
  "private": false,
4
- "version": "0.8.96",
4
+ "version": "0.8.97",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",