@rio-m3e/vue 0.8.0 → 0.8.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.
Files changed (86) hide show
  1. package/dist/app-bar/AppBar.vue.d.ts +411 -10
  2. package/dist/attrs/attrs.d.ts +91 -0
  3. package/dist/badge/Badge.vue.d.ts +391 -2
  4. package/dist/bottom-sheet/BottomSheet.vue.d.ts +407 -15
  5. package/dist/browser/rio-vue.global.js +21 -21
  6. package/dist/browser/rio-vue.js +21 -21
  7. package/dist/button/Button.vue.d.ts +208 -3
  8. package/dist/button-group/ButtonGroup.vue.d.ts +30 -20
  9. package/dist/button-group/ButtonGroup.vue.js +2 -1
  10. package/dist/card/Card.vue.d.ts +193 -9
  11. package/dist/card/CardActions.vue.d.ts +1 -1
  12. package/dist/card/CardContent.vue.d.ts +1 -1
  13. package/dist/card/CardHeader.vue.d.ts +395 -8
  14. package/dist/card/CardMedia.vue.d.ts +1 -1
  15. package/dist/checkbox/Checkbox.vue.d.ts +4 -2
  16. package/dist/chip/AssistChip.vue.d.ts +200 -3
  17. package/dist/chip/ChipSet.vue.d.ts +26 -16
  18. package/dist/chip/ChipSet.vue.js +2 -1
  19. package/dist/chip/FilterChip.vue.d.ts +2 -1
  20. package/dist/chip/InputChip.vue.d.ts +2 -1
  21. package/dist/chip/SuggestionChip.vue.d.ts +200 -2
  22. package/dist/date-picker/DatePicker.vue.d.ts +7 -4
  23. package/dist/date-picker/DatePicker.vue.js +14 -11
  24. package/dist/date-picker/DatePickerDialog.vue.d.ts +441 -34
  25. package/dist/date-picker/DatePickerDialog.vue.js +13 -9
  26. package/dist/date-picker/DateRangePickerDialog.vue.d.ts +438 -32
  27. package/dist/date-picker/DateRangePickerDialog.vue.js +19 -17
  28. package/dist/dialog/Dialog.vue.d.ts +407 -17
  29. package/dist/divider/Divider.vue.d.ts +389 -2
  30. package/dist/fab/Fab.vue.d.ts +208 -7
  31. package/dist/fab-menu/FabMenu.vue.d.ts +395 -9
  32. package/dist/fab-menu/FabMenuItem.vue.d.ts +408 -3
  33. package/dist/icon/Icon.vue.d.ts +173 -3
  34. package/dist/icon-button/IconButton.vue.d.ts +214 -3
  35. package/dist/list/List.vue.d.ts +26 -16
  36. package/dist/list/List.vue.js +2 -1
  37. package/dist/list/ListItem.vue.d.ts +5 -3
  38. package/dist/loading-indicator/LoadingIndicator.vue.d.ts +395 -2
  39. package/dist/menu/Menu.vue.d.ts +417 -9
  40. package/dist/menu/MenuDivider.vue.d.ts +1 -1
  41. package/dist/menu/MenuGroup.vue.d.ts +387 -2
  42. package/dist/menu/MenuItem.vue.d.ts +406 -3
  43. package/dist/menu/SubMenu.vue.d.ts +4 -2
  44. package/dist/model/model.d.ts +8 -0
  45. package/dist/model/model.js +15 -0
  46. package/dist/navigation-bar/NavigationBar.vue.d.ts +21 -16
  47. package/dist/navigation-bar/NavigationBar.vue.js +1 -0
  48. package/dist/navigation-bar/NavigationBarItem.vue.d.ts +4 -3
  49. package/dist/navigation-rail/NavigationRail.vue.d.ts +33 -32
  50. package/dist/navigation-rail/NavigationRail.vue.js +1 -0
  51. package/dist/navigation-rail/NavigationRailItem.vue.d.ts +4 -3
  52. package/dist/navigation-rail/NavigationRailSection.vue.d.ts +389 -2
  53. package/dist/overflow/OverflowItem.vue.d.ts +1 -1
  54. package/dist/progress/CircularProgress.vue.d.ts +395 -2
  55. package/dist/progress/LinearProgress.vue.d.ts +393 -1
  56. package/dist/radio/Radio.vue.d.ts +3 -1
  57. package/dist/radio/RadioGroup.vue.d.ts +22 -21
  58. package/dist/radio/RadioGroup.vue.js +7 -8
  59. package/dist/scroll-field/ScrollField.vue.d.ts +28 -12
  60. package/dist/scroll-field/ScrollField.vue.js +6 -4
  61. package/dist/search/Search.vue.d.ts +4 -3
  62. package/dist/select/Select.vue.d.ts +42 -39
  63. package/dist/select/Select.vue.js +5 -5
  64. package/dist/select/SelectOption.vue.d.ts +409 -2
  65. package/dist/side-sheet/SideSheet.vue.d.ts +190 -16
  66. package/dist/slider/RangeSlider.vue.d.ts +415 -5
  67. package/dist/slider/Slider.vue.d.ts +2 -1
  68. package/dist/snackbar/Snackbar.vue.d.ts +407 -13
  69. package/dist/snackbar/SnackbarHost.vue.d.ts +3 -1
  70. package/dist/split-button/SplitButton.vue.d.ts +402 -3
  71. package/dist/switch/Switch.vue.d.ts +4 -2
  72. package/dist/tabs/Tab.vue.d.ts +2 -1
  73. package/dist/tabs/TabGroup.vue.d.ts +22 -18
  74. package/dist/tabs/TabGroup.vue.js +5 -5
  75. package/dist/tabs/TabPanel.vue.d.ts +387 -2
  76. package/dist/tabs/Tabs.vue.d.ts +23 -21
  77. package/dist/tabs/Tabs.vue.js +7 -8
  78. package/dist/text-field/TextField.vue.d.ts +28 -26
  79. package/dist/text-field/TextField.vue.js +12 -16
  80. package/dist/theme/ThemeProvider.vue.d.ts +394 -6
  81. package/dist/time-picker/TimeInput.vue.d.ts +395 -13
  82. package/dist/time-picker/TimePickerDialog.vue.d.ts +421 -27
  83. package/dist/time-picker/TimeScroll.vue.d.ts +401 -19
  84. package/dist/toolbar/Toolbar.vue.d.ts +3 -1
  85. package/dist/tooltip/Tooltip.vue.d.ts +410 -14
  86. package/package.json +6 -5
@@ -1,4 +1,3 @@
1
- import { AssistChipProps } from "@rio-m3e/core";
2
1
  import "@rio-m3e/styles/base/accent.css";
3
2
  import "@rio-m3e/styles/base/density.css";
4
3
  import "@rio-m3e/styles/base/focus-ring.css";
@@ -12,9 +11,207 @@ type __VLS_Slots = {
12
11
  /** A leading icon. It is hidden from assistive technology, so the label must stand alone. */
13
12
  icon?: () => unknown;
14
13
  };
15
- declare const __VLS_base: import("vue").DefineComponent<AssistChipProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ declare const __VLS_base: import("vue").DefineComponent<{
15
+ elevated?: boolean;
16
+ href?: string;
17
+ color?: import("@rio-m3e/core").AccentColor;
18
+ density?: import("@rio-m3e/core").Density;
19
+ disabled?: boolean;
20
+ softDisabled?: boolean;
21
+ name?: string;
22
+ value?: string | number;
23
+ form?: string;
24
+ autofocus?: boolean;
25
+ target?: string;
26
+ rel?: string;
27
+ download?: boolean | string;
28
+ hreflang?: string;
29
+ referrerpolicy?: string;
30
+ id?: string;
31
+ role?: string;
32
+ title?: string;
33
+ tabindex?: number | string;
34
+ lang?: string;
35
+ dir?: string;
36
+ hidden?: boolean | "until-found";
37
+ inert?: boolean;
38
+ translate?: "yes" | "no";
39
+ onClick?: (event: MouseEvent) => void;
40
+ onDblclick?: (event: MouseEvent) => void;
41
+ onContextmenu?: (event: MouseEvent) => void;
42
+ onMousedown?: (event: MouseEvent) => void;
43
+ onMouseup?: (event: MouseEvent) => void;
44
+ onMouseenter?: (event: MouseEvent) => void;
45
+ onMouseleave?: (event: MouseEvent) => void;
46
+ onMouseover?: (event: MouseEvent) => void;
47
+ onMouseout?: (event: MouseEvent) => void;
48
+ onMousemove?: (event: MouseEvent) => void;
49
+ onWheel?: (event: WheelEvent) => void;
50
+ onTouchstart?: (event: TouchEvent) => void;
51
+ onTouchmove?: (event: TouchEvent) => void;
52
+ onTouchend?: (event: TouchEvent) => void;
53
+ onTouchcancel?: (event: TouchEvent) => void;
54
+ onPointerdown?: (event: PointerEvent) => void;
55
+ onPointerup?: (event: PointerEvent) => void;
56
+ onPointerenter?: (event: PointerEvent) => void;
57
+ onPointerleave?: (event: PointerEvent) => void;
58
+ onPointermove?: (event: PointerEvent) => void;
59
+ onFocus?: (event: FocusEvent) => void;
60
+ onBlur?: (event: FocusEvent) => void;
61
+ onFocusin?: (event: FocusEvent) => void;
62
+ onFocusout?: (event: FocusEvent) => void;
63
+ onKeydown?: (event: KeyboardEvent) => void;
64
+ onKeyup?: (event: KeyboardEvent) => void;
65
+ 'aria-activedescendant'?: string | undefined;
66
+ 'aria-atomic'?: (boolean | "true" | "false") | undefined;
67
+ 'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
68
+ 'aria-busy'?: (boolean | "true" | "false") | undefined;
69
+ 'aria-checked'?: (boolean | "true" | "false") | "mixed" | undefined;
70
+ 'aria-colcount'?: (string | number) | undefined;
71
+ 'aria-colindex'?: (string | number) | undefined;
72
+ 'aria-colspan'?: (string | number) | undefined;
73
+ 'aria-controls'?: string | undefined;
74
+ 'aria-current'?: (boolean | "true" | "false") | "page" | "step" | "location" | "date" | "time" | undefined;
75
+ 'aria-describedby'?: string | undefined;
76
+ 'aria-details'?: string | undefined;
77
+ 'aria-disabled'?: (boolean | "true" | "false") | undefined;
78
+ 'aria-dropeffect'?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
79
+ 'aria-errormessage'?: string | undefined;
80
+ 'aria-expanded'?: (boolean | "true" | "false") | undefined;
81
+ 'aria-flowto'?: string | undefined;
82
+ 'aria-grabbed'?: (boolean | "true" | "false") | undefined;
83
+ 'aria-haspopup'?: (boolean | "true" | "false") | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
84
+ 'aria-hidden'?: (boolean | "true" | "false") | undefined;
85
+ 'aria-invalid'?: (boolean | "true" | "false") | "grammar" | "spelling" | undefined;
86
+ 'aria-keyshortcuts'?: string | undefined;
87
+ 'aria-label'?: string | undefined;
88
+ 'aria-labelledby'?: string | undefined;
89
+ 'aria-level'?: (string | number) | undefined;
90
+ 'aria-live'?: "off" | "assertive" | "polite" | undefined;
91
+ 'aria-modal'?: (boolean | "true" | "false") | undefined;
92
+ 'aria-multiline'?: (boolean | "true" | "false") | undefined;
93
+ 'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
94
+ 'aria-orientation'?: "horizontal" | "vertical" | undefined;
95
+ 'aria-owns'?: string | undefined;
96
+ 'aria-placeholder'?: string | undefined;
97
+ 'aria-posinset'?: (string | number) | undefined;
98
+ 'aria-pressed'?: (boolean | "true" | "false") | "mixed" | undefined;
99
+ 'aria-readonly'?: (boolean | "true" | "false") | undefined;
100
+ 'aria-relevant'?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
101
+ 'aria-required'?: (boolean | "true" | "false") | undefined;
102
+ 'aria-roledescription'?: string | undefined;
103
+ 'aria-rowcount'?: (string | number) | undefined;
104
+ 'aria-rowindex'?: (string | number) | undefined;
105
+ 'aria-rowspan'?: (string | number) | undefined;
106
+ 'aria-selected'?: (boolean | "true" | "false") | undefined;
107
+ 'aria-setsize'?: (string | number) | undefined;
108
+ 'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
109
+ 'aria-valuemax'?: (string | number) | undefined;
110
+ 'aria-valuemin'?: (string | number) | undefined;
111
+ 'aria-valuenow'?: (string | number) | undefined;
112
+ 'aria-valuetext'?: string | undefined;
113
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
114
  click: (event: MouseEvent) => any;
17
- }, string, import("vue").PublicProps, Readonly<AssistChipProps> & Readonly<{
115
+ }, string, import("vue").PublicProps, Readonly<{
116
+ elevated?: boolean;
117
+ href?: string;
118
+ color?: import("@rio-m3e/core").AccentColor;
119
+ density?: import("@rio-m3e/core").Density;
120
+ disabled?: boolean;
121
+ softDisabled?: boolean;
122
+ name?: string;
123
+ value?: string | number;
124
+ form?: string;
125
+ autofocus?: boolean;
126
+ target?: string;
127
+ rel?: string;
128
+ download?: boolean | string;
129
+ hreflang?: string;
130
+ referrerpolicy?: string;
131
+ id?: string;
132
+ role?: string;
133
+ title?: string;
134
+ tabindex?: number | string;
135
+ lang?: string;
136
+ dir?: string;
137
+ hidden?: boolean | "until-found";
138
+ inert?: boolean;
139
+ translate?: "yes" | "no";
140
+ onClick?: (event: MouseEvent) => void;
141
+ onDblclick?: (event: MouseEvent) => void;
142
+ onContextmenu?: (event: MouseEvent) => void;
143
+ onMousedown?: (event: MouseEvent) => void;
144
+ onMouseup?: (event: MouseEvent) => void;
145
+ onMouseenter?: (event: MouseEvent) => void;
146
+ onMouseleave?: (event: MouseEvent) => void;
147
+ onMouseover?: (event: MouseEvent) => void;
148
+ onMouseout?: (event: MouseEvent) => void;
149
+ onMousemove?: (event: MouseEvent) => void;
150
+ onWheel?: (event: WheelEvent) => void;
151
+ onTouchstart?: (event: TouchEvent) => void;
152
+ onTouchmove?: (event: TouchEvent) => void;
153
+ onTouchend?: (event: TouchEvent) => void;
154
+ onTouchcancel?: (event: TouchEvent) => void;
155
+ onPointerdown?: (event: PointerEvent) => void;
156
+ onPointerup?: (event: PointerEvent) => void;
157
+ onPointerenter?: (event: PointerEvent) => void;
158
+ onPointerleave?: (event: PointerEvent) => void;
159
+ onPointermove?: (event: PointerEvent) => void;
160
+ onFocus?: (event: FocusEvent) => void;
161
+ onBlur?: (event: FocusEvent) => void;
162
+ onFocusin?: (event: FocusEvent) => void;
163
+ onFocusout?: (event: FocusEvent) => void;
164
+ onKeydown?: (event: KeyboardEvent) => void;
165
+ onKeyup?: (event: KeyboardEvent) => void;
166
+ 'aria-activedescendant'?: string | undefined;
167
+ 'aria-atomic'?: (boolean | "true" | "false") | undefined;
168
+ 'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
169
+ 'aria-busy'?: (boolean | "true" | "false") | undefined;
170
+ 'aria-checked'?: (boolean | "true" | "false") | "mixed" | undefined;
171
+ 'aria-colcount'?: (string | number) | undefined;
172
+ 'aria-colindex'?: (string | number) | undefined;
173
+ 'aria-colspan'?: (string | number) | undefined;
174
+ 'aria-controls'?: string | undefined;
175
+ 'aria-current'?: (boolean | "true" | "false") | "page" | "step" | "location" | "date" | "time" | undefined;
176
+ 'aria-describedby'?: string | undefined;
177
+ 'aria-details'?: string | undefined;
178
+ 'aria-disabled'?: (boolean | "true" | "false") | undefined;
179
+ 'aria-dropeffect'?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
180
+ 'aria-errormessage'?: string | undefined;
181
+ 'aria-expanded'?: (boolean | "true" | "false") | undefined;
182
+ 'aria-flowto'?: string | undefined;
183
+ 'aria-grabbed'?: (boolean | "true" | "false") | undefined;
184
+ 'aria-haspopup'?: (boolean | "true" | "false") | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
185
+ 'aria-hidden'?: (boolean | "true" | "false") | undefined;
186
+ 'aria-invalid'?: (boolean | "true" | "false") | "grammar" | "spelling" | undefined;
187
+ 'aria-keyshortcuts'?: string | undefined;
188
+ 'aria-label'?: string | undefined;
189
+ 'aria-labelledby'?: string | undefined;
190
+ 'aria-level'?: (string | number) | undefined;
191
+ 'aria-live'?: "off" | "assertive" | "polite" | undefined;
192
+ 'aria-modal'?: (boolean | "true" | "false") | undefined;
193
+ 'aria-multiline'?: (boolean | "true" | "false") | undefined;
194
+ 'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
195
+ 'aria-orientation'?: "horizontal" | "vertical" | undefined;
196
+ 'aria-owns'?: string | undefined;
197
+ 'aria-placeholder'?: string | undefined;
198
+ 'aria-posinset'?: (string | number) | undefined;
199
+ 'aria-pressed'?: (boolean | "true" | "false") | "mixed" | undefined;
200
+ 'aria-readonly'?: (boolean | "true" | "false") | undefined;
201
+ 'aria-relevant'?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
202
+ 'aria-required'?: (boolean | "true" | "false") | undefined;
203
+ 'aria-roledescription'?: string | undefined;
204
+ 'aria-rowcount'?: (string | number) | undefined;
205
+ 'aria-rowindex'?: (string | number) | undefined;
206
+ 'aria-rowspan'?: (string | number) | undefined;
207
+ 'aria-selected'?: (boolean | "true" | "false") | undefined;
208
+ 'aria-setsize'?: (string | number) | undefined;
209
+ 'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
210
+ 'aria-valuemax'?: (string | number) | undefined;
211
+ 'aria-valuemin'?: (string | number) | undefined;
212
+ 'aria-valuenow'?: (string | number) | undefined;
213
+ 'aria-valuetext'?: string | undefined;
214
+ }> & Readonly<{
18
215
  onClick?: ((event: MouseEvent) => any) | undefined;
19
216
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
217
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,25 +1,35 @@
1
+ import { ModelModifiers, SelectionChange } from "../model/model.js";
1
2
  import { ChipSetProps, ChipSetSelected } from "@rio-m3e/core";
2
3
  import "@rio-m3e/styles/base/accent.css";
3
4
  import "@rio-m3e/styles/base/density.css";
4
5
  import "@rio-m3e/styles/chip.css";
5
- interface Props extends Omit<ChipSetProps, 'selected'> {
6
+ export interface Props<T extends ChipSetSelected, R extends boolean> extends Omit<ChipSetProps, 'selected' | 'required'> {
6
7
  /** The selected value (`single`) or values (`multiple`), with `v-model`. */
7
- modelValue?: ChipSetSelected;
8
+ modelValue?: T;
9
+ /**
10
+ * With a selection, keeps at least one chip selected: the last one can't be turned off, so a
11
+ * single selection never reports `undefined`.
12
+ */
13
+ required?: R & boolean;
14
+ /** The modifiers given to `v-model`, as `.trim` */
15
+ modelModifiers?: ModelModifiers;
8
16
  }
9
- type __VLS_Slots = {
10
- /** The chips. Filter chips with a `value` take their selection from the set, with `selection`. */
11
- default?: () => unknown;
12
- };
13
- declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
- "update:modelValue": (selected: ChipSetSelected) => any;
15
- }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
16
- "onUpdate:modelValue"?: ((selected: ChipSetSelected) => any) | undefined;
17
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
- declare const _default: typeof __VLS_export;
20
- type __VLS_WithSlots<T, S> = T & {
21
- new (): {
22
- $slots: S;
17
+ declare const __VLS_export: <T extends ChipSetSelected, 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<{
18
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<Props<T, R> & {
19
+ "onUpdate:modelValue"?: ((selected: SelectionChange<T, R>) => any) | undefined;
20
+ } & Omit<Partial<import("vue").HTMLAttributes & import("vue").ReservedProps>, "onUpdate:modelValue">> & (typeof globalThis extends {
21
+ __VLS_PROPS_FALLBACK: infer P;
22
+ } ? P : {});
23
+ expose: (exposed: {}) => void;
24
+ attrs: any;
25
+ slots: {
26
+ /** The chips. Filter chips with a `value` take their selection from the set, with `selection`. */
27
+ default?: () => unknown;
23
28
  };
29
+ emit: (evt: "update:modelValue", selected: SelectionChange<T, R>) => void;
30
+ }>) => import("vue").VNode & {
31
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
24
32
  };
33
+ declare const _default: typeof __VLS_export;
34
+ type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
25
35
  export { _default as default };
@@ -9,8 +9,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
9
9
  __name: "ChipSet",
10
10
  props: {
11
11
  modelValue: {},
12
- selection: {},
13
12
  required: { type: Boolean },
13
+ modelModifiers: {},
14
+ selection: {},
14
15
  scroll: { type: Boolean },
15
16
  color: {},
16
17
  density: {}
@@ -1,3 +1,4 @@
1
+ import { ActionAttrs } from "../attrs/attrs.js";
1
2
  import { ChipMessages, FilterChipProps } from "@rio-m3e/core";
2
3
  import "@rio-m3e/styles/base/accent.css";
3
4
  import "@rio-m3e/styles/base/density.css";
@@ -13,7 +14,7 @@ type __VLS_Props = FilterChipProps & {
13
14
  locale?: string;
14
15
  /** Replaces the remove button's name. */
15
16
  messages?: Partial<ChipMessages>;
16
- };
17
+ } & /* @vue-ignore */ ActionAttrs;
17
18
  type __VLS_Slots = {
18
19
  /** The label. */
19
20
  default?: () => unknown;
@@ -1,3 +1,4 @@
1
+ import { ActionAttrs } from "../attrs/attrs.js";
1
2
  import { ChipMessages, InputChipProps } from "@rio-m3e/core";
2
3
  import "@rio-m3e/styles/base/accent.css";
3
4
  import "@rio-m3e/styles/base/density.css";
@@ -11,7 +12,7 @@ type __VLS_Props = InputChipProps & {
11
12
  locale?: string;
12
13
  /** Replaces the remove button's name. */
13
14
  messages?: Partial<ChipMessages>;
14
- };
15
+ } & /* @vue-ignore */ ActionAttrs;
15
16
  type __VLS_Slots = {
16
17
  /** The label, which names the chip and its remove button. */
17
18
  default?: () => unknown;
@@ -11,9 +11,207 @@ type __VLS_Slots = {
11
11
  /** A leading icon. It is hidden from assistive technology, so the label must stand alone. */
12
12
  icon?: () => unknown;
13
13
  };
14
- declare const __VLS_base: import("vue").DefineComponent<import("@rio-m3e/core").AssistChipProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ declare const __VLS_base: import("vue").DefineComponent<{
15
+ elevated?: boolean;
16
+ href?: string;
17
+ color?: import("@rio-m3e/core").AccentColor;
18
+ density?: import("@rio-m3e/core").Density;
19
+ disabled?: boolean;
20
+ softDisabled?: boolean;
21
+ name?: string;
22
+ value?: string | number;
23
+ form?: string;
24
+ autofocus?: boolean;
25
+ target?: string;
26
+ rel?: string;
27
+ download?: boolean | string;
28
+ hreflang?: string;
29
+ referrerpolicy?: string;
30
+ id?: string;
31
+ role?: string;
32
+ title?: string;
33
+ tabindex?: number | string;
34
+ lang?: string;
35
+ dir?: string;
36
+ hidden?: boolean | "until-found";
37
+ inert?: boolean;
38
+ translate?: "yes" | "no";
39
+ onClick?: (event: MouseEvent) => void;
40
+ onDblclick?: (event: MouseEvent) => void;
41
+ onContextmenu?: (event: MouseEvent) => void;
42
+ onMousedown?: (event: MouseEvent) => void;
43
+ onMouseup?: (event: MouseEvent) => void;
44
+ onMouseenter?: (event: MouseEvent) => void;
45
+ onMouseleave?: (event: MouseEvent) => void;
46
+ onMouseover?: (event: MouseEvent) => void;
47
+ onMouseout?: (event: MouseEvent) => void;
48
+ onMousemove?: (event: MouseEvent) => void;
49
+ onWheel?: (event: WheelEvent) => void;
50
+ onTouchstart?: (event: TouchEvent) => void;
51
+ onTouchmove?: (event: TouchEvent) => void;
52
+ onTouchend?: (event: TouchEvent) => void;
53
+ onTouchcancel?: (event: TouchEvent) => void;
54
+ onPointerdown?: (event: PointerEvent) => void;
55
+ onPointerup?: (event: PointerEvent) => void;
56
+ onPointerenter?: (event: PointerEvent) => void;
57
+ onPointerleave?: (event: PointerEvent) => void;
58
+ onPointermove?: (event: PointerEvent) => void;
59
+ onFocus?: (event: FocusEvent) => void;
60
+ onBlur?: (event: FocusEvent) => void;
61
+ onFocusin?: (event: FocusEvent) => void;
62
+ onFocusout?: (event: FocusEvent) => void;
63
+ onKeydown?: (event: KeyboardEvent) => void;
64
+ onKeyup?: (event: KeyboardEvent) => void;
65
+ 'aria-activedescendant'?: string | undefined;
66
+ 'aria-atomic'?: (boolean | "true" | "false") | undefined;
67
+ 'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
68
+ 'aria-busy'?: (boolean | "true" | "false") | undefined;
69
+ 'aria-checked'?: (boolean | "true" | "false") | "mixed" | undefined;
70
+ 'aria-colcount'?: (string | number) | undefined;
71
+ 'aria-colindex'?: (string | number) | undefined;
72
+ 'aria-colspan'?: (string | number) | undefined;
73
+ 'aria-controls'?: string | undefined;
74
+ 'aria-current'?: (boolean | "true" | "false") | "page" | "step" | "location" | "date" | "time" | undefined;
75
+ 'aria-describedby'?: string | undefined;
76
+ 'aria-details'?: string | undefined;
77
+ 'aria-disabled'?: (boolean | "true" | "false") | undefined;
78
+ 'aria-dropeffect'?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
79
+ 'aria-errormessage'?: string | undefined;
80
+ 'aria-expanded'?: (boolean | "true" | "false") | undefined;
81
+ 'aria-flowto'?: string | undefined;
82
+ 'aria-grabbed'?: (boolean | "true" | "false") | undefined;
83
+ 'aria-haspopup'?: (boolean | "true" | "false") | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
84
+ 'aria-hidden'?: (boolean | "true" | "false") | undefined;
85
+ 'aria-invalid'?: (boolean | "true" | "false") | "grammar" | "spelling" | undefined;
86
+ 'aria-keyshortcuts'?: string | undefined;
87
+ 'aria-label'?: string | undefined;
88
+ 'aria-labelledby'?: string | undefined;
89
+ 'aria-level'?: (string | number) | undefined;
90
+ 'aria-live'?: "off" | "assertive" | "polite" | undefined;
91
+ 'aria-modal'?: (boolean | "true" | "false") | undefined;
92
+ 'aria-multiline'?: (boolean | "true" | "false") | undefined;
93
+ 'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
94
+ 'aria-orientation'?: "horizontal" | "vertical" | undefined;
95
+ 'aria-owns'?: string | undefined;
96
+ 'aria-placeholder'?: string | undefined;
97
+ 'aria-posinset'?: (string | number) | undefined;
98
+ 'aria-pressed'?: (boolean | "true" | "false") | "mixed" | undefined;
99
+ 'aria-readonly'?: (boolean | "true" | "false") | undefined;
100
+ 'aria-relevant'?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
101
+ 'aria-required'?: (boolean | "true" | "false") | undefined;
102
+ 'aria-roledescription'?: string | undefined;
103
+ 'aria-rowcount'?: (string | number) | undefined;
104
+ 'aria-rowindex'?: (string | number) | undefined;
105
+ 'aria-rowspan'?: (string | number) | undefined;
106
+ 'aria-selected'?: (boolean | "true" | "false") | undefined;
107
+ 'aria-setsize'?: (string | number) | undefined;
108
+ 'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
109
+ 'aria-valuemax'?: (string | number) | undefined;
110
+ 'aria-valuemin'?: (string | number) | undefined;
111
+ 'aria-valuenow'?: (string | number) | undefined;
112
+ 'aria-valuetext'?: string | undefined;
113
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
114
  click: (event: MouseEvent) => any;
16
- }, string, import("vue").PublicProps, Readonly<import("@rio-m3e/core").AssistChipProps> & Readonly<{
115
+ }, string, import("vue").PublicProps, Readonly<{
116
+ elevated?: boolean;
117
+ href?: string;
118
+ color?: import("@rio-m3e/core").AccentColor;
119
+ density?: import("@rio-m3e/core").Density;
120
+ disabled?: boolean;
121
+ softDisabled?: boolean;
122
+ name?: string;
123
+ value?: string | number;
124
+ form?: string;
125
+ autofocus?: boolean;
126
+ target?: string;
127
+ rel?: string;
128
+ download?: boolean | string;
129
+ hreflang?: string;
130
+ referrerpolicy?: string;
131
+ id?: string;
132
+ role?: string;
133
+ title?: string;
134
+ tabindex?: number | string;
135
+ lang?: string;
136
+ dir?: string;
137
+ hidden?: boolean | "until-found";
138
+ inert?: boolean;
139
+ translate?: "yes" | "no";
140
+ onClick?: (event: MouseEvent) => void;
141
+ onDblclick?: (event: MouseEvent) => void;
142
+ onContextmenu?: (event: MouseEvent) => void;
143
+ onMousedown?: (event: MouseEvent) => void;
144
+ onMouseup?: (event: MouseEvent) => void;
145
+ onMouseenter?: (event: MouseEvent) => void;
146
+ onMouseleave?: (event: MouseEvent) => void;
147
+ onMouseover?: (event: MouseEvent) => void;
148
+ onMouseout?: (event: MouseEvent) => void;
149
+ onMousemove?: (event: MouseEvent) => void;
150
+ onWheel?: (event: WheelEvent) => void;
151
+ onTouchstart?: (event: TouchEvent) => void;
152
+ onTouchmove?: (event: TouchEvent) => void;
153
+ onTouchend?: (event: TouchEvent) => void;
154
+ onTouchcancel?: (event: TouchEvent) => void;
155
+ onPointerdown?: (event: PointerEvent) => void;
156
+ onPointerup?: (event: PointerEvent) => void;
157
+ onPointerenter?: (event: PointerEvent) => void;
158
+ onPointerleave?: (event: PointerEvent) => void;
159
+ onPointermove?: (event: PointerEvent) => void;
160
+ onFocus?: (event: FocusEvent) => void;
161
+ onBlur?: (event: FocusEvent) => void;
162
+ onFocusin?: (event: FocusEvent) => void;
163
+ onFocusout?: (event: FocusEvent) => void;
164
+ onKeydown?: (event: KeyboardEvent) => void;
165
+ onKeyup?: (event: KeyboardEvent) => void;
166
+ 'aria-activedescendant'?: string | undefined;
167
+ 'aria-atomic'?: (boolean | "true" | "false") | undefined;
168
+ 'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
169
+ 'aria-busy'?: (boolean | "true" | "false") | undefined;
170
+ 'aria-checked'?: (boolean | "true" | "false") | "mixed" | undefined;
171
+ 'aria-colcount'?: (string | number) | undefined;
172
+ 'aria-colindex'?: (string | number) | undefined;
173
+ 'aria-colspan'?: (string | number) | undefined;
174
+ 'aria-controls'?: string | undefined;
175
+ 'aria-current'?: (boolean | "true" | "false") | "page" | "step" | "location" | "date" | "time" | undefined;
176
+ 'aria-describedby'?: string | undefined;
177
+ 'aria-details'?: string | undefined;
178
+ 'aria-disabled'?: (boolean | "true" | "false") | undefined;
179
+ 'aria-dropeffect'?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
180
+ 'aria-errormessage'?: string | undefined;
181
+ 'aria-expanded'?: (boolean | "true" | "false") | undefined;
182
+ 'aria-flowto'?: string | undefined;
183
+ 'aria-grabbed'?: (boolean | "true" | "false") | undefined;
184
+ 'aria-haspopup'?: (boolean | "true" | "false") | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
185
+ 'aria-hidden'?: (boolean | "true" | "false") | undefined;
186
+ 'aria-invalid'?: (boolean | "true" | "false") | "grammar" | "spelling" | undefined;
187
+ 'aria-keyshortcuts'?: string | undefined;
188
+ 'aria-label'?: string | undefined;
189
+ 'aria-labelledby'?: string | undefined;
190
+ 'aria-level'?: (string | number) | undefined;
191
+ 'aria-live'?: "off" | "assertive" | "polite" | undefined;
192
+ 'aria-modal'?: (boolean | "true" | "false") | undefined;
193
+ 'aria-multiline'?: (boolean | "true" | "false") | undefined;
194
+ 'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
195
+ 'aria-orientation'?: "horizontal" | "vertical" | undefined;
196
+ 'aria-owns'?: string | undefined;
197
+ 'aria-placeholder'?: string | undefined;
198
+ 'aria-posinset'?: (string | number) | undefined;
199
+ 'aria-pressed'?: (boolean | "true" | "false") | "mixed" | undefined;
200
+ 'aria-readonly'?: (boolean | "true" | "false") | undefined;
201
+ 'aria-relevant'?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
202
+ 'aria-required'?: (boolean | "true" | "false") | undefined;
203
+ 'aria-roledescription'?: string | undefined;
204
+ 'aria-rowcount'?: (string | number) | undefined;
205
+ 'aria-rowindex'?: (string | number) | undefined;
206
+ 'aria-rowspan'?: (string | number) | undefined;
207
+ 'aria-selected'?: (boolean | "true" | "false") | undefined;
208
+ 'aria-setsize'?: (string | number) | undefined;
209
+ 'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
210
+ 'aria-valuemax'?: (string | number) | undefined;
211
+ 'aria-valuemin'?: (string | number) | undefined;
212
+ 'aria-valuenow'?: (string | number) | undefined;
213
+ 'aria-valuetext'?: string | undefined;
214
+ }> & Readonly<{
17
215
  onClick?: ((event: MouseEvent) => any) | undefined;
18
216
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
217
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,10 +1,13 @@
1
+ import { FieldAttrs } from "../attrs/attrs.js";
1
2
  import { AccentColor, DatePickerMessages, DatePickerVariant, DialogVariant, TextFieldVariant } 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/anchored-position.css";
5
6
  import "@rio-m3e/styles/date-picker.css";
6
7
  type __VLS_Props = {
7
- /** `'docked'` shows the calendar below the field; `'modal'`, in a dialog. Defaults to docked. */
8
+ /**
9
+ * `'docked'` shows the calendar below the field; `'modal'`, in a dialog. Defaults to docked.
10
+ */
8
11
  variant?: DatePickerVariant;
9
12
  /** The field's look. Defaults to `'outlined'`, as the docked picker's spec has it. */
10
13
  fieldVariant?: TextFieldVariant;
@@ -39,11 +42,11 @@ type __VLS_Props = {
39
42
  /** Modal: what the dialog starts in, the calendar or the text input. */
40
43
  initialMode?: 'calendar' | 'input';
41
44
  /**
42
- * Modal: the dialog's look, as `RioDatePickerDialog`'s `variant`: `'basic'`, `'full-screen'`, or
43
- * `'adaptive'`, full-screen in a compact window. Defaults to `'basic'`.
45
+ * Modal: the dialog's look, as `RioDatePickerDialog`'s `variant`: `'basic'`, `'full-screen'`,
46
+ * or `'adaptive'`, full-screen in a compact window. Defaults to `'basic'`.
44
47
  */
45
48
  dialogVariant?: DialogVariant;
46
- };
49
+ } & /* @vue-ignore */ FieldAttrs;
47
50
  type __VLS_Slots = {
48
51
  /**
49
52
  * The field's button that opens the calendar, and the dialog's switch back to it. Without one,
@@ -97,6 +97,15 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
97
97
  });
98
98
  watch(open, (next) => handle?.sync(next), { flush: "post" });
99
99
  onBeforeUnmount(() => handle?.detach());
100
+ /**
101
+ * What the field's input takes besides the text field's props: no autofill, and the picker's commit
102
+ * and keys, after the app's own listeners
103
+ */
104
+ const fieldInput = {
105
+ autocomplete: "off",
106
+ onChange: picker.commitText,
107
+ onKeydown: picker.handleFieldKeydown
108
+ };
100
109
  return (_ctx, _cache) => {
101
110
  return openBlock(), createElementBlock("div", mergeProps({
102
111
  ref_key: "root",
@@ -105,21 +114,17 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
105
114
  class: _ctx.$attrs.class,
106
115
  style: _ctx.$attrs.style
107
116
  }), [
108
- createElementVNode("div", mergeProps(unref(picker).parts.field(), { onClick: _cache[1] || (_cache[1] = (...args) => unref(picker).handleFieldClick && unref(picker).handleFieldClick(...args)) }), [createVNode(_sfc_main$3, mergeProps({
117
+ createElementVNode("div", mergeProps(unref(picker).parts.field(), { onClick: _cache[1] || (_cache[1] = (...args) => unref(picker).handleFieldClick && unref(picker).handleFieldClick(...args)) }), [createVNode(_sfc_main$3, mergeProps(mergeProps({
109
118
  ..._ctx.$attrs,
110
119
  class: void 0,
111
- style: void 0,
112
- ...unref(picker).field()
113
- }, {
120
+ style: void 0
121
+ }, { ...unref(picker).field() }, fieldInput), {
114
122
  "model-value": state.text,
115
123
  variant: __props.fieldVariant ?? "outlined",
116
124
  label: __props.label,
117
125
  required: __props.required,
118
126
  disabled: __props.disabled,
119
- autocomplete: "off",
120
- "onUpdate:modelValue": _cache[0] || (_cache[0] = (text) => unref(picker).textInput(String(text))),
121
- onChange: unref(picker).commitText,
122
- onKeydown: unref(picker).handleFieldKeydown
127
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = (text) => unref(picker).textInput(String(text)))
123
128
  }), {
124
129
  "trailing-icon": withCtx(() => [createVNode(_sfc_main$2, mergeProps(unref(picker).parts.calendarButton(), {
125
130
  variant: "standard",
@@ -140,9 +145,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
140
145
  "variant",
141
146
  "label",
142
147
  "required",
143
- "disabled",
144
- "onChange",
145
- "onKeydown"
148
+ "disabled"
146
149
  ])], 16),
147
150
  unref(picker).submits() ? (openBlock(), createElementBlock("input", normalizeProps(mergeProps({ key: 0 }, unref(picker).parts.formValue())), null, 16)) : createCommentVNode("v-if", true),
148
151
  unref(picker).docked() ? (openBlock(), createElementBlock("div", mergeProps({