@wikicasa-dev/components 2.0.35 → 2.0.38

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/BaseModal.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./chunks/BaseModal.vue_vue_type_style_index_0_lang.CoOklXn7.js";
1
+ import { _ as f } from "./chunks/BaseModal.vue_vue_type_style_index_0_lang.Bfqji3sg.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as x, ref as u, onUnmounted as B, watch as L, openBlock as c, createBlock as E, Teleport as T, createElementVNode as l, normalizeClass as s, withModifiers as f, createElementBlock as y, createVNode as z, unref as H, createCommentVNode as v, renderSlot as n, nextTick as O } from "vue";
1
+ import { defineComponent as B, ref as u, onUnmounted as L, watch as x, openBlock as c, createBlock as E, Teleport as T, createElementVNode as l, normalizeClass as s, withModifiers as f, createElementBlock as y, createVNode as z, unref as H, createCommentVNode as v, renderSlot as n, nextTick as O } from "vue";
2
2
  import "./types-B0dZ7OiV.D29wNgoj.js";
3
3
  import { l as $ } from "./CloseIcon.DIkr4soH.js";
4
4
  import "./PharmacyIcon.56ql_DYl.js";
@@ -10,7 +10,7 @@ import '../assets/BaseModal.css';const h = () => navigator?.userAgent.includes("
10
10
  t();
11
11
  }
12
12
  }, d);
13
- }), K = ["id", "data-cy"], N = ["innerHTML"], P = /* @__PURE__ */ x({
13
+ }), K = ["id", "data-cy"], N = ["innerHTML"], P = /* @__PURE__ */ B({
14
14
  __name: "BaseModal",
15
15
  props: {
16
16
  id: { default: "base-bt-modal" },
@@ -37,7 +37,7 @@ import '../assets/BaseModal.css';const h = () => navigator?.userAgent.includes("
37
37
  e === "Escape" && i();
38
38
  }, C = () => {
39
39
  document?.body.addEventListener("keydown", m);
40
- }, p = () => {
40
+ }, b = () => {
41
41
  document?.body.removeEventListener("keydown", m);
42
42
  }, g = async () => {
43
43
  t.value = !0, O(() => {
@@ -48,19 +48,19 @@ import '../assets/BaseModal.css';const h = () => navigator?.userAgent.includes("
48
48
  }, M = async () => {
49
49
  o.closeOnClickOut && await i();
50
50
  }, i = async () => {
51
- t.value = !1, p(), document?.documentElement.classList.remove("uikit-no-scrolling"), navigator.userAgent.includes("Windows") ? document?.body.classList.remove("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.remove("uikit-no-scrolling"), await I(() => {
51
+ t.value = !1, b(), document?.documentElement.classList.remove("uikit-no-scrolling"), navigator.userAgent.includes("Windows") ? document?.body.classList.remove("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.remove("uikit-no-scrolling"), await I(() => {
52
52
  k.value?.classList.add("uikit-hidden"), a("closed");
53
53
  }, 250);
54
54
  };
55
- return B(() => {
56
- p(), document?.documentElement.classList.remove("uikit-no-scrolling"), h() ? document?.body.classList.remove("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.remove("uikit-no-scrolling");
57
- }), L(
55
+ return L(() => {
56
+ b(), document?.documentElement.classList.remove("uikit-no-scrolling"), h() ? document?.body.classList.remove("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.remove("uikit-no-scrolling");
57
+ }), x(
58
58
  () => o.showModal,
59
59
  async (e) => {
60
60
  !e && !t.value ? r.value = !0 : r.value = !1, e && !t.value && await g(), !e && t.value && await i(), t.value = e;
61
61
  },
62
62
  { immediate: !0 }
63
- ), (e, b) => (c(), E(T, { to: "body" }, [
63
+ ), (e, p) => (c(), E(T, { to: "body" }, [
64
64
  l("div", {
65
65
  ref_key: "backdropEl",
66
66
  ref: k,
@@ -81,15 +81,17 @@ import '../assets/BaseModal.css';const h = () => navigator?.userAgent.includes("
81
81
  ref_key: "modalEl",
82
82
  ref: w,
83
83
  "data-cy": e.dataCy,
84
- class: s(["uikit-modal-dialog transition-y uikit-static uikit-mx-auto uikit-block uikit-w-full uikit-overflow-y-auto uikit-overflow-x-hidden uikit-rounded uikit-border-none uikit-bg-transparent uikit-bg-white uikit-p-0 uikit-shadow-lg uikit-no-scrollbar uikit-safe-bottom max-sm:uikit-fixed max-sm:uikit-bottom-0 max-sm:uikit-max-h-[95%] max-sm:uikit-rounded-bl-none max-sm:uikit-rounded-br-none sm:uikit-h-auto", [
84
+ class: s(["uikit-modal-dialog transition-y uikit-mx-auto uikit-block uikit-w-full uikit-overflow-y-auto uikit-overflow-x-hidden uikit-rounded uikit-border-none uikit-bg-transparent uikit-bg-white uikit-p-0 uikit-shadow-lg uikit-no-scrollbar uikit-safe-bottom max-sm:uikit-fixed max-sm:uikit-bottom-0 max-sm:uikit-max-h-[95%] max-sm:uikit-rounded-bl-none max-sm:uikit-rounded-br-none sm:uikit-h-auto", [
85
85
  e.customModalDialogClasses,
86
86
  { show: t.value },
87
87
  { "closed uikit-overflow-hidden": !t.value },
88
88
  { centered: e.centered },
89
+ { "uikit-absolute": e.centered },
90
+ { "uikit-static": !e.centered },
89
91
  `base-${e.size}`,
90
92
  e.fullHeight ? "uikit-h-[95%]" : "uikit-h-auto"
91
93
  ]]),
92
- onClick: b[0] || (b[0] = f(() => {
94
+ onClick: p[0] || (p[0] = f(() => {
93
95
  }, ["stop"]))
94
96
  }, [
95
97
  l("div", {
package/dist/index.js CHANGED
@@ -27,7 +27,7 @@ import { default as Z } from "./BaseTextarea.js";
27
27
  import { default as ee } from "./BaseToggle.js";
28
28
  import { default as re } from "./BaseTooltip.js";
29
29
  import { _ as te } from "./chunks/BaseUploadFile.vue_vue_type_script_setup_true_lang.2elmVcZt.js";
30
- import { _ as fe } from "./chunks/BaseModal.vue_vue_type_style_index_0_lang.CoOklXn7.js";
30
+ import { _ as fe } from "./chunks/BaseModal.vue_vue_type_style_index_0_lang.Bfqji3sg.js";
31
31
  import { default as me } from "./BaseSnackbar.js";
32
32
  import { default as le } from "./StaticSpinner.js";
33
33
  import { default as de } from "./BaseShimmerLoader.js";
@@ -15,7 +15,7 @@ const y = (t) => {
15
15
  }, p = async () => {
16
16
  if (!u.value) return;
17
17
  const [e, s] = await Promise.all([
18
- //@ts-ignore
18
+ //@ts-expect-error Date-fns does not have a type definition
19
19
  import("chartjs-adapter-date-fns"),
20
20
  import("chart.js")
21
21
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "2.0.35",
3
+ "version": "2.0.38",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -46,7 +46,7 @@
46
46
  "@vue/eslint-config-typescript": "^14.1.3",
47
47
  "@wikicasa-dev/svg-icons": "^1.0.2",
48
48
  "@wikicasa-dev/tailwind-plugins": "^0.0.3",
49
- "@wikicasa-dev/types": "^1.8.0",
49
+ "@wikicasa-dev/types": "^1.14.5",
50
50
  "@wikicasa-dev/utilities": "^1.0.22",
51
51
  "@wikicasa-dev/vue-composables": "0.0.13",
52
52
  "ajv": "^8.17.1",