+
۴۷ مشابه
@@ -191,6 +256,8 @@ const sendQuery = async () => {
@click="clearSimilar"
/>
+
+
{
highlightOnHover
@focus="open = true"
@blur="open = false"
- @change="onChange"
+ @change="sendQuery"
@update:modelValue="onUpdateModel"
@update:searchTerm="onUpdateModel"
@keydown="onKeyDown"
@@ -228,26 +295,209 @@ const sendQuery = async () => {
>
+
-
-
+
+
+
+
-
+ :icon="state.vector.icon"
+ >
+ {{ state.vector.label }}
+
+
+
+
+
+
+
+
+
+
+
+
+ نماز
+
+
+
+
+ صلات
+
+
+
+ عبادت
+
+
+
+
+
+
+
+
+
+
+ نماز
+
+
+
+
+ صلات
+
+
+
+ عبادت
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ state.type_key.label }}
+
+
+
+
+
+
+ {{ state.phrase.label }}
+
+
+
+
+
+
+
+
+
+ {{ state.type.label }}
+
+
+
+
+
+
+
+
+
@@ -339,50 +589,6 @@ const sendQuery = async () => {
.search-input {
position: relative;
}
- .search-filter {
- .filter-item {
- /* width: 81px; */
- height: 40px;
- border-radius: 12px;
- border-width: 0.3px;
- padding-top: 8px;
- padding-right: 12px;
- padding-bottom: 8px;
- padding-left: 12px;
- gap: 4px;
- background-color: #fff;
- border: 0.3px solid #e0e0e0;
- box-shadow: 0px 1px 4px 0px #0000000d;
- color: #8a92a8;
- font-family: IRANSansX;
- font-weight: 400;
- font-size: 13px;
- line-height: 20px;
- letter-spacing: 0%;
- text-align: right;
-
- &.active {
- color: linear-gradient(102.02deg, #4be8ae 7.38%, #00a762 91.78%);
-
- * {
- color: #fff;
- }
- }
- }
- }
-
- &.search-page {
- &::before {
- content: none;
- }
- .my-trailing-button {
- /* width: 32px; */
- /* height: 32px; */
- }
- .haditha-search-input {
- height: 56px;
- }
- }
}
}
@@ -429,7 +635,7 @@ const sendQuery = async () => {
height: 72px;
justify-content: space-between;
padding-top: 12px;
- padding-right: 12px;
+ /* padding-right: 12px; */
padding-bottom: 12px;
padding-left: 12px;
border-radius: 12px;
@@ -447,5 +653,129 @@ const sendQuery = async () => {
text-align: right;
color: #a7acbe;
}
+ .search-filter {
+ .filter-item {
+ /* width: 81px; */
+ height: 40px;
+ border-radius: 12px;
+ border-width: 0.3px;
+ padding-top: 8px;
+ padding-right: 12px;
+ padding-bottom: 8px;
+ padding-left: 12px;
+ gap: 4px;
+ background-color: #fff;
+ border: 0.3px solid #e0e0e0;
+ box-shadow: 0px 1px 4px 0px #0000000d;
+ color: #8a92a8;
+ font-family: IRANSansX;
+ font-weight: 400;
+ font-size: 13px;
+ line-height: 20px;
+ letter-spacing: 0%;
+ text-align: right;
+
+ &.active {
+ background-image: linear-gradient(
+ 102.02deg,
+ #4be8ae 7.38%,
+ #00a762 91.78%
+ );
+
+ border-color: #4be8ae;
+ color: #fff;
+ box-shadow: none;
+ }
+ }
+ }
+
+ &.search-page {
+ .haditha-search-root {
+ &::before {
+ content: none;
+ }
+ .my-trailing-button {
+ width: 40px;
+ height: 40px;
+
+ span.iconify {
+ width: 25px;
+ height: 25px;
+ }
+ }
+ .haditha-search-input {
+ height: 56px;
+ }
+ }
+ }
+}
+.popover-root-content {
+ width: 20.5em;
+ height: 17.75em;
+ /* gap: 8px; */
+ /* border-radius: 16px; */
+ border-width: 0.3px;
+ /* padding-top: 16px; */
+ /* padding-right: 8px; */
+ /* padding-bottom: 16px; */
+ /* padding-left: 8px; */
+ background: #ffffff;
+ border: 0.3px solid #e0e0e0;
+ box-shadow: 0px 8px 20px 0px #0000001a;
+
+ .synonymItem {
+ .title {
+ font-family: IRANSansX;
+ font-weight: 400;
+ font-size: 14px;
+ line-height: 100%;
+ letter-spacing: 0%;
+ text-align: center;
+ vertical-align: middle;
+ color: #8a92a8;
+ }
+ /* border-bottom: 1px solid #d9d9d9; */
+
+ .promotion-item {
+ width: 52.599998474121094;
+ height: 36;
+ gap: 4px;
+ border-radius: 8px;
+ border-width: 0.3px;
+ padding-top: 11px;
+ padding-right: 12px;
+ padding-bottom: 11px;
+ padding-left: 12px;
+ border: 0.3px solid #d9d9d9;
+ background: #f0f1f4;
+
+ font-family: IRANSansX;
+ font-weight: 400;
+ font-size: 12px;
+ line-height: 100%;
+ letter-spacing: 0%;
+ text-align: right;
+ color: #626b84;
+
+ &.active {
+ background: linear-gradient(320.71deg, #b9fde0 6.56%, #e4f9f0 69.69%);
+ border: 0.3px solid #29d985;
+ color: #626b84;
+ }
+ }
+ .add-button {
+ width: 48;
+ height: 36;
+ gap: 4px;
+ border-radius: 8px;
+ border-width: 1px;
+ padding-right: 11px;
+ padding-left: 11px;
+ background: #ffffff;
+ border: 1px solid #f0f1f4;
+
+ color: #8a92a8;
+ }
+ }
}
diff --git a/components/haditha/search-page/SearchList.vue b/components/haditha/search-page/SearchList.vue
index 10ebc39..a7a68c7 100644
--- a/components/haditha/search-page/SearchList.vue
+++ b/components/haditha/search-page/SearchList.vue
@@ -15,29 +15,36 @@ const props = defineProps({
default: "/img/haditha/no-data.png",
},
});
-const route = useRoute();
+const router = useRouter();
-const modal = useModal();
-const isModalOpen = ref(false);
+// const modal = useModal();
+// const isModalOpen = ref(false);
-function openModal() {
+function openModal(selectedItem) {
// modal.open(SearchShow, { title: "Welcome" });
- isModalOpen.value = true;
-}
-async function closeModal() {
- await modal.close();
-}
-function resetModal() {
- modal.reset();
-}
-function updateModalTitle() {
- modal.patch({ title: "Updated Title" });
+ // isModalOpen.value = true;
+ router.push({
+ name: "hadithaSearchShow",
+ params: {
+ id: selectedItem._id,
+ slug: "no-slug",
+ },
+ });
}
+// async function closeModal() {
+// await modal.close();
+// }
+// function resetModal() {
+// modal.reset();
+// }
+// function updateModalTitle() {
+// modal.patch({ title: "Updated Title" });
+// }
// components declaration
-const SearchShow = defineAsyncComponent(() =>
- import("@haditha/components/haditha/search-page/SearchShow.vue")
-);
+// const SearchShow = defineAsyncComponent(() =>
+// import("@haditha/components/haditha/search-page/SearchShow.vue")
+// );
@@ -64,7 +71,8 @@ const SearchShow = defineAsyncComponent(() =>
>
- {{ item._source.address.vol_title }}، صفحه {{ item._source.address.page_num }}
+ {{ item._source.address.vol_title }}، صفحه
+ {{ item._source.address.page_num }}