x-runtime-lib 0.9.21 → 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.
- package/dist/components/element/ui/card/v1/index.vue.d.ts +17 -3
- package/dist/composables/element/core/elementPropertyRuntime.d.ts +5 -0
- package/dist/composables/element/core/index.d.ts +1 -1
- package/dist/index.js +70 -29
- package/dist/meta/property.d.ts +24 -30
- package/dist/utils/property.d.ts +1 -1
- package/package.json +1 -1
- package/dist/components/element/ui/dialog/v1/activator.vue.d.ts +0 -16
- package/dist/components/element/ui/hover/v1/wrapSlotDefault.vue.d.ts +0 -16
- package/dist/components/element/ui/menu/v1/activator.vue.d.ts +0 -16
- package/dist/components/element/ui/speedDial/v1/activator.vue.d.ts +0 -16
- package/dist/components/element/ui/tooltip/v1/activator.vue.d.ts +0 -16
- package/dist/composables/element/core/elementPropertyTemp.d.ts +0 -5
- package/dist/composables/element/core/slotProps.d.ts +0 -3
- package/dist/composables/element/piece/ui/activator/v1/index.d.ts +0 -3
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
import { ElementProps } from '@/types';
|
|
2
|
-
declare var __VLS_15: {},
|
|
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
|
-
|
|
4
|
+
title?: (props: typeof __VLS_15) => any;
|
|
5
5
|
} & {
|
|
6
|
-
|
|
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>;
|
|
@@ -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 './
|
|
10
|
+
export * from './elementPropertyRuntime';
|
|
11
11
|
export * from './elementProperty';
|
|
12
12
|
export * from './elementSlotMethod';
|
|
13
13
|
export * from './elementSlotProperty';
|
package/dist/index.js
CHANGED
|
@@ -451,7 +451,6 @@ function It(e) {
|
|
|
451
451
|
//#endregion
|
|
452
452
|
//#region src/utils/property.ts
|
|
453
453
|
function Lt(e) {
|
|
454
|
-
if (e.ui) throw Error("property ui valid");
|
|
455
454
|
if (!e.array) throw Error("property not array");
|
|
456
455
|
return r(e.defaultArray);
|
|
457
456
|
}
|
|
@@ -462,7 +461,7 @@ function Rt(e) {
|
|
|
462
461
|
function zt(e, t) {
|
|
463
462
|
function n(e, t) {
|
|
464
463
|
if (t.ui) {
|
|
465
|
-
if (t.
|
|
464
|
+
if (t.static) return;
|
|
466
465
|
t.array ? e[t.key] = Lt(t) : e[t.key] = Rt(t);
|
|
467
466
|
} else if (t.array) e[t.key] = Lt(t);
|
|
468
467
|
else for (let r of t.children) e[t.key] || (e[t.key] = {}), n(e[t.key], r);
|
|
@@ -2723,7 +2722,7 @@ function zr(e, t, n) {
|
|
|
2723
2722
|
return { property: b(() => kt(r) ? i.value : !1) };
|
|
2724
2723
|
}
|
|
2725
2724
|
//#endregion
|
|
2726
|
-
//#region src/composables/element/core/
|
|
2725
|
+
//#region src/composables/element/core/elementPropertyRuntime.ts
|
|
2727
2726
|
function Br(e, t, n) {
|
|
2728
2727
|
let r = H();
|
|
2729
2728
|
r && r.initRuntimeProperty(e.value.basic.id, ot(t), n);
|
|
@@ -2731,7 +2730,7 @@ function Br(e, t, n) {
|
|
|
2731
2730
|
return P(() => {
|
|
2732
2731
|
r?.vm && (i.value = r.getProperty(U("elementProperty", e.value.basic.id, ot(t))));
|
|
2733
2732
|
}), Ce(i, async () => {
|
|
2734
|
-
r?.vm &&
|
|
2733
|
+
r?.vm && await r.setProperty(U("elementProperty", e.value.basic.id, ot(t)), i.value);
|
|
2735
2734
|
}), { property: i };
|
|
2736
2735
|
}
|
|
2737
2736
|
//#endregion
|
|
@@ -4374,13 +4373,13 @@ var Di = g, Oi = /* @__PURE__ */ T({
|
|
|
4374
4373
|
if (s.value.type === "ui") return E("div", {
|
|
4375
4374
|
id: t.id,
|
|
4376
4375
|
style: u.value
|
|
4377
|
-
}, zn(s.value
|
|
4376
|
+
}, { default: () => zn(s.value?.view.nodeLites, m) });
|
|
4378
4377
|
if (s.value.type === "3d") return E(Ni, {
|
|
4379
4378
|
name: t.name,
|
|
4380
4379
|
position: d.value,
|
|
4381
4380
|
rotation: f.value,
|
|
4382
4381
|
scale: p.value
|
|
4383
|
-
}, zn(s.value
|
|
4382
|
+
}, { default: () => zn(s.value?.view.nodeLites, m) });
|
|
4384
4383
|
};
|
|
4385
4384
|
return (e, t) => (k(), x(h));
|
|
4386
4385
|
}
|
|
@@ -4765,31 +4764,73 @@ var Ui = /* @__PURE__ */ li(Vi, [["render", Hi]]), Wi = /* @__PURE__ */ T({
|
|
|
4765
4764
|
refContext: {}
|
|
4766
4765
|
},
|
|
4767
4766
|
setup(e) {
|
|
4768
|
-
let { node: t } = X(e), { activatorProps:
|
|
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"]);
|
|
4769
4768
|
return (e, t) => {
|
|
4770
|
-
let
|
|
4769
|
+
let y = M("v-card");
|
|
4771
4770
|
return k(), x(N(Y), { block: "" }, {
|
|
4772
|
-
default: F(() => [w(
|
|
4773
|
-
density: N(
|
|
4774
|
-
disabled: N(
|
|
4775
|
-
height: N(
|
|
4776
|
-
hover: N(
|
|
4777
|
-
loading: N(
|
|
4778
|
-
"max-height": N(
|
|
4779
|
-
"max-width": N(
|
|
4780
|
-
"min-height": N(
|
|
4781
|
-
"min-width": N(
|
|
4782
|
-
subtitle: N(
|
|
4783
|
-
text: N(
|
|
4784
|
-
theme: N(
|
|
4785
|
-
title: N(
|
|
4786
|
-
variant: N(
|
|
4787
|
-
width: N(
|
|
4788
|
-
}), {
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
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, [
|
|
4793
4834
|
"density",
|
|
4794
4835
|
"disabled",
|
|
4795
4836
|
"height",
|
package/dist/meta/property.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Type } from 'x-essential-lib';
|
|
1
2
|
import { ZItemsKey } from './items';
|
|
2
3
|
import { ZTypesKey } from './types';
|
|
3
4
|
type ZPropertyBranch = {
|
|
@@ -63,36 +64,29 @@ type ZPropertySelectAdaptSlot = {
|
|
|
63
64
|
ui: 'selectAdaptSlot';
|
|
64
65
|
default: string;
|
|
65
66
|
} & ZPropertyBase;
|
|
66
|
-
type
|
|
67
|
+
type ZPropertyRuntime<T extends Type> = {
|
|
67
68
|
ui: 'runtime';
|
|
68
|
-
type:
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
default: object;
|
|
90
|
-
} & ZPropertyBase;
|
|
91
|
-
type ZPropertyRuntimeAny = {
|
|
92
|
-
ui: 'runtime';
|
|
93
|
-
type: 'any';
|
|
94
|
-
default: any;
|
|
95
|
-
} & ZPropertyBase;
|
|
69
|
+
type: T;
|
|
70
|
+
} & ZPropertyBase & {
|
|
71
|
+
string: {
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
74
|
+
number: {
|
|
75
|
+
default: number;
|
|
76
|
+
};
|
|
77
|
+
boolean: {
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
80
|
+
object: {
|
|
81
|
+
default: object;
|
|
82
|
+
};
|
|
83
|
+
array: {
|
|
84
|
+
default: object;
|
|
85
|
+
};
|
|
86
|
+
any: {
|
|
87
|
+
default: unknown;
|
|
88
|
+
};
|
|
89
|
+
}[T];
|
|
96
90
|
type WithArray<T extends {
|
|
97
91
|
default: unknown;
|
|
98
92
|
}> = (T & {
|
|
@@ -106,5 +100,5 @@ export type ZProperty = ({
|
|
|
106
100
|
} & ZPropertyBranch) | ({
|
|
107
101
|
array: true;
|
|
108
102
|
defaultArray: any[];
|
|
109
|
-
} & ZPropertyBranch) | WithArray<ZPropertyDummy> | WithArray<ZPropertyStrInput> | WithArray<ZPropertyNumInput> | WithArray<ZPropertySwitch> | WithArray<ZPropertySelect> | WithArray<ZPropertyColorPicker> | WithArray<ZPropertyJsonEditor> | WithArray<ZPropertyMultiTypes> | WithArray<ZPropertySelectComp> | WithArray<ZPropertySelectSlot> | WithArray<ZPropertyStrInput> | WithArray<ZPropertySelectAdaptSlot> |
|
|
103
|
+
} & ZPropertyBranch) | WithArray<ZPropertyDummy> | WithArray<ZPropertyStrInput> | WithArray<ZPropertyNumInput> | WithArray<ZPropertySwitch> | WithArray<ZPropertySelect> | WithArray<ZPropertyColorPicker> | WithArray<ZPropertyJsonEditor> | WithArray<ZPropertyMultiTypes> | WithArray<ZPropertySelectComp> | WithArray<ZPropertySelectSlot> | WithArray<ZPropertyStrInput> | WithArray<ZPropertySelectAdaptSlot> | WithArray<ZPropertyRuntime<Type>>;
|
|
110
104
|
export {};
|
package/dist/utils/property.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZProperty } from '@/meta';
|
|
2
2
|
import { Node } from '@/types';
|
|
3
|
-
export declare function getPropertyDefaultArray(property: ZProperty): any[];
|
|
3
|
+
export declare function getPropertyDefaultArray(property: ZProperty): any[] | string[] | number[] | boolean[] | unknown[];
|
|
4
4
|
export declare function getPropertyDefault(property: ZProperty): any;
|
|
5
5
|
export declare function initProperties(node: Node, properties: ZProperty[]): void;
|
package/package.json
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
props: Record<string, any>;
|
|
3
|
-
};
|
|
4
|
-
declare var __VLS_1: {};
|
|
5
|
-
type __VLS_Slots = {} & {
|
|
6
|
-
default?: (props: typeof __VLS_1) => any;
|
|
7
|
-
};
|
|
8
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
-
declare const _default: typeof __VLS_export;
|
|
11
|
-
export default _default;
|
|
12
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
-
new (): {
|
|
14
|
-
$slots: S;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
isHovering: boolean | null;
|
|
3
|
-
};
|
|
4
|
-
declare var __VLS_1: {};
|
|
5
|
-
type __VLS_Slots = {} & {
|
|
6
|
-
default?: (props: typeof __VLS_1) => any;
|
|
7
|
-
};
|
|
8
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
-
declare const _default: typeof __VLS_export;
|
|
11
|
-
export default _default;
|
|
12
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
-
new (): {
|
|
14
|
-
$slots: S;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
props: Record<string, any>;
|
|
3
|
-
};
|
|
4
|
-
declare var __VLS_1: {};
|
|
5
|
-
type __VLS_Slots = {} & {
|
|
6
|
-
default?: (props: typeof __VLS_1) => any;
|
|
7
|
-
};
|
|
8
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
-
declare const _default: typeof __VLS_export;
|
|
11
|
-
export default _default;
|
|
12
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
-
new (): {
|
|
14
|
-
$slots: S;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
props: Record<string, any>;
|
|
3
|
-
};
|
|
4
|
-
declare var __VLS_1: {};
|
|
5
|
-
type __VLS_Slots = {} & {
|
|
6
|
-
default?: (props: typeof __VLS_1) => any;
|
|
7
|
-
};
|
|
8
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
-
declare const _default: typeof __VLS_export;
|
|
11
|
-
export default _default;
|
|
12
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
-
new (): {
|
|
14
|
-
$slots: S;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
props: Record<string, any>;
|
|
3
|
-
};
|
|
4
|
-
declare var __VLS_1: {};
|
|
5
|
-
type __VLS_Slots = {} & {
|
|
6
|
-
default?: (props: typeof __VLS_1) => any;
|
|
7
|
-
};
|
|
8
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
-
declare const _default: typeof __VLS_export;
|
|
11
|
-
export default _default;
|
|
12
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
-
new (): {
|
|
14
|
-
$slots: S;
|
|
15
|
-
};
|
|
16
|
-
};
|