@bgottsch/d-naive 1.8.10 → 1.8.11
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/module.d.mts
CHANGED
package/dist/module.json
CHANGED
|
@@ -25,12 +25,12 @@ import {
|
|
|
25
25
|
NCheckbox,
|
|
26
26
|
NVirtualList,
|
|
27
27
|
createDiscreteApi,
|
|
28
|
-
NBadge
|
|
28
|
+
NBadge,
|
|
29
|
+
useThemeVars
|
|
29
30
|
} from "naive-ui";
|
|
30
|
-
import { computed, ref, watch, useAttrs, h, toRaw, nextTick } from "vue";
|
|
31
|
+
import { computed, ref, watch, useAttrs, h, toRaw, nextTick, onMounted, onBeforeUnmount } from "vue";
|
|
31
32
|
import { formatValue, getValue, toDate } from "../utils";
|
|
32
33
|
import DInput from "./input.vue";
|
|
33
|
-
import { useThemeVars } from "naive-ui";
|
|
34
34
|
const themeVars = useThemeVars();
|
|
35
35
|
const { message, dialog } = createDiscreteApi(["message", "dialog"]);
|
|
36
36
|
const attrs = useAttrs();
|
|
@@ -169,9 +169,11 @@ const emit = defineEmits([
|
|
|
169
169
|
"delete",
|
|
170
170
|
"dragColumn"
|
|
171
171
|
]);
|
|
172
|
-
|
|
172
|
+
const stopDragging = () => {
|
|
173
173
|
isDragging = null;
|
|
174
|
-
}
|
|
174
|
+
};
|
|
175
|
+
onMounted(() => window.addEventListener("mouseup", stopDragging));
|
|
176
|
+
onBeforeUnmount(() => window.removeEventListener("mouseup", stopDragging));
|
|
175
177
|
const rowProps = (rowData, rowIndex) => ({
|
|
176
178
|
onClick: () => {
|
|
177
179
|
if (props.selectable && rowData.selectable != false) {
|
|
@@ -804,7 +806,7 @@ const processColumns = () => {
|
|
|
804
806
|
);
|
|
805
807
|
emit("put", editedRow.value);
|
|
806
808
|
editedIndex.value = null;
|
|
807
|
-
editedRow.value =
|
|
809
|
+
editedRow.value = null;
|
|
808
810
|
}
|
|
809
811
|
});
|
|
810
812
|
}
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
v-model:formatted-value="value"
|
|
59
59
|
value-format="yyyy-MM-dd"
|
|
60
60
|
:format="'dd/MM/yyyy'"
|
|
61
|
+
:update-value-on-close="true"
|
|
61
62
|
v-bind="f"
|
|
62
63
|
/>
|
|
63
64
|
<n-date-picker
|
|
@@ -65,6 +66,7 @@
|
|
|
65
66
|
v-model:formatted-value="value"
|
|
66
67
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
67
68
|
:format="'dd/MM/yyyy'"
|
|
69
|
+
:update-value-on-close="true"
|
|
68
70
|
v-bind="f"
|
|
69
71
|
/>
|
|
70
72
|
<n-spin v-else-if="f.type == 'cascader'" size="small" :show="loading">
|
|
@@ -120,7 +122,7 @@ if (props.asyncProps) {
|
|
|
120
122
|
});
|
|
121
123
|
}
|
|
122
124
|
const loading = computed(() => {
|
|
123
|
-
return loadingAsync.value
|
|
125
|
+
return loadingAsync.value || f.value.loading || false;
|
|
124
126
|
});
|
|
125
127
|
const f = computed(() => {
|
|
126
128
|
const field = {
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bgottsch/d-naive",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.11",
|
|
4
4
|
"description": "Vue library designed to enhance Naive UI components with additional functionalities for complex data handling and user input management",
|
|
5
|
-
"repository": "
|
|
5
|
+
"repository": "bgottsch/d-naive",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"exports": {
|
package/dist/runtime/observer.js
DELETED