@factoringplus/pl-components-pack-v3 0.8.13 → 0.8.14-pre-02
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.
|
@@ -28698,6 +28698,10 @@ const _hoisted_1$w = { class: "sp-dialog__title" }, _hoisted_2$u = {
|
|
|
28698
28698
|
showSelected: {
|
|
28699
28699
|
type: Boolean,
|
|
28700
28700
|
default: !1
|
|
28701
|
+
},
|
|
28702
|
+
fit: {
|
|
28703
|
+
type: Boolean,
|
|
28704
|
+
default: !1
|
|
28701
28705
|
}
|
|
28702
28706
|
},
|
|
28703
28707
|
emits: ["selected-rows", "update:toggleRowSelection", "action"],
|
|
@@ -28727,7 +28731,8 @@ const _hoisted_1$w = { class: "sp-dialog__title" }, _hoisted_2$u = {
|
|
|
28727
28731
|
data: unref(V)
|
|
28728
28732
|
}, Ce.$attrs, {
|
|
28729
28733
|
onSelect: ie,
|
|
28730
|
-
onSelectAll: ie
|
|
28734
|
+
onSelectAll: ie,
|
|
28735
|
+
fit: g.fit
|
|
28731
28736
|
}), {
|
|
28732
28737
|
empty: withCtx(() => [
|
|
28733
28738
|
renderSlot(Ce.$slots, "empty", {}, () => [
|
|
@@ -28745,7 +28750,7 @@ const _hoisted_1$w = { class: "sp-dialog__title" }, _hoisted_2$u = {
|
|
|
28745
28750
|
renderSlot(Ce.$slots, "default")
|
|
28746
28751
|
]),
|
|
28747
28752
|
_: 3
|
|
28748
|
-
}, 16, ["data"]),
|
|
28753
|
+
}, 16, ["data", "fit"]),
|
|
28749
28754
|
unref(le) ? (openBlock(), createElementBlock("div", _hoisted_5$d, [
|
|
28750
28755
|
withDirectives(createElementVNode("div", { style: { "line-height": "33px", "padding-top": "10px" } }, toDisplayString(unref(declOfNum)(ue.value.length, ["Выбран", "Выбрано", "Выбрано"])) + " " + toDisplayString(ue.value.length) + " " + toDisplayString(unref(declOfNum)(ue.value.length, ["документ", "документа", "документов"])), 513), [
|
|
28751
28756
|
[vShow, ue.value.length > 0 || j.showSelected]
|
|
@@ -35208,32 +35213,25 @@ const PlBtn = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render],
|
|
|
35208
35213
|
}
|
|
35209
35214
|
}, PlSnackbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6b2b9338"]]), snackbarAnimation = "";
|
|
35210
35215
|
let snackbarId = 0;
|
|
35211
|
-
const renderSnackbar = function(g) {
|
|
35212
|
-
const { icon: y, color: j, title: z, message: L, button: V, action: re, buttonAdd: ae, actionAdd: le } = g;
|
|
35216
|
+
const renderSnackbar = function(g, y, j, z) {
|
|
35213
35217
|
if (!document.getElementById("snackbar")) {
|
|
35214
|
-
const
|
|
35215
|
-
|
|
35218
|
+
const ae = document.createElement("div");
|
|
35219
|
+
ae.id = "snackbar", document.body.appendChild(ae);
|
|
35216
35220
|
}
|
|
35217
|
-
const
|
|
35218
|
-
|
|
35219
|
-
const
|
|
35221
|
+
const V = document.createElement("div");
|
|
35222
|
+
V.id = `snackbar-${snackbarId}`, V.classList.add("slideIn-animation"), document.getElementById("snackbar").appendChild(V);
|
|
35223
|
+
const re = createApp({
|
|
35220
35224
|
render() {
|
|
35221
35225
|
return h$2(TransitionGroup, { name: "fade", mode: "out-in" }, () => [
|
|
35222
|
-
h$2(PlSnackbar, { icon:
|
|
35226
|
+
h$2(PlSnackbar, { icon: g, color: y, title: j, message: z })
|
|
35223
35227
|
]);
|
|
35224
35228
|
}
|
|
35225
35229
|
});
|
|
35226
|
-
|
|
35227
|
-
|
|
35228
|
-
|
|
35230
|
+
re.mount(`#snackbar-${snackbarId}`), setTimeout(() => {
|
|
35231
|
+
V.classList.remove("slideIn-animation"), V.classList.add("fadeOut-animation"), V.addEventListener("animationend", () => {
|
|
35232
|
+
re.unmount(), V.remove();
|
|
35229
35233
|
});
|
|
35230
35234
|
}, 4200), snackbarId++;
|
|
35231
|
-
}, PlNotification = {
|
|
35232
|
-
success: (g) => renderSnackbar({ icon: "CircleCheck24", color: "#0CA31B", ...g }),
|
|
35233
|
-
error: (g) => renderSnackbar({ icon: "WarningThree24", color: "#ED3636", ...g }),
|
|
35234
|
-
warning: (g) => renderSnackbar({ icon: "WarningTwo24", color: "#FF7D1F", ...g }),
|
|
35235
|
-
info: (g) => renderSnackbar({ icon: "Info24", color: "white", ...g }),
|
|
35236
|
-
custom: renderSnackbar
|
|
35237
35235
|
}, pinia = createPinia(), PlPlugin = {
|
|
35238
35236
|
install(g) {
|
|
35239
35237
|
var y, j, z, L, V, re, ae, le, ue, ie, pe, de, Ne, Ie, he, Ce, Oe, Ue, $e, xe, At, Dt, qe, kt, _n, Lt, vn, In, Cn, On, An, kn;
|
|
@@ -35241,7 +35239,7 @@ const renderSnackbar = function(g) {
|
|
|
35241
35239
|
},
|
|
35242
35240
|
apiJs: ApiJs,
|
|
35243
35241
|
loader: loadingAndSetup,
|
|
35244
|
-
|
|
35242
|
+
renderSnackbar
|
|
35245
35243
|
};
|
|
35246
35244
|
export {
|
|
35247
35245
|
PlBody1,
|