@hybridly/vue 0.10.0-beta.3 → 0.10.0-beta.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.
- package/dist/index.mjs +7 -3
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1405,9 +1405,13 @@ function useTable(props, key, defaultOptions = {}) {
|
|
|
1405
1405
|
isSortable: !!refinements.sorts.find((sort) => sort.name === column.name),
|
|
1406
1406
|
isFilterable: !!refinements.filters.find((filters) => filters.name === column.name)
|
|
1407
1407
|
}))),
|
|
1408
|
-
data: computed(() =>
|
|
1409
|
-
return
|
|
1410
|
-
|
|
1408
|
+
data: computed(() => {
|
|
1409
|
+
return table.value.records.map((record) => {
|
|
1410
|
+
const entries = Object.entries(record).map(([key, value]) => [key, value.value]).filter(([key]) => key !== "__hybridId");
|
|
1411
|
+
if (entries.length === 0) return;
|
|
1412
|
+
return Object.fromEntries(entries);
|
|
1413
|
+
}).filter(Boolean);
|
|
1414
|
+
}),
|
|
1411
1415
|
records: computed(() => table.value.records.map((record) => ({
|
|
1412
1416
|
record: Object.values(record).map((record) => record.value),
|
|
1413
1417
|
key: getRecordKey(record),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hybridly/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.10.0-beta.
|
|
4
|
+
"version": "0.10.0-beta.4",
|
|
5
5
|
"description": "Vue adapter for Hybridly",
|
|
6
6
|
"author": "Enzo Innocenzi <enzo@innocenzi.dev>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@clickbar/dot-diver": "^1.0.7",
|
|
49
|
-
"@hybridly/core": "0.10.0-beta.
|
|
50
|
-
"@hybridly/utils": "0.10.0-beta.
|
|
49
|
+
"@hybridly/core": "0.10.0-beta.4",
|
|
50
|
+
"@hybridly/utils": "0.10.0-beta.4",
|
|
51
51
|
"@vue/devtools-api": "^7.7.6",
|
|
52
52
|
"defu": "^6.1.4",
|
|
53
53
|
"lodash.isequal": "^4.5.0",
|