@drax/dashboard-vue 0.37.0 → 0.37.3
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/cruds/DashboardCrud.ts +2 -2
- 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.3",
|
|
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": "d8cf16ef1e9c06ea03714dcc8104e3b9904d034e"
|
|
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},
|
|
@@ -184,7 +184,7 @@ class DashboardCrud extends EntityCrud implements IEntityCrud {
|
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
get isExportable() {
|
|
187
|
-
return
|
|
187
|
+
return false
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
get exportFormats() {
|
|
@@ -196,7 +196,7 @@ class DashboardCrud extends EntityCrud implements IEntityCrud {
|
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
get isImportable() {
|
|
199
|
-
return
|
|
199
|
+
return false
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
get isColumnSelectable() {
|
|
@@ -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
|
-
|