@gsp-svc/formdoc-upload-vue 1.0.0 → 1.0.1

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.
@@ -4737,7 +4737,7 @@ class UploadDialogService {
4737
4737
  if (flag === 0) {
4738
4738
  (_b = (_a = FileUploadNode == null ? void 0 : FileUploadNode.component) == null ? void 0 : _a.exposed) == null ? void 0 : _b.cancel();
4739
4739
  }
4740
- return Promise.resolve(true);
4740
+ return true;
4741
4741
  }
4742
4742
  });
4743
4743
  });
@@ -4751,6 +4751,22 @@ class UploadDialogService {
4751
4751
  uploadFileWithLimit() {
4752
4752
  return __async(this, arguments, function* (formId = formIdDefault, rootId = rootIdDefault, limit, oldIdList = []) {
4753
4753
  let flag = 0;
4754
+ const propss = { rootId, formId, oldIdList };
4755
+ if (limit) {
4756
+ propss.fileCount = limit.fileCount;
4757
+ propss.securityInfo = limit.securityInfo;
4758
+ propss.fileNameLength = limit.fileNameLength;
4759
+ if (limit.fileType) {
4760
+ propss.fileType = limit.fileType;
4761
+ }
4762
+ }
4763
+ const FileUploadNodeN = createVNode(
4764
+ FileUpload$1,
4765
+ __spreadValues({}, propss),
4766
+ {
4767
+ /* 插槽 */
4768
+ }
4769
+ );
4754
4770
  return new Promise((resolve) => {
4755
4771
  this.dlg = this.modalService.open({
4756
4772
  title: this.t("uploadFile"),
@@ -4758,23 +4774,7 @@ class UploadDialogService {
4758
4774
  width: 950,
4759
4775
  height: 570,
4760
4776
  render: () => {
4761
- const propss = { rootId, formId, oldIdList };
4762
- if (limit) {
4763
- propss.fileCount = limit.fileCount;
4764
- propss.securityInfo = limit.securityInfo;
4765
- propss.fileNameLength = limit.fileNameLength;
4766
- if (limit.fileType) {
4767
- propss.fileType = limit.fileType;
4768
- }
4769
- }
4770
- const FileUploadNodeN2 = createVNode(
4771
- FileUpload$1,
4772
- __spreadValues({}, propss),
4773
- {
4774
- /* 插槽 */
4775
- }
4776
- );
4777
- return FileUploadNodeN2;
4777
+ return FileUploadNodeN;
4778
4778
  },
4779
4779
  buttons: [
4780
4780
  {
@@ -4805,7 +4805,7 @@ class UploadDialogService {
4805
4805
  if (flag === 0) {
4806
4806
  (_b = (_a = FileUploadNodeN == null ? void 0 : FileUploadNodeN.component) == null ? void 0 : _a.exposed) == null ? void 0 : _b.cancel();
4807
4807
  }
4808
- return Promise.resolve(true);
4808
+ return true;
4809
4809
  }
4810
4810
  });
4811
4811
  });
@@ -4966,11 +4966,7 @@ class ErrorUtil {
4966
4966
  }
4967
4967
  const UploadRuntimeApiVue = {
4968
4968
  install(app) {
4969
- [
4970
- ...FileUpload$1
4971
- ].forEach((comp) => {
4972
- app.use(comp);
4973
- });
4969
+ app.component("FileUpload", FileUpload$1);
4974
4970
  }
4975
4971
  };
4976
4972
  export {
@@ -4738,7 +4738,7 @@ var __forAwait = (obj, it, method) => (it = obj[__knownSymbol("asyncIterator")])
4738
4738
  if (flag === 0) {
4739
4739
  (_b = (_a = FileUploadNode == null ? void 0 : FileUploadNode.component) == null ? void 0 : _a.exposed) == null ? void 0 : _b.cancel();
4740
4740
  }
4741
- return Promise.resolve(true);
4741
+ return true;
4742
4742
  }
4743
4743
  });
4744
4744
  });
@@ -4752,6 +4752,22 @@ var __forAwait = (obj, it, method) => (it = obj[__knownSymbol("asyncIterator")])
4752
4752
  uploadFileWithLimit() {
4753
4753
  return __async(this, arguments, function* (formId = formIdDefault, rootId = rootIdDefault, limit, oldIdList = []) {
4754
4754
  let flag = 0;
4755
+ const propss = { rootId, formId, oldIdList };
4756
+ if (limit) {
4757
+ propss.fileCount = limit.fileCount;
4758
+ propss.securityInfo = limit.securityInfo;
4759
+ propss.fileNameLength = limit.fileNameLength;
4760
+ if (limit.fileType) {
4761
+ propss.fileType = limit.fileType;
4762
+ }
4763
+ }
4764
+ const FileUploadNodeN = vue.createVNode(
4765
+ FileUpload$1,
4766
+ __spreadValues({}, propss),
4767
+ {
4768
+ /* 插槽 */
4769
+ }
4770
+ );
4755
4771
  return new Promise((resolve) => {
4756
4772
  this.dlg = this.modalService.open({
4757
4773
  title: this.t("uploadFile"),
@@ -4759,23 +4775,7 @@ var __forAwait = (obj, it, method) => (it = obj[__knownSymbol("asyncIterator")])
4759
4775
  width: 950,
4760
4776
  height: 570,
4761
4777
  render: () => {
4762
- const propss = { rootId, formId, oldIdList };
4763
- if (limit) {
4764
- propss.fileCount = limit.fileCount;
4765
- propss.securityInfo = limit.securityInfo;
4766
- propss.fileNameLength = limit.fileNameLength;
4767
- if (limit.fileType) {
4768
- propss.fileType = limit.fileType;
4769
- }
4770
- }
4771
- const FileUploadNodeN2 = vue.createVNode(
4772
- FileUpload$1,
4773
- __spreadValues({}, propss),
4774
- {
4775
- /* 插槽 */
4776
- }
4777
- );
4778
- return FileUploadNodeN2;
4778
+ return FileUploadNodeN;
4779
4779
  },
4780
4780
  buttons: [
4781
4781
  {
@@ -4806,7 +4806,7 @@ var __forAwait = (obj, it, method) => (it = obj[__knownSymbol("asyncIterator")])
4806
4806
  if (flag === 0) {
4807
4807
  (_b = (_a = FileUploadNodeN == null ? void 0 : FileUploadNodeN.component) == null ? void 0 : _a.exposed) == null ? void 0 : _b.cancel();
4808
4808
  }
4809
- return Promise.resolve(true);
4809
+ return true;
4810
4810
  }
4811
4811
  });
4812
4812
  });
@@ -4967,11 +4967,7 @@ var __forAwait = (obj, it, method) => (it = obj[__knownSymbol("asyncIterator")])
4967
4967
  }
4968
4968
  const UploadRuntimeApiVue = {
4969
4969
  install(app) {
4970
- [
4971
- ...FileUpload$1
4972
- ].forEach((comp) => {
4973
- app.use(comp);
4974
- });
4970
+ app.component("FileUpload", FileUpload$1);
4975
4971
  }
4976
4972
  };
4977
4973
  exports.ChangeInstanceRequest = ChangeInstanceRequest;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gsp-svc/formdoc-upload-vue",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -1,11 +0,0 @@
1
- declare class DownloadServiceInternal {
2
- getDownloadUrl(metadataId: string, rootId: string): string;
3
- getStreamDownloadUrl(metadataId: string, rootId: string): string;
4
- getMultipleDownloadUrl(metadataIdList: any, rootId: string): string;
5
- getMultipleDownloadUrlWithName(metadataIdList: any, rootId: string, zipName: string): string;
6
- getHistoryDownloadUrl(metadataId: string, rootId: string, version: string): string;
7
- mergeString(str: string, str1: string): string;
8
- getToken(str: string): string;
9
- switchStr(str1: string, str2: string, str3: string, i: number): string;
10
- }
11
- export default DownloadServiceInternal;
@@ -1,13 +0,0 @@
1
- import { UploadLimit } from '../entity/uploadlimit';
2
-
3
- declare class UploadDialogServiceInternal {
4
- private modalService;
5
- private t;
6
- constructor();
7
- private dlg;
8
- private fileInfoList;
9
- showDialog(formId?: string, rootId?: string): Promise<unknown>;
10
- uploadFile(formId: string, rootId: string, oldIdList?: string[]): Promise<unknown>;
11
- uploadFileWithLimit(formId: string, rootId: string, limit: UploadLimit, oldIdList?: string[]): Promise<unknown>;
12
- }
13
- export default UploadDialogServiceInternal;