@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/dist/vui.mjs
CHANGED
|
@@ -26,7 +26,7 @@ import { VScroller, getDocumentScroller } from '@fastkit/vue-scroller';
|
|
|
26
26
|
export * from '@fastkit/vue-scroller';
|
|
27
27
|
import { defineMenuComponent, defineDialogComponent, createStackActionProps, useStackAction, defineSnackbarComponent, createStackableDefine, useStackControl, VDynamicStacks, BUILTIN_ACTION_HANDLERS, installVueStackPlugin } from '@fastkit/vue-stack';
|
|
28
28
|
export * from '@fastkit/vue-stack';
|
|
29
|
-
import { useActionable, VAction, actionableInheritProps, setDefaultRouterLink } from '@fastkit/vue-action';
|
|
29
|
+
import { useActionable, VAction, actionableInheritProps, setDefaultActionableClassName, setDefaultRouterLink } from '@fastkit/vue-action';
|
|
30
30
|
export * from '@fastkit/vue-action';
|
|
31
31
|
export { VAction as VLink } from '@fastkit/vue-action';
|
|
32
32
|
import { createPropsOptions, defineSlots, renderSlotOrEmpty, isFragment, resolveNumberish, resolveVNodeChildOrSlots, rawNumberPropType, onAppUnmount } from '@fastkit/vue-utils';
|
|
@@ -975,16 +975,20 @@ var VBusyImage = defineComponent({
|
|
|
975
975
|
return styles;
|
|
976
976
|
});
|
|
977
977
|
let booted = false;
|
|
978
|
-
|
|
978
|
+
const mounted = ref(false);
|
|
979
|
+
watch(() => [ctx.attrs.src, mounted.value], ([src, _mounted]) => {
|
|
980
|
+
if (!_mounted)
|
|
981
|
+
return;
|
|
979
982
|
coverImageRef.value = void 0;
|
|
980
|
-
if (isAvailableSrc(
|
|
983
|
+
if (isAvailableSrc(src)) {
|
|
981
984
|
loadStateRef.value = "loading";
|
|
982
985
|
if (props12.cover) {
|
|
983
|
-
loadImage(
|
|
986
|
+
loadImage(src).then((image) => {
|
|
984
987
|
coverImageRef.value = image;
|
|
985
988
|
setManualState("load");
|
|
986
|
-
}).catch((
|
|
989
|
+
}).catch((_err) => {
|
|
987
990
|
setManualState("error");
|
|
991
|
+
console.error(_err);
|
|
988
992
|
});
|
|
989
993
|
}
|
|
990
994
|
} else {
|
|
@@ -1003,6 +1007,7 @@ var VBusyImage = defineComponent({
|
|
|
1003
1007
|
ctx.emit(loadType, ev);
|
|
1004
1008
|
};
|
|
1005
1009
|
onMounted(() => {
|
|
1010
|
+
mounted.value = true;
|
|
1006
1011
|
if (booted || props12.cover)
|
|
1007
1012
|
return;
|
|
1008
1013
|
const image = nodeRef.value;
|
|
@@ -1426,7 +1431,7 @@ var VCard = defineComponent({
|
|
|
1426
1431
|
const attrs = {
|
|
1427
1432
|
..._props.value,
|
|
1428
1433
|
...ctx.attrs,
|
|
1429
|
-
class: ["v-card", ctx.attrs.class
|
|
1434
|
+
class: ["v-card", ctx.attrs.class],
|
|
1430
1435
|
tag: hasLink ? VAction : "div"
|
|
1431
1436
|
};
|
|
1432
1437
|
if (props12.disabled) {
|
|
@@ -1520,7 +1525,7 @@ var VButton = defineComponent({
|
|
|
1520
1525
|
return;
|
|
1521
1526
|
return _spacer === true ? "left" : _spacer;
|
|
1522
1527
|
});
|
|
1523
|
-
const classes = computed(() => [color.colorClasses.value, spacer.value ? `v-button--spacer-${spacer.value}` : void 0, `v-button--${control.size.value}`, `v-button--align-${props12.align}`,
|
|
1528
|
+
const classes = computed(() => [color.colorClasses.value, spacer.value ? `v-button--spacer-${spacer.value}` : void 0, `v-button--${control.size.value}`, `v-button--align-${props12.align}`, {
|
|
1524
1529
|
"v-button--loading": isLoading.value,
|
|
1525
1530
|
"v-button--icon": !!icon.value,
|
|
1526
1531
|
"v-button--rounded": props12.rounded,
|
|
@@ -1918,7 +1923,7 @@ var VListTile = defineComponent({
|
|
|
1918
1923
|
const classes = computed(() => {
|
|
1919
1924
|
const _color = color.value;
|
|
1920
1925
|
const hasColor = !!_color.value;
|
|
1921
|
-
return [color.value.className,
|
|
1926
|
+
return [color.value.className, {
|
|
1922
1927
|
"v-list-tile--plain": !hasColor,
|
|
1923
1928
|
"v-list-tile--has-color": hasColor,
|
|
1924
1929
|
"v-list-tile--active": isActive.value
|
|
@@ -4786,6 +4791,7 @@ var VuiService = class {
|
|
|
4786
4791
|
return action;
|
|
4787
4792
|
}
|
|
4788
4793
|
};
|
|
4794
|
+
setDefaultActionableClassName("clickable");
|
|
4789
4795
|
var scroller = getDocumentScroller();
|
|
4790
4796
|
function mergeVuiPluginOptions(base, override) {
|
|
4791
4797
|
if (!override)
|