tsv2-library 1.0.61-alpha.30 → 1.0.61-alpha.31

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.
@@ -60,8 +60,10 @@ export type Asset = {
60
60
  };
61
61
  lastModifier?: string;
62
62
  updatedAt?: string;
63
- rfid?: string;
64
- qr?: string;
63
+ tagReported: {
64
+ rfid?: string;
65
+ qr?: string;
66
+ };
65
67
  firstImage?: string;
66
68
  secondImageSmall?: string;
67
69
  secondImageMedium?: string;
@@ -65911,24 +65911,24 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
65911
65911
  const emit = __emit;
65912
65912
  const visibility = computed(() => props.visible);
65913
65913
  const tagOptions = computed(() => {
65914
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t2, _u, _v;
65914
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t2, _u, _v, _w, _x, _y, _z;
65915
65915
  const isRFIDReported = (_a = props.tagReported) == null ? void 0 : _a.rfid;
65916
65916
  const isQRReported = (_b = props.tagReported) == null ? void 0 : _b.qr;
65917
65917
  return [
65918
65918
  {
65919
65919
  label: "RFID TAG",
65920
65920
  value: "RFID",
65921
- visible: ((_d = (_c = assetInfo.value) == null ? void 0 : _c.asset) == null ? void 0 : _d.rfid) && !isRFIDReported && !((_g = (_f = (_e = assetInfo.value) == null ? void 0 : _e.asset) == null ? void 0 : _f.tagReported) == null ? void 0 : _g.rfid)
65921
+ visible: !!((_e = (_d = (_c = assetInfo.value) == null ? void 0 : _c.asset) == null ? void 0 : _d.tagType) == null ? void 0 : _e.includes("RFID")) && !isRFIDReported && !((_h = (_g = (_f = assetInfo.value) == null ? void 0 : _f.asset) == null ? void 0 : _g.tagReported) == null ? void 0 : _h.rfid)
65922
65922
  },
65923
65923
  {
65924
65924
  label: "QR TAG",
65925
65925
  value: "QR",
65926
- visible: ((_i = (_h = assetInfo.value) == null ? void 0 : _h.asset) == null ? void 0 : _i.qr) && !isQRReported && !((_l = (_k = (_j = assetInfo.value) == null ? void 0 : _j.asset) == null ? void 0 : _k.tagReported) == null ? void 0 : _l.qr)
65926
+ visible: !!((_k = (_j = (_i = assetInfo.value) == null ? void 0 : _i.asset) == null ? void 0 : _j.tagType) == null ? void 0 : _k.includes("QR")) && !isQRReported && !((_n = (_m = (_l = assetInfo.value) == null ? void 0 : _l.asset) == null ? void 0 : _m.tagReported) == null ? void 0 : _n.qr)
65927
65927
  },
65928
65928
  {
65929
65929
  label: "RFID & QR TAG",
65930
65930
  value: "RFID & QR",
65931
- visible: ((_n = (_m = assetInfo.value) == null ? void 0 : _m.asset) == null ? void 0 : _n.rfid) && ((_p = (_o = assetInfo.value) == null ? void 0 : _o.asset) == null ? void 0 : _p.qr) && !isRFIDReported && !((_s = (_r = (_q = assetInfo.value) == null ? void 0 : _q.asset) == null ? void 0 : _r.tagReported) == null ? void 0 : _s.rfid) && !isQRReported && !((_v = (_u = (_t2 = assetInfo.value) == null ? void 0 : _t2.asset) == null ? void 0 : _u.tagReported) == null ? void 0 : _v.qr)
65931
+ visible: !!((_q = (_p = (_o = assetInfo.value) == null ? void 0 : _o.asset) == null ? void 0 : _p.tagType) == null ? void 0 : _q.includes("RFID")) && !!((_t2 = (_s = (_r = assetInfo.value) == null ? void 0 : _r.asset) == null ? void 0 : _s.tagType) == null ? void 0 : _t2.includes("QR")) && !isRFIDReported && !((_w = (_v = (_u = assetInfo.value) == null ? void 0 : _u.asset) == null ? void 0 : _v.tagReported) == null ? void 0 : _w.rfid) && !isQRReported && !((_z = (_y = (_x = assetInfo.value) == null ? void 0 : _x.asset) == null ? void 0 : _y.tagReported) == null ? void 0 : _z.qr)
65932
65932
  }
65933
65933
  ].filter((option) => option.visible);
65934
65934
  });
@@ -65991,10 +65991,11 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
65991
65991
  width: "large"
65992
65992
  }, {
65993
65993
  confirm: withCtx((confirmProps) => {
65994
- var _a, _b, _c;
65994
+ var _a, _b, _c, _d, _e, _f;
65995
65995
  return [
65996
- createVNode(unref(_sfc_main$13), {
65997
- lists: [(_c = (_b = (_a = assetInfo.value) == null ? void 0 : _a.asset) == null ? void 0 : _b.name) == null ? void 0 : _c.nameWithSequence],
65996
+ ((_c = (_b = (_a = assetInfo.value) == null ? void 0 : _a.asset) == null ? void 0 : _b.name) == null ? void 0 : _c.nameWithSequence) ? (openBlock(), createBlock(unref(_sfc_main$13), {
65997
+ key: 0,
65998
+ lists: [(_f = (_e = (_d = assetInfo.value) == null ? void 0 : _d.asset) == null ? void 0 : _e.name) == null ? void 0 : _f.nameWithSequence],
65998
65999
  visible: confirmProps.visible,
65999
66000
  onConfirm: ($event) => confirmProps.submit(submitForm),
66000
66001
  "onUpdate:visible": ($event) => !$event && confirmProps.hide(),
@@ -66003,7 +66004,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
66003
66004
  "data-ts-section": "confirm-dialog",
66004
66005
  header: "Report TAG",
66005
66006
  severity: "danger"
66006
- }, null, 8, ["lists", "visible", "onConfirm", "onUpdate:visible"])
66007
+ }, null, 8, ["lists", "visible", "onConfirm", "onUpdate:visible"])) : createCommentVNode("", true)
66007
66008
  ];
66008
66009
  }),
66009
66010
  fields: withCtx(() => {