@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.
Files changed (241) hide show
  1. package/dist/API.md +3010 -376
  2. package/dist/MButton-Bl_BSUep.js +172 -0
  3. package/dist/MButton-Bl_BSUep.js.map +1 -0
  4. package/dist/MDialog-D_Yik8ou.js +173 -0
  5. package/dist/MDialog-D_Yik8ou.js.map +1 -0
  6. package/dist/MIconButton-DoNotQ9v.js +282 -0
  7. package/dist/MIconButton-DoNotQ9v.js.map +1 -0
  8. package/dist/MListItem-BxifHJdU.js +824 -0
  9. package/dist/MListItem-BxifHJdU.js.map +1 -0
  10. package/dist/MLoadingIndicator-BxbFhSX6.js +115 -0
  11. package/dist/MLoadingIndicator-BxbFhSX6.js.map +1 -0
  12. package/dist/MMenuItem-Bih0h4-n.js +604 -0
  13. package/dist/MMenuItem-Bih0h4-n.js.map +1 -0
  14. package/dist/MProgressBar-BCoruxA-.js +184 -0
  15. package/dist/MProgressBar-BCoruxA-.js.map +1 -0
  16. package/dist/MSeekBar-BeN9QcB3.js +435 -0
  17. package/dist/MSeekBar-BeN9QcB3.js.map +1 -0
  18. package/dist/MSegmentedButton-DL9JtJFX.js +65 -0
  19. package/dist/MSegmentedButton-DL9JtJFX.js.map +1 -0
  20. package/dist/MSlider-BVSbJlGS.js +691 -0
  21. package/dist/MSlider-BVSbJlGS.js.map +1 -0
  22. package/dist/MSpinner-C2SUnWk4.js +65 -0
  23. package/dist/MSpinner-C2SUnWk4.js.map +1 -0
  24. package/dist/MTextField-CEkWSZ2v.js +296 -0
  25. package/dist/MTextField-CEkWSZ2v.js.map +1 -0
  26. package/dist/MTooltip-CodJGEO-.js +756 -0
  27. package/dist/MTooltip-CodJGEO-.js.map +1 -0
  28. package/dist/_storageKeys-CYXsUBwK.js +18 -0
  29. package/dist/_storageKeys-CYXsUBwK.js.map +1 -0
  30. package/dist/_useEscapeStack-CjndQhqg.js +19 -0
  31. package/dist/_useEscapeStack-CjndQhqg.js.map +1 -0
  32. package/dist/api.json +1 -1
  33. package/dist/chart.js +1 -1
  34. package/dist/code-editor.js +1 -1
  35. package/dist/components/MAudioPlayer.vue.d.ts +115 -0
  36. package/dist/components/MBadge.vue.d.ts +1 -1
  37. package/dist/components/MBottomSheetScaffold.vue.d.ts +1 -1
  38. package/dist/components/MBox.vue.d.ts +1 -1
  39. package/dist/components/MButton.vue.d.ts +1 -1
  40. package/dist/components/MConfirmDialog.vue.d.ts +1 -1
  41. package/dist/components/MCopyButton.vue.d.ts +2 -2
  42. package/dist/components/MDataTable.vue.d.ts +2 -2
  43. package/dist/components/MDialog.vue.d.ts +2 -2
  44. package/dist/components/MDivider.vue.d.ts +1 -1
  45. package/dist/components/MDragHandle.vue.d.ts +1 -1
  46. package/dist/components/MDrawCanvas.vue.d.ts +150 -0
  47. package/dist/components/MDrawLayers.vue.d.ts +3 -0
  48. package/dist/components/MDrawToolbar.vue.d.ts +34 -0
  49. package/dist/components/MExportButton.vue.d.ts +1 -1
  50. package/dist/components/MFab.vue.d.ts +2 -2
  51. package/dist/components/MFabMenu.vue.d.ts +2 -2
  52. package/dist/components/MFixed.vue.d.ts +1 -1
  53. package/dist/components/MFlex.vue.d.ts +2 -2
  54. package/dist/components/MFloorPlan.vue.d.ts +248 -0
  55. package/dist/components/MFloorPlanInspector.vue.d.ts +56 -0
  56. package/dist/components/MFloorPlanToolbar.vue.d.ts +51 -0
  57. package/dist/components/MFlow.vue.d.ts +318 -0
  58. package/dist/components/MFlowControls.vue.d.ts +33 -0
  59. package/dist/components/MFlowHandle.vue.d.ts +16 -0
  60. package/dist/components/MFlowMinimap.vue.d.ts +22 -0
  61. package/dist/components/MFlowNode.vue.d.ts +35 -0
  62. package/dist/components/MGantt.vue.d.ts +141 -0
  63. package/dist/components/MGanttControls.vue.d.ts +32 -0
  64. package/dist/components/MIconButton.vue.d.ts +3 -1
  65. package/dist/components/MImageCropper.vue.d.ts +110 -0
  66. package/dist/components/MInfiniteScroll.vue.d.ts +1 -1
  67. package/dist/components/MLightbox.vue.d.ts +2 -2
  68. package/dist/components/MList.vue.d.ts +1 -1
  69. package/dist/components/MLoadingOverlay.vue.d.ts +1 -1
  70. package/dist/components/MMapControl.vue.d.ts +1 -1
  71. package/dist/components/MMapSearch.vue.d.ts +1 -1
  72. package/dist/components/MMaskField.vue.d.ts +12 -1
  73. package/dist/components/MMenu.vue.d.ts +1 -1
  74. package/dist/components/MNavigationDrawer.vue.d.ts +1 -1
  75. package/dist/components/MNumberField.vue.d.ts +11 -2
  76. package/dist/components/MPdfViewer.vue.d.ts +174 -0
  77. package/dist/components/MPullToRefresh.vue.d.ts +1 -1
  78. package/dist/components/MResourceTimeline.vue.d.ts +149 -0
  79. package/dist/components/MScheduler.vue.d.ts +3 -3
  80. package/dist/components/MScheme.vue.d.ts +1 -1
  81. package/dist/components/MSearchField.vue.d.ts +1 -1
  82. package/dist/components/MSeekBar.vue.d.ts +1 -1
  83. package/dist/components/MSimpleCarousel.vue.d.ts +1 -1
  84. package/dist/components/MSkeleton.vue.d.ts +1 -1
  85. package/dist/components/MSlider.vue.d.ts +2 -2
  86. package/dist/components/MSparkline.vue.d.ts +1 -1
  87. package/dist/components/MSplitter.vue.d.ts +1 -1
  88. package/dist/components/MStack.vue.d.ts +2 -2
  89. package/dist/components/MSwipeToDismiss.vue.d.ts +1 -1
  90. package/dist/components/MSwitch.vue.d.ts +1 -1
  91. package/dist/components/MTable.vue.d.ts +1 -1
  92. package/dist/components/MTagInput.vue.d.ts +12 -1
  93. package/dist/components/MTextField.vue.d.ts +13 -2
  94. package/dist/components/MToolbar.vue.d.ts +1 -1
  95. package/dist/components/MTree.vue.d.ts +2 -2
  96. package/dist/components/MVideoPlayer.vue.d.ts +253 -0
  97. package/dist/components/MVirtualTable.vue.d.ts +1 -1
  98. package/dist/components/MWindow.vue.d.ts +3 -3
  99. package/dist/components/_MFlowEdge.vue.d.ts +9 -0
  100. package/dist/components/_MFlowEdgeLabel.vue.d.ts +9 -0
  101. package/dist/components/_MFlowNodeShell.vue.d.ts +9 -0
  102. package/dist/components/_MPdfPage.vue.d.ts +76 -0
  103. package/dist/components/_MTimeBackground.vue.d.ts +14 -0
  104. package/dist/components/_MTimeHeader.vue.d.ts +20 -0
  105. package/dist/composables/_flowPanel.d.ts +2 -0
  106. package/dist/composables/_flowSlot.d.ts +5 -0
  107. package/dist/composables/_ganttTime.d.ts +41 -0
  108. package/dist/composables/_useTimeAxis.d.ts +90 -0
  109. package/dist/composables/drawGeometry.d.ts +119 -0
  110. package/dist/composables/flowFormats.d.ts +79 -0
  111. package/dist/composables/flowLayout.d.ts +45 -0
  112. package/dist/composables/flowPaths.d.ts +53 -0
  113. package/dist/composables/ganttFormats.d.ts +52 -0
  114. package/dist/composables/ganttSchedule.d.ts +99 -0
  115. package/dist/composables/useDrawing.d.ts +44 -0
  116. package/dist/composables/useFloorPlan.d.ts +58 -0
  117. package/dist/composables/useFlow.d.ts +266 -0
  118. package/dist/composables/useGantt.d.ts +87 -0
  119. package/dist/composables/useLocale.d.ts +204 -0
  120. package/dist/composables/useMediaPlayer.d.ts +101 -0
  121. package/dist/composables/usePdf.d.ts +119 -0
  122. package/dist/composables/useResourceTimeline.d.ts +70 -0
  123. package/dist/draw.d.ts +7 -0
  124. package/dist/draw.js +1702 -0
  125. package/dist/draw.js.map +1 -0
  126. package/dist/flow.d.ts +14 -0
  127. package/dist/flow.js +3547 -0
  128. package/dist/flow.js.map +1 -0
  129. package/dist/flowPaths-CUc6X373.js +161 -0
  130. package/dist/flowPaths-CUc6X373.js.map +1 -0
  131. package/dist/gantt.d.ts +12 -0
  132. package/dist/gantt.js +3575 -0
  133. package/dist/gantt.js.map +1 -0
  134. package/dist/index.d.ts +9 -0
  135. package/dist/locales/index.js +1435 -7
  136. package/dist/locales/index.js.map +1 -1
  137. package/dist/m3ui-vue.css +1 -1
  138. package/dist/m3ui.js +8248 -7637
  139. package/dist/m3ui.js.map +1 -1
  140. package/dist/map.js +113 -108
  141. package/dist/map.js.map +1 -1
  142. package/dist/media.d.ts +5 -0
  143. package/dist/media.js +1311 -0
  144. package/dist/media.js.map +1 -0
  145. package/dist/pdf.d.ts +4 -0
  146. package/dist/pdf.js +1871 -0
  147. package/dist/pdf.js.map +1 -0
  148. package/dist/rich-text-editor.js +28 -26
  149. package/dist/rich-text-editor.js.map +1 -1
  150. package/dist/styles.css +1 -1
  151. package/dist/{useLocale-JYxDDeXC.js → useLocale-CaWwi-b6.js} +206 -2
  152. package/dist/useLocale-CaWwi-b6.js.map +1 -0
  153. package/dist/{useThemeTokens-y0HZpyhL.js → useThemeTokens-DQQcaWbE.js} +40 -54
  154. package/dist/useThemeTokens-DQQcaWbE.js.map +1 -0
  155. package/package.json +29 -5
  156. package/src/__tests__/MAudioPlayer.test.ts +75 -0
  157. package/src/__tests__/MDrawCanvas.test.ts +118 -0
  158. package/src/__tests__/MFloorPlan.test.ts +299 -0
  159. package/src/__tests__/MFlow.test.ts +590 -0
  160. package/src/__tests__/MGantt.test.ts +130 -0
  161. package/src/__tests__/MImageCropper.test.ts +89 -0
  162. package/src/__tests__/MPdfViewer.test.ts +235 -0
  163. package/src/__tests__/MResourceTimeline.test.ts +102 -0
  164. package/src/__tests__/MVideoPlayer.test.ts +201 -0
  165. package/src/__tests__/drawGeometry.test.ts +58 -0
  166. package/src/__tests__/fieldExpose.test.ts +30 -0
  167. package/src/__tests__/flowFormats.test.ts +185 -0
  168. package/src/__tests__/flowLayout.test.ts +113 -0
  169. package/src/__tests__/ganttFormats.test.ts +76 -0
  170. package/src/__tests__/ganttSchedule.test.ts +136 -0
  171. package/src/__tests__/pdfMock.ts +83 -0
  172. package/src/__tests__/useMediaPlayer.test.ts +182 -0
  173. package/src/__tests__/usePdf.test.ts +102 -0
  174. package/src/components/MAudioPlayer.vue +319 -0
  175. package/src/components/MDrawCanvas.vue +819 -0
  176. package/src/components/MDrawLayers.vue +114 -0
  177. package/src/components/MDrawToolbar.vue +171 -0
  178. package/src/components/MFloorPlan.vue +1080 -0
  179. package/src/components/MFloorPlanInspector.vue +169 -0
  180. package/src/components/MFloorPlanToolbar.vue +128 -0
  181. package/src/components/MFlow.vue +2060 -0
  182. package/src/components/MFlowControls.vue +110 -0
  183. package/src/components/MFlowHandle.vue +60 -0
  184. package/src/components/MFlowMinimap.vue +134 -0
  185. package/src/components/MFlowNode.vue +98 -0
  186. package/src/components/MGantt.vue +1609 -0
  187. package/src/components/MGanttControls.vue +77 -0
  188. package/src/components/MIconButton.vue +3 -1
  189. package/src/components/MImageCropper.vue +507 -0
  190. package/src/components/MMaskField.vue +13 -0
  191. package/src/components/MNumberField.vue +13 -0
  192. package/src/components/MPdfViewer.vue +1270 -0
  193. package/src/components/MResourceTimeline.vue +1020 -0
  194. package/src/components/MTagInput.vue +13 -0
  195. package/src/components/MTextField.vue +16 -0
  196. package/src/components/MVideoPlayer.vue +839 -0
  197. package/src/components/_MFlowEdge.vue +100 -0
  198. package/src/components/_MFlowEdgeLabel.vue +56 -0
  199. package/src/components/_MFlowNodeShell.vue +111 -0
  200. package/src/components/_MPdfPage.vue +456 -0
  201. package/src/components/_MTimeBackground.vue +16 -0
  202. package/src/components/_MTimeHeader.vue +31 -0
  203. package/src/composables/_flowPanel.ts +13 -0
  204. package/src/composables/_flowSlot.ts +6 -0
  205. package/src/composables/_ganttTime.ts +200 -0
  206. package/src/composables/_useTimeAxis.ts +224 -0
  207. package/src/composables/drawGeometry.ts +405 -0
  208. package/src/composables/flowFormats.ts +916 -0
  209. package/src/composables/flowLayout.ts +297 -0
  210. package/src/composables/flowPaths.ts +239 -0
  211. package/src/composables/ganttFormats.ts +366 -0
  212. package/src/composables/ganttSchedule.ts +403 -0
  213. package/src/composables/useDrawing.ts +53 -0
  214. package/src/composables/useFloorPlan.ts +73 -0
  215. package/src/composables/useFlow.ts +250 -0
  216. package/src/composables/useGantt.ts +92 -0
  217. package/src/composables/useLocale.ts +410 -0
  218. package/src/composables/useMediaPlayer.ts +406 -0
  219. package/src/composables/usePdf.ts +456 -0
  220. package/src/composables/useResourceTimeline.ts +76 -0
  221. package/src/draw.ts +25 -0
  222. package/src/flow.ts +26 -0
  223. package/src/gantt.ts +12 -0
  224. package/src/index.ts +9 -0
  225. package/src/locales/de.ts +204 -0
  226. package/src/locales/es.ts +204 -0
  227. package/src/locales/fr.ts +204 -0
  228. package/src/locales/ja.ts +204 -0
  229. package/src/locales/ko.ts +204 -0
  230. package/src/locales/pt.ts +204 -0
  231. package/src/locales/zh.ts +204 -0
  232. package/src/media.ts +5 -0
  233. package/src/pdf.ts +15 -0
  234. package/dist/MMenuItem-D4Gx_l3F.js +0 -929
  235. package/dist/MMenuItem-D4Gx_l3F.js.map +0 -1
  236. package/dist/MSlider-Dx_S3vJ9.js +0 -1506
  237. package/dist/MSlider-Dx_S3vJ9.js.map +0 -1
  238. package/dist/MTextField-Bz8JIsnl.js +0 -633
  239. package/dist/MTextField-Bz8JIsnl.js.map +0 -1
  240. package/dist/useLocale-JYxDDeXC.js.map +0 -1
  241. package/dist/useThemeTokens-y0HZpyhL.js.map +0 -1
@@ -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: "day" | "week") => any;
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: "day" | "week") => any) | undefined;
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;
@@ -18,8 +18,8 @@ type __VLS_Props = {
18
18
  };
19
19
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
20
20
  animation: "pulse" | "wave" | "none";
21
- variant: "text" | "circular" | "rectangular" | "rounded";
22
21
  lines: number;
22
+ variant: "text" | "circular" | "rectangular" | "rounded";
23
23
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
24
  declare const _default: typeof __VLS_export;
25
25
  export default _default;
@@ -43,10 +43,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
43
43
  size: "xs" | "sm" | "md" | "lg" | "xl";
44
44
  variant: "standard" | "centered" | "range";
45
45
  disabled: boolean;
46
- max: number;
46
+ step: number;
47
47
  orientation: "horizontal" | "vertical";
48
+ max: number;
48
49
  min: number;
49
- step: number;
50
50
  showValue: boolean;
51
51
  showTooltip: boolean;
52
52
  stops: boolean;
@@ -32,10 +32,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
32
32
  color: string;
33
33
  animate: boolean;
34
34
  type: "line" | "area" | "bar";
35
+ strokeWidth: number;
35
36
  smooth: boolean;
36
37
  interactive: boolean;
37
38
  showLast: boolean;
38
- strokeWidth: number;
39
39
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
40
40
  declare const _default: typeof __VLS_export;
41
41
  export default _default;
@@ -15,8 +15,8 @@ type __VLS_Slots = {} & {
15
15
  second?: (props: typeof __VLS_8) => any;
16
16
  };
17
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
- max: number;
19
18
  direction: "horizontal" | "vertical";
19
+ max: number;
20
20
  min: number;
21
21
  initialSplit: number;
22
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -20,10 +20,10 @@ type __VLS_Slots = {} & {
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
22
  wrap: boolean;
23
- inline: boolean;
24
- direction: "column" | "row";
25
23
  gap: "none" | "xs" | "sm" | "md" | "lg" | "xl";
26
24
  align: "start" | "center" | "end" | "stretch" | "baseline";
25
+ direction: "column" | "row";
26
+ inline: boolean;
27
27
  justify: "start" | "center" | "end" | "between" | "around" | "evenly";
28
28
  divider: boolean;
29
29
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -34,8 +34,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
34
34
  onDismiss?: ((args_0: "start-to-end" | "end-to-start") => any) | undefined;
35
35
  }>, {
36
36
  modelValue: SwipeToDismissValue;
37
- threshold: number;
38
37
  disabled: boolean;
38
+ threshold: number;
39
39
  startToEnd: boolean;
40
40
  endToStart: boolean;
41
41
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -16,8 +16,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
16
16
  "onUpdate:modelValue"?: ((args_0: boolean) => any) | undefined;
17
17
  }>, {
18
18
  color: "primary" | "secondary" | "tertiary" | "error";
19
- disabled: boolean;
20
19
  icon: boolean;
20
+ disabled: boolean;
21
21
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
22
  declare const _default: typeof __VLS_export;
23
23
  export default _default;
@@ -76,8 +76,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
76
76
  }>, {
77
77
  modelValue: Record<string, any>[];
78
78
  loading: boolean;
79
- selectable: boolean;
80
79
  page: number;
80
+ selectable: boolean;
81
81
  perPage: number;
82
82
  total: number;
83
83
  rowKey: string;
@@ -32,7 +32,18 @@ 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, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
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
+ /** Selects part of its text (e.g. a file name without its extension) */
45
+ setSelectionRange: (start: number, end: number, direction?: "forward" | "backward" | "none") => void | undefined;
46
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
36
47
  "update:modelValue": (args_0: string[]) => any;
37
48
  debounced: (args_0: string[]) => any;
38
49
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
@@ -42,7 +42,18 @@ declare var __VLS_6: {};
42
42
  type __VLS_Slots = {} & {
43
43
  trailing?: (props: typeof __VLS_6) => any;
44
44
  };
45
- declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
45
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
46
+ /** The `<input>` (or `<textarea>`) element */
47
+ inputEl: import("vue").ComputedRef<HTMLTextAreaElement | HTMLInputElement | null>;
48
+ /** Focuses the field */
49
+ focus: (options?: FocusOptions) => void | undefined;
50
+ /** Takes focus away from the field */
51
+ blur: () => void | undefined;
52
+ /** Selects all its text */
53
+ select: () => void | undefined;
54
+ /** Selects part of its text (e.g. a file name without its extension) */
55
+ setSelectionRange: (start: number, end: number, direction?: "forward" | "backward" | "none") => void | undefined;
56
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
46
57
  "update:modelValue": (args_0: string) => any;
47
58
  debounced: (args_0: string) => any;
48
59
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
@@ -51,9 +62,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
51
62
  }>, {
52
63
  type: string;
53
64
  variant: "filled" | "outlined";
65
+ rows: number;
54
66
  clearable: boolean;
55
67
  debounce: number;
56
- rows: number;
57
68
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
58
69
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
59
70
  declare const _default: typeof __VLS_export;
@@ -47,8 +47,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
47
47
  }>, {
48
48
  color: "surface" | "primary" | "secondary" | "tertiary";
49
49
  variant: "docked" | "floating";
50
- orientation: "horizontal" | "vertical";
51
50
  align: "start" | "center" | "end" | "between";
51
+ orientation: "horizontal" | "vertical";
52
52
  fabPosition: "start" | "end" | "none";
53
53
  collapseOnScroll: boolean | string | HTMLElement | null;
54
54
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -56,12 +56,12 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
56
56
  collapseAll: typeof collapseAll;
57
57
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
58
58
  "update:checked": (args_0: (string | number)[]) => any;
59
- "update:selected": (args_0: string | number | null) => any;
60
59
  "node-click": (args_0: TreeNode) => any;
60
+ "update:selected": (args_0: string | number | null) => any;
61
61
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
62
62
  "onUpdate:checked"?: ((args_0: (string | number)[]) => any) | undefined;
63
- "onUpdate:selected"?: ((args_0: string | number | null) => any) | undefined;
64
63
  "onNode-click"?: ((args_0: TreeNode) => any) | undefined;
64
+ "onUpdate:selected"?: ((args_0: string | number | null) => any) | undefined;
65
65
  }>, {
66
66
  selected: string | number | null;
67
67
  checked: (string | number)[];