@stonecrop/desktop 0.4.25 → 0.4.26
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/desktop.css +1 -1
- package/dist/desktop.js +2294 -2275
- package/dist/desktop.js.map +1 -1
- package/dist/desktop.umd.cjs +10 -10
- package/dist/desktop.umd.cjs.map +1 -1
- package/package.json +5 -5
- package/src/components/Records.vue +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stonecrop/desktop",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.26",
|
|
4
4
|
"description": "Desktop-specific components for Stonecrop UI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"vue": "^3.5.17",
|
|
32
|
-
"@stonecrop/aform": "0.4.
|
|
33
|
-
"@stonecrop/
|
|
34
|
-
"@stonecrop/
|
|
35
|
-
"@stonecrop/
|
|
32
|
+
"@stonecrop/aform": "0.4.26",
|
|
33
|
+
"@stonecrop/atable": "0.4.26",
|
|
34
|
+
"@stonecrop/stonecrop": "0.4.26",
|
|
35
|
+
"@stonecrop/themes": "0.4.26"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@microsoft/api-documenter": "^7.26.29",
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<ATable v-model="
|
|
2
|
+
<ATable v-model:rows="rows" v-model:columns="columns" :config="config" />
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script setup lang="ts">
|
|
6
|
-
import { ATable } from '@stonecrop/atable'
|
|
6
|
+
import { ATable, TableColumn } from '@stonecrop/atable'
|
|
7
7
|
import { useStonecrop } from '@stonecrop/stonecrop'
|
|
8
|
+
import { computed } from 'vue'
|
|
8
9
|
|
|
9
10
|
// TODO: use component if provided else call to Records Schema endpoint/ table / lookup
|
|
10
11
|
// alteratively: a view: component map, eg records: Records, gantt: GanttView
|
|
@@ -12,5 +13,7 @@ import { useStonecrop } from '@stonecrop/stonecrop'
|
|
|
12
13
|
// last_used_view_type in application state
|
|
13
14
|
|
|
14
15
|
const { stonecrop } = useStonecrop()
|
|
16
|
+
const rows = computed(() => stonecrop.value?.store.records)
|
|
17
|
+
const columns = computed((): TableColumn[] => stonecrop.value?.schema?.schema?.toArray())
|
|
15
18
|
const config = { view: 'list' }
|
|
16
19
|
</script>
|