@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,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;
@@ -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, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
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, {}, {}, {}, {}, 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
+ }, {}, {}, {}, 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;