@7365admin1/layer-common 4.97.1-staging.738 → 4.97.1-staging.740

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.
@@ -130,6 +130,15 @@
130
130
  item-value="value"
131
131
  label="Status"
132
132
  />
133
+ <AppButton
134
+ v-if="hasFilters"
135
+ variant="ghost"
136
+ icon="mdi-filter-remove-outline"
137
+ class="filter-bar__fit"
138
+ @click="onRefresh"
139
+ >
140
+ Clear Filter
141
+ </AppButton>
133
142
  </div>
134
143
  </v-row>
135
144
  </template>
@@ -347,6 +356,9 @@ watch([startDate, endDate, status], () => {
347
356
  * fetches; when none was set, nothing fires it, so do the same here.
348
357
  */
349
358
  const filterKey = ref(0);
359
+ const hasFilters = computed(
360
+ () => !!startDate.value || !!endDate.value || status.value !== "all",
361
+ );
350
362
 
351
363
  function onRefresh() {
352
364
  const filtered =
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.738",
5
+ "version": "4.97.1-staging.740",
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.",
@@ -1,3 +1,4 @@
1
+ import { qtyUnit } from "./inventory-ack";
1
2
  /**
2
3
  * DV-1787: shared wording for checkouts (stock issued for a work order / to come back by a date),
3
4
  * used by the Checked out list, My Stock and a work order's Issued items.
@@ -91,7 +92,7 @@ export function askedText(c: { unit: string; serials?: { _id: string; serial: st
91
92
  .sort((x, y) => x.localeCompare(y, undefined, { numeric: true }));
92
93
  const plain = Math.max(0, a.qty - a.serials.length);
93
94
  const what = [names.length ? `S/N ${names.join(", ")}` : "", plain ? `${plain} without serial number` : ""].filter(Boolean).join(" + ");
94
- return `${a.qty} ${c.unit || "pcs"}${what ? ` · ${what}` : ""}`;
95
+ return `${qtyUnit(a.qty, c.unit)}${what ? ` · ${what}` : ""}`;
95
96
  }
96
97
 
97
98
  /**