x-prop-tree 0.8.37 → 0.8.39
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 +27 -37
- package/package.json +21 -19
package/dist/index.js
CHANGED
|
@@ -1026,7 +1026,7 @@ 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 {
|
|
1029
|
+
const { safeAreaInset } = useSystem();
|
|
1030
1030
|
const { backgroundColor1 } = useColor();
|
|
1031
1031
|
const adaptSlot = useModel(__props, "modelValue");
|
|
1032
1032
|
const emit = __emit;
|
|
@@ -1041,16 +1041,12 @@ var index_vue_vue_type_script_setup_true_lang_default$14 = /*@__PURE__*/ defineC
|
|
|
1041
1041
|
};
|
|
1042
1042
|
});
|
|
1043
1043
|
const contStyle = computed(() => {
|
|
1044
|
-
let h = 48;
|
|
1045
|
-
if (sysBarAvail.value) h += 24;
|
|
1046
1044
|
return {
|
|
1047
1045
|
position: "relative",
|
|
1048
|
-
height: `calc(100% - ${
|
|
1046
|
+
height: `calc(100% - ${safeAreaInset.top + 48 + safeAreaInset.bottom}px)`,
|
|
1047
|
+
paddingBottom: "60px"
|
|
1049
1048
|
};
|
|
1050
1049
|
});
|
|
1051
|
-
const tailStyle = computed(() => {
|
|
1052
|
-
return { height: "60px" };
|
|
1053
|
-
});
|
|
1054
1050
|
watchEffect(() => {
|
|
1055
1051
|
if (!adaptSlot.value) return;
|
|
1056
1052
|
const item = adaptSlotList.items.value.find((entry) => entry.id === adaptSlot.value.id);
|
|
@@ -1121,11 +1117,11 @@ var index_vue_vue_type_script_setup_true_lang_default$14 = /*@__PURE__*/ defineC
|
|
|
1121
1117
|
class: "elevation-2",
|
|
1122
1118
|
style: normalizeStyle(wrapStyle.value)
|
|
1123
1119
|
}, [
|
|
1124
|
-
unref(
|
|
1120
|
+
unref(safeAreaInset).top ? (openBlock(), createBlock(_component_v_sheet, {
|
|
1125
1121
|
key: 0,
|
|
1126
1122
|
color: "transparent",
|
|
1127
|
-
height:
|
|
1128
|
-
})) : createCommentVNode("v-if", true),
|
|
1123
|
+
height: unref(safeAreaInset).top
|
|
1124
|
+
}, null, 8, ["height"])) : createCommentVNode("v-if", true),
|
|
1129
1125
|
createVNode(_component_v_sheet, {
|
|
1130
1126
|
class: "d-flex align-center px-3",
|
|
1131
1127
|
color: "transparent",
|
|
@@ -1146,7 +1142,7 @@ var index_vue_vue_type_script_setup_true_lang_default$14 = /*@__PURE__*/ defineC
|
|
|
1146
1142
|
open: unref(open),
|
|
1147
1143
|
"onUpdate:open": _cache[2] || (_cache[2] = ($event) => isRef(open) ? open.value = $event : null),
|
|
1148
1144
|
onXSelect: onAdaptSlotSelect
|
|
1149
|
-
}, null, 8, ["open"])
|
|
1145
|
+
}, null, 8, ["open"])], 4)
|
|
1150
1146
|
], 4)], 32)]),
|
|
1151
1147
|
_: 1
|
|
1152
1148
|
}, 8, ["modelValue"]);
|
|
@@ -1230,7 +1226,7 @@ var index_vue_vue_type_script_setup_true_lang_default$12 = /*@__PURE__*/ defineC
|
|
|
1230
1226
|
setup(__props, { emit: __emit }) {
|
|
1231
1227
|
const { t } = useI18n();
|
|
1232
1228
|
const display = useDisplay();
|
|
1233
|
-
const {
|
|
1229
|
+
const { safeAreaInset } = useSystem();
|
|
1234
1230
|
const { backgroundColor1 } = useColor();
|
|
1235
1231
|
const comp = useModel(__props, "modelValue");
|
|
1236
1232
|
const emit = __emit;
|
|
@@ -1245,14 +1241,13 @@ var index_vue_vue_type_script_setup_true_lang_default$12 = /*@__PURE__*/ defineC
|
|
|
1245
1241
|
};
|
|
1246
1242
|
});
|
|
1247
1243
|
const contStyle = computed(() => {
|
|
1248
|
-
let h = 48;
|
|
1249
|
-
if (sysBarAvail.value) h += 24;
|
|
1250
1244
|
return {
|
|
1251
1245
|
position: "relative",
|
|
1252
|
-
height: `calc(100% - ${
|
|
1246
|
+
height: `calc(100% - ${safeAreaInset.top + 48 + safeAreaInset.bottom}px)`,
|
|
1247
|
+
paddingBottom: "60px"
|
|
1253
1248
|
};
|
|
1254
1249
|
});
|
|
1255
|
-
|
|
1250
|
+
computed(() => {
|
|
1256
1251
|
return { height: "60px" };
|
|
1257
1252
|
});
|
|
1258
1253
|
watchEffect(() => {
|
|
@@ -1322,11 +1317,11 @@ var index_vue_vue_type_script_setup_true_lang_default$12 = /*@__PURE__*/ defineC
|
|
|
1322
1317
|
class: "elevation-2",
|
|
1323
1318
|
style: normalizeStyle(wrapStyle.value)
|
|
1324
1319
|
}, [
|
|
1325
|
-
unref(
|
|
1320
|
+
unref(safeAreaInset).top ? (openBlock(), createBlock(_component_v_sheet, {
|
|
1326
1321
|
key: 0,
|
|
1327
1322
|
color: "transparent",
|
|
1328
|
-
height:
|
|
1329
|
-
})) : createCommentVNode("v-if", true),
|
|
1323
|
+
height: unref(safeAreaInset).top
|
|
1324
|
+
}, null, 8, ["height"])) : createCommentVNode("v-if", true),
|
|
1330
1325
|
createVNode(_component_v_sheet, {
|
|
1331
1326
|
class: "d-flex align-center px-3",
|
|
1332
1327
|
color: "transparent",
|
|
@@ -1347,7 +1342,7 @@ var index_vue_vue_type_script_setup_true_lang_default$12 = /*@__PURE__*/ defineC
|
|
|
1347
1342
|
open: unref(open),
|
|
1348
1343
|
"onUpdate:open": _cache[2] || (_cache[2] = ($event) => isRef(open) ? open.value = $event : null),
|
|
1349
1344
|
onXSelect: onCompSelect
|
|
1350
|
-
}, null, 8, ["open"])
|
|
1345
|
+
}, null, 8, ["open"])], 4)
|
|
1351
1346
|
], 4)], 32)]),
|
|
1352
1347
|
_: 1
|
|
1353
1348
|
}, 8, ["modelValue"]);
|
|
@@ -1507,13 +1502,12 @@ var index_vue_vue_type_script_setup_true_lang_default$10 = /*@__PURE__*/ defineC
|
|
|
1507
1502
|
emits: /*@__PURE__*/ mergeModels(["delete"], ["update:modelValue"]),
|
|
1508
1503
|
setup(__props, { emit: __emit }) {
|
|
1509
1504
|
const { t } = useI18n();
|
|
1510
|
-
const {
|
|
1505
|
+
const { safeAreaInset } = useSystem();
|
|
1511
1506
|
const { backgroundColor0, backgroundColor1, backgroundColor2 } = useColor();
|
|
1512
1507
|
const json = useModel(__props, "modelValue");
|
|
1513
1508
|
const emit = __emit;
|
|
1514
1509
|
const contStyle = computed(() => {
|
|
1515
|
-
let h = 48;
|
|
1516
|
-
if (sysBarAvail.value) h += 24;
|
|
1510
|
+
let h = safeAreaInset.top + 48 + safeAreaInset.bottom;
|
|
1517
1511
|
return {
|
|
1518
1512
|
position: "relative",
|
|
1519
1513
|
background: backgroundColor1.value,
|
|
@@ -1561,11 +1555,11 @@ var index_vue_vue_type_script_setup_true_lang_default$10 = /*@__PURE__*/ defineC
|
|
|
1561
1555
|
width: "100%"
|
|
1562
1556
|
}, {
|
|
1563
1557
|
default: withCtx(() => [
|
|
1564
|
-
unref(
|
|
1558
|
+
unref(safeAreaInset).top ? (openBlock(), createBlock(_component_v_sheet, {
|
|
1565
1559
|
key: 0,
|
|
1566
1560
|
color: unref(backgroundColor2),
|
|
1567
|
-
height:
|
|
1568
|
-
}, null, 8, ["color"])) : createCommentVNode("v-if", true),
|
|
1561
|
+
height: unref(safeAreaInset).top
|
|
1562
|
+
}, null, 8, ["color", "height"])) : createCommentVNode("v-if", true),
|
|
1569
1563
|
createVNode(_component_v_sheet, {
|
|
1570
1564
|
class: "d-flex align-center px-2",
|
|
1571
1565
|
color: unref(backgroundColor2),
|
|
@@ -2325,7 +2319,7 @@ var index_vue_vue_type_script_setup_true_lang_default$4 = /*@__PURE__*/ defineCo
|
|
|
2325
2319
|
setup(__props, { emit: __emit }) {
|
|
2326
2320
|
const { t } = useI18n();
|
|
2327
2321
|
const display = useDisplay();
|
|
2328
|
-
const {
|
|
2322
|
+
const { safeAreaInset } = useSystem();
|
|
2329
2323
|
const { backgroundColor1 } = useColor();
|
|
2330
2324
|
const slot = useModel(__props, "modelValue");
|
|
2331
2325
|
const emit = __emit;
|
|
@@ -2340,16 +2334,12 @@ var index_vue_vue_type_script_setup_true_lang_default$4 = /*@__PURE__*/ defineCo
|
|
|
2340
2334
|
};
|
|
2341
2335
|
});
|
|
2342
2336
|
const contStyle = computed(() => {
|
|
2343
|
-
let h = 48;
|
|
2344
|
-
if (sysBarAvail.value) h += 24;
|
|
2345
2337
|
return {
|
|
2346
2338
|
position: "relative",
|
|
2347
|
-
height: `calc(100% - ${
|
|
2339
|
+
height: `calc(100% - ${safeAreaInset.top + 48 + safeAreaInset.bottom}px)`,
|
|
2340
|
+
paddingBottom: "60px"
|
|
2348
2341
|
};
|
|
2349
2342
|
});
|
|
2350
|
-
const tailStyle = computed(() => {
|
|
2351
|
-
return { height: "60px" };
|
|
2352
|
-
});
|
|
2353
2343
|
watchEffect(() => {
|
|
2354
2344
|
if (!slot.value) return;
|
|
2355
2345
|
const item = slotList.value.find((entry) => entry.id === slot.value.id);
|
|
@@ -2417,11 +2407,11 @@ var index_vue_vue_type_script_setup_true_lang_default$4 = /*@__PURE__*/ defineCo
|
|
|
2417
2407
|
class: "elevation-2",
|
|
2418
2408
|
style: normalizeStyle(wrapStyle.value)
|
|
2419
2409
|
}, [
|
|
2420
|
-
unref(
|
|
2410
|
+
unref(safeAreaInset).top ? (openBlock(), createBlock(_component_v_sheet, {
|
|
2421
2411
|
key: 0,
|
|
2422
2412
|
color: "transparent",
|
|
2423
|
-
height:
|
|
2424
|
-
})) : createCommentVNode("v-if", true),
|
|
2413
|
+
height: unref(safeAreaInset).top
|
|
2414
|
+
}, null, 8, ["height"])) : createCommentVNode("v-if", true),
|
|
2425
2415
|
createVNode(_component_v_sheet, {
|
|
2426
2416
|
class: "d-flex align-center px-3",
|
|
2427
2417
|
color: "transparent",
|
|
@@ -2442,7 +2432,7 @@ var index_vue_vue_type_script_setup_true_lang_default$4 = /*@__PURE__*/ defineCo
|
|
|
2442
2432
|
open: unref(open),
|
|
2443
2433
|
"onUpdate:open": _cache[2] || (_cache[2] = ($event) => isRef(open) ? open.value = $event : null),
|
|
2444
2434
|
onXSelect: onSlotSelect
|
|
2445
|
-
}, null, 8, ["open"])
|
|
2435
|
+
}, null, 8, ["open"])], 4)
|
|
2446
2436
|
], 4)], 32)]),
|
|
2447
2437
|
_: 1
|
|
2448
2438
|
}, 8, ["modelValue"]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-prop-tree",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.39",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -19,35 +19,37 @@
|
|
|
19
19
|
"lint": "oxlint",
|
|
20
20
|
"fmt": "oxfmt",
|
|
21
21
|
"build": "tsdown",
|
|
22
|
+
"ncu:check": "ncu --dep dev,peer -x typescript",
|
|
23
|
+
"ncu:update": "ncu --dep dev,peer -x typescript -u",
|
|
22
24
|
"lint-staged": "lint-staged",
|
|
23
25
|
"prepare": "husky"
|
|
24
26
|
},
|
|
25
27
|
"devDependencies": {
|
|
26
28
|
"@types/lodash-es": "^4.17.12",
|
|
27
|
-
"@types/node": "^26.
|
|
29
|
+
"@types/node": "^26.6.4",
|
|
28
30
|
"husky": "^9.1.7",
|
|
29
|
-
"lint-staged": "^17.
|
|
31
|
+
"lint-staged": "^17.6.0",
|
|
30
32
|
"lodash-es": "^4.18.1",
|
|
31
|
-
"oxfmt": "^0.
|
|
32
|
-
"oxlint": "^1.
|
|
33
|
+
"oxfmt": "^0.71.0",
|
|
34
|
+
"oxlint": "^1.86.0",
|
|
33
35
|
"picomatch": "^4.0.7",
|
|
34
|
-
"sass": "^1.
|
|
36
|
+
"sass": "^1.105.1",
|
|
35
37
|
"tsdown": "^0.23.0",
|
|
36
38
|
"typescript": "^6.0.3",
|
|
37
|
-
"vite": "^8.3.
|
|
38
|
-
"
|
|
39
|
-
"x-config-
|
|
40
|
-
"x-config-
|
|
39
|
+
"vite": "^8.3.2",
|
|
40
|
+
"vue-tsc": "^3.3.12",
|
|
41
|
+
"x-config-lib": "^0.1.10",
|
|
42
|
+
"x-config-oxfmt": "^0.1.7",
|
|
43
|
+
"x-config-oxlint": "^0.1.8"
|
|
41
44
|
},
|
|
42
45
|
"peerDependencies": {
|
|
43
|
-
"vue": "^3.5.
|
|
44
|
-
"vue-i18n": "^11.4.
|
|
45
|
-
"vuetify": "^4.2.
|
|
46
|
-
"x-block-lib": "^0.11.
|
|
47
|
-
"x-
|
|
48
|
-
"x-
|
|
49
|
-
"x-
|
|
50
|
-
"x-
|
|
51
|
-
"x-state-lib": "^0.4.5"
|
|
46
|
+
"vue": "^3.5.43",
|
|
47
|
+
"vue-i18n": "^11.4.13",
|
|
48
|
+
"vuetify": "^4.2.3",
|
|
49
|
+
"x-block-lib": "^0.11.13",
|
|
50
|
+
"x-essential-lib": "^0.11.12",
|
|
51
|
+
"x-group-list": "^0.5.3",
|
|
52
|
+
"x-runtime-lib": "^0.10.8",
|
|
53
|
+
"x-state-lib": "^0.4.6"
|
|
52
54
|
}
|
|
53
55
|
}
|