@rio-m3e/vue 0.6.1 → 0.6.3
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.d.ts +2 -2
- package/dist/chip/FilterChip.vue.d.ts +10 -4
- package/dist/chip/FilterChip.vue.js +9 -5
- package/dist/chip/InputChip.vue.d.ts +4 -1
- package/dist/chip/InputChip.vue.js +3 -2
- package/dist/date-picker/DatePicker.vue.d.ts +13 -3
- package/dist/date-picker/DatePicker.vue.js +2 -1
- package/dist/date-picker/DatePickerCalendar.vue.js +10 -9
- package/dist/date-picker/DatePickerDialog.vue.d.ts +11 -2
- package/dist/date-picker/DatePickerDialog.vue.js +2 -1
- package/dist/date-picker/DateRangePickerDialog.vue.d.ts +10 -4
- package/dist/date-picker/DateRangePickerDialog.vue.js +2 -1
- package/dist/icon/Icon.vue.d.ts +13 -0
- package/dist/icon/Icon.vue.js +30 -0
- package/dist/icon/icons.d.ts +12 -0
- package/dist/icon/icons.js +12 -0
- package/dist/icon-button/IconButton.vue.d.ts +2 -2
- package/dist/index.d.ts +30 -28
- package/dist/index.js +30 -28
- package/dist/menu/Menu.vue.d.ts +1 -0
- package/dist/menu/Menu.vue.js +1 -0
- package/dist/menu/MenuDivider.vue.d.ts +1 -0
- package/dist/menu/MenuDivider.vue.js +1 -0
- package/dist/menu/MenuGroup.vue.d.ts +1 -0
- package/dist/menu/MenuGroup.vue.js +1 -0
- package/dist/menu/MenuItem.vue.d.ts +1 -0
- package/dist/menu/MenuItem.vue.js +1 -0
- package/dist/menu/SubMenu.vue.d.ts +2 -1
- package/dist/menu/SubMenu.vue.js +7 -3
- package/dist/progress/CircularProgress.vue.d.ts +1 -0
- package/dist/progress/CircularProgress.vue.js +1 -0
- package/dist/progress/LinearProgress.vue.d.ts +1 -0
- package/dist/progress/LinearProgress.vue.js +1 -0
- package/dist/rio/rio.d.ts +9 -1
- package/dist/rio/rio.js +11 -3
- package/dist/scroll-field/ScrollField.vue.js +7 -11
- package/dist/select/Select.vue.d.ts +5 -1
- package/dist/select/Select.vue.js +4 -2
- package/dist/select/SelectOption.vue.d.ts +1 -0
- package/dist/select/SelectOption.vue.js +1 -0
- package/dist/slider/RangeSlider.vue.d.ts +1 -0
- package/dist/slider/RangeSlider.vue.js +1 -0
- package/dist/slider/Slider.vue.d.ts +1 -0
- package/dist/slider/Slider.vue.js +1 -0
- package/dist/split-button/SplitButton.vue.d.ts +3 -1
- package/dist/split-button/SplitButton.vue.js +4 -2
- package/dist/time-picker/TimeInput.vue.d.ts +1 -0
- package/dist/time-picker/TimeInput.vue.js +1 -0
- package/dist/time-picker/TimePickerDialog.vue.d.ts +13 -3
- package/dist/time-picker/TimePickerDialog.vue.js +3 -1
- package/dist/time-picker/TimeScroll.vue.d.ts +9 -2
- package/dist/time-picker/TimeScroll.vue.js +3 -1
- package/package.json +4 -4
|
@@ -11,11 +11,11 @@ type __VLS_Slots = {
|
|
|
11
11
|
icon?: () => unknown;
|
|
12
12
|
};
|
|
13
13
|
declare const __VLS_base: import("vue").DefineComponent<ButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
-
"update:selected": (selected: boolean) => any;
|
|
15
14
|
click: (event: MouseEvent) => any;
|
|
15
|
+
"update:selected": (selected: boolean) => any;
|
|
16
16
|
}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{
|
|
17
|
-
"onUpdate:selected"?: ((selected: boolean) => any) | undefined;
|
|
18
17
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
18
|
+
"onUpdate:selected"?: ((selected: boolean) => any) | undefined;
|
|
19
19
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
@@ -9,18 +9,24 @@ type __VLS_Slots = {
|
|
|
9
9
|
default?: () => unknown;
|
|
10
10
|
/** A leading icon, shown while the chip isn't selected. Hidden from assistive technology. */
|
|
11
11
|
icon?: () => unknown;
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* The icon while the chip is selected, such as a checkmark. Hidden from assistive technology.
|
|
14
|
+
* Without one, the `check` icon registered with `createRio`.
|
|
15
|
+
*/
|
|
13
16
|
'selected-icon'?: () => unknown;
|
|
14
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* A `menu` chip's trailing icon, such as a dropdown arrow, which turns over while open. Without
|
|
19
|
+
* one, the `dropdown` icon registered with `createRio`.
|
|
20
|
+
*/
|
|
15
21
|
'dropdown-icon'?: () => unknown;
|
|
16
22
|
};
|
|
17
23
|
declare const __VLS_base: import("vue").DefineComponent<FilterChipProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
-
"update:selected": (selected: boolean) => any;
|
|
19
24
|
click: (event: MouseEvent) => any;
|
|
25
|
+
"update:selected": (selected: boolean) => any;
|
|
20
26
|
"update:open": (open: boolean) => any;
|
|
21
27
|
}, string, import("vue").PublicProps, Readonly<FilterChipProps> & Readonly<{
|
|
22
|
-
"onUpdate:selected"?: ((selected: boolean) => any) | undefined;
|
|
23
28
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
29
|
+
"onUpdate:selected"?: ((selected: boolean) => any) | undefined;
|
|
24
30
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
25
31
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
32
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { useRipple } from "../ripple/ripple.js";
|
|
2
2
|
import { useChipSetItem } from "./context.js";
|
|
3
|
-
import
|
|
3
|
+
import _sfc_main$1 from "../icon/Icon.vue.js";
|
|
4
|
+
import { useIconOfAlias } from "../icon/icons.js";
|
|
5
|
+
import { createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderSlot, unref, useSlots, useTemplateRef } from "vue";
|
|
4
6
|
import { createFilterChip } from "@rio-m3e/core";
|
|
5
7
|
import "@rio-m3e/styles/base/focus-ring.css";
|
|
6
8
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
@@ -29,6 +31,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
29
31
|
const slots = useSlots();
|
|
30
32
|
const item = useChipSetItem();
|
|
31
33
|
const grouped = () => !!item.set && item.set.selection() !== "none" && __props.value !== void 0 && !__props.menu;
|
|
34
|
+
const checkIcon = useIconOfAlias("check");
|
|
35
|
+
const dropdownIcon = useIconOfAlias("dropdown");
|
|
32
36
|
const chip = createFilterChip({
|
|
33
37
|
props: () => ({
|
|
34
38
|
selected: grouped() ? item.set.isSelected(__props.value) : __props.selected,
|
|
@@ -41,8 +45,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
41
45
|
}),
|
|
42
46
|
content: () => ({
|
|
43
47
|
icon: !!slots.icon,
|
|
44
|
-
selectedIcon: !!slots["selected-icon"],
|
|
45
|
-
dropdownIcon: !!slots["dropdown-icon"]
|
|
48
|
+
selectedIcon: !!slots["selected-icon"] || !!checkIcon.value,
|
|
49
|
+
dropdownIcon: !!slots["dropdown-icon"] || !!dropdownIcon.value
|
|
46
50
|
}),
|
|
47
51
|
key: item.key,
|
|
48
52
|
tabStop: item.tabStop,
|
|
@@ -58,9 +62,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
58
62
|
return openBlock(), createElementBlock("button", mergeProps({ ref: "root" }, unref(chip).parts.root(), { onClick: _cache[0] || (_cache[0] = (...args) => unref(chip).handleClick && unref(chip).handleClick(...args)) }), [
|
|
59
63
|
createElementVNode("span", normalizeProps(guardReactiveProps(unref(chip).parts.touch())), null, 16),
|
|
60
64
|
createElementVNode("span", mergeProps({ ref: "state" }, unref(chip).parts.state()), null, 16),
|
|
61
|
-
unref(chip).showsIcon() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 0 }, unref(chip).parts.icon())), [unref(chip).showsSelectedIcon() ? renderSlot(_ctx.$slots, "selected-icon", {},
|
|
65
|
+
unref(chip).showsIcon() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 0 }, unref(chip).parts.icon())), [unref(chip).showsSelectedIcon() ? renderSlot(_ctx.$slots, "selected-icon", {}, () => [createVNode(_sfc_main$1, { alias: "check" })], void 0, 0) : renderSlot(_ctx.$slots, "icon", {}, void 0, void 0, 1)], 16)) : createCommentVNode("v-if", true),
|
|
62
66
|
createElementVNode("span", normalizeProps(guardReactiveProps(unref(chip).parts.label())), [renderSlot(_ctx.$slots, "default")], 16),
|
|
63
|
-
unref(chip).showsTrailing() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 1 }, unref(chip).parts.trailing())), [renderSlot(_ctx.$slots, "dropdown-icon")], 16)) : createCommentVNode("v-if", true)
|
|
67
|
+
unref(chip).showsTrailing() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 1 }, unref(chip).parts.trailing())), [renderSlot(_ctx.$slots, "dropdown-icon", {}, () => [createVNode(_sfc_main$1, { alias: "dropdown" })])], 16)) : createCommentVNode("v-if", true)
|
|
64
68
|
], 16);
|
|
65
69
|
};
|
|
66
70
|
}
|
|
@@ -17,7 +17,10 @@ type __VLS_Slots = {
|
|
|
17
17
|
icon?: () => unknown;
|
|
18
18
|
/** A leading image, such as a person's avatar, in a 24px circle. It wins over the icon. */
|
|
19
19
|
avatar?: () => unknown;
|
|
20
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* The remove button's icon, such as an X. Hidden from assistive technology. Without one, the
|
|
22
|
+
* `remove` icon registered with `createRio`.
|
|
23
|
+
*/
|
|
21
24
|
'remove-icon'?: () => unknown;
|
|
22
25
|
};
|
|
23
26
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { useLocale, useMessages } from "../locale/locale.js";
|
|
2
2
|
import { useRipple } from "../ripple/ripple.js";
|
|
3
3
|
import { useChipSetItem } from "./context.js";
|
|
4
|
-
import
|
|
4
|
+
import _sfc_main$1 from "../icon/Icon.vue.js";
|
|
5
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useSlots, useTemplateRef, withCtx } from "vue";
|
|
5
6
|
import { createInputChip, mergePartAttrs } from "@rio-m3e/core";
|
|
6
7
|
import "@rio-m3e/styles/base/focus-ring.css";
|
|
7
8
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
@@ -72,7 +73,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
72
73
|
]),
|
|
73
74
|
_: 3
|
|
74
75
|
}, 16, ["onClick"])),
|
|
75
|
-
createElementVNode("button", mergeProps(unref(chip).parts.remove(), { onClick: _cache[0] || (_cache[0] = (...args) => unref(chip).handleRemoveClick && unref(chip).handleRemoveClick(...args)) }), [createElementVNode("span", normalizeProps(guardReactiveProps(unref(chip).parts.removeTouch())), null, 16), createElementVNode("span", normalizeProps(guardReactiveProps(unref(chip).parts.removeIcon())), [renderSlot(_ctx.$slots, "remove-icon")], 16)], 16),
|
|
76
|
+
createElementVNode("button", mergeProps(unref(chip).parts.remove(), { onClick: _cache[0] || (_cache[0] = (...args) => unref(chip).handleRemoveClick && unref(chip).handleRemoveClick(...args)) }), [createElementVNode("span", normalizeProps(guardReactiveProps(unref(chip).parts.removeTouch())), null, 16), createElementVNode("span", normalizeProps(guardReactiveProps(unref(chip).parts.removeIcon())), [renderSlot(_ctx.$slots, "remove-icon", {}, () => [createVNode(_sfc_main$1, { alias: "remove" })])], 16)], 16),
|
|
76
77
|
unref(chip).showsRemoveBefore() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 0 }, unref(chip).parts.removeBefore())), toDisplayString(unref(chip).removeText().before), 17)) : createCommentVNode("v-if", true),
|
|
77
78
|
unref(chip).showsRemoveAfter() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 1 }, unref(chip).parts.removeAfter())), toDisplayString(unref(chip).removeText().after), 17)) : createCommentVNode("v-if", true)
|
|
78
79
|
], 16);
|
|
@@ -34,13 +34,23 @@ type __VLS_Props = {
|
|
|
34
34
|
initialMode?: 'calendar' | 'input';
|
|
35
35
|
};
|
|
36
36
|
type __VLS_Slots = {
|
|
37
|
-
/**
|
|
37
|
+
/**
|
|
38
|
+
* The field's button that opens the calendar, and the dialog's switch back to it. Without one,
|
|
39
|
+
* the `calendar` icon registered with `createRio`.
|
|
40
|
+
*/
|
|
38
41
|
'calendar-icon'?: () => unknown;
|
|
42
|
+
/** Without one, the `previous` icon registered with `createRio`. */
|
|
39
43
|
'previous-icon'?: () => unknown;
|
|
44
|
+
/** Without one, the `next` icon registered with `createRio`. */
|
|
40
45
|
'next-icon'?: () => unknown;
|
|
41
|
-
/**
|
|
46
|
+
/**
|
|
47
|
+
* The month and year buttons' arrow. Without one, the `dropdown` icon registered with
|
|
48
|
+
* `createRio`.
|
|
49
|
+
*/
|
|
42
50
|
'dropdown-icon'?: () => unknown;
|
|
43
|
-
/**
|
|
51
|
+
/**
|
|
52
|
+
* Modal: the switch to the text input. Without one, the `edit` icon registered with `createRio`.
|
|
53
|
+
*/
|
|
44
54
|
'edit-icon'?: () => unknown;
|
|
45
55
|
};
|
|
46
56
|
type __VLS_ModelProps = {
|
|
@@ -5,6 +5,7 @@ import { keepPresses } from "../overlay/presses.js";
|
|
|
5
5
|
import _sfc_main$3 from "../text-field/TextField.vue.js";
|
|
6
6
|
import _sfc_main$4 from "./DatePickerCalendar.vue.js";
|
|
7
7
|
import _sfc_main$5 from "./DatePickerDialog.vue.js";
|
|
8
|
+
import _sfc_main$6 from "../icon/Icon.vue.js";
|
|
8
9
|
import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, normalizeProps, onBeforeUnmount, onMounted, openBlock, reactive, renderSlot, toDisplayString, toHandlers, unref, useModel, useTemplateRef, watch, withCtx } from "vue";
|
|
9
10
|
import { attachDatePickerMenu, createDatePicker, initialDatePickerState } from "@rio-m3e/core";
|
|
10
11
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
@@ -122,7 +123,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
122
123
|
disabled: __props.disabled,
|
|
123
124
|
onClick: unref(picker).toggle
|
|
124
125
|
}), {
|
|
125
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "calendar-icon")]),
|
|
126
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "calendar-icon", {}, () => [createVNode(_sfc_main$6, { alias: "calendar" })])]),
|
|
126
127
|
_: 3
|
|
127
128
|
}, 16, [
|
|
128
129
|
"label",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _sfc_main$1 from "../icon-button/IconButton.vue.js";
|
|
2
2
|
import { vRipple } from "../ripple/ripple.js";
|
|
3
|
+
import _sfc_main$2 from "../icon/Icon.vue.js";
|
|
3
4
|
import { Fragment, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, normalizeProps, onBeforeUnmount, onMounted, onUpdated, openBlock, renderList, renderSlot, toDisplayString, unref, useModel, useTemplateRef, withCtx, withDirectives } from "vue";
|
|
4
5
|
import { attachCalendar, createCalendar } from "@rio-m3e/core";
|
|
5
6
|
// src/date-picker/DatePickerCalendar.vue
|
|
@@ -87,15 +88,15 @@ focus: () => handle?.focus() });
|
|
|
87
88
|
variant: "standard",
|
|
88
89
|
onClick: _cache[0] || (_cache[0] = ($event) => unref(calendar).goMonths(-1))
|
|
89
90
|
}), {
|
|
90
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "previous-icon")]),
|
|
91
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "previous-icon", {}, () => [createVNode(_sfc_main$2, { alias: "previous" })])]),
|
|
91
92
|
_: 3
|
|
92
93
|
}, 16),
|
|
93
|
-
withDirectives((openBlock(), createElementBlock("button", mergeProps(unref(calendar).parts.monthButton(), { onClick: _cache[1] || (_cache[1] = ($event) => unref(calendar).toggleView("months")) }), [createTextVNode(toDisplayString(unref(calendar).monthText()) + " ", 1), createElementVNode("span", normalizeProps(guardReactiveProps(unref(calendar).parts.dropdownIcon())), [renderSlot(_ctx.$slots, "dropdown-icon")], 16)], 16)), [[unref(vRipple)]]),
|
|
94
|
+
withDirectives((openBlock(), createElementBlock("button", mergeProps(unref(calendar).parts.monthButton(), { onClick: _cache[1] || (_cache[1] = ($event) => unref(calendar).toggleView("months")) }), [createTextVNode(toDisplayString(unref(calendar).monthText()) + " ", 1), createElementVNode("span", normalizeProps(guardReactiveProps(unref(calendar).parts.dropdownIcon())), [renderSlot(_ctx.$slots, "dropdown-icon", {}, () => [createVNode(_sfc_main$2, { alias: "dropdown" })])], 16)], 16)), [[unref(vRipple)]]),
|
|
94
95
|
createVNode(_sfc_main$1, mergeProps(nav(unref(calendar).parts.nextMonth()), {
|
|
95
96
|
variant: "standard",
|
|
96
97
|
onClick: _cache[2] || (_cache[2] = ($event) => unref(calendar).goMonths(1))
|
|
97
98
|
}), {
|
|
98
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "next-icon")]),
|
|
99
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "next-icon", {}, () => [createVNode(_sfc_main$2, { alias: "next" })])]),
|
|
99
100
|
_: 3
|
|
100
101
|
}, 16)
|
|
101
102
|
]), createElementVNode("span", _hoisted_2, [
|
|
@@ -103,28 +104,28 @@ focus: () => handle?.focus() });
|
|
|
103
104
|
variant: "standard",
|
|
104
105
|
onClick: _cache[3] || (_cache[3] = ($event) => unref(calendar).goMonths(-12))
|
|
105
106
|
}), {
|
|
106
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "previous-icon")]),
|
|
107
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "previous-icon", {}, () => [createVNode(_sfc_main$2, { alias: "previous" })])]),
|
|
107
108
|
_: 3
|
|
108
109
|
}, 16),
|
|
109
|
-
withDirectives((openBlock(), createElementBlock("button", mergeProps(unref(calendar).parts.yearButton(), { onClick: _cache[4] || (_cache[4] = ($event) => unref(calendar).toggleView("years")) }), [createTextVNode(toDisplayString(unref(calendar).yearText()) + " ", 1), createElementVNode("span", normalizeProps(guardReactiveProps(unref(calendar).parts.dropdownIcon())), [renderSlot(_ctx.$slots, "dropdown-icon")], 16)], 16)), [[unref(vRipple)]]),
|
|
110
|
+
withDirectives((openBlock(), createElementBlock("button", mergeProps(unref(calendar).parts.yearButton(), { onClick: _cache[4] || (_cache[4] = ($event) => unref(calendar).toggleView("years")) }), [createTextVNode(toDisplayString(unref(calendar).yearText()) + " ", 1), createElementVNode("span", normalizeProps(guardReactiveProps(unref(calendar).parts.dropdownIcon())), [renderSlot(_ctx.$slots, "dropdown-icon", {}, () => [createVNode(_sfc_main$2, { alias: "dropdown" })])], 16)], 16)), [[unref(vRipple)]]),
|
|
110
111
|
createVNode(_sfc_main$1, mergeProps(nav(unref(calendar).parts.nextYear()), {
|
|
111
112
|
variant: "standard",
|
|
112
113
|
onClick: _cache[5] || (_cache[5] = ($event) => unref(calendar).goMonths(12))
|
|
113
114
|
}), {
|
|
114
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "next-icon")]),
|
|
115
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "next-icon", {}, () => [createVNode(_sfc_main$2, { alias: "next" })])]),
|
|
115
116
|
_: 3
|
|
116
117
|
}, 16)
|
|
117
|
-
])], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [withDirectives((openBlock(), createElementBlock("button", mergeProps(unref(calendar).parts.yearButton(), { onClick: _cache[6] || (_cache[6] = ($event) => unref(calendar).toggleView("years")) }), [createTextVNode(toDisplayString(unref(calendar).yearText()) + " ", 1), createElementVNode("span", normalizeProps(guardReactiveProps(unref(calendar).parts.dropdownIcon())), [renderSlot(_ctx.$slots, "dropdown-icon")], 16)], 16)), [[unref(vRipple)]]), createElementVNode("span", _hoisted_3, [createVNode(_sfc_main$1, mergeProps(nav(unref(calendar).parts.previousMonth()), {
|
|
118
|
+
])], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [withDirectives((openBlock(), createElementBlock("button", mergeProps(unref(calendar).parts.yearButton(), { onClick: _cache[6] || (_cache[6] = ($event) => unref(calendar).toggleView("years")) }), [createTextVNode(toDisplayString(unref(calendar).yearText()) + " ", 1), createElementVNode("span", normalizeProps(guardReactiveProps(unref(calendar).parts.dropdownIcon())), [renderSlot(_ctx.$slots, "dropdown-icon", {}, () => [createVNode(_sfc_main$2, { alias: "dropdown" })])], 16)], 16)), [[unref(vRipple)]]), createElementVNode("span", _hoisted_3, [createVNode(_sfc_main$1, mergeProps(nav(unref(calendar).parts.previousMonth()), {
|
|
118
119
|
variant: "standard",
|
|
119
120
|
onClick: _cache[7] || (_cache[7] = ($event) => unref(calendar).goMonths(-1))
|
|
120
121
|
}), {
|
|
121
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "previous-icon")]),
|
|
122
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "previous-icon", {}, () => [createVNode(_sfc_main$2, { alias: "previous" })])]),
|
|
122
123
|
_: 3
|
|
123
124
|
}, 16), createVNode(_sfc_main$1, mergeProps(nav(unref(calendar).parts.nextMonth()), {
|
|
124
125
|
variant: "standard",
|
|
125
126
|
onClick: _cache[8] || (_cache[8] = ($event) => unref(calendar).goMonths(1))
|
|
126
127
|
}), {
|
|
127
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "next-icon")]),
|
|
128
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "next-icon", {}, () => [createVNode(_sfc_main$2, { alias: "next" })])]),
|
|
128
129
|
_: 3
|
|
129
130
|
}, 16)])], 64))], 16), unref(calendar).view() === "days" ? (openBlock(), createElementBlock("table", normalizeProps(mergeProps({ key: 0 }, unref(calendar).parts.grid())), [createElementVNode("thead", null, [createElementVNode("tr", null, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(calendar).weekdays(), (day) => {
|
|
130
131
|
return openBlock(), createElementBlock("th", mergeProps({ key: day }, { ref_for: true }, unref(calendar).parts.weekday(day)), toDisplayString(unref(calendar).weekdayText(day)), 17);
|
|
@@ -26,12 +26,21 @@ type __VLS_Props = {
|
|
|
26
26
|
clearable?: boolean;
|
|
27
27
|
};
|
|
28
28
|
type __VLS_Slots = {
|
|
29
|
+
/** Without one, the `previous` icon registered with `createRio`. */
|
|
29
30
|
'previous-icon'?: () => unknown;
|
|
31
|
+
/** Without one, the `next` icon registered with `createRio`. */
|
|
30
32
|
'next-icon'?: () => unknown;
|
|
33
|
+
/** Without one, the `dropdown` icon registered with `createRio`. */
|
|
31
34
|
'dropdown-icon'?: () => unknown;
|
|
32
|
-
/**
|
|
35
|
+
/**
|
|
36
|
+
* The mode button's icon in the calendar, which switches to the text input. Without one, the
|
|
37
|
+
* `edit` icon registered with `createRio`.
|
|
38
|
+
*/
|
|
33
39
|
'edit-icon'?: () => unknown;
|
|
34
|
-
/**
|
|
40
|
+
/**
|
|
41
|
+
* The mode button's icon in the text input, which switches to the calendar. Without one, the
|
|
42
|
+
* `calendar` icon registered with `createRio`.
|
|
43
|
+
*/
|
|
35
44
|
'calendar-icon'?: () => unknown;
|
|
36
45
|
};
|
|
37
46
|
type __VLS_ModelProps = {
|
|
@@ -4,6 +4,7 @@ import { useLocale, useMessages } from "../locale/locale.js";
|
|
|
4
4
|
import { keepPresses } from "../overlay/presses.js";
|
|
5
5
|
import _sfc_main$3 from "../text-field/TextField.vue.js";
|
|
6
6
|
import _sfc_main$4 from "./DatePickerCalendar.vue.js";
|
|
7
|
+
import _sfc_main$5 from "../icon/Icon.vue.js";
|
|
7
8
|
import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, nextTick, normalizeProps, onBeforeUnmount, onMounted, openBlock, reactive, ref, renderSlot, toDisplayString, toHandlers, unref, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
|
|
8
9
|
import { attachDialog, createDatePickerDialog, initialDatePickerState } from "@rio-m3e/core";
|
|
9
10
|
import "@rio-m3e/styles/base/focus-ring.css";
|
|
@@ -106,7 +107,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
106
107
|
label: unref(dialog).modeButtonLabel(),
|
|
107
108
|
onClick: unref(dialog).switchMode
|
|
108
109
|
}, {
|
|
109
|
-
default: withCtx(() => [state.mode === "calendar" ? renderSlot(_ctx.$slots, "edit-icon", {},
|
|
110
|
+
default: withCtx(() => [state.mode === "calendar" ? renderSlot(_ctx.$slots, "edit-icon", {}, () => [createVNode(_sfc_main$5, { alias: "edit" })], void 0, 0) : renderSlot(_ctx.$slots, "calendar-icon", {}, () => [createVNode(_sfc_main$5, { alias: "calendar" })], void 0, 1)]),
|
|
110
111
|
_: 3
|
|
111
112
|
}, 8, ["label", "onClick"])
|
|
112
113
|
], 16),
|
|
@@ -23,9 +23,15 @@ type __VLS_Props = {
|
|
|
23
23
|
clearable?: boolean;
|
|
24
24
|
};
|
|
25
25
|
type __VLS_Slots = {
|
|
26
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* The mode button's icon in the calendar, which switches to the text input. Without one, the
|
|
28
|
+
* `edit` icon registered with `createRio`.
|
|
29
|
+
*/
|
|
27
30
|
'edit-icon'?: () => unknown;
|
|
28
|
-
/**
|
|
31
|
+
/**
|
|
32
|
+
* The mode button's icon in the text input, which switches to the calendar. Without one, the
|
|
33
|
+
* `calendar` icon registered with `createRio`.
|
|
34
|
+
*/
|
|
29
35
|
'calendar-icon'?: () => unknown;
|
|
30
36
|
};
|
|
31
37
|
type __VLS_ModelProps = {
|
|
@@ -38,13 +44,13 @@ type __VLS_ModelProps = {
|
|
|
38
44
|
};
|
|
39
45
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
40
46
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
41
|
-
"update:open": (value: boolean) => any;
|
|
42
47
|
"update:start": (value: string | undefined) => any;
|
|
43
48
|
"update:end": (value: string | undefined) => any;
|
|
49
|
+
"update:open": (value: boolean) => any;
|
|
44
50
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
45
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
46
51
|
"onUpdate:start"?: ((value: string | undefined) => any) | undefined;
|
|
47
52
|
"onUpdate:end"?: ((value: string | undefined) => any) | undefined;
|
|
53
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
48
54
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
49
55
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
50
56
|
declare const _default: typeof __VLS_export;
|
|
@@ -4,6 +4,7 @@ import { useLocale, useMessages } from "../locale/locale.js";
|
|
|
4
4
|
import { keepPresses } from "../overlay/presses.js";
|
|
5
5
|
import _sfc_main$3 from "../text-field/TextField.vue.js";
|
|
6
6
|
import _sfc_main$4 from "./DateRangeCalendar.vue.js";
|
|
7
|
+
import _sfc_main$5 from "../icon/Icon.vue.js";
|
|
7
8
|
import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, nextTick, normalizeProps, onBeforeUnmount, onMounted, openBlock, reactive, ref, renderSlot, toDisplayString, toHandlers, unref, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
|
|
8
9
|
import { attachDialog, createDateRangePickerDialog, initialDateRangePickerState } from "@rio-m3e/core";
|
|
9
10
|
import "@rio-m3e/styles/base/focus-ring.css";
|
|
@@ -118,7 +119,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
118
119
|
label: unref(dialog).modeButtonLabel(),
|
|
119
120
|
onClick: unref(dialog).switchMode
|
|
120
121
|
}, {
|
|
121
|
-
default: withCtx(() => [state.mode === "calendar" ? renderSlot(_ctx.$slots, "edit-icon", {},
|
|
122
|
+
default: withCtx(() => [state.mode === "calendar" ? renderSlot(_ctx.$slots, "edit-icon", {}, () => [createVNode(_sfc_main$5, { alias: "edit" })], void 0, 0) : renderSlot(_ctx.$slots, "calendar-icon", {}, () => [createVNode(_sfc_main$5, { alias: "calendar" })], void 0, 1)]),
|
|
122
123
|
_: 3
|
|
123
124
|
}, 8, ["label", "onClick"])
|
|
124
125
|
], 16),
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RioIconValue } from "./icons.js";
|
|
2
|
+
import { IconAlias } from "@rio-m3e/core";
|
|
3
|
+
import "@rio-m3e/styles/base/direction.css";
|
|
4
|
+
import "@rio-m3e/styles/icon.css";
|
|
5
|
+
type __VLS_Props = {
|
|
6
|
+
/** The icon, or a name the app's `resolve` turns into one (`createRio`'s `icons`) */
|
|
7
|
+
icon?: RioIconValue | string;
|
|
8
|
+
/** One of the icons the app gave for what Rio's components draw on their own, in its place */
|
|
9
|
+
alias?: IconAlias;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export { _default as default };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { useIcons } from "./icons.js";
|
|
2
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, resolveDynamicComponent, unref } from "vue";
|
|
3
|
+
import { createIcon, iconOf, isIconSource } from "@rio-m3e/core";
|
|
4
|
+
import "@rio-m3e/styles/base/direction.css";
|
|
5
|
+
import "@rio-m3e/styles/icon.css";
|
|
6
|
+
// src/icon/Icon.vue
|
|
7
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
8
|
+
__name: "Icon",
|
|
9
|
+
props: {
|
|
10
|
+
icon: {},
|
|
11
|
+
alias: {}
|
|
12
|
+
},
|
|
13
|
+
setup(__props) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
const icons = useIcons();
|
|
16
|
+
const value = computed(() => iconOf(icons?.value, {
|
|
17
|
+
icon: props.icon,
|
|
18
|
+
alias: props.alias
|
|
19
|
+
}));
|
|
20
|
+
const source = computed(() => isIconSource(value.value) ? value.value : void 0);
|
|
21
|
+
const drawn = createIcon({
|
|
22
|
+
source: () => source.value,
|
|
23
|
+
alias: () => props.alias
|
|
24
|
+
});
|
|
25
|
+
return (_ctx, _cache) => {
|
|
26
|
+
return source.value?.type === "svg" ? (openBlock(), createElementBlock("svg", normalizeProps(mergeProps({ key: 0 }, unref(drawn).parts.root())), [createElementVNode("path", normalizeProps(guardReactiveProps(unref(drawn).parts.path())), null, 16)], 16)) : source.value ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 1 }, unref(drawn).parts.root())), [createElementVNode("span", normalizeProps(guardReactiveProps(unref(drawn).parts.glyph())), null, 16)], 16)) : value.value ? (openBlock(), createBlock(resolveDynamicComponent(value.value), normalizeProps(mergeProps({ key: 2 }, unref(drawn).parts.root())), null, 16)) : createCommentVNode("v-if", true);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Component, ComputedRef, InjectionKey, Ref } from "vue";
|
|
2
|
+
import { IconAlias, IconRegistry, IconSource } from "@rio-m3e/core";
|
|
3
|
+
/** An icon: SVG paths, an icon font's ligature or class (`IconSource`), or a Vue component */
|
|
4
|
+
export type RioIconValue = IconSource | Component;
|
|
5
|
+
/**
|
|
6
|
+
* The app's icons, given to `createRio`: the icons for what Rio's components draw on their own
|
|
7
|
+
* (`aliases`), and `resolve`, which turns a name into an icon.
|
|
8
|
+
*/
|
|
9
|
+
export type RioIcons = IconRegistry<RioIconValue>;
|
|
10
|
+
export declare const iconsKey: InjectionKey<Ref<RioIcons | undefined>>;
|
|
11
|
+
/** The icon the app gave for an alias, or none */
|
|
12
|
+
export declare function useIconOfAlias(alias: IconAlias): ComputedRef<RioIconValue | undefined>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { computed, inject } from "vue";
|
|
2
|
+
import { iconOfAlias } from "@rio-m3e/core";
|
|
3
|
+
// src/icon/icons.ts
|
|
4
|
+
const iconsKey = Symbol("RioIcons");
|
|
5
|
+
/** The app's icons, as `createRio` provides them */
|
|
6
|
+
const useIcons = () => inject(iconsKey, void 0);
|
|
7
|
+
/** The icon the app gave for an alias, or none */
|
|
8
|
+
function useIconOfAlias(alias) {
|
|
9
|
+
const icons = useIcons();
|
|
10
|
+
return computed(() => iconOfAlias(icons?.value, alias));
|
|
11
|
+
}
|
|
12
|
+
export { iconsKey, useIconOfAlias, useIcons };
|
|
@@ -15,11 +15,11 @@ type __VLS_Slots = {
|
|
|
15
15
|
'selected-icon'?: () => unknown;
|
|
16
16
|
};
|
|
17
17
|
declare const __VLS_base: import("vue").DefineComponent<IconButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
-
"update:selected": (selected: boolean) => any;
|
|
19
18
|
click: (event: MouseEvent) => any;
|
|
19
|
+
"update:selected": (selected: boolean) => any;
|
|
20
20
|
}, string, import("vue").PublicProps, Readonly<IconButtonProps> & Readonly<{
|
|
21
|
-
"onUpdate:selected"?: ((selected: boolean) => any) | undefined;
|
|
22
21
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
22
|
+
"onUpdate:selected"?: ((selected: boolean) => any) | undefined;
|
|
23
23
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
24
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
25
|
declare const _default: typeof __VLS_export;
|
package/dist/index.d.ts
CHANGED
|
@@ -4,39 +4,41 @@ import _default$3 from "./checkbox/Checkbox.vue.js";
|
|
|
4
4
|
import _default from "./chip/AssistChip.vue.js";
|
|
5
5
|
import _default$4 from "./chip/ChipSet.vue.js";
|
|
6
6
|
import _default$10 from "./chip/FilterChip.vue.js";
|
|
7
|
-
import _default$
|
|
8
|
-
import _default$
|
|
7
|
+
import _default$13 from "./chip/InputChip.vue.js";
|
|
8
|
+
import _default$32 from "./chip/SuggestionChip.vue.js";
|
|
9
9
|
import _default$6 from "./date-picker/DatePicker.vue.js";
|
|
10
10
|
import _default$7 from "./date-picker/DatePickerDialog.vue.js";
|
|
11
11
|
import _default$8 from "./date-picker/DateRangePickerDialog.vue.js";
|
|
12
12
|
import _default$9 from "./dialog/Dialog.vue.js";
|
|
13
|
-
import _default$11 from "./icon
|
|
13
|
+
import _default$11 from "./icon/Icon.vue.js";
|
|
14
|
+
import { RioIconValue, RioIcons, iconsKey, useIconOfAlias } from "./icon/icons.js";
|
|
15
|
+
import _default$12 from "./icon-button/IconButton.vue.js";
|
|
14
16
|
import { localeKey, messagesKey, useLocale, useMessages } from "./locale/locale.js";
|
|
15
17
|
import { RioOptions, RioPlugin, RioThemeOptions, createRio } from "./rio/rio.js";
|
|
16
|
-
import _default$
|
|
17
|
-
import _default$
|
|
18
|
-
import _default$
|
|
19
|
-
import _default$
|
|
20
|
-
import _default$
|
|
21
|
-
import _default$
|
|
22
|
-
import _default$
|
|
23
|
-
import _default$
|
|
24
|
-
import _default$
|
|
18
|
+
import _default$15 from "./list/List.vue.js";
|
|
19
|
+
import _default$16 from "./list/ListItem.vue.js";
|
|
20
|
+
import _default$18 from "./locale/LocaleProvider.vue.js";
|
|
21
|
+
import _default$17 from "./loading-indicator/LoadingIndicator.vue.js";
|
|
22
|
+
import _default$19 from "./menu/Menu.vue.js";
|
|
23
|
+
import _default$20 from "./menu/MenuDivider.vue.js";
|
|
24
|
+
import _default$21 from "./menu/MenuGroup.vue.js";
|
|
25
|
+
import _default$22 from "./menu/MenuItem.vue.js";
|
|
26
|
+
import _default$31 from "./menu/SubMenu.vue.js";
|
|
25
27
|
import _default$5 from "./progress/CircularProgress.vue.js";
|
|
26
|
-
import _default$
|
|
27
|
-
import _default$
|
|
28
|
-
import _default$
|
|
28
|
+
import _default$14 from "./progress/LinearProgress.vue.js";
|
|
29
|
+
import _default$23 from "./radio/Radio.vue.js";
|
|
30
|
+
import _default$24 from "./radio/RadioGroup.vue.js";
|
|
29
31
|
import { vRipple } from "./ripple/ripple.js";
|
|
30
|
-
import _default$
|
|
31
|
-
import _default$
|
|
32
|
-
import _default$
|
|
33
|
-
import _default$
|
|
34
|
-
import _default$
|
|
35
|
-
import _default$
|
|
36
|
-
import _default$
|
|
37
|
-
import _default$
|
|
38
|
-
import _default$
|
|
39
|
-
import _default$
|
|
40
|
-
import _default$
|
|
41
|
-
import _default$
|
|
42
|
-
export { _default as RioAssistChip, _default$1 as RioButton, _default$2 as RioButtonGroup, _default$3 as RioCheckbox, _default$4 as RioChipSet, _default$5 as RioCircularProgress, _default$6 as RioDatePicker, _default$7 as RioDatePickerDialog, _default$8 as RioDateRangePickerDialog, _default$9 as RioDialog, _default$10 as RioFilterChip, _default$11 as
|
|
32
|
+
import _default$26 from "./scroll-field/ScrollField.vue.js";
|
|
33
|
+
import _default$27 from "./select/Select.vue.js";
|
|
34
|
+
import _default$28 from "./select/SelectOption.vue.js";
|
|
35
|
+
import _default$25 from "./slider/RangeSlider.vue.js";
|
|
36
|
+
import _default$29 from "./slider/Slider.vue.js";
|
|
37
|
+
import _default$30 from "./split-button/SplitButton.vue.js";
|
|
38
|
+
import _default$33 from "./switch/Switch.vue.js";
|
|
39
|
+
import _default$34 from "./text-field/TextField.vue.js";
|
|
40
|
+
import _default$35 from "./time-picker/TimeInput.vue.js";
|
|
41
|
+
import _default$36 from "./time-picker/TimePickerDialog.vue.js";
|
|
42
|
+
import _default$37 from "./time-picker/TimeScroll.vue.js";
|
|
43
|
+
import _default$38 from "./tooltip/Tooltip.vue.js";
|
|
44
|
+
export { _default as RioAssistChip, _default$1 as RioButton, _default$2 as RioButtonGroup, _default$3 as RioCheckbox, _default$4 as RioChipSet, _default$5 as RioCircularProgress, _default$6 as RioDatePicker, _default$7 as RioDatePickerDialog, _default$8 as RioDateRangePickerDialog, _default$9 as RioDialog, _default$10 as RioFilterChip, _default$11 as RioIcon, _default$12 as RioIconButton, type RioIconValue, type RioIcons, _default$13 as RioInputChip, _default$14 as RioLinearProgress, _default$15 as RioList, _default$16 as RioListItem, _default$17 as RioLoadingIndicator, _default$18 as RioLocaleProvider, _default$19 as RioMenu, _default$20 as RioMenuDivider, _default$21 as RioMenuGroup, _default$22 as RioMenuItem, type RioOptions, type RioPlugin, _default$23 as RioRadio, _default$24 as RioRadioGroup, _default$25 as RioRangeSlider, _default$26 as RioScrollField, _default$27 as RioSelect, _default$28 as RioSelectOption, _default$29 as RioSlider, _default$30 as RioSplitButton, _default$31 as RioSubMenu, _default$32 as RioSuggestionChip, _default$33 as RioSwitch, _default$34 as RioTextField, type RioThemeOptions, _default$35 as RioTimeInput, _default$36 as RioTimePickerDialog, _default$37 as RioTimeScroll, _default$38 as RioTooltip, createRio, iconsKey, localeKey, messagesKey, useIconOfAlias, useLocale, useMessages, vRipple };
|
package/dist/index.js
CHANGED
|
@@ -4,39 +4,41 @@ import _sfc_main$3 from "./checkbox/Checkbox.vue.js";
|
|
|
4
4
|
import _sfc_main from "./chip/AssistChip.vue.js";
|
|
5
5
|
import _sfc_main$4 from "./chip/ChipSet.vue.js";
|
|
6
6
|
import _sfc_main$10 from "./chip/FilterChip.vue.js";
|
|
7
|
-
import _sfc_main$
|
|
8
|
-
import _sfc_main$
|
|
7
|
+
import _sfc_main$13 from "./chip/InputChip.vue.js";
|
|
8
|
+
import _sfc_main$32 from "./chip/SuggestionChip.vue.js";
|
|
9
9
|
import _sfc_main$6 from "./date-picker/DatePicker.vue.js";
|
|
10
10
|
import _sfc_main$7 from "./date-picker/DatePickerDialog.vue.js";
|
|
11
11
|
import _sfc_main$8 from "./date-picker/DateRangePickerDialog.vue.js";
|
|
12
12
|
import _sfc_main$9 from "./dialog/Dialog.vue.js";
|
|
13
|
-
import _sfc_main$11 from "./icon
|
|
13
|
+
import _sfc_main$11 from "./icon/Icon.vue.js";
|
|
14
|
+
import { iconsKey, useIconOfAlias } from "./icon/icons.js";
|
|
15
|
+
import _sfc_main$12 from "./icon-button/IconButton.vue.js";
|
|
14
16
|
import { localeKey, messagesKey, useLocale, useMessages } from "./locale/locale.js";
|
|
15
17
|
import { createRio } from "./rio/rio.js";
|
|
16
|
-
import _sfc_main$
|
|
17
|
-
import _sfc_main$
|
|
18
|
-
import _sfc_main$
|
|
19
|
-
import _sfc_main$
|
|
20
|
-
import _sfc_main$
|
|
21
|
-
import _sfc_main$
|
|
22
|
-
import _sfc_main$
|
|
23
|
-
import _sfc_main$
|
|
24
|
-
import _sfc_main$
|
|
18
|
+
import _sfc_main$15 from "./list/List.vue.js";
|
|
19
|
+
import _sfc_main$16 from "./list/ListItem.vue.js";
|
|
20
|
+
import _sfc_main$18 from "./locale/LocaleProvider.vue.js";
|
|
21
|
+
import _sfc_main$17 from "./loading-indicator/LoadingIndicator.vue.js";
|
|
22
|
+
import _sfc_main$19 from "./menu/Menu.vue.js";
|
|
23
|
+
import _sfc_main$20 from "./menu/MenuDivider.vue.js";
|
|
24
|
+
import _sfc_main$21 from "./menu/MenuGroup.vue.js";
|
|
25
|
+
import _sfc_main$22 from "./menu/MenuItem.vue.js";
|
|
26
|
+
import _sfc_main$31 from "./menu/SubMenu.vue.js";
|
|
25
27
|
import _sfc_main$5 from "./progress/CircularProgress.vue.js";
|
|
26
|
-
import _sfc_main$
|
|
27
|
-
import _sfc_main$
|
|
28
|
-
import _sfc_main$
|
|
28
|
+
import _sfc_main$14 from "./progress/LinearProgress.vue.js";
|
|
29
|
+
import _sfc_main$23 from "./radio/Radio.vue.js";
|
|
30
|
+
import _sfc_main$24 from "./radio/RadioGroup.vue.js";
|
|
29
31
|
import { vRipple } from "./ripple/ripple.js";
|
|
30
|
-
import _sfc_main$
|
|
31
|
-
import _sfc_main$
|
|
32
|
-
import _sfc_main$
|
|
33
|
-
import _sfc_main$
|
|
34
|
-
import _sfc_main$
|
|
35
|
-
import _sfc_main$
|
|
36
|
-
import _sfc_main$
|
|
37
|
-
import _sfc_main$
|
|
38
|
-
import _sfc_main$
|
|
39
|
-
import _sfc_main$
|
|
40
|
-
import _sfc_main$
|
|
41
|
-
import _sfc_main$
|
|
42
|
-
export { _sfc_main as RioAssistChip, _sfc_main$1 as RioButton, _sfc_main$2 as RioButtonGroup, _sfc_main$3 as RioCheckbox, _sfc_main$4 as RioChipSet, _sfc_main$5 as RioCircularProgress, _sfc_main$6 as RioDatePicker, _sfc_main$7 as RioDatePickerDialog, _sfc_main$8 as RioDateRangePickerDialog, _sfc_main$9 as RioDialog, _sfc_main$10 as RioFilterChip, _sfc_main$11 as
|
|
32
|
+
import _sfc_main$26 from "./scroll-field/ScrollField.vue.js";
|
|
33
|
+
import _sfc_main$27 from "./select/Select.vue.js";
|
|
34
|
+
import _sfc_main$28 from "./select/SelectOption.vue.js";
|
|
35
|
+
import _sfc_main$25 from "./slider/RangeSlider.vue.js";
|
|
36
|
+
import _sfc_main$29 from "./slider/Slider.vue.js";
|
|
37
|
+
import _sfc_main$30 from "./split-button/SplitButton.vue.js";
|
|
38
|
+
import _sfc_main$33 from "./switch/Switch.vue.js";
|
|
39
|
+
import _sfc_main$34 from "./text-field/TextField.vue.js";
|
|
40
|
+
import _sfc_main$35 from "./time-picker/TimeInput.vue.js";
|
|
41
|
+
import _sfc_main$36 from "./time-picker/TimePickerDialog.vue.js";
|
|
42
|
+
import _sfc_main$37 from "./time-picker/TimeScroll.vue.js";
|
|
43
|
+
import _sfc_main$38 from "./tooltip/Tooltip.vue.js";
|
|
44
|
+
export { _sfc_main as RioAssistChip, _sfc_main$1 as RioButton, _sfc_main$2 as RioButtonGroup, _sfc_main$3 as RioCheckbox, _sfc_main$4 as RioChipSet, _sfc_main$5 as RioCircularProgress, _sfc_main$6 as RioDatePicker, _sfc_main$7 as RioDatePickerDialog, _sfc_main$8 as RioDateRangePickerDialog, _sfc_main$9 as RioDialog, _sfc_main$10 as RioFilterChip, _sfc_main$11 as RioIcon, _sfc_main$12 as RioIconButton, _sfc_main$13 as RioInputChip, _sfc_main$14 as RioLinearProgress, _sfc_main$15 as RioList, _sfc_main$16 as RioListItem, _sfc_main$17 as RioLoadingIndicator, _sfc_main$18 as RioLocaleProvider, _sfc_main$19 as RioMenu, _sfc_main$20 as RioMenuDivider, _sfc_main$21 as RioMenuGroup, _sfc_main$22 as RioMenuItem, _sfc_main$23 as RioRadio, _sfc_main$24 as RioRadioGroup, _sfc_main$25 as RioRangeSlider, _sfc_main$26 as RioScrollField, _sfc_main$27 as RioSelect, _sfc_main$28 as RioSelectOption, _sfc_main$29 as RioSlider, _sfc_main$30 as RioSplitButton, _sfc_main$31 as RioSubMenu, _sfc_main$32 as RioSuggestionChip, _sfc_main$33 as RioSwitch, _sfc_main$34 as RioTextField, _sfc_main$35 as RioTimeInput, _sfc_main$36 as RioTimePickerDialog, _sfc_main$37 as RioTimeScroll, _sfc_main$38 as RioTooltip, createRio, iconsKey, localeKey, messagesKey, useIconOfAlias, useLocale, useMessages, vRipple };
|
package/dist/menu/Menu.vue.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { MenuAnchorPoint, MenuProps, MenuSelected } from "@rio-m3e/core";
|
|
2
2
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
3
|
+
import "@rio-m3e/styles/base/direction.css";
|
|
3
4
|
import "@rio-m3e/styles/base/anchored-position.css";
|
|
4
5
|
import "@rio-m3e/styles/menu.css";
|
|
5
6
|
interface Props extends Omit<MenuProps, 'selected'> {
|
package/dist/menu/Menu.vue.js
CHANGED
|
@@ -3,6 +3,7 @@ import { menuContextOf, menuKey } from "./context.js";
|
|
|
3
3
|
import { createElementBlock, defineComponent, mergeProps, onBeforeUnmount, onMounted, openBlock, provide, ref, renderSlot, toHandlers, unref, useTemplateRef, watch } from "vue";
|
|
4
4
|
import { attachMenu, createMenu } from "@rio-m3e/core";
|
|
5
5
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
6
|
+
import "@rio-m3e/styles/base/direction.css";
|
|
6
7
|
import "@rio-m3e/styles/base/anchored-position.css";
|
|
7
8
|
import "@rio-m3e/styles/menu.css";
|
|
8
9
|
// src/menu/Menu.vue
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import "@rio-m3e/styles/base/direction.css";
|
|
1
2
|
import "@rio-m3e/styles/menu.css";
|
|
2
3
|
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
3
4
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createElementBlock, defineComponent, guardReactiveProps, normalizeProps, openBlock, unref } from "vue";
|
|
2
2
|
import { createMenuDivider } from "@rio-m3e/core";
|
|
3
|
+
import "@rio-m3e/styles/base/direction.css";
|
|
3
4
|
import "@rio-m3e/styles/menu.css";
|
|
4
5
|
// src/menu/MenuDivider.vue
|
|
5
6
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createCommentVNode, createElementBlock, createElementVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderSlot, toDisplayString, unref } from "vue";
|
|
2
2
|
import { createMenuGroup } from "@rio-m3e/core";
|
|
3
|
+
import "@rio-m3e/styles/base/direction.css";
|
|
3
4
|
import "@rio-m3e/styles/menu.css";
|
|
4
5
|
// src/menu/MenuGroup.vue
|
|
5
6
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { MenuItemProps } from "@rio-m3e/core";
|
|
2
2
|
import "@rio-m3e/styles/base/focus-ring.css";
|
|
3
3
|
import "@rio-m3e/styles/base/state-layer.css";
|
|
4
|
+
import "@rio-m3e/styles/base/direction.css";
|
|
4
5
|
import "@rio-m3e/styles/menu.css";
|
|
5
6
|
type __VLS_Slots = {
|
|
6
7
|
/** The label */
|
|
@@ -4,6 +4,7 @@ import { createCommentVNode, createElementBlock, createElementVNode, defineCompo
|
|
|
4
4
|
import { createMenuItem } from "@rio-m3e/core";
|
|
5
5
|
import "@rio-m3e/styles/base/focus-ring.css";
|
|
6
6
|
import "@rio-m3e/styles/base/state-layer.css";
|
|
7
|
+
import "@rio-m3e/styles/base/direction.css";
|
|
7
8
|
import "@rio-m3e/styles/menu.css";
|
|
8
9
|
// src/menu/MenuItem.vue
|
|
9
10
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
@@ -2,6 +2,7 @@ import { MenuSelected, SubMenuProps } 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/direction.css";
|
|
5
6
|
import "@rio-m3e/styles/base/anchored-position.css";
|
|
6
7
|
import "@rio-m3e/styles/menu.css";
|
|
7
8
|
interface Props extends Omit<SubMenuProps, 'selected'> {
|
|
@@ -19,7 +20,7 @@ type __VLS_Slots = {
|
|
|
19
20
|
'trailing-text'?: () => unknown;
|
|
20
21
|
/**
|
|
21
22
|
* A trailing icon on the item, hidden from assistive technology, such as an arrow pointing to the
|
|
22
|
-
* submenu.
|
|
23
|
+
* submenu. Without one, the `submenu` icon registered with `createRio`.
|
|
23
24
|
*/
|
|
24
25
|
'trailing-icon'?: () => unknown;
|
|
25
26
|
};
|
package/dist/menu/SubMenu.vue.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { vRipple } from "../ripple/ripple.js";
|
|
2
2
|
import { menuContextOf, menuKey } from "./context.js";
|
|
3
|
-
import
|
|
3
|
+
import _sfc_main$1 from "../icon/Icon.vue.js";
|
|
4
|
+
import { useIconOfAlias } from "../icon/icons.js";
|
|
5
|
+
import { Fragment, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, inject, mergeProps, normalizeProps, onBeforeUnmount, onMounted, openBlock, provide, ref, renderSlot, toDisplayString, unref, useId, useSlots, useTemplateRef, watch, withDirectives } from "vue";
|
|
4
6
|
import { attachSubMenu, createSubMenu, mergePartAttrs } from "@rio-m3e/core";
|
|
5
7
|
import "@rio-m3e/styles/base/focus-ring.css";
|
|
6
8
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
7
9
|
import "@rio-m3e/styles/base/state-layer.css";
|
|
10
|
+
import "@rio-m3e/styles/base/direction.css";
|
|
8
11
|
import "@rio-m3e/styles/base/anchored-position.css";
|
|
9
12
|
import "@rio-m3e/styles/menu.css";
|
|
10
13
|
// src/menu/SubMenu.vue
|
|
@@ -25,6 +28,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
25
28
|
const open = ref(false);
|
|
26
29
|
const inactive = ref(false);
|
|
27
30
|
const id = useId();
|
|
31
|
+
const submenuIcon = useIconOfAlias("submenu");
|
|
28
32
|
const sub = createSubMenu({
|
|
29
33
|
props: () => ({
|
|
30
34
|
label: __props.label,
|
|
@@ -36,7 +40,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
36
40
|
icon: !!slots.icon,
|
|
37
41
|
supportingText: !!slots["supporting-text"],
|
|
38
42
|
trailingText: !!slots["trailing-text"],
|
|
39
|
-
trailingIcon: !!slots["trailing-icon"]
|
|
43
|
+
trailingIcon: !!slots["trailing-icon"] || !!submenuIcon.value
|
|
40
44
|
}),
|
|
41
45
|
menu: () => parent,
|
|
42
46
|
open: () => open.value,
|
|
@@ -77,7 +81,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
77
81
|
unref(item).showsIcon() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 0 }, unref(item).parts.icon())), [renderSlot(_ctx.$slots, "icon")], 16)) : createCommentVNode("v-if", true),
|
|
78
82
|
createElementVNode("span", normalizeProps(guardReactiveProps(unref(item).parts.text())), [createElementVNode("span", normalizeProps(guardReactiveProps(unref(item).parts.label())), toDisplayString(__props.label), 17), unref(item).showsSupportingText() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 0 }, unref(item).parts.supportingText())), [renderSlot(_ctx.$slots, "supporting-text")], 16)) : createCommentVNode("v-if", true)], 16),
|
|
79
83
|
unref(item).showsTrailingText() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 1 }, unref(item).parts.trailingText())), [renderSlot(_ctx.$slots, "trailing-text")], 16)) : createCommentVNode("v-if", true),
|
|
80
|
-
unref(item).showsTrailingIcon() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 2 }, unref(item).parts.trailingIcon())), [renderSlot(_ctx.$slots, "trailing-icon")], 16)) : createCommentVNode("v-if", true)
|
|
84
|
+
unref(item).showsTrailingIcon() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 2 }, unref(item).parts.trailingIcon())), [renderSlot(_ctx.$slots, "trailing-icon", {}, () => [createVNode(_sfc_main$1, { alias: "submenu" })])], 16)) : createCommentVNode("v-if", true)
|
|
81
85
|
], 16)), [[unref(vRipple)]]),
|
|
82
86
|
createCommentVNode(" Inside the menu's own element, which keeps clicks and presses in. "),
|
|
83
87
|
createElementVNode("div", mergeProps({
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CircularProgressProps } from "@rio-m3e/core";
|
|
2
|
+
import "@rio-m3e/styles/base/direction.css";
|
|
2
3
|
import "@rio-m3e/styles/progress.css";
|
|
3
4
|
declare const __VLS_export: import("vue").DefineComponent<CircularProgressProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CircularProgressProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
4
5
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createCommentVNode, createElementBlock, createElementVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, onBeforeUnmount, onMounted, onUpdated, openBlock, unref, useTemplateRef } from "vue";
|
|
2
2
|
import { attachCircularProgress, createCircularProgress } from "@rio-m3e/core";
|
|
3
|
+
import "@rio-m3e/styles/base/direction.css";
|
|
3
4
|
import "@rio-m3e/styles/progress.css";
|
|
4
5
|
// src/progress/CircularProgress.vue
|
|
5
6
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import "@rio-m3e/styles/base/direction.css";
|
|
1
2
|
import "@rio-m3e/styles/progress.css";
|
|
2
3
|
declare const __VLS_export: import("vue").DefineComponent<import("@rio-m3e/core").ProgressCommonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("@rio-m3e/core").ProgressCommonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3
4
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createCommentVNode, createElementBlock, createElementVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, onBeforeUnmount, onMounted, onUpdated, openBlock, unref, useTemplateRef } from "vue";
|
|
2
2
|
import { attachLinearProgress, createLinearProgress } from "@rio-m3e/core";
|
|
3
|
+
import "@rio-m3e/styles/base/direction.css";
|
|
3
4
|
import "@rio-m3e/styles/progress.css";
|
|
4
5
|
// src/progress/LinearProgress.vue
|
|
5
6
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
package/dist/rio/rio.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RioIcons } from "../icon/icons.js";
|
|
1
2
|
import { App, MaybeRefOrGetter } from "vue";
|
|
2
3
|
import { PartialMessages } from "@rio-m3e/core";
|
|
3
4
|
import { ThemeOptions } from "@rio-m3e/tokens";
|
|
@@ -6,7 +7,8 @@ export type RioThemeOptions = ThemeOptions;
|
|
|
6
7
|
export interface RioOptions {
|
|
7
8
|
/**
|
|
8
9
|
* The theme, written as `--rio-*` variables on the document's root as the app installs Rio,
|
|
9
|
-
* before it mounts. A ref or a getter writes it again when it changes.
|
|
10
|
+
* before it mounts. A ref or a getter writes it again when it changes. Without its own
|
|
11
|
+
* `languageHeight`, the line heights follow the script of the app's language (`locale`).
|
|
10
12
|
*/
|
|
11
13
|
theme?: MaybeRefOrGetter<RioThemeOptions | undefined>;
|
|
12
14
|
/**
|
|
@@ -18,6 +20,12 @@ export interface RioOptions {
|
|
|
18
20
|
fallbackLocale?: MaybeRefOrGetter<string | undefined>;
|
|
19
21
|
/** Message tables by language tag: languages Rio has no table for, or messages that replace Rio's. */
|
|
20
22
|
messages?: MaybeRefOrGetter<Record<string, PartialMessages> | undefined>;
|
|
23
|
+
/**
|
|
24
|
+
* The app's icons: the ones the components draw on their own, by what they do (`aliases`),
|
|
25
|
+
* where the app's slot gives none, and `resolve`, which turns a name into an icon, as for
|
|
26
|
+
* `RioIcon`'s `icon`. Rio ships no icons.
|
|
27
|
+
*/
|
|
28
|
+
icons?: MaybeRefOrGetter<RioIcons | undefined>;
|
|
21
29
|
}
|
|
22
30
|
/** A Vue plugin, for `app.use` */
|
|
23
31
|
export interface RioPlugin {
|
package/dist/rio/rio.js
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
|
+
import { iconsKey } from "../icon/icons.js";
|
|
1
2
|
import { localeKey, messagesKey } from "../locale/locale.js";
|
|
2
3
|
import { computed, effectScope, toRef, toValue, watchEffect } from "vue";
|
|
3
|
-
import {
|
|
4
|
+
import { resolveLocale } from "@rio-m3e/core";
|
|
5
|
+
import { attachTheme, createThemeCss, languageHeightOf } from "@rio-m3e/tokens";
|
|
4
6
|
// src/rio/rio.ts
|
|
7
|
+
/** The theme, with the line heights for the language's script unless it gives its own */
|
|
8
|
+
const withLanguageHeight = (theme, locale) => theme && {
|
|
9
|
+
...theme,
|
|
10
|
+
languageHeight: theme.languageHeight ?? languageHeightOf(resolveLocale(locale))
|
|
11
|
+
};
|
|
5
12
|
/**
|
|
6
13
|
* Rio for a whole app: `app.use(createRio({ theme: { sourceColor: '#6750a4' }, locale: 'ko' }))`.
|
|
7
14
|
* A `RioLocaleProvider` inside, or a component's own `locale`, takes over the language from it.
|
|
@@ -9,11 +16,12 @@ import { attachTheme, createThemeCss } from "@rio-m3e/tokens";
|
|
|
9
16
|
function createRio(options = {}) {
|
|
10
17
|
return {
|
|
11
18
|
get css() {
|
|
12
|
-
const theme = toValue(options.theme);
|
|
19
|
+
const theme = withLanguageHeight(toValue(options.theme), toValue(options.locale));
|
|
13
20
|
return theme ? createThemeCss(theme) : "";
|
|
14
21
|
},
|
|
15
22
|
install(app) {
|
|
16
23
|
app.provide(localeKey, toRef(options.locale));
|
|
24
|
+
app.provide(iconsKey, computed(() => toValue(options.icons)));
|
|
17
25
|
app.provide(messagesKey, computed(() => ({
|
|
18
26
|
messages: toValue(options.messages),
|
|
19
27
|
fallbackLocale: toValue(options.fallbackLocale)
|
|
@@ -21,7 +29,7 @@ function createRio(options = {}) {
|
|
|
21
29
|
if (options.theme === void 0 || typeof document === "undefined") return;
|
|
22
30
|
const theme = attachTheme(document.documentElement);
|
|
23
31
|
const scope = effectScope(true);
|
|
24
|
-
scope.run(() => watchEffect(() => theme.update(toValue(options.theme))));
|
|
32
|
+
scope.run(() => watchEffect(() => theme.update(withLanguageHeight(toValue(options.theme), toValue(options.locale)))));
|
|
25
33
|
app.onUnmount(() => {
|
|
26
34
|
scope.stop();
|
|
27
35
|
theme.detach();
|
|
@@ -36,6 +36,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
36
36
|
const invalid = useModel(props, "invalid");
|
|
37
37
|
const locale = useLocale(() => props.locale);
|
|
38
38
|
const center = ref();
|
|
39
|
+
const centerAtOnce = ref(false);
|
|
39
40
|
const id = useId();
|
|
40
41
|
const field = createScrollField({
|
|
41
42
|
props: () => ({
|
|
@@ -57,12 +58,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
57
58
|
}),
|
|
58
59
|
ids: { options: `${id}-option` },
|
|
59
60
|
center: () => center.value,
|
|
61
|
+
centerAtOnce: () => centerAtOnce.value,
|
|
60
62
|
onChange: (next) => model.value = next,
|
|
61
63
|
onEditingChange: (next) => editing.value = next
|
|
62
64
|
});
|
|
63
|
-
const
|
|
64
|
-
const valueItem = computed(() => field.targetIndex());
|
|
65
|
-
const itemCount = computed(() => field.items().length);
|
|
65
|
+
const depsOf = computed(() => field.itemDeps());
|
|
66
66
|
const root = useTemplateRef("root");
|
|
67
67
|
const viewport = useTemplateRef("viewport");
|
|
68
68
|
const input = useTemplateRef("input");
|
|
@@ -74,8 +74,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
74
74
|
targetIndex: field.targetIndex,
|
|
75
75
|
readText: field.readText,
|
|
76
76
|
completeText: field.completeText,
|
|
77
|
-
onCenterChange(index, byPerson) {
|
|
77
|
+
onCenterChange(index, byPerson, atOnce) {
|
|
78
78
|
center.value = index;
|
|
79
|
+
centerAtOnce.value = atOnce;
|
|
79
80
|
if (byPerson) field.selectItem(index);
|
|
80
81
|
},
|
|
81
82
|
onChange: (next) => model.value = next,
|
|
@@ -96,13 +97,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
96
97
|
createElementVNode("div", mergeProps({
|
|
97
98
|
ref_key: "viewport",
|
|
98
99
|
ref: viewport
|
|
99
|
-
}, unref(field).parts.viewport()), [createCommentVNode(" An item renders again only when
|
|
100
|
-
const _memo =
|
|
101
|
-
unref(field).itemText(item),
|
|
102
|
-
item === centerItem.value,
|
|
103
|
-
item === valueItem.value,
|
|
104
|
-
itemCount.value
|
|
105
|
-
];
|
|
100
|
+
}, unref(field).parts.viewport()), [createCommentVNode(" An item renders again only when what it is made from changes. "), (openBlock(true), createElementBlock(Fragment, null, renderList(unref(field).items(), (item, __, ___, _cached) => {
|
|
101
|
+
const _memo = depsOf.value(item);
|
|
106
102
|
if (_cached && _cached.el && _cached.key === item && isMemoSame(_cached, _memo)) return _cached;
|
|
107
103
|
const _item = (openBlock(), createElementBlock("div", mergeProps({ key: item }, { ref_for: true }, unref(field).parts.item(item), { onClick: ($event) => unref(field).selectItem(item) }), [createTextVNode(toDisplayString(unref(field).itemText(item)), 1)], 16, ["onClick"]));
|
|
108
104
|
_item.memo = _memo;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SelectProps, SelectSelected, SelectValue } from "@rio-m3e/core";
|
|
2
2
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
3
|
+
import "@rio-m3e/styles/base/direction.css";
|
|
3
4
|
import "@rio-m3e/styles/base/anchored-position.css";
|
|
4
5
|
import "@rio-m3e/styles/text-field.css";
|
|
5
6
|
import "@rio-m3e/styles/menu.css";
|
|
@@ -11,7 +12,10 @@ type __VLS_Slots = {
|
|
|
11
12
|
default?: () => unknown;
|
|
12
13
|
/** An icon before the selection */
|
|
13
14
|
'leading-icon'?: () => unknown;
|
|
14
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* The dropdown arrow, such as arrow_drop_down. It turns over while the list is open. Without one,
|
|
17
|
+
* the `dropdown` icon registered with `createRio`.
|
|
18
|
+
*/
|
|
15
19
|
'dropdown-icon'?: () => unknown;
|
|
16
20
|
/**
|
|
17
21
|
* The selection as the field shows it, in place of the selected options' labels separated by
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { keepPresses } from "../overlay/presses.js";
|
|
2
2
|
import { selectKey } from "./context.js";
|
|
3
|
-
import
|
|
3
|
+
import _sfc_main$1 from "../icon/Icon.vue.js";
|
|
4
|
+
import { Fragment, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, 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
5
|
import { attachSelect, createSelect, mergePartAttrs } from "@rio-m3e/core";
|
|
5
6
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
7
|
+
import "@rio-m3e/styles/base/direction.css";
|
|
6
8
|
import "@rio-m3e/styles/base/anchored-position.css";
|
|
7
9
|
import "@rio-m3e/styles/text-field.css";
|
|
8
10
|
import "@rio-m3e/styles/menu.css";
|
|
@@ -155,7 +157,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
155
157
|
}, () => [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
158
|
return openBlock(), createElementBlock("span", { key: index }, toDisplayString(text), 1);
|
|
157
159
|
}), 128))], 16)], 16)], 16),
|
|
158
|
-
createElementVNode("span", normalizeProps(guardReactiveProps(unref(select).parts.arrow())), [renderSlot(_ctx.$slots, "dropdown-icon")], 16),
|
|
160
|
+
createElementVNode("span", normalizeProps(guardReactiveProps(unref(select).parts.arrow())), [renderSlot(_ctx.$slots, "dropdown-icon", {}, () => [createVNode(_sfc_main$1, { alias: "dropdown" })])], 16),
|
|
159
161
|
createElementVNode("select", mergeProps({
|
|
160
162
|
ref_key: "native",
|
|
161
163
|
ref: native
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SelectOptionProps } from "@rio-m3e/core";
|
|
2
2
|
import "@rio-m3e/styles/base/focus-ring.css";
|
|
3
3
|
import "@rio-m3e/styles/base/state-layer.css";
|
|
4
|
+
import "@rio-m3e/styles/base/direction.css";
|
|
4
5
|
import "@rio-m3e/styles/menu.css";
|
|
5
6
|
type __VLS_Slots = {
|
|
6
7
|
/** The label, which the field shows while the option is selected */
|
|
@@ -4,6 +4,7 @@ import { createCommentVNode, createElementBlock, createElementVNode, defineCompo
|
|
|
4
4
|
import { createSelectOption } from "@rio-m3e/core";
|
|
5
5
|
import "@rio-m3e/styles/base/focus-ring.css";
|
|
6
6
|
import "@rio-m3e/styles/base/state-layer.css";
|
|
7
|
+
import "@rio-m3e/styles/base/direction.css";
|
|
7
8
|
import "@rio-m3e/styles/menu.css";
|
|
8
9
|
// src/select/SelectOption.vue
|
|
9
10
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { RangeSliderProps, SliderMessages } 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
|
+
import "@rio-m3e/styles/base/direction.css";
|
|
4
5
|
import "@rio-m3e/styles/slider.css";
|
|
5
6
|
type __VLS_Props = Omit<RangeSliderProps, 'value'> & {
|
|
6
7
|
/** The start and the end of the range, with `v-model`. */
|
|
@@ -3,6 +3,7 @@ import { createCommentVNode, createElementBlock, createElementVNode, defineCompo
|
|
|
3
3
|
import { attachSlider, createRangeSlider } from "@rio-m3e/core";
|
|
4
4
|
import "@rio-m3e/styles/base/focus-ring.css";
|
|
5
5
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
6
|
+
import "@rio-m3e/styles/base/direction.css";
|
|
6
7
|
import "@rio-m3e/styles/slider.css";
|
|
7
8
|
// src/slider/RangeSlider.vue
|
|
8
9
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SliderProps } 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
|
+
import "@rio-m3e/styles/base/direction.css";
|
|
4
5
|
import "@rio-m3e/styles/slider.css";
|
|
5
6
|
type __VLS_Props = Omit<SliderProps, 'value'> & {
|
|
6
7
|
/** The value, with `v-model`. */
|
|
@@ -3,6 +3,7 @@ import { createCommentVNode, createElementBlock, createElementVNode, defineCompo
|
|
|
3
3
|
import { attachSlider, createSlider, mergePartAttrs } from "@rio-m3e/core";
|
|
4
4
|
import "@rio-m3e/styles/base/focus-ring.css";
|
|
5
5
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
6
|
+
import "@rio-m3e/styles/base/direction.css";
|
|
6
7
|
import "@rio-m3e/styles/slider.css";
|
|
7
8
|
// src/slider/Slider.vue
|
|
8
9
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
@@ -4,6 +4,7 @@ import "@rio-m3e/styles/base/reduced-motion.css";
|
|
|
4
4
|
import "@rio-m3e/styles/base/state-layer.css";
|
|
5
5
|
import "@rio-m3e/styles/base/touch-target.css";
|
|
6
6
|
import "@rio-m3e/styles/button.css";
|
|
7
|
+
import "@rio-m3e/styles/base/direction.css";
|
|
7
8
|
import "@rio-m3e/styles/split-button.css";
|
|
8
9
|
type __VLS_Slots = {
|
|
9
10
|
/** The leading button's label. Without it, give the split button a `label`. */
|
|
@@ -12,7 +13,8 @@ type __VLS_Slots = {
|
|
|
12
13
|
icon?: () => unknown;
|
|
13
14
|
/**
|
|
14
15
|
* The trailing button's icon: an expand icon pointing down, which turns when the menu opens.
|
|
15
|
-
*
|
|
16
|
+
* Hidden from assistive technology; `menuLabel` names the button. Without one, the `menu` icon
|
|
17
|
+
* registered with `createRio`.
|
|
16
18
|
*/
|
|
17
19
|
'menu-icon'?: () => unknown;
|
|
18
20
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { vRipple } from "../ripple/ripple.js";
|
|
2
2
|
import { vCornerMorph } from "../corner-morph/corner-morph.js";
|
|
3
|
-
import
|
|
3
|
+
import _sfc_main$1 from "../icon/Icon.vue.js";
|
|
4
|
+
import { createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, onBeforeUnmount, onMounted, openBlock, renderSlot, unref, useSlots, useTemplateRef, withDirectives } from "vue";
|
|
4
5
|
import { attachSplitButtonMenuIcon, createSplitButton } from "@rio-m3e/core";
|
|
5
6
|
import "@rio-m3e/styles/base/focus-ring.css";
|
|
6
7
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
7
8
|
import "@rio-m3e/styles/base/state-layer.css";
|
|
8
9
|
import "@rio-m3e/styles/base/touch-target.css";
|
|
9
10
|
import "@rio-m3e/styles/button.css";
|
|
11
|
+
import "@rio-m3e/styles/base/direction.css";
|
|
10
12
|
import "@rio-m3e/styles/split-button.css";
|
|
11
13
|
// src/split-button/SplitButton.vue
|
|
12
14
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
@@ -67,7 +69,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
67
69
|
], 16)), [[unref(vRipple)], [unref(vCornerMorph)]]), withDirectives((openBlock(), createElementBlock("button", mergeProps({
|
|
68
70
|
ref_key: "trailing",
|
|
69
71
|
ref: trailing
|
|
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);
|
|
72
|
+
}, 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", {}, () => [createVNode(_sfc_main$1, { alias: "menu" })])], 16)], 16)), [[unref(vRipple)], [unref(vCornerMorph)]])], 16);
|
|
71
73
|
};
|
|
72
74
|
}
|
|
73
75
|
});
|
|
@@ -3,6 +3,7 @@ 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
5
|
import "@rio-m3e/styles/base/touch-target.css";
|
|
6
|
+
import "@rio-m3e/styles/base/direction.css";
|
|
6
7
|
import "@rio-m3e/styles/time-picker.css";
|
|
7
8
|
type __VLS_Props = {
|
|
8
9
|
/** A language tag. Without it, the one provided, or the document's, or the browser's. */
|
|
@@ -6,6 +6,7 @@ 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
8
|
import "@rio-m3e/styles/base/touch-target.css";
|
|
9
|
+
import "@rio-m3e/styles/base/direction.css";
|
|
9
10
|
import "@rio-m3e/styles/time-picker.css";
|
|
10
11
|
// src/time-picker/TimeInput.vue
|
|
11
12
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
@@ -3,6 +3,7 @@ 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
5
|
import "@rio-m3e/styles/base/touch-target.css";
|
|
6
|
+
import "@rio-m3e/styles/base/direction.css";
|
|
6
7
|
import "@rio-m3e/styles/dialog.css";
|
|
7
8
|
import "@rio-m3e/styles/time-picker.css";
|
|
8
9
|
type __VLS_Props = {
|
|
@@ -20,11 +21,20 @@ type __VLS_Props = {
|
|
|
20
21
|
messages?: Partial<TimePickerMessages>;
|
|
21
22
|
};
|
|
22
23
|
type __VLS_Slots = {
|
|
23
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* The mode button's icon on the dial or the scroll fields, which switches to the text input.
|
|
26
|
+
* Without one, the `keyboard` icon registered with `createRio`.
|
|
27
|
+
*/
|
|
24
28
|
'keyboard-icon'?: () => unknown;
|
|
25
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* The mode button's icon in the text input, which switches back to the dial. Without one, the
|
|
31
|
+
* `clock` icon registered with `createRio`.
|
|
32
|
+
*/
|
|
26
33
|
'clock-icon'?: () => unknown;
|
|
27
|
-
/**
|
|
34
|
+
/**
|
|
35
|
+
* The mode button's icon in the text input, which switches back to the scroll fields. Without
|
|
36
|
+
* one, the `swipe` icon registered with `createRio`.
|
|
37
|
+
*/
|
|
28
38
|
'swipe-icon'?: () => unknown;
|
|
29
39
|
};
|
|
30
40
|
type __VLS_ModelProps = {
|
|
@@ -3,12 +3,14 @@ import _sfc_main$2 from "../icon-button/IconButton.vue.js";
|
|
|
3
3
|
import { useLocale, useMessages } from "../locale/locale.js";
|
|
4
4
|
import { keepPresses } from "../overlay/presses.js";
|
|
5
5
|
import _sfc_main$3 from "./TimePickerBody.vue.js";
|
|
6
|
+
import _sfc_main$4 from "../icon/Icon.vue.js";
|
|
6
7
|
import { Fragment, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, normalizeProps, onBeforeUnmount, onMounted, openBlock, reactive, ref, renderSlot, toDisplayString, toHandlers, unref, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
|
|
7
8
|
import { attachDialog, attachTimePicker, createTimePicker, initialTimePickerState } from "@rio-m3e/core";
|
|
8
9
|
import "@rio-m3e/styles/base/focus-ring.css";
|
|
9
10
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
10
11
|
import "@rio-m3e/styles/base/state-layer.css";
|
|
11
12
|
import "@rio-m3e/styles/base/touch-target.css";
|
|
13
|
+
import "@rio-m3e/styles/base/direction.css";
|
|
12
14
|
import "@rio-m3e/styles/dialog.css";
|
|
13
15
|
import "@rio-m3e/styles/time-picker.css";
|
|
14
16
|
// src/time-picker/TimePickerDialog.vue
|
|
@@ -112,7 +114,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
112
114
|
label: unref(picker).modeButtonLabel(),
|
|
113
115
|
onClick: _cache[0] || (_cache[0] = ($event) => unref(picker).switchMode())
|
|
114
116
|
}, {
|
|
115
|
-
default: withCtx(() => [unref(picker).modeButtonIcon() === "keyboard" ? renderSlot(_ctx.$slots, "keyboard-icon", {},
|
|
117
|
+
default: withCtx(() => [unref(picker).modeButtonIcon() === "keyboard" ? renderSlot(_ctx.$slots, "keyboard-icon", {}, () => [createVNode(_sfc_main$4, { alias: "keyboard" })], void 0, 0) : unref(picker).modeButtonIcon() === "clock" ? renderSlot(_ctx.$slots, "clock-icon", {}, () => [createVNode(_sfc_main$4, { alias: "clock" })], void 0, 1) : renderSlot(_ctx.$slots, "swipe-icon", {}, () => [createVNode(_sfc_main$4, { alias: "swipe" })], void 0, 2)]),
|
|
116
118
|
_: 3
|
|
117
119
|
}, 8, ["label"]),
|
|
118
120
|
createVNode(_sfc_main$1, {
|
|
@@ -3,6 +3,7 @@ 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
5
|
import "@rio-m3e/styles/base/touch-target.css";
|
|
6
|
+
import "@rio-m3e/styles/base/direction.css";
|
|
6
7
|
import "@rio-m3e/styles/time-picker.css";
|
|
7
8
|
type __VLS_Props = {
|
|
8
9
|
/** A language tag. Without it, the one provided, or the document's, or the browser's. */
|
|
@@ -13,9 +14,15 @@ type __VLS_Props = {
|
|
|
13
14
|
messages?: Partial<TimePickerMessages>;
|
|
14
15
|
};
|
|
15
16
|
type __VLS_Slots = {
|
|
16
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* The mode button's icon on the scroll fields, which switches to the text input. Without one, the
|
|
19
|
+
* `keyboard` icon registered with `createRio`.
|
|
20
|
+
*/
|
|
17
21
|
'keyboard-icon'?: () => unknown;
|
|
18
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* The mode button's icon in the text input, which switches back to the scroll fields. Without
|
|
24
|
+
* one, the `swipe` icon registered with `createRio`.
|
|
25
|
+
*/
|
|
19
26
|
'swipe-icon'?: () => unknown;
|
|
20
27
|
};
|
|
21
28
|
type __VLS_ModelProps = {
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import _sfc_main$1 from "../icon-button/IconButton.vue.js";
|
|
2
2
|
import { useLocale, useMessages } from "../locale/locale.js";
|
|
3
3
|
import _sfc_main$2 from "./TimePickerBody.vue.js";
|
|
4
|
+
import _sfc_main$3 from "../icon/Icon.vue.js";
|
|
4
5
|
import { createCommentVNode, createElementBlock, createVNode, defineComponent, mergeModels, mergeProps, normalizeProps, onBeforeUnmount, onMounted, openBlock, reactive, renderSlot, toDisplayString, unref, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
|
|
5
6
|
import { attachTimePicker, createTimePicker, initialTimePickerState } from "@rio-m3e/core";
|
|
6
7
|
import "@rio-m3e/styles/base/focus-ring.css";
|
|
7
8
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
8
9
|
import "@rio-m3e/styles/base/state-layer.css";
|
|
9
10
|
import "@rio-m3e/styles/base/touch-target.css";
|
|
11
|
+
import "@rio-m3e/styles/base/direction.css";
|
|
10
12
|
import "@rio-m3e/styles/time-picker.css";
|
|
11
13
|
// src/time-picker/TimeScroll.vue
|
|
12
14
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
@@ -70,7 +72,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
70
72
|
label: unref(picker).modeButtonLabel(),
|
|
71
73
|
onClick: _cache[0] || (_cache[0] = ($event) => unref(picker).switchMode())
|
|
72
74
|
}, {
|
|
73
|
-
default: withCtx(() => [unref(picker).modeButtonIcon() === "keyboard" ? renderSlot(_ctx.$slots, "keyboard-icon", {},
|
|
75
|
+
default: withCtx(() => [unref(picker).modeButtonIcon() === "keyboard" ? renderSlot(_ctx.$slots, "keyboard-icon", {}, () => [createVNode(_sfc_main$3, { alias: "keyboard" })], void 0, 0) : renderSlot(_ctx.$slots, "swipe-icon", {}, () => [createVNode(_sfc_main$3, { alias: "swipe" })], void 0, 1)]),
|
|
74
76
|
_: 3
|
|
75
77
|
}, 8, ["label"])]),
|
|
76
78
|
_: 3
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rio-m3e/vue",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"description": "Vue components for Rio, a Material 3 Expressive implementation",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "LegenLee",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@rio-m3e/core": "^0.6.
|
|
31
|
-
"@rio-m3e/styles": "^0.6.
|
|
32
|
-
"@rio-m3e/tokens": "^0.6.
|
|
30
|
+
"@rio-m3e/core": "^0.6.3",
|
|
31
|
+
"@rio-m3e/styles": "^0.6.3",
|
|
32
|
+
"@rio-m3e/tokens": "^0.6.3"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@fontsource/roboto": "^5.3.0",
|