adminforth 1.1.21 → 1.1.23

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.
Files changed (38) hide show
  1. package/dist/plugins/AccessControl/index.js +56 -3
  2. package/dist/spa/index.html +2 -2
  3. package/dist/spa/package-lock.json +189 -1
  4. package/dist/spa/package.json +6 -1
  5. package/dist/spa/spa/src/composables/useFrontendApi.ts +12 -0
  6. package/dist/spa/spa/src/views/ShowView.vue +22 -27
  7. package/dist/spa/src/App.vue +76 -57
  8. package/dist/spa/src/components/AcceptModal.vue +1 -1
  9. package/dist/spa/src/components/CustomDatePicker.vue +3 -3
  10. package/dist/spa/src/components/CustomDateRangePicker.vue +3 -3
  11. package/dist/spa/src/components/CustomRangePicker.vue +148 -0
  12. package/dist/spa/src/components/Dropdown.vue +13 -4
  13. package/dist/spa/src/components/Filters.vue +55 -22
  14. package/dist/spa/src/components/MenuLink.vue +2 -2
  15. package/dist/spa/src/components/ResourceForm.vue +157 -99
  16. package/dist/spa/src/components/ValueRenderer.vue +11 -1
  17. package/dist/spa/src/router/index.ts +3 -2
  18. package/dist/spa/src/stores/core.ts +22 -33
  19. package/dist/spa/src/utils.ts +5 -3
  20. package/dist/spa/src/views/CreateView.vue +15 -7
  21. package/dist/spa/src/views/EditView.vue +36 -8
  22. package/dist/spa/src/views/ListView.vue +35 -23
  23. package/dist/spa/src/views/LoginView.vue +1 -1
  24. package/dist/spa/src/views/ResourceParent.vue +1 -1
  25. package/dist/spa/src/views/ShowView.vue +20 -9
  26. package/dist/spa/tailwind.config.js +5 -2
  27. package/index.ts +0 -1
  28. package/package.json +1 -1
  29. package/spa/src/composables/useFrontendApi.ts +12 -0
  30. package/spa/src/views/ShowView.vue +22 -27
  31. package/dist/plugins/AuditLog/index.js +0 -66
  32. package/dist/plugins/AuditLog/types.js +0 -1
  33. package/dist/plugins/plugins/ForeignInlineListPlugin/custom/InlineList.vue +0 -248
  34. package/dist/spa/spa/src/components/ShowTableItem.vue +0 -14
  35. package/dist/spa/spa/src/views/HomeView.vue +0 -8
  36. package/dist/spa/src/views/HomeView.vue +0 -8
  37. package/plugins/AccessControl/index.ts +0 -29
  38. package/plugins/AccessControl/types.ts +0 -7
@@ -1,14 +0,0 @@
1
- <template>
2
- <td class="px-6 py-4 whitespace-nowrap">
3
- {{ column.label }}
4
- </td>
5
- <td class="px-6 py-4 whitespace-nowrap whitespace-pre-wrap">
6
- <ValueRenderer :column="column" :row="row" />
7
- </td>
8
- </template>
9
-
10
- <script setup>
11
- import ValueRenderer from '@/components/ValueRenderer.vue';
12
-
13
- defineProps(['column', 'row']);
14
- </script>
@@ -1,8 +0,0 @@
1
- <script setup lang="ts">
2
- </script>
3
-
4
- <template>
5
- <main>
6
- 123
7
- </main>
8
- </template>
@@ -1,8 +0,0 @@
1
- <script setup lang="ts">
2
- </script>
3
-
4
- <template>
5
- <main>
6
- 123
7
- </main>
8
- </template>
@@ -1,29 +0,0 @@
1
- import {
2
- AdminForthResource, AdminForthClass, BeforeDataSourceRequestFunction,
3
- AllowedActionsEnum,
4
- BeforeSaveFunction
5
- } from "../../types/AdminForthConfig.js";
6
- import AdminForthPlugin from "../base.js";
7
- import { PluginOptions } from "./types.js";
8
-
9
-
10
-
11
- export default class AuditLogPlugin extends AdminForthPlugin {
12
-
13
- options: PluginOptions;
14
- adminforth: AdminForthClass;
15
-
16
- constructor(options: PluginOptions) {
17
- super(options, import.meta.url);
18
- this.options = options;
19
- }
20
-
21
- static defaultError = 'Sorry, you do not have access to this resource.'
22
-
23
-
24
- modifyResourceConfig(adminforth: AdminForthClass, resourceConfig: AdminForthResource) {
25
- super.modifyResourceConfig(adminforth, resourceConfig);
26
- this.adminforth = adminforth;
27
-
28
- }
29
- }
@@ -1,7 +0,0 @@
1
-
2
- import { AllowedActionsEnum, AdminUser } from '../../types/AdminForthConfig.js';
3
-
4
-
5
- export type PluginOptions = {
6
-
7
- }