@quaffui/quaff 1.0.0-beta5 → 1.0.0-beta6
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.
|
@@ -106,11 +106,14 @@
|
|
|
106
106
|
value = false;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
+
function preventAndStop<T extends Event>(e: T) {
|
|
110
|
+
e.preventDefault();
|
|
111
|
+
e.stopPropagation();
|
|
112
|
+
}
|
|
113
|
+
|
|
109
114
|
function onclick(e: QEvent<MouseEvent, HTMLElement>) {
|
|
110
|
-
console.log("QExpansionItem: onclick", e);
|
|
111
115
|
if (disabled) {
|
|
112
|
-
e
|
|
113
|
-
e.stopPropagation();
|
|
116
|
+
preventAndStop(e);
|
|
114
117
|
return;
|
|
115
118
|
}
|
|
116
119
|
|
|
@@ -119,7 +122,7 @@
|
|
|
119
122
|
|
|
120
123
|
function onIconClick(e: QEvent<MouseEvent, HTMLElement>) {
|
|
121
124
|
if (disabled) {
|
|
122
|
-
e
|
|
125
|
+
preventAndStop(e);
|
|
123
126
|
return;
|
|
124
127
|
}
|
|
125
128
|
|
|
@@ -132,7 +135,7 @@
|
|
|
132
135
|
|
|
133
136
|
function onkeydown(e: KeyboardEvent) {
|
|
134
137
|
if (disabled) {
|
|
135
|
-
e
|
|
138
|
+
preventAndStop(e);
|
|
136
139
|
return;
|
|
137
140
|
}
|
|
138
141
|
|
|
@@ -146,7 +149,7 @@
|
|
|
146
149
|
}
|
|
147
150
|
|
|
148
151
|
if (to || href) {
|
|
149
|
-
e
|
|
152
|
+
preventAndStop(e);
|
|
150
153
|
goto((to || href) as string);
|
|
151
154
|
return;
|
|
152
155
|
}
|
|
@@ -163,7 +166,7 @@
|
|
|
163
166
|
|
|
164
167
|
function onIconKeydown(e: KeyboardEvent) {
|
|
165
168
|
if (disabled) {
|
|
166
|
-
e
|
|
169
|
+
preventAndStop(e);
|
|
167
170
|
return;
|
|
168
171
|
}
|
|
169
172
|
|
|
@@ -176,8 +179,7 @@
|
|
|
176
179
|
return;
|
|
177
180
|
}
|
|
178
181
|
|
|
179
|
-
e
|
|
180
|
-
e.stopPropagation();
|
|
182
|
+
preventAndStop(e);
|
|
181
183
|
|
|
182
184
|
const clickEvent = new MouseEvent("click", {
|
|
183
185
|
relatedTarget: e.target as HTMLElement,
|
|
@@ -211,11 +213,15 @@
|
|
|
211
213
|
bind:open={value}
|
|
212
214
|
{...props}
|
|
213
215
|
{name}
|
|
214
|
-
aria-disabled={disabled}
|
|
216
|
+
aria-disabled={disabled || undefined}
|
|
215
217
|
class={["q-expansion-item", value && "q-expansion-item--expanded"]}
|
|
216
218
|
style:--duration="{duration}ms"
|
|
217
219
|
>
|
|
218
|
-
<summary
|
|
220
|
+
<summary
|
|
221
|
+
tabindex={-1}
|
|
222
|
+
{...summaryAttributes}
|
|
223
|
+
onmousedown={disabled ? preventAndStop : undefined}
|
|
224
|
+
>
|
|
219
225
|
{#if summary}
|
|
220
226
|
<QItem
|
|
221
227
|
{dense}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "1.0.0-
|
|
1
|
+
declare const _default: "1.0.0-beta6";
|
|
2
2
|
export default _default;
|
package/dist/helpers/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "1.0.0-
|
|
1
|
+
export default "1.0.0-beta6";
|