fds-vue-core 2.0.50 → 2.0.52
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/App.vue.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../src/App.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../src/App.vue"],"names":[],"mappings":";AAuVA,wBACG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreeNode.vue.d.ts","sourceRoot":"","sources":["../../../src/components/FdsTreeView/TreeNode.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TreeNode.vue.d.ts","sourceRoot":"","sources":["../../../src/components/FdsTreeView/TreeNode.vue"],"names":[],"mappings":"AAyYA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAO/C,KAAK,KAAK,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,gBAAgB,CAAC,CAAC,CAAC,CAAA;AAE7D,KAAK,WAAW,GAAG,KAAK,CAAC;;;;;;;;;;;;;;;;;AA4rBzB,wBAGG"}
|
package/dist/fds-vue-core.cjs.js
CHANGED
|
@@ -1281,16 +1281,16 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
1281
1281
|
}
|
|
1282
1282
|
return `Fäll ut ${title}`;
|
|
1283
1283
|
};
|
|
1284
|
+
const hasChildrenNodes = vue.computed(() => {
|
|
1285
|
+
const nodesToCheck = props.searchEnabled && treeState?.searchTerm?.value ? filteredNodes.value : props.nodes;
|
|
1286
|
+
return Array.isArray(nodesToCheck) && nodesToCheck.length > 0;
|
|
1287
|
+
});
|
|
1284
1288
|
const indentValue = props.depth * props.indentation;
|
|
1285
1289
|
const indent = vue.computed(() => ({
|
|
1286
1290
|
flexDirection: "row",
|
|
1287
1291
|
alignItems: "center",
|
|
1288
|
-
paddingLeft: `${indentValue}px`
|
|
1292
|
+
paddingLeft: `${indentValue + (hasChildrenNodes.value ? 0 : 4)}px`
|
|
1289
1293
|
}));
|
|
1290
|
-
const hasChildrenNodes = vue.computed(() => {
|
|
1291
|
-
const nodesToCheck = props.searchEnabled && treeState?.searchTerm?.value ? filteredNodes.value : props.nodes;
|
|
1292
|
-
return Array.isArray(nodesToCheck) && nodesToCheck.length > 0;
|
|
1293
|
-
});
|
|
1294
1294
|
const filteredNodes = vue.computed(() => {
|
|
1295
1295
|
const t = String(treeState?.searchTerm?.value || "").trim();
|
|
1296
1296
|
if (!props.searchEnabled || !t || t.length < (treeState?.triggerLength ?? 1)) {
|
|
@@ -1406,9 +1406,13 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
1406
1406
|
return "";
|
|
1407
1407
|
});
|
|
1408
1408
|
const selectedOption = vue.ref(currentOption.value);
|
|
1409
|
-
vue.watch(
|
|
1410
|
-
|
|
1411
|
-
|
|
1409
|
+
vue.watch(
|
|
1410
|
+
currentOption,
|
|
1411
|
+
(newValue) => {
|
|
1412
|
+
selectedOption.value = newValue;
|
|
1413
|
+
},
|
|
1414
|
+
{ immediate: true }
|
|
1415
|
+
);
|
|
1412
1416
|
vue.watch(selectedOption, (newValue) => {
|
|
1413
1417
|
if (newValue) {
|
|
1414
1418
|
handleOptionClick(newValue);
|
|
@@ -2704,7 +2708,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
2704
2708
|
invalidMessage: { default: void 0 },
|
|
2705
2709
|
name: { default: void 0 },
|
|
2706
2710
|
id: { default: void 0 },
|
|
2707
|
-
placeholder: { default:
|
|
2711
|
+
placeholder: { default: void 0 },
|
|
2708
2712
|
options: { default: void 0 }
|
|
2709
2713
|
}, {
|
|
2710
2714
|
"modelValue": { default: void 0, required: false },
|