vueless 0.0.235 → 0.0.236
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/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export default /*tw*/ {
|
|
2
2
|
label: "{ULabel}",
|
|
3
3
|
inputWrapper: "flex relative w-full",
|
|
4
|
-
rightIconSlot: "flex items-center justify-end whitespace-nowrap pr-
|
|
5
|
-
leftIconSlot: "flex items-center justify-end whitespace-nowrap pl-
|
|
4
|
+
rightIconSlot: "flex items-center justify-end whitespace-nowrap pr-2 gap-1 rounded-dynamic rounded-l-none",
|
|
5
|
+
leftIconSlot: "flex items-center justify-end whitespace-nowrap pl-2 gap-1 rounded-dynamic rounded-r-none",
|
|
6
6
|
passwordIcon: "",
|
|
7
7
|
passwordVisibleIconName: "visibility-fill",
|
|
8
8
|
passwordHiddenIconName: "visibility_off-fill",
|
package/ui.form-input/index.vue
CHANGED
|
@@ -12,6 +12,11 @@
|
|
|
12
12
|
v-bind="labelAttrs"
|
|
13
13
|
>
|
|
14
14
|
<label :for="id" v-bind="blockAttrs">
|
|
15
|
+
<span v-if="hasSlotContent($slots['left'])" ref="leftSlotWrapper">
|
|
16
|
+
<!-- @slot Use it to add something before the text. -->
|
|
17
|
+
<slot name="left" />
|
|
18
|
+
</span>
|
|
19
|
+
|
|
15
20
|
<span
|
|
16
21
|
v-if="hasSlotContent($slots['icon-left']) || iconLeft"
|
|
17
22
|
ref="leftSlotWrapper"
|
|
@@ -27,11 +32,6 @@
|
|
|
27
32
|
</slot>
|
|
28
33
|
</span>
|
|
29
34
|
|
|
30
|
-
<span v-if="hasSlotContent($slots['left'])" ref="leftSlotWrapper">
|
|
31
|
-
<!-- @slot Use it to add something before the text. -->
|
|
32
|
-
<slot name="left" />
|
|
33
|
-
</span>
|
|
34
|
-
|
|
35
35
|
<span v-bind="inputWrapperAttrs">
|
|
36
36
|
<input
|
|
37
37
|
:id="id"
|
|
@@ -67,9 +67,6 @@
|
|
|
67
67
|
/>
|
|
68
68
|
</label>
|
|
69
69
|
|
|
70
|
-
<!-- @slot Use it to add something after the text. -->
|
|
71
|
-
<slot name="right" />
|
|
72
|
-
|
|
73
70
|
<span v-if="hasSlotContent($slots['icon-right']) || iconRight" v-bind="rightIconSlotAttrs">
|
|
74
71
|
<!--
|
|
75
72
|
@slot Use it to add icon after the text.
|
|
@@ -80,6 +77,9 @@
|
|
|
80
77
|
<UIcon v-if="iconRight" :name="iconRight" :size="iconSize" internal />
|
|
81
78
|
</slot>
|
|
82
79
|
</span>
|
|
80
|
+
|
|
81
|
+
<!-- @slot Use it to add something after the text. -->
|
|
82
|
+
<slot name="right" />
|
|
83
83
|
</label>
|
|
84
84
|
</ULabel>
|
|
85
85
|
</template>
|
|
@@ -7,8 +7,8 @@ export default /*tw*/ {
|
|
|
7
7
|
rightSlot: "pr-0",
|
|
8
8
|
leftSlot: "pl-0",
|
|
9
9
|
},
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
clearIcon: "{UIcon} flex h-full items-center",
|
|
11
|
+
clearIconName: "close",
|
|
12
12
|
searchIcon: "{UIcon}",
|
|
13
13
|
searchIconName: "search",
|
|
14
14
|
button: "{UButton} rounded-l-none ml-1 outline outline-1 outline-gray-900",
|
|
@@ -27,13 +27,14 @@
|
|
|
27
27
|
|
|
28
28
|
<template #icon-right>
|
|
29
29
|
<UIcon
|
|
30
|
+
v-if="modelValue"
|
|
30
31
|
internal
|
|
31
32
|
interactive
|
|
32
33
|
color="gray"
|
|
33
|
-
:name="config.
|
|
34
|
+
:name="config.clearIconName"
|
|
34
35
|
:data-cy="`${dataCy}-close`"
|
|
35
36
|
:size="iconSize"
|
|
36
|
-
v-bind="
|
|
37
|
+
v-bind="clearIconAttrs"
|
|
37
38
|
@click="onClickClear"
|
|
38
39
|
/>
|
|
39
40
|
|
|
@@ -210,7 +211,7 @@ const emit = defineEmits([
|
|
|
210
211
|
|
|
211
212
|
const localValue = ref("");
|
|
212
213
|
|
|
213
|
-
const { config, inputAttrs, searchIconAttrs,
|
|
214
|
+
const { config, inputAttrs, searchIconAttrs, clearIconAttrs, buttonAttrs } = useAttrs(props);
|
|
214
215
|
|
|
215
216
|
const search = computed({
|
|
216
217
|
get: () => props.modelValue,
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"framework": "vue",
|
|
3
3
|
"name": "vueless",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.236",
|
|
5
5
|
"contributions": {
|
|
6
6
|
"html": {
|
|
7
7
|
"description-markup": "markdown",
|
|
@@ -4184,6 +4184,10 @@
|
|
|
4184
4184
|
}
|
|
4185
4185
|
],
|
|
4186
4186
|
"slots": [
|
|
4187
|
+
{
|
|
4188
|
+
"name": "left",
|
|
4189
|
+
"description": "Use it to add something before the text."
|
|
4190
|
+
},
|
|
4187
4191
|
{
|
|
4188
4192
|
"name": "icon-left",
|
|
4189
4193
|
"scoped": true,
|
|
@@ -4199,14 +4203,6 @@
|
|
|
4199
4203
|
}
|
|
4200
4204
|
]
|
|
4201
4205
|
},
|
|
4202
|
-
{
|
|
4203
|
-
"name": "left",
|
|
4204
|
-
"description": "Use it to add something before the text."
|
|
4205
|
-
},
|
|
4206
|
-
{
|
|
4207
|
-
"name": "right",
|
|
4208
|
-
"description": "Use it to add something after the text."
|
|
4209
|
-
},
|
|
4210
4206
|
{
|
|
4211
4207
|
"name": "icon-right",
|
|
4212
4208
|
"scoped": true,
|
|
@@ -4221,6 +4217,10 @@
|
|
|
4221
4217
|
"name": "icon-size"
|
|
4222
4218
|
}
|
|
4223
4219
|
]
|
|
4220
|
+
},
|
|
4221
|
+
{
|
|
4222
|
+
"name": "right",
|
|
4223
|
+
"description": "Use it to add something after the text."
|
|
4224
4224
|
}
|
|
4225
4225
|
],
|
|
4226
4226
|
"source": {
|