@m3ui-vue/m3ui-vue 1.2.2 → 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 +2776 -351
- 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/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/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/useResourceTimeline.d.ts +70 -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 +4 -0
- 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 +7286 -7654
- 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-BpGxplLV.js} +165 -2
- package/dist/useLocale-BpGxplLV.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 +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__/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 +813 -0
- package/src/components/MDrawLayers.vue +114 -0
- package/src/components/MDrawToolbar.vue +171 -0
- 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/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/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/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/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 +4 -0
- 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/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
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
export interface CropRect {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
}
|
|
7
|
+
export interface CropAspect {
|
|
8
|
+
label: string;
|
|
9
|
+
value: number | null;
|
|
10
|
+
}
|
|
11
|
+
export interface CropOutputOptions {
|
|
12
|
+
/** The result's size in px; one alone keeps the crop's proportions (default the crop's own size) */
|
|
13
|
+
width?: number;
|
|
14
|
+
height?: number;
|
|
15
|
+
/** The longest side at most, px */
|
|
16
|
+
maxSize?: number;
|
|
17
|
+
/** Round, transparent outside (default true for `shape="circle"`) */
|
|
18
|
+
circle?: boolean;
|
|
19
|
+
}
|
|
20
|
+
type __VLS_Props = {
|
|
21
|
+
/** The picture: a URL, a File or a Blob */
|
|
22
|
+
src?: string | Blob | null;
|
|
23
|
+
/** The frame, in the rotated picture's pixels (`v-model:crop`) */
|
|
24
|
+
crop?: CropRect | null;
|
|
25
|
+
/** Width over height (1 square, 16 / 9…); null is free */
|
|
26
|
+
aspect?: number | null;
|
|
27
|
+
/** Aspects offered in the toolbar as chips (`v-model:aspect` follows them) */
|
|
28
|
+
aspects?: CropAspect[];
|
|
29
|
+
/** Quarter turns clockwise in degrees (`v-model:rotation`) */
|
|
30
|
+
rotation?: 0 | 90 | 180 | 270;
|
|
31
|
+
/** Mirrored left to right (`v-model:flipped`) */
|
|
32
|
+
flipped?: boolean;
|
|
33
|
+
shape?: 'rect' | 'circle';
|
|
34
|
+
/** The frame's smallest side, in the picture's px */
|
|
35
|
+
minSize?: number;
|
|
36
|
+
/** The rule-of-thirds grid: while dragging (default), always or never */
|
|
37
|
+
guides?: 'drag' | 'always' | 'never';
|
|
38
|
+
/** The toolbar under the picture */
|
|
39
|
+
controls?: boolean;
|
|
40
|
+
/** Accessible name of the picture */
|
|
41
|
+
alt?: string;
|
|
42
|
+
};
|
|
43
|
+
declare function turn(dir: 1 | -1): void;
|
|
44
|
+
declare function flipX(): void;
|
|
45
|
+
declare function setAspect(a: number | null): void;
|
|
46
|
+
declare function reset(): void;
|
|
47
|
+
declare function toCanvas(options?: CropOutputOptions): HTMLCanvasElement | null;
|
|
48
|
+
declare function toBlob(options?: CropOutputOptions & {
|
|
49
|
+
type?: string;
|
|
50
|
+
quality?: number;
|
|
51
|
+
}): Promise<Blob | null>;
|
|
52
|
+
declare var __VLS_1: {
|
|
53
|
+
rotate: typeof turn;
|
|
54
|
+
flip: typeof flipX;
|
|
55
|
+
reset: typeof reset;
|
|
56
|
+
aspect: number | null;
|
|
57
|
+
setAspect: typeof setAspect;
|
|
58
|
+
};
|
|
59
|
+
type __VLS_Slots = {} & {
|
|
60
|
+
controls?: (props: typeof __VLS_1) => any;
|
|
61
|
+
};
|
|
62
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
63
|
+
toCanvas: typeof toCanvas;
|
|
64
|
+
toBlob: typeof toBlob;
|
|
65
|
+
rotate: typeof turn;
|
|
66
|
+
flip: typeof flipX;
|
|
67
|
+
reset: typeof reset;
|
|
68
|
+
setAspect: typeof setAspect;
|
|
69
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
70
|
+
error: (args_0: Event) => any;
|
|
71
|
+
change: (args_0: CropRect) => any;
|
|
72
|
+
load: (args_0: {
|
|
73
|
+
width: number;
|
|
74
|
+
height: number;
|
|
75
|
+
}) => any;
|
|
76
|
+
"update:crop": (args_0: CropRect) => any;
|
|
77
|
+
"update:aspect": (args_0: number | null) => any;
|
|
78
|
+
"update:rotation": (args_0: 0 | 90 | 180 | 270) => any;
|
|
79
|
+
"update:flipped": (args_0: boolean) => any;
|
|
80
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
81
|
+
onError?: ((args_0: Event) => any) | undefined;
|
|
82
|
+
onChange?: ((args_0: CropRect) => any) | undefined;
|
|
83
|
+
onLoad?: ((args_0: {
|
|
84
|
+
width: number;
|
|
85
|
+
height: number;
|
|
86
|
+
}) => any) | undefined;
|
|
87
|
+
"onUpdate:crop"?: ((args_0: CropRect) => any) | undefined;
|
|
88
|
+
"onUpdate:aspect"?: ((args_0: number | null) => any) | undefined;
|
|
89
|
+
"onUpdate:rotation"?: ((args_0: 0 | 90 | 180 | 270) => any) | undefined;
|
|
90
|
+
"onUpdate:flipped"?: ((args_0: boolean) => any) | undefined;
|
|
91
|
+
}>, {
|
|
92
|
+
rotation: 0 | 90 | 180 | 270;
|
|
93
|
+
shape: "rect" | "circle";
|
|
94
|
+
guides: "drag" | "always" | "never";
|
|
95
|
+
src: string | Blob | null;
|
|
96
|
+
alt: string;
|
|
97
|
+
controls: boolean;
|
|
98
|
+
crop: CropRect | null;
|
|
99
|
+
aspect: number | null;
|
|
100
|
+
flipped: boolean;
|
|
101
|
+
minSize: number;
|
|
102
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
103
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
104
|
+
declare const _default: typeof __VLS_export;
|
|
105
|
+
export default _default;
|
|
106
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
107
|
+
new (): {
|
|
108
|
+
$slots: S;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
@@ -29,8 +29,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
29
29
|
}>, {
|
|
30
30
|
loading: boolean;
|
|
31
31
|
ended: boolean;
|
|
32
|
-
threshold: number;
|
|
33
32
|
disabled: boolean;
|
|
33
|
+
threshold: number;
|
|
34
34
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
35
35
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
36
36
|
declare const _default: typeof __VLS_export;
|
|
@@ -50,12 +50,12 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
50
50
|
"onUpdate:index"?: ((args_0: number) => any) | undefined;
|
|
51
51
|
}>, {
|
|
52
52
|
modelValue: boolean;
|
|
53
|
+
maxZoom: number;
|
|
53
54
|
rounded: boolean;
|
|
55
|
+
zoom: boolean;
|
|
54
56
|
index: number;
|
|
55
57
|
loop: boolean;
|
|
56
58
|
showThumbnails: boolean;
|
|
57
|
-
zoom: boolean;
|
|
58
|
-
maxZoom: number;
|
|
59
59
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
60
60
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
61
61
|
declare const _default: typeof __VLS_export;
|
|
@@ -24,8 +24,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
24
24
|
"onUpdate:selected"?: ((value: string | number | null) => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
26
|
nav: boolean;
|
|
27
|
-
dense: boolean;
|
|
28
27
|
selectable: boolean;
|
|
28
|
+
dense: boolean;
|
|
29
29
|
dividers: boolean | "inset";
|
|
30
30
|
segmented: boolean;
|
|
31
31
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -19,8 +19,8 @@ type __VLS_Slots = {} & {
|
|
|
19
19
|
default?: (props: typeof __VLS_33) => any;
|
|
20
20
|
};
|
|
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
|
-
fullscreen: boolean;
|
|
23
22
|
spinnerSize: number;
|
|
23
|
+
fullscreen: boolean;
|
|
24
24
|
opaque: boolean;
|
|
25
25
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
26
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -27,8 +27,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
27
27
|
}>, {
|
|
28
28
|
animate: boolean;
|
|
29
29
|
position: MapControlPosition;
|
|
30
|
-
expanded: boolean;
|
|
31
30
|
group: boolean;
|
|
31
|
+
expanded: 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;
|
|
@@ -21,8 +21,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
21
21
|
}>, {
|
|
22
22
|
marker: boolean;
|
|
23
23
|
position: MapControlPosition;
|
|
24
|
-
instant: boolean;
|
|
25
24
|
zoom: number;
|
|
25
|
+
instant: boolean;
|
|
26
26
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
27
|
declare const _default: typeof __VLS_export;
|
|
28
28
|
export default _default;
|
|
@@ -29,7 +29,18 @@ type __VLS_Props = {
|
|
|
29
29
|
/** Delay (ms) before firing the @debounced event */
|
|
30
30
|
debounce?: number;
|
|
31
31
|
};
|
|
32
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
32
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
33
|
+
/** The `<input>` (or `<textarea>`) element */
|
|
34
|
+
inputEl: import("vue").Ref<HTMLInputElement | null, HTMLInputElement | null>;
|
|
35
|
+
/** Focuses the field */
|
|
36
|
+
focus: (options?: FocusOptions) => void | undefined;
|
|
37
|
+
/** Takes focus away from the field */
|
|
38
|
+
blur: () => void | undefined;
|
|
39
|
+
/** Selects all its text */
|
|
40
|
+
select: () => void | undefined;
|
|
41
|
+
/** Selects part of its text (e.g. a file name without its extension) */
|
|
42
|
+
setSelectionRange: (start: number, end: number, direction?: "forward" | "backward" | "none") => void | undefined;
|
|
43
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
33
44
|
"update:modelValue": (args_0: string) => any;
|
|
34
45
|
debounced: (args_0: string) => any;
|
|
35
46
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
@@ -31,8 +31,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
31
31
|
open: import("vue").Ref<boolean, boolean>;
|
|
32
32
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
33
33
|
variant: "standard" | "expressive";
|
|
34
|
-
submenuMode: "flyout" | "push";
|
|
35
34
|
align: "left" | "right";
|
|
35
|
+
submenuMode: "flyout" | "push";
|
|
36
36
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
37
37
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
38
38
|
declare const _default: typeof __VLS_export;
|
|
@@ -70,9 +70,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
70
70
|
onSelect?: ((args_0: string | number) => any) | undefined;
|
|
71
71
|
"onUpdate:modelValue"?: ((args_0: boolean) => any) | undefined;
|
|
72
72
|
}>, {
|
|
73
|
+
side: "left" | "right" | "top" | "bottom";
|
|
73
74
|
modal: boolean;
|
|
74
75
|
swipeEnabled: boolean;
|
|
75
|
-
side: "left" | "right" | "top" | "bottom";
|
|
76
76
|
expandSelected: boolean;
|
|
77
77
|
accordion: boolean;
|
|
78
78
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -32,7 +32,16 @@ type __VLS_Props = {
|
|
|
32
32
|
/** Delay (ms) before firing the @debounced event */
|
|
33
33
|
debounce?: number;
|
|
34
34
|
};
|
|
35
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
35
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
36
|
+
/** The `<input>` (or `<textarea>`) element */
|
|
37
|
+
inputEl: import("vue").Ref<HTMLInputElement | null, HTMLInputElement | null>;
|
|
38
|
+
/** Focuses the field */
|
|
39
|
+
focus: (options?: FocusOptions) => void | undefined;
|
|
40
|
+
/** Takes focus away from the field */
|
|
41
|
+
blur: () => void | undefined;
|
|
42
|
+
/** Selects all its text */
|
|
43
|
+
select: () => void | undefined;
|
|
44
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
36
45
|
"update:modelValue": (args_0: number | null) => any;
|
|
37
46
|
debounced: (args_0: number | null) => any;
|
|
38
47
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
@@ -41,8 +50,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
41
50
|
}>, {
|
|
42
51
|
modelValue: number | null;
|
|
43
52
|
variant: "filled" | "outlined";
|
|
44
|
-
debounce: number;
|
|
45
53
|
step: number;
|
|
54
|
+
debounce: number;
|
|
46
55
|
stepper: boolean;
|
|
47
56
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
48
57
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { type PdfSource } from '../composables/usePdf';
|
|
2
|
+
/** One annotation, in PDF points (origin at the page's bottom left), so it survives zoom, rotation and reflows */
|
|
3
|
+
export interface PdfAnnotation {
|
|
4
|
+
id: string;
|
|
5
|
+
type: 'highlight' | 'note' | 'ink';
|
|
6
|
+
/** 1-based page */
|
|
7
|
+
page: number;
|
|
8
|
+
/** Any CSS color */
|
|
9
|
+
color: string;
|
|
10
|
+
/** highlight: the selected lines, `[x1, y1, x2, y2]` each */
|
|
11
|
+
rects?: [number, number, number, number][];
|
|
12
|
+
/** highlight: the text it covers */
|
|
13
|
+
quote?: string;
|
|
14
|
+
/** note: where its icon sits */
|
|
15
|
+
at?: [number, number];
|
|
16
|
+
/** ink: strokes, each a list of points */
|
|
17
|
+
paths?: [number, number][][];
|
|
18
|
+
/** ink: stroke width in points */
|
|
19
|
+
width?: number;
|
|
20
|
+
/** A note's text, or a comment on a highlight or drawing */
|
|
21
|
+
text?: string;
|
|
22
|
+
author?: string;
|
|
23
|
+
/** ISO date */
|
|
24
|
+
createdAt: string;
|
|
25
|
+
}
|
|
26
|
+
export type PdfTool = 'select' | 'highlight' | 'note' | 'ink' | 'eraser';
|
|
27
|
+
/**
|
|
28
|
+
* What's left of an annotation after the eraser passed over `at` (PDF points, radius `r`): an ink stroke is cut
|
|
29
|
+
* where it passes (null once nothing is left), a highlight or a note it touches goes entirely. The same object
|
|
30
|
+
* back means it wasn't touched
|
|
31
|
+
*/
|
|
32
|
+
export declare function eraseFrom(a: PdfAnnotation, at: {
|
|
33
|
+
x: number;
|
|
34
|
+
y: number;
|
|
35
|
+
r: number;
|
|
36
|
+
}): PdfAnnotation | null;
|
|
37
|
+
export type PdfZoom = number | 'fit-width' | 'fit-page';
|
|
38
|
+
declare const _default: typeof __VLS_export;
|
|
39
|
+
export default _default;
|
|
40
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
41
|
+
/** The PDF: a URL, its bytes, or a `File`/`Blob` */
|
|
42
|
+
src?: PdfSource | null;
|
|
43
|
+
/** Shown in the top bar; default the document's own title */
|
|
44
|
+
title?: string;
|
|
45
|
+
/** Current page, 1-based (v-model) */
|
|
46
|
+
page?: number;
|
|
47
|
+
/** `fit-width`, `fit-page`, or a zoom where 1 is 100% (v-model) */
|
|
48
|
+
zoom?: PdfZoom;
|
|
49
|
+
/** Extra rotation in degrees, a multiple of 90 (v-model) */
|
|
50
|
+
rotation?: number;
|
|
51
|
+
/** Annotations to draw (v-model) */
|
|
52
|
+
annotations?: PdfAnnotation[];
|
|
53
|
+
/** Shows the edit button and the annotation toolbar */
|
|
54
|
+
annotate?: boolean;
|
|
55
|
+
/** The active tool (v-model) */
|
|
56
|
+
tool?: PdfTool;
|
|
57
|
+
/** Colors offered for annotations */
|
|
58
|
+
colors?: string[];
|
|
59
|
+
/** The pen's widths offered in the toolbar, in PDF points (the first one is the default) */
|
|
60
|
+
inkWidths?: number[];
|
|
61
|
+
/** Written into new annotations' `author` */
|
|
62
|
+
author?: string;
|
|
63
|
+
/** The side panel: thumbnails, the outline, or closed (v-model) */
|
|
64
|
+
sidebar?: "thumbnails" | "outline" | null;
|
|
65
|
+
/** Shows the top bar */
|
|
66
|
+
toolbar?: boolean;
|
|
67
|
+
/** Shows download and print */
|
|
68
|
+
downloadable?: boolean;
|
|
69
|
+
/** File name for downloads; default the URL's or the document's title */
|
|
70
|
+
fileName?: string;
|
|
71
|
+
/** A password to try first */
|
|
72
|
+
password?: string;
|
|
73
|
+
/** The pdf.js worker URL (or `setPdfWorker()` once for the app) */
|
|
74
|
+
workerSrc?: string;
|
|
75
|
+
minZoom?: number;
|
|
76
|
+
maxZoom?: number;
|
|
77
|
+
}, {
|
|
78
|
+
pdf: import("../pdf.ts").PdfState;
|
|
79
|
+
goToPage: (p: number) => void;
|
|
80
|
+
setZoom: (z: PdfZoom) => void;
|
|
81
|
+
search: (q: string) => void;
|
|
82
|
+
undo: () => void;
|
|
83
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
84
|
+
error: (args_0: Error) => any;
|
|
85
|
+
link: (args_0: {
|
|
86
|
+
url?: string;
|
|
87
|
+
page?: number;
|
|
88
|
+
}) => any;
|
|
89
|
+
"update:tool": (args_0: PdfTool) => any;
|
|
90
|
+
"update:page": (args_0: number) => any;
|
|
91
|
+
"update:rotation": (args_0: number) => any;
|
|
92
|
+
loaded: (args_0: import("pdfjs-dist/types/src/display/api").PDFDocumentProxy) => any;
|
|
93
|
+
"update:zoom": (args_0: PdfZoom) => any;
|
|
94
|
+
"update:annotations": (args_0: PdfAnnotation[]) => any;
|
|
95
|
+
"update:sidebar": (args_0: "outline" | "thumbnails" | null) => any;
|
|
96
|
+
"annotation-click": (args_0: PdfAnnotation) => any;
|
|
97
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
98
|
+
/** The PDF: a URL, its bytes, or a `File`/`Blob` */
|
|
99
|
+
src?: PdfSource | null;
|
|
100
|
+
/** Shown in the top bar; default the document's own title */
|
|
101
|
+
title?: string;
|
|
102
|
+
/** Current page, 1-based (v-model) */
|
|
103
|
+
page?: number;
|
|
104
|
+
/** `fit-width`, `fit-page`, or a zoom where 1 is 100% (v-model) */
|
|
105
|
+
zoom?: PdfZoom;
|
|
106
|
+
/** Extra rotation in degrees, a multiple of 90 (v-model) */
|
|
107
|
+
rotation?: number;
|
|
108
|
+
/** Annotations to draw (v-model) */
|
|
109
|
+
annotations?: PdfAnnotation[];
|
|
110
|
+
/** Shows the edit button and the annotation toolbar */
|
|
111
|
+
annotate?: boolean;
|
|
112
|
+
/** The active tool (v-model) */
|
|
113
|
+
tool?: PdfTool;
|
|
114
|
+
/** Colors offered for annotations */
|
|
115
|
+
colors?: string[];
|
|
116
|
+
/** The pen's widths offered in the toolbar, in PDF points (the first one is the default) */
|
|
117
|
+
inkWidths?: number[];
|
|
118
|
+
/** Written into new annotations' `author` */
|
|
119
|
+
author?: string;
|
|
120
|
+
/** The side panel: thumbnails, the outline, or closed (v-model) */
|
|
121
|
+
sidebar?: "thumbnails" | "outline" | null;
|
|
122
|
+
/** Shows the top bar */
|
|
123
|
+
toolbar?: boolean;
|
|
124
|
+
/** Shows download and print */
|
|
125
|
+
downloadable?: boolean;
|
|
126
|
+
/** File name for downloads; default the URL's or the document's title */
|
|
127
|
+
fileName?: string;
|
|
128
|
+
/** A password to try first */
|
|
129
|
+
password?: string;
|
|
130
|
+
/** The pdf.js worker URL (or `setPdfWorker()` once for the app) */
|
|
131
|
+
workerSrc?: string;
|
|
132
|
+
minZoom?: number;
|
|
133
|
+
maxZoom?: number;
|
|
134
|
+
}> & Readonly<{
|
|
135
|
+
onError?: ((args_0: Error) => any) | undefined;
|
|
136
|
+
onLink?: ((args_0: {
|
|
137
|
+
url?: string;
|
|
138
|
+
page?: number;
|
|
139
|
+
}) => any) | undefined;
|
|
140
|
+
"onUpdate:tool"?: ((args_0: PdfTool) => any) | undefined;
|
|
141
|
+
"onUpdate:page"?: ((args_0: number) => any) | undefined;
|
|
142
|
+
"onUpdate:rotation"?: ((args_0: number) => any) | undefined;
|
|
143
|
+
onLoaded?: ((args_0: import("pdfjs-dist/types/src/display/api").PDFDocumentProxy) => any) | undefined;
|
|
144
|
+
"onUpdate:zoom"?: ((args_0: PdfZoom) => any) | undefined;
|
|
145
|
+
"onUpdate:annotations"?: ((args_0: PdfAnnotation[]) => any) | undefined;
|
|
146
|
+
"onUpdate:sidebar"?: ((args_0: "outline" | "thumbnails" | null) => any) | undefined;
|
|
147
|
+
"onAnnotation-click"?: ((args_0: PdfAnnotation) => any) | undefined;
|
|
148
|
+
}>, {
|
|
149
|
+
colors: string[];
|
|
150
|
+
rotation: number;
|
|
151
|
+
page: number;
|
|
152
|
+
minZoom: number;
|
|
153
|
+
maxZoom: number;
|
|
154
|
+
tool: PdfTool;
|
|
155
|
+
toolbar: boolean;
|
|
156
|
+
zoom: PdfZoom;
|
|
157
|
+
src: PdfSource | null;
|
|
158
|
+
annotations: PdfAnnotation[];
|
|
159
|
+
annotate: boolean;
|
|
160
|
+
inkWidths: number[];
|
|
161
|
+
sidebar: "thumbnails" | "outline" | null;
|
|
162
|
+
downloadable: boolean;
|
|
163
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
164
|
+
actions?: (props: {
|
|
165
|
+
pdf: import("../pdf.ts").PdfState;
|
|
166
|
+
}) => any;
|
|
167
|
+
} & {
|
|
168
|
+
empty?: (props: {}) => any;
|
|
169
|
+
}>;
|
|
170
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
171
|
+
new (): {
|
|
172
|
+
$slots: S;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
@@ -29,8 +29,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
29
29
|
}>, {
|
|
30
30
|
color: "primary" | "secondary" | "tertiary" | "error";
|
|
31
31
|
size: number;
|
|
32
|
-
threshold: number;
|
|
33
32
|
disabled: boolean;
|
|
33
|
+
threshold: number;
|
|
34
34
|
refreshing: boolean;
|
|
35
35
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
36
36
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { type ResourceTimelineContext, type TimelineEvent, type TimelineResource } from '../composables/useResourceTimeline';
|
|
2
|
+
import { type GanttScale } from '../composables/useGantt';
|
|
3
|
+
import { type GanttCalendar } from '../composables/ganttSchedule';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
events?: TimelineEvent[];
|
|
6
|
+
resources?: TimelineResource[];
|
|
7
|
+
/** The zoom as a named level (`v-model:scale`) */
|
|
8
|
+
scale?: GanttScale;
|
|
9
|
+
/** The starting zoom in px per day, between the named levels (default 240: 10 px an hour) */
|
|
10
|
+
pxPerDay?: number;
|
|
11
|
+
/** Selected booking ids (`v-model:selection`) */
|
|
12
|
+
selection?: string[];
|
|
13
|
+
/** Folded group names (`v-model:collapsed`) */
|
|
14
|
+
collapsed?: string[];
|
|
15
|
+
/** The resource column's width, px (`v-model:list-width`; drag its edge); 0 hides it */
|
|
16
|
+
listWidth?: number;
|
|
17
|
+
/** A row's least height; rows grow with their lanes */
|
|
18
|
+
rowHeight?: number;
|
|
19
|
+
/** One lane's height (a booking and its gap) */
|
|
20
|
+
laneHeight?: number;
|
|
21
|
+
/** `'stack'` (default): overlaps share the row in lanes and show as conflicts past `capacity`; `'prevent'` also refuses a drop that makes one */
|
|
22
|
+
overlap?: 'stack' | 'prevent';
|
|
23
|
+
/** Dragging across empty time asks for a booking there (`create`) */
|
|
24
|
+
creatable?: boolean;
|
|
25
|
+
readonly?: boolean;
|
|
26
|
+
/** Minutes bookings snap to (default 15; by zoom when zoomed far out); whole-day bookings snap to days */
|
|
27
|
+
snap?: number;
|
|
28
|
+
/** Days worked (shaded when they aren't) */
|
|
29
|
+
calendar?: GanttCalendar;
|
|
30
|
+
/** Working hours, shaded outside them when zoomed in to hours, e.g. `[9, 18]` */
|
|
31
|
+
workHours?: [number, number];
|
|
32
|
+
/** Now, for the line across the timeline (default the current time; `null` hides it) */
|
|
33
|
+
now?: string | null;
|
|
34
|
+
/** Where the view starts (default now, or the first booking) */
|
|
35
|
+
start?: string;
|
|
36
|
+
weekStartsOn?: 0 | 1;
|
|
37
|
+
minPxPerDay?: number;
|
|
38
|
+
maxPxPerDay?: number;
|
|
39
|
+
locale?: string;
|
|
40
|
+
label?: string;
|
|
41
|
+
beforeDelete?: (events: TimelineEvent[]) => boolean | Promise<boolean>;
|
|
42
|
+
};
|
|
43
|
+
declare var __VLS_1: {
|
|
44
|
+
timeline: ResourceTimelineContext;
|
|
45
|
+
}, __VLS_8: {
|
|
46
|
+
group: string;
|
|
47
|
+
resources: TimelineResource<any>[];
|
|
48
|
+
collapsed: boolean;
|
|
49
|
+
}, __VLS_10: {
|
|
50
|
+
resource: TimelineResource<any>;
|
|
51
|
+
events: TimelineEvent<any>[];
|
|
52
|
+
hours: number;
|
|
53
|
+
}, __VLS_17: {
|
|
54
|
+
event: TimelineEvent<any>;
|
|
55
|
+
resource: TimelineResource<any> | undefined;
|
|
56
|
+
selected: boolean;
|
|
57
|
+
conflict: boolean;
|
|
58
|
+
}, __VLS_19: {};
|
|
59
|
+
type __VLS_Slots = {} & {
|
|
60
|
+
default?: (props: typeof __VLS_1) => any;
|
|
61
|
+
} & {
|
|
62
|
+
group?: (props: typeof __VLS_8) => any;
|
|
63
|
+
} & {
|
|
64
|
+
resource?: (props: typeof __VLS_10) => any;
|
|
65
|
+
} & {
|
|
66
|
+
event?: (props: typeof __VLS_17) => any;
|
|
67
|
+
} & {
|
|
68
|
+
empty?: (props: typeof __VLS_19) => any;
|
|
69
|
+
};
|
|
70
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, ResourceTimelineContext, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
71
|
+
delete: (args_0: {
|
|
72
|
+
events: TimelineEvent[];
|
|
73
|
+
}) => any;
|
|
74
|
+
change: (args_0: {
|
|
75
|
+
events: TimelineEvent[];
|
|
76
|
+
kind: "move" | "resize";
|
|
77
|
+
}) => any;
|
|
78
|
+
"update:selection": (args_0: string[]) => any;
|
|
79
|
+
"update:scale": (args_0: import("../composables/_ganttTime").TimeUnit) => any;
|
|
80
|
+
"update:collapsed": (args_0: string[]) => any;
|
|
81
|
+
"update:events": (args_0: TimelineEvent<any>[]) => any;
|
|
82
|
+
"update:listWidth": (args_0: number) => any;
|
|
83
|
+
"event-click": (args_0: TimelineEvent<any>, args_1: MouseEvent) => any;
|
|
84
|
+
"event-dblclick": (args_0: TimelineEvent<any>, args_1: MouseEvent | KeyboardEvent) => any;
|
|
85
|
+
"event-contextmenu": (args_0: TimelineEvent<any>, args_1: MouseEvent) => any;
|
|
86
|
+
create: (args_0: {
|
|
87
|
+
resourceId: string;
|
|
88
|
+
start: string;
|
|
89
|
+
end: string;
|
|
90
|
+
}) => any;
|
|
91
|
+
"slot-click": (args_0: {
|
|
92
|
+
resourceId: string;
|
|
93
|
+
start: string;
|
|
94
|
+
}) => any;
|
|
95
|
+
conflict: (args_0: {
|
|
96
|
+
event: TimelineEvent;
|
|
97
|
+
with: TimelineEvent[];
|
|
98
|
+
}) => any;
|
|
99
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
100
|
+
onDelete?: ((args_0: {
|
|
101
|
+
events: TimelineEvent[];
|
|
102
|
+
}) => any) | undefined;
|
|
103
|
+
onChange?: ((args_0: {
|
|
104
|
+
events: TimelineEvent[];
|
|
105
|
+
kind: "move" | "resize";
|
|
106
|
+
}) => any) | undefined;
|
|
107
|
+
"onUpdate:selection"?: ((args_0: string[]) => any) | undefined;
|
|
108
|
+
"onUpdate:scale"?: ((args_0: import("../composables/_ganttTime").TimeUnit) => any) | undefined;
|
|
109
|
+
"onUpdate:collapsed"?: ((args_0: string[]) => any) | undefined;
|
|
110
|
+
"onUpdate:events"?: ((args_0: TimelineEvent<any>[]) => any) | undefined;
|
|
111
|
+
"onUpdate:listWidth"?: ((args_0: number) => any) | undefined;
|
|
112
|
+
"onEvent-click"?: ((args_0: TimelineEvent<any>, args_1: MouseEvent) => any) | undefined;
|
|
113
|
+
"onEvent-dblclick"?: ((args_0: TimelineEvent<any>, args_1: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
114
|
+
"onEvent-contextmenu"?: ((args_0: TimelineEvent<any>, args_1: MouseEvent) => any) | undefined;
|
|
115
|
+
onCreate?: ((args_0: {
|
|
116
|
+
resourceId: string;
|
|
117
|
+
start: string;
|
|
118
|
+
end: string;
|
|
119
|
+
}) => any) | undefined;
|
|
120
|
+
"onSlot-click"?: ((args_0: {
|
|
121
|
+
resourceId: string;
|
|
122
|
+
start: string;
|
|
123
|
+
}) => any) | undefined;
|
|
124
|
+
onConflict?: ((args_0: {
|
|
125
|
+
event: TimelineEvent;
|
|
126
|
+
with: TimelineEvent[];
|
|
127
|
+
}) => any) | undefined;
|
|
128
|
+
}>, {
|
|
129
|
+
events: TimelineEvent[];
|
|
130
|
+
readonly: boolean;
|
|
131
|
+
scale: GanttScale;
|
|
132
|
+
pxPerDay: number;
|
|
133
|
+
rowHeight: number;
|
|
134
|
+
weekStartsOn: 0 | 1;
|
|
135
|
+
minPxPerDay: number;
|
|
136
|
+
maxPxPerDay: number;
|
|
137
|
+
resources: TimelineResource[];
|
|
138
|
+
laneHeight: number;
|
|
139
|
+
overlap: "stack" | "prevent";
|
|
140
|
+
creatable: boolean;
|
|
141
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
142
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
143
|
+
declare const _default: typeof __VLS_export;
|
|
144
|
+
export default _default;
|
|
145
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
146
|
+
new (): {
|
|
147
|
+
$slots: S;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
@@ -58,7 +58,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
58
58
|
hour: number;
|
|
59
59
|
}) => any;
|
|
60
60
|
"update:date": (args_0: string) => any;
|
|
61
|
-
"update:view": (args_0: "
|
|
61
|
+
"update:view": (args_0: "week" | "day") => any;
|
|
62
62
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
63
63
|
onEventClick?: ((args_0: SchedulerEvent) => any) | undefined;
|
|
64
64
|
onSlotClick?: ((args_0: {
|
|
@@ -66,13 +66,13 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
66
66
|
hour: number;
|
|
67
67
|
}) => any) | undefined;
|
|
68
68
|
"onUpdate:date"?: ((args_0: string) => any) | undefined;
|
|
69
|
-
"onUpdate:view"?: ((args_0: "
|
|
69
|
+
"onUpdate:view"?: ((args_0: "week" | "day") => any) | undefined;
|
|
70
70
|
}>, {
|
|
71
71
|
view: "week" | "day";
|
|
72
72
|
events: SchedulerEvent[];
|
|
73
|
+
weekStartsOn: 0 | 1;
|
|
73
74
|
startHour: number;
|
|
74
75
|
endHour: number;
|
|
75
|
-
weekStartsOn: 0 | 1;
|
|
76
76
|
hourHeight: number;
|
|
77
77
|
nowIndicator: boolean;
|
|
78
78
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -44,8 +44,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
44
44
|
}> & Readonly<{
|
|
45
45
|
onSeed?: ((color: string) => any) | undefined;
|
|
46
46
|
}>, {
|
|
47
|
-
contrast: number;
|
|
48
47
|
variant: SchemeVariant;
|
|
48
|
+
contrast: number;
|
|
49
49
|
as: string;
|
|
50
50
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
51
51
|
default?: (props: {
|
|
@@ -43,8 +43,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
43
43
|
}>, {
|
|
44
44
|
size: "sm" | "md" | "lg";
|
|
45
45
|
modelValue: string;
|
|
46
|
-
disabled: boolean;
|
|
47
46
|
icon: string;
|
|
47
|
+
disabled: boolean;
|
|
48
48
|
clearable: boolean;
|
|
49
49
|
clearOnEscape: boolean;
|
|
50
50
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -100,12 +100,12 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
100
100
|
color: string;
|
|
101
101
|
time: "below" | "sides" | "none";
|
|
102
102
|
size: "xs" | "sm" | "md";
|
|
103
|
+
live: boolean;
|
|
103
104
|
playing: boolean;
|
|
104
105
|
variant: "slider" | "line" | "wavy";
|
|
105
106
|
disabled: boolean;
|
|
106
107
|
preview: boolean;
|
|
107
108
|
playbackRate: number;
|
|
108
|
-
live: boolean;
|
|
109
109
|
remaining: boolean;
|
|
110
110
|
keyStep: number;
|
|
111
111
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
@@ -46,12 +46,12 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
|
46
46
|
height: string;
|
|
47
47
|
layout: "hero" | "multi-browse" | "uncontained";
|
|
48
48
|
gap: number;
|
|
49
|
+
animated: boolean;
|
|
49
50
|
showArrows: boolean;
|
|
50
51
|
showIndicators: boolean;
|
|
51
52
|
autoplay: boolean;
|
|
52
53
|
interval: number;
|
|
53
54
|
visibleItems: number;
|
|
54
|
-
animated: boolean;
|
|
55
55
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
56
56
|
declare const _default: typeof __VLS_export;
|
|
57
57
|
export default _default;
|