@wikicasa-dev/components 2.0.3 → 2.0.4
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/BaseAutocomplete.js +1 -1
- package/dist/BaseDropDown.js +1 -1
- package/dist/UIKit/BaseDropDown.vue.d.ts +3 -0
- package/dist/chunks/{BaseAutocomplete.vue_vue_type_script_setup_true_lang.CwGssIPe.js → BaseAutocomplete.vue_vue_type_script_setup_true_lang.m5rScY4N.js} +1 -1
- package/dist/chunks/{BaseDropDown.vue_vue_type_script_setup_true_lang.H0XcZCcL.js → BaseDropDown.vue_vue_type_script_setup_true_lang.BscSQ5bW.js} +10 -9
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/BaseAutocomplete.js
CHANGED
package/dist/BaseDropDown.js
CHANGED
|
@@ -26,6 +26,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
26
26
|
labelClasses?: ClassType;
|
|
27
27
|
direction?: "up" | "down";
|
|
28
28
|
arrowWidth?: number;
|
|
29
|
+
arrowStrokeColor?: `#${string}`;
|
|
29
30
|
isAbsolute?: boolean;
|
|
30
31
|
openDropdown?: boolean;
|
|
31
32
|
closeWhenClickedOutside?: boolean;
|
|
@@ -44,6 +45,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
44
45
|
labelClasses?: ClassType;
|
|
45
46
|
direction?: "up" | "down";
|
|
46
47
|
arrowWidth?: number;
|
|
48
|
+
arrowStrokeColor?: `#${string}`;
|
|
47
49
|
isAbsolute?: boolean;
|
|
48
50
|
openDropdown?: boolean;
|
|
49
51
|
closeWhenClickedOutside?: boolean;
|
|
@@ -63,6 +65,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
63
65
|
withArrowIcon: boolean;
|
|
64
66
|
btnLabel: string;
|
|
65
67
|
direction: "up" | "down";
|
|
68
|
+
arrowStrokeColor: `#${string}`;
|
|
66
69
|
isAbsolute: boolean;
|
|
67
70
|
openDropdown: boolean;
|
|
68
71
|
closeWhenClickedOutside: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as L, mergeModels as S, useModel as H, ref as s, computed as k, onBeforeMount as z, watch as f, openBlock as y, createBlock as V, normalizeClass as A, withCtx as c, createVNode as K, renderSlot as B, createElementBlock as N, Fragment as U, renderList as F, unref as W, createElementVNode as j } from "vue";
|
|
2
2
|
import q from "../BaseInput.js";
|
|
3
|
-
import { _ as G } from "./BaseDropDown.vue_vue_type_script_setup_true_lang.
|
|
3
|
+
import { _ as G } from "./BaseDropDown.vue_vue_type_script_setup_true_lang.BscSQ5bW.js";
|
|
4
4
|
import "./types-B0dZ7OiV.D29wNgoj.js";
|
|
5
5
|
import { _ as J } from "./SelectItem.vue_vue_type_script_setup_true_lang.GPFf7fjA.js";
|
|
6
6
|
import { A as Q } from "./useKeyboardController.CutKeclN.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as D, useId as
|
|
1
|
+
import { defineComponent as D, useId as S, ref as m, computed as L, useTemplateRef as E, watch as r, onBeforeMount as I, onMounted as A, onUnmounted as O, openBlock as s, createElementBlock as W, normalizeClass as i, withModifiers as w, renderSlot as v, createVNode as $, unref as a, withCtx as b, createElementVNode as M, createBlock as h, createCommentVNode as H, resolveDynamicComponent as N } from "vue";
|
|
2
2
|
import { _ as T } from "./BaseButton.vue_vue_type_script_setup_true_lang.BWZPE2Gf.js";
|
|
3
3
|
import { a as V } from "./ArrowIcon.CCFMdsq6.js";
|
|
4
4
|
import "./PharmacyIcon.56ql_DYl.js";
|
|
@@ -14,6 +14,7 @@ const q = ["innerHTML"], G = /* @__PURE__ */ D({
|
|
|
14
14
|
labelClasses: { default: "" },
|
|
15
15
|
direction: { default: "down" },
|
|
16
16
|
arrowWidth: { default: 12 },
|
|
17
|
+
arrowStrokeColor: { default: void 0 },
|
|
17
18
|
isAbsolute: { type: Boolean, default: !0 },
|
|
18
19
|
openDropdown: { type: Boolean, default: !1 },
|
|
19
20
|
closeWhenClickedOutside: { type: Boolean, default: !0 },
|
|
@@ -23,8 +24,8 @@ const q = ["innerHTML"], G = /* @__PURE__ */ D({
|
|
|
23
24
|
dataCy: { default: "" }
|
|
24
25
|
},
|
|
25
26
|
emits: ["click", "update:dropdownState"],
|
|
26
|
-
setup(
|
|
27
|
-
const o =
|
|
27
|
+
setup(C, { emit: y }) {
|
|
28
|
+
const o = C, u = S(), p = y, t = m(!1), n = m([]), g = L(() => n.value.length), c = E("dropdown"), { activeIdx: B, selectedIdx: k } = K({
|
|
28
29
|
optionsLength: g,
|
|
29
30
|
isDropdownOpen: t,
|
|
30
31
|
activate: o.activateKeyboardController
|
|
@@ -49,11 +50,11 @@ const q = ["innerHTML"], G = /* @__PURE__ */ D({
|
|
|
49
50
|
};
|
|
50
51
|
return I(() => {
|
|
51
52
|
o.closeWhenClickedOutside && document.body.addEventListener("click", f);
|
|
52
|
-
}), S(() => {
|
|
53
|
-
c.value && (n.value = c.value.children || []);
|
|
54
53
|
}), A(() => {
|
|
54
|
+
c.value && (n.value = c.value.children || []);
|
|
55
|
+
}), O(() => {
|
|
55
56
|
o.closeWhenClickedOutside && document.body.removeEventListener("click", f);
|
|
56
|
-
}), (e, l) => (s(),
|
|
57
|
+
}), (e, l) => (s(), W("div", {
|
|
57
58
|
class: i(["uikit-relative uikit-block", e.$attrs.class]),
|
|
58
59
|
onClick: l[1] || (l[1] = w((z) => {
|
|
59
60
|
p("click"), d();
|
|
@@ -63,7 +64,7 @@ const q = ["innerHTML"], G = /* @__PURE__ */ D({
|
|
|
63
64
|
toggleDropdown: d,
|
|
64
65
|
isOpen: t.value
|
|
65
66
|
}, () => [
|
|
66
|
-
|
|
67
|
+
$(T, {
|
|
67
68
|
id: a(u),
|
|
68
69
|
type: "button",
|
|
69
70
|
"data-cy": e.dataCy,
|
|
@@ -84,7 +85,7 @@ const q = ["innerHTML"], G = /* @__PURE__ */ D({
|
|
|
84
85
|
class: i(["uikit-shrink-0 uikit-transition-transform motion-reduce:uikit-transition-none", t.value ? "uikit-rotate-180" : ""]),
|
|
85
86
|
width: e.arrowWidth,
|
|
86
87
|
height: e.arrowWidth,
|
|
87
|
-
"stroke-color": e
|
|
88
|
+
"stroke-color": e.arrowStrokeColor
|
|
88
89
|
}, null, 8, ["class", "width", "height", "stroke-color"])) : H("", !0)
|
|
89
90
|
]),
|
|
90
91
|
_: 1
|
|
@@ -93,7 +94,7 @@ const q = ["innerHTML"], G = /* @__PURE__ */ D({
|
|
|
93
94
|
(s(), h(N(e.dropdownElement), {
|
|
94
95
|
id: "dropdown_" + a(u),
|
|
95
96
|
ref: "dropdown",
|
|
96
|
-
"data-cy": e
|
|
97
|
+
"data-cy": e.dataCy && `${e.dataCy}_dropdown`,
|
|
97
98
|
class: i(["uikit-max-h-[220px] uikit-w-full uikit-min-w-[90px] uikit-flex-col uikit-overflow-y-auto uikit-border uikit-border-solid uikit-border-w-lavender uikit-bg-white uikit-pl-0 uikit-opacity-100 uikit-shadow uikit-no-scrollbar", [
|
|
98
99
|
e.dropdownClasses,
|
|
99
100
|
t.value ? "uikit-flex" : "uikit-hidden",
|
package/dist/index.js
CHANGED
|
@@ -11,12 +11,12 @@ import { _ as g } from "./chunks/RadioButton.vue_vue_type_script_setup_true_lang
|
|
|
11
11
|
import { _ as h } from "./chunks/RadioGroup.vue_vue_type_script_setup_true_lang.BalzO73O.js";
|
|
12
12
|
import { _ as I } from "./chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.YIp2u7gd.js";
|
|
13
13
|
import { _ as w } from "./chunks/BaseAlert.vue_vue_type_style_index_0_lang.BtqP_iYL.js";
|
|
14
|
-
import { _ as k } from "./chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.
|
|
14
|
+
import { _ as k } from "./chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.m5rScY4N.js";
|
|
15
15
|
import { _ as v } from "./chunks/BaseBadge.vue_vue_type_style_index_0_lang.BOA1gBKu.js";
|
|
16
16
|
import { _ as G } from "./chunks/BaseButton.vue_vue_type_script_setup_true_lang.BWZPE2Gf.js";
|
|
17
17
|
import { default as O } from "./BaseCard.js";
|
|
18
18
|
import { default as R } from "./BaseComplexToggle.js";
|
|
19
|
-
import { _ as V } from "./chunks/BaseDropDown.vue_vue_type_script_setup_true_lang.
|
|
19
|
+
import { _ as V } from "./chunks/BaseDropDown.vue_vue_type_script_setup_true_lang.BscSQ5bW.js";
|
|
20
20
|
import { default as q } from "./BaseFloatingLabel.js";
|
|
21
21
|
import { default as z } from "./BaseIcon.js";
|
|
22
22
|
import { default as H } from "./BaseInput.js";
|