@alaarab/ogrid-vue-radix 2.5.3 → 2.5.4
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h as i } from "vue";
|
|
2
|
-
import { createInlineCellEditor as
|
|
3
|
-
const
|
|
2
|
+
import { createInlineCellEditor as l } from "@alaarab/ogrid-vue";
|
|
3
|
+
const p = l({
|
|
4
4
|
renderCheckbox: ({ checked: r, onChange: t, onCancel: n }) => i("input", {
|
|
5
5
|
type: "checkbox",
|
|
6
6
|
checked: r,
|
|
@@ -12,18 +12,12 @@ const d = c({
|
|
|
12
12
|
}
|
|
13
13
|
}),
|
|
14
14
|
renderDatePicker: ({ value: r, onChange: t, onCancel: n }) => i("input", {
|
|
15
|
-
type: "
|
|
15
|
+
type: "text",
|
|
16
16
|
value: r,
|
|
17
17
|
style: { width: "100%", height: "100%", border: "none", outline: "none", padding: "0 4px", fontSize: "inherit" },
|
|
18
18
|
onVnodeMounted: (e) => {
|
|
19
19
|
const o = e.el;
|
|
20
|
-
|
|
21
|
-
o.focus();
|
|
22
|
-
try {
|
|
23
|
-
o.showPicker();
|
|
24
|
-
} catch {
|
|
25
|
-
}
|
|
26
|
-
}
|
|
20
|
+
o && (o.focus(), o.select());
|
|
27
21
|
},
|
|
28
22
|
onKeydown: (e) => {
|
|
29
23
|
e.key === "Enter" && (e.preventDefault(), t(e.target.value)), e.key === "Escape" && (e.preventDefault(), n()), e.key === "Tab" && (e.preventDefault(), t(e.target.value));
|
|
@@ -32,5 +26,5 @@ const d = c({
|
|
|
32
26
|
})
|
|
33
27
|
});
|
|
34
28
|
export {
|
|
35
|
-
|
|
29
|
+
p as InlineCellEditor
|
|
36
30
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alaarab/ogrid-vue-radix",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.4",
|
|
4
4
|
"description": "OGrid Vue Radix – Lightweight data grid with sorting, filtering, pagination, column chooser, and CSV export. Built with Headless UI Vue.",
|
|
5
5
|
"main": "dist/esm/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"node": ">=18"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@alaarab/ogrid-vue": "2.5.
|
|
45
|
+
"@alaarab/ogrid-vue": "2.5.4"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@headlessui/vue": "^1.7.23",
|