@factoringplus/pl-components-pack-v3 0.11.1 → 0.11.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.
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
+ ```
@@ -19010,8 +19010,8 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), _hoisted_
19010
19010
  setup(g, { expose: y, emit: j }) {
19011
19011
  const z = g;
19012
19012
  useCssVars((Mn) => ({
19013
- "0a45bbe0": xe.value,
19014
- "098bb5f0": Et.value
19013
+ "5191b125": xe.value,
19014
+ "7b3be145": Et.value
19015
19015
  }));
19016
19016
  const L = computed$1({
19017
19017
  get: () => z.modelValue,
@@ -20427,7 +20427,7 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), _hoisted_
20427
20427
  createElementVNode("span", null, toDisplayString(y.label), 1)
20428
20428
  ], 2)) : createCommentVNode("", !0);
20429
20429
  }
20430
- }), plTabCard_vue_vue_type_style_index_0_scoped_5d0a6b4e_lang = "", PlTabCard = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-5d0a6b4e"]]), plMultitab_vue_vue_type_style_index_0_scoped_b000d762_lang = "", _hoisted_1$J = { class: "pl-multitab-container" }, _sfc_main$13 = {
20430
+ }), plTabCard_vue_vue_type_style_index_0_scoped_5d0a6b4e_lang = "", PlTabCard = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-5d0a6b4e"]]), plMultitab_vue_vue_type_style_index_0_scoped_a888db5d_lang = "", _hoisted_1$J = { class: "pl-multitab-container" }, _sfc_main$13 = {
20431
20431
  __name: "pl-multitab",
20432
20432
  props: {
20433
20433
  modelValue: {
@@ -20487,7 +20487,7 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), _hoisted_
20487
20487
  ]);
20488
20488
  };
20489
20489
  }
20490
- }, PlMultitab = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-b000d762"]]), PlMultitabPlugin = {
20490
+ }, PlMultitab = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-a888db5d"]]), PlMultitabPlugin = {
20491
20491
  install(g) {
20492
20492
  g.component("PlMultitab", PlMultitab);
20493
20493
  }
@@ -20757,7 +20757,7 @@ function declOfNum(g, y) {
20757
20757
  const z = g % 10;
20758
20758
  return z > 1 && z < 5 ? y[1] : z == 1 ? y[0] : y[2];
20759
20759
  }
20760
- const plAutocompete_vue_vue_type_style_index_0_scoped_e082e824_lang = "", _hoisted_1$H = { class: "pl-autocomplete__wrapper" }, _hoisted_2$C = { class: "pl-autocomplete__select-container" }, _hoisted_3$u = {
20760
+ const plAutocompete_vue_vue_type_style_index_0_scoped_dc250816_lang = "", _hoisted_1$H = { class: "pl-autocomplete__wrapper" }, _hoisted_2$C = { class: "pl-autocomplete__select-container" }, _hoisted_3$u = {
20761
20761
  key: 0,
20762
20762
  class: "pl-autocomplete__label-container"
20763
20763
  }, _hoisted_4$p = { class: "pl-autocomplete__label-container-text" }, _hoisted_5$h = {
@@ -20869,7 +20869,7 @@ const plAutocompete_vue_vue_type_style_index_0_scoped_e082e824_lang = "", _hoist
20869
20869
  setup(g, { emit: y }) {
20870
20870
  const j = g;
20871
20871
  useCssVars((qe) => ({
20872
- "521a63b8": j.width
20872
+ "16a48efa": j.width
20873
20873
  }));
20874
20874
  const z = `id-${uniqid()}`, L = ref([]);
20875
20875
  if (j.prop) {
@@ -21054,7 +21054,7 @@ const plAutocompete_vue_vue_type_style_index_0_scoped_e082e824_lang = "", _hoist
21054
21054
  ]);
21055
21055
  };
21056
21056
  }
21057
- }, PlAutocomplete = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-e082e824"]]), PlAutocompletePlugin = {
21057
+ }, PlAutocomplete = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-dc250816"]]), PlAutocompletePlugin = {
21058
21058
  install(g) {
21059
21059
  g.component("PlAutocomplete", PlAutocomplete);
21060
21060
  }
@@ -21432,7 +21432,7 @@ const PlButtonPlugin = {
21432
21432
  ], 2);
21433
21433
  };
21434
21434
  }
21435
- }, plSelectPlus_vue_vue_type_style_index_0_scoped_1b69d579_lang = "", _hoisted_1$D = { class: "pl-select__wrapper" }, _hoisted_2$z = {
21435
+ }, plSelectPlus_vue_vue_type_style_index_0_scoped_56b7d99b_lang = "", _hoisted_1$D = { class: "pl-select__wrapper" }, _hoisted_2$z = {
21436
21436
  key: 0,
21437
21437
  class: "pl-select__label-container"
21438
21438
  }, _hoisted_3$r = { class: "pl-select__label-container-text" }, _hoisted_4$m = {
@@ -21517,7 +21517,7 @@ const PlButtonPlugin = {
21517
21517
  setup(g, { emit: y }) {
21518
21518
  const j = g;
21519
21519
  useCssVars((Ve) => ({
21520
- "49389beb": j.width
21520
+ "70ce61be": j.width
21521
21521
  }));
21522
21522
  const z = `id-${uniqid()}`, L = ref([]);
21523
21523
  if (j.prop) {
@@ -21663,7 +21663,7 @@ const PlButtonPlugin = {
21663
21663
  ]);
21664
21664
  };
21665
21665
  }
21666
- }, PlSelectPlus = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-1b69d579"]]), PlSelectPlusPlugin = {
21666
+ }, PlSelectPlus = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-56b7d99b"]]), PlSelectPlusPlugin = {
21667
21667
  install(g) {
21668
21668
  g.component("PlSelectPlus", PlSelectPlus);
21669
21669
  }
@@ -35393,7 +35393,7 @@ const PlSystem = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_rende
35393
35393
  ]);
35394
35394
  };
35395
35395
  }
35396
- }), plCheckboxPlus_vue_vue_type_style_index_0_scoped_2161ec04_lang = "", PlCheckboxPlus = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-2161ec04"]]), PlCheckboxPlusPlugin = {
35396
+ }), plCheckboxPlus_vue_vue_type_style_index_0_scoped_bdee0f2e_lang = "", PlCheckboxPlus = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-bdee0f2e"]]), PlCheckboxPlusPlugin = {
35397
35397
  install(g) {
35398
35398
  g.component("PlCheckboxPlus", PlCheckboxPlus);
35399
35399
  }
@@ -35540,7 +35540,7 @@ function _sfc_render(g, y) {
35540
35540
  renderSlot(g.$slots, "default", {}, void 0, !0)
35541
35541
  ]);
35542
35542
  }
35543
- const PlBtn = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__scopeId", "data-v-03c9626c"]]), plSnackbar_vue_vue_type_style_index_0_scoped_3d029f35_lang = "", _hoisted_1 = {
35543
+ const PlBtn = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__scopeId", "data-v-03c9626c"]]), plSnackbar_vue_vue_type_style_index_0_scoped_c5869652_lang = "", _hoisted_1 = {
35544
35544
  key: 0,
35545
35545
  class: "pl-snackbar__wrapper"
35546
35546
  }, _hoisted_2 = { class: "pl-snackbar__icon" }, _hoisted_3 = { class: "pl-snackbar__main" }, _hoisted_4 = { class: "pl-snackbar__text" }, _hoisted_5 = { class: "pl-snackbar__title" }, _hoisted_6 = {
@@ -35552,6 +35552,9 @@ const PlBtn = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render],
35552
35552
  }, _hoisted_8 = { class: "pl-snackbar__close" }, _sfc_main = {
35553
35553
  __name: "pl-snackbar",
35554
35554
  props: {
35555
+ // hideOnAction: {
35556
+ // type: Boolean,
35557
+ // },
35555
35558
  icon: {
35556
35559
  type: String,
35557
35560
  default: "Cube24"
@@ -35598,59 +35601,58 @@ const PlBtn = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render],
35598
35601
  function V() {
35599
35602
  j.value = !1;
35600
35603
  }
35601
- return (re, ae) => {
35602
- const le = resolveDirective("tap");
35603
- return openBlock(), createBlock(TransitionGroup, {
35604
- name: "pl-snackbar-fade",
35605
- mode: "out-in"
35606
- }, {
35607
- default: withCtx(() => [
35608
- j.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
35609
- createElementVNode("div", _hoisted_2, [
35610
- createVNode(_sfc_main$1l, {
35611
- color: y.color,
35612
- name: y.icon,
35613
- position: "left"
35614
- }, null, 8, ["color", "name"])
35615
- ]),
35616
- createElementVNode("div", _hoisted_3, [
35617
- createElementVNode("div", _hoisted_4, [
35618
- createElementVNode("div", _hoisted_5, toDisplayString(y.title), 1),
35619
- y.message ? (openBlock(), createElementBlock("div", _hoisted_6, toDisplayString(y.message), 1)) : createCommentVNode("", !0)
35620
- ]),
35621
- y.button || y.buttonAdd ? (openBlock(), createElementBlock("div", _hoisted_7, [
35622
- y.button ? withDirectives((openBlock(), createBlock(PlBtn, { key: 0 }, {
35623
- default: withCtx(() => [
35624
- createTextVNode(toDisplayString(g.button), 1)
35625
- ]),
35626
- _: 1
35627
- })), [
35628
- [le, z]
35629
- ]) : createCommentVNode("", !0),
35630
- y.buttonAdd ? withDirectives((openBlock(), createBlock(PlBtn, { key: 1 }, {
35631
- default: withCtx(() => [
35632
- createTextVNode(toDisplayString(g.buttonAdd), 1)
35633
- ]),
35634
- _: 1
35635
- })), [
35636
- [le, L]
35637
- ]) : createCommentVNode("", !0)
35638
- ])) : createCommentVNode("", !0)
35604
+ return (re, ae) => (openBlock(), createBlock(TransitionGroup, {
35605
+ name: "pl-snackbar-fade",
35606
+ mode: "out-in"
35607
+ }, {
35608
+ default: withCtx(() => [
35609
+ j.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
35610
+ createElementVNode("div", _hoisted_2, [
35611
+ createVNode(_sfc_main$1l, {
35612
+ color: y.color,
35613
+ name: y.icon,
35614
+ position: "left"
35615
+ }, null, 8, ["color", "name"])
35616
+ ]),
35617
+ createElementVNode("div", _hoisted_3, [
35618
+ createElementVNode("div", _hoisted_4, [
35619
+ createElementVNode("div", _hoisted_5, toDisplayString(y.title), 1),
35620
+ y.message ? (openBlock(), createElementBlock("div", _hoisted_6, toDisplayString(y.message), 1)) : createCommentVNode("", !0)
35639
35621
  ]),
35640
- createElementVNode("div", _hoisted_8, [
35641
- createVNode(_sfc_main$1l, {
35642
- color: "var(--color-text-icons-tertiary)",
35643
- name: "Close20",
35644
- onClick: V
35645
- })
35646
- ])
35647
- ])) : createCommentVNode("", !0)
35648
- ]),
35649
- _: 1
35650
- });
35651
- };
35622
+ y.button || y.buttonAdd ? (openBlock(), createElementBlock("div", _hoisted_7, [
35623
+ y.button ? (openBlock(), createBlock(PlBtn, {
35624
+ key: 0,
35625
+ onClick: z
35626
+ }, {
35627
+ default: withCtx(() => [
35628
+ createTextVNode(toDisplayString(g.button), 1)
35629
+ ]),
35630
+ _: 1
35631
+ })) : createCommentVNode("", !0),
35632
+ y.buttonAdd ? (openBlock(), createBlock(PlBtn, {
35633
+ key: 1,
35634
+ onClick: L
35635
+ }, {
35636
+ default: withCtx(() => [
35637
+ createTextVNode(toDisplayString(g.buttonAdd), 1)
35638
+ ]),
35639
+ _: 1
35640
+ })) : createCommentVNode("", !0)
35641
+ ])) : createCommentVNode("", !0)
35642
+ ]),
35643
+ createElementVNode("div", _hoisted_8, [
35644
+ createVNode(_sfc_main$1l, {
35645
+ color: "var(--color-text-icons-tertiary)",
35646
+ name: "Close20",
35647
+ onClick: V
35648
+ })
35649
+ ])
35650
+ ])) : createCommentVNode("", !0)
35651
+ ]),
35652
+ _: 1
35653
+ }));
35652
35654
  }
35653
- }, PlSnackbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3d029f35"]]), snackbarAnimation = "";
35655
+ }, PlSnackbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c5869652"]]), snackbarAnimation = "";
35654
35656
  let snackbarId = 0;
35655
35657
  const renderSnackbar = function(g) {
35656
35658
  const { icon: y, color: j, title: z, message: L, button: V, action: re, buttonAdd: ae, actionAdd: le } = g;
@@ -35659,25 +35661,49 @@ const renderSnackbar = function(g) {
35659
35661
  de.id = "snackbar", document.body.appendChild(de);
35660
35662
  }
35661
35663
  const ie = document.createElement("div");
35662
- ie.id = `snackbar-${snackbarId}`, ie.classList.add("slideIn-animation"), document.getElementById("snackbar").appendChild(ie);
35663
- const pe = createApp({
35664
+ return ie.id = `snackbar-${snackbarId}`, ie.classList.add("slideIn-animation"), document.getElementById("snackbar").appendChild(ie), createApp({
35664
35665
  render() {
35665
35666
  return h$2(TransitionGroup, { name: "pl-snackbar-fade", mode: "out-in" }, () => [
35666
- h$2(PlSnackbar, { icon: y, color: j, title: z, message: L, button: V, action: re, buttonAdd: ae, actionAdd: le })
35667
+ h$2(PlSnackbar, {
35668
+ id: snackbarId,
35669
+ icon: y,
35670
+ color: j,
35671
+ title: z,
35672
+ message: L,
35673
+ button: V,
35674
+ action: re,
35675
+ buttonAdd: ae,
35676
+ actionAdd: le
35677
+ })
35667
35678
  ]);
35668
35679
  }
35680
+ }).mount(`#snackbar-${snackbarId}`), snackbarId++, {
35681
+ id: ie.id,
35682
+ close: () => {
35683
+ closeSnackbar(ie.id);
35684
+ }
35685
+ };
35686
+ };
35687
+ function removeSnackbar(g) {
35688
+ g.classList.remove("slideIn-animation"), g.classList.add("fadeOut-animation"), g.addEventListener("animationend", () => {
35689
+ g && g.remove();
35669
35690
  });
35670
- pe.mount(`#snackbar-${snackbarId}`), setTimeout(() => {
35671
- ie.classList.remove("slideIn-animation"), ie.classList.add("fadeOut-animation"), ie.addEventListener("animationend", () => {
35672
- pe.unmount(), ie.remove();
35673
- });
35674
- }, 4200), snackbarId++;
35691
+ }
35692
+ const closeSnackbar = (g) => {
35693
+ const y = document.getElementById(g);
35694
+ removeSnackbar(y);
35695
+ }, closeAllSnackbar = () => {
35696
+ const g = document.getElementById("snackbar");
35697
+ removeSnackbar(g);
35675
35698
  }, PlNotification = {
35676
35699
  success: (g) => renderSnackbar({ icon: "CircleCheck24", color: "#0CA31B", ...g }),
35677
35700
  error: (g) => renderSnackbar({ icon: "WarningThree24", color: "#ED3636", ...g }),
35678
35701
  warning: (g) => renderSnackbar({ icon: "WarningTwo24", color: "#FF7D1F", ...g }),
35679
35702
  info: (g) => renderSnackbar({ icon: "Info24", color: "white", ...g }),
35680
- custom: renderSnackbar
35703
+ custom: renderSnackbar,
35704
+ closeAll: () => {
35705
+ closeAllSnackbar();
35706
+ }
35681
35707
  }, pinia = createPinia(), PlPlugin = {
35682
35708
  install(g) {
35683
35709
  var y, j, z, L, V, re, ae, le, ue, ie, pe, de, Ne, Ie, he, Oe, Ce, Ve, $e, xe, Et, qe, Dt, kt, vn, Lt, Mn, En, bn, Sn, An, jn, Tn, zn, Nn, wn;