@expcat/tigercat-vue 2.0.19 → 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-EDBMWZKH.mjs → chunk-TPESRDUG.mjs} +5 -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 +3 -3
- package/dist/components/ActivityFeed.mjs +1 -1
- package/dist/components/Affix.d.mts +4 -4
- package/dist/components/Alert.d.mts +4 -4
- package/dist/components/Anchor.d.mts +3 -3
- 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/AutoComplete.d.mts +2 -2
- package/dist/components/Avatar.d.mts +1 -1
- package/dist/components/AvatarGroup.d.mts +1 -1
- package/dist/components/BackTop.d.mts +1 -1
- package/dist/components/Badge.d.mts +2 -2
- package/dist/components/BarChart.mjs +2 -2
- package/dist/components/Breadcrumb.d.mts +2 -2
- package/dist/components/Button.d.mts +2 -2
- package/dist/components/ButtonGroup.d.mts +1 -1
- package/dist/components/Calendar.d.mts +1 -1
- package/dist/components/Card.d.mts +2 -2
- package/dist/components/Carousel.d.mts +3 -3
- 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/ChartTooltip.d.mts +1 -1
- package/dist/components/ChatWindow.d.mts +1 -1
- package/dist/components/ChatWindow.mjs +1 -1
- package/dist/components/CodeEditor.d.mts +3 -3
- package/dist/components/CodeEditor.mjs +1 -1
- package/dist/components/CollapsePanel.d.mts +1 -1
- package/dist/components/ColorSwatch.d.mts +1 -1
- package/dist/components/CommentThread.d.mts +1 -1
- package/dist/components/ContextMenu.d.mts +234 -0
- package/dist/components/ContextMenu.mjs +17 -0
- package/dist/components/Countdown.d.mts +3 -3
- package/dist/components/CropUpload.d.mts +1 -1
- package/dist/components/DataExport.d.mts +1 -1
- package/dist/components/DataTableWithToolbar.d.mts +4 -4
- package/dist/components/DataTableWithToolbar.mjs +2 -2
- package/dist/components/DatePicker.d.mts +3 -3
- package/dist/components/Descriptions.d.mts +1 -1
- package/dist/components/DonutChart.mjs +3 -3
- package/dist/components/Drawer.d.mts +5 -5
- package/dist/components/Dropdown.d.mts +1 -1
- package/dist/components/Empty.d.mts +1 -1
- package/dist/components/FileManager.d.mts +1 -1
- package/dist/components/FloatButton.d.mts +4 -4
- package/dist/components/FormWizard.d.mts +2 -2
- package/dist/components/FunnelChart.d.mts +2 -2
- package/dist/components/FunnelChart.mjs +2 -2
- package/dist/components/Gantt.d.mts +1 -1
- package/dist/components/GaugeChart.d.mts +2 -2
- package/dist/components/Header.d.mts +1 -1
- package/dist/components/HeatmapChart.d.mts +1 -1
- package/dist/components/Highlight.d.mts +146 -0
- package/dist/components/Highlight.mjs +8 -0
- package/dist/components/Icon.d.mts +1 -1
- package/dist/components/ImageAnnotation.d.mts +3 -3
- package/dist/components/ImageCompare.d.mts +284 -0
- package/dist/components/ImageCompare.mjs +8 -0
- package/dist/components/ImageCropper.d.mts +1 -1
- package/dist/components/ImagePreview.d.mts +1 -1
- package/dist/components/ImageViewer.d.mts +1 -1
- package/dist/components/InfiniteScroll.d.mts +1 -1
- package/dist/components/Input.d.mts +4 -4
- package/dist/components/InputGroup.d.mts +1 -1
- package/dist/components/InputNumber.d.mts +3 -3
- package/dist/components/InputOTP.d.mts +261 -0
- package/dist/components/InputOTP.mjs +11 -0
- package/dist/components/Kanban.d.mts +1 -1
- 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 +3 -3
- package/dist/components/List.mjs +1 -1
- package/dist/components/Loading.d.mts +2 -2
- 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/MarkdownEditor.d.mts +5 -5
- 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/Mentions.d.mts +2 -2
- package/dist/components/Menu.d.mts +5 -5
- package/dist/components/Modal.d.mts +7 -7
- package/dist/components/NavigationMenu.d.mts +411 -0
- package/dist/components/NavigationMenu.mjs +25 -0
- package/dist/components/NotificationCenter.d.mts +3 -3
- package/dist/components/NotificationCenter.mjs +2 -2
- package/dist/components/NumberKeyboard.d.mts +3 -3
- package/dist/components/OrgChart.d.mts +2 -2
- package/dist/components/PageHeader.d.mts +140 -0
- package/dist/components/PageHeader.mjs +11 -0
- package/dist/components/Pagination.d.mts +2 -2
- package/dist/components/PieChart.mjs +2 -2
- package/dist/components/Popconfirm.d.mts +5 -5
- package/dist/components/Popover.d.mts +5 -5
- package/dist/components/Progress.d.mts +6 -6
- package/dist/components/QRCode.d.mts +1 -1
- package/dist/components/RadarChart.mjs +2 -2
- package/dist/components/Result.d.mts +1 -1
- package/dist/components/RichTextEditor.d.mts +4 -4
- package/dist/components/ScatterChart.d.mts +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/ScrollSpy.d.mts +3 -3
- package/dist/components/Segmented.d.mts +2 -2
- package/dist/components/Signature.d.mts +5 -5
- package/dist/components/Skeleton.d.mts +1 -1
- package/dist/components/Slider.d.mts +1 -1
- package/dist/components/SplitButton.d.mts +286 -0
- package/dist/components/SplitButton.mjs +12 -0
- package/dist/components/Splitter.d.mts +1 -1
- package/dist/components/Spotlight.d.mts +5 -5
- package/dist/components/Statistic.d.mts +1 -1
- package/dist/components/Steps.d.mts +3 -3
- package/dist/components/SunburstChart.mjs +2 -2
- package/dist/components/Tabs.d.mts +3 -3
- package/dist/components/Tag.d.mts +2 -2
- package/dist/components/TagsInput.d.mts +214 -0
- package/dist/components/TagsInput.mjs +12 -0
- package/dist/components/TaskBoard.d.mts +2 -2
- package/dist/components/Textarea.d.mts +1 -1
- package/dist/components/TimePicker.d.mts +3 -3
- package/dist/components/Timeline.d.mts +4 -4
- package/dist/components/Tooltip.d.mts +2 -2
- package/dist/components/Tour.d.mts +4 -4
- package/dist/components/Tree.d.mts +3 -3
- 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 +5 -5
- package/dist/components/VirtualTable.d.mts +3 -3
- package/dist/components/Watermark.d.mts +5 -5
- package/dist/index.d.mts +17 -1
- package/dist/index.mjs +355 -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
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import { ComponentSize, InputStatus, InputOTPType } from '@expcat/tigercat-core';
|
|
4
|
+
|
|
5
|
+
type VueInputOTPProps = InstanceType<typeof InputOTP>['$props'];
|
|
6
|
+
declare const InputOTP: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
7
|
+
/**
|
|
8
|
+
* Value (for v-model) — the joined characters
|
|
9
|
+
*/
|
|
10
|
+
modelValue: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: undefined;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Default value (for uncontrolled mode)
|
|
16
|
+
*/
|
|
17
|
+
defaultValue: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Input size
|
|
23
|
+
* @default 'md'
|
|
24
|
+
*/
|
|
25
|
+
size: {
|
|
26
|
+
type: PropType<ComponentSize>;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Validation status
|
|
31
|
+
* @default 'default'
|
|
32
|
+
*/
|
|
33
|
+
status: {
|
|
34
|
+
type: PropType<InputStatus>;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Error message to display
|
|
39
|
+
*/
|
|
40
|
+
errorMessage: StringConstructor;
|
|
41
|
+
/**
|
|
42
|
+
* Number of character slots
|
|
43
|
+
* @default 6
|
|
44
|
+
*/
|
|
45
|
+
length: {
|
|
46
|
+
type: NumberConstructor;
|
|
47
|
+
default: number;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Allowed character set
|
|
51
|
+
* @default 'numeric'
|
|
52
|
+
*/
|
|
53
|
+
type: {
|
|
54
|
+
type: PropType<InputOTPType>;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Per-character validation regex; overrides `type` filtering
|
|
59
|
+
*/
|
|
60
|
+
pattern: {
|
|
61
|
+
type: PropType<RegExp>;
|
|
62
|
+
default: undefined;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Hide entered characters (renders maskChar instead)
|
|
66
|
+
*/
|
|
67
|
+
masked: BooleanConstructor;
|
|
68
|
+
/**
|
|
69
|
+
* Character shown per filled slot when masked
|
|
70
|
+
* @default '•'
|
|
71
|
+
*/
|
|
72
|
+
maskChar: {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
default: string;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Visual slot grouping, e.g. [3, 3]
|
|
78
|
+
*/
|
|
79
|
+
groups: {
|
|
80
|
+
type: PropType<number[]>;
|
|
81
|
+
default: undefined;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Separator rendered between groups
|
|
85
|
+
* @default '-'
|
|
86
|
+
*/
|
|
87
|
+
separator: {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
default: string;
|
|
90
|
+
};
|
|
91
|
+
/** Whether the input is disabled */
|
|
92
|
+
disabled: BooleanConstructor;
|
|
93
|
+
/** Whether the input is readonly */
|
|
94
|
+
readonly: BooleanConstructor;
|
|
95
|
+
/** Whether to autofocus the first empty slot on mount */
|
|
96
|
+
autoFocus: BooleanConstructor;
|
|
97
|
+
/** Name for the hidden input carrying the joined value */
|
|
98
|
+
name: StringConstructor;
|
|
99
|
+
/** Id attribute applied to the group element */
|
|
100
|
+
id: StringConstructor;
|
|
101
|
+
/** Accessible label for the slot group */
|
|
102
|
+
ariaLabel: StringConstructor;
|
|
103
|
+
/**
|
|
104
|
+
* Internal shake trigger counter (used by FormItem)
|
|
105
|
+
* @internal
|
|
106
|
+
*/
|
|
107
|
+
_shakeTrigger: {
|
|
108
|
+
type: NumberConstructor;
|
|
109
|
+
default: undefined;
|
|
110
|
+
};
|
|
111
|
+
/** Additional CSS classes */
|
|
112
|
+
className: StringConstructor;
|
|
113
|
+
/** Inline styles */
|
|
114
|
+
style: {
|
|
115
|
+
type: PropType<Record<string, string | number>>;
|
|
116
|
+
default: undefined;
|
|
117
|
+
};
|
|
118
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
119
|
+
[key: string]: any;
|
|
120
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
121
|
+
'update:modelValue': null;
|
|
122
|
+
complete: null;
|
|
123
|
+
focus: null;
|
|
124
|
+
blur: null;
|
|
125
|
+
}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
126
|
+
/**
|
|
127
|
+
* Value (for v-model) — the joined characters
|
|
128
|
+
*/
|
|
129
|
+
modelValue: {
|
|
130
|
+
type: StringConstructor;
|
|
131
|
+
default: undefined;
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Default value (for uncontrolled mode)
|
|
135
|
+
*/
|
|
136
|
+
defaultValue: {
|
|
137
|
+
type: StringConstructor;
|
|
138
|
+
default: string;
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* Input size
|
|
142
|
+
* @default 'md'
|
|
143
|
+
*/
|
|
144
|
+
size: {
|
|
145
|
+
type: PropType<ComponentSize>;
|
|
146
|
+
default: string;
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* Validation status
|
|
150
|
+
* @default 'default'
|
|
151
|
+
*/
|
|
152
|
+
status: {
|
|
153
|
+
type: PropType<InputStatus>;
|
|
154
|
+
default: string;
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* Error message to display
|
|
158
|
+
*/
|
|
159
|
+
errorMessage: StringConstructor;
|
|
160
|
+
/**
|
|
161
|
+
* Number of character slots
|
|
162
|
+
* @default 6
|
|
163
|
+
*/
|
|
164
|
+
length: {
|
|
165
|
+
type: NumberConstructor;
|
|
166
|
+
default: number;
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* Allowed character set
|
|
170
|
+
* @default 'numeric'
|
|
171
|
+
*/
|
|
172
|
+
type: {
|
|
173
|
+
type: PropType<InputOTPType>;
|
|
174
|
+
default: string;
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* Per-character validation regex; overrides `type` filtering
|
|
178
|
+
*/
|
|
179
|
+
pattern: {
|
|
180
|
+
type: PropType<RegExp>;
|
|
181
|
+
default: undefined;
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* Hide entered characters (renders maskChar instead)
|
|
185
|
+
*/
|
|
186
|
+
masked: BooleanConstructor;
|
|
187
|
+
/**
|
|
188
|
+
* Character shown per filled slot when masked
|
|
189
|
+
* @default '•'
|
|
190
|
+
*/
|
|
191
|
+
maskChar: {
|
|
192
|
+
type: StringConstructor;
|
|
193
|
+
default: string;
|
|
194
|
+
};
|
|
195
|
+
/**
|
|
196
|
+
* Visual slot grouping, e.g. [3, 3]
|
|
197
|
+
*/
|
|
198
|
+
groups: {
|
|
199
|
+
type: PropType<number[]>;
|
|
200
|
+
default: undefined;
|
|
201
|
+
};
|
|
202
|
+
/**
|
|
203
|
+
* Separator rendered between groups
|
|
204
|
+
* @default '-'
|
|
205
|
+
*/
|
|
206
|
+
separator: {
|
|
207
|
+
type: StringConstructor;
|
|
208
|
+
default: string;
|
|
209
|
+
};
|
|
210
|
+
/** Whether the input is disabled */
|
|
211
|
+
disabled: BooleanConstructor;
|
|
212
|
+
/** Whether the input is readonly */
|
|
213
|
+
readonly: BooleanConstructor;
|
|
214
|
+
/** Whether to autofocus the first empty slot on mount */
|
|
215
|
+
autoFocus: BooleanConstructor;
|
|
216
|
+
/** Name for the hidden input carrying the joined value */
|
|
217
|
+
name: StringConstructor;
|
|
218
|
+
/** Id attribute applied to the group element */
|
|
219
|
+
id: StringConstructor;
|
|
220
|
+
/** Accessible label for the slot group */
|
|
221
|
+
ariaLabel: StringConstructor;
|
|
222
|
+
/**
|
|
223
|
+
* Internal shake trigger counter (used by FormItem)
|
|
224
|
+
* @internal
|
|
225
|
+
*/
|
|
226
|
+
_shakeTrigger: {
|
|
227
|
+
type: NumberConstructor;
|
|
228
|
+
default: undefined;
|
|
229
|
+
};
|
|
230
|
+
/** Additional CSS classes */
|
|
231
|
+
className: StringConstructor;
|
|
232
|
+
/** Inline styles */
|
|
233
|
+
style: {
|
|
234
|
+
type: PropType<Record<string, string | number>>;
|
|
235
|
+
default: undefined;
|
|
236
|
+
};
|
|
237
|
+
}>> & Readonly<{
|
|
238
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
239
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
240
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
241
|
+
onComplete?: ((...args: any[]) => any) | undefined;
|
|
242
|
+
}>, {
|
|
243
|
+
status: InputStatus;
|
|
244
|
+
length: number;
|
|
245
|
+
type: InputOTPType;
|
|
246
|
+
size: ComponentSize;
|
|
247
|
+
style: Record<string, string | number>;
|
|
248
|
+
disabled: boolean;
|
|
249
|
+
pattern: RegExp;
|
|
250
|
+
defaultValue: string;
|
|
251
|
+
modelValue: string;
|
|
252
|
+
separator: string;
|
|
253
|
+
readonly: boolean;
|
|
254
|
+
masked: boolean;
|
|
255
|
+
autoFocus: boolean;
|
|
256
|
+
maskChar: string;
|
|
257
|
+
groups: number[];
|
|
258
|
+
_shakeTrigger: number;
|
|
259
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
260
|
+
|
|
261
|
+
export { InputOTP, type VueInputOTPProps, InputOTP as default };
|
|
@@ -177,9 +177,9 @@ declare const Kanban: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
177
177
|
"onColumn-add"?: ((...args: any[]) => any) | undefined;
|
|
178
178
|
"onUpdate:columns"?: ((...args: any[]) => any) | undefined;
|
|
179
179
|
}>, {
|
|
180
|
+
locale: Partial<TigerLocale>;
|
|
180
181
|
className: string;
|
|
181
182
|
style: Record<string, string | number>;
|
|
182
|
-
locale: Partial<TigerLocale>;
|
|
183
183
|
columns: TaskBoardColumn[];
|
|
184
184
|
columnDraggable: boolean;
|
|
185
185
|
draggable: boolean;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import { KbdSize, KbdVariant } from '@expcat/tigercat-core';
|
|
4
|
+
|
|
5
|
+
interface VueKbdProps {
|
|
6
|
+
keys?: string | string[];
|
|
7
|
+
separator?: string;
|
|
8
|
+
size?: KbdSize;
|
|
9
|
+
variant?: KbdVariant;
|
|
10
|
+
className?: string;
|
|
11
|
+
style?: Record<string, unknown>;
|
|
12
|
+
}
|
|
13
|
+
declare const Kbd: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
14
|
+
/**
|
|
15
|
+
* One key or a combo list. A string is a single key; an array is joined
|
|
16
|
+
* with `separator`. Combine with the default slot to append a final key.
|
|
17
|
+
*/
|
|
18
|
+
keys: {
|
|
19
|
+
type: PropType<string | string[]>;
|
|
20
|
+
default: undefined;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Separator between combo keys
|
|
24
|
+
* @default '+'
|
|
25
|
+
*/
|
|
26
|
+
separator: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: undefined;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Visual size
|
|
32
|
+
* @default 'md'
|
|
33
|
+
*/
|
|
34
|
+
size: {
|
|
35
|
+
type: PropType<KbdSize>;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Visual variant. `default` reuses Tag default chrome; `subtle` is quieter.
|
|
40
|
+
* @default 'default'
|
|
41
|
+
*/
|
|
42
|
+
variant: {
|
|
43
|
+
type: PropType<KbdVariant>;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Additional CSS classes
|
|
48
|
+
*/
|
|
49
|
+
className: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
default: undefined;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Inline styles
|
|
55
|
+
*/
|
|
56
|
+
style: {
|
|
57
|
+
type: PropType<Record<string, unknown>>;
|
|
58
|
+
default: undefined;
|
|
59
|
+
};
|
|
60
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
61
|
+
[key: string]: any;
|
|
62
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
63
|
+
/**
|
|
64
|
+
* One key or a combo list. A string is a single key; an array is joined
|
|
65
|
+
* with `separator`. Combine with the default slot to append a final key.
|
|
66
|
+
*/
|
|
67
|
+
keys: {
|
|
68
|
+
type: PropType<string | string[]>;
|
|
69
|
+
default: undefined;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Separator between combo keys
|
|
73
|
+
* @default '+'
|
|
74
|
+
*/
|
|
75
|
+
separator: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
default: undefined;
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Visual size
|
|
81
|
+
* @default 'md'
|
|
82
|
+
*/
|
|
83
|
+
size: {
|
|
84
|
+
type: PropType<KbdSize>;
|
|
85
|
+
default: string;
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* Visual variant. `default` reuses Tag default chrome; `subtle` is quieter.
|
|
89
|
+
* @default 'default'
|
|
90
|
+
*/
|
|
91
|
+
variant: {
|
|
92
|
+
type: PropType<KbdVariant>;
|
|
93
|
+
default: string;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* Additional CSS classes
|
|
97
|
+
*/
|
|
98
|
+
className: {
|
|
99
|
+
type: StringConstructor;
|
|
100
|
+
default: undefined;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* Inline styles
|
|
104
|
+
*/
|
|
105
|
+
style: {
|
|
106
|
+
type: PropType<Record<string, unknown>>;
|
|
107
|
+
default: undefined;
|
|
108
|
+
};
|
|
109
|
+
}>> & Readonly<{}>, {
|
|
110
|
+
keys: string | string[];
|
|
111
|
+
size: KbdSize;
|
|
112
|
+
className: string;
|
|
113
|
+
style: Record<string, unknown>;
|
|
114
|
+
variant: KbdVariant;
|
|
115
|
+
separator: string;
|
|
116
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
117
|
+
|
|
118
|
+
export { Kbd, type VueKbdProps, Kbd as default };
|
|
@@ -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
|
|
@@ -295,16 +295,16 @@ declare const List: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
295
295
|
"onItem-click"?: ((...args: any[]) => any) | undefined;
|
|
296
296
|
onReorder?: ((...args: any[]) => any) | undefined;
|
|
297
297
|
}>, {
|
|
298
|
-
className: string;
|
|
299
|
-
style: Record<string, string | number>;
|
|
300
298
|
locale: Partial<TigerLocale>;
|
|
301
299
|
pagination: false | ListPaginationConfig;
|
|
302
300
|
emptyText: string;
|
|
303
301
|
size: ComponentSize;
|
|
302
|
+
className: string;
|
|
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
|
@@ -115,10 +115,10 @@ declare const Loading: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
115
115
|
default: undefined;
|
|
116
116
|
};
|
|
117
117
|
}>> & Readonly<{}>, {
|
|
118
|
-
className: string;
|
|
119
|
-
style: Record<string, string | number>;
|
|
120
118
|
locale: Partial<TigerLocale>;
|
|
121
119
|
size: LoadingSize;
|
|
120
|
+
className: string;
|
|
121
|
+
style: Record<string, string | number>;
|
|
122
122
|
variant: LoadingVariant;
|
|
123
123
|
text: string;
|
|
124
124
|
color: LoadingColor;
|
|
@@ -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 };
|