@expcat/tigercat-vue 2.0.4 → 2.1.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/README.md +20 -10
- package/dist/chunk-26QCTL2E.mjs +180 -0
- package/dist/{chunk-GS4SV2HK.mjs → chunk-32X54QKW.mjs} +1 -1
- package/dist/chunk-3ONCXHE5.mjs +184 -0
- package/dist/{chunk-KOG3HKOF.mjs → chunk-6AMWX5K4.mjs} +1 -4
- package/dist/chunk-6GR3XC5V.mjs +281 -0
- package/dist/chunk-6GR5U4UB.mjs +225 -0
- package/dist/chunk-7DWWNFRP.mjs +302 -0
- package/dist/chunk-AECXFT7D.mjs +121 -0
- package/dist/chunk-AOLRZG4E.mjs +347 -0
- package/dist/chunk-AY7CGLMO.mjs +368 -0
- package/dist/chunk-BBNCP55O.mjs +156 -0
- package/dist/chunk-F3ZVVVYD.mjs +257 -0
- package/dist/{chunk-OTGGPXDT.mjs → chunk-IEAEB4TX.mjs} +255 -44
- package/dist/chunk-P6FMU4AT.mjs +54 -0
- package/dist/chunk-PFIV5MXD.mjs +48 -0
- package/dist/chunk-TBOXTAIA.mjs +94 -0
- package/dist/{chunk-H6FZBFRT.mjs → chunk-TPESRDUG.mjs} +6 -1
- package/dist/{chunk-2XCXK3NQ.mjs → chunk-U4B5QT72.mjs} +1 -1
- package/dist/chunk-UUWPSRNV.mjs +337 -0
- package/dist/chunk-UXJRH72H.mjs +834 -0
- package/dist/chunk-VFS5XAZ3.mjs +602 -0
- package/dist/{chunk-WC5MKASU.mjs → chunk-VN2TWPRC.mjs} +169 -55
- package/dist/components/ActivityFeed.d.mts +1 -1
- package/dist/components/ActivityFeed.mjs +1 -1
- package/dist/components/Alert.d.mts +2 -2
- package/dist/components/AreaChart.mjs +2 -2
- package/dist/components/AspectRatio.d.mts +44 -0
- package/dist/components/AspectRatio.mjs +8 -0
- package/dist/components/BarChart.mjs +2 -2
- package/dist/components/Carousel.d.mts +1 -1
- package/dist/components/Cascader.d.mts +34 -0
- package/dist/components/Cascader.mjs +1 -1
- package/dist/components/ChartLegend.d.mts +1 -1
- package/dist/components/ChatWindow.mjs +1 -1
- package/dist/components/CodeEditor.mjs +1 -1
- package/dist/components/ColorSwatch.d.mts +1 -1
- package/dist/components/ContextMenu.d.mts +234 -0
- package/dist/components/ContextMenu.mjs +17 -0
- package/dist/components/DataTableWithToolbar.d.mts +1 -1
- package/dist/components/DataTableWithToolbar.mjs +2 -2
- package/dist/components/DonutChart.mjs +3 -3
- package/dist/components/Dropdown.d.mts +1 -1
- package/dist/components/FloatButton.d.mts +2 -2
- package/dist/components/FunnelChart.d.mts +1 -1
- package/dist/components/FunnelChart.mjs +2 -2
- package/dist/components/Highlight.d.mts +146 -0
- package/dist/components/Highlight.mjs +8 -0
- package/dist/components/ImageCompare.d.mts +284 -0
- package/dist/components/ImageCompare.mjs +8 -0
- package/dist/components/Input.d.mts +1 -1
- package/dist/components/InputOTP.d.mts +261 -0
- package/dist/components/InputOTP.mjs +11 -0
- package/dist/components/Kbd.d.mts +118 -0
- package/dist/components/Kbd.mjs +8 -0
- package/dist/components/LineChart.mjs +2 -2
- package/dist/components/List.d.mts +1 -1
- package/dist/components/List.mjs +1 -1
- package/dist/components/LoadingBar.d.mts +8 -0
- package/dist/components/LoadingBar.mjs +114 -0
- package/dist/components/LoadingBarContainer.d.mts +78 -0
- package/dist/components/LoadingBarContainer.mjs +8 -0
- package/dist/components/LoadingBarRoot.d.mts +6 -0
- package/dist/components/LoadingBarRoot.mjs +6 -0
- package/dist/components/Marquee.d.mts +158 -0
- package/dist/components/Marquee.mjs +8 -0
- package/dist/components/MaskInput.d.mts +201 -0
- package/dist/components/MaskInput.mjs +11 -0
- package/dist/components/Masonry.d.mts +66 -0
- package/dist/components/Masonry.mjs +8 -0
- package/dist/components/Menu.d.mts +2 -2
- package/dist/components/Modal.d.mts +1 -1
- package/dist/components/NavigationMenu.d.mts +411 -0
- package/dist/components/NavigationMenu.mjs +25 -0
- package/dist/components/NotificationCenter.d.mts +1 -1
- package/dist/components/NotificationCenter.mjs +2 -2
- package/dist/components/PageHeader.d.mts +140 -0
- package/dist/components/PageHeader.mjs +11 -0
- package/dist/components/PieChart.mjs +2 -2
- package/dist/components/Popconfirm.d.mts +3 -3
- package/dist/components/Popover.d.mts +2 -2
- package/dist/components/RadarChart.mjs +2 -2
- package/dist/components/ScatterChart.mjs +2 -2
- package/dist/components/ScrollArea.d.mts +136 -0
- package/dist/components/ScrollArea.mjs +8 -0
- package/dist/components/SplitButton.d.mts +286 -0
- package/dist/components/SplitButton.mjs +12 -0
- package/dist/components/Spotlight.d.mts +1 -1
- package/dist/components/SunburstChart.mjs +2 -2
- package/dist/components/TagsInput.d.mts +214 -0
- package/dist/components/TagsInput.mjs +12 -0
- package/dist/components/Timeline.d.mts +1 -1
- package/dist/components/Tooltip.d.mts +2 -2
- package/dist/components/Tour.d.mts +3 -3
- package/dist/components/Tree.d.mts +1 -1
- package/dist/components/TreeMapChart.d.mts +1 -1
- package/dist/components/TreeMapChart.mjs +2 -2
- package/dist/components/TreeSelect.d.mts +51 -0
- package/dist/components/TreeSelect.mjs +2 -1
- package/dist/components/Upload.d.mts +1 -1
- package/dist/components/VirtualTable.d.mts +1 -1
- package/dist/components/Watermark.d.mts +1 -1
- package/dist/index.d.mts +17 -1
- package/dist/index.mjs +356 -0
- package/package.json +117 -2
- package/dist/{chunk-MAKOSWR6.mjs → chunk-37W7XTA6.mjs} +3 -3
- package/dist/{chunk-WUQMFKQ6.mjs → chunk-66OS5A4D.mjs} +3 -3
- package/dist/{chunk-NNC75I7F.mjs → chunk-CHEXI7MO.mjs} +3 -3
- package/dist/{chunk-KFJIZED5.mjs → chunk-EHGFW5GX.mjs} +3 -3
- package/dist/{chunk-ZGA66PSG.mjs → chunk-EZYOCPMM.mjs} +3 -3
- package/dist/{chunk-XGXZF27U.mjs → chunk-JHMT5Q6P.mjs} +3 -3
- package/dist/{chunk-NGAA73CV.mjs → chunk-VLW3UBIR.mjs} +3 -3
- package/dist/{chunk-OTHJIFDV.mjs → chunk-W5XFWVNV.mjs} +3 -3
- package/dist/{chunk-3KITFMBJ.mjs → chunk-ZOYHZF4N.mjs} +3 -3
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LineChart,
|
|
3
3
|
LineChart_default
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-JHMT5Q6P.mjs";
|
|
5
5
|
import "../chunk-PE5OA4YG.mjs";
|
|
6
|
+
import "../chunk-2ZUEXCVJ.mjs";
|
|
6
7
|
import "../chunk-SPFL55TF.mjs";
|
|
7
8
|
import "../chunk-ZWVA7HT3.mjs";
|
|
8
9
|
import "../chunk-W5RZPTFD.mjs";
|
|
9
10
|
import "../chunk-MI6TL3CQ.mjs";
|
|
10
11
|
import "../chunk-V443QIJM.mjs";
|
|
11
|
-
import "../chunk-2ZUEXCVJ.mjs";
|
|
12
12
|
export {
|
|
13
13
|
LineChart,
|
|
14
14
|
LineChart_default as default
|
|
@@ -302,9 +302,9 @@ declare const List: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
302
302
|
className: string;
|
|
303
303
|
style: Record<string, string | number>;
|
|
304
304
|
loading: boolean;
|
|
305
|
+
split: boolean;
|
|
305
306
|
virtual: boolean;
|
|
306
307
|
dataSource: ListItem[];
|
|
307
|
-
split: boolean;
|
|
308
308
|
bordered: ListBorderStyle;
|
|
309
309
|
hoverable: boolean;
|
|
310
310
|
rowKey: string | ((item: ListItem, index: number) => string | number);
|
package/dist/components/List.mjs
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LoadingBarApi, LoadingBarOptions } from '@expcat/tigercat-core';
|
|
2
|
+
export { LoadingBarContainer, VueLoadingBarContainerProps } from './LoadingBarContainer.mjs';
|
|
3
|
+
import 'vue';
|
|
4
|
+
|
|
5
|
+
type VueLoadingBarProps = LoadingBarOptions;
|
|
6
|
+
declare const LoadingBar: LoadingBarApi;
|
|
7
|
+
|
|
8
|
+
export { LoadingBar, type VueLoadingBarProps, LoadingBar as default };
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import {
|
|
2
|
+
LoadingBarContainer
|
|
3
|
+
} from "../chunk-TBOXTAIA.mjs";
|
|
4
|
+
import {
|
|
5
|
+
getGlobalTigerLocale
|
|
6
|
+
} from "../chunk-TGXBCKOU.mjs";
|
|
7
|
+
|
|
8
|
+
// src/components/LoadingBar.ts
|
|
9
|
+
import { createApp, defineComponent, h, ref } from "vue";
|
|
10
|
+
import {
|
|
11
|
+
createLoadingBarController,
|
|
12
|
+
isBrowser,
|
|
13
|
+
LOADING_BAR_CONTAINER_ROOT_ID,
|
|
14
|
+
resolveLoadingBarMountTarget
|
|
15
|
+
} from "@expcat/tigercat-core";
|
|
16
|
+
var containerApp = null;
|
|
17
|
+
var controller = null;
|
|
18
|
+
var barState = ref(null);
|
|
19
|
+
function getDefaultAriaLabel() {
|
|
20
|
+
return getGlobalTigerLocale()?.common?.loadingText;
|
|
21
|
+
}
|
|
22
|
+
function getController() {
|
|
23
|
+
if (!controller) {
|
|
24
|
+
controller = createLoadingBarController();
|
|
25
|
+
controller.subscribe(() => {
|
|
26
|
+
barState.value = controller?.getState() ?? null;
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
return controller;
|
|
30
|
+
}
|
|
31
|
+
var LoadingBarHost = /* @__PURE__ */ defineComponent({
|
|
32
|
+
name: "TigerLoadingBarHost",
|
|
33
|
+
setup() {
|
|
34
|
+
return () => {
|
|
35
|
+
const state = barState.value;
|
|
36
|
+
if (!state?.visible) return null;
|
|
37
|
+
return h(LoadingBarContainer, {
|
|
38
|
+
percentage: state.percentage,
|
|
39
|
+
status: state.status,
|
|
40
|
+
color: state.color,
|
|
41
|
+
height: state.height,
|
|
42
|
+
className: state.className,
|
|
43
|
+
style: state.style,
|
|
44
|
+
ariaLabel: state.ariaLabel
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
function ensureContainer(container) {
|
|
50
|
+
if (!isBrowser()) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
const existingRootEl = document.getElementById(LOADING_BAR_CONTAINER_ROOT_ID);
|
|
54
|
+
if (containerApp && !existingRootEl) {
|
|
55
|
+
containerApp = null;
|
|
56
|
+
}
|
|
57
|
+
if (containerApp) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
let rootEl = existingRootEl;
|
|
61
|
+
if (!rootEl) {
|
|
62
|
+
rootEl = document.createElement("div");
|
|
63
|
+
rootEl.id = LOADING_BAR_CONTAINER_ROOT_ID;
|
|
64
|
+
const mountTarget = resolveLoadingBarMountTarget(container) ?? document.body;
|
|
65
|
+
mountTarget.appendChild(rootEl);
|
|
66
|
+
}
|
|
67
|
+
containerApp = createApp(LoadingBarHost);
|
|
68
|
+
containerApp.mount(rootEl);
|
|
69
|
+
}
|
|
70
|
+
function teardownContainer() {
|
|
71
|
+
if (containerApp) {
|
|
72
|
+
containerApp.unmount();
|
|
73
|
+
containerApp = null;
|
|
74
|
+
}
|
|
75
|
+
if (isBrowser()) {
|
|
76
|
+
const rootEl = document.getElementById(LOADING_BAR_CONTAINER_ROOT_ID);
|
|
77
|
+
if (rootEl?.parentNode) {
|
|
78
|
+
rootEl.parentNode.removeChild(rootEl);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
function withAriaLabel(options) {
|
|
83
|
+
if (options?.ariaLabel) return options;
|
|
84
|
+
const localeLabel = getDefaultAriaLabel();
|
|
85
|
+
if (!localeLabel && !options) return options;
|
|
86
|
+
return { ...options, ariaLabel: options?.ariaLabel ?? localeLabel };
|
|
87
|
+
}
|
|
88
|
+
var LoadingBar = {
|
|
89
|
+
start(options) {
|
|
90
|
+
const resolved = withAriaLabel(options);
|
|
91
|
+
getController().start(resolved);
|
|
92
|
+
ensureContainer(resolved?.container);
|
|
93
|
+
},
|
|
94
|
+
finish() {
|
|
95
|
+
getController().finish();
|
|
96
|
+
if (getController().getState().visible) {
|
|
97
|
+
ensureContainer();
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
error() {
|
|
101
|
+
getController().error();
|
|
102
|
+
ensureContainer();
|
|
103
|
+
},
|
|
104
|
+
clear() {
|
|
105
|
+
getController().clear();
|
|
106
|
+
teardownContainer();
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
var LoadingBar_default = LoadingBar;
|
|
110
|
+
export {
|
|
111
|
+
LoadingBar,
|
|
112
|
+
LoadingBarContainer,
|
|
113
|
+
LoadingBar_default as default
|
|
114
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import { LoadingBarStatus, LoadingBarColor, LoadingBarContainerProps } from '@expcat/tigercat-core';
|
|
4
|
+
|
|
5
|
+
interface VueLoadingBarContainerProps extends LoadingBarContainerProps {
|
|
6
|
+
style?: Record<string, string | number>;
|
|
7
|
+
}
|
|
8
|
+
declare const LoadingBarContainer: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
9
|
+
percentage: {
|
|
10
|
+
type: NumberConstructor;
|
|
11
|
+
default: number;
|
|
12
|
+
};
|
|
13
|
+
status: {
|
|
14
|
+
type: PropType<LoadingBarStatus>;
|
|
15
|
+
default: LoadingBarStatus;
|
|
16
|
+
};
|
|
17
|
+
color: {
|
|
18
|
+
type: PropType<LoadingBarColor>;
|
|
19
|
+
default: LoadingBarColor;
|
|
20
|
+
};
|
|
21
|
+
height: {
|
|
22
|
+
type: NumberConstructor;
|
|
23
|
+
default: number;
|
|
24
|
+
};
|
|
25
|
+
className: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: undefined;
|
|
28
|
+
};
|
|
29
|
+
style: {
|
|
30
|
+
type: PropType<Record<string, string | number>>;
|
|
31
|
+
default: undefined;
|
|
32
|
+
};
|
|
33
|
+
ariaLabel: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: undefined;
|
|
36
|
+
};
|
|
37
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
40
|
+
percentage: {
|
|
41
|
+
type: NumberConstructor;
|
|
42
|
+
default: number;
|
|
43
|
+
};
|
|
44
|
+
status: {
|
|
45
|
+
type: PropType<LoadingBarStatus>;
|
|
46
|
+
default: LoadingBarStatus;
|
|
47
|
+
};
|
|
48
|
+
color: {
|
|
49
|
+
type: PropType<LoadingBarColor>;
|
|
50
|
+
default: LoadingBarColor;
|
|
51
|
+
};
|
|
52
|
+
height: {
|
|
53
|
+
type: NumberConstructor;
|
|
54
|
+
default: number;
|
|
55
|
+
};
|
|
56
|
+
className: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: undefined;
|
|
59
|
+
};
|
|
60
|
+
style: {
|
|
61
|
+
type: PropType<Record<string, string | number>>;
|
|
62
|
+
default: undefined;
|
|
63
|
+
};
|
|
64
|
+
ariaLabel: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
default: undefined;
|
|
67
|
+
};
|
|
68
|
+
}>> & Readonly<{}>, {
|
|
69
|
+
status: LoadingBarStatus;
|
|
70
|
+
ariaLabel: string;
|
|
71
|
+
className: string;
|
|
72
|
+
style: Record<string, string | number>;
|
|
73
|
+
height: number;
|
|
74
|
+
color: LoadingBarColor;
|
|
75
|
+
percentage: number;
|
|
76
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
77
|
+
|
|
78
|
+
export { LoadingBarContainer, type VueLoadingBarContainerProps, LoadingBarContainer as default };
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import { MarqueeDirection, MarqueeGap } from '@expcat/tigercat-core';
|
|
4
|
+
|
|
5
|
+
interface VueMarqueeProps {
|
|
6
|
+
direction?: MarqueeDirection;
|
|
7
|
+
duration?: number;
|
|
8
|
+
pauseOnHover?: boolean;
|
|
9
|
+
gap?: MarqueeGap;
|
|
10
|
+
repeat?: number;
|
|
11
|
+
ariaLabel?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
style?: Record<string, unknown>;
|
|
14
|
+
}
|
|
15
|
+
declare const Marquee: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
16
|
+
/**
|
|
17
|
+
* Scroll direction
|
|
18
|
+
* @default 'left'
|
|
19
|
+
*/
|
|
20
|
+
direction: {
|
|
21
|
+
type: PropType<MarqueeDirection>;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Time for one full loop, in milliseconds
|
|
26
|
+
* @default 20000
|
|
27
|
+
*/
|
|
28
|
+
duration: {
|
|
29
|
+
type: NumberConstructor;
|
|
30
|
+
default: undefined;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Pause looping while hovered or while focus is inside the region
|
|
34
|
+
* @default true
|
|
35
|
+
*/
|
|
36
|
+
pauseOnHover: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Gap between items and between duplicated copies.
|
|
42
|
+
* A number is pixels; a string is a CSS length.
|
|
43
|
+
* @default 16
|
|
44
|
+
*/
|
|
45
|
+
gap: {
|
|
46
|
+
type: PropType<MarqueeGap>;
|
|
47
|
+
default: undefined;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* How many copies of the content to render for a seamless loop.
|
|
51
|
+
* Values below 2 skip looping and show a single static copy.
|
|
52
|
+
* @default 2
|
|
53
|
+
*/
|
|
54
|
+
repeat: {
|
|
55
|
+
type: NumberConstructor;
|
|
56
|
+
default: undefined;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Accessible name for the region
|
|
60
|
+
* @default 'Scrolling content'
|
|
61
|
+
*/
|
|
62
|
+
ariaLabel: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
default: undefined;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Additional CSS classes
|
|
68
|
+
*/
|
|
69
|
+
className: {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
default: undefined;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Inline styles
|
|
75
|
+
*/
|
|
76
|
+
style: {
|
|
77
|
+
type: PropType<Record<string, unknown>>;
|
|
78
|
+
default: undefined;
|
|
79
|
+
};
|
|
80
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
81
|
+
[key: string]: any;
|
|
82
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
83
|
+
/**
|
|
84
|
+
* Scroll direction
|
|
85
|
+
* @default 'left'
|
|
86
|
+
*/
|
|
87
|
+
direction: {
|
|
88
|
+
type: PropType<MarqueeDirection>;
|
|
89
|
+
default: string;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* Time for one full loop, in milliseconds
|
|
93
|
+
* @default 20000
|
|
94
|
+
*/
|
|
95
|
+
duration: {
|
|
96
|
+
type: NumberConstructor;
|
|
97
|
+
default: undefined;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Pause looping while hovered or while focus is inside the region
|
|
101
|
+
* @default true
|
|
102
|
+
*/
|
|
103
|
+
pauseOnHover: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
default: boolean;
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* Gap between items and between duplicated copies.
|
|
109
|
+
* A number is pixels; a string is a CSS length.
|
|
110
|
+
* @default 16
|
|
111
|
+
*/
|
|
112
|
+
gap: {
|
|
113
|
+
type: PropType<MarqueeGap>;
|
|
114
|
+
default: undefined;
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* How many copies of the content to render for a seamless loop.
|
|
118
|
+
* Values below 2 skip looping and show a single static copy.
|
|
119
|
+
* @default 2
|
|
120
|
+
*/
|
|
121
|
+
repeat: {
|
|
122
|
+
type: NumberConstructor;
|
|
123
|
+
default: undefined;
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* Accessible name for the region
|
|
127
|
+
* @default 'Scrolling content'
|
|
128
|
+
*/
|
|
129
|
+
ariaLabel: {
|
|
130
|
+
type: StringConstructor;
|
|
131
|
+
default: undefined;
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Additional CSS classes
|
|
135
|
+
*/
|
|
136
|
+
className: {
|
|
137
|
+
type: StringConstructor;
|
|
138
|
+
default: undefined;
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* Inline styles
|
|
142
|
+
*/
|
|
143
|
+
style: {
|
|
144
|
+
type: PropType<Record<string, unknown>>;
|
|
145
|
+
default: undefined;
|
|
146
|
+
};
|
|
147
|
+
}>> & Readonly<{}>, {
|
|
148
|
+
direction: MarqueeDirection;
|
|
149
|
+
ariaLabel: string;
|
|
150
|
+
className: string;
|
|
151
|
+
style: Record<string, unknown>;
|
|
152
|
+
repeat: number;
|
|
153
|
+
duration: number;
|
|
154
|
+
pauseOnHover: boolean;
|
|
155
|
+
gap: MarqueeGap;
|
|
156
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
157
|
+
|
|
158
|
+
export { Marquee, type VueMarqueeProps, Marquee as default };
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import { MaskToken, ComponentSize, InputStatus } from '@expcat/tigercat-core';
|
|
4
|
+
|
|
5
|
+
type VueMaskInputProps = InstanceType<typeof MaskInput>['$props'];
|
|
6
|
+
declare const MaskInput: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
7
|
+
/**
|
|
8
|
+
* Raw (unmasked) value for v-model
|
|
9
|
+
*/
|
|
10
|
+
modelValue: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: undefined;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Default raw value (for uncontrolled mode)
|
|
16
|
+
*/
|
|
17
|
+
defaultValue: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Mask template. Built-in tokens: `#` digit, `a` letter, `*` alphanumeric,
|
|
23
|
+
* `!` escapes the next character to a literal
|
|
24
|
+
*/
|
|
25
|
+
mask: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Custom tokens merged over the built-ins
|
|
31
|
+
*/
|
|
32
|
+
tokens: {
|
|
33
|
+
type: PropType<Record<string, MaskToken>>;
|
|
34
|
+
default: undefined;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Input size
|
|
38
|
+
* @default 'md'
|
|
39
|
+
*/
|
|
40
|
+
size: {
|
|
41
|
+
type: PropType<ComponentSize>;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Validation status
|
|
46
|
+
* @default 'default'
|
|
47
|
+
*/
|
|
48
|
+
status: {
|
|
49
|
+
type: PropType<InputStatus>;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
/** Error message to display */
|
|
53
|
+
errorMessage: StringConstructor;
|
|
54
|
+
/** Placeholder text */
|
|
55
|
+
placeholder: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
/** Whether the input is disabled */
|
|
60
|
+
disabled: BooleanConstructor;
|
|
61
|
+
/** Whether the input is readonly */
|
|
62
|
+
readonly: BooleanConstructor;
|
|
63
|
+
/** Whether to show a clear button when the input has value */
|
|
64
|
+
clearable: BooleanConstructor;
|
|
65
|
+
/** Input name attribute */
|
|
66
|
+
name: StringConstructor;
|
|
67
|
+
/** Input id attribute */
|
|
68
|
+
id: StringConstructor;
|
|
69
|
+
/** Autocomplete attribute */
|
|
70
|
+
autoComplete: StringConstructor;
|
|
71
|
+
/** Whether to autofocus on mount */
|
|
72
|
+
autoFocus: BooleanConstructor;
|
|
73
|
+
/**
|
|
74
|
+
* Internal shake trigger counter (used by FormItem)
|
|
75
|
+
* @internal
|
|
76
|
+
*/
|
|
77
|
+
_shakeTrigger: {
|
|
78
|
+
type: NumberConstructor;
|
|
79
|
+
default: undefined;
|
|
80
|
+
};
|
|
81
|
+
/** Additional CSS classes */
|
|
82
|
+
className: StringConstructor;
|
|
83
|
+
/** Inline styles */
|
|
84
|
+
style: {
|
|
85
|
+
type: PropType<Record<string, string | number>>;
|
|
86
|
+
default: undefined;
|
|
87
|
+
};
|
|
88
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
89
|
+
[key: string]: any;
|
|
90
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
91
|
+
'update:modelValue': null;
|
|
92
|
+
change: null;
|
|
93
|
+
complete: null;
|
|
94
|
+
focus: null;
|
|
95
|
+
blur: null;
|
|
96
|
+
clear: null;
|
|
97
|
+
}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
98
|
+
/**
|
|
99
|
+
* Raw (unmasked) value for v-model
|
|
100
|
+
*/
|
|
101
|
+
modelValue: {
|
|
102
|
+
type: StringConstructor;
|
|
103
|
+
default: undefined;
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Default raw value (for uncontrolled mode)
|
|
107
|
+
*/
|
|
108
|
+
defaultValue: {
|
|
109
|
+
type: StringConstructor;
|
|
110
|
+
default: string;
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* Mask template. Built-in tokens: `#` digit, `a` letter, `*` alphanumeric,
|
|
114
|
+
* `!` escapes the next character to a literal
|
|
115
|
+
*/
|
|
116
|
+
mask: {
|
|
117
|
+
type: StringConstructor;
|
|
118
|
+
required: true;
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* Custom tokens merged over the built-ins
|
|
122
|
+
*/
|
|
123
|
+
tokens: {
|
|
124
|
+
type: PropType<Record<string, MaskToken>>;
|
|
125
|
+
default: undefined;
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* Input size
|
|
129
|
+
* @default 'md'
|
|
130
|
+
*/
|
|
131
|
+
size: {
|
|
132
|
+
type: PropType<ComponentSize>;
|
|
133
|
+
default: string;
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* Validation status
|
|
137
|
+
* @default 'default'
|
|
138
|
+
*/
|
|
139
|
+
status: {
|
|
140
|
+
type: PropType<InputStatus>;
|
|
141
|
+
default: string;
|
|
142
|
+
};
|
|
143
|
+
/** Error message to display */
|
|
144
|
+
errorMessage: StringConstructor;
|
|
145
|
+
/** Placeholder text */
|
|
146
|
+
placeholder: {
|
|
147
|
+
type: StringConstructor;
|
|
148
|
+
default: string;
|
|
149
|
+
};
|
|
150
|
+
/** Whether the input is disabled */
|
|
151
|
+
disabled: BooleanConstructor;
|
|
152
|
+
/** Whether the input is readonly */
|
|
153
|
+
readonly: BooleanConstructor;
|
|
154
|
+
/** Whether to show a clear button when the input has value */
|
|
155
|
+
clearable: BooleanConstructor;
|
|
156
|
+
/** Input name attribute */
|
|
157
|
+
name: StringConstructor;
|
|
158
|
+
/** Input id attribute */
|
|
159
|
+
id: StringConstructor;
|
|
160
|
+
/** Autocomplete attribute */
|
|
161
|
+
autoComplete: StringConstructor;
|
|
162
|
+
/** Whether to autofocus on mount */
|
|
163
|
+
autoFocus: BooleanConstructor;
|
|
164
|
+
/**
|
|
165
|
+
* Internal shake trigger counter (used by FormItem)
|
|
166
|
+
* @internal
|
|
167
|
+
*/
|
|
168
|
+
_shakeTrigger: {
|
|
169
|
+
type: NumberConstructor;
|
|
170
|
+
default: undefined;
|
|
171
|
+
};
|
|
172
|
+
/** Additional CSS classes */
|
|
173
|
+
className: StringConstructor;
|
|
174
|
+
/** Inline styles */
|
|
175
|
+
style: {
|
|
176
|
+
type: PropType<Record<string, string | number>>;
|
|
177
|
+
default: undefined;
|
|
178
|
+
};
|
|
179
|
+
}>> & Readonly<{
|
|
180
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
181
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
182
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
183
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
184
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
185
|
+
onComplete?: ((...args: any[]) => any) | undefined;
|
|
186
|
+
}>, {
|
|
187
|
+
status: InputStatus;
|
|
188
|
+
placeholder: string;
|
|
189
|
+
size: ComponentSize;
|
|
190
|
+
style: Record<string, string | number>;
|
|
191
|
+
disabled: boolean;
|
|
192
|
+
defaultValue: string;
|
|
193
|
+
modelValue: string;
|
|
194
|
+
clearable: boolean;
|
|
195
|
+
readonly: boolean;
|
|
196
|
+
autoFocus: boolean;
|
|
197
|
+
_shakeTrigger: number;
|
|
198
|
+
tokens: Record<string, MaskToken>;
|
|
199
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
200
|
+
|
|
201
|
+
export { MaskInput, type VueMaskInputProps, MaskInput as default };
|