@factoringplus/pl-components-pack-v3 0.8.19-pre-03 → 0.8.20

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.
package/README.md CHANGED
@@ -1,17 +1,17 @@
1
- # Библиотека компонентов Vue 3
2
-
3
- ## Установка
4
-
5
- ```bash
6
- npm i @factoringplus/pl-components-pack-v3
7
- ```
8
-
9
- ### Добавление компонентов в проект
10
-
11
- ```bash
12
- // src/main.js
13
- import components from '@factoringplus/pl-components-pack-v3';
14
- import '@factoringplus/pl-components-pack-v3/dist/style.css';
15
-
16
- app.use(components)
17
- ```
1
+ # Библиотека компонентов Vue 3
2
+
3
+ ## Установка
4
+
5
+ ```bash
6
+ npm i @factoringplus/pl-components-pack-v3
7
+ ```
8
+
9
+ ### Добавление компонентов в проект
10
+
11
+ ```bash
12
+ // src/main.js
13
+ import components from '@factoringplus/pl-components-pack-v3';
14
+ import '@factoringplus/pl-components-pack-v3/dist/style.css';
15
+
16
+ app.use(components)
17
+ ```
@@ -19572,7 +19572,7 @@ function now$1() {
19572
19572
  return now$1.last = g > y ? g : y + 1;
19573
19573
  }
19574
19574
  var uniqidExports = uniqid$1.exports;
19575
- const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), plInputPlus_vue_vue_type_style_index_0_scoped_ff1f0a16_lang = "", _export_sfc = (g, y) => {
19575
+ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), plInputPlus_vue_vue_type_style_index_0_scoped_f7643425_lang = "", _export_sfc = (g, y) => {
19576
19576
  const j = g.__vccOpts || g;
19577
19577
  for (const [z, L] of y)
19578
19578
  j[z] = L;
@@ -19682,7 +19682,7 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), plInputPl
19682
19682
  setup(g, { expose: y, emit: j }) {
19683
19683
  const z = g;
19684
19684
  useCssVars((ie) => ({
19685
- "3301f2f2": z.width
19685
+ d61c9b82: z.width
19686
19686
  }));
19687
19687
  const L = useAttrs$1(), V = `id-${uniqid()}`, re = ref([]);
19688
19688
  if (z.prop) {
@@ -19714,16 +19714,16 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), plInputPl
19714
19714
  const le = () => {
19715
19715
  var ie;
19716
19716
  (ie = document.getElementById(V)) == null || ie.blur();
19717
- }, ue = () => {
19718
- var ie;
19719
- (ie = document.getElementById(V)) == null || ie.focus();
19720
19717
  };
19721
19718
  return y({
19722
19719
  blurInput: le,
19723
- focusInput: ue
19720
+ focusInput: () => {
19721
+ var ie;
19722
+ (ie = document.getElementById(V)) == null || ie.focus();
19723
+ }
19724
19724
  }), (ie, pe) => {
19725
- const de = resolveDirective("touch-outside"), Ne = resolveDirective("tap");
19726
- return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$M, [
19725
+ const de = resolveDirective("touch-outside");
19726
+ return openBlock(), createElementBlock("div", _hoisted_1$M, [
19727
19727
  z.label || z.tooltip ? (openBlock(), createElementBlock("label", {
19728
19728
  key: 0,
19729
19729
  class: "pl-input__label-container",
@@ -19750,7 +19750,7 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), plInputPl
19750
19750
  z.currency ? (openBlock(), createBlock(_sfc_main$1c, mergeProps({ key: 0 }, unref(L), {
19751
19751
  id: V,
19752
19752
  modelValue: ae.value,
19753
- "onUpdate:modelValue": pe[0] || (pe[0] = (Ie) => ae.value = Ie),
19753
+ "onUpdate:modelValue": pe[0] || (pe[0] = (Ne) => ae.value = Ne),
19754
19754
  placeholder: z.placeholder,
19755
19755
  disabled: z.disabled,
19756
19756
  round: z.round,
@@ -19762,7 +19762,7 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), plInputPl
19762
19762
  }), null, 16, ["modelValue", "placeholder", "disabled", "round", "value-range", "currency-input-options", "left-icon", "right-icon", "prop"])) : z.password ? (openBlock(), createBlock(_sfc_main$1b, mergeProps({ key: 1 }, unref(L), {
19763
19763
  id: V,
19764
19764
  modelValue: ae.value,
19765
- "onUpdate:modelValue": pe[1] || (pe[1] = (Ie) => ae.value = Ie),
19765
+ "onUpdate:modelValue": pe[1] || (pe[1] = (Ne) => ae.value = Ne),
19766
19766
  placeholder: z.placeholder,
19767
19767
  disabled: z.disabled,
19768
19768
  "left-icon": z.leftIcon,
@@ -19773,7 +19773,7 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), plInputPl
19773
19773
  }), null, 16, ["modelValue", "placeholder", "disabled", "left-icon", "right-icon", "prop", "current-password", "new-password"])) : z.textarea ? (openBlock(), createBlock(_sfc_main$1a, mergeProps({ key: 2 }, unref(L), {
19774
19774
  id: V,
19775
19775
  modelValue: ae.value,
19776
- "onUpdate:modelValue": pe[2] || (pe[2] = (Ie) => ae.value = Ie),
19776
+ "onUpdate:modelValue": pe[2] || (pe[2] = (Ne) => ae.value = Ne),
19777
19777
  placeholder: z.placeholder,
19778
19778
  disabled: z.disabled,
19779
19779
  prop: z.prop,
@@ -19782,7 +19782,7 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), plInputPl
19782
19782
  }), null, 16, ["modelValue", "placeholder", "disabled", "prop", "show-word-limit", "maxlength"])) : (openBlock(), createBlock(_sfc_main$19, mergeProps({ key: 3 }, unref(L), {
19783
19783
  id: V,
19784
19784
  modelValue: ae.value,
19785
- "onUpdate:modelValue": pe[3] || (pe[3] = (Ie) => ae.value = Ie),
19785
+ "onUpdate:modelValue": pe[3] || (pe[3] = (Ne) => ae.value = Ne),
19786
19786
  placeholder: z.placeholder,
19787
19787
  maxlength: z.maxlength,
19788
19788
  disabled: z.disabled,
@@ -19798,12 +19798,10 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), plInputPl
19798
19798
  z.helpertext || re.value.length > 0 ? (openBlock(), createElementBlock("span", _hoisted_4$r, [
19799
19799
  re.value.length > 0 ? (openBlock(), createElementBlock("span", _hoisted_5$j, toDisplayString(re.value[0].message), 1)) : z.helpertext ? (openBlock(), createElementBlock("span", _hoisted_6$d, toDisplayString(z.helpertext), 1)) : createCommentVNode("", !0)
19800
19800
  ])) : createCommentVNode("", !0)
19801
- ])), [
19802
- [Ne, ue]
19803
19801
  ]);
19804
19802
  };
19805
19803
  }
19806
- }, __unplugin_components_0 = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-ff1f0a16"]]), PlInputPlusPlugin = {
19804
+ }, __unplugin_components_0 = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-f7643425"]]), PlInputPlusPlugin = {
19807
19805
  install(g) {
19808
19806
  g.component("PlInputPlus", __unplugin_components_0);
19809
19807
  }
@@ -21245,7 +21243,7 @@ const PlButtonPlugin = {
21245
21243
  ], 2);
21246
21244
  };
21247
21245
  }
21248
- }, plSelectPlus_vue_vue_type_style_index_0_scoped_1c207bae_lang = "", _hoisted_1$z = { class: "pl-select__wrapper" }, _hoisted_2$v = { class: "pl-select__select-container" }, _hoisted_3$p = {
21246
+ }, plSelectPlus_vue_vue_type_style_index_0_scoped_9461241e_lang = "", _hoisted_1$z = { class: "pl-select__wrapper" }, _hoisted_2$v = { class: "pl-select__select-container" }, _hoisted_3$p = {
21249
21247
  key: 0,
21250
21248
  class: "pl-select__label-container"
21251
21249
  }, _hoisted_4$k = { class: "pl-select__label-container-text" }, _hoisted_5$f = {
@@ -21326,11 +21324,11 @@ const PlButtonPlugin = {
21326
21324
  default: !1
21327
21325
  }
21328
21326
  },
21329
- emits: ["update:modelValue", "change"],
21327
+ emits: ["update:modelValue"],
21330
21328
  setup(g, { emit: y }) {
21331
21329
  const j = g;
21332
21330
  useCssVars((Ue) => ({
21333
- "39747a33": j.width
21331
+ b6f85734: j.width
21334
21332
  }));
21335
21333
  const z = `id-${uniqid()}`, L = ref([]);
21336
21334
  if (j.prop) {
@@ -21382,7 +21380,6 @@ const PlButtonPlugin = {
21382
21380
  $e.initEvent("change", !1, !0), Ue.dispatchEvent($e);
21383
21381
  } else
21384
21382
  Ue.fireEvent("onchange");
21385
- y("change");
21386
21383
  });
21387
21384
  const Ne = (Ue) => {
21388
21385
  Ue.disabled || (pe(), de.value = Ue.value);
@@ -21471,7 +21468,7 @@ const PlButtonPlugin = {
21471
21468
  ]);
21472
21469
  };
21473
21470
  }
21474
- }, PlSelectPlus = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-1c207bae"]]), PlSelectPlusPlugin = {
21471
+ }, PlSelectPlus = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-9461241e"]]), PlSelectPlusPlugin = {
21475
21472
  install(g) {
21476
21473
  g.component("PlSelectPlus", PlSelectPlus);
21477
21474
  }
@@ -29770,7 +29767,12 @@ const axios$1 = /* @__PURE__ */ getDefaultExportFromCjs(axios), plUpload_vue_vue
29770
29767
  header: { type: Boolean, default: !0 },
29771
29768
  main: { type: Boolean, default: !0 },
29772
29769
  height: { type: String, default: "150" },
29773
- limit: { type: Number }
29770
+ limit: { type: Number },
29771
+ onPreview: {
29772
+ type: Function,
29773
+ default: () => {
29774
+ }
29775
+ }
29774
29776
  },
29775
29777
  emits: [
29776
29778
  "on-files-not-attached",
@@ -29779,6 +29781,7 @@ const axios$1 = /* @__PURE__ */ getDefaultExportFromCjs(axios), plUpload_vue_vue
29779
29781
  "on-file-empty",
29780
29782
  "on-file-not-limit",
29781
29783
  "on-change",
29784
+ "on-preview",
29782
29785
  "update:modelValue"
29783
29786
  ],
29784
29787
  setup(g, { emit: y }) {
@@ -29827,7 +29830,8 @@ const axios$1 = /* @__PURE__ */ getDefaultExportFromCjs(axios), plUpload_vue_vue
29827
29830
  class: "pl-upload-plus"
29828
29831
  }, ue.$attrs, {
29829
29832
  "file-list": z.value,
29830
- style: ae.value
29833
+ style: ae.value,
29834
+ "on-preview": g.onPreview
29831
29835
  }), {
29832
29836
  file: withCtx(({ file: de }) => [
29833
29837
  renderSlot(ue.$slots, "file", { file: de })
@@ -29845,7 +29849,7 @@ const axios$1 = /* @__PURE__ */ getDefaultExportFromCjs(axios), plUpload_vue_vue
29845
29849
  renderSlot(ue.$slots, "footer")
29846
29850
  ]),
29847
29851
  _: 3
29848
- }, 16, ["drag", "multiple", "file-list", "style"]);
29852
+ }, 16, ["drag", "multiple", "file-list", "style", "on-preview"]);
29849
29853
  };
29850
29854
  }
29851
29855
  }), PlUploadPlusPlugin = {
@@ -34507,7 +34511,7 @@ var objectSupport$1 = { exports: {} };
34507
34511
  });
34508
34512
  })(objectSupport$1);
34509
34513
  var objectSupportExports = objectSupport$1.exports;
34510
- const objectSupport = /* @__PURE__ */ getDefaultExportFromCjs(objectSupportExports), plDatePickerRange_vue_vue_type_style_index_0_scoped_ea856d1e_lang = "", _withScopeId = (g) => (pushScopeId("data-v-ea856d1e"), g = g(), popScopeId(), g), _hoisted_1$4 = ["id"], _hoisted_2$3 = ["src"], _hoisted_3$3 = { class: "date-switcher__container flex-column" }, _hoisted_4$1 = { class: "d-flex pb-6 justify-content-between" }, _hoisted_5$1 = { class: "date-switcher justify-content-center flex-column" }, _hoisted_6$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "pl-date-picker__placeholder pb-1 ps-1" }, "Начало периода", -1)), _hoisted_7$1 = { class: "date-switcher justify-content-center flex-column" }, _hoisted_8$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "pl-date-picker__placeholder pb-1 ps-1" }, "Конец периода", -1)), _hoisted_9 = { class: "d-flex pt-2 justify-content-between" }, _hoisted_10 = { class: "date-switcher date-switcher__month" }, _hoisted_11 = { class: "date-switcher__month-name" }, _hoisted_12 = { class: "date-switcher date-switcher__year" }, _hoisted_13 = { class: "date-switcher__year-name" }, _hoisted_14 = { class: "pl-date-picker__days" }, _hoisted_15 = ["onClick", "onMousemove"], _hoisted_16 = { class: "field" }, _hoisted_17 = { class: "pl-date-picker__buttons" }, _sfc_main$m = {
34514
+ const objectSupport = /* @__PURE__ */ getDefaultExportFromCjs(objectSupportExports), plDatePickerRange_vue_vue_type_style_index_0_scoped_71f9dc3f_lang = "", _withScopeId = (g) => (pushScopeId("data-v-71f9dc3f"), g = g(), popScopeId(), g), _hoisted_1$4 = ["id"], _hoisted_2$3 = ["src"], _hoisted_3$3 = { class: "date-switcher__container flex-column" }, _hoisted_4$1 = { class: "d-flex pb-6 justify-content-between" }, _hoisted_5$1 = { class: "date-switcher justify-content-center flex-column" }, _hoisted_6$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "pl-date-picker__placeholder pb-1 ps-1" }, "Начало периода", -1)), _hoisted_7$1 = { class: "date-switcher justify-content-center flex-column" }, _hoisted_8$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "pl-date-picker__placeholder pb-1 ps-1" }, "Конец периода", -1)), _hoisted_9 = { class: "d-flex pt-2 justify-content-between" }, _hoisted_10 = { class: "date-switcher date-switcher__month" }, _hoisted_11 = { class: "date-switcher__month-name" }, _hoisted_12 = { class: "date-switcher date-switcher__year" }, _hoisted_13 = { class: "date-switcher__year-name" }, _hoisted_14 = { class: "pl-date-picker__days" }, _hoisted_15 = ["onClick", "onMousemove"], _hoisted_16 = { class: "field" }, _hoisted_17 = { class: "pl-date-picker__buttons" }, _sfc_main$m = {
34511
34515
  __name: "pl-date-picker-range",
34512
34516
  props: {
34513
34517
  modelValue: {
@@ -34851,7 +34855,7 @@ const objectSupport = /* @__PURE__ */ getDefaultExportFromCjs(objectSupportExpor
34851
34855
  ], 8, _hoisted_1$4);
34852
34856
  };
34853
34857
  }
34854
- }, PlDatePickerRange = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-ea856d1e"]]), PlDatePickerPlusPlugin = {
34858
+ }, PlDatePickerRange = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-71f9dc3f"]]), PlDatePickerPlusPlugin = {
34855
34859
  install(g) {
34856
34860
  g.component("PlDatePickerPlus", PlDatePickerPlus), g.component("PlDatePickerRange", PlDatePickerRange);
34857
34861
  }