@rio-m3e/vue 0.6.3 → 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 (140) 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 +3 -2
  33. package/dist/chip/FilterChip.vue.js +3 -0
  34. package/dist/chip/InputChip.vue.d.ts +1 -0
  35. package/dist/chip/InputChip.vue.js +3 -0
  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 +16 -3
  39. package/dist/date-picker/DatePicker.vue.js +13 -4
  40. package/dist/date-picker/DatePickerCalendar.vue.js +1 -4
  41. package/dist/date-picker/DatePickerDialog.vue.d.ts +17 -3
  42. package/dist/date-picker/DatePickerDialog.vue.js +66 -22
  43. package/dist/date-picker/DateRangeCalendar.vue.js +17 -8
  44. package/dist/date-picker/DateRangePickerDialog.vue.d.ts +17 -3
  45. package/dist/date-picker/DateRangePickerDialog.vue.js +29 -16
  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-button/IconButton.vue.d.ts +1 -0
  58. package/dist/icon-button/IconButton.vue.js +23 -2
  59. package/dist/ime/composing.js +24 -0
  60. package/dist/index.d.ts +68 -40
  61. package/dist/index.js +68 -40
  62. package/dist/list/List.vue.d.ts +1 -0
  63. package/dist/list/List.vue.js +4 -1
  64. package/dist/list/ListItem.vue.d.ts +7 -1
  65. package/dist/list/ListItem.vue.js +4 -1
  66. package/dist/loading-indicator/LoadingIndicator.vue.d.ts +1 -0
  67. package/dist/loading-indicator/LoadingIndicator.vue.js +4 -1
  68. package/dist/menu/Menu.vue.d.ts +2 -2
  69. package/dist/menu/Menu.vue.js +11 -2
  70. package/dist/navigation-bar/NavigationBar.vue.d.ts +31 -0
  71. package/dist/navigation-bar/NavigationBar.vue.js +63 -0
  72. package/dist/navigation-bar/NavigationBarItem.vue.d.ts +40 -0
  73. package/dist/navigation-bar/NavigationBarItem.vue.js +84 -0
  74. package/dist/navigation-bar/context.js +3 -0
  75. package/dist/navigation-rail/NavigationRail.vue.d.ts +46 -0
  76. package/dist/navigation-rail/NavigationRail.vue.js +112 -0
  77. package/dist/navigation-rail/NavigationRailItem.vue.d.ts +41 -0
  78. package/dist/navigation-rail/NavigationRailItem.vue.js +85 -0
  79. package/dist/navigation-rail/NavigationRailSection.vue.d.ts +17 -0
  80. package/dist/navigation-rail/NavigationRailSection.vue.js +20 -0
  81. package/dist/navigation-rail/context.js +3 -0
  82. package/dist/overflow/OverflowItem.vue.d.ts +16 -0
  83. package/dist/overflow/OverflowItem.vue.js +24 -0
  84. package/dist/overflow/OverflowMenu.vue.js +94 -0
  85. package/dist/overflow/overflow.js +79 -0
  86. package/dist/progress/CircularProgress.vue.d.ts +1 -0
  87. package/dist/progress/CircularProgress.vue.js +5 -2
  88. package/dist/progress/LinearProgress.vue.d.ts +1 -0
  89. package/dist/progress/LinearProgress.vue.js +5 -2
  90. package/dist/radio/Radio.vue.d.ts +1 -0
  91. package/dist/radio/Radio.vue.js +4 -1
  92. package/dist/radio/RadioGroup.vue.d.ts +1 -0
  93. package/dist/radio/RadioGroup.vue.js +10 -2
  94. package/dist/scroll-field/ScrollField.vue.d.ts +1 -0
  95. package/dist/scroll-field/ScrollField.vue.js +3 -0
  96. package/dist/search/Search.vue.d.ts +58 -0
  97. package/dist/search/Search.vue.js +161 -0
  98. package/dist/select/AfterOptions.vue.js +11 -0
  99. package/dist/select/Select.vue.d.ts +5 -4
  100. package/dist/select/Select.vue.js +41 -31
  101. package/dist/select/SelectOption.vue.d.ts +4 -1
  102. package/dist/select/SelectOption.vue.js +8 -5
  103. package/dist/side-sheet/SideSheet.vue.d.ts +43 -0
  104. package/dist/side-sheet/SideSheet.vue.js +103 -0
  105. package/dist/slider/RangeSlider.vue.d.ts +1 -0
  106. package/dist/slider/RangeSlider.vue.js +3 -0
  107. package/dist/slider/Slider.vue.d.ts +1 -0
  108. package/dist/slider/Slider.vue.js +3 -0
  109. package/dist/snackbar/Snackbar.vue.d.ts +31 -0
  110. package/dist/snackbar/Snackbar.vue.js +48 -0
  111. package/dist/snackbar/SnackbarHost.vue.d.ts +40 -0
  112. package/dist/snackbar/SnackbarHost.vue.js +110 -0
  113. package/dist/snackbar/snackbar.d.ts +16 -0
  114. package/dist/snackbar/snackbar.js +11 -0
  115. package/dist/split-button/SplitButton.vue.d.ts +3 -2
  116. package/dist/split-button/SplitButton.vue.js +3 -0
  117. package/dist/switch/Switch.vue.d.ts +1 -0
  118. package/dist/switch/Switch.vue.js +3 -0
  119. package/dist/tabs/Tab.vue.d.ts +19 -0
  120. package/dist/tabs/Tab.vue.js +66 -0
  121. package/dist/tabs/TabGroup.vue.d.ts +22 -0
  122. package/dist/tabs/TabGroup.vue.js +25 -0
  123. package/dist/tabs/TabPanel.vue.d.ts +15 -0
  124. package/dist/tabs/TabPanel.vue.js +20 -0
  125. package/dist/tabs/Tabs.vue.d.ts +32 -0
  126. package/dist/tabs/Tabs.vue.js +95 -0
  127. package/dist/tabs/context.js +5 -0
  128. package/dist/text-field/TextField.vue.d.ts +8 -2
  129. package/dist/text-field/TextField.vue.js +91 -47
  130. package/dist/time-picker/TimeInput.vue.d.ts +7 -1
  131. package/dist/time-picker/TimeInput.vue.js +5 -2
  132. package/dist/time-picker/TimePickerDialog.vue.d.ts +9 -3
  133. package/dist/time-picker/TimePickerDialog.vue.js +5 -2
  134. package/dist/time-picker/TimeScroll.vue.d.ts +7 -1
  135. package/dist/time-picker/TimeScroll.vue.js +5 -2
  136. package/dist/toolbar/FabPlace.vue.js +14 -0
  137. package/dist/toolbar/Toolbar.vue.d.ts +34 -0
  138. package/dist/toolbar/Toolbar.vue.js +115 -0
  139. package/dist/toolbar/context.js +3 -0
  140. package/package.json +6 -4
@@ -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,8 +31,18 @@ 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
48
  /**
@@ -52,6 +63,8 @@ type __VLS_Slots = {
52
63
  * Modal: the switch to the text input. Without one, the `edit` icon registered with `createRio`.
53
64
  */
54
65
  'edit-icon'?: () => unknown;
66
+ /** Modal, full-screen: the close icon, in place of the one the app registered (`close`) */
67
+ 'close-icon'?: () => unknown;
55
68
  };
56
69
  type __VLS_ModelProps = {
57
70
  /** The date, `YYYY-MM-DD`, with `v-model`. */
@@ -61,11 +74,11 @@ type __VLS_ModelProps = {
61
74
  };
62
75
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
63
76
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
64
- "update:modelValue": (value: string | undefined) => any;
65
77
  "update:open": (value: boolean) => any;
78
+ "update:modelValue": (value: string | undefined) => any;
66
79
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
67
- "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
68
80
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
81
+ "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
69
82
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
70
83
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
71
84
  declare const _default: typeof __VLS_export;
@@ -8,6 +8,7 @@ import _sfc_main$5 from "./DatePickerDialog.vue.js";
8
8
  import _sfc_main$6 from "../icon/Icon.vue.js";
9
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";
10
10
  import { attachDatePickerMenu, createDatePicker, initialDatePickerState } from "@rio-m3e/core";
11
+ import "@rio-m3e/styles/base/accent.css";
11
12
  import "@rio-m3e/styles/base/reduced-motion.css";
12
13
  import "@rio-m3e/styles/base/anchored-position.css";
13
14
  import "@rio-m3e/styles/date-picker.css";
@@ -32,7 +33,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
32
33
  firstDayOfWeek: {},
33
34
  messages: {},
34
35
  clearable: { type: Boolean },
35
- initialMode: {}
36
+ color: {},
37
+ initialMode: {},
38
+ dialogVariant: {}
36
39
  }, {
37
40
  "modelValue": {},
38
41
  "modelModifiers": {},
@@ -65,7 +68,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
65
68
  min: props.min,
66
69
  max: props.max,
67
70
  locale: locale.value,
68
- clearable: props.clearable
71
+ clearable: props.clearable,
72
+ color: props.color
69
73
  }),
70
74
  isDateDisabled: (date) => !!props.isDateDisabled?.(date),
71
75
  messages: () => messages.value,
@@ -213,13 +217,16 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
213
217
  "first-day-of-week": __props.firstDayOfWeek,
214
218
  messages: unref(messages),
215
219
  "initial-mode": __props.initialMode,
216
- clearable: __props.clearable
220
+ variant: __props.dialogVariant,
221
+ clearable: __props.clearable,
222
+ color: __props.color
217
223
  }, {
218
224
  "previous-icon": withCtx(() => [renderSlot(_ctx.$slots, "previous-icon")]),
219
225
  "next-icon": withCtx(() => [renderSlot(_ctx.$slots, "next-icon")]),
220
226
  "dropdown-icon": withCtx(() => [renderSlot(_ctx.$slots, "dropdown-icon")]),
221
227
  "edit-icon": withCtx(() => [renderSlot(_ctx.$slots, "edit-icon")]),
222
228
  "calendar-icon": withCtx(() => [renderSlot(_ctx.$slots, "calendar-icon")]),
229
+ "close-icon": withCtx(() => [renderSlot(_ctx.$slots, "close-icon")]),
223
230
  _: 3
224
231
  }, 8, [
225
232
  "modelValue",
@@ -231,7 +238,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
231
238
  "first-day-of-week",
232
239
  "messages",
233
240
  "initial-mode",
234
- "clearable"
241
+ "variant",
242
+ "clearable",
243
+ "color"
235
244
  ])], 16))
236
245
  ], 16);
237
246
  };
@@ -34,7 +34,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
34
34
  "update:focused",
35
35
  "update:view"
36
36
  ]),
37
- setup(__props, { expose: __expose, emit: __emit }) {
37
+ setup(__props, { emit: __emit }) {
38
38
  const props = __props;
39
39
  const month = useModel(__props, "month");
40
40
  const focused = useModel(__props, "focused");
@@ -76,9 +76,6 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
76
76
  });
77
77
  onUpdated(() => handle?.sync());
78
78
  onBeforeUnmount(() => handle?.detach());
79
- __expose({
80
- /** Focuses the date that takes the focus, or the option shown in a list. */
81
- focus: () => handle?.focus() });
82
79
  return (_ctx, _cache) => {
83
80
  return openBlock(), createElementBlock("div", mergeProps({
84
81
  ref_key: "root",
@@ -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,6 +25,17 @@ 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 = {
29
41
  /** Without one, the `previous` icon registered with `createRio`. */
@@ -42,6 +54,8 @@ type __VLS_Slots = {
42
54
  * `calendar` icon registered with `createRio`.
43
55
  */
44
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;
45
59
  };
46
60
  type __VLS_ModelProps = {
47
61
  /** The chosen date, `YYYY-MM-DD`, with `v-model`. It changes on OK. */
@@ -51,11 +65,11 @@ type __VLS_ModelProps = {
51
65
  };
52
66
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
53
67
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
54
- "update:modelValue": (value: string | undefined) => any;
55
68
  "update:open": (value: boolean) => any;
69
+ "update:modelValue": (value: string | undefined) => any;
56
70
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
57
- "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
58
71
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
72
+ "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
59
73
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
60
74
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
61
75
  declare const _default: typeof __VLS_export;
@@ -4,9 +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 _sfc_main$5 from "../icon/Icon.vue.js";
8
- import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, nextTick, normalizeProps, onBeforeUnmount, onMounted, openBlock, reactive, ref, renderSlot, toDisplayString, toHandlers, unref, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
9
- 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";
10
12
  import "@rio-m3e/styles/base/focus-ring.css";
11
13
  import "@rio-m3e/styles/base/reduced-motion.css";
12
14
  import "@rio-m3e/styles/base/state-layer.css";
@@ -23,7 +25,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
23
25
  firstDayOfWeek: {},
24
26
  messages: {},
25
27
  initialMode: {},
26
- clearable: { type: Boolean }
28
+ clearable: { type: Boolean },
29
+ color: {},
30
+ variant: {}
27
31
  }, {
28
32
  "modelValue": {},
29
33
  "modelModifiers": {},
@@ -44,6 +48,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
44
48
  const messages = useMessages("datePicker", locale, () => props.messages);
45
49
  const state = reactive(initialDatePickerState(model.value, locale.value, props));
46
50
  const rendered = ref(open.value);
51
+ const compact = ref(false);
47
52
  const id = useId();
48
53
  const dialog = createDatePickerDialog({
49
54
  props: () => ({
@@ -53,12 +58,15 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
53
58
  max: props.max,
54
59
  locale: locale.value,
55
60
  clearable: props.clearable,
61
+ color: props.color,
56
62
  initialMode: props.initialMode,
63
+ variant: props.variant,
57
64
  rendered: rendered.value
58
65
  }),
59
66
  isDateDisabled: (date) => !!props.isDateDisabled?.(date),
60
67
  messages: () => messages.value,
61
68
  state: () => state,
69
+ compact: () => compact.value,
62
70
  ids: {
63
71
  title: `${id}-title`,
64
72
  headline: `${id}-headline`
@@ -74,31 +82,42 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
74
82
  rendered.value = true;
75
83
  });
76
84
  const root = useTemplateRef("root");
77
- const calendar = useTemplateRef("calendar");
78
85
  let handle;
79
86
  onMounted(() => {
80
- handle = attachDialog(root.value, {
87
+ handle = attachDatePickerDialog(root.value, {
81
88
  onOpenChange: (next) => open.value = next,
82
89
  onClosed: () => {
83
90
  if (!open.value) rendered.value = false;
84
91
  },
85
- initialFocus: () => root.value?.querySelector(state.mode === "calendar" ? "[data-date][tabindex=\"0\"]" : "input")
92
+ onCompactChange: (next) => compact.value = next
86
93
  });
87
94
  handle.sync(open.value);
88
95
  });
89
96
  watch(open, (next) => handle?.sync(next), { flush: "post" });
90
- watch(() => state.mode, async (next) => {
91
- await nextTick();
92
- if (!open.value) return;
93
- if (next === "calendar") calendar.value?.focus();
94
- else root.value?.querySelector("input")?.focus();
97
+ watch(() => dialog.fullScreen(), () => {
98
+ if (rendered.value) dialog.fullScreenChanged();
95
99
  });
100
+ onUpdated(() => handle?.update());
96
101
  onBeforeUnmount(() => handle?.detach());
97
102
  return (_ctx, _cache) => {
98
103
  return openBlock(), createElementBlock("dialog", mergeProps({
99
104
  ref_key: "root",
100
105
  ref: root
101
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),
102
121
  createElementVNode("div", normalizeProps(guardReactiveProps(unref(dialog).parts.header())), [
103
122
  createElementVNode("span", normalizeProps(guardReactiveProps(unref(dialog).parts.title())), toDisplayString(unref(messages).title), 17),
104
123
  createElementVNode("span", normalizeProps(guardReactiveProps(unref(dialog).parts.headline())), toDisplayString(unref(dialog).headline()), 17),
@@ -107,21 +126,46 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
107
126
  label: unref(dialog).modeButtonLabel(),
108
127
  onClick: unref(dialog).switchMode
109
128
  }, {
110
- default: withCtx(() => [state.mode === "calendar" ? renderSlot(_ctx.$slots, "edit-icon", {}, () => [createVNode(_sfc_main$5, { alias: "edit" })], void 0, 0) : renderSlot(_ctx.$slots, "calendar-icon", {}, () => [createVNode(_sfc_main$5, { alias: "calendar" })], void 0, 1)]),
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)]),
111
130
  _: 3
112
131
  }, 8, ["label", "onClick"])
113
132
  ], 16),
114
133
  createElementVNode("div", normalizeProps(guardReactiveProps(unref(dialog).parts.divider())), null, 16),
115
- unref(dialog).calendarMode() ? (openBlock(), createBlock(_sfc_main$4, {
116
- key: 0,
117
- ref_key: "calendar",
118
- 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,
119
163
  month: state.month,
120
- "onUpdate:month": _cache[0] || (_cache[0] = ($event) => state.month = $event),
164
+ "onUpdate:month": _cache[3] || (_cache[3] = ($event) => state.month = $event),
121
165
  focused: state.focused,
122
- "onUpdate:focused": _cache[1] || (_cache[1] = ($event) => state.focused = $event),
166
+ "onUpdate:focused": _cache[4] || (_cache[4] = ($event) => state.focused = $event),
123
167
  view: state.view,
124
- "onUpdate:view": _cache[2] || (_cache[2] = ($event) => state.view = $event),
168
+ "onUpdate:view": _cache[5] || (_cache[5] = ($event) => state.view = $event),
125
169
  variant: "modal",
126
170
  selected: state.draft,
127
171
  min: __props.min,
@@ -149,12 +193,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
149
193
  "messages",
150
194
  "onSelect"
151
195
  ])) : createCommentVNode("v-if", true),
152
- 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(), {
153
197
  "model-value": state.text,
154
198
  variant: "outlined",
155
199
  label: unref(messages).fieldLabel,
156
200
  autocomplete: "off",
157
- "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))),
158
202
  onKeydown: unref(dialog).handleFieldKeydown
159
203
  }), null, 16, [
160
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,6 +22,17 @@ 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
38
  /**
@@ -33,6 +45,8 @@ type __VLS_Slots = {
33
45
  * `calendar` icon registered with `createRio`.
34
46
  */
35
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;
36
50
  };
37
51
  type __VLS_ModelProps = {
38
52
  /** The range's start, `YYYY-MM-DD`, with `v-model:start`. It changes on OK. */
@@ -44,13 +58,13 @@ type __VLS_ModelProps = {
44
58
  };
45
59
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
46
60
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
61
+ "update:open": (value: boolean) => any;
47
62
  "update:start": (value: string | undefined) => any;
48
63
  "update:end": (value: string | undefined) => any;
49
- "update:open": (value: boolean) => any;
50
64
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
65
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
51
66
  "onUpdate:start"?: ((value: string | undefined) => any) | undefined;
52
67
  "onUpdate:end"?: ((value: string | undefined) => any) | undefined;
53
- "onUpdate:open"?: ((value: boolean) => any) | undefined;
54
68
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
55
69
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
56
70
  declare const _default: typeof __VLS_export;
@@ -5,8 +5,9 @@ import { keepPresses } from "../overlay/presses.js";
5
5
  import _sfc_main$3 from "../text-field/TextField.vue.js";
6
6
  import _sfc_main$4 from "./DateRangeCalendar.vue.js";
7
7
  import _sfc_main$5 from "../icon/Icon.vue.js";
8
- import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, nextTick, normalizeProps, onBeforeUnmount, onMounted, openBlock, reactive, ref, renderSlot, toDisplayString, toHandlers, unref, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
9
- import { attachDialog, createDateRangePickerDialog, initialDateRangePickerState } from "@rio-m3e/core";
8
+ 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";
9
+ import { attachDatePickerDialog, createDateRangePickerDialog, initialDateRangePickerState } from "@rio-m3e/core";
10
+ import "@rio-m3e/styles/base/accent.css";
10
11
  import "@rio-m3e/styles/base/focus-ring.css";
11
12
  import "@rio-m3e/styles/base/reduced-motion.css";
12
13
  import "@rio-m3e/styles/base/state-layer.css";
@@ -23,7 +24,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
23
24
  firstDayOfWeek: {},
24
25
  messages: {},
25
26
  initialMode: {},
26
- clearable: { type: Boolean }
27
+ clearable: { type: Boolean },
28
+ color: {},
29
+ variant: {}
27
30
  }, {
28
31
  "start": {},
29
32
  "startModifiers": {},
@@ -52,6 +55,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
52
55
  const messages = useMessages("datePicker", locale, () => props.messages);
53
56
  const state = reactive(initialDateRangePickerState(start.value, end.value, locale.value, props));
54
57
  const rendered = ref(open.value);
58
+ const compact = ref(false);
55
59
  const id = useId();
56
60
  const dialog = createDateRangePickerDialog({
57
61
  props: () => ({
@@ -62,12 +66,15 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
62
66
  max: props.max,
63
67
  locale: locale.value,
64
68
  clearable: props.clearable,
69
+ color: props.color,
65
70
  initialMode: props.initialMode,
71
+ variant: props.variant,
66
72
  rendered: rendered.value
67
73
  }),
68
74
  isDateDisabled: (date) => !!props.isDateDisabled?.(date),
69
75
  messages: () => messages.value,
70
76
  state: () => state,
77
+ compact: () => compact.value,
71
78
  ids: {
72
79
  title: `${id}-title`,
73
80
  headline: `${id}-headline`
@@ -86,31 +93,39 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
86
93
  rendered.value = true;
87
94
  });
88
95
  const root = useTemplateRef("root");
89
- const calendar = useTemplateRef("calendar");
90
96
  let handle;
91
97
  onMounted(() => {
92
- handle = attachDialog(root.value, {
98
+ handle = attachDatePickerDialog(root.value, {
93
99
  onOpenChange: (next) => open.value = next,
94
100
  onClosed: () => {
95
101
  if (!open.value) rendered.value = false;
96
102
  },
97
- initialFocus: () => root.value?.querySelector(state.mode === "calendar" ? "[data-date][tabindex=\"0\"]" : "input")
103
+ onCompactChange: (next) => compact.value = next
98
104
  });
99
105
  handle.sync(open.value);
100
106
  });
101
107
  watch(open, (next) => handle?.sync(next), { flush: "post" });
102
- watch(() => state.mode, async (next) => {
103
- await nextTick();
104
- if (!open.value) return;
105
- if (next === "calendar") calendar.value?.focus();
106
- else root.value?.querySelector("input")?.focus();
107
- });
108
+ onUpdated(() => handle?.update());
108
109
  onBeforeUnmount(() => handle?.detach());
109
110
  return (_ctx, _cache) => {
110
111
  return openBlock(), createElementBlock("dialog", mergeProps({
111
112
  ref_key: "root",
112
113
  ref: root
113
114
  }, unref(dialog).parts.root(), toHandlers(unref(keepPresses), true)), [rendered.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
115
+ unref(dialog).showsBar() ? (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 0 }, unref(dialog).parts.bar())), [createVNode(_sfc_main$2, {
116
+ label: unref(messages).close,
117
+ variant: "standard",
118
+ onClick: unref(dialog).cancel
119
+ }, {
120
+ default: withCtx(() => [renderSlot(_ctx.$slots, "close-icon", {}, () => [createVNode(_sfc_main$5, { alias: "close" })])]),
121
+ _: 3
122
+ }, 8, ["label", "onClick"]), createVNode(_sfc_main$1, {
123
+ variant: "text",
124
+ onClick: unref(dialog).confirm
125
+ }, {
126
+ default: withCtx(() => [createTextVNode(toDisplayString(unref(messages).save), 1)]),
127
+ _: 1
128
+ }, 8, ["onClick"])], 16)) : createCommentVNode("v-if", true),
114
129
  createElementVNode("div", normalizeProps(guardReactiveProps(unref(dialog).parts.header())), [
115
130
  createElementVNode("span", normalizeProps(guardReactiveProps(unref(dialog).parts.title())), toDisplayString(unref(messages).rangeTitle), 17),
116
131
  createElementVNode("span", normalizeProps(guardReactiveProps(unref(dialog).parts.headline())), toDisplayString(unref(dialog).headline()), 17),
@@ -125,9 +140,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
125
140
  ], 16),
126
141
  createElementVNode("div", normalizeProps(guardReactiveProps(unref(dialog).parts.divider())), null, 16),
127
142
  unref(dialog).calendarMode() ? (openBlock(), createBlock(_sfc_main$4, {
128
- key: 0,
129
- ref_key: "calendar",
130
- ref: calendar,
143
+ key: 1,
131
144
  focused: state.focused,
132
145
  "onUpdate:focused": _cache[0] || (_cache[0] = ($event) => state.focused = $event),
133
146
  "first-month": state.firstMonth,
@@ -155,7 +168,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
155
168
  "is-date-disabled",
156
169
  "onSelect"
157
170
  ])) : createCommentVNode("v-if", true),
158
- unref(dialog).inputMode() ? (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 1 }, unref(dialog).parts.input())), [createVNode(_sfc_main$3, mergeProps(unref(dialog).startField(), {
171
+ unref(dialog).inputMode() ? (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 2 }, unref(dialog).parts.input())), [createVNode(_sfc_main$3, mergeProps(unref(dialog).startField(), {
159
172
  "model-value": state.startText,
160
173
  variant: "outlined",
161
174
  label: unref(messages).startDate,
@@ -1,10 +1,14 @@
1
- import { DialogCancelEvent, DialogProps } from "@rio-m3e/core";
1
+ import { DialogCancelEvent, DialogMessages, DialogProps } from "@rio-m3e/core";
2
2
  import "@rio-m3e/styles/base/focus-ring.css";
3
3
  import "@rio-m3e/styles/base/reduced-motion.css";
4
4
  import "@rio-m3e/styles/dialog.css";
5
5
  interface Props extends Omit<DialogProps, 'open'> {
6
6
  /** States what the dialog is for, and names it. Without it, give the dialog an `aria-label`. */
7
7
  headline?: string;
8
+ /** A language tag, for the close and Cancel buttons. Without it, the one provided, or the page's. */
9
+ locale?: string;
10
+ /** Replaces the close and Cancel buttons' names. */
11
+ messages?: Partial<DialogMessages>;
8
12
  }
9
13
  type __VLS_Props = Props;
10
14
  type __VLS_Slots = {
@@ -12,8 +16,13 @@ type __VLS_Slots = {
12
16
  default?: () => unknown;
13
17
  /** An icon above the headline, which centers both */
14
18
  icon?: () => unknown;
15
- /** Up to two buttons: the dismissing one first, then the confirming one. */
19
+ /**
20
+ * Up to two buttons: the dismissing one first, then the confirming one. A full-screen or adaptive
21
+ * dialog draws its own close or Cancel button, so give it only the confirming one.
22
+ */
16
23
  actions?: () => unknown;
24
+ /** The full-screen dialog's close icon, in place of the one the app registered (`close`) */
25
+ 'close-icon'?: () => unknown;
17
26
  };
18
27
  type __VLS_ModelProps = {
19
28
  /** Whether the dialog is shown, with `v-model:open`. */