@rio-m3e/vue 0.4.0 → 0.6.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/NOTICE +6 -0
- package/dist/button/Button.vue.d.ts +3 -2
- package/dist/button/Button.vue.js +14 -8
- package/dist/checkbox/Checkbox.vue.d.ts +1 -0
- package/dist/checkbox/Checkbox.vue.js +8 -11
- package/dist/chip/AssistChip.vue.d.ts +25 -0
- package/dist/chip/AssistChip.vue.js +50 -0
- package/dist/chip/ChipSet.vue.d.ts +23 -0
- package/dist/chip/ChipSet.vue.js +53 -0
- package/dist/chip/FilterChip.vue.d.ts +33 -0
- package/dist/chip/FilterChip.vue.js +68 -0
- package/dist/chip/InputChip.vue.d.ts +37 -0
- package/dist/chip/InputChip.vue.js +82 -0
- package/dist/chip/SuggestionChip.vue.d.ts +24 -0
- package/dist/chip/SuggestionChip.vue.js +50 -0
- package/dist/chip/context.js +17 -0
- package/dist/corner-morph/corner-morph.js +19 -0
- package/dist/date-picker/DatePicker.vue.d.ts +67 -0
- package/dist/date-picker/DatePicker.vue.js +239 -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 +191 -0
- package/dist/date-picker/DateRangeCalendar.vue.js +89 -0
- package/dist/date-picker/DateRangePickerDialog.vue.d.ts +56 -0
- package/dist/date-picker/DateRangePickerDialog.vue.js +208 -0
- package/dist/dialog/Dialog.vue.js +12 -13
- package/dist/icon-button/IconButton.vue.d.ts +3 -2
- package/dist/icon-button/IconButton.vue.js +10 -4
- package/dist/index.d.ts +41 -17
- package/dist/index.js +41 -17
- package/dist/list/List.vue.d.ts +23 -0
- package/dist/list/List.vue.js +61 -0
- package/dist/list/ListItem.vue.d.ts +49 -0
- package/dist/list/ListItem.vue.js +106 -0
- package/dist/list/context.js +12 -0
- package/dist/loading-indicator/LoadingIndicator.vue.d.ts +5 -0
- package/dist/loading-indicator/LoadingIndicator.vue.js +45 -0
- 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/Menu.vue.js +9 -4
- package/dist/menu/SubMenu.vue.js +36 -17
- package/dist/overlay/presses.js +9 -0
- package/dist/progress/CircularProgress.vue.d.ts +5 -0
- package/dist/progress/CircularProgress.vue.js +54 -0
- package/dist/progress/LinearProgress.vue.d.ts +4 -0
- package/dist/progress/LinearProgress.vue.js +62 -0
- package/dist/radio/Radio.vue.d.ts +3 -2
- package/dist/radio/Radio.vue.js +17 -16
- package/dist/rio/rio.d.ts +32 -0
- package/dist/rio/rio.js +32 -0
- package/dist/ripple/ripple.js +14 -1
- package/dist/scroll-field/ScrollField.vue.d.ts +19 -0
- package/dist/scroll-field/ScrollField.vue.js +121 -0
- package/dist/select/Select.vue.d.ts +46 -0
- package/dist/select/Select.vue.js +179 -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/slider/RangeSlider.vue.d.ts +17 -0
- package/dist/slider/RangeSlider.vue.js +92 -0
- package/dist/slider/Slider.vue.d.ts +25 -0
- package/dist/slider/Slider.vue.js +102 -0
- package/dist/split-button/SplitButton.vue.d.ts +3 -2
- package/dist/split-button/SplitButton.vue.js +4 -3
- package/dist/switch/Switch.vue.js +33 -8
- package/dist/text-field/TextField.vue.js +8 -11
- package/dist/time-picker/TimeInput.vue.d.ts +26 -0
- package/dist/time-picker/TimeInput.vue.js +73 -0
- package/dist/time-picker/TimePickerBody.vue.js +72 -0
- package/dist/time-picker/TimePickerDialog.vue.d.ts +51 -0
- package/dist/time-picker/TimePickerDialog.vue.js +137 -0
- package/dist/time-picker/TimeScroll.vue.d.ts +38 -0
- package/dist/time-picker/TimeScroll.vue.js +81 -0
- package/dist/tooltip/Tooltip.vue.js +10 -22
- package/package.json +4 -4
- package/dist/shape-morph/shape-morph.js +0 -18
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { keepPresses } from "../overlay/presses.js";
|
|
2
|
+
import { selectKey } from "./context.js";
|
|
3
|
+
import { Fragment, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, normalizeProps, onBeforeUnmount, onMounted, onUpdated, openBlock, provide, renderList, renderSlot, shallowReactive, toDisplayString, toHandlers, unref, useAttrs, useId, useModel, useSlots, useTemplateRef, watch } from "vue";
|
|
4
|
+
import { attachSelect, createSelect, mergePartAttrs } from "@rio-m3e/core";
|
|
5
|
+
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
6
|
+
import "@rio-m3e/styles/base/anchored-position.css";
|
|
7
|
+
import "@rio-m3e/styles/text-field.css";
|
|
8
|
+
import "@rio-m3e/styles/menu.css";
|
|
9
|
+
import "@rio-m3e/styles/select.css";
|
|
10
|
+
// src/select/Select.vue
|
|
11
|
+
const _hoisted_1 = {
|
|
12
|
+
key: 0,
|
|
13
|
+
value: ""
|
|
14
|
+
};
|
|
15
|
+
const _hoisted_2 = ["value"];
|
|
16
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
17
|
+
inheritAttrs: false,
|
|
18
|
+
__name: "Select",
|
|
19
|
+
props: /*@__PURE__*/ mergeModels({
|
|
20
|
+
variant: {},
|
|
21
|
+
label: {},
|
|
22
|
+
multiple: { type: Boolean },
|
|
23
|
+
supportingText: {},
|
|
24
|
+
error: { type: Boolean },
|
|
25
|
+
errorText: {},
|
|
26
|
+
required: { type: Boolean },
|
|
27
|
+
disabled: { type: Boolean },
|
|
28
|
+
name: {},
|
|
29
|
+
autocomplete: {},
|
|
30
|
+
menuVariant: {},
|
|
31
|
+
instant: { type: Boolean }
|
|
32
|
+
}, {
|
|
33
|
+
"modelValue": {},
|
|
34
|
+
"modelModifiers": {},
|
|
35
|
+
"open": {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: false
|
|
38
|
+
},
|
|
39
|
+
"openModifiers": {}
|
|
40
|
+
}),
|
|
41
|
+
emits: ["update:modelValue", "update:open"],
|
|
42
|
+
setup(__props) {
|
|
43
|
+
/** The selected value, or with `multiple`, the selected values, with `v-model`. */
|
|
44
|
+
const model = useModel(__props, "modelValue");
|
|
45
|
+
/** Whether the list is open, with `v-model:open`. The select keeps it when it isn't bound. */
|
|
46
|
+
const open = useModel(__props, "open");
|
|
47
|
+
const slots = useSlots();
|
|
48
|
+
const entries = shallowReactive([]);
|
|
49
|
+
/** The options, in the order they appear once rendered */
|
|
50
|
+
const options = () => {
|
|
51
|
+
const sorted = [...entries];
|
|
52
|
+
if (sorted.every((entry) => entry.element())) sorted.sort((a, b) => a.element().compareDocumentPosition(b.element()) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1);
|
|
53
|
+
return sorted.map((entry) => ({
|
|
54
|
+
value: entry.value(),
|
|
55
|
+
label: entry.label()
|
|
56
|
+
}));
|
|
57
|
+
};
|
|
58
|
+
const id = useId();
|
|
59
|
+
const attrs = useAttrs();
|
|
60
|
+
const select = createSelect({
|
|
61
|
+
props: () => ({
|
|
62
|
+
variant: __props.variant,
|
|
63
|
+
label: __props.label,
|
|
64
|
+
multiple: __props.multiple,
|
|
65
|
+
selected: model.value,
|
|
66
|
+
open: open.value,
|
|
67
|
+
supportingText: __props.supportingText,
|
|
68
|
+
error: __props.error,
|
|
69
|
+
errorText: __props.errorText,
|
|
70
|
+
required: __props.required,
|
|
71
|
+
disabled: __props.disabled,
|
|
72
|
+
name: __props.name,
|
|
73
|
+
autocomplete: __props.autocomplete,
|
|
74
|
+
menuVariant: __props.menuVariant,
|
|
75
|
+
instant: __props.instant
|
|
76
|
+
}),
|
|
77
|
+
options,
|
|
78
|
+
content: () => ({ leadingIcon: !!slots["leading-icon"] }),
|
|
79
|
+
ids: {
|
|
80
|
+
get field() {
|
|
81
|
+
return typeof attrs.id === "string" && attrs.id ? attrs.id : `${id}-field`;
|
|
82
|
+
},
|
|
83
|
+
label: `${id}-label`,
|
|
84
|
+
listbox: `${id}-listbox`,
|
|
85
|
+
supportingText: `${id}-supporting`
|
|
86
|
+
},
|
|
87
|
+
appName: () => ({
|
|
88
|
+
label: typeof attrs["aria-label"] === "string" ? attrs["aria-label"] : void 0,
|
|
89
|
+
labelledBy: typeof attrs["aria-labelledby"] === "string" ? attrs["aria-labelledby"] : void 0
|
|
90
|
+
}),
|
|
91
|
+
onChange: (next) => model.value = next,
|
|
92
|
+
onOpenChange: (next) => open.value = next
|
|
93
|
+
});
|
|
94
|
+
provide(selectKey, {
|
|
95
|
+
isSelected: select.isSelected,
|
|
96
|
+
choose: select.choose,
|
|
97
|
+
register(entry) {
|
|
98
|
+
entries.push(entry);
|
|
99
|
+
return () => {
|
|
100
|
+
const index = entries.indexOf(entry);
|
|
101
|
+
if (index >= 0) entries.splice(index, 1);
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
const container = useTemplateRef("container");
|
|
106
|
+
const field = useTemplateRef("field");
|
|
107
|
+
const listbox = useTemplateRef("listbox");
|
|
108
|
+
const native = useTemplateRef("native");
|
|
109
|
+
let handle;
|
|
110
|
+
onMounted(() => {
|
|
111
|
+
handle = attachSelect({
|
|
112
|
+
container: container.value,
|
|
113
|
+
field: field.value,
|
|
114
|
+
listbox: listbox.value,
|
|
115
|
+
native: native.value
|
|
116
|
+
}, {
|
|
117
|
+
disabled: () => !!__props.disabled,
|
|
118
|
+
selected: () => select.selectedValues().map(select.nativeValue),
|
|
119
|
+
onOpenChange: select.setOpen,
|
|
120
|
+
onNativeChange: select.nativeChanged
|
|
121
|
+
});
|
|
122
|
+
handle.sync(open.value);
|
|
123
|
+
});
|
|
124
|
+
watch(() => open.value, (next) => handle?.sync(next), { flush: "post" });
|
|
125
|
+
watch(() => __props.disabled, (next) => next && select.setOpen(false));
|
|
126
|
+
onUpdated(() => handle?.update());
|
|
127
|
+
onBeforeUnmount(() => handle?.detach());
|
|
128
|
+
return (_ctx, _cache) => {
|
|
129
|
+
return openBlock(), createElementBlock("div", mergeProps(unref(select).parts.root(), {
|
|
130
|
+
class: _ctx.$attrs.class,
|
|
131
|
+
style: _ctx.$attrs.style
|
|
132
|
+
}), [
|
|
133
|
+
createElementVNode("div", normalizeProps(guardReactiveProps(unref(select).parts.frame())), [
|
|
134
|
+
unref(select).showsOutline() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 0 }, unref(select).parts.outline())), [
|
|
135
|
+
createElementVNode("span", normalizeProps(guardReactiveProps(unref(select).parts.outlineStart())), null, 16),
|
|
136
|
+
createElementVNode("span", normalizeProps(guardReactiveProps(unref(select).parts.outlineNotch())), toDisplayString(unref(select).labelText()), 17),
|
|
137
|
+
createElementVNode("span", normalizeProps(guardReactiveProps(unref(select).parts.outlineEnd())), null, 16)
|
|
138
|
+
], 16)) : createCommentVNode("v-if", true),
|
|
139
|
+
unref(select).showsLabel() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 1 }, unref(select).parts.label())), toDisplayString(unref(select).labelText()), 17)) : createCommentVNode("v-if", true),
|
|
140
|
+
createElementVNode("div", mergeProps({
|
|
141
|
+
ref_key: "container",
|
|
142
|
+
ref: container
|
|
143
|
+
}, unref(select).parts.container()), [
|
|
144
|
+
unref(select).showsLeadingIcon() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 0 }, unref(select).parts.leadingIcon())), [renderSlot(_ctx.$slots, "leading-icon")], 16)) : createCommentVNode("v-if", true),
|
|
145
|
+
createElementVNode("div", normalizeProps(guardReactiveProps(unref(select).parts.content())), [createElementVNode("div", mergeProps({
|
|
146
|
+
ref_key: "field",
|
|
147
|
+
ref: field
|
|
148
|
+
}, unref(mergePartAttrs)({
|
|
149
|
+
..._ctx.$attrs,
|
|
150
|
+
class: void 0,
|
|
151
|
+
style: void 0
|
|
152
|
+
}, unref(select).parts.field())), [createElementVNode("span", normalizeProps(guardReactiveProps(unref(select).parts.value())), [renderSlot(_ctx.$slots, "value", {
|
|
153
|
+
selected: unref(select).selectedValues(),
|
|
154
|
+
labels: unref(select).selectedLabels()
|
|
155
|
+
}, () => [createTextVNode(toDisplayString(unref(select).valueText()), 1)])], 16), createElementVNode("span", normalizeProps(guardReactiveProps(unref(select).parts.sizer())), [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(select).sizerTexts(), (text, index) => {
|
|
156
|
+
return openBlock(), createElementBlock("span", { key: index }, toDisplayString(text), 1);
|
|
157
|
+
}), 128))], 16)], 16)], 16),
|
|
158
|
+
createElementVNode("span", normalizeProps(guardReactiveProps(unref(select).parts.arrow())), [renderSlot(_ctx.$slots, "dropdown-icon")], 16),
|
|
159
|
+
createElementVNode("select", mergeProps({
|
|
160
|
+
ref_key: "native",
|
|
161
|
+
ref: native
|
|
162
|
+
}, unref(select).parts.native()), [!unref(select).multiple() ? (openBlock(), createElementBlock("option", _hoisted_1)) : createCommentVNode("v-if", true), (openBlock(true), createElementBlock(Fragment, null, renderList(options(), (option) => {
|
|
163
|
+
return openBlock(), createElementBlock("option", {
|
|
164
|
+
key: unref(select).nativeValue(option.value),
|
|
165
|
+
value: unref(select).nativeValue(option.value)
|
|
166
|
+
}, toDisplayString(option.label), 9, _hoisted_2);
|
|
167
|
+
}), 128))], 16)
|
|
168
|
+
], 16)
|
|
169
|
+
], 16),
|
|
170
|
+
unref(select).showsSupporting() ? (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 0 }, unref(select).parts.supporting())), [createCommentVNode(" A new element for the error text, so it arrives with its alert role. "), (openBlock(), createElementBlock("span", mergeProps({ key: unref(select).showsErrorText() ? "error" : "supporting" }, unref(select).parts.supportingText()), toDisplayString(unref(select).supportingTextNow()), 17))], 16)) : createCommentVNode("v-if", true),
|
|
171
|
+
createElementVNode("div", mergeProps({
|
|
172
|
+
ref_key: "listbox",
|
|
173
|
+
ref: listbox
|
|
174
|
+
}, unref(select).parts.listbox(), toHandlers(unref(keepPresses), true)), [renderSlot(_ctx.$slots, "default")], 16)
|
|
175
|
+
], 16);
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { SelectOptionProps } from "@rio-m3e/core";
|
|
2
|
+
import "@rio-m3e/styles/base/focus-ring.css";
|
|
3
|
+
import "@rio-m3e/styles/base/state-layer.css";
|
|
4
|
+
import "@rio-m3e/styles/menu.css";
|
|
5
|
+
type __VLS_Slots = {
|
|
6
|
+
/** The label, which the field shows while the option is selected */
|
|
7
|
+
default?: () => unknown;
|
|
8
|
+
/**
|
|
9
|
+
* A leading icon, hidden from assistive technology. `selected` lets it show a check mark next to
|
|
10
|
+
* the color and shape.
|
|
11
|
+
*/
|
|
12
|
+
icon?: (props: {
|
|
13
|
+
selected: boolean;
|
|
14
|
+
}) => unknown;
|
|
15
|
+
/** Supporting text under the label */
|
|
16
|
+
'supporting-text'?: () => unknown;
|
|
17
|
+
/** Trailing text */
|
|
18
|
+
'trailing-text'?: () => unknown;
|
|
19
|
+
/** A trailing icon, hidden from assistive technology */
|
|
20
|
+
'trailing-icon'?: () => unknown;
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_base: import("vue").DefineComponent<SelectOptionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SelectOptionProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export { _default as default };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { vRipple } from "../ripple/ripple.js";
|
|
2
|
+
import { selectKey } from "./context.js";
|
|
3
|
+
import { createCommentVNode, createElementBlock, createElementVNode, defineComponent, guardReactiveProps, inject, mergeProps, normalizeProps, onBeforeUnmount, onMounted, onUpdated, openBlock, ref, renderSlot, unref, useSlots, useTemplateRef, withDirectives } from "vue";
|
|
4
|
+
import { createSelectOption } from "@rio-m3e/core";
|
|
5
|
+
import "@rio-m3e/styles/base/focus-ring.css";
|
|
6
|
+
import "@rio-m3e/styles/base/state-layer.css";
|
|
7
|
+
import "@rio-m3e/styles/menu.css";
|
|
8
|
+
// src/select/SelectOption.vue
|
|
9
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
10
|
+
__name: "SelectOption",
|
|
11
|
+
props: {
|
|
12
|
+
value: {},
|
|
13
|
+
disabled: { type: Boolean }
|
|
14
|
+
},
|
|
15
|
+
setup(__props) {
|
|
16
|
+
const slots = useSlots();
|
|
17
|
+
const select = inject(selectKey, void 0);
|
|
18
|
+
if (!select) throw new Error("RioSelectOption has to be inside a RioSelect.");
|
|
19
|
+
const option = createSelectOption({
|
|
20
|
+
props: () => ({
|
|
21
|
+
value: __props.value,
|
|
22
|
+
disabled: __props.disabled
|
|
23
|
+
}),
|
|
24
|
+
content: () => ({
|
|
25
|
+
icon: !!slots.icon,
|
|
26
|
+
supportingText: !!slots["supporting-text"],
|
|
27
|
+
trailingText: !!slots["trailing-text"],
|
|
28
|
+
trailingIcon: !!slots["trailing-icon"]
|
|
29
|
+
}),
|
|
30
|
+
select: () => select
|
|
31
|
+
});
|
|
32
|
+
const root = useTemplateRef("root");
|
|
33
|
+
const labelElement = useTemplateRef("label");
|
|
34
|
+
const text = ref("");
|
|
35
|
+
const read = () => text.value = labelElement.value?.textContent?.trim() ?? "";
|
|
36
|
+
const unregister = select.register({
|
|
37
|
+
value: () => __props.value,
|
|
38
|
+
label: () => text.value,
|
|
39
|
+
element: () => root.value
|
|
40
|
+
});
|
|
41
|
+
onMounted(read);
|
|
42
|
+
onUpdated(read);
|
|
43
|
+
onBeforeUnmount(unregister);
|
|
44
|
+
return (_ctx, _cache) => {
|
|
45
|
+
return withDirectives((openBlock(), createElementBlock("button", mergeProps({
|
|
46
|
+
ref_key: "root",
|
|
47
|
+
ref: root
|
|
48
|
+
}, unref(option).parts.root(), { onClick: _cache[0] || (_cache[0] = (...args) => unref(option).handleClick && unref(option).handleClick(...args)) }), [
|
|
49
|
+
createElementVNode("span", normalizeProps(guardReactiveProps(unref(option).parts.touch())), null, 16),
|
|
50
|
+
unref(option).showsIcon() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 0 }, unref(option).parts.icon())), [renderSlot(_ctx.$slots, "icon", { selected: unref(option).selected() })], 16)) : createCommentVNode("v-if", true),
|
|
51
|
+
createElementVNode("span", normalizeProps(guardReactiveProps(unref(option).parts.text())), [createElementVNode("span", mergeProps({ ref: "label" }, unref(option).parts.label()), [renderSlot(_ctx.$slots, "default")], 16), unref(option).showsSupportingText() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 0 }, unref(option).parts.supportingText())), [renderSlot(_ctx.$slots, "supporting-text")], 16)) : createCommentVNode("v-if", true)], 16),
|
|
52
|
+
unref(option).showsTrailingText() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 1 }, unref(option).parts.trailingText())), [renderSlot(_ctx.$slots, "trailing-text")], 16)) : createCommentVNode("v-if", true),
|
|
53
|
+
unref(option).showsTrailingIcon() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 2 }, unref(option).parts.trailingIcon())), [renderSlot(_ctx.$slots, "trailing-icon")], 16)) : createCommentVNode("v-if", true)
|
|
54
|
+
], 16)), [[unref(vRipple)]]);
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { RangeSliderProps, SliderMessages } 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/slider.css";
|
|
5
|
+
type __VLS_Props = Omit<RangeSliderProps, 'value'> & {
|
|
6
|
+
/** The start and the end of the range, with `v-model`. */
|
|
7
|
+
modelValue?: [number, number];
|
|
8
|
+
/** Replaces the inputs' names for assistive technology. */
|
|
9
|
+
messages?: Partial<SliderMessages>;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (value: [number, number]) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: ((value: [number, number]) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export { _default as default };
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { useLocale, useMessages } from "../locale/locale.js";
|
|
2
|
+
import { createCommentVNode, createElementBlock, createElementVNode, defineComponent, guardReactiveProps, mergeProps, nextTick, normalizeProps, onBeforeUnmount, onMounted, onUpdated, openBlock, toDisplayString, unref, useModel, useTemplateRef } from "vue";
|
|
3
|
+
import { attachSlider, createRangeSlider } from "@rio-m3e/core";
|
|
4
|
+
import "@rio-m3e/styles/base/focus-ring.css";
|
|
5
|
+
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
6
|
+
import "@rio-m3e/styles/slider.css";
|
|
7
|
+
// src/slider/RangeSlider.vue
|
|
8
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
9
|
+
__name: "RangeSlider",
|
|
10
|
+
props: {
|
|
11
|
+
name: {},
|
|
12
|
+
min: {},
|
|
13
|
+
max: {},
|
|
14
|
+
step: {},
|
|
15
|
+
stops: { type: Boolean },
|
|
16
|
+
size: {},
|
|
17
|
+
vertical: { type: Boolean },
|
|
18
|
+
valueIndicator: { type: Boolean },
|
|
19
|
+
format: { type: Function },
|
|
20
|
+
locale: {},
|
|
21
|
+
disabled: { type: Boolean },
|
|
22
|
+
softDisabled: { type: Boolean },
|
|
23
|
+
modelValue: {},
|
|
24
|
+
messages: {}
|
|
25
|
+
},
|
|
26
|
+
emits: ["update:modelValue"],
|
|
27
|
+
setup(__props) {
|
|
28
|
+
const props = __props;
|
|
29
|
+
const model = useModel(props, "modelValue");
|
|
30
|
+
const locale = useLocale(() => props.locale);
|
|
31
|
+
const messages = useMessages("slider", locale, () => props.messages);
|
|
32
|
+
const slider = createRangeSlider({
|
|
33
|
+
props: () => ({
|
|
34
|
+
value: model.value,
|
|
35
|
+
min: props.min,
|
|
36
|
+
max: props.max,
|
|
37
|
+
step: props.step,
|
|
38
|
+
stops: props.stops,
|
|
39
|
+
size: props.size,
|
|
40
|
+
vertical: props.vertical,
|
|
41
|
+
valueIndicator: props.valueIndicator,
|
|
42
|
+
format: props.format,
|
|
43
|
+
locale: locale.value,
|
|
44
|
+
disabled: props.disabled,
|
|
45
|
+
softDisabled: props.softDisabled,
|
|
46
|
+
name: props.name
|
|
47
|
+
}),
|
|
48
|
+
messages: () => messages.value,
|
|
49
|
+
onChange(next) {
|
|
50
|
+
model.value = next;
|
|
51
|
+
nextTick(() => handle?.sync());
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
const root = useTemplateRef("root");
|
|
55
|
+
const start = useTemplateRef("start");
|
|
56
|
+
const end = useTemplateRef("end");
|
|
57
|
+
let handle;
|
|
58
|
+
onMounted(() => {
|
|
59
|
+
handle = attachSlider(root.value, {
|
|
60
|
+
inputs: [start.value, end.value],
|
|
61
|
+
values: slider.value,
|
|
62
|
+
range: slider.range,
|
|
63
|
+
vertical: slider.vertical,
|
|
64
|
+
blocked: slider.blocked,
|
|
65
|
+
onMove: slider.moveHandle
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
onUpdated(() => handle?.sync());
|
|
69
|
+
onBeforeUnmount(() => handle?.detach());
|
|
70
|
+
return (_ctx, _cache) => {
|
|
71
|
+
return openBlock(), createElementBlock("span", mergeProps({
|
|
72
|
+
ref_key: "root",
|
|
73
|
+
ref: root
|
|
74
|
+
}, unref(slider).parts.root()), [
|
|
75
|
+
createElementVNode("span", normalizeProps(guardReactiveProps(unref(slider).parts.trackLower())), null, 16),
|
|
76
|
+
createElementVNode("span", normalizeProps(guardReactiveProps(unref(slider).parts.trackActive())), null, 16),
|
|
77
|
+
createElementVNode("span", normalizeProps(guardReactiveProps(unref(slider).parts.trackUpper())), null, 16),
|
|
78
|
+
createElementVNode("input", mergeProps({
|
|
79
|
+
ref_key: "start",
|
|
80
|
+
ref: start
|
|
81
|
+
}, unref(slider).parts.startInput()), null, 16),
|
|
82
|
+
createElementVNode("input", mergeProps({
|
|
83
|
+
ref_key: "end",
|
|
84
|
+
ref: end
|
|
85
|
+
}, unref(slider).parts.endInput()), null, 16),
|
|
86
|
+
createElementVNode("span", normalizeProps(guardReactiveProps(unref(slider).parts.startHandle())), [unref(slider).showsValueIndicator() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 0 }, unref(slider).parts.startValueIndicator())), toDisplayString(unref(slider).valueText(0)), 17)) : createCommentVNode("v-if", true)], 16),
|
|
87
|
+
createElementVNode("span", normalizeProps(guardReactiveProps(unref(slider).parts.endHandle())), [unref(slider).showsValueIndicator() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 0 }, unref(slider).parts.endValueIndicator())), toDisplayString(unref(slider).valueText(1)), 17)) : createCommentVNode("v-if", true)], 16)
|
|
88
|
+
], 16);
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SliderProps } 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/slider.css";
|
|
5
|
+
type __VLS_Props = Omit<SliderProps, 'value'> & {
|
|
6
|
+
/** The value, with `v-model`. */
|
|
7
|
+
modelValue?: number;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_Slots = {
|
|
10
|
+
/** An icon inside the track, at its start. Hidden from assistive technology. */
|
|
11
|
+
icon?: () => unknown;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
"update:modelValue": (value: number) => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export { _default as default };
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { useLocale } from "../locale/locale.js";
|
|
2
|
+
import { createCommentVNode, createElementBlock, createElementVNode, defineComponent, guardReactiveProps, mergeProps, nextTick, normalizeProps, onBeforeUnmount, onMounted, onUpdated, openBlock, ref, renderSlot, toDisplayString, unref, useModel, useSlots, useTemplateRef } from "vue";
|
|
3
|
+
import { attachSlider, createSlider, mergePartAttrs } from "@rio-m3e/core";
|
|
4
|
+
import "@rio-m3e/styles/base/focus-ring.css";
|
|
5
|
+
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
6
|
+
import "@rio-m3e/styles/slider.css";
|
|
7
|
+
// src/slider/Slider.vue
|
|
8
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
9
|
+
inheritAttrs: false,
|
|
10
|
+
__name: "Slider",
|
|
11
|
+
props: {
|
|
12
|
+
centered: { type: Boolean },
|
|
13
|
+
min: {},
|
|
14
|
+
max: {},
|
|
15
|
+
step: {},
|
|
16
|
+
stops: { type: Boolean },
|
|
17
|
+
size: {},
|
|
18
|
+
vertical: { type: Boolean },
|
|
19
|
+
valueIndicator: { type: Boolean },
|
|
20
|
+
format: { type: Function },
|
|
21
|
+
locale: {},
|
|
22
|
+
disabled: { type: Boolean },
|
|
23
|
+
softDisabled: { type: Boolean },
|
|
24
|
+
modelValue: {}
|
|
25
|
+
},
|
|
26
|
+
emits: ["update:modelValue"],
|
|
27
|
+
setup(__props) {
|
|
28
|
+
const props = __props;
|
|
29
|
+
const model = useModel(props, "modelValue");
|
|
30
|
+
const slots = useSlots();
|
|
31
|
+
const locale = useLocale(() => props.locale);
|
|
32
|
+
const iconInactive = ref(false);
|
|
33
|
+
const slider = createSlider({
|
|
34
|
+
props: () => ({
|
|
35
|
+
value: model.value,
|
|
36
|
+
min: props.min,
|
|
37
|
+
max: props.max,
|
|
38
|
+
step: props.step,
|
|
39
|
+
stops: props.stops,
|
|
40
|
+
size: props.size,
|
|
41
|
+
vertical: props.vertical,
|
|
42
|
+
valueIndicator: props.valueIndicator,
|
|
43
|
+
format: props.format,
|
|
44
|
+
locale: locale.value,
|
|
45
|
+
disabled: props.disabled,
|
|
46
|
+
softDisabled: props.softDisabled,
|
|
47
|
+
centered: props.centered
|
|
48
|
+
}),
|
|
49
|
+
content: () => ({ icon: !!slots.icon }),
|
|
50
|
+
iconInactive: () => iconInactive.value,
|
|
51
|
+
onChange(next) {
|
|
52
|
+
model.value = next;
|
|
53
|
+
nextTick(() => handle?.sync());
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
const root = useTemplateRef("root");
|
|
57
|
+
const input = useTemplateRef("input");
|
|
58
|
+
const active = useTemplateRef("active");
|
|
59
|
+
let handle;
|
|
60
|
+
onMounted(() => {
|
|
61
|
+
handle = attachSlider(root.value, {
|
|
62
|
+
inputs: [input.value],
|
|
63
|
+
values: () => [slider.value()],
|
|
64
|
+
range: slider.range,
|
|
65
|
+
vertical: slider.vertical,
|
|
66
|
+
blocked: slider.blocked,
|
|
67
|
+
onMove: slider.moveHandle,
|
|
68
|
+
activeTrack: () => slider.showsIcon() ? active.value : void 0,
|
|
69
|
+
onIconInactiveChange: (next) => iconInactive.value = next
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
onUpdated(() => handle?.sync());
|
|
73
|
+
onBeforeUnmount(() => handle?.detach());
|
|
74
|
+
return (_ctx, _cache) => {
|
|
75
|
+
return openBlock(), createElementBlock("span", mergeProps({
|
|
76
|
+
ref_key: "root",
|
|
77
|
+
ref: root
|
|
78
|
+
}, unref(slider).parts.root(), {
|
|
79
|
+
class: _ctx.$attrs.class,
|
|
80
|
+
style: _ctx.$attrs.style
|
|
81
|
+
}), [
|
|
82
|
+
unref(slider).showsLowerTrack() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 0 }, unref(slider).parts.trackLower())), null, 16)) : createCommentVNode("v-if", true),
|
|
83
|
+
createElementVNode("span", mergeProps({
|
|
84
|
+
ref_key: "active",
|
|
85
|
+
ref: active
|
|
86
|
+
}, unref(slider).parts.trackActive()), null, 16),
|
|
87
|
+
createElementVNode("span", normalizeProps(guardReactiveProps(unref(slider).parts.trackUpper())), null, 16),
|
|
88
|
+
unref(slider).showsIcon() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 1 }, unref(slider).parts.icon())), [renderSlot(_ctx.$slots, "icon")], 16)) : createCommentVNode("v-if", true),
|
|
89
|
+
createElementVNode("input", mergeProps({
|
|
90
|
+
ref_key: "input",
|
|
91
|
+
ref: input
|
|
92
|
+
}, unref(mergePartAttrs)({
|
|
93
|
+
..._ctx.$attrs,
|
|
94
|
+
class: void 0,
|
|
95
|
+
style: void 0
|
|
96
|
+
}, unref(slider).parts.input())), null, 16),
|
|
97
|
+
createElementVNode("span", normalizeProps(guardReactiveProps(unref(slider).parts.handle())), [unref(slider).showsValueIndicator() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 0 }, unref(slider).parts.valueIndicator())), toDisplayString(unref(slider).valueText()), 17)) : createCommentVNode("v-if", true)], 16)
|
|
98
|
+
], 16);
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
export { _sfc_main as default };
|
|
@@ -2,6 +2,7 @@ import { SplitButtonProps } from "@rio-m3e/core";
|
|
|
2
2
|
import "@rio-m3e/styles/base/focus-ring.css";
|
|
3
3
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
4
4
|
import "@rio-m3e/styles/base/state-layer.css";
|
|
5
|
+
import "@rio-m3e/styles/base/touch-target.css";
|
|
5
6
|
import "@rio-m3e/styles/button.css";
|
|
6
7
|
import "@rio-m3e/styles/split-button.css";
|
|
7
8
|
type __VLS_Slots = {
|
|
@@ -19,11 +20,11 @@ declare const __VLS_base: import("vue").DefineComponent<SplitButtonProps, {
|
|
|
19
20
|
leading: Readonly<import("vue").ShallowRef<HTMLButtonElement | null>>;
|
|
20
21
|
trailing: Readonly<import("vue").ShallowRef<HTMLButtonElement | null>>;
|
|
21
22
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
-
click: (event: MouseEvent) => any;
|
|
23
23
|
"update:open": (open: boolean) => any;
|
|
24
|
+
click: (event: MouseEvent) => any;
|
|
24
25
|
}, string, import("vue").PublicProps, Readonly<SplitButtonProps> & Readonly<{
|
|
25
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
26
26
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
27
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
27
28
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
29
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
30
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { vRipple } from "../ripple/ripple.js";
|
|
2
|
-
import {
|
|
2
|
+
import { vCornerMorph } from "../corner-morph/corner-morph.js";
|
|
3
3
|
import { createCommentVNode, createElementBlock, createElementVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, onBeforeUnmount, onMounted, openBlock, renderSlot, unref, useSlots, useTemplateRef, withDirectives } from "vue";
|
|
4
4
|
import { attachSplitButtonMenuIcon, createSplitButton } from "@rio-m3e/core";
|
|
5
5
|
import "@rio-m3e/styles/base/focus-ring.css";
|
|
6
6
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
7
7
|
import "@rio-m3e/styles/base/state-layer.css";
|
|
8
|
+
import "@rio-m3e/styles/base/touch-target.css";
|
|
8
9
|
import "@rio-m3e/styles/button.css";
|
|
9
10
|
import "@rio-m3e/styles/split-button.css";
|
|
10
11
|
// src/split-button/SplitButton.vue
|
|
@@ -63,10 +64,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
63
64
|
createElementVNode("span", normalizeProps(guardReactiveProps(unref(sb).parts.touch())), null, 16),
|
|
64
65
|
unref(sb).showsIcon() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 0 }, unref(sb).parts.icon())), [renderSlot(_ctx.$slots, "icon")], 16)) : createCommentVNode("v-if", true),
|
|
65
66
|
unref(sb).showsLabel() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 1 }, unref(sb).parts.label())), [renderSlot(_ctx.$slots, "default")], 16)) : createCommentVNode("v-if", true)
|
|
66
|
-
], 16)), [[unref(vRipple)], [unref(
|
|
67
|
+
], 16)), [[unref(vRipple)], [unref(vCornerMorph)]]), withDirectives((openBlock(), createElementBlock("button", mergeProps({
|
|
67
68
|
ref_key: "trailing",
|
|
68
69
|
ref: trailing
|
|
69
|
-
}, unref(sb).parts.trailing(), { onClick: _cache[1] || (_cache[1] = (...args) => unref(sb).handleTrailingClick && unref(sb).handleTrailingClick(...args)) }), [createElementVNode("span", normalizeProps(guardReactiveProps(unref(sb).parts.touch())), null, 16), createElementVNode("span", normalizeProps(guardReactiveProps(unref(sb).parts.menuIcon())), [renderSlot(_ctx.$slots, "menu-icon")], 16)], 16)), [[unref(vRipple)], [unref(
|
|
70
|
+
}, unref(sb).parts.trailing(), { onClick: _cache[1] || (_cache[1] = (...args) => unref(sb).handleTrailingClick && unref(sb).handleTrailingClick(...args)) }), [createElementVNode("span", normalizeProps(guardReactiveProps(unref(sb).parts.touch())), null, 16), createElementVNode("span", normalizeProps(guardReactiveProps(unref(sb).parts.menuIcon())), [renderSlot(_ctx.$slots, "menu-icon")], 16)], 16)), [[unref(vRipple)], [unref(vCornerMorph)]])], 16);
|
|
70
71
|
};
|
|
71
72
|
}
|
|
72
73
|
});
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useRipple } from "../ripple/ripple.js";
|
|
2
|
+
import { createCommentVNode, createElementBlock, createElementVNode, defineComponent, guardReactiveProps, mergeProps, nextTick, normalizeProps, onBeforeUnmount, onMounted, onUpdated, openBlock, renderSlot, unref, useSlots, useTemplateRef } from "vue";
|
|
3
|
+
import { attachCheckable, attachSwitchHandle, createSwitch, mergePartAttrs } from "@rio-m3e/core";
|
|
3
4
|
import "@rio-m3e/styles/base/focus-ring.css";
|
|
4
5
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
5
6
|
import "@rio-m3e/styles/base/ripple.css";
|
|
6
7
|
import "@rio-m3e/styles/switch.css";
|
|
7
8
|
// src/switch/Switch.vue
|
|
8
9
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
10
|
+
inheritAttrs: false,
|
|
9
11
|
__name: "Switch",
|
|
10
12
|
props: {
|
|
11
13
|
selected: { type: Boolean },
|
|
@@ -16,7 +18,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
16
18
|
setup(__props, { emit: __emit }) {
|
|
17
19
|
const emit = __emit;
|
|
18
20
|
const slots = useSlots();
|
|
19
|
-
const onChange = (next) =>
|
|
21
|
+
const onChange = (next) => {
|
|
22
|
+
emit("update:selected", next);
|
|
23
|
+
nextTick(() => checkable?.sync());
|
|
24
|
+
};
|
|
20
25
|
const sw = createSwitch({
|
|
21
26
|
props: () => ({
|
|
22
27
|
selected: __props.selected,
|
|
@@ -30,21 +35,41 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
30
35
|
onChange
|
|
31
36
|
});
|
|
32
37
|
const root = useTemplateRef("root");
|
|
38
|
+
const input = useTemplateRef("input");
|
|
33
39
|
const state = useTemplateRef("state");
|
|
40
|
+
useRipple(input, state);
|
|
41
|
+
let checkable;
|
|
34
42
|
let handles = [];
|
|
35
43
|
onMounted(() => {
|
|
36
|
-
|
|
37
|
-
|
|
44
|
+
checkable = attachCheckable(input.value, {
|
|
45
|
+
checked: () => !!__props.selected,
|
|
46
|
+
blocked: sw.blocked,
|
|
47
|
+
onChange
|
|
48
|
+
});
|
|
49
|
+
handles = [checkable, attachSwitchHandle(root.value, {
|
|
50
|
+
input: input.value,
|
|
51
|
+
selected: () => !!__props.selected,
|
|
38
52
|
onChange
|
|
39
53
|
})];
|
|
40
54
|
});
|
|
55
|
+
onUpdated(() => checkable?.sync());
|
|
41
56
|
onBeforeUnmount(() => handles.forEach((handle) => handle.detach()));
|
|
42
57
|
return (_ctx, _cache) => {
|
|
43
|
-
return openBlock(), createElementBlock("
|
|
58
|
+
return openBlock(), createElementBlock("span", mergeProps({
|
|
44
59
|
ref_key: "root",
|
|
45
60
|
ref: root
|
|
46
|
-
}, unref(sw).parts.root(), {
|
|
47
|
-
|
|
61
|
+
}, unref(sw).parts.root(), {
|
|
62
|
+
class: _ctx.$attrs.class,
|
|
63
|
+
style: _ctx.$attrs.style
|
|
64
|
+
}), [
|
|
65
|
+
createElementVNode("input", mergeProps({
|
|
66
|
+
ref_key: "input",
|
|
67
|
+
ref: input
|
|
68
|
+
}, unref(mergePartAttrs)({
|
|
69
|
+
..._ctx.$attrs,
|
|
70
|
+
class: void 0,
|
|
71
|
+
style: void 0
|
|
72
|
+
}, unref(sw).parts.input()), { onKeydown: _cache[0] || (_cache[0] = (...args) => unref(sw).handleKeydown && unref(sw).handleKeydown(...args)) }), null, 16),
|
|
48
73
|
createElementVNode("span", mergeProps({
|
|
49
74
|
ref_key: "state",
|
|
50
75
|
ref: state
|