@maxax/ui 1.1.26 → 1.1.27

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.
@@ -1 +1 @@
1
- {"version":3,"file":"BasicButtonImportPreview.vue.d.ts","sourceRoot":"","sources":["../../../src/components/basic-button-import-preview/BasicButtonImportPreview.vue"],"names":[],"mappings":"AAyKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAS9C,OAAO,KAAK,EAAiC,6BAA6B,EAAE,MAAM,aAAa,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwS/F,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"BasicButtonImportPreview.vue.d.ts","sourceRoot":"","sources":["../../../src/components/basic-button-import-preview/BasicButtonImportPreview.vue"],"names":[],"mappings":"AA2KA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAS9C,OAAO,KAAK,EAAiC,6BAA6B,EAAE,MAAM,aAAa,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0S/F,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"BasicButtonImportPreviewModal.vue.d.ts","sourceRoot":"","sources":["../../../src/components/basic-button-import-preview/BasicButtonImportPreviewModal.vue"],"names":[],"mappings":"AAwFA,OAAO,EAAY,QAAQ,EAAuB,MAAM,KAAK,CAAA;AAI7D,OAAO,KAAK,EAAE,eAAe,EAAmB,MAAM,gBAAgB,CAAA;AAEtE,OAAO,KAAK,EAAsC,kCAAkC,EAAE,MAAM,aAAa,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmNzG,wBAUG"}
1
+ {"version":3,"file":"BasicButtonImportPreviewModal.vue.d.ts","sourceRoot":"","sources":["../../../src/components/basic-button-import-preview/BasicButtonImportPreviewModal.vue"],"names":[],"mappings":"AAuFA,OAAO,EAAY,QAAQ,EAAuB,MAAM,KAAK,CAAA;AAI7D,OAAO,KAAK,EAAE,eAAe,EAAmB,MAAM,gBAAgB,CAAA;AAEtE,OAAO,KAAK,EAAsC,kCAAkC,EAAE,MAAM,aAAa,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkNzG,wBAUG"}
package/dist/index.cjs CHANGED
@@ -6501,7 +6501,6 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
6501
6501
  const data = ((_a = basicTableRef.value) == null ? void 0 : _a.getDataSource()) || [];
6502
6502
  const records = ((_b = basicTableRef.value) == null ? void 0 : _b.getSelectRows()) || [];
6503
6503
  emit("confirm", { data, records });
6504
- hide();
6505
6504
  }
6506
6505
  __expose({
6507
6506
  show,
@@ -8487,14 +8486,15 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
8487
8486
  });
8488
8487
  }
8489
8488
  async function onPreviewConfirm({ data, records }) {
8490
- var _a, _b;
8491
- if (!currentFile.value) return;
8489
+ var _a, _b, _c, _d;
8490
+ if (!currentFile.value) return false;
8492
8491
  const canSave = await runBeforeSaveGuard({ data, records, checked: currentChecked.value, file: currentFile.value });
8493
- if (!canSave) return;
8492
+ if (!canSave) return false;
8494
8493
  if (!props.saveApi) {
8495
8494
  emit("preview", { data, checked: currentChecked.value, file: currentFile.value, records });
8496
- (_a = uploadModalRef.value) == null ? void 0 : _a.hide();
8497
- return;
8495
+ (_a = previewModalRef.value) == null ? void 0 : _a.hide();
8496
+ (_b = uploadModalRef.value) == null ? void 0 : _b.hide();
8497
+ return false;
8498
8498
  }
8499
8499
  try {
8500
8500
  const params = props.beforeFetchSave ? props.beforeFetchSave({ data, records }) : { dtoList: data };
@@ -8503,7 +8503,8 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
8503
8503
  } catch (error) {
8504
8504
  console.error(error);
8505
8505
  } finally {
8506
- (_b = uploadModalRef.value) == null ? void 0 : _b.hide();
8506
+ (_c = previewModalRef.value) == null ? void 0 : _c.hide();
8507
+ (_d = uploadModalRef.value) == null ? void 0 : _d.hide();
8507
8508
  }
8508
8509
  }
8509
8510
  function onClickHandler() {