@wikicasa-dev/components 2.8.1-alpha.0 → 2.8.1

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.
@@ -86,7 +86,7 @@ var ae = [
86
86
  }
87
87
  ue(e);
88
88
  }, pe = (e) => {
89
- j("input", e), P.value = !1, N.value = 0;
89
+ j("input", e), P.value = !1, N.value = 0, !e.isComposing && fe(e.target.value);
90
90
  }, X = (e = -1, t) => {
91
91
  let n = z.value[e];
92
92
  !n || n.id === k.value?.id || (R.value = e, l.onOptionSelectedCb?.(n, { trigger: t }), A.value = n.label, O.value = !1, k.value = n, P.value = !0, J(), z.value = []);
@@ -179,7 +179,7 @@ var ae = [
179
179
  }, [
180
180
  T(s("input", {
181
181
  ref: "inputRef",
182
- "onUpdate:modelValue": [d[0] ||= (e) => A.value = e, fe],
182
+ "onUpdate:modelValue": d[0] ||= (e) => A.value = e,
183
183
  id: ne(le),
184
184
  "data-cy": l.dataCy ? `ac_input_${l.dataCy}` : "",
185
185
  type: "text",
@@ -222,7 +222,7 @@ var ae = [
222
222
  _(r.$slots, "right-icon")
223
223
  ], 2)]),
224
224
  default: w(() => [
225
- I.value && !z.value.length ? _(r.$slots, "loading-state", { key: 0 }) : a("", !0),
225
+ I.value && !z.value.length ? _(r.$slots, "loading-state", {}, void 0, void 0, 0) : a("", !0),
226
226
  F.value && z.value.length ? (h(), o("div", se, [...d[7] ||= [s("div", { class: "uikit-progress-bar-fill" }, null, -1)]])) : a("", !0),
227
227
  z.value.length ? (h(!0), o(n, { key: 2 }, g(z.value, (t, n, a, o) => {
228
228
  let c = [
@@ -84,10 +84,7 @@ var f = [
84
84
  }, ["stop"]),
85
85
  onClick: l[2] ||= (e) => _("click", e),
86
86
  onKeydown: l[3] ||= (e) => _("keydown", e)
87
- }, [i.isLoading ? c(t.$slots, "spinner", { key: 1 }, () => [r(e, { "stroke-color": i.outlined ? "#ACB4C3" : "#fff" }, null, 8, ["stroke-color"])]) : c(t.$slots, "default", {
88
- key: 0,
89
- hover: y.value
90
- })], 46, f));
87
+ }, [i.isLoading ? c(t.$slots, "spinner", {}, () => [r(e, { "stroke-color": i.outlined ? "#ACB4C3" : "#fff" }, null, 8, ["stroke-color"])], void 0, 1) : c(t.$slots, "default", { hover: y.value }, void 0, void 0, 0)], 46, f));
91
88
  }
92
89
  });
93
90
  //#endregion
@@ -1,6 +1,6 @@
1
1
  import e from "../_virtual/_plugin-vue_export-helper.js";
2
2
  import t from "./BaseInput.vue.js";
3
3
  //#region lib/UIKit/BaseInput.vue
4
- var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-bf36cdd7"]]);
4
+ var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-5b192617"]]);
5
5
  //#endregion
6
6
  export { n as default };
@@ -50,7 +50,7 @@ var S = [
50
50
  },
51
51
  dataCy: {}
52
52
  }, {
53
- modelValue: { default: "" },
53
+ modelValue: { default: () => "" },
54
54
  modelModifiers: {}
55
55
  }),
56
56
  emits: /*@__PURE__*/ l([
@@ -27,10 +27,10 @@ var p = { class: "uikit-flex uikit-items-center uikit-gap-[8px]" }, m = ["innerH
27
27
  default: u(() => [r(c(f), { class: "uikit-box-border uikit-flex uikit-size-[20px] uikit-translate-x-0 uikit-items-center uikit-justify-center uikit-rounded-full uikit-border uikit-border-solid uikit-border-w-lightgray uikit-bg-white uikit-shadow-xl uikit-transition-transform uikit-will-change-transform data-[state=checked]:uikit-translate-x-full" })]),
28
28
  _: 1
29
29
  }, 8, ["modelValue", "data-cy"]),
30
- l.$slots.leftLabel ? e("", !0) : s(l.$slots, "rightLabel", { key: 0 }, () => [n("span", {
30
+ l.$slots.leftLabel ? e("", !0) : s(l.$slots, "rightLabel", {}, () => [n("span", {
31
31
  class: "uikit-ml-[10px]",
32
32
  innerHTML: i.label
33
- }, null, 8, m)])
33
+ }, null, 8, m)], void 0, 0)
34
34
  ]));
35
35
  }
36
36
  });
@@ -1 +1 @@
1
- .input-wrapper[data-v-bf36cdd7]{--icon-default-size:44px}.invalid-bg[data-v-bf36cdd7]{--invalid-img:url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxMicgaGVpZ2h0PScxMicgZmlsbD0nbm9uZScgc3Ryb2tlPScjRkE0RjY0Jz48Y2lyY2xlIGN4PSc2JyBjeT0nNicgcj0nNC41Jy8+PHBhdGggc3Ryb2tlLWxpbmVqb2luPSdyb3VuZCcgZD0nTTUuOCAzLjZoLjRMNiA2LjV6Jy8+PGNpcmNsZSBjeD0nNicgY3k9JzguMicgcj0nLjYnIGZpbGw9JyNGQTRGNjQnIHN0cm9rZT0nbm9uZScvPjwvc3ZnPg==);background-image:var(--invalid-img)}.valid-bg[data-v-bf36cdd7]{--valid-img:url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA4IDgnPjxwYXRoIGZpbGw9JyMyQjVERkYnIGQ9J00yLjMgNi43My42IDQuNTNjLS40LTEuMDQuNDYtMS40IDEuMS0uOGwxLjEgMS40IDMuNC0zLjhjLjYtLjYzIDEuNi0uMjcgMS4yLjdsLTQgNC42Yy0uNDMuNS0uOC40LTEuMS4xeicvPjwvc3ZnPg==);background-image:var(--valid-img)}.invalid-bg[data-v-bf36cdd7],.valid-bg[data-v-bf36cdd7]{background-position:right 12px top 10px;background-size:20px}.under-label[data-v-bf36cdd7]{font-style:italic;left:4px}.has-right-icon[data-v-bf36cdd7]>label.inline-label{right:var(--icon-default-size)}.has-left-icon[data-v-bf36cdd7]>label.inline-label{left:var(--icon-default-size)}[data-v-bf36cdd7] .text-input-icon{z-index:20;box-sizing:border-box;--icon-size-sm:16px;--icon-size-md:20px;--icon-size-lg:25px;position:absolute}[data-v-bf36cdd7] .text-input-icon.left{left:5px}[data-v-bf36cdd7] .text-input-icon.right{right:5px}[data-v-bf36cdd7] .text-input-icon{--icon-top:5px;--icon-size:var(--icon-size-sm);width:var(--icon-default-size);height:var(--icon-default-size);padding:calc((var(--icon-default-size) - var(--icon-size)) / 2);top:var(--icon-top)}[data-v-bf36cdd7] .text-input-icon.md{--icon-size:var(--icon-size-md)}[data-v-bf36cdd7] .text-input-icon.lg{--icon-top:0;--icon-size:var(--icon-size-lg)}
1
+ .input-wrapper[data-v-5b192617]{--icon-default-size:44px}.invalid-bg[data-v-5b192617]{--invalid-img:url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxMicgaGVpZ2h0PScxMicgZmlsbD0nbm9uZScgc3Ryb2tlPScjRkE0RjY0Jz48Y2lyY2xlIGN4PSc2JyBjeT0nNicgcj0nNC41Jy8+PHBhdGggc3Ryb2tlLWxpbmVqb2luPSdyb3VuZCcgZD0nTTUuOCAzLjZoLjRMNiA2LjV6Jy8+PGNpcmNsZSBjeD0nNicgY3k9JzguMicgcj0nLjYnIGZpbGw9JyNGQTRGNjQnIHN0cm9rZT0nbm9uZScvPjwvc3ZnPg==);background-image:var(--invalid-img)}.valid-bg[data-v-5b192617]{--valid-img:url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA4IDgnPjxwYXRoIGZpbGw9JyMyQjVERkYnIGQ9J00yLjMgNi43My42IDQuNTNjLS40LTEuMDQuNDYtMS40IDEuMS0uOGwxLjEgMS40IDMuNC0zLjhjLjYtLjYzIDEuNi0uMjcgMS4yLjdsLTQgNC42Yy0uNDMuNS0uOC40LTEuMS4xeicvPjwvc3ZnPg==);background-image:var(--valid-img)}.invalid-bg[data-v-5b192617],.valid-bg[data-v-5b192617]{background-position:right 12px top 10px;background-size:20px}.under-label[data-v-5b192617]{font-style:italic;left:4px}.has-right-icon[data-v-5b192617]>label.inline-label{right:var(--icon-default-size)}.has-left-icon[data-v-5b192617]>label.inline-label{left:var(--icon-default-size)}[data-v-5b192617] .text-input-icon{z-index:20;box-sizing:border-box;--icon-size-sm:16px;--icon-size-md:20px;--icon-size-lg:25px;position:absolute}[data-v-5b192617] .text-input-icon.left{left:5px}[data-v-5b192617] .text-input-icon.right{right:5px}[data-v-5b192617] .text-input-icon{--icon-top:5px;--icon-size:var(--icon-size-sm);width:var(--icon-default-size);height:var(--icon-default-size);padding:calc((var(--icon-default-size) - var(--icon-size)) / 2);top:var(--icon-top)}[data-v-5b192617] .text-input-icon.md{--icon-size:var(--icon-size-md)}[data-v-5b192617] .text-input-icon.lg{--icon-top:0;--icon-size:var(--icon-size-lg)}
@@ -13,7 +13,7 @@ var s = /*@__PURE__*/ t({
13
13
  let s = t, c = a(null);
14
14
  return r(() => {
15
15
  !s.observer || !c.value || s.observer.observe(c.value);
16
- }), (r, a) => t.isVisible ? o(r.$slots, "default", { key: 1 }) : (i(), e("div", {
16
+ }), (r, a) => t.isVisible ? o(r.$slots, "default", {}, void 0, void 0, 1) : (i(), e("div", {
17
17
  key: 0,
18
18
  ref_key: "root",
19
19
  ref: c,
@@ -39,10 +39,9 @@ var l = /*@__PURE__*/ t({
39
39
  }), i(() => {
40
40
  g();
41
41
  }), (t, r) => f.isVisible ? c(t.$slots, "observer", {
42
- key: 1,
43
42
  observer: p.value,
44
43
  isVisible: f.isVisible
45
- }) : (a(), e("div", {
44
+ }, void 0, void 0, 1) : (a(), e("div", {
46
45
  key: 0,
47
46
  ref: "root",
48
47
  class: n(t.$attrs["root-classes"])
@@ -18,10 +18,7 @@ var m = ["target-id"], h = /*@__PURE__*/ a({
18
18
  ref_key: "root",
19
19
  ref: h,
20
20
  "target-id": u(g)
21
- }, [l(e.$slots, "default", { isVisible: b.value })], 8, m)) : l(e.$slots, "default", {
22
- key: 1,
23
- isVisible: b.value
24
- });
21
+ }, [l(e.$slots, "default", { isVisible: b.value })], 8, m)) : l(e.$slots, "default", { isVisible: b.value }, void 0, void 0, 1);
25
22
  }
26
23
  });
27
24
  //#endregion
@@ -191,7 +191,7 @@ var k = ["id", "data-cy"], A = [
191
191
  }, [f("div", { class: g(["swiper-wrapper", e.$attrs["thumb-swiper-wrapper-classes"]]) }, [(v(!0), d(c, null, y(p.images, (t, n) => (v(), d("div", {
192
192
  key: `thumb_${V.value}_${n}`,
193
193
  class: g(["swiper-slide", e.$attrs["thumb-img-wrapper-classes"]])
194
- }, [f("img", m({ class: e.$attrs["thumb-img-classes"] }, { ref_for: !0 }, J(t, -1, !1), { alt: t.alt }), null, 16, M)], 2))), 128))], 2)], 10, j)) : u("", !0)], 2), [[T, z.value]]), z.value ? u("", !0) : b(e.$slots, "placeholder", { key: 0 }, void 0, !0)], 64));
194
+ }, [f("img", m({ class: e.$attrs["thumb-img-classes"] }, { ref_for: !0 }, J(t, -1, !1), { alt: t.alt }), null, 16, M)], 2))), 128))], 2)], 10, j)) : u("", !0)], 2), [[T, z.value]]), z.value ? u("", !0) : b(e.$slots, "placeholder", {}, void 0, !0, 0)], 64));
195
195
  }
196
196
  });
197
197
  //#endregion
@@ -1,3 +1,3 @@
1
- import '../../../assets/swiper-keyboard.css';/* empty css */
1
+ import '../../../assets/swiper-thumbs.css';/* empty css */
2
2
  import { Autoplay as e } from "swiper/modules";
3
3
  export { e as default };
@@ -1,3 +1,3 @@
1
- import '../../../assets/swiper-keyboard.css';/* empty css */
1
+ import '../../../assets/swiper-thumbs.css';/* empty css */
2
2
  import { Controller as e } from "swiper/modules";
3
3
  export { e as default };
@@ -1,3 +1,3 @@
1
- import '../../../assets/swiper-keyboard.css';/* empty css */
1
+ import '../../../assets/swiper-thumbs.css';/* empty css */
2
2
  import { Keyboard as e } from "swiper/modules";
3
3
  export { e as default };
@@ -1,3 +1,3 @@
1
- import '../../../assets/swiper-keyboard.css';/* empty css */
1
+ import '../../../assets/swiper-thumbs.css';/* empty css */
2
2
  import { Thumbs as e } from "swiper/modules";
3
3
  export { e as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "2.8.1-alpha.0",
3
+ "version": "2.8.1",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -80,15 +80,16 @@
80
80
  "vite-plugin-lib-inject-css": "^2.2.2",
81
81
  "vitest": "^4.1.8",
82
82
  "vitest-browser-vue": "^2.1.0",
83
+ "vue": "^3.5.41",
83
84
  "vue-router": "^5.1.0",
84
85
  "vue-tsc": "^3.3.3",
85
- "@wikicasa-dev/svg-icons": "1.3.7",
86
- "@wikicasa-dev/utilities": "1.2.11",
87
- "@wikicasa-dev/types": "2.8.0",
88
86
  "@wikicasa-dev/tsconfig": "0.0.0",
87
+ "@wikicasa-dev/eslint-config": "0.0.0",
89
88
  "@wikicasa-dev/tailwind-plugins": "0.0.7",
90
- "@wikicasa-dev/vue-composables": "0.2.0",
91
- "@wikicasa-dev/eslint-config": "0.0.0"
89
+ "@wikicasa-dev/types": "2.8.0",
90
+ "@wikicasa-dev/svg-icons": "1.3.7",
91
+ "@wikicasa-dev/utilities": "1.2.11",
92
+ "@wikicasa-dev/vue-composables": "0.2.0"
92
93
  },
93
94
  "readme": "ERROR: No README data found!",
94
95
  "scripts": {