x-prop-tree 0.8.40 → 0.8.41
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 +17 -20
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(function(){try{document.getElementById(`x-prop-tree`)?.remove();const e = document.createElement(`style`);e.setAttribute(`id`, `x-prop-tree`);const t = document.createTextNode(``);e.appendChild(t);document.head.appendChild(e);}catch(e){console.error('rolldown-plugin-inject-css', e);}})()
|
|
2
2
|
import { n as isEqual, r as cloneDeep, t as omit } from "./vendor.mu9vrf3y.js";
|
|
3
3
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, h, inject, isRef, mergeModels, mergeProps, normalizeStyle, onBeforeUnmount, onMounted, onUnmounted, openBlock, provide, ref, renderList, renderSlot, resolveComponent, resolveDirective, toDisplayString, unref, useId, useModel, useTemplateRef, watch, watchEffect, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
4
|
-
import { eventBus, globalObjects, injectDark, injectLocale, openNumberDlg, openPromptDlg, useColor, useSystem, useViewStack } from "x-essential-lib";
|
|
4
|
+
import { eventBus, globalObjects, injectDark, injectInsets, injectLocale, openNumberDlg, openPromptDlg, useColor, useSystem, useViewStack } from "x-essential-lib";
|
|
5
5
|
import { getElement, getItems, getPropertyDefault, getPropertyDefaultArray, getTag, getTypes, isHexColor, isThemeColor, makeSlotId, parseNumberUnit, pkgs, rules, themeColors, unwrapSlotId } from "x-runtime-lib";
|
|
6
6
|
import { useI18n } from "vue-i18n";
|
|
7
7
|
import { globalState } from "x-state-lib";
|
|
@@ -1026,8 +1026,8 @@ var index_vue_vue_type_script_setup_true_lang_default$14 = /*@__PURE__*/ defineC
|
|
|
1026
1026
|
setup(__props, { emit: __emit }) {
|
|
1027
1027
|
const { t } = useI18n();
|
|
1028
1028
|
const display = useDisplay();
|
|
1029
|
-
const { safeAreaInsets } = useSystem();
|
|
1030
1029
|
const { backgroundColor1 } = useColor();
|
|
1030
|
+
const insets = injectInsets();
|
|
1031
1031
|
const adaptSlot = useModel(__props, "modelValue");
|
|
1032
1032
|
const emit = __emit;
|
|
1033
1033
|
const adaptSlotList = injectAdaptSlotList();
|
|
@@ -1043,7 +1043,7 @@ var index_vue_vue_type_script_setup_true_lang_default$14 = /*@__PURE__*/ defineC
|
|
|
1043
1043
|
const contStyle = computed(() => {
|
|
1044
1044
|
return {
|
|
1045
1045
|
position: "relative",
|
|
1046
|
-
height: `calc(100% - ${
|
|
1046
|
+
height: `calc(100% - ${insets.value.top + 48 + insets.value.bottom}px)`,
|
|
1047
1047
|
paddingBottom: "60px"
|
|
1048
1048
|
};
|
|
1049
1049
|
});
|
|
@@ -1117,10 +1117,10 @@ var index_vue_vue_type_script_setup_true_lang_default$14 = /*@__PURE__*/ defineC
|
|
|
1117
1117
|
class: "elevation-2",
|
|
1118
1118
|
style: normalizeStyle(wrapStyle.value)
|
|
1119
1119
|
}, [
|
|
1120
|
-
unref(
|
|
1120
|
+
unref(insets).top ? (openBlock(), createBlock(_component_v_sheet, {
|
|
1121
1121
|
key: 0,
|
|
1122
1122
|
color: "transparent",
|
|
1123
|
-
height: unref(
|
|
1123
|
+
height: unref(insets).top
|
|
1124
1124
|
}, null, 8, ["height"])) : createCommentVNode("v-if", true),
|
|
1125
1125
|
createVNode(_component_v_sheet, {
|
|
1126
1126
|
class: "d-flex align-center px-3",
|
|
@@ -1226,8 +1226,8 @@ var index_vue_vue_type_script_setup_true_lang_default$12 = /*@__PURE__*/ defineC
|
|
|
1226
1226
|
setup(__props, { emit: __emit }) {
|
|
1227
1227
|
const { t } = useI18n();
|
|
1228
1228
|
const display = useDisplay();
|
|
1229
|
-
const { safeAreaInsets } = useSystem();
|
|
1230
1229
|
const { backgroundColor1 } = useColor();
|
|
1230
|
+
const insets = injectInsets();
|
|
1231
1231
|
const comp = useModel(__props, "modelValue");
|
|
1232
1232
|
const emit = __emit;
|
|
1233
1233
|
const compList = injectCompList();
|
|
@@ -1243,13 +1243,10 @@ var index_vue_vue_type_script_setup_true_lang_default$12 = /*@__PURE__*/ defineC
|
|
|
1243
1243
|
const contStyle = computed(() => {
|
|
1244
1244
|
return {
|
|
1245
1245
|
position: "relative",
|
|
1246
|
-
height: `calc(100% - ${
|
|
1246
|
+
height: `calc(100% - ${insets.value.top + 48 + insets.value.bottom}px)`,
|
|
1247
1247
|
paddingBottom: "60px"
|
|
1248
1248
|
};
|
|
1249
1249
|
});
|
|
1250
|
-
computed(() => {
|
|
1251
|
-
return { height: "60px" };
|
|
1252
|
-
});
|
|
1253
1250
|
watchEffect(() => {
|
|
1254
1251
|
if (!comp.value) return;
|
|
1255
1252
|
const item = compList.items.value.find((entry) => entry.id === comp.value.id);
|
|
@@ -1317,10 +1314,10 @@ var index_vue_vue_type_script_setup_true_lang_default$12 = /*@__PURE__*/ defineC
|
|
|
1317
1314
|
class: "elevation-2",
|
|
1318
1315
|
style: normalizeStyle(wrapStyle.value)
|
|
1319
1316
|
}, [
|
|
1320
|
-
unref(
|
|
1317
|
+
unref(insets).top ? (openBlock(), createBlock(_component_v_sheet, {
|
|
1321
1318
|
key: 0,
|
|
1322
1319
|
color: "transparent",
|
|
1323
|
-
height: unref(
|
|
1320
|
+
height: unref(insets).top
|
|
1324
1321
|
}, null, 8, ["height"])) : createCommentVNode("v-if", true),
|
|
1325
1322
|
createVNode(_component_v_sheet, {
|
|
1326
1323
|
class: "d-flex align-center px-3",
|
|
@@ -1502,12 +1499,12 @@ var index_vue_vue_type_script_setup_true_lang_default$10 = /*@__PURE__*/ defineC
|
|
|
1502
1499
|
emits: /*@__PURE__*/ mergeModels(["delete"], ["update:modelValue"]),
|
|
1503
1500
|
setup(__props, { emit: __emit }) {
|
|
1504
1501
|
const { t } = useI18n();
|
|
1505
|
-
const { safeAreaInsets } = useSystem();
|
|
1506
1502
|
const { backgroundColor0, backgroundColor1, backgroundColor2 } = useColor();
|
|
1503
|
+
const insets = injectInsets();
|
|
1507
1504
|
const json = useModel(__props, "modelValue");
|
|
1508
1505
|
const emit = __emit;
|
|
1509
1506
|
const contStyle = computed(() => {
|
|
1510
|
-
let h =
|
|
1507
|
+
let h = insets.value.top + 48 + insets.value.bottom;
|
|
1511
1508
|
return {
|
|
1512
1509
|
position: "relative",
|
|
1513
1510
|
background: backgroundColor1.value,
|
|
@@ -1555,10 +1552,10 @@ var index_vue_vue_type_script_setup_true_lang_default$10 = /*@__PURE__*/ defineC
|
|
|
1555
1552
|
width: "100%"
|
|
1556
1553
|
}, {
|
|
1557
1554
|
default: withCtx(() => [
|
|
1558
|
-
unref(
|
|
1555
|
+
unref(insets).top ? (openBlock(), createBlock(_component_v_sheet, {
|
|
1559
1556
|
key: 0,
|
|
1560
1557
|
color: unref(backgroundColor2),
|
|
1561
|
-
height: unref(
|
|
1558
|
+
height: unref(insets).top
|
|
1562
1559
|
}, null, 8, ["color", "height"])) : createCommentVNode("v-if", true),
|
|
1563
1560
|
createVNode(_component_v_sheet, {
|
|
1564
1561
|
class: "d-flex align-center px-2",
|
|
@@ -2319,8 +2316,8 @@ var index_vue_vue_type_script_setup_true_lang_default$4 = /*@__PURE__*/ defineCo
|
|
|
2319
2316
|
setup(__props, { emit: __emit }) {
|
|
2320
2317
|
const { t } = useI18n();
|
|
2321
2318
|
const display = useDisplay();
|
|
2322
|
-
const { safeAreaInsets } = useSystem();
|
|
2323
2319
|
const { backgroundColor1 } = useColor();
|
|
2320
|
+
const insets = injectInsets();
|
|
2324
2321
|
const slot = useModel(__props, "modelValue");
|
|
2325
2322
|
const emit = __emit;
|
|
2326
2323
|
const slotList = injectSlotList();
|
|
@@ -2336,7 +2333,7 @@ var index_vue_vue_type_script_setup_true_lang_default$4 = /*@__PURE__*/ defineCo
|
|
|
2336
2333
|
const contStyle = computed(() => {
|
|
2337
2334
|
return {
|
|
2338
2335
|
position: "relative",
|
|
2339
|
-
height: `calc(100% - ${
|
|
2336
|
+
height: `calc(100% - ${insets.value.top + 48 + insets.value.bottom}px)`,
|
|
2340
2337
|
paddingBottom: "60px"
|
|
2341
2338
|
};
|
|
2342
2339
|
});
|
|
@@ -2407,10 +2404,10 @@ var index_vue_vue_type_script_setup_true_lang_default$4 = /*@__PURE__*/ defineCo
|
|
|
2407
2404
|
class: "elevation-2",
|
|
2408
2405
|
style: normalizeStyle(wrapStyle.value)
|
|
2409
2406
|
}, [
|
|
2410
|
-
unref(
|
|
2407
|
+
unref(insets).top ? (openBlock(), createBlock(_component_v_sheet, {
|
|
2411
2408
|
key: 0,
|
|
2412
2409
|
color: "transparent",
|
|
2413
|
-
height: unref(
|
|
2410
|
+
height: unref(insets).top
|
|
2414
2411
|
}, null, 8, ["height"])) : createCommentVNode("v-if", true),
|
|
2415
2412
|
createVNode(_component_v_sheet, {
|
|
2416
2413
|
class: "d-flex align-center px-3",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-prop-tree",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.41",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"vue": "^3.5.43",
|
|
48
48
|
"vue-i18n": "^11.4.13",
|
|
49
49
|
"vuetify": "^4.2.3",
|
|
50
|
-
"x-block-lib": "^0.11.
|
|
51
|
-
"x-essential-lib": "^0.11.
|
|
50
|
+
"x-block-lib": "^0.11.15",
|
|
51
|
+
"x-essential-lib": "^0.11.15",
|
|
52
52
|
"x-group-list": "^0.5.3",
|
|
53
53
|
"x-runtime-lib": "^0.10.8",
|
|
54
54
|
"x-state-lib": "^0.4.6"
|