@fastkit/vui 0.16.0 → 0.16.1
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 +4 -2
- package/dist/vui.d.ts +1 -6
- package/dist/vui.mjs +14 -24
- package/dist/vui.mjs.map +1 -1
- package/package.json +2 -2
- package/src/components/VApp/VApp.tsx +3 -3
- package/src/components/VControlField/VControlField.tsx +13 -25
- package/src/components/VFormControl/VFormControl.tsx +3 -5
- package/src/components/VSelect/VSelect.tsx +1 -1
- package/src/components/VTooltip/VTooltip.scss +6 -2
package/dist/vui.css
CHANGED
|
@@ -703,11 +703,13 @@
|
|
|
703
703
|
}
|
|
704
704
|
.v-tooltip{
|
|
705
705
|
--menu-shadow:var(--tooltip-shadow);
|
|
706
|
-
background:var(--tooltip-background) !important;
|
|
707
706
|
border-radius:var(--tooltip-radius);
|
|
708
|
-
color:var(--tooltip-color) !important;
|
|
709
707
|
font-size:var(--tooltip-font-size);
|
|
710
708
|
}
|
|
709
|
+
.v-tooltip .v-menu__body{
|
|
710
|
+
background:var(--tooltip-background) !important;
|
|
711
|
+
color:var(--tooltip-color) !important;
|
|
712
|
+
}
|
|
711
713
|
.v-tooltip__inner{
|
|
712
714
|
display:inline-block;
|
|
713
715
|
padding:var(--tooltip-padding);
|
package/dist/vui.d.ts
CHANGED
|
@@ -4235,12 +4235,7 @@ declare const VControlField: vue.DefineComponent<{
|
|
|
4235
4235
|
type: (StringConstructor | NumberConstructor)[];
|
|
4236
4236
|
default: number;
|
|
4237
4237
|
};
|
|
4238
|
-
}, {
|
|
4239
|
-
classes: vue.ComputedRef<any[]>;
|
|
4240
|
-
renderAdornment: (position: AdornmentPosition) => JSX.Element | undefined;
|
|
4241
|
-
hostElRef: () => vue.Ref<HTMLElement | null>;
|
|
4242
|
-
handleClick: (ev: MouseEvent) => void;
|
|
4243
|
-
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
4238
|
+
}, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
4244
4239
|
click: (ev: MouseEvent) => boolean;
|
|
4245
4240
|
}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
4246
4241
|
error: BooleanConstructor;
|
package/dist/vui.mjs
CHANGED
|
@@ -24,7 +24,7 @@ import { createFormControlSettings, useFormControl, useParentFormNode, createFor
|
|
|
24
24
|
export * from '@fastkit/vue-form-control';
|
|
25
25
|
import { getDocumentScroller, useVScrollerRef, VScroller } from '@fastkit/vue-scroller';
|
|
26
26
|
export * from '@fastkit/vue-scroller';
|
|
27
|
-
import { defineMenuComponent, defineDialogComponent, createStackActionProps, useStackAction, defineSnackbarComponent, createStackableDefine, useStackControl,
|
|
27
|
+
import { defineMenuComponent, defineDialogComponent, createStackActionProps, useStackAction, defineSnackbarComponent, createStackableDefine, useStackControl, VStackContainer, BUILTIN_ACTION_HANDLERS, installVueStackPlugin } from '@fastkit/vue-stack';
|
|
28
28
|
export * from '@fastkit/vue-stack';
|
|
29
29
|
import { useActionable, VAction, actionableInheritProps, setDefaultRouterLink } from '@fastkit/vue-action';
|
|
30
30
|
export * from '@fastkit/vue-action';
|
|
@@ -465,6 +465,7 @@ var VFormControl = defineComponent({
|
|
|
465
465
|
"v-form-control--valid": control.valid
|
|
466
466
|
}, colorProvider.className(props11.error ? "error" : control.invalid && !control.readonly ? "error" : "primary")]);
|
|
467
467
|
const getRequiredChip = createRequiredChipRenderer(() => control.required, props11, vui);
|
|
468
|
+
const handleClick = (ev) => ctx.emit("clickLabel", ev, control);
|
|
468
469
|
return () => {
|
|
469
470
|
const label = control.renderLabel();
|
|
470
471
|
const message = control.renderMessage();
|
|
@@ -475,9 +476,7 @@ var VFormControl = defineComponent({
|
|
|
475
476
|
"class": ["v-form-control", classes.value]
|
|
476
477
|
}, [label && createVNode("label", {
|
|
477
478
|
"class": "v-form-control__label",
|
|
478
|
-
"onClick":
|
|
479
|
-
ctx.emit("clickLabel", ev, control);
|
|
480
|
-
}
|
|
479
|
+
"onClick": handleClick
|
|
481
480
|
}, [label, getRequiredChip(), hinttip && createVNode(VTooltip, {
|
|
482
481
|
"y": "top",
|
|
483
482
|
"openOnHover": _hinttipDelay !== "click",
|
|
@@ -2368,25 +2367,16 @@ var VControlField = defineComponent({
|
|
|
2368
2367
|
"class": ["v-control-field__adornment", `v-control-field__adornment--${position}`]
|
|
2369
2368
|
}, [child]);
|
|
2370
2369
|
};
|
|
2371
|
-
const handleClick = (ev) =>
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2370
|
+
const handleClick = (ev) => ctx.emit("click", ev);
|
|
2371
|
+
return () => {
|
|
2372
|
+
return createVNode("div", {
|
|
2373
|
+
"class": classes.value,
|
|
2374
|
+
"onClick": handleClick,
|
|
2375
|
+
"ref": hostElRef
|
|
2376
|
+
}, [renderAdornment("start"), createVNode("div", {
|
|
2377
|
+
"class": "v-control-field__body"
|
|
2378
|
+
}, [ctx.slots.default?.()]), renderAdornment("end")]);
|
|
2380
2379
|
};
|
|
2381
|
-
},
|
|
2382
|
-
render() {
|
|
2383
|
-
return createVNode("div", {
|
|
2384
|
-
"class": this.classes,
|
|
2385
|
-
"onClick": this.handleClick,
|
|
2386
|
-
"ref": this.hostElRef()
|
|
2387
|
-
}, [this.renderAdornment("start"), createVNode("div", {
|
|
2388
|
-
"class": "v-control-field__body"
|
|
2389
|
-
}, [this.$slots.default?.()]), this.renderAdornment("end")]);
|
|
2390
2380
|
}
|
|
2391
2381
|
});
|
|
2392
2382
|
var VTextCounter = defineComponent({
|
|
@@ -2785,7 +2775,7 @@ var VSelect = defineComponent({
|
|
|
2785
2775
|
return slot && slot(vui);
|
|
2786
2776
|
});
|
|
2787
2777
|
const focus = (opts) => {
|
|
2788
|
-
fieldRef.value
|
|
2778
|
+
fieldRef.value?.focus?.(opts);
|
|
2789
2779
|
};
|
|
2790
2780
|
const renderSelections = (selectedItems) => {
|
|
2791
2781
|
const selectionSlot = ctx.slots.selection;
|
|
@@ -4512,7 +4502,7 @@ var VApp = defineComponent({
|
|
|
4512
4502
|
setup(props11, ctx) {
|
|
4513
4503
|
useInjectTheme();
|
|
4514
4504
|
return () => {
|
|
4515
|
-
return createVNode(
|
|
4505
|
+
return createVNode(VStackContainer, null, {
|
|
4516
4506
|
default: () => [createVNode(VAppLayout, null, ctx.slots)]
|
|
4517
4507
|
});
|
|
4518
4508
|
};
|