@factoringplus/pl-components-pack-v3 1.8.30-pre-01-dropdown → 1.8.30-pre-02-dropdown
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/dist/{crypto-pro-7135afb7.cjs → crypto-pro-de6511d7.cjs} +1 -1
- package/dist/{crypto-pro-9d4d31f6.js → crypto-pro-e24c95ce.js} +1 -1
- package/dist/{entry-9b1f6a7f.js → entry-af29ed82.js} +42 -38
- package/dist/{entry-dc0225c6.cjs → entry-f435b7de.cjs} +1 -1
- package/dist/pl-components-pack-v3.cjs.js +1 -1
- package/dist/pl-components-pack-v3.es.js +1 -1
- package/dist/src/components/shared/pl-dropdown/pl-dropdown.vue.d.ts +4 -0
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";const entry=require("./entry-
|
1
|
+
"use strict";const entry=require("./entry-f435b7de.cjs");function _mergeNamespaces(l,t){for(var i=0;i<t.length;i++){const s=t[i];if(typeof s!="string"&&!Array.isArray(s)){for(const d in s)if(d!=="default"&&!(d in l)){const c=Object.getOwnPropertyDescriptor(s,d);c&&Object.defineProperty(l,d,c.get?c:{enumerable:!0,get:()=>s[d]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var cryptoPro$2={exports:{}};(function(module,exports){(function(t,i){module.exports=i()})(window,function(){return function(l){var t={};function i(s){if(t[s])return t[s].exports;var d=t[s]={i:s,l:!1,exports:{}};return l[s].call(d.exports,d,d.exports,i),d.l=!0,d.exports}return i.m=l,i.c=t,i.d=function(s,d,c){i.o(s,d)||Object.defineProperty(s,d,{enumerable:!0,get:c})},i.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},i.t=function(s,d){if(d&1&&(s=i(s)),d&8||d&4&&typeof s=="object"&&s&&s.__esModule)return s;var c=Object.create(null);if(i.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:s}),d&2&&typeof s!="string")for(var C in s)i.d(c,C,(function(p){return s[p]}).bind(null,C));return c},i.n=function(s){var d=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(d,"a",d),d},i.o=function(s,d){return Object.prototype.hasOwnProperty.call(s,d)},i.p="",i(i.s="./crypto-pro.ts")}({"../node_modules/base64-js/index.js":function(l,t,i){t.byteLength=o,t.toByteArray=T,t.fromByteArray=S;for(var s=[],d=[],c=typeof Uint8Array<"u"?Uint8Array:Array,C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,g=C.length;p<g;++p)s[p]=C[p],d[C.charCodeAt(p)]=p;d["-".charCodeAt(0)]=62,d["_".charCodeAt(0)]=63;function f(O){var I=O.length;if(I%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var M=O.indexOf("=");M===-1&&(M=I);var w=M===I?0:4-M%4;return[M,w]}function o(O){var I=f(O),M=I[0],w=I[1];return(M+w)*3/4-w}function h(O,I,M){return(I+M)*3/4-M}function T(O){var I,M=f(O),w=M[0],N=M[1],x=new c(h(O,w,N)),U=0,k=N>0?w-4:w,b;for(b=0;b<k;b+=4)I=d[O.charCodeAt(b)]<<18|d[O.charCodeAt(b+1)]<<12|d[O.charCodeAt(b+2)]<<6|d[O.charCodeAt(b+3)],x[U++]=I>>16&255,x[U++]=I>>8&255,x[U++]=I&255;return N===2&&(I=d[O.charCodeAt(b)]<<2|d[O.charCodeAt(b+1)]>>4,x[U++]=I&255),N===1&&(I=d[O.charCodeAt(b)]<<10|d[O.charCodeAt(b+1)]<<4|d[O.charCodeAt(b+2)]>>2,x[U++]=I>>8&255,x[U++]=I&255),x}function R(O){return s[O>>18&63]+s[O>>12&63]+s[O>>6&63]+s[O&63]}function P(O,I,M){for(var w,N=[],x=I;x<M;x+=3)w=(O[x]<<16&16711680)+(O[x+1]<<8&65280)+(O[x+2]&255),N.push(R(w));return N.join("")}function S(O){for(var I,M=O.length,w=M%3,N=[],x=16383,U=0,k=M-w;U<k;U+=x)N.push(P(O,U,U+x>k?k:U+x));return w===1?(I=O[M-1],N.push(s[I>>2]+s[I<<4&63]+"==")):w===2&&(I=(O[M-2]<<8)+O[M-1],N.push(s[I>>10]+s[I>>4&63]+s[I<<2&63]+"=")),N.join("")}},"../node_modules/buffer/index.js":function(l,t,i){(function(s){/*!
|
2
2
|
* The buffer module from node.js, for the browser.
|
3
3
|
*
|
4
4
|
* @author Feross Aboukhadijeh <http://feross.org>
|
@@ -28543,7 +28543,8 @@ const U9 = {
|
|
28543
28543
|
idProp: {},
|
28544
28544
|
inputElement: {},
|
28545
28545
|
mobile: { type: Boolean, default: !1 },
|
28546
|
-
select: { type: Boolean, default: !1 }
|
28546
|
+
select: { type: Boolean, default: !1 },
|
28547
|
+
position: { default: "" }
|
28547
28548
|
},
|
28548
28549
|
setup(e) {
|
28549
28550
|
const { width: t, height: n } = nr(), r = e;
|
@@ -28551,79 +28552,82 @@ const U9 = {
|
|
28551
28552
|
() => r.modelValue,
|
28552
28553
|
() => {
|
28553
28554
|
et(() => {
|
28554
|
-
|
28555
|
+
g(), o();
|
28555
28556
|
});
|
28556
28557
|
}
|
28557
28558
|
);
|
28558
28559
|
const o = () => {
|
28559
28560
|
if (!r.select)
|
28560
28561
|
return;
|
28561
|
-
const
|
28562
|
-
|
28563
|
-
}, a = O(!1)
|
28562
|
+
const y = document.getElementById(`${r.idProp}`).getBoundingClientRect().width + "px", M = document.getElementById(`${r.idProp}-popup`);
|
28563
|
+
M && (M.style.maxWidth = y);
|
28564
|
+
}, a = O(!1);
|
28564
28565
|
gd && et(() => {
|
28565
|
-
var
|
28566
|
-
const
|
28566
|
+
var v, h;
|
28567
|
+
const y = ((v = document.getElementById("pl-scrollbar")) == null ? void 0 : v.getElementsByClassName("pl-scrollbar__wrap")[0]) || ((h = document.querySelector('[role="dialog"]')) == null ? void 0 : h.parentElement), M = DB(r.inputElement);
|
28567
28568
|
if (me(
|
28568
|
-
() =>
|
28569
|
-
(
|
28570
|
-
a.value =
|
28569
|
+
() => M.value,
|
28570
|
+
(N) => {
|
28571
|
+
a.value = M.value, N && et(() => {
|
28571
28572
|
o();
|
28572
28573
|
});
|
28573
28574
|
}
|
28574
|
-
),
|
28575
|
-
const { height:
|
28575
|
+
), y && y.contains(document.getElementById(r.idProp))) {
|
28576
|
+
const { height: N, width: D } = Ng(y), { isScrolling: x, y: I } = yM(y);
|
28576
28577
|
me(
|
28577
|
-
() => [
|
28578
|
+
() => [N.value, D.value, x.value],
|
28578
28579
|
() => {
|
28579
|
-
|
28580
|
+
g();
|
28580
28581
|
}
|
28581
28582
|
), me(
|
28582
|
-
() =>
|
28583
|
+
() => I.value,
|
28583
28584
|
() => {
|
28584
|
-
|
28585
|
+
M.value && (c.value = I.value);
|
28585
28586
|
}
|
28586
|
-
)
|
28587
|
-
l.value = A;
|
28588
|
-
});
|
28587
|
+
);
|
28589
28588
|
}
|
28590
28589
|
});
|
28591
|
-
const
|
28592
|
-
() => `top: ${
|
28593
|
-
), { isScrolling:
|
28590
|
+
const l = O(0), u = O(0), c = O(0), d = z(
|
28591
|
+
() => `top: ${l.value - c.value}px; left: ${u.value}px`
|
28592
|
+
), { isScrolling: f } = yM(window);
|
28594
28593
|
me(
|
28595
|
-
() => [n.value, t.value,
|
28594
|
+
() => [n.value, t.value, f.value],
|
28596
28595
|
() => {
|
28597
|
-
|
28596
|
+
g();
|
28598
28597
|
}
|
28599
28598
|
);
|
28600
|
-
const
|
28599
|
+
const g = () => {
|
28601
28600
|
if (r.mobile || !a.value || !r.modelValue)
|
28602
28601
|
return;
|
28603
|
-
const
|
28604
|
-
|
28605
|
-
const
|
28606
|
-
if (!
|
28602
|
+
const y = document.getElementById(r.idProp), M = y.getBoundingClientRect(), v = y.querySelector('[role="label-container"]'), h = y.querySelector('[role="helpertext-container"]'), N = v ? v.offsetHeight : 0, D = h ? h.offsetHeight : 0;
|
28603
|
+
l.value = M.y + M.height + window.scrollY + 4 - D, u.value = M.x, et(() => {
|
28604
|
+
const x = document.getElementById(`${r.idProp}-popup`);
|
28605
|
+
if (!x)
|
28607
28606
|
return;
|
28608
|
-
const
|
28609
|
-
|
28610
|
-
|
28607
|
+
const I = x.getBoundingClientRect();
|
28608
|
+
if (u.value = M.x - (I.width - M.width) / 2, r.position ? r.position === "left" ? u.value = M.x : r.position === "right" && (u.value = M.x + M.width - I.width) : u.value = M.x - (I.width - M.width) / 2, I.bottom > n.value + c.value ? l.value = l.value - I.height - M.height - 8 + D + N : l.value = M.y + M.height + window.scrollY + 4 - D + c.value, !r.position) {
|
28609
|
+
const w = window.innerWidth - I.right;
|
28610
|
+
et(() => {
|
28611
|
+
const b = document.getElementById(`${r.idProp}-popup`).getBoundingClientRect();
|
28612
|
+
w < 0 ? u.value = M.x - I.width + M.width : b.left < 0 && (u.value = M.x);
|
28613
|
+
});
|
28614
|
+
}
|
28611
28615
|
et(() => {
|
28612
|
-
const
|
28613
|
-
|
28616
|
+
const w = y.getBoundingClientRect().width, A = y.classList.contains("pl-button-dropdown__wrapper");
|
28617
|
+
w < 240 && !A && (u.value = M.x + M.width - I.width);
|
28614
28618
|
});
|
28615
28619
|
});
|
28616
28620
|
};
|
28617
|
-
return (
|
28621
|
+
return (y, M) => (_(), oe(Kn, { name: "pl-dropdown-fade" }, {
|
28618
28622
|
default: X(() => [
|
28619
28623
|
r.modelValue && a.value ? (_(), S("div", {
|
28620
28624
|
key: 0,
|
28621
28625
|
id: `${r.idProp}-popup`,
|
28622
28626
|
class: "pl-dropdown-wrapper",
|
28623
28627
|
"data-testid": "dropdown",
|
28624
|
-
style: We(
|
28628
|
+
style: We(d.value)
|
28625
28629
|
}, [
|
28626
|
-
xe(
|
28630
|
+
xe(y.$slots, "default")
|
28627
28631
|
], 12, Y9)) : W("", !0)
|
28628
28632
|
]),
|
28629
28633
|
_: 3
|
@@ -34623,7 +34627,7 @@ const xG = {
|
|
34623
34627
|
try {
|
34624
34628
|
N.value = await import(
|
34625
34629
|
/* @vite-ignore */
|
34626
|
-
"./crypto-pro-
|
34630
|
+
"./crypto-pro-e24c95ce.js"
|
34627
34631
|
).then((I) => I.c);
|
34628
34632
|
} catch (I) {
|
34629
34633
|
return console.warn("crypto-pro не установлен или не доступен:", I), !1;
|