diff --git a/cista-front/components.d.ts b/cista-front/components.d.ts index 36b5034..2f03bab 100644 --- a/cista-front/components.d.ts +++ b/cista-front/components.d.ts @@ -15,6 +15,7 @@ declare module 'vue' { AFormItem: typeof import('ant-design-vue/es')['FormItem'] AImage: typeof import('ant-design-vue/es')['Image'] AInput: typeof import('ant-design-vue/es')['Input'] + AInputSearch: typeof import('ant-design-vue/es')['InputSearch'] APageHeader: typeof import('ant-design-vue/es')['PageHeader'] APopover: typeof import('ant-design-vue/es')['Popover'] AppNavigation: typeof import('./src/components/AppNavigation.vue')['default'] diff --git a/cista-front/src/assets/main.css b/cista-front/src/assets/main.css index cb889d6..882a3b3 100644 --- a/cista-front/src/assets/main.css +++ b/cista-front/src/assets/main.css @@ -48,7 +48,18 @@ body { } @media (prefers-color-scheme: dark) { - + .ant-input-group >.ant-input-group-addon:last-child .ant-input-search-button:not(.ant-btn-primary):hover{ + color : var(--blue-color) !important + } + .ant-input-search .ant-input:hover, + .ant-input-search .ant-input:focus { + border-color: var(--blue-color); + } + .ant-input{ + background-color:var(--table-background); + border-color: var(--table-background); + color: var(--font-color) + } .ant-table-wrapper .ant-table-thead>tr>th { background-color: var(--table-background); } diff --git a/cista-front/src/components/HeaderMain.vue b/cista-front/src/components/HeaderMain.vue index b5674da..d0ae2d9 100644 --- a/cista-front/src/components/HeaderMain.vue +++ b/cista-front/src/components/HeaderMain.vue @@ -2,10 +2,30 @@ import { useDocumentStore } from '@/stores/documents' import UploadButton from '@/components/UploadButton.vue' import { InfoCircleOutlined, SettingOutlined, PlusSquareOutlined, SearchOutlined, DeleteOutlined, DownloadOutlined, FileAddFilled, LinkOutlined, FolderAddFilled, FileFilled, FolderFilled } from '@ant-design/icons-vue' -import { h } from 'vue'; -import Keyframe from 'ant-design-vue/es/_util/cssinjs/Keyframes'; +import { h, ref, defineProps } from 'vue'; const documentStore = useDocumentStore() +const searchQuery = ref('') +const showSearchInput = ref(false) +const isLoading = ref(false) + +const toggleSearchInput = () => { + showSearchInput.value = !showSearchInput.value; + if (!showSearchInput.value) { + searchQuery.value = ''; + } +}; + +const executeSearch = () => { + isLoading.value = true; + console.log( + documentStore.mainDocument + ) + setTimeout(() => { + isLoading.value = false; + // Perform your search logic here + }, 2000); +}; function createFileHandler() { console.log("Creating file") @@ -76,8 +96,17 @@ function download(){
+ - + @@ -124,4 +153,7 @@ function download(){ gap: 6px; } } +.margin-input{ + margin-top: 5px; +}