adminforth 1.1.47 → 1.1.49
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/dist/modules/codeInjector.js +13 -22
- package/dist/modules/styleGenerator.js +39 -0
- package/dist/modules/styles.js +84 -53
- package/dist/modules/utils.js +44 -0
- package/dist/spa/spa/index.html +1 -1
- package/dist/spa/spa/src/App.vue +16 -16
- package/dist/spa/spa/src/components/MenuLink.vue +3 -3
- package/dist/spa/spa/src/components/ResourceForm.vue +3 -3
- package/dist/spa/spa/src/components/ResourceListTable.vue +7 -64
- package/dist/spa/spa/src/components/SkeleteLoader.vue +23 -0
- package/dist/spa/spa/src/views/ListView.vue +1 -1
- package/dist/spa/spa/src/views/ShowView.vue +3 -3
- package/dist/spa/spa/tailwind.config.js +3 -1
- package/modules/codeInjector.ts +10 -18
- package/modules/styleGenerator.ts +45 -0
- package/modules/styles.ts +95 -48
- package/modules/utils.ts +48 -0
- package/package.json +1 -1
- package/spa/index.html +1 -1
- package/spa/src/App.vue +16 -16
- package/spa/src/components/MenuLink.vue +3 -3
- package/spa/src/components/ResourceForm.vue +3 -3
- package/spa/src/components/ResourceListTable.vue +7 -64
- package/spa/src/components/SkeleteLoader.vue +23 -0
- package/spa/src/views/ListView.vue +1 -1
- package/spa/src/views/ShowView.vue +3 -3
- package/spa/tailwind.config.js +3 -1
- package/types/AdminForthConfig.ts +6 -4
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
</div>
|
|
45
45
|
<div
|
|
46
46
|
v-else
|
|
47
|
-
class="relative overflow-x-auto shadow-
|
|
47
|
+
class="relative overflow-x-auto shadow-resourseFormShadow "
|
|
48
48
|
>
|
|
49
49
|
<table class="w-full text-sm text-left rtl:text-right text-gray-500 dark:text-gray-400 rounded-default">
|
|
50
|
-
<thead class="text-xs text-gray-700 uppercase bg-
|
|
50
|
+
<thead class="text-xs text-gray-700 uppercase bg-lightormHeading dark:bg-gray-700 dark:text-gray-400">
|
|
51
51
|
<tr>
|
|
52
52
|
<th scope="col" class="px-6 py-3">
|
|
53
53
|
Field
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
</thead>
|
|
60
60
|
<tbody>
|
|
61
61
|
<tr v-for="column in coreStore.resource?.columns.filter(c => c.showIn.includes('show'))" :key="column.name"
|
|
62
|
-
class="bg-
|
|
62
|
+
class="bg-lightForm bg-darkForm odd:dark:bg-gray-900 even:dark:bg-gray-800 border-b dark:border-gray-700"
|
|
63
63
|
>
|
|
64
64
|
<component
|
|
65
65
|
v-if="column.components?.showRow"
|
package/spa/tailwind.config.js
CHANGED
|
@@ -818,6 +818,10 @@ export type AdminForthConfig = {
|
|
|
818
818
|
*
|
|
819
819
|
*/
|
|
820
820
|
vueUsesFile?: string,
|
|
821
|
+
/**
|
|
822
|
+
* Object to redefine default styles for AdminForth components. Use this file as reference for all possible adjustments https://github.com/devforth/adminforth/blob/main/adminforth/modules/styles.ts
|
|
823
|
+
*/
|
|
824
|
+
styles?: Object,
|
|
821
825
|
},
|
|
822
826
|
|
|
823
827
|
/**
|
|
@@ -832,10 +836,7 @@ export type AdminForthConfig = {
|
|
|
832
836
|
|
|
833
837
|
deleteConfirmation?: boolean,
|
|
834
838
|
|
|
835
|
-
|
|
836
|
-
* Object to redefine default styles for AdminForth components. Use this file as reference for all possible adjustments https://github.com/devforth/adminforth/blob/main/adminforth/modules/styles.ts
|
|
837
|
-
*/
|
|
838
|
-
styles?: Object,
|
|
839
|
+
|
|
839
840
|
}
|
|
840
841
|
|
|
841
842
|
|
|
@@ -966,6 +967,7 @@ export type AdminForthComponentDeclarationFull = {
|
|
|
966
967
|
meta?: any,
|
|
967
968
|
}
|
|
968
969
|
|
|
970
|
+
|
|
969
971
|
export type AdminForthComponentDeclaration = AdminForthComponentDeclarationFull | string;
|
|
970
972
|
|
|
971
973
|
export type AdminForthFieldComponents = {
|