@rio-m3e/vue 0.7.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/app-bar/AppBar.vue.js +3 -1
  2. package/dist/app-bar/context.js +3 -0
  3. package/dist/browser/rio-vue.css +366 -78
  4. package/dist/browser/rio-vue.global.js +21 -21
  5. package/dist/browser/rio-vue.js +21 -21
  6. package/dist/button-group/ButtonGroup.vue.d.ts +30 -20
  7. package/dist/button-group/ButtonGroup.vue.js +2 -1
  8. package/dist/checkbox/Checkbox.vue.d.ts +1 -0
  9. package/dist/checkbox/Checkbox.vue.js +3 -0
  10. package/dist/chip/AssistChip.vue.d.ts +1 -0
  11. package/dist/chip/AssistChip.vue.js +3 -0
  12. package/dist/chip/ChipSet.vue.d.ts +27 -16
  13. package/dist/chip/ChipSet.vue.js +6 -2
  14. package/dist/chip/FilterChip.vue.d.ts +19 -3
  15. package/dist/chip/FilterChip.vue.js +54 -8
  16. package/dist/chip/InputChip.vue.d.ts +1 -0
  17. package/dist/chip/InputChip.vue.js +3 -0
  18. package/dist/chip/SuggestionChip.vue.d.ts +1 -0
  19. package/dist/chip/SuggestionChip.vue.js +3 -0
  20. package/dist/date-picker/DatePicker.vue.js +14 -11
  21. package/dist/date-picker/DatePickerDialog.vue.js +13 -9
  22. package/dist/date-picker/DateRangePickerDialog.vue.js +19 -17
  23. package/dist/icon-button/IconButton.vue.d.ts +1 -0
  24. package/dist/icon-button/IconButton.vue.js +3 -0
  25. package/dist/index.d.ts +8 -6
  26. package/dist/index.js +8 -6
  27. package/dist/list/List.vue.d.ts +26 -16
  28. package/dist/list/List.vue.js +2 -1
  29. package/dist/list/ListItem.vue.d.ts +7 -1
  30. package/dist/list/ListItem.vue.js +12 -3
  31. package/dist/model/model.d.ts +8 -0
  32. package/dist/model/model.js +15 -0
  33. package/dist/navigation-bar/NavigationBar.vue.d.ts +21 -16
  34. package/dist/navigation-bar/NavigationBar.vue.js +1 -0
  35. package/dist/navigation-rail/NavigationRail.vue.d.ts +33 -32
  36. package/dist/navigation-rail/NavigationRail.vue.js +1 -0
  37. package/dist/overflow/OverflowMenu.vue.js +10 -12
  38. package/dist/radio/Radio.vue.d.ts +1 -0
  39. package/dist/radio/Radio.vue.js +3 -0
  40. package/dist/radio/RadioGroup.vue.d.ts +23 -21
  41. package/dist/radio/RadioGroup.vue.js +10 -8
  42. package/dist/rio/rio.js +2 -0
  43. package/dist/scroll-field/ScrollField.vue.d.ts +28 -12
  44. package/dist/scroll-field/ScrollField.vue.js +6 -4
  45. package/dist/select/Select.vue.d.ts +42 -39
  46. package/dist/select/Select.vue.js +8 -5
  47. package/dist/switch/Switch.vue.d.ts +1 -0
  48. package/dist/switch/Switch.vue.js +3 -0
  49. package/dist/tabs/Tab.vue.d.ts +8 -1
  50. package/dist/tabs/Tab.vue.js +51 -26
  51. package/dist/tabs/TabGroup.vue.d.ts +22 -18
  52. package/dist/tabs/TabGroup.vue.js +5 -5
  53. package/dist/tabs/Tabs.vue.d.ts +24 -21
  54. package/dist/tabs/Tabs.vue.js +28 -15
  55. package/dist/text-field/TextField.vue.d.ts +28 -26
  56. package/dist/text-field/TextField.vue.js +15 -16
  57. package/dist/theme/ThemeProvider.vue.d.ts +22 -0
  58. package/dist/theme/ThemeProvider.vue.js +26 -0
  59. package/dist/theme/context.d.ts +7 -0
  60. package/dist/theme/context.js +7 -0
  61. package/dist/tooltip/Tooltip.vue.js +10 -3
  62. package/package.json +6 -5
package/dist/index.d.ts CHANGED
@@ -64,9 +64,11 @@ import _default$57 from "./tabs/TabGroup.vue.js";
64
64
  import _default$58 from "./tabs/TabPanel.vue.js";
65
65
  import _default$59 from "./tabs/Tabs.vue.js";
66
66
  import _default$60 from "./text-field/TextField.vue.js";
67
- import _default$61 from "./time-picker/TimeInput.vue.js";
68
- import _default$62 from "./time-picker/TimePickerDialog.vue.js";
69
- import _default$63 from "./time-picker/TimeScroll.vue.js";
70
- import _default$64 from "./toolbar/Toolbar.vue.js";
71
- import _default$65 from "./tooltip/Tooltip.vue.js";
72
- export { _default as RioAppBar, _default$1 as RioAssistChip, _default$2 as RioBadge, _default$3 as RioBottomSheet, _default$4 as RioButton, _default$5 as RioButtonGroup, _default$6 as RioCard, _default$7 as RioCardActions, _default$8 as RioCardContent, _default$9 as RioCardHeader, _default$10 as RioCardMedia, _default$11 as RioCheckbox, _default$12 as RioChipSet, _default$13 as RioCircularProgress, _default$14 as RioDatePicker, _default$15 as RioDatePickerDialog, _default$16 as RioDateRangePickerDialog, _default$17 as RioDialog, _default$18 as RioDivider, _default$19 as RioFab, _default$20 as RioFabMenu, _default$21 as RioFabMenuItem, _default$22 as RioFilterChip, _default$23 as RioIcon, _default$24 as RioIconButton, type RioIconValue, type RioIcons, _default$25 as RioInputChip, _default$26 as RioLinearProgress, _default$27 as RioList, _default$28 as RioListItem, _default$29 as RioLoadingIndicator, _default$30 as RioLocaleProvider, _default$31 as RioMenu, _default$32 as RioMenuDivider, _default$33 as RioMenuGroup, _default$34 as RioMenuItem, _default$35 as RioNavigationBar, _default$36 as RioNavigationBarItem, _default$37 as RioNavigationRail, _default$38 as RioNavigationRailItem, _default$39 as RioNavigationRailSection, type RioOptions, _default$40 as RioOverflowItem, type RioPlugin, _default$41 as RioRadio, _default$42 as RioRadioGroup, _default$43 as RioRangeSlider, _default$44 as RioScrollField, _default$45 as RioSearch, _default$46 as RioSelect, _default$47 as RioSelectOption, _default$48 as RioSideSheet, _default$49 as RioSlider, _default$50 as RioSnackbar, _default$51 as RioSnackbarHost, _default$52 as RioSplitButton, _default$53 as RioSubMenu, _default$54 as RioSuggestionChip, _default$55 as RioSwitch, _default$56 as RioTab, _default$57 as RioTabGroup, _default$58 as RioTabPanel, _default$59 as RioTabs, _default$60 as RioTextField, type RioThemeOptions, _default$61 as RioTimeInput, _default$62 as RioTimePickerDialog, _default$63 as RioTimeScroll, _default$64 as RioToolbar, _default$65 as RioTooltip, type SnackbarController, createRio, iconsKey, localeKey, messagesKey, snackbarKey, useIconOfAlias, useLocale, useMessages, useSnackbar, vRipple };
67
+ import _default$61 from "./theme/ThemeProvider.vue.js";
68
+ import { themeKey } from "./theme/context.js";
69
+ import _default$62 from "./time-picker/TimeInput.vue.js";
70
+ import _default$63 from "./time-picker/TimePickerDialog.vue.js";
71
+ import _default$64 from "./time-picker/TimeScroll.vue.js";
72
+ import _default$65 from "./toolbar/Toolbar.vue.js";
73
+ import _default$66 from "./tooltip/Tooltip.vue.js";
74
+ export { _default as RioAppBar, _default$1 as RioAssistChip, _default$2 as RioBadge, _default$3 as RioBottomSheet, _default$4 as RioButton, _default$5 as RioButtonGroup, _default$6 as RioCard, _default$7 as RioCardActions, _default$8 as RioCardContent, _default$9 as RioCardHeader, _default$10 as RioCardMedia, _default$11 as RioCheckbox, _default$12 as RioChipSet, _default$13 as RioCircularProgress, _default$14 as RioDatePicker, _default$15 as RioDatePickerDialog, _default$16 as RioDateRangePickerDialog, _default$17 as RioDialog, _default$18 as RioDivider, _default$19 as RioFab, _default$20 as RioFabMenu, _default$21 as RioFabMenuItem, _default$22 as RioFilterChip, _default$23 as RioIcon, _default$24 as RioIconButton, type RioIconValue, type RioIcons, _default$25 as RioInputChip, _default$26 as RioLinearProgress, _default$27 as RioList, _default$28 as RioListItem, _default$29 as RioLoadingIndicator, _default$30 as RioLocaleProvider, _default$31 as RioMenu, _default$32 as RioMenuDivider, _default$33 as RioMenuGroup, _default$34 as RioMenuItem, _default$35 as RioNavigationBar, _default$36 as RioNavigationBarItem, _default$37 as RioNavigationRail, _default$38 as RioNavigationRailItem, _default$39 as RioNavigationRailSection, type RioOptions, _default$40 as RioOverflowItem, type RioPlugin, _default$41 as RioRadio, _default$42 as RioRadioGroup, _default$43 as RioRangeSlider, _default$44 as RioScrollField, _default$45 as RioSearch, _default$46 as RioSelect, _default$47 as RioSelectOption, _default$48 as RioSideSheet, _default$49 as RioSlider, _default$50 as RioSnackbar, _default$51 as RioSnackbarHost, _default$52 as RioSplitButton, _default$53 as RioSubMenu, _default$54 as RioSuggestionChip, _default$55 as RioSwitch, _default$56 as RioTab, _default$57 as RioTabGroup, _default$58 as RioTabPanel, _default$59 as RioTabs, _default$60 as RioTextField, type RioThemeOptions, _default$61 as RioThemeProvider, _default$62 as RioTimeInput, _default$63 as RioTimePickerDialog, _default$64 as RioTimeScroll, _default$65 as RioToolbar, _default$66 as RioTooltip, type SnackbarController, createRio, iconsKey, localeKey, messagesKey, snackbarKey, themeKey, useIconOfAlias, useLocale, useMessages, useSnackbar, vRipple };
package/dist/index.js CHANGED
@@ -64,9 +64,11 @@ import _sfc_main$57 from "./tabs/TabGroup.vue.js";
64
64
  import _sfc_main$58 from "./tabs/TabPanel.vue.js";
65
65
  import _sfc_main$59 from "./tabs/Tabs.vue.js";
66
66
  import _sfc_main$60 from "./text-field/TextField.vue.js";
67
- import _sfc_main$61 from "./time-picker/TimeInput.vue.js";
68
- import _sfc_main$62 from "./time-picker/TimePickerDialog.vue.js";
69
- import _sfc_main$63 from "./time-picker/TimeScroll.vue.js";
70
- import _sfc_main$64 from "./toolbar/Toolbar.vue.js";
71
- import _sfc_main$65 from "./tooltip/Tooltip.vue.js";
72
- export { _sfc_main as RioAppBar, _sfc_main$1 as RioAssistChip, _sfc_main$2 as RioBadge, _sfc_main$3 as RioBottomSheet, _sfc_main$4 as RioButton, _sfc_main$5 as RioButtonGroup, _sfc_main$6 as RioCard, _sfc_main$7 as RioCardActions, _sfc_main$8 as RioCardContent, _sfc_main$9 as RioCardHeader, _sfc_main$10 as RioCardMedia, _sfc_main$11 as RioCheckbox, _sfc_main$12 as RioChipSet, _sfc_main$13 as RioCircularProgress, _sfc_main$14 as RioDatePicker, _sfc_main$15 as RioDatePickerDialog, _sfc_main$16 as RioDateRangePickerDialog, _sfc_main$17 as RioDialog, _sfc_main$18 as RioDivider, _sfc_main$19 as RioFab, _sfc_main$20 as RioFabMenu, _sfc_main$21 as RioFabMenuItem, _sfc_main$22 as RioFilterChip, _sfc_main$23 as RioIcon, _sfc_main$24 as RioIconButton, _sfc_main$25 as RioInputChip, _sfc_main$26 as RioLinearProgress, _sfc_main$27 as RioList, _sfc_main$28 as RioListItem, _sfc_main$29 as RioLoadingIndicator, _sfc_main$30 as RioLocaleProvider, _sfc_main$31 as RioMenu, _sfc_main$32 as RioMenuDivider, _sfc_main$33 as RioMenuGroup, _sfc_main$34 as RioMenuItem, _sfc_main$35 as RioNavigationBar, _sfc_main$36 as RioNavigationBarItem, _sfc_main$37 as RioNavigationRail, _sfc_main$38 as RioNavigationRailItem, _sfc_main$39 as RioNavigationRailSection, _sfc_main$40 as RioOverflowItem, _sfc_main$41 as RioRadio, _sfc_main$42 as RioRadioGroup, _sfc_main$43 as RioRangeSlider, _sfc_main$44 as RioScrollField, _sfc_main$45 as RioSearch, _sfc_main$46 as RioSelect, _sfc_main$47 as RioSelectOption, _sfc_main$48 as RioSideSheet, _sfc_main$49 as RioSlider, _sfc_main$50 as RioSnackbar, _sfc_main$51 as RioSnackbarHost, _sfc_main$52 as RioSplitButton, _sfc_main$53 as RioSubMenu, _sfc_main$54 as RioSuggestionChip, _sfc_main$55 as RioSwitch, _sfc_main$56 as RioTab, _sfc_main$57 as RioTabGroup, _sfc_main$58 as RioTabPanel, _sfc_main$59 as RioTabs, _sfc_main$60 as RioTextField, _sfc_main$61 as RioTimeInput, _sfc_main$62 as RioTimePickerDialog, _sfc_main$63 as RioTimeScroll, _sfc_main$64 as RioToolbar, _sfc_main$65 as RioTooltip, createRio, iconsKey, localeKey, messagesKey, snackbarKey, useIconOfAlias, useLocale, useMessages, useSnackbar, vRipple };
67
+ import _sfc_main$61 from "./theme/ThemeProvider.vue.js";
68
+ import { themeKey } from "./theme/context.js";
69
+ import _sfc_main$62 from "./time-picker/TimeInput.vue.js";
70
+ import _sfc_main$63 from "./time-picker/TimePickerDialog.vue.js";
71
+ import _sfc_main$64 from "./time-picker/TimeScroll.vue.js";
72
+ import _sfc_main$65 from "./toolbar/Toolbar.vue.js";
73
+ import _sfc_main$66 from "./tooltip/Tooltip.vue.js";
74
+ export { _sfc_main as RioAppBar, _sfc_main$1 as RioAssistChip, _sfc_main$2 as RioBadge, _sfc_main$3 as RioBottomSheet, _sfc_main$4 as RioButton, _sfc_main$5 as RioButtonGroup, _sfc_main$6 as RioCard, _sfc_main$7 as RioCardActions, _sfc_main$8 as RioCardContent, _sfc_main$9 as RioCardHeader, _sfc_main$10 as RioCardMedia, _sfc_main$11 as RioCheckbox, _sfc_main$12 as RioChipSet, _sfc_main$13 as RioCircularProgress, _sfc_main$14 as RioDatePicker, _sfc_main$15 as RioDatePickerDialog, _sfc_main$16 as RioDateRangePickerDialog, _sfc_main$17 as RioDialog, _sfc_main$18 as RioDivider, _sfc_main$19 as RioFab, _sfc_main$20 as RioFabMenu, _sfc_main$21 as RioFabMenuItem, _sfc_main$22 as RioFilterChip, _sfc_main$23 as RioIcon, _sfc_main$24 as RioIconButton, _sfc_main$25 as RioInputChip, _sfc_main$26 as RioLinearProgress, _sfc_main$27 as RioList, _sfc_main$28 as RioListItem, _sfc_main$29 as RioLoadingIndicator, _sfc_main$30 as RioLocaleProvider, _sfc_main$31 as RioMenu, _sfc_main$32 as RioMenuDivider, _sfc_main$33 as RioMenuGroup, _sfc_main$34 as RioMenuItem, _sfc_main$35 as RioNavigationBar, _sfc_main$36 as RioNavigationBarItem, _sfc_main$37 as RioNavigationRail, _sfc_main$38 as RioNavigationRailItem, _sfc_main$39 as RioNavigationRailSection, _sfc_main$40 as RioOverflowItem, _sfc_main$41 as RioRadio, _sfc_main$42 as RioRadioGroup, _sfc_main$43 as RioRangeSlider, _sfc_main$44 as RioScrollField, _sfc_main$45 as RioSearch, _sfc_main$46 as RioSelect, _sfc_main$47 as RioSelectOption, _sfc_main$48 as RioSideSheet, _sfc_main$49 as RioSlider, _sfc_main$50 as RioSnackbar, _sfc_main$51 as RioSnackbarHost, _sfc_main$52 as RioSplitButton, _sfc_main$53 as RioSubMenu, _sfc_main$54 as RioSuggestionChip, _sfc_main$55 as RioSwitch, _sfc_main$56 as RioTab, _sfc_main$57 as RioTabGroup, _sfc_main$58 as RioTabPanel, _sfc_main$59 as RioTabs, _sfc_main$60 as RioTextField, _sfc_main$61 as RioThemeProvider, _sfc_main$62 as RioTimeInput, _sfc_main$63 as RioTimePickerDialog, _sfc_main$64 as RioTimeScroll, _sfc_main$65 as RioToolbar, _sfc_main$66 as RioTooltip, createRio, iconsKey, localeKey, messagesKey, snackbarKey, themeKey, useIconOfAlias, useLocale, useMessages, useSnackbar, vRipple };
@@ -1,24 +1,34 @@
1
+ import { ModelModifiers, SelectionChange } from "../model/model.js";
1
2
  import { ListProps, ListSelected } from "@rio-m3e/core";
2
3
  import "@rio-m3e/styles/base/accent.css";
3
4
  import "@rio-m3e/styles/list.css";
4
- interface Props extends Omit<ListProps, 'selected'> {
5
+ export interface Props<T extends ListSelected, R extends boolean> extends Omit<ListProps, 'selected' | 'required'> {
5
6
  /** The selected value (`single`) or values (`multiple`), with `v-model`. */
6
- modelValue?: ListSelected;
7
+ modelValue?: T;
8
+ /**
9
+ * With a selection, keeps one item selected: the last one can't be turned off, so a single
10
+ * selection never reports `undefined`.
11
+ */
12
+ required?: R & boolean;
13
+ /** The modifiers given to `v-model`, as `.trim` */
14
+ modelModifiers?: ModelModifiers;
7
15
  }
8
- type __VLS_Slots = {
9
- /** The items (`RioListItem`). With `selection`, those with a `value` are chosen. */
10
- default?: () => unknown;
11
- };
12
- declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
- "update:modelValue": (selected: ListSelected) => any;
14
- }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
15
- "onUpdate:modelValue"?: ((selected: ListSelected) => any) | undefined;
16
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
- declare const _default: typeof __VLS_export;
19
- type __VLS_WithSlots<T, S> = T & {
20
- new (): {
21
- $slots: S;
16
+ declare const __VLS_export: <T extends ListSelected, R extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
17
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<Props<T, R> & {
18
+ "onUpdate:modelValue"?: ((selected: SelectionChange<T, R>) => any) | undefined;
19
+ }> & (typeof globalThis extends {
20
+ __VLS_PROPS_FALLBACK: infer P;
21
+ } ? P : {});
22
+ expose: (exposed: {}) => void;
23
+ attrs: any;
24
+ slots: {
25
+ /** The items (`RioListItem`). With `selection`, those with a `value` are chosen. */
26
+ default?: () => unknown;
22
27
  };
28
+ emit: (evt: "update:modelValue", selected: SelectionChange<T, R>) => void;
29
+ }>) => import("vue").VNode & {
30
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
23
31
  };
32
+ declare const _default: typeof __VLS_export;
33
+ type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
24
34
  export { _default as default };
@@ -8,9 +8,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
8
8
  __name: "List",
9
9
  props: {
10
10
  modelValue: {},
11
+ required: { type: Boolean },
12
+ modelModifiers: {},
11
13
  variant: {},
12
14
  selection: {},
13
- required: { type: Boolean },
14
15
  control: {},
15
16
  controlPosition: {},
16
17
  label: {},
@@ -1,4 +1,4 @@
1
- import { AccentColor, ListValue } from "@rio-m3e/core";
1
+ import { AccentColor, ListItemDivider, ListValue } from "@rio-m3e/core";
2
2
  import "@rio-m3e/styles/base/accent.css";
3
3
  import "@rio-m3e/styles/base/focus-ring.css";
4
4
  import "@rio-m3e/styles/base/reduced-motion.css";
@@ -15,6 +15,12 @@ type __VLS_Props = {
15
15
  * `'error'`, or a static color of the theme. Without it, the spec's, or the list's color.
16
16
  */
17
17
  color?: AccentColor;
18
+ /**
19
+ * A divider under the item: `'inset'`, or `divider` alone, 16px in from the start and 24px from
20
+ * the end; `'text'` from the text's start, lined up with the text after a leading icon or avatar,
21
+ * to the end; `'text-inset'` from the text's start to 24px from the end; or `'full'` across it
22
+ */
23
+ divider?: boolean | ListItemDivider;
18
24
  /** Listening for clicks makes the item a button. */
19
25
  onClick?: (event: MouseEvent) => void;
20
26
  };
@@ -19,6 +19,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
19
19
  href: {},
20
20
  disabled: { type: Boolean },
21
21
  color: {},
22
+ divider: { type: Boolean },
22
23
  onClick: { type: Function }
23
24
  },
24
25
  setup(__props) {
@@ -31,13 +32,16 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
31
32
  });
32
33
  const list = inject(listKey, noList);
33
34
  const multiline = ref(false);
35
+ /** Where the text starts, as `attachListItem` measures it for a `'text-inset'` divider */
36
+ const textStart = ref();
34
37
  const item = createListItem({
35
38
  props: () => ({
36
39
  value: props.value,
37
40
  href: props.href,
38
41
  action: !!props.onClick,
39
42
  disabled: props.disabled,
40
- color: props.color
43
+ color: props.color,
44
+ divider: props.divider
41
45
  }),
42
46
  list: () => list,
43
47
  key: useId(),
@@ -47,7 +51,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
47
51
  supporting: !!slots.supporting,
48
52
  trailing: !!slots.trailing
49
53
  }),
50
- multiline: () => multiline.value
54
+ multiline: () => multiline.value,
55
+ textStart: () => textStart.value
51
56
  });
52
57
  const slotProps = computed(() => ({
53
58
  selected: item.selected(),
@@ -69,7 +74,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
69
74
  useRipple(pressed, root);
70
75
  let handle;
71
76
  onMounted(() => {
72
- handle = attachListItem(root.value, { onMultilineChange: (next) => multiline.value = next });
77
+ handle = attachListItem(root.value, {
78
+ onMultilineChange: (next) => multiline.value = next,
79
+ measuresTextStart: item.measuresTextStart,
80
+ onTextStartChange: (next) => textStart.value = next
81
+ });
73
82
  });
74
83
  onUpdated(() => handle?.sync());
75
84
  onBeforeUnmount(() => handle?.detach());
@@ -0,0 +1,8 @@
1
+ import "vue";
2
+ /** The modifiers an app gives `v-model`, as `.trim`, which Vue applies to the value reported */
3
+ export type ModelModifiers = Partial<Record<string, true>>;
4
+ /**
5
+ * What a selection that can be cleared reports: a list as it is; a single value, or `undefined`
6
+ * once its last one is turned off, unless `required` keeps one (`R` true).
7
+ */
8
+ export type SelectionChange<T, R extends boolean> = T extends readonly unknown[] ? T : R extends true ? T : T | undefined;
@@ -0,0 +1,15 @@
1
+ import { useModel } from "vue";
2
+ // src/model/model.ts
3
+ /**
4
+ * `v-model`'s value, as `defineModel` keeps it: the app's while it binds one, and the component's
5
+ * own otherwise. The component declares the `modelValue` prop and its `update:modelValue` event
6
+ * itself, with the value alone as the event's type, so an app's ref of a narrower type binds under
7
+ * `strictTemplates`, where `defineModel`'s event would add `undefined`. Call it in `setup`, with a
8
+ * getter of the destructured prop.
9
+ */
10
+ function useValueModel(value) {
11
+ return useModel({ get modelValue() {
12
+ return value();
13
+ } }, "modelValue");
14
+ }
15
+ export { useValueModel };
@@ -1,31 +1,36 @@
1
+ import { ModelModifiers } from "../model/model.js";
1
2
  import { NavigationBarMessages, NavigationBarProps, NavigationBarValue } from "@rio-m3e/core";
2
3
  import "@rio-m3e/styles/base/accent.css";
3
4
  import "@rio-m3e/styles/base/reduced-motion.css";
4
5
  import "@rio-m3e/styles/navigation-bar.css";
5
- interface Props extends Omit<NavigationBarProps, 'active'> {
6
+ export interface Props<T extends NavigationBarValue> extends Omit<NavigationBarProps, 'active'> {
6
7
  /** The value of the active destination's item, with `v-model`. */
7
- modelValue?: NavigationBarValue;
8
+ modelValue?: T;
8
9
  /** A language tag, for badges' counts. Without it, the one provided, or the page's. */
9
10
  locale?: string;
10
11
  /** Replaces what a small badge says. */
11
12
  messages?: Partial<NavigationBarMessages>;
12
13
  /** The element whose scrolling hides the bar, with `hideOnScroll`. Defaults to the window. */
13
14
  scrollTarget?: HTMLElement | null;
15
+ /** The modifiers given to `v-model`, as `.trim` */
16
+ modelModifiers?: ModelModifiers;
14
17
  }
15
- type __VLS_Slots = {
16
- /** The destinations (`RioNavigationBarItem`) */
17
- default?: () => unknown;
18
- };
19
- declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
- "update:modelValue": (value: NavigationBarValue) => any;
21
- }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
22
- "onUpdate:modelValue"?: ((value: NavigationBarValue) => any) | undefined;
23
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
- declare const _default: typeof __VLS_export;
26
- type __VLS_WithSlots<T, S> = T & {
27
- new (): {
28
- $slots: S;
18
+ declare const __VLS_export: <T extends NavigationBarValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
19
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<Props<T> & {
20
+ "onUpdate:modelValue"?: ((value: T) => any) | undefined;
21
+ }> & (typeof globalThis extends {
22
+ __VLS_PROPS_FALLBACK: infer P;
23
+ } ? P : {});
24
+ expose: (exposed: {}) => void;
25
+ attrs: any;
26
+ slots: {
27
+ /** The destinations (`RioNavigationBarItem`) */
28
+ default?: () => unknown;
29
29
  };
30
+ emit: (evt: "update:modelValue", value: T) => void;
31
+ }>) => import("vue").VNode & {
32
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
30
33
  };
34
+ declare const _default: typeof __VLS_export;
35
+ type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
31
36
  export { _default as default };
@@ -13,6 +13,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
13
13
  locale: {},
14
14
  messages: {},
15
15
  scrollTarget: {},
16
+ modelModifiers: {},
16
17
  layout: {},
17
18
  label: {},
18
19
  color: {},
@@ -1,46 +1,47 @@
1
+ import { ModelModifiers } from "../model/model.js";
1
2
  import { NavigationRailMessages, NavigationRailProps, NavigationRailValue } from "@rio-m3e/core";
2
3
  import "@rio-m3e/styles/base/accent.css";
3
4
  import "@rio-m3e/styles/base/reduced-motion.css";
4
5
  import "@rio-m3e/styles/base/direction.css";
5
6
  import "@rio-m3e/styles/navigation-rail.css";
6
- interface Props extends Omit<NavigationRailProps, 'active' | 'expanded'> {
7
+ export interface Props<T extends NavigationRailValue> extends Omit<NavigationRailProps, 'active' | 'expanded'> {
7
8
  /** The value of the active destination's item, with `v-model`. */
8
- modelValue?: NavigationRailValue;
9
+ modelValue?: T;
9
10
  /** A language tag, for the menu button's name and badges' counts. Without it, the one provided, or the page's. */
10
11
  locale?: string;
11
12
  /** Replaces the menu button's name, the modal's, and what a small badge says. */
12
13
  messages?: Partial<NavigationRailMessages>;
14
+ /** The modifiers given to `v-model`, as `.trim` */
15
+ modelModifiers?: ModelModifiers;
13
16
  }
14
- type __VLS_Props = Props;
15
- type __VLS_Slots = {
16
- /** The destinations (`RioNavigationRailItem`) and sections (`RioNavigationRailSection`) */
17
- default?: () => unknown;
18
- /** A FAB above the destinations: bind `expanded` to its `extended`, so it extends with the rail. */
19
- fab?: (props: {
20
- expanded: boolean;
21
- }) => unknown;
22
- /** The menu button's icon while the rail is collapsed, in place of the one the app registered (`expand-rail`) */
23
- 'expand-icon'?: () => unknown;
24
- /** The menu button's icon while the rail is expanded, in place of the one the app registered (`collapse-rail`) */
25
- 'collapse-icon'?: () => unknown;
26
- };
27
- type __VLS_ModelProps = {
28
- /** Whether the rail is expanded, with `v-model:expanded`. */
29
- 'expanded'?: boolean;
30
- };
31
- type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
32
- declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
33
- "update:modelValue": (value: NavigationRailValue) => any;
34
- "update:expanded": (value: boolean) => any;
35
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
36
- "onUpdate:modelValue"?: ((value: NavigationRailValue) => any) | undefined;
37
- "onUpdate:expanded"?: ((value: boolean) => any) | undefined;
38
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
39
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
40
- declare const _default: typeof __VLS_export;
41
- type __VLS_WithSlots<T, S> = T & {
42
- new (): {
43
- $slots: S;
17
+ declare const __VLS_export: <T extends NavigationRailValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
18
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<(Props<T> & {
19
+ /** Whether the rail is expanded, with `v-model:expanded`. */
20
+ expanded?: boolean;
21
+ }) & {
22
+ "onUpdate:modelValue"?: ((value: T) => any) | undefined;
23
+ "onUpdate:expanded"?: ((value: boolean) => any) | undefined;
24
+ }> & (typeof globalThis extends {
25
+ __VLS_PROPS_FALLBACK: infer P;
26
+ } ? P : {});
27
+ expose: (exposed: {}) => void;
28
+ attrs: any;
29
+ slots: {
30
+ /** The destinations (`RioNavigationRailItem`) and sections (`RioNavigationRailSection`) */
31
+ default?: () => unknown;
32
+ /** A FAB above the destinations: bind `expanded` to its `extended`, so it extends with the rail. */
33
+ fab?: (props: {
34
+ expanded: boolean;
35
+ }) => unknown;
36
+ /** The menu button's icon while the rail is collapsed, in place of the one the app registered (`expand-rail`) */
37
+ 'expand-icon'?: () => unknown;
38
+ /** The menu button's icon while the rail is expanded, in place of the one the app registered (`collapse-rail`) */
39
+ 'collapse-icon'?: () => unknown;
44
40
  };
41
+ emit: ((evt: "update:modelValue", value: T) => void) & ((event: "update:expanded", value: boolean) => void);
42
+ }>) => import("vue").VNode & {
43
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
45
44
  };
45
+ declare const _default: typeof __VLS_export;
46
+ type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
46
47
  export { _default as default };
@@ -16,6 +16,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
16
16
  modelValue: {},
17
17
  locale: {},
18
18
  messages: {},
19
+ modelModifiers: {},
19
20
  modal: { type: Boolean },
20
21
  hideWhenCollapsed: { type: Boolean },
21
22
  align: {},
@@ -5,7 +5,7 @@ import _sfc_main$3 from "../menu/Menu.vue.js";
5
5
  import _sfc_main$4 from "../menu/MenuItem.vue.js";
6
6
  import _sfc_main$5 from "../tooltip/Tooltip.vue.js";
7
7
  import { overflowKey } from "./overflow.js";
8
- import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createSlots, createVNode, defineComponent, openBlock, provide, ref, renderList, renderSlot, unref, useTemplateRef, watchEffect, withCtx } from "vue";
8
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createSlots, createVNode, defineComponent, mergeProps, openBlock, provide, ref, renderList, renderSlot, unref, useTemplateRef, watchEffect, withCtx } from "vue";
9
9
  import "@rio-m3e/styles/base/overflow.css";
10
10
  // src/overflow/OverflowMenu.vue
11
11
  const _hoisted_1 = { class: "rio-overflow" };
@@ -16,6 +16,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
16
16
  provide(overflowKey, null);
17
17
  const text = useMessages("overflow", useLocale(() => void 0), () => void 0);
18
18
  const open = ref(false);
19
+ /** What the button says of the menu it opens, which the icon button passes on to its element */
20
+ const opensMenu = computed(() => ({
21
+ "aria-haspopup": "menu",
22
+ "aria-expanded": open.value
23
+ }));
19
24
  const indicator = useTemplateRef("indicator");
20
25
  watchEffect(() => __props.host.indicator.value = indicator.value?.$el ?? null);
21
26
  /** Renders what an entry gives: text, or a slot of the button it stands for */
@@ -30,22 +35,15 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
30
35
  };
31
36
  return (_ctx, _cache) => {
32
37
  return openBlock(), createElementBlock("span", _hoisted_1, [createVNode(_sfc_main$5, { text: unref(text).more }, {
33
- default: withCtx(() => [createVNode(_sfc_main$1, {
38
+ default: withCtx(() => [createVNode(_sfc_main$1, mergeProps({
34
39
  ref_key: "indicator",
35
40
  ref: indicator,
36
41
  label: unref(text).more,
37
- variant: __props.host.indicatorVariant(),
38
- "aria-haspopup": "menu",
39
- "aria-expanded": open.value,
40
- onClick: _cache[0] || (_cache[0] = ($event) => open.value = !open.value)
41
- }, {
42
+ variant: __props.host.indicatorVariant()
43
+ }, opensMenu.value, { onClick: _cache[0] || (_cache[0] = ($event) => open.value = !open.value) }), {
42
44
  default: withCtx(() => [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$2, { alias: "more" })])]),
43
45
  _: 3
44
- }, 8, [
45
- "label",
46
- "variant",
47
- "aria-expanded"
48
- ])]),
46
+ }, 16, ["label", "variant"])]),
49
47
  _: 3
50
48
  }, 8, ["text"]), createVNode(_sfc_main$3, {
51
49
  open: open.value,
@@ -1,5 +1,6 @@
1
1
  import { RadioProps, RadioValue } from "@rio-m3e/core";
2
2
  import "@rio-m3e/styles/base/accent.css";
3
+ import "@rio-m3e/styles/base/density.css";
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";
@@ -3,6 +3,7 @@ import { radioGroupKey } from "./context.js";
3
3
  import { createElementBlock, createElementVNode, defineComponent, guardReactiveProps, inject, mergeProps, normalizeProps, onBeforeUnmount, onMounted, onUpdated, openBlock, unref, useTemplateRef } from "vue";
4
4
  import { attachCheckable, createRadio, mergePartAttrs } from "@rio-m3e/core";
5
5
  import "@rio-m3e/styles/base/accent.css";
6
+ import "@rio-m3e/styles/base/density.css";
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/ripple.css";
@@ -15,6 +16,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
15
16
  value: {},
16
17
  selected: { type: Boolean },
17
18
  color: {},
19
+ density: {},
18
20
  disabled: { type: Boolean },
19
21
  softDisabled: { type: Boolean }
20
22
  },
@@ -26,6 +28,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
26
28
  props: () => ({
27
29
  selected: isSelected(),
28
30
  color: __props.color,
31
+ density: __props.density,
29
32
  disabled: __props.disabled || group?.disabled() || void 0,
30
33
  softDisabled: __props.softDisabled
31
34
  }),
@@ -1,30 +1,32 @@
1
+ import { ModelModifiers } from "../model/model.js";
1
2
  import { RadioGroupProps, RadioValue } from "@rio-m3e/core";
2
3
  import "@rio-m3e/styles/base/accent.css";
4
+ import "@rio-m3e/styles/base/density.css";
3
5
  import "@rio-m3e/styles/radio.css";
4
- interface Props extends RadioGroupProps {
6
+ export interface Props<T extends RadioValue> extends RadioGroupProps {
7
+ /** The selected radio button's value, with `v-model`. */
8
+ modelValue?: T;
5
9
  /** The `name` the radio buttons submit their value under. Defaults to a unique one. */
6
10
  name?: string;
11
+ /** The modifiers given to `v-model`, as `.trim` */
12
+ modelModifiers?: ModelModifiers;
7
13
  }
8
- type __VLS_Props = Props;
9
- type __VLS_Slots = {
10
- /** `RioRadio`s, each in a `<label>` with its text */
11
- default?: () => unknown;
12
- };
13
- type __VLS_ModelProps = {
14
- /** The selected radio button's value, with `v-model`. */
15
- modelValue?: RadioValue | undefined;
16
- };
17
- type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
18
- declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
- "update:modelValue": (value: RadioValue | undefined) => any;
20
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
21
- "onUpdate:modelValue"?: ((value: RadioValue | undefined) => any) | undefined;
22
- }>, {}, {}, {}, {}, 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;
14
+ declare const __VLS_export: <T extends RadioValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
15
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<Props<T> & {
16
+ "onUpdate:modelValue"?: ((value: T) => any) | undefined;
17
+ }> & (typeof globalThis extends {
18
+ __VLS_PROPS_FALLBACK: infer P;
19
+ } ? P : {});
20
+ expose: (exposed: {}) => void;
21
+ attrs: any;
22
+ slots: {
23
+ /** `RioRadio`s, each in a `<label>` with its text */
24
+ default?: () => unknown;
28
25
  };
26
+ emit: (evt: "update:modelValue", value: T) => void;
27
+ }>) => import("vue").VNode & {
28
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
29
29
  };
30
+ declare const _default: typeof __VLS_export;
31
+ type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
30
32
  export { _default as default };
@@ -1,27 +1,29 @@
1
1
  import { radioGroupKey } from "./context.js";
2
- import { createElementBlock, defineComponent, mergeModels, mergeProps, nextTick, onBeforeUnmount, onMounted, openBlock, provide, renderSlot, unref, useId, useModel, useTemplateRef, watch } from "vue";
2
+ import { useValueModel } from "../model/model.js";
3
+ import { createElementBlock, defineComponent, mergeProps, nextTick, onBeforeUnmount, onMounted, openBlock, provide, renderSlot, unref, useId, useTemplateRef, watch } from "vue";
3
4
  import { attachRadioGroup, createRadioGroup } from "@rio-m3e/core";
4
5
  import "@rio-m3e/styles/base/accent.css";
6
+ import "@rio-m3e/styles/base/density.css";
5
7
  import "@rio-m3e/styles/radio.css";
6
8
  // src/radio/RadioGroup.vue
7
9
  const _sfc_main = /*@__PURE__*/ defineComponent({
8
10
  __name: "RadioGroup",
9
- props: /*@__PURE__*/ mergeModels({
11
+ props: {
12
+ modelValue: {},
10
13
  name: {},
14
+ modelModifiers: {},
11
15
  label: {},
12
16
  color: {},
17
+ density: {},
13
18
  disabled: { type: Boolean }
14
- }, {
15
- "modelValue": {},
16
- "modelModifiers": {}
17
- }),
19
+ },
18
20
  emits: ["update:modelValue"],
19
21
  setup(__props) {
20
- /** The selected radio button's value, with `v-model`. */
21
- const model = useModel(__props, "modelValue");
22
+ const model = useValueModel(() => __props.modelValue);
22
23
  const group = createRadioGroup({ props: () => ({
23
24
  label: __props.label,
24
25
  color: __props.color,
26
+ density: __props.density,
25
27
  disabled: __props.disabled
26
28
  }) });
27
29
  const id = useId();
package/dist/rio/rio.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { iconsKey } from "../icon/icons.js";
2
2
  import { localeKey, messagesKey } from "../locale/locale.js";
3
+ import { themeKey } from "../theme/context.js";
3
4
  import { computed, effectScope, toRef, toValue, watchEffect } from "vue";
4
5
  import { resolveLocale } from "@rio-m3e/core";
5
6
  import { attachTheme, createThemeCss, languageHeightOf } from "@rio-m3e/tokens";
@@ -21,6 +22,7 @@ function createRio(options = {}) {
21
22
  },
22
23
  install(app) {
23
24
  app.provide(localeKey, toRef(options.locale));
25
+ app.provide(themeKey, computed(() => toValue(options.theme)));
24
26
  app.provide(iconsKey, computed(() => toValue(options.icons)));
25
27
  app.provide(messagesKey, computed(() => ({
26
28
  messages: toValue(options.messages),
@@ -1,20 +1,36 @@
1
+ import { ModelModifiers } from "../model/model.js";
1
2
  import { ScrollFieldProps, ScrollFieldValue } from "@rio-m3e/core";
2
3
  import "@rio-m3e/styles/base/accent.css";
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/scroll-field.css";
6
- type __VLS_Props = Omit<ScrollFieldProps, 'value'> & {
7
- /** The value in the middle, with `v-model`. */
8
- modelValue?: ScrollFieldValue;
7
+ declare const __VLS_export: <T extends ScrollFieldValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
8
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<(Omit<ScrollFieldProps, "value" | "options" | "format"> & {
9
+ /** The value in the middle, with `v-model`. */
10
+ modelValue?: T;
11
+ /** The values it takes, in order, in place of `min`, `max`, and `step`. */
12
+ options?: readonly T[];
13
+ /**
14
+ * Writes a value. By default, a number is written in the language's digits, with at least two
15
+ * of them, and text as it is.
16
+ */
17
+ format?: (value: T) => string;
18
+ /** The modifiers given to `v-model`, as `.trim` */
19
+ modelModifiers?: ModelModifiers;
20
+ }) & {
21
+ "onUpdate:modelValue"?: ((value: T) => any) | undefined;
22
+ "onUpdate:editing"?: ((editing: boolean) => any) | undefined;
23
+ "onUpdate:invalid"?: ((invalid: boolean) => any) | undefined;
24
+ }> & (typeof globalThis extends {
25
+ __VLS_PROPS_FALLBACK: infer P;
26
+ } ? P : {});
27
+ expose: (exposed: {}) => void;
28
+ attrs: any;
29
+ slots: {};
30
+ emit: ((evt: "update:modelValue", value: T) => void) & ((evt: "update:editing", editing: boolean) => void) & ((evt: "update:invalid", invalid: boolean) => void);
31
+ }>) => import("vue").VNode & {
32
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
9
33
  };
10
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
- "update:modelValue": (value: ScrollFieldValue) => any;
12
- "update:editing": (editing: boolean) => any;
13
- "update:invalid": (invalid: boolean) => any;
14
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
- "onUpdate:modelValue"?: ((value: ScrollFieldValue) => any) | undefined;
16
- "onUpdate:editing"?: ((editing: boolean) => any) | undefined;
17
- "onUpdate:invalid"?: ((invalid: boolean) => any) | undefined;
18
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
34
  declare const _default: typeof __VLS_export;
35
+ type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
20
36
  export { _default as default };