@rio-m3e/vue 0.3.0 → 0.5.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/button/Button.vue.js +12 -7
- package/dist/checkbox/Checkbox.vue.d.ts +11 -0
- package/dist/checkbox/Checkbox.vue.js +70 -0
- package/dist/date-picker/DatePicker.vue.d.ts +67 -0
- package/dist/date-picker/DatePicker.vue.js +238 -0
- package/dist/date-picker/DatePickerCalendar.vue.js +146 -0
- package/dist/date-picker/DatePickerDialog.vue.d.ts +58 -0
- package/dist/date-picker/DatePickerDialog.vue.js +199 -0
- package/dist/dialog/Dialog.vue.js +13 -4
- package/dist/icon-button/IconButton.vue.js +8 -3
- package/dist/index.d.ts +24 -11
- package/dist/index.js +24 -11
- package/dist/locale/LocaleProvider.vue.d.ts +16 -0
- package/dist/locale/LocaleProvider.vue.js +14 -0
- package/dist/locale/locale.d.ts +16 -0
- package/dist/locale/locale.js +27 -0
- package/dist/menu/SubMenu.vue.js +10 -2
- package/dist/radio/Radio.vue.d.ts +11 -0
- package/dist/radio/Radio.vue.js +70 -0
- package/dist/radio/RadioGroup.vue.d.ts +29 -0
- package/dist/radio/RadioGroup.vue.js +45 -0
- package/dist/radio/context.js +3 -0
- package/dist/rio/rio.d.ts +37 -0
- package/dist/rio/rio.js +44 -0
- package/dist/select/Select.vue.d.ts +46 -0
- package/dist/select/Select.vue.js +178 -0
- package/dist/select/SelectOption.vue.d.ts +30 -0
- package/dist/select/SelectOption.vue.js +58 -0
- package/dist/select/context.js +3 -0
- package/dist/text-field/TextField.vue.d.ts +32 -0
- package/dist/text-field/TextField.vue.js +124 -0
- package/dist/time-picker/TimeInput.vue.d.ts +25 -0
- package/dist/time-picker/TimeInput.vue.js +71 -0
- package/dist/time-picker/TimePickerBody.vue.js +46 -0
- package/dist/time-picker/TimePickerDialog.vue.d.ts +46 -0
- package/dist/time-picker/TimePickerDialog.vue.js +142 -0
- package/dist/tooltip/Tooltip.vue.js +22 -9
- package/package.json +4 -4
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { vRipple } from "../ripple/ripple.js";
|
|
2
|
+
import { vShapeMorph } from "../shape-morph/shape-morph.js";
|
|
3
|
+
import { Fragment, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderList, toDisplayString, unref, withDirectives, withKeys } from "vue";
|
|
4
|
+
// src/time-picker/TimePickerBody.vue
|
|
5
|
+
const _hoisted_1 = ["value"];
|
|
6
|
+
const _hoisted_2 = ["value"];
|
|
7
|
+
const _hoisted_3 = ["onClick"];
|
|
8
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
9
|
+
__name: "TimePickerBody",
|
|
10
|
+
props: { picker: {} },
|
|
11
|
+
setup(__props) {
|
|
12
|
+
return (_ctx, _cache) => {
|
|
13
|
+
return openBlock(), createElementBlock("div", normalizeProps(guardReactiveProps(__props.picker.parts.body())), [
|
|
14
|
+
createElementVNode("div", normalizeProps(guardReactiveProps(__props.picker.parts.fields())), [__props.picker.textInput() ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
15
|
+
createElementVNode("span", normalizeProps(guardReactiveProps(__props.picker.parts.unit())), [createElementVNode("input", mergeProps(__props.picker.parts.hourField(), {
|
|
16
|
+
value: __props.picker.hourText(),
|
|
17
|
+
onInput: _cache[0] || (_cache[0] = ($event) => __props.picker.hourInput($event.target.value)),
|
|
18
|
+
onChange: _cache[1] || (_cache[1] = (...args) => __props.picker.commitText && __props.picker.commitText(...args)),
|
|
19
|
+
onKeydown: _cache[2] || (_cache[2] = withKeys((...args) => __props.picker.commitText && __props.picker.commitText(...args), ["enter"]))
|
|
20
|
+
}), null, 16, _hoisted_1), createElementVNode("span", normalizeProps(guardReactiveProps(__props.picker.parts.hourLabel())), toDisplayString(__props.picker.fieldNames()[0]), 17)], 16),
|
|
21
|
+
createElementVNode("span", normalizeProps(guardReactiveProps(__props.picker.parts.separator())), ":", 16),
|
|
22
|
+
createElementVNode("span", normalizeProps(guardReactiveProps(__props.picker.parts.unit())), [createElementVNode("input", mergeProps(__props.picker.parts.minuteField(), {
|
|
23
|
+
value: __props.picker.minuteText(),
|
|
24
|
+
onInput: _cache[3] || (_cache[3] = ($event) => __props.picker.minuteInput($event.target.value)),
|
|
25
|
+
onChange: _cache[4] || (_cache[4] = (...args) => __props.picker.commitText && __props.picker.commitText(...args)),
|
|
26
|
+
onKeydown: _cache[5] || (_cache[5] = withKeys((...args) => __props.picker.commitText && __props.picker.commitText(...args), ["enter"]))
|
|
27
|
+
}), null, 16, _hoisted_2), createElementVNode("span", normalizeProps(guardReactiveProps(__props.picker.parts.minuteLabel())), toDisplayString(__props.picker.fieldNames()[1]), 17)], 16)
|
|
28
|
+
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
29
|
+
withDirectives((openBlock(), createElementBlock("button", mergeProps(__props.picker.parts.hourField(), { onClick: _cache[6] || (_cache[6] = ($event) => __props.picker.selectField("hour")) }), [createTextVNode(toDisplayString(__props.picker.hourText()), 1)], 16)), [[unref(vRipple)]]),
|
|
30
|
+
createElementVNode("span", normalizeProps(guardReactiveProps(__props.picker.parts.separator())), ":", 16),
|
|
31
|
+
withDirectives((openBlock(), createElementBlock("button", mergeProps(__props.picker.parts.minuteField(), { onClick: _cache[7] || (_cache[7] = ($event) => __props.picker.selectField("minute")) }), [createTextVNode(toDisplayString(__props.picker.minuteText()), 1)], 16)), [[unref(vRipple)]])
|
|
32
|
+
], 64))], 16),
|
|
33
|
+
__props.picker.showsPeriod() ? (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 0 }, __props.picker.parts.period())), [withDirectives((openBlock(), createElementBlock("button", mergeProps(__props.picker.parts.am(), { onClick: _cache[8] || (_cache[8] = ($event) => __props.picker.selectPeriod(false)) }), [createTextVNode(toDisplayString(__props.picker.periodNames()[0]) + " ", 1), createElementVNode("span", normalizeProps(guardReactiveProps(__props.picker.parts.periodTouch())), null, 16)], 16)), [[unref(vRipple)], [unref(vShapeMorph)]]), withDirectives((openBlock(), createElementBlock("button", mergeProps(__props.picker.parts.pm(), { onClick: _cache[9] || (_cache[9] = ($event) => __props.picker.selectPeriod(true)) }), [createTextVNode(toDisplayString(__props.picker.periodNames()[1]) + " ", 1), createElementVNode("span", normalizeProps(guardReactiveProps(__props.picker.parts.periodTouch())), null, 16)], 16)), [[unref(vRipple)], [unref(vShapeMorph)]])], 16)) : createCommentVNode("v-if", true),
|
|
34
|
+
__props.picker.showsDial() ? (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 1 }, __props.picker.parts.dial())), [
|
|
35
|
+
createElementVNode("span", normalizeProps(guardReactiveProps(__props.picker.parts.dialTrack())), null, 16),
|
|
36
|
+
createElementVNode("span", normalizeProps(guardReactiveProps(__props.picker.parts.dialHandle())), null, 16),
|
|
37
|
+
createElementVNode("span", normalizeProps(guardReactiveProps(__props.picker.parts.dialCenter())), null, 16),
|
|
38
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.picker.dialItems(), (item) => {
|
|
39
|
+
return openBlock(), createElementBlock("button", mergeProps({ key: `${item.value}` }, { ref_for: true }, __props.picker.parts.dialItem(item), { onClick: ($event) => __props.picker.handleNumberClick($event, item.value) }), toDisplayString(item.label), 17, _hoisted_3);
|
|
40
|
+
}), 128))
|
|
41
|
+
], 16)) : createCommentVNode("v-if", true)
|
|
42
|
+
], 16);
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { HourCycle, TimePickerLayout, TimePickerMessages, TimePickerMode } from "@rio-m3e/core";
|
|
2
|
+
import "@rio-m3e/styles/base/focus-ring.css";
|
|
3
|
+
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
4
|
+
import "@rio-m3e/styles/base/state-layer.css";
|
|
5
|
+
import "@rio-m3e/styles/dialog.css";
|
|
6
|
+
import "@rio-m3e/styles/time-picker.css";
|
|
7
|
+
type __VLS_Props = {
|
|
8
|
+
/** A language tag. Without it, the one provided, or the document's, or the browser's. */
|
|
9
|
+
locale?: string;
|
|
10
|
+
/** Overrides the language's clock: 12 hours with AM and PM, or 24. */
|
|
11
|
+
hourCycle?: HourCycle;
|
|
12
|
+
/** The dial beside the fields, or below them. Defaults to `'auto'`, from the window's height. */
|
|
13
|
+
layout?: TimePickerLayout;
|
|
14
|
+
/** What each opening starts in: the dial, or the text input. Defaults to `'dial'`. */
|
|
15
|
+
initialMode?: TimePickerMode;
|
|
16
|
+
/** Replaces any of the text the dialog shows. */
|
|
17
|
+
messages?: Partial<TimePickerMessages>;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_Slots = {
|
|
20
|
+
/** The mode button's icon on the dial, which switches to the text input */
|
|
21
|
+
'keyboard-icon'?: () => unknown;
|
|
22
|
+
/** The mode button's icon in the text input, which switches to the dial */
|
|
23
|
+
'clock-icon'?: () => unknown;
|
|
24
|
+
};
|
|
25
|
+
type __VLS_ModelProps = {
|
|
26
|
+
/** The time, `HH:MM` on a 24-hour clock, with `v-model`. It changes on OK. */
|
|
27
|
+
modelValue?: string | undefined;
|
|
28
|
+
/** Whether the dialog is shown, with `v-model:open`. */
|
|
29
|
+
'open'?: boolean;
|
|
30
|
+
};
|
|
31
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
32
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
33
|
+
"update:open": (value: boolean) => any;
|
|
34
|
+
"update:modelValue": (value: string | undefined) => any;
|
|
35
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
36
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
37
|
+
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
38
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
39
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
40
|
+
declare const _default: typeof __VLS_export;
|
|
41
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
42
|
+
new (): {
|
|
43
|
+
$slots: S;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export { _default as default };
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import _sfc_main$1 from "../button/Button.vue.js";
|
|
2
|
+
import _sfc_main$2 from "../icon-button/IconButton.vue.js";
|
|
3
|
+
import { useLocale, useMessages } from "../locale/locale.js";
|
|
4
|
+
import _sfc_main$3 from "./TimePickerBody.vue.js";
|
|
5
|
+
import { Fragment, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, normalizeProps, onBeforeUnmount, onMounted, openBlock, reactive, ref, renderSlot, toDisplayString, unref, useId, useModel, useTemplateRef, watch, withCtx, withModifiers } from "vue";
|
|
6
|
+
import { attachDialog, attachTimePicker, createTimePicker, initialTimeState } from "@rio-m3e/core";
|
|
7
|
+
import "@rio-m3e/styles/base/focus-ring.css";
|
|
8
|
+
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
9
|
+
import "@rio-m3e/styles/base/state-layer.css";
|
|
10
|
+
import "@rio-m3e/styles/dialog.css";
|
|
11
|
+
import "@rio-m3e/styles/time-picker.css";
|
|
12
|
+
// src/time-picker/TimePickerDialog.vue
|
|
13
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
14
|
+
__name: "TimePickerDialog",
|
|
15
|
+
props: /*@__PURE__*/ mergeModels({
|
|
16
|
+
locale: {},
|
|
17
|
+
hourCycle: {},
|
|
18
|
+
layout: {},
|
|
19
|
+
initialMode: {},
|
|
20
|
+
messages: {}
|
|
21
|
+
}, {
|
|
22
|
+
"modelValue": {},
|
|
23
|
+
"modelModifiers": {},
|
|
24
|
+
"open": {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: false
|
|
27
|
+
},
|
|
28
|
+
"openModifiers": {}
|
|
29
|
+
}),
|
|
30
|
+
emits: ["update:modelValue", "update:open"],
|
|
31
|
+
setup(__props) {
|
|
32
|
+
const props = __props;
|
|
33
|
+
/** The time, `HH:MM` on a 24-hour clock, with `v-model`. It changes on OK. */
|
|
34
|
+
const model = useModel(__props, "modelValue");
|
|
35
|
+
/** Whether the dialog is shown, with `v-model:open`. */
|
|
36
|
+
const open = useModel(__props, "open");
|
|
37
|
+
const locale = useLocale(() => props.locale);
|
|
38
|
+
const messages = useMessages("timePicker", locale, () => props.messages);
|
|
39
|
+
const state = reactive(initialTimeState(model.value));
|
|
40
|
+
const rendered = ref(open.value);
|
|
41
|
+
const id = useId();
|
|
42
|
+
const picker = createTimePicker({
|
|
43
|
+
variant: "dialog",
|
|
44
|
+
props: () => ({
|
|
45
|
+
value: model.value,
|
|
46
|
+
open: open.value,
|
|
47
|
+
locale: locale.value,
|
|
48
|
+
hourCycle: props.hourCycle,
|
|
49
|
+
layout: props.layout,
|
|
50
|
+
initialMode: props.initialMode,
|
|
51
|
+
rendered: rendered.value
|
|
52
|
+
}),
|
|
53
|
+
messages: () => messages.value,
|
|
54
|
+
state: () => state,
|
|
55
|
+
ids: { error: `${id}-error` },
|
|
56
|
+
onChange: (next) => model.value = next,
|
|
57
|
+
onOpenChange: (next) => open.value = next,
|
|
58
|
+
onStateChange: (next) => Object.assign(state, next)
|
|
59
|
+
});
|
|
60
|
+
if (open.value) picker.opened();
|
|
61
|
+
watch(open, (next) => {
|
|
62
|
+
if (!next) return;
|
|
63
|
+
picker.opened();
|
|
64
|
+
rendered.value = true;
|
|
65
|
+
});
|
|
66
|
+
const root = useTemplateRef("root");
|
|
67
|
+
let dialogHandle;
|
|
68
|
+
let handle;
|
|
69
|
+
onMounted(() => {
|
|
70
|
+
dialogHandle = attachDialog(root.value, {
|
|
71
|
+
onOpenChange: (next) => open.value = next,
|
|
72
|
+
onClosed: () => {
|
|
73
|
+
if (!open.value) rendered.value = false;
|
|
74
|
+
},
|
|
75
|
+
initialFocus: () => root.value?.querySelector(".rio-time-picker__field")
|
|
76
|
+
});
|
|
77
|
+
dialogHandle.sync(open.value);
|
|
78
|
+
handle = attachTimePicker(root.value, {
|
|
79
|
+
selection: () => state.selection,
|
|
80
|
+
hourCycle: picker.hourCycle,
|
|
81
|
+
onPick: picker.dialPick,
|
|
82
|
+
onPeriod: picker.selectPeriod
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
watch(open, (next) => dialogHandle?.sync(next), { flush: "post" });
|
|
86
|
+
watch(state, () => handle?.sync(), { flush: "post" });
|
|
87
|
+
onBeforeUnmount(() => {
|
|
88
|
+
dialogHandle?.detach();
|
|
89
|
+
handle?.detach();
|
|
90
|
+
});
|
|
91
|
+
const onKeydown = (event) => {
|
|
92
|
+
if (event.key !== "Enter" || state.mode !== "input") return;
|
|
93
|
+
if (!event.target.matches("input")) return;
|
|
94
|
+
event.preventDefault();
|
|
95
|
+
picker.confirm();
|
|
96
|
+
};
|
|
97
|
+
return (_ctx, _cache) => {
|
|
98
|
+
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(" Clicks and presses stay in the dialog, as in RioDialog. "), createElementVNode("dialog", mergeProps({
|
|
99
|
+
ref_key: "root",
|
|
100
|
+
ref: root
|
|
101
|
+
}, unref(picker).parts.root(), {
|
|
102
|
+
onKeydown,
|
|
103
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {}, ["stop"])),
|
|
104
|
+
onAuxclick: _cache[1] || (_cache[1] = withModifiers(() => {}, ["stop"])),
|
|
105
|
+
onDblclick: _cache[2] || (_cache[2] = withModifiers(() => {}, ["stop"])),
|
|
106
|
+
onPointerdown: _cache[3] || (_cache[3] = withModifiers(() => {}, ["stop"])),
|
|
107
|
+
onPointerup: _cache[4] || (_cache[4] = withModifiers(() => {}, ["stop"])),
|
|
108
|
+
onMousedown: _cache[5] || (_cache[5] = withModifiers(() => {}, ["stop"])),
|
|
109
|
+
onMouseup: _cache[6] || (_cache[6] = withModifiers(() => {}, ["stop"])),
|
|
110
|
+
onContextmenu: _cache[7] || (_cache[7] = withModifiers(() => {}, ["stop"]))
|
|
111
|
+
}), [rendered.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
112
|
+
createVNode(_sfc_main$3, { picker: unref(picker) }, null, 8, ["picker"]),
|
|
113
|
+
unref(picker).showsError() ? (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 0 }, unref(picker).parts.error())), toDisplayString(unref(picker).error()), 17)) : createCommentVNode("v-if", true),
|
|
114
|
+
createElementVNode("div", normalizeProps(guardReactiveProps(unref(picker).parts.actions())), [
|
|
115
|
+
createVNode(_sfc_main$2, {
|
|
116
|
+
variant: "standard",
|
|
117
|
+
label: unref(picker).modeButtonLabel(),
|
|
118
|
+
onClick: unref(picker).switchMode
|
|
119
|
+
}, {
|
|
120
|
+
default: withCtx(() => [state.mode === "dial" ? renderSlot(_ctx.$slots, "keyboard-icon", {}, void 0, void 0, 0) : renderSlot(_ctx.$slots, "clock-icon", {}, void 0, void 0, 1)]),
|
|
121
|
+
_: 3
|
|
122
|
+
}, 8, ["label", "onClick"]),
|
|
123
|
+
createVNode(_sfc_main$1, {
|
|
124
|
+
variant: "text",
|
|
125
|
+
onClick: unref(picker).cancel
|
|
126
|
+
}, {
|
|
127
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(messages).cancel), 1)]),
|
|
128
|
+
_: 1
|
|
129
|
+
}, 8, ["onClick"]),
|
|
130
|
+
createVNode(_sfc_main$1, {
|
|
131
|
+
variant: "text",
|
|
132
|
+
onClick: unref(picker).confirm
|
|
133
|
+
}, {
|
|
134
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(messages).ok), 1)]),
|
|
135
|
+
_: 1
|
|
136
|
+
}, 8, ["onClick"])
|
|
137
|
+
], 16)
|
|
138
|
+
], 64)) : createCommentVNode("v-if", true)], 16)], 2112);
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
export { _sfc_main as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, normalizeProps, onBeforeUnmount, onMounted, onUpdated, openBlock, renderSlot, toDisplayString, unref, useId, useModel, useSlots, useTemplateRef, watch } from "vue";
|
|
1
|
+
import { createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, normalizeProps, onBeforeUnmount, onMounted, onUpdated, openBlock, renderSlot, toDisplayString, unref, useId, useModel, useSlots, useTemplateRef, watch, withModifiers } from "vue";
|
|
2
2
|
import { attachTooltip, createTooltip } from "@rio-m3e/core";
|
|
3
3
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
4
4
|
import "@rio-m3e/styles/base/anchored-position.css";
|
|
@@ -68,14 +68,27 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
68
68
|
return openBlock(), createElementBlock("span", mergeProps({
|
|
69
69
|
ref_key: "trigger",
|
|
70
70
|
ref: trigger
|
|
71
|
-
}, unref(tooltip).parts.trigger()), [
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
71
|
+
}, unref(tooltip).parts.trigger()), [
|
|
72
|
+
renderSlot(_ctx.$slots, "default"),
|
|
73
|
+
createCommentVNode(" Clicks and presses stay in the tooltip, so a card or a row around its element doesn't take\n them. Keys go on, for Escape. "),
|
|
74
|
+
createElementVNode("span", mergeProps({
|
|
75
|
+
ref_key: "root",
|
|
76
|
+
ref: root
|
|
77
|
+
}, unref(tooltip).parts.root(), {
|
|
78
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {}, ["stop"])),
|
|
79
|
+
onAuxclick: _cache[1] || (_cache[1] = withModifiers(() => {}, ["stop"])),
|
|
80
|
+
onDblclick: _cache[2] || (_cache[2] = withModifiers(() => {}, ["stop"])),
|
|
81
|
+
onPointerdown: _cache[3] || (_cache[3] = withModifiers(() => {}, ["stop"])),
|
|
82
|
+
onPointerup: _cache[4] || (_cache[4] = withModifiers(() => {}, ["stop"])),
|
|
83
|
+
onMousedown: _cache[5] || (_cache[5] = withModifiers(() => {}, ["stop"])),
|
|
84
|
+
onMouseup: _cache[6] || (_cache[6] = withModifiers(() => {}, ["stop"])),
|
|
85
|
+
onContextmenu: _cache[7] || (_cache[7] = withModifiers(() => {}, ["stop"]))
|
|
86
|
+
}), [
|
|
87
|
+
unref(tooltip).showsSubhead() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 0 }, unref(tooltip).parts.subhead())), toDisplayString(__props.subhead), 17)) : createCommentVNode("v-if", true),
|
|
88
|
+
createElementVNode("span", normalizeProps(guardReactiveProps(unref(tooltip).parts.supportingText())), [renderSlot(_ctx.$slots, "content", {}, () => [createTextVNode(toDisplayString(__props.text), 1)])], 16),
|
|
89
|
+
unref(tooltip).showsActions() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 1 }, unref(tooltip).parts.actions())), [renderSlot(_ctx.$slots, "actions")], 16)) : createCommentVNode("v-if", true)
|
|
90
|
+
], 16)
|
|
91
|
+
], 16);
|
|
79
92
|
};
|
|
80
93
|
}
|
|
81
94
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rio-m3e/vue",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Vue components for Rio, a Material 3 Expressive implementation",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "LegenLee",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@rio-m3e/core": "^0.
|
|
31
|
-
"@rio-m3e/styles": "^0.
|
|
30
|
+
"@rio-m3e/core": "^0.5.0",
|
|
31
|
+
"@rio-m3e/styles": "^0.5.0",
|
|
32
|
+
"@rio-m3e/tokens": "^0.5.0"
|
|
32
33
|
},
|
|
33
34
|
"devDependencies": {
|
|
34
35
|
"@fontsource/roboto": "^5.3.0",
|
|
35
36
|
"@mdi/js": "^7.4.47",
|
|
36
37
|
"@rio-m3e/testing": "^0.0.0",
|
|
37
|
-
"@rio-m3e/tokens": "^0.3.0",
|
|
38
38
|
"tsdown": "0.23.7",
|
|
39
39
|
"typescript": "~6.0.3",
|
|
40
40
|
"unplugin-vue": "^8.0.1",
|