x-prop-tree 0.7.48 → 0.8.0
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/index.js +5 -5
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, i as t, n, r, t as i } from "./vendor.kbufw3jy.js";
|
|
2
2
|
import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, h as m, inject as h, isRef as g, mergeModels as _, mergeProps as v, normalizeStyle as y, onBeforeUnmount as b, onMounted as x, onUnmounted as S, openBlock as C, provide as w, ref as T, renderList as E, renderSlot as ee, resolveComponent as D, resolveDirective as O, toDisplayString as k, unref as A, useId as j, useModel as M, useTemplateRef as te, watch as N, watchEffect as P, withCtx as F, withDirectives as I, withKeys as ne, withModifiers as L } from "vue";
|
|
3
|
-
import { getElement as re, getPropertyDefault as R, getPropertyDefaultArray as ie, getTag as ae, makeSlotId as oe,
|
|
3
|
+
import { getElement as re, getPropertyDefault as R, getPropertyDefaultArray as ie, getTag as ae, makeSlotId as oe, parsePercent as se, parsePixel as ce, pkgs as le } from "x-runtime-lib";
|
|
4
4
|
import { useI18n as z } from "vue-i18n";
|
|
5
5
|
import { eventBus as B, globalObjects as ue, injectDark as de, injectLocale as fe, openNumberDlg as pe, openPromptDlg as me, useColor as V, useSystem as H, useViewStack as U } from "x-essential-lib";
|
|
6
6
|
import { globalState as he } from "x-state-lib";
|
|
@@ -1275,7 +1275,7 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
|
|
|
1275
1275
|
let g = o(() => p.value?.[m.value]), _ = () => {
|
|
1276
1276
|
i.value = g.value?.default;
|
|
1277
1277
|
}, v = T(0), y = async (e) => {
|
|
1278
|
-
if (!e || !r() || g.value.
|
|
1278
|
+
if (!e || !r() || g.value.value !== "pixel" && g.value.value !== "percent") return;
|
|
1279
1279
|
let t = await pe({
|
|
1280
1280
|
title: "",
|
|
1281
1281
|
value: v.value,
|
|
@@ -1287,9 +1287,9 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
|
|
|
1287
1287
|
t !== void 0 && (v.value = t);
|
|
1288
1288
|
};
|
|
1289
1289
|
return P(() => {
|
|
1290
|
-
g.value?.
|
|
1290
|
+
g.value?.value === "pixel" ? v.value = ce(i.value) : g.value?.value === "percent" && (v.value = se(i.value));
|
|
1291
1291
|
}), N(v, (e) => {
|
|
1292
|
-
g.value?.
|
|
1292
|
+
g.value?.value === "pixel" ? i.value = e + "px" : g.value?.value === "percent" && (i.value = e + "%");
|
|
1293
1293
|
}), (t, n) => {
|
|
1294
1294
|
let r = D("v-select"), i = D("v-number-input"), o = D("v-btn"), d = O("ripple");
|
|
1295
1295
|
return C(), l("div", Ft, [u("div", It, [I(f(r, {
|
|
@@ -1309,7 +1309,7 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
|
|
|
1309
1309
|
void 0,
|
|
1310
1310
|
void 0,
|
|
1311
1311
|
{ stop: !0 }
|
|
1312
|
-
]]), g.value?.
|
|
1312
|
+
]]), g.value?.value === "pixel" || g.value?.value === "percent" ? I((C(), s(i, {
|
|
1313
1313
|
key: 0,
|
|
1314
1314
|
modelValue: v.value,
|
|
1315
1315
|
"onUpdate:modelValue": n[1] ||= (e) => v.value = e,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-prop-tree",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.8.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
"vuetify": "^4.0.2"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"x-block-lib": "^0.10.
|
|
31
|
+
"x-block-lib": "^0.10.12",
|
|
32
32
|
"x-error-lib": "^0.5.16",
|
|
33
33
|
"x-essential-lib": "^0.9.29",
|
|
34
34
|
"x-group-list": "^0.4.12",
|
|
35
|
-
"x-runtime-lib": "^0.
|
|
35
|
+
"x-runtime-lib": "^0.9.0",
|
|
36
36
|
"x-state-lib": "^0.3.42"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|