@m3ui-vue/m3ui-vue 1.2.2 → 1.3.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 +3010 -376
- package/dist/MButton-Bl_BSUep.js +172 -0
- package/dist/MButton-Bl_BSUep.js.map +1 -0
- package/dist/MDialog-D_Yik8ou.js +173 -0
- package/dist/MDialog-D_Yik8ou.js.map +1 -0
- package/dist/MIconButton-DoNotQ9v.js +282 -0
- package/dist/MIconButton-DoNotQ9v.js.map +1 -0
- package/dist/MListItem-BxifHJdU.js +824 -0
- package/dist/MListItem-BxifHJdU.js.map +1 -0
- package/dist/MLoadingIndicator-BxbFhSX6.js +115 -0
- package/dist/MLoadingIndicator-BxbFhSX6.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-BeN9QcB3.js +435 -0
- package/dist/MSeekBar-BeN9QcB3.js.map +1 -0
- package/dist/MSegmentedButton-DL9JtJFX.js +65 -0
- package/dist/MSegmentedButton-DL9JtJFX.js.map +1 -0
- package/dist/MSlider-BVSbJlGS.js +691 -0
- package/dist/MSlider-BVSbJlGS.js.map +1 -0
- package/dist/MSpinner-C2SUnWk4.js +65 -0
- package/dist/MSpinner-C2SUnWk4.js.map +1 -0
- package/dist/MTextField-CEkWSZ2v.js +296 -0
- package/dist/MTextField-CEkWSZ2v.js.map +1 -0
- package/dist/MTooltip-CodJGEO-.js +756 -0
- package/dist/MTooltip-CodJGEO-.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 +150 -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 +248 -0
- package/dist/components/MFloorPlanInspector.vue.d.ts +56 -0
- package/dist/components/MFloorPlanToolbar.vue.d.ts +51 -0
- package/dist/components/MFlow.vue.d.ts +318 -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/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 +2 -2
- 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/_flowPanel.d.ts +2 -0
- package/dist/composables/_flowSlot.d.ts +5 -0
- package/dist/composables/_ganttTime.d.ts +41 -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/useDrawing.d.ts +44 -0
- package/dist/composables/useFloorPlan.d.ts +58 -0
- package/dist/composables/useFlow.d.ts +266 -0
- package/dist/composables/useGantt.d.ts +87 -0
- package/dist/composables/useLocale.d.ts +204 -0
- package/dist/composables/useMediaPlayer.d.ts +101 -0
- package/dist/composables/usePdf.d.ts +119 -0
- package/dist/composables/useResourceTimeline.d.ts +70 -0
- package/dist/draw.d.ts +7 -0
- package/dist/draw.js +1702 -0
- package/dist/draw.js.map +1 -0
- package/dist/flow.d.ts +14 -0
- package/dist/flow.js +3547 -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 +9 -0
- package/dist/locales/index.js +1435 -7
- package/dist/locales/index.js.map +1 -1
- package/dist/m3ui-vue.css +1 -1
- package/dist/m3ui.js +8248 -7637
- package/dist/m3ui.js.map +1 -1
- package/dist/map.js +113 -108
- 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/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-CaWwi-b6.js} +206 -2
- package/dist/useLocale-CaWwi-b6.js.map +1 -0
- package/dist/{useThemeTokens-y0HZpyhL.js → useThemeTokens-DQQcaWbE.js} +40 -54
- 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 +118 -0
- package/src/__tests__/MFloorPlan.test.ts +299 -0
- package/src/__tests__/MFlow.test.ts +590 -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__/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__/useMediaPlayer.test.ts +182 -0
- package/src/__tests__/usePdf.test.ts +102 -0
- package/src/components/MAudioPlayer.vue +319 -0
- package/src/components/MDrawCanvas.vue +819 -0
- package/src/components/MDrawLayers.vue +114 -0
- package/src/components/MDrawToolbar.vue +171 -0
- package/src/components/MFloorPlan.vue +1080 -0
- package/src/components/MFloorPlanInspector.vue +169 -0
- package/src/components/MFloorPlanToolbar.vue +128 -0
- package/src/components/MFlow.vue +2060 -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/MMaskField.vue +13 -0
- package/src/components/MNumberField.vue +13 -0
- package/src/components/MPdfViewer.vue +1270 -0
- package/src/components/MResourceTimeline.vue +1020 -0
- package/src/components/MTagInput.vue +13 -0
- package/src/components/MTextField.vue +16 -0
- 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/_flowPanel.ts +13 -0
- package/src/composables/_flowSlot.ts +6 -0
- package/src/composables/_ganttTime.ts +200 -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/useDrawing.ts +53 -0
- package/src/composables/useFloorPlan.ts +73 -0
- package/src/composables/useFlow.ts +250 -0
- package/src/composables/useGantt.ts +92 -0
- package/src/composables/useLocale.ts +410 -0
- package/src/composables/useMediaPlayer.ts +406 -0
- package/src/composables/usePdf.ts +456 -0
- package/src/composables/useResourceTimeline.ts +76 -0
- package/src/draw.ts +25 -0
- package/src/flow.ts +26 -0
- package/src/gantt.ts +12 -0
- package/src/index.ts +9 -0
- package/src/locales/de.ts +204 -0
- package/src/locales/es.ts +204 -0
- package/src/locales/fr.ts +204 -0
- package/src/locales/ja.ts +204 -0
- package/src/locales/ko.ts +204 -0
- package/src/locales/pt.ts +204 -0
- package/src/locales/zh.ts +204 -0
- package/src/media.ts +5 -0
- package/src/pdf.ts +15 -0
- package/dist/MMenuItem-D4Gx_l3F.js +0 -929
- package/dist/MMenuItem-D4Gx_l3F.js.map +0 -1
- package/dist/MSlider-Dx_S3vJ9.js +0 -1506
- package/dist/MSlider-Dx_S3vJ9.js.map +0 -1
- package/dist/MTextField-Bz8JIsnl.js +0 -633
- package/dist/MTextField-Bz8JIsnl.js.map +0 -1
- package/dist/useLocale-JYxDDeXC.js.map +0 -1
- package/dist/useThemeTokens-y0HZpyhL.js.map +0 -1
package/dist/chart.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./useThemeTokens-
|
|
1
|
+
import { t as e } from "./useThemeTokens-DQQcaWbE.js";
|
|
2
2
|
import { computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, defineComponent as a, normalizeStyle as o, onMounted as s, openBlock as c, ref as l, resolveDynamicComponent as u, shallowRef as d, watch as f } from "vue";
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region src/components/MChart.vue
|
package/dist/code-editor.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as e } from "./useLocale-
|
|
1
|
+
import { i as e } from "./useLocale-CaWwi-b6.js";
|
|
2
2
|
import { t } from "./MIcon-Bxh9j135.js";
|
|
3
3
|
import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
4
4
|
import { computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, normalizeClass as u, normalizeStyle as d, onBeforeUnmount as f, onMounted as p, openBlock as m, ref as h, renderSlot as g, toDisplayString as _, watch as v, withCtx as y } from "vue";
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { type MediaPlayer } from '../composables/useMediaPlayer';
|
|
2
|
+
import type { VideoSource } from './MVideoPlayer.vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
/** `mini`: Media3's MiniController (a compact card). `standard`: a full player bar */
|
|
5
|
+
variant?: 'mini' | 'standard';
|
|
6
|
+
/** Audio URL */
|
|
7
|
+
src?: string;
|
|
8
|
+
/** Several formats of the audio; the browser plays the first it can */
|
|
9
|
+
sources?: VideoSource[];
|
|
10
|
+
/** Track title (also shown on the lock screen) */
|
|
11
|
+
title?: string;
|
|
12
|
+
/** Artist (also shown on the lock screen) */
|
|
13
|
+
artist?: string;
|
|
14
|
+
/** Album, for the lock screen */
|
|
15
|
+
album?: string;
|
|
16
|
+
/** Cover image URL */
|
|
17
|
+
artwork?: string;
|
|
18
|
+
/** Length in seconds, for a clock without `src` (with a file it comes from the file) */
|
|
19
|
+
duration?: number;
|
|
20
|
+
/** Drive this player instead of one of its own (from `useMediaPlayer()`). Read once */
|
|
21
|
+
player?: MediaPlayer;
|
|
22
|
+
/** Playing (v-model) */
|
|
23
|
+
playing?: boolean;
|
|
24
|
+
/** Position in seconds (v-model) */
|
|
25
|
+
currentTime?: number;
|
|
26
|
+
/** Playback speed (v-model) */
|
|
27
|
+
rate?: number;
|
|
28
|
+
/** Volume, 0 to 1 (v-model) */
|
|
29
|
+
volume?: number;
|
|
30
|
+
/** Muted (v-model) */
|
|
31
|
+
muted?: boolean;
|
|
32
|
+
/** Shuffle (v-model); unset hides the button */
|
|
33
|
+
shuffle?: boolean;
|
|
34
|
+
/** Repeat mode (v-model); unset hides the button */
|
|
35
|
+
repeat?: 'off' | 'all' | 'one';
|
|
36
|
+
/** Starts playing when mounted (browsers block it with sound before a user gesture) */
|
|
37
|
+
autoplay?: boolean;
|
|
38
|
+
/** There is a previous track: enables the previous button (emits `previous`) */
|
|
39
|
+
hasPrevious?: boolean;
|
|
40
|
+
/** There is a next track: enables the next button (emits `next`) */
|
|
41
|
+
hasNext?: boolean;
|
|
42
|
+
/** Speeds offered in a speed menu (`standard`); unset hides it */
|
|
43
|
+
speeds?: number[];
|
|
44
|
+
/** The seek bar's look (`standard`) */
|
|
45
|
+
seekBar?: 'slider' | 'line' | 'wavy';
|
|
46
|
+
/** Played part and play button: an M3 role or any CSS color */
|
|
47
|
+
color?: string;
|
|
48
|
+
};
|
|
49
|
+
declare var __VLS_1: {
|
|
50
|
+
player: MediaPlayer;
|
|
51
|
+
}, __VLS_29: {
|
|
52
|
+
player: MediaPlayer;
|
|
53
|
+
}, __VLS_31: {
|
|
54
|
+
player: MediaPlayer;
|
|
55
|
+
}, __VLS_33: {
|
|
56
|
+
player: MediaPlayer;
|
|
57
|
+
};
|
|
58
|
+
type __VLS_Slots = {} & {
|
|
59
|
+
artwork?: (props: typeof __VLS_1) => any;
|
|
60
|
+
} & {
|
|
61
|
+
actions?: (props: typeof __VLS_29) => any;
|
|
62
|
+
} & {
|
|
63
|
+
artwork?: (props: typeof __VLS_31) => any;
|
|
64
|
+
} & {
|
|
65
|
+
actions?: (props: typeof __VLS_33) => any;
|
|
66
|
+
};
|
|
67
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
68
|
+
error: (args_0: MediaError | null) => any;
|
|
69
|
+
previous: () => any;
|
|
70
|
+
next: () => any;
|
|
71
|
+
click: (args_0: MouseEvent) => any;
|
|
72
|
+
ended: () => any;
|
|
73
|
+
"update:playing": (args_0: boolean) => any;
|
|
74
|
+
"update:currentTime": (args_0: number) => any;
|
|
75
|
+
"update:rate": (args_0: number) => any;
|
|
76
|
+
"update:volume": (args_0: number) => any;
|
|
77
|
+
"update:muted": (args_0: boolean) => any;
|
|
78
|
+
"update:shuffle": (args_0: boolean) => any;
|
|
79
|
+
"update:repeat": (args_0: "all" | "off" | "one") => any;
|
|
80
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
81
|
+
onError?: ((args_0: MediaError | null) => any) | undefined;
|
|
82
|
+
onPrevious?: (() => any) | undefined;
|
|
83
|
+
onNext?: (() => any) | undefined;
|
|
84
|
+
onClick?: ((args_0: MouseEvent) => any) | undefined;
|
|
85
|
+
onEnded?: (() => any) | undefined;
|
|
86
|
+
"onUpdate:playing"?: ((args_0: boolean) => any) | undefined;
|
|
87
|
+
"onUpdate:currentTime"?: ((args_0: number) => any) | undefined;
|
|
88
|
+
"onUpdate:rate"?: ((args_0: number) => any) | undefined;
|
|
89
|
+
"onUpdate:volume"?: ((args_0: number) => any) | undefined;
|
|
90
|
+
"onUpdate:muted"?: ((args_0: boolean) => any) | undefined;
|
|
91
|
+
"onUpdate:shuffle"?: ((args_0: boolean) => any) | undefined;
|
|
92
|
+
"onUpdate:repeat"?: ((args_0: "all" | "off" | "one") => any) | undefined;
|
|
93
|
+
}>, {
|
|
94
|
+
color: string;
|
|
95
|
+
repeat: "off" | "all" | "one";
|
|
96
|
+
seekBar: "slider" | "line" | "wavy";
|
|
97
|
+
playing: boolean;
|
|
98
|
+
variant: "mini" | "standard";
|
|
99
|
+
rate: number;
|
|
100
|
+
autoplay: boolean;
|
|
101
|
+
currentTime: number;
|
|
102
|
+
volume: number;
|
|
103
|
+
muted: boolean;
|
|
104
|
+
hasPrevious: boolean;
|
|
105
|
+
hasNext: boolean;
|
|
106
|
+
shuffle: boolean;
|
|
107
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
108
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
109
|
+
declare const _default: typeof __VLS_export;
|
|
110
|
+
export default _default;
|
|
111
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
112
|
+
new (): {
|
|
113
|
+
$slots: S;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
@@ -21,8 +21,8 @@ type __VLS_Slots = {} & {
|
|
|
21
21
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
22
22
|
color: "primary" | "error" | "secondary" | "tertiary";
|
|
23
23
|
position: BadgePosition;
|
|
24
|
-
max: number;
|
|
25
24
|
overlap: BadgeOverlap;
|
|
25
|
+
max: number;
|
|
26
26
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
27
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
28
|
declare const _default: typeof __VLS_export;
|
|
@@ -25,10 +25,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
25
25
|
"onUpdate:modelValue"?: ((args_0: BottomSheetValue) => any) | undefined;
|
|
26
26
|
}>, {
|
|
27
27
|
modelValue: BottomSheetValue;
|
|
28
|
+
maxWidth: number;
|
|
28
29
|
peekHeight: number;
|
|
29
30
|
skipHiddenState: boolean;
|
|
30
31
|
swipeEnabled: boolean;
|
|
31
|
-
maxWidth: number;
|
|
32
32
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
33
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
34
34
|
declare const _default: typeof __VLS_export;
|
|
@@ -17,8 +17,8 @@ type __VLS_Slots = {} & {
|
|
|
17
17
|
default?: (props: typeof __VLS_8) => any;
|
|
18
18
|
};
|
|
19
19
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
20
|
-
tag: string;
|
|
21
20
|
rounded: "none" | "sm" | "md" | "lg" | "xl" | "full";
|
|
21
|
+
tag: string;
|
|
22
22
|
padding: "none" | "xs" | "sm" | "md" | "lg" | "xl";
|
|
23
23
|
elevation: 0 | 1 | 2 | 3 | 4 | 5;
|
|
24
24
|
border: boolean;
|
|
@@ -49,9 +49,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
49
49
|
type: "button" | "submit" | "reset";
|
|
50
50
|
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
51
51
|
loading: boolean;
|
|
52
|
+
shape: "rounded" | "squared";
|
|
52
53
|
variant: "filled" | "tonal" | "outlined" | "text" | "elevated";
|
|
53
54
|
disabled: boolean;
|
|
54
|
-
shape: "rounded" | "squared";
|
|
55
55
|
iconPos: "leading" | "trailing";
|
|
56
56
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
57
57
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -24,8 +24,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
24
24
|
onConfirm?: (() => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
26
|
loading: boolean;
|
|
27
|
-
closable: boolean;
|
|
28
27
|
danger: boolean;
|
|
28
|
+
closable: boolean;
|
|
29
29
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
30
30
|
declare const _default: typeof __VLS_export;
|
|
31
31
|
export default _default;
|
|
@@ -29,10 +29,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
29
29
|
}>, {
|
|
30
30
|
label: string;
|
|
31
31
|
size: "xs" | "sm" | "md" | "lg" | "xl" | number;
|
|
32
|
+
shape: "rounded" | "squared";
|
|
33
|
+
icon: string;
|
|
32
34
|
variant: "standard" | "filled" | "tonal" | "outlined";
|
|
33
35
|
disabled: boolean;
|
|
34
|
-
icon: string;
|
|
35
|
-
shape: "rounded" | "squared";
|
|
36
36
|
copiedIcon: string;
|
|
37
37
|
copiedLabel: string;
|
|
38
38
|
resetDelay: number;
|
|
@@ -118,9 +118,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
118
118
|
}>, {
|
|
119
119
|
modelValue: Record<string, any>[];
|
|
120
120
|
loading: boolean;
|
|
121
|
-
dense: boolean;
|
|
122
|
-
selectable: boolean;
|
|
123
121
|
page: number;
|
|
122
|
+
selectable: boolean;
|
|
123
|
+
dense: boolean;
|
|
124
124
|
perPage: number;
|
|
125
125
|
total: number;
|
|
126
126
|
rowKey: string;
|
|
@@ -55,10 +55,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
55
55
|
"onUpdate:modelValue"?: ((args_0: boolean) => any) | undefined;
|
|
56
56
|
}>, {
|
|
57
57
|
maxHeight: string;
|
|
58
|
-
closable: boolean;
|
|
59
|
-
fullscreen: boolean;
|
|
60
58
|
maxWidth: string;
|
|
61
59
|
persistent: boolean;
|
|
60
|
+
fullscreen: boolean;
|
|
61
|
+
closable: boolean;
|
|
62
62
|
bare: boolean;
|
|
63
63
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
64
64
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -10,8 +10,8 @@ type __VLS_Props = {
|
|
|
10
10
|
inset?: boolean;
|
|
11
11
|
};
|
|
12
12
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
13
|
-
inset: boolean;
|
|
14
13
|
vertical: boolean;
|
|
14
|
+
inset: boolean;
|
|
15
15
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
declare const _default: typeof __VLS_export;
|
|
17
17
|
export default _default;
|
|
@@ -5,8 +5,8 @@ type __VLS_Props = {
|
|
|
5
5
|
dragging?: boolean;
|
|
6
6
|
};
|
|
7
7
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
8
|
-
orientation: "vertical" | "horizontal";
|
|
9
8
|
dragging: boolean;
|
|
9
|
+
orientation: "vertical" | "horizontal";
|
|
10
10
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
export default _default;
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { type DrawBox, type DrawItem, type DrawLayer } from '../composables/drawGeometry';
|
|
2
|
+
import { type DrawExportOptions, type DrawTool } from '../composables/useDrawing';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
/** An endless canvas, or pages of `pageSize` stacked one under another */
|
|
5
|
+
mode?: 'infinite' | 'pages';
|
|
6
|
+
/** A page's size in drawing units (A4 at 96 dpi by default) */
|
|
7
|
+
pageSize?: {
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
};
|
|
11
|
+
/** The paper's color (pages, or the whole infinite canvas) */
|
|
12
|
+
paper?: string;
|
|
13
|
+
/** A ruling drawn on the paper */
|
|
14
|
+
background?: 'none' | 'grid' | 'dots' | 'lines';
|
|
15
|
+
/** The ruling's spacing */
|
|
16
|
+
backgroundSize?: number;
|
|
17
|
+
/** An image under the drawing, to trace or annotate: fills each page, or sits at (0, 0) on an infinite canvas */
|
|
18
|
+
backgroundImage?: string;
|
|
19
|
+
/** Infinite canvas: where the background image goes and its size, in drawing units (fitView takes it in too) */
|
|
20
|
+
backgroundImageBox?: DrawBox;
|
|
21
|
+
/** Fingers only pan and zoom: `true`, `false`, or `'auto'` (once a stylus has touched the canvas) */
|
|
22
|
+
penOnly?: boolean | 'auto';
|
|
23
|
+
/** Use the stylus' pressure (without one, speed thins the line) */
|
|
24
|
+
pressure?: boolean;
|
|
25
|
+
/** How much strokes are smoothed, 0–1 */
|
|
26
|
+
smoothing?: number;
|
|
27
|
+
/** The eraser's radius in screen pixels */
|
|
28
|
+
eraserSize?: number;
|
|
29
|
+
/** Undo and redo */
|
|
30
|
+
history?: boolean;
|
|
31
|
+
historySize?: number;
|
|
32
|
+
/** Look only: no drawing, but pan and zoom */
|
|
33
|
+
readonly?: boolean;
|
|
34
|
+
minZoom?: number;
|
|
35
|
+
maxZoom?: number;
|
|
36
|
+
/** Accessible name of the canvas */
|
|
37
|
+
label?: string;
|
|
38
|
+
};
|
|
39
|
+
declare function undo(): void;
|
|
40
|
+
declare function redo(): void;
|
|
41
|
+
declare function clear(): void;
|
|
42
|
+
declare function deleteSelection(): void;
|
|
43
|
+
declare function toContent(e: {
|
|
44
|
+
clientX: number;
|
|
45
|
+
clientY: number;
|
|
46
|
+
}): {
|
|
47
|
+
x: number;
|
|
48
|
+
y: number;
|
|
49
|
+
};
|
|
50
|
+
declare function fitView(): void;
|
|
51
|
+
declare function exportSvg(opts?: DrawExportOptions): string;
|
|
52
|
+
type __VLS_ModelProps = {
|
|
53
|
+
/** The drawing: strokes, shapes and texts */
|
|
54
|
+
modelValue?: DrawItem[];
|
|
55
|
+
'tool'?: DrawTool;
|
|
56
|
+
'color'?: string;
|
|
57
|
+
/** Pen width, shape line width or font size, by tool */
|
|
58
|
+
'size'?: number;
|
|
59
|
+
/** New rects and ellipses are filled with the color */
|
|
60
|
+
'fill'?: boolean;
|
|
61
|
+
/** Layers, bottom first (none: one implicit layer) */
|
|
62
|
+
'layers'?: DrawLayer[];
|
|
63
|
+
/** The layer new items go on (default: the top one) */
|
|
64
|
+
'layer'?: string | undefined;
|
|
65
|
+
/** How many pages, in `mode="pages"` */
|
|
66
|
+
'pages'?: number;
|
|
67
|
+
/** The selected items' ids */
|
|
68
|
+
'selection'?: string[];
|
|
69
|
+
/** Pan and zoom: screen = drawing × zoom + (x, y) */
|
|
70
|
+
'viewport'?: {
|
|
71
|
+
x: number;
|
|
72
|
+
y: number;
|
|
73
|
+
zoom: number;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
77
|
+
declare var __VLS_1: {};
|
|
78
|
+
type __VLS_Slots = {} & {
|
|
79
|
+
default?: (props: typeof __VLS_1) => any;
|
|
80
|
+
};
|
|
81
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
82
|
+
undo: typeof undo;
|
|
83
|
+
redo: typeof redo;
|
|
84
|
+
clear: typeof clear;
|
|
85
|
+
deleteSelection: typeof deleteSelection;
|
|
86
|
+
fitView: typeof fitView;
|
|
87
|
+
zoomIn: () => void;
|
|
88
|
+
zoomOut: () => void;
|
|
89
|
+
exportSvg: typeof exportSvg;
|
|
90
|
+
exportPng: (opts?: DrawExportOptions) => Promise<Blob>;
|
|
91
|
+
toContent: typeof toContent;
|
|
92
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
93
|
+
"update:modelValue": (value: DrawItem[]) => any;
|
|
94
|
+
change: (items: DrawItem[]) => any;
|
|
95
|
+
"update:tool": (value: DrawTool) => any;
|
|
96
|
+
"update:color": (value: string) => any;
|
|
97
|
+
"update:size": (value: number) => any;
|
|
98
|
+
"update:fill": (value: boolean) => any;
|
|
99
|
+
"update:layers": (value: DrawLayer[]) => any;
|
|
100
|
+
"update:layer": (value: string | undefined) => any;
|
|
101
|
+
"update:pages": (value: number) => any;
|
|
102
|
+
"update:selection": (value: string[]) => any;
|
|
103
|
+
"update:viewport": (value: {
|
|
104
|
+
x: number;
|
|
105
|
+
y: number;
|
|
106
|
+
zoom: number;
|
|
107
|
+
}) => any;
|
|
108
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
109
|
+
"onUpdate:modelValue"?: ((value: DrawItem[]) => any) | undefined;
|
|
110
|
+
onChange?: ((items: DrawItem[]) => any) | undefined;
|
|
111
|
+
"onUpdate:tool"?: ((value: DrawTool) => any) | undefined;
|
|
112
|
+
"onUpdate:color"?: ((value: string) => any) | undefined;
|
|
113
|
+
"onUpdate:size"?: ((value: number) => any) | undefined;
|
|
114
|
+
"onUpdate:fill"?: ((value: boolean) => any) | undefined;
|
|
115
|
+
"onUpdate:layers"?: ((value: DrawLayer[]) => any) | undefined;
|
|
116
|
+
"onUpdate:layer"?: ((value: string | undefined) => any) | undefined;
|
|
117
|
+
"onUpdate:pages"?: ((value: number) => any) | undefined;
|
|
118
|
+
"onUpdate:selection"?: ((value: string[]) => any) | undefined;
|
|
119
|
+
"onUpdate:viewport"?: ((value: {
|
|
120
|
+
x: number;
|
|
121
|
+
y: number;
|
|
122
|
+
zoom: number;
|
|
123
|
+
}) => any) | undefined;
|
|
124
|
+
}>, {
|
|
125
|
+
background: "none" | "grid" | "dots" | "lines";
|
|
126
|
+
mode: "infinite" | "pages";
|
|
127
|
+
readonly: boolean;
|
|
128
|
+
pageSize: {
|
|
129
|
+
width: number;
|
|
130
|
+
height: number;
|
|
131
|
+
};
|
|
132
|
+
paper: string;
|
|
133
|
+
backgroundSize: number;
|
|
134
|
+
penOnly: boolean | "auto";
|
|
135
|
+
pressure: boolean;
|
|
136
|
+
smoothing: number;
|
|
137
|
+
eraserSize: number;
|
|
138
|
+
history: boolean;
|
|
139
|
+
historySize: number;
|
|
140
|
+
minZoom: number;
|
|
141
|
+
maxZoom: number;
|
|
142
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
143
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
144
|
+
declare const _default: typeof __VLS_export;
|
|
145
|
+
export default _default;
|
|
146
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
147
|
+
new (): {
|
|
148
|
+
$slots: S;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type DrawTool } from '../composables/useDrawing';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** The tools offered (in groups: pens, erasers and shapes share a button each) */
|
|
4
|
+
tools?: DrawTool[];
|
|
5
|
+
/** Color swatches */
|
|
6
|
+
colors?: string[];
|
|
7
|
+
/** Sizes offered (pen width; a shape's line is the same, text is 4× it) */
|
|
8
|
+
sizes?: number[];
|
|
9
|
+
/** Undo and redo */
|
|
10
|
+
history?: boolean;
|
|
11
|
+
/** A button that opens a color picker for any color */
|
|
12
|
+
customColor?: boolean;
|
|
13
|
+
};
|
|
14
|
+
declare var __VLS_1: {}, __VLS_107: {};
|
|
15
|
+
type __VLS_Slots = {} & {
|
|
16
|
+
default?: (props: typeof __VLS_1) => any;
|
|
17
|
+
} & {
|
|
18
|
+
end?: (props: typeof __VLS_107) => any;
|
|
19
|
+
};
|
|
20
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
21
|
+
colors: string[];
|
|
22
|
+
history: boolean;
|
|
23
|
+
tools: DrawTool[];
|
|
24
|
+
sizes: number[];
|
|
25
|
+
customColor: boolean;
|
|
26
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -36,9 +36,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
36
36
|
format: "csv" | "json";
|
|
37
37
|
label: string;
|
|
38
38
|
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
39
|
+
icon: string;
|
|
39
40
|
variant: "filled" | "tonal" | "outlined" | "text" | "elevated";
|
|
40
41
|
disabled: boolean;
|
|
41
|
-
icon: string;
|
|
42
42
|
filename: string;
|
|
43
43
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
44
44
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -68,10 +68,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
68
68
|
scrim: boolean;
|
|
69
69
|
size: "small" | "regular" | "medium" | "large";
|
|
70
70
|
disabled: boolean;
|
|
71
|
-
|
|
71
|
+
align: "start" | "end";
|
|
72
72
|
persistent: boolean;
|
|
73
73
|
direction: "up" | "down" | "left" | "right" | "radial";
|
|
74
|
-
|
|
74
|
+
expanded: boolean;
|
|
75
75
|
contentTransition: "scale" | "fade" | "none";
|
|
76
76
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
77
77
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -42,10 +42,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
42
42
|
scrim: boolean;
|
|
43
43
|
size: "small" | "regular" | "large";
|
|
44
44
|
disabled: boolean;
|
|
45
|
-
|
|
45
|
+
align: "start" | "end";
|
|
46
46
|
persistent: boolean;
|
|
47
47
|
direction: "up" | "down";
|
|
48
|
-
|
|
48
|
+
itemSize: "small" | "regular" | "large";
|
|
49
49
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
50
50
|
declare const _default: typeof __VLS_export;
|
|
51
51
|
export default _default;
|
|
@@ -27,8 +27,8 @@ type __VLS_Slots = {} & {
|
|
|
27
27
|
};
|
|
28
28
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
29
29
|
offset: string | number;
|
|
30
|
-
inset: boolean;
|
|
31
30
|
zIndex: number;
|
|
31
|
+
inset: boolean;
|
|
32
32
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
33
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
34
34
|
declare const _default: typeof __VLS_export;
|
|
@@ -18,10 +18,10 @@ type __VLS_Slots = {} & {
|
|
|
18
18
|
};
|
|
19
19
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
20
20
|
wrap: boolean;
|
|
21
|
-
inline: boolean;
|
|
22
|
-
direction: "row" | "column" | "row-reverse" | "column-reverse";
|
|
23
21
|
gap: "none" | "xs" | "sm" | "md" | "lg" | "xl";
|
|
24
22
|
align: "start" | "center" | "end" | "stretch" | "baseline";
|
|
23
|
+
direction: "row" | "column" | "row-reverse" | "column-reverse";
|
|
24
|
+
inline: boolean;
|
|
25
25
|
justify: "start" | "center" | "end" | "between" | "around" | "evenly";
|
|
26
26
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
27
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|