@tak-ps/vue-tabler 3.79.1 → 3.79.3
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/CHANGELOG.md +9 -0
- package/components/Slidedown.vue +25 -16
- package/components/input/FileInput.vue +1 -1
- package/components/input/Input.vue +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,15 @@
|
|
|
10
10
|
|
|
11
11
|
## Version History
|
|
12
12
|
|
|
13
|
+
### v3.79.3
|
|
14
|
+
|
|
15
|
+
- :bug: Remove Debug Code
|
|
16
|
+
|
|
17
|
+
### v3.79.2
|
|
18
|
+
|
|
19
|
+
- :bug: Fix `ref` bug on inputs
|
|
20
|
+
- :rocket: Further improved Slidedown CSS
|
|
21
|
+
|
|
13
22
|
### v3.79.1
|
|
14
23
|
|
|
15
24
|
- :rocket: Fix a bunch of lints the new setup syntax uncovered
|
package/components/Slidedown.vue
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
class='hover-expandable rounded position-relative px-2 py-2'
|
|
4
|
-
:class='{
|
|
4
|
+
:class='{
|
|
5
|
+
"expanded": isExpanded
|
|
6
|
+
}'
|
|
5
7
|
>
|
|
6
8
|
<div class='mb-2'>
|
|
7
9
|
<slot />
|
|
@@ -25,7 +27,9 @@
|
|
|
25
27
|
size='24'
|
|
26
28
|
stroke='1.5'
|
|
27
29
|
class='arrow'
|
|
28
|
-
:class='{
|
|
30
|
+
:class='{
|
|
31
|
+
"expanded": isExpanded
|
|
32
|
+
}'
|
|
29
33
|
/>
|
|
30
34
|
</div>
|
|
31
35
|
</div>
|
|
@@ -42,16 +46,17 @@ const isExpanded = ref(false);
|
|
|
42
46
|
const contentWrapperRef = ref(null);
|
|
43
47
|
|
|
44
48
|
function toggle() {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
if (
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
isExpanded.value = !isExpanded.value;
|
|
50
|
+
|
|
51
|
+
const el = contentWrapperRef.value;
|
|
52
|
+
|
|
53
|
+
if (el) {
|
|
54
|
+
if (isExpanded.value) {
|
|
55
|
+
el.style.maxHeight = el.scrollHeight + 'px';
|
|
56
|
+
} else {
|
|
57
|
+
el.style.maxHeight = null;
|
|
58
|
+
}
|
|
53
59
|
}
|
|
54
|
-
}
|
|
55
60
|
};
|
|
56
61
|
</script>
|
|
57
62
|
|
|
@@ -61,15 +66,15 @@ function toggle() {
|
|
|
61
66
|
transition: border-color 0.2s ease;
|
|
62
67
|
}
|
|
63
68
|
|
|
64
|
-
.hover-expandable:not(.
|
|
65
|
-
border: 1px solid color-mix(in srgb, var(--tblr-border-color), white
|
|
69
|
+
.hover-expandable:not(.expanded):hover {
|
|
70
|
+
border: 1px solid color-mix(in srgb, var(--tblr-border-color), white 10%);
|
|
66
71
|
}
|
|
67
72
|
|
|
68
|
-
.hover-expandable:not(.
|
|
69
|
-
border-color: var(--tblr-
|
|
73
|
+
.hover-expandable:not(.expanded):hover .arrow-container {
|
|
74
|
+
border-color: color-mix(in srgb, var(--tblr-border-color), white 25%);
|
|
70
75
|
}
|
|
71
76
|
|
|
72
|
-
.hover-expandable:not(.
|
|
77
|
+
.hover-expandable:not(.expanded):hover .arrow {
|
|
73
78
|
color: var(--tblr-secondary-color, white);
|
|
74
79
|
}
|
|
75
80
|
|
|
@@ -97,6 +102,10 @@ function toggle() {
|
|
|
97
102
|
transition: background-color 0.2s ease, border-color 0.2s ease;
|
|
98
103
|
}
|
|
99
104
|
|
|
105
|
+
.arrow-container:hover {
|
|
106
|
+
border-color: var(--tblr-primary-rgb) !important;
|
|
107
|
+
}
|
|
108
|
+
|
|
100
109
|
.arrow {
|
|
101
110
|
transition: transform 0.3s ease-out, color 0.2s ease;
|
|
102
111
|
}
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
/>
|
|
37
37
|
</span>
|
|
38
38
|
<input
|
|
39
|
-
ref='
|
|
39
|
+
ref='textInput'
|
|
40
40
|
v-model='current'
|
|
41
41
|
:disabled='disabled'
|
|
42
42
|
:autocomplete='autocomplete'
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
</template>
|
|
70
70
|
<template v-else>
|
|
71
71
|
<textarea
|
|
72
|
-
ref='
|
|
72
|
+
ref='textInput'
|
|
73
73
|
v-model='current'
|
|
74
74
|
:disabled='disabled'
|
|
75
75
|
:autofocus='autofocus'
|