tsv2-library 1.0.61-alpha.40 → 1.0.61-alpha.41

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.
@@ -115,15 +115,9 @@ export interface Asset {
115
115
  auditStatus?: string | null;
116
116
  rfid?: boolean;
117
117
  qr?: boolean;
118
- assetImageSmall?: null | 'string';
119
- assetImageMedium?: null | 'string';
120
- assetImageBig?: null | 'string';
121
- imageSmall?: null | 'string';
122
- imageMedium?: null | 'string';
123
- imageBig?: null | 'string';
124
- firstImageSmall?: string;
125
- firstImageMedium?: string;
126
- firstImageBig?: string;
118
+ assetImage?: 'string';
119
+ image?: 'string';
120
+ firstImage?: string;
127
121
  }
128
122
 
129
123
  export type QueryParams = {
@@ -55683,19 +55683,15 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
55683
55683
  }
55684
55684
  const assetColumn = [
55685
55685
  {
55686
- field: "imageSmall",
55686
+ field: "assetImage",
55687
55687
  header: "Photo",
55688
55688
  style: "min-width: 72px",
55689
55689
  bodyComponent: (data30) => {
55690
55690
  return {
55691
55691
  component: _sfc_main$Q,
55692
55692
  props: {
55693
- thumbnail: getImageURL(
55694
- data30.assetImageSmall ?? data30.imageSmall ?? data30.firstImageSmall
55695
- ),
55696
- preview: getImageURL(
55697
- data30.assetImageBig ?? data30.imageBig ?? data30.firstImageBig
55698
- ),
55693
+ thumbnail: data30.assetImage ?? data30.image ?? data30.firstImage,
55694
+ preview: data30.assetImage ?? data30.image ?? data30.firstImage,
55699
55695
  description: "",
55700
55696
  style: "width: 28px; height: 28px;"
55701
55697
  }
@@ -65504,10 +65500,12 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
65504
65500
  const props = __props;
65505
65501
  const emit = __emit;
65506
65502
  const visibility = computed(() => props.visible);
65507
- const assetWithTag = computed(() => {
65508
- var _a;
65509
- return ((_a = assetInfo.value) == null ? void 0 : _a.tagType) !== "Non TAG";
65510
- });
65503
+ const assetWithTag = computed(
65504
+ () => {
65505
+ var _a, _b;
65506
+ return ((_b = (_a = assetInfo.value) == null ? void 0 : _a.asset) == null ? void 0 : _b.tagType) !== "Non TAG";
65507
+ }
65508
+ );
65511
65509
  const dialogForm = ref();
65512
65510
  const assetInfo = ref();
65513
65511
  const reportTagDialog = shallowRef(false);
@@ -65537,8 +65535,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
65537
65535
  return "";
65538
65536
  });
65539
65537
  const hasTag = (tagType) => {
65540
- var _a;
65541
- return ((_a = assetInfo.value) == null ? void 0 : _a.tagType.includes(tagType)) ?? false;
65538
+ var _a, _b, _c;
65539
+ return ((_c = (_b = (_a = assetInfo.value) == null ? void 0 : _a.asset) == null ? void 0 : _b.tagType) == null ? void 0 : _c.includes(tagType)) ?? false;
65542
65540
  };
65543
65541
  const submitForm = async (payload) => {
65544
65542
  try {