@drax/audit-vue 0.49.0 → 0.49.2

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": "0.49.0",
6
+ "version": "0.49.2",
7
7
  "type": "module",
8
8
  "main": "./src/index.ts",
9
9
  "module": "./src/index.ts",
@@ -62,5 +62,5 @@
62
62
  "vue-tsc": "^2.0.11",
63
63
  "vuetify": "^3.7.1"
64
64
  },
65
- "gitHead": "ea99f6fd79d282e6efe02fca660d5733c13bb86d"
65
+ "gitHead": "b6d9055c993340fb31bbad177366a0f5867e9eb1"
66
66
  }
@@ -11,8 +11,6 @@ import type {
11
11
  } from "@drax/crud-share";
12
12
  import {AuditProvider} from "@drax/audit-front";
13
13
 
14
- //Import EntityCrud Refs
15
-
16
14
  class AuditCrud extends EntityCrud implements IEntityCrud {
17
15
 
18
16
  static singleton: AuditCrud
@@ -183,7 +181,37 @@ class AuditCrud extends EntityCrud implements IEntityCrud {
183
181
  }
184
182
 
185
183
  get exportHeaders() {
186
- return ['_id']
184
+ return [
185
+ '_id',
186
+ 'createdAt',
187
+ 'action',
188
+ 'entity',
189
+ 'tenant',
190
+ 'user',
191
+ 'ip',
192
+ 'userAgent',
193
+ 'changes',
194
+ 'sessionId',
195
+ 'requestId',
196
+ 'detail'
197
+ ]
198
+ }
199
+
200
+ get exportHeadersTranslate() {
201
+ return [
202
+ 'audit.field._id',
203
+ 'audit.field.createdAt',
204
+ 'audit.field.action',
205
+ 'audit.field.entity',
206
+ 'audit.field.tenant',
207
+ 'audit.field.user',
208
+ 'audit.field.ip',
209
+ 'audit.field.userAgent',
210
+ 'audit.field.changes',
211
+ 'audit.field.sessionId',
212
+ 'audit.field.requestId',
213
+ 'audit.field.detail'
214
+ ]
187
215
  }
188
216
 
189
217
  get isImportable() {
@@ -8,7 +8,7 @@ import AuditView from "../../components/AuditView.vue";
8
8
  import {useI18n} from "vue-i18n";
9
9
 
10
10
  const {t, te} = useI18n();
11
- const store = useCrudStore();
11
+ const store = useCrudStore(AuditCrud.instance.name);
12
12
 
13
13
  </script>
14
14
 
@@ -17,6 +17,7 @@ const store = useCrudStore();
17
17
 
18
18
  <template v-slot:filter.entity="{filterIndex}">
19
19
  <entity-combobox
20
+ v-if="store.filters[filterIndex] !== undefined"
20
21
  v-model="store.filters[filterIndex].value"
21
22
  :clearable="true"
22
23
  density="compact"