tsv2-library 1.0.61-alpha.71 → 1.0.61-alpha.73

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.
@@ -66698,7 +66698,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
66698
66698
  const assetNotes = ref(/* @__PURE__ */ new Map());
66699
66699
  const columns2 = [
66700
66700
  {
66701
- field: "assetImageSmall",
66701
+ field: "assetImage",
66702
66702
  header: "Photo",
66703
66703
  style: "min-width: 72px",
66704
66704
  fixed: true,
@@ -66708,8 +66708,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
66708
66708
  return {
66709
66709
  component: _sfc_main$Q,
66710
66710
  props: {
66711
- thumbnail: data30.assetImageSmall,
66712
- preview: data30.assetImageBig,
66711
+ thumbnail: data30.assetImage,
66712
+ preview: data30.assetImage,
66713
66713
  description: "asset-report-photo",
66714
66714
  style: "width: 28px; height: 28px;"
66715
66715
  }
@@ -66737,8 +66737,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
66737
66737
  component: _sfc_main$1l,
66738
66738
  props: {
66739
66739
  label: (_a = data30.brand) == null ? void 0 : _a.name,
66740
- severity: "dark",
66741
- format: "nowrap"
66740
+ severity: "dark"
66742
66741
  }
66743
66742
  };
66744
66743
  }
@@ -66754,8 +66753,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
66754
66753
  component: _sfc_main$1l,
66755
66754
  props: {
66756
66755
  label: (_a = data30.model) == null ? void 0 : _a.name,
66757
- severity: "dark",
66758
- format: "nowrap"
66756
+ severity: "dark"
66759
66757
  }
66760
66758
  };
66761
66759
  }
@@ -66770,8 +66768,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
66770
66768
  return {
66771
66769
  component: _sfc_main$1l,
66772
66770
  props: {
66773
- label: (_a = data30.group) == null ? void 0 : _a.name,
66774
- format: "nowrap"
66771
+ label: (_a = data30.group) == null ? void 0 : _a.name
66775
66772
  }
66776
66773
  };
66777
66774
  }
@@ -70165,9 +70162,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
70165
70162
  revokeObjectURL(index2);
70166
70163
  reject("File type is not image!");
70167
70164
  } else if (isExceededLimit(file.size)) {
70165
+ deleteImage(index2, true);
70168
70166
  invalidInput.value = true;
70169
70167
  invalidMessage.value = "File size is too big! Max. 1 MB";
70170
- assignPreviewImagesFromProp();
70171
70168
  showImageCropper.value = false;
70172
70169
  revokeObjectURL(index2);
70173
70170
  reject("File size is too big! Max. 1 MB");
@@ -70332,7 +70329,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
70332
70329
  } else
70333
70330
  deleteImage(index2);
70334
70331
  };
70335
- const deleteImage = (index2 = 0) => {
70332
+ const deleteImage = (index2 = 0, deleteImmediately = false) => {
70336
70333
  invalidInput.value = false;
70337
70334
  invalidMessage.value = void 0;
70338
70335
  previewImages.value = previewImages.value.toSpliced(index2, 1);
@@ -70341,7 +70338,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
70341
70338
  image2.value = [image2.value[+!index2], image2.value[index2]];
70342
70339
  currentCropingImageIndex.value = 0;
70343
70340
  defaultImage.value = 0;
70344
- if (!props.confirmOnDelete)
70341
+ if (!props.confirmOnDelete || deleteImmediately)
70345
70342
  emit("delete", deleteImage, index2);
70346
70343
  if (props.multiple && Array.isArray(field2.value)) {
70347
70344
  field2.value = field2.value.toSpliced(index2, 1);