File tree Expand file tree Collapse file tree 7 files changed +15
-15
lines changed
Expand file tree Collapse file tree 7 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 121121 </svg >
122122 </button >
123123
124- <ul :id =" `dropdown-example${i}`" role =" none" class =" pt-1 space-y-1" :class =" { 'hidden': !opened.includes(i) }" >
124+ <ul :id =" `dropdown-example${i}`" role =" none" class =" af-sidebar-dropdown pt-1 space-y-1" :class =" { 'hidden': !opened.includes(i) }" >
125125 <template v-for =" (child , j ) in item .children " :key =" ` menu-${i }-${j } ` " >
126126 <li >
127127 <MenuLink :item =" child" isChild =" true" @click =" hideSidebar" />
Original file line number Diff line number Diff line change 11<template >
22
3- <div class =" afcl-input flex z-0 relative" :class =" {'opacity-50' : readonly}" >
3+ <div class =" afcl-input-wrapper flex z-0 relative" :class =" {'opacity-50' : readonly}" >
44 <span
55 v-if =" $slots.prefix || prefix"
66 class =" inline-flex items-center px-3 text-sm text-gray-900 bg-gray-200 border border-s-0 border-gray-300 rounded-s-md dark:bg-gray-600 dark:text-gray-400 dark:border-gray-600" >
1515 @input =" $emit('update:modelValue', $event.target?.value)"
1616 :value =" modelValue"
1717 aria-describedby =" helper-text-explanation"
18- class =" inline-flex bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-0 focus:ring-lightPrimary focus:border-lightPrimary dark:focus:ring-darkPrimary dark:focus:border-darkPrimary
18+ class =" afcl-input inline-flex bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-0 focus:ring-lightPrimary focus:border-lightPrimary dark:focus:ring-darkPrimary dark:focus:border-darkPrimary
1919 blue-500 focus:border-blue-500 block w-20 p-2.5 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-500 dark:placeholder-gray-400 dark:text-white translate-y-0"
2020 :class =" {'rounded-l-md': !$slots.prefix && !prefix, 'rounded-r-md': !$slots.suffix && !suffix, 'w-full': fullWidth}"
2121 :disabled =" readonly"
Original file line number Diff line number Diff line change 11<template >
2- <div class =" afcl-select relative inline-block" ref =" internalSelect"
2+ <div class =" afcl-select-wrapper relative inline-block" ref =" internalSelect"
33 :class =" {'opacity-50': readonly}"
44 >
55 <div class =" relative" >
1010 v-model =" search"
1111 @click =" inputClick"
1212 @input =" inputInput"
13- class =" block w-full pl-3 pr-10 py-2.5 border border-gray-300 rounded-md leading-5 bg-gray-50 placeholder-gray-500 sm:text-sm transition duration-150 ease-in-out dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white focus:ring-lightPrimary focus:border-lightPrimary dark:focus:ring-darkPrimary dark:focus:border-darkPrimary"
13+ class =" afcl-select block w-full pl-3 pr-10 py-2.5 border border-gray-300 rounded-md leading-5 bg-gray-50 placeholder-gray-500 sm:text-sm transition duration-150 ease-in-out dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white focus:ring-lightPrimary focus:border-lightPrimary dark:focus:ring-darkPrimary dark:focus:border-darkPrimary"
1414 autocomplete =" off" data-custom =" no-autofill"
1515 :placeholder ="
1616 selectedItems.length && !multiple ? '' : (showDropdown ? $t('Search') : placeholder || $t('Select...'))
Original file line number Diff line number Diff line change 128128 }"
129129
130130 >
131- <IconEyeSolid class =" w-5 h-5 me-2" />
131+ <IconEyeSolid class =" af-eye-icon w-5 h-5 me-2" />
132132 </RouterLink >
133133
134134 <template v-slot :tooltip >
147147 }
148148 }"
149149 >
150- <IconPenSolid class =" w-5 h-5 me-2" />
150+ <IconPenSolid class =" af-pen-icon w-5 h-5 me-2" />
151151 </RouterLink >
152152 <template v-slot :tooltip >
153153 {{ $t('Edit item') }}
159159 v-if =" resource.options?.allowedActions.delete"
160160 @click =" deleteRecord(row)"
161161 >
162- <IconTrashBinSolid class =" w-5 h-5 me-2" />
162+ <IconTrashBinSolid class =" af-trash-icon w-5 h-5 me-2" />
163163 </button >
164164
165165 <template v-slot :tooltip >
Original file line number Diff line number Diff line change 1313 <BreadcrumbsWithButtons >
1414 <!-- save and cancle -->
1515 <button @click =" $router.back()"
16- class =" flex items-center py-1 px-3 me-2 text-sm font-medium rounded-default text-gray-900 focus:outline-none bg-white rounded 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"
16+ class =" af-cancel-button flex items-center py-1 px-3 me-2 text-sm font-medium rounded-default text-gray-900 focus:outline-none bg-white rounded 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"
1717 >
1818 {{ $t('Cancel') }}
1919 </button >
2020
2121 <button
2222 @click =" saveRecord"
23- class =" flex items-center py-1 px-3 text-sm font-medium rounded-default text-red-600 focus:outline-none bg-white rounded border border-gray-300 hover:bg-gray-100 hover:text-red-700 focus:z-10 focus:ring-4 focus:ring-gray-100 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-red-500 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700 disabled:opacity-50"
23+ class =" af-save-button flex items-center py-1 px-3 text-sm font-medium rounded-default text-red-600 focus:outline-none bg-white rounded border border-gray-300 hover:bg-gray-100 hover:text-red-700 focus:z-10 focus:ring-4 focus:ring-gray-100 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-red-500 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700 disabled:opacity-50"
2424 :disabled =" saving || (validating && !isValid)"
2525 >
2626 <svg v-if =" saving"
Original file line number Diff line number Diff line change 7474
7575 <RouterLink v-if =" coreStore.resource?.options?.allowedActions?.create"
7676 :to =" { name: 'resource-create', params: { resourceId: $route.params.resourceId } }"
77- class =" flex items-center py-1 px-3 text-sm font-medium text-gray-900 focus:outline-none bg-white rounded 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 rounded-default"
77+ class =" af-create-button flex items-center py-1 px-3 text-sm font-medium text-gray-900 focus:outline-none bg-white rounded 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 rounded-default"
7878 >
7979 <IconPlusOutline class =" w-4 h-4 me-2" />
8080 {{ $t('Create') }}
8181 </RouterLink >
8282
8383 <button
84- class =" flex gap-1 items-center py-1 px-3 me-2 text-sm font-medium text-gray-900 focus:outline-none bg-white rounded 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 rounded-default"
84+ class =" af-filter-button flex gap-1 items-center py-1 px-3 me-2 text-sm font-medium text-gray-900 focus:outline-none bg-white rounded 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 rounded-default"
8585 @click =" ()=>{filtersShow = !filtersShow}"
8686 v-if =" coreStore.resource?.options?.allowedActions?.filter"
8787 >
Original file line number Diff line number Diff line change 2828 </template >
2929 <RouterLink v-if =" coreStore.resource?.options?.allowedActions?.create"
3030 :to =" { name: 'resource-create', params: { resourceId: $route.params.resourceId } }"
31- class =" flex items-center py-1 px-3 text-sm font-medium text-gray-900 focus:outline-none bg-white rounded 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 rounded-default"
31+ class =" af-add-new-button flex items-center py-1 px-3 text-sm font-medium text-gray-900 focus:outline-none bg-white rounded 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 rounded-default"
3232 >
3333 <IconPlusOutline class =" w-4 h-4 me-2" />
3434 {{ $t('Add new') }}
3535 </RouterLink >
3636
3737 <RouterLink v-if =" coreStore?.resourceOptions?.allowedActions?.edit" :to =" { name: 'resource-edit', params: { resourceId: $route.params.resourceId, primaryKey: $route.params.primaryKey } }"
38- class =" flex items-center py-1 px-3 text-sm font-medium text-gray-900 focus:outline-none bg-white rounded-default 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"
38+ class =" flex items-center af-edit-button py-1 px-3 text-sm font-medium text-gray-900 focus:outline-none bg-white rounded-default 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"
3939 >
4040 <IconPenSolid class =" w-4 h-4" />
4141 {{ $t('Edit') }}
4242 </RouterLink >
4343
4444 <button v-if =" coreStore?.resourceOptions?.allowedActions?.delete" @click =" deleteRecord"
45- class =" flex items-center py-1 px-3 text-sm font-medium rounded-default text-red-600 focus:outline-none bg-white border border-gray-300 hover:bg-gray-100 hover:text-red-700 focus:z-10 focus:ring-4 focus:ring-gray-100 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-red-500 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700"
45+ class =" flex items-center af-delete-button py-1 px-3 text-sm font-medium rounded-default text-red-600 focus:outline-none bg-white border border-gray-300 hover:bg-gray-100 hover:text-red-700 focus:z-10 focus:ring-4 focus:ring-gray-100 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-red-500 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700"
4646 >
4747 <IconTrashBinSolid class =" w-4 h-4" />
4848 {{ $t('Delete') }}
You can’t perform that action at this time.
0 commit comments