tsv2-library 1.0.61-beta.63 → 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
|
@@ -54669,6 +54669,12 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
54669
54669
|
const totalRecords2 = ref();
|
|
54670
54670
|
const loadingTable = ref(false);
|
|
54671
54671
|
const prevQueryParams = shallowRef({});
|
|
54672
|
+
const visibleOrDefaultColumns = computed(
|
|
54673
|
+
() => {
|
|
54674
|
+
var _a;
|
|
54675
|
+
return ((_a = visibleColumns.value) == null ? void 0 : _a.length) ? visibleColumns.value : props.columns.filter((col) => col.visible !== false);
|
|
54676
|
+
}
|
|
54677
|
+
);
|
|
54672
54678
|
const queryParams = computed(() => {
|
|
54673
54679
|
var _a;
|
|
54674
54680
|
return {
|
|
@@ -54678,7 +54684,9 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
54678
54684
|
limit: props.usePaginator ? tableRows.value : void 0,
|
|
54679
54685
|
sortOrder: sortOrder2.value,
|
|
54680
54686
|
sortBy: sortBy.value,
|
|
54681
|
-
columns: JSON.stringify(
|
|
54687
|
+
columns: JSON.stringify(
|
|
54688
|
+
visibleOrDefaultColumns.value.map((col) => col.field)
|
|
54689
|
+
),
|
|
54682
54690
|
...props.filters
|
|
54683
54691
|
// This will resets the previous filters.
|
|
54684
54692
|
};
|
|
@@ -61975,7 +61983,8 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
61975
61983
|
tableName: {},
|
|
61976
61984
|
fetchOptions: {},
|
|
61977
61985
|
showFields: {},
|
|
61978
|
-
hideFields: {}
|
|
61986
|
+
hideFields: {},
|
|
61987
|
+
tagType: {}
|
|
61979
61988
|
}, {
|
|
61980
61989
|
"filter": { required: true },
|
|
61981
61990
|
"filterModifiers": {},
|
|
@@ -62036,7 +62045,17 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
62036
62045
|
"In Audit",
|
|
62037
62046
|
"None"
|
|
62038
62047
|
];
|
|
62039
|
-
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
|
+
});
|
|
62040
62059
|
const WARRANTY_STATUS_OPTIONS = ["Active", "Deactive", "Not Set"];
|
|
62041
62060
|
const loadingOptions2 = ref({});
|
|
62042
62061
|
const filterOptions2 = ref({});
|
|
@@ -62200,11 +62219,11 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
62200
62219
|
key: 6,
|
|
62201
62220
|
modelValue: filter4.value.tagType,
|
|
62202
62221
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => filter4.value.tagType = $event),
|
|
62203
|
-
options: TAG_OPTIONS,
|
|
62222
|
+
options: TAG_OPTIONS.value,
|
|
62204
62223
|
"data-ts-section": "tag-filter-input",
|
|
62205
62224
|
label: "TAG",
|
|
62206
62225
|
placeholder: "Select TAG"
|
|
62207
|
-
}, null, 8, ["modelValue"])) : createCommentVNode("", true),
|
|
62226
|
+
}, null, 8, ["modelValue", "options"])) : createCommentVNode("", true),
|
|
62208
62227
|
showFilterList.value.includes("measurement") ? (openBlock(), createBlock(_sfc_main$13, {
|
|
62209
62228
|
key: 7,
|
|
62210
62229
|
modelValue: filter4.value.measurement,
|
|
@@ -62917,8 +62936,9 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
62917
62936
|
"onUpdate:visibleColumns": _cache[4] || (_cache[4] = ($event) => visibleColumns.value = $event),
|
|
62918
62937
|
"fetch-options": handleFetchOptions,
|
|
62919
62938
|
"table-name": TABLE_NAME,
|
|
62939
|
+
"tag-type": typeof props.tagType !== "boolean" ? props.tagType : void 0,
|
|
62920
62940
|
onUpdateFields: _cache[5] || (_cache[5] = ($event) => containerKey.value++)
|
|
62921
|
-
}, 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) => {
|
|
62922
62942
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
62923
62943
|
field2.fieldName === "group" ? (openBlock(), createBlock(_sfc_main$19, {
|
|
62924
62944
|
key: field2.label,
|