@factoringplus/pl-components-pack-v3 0.5.19-pre-01 → 0.5.19-pre-03

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.
@@ -628,12 +628,12 @@ function memoize(func, resolver) {
628
628
  throw new TypeError(FUNC_ERROR_TEXT$1);
629
629
  }
630
630
  var memoized = function() {
631
- var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
632
- if (cache.has(key)) {
633
- return cache.get(key);
631
+ var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache2 = memoized.cache;
632
+ if (cache2.has(key)) {
633
+ return cache2.get(key);
634
634
  }
635
635
  var result = func.apply(this, args);
636
- memoized.cache = cache.set(key, result) || cache;
636
+ memoized.cache = cache2.set(key, result) || cache2;
637
637
  return result;
638
638
  };
639
639
  memoized.cache = new (memoize.Cache || MapCache)();
@@ -643,12 +643,12 @@ memoize.Cache = MapCache;
643
643
  var MAX_MEMOIZE_SIZE = 500;
644
644
  function memoizeCapped(func) {
645
645
  var result = memoize(func, function(key) {
646
- if (cache.size === MAX_MEMOIZE_SIZE) {
647
- cache.clear();
646
+ if (cache2.size === MAX_MEMOIZE_SIZE) {
647
+ cache2.clear();
648
648
  }
649
649
  return key;
650
650
  });
651
- var cache = result.cache;
651
+ var cache2 = result.cache;
652
652
  return result;
653
653
  }
654
654
  var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
@@ -1062,8 +1062,8 @@ function arraySome(array4, predicate) {
1062
1062
  }
1063
1063
  return false;
1064
1064
  }
1065
- function cacheHas(cache, key) {
1066
- return cache.has(key);
1065
+ function cacheHas(cache2, key) {
1066
+ return cache2.has(key);
1067
1067
  }
1068
1068
  var COMPARE_PARTIAL_FLAG$5 = 1, COMPARE_UNORDERED_FLAG$3 = 2;
1069
1069
  function equalArrays(array4, other, bitmask, customizer, equalFunc, stack) {
@@ -2025,10 +2025,10 @@ const toRawType = (value) => {
2025
2025
  return toTypeString(value).slice(8, -1);
2026
2026
  };
2027
2027
  const cacheStringFunction = (fn2) => {
2028
- const cache = /* @__PURE__ */ Object.create(null);
2028
+ const cache2 = /* @__PURE__ */ Object.create(null);
2029
2029
  return (str2) => {
2030
- const hit = cache[str2];
2031
- return hit || (cache[str2] = fn2(str2));
2030
+ const hit = cache2[str2];
2031
+ return hit || (cache2[str2] = fn2(str2));
2032
2032
  };
2033
2033
  };
2034
2034
  const camelizeRE = /-(\w)/g;
@@ -25865,9 +25865,155 @@ const _sfc_main$x = {
25865
25865
  }
25866
25866
  };
25867
25867
  var PlButton = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-3bed8894"]]);
25868
+ const cache = {};
25869
+ function filterAttrs(attrs) {
25870
+ return Object.keys(attrs).reduce((result, key) => {
25871
+ if (attrs[key] !== false && attrs[key] !== null && attrs[key] !== void 0) {
25872
+ result[key] = attrs[key];
25873
+ }
25874
+ return result;
25875
+ }, {});
25876
+ }
25877
+ const InlineSvg = {
25878
+ name: "InlineSvg",
25879
+ inheritAttrs: false,
25880
+ render() {
25881
+ if (!this.svgElSource) {
25882
+ return null;
25883
+ }
25884
+ return h$2("svg", Object.assign({}, this.getSvgAttrs(this.svgElSource), filterAttrs(this.$attrs), { innerHTML: this.getSvgContent(this.svgElSource) }));
25885
+ },
25886
+ props: {
25887
+ src: {
25888
+ type: String,
25889
+ required: true
25890
+ },
25891
+ title: {
25892
+ type: String
25893
+ },
25894
+ transformSource: {
25895
+ type: Function,
25896
+ default: (svg) => svg
25897
+ },
25898
+ keepDuringLoading: {
25899
+ type: Boolean,
25900
+ default: true
25901
+ }
25902
+ },
25903
+ emits: ["loaded", "unloaded", "error"],
25904
+ data() {
25905
+ return {
25906
+ svgElSource: null
25907
+ };
25908
+ },
25909
+ watch: {
25910
+ src(newValue) {
25911
+ this.getSource(newValue);
25912
+ }
25913
+ },
25914
+ mounted() {
25915
+ this.getSource(this.src);
25916
+ },
25917
+ methods: {
25918
+ getSvgAttrs(svgEl) {
25919
+ let svgAttrs = {};
25920
+ const attrs = svgEl.attributes;
25921
+ if (!attrs) {
25922
+ return svgAttrs;
25923
+ }
25924
+ for (let i2 = attrs.length - 1; i2 >= 0; i2--) {
25925
+ svgAttrs[attrs[i2].name] = attrs[i2].value;
25926
+ }
25927
+ return svgAttrs;
25928
+ },
25929
+ getSvgContent(svgEl) {
25930
+ svgEl = svgEl.cloneNode(true);
25931
+ svgEl = this.transformSource(svgEl);
25932
+ if (this.title) {
25933
+ setTitle(svgEl, this.title);
25934
+ }
25935
+ return svgEl.innerHTML;
25936
+ },
25937
+ getSource(src) {
25938
+ if (!cache[src]) {
25939
+ cache[src] = this.download(src);
25940
+ }
25941
+ if (this.svgElSource && cache[src].getIsPending() && !this.keepDuringLoading) {
25942
+ this.svgElSource = null;
25943
+ this.$emit("unloaded");
25944
+ }
25945
+ cache[src].then((svg) => {
25946
+ this.svgElSource = svg;
25947
+ this.$nextTick(() => {
25948
+ this.$emit("loaded", this.$el);
25949
+ });
25950
+ }).catch((err) => {
25951
+ if (this.svgElSource) {
25952
+ this.svgElSource = null;
25953
+ this.$emit("unloaded");
25954
+ }
25955
+ delete cache[src];
25956
+ this.$emit("error", err);
25957
+ });
25958
+ },
25959
+ download(url2) {
25960
+ return makePromiseState(new Promise((resolve, reject) => {
25961
+ const request2 = new XMLHttpRequest();
25962
+ request2.open("GET", url2, true);
25963
+ request2.onload = () => {
25964
+ if (request2.status >= 200 && request2.status < 400) {
25965
+ try {
25966
+ const parser = new DOMParser();
25967
+ const result = parser.parseFromString(request2.responseText, "text/xml");
25968
+ let svgEl = result.getElementsByTagName("svg")[0];
25969
+ if (svgEl) {
25970
+ resolve(svgEl);
25971
+ } else {
25972
+ reject(new Error('Loaded file is not valid SVG"'));
25973
+ }
25974
+ } catch (e2) {
25975
+ reject(e2);
25976
+ }
25977
+ } else {
25978
+ reject(new Error("Error loading SVG"));
25979
+ }
25980
+ };
25981
+ request2.onerror = reject;
25982
+ request2.send();
25983
+ }));
25984
+ }
25985
+ }
25986
+ };
25987
+ function setTitle(svg, title) {
25988
+ const titleTags = svg.getElementsByTagName("title");
25989
+ if (titleTags.length) {
25990
+ titleTags[0].textContent = title;
25991
+ } else {
25992
+ const titleEl = document.createElementNS("http://www.w3.org/2000/svg", "title");
25993
+ titleEl.textContent = title;
25994
+ svg.insertBefore(titleEl, svg.firstChild);
25995
+ }
25996
+ }
25997
+ function makePromiseState(promise) {
25998
+ if (promise.getIsPending)
25999
+ return promise;
26000
+ let isPending = true;
26001
+ let result = promise.then((v2) => {
26002
+ isPending = false;
26003
+ return v2;
26004
+ }, (e2) => {
26005
+ isPending = false;
26006
+ throw e2;
26007
+ });
26008
+ result.getIsPending = function getIsPending() {
26009
+ return isPending;
26010
+ };
26011
+ return result;
26012
+ }
25868
26013
  const PlButtonPlugin = {
25869
26014
  install(app) {
25870
26015
  app.component("PlButton", PlButton);
26016
+ app.component("inline-svg", InlineSvg);
25871
26017
  }
25872
26018
  };
25873
26019
  var _imports_0$8 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNOC43NDkwMiAyQzguNzQ5MDIgMS41ODU3OSA4LjQxMzI0IDEuMjUgNy45OTkwMiAxLjI1QzcuNTg0ODEgMS4yNSA3LjI0OTAyIDEuNTg1NzkgNy4yNDkwMiAyVjMuMjVINC45OTkwMkMzLjQ3OTgxIDMuMjUgMi4yNDkwMiA0LjQ4MDc5IDIuMjQ5MDIgNlY5VjE5QzIuMjQ5MDIgMjAuNTE5MiAzLjQ3OTg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2NkMxNi40Mzg5IDExLjk3NjYgMTUuOTkxMiAxMi40MjQzIDE1Ljk5MTIgMTIuOTc2NkMxNS45OTEyIDEzLjUyODggMTYuNDM4OSAxMy45NzY2IDE2Ljk5MTIgMTMuOTc2NloiIGZpbGw9IiM2NTY1NjciLz4NCjwvc3ZnPg0K";
@@ -25961,7 +26107,7 @@ var objectSupport$1 = { exports: {} };
25961
26107
  })(objectSupport$1);
25962
26108
  var objectSupport = objectSupport$1.exports;
25963
26109
  var plDatePickerRange_vue_vue_type_style_index_0_scoped_true_lang = "";
25964
- const _withScopeId = (n2) => (pushScopeId("data-v-61425312"), n2 = n2(), popScopeId(), n2);
26110
+ const _withScopeId = (n2) => (pushScopeId("data-v-1f70af78"), n2 = n2(), popScopeId(), n2);
25965
26111
  const _hoisted_1$v = ["id"];
25966
26112
  const _hoisted_2$r = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("img", {
25967
26113
  class: "date-picker__img",
@@ -26536,7 +26682,7 @@ const _sfc_main$w = {
26536
26682
  };
26537
26683
  }
26538
26684
  };
26539
- var PlDatePickerRange = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-61425312"]]);
26685
+ var PlDatePickerRange = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-1f70af78"]]);
26540
26686
  var datePicker = "";
26541
26687
  var scrollbar = "";
26542
26688
  var popper = "";
@@ -27335,8 +27481,8 @@ var lodash = { exports: {} };
27335
27481
  return object4[key];
27336
27482
  });
27337
27483
  }
27338
- function cacheHas2(cache, key) {
27339
- return cache.has(key);
27484
+ function cacheHas2(cache2, key) {
27485
+ return cache2.has(key);
27340
27486
  }
27341
27487
  function charsStartIndex(strSymbols, chrSymbols) {
27342
27488
  var index = -1, length = strSymbols.length;
@@ -28109,8 +28255,8 @@ var lodash = { exports: {} };
28109
28255
  if (!(seen ? cacheHas2(seen, computed2) : includes2(result2, computed2, comparator))) {
28110
28256
  othIndex = othLength;
28111
28257
  while (--othIndex) {
28112
- var cache = caches[othIndex];
28113
- if (!(cache ? cacheHas2(cache, computed2) : includes2(arrays[othIndex], computed2, comparator))) {
28258
+ var cache2 = caches[othIndex];
28259
+ if (!(cache2 ? cacheHas2(cache2, computed2) : includes2(arrays[othIndex], computed2, comparator))) {
28114
28260
  continue outer;
28115
28261
  }
28116
28262
  }
@@ -29662,12 +29808,12 @@ var lodash = { exports: {} };
29662
29808
  }
29663
29809
  function memoizeCapped2(func) {
29664
29810
  var result2 = memoize2(func, function(key) {
29665
- if (cache.size === MAX_MEMOIZE_SIZE2) {
29666
- cache.clear();
29811
+ if (cache2.size === MAX_MEMOIZE_SIZE2) {
29812
+ cache2.clear();
29667
29813
  }
29668
29814
  return key;
29669
29815
  });
29670
- var cache = result2.cache;
29816
+ var cache2 = result2.cache;
29671
29817
  return result2;
29672
29818
  }
29673
29819
  function mergeData(data2, source2) {
@@ -30621,12 +30767,12 @@ var lodash = { exports: {} };
30621
30767
  throw new TypeError2(FUNC_ERROR_TEXT2);
30622
30768
  }
30623
30769
  var memoized = function() {
30624
- var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
30625
- if (cache.has(key)) {
30626
- return cache.get(key);
30770
+ var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache2 = memoized.cache;
30771
+ if (cache2.has(key)) {
30772
+ return cache2.get(key);
30627
30773
  }
30628
30774
  var result2 = func.apply(this, args);
30629
- memoized.cache = cache.set(key, result2) || cache;
30775
+ memoized.cache = cache2.set(key, result2) || cache2;
30630
30776
  return result2;
30631
30777
  };
30632
30778
  memoized.cache = new (memoize2.Cache || MapCache2)();
@@ -39129,7 +39275,7 @@ const _sfc_main$e = {
39129
39275
  };
39130
39276
  }
39131
39277
  };
39132
- var PlDatePickerPlus = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-0a21c87c"]]);
39278
+ var PlDatePickerPlus = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-bb3c925e"]]);
39133
39279
  const placeholders = {
39134
39280
  name: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0424\u0418\u041E \u043F\u043E\u043B\u043D\u043E\u0441\u0442\u044C\u044E",
39135
39281
  nationality: "\u0423\u043A\u0430\u0436\u0438\u0442\u0435 \u0433\u0440\u0430\u0436\u0434\u0430\u043D\u0441\u0442\u0432\u043E",