@m3ui-vue/m3ui-vue 1.9.0 → 1.10.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.
- package/README.md +2 -0
- package/dist/API.md +305 -12
- package/dist/{MButton-LiZRRP4h.js → MButton-B9RCM06i.js} +4 -4
- package/dist/MButton-B9RCM06i.js.map +1 -0
- package/dist/{MColorPickerModal-IjciC8zh.js → MColorPickerModal-ChRtcZOo.js} +5 -5
- package/dist/{MColorPickerModal-IjciC8zh.js.map → MColorPickerModal-ChRtcZOo.js.map} +1 -1
- package/dist/{MDialog-BLpfgIA3.js → MDialog-dk07tify.js} +3 -3
- package/dist/{MDialog-BLpfgIA3.js.map → MDialog-dk07tify.js.map} +1 -1
- package/dist/{MIconButton-CNjN0xwW.js → MIconButton-CrBPZidd.js} +46 -39
- package/dist/MIconButton-CrBPZidd.js.map +1 -0
- package/dist/MListItem-h9H223vx.js +1239 -0
- package/dist/MListItem-h9H223vx.js.map +1 -0
- package/dist/{MLoadingIndicator-dejdXpu8.js → MLoadingIndicator-YTV1Ov5w.js} +2 -2
- package/dist/{MLoadingIndicator-dejdXpu8.js.map → MLoadingIndicator-YTV1Ov5w.js.map} +1 -1
- package/dist/MMenuItem-US0Zbglq.js +596 -0
- package/dist/MMenuItem-US0Zbglq.js.map +1 -0
- package/dist/{MPdfViewer-B5Q9Xs9d.js → MPdfViewer-DL9mRsd2.js} +8 -8
- package/dist/{MPdfViewer-B5Q9Xs9d.js.map → MPdfViewer-DL9mRsd2.js.map} +1 -1
- package/dist/MProgressBar-BzZMxq7M.js +254 -0
- package/dist/MProgressBar-BzZMxq7M.js.map +1 -0
- package/dist/{MSeekBar-NwkuAzx-.js → MSeekBar-JFZcoJ8y.js} +2 -2
- package/dist/{MSeekBar-NwkuAzx-.js.map → MSeekBar-JFZcoJ8y.js.map} +1 -1
- package/dist/MSegmentedButton-DMou-8sG.js +106 -0
- package/dist/MSegmentedButton-DMou-8sG.js.map +1 -0
- package/dist/{MSignaturePad-Bqr-1R9f.js → MSignaturePad-WuvE_Cyl.js} +2 -2
- package/dist/{MSignaturePad-Bqr-1R9f.js.map → MSignaturePad-WuvE_Cyl.js.map} +1 -1
- package/dist/{MSlider-B7dIcHVn.js → MSlider-7TzhFHKS.js} +3 -3
- package/dist/{MSlider-B7dIcHVn.js.map → MSlider-7TzhFHKS.js.map} +1 -1
- package/dist/{MSpinner-CXLY7lWw.js → MSpinner-CkIVBuGE.js} +2 -2
- package/dist/{MSpinner-CXLY7lWw.js.map → MSpinner-CkIVBuGE.js.map} +1 -1
- package/dist/{MTextField-CryHMs8-.js → MTextField-B6_iOczK.js} +3 -3
- package/dist/{MTextField-CryHMs8-.js.map → MTextField-B6_iOczK.js.map} +1 -1
- package/dist/{_useFieldValidation-CvZnZfl-.js → _useFieldValidation-COBJ1tWr.js} +2 -2
- package/dist/{_useFieldValidation-CvZnZfl-.js.map → _useFieldValidation-COBJ1tWr.js.map} +1 -1
- package/dist/api.json +1 -1
- package/dist/code-editor.js +2 -2
- package/dist/components/MAvatarGroup.vue.d.ts +48 -0
- package/dist/components/MCommentThread.vue.d.ts +42 -0
- package/dist/components/MContainer.vue.d.ts +1 -1
- package/dist/components/MContextMenu.vue.d.ts +7 -0
- package/dist/components/MDataTable.vue.d.ts +7 -0
- package/dist/components/MList.vue.d.ts +11 -0
- package/dist/components/MListDetail.vue.d.ts +22 -0
- package/dist/components/MListItem.vue.d.ts +9 -1
- package/dist/components/MMenu.vue.d.ts +10 -0
- package/dist/components/MReactions.vue.d.ts +35 -0
- package/dist/components/MScaffold.vue.d.ts +45 -0
- package/dist/components/MScrollField.vue.d.ts +4 -1
- package/dist/components/MScrollable.vue.d.ts +5 -4
- package/dist/components/MSpreadsheet.vue.d.ts +1 -1
- package/dist/components/MSupportingPane.vue.d.ts +22 -0
- package/dist/components/MTable.vue.d.ts +7 -0
- package/dist/components/MVirtualList.vue.d.ts +51 -0
- package/dist/components/_MComment.vue.d.ts +8 -0
- package/dist/components/_MCommentComposer.vue.d.ts +23 -0
- package/dist/components/_commentThread.d.ts +41 -0
- package/dist/composables/_menuGroups.d.ts +7 -0
- package/dist/composables/_usePaneResize.d.ts +45 -0
- package/dist/composables/useLocale.d.ts +22 -0
- package/dist/composables/useUndo.d.ts +45 -0
- package/dist/directives/vRipple.d.ts +4 -0
- package/dist/draw.js +4 -4
- package/dist/flow.js +2 -2
- package/dist/gantt.js +3 -3
- package/dist/index.d.ts +12 -0
- package/dist/locales/index.js +128 -0
- package/dist/locales/index.js.map +1 -1
- package/dist/m3ui-vue.css +1 -1
- package/dist/m3ui.js +11027 -9741
- package/dist/m3ui.js.map +1 -1
- package/dist/map.js +7 -7
- package/dist/media.js +6 -6
- package/dist/pdf-sign.js +8 -8
- package/dist/pdf.js +1 -1
- package/dist/plugin.d.ts +6 -0
- package/dist/rich-text-editor.js +6 -6
- package/dist/styles/theme.css +43 -6
- package/dist/styles.css +1 -1
- package/dist/{useLocale-ybIju59R.js → useLocale-YRaOT12S.js} +17 -1
- package/dist/useLocale-YRaOT12S.js.map +1 -0
- package/package.json +1 -1
- package/src/__tests__/MListItemNestedControl.test.ts +1 -1
- package/src/__tests__/MListMultiSelect.test.ts +132 -0
- package/src/__tests__/MMenu.test.ts +152 -0
- package/src/__tests__/MProgressBar.test.ts +84 -1
- package/src/__tests__/MScrollField.test.ts +16 -0
- package/src/__tests__/MScrollable.test.ts +61 -5
- package/src/__tests__/MSwitch.test.ts +83 -0
- package/src/__tests__/adaptiveLayouts.test.ts +167 -0
- package/src/__tests__/backlogComponents.test.ts +249 -0
- package/src/__tests__/popupPosition.test.ts +4 -0
- package/src/__tests__/stateLayerOpacity.test.ts +65 -0
- package/src/__tests__/tableCheckboxReveal.test.ts +35 -0
- package/src/__tests__/vRipple.test.ts +62 -0
- package/src/components/MAvatarGroup.vue +150 -0
- package/src/components/MButton.vue +1 -1
- package/src/components/MButtonGroup.vue +1 -1
- package/src/components/MCard.vue +4 -2
- package/src/components/MCheckbox.vue +13 -2
- package/src/components/MChip.vue +7 -4
- package/src/components/MCircleProgressBar.vue +69 -21
- package/src/components/MCommentThread.vue +131 -0
- package/src/components/MContextMenu.vue +18 -31
- package/src/components/MDataTable.vue +16 -6
- package/src/components/MFab.vue +2 -2
- package/src/components/MIconButton.vue +2 -2
- package/src/components/MList.vue +163 -5
- package/src/components/MListDetail.vue +100 -14
- package/src/components/MListItem.vue +66 -6
- package/src/components/MMenu.vue +48 -41
- package/src/components/MMenuItem.vue +48 -14
- package/src/components/MProgressBar.vue +183 -50
- package/src/components/MRadio.vue +14 -2
- package/src/components/MReactions.vue +161 -0
- package/src/components/MScaffold.vue +213 -0
- package/src/components/MScrollField.vue +15 -12
- package/src/components/MScrollable.vue +187 -46
- package/src/components/MSegmentedButton.vue +3 -1
- package/src/components/MSupportingPane.vue +102 -12
- package/src/components/MSwitch.vue +92 -9
- package/src/components/MTable.vue +17 -4
- package/src/components/MTimeScroll.vue +1 -1
- package/src/components/MToggleButton.vue +2 -2
- package/src/components/MVirtualList.vue +222 -0
- package/src/components/_MComment.vue +142 -0
- package/src/components/_MCommentComposer.vue +68 -0
- package/src/components/_commentThread.ts +46 -0
- package/src/composables/_menuGroups.ts +31 -0
- package/src/composables/_usePaneResize.ts +271 -0
- package/src/composables/useLocale.ts +38 -0
- package/src/composables/useUndo.ts +170 -0
- package/src/directives/vRipple.ts +18 -5
- package/src/index.ts +12 -0
- package/src/locales/ar.ts +16 -0
- package/src/locales/de.ts +16 -0
- package/src/locales/es.ts +16 -0
- package/src/locales/fr.ts +16 -0
- package/src/locales/ja.ts +16 -0
- package/src/locales/ko.ts +16 -0
- package/src/locales/pt.ts +16 -0
- package/src/locales/zh.ts +16 -0
- package/src/plugin.ts +7 -0
- package/src/styles/theme.css +43 -6
- package/dist/MButton-LiZRRP4h.js.map +0 -1
- package/dist/MIconButton-CNjN0xwW.js.map +0 -1
- package/dist/MListItem-BBQ-6i3v.js +0 -991
- package/dist/MListItem-BBQ-6i3v.js.map +0 -1
- package/dist/MMenuItem-E31tMzOt.js +0 -577
- package/dist/MMenuItem-E31tMzOt.js.map +0 -1
- package/dist/MProgressBar-CPrZhQbA.js +0 -179
- package/dist/MProgressBar-CPrZhQbA.js.map +0 -1
- package/dist/MSegmentedButton-DZuZLBML.js +0 -105
- package/dist/MSegmentedButton-DZuZLBML.js.map +0 -1
- package/dist/useLocale-ybIju59R.js.map +0 -1
package/README.md
CHANGED
|
@@ -359,6 +359,8 @@ UI components come from @m3ui-vue/m3ui-vue; its API is in node_modules/@m3ui-vue
|
|
|
359
359
|
| `usePageProgress()` | Shared state for `MPageProgress`'s `start()`/`set()`/`done()` — drive it by hand or let the component auto-wire vue-router |
|
|
360
360
|
| `useSpring()` | Animate numbers on a real spring with M3's motion specs (`motionSprings`), like the components do |
|
|
361
361
|
|
|
362
|
+
**Spacing tokens:** M3's 8dp spacing scale (`MeasurementTokens`, `space-0` to `space-900`, `space-100` = 8px) is part of Tailwind's spacing, so every spacing utility takes it: `p-space-200`, `gap-space-100`, `ms-space-300`; in your own CSS, `var(--spacing-space-200)`.
|
|
363
|
+
|
|
362
364
|
**Motion tokens:** M3's easings are Tailwind `ease-*` utilities (`ease-emphasized`, `ease-emphasized-decelerate`…) and its durations CSS variables (`duration-(--duration-medium-2)`); in JS, `motionSprings` (Standard and Expressive), `motionEasings`, `motionDurations` and `cubicBezier()`.
|
|
363
365
|
|
|
364
366
|
## Color Palettes
|
package/dist/API.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @m3ui-vue/m3ui-vue 1.
|
|
1
|
+
# @m3ui-vue/m3ui-vue 1.10.0 — API reference
|
|
2
2
|
|
|
3
3
|
Material Design 3 components for Vue 3 + Tailwind CSS v4. Generated from the source by
|
|
4
4
|
`scripts/generate-api.mjs`; full docs with live demos at https://m3ui.dev.
|
|
@@ -371,6 +371,36 @@ Props:
|
|
|
371
371
|
- `fallback?: string` — Custom text shown when name is not provided (e.g. 'AJ'). Falls back to '?' if neither is set
|
|
372
372
|
- `size?: number = 40` — Avatar size in px — also scales the font size proportionally (40%)
|
|
373
373
|
|
|
374
|
+
### MAvatarGroup
|
|
375
|
+
|
|
376
|
+
A stack of overlapping avatars for the people on something (a document's editors, a chat's members, who's here now), with an optional presence dot on each and a "+N" for the rest. Hovering or focusing the stack spreads it out; each avatar names its person in a tooltip. Not an M3 spec component: built from M3's avatar and badge pieces.
|
|
377
|
+
|
|
378
|
+
Props:
|
|
379
|
+
- `items: AvatarGroupItem[]` — The people, front of the stack first
|
|
380
|
+
- `max?: number = 4` — Most avatars shown; the rest collapse into "+N"
|
|
381
|
+
- `size?: number = 40` — Avatar diameter in px
|
|
382
|
+
- `spread?: boolean = true` — Spread the stack out on hover and focus
|
|
383
|
+
- `ringColor?: string` — Color of the ring that separates overlapping avatars: the surface they sit on (defaults to surface)
|
|
384
|
+
|
|
385
|
+
Events:
|
|
386
|
+
- `more(items: AvatarGroupItem[])` — The "+N" was pressed, with the people it stands for
|
|
387
|
+
|
|
388
|
+
Slots:
|
|
389
|
+
- `#avatar { item: AvatarGroupItem; size: number; }` — Draws one avatar instead of the photo or initials: `{ item, size }`
|
|
390
|
+
|
|
391
|
+
```ts
|
|
392
|
+
export interface AvatarGroupItem {
|
|
393
|
+
/** The person's name: the tooltip, the initials without a photo, and the alt text */
|
|
394
|
+
name: string
|
|
395
|
+
/** Photo URL; without it, initials */
|
|
396
|
+
src?: string
|
|
397
|
+
/** Presence dot: online (green), away, busy (red) or offline */
|
|
398
|
+
status?: 'online' | 'away' | 'busy' | 'offline'
|
|
399
|
+
/** Container color of the initials (defaults to one picked from the name) */
|
|
400
|
+
color?: 'primary' | 'secondary' | 'tertiary'
|
|
401
|
+
}
|
|
402
|
+
```
|
|
403
|
+
|
|
374
404
|
### MBadge
|
|
375
405
|
|
|
376
406
|
A small numeric or dot indicator overlaid on another element, such as an icon button or avatar.
|
|
@@ -1154,6 +1184,27 @@ export interface CommandItem {
|
|
|
1154
1184
|
}
|
|
1155
1185
|
```
|
|
1156
1186
|
|
|
1187
|
+
### MCommentThread
|
|
1188
|
+
|
|
1189
|
+
A comment section: comments with their replies nested under a thread line, a box to write a new one, and on each comment Reply, emoji reactions (`MReactions`) and, on your own (`mine`), Edit and Delete. Long reply chains collapse behind "View N replies"; past `maxDepth` levels replies stop indenting. With `mention-sources` the boxes take @mentions (`MMentionField`) and mentions stand out in the text. The thread doesn't change your data: it emits what the user did, and you update `comments`. Not an M3 spec component.
|
|
1190
|
+
|
|
1191
|
+
Props:
|
|
1192
|
+
- `comments: CommentItem[]` — The comments, oldest first (each with its `replies`)
|
|
1193
|
+
- `composer?: false | "top" | "bottom" = "top"` — The box for a new comment: above the comments, below them, or none
|
|
1194
|
+
- `maxDepth?: number = 3` — Levels of replies that indent; deeper ones stay at the last level
|
|
1195
|
+
- `repliesShown?: number = 2` — Replies shown without asking; more collapse behind "View N replies"
|
|
1196
|
+
- `replies?: boolean = true` — Offer Reply on each comment
|
|
1197
|
+
- `reactions?: boolean = true` — Emoji reactions on each comment
|
|
1198
|
+
- `mentionSources?: MentionSource[]` — @mention sources for the boxes (see `MMentionField`)
|
|
1199
|
+
- `canEdit?: ((comment: CommentItem) => boolean)` — Who may edit and delete a comment; defaults to the ones marked `mine`
|
|
1200
|
+
|
|
1201
|
+
Events:
|
|
1202
|
+
- `comment(text: string)` — A new top-level comment, with its text
|
|
1203
|
+
- `reply(comment: CommentItem, text: string)` — A reply, with the comment replied to and the text
|
|
1204
|
+
- `edit(comment: CommentItem, text: string)` — An edit, with the comment and its new text
|
|
1205
|
+
- `delete(comment: CommentItem)` — Delete was chosen on a comment
|
|
1206
|
+
- `react(comment: CommentItem, reactions: Reaction[])` — A reaction was toggled on a comment, with the comment's new reactions to store
|
|
1207
|
+
|
|
1157
1208
|
### MConfirmDialog
|
|
1158
1209
|
|
|
1159
1210
|
A pre-built confirmation dialog on top of MDialog — title, message, cancel/confirm buttons, a danger color mode, and a loading state, so you don't have to hand-roll one for every "are you sure?" prompt.
|
|
@@ -1213,6 +1264,7 @@ A right-click context menu composed with MMenuItem — same item/divider/submenu
|
|
|
1213
1264
|
Props:
|
|
1214
1265
|
- `submenuMode?: "push" | "flyout" = "flyout"` — How items with a `#children` slot behave. `'flyout'` opens a hover-positioned side panel (desktop). `'push'` replaces the panel's own content with the submenu and a back header — no positioning math, works with touch. Useful for mobile.
|
|
1215
1266
|
- `variant?: "standard" | "expressive" = "standard"` — 'standard' is M3's baseline menu (4dp corners). 'expressive' is M3's rounder 'vertical menu' styling (16dp corners) — combine with `<MMenuDivider gap />` to split the panel into independently-rounded groups with a visible gap, instead of a plain divider line.
|
|
1267
|
+
- `color?: "standard" | "vibrant" = "standard"` — Color scheme. `'standard'` is surface based; `'vibrant'` (Compose's `MenuDefaults.itemVibrantColors`, `VibrantMenuTokens`) is tertiary based: tertiary-container panel, and selected/checked items in solid tertiary. Vibrant menus stand out more, so use them sparingly
|
|
1216
1268
|
|
|
1217
1269
|
Slots:
|
|
1218
1270
|
- `#trigger` — The element(s) that respond to right-click. MContextMenu intercepts contextmenu events automatically and positions the panel at the cursor, clamped to stay on-screen.
|
|
@@ -1420,6 +1472,7 @@ Props:
|
|
|
1420
1472
|
- `emptyText?: string` — Text when no rows (defaults to the locale string)
|
|
1421
1473
|
- `rowKey?: string = "id"` — Unique key field in each row
|
|
1422
1474
|
- `selectable?: boolean = false` — Enable row selection with checkboxes (by default only the checkbox toggles a row; clicking the row itself still emits row-click)
|
|
1475
|
+
- `checkboxes?: "hover" | "always" = "always"` — With selectable: `'always'` shows every row's checkbox; `'hover'` keeps them out of the way when selection is a secondary action (M3): a row's checkbox appears while the row is hovered or focused, and all of them once anything is selected. Without hover (touch screens) they always show.
|
|
1423
1476
|
- `selectOnRowClick?: boolean = false` — With selectable, clicking anywhere on a row toggles its selection instead of emitting row-click
|
|
1424
1477
|
- `modelValue?: Record<string, any>[] = []` (v-model) — Selected rows (v-model)
|
|
1425
1478
|
- `perPage?: number = 10` — Rows per page
|
|
@@ -2833,7 +2886,7 @@ Props:
|
|
|
2833
2886
|
- `flipped?: boolean = false` (v-model:flipped) — Mirrored left to right (`v-model:flipped`)
|
|
2834
2887
|
- `shape?: "circle" | "rect" = "rect"`
|
|
2835
2888
|
- `minSize?: number = 24` — The frame's smallest side, in the picture's px
|
|
2836
|
-
- `guides?: "
|
|
2889
|
+
- `guides?: "always" | "drag" | "never" = "drag"` — The rule-of-thirds grid: while dragging (default), always or never
|
|
2837
2890
|
- `controls?: boolean = true` — The toolbar under the picture
|
|
2838
2891
|
- `alt?: string = ""` — Accessible name of the picture
|
|
2839
2892
|
|
|
@@ -3037,7 +3090,7 @@ export interface LightboxItem {
|
|
|
3037
3090
|
|
|
3038
3091
|
### MList
|
|
3039
3092
|
|
|
3040
|
-
A vertical list container (MList) with rich, flexible rows (MListItem) and optional section headers (MListSubheader) — one-line to three-line items, leading/trailing elements, selection, navigation, segmented, and expandable variants. MListGroup splits a list into groups (separate rounded runs in a segmented list).
|
|
3093
|
+
A vertical list container (MList) with rich, flexible rows (MListItem) and optional section headers (MListSubheader) — one-line to three-line items, leading/trailing elements, selection, navigation, segmented, and expandable variants. MListGroup splits a list into groups (separate rounded runs in a segmented list). With `multi-select`, items are checked in M3's selection mode: a long press on an item (or a tap on its leading avatar or icon) enters it, then taps check and uncheck items, and a long press dragged across items checks them all. Unchecking the last one, or Escape, leaves it.
|
|
3041
3094
|
|
|
3042
3095
|
Props:
|
|
3043
3096
|
- `dense?: boolean = false` — Compact vertical padding on child items
|
|
@@ -3047,27 +3100,40 @@ Props:
|
|
|
3047
3100
|
- `selectable?: boolean = false` — Enable single-item selection — items compare their value prop against selected
|
|
3048
3101
|
- `selected?: string | number | null` (v-model:selected) — Currently selected item value (v-model:selected)
|
|
3049
3102
|
- `lines?: 1 | 2 | 3` — Default line count for child items that don't set their own lines prop
|
|
3103
|
+
- `multiSelect?: boolean` — Multi-selection with M3's selection mode: long press (or a tap on the leading avatar/icon) to start, then tap to check; items need a `value`
|
|
3104
|
+
- `checked?: (string | number)[]` (v-model:checked) — With `multiSelect`: the checked items' values (v-model:checked)
|
|
3105
|
+
- `selectionMode?: boolean` (v-model:selectionMode) — With `multiSelect`: whether it's in selection mode (v-model:selectionMode). Leave unset to let the list manage it; `true` keeps it there
|
|
3050
3106
|
|
|
3051
3107
|
Events:
|
|
3052
3108
|
- `update:selected(value: string | number | null)` — Fires when a selectable item is clicked (via v-model:selected)
|
|
3109
|
+
- `update:checked(value: (string | number)[])` — With `multi-select`: the checked items' values (v-model:checked)
|
|
3110
|
+
- `update:selectionMode(value: boolean)` — With `multi-select`: entering (true) or leaving (false) selection mode
|
|
3053
3111
|
|
|
3054
3112
|
Slots:
|
|
3055
3113
|
- `#default` — MListItem / MListSubheader / MListGroup children
|
|
3056
3114
|
|
|
3057
3115
|
### MListDetail
|
|
3058
3116
|
|
|
3059
|
-
Material 3's list-detail layout: a list of items and the details of the selected one. When there's room (840px and up, the expanded width class) both panes sit side by side; on smaller screens only one shows, the detail sliding in over the list when you open an item and back out on `back()`. It measures its own width, so it adapts inside a column or a dialog too. Both panes stay mounted, so the list keeps its scroll position. It has no default size: give it a height so each pane scrolls on its own.
|
|
3117
|
+
Material 3's list-detail layout: a list of items and the details of the selected one. When there's room (840px and up, the expanded width class) both panes sit side by side; on smaller screens only one shows, the detail sliding in over the list when you open an item and back out on `back()`. It measures its own width, so it adapts inside a column or a dialog too. Both panes stay mounted, so the list keeps its scroll position. It has no default size: give it a height so each pane scrolls on its own. With `resizable`, a drag handle between the panes resizes the list, settling to the closest anchor (M3's pane expansion).
|
|
3060
3118
|
|
|
3061
3119
|
Props:
|
|
3062
3120
|
- `showDetail?: boolean = false` (v-model:showDetail) — Whether the detail is the current destination. One-pane layouts show it instead of the list.
|
|
3121
|
+
- `showExtra?: boolean = false` (v-model:showExtra) — Whether the extra pane (`#extra`) is open. It takes the list's place with two panes, and the whole space with one.
|
|
3122
|
+
- `extraWidth?: string` — Extra pane width when it sits beside the others. Defaults to M3's 360px (412px from the large width class).
|
|
3063
3123
|
- `listWidth?: string` — List pane width in the two-pane layout. Defaults to M3's 360px (412px from the large width class).
|
|
3124
|
+
- `resizable?: boolean = false` — Two panes: a drag handle between them resizes the list, settling to the closest of `anchors`.
|
|
3125
|
+
- `anchors?: PaneAnchor[]` — List widths the resize settles to: px numbers or `'NN%'` of the space. 0 hides the list, `'100%'` the detail. Defaults to `[0, 360, 412, '50%', '100%']`.
|
|
3126
|
+
- `resizeKey?: string` — Remembers the resized width in localStorage under this key. Without it, a resize lasts until the page reloads.
|
|
3064
3127
|
|
|
3065
3128
|
Events:
|
|
3129
|
+
- `resize(PaneAnchor)` — Emitted with the anchor a pane resize settled to
|
|
3066
3130
|
- `update:showDetail(boolean)` — Emitted with false when the detail slot calls back()
|
|
3131
|
+
- `update:showExtra(boolean)` — Emitted with false when the extra slot calls close()
|
|
3067
3132
|
|
|
3068
3133
|
Slots:
|
|
3069
3134
|
- `#list { twoPane: boolean; }` — The list pane. Scrolls on its own and keeps its scroll position while the detail is open
|
|
3070
3135
|
- `#detail { twoPane: boolean; back: () => void; }` — `back()` returns to the list (sets `showDetail` to false).
|
|
3136
|
+
- `#extra { twoPane: boolean; close: () => void; }` — `close()` hides the extra pane (sets `showExtra` to false).
|
|
3071
3137
|
|
|
3072
3138
|
### MListGroup
|
|
3073
3139
|
|
|
@@ -3738,6 +3804,8 @@ Props:
|
|
|
3738
3804
|
- `align?: "right" | "left" | "start" | "end" = "end"` — Which edge of the trigger the dropdown aligns to. `start`/`end` follow the reading direction (`end` is the right edge, or the left one in a right-to-left page)
|
|
3739
3805
|
- `submenuMode?: "push" | "flyout" = "flyout"` — How items with a `#children` slot behave. `'flyout'` opens a hover-positioned side panel (desktop). `'push'` replaces the panel's own content with the submenu and a back header — no positioning math, works with touch. Useful for mobile.
|
|
3740
3806
|
- `variant?: "standard" | "expressive" = "standard"` — 'standard' is M3's baseline menu (4dp corners). 'expressive' is M3's rounder 'vertical menu' styling (16dp corners) — combine with `<MMenuDivider gap />` to split the panel into independently-rounded groups with a visible gap, instead of a plain divider line.
|
|
3807
|
+
- `color?: "standard" | "vibrant" = "standard"` — Color scheme. `'standard'` is surface based; `'vibrant'` (Compose's `MenuDefaults.itemVibrantColors`, `VibrantMenuTokens`) is tertiary based: tertiary-container panel, and selected/checked items in solid tertiary. Vibrant menus stand out more, so use them sparingly
|
|
3808
|
+
- `maxHeight?: number = 400` — Tallest the panel gets before it scrolls, in px (Compose's 400dp); it also stays inside the window
|
|
3741
3809
|
|
|
3742
3810
|
Slots:
|
|
3743
3811
|
- `#trigger { open: boolean; }` — The element that opens the menu when clicked; `open` tells whether it's open.
|
|
@@ -4636,7 +4704,7 @@ export type ProductSelection = Record<string, string | string[] | Record<string,
|
|
|
4636
4704
|
|
|
4637
4705
|
### MProgressBar
|
|
4638
4706
|
|
|
4639
|
-
A linear progress indicator — determinate, indeterminate, or the M3 Expressive wavy variant.
|
|
4707
|
+
A linear progress indicator — determinate, indeterminate, or the M3 Expressive wavy variant. The wavy one switches smoothly from indeterminate to a value: the moving lines run off the track, then the bar grows into it.
|
|
4640
4708
|
|
|
4641
4709
|
Props:
|
|
4642
4710
|
- `value?: number` — Progress 0–100 (omit for indeterminate)
|
|
@@ -4868,6 +4936,32 @@ Exposed (template ref):
|
|
|
4868
4936
|
- `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
|
|
4869
4937
|
- `resetValidation: () => void` — Hides its validation error (until the next check)
|
|
4870
4938
|
|
|
4939
|
+
### MReactions
|
|
4940
|
+
|
|
4941
|
+
Emoji reactions under a message, a comment or a post: a chip per emoji with how many reacted, filled while you're one of them, and a button that opens the quick reactions plus the full `MEmojiSelector`. Pressing a chip or picking an emoji toggles your reaction. Use `v-model` and it counts for you, or listen to `react` and update your own data. Not an M3 spec component: chips and a menu from M3.
|
|
4942
|
+
|
|
4943
|
+
Props:
|
|
4944
|
+
- `modelValue?: Reaction[] = []` (v-model) — The reactions (v-model)
|
|
4945
|
+
- `addable?: boolean = true` — Offer to add a reaction: a button opening the quick reactions and the emoji picker
|
|
4946
|
+
- `quick?: string[] = ["👍", "❤️", "😂", "😮", "😢", "🙏"]` — One-tap reactions at the top of the picker
|
|
4947
|
+
- `readonly?: boolean = false` — Only show and toggle, no picker (a read-only list still shows the counts)
|
|
4948
|
+
- `size?: "small" | "medium" = "medium"` — `small` chips (24px) for tight places like chat bubbles; `medium` is 32px
|
|
4949
|
+
|
|
4950
|
+
Events:
|
|
4951
|
+
- `update:modelValue(value: Reaction[])` — The reactions after one was toggled (v-model)
|
|
4952
|
+
- `react(emoji: string, reacted: boolean)` — An emoji was toggled, with whether you now react with it
|
|
4953
|
+
|
|
4954
|
+
```ts
|
|
4955
|
+
export interface Reaction {
|
|
4956
|
+
emoji: string
|
|
4957
|
+
count: number
|
|
4958
|
+
/** Whether the current user reacted with it */
|
|
4959
|
+
reacted?: boolean
|
|
4960
|
+
/** Who reacted, shown in the chip's tooltip ("Ana, Luis and 3 more" is up to you) */
|
|
4961
|
+
label?: string
|
|
4962
|
+
}
|
|
4963
|
+
```
|
|
4964
|
+
|
|
4871
4965
|
### MReceipt
|
|
4872
4966
|
|
|
4873
4967
|
A sales receipt in the look of a thermal printer ticket (58 or 80 mm): header, lines with quantity and amount, subtotal, discounts and taxes, total, payments and change. All the math is done in cents, so totals never drift. `print()` prints only the receipt, sized to the paper.
|
|
@@ -5099,6 +5193,41 @@ export interface RichTextEditorLabels {
|
|
|
5099
5193
|
}
|
|
5100
5194
|
```
|
|
5101
5195
|
|
|
5196
|
+
### MScaffold
|
|
5197
|
+
|
|
5198
|
+
M3's app frame (Compose's `Scaffold`): a top app bar, the scrolling content, a bottom bar, a floating action button and a snackbar host, each in its place. The content scrolls on its own between the bars, and its element is handed to the `#topBar` slot as `scrollTarget`, so an `MTopAppBar` can react to it (`scroll-behavior`). The FAB sits 16dp above the bottom bar (or over it with `fab-position="end-overlay"`). Snackbars shown with `showSnackbar()` (a template ref) appear one at a time just above the bottom bar, and the FAB moves up out of their way, as in Gmail. It has no size of its own: give it one (`class="h-dvh"`).
|
|
5199
|
+
|
|
5200
|
+
Props:
|
|
5201
|
+
- `fabPosition?: "center" | "start" | "end" | "end-overlay" = "end"` — Where the FAB sits: start, center or end 16dp above the bottom bar, or `end-overlay`, over the bottom bar
|
|
5202
|
+
|
|
5203
|
+
Events:
|
|
5204
|
+
- `snackbar(result: ScaffoldSnackbarResult)` — Emitted when a snackbar closes, with how: `'action'` or `'dismissed'`
|
|
5205
|
+
|
|
5206
|
+
Slots:
|
|
5207
|
+
- `#topBar { scrollTarget: HTMLElement | null; }` — The top app bar: `{ scrollTarget }`, the scrolling content element
|
|
5208
|
+
- `#default { scrollTarget: HTMLElement | null; }` — The content, which scrolls between the bars: `{ scrollTarget }`
|
|
5209
|
+
- `#bottomBar` — A bottom app bar, navigation bar or toolbar
|
|
5210
|
+
- `#fab` — The floating action button
|
|
5211
|
+
|
|
5212
|
+
Exposed (template ref):
|
|
5213
|
+
- `showSnackbar: (message: string, options?: ScaffoldSnackbarOptions) => Promise<ScaffoldSnackbarResult>`
|
|
5214
|
+
- `dismissSnackbar: () => void`
|
|
5215
|
+
|
|
5216
|
+
```ts
|
|
5217
|
+
export interface ScaffoldSnackbarOptions {
|
|
5218
|
+
/** A text button on the snackbar; pressing it resolves `showSnackbar()` with `'action'` */
|
|
5219
|
+
actionLabel?: string
|
|
5220
|
+
/** A close (✕) button */
|
|
5221
|
+
withDismissAction?: boolean
|
|
5222
|
+
/** `'short'` (4s), `'long'` (10s), `'indefinite'` (until acted on or dismissed) or ms. Defaults to short, or indefinite with an action */
|
|
5223
|
+
duration?: 'short' | 'long' | 'indefinite' | number
|
|
5224
|
+
}
|
|
5225
|
+
```
|
|
5226
|
+
|
|
5227
|
+
```ts
|
|
5228
|
+
export type ScaffoldSnackbarResult = 'action' | 'dismissed'
|
|
5229
|
+
```
|
|
5230
|
+
|
|
5102
5231
|
### MScheduler
|
|
5103
5232
|
|
|
5104
5233
|
A week or day calendar grid. Events sit at their exact times, overlapping ones share the width, and anything that lasts all day or spans several days runs across the all-day row. Click a day header to open that day. Dates and times follow the app's locale.
|
|
@@ -5166,14 +5295,14 @@ Slots:
|
|
|
5166
5295
|
|
|
5167
5296
|
### MScrollable
|
|
5168
5297
|
|
|
5169
|
-
A constrained scroll area — vertical, horizontal, or both directions. Shows the browser's scrollbar, or
|
|
5298
|
+
A constrained scroll area — vertical, horizontal, or both directions. Shows the browser's scrollbar, or M3's own: `scrollbar="indicator"` is the thin visual-only one (Compose's `Modifier.nonInteractiveScrollbar`), `scrollbar="interactive"` the 8dp one you can drag or click to jump (`Modifier.interactiveScrollbar`). Both appear while scrolling and fade out after; hovering the interactive one keeps it visible.
|
|
5170
5299
|
|
|
5171
5300
|
Props:
|
|
5172
5301
|
- `direction?: "horizontal" | "vertical" | "both" = "vertical"` — Scroll direction
|
|
5173
5302
|
- `height?: string` — Fixed height (CSS value)
|
|
5174
5303
|
- `maxHeight?: string` — Maximum height (CSS value)
|
|
5175
|
-
- `scrollbar?: "none" | "native" | "indicator" = "native"` — `native`: the browser's scrollbar. `indicator`: M3's thin scrollbar, visual only (scroll with the wheel, touch or keys). `none`: no scrollbar at all.
|
|
5176
|
-
- `scrollbarFade?: boolean = true` — With `scrollbar="indicator"`: show it only while scrolling, fading out after (false keeps it visible)
|
|
5304
|
+
- `scrollbar?: "none" | "interactive" | "native" | "indicator" = "native"` — `native`: the browser's scrollbar. `indicator`: M3's thin scrollbar, visual only (scroll with the wheel, touch or keys). `interactive`: M3's 8dp scrollbar; drag its thumb, or press the track to jump there. `none`: no scrollbar at all.
|
|
5305
|
+
- `scrollbarFade?: boolean = true` — With `scrollbar="indicator"` or `"interactive"`: show it only while scrolling, fading out after (false keeps it visible)
|
|
5177
5306
|
|
|
5178
5307
|
Slots:
|
|
5179
5308
|
- `#default` — The scrolling content.
|
|
@@ -5187,7 +5316,8 @@ Props:
|
|
|
5187
5316
|
- `count: number` — Number of items; the wheel wraps around after the last one
|
|
5188
5317
|
- `label?: string` — Accessible name of the field. Include the range when it isn't obvious ("Select year between 2000 and 2025"): the wheel wraps, so screen readers can't tell where it ends.
|
|
5189
5318
|
- `format?: ((index: number) => string) = String(index).padStart(2, "0")` — Text for each item (also what screen readers announce). Defaults to the index with at least 2 digits.
|
|
5190
|
-
- `height?: number =
|
|
5319
|
+
- `height?: number = 120` — Height in px. The default 120 (ScrollFieldDefaults.ScrollFieldHeight) shows the selected item with its neighbors cut off; taller shows more
|
|
5320
|
+
- `itemHeight?: number = 52` — Distance between the centers of adjacent items in px. The default 52 (ScrollFieldDefaults.ItemHeight) leaves a 16px gap between them; 200 / 3 gives the pre-1.10 spacing
|
|
5191
5321
|
- `disabled?: boolean = false` — Disables the field
|
|
5192
5322
|
|
|
5193
5323
|
Events:
|
|
@@ -5922,20 +6052,28 @@ Slots:
|
|
|
5922
6052
|
|
|
5923
6053
|
### MSupportingPane
|
|
5924
6054
|
|
|
5925
|
-
Material 3's supporting pane layout: main content plus a narrower pane that supports it, like related videos next to a player, a cart next to a product or comments next to a document. With room for two panes (840px and up) the supporting pane sits beside the main one; on smaller screens it moves under it, or into a bottom sheet with `single-pane="sheet"`. It measures its own width, not the window's.
|
|
6055
|
+
Material 3's supporting pane layout: main content plus a narrower pane that supports it, like related videos next to a player, a cart next to a product or comments next to a document. With room for two panes (840px and up) the supporting pane sits beside the main one; on smaller screens it moves under it, or into a bottom sheet with `single-pane="sheet"`. It measures its own width, not the window's. With `resizable`, a drag handle between the panes resizes the supporting pane, settling to the closest anchor (M3's pane expansion).
|
|
5926
6056
|
|
|
5927
6057
|
Props:
|
|
5928
6058
|
- `singlePane?: "below" | "sheet" = "below"` — Where the supporting pane goes when there's room for only one pane.
|
|
5929
6059
|
- `open?: boolean = false` (v-model:open) — With `singlePane="sheet"`: whether the sheet is open (v-model:open).
|
|
5930
6060
|
- `sheetTitle?: string` — With `singlePane="sheet"`: the sheet's title.
|
|
6061
|
+
- `showExtra?: boolean = false` (v-model:showExtra) — Whether the extra pane (`#extra`) is open. It takes the supporting pane's place with two panes, and the whole space with one.
|
|
6062
|
+
- `extraWidth?: string` — Extra pane width when it sits beside the others. Defaults to M3's 360px (412px from the large width class).
|
|
5931
6063
|
- `supportingWidth?: string` — Supporting pane width in the two-pane layout. Defaults to M3's 360px (412px from the large width class).
|
|
6064
|
+
- `resizable?: boolean = false` — Two panes: a drag handle between them resizes the supporting pane, settling to the closest of `anchors`.
|
|
6065
|
+
- `anchors?: PaneAnchor[]` — Supporting pane widths the resize settles to: px numbers or `'NN%'` of the space. 0 hides the supporting pane, `'100%'` the main one. Defaults to `[0, 360, 412, '50%', '100%']`.
|
|
6066
|
+
- `resizeKey?: string` — Remembers the resized width in localStorage under this key. Without it, a resize lasts until the page reloads.
|
|
5932
6067
|
|
|
5933
6068
|
Events:
|
|
5934
6069
|
- `update:open(boolean)` — Emitted when the sheet is dismissed, or closed because both panes fit again
|
|
6070
|
+
- `resize(PaneAnchor)` — Emitted with the anchor a pane resize settled to
|
|
6071
|
+
- `update:showExtra(boolean)` — Emitted with false when the extra slot calls close()
|
|
5935
6072
|
|
|
5936
6073
|
Slots:
|
|
5937
6074
|
- `#main { twoPane: boolean; }` — The main content
|
|
5938
6075
|
- `#supporting { twoPane: boolean; }` — Content that supports the main pane: related items, a summary, details, tools
|
|
6076
|
+
- `#extra { twoPane: boolean; close: () => void; }` — `close()` hides the extra pane (sets `showExtra` to false).
|
|
5939
6077
|
|
|
5940
6078
|
### MSwipeToDismiss
|
|
5941
6079
|
|
|
@@ -5966,7 +6104,7 @@ export type SwipeToDismissValue = 'settled' | 'start-to-end' | 'end-to-start'
|
|
|
5966
6104
|
|
|
5967
6105
|
### MSwitch
|
|
5968
6106
|
|
|
5969
|
-
A toggle switch with an optional label, 4 semantic colors, and both M3 icon variants.
|
|
6107
|
+
A toggle switch with an optional label, 4 semantic colors, and both M3 icon variants. Click it, or drag the thumb across: on release it settles to the side it's closer to (or the side it was flung toward).
|
|
5970
6108
|
|
|
5971
6109
|
Props:
|
|
5972
6110
|
- `modelValue: boolean` (v-model) — Toggle state (v-model)
|
|
@@ -6001,6 +6139,7 @@ Props:
|
|
|
6001
6139
|
- `emptyText?: string` — Text when no rows (defaults to the locale string)
|
|
6002
6140
|
- `rowKey?: string = "id"` — Unique key field in each row
|
|
6003
6141
|
- `selectable?: boolean = false` — Enable row selection with checkboxes (by default only the checkbox toggles a row; clicking the row itself still emits row-click)
|
|
6142
|
+
- `checkboxes?: "hover" | "always" = "always"` — With selectable: `'always'` shows every row's checkbox; `'hover'` keeps them out of the way when selection is a secondary action (M3): a row's checkbox appears while the row is hovered or focused, and all of them once anything is selected. Without hover (touch screens) they always show.
|
|
6004
6143
|
- `selectOnRowClick?: boolean = false` — With selectable, clicking anywhere on a row toggles its selection instead of emitting row-click
|
|
6005
6144
|
- `modelValue?: Record<string, any>[] = []` (v-model) — Selected rows (v-model)
|
|
6006
6145
|
- `perPage?: number = 10` — Rows per page
|
|
@@ -6809,6 +6948,36 @@ export interface HlsModule {
|
|
|
6809
6948
|
}
|
|
6810
6949
|
```
|
|
6811
6950
|
|
|
6951
|
+
### MVirtualList
|
|
6952
|
+
|
|
6953
|
+
An `MList` that only renders the rows on screen (and a few around them), so thousands of items scroll smoothly. Rows can have different heights: each is measured once rendered, starting from `itemHeight` as the guess. It takes `MList`'s own props and models (`dense`, `dividers`, `segmented`, `selectable`/`v-model:selected`, `multi-select`/`v-model:checked`/`v-model:selection-mode`), it scrolls itself, so give it a height, and `end-reached` fires near the end for loading more (put a spinner in `#footer`).
|
|
6954
|
+
|
|
6955
|
+
Props:
|
|
6956
|
+
- `items: T[]` — All the items; only the visible ones are rendered
|
|
6957
|
+
- `itemKey?: string | ((item: T, index: number) => string | number) = "id"` — Each item's key: a field name or a function. Defaults to `id`, else the index
|
|
6958
|
+
- `itemHeight?: number = 56` — Estimated row height in px before a row is measured (56 = a one-line MListItem)
|
|
6959
|
+
- `overscan?: number = 6` — Rows rendered beyond each edge of the view
|
|
6960
|
+
- `endThreshold?: number = 5` — How many rows before the end `end-reached` fires
|
|
6961
|
+
- `dense?: boolean = false`
|
|
6962
|
+
- `dividers?: boolean | "inset" = false`
|
|
6963
|
+
- `segmented?: boolean = false`
|
|
6964
|
+
- `selectable?: boolean = false`
|
|
6965
|
+
- `selected?: string | number | null` (v-model:selected)
|
|
6966
|
+
- `multiSelect?: boolean = false`
|
|
6967
|
+
- `checked?: (string | number)[]` (v-model:checked)
|
|
6968
|
+
- `selectionMode?: boolean` (v-model:selectionMode)
|
|
6969
|
+
- `lines?: 1 | 2 | 3`
|
|
6970
|
+
|
|
6971
|
+
Events:
|
|
6972
|
+
- `update:selected(value: string | number | null)` — See MList
|
|
6973
|
+
- `update:checked(value: (string | number)[])` — See MList
|
|
6974
|
+
- `update:selectionMode(value: boolean)` — See MList
|
|
6975
|
+
- `endReached()` — The last rows came into view (once per length of `items`)
|
|
6976
|
+
|
|
6977
|
+
Slots:
|
|
6978
|
+
- `#default { item: T; index: number; }` — One row (an `MListItem`, a single element): `{ item, index }`
|
|
6979
|
+
- `#footer` — After the rows, e.g. a "loading more" indicator
|
|
6980
|
+
|
|
6812
6981
|
### MVirtualTable
|
|
6813
6982
|
|
|
6814
6983
|
Renders only the rows currently in (or near) the viewport, so a table with thousands of rows stays smooth — no pagination needed. Trade-off: no built-in search/filtering, sort is a client-side full-array sort.
|
|
@@ -7824,6 +7993,21 @@ useToast(): {
|
|
|
7824
7993
|
}
|
|
7825
7994
|
```
|
|
7826
7995
|
|
|
7996
|
+
### useUndo
|
|
7997
|
+
|
|
7998
|
+
Undo and redo for your app's actions, with M3's "Undo" snackbar after each one (Gmail's "Conversation archived · Undo"). `run()` does an action and remembers how to revert it; `undo()`/`redo()` walk the history, also from the keyboard. With `commit`, an action can wait to become final until its snackbar is gone.
|
|
7999
|
+
|
|
8000
|
+
```ts
|
|
8001
|
+
useUndo(options: UseUndoOptions = {}): {
|
|
8002
|
+
run: (action: UndoableAction) => Promise<void>
|
|
8003
|
+
undo: () => Promise<void>
|
|
8004
|
+
redo: () => Promise<void>
|
|
8005
|
+
clear: () => Promise<void>
|
|
8006
|
+
canUndo: ComputedRef<boolean>
|
|
8007
|
+
canRedo: ComputedRef<boolean>
|
|
8008
|
+
}
|
|
8009
|
+
```
|
|
8010
|
+
|
|
7827
8011
|
### useFieldBg
|
|
7828
8012
|
|
|
7829
8013
|
Auto-detects the background behind `containerEl` and exposes it as `--field-bg`. Prefers a CSS variable reference (e.g. var(--color-surface-container-low)) over a raw computed color so the outlined label cutout transitions in sync with the rest of the theme switch instead of lagging behind.
|
|
@@ -9850,6 +10034,12 @@ export interface M3UIOptions {
|
|
|
9850
10034
|
* followed by layout either way.
|
|
9851
10035
|
*/
|
|
9852
10036
|
dir?: 'ltr' | 'rtl'
|
|
10037
|
+
/**
|
|
10038
|
+
* `false` turns off the press ripple everywhere (buttons, chips, cards, list and menu items, selection
|
|
10039
|
+
* controls, `v-ripple`), leaving the state layer as the only press feedback. Same as `data-m3-ripple="off"`
|
|
10040
|
+
* on `<html>`, which a server-rendered page can set itself.
|
|
10041
|
+
*/
|
|
10042
|
+
ripple?: boolean
|
|
9853
10043
|
}
|
|
9854
10044
|
```
|
|
9855
10045
|
|
|
@@ -10110,6 +10300,42 @@ export interface ToastOptions {
|
|
|
10110
10300
|
}
|
|
10111
10301
|
```
|
|
10112
10302
|
|
|
10303
|
+
```ts
|
|
10304
|
+
/** One undoable action for `useUndo().run()` */
|
|
10305
|
+
export interface UndoableAction {
|
|
10306
|
+
/** Does it (also called again on redo) */
|
|
10307
|
+
do: () => void | Promise<void>
|
|
10308
|
+
/** Reverts it */
|
|
10309
|
+
undo: () => void | Promise<void>
|
|
10310
|
+
/** What it did, shown in the snackbar with an "Undo" button ("Message archived"). Without it, no snackbar */
|
|
10311
|
+
label?: string
|
|
10312
|
+
/**
|
|
10313
|
+
* Makes it final once it can't be undone from the snackbar any more (the snackbar closed, or another action
|
|
10314
|
+
* replaced it): the call to your server, say, while `do` only hid the item. Not called if it was undone
|
|
10315
|
+
*/
|
|
10316
|
+
commit?: () => void | Promise<void>
|
|
10317
|
+
}
|
|
10318
|
+
```
|
|
10319
|
+
|
|
10320
|
+
```ts
|
|
10321
|
+
export interface UseUndoOptions {
|
|
10322
|
+
/** Most actions kept for undo (default 50) */
|
|
10323
|
+
limit?: number
|
|
10324
|
+
/**
|
|
10325
|
+
* Ctrl/Cmd+Z undoes and Ctrl/Cmd+Shift+Z or Ctrl+Y redo, unless the focus is in a text field (which keeps its
|
|
10326
|
+
* own undo). `true` listens on the window; pass an element (or ref) to listen only inside it. Default true
|
|
10327
|
+
*/
|
|
10328
|
+
keyboard?: boolean | MaybeRefOrGetter<HTMLElement | null | undefined>
|
|
10329
|
+
/** How long the snackbar stays, in ms (default 6000) */
|
|
10330
|
+
duration?: number
|
|
10331
|
+
/**
|
|
10332
|
+
* Shows the snackbar yourself, e.g. with `MScaffold`'s `showSnackbar()`: resolve to true if the user pressed
|
|
10333
|
+
* Undo. Defaults to `useToast()`
|
|
10334
|
+
*/
|
|
10335
|
+
notify?: (label: string, undoLabel: string, duration: number) => Promise<boolean>
|
|
10336
|
+
}
|
|
10337
|
+
```
|
|
10338
|
+
|
|
10113
10339
|
```ts
|
|
10114
10340
|
export interface M3Locale {
|
|
10115
10341
|
/** BCP-47 language tag (e.g. 'en', 'es', 'pt') — read by locale-aware components (MRelativeTime) that use Intl formatting. */
|
|
@@ -10460,6 +10686,28 @@ export interface M3Locale {
|
|
|
10460
10686
|
codeCopy: string
|
|
10461
10687
|
/** MCodeEditor: shown once the code is copied */
|
|
10462
10688
|
codeCopied: string
|
|
10689
|
+
/** Pane resize handle of MListDetail / MSupportingPane */
|
|
10690
|
+
paneResize: string
|
|
10691
|
+
/** Composer placeholder of MCommentThread */
|
|
10692
|
+
commentPlaceholder: string
|
|
10693
|
+
/** Reply composer label of MCommentThread ({name}) */
|
|
10694
|
+
commentReplyTo: string
|
|
10695
|
+
commentReply: string
|
|
10696
|
+
commentEdit: string
|
|
10697
|
+
commentDelete: string
|
|
10698
|
+
commentSave: string
|
|
10699
|
+
commentSend: string
|
|
10700
|
+
commentEdited: string
|
|
10701
|
+
commentActions: string
|
|
10702
|
+
commentShowReply: string
|
|
10703
|
+
/** MCommentThread collapsed replies ({count}) */
|
|
10704
|
+
commentShowReplies: string
|
|
10705
|
+
commentHideReplies: string
|
|
10706
|
+
reactionAdd: string
|
|
10707
|
+
/** Accessible label of an MReactions chip ({emoji}, {count}) */
|
|
10708
|
+
reactionCount: string
|
|
10709
|
+
/** MAvatarGroup overflow chip label ({count}) */
|
|
10710
|
+
avatarGroupMore: string
|
|
10463
10711
|
/** MFormBuilder: what the preview submitted */
|
|
10464
10712
|
formBuilderSubmitted: string
|
|
10465
10713
|
/** MFormBuilder: the inspector with nothing selected */
|
|
@@ -11239,6 +11487,10 @@ export interface RippleOptions {
|
|
|
11239
11487
|
disabled?: boolean
|
|
11240
11488
|
/** Any CSS color for the ripple; defaults to the element's text color (`currentColor`). */
|
|
11241
11489
|
color?: string
|
|
11490
|
+
/** Draw it in this element instead (e.g. the round state layer of a checkbox), clipped to its shape */
|
|
11491
|
+
layer?: () => HTMLElement | null | undefined
|
|
11492
|
+
/** Grow from the center instead of from the pointer (with `layer`, a selection control's unbounded ripple) */
|
|
11493
|
+
centered?: boolean
|
|
11242
11494
|
}
|
|
11243
11495
|
```
|
|
11244
11496
|
|
|
@@ -11603,6 +11855,47 @@ export interface DiffPart {
|
|
|
11603
11855
|
export type DiffOp = 'equal' | 'remove' | 'add'
|
|
11604
11856
|
```
|
|
11605
11857
|
|
|
11858
|
+
```ts
|
|
11859
|
+
/** One comment of an `MCommentThread`, with its replies */
|
|
11860
|
+
export interface CommentItem {
|
|
11861
|
+
id: string | number
|
|
11862
|
+
author: CommentAuthor
|
|
11863
|
+
text: string
|
|
11864
|
+
/** When it was written: a Date, an ISO string or a timestamp */
|
|
11865
|
+
createdAt: Date | string | number
|
|
11866
|
+
/** Shows "edited" next to the time */
|
|
11867
|
+
edited?: boolean
|
|
11868
|
+
replies?: CommentItem[]
|
|
11869
|
+
reactions?: Reaction[]
|
|
11870
|
+
/** The current user wrote it: they can edit and delete it (see `canEdit`) */
|
|
11871
|
+
mine?: boolean
|
|
11872
|
+
}
|
|
11873
|
+
```
|
|
11874
|
+
|
|
11875
|
+
```ts
|
|
11876
|
+
/** Who wrote a comment */
|
|
11877
|
+
export interface CommentAuthor {
|
|
11878
|
+
name: string
|
|
11879
|
+
/** Photo URL; without it, initials */
|
|
11880
|
+
avatar?: string
|
|
11881
|
+
}
|
|
11882
|
+
```
|
|
11883
|
+
|
|
11884
|
+
```ts
|
|
11885
|
+
/**
|
|
11886
|
+
* Pane resizing for the two-pane adaptive layouts (MListDetail, MSupportingPane), after androidx
|
|
11887
|
+
* material3-adaptive's `PaneExpansionState`: the user drags the handle in the 24dp spacer; on release the pane
|
|
11888
|
+
* settles to the closest anchor, or, flung past 200px/s, to the closest anchor in the fling's direction
|
|
11889
|
+
* (`getPositionOfTheClosestAnchor`), with Compose's default anchoring spring (dampingRatio 0.8, stiffness 380).
|
|
11890
|
+
* A tap or Enter on the handle goes to the next wider anchor (the first one after the widest).
|
|
11891
|
+
*
|
|
11892
|
+
* Departure: Compose's anchors place the end of the *first* pane; here they're the width of the side pane
|
|
11893
|
+
* (the list, the supporting pane), so 360/412 mean the same in both layouts. 0 collapses that pane, '100%' the
|
|
11894
|
+
* other one. Widths are written to the DOM imperatively (no per-frame re-render of the slots).
|
|
11895
|
+
*/
|
|
11896
|
+
export type PaneAnchor = number | `${number}%`
|
|
11897
|
+
```
|
|
11898
|
+
|
|
11606
11899
|
```ts
|
|
11607
11900
|
/*
|
|
11608
11901
|
* Phone numbers for MPhoneInput, also exported to show a stored number elsewhere. Not libphonenumber: masks for the
|
|
@@ -11778,7 +12071,7 @@ export interface FilterGroup {
|
|
|
11778
12071
|
`M3Locale` keys (pass a partial object to `createM3UI({ locale })`; presets from `@m3ui-vue/m3ui-vue/locales`:
|
|
11779
12072
|
`esLocale`, `frLocale`, `ptLocale`, `deLocale`, `jaLocale`, `zhLocale`, `koLocale`, `arLocale`):
|
|
11780
12073
|
|
|
11781
|
-
lang, search, noResults, close, cancel, confirm, loading, menu, previous, next, today, more, selectedCount, recordCount, expand, collapse, clear, columns, exportCsv, noGroup, finish, dropText, selectText, maxSizePrefix, remove, selectDate, ok, dateToggleInput, dateToggleCalendar, dateSwitchToYear, dateSwitchToDay, heatmapLess, heatmapMore, meterRemaining, meterUsedOf, phoneCountry, phoneSearchCountry, phoneInvalid, dateInputLabel, selectTime, timeHourSelection, timeMinuteSelection, timePeriodToggle, timeToggleKeyboard, timeToggleDial, timeToggleScroll, sheetExpand, sheetCollapse, sheetDismiss, seekBar, seekBarValue, seekBarShowRemaining, seekBarShowDuration, selectRange, pickStart, pickEnd, previousMonth, nextMonth, selectColor, colorHue, colorSaturation, colorBrightness, colorAlpha, colorEyedropper, colorOriginal, colorFormat, colorRecent, colorPresets, dayView, weekView, allDay, emojiSearch, emojiNoResults, emojiRecent, emojiSkinTone, emojiSkinTones, emojiCategorySmileys, emojiCategoryGestures, emojiCategoryPeople, emojiCategoryAnimals, emojiCategoryNature, emojiCategoryFood, emojiCategoryActivities, emojiCategoryTravel, emojiCategoryObjects, emojiCategorySymbols, emojiCategoryFlags, available, selected, noItems, moveAllRight, moveRight, moveLeft, moveAllLeft, searchCommand, navigateHint, selectHint, openHint, closeHint, loadingMore, noMoreItems, bold, italic, underline, strikethrough, highlight, bulletList, orderedList, blockquote, code, alignLeft, alignCenter, alignRight, undo, redo, link, image, paragraph, heading1, heading2, heading3, insertLink, insertImage, imageUrlLabel, insert, jsonValid, jsonInvalid, jsonFormat, jsonMinify, jsonElements, jsonFields, resultSuccessTitle, resultSuccessDesc, resultErrorTitle, resultErrorDesc, resultWarningTitle, resultWarningDesc, resultInfoTitle, resultInfoDesc, result404Title, result404Desc, result403Title, result403Desc, result500Title, result500Desc, chatTyping, chatRecordingAudio, reorderHandle, reorderGrabbed, reorderMoved, reorderDropped, reorderCancelled, selectAll, clearSearch, kanbanMoved, windowMinimize, windowMaximize, windowRestore, paginationRange, paginationPage, previousPage, nextPage, carousel, carouselItem, sparklineSummary, sliderRangeStart, sliderRangeEnd, mapTitle, mapMarker, mapZoomIn, mapZoomOut, mapResetBearing, mapFindMyLocation, mapLocationNotAvailable, mapEnterFullscreen, mapExitFullscreen, mapToggleAttribution, mapFeedback, mapCtrlScroll, mapCmdScroll, mapTwoFingers, mapLayers, mapSearchLayers, mapNoLayers, mapShowLayer, mapHideLayer, mapOpacity, mapClusterZoom, mapDownload, mapNoBaseLayer, mapHoverInfo, mapNoValue, mapMeasureDistance, mapMeasureArea, mapClearMeasurements, mapDeleteMeasurement, mapDrawPoint, mapDrawLine, mapDrawPolygon, mapDeleteFeature, mapTotal, mapSearchPlaces, mapAddress, mapPressEnterToSearch, mapSearching, mapNoPlaces, mapRouteStop, mapRouteVehicle, spreadsheet, spreadsheetFormula, spreadsheetName, formSubmit, formBuilderEdit, formBuilderPreview, formBuilderJson, formBuilderAddField, formBuilderEmpty, formBuilderForm, formBuilderTitle, formBuilderDescription, formBuilderSubmitLabel, formBuilderLabel, formBuilderName, formBuilderPlaceholder, formBuilderHint, formBuilderRequired, formBuilderWidth, formBuilderWidthFull, formBuilderWidthHalf, formBuilderWidthThird, formBuilderWidthTwoThirds, formBuilderOptions, formBuilderMin, formBuilderMax, formBuilderStep, formBuilderMinLength, formBuilderMaxLength, formBuilderPattern, formBuilderPatternMessage, formBuilderRows, formBuilderShowWhen, formBuilderAlways, formBuilderEquals, formBuilderDuplicate, formBuilderDelete, formBuilderCopy, formBuilderCopied, codeCopy, codeCopied, formBuilderSubmitted, formBuilderSelectField, formFieldText, formFieldEmail, formFieldPassword, formFieldTel, formFieldUrl, formFieldTextarea, formFieldNumber, formFieldSelect, formFieldAutocomplete, formFieldRadio, formFieldCheckbox, formFieldSwitch, formFieldDate, formFieldTime, formFieldSlider, formFieldRating, formFieldPhone, formFieldHeading, formFieldDivider, pdfSignSignature, pdfSignInitials, pdfSignName, pdfSignDate, pdfSignText, pdfSignCheckbox, pdfSignHere, pdfSignNext, pdfSignFinish, pdfSignProgress, pdfSignDraw, pdfSignTypeIt, pdfSignAdopt, pdfSignAddField, pdfSignRequired, pdfSignDelete, pdfSignComplete, trackingArrives, trackingArrivingNow, trackingDelivered, trackingDelayed, trackingCanceled, trackingShowDetails, trackingHideDetails, filterMatchAll, filterMatchAny, filterAddCondition, filterAddGroup, filterRemoveCondition, filterRemoveGroup, filterField, filterOperator, filterValue, filterFrom, filterTo, filterNoConditions, filterOpContains, filterOpNotContains, filterOpEquals, filterOpNotEquals, filterOpStartsWith, filterOpEndsWith, filterOpGt, filterOpGte, filterOpLt, filterOpLte, filterOpBetween, filterOpIn, filterOpNotIn, filterOpIsTrue, filterOpIsFalse, filterOpIsEmpty, filterOpIsNotEmpty, filterOpAfter, filterOpBefore, cronExpression, cronInvalid, cronNextRuns, cronFreqMinutes, cronFreqHourly, cronFreqDaily, cronFreqWeekly, cronFreqMonthly, cronFreqCustom, cronEvery, cronMinute, cronTime, cronDayOfMonth, cronEveryMinute, cronEveryNMinutes, cronHourlyAt, cronAt, cronEveryNHoursAt, cronMinutesOfHours, cronOnDaysOfMonth, cronInMonths, cronRange, country, timeZone, cameraStart, cameraStarting, cameraCapture, cameraRetake, cameraUsePhoto, cameraSwitch, cameraDenied, cameraUnavailable, cameraUnsupported, cameraFailed, qrHint, qrUnsupported, recorderStart, recorderStop, recorderPause, recorderResume, recorderDiscard, recorderUse, recorderPlay, recorderPausePlayback, recorderRecording, micDenied, micUnavailable, micUnsupported, dashGrabbed, dashPlaced, dashDropped, dashCancelled, dashResize, diffUnchanged, diffSplit, diffUnified, diffNoChanges, notifTitle, notifMarkAllRead, notifAll, notifUnread, notifEmpty, notifToday, notifYesterday, notifDismiss, notifMarkRead, notifMarkUnread, timelineShowMore, timelineShowLess, mediaPlayer, mediaPlay, mediaPause, mediaReplay, mediaSeekBack, mediaSeekForward, mediaSeconds, mediaMute, mediaUnmute, mediaVolume, mediaFullscreen, mediaExitFullscreen, mediaPictureInPicture, mediaSettings, mediaSpeed, mediaSpeedNormal, mediaSubtitles, mediaSubtitlesOff, mediaQuality, mediaQualityAuto, mediaLive, mediaError, mediaRepeat, mediaRepeatOne, mediaShuffle, pdfViewer, pdfThumbnails, pdfOutline, pdfPage, pdfZoom, pdfZoomIn, pdfZoomOut, pdfFitWidth, pdfFitPage, pdfSearch, pdfSearchPrevious, pdfSearchNext, pdfMatchCount, pdfNoMatches, pdfMore, pdfRotate, pdfDownload, pdfPrint, pdfFullscreen, pdfExitFullscreen, pdfPassword, pdfPasswordLabel, pdfWrongPassword, pdfOpen, pdfError, pdfLoading, pdfAnnotate, pdfSelect, pdfHighlight, pdfNote, pdfDraw, pdfEraser, pdfInkWidth, pdfColor, pdfUndo, pdfCopy, pdfDelete, pdfNotePlaceholder, pdfAddComment, flowCanvas, flowNode, flowEdge, flowZoomIn, flowZoomOut, flowFitView, flowLock, flowUnlock, flowUndo, flowRedo, flowMinimap, flowMoved, flowConnected, flowDeleted, flowDeleteEdge, flowDelete, ganttChart, ganttTask, ganttStart, ganttEnd, ganttDuration, ganttProgress, ganttDays, ganttHours, ganttMilestone, ganttQuarter, ganttToday, ganttZoomIn, ganttZoomOut, ganttExpandAll, ganttCollapseAll, ganttExpand, ganttCollapse, ganttUndo, ganttRedo, ganttScaleHour, ganttScaleDay, ganttScaleWeek, ganttScaleMonth, ganttScaleQuarter, ganttScaleYear, ganttMoved, ganttProgressSet, ganttLinked, ganttUnlink, ganttDeleted, ganttDelete, ganttReordered, ganttSlack, ganttCritical, ganttBaseline, ganttEmpty, ganttResize, ganttFit, ganttShowList, ganttHideList, timelineResource, timelineConflict, timelineMoved, timelineEmpty, cropArea, cropRotateLeft, cropRotateRight, cropFlip, cropReset, cropFree, drawCanvas, drawTools, drawMore, drawSelect, drawPan, drawPen, drawBrush, drawMarker, drawHighlighter, drawEraser, drawStrokeEraser, drawLine, drawArrow, drawRect, drawEllipse, drawText, drawFill, drawColor, floorPlan, floorSeats, floorRotate, floorTools, floorMove, floorDrawWall, floorDrawZone, floorAddTable, floorAddDecor, floorDuplicate, floorDelete, floorUndo, floorRedo, floorLabel, floorSeatsField, floorShape, floorRound, floorSquare, floorLong, floorAngle, floorFlip, floorZoomIn, floorZoomOut, floorZoomFit, floorOverlaps, floorSeatN, floorDrawShape, floorShapeHint, floorColor, floorThickness, floorWidth, floorHeight, floorMerge, floorSplit, floorNothingPicked, floorTablesPicked, floorTableN, floorZone, floorWall, floorDeleteCorner, floorFinishWall, floorCancel, floorDecorDoor, floorDecorWindow, floorDecorPlant, floorDecorColumn, floorDecorRestroom, floorDecorKitchen, floorDecorRegister, floorDecorStairs, floorDecorLabel, drawCustomColor, drawSize, drawUndo, drawRedo, drawDelete, drawLayers, drawLayer, drawLayerName, drawAddLayer, drawDeleteLayer, drawShowLayer, drawHideLayer, drawLockLayer, drawUnlockLayer, drawLayerUp, drawLayerDown, compareBefore, compareAfter, compareSlider, cardNumber, cardExpiry, cardCvc, cardName, cardInvalidNumber, cardInvalidExpiry, cardInvalidCvc, validationRequired, validationInvalid, validationEmail, validationUrl, validationMinLength, validationMaxLength, validationMinItems, validationMaxItems, validationMin, validationMax, validationPattern, validationSameAs, keypadDelete, keypadClear, keypadChange, keypadRemaining, seatStage, seatAvailable, seatSelected, seatOccupied, seatLabel, receiptSubtotal, receiptTotal, receiptPaid, receiptChange, configRequired, configOptional, configChooseUpTo, configChooseAtLeast, configChooseExactly, configUnavailable, configQuantity, configIncrease, configDecrease, availNight, availNights, availMinNights, availCheckIn, availCheckOut, availSelectCheckIn, availSelectCheckOut, availUnavailable, chartOpen, chartHigh, chartLow, chartClose, chartVolume, bookPrice, bookSize, bookTotal, bookSpread, mortgagePrice, mortgageDown, mortgageRate, mortgageTerm, mortgageYears, mortgageLoan, mortgageMonthly, mortgageFirstPayment, mortgageLastPayment, mortgagePrincipal, mortgageInterest, mortgageTotal, mortgageSchedule, mortgageYear, mortgageBalance, bodyFront, bodyBack, bodyRight, bodyLeft, bodyRear, bodyHead, bodyNeck, bodyChest, bodyAbdomen, bodyPelvis, bodyShoulder, bodyUpperArm, bodyForearm, bodyHand, bodyThigh, bodyKnee, bodyLeg, bodyFoot, bodyUpperBack, bodyLowerBack, bodyGlute, bodyCalf, odontoTooth, odontoUpper, odontoLower, odontoMesial, odontoDistal, odontoBuccal, odontoLingual, odontoOcclusal, odontoCaries, odontoFilling, odontoSealant, odontoCrown, odontoRootCanal, odontoImplant, odontoMissing, odontoExtraction, odontoEraser, vitalsNormal, vitalsHigh, vitalsLow, vitalsNoData, quizCheck, quizNext, quizFinish, quizCorrect, quizIncorrect, quizCorrectAnswer, quizQuestionOf, quizScore, quizPassed, quizFailed, quizRetry, quizTrue, quizFalse, quizSelectAll, quizOrderHint, quizMoveUp, quizMoveDown, quizTypeAnswer, quizTimeLeft, quizReview, certTitle, certPresentedTo, certDate, certId
|
|
12074
|
+
lang, search, noResults, close, cancel, confirm, loading, menu, previous, next, today, more, selectedCount, recordCount, expand, collapse, clear, columns, exportCsv, noGroup, finish, dropText, selectText, maxSizePrefix, remove, selectDate, ok, dateToggleInput, dateToggleCalendar, dateSwitchToYear, dateSwitchToDay, heatmapLess, heatmapMore, meterRemaining, meterUsedOf, phoneCountry, phoneSearchCountry, phoneInvalid, dateInputLabel, selectTime, timeHourSelection, timeMinuteSelection, timePeriodToggle, timeToggleKeyboard, timeToggleDial, timeToggleScroll, sheetExpand, sheetCollapse, sheetDismiss, seekBar, seekBarValue, seekBarShowRemaining, seekBarShowDuration, selectRange, pickStart, pickEnd, previousMonth, nextMonth, selectColor, colorHue, colorSaturation, colorBrightness, colorAlpha, colorEyedropper, colorOriginal, colorFormat, colorRecent, colorPresets, dayView, weekView, allDay, emojiSearch, emojiNoResults, emojiRecent, emojiSkinTone, emojiSkinTones, emojiCategorySmileys, emojiCategoryGestures, emojiCategoryPeople, emojiCategoryAnimals, emojiCategoryNature, emojiCategoryFood, emojiCategoryActivities, emojiCategoryTravel, emojiCategoryObjects, emojiCategorySymbols, emojiCategoryFlags, available, selected, noItems, moveAllRight, moveRight, moveLeft, moveAllLeft, searchCommand, navigateHint, selectHint, openHint, closeHint, loadingMore, noMoreItems, bold, italic, underline, strikethrough, highlight, bulletList, orderedList, blockquote, code, alignLeft, alignCenter, alignRight, undo, redo, link, image, paragraph, heading1, heading2, heading3, insertLink, insertImage, imageUrlLabel, insert, jsonValid, jsonInvalid, jsonFormat, jsonMinify, jsonElements, jsonFields, resultSuccessTitle, resultSuccessDesc, resultErrorTitle, resultErrorDesc, resultWarningTitle, resultWarningDesc, resultInfoTitle, resultInfoDesc, result404Title, result404Desc, result403Title, result403Desc, result500Title, result500Desc, chatTyping, chatRecordingAudio, reorderHandle, reorderGrabbed, reorderMoved, reorderDropped, reorderCancelled, selectAll, clearSearch, kanbanMoved, windowMinimize, windowMaximize, windowRestore, paginationRange, paginationPage, previousPage, nextPage, carousel, carouselItem, sparklineSummary, sliderRangeStart, sliderRangeEnd, mapTitle, mapMarker, mapZoomIn, mapZoomOut, mapResetBearing, mapFindMyLocation, mapLocationNotAvailable, mapEnterFullscreen, mapExitFullscreen, mapToggleAttribution, mapFeedback, mapCtrlScroll, mapCmdScroll, mapTwoFingers, mapLayers, mapSearchLayers, mapNoLayers, mapShowLayer, mapHideLayer, mapOpacity, mapClusterZoom, mapDownload, mapNoBaseLayer, mapHoverInfo, mapNoValue, mapMeasureDistance, mapMeasureArea, mapClearMeasurements, mapDeleteMeasurement, mapDrawPoint, mapDrawLine, mapDrawPolygon, mapDeleteFeature, mapTotal, mapSearchPlaces, mapAddress, mapPressEnterToSearch, mapSearching, mapNoPlaces, mapRouteStop, mapRouteVehicle, spreadsheet, spreadsheetFormula, spreadsheetName, formSubmit, formBuilderEdit, formBuilderPreview, formBuilderJson, formBuilderAddField, formBuilderEmpty, formBuilderForm, formBuilderTitle, formBuilderDescription, formBuilderSubmitLabel, formBuilderLabel, formBuilderName, formBuilderPlaceholder, formBuilderHint, formBuilderRequired, formBuilderWidth, formBuilderWidthFull, formBuilderWidthHalf, formBuilderWidthThird, formBuilderWidthTwoThirds, formBuilderOptions, formBuilderMin, formBuilderMax, formBuilderStep, formBuilderMinLength, formBuilderMaxLength, formBuilderPattern, formBuilderPatternMessage, formBuilderRows, formBuilderShowWhen, formBuilderAlways, formBuilderEquals, formBuilderDuplicate, formBuilderDelete, formBuilderCopy, formBuilderCopied, codeCopy, codeCopied, paneResize, commentPlaceholder, commentReplyTo, commentReply, commentEdit, commentDelete, commentSave, commentSend, commentEdited, commentActions, commentShowReply, commentShowReplies, commentHideReplies, reactionAdd, reactionCount, avatarGroupMore, formBuilderSubmitted, formBuilderSelectField, formFieldText, formFieldEmail, formFieldPassword, formFieldTel, formFieldUrl, formFieldTextarea, formFieldNumber, formFieldSelect, formFieldAutocomplete, formFieldRadio, formFieldCheckbox, formFieldSwitch, formFieldDate, formFieldTime, formFieldSlider, formFieldRating, formFieldPhone, formFieldHeading, formFieldDivider, pdfSignSignature, pdfSignInitials, pdfSignName, pdfSignDate, pdfSignText, pdfSignCheckbox, pdfSignHere, pdfSignNext, pdfSignFinish, pdfSignProgress, pdfSignDraw, pdfSignTypeIt, pdfSignAdopt, pdfSignAddField, pdfSignRequired, pdfSignDelete, pdfSignComplete, trackingArrives, trackingArrivingNow, trackingDelivered, trackingDelayed, trackingCanceled, trackingShowDetails, trackingHideDetails, filterMatchAll, filterMatchAny, filterAddCondition, filterAddGroup, filterRemoveCondition, filterRemoveGroup, filterField, filterOperator, filterValue, filterFrom, filterTo, filterNoConditions, filterOpContains, filterOpNotContains, filterOpEquals, filterOpNotEquals, filterOpStartsWith, filterOpEndsWith, filterOpGt, filterOpGte, filterOpLt, filterOpLte, filterOpBetween, filterOpIn, filterOpNotIn, filterOpIsTrue, filterOpIsFalse, filterOpIsEmpty, filterOpIsNotEmpty, filterOpAfter, filterOpBefore, cronExpression, cronInvalid, cronNextRuns, cronFreqMinutes, cronFreqHourly, cronFreqDaily, cronFreqWeekly, cronFreqMonthly, cronFreqCustom, cronEvery, cronMinute, cronTime, cronDayOfMonth, cronEveryMinute, cronEveryNMinutes, cronHourlyAt, cronAt, cronEveryNHoursAt, cronMinutesOfHours, cronOnDaysOfMonth, cronInMonths, cronRange, country, timeZone, cameraStart, cameraStarting, cameraCapture, cameraRetake, cameraUsePhoto, cameraSwitch, cameraDenied, cameraUnavailable, cameraUnsupported, cameraFailed, qrHint, qrUnsupported, recorderStart, recorderStop, recorderPause, recorderResume, recorderDiscard, recorderUse, recorderPlay, recorderPausePlayback, recorderRecording, micDenied, micUnavailable, micUnsupported, dashGrabbed, dashPlaced, dashDropped, dashCancelled, dashResize, diffUnchanged, diffSplit, diffUnified, diffNoChanges, notifTitle, notifMarkAllRead, notifAll, notifUnread, notifEmpty, notifToday, notifYesterday, notifDismiss, notifMarkRead, notifMarkUnread, timelineShowMore, timelineShowLess, mediaPlayer, mediaPlay, mediaPause, mediaReplay, mediaSeekBack, mediaSeekForward, mediaSeconds, mediaMute, mediaUnmute, mediaVolume, mediaFullscreen, mediaExitFullscreen, mediaPictureInPicture, mediaSettings, mediaSpeed, mediaSpeedNormal, mediaSubtitles, mediaSubtitlesOff, mediaQuality, mediaQualityAuto, mediaLive, mediaError, mediaRepeat, mediaRepeatOne, mediaShuffle, pdfViewer, pdfThumbnails, pdfOutline, pdfPage, pdfZoom, pdfZoomIn, pdfZoomOut, pdfFitWidth, pdfFitPage, pdfSearch, pdfSearchPrevious, pdfSearchNext, pdfMatchCount, pdfNoMatches, pdfMore, pdfRotate, pdfDownload, pdfPrint, pdfFullscreen, pdfExitFullscreen, pdfPassword, pdfPasswordLabel, pdfWrongPassword, pdfOpen, pdfError, pdfLoading, pdfAnnotate, pdfSelect, pdfHighlight, pdfNote, pdfDraw, pdfEraser, pdfInkWidth, pdfColor, pdfUndo, pdfCopy, pdfDelete, pdfNotePlaceholder, pdfAddComment, flowCanvas, flowNode, flowEdge, flowZoomIn, flowZoomOut, flowFitView, flowLock, flowUnlock, flowUndo, flowRedo, flowMinimap, flowMoved, flowConnected, flowDeleted, flowDeleteEdge, flowDelete, ganttChart, ganttTask, ganttStart, ganttEnd, ganttDuration, ganttProgress, ganttDays, ganttHours, ganttMilestone, ganttQuarter, ganttToday, ganttZoomIn, ganttZoomOut, ganttExpandAll, ganttCollapseAll, ganttExpand, ganttCollapse, ganttUndo, ganttRedo, ganttScaleHour, ganttScaleDay, ganttScaleWeek, ganttScaleMonth, ganttScaleQuarter, ganttScaleYear, ganttMoved, ganttProgressSet, ganttLinked, ganttUnlink, ganttDeleted, ganttDelete, ganttReordered, ganttSlack, ganttCritical, ganttBaseline, ganttEmpty, ganttResize, ganttFit, ganttShowList, ganttHideList, timelineResource, timelineConflict, timelineMoved, timelineEmpty, cropArea, cropRotateLeft, cropRotateRight, cropFlip, cropReset, cropFree, drawCanvas, drawTools, drawMore, drawSelect, drawPan, drawPen, drawBrush, drawMarker, drawHighlighter, drawEraser, drawStrokeEraser, drawLine, drawArrow, drawRect, drawEllipse, drawText, drawFill, drawColor, floorPlan, floorSeats, floorRotate, floorTools, floorMove, floorDrawWall, floorDrawZone, floorAddTable, floorAddDecor, floorDuplicate, floorDelete, floorUndo, floorRedo, floorLabel, floorSeatsField, floorShape, floorRound, floorSquare, floorLong, floorAngle, floorFlip, floorZoomIn, floorZoomOut, floorZoomFit, floorOverlaps, floorSeatN, floorDrawShape, floorShapeHint, floorColor, floorThickness, floorWidth, floorHeight, floorMerge, floorSplit, floorNothingPicked, floorTablesPicked, floorTableN, floorZone, floorWall, floorDeleteCorner, floorFinishWall, floorCancel, floorDecorDoor, floorDecorWindow, floorDecorPlant, floorDecorColumn, floorDecorRestroom, floorDecorKitchen, floorDecorRegister, floorDecorStairs, floorDecorLabel, drawCustomColor, drawSize, drawUndo, drawRedo, drawDelete, drawLayers, drawLayer, drawLayerName, drawAddLayer, drawDeleteLayer, drawShowLayer, drawHideLayer, drawLockLayer, drawUnlockLayer, drawLayerUp, drawLayerDown, compareBefore, compareAfter, compareSlider, cardNumber, cardExpiry, cardCvc, cardName, cardInvalidNumber, cardInvalidExpiry, cardInvalidCvc, validationRequired, validationInvalid, validationEmail, validationUrl, validationMinLength, validationMaxLength, validationMinItems, validationMaxItems, validationMin, validationMax, validationPattern, validationSameAs, keypadDelete, keypadClear, keypadChange, keypadRemaining, seatStage, seatAvailable, seatSelected, seatOccupied, seatLabel, receiptSubtotal, receiptTotal, receiptPaid, receiptChange, configRequired, configOptional, configChooseUpTo, configChooseAtLeast, configChooseExactly, configUnavailable, configQuantity, configIncrease, configDecrease, availNight, availNights, availMinNights, availCheckIn, availCheckOut, availSelectCheckIn, availSelectCheckOut, availUnavailable, chartOpen, chartHigh, chartLow, chartClose, chartVolume, bookPrice, bookSize, bookTotal, bookSpread, mortgagePrice, mortgageDown, mortgageRate, mortgageTerm, mortgageYears, mortgageLoan, mortgageMonthly, mortgageFirstPayment, mortgageLastPayment, mortgagePrincipal, mortgageInterest, mortgageTotal, mortgageSchedule, mortgageYear, mortgageBalance, bodyFront, bodyBack, bodyRight, bodyLeft, bodyRear, bodyHead, bodyNeck, bodyChest, bodyAbdomen, bodyPelvis, bodyShoulder, bodyUpperArm, bodyForearm, bodyHand, bodyThigh, bodyKnee, bodyLeg, bodyFoot, bodyUpperBack, bodyLowerBack, bodyGlute, bodyCalf, odontoTooth, odontoUpper, odontoLower, odontoMesial, odontoDistal, odontoBuccal, odontoLingual, odontoOcclusal, odontoCaries, odontoFilling, odontoSealant, odontoCrown, odontoRootCanal, odontoImplant, odontoMissing, odontoExtraction, odontoEraser, vitalsNormal, vitalsHigh, vitalsLow, vitalsNoData, quizCheck, quizNext, quizFinish, quizCorrect, quizIncorrect, quizCorrectAnswer, quizQuestionOf, quizScore, quizPassed, quizFailed, quizRetry, quizTrue, quizFalse, quizSelectAll, quizOrderHint, quizMoveUp, quizMoveDown, quizTypeAnswer, quizTimeLeft, quizReview, certTitle, certPresentedTo, certDate, certId
|
|
11782
12075
|
|
|
11783
12076
|
## Theme tokens
|
|
11784
12077
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as e } from "./MSpinner-
|
|
1
|
+
import { t as e } from "./MSpinner-CkIVBuGE.js";
|
|
2
2
|
import { t } from "./MIcon-BSsJZhK7.js";
|
|
3
|
-
import { p as n } from "./MIconButton-
|
|
3
|
+
import { p as n } from "./MIconButton-CrBPZidd.js";
|
|
4
4
|
import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, defineComponent as c, normalizeClass as l, normalizeStyle as u, openBlock as d, renderSlot as f, resolveDynamicComponent as p, unref as m, withCtx as h, withDirectives as g } from "vue";
|
|
5
5
|
// src/components/MButton.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var _ = "relative inline-flex items-center justify-center font-medium whitespace-nowrap overflow-hidden transition-[box-shadow,background-color,color] duration-150 select-none cursor-pointer disabled:cursor-not-allowed disabled:shadow-none disabled:text-on-surface/38 before:content-[''] before:pointer-events-none before:absolute before:inset-0 before:bg-current before:opacity-0 before:transition-opacity before:duration-150 enabled:hover:before:opacity-[0.08] enabled:active:before:opacity-[0.
|
|
6
|
+
var _ = "relative inline-flex items-center justify-center font-medium whitespace-nowrap overflow-hidden transition-[box-shadow,background-color,color] duration-150 select-none cursor-pointer disabled:cursor-not-allowed disabled:shadow-none disabled:text-on-surface/38 before:content-[''] before:pointer-events-none before:absolute before:inset-0 before:bg-current before:opacity-0 before:transition-opacity before:duration-150 enabled:hover:before:opacity-[0.08] enabled:focus-visible:before:opacity-[0.1] enabled:active:before:opacity-[0.1]", v = /* @__PURE__ */ c({
|
|
7
7
|
__name: "MButton",
|
|
8
8
|
props: {
|
|
9
9
|
variant: { default: "filled" },
|
|
@@ -168,4 +168,4 @@ var _ = "relative inline-flex items-center justify-center font-medium whitespace
|
|
|
168
168
|
});
|
|
169
169
|
export { v as t };
|
|
170
170
|
|
|
171
|
-
//# sourceMappingURL=MButton-
|
|
171
|
+
//# sourceMappingURL=MButton-B9RCM06i.js.map
|