|
11 | 11 | class="max-w p-4 space-y-4 divide-y divide-gray-200 rounded shadow animate-pulse dark:divide-gray-700 md:p-6 dark:border-gray-700">
|
12 | 12 |
|
13 | 13 | <div role="status" class="max-w-sm animate-pulse">
|
14 |
| - <div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 max-w-[360px]"></div> |
| 14 | + <div class="h-2 bg-lightListSkeletLoader rounded-full dark:bg-darkListSkeletLoader max-w-[360px]"></div> |
15 | 15 | </div>
|
16 | 16 | </div>
|
17 |
| - <table v-else class=" w-full text-sm text-left rtl:text-right text-gray-500 dark:text-gray-400 rounded-default"> |
| 17 | + <table v-else class=" w-full text-sm text-left rtl:text-right text-lightListTableText dark:text-darkListTableText rounded-default"> |
18 | 18 |
|
19 | 19 | <tbody>
|
20 | 20 | <!-- table header -->
|
|
220 | 220 | >
|
221 | 221 | <!-- Buttons -->
|
222 | 222 | <button
|
223 |
| - class="flex items-center py-1 px-3 gap-1 text-sm font-medium text-gray-900 focus:outline-none bg-white border-r-0 rounded-s border border-gray-300 hover:bg-gray-100 hover:text-lightPrimary focus:z-10 focus:ring-4 focus:ring-gray-100 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700 disabled:opacity-50" |
| 223 | + class="af-pagination-prev-button flex items-center py-1 px-3 gap-1 text-sm font-medium text-ligthListTablePaginationText focus:outline-none bg-lightListTablePaginationBackgoround border-r-0 rounded-s border border-lightListTablePaginationBorder hover:bg-lightListTablePaginationBackgoroundHover hover:text-ligthListTablePaginationTextHover focus:z-10 focus:ring-4 focus:ring-lightListTablePaginationFocusRing dark:focus:ring-darkListTablePaginationFocusRing dark:bg-darkListTablePaginationBackgoround dark:text-darkListTablePaginationText dark:border-darkListTablePaginationBorder dark:hover:text-darkListTablePaginationTextHover dark:hover:bg-darkListTablePaginationBackgoroundHover disabled:opacity-50" |
224 | 224 | @click="page--; pageInput = page.toString();" :disabled="page <= 1">
|
225 | 225 | <svg class="w-3.5 h-3.5 rtl:rotate-180" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none"
|
226 | 226 | viewBox="0 0 14 10">
|
|
232 | 232 | </span>
|
233 | 233 | </button>
|
234 | 234 | <button
|
235 |
| - class="flex items-center py-1 px-3 text-sm font-medium text-gray-900 focus:outline-none bg-white border-r-0 border border-gray-300 hover:bg-gray-100 hover:text-lightPrimary focus:z-10 focus:ring-4 focus:ring-gray-100 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700 disabled:opacity-50" |
| 235 | + class="af-pagination-first-page-button flex items-center py-1 px-3 text-sm font-medium text-ligthListTablePaginationText focus:outline-none bg-lightListTablePaginationBackgoround border-r-0 border border-lightListTablePaginationBorder hover:bg-lightListTablePaginationBackgoroundHover hover:text-ligthListTablePaginationTextHover focus:z-10 focus:ring-4 focus:ring-lightListTablePaginationFocusRing dark:focus:ring-darkListTablePaginationFocusRing dark:bg-darkListTablePaginationBackgoround dark:text-darkListTablePaginationText dark:border-darkListTablePaginationBorder dark:hover:text-darkListTablePaginationTextHover dark:hover:bg-darkListTablePaginationBackgoroundHover disabled:opacity-50" |
236 | 236 | @click="page = 1; pageInput = page.toString();" :disabled="page <= 1">
|
237 | 237 | <!-- <IconChevronDoubleLeftOutline class="w-4 h-4" /> -->
|
238 | 238 | 1
|
239 | 239 | </button>
|
240 | 240 | <div
|
241 | 241 | contenteditable="true"
|
242 |
| - class="min-w-10 outline-none inline-block w-auto min-w-10 py-1.5 px-3 text-sm text-center text-gray-700 border border-gray-300 dark:border-gray-700 dark:text-gray-400 dark:bg-gray-800 z-10" |
| 242 | + class="af-pagination-input min-w-10 outline-none inline-block w-auto py-1.5 px-3 text-sm text-center text-ligthListTablePaginationCurrentPageText border border-lightListTablePaginationBorder dark:border-darkListTablePaginationBorder dark:text-darkListTablePaginationCurrentPageText dark:bg-darkListTablePaginationBackgoround z-10" |
243 | 243 | @keydown="onPageKeydown($event)"
|
244 | 244 | @input="onPageInput($event)"
|
245 | 245 | @blur="validatePageInput()"
|
|
248 | 248 | </div>
|
249 | 249 |
|
250 | 250 | <button
|
251 |
| - class="flex items-center py-1 px-3 text-sm font-medium text-gray-900 focus:outline-none bg-white border-l-0 border border-gray-300 hover:bg-gray-100 hover:text-lightPrimary focus:z-10 focus:ring-4 focus:ring-gray-100 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700 disabled:opacity-50" |
| 251 | + class="af-pagination-last-page-button flex items-center py-1 px-3 text-sm font-medium text-ligthListTablePaginationText focus:outline-none bg-lightListTablePaginationBackgoround border-l-0 border border-lightListTablePaginationBorder hover:bg-lightListTablePaginationBackgoroundHover hover:text-ligthListTablePaginationTextHover focus:z-10 focus:ring-4 focus:ring-lightListTablePaginationFocusRing dark:focus:ring-darkListTablePaginationFocusRing dark:bg-darkListTablePaginationBackgoround dark:text-darkListTablePaginationText dark:border-darkListTablePaginationBorder dark:hover:text-white dark:hover:bg-darkListTablePaginationBackgoroundHover disabled:opacity-50" |
252 | 252 | @click="page = totalPages; pageInput = page.toString();" :disabled="page >= totalPages">
|
253 | 253 | {{ totalPages }}
|
254 | 254 |
|
255 | 255 | <!-- <IconChevronDoubleRightOutline class="w-4 h-4" /> -->
|
256 | 256 | </button>
|
257 | 257 | <button
|
258 |
| - class="flex items-center py-1 px-3 gap-1 text-sm font-medium text-gray-900 focus:outline-none bg-white border-l-0 rounded-e border border-gray-300 hover:bg-gray-100 hover:text-lightPrimary focus:z-10 focus:ring-4 focus:ring-gray-100 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700 disabled:opacity-50" |
| 258 | + class="af-pagination-next-button flex items-center py-1 px-3 gap-1 text-sm font-medium text-ligthListTablePaginationText focus:outline-none bg-lightListTablePaginationBackgoround border-l-0 rounded-e border border-lightListTablePaginationBorder hover:bg-lightListTablePaginationBackgoroundHover hover:text-ligthListTablePaginationTextHover focus:z-10 focus:ring-4 focus:ring-lightListTablePaginationFocusRing dark:focus:ring-darkListTablePaginationFocusRing dark:bg-darkListTablePaginationBackgoround dark:text-darkListTablePaginationText dark:border-darkListTablePaginationBorder dark:hover:text-white dark:hover:bg-darkListTablePaginationBackgoroundHover disabled:opacity-50" |
259 | 259 | @click="page++; pageInput = page.toString();" :disabled="page >= totalPages">
|
260 | 260 | <span class="hidden sm:inline">{{ $t('Next') }}</span>
|
261 | 261 | <svg class="w-3.5 h-3.5 rtl:rotate-180" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none"
|
|
267 | 267 | </div>
|
268 | 268 |
|
269 | 269 | <!-- Help text -->
|
270 |
| - <span class="text-sm text-gray-700 dark:text-gray-400"> |
| 270 | + <span class="text-sm text-ligthListTablePaginationHelpText dark:text-darkListTablePaginationHelpText"> |
271 | 271 | <span v-if="((((page || 1) - 1) * pageSize + 1 > totalRows) && totalRows > 0)">{{ $t('Wrong Page') }} </span>
|
272 | 272 | <template v-else-if="resource && totalRows > 0">
|
273 | 273 |
|
|
0 commit comments