@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,305 @@
|
|
|
1
|
+
import { type FlowConnection, type FlowContext, type FlowInternals, type FlowViewport, type FlowXY } from '../composables/useFlow';
|
|
2
|
+
import { type FlowLayout, type FlowLayoutOptions } from '../composables/flowLayout';
|
|
3
|
+
import type { FlowEdge, FlowNode, FlowSelection } from '../composables/useFlow';
|
|
4
|
+
declare const _default: typeof __VLS_export;
|
|
5
|
+
export default _default;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
7
|
+
nodes?: FlowNode[];
|
|
8
|
+
edges?: FlowEdge[];
|
|
9
|
+
/** The view (v-model) */
|
|
10
|
+
viewport?: FlowViewport;
|
|
11
|
+
/** Selected node and edge ids (v-model) */
|
|
12
|
+
selection?: FlowSelection;
|
|
13
|
+
/** Switches off moving, connecting, selecting and deleting; the view still pans and zooms (v-model) */
|
|
14
|
+
locked?: boolean;
|
|
15
|
+
/** Which way edges run by default: where the default node's handles go and the layout's direction */
|
|
16
|
+
direction?: "horizontal" | "vertical";
|
|
17
|
+
background?: "dots" | "grid" | "none";
|
|
18
|
+
/** The background's spacing, and the grid nodes snap to, px */
|
|
19
|
+
gridSize?: number;
|
|
20
|
+
snapToGrid?: boolean;
|
|
21
|
+
minZoom?: number;
|
|
22
|
+
maxZoom?: number;
|
|
23
|
+
/** Fits the nodes in view once they're measured, and again after each automatic `layout` */
|
|
24
|
+
fitView?: boolean;
|
|
25
|
+
/** What the plain wheel does (Ctrl + wheel always zooms) */
|
|
26
|
+
wheel?: "pan" | "zoom";
|
|
27
|
+
/** A double click on the background zooms in */
|
|
28
|
+
zoomOnDoubleClick?: boolean;
|
|
29
|
+
/** Dragging the background pans; off, it draws a selection box */
|
|
30
|
+
panOnDrag?: boolean;
|
|
31
|
+
/** Dragging the background draws a selection box (Shift + drag always does) */
|
|
32
|
+
selectionOnDrag?: boolean;
|
|
33
|
+
nodesDraggable?: boolean;
|
|
34
|
+
nodesConnectable?: boolean;
|
|
35
|
+
elementsSelectable?: boolean;
|
|
36
|
+
edgesReconnectable?: boolean;
|
|
37
|
+
/** Merged into edges made by connecting (`type`, `animated`, `markerEnd`…) */
|
|
38
|
+
defaultEdgeOptions?: Partial<FlowEdge>;
|
|
39
|
+
/** Adds an edge to `edges` when a connection is made; off, only `connect` fires */
|
|
40
|
+
autoConnect?: boolean;
|
|
41
|
+
/** Whether a connection may be made (no duplicates or same-node loops are offered either way) */
|
|
42
|
+
isValidConnection?: (c: FlowConnection) => boolean;
|
|
43
|
+
/** How close to a handle a connection snaps to it, px */
|
|
44
|
+
connectionRadius?: number;
|
|
45
|
+
/**
|
|
46
|
+
* Asked before anything is deleted (the keyboard, an edge's ×, an edge dropped on nothing, `remove()`), with what
|
|
47
|
+
* would go: return false to keep it, or a Promise (a confirm dialog) that resolves to whether to delete
|
|
48
|
+
*/
|
|
49
|
+
beforeDelete?: (items: {
|
|
50
|
+
nodes: FlowNode[];
|
|
51
|
+
edges: FlowEdge[];
|
|
52
|
+
}) => boolean | Promise<boolean>;
|
|
53
|
+
/** Keys that delete the selection; `null` turns deleting off */
|
|
54
|
+
deleteKeys?: string[] | null;
|
|
55
|
+
/** Undo and redo (Ctrl+Z, Ctrl+Shift+Z / Ctrl+Y), over every change to nodes and edges */
|
|
56
|
+
history?: boolean;
|
|
57
|
+
historySize?: number;
|
|
58
|
+
/** Alignment guides while dragging one node */
|
|
59
|
+
guides?: boolean;
|
|
60
|
+
/** Lays the nodes out when the graph's shape changes (nodes or edges added, removed, hidden) */
|
|
61
|
+
layout?: "tree" | "layered" | FlowLayout | null;
|
|
62
|
+
layoutOptions?: FlowLayoutOptions;
|
|
63
|
+
/**
|
|
64
|
+
* A node with no connections dropped onto an edge splices into it: A → C becomes A → B → C (the edge lights up
|
|
65
|
+
* while it's over one). Only when both new connections are valid. Without room between A and C, the node moves
|
|
66
|
+
* to sit after A and C moves on (with everything after it) along the flow's `direction`
|
|
67
|
+
*/
|
|
68
|
+
insertOnEdge?: boolean;
|
|
69
|
+
/** Nodes dropped onto a `group` join it (and leave it when dropped outside) */
|
|
70
|
+
dropIntoGroups?: boolean;
|
|
71
|
+
/** Positions spring to their new place when they change from outside */
|
|
72
|
+
animate?: boolean;
|
|
73
|
+
/** Makes ids for pasted nodes and new edges */
|
|
74
|
+
getId?: (kind: "node" | "edge") => string;
|
|
75
|
+
/**
|
|
76
|
+
* A drag that starts on an edge draws a new edge from the same source, a branch, as in a circuit editor (the
|
|
77
|
+
* preview leaves from where you grabbed it). A click still selects the edge; with a finger, only a selected edge
|
|
78
|
+
* branches, so a swipe across one still pans
|
|
79
|
+
*/
|
|
80
|
+
edgeBranching?: boolean;
|
|
81
|
+
/** The canvas's accessible name */
|
|
82
|
+
label?: string;
|
|
83
|
+
}, FlowContext, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
84
|
+
delete: (args_0: {
|
|
85
|
+
nodes: FlowNode[];
|
|
86
|
+
edges: FlowEdge[];
|
|
87
|
+
}) => any;
|
|
88
|
+
insert: (args_0: {
|
|
89
|
+
node: FlowNode;
|
|
90
|
+
edge: FlowEdge;
|
|
91
|
+
connections: [FlowConnection, FlowConnection];
|
|
92
|
+
}) => any;
|
|
93
|
+
"update:selection": (args_0: FlowSelection) => any;
|
|
94
|
+
"update:viewport": (args_0: FlowViewport) => any;
|
|
95
|
+
"update:nodes": (args_0: FlowNode<any>[]) => any;
|
|
96
|
+
"update:edges": (args_0: FlowEdge<any>[]) => any;
|
|
97
|
+
"update:locked": (args_0: boolean) => any;
|
|
98
|
+
connect: (args_0: FlowConnection) => any;
|
|
99
|
+
"connect-start": (args_0: {
|
|
100
|
+
nodeId: string;
|
|
101
|
+
handleId: string | null;
|
|
102
|
+
type: "source" | "target";
|
|
103
|
+
}) => any;
|
|
104
|
+
"connect-end": (args_0: {
|
|
105
|
+
connection: FlowConnection | null;
|
|
106
|
+
position: FlowXY;
|
|
107
|
+
from: {
|
|
108
|
+
nodeId: string;
|
|
109
|
+
handleId: string | null;
|
|
110
|
+
type: "source" | "target";
|
|
111
|
+
};
|
|
112
|
+
}) => any;
|
|
113
|
+
reconnect: (args_0: {
|
|
114
|
+
edge: FlowEdge;
|
|
115
|
+
connection: FlowConnection;
|
|
116
|
+
}) => any;
|
|
117
|
+
"node-click": (args_0: FlowNode<any>, args_1: MouseEvent) => any;
|
|
118
|
+
"node-dblclick": (args_0: FlowNode<any>, args_1: MouseEvent) => any;
|
|
119
|
+
"node-contextmenu": (args_0: FlowNode<any>, args_1: MouseEvent) => any;
|
|
120
|
+
"node-drag-start": (args_0: FlowNode<any>[], args_1: PointerEvent) => any;
|
|
121
|
+
"node-drag": (args_0: FlowNode<any>[], args_1: PointerEvent) => any;
|
|
122
|
+
"node-drag-stop": (args_0: {
|
|
123
|
+
nodes: FlowNode[];
|
|
124
|
+
intersecting: FlowNode[];
|
|
125
|
+
event: PointerEvent;
|
|
126
|
+
}) => any;
|
|
127
|
+
"edge-click": (args_0: FlowEdge<any>, args_1: MouseEvent) => any;
|
|
128
|
+
"edge-dblclick": (args_0: FlowEdge<any>, args_1: MouseEvent) => any;
|
|
129
|
+
"edge-contextmenu": (args_0: FlowEdge<any>, args_1: MouseEvent) => any;
|
|
130
|
+
"pane-click": (args_0: FlowXY, args_1: MouseEvent) => any;
|
|
131
|
+
"pane-contextmenu": (args_0: FlowXY, args_1: MouseEvent) => any;
|
|
132
|
+
"pane-dblclick": (args_0: FlowXY, args_1: MouseEvent) => any;
|
|
133
|
+
init: (args_0: FlowContext) => any;
|
|
134
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
135
|
+
nodes?: FlowNode[];
|
|
136
|
+
edges?: FlowEdge[];
|
|
137
|
+
/** The view (v-model) */
|
|
138
|
+
viewport?: FlowViewport;
|
|
139
|
+
/** Selected node and edge ids (v-model) */
|
|
140
|
+
selection?: FlowSelection;
|
|
141
|
+
/** Switches off moving, connecting, selecting and deleting; the view still pans and zooms (v-model) */
|
|
142
|
+
locked?: boolean;
|
|
143
|
+
/** Which way edges run by default: where the default node's handles go and the layout's direction */
|
|
144
|
+
direction?: "horizontal" | "vertical";
|
|
145
|
+
background?: "dots" | "grid" | "none";
|
|
146
|
+
/** The background's spacing, and the grid nodes snap to, px */
|
|
147
|
+
gridSize?: number;
|
|
148
|
+
snapToGrid?: boolean;
|
|
149
|
+
minZoom?: number;
|
|
150
|
+
maxZoom?: number;
|
|
151
|
+
/** Fits the nodes in view once they're measured, and again after each automatic `layout` */
|
|
152
|
+
fitView?: boolean;
|
|
153
|
+
/** What the plain wheel does (Ctrl + wheel always zooms) */
|
|
154
|
+
wheel?: "pan" | "zoom";
|
|
155
|
+
/** A double click on the background zooms in */
|
|
156
|
+
zoomOnDoubleClick?: boolean;
|
|
157
|
+
/** Dragging the background pans; off, it draws a selection box */
|
|
158
|
+
panOnDrag?: boolean;
|
|
159
|
+
/** Dragging the background draws a selection box (Shift + drag always does) */
|
|
160
|
+
selectionOnDrag?: boolean;
|
|
161
|
+
nodesDraggable?: boolean;
|
|
162
|
+
nodesConnectable?: boolean;
|
|
163
|
+
elementsSelectable?: boolean;
|
|
164
|
+
edgesReconnectable?: boolean;
|
|
165
|
+
/** Merged into edges made by connecting (`type`, `animated`, `markerEnd`…) */
|
|
166
|
+
defaultEdgeOptions?: Partial<FlowEdge>;
|
|
167
|
+
/** Adds an edge to `edges` when a connection is made; off, only `connect` fires */
|
|
168
|
+
autoConnect?: boolean;
|
|
169
|
+
/** Whether a connection may be made (no duplicates or same-node loops are offered either way) */
|
|
170
|
+
isValidConnection?: (c: FlowConnection) => boolean;
|
|
171
|
+
/** How close to a handle a connection snaps to it, px */
|
|
172
|
+
connectionRadius?: number;
|
|
173
|
+
/**
|
|
174
|
+
* Asked before anything is deleted (the keyboard, an edge's ×, an edge dropped on nothing, `remove()`), with what
|
|
175
|
+
* would go: return false to keep it, or a Promise (a confirm dialog) that resolves to whether to delete
|
|
176
|
+
*/
|
|
177
|
+
beforeDelete?: (items: {
|
|
178
|
+
nodes: FlowNode[];
|
|
179
|
+
edges: FlowEdge[];
|
|
180
|
+
}) => boolean | Promise<boolean>;
|
|
181
|
+
/** Keys that delete the selection; `null` turns deleting off */
|
|
182
|
+
deleteKeys?: string[] | null;
|
|
183
|
+
/** Undo and redo (Ctrl+Z, Ctrl+Shift+Z / Ctrl+Y), over every change to nodes and edges */
|
|
184
|
+
history?: boolean;
|
|
185
|
+
historySize?: number;
|
|
186
|
+
/** Alignment guides while dragging one node */
|
|
187
|
+
guides?: boolean;
|
|
188
|
+
/** Lays the nodes out when the graph's shape changes (nodes or edges added, removed, hidden) */
|
|
189
|
+
layout?: "tree" | "layered" | FlowLayout | null;
|
|
190
|
+
layoutOptions?: FlowLayoutOptions;
|
|
191
|
+
/**
|
|
192
|
+
* A node with no connections dropped onto an edge splices into it: A → C becomes A → B → C (the edge lights up
|
|
193
|
+
* while it's over one). Only when both new connections are valid. Without room between A and C, the node moves
|
|
194
|
+
* to sit after A and C moves on (with everything after it) along the flow's `direction`
|
|
195
|
+
*/
|
|
196
|
+
insertOnEdge?: boolean;
|
|
197
|
+
/** Nodes dropped onto a `group` join it (and leave it when dropped outside) */
|
|
198
|
+
dropIntoGroups?: boolean;
|
|
199
|
+
/** Positions spring to their new place when they change from outside */
|
|
200
|
+
animate?: boolean;
|
|
201
|
+
/** Makes ids for pasted nodes and new edges */
|
|
202
|
+
getId?: (kind: "node" | "edge") => string;
|
|
203
|
+
/**
|
|
204
|
+
* A drag that starts on an edge draws a new edge from the same source, a branch, as in a circuit editor (the
|
|
205
|
+
* preview leaves from where you grabbed it). A click still selects the edge; with a finger, only a selected edge
|
|
206
|
+
* branches, so a swipe across one still pans
|
|
207
|
+
*/
|
|
208
|
+
edgeBranching?: boolean;
|
|
209
|
+
/** The canvas's accessible name */
|
|
210
|
+
label?: string;
|
|
211
|
+
}> & Readonly<{
|
|
212
|
+
onDelete?: ((args_0: {
|
|
213
|
+
nodes: FlowNode[];
|
|
214
|
+
edges: FlowEdge[];
|
|
215
|
+
}) => any) | undefined;
|
|
216
|
+
onInsert?: ((args_0: {
|
|
217
|
+
node: FlowNode;
|
|
218
|
+
edge: FlowEdge;
|
|
219
|
+
connections: [FlowConnection, FlowConnection];
|
|
220
|
+
}) => any) | undefined;
|
|
221
|
+
"onUpdate:selection"?: ((args_0: FlowSelection) => any) | undefined;
|
|
222
|
+
"onUpdate:viewport"?: ((args_0: FlowViewport) => any) | undefined;
|
|
223
|
+
"onUpdate:nodes"?: ((args_0: FlowNode<any>[]) => any) | undefined;
|
|
224
|
+
"onUpdate:edges"?: ((args_0: FlowEdge<any>[]) => any) | undefined;
|
|
225
|
+
"onUpdate:locked"?: ((args_0: boolean) => any) | undefined;
|
|
226
|
+
onConnect?: ((args_0: FlowConnection) => any) | undefined;
|
|
227
|
+
"onConnect-start"?: ((args_0: {
|
|
228
|
+
nodeId: string;
|
|
229
|
+
handleId: string | null;
|
|
230
|
+
type: "source" | "target";
|
|
231
|
+
}) => any) | undefined;
|
|
232
|
+
"onConnect-end"?: ((args_0: {
|
|
233
|
+
connection: FlowConnection | null;
|
|
234
|
+
position: FlowXY;
|
|
235
|
+
from: {
|
|
236
|
+
nodeId: string;
|
|
237
|
+
handleId: string | null;
|
|
238
|
+
type: "source" | "target";
|
|
239
|
+
};
|
|
240
|
+
}) => any) | undefined;
|
|
241
|
+
onReconnect?: ((args_0: {
|
|
242
|
+
edge: FlowEdge;
|
|
243
|
+
connection: FlowConnection;
|
|
244
|
+
}) => any) | undefined;
|
|
245
|
+
"onNode-click"?: ((args_0: FlowNode<any>, args_1: MouseEvent) => any) | undefined;
|
|
246
|
+
"onNode-dblclick"?: ((args_0: FlowNode<any>, args_1: MouseEvent) => any) | undefined;
|
|
247
|
+
"onNode-contextmenu"?: ((args_0: FlowNode<any>, args_1: MouseEvent) => any) | undefined;
|
|
248
|
+
"onNode-drag-start"?: ((args_0: FlowNode<any>[], args_1: PointerEvent) => any) | undefined;
|
|
249
|
+
"onNode-drag"?: ((args_0: FlowNode<any>[], args_1: PointerEvent) => any) | undefined;
|
|
250
|
+
"onNode-drag-stop"?: ((args_0: {
|
|
251
|
+
nodes: FlowNode[];
|
|
252
|
+
intersecting: FlowNode[];
|
|
253
|
+
event: PointerEvent;
|
|
254
|
+
}) => any) | undefined;
|
|
255
|
+
"onEdge-click"?: ((args_0: FlowEdge<any>, args_1: MouseEvent) => any) | undefined;
|
|
256
|
+
"onEdge-dblclick"?: ((args_0: FlowEdge<any>, args_1: MouseEvent) => any) | undefined;
|
|
257
|
+
"onEdge-contextmenu"?: ((args_0: FlowEdge<any>, args_1: MouseEvent) => any) | undefined;
|
|
258
|
+
"onPane-click"?: ((args_0: FlowXY, args_1: MouseEvent) => any) | undefined;
|
|
259
|
+
"onPane-contextmenu"?: ((args_0: FlowXY, args_1: MouseEvent) => any) | undefined;
|
|
260
|
+
"onPane-dblclick"?: ((args_0: FlowXY, args_1: MouseEvent) => any) | undefined;
|
|
261
|
+
onInit?: ((args_0: FlowContext) => any) | undefined;
|
|
262
|
+
}>, {
|
|
263
|
+
background: "dots" | "grid" | "none";
|
|
264
|
+
animate: boolean;
|
|
265
|
+
layout: "tree" | "layered" | FlowLayout | null;
|
|
266
|
+
history: boolean;
|
|
267
|
+
historySize: number;
|
|
268
|
+
minZoom: number;
|
|
269
|
+
maxZoom: number;
|
|
270
|
+
selection: FlowSelection;
|
|
271
|
+
viewport: FlowViewport;
|
|
272
|
+
fitView: boolean;
|
|
273
|
+
wheel: "pan" | "zoom";
|
|
274
|
+
locked: boolean;
|
|
275
|
+
nodes: FlowNode[];
|
|
276
|
+
edges: FlowEdge[];
|
|
277
|
+
direction: "horizontal" | "vertical";
|
|
278
|
+
gridSize: number;
|
|
279
|
+
snapToGrid: boolean;
|
|
280
|
+
zoomOnDoubleClick: boolean;
|
|
281
|
+
panOnDrag: boolean;
|
|
282
|
+
selectionOnDrag: boolean;
|
|
283
|
+
nodesDraggable: boolean;
|
|
284
|
+
nodesConnectable: boolean;
|
|
285
|
+
elementsSelectable: boolean;
|
|
286
|
+
edgesReconnectable: boolean;
|
|
287
|
+
autoConnect: boolean;
|
|
288
|
+
connectionRadius: number;
|
|
289
|
+
deleteKeys: string[] | null;
|
|
290
|
+
guides: boolean;
|
|
291
|
+
insertOnEdge: boolean;
|
|
292
|
+
dropIntoGroups: boolean;
|
|
293
|
+
edgeBranching: boolean;
|
|
294
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
295
|
+
empty?: (props: {}) => any;
|
|
296
|
+
} & {
|
|
297
|
+
default?: (props: {
|
|
298
|
+
flow: FlowInternals;
|
|
299
|
+
}) => any;
|
|
300
|
+
}>;
|
|
301
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
302
|
+
new (): {
|
|
303
|
+
$slots: S;
|
|
304
|
+
};
|
|
305
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type FlowPanelPosition } from '../composables/_flowPanel';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
position?: FlowPanelPosition;
|
|
4
|
+
orientation?: 'vertical' | 'horizontal';
|
|
5
|
+
zoom?: boolean;
|
|
6
|
+
fit?: boolean;
|
|
7
|
+
lock?: boolean;
|
|
8
|
+
/** Undo and redo buttons */
|
|
9
|
+
history?: boolean;
|
|
10
|
+
/** A delete button while something deletable is selected (touch has no Delete key) */
|
|
11
|
+
delete?: boolean;
|
|
12
|
+
};
|
|
13
|
+
declare var __VLS_56: {};
|
|
14
|
+
type __VLS_Slots = {} & {
|
|
15
|
+
default?: (props: typeof __VLS_56) => any;
|
|
16
|
+
};
|
|
17
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
18
|
+
delete: boolean;
|
|
19
|
+
history: boolean;
|
|
20
|
+
position: FlowPanelPosition;
|
|
21
|
+
lock: boolean;
|
|
22
|
+
zoom: boolean;
|
|
23
|
+
orientation: "vertical" | "horizontal";
|
|
24
|
+
fit: boolean;
|
|
25
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type FlowPosition } from '../composables/useFlow';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** `source`: edges leave from it; `target`: they arrive */
|
|
4
|
+
type?: 'source' | 'target';
|
|
5
|
+
position?: FlowPosition;
|
|
6
|
+
id?: string;
|
|
7
|
+
connectable?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
|
+
type: "source" | "target";
|
|
11
|
+
id: string;
|
|
12
|
+
position: FlowPosition;
|
|
13
|
+
connectable: boolean;
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type FlowNode } from '../composables/useFlow';
|
|
2
|
+
import { type FlowPanelPosition } from '../composables/_flowPanel';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
position?: FlowPanelPosition;
|
|
5
|
+
width?: number;
|
|
6
|
+
height?: number;
|
|
7
|
+
/** A node's fill (any CSS color); default outline-variant, primary when selected */
|
|
8
|
+
nodeColor?: (node: FlowNode) => string | undefined;
|
|
9
|
+
/** Drag and click move the view */
|
|
10
|
+
pannable?: boolean;
|
|
11
|
+
/** The wheel zooms */
|
|
12
|
+
zoomable?: boolean;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
15
|
+
width: number;
|
|
16
|
+
height: number;
|
|
17
|
+
position: FlowPanelPosition;
|
|
18
|
+
pannable: boolean;
|
|
19
|
+
zoomable: boolean;
|
|
20
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type FlowPosition } from '../composables/useFlow';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
label?: string;
|
|
4
|
+
subtitle?: string;
|
|
5
|
+
/** Material Symbol */
|
|
6
|
+
icon?: string;
|
|
7
|
+
variant?: 'outlined' | 'filled' | 'elevated';
|
|
8
|
+
/** The icon container's color role */
|
|
9
|
+
color?: 'primary' | 'secondary' | 'tertiary' | 'error' | 'neutral';
|
|
10
|
+
/** Which handles it draws */
|
|
11
|
+
handles?: 'both' | 'source' | 'target' | 'none';
|
|
12
|
+
sourcePosition?: FlowPosition;
|
|
13
|
+
targetPosition?: FlowPosition;
|
|
14
|
+
};
|
|
15
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
|
|
16
|
+
type __VLS_Slots = {} & {
|
|
17
|
+
icon?: (props: typeof __VLS_1) => any;
|
|
18
|
+
} & {
|
|
19
|
+
trailing?: (props: typeof __VLS_3) => any;
|
|
20
|
+
} & {
|
|
21
|
+
default?: (props: typeof __VLS_5) => any;
|
|
22
|
+
};
|
|
23
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
24
|
+
color: "primary" | "secondary" | "tertiary" | "error" | "neutral";
|
|
25
|
+
variant: "outlined" | "filled" | "elevated";
|
|
26
|
+
handles: "both" | "source" | "target" | "none";
|
|
27
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { type GanttColumn, type GanttContext, type GanttScale } from '../composables/useGantt';
|
|
2
|
+
import { type GanttCalendar, type GanttDependency, type GanttTask } from '../composables/ganttSchedule';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
tasks?: GanttTask[];
|
|
5
|
+
/** The zoom as a named level; `v-model:scale` follows Ctrl + wheel, pinches and MGanttControls */
|
|
6
|
+
scale?: GanttScale;
|
|
7
|
+
/** The starting zoom in px per day, between the named levels (instead of `scale`'s) */
|
|
8
|
+
pxPerDay?: number;
|
|
9
|
+
/** Selected task ids (`v-model:selection`) */
|
|
10
|
+
selection?: string[];
|
|
11
|
+
/** Ids of tasks whose children are hidden (`v-model:collapsed`) */
|
|
12
|
+
collapsed?: string[];
|
|
13
|
+
/** The task list's columns (default name, start and duration); `[]` hides the list */
|
|
14
|
+
columns?: GanttColumn[];
|
|
15
|
+
/** The task list's width, px (`v-model:grid-width`; drag its edge) */
|
|
16
|
+
gridWidth?: number;
|
|
17
|
+
rowHeight?: number;
|
|
18
|
+
/** No editing: drag, resize, link, reorder, rename and delete off */
|
|
19
|
+
readonly?: boolean;
|
|
20
|
+
/** `'auto'`: tasks that depend on a moved one follow it (`scheduleTasks` in push mode) */
|
|
21
|
+
schedule?: 'manual' | 'auto';
|
|
22
|
+
/** Working days: shaded when they aren't, and counted by `schedule="auto"` (default Monday to Friday, no holidays) */
|
|
23
|
+
calendar?: GanttCalendar;
|
|
24
|
+
/** Highlights the tasks and dependencies whose delay delays the end */
|
|
25
|
+
criticalPath?: boolean;
|
|
26
|
+
/** Draws each task's `baselineStart`/`baselineEnd` under it */
|
|
27
|
+
baselines?: boolean;
|
|
28
|
+
/** Today, for the line across the timeline (default now; `null` hides it) */
|
|
29
|
+
today?: string | null;
|
|
30
|
+
/** Minutes a datetime task snaps to (default by zoom); date-only tasks always snap to days */
|
|
31
|
+
snap?: number;
|
|
32
|
+
weekStartsOn?: 0 | 1;
|
|
33
|
+
/** Zoom bounds, px per day */
|
|
34
|
+
minPxPerDay?: number;
|
|
35
|
+
maxPxPerDay?: number;
|
|
36
|
+
/** Locale for dates (Intl); default the app's */
|
|
37
|
+
locale?: string;
|
|
38
|
+
/** Accessible name */
|
|
39
|
+
label?: string;
|
|
40
|
+
/** Asked before deleting; return false (or a promise of it) to keep them */
|
|
41
|
+
beforeDelete?: (tasks: GanttTask[]) => boolean | Promise<boolean>;
|
|
42
|
+
};
|
|
43
|
+
declare var __VLS_1: {
|
|
44
|
+
gantt: GanttContext;
|
|
45
|
+
}, __VLS_9: "cell-name", __VLS_10: {
|
|
46
|
+
task: GanttTask<any>;
|
|
47
|
+
value: string;
|
|
48
|
+
}, __VLS_13: `cell-${string}`, __VLS_14: {
|
|
49
|
+
task: GanttTask<any>;
|
|
50
|
+
value: string;
|
|
51
|
+
}, __VLS_21: {
|
|
52
|
+
task: GanttTask<any>;
|
|
53
|
+
selected: boolean;
|
|
54
|
+
critical: boolean;
|
|
55
|
+
}, __VLS_23: {}, __VLS_31: {
|
|
56
|
+
task: GanttTask<any>;
|
|
57
|
+
slack: number | undefined;
|
|
58
|
+
};
|
|
59
|
+
type __VLS_Slots = {} & {
|
|
60
|
+
[K in NonNullable<typeof __VLS_9>]?: (props: typeof __VLS_10) => any;
|
|
61
|
+
} & {
|
|
62
|
+
[K in NonNullable<typeof __VLS_13>]?: (props: typeof __VLS_14) => any;
|
|
63
|
+
} & {
|
|
64
|
+
default?: (props: typeof __VLS_1) => any;
|
|
65
|
+
} & {
|
|
66
|
+
bar?: (props: typeof __VLS_21) => any;
|
|
67
|
+
} & {
|
|
68
|
+
empty?: (props: typeof __VLS_23) => any;
|
|
69
|
+
} & {
|
|
70
|
+
tooltip?: (props: typeof __VLS_31) => any;
|
|
71
|
+
};
|
|
72
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, GanttContext, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
73
|
+
link: (args_0: {
|
|
74
|
+
from: string;
|
|
75
|
+
to: string;
|
|
76
|
+
type: NonNullable<GanttDependency["type"]>;
|
|
77
|
+
}) => any;
|
|
78
|
+
delete: (args_0: {
|
|
79
|
+
tasks: GanttTask[];
|
|
80
|
+
}) => any;
|
|
81
|
+
change: (args_0: {
|
|
82
|
+
tasks: GanttTask[];
|
|
83
|
+
kind: "move" | "resize" | "progress" | "reorder" | "rename";
|
|
84
|
+
}) => any;
|
|
85
|
+
"update:selection": (args_0: string[]) => any;
|
|
86
|
+
"update:tasks": (args_0: GanttTask<any>[]) => any;
|
|
87
|
+
"update:scale": (args_0: import("../composables/_ganttTime").TimeUnit) => any;
|
|
88
|
+
"update:collapsed": (args_0: string[]) => any;
|
|
89
|
+
"update:gridWidth": (args_0: number) => any;
|
|
90
|
+
"task-click": (args_0: GanttTask<any>, args_1: MouseEvent) => any;
|
|
91
|
+
"task-dblclick": (args_0: GanttTask<any>, args_1: MouseEvent | KeyboardEvent) => any;
|
|
92
|
+
"task-contextmenu": (args_0: GanttTask<any>, args_1: MouseEvent) => any;
|
|
93
|
+
unlink: (args_0: {
|
|
94
|
+
from: string;
|
|
95
|
+
to: string;
|
|
96
|
+
}) => any;
|
|
97
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
98
|
+
onLink?: ((args_0: {
|
|
99
|
+
from: string;
|
|
100
|
+
to: string;
|
|
101
|
+
type: NonNullable<GanttDependency["type"]>;
|
|
102
|
+
}) => any) | undefined;
|
|
103
|
+
onDelete?: ((args_0: {
|
|
104
|
+
tasks: GanttTask[];
|
|
105
|
+
}) => any) | undefined;
|
|
106
|
+
onChange?: ((args_0: {
|
|
107
|
+
tasks: GanttTask[];
|
|
108
|
+
kind: "move" | "resize" | "progress" | "reorder" | "rename";
|
|
109
|
+
}) => any) | undefined;
|
|
110
|
+
"onUpdate:selection"?: ((args_0: string[]) => any) | undefined;
|
|
111
|
+
"onUpdate:tasks"?: ((args_0: GanttTask<any>[]) => any) | undefined;
|
|
112
|
+
"onUpdate:scale"?: ((args_0: import("../composables/_ganttTime").TimeUnit) => any) | undefined;
|
|
113
|
+
"onUpdate:collapsed"?: ((args_0: string[]) => any) | undefined;
|
|
114
|
+
"onUpdate:gridWidth"?: ((args_0: number) => any) | undefined;
|
|
115
|
+
"onTask-click"?: ((args_0: GanttTask<any>, args_1: MouseEvent) => any) | undefined;
|
|
116
|
+
"onTask-dblclick"?: ((args_0: GanttTask<any>, args_1: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
117
|
+
"onTask-contextmenu"?: ((args_0: GanttTask<any>, args_1: MouseEvent) => any) | undefined;
|
|
118
|
+
onUnlink?: ((args_0: {
|
|
119
|
+
from: string;
|
|
120
|
+
to: string;
|
|
121
|
+
}) => any) | undefined;
|
|
122
|
+
}>, {
|
|
123
|
+
readonly: boolean;
|
|
124
|
+
scale: GanttScale;
|
|
125
|
+
tasks: GanttTask[];
|
|
126
|
+
rowHeight: number;
|
|
127
|
+
schedule: "manual" | "auto";
|
|
128
|
+
criticalPath: boolean;
|
|
129
|
+
baselines: boolean;
|
|
130
|
+
weekStartsOn: 0 | 1;
|
|
131
|
+
minPxPerDay: number;
|
|
132
|
+
maxPxPerDay: number;
|
|
133
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
134
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
135
|
+
declare const _default: typeof __VLS_export;
|
|
136
|
+
export default _default;
|
|
137
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
138
|
+
new (): {
|
|
139
|
+
$slots: S;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type GanttScale } from '../composables/useGantt';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** The scales offered as a segmented button (`[]` hides it) */
|
|
4
|
+
scales?: GanttScale[];
|
|
5
|
+
zoom?: boolean;
|
|
6
|
+
today?: boolean;
|
|
7
|
+
/** Expand all / collapse all */
|
|
8
|
+
fold?: boolean;
|
|
9
|
+
/** Undo and redo */
|
|
10
|
+
history?: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare var __VLS_1: {}, __VLS_52: {};
|
|
13
|
+
type __VLS_Slots = {} & {
|
|
14
|
+
default?: (props: typeof __VLS_1) => any;
|
|
15
|
+
} & {
|
|
16
|
+
end?: (props: typeof __VLS_52) => any;
|
|
17
|
+
};
|
|
18
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
19
|
+
scales: GanttScale[];
|
|
20
|
+
today: boolean;
|
|
21
|
+
history: boolean;
|
|
22
|
+
zoom: boolean;
|
|
23
|
+
fold: boolean;
|
|
24
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -24,6 +24,8 @@ type __VLS_Props = {
|
|
|
24
24
|
shape?: 'rounded' | 'squared';
|
|
25
25
|
/** M3's 5-tier icon button sizing (xs:32, sm:40, md:56, lg:96, xl:136), or a custom pixel value */
|
|
26
26
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | number;
|
|
27
|
+
/** Icon size in px. Default the size tier's (or 55% of a custom pixel `size`) */
|
|
28
|
+
iconSize?: number;
|
|
27
29
|
/** Disables interaction */
|
|
28
30
|
disabled?: boolean;
|
|
29
31
|
/** Vue Router destination — renders as RouterLink instead of button */
|
|
@@ -46,9 +48,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
46
48
|
"onUpdate:checked"?: ((args_0: boolean) => any) | undefined;
|
|
47
49
|
}>, {
|
|
48
50
|
size: "xs" | "sm" | "md" | "lg" | "xl" | number;
|
|
51
|
+
shape: "rounded" | "squared";
|
|
49
52
|
variant: "standard" | "filled" | "tonal" | "outlined";
|
|
50
53
|
disabled: boolean;
|
|
51
|
-
shape: "rounded" | "squared";
|
|
52
54
|
checked: boolean;
|
|
53
55
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
54
56
|
declare const _default: typeof __VLS_export;
|