x-runtime-lib 0.9.22 → 0.9.23

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,9 +1,23 @@
1
1
  import { ElementProps } from '@/types';
2
- declare var __VLS_15: {}, __VLS_17: {};
2
+ declare var __VLS_15: {}, __VLS_18: {}, __VLS_21: {}, __VLS_24: {}, __VLS_27: {}, __VLS_30: {}, __VLS_33: {}, __VLS_36: {}, __VLS_39: {};
3
3
  type __VLS_Slots = {} & {
4
- actions?: (props: typeof __VLS_15) => any;
4
+ title?: (props: typeof __VLS_15) => any;
5
5
  } & {
6
- default?: (props: typeof __VLS_17) => any;
6
+ subtitle?: (props: typeof __VLS_18) => any;
7
+ } & {
8
+ text?: (props: typeof __VLS_21) => any;
9
+ } & {
10
+ image?: (props: typeof __VLS_24) => any;
11
+ } & {
12
+ item?: (props: typeof __VLS_27) => any;
13
+ } & {
14
+ actions?: (props: typeof __VLS_30) => any;
15
+ } & {
16
+ default?: (props: typeof __VLS_33) => any;
17
+ } & {
18
+ prepend?: (props: typeof __VLS_36) => any;
19
+ } & {
20
+ append?: (props: typeof __VLS_39) => any;
7
21
  };
8
22
  declare const __VLS_base: import("vue").DefineComponent<ElementProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ElementProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
23
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -0,0 +1,5 @@
1
+ import { Ref } from 'vue';
2
+ import { Node } from '@/types';
3
+ export declare function useElementPropertyRuntime(node: Ref<Node>, keys: string[], initValue?: any): {
4
+ property: Ref<any, any>;
5
+ };
@@ -7,7 +7,7 @@ export * from './elementMethod';
7
7
  export * from './elementPropertyBreakpoint';
8
8
  export * from './elementPropertyColor';
9
9
  export * from './elementPropertyEager';
10
- export * from './elementPropertyTemp';
10
+ export * from './elementPropertyRuntime';
11
11
  export * from './elementProperty';
12
12
  export * from './elementSlotMethod';
13
13
  export * from './elementSlotProperty';
package/dist/index.js CHANGED
@@ -2722,7 +2722,7 @@ function zr(e, t, n) {
2722
2722
  return { property: b(() => kt(r) ? i.value : !1) };
2723
2723
  }
2724
2724
  //#endregion
2725
- //#region src/composables/element/core/elementPropertyTemp.ts
2725
+ //#region src/composables/element/core/elementPropertyRuntime.ts
2726
2726
  function Br(e, t, n) {
2727
2727
  let r = H();
2728
2728
  r && r.initRuntimeProperty(e.value.basic.id, ot(t), n);
@@ -2730,7 +2730,7 @@ function Br(e, t, n) {
2730
2730
  return P(() => {
2731
2731
  r?.vm && (i.value = r.getProperty(U("elementProperty", e.value.basic.id, ot(t))));
2732
2732
  }), Ce(i, async () => {
2733
- r?.vm && (console.log("ffffffff", i.value), await r.setProperty(U("elementProperty", e.value.basic.id, ot(t)), i.value));
2733
+ r?.vm && await r.setProperty(U("elementProperty", e.value.basic.id, ot(t)), i.value);
2734
2734
  }), { property: i };
2735
2735
  }
2736
2736
  //#endregion
@@ -4373,13 +4373,13 @@ var Di = g, Oi = /* @__PURE__ */ T({
4373
4373
  if (s.value.type === "ui") return E("div", {
4374
4374
  id: t.id,
4375
4375
  style: u.value
4376
- }, zn(s.value.view.nodeLites, m));
4376
+ }, { default: () => zn(s.value?.view.nodeLites, m) });
4377
4377
  if (s.value.type === "3d") return E(Ni, {
4378
4378
  name: t.name,
4379
4379
  position: d.value,
4380
4380
  rotation: f.value,
4381
4381
  scale: p.value
4382
- }, zn(s.value.view.nodeLites, m));
4382
+ }, { default: () => zn(s.value?.view.nodeLites, m) });
4383
4383
  };
4384
4384
  return (e, t) => (k(), x(h));
4385
4385
  }
@@ -4764,31 +4764,73 @@ var Ui = /* @__PURE__ */ li(Vi, [["render", Hi]]), Wi = /* @__PURE__ */ T({
4764
4764
  refContext: {}
4765
4765
  },
4766
4766
  setup(e) {
4767
- let { node: t } = X(e), { activatorProps: n } = kr(), { property: r } = Z(t, ["settings", "density"]), { property: i } = Z(t, ["settings", "disabled"]), { property: a } = Z(t, ["size", "height"]), { property: o } = Z(t, ["settings", "hover"]), { property: s } = Z(t, ["settings", "loading"]), { property: c } = Z(t, ["size", "maxHeight"]), { property: l } = Z(t, ["size", "maxWidth"]), { property: u } = Z(t, ["size", "minHeight"]), { property: d } = Z(t, ["size", "minWidth"]), { property: f } = Z(t, ["settings", "subtitle"]), { property: p } = Z(t, ["settings", "text"]), { theme: m } = $(), { property: h } = Z(t, ["settings", "title"]), { property: g } = Z(t, ["settings", "variant"]), { property: _ } = Z(t, ["size", "width"]);
4767
+ let { node: t, hasRenderGroup: n } = X(e), { activatorProps: r } = kr(), { property: i } = Z(t, ["settings", "density"]), { property: a } = Z(t, ["settings", "disabled"]), { property: o } = Z(t, ["size", "height"]), { property: s } = Z(t, ["settings", "hover"]), { property: c } = Z(t, ["settings", "loading"]), { property: l } = Z(t, ["size", "maxHeight"]), { property: u } = Z(t, ["size", "maxWidth"]), { property: d } = Z(t, ["size", "minHeight"]), { property: f } = Z(t, ["size", "minWidth"]), { property: p } = Z(t, ["settings", "subtitle"]), { property: m } = Z(t, ["settings", "text"]), { theme: h } = $(), { property: g } = Z(t, ["settings", "title"]), { property: _ } = Z(t, ["settings", "variant"]), { property: v } = Z(t, ["size", "width"]);
4768
4768
  return (e, t) => {
4769
- let v = M("v-card");
4769
+ let y = M("v-card");
4770
4770
  return k(), x(N(Y), { block: "" }, {
4771
- default: F(() => [w(v, se(N(n), {
4772
- density: N(r),
4773
- disabled: N(i),
4774
- height: N(a),
4775
- hover: N(o),
4776
- loading: N(s),
4777
- "max-height": N(c),
4778
- "max-width": N(l),
4779
- "min-height": N(u),
4780
- "min-width": N(d),
4781
- subtitle: N(f),
4782
- text: N(p),
4783
- theme: N(m),
4784
- title: N(h),
4785
- variant: N(g),
4786
- width: N(_)
4787
- }), {
4788
- actions: F(() => [re("div", ea, [j(e.$slots, "actions")])]),
4789
- default: F(() => [j(e.$slots, "default")]),
4790
- _: 3
4791
- }, 16, [
4771
+ default: F(() => [w(y, se(N(r), {
4772
+ density: N(i),
4773
+ disabled: N(a),
4774
+ height: N(o),
4775
+ hover: N(s),
4776
+ loading: N(c),
4777
+ "max-height": N(l),
4778
+ "max-width": N(u),
4779
+ "min-height": N(d),
4780
+ "min-width": N(f),
4781
+ subtitle: N(p),
4782
+ text: N(m),
4783
+ theme: N(h),
4784
+ title: N(g),
4785
+ variant: N(_),
4786
+ width: N(v)
4787
+ }), ie({ _: 2 }, [
4788
+ N(n)("title") ? {
4789
+ name: "title",
4790
+ fn: F(() => [j(e.$slots, "title")]),
4791
+ key: "0"
4792
+ } : void 0,
4793
+ N(n)("subtitle") ? {
4794
+ name: "subtitle",
4795
+ fn: F(() => [j(e.$slots, "subtitle")]),
4796
+ key: "1"
4797
+ } : void 0,
4798
+ N(n)("text") ? {
4799
+ name: "text",
4800
+ fn: F(() => [j(e.$slots, "text")]),
4801
+ key: "2"
4802
+ } : void 0,
4803
+ N(n)("image") ? {
4804
+ name: "image",
4805
+ fn: F(() => [j(e.$slots, "image")]),
4806
+ key: "3"
4807
+ } : void 0,
4808
+ N(n)("item") ? {
4809
+ name: "item",
4810
+ fn: F(() => [j(e.$slots, "item")]),
4811
+ key: "4"
4812
+ } : void 0,
4813
+ N(n)("actions") ? {
4814
+ name: "actions",
4815
+ fn: F(() => [re("div", ea, [j(e.$slots, "actions")])]),
4816
+ key: "5"
4817
+ } : void 0,
4818
+ N(n)("default") ? {
4819
+ name: "default",
4820
+ fn: F(() => [j(e.$slots, "default")]),
4821
+ key: "6"
4822
+ } : void 0,
4823
+ N(n)("prepend") ? {
4824
+ name: "prepend",
4825
+ fn: F(() => [j(e.$slots, "prepend")]),
4826
+ key: "7"
4827
+ } : void 0,
4828
+ N(n)("append") ? {
4829
+ name: "append",
4830
+ fn: F(() => [j(e.$slots, "append")]),
4831
+ key: "8"
4832
+ } : void 0
4833
+ ]), 1040, [
4792
4834
  "density",
4793
4835
  "disabled",
4794
4836
  "height",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-runtime-lib",
3
3
  "private": false,
4
- "version": "0.9.22",
4
+ "version": "0.9.23",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -1,5 +0,0 @@
1
- import { Ref } from 'vue';
2
- import { Node } from '@/types';
3
- export declare function useElementPropertyTemp(node: Ref<Node>, keys: string[], initValue?: any): {
4
- property: Ref<any, any>;
5
- };