@factoringplus/pl-components-pack-v3 0.11.0 → 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
- "0fbc7555": xe.value,
19014
- bb227d16: Et.value
19013
+ "5191b125": xe.value,
19014
+ "7b3be145": Et.value
19015
19015
  }));
19016
19016
  const L = computed$1({
19017
19017
  get: () => z.modelValue,
@@ -19029,7 +19029,7 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), _hoisted_
19029
19029
  }, 300);
19030
19030
  }, Ce = (Mn = null) => {
19031
19031
  var bn;
19032
- const En = (bn = Mn.target.closest("[id]")) == null ? void 0 : bn.id;
19032
+ const En = (bn = Mn == null ? void 0 : Mn.target.closest("[id]")) == null ? void 0 : bn.id;
19033
19033
  En && En !== Ie || Ne.value || (ue.value ? he() : Oe());
19034
19034
  }, Ve = computed$1(() => ({
19035
19035
  "--dialog-container-width": /px|rem|em|%/.test(pe.value) ? pe.value : `${pe.value}px`,
@@ -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_fff10204_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"
@@ -35573,10 +35576,14 @@ const PlBtn = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render],
35573
35576
  default: ""
35574
35577
  },
35575
35578
  action: {
35576
- type: Function
35579
+ type: Function,
35580
+ default: () => {
35581
+ }
35577
35582
  },
35578
35583
  actionAdd: {
35579
- type: Function
35584
+ type: Function,
35585
+ default: () => {
35586
+ }
35580
35587
  },
35581
35588
  message: {
35582
35589
  type: String,
@@ -35645,7 +35652,7 @@ const PlBtn = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render],
35645
35652
  _: 1
35646
35653
  }));
35647
35654
  }
35648
- }, PlSnackbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fff10204"]]), snackbarAnimation = "";
35655
+ }, PlSnackbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c5869652"]]), snackbarAnimation = "";
35649
35656
  let snackbarId = 0;
35650
35657
  const renderSnackbar = function(g) {
35651
35658
  const { icon: y, color: j, title: z, message: L, button: V, action: re, buttonAdd: ae, actionAdd: le } = g;
@@ -35654,25 +35661,49 @@ const renderSnackbar = function(g) {
35654
35661
  de.id = "snackbar", document.body.appendChild(de);
35655
35662
  }
35656
35663
  const ie = document.createElement("div");
35657
- ie.id = `snackbar-${snackbarId}`, ie.classList.add("slideIn-animation"), document.getElementById("snackbar").appendChild(ie);
35658
- const pe = createApp({
35664
+ return ie.id = `snackbar-${snackbarId}`, ie.classList.add("slideIn-animation"), document.getElementById("snackbar").appendChild(ie), createApp({
35659
35665
  render() {
35660
35666
  return h$2(TransitionGroup, { name: "pl-snackbar-fade", mode: "out-in" }, () => [
35661
- 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
+ })
35662
35678
  ]);
35663
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();
35664
35690
  });
35665
- pe.mount(`#snackbar-${snackbarId}`), setTimeout(() => {
35666
- ie.classList.remove("slideIn-animation"), ie.classList.add("fadeOut-animation"), ie.addEventListener("animationend", () => {
35667
- pe.unmount(), ie.remove();
35668
- });
35669
- }, 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);
35670
35698
  }, PlNotification = {
35671
35699
  success: (g) => renderSnackbar({ icon: "CircleCheck24", color: "#0CA31B", ...g }),
35672
35700
  error: (g) => renderSnackbar({ icon: "WarningThree24", color: "#ED3636", ...g }),
35673
35701
  warning: (g) => renderSnackbar({ icon: "WarningTwo24", color: "#FF7D1F", ...g }),
35674
35702
  info: (g) => renderSnackbar({ icon: "Info24", color: "white", ...g }),
35675
- custom: renderSnackbar
35703
+ custom: renderSnackbar,
35704
+ closeAll: () => {
35705
+ closeAllSnackbar();
35706
+ }
35676
35707
  }, pinia = createPinia(), PlPlugin = {
35677
35708
  install(g) {
35678
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;