@drax/crud-vue 3.26.0 → 3.29.0
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
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "3.
|
|
6
|
+
"version": "3.29.0",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./src/index.ts",
|
|
9
9
|
"module": "./src/index.ts",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"format": "prettier --write src/"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@drax/common-front": "^3.
|
|
27
|
+
"@drax/common-front": "^3.29.0",
|
|
28
28
|
"@drax/crud-front": "^3.21.0",
|
|
29
|
-
"@drax/crud-share": "^3.
|
|
30
|
-
"@drax/media-vue": "^3.
|
|
29
|
+
"@drax/crud-share": "^3.29.0",
|
|
30
|
+
"@drax/media-vue": "^3.29.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"pinia": "^3.0.4",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"vue-tsc": "^3.2.4",
|
|
51
51
|
"vuetify": "^3.11.8"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "4f97968e53b812a348aec9f09e59bff69e71ca9e"
|
|
54
54
|
}
|
|
@@ -22,6 +22,7 @@ import CrudFiltersDynamic from "./CrudFiltersDynamic.vue";
|
|
|
22
22
|
import CrudFiltersAction from "./CrudFiltersAction.vue";
|
|
23
23
|
import CrudFilterButton from "./buttons/CrudFilterButton.vue";
|
|
24
24
|
import CrudSavedQueriesButton from "./buttons/CrudSavedQueriesButton.vue";
|
|
25
|
+
import CrudRefreshButton from "./buttons/CrudRefreshButton.vue";
|
|
25
26
|
|
|
26
27
|
const {t, te} = useI18n()
|
|
27
28
|
const {hasPermission} = useAuth()
|
|
@@ -98,6 +99,11 @@ onMounted(() => {
|
|
|
98
99
|
<slot name="toolbar">
|
|
99
100
|
</slot>
|
|
100
101
|
|
|
102
|
+
<crud-refresh-button
|
|
103
|
+
v-if="entity.isRefreshable !== false"
|
|
104
|
+
@click="doPaginate"
|
|
105
|
+
/>
|
|
106
|
+
|
|
101
107
|
<crud-create-button
|
|
102
108
|
v-if="entity.isCreatable"
|
|
103
109
|
:entity="entity"
|
|
@@ -22,6 +22,7 @@ import CrudFiltersAction from "./CrudFiltersAction.vue";
|
|
|
22
22
|
import CrudFilterButton from "./buttons/CrudFilterButton.vue";
|
|
23
23
|
import CrudSavedQueriesButton from "./buttons/CrudSavedQueriesButton.vue";
|
|
24
24
|
import CrudRowValue from "./CrudRowValue.vue";
|
|
25
|
+
import CrudRefreshButton from "./buttons/CrudRefreshButton.vue";
|
|
25
26
|
|
|
26
27
|
const {t, te} = useI18n()
|
|
27
28
|
const {hasPermission} = useAuth()
|
|
@@ -131,6 +132,11 @@ defineEmits(['import', 'export', 'create', 'update', 'delete', 'view', 'edit'])
|
|
|
131
132
|
|
|
132
133
|
</slot>
|
|
133
134
|
|
|
135
|
+
<crud-refresh-button
|
|
136
|
+
v-if="entity.isRefreshable !== false"
|
|
137
|
+
@click="doPaginate"
|
|
138
|
+
/>
|
|
139
|
+
|
|
134
140
|
<crud-create-button
|
|
135
141
|
v-if="entity.isCreatable"
|
|
136
142
|
:entity="entity"
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import {useI18n} from "vue-i18n";
|
|
3
|
+
|
|
4
|
+
const {t} = useI18n()
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<template>
|
|
8
|
+
<v-tooltip location="top">
|
|
9
|
+
<template v-slot:activator="{ props }">
|
|
10
|
+
<v-btn
|
|
11
|
+
v-bind="{ ...$attrs, ...props }"
|
|
12
|
+
icon="mdi-refresh"
|
|
13
|
+
class="mr-1"
|
|
14
|
+
variant="text"
|
|
15
|
+
>
|
|
16
|
+
</v-btn>
|
|
17
|
+
</template>
|
|
18
|
+
{{ t('action.refresh')}}
|
|
19
|
+
</v-tooltip>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<style scoped>
|
|
23
|
+
|
|
24
|
+
</style>
|
package/src/cruds/EntityCrud.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -14,6 +14,7 @@ import CrudNotify from "./components/CrudNotify.vue";
|
|
|
14
14
|
import CrudSearch from "./components/CrudSearch.vue";
|
|
15
15
|
import CrudAutocomplete from "./components/CrudAutocomplete.vue";
|
|
16
16
|
import CrudSavedQueriesButton from "./components/buttons/CrudSavedQueriesButton.vue";
|
|
17
|
+
import CrudRefreshButton from "./components/buttons/CrudRefreshButton.vue";
|
|
17
18
|
import EntityCombobox from "./components/combobox/EntityCombobox.vue";
|
|
18
19
|
import {useCrudStore} from "./stores/UseCrudStore";
|
|
19
20
|
import {useEntityStore} from "./stores/UseEntityStore";
|
|
@@ -39,6 +40,7 @@ export {
|
|
|
39
40
|
CrudSearch,
|
|
40
41
|
CrudAutocomplete,
|
|
41
42
|
CrudSavedQueriesButton,
|
|
43
|
+
CrudRefreshButton,
|
|
42
44
|
CrudFilters,
|
|
43
45
|
CrudFiltersAction,
|
|
44
46
|
useCrud,
|