@milaboratories/uikit 2.2.46 → 2.2.47
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/CHANGELOG.md +6 -0
- package/dist/pl-uikit.js +43 -24
- package/dist/pl-uikit.umd.cjs +1 -1
- package/dist/src/components/PlDialogModal/PlDialogModal.vue.d.ts +10 -0
- package/dist/src/components/PlDropdownMultiRef/PlDropdownMultiRef.vue.d.ts +1 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/components/PlDialogModal/PlDialogModal.vue +41 -2
- package/src/components/PlDropdownMulti/PlDropdownMulti.vue +1 -0
- package/src/components/PlDropdownMultiRef/PlDropdownMultiRef.vue +1 -0
package/CHANGELOG.md
CHANGED
package/dist/pl-uikit.js
CHANGED
|
@@ -3623,7 +3623,7 @@ const Pd = { class: "resizable-input" }, Id = ["placeholder", "value", "disabled
|
|
|
3623
3623
|
props: {
|
|
3624
3624
|
modelValue: { default: () => [] },
|
|
3625
3625
|
label: { default: void 0 },
|
|
3626
|
-
options: {},
|
|
3626
|
+
options: { default: void 0 },
|
|
3627
3627
|
helper: { default: void 0 },
|
|
3628
3628
|
error: { default: void 0 },
|
|
3629
3629
|
placeholder: { default: "..." },
|
|
@@ -3818,7 +3818,7 @@ const Pd = { class: "resizable-input" }, Id = ["placeholder", "value", "disabled
|
|
|
3818
3818
|
props: {
|
|
3819
3819
|
modelValue: { default: () => [] },
|
|
3820
3820
|
label: { default: void 0 },
|
|
3821
|
-
options: {},
|
|
3821
|
+
options: { default: void 0 },
|
|
3822
3822
|
helper: { default: void 0 },
|
|
3823
3823
|
error: { default: void 0 },
|
|
3824
3824
|
placeholder: { default: "..." },
|
|
@@ -3950,51 +3950,70 @@ const Nc = {
|
|
|
3950
3950
|
noContentGutters: { type: Boolean, default: !1 },
|
|
3951
3951
|
noTopContentGutter: { type: Boolean },
|
|
3952
3952
|
actionsHasTopBorder: { type: Boolean, default: !0 },
|
|
3953
|
-
closeOnOutsideClick: { type: Boolean }
|
|
3953
|
+
closeOnOutsideClick: { type: Boolean },
|
|
3954
|
+
size: { default: void 0 }
|
|
3954
3955
|
},
|
|
3955
3956
|
emits: ["update:modelValue"],
|
|
3956
3957
|
setup(t, { emit: e }) {
|
|
3957
|
-
const n = we(), r = e, o = t, s = Z(), i =
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3958
|
+
const n = we(), r = e, o = t, s = Z(), i = b(() => {
|
|
3959
|
+
const { width: u, height: d, minHeight: c, maxHeight: p, size: h } = o;
|
|
3960
|
+
return h === "small" ? {
|
|
3961
|
+
width: "448px",
|
|
3962
|
+
height: "440px",
|
|
3963
|
+
minHeight: "auto",
|
|
3964
|
+
maxHeight: "auto"
|
|
3965
|
+
} : h === "medium" ? {
|
|
3966
|
+
width: "720px",
|
|
3967
|
+
height: "720px",
|
|
3968
|
+
minHeight: "auto",
|
|
3969
|
+
maxHeight: "auto"
|
|
3970
|
+
} : h === "large" ? {
|
|
3971
|
+
width: "1080px",
|
|
3972
|
+
height: "880px",
|
|
3973
|
+
minHeight: "auto",
|
|
3974
|
+
maxHeight: "auto"
|
|
3975
|
+
} : { width: u, height: d, minHeight: c, maxHeight: p };
|
|
3976
|
+
}), l = cs();
|
|
3977
|
+
function a(u) {
|
|
3978
|
+
s.value && o.closeOnOutsideClick && document.contains(u.target) && !s.value.contains(u.target) && r("update:modelValue", !1);
|
|
3979
|
+
}
|
|
3980
|
+
return fe(document.body, "keyup", (u) => {
|
|
3981
|
+
o.modelValue && u.code === "Escape" && r("update:modelValue", !1);
|
|
3982
|
+
}), (u, d) => (f(), q(Ot, { to: "body" }, [
|
|
3964
3983
|
J(Jn, { name: "dialog" }, {
|
|
3965
3984
|
default: ee(() => [
|
|
3966
|
-
|
|
3985
|
+
u.modelValue ? (f(), m("div", {
|
|
3967
3986
|
key: 0,
|
|
3968
3987
|
class: "pl-dialog-modal__shadow",
|
|
3969
|
-
onClick:
|
|
3988
|
+
onClick: a
|
|
3970
3989
|
}, [
|
|
3971
|
-
_("div", pe(k(
|
|
3990
|
+
_("div", pe(k(l), {
|
|
3972
3991
|
ref_key: "modal",
|
|
3973
3992
|
ref: s,
|
|
3974
3993
|
class: ["pl-dialog-modal", { "has-title": k(n).title, "has-content": k(n).default }],
|
|
3975
|
-
style:
|
|
3994
|
+
style: i.value
|
|
3976
3995
|
}), [
|
|
3977
|
-
|
|
3996
|
+
u.closable ? (f(), q(Lc, {
|
|
3978
3997
|
key: 0,
|
|
3979
3998
|
class: "close-modal-btn",
|
|
3980
|
-
onClick:
|
|
3999
|
+
onClick: d[0] || (d[0] = se((c) => r("update:modelValue", !1), ["stop"]))
|
|
3981
4000
|
})) : A("", !0),
|
|
3982
|
-
|
|
4001
|
+
d[1] || (d[1] = v()),
|
|
3983
4002
|
k(n).title ? (f(), m("div", zc, [
|
|
3984
|
-
Y(
|
|
4003
|
+
Y(u.$slots, "title")
|
|
3985
4004
|
])) : A("", !0),
|
|
3986
|
-
|
|
4005
|
+
d[2] || (d[2] = v()),
|
|
3987
4006
|
_("div", {
|
|
3988
|
-
class: F(["pl-dialog-modal__content", { "no-content-gutters":
|
|
4007
|
+
class: F(["pl-dialog-modal__content", { "no-content-gutters": u.noContentGutters, "no-top-content-gutter": u.noTopContentGutter }])
|
|
3989
4008
|
}, [
|
|
3990
|
-
Y(
|
|
4009
|
+
Y(u.$slots, "default")
|
|
3991
4010
|
], 2),
|
|
3992
|
-
|
|
4011
|
+
d[3] || (d[3] = v()),
|
|
3993
4012
|
k(n).actions ? (f(), m("div", {
|
|
3994
4013
|
key: 2,
|
|
3995
|
-
class: F(["pl-dialog-modal__actions", { "has-top-border":
|
|
4014
|
+
class: F(["pl-dialog-modal__actions", { "has-top-border": u.actionsHasTopBorder }])
|
|
3996
4015
|
}, [
|
|
3997
|
-
Y(
|
|
4016
|
+
Y(u.$slots, "actions")
|
|
3998
4017
|
], 2)) : A("", !0)
|
|
3999
4018
|
], 16)
|
|
4000
4019
|
])) : A("", !0)
|