@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @milaboratories/uikit
2
2
 
3
+ ## 2.2.47
4
+
5
+ ### Patch Changes
6
+
7
+ - 93e9a66: [sdk/ui-vue] Align PlDialogModal with figma (size props, etc)
8
+
3
9
  ## 2.2.46
4
10
 
5
11
  ### Patch Changes
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 = cs();
3958
- function l(a) {
3959
- s.value && o.closeOnOutsideClick && document.contains(a.target) && !s.value.contains(a.target) && r("update:modelValue", !1);
3960
- }
3961
- return fe(document.body, "keyup", (a) => {
3962
- o.modelValue && a.code === "Escape" && r("update:modelValue", !1);
3963
- }), (a, u) => (f(), q(Ot, { to: "body" }, [
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
- a.modelValue ? (f(), m("div", {
3985
+ u.modelValue ? (f(), m("div", {
3967
3986
  key: 0,
3968
3987
  class: "pl-dialog-modal__shadow",
3969
- onClick: l
3988
+ onClick: a
3970
3989
  }, [
3971
- _("div", pe(k(i), {
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: { width: a.width, height: a.height, minHeight: a.minHeight, maxHeight: a.maxHeight }
3994
+ style: i.value
3976
3995
  }), [
3977
- a.closable ? (f(), q(Lc, {
3996
+ u.closable ? (f(), q(Lc, {
3978
3997
  key: 0,
3979
3998
  class: "close-modal-btn",
3980
- onClick: u[0] || (u[0] = se((d) => r("update:modelValue", !1), ["stop"]))
3999
+ onClick: d[0] || (d[0] = se((c) => r("update:modelValue", !1), ["stop"]))
3981
4000
  })) : A("", !0),
3982
- u[1] || (u[1] = v()),
4001
+ d[1] || (d[1] = v()),
3983
4002
  k(n).title ? (f(), m("div", zc, [
3984
- Y(a.$slots, "title")
4003
+ Y(u.$slots, "title")
3985
4004
  ])) : A("", !0),
3986
- u[2] || (u[2] = v()),
4005
+ d[2] || (d[2] = v()),
3987
4006
  _("div", {
3988
- class: F(["pl-dialog-modal__content", { "no-content-gutters": a.noContentGutters, "no-top-content-gutter": a.noTopContentGutter }])
4007
+ class: F(["pl-dialog-modal__content", { "no-content-gutters": u.noContentGutters, "no-top-content-gutter": u.noTopContentGutter }])
3989
4008
  }, [
3990
- Y(a.$slots, "default")
4009
+ Y(u.$slots, "default")
3991
4010
  ], 2),
3992
- u[3] || (u[3] = v()),
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": a.actionsHasTopBorder }])
4014
+ class: F(["pl-dialog-modal__actions", { "has-top-border": u.actionsHasTopBorder }])
3996
4015
  }, [
3997
- Y(a.$slots, "actions")
4016
+ Y(u.$slots, "actions")
3998
4017
  ], 2)) : A("", !0)
3999
4018
  ], 16)
4000
4019
  ])) : A("", !0)