adminforth 2.4.0-next.58 → 2.4.0-next.59

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.
@@ -16,12 +16,16 @@
16
16
  <!-- table header -->
17
17
  <tr class="t-header sticky z-10 top-0 text-xs bg-lightListTableHeading dark:bg-darkListTableHeading dark:text-gray-400">
18
18
  <td scope="col" class="p-4">
19
- <div class="flex items-center">
19
+ <div class="flex items-center justify-center relative">
20
20
  <input id="checkbox-all-search" type="checkbox" :checked="allFromThisPageChecked" @change="selectAll()"
21
21
  :disabled="!rows || !rows.length"
22
- class="w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded
23
- focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 dark:focus:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600">
22
+ class="peer appearance-none w-4 h-4 text-blue-600 bg-light-primary border border-gray-500 rounded-sm checked:bg-blue-500
23
+ focus:ring-blue-600 dark:focus:ring-blue-600 dark:ring-offset-gray-800 dark:focus:ring-offset-gray-800
24
+ focus:ring-2 dark:bg-dark-primary dark:border-gray-600 dark:checked:bg-blue-500 cursor-pointer">
24
25
  <label for="checkbox-all-search" class="sr-only">{{ $t('checkbox') }}</label>
26
+ <div class="pointer-events-none absolute text-white text-[13px] leading-none peer-checked:block hidden">
27
+ <IconCheckOutline width="18" height="18" />
28
+ </div>
25
29
  </div>
26
30
  </td>
27
31
 
@@ -90,18 +94,27 @@
90
94
 
91
95
  :class="{'border-b': rowI !== rows.length - 1, 'cursor-pointer': row._clickUrl !== null}"
92
96
  >
93
- <td class="w-4 p-4 cursor-default" @click="(e)=>{e.stopPropagation()}">
94
- <div class="flex items center ">
95
- <input
96
- @click="(e)=>{e.stopPropagation()}"
97
- id="checkbox-table-search-1"
98
- type="checkbox"
99
- :checked="checkboxesInternal.includes(row._primaryKeyValue)"
100
- @change="(e)=>{addToCheckedValues(row._primaryKeyValue)}"
101
- class="w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 dark:focus:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600 cursor-pointer">
102
- <label for="checkbox-table-search-1" class="sr-only">{{ $t('checkbox') }}</label>
97
+ <td class="w-4 p-4 cursor-default" @click="(e)=>e.stopPropagation()">
98
+ <div class="flex items-center justify-center relative">
99
+ <input
100
+ @click="(e)=>e.stopPropagation()"
101
+ id="checkbox-table-search-1"
102
+ type="checkbox"
103
+ :checked="checkboxesInternal.includes(row._primaryKeyValue)"
104
+ @change="(e)=>{addToCheckedValues(row._primaryKeyValue)}"
105
+ class="peer appearance-none w-4 h-4 text-blue-600 bg-light-primary border border-gray-500 rounded-sm checked:bg-blue-500
106
+ focus:ring-blue-600 dark:focus:ring-blue-600 dark:ring-offset-gray-800 dark:focus:ring-offset-gray-800
107
+ focus:ring-2 dark:bg-dark-primary dark:border-gray-600 dark:checked:bg-blue-500 cursor-pointer"
108
+ />
109
+ <label for="checkbox-table-search-1" class="sr-only">
110
+ {{ $t('checkbox') }}
111
+ </label>
112
+ <div class="pointer-events-none absolute text-white text-[13px] leading-none peer-checked:block hidden">
113
+ <IconCheckOutline width="18" height="18" />
103
114
  </div>
104
- </td>
115
+ </div>
116
+ </td>
117
+
105
118
  <td v-for="c in columnsListed" class="px-2 md:px-3 lg:px-6 py-4">
106
119
  <!-- if c.name in listComponentsPerColumn, render it. If not, render ValueRenderer -->
107
120
  <component
@@ -306,7 +319,8 @@ import {
306
319
  import {
307
320
  IconEyeSolid,
308
321
  IconPenSolid,
309
- IconTrashBinSolid
322
+ IconTrashBinSolid,
323
+ IconCheckOutline
310
324
  } from '@iconify-prerendered/vue-flowbite';
311
325
  import router from '@/router';
312
326
  import { Tooltip } from '@/afcl';
@@ -20,12 +20,16 @@
20
20
  <!-- table header -->
21
21
  <tr class="t-header sticky z-10 top-0 text-xs bg-lightListTableHeading dark:bg-darkListTableHeading dark:text-gray-400">
22
22
  <td scope="col" class="p-4">
23
- <div class="flex items-center">
23
+ <div class="flex items-center justify-center relative">
24
24
  <input id="checkbox-all-search" type="checkbox" :checked="allFromThisPageChecked" @change="selectAll()"
25
25
  :disabled="!rows || !rows.length"
26
- class="w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded
27
- focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 dark:focus:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600">
26
+ class="peer appearance-none w-4 h-4 text-blue-600 bg-light-primary border border-gray-500 rounded-sm checked:bg-blue-500
27
+ focus:ring-blue-600 dark:focus:ring-blue-600 dark:ring-offset-gray-800 dark:focus:ring-offset-gray-800
28
+ focus:ring-2 dark:bg-dark-primary dark:border-gray-600 dark:checked:bg-blue-500 cursor-pointer">
28
29
  <label for="checkbox-all-search" class="sr-only">{{ $t('checkbox') }}</label>
30
+ <div class="pointer-events-none absolute text-white text-[13px] leading-none peer-checked:block hidden">
31
+ <IconCheckOutline width="18" height="18" />
32
+ </div>
29
33
  </div>
30
34
  </td>
31
35
 
@@ -101,16 +105,24 @@
101
105
  :class="{'border-b': rowI !== visibleRows.length - 1, 'cursor-pointer': row._clickUrl !== null}"
102
106
  @mounted="(el) => updateRowHeight(`row_${row._primaryKeyValue}`, el.offsetHeight)"
103
107
  >
104
- <td class="w-4 p-4 cursor-default" @click="(e)=>{e.stopPropagation()}">
105
- <div class="flex items center ">
108
+ <td class="w-4 p-4 cursor-default" @click="(e)=>e.stopPropagation()">
109
+ <div class="flex items-center justify-center relative">
106
110
  <input
107
- @click="(e)=>{e.stopPropagation()}"
111
+ @click="(e)=>e.stopPropagation()"
108
112
  id="checkbox-table-search-1"
109
113
  type="checkbox"
110
114
  :checked="checkboxesInternal.includes(row._primaryKeyValue)"
111
115
  @change="(e)=>{addToCheckedValues(row._primaryKeyValue)}"
112
- class="w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 dark:focus:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600 cursor-pointer">
113
- <label for="checkbox-table-search-1" class="sr-only">{{ $t('checkbox') }}</label>
116
+ class="peer appearance-none w-4 h-4 text-blue-600 bg-gray-50 border border-gray-500 rounded-sm checked:bg-blue-500
117
+ focus:ring-blue-600 dark:focus:ring-blue-600 dark:ring-offset-gray-800 dark:focus:ring-offset-gray-800
118
+ focus:ring-2 dark:bg-gray-700 dark:border-gray-600 dark:checked:bg-blue-500 cursor-pointer"
119
+ />
120
+ <label for="checkbox-table-search-1" class="sr-only">
121
+ {{ $t('checkbox') }}
122
+ </label>
123
+ <div class="pointer-events-none absolute text-white text-[13px] leading-none peer-checked:block hidden">
124
+ <IconCheckOutline width="18" height="18" />
125
+ </div>
114
126
  </div>
115
127
  </td>
116
128
  <td v-for="c in columnsListed" class="px-2 md:px-3 lg:px-6 py-4">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "2.4.0-next.58",
3
+ "version": "2.4.0-next.59",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",