x-prop-tree 0.7.23 → 0.7.24
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/values/adaptSlotSelect/index.vue.d.ts +10 -0
- package/dist/components/values/adaptSlotSelect/slotList/group.vue.d.ts +13 -0
- package/dist/components/values/adaptSlotSelect/slotList/index.vue.d.ts +13 -0
- package/dist/components/values/adaptSlotSelect/slotList/item.vue.d.ts +11 -0
- package/dist/components/values/index.d.ts +2 -2
- package/dist/composables/adaptSlotList/index.d.ts +2 -0
- package/dist/index.js +36 -36
- package/dist/utils/provideInject.d.ts +2 -2
- package/package.json +4 -4
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_ModelProps = {
|
|
2
|
+
modelValue?: string;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
|
+
"update:modelValue": (value: string | undefined) => any;
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
7
|
+
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
id: string;
|
|
3
|
+
title: string;
|
|
4
|
+
collapse: boolean;
|
|
5
|
+
count: number;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
"x-click": (...args: any[]) => void;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
"onX-click"?: ((...args: any[]) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type __VLS_ModelProps = {
|
|
2
|
+
modelValue?: string;
|
|
3
|
+
'open': boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
"update:modelValue": (value: string | undefined) => any;
|
|
7
|
+
"update:open": (value: boolean) => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
9
|
+
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
10
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
id: string;
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
"x-click": (...args: any[]) => void;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
"onX-click"?: ((...args: any[]) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -5,7 +5,7 @@ import XJsonEditor from './jsonEditor/index.vue';
|
|
|
5
5
|
import XMultiTypes from './multiTypes/index.vue';
|
|
6
6
|
import XNumInput from './numInput/index.vue';
|
|
7
7
|
import XSelect from './select/index.vue';
|
|
8
|
-
import
|
|
8
|
+
import XAdaptSlotSelect from './adaptSlotSelect/index.vue';
|
|
9
9
|
import XStrInput from './strInput/index.vue';
|
|
10
10
|
import XSwitch from './switch/index.vue';
|
|
11
|
-
export { XColorPicker, XCompSelect, XIconSelect, XJsonEditor, XMultiTypes, XNumInput, XSelect,
|
|
11
|
+
export { XColorPicker, XCompSelect, XIconSelect, XJsonEditor, XMultiTypes, XNumInput, XSelect, XAdaptSlotSelect, XStrInput, XSwitch };
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { provide as ae, inject as ce, defineComponent as E, ref as T, computed a
|
|
|
2
2
|
import { useI18n as I } from "vue-i18n";
|
|
3
3
|
import { useViewStack as _e, useColor as te, globalObjects as xt, eventBus as de, useSystem as pe, injectDark as St, injectLocale as Vt, openNumberDlg as ze, openPromptDlg as Ct } from "x-essential-lib";
|
|
4
4
|
import { getPropertyDefault as J, pkgs as Ne, getPropertyTag as Ut, elements as $t, makeSlotId as Re, parsePixelStr as wt, parsePercentStr as Mt } from "x-runtime-lib";
|
|
5
|
-
import { c as Ge, i as be,
|
|
5
|
+
import { c as Ge, i as be, r as ve, d as Ye, v as We } from "./vendor.f0ug048x.js";
|
|
6
6
|
import { globalState as Qe } from "x-state-lib";
|
|
7
7
|
import { useDisplay as Ze } from "vuetify";
|
|
8
8
|
import { XBlockly as bt } from "x-block-lib";
|
|
@@ -456,40 +456,7 @@ const Yt = /* @__PURE__ */ E({
|
|
|
456
456
|
};
|
|
457
457
|
}
|
|
458
458
|
});
|
|
459
|
-
function Qt() {
|
|
460
|
-
const t = T([]);
|
|
461
|
-
zt(t);
|
|
462
|
-
const s = () => {
|
|
463
|
-
const { activeApp: o, depends: i } = Qe.app, u = [];
|
|
464
|
-
for (const { id: r, name: a, position: d } of o.compGroups) {
|
|
465
|
-
const c = t.value.find((f) => f.id === r);
|
|
466
|
-
u.push({
|
|
467
|
-
id: r,
|
|
468
|
-
type: 0,
|
|
469
|
-
name: a,
|
|
470
|
-
position: d,
|
|
471
|
-
collapse: c?.collapse ?? !0
|
|
472
|
-
});
|
|
473
|
-
}
|
|
474
|
-
for (const { id: r, groupId: a, name: d, position: c } of o.comps)
|
|
475
|
-
i[r] && u.push({ id: r, type: 1, name: d, position: c, group: a });
|
|
476
|
-
Ye(u, !0), t.value = u;
|
|
477
|
-
};
|
|
478
|
-
let n;
|
|
479
|
-
const e = () => {
|
|
480
|
-
clearTimeout(n), n = window.setTimeout(() => {
|
|
481
|
-
s(), n && e();
|
|
482
|
-
}, 1e3);
|
|
483
|
-
}, l = () => {
|
|
484
|
-
clearTimeout(n), n = void 0;
|
|
485
|
-
};
|
|
486
|
-
He(() => {
|
|
487
|
-
e();
|
|
488
|
-
}), Xe(() => {
|
|
489
|
-
l();
|
|
490
|
-
});
|
|
491
|
-
}
|
|
492
|
-
function Zt(t, s, n) {
|
|
459
|
+
function Qt(t, s, n) {
|
|
493
460
|
const { i18n: e } = xt, l = T([]);
|
|
494
461
|
Gt(l);
|
|
495
462
|
const o = () => {
|
|
@@ -571,6 +538,39 @@ function Zt(t, s, n) {
|
|
|
571
538
|
o(), u();
|
|
572
539
|
});
|
|
573
540
|
}
|
|
541
|
+
function Zt() {
|
|
542
|
+
const t = T([]);
|
|
543
|
+
zt(t);
|
|
544
|
+
const s = () => {
|
|
545
|
+
const { activeApp: o, depends: i } = Qe.app, u = [];
|
|
546
|
+
for (const { id: r, name: a, position: d } of o.compGroups) {
|
|
547
|
+
const c = t.value.find((f) => f.id === r);
|
|
548
|
+
u.push({
|
|
549
|
+
id: r,
|
|
550
|
+
type: 0,
|
|
551
|
+
name: a,
|
|
552
|
+
position: d,
|
|
553
|
+
collapse: c?.collapse ?? !0
|
|
554
|
+
});
|
|
555
|
+
}
|
|
556
|
+
for (const { id: r, groupId: a, name: d, position: c } of o.comps)
|
|
557
|
+
i[r] && u.push({ id: r, type: 1, name: d, position: c, group: a });
|
|
558
|
+
Ye(u, !0), t.value = u;
|
|
559
|
+
};
|
|
560
|
+
let n;
|
|
561
|
+
const e = () => {
|
|
562
|
+
clearTimeout(n), n = window.setTimeout(() => {
|
|
563
|
+
s(), n && e();
|
|
564
|
+
}, 1e3);
|
|
565
|
+
}, l = () => {
|
|
566
|
+
clearTimeout(n), n = void 0;
|
|
567
|
+
};
|
|
568
|
+
He(() => {
|
|
569
|
+
e();
|
|
570
|
+
}), Xe(() => {
|
|
571
|
+
l();
|
|
572
|
+
});
|
|
573
|
+
}
|
|
574
574
|
const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PURE__ */ E({
|
|
575
575
|
__name: "index",
|
|
576
576
|
props: /* @__PURE__ */ Z({
|
|
@@ -1848,7 +1848,7 @@ const Gn = /* @__PURE__ */ E({
|
|
|
1848
1848
|
() => {
|
|
1849
1849
|
S.value = l.object;
|
|
1850
1850
|
}
|
|
1851
|
-
), Jt(d), Xt(c),
|
|
1851
|
+
), Jt(d), Xt(c), Zt(), Qt(f, v, C);
|
|
1852
1852
|
const { renderProperty: D } = Jn(
|
|
1853
1853
|
d,
|
|
1854
1854
|
u,
|
|
@@ -19,5 +19,5 @@ export declare function provideChangeEvent(changeEvent: ChangeEvent): void;
|
|
|
19
19
|
export declare function injectChangeEvent(): ChangeEvent;
|
|
20
20
|
export declare function provideCompList(compList: Ref<ListEntry[]>): void;
|
|
21
21
|
export declare function injectCompList(): Ref<ListEntry[]>;
|
|
22
|
-
export declare function
|
|
23
|
-
export declare function
|
|
22
|
+
export declare function provideAdaptSlotList(slotList: Ref<ListEntry[]>): void;
|
|
23
|
+
export declare function injectAdaptSlotList(): Ref<ListEntry[]>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-prop-tree",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.24",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"vue": "^3.5.25",
|
|
27
27
|
"vue-i18n": "^11.2.2",
|
|
28
28
|
"vuetify": "^3.11.2",
|
|
29
|
-
"x-block-lib": "^0.8.
|
|
29
|
+
"x-block-lib": "^0.8.58",
|
|
30
30
|
"x-essential-lib": "^0.9.19",
|
|
31
31
|
"x-group-list": "^0.4.7",
|
|
32
|
-
"x-runtime-lib": "^0.8.
|
|
33
|
-
"x-state-lib": "^0.3.
|
|
32
|
+
"x-runtime-lib": "^0.8.117",
|
|
33
|
+
"x-state-lib": "^0.3.31"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@eslint/js": "^9.39.1",
|