@drax/dashboard-vue 0.37.0 → 0.37.1
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/package.json +3 -3
- package/src/combobox/DashboardCombobox.vue +1 -1
- package/src/components/GroupByCard/renders/GroupByBarsRender.vue +1 -1
- package/src/components/GroupByCard/renders/GroupByGalleryRender.vue +1 -1
- package/src/components/GroupByCard/renders/GroupByPieRender.vue +1 -1
- package/src/pages/crud/DashboardCrudPage.vue +2 -2
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.37.
|
|
6
|
+
"version": "0.37.1",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./src/index.ts",
|
|
9
9
|
"module": "./src/index.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"format": "prettier --write src/"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@drax/crud-front": "^0.37.
|
|
27
|
+
"@drax/crud-front": "^0.37.1",
|
|
28
28
|
"@drax/crud-share": "^0.37.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"vue-tsc": "^2.0.11",
|
|
63
63
|
"vuetify": "^3.7.1"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "e4be12cd506bf5255e0f8b26b89cdd2a660a523d"
|
|
66
66
|
}
|
|
@@ -3,7 +3,7 @@ import {ref, onMounted} from "vue"
|
|
|
3
3
|
import {DashboardProvider} from "@drax/dashboard-front";
|
|
4
4
|
import type {IDashboard} from "@drax/dashboard-share";
|
|
5
5
|
|
|
6
|
-
const valueModel = defineModel({default: null})
|
|
6
|
+
const valueModel = defineModel<IDashboard | undefined>({default: null})
|
|
7
7
|
|
|
8
8
|
const loading = ref(false)
|
|
9
9
|
const items = ref<IDashboard[]>([])
|
|
@@ -7,7 +7,7 @@ import type {IEntityCrudField} from "@drax/crud-share";
|
|
|
7
7
|
|
|
8
8
|
const {formatDateByUnit} = useDateFormat()
|
|
9
9
|
|
|
10
|
-
const {data,
|
|
10
|
+
const {data, fields, dateFormat, showLegend} = defineProps({
|
|
11
11
|
data: {type: Array as PropType<any[]>, required: false},
|
|
12
12
|
headers: {type: Array as PropType<any[]>, required: false},
|
|
13
13
|
fields: {type: Array as PropType<IEntityCrudField[]>, required: false},
|
|
@@ -7,7 +7,7 @@ import type {IEntityCrudField} from "@drax/crud-share";
|
|
|
7
7
|
|
|
8
8
|
const {formatDateByUnit} = useDateFormat()
|
|
9
9
|
|
|
10
|
-
const {data,
|
|
10
|
+
const {data, fields, dateFormat} = defineProps({
|
|
11
11
|
data: {type: Array as PropType<any[]>, required: false},
|
|
12
12
|
headers: {type: Array as PropType<any[]>, required: false},
|
|
13
13
|
fields: {type: Array as PropType<IEntityCrudField[]>, required: false},
|
|
@@ -7,7 +7,7 @@ import type {IEntityCrudField} from "@drax/crud-share";
|
|
|
7
7
|
|
|
8
8
|
const {formatDateByUnit} = useDateFormat()
|
|
9
9
|
|
|
10
|
-
const {data,
|
|
10
|
+
const {data, fields, dateFormat} = defineProps({
|
|
11
11
|
data: {type: Array as PropType<any[]>, required: false},
|
|
12
12
|
headers: {type: Array as PropType<any[]>, required: false},
|
|
13
13
|
fields: {type: Array as PropType<IEntityCrudField[]>, required: false},
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import DashboardCrud from '../../cruds/DashboardCrud'
|
|
3
3
|
import {Crud} from "@drax/crud-vue";
|
|
4
|
+
import type {IDashboard} from "@drax/dashboard-share";
|
|
4
5
|
|
|
5
6
|
</script>
|
|
6
7
|
|
|
7
8
|
<template>
|
|
8
9
|
<crud :entity="DashboardCrud.instance">
|
|
9
10
|
<template v-slot:item.actions="{ item }">
|
|
10
|
-
<v-btn size="small" icon="mdi-view-dashboard" :href="'/dashboard/identifier/'+ item?.identifier">
|
|
11
|
+
<v-btn size="small" icon="mdi-view-dashboard" :href="'/dashboard/identifier/'+ (item as IDashboard)?.identifier">
|
|
11
12
|
</v-btn>
|
|
12
13
|
</template>
|
|
13
14
|
</crud>
|
|
@@ -16,4 +17,3 @@ import {Crud} from "@drax/crud-vue";
|
|
|
16
17
|
<style scoped>
|
|
17
18
|
|
|
18
19
|
</style>
|
|
19
|
-
|