@rio-m3e/vue 0.6.2 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/README.md +99 -4
  2. package/dist/app-bar/AppBar.vue.d.ts +42 -0
  3. package/dist/app-bar/AppBar.vue.js +91 -0
  4. package/dist/badge/Badge.vue.d.ts +15 -0
  5. package/dist/badge/Badge.vue.js +28 -0
  6. package/dist/bottom-sheet/BottomSheet.vue.d.ts +34 -0
  7. package/dist/bottom-sheet/BottomSheet.vue.js +82 -0
  8. package/dist/browser/rio-vue.css +9130 -0
  9. package/dist/browser/rio-vue.global.js +600 -0
  10. package/dist/browser/rio-vue.js +600 -0
  11. package/dist/button/Button.vue.d.ts +1 -0
  12. package/dist/button/Button.vue.js +23 -2
  13. package/dist/button-group/ButtonGroup.vue.d.ts +6 -1
  14. package/dist/button-group/ButtonGroup.vue.js +27 -4
  15. package/dist/button-group/context.js +4 -2
  16. package/dist/card/Card.vue.d.ts +24 -0
  17. package/dist/card/Card.vue.js +44 -0
  18. package/dist/card/CardActions.vue.d.ts +14 -0
  19. package/dist/card/CardActions.vue.js +14 -0
  20. package/dist/card/CardContent.vue.d.ts +14 -0
  21. package/dist/card/CardContent.vue.js +14 -0
  22. package/dist/card/CardHeader.vue.d.ts +27 -0
  23. package/dist/card/CardHeader.vue.js +34 -0
  24. package/dist/card/CardMedia.vue.d.ts +14 -0
  25. package/dist/card/CardMedia.vue.js +14 -0
  26. package/dist/checkbox/Checkbox.vue.d.ts +1 -0
  27. package/dist/checkbox/Checkbox.vue.js +3 -0
  28. package/dist/chip/AssistChip.vue.d.ts +1 -0
  29. package/dist/chip/AssistChip.vue.js +3 -0
  30. package/dist/chip/ChipSet.vue.d.ts +1 -0
  31. package/dist/chip/ChipSet.vue.js +4 -1
  32. package/dist/chip/FilterChip.vue.d.ts +9 -2
  33. package/dist/chip/FilterChip.vue.js +12 -5
  34. package/dist/chip/InputChip.vue.d.ts +5 -1
  35. package/dist/chip/InputChip.vue.js +6 -2
  36. package/dist/chip/SuggestionChip.vue.d.ts +1 -0
  37. package/dist/chip/SuggestionChip.vue.js +3 -0
  38. package/dist/date-picker/DatePicker.vue.d.ts +27 -4
  39. package/dist/date-picker/DatePicker.vue.js +15 -5
  40. package/dist/date-picker/DatePickerCalendar.vue.js +11 -13
  41. package/dist/date-picker/DatePickerDialog.vue.d.ts +26 -3
  42. package/dist/date-picker/DatePickerDialog.vue.js +66 -21
  43. package/dist/date-picker/DateRangeCalendar.vue.js +17 -8
  44. package/dist/date-picker/DateRangePickerDialog.vue.d.ts +23 -3
  45. package/dist/date-picker/DateRangePickerDialog.vue.js +31 -17
  46. package/dist/dialog/Dialog.vue.d.ts +11 -2
  47. package/dist/dialog/Dialog.vue.js +35 -5
  48. package/dist/divider/Divider.vue.d.ts +5 -0
  49. package/dist/divider/Divider.vue.js +21 -0
  50. package/dist/fab/Fab.vue.d.ts +27 -0
  51. package/dist/fab/Fab.vue.js +70 -0
  52. package/dist/fab-menu/FabMenu.vue.d.ts +34 -0
  53. package/dist/fab-menu/FabMenu.vue.js +76 -0
  54. package/dist/fab-menu/FabMenuItem.vue.d.ts +22 -0
  55. package/dist/fab-menu/FabMenuItem.vue.js +29 -0
  56. package/dist/fab-menu/context.js +4 -0
  57. package/dist/icon/Icon.vue.d.ts +13 -0
  58. package/dist/icon/Icon.vue.js +30 -0
  59. package/dist/icon/icons.d.ts +12 -0
  60. package/dist/icon/icons.js +12 -0
  61. package/dist/icon-button/IconButton.vue.d.ts +1 -0
  62. package/dist/icon-button/IconButton.vue.js +23 -2
  63. package/dist/ime/composing.js +24 -0
  64. package/dist/index.d.ts +69 -39
  65. package/dist/index.js +69 -39
  66. package/dist/list/List.vue.d.ts +1 -0
  67. package/dist/list/List.vue.js +4 -1
  68. package/dist/list/ListItem.vue.d.ts +7 -1
  69. package/dist/list/ListItem.vue.js +4 -1
  70. package/dist/loading-indicator/LoadingIndicator.vue.d.ts +1 -0
  71. package/dist/loading-indicator/LoadingIndicator.vue.js +4 -1
  72. package/dist/menu/Menu.vue.d.ts +1 -0
  73. package/dist/menu/Menu.vue.js +12 -2
  74. package/dist/menu/MenuDivider.vue.d.ts +1 -0
  75. package/dist/menu/MenuDivider.vue.js +1 -0
  76. package/dist/menu/MenuGroup.vue.d.ts +1 -0
  77. package/dist/menu/MenuGroup.vue.js +1 -0
  78. package/dist/menu/MenuItem.vue.d.ts +1 -0
  79. package/dist/menu/MenuItem.vue.js +1 -0
  80. package/dist/menu/SubMenu.vue.d.ts +2 -1
  81. package/dist/menu/SubMenu.vue.js +7 -3
  82. package/dist/navigation-bar/NavigationBar.vue.d.ts +31 -0
  83. package/dist/navigation-bar/NavigationBar.vue.js +63 -0
  84. package/dist/navigation-bar/NavigationBarItem.vue.d.ts +40 -0
  85. package/dist/navigation-bar/NavigationBarItem.vue.js +84 -0
  86. package/dist/navigation-bar/context.js +3 -0
  87. package/dist/navigation-rail/NavigationRail.vue.d.ts +46 -0
  88. package/dist/navigation-rail/NavigationRail.vue.js +112 -0
  89. package/dist/navigation-rail/NavigationRailItem.vue.d.ts +41 -0
  90. package/dist/navigation-rail/NavigationRailItem.vue.js +85 -0
  91. package/dist/navigation-rail/NavigationRailSection.vue.d.ts +17 -0
  92. package/dist/navigation-rail/NavigationRailSection.vue.js +20 -0
  93. package/dist/navigation-rail/context.js +3 -0
  94. package/dist/overflow/OverflowItem.vue.d.ts +16 -0
  95. package/dist/overflow/OverflowItem.vue.js +24 -0
  96. package/dist/overflow/OverflowMenu.vue.js +94 -0
  97. package/dist/overflow/overflow.js +79 -0
  98. package/dist/progress/CircularProgress.vue.d.ts +2 -0
  99. package/dist/progress/CircularProgress.vue.js +6 -2
  100. package/dist/progress/LinearProgress.vue.d.ts +2 -0
  101. package/dist/progress/LinearProgress.vue.js +6 -2
  102. package/dist/radio/Radio.vue.d.ts +1 -0
  103. package/dist/radio/Radio.vue.js +4 -1
  104. package/dist/radio/RadioGroup.vue.d.ts +1 -0
  105. package/dist/radio/RadioGroup.vue.js +10 -2
  106. package/dist/rio/rio.d.ts +9 -1
  107. package/dist/rio/rio.js +11 -3
  108. package/dist/scroll-field/ScrollField.vue.d.ts +1 -0
  109. package/dist/scroll-field/ScrollField.vue.js +3 -0
  110. package/dist/search/Search.vue.d.ts +58 -0
  111. package/dist/search/Search.vue.js +161 -0
  112. package/dist/select/AfterOptions.vue.js +11 -0
  113. package/dist/select/Select.vue.d.ts +8 -3
  114. package/dist/select/Select.vue.js +42 -30
  115. package/dist/select/SelectOption.vue.d.ts +5 -1
  116. package/dist/select/SelectOption.vue.js +9 -5
  117. package/dist/side-sheet/SideSheet.vue.d.ts +43 -0
  118. package/dist/side-sheet/SideSheet.vue.js +103 -0
  119. package/dist/slider/RangeSlider.vue.d.ts +2 -0
  120. package/dist/slider/RangeSlider.vue.js +4 -0
  121. package/dist/slider/Slider.vue.d.ts +2 -0
  122. package/dist/slider/Slider.vue.js +4 -0
  123. package/dist/snackbar/Snackbar.vue.d.ts +31 -0
  124. package/dist/snackbar/Snackbar.vue.js +48 -0
  125. package/dist/snackbar/SnackbarHost.vue.d.ts +40 -0
  126. package/dist/snackbar/SnackbarHost.vue.js +110 -0
  127. package/dist/snackbar/snackbar.d.ts +16 -0
  128. package/dist/snackbar/snackbar.js +11 -0
  129. package/dist/split-button/SplitButton.vue.d.ts +4 -1
  130. package/dist/split-button/SplitButton.vue.js +7 -2
  131. package/dist/switch/Switch.vue.d.ts +1 -0
  132. package/dist/switch/Switch.vue.js +3 -0
  133. package/dist/tabs/Tab.vue.d.ts +19 -0
  134. package/dist/tabs/Tab.vue.js +66 -0
  135. package/dist/tabs/TabGroup.vue.d.ts +22 -0
  136. package/dist/tabs/TabGroup.vue.js +25 -0
  137. package/dist/tabs/TabPanel.vue.d.ts +15 -0
  138. package/dist/tabs/TabPanel.vue.js +20 -0
  139. package/dist/tabs/Tabs.vue.d.ts +32 -0
  140. package/dist/tabs/Tabs.vue.js +95 -0
  141. package/dist/tabs/context.js +5 -0
  142. package/dist/text-field/TextField.vue.d.ts +8 -2
  143. package/dist/text-field/TextField.vue.js +91 -47
  144. package/dist/time-picker/TimeInput.vue.d.ts +8 -1
  145. package/dist/time-picker/TimeInput.vue.js +6 -2
  146. package/dist/time-picker/TimePickerDialog.vue.d.ts +20 -4
  147. package/dist/time-picker/TimePickerDialog.vue.js +8 -3
  148. package/dist/time-picker/TimeScroll.vue.d.ts +16 -3
  149. package/dist/time-picker/TimeScroll.vue.js +8 -3
  150. package/dist/toolbar/FabPlace.vue.js +14 -0
  151. package/dist/toolbar/Toolbar.vue.d.ts +34 -0
  152. package/dist/toolbar/Toolbar.vue.js +115 -0
  153. package/dist/toolbar/context.js +3 -0
  154. package/package.json +6 -4
@@ -2,6 +2,7 @@ import { useRipple } from "../ripple/ripple.js";
2
2
  import { useChipSetItem } from "./context.js";
3
3
  import { createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderSlot, resolveDynamicComponent, unref, useSlots, useTemplateRef, withCtx } from "vue";
4
4
  import { createSuggestionChip } from "@rio-m3e/core";
5
+ import "@rio-m3e/styles/base/accent.css";
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/touch-target.css";
@@ -13,6 +14,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
13
14
  props: {
14
15
  elevated: { type: Boolean },
15
16
  href: {},
17
+ color: {},
16
18
  disabled: { type: Boolean },
17
19
  softDisabled: { type: Boolean }
18
20
  },
@@ -25,6 +27,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
25
27
  props: () => ({
26
28
  elevated: __props.elevated,
27
29
  href: __props.href,
30
+ color: __props.color,
28
31
  disabled: __props.disabled,
29
32
  softDisabled: __props.softDisabled
30
33
  }),
@@ -1,4 +1,5 @@
1
- import { DatePickerMessages, DatePickerVariant, TextFieldVariant } from "@rio-m3e/core";
1
+ import { AccentColor, DatePickerMessages, DatePickerVariant, DialogVariant, TextFieldVariant } from "@rio-m3e/core";
2
+ import "@rio-m3e/styles/base/accent.css";
2
3
  import "@rio-m3e/styles/base/reduced-motion.css";
3
4
  import "@rio-m3e/styles/base/anchored-position.css";
4
5
  import "@rio-m3e/styles/date-picker.css";
@@ -30,18 +31,40 @@ type __VLS_Props = {
30
31
  messages?: Partial<DatePickerMessages>;
31
32
  /** A Clear button at the start of Cancel and OK */
32
33
  clearable?: boolean;
34
+ /**
35
+ * The theme color it takes in place of the spec's accents: `'secondary'`, `'tertiary'`,
36
+ * `'error'`, or a static color of the theme. Its buttons take it too.
37
+ */
38
+ color?: AccentColor;
33
39
  /** Modal: what the dialog starts in, the calendar or the text input. */
34
40
  initialMode?: 'calendar' | 'input';
41
+ /**
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'`.
44
+ */
45
+ dialogVariant?: DialogVariant;
35
46
  };
36
47
  type __VLS_Slots = {
37
- /** The field's button that opens the calendar, and the dialog's switch back to it */
48
+ /**
49
+ * The field's button that opens the calendar, and the dialog's switch back to it. Without one,
50
+ * the `calendar` icon registered with `createRio`.
51
+ */
38
52
  'calendar-icon'?: () => unknown;
53
+ /** Without one, the `previous` icon registered with `createRio`. */
39
54
  'previous-icon'?: () => unknown;
55
+ /** Without one, the `next` icon registered with `createRio`. */
40
56
  'next-icon'?: () => unknown;
41
- /** The month and year buttons' arrow */
57
+ /**
58
+ * The month and year buttons' arrow. Without one, the `dropdown` icon registered with
59
+ * `createRio`.
60
+ */
42
61
  'dropdown-icon'?: () => unknown;
43
- /** Modal: the switch to the text input */
62
+ /**
63
+ * Modal: the switch to the text input. Without one, the `edit` icon registered with `createRio`.
64
+ */
44
65
  'edit-icon'?: () => unknown;
66
+ /** Modal, full-screen: the close icon, in place of the one the app registered (`close`) */
67
+ 'close-icon'?: () => unknown;
45
68
  };
46
69
  type __VLS_ModelProps = {
47
70
  /** The date, `YYYY-MM-DD`, with `v-model`. */
@@ -5,8 +5,10 @@ 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";
11
+ import "@rio-m3e/styles/base/accent.css";
10
12
  import "@rio-m3e/styles/base/reduced-motion.css";
11
13
  import "@rio-m3e/styles/base/anchored-position.css";
12
14
  import "@rio-m3e/styles/date-picker.css";
@@ -31,7 +33,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
31
33
  firstDayOfWeek: {},
32
34
  messages: {},
33
35
  clearable: { type: Boolean },
34
- initialMode: {}
36
+ color: {},
37
+ initialMode: {},
38
+ dialogVariant: {}
35
39
  }, {
36
40
  "modelValue": {},
37
41
  "modelModifiers": {},
@@ -64,7 +68,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
64
68
  min: props.min,
65
69
  max: props.max,
66
70
  locale: locale.value,
67
- clearable: props.clearable
71
+ clearable: props.clearable,
72
+ color: props.color
68
73
  }),
69
74
  isDateDisabled: (date) => !!props.isDateDisabled?.(date),
70
75
  messages: () => messages.value,
@@ -122,7 +127,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
122
127
  disabled: __props.disabled,
123
128
  onClick: unref(picker).toggle
124
129
  }), {
125
- default: withCtx(() => [renderSlot(_ctx.$slots, "calendar-icon")]),
130
+ default: withCtx(() => [renderSlot(_ctx.$slots, "calendar-icon", {}, () => [createVNode(_sfc_main$6, { alias: "calendar" })])]),
126
131
  _: 3
127
132
  }, 16, [
128
133
  "label",
@@ -212,13 +217,16 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
212
217
  "first-day-of-week": __props.firstDayOfWeek,
213
218
  messages: unref(messages),
214
219
  "initial-mode": __props.initialMode,
215
- clearable: __props.clearable
220
+ variant: __props.dialogVariant,
221
+ clearable: __props.clearable,
222
+ color: __props.color
216
223
  }, {
217
224
  "previous-icon": withCtx(() => [renderSlot(_ctx.$slots, "previous-icon")]),
218
225
  "next-icon": withCtx(() => [renderSlot(_ctx.$slots, "next-icon")]),
219
226
  "dropdown-icon": withCtx(() => [renderSlot(_ctx.$slots, "dropdown-icon")]),
220
227
  "edit-icon": withCtx(() => [renderSlot(_ctx.$slots, "edit-icon")]),
221
228
  "calendar-icon": withCtx(() => [renderSlot(_ctx.$slots, "calendar-icon")]),
229
+ "close-icon": withCtx(() => [renderSlot(_ctx.$slots, "close-icon")]),
222
230
  _: 3
223
231
  }, 8, [
224
232
  "modelValue",
@@ -230,7 +238,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
230
238
  "first-day-of-week",
231
239
  "messages",
232
240
  "initial-mode",
233
- "clearable"
241
+ "variant",
242
+ "clearable",
243
+ "color"
234
244
  ])], 16))
235
245
  ], 16);
236
246
  };
@@ -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
@@ -33,7 +34,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
33
34
  "update:focused",
34
35
  "update:view"
35
36
  ]),
36
- setup(__props, { expose: __expose, emit: __emit }) {
37
+ setup(__props, { emit: __emit }) {
37
38
  const props = __props;
38
39
  const month = useModel(__props, "month");
39
40
  const focused = useModel(__props, "focused");
@@ -75,9 +76,6 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
75
76
  });
76
77
  onUpdated(() => handle?.sync());
77
78
  onBeforeUnmount(() => handle?.detach());
78
- __expose({
79
- /** Focuses the date that takes the focus, or the option shown in a list. */
80
- focus: () => handle?.focus() });
81
79
  return (_ctx, _cache) => {
82
80
  return openBlock(), createElementBlock("div", mergeProps({
83
81
  ref_key: "root",
@@ -87,15 +85,15 @@ focus: () => handle?.focus() });
87
85
  variant: "standard",
88
86
  onClick: _cache[0] || (_cache[0] = ($event) => unref(calendar).goMonths(-1))
89
87
  }), {
90
- default: withCtx(() => [renderSlot(_ctx.$slots, "previous-icon")]),
88
+ default: withCtx(() => [renderSlot(_ctx.$slots, "previous-icon", {}, () => [createVNode(_sfc_main$2, { alias: "previous" })])]),
91
89
  _: 3
92
90
  }, 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)]]),
91
+ 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
92
  createVNode(_sfc_main$1, mergeProps(nav(unref(calendar).parts.nextMonth()), {
95
93
  variant: "standard",
96
94
  onClick: _cache[2] || (_cache[2] = ($event) => unref(calendar).goMonths(1))
97
95
  }), {
98
- default: withCtx(() => [renderSlot(_ctx.$slots, "next-icon")]),
96
+ default: withCtx(() => [renderSlot(_ctx.$slots, "next-icon", {}, () => [createVNode(_sfc_main$2, { alias: "next" })])]),
99
97
  _: 3
100
98
  }, 16)
101
99
  ]), createElementVNode("span", _hoisted_2, [
@@ -103,28 +101,28 @@ focus: () => handle?.focus() });
103
101
  variant: "standard",
104
102
  onClick: _cache[3] || (_cache[3] = ($event) => unref(calendar).goMonths(-12))
105
103
  }), {
106
- default: withCtx(() => [renderSlot(_ctx.$slots, "previous-icon")]),
104
+ default: withCtx(() => [renderSlot(_ctx.$slots, "previous-icon", {}, () => [createVNode(_sfc_main$2, { alias: "previous" })])]),
107
105
  _: 3
108
106
  }, 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)]]),
107
+ 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
108
  createVNode(_sfc_main$1, mergeProps(nav(unref(calendar).parts.nextYear()), {
111
109
  variant: "standard",
112
110
  onClick: _cache[5] || (_cache[5] = ($event) => unref(calendar).goMonths(12))
113
111
  }), {
114
- default: withCtx(() => [renderSlot(_ctx.$slots, "next-icon")]),
112
+ default: withCtx(() => [renderSlot(_ctx.$slots, "next-icon", {}, () => [createVNode(_sfc_main$2, { alias: "next" })])]),
115
113
  _: 3
116
114
  }, 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()), {
115
+ ])], 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
116
  variant: "standard",
119
117
  onClick: _cache[7] || (_cache[7] = ($event) => unref(calendar).goMonths(-1))
120
118
  }), {
121
- default: withCtx(() => [renderSlot(_ctx.$slots, "previous-icon")]),
119
+ default: withCtx(() => [renderSlot(_ctx.$slots, "previous-icon", {}, () => [createVNode(_sfc_main$2, { alias: "previous" })])]),
122
120
  _: 3
123
121
  }, 16), createVNode(_sfc_main$1, mergeProps(nav(unref(calendar).parts.nextMonth()), {
124
122
  variant: "standard",
125
123
  onClick: _cache[8] || (_cache[8] = ($event) => unref(calendar).goMonths(1))
126
124
  }), {
127
- default: withCtx(() => [renderSlot(_ctx.$slots, "next-icon")]),
125
+ default: withCtx(() => [renderSlot(_ctx.$slots, "next-icon", {}, () => [createVNode(_sfc_main$2, { alias: "next" })])]),
128
126
  _: 3
129
127
  }, 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
128
  return openBlock(), createElementBlock("th", mergeProps({ key: day }, { ref_for: true }, unref(calendar).parts.weekday(day)), toDisplayString(unref(calendar).weekdayText(day)), 17);
@@ -1,4 +1,5 @@
1
- import { DatePickerMessages } from "@rio-m3e/core";
1
+ import { AccentColor, DatePickerMessages, DialogVariant } from "@rio-m3e/core";
2
+ import "@rio-m3e/styles/base/accent.css";
2
3
  import "@rio-m3e/styles/base/focus-ring.css";
3
4
  import "@rio-m3e/styles/base/reduced-motion.css";
4
5
  import "@rio-m3e/styles/base/state-layer.css";
@@ -24,15 +25,37 @@ type __VLS_Props = {
24
25
  initialMode?: 'calendar' | 'input';
25
26
  /** A Clear button at the start of Cancel and OK */
26
27
  clearable?: boolean;
28
+ /**
29
+ * The theme color it takes in place of the spec's accents: `'secondary'`, `'tertiary'`,
30
+ * `'error'`, or a static color of the theme. Its buttons take it too.
31
+ */
32
+ color?: AccentColor;
33
+ /**
34
+ * `'basic'`, a basic dialog; `'full-screen'`, covering the window under a bar with a close button
35
+ * and Save, its months one under another; or `'adaptive'`, full-screen in a compact window,
36
+ * narrower than 600px, and basic in a wider one. Defaults to `'basic'`.
37
+ */
38
+ variant?: DialogVariant;
27
39
  };
28
40
  type __VLS_Slots = {
41
+ /** Without one, the `previous` icon registered with `createRio`. */
29
42
  'previous-icon'?: () => unknown;
43
+ /** Without one, the `next` icon registered with `createRio`. */
30
44
  'next-icon'?: () => unknown;
45
+ /** Without one, the `dropdown` icon registered with `createRio`. */
31
46
  'dropdown-icon'?: () => unknown;
32
- /** The mode button's icon in the calendar, which switches to the text input */
47
+ /**
48
+ * The mode button's icon in the calendar, which switches to the text input. Without one, the
49
+ * `edit` icon registered with `createRio`.
50
+ */
33
51
  'edit-icon'?: () => unknown;
34
- /** The mode button's icon in the text input, which switches to the calendar */
52
+ /**
53
+ * The mode button's icon in the text input, which switches to the calendar. Without one, the
54
+ * `calendar` icon registered with `createRio`.
55
+ */
35
56
  'calendar-icon'?: () => unknown;
57
+ /** The full-screen picker's close icon, in place of the one the app registered (`close`) */
58
+ 'close-icon'?: () => unknown;
36
59
  };
37
60
  type __VLS_ModelProps = {
38
61
  /** The chosen date, `YYYY-MM-DD`, with `v-model`. It changes on OK. */
@@ -4,8 +4,11 @@ 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 { 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
- import { attachDialog, createDatePickerDialog, initialDatePickerState } from "@rio-m3e/core";
7
+ import _sfc_main$5 from "./DateRangeCalendar.vue.js";
8
+ import _sfc_main$6 from "../icon/Icon.vue.js";
9
+ import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, normalizeProps, onBeforeUnmount, onMounted, onUpdated, openBlock, reactive, ref, renderSlot, toDisplayString, toHandlers, unref, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
10
+ import { attachDatePickerDialog, createDatePickerDialog, initialDatePickerState } from "@rio-m3e/core";
11
+ import "@rio-m3e/styles/base/accent.css";
9
12
  import "@rio-m3e/styles/base/focus-ring.css";
10
13
  import "@rio-m3e/styles/base/reduced-motion.css";
11
14
  import "@rio-m3e/styles/base/state-layer.css";
@@ -22,7 +25,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
22
25
  firstDayOfWeek: {},
23
26
  messages: {},
24
27
  initialMode: {},
25
- clearable: { type: Boolean }
28
+ clearable: { type: Boolean },
29
+ color: {},
30
+ variant: {}
26
31
  }, {
27
32
  "modelValue": {},
28
33
  "modelModifiers": {},
@@ -43,6 +48,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
43
48
  const messages = useMessages("datePicker", locale, () => props.messages);
44
49
  const state = reactive(initialDatePickerState(model.value, locale.value, props));
45
50
  const rendered = ref(open.value);
51
+ const compact = ref(false);
46
52
  const id = useId();
47
53
  const dialog = createDatePickerDialog({
48
54
  props: () => ({
@@ -52,12 +58,15 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
52
58
  max: props.max,
53
59
  locale: locale.value,
54
60
  clearable: props.clearable,
61
+ color: props.color,
55
62
  initialMode: props.initialMode,
63
+ variant: props.variant,
56
64
  rendered: rendered.value
57
65
  }),
58
66
  isDateDisabled: (date) => !!props.isDateDisabled?.(date),
59
67
  messages: () => messages.value,
60
68
  state: () => state,
69
+ compact: () => compact.value,
61
70
  ids: {
62
71
  title: `${id}-title`,
63
72
  headline: `${id}-headline`
@@ -73,31 +82,42 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
73
82
  rendered.value = true;
74
83
  });
75
84
  const root = useTemplateRef("root");
76
- const calendar = useTemplateRef("calendar");
77
85
  let handle;
78
86
  onMounted(() => {
79
- handle = attachDialog(root.value, {
87
+ handle = attachDatePickerDialog(root.value, {
80
88
  onOpenChange: (next) => open.value = next,
81
89
  onClosed: () => {
82
90
  if (!open.value) rendered.value = false;
83
91
  },
84
- initialFocus: () => root.value?.querySelector(state.mode === "calendar" ? "[data-date][tabindex=\"0\"]" : "input")
92
+ onCompactChange: (next) => compact.value = next
85
93
  });
86
94
  handle.sync(open.value);
87
95
  });
88
96
  watch(open, (next) => handle?.sync(next), { flush: "post" });
89
- watch(() => state.mode, async (next) => {
90
- await nextTick();
91
- if (!open.value) return;
92
- if (next === "calendar") calendar.value?.focus();
93
- else root.value?.querySelector("input")?.focus();
97
+ watch(() => dialog.fullScreen(), () => {
98
+ if (rendered.value) dialog.fullScreenChanged();
94
99
  });
100
+ onUpdated(() => handle?.update());
95
101
  onBeforeUnmount(() => handle?.detach());
96
102
  return (_ctx, _cache) => {
97
103
  return openBlock(), createElementBlock("dialog", mergeProps({
98
104
  ref_key: "root",
99
105
  ref: root
100
106
  }, unref(dialog).parts.root(), toHandlers(unref(keepPresses), true)), [rendered.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
107
+ unref(dialog).showsBar() ? (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 0 }, unref(dialog).parts.bar())), [createVNode(_sfc_main$2, {
108
+ label: unref(messages).close,
109
+ variant: "standard",
110
+ onClick: unref(dialog).cancel
111
+ }, {
112
+ default: withCtx(() => [renderSlot(_ctx.$slots, "close-icon", {}, () => [createVNode(_sfc_main$6, { alias: "close" })])]),
113
+ _: 3
114
+ }, 8, ["label", "onClick"]), createVNode(_sfc_main$1, {
115
+ variant: "text",
116
+ onClick: unref(dialog).confirm
117
+ }, {
118
+ default: withCtx(() => [createTextVNode(toDisplayString(unref(messages).save), 1)]),
119
+ _: 1
120
+ }, 8, ["onClick"])], 16)) : createCommentVNode("v-if", true),
101
121
  createElementVNode("div", normalizeProps(guardReactiveProps(unref(dialog).parts.header())), [
102
122
  createElementVNode("span", normalizeProps(guardReactiveProps(unref(dialog).parts.title())), toDisplayString(unref(messages).title), 17),
103
123
  createElementVNode("span", normalizeProps(guardReactiveProps(unref(dialog).parts.headline())), toDisplayString(unref(dialog).headline()), 17),
@@ -106,21 +126,46 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
106
126
  label: unref(dialog).modeButtonLabel(),
107
127
  onClick: unref(dialog).switchMode
108
128
  }, {
109
- default: withCtx(() => [state.mode === "calendar" ? renderSlot(_ctx.$slots, "edit-icon", {}, void 0, void 0, 0) : renderSlot(_ctx.$slots, "calendar-icon", {}, void 0, void 0, 1)]),
129
+ default: withCtx(() => [state.mode === "calendar" ? renderSlot(_ctx.$slots, "edit-icon", {}, () => [createVNode(_sfc_main$6, { alias: "edit" })], void 0, 0) : renderSlot(_ctx.$slots, "calendar-icon", {}, () => [createVNode(_sfc_main$6, { alias: "calendar" })], void 0, 1)]),
110
130
  _: 3
111
131
  }, 8, ["label", "onClick"])
112
132
  ], 16),
113
133
  createElementVNode("div", normalizeProps(guardReactiveProps(unref(dialog).parts.divider())), null, 16),
114
- unref(dialog).calendarMode() ? (openBlock(), createBlock(_sfc_main$4, {
115
- key: 0,
116
- ref_key: "calendar",
117
- ref: calendar,
134
+ unref(dialog).calendarMode() && unref(dialog).fullScreen() ? (openBlock(), createBlock(_sfc_main$5, {
135
+ key: 1,
136
+ focused: state.focused,
137
+ "onUpdate:focused": _cache[0] || (_cache[0] = ($event) => state.focused = $event),
138
+ "first-month": state.firstMonth,
139
+ "onUpdate:firstMonth": _cache[1] || (_cache[1] = ($event) => state.firstMonth = $event),
140
+ "last-month": state.lastMonth,
141
+ "onUpdate:lastMonth": _cache[2] || (_cache[2] = ($event) => state.lastMonth = $event),
142
+ selection: "single",
143
+ start: state.draft,
144
+ min: __props.min,
145
+ max: __props.max,
146
+ locale: unref(locale),
147
+ "first-day-of-week": __props.firstDayOfWeek,
148
+ "is-date-disabled": __props.isDateDisabled,
149
+ onSelect: unref(dialog).select
150
+ }, null, 8, [
151
+ "focused",
152
+ "first-month",
153
+ "last-month",
154
+ "start",
155
+ "min",
156
+ "max",
157
+ "locale",
158
+ "first-day-of-week",
159
+ "is-date-disabled",
160
+ "onSelect"
161
+ ])) : unref(dialog).calendarMode() ? (openBlock(), createBlock(_sfc_main$4, {
162
+ key: 2,
118
163
  month: state.month,
119
- "onUpdate:month": _cache[0] || (_cache[0] = ($event) => state.month = $event),
164
+ "onUpdate:month": _cache[3] || (_cache[3] = ($event) => state.month = $event),
120
165
  focused: state.focused,
121
- "onUpdate:focused": _cache[1] || (_cache[1] = ($event) => state.focused = $event),
166
+ "onUpdate:focused": _cache[4] || (_cache[4] = ($event) => state.focused = $event),
122
167
  view: state.view,
123
- "onUpdate:view": _cache[2] || (_cache[2] = ($event) => state.view = $event),
168
+ "onUpdate:view": _cache[5] || (_cache[5] = ($event) => state.view = $event),
124
169
  variant: "modal",
125
170
  selected: state.draft,
126
171
  min: __props.min,
@@ -148,12 +193,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
148
193
  "messages",
149
194
  "onSelect"
150
195
  ])) : createCommentVNode("v-if", true),
151
- unref(dialog).inputMode() ? (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 1 }, unref(dialog).parts.input())), [createVNode(_sfc_main$3, mergeProps(unref(dialog).field(), {
196
+ unref(dialog).inputMode() ? (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 3 }, unref(dialog).parts.input())), [createVNode(_sfc_main$3, mergeProps(unref(dialog).field(), {
152
197
  "model-value": state.text,
153
198
  variant: "outlined",
154
199
  label: unref(messages).fieldLabel,
155
200
  autocomplete: "off",
156
- "onUpdate:modelValue": _cache[3] || (_cache[3] = (text) => unref(dialog).textInput(String(text))),
201
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = (text) => unref(dialog).textInput(String(text))),
157
202
  onKeydown: unref(dialog).handleFieldKeydown
158
203
  }), null, 16, [
159
204
  "model-value",
@@ -1,5 +1,5 @@
1
1
  import { vRipple } from "../ripple/ripple.js";
2
- import { Fragment, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, normalizeProps, onBeforeUnmount, onMounted, onUpdated, openBlock, renderList, toDisplayString, unref, useModel, useTemplateRef, withDirectives } from "vue";
2
+ import { Fragment, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, normalizeProps, onBeforeUnmount, onMounted, onUpdated, openBlock, renderList, shallowRef, toDisplayString, unref, useModel, useTemplateRef, withDirectives } from "vue";
3
3
  import { attachRangeCalendar, createRangeCalendar } from "@rio-m3e/core";
4
4
  // src/date-picker/DateRangeCalendar.vue
5
5
  const _hoisted_1 = ["onClick"];
@@ -8,6 +8,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
8
8
  props: /*@__PURE__*/ mergeModels({
9
9
  start: {},
10
10
  end: {},
11
+ selection: {},
11
12
  min: {},
12
13
  max: {},
13
14
  locale: {},
@@ -26,19 +27,23 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
26
27
  "update:firstMonth",
27
28
  "update:lastMonth"
28
29
  ]),
29
- setup(__props, { expose: __expose, emit: __emit }) {
30
+ setup(__props, { emit: __emit }) {
30
31
  const props = __props;
31
32
  const focused = useModel(__props, "focused");
32
33
  const firstMonth = useModel(__props, "firstMonth");
33
34
  const lastMonth = useModel(__props, "lastMonth");
34
35
  const emit = __emit;
36
+ /** The months in view, as `attachRangeCalendar` reports them */
37
+ const inView = shallowRef();
35
38
  const calendar = createRangeCalendar({
36
39
  props: () => ({
37
40
  start: props.start,
38
41
  end: props.end,
42
+ selection: props.selection,
39
43
  focused: focused.value,
40
44
  firstMonth: firstMonth.value,
41
45
  lastMonth: lastMonth.value,
46
+ inView: inView.value,
42
47
  min: props.min,
43
48
  max: props.max,
44
49
  locale: props.locale,
@@ -59,14 +64,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
59
64
  calendar: () => calendar,
60
65
  focused: () => focused.value,
61
66
  onConfirm: (date) => emit("select", date, true),
62
- onEdge: calendar.extend
67
+ onEdge: calendar.extend,
68
+ onInViewChange: (next) => inView.value = next
63
69
  });
64
70
  });
65
71
  onUpdated(() => handle?.sync());
66
72
  onBeforeUnmount(() => handle?.detach());
67
- __expose({
68
- /** Focuses the date that takes the focus. */
69
- focus: () => handle?.focus() });
70
73
  return (_ctx, _cache) => {
71
74
  return openBlock(), createElementBlock("div", mergeProps({
72
75
  ref_key: "root",
@@ -74,14 +77,20 @@ focus: () => handle?.focus() });
74
77
  }, unref(calendar).parts.root()), [createElementVNode("div", normalizeProps(guardReactiveProps(unref(calendar).parts.weekdays())), [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(calendar).weekdays(), (day) => {
75
78
  return openBlock(), createElementBlock("span", mergeProps({ key: day }, { ref_for: true }, unref(calendar).parts.weekday(day)), toDisplayString(unref(calendar).weekdayText(day)), 17);
76
79
  }), 128))], 16), createElementVNode("div", normalizeProps(guardReactiveProps(unref(calendar).parts.months())), [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(calendar).months(), (month) => {
77
- return openBlock(), createElementBlock("div", mergeProps({ key: month }, { ref_for: true }, unref(calendar).parts.month(month)), [createElementVNode("div", mergeProps({ ref_for: true }, unref(calendar).parts.subhead(month)), toDisplayString(unref(calendar).monthText(month)), 17), createElementVNode("table", mergeProps({ ref_for: true }, unref(calendar).parts.grid(month)), [createElementVNode("tbody", null, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(calendar).weeks(month), (week) => {
80
+ return openBlock(), createElementBlock("div", mergeProps({ key: month }, { ref_for: true }, unref(calendar).parts.month(month)), [createElementVNode("div", mergeProps({ ref_for: true }, unref(calendar).parts.subhead(month)), toDisplayString(unref(calendar).monthText(month)), 17), unref(calendar).rendersDays(month) ? (openBlock(), createElementBlock("table", mergeProps({
81
+ key: 0,
82
+ ref_for: true
83
+ }, unref(calendar).parts.grid(month)), [createElementVNode("tbody", null, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(calendar).weeks(month), (week) => {
78
84
  return openBlock(), createElementBlock("tr", { key: week[0] }, [(openBlock(true), createElementBlock(Fragment, null, renderList(week, (date) => {
79
85
  return openBlock(), createElementBlock("td", mergeProps({ key: date }, { ref_for: true }, unref(calendar).parts.cell(date, month)), [unref(calendar).showsDay(date, month) ? withDirectives((openBlock(), createElementBlock("button", mergeProps({
80
86
  key: 0,
81
87
  ref_for: true
82
88
  }, unref(calendar).parts.day(date), { onClick: ($event) => unref(calendar).handleDayClick(date) }), [createTextVNode(toDisplayString(unref(calendar).dayText(date)), 1)], 16, _hoisted_1)), [[unref(vRipple)]]) : createCommentVNode("v-if", true)], 16);
83
89
  }), 128))]);
84
- }), 128))])], 16)], 16);
90
+ }), 128))])], 16)) : (openBlock(), createElementBlock("div", mergeProps({
91
+ key: 1,
92
+ ref_for: true
93
+ }, unref(calendar).parts.placeholder(month)), null, 16))], 16);
85
94
  }), 128))], 16)], 16);
86
95
  };
87
96
  }
@@ -1,4 +1,5 @@
1
- import { DatePickerMessages } from "@rio-m3e/core";
1
+ import { AccentColor, DatePickerMessages, DialogVariant } from "@rio-m3e/core";
2
+ import "@rio-m3e/styles/base/accent.css";
2
3
  import "@rio-m3e/styles/base/focus-ring.css";
3
4
  import "@rio-m3e/styles/base/reduced-motion.css";
4
5
  import "@rio-m3e/styles/base/state-layer.css";
@@ -21,12 +22,31 @@ type __VLS_Props = {
21
22
  initialMode?: 'calendar' | 'input';
22
23
  /** A Clear button at the start of Cancel and OK */
23
24
  clearable?: boolean;
25
+ /**
26
+ * The theme color it takes in place of the spec's accents: `'secondary'`, `'tertiary'`,
27
+ * `'error'`, or a static color of the theme. Its buttons take it too.
28
+ */
29
+ color?: AccentColor;
30
+ /**
31
+ * `'full-screen'`, covering the window under a bar with a close button and Save; `'basic'`, a
32
+ * basic dialog; or `'adaptive'`, full-screen in a compact window, narrower than 600px, and basic
33
+ * in a wider one. Defaults to `'adaptive'`.
34
+ */
35
+ variant?: DialogVariant;
24
36
  };
25
37
  type __VLS_Slots = {
26
- /** The mode button's icon in the calendar, which switches to the text input */
38
+ /**
39
+ * The mode button's icon in the calendar, which switches to the text input. Without one, the
40
+ * `edit` icon registered with `createRio`.
41
+ */
27
42
  'edit-icon'?: () => unknown;
28
- /** The mode button's icon in the text input, which switches to the calendar */
43
+ /**
44
+ * The mode button's icon in the text input, which switches to the calendar. Without one, the
45
+ * `calendar` icon registered with `createRio`.
46
+ */
29
47
  'calendar-icon'?: () => unknown;
48
+ /** The full-screen picker's close icon, in place of the one the app registered (`close`) */
49
+ 'close-icon'?: () => unknown;
30
50
  };
31
51
  type __VLS_ModelProps = {
32
52
  /** The range's start, `YYYY-MM-DD`, with `v-model:start`. It changes on OK. */