@m3ui-vue/m3ui-vue 1.2.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/API.md +2914 -348
- package/dist/MButton-CuNzpoxm.js +172 -0
- package/dist/MButton-CuNzpoxm.js.map +1 -0
- package/dist/MDialog-HxEL-m58.js +173 -0
- package/dist/MDialog-HxEL-m58.js.map +1 -0
- package/dist/MIconButton-DoNotQ9v.js +282 -0
- package/dist/MIconButton-DoNotQ9v.js.map +1 -0
- package/dist/MListItem-DnPtv-hY.js +824 -0
- package/dist/MListItem-DnPtv-hY.js.map +1 -0
- package/dist/MLoadingIndicator-BQMNX6Dx.js +115 -0
- package/dist/MLoadingIndicator-BQMNX6Dx.js.map +1 -0
- package/dist/MMenuItem-Bih0h4-n.js +604 -0
- package/dist/MMenuItem-Bih0h4-n.js.map +1 -0
- package/dist/MProgressBar-BCoruxA-.js +184 -0
- package/dist/MProgressBar-BCoruxA-.js.map +1 -0
- package/dist/MSeekBar-LURE1Ah7.js +435 -0
- package/dist/MSeekBar-LURE1Ah7.js.map +1 -0
- package/dist/MSegmentedButton-DL9JtJFX.js +65 -0
- package/dist/MSegmentedButton-DL9JtJFX.js.map +1 -0
- package/dist/MSlider-_J4IS2_z.js +691 -0
- package/dist/MSlider-_J4IS2_z.js.map +1 -0
- package/dist/MSpinner-BhkMYKOM.js +65 -0
- package/dist/MSpinner-BhkMYKOM.js.map +1 -0
- package/dist/MTextField-CkzwNBWS.js +296 -0
- package/dist/MTextField-CkzwNBWS.js.map +1 -0
- package/dist/MTooltip-B67ZDSGp.js +756 -0
- package/dist/MTooltip-B67ZDSGp.js.map +1 -0
- package/dist/_storageKeys-CYXsUBwK.js +18 -0
- package/dist/_storageKeys-CYXsUBwK.js.map +1 -0
- package/dist/_useEscapeStack-CjndQhqg.js +19 -0
- package/dist/_useEscapeStack-CjndQhqg.js.map +1 -0
- package/dist/api.json +1 -1
- package/dist/chart.js +1 -1
- package/dist/code-editor.js +1 -1
- package/dist/components/MAudioPlayer.vue.d.ts +115 -0
- package/dist/components/MBadge.vue.d.ts +1 -1
- package/dist/components/MBottomSheetScaffold.vue.d.ts +1 -1
- package/dist/components/MBox.vue.d.ts +1 -1
- package/dist/components/MButton.vue.d.ts +1 -1
- package/dist/components/MConfirmDialog.vue.d.ts +1 -1
- package/dist/components/MCopyButton.vue.d.ts +2 -2
- package/dist/components/MDataTable.vue.d.ts +2 -2
- package/dist/components/MDialog.vue.d.ts +2 -2
- package/dist/components/MDivider.vue.d.ts +1 -1
- package/dist/components/MDragHandle.vue.d.ts +1 -1
- package/dist/components/MDrawCanvas.vue.d.ts +148 -0
- package/dist/components/MDrawLayers.vue.d.ts +3 -0
- package/dist/components/MDrawToolbar.vue.d.ts +34 -0
- package/dist/components/MExportButton.vue.d.ts +1 -1
- package/dist/components/MFab.vue.d.ts +2 -2
- package/dist/components/MFabMenu.vue.d.ts +2 -2
- package/dist/components/MFixed.vue.d.ts +1 -1
- package/dist/components/MFlex.vue.d.ts +2 -2
- package/dist/components/MFloorPlan.vue.d.ts +160 -0
- package/dist/components/MFlow.vue.d.ts +305 -0
- package/dist/components/MFlowControls.vue.d.ts +33 -0
- package/dist/components/MFlowHandle.vue.d.ts +16 -0
- package/dist/components/MFlowMinimap.vue.d.ts +22 -0
- package/dist/components/MFlowNode.vue.d.ts +35 -0
- package/dist/components/MGantt.vue.d.ts +141 -0
- package/dist/components/MGanttControls.vue.d.ts +32 -0
- package/dist/components/MIconButton.vue.d.ts +3 -1
- package/dist/components/MImageCropper.vue.d.ts +110 -0
- package/dist/components/MInfiniteScroll.vue.d.ts +1 -1
- package/dist/components/MLightbox.vue.d.ts +2 -2
- package/dist/components/MList.vue.d.ts +1 -1
- package/dist/components/MLoadingOverlay.vue.d.ts +1 -1
- package/dist/components/MMap.vue.d.ts +1 -1
- package/dist/components/MMapControl.vue.d.ts +1 -1
- package/dist/components/MMapSearch.vue.d.ts +1 -1
- package/dist/components/MMaskField.vue.d.ts +12 -1
- package/dist/components/MMenu.vue.d.ts +1 -1
- package/dist/components/MNavigationDrawer.vue.d.ts +1 -1
- package/dist/components/MNumberField.vue.d.ts +11 -2
- package/dist/components/MPdfViewer.vue.d.ts +174 -0
- package/dist/components/MPullToRefresh.vue.d.ts +1 -1
- package/dist/components/MResourceTimeline.vue.d.ts +149 -0
- package/dist/components/MScheduler.vue.d.ts +3 -3
- package/dist/components/MScheme.vue.d.ts +1 -1
- package/dist/components/MSearchField.vue.d.ts +1 -1
- package/dist/components/MSeekBar.vue.d.ts +1 -1
- package/dist/components/MSimpleCarousel.vue.d.ts +1 -1
- package/dist/components/MSkeleton.vue.d.ts +1 -1
- package/dist/components/MSlider.vue.d.ts +4 -4
- package/dist/components/MSparkline.vue.d.ts +1 -1
- package/dist/components/MSplitter.vue.d.ts +1 -1
- package/dist/components/MStack.vue.d.ts +2 -2
- package/dist/components/MSwipeToDismiss.vue.d.ts +1 -1
- package/dist/components/MSwitch.vue.d.ts +1 -1
- package/dist/components/MTable.vue.d.ts +1 -1
- package/dist/components/MTagInput.vue.d.ts +12 -1
- package/dist/components/MTextField.vue.d.ts +13 -2
- package/dist/components/MToolbar.vue.d.ts +1 -1
- package/dist/components/MTree.vue.d.ts +2 -2
- package/dist/components/MVideoPlayer.vue.d.ts +253 -0
- package/dist/components/MVirtualTable.vue.d.ts +1 -1
- package/dist/components/MWindow.vue.d.ts +3 -3
- package/dist/components/_MFlowEdge.vue.d.ts +9 -0
- package/dist/components/_MFlowEdgeLabel.vue.d.ts +9 -0
- package/dist/components/_MFlowNodeShell.vue.d.ts +9 -0
- package/dist/components/_MPdfPage.vue.d.ts +76 -0
- package/dist/components/_MTimeBackground.vue.d.ts +14 -0
- package/dist/components/_MTimeHeader.vue.d.ts +20 -0
- package/dist/composables/_effectCanvas.d.ts +23 -0
- package/dist/composables/_flowPanel.d.ts +2 -0
- package/dist/composables/_flowSlot.d.ts +5 -0
- package/dist/composables/_ganttTime.d.ts +41 -0
- package/dist/composables/_storageKeys.d.ts +9 -0
- package/dist/composables/_useTimeAxis.d.ts +90 -0
- package/dist/composables/drawGeometry.d.ts +119 -0
- package/dist/composables/flowFormats.d.ts +79 -0
- package/dist/composables/flowLayout.d.ts +45 -0
- package/dist/composables/flowPaths.d.ts +53 -0
- package/dist/composables/ganttFormats.d.ts +52 -0
- package/dist/composables/ganttSchedule.d.ts +99 -0
- package/dist/composables/themeInitScript.d.ts +2 -0
- package/dist/composables/useConfetti.d.ts +19 -8
- package/dist/composables/useDrawing.d.ts +44 -0
- package/dist/composables/useFireworks.d.ts +37 -0
- package/dist/composables/useFlow.d.ts +266 -0
- package/dist/composables/useGantt.d.ts +87 -0
- package/dist/composables/useLocale.d.ts +163 -0
- package/dist/composables/useMediaPlayer.d.ts +101 -0
- package/dist/composables/usePdf.d.ts +119 -0
- package/dist/composables/useReactions.d.ts +32 -0
- package/dist/composables/useResourceTimeline.d.ts +70 -0
- package/dist/composables/viewportHints.d.ts +2 -0
- package/dist/directives/vSparkle.d.ts +27 -0
- package/dist/draw.d.ts +7 -0
- package/dist/draw.js +1700 -0
- package/dist/draw.js.map +1 -0
- package/dist/flow.d.ts +14 -0
- package/dist/flow.js +3542 -0
- package/dist/flow.js.map +1 -0
- package/dist/flowPaths-CUc6X373.js +161 -0
- package/dist/flowPaths-CUc6X373.js.map +1 -0
- package/dist/gantt.d.ts +12 -0
- package/dist/gantt.js +3575 -0
- package/dist/gantt.js.map +1 -0
- package/dist/index.d.ts +11 -1
- package/dist/locales/index.js +1148 -7
- package/dist/locales/index.js.map +1 -1
- package/dist/m3ui-vue.css +1 -1
- package/dist/m3ui.js +7822 -7809
- package/dist/m3ui.js.map +1 -1
- package/dist/map.js +593 -588
- package/dist/map.js.map +1 -1
- package/dist/media.d.ts +5 -0
- package/dist/media.js +1311 -0
- package/dist/media.js.map +1 -0
- package/dist/pdf.d.ts +4 -0
- package/dist/pdf.js +1871 -0
- package/dist/pdf.js.map +1 -0
- package/dist/plugin.d.ts +10 -0
- package/dist/rich-text-editor.js +28 -26
- package/dist/rich-text-editor.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/{useLocale-JYxDDeXC.js → useLocale-BpGxplLV.js} +165 -2
- package/dist/useLocale-BpGxplLV.js.map +1 -0
- package/dist/{useThemeTokens-Bv-Uv8eX.js → useThemeTokens-DQQcaWbE.js} +41 -40
- package/dist/useThemeTokens-DQQcaWbE.js.map +1 -0
- package/package.json +29 -5
- package/src/__tests__/MAudioPlayer.test.ts +75 -0
- package/src/__tests__/MDrawCanvas.test.ts +110 -0
- package/src/__tests__/MFloorPlan.test.ts +97 -0
- package/src/__tests__/MFlow.test.ts +575 -0
- package/src/__tests__/MGantt.test.ts +130 -0
- package/src/__tests__/MImageCropper.test.ts +89 -0
- package/src/__tests__/MPdfViewer.test.ts +235 -0
- package/src/__tests__/MResourceTimeline.test.ts +102 -0
- package/src/__tests__/MSlider.test.ts +36 -0
- package/src/__tests__/MVideoPlayer.test.ts +201 -0
- package/src/__tests__/drawGeometry.test.ts +58 -0
- package/src/__tests__/fieldExpose.test.ts +30 -0
- package/src/__tests__/flowFormats.test.ts +185 -0
- package/src/__tests__/flowLayout.test.ts +113 -0
- package/src/__tests__/ganttFormats.test.ts +76 -0
- package/src/__tests__/ganttSchedule.test.ts +136 -0
- package/src/__tests__/pdfMock.ts +83 -0
- package/src/__tests__/plugin.test.ts +56 -1
- package/src/__tests__/ssr.test.ts +1 -1
- package/src/__tests__/themeInitScript.test.ts +10 -0
- package/src/__tests__/useConfetti.test.ts +33 -2
- package/src/__tests__/useFireworks.test.ts +104 -0
- package/src/__tests__/useMediaPlayer.test.ts +182 -0
- package/src/__tests__/usePdf.test.ts +102 -0
- package/src/__tests__/useReactions.test.ts +51 -0
- package/src/__tests__/vSparkle.test.ts +83 -0
- package/src/components/MAudioPlayer.vue +319 -0
- package/src/components/MDrawCanvas.vue +813 -0
- package/src/components/MDrawLayers.vue +114 -0
- package/src/components/MDrawToolbar.vue +171 -0
- package/src/components/MEmojiSelector.vue +3 -2
- package/src/components/MFloorPlan.vue +581 -0
- package/src/components/MFlow.vue +2049 -0
- package/src/components/MFlowControls.vue +110 -0
- package/src/components/MFlowHandle.vue +60 -0
- package/src/components/MFlowMinimap.vue +134 -0
- package/src/components/MFlowNode.vue +98 -0
- package/src/components/MGantt.vue +1609 -0
- package/src/components/MGanttControls.vue +77 -0
- package/src/components/MIconButton.vue +3 -1
- package/src/components/MImageCropper.vue +507 -0
- package/src/components/MMap.vue +3 -2
- package/src/components/MMaskField.vue +13 -0
- package/src/components/MNumberField.vue +13 -0
- package/src/components/MPdfViewer.vue +1269 -0
- package/src/components/MResourceTimeline.vue +1020 -0
- package/src/components/MSlider.vue +22 -4
- package/src/components/MTagInput.vue +13 -0
- package/src/components/MTextField.vue +24 -4
- package/src/components/MVideoPlayer.vue +839 -0
- package/src/components/_MFlowEdge.vue +100 -0
- package/src/components/_MFlowEdgeLabel.vue +56 -0
- package/src/components/_MFlowNodeShell.vue +111 -0
- package/src/components/_MPdfPage.vue +456 -0
- package/src/components/_MTimeBackground.vue +16 -0
- package/src/components/_MTimeHeader.vue +31 -0
- package/src/composables/_colorUtils.ts +4 -2
- package/src/composables/_effectCanvas.ts +109 -0
- package/src/composables/_flowPanel.ts +13 -0
- package/src/composables/_flowSlot.ts +6 -0
- package/src/composables/_ganttTime.ts +200 -0
- package/src/composables/_ssrState.ts +2 -2
- package/src/composables/_storageKeys.ts +28 -0
- package/src/composables/_useTimeAxis.ts +224 -0
- package/src/composables/drawGeometry.ts +405 -0
- package/src/composables/flowFormats.ts +916 -0
- package/src/composables/flowLayout.ts +297 -0
- package/src/composables/flowPaths.ts +239 -0
- package/src/composables/ganttFormats.ts +366 -0
- package/src/composables/ganttSchedule.ts +403 -0
- package/src/composables/themeInitScript.ts +5 -2
- package/src/composables/useColorPalette.ts +36 -8
- package/src/composables/useConfetti.ts +84 -107
- package/src/composables/useDrawing.ts +53 -0
- package/src/composables/useFireworks.ts +360 -0
- package/src/composables/useFlow.ts +250 -0
- package/src/composables/useGantt.ts +92 -0
- package/src/composables/useLocale.ts +328 -0
- package/src/composables/useMediaPlayer.ts +406 -0
- package/src/composables/usePdf.ts +456 -0
- package/src/composables/useReactions.ts +131 -0
- package/src/composables/useResourceTimeline.ts +76 -0
- package/src/composables/useTheme.ts +21 -4
- package/src/composables/viewportHints.ts +6 -5
- package/src/directives/vSparkle.ts +180 -0
- package/src/draw.ts +25 -0
- package/src/flow.ts +26 -0
- package/src/gantt.ts +12 -0
- package/src/index.ts +11 -1
- package/src/locales/de.ts +163 -0
- package/src/locales/es.ts +163 -0
- package/src/locales/fr.ts +163 -0
- package/src/locales/ja.ts +163 -0
- package/src/locales/ko.ts +163 -0
- package/src/locales/pt.ts +163 -0
- package/src/locales/zh.ts +163 -0
- package/src/media.ts +5 -0
- package/src/pdf.ts +15 -0
- package/src/plugin.ts +21 -5
- package/dist/MMenuItem-DI351kIf.js +0 -929
- package/dist/MMenuItem-DI351kIf.js.map +0 -1
- package/dist/MSlider-BnEy5ieZ.js +0 -1500
- package/dist/MSlider-BnEy5ieZ.js.map +0 -1
- package/dist/MTextField-BBmkaIbO.js +0 -633
- package/dist/MTextField-BBmkaIbO.js.map +0 -1
- package/dist/useLocale-JYxDDeXC.js.map +0 -1
- package/dist/useThemeTokens-Bv-Uv8eX.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref, watchEffect, onMounted, onUnmounted } from 'vue'
|
|
2
2
|
import { themeTransition } from './_themeTransition'
|
|
3
3
|
import { initialState, readCookie, ssrValue, writeCookie } from './_ssrState'
|
|
4
|
-
import { THEME_KEY } from './_storageKeys'
|
|
4
|
+
import { THEME_KEY, onStoragePrefix, storageKey } from './_storageKeys'
|
|
5
5
|
|
|
6
6
|
export type Theme = 'light' | 'dark' | 'system'
|
|
7
7
|
|
|
@@ -11,7 +11,15 @@ export { THEME_KEY }
|
|
|
11
11
|
const inBrowser = typeof window !== 'undefined'
|
|
12
12
|
|
|
13
13
|
// localStorage, else the cookie createM3UI({ cookies }) keeps (cleared storage, or a theme a server set)
|
|
14
|
-
|
|
14
|
+
function readStored(): Theme {
|
|
15
|
+
if (!inBrowser) return 'system'
|
|
16
|
+
const key = storageKey(THEME_KEY)
|
|
17
|
+
let v: string | null = null
|
|
18
|
+
try { v = localStorage.getItem(key) } catch { /* storage blocked */ }
|
|
19
|
+
return ((v ?? readCookie(key)) as Theme | null) ?? 'system'
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const theme = ref<Theme>(readStored())
|
|
15
23
|
|
|
16
24
|
let _appliedDark: boolean | null = null
|
|
17
25
|
|
|
@@ -30,6 +38,14 @@ function applyTheme(t: Theme) {
|
|
|
30
38
|
// Apply immediately on module load (before any component mounts) — no animation
|
|
31
39
|
if (inBrowser) applyTheme(theme.value)
|
|
32
40
|
|
|
41
|
+
// createM3UI({ storagePrefix }): this app's own stored theme, applied before anything renders — no animation
|
|
42
|
+
onStoragePrefix(() => {
|
|
43
|
+
if (!inBrowser) return
|
|
44
|
+
theme.value = readStored()
|
|
45
|
+
_appliedDark = null
|
|
46
|
+
applyTheme(theme.value)
|
|
47
|
+
})
|
|
48
|
+
|
|
33
49
|
export function useTheme() {
|
|
34
50
|
const mediaQuery = inBrowser ? window.matchMedia('(prefers-color-scheme: dark)') : null
|
|
35
51
|
|
|
@@ -39,8 +55,9 @@ export function useTheme() {
|
|
|
39
55
|
|
|
40
56
|
watchEffect(() => {
|
|
41
57
|
if (!inBrowser) return
|
|
42
|
-
|
|
43
|
-
|
|
58
|
+
const key = storageKey(THEME_KEY)
|
|
59
|
+
try { localStorage.setItem(key, theme.value) } catch { /* storage blocked */ }
|
|
60
|
+
writeCookie(key, theme.value)
|
|
44
61
|
applyTheme(theme.value)
|
|
45
62
|
})
|
|
46
63
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VIEWPORT_KEY } from './_storageKeys'
|
|
1
|
+
import { VIEWPORT_KEY, storageKey } from './_storageKeys'
|
|
2
2
|
|
|
3
3
|
/** A request's headers as server frameworks hand them over: a `Headers`, or a plain object (Node's, h3's). */
|
|
4
4
|
export type RequestHeaders = Headers | Record<string, string | string[] | undefined>
|
|
@@ -33,8 +33,8 @@ function header(headers: RequestHeaders, name: string): string | undefined {
|
|
|
33
33
|
|
|
34
34
|
const size = (n: number) => Number.isFinite(n) && n > 0 && n < 20000
|
|
35
35
|
|
|
36
|
-
function fromCookie(cookies: string | undefined): ViewportSize | undefined {
|
|
37
|
-
const raw = cookies?.match(new RegExp(`(?:^|;\\s*)${VIEWPORT_KEY}=([^;]*)`))?.[1]
|
|
36
|
+
function fromCookie(cookies: string | undefined, prefix: string): ViewportSize | undefined {
|
|
37
|
+
const raw = cookies?.match(new RegExp(`(?:^|;\\s*)${storageKey(VIEWPORT_KEY, prefix)}=([^;]*)`))?.[1]
|
|
38
38
|
if (!raw) return undefined
|
|
39
39
|
let value = raw
|
|
40
40
|
try { value = decodeURIComponent(raw) } catch { /* as it is */ }
|
|
@@ -61,14 +61,15 @@ function guess(headers: RequestHeaders): ViewportSize | undefined {
|
|
|
61
61
|
* cookies: true })` keeps in the `m3-viewport` cookie (any visit after the first); the viewport client hints
|
|
62
62
|
* (Chromium, once the server asked for them with `VIEWPORT_HINTS`); or, on a first visit, a size standing for the
|
|
63
63
|
* kind of device (`Sec-CH-UA-Mobile`, then the user agent: a phone, a tablet or a desktop), unless `guess: false`.
|
|
64
|
+
* With `createM3UI({ storagePrefix })`, pass the same `storagePrefix` so the right cookie is read.
|
|
64
65
|
* Undefined when nothing tells: the layouts then render compact.
|
|
65
66
|
*
|
|
66
67
|
* ```ts
|
|
67
68
|
* createM3UI({ cookies: true, initialState: { viewport: viewportFromHeaders(request.headers) } })
|
|
68
69
|
* ```
|
|
69
70
|
*/
|
|
70
|
-
export function viewportFromHeaders(headers: RequestHeaders, options: { guess?: boolean } = {}): ViewportSize | undefined {
|
|
71
|
-
const cookie = fromCookie(header(headers, 'cookie'))
|
|
71
|
+
export function viewportFromHeaders(headers: RequestHeaders, options: { guess?: boolean; storagePrefix?: string } = {}): ViewportSize | undefined {
|
|
72
|
+
const cookie = fromCookie(header(headers, 'cookie'), options.storagePrefix ?? '')
|
|
72
73
|
if (cookie) return cookie
|
|
73
74
|
const width = Number(header(headers, 'sec-ch-viewport-width'))
|
|
74
75
|
if (size(width)) {
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import type { Directive } from 'vue'
|
|
2
|
+
import { getShape, toSvgPath, type ShapeName } from 'shape-morph'
|
|
3
|
+
|
|
4
|
+
/** Options for `v-sparkle`. */
|
|
5
|
+
export interface SparkleOptions {
|
|
6
|
+
/** No sparkles while true */
|
|
7
|
+
disabled?: boolean
|
|
8
|
+
/** `'always'` (default) sparkles all the time; `'hover'` only while the pointer is over it or focus is in it */
|
|
9
|
+
trigger?: 'always' | 'hover'
|
|
10
|
+
/** Any CSS colors, one picked per sparkle. Default: the theme's primary and tertiary where the element is */
|
|
11
|
+
color?: string | string[]
|
|
12
|
+
/** Sparkle size in px, each one a bit bigger or smaller (default 14) */
|
|
13
|
+
size?: number
|
|
14
|
+
/** Sparkles per second (default 3) */
|
|
15
|
+
rate?: number
|
|
16
|
+
/** MShape's shapes instead of the four-pointed star */
|
|
17
|
+
shapes?: ShapeName[]
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/** `v-sparkle` value: nothing or `true` (on), `false` (off), `'hover'`, a CSS color, or an options object. */
|
|
21
|
+
export type SparkleValue = boolean | string | SparkleOptions | null | undefined
|
|
22
|
+
|
|
23
|
+
function normalize(value: SparkleValue): SparkleOptions {
|
|
24
|
+
if (value === false) return { disabled: true }
|
|
25
|
+
if (value === 'hover' || value === 'always') return { trigger: value }
|
|
26
|
+
if (typeof value === 'string') return { color: value }
|
|
27
|
+
if (value === true || value == null) return {}
|
|
28
|
+
return value
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// The classic four-pointed sparkle, in a 100×100 box like MShape's paths
|
|
32
|
+
const STAR = 'M50 0C54 34 66 46 100 50C66 54 54 66 50 100C46 66 34 54 0 50C34 46 46 34 50 0Z'
|
|
33
|
+
const SVG_NS = 'http://www.w3.org/2000/svg'
|
|
34
|
+
const paths = new Map<string, string>()
|
|
35
|
+
function pathFor(shape: ShapeName) {
|
|
36
|
+
let d = paths.get(shape)
|
|
37
|
+
if (!d) paths.set(shape, (d = toSvgPath(getShape(shape), 100)))
|
|
38
|
+
return d
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
interface SparkleState {
|
|
42
|
+
options: SparkleOptions
|
|
43
|
+
layer: HTMLElement | null
|
|
44
|
+
timer: ReturnType<typeof setTimeout> | undefined
|
|
45
|
+
hovering: boolean
|
|
46
|
+
visible: boolean
|
|
47
|
+
observer: IntersectionObserver | null
|
|
48
|
+
on: Record<string, () => void>
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const states = new WeakMap<HTMLElement, SparkleState>()
|
|
52
|
+
|
|
53
|
+
function spawn(el: HTMLElement, state: SparkleState) {
|
|
54
|
+
if (!state.layer) {
|
|
55
|
+
const { position } = getComputedStyle(el)
|
|
56
|
+
if (!position || position === 'static') el.style.position = 'relative'
|
|
57
|
+
const layer = document.createElement('span')
|
|
58
|
+
layer.className = 'm3-sparkle-layer'
|
|
59
|
+
layer.setAttribute('aria-hidden', 'true')
|
|
60
|
+
layer.style.cssText = 'position:absolute;inset:0;pointer-events:none;overflow:visible;z-index:1'
|
|
61
|
+
el.appendChild(layer)
|
|
62
|
+
state.layer = layer
|
|
63
|
+
}
|
|
64
|
+
const { options } = state
|
|
65
|
+
const colors = options.color ? [options.color].flat() : ['var(--color-primary)', 'var(--color-tertiary)']
|
|
66
|
+
const size = (options.size ?? 14) * (0.6 + Math.random() * 0.8)
|
|
67
|
+
const svg = document.createElementNS(SVG_NS, 'svg')
|
|
68
|
+
svg.setAttribute('viewBox', '0 0 100 100')
|
|
69
|
+
svg.setAttribute('width', `${size}`)
|
|
70
|
+
svg.setAttribute('height', `${size}`)
|
|
71
|
+
// Anywhere over the element, a little past its edges
|
|
72
|
+
svg.style.cssText = `position:absolute;left:${-10 + Math.random() * 120}%;top:${-15 + Math.random() * 130}%;margin:${-size / 2}px 0 0 ${-size / 2}px;overflow:visible`
|
|
73
|
+
const path = document.createElementNS(SVG_NS, 'path')
|
|
74
|
+
const shapes = options.shapes
|
|
75
|
+
path.setAttribute('d', shapes?.length ? pathFor(shapes[Math.floor(Math.random() * shapes.length)]!) : STAR)
|
|
76
|
+
path.style.fill = colors[Math.floor(Math.random() * colors.length)]!
|
|
77
|
+
svg.appendChild(path)
|
|
78
|
+
state.layer.appendChild(svg)
|
|
79
|
+
const turn = (Math.random() < 0.5 ? -1 : 1) * (60 + Math.random() * 60)
|
|
80
|
+
const anim = svg.animate(
|
|
81
|
+
[
|
|
82
|
+
{ transform: 'scale(0) rotate(0deg)' },
|
|
83
|
+
{ transform: `scale(1) rotate(${turn / 2}deg)`, offset: 0.45 },
|
|
84
|
+
{ transform: `scale(0) rotate(${turn}deg)` },
|
|
85
|
+
],
|
|
86
|
+
{ duration: 700 + Math.random() * 300, easing: 'ease-in-out', fill: 'both' },
|
|
87
|
+
)
|
|
88
|
+
const remove = () => svg.remove()
|
|
89
|
+
anim.addEventListener('finish', remove, { once: true })
|
|
90
|
+
anim.addEventListener('cancel', remove, { once: true })
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function active(state: SparkleState) {
|
|
94
|
+
const { options } = state
|
|
95
|
+
if (options.disabled || !state.visible) return false
|
|
96
|
+
if (window.matchMedia?.('(prefers-reduced-motion: reduce)').matches) return false
|
|
97
|
+
return options.trigger === 'hover' ? state.hovering : true
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// One sparkle at a time at random intervals around 1/rate, while active
|
|
101
|
+
function schedule(el: HTMLElement, state: SparkleState, now = false) {
|
|
102
|
+
clearTimeout(state.timer)
|
|
103
|
+
state.timer = undefined
|
|
104
|
+
if (!active(state)) return
|
|
105
|
+
if (now) spawn(el, state)
|
|
106
|
+
const every = 1000 / Math.max(0.1, state.options.rate ?? 3)
|
|
107
|
+
state.timer = setTimeout(() => {
|
|
108
|
+
// A hidden tab keeps the timer (throttled) but draws nothing
|
|
109
|
+
if (active(state) && !document.hidden) spawn(el, state)
|
|
110
|
+
schedule(el, state)
|
|
111
|
+
}, every * (0.5 + Math.random()))
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
function stop(state: SparkleState) {
|
|
115
|
+
clearTimeout(state.timer)
|
|
116
|
+
state.timer = undefined
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Sparkles that twinkle over an element, to draw the eye to something new or special: `v-sparkle`,
|
|
121
|
+
* `v-sparkle="'hover'"`, `v-sparkle="'#f5b400'"` or `v-sparkle="{ trigger, color, size, rate, shapes, disabled }"`.
|
|
122
|
+
* They're drawn in a layer over the element (a statically positioned one is made `position: relative`), hidden from
|
|
123
|
+
* assistive technology, and pause while it's off screen or the tab is hidden; none under reduced motion.
|
|
124
|
+
* Registered globally as `v-sparkle` by `createM3UI()`; import `vSparkle` to use it without the plugin.
|
|
125
|
+
*/
|
|
126
|
+
export const vSparkle: Directive<HTMLElement, SparkleValue> = {
|
|
127
|
+
mounted(el, binding) {
|
|
128
|
+
const state: SparkleState = {
|
|
129
|
+
options: normalize(binding.value),
|
|
130
|
+
layer: null,
|
|
131
|
+
timer: undefined,
|
|
132
|
+
hovering: false,
|
|
133
|
+
visible: true,
|
|
134
|
+
observer: null,
|
|
135
|
+
on: {},
|
|
136
|
+
}
|
|
137
|
+
const hover = (value: boolean) => () => {
|
|
138
|
+
state.hovering = value
|
|
139
|
+
if (value) schedule(el, state, true)
|
|
140
|
+
else if (!active(state)) stop(state)
|
|
141
|
+
}
|
|
142
|
+
state.on = {
|
|
143
|
+
pointerenter: hover(true),
|
|
144
|
+
pointerleave: hover(false),
|
|
145
|
+
focusin: hover(true),
|
|
146
|
+
focusout: hover(false),
|
|
147
|
+
}
|
|
148
|
+
for (const [type, fn] of Object.entries(state.on)) el.addEventListener(type, fn)
|
|
149
|
+
if (typeof IntersectionObserver !== 'undefined') {
|
|
150
|
+
state.observer = new IntersectionObserver(([entry]) => {
|
|
151
|
+
state.visible = !!entry?.isIntersecting
|
|
152
|
+
if (state.visible) schedule(el, state)
|
|
153
|
+
else stop(state)
|
|
154
|
+
})
|
|
155
|
+
state.observer.observe(el)
|
|
156
|
+
}
|
|
157
|
+
states.set(el, state)
|
|
158
|
+
schedule(el, state)
|
|
159
|
+
},
|
|
160
|
+
updated(el, binding) {
|
|
161
|
+
const state = states.get(el)
|
|
162
|
+
if (!state) return
|
|
163
|
+
const next = normalize(binding.value)
|
|
164
|
+
// An inline object literal is a new object on every render: only a real change reschedules
|
|
165
|
+
if (JSON.stringify(next) === JSON.stringify(state.options)) return
|
|
166
|
+
state.options = next
|
|
167
|
+
schedule(el, state)
|
|
168
|
+
},
|
|
169
|
+
beforeUnmount(el) {
|
|
170
|
+
const state = states.get(el)
|
|
171
|
+
if (!state) return
|
|
172
|
+
stop(state)
|
|
173
|
+
state.observer?.disconnect()
|
|
174
|
+
for (const [type, fn] of Object.entries(state.on)) el.removeEventListener(type, fn)
|
|
175
|
+
state.layer?.remove()
|
|
176
|
+
states.delete(el)
|
|
177
|
+
},
|
|
178
|
+
// Nothing on the server: the sparkles start once mounted in the browser
|
|
179
|
+
getSSRProps: () => ({}),
|
|
180
|
+
}
|
package/src/draw.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export { default as MDrawCanvas } from './components/MDrawCanvas.vue'
|
|
2
|
+
export { default as MDrawToolbar } from './components/MDrawToolbar.vue'
|
|
3
|
+
export { default as MDrawLayers } from './components/MDrawLayers.vue'
|
|
4
|
+
export { useDrawing } from './composables/useDrawing'
|
|
5
|
+
export type { DrawTool, DrawContext, DrawExportOptions } from './composables/useDrawing'
|
|
6
|
+
export {
|
|
7
|
+
strokePath,
|
|
8
|
+
shapePath,
|
|
9
|
+
smoothPoints,
|
|
10
|
+
simulatePressure,
|
|
11
|
+
constrain,
|
|
12
|
+
itemBox,
|
|
13
|
+
unionBox,
|
|
14
|
+
textBox,
|
|
15
|
+
hitItem,
|
|
16
|
+
eraseAt,
|
|
17
|
+
inLasso,
|
|
18
|
+
transformItem,
|
|
19
|
+
sortByLayer,
|
|
20
|
+
itemSvg,
|
|
21
|
+
toDrawSvg,
|
|
22
|
+
svgToPng,
|
|
23
|
+
drawId,
|
|
24
|
+
} from './composables/drawGeometry'
|
|
25
|
+
export type { DrawItem, DrawStroke, DrawShape, DrawText, DrawLayer, DrawPoint, DrawPen, DrawShapeKind, DrawBox, DrawSvgOptions } from './composables/drawGeometry'
|
package/src/flow.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export { default as MFlow } from './components/MFlow.vue'
|
|
2
|
+
export { default as MFlowNode } from './components/MFlowNode.vue'
|
|
3
|
+
export { default as MFlowHandle } from './components/MFlowHandle.vue'
|
|
4
|
+
export { default as MFlowControls } from './components/MFlowControls.vue'
|
|
5
|
+
export { default as MFlowMinimap } from './components/MFlowMinimap.vue'
|
|
6
|
+
export { useFlow, useFlowNode } from './composables/useFlow'
|
|
7
|
+
export type {
|
|
8
|
+
FlowCircleData,
|
|
9
|
+
FlowConnection,
|
|
10
|
+
FlowContext,
|
|
11
|
+
FlowEdge,
|
|
12
|
+
FlowFitOptions,
|
|
13
|
+
FlowHandleBounds,
|
|
14
|
+
FlowMarker,
|
|
15
|
+
FlowNode,
|
|
16
|
+
FlowSelection,
|
|
17
|
+
FlowViewport,
|
|
18
|
+
FlowXY,
|
|
19
|
+
} from './composables/useFlow'
|
|
20
|
+
export { getBezierPath, getSmoothStepPath, getStepPath, getStraightPath, smoothStepPoints, arrowPath } from './composables/flowPaths'
|
|
21
|
+
export type { FlowEdgePath, FlowEdgePathParams, FlowPosition } from './composables/flowPaths'
|
|
22
|
+
export { layoutTree, layoutLayered } from './composables/flowLayout'
|
|
23
|
+
export type { FlowLayout, FlowLayoutDirection, FlowLayoutOptions, FlowLayoutResult } from './composables/flowLayout'
|
|
24
|
+
export type { FlowPanelPosition } from './composables/_flowPanel'
|
|
25
|
+
export { parseDot, toDot, parseMermaid, toMermaid } from './composables/flowFormats'
|
|
26
|
+
export type { FlowGraph, FlowImportOptions, FlowExportOptions, FlowDotExportOptions } from './composables/flowFormats'
|
package/src/gantt.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { default as MGantt } from './components/MGantt.vue'
|
|
2
|
+
export { default as MGanttControls } from './components/MGanttControls.vue'
|
|
3
|
+
export { useGantt } from './composables/useGantt'
|
|
4
|
+
export type { GanttColumn, GanttContext, GanttScale } from './composables/useGantt'
|
|
5
|
+
export { scheduleTasks, criticalPath, rollupSummaries, workingDays, addWorkingDays, taskSpan } from './composables/ganttSchedule'
|
|
6
|
+
export type { GanttTask, GanttDependency, GanttCalendar, GanttScheduleOptions, GanttCriticalPath } from './composables/ganttSchedule'
|
|
7
|
+
export { toGanttCsv, parseGanttCsv, toGanttJson, parseGanttJson, toMsProjectXml, parseMsProjectXml } from './composables/ganttFormats'
|
|
8
|
+
export type { GanttCsvOptions, GanttXmlOptions } from './composables/ganttFormats'
|
|
9
|
+
export { default as MResourceTimeline } from './components/MResourceTimeline.vue'
|
|
10
|
+
export { useResourceTimeline } from './composables/useResourceTimeline'
|
|
11
|
+
export type { TimelineEvent, TimelineResource, ResourceTimelineContext } from './composables/useResourceTimeline'
|
|
12
|
+
export type { TimelineControls } from './composables/useGantt'
|
package/src/index.ts
CHANGED
|
@@ -8,7 +8,11 @@ export { useTheme } from './composables/useTheme'
|
|
|
8
8
|
export type { Theme } from './composables/useTheme'
|
|
9
9
|
export { useColorPalette, palettes } from './composables/useColorPalette'
|
|
10
10
|
export { useConfetti, fireConfetti } from './composables/useConfetti'
|
|
11
|
-
export type { ConfettiOptions, ConfettiOrigin } from './composables/useConfetti'
|
|
11
|
+
export type { ConfettiOptions, ConfettiOrigin, StopConfetti } from './composables/useConfetti'
|
|
12
|
+
export { useFireworks, launchFireworks } from './composables/useFireworks'
|
|
13
|
+
export type { FireworkShape, FireworksOptions, StopFireworks } from './composables/useFireworks'
|
|
14
|
+
export { useReactions, fireReaction } from './composables/useReactions'
|
|
15
|
+
export type { ReactionContent, ReactionOptions, ReactionOrigin } from './composables/useReactions'
|
|
12
16
|
export { useContainerTransform } from './composables/useContainerTransform'
|
|
13
17
|
export type { ContainerTransformController, ContainerTransformOrigin } from './composables/useContainerTransform'
|
|
14
18
|
export type { Palette, PaletteId, ActiveSeed, ContrastLevel } from './composables/useColorPalette'
|
|
@@ -62,6 +66,8 @@ export { vClickOutside } from './directives/vClickOutside'
|
|
|
62
66
|
export type { ClickOutsideOptions, ClickOutsideValue } from './directives/vClickOutside'
|
|
63
67
|
export { vSkeleton } from './directives/vSkeleton'
|
|
64
68
|
export type { SkeletonOptions, SkeletonValue } from './directives/vSkeleton'
|
|
69
|
+
export { vSparkle } from './directives/vSparkle'
|
|
70
|
+
export type { SparkleOptions, SparkleValue } from './directives/vSparkle'
|
|
65
71
|
|
|
66
72
|
// Components
|
|
67
73
|
export { default as MAbsolute } from './components/MAbsolute.vue'
|
|
@@ -120,6 +126,9 @@ export { default as MExportButton } from './components/MExportButton.vue'
|
|
|
120
126
|
export { default as MFab } from './components/MFab.vue'
|
|
121
127
|
export { default as MFabMenu } from './components/MFabMenu.vue'
|
|
122
128
|
export { default as MFileUpload } from './components/MFileUpload.vue'
|
|
129
|
+
export { default as MFloorPlan } from './components/MFloorPlan.vue'
|
|
130
|
+
export type { FloorTable, FloorMerge, FloorStatus } from './components/MFloorPlan.vue'
|
|
131
|
+
export { default as MImageCropper } from './components/MImageCropper.vue'
|
|
123
132
|
export { default as MFixed } from './components/MFixed.vue'
|
|
124
133
|
export { default as MFooter } from './components/MFooter.vue'
|
|
125
134
|
export { default as MFlex } from './components/MFlex.vue'
|
|
@@ -248,6 +257,7 @@ export type { DataTableColumn, DataTableFetchParams } from './components/MDataTa
|
|
|
248
257
|
export type { DateRange } from './components/MDateRangePicker.vue'
|
|
249
258
|
export type { DragDropItem } from './components/MDragDropList.vue'
|
|
250
259
|
export type { UploadFile } from './components/MFileUpload.vue'
|
|
260
|
+
export type { CropRect, CropAspect, CropOutputOptions } from './components/MImageCropper.vue'
|
|
251
261
|
export type { HotkeyBinding } from './components/MHotkeys.vue'
|
|
252
262
|
export type { KanbanColumn, KanbanCard } from './components/MKanban.vue'
|
|
253
263
|
export type { NavBarItem } from './components/MNavigationBar.vue'
|
package/src/locales/de.ts
CHANGED
|
@@ -228,4 +228,167 @@ export const deLocale: M3Locale = {
|
|
|
228
228
|
mapSearchPlaces: 'Orte suchen',
|
|
229
229
|
timelineShowMore: '{count} weitere anzeigen',
|
|
230
230
|
timelineShowLess: 'Weniger anzeigen',
|
|
231
|
+
mediaPlayer: 'Mediaplayer',
|
|
232
|
+
mediaPlay: 'Abspielen',
|
|
233
|
+
mediaPause: 'Pausieren',
|
|
234
|
+
mediaReplay: 'Erneut abspielen',
|
|
235
|
+
mediaSeekBack: '{seconds} Sekunden zurück',
|
|
236
|
+
mediaSeekForward: '{seconds} Sekunden vor',
|
|
237
|
+
mediaSeconds: '{seconds} Sekunden',
|
|
238
|
+
mediaMute: 'Stummschalten',
|
|
239
|
+
mediaUnmute: 'Ton an',
|
|
240
|
+
mediaVolume: 'Lautstärke',
|
|
241
|
+
mediaFullscreen: 'Vollbild',
|
|
242
|
+
mediaExitFullscreen: 'Vollbild beenden',
|
|
243
|
+
mediaPictureInPicture: 'Bild-im-Bild',
|
|
244
|
+
mediaSettings: 'Einstellungen',
|
|
245
|
+
mediaSpeed: 'Wiedergabegeschwindigkeit',
|
|
246
|
+
mediaSpeedNormal: 'Normal',
|
|
247
|
+
mediaSubtitles: 'Untertitel',
|
|
248
|
+
mediaSubtitlesOff: 'Aus',
|
|
249
|
+
mediaQuality: 'Qualität',
|
|
250
|
+
mediaQualityAuto: 'Automatisch',
|
|
251
|
+
mediaLive: 'Live',
|
|
252
|
+
mediaError: 'Dieses Medium kann nicht abgespielt werden',
|
|
253
|
+
mediaRepeat: 'Wiederholen',
|
|
254
|
+
mediaRepeatOne: 'Titel wiederholen',
|
|
255
|
+
mediaShuffle: 'Zufallswiedergabe',
|
|
256
|
+
pdfViewer: 'PDF-Viewer',
|
|
257
|
+
pdfThumbnails: 'Seiten',
|
|
258
|
+
pdfOutline: 'Inhalt',
|
|
259
|
+
pdfPage: 'Seite',
|
|
260
|
+
pdfZoom: 'Zoom',
|
|
261
|
+
pdfZoomIn: 'Vergrößern',
|
|
262
|
+
pdfZoomOut: 'Verkleinern',
|
|
263
|
+
pdfFitWidth: 'An Breite anpassen',
|
|
264
|
+
pdfFitPage: 'An Seite anpassen',
|
|
265
|
+
pdfSearch: 'Im Dokument suchen',
|
|
266
|
+
pdfSearchPrevious: 'Vorheriger Treffer',
|
|
267
|
+
pdfSearchNext: 'Nächster Treffer',
|
|
268
|
+
pdfMatchCount: '{current} von {total}',
|
|
269
|
+
pdfNoMatches: 'Keine Treffer',
|
|
270
|
+
pdfMore: 'Weitere Optionen',
|
|
271
|
+
pdfRotate: 'Drehen',
|
|
272
|
+
pdfDownload: 'Herunterladen',
|
|
273
|
+
pdfPrint: 'Drucken',
|
|
274
|
+
pdfFullscreen: 'Vollbild',
|
|
275
|
+
pdfExitFullscreen: 'Vollbild beenden',
|
|
276
|
+
pdfPassword: 'Dieses Dokument ist passwortgeschützt',
|
|
277
|
+
pdfPasswordLabel: 'Passwort',
|
|
278
|
+
pdfWrongPassword: 'Falsches Passwort',
|
|
279
|
+
pdfOpen: 'Öffnen',
|
|
280
|
+
pdfError: 'Dieses PDF kann nicht geöffnet werden',
|
|
281
|
+
pdfLoading: 'Dokument wird geladen',
|
|
282
|
+
pdfAnnotate: 'Anmerken',
|
|
283
|
+
pdfSelect: 'Auswählen',
|
|
284
|
+
pdfHighlight: 'Markieren',
|
|
285
|
+
pdfNote: 'Notiz',
|
|
286
|
+
pdfDraw: 'Zeichnen',
|
|
287
|
+
pdfEraser: 'Radierer',
|
|
288
|
+
pdfInkWidth: 'Strichstärke {n} pt',
|
|
289
|
+
pdfColor: 'Farbe',
|
|
290
|
+
pdfUndo: 'Rückgängig',
|
|
291
|
+
pdfCopy: 'Kopieren',
|
|
292
|
+
pdfDelete: 'Löschen',
|
|
293
|
+
pdfNotePlaceholder: 'Notiz schreiben',
|
|
294
|
+
pdfAddComment: 'Kommentar hinzufügen',
|
|
295
|
+
flowCanvas: 'Diagramm',
|
|
296
|
+
flowNode: 'Knoten',
|
|
297
|
+
flowEdge: 'Verbindung von {source} zu {target}',
|
|
298
|
+
flowZoomIn: 'Vergrößern',
|
|
299
|
+
flowZoomOut: 'Verkleinern',
|
|
300
|
+
flowFitView: 'Ansicht anpassen',
|
|
301
|
+
flowLock: 'Sperren',
|
|
302
|
+
flowUnlock: 'Entsperren',
|
|
303
|
+
flowUndo: 'Rückgängig',
|
|
304
|
+
flowRedo: 'Wiederholen',
|
|
305
|
+
flowMinimap: 'Minikarte',
|
|
306
|
+
flowMoved: '{label} verschoben',
|
|
307
|
+
flowConnected: '{source} mit {target} verbunden',
|
|
308
|
+
flowDeleted: '{count} gelöscht',
|
|
309
|
+
flowDeleteEdge: 'Verbindung löschen',
|
|
310
|
+
flowDelete: 'Löschen',
|
|
311
|
+
ganttChart: 'Gantt-Diagramm',
|
|
312
|
+
ganttTask: 'Vorgang',
|
|
313
|
+
ganttStart: 'Anfang',
|
|
314
|
+
ganttEnd: 'Ende',
|
|
315
|
+
ganttDuration: 'Dauer',
|
|
316
|
+
ganttProgress: 'Fortschritt',
|
|
317
|
+
ganttDays: '{n} T',
|
|
318
|
+
ganttHours: '{n} Std.',
|
|
319
|
+
ganttMilestone: 'Meilenstein',
|
|
320
|
+
ganttQuarter: 'Q{n}',
|
|
321
|
+
ganttToday: 'Heute',
|
|
322
|
+
ganttZoomIn: 'Vergrößern',
|
|
323
|
+
ganttZoomOut: 'Verkleinern',
|
|
324
|
+
ganttExpandAll: 'Alle erweitern',
|
|
325
|
+
ganttCollapseAll: 'Alle reduzieren',
|
|
326
|
+
ganttExpand: 'Erweitern',
|
|
327
|
+
ganttCollapse: 'Reduzieren',
|
|
328
|
+
ganttUndo: 'Rückgängig',
|
|
329
|
+
ganttRedo: 'Wiederholen',
|
|
330
|
+
ganttScaleHour: 'Stunden',
|
|
331
|
+
ganttScaleDay: 'Tage',
|
|
332
|
+
ganttScaleWeek: 'Wochen',
|
|
333
|
+
ganttScaleMonth: 'Monate',
|
|
334
|
+
ganttScaleQuarter: 'Quartale',
|
|
335
|
+
ganttScaleYear: 'Jahre',
|
|
336
|
+
ganttMoved: '{name}: {start} bis {end}',
|
|
337
|
+
ganttProgressSet: '{name}: {progress} % erledigt',
|
|
338
|
+
ganttLinked: '{from} mit {to} verknüpft',
|
|
339
|
+
ganttUnlink: 'Abhängigkeit entfernen',
|
|
340
|
+
ganttDeleted: '{count} gelöscht',
|
|
341
|
+
ganttDelete: 'Löschen',
|
|
342
|
+
ganttReordered: '{name} in Zeile {pos} verschoben',
|
|
343
|
+
ganttSlack: 'Puffer: {n} T',
|
|
344
|
+
ganttCritical: 'Kritisch',
|
|
345
|
+
ganttBaseline: 'Basisplan',
|
|
346
|
+
ganttEmpty: 'Noch keine Vorgänge',
|
|
347
|
+
ganttResize: 'Breite der Vorgangsliste ändern',
|
|
348
|
+
timelineResource: 'Ressource',
|
|
349
|
+
timelineConflict: 'Überschneidet sich mit einer anderen Buchung',
|
|
350
|
+
timelineMoved: '{title}: {resource}, {start} bis {end}',
|
|
351
|
+
timelineEmpty: 'Keine Ressourcen',
|
|
352
|
+
cropArea: 'Zuschneidebereich',
|
|
353
|
+
cropRotateLeft: 'Nach links drehen',
|
|
354
|
+
cropRotateRight: 'Nach rechts drehen',
|
|
355
|
+
cropFlip: 'Horizontal spiegeln',
|
|
356
|
+
cropReset: 'Zurücksetzen',
|
|
357
|
+
cropFree: 'Frei',
|
|
358
|
+
drawCanvas: 'Zeichenfläche',
|
|
359
|
+
drawTools: 'Zeichenwerkzeuge',
|
|
360
|
+
drawMore: 'Weitere Werkzeuge',
|
|
361
|
+
drawSelect: 'Auswählen',
|
|
362
|
+
drawPan: 'Verschieben',
|
|
363
|
+
drawPen: 'Stift',
|
|
364
|
+
drawBrush: 'Pinsel',
|
|
365
|
+
drawMarker: 'Marker',
|
|
366
|
+
drawHighlighter: 'Textmarker',
|
|
367
|
+
drawEraser: 'Radierer',
|
|
368
|
+
drawStrokeEraser: 'Strich-Radierer',
|
|
369
|
+
drawLine: 'Linie',
|
|
370
|
+
drawArrow: 'Pfeil',
|
|
371
|
+
drawRect: 'Rechteck',
|
|
372
|
+
drawEllipse: 'Ellipse',
|
|
373
|
+
drawText: 'Text',
|
|
374
|
+
drawFill: 'Füllung',
|
|
375
|
+
drawColor: 'Farbe',
|
|
376
|
+
floorPlan: 'Raumplan',
|
|
377
|
+
floorSeats: '{n} Plätze',
|
|
378
|
+
drawCustomColor: 'Eigene Farbe',
|
|
379
|
+
drawSize: 'Größe',
|
|
380
|
+
drawUndo: 'Rückgängig',
|
|
381
|
+
drawRedo: 'Wiederholen',
|
|
382
|
+
drawDelete: 'Auswahl löschen',
|
|
383
|
+
drawLayers: 'Ebenen',
|
|
384
|
+
drawLayer: 'Ebene {n}',
|
|
385
|
+
drawLayerName: 'Ebenenname',
|
|
386
|
+
drawAddLayer: 'Ebene hinzufügen',
|
|
387
|
+
drawDeleteLayer: 'Ebene löschen',
|
|
388
|
+
drawShowLayer: 'Ebene einblenden',
|
|
389
|
+
drawHideLayer: 'Ebene ausblenden',
|
|
390
|
+
drawLockLayer: 'Ebene sperren',
|
|
391
|
+
drawUnlockLayer: 'Ebene entsperren',
|
|
392
|
+
drawLayerUp: 'Ebene nach oben',
|
|
393
|
+
drawLayerDown: 'Ebene nach unten',
|
|
231
394
|
}
|