x-prop-tree 0.7.22 → 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.
@@ -1,13 +1,13 @@
1
- interface Props {
1
+ type __VLS_Props = {
2
2
  minHeight: string;
3
- }
3
+ };
4
4
  declare var __VLS_1: {};
5
5
  type __VLS_Slots = {} & {
6
6
  default?: (props: typeof __VLS_1) => any;
7
7
  };
8
- declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
9
  menu: (...args: any[]) => void;
10
- }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
10
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
11
  onMenu?: ((...args: any[]) => any) | undefined;
12
12
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
13
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,15 +1,15 @@
1
1
  import { ZProperty } from 'x-runtime-lib';
2
- interface Props {
2
+ type __VLS_Props = {
3
3
  unique: string;
4
4
  config: ZProperty[];
5
5
  object: any;
6
6
  version: string;
7
7
  type: string;
8
8
  subtype: string;
9
- }
10
- declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ };
10
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
11
  change: (...args: any[]) => void;
12
- }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
12
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
13
13
  onChange?: ((...args: any[]) => any) | undefined;
14
14
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
15
  declare const _default: typeof __VLS_export;
@@ -1,16 +1,16 @@
1
- interface Props {
1
+ type __VLS_Props = {
2
2
  title: string;
3
3
  collapse: boolean;
4
4
  hasCreate?: boolean;
5
5
  hasDelete?: boolean;
6
6
  index?: number;
7
- }
8
- declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ };
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
9
  collapse: (...args: any[]) => void;
10
10
  menu: (...args: any[]) => void;
11
11
  create: (...args: any[]) => void;
12
12
  delete: (...args: any[]) => void;
13
- }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
13
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
14
14
  onCollapse?: ((...args: any[]) => any) | undefined;
15
15
  onMenu?: ((...args: any[]) => any) | undefined;
16
16
  onCreate?: ((...args: any[]) => any) | undefined;
@@ -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;
@@ -1,8 +1,7 @@
1
- interface Props {
1
+ type __VLS_Props = {
2
2
  hasDelete?: boolean;
3
3
  readonly?: boolean;
4
- }
5
- type __VLS_Props = Props;
4
+ };
6
5
  type __VLS_ModelProps = {
7
6
  modelValue?: string;
8
7
  };
@@ -1,12 +1,12 @@
1
- interface Props {
1
+ type __VLS_Props = {
2
2
  id: string;
3
3
  title: string;
4
4
  collapse: boolean;
5
5
  count: number;
6
- }
7
- declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ };
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
8
  "x-click": (...args: any[]) => void;
9
- }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
9
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
10
10
  "onX-click"?: ((...args: any[]) => any) | undefined;
11
11
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
12
  declare const _default: typeof __VLS_export;
@@ -1,10 +1,10 @@
1
- interface Props {
1
+ type __VLS_Props = {
2
2
  id: string;
3
3
  title: string;
4
- }
5
- declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
6
  "x-click": (...args: any[]) => void;
7
- }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
7
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
8
8
  "onX-click"?: ((...args: any[]) => any) | undefined;
9
9
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
10
  declare const _default: typeof __VLS_export;
@@ -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 XSlotSelect from './slotSelect/index.vue';
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, XSlotSelect, XStrInput, XSwitch };
11
+ export { XColorPicker, XCompSelect, XIconSelect, XJsonEditor, XMultiTypes, XNumInput, XSelect, XAdaptSlotSelect, XStrInput, XSwitch };
@@ -1,8 +1,7 @@
1
- interface Props {
1
+ type __VLS_Props = {
2
2
  hasDelete?: boolean;
3
3
  types: string;
4
- }
5
- type __VLS_Props = Props;
4
+ };
6
5
  type __VLS_ModelProps = {
7
6
  modelValue?: string;
8
7
  };
@@ -1,12 +1,11 @@
1
- interface Props {
1
+ type __VLS_Props = {
2
2
  hasDelete?: boolean;
3
3
  precision?: number;
4
4
  min?: number;
5
5
  max?: number;
6
6
  step?: number;
7
7
  readonly?: boolean;
8
- }
9
- type __VLS_Props = Props;
8
+ };
10
9
  type __VLS_ModelProps = {
11
10
  modelValue: number;
12
11
  };
@@ -1,9 +1,8 @@
1
- interface Props {
1
+ type __VLS_Props = {
2
2
  hasDelete?: boolean;
3
3
  readonly?: boolean;
4
4
  items: string;
5
- }
6
- type __VLS_Props = Props;
5
+ };
7
6
  type __VLS_ModelProps = {
8
7
  modelValue?: string;
9
8
  };
@@ -1,12 +1,12 @@
1
- interface Props {
1
+ type __VLS_Props = {
2
2
  id: string;
3
3
  title: string;
4
4
  collapse: boolean;
5
5
  count: number;
6
- }
7
- declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ };
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
8
  "x-click": (...args: any[]) => void;
9
- }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
9
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
10
10
  "onX-click"?: ((...args: any[]) => any) | undefined;
11
11
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
12
  declare const _default: typeof __VLS_export;
@@ -1,10 +1,10 @@
1
- interface Props {
1
+ type __VLS_Props = {
2
2
  id: string;
3
3
  title: string;
4
- }
5
- declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
6
  "x-click": (...args: any[]) => void;
7
- }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
7
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
8
8
  "onX-click"?: ((...args: any[]) => any) | undefined;
9
9
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
10
  declare const _default: typeof __VLS_export;
@@ -1,8 +1,7 @@
1
- interface Props {
1
+ type __VLS_Props = {
2
2
  hasDelete?: boolean;
3
3
  readonly?: boolean;
4
- }
5
- type __VLS_Props = Props;
4
+ };
6
5
  type __VLS_ModelProps = {
7
6
  modelValue: string;
8
7
  };
@@ -1,8 +1,7 @@
1
- interface Props {
1
+ type __VLS_Props = {
2
2
  hasDelete?: boolean;
3
3
  readonly?: boolean;
4
- }
5
- type __VLS_Props = Props;
4
+ };
6
5
  type __VLS_ModelProps = {
7
6
  modelValue?: boolean;
8
7
  };
@@ -0,0 +1,2 @@
1
+ import { ShallowRef } from 'vue';
2
+ export declare function useAdaptSlotList(version: ShallowRef<string>, type: ShallowRef<string>, subtype: ShallowRef<string>): void;
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
- import { provide as ae, inject as ce, defineComponent as E, ref as T, computed as L, resolveComponent as $, createBlock as B, openBlock as _, unref as P, isRef as re, withCtx as R, createVNode as b, createElementBlock as K, Fragment as fe, renderList as Te, createTextVNode as ke, toDisplayString as F, resolveDirective as ee, withDirectives as j, withModifiers as X, normalizeStyle as W, createElementVNode as q, createCommentVNode as G, mergeModels as Z, useModel as z, useId as $e, onUnmounted as we, mergeProps as Me, withKeys as Le, useTemplateRef as He, watch as oe, watchEffect as Ke, h as k, renderSlot as kt, onMounted as Xe, onBeforeUnmount as Fe, reactive as _t } from "vue";
1
+ import { provide as ae, inject as ce, defineComponent as E, ref as T, computed as L, resolveComponent as $, createBlock as B, openBlock as _, unref as P, isRef as re, withCtx as R, createVNode as b, createElementBlock as K, Fragment as fe, renderList as Te, createTextVNode as ke, toDisplayString as F, resolveDirective as ee, withDirectives as j, withModifiers as X, normalizeStyle as W, createElementVNode as q, createCommentVNode as G, onMounted as He, onBeforeUnmount as Xe, watch as oe, mergeModels as Z, useModel as z, useId as $e, onUnmounted as we, mergeProps as Me, withKeys as Le, useTemplateRef as Fe, watchEffect as Ke, h as k, renderSlot as kt, reactive as _t } from "vue";
2
2
  import { useI18n as I } from "vue-i18n";
3
- import { useViewStack as _e, useColor as te, eventBus as de, useSystem as pe, injectDark as xt, injectLocale as St, openNumberDlg as ze, openPromptDlg as Vt, globalObjects as Ct } from "x-essential-lib";
4
- import { getPropertyDefault as J, pkgs as Ne, parsePixelStr as Ut, parsePercentStr as $t, getPropertyTag as wt, elements as Mt, makeSlotId as Re } from "x-runtime-lib";
5
- import { c as Ge, i as be, r as ve, v as Ye, d as We } from "./vendor.f0ug048x.js";
6
- import { useDisplay as Qe } from "vuetify";
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
+ 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, r as ve, d as Ye, v as We } from "./vendor.f0ug048x.js";
6
+ import { globalState as Qe } from "x-state-lib";
7
+ import { useDisplay as Ze } from "vuetify";
7
8
  import { XBlockly as bt } from "x-block-lib";
8
- import { globalState as Ze } from "x-state-lib";
9
9
  const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t, s) => {
10
10
  const n = (e, l) => {
11
11
  if (e.ui !== l.ui || e.array !== l.array)
@@ -455,7 +455,123 @@ const Yt = /* @__PURE__ */ E({
455
455
  ]);
456
456
  };
457
457
  }
458
- }), Qt = { class: "d-flex justify-space-between align-center" }, Zt = /* @__PURE__ */ E({
458
+ });
459
+ function Qt(t, s, n) {
460
+ const { i18n: e } = xt, l = T([]);
461
+ Gt(l);
462
+ const o = () => {
463
+ if (!t.value || !s.value || !n.value)
464
+ return;
465
+ const a = Ne[t.value];
466
+ if (!a) {
467
+ console.assert(!1, `invalid version=${t.value}`);
468
+ return;
469
+ }
470
+ const d = Ut(s.value, n.value), c = [];
471
+ for (let h = 0; h < a.groups[d].length; h++) {
472
+ const S = a.groups[d][h], D = ve(l, S.key);
473
+ c.push({
474
+ id: S.key,
475
+ type: 0,
476
+ name: e.global.t(S.name),
477
+ position: h,
478
+ collapse: D?.collapse ?? !0,
479
+ count: 0
480
+ });
481
+ let x = 0;
482
+ for (const V of S.items) {
483
+ const U = $t[V];
484
+ if (U && !U.internal && U.slots)
485
+ for (const O of U.slots) {
486
+ const Q = Re("elementSlot", U.key, O.key), ge = `${e.global.t(U.name)} / ${e.global.t(O.name)}`;
487
+ c.push({
488
+ id: Q,
489
+ type: 1,
490
+ name: ge,
491
+ position: x++,
492
+ group: S.key
493
+ });
494
+ }
495
+ }
496
+ }
497
+ const { activeApp: f, depends: v } = Qe.app;
498
+ for (const { id: h, name: S, position: D } of f.compGroups) {
499
+ const x = ve(l, h);
500
+ c.push({
501
+ id: h,
502
+ type: 0,
503
+ name: S,
504
+ position: D,
505
+ collapse: x?.collapse ?? !0
506
+ });
507
+ }
508
+ let C = 0;
509
+ for (const h of f.comps) {
510
+ const S = v[h.id];
511
+ if (S && S.meta.slots)
512
+ for (const D of S.meta.slots) {
513
+ const x = Re("customSlot", h.id, D.id), V = `${h.name} / ${D.name}`;
514
+ c.push({
515
+ id: x,
516
+ type: 1,
517
+ name: V,
518
+ position: C++,
519
+ group: h.groupId
520
+ });
521
+ }
522
+ }
523
+ Ye(c, !0), l.value = c;
524
+ };
525
+ let i;
526
+ const u = () => {
527
+ clearTimeout(i), i = window.setTimeout(() => {
528
+ o(), i && u();
529
+ }, 1e3);
530
+ }, r = () => {
531
+ clearTimeout(i), i = void 0;
532
+ };
533
+ He(() => {
534
+ u();
535
+ }), Xe(() => {
536
+ r();
537
+ }), oe([t, s, n], () => {
538
+ o(), u();
539
+ });
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
+ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PURE__ */ E({
459
575
  __name: "index",
460
576
  props: /* @__PURE__ */ Z({
461
577
  hasDelete: { type: Boolean, default: !1 },
@@ -483,7 +599,7 @@ const Yt = /* @__PURE__ */ E({
483
599
  scrim: "transparent"
484
600
  }, {
485
601
  activator: R(({ props: v }) => [
486
- q("div", Qt, [
602
+ q("div", jt, [
487
603
  q("div", {
488
604
  class: "flex-grow-1",
489
605
  style: W(o.value)
@@ -523,7 +639,7 @@ const Yt = /* @__PURE__ */ E({
523
639
  }, 8, ["modelValue"]);
524
640
  };
525
641
  }
526
- }), jt = { class: "text-subtitle-2 ml-1" }, It = { class: "text-caption text-grey ml-1" }, en = /* @__PURE__ */ E({
642
+ }), en = { class: "text-subtitle-2 ml-1" }, tn = { class: "text-caption text-grey ml-1" }, nn = /* @__PURE__ */ E({
527
643
  __name: "group",
528
644
  props: {
529
645
  id: {},
@@ -552,14 +668,14 @@ const Yt = /* @__PURE__ */ E({
552
668
  icon: l.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
553
669
  size: "small"
554
670
  }, null, 8, ["icon"]),
555
- q("span", jt, F(l.title), 1),
556
- q("span", It, F(l.count), 1)
671
+ q("span", en, F(l.title), 1),
672
+ q("span", tn, F(l.count), 1)
557
673
  ], 36)), [
558
674
  [c]
559
675
  ]);
560
676
  };
561
677
  }
562
- }), tn = { class: "text-subtitle-1 ml-6" }, nn = /* @__PURE__ */ E({
678
+ }), ln = { class: "text-subtitle-1 ml-6" }, on = /* @__PURE__ */ E({
563
679
  __name: "item",
564
680
  props: {
565
681
  id: {},
@@ -582,16 +698,16 @@ const Yt = /* @__PURE__ */ E({
582
698
  onMouseout: a[1] || (a[1] = (c) => i.value = !1),
583
699
  onMouseover: a[2] || (a[2] = (c) => i.value = !0)
584
700
  }, [
585
- q("span", tn, F(l.title), 1)
701
+ q("span", ln, F(l.title), 1)
586
702
  ], 36)), [
587
703
  [d]
588
704
  ]);
589
705
  };
590
706
  }
591
- }), ln = { key: 0 }, on = {
707
+ }), sn = { key: 0 }, un = {
592
708
  key: 1,
593
709
  class: "text-body-2 text-grey ml-3"
594
- }, sn = /* @__PURE__ */ E({
710
+ }, rn = /* @__PURE__ */ E({
595
711
  __name: "index",
596
712
  props: {
597
713
  modelValue: {},
@@ -603,15 +719,15 @@ const Yt = /* @__PURE__ */ E({
603
719
  setup(t) {
604
720
  const { t: s } = I(), n = z(t, "modelValue"), e = z(t, "open"), l = st(), o = (u) => {
605
721
  const r = ve(l, u);
606
- r && Ye(l, u, !r.collapse);
722
+ r && We(l, u, !r.collapse);
607
723
  }, i = (u) => {
608
724
  n.value = u, e.value = !1, de.emit("refreshDepends");
609
725
  };
610
- return (u, r) => P(l).length > 0 ? (_(), K("div", ln, [
726
+ return (u, r) => P(l).length > 0 ? (_(), K("div", sn, [
611
727
  (_(!0), K(fe, null, Te(P(l), (a) => (_(), K(fe, {
612
728
  key: a.id
613
729
  }, [
614
- a.type === 0 ? (_(), B(en, {
730
+ a.type === 0 ? (_(), B(nn, {
615
731
  key: 0,
616
732
  id: a.id,
617
733
  collapse: a.collapse,
@@ -619,16 +735,16 @@ const Yt = /* @__PURE__ */ E({
619
735
  title: a.name,
620
736
  onXClick: o
621
737
  }, null, 8, ["id", "collapse", "count", "title"])) : G("", !0),
622
- a.type === 1 && a.show ? (_(), B(nn, {
738
+ a.type === 1 && a.show ? (_(), B(on, {
623
739
  key: 1,
624
740
  id: a.id,
625
741
  title: a.name,
626
742
  onXClick: i
627
743
  }, null, 8, ["id", "title"])) : G("", !0)
628
744
  ], 64))), 128))
629
- ])) : (_(), K("div", on, F(P(s)("x-prop-tree.noComp")), 1));
745
+ ])) : (_(), K("div", un, F(P(s)("x-prop-tree.noComp")), 1));
630
746
  }
631
- }), un = { class: "text-subtitle-1 ml-3" }, rn = /* @__PURE__ */ E({
747
+ }), an = { class: "text-subtitle-1 ml-3" }, cn = /* @__PURE__ */ E({
632
748
  __name: "index",
633
749
  props: {
634
750
  modelValue: {},
@@ -636,7 +752,7 @@ const Yt = /* @__PURE__ */ E({
636
752
  },
637
753
  emits: ["update:modelValue"],
638
754
  setup(t) {
639
- const { t: s } = I(), n = Qe(), { sysBarAvail: e } = pe(), { backgroundColor1: l } = te(), o = z(t, "modelValue"), i = st(), u = L(() => {
755
+ const { t: s } = I(), n = Ze(), { sysBarAvail: e } = pe(), { backgroundColor1: l } = te(), o = z(t, "modelValue"), i = st(), u = L(() => {
640
756
  let f = "100%";
641
757
  return n.mdAndUp.value && (f = "400px"), {
642
758
  background: l.value,
@@ -706,7 +822,7 @@ const Yt = /* @__PURE__ */ E({
706
822
  icon: "mdi-close",
707
823
  onClick: v[0] || (v[0] = (x) => c.value = !1)
708
824
  }),
709
- q("span", un, F(P(s)("x-prop-tree.dlg.compSelect.title")), 1)
825
+ q("span", an, F(P(s)("x-prop-tree.dlg.compSelect.title")), 1)
710
826
  ]),
711
827
  _: 1
712
828
  }),
@@ -714,7 +830,7 @@ const Yt = /* @__PURE__ */ E({
714
830
  class: "overflow-y-auto",
715
831
  style: W(r.value)
716
832
  }, [
717
- b(sn, {
833
+ b(rn, {
718
834
  modelValue: o.value,
719
835
  "onUpdate:modelValue": v[1] || (v[1] = (x) => o.value = x),
720
836
  open: P(c),
@@ -731,7 +847,7 @@ const Yt = /* @__PURE__ */ E({
731
847
  }, 8, ["modelValue"]);
732
848
  };
733
849
  }
734
- }), an = /* @__PURE__ */ E({
850
+ }), dn = /* @__PURE__ */ E({
735
851
  __name: "editor",
736
852
  props: {
737
853
  modelValue: { required: !0 },
@@ -743,7 +859,7 @@ const Yt = /* @__PURE__ */ E({
743
859
  },
744
860
  emits: ["update:modelValue", "update:lock", "update:scale"],
745
861
  setup(t, { expose: s }) {
746
- const n = z(t, "modelValue"), e = z(t, "lock"), l = z(t, "scale"), o = xt(), i = St(), u = Oe(), r = He("target"), a = () => {
862
+ const n = z(t, "modelValue"), e = z(t, "lock"), l = z(t, "scale"), o = St(), i = Vt(), u = Oe(), r = Fe("target"), a = () => {
747
863
  const c = JSON.parse(n.value);
748
864
  r.value?.load(c);
749
865
  };
@@ -764,7 +880,7 @@ const Yt = /* @__PURE__ */ E({
764
880
  onReady: a
765
881
  }, null, 8, ["lock", "scale", "dark", "locale", "version"]));
766
882
  }
767
- }), cn = { class: "text-subtitle-1" }, dn = /* @__PURE__ */ E({
883
+ }), mn = { class: "text-subtitle-1" }, fn = /* @__PURE__ */ E({
768
884
  __name: "index",
769
885
  props: {
770
886
  modelValue: { required: !0 },
@@ -783,7 +899,7 @@ const Yt = /* @__PURE__ */ E({
783
899
  we(() => {
784
900
  c.value = !1;
785
901
  });
786
- const f = He("editor");
902
+ const f = Fe("editor");
787
903
  return oe(c, (v) => {
788
904
  v || f.value?.save();
789
905
  }), (v, C) => {
@@ -833,7 +949,7 @@ const Yt = /* @__PURE__ */ E({
833
949
  variant: "text",
834
950
  onClick: C[0] || (C[0] = (V) => c.value = !1)
835
951
  }),
836
- q("span", cn, F(P(s)("x-prop-tree.dlg.jsonEditor.title")), 1),
952
+ q("span", mn, F(P(s)("x-prop-tree.dlg.jsonEditor.title")), 1),
837
953
  b(D)
838
954
  ]),
839
955
  _: 1
@@ -841,7 +957,7 @@ const Yt = /* @__PURE__ */ E({
841
957
  q("div", {
842
958
  style: W(a.value)
843
959
  }, [
844
- b(an, {
960
+ b(dn, {
845
961
  ref_key: "editor",
846
962
  ref: f,
847
963
  modelValue: i.value,
@@ -860,7 +976,7 @@ const Yt = /* @__PURE__ */ E({
860
976
  }, 8, ["modelValue"]);
861
977
  };
862
978
  }
863
- }), mn = { class: "d-flex justify-space-between align-center my-2" }, fn = { class: "flex-grow-1" }, vn = /* @__PURE__ */ E({
979
+ }), vn = { class: "d-flex justify-space-between align-center my-2" }, pn = { class: "flex-grow-1" }, gn = /* @__PURE__ */ E({
864
980
  __name: "index",
865
981
  props: /* @__PURE__ */ Z({
866
982
  hasDelete: { type: Boolean, default: !1 },
@@ -871,7 +987,7 @@ const Yt = /* @__PURE__ */ E({
871
987
  }),
872
988
  emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
873
989
  setup(t, { emit: s }) {
874
- const { t: n } = I(), { isMobile: e } = pe(), l = z(t, "modelValue"), o = s, i = Oe(), u = L(() => Ne[i.value]?.types[t.types]), r = T(0), a = L(() => {
990
+ const { t: n } = I(), { isMobile: e } = pe(), l = z(t, "modelValue"), o = s, i = Oe(), u = L(() => Ne[i.value].types[t.types]), r = T(0), a = L(() => {
875
991
  const C = [];
876
992
  return u.value?.forEach(({ title: h }, S) => {
877
993
  C.push({
@@ -899,13 +1015,13 @@ const Yt = /* @__PURE__ */ E({
899
1015
  h !== void 0 && (f.value = h);
900
1016
  };
901
1017
  return Ke(() => {
902
- d.value?.ui === "pixelInput" ? f.value = Ut(l.value) : d.value?.ui === "percentInput" && (f.value = $t(l.value));
1018
+ d.value?.ui === "pixelInput" ? f.value = wt(l.value) : d.value?.ui === "percentInput" && (f.value = Mt(l.value));
903
1019
  }), oe(f, (C) => {
904
1020
  d.value?.ui === "pixelInput" ? l.value = C + "px" : d.value?.ui === "percentInput" && (l.value = C + "%");
905
1021
  }), (C, h) => {
906
1022
  const S = $("v-select"), D = $("v-number-input"), x = $("v-btn"), V = ee("ripple");
907
- return _(), K("div", mn, [
908
- q("div", fn, [
1023
+ return _(), K("div", vn, [
1024
+ q("div", pn, [
909
1025
  j(b(S, {
910
1026
  modelValue: r.value,
911
1027
  "onUpdate:modelValue": [
@@ -957,7 +1073,7 @@ const Yt = /* @__PURE__ */ E({
957
1073
  ]);
958
1074
  };
959
1075
  }
960
- }), pn = { class: "d-flex justify-space-between align-center" }, gn = /* @__PURE__ */ E({
1076
+ }), yn = { class: "d-flex justify-space-between align-center" }, hn = /* @__PURE__ */ E({
961
1077
  __name: "index",
962
1078
  props: /* @__PURE__ */ Z({
963
1079
  hasDelete: { type: Boolean, default: !1 },
@@ -988,7 +1104,7 @@ const Yt = /* @__PURE__ */ E({
988
1104
  };
989
1105
  return (i, u) => {
990
1106
  const r = $("v-number-input"), a = $("v-btn"), d = ee("ripple");
991
- return _(), K("div", pn, [
1107
+ return _(), K("div", yn, [
992
1108
  j(b(r, {
993
1109
  modelValue: e.value,
994
1110
  "onUpdate:modelValue": u[0] || (u[0] = (c) => e.value = c),
@@ -1021,7 +1137,7 @@ const Yt = /* @__PURE__ */ E({
1021
1137
  ]);
1022
1138
  };
1023
1139
  }
1024
- }), yn = { class: "d-flex justify-space-between align-center" }, hn = /* @__PURE__ */ E({
1140
+ }), kn = { class: "d-flex justify-space-between align-center" }, _n = /* @__PURE__ */ E({
1025
1141
  __name: "index",
1026
1142
  props: /* @__PURE__ */ Z({
1027
1143
  hasDelete: { type: Boolean, default: !1 },
@@ -1035,13 +1151,13 @@ const Yt = /* @__PURE__ */ E({
1035
1151
  setup(t, { emit: s }) {
1036
1152
  const { t: n } = I(), e = z(t, "modelValue"), l = s, o = Oe(), i = L(() => {
1037
1153
  const u = [];
1038
- return Ne[o.value]?.items[t.items].forEach(({ title: r, value: a }) => {
1039
- u.push({ title: n(r), value: a });
1154
+ return Ne[o.value].items[t.items].forEach(({ title: a, value: d }) => {
1155
+ u.push({ title: n(a), value: d });
1040
1156
  }), u;
1041
1157
  });
1042
1158
  return (u, r) => {
1043
1159
  const a = $("v-select"), d = $("v-btn"), c = ee("ripple");
1044
- return _(), K("div", yn, [
1160
+ return _(), K("div", kn, [
1045
1161
  j(b(a, {
1046
1162
  modelValue: e.value,
1047
1163
  "onUpdate:modelValue": r[0] || (r[0] = (f) => e.value = f),
@@ -1069,7 +1185,7 @@ const Yt = /* @__PURE__ */ E({
1069
1185
  ]);
1070
1186
  };
1071
1187
  }
1072
- }), kn = { class: "text-subtitle-2 ml-1" }, _n = { class: "text-caption text-grey ml-1" }, xn = /* @__PURE__ */ E({
1188
+ }), xn = { class: "text-subtitle-2 ml-1" }, Sn = { class: "text-caption text-grey ml-1" }, Vn = /* @__PURE__ */ E({
1073
1189
  __name: "group",
1074
1190
  props: {
1075
1191
  id: {},
@@ -1098,14 +1214,14 @@ const Yt = /* @__PURE__ */ E({
1098
1214
  icon: l.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
1099
1215
  size: "small"
1100
1216
  }, null, 8, ["icon"]),
1101
- q("span", kn, F(l.title), 1),
1102
- q("span", _n, F(l.count), 1)
1217
+ q("span", xn, F(l.title), 1),
1218
+ q("span", Sn, F(l.count), 1)
1103
1219
  ], 36)), [
1104
1220
  [c]
1105
1221
  ]);
1106
1222
  };
1107
1223
  }
1108
- }), Sn = { class: "text-subtitle-1 ml-6" }, Vn = /* @__PURE__ */ E({
1224
+ }), Cn = { class: "text-subtitle-1 ml-6" }, Un = /* @__PURE__ */ E({
1109
1225
  __name: "item",
1110
1226
  props: {
1111
1227
  id: {},
@@ -1128,16 +1244,16 @@ const Yt = /* @__PURE__ */ E({
1128
1244
  onMouseout: a[1] || (a[1] = (c) => i.value = !1),
1129
1245
  onMouseover: a[2] || (a[2] = (c) => i.value = !0)
1130
1246
  }, [
1131
- q("span", Sn, F(l.title), 1)
1247
+ q("span", Cn, F(l.title), 1)
1132
1248
  ], 36)), [
1133
1249
  [d]
1134
1250
  ]);
1135
1251
  };
1136
1252
  }
1137
- }), Cn = { key: 0 }, Un = {
1253
+ }), $n = { key: 0 }, wn = {
1138
1254
  key: 1,
1139
1255
  class: "text-body-2 text-grey ml-3"
1140
- }, $n = /* @__PURE__ */ E({
1256
+ }, Mn = /* @__PURE__ */ E({
1141
1257
  __name: "index",
1142
1258
  props: {
1143
1259
  modelValue: {},
@@ -1149,15 +1265,15 @@ const Yt = /* @__PURE__ */ E({
1149
1265
  setup(t) {
1150
1266
  const { t: s } = I(), n = z(t, "modelValue"), e = z(t, "open"), l = it(), o = (u) => {
1151
1267
  const r = ve(l, u);
1152
- r && Ye(l, u, !r.collapse);
1268
+ r && We(l, u, !r.collapse);
1153
1269
  }, i = (u) => {
1154
1270
  n.value = u, e.value = !1;
1155
1271
  };
1156
- return (u, r) => P(l).length > 0 ? (_(), K("div", Cn, [
1272
+ return (u, r) => P(l).length > 0 ? (_(), K("div", $n, [
1157
1273
  (_(!0), K(fe, null, Te(P(l), (a) => (_(), K(fe, {
1158
1274
  key: a.id
1159
1275
  }, [
1160
- a.type === 0 ? (_(), B(xn, {
1276
+ a.type === 0 ? (_(), B(Vn, {
1161
1277
  key: 0,
1162
1278
  id: a.id,
1163
1279
  collapse: a.collapse,
@@ -1165,16 +1281,16 @@ const Yt = /* @__PURE__ */ E({
1165
1281
  title: a.name,
1166
1282
  onXClick: o
1167
1283
  }, null, 8, ["id", "collapse", "count", "title"])) : G("", !0),
1168
- a.type === 1 && a.show ? (_(), B(Vn, {
1284
+ a.type === 1 && a.show ? (_(), B(Un, {
1169
1285
  key: 1,
1170
1286
  id: a.id,
1171
1287
  title: a.name,
1172
1288
  onXClick: i
1173
1289
  }, null, 8, ["id", "title"])) : G("", !0)
1174
1290
  ], 64))), 128))
1175
- ])) : (_(), K("div", Un, F(P(s)("x-prop-tree.noSlot")), 1));
1291
+ ])) : (_(), K("div", wn, F(P(s)("x-prop-tree.noSlot")), 1));
1176
1292
  }
1177
- }), wn = { class: "text-subtitle-1 ml-3" }, Mn = /* @__PURE__ */ E({
1293
+ }), bn = { class: "text-subtitle-1 ml-3" }, Pn = /* @__PURE__ */ E({
1178
1294
  __name: "index",
1179
1295
  props: {
1180
1296
  modelValue: {},
@@ -1182,7 +1298,7 @@ const Yt = /* @__PURE__ */ E({
1182
1298
  },
1183
1299
  emits: ["update:modelValue"],
1184
1300
  setup(t) {
1185
- const { t: s } = I(), n = Qe(), { sysBarAvail: e } = pe(), { backgroundColor1: l } = te(), o = z(t, "modelValue"), i = it(), u = L(() => {
1301
+ const { t: s } = I(), n = Ze(), { sysBarAvail: e } = pe(), { backgroundColor1: l } = te(), o = z(t, "modelValue"), i = it(), u = L(() => {
1186
1302
  let f = "100%";
1187
1303
  return n.mdAndUp.value && (f = "400px"), {
1188
1304
  background: l.value,
@@ -1252,7 +1368,7 @@ const Yt = /* @__PURE__ */ E({
1252
1368
  icon: "mdi-close",
1253
1369
  onClick: v[0] || (v[0] = (x) => c.value = !1)
1254
1370
  }),
1255
- q("span", wn, F(P(s)("x-prop-tree.dlg.slotSelect.title")), 1)
1371
+ q("span", bn, F(P(s)("x-prop-tree.dlg.slotSelect.title")), 1)
1256
1372
  ]),
1257
1373
  _: 1
1258
1374
  }),
@@ -1260,7 +1376,7 @@ const Yt = /* @__PURE__ */ E({
1260
1376
  class: "overflow-y-auto",
1261
1377
  style: W(r.value)
1262
1378
  }, [
1263
- b($n, {
1379
+ b(Mn, {
1264
1380
  modelValue: o.value,
1265
1381
  "onUpdate:modelValue": v[1] || (v[1] = (x) => o.value = x),
1266
1382
  open: P(c),
@@ -1277,7 +1393,7 @@ const Yt = /* @__PURE__ */ E({
1277
1393
  }, 8, ["modelValue"]);
1278
1394
  };
1279
1395
  }
1280
- }), bn = { class: "d-flex justify-space-between align-center" }, Pn = /* @__PURE__ */ E({
1396
+ }), Dn = { class: "d-flex justify-space-between align-center" }, An = /* @__PURE__ */ E({
1281
1397
  __name: "index",
1282
1398
  props: /* @__PURE__ */ Z({
1283
1399
  hasDelete: { type: Boolean, default: !1 },
@@ -1291,7 +1407,7 @@ const Yt = /* @__PURE__ */ E({
1291
1407
  const { isMobile: n } = pe(), e = z(t, "modelValue"), l = s, o = async (i) => {
1292
1408
  if (!i || t.readonly || !n())
1293
1409
  return;
1294
- const u = await Vt({
1410
+ const u = await Ct({
1295
1411
  title: "",
1296
1412
  value: e.value
1297
1413
  });
@@ -1299,7 +1415,7 @@ const Yt = /* @__PURE__ */ E({
1299
1415
  };
1300
1416
  return (i, u) => {
1301
1417
  const r = $("v-text-field"), a = $("v-btn"), d = ee("ripple");
1302
- return _(), K("div", bn, [
1418
+ return _(), K("div", Dn, [
1303
1419
  j(b(r, {
1304
1420
  modelValue: e.value,
1305
1421
  "onUpdate:modelValue": u[0] || (u[0] = (c) => e.value = c),
@@ -1327,7 +1443,7 @@ const Yt = /* @__PURE__ */ E({
1327
1443
  ]);
1328
1444
  };
1329
1445
  }
1330
- }), Dn = { class: "d-flex justify-space-between align-center" }, An = /* @__PURE__ */ E({
1446
+ }), Tn = { class: "d-flex justify-space-between align-center" }, Ln = /* @__PURE__ */ E({
1331
1447
  __name: "index",
1332
1448
  props: /* @__PURE__ */ Z({
1333
1449
  hasDelete: { type: Boolean, default: !1 },
@@ -1341,7 +1457,7 @@ const Yt = /* @__PURE__ */ E({
1341
1457
  const n = z(t, "modelValue"), e = s;
1342
1458
  return (l, o) => {
1343
1459
  const i = $("v-switch"), u = $("v-btn");
1344
- return _(), K("div", Dn, [
1460
+ return _(), K("div", Tn, [
1345
1461
  b(i, {
1346
1462
  modelValue: n.value,
1347
1463
  "onUpdate:modelValue": o[0] || (o[0] = (r) => n.value = r),
@@ -1363,8 +1479,8 @@ const Yt = /* @__PURE__ */ E({
1363
1479
  };
1364
1480
  }
1365
1481
  });
1366
- function Tn(t) {
1367
- return { renderUiColorPicker: (n, e, l, o, i) => e.ui !== "colorPicker" ? (console.assert(!1), k("div", "renderUiColorPicker property ui must be colorPicker")) : k(Zt, {
1482
+ function Nn(t) {
1483
+ return { renderUiColorPicker: (n, e, l, o, i) => e.ui !== "colorPicker" ? (console.assert(!1), k("div", "renderUiColorPicker property ui must be colorPicker")) : k(It, {
1368
1484
  modelValue: ne(
1369
1485
  n,
1370
1486
  e,
@@ -1391,8 +1507,8 @@ function Tn(t) {
1391
1507
  readonly: e.readonly
1392
1508
  }) };
1393
1509
  }
1394
- function Ln(t) {
1395
- return { renderUiCompSelect: (n, e, l, o, i) => e.ui !== "compSelect" ? (console.assert(!1), k("div", "renderUiCompSelect property ui must be compSelect")) : k(rn, {
1510
+ function Bn(t) {
1511
+ return { renderUiCompSelect: (n, e, l, o, i) => e.ui !== "compSelect" ? (console.assert(!1), k("div", "renderUiCompSelect property ui must be compSelect")) : k(cn, {
1396
1512
  modelValue: ne(
1397
1513
  n,
1398
1514
  e,
@@ -1414,7 +1530,7 @@ function Ln(t) {
1414
1530
  }
1415
1531
  }) };
1416
1532
  }
1417
- function Nn(t) {
1533
+ function On(t) {
1418
1534
  return { renderUiDummy: (n, e, l, o, i) => {
1419
1535
  if (e.ui !== "dummy") {
1420
1536
  console.assert(!1, "renderUiDummy property ui must be dummy");
@@ -1423,8 +1539,8 @@ function Nn(t) {
1423
1539
  ne(n, e, l, t, o, i);
1424
1540
  } };
1425
1541
  }
1426
- function Bn(t) {
1427
- return { renderUiJsonEditor: (n, e, l, o, i) => e.ui !== "jsonEditor" ? k("div", "renderUijsonEditor property ui must be jsonEditor") : k(dn, {
1542
+ function qn(t) {
1543
+ return { renderUiJsonEditor: (n, e, l, o, i) => e.ui !== "jsonEditor" ? k("div", "renderUijsonEditor property ui must be jsonEditor") : k(fn, {
1428
1544
  modelValue: ne(
1429
1545
  n,
1430
1546
  e,
@@ -1446,8 +1562,8 @@ function Bn(t) {
1446
1562
  }
1447
1563
  }) };
1448
1564
  }
1449
- function On(t) {
1450
- return { renderUiMultiTypes: (n, e, l, o, i) => e.ui !== "multiTypes" ? (console.assert(!1), k("div", "renderUiMultiTypes property ui must be multiTypes")) : k(vn, {
1565
+ function Kn(t) {
1566
+ return { renderUiMultiTypes: (n, e, l, o, i) => e.ui !== "multiTypes" ? (console.assert(!1), k("div", "renderUiMultiTypes property ui must be multiTypes")) : k(gn, {
1451
1567
  modelValue: ne(
1452
1568
  n,
1453
1569
  e,
@@ -1474,8 +1590,8 @@ function On(t) {
1474
1590
  types: e.types
1475
1591
  }) };
1476
1592
  }
1477
- function qn(t) {
1478
- return { renderUiNumInput: (n, e, l, o, i) => e.ui !== "numInput" ? (console.assert(!1), k("div", "renderUiNumInput property ui must be numInput")) : k(gn, {
1593
+ function Rn(t) {
1594
+ return { renderUiNumInput: (n, e, l, o, i) => e.ui !== "numInput" ? (console.assert(!1), k("div", "renderUiNumInput property ui must be numInput")) : k(hn, {
1479
1595
  modelValue: ne(
1480
1596
  n,
1481
1597
  e,
@@ -1506,7 +1622,7 @@ function qn(t) {
1506
1622
  readonly: e.readonly
1507
1623
  }) };
1508
1624
  }
1509
- const Kn = /* @__PURE__ */ E({
1625
+ const En = /* @__PURE__ */ E({
1510
1626
  __name: "index",
1511
1627
  props: {
1512
1628
  minHeight: {}
@@ -1538,13 +1654,13 @@ const Kn = /* @__PURE__ */ E({
1538
1654
  };
1539
1655
  }
1540
1656
  });
1541
- function Rn(t, s, n) {
1657
+ function Jn(t, s, n) {
1542
1658
  const { t: e } = I();
1543
1659
  return { renderProperty: (o, i, u) => {
1544
1660
  const r = o[o.length - 1];
1545
1661
  let d = typeof r == "number" ? `[${r + 1}]` : e(i.name);
1546
1662
  return me(t.value, o) && (d += " *"), k(
1547
- Kn,
1663
+ En,
1548
1664
  {
1549
1665
  minHeight: s.value,
1550
1666
  onMenu: (c, f) => {
@@ -1561,8 +1677,8 @@ function Rn(t, s, n) {
1561
1677
  );
1562
1678
  } };
1563
1679
  }
1564
- function En(t) {
1565
- return { renderUiSelect: (n, e, l, o, i) => e.ui !== "select" ? (console.assert(!1), k("div", "renderUiSelect property ui must be select")) : k(hn, {
1680
+ function Hn(t) {
1681
+ return { renderUiSelect: (n, e, l, o, i) => e.ui !== "select" ? (console.assert(!1), k("div", "renderUiSelect property ui must be select")) : k(_n, {
1566
1682
  modelValue: ne(
1567
1683
  n,
1568
1684
  e,
@@ -1590,8 +1706,8 @@ function En(t) {
1590
1706
  readonly: e.readonly
1591
1707
  }) };
1592
1708
  }
1593
- function Jn(t) {
1594
- return { renderUiSlotSelect: (n, e, l, o, i) => e.ui !== "slotSelect" ? (console.assert(!1), k("div", "renderUiSlotSelect property ui must be slotSelect")) : k(Mn, {
1709
+ function Xn(t) {
1710
+ return { renderUiSlotSelect: (n, e, l, o, i) => e.ui !== "slotSelect" ? (console.assert(!1), k("div", "renderUiSlotSelect property ui must be slotSelect")) : k(Pn, {
1595
1711
  modelValue: ne(
1596
1712
  n,
1597
1713
  e,
@@ -1613,8 +1729,8 @@ function Jn(t) {
1613
1729
  }
1614
1730
  }) };
1615
1731
  }
1616
- function Hn(t) {
1617
- return { renderUiStrInput: (n, e, l, o, i) => e.ui !== "strInput" ? (console.assert(!1), k("div", "renderUiStrInput property ui must be strInput")) : k(Pn, {
1732
+ function Fn(t) {
1733
+ return { renderUiStrInput: (n, e, l, o, i) => e.ui !== "strInput" ? (console.assert(!1), k("div", "renderUiStrInput property ui must be strInput")) : k(An, {
1618
1734
  modelValue: e.static ? e.value : ne(
1619
1735
  n,
1620
1736
  e,
@@ -1641,8 +1757,8 @@ function Hn(t) {
1641
1757
  readonly: e.static || e.readonly
1642
1758
  }) };
1643
1759
  }
1644
- function Xn(t) {
1645
- return { renderUiSwitch: (n, e, l, o, i) => e.ui !== "switch" ? (console.assert(!1), k("div", "renderUiSwitch property ui must be switch")) : k(An, {
1760
+ function zn(t) {
1761
+ return { renderUiSwitch: (n, e, l, o, i) => e.ui !== "switch" ? (console.assert(!1), k("div", "renderUiSwitch property ui must be switch")) : k(Ln, {
1646
1762
  modelValue: ne(
1647
1763
  n,
1648
1764
  e,
@@ -1669,121 +1785,6 @@ function Xn(t) {
1669
1785
  readonly: e.readonly
1670
1786
  }) };
1671
1787
  }
1672
- function Fn() {
1673
- const t = T([]);
1674
- zt(t);
1675
- const s = () => {
1676
- const { activeApp: o, depends: i } = Ze.app, u = [];
1677
- for (const { id: r, name: a, position: d } of o.compGroups) {
1678
- const c = t.value.find((f) => f.id === r);
1679
- u.push({
1680
- id: r,
1681
- type: 0,
1682
- name: a,
1683
- position: d,
1684
- collapse: c?.collapse ?? !0
1685
- });
1686
- }
1687
- for (const { id: r, groupId: a, name: d, position: c } of o.comps)
1688
- i[r] && u.push({ id: r, type: 1, name: d, position: c, group: a });
1689
- We(u, !0), t.value = u;
1690
- };
1691
- let n;
1692
- const e = () => {
1693
- clearTimeout(n), n = window.setTimeout(() => {
1694
- s(), n && e();
1695
- }, 1e3);
1696
- }, l = () => {
1697
- clearTimeout(n), n = void 0;
1698
- };
1699
- Xe(() => {
1700
- e();
1701
- }), Fe(() => {
1702
- l();
1703
- });
1704
- }
1705
- function zn(t, s, n) {
1706
- const { i18n: e } = Ct, l = T([]);
1707
- Gt(l);
1708
- const o = () => {
1709
- if (!t.value || !s.value || !n.value)
1710
- return;
1711
- const a = Ne[t.value];
1712
- if (!a) {
1713
- console.assert(!1, `invalid version=${t.value}`);
1714
- return;
1715
- }
1716
- const d = wt(s.value, n.value), c = [];
1717
- for (let h = 0; h < a.groups[d].length; h++) {
1718
- const S = a.groups[d][h], D = ve(l, S.key);
1719
- c.push({
1720
- id: S.key,
1721
- type: 0,
1722
- name: e.global.t(S.name),
1723
- position: h,
1724
- collapse: D?.collapse ?? !0,
1725
- count: 0
1726
- });
1727
- let x = 0;
1728
- for (const V of S.items) {
1729
- const U = Mt[V];
1730
- if (U && !U.internal && U.slots)
1731
- for (const O of U.slots) {
1732
- const Q = Re("elementSlot", U.key, O.key), ge = `${e.global.t(U.name)} / ${e.global.t(O.name)}`;
1733
- c.push({
1734
- id: Q,
1735
- type: 1,
1736
- name: ge,
1737
- position: x++,
1738
- group: S.key
1739
- });
1740
- }
1741
- }
1742
- }
1743
- const { activeApp: f, depends: v } = Ze.app;
1744
- for (const { id: h, name: S, position: D } of f.compGroups) {
1745
- const x = ve(l, h);
1746
- c.push({
1747
- id: h,
1748
- type: 0,
1749
- name: S,
1750
- position: D,
1751
- collapse: x?.collapse ?? !0
1752
- });
1753
- }
1754
- let C = 0;
1755
- for (const h of f.comps) {
1756
- const S = v[h.id];
1757
- if (S && S.meta.slots)
1758
- for (const D of S.meta.slots) {
1759
- const x = Re("customSlot", h.id, D.id), V = `${h.name} / ${D.name}`;
1760
- c.push({
1761
- id: x,
1762
- type: 1,
1763
- name: V,
1764
- position: C++,
1765
- group: h.groupId
1766
- });
1767
- }
1768
- }
1769
- We(c, !0), l.value = c;
1770
- };
1771
- let i;
1772
- const u = () => {
1773
- clearTimeout(i), i = window.setTimeout(() => {
1774
- o(), i && u();
1775
- }, 1e3);
1776
- }, r = () => {
1777
- clearTimeout(i), i = void 0;
1778
- };
1779
- Xe(() => {
1780
- u();
1781
- }), Fe(() => {
1782
- r();
1783
- }), oe([t, s, n], () => {
1784
- o(), u();
1785
- });
1786
- }
1787
1788
  const Gn = /* @__PURE__ */ E({
1788
1789
  __name: "index",
1789
1790
  props: {
@@ -1847,12 +1848,12 @@ const Gn = /* @__PURE__ */ E({
1847
1848
  () => {
1848
1849
  S.value = l.object;
1849
1850
  }
1850
- ), Jt(d), Xt(c), Fn(), zn(f, v, C);
1851
- const { renderProperty: D } = Rn(
1851
+ ), Jt(d), Xt(c), Zt(), Qt(f, v, C);
1852
+ const { renderProperty: D } = Jn(
1852
1853
  d,
1853
1854
  u,
1854
1855
  r
1855
- ), { renderUiDummy: x } = Nn(c), { renderUiStrInput: V } = Hn(c), { renderUiNumInput: U } = qn(c), { renderUiSwitch: O } = Xn(c), { renderUiSelect: Q } = En(c), { renderUiColorPicker: ge } = Tn(c), { renderUiJsonEditor: ut } = Bn(c), { renderUiMultiTypes: rt } = On(c), { renderUiCompSelect: at } = Ln(c), { renderUiSlotSelect: ct } = Jn(c), xe = (p, m, y, g, w, A) => (p = Ge(p), w !== void 0 ? (p.push(w), A && p.push(m.key)) : p.push(m.key), m.ui ? m.array && g ? ft(
1856
+ ), { renderUiDummy: x } = On(c), { renderUiStrInput: V } = Fn(c), { renderUiNumInput: U } = Rn(c), { renderUiSwitch: O } = zn(c), { renderUiSelect: Q } = Hn(c), { renderUiColorPicker: ge } = Nn(c), { renderUiJsonEditor: ut } = qn(c), { renderUiMultiTypes: rt } = Kn(c), { renderUiCompSelect: at } = Bn(c), { renderUiSlotSelect: ct } = Xn(c), xe = (p, m, y, g, w, A) => (p = Ge(p), w !== void 0 ? (p.push(w), A && p.push(m.key)) : p.push(m.key), m.ui ? m.array && g ? ft(
1856
1857
  p,
1857
1858
  m,
1858
1859
  y,
@@ -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 provideSlotList(slotList: Ref<ListEntry[]>): void;
23
- export declare function injectSlotList(): Ref<ListEntry[]>;
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.22",
4
+ "version": "0.7.24",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -23,36 +23,36 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "lodash-es": "^4.17.21",
26
- "vue": "^3.5.23",
27
- "vue-i18n": "^11.1.12",
28
- "vuetify": "^3.10.9",
29
- "x-block-lib": "^0.8.51",
30
- "x-essential-lib": "^0.9.13",
26
+ "vue": "^3.5.25",
27
+ "vue-i18n": "^11.2.2",
28
+ "vuetify": "^3.11.2",
29
+ "x-block-lib": "^0.8.58",
30
+ "x-essential-lib": "^0.9.19",
31
31
  "x-group-list": "^0.4.7",
32
- "x-runtime-lib": "^0.8.97",
33
- "x-state-lib": "^0.3.28"
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",
37
37
  "@types/lodash-es": "^4.17.12",
38
- "@types/node": "^24.10.0",
39
- "@vitejs/plugin-vue": "^6.0.1",
38
+ "@types/node": "^24.10.1",
39
+ "@vitejs/plugin-vue": "^6.0.2",
40
40
  "eslint": "^9.39.1",
41
41
  "eslint-config-prettier": "^10.1.8",
42
42
  "eslint-plugin-prettier": "^5.5.4",
43
- "eslint-plugin-vue": "^10.5.1",
43
+ "eslint-plugin-vue": "^10.6.2",
44
44
  "globals": "^16.5.0",
45
45
  "husky": "^9.1.7",
46
- "lint-staged": "^16.2.6",
47
- "prettier": "3.6.2",
48
- "sass": "^1.93.3",
46
+ "lint-staged": "^16.2.7",
47
+ "prettier": "3.7.4",
48
+ "sass": "^1.94.2",
49
49
  "typescript": "^5.9.3",
50
- "typescript-eslint": "^8.46.3",
51
- "vite": "^7.2.1",
50
+ "typescript-eslint": "^8.48.1",
51
+ "vite": "^7.2.6",
52
52
  "vite-plugin-css-injected-by-js": "^3.5.2",
53
53
  "vite-plugin-vuetify": "^2.1.2",
54
54
  "vue-eslint-parser": "^10.2.0",
55
55
  "vue-router": "^4.6.3",
56
- "vue-tsc": "^3.1.3"
56
+ "vue-tsc": "^3.1.5"
57
57
  }
58
58
  }