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

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.
@@ -87,7 +87,7 @@ var __yieldStar = (value) => {
87
87
  };
88
88
  var __forAwait = (obj, it, method) => (it = obj[__knownSymbol("asyncIterator")]) ? it.call(obj) : (obj = obj[__knownSymbol("iterator")](), it = {}, method = (key, fn) => (fn = obj[key]) && (it[key] = (arg) => new Promise((yes, no, done) => (arg = fn.call(obj, arg), done = arg.done, Promise.resolve(arg.value).then((value) => yes({ value, done }), no)))), method("next"), method("return"), it);
89
89
  import { defineComponent, inject, ref, onMounted, resolveComponent, createElementBlock, openBlock, Fragment, createCommentVNode, createElementVNode, createVNode, createBlock, unref, toDisplayString, withCtx, createTextVNode, renderList, normalizeStyle, withDirectives, vModelCheckbox, normalizeClass } from "vue";
90
- import { ViewModel, Injector, HttpClient } from "@farris/devkit-vue";
90
+ import { MODULE_INJECTION_TOKEN, ViewModel, Injector, HttpClient } from "@farris/devkit-vue";
91
91
  import { MODAL_SERVICE_TOKEN } from "@farris/command-services-vue";
92
92
  const withInstall = (component) => {
93
93
  const c = component;
@@ -2737,7 +2737,6 @@ class UploadService {
2737
2737
  });
2738
2738
  }
2739
2739
  }
2740
- const EDP_BIF_VIEWMODEL_INJECTION_TOKEN = Symbol("EDP_BIF_VIEWMODEL");
2741
2740
  const LANG_RESOURCES = {
2742
2741
  "zh-CHS": {
2743
2742
  "uploadFile": "上传文件",
@@ -3025,8 +3024,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
3025
3024
  const props = __props;
3026
3025
  const uploadIconAddress = convertPath("/platform/runtime/dfs/images/upload.svg");
3027
3026
  const uploadLittleIconAddress = convertPath("/platform/runtime/dfs/images/uploadIcon.svg");
3028
- const viewModel = inject(EDP_BIF_VIEWMODEL_INJECTION_TOKEN);
3029
- const localePipe = viewModel.getInjector().get(LocalLangPipe);
3027
+ const module = inject(MODULE_INJECTION_TOKEN);
3028
+ const rootViewModel = module.getRootViewModel();
3029
+ const localePipe = rootViewModel.getInjector().get(LocalLangPipe);
3030
3030
  const files = ref([]);
3031
3031
  const metadataIdList = ref([]);
3032
3032
  const uploadFileInfoList = ref([]);
@@ -3578,37 +3578,37 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
3578
3578
  const addDocInfo = (selectedFile, fileInfo, docType) => {
3579
3579
  switch (docType) {
3580
3580
  case DocType.Word: {
3581
- fileInfo.source = "/images/word.png";
3581
+ fileInfo.source = "/platform/runtime/dfs/images/word.png";
3582
3582
  files.value = [...files.value, fileInfo];
3583
3583
  break;
3584
3584
  }
3585
3585
  case DocType.Pdf: {
3586
- fileInfo.source = "/images/pdf.png";
3586
+ fileInfo.source = "/platform/runtime/dfs/images/pdf.png";
3587
3587
  files.value = [...files.value, fileInfo];
3588
3588
  break;
3589
3589
  }
3590
3590
  case DocType.Excel: {
3591
- fileInfo.source = "/images/excel.png";
3591
+ fileInfo.source = "/platform/runtime/dfs/images/excel.png";
3592
3592
  files.value = [...files.value, fileInfo];
3593
3593
  break;
3594
3594
  }
3595
3595
  case DocType.Txt: {
3596
- fileInfo.source = "/images/txt.png";
3596
+ fileInfo.source = "/platform/runtime/dfs/images/txt.png";
3597
3597
  files.value = [...files.value, fileInfo];
3598
3598
  break;
3599
3599
  }
3600
3600
  case DocType.Zip: {
3601
- fileInfo.source = "/images/zip.png";
3601
+ fileInfo.source = "/platform/runtime/dfs/images/zip.png";
3602
3602
  files.value = [...files.value, fileInfo];
3603
3603
  break;
3604
3604
  }
3605
3605
  case DocType.Powerpoint: {
3606
- fileInfo.source = "/images/ppt.png";
3606
+ fileInfo.source = "/platform/runtime/dfs/images/ppt.png";
3607
3607
  files.value = [...files.value, fileInfo];
3608
3608
  break;
3609
3609
  }
3610
3610
  case DocType.Other: {
3611
- fileInfo.source = "/images/file.png";
3611
+ fileInfo.source = "/platform/runtime/dfs/images/file.png";
3612
3612
  files.value = [...files.value, fileInfo];
3613
3613
  break;
3614
3614
  }
@@ -4410,8 +4410,9 @@ const _export_sfc = (sfc, props) => {
4410
4410
  }
4411
4411
  return target;
4412
4412
  };
4413
- const FileUpload$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-528fbfc7"]]);
4413
+ const FileUpload$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8baa3cdb"]]);
4414
4414
  const FileUpload = withInstall(FileUpload$1);
4415
+ const EDP_BIF_VIEWMODEL_INJECTION_TOKEN = Symbol("EDP_BIF_VIEWMODEL");
4415
4416
  class ChangeInstanceRequest {
4416
4417
  constructor() {
4417
4418
  __publicField(this, "fileInfoList");
@@ -4678,17 +4679,17 @@ const rootIdDefault = "default-root";
4678
4679
  const formIdDefault = "test03";
4679
4680
  class UploadDialogService {
4680
4681
  // 构造函数接收 t 函数
4681
- constructor(localePipe, viewModel, injector, httpClient) {
4682
+ constructor(viewModel, injector, httpClient, localePipe) {
4682
4683
  __publicField(this, "t");
4683
4684
  __publicField(this, "modalService");
4684
4685
  __publicField(this, "dlg");
4685
4686
  __publicField(this, "fileInfoList", []);
4686
- this.localePipe = localePipe;
4687
4687
  this.viewModel = viewModel;
4688
4688
  this.injector = injector;
4689
4689
  this.httpClient = httpClient;
4690
+ this.localePipe = localePipe;
4690
4691
  this.modalService = this.injector.get(MODAL_SERVICE_TOKEN);
4691
- this.t = this.localePipe.transform;
4692
+ this.t = this.localePipe.transform.bind(this);
4692
4693
  }
4693
4694
  showDialog() {
4694
4695
  return __async(this, arguments, function* (formId = formIdDefault, rootId = rootIdDefault) {
@@ -4703,14 +4704,14 @@ class UploadDialogService {
4703
4704
  );
4704
4705
  return new Promise((resolve) => {
4705
4706
  this.dlg = this.modalService.open({
4706
- title: this.t("uploadFile"),
4707
+ title: "文件上传",
4707
4708
  fitContent: false,
4708
4709
  width: 950,
4709
4710
  height: 570,
4710
4711
  render: () => FileUploadNode,
4711
4712
  buttons: [
4712
4713
  {
4713
- text: this.t("save"),
4714
+ text: "保存",
4714
4715
  class: "btn btn-primary",
4715
4716
  handle: () => __async(this, null, function* () {
4716
4717
  var _a, _b;
@@ -4723,7 +4724,7 @@ class UploadDialogService {
4723
4724
  })
4724
4725
  },
4725
4726
  {
4726
- text: this.t("close"),
4727
+ text: "关闭",
4727
4728
  class: "btn btn-light",
4728
4729
  handle: () => {
4729
4730
  this.dlg.modalRef.value.close();
@@ -4737,7 +4738,7 @@ class UploadDialogService {
4737
4738
  if (flag === 0) {
4738
4739
  (_b = (_a = FileUploadNode == null ? void 0 : FileUploadNode.component) == null ? void 0 : _a.exposed) == null ? void 0 : _b.cancel();
4739
4740
  }
4740
- return Promise.resolve(true);
4741
+ return true;
4741
4742
  }
4742
4743
  });
4743
4744
  });
@@ -4751,34 +4752,34 @@ class UploadDialogService {
4751
4752
  uploadFileWithLimit() {
4752
4753
  return __async(this, arguments, function* (formId = formIdDefault, rootId = rootIdDefault, limit, oldIdList = []) {
4753
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 = createVNode(
4765
+ FileUpload$1,
4766
+ __spreadValues({}, propss),
4767
+ {
4768
+ /* 插槽 */
4769
+ }
4770
+ );
4754
4771
  return new Promise((resolve) => {
4755
4772
  this.dlg = this.modalService.open({
4756
- title: this.t("uploadFile"),
4773
+ title: "文件上传",
4757
4774
  fitContent: false,
4758
4775
  width: 950,
4759
4776
  height: 570,
4760
4777
  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;
4778
+ return FileUploadNodeN;
4778
4779
  },
4779
4780
  buttons: [
4780
4781
  {
4781
- text: this.t("save"),
4782
+ text: "保存",
4782
4783
  class: "btn btn-primary",
4783
4784
  handle: () => __async(this, null, function* () {
4784
4785
  var _a, _b;
@@ -4791,7 +4792,7 @@ class UploadDialogService {
4791
4792
  })
4792
4793
  },
4793
4794
  {
4794
- text: this.t("close"),
4795
+ text: "关闭",
4795
4796
  class: "btn btn-light",
4796
4797
  handle: () => {
4797
4798
  this.dlg.modalRef.value.close();
@@ -4805,7 +4806,7 @@ class UploadDialogService {
4805
4806
  if (flag === 0) {
4806
4807
  (_b = (_a = FileUploadNodeN == null ? void 0 : FileUploadNodeN.component) == null ? void 0 : _a.exposed) == null ? void 0 : _b.cancel();
4807
4808
  }
4808
- return Promise.resolve(true);
4809
+ return true;
4809
4810
  }
4810
4811
  });
4811
4812
  });
@@ -4966,11 +4967,7 @@ class ErrorUtil {
4966
4967
  }
4967
4968
  const UploadRuntimeApiVue = {
4968
4969
  install(app) {
4969
- [
4970
- ...FileUpload$1
4971
- ].forEach((comp) => {
4972
- app.use(comp);
4973
- });
4970
+ app.component("FileUpload", FileUpload$1);
4974
4971
  }
4975
4972
  };
4976
4973
  export {
@@ -4978,6 +4975,7 @@ export {
4978
4975
  CompleteMultiUploadRequest,
4979
4976
  CopyFileRequest,
4980
4977
  DocType,
4978
+ DownloadService,
4981
4979
  DownloadServiceProviders,
4982
4980
  DropListEntity,
4983
4981
  EDP_BIF_VIEWMODEL_INJECTION_TOKEN,
@@ -5005,6 +5003,7 @@ export {
5005
5003
  StorageExtension,
5006
5004
  UploadDevkitProviders,
5007
5005
  UploadDevkitRootProviders,
5006
+ UploadDialogService,
5008
5007
  UploadDialogServiceProviders,
5009
5008
  UploadFileInfo,
5010
5009
  UploadLimit,
@@ -2738,7 +2738,6 @@ var __forAwait = (obj, it, method) => (it = obj[__knownSymbol("asyncIterator")])
2738
2738
  });
2739
2739
  }
2740
2740
  }
2741
- const EDP_BIF_VIEWMODEL_INJECTION_TOKEN = Symbol("EDP_BIF_VIEWMODEL");
2742
2741
  const LANG_RESOURCES = {
2743
2742
  "zh-CHS": {
2744
2743
  "uploadFile": "上传文件",
@@ -3026,8 +3025,9 @@ var __forAwait = (obj, it, method) => (it = obj[__knownSymbol("asyncIterator")])
3026
3025
  const props = __props;
3027
3026
  const uploadIconAddress = convertPath("/platform/runtime/dfs/images/upload.svg");
3028
3027
  const uploadLittleIconAddress = convertPath("/platform/runtime/dfs/images/uploadIcon.svg");
3029
- const viewModel = vue.inject(EDP_BIF_VIEWMODEL_INJECTION_TOKEN);
3030
- const localePipe = viewModel.getInjector().get(LocalLangPipe);
3028
+ const module2 = vue.inject(devkitVue.MODULE_INJECTION_TOKEN);
3029
+ const rootViewModel = module2.getRootViewModel();
3030
+ const localePipe = rootViewModel.getInjector().get(LocalLangPipe);
3031
3031
  const files = vue.ref([]);
3032
3032
  const metadataIdList = vue.ref([]);
3033
3033
  const uploadFileInfoList = vue.ref([]);
@@ -3579,37 +3579,37 @@ var __forAwait = (obj, it, method) => (it = obj[__knownSymbol("asyncIterator")])
3579
3579
  const addDocInfo = (selectedFile, fileInfo, docType) => {
3580
3580
  switch (docType) {
3581
3581
  case DocType.Word: {
3582
- fileInfo.source = "/images/word.png";
3582
+ fileInfo.source = "/platform/runtime/dfs/images/word.png";
3583
3583
  files.value = [...files.value, fileInfo];
3584
3584
  break;
3585
3585
  }
3586
3586
  case DocType.Pdf: {
3587
- fileInfo.source = "/images/pdf.png";
3587
+ fileInfo.source = "/platform/runtime/dfs/images/pdf.png";
3588
3588
  files.value = [...files.value, fileInfo];
3589
3589
  break;
3590
3590
  }
3591
3591
  case DocType.Excel: {
3592
- fileInfo.source = "/images/excel.png";
3592
+ fileInfo.source = "/platform/runtime/dfs/images/excel.png";
3593
3593
  files.value = [...files.value, fileInfo];
3594
3594
  break;
3595
3595
  }
3596
3596
  case DocType.Txt: {
3597
- fileInfo.source = "/images/txt.png";
3597
+ fileInfo.source = "/platform/runtime/dfs/images/txt.png";
3598
3598
  files.value = [...files.value, fileInfo];
3599
3599
  break;
3600
3600
  }
3601
3601
  case DocType.Zip: {
3602
- fileInfo.source = "/images/zip.png";
3602
+ fileInfo.source = "/platform/runtime/dfs/images/zip.png";
3603
3603
  files.value = [...files.value, fileInfo];
3604
3604
  break;
3605
3605
  }
3606
3606
  case DocType.Powerpoint: {
3607
- fileInfo.source = "/images/ppt.png";
3607
+ fileInfo.source = "/platform/runtime/dfs/images/ppt.png";
3608
3608
  files.value = [...files.value, fileInfo];
3609
3609
  break;
3610
3610
  }
3611
3611
  case DocType.Other: {
3612
- fileInfo.source = "/images/file.png";
3612
+ fileInfo.source = "/platform/runtime/dfs/images/file.png";
3613
3613
  files.value = [...files.value, fileInfo];
3614
3614
  break;
3615
3615
  }
@@ -4411,8 +4411,9 @@ var __forAwait = (obj, it, method) => (it = obj[__knownSymbol("asyncIterator")])
4411
4411
  }
4412
4412
  return target;
4413
4413
  };
4414
- const FileUpload$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-528fbfc7"]]);
4414
+ const FileUpload$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8baa3cdb"]]);
4415
4415
  const FileUpload = withInstall(FileUpload$1);
4416
+ const EDP_BIF_VIEWMODEL_INJECTION_TOKEN = Symbol("EDP_BIF_VIEWMODEL");
4416
4417
  class ChangeInstanceRequest {
4417
4418
  constructor() {
4418
4419
  __publicField(this, "fileInfoList");
@@ -4679,17 +4680,17 @@ var __forAwait = (obj, it, method) => (it = obj[__knownSymbol("asyncIterator")])
4679
4680
  const formIdDefault = "test03";
4680
4681
  class UploadDialogService {
4681
4682
  // 构造函数接收 t 函数
4682
- constructor(localePipe, viewModel, injector, httpClient) {
4683
+ constructor(viewModel, injector, httpClient, localePipe) {
4683
4684
  __publicField(this, "t");
4684
4685
  __publicField(this, "modalService");
4685
4686
  __publicField(this, "dlg");
4686
4687
  __publicField(this, "fileInfoList", []);
4687
- this.localePipe = localePipe;
4688
4688
  this.viewModel = viewModel;
4689
4689
  this.injector = injector;
4690
4690
  this.httpClient = httpClient;
4691
+ this.localePipe = localePipe;
4691
4692
  this.modalService = this.injector.get(commandServicesVue.MODAL_SERVICE_TOKEN);
4692
- this.t = this.localePipe.transform;
4693
+ this.t = this.localePipe.transform.bind(this);
4693
4694
  }
4694
4695
  showDialog() {
4695
4696
  return __async(this, arguments, function* (formId = formIdDefault, rootId = rootIdDefault) {
@@ -4704,14 +4705,14 @@ var __forAwait = (obj, it, method) => (it = obj[__knownSymbol("asyncIterator")])
4704
4705
  );
4705
4706
  return new Promise((resolve) => {
4706
4707
  this.dlg = this.modalService.open({
4707
- title: this.t("uploadFile"),
4708
+ title: "文件上传",
4708
4709
  fitContent: false,
4709
4710
  width: 950,
4710
4711
  height: 570,
4711
4712
  render: () => FileUploadNode,
4712
4713
  buttons: [
4713
4714
  {
4714
- text: this.t("save"),
4715
+ text: "保存",
4715
4716
  class: "btn btn-primary",
4716
4717
  handle: () => __async(this, null, function* () {
4717
4718
  var _a, _b;
@@ -4724,7 +4725,7 @@ var __forAwait = (obj, it, method) => (it = obj[__knownSymbol("asyncIterator")])
4724
4725
  })
4725
4726
  },
4726
4727
  {
4727
- text: this.t("close"),
4728
+ text: "关闭",
4728
4729
  class: "btn btn-light",
4729
4730
  handle: () => {
4730
4731
  this.dlg.modalRef.value.close();
@@ -4738,7 +4739,7 @@ var __forAwait = (obj, it, method) => (it = obj[__knownSymbol("asyncIterator")])
4738
4739
  if (flag === 0) {
4739
4740
  (_b = (_a = FileUploadNode == null ? void 0 : FileUploadNode.component) == null ? void 0 : _a.exposed) == null ? void 0 : _b.cancel();
4740
4741
  }
4741
- return Promise.resolve(true);
4742
+ return true;
4742
4743
  }
4743
4744
  });
4744
4745
  });
@@ -4752,34 +4753,34 @@ var __forAwait = (obj, it, method) => (it = obj[__knownSymbol("asyncIterator")])
4752
4753
  uploadFileWithLimit() {
4753
4754
  return __async(this, arguments, function* (formId = formIdDefault, rootId = rootIdDefault, limit, oldIdList = []) {
4754
4755
  let flag = 0;
4756
+ const propss = { rootId, formId, oldIdList };
4757
+ if (limit) {
4758
+ propss.fileCount = limit.fileCount;
4759
+ propss.securityInfo = limit.securityInfo;
4760
+ propss.fileNameLength = limit.fileNameLength;
4761
+ if (limit.fileType) {
4762
+ propss.fileType = limit.fileType;
4763
+ }
4764
+ }
4765
+ const FileUploadNodeN = vue.createVNode(
4766
+ FileUpload$1,
4767
+ __spreadValues({}, propss),
4768
+ {
4769
+ /* 插槽 */
4770
+ }
4771
+ );
4755
4772
  return new Promise((resolve) => {
4756
4773
  this.dlg = this.modalService.open({
4757
- title: this.t("uploadFile"),
4774
+ title: "文件上传",
4758
4775
  fitContent: false,
4759
4776
  width: 950,
4760
4777
  height: 570,
4761
4778
  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;
4779
+ return FileUploadNodeN;
4779
4780
  },
4780
4781
  buttons: [
4781
4782
  {
4782
- text: this.t("save"),
4783
+ text: "保存",
4783
4784
  class: "btn btn-primary",
4784
4785
  handle: () => __async(this, null, function* () {
4785
4786
  var _a, _b;
@@ -4792,7 +4793,7 @@ var __forAwait = (obj, it, method) => (it = obj[__knownSymbol("asyncIterator")])
4792
4793
  })
4793
4794
  },
4794
4795
  {
4795
- text: this.t("close"),
4796
+ text: "关闭",
4796
4797
  class: "btn btn-light",
4797
4798
  handle: () => {
4798
4799
  this.dlg.modalRef.value.close();
@@ -4806,7 +4807,7 @@ var __forAwait = (obj, it, method) => (it = obj[__knownSymbol("asyncIterator")])
4806
4807
  if (flag === 0) {
4807
4808
  (_b = (_a = FileUploadNodeN == null ? void 0 : FileUploadNodeN.component) == null ? void 0 : _a.exposed) == null ? void 0 : _b.cancel();
4808
4809
  }
4809
- return Promise.resolve(true);
4810
+ return true;
4810
4811
  }
4811
4812
  });
4812
4813
  });
@@ -4967,17 +4968,14 @@ var __forAwait = (obj, it, method) => (it = obj[__knownSymbol("asyncIterator")])
4967
4968
  }
4968
4969
  const UploadRuntimeApiVue = {
4969
4970
  install(app) {
4970
- [
4971
- ...FileUpload$1
4972
- ].forEach((comp) => {
4973
- app.use(comp);
4974
- });
4971
+ app.component("FileUpload", FileUpload$1);
4975
4972
  }
4976
4973
  };
4977
4974
  exports.ChangeInstanceRequest = ChangeInstanceRequest;
4978
4975
  exports.CompleteMultiUploadRequest = CompleteMultiUploadRequest;
4979
4976
  exports.CopyFileRequest = CopyFileRequest;
4980
4977
  exports.DocType = DocType;
4978
+ exports.DownloadService = DownloadService;
4981
4979
  exports.DownloadServiceProviders = DownloadServiceProviders;
4982
4980
  exports.DropListEntity = DropListEntity;
4983
4981
  exports.EDP_BIF_VIEWMODEL_INJECTION_TOKEN = EDP_BIF_VIEWMODEL_INJECTION_TOKEN;
@@ -5005,6 +5003,7 @@ var __forAwait = (obj, it, method) => (it = obj[__knownSymbol("asyncIterator")])
5005
5003
  exports.StorageExtension = StorageExtension;
5006
5004
  exports.UploadDevkitProviders = UploadDevkitProviders;
5007
5005
  exports.UploadDevkitRootProviders = UploadDevkitRootProviders;
5006
+ exports.UploadDialogService = UploadDialogService;
5008
5007
  exports.UploadDialogServiceProviders = UploadDialogServiceProviders;
5009
5008
  exports.UploadFileInfo = UploadFileInfo;
5010
5009
  exports.UploadLimit = UploadLimit;
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.2",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
package/style.css CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /* 样式可以参考原有的 CSS 文件 */
3
- .pic_list ul li div img[data-v-528fbfc7] {
3
+ .pic_list ul li div img[data-v-8baa3cdb] {
4
4
  max-width: 60px;
5
5
  max-height: 60px;
6
6
  align-items: center;
@@ -8,157 +8,156 @@
8
8
  vertical-align: middle;
9
9
  text-align: center;
10
10
  }
11
- .pic_list ul li span.filename[data-v-528fbfc7] {
11
+ .pic_list ul li span.filename[data-v-8baa3cdb] {
12
12
  width: 100px;
13
13
  text-align: center;
14
14
  overflow: hidden;
15
15
  text-overflow: ellipsis;
16
16
  white-space: nowrap;
17
17
  }
18
- .home_page[data-v-528fbfc7] {
19
- text-align: center;
18
+ .home_page[data-v-8baa3cdb] {
19
+ text-align: center;
20
20
  }
21
- .home_page img[data-v-528fbfc7] {
22
- position: absolute;
23
- top: 180px;
24
- margin-left: -35px;
25
- width: 70px;
26
- height: 56px;
21
+ .home_page img[data-v-8baa3cdb] {
22
+ position: absolute;
23
+ top: 180px;
24
+ margin-left: -35px;
25
+ width: 70px;
26
+ height: 56px;
27
27
  }
28
- .home_page div[data-v-528fbfc7] {
29
- position: absolute;
30
- left: 50%;
31
- top: 255px;
32
- margin-left: -75px;
33
- width: 150px;
34
- height: 32px;
35
- overflow: hidden;
36
- }
37
- .home_page div span[data-v-528fbfc7] {
38
- /* position: absolute;
28
+ .home_page div[data-v-8baa3cdb] {
29
+ position: absolute;
30
+ left: 50%;
31
+ top: 255px;
32
+ margin-left: -75px;
33
+ width: 150px;
34
+ height: 32px;
35
+ overflow: hidden;
36
+ }
37
+ .home_page div span[data-v-8baa3cdb] {
38
+ /* position: absolute;
39
39
  top:255px;
40
40
  margin-left: -75px; */
41
- width: 150px;
42
- height: 32px;
43
- position: absolute;
44
- z-index: 10;
45
- left: 0px;
41
+ width: 150px;
42
+ height: 32px;
43
+ position: absolute;
44
+ z-index: 10;
45
+ left: 0px;
46
46
  }
47
- .home_page div input[data-v-528fbfc7] {
48
- position: absolute;
49
- left: 0px;
50
- top: 0px;
51
- opacity: 0;
52
- filter: 'alpha(opacity=0)';
53
- z-index: 11;
54
- }
55
- .upload_button[data-v-528fbfc7] {
56
- width: 110px;
57
- height: 32px;
58
- overflow: hidden;
59
- }
60
- .upload_button span[data-v-528fbfc7] {
61
- position: relative;
62
- right: -4px;
63
- top: 4px;
64
- width: 56px;
65
- height: 22px;
66
- font-size: 14px;
67
- }
68
- .upload_button input[data-v-528fbfc7] {
69
- height: 32px;
70
- width: 110px;
71
- position: absolute;
72
- left: 22px;
73
- top: 12px;
74
- opacity: 0;
75
- filter: 'alpha(opacity=0)';
76
- overflow: hidden;
77
- }
78
- .upload_button img[data-v-528fbfc7] {
79
- position: relative;
80
- left: -6px;
81
- top: 3px;
82
- width: 14px;
83
- height: 14px;
84
- }
85
- .button_group_upload[data-v-528fbfc7] {
86
- position: absolute;
87
- right: 18px;
88
- top: 12px;
89
- height: 26px;
90
- width: 92px;
47
+ .home_page div input[data-v-8baa3cdb] {
48
+ position: absolute;
49
+ left: 0px;
50
+ top: 0px;
51
+ opacity: 0;
52
+ filter: "alpha(opacity=0)";
53
+ z-index: 11;
54
+ }
55
+ .upload_button[data-v-8baa3cdb] {
56
+ width: 110px;
57
+ height: 32px;
58
+ overflow: hidden;
91
59
  }
92
- .button_group_upload button[data-v-528fbfc7] {
93
- height: 26px;
94
- width: 26px;
60
+ .upload_button span[data-v-8baa3cdb] {
61
+ position: relative;
62
+ right: -4px;
63
+ top: 4px;
64
+ width: 56px;
65
+ height: 22px;
66
+ font-size: 14px;
67
+ }
68
+ .upload_button input[data-v-8baa3cdb] {
69
+ height: 32px;
70
+ width: 110px;
71
+ position: absolute;
72
+ left: 22px;
73
+ top: 12px;
74
+ opacity: 0;
75
+ filter: "alpha(opacity=0)";
76
+ overflow: hidden;
95
77
  }
96
- .fileinput-button[data-v-528fbfc7] {
97
- position: absolute;
98
- right: 60px;
99
- bottom: 40px;
100
- overflow: hidden;
101
- width: 24px;
102
- height: 24px;
103
- border-radius: 12px;
104
- transform: scale(2.5);
105
- -ms-transform: scale(2.5);
106
- -moz-transform: scale(2.5);
107
- -webkit-transform: scale(2.5);
108
- -o-transform: scale(2.5);
109
- color: rgb(6, 134, 253);
110
- }
111
- .fileinput-button input[data-v-528fbfc7] {
112
- position: absolute;
113
- left: 0px;
114
- top: 0px;
115
- opacity: 0;
116
- filter: 'alpha(opacity=0)';
78
+ .upload_button img[data-v-8baa3cdb] {
79
+ position: relative;
80
+ left: -6px;
81
+ top: 3px;
82
+ width: 14px;
83
+ height: 14px;
117
84
  }
118
- .pic-droplist[data-v-528fbfc7] {
119
- height: 24px;
120
- color: #e0e1e2;
121
- background-color: #e0e1e2;
122
- }
123
- .pic-droplist input-group[data-v-528fbfc7] {
124
- display: table-cell;
125
- width: 100px;
126
- text-align: center;
127
- border: 0;
128
- }
129
- .pic-droplist input-group div[data-v-528fbfc7] {
130
- border: 0;
131
- }
132
- .pic-droplist input-group div input[data-v-528fbfc7] {
133
- background-color: #e0e1e2;
134
- }
135
- .pic-droplist input-group div div[data-v-528fbfc7] {
136
- background-color: #e0e1e2;
137
- }
138
- .pic_list[data-v-528fbfc7] {
139
- padding: 0;
140
- height: 406px;
141
- overflow-y: auto;
142
- overflow-x: hidden;
143
- /* //border: 1px solid #ddd; */
144
- /*多出来的ul要剪掉*/
145
- }
146
- .pic_list ul[data-v-528fbfc7] {
147
- padding: 0;
148
- list-style: none;
149
- width: 100%;
150
- margin: 20px 0 0 20px;
151
- }
152
- .pic_list ul li[data-v-528fbfc7] {
153
- height: 179px;
154
- width: 135px;
155
- margin: 8px 0 8px 12px;
156
- float: left;
157
- overflow: hidden;
158
- align-items: center;
159
- position: relative;
85
+ .button_group_upload[data-v-8baa3cdb] {
86
+ position: absolute;
87
+ right: 18px;
88
+ top: 12px;
89
+ height: 26px;
90
+ width: 92px;
91
+ }
92
+ .button_group_upload button[data-v-8baa3cdb] {
93
+ height: 26px;
94
+ width: 26px;
95
+ }
96
+ .fileinput-button[data-v-8baa3cdb] {
97
+ position: absolute;
98
+ right: 60px;
99
+ bottom: 40px;
100
+ overflow: hidden;
101
+ width: 24px;
102
+ height: 24px;
103
+ border-radius: 12px;
104
+ transform: scale(2.5);
105
+ -ms-transform: scale(2.5);
106
+ -moz-transform: scale(2.5);
107
+ -webkit-transform: scale(2.5);
108
+ -o-transform: scale(2.5);
109
+ color: rgb(6, 134, 253);
110
+ }
111
+ .fileinput-button input[data-v-8baa3cdb] {
112
+ position: absolute;
113
+ left: 0px;
114
+ top: 0px;
115
+ opacity: 0;
116
+ filter: "alpha(opacity=0)";
117
+ }
118
+ .pic-droplist[data-v-8baa3cdb] {
119
+ height: 24px;
120
+ color: #e0e1e2;
121
+ background-color: #e0e1e2;
122
+ }
123
+ .pic-droplist input-group[data-v-8baa3cdb] {
124
+ display: table-cell;
125
+ width: 100px;
126
+ text-align: center;
127
+ border: 0;
128
+ }
129
+ .pic-droplist input-group div[data-v-8baa3cdb] {
130
+ border: 0;
131
+ }
132
+ .pic-droplist input-group div input[data-v-8baa3cdb] {
133
+ background-color: #e0e1e2;
134
+ }
135
+ .pic-droplist input-group div div[data-v-8baa3cdb] {
136
+ background-color: #e0e1e2;
137
+ }
138
+ .pic_list[data-v-8baa3cdb] {
139
+ padding: 0;
140
+ height: 406px;
141
+ overflow-y: auto;
142
+ overflow-x: hidden;
143
+ /* //border: 1px solid #ddd; */
144
+ /*多出来的ul要剪掉*/
145
+ }
146
+ .pic_list ul[data-v-8baa3cdb] {
147
+ padding: 0;
148
+ list-style: none;
149
+ width: 100%;
150
+ margin: 20px 0 0 20px;
151
+ }
152
+ .pic_list ul li[data-v-8baa3cdb] {
153
+ height: 179px;
154
+ width: 135px;
155
+ margin: 8px 0 8px 12px;
156
+ float: left;
157
+ overflow: hidden;
158
+ align-items: center;
159
+ position: relative;
160
160
  }
161
-
162
161
 
163
162
  /* .pic_list ul li button {
164
163
  position: absolute;
@@ -167,76 +166,76 @@
167
166
  width: 24px;
168
167
  height: 24px;
169
168
  } */
170
- .pic_list ul li div[data-v-528fbfc7] {
171
- width: 135px;
172
- height: 159px;
173
- margin: 0 0 0 0;
174
- margin: auto;
175
- display: table-cell;
176
- vertical-align: middle;
177
- text-align: center;
178
- position: relative;
179
- }
180
- .pic_list ul li div img[data-v-528fbfc7] {
181
- max-width: 60px;
182
- max-height: 60px;
183
- align-items: center;
184
- margin: auto;
185
- vertical-align: middle;
186
- text-align: center;
187
- }
188
- .pic_list ul li span.filename[data-v-528fbfc7] {
189
- width: 100px;
190
- text-align: center;
191
- overflow: hidden;
192
- text-overflow: ellipsis;
193
- white-space: nowrap;
194
- }
195
- .queue_list[data-v-528fbfc7] {
196
- display: block;
197
- height: 420px;
198
- overflow-y: auto;
199
- }
200
- .file_list[data-v-528fbfc7] {
201
- list-style: none;
202
- margin: 0;
203
- padding: 0;
204
- overflow-x: hidden;
205
- overflow-y: auto;
206
- }
207
- .file_list li[data-v-528fbfc7] {
208
- /* //background: #e6e6e6;
169
+ .pic_list ul li div[data-v-8baa3cdb] {
170
+ width: 135px;
171
+ height: 159px;
172
+ margin: 0 0 0 0;
173
+ margin: auto;
174
+ display: table-cell;
175
+ vertical-align: middle;
176
+ text-align: center;
177
+ position: relative;
178
+ }
179
+ .pic_list ul li div img[data-v-8baa3cdb] {
180
+ max-width: 60px;
181
+ max-height: 60px;
182
+ align-items: center;
183
+ margin: auto;
184
+ vertical-align: middle;
185
+ text-align: center;
186
+ }
187
+ .pic_list ul li span.filename[data-v-8baa3cdb] {
188
+ width: 100px;
189
+ text-align: center;
190
+ overflow: hidden;
191
+ text-overflow: ellipsis;
192
+ white-space: nowrap;
193
+ }
194
+ .queue_list[data-v-8baa3cdb] {
195
+ display: block;
196
+ height: 420px;
197
+ overflow-y: auto;
198
+ }
199
+ .file_list[data-v-8baa3cdb] {
200
+ list-style: none;
201
+ margin: 0;
202
+ padding: 0;
203
+ overflow-x: hidden;
204
+ overflow-y: auto;
205
+ }
206
+ .file_list li[data-v-8baa3cdb] {
207
+ /* //background: #e6e6e6;
209
208
  border-bottom: 1px solid #d3d3d3; */
210
- height: 50px;
211
- line-height: 35px;
212
- font-size: 16px;
213
- position: relative;
214
- }
215
- .file_list li button[data-v-528fbfc7] {
216
- float: right;
217
- top: 6px;
218
- right: 10px;
219
- width: 20px;
220
- }
221
- .file_list li p.title[data-v-528fbfc7] {
222
- padding: 0 0 0 6px;
223
- margin: 0 210px 0 0;
224
- }
225
- .file_list li p.size[data-v-528fbfc7] {
226
- position: absolute;
227
- width: 100px;
228
- top: 0;
229
- right: 100px;
209
+ height: 50px;
210
+ line-height: 35px;
211
+ font-size: 16px;
212
+ position: relative;
213
+ }
214
+ .file_list li button[data-v-8baa3cdb] {
215
+ float: right;
216
+ top: 6px;
217
+ right: 10px;
218
+ width: 20px;
219
+ }
220
+ .file_list li p.title[data-v-8baa3cdb] {
221
+ padding: 0 0 0 6px;
222
+ margin: 0 210px 0 0;
223
+ }
224
+ .file_list li p.size[data-v-8baa3cdb] {
225
+ position: absolute;
226
+ width: 100px;
227
+ top: 0;
228
+ right: 100px;
230
229
  }
231
- input#file[data-v-528fbfc7]:disabled {
232
- cursor : not-allowed;
230
+ input#file[data-v-8baa3cdb]:disabled {
231
+ cursor: not-allowed;
233
232
  }
234
- .help_text[data-v-528fbfc7] {
235
- color : rgba(0, 0, 0, 0.35);
233
+ .help_text[data-v-8baa3cdb] {
234
+ color: rgba(0, 0, 0, 0.35);
236
235
  position: absolute;
237
- top : 16px;
238
- right : 120px;
236
+ top: 16px;
237
+ right: 120px;
239
238
  }
240
- .farris-header[data-v-528fbfc7] {
241
- box-shadow: 0 2px 4px 0 rgba(57, 66, 100, .08);
239
+ .farris-header[data-v-8baa3cdb] {
240
+ box-shadow: 0 2px 4px 0 rgba(57, 66, 100, 0.08);
242
241
  }
@@ -8,4 +8,4 @@ declare class DownloadService {
8
8
  getToken(str: string): string;
9
9
  switchStr(str1: string, str2: string, str3: string, i: number): string;
10
10
  }
11
- export default DownloadService;
11
+ export { DownloadService };
@@ -5,17 +5,17 @@ import { FModalService } from '@farris/ui-vue';
5
5
  import { LocalLangPipe } from '../pipe';
6
6
 
7
7
  declare class UploadDialogService {
8
- localePipe: LocalLangPipe;
9
8
  viewModel: any;
10
9
  injector: Injector;
11
10
  httpClient: HttpClient;
11
+ localePipe: LocalLangPipe;
12
12
  t: (key: string) => string;
13
13
  modalService: FModalService;
14
- constructor(localePipe: LocalLangPipe, viewModel: any, injector: Injector, httpClient: HttpClient);
14
+ constructor(viewModel: any, injector: Injector, httpClient: HttpClient, localePipe: LocalLangPipe);
15
15
  dlg: any;
16
16
  fileInfoList: UploadFileInfo[];
17
17
  showDialog(formId?: string, rootId?: string): Promise<unknown>;
18
18
  uploadFile(formId: string, rootId: string, oldIdList?: string[]): Promise<unknown>;
19
19
  uploadFileWithLimit(formId: string, rootId: string, limit: UploadLimit, oldIdList?: string[]): Promise<unknown>;
20
20
  }
21
- export default UploadDialogService;
21
+ export { UploadDialogService };
@@ -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;