@factoringplus/pl-components-pack-v3 0.1.52 → 0.1.55

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.
@@ -1582,13 +1582,13 @@ const _hoisted_4$5 = /* @__PURE__ */ createElementVNode("path", {
1582
1582
  fill: "currentColor",
1583
1583
  d: "M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"
1584
1584
  }, null, -1);
1585
- const _hoisted_5$4 = [
1585
+ const _hoisted_5$5 = [
1586
1586
  _hoisted_2$l,
1587
1587
  _hoisted_3$g,
1588
1588
  _hoisted_4$5
1589
1589
  ];
1590
1590
  function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
1591
- return openBlock(), createElementBlock("svg", _hoisted_1$s, _hoisted_5$4);
1591
+ return openBlock(), createElementBlock("svg", _hoisted_1$s, _hoisted_5$5);
1592
1592
  }
1593
1593
  var clock = /* @__PURE__ */ _export_sfc$2(_sfc_main$N, [["render", _sfc_render$C]]);
1594
1594
  const _sfc_main$M = defineComponent({
@@ -9734,11 +9734,11 @@ const _hoisted_1$a = { class: "cell" };
9734
9734
  const _hoisted_2$7 = { class: "cell" };
9735
9735
  const _hoisted_3$5 = { class: "cell" };
9736
9736
  const _hoisted_4$4 = { class: "cell" };
9737
- const _hoisted_5$3 = { class: "cell" };
9738
- const _hoisted_6$3 = { class: "cell" };
9739
- const _hoisted_7$3 = { class: "cell" };
9740
- const _hoisted_8$3 = { class: "cell" };
9741
- const _hoisted_9$3 = { class: "cell" };
9737
+ const _hoisted_5$4 = { class: "cell" };
9738
+ const _hoisted_6$4 = { class: "cell" };
9739
+ const _hoisted_7$4 = { class: "cell" };
9740
+ const _hoisted_8$4 = { class: "cell" };
9741
+ const _hoisted_9$4 = { class: "cell" };
9742
9742
  const _hoisted_10$3 = { class: "cell" };
9743
9743
  const _hoisted_11$2 = /* @__PURE__ */ createElementVNode("td", null, null, -1);
9744
9744
  const _hoisted_12$2 = /* @__PURE__ */ createElementVNode("td", null, null, -1);
@@ -9774,29 +9774,29 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
9774
9774
  createElementVNode("td", {
9775
9775
  class: normalizeClass(["available", _ctx.getCellStyle(_ctx.startYear + 4)])
9776
9776
  }, [
9777
- createElementVNode("a", _hoisted_5$3, toDisplayString(_ctx.startYear + 4), 1)
9777
+ createElementVNode("a", _hoisted_5$4, toDisplayString(_ctx.startYear + 4), 1)
9778
9778
  ], 2),
9779
9779
  createElementVNode("td", {
9780
9780
  class: normalizeClass(["available", _ctx.getCellStyle(_ctx.startYear + 5)])
9781
9781
  }, [
9782
- createElementVNode("a", _hoisted_6$3, toDisplayString(_ctx.startYear + 5), 1)
9782
+ createElementVNode("a", _hoisted_6$4, toDisplayString(_ctx.startYear + 5), 1)
9783
9783
  ], 2),
9784
9784
  createElementVNode("td", {
9785
9785
  class: normalizeClass(["available", _ctx.getCellStyle(_ctx.startYear + 6)])
9786
9786
  }, [
9787
- createElementVNode("a", _hoisted_7$3, toDisplayString(_ctx.startYear + 6), 1)
9787
+ createElementVNode("a", _hoisted_7$4, toDisplayString(_ctx.startYear + 6), 1)
9788
9788
  ], 2),
9789
9789
  createElementVNode("td", {
9790
9790
  class: normalizeClass(["available", _ctx.getCellStyle(_ctx.startYear + 7)])
9791
9791
  }, [
9792
- createElementVNode("a", _hoisted_8$3, toDisplayString(_ctx.startYear + 7), 1)
9792
+ createElementVNode("a", _hoisted_8$4, toDisplayString(_ctx.startYear + 7), 1)
9793
9793
  ], 2)
9794
9794
  ]),
9795
9795
  createElementVNode("tr", null, [
9796
9796
  createElementVNode("td", {
9797
9797
  class: normalizeClass(["available", _ctx.getCellStyle(_ctx.startYear + 8)])
9798
9798
  }, [
9799
- createElementVNode("a", _hoisted_9$3, toDisplayString(_ctx.startYear + 8), 1)
9799
+ createElementVNode("a", _hoisted_9$4, toDisplayString(_ctx.startYear + 8), 1)
9800
9800
  ], 2),
9801
9801
  createElementVNode("td", {
9802
9802
  class: normalizeClass(["available", _ctx.getCellStyle(_ctx.startYear + 9)])
@@ -10229,14 +10229,14 @@ const _hoisted_2$6 = {
10229
10229
  };
10230
10230
  const _hoisted_3$4 = ["onClick"];
10231
10231
  const _hoisted_4$3 = { class: "el-picker-panel__body" };
10232
- const _hoisted_5$2 = {
10232
+ const _hoisted_5$3 = {
10233
10233
  key: 0,
10234
10234
  class: "el-date-picker__time-header"
10235
10235
  };
10236
- const _hoisted_6$2 = { class: "el-date-picker__editor-wrap" };
10237
- const _hoisted_7$2 = { class: "el-date-picker__editor-wrap" };
10238
- const _hoisted_8$2 = ["aria-label"];
10239
- const _hoisted_9$2 = ["aria-label"];
10236
+ const _hoisted_6$3 = { class: "el-date-picker__editor-wrap" };
10237
+ const _hoisted_7$3 = { class: "el-date-picker__editor-wrap" };
10238
+ const _hoisted_8$3 = ["aria-label"];
10239
+ const _hoisted_9$3 = ["aria-label"];
10240
10240
  const _hoisted_10$2 = ["aria-label"];
10241
10241
  const _hoisted_11$1 = ["aria-label"];
10242
10242
  const _hoisted_12$1 = { class: "el-picker-panel__content" };
@@ -10275,8 +10275,8 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
10275
10275
  }), 128))
10276
10276
  ])) : createCommentVNode("v-if", true),
10277
10277
  createElementVNode("div", _hoisted_4$3, [
10278
- _ctx.showTime ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
10279
- createElementVNode("span", _hoisted_6$2, [
10278
+ _ctx.showTime ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
10279
+ createElementVNode("span", _hoisted_6$3, [
10280
10280
  createVNode(_component_el_input, {
10281
10281
  placeholder: _ctx.t("el.datepicker.selectDate"),
10282
10282
  "model-value": _ctx.visibleDate,
@@ -10285,7 +10285,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
10285
10285
  onChange: _ctx.handleVisibleDateChange
10286
10286
  }, null, 8, ["placeholder", "model-value", "onChange"])
10287
10287
  ]),
10288
- withDirectives((openBlock(), createElementBlock("span", _hoisted_7$2, [
10288
+ withDirectives((openBlock(), createElementBlock("span", _hoisted_7$3, [
10289
10289
  createVNode(_component_el_input, {
10290
10290
  placeholder: _ctx.t("el.datepicker.selectTime"),
10291
10291
  "model-value": _ctx.visibleTime,
@@ -10322,7 +10322,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
10322
10322
  ]),
10323
10323
  _: 1
10324
10324
  })
10325
- ], 8, _hoisted_8$2),
10325
+ ], 8, _hoisted_8$3),
10326
10326
  withDirectives(createElementVNode("button", {
10327
10327
  type: "button",
10328
10328
  "aria-label": _ctx.t(`el.datepicker.prevMonth`),
@@ -10335,7 +10335,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
10335
10335
  ]),
10336
10336
  _: 1
10337
10337
  })
10338
- ], 8, _hoisted_9$2), [
10338
+ ], 8, _hoisted_9$3), [
10339
10339
  [vShow, _ctx.currentView === "date"]
10340
10340
  ]),
10341
10341
  createElementVNode("span", {
@@ -10880,14 +10880,14 @@ const _hoisted_2$5 = {
10880
10880
  };
10881
10881
  const _hoisted_3$3 = ["onClick"];
10882
10882
  const _hoisted_4$2 = { class: "el-picker-panel__body" };
10883
- const _hoisted_5$1 = {
10883
+ const _hoisted_5$2 = {
10884
10884
  key: 0,
10885
10885
  class: "el-date-range-picker__time-header"
10886
10886
  };
10887
- const _hoisted_6$1 = { class: "el-date-range-picker__editors-wrap" };
10888
- const _hoisted_7$1 = { class: "el-date-range-picker__time-picker-wrap" };
10889
- const _hoisted_8$1 = { class: "el-date-range-picker__time-picker-wrap" };
10890
- const _hoisted_9$1 = { class: "el-date-range-picker__editors-wrap is-right" };
10887
+ const _hoisted_6$2 = { class: "el-date-range-picker__editors-wrap" };
10888
+ const _hoisted_7$2 = { class: "el-date-range-picker__time-picker-wrap" };
10889
+ const _hoisted_8$2 = { class: "el-date-range-picker__time-picker-wrap" };
10890
+ const _hoisted_9$2 = { class: "el-date-range-picker__editors-wrap is-right" };
10891
10891
  const _hoisted_10$1 = { class: "el-date-range-picker__time-picker-wrap" };
10892
10892
  const _hoisted_11 = { class: "el-date-range-picker__time-picker-wrap" };
10893
10893
  const _hoisted_12 = { class: "el-picker-panel__content el-date-range-picker__content is-left" };
@@ -10934,9 +10934,9 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
10934
10934
  }), 128))
10935
10935
  ])) : createCommentVNode("v-if", true),
10936
10936
  createElementVNode("div", _hoisted_4$2, [
10937
- _ctx.showTime ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
10938
- createElementVNode("span", _hoisted_6$1, [
10939
- createElementVNode("span", _hoisted_7$1, [
10937
+ _ctx.showTime ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
10938
+ createElementVNode("span", _hoisted_6$2, [
10939
+ createElementVNode("span", _hoisted_7$2, [
10940
10940
  createVNode(_component_el_input, {
10941
10941
  size: "small",
10942
10942
  disabled: _ctx.rangeState.selecting,
@@ -10947,7 +10947,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
10947
10947
  onChange: _cache[1] || (_cache[1] = (val) => _ctx.handleDateChange(val, "min"))
10948
10948
  }, null, 8, ["disabled", "placeholder", "model-value"])
10949
10949
  ]),
10950
- withDirectives((openBlock(), createElementBlock("span", _hoisted_8$1, [
10950
+ withDirectives((openBlock(), createElementBlock("span", _hoisted_8$2, [
10951
10951
  createVNode(_component_el_input, {
10952
10952
  size: "small",
10953
10953
  class: "el-date-range-picker__editor",
@@ -10978,7 +10978,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
10978
10978
  _: 1
10979
10979
  })
10980
10980
  ]),
10981
- createElementVNode("span", _hoisted_9$1, [
10981
+ createElementVNode("span", _hoisted_9$2, [
10982
10982
  createElementVNode("span", _hoisted_10$1, [
10983
10983
  createVNode(_component_el_input, {
10984
10984
  size: "small",
@@ -11362,11 +11362,11 @@ const _hoisted_2$4 = {
11362
11362
  };
11363
11363
  const _hoisted_3$2 = ["onClick"];
11364
11364
  const _hoisted_4$1 = { class: "el-picker-panel__body" };
11365
- const _hoisted_5 = { class: "el-picker-panel__content el-date-range-picker__content is-left" };
11366
- const _hoisted_6 = { class: "el-date-range-picker__header" };
11367
- const _hoisted_7 = ["disabled"];
11368
- const _hoisted_8 = { class: "el-picker-panel__content el-date-range-picker__content is-right" };
11369
- const _hoisted_9 = { class: "el-date-range-picker__header" };
11365
+ const _hoisted_5$1 = { class: "el-picker-panel__content el-date-range-picker__content is-left" };
11366
+ const _hoisted_6$1 = { class: "el-date-range-picker__header" };
11367
+ const _hoisted_7$1 = ["disabled"];
11368
+ const _hoisted_8$1 = { class: "el-picker-panel__content el-date-range-picker__content is-right" };
11369
+ const _hoisted_9$1 = { class: "el-date-range-picker__header" };
11370
11370
  const _hoisted_10 = ["disabled"];
11371
11371
  function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
11372
11372
  const _component_d_arrow_left = resolveComponent("d-arrow-left");
@@ -11393,8 +11393,8 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
11393
11393
  }), 128))
11394
11394
  ])) : createCommentVNode("v-if", true),
11395
11395
  createElementVNode("div", _hoisted_4$1, [
11396
- createElementVNode("div", _hoisted_5, [
11397
- createElementVNode("div", _hoisted_6, [
11396
+ createElementVNode("div", _hoisted_5$1, [
11397
+ createElementVNode("div", _hoisted_6$1, [
11398
11398
  createElementVNode("button", {
11399
11399
  type: "button",
11400
11400
  class: "el-picker-panel__icon-btn d-arrow-left",
@@ -11420,7 +11420,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
11420
11420
  ]),
11421
11421
  _: 1
11422
11422
  })
11423
- ], 10, _hoisted_7)) : createCommentVNode("v-if", true),
11423
+ ], 10, _hoisted_7$1)) : createCommentVNode("v-if", true),
11424
11424
  createElementVNode("div", null, toDisplayString(_ctx.leftLabel), 1)
11425
11425
  ]),
11426
11426
  createVNode(_component_month_table, {
@@ -11435,8 +11435,8 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
11435
11435
  onSelect: _ctx.onSelect
11436
11436
  }, null, 8, ["date", "min-date", "max-date", "range-state", "disabled-date", "onChangerange", "onPick", "onSelect"])
11437
11437
  ]),
11438
- createElementVNode("div", _hoisted_8, [
11439
- createElementVNode("div", _hoisted_9, [
11438
+ createElementVNode("div", _hoisted_8$1, [
11439
+ createElementVNode("div", _hoisted_9$1, [
11440
11440
  _ctx.unlinkPanels ? (openBlock(), createElementBlock("button", {
11441
11441
  key: 0,
11442
11442
  type: "button",
@@ -29677,17 +29677,37 @@ function getErrorMessage(ex2) {
29677
29677
  return value;
29678
29678
  }
29679
29679
  }
29680
- var plCertDialog_vue_vue_type_style_index_0_lang = "";
29681
- const _hoisted_1 = /* @__PURE__ */ createElementVNode("div", { class: "sp-dialog__title" }, [
29682
- /* @__PURE__ */ createElementVNode("div", { class: "title-text" }, "\u041F\u043E\u0434\u043F\u0438\u0441\u044C \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430")
29683
- ], -1);
29684
- const _hoisted_2 = { class: "dialog-footer" };
29685
- const _hoisted_3 = /* @__PURE__ */ createTextVNode("\u0412\u044B\u0431\u0440\u0430\u0442\u044C");
29686
- const _hoisted_4 = /* @__PURE__ */ createTextVNode("\u041E\u0442\u043C\u0435\u043D\u0430");
29680
+ const _hoisted_1 = { class: "sp-dialog__title" };
29681
+ const _hoisted_2 = {
29682
+ key: 0,
29683
+ class: "title-text"
29684
+ };
29685
+ const _hoisted_3 = {
29686
+ key: 1,
29687
+ class: "title-text"
29688
+ };
29689
+ const _hoisted_4 = {
29690
+ key: 0,
29691
+ class: "dialog-footer"
29692
+ };
29693
+ const _hoisted_5 = /* @__PURE__ */ createTextVNode("\u0412\u044B\u0431\u0440\u0430\u0442\u044C");
29694
+ const _hoisted_6 = /* @__PURE__ */ createTextVNode("\u041E\u0442\u043C\u0435\u043D\u0430");
29695
+ const _hoisted_7 = {
29696
+ key: 1,
29697
+ class: "dialog-footer"
29698
+ };
29699
+ const _hoisted_8 = /* @__PURE__ */ createTextVNode("\u0412\u044B\u0431\u0440\u0430\u0442\u044C");
29700
+ const _hoisted_9 = /* @__PURE__ */ createTextVNode("\u041E\u0442\u043C\u0435\u043D\u0430");
29687
29701
  const __default__ = {
29688
29702
  name: "PlCertDialog"
29689
29703
  };
29690
29704
  const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
29705
+ props: {
29706
+ singleDoc: {
29707
+ type: Boolean,
29708
+ default: false
29709
+ }
29710
+ },
29691
29711
  emits: ["cert-selected"],
29692
29712
  setup(__props, { expose, emit }) {
29693
29713
  const form2 = ref(null);
@@ -29716,6 +29736,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
29716
29736
  ]
29717
29737
  });
29718
29738
  const validCerts = computed(() => _.filter(certs.value, "valid"));
29739
+ const isSelectCertButtonDisabled = computed(() => !dataForm.thumbprint);
29719
29740
  const formatCertInfo = (item, id) => {
29720
29741
  var _a2, _b2;
29721
29742
  const regexCn = new RegExp("CN=([^,]+)", "i");
@@ -29766,12 +29787,26 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
29766
29787
  }).then(() => {
29767
29788
  loading2.value = false;
29768
29789
  nextTick(() => {
29769
- form2.value.resetFields();
29770
- form2.value.clearValidate(["file", "thumbprint"]);
29790
+ var _a2, _b2;
29791
+ (_a2 = form2 == null ? void 0 : form2.value) == null ? void 0 : _a2.resetFields();
29792
+ (_b2 = form2 == null ? void 0 : form2.value) == null ? void 0 : _b2.clearValidate(["file", "thumbprint"]);
29771
29793
  });
29772
29794
  });
29773
29795
  };
29774
29796
  const hide2 = () => visible.value = false;
29797
+ const onAppendClickSingle = () => {
29798
+ hide2();
29799
+ const certInfo = _.find(validCerts.value, ["thumbprint", dataForm.thumbprint]);
29800
+ if (certInfo == null) {
29801
+ ElMessage.error("\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043E \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u0435.");
29802
+ } else {
29803
+ emit("cert-selected", {
29804
+ thumbprint: certInfo.thumbprint,
29805
+ validTo: certInfo.validTo,
29806
+ validFrom: certInfo.validFrom
29807
+ });
29808
+ }
29809
+ };
29775
29810
  const onAppendClick = () => {
29776
29811
  form2.value.validate((isFormValid) => {
29777
29812
  if (isFormValid) {
@@ -29810,26 +29845,45 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
29810
29845
  "close-on-click-modal": false
29811
29846
  }), {
29812
29847
  title: withCtx(() => [
29813
- _hoisted_1
29848
+ createElementVNode("div", _hoisted_1, [
29849
+ __props.singleDoc ? (openBlock(), createElementBlock("div", _hoisted_2, "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043A\u0430\u0442")) : (openBlock(), createElementBlock("div", _hoisted_3, "\u041F\u043E\u0434\u043F\u0438\u0441\u044C \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430"))
29850
+ ])
29814
29851
  ]),
29815
29852
  footer: withCtx(() => [
29816
- createElementVNode("div", _hoisted_2, [
29853
+ __props.singleDoc ? (openBlock(), createElementBlock("div", _hoisted_4, [
29854
+ createVNode(_component_el_button, {
29855
+ type: "primary",
29856
+ disabled: unref(isSelectCertButtonDisabled),
29857
+ onClick: onAppendClickSingle
29858
+ }, {
29859
+ default: withCtx(() => [
29860
+ _hoisted_5
29861
+ ]),
29862
+ _: 1
29863
+ }, 8, ["disabled"]),
29864
+ createVNode(_component_el_button, { onClick: onCancelClick }, {
29865
+ default: withCtx(() => [
29866
+ _hoisted_6
29867
+ ]),
29868
+ _: 1
29869
+ })
29870
+ ])) : (openBlock(), createElementBlock("div", _hoisted_7, [
29817
29871
  createVNode(_component_el_button, {
29818
29872
  type: "primary",
29819
29873
  onClick: _cache[2] || (_cache[2] = ($event) => onAppendClick(form2.value))
29820
29874
  }, {
29821
29875
  default: withCtx(() => [
29822
- _hoisted_3
29876
+ _hoisted_8
29823
29877
  ]),
29824
29878
  _: 1
29825
29879
  }),
29826
29880
  createVNode(_component_el_button, { onClick: onCancelClick }, {
29827
29881
  default: withCtx(() => [
29828
- _hoisted_4
29882
+ _hoisted_9
29829
29883
  ]),
29830
29884
  _: 1
29831
29885
  })
29832
- ])
29886
+ ]))
29833
29887
  ]),
29834
29888
  default: withCtx(() => [
29835
29889
  withDirectives((openBlock(), createBlock(_component_el_form, {
@@ -29839,7 +29893,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
29839
29893
  rules: unref(rules2)
29840
29894
  }, {
29841
29895
  default: withCtx(() => [
29842
- createVNode(_component_el_form_item, { prop: "file" }, {
29896
+ !__props.singleDoc ? (openBlock(), createBlock(_component_el_form_item, {
29897
+ key: 0,
29898
+ prop: "file"
29899
+ }, {
29843
29900
  default: withCtx(() => [
29844
29901
  createVNode(_component_el_select, {
29845
29902
  style: { "width": "100%" },
@@ -29860,7 +29917,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
29860
29917
  }, 8, ["modelValue"])
29861
29918
  ]),
29862
29919
  _: 1
29863
- }),
29920
+ })) : createCommentVNode("", true),
29864
29921
  createVNode(_component_el_form_item, { prop: "thumbprint" }, {
29865
29922
  default: withCtx(() => [
29866
29923
  createVNode(_component_el_select, {