@wikicasa-dev/components 2.1.4-alpha.15 → 2.1.4-alpha.16
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.
|
@@ -26,6 +26,8 @@ declare const _default: <T, LabelID extends string | number | undefined, TCompon
|
|
|
26
26
|
fieldsetClasses?: ClassTypeProp;
|
|
27
27
|
placeholder?: string;
|
|
28
28
|
dataCy?: string;
|
|
29
|
+
withBorder?: boolean;
|
|
30
|
+
withCleanBtn?: boolean;
|
|
29
31
|
}) & Partial<{}>> & import('vue').PublicProps;
|
|
30
32
|
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
31
33
|
select: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as P, mergeModels as y, useModel as A, ref as c, computed as g, onBeforeMount as L, watch as m, createBlock as C, openBlock as v, normalizeClass as z, withCtx as p, createElementBlock as G, Fragment as H, renderList as K, unref as
|
|
1
|
+
import { defineComponent as P, mergeModels as y, useModel as A, ref as c, computed as g, onBeforeMount as L, watch as m, createBlock as C, openBlock as v, normalizeClass as z, withCtx as p, createElementBlock as G, Fragment as H, renderList as K, unref as B, createCommentVNode as N, createElementVNode as $, resolveDynamicComponent as F, createVNode as T, createSlots as j, renderSlot as W, withDirectives as X, vShow as q } from "vue";
|
|
2
2
|
import J from "./BaseInput.vue.js";
|
|
3
3
|
import '../../assets/lib/UIKit/BaseInput.css';/* empty css */
|
|
4
4
|
import Q from "./BaseDropDown.vue.js";
|
|
@@ -19,7 +19,9 @@ const x = ["onClick"], _ = ["innerHTML"], ue = /* @__PURE__ */ P({
|
|
|
19
19
|
inputClasses: {},
|
|
20
20
|
fieldsetClasses: {},
|
|
21
21
|
placeholder: { default: "" },
|
|
22
|
-
dataCy: { default: "" }
|
|
22
|
+
dataCy: { default: "" },
|
|
23
|
+
withBorder: { type: Boolean, default: !0 },
|
|
24
|
+
withCleanBtn: { type: Boolean, default: !0 }
|
|
23
25
|
}, {
|
|
24
26
|
modelValue: {
|
|
25
27
|
default() {
|
|
@@ -106,40 +108,43 @@ const x = ["onClick"], _ = ["innerHTML"], ue = /* @__PURE__ */ P({
|
|
|
106
108
|
placeholder: e.placeholder,
|
|
107
109
|
"input-class": [e.inputClasses, "!uikit-text"],
|
|
108
110
|
"fieldset-classes": [e.fieldsetClasses],
|
|
111
|
+
"with-border": e.withBorder,
|
|
109
112
|
"onUpdate:modelValue": t[0] || (t[0] = (l) => I(l === void 0 ? "" : `${l}`)),
|
|
110
113
|
onKeydown: t[1] || (t[1] = (l) => s("keydown", l)),
|
|
111
114
|
onKeydownEnterPressed: t[2] || (t[2] = () => s("keydownEnterPressed"))
|
|
112
|
-
}, j({
|
|
113
|
-
rightIcon: p(({ handleClean: l }) => [
|
|
114
|
-
W(B("span", {
|
|
115
|
-
class: "text-input-icon right uikit-flex uikit-size-md uikit-cursor-pointer uikit-items-center uikit-justify-center uikit-rounded-full uikit-bg-w-lightgray uikit-text uikit-font-semibold uikit-text-white",
|
|
116
|
-
onClick: l
|
|
117
|
-
}, "X", 8, x), [
|
|
118
|
-
[X, $(r) !== -1]
|
|
119
|
-
])
|
|
120
|
-
]),
|
|
121
|
-
_: 2
|
|
122
|
-
}, [
|
|
115
|
+
}, j({ _: 2 }, [
|
|
123
116
|
e.$slots.leftIcon ? {
|
|
124
117
|
name: "leftIcon",
|
|
125
118
|
fn: p(() => [
|
|
126
|
-
|
|
119
|
+
W(e.$slots, "leftIcon")
|
|
127
120
|
]),
|
|
128
121
|
key: "0"
|
|
122
|
+
} : void 0,
|
|
123
|
+
e.withCleanBtn ? {
|
|
124
|
+
name: "rightIcon",
|
|
125
|
+
fn: p(({ handleClean: l }) => [
|
|
126
|
+
X($("span", {
|
|
127
|
+
class: "text-input-icon right uikit-flex uikit-size-md uikit-cursor-pointer uikit-items-center uikit-justify-center uikit-rounded-full uikit-bg-w-lightgray uikit-text uikit-font-semibold uikit-text-white",
|
|
128
|
+
onClick: l
|
|
129
|
+
}, "X", 8, x), [
|
|
130
|
+
[q, B(r) !== -1]
|
|
131
|
+
])
|
|
132
|
+
]),
|
|
133
|
+
key: "1"
|
|
129
134
|
} : void 0
|
|
130
|
-
]), 1032, ["id", "data-cy", "model-value", "is-valid", "disabled", "placeholder", "input-class", "fieldset-classes"])
|
|
135
|
+
]), 1032, ["id", "data-cy", "model-value", "is-valid", "disabled", "placeholder", "input-class", "fieldset-classes", "with-border"])
|
|
131
136
|
]),
|
|
132
137
|
default: p(() => [
|
|
133
138
|
(v(!0), G(H, null, K(a.value, (l, f) => (v(), C(Y, {
|
|
134
139
|
key: f,
|
|
135
|
-
active:
|
|
140
|
+
active: B(k) === f,
|
|
136
141
|
class: "uikit-relative uikit-flex uikit-gap-x-xs uikit-rounded-[5px] uikit-p-md uikit-py-xs uikit-text after:uikit-absolute after:uikit-bottom-0 after:uikit-left-1/2 after:uikit-h-[1px] after:uikit-w-[95%] after:-uikit-translate-x-1/2 after:uikit-bg-w-lightgray after:uikit-content-[''] after:last:uikit-hidden hover:uikit-cursor-pointer",
|
|
137
142
|
onClick: (U) => w(l, f),
|
|
138
143
|
onMouseover: (U) => k.value = f
|
|
139
144
|
}, {
|
|
140
145
|
default: p(() => [
|
|
141
146
|
l.icon ? (v(), C(F(l.icon), { key: 0 })) : N("", !0),
|
|
142
|
-
|
|
147
|
+
$("span", {
|
|
143
148
|
innerHTML: l.label
|
|
144
149
|
}, null, 8, _)
|
|
145
150
|
]),
|