tsv2-library 1.0.61-beta.64 → 1.0.61-beta.65
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.
|
@@ -56,6 +56,10 @@ export interface AssetFilterProps {
|
|
|
56
56
|
* The list of filter fields to hide. This has a higher priority than `showFields`.
|
|
57
57
|
*/
|
|
58
58
|
hideFields?: AssetFilterFields[];
|
|
59
|
+
/**
|
|
60
|
+
* To determine the tag type options
|
|
61
|
+
*/
|
|
62
|
+
tagType?: 'RFID' | 'QR' | 'RFID & QR';
|
|
59
63
|
}
|
|
60
64
|
|
|
61
65
|
export type AssetFilterEmits = {
|
package/dist/tsv2-library.es.js
CHANGED
|
@@ -61983,7 +61983,8 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
61983
61983
|
tableName: {},
|
|
61984
61984
|
fetchOptions: {},
|
|
61985
61985
|
showFields: {},
|
|
61986
|
-
hideFields: {}
|
|
61986
|
+
hideFields: {},
|
|
61987
|
+
tagType: {}
|
|
61987
61988
|
}, {
|
|
61988
61989
|
"filter": { required: true },
|
|
61989
61990
|
"filterModifiers": {},
|
|
@@ -62044,7 +62045,17 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
62044
62045
|
"In Audit",
|
|
62045
62046
|
"None"
|
|
62046
62047
|
];
|
|
62047
|
-
const TAG_OPTIONS =
|
|
62048
|
+
const TAG_OPTIONS = computed(() => {
|
|
62049
|
+
const TAG_MAP = {
|
|
62050
|
+
"QR": ["QR", "RFID & QR"],
|
|
62051
|
+
"RFID": ["RFID", "RFID & QR"],
|
|
62052
|
+
"RFID & QR": ["QR", "RFID", "RFID & QR"]
|
|
62053
|
+
};
|
|
62054
|
+
const DEFAULT_TAG_OPTIONS = ["RFID", "QR", "RFID & QR", "Non TAG"];
|
|
62055
|
+
if (!props.tagType)
|
|
62056
|
+
return DEFAULT_TAG_OPTIONS;
|
|
62057
|
+
return TAG_MAP[props.tagType] ?? DEFAULT_TAG_OPTIONS;
|
|
62058
|
+
});
|
|
62048
62059
|
const WARRANTY_STATUS_OPTIONS = ["Active", "Deactive", "Not Set"];
|
|
62049
62060
|
const loadingOptions2 = ref({});
|
|
62050
62061
|
const filterOptions2 = ref({});
|
|
@@ -62208,11 +62219,11 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
62208
62219
|
key: 6,
|
|
62209
62220
|
modelValue: filter4.value.tagType,
|
|
62210
62221
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => filter4.value.tagType = $event),
|
|
62211
|
-
options: TAG_OPTIONS,
|
|
62222
|
+
options: TAG_OPTIONS.value,
|
|
62212
62223
|
"data-ts-section": "tag-filter-input",
|
|
62213
62224
|
label: "TAG",
|
|
62214
62225
|
placeholder: "Select TAG"
|
|
62215
|
-
}, null, 8, ["modelValue"])) : createCommentVNode("", true),
|
|
62226
|
+
}, null, 8, ["modelValue", "options"])) : createCommentVNode("", true),
|
|
62216
62227
|
showFilterList.value.includes("measurement") ? (openBlock(), createBlock(_sfc_main$13, {
|
|
62217
62228
|
key: 7,
|
|
62218
62229
|
modelValue: filter4.value.measurement,
|
|
@@ -62925,8 +62936,9 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
62925
62936
|
"onUpdate:visibleColumns": _cache[4] || (_cache[4] = ($event) => visibleColumns.value = $event),
|
|
62926
62937
|
"fetch-options": handleFetchOptions,
|
|
62927
62938
|
"table-name": TABLE_NAME,
|
|
62939
|
+
"tag-type": typeof props.tagType !== "boolean" ? props.tagType : void 0,
|
|
62928
62940
|
onUpdateFields: _cache[5] || (_cache[5] = ($event) => containerKey.value++)
|
|
62929
|
-
}, null, 8, ["filter", "visible-columns"])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(filterLists.value, (field2) => {
|
|
62941
|
+
}, null, 8, ["filter", "visible-columns", "tag-type"])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(filterLists.value, (field2) => {
|
|
62930
62942
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
62931
62943
|
field2.fieldName === "group" ? (openBlock(), createBlock(_sfc_main$19, {
|
|
62932
62944
|
key: field2.label,
|