|
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 | 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';
|
|
0 commit comments