@m3ui-vue/m3ui-vue 1.2.1 → 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 +2914 -348
- 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/MMap.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 +4 -4
- 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/_effectCanvas.d.ts +23 -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/_storageKeys.d.ts +9 -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/themeInitScript.d.ts +2 -0
- package/dist/composables/useConfetti.d.ts +19 -8
- package/dist/composables/useDrawing.d.ts +44 -0
- package/dist/composables/useFireworks.d.ts +37 -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/useReactions.d.ts +32 -0
- package/dist/composables/useResourceTimeline.d.ts +70 -0
- package/dist/composables/viewportHints.d.ts +2 -0
- package/dist/directives/vSparkle.d.ts +27 -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 +11 -1
- 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 +7822 -7809
- package/dist/m3ui.js.map +1 -1
- package/dist/map.js +593 -588
- 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/plugin.d.ts +10 -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-Bv-Uv8eX.js → useThemeTokens-DQQcaWbE.js} +41 -40
- 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__/MSlider.test.ts +36 -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__/plugin.test.ts +56 -1
- package/src/__tests__/ssr.test.ts +1 -1
- package/src/__tests__/themeInitScript.test.ts +10 -0
- package/src/__tests__/useConfetti.test.ts +33 -2
- package/src/__tests__/useFireworks.test.ts +104 -0
- package/src/__tests__/useMediaPlayer.test.ts +182 -0
- package/src/__tests__/usePdf.test.ts +102 -0
- package/src/__tests__/useReactions.test.ts +51 -0
- package/src/__tests__/vSparkle.test.ts +83 -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/MEmojiSelector.vue +3 -2
- 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/MMap.vue +3 -2
- 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/MSlider.vue +22 -4
- package/src/components/MTagInput.vue +13 -0
- package/src/components/MTextField.vue +24 -4
- 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/_colorUtils.ts +4 -2
- package/src/composables/_effectCanvas.ts +109 -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/_ssrState.ts +2 -2
- package/src/composables/_storageKeys.ts +28 -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/themeInitScript.ts +5 -2
- package/src/composables/useColorPalette.ts +36 -8
- package/src/composables/useConfetti.ts +84 -107
- package/src/composables/useDrawing.ts +53 -0
- package/src/composables/useFireworks.ts +360 -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/useReactions.ts +131 -0
- package/src/composables/useResourceTimeline.ts +76 -0
- package/src/composables/useTheme.ts +21 -4
- package/src/composables/viewportHints.ts +6 -5
- package/src/directives/vSparkle.ts +180 -0
- package/src/draw.ts +25 -0
- package/src/flow.ts +26 -0
- package/src/gantt.ts +12 -0
- package/src/index.ts +11 -1
- 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/src/plugin.ts +21 -5
- package/dist/MMenuItem-DI351kIf.js +0 -929
- package/dist/MMenuItem-DI351kIf.js.map +0 -1
- package/dist/MSlider-BnEy5ieZ.js +0 -1500
- package/dist/MSlider-BnEy5ieZ.js.map +0 -1
- package/dist/MTextField-BBmkaIbO.js +0 -633
- package/dist/MTextField-BBmkaIbO.js.map +0 -1
- package/dist/useLocale-JYxDDeXC.js.map +0 -1
- package/dist/useThemeTokens-Bv-Uv8eX.js.map +0 -1
|
@@ -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;
|
|
@@ -5,7 +5,7 @@ type __VLS_Props = {
|
|
|
5
5
|
min?: number;
|
|
6
6
|
/** Maximum value */
|
|
7
7
|
max?: number;
|
|
8
|
-
/** Step increment */
|
|
8
|
+
/** Step increment: the values emitted snap to it; while dragging (without stops) the thumb still follows the pointer smoothly and settles on its step when released */
|
|
9
9
|
step?: number;
|
|
10
10
|
/** Disables the slider */
|
|
11
11
|
disabled?: boolean;
|
|
@@ -21,7 +21,7 @@ type __VLS_Props = {
|
|
|
21
21
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
22
22
|
/** Standard, centered (from middle), or range (two thumbs) */
|
|
23
23
|
variant?: 'standard' | 'centered' | 'range';
|
|
24
|
-
/** Show stop dots at each step (max 30 visible) */
|
|
24
|
+
/** Show stop dots at each step (max 30 visible), and make a dragged thumb snap from step to step instead of following the pointer smoothly (a discrete slider) */
|
|
25
25
|
stops?: boolean;
|
|
26
26
|
/** Material Symbol icon shown before the slider — hides once the fill reaches it */
|
|
27
27
|
icon?: string;
|
|
@@ -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
|
-
|
|
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, {
|
|
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, {
|
|
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)[];
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import { type SeekBarChapter } from './MSeekBar.vue';
|
|
2
|
+
import type { MediaPlayer } from '../composables/useMediaPlayer';
|
|
3
|
+
export interface VideoSource {
|
|
4
|
+
src: string;
|
|
5
|
+
/** MIME type, e.g. `video/webm` or `application/vnd.apple.mpegurl` (HLS) */
|
|
6
|
+
type?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface VideoTrack {
|
|
9
|
+
/** WebVTT file */
|
|
10
|
+
src: string;
|
|
11
|
+
/** Language code, e.g. `es` */
|
|
12
|
+
srclang: string;
|
|
13
|
+
/** Shown in the subtitles menu */
|
|
14
|
+
label: string;
|
|
15
|
+
/** Shown from the start */
|
|
16
|
+
default?: boolean;
|
|
17
|
+
/** Default `subtitles` */
|
|
18
|
+
kind?: 'subtitles' | 'captions';
|
|
19
|
+
}
|
|
20
|
+
/** The bits of hls.js the player uses, so the library doesn't depend on it */
|
|
21
|
+
export interface HlsLike {
|
|
22
|
+
loadSource(src: string): void;
|
|
23
|
+
attachMedia(el: HTMLMediaElement): void;
|
|
24
|
+
destroy(): void;
|
|
25
|
+
on(event: string, fn: (...args: any[]) => void): void;
|
|
26
|
+
levels: {
|
|
27
|
+
height?: number;
|
|
28
|
+
bitrate?: number;
|
|
29
|
+
}[];
|
|
30
|
+
currentLevel: number;
|
|
31
|
+
}
|
|
32
|
+
export interface HlsModule {
|
|
33
|
+
default: {
|
|
34
|
+
new (config?: Record<string, unknown>): HlsLike;
|
|
35
|
+
isSupported(): boolean;
|
|
36
|
+
Events: Record<string, string>;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
/** What the control slots receive */
|
|
40
|
+
export interface VideoPlayerSlotProps {
|
|
41
|
+
player: MediaPlayer;
|
|
42
|
+
/** The controls are showing (slots usually fade with them) */
|
|
43
|
+
shown: boolean;
|
|
44
|
+
fullscreen: boolean;
|
|
45
|
+
/** The player is narrower than 480px (a phone in portrait) */
|
|
46
|
+
compact: boolean;
|
|
47
|
+
}
|
|
48
|
+
declare const _default: typeof __VLS_export;
|
|
49
|
+
export default _default;
|
|
50
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
51
|
+
/** Video URL */
|
|
52
|
+
src?: string;
|
|
53
|
+
/** Several formats of the video; the browser plays the first it can */
|
|
54
|
+
sources?: VideoSource[];
|
|
55
|
+
/** Image shown before playing */
|
|
56
|
+
poster?: string;
|
|
57
|
+
/** Subtitle tracks (WebVTT) */
|
|
58
|
+
tracks?: VideoTrack[];
|
|
59
|
+
/** Chapters, drawn on the seek bar */
|
|
60
|
+
chapters?: SeekBarChapter[];
|
|
61
|
+
/** Shown at the top in full screen, and on the lock screen while playing */
|
|
62
|
+
title?: string;
|
|
63
|
+
/** Length in seconds, for `#media` content (with a `<video>` it comes from the file) */
|
|
64
|
+
duration?: number;
|
|
65
|
+
/** Drive this player instead of one of its own (from `useMediaPlayer()`, kept outside to survive page changes). Read once */
|
|
66
|
+
player?: MediaPlayer;
|
|
67
|
+
/** Playing (v-model) */
|
|
68
|
+
playing?: boolean;
|
|
69
|
+
/** Position in seconds (v-model) */
|
|
70
|
+
currentTime?: number;
|
|
71
|
+
/** Playback speed (v-model) */
|
|
72
|
+
rate?: number;
|
|
73
|
+
/** Volume, 0 to 1 (v-model) */
|
|
74
|
+
volume?: number;
|
|
75
|
+
/** Muted (v-model) */
|
|
76
|
+
muted?: boolean;
|
|
77
|
+
/** Starts playing when mounted; muted if the browser blocks sound before a user gesture */
|
|
78
|
+
autoplay?: boolean;
|
|
79
|
+
/** Starts over at the end */
|
|
80
|
+
loop?: boolean;
|
|
81
|
+
/** Shows the controls. Off: just the video and its gestures */
|
|
82
|
+
controls?: boolean;
|
|
83
|
+
/** Adds previous and next buttons (emits `previous`); with only one of the two, the other shows disabled */
|
|
84
|
+
hasPrevious?: boolean;
|
|
85
|
+
/** Adds previous and next buttons (emits `next`); with only one of the two, the other shows disabled */
|
|
86
|
+
hasNext?: boolean;
|
|
87
|
+
/** Seconds the skip buttons, J/L and double taps move */
|
|
88
|
+
seekStep?: number;
|
|
89
|
+
/** Speeds offered in the settings menu */
|
|
90
|
+
speeds?: number[];
|
|
91
|
+
/** Box ratio, as CSS `aspect-ratio`; `auto` follows the video */
|
|
92
|
+
aspectRatio?: string;
|
|
93
|
+
/** How the video fills the box */
|
|
94
|
+
fit?: "contain" | "cover";
|
|
95
|
+
/** Milliseconds without activity before the controls hide while playing */
|
|
96
|
+
hideDelay?: number;
|
|
97
|
+
/** Played part of the seek bar: an M3 role or any CSS color */
|
|
98
|
+
color?: string;
|
|
99
|
+
/**
|
|
100
|
+
* The video's CORS mode. Subtitles from another origin need `anonymous` (and a video host that allows it, as
|
|
101
|
+
* the `<track>` is fetched in the video's mode)
|
|
102
|
+
*/
|
|
103
|
+
crossorigin?: "anonymous" | "use-credentials";
|
|
104
|
+
/** Loads hls.js for `.m3u8` where the browser can't play HLS: `() => import("hls.js")` */
|
|
105
|
+
hls?: () => Promise<HlsModule>;
|
|
106
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
107
|
+
error: (args_0: MediaError | null) => any;
|
|
108
|
+
previous: () => any;
|
|
109
|
+
next: () => any;
|
|
110
|
+
ended: () => any;
|
|
111
|
+
fullscreen: (args_0: boolean) => any;
|
|
112
|
+
"update:playing": (args_0: boolean) => any;
|
|
113
|
+
"update:currentTime": (args_0: number) => any;
|
|
114
|
+
"update:rate": (args_0: number) => any;
|
|
115
|
+
"update:volume": (args_0: number) => any;
|
|
116
|
+
"update:muted": (args_0: boolean) => any;
|
|
117
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
118
|
+
/** Video URL */
|
|
119
|
+
src?: string;
|
|
120
|
+
/** Several formats of the video; the browser plays the first it can */
|
|
121
|
+
sources?: VideoSource[];
|
|
122
|
+
/** Image shown before playing */
|
|
123
|
+
poster?: string;
|
|
124
|
+
/** Subtitle tracks (WebVTT) */
|
|
125
|
+
tracks?: VideoTrack[];
|
|
126
|
+
/** Chapters, drawn on the seek bar */
|
|
127
|
+
chapters?: SeekBarChapter[];
|
|
128
|
+
/** Shown at the top in full screen, and on the lock screen while playing */
|
|
129
|
+
title?: string;
|
|
130
|
+
/** Length in seconds, for `#media` content (with a `<video>` it comes from the file) */
|
|
131
|
+
duration?: number;
|
|
132
|
+
/** Drive this player instead of one of its own (from `useMediaPlayer()`, kept outside to survive page changes). Read once */
|
|
133
|
+
player?: MediaPlayer;
|
|
134
|
+
/** Playing (v-model) */
|
|
135
|
+
playing?: boolean;
|
|
136
|
+
/** Position in seconds (v-model) */
|
|
137
|
+
currentTime?: number;
|
|
138
|
+
/** Playback speed (v-model) */
|
|
139
|
+
rate?: number;
|
|
140
|
+
/** Volume, 0 to 1 (v-model) */
|
|
141
|
+
volume?: number;
|
|
142
|
+
/** Muted (v-model) */
|
|
143
|
+
muted?: boolean;
|
|
144
|
+
/** Starts playing when mounted; muted if the browser blocks sound before a user gesture */
|
|
145
|
+
autoplay?: boolean;
|
|
146
|
+
/** Starts over at the end */
|
|
147
|
+
loop?: boolean;
|
|
148
|
+
/** Shows the controls. Off: just the video and its gestures */
|
|
149
|
+
controls?: boolean;
|
|
150
|
+
/** Adds previous and next buttons (emits `previous`); with only one of the two, the other shows disabled */
|
|
151
|
+
hasPrevious?: boolean;
|
|
152
|
+
/** Adds previous and next buttons (emits `next`); with only one of the two, the other shows disabled */
|
|
153
|
+
hasNext?: boolean;
|
|
154
|
+
/** Seconds the skip buttons, J/L and double taps move */
|
|
155
|
+
seekStep?: number;
|
|
156
|
+
/** Speeds offered in the settings menu */
|
|
157
|
+
speeds?: number[];
|
|
158
|
+
/** Box ratio, as CSS `aspect-ratio`; `auto` follows the video */
|
|
159
|
+
aspectRatio?: string;
|
|
160
|
+
/** How the video fills the box */
|
|
161
|
+
fit?: "contain" | "cover";
|
|
162
|
+
/** Milliseconds without activity before the controls hide while playing */
|
|
163
|
+
hideDelay?: number;
|
|
164
|
+
/** Played part of the seek bar: an M3 role or any CSS color */
|
|
165
|
+
color?: string;
|
|
166
|
+
/**
|
|
167
|
+
* The video's CORS mode. Subtitles from another origin need `anonymous` (and a video host that allows it, as
|
|
168
|
+
* the `<track>` is fetched in the video's mode)
|
|
169
|
+
*/
|
|
170
|
+
crossorigin?: "anonymous" | "use-credentials";
|
|
171
|
+
/** Loads hls.js for `.m3u8` where the browser can't play HLS: `() => import("hls.js")` */
|
|
172
|
+
hls?: () => Promise<HlsModule>;
|
|
173
|
+
}> & Readonly<{
|
|
174
|
+
onError?: ((args_0: MediaError | null) => any) | undefined;
|
|
175
|
+
onPrevious?: (() => any) | undefined;
|
|
176
|
+
onNext?: (() => any) | undefined;
|
|
177
|
+
onEnded?: (() => any) | undefined;
|
|
178
|
+
onFullscreen?: ((args_0: boolean) => any) | undefined;
|
|
179
|
+
"onUpdate:playing"?: ((args_0: boolean) => any) | undefined;
|
|
180
|
+
"onUpdate:currentTime"?: ((args_0: number) => any) | undefined;
|
|
181
|
+
"onUpdate:rate"?: ((args_0: number) => any) | undefined;
|
|
182
|
+
"onUpdate:volume"?: ((args_0: number) => any) | undefined;
|
|
183
|
+
"onUpdate:muted"?: ((args_0: boolean) => any) | undefined;
|
|
184
|
+
}>, {
|
|
185
|
+
color: string;
|
|
186
|
+
aspectRatio: string;
|
|
187
|
+
playing: boolean;
|
|
188
|
+
fit: "contain" | "cover";
|
|
189
|
+
rate: number;
|
|
190
|
+
controls: boolean;
|
|
191
|
+
loop: boolean;
|
|
192
|
+
autoplay: boolean;
|
|
193
|
+
currentTime: number;
|
|
194
|
+
volume: number;
|
|
195
|
+
muted: boolean;
|
|
196
|
+
hasPrevious: boolean;
|
|
197
|
+
hasNext: boolean;
|
|
198
|
+
seekStep: number;
|
|
199
|
+
speeds: number[];
|
|
200
|
+
hideDelay: number;
|
|
201
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
202
|
+
media?: (props: {
|
|
203
|
+
time: number;
|
|
204
|
+
playing: boolean;
|
|
205
|
+
rate: number;
|
|
206
|
+
duration: number;
|
|
207
|
+
}) => any;
|
|
208
|
+
} & {
|
|
209
|
+
error?: (props: {
|
|
210
|
+
error: MediaError;
|
|
211
|
+
}) => any;
|
|
212
|
+
} & {
|
|
213
|
+
end?: (props: {
|
|
214
|
+
player: MediaPlayer;
|
|
215
|
+
replay: () => Promise<void>;
|
|
216
|
+
}) => any;
|
|
217
|
+
} & {
|
|
218
|
+
top?: (props: {
|
|
219
|
+
player: MediaPlayer;
|
|
220
|
+
/** The controls are showing (slots usually fade with them) */
|
|
221
|
+
shown: boolean;
|
|
222
|
+
fullscreen: boolean;
|
|
223
|
+
/** The player is narrower than 480px (a phone in portrait) */
|
|
224
|
+
compact: boolean;
|
|
225
|
+
}) => any;
|
|
226
|
+
} & {
|
|
227
|
+
center?: (props: {
|
|
228
|
+
player: MediaPlayer;
|
|
229
|
+
/** The controls are showing (slots usually fade with them) */
|
|
230
|
+
shown: boolean;
|
|
231
|
+
fullscreen: boolean;
|
|
232
|
+
/** The player is narrower than 480px (a phone in portrait) */
|
|
233
|
+
compact: boolean;
|
|
234
|
+
}) => any;
|
|
235
|
+
} & {
|
|
236
|
+
bottom?: (props: {
|
|
237
|
+
player: MediaPlayer;
|
|
238
|
+
/** The controls are showing (slots usually fade with them) */
|
|
239
|
+
shown: boolean;
|
|
240
|
+
fullscreen: boolean;
|
|
241
|
+
/** The player is narrower than 480px (a phone in portrait) */
|
|
242
|
+
compact: boolean;
|
|
243
|
+
}) => any;
|
|
244
|
+
} & {
|
|
245
|
+
settings?: (props: {
|
|
246
|
+
player: MediaPlayer;
|
|
247
|
+
}) => any;
|
|
248
|
+
}>;
|
|
249
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
250
|
+
new (): {
|
|
251
|
+
$slots: S;
|
|
252
|
+
};
|
|
253
|
+
};
|
|
@@ -32,8 +32,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
32
32
|
onRowClick?: ((args_0: Record<string, any>) => any) | undefined;
|
|
33
33
|
}>, {
|
|
34
34
|
maxHeight: string;
|
|
35
|
-
rowKey: string;
|
|
36
35
|
rowHeight: number;
|
|
36
|
+
rowKey: string;
|
|
37
37
|
overscan: number;
|
|
38
38
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
39
39
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -115,13 +115,13 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
115
115
|
minHeight: number;
|
|
116
116
|
x: number;
|
|
117
117
|
y: number;
|
|
118
|
+
snap: boolean;
|
|
118
119
|
closable: boolean;
|
|
120
|
+
draggable: boolean;
|
|
121
|
+
resizable: boolean;
|
|
119
122
|
minimizable: boolean;
|
|
120
123
|
maximizable: boolean;
|
|
121
|
-
draggable: boolean;
|
|
122
124
|
minWidth: number;
|
|
123
|
-
snap: boolean;
|
|
124
|
-
resizable: boolean;
|
|
125
125
|
offscreen: boolean;
|
|
126
126
|
resetPosition: boolean;
|
|
127
127
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Slot } from 'vue';
|
|
2
|
+
import { type FlowEdge } from '../composables/useFlow';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
edge: FlowEdge;
|
|
5
|
+
render?: Slot;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Slot } from 'vue';
|
|
2
|
+
import { type FlowEdge } from '../composables/useFlow';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
edge: FlowEdge;
|
|
5
|
+
render?: Slot;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Slot } from 'vue';
|
|
2
|
+
import { type FlowNode } from '../composables/useFlow';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
node: FlowNode;
|
|
5
|
+
render?: Slot;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { PdfState } from '../composables/usePdf';
|
|
2
|
+
import type { PdfAnnotation, PdfTool } from './MPdfViewer.vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
pdf: PdfState;
|
|
5
|
+
page: number;
|
|
6
|
+
scale: number;
|
|
7
|
+
/** Extra rotation from the viewer, on top of the page's own */
|
|
8
|
+
rotation: number;
|
|
9
|
+
/** Near the viewport: render the canvas and the layers */
|
|
10
|
+
active: boolean;
|
|
11
|
+
/** Search hits on this page, as offsets in its text; `current` is the focused one */
|
|
12
|
+
hits: {
|
|
13
|
+
start: number;
|
|
14
|
+
end: number;
|
|
15
|
+
current: boolean;
|
|
16
|
+
}[];
|
|
17
|
+
annotations: PdfAnnotation[];
|
|
18
|
+
tool: PdfTool;
|
|
19
|
+
color: string;
|
|
20
|
+
inkWidth: number;
|
|
21
|
+
selectedId: string | null;
|
|
22
|
+
};
|
|
23
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
24
|
+
root: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
25
|
+
currentHit: import("vue").ShallowRef<HTMLElement | null, HTMLElement | null>;
|
|
26
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
|
+
link: (args_0: {
|
|
28
|
+
url?: string;
|
|
29
|
+
dest?: unknown;
|
|
30
|
+
}) => any;
|
|
31
|
+
select: (args_0: {
|
|
32
|
+
id: string;
|
|
33
|
+
anchor: DOMRect;
|
|
34
|
+
} | null) => any;
|
|
35
|
+
add: (args_0: PdfAnnotation) => any;
|
|
36
|
+
erase: (args_0: string) => any;
|
|
37
|
+
rendered: (args_0: number) => any;
|
|
38
|
+
"erase-start": () => any;
|
|
39
|
+
"erase-at": (args_0: {
|
|
40
|
+
x: number;
|
|
41
|
+
y: number;
|
|
42
|
+
r: number;
|
|
43
|
+
}) => any;
|
|
44
|
+
"text-selection": (args_0: {
|
|
45
|
+
page: number;
|
|
46
|
+
rects: [number, number, number, number][];
|
|
47
|
+
quote: string;
|
|
48
|
+
anchor: DOMRect;
|
|
49
|
+
} | null) => any;
|
|
50
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
51
|
+
onLink?: ((args_0: {
|
|
52
|
+
url?: string;
|
|
53
|
+
dest?: unknown;
|
|
54
|
+
}) => any) | undefined;
|
|
55
|
+
onSelect?: ((args_0: {
|
|
56
|
+
id: string;
|
|
57
|
+
anchor: DOMRect;
|
|
58
|
+
} | null) => any) | undefined;
|
|
59
|
+
onAdd?: ((args_0: PdfAnnotation) => any) | undefined;
|
|
60
|
+
onErase?: ((args_0: string) => any) | undefined;
|
|
61
|
+
onRendered?: ((args_0: number) => any) | undefined;
|
|
62
|
+
"onErase-start"?: (() => any) | undefined;
|
|
63
|
+
"onErase-at"?: ((args_0: {
|
|
64
|
+
x: number;
|
|
65
|
+
y: number;
|
|
66
|
+
r: number;
|
|
67
|
+
}) => any) | undefined;
|
|
68
|
+
"onText-selection"?: ((args_0: {
|
|
69
|
+
page: number;
|
|
70
|
+
rects: [number, number, number, number][];
|
|
71
|
+
quote: string;
|
|
72
|
+
anchor: DOMRect;
|
|
73
|
+
} | null) => any) | undefined;
|
|
74
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
75
|
+
declare const _default: typeof __VLS_export;
|
|
76
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
offTimes: {
|
|
3
|
+
x: number;
|
|
4
|
+
w: number;
|
|
5
|
+
}[];
|
|
6
|
+
cells: {
|
|
7
|
+
key: number;
|
|
8
|
+
x: number;
|
|
9
|
+
}[];
|
|
10
|
+
todayX: number | null;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
width: number;
|
|
3
|
+
topCells: {
|
|
4
|
+
key: number;
|
|
5
|
+
x: number;
|
|
6
|
+
w: number;
|
|
7
|
+
label: string;
|
|
8
|
+
labelX: number;
|
|
9
|
+
}[];
|
|
10
|
+
bottomCells: {
|
|
11
|
+
key: number;
|
|
12
|
+
x: number;
|
|
13
|
+
w: number;
|
|
14
|
+
label: string;
|
|
15
|
+
}[];
|
|
16
|
+
todayX: number | null;
|
|
17
|
+
};
|
|
18
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface EffectLayer {
|
|
2
|
+
/** Advances and draws one frame (`dt` in seconds, `dpr` the canvas' pixel ratio); false once it has nothing left. */
|
|
3
|
+
step(ctx: CanvasRenderingContext2D, dt: number, dpr: number, now: number): boolean;
|
|
4
|
+
}
|
|
5
|
+
/** Makes sure a layer is drawn (it stays until its `step` returns false). False when there's no 2D canvas. */
|
|
6
|
+
export declare function runLayer(layer: EffectLayer): boolean;
|
|
7
|
+
/** Stops every effect and removes the canvas. Internal, for tests. */
|
|
8
|
+
export declare function __resetEffectCanvas(): void;
|
|
9
|
+
/** The theme's colors for effects, read at an element (so an MScheme around it gives its scheme's). */
|
|
10
|
+
export declare function themeColors(el: Element, roles: string[]): string[];
|
|
11
|
+
/** Whether the system asks for reduced motion. */
|
|
12
|
+
export declare function reducedMotion(): boolean;
|
|
13
|
+
/** Where an effect starts: the pointer of an event, an element's center, or a point in viewport pixels */
|
|
14
|
+
export type EffectOrigin = MouseEvent | PointerEvent | Element | {
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
};
|
|
18
|
+
/** The point an effect starts from (viewport px) and the element whose theme colors it takes. */
|
|
19
|
+
export declare function originPoint(origin: EffectOrigin | undefined): {
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
el: Element;
|
|
23
|
+
};
|