Merge branch 'dev' into 7283-itemSectionsMigration
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
commit
0fa0ddec7e
|
@ -17,13 +17,7 @@ const props = defineProps({
|
||||||
descriptor: { type: Object, required: true },
|
descriptor: { type: Object, required: true },
|
||||||
filterPanel: { type: Object, default: undefined },
|
filterPanel: { type: Object, default: undefined },
|
||||||
searchDataKey: { type: String, default: undefined },
|
searchDataKey: { type: String, default: undefined },
|
||||||
searchUrl: { type: String, default: undefined },
|
searchbarProps: { type: Object, default: undefined },
|
||||||
searchbarLabel: { type: String, default: '' },
|
|
||||||
searchbarInfo: { type: String, default: '' },
|
|
||||||
searchCustomRouteRedirect: { type: String, default: undefined },
|
|
||||||
searchRedirect: { type: Boolean, default: true },
|
|
||||||
searchMakeFetch: { type: Boolean, default: true },
|
|
||||||
searchUrlQuery: { type: String, default: undefined },
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const stateStore = useStateStore();
|
const stateStore = useStateStore();
|
||||||
|
@ -66,15 +60,7 @@ if (props.baseUrl) {
|
||||||
</QScrollArea>
|
</QScrollArea>
|
||||||
</QDrawer>
|
</QDrawer>
|
||||||
<slot name="searchbar" v-if="props.searchDataKey">
|
<slot name="searchbar" v-if="props.searchDataKey">
|
||||||
<VnSearchbar
|
<VnSearchbar :data-key="props.searchDataKey" v-bind="$attrs['searchbarProps']" />
|
||||||
:data-key="props.searchDataKey"
|
|
||||||
:url="props.searchUrl"
|
|
||||||
:label="props.searchbarLabel"
|
|
||||||
:info="props.searchbarInfo"
|
|
||||||
:search-url="props.searchUrlQuery"
|
|
||||||
:custom-route-redirect-name="searchCustomRouteRedirect"
|
|
||||||
:redirect="searchRedirect"
|
|
||||||
/>
|
|
||||||
</slot>
|
</slot>
|
||||||
<slot v-else name="searchbar" />
|
<slot v-else name="searchbar" />
|
||||||
<RightMenu>
|
<RightMenu>
|
||||||
|
|
|
@ -25,9 +25,11 @@ const searchBarDataKeys = {
|
||||||
base-url="MailAliases"
|
base-url="MailAliases"
|
||||||
:descriptor="AliasDescriptor"
|
:descriptor="AliasDescriptor"
|
||||||
:search-data-key="searchBarDataKeys[routeName]"
|
:search-data-key="searchBarDataKeys[routeName]"
|
||||||
:search-custom-route-redirect="customRouteRedirectName"
|
:searchbarProps="{
|
||||||
:search-redirect="!!customRouteRedirectName"
|
redirect: !!customRouteRedirectName,
|
||||||
:searchbar-label="t('mailAlias.search')"
|
customRouteRedirectName,
|
||||||
:searchbar-info="t('mailAlias.searchInfo')"
|
info: t('mailAlias.searchInfo'),
|
||||||
|
label: t('mailAlias.search'),
|
||||||
|
}"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -26,9 +26,11 @@ const searchBarDataKeys = {
|
||||||
data-key="Account"
|
data-key="Account"
|
||||||
:descriptor="AccountDescriptor"
|
:descriptor="AccountDescriptor"
|
||||||
:search-data-key="searchBarDataKeys[routeName]"
|
:search-data-key="searchBarDataKeys[routeName]"
|
||||||
:search-custom-route-redirect="customRouteRedirectName"
|
:searchbarProps="{
|
||||||
:search-redirect="!!customRouteRedirectName"
|
redirect: !!customRouteRedirectName,
|
||||||
:searchbar-label="t('account.search')"
|
customRouteRedirectName,
|
||||||
:searchbar-info="t('account.searchInfo')"
|
label: t('account.search'),
|
||||||
|
info: t('account.searchInfo'),
|
||||||
|
}"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -23,9 +23,11 @@ const searchBarDataKeys = {
|
||||||
data-key="Role"
|
data-key="Role"
|
||||||
:descriptor="RoleDescriptor"
|
:descriptor="RoleDescriptor"
|
||||||
:search-data-key="searchBarDataKeys[routeName]"
|
:search-data-key="searchBarDataKeys[routeName]"
|
||||||
:search-custom-route-redirect="customRouteRedirectName"
|
:searchbarProps="{
|
||||||
:search-redirect="!!customRouteRedirectName"
|
redirect: !!customRouteRedirectName,
|
||||||
:searchbar-label="t('role.searchRoles')"
|
customRouteRedirectName,
|
||||||
:searchbar-info="t('role.searchInfo')"
|
label: t('role.searchRoles'),
|
||||||
|
info: t('role.searchInfo'),
|
||||||
|
}"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -11,9 +11,11 @@ import filter from './ClaimFilter.js';
|
||||||
:descriptor="ClaimDescriptor"
|
:descriptor="ClaimDescriptor"
|
||||||
:filter-panel="ClaimFilter"
|
:filter-panel="ClaimFilter"
|
||||||
search-data-key="ClaimList"
|
search-data-key="ClaimList"
|
||||||
search-url="Claims/filter"
|
|
||||||
searchbar-label="Search claim"
|
|
||||||
searchbar-info="You can search by claim id or customer name"
|
|
||||||
:filter="filter"
|
:filter="filter"
|
||||||
|
:searchbarProps="{
|
||||||
|
url: 'Claims/filter',
|
||||||
|
label: 'Search claim',
|
||||||
|
info: 'You can search by claim id or customer name',
|
||||||
|
}"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -10,8 +10,10 @@ import CustomerFilter from '../CustomerFilter.vue';
|
||||||
:descriptor="CustomerDescriptor"
|
:descriptor="CustomerDescriptor"
|
||||||
:filter-panel="CustomerFilter"
|
:filter-panel="CustomerFilter"
|
||||||
search-data-key="CustomerList"
|
search-data-key="CustomerList"
|
||||||
search-url="Clients/extendedListFilter"
|
:searchbarProps="{
|
||||||
searchbar-label="Search customer"
|
url: 'Clients/extendedListFilter',
|
||||||
searchbar-info="You can search by customer id or name"
|
label: 'Search customer',
|
||||||
|
info: 'You can search by customer id or name',
|
||||||
|
}"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -10,8 +10,10 @@ import EntryFilter from '../EntryFilter.vue';
|
||||||
:descriptor="EntryDescriptor"
|
:descriptor="EntryDescriptor"
|
||||||
:filter-panel="EntryFilter"
|
:filter-panel="EntryFilter"
|
||||||
search-data-key="EntryList"
|
search-data-key="EntryList"
|
||||||
search-url="Entries/filter"
|
:searchbarProps="{
|
||||||
searchbar-label="Search entries"
|
url: 'Entries/filter',
|
||||||
searchbar-info="You can search by entry reference"
|
label: 'Search entries',
|
||||||
|
info: 'You can search by entry reference',
|
||||||
|
}"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -10,8 +10,10 @@ import InvoiceOutFilter from '../InvoiceOutFilter.vue';
|
||||||
:descriptor="InvoiceOutDescriptor"
|
:descriptor="InvoiceOutDescriptor"
|
||||||
:filter-panel="InvoiceOutFilter"
|
:filter-panel="InvoiceOutFilter"
|
||||||
search-data-key="InvoiceOutList"
|
search-data-key="InvoiceOutList"
|
||||||
search-url="InvoiceOuts/filter"
|
:searchbarProps="{
|
||||||
searchbar-label="Search invoice"
|
url: 'InvoiceOuts/filter',
|
||||||
searchbar-info="You can search by invoice reference"
|
label: 'Search invoice',
|
||||||
|
info: 'You can search by invoice reference',
|
||||||
|
}"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -10,8 +10,10 @@ import ItemListFilter from '../ItemListFilter.vue';
|
||||||
:descriptor="ItemDescriptor"
|
:descriptor="ItemDescriptor"
|
||||||
:filter-panel="ItemListFilter"
|
:filter-panel="ItemListFilter"
|
||||||
search-data-key="ItemList"
|
search-data-key="ItemList"
|
||||||
search-url="Items/filter"
|
:searchbarProps="{
|
||||||
searchbar-label="searchbar.label"
|
url: 'Items/filter',
|
||||||
searchbar-info="searchbar.info"
|
label: 'searchbar.labelr',
|
||||||
|
info: 'searchbar.info',
|
||||||
|
}"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -16,8 +16,10 @@ const filter = {
|
||||||
:descriptor="ParkingDescriptor"
|
:descriptor="ParkingDescriptor"
|
||||||
:filter-panel="ParkingFilter"
|
:filter-panel="ParkingFilter"
|
||||||
search-data-key="ParkingList"
|
search-data-key="ParkingList"
|
||||||
search-url="Parkings"
|
:searchbarProps="{
|
||||||
searchbar-label="parking.searchBar.label"
|
url: 'Parkings',
|
||||||
searchbar-info="parking.searchBar.info"
|
label: 'parking.searchBar.label',
|
||||||
|
info: 'parking.searchBar.info',
|
||||||
|
}"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -8,8 +8,10 @@ import VnCard from 'components/common/VnCard.vue';
|
||||||
base-url="Agencies"
|
base-url="Agencies"
|
||||||
:descriptor="AgencyDescriptor"
|
:descriptor="AgencyDescriptor"
|
||||||
search-data-key="AgencyList"
|
search-data-key="AgencyList"
|
||||||
search-url="Agencies"
|
:searchbarProps="{
|
||||||
searchbar-label="agency.searchBar.label"
|
url: 'Agencies',
|
||||||
searchbar-info="agency.searchBar.info"
|
label: 'agency.searchBar.label',
|
||||||
|
info: 'agency.searchBar.info',
|
||||||
|
}"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -10,8 +10,10 @@ import RoadmapFilter from 'pages/Route/Roadmap/RoadmapFilter.vue';
|
||||||
:descriptor="RoadmapDescriptor"
|
:descriptor="RoadmapDescriptor"
|
||||||
:filter-panel="RoadmapFilter"
|
:filter-panel="RoadmapFilter"
|
||||||
search-data-key="RoadmapList"
|
search-data-key="RoadmapList"
|
||||||
search-url="Roadmaps"
|
:searchbarProps="{
|
||||||
searchbar-label="Search roadmap"
|
url: 'Roadmaps',
|
||||||
searchbar-info="You can search by roadmap id or customer name"
|
label: 'Search roadmap',
|
||||||
|
info: 'You can search by roadmap id or customer name',
|
||||||
|
}"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -10,8 +10,10 @@ import SupplierListFilter from '../SupplierListFilter.vue';
|
||||||
:descriptor="SupplierDescriptor"
|
:descriptor="SupplierDescriptor"
|
||||||
:filter-panel="SupplierListFilter"
|
:filter-panel="SupplierListFilter"
|
||||||
search-data-key="SupplierList"
|
search-data-key="SupplierList"
|
||||||
search-url="Suppliers/filter"
|
:searchbar-props="{
|
||||||
searchbar-label="Search suppliers"
|
url: 'Suppliers/filter',
|
||||||
search-url-query="table"
|
searchUrl: 'table',
|
||||||
|
label: 'Search suppliers',
|
||||||
|
}"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -11,6 +11,7 @@ const { t } = useI18n();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
|
||||||
const routeName = computed(() => route.name);
|
const routeName = computed(() => route.name);
|
||||||
|
const customRouteRedirectName = computed(() => routeName.value);
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<VnCard
|
<VnCard
|
||||||
|
@ -19,8 +20,10 @@ const routeName = computed(() => route.name);
|
||||||
:filter-panel="TicketFilter"
|
:filter-panel="TicketFilter"
|
||||||
:descriptor="TicketDescriptor"
|
:descriptor="TicketDescriptor"
|
||||||
search-data-key="TicketList"
|
search-data-key="TicketList"
|
||||||
:search-custom-route-redirect="routeName"
|
:searchbarProps="{
|
||||||
:searchbar-label="t('card.search')"
|
customRouteRedirectName,
|
||||||
:searchbar-info="t('card.searchInfo')"
|
label: t('card.search'),
|
||||||
|
info: t('card.searchInfo'),
|
||||||
|
}"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -35,10 +35,12 @@ const filter = {
|
||||||
data-key="Travel"
|
data-key="Travel"
|
||||||
base-url="Travels"
|
base-url="Travels"
|
||||||
search-data-key="TravelList"
|
search-data-key="TravelList"
|
||||||
searchbar-label="Search travel"
|
|
||||||
searchbar-info="You can search by travel id or name"
|
|
||||||
search-url="Travels"
|
|
||||||
:filter="filter"
|
:filter="filter"
|
||||||
:descriptor="TravelDescriptor"
|
:descriptor="TravelDescriptor"
|
||||||
|
:searchbarProps="{
|
||||||
|
url: 'Travels',
|
||||||
|
label: 'Search travel',
|
||||||
|
info: 'You can search by travel id or name',
|
||||||
|
}"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -10,8 +10,10 @@ import WorkerFilter from '../WorkerFilter.vue';
|
||||||
:descriptor="WorkerDescriptor"
|
:descriptor="WorkerDescriptor"
|
||||||
:filter-panel="WorkerFilter"
|
:filter-panel="WorkerFilter"
|
||||||
search-data-key="WorkerList"
|
search-data-key="WorkerList"
|
||||||
search-url="Workers/filter"
|
:searchbarProps="{
|
||||||
searchbar-label="Search worker"
|
url: 'Workers/filter',
|
||||||
searchbar-info="You can search by worker id or name"
|
label: 'Search worker',
|
||||||
|
info: 'You can search by worker id or name',
|
||||||
|
}"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -28,11 +28,12 @@ const searchBarDataKeys = {
|
||||||
data-key="Zone"
|
data-key="Zone"
|
||||||
:descriptor="ZoneDescriptor"
|
:descriptor="ZoneDescriptor"
|
||||||
:search-data-key="searchBarDataKeys[routeName]"
|
:search-data-key="searchBarDataKeys[routeName]"
|
||||||
:search-custom-route-redirect="customRouteRedirectName"
|
:filter-panel="ZoneFilterPanel"
|
||||||
:search-redirect="!!customRouteRedirectName"
|
:searchbarProps="{
|
||||||
:search-make-fetch="searchbarMakeFetch"
|
url: 'Zones',
|
||||||
:searchbar-label="t('list.searchZone')"
|
label: t('list.searchZone'),
|
||||||
:searchbar-info="t('list.searchInfo')"
|
info: t('list.searchInfo'),
|
||||||
|
}"
|
||||||
>
|
>
|
||||||
<template #searchbar>
|
<template #searchbar>
|
||||||
<ZoneSearchbar />
|
<ZoneSearchbar />
|
||||||
|
|
Loading…
Reference in New Issue