@factoringplus/pl-components-pack-v3 1.2.12-pre-01 → 1.2.12-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.
|
@@ -24083,7 +24083,7 @@ const G6 = /* @__PURE__ */ Q("span", { class: "pl-currency__rub-icon" }, "₽",
|
|
|
24083
24083
|
setup(e) {
|
|
24084
24084
|
const t = e, n = k(!1), r = k(!1), o = k(), s = k(), i = k(0), u = k(0), c = L(() => t.trigger === "hover" && h.value > 730), d = L(() => t.trigger === "click" || h.value <= 730), { isOutside: v } = y6(o), f = () => {
|
|
24085
24085
|
const j = o.value.getBoundingClientRect(), w = j.left + j.width / 2, I = j.top + j.height / 2, P = document.elementsFromPoint(w, I)[0];
|
|
24086
|
-
return !
|
|
24086
|
+
return !o.value.contains(P);
|
|
24087
24087
|
};
|
|
24088
24088
|
ge(
|
|
24089
24089
|
() => v.value,
|
|
@@ -24648,7 +24648,7 @@ const Gr = /* @__PURE__ */ $n(bF), IF = ["id"], TF = { class: "pl-autocomplete__
|
|
|
24648
24648
|
setup(e, { emit: t }) {
|
|
24649
24649
|
var te;
|
|
24650
24650
|
Va((H) => ({
|
|
24651
|
-
"
|
|
24651
|
+
"6dd5e7d9": n.width
|
|
24652
24652
|
}));
|
|
24653
24653
|
const n = e, r = `id-${Gr()}`, o = t, s = k([]);
|
|
24654
24654
|
if (n.prop) {
|
|
@@ -24857,7 +24857,7 @@ const Gr = /* @__PURE__ */ $n(bF), IF = ["id"], TF = { class: "pl-autocomplete__
|
|
|
24857
24857
|
};
|
|
24858
24858
|
}
|
|
24859
24859
|
});
|
|
24860
|
-
const SF = /* @__PURE__ */ Kn(OF, [["__scopeId", "data-v-
|
|
24860
|
+
const SF = /* @__PURE__ */ Kn(OF, [["__scopeId", "data-v-93c0651d"]]), zF = {
|
|
24861
24861
|
install(e) {
|
|
24862
24862
|
e.component("PlAutocomplete", SF);
|
|
24863
24863
|
}
|
|
@@ -30074,7 +30074,6 @@ const c7 = {
|
|
|
30074
30074
|
n.buttons ? (b(), S("div", h7, [
|
|
30075
30075
|
ae(dl, {
|
|
30076
30076
|
"full-width": "",
|
|
30077
|
-
disabled: !r.value.length,
|
|
30078
30077
|
type: "secondary",
|
|
30079
30078
|
size: "small",
|
|
30080
30079
|
onClick: c[0] || (c[0] = (v) => i("reset"))
|
|
@@ -30083,10 +30082,9 @@ const c7 = {
|
|
|
30083
30082
|
tt("Сбросить")
|
|
30084
30083
|
]),
|
|
30085
30084
|
_: 1
|
|
30086
|
-
}
|
|
30085
|
+
}),
|
|
30087
30086
|
ae(dl, {
|
|
30088
30087
|
"full-width": "",
|
|
30089
|
-
disabled: !r.value.length,
|
|
30090
30088
|
size: "small",
|
|
30091
30089
|
onClick: o
|
|
30092
30090
|
}, {
|
|
@@ -30094,7 +30092,7 @@ const c7 = {
|
|
|
30094
30092
|
tt("Применить")
|
|
30095
30093
|
]),
|
|
30096
30094
|
_: 1
|
|
30097
|
-
}
|
|
30095
|
+
})
|
|
30098
30096
|
])) : J("", !0)
|
|
30099
30097
|
], 14, v7)) : J("", !0)
|
|
30100
30098
|
]),
|
|
@@ -30137,10 +30135,10 @@ const c7 = {
|
|
|
30137
30135
|
clearable: { type: Boolean, default: !0 },
|
|
30138
30136
|
buttons: { type: Boolean, default: !1 }
|
|
30139
30137
|
},
|
|
30140
|
-
emits: ["update:modelValue", "change"],
|
|
30138
|
+
emits: ["update:modelValue", "change", "reset"],
|
|
30141
30139
|
setup(e, { emit: t }) {
|
|
30142
30140
|
Va((O) => ({
|
|
30143
|
-
|
|
30141
|
+
"795289ac": n.width
|
|
30144
30142
|
}));
|
|
30145
30143
|
const n = e, r = `id-${Gr()}`, o = k([]);
|
|
30146
30144
|
if (n.prop) {
|
|
@@ -30182,13 +30180,16 @@ const c7 = {
|
|
|
30182
30180
|
const M = (O) => JSON.stringify(
|
|
30183
30181
|
O.sort((P, z) => P.value < z.value ? -1 : P.value > z.value ? 1 : 0)
|
|
30184
30182
|
), h = () => {
|
|
30185
|
-
i.value = !1, M(d.value) !== M(j.value) && (document.getElementById(r).dispatchEvent(new Event("change")), _("change"));
|
|
30183
|
+
i.value = !1, M(d.value) !== M(j.value) && (document.getElementById(r).dispatchEvent(new Event("change")), _("change", j.value));
|
|
30186
30184
|
}, m = k(0), N = k(0), D = L(() => `top: ${m.value}px; left: ${N.value}px`), A = () => {
|
|
30187
30185
|
if (!i.value)
|
|
30188
30186
|
return;
|
|
30189
30187
|
const O = document.getElementById(
|
|
30190
30188
|
`pl-multi-select__select-container-${r}`
|
|
30191
|
-
)
|
|
30189
|
+
);
|
|
30190
|
+
if (!O)
|
|
30191
|
+
return;
|
|
30192
|
+
const P = O.getBoundingClientRect(), z = O.querySelector(".pl-multi-select__label-container"), C = O.querySelector(
|
|
30192
30193
|
".pl-multi-select__helpertext-container"
|
|
30193
30194
|
), F = z ? z.offsetHeight : -4, U = C ? C.offsetHeight : -4;
|
|
30194
30195
|
m.value = P.height - U - 4, He(() => {
|
|
@@ -30199,7 +30200,7 @@ const c7 = {
|
|
|
30199
30200
|
te.bottom > u.value ? m.value = m.value - te.height - (P.height - F - U) : m.value = P.height - U - 4;
|
|
30200
30201
|
});
|
|
30201
30202
|
}, x = () => {
|
|
30202
|
-
n.disabled || (i.value = !i.value);
|
|
30203
|
+
n.disabled || (i.value = !i.value, i.value || (j.value = v(d.value)));
|
|
30203
30204
|
}, _ = t, j = L({
|
|
30204
30205
|
get: () => n.modelValue,
|
|
30205
30206
|
set: (O) => {
|
|
@@ -30211,12 +30212,12 @@ const c7 = {
|
|
|
30211
30212
|
ge(
|
|
30212
30213
|
() => j.value,
|
|
30213
30214
|
() => {
|
|
30214
|
-
n.buttons || (document.getElementById(r).dispatchEvent(new Event("change")), _("change"));
|
|
30215
|
+
n.buttons || (document.getElementById(r).dispatchEvent(new Event("change")), _("change", j.value));
|
|
30215
30216
|
},
|
|
30216
30217
|
{ deep: !0 }
|
|
30217
30218
|
);
|
|
30218
30219
|
const I = () => {
|
|
30219
|
-
j.value = [], d.value = [], w();
|
|
30220
|
+
j.value = [], d.value = [], w(), _("reset");
|
|
30220
30221
|
};
|
|
30221
30222
|
return (O, P) => (b(), S("div", M7, [
|
|
30222
30223
|
Q("div", {
|