@rio-m3e/vue 0.6.1 → 0.6.2
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 +4 -4
- package/dist/date-picker/DatePicker.vue.d.ts +2 -2
- package/dist/date-picker/DatePickerDialog.vue.d.ts +2 -2
- package/dist/icon-button/IconButton.vue.d.ts +2 -2
- package/dist/menu/Menu.vue.d.ts +2 -2
- package/dist/scroll-field/ScrollField.vue.js +7 -11
- package/dist/select/Select.vue.d.ts +2 -2
- package/dist/split-button/SplitButton.vue.d.ts +2 -2
- package/dist/time-picker/TimePickerDialog.vue.d.ts +2 -2
- 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;
|
|
@@ -15,13 +15,13 @@ type __VLS_Slots = {
|
|
|
15
15
|
'dropdown-icon'?: () => unknown;
|
|
16
16
|
};
|
|
17
17
|
declare const __VLS_base: import("vue").DefineComponent<FilterChipProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
-
"update:selected": (selected: boolean) => any;
|
|
19
|
-
click: (event: MouseEvent) => any;
|
|
20
18
|
"update:open": (open: boolean) => any;
|
|
19
|
+
click: (event: MouseEvent) => any;
|
|
20
|
+
"update:selected": (selected: boolean) => any;
|
|
21
21
|
}, string, import("vue").PublicProps, Readonly<FilterChipProps> & Readonly<{
|
|
22
|
-
"onUpdate:selected"?: ((selected: boolean) => any) | undefined;
|
|
23
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
24
22
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
23
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
24
|
+
"onUpdate:selected"?: ((selected: boolean) => any) | undefined;
|
|
25
25
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
26
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
27
|
declare const _default: typeof __VLS_export;
|
|
@@ -51,11 +51,11 @@ type __VLS_ModelProps = {
|
|
|
51
51
|
};
|
|
52
52
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
53
53
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
54
|
-
"update:modelValue": (value: string | undefined) => any;
|
|
55
54
|
"update:open": (value: boolean) => any;
|
|
55
|
+
"update:modelValue": (value: string | undefined) => any;
|
|
56
56
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
57
|
-
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
58
57
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
58
|
+
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
59
59
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
60
60
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
61
61
|
declare const _default: typeof __VLS_export;
|
|
@@ -42,11 +42,11 @@ type __VLS_ModelProps = {
|
|
|
42
42
|
};
|
|
43
43
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
44
44
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
45
|
-
"update:modelValue": (value: string | undefined) => any;
|
|
46
45
|
"update:open": (value: boolean) => any;
|
|
46
|
+
"update:modelValue": (value: string | undefined) => any;
|
|
47
47
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
48
|
-
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
49
48
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
49
|
+
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
50
50
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
51
51
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
52
52
|
declare const _default: typeof __VLS_export;
|
|
@@ -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/menu/Menu.vue.d.ts
CHANGED
|
@@ -19,11 +19,11 @@ type __VLS_Slots = {
|
|
|
19
19
|
default?: () => unknown;
|
|
20
20
|
};
|
|
21
21
|
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
-
"update:modelValue": (selected: MenuSelected) => any;
|
|
23
22
|
"update:open": (open: boolean) => any;
|
|
23
|
+
"update:modelValue": (selected: MenuSelected) => any;
|
|
24
24
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
25
|
-
"onUpdate:modelValue"?: ((selected: MenuSelected) => any) | undefined;
|
|
26
25
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
26
|
+
"onUpdate:modelValue"?: ((selected: MenuSelected) => any) | undefined;
|
|
27
27
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
28
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
29
|
declare const _default: typeof __VLS_export;
|
|
@@ -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;
|
|
@@ -30,11 +30,11 @@ type __VLS_ModelProps = {
|
|
|
30
30
|
};
|
|
31
31
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
32
32
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
33
|
-
"update:modelValue": (value: SelectSelected) => any;
|
|
34
33
|
"update:open": (value: boolean) => any;
|
|
34
|
+
"update:modelValue": (value: SelectSelected) => any;
|
|
35
35
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
36
|
-
"onUpdate:modelValue"?: ((value: SelectSelected) => any) | undefined;
|
|
37
36
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
37
|
+
"onUpdate:modelValue"?: ((value: SelectSelected) => any) | undefined;
|
|
38
38
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
39
39
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
40
40
|
declare const _default: typeof __VLS_export;
|
|
@@ -20,11 +20,11 @@ declare const __VLS_base: import("vue").DefineComponent<SplitButtonProps, {
|
|
|
20
20
|
leading: Readonly<import("vue").ShallowRef<HTMLButtonElement | null>>;
|
|
21
21
|
trailing: Readonly<import("vue").ShallowRef<HTMLButtonElement | null>>;
|
|
22
22
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
|
-
click: (event: MouseEvent) => any;
|
|
24
23
|
"update:open": (open: boolean) => any;
|
|
24
|
+
click: (event: MouseEvent) => any;
|
|
25
25
|
}, string, import("vue").PublicProps, Readonly<SplitButtonProps> & Readonly<{
|
|
26
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
27
26
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
27
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
28
28
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
29
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
30
|
declare const _default: typeof __VLS_export;
|
|
@@ -35,11 +35,11 @@ type __VLS_ModelProps = {
|
|
|
35
35
|
};
|
|
36
36
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
37
37
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
38
|
-
"update:modelValue": (value: string | undefined) => any;
|
|
39
38
|
"update:open": (value: boolean) => any;
|
|
39
|
+
"update:modelValue": (value: string | undefined) => any;
|
|
40
40
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
41
|
-
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
42
41
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
42
|
+
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
43
43
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
44
44
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
45
45
|
declare const _default: typeof __VLS_export;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rio-m3e/vue",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
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.2",
|
|
31
|
+
"@rio-m3e/styles": "^0.6.2",
|
|
32
|
+
"@rio-m3e/tokens": "^0.6.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@fontsource/roboto": "^5.3.0",
|