@7365admin1/layer-common 4.97.1-staging.634 → 4.97.1-staging.635
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -40,7 +40,8 @@
|
|
|
40
40
|
</template>
|
|
41
41
|
|
|
42
42
|
<!-- Residents / Season Passes / Block Listed, on the toolbar row the way
|
|
43
|
-
the other screens draw their tabs.
|
|
43
|
+
the other screens draw their tabs. Deleted plates show only under the
|
|
44
|
+
Deleted filter. -->
|
|
44
45
|
<template #tabs>
|
|
45
46
|
<button v-for="tab in vehicleTabs" :key="tab.value" type="button" role="tab" class="app-tab"
|
|
46
47
|
:class="{ 'app-tab--active': activeTab === tab.value }" :aria-selected="activeTab === tab.value"
|
|
@@ -54,6 +55,9 @@
|
|
|
54
55
|
<v-select v-if="qrEnabled" v-model="qrStickerFilter" :items="qrStickerFilterItems" label="QR sticker"
|
|
55
56
|
density="compact" variant="outlined" hide-details class="vehicle-qr-filter" style="max-width: 190px"
|
|
56
57
|
data-test="vehicle-qr-filter" />
|
|
58
|
+
<v-select v-model="statusFilter" :items="statusFilterItems" label="Records"
|
|
59
|
+
density="compact" variant="outlined" hide-details class="vehicle-status-filter" style="max-width: 160px"
|
|
60
|
+
data-test="vehicle-status-filter" />
|
|
57
61
|
<AppField v-model="searchInput" search compact placeholder="Search" klass="app-toolbar__search" />
|
|
58
62
|
</template>
|
|
59
63
|
|
|
@@ -615,6 +619,14 @@ const qrStickerFilterItems = [
|
|
|
615
619
|
];
|
|
616
620
|
const qrStickersOn = computed(() => qrEnabled.value && props.canUpdateVehicle);
|
|
617
621
|
|
|
622
|
+
// Deleting is a soft delete and the list leaves deleted plates out unless asked
|
|
623
|
+
// for (IS-0864). "Deleted" is how one is found again - and Restored.
|
|
624
|
+
const statusFilter = ref("");
|
|
625
|
+
const statusFilterItems = [
|
|
626
|
+
{ title: "Current", value: "" },
|
|
627
|
+
{ title: "Deleted", value: "deleted" },
|
|
628
|
+
];
|
|
629
|
+
|
|
618
630
|
/**
|
|
619
631
|
* Re-issue / Undo / Link / Remove on one plate change that vehicle, so on a
|
|
620
632
|
* Block Listed plate they follow Manage Blocklist (owner, 2026-10-23) when the
|
|
@@ -983,6 +995,7 @@ const { data: getVehiclesReq, refresh: getVehiclesRefresh, pending: getVehiclesP
|
|
|
983
995
|
search: searchInput.value,
|
|
984
996
|
view: activeTab.value,
|
|
985
997
|
site: props.site,
|
|
998
|
+
status: statusFilter.value,
|
|
986
999
|
qrSticker: qrEnabled.value ? qrStickerFilter.value : "",
|
|
987
1000
|
}),
|
|
988
1001
|
{
|
|
@@ -1495,6 +1508,11 @@ watch(qrStickerFilter, () => {
|
|
|
1495
1508
|
getVehiclesRefresh();
|
|
1496
1509
|
})
|
|
1497
1510
|
|
|
1511
|
+
watch(statusFilter, () => {
|
|
1512
|
+
page.value = 1;
|
|
1513
|
+
getVehiclesRefresh();
|
|
1514
|
+
})
|
|
1515
|
+
|
|
1498
1516
|
// A new tab starts from its first page and loads straight away.
|
|
1499
1517
|
watch(activeTab, () => {
|
|
1500
1518
|
page.value = 1;
|
|
@@ -12,7 +12,8 @@ export default function useVehicle() {
|
|
|
12
12
|
qrSticker = "",
|
|
13
13
|
} = {}) {
|
|
14
14
|
// `view` is the screen's tab: residents, season-passes or block-listed.
|
|
15
|
-
//
|
|
15
|
+
// Deleted vehicles come back only with `status: "deleted"`; with no
|
|
16
|
+
// `status` every other status does.
|
|
16
17
|
return await useNuxtApp().$api<Record<string, any>>("/api/vehicles", {
|
|
17
18
|
method: "GET",
|
|
18
19
|
query: { search, page, limit, order, type, category, site, status, view, qrSticker },
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@7365admin1/layer-common",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "4.97.1-staging.
|
|
5
|
+
"version": "4.97.1-staging.635",
|
|
6
6
|
"author": "7365admin1",
|
|
7
7
|
"main": "./nuxt.config.ts",
|
|
8
8
|
"//files": "What a consumer extending this layer actually loads. Without this npm ships the whole working tree - the changesets, the CI workflows, the render harness in tools/ and any scratch directory that happened to exist at publish time. Nuxt resolves a layer by directory, so every runtime directory below has to stay listed; adding a new top-level runtime directory means adding it here too.",
|