@m3ui-vue/m3ui-vue 1.1.2 → 1.1.3

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 (88) hide show
  1. package/dist/API.md +135 -5
  2. package/dist/{MIcon-DLOkQduI.js → MIcon-Bxh9j135.js} +15 -8
  3. package/dist/MIcon-Bxh9j135.js.map +1 -0
  4. package/dist/{MMenuItem-DVxKEv1W.js → MMenuItem-BckcR0nW.js} +4 -4
  5. package/dist/{MMenuItem-DVxKEv1W.js.map → MMenuItem-BckcR0nW.js.map} +1 -1
  6. package/dist/{MSlider-BXsBv0ox.js → MSlider-LyH_gy8D.js} +56 -47
  7. package/dist/MSlider-LyH_gy8D.js.map +1 -0
  8. package/dist/{MTextField-rML9jnXs.js → MTextField-FCPOTB0o.js} +65 -64
  9. package/dist/{MTextField-rML9jnXs.js.map → MTextField-FCPOTB0o.js.map} +1 -1
  10. package/dist/api.json +1 -1
  11. package/dist/code-editor.js +2 -2
  12. package/dist/components/MAnimatedNumber.vue.d.ts +27 -0
  13. package/dist/components/MIcon.vue.d.ts +2 -0
  14. package/dist/components/MListGroup.vue.d.ts +23 -0
  15. package/dist/components/MScheduler.vue.d.ts +2 -2
  16. package/dist/components/MScheme.vue.d.ts +60 -0
  17. package/dist/components/MSparkline.vue.d.ts +41 -0
  18. package/dist/components/MWindow.vue.d.ts +2 -2
  19. package/dist/components/_MDrawerItemList.vue.d.ts +2 -0
  20. package/dist/composables/_useSegmentRuns.d.ts +8 -0
  21. package/dist/composables/dynamicColor.d.ts +11 -0
  22. package/dist/composables/useColorPalette.d.ts +3 -1
  23. package/dist/composables/useConfetti.d.ts +32 -0
  24. package/dist/composables/useLocale.d.ts +6 -0
  25. package/dist/index.d.ts +7 -1
  26. package/dist/locales/index.js +21 -0
  27. package/dist/locales/index.js.map +1 -1
  28. package/dist/m3ui-vue.css +1 -1
  29. package/dist/m3ui.js +16187 -15377
  30. package/dist/m3ui.js.map +1 -1
  31. package/dist/map.js +45 -45
  32. package/dist/{material-color-utilities-Cktu8DBU.js → material-color-utilities-C_iikgRm.js} +928 -603
  33. package/dist/material-color-utilities-C_iikgRm.js.map +1 -0
  34. package/dist/rich-text-editor.js +4 -4
  35. package/dist/styles.css +1 -1
  36. package/dist/terminal.js +1 -1
  37. package/dist/{useLocale-CqQrhWFl.js → useLocale-SfQHnJfp.js} +4 -1
  38. package/dist/useLocale-SfQHnJfp.js.map +1 -0
  39. package/package.json +1 -1
  40. package/src/__tests__/MAnimatedNumber.test.ts +106 -0
  41. package/src/__tests__/MIcon.test.ts +19 -0
  42. package/src/__tests__/MListItemShape.test.ts +34 -0
  43. package/src/__tests__/MScheme.test.ts +107 -0
  44. package/src/__tests__/MSparkline.test.ts +96 -0
  45. package/src/__tests__/iconButtonNames.test.ts +124 -0
  46. package/src/__tests__/ssr.test.ts +1 -0
  47. package/src/__tests__/useConfetti.test.ts +81 -0
  48. package/src/components/MAnimatedNumber.vue +301 -0
  49. package/src/components/MAutocomplete.vue +34 -4
  50. package/src/components/MBottomSheet.vue +1 -0
  51. package/src/components/MDataTable.vue +1 -1
  52. package/src/components/MIcon.vue +11 -4
  53. package/src/components/MList.vue +8 -30
  54. package/src/components/MListGroup.vue +66 -0
  55. package/src/components/MMaskField.vue +3 -0
  56. package/src/components/MMultiAutocomplete.vue +5 -1
  57. package/src/components/MMultiSelect.vue +19 -9
  58. package/src/components/MScheme.vue +162 -0
  59. package/src/components/MSearchBar.vue +2 -0
  60. package/src/components/MSelect.vue +44 -10
  61. package/src/components/MSideSheet.vue +3 -0
  62. package/src/components/MSimpleCarousel.vue +6 -0
  63. package/src/components/MSparkline.vue +250 -0
  64. package/src/components/MSplitButton.vue +3 -0
  65. package/src/components/MSpotlightSearch.vue +1 -0
  66. package/src/components/MTable.vue +1 -0
  67. package/src/components/MTagInput.vue +4 -0
  68. package/src/components/MTextField.vue +3 -0
  69. package/src/components/MTour.vue +1 -0
  70. package/src/components/MTreeTable.vue +1 -0
  71. package/src/components/_MTreeNode.vue +3 -0
  72. package/src/composables/_useSegmentRuns.ts +39 -0
  73. package/src/composables/dynamicColor.ts +66 -0
  74. package/src/composables/useColorPalette.ts +2 -2
  75. package/src/composables/useConfetti.ts +204 -0
  76. package/src/composables/useLocale.ts +9 -0
  77. package/src/index.ts +7 -1
  78. package/src/locales/de.ts +3 -0
  79. package/src/locales/es.ts +3 -0
  80. package/src/locales/fr.ts +3 -0
  81. package/src/locales/ja.ts +3 -0
  82. package/src/locales/ko.ts +3 -0
  83. package/src/locales/pt.ts +3 -0
  84. package/src/locales/zh.ts +3 -0
  85. package/dist/MIcon-DLOkQduI.js.map +0 -1
  86. package/dist/MSlider-BXsBv0ox.js.map +0 -1
  87. package/dist/material-color-utilities-Cktu8DBU.js.map +0 -1
  88. package/dist/useLocale-CqQrhWFl.js.map +0 -1
package/dist/API.md CHANGED
@@ -1,4 +1,4 @@
1
- # @m3ui-vue/m3ui-vue 1.1.2 — API reference
1
+ # @m3ui-vue/m3ui-vue 1.1.3 — 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.
@@ -78,6 +78,18 @@ Slots:
78
78
  - `#default` — Alert body content
79
79
  - `#actions` — Optional row of action buttons rendered below the body
80
80
 
81
+ ### MAnimatedNumber
82
+
83
+ A number, time or duration whose digits roll to their new value on a spring when it changes, like an odometer: each digit rolls on its own (up when the value grows, down when it shrinks) and digits that appear or go away open and close. Numbers are formatted with `Intl.NumberFormat` (currency, percent, units, compact), times with `Intl.DateTimeFormat`, both in the app's language; durations as `h:mm:ss`. Tabular figures. Assistive technology reads the formatted value, not the rolling digits. Not an M3 spec component.
84
+
85
+ Props:
86
+ - `value: number | Date` — The value: a number, a `Date` for times, or seconds for a duration
87
+ - `type?: "number" | "datetime" | "duration"` — `number` (Intl.NumberFormat), `datetime` (Intl.DateTimeFormat; a `Date` or a timestamp) or `duration` (seconds as `h:mm:ss`, hours only when there are some). Defaults to `datetime` for a `Date`, `number` otherwise
88
+ - `format?: Intl.NumberFormatOptions | Intl.DateTimeFormatOptions` — Intl options for the type: `{ style: 'currency', currency: 'EUR' }`, `{ style: 'percent' }`, `{ style: 'unit', unit: 'kilometer-per-hour' }`, `{ notation: 'compact' }` for numbers; `{ timeStyle: 'medium' }` (the default), `{ hour: '2-digit', minute: '2-digit' }`, `{ dateStyle: 'short' }` for times. Unused for durations
89
+ - `locale?: string` — BCP-47 language for the format (`es-AR` for Argentine pesos and separators); defaults to the app's locale
90
+ - `spring?: SpringSpec` — The rolling spring; Standard SlowSpatial by default (an unhurried landing, no visible bounce)
91
+ - `animate?: boolean = true` — Roll to new values; false (or the system's reduced motion) jumps to them
92
+
81
93
  ### MAppBar
82
94
 
83
95
  A simple, generic slot-based app bar with leading, default, and trailing areas — a lighter-weight alternative to MTopAppBar for when you don't need its variant/title-row layouts.
@@ -1274,12 +1286,13 @@ export interface HotkeyBinding {
1274
1286
 
1275
1287
  ### MIcon
1276
1288
 
1277
- Renders a Material Symbols Outlined glyph by name. Color follows the surrounding text color (set it with a Tailwind text-* class).
1289
+ Renders a Material Symbols Outlined glyph by name. Color follows the surrounding text color (set it with a Tailwind text-* class). Decorative by default: hidden from assistive technology, which would otherwise read the glyph's ligature text (its name, e.g. "arrow_drop_down"). Give it a `label` when the icon says something on its own.
1278
1290
 
1279
1291
  Props:
1280
1292
  - `name: string` — Material Symbol name (e.g. "settings", "favorite")
1281
1293
  - `size?: number = 24` — Icon size in px
1282
1294
  - `filled?: boolean = false` — Filled glyph (the Material Symbols FILL axis), as M3 draws a selected icon
1295
+ - `label?: string` — What the icon means, when nothing next to it says so: makes it an image with this name instead of decoration
1283
1296
 
1284
1297
  ### MIconButton
1285
1298
 
@@ -1448,7 +1461,7 @@ export interface LightboxItem {
1448
1461
 
1449
1462
  ### MList
1450
1463
 
1451
- 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.
1464
+ 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).
1452
1465
 
1453
1466
  Props:
1454
1467
  - `dense?: boolean = false` — Compact vertical padding on child items
@@ -1463,7 +1476,7 @@ Events:
1463
1476
  - `update:selected(value: string | number | null)` — Fires when a selectable item is clicked (via v-model:selected)
1464
1477
 
1465
1478
  Slots:
1466
- - `#default` — MListItem / MListSubheader children
1479
+ - `#default` — MListItem / MListSubheader / MListGroup children
1467
1480
 
1468
1481
  ### MListDetail
1469
1482
 
@@ -1480,6 +1493,18 @@ Slots:
1480
1493
  - `#list { twoPane: boolean; }` — The list pane. Scrolls on its own and keeps its scroll position while the detail is open
1481
1494
  - `#detail { twoPane: boolean; back: () => void; }` — `back()` returns to the list (sets `showDetail` to false).
1482
1495
 
1496
+ ### MListGroup
1497
+
1498
+ A group of items inside an MList, optionally titled. In a segmented list each group is a rounded run of its own (its first and last items take the large outer corners), set apart from the items and groups around it, like the grouped cards of a settings screen. Elsewhere it only groups and titles its items. Assistive technology announces it as a nested list named by its title.
1499
+
1500
+ Props:
1501
+ - `title?: string` — Heading above the group, styled like MListSubheader
1502
+ - `inset?: boolean = false` — Align the title with items that have a leading icon (adds left padding)
1503
+
1504
+ Slots:
1505
+ - `#title` — Custom title content, replacing the title prop
1506
+ - `#default` — MListItem children
1507
+
1483
1508
  ### MListItem
1484
1509
 
1485
1510
  A row of an MList: headline with optional overline, supporting text, a leading icon, avatar or image, and trailing text, icon, checkbox or switch. It can be a link, be clickable or expand to show nested items.
@@ -2464,6 +2489,24 @@ export interface SchedulerEvent {
2464
2489
  }
2465
2490
  ```
2466
2491
 
2492
+ ### MScheme
2493
+
2494
+ Paints its content with a color scheme of its own, built from a seed color or from an image's dominant color (Material You's content color: an album, a dish or a profile photo coloring its own page), or one of the palettes (a theme picker's previews). Every `bg-*`/`text-*` M3 utility and every component inside it uses the scheme, in light or dark like the rest of the app, while the rest of the app keeps its palette. Its text color is the scheme's `on-surface`; it sets no background.
2495
+
2496
+ Props:
2497
+ - `seed?: string` — Seed color (`#rrggbb`) the scheme is built from
2498
+ - `image?: string` — An image (URL) whose dominant color becomes the seed, picked as Android picks a wallpaper's. Cross-origin images need CORS headers. `seed` wins while both are set
2499
+ - `palette?: string` — One of the palettes (`useColorPalette().palettes`, custom ones included), applied to this element only with its own CSS, in its standard contrast. `seed` and `image` win while set
2500
+ - `variant?: SchemeVariant = "tonal-spot"` — How the seed spreads into the scheme; `content` and `fidelity` keep the seed's own color most visible
2501
+ - `contrast?: number = 0` — Contrast level: 0 standard, 0.5 medium, 1 high (-1 reduced)
2502
+ - `as?: string = "div"` — Element to render
2503
+
2504
+ Events:
2505
+ - `seed(color: string)` — Emitted with the seed color read from `image`
2506
+
2507
+ Slots:
2508
+ - `#default { seed: string | undefined; ready: boolean; }` — The content. Receives `{ seed, ready }`: the seed in use (the image's once it's read) and whether the scheme is applied yet
2509
+
2467
2510
  ### MScrollable
2468
2511
 
2469
2512
  A constrained scroll area — vertical, horizontal, or both directions. Shows the browser's scrollbar, or with `scrollbar="indicator"` M3's thin visual-only scrollbar (Compose's `Modifier.nonInteractiveScrollbar`), which appears while scrolling and fades out after.
@@ -2839,6 +2882,27 @@ Props:
2839
2882
 
2840
2883
  Pushes flex siblings apart — renders a simple `flex: 1` div. Use it inside MFlex/MStack (or any flex container) to push a group of items to the far edge.
2841
2884
 
2885
+ ### MSparkline
2886
+
2887
+ A small trend chart, drawn as SVG with no chart library: a line, an area or bars, for next to a number (a stat card, a table cell, a list item). It fills its box (size it with classes; 96×28px by default), drawn at its real size so dots and bars don't stretch. When the data changes the shape springs to the new values. Screen readers get a summary (first, last, low, high) instead of the drawing. Not an M3 spec component.
2888
+
2889
+ Props:
2890
+ - `data: number[]` — The values, oldest first
2891
+ - `type?: "line" | "bar" | "area" = "line"` — Line, line with a soft fill under it, or bars
2892
+ - `color?: string = "primary"` — An M3 color role (`primary`, `tertiary`, `error`...) or any CSS color
2893
+ - `smooth?: boolean = true` — Smooth curve through the points (monotone: it never overshoots them) instead of straight segments
2894
+ - `showLast?: boolean = true` — A dot on the last point (line and area)
2895
+ - `strokeWidth?: number = 2` — Line width in px
2896
+ - `min?: number` — Fix the bottom of the scale (otherwise the lowest value, or 0 for bars)
2897
+ - `max?: number` — Fix the top of the scale (otherwise the highest value)
2898
+ - `baseline?: number` — A dashed reference line at this value (a target, yesterday's close)
2899
+ - `interactive?: boolean = false` — Follow the pointer with a dot and emit `hover` with the index under it
2900
+ - `label?: string` — Accessible name; defaults to a summary of the data in the app's language
2901
+ - `animate?: boolean = true` — Spring to new data; false (or reduced motion) jumps
2902
+
2903
+ Events:
2904
+ - `hover(index: number | null)` — With `interactive`: the index of the point under the pointer, or null when it leaves
2905
+
2842
2906
  ### MSpinner
2843
2907
 
2844
2908
  A small circular loading spinner — a standard ring, or the M3 Expressive wavy variant. For a larger, shape-morphing loading affordance, see MLoadingIndicator.
@@ -3768,6 +3832,24 @@ Every palette: the built-in ones, plus `createM3UI({ customPalettes })`.
3768
3832
  palettes: Palette[]
3769
3833
  ```
3770
3834
 
3835
+ ### useConfetti
3836
+
3837
+ Confetti for a component: `fire(event)` from the pointer, `fire(el)` from an element, `fire({ from: 'top' })`.
3838
+
3839
+ ```ts
3840
+ useConfetti(): {
3841
+ fire: (origin?: ConfettiOrigin | ConfettiOptions, options?: ConfettiOptions) => void
3842
+ }
3843
+ ```
3844
+
3845
+ ### fireConfetti
3846
+
3847
+ Fires a burst of confetti. Browser only; does nothing under reduced motion.
3848
+
3849
+ ```ts
3850
+ fireConfetti(origin?: ConfettiOrigin, options: ConfettiOptions = {}): void
3851
+ ```
3852
+
3771
3853
  ### SEED_PALETTE
3772
3854
 
3773
3855
  The palette id used while a seed color is active (`useColorPalette().setSeed()`).
@@ -3808,6 +3890,22 @@ The `--color-*` roles a generated scheme sets. `success*` is a library extension
3808
3890
  schemeRoles: readonly ["primary", "on-primary", "primary-container", "on-primary-container", "secondary", "on-secondary", "secondary-container", "on-secondary-container", "tertiary", "on-tertiary", "tertiary-container", "on-tertiary-container", "error", "on-error", "error-container", "on-error-container", "background", "on-background", "surface", "on-surface", "surface-variant", "on-surface-variant", "surface-dim", "surface-bright", "surface-container-lowest", "surface-container-low", "surface-container", "surface-container-high", "surface-container-highest", "outline", "outline-variant", "inverse-surface", "inverse-on-surface", "inverse-primary", "scrim", "shadow", "primary-fixed", "primary-fixed-dim", "on-primary-fixed", "on-primary-fixed-variant", "secondary-fixed", "secondary-fixed-dim", "on-secondary-fixed", "on-secondary-fixed-variant", "tertiary-fixed", "tertiary-fixed-dim", "on-tertiary-fixed", "on-tertiary-fixed-variant"]
3809
3891
  ```
3810
3892
 
3893
+ ### seedFromImage
3894
+
3895
+ The seed color of an image, for `generateScheme`, `useColorPalette().setSeed()` or `MScheme`: what Android does with the wallpaper. Takes a URL (cross-origin images need CORS headers, or the canvas can't be read), an `<img>`, an `ImageBitmap` or a `Blob` (a file the user picked). Browser only.
3896
+
3897
+ ```ts
3898
+ seedFromImage(source: string | HTMLImageElement | ImageBitmap | Blob): Promise<string>
3899
+ ```
3900
+
3901
+ ### seedFromPixels
3902
+
3903
+ The seed color of an image's pixels (RGBA bytes, as `ImageData.data`): its colors quantized and scored the way Android picks a wallpaper's source color (QuantizerCelebi + Score). Fully transparent pixels are skipped.
3904
+
3905
+ ```ts
3906
+ seedFromPixels(rgba: ArrayLike<number>): Promise<string>
3907
+ ```
3908
+
3811
3909
  ### useToast
3812
3910
 
3813
3911
  ```ts
@@ -4248,6 +4346,32 @@ export interface M3InitialState {
4248
4346
  export type Theme = 'light' | 'dark' | 'system'
4249
4347
  ```
4250
4348
 
4349
+ ```ts
4350
+ export interface ConfettiOptions {
4351
+ /** How many pieces (default 80; 160 for `from: 'top'`) */
4352
+ count?: number
4353
+ /** Shapes to pick from (MShape's names) */
4354
+ shapes?: ShapeName[]
4355
+ /** Any CSS colors. Default: the theme's primary, secondary and tertiary roles and their containers, read at the origin */
4356
+ colors?: string[]
4357
+ /** Burst from a point (default) or rain from the top of the screen */
4358
+ from?: 'point' | 'top'
4359
+ /** Burst angle in degrees, 0 = up (default 0) */
4360
+ angle?: number
4361
+ /** Cone the pieces leave in, in degrees (default 70) */
4362
+ spread?: number
4363
+ /** Launch speed in px/s (default 950) */
4364
+ velocity?: number
4365
+ /** Piece size in px (default 14) */
4366
+ size?: number
4367
+ }
4368
+ ```
4369
+
4370
+ ```ts
4371
+ /** Where a burst starts: the pointer of an event, an element's center, or a point in viewport pixels */
4372
+ export type ConfettiOrigin = MouseEvent | PointerEvent | Element | { x: number; y: number }
4373
+ ```
4374
+
4251
4375
  ```ts
4252
4376
  export interface Palette {
4253
4377
  id: string
@@ -4388,6 +4512,10 @@ export interface M3Locale {
4388
4512
  selectedCount: string
4389
4513
  recordCount: string
4390
4514
  expand: string
4515
+ /** Collapses an expanded item (the opposite of `expand`) */
4516
+ collapse: string
4517
+ /** Clears a field's value (the × at its end) */
4518
+ clear: string
4391
4519
  columns: string
4392
4520
  exportCsv: string
4393
4521
  noGroup: string
@@ -4560,6 +4688,8 @@ export interface M3Locale {
4560
4688
  nextPage: string
4561
4689
  carousel: string
4562
4690
  carouselItem: string
4691
+ /** MSparkline's summary for screen readers: {first}, {last}, {min}, {max} */
4692
+ sparklineSummary: string
4563
4693
  // MMap (maplibre controls)
4564
4694
  mapTitle: string
4565
4695
  mapMarker: string
@@ -4693,7 +4823,7 @@ export interface EmojiCategory {
4693
4823
  `M3Locale` keys (pass a partial object to `createM3UI({ locale })`; presets from `@m3ui-vue/m3ui-vue/locales`:
4694
4824
  `esLocale`, `frLocale`, `ptLocale`, `deLocale`, `jaLocale`, `zhLocale`, `koLocale`):
4695
4825
 
4696
- lang, search, noResults, close, cancel, confirm, loading, menu, previous, next, today, more, selectedCount, recordCount, expand, columns, exportCsv, noGroup, finish, dropText, selectText, maxSizePrefix, remove, selectDate, ok, dateToggleInput, dateToggleCalendar, 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, mapTitle, mapMarker, mapZoomIn, mapZoomOut, mapResetBearing, mapFindMyLocation, mapLocationNotAvailable, mapEnterFullscreen, mapExitFullscreen, mapToggleAttribution, mapFeedback, mapCtrlScroll, mapCmdScroll, mapTwoFingers, mapLayers, mapSearchLayers, mapNoLayers, mapShowLayer, mapHideLayer, mapOpacity, mapDownload, mapNoBaseLayer, mapHoverInfo, mapNoValue, mapMeasureDistance, mapMeasureArea, mapClearMeasurements, mapDeleteMeasurement, mapTotal, mapSearchPlaces
4826
+ 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, 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, mapTitle, mapMarker, mapZoomIn, mapZoomOut, mapResetBearing, mapFindMyLocation, mapLocationNotAvailable, mapEnterFullscreen, mapExitFullscreen, mapToggleAttribution, mapFeedback, mapCtrlScroll, mapCmdScroll, mapTwoFingers, mapLayers, mapSearchLayers, mapNoLayers, mapShowLayer, mapHideLayer, mapOpacity, mapDownload, mapNoBaseLayer, mapHoverInfo, mapNoValue, mapMeasureDistance, mapMeasureArea, mapClearMeasurements, mapDeleteMeasurement, mapTotal, mapSearchPlaces
4697
4827
 
4698
4828
  ## Theme tokens
4699
4829
 
@@ -1,7 +1,10 @@
1
1
  import { createElementBlock as e, defineComponent as t, normalizeStyle as n, openBlock as r, toDisplayString as i } from "vue";
2
- //#endregion
3
- //#region src/components/MIcon.vue
4
- var a = /* @__PURE__ */ t({
2
+ //#region src/components/MIcon.vue?vue&type=script&setup=true&lang.ts
3
+ var a = [
4
+ "role",
5
+ "aria-label",
6
+ "aria-hidden"
7
+ ], o = /* @__PURE__ */ t({
5
8
  __name: "MIcon",
6
9
  props: {
7
10
  name: {},
@@ -9,19 +12,23 @@ var a = /* @__PURE__ */ t({
9
12
  filled: {
10
13
  type: Boolean,
11
14
  default: !1
12
- }
15
+ },
16
+ label: {}
13
17
  },
14
18
  setup(t) {
15
- return (a, o) => (r(), e("span", {
19
+ return (o, s) => (r(), e("span", {
16
20
  class: "material-symbols-outlined leading-none",
21
+ role: t.label ? "img" : void 0,
22
+ "aria-label": t.label,
23
+ "aria-hidden": t.label ? void 0 : "true",
17
24
  style: n({
18
25
  fontSize: `${t.size}px`,
19
26
  fontVariationSettings: t.filled ? "'FILL' 1" : void 0
20
27
  })
21
- }, i(t.name), 5));
28
+ }, i(t.name), 13, a));
22
29
  }
23
30
  });
24
31
  //#endregion
25
- export { a as t };
32
+ export { o as t };
26
33
 
27
- //# sourceMappingURL=MIcon-DLOkQduI.js.map
34
+ //# sourceMappingURL=MIcon-Bxh9j135.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MIcon-Bxh9j135.js","names":[],"sources":["../src/components/MIcon.vue","../src/components/MIcon.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Renders a Material Symbols Outlined glyph by name. Color follows the surrounding text color (set it with a\n * Tailwind text-* class). Decorative by default: hidden from assistive technology, which would otherwise read the\n * glyph's ligature text (its name, e.g. \"arrow_drop_down\"). Give it a `label` when the icon says something on its own.\n */\nwithDefaults(defineProps<{\n /** Material Symbol name (e.g. \"settings\", \"favorite\") */\n name: string\n /** Icon size in px */\n size?: number\n /** Filled glyph (the Material Symbols FILL axis), as M3 draws a selected icon */\n filled?: boolean\n /** What the icon means, when nothing next to it says so: makes it an image with this name instead of decoration */\n label?: string\n}>(), { size: 24, filled: false })\n</script>\n\n<template>\n <span\n class=\"material-symbols-outlined leading-none\"\n :role=\"label ? 'img' : undefined\"\n :aria-label=\"label\"\n :aria-hidden=\"label ? undefined : 'true'\"\n :style=\"{ fontSize: `${size}px`, fontVariationSettings: filled ? `'FILL' 1` : undefined }\"\n >{{ name }}</span>\n</template>\n","<script setup lang=\"ts\">\n/**\n * Renders a Material Symbols Outlined glyph by name. Color follows the surrounding text color (set it with a\n * Tailwind text-* class). Decorative by default: hidden from assistive technology, which would otherwise read the\n * glyph's ligature text (its name, e.g. \"arrow_drop_down\"). Give it a `label` when the icon says something on its own.\n */\nwithDefaults(defineProps<{\n /** Material Symbol name (e.g. \"settings\", \"favorite\") */\n name: string\n /** Icon size in px */\n size?: number\n /** Filled glyph (the Material Symbols FILL axis), as M3 draws a selected icon */\n filled?: boolean\n /** What the icon means, when nothing next to it says so: makes it an image with this name instead of decoration */\n label?: string\n}>(), { size: 24, filled: false })\n</script>\n\n<template>\n <span\n class=\"material-symbols-outlined leading-none\"\n :role=\"label ? 'img' : undefined\"\n :aria-label=\"label\"\n :aria-hidden=\"label ? undefined : 'true'\"\n :style=\"{ fontSize: `${size}px`, fontVariationSettings: filled ? `'FILL' 1` : undefined }\"\n >{{ name }}</span>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;oBAmBE,EAAA,GAAA,EAMkB,QAAA;GALhB,OAAM;GACL,MAAM,EAAA,QAAK,QAAW,KAAA;GACtB,cAAY,EAAA;GACZ,eAAa,EAAA,QAAQ,KAAA,IAAS;GAC9B,OAAK,EAAA;IAAA,UAAA,GAAiB,EAAA,KAAI;IAAA,uBAA6B,EAAA,SAAM,aAAgB,KAAA;GAAS,CAAA;EACrF,GAAA,EAAA,EAAA,IAAI,GAAA,IAAA,CAAA"}
@@ -1,6 +1,6 @@
1
- import { i as e } from "./useLocale-CqQrhWFl.js";
2
- import { a as t, c as n, g as r, h as i, n as a, o } from "./MTextField-rML9jnXs.js";
3
- import { t as s } from "./MIcon-DLOkQduI.js";
1
+ import { i as e } from "./useLocale-SfQHnJfp.js";
2
+ import { a as t, c as n, g as r, h as i, n as a, o } from "./MTextField-FCPOTB0o.js";
3
+ import { t as s } from "./MIcon-Bxh9j135.js";
4
4
  import { t as c } from "./_plugin-vue_export-helper-B3ysoDQm.js";
5
5
  import { Fragment as l, Teleport as u, Transition as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineComponent as y, getCurrentInstance as b, inject as x, mergeProps as S, nextTick as C, normalizeClass as w, normalizeStyle as T, onBeforeUnmount as E, onMounted as D, onUnmounted as ee, openBlock as O, provide as k, ref as A, renderList as j, renderSlot as M, resolveDynamicComponent as te, toDisplayString as ne, unref as N, useId as re, useSlots as ie, watch as P, withCtx as F, withDirectives as I, withModifiers as L } from "vue";
6
6
  //#region src/composables/_useScrollLock.ts
@@ -806,4 +806,4 @@ var ge = { class: "flex-1 truncate" }, _e = { key: "root" }, ve = {
806
806
  //#endregion
807
807
  export { me as a, V as c, Q as i, xe as n, Z as o, he as r, U as s, De as t };
808
808
 
809
- //# sourceMappingURL=MMenuItem-DVxKEv1W.js.map
809
+ //# sourceMappingURL=MMenuItem-BckcR0nW.js.map