@fastkit/vui 0.18.33 → 0.19.0
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/vui.css +57 -62
- package/dist/vui.d.ts +470 -421
- package/dist/vui.mjs +14 -8
- package/dist/vui.mjs.map +1 -1
- package/package.json +27 -36
- package/src/components/VBusyImage/VBusyImage.tsx +11 -5
- package/src/components/VButton/VButton.tsx +0 -1
- package/src/components/VCard/VCard.tsx +1 -5
- package/src/components/VListTile/VListTile.tsx +0 -1
- package/src/plugin.tsx +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fastkit/vui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "A simple, extensible UI kit for Vue applications.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fastkit",
|
|
@@ -30,48 +30,39 @@
|
|
|
30
30
|
},
|
|
31
31
|
"./*": "./dist/*"
|
|
32
32
|
},
|
|
33
|
-
"main": "./dist/vui.mjs",
|
|
34
|
-
"types": "./dist/vui.d.ts",
|
|
35
|
-
"typesVersions": {
|
|
36
|
-
"*": {
|
|
37
|
-
".": [
|
|
38
|
-
"./dist/vui.d.ts"
|
|
39
|
-
]
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
33
|
"files": [
|
|
43
34
|
"dist",
|
|
44
35
|
"src"
|
|
45
36
|
],
|
|
46
37
|
"dependencies": {
|
|
47
|
-
"@fastkit/
|
|
48
|
-
"@fastkit/
|
|
49
|
-
"@fastkit/color-scheme
|
|
50
|
-
"@fastkit/helpers": "0.
|
|
51
|
-
"@fastkit/
|
|
52
|
-
"@fastkit/
|
|
53
|
-
"@fastkit/
|
|
54
|
-
"@fastkit/
|
|
55
|
-
"@fastkit/
|
|
56
|
-
"@fastkit/
|
|
57
|
-
"@fastkit/
|
|
58
|
-
"@fastkit/vue-
|
|
59
|
-
"@fastkit/vue-click-outside": "0.
|
|
60
|
-
"@fastkit/vue-
|
|
61
|
-
"@fastkit/vue-
|
|
62
|
-
"@fastkit/vue-
|
|
63
|
-
"@fastkit/vue-location": "0.
|
|
64
|
-
"@fastkit/vue-
|
|
65
|
-
"@fastkit/vue-
|
|
66
|
-
"@fastkit/vue-
|
|
67
|
-
"@fastkit/vue-
|
|
68
|
-
"@fastkit/vue-
|
|
69
|
-
"@fastkit/vue-
|
|
70
|
-
"@fastkit/vue-
|
|
71
|
-
"@fastkit/
|
|
38
|
+
"@fastkit/dom": "0.2.0",
|
|
39
|
+
"@fastkit/color-scheme-gen": "0.14.0",
|
|
40
|
+
"@fastkit/color-scheme": "2.0.0",
|
|
41
|
+
"@fastkit/helpers": "0.14.0",
|
|
42
|
+
"@fastkit/media-match": "2.0.0",
|
|
43
|
+
"@fastkit/icon-font": "2.0.0",
|
|
44
|
+
"@fastkit/tiny-logger": "0.14.0",
|
|
45
|
+
"@fastkit/rules": "0.14.0",
|
|
46
|
+
"@fastkit/vue-action": "0.3.0",
|
|
47
|
+
"@fastkit/media-match-gen": "0.14.0",
|
|
48
|
+
"@fastkit/vue-body-scroll-lock": "0.2.0",
|
|
49
|
+
"@fastkit/vue-app-layout": "0.15.0",
|
|
50
|
+
"@fastkit/vue-click-outside": "0.2.0",
|
|
51
|
+
"@fastkit/vue-keyboard": "0.2.0",
|
|
52
|
+
"@fastkit/vue-form-control": "0.20.0",
|
|
53
|
+
"@fastkit/vue-loading": "0.15.0",
|
|
54
|
+
"@fastkit/vue-location": "0.2.0",
|
|
55
|
+
"@fastkit/vue-color-scheme": "0.15.0",
|
|
56
|
+
"@fastkit/vue-media-match": "0.14.0",
|
|
57
|
+
"@fastkit/vue-resize": "0.2.0",
|
|
58
|
+
"@fastkit/vue-scroller": "0.15.0",
|
|
59
|
+
"@fastkit/vue-stack": "0.16.0",
|
|
60
|
+
"@fastkit/vue-transitions": "0.2.0",
|
|
61
|
+
"@fastkit/vue-utils": "0.15.0",
|
|
62
|
+
"@fastkit/stylebase": "0.13.1"
|
|
72
63
|
},
|
|
73
64
|
"peerDependencies": {
|
|
74
|
-
"vue": "^3.
|
|
65
|
+
"vue": "^3.4.0",
|
|
75
66
|
"vue-router": "^4.2.0"
|
|
76
67
|
},
|
|
77
68
|
"buildOptions": {
|
|
@@ -172,21 +172,26 @@ export const VBusyImage = defineComponent({
|
|
|
172
172
|
});
|
|
173
173
|
|
|
174
174
|
let booted = false;
|
|
175
|
+
const mounted = ref(false);
|
|
175
176
|
|
|
176
177
|
watch(
|
|
177
|
-
() =>
|
|
178
|
-
|
|
178
|
+
() =>
|
|
179
|
+
[ctx.attrs.src as string | null | undefined, mounted.value] as const,
|
|
180
|
+
([src, _mounted]) => {
|
|
181
|
+
if (!_mounted) return;
|
|
179
182
|
coverImageRef.value = undefined;
|
|
180
|
-
if (isAvailableSrc(
|
|
183
|
+
if (isAvailableSrc(src)) {
|
|
181
184
|
loadStateRef.value = 'loading';
|
|
182
185
|
if (props.cover) {
|
|
183
|
-
loadImage(
|
|
186
|
+
loadImage(src)
|
|
184
187
|
.then((image) => {
|
|
185
188
|
coverImageRef.value = image;
|
|
186
189
|
setManualState('load');
|
|
187
190
|
})
|
|
188
|
-
.catch((
|
|
191
|
+
.catch((_err) => {
|
|
189
192
|
setManualState('error');
|
|
193
|
+
// eslint-disable-next-line no-console
|
|
194
|
+
console.error(_err);
|
|
190
195
|
});
|
|
191
196
|
}
|
|
192
197
|
} else {
|
|
@@ -209,6 +214,7 @@ export const VBusyImage = defineComponent({
|
|
|
209
214
|
};
|
|
210
215
|
|
|
211
216
|
onMounted(() => {
|
|
217
|
+
mounted.value = true;
|
|
212
218
|
if (booted || props.cover) return;
|
|
213
219
|
|
|
214
220
|
const image = nodeRef.value;
|
|
@@ -122,7 +122,6 @@ export const VButton = defineComponent({
|
|
|
122
122
|
spacer.value ? `v-button--spacer-${spacer.value}` : undefined,
|
|
123
123
|
`v-button--${control.size.value}`,
|
|
124
124
|
`v-button--align-${props.align}`,
|
|
125
|
-
'clickable',
|
|
126
125
|
{
|
|
127
126
|
'v-button--loading': isLoading.value,
|
|
128
127
|
'v-button--icon': !!icon.value,
|
|
@@ -27,11 +27,7 @@ export const VCard = defineComponent({
|
|
|
27
27
|
const attrs = {
|
|
28
28
|
..._props.value,
|
|
29
29
|
...ctx.attrs,
|
|
30
|
-
class: [
|
|
31
|
-
'v-card',
|
|
32
|
-
ctx.attrs.class,
|
|
33
|
-
typeof ctx.attrs.onClick === 'function' && 'clickable',
|
|
34
|
-
],
|
|
30
|
+
class: ['v-card', ctx.attrs.class],
|
|
35
31
|
tag: hasLink ? VAction : 'div',
|
|
36
32
|
};
|
|
37
33
|
if (props.disabled) {
|
package/src/plugin.tsx
CHANGED
|
@@ -14,6 +14,7 @@ import { VueColorSchemePlugin } from '@fastkit/vue-color-scheme';
|
|
|
14
14
|
import { installVueAppLayout } from '@fastkit/vue-app-layout';
|
|
15
15
|
import { onAppUnmount } from '@fastkit/vue-utils';
|
|
16
16
|
import { getDocumentScroller } from '@fastkit/vue-scroller';
|
|
17
|
+
import { setDefaultActionableClassName } from '@fastkit/vue-action';
|
|
17
18
|
import {
|
|
18
19
|
VuiService,
|
|
19
20
|
VuiServiceOptions,
|
|
@@ -22,6 +23,7 @@ import {
|
|
|
22
23
|
VuiInjectionKey,
|
|
23
24
|
} from './service';
|
|
24
25
|
|
|
26
|
+
setDefaultActionableClassName('clickable');
|
|
25
27
|
const scroller = getDocumentScroller();
|
|
26
28
|
|
|
27
29
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|