@m3ui-vue/m3ui-vue 1.4.4 → 1.5.1
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/dist/API.md +29 -7
- package/dist/{MButton-D7M324r9.js → MButton-D_uxtJa-.js} +2 -2
- package/dist/{MButton-D7M324r9.js.map → MButton-D_uxtJa-.js.map} +1 -1
- package/dist/{MDialog-DuOnNF9s.js → MDialog-DT4KAPmn.js} +2 -2
- package/dist/{MDialog-DuOnNF9s.js.map → MDialog-DT4KAPmn.js.map} +1 -1
- package/dist/{MListItem-Bb84X6ex.js → MListItem-CwYrxpPZ.js} +2 -2
- package/dist/{MListItem-Bb84X6ex.js.map → MListItem-CwYrxpPZ.js.map} +1 -1
- package/dist/{MLoadingIndicator-BUGRo2Tu.js → MLoadingIndicator-DhzECYRI.js} +2 -2
- package/dist/{MLoadingIndicator-BUGRo2Tu.js.map → MLoadingIndicator-DhzECYRI.js.map} +1 -1
- package/dist/{MSeekBar-BQUvUqb9.js → MSeekBar-DQPF5FTp.js} +2 -2
- package/dist/{MSeekBar-BQUvUqb9.js.map → MSeekBar-DQPF5FTp.js.map} +1 -1
- package/dist/{MSlider-SFdjE1Hy.js → MSlider-BvoMZTy9.js} +2 -2
- package/dist/{MSlider-SFdjE1Hy.js.map → MSlider-BvoMZTy9.js.map} +1 -1
- package/dist/{MSpinner-DKGNN64_.js → MSpinner-CgcCQhS9.js} +2 -2
- package/dist/{MSpinner-DKGNN64_.js.map → MSpinner-CgcCQhS9.js.map} +1 -1
- package/dist/{MTextField-Utsef6Kk.js → MTextField-BRntFeNR.js} +113 -79
- package/dist/MTextField-BRntFeNR.js.map +1 -0
- package/dist/{MTooltip-BhTFQ9Z2.js → MTooltip-YyF1CO75.js} +4 -4
- package/dist/{MTooltip-BhTFQ9Z2.js.map → MTooltip-YyF1CO75.js.map} +1 -1
- package/dist/api.json +1 -1
- package/dist/code-editor.js +1 -1
- package/dist/components/MGantt.vue.d.ts +11 -6
- package/dist/components/MGanttControls.vue.d.ts +9 -3
- package/dist/components/MResourceTimeline.vue.d.ts +4 -4
- package/dist/components/MTreeTable.vue.d.ts +1 -1
- package/dist/components/_MTimeSplitter.vue.d.ts +10 -0
- package/dist/composables/_dragCursor.d.ts +2 -0
- package/dist/composables/_fieldLayout.d.ts +47 -0
- package/dist/composables/_useTimeAxis.d.ts +5 -1
- package/dist/composables/useGantt.d.ts +13 -0
- package/dist/composables/useLocale.d.ts +3 -0
- package/dist/draw.js +2 -2
- package/dist/flow.js +1 -1
- package/dist/gantt.js +1608 -1422
- package/dist/gantt.js.map +1 -1
- package/dist/locales/index.js +21 -0
- package/dist/locales/index.js.map +1 -1
- package/dist/m3ui-vue.css +1 -1
- package/dist/m3ui.js +3944 -3961
- package/dist/m3ui.js.map +1 -1
- package/dist/map.js +5 -5
- package/dist/media.js +4 -4
- package/dist/pdf.js +4 -4
- package/dist/rich-text-editor.js +4 -4
- package/dist/styles.css +1 -1
- package/dist/{useLocale-B8YKWg-H.js → useLocale-DLcG3qPC.js} +4 -1
- package/dist/useLocale-DLcG3qPC.js.map +1 -0
- package/package.json +1 -1
- package/src/__tests__/MGantt.test.ts +105 -0
- package/src/__tests__/MResourceTimeline.test.ts +16 -0
- package/src/__tests__/fieldOverflow.test.ts +118 -0
- package/src/components/MAutocomplete.vue +21 -24
- package/src/components/MColorPicker.vue +3 -3
- package/src/components/MDatePicker.vue +4 -4
- package/src/components/MDateRangePicker.vue +4 -4
- package/src/components/MGantt.vue +138 -43
- package/src/components/MGanttControls.vue +36 -8
- package/src/components/MMaskField.vue +16 -24
- package/src/components/MMultiAutocomplete.vue +19 -25
- package/src/components/MMultiSelect.vue +20 -27
- package/src/components/MNumberField.vue +16 -26
- package/src/components/MPinInput.vue +3 -2
- package/src/components/MResourceTimeline.vue +59 -24
- package/src/components/MSearchBar.vue +2 -2
- package/src/components/MSelect.vue +16 -22
- package/src/components/MTagInput.vue +19 -26
- package/src/components/MTextField.vue +18 -46
- package/src/components/MTimePicker.vue +4 -4
- package/src/components/_MTimeHeader.vue +3 -2
- package/src/components/_MTimeSplitter.vue +37 -0
- package/src/composables/_dragCursor.ts +15 -0
- package/src/composables/_fieldLayout.ts +117 -0
- package/src/composables/_ganttTime.ts +2 -1
- package/src/composables/_useTimeAxis.ts +10 -3
- package/src/composables/useGantt.ts +13 -0
- package/src/composables/useLocale.ts +6 -0
- package/src/locales/de.ts +3 -0
- package/src/locales/es.ts +3 -0
- package/src/locales/fr.ts +3 -0
- package/src/locales/ja.ts +3 -0
- package/src/locales/ko.ts +3 -0
- package/src/locales/pt.ts +3 -0
- package/src/locales/zh.ts +3 -0
- package/dist/MTextField-Utsef6Kk.js.map +0 -1
- package/dist/useLocale-B8YKWg-H.js.map +0 -1
|
@@ -9,6 +9,7 @@ import MIcon from './MIcon.vue'
|
|
|
9
9
|
import { useFieldBg } from '../composables/useFieldBg'
|
|
10
10
|
import { useLocale } from '../composables/useLocale'
|
|
11
11
|
import { POPUP_MARGIN, dropdownX, fitPopup } from '../composables/_popupPosition'
|
|
12
|
+
import { OUTLINED_FLOATED_LABEL, vOverflowTitle } from '../composables/_fieldLayout'
|
|
12
13
|
|
|
13
14
|
const props = withDefaults(defineProps<{
|
|
14
15
|
/** Selected time (HH:MM, v-model) */
|
|
@@ -162,8 +163,8 @@ onUnmounted(() => {
|
|
|
162
163
|
@click="!disabled && (open = !open)"
|
|
163
164
|
>
|
|
164
165
|
<MIcon name="schedule" :size="24" class="shrink-0" :class="disabled ? 'text-on-surface/38' : 'text-on-surface-variant'" />
|
|
165
|
-
<span v-if="displayValue" class="flex-1 font-mono" :class="disabled ? 'text-on-surface/38' : 'text-on-surface'">{{ displayValue }}</span>
|
|
166
|
-
<span v-else class="flex-1" :class="disabled ? 'text-on-surface/38' : 'text-on-surface-variant'">{{ label || placeholder || locale.selectTime }}</span>
|
|
166
|
+
<span v-overflow-title v-if="displayValue" class="min-w-0 truncate flex-1 font-mono" :class="disabled ? 'text-on-surface/38' : 'text-on-surface'">{{ displayValue }}</span>
|
|
167
|
+
<span v-overflow-title v-else class="min-w-0 truncate flex-1" :class="disabled ? 'text-on-surface/38' : 'text-on-surface-variant'">{{ label || placeholder || locale.selectTime }}</span>
|
|
167
168
|
<MIcon
|
|
168
169
|
v-if="modelValue"
|
|
169
170
|
name="close"
|
|
@@ -174,8 +175,7 @@ onUnmounted(() => {
|
|
|
174
175
|
</button>
|
|
175
176
|
<label
|
|
176
177
|
v-if="label"
|
|
177
|
-
class="
|
|
178
|
-
:class="disabled ? 'text-on-surface/38' : open ? (error ? 'text-error' : 'text-primary') : error ? 'text-error' : 'text-on-surface-variant'"
|
|
178
|
+
:class="[OUTLINED_FLOATED_LABEL, 'transition-colors', disabled ? 'text-on-surface/38' : open ? (error ? 'text-error' : 'text-primary') : error ? 'text-error' : 'text-on-surface-variant']"
|
|
179
179
|
>
|
|
180
180
|
{{ label }}
|
|
181
181
|
</label>
|
|
@@ -12,8 +12,9 @@ defineProps<{
|
|
|
12
12
|
<template>
|
|
13
13
|
<div class="relative shrink-0 border-b border-outline-variant bg-surface-container-low" :style="{ width: `${width}px` }" aria-hidden="true">
|
|
14
14
|
<div class="absolute inset-x-0 top-0 h-7">
|
|
15
|
-
<div v-for="c in topCells" :key="c.key" class="absolute inset-y-0 border-l border-outline-variant/60" :style="{ left: `${c.x}px`, width: `${c.w}px` }">
|
|
16
|
-
|
|
15
|
+
<div v-for="c in topCells" :key="c.key" class="absolute inset-y-0 overflow-hidden border-l border-outline-variant/60" :style="{ left: `${c.x}px`, width: `${c.w}px` }">
|
|
16
|
+
<!-- Clipped to its cell, so a label pushed to its cell's end never runs into the next one -->
|
|
17
|
+
<span class="absolute top-1.5 truncate pl-2 text-label-medium whitespace-nowrap text-on-surface" :style="{ left: `${c.labelX}px`, maxWidth: `${Math.max(0, c.w - c.labelX)}px` }">{{ c.label }}</span>
|
|
17
18
|
</div>
|
|
18
19
|
</div>
|
|
19
20
|
<div class="absolute inset-x-0 bottom-0 h-7">
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
// The divider between MGantt's / MResourceTimeline's list and timeline: a line always there (the list's border),
|
|
3
|
+
// with a grip centered in the view, both primary while hovered, focused or dragged. Wider for a finger. Its
|
|
4
|
+
// listeners (pointerdown, keys, dblclick) fall through from the parent.
|
|
5
|
+
defineProps<{
|
|
6
|
+
label: string
|
|
7
|
+
value: number
|
|
8
|
+
active: boolean
|
|
9
|
+
/** Where the grip's center sits, px from the body's top (the middle of what's in view) */
|
|
10
|
+
gripTop: number
|
|
11
|
+
}>()
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<template>
|
|
15
|
+
<div
|
|
16
|
+
role="separator"
|
|
17
|
+
aria-orientation="vertical"
|
|
18
|
+
:aria-label="label"
|
|
19
|
+
:aria-valuenow="value"
|
|
20
|
+
tabindex="0"
|
|
21
|
+
class="group/split absolute inset-y-0 -right-1 z-30 w-2 cursor-col-resize touch-none outline-none pointer-coarse:-right-3 pointer-coarse:w-6"
|
|
22
|
+
>
|
|
23
|
+
<span
|
|
24
|
+
class="pointer-events-none absolute inset-y-0 left-1/2 w-0.5 -translate-x-1/2 transition-colors duration-150 group-hover/split:bg-primary group-focus-visible/split:bg-primary"
|
|
25
|
+
:class="active ? 'bg-primary' : 'bg-transparent'"
|
|
26
|
+
/>
|
|
27
|
+
<span
|
|
28
|
+
class="pointer-events-none absolute left-1/2 flex h-8 w-3 -translate-1/2 flex-col items-center justify-center gap-[3px] rounded-full border transition-colors duration-150 pointer-coarse:h-10 pointer-coarse:w-4"
|
|
29
|
+
:class="active
|
|
30
|
+
? 'border-primary bg-primary text-on-primary'
|
|
31
|
+
: 'border-outline-variant bg-surface-container-high text-on-surface-variant group-hover/split:border-primary group-hover/split:bg-primary group-hover/split:text-on-primary group-focus-visible/split:border-primary group-focus-visible/split:bg-primary group-focus-visible/split:text-on-primary'"
|
|
32
|
+
:style="{ top: `${gripTop}px` }"
|
|
33
|
+
>
|
|
34
|
+
<span v-for="i in 3" :key="i" class="size-[3px] rounded-full bg-current" />
|
|
35
|
+
</span>
|
|
36
|
+
</div>
|
|
37
|
+
</template>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// While a pointer drag runs (a pan, a resize, a splitter), its cursor stays whatever the pointer passes over, even
|
|
2
|
+
// outside the element it started on, and no text gets selected. The `.m3-drag-cursor` rule lives in MGantt.vue's
|
|
3
|
+
// <style> (all component CSS ships in one stylesheet).
|
|
4
|
+
export function holdDragCursor(cursor: string) {
|
|
5
|
+
const b = document.body
|
|
6
|
+
b.style.cursor = cursor
|
|
7
|
+
b.style.userSelect = 'none'
|
|
8
|
+
b.classList.add('m3-drag-cursor')
|
|
9
|
+
}
|
|
10
|
+
export function releaseDragCursor() {
|
|
11
|
+
const b = document.body
|
|
12
|
+
b.style.cursor = ''
|
|
13
|
+
b.style.userSelect = ''
|
|
14
|
+
b.classList.remove('m3-drag-cursor')
|
|
15
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import type { Directive } from 'vue'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Shared layout of the M3 text-field shell (internal, not exported from the package).
|
|
5
|
+
*
|
|
6
|
+
* Every field draws the same pieces: a 56px box, a label that floats from the middle of the box to its top
|
|
7
|
+
* edge (filled) or onto the border (outlined), an optional leading icon and trailing buttons. The rules that
|
|
8
|
+
* keep long content from running over those pieces live here, so a new field gets them by reusing this:
|
|
9
|
+
*
|
|
10
|
+
* - The label is inset from the right by as much as the box's own right padding (`right`), so it never runs
|
|
11
|
+
* under a trailing button, floated (filled) or not. Floated on an outlined border, it shrinks to its own
|
|
12
|
+
* text but stops 12px before the far corner, whatever its left offset (a leading icon moves it to 44px).
|
|
13
|
+
* - A value shown as text in a fixed-height box (`FIELD_VALUE`) stays on one line and ends in "…", and
|
|
14
|
+
* `vOverflowTitle` puts the whole of it in a tooltip only when it's cut. Screen readers get the full text
|
|
15
|
+
* either way: the ellipsis is only visual.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
export type FieldVariant = 'filled' | 'outlined'
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Right inset of the label, which must equal the field's right padding: `right-4` with nothing trailing,
|
|
22
|
+
* `right-10` with a dropdown arrow, `right-12` with one trailing button, `right-16` with a clear button and
|
|
23
|
+
* an arrow, `right-24` with two 32px buttons (MNumberField's stepper).
|
|
24
|
+
*/
|
|
25
|
+
export type FieldRightInset = 'right-4' | 'right-10' | 'right-12' | 'right-16' | 'right-24'
|
|
26
|
+
|
|
27
|
+
/** Padding matching each inset, for the box itself */
|
|
28
|
+
export const FIELD_PADDING_RIGHT: Record<FieldRightInset, string> = {
|
|
29
|
+
'right-4': 'pr-4',
|
|
30
|
+
'right-10': 'pr-10',
|
|
31
|
+
'right-12': 'pr-12',
|
|
32
|
+
'right-16': 'pr-16',
|
|
33
|
+
'right-24': 'pr-24',
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** One line, cut with "…", allowed to shrink inside its flex row */
|
|
37
|
+
export const FIELD_VALUE = 'block min-w-0 flex-1 truncate'
|
|
38
|
+
|
|
39
|
+
export interface FieldLabelOptions {
|
|
40
|
+
variant: FieldVariant
|
|
41
|
+
/** There is a leading icon (the label starts after it) */
|
|
42
|
+
leading?: boolean
|
|
43
|
+
right: FieldRightInset
|
|
44
|
+
/**
|
|
45
|
+
* `true`/`false` when the component knows whether the label floats; `'peer'` to float it with CSS from
|
|
46
|
+
* the preceding `.peer` input (focused, or its `placeholder=" "` not shown because it has a value)
|
|
47
|
+
*/
|
|
48
|
+
floated: boolean | 'peer'
|
|
49
|
+
/** Color classes (they depend on each component's notion of focus / error / disabled) */
|
|
50
|
+
color: string
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function fieldLabelClasses(o: FieldLabelOptions): string {
|
|
54
|
+
const outlined = o.variant === 'outlined'
|
|
55
|
+
const left = o.leading ? (outlined ? 'left-11' : 'left-12') : outlined ? 'left-3' : 'left-4'
|
|
56
|
+
const base = ['pointer-events-none absolute truncate transition-all duration-200', left, o.right]
|
|
57
|
+
const rest = outlined ? 'top-1/2 -translate-y-1/2 text-body-large' : 'top-[53%] -translate-y-1/2 text-body-large'
|
|
58
|
+
|
|
59
|
+
if (o.floated === 'peer') {
|
|
60
|
+
// Literal class names (Tailwind only sees complete strings)
|
|
61
|
+
const floatedPeer = outlined
|
|
62
|
+
? o.leading
|
|
63
|
+
? 'peer-focus:-top-2.5 peer-focus:translate-y-0 peer-focus:text-label-small peer-focus:right-auto peer-focus:max-w-[calc(100%-3.5rem)] peer-focus:bg-[var(--field-bg)] peer-focus:px-1 ' +
|
|
64
|
+
'peer-[&:not(:placeholder-shown)]:-top-2.5 peer-[&:not(:placeholder-shown)]:translate-y-0 peer-[&:not(:placeholder-shown)]:text-label-small peer-[&:not(:placeholder-shown)]:right-auto peer-[&:not(:placeholder-shown)]:max-w-[calc(100%-3.5rem)] peer-[&:not(:placeholder-shown)]:bg-[var(--field-bg)] peer-[&:not(:placeholder-shown)]:px-1'
|
|
65
|
+
: 'peer-focus:-top-2.5 peer-focus:translate-y-0 peer-focus:text-label-small peer-focus:right-auto peer-focus:max-w-[calc(100%-1.5rem)] peer-focus:bg-[var(--field-bg)] peer-focus:px-1 ' +
|
|
66
|
+
'peer-[&:not(:placeholder-shown)]:-top-2.5 peer-[&:not(:placeholder-shown)]:translate-y-0 peer-[&:not(:placeholder-shown)]:text-label-small peer-[&:not(:placeholder-shown)]:right-auto peer-[&:not(:placeholder-shown)]:max-w-[calc(100%-1.5rem)] peer-[&:not(:placeholder-shown)]:bg-[var(--field-bg)] peer-[&:not(:placeholder-shown)]:px-1'
|
|
67
|
+
: 'peer-focus:top-2 peer-focus:translate-y-0 peer-focus:text-label-small ' +
|
|
68
|
+
'peer-[&:not(:placeholder-shown)]:top-2 peer-[&:not(:placeholder-shown)]:translate-y-0 peer-[&:not(:placeholder-shown)]:text-label-small'
|
|
69
|
+
return [...base, rest, floatedPeer, o.color].join(' ')
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
const floated = outlined
|
|
73
|
+
? `-top-2.5 translate-y-0 text-label-small bg-[var(--field-bg)] px-1 right-auto ${o.leading ? 'max-w-[calc(100%-3.5rem)]' : 'max-w-[calc(100%-1.5rem)]'}`
|
|
74
|
+
: 'top-2 translate-y-0 text-label-small'
|
|
75
|
+
return [...base, o.floated ? floated : rest, o.color].join(' ')
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/** A label always floated on an outlined border (the picker triggers): cut before the far corner */
|
|
79
|
+
export const OUTLINED_FLOATED_LABEL =
|
|
80
|
+
'pointer-events-none absolute -top-2.5 left-3 max-w-[calc(100%-1.5rem)] truncate bg-(--field-bg) px-1 text-label-small'
|
|
81
|
+
|
|
82
|
+
function fullText(el: HTMLElement): string {
|
|
83
|
+
// By tag, not instanceof: the element may come from another realm (an iframe, a test DOM)
|
|
84
|
+
return el.tagName === 'INPUT' || el.tagName === 'TEXTAREA'
|
|
85
|
+
? (el as HTMLInputElement).value
|
|
86
|
+
: (el.textContent ?? '').trim()
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function updateTitle(el: HTMLElement) {
|
|
90
|
+
const cut = el.scrollWidth > el.clientWidth
|
|
91
|
+
const text = cut ? fullText(el) : ''
|
|
92
|
+
if (text) el.title = text
|
|
93
|
+
else el.removeAttribute('title')
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
const hoverHandlers = new WeakMap<HTMLElement, () => void>()
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Puts the element's whole text (an input's value, or its text content) in `title` while it's cut by
|
|
100
|
+
* overflow, measured when the pointer comes in, so a value that fits gets no redundant tooltip.
|
|
101
|
+
*/
|
|
102
|
+
export const vOverflowTitle: Directive<HTMLElement> = {
|
|
103
|
+
mounted(el) {
|
|
104
|
+
const handler = () => updateTitle(el)
|
|
105
|
+
hoverHandlers.set(el, handler)
|
|
106
|
+
el.addEventListener('pointerenter', handler)
|
|
107
|
+
},
|
|
108
|
+
updated(el) {
|
|
109
|
+
// A value changed while hovered: keep the tooltip in step
|
|
110
|
+
if (el.hasAttribute('title')) updateTitle(el)
|
|
111
|
+
},
|
|
112
|
+
beforeUnmount(el) {
|
|
113
|
+
const handler = hoverHandlers.get(el)
|
|
114
|
+
if (handler) el.removeEventListener('pointerenter', handler)
|
|
115
|
+
hoverHandlers.delete(el)
|
|
116
|
+
},
|
|
117
|
+
}
|
|
@@ -175,7 +175,8 @@ export function unitLabel(ms: number, unit: TimeUnit, width: number, lang: strin
|
|
|
175
175
|
case 'week':
|
|
176
176
|
return f({ month: 'short', day: 'numeric' })
|
|
177
177
|
case 'month':
|
|
178
|
-
|
|
178
|
+
// Narrow (a phone, zoomed out): "nov 2026"
|
|
179
|
+
if (top) return f({ month: width >= 160 ? 'long' : 'short', year: 'numeric' })
|
|
179
180
|
return f({ month: width >= 90 ? 'long' : 'short' })
|
|
180
181
|
case 'quarter':
|
|
181
182
|
return quarter.replace('{n}', String(Math.floor(d.getMonth() / 3) + 1))
|
|
@@ -80,10 +80,11 @@ export function useTimeAxis(o: TimeAxisOptions) {
|
|
|
80
80
|
// Zoom around a point of the view (px from the timeline's left edge), sprung on a log scale
|
|
81
81
|
let zoomRaf = 0
|
|
82
82
|
let zoomState: { z: number; v: number; target: number; anchor: number; at: number } | null = null
|
|
83
|
-
|
|
83
|
+
/** `at`: the time that ends up at `anchor` (default the one there now) */
|
|
84
|
+
function zoomTo(target: number, anchor?: number, animate = true, atTime?: number) {
|
|
84
85
|
target = clamp(target)
|
|
85
86
|
const a = anchor ?? timelineView.value / 2
|
|
86
|
-
const at = timeAt(view.value.left + a)
|
|
87
|
+
const at = atTime ?? timeAt(view.value.left + a)
|
|
87
88
|
if (!animate || prefersReducedMotion() || !o.scroller.value) {
|
|
88
89
|
cancelAnimationFrame(zoomRaf)
|
|
89
90
|
zoomRaf = 0
|
|
@@ -124,6 +125,12 @@ export function useTimeAxis(o: TimeAxisOptions) {
|
|
|
124
125
|
const zoomIn = () => zoomTo(zoomTarget() * 1.6)
|
|
125
126
|
const zoomOut = () => zoomTo(zoomTarget() / 1.6)
|
|
126
127
|
const setScale = (s: TimeUnit) => zoomTo(SCALE_PX_PER_DAY[s])
|
|
128
|
+
/** Zooms so a span fills the timeline's width (a margin each side), centered */
|
|
129
|
+
function fit(range: { min: number; max: number }, margin = 24) {
|
|
130
|
+
const days = Math.max((range.max - range.min) / DAY, 1 / 24)
|
|
131
|
+
const room = Math.max(40, timelineView.value - 2 * margin)
|
|
132
|
+
zoomTo(room / days, timelineView.value / 2, false, (range.min + range.max) / 2)
|
|
133
|
+
}
|
|
127
134
|
function scrollToDate(date?: string, opts: { align?: 'start' | 'center'; animate?: boolean } = {}) {
|
|
128
135
|
const ms = date ? parseDate(date) : Date.now()
|
|
129
136
|
const x = xOf(ms) - (opts.align === 'start' ? 24 : timelineView.value / 2)
|
|
@@ -218,7 +225,7 @@ export function useTimeAxis(o: TimeAxisOptions) {
|
|
|
218
225
|
|
|
219
226
|
return {
|
|
220
227
|
ppd, scaleNow, view, timelineView, origin, timelineWidth, todayMs, xOf, timeAt,
|
|
221
|
-
zoomTo, zoomIn, zoomOut, setScale, scrollToDate, units, topCells, bottomCells, offTimes,
|
|
228
|
+
zoomTo, zoomIn, zoomOut, setScale, fit, scrollToDate, units, topCells, bottomCells, offTimes,
|
|
222
229
|
onTouchStart, pinchMove, onTouchEnd, pinching, readView,
|
|
223
230
|
}
|
|
224
231
|
}
|
|
@@ -15,6 +15,8 @@ export interface GanttColumn {
|
|
|
15
15
|
align?: 'start' | 'center' | 'end'
|
|
16
16
|
/** Text for a cell */
|
|
17
17
|
format?: (task: GanttTask) => string
|
|
18
|
+
/** Hidden while the chart (its own width, not the window's) is narrower than this, px */
|
|
19
|
+
hideBelow?: number
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
/** What MGantt provides to everything inside it (MGanttControls, panels of yours), and its template ref exposes */
|
|
@@ -57,6 +59,11 @@ export interface GanttContext {
|
|
|
57
59
|
criticalPath: ComputedRef<GanttCriticalPath>
|
|
58
60
|
/** The date (snapped) under a page x */
|
|
59
61
|
dateAt(clientX: number): string
|
|
62
|
+
/** Whether the task list is hidden (`v-model:grid-collapsed`) */
|
|
63
|
+
gridCollapsed: ComputedRef<boolean>
|
|
64
|
+
setGridCollapsed(collapsed: boolean): void
|
|
65
|
+
/** Zooms and scrolls so every task fits the timeline's width */
|
|
66
|
+
fit(): void
|
|
60
67
|
}
|
|
61
68
|
|
|
62
69
|
export const GANTT_KEY: InjectionKey<GanttContext> = Symbol('m3-gantt')
|
|
@@ -78,6 +85,12 @@ export interface TimelineControls {
|
|
|
78
85
|
scrollToDate(date?: string): void
|
|
79
86
|
expandAll(): void
|
|
80
87
|
collapseAll(): void
|
|
88
|
+
/** Zooms and scrolls so everything fits the timeline's width */
|
|
89
|
+
fit(): void
|
|
90
|
+
/** Hosts with a list that can hide (MGantt) */
|
|
91
|
+
hasList?: ComputedRef<boolean>
|
|
92
|
+
gridCollapsed?: ComputedRef<boolean>
|
|
93
|
+
setGridCollapsed?(collapsed: boolean): void
|
|
81
94
|
}
|
|
82
95
|
export const TIMELINE_CONTROLS_KEY: InjectionKey<TimelineControls> = Symbol('m3-timeline-controls')
|
|
83
96
|
|
|
@@ -375,6 +375,9 @@ export interface M3Locale {
|
|
|
375
375
|
ganttBaseline: string
|
|
376
376
|
ganttEmpty: string
|
|
377
377
|
ganttResize: string
|
|
378
|
+
ganttFit: string
|
|
379
|
+
ganttShowList: string
|
|
380
|
+
ganttHideList: string
|
|
378
381
|
timelineResource: string
|
|
379
382
|
timelineConflict: string
|
|
380
383
|
timelineMoved: string
|
|
@@ -961,6 +964,9 @@ export const defaultLocale: M3Locale = {
|
|
|
961
964
|
ganttBaseline: 'Baseline',
|
|
962
965
|
ganttEmpty: 'No tasks yet',
|
|
963
966
|
ganttResize: 'Resize the task list',
|
|
967
|
+
ganttFit: 'Fit everything',
|
|
968
|
+
ganttShowList: 'Show task list',
|
|
969
|
+
ganttHideList: 'Hide task list',
|
|
964
970
|
timelineResource: 'Resource',
|
|
965
971
|
timelineConflict: 'Overlaps another booking',
|
|
966
972
|
timelineMoved: '{title}: {resource}, {start} to {end}',
|
package/src/locales/de.ts
CHANGED
|
@@ -354,6 +354,9 @@ export const deLocale: M3Locale = {
|
|
|
354
354
|
ganttBaseline: 'Basisplan',
|
|
355
355
|
ganttEmpty: 'Noch keine Vorgänge',
|
|
356
356
|
ganttResize: 'Breite der Vorgangsliste ändern',
|
|
357
|
+
ganttFit: 'Alles einpassen',
|
|
358
|
+
ganttShowList: 'Vorgangsliste einblenden',
|
|
359
|
+
ganttHideList: 'Vorgangsliste ausblenden',
|
|
357
360
|
timelineResource: 'Ressource',
|
|
358
361
|
timelineConflict: 'Überschneidet sich mit einer anderen Buchung',
|
|
359
362
|
timelineMoved: '{title}: {resource}, {start} bis {end}',
|
package/src/locales/es.ts
CHANGED
|
@@ -354,6 +354,9 @@ export const esLocale: M3Locale = {
|
|
|
354
354
|
ganttBaseline: 'Línea base',
|
|
355
355
|
ganttEmpty: 'Todavía no hay tareas',
|
|
356
356
|
ganttResize: 'Cambiar el ancho de la lista de tareas',
|
|
357
|
+
ganttFit: 'Ajustar todo',
|
|
358
|
+
ganttShowList: 'Mostrar la lista de tareas',
|
|
359
|
+
ganttHideList: 'Ocultar la lista de tareas',
|
|
357
360
|
timelineResource: 'Recurso',
|
|
358
361
|
timelineConflict: 'Se superpone con otra reserva',
|
|
359
362
|
timelineMoved: '{title}: {resource}, de {start} a {end}',
|
package/src/locales/fr.ts
CHANGED
|
@@ -354,6 +354,9 @@ export const frLocale: M3Locale = {
|
|
|
354
354
|
ganttBaseline: 'Référence',
|
|
355
355
|
ganttEmpty: 'Aucune tâche pour l\'instant',
|
|
356
356
|
ganttResize: 'Redimensionner la liste des tâches',
|
|
357
|
+
ganttFit: 'Tout afficher',
|
|
358
|
+
ganttShowList: 'Afficher la liste des tâches',
|
|
359
|
+
ganttHideList: 'Masquer la liste des tâches',
|
|
357
360
|
timelineResource: 'Ressource',
|
|
358
361
|
timelineConflict: 'Chevauche une autre réservation',
|
|
359
362
|
timelineMoved: '{title} : {resource}, de {start} à {end}',
|
package/src/locales/ja.ts
CHANGED
|
@@ -354,6 +354,9 @@ export const jaLocale: M3Locale = {
|
|
|
354
354
|
ganttBaseline: 'ベースライン',
|
|
355
355
|
ganttEmpty: 'タスクはまだありません',
|
|
356
356
|
ganttResize: 'タスク一覧の幅を変更',
|
|
357
|
+
ganttFit: '全体を表示',
|
|
358
|
+
ganttShowList: 'タスク一覧を表示',
|
|
359
|
+
ganttHideList: 'タスク一覧を隠す',
|
|
357
360
|
timelineResource: 'リソース',
|
|
358
361
|
timelineConflict: '別の予約と重なっています',
|
|
359
362
|
timelineMoved: '{title}: {resource}、{start}〜{end}',
|
package/src/locales/ko.ts
CHANGED
|
@@ -354,6 +354,9 @@ export const koLocale: M3Locale = {
|
|
|
354
354
|
ganttBaseline: '기준선',
|
|
355
355
|
ganttEmpty: '아직 작업이 없습니다',
|
|
356
356
|
ganttResize: '작업 목록 너비 조정',
|
|
357
|
+
ganttFit: '전체 맞춤',
|
|
358
|
+
ganttShowList: '작업 목록 표시',
|
|
359
|
+
ganttHideList: '작업 목록 숨기기',
|
|
357
360
|
timelineResource: '리소스',
|
|
358
361
|
timelineConflict: '다른 예약과 겹칩니다',
|
|
359
362
|
timelineMoved: '{title}: {resource}, {start}~{end}',
|
package/src/locales/pt.ts
CHANGED
|
@@ -354,6 +354,9 @@ export const ptLocale: M3Locale = {
|
|
|
354
354
|
ganttBaseline: 'Linha de base',
|
|
355
355
|
ganttEmpty: 'Ainda não há tarefas',
|
|
356
356
|
ganttResize: 'Redimensionar a lista de tarefas',
|
|
357
|
+
ganttFit: 'Ajustar tudo',
|
|
358
|
+
ganttShowList: 'Mostrar a lista de tarefas',
|
|
359
|
+
ganttHideList: 'Ocultar a lista de tarefas',
|
|
357
360
|
timelineResource: 'Recurso',
|
|
358
361
|
timelineConflict: 'Sobrepõe outra reserva',
|
|
359
362
|
timelineMoved: '{title}: {resource}, de {start} a {end}',
|
package/src/locales/zh.ts
CHANGED
|
@@ -354,6 +354,9 @@ export const zhLocale: M3Locale = {
|
|
|
354
354
|
ganttBaseline: '基线',
|
|
355
355
|
ganttEmpty: '还没有任务',
|
|
356
356
|
ganttResize: '调整任务列表宽度',
|
|
357
|
+
ganttFit: '显示全部',
|
|
358
|
+
ganttShowList: '显示任务列表',
|
|
359
|
+
ganttHideList: '隐藏任务列表',
|
|
357
360
|
timelineResource: '资源',
|
|
358
361
|
timelineConflict: '与另一个预订重叠',
|
|
359
362
|
timelineMoved: '{title}:{resource},{start} 至 {end}',
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MTextField-Utsef6Kk.js","names":["$slots"],"sources":["../src/composables/useFieldBg.ts","../src/composables/useAutoGrow.ts","../src/composables/useDebounce.ts","../src/components/MTextField.vue","../src/components/MTextField.vue"],"sourcesContent":["import { ref, computed, onMounted, onBeforeUnmount, type Ref } from 'vue'\n\nconst M3_BG_CLASSES = [\n 'bg-surface-container-highest',\n 'bg-surface-container-high',\n 'bg-surface-container-low',\n 'bg-surface-container-lowest',\n 'bg-surface-container',\n 'bg-surface-variant',\n 'bg-surface-bright',\n 'bg-surface-dim',\n 'bg-surface',\n 'bg-background',\n 'bg-inverse-surface',\n 'bg-primary-container',\n 'bg-secondary-container',\n 'bg-tertiary-container',\n 'bg-error-container',\n 'bg-primary-fixed',\n 'bg-primary-fixed-dim',\n 'bg-secondary-fixed',\n 'bg-secondary-fixed-dim',\n 'bg-tertiary-fixed',\n 'bg-tertiary-fixed-dim',\n 'bg-primary',\n 'bg-secondary',\n 'bg-tertiary',\n 'bg-error',\n] as const\n\nfunction findM3BgVar(el: HTMLElement): string | null {\n for (const cls of M3_BG_CLASSES) {\n if (el.classList.contains(cls)) return `var(--color-${cls.slice(3)})`\n }\n return null\n}\n\nfunction isTransparent(color: string): boolean {\n if (!color || color === 'transparent') return true\n const m = color.match(/^rgba?\\(([^)]+)\\)$/)\n if (m) {\n const parts = m[1]!.split(',').map((s) => s.trim())\n if (parts.length === 4 && parseFloat(parts[3]!) === 0) return true\n }\n return false\n}\n\n/**\n * Auto-detects the background behind `containerEl` and exposes it as `--field-bg`.\n * Prefers a CSS variable reference (e.g. var(--color-surface-container-low)) over a\n * raw computed color so the outlined label cutout transitions in sync with the rest\n * of the theme switch instead of lagging behind.\n *\n * @param containerEl The element that receives `--field-bg` as an inline style.\n * @param fieldBgProp Getter for the explicit `fieldBg` prop (overrides auto-detect).\n */\nexport function useFieldBg(\n containerEl: Ref<HTMLElement | null>,\n fieldBgProp: () => string | undefined,\n) {\n const detectedBg = ref<string>('var(--color-surface)')\n\n function applyFieldBg(value: string) {\n detectedBg.value = value\n containerEl.value?.style.setProperty('--field-bg', fieldBgProp() ?? value)\n }\n\n function resolveBg() {\n let el: HTMLElement | null = containerEl.value?.parentElement ?? null\n while (el) {\n const cssVar = findM3BgVar(el)\n if (cssVar) { applyFieldBg(cssVar); return }\n if (el === document.body) { applyFieldBg('var(--color-surface)'); return }\n const bg = getComputedStyle(el).backgroundColor\n if (!isTransparent(bg)) { applyFieldBg(bg); return }\n el = el.parentElement\n }\n applyFieldBg('var(--color-surface)')\n }\n\n let observer: MutationObserver | null = null\n\n onMounted(() => {\n resolveBg()\n observer = new MutationObserver(() => resolveBg())\n observer.observe(document.documentElement, {\n attributes: true,\n attributeFilter: ['class', 'style', 'data-theme'],\n })\n })\n\n onBeforeUnmount(() => observer?.disconnect())\n\n const resolvedFieldBg = computed(() => fieldBgProp() ?? detectedBg.value)\n\n return { resolvedFieldBg }\n}\n","import { getCurrentInstance, onBeforeUnmount, toValue, watch, type MaybeRefOrGetter, type WatchSource } from 'vue'\n\nexport interface AutoGrowOptions {\n /** Fewest rows it shrinks to (default 1) */\n minRows?: MaybeRefOrGetter<number | undefined>\n /** Most rows it grows to; past them it scrolls. Unset grows without limit */\n maxRows?: MaybeRefOrGetter<number | undefined>\n /**\n * The text, when it can change without typing (cleared after sending, an emoji inserted…): a ref or getter, so the\n * height follows. Typing is followed on its own\n */\n value?: WatchSource<unknown>\n}\n\n/**\n * Makes a `<textarea>` grow with its text, between `minRows` and `maxRows` rows, scrolling past the last one: a chat\n * composer, a comment box. Works on any textarea, styled however you like (rows are measured from its computed line\n * height, padding and border). It also follows width changes, which rewrap the text. Returns `resize()` for anything\n * else that changes the text.\n */\nexport function useAutoGrow(target: MaybeRefOrGetter<HTMLTextAreaElement | null | undefined>, options: AutoGrowOptions = {}) {\n let el: HTMLTextAreaElement | null = null\n let observer: ResizeObserver | null = null\n let lastWidth = 0\n\n function resize() {\n if (!el) return\n const cs = getComputedStyle(el)\n const px = (v: string) => parseFloat(v) || 0\n // `normal` line height has no number: about 1.5× the font size\n const lineHeight = px(cs.lineHeight) || px(cs.fontSize) * 1.5 || 24\n const padding = px(cs.paddingTop) + px(cs.paddingBottom)\n const border = cs.boxSizing === 'border-box' ? px(cs.borderTopWidth) + px(cs.borderBottomWidth) : 0\n const extra = (cs.boxSizing === 'border-box' ? padding : 0) + border\n const min = (toValue(options.minRows) ?? 1) * lineHeight + extra\n const maxRows = toValue(options.maxRows)\n const max = maxRows ? maxRows * lineHeight + extra : Infinity\n\n // Collapse first so scrollHeight measures the text, not the current height\n el.style.height = 'auto'\n const content = el.scrollHeight + border + (cs.boxSizing === 'border-box' ? 0 : -padding)\n const height = Math.min(max, Math.max(min, content))\n el.style.height = `${height}px`\n el.style.overflowY = content > max ? 'auto' : 'hidden'\n }\n\n function attach(next: HTMLTextAreaElement | null | undefined) {\n if (el) {\n el.removeEventListener('input', resize)\n observer?.disconnect()\n // Released (autoGrow turned off, another element): back to its own height\n el.style.height = ''\n el.style.overflowY = ''\n }\n el = next ?? null\n if (!el) return\n el.addEventListener('input', resize)\n if (typeof ResizeObserver !== 'undefined') {\n // Only width changes rewrap the text; our own height writes would otherwise loop\n observer ??= new ResizeObserver(([entry]) => {\n const w = entry!.contentRect.width\n if (w !== lastWidth) {\n lastWidth = w\n resize()\n }\n })\n observer.observe(el)\n }\n resize()\n }\n\n watch(() => toValue(target), attach, { immediate: true, flush: 'post' })\n watch([() => toValue(options.minRows), () => toValue(options.maxRows)], () => resize(), { flush: 'post' })\n if (options.value) watch(options.value, () => resize(), { flush: 'post' })\n if (getCurrentInstance()) onBeforeUnmount(() => attach(null))\n\n return { resize }\n}\n","import { onBeforeUnmount } from 'vue'\n\nexport function useDebounce(fn: (...args: any[]) => void, ms: number) {\n let timer: ReturnType<typeof setTimeout> | null = null\n\n function debounced(...args: any[]) {\n if (timer) clearTimeout(timer)\n timer = setTimeout(() => {\n timer = null\n fn(...args)\n }, ms)\n }\n\n function cancel() {\n if (timer) {\n clearTimeout(timer)\n timer = null\n }\n }\n\n onBeforeUnmount(cancel)\n\n return { debounced, cancel }\n}\n","<script setup lang=\"ts\">\n/**\n * The standard single- or multi-line text input, filled or outlined, with floating label.\n *\n * @slot trailing Custom trailing content (e.g. an icon button) — replaces the built-in clear button when\n * present\n * @event update:modelValue Emitted on every keystroke — powers v-model\n * @event debounced Emitted debounce ms after the user stops typing (only when debounce > 0)\n */\nimport { computed, ref, useId, useSlots } from \"vue\";\nimport MIcon from \"./MIcon.vue\";\nimport { useAutoGrow } from \"../composables/useAutoGrow\";\nimport { useFieldBg } from \"../composables/useFieldBg\";\nimport { useDebounce } from \"../composables/useDebounce\";\nimport { useLocale } from '../composables/useLocale'\n\nconst locale = useLocale()\nconst props = withDefaults(\n defineProps<{\n /** Bound value (v-model) */\n modelValue: string | number;\n /** Field label */\n label: string;\n /** HTML input type */\n type?: string;\n /** Visual style */\n variant?: \"filled\" | \"outlined\";\n /** Puts the field in error state (red border and label) */\n error?: boolean;\n /** Error message shown below the field (only visible when error is true) */\n errorLabel?: string;\n /** Hint text shown below the field */\n hint?: string;\n /** Disables the field */\n disabled?: boolean;\n /** Marks as required — adds a red asterisk after the label */\n required?: boolean;\n /** Renders a textarea instead of an input */\n multiline?: boolean;\n /** Textarea rows (when multiline); with autoGrow, the fewest it shrinks to */\n rows?: number;\n /** Multiline only: grows with the text from `rows` up to `maxRows`, instead of a fixed height with a drag handle */\n autoGrow?: boolean;\n /** With autoGrow, the most rows it grows to before scrolling. Unset grows without limit */\n maxRows?: number;\n /** Passed through to the native autocomplete attribute */\n autocomplete?: string;\n /** Material Symbol shown before the input */\n leadingIcon?: string;\n /** Show a clear button when the field has a value */\n clearable?: boolean;\n /**\n * Overrides the auto-detected background color used to cut the floating label out of the outlined border\n */\n fieldBg?: string;\n /** Delay (ms) before firing the @debounced event. v-model always updates immediately */\n debounce?: number;\n }>(),\n {\n type: \"text\",\n variant: \"filled\",\n rows: 3,\n clearable: false,\n debounce: 0,\n },\n);\n\nconst emit = defineEmits<{ \"update:modelValue\": [string]; debounced: [string] }>();\n\nconst id = useId();\nconst slots = useSlots();\n\nconst fieldBgEl = ref<HTMLElement | null>(null);\nconst { resolvedFieldBg } = useFieldBg(fieldBgEl, () => props.fieldBg);\n\nconst { debounced: emitDebounced, cancel: cancelDebounce } = useDebounce((v: string) => emit(\"debounced\", v), props.debounce)\n\nconst textareaEl = ref<HTMLTextAreaElement | null>(null);\nconst inputOnlyEl = ref<HTMLInputElement | null>(null);\nconst fieldEl = computed(() => textareaEl.value ?? inputOnlyEl.value);\nuseAutoGrow(() => (props.multiline && props.autoGrow ? textareaEl.value : null), {\n minRows: () => props.rows,\n maxRows: () => props.maxRows,\n value: () => props.modelValue,\n});\n\nconst showClear = computed(() => props.clearable && String(props.modelValue).length > 0 && !props.disabled)\n\nconst inputClasses = computed(() => {\n const hasTrailing = !!slots.trailing || props.clearable;\n const pl = props.leadingIcon ? \"pl-12\" : \"pl-4\";\n const pr = hasTrailing ? \"pr-12\" : \"pr-4\";\n const size = props.multiline ? (props.autoGrow ? \"resize-none min-h-[56px]\" : \"resize-y min-h-[56px]\") : \"h-14\";\n const base = [\n \"peer block w-full text-body-large text-on-surface outline-none placeholder:text-transparent\",\n \"transition-[border-color,border-width] duration-150\",\n \"disabled:cursor-not-allowed disabled:text-on-surface/38\",\n props.error ? \"caret-error\" : \"caret-primary\",\n size,\n pl,\n pr,\n ];\n\n if (props.variant === \"outlined\") {\n return [\n ...base,\n \"rounded-xs border bg-transparent py-4\",\n props.error\n ? \"border-error focus:border-2 focus:border-error\"\n : \"border-outline hover:border-on-surface focus:border-2 focus:border-primary\",\n \"disabled:border-on-surface/12\",\n ].join(\" \");\n }\n\n return [\n ...base,\n // Multiline: the label's 24px band is a transparent top border rather than padding, so text scrolled up is\n // clipped below the label (at the padding box) instead of running behind it; the background still fills it\n props.multiline\n ? \"rounded-t-xs bg-surface-container-highest border-b border-t-24 border-t-transparent pb-2\"\n : \"rounded-t-xs bg-surface-container-highest border-b pt-6 pb-2\",\n props.error\n ? \"border-b-error focus:border-b-2 focus:border-b-error\"\n : \"border-b-on-surface-variant hover:border-b-on-surface focus:border-b-2 focus:border-b-primary\",\n \"disabled:border-b-on-surface/38 disabled:bg-[color-mix(in_srgb,var(--color-on-surface)_4%,var(--color-surface-container-highest))]\",\n ].join(\" \");\n});\n\nconst labelClasses = computed(() => {\n const left = props.leadingIcon\n ? props.variant === \"outlined\"\n ? \"left-11\"\n : \"left-12\"\n : props.variant === \"outlined\"\n ? \"left-3\"\n : \"left-4\";\n\n const unfloatedTop = props.variant === 'filled' ? 'top-[53%]' : 'top-1/2'\n const base = [\n \"pointer-events-none absolute truncate transition-all duration-200\",\n left,\n \"right-4\",\n `${unfloatedTop} -translate-y-1/2 text-body-large`,\n ];\n\n if (props.variant === \"outlined\") {\n // When floated: drop right-4 (right-auto) and cap max-width so the label\n // shrinks to its own text width. The bg then only covers the glyphs + px-1,\n // cutting the border just where the text sits instead of a long strip.\n return [\n ...base,\n \"peer-focus:-top-2.5 peer-focus:translate-y-0 peer-focus:text-label-small peer-focus:right-auto peer-focus:max-w-[calc(100%-1.5rem)] peer-focus:bg-[var(--field-bg)] peer-focus:px-1\",\n \"peer-[&:not(:placeholder-shown)]:-top-2.5 peer-[&:not(:placeholder-shown)]:translate-y-0 peer-[&:not(:placeholder-shown)]:right-auto peer-[&:not(:placeholder-shown)]:max-w-[calc(100%-1.5rem)]\",\n \"peer-[&:not(:placeholder-shown)]:text-label-small peer-[&:not(:placeholder-shown)]:bg-[var(--field-bg)] peer-[&:not(:placeholder-shown)]:px-1\",\n props.error\n ? \"text-error peer-focus:text-error\"\n : \"text-on-surface-variant peer-focus:text-primary\",\n \"peer-disabled:text-on-surface/38\",\n ].join(\" \");\n }\n\n // Filled: label floats to top-2 (slightly higher than before)\n return [\n ...base,\n \"peer-focus:top-2 peer-focus:translate-y-0 peer-focus:text-label-small\",\n \"peer-[&:not(:placeholder-shown)]:top-2 peer-[&:not(:placeholder-shown)]:translate-y-0 peer-[&:not(:placeholder-shown)]:text-label-small\",\n props.error\n ? \"text-error peer-focus:text-error\"\n : \"text-on-surface-variant peer-focus:text-primary\",\n \"peer-disabled:text-on-surface/38\",\n ].join(\" \");\n});\n\nfunction onInput(event: Event) {\n const target = event.target as HTMLInputElement | HTMLTextAreaElement;\n emit(\"update:modelValue\", target.value);\n if (props.debounce > 0) emitDebounced(target.value)\n}\n\ndefineExpose({\n /** The `<input>` (or `<textarea>`) element */\n inputEl: fieldEl,\n /** Focuses the field */\n focus: (options?: FocusOptions) => fieldEl.value?.focus(options),\n /** Takes focus away from the field */\n blur: () => fieldEl.value?.blur(),\n /** Selects all its text */\n select: () => fieldEl.value?.select(),\n /** Selects part of its text (e.g. a file name without its extension) */\n setSelectionRange: (start: number, end: number, direction?: 'forward' | 'backward' | 'none') => fieldEl.value?.setSelectionRange(start, end, direction),\n})\n</script>\n\n<template>\n <div class=\"flex flex-col gap-1\">\n <!--\n --field-bg: background behind the floating label in outlined mode, so it\n \"cuts through\" the border. Auto-detected from the nearest opaque ancestor\n (see resolveBg); overridable via the fieldBg prop; falls back to surface.\n -->\n <div\n ref=\"fieldBgEl\"\n class=\"relative\"\n :class=\"variant === 'outlined' ? 'mt-2' : ''\"\n :style=\"variant === 'outlined' ? { '--field-bg': resolvedFieldBg } : undefined\"\n >\n <div\n v-if=\"leadingIcon\"\n class=\"pointer-events-none absolute left-3.5\"\n :class=\"[\n multiline ? 'top-[55%] -translate-y-1/2' : variant === 'filled' ? 'top-4.5' : 'top-4',\n disabled ? 'text-on-surface/38' : 'text-on-surface-variant',\n ]\"\n >\n <MIcon :name=\"leadingIcon\" :size=\"24\" />\n </div>\n\n <textarea\n v-if=\"multiline\"\n ref=\"textareaEl\"\n :id=\"id\"\n :value=\"String(modelValue)\"\n :rows=\"rows\"\n :disabled=\"disabled\"\n :required=\"required\"\n placeholder=\" \"\n :class=\"inputClasses\"\n @input=\"onInput\"\n />\n <input\n v-else\n ref=\"inputOnlyEl\"\n :id=\"id\"\n :type=\"type\"\n :value=\"modelValue\"\n :disabled=\"disabled\"\n :required=\"required\"\n :autocomplete=\"autocomplete\"\n placeholder=\" \"\n :class=\"inputClasses\"\n @input=\"onInput\"\n />\n\n <label :for=\"id\" :class=\"labelClasses\">\n {{ label }}<span v-if=\"required\" class=\"text-error\"> *</span>\n </label>\n\n <div v-if=\"$slots.trailing\" class=\"absolute right-2 top-1/2 -translate-y-1/2\">\n <slot name=\"trailing\" />\n </div>\n <button\n :aria-label=\"locale.clear\"\n v-else-if=\"showClear\"\n type=\"button\"\n class=\"absolute right-3 top-1/2 -translate-y-1/2 flex h-6 w-6 cursor-pointer items-center justify-center rounded-full text-on-surface-variant transition-colors hover:bg-on-surface/8 hover:text-on-surface\"\n @click=\"cancelDebounce(); emit('update:modelValue', '')\"\n >\n <MIcon name=\"close\" :size=\"18\" />\n </button>\n </div>\n\n <p v-if=\"error && errorLabel\" class=\"px-4 text-body-small text-error\">{{ errorLabel }}</p>\n <p v-else-if=\"hint\" class=\"px-4 text-body-small text-on-surface-variant\">{{ hint }}</p>\n </div>\n</template>\n","<script setup lang=\"ts\">\n/**\n * The standard single- or multi-line text input, filled or outlined, with floating label.\n *\n * @slot trailing Custom trailing content (e.g. an icon button) — replaces the built-in clear button when\n * present\n * @event update:modelValue Emitted on every keystroke — powers v-model\n * @event debounced Emitted debounce ms after the user stops typing (only when debounce > 0)\n */\nimport { computed, ref, useId, useSlots } from \"vue\";\nimport MIcon from \"./MIcon.vue\";\nimport { useAutoGrow } from \"../composables/useAutoGrow\";\nimport { useFieldBg } from \"../composables/useFieldBg\";\nimport { useDebounce } from \"../composables/useDebounce\";\nimport { useLocale } from '../composables/useLocale'\n\nconst locale = useLocale()\nconst props = withDefaults(\n defineProps<{\n /** Bound value (v-model) */\n modelValue: string | number;\n /** Field label */\n label: string;\n /** HTML input type */\n type?: string;\n /** Visual style */\n variant?: \"filled\" | \"outlined\";\n /** Puts the field in error state (red border and label) */\n error?: boolean;\n /** Error message shown below the field (only visible when error is true) */\n errorLabel?: string;\n /** Hint text shown below the field */\n hint?: string;\n /** Disables the field */\n disabled?: boolean;\n /** Marks as required — adds a red asterisk after the label */\n required?: boolean;\n /** Renders a textarea instead of an input */\n multiline?: boolean;\n /** Textarea rows (when multiline); with autoGrow, the fewest it shrinks to */\n rows?: number;\n /** Multiline only: grows with the text from `rows` up to `maxRows`, instead of a fixed height with a drag handle */\n autoGrow?: boolean;\n /** With autoGrow, the most rows it grows to before scrolling. Unset grows without limit */\n maxRows?: number;\n /** Passed through to the native autocomplete attribute */\n autocomplete?: string;\n /** Material Symbol shown before the input */\n leadingIcon?: string;\n /** Show a clear button when the field has a value */\n clearable?: boolean;\n /**\n * Overrides the auto-detected background color used to cut the floating label out of the outlined border\n */\n fieldBg?: string;\n /** Delay (ms) before firing the @debounced event. v-model always updates immediately */\n debounce?: number;\n }>(),\n {\n type: \"text\",\n variant: \"filled\",\n rows: 3,\n clearable: false,\n debounce: 0,\n },\n);\n\nconst emit = defineEmits<{ \"update:modelValue\": [string]; debounced: [string] }>();\n\nconst id = useId();\nconst slots = useSlots();\n\nconst fieldBgEl = ref<HTMLElement | null>(null);\nconst { resolvedFieldBg } = useFieldBg(fieldBgEl, () => props.fieldBg);\n\nconst { debounced: emitDebounced, cancel: cancelDebounce } = useDebounce((v: string) => emit(\"debounced\", v), props.debounce)\n\nconst textareaEl = ref<HTMLTextAreaElement | null>(null);\nconst inputOnlyEl = ref<HTMLInputElement | null>(null);\nconst fieldEl = computed(() => textareaEl.value ?? inputOnlyEl.value);\nuseAutoGrow(() => (props.multiline && props.autoGrow ? textareaEl.value : null), {\n minRows: () => props.rows,\n maxRows: () => props.maxRows,\n value: () => props.modelValue,\n});\n\nconst showClear = computed(() => props.clearable && String(props.modelValue).length > 0 && !props.disabled)\n\nconst inputClasses = computed(() => {\n const hasTrailing = !!slots.trailing || props.clearable;\n const pl = props.leadingIcon ? \"pl-12\" : \"pl-4\";\n const pr = hasTrailing ? \"pr-12\" : \"pr-4\";\n const size = props.multiline ? (props.autoGrow ? \"resize-none min-h-[56px]\" : \"resize-y min-h-[56px]\") : \"h-14\";\n const base = [\n \"peer block w-full text-body-large text-on-surface outline-none placeholder:text-transparent\",\n \"transition-[border-color,border-width] duration-150\",\n \"disabled:cursor-not-allowed disabled:text-on-surface/38\",\n props.error ? \"caret-error\" : \"caret-primary\",\n size,\n pl,\n pr,\n ];\n\n if (props.variant === \"outlined\") {\n return [\n ...base,\n \"rounded-xs border bg-transparent py-4\",\n props.error\n ? \"border-error focus:border-2 focus:border-error\"\n : \"border-outline hover:border-on-surface focus:border-2 focus:border-primary\",\n \"disabled:border-on-surface/12\",\n ].join(\" \");\n }\n\n return [\n ...base,\n // Multiline: the label's 24px band is a transparent top border rather than padding, so text scrolled up is\n // clipped below the label (at the padding box) instead of running behind it; the background still fills it\n props.multiline\n ? \"rounded-t-xs bg-surface-container-highest border-b border-t-24 border-t-transparent pb-2\"\n : \"rounded-t-xs bg-surface-container-highest border-b pt-6 pb-2\",\n props.error\n ? \"border-b-error focus:border-b-2 focus:border-b-error\"\n : \"border-b-on-surface-variant hover:border-b-on-surface focus:border-b-2 focus:border-b-primary\",\n \"disabled:border-b-on-surface/38 disabled:bg-[color-mix(in_srgb,var(--color-on-surface)_4%,var(--color-surface-container-highest))]\",\n ].join(\" \");\n});\n\nconst labelClasses = computed(() => {\n const left = props.leadingIcon\n ? props.variant === \"outlined\"\n ? \"left-11\"\n : \"left-12\"\n : props.variant === \"outlined\"\n ? \"left-3\"\n : \"left-4\";\n\n const unfloatedTop = props.variant === 'filled' ? 'top-[53%]' : 'top-1/2'\n const base = [\n \"pointer-events-none absolute truncate transition-all duration-200\",\n left,\n \"right-4\",\n `${unfloatedTop} -translate-y-1/2 text-body-large`,\n ];\n\n if (props.variant === \"outlined\") {\n // When floated: drop right-4 (right-auto) and cap max-width so the label\n // shrinks to its own text width. The bg then only covers the glyphs + px-1,\n // cutting the border just where the text sits instead of a long strip.\n return [\n ...base,\n \"peer-focus:-top-2.5 peer-focus:translate-y-0 peer-focus:text-label-small peer-focus:right-auto peer-focus:max-w-[calc(100%-1.5rem)] peer-focus:bg-[var(--field-bg)] peer-focus:px-1\",\n \"peer-[&:not(:placeholder-shown)]:-top-2.5 peer-[&:not(:placeholder-shown)]:translate-y-0 peer-[&:not(:placeholder-shown)]:right-auto peer-[&:not(:placeholder-shown)]:max-w-[calc(100%-1.5rem)]\",\n \"peer-[&:not(:placeholder-shown)]:text-label-small peer-[&:not(:placeholder-shown)]:bg-[var(--field-bg)] peer-[&:not(:placeholder-shown)]:px-1\",\n props.error\n ? \"text-error peer-focus:text-error\"\n : \"text-on-surface-variant peer-focus:text-primary\",\n \"peer-disabled:text-on-surface/38\",\n ].join(\" \");\n }\n\n // Filled: label floats to top-2 (slightly higher than before)\n return [\n ...base,\n \"peer-focus:top-2 peer-focus:translate-y-0 peer-focus:text-label-small\",\n \"peer-[&:not(:placeholder-shown)]:top-2 peer-[&:not(:placeholder-shown)]:translate-y-0 peer-[&:not(:placeholder-shown)]:text-label-small\",\n props.error\n ? \"text-error peer-focus:text-error\"\n : \"text-on-surface-variant peer-focus:text-primary\",\n \"peer-disabled:text-on-surface/38\",\n ].join(\" \");\n});\n\nfunction onInput(event: Event) {\n const target = event.target as HTMLInputElement | HTMLTextAreaElement;\n emit(\"update:modelValue\", target.value);\n if (props.debounce > 0) emitDebounced(target.value)\n}\n\ndefineExpose({\n /** The `<input>` (or `<textarea>`) element */\n inputEl: fieldEl,\n /** Focuses the field */\n focus: (options?: FocusOptions) => fieldEl.value?.focus(options),\n /** Takes focus away from the field */\n blur: () => fieldEl.value?.blur(),\n /** Selects all its text */\n select: () => fieldEl.value?.select(),\n /** Selects part of its text (e.g. a file name without its extension) */\n setSelectionRange: (start: number, end: number, direction?: 'forward' | 'backward' | 'none') => fieldEl.value?.setSelectionRange(start, end, direction),\n})\n</script>\n\n<template>\n <div class=\"flex flex-col gap-1\">\n <!--\n --field-bg: background behind the floating label in outlined mode, so it\n \"cuts through\" the border. Auto-detected from the nearest opaque ancestor\n (see resolveBg); overridable via the fieldBg prop; falls back to surface.\n -->\n <div\n ref=\"fieldBgEl\"\n class=\"relative\"\n :class=\"variant === 'outlined' ? 'mt-2' : ''\"\n :style=\"variant === 'outlined' ? { '--field-bg': resolvedFieldBg } : undefined\"\n >\n <div\n v-if=\"leadingIcon\"\n class=\"pointer-events-none absolute left-3.5\"\n :class=\"[\n multiline ? 'top-[55%] -translate-y-1/2' : variant === 'filled' ? 'top-4.5' : 'top-4',\n disabled ? 'text-on-surface/38' : 'text-on-surface-variant',\n ]\"\n >\n <MIcon :name=\"leadingIcon\" :size=\"24\" />\n </div>\n\n <textarea\n v-if=\"multiline\"\n ref=\"textareaEl\"\n :id=\"id\"\n :value=\"String(modelValue)\"\n :rows=\"rows\"\n :disabled=\"disabled\"\n :required=\"required\"\n placeholder=\" \"\n :class=\"inputClasses\"\n @input=\"onInput\"\n />\n <input\n v-else\n ref=\"inputOnlyEl\"\n :id=\"id\"\n :type=\"type\"\n :value=\"modelValue\"\n :disabled=\"disabled\"\n :required=\"required\"\n :autocomplete=\"autocomplete\"\n placeholder=\" \"\n :class=\"inputClasses\"\n @input=\"onInput\"\n />\n\n <label :for=\"id\" :class=\"labelClasses\">\n {{ label }}<span v-if=\"required\" class=\"text-error\"> *</span>\n </label>\n\n <div v-if=\"$slots.trailing\" class=\"absolute right-2 top-1/2 -translate-y-1/2\">\n <slot name=\"trailing\" />\n </div>\n <button\n :aria-label=\"locale.clear\"\n v-else-if=\"showClear\"\n type=\"button\"\n class=\"absolute right-3 top-1/2 -translate-y-1/2 flex h-6 w-6 cursor-pointer items-center justify-center rounded-full text-on-surface-variant transition-colors hover:bg-on-surface/8 hover:text-on-surface\"\n @click=\"cancelDebounce(); emit('update:modelValue', '')\"\n >\n <MIcon name=\"close\" :size=\"18\" />\n </button>\n </div>\n\n <p v-if=\"error && errorLabel\" class=\"px-4 text-body-small text-error\">{{ errorLabel }}</p>\n <p v-else-if=\"hint\" class=\"px-4 text-body-small text-on-surface-variant\">{{ hint }}</p>\n </div>\n</template>\n"],"mappings":";;;;AAEA,IAAM,IAAgB;CACpB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAEA,SAAS,EAAY,GAAgC;CACnD,KAAK,IAAM,KAAO,GAChB,IAAI,EAAG,UAAU,SAAS,CAAG,GAAG,OAAO,eAAe,EAAI,MAAM,CAAC,EAAE;CAErE,OAAO;AACT;AAEA,SAAS,EAAc,GAAwB;CAC7C,IAAI,CAAC,KAAS,MAAU,eAAe,OAAO;CAC9C,IAAM,IAAI,EAAM,MAAM,oBAAoB;CAC1C,IAAI,GAAG;EACL,IAAM,IAAQ,EAAE,EAAE,CAAE,MAAM,GAAG,CAAC,CAAC,KAAK,MAAM,EAAE,KAAK,CAAC;EAClD,IAAI,EAAM,WAAW,KAAK,WAAW,EAAM,EAAG,MAAM,GAAG,OAAO;CAChE;CACA,OAAO;AACT;AAWA,SAAgB,EACd,GACA,GACA;CACA,IAAM,IAAa,EAAY,sB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GAAuF,EAAX,EAAA,IAAI,GAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useLocale-B8YKWg-H.js","names":[],"sources":["../src/composables/useLocale.ts"],"sourcesContent":["import { inject, reactive, shallowRef, watchEffect, toValue, type InjectionKey, type MaybeRef } from 'vue'\n\nexport interface M3Locale {\n /** BCP-47 language tag (e.g. 'en', 'es', 'pt') — read by locale-aware components (MRelativeTime) that use Intl formatting. */\n lang: string\n\n // Common\n search: string\n noResults: string\n close: string\n cancel: string\n confirm: string\n loading: string\n menu: string\n\n // Navigation\n previous: string\n next: string\n today: string\n more: string\n\n // Tables\n selectedCount: string\n recordCount: string\n expand: string\n /** Collapses an expanded item (the opposite of `expand`) */\n collapse: string\n /** Clears a field's value (the × at its end) */\n clear: string\n columns: string\n exportCsv: string\n noGroup: string\n\n // Tour\n finish: string\n\n // File upload\n dropText: string\n selectText: string\n maxSizePrefix: string\n remove: string\n\n // Pickers\n selectDate: string\n ok: string\n dateToggleInput: string\n dateToggleCalendar: string\n /** The date pickers' month/year button: opens the year grid */\n dateSwitchToYear: string\n /** The same button while the year grid is open: back to the days */\n dateSwitchToDay: string\n /** Calendar heatmap legend, low end */\n heatmapLess: string\n /** Calendar heatmap legend, high end */\n heatmapMore: string\n /** Meter group: what's left of max */\n meterRemaining: string\n /** Meter group header; {used} and {max} are replaced */\n meterUsedOf: string\n /** Phone input: the country selector */\n phoneCountry: string\n /** Phone input: the country search field */\n phoneSearchCountry: string\n /** Phone input: the number doesn't fit its country's length */\n phoneInvalid: string\n dateInputLabel: string\n selectTime: string\n timeHourSelection: string\n timeMinuteSelection: string\n timePeriodToggle: string\n timeToggleKeyboard: string\n timeToggleDial: string\n timeToggleScroll: string\n sheetExpand: string\n sheetCollapse: string\n sheetDismiss: string\n seekBar: string\n seekBarValue: string\n seekBarShowRemaining: string\n seekBarShowDuration: string\n selectRange: string\n pickStart: string\n pickEnd: string\n previousMonth: string\n nextMonth: string\n\n // Color picker\n selectColor: string\n colorHue: string\n colorSaturation: string\n colorBrightness: string\n colorAlpha: string\n colorEyedropper: string\n colorOriginal: string\n colorFormat: string\n colorRecent: string\n colorPresets: string\n\n // Scheduler\n dayView: string\n weekView: string\n allDay: string\n emojiSearch: string\n emojiNoResults: string\n emojiRecent: string\n emojiSkinTone: string\n emojiSkinTones: string\n emojiCategorySmileys: string\n emojiCategoryGestures: string\n emojiCategoryPeople: string\n emojiCategoryAnimals: string\n emojiCategoryNature: string\n emojiCategoryFood: string\n emojiCategoryActivities: string\n emojiCategoryTravel: string\n emojiCategoryObjects: string\n emojiCategorySymbols: string\n emojiCategoryFlags: string\n\n // Transfer list\n available: string\n selected: string\n noItems: string\n moveAllRight: string\n moveRight: string\n moveLeft: string\n moveAllLeft: string\n\n // Command palette / Spotlight\n searchCommand: string\n navigateHint: string\n selectHint: string\n openHint: string\n closeHint: string\n\n // Infinite scroll\n loadingMore: string\n noMoreItems: string\n\n // Rich text editor\n bold: string\n italic: string\n underline: string\n strikethrough: string\n highlight: string\n bulletList: string\n orderedList: string\n blockquote: string\n code: string\n alignLeft: string\n alignCenter: string\n alignRight: string\n undo: string\n redo: string\n link: string\n image: string\n paragraph: string\n heading1: string\n heading2: string\n heading3: string\n insertLink: string\n insertImage: string\n imageUrlLabel: string\n insert: string\n\n // JSON editor\n jsonValid: string\n jsonInvalid: string\n jsonFormat: string\n jsonMinify: string\n\n // JSON viewer\n jsonElements: string\n jsonFields: string\n\n // Result\n resultSuccessTitle: string\n resultSuccessDesc: string\n resultErrorTitle: string\n resultErrorDesc: string\n resultWarningTitle: string\n resultWarningDesc: string\n resultInfoTitle: string\n resultInfoDesc: string\n result404Title: string\n result404Desc: string\n result403Title: string\n result403Desc: string\n result500Title: string\n result500Desc: string\n\n // Chat bubble\n chatTyping: string\n chatRecordingAudio: string\n\n // Drag & drop list ({pos}/{total} are replaced at runtime)\n reorderHandle: string\n reorderGrabbed: string\n reorderMoved: string\n reorderDropped: string\n reorderCancelled: string\n\n // Transfer list (panes)\n selectAll: string\n clearSearch: string\n\n // Kanban ({column}/{pos}/{total} are replaced at runtime)\n kanbanMoved: string\n // MWindow title bar buttons\n windowMinimize: string\n windowMaximize: string\n windowRestore: string\n // MPagination ({from}/{to}/{total} and {page}/{pages} are replaced at runtime)\n paginationRange: string\n paginationPage: string\n previousPage: string\n nextPage: string\n carousel: string\n carouselItem: string\n /** MSparkline's summary for screen readers: {first}, {last}, {min}, {max} */\n sparklineSummary: string\n /** MSlider range: its two thumbs */\n sliderRangeStart: string\n sliderRangeEnd: string\n // MMap (maplibre controls)\n mapTitle: string\n mapMarker: string\n mapZoomIn: string\n mapZoomOut: string\n mapResetBearing: string\n mapFindMyLocation: string\n mapLocationNotAvailable: string\n mapEnterFullscreen: string\n mapExitFullscreen: string\n mapToggleAttribution: string\n mapFeedback: string\n mapCtrlScroll: string\n mapCmdScroll: string\n mapTwoFingers: string\n mapLayers: string\n mapSearchLayers: string\n mapNoLayers: string\n mapShowLayer: string\n mapHideLayer: string\n mapOpacity: string\n mapDownload: string\n mapNoBaseLayer: string\n mapHoverInfo: string\n mapNoValue: string\n mapMeasureDistance: string\n mapMeasureArea: string\n mapClearMeasurements: string\n mapDeleteMeasurement: string\n mapTotal: string\n mapSearchPlaces: string\n /** MTimeline's button past `limit`; `{count}` is how many entries are hidden */\n timelineShowMore: string\n timelineShowLess: string\n // Media players (MVideoPlayer, MAudioPlayer); `{seconds}` is the skip length\n mediaPlayer: string\n mediaPlay: string\n mediaPause: string\n mediaReplay: string\n mediaSeekBack: string\n mediaSeekForward: string\n mediaSeconds: string\n mediaMute: string\n mediaUnmute: string\n mediaVolume: string\n mediaFullscreen: string\n mediaExitFullscreen: string\n mediaPictureInPicture: string\n mediaSettings: string\n mediaSpeed: string\n mediaSpeedNormal: string\n mediaSubtitles: string\n mediaSubtitlesOff: string\n mediaQuality: string\n mediaQualityAuto: string\n mediaLive: string\n mediaError: string\n mediaRepeat: string\n mediaRepeatOne: string\n mediaShuffle: string\n // MPdfViewer; `{current}`/`{total}` count search matches\n pdfViewer: string\n pdfThumbnails: string\n pdfOutline: string\n pdfPage: string\n pdfZoom: string\n pdfZoomIn: string\n pdfZoomOut: string\n pdfFitWidth: string\n pdfFitPage: string\n pdfSearch: string\n pdfSearchPrevious: string\n pdfSearchNext: string\n pdfMatchCount: string\n pdfNoMatches: string\n pdfMore: string\n pdfRotate: string\n pdfDownload: string\n pdfPrint: string\n pdfFullscreen: string\n pdfExitFullscreen: string\n pdfPassword: string\n pdfPasswordLabel: string\n pdfWrongPassword: string\n pdfOpen: string\n pdfError: string\n pdfLoading: string\n pdfAnnotate: string\n pdfSelect: string\n pdfHighlight: string\n pdfNote: string\n pdfDraw: string\n pdfEraser: string\n pdfInkWidth: string\n pdfColor: string\n pdfUndo: string\n pdfCopy: string\n pdfDelete: string\n pdfNotePlaceholder: string\n pdfAddComment: string\n flowCanvas: string\n flowNode: string\n flowEdge: string\n flowZoomIn: string\n flowZoomOut: string\n flowFitView: string\n flowLock: string\n flowUnlock: string\n flowUndo: string\n flowRedo: string\n flowMinimap: string\n flowMoved: string\n flowConnected: string\n flowDeleted: string\n flowDeleteEdge: string\n flowDelete: string\n ganttChart: string\n ganttTask: string\n ganttStart: string\n ganttEnd: string\n ganttDuration: string\n ganttProgress: string\n ganttDays: string\n ganttHours: string\n ganttMilestone: string\n ganttQuarter: string\n ganttToday: string\n ganttZoomIn: string\n ganttZoomOut: string\n ganttExpandAll: string\n ganttCollapseAll: string\n ganttExpand: string\n ganttCollapse: string\n ganttUndo: string\n ganttRedo: string\n ganttScaleHour: string\n ganttScaleDay: string\n ganttScaleWeek: string\n ganttScaleMonth: string\n ganttScaleQuarter: string\n ganttScaleYear: string\n ganttMoved: string\n ganttProgressSet: string\n ganttLinked: string\n ganttUnlink: string\n ganttDeleted: string\n ganttDelete: string\n ganttReordered: string\n ganttSlack: string\n ganttCritical: string\n ganttBaseline: string\n ganttEmpty: string\n ganttResize: string\n timelineResource: string\n timelineConflict: string\n timelineMoved: string\n timelineEmpty: string\n cropArea: string\n cropRotateLeft: string\n cropRotateRight: string\n cropFlip: string\n cropReset: string\n cropFree: string\n drawCanvas: string\n drawTools: string\n drawMore: string\n drawSelect: string\n drawPan: string\n drawPen: string\n drawBrush: string\n drawMarker: string\n drawHighlighter: string\n drawEraser: string\n drawStrokeEraser: string\n drawLine: string\n drawArrow: string\n drawRect: string\n drawEllipse: string\n drawText: string\n drawFill: string\n drawColor: string\n floorPlan: string\n floorSeats: string\n floorRotate: string\n floorTools: string\n floorMove: string\n floorDrawWall: string\n floorDrawZone: string\n floorAddTable: string\n floorAddDecor: string\n floorDuplicate: string\n floorDelete: string\n floorUndo: string\n floorRedo: string\n floorLabel: string\n floorSeatsField: string\n floorShape: string\n floorRound: string\n floorSquare: string\n floorLong: string\n floorAngle: string\n /** A door's button: hinge it on the other side */\n floorFlip: string\n floorZoomIn: string\n floorZoomOut: string\n floorZoomFit: string\n floorOverlaps: string\n floorSeatN: string\n floorDrawShape: string\n floorShapeHint: string\n floorColor: string\n floorThickness: string\n floorWidth: string\n floorHeight: string\n floorMerge: string\n floorSplit: string\n floorNothingPicked: string\n floorTablesPicked: string\n floorTableN: string\n floorZone: string\n floorWall: string\n floorDeleteCorner: string\n floorFinishWall: string\n floorCancel: string\n floorDecorDoor: string\n floorDecorWindow: string\n floorDecorPlant: string\n floorDecorColumn: string\n floorDecorRestroom: string\n floorDecorKitchen: string\n floorDecorRegister: string\n floorDecorStairs: string\n floorDecorLabel: string\n drawCustomColor: string\n drawSize: string\n drawUndo: string\n drawRedo: string\n drawDelete: string\n drawLayers: string\n drawLayer: string\n drawLayerName: string\n drawAddLayer: string\n drawDeleteLayer: string\n drawShowLayer: string\n drawHideLayer: string\n drawLockLayer: string\n drawUnlockLayer: string\n drawLayerUp: string\n drawLayerDown: string\n // MBeforeAfter\n compareBefore: string\n compareAfter: string\n compareSlider: string\n // MCreditCardInput\n cardNumber: string\n cardExpiry: string\n cardCvc: string\n cardName: string\n cardInvalidNumber: string\n cardInvalidExpiry: string\n cardInvalidCvc: string\n // MPosKeypad\n keypadDelete: string\n keypadClear: string\n keypadChange: string\n keypadRemaining: string\n // MSeatMap ({seat} is replaced at runtime)\n seatStage: string\n seatAvailable: string\n seatSelected: string\n seatOccupied: string\n seatLabel: string\n // MReceipt\n receiptSubtotal: string\n receiptTotal: string\n receiptPaid: string\n receiptChange: string\n // MProductConfigurator ({n} is replaced at runtime)\n configRequired: string\n configOptional: string\n configChooseUpTo: string\n configChooseAtLeast: string\n configChooseExactly: string\n configUnavailable: string\n configQuantity: string\n configIncrease: string\n configDecrease: string\n // MAvailabilityCalendar ({n} is replaced at runtime)\n availNight: string\n availNights: string\n availMinNights: string\n availCheckIn: string\n availCheckOut: string\n availSelectCheckIn: string\n availSelectCheckOut: string\n availUnavailable: string\n // MCandlestickChart\n chartOpen: string\n chartHigh: string\n chartLow: string\n chartClose: string\n chartVolume: string\n // MOrderBook\n bookPrice: string\n bookSize: string\n bookTotal: string\n bookSpread: string\n // MMortgageCalculator ({n} is replaced at runtime)\n mortgagePrice: string\n mortgageDown: string\n mortgageRate: string\n mortgageTerm: string\n mortgageYears: string\n mortgageLoan: string\n mortgageMonthly: string\n mortgageFirstPayment: string\n mortgageLastPayment: string\n mortgagePrincipal: string\n mortgageInterest: string\n mortgageTotal: string\n mortgageSchedule: string\n mortgageYear: string\n mortgageBalance: string\n // MBodyMap ({part} is replaced at runtime)\n bodyFront: string\n bodyBack: string\n bodyRight: string\n bodyLeft: string\n bodyRear: string\n bodyHead: string\n bodyNeck: string\n bodyChest: string\n bodyAbdomen: string\n bodyPelvis: string\n bodyShoulder: string\n bodyUpperArm: string\n bodyForearm: string\n bodyHand: string\n bodyThigh: string\n bodyKnee: string\n bodyLeg: string\n bodyFoot: string\n bodyUpperBack: string\n bodyLowerBack: string\n bodyGlute: string\n bodyCalf: string\n // MOdontogram ({n} is replaced at runtime)\n odontoTooth: string\n odontoUpper: string\n odontoLower: string\n odontoMesial: string\n odontoDistal: string\n odontoBuccal: string\n odontoLingual: string\n odontoOcclusal: string\n odontoCaries: string\n odontoFilling: string\n odontoSealant: string\n odontoCrown: string\n odontoRootCanal: string\n odontoImplant: string\n odontoMissing: string\n odontoExtraction: string\n odontoEraser: string\n // MVitalsChart\n vitalsNormal: string\n vitalsHigh: string\n vitalsLow: string\n vitalsNoData: string\n // MQuiz ({n}, {total}, {score}, {answer} are replaced at runtime)\n quizCheck: string\n quizNext: string\n quizFinish: string\n quizCorrect: string\n quizIncorrect: string\n quizCorrectAnswer: string\n quizQuestionOf: string\n quizScore: string\n quizPassed: string\n quizFailed: string\n quizRetry: string\n quizTrue: string\n quizFalse: string\n quizSelectAll: string\n quizOrderHint: string\n quizMoveUp: string\n quizMoveDown: string\n quizTypeAnswer: string\n quizTimeLeft: string\n quizReview: string\n // MCertificate\n certTitle: string\n certPresentedTo: string\n certDate: string\n certId: string\n}\n\nexport const defaultLocale: M3Locale = {\n lang: 'en',\n\n search: 'Search...',\n noResults: 'No results',\n close: 'Close',\n menu: 'Menu',\n cancel: 'Cancel',\n confirm: 'Confirm',\n loading: 'Loading',\n\n previous: 'Previous',\n next: 'Next',\n today: 'Today',\n more: 'more',\n\n selectedCount: 'selected',\n recordCount: 'record',\n expand: 'Expand',\n collapse: 'Collapse',\n clear: 'Clear',\n columns: 'Columns',\n exportCsv: 'Export CSV',\n noGroup: 'No group',\n\n finish: 'Finish',\n\n dropText: 'Drop files here or',\n selectText: 'browse',\n maxSizePrefix: 'Max.',\n remove: 'Remove',\n\n selectDate: 'Select date',\n ok: 'OK',\n dateToggleInput: 'Switch to text input',\n dateToggleCalendar: 'Switch to calendar',\n dateSwitchToYear: 'Switch to selecting a year',\n dateSwitchToDay: 'Switch to selecting a day',\n heatmapLess: 'Less',\n heatmapMore: 'More',\n meterRemaining: 'Remaining',\n meterUsedOf: '{used} of {max}',\n phoneCountry: 'Country',\n phoneSearchCountry: 'Search country',\n phoneInvalid: 'Incomplete phone number',\n dateInputLabel: 'Date',\n selectTime: 'Select time',\n timeHourSelection: 'Select hour',\n timeMinuteSelection: 'Select minutes',\n timePeriodToggle: 'Select AM or PM',\n timeToggleKeyboard: 'Switch to text input mode',\n timeToggleDial: 'Switch to clock mode',\n timeToggleScroll: 'Switch to scroll mode',\n sheetExpand: 'Expand bottom sheet',\n sheetCollapse: 'Collapse bottom sheet',\n sheetDismiss: 'Dismiss bottom sheet',\n seekBar: 'Seek',\n seekBarValue: '{position} of {duration}',\n seekBarShowRemaining: 'Show remaining time',\n seekBarShowDuration: 'Show total time',\n selectRange: 'Select range',\n pickStart: 'Select start',\n pickEnd: 'Select end',\n previousMonth: 'Previous month',\n nextMonth: 'Next month',\n selectColor: 'Select color',\n colorHue: 'Hue',\n colorSaturation: 'Saturation',\n colorBrightness: 'Brightness',\n colorAlpha: 'Opacity',\n colorEyedropper: 'Pick a color from the screen',\n colorOriginal: 'Original color',\n colorFormat: 'Color format',\n colorRecent: 'Recent',\n colorPresets: 'Presets',\n\n dayView: 'Day',\n weekView: 'Week',\n allDay: 'All day',\n emojiSearch: 'Search emoji',\n emojiNoResults: 'No emoji found',\n emojiRecent: 'Recently used',\n emojiSkinTone: 'Skin tone',\n emojiSkinTones: 'No skin tone|Light|Medium-light|Medium|Medium-dark|Dark',\n emojiCategorySmileys: 'Smileys',\n emojiCategoryGestures: 'Gestures',\n emojiCategoryPeople: 'People',\n emojiCategoryAnimals: 'Animals',\n emojiCategoryNature: 'Nature',\n emojiCategoryFood: 'Food & drink',\n emojiCategoryActivities: 'Activities',\n emojiCategoryTravel: 'Travel & places',\n emojiCategoryObjects: 'Objects',\n emojiCategorySymbols: 'Symbols',\n emojiCategoryFlags: 'Flags',\n\n available: 'Available',\n selected: 'Selected',\n noItems: 'No items',\n moveAllRight: 'Move all right',\n moveRight: 'Move selected right',\n moveLeft: 'Move selected left',\n moveAllLeft: 'Move all left',\n\n searchCommand: 'Search command...',\n navigateHint: 'navigate',\n selectHint: 'select',\n openHint: 'open',\n closeHint: 'close',\n\n loadingMore: 'Loading...',\n noMoreItems: 'No more items',\n\n bold: 'Bold',\n italic: 'Italic',\n underline: 'Underline',\n strikethrough: 'Strikethrough',\n highlight: 'Highlight',\n bulletList: 'Bullet list',\n orderedList: 'Ordered list',\n blockquote: 'Blockquote',\n code: 'Code',\n alignLeft: 'Align left',\n alignCenter: 'Align center',\n alignRight: 'Align right',\n undo: 'Undo',\n redo: 'Redo',\n link: 'Link',\n image: 'Image',\n paragraph: 'Paragraph',\n heading1: 'Heading 1',\n heading2: 'Heading 2',\n heading3: 'Heading 3',\n insertLink: 'Insert link',\n insertImage: 'Insert image',\n imageUrlLabel: 'Image URL',\n insert: 'Insert',\n\n jsonValid: 'Valid',\n jsonInvalid: 'Invalid',\n jsonFormat: 'Format',\n jsonMinify: 'Minify',\n\n jsonElements: 'elements',\n jsonFields: 'fields',\n\n // Result\n resultSuccessTitle: 'Success',\n resultSuccessDesc: 'The action was completed successfully.',\n resultErrorTitle: 'Something went wrong',\n resultErrorDesc: 'An unexpected error occurred. Please try again.',\n resultWarningTitle: 'Warning',\n resultWarningDesc: 'Something needs your attention.',\n resultInfoTitle: 'Information',\n resultInfoDesc: 'Here is something you should know.',\n result404Title: 'Page not found',\n result404Desc: 'The page you are looking for does not exist or has been moved.',\n result403Title: 'Access denied',\n result403Desc: 'You don\\'t have permission to view this resource.',\n result500Title: 'Server error',\n result500Desc: 'The server could not process the request.',\n\n // Chat bubble\n chatTyping: 'Typing…',\n chatRecordingAudio: 'Recording audio…',\n\n // Drag & drop list ({pos}/{total} are replaced at runtime)\n reorderHandle: 'Reorder',\n reorderGrabbed: 'Item grabbed, position {pos} of {total}. Use the arrow keys to move it, Space to drop it, Escape to cancel.',\n reorderMoved: 'Moved to position {pos} of {total}.',\n reorderDropped: 'Item dropped at position {pos} of {total}.',\n reorderCancelled: 'Reorder cancelled.',\n\n // Transfer list (panes)\n selectAll: 'Select all',\n clearSearch: 'Clear search',\n\n // Kanban ({column}/{pos}/{total} are replaced at runtime)\n kanbanMoved: 'Moved to {column}, position {pos} of {total}.',\n windowMinimize: 'Minimize',\n windowMaximize: 'Maximize',\n windowRestore: 'Restore',\n // MPagination ({from}/{to}/{total} and {page}/{pages} are replaced at runtime)\n paginationRange: '{from}–{to} of {total}',\n paginationPage: 'Page {page} of {pages}',\n previousPage: 'Previous page',\n nextPage: 'Next page',\n carousel: 'Carousel',\n carouselItem: '{index} of {count}',\n sparklineSummary: 'From {first} to {last}, low {min}, high {max}',\n sliderRangeStart: 'Range start',\n sliderRangeEnd: 'Range end',\n // MMap (maplibre controls)\n mapTitle: 'Map',\n mapMarker: 'Map marker',\n mapZoomIn: 'Zoom in',\n mapZoomOut: 'Zoom out',\n mapResetBearing: 'Reset bearing to north',\n mapFindMyLocation: 'Find my location',\n mapLocationNotAvailable: 'Location not available',\n mapEnterFullscreen: 'Enter fullscreen',\n mapExitFullscreen: 'Exit fullscreen',\n mapToggleAttribution: 'Toggle attribution',\n mapFeedback: 'Map feedback',\n mapCtrlScroll: 'Use Ctrl + scroll to zoom the map',\n mapCmdScroll: 'Use ⌘ + scroll to zoom the map',\n mapTwoFingers: 'Use two fingers to move the map',\n mapLayers: 'Layers',\n mapSearchLayers: 'Search layers',\n mapNoLayers: 'No layers',\n mapShowLayer: 'Show layer',\n mapHideLayer: 'Hide layer',\n mapOpacity: 'Opacity',\n mapDownload: 'Download',\n mapNoBaseLayer: 'No base layer',\n mapHoverInfo: 'Info on hover',\n mapNoValue: 'Not available',\n mapMeasureDistance: 'Measure distance',\n mapMeasureArea: 'Measure area',\n mapClearMeasurements: 'Clear measurements',\n mapDeleteMeasurement: 'Delete measurement',\n mapTotal: 'Total',\n mapSearchPlaces: 'Search places',\n timelineShowMore: 'Show {count} more',\n timelineShowLess: 'Show less',\n mediaPlayer: 'Media player',\n mediaPlay: 'Play',\n mediaPause: 'Pause',\n mediaReplay: 'Replay',\n mediaSeekBack: 'Back {seconds} seconds',\n mediaSeekForward: 'Forward {seconds} seconds',\n mediaSeconds: '{seconds} seconds',\n mediaMute: 'Mute',\n mediaUnmute: 'Unmute',\n mediaVolume: 'Volume',\n mediaFullscreen: 'Full screen',\n mediaExitFullscreen: 'Exit full screen',\n mediaPictureInPicture: 'Picture-in-picture',\n mediaSettings: 'Settings',\n mediaSpeed: 'Playback speed',\n mediaSpeedNormal: 'Normal',\n mediaSubtitles: 'Subtitles',\n mediaSubtitlesOff: 'Off',\n mediaQuality: 'Quality',\n mediaQualityAuto: 'Auto',\n mediaLive: 'Live',\n mediaError: 'This media can\\'t be played',\n mediaRepeat: 'Repeat',\n mediaRepeatOne: 'Repeat one',\n mediaShuffle: 'Shuffle',\n pdfViewer: 'PDF viewer',\n pdfThumbnails: 'Pages',\n pdfOutline: 'Contents',\n pdfPage: 'Page',\n pdfZoom: 'Zoom',\n pdfZoomIn: 'Zoom in',\n pdfZoomOut: 'Zoom out',\n pdfFitWidth: 'Fit to width',\n pdfFitPage: 'Fit page',\n pdfSearch: 'Find in document',\n pdfSearchPrevious: 'Previous match',\n pdfSearchNext: 'Next match',\n pdfMatchCount: '{current} of {total}',\n pdfNoMatches: 'No matches',\n pdfMore: 'More options',\n pdfRotate: 'Rotate',\n pdfDownload: 'Download',\n pdfPrint: 'Print',\n pdfFullscreen: 'Full screen',\n pdfExitFullscreen: 'Exit full screen',\n pdfPassword: 'This document is password protected',\n pdfPasswordLabel: 'Password',\n pdfWrongPassword: 'Wrong password',\n pdfOpen: 'Open',\n pdfError: 'This PDF can\\'t be opened',\n pdfLoading: 'Loading document',\n pdfAnnotate: 'Annotate',\n pdfSelect: 'Select',\n pdfHighlight: 'Highlight',\n pdfNote: 'Note',\n pdfDraw: 'Draw',\n pdfEraser: 'Eraser',\n pdfInkWidth: 'Line width {n} pt',\n pdfColor: 'Color',\n pdfUndo: 'Undo',\n pdfCopy: 'Copy',\n pdfDelete: 'Delete',\n pdfNotePlaceholder: 'Write a note',\n pdfAddComment: 'Add a comment',\n flowCanvas: 'Diagram',\n flowNode: 'node',\n flowEdge: 'Connection from {source} to {target}',\n flowZoomIn: 'Zoom in',\n flowZoomOut: 'Zoom out',\n flowFitView: 'Fit view',\n flowLock: 'Lock',\n flowUnlock: 'Unlock',\n flowUndo: 'Undo',\n flowRedo: 'Redo',\n flowMinimap: 'Mini map',\n flowMoved: '{label} moved',\n flowConnected: 'Connected {source} to {target}',\n flowDeleted: '{count} deleted',\n flowDeleteEdge: 'Delete connection',\n flowDelete: 'Delete',\n ganttChart: 'Gantt chart',\n ganttTask: 'Task',\n ganttStart: 'Start',\n ganttEnd: 'End',\n ganttDuration: 'Duration',\n ganttProgress: 'Progress',\n ganttDays: '{n} d',\n ganttHours: '{n} h',\n ganttMilestone: 'Milestone',\n ganttQuarter: 'Q{n}',\n ganttToday: 'Today',\n ganttZoomIn: 'Zoom in',\n ganttZoomOut: 'Zoom out',\n ganttExpandAll: 'Expand all',\n ganttCollapseAll: 'Collapse all',\n ganttExpand: 'Expand',\n ganttCollapse: 'Collapse',\n ganttUndo: 'Undo',\n ganttRedo: 'Redo',\n ganttScaleHour: 'Hours',\n ganttScaleDay: 'Days',\n ganttScaleWeek: 'Weeks',\n ganttScaleMonth: 'Months',\n ganttScaleQuarter: 'Quarters',\n ganttScaleYear: 'Years',\n ganttMoved: '{name}: {start} to {end}',\n ganttProgressSet: '{name}: {progress}% done',\n ganttLinked: '{from} linked to {to}',\n ganttUnlink: 'Remove dependency',\n ganttDeleted: '{count} deleted',\n ganttDelete: 'Delete',\n ganttReordered: '{name} moved to row {pos}',\n ganttSlack: 'Slack: {n} d',\n ganttCritical: 'Critical',\n ganttBaseline: 'Baseline',\n ganttEmpty: 'No tasks yet',\n ganttResize: 'Resize the task list',\n timelineResource: 'Resource',\n timelineConflict: 'Overlaps another booking',\n timelineMoved: '{title}: {resource}, {start} to {end}',\n timelineEmpty: 'No resources',\n cropArea: 'Crop area',\n cropRotateLeft: 'Rotate left',\n cropRotateRight: 'Rotate right',\n cropFlip: 'Flip horizontally',\n cropReset: 'Reset',\n cropFree: 'Free',\n drawCanvas: 'Drawing canvas',\n drawTools: 'Drawing tools',\n drawMore: 'More tools',\n drawSelect: 'Select',\n drawPan: 'Pan',\n drawPen: 'Pen',\n drawBrush: 'Brush',\n drawMarker: 'Marker',\n drawHighlighter: 'Highlighter',\n drawEraser: 'Eraser',\n drawStrokeEraser: 'Stroke eraser',\n drawLine: 'Line',\n drawArrow: 'Arrow',\n drawRect: 'Rectangle',\n drawEllipse: 'Ellipse',\n drawText: 'Text',\n drawFill: 'Fill',\n drawColor: 'Color',\n floorPlan: 'Floor plan',\n floorSeats: '{n} seats',\n floorRotate: 'Rotate',\n floorTools: 'Floor plan tools',\n floorMove: 'Move',\n floorDrawWall: 'Wall',\n floorDrawZone: 'Zone',\n floorAddTable: 'Add a table',\n floorAddDecor: 'Add decor',\n floorDuplicate: 'Duplicate',\n floorDelete: 'Delete',\n floorUndo: 'Undo',\n floorRedo: 'Redo',\n floorLabel: 'Label',\n floorSeatsField: 'Seats',\n floorShape: 'Shape',\n floorRound: 'Round',\n floorSquare: 'Square',\n floorLong: 'Long',\n floorAngle: 'Angle',\n floorFlip: 'Flip',\n floorZoomIn: 'Zoom in',\n floorZoomOut: 'Zoom out',\n floorZoomFit: 'Whole plan',\n floorOverlaps: 'Overlaps another table',\n floorSeatN: 'Seat {n}',\n floorDrawShape: 'Zone of any shape',\n floorShapeHint: 'Drag its corners; double-click an edge for a new corner, Delete removes the picked one',\n floorColor: 'Color',\n floorThickness: 'Thickness',\n floorWidth: 'Width',\n floorHeight: 'Height',\n floorMerge: 'Merge tables',\n floorSplit: 'Split',\n floorNothingPicked: 'Pick a table, a zone, a wall or decor to change it',\n floorTablesPicked: '{n} tables picked',\n floorTableN: 'Table {label}',\n floorZone: 'Zone',\n floorWall: 'Wall',\n floorDeleteCorner: 'Delete the corner',\n floorFinishWall: 'Finish the wall',\n floorCancel: 'Cancel',\n floorDecorDoor: 'Door',\n floorDecorWindow: 'Window',\n floorDecorPlant: 'Plant',\n floorDecorColumn: 'Column',\n floorDecorRestroom: 'Restroom',\n floorDecorKitchen: 'Kitchen',\n floorDecorRegister: 'Register',\n floorDecorStairs: 'Stairs',\n floorDecorLabel: 'Text',\n drawCustomColor: 'Custom color',\n drawSize: 'Size',\n drawUndo: 'Undo',\n drawRedo: 'Redo',\n drawDelete: 'Delete selection',\n drawLayers: 'Layers',\n drawLayer: 'Layer {n}',\n drawLayerName: 'Layer name',\n drawAddLayer: 'Add layer',\n drawDeleteLayer: 'Delete layer',\n drawShowLayer: 'Show layer',\n drawHideLayer: 'Hide layer',\n drawLockLayer: 'Lock layer',\n drawUnlockLayer: 'Unlock layer',\n drawLayerUp: 'Move layer up',\n drawLayerDown: 'Move layer down',\n compareBefore: 'Before',\n compareAfter: 'After',\n compareSlider: 'Comparison position',\n cardNumber: 'Card number',\n cardExpiry: 'Expiry (MM/YY)',\n cardCvc: 'CVC',\n cardName: 'Name on card',\n cardInvalidNumber: 'Invalid card number',\n cardInvalidExpiry: 'Invalid or expired date',\n cardInvalidCvc: 'Invalid security code',\n keypadDelete: 'Delete',\n keypadClear: 'Clear',\n keypadChange: 'Change',\n keypadRemaining: 'Remaining',\n seatStage: 'Screen',\n seatAvailable: 'Available',\n seatSelected: 'Selected',\n seatOccupied: 'Occupied',\n seatLabel: 'Seat {seat}',\n receiptSubtotal: 'Subtotal',\n receiptTotal: 'Total',\n receiptPaid: 'Paid',\n receiptChange: 'Change',\n configRequired: 'Required',\n configOptional: 'Optional',\n configChooseUpTo: 'Choose up to {n}',\n configChooseAtLeast: 'Choose at least {n}',\n configChooseExactly: 'Choose {n}',\n configUnavailable: 'Unavailable',\n configQuantity: 'Quantity',\n configIncrease: 'Add one',\n configDecrease: 'Remove one',\n availNight: '1 night',\n availNights: '{n} nights',\n availMinNights: 'Minimum stay: {n} nights',\n availCheckIn: 'Check-in',\n availCheckOut: 'Check-out',\n availSelectCheckIn: 'Select the check-in date',\n availSelectCheckOut: 'Select the check-out date',\n availUnavailable: 'Unavailable',\n chartOpen: 'Open',\n chartHigh: 'High',\n chartLow: 'Low',\n chartClose: 'Close',\n chartVolume: 'Volume',\n bookPrice: 'Price',\n bookSize: 'Size',\n bookTotal: 'Total',\n bookSpread: 'Spread',\n mortgagePrice: 'Property price',\n mortgageDown: 'Down payment',\n mortgageRate: 'Interest rate (yearly %)',\n mortgageTerm: 'Term',\n mortgageYears: '{n} years',\n mortgageLoan: 'Loan amount',\n mortgageMonthly: 'Monthly payment',\n mortgageFirstPayment: 'First payment',\n mortgageLastPayment: 'Last payment',\n mortgagePrincipal: 'Principal',\n mortgageInterest: 'Interest',\n mortgageTotal: 'Total paid',\n mortgageSchedule: 'Amortization schedule',\n mortgageYear: 'Year',\n mortgageBalance: 'Balance',\n bodyFront: 'Front',\n bodyBack: 'Back',\n bodyRight: '{part}, right',\n bodyLeft: '{part}, left',\n bodyRear: '{part} (back)',\n bodyHead: 'Head',\n bodyNeck: 'Neck',\n bodyChest: 'Chest',\n bodyAbdomen: 'Abdomen',\n bodyPelvis: 'Pelvis',\n bodyShoulder: 'Shoulder',\n bodyUpperArm: 'Upper arm',\n bodyForearm: 'Forearm',\n bodyHand: 'Hand',\n bodyThigh: 'Thigh',\n bodyKnee: 'Knee',\n bodyLeg: 'Lower leg',\n bodyFoot: 'Foot',\n bodyUpperBack: 'Upper back',\n bodyLowerBack: 'Lower back',\n bodyGlute: 'Buttock',\n bodyCalf: 'Calf',\n odontoTooth: 'Tooth {n}',\n odontoUpper: 'Upper',\n odontoLower: 'Lower',\n odontoMesial: 'Mesial',\n odontoDistal: 'Distal',\n odontoBuccal: 'Buccal',\n odontoLingual: 'Lingual',\n odontoOcclusal: 'Occlusal',\n odontoCaries: 'Caries',\n odontoFilling: 'Filling',\n odontoSealant: 'Sealant',\n odontoCrown: 'Crown',\n odontoRootCanal: 'Root canal',\n odontoImplant: 'Implant',\n odontoMissing: 'Missing',\n odontoExtraction: 'To extract',\n odontoEraser: 'Eraser',\n vitalsNormal: 'Normal range',\n vitalsHigh: 'High',\n vitalsLow: 'Low',\n vitalsNoData: 'No readings',\n quizCheck: 'Check',\n quizNext: 'Next',\n quizFinish: 'Finish',\n quizCorrect: 'Correct!',\n quizIncorrect: 'Not quite',\n quizCorrectAnswer: 'Correct answer: {answer}',\n quizQuestionOf: 'Question {n} of {total}',\n quizScore: '{score} of {total} points',\n quizPassed: 'Passed',\n quizFailed: 'Not passed',\n quizRetry: 'Try again',\n quizTrue: 'True',\n quizFalse: 'False',\n quizSelectAll: 'Select all that apply',\n quizOrderHint: 'Put these in the right order',\n quizMoveUp: 'Move up',\n quizMoveDown: 'Move down',\n quizTypeAnswer: 'Your answer',\n quizTimeLeft: 'Time left',\n quizReview: 'Review answers',\n certTitle: 'Certificate of completion',\n certPresentedTo: 'This certifies that',\n certDate: 'Date',\n certId: 'Certificate ID',\n}\n\nexport const M3_LOCALE_KEY: InjectionKey<MaybeRef<Partial<M3Locale>>> = Symbol('m3-locale')\n\n/**\n * The locale given to `createM3UI()`, for components rendered outside the app that installed it:\n * `useToast()` and `useNotification()` mount their hosts with an app of their own, where the\n * plugin's `provide` doesn't reach. Inside the user's app the provided locale still wins.\n */\n// Wrapped in an object: a shallowRef holding a ref directly gets that ref unwrapped in its type.\nconst appLocale = shallowRef<{ locale: MaybeRef<Partial<M3Locale>> } | null>(null)\n\n/** @internal Called by `createM3UI()`; not exported from the package. */\nexport function __setAppLocale(locale: MaybeRef<Partial<M3Locale>> | null) {\n appLocale.value = locale ? { locale } : null\n}\n\nexport function useLocale(): M3Locale {\n const provided = inject(M3_LOCALE_KEY, null)\n const locale = reactive({ ...defaultLocale }) as M3Locale\n\n watchEffect(() => {\n Object.assign(locale, defaultLocale, toValue(provided ?? appLocale.value?.locale ?? {}))\n })\n\n return locale\n}\n"],"mappings":";;AA6mBA,IAAa,IAA0B;CACrC,MAAM;CAEN,QAAQ;CACR,WAAW;CACX,OAAO;CACP,MAAM;CACN,QAAQ;CACR,SAAS;C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