@expcat/tigercat-vue 2.0.0-preview.1 → 2.0.0-preview.3
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/{chunk-Z7QUWBFR.mjs → chunk-22NIOTDQ.mjs} +1 -1
- package/dist/{chunk-QD5ZCKPR.mjs → chunk-2XCXK3NQ.mjs} +1 -1
- package/dist/{chunk-KRWKO2JQ.mjs → chunk-342DH5CF.mjs} +1 -1
- package/dist/{chunk-JCGWN7WV.mjs → chunk-36TZA5BH.mjs} +1 -1
- package/dist/{chunk-NYWIBDO6.mjs → chunk-3KITFMBJ.mjs} +1 -1
- package/dist/{chunk-B47QLHVW.mjs → chunk-3NQUEQJT.mjs} +4 -4
- package/dist/{chunk-W7X5ZHJ3.mjs → chunk-3WQIYF4T.mjs} +4 -4
- package/dist/{chunk-YSKG5FSX.mjs → chunk-42P6ZQ3J.mjs} +1 -1
- package/dist/{chunk-V5ZEPAWV.mjs → chunk-4BO6JNA6.mjs} +1 -1
- package/dist/{chunk-GL63FRI4.mjs → chunk-4SLYX5GK.mjs} +1 -1
- package/dist/{chunk-Z4SG7REU.mjs → chunk-5E4LINDO.mjs} +5 -3
- package/dist/{chunk-FHJ3R57L.mjs → chunk-5KPO3EDM.mjs} +5 -2
- package/dist/{chunk-CF4GX6BD.mjs → chunk-5RIHHZF6.mjs} +12 -4
- package/dist/{chunk-6FV2OMB7.mjs → chunk-6LORRRRB.mjs} +1 -1
- package/dist/{chunk-CW5TEG7N.mjs → chunk-7CPMXNLK.mjs} +1 -1
- package/dist/{chunk-EQDCFOWR.mjs → chunk-7FWNN6PO.mjs} +75 -22
- package/dist/{chunk-4IZUJJUO.mjs → chunk-7JT5ZIHC.mjs} +1 -1
- package/dist/{chunk-6G5FEZLT.mjs → chunk-7XENCCN5.mjs} +3 -3
- package/dist/{chunk-KR3D2JOA.mjs → chunk-AWCXUDIL.mjs} +3 -3
- package/dist/{chunk-GTFAC625.mjs → chunk-BGGHSTMP.mjs} +1 -1
- package/dist/{chunk-DOVBKVTB.mjs → chunk-CFH5T3V2.mjs} +3 -3
- package/dist/{chunk-IQNZ4UEA.mjs → chunk-D4APFWWS.mjs} +1 -1
- package/dist/{chunk-7LCUVR63.mjs → chunk-DCMRB3HR.mjs} +15 -4
- package/dist/{chunk-WYJ5WOT2.mjs → chunk-DWK5GUMB.mjs} +9 -3
- package/dist/{chunk-EVIZXEB2.mjs → chunk-E6EZHSGY.mjs} +1 -1
- package/dist/{chunk-2YPPXZ4I.mjs → chunk-EGIMTTZA.mjs} +1 -1
- package/dist/{chunk-4ZKSTL5P.mjs → chunk-EGIQPUEL.mjs} +1 -1
- package/dist/{chunk-UQK22ZMC.mjs → chunk-EWUHEW6W.mjs} +75 -22
- package/dist/{chunk-VFUBOKGT.mjs → chunk-F2IWAV3T.mjs} +1 -1
- package/dist/{chunk-HIXWZVE5.mjs → chunk-FSJRNEZK.mjs} +23 -8
- package/dist/{chunk-MJRFB6ZA.mjs → chunk-GDK5LNP3.mjs} +7 -7
- package/dist/{chunk-Z4NJJ7NI.mjs → chunk-GWFVBG22.mjs} +5 -2
- package/dist/{chunk-GMIKUE67.mjs → chunk-H2SX7D23.mjs} +1 -1
- package/dist/{chunk-FAQL7HFW.mjs → chunk-HAUG3OP5.mjs} +1 -1
- package/dist/{chunk-ODDPVS27.mjs → chunk-IDUEWMWN.mjs} +1 -1
- package/dist/{chunk-GAEO66NY.mjs → chunk-IMFHJEUX.mjs} +1 -1
- package/dist/{chunk-GZWZP5AL.mjs → chunk-JHFM6IFO.mjs} +28 -6
- package/dist/{chunk-V5ANPH5R.mjs → chunk-JL3CN4UK.mjs} +1 -1
- package/dist/{chunk-RTZUIWCN.mjs → chunk-JQSIWPNM.mjs} +1 -1
- package/dist/{chunk-RAO7ZJWR.mjs → chunk-JVQPU4M2.mjs} +5 -2
- package/dist/{chunk-BGO2ILHM.mjs → chunk-JZCETBUV.mjs} +16 -3
- package/dist/{chunk-G7MOTNJO.mjs → chunk-KFJIZED5.mjs} +1 -1
- package/dist/{chunk-YJSWHGAR.mjs → chunk-LFENEILY.mjs} +9 -3
- package/dist/{chunk-JMVALNIO.mjs → chunk-LOC5B4YM.mjs} +17 -14
- package/dist/{chunk-36WSYHJU.mjs → chunk-LPZBXTJ6.mjs} +1 -1
- package/dist/{chunk-O4F75KHL.mjs → chunk-MAKOSWR6.mjs} +1 -1
- package/dist/{chunk-FDKJOVXG.mjs → chunk-MNSVJBNH.mjs} +1 -1
- package/dist/{chunk-E7NE5HEC.mjs → chunk-NEEGXKJW.mjs} +1 -1
- package/dist/{chunk-JPCMI3A4.mjs → chunk-NGAA73CV.mjs} +1 -1
- package/dist/{chunk-AZXS4QWC.mjs → chunk-NNC75I7F.mjs} +1 -1
- package/dist/{chunk-6WF3336O.mjs → chunk-O6BN5R6J.mjs} +1 -1
- package/dist/{chunk-YZATP4VF.mjs → chunk-OHPXOLNB.mjs} +12 -3
- package/dist/{chunk-WBT3WSRE.mjs → chunk-OHR7IUBQ.mjs} +14 -2
- package/dist/chunk-P2LZ2MR5.mjs +6 -0
- package/dist/{chunk-7BU4TW5A.mjs → chunk-P5FDKBXG.mjs} +1 -1
- package/dist/{chunk-2QWGVJW6.mjs → chunk-PQBKN2NH.mjs} +24 -10
- package/dist/{chunk-LOX2KCML.mjs → chunk-PYRKFQ6J.mjs} +3 -3
- package/dist/{chunk-BJV62I73.mjs → chunk-QFG452MD.mjs} +2 -2
- package/dist/{chunk-E2GQSWHK.mjs → chunk-QMECRLHW.mjs} +21 -2
- package/dist/{chunk-UD4FNMJN.mjs → chunk-RANRYFUI.mjs} +23 -6
- package/dist/{chunk-FT2HWF7P.mjs → chunk-RSM6FOWX.mjs} +1 -1
- package/dist/{chunk-GHG2MCLM.mjs → chunk-SJ7W5I5H.mjs} +1 -1
- package/dist/{chunk-WLHOWOAY.mjs → chunk-SJINC5NF.mjs} +1 -1
- package/dist/{chunk-PLUABMUD.mjs → chunk-SWCK7TM7.mjs} +1 -1
- package/dist/chunk-TGXBCKOU.mjs +35 -0
- package/dist/{chunk-EYR27UIE.mjs → chunk-U6OGGZBY.mjs} +25 -2
- package/dist/{chunk-DMQLA35L.mjs → chunk-U75YXWSA.mjs} +1 -1
- package/dist/{chunk-R6WFL6NI.mjs → chunk-UOJOJBEU.mjs} +18 -0
- package/dist/{chunk-IGT4QB7O.mjs → chunk-UUWTKCMY.mjs} +1 -1
- package/dist/{chunk-HLPSHCXO.mjs → chunk-V443QIJM.mjs} +5 -1
- package/dist/{chunk-TM73IWEY.mjs → chunk-XH63C62K.mjs} +1 -1
- package/dist/{chunk-DZFM7H3M.mjs → chunk-XLNK3Z2P.mjs} +26 -5
- package/dist/{chunk-4QCJUILG.mjs → chunk-ZFJNCAZX.mjs} +5 -2
- package/dist/{chunk-XZYFVOOS.mjs → chunk-ZFTRR3KW.mjs} +1 -1
- package/dist/components/ActivityFeed.mjs +8 -7
- package/dist/components/AreaChart.d.mts +21 -2
- package/dist/components/AreaChart.mjs +2 -2
- package/dist/components/AutoComplete.d.mts +1 -1
- package/dist/components/AutoComplete.mjs +3 -2
- package/dist/components/Avatar.mjs +4 -2
- package/dist/components/AvatarGroup.d.mts +25 -1
- package/dist/components/AvatarGroup.mjs +3 -1
- package/dist/components/Badge.mjs +3 -2
- package/dist/components/BarChart.d.mts +21 -2
- package/dist/components/BarChart.mjs +2 -2
- package/dist/components/Calendar.mjs +3 -2
- package/dist/components/Carousel.d.mts +21 -1
- package/dist/components/Carousel.mjs +3 -1
- package/dist/components/Cascader.d.mts +1 -1
- package/dist/components/Cascader.mjs +3 -2
- package/dist/components/ChartLegend.d.mts +10 -0
- package/dist/components/ChartLegend.mjs +1 -1
- package/dist/components/ChatWindow.d.mts +1 -1
- package/dist/components/ChatWindow.mjs +8 -6
- package/dist/components/CodeEditor.d.mts +1 -1
- package/dist/components/ColorPicker.mjs +1 -1
- package/dist/components/CommentThread.mjs +6 -5
- package/dist/components/ConfigProvider.mjs +2 -1
- package/dist/components/CronEditor.d.mts +23 -5
- package/dist/components/CronEditor.mjs +3 -1
- package/dist/components/CropUpload.mjs +5 -4
- package/dist/components/DataTableWithToolbar.mjs +8 -6
- package/dist/components/DatePicker.d.mts +1 -1
- package/dist/components/DatePicker.mjs +3 -2
- package/dist/components/DonutChart.mjs +3 -3
- package/dist/components/Drawer.mjs +3 -2
- package/dist/components/Empty.mjs +3 -2
- package/dist/components/FileManager.mjs +3 -2
- package/dist/components/Form.mjs +3 -2
- package/dist/components/FormItem.mjs +5 -3
- package/dist/components/FormItemContext.d.mts +11 -0
- package/dist/components/FormItemContext.mjs +6 -0
- package/dist/components/FormWizard.mjs +3 -2
- package/dist/components/FunnelChart.mjs +2 -2
- package/dist/components/Image.mjs +4 -3
- package/dist/components/ImageAnnotation.mjs +3 -2
- package/dist/components/ImageCropper.mjs +3 -2
- package/dist/components/ImageGroup.mjs +4 -3
- package/dist/components/ImagePreview.mjs +3 -2
- package/dist/components/ImageViewer.mjs +3 -2
- package/dist/components/InfiniteScroll.mjs +3 -2
- package/dist/components/Input.d.mts +1 -1
- package/dist/components/Input.mjs +2 -1
- package/dist/components/InputNumber.d.mts +20 -0
- package/dist/components/InputNumber.mjs +1 -1
- package/dist/components/Kanban.mjs +4 -3
- package/dist/components/LineChart.d.mts +21 -2
- package/dist/components/LineChart.mjs +2 -2
- package/dist/components/List.mjs +3 -2
- package/dist/components/Loading.mjs +3 -2
- package/dist/components/MarkdownEditor.d.mts +22 -2
- package/dist/components/MarkdownEditor.mjs +3 -1
- package/dist/components/Mentions.d.mts +1 -1
- package/dist/components/Menu.d.mts +1 -1
- package/dist/components/Message.mjs +14 -1
- package/dist/components/MessageContainer.mjs +1 -1
- package/dist/components/MessageRoot.mjs +1 -1
- package/dist/components/Modal.mjs +3 -2
- package/dist/components/Notification.mjs +14 -1
- package/dist/components/NotificationCenter.mjs +6 -5
- package/dist/components/NotificationContainer.mjs +1 -1
- package/dist/components/NotificationRoot.mjs +1 -1
- package/dist/components/NumberKeyboard.mjs +3 -2
- package/dist/components/Pagination.mjs +3 -2
- package/dist/components/PieChart.mjs +2 -2
- package/dist/components/PrintLayout.mjs +1 -1
- package/dist/components/QRCode.mjs +3 -2
- package/dist/components/RadarChart.mjs +2 -2
- package/dist/components/Rate.d.mts +19 -1
- package/dist/components/Rate.mjs +3 -1
- package/dist/components/RichTextEditor.d.mts +22 -2
- package/dist/components/RichTextEditor.mjs +3 -1
- package/dist/components/ScatterChart.d.mts +30 -1
- package/dist/components/ScatterChart.mjs +4 -2
- package/dist/components/Select.d.mts +18 -2
- package/dist/components/Select.mjs +3 -2
- package/dist/components/Signature.mjs +3 -2
- package/dist/components/Spotlight.d.mts +1 -1
- package/dist/components/Spotlight.mjs +3 -2
- package/dist/components/Stepper.d.mts +18 -0
- package/dist/components/Stepper.mjs +1 -1
- package/dist/components/SunburstChart.mjs +2 -2
- package/dist/components/Table.mjs +5 -4
- package/dist/components/Tabs.d.mts +20 -1
- package/dist/components/Tabs.mjs +3 -1
- package/dist/components/Tag.mjs +3 -2
- package/dist/components/TaskBoard.mjs +3 -2
- package/dist/components/Textarea.d.mts +1 -1
- package/dist/components/TimePicker.d.mts +1 -1
- package/dist/components/TimePicker.mjs +3 -2
- package/dist/components/Timeline.mjs +3 -2
- package/dist/components/Tour.mjs +3 -2
- package/dist/components/Transfer.d.mts +16 -7
- package/dist/components/Transfer.mjs +3 -2
- package/dist/components/Tree.mjs +3 -2
- package/dist/components/TreeMapChart.mjs +2 -2
- package/dist/components/TreeSelect.d.mts +1 -1
- package/dist/components/TreeSelect.mjs +3 -2
- package/dist/components/Upload.mjs +3 -2
- package/dist/components/VirtualTable.mjs +3 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +32 -0
- package/package.json +2 -2
- /package/dist/{chunk-4RKBXGHQ.mjs → chunk-GSB4MNEX.mjs} +0 -0
- /package/dist/{chunk-ESBUNMIG.mjs → chunk-Q3PELK37.mjs} +0 -0
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useTigerConfig
|
|
3
|
+
} from "./chunk-UOJOJBEU.mjs";
|
|
4
|
+
|
|
1
5
|
// src/components/Tabs.ts
|
|
2
6
|
import {
|
|
3
7
|
defineComponent,
|
|
@@ -26,6 +30,8 @@ import {
|
|
|
26
30
|
resolveSwipeGesture,
|
|
27
31
|
isKeyActive,
|
|
28
32
|
getNextActiveKey,
|
|
33
|
+
mergeTigerLocale,
|
|
34
|
+
getTabsLabels,
|
|
29
35
|
tabAddButtonClasses,
|
|
30
36
|
tabCloseButtonClasses,
|
|
31
37
|
tabContentBaseClasses
|
|
@@ -216,7 +222,10 @@ var TabPane = defineComponent({
|
|
|
216
222
|
{
|
|
217
223
|
type: "button",
|
|
218
224
|
class: tabCloseButtonClasses,
|
|
219
|
-
"aria-label":
|
|
225
|
+
"aria-label": tabsContext.labels.closeTabAriaLabel.replace(
|
|
226
|
+
"{label}",
|
|
227
|
+
String(props.label)
|
|
228
|
+
),
|
|
220
229
|
tabindex: -1,
|
|
221
230
|
onClick: handleClose
|
|
222
231
|
},
|
|
@@ -353,12 +362,23 @@ var Tabs = defineComponent({
|
|
|
353
362
|
style: {
|
|
354
363
|
type: Object,
|
|
355
364
|
default: void 0
|
|
365
|
+
},
|
|
366
|
+
locale: {
|
|
367
|
+
type: Object,
|
|
368
|
+
default: void 0
|
|
369
|
+
},
|
|
370
|
+
labels: {
|
|
371
|
+
type: Object,
|
|
372
|
+
default: void 0
|
|
356
373
|
}
|
|
357
374
|
},
|
|
358
375
|
emits: ["update:activeKey", "change", "edit", "tab-click"],
|
|
359
376
|
setup(props, { slots, emit }) {
|
|
377
|
+
const config = useTigerConfig();
|
|
360
378
|
const instance = getCurrentInstance();
|
|
361
379
|
const idBase = `tiger-tabs-${instance?.uid ?? "0"}`;
|
|
380
|
+
const mergedLocale = computed(() => mergeTigerLocale(config.value.locale, props.locale));
|
|
381
|
+
const labels = computed(() => getTabsLabels(mergedLocale.value, props.labels));
|
|
362
382
|
const internalActiveKey = ref(props.defaultActiveKey);
|
|
363
383
|
const swipeStart = ref(null);
|
|
364
384
|
let lastTabKeys = [];
|
|
@@ -439,6 +459,9 @@ var Tabs = defineComponent({
|
|
|
439
459
|
return props.swipeable;
|
|
440
460
|
},
|
|
441
461
|
idBase,
|
|
462
|
+
get labels() {
|
|
463
|
+
return labels.value;
|
|
464
|
+
},
|
|
442
465
|
handleTabClick,
|
|
443
466
|
handleTabClose
|
|
444
467
|
});
|
|
@@ -533,7 +556,7 @@ var Tabs = defineComponent({
|
|
|
533
556
|
type: "button",
|
|
534
557
|
class: tabAddButtonClasses,
|
|
535
558
|
onClick: () => emit("edit", { targetKey: void 0, action: "add" }),
|
|
536
|
-
"aria-label":
|
|
559
|
+
"aria-label": labels.value.addTabAriaLabel
|
|
537
560
|
},
|
|
538
561
|
"+"
|
|
539
562
|
) : null
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createGlobalTigerLocaleHandle
|
|
3
|
+
} from "./chunk-TGXBCKOU.mjs";
|
|
4
|
+
|
|
1
5
|
// src/components/ConfigProvider.ts
|
|
2
6
|
import {
|
|
3
7
|
defineComponent,
|
|
@@ -47,6 +51,7 @@ var ConfigProvider = defineComponent({
|
|
|
47
51
|
props: configProviderProps,
|
|
48
52
|
setup(props, { slots }) {
|
|
49
53
|
const parent = useTigerConfig();
|
|
54
|
+
let globalLocaleHandle = null;
|
|
50
55
|
const resolvedLocale = ref(
|
|
51
56
|
isLazyTigerLocale(props.locale) ? void 0 : getImmediateTigerLocale(props.locale)
|
|
52
57
|
);
|
|
@@ -101,6 +106,17 @@ var ConfigProvider = defineComponent({
|
|
|
101
106
|
},
|
|
102
107
|
{ immediate: true }
|
|
103
108
|
);
|
|
109
|
+
watch(
|
|
110
|
+
() => merged.value.locale,
|
|
111
|
+
(locale) => {
|
|
112
|
+
if (!globalLocaleHandle) {
|
|
113
|
+
globalLocaleHandle = createGlobalTigerLocaleHandle(locale);
|
|
114
|
+
} else {
|
|
115
|
+
globalLocaleHandle.update(locale);
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
{ immediate: true }
|
|
119
|
+
);
|
|
104
120
|
let previousDir = null;
|
|
105
121
|
let previousDataDir = null;
|
|
106
122
|
watch(
|
|
@@ -118,6 +134,8 @@ var ConfigProvider = defineComponent({
|
|
|
118
134
|
{ immediate: true }
|
|
119
135
|
);
|
|
120
136
|
onBeforeUnmount(() => {
|
|
137
|
+
globalLocaleHandle?.dispose();
|
|
138
|
+
globalLocaleHandle = null;
|
|
121
139
|
if (!isBrowser()) return;
|
|
122
140
|
const root = document.documentElement;
|
|
123
141
|
if (previousDir === null) root.removeAttribute("dir");
|
|
@@ -24,6 +24,10 @@ var ChartLegend = defineComponent({
|
|
|
24
24
|
type: Boolean,
|
|
25
25
|
default: false
|
|
26
26
|
},
|
|
27
|
+
ariaLabel: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: "Chart legend"
|
|
30
|
+
},
|
|
27
31
|
className: {
|
|
28
32
|
type: String
|
|
29
33
|
}
|
|
@@ -60,7 +64,7 @@ var ChartLegend = defineComponent({
|
|
|
60
64
|
// A group of toggle buttons is not a "list"; only use list semantics
|
|
61
65
|
// for the static (non-interactive) legend.
|
|
62
66
|
role: props.interactive ? "group" : "list",
|
|
63
|
-
"aria-label":
|
|
67
|
+
"aria-label": props.ariaLabel,
|
|
64
68
|
"data-chart-legend": "true"
|
|
65
69
|
},
|
|
66
70
|
props.items.map(
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FORM_ITEM_CONTROL_INJECTION_KEY
|
|
3
|
+
} from "./chunk-P2LZ2MR5.mjs";
|
|
1
4
|
import {
|
|
2
5
|
INPUT_GROUP_INJECTION_KEY
|
|
3
6
|
} from "./chunk-VIIGYWUY.mjs";
|
|
@@ -139,10 +142,26 @@ var Input = defineComponent({
|
|
|
139
142
|
injectShakeStyle();
|
|
140
143
|
const instance = getCurrentInstance();
|
|
141
144
|
const inputGroup = inject(INPUT_GROUP_INJECTION_KEY, null);
|
|
145
|
+
const formItemControl = inject(
|
|
146
|
+
FORM_ITEM_CONTROL_INJECTION_KEY,
|
|
147
|
+
null
|
|
148
|
+
);
|
|
142
149
|
const effectiveSize = computed(() => {
|
|
143
150
|
const hasOwnSize = Object.prototype.hasOwnProperty.call(instance?.vnode.props ?? {}, "size");
|
|
144
151
|
return hasOwnSize ? props.size : inputGroup?.size ?? props.size;
|
|
145
152
|
});
|
|
153
|
+
const hasOwnStatus = computed(
|
|
154
|
+
() => Object.prototype.hasOwnProperty.call(instance?.vnode.props ?? {}, "status")
|
|
155
|
+
);
|
|
156
|
+
const effectiveStatus = computed(
|
|
157
|
+
() => hasOwnStatus.value ? props.status : formItemControl?.status.value ?? props.status
|
|
158
|
+
);
|
|
159
|
+
const effectiveErrorMessage = computed(
|
|
160
|
+
() => props.errorMessage ?? formItemControl?.errorMessage.value
|
|
161
|
+
);
|
|
162
|
+
const effectiveShakeTrigger = computed(
|
|
163
|
+
() => props._shakeTrigger ?? formItemControl?.shakeTrigger.value
|
|
164
|
+
);
|
|
146
165
|
const inputRef = ref(null);
|
|
147
166
|
const wrapperRef = ref(null);
|
|
148
167
|
const localValue = ref(props.modelValue ?? "");
|
|
@@ -158,7 +177,7 @@ var Input = defineComponent({
|
|
|
158
177
|
}
|
|
159
178
|
}
|
|
160
179
|
);
|
|
161
|
-
watch([
|
|
180
|
+
watch([effectiveStatus, effectiveShakeTrigger], ([newStatus]) => {
|
|
162
181
|
if (newStatus === "error" && wrapperRef.value) {
|
|
163
182
|
const el = wrapperRef.value;
|
|
164
183
|
el.classList.remove(SHAKE_CLASS);
|
|
@@ -173,11 +192,13 @@ var Input = defineComponent({
|
|
|
173
192
|
const hasSuffix = computed(
|
|
174
193
|
() => !!slots.suffix || !!props.suffix || props.clearable || props.showPassword
|
|
175
194
|
);
|
|
176
|
-
const activeError = computed(
|
|
195
|
+
const activeError = computed(
|
|
196
|
+
() => effectiveStatus.value === "error" && !!effectiveErrorMessage.value
|
|
197
|
+
);
|
|
177
198
|
const inputClasses = computed(
|
|
178
199
|
() => getInputClasses({
|
|
179
200
|
size: effectiveSize.value,
|
|
180
|
-
status:
|
|
201
|
+
status: effectiveStatus.value,
|
|
181
202
|
hasPrefix: hasPrefix.value,
|
|
182
203
|
hasSuffix: hasSuffix.value
|
|
183
204
|
})
|
|
@@ -218,7 +239,7 @@ var Input = defineComponent({
|
|
|
218
239
|
h(
|
|
219
240
|
"div",
|
|
220
241
|
{ id: errorMsgId, class: getInputErrorClasses(effectiveSize.value) },
|
|
221
|
-
|
|
242
|
+
effectiveErrorMessage.value
|
|
222
243
|
)
|
|
223
244
|
);
|
|
224
245
|
} else {
|
|
@@ -284,7 +305,7 @@ var Input = defineComponent({
|
|
|
284
305
|
id: props.id,
|
|
285
306
|
autocomplete: props.autoComplete,
|
|
286
307
|
autofocus: props.autoFocus,
|
|
287
|
-
...
|
|
308
|
+
...effectiveStatus.value === "error" ? { "aria-invalid": true } : {},
|
|
288
309
|
...activeError.value ? { "aria-describedby": errorMsgId } : {},
|
|
289
310
|
onInput: handleInput,
|
|
290
311
|
onChange: handleChange,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-HS4YQGZQ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
useTigerConfig
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UOJOJBEU.mjs";
|
|
7
7
|
|
|
8
8
|
// src/components/Tree.ts
|
|
9
9
|
import { defineComponent, computed, ref, h, watch, nextTick } from "vue";
|
|
@@ -553,7 +553,10 @@ var Tree = defineComponent({
|
|
|
553
553
|
checked: isChecked,
|
|
554
554
|
indeterminate: isHalfChecked,
|
|
555
555
|
disabled: node.disabled,
|
|
556
|
-
"aria-label":
|
|
556
|
+
"aria-label": resolveLocaleText(
|
|
557
|
+
`Select ${node.label}`,
|
|
558
|
+
mergedLocale.value?.locale?.toLowerCase().startsWith("zh") ? `\u9009\u62E9${node.label}` : void 0
|
|
559
|
+
),
|
|
557
560
|
onClick: (e) => e.stopPropagation(),
|
|
558
561
|
onChange: (e) => {
|
|
559
562
|
const target = e.target;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ActivityFeed,
|
|
3
3
|
ActivityFeed_default
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-3NQUEQJT.mjs";
|
|
5
|
+
import "../chunk-JQSIWPNM.mjs";
|
|
6
6
|
import "../chunk-3MO7A4GU.mjs";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-O6BN5R6J.mjs";
|
|
8
8
|
import "../chunk-BDTPFPSB.mjs";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-342DH5CF.mjs";
|
|
10
10
|
import "../chunk-NN6AINLG.mjs";
|
|
11
11
|
import "../chunk-TC6ZPQFT.mjs";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-ZFTRR3KW.mjs";
|
|
13
|
+
import "../chunk-JHFM6IFO.mjs";
|
|
14
|
+
import "../chunk-UOJOJBEU.mjs";
|
|
15
|
+
import "../chunk-TGXBCKOU.mjs";
|
|
15
16
|
export {
|
|
16
17
|
ActivityFeed,
|
|
17
18
|
ActivityFeed_default as default
|
|
@@ -20,7 +20,16 @@ declare const AreaChart: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
20
20
|
};
|
|
21
21
|
padding: {
|
|
22
22
|
type: PropType<ChartPadding>;
|
|
23
|
-
default:
|
|
23
|
+
default: () => {
|
|
24
|
+
top: number;
|
|
25
|
+
right: number;
|
|
26
|
+
bottom: number;
|
|
27
|
+
left: number;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
responsive: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
24
33
|
};
|
|
25
34
|
data: {
|
|
26
35
|
type: PropType<LineChartDatum[]>;
|
|
@@ -214,7 +223,16 @@ declare const AreaChart: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
214
223
|
};
|
|
215
224
|
padding: {
|
|
216
225
|
type: PropType<ChartPadding>;
|
|
217
|
-
default:
|
|
226
|
+
default: () => {
|
|
227
|
+
top: number;
|
|
228
|
+
right: number;
|
|
229
|
+
bottom: number;
|
|
230
|
+
left: number;
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
responsive: {
|
|
234
|
+
type: BooleanConstructor;
|
|
235
|
+
default: boolean;
|
|
218
236
|
};
|
|
219
237
|
data: {
|
|
220
238
|
type: PropType<LineChartDatum[]>;
|
|
@@ -411,6 +429,7 @@ declare const AreaChart: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
411
429
|
strokeWidth: number;
|
|
412
430
|
fillOpacity: number;
|
|
413
431
|
selectable: boolean;
|
|
432
|
+
responsive: boolean;
|
|
414
433
|
xTicks: number;
|
|
415
434
|
yTicks: number;
|
|
416
435
|
showGrid: boolean;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AreaChart,
|
|
3
3
|
AreaChart_default
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-JVQPU4M2.mjs";
|
|
5
5
|
import "../chunk-PE5OA4YG.mjs";
|
|
6
6
|
import "../chunk-SPFL55TF.mjs";
|
|
7
7
|
import "../chunk-ZWVA7HT3.mjs";
|
|
8
8
|
import "../chunk-W5RZPTFD.mjs";
|
|
9
9
|
import "../chunk-MI6TL3CQ.mjs";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-V443QIJM.mjs";
|
|
11
11
|
import "../chunk-2ZUEXCVJ.mjs";
|
|
12
12
|
export {
|
|
13
13
|
AreaChart,
|
|
@@ -120,11 +120,11 @@ declare const AutoComplete: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
120
120
|
}>, {
|
|
121
121
|
locale: Partial<TigerLocale>;
|
|
122
122
|
emptyText: string;
|
|
123
|
+
placeholder: string;
|
|
123
124
|
size: ComponentSize;
|
|
124
125
|
disabled: boolean;
|
|
125
126
|
modelValue: string | number;
|
|
126
127
|
options: AutoCompleteOption[];
|
|
127
|
-
placeholder: string;
|
|
128
128
|
searchValue: string;
|
|
129
129
|
defaultSearchValue: string;
|
|
130
130
|
clearable: boolean;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AutoComplete,
|
|
3
3
|
AutoComplete_default
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-IDUEWMWN.mjs";
|
|
5
|
+
import "../chunk-UOJOJBEU.mjs";
|
|
6
|
+
import "../chunk-TGXBCKOU.mjs";
|
|
6
7
|
export {
|
|
7
8
|
AutoComplete,
|
|
8
9
|
AutoComplete_default as default
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Avatar,
|
|
3
3
|
Avatar_default
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-ZFTRR3KW.mjs";
|
|
5
|
+
import "../chunk-JHFM6IFO.mjs";
|
|
6
|
+
import "../chunk-UOJOJBEU.mjs";
|
|
7
|
+
import "../chunk-TGXBCKOU.mjs";
|
|
6
8
|
export {
|
|
7
9
|
Avatar,
|
|
8
10
|
Avatar_default as default
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
|
-
import { AvatarSize } from '@expcat/tigercat-core';
|
|
3
|
+
import { AvatarSize, TigerLocale, TigerLocaleAvatarGroup } from '@expcat/tigercat-core';
|
|
4
4
|
|
|
5
5
|
declare const AVATAR_GROUP_INJECTION_KEY: unique symbol;
|
|
6
6
|
interface AvatarGroupContext {
|
|
@@ -11,6 +11,8 @@ interface VueAvatarGroupProps {
|
|
|
11
11
|
max?: number;
|
|
12
12
|
size?: AvatarSize;
|
|
13
13
|
className?: string;
|
|
14
|
+
locale?: Partial<TigerLocale>;
|
|
15
|
+
labels?: Partial<TigerLocaleAvatarGroup>;
|
|
14
16
|
}
|
|
15
17
|
declare const AvatarGroup: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
16
18
|
max: {
|
|
@@ -25,6 +27,16 @@ declare const AvatarGroup: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
25
27
|
type: StringConstructor;
|
|
26
28
|
default: undefined;
|
|
27
29
|
};
|
|
30
|
+
/** Locale overrides merged on top of ConfigProvider locale */
|
|
31
|
+
locale: {
|
|
32
|
+
type: PropType<Partial<TigerLocale>>;
|
|
33
|
+
default: undefined;
|
|
34
|
+
};
|
|
35
|
+
/** Text/aria label overrides */
|
|
36
|
+
labels: {
|
|
37
|
+
type: PropType<Partial<TigerLocaleAvatarGroup>>;
|
|
38
|
+
default: undefined;
|
|
39
|
+
};
|
|
28
40
|
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
29
41
|
[key: string]: any;
|
|
30
42
|
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
@@ -40,7 +52,19 @@ declare const AvatarGroup: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
40
52
|
type: StringConstructor;
|
|
41
53
|
default: undefined;
|
|
42
54
|
};
|
|
55
|
+
/** Locale overrides merged on top of ConfigProvider locale */
|
|
56
|
+
locale: {
|
|
57
|
+
type: PropType<Partial<TigerLocale>>;
|
|
58
|
+
default: undefined;
|
|
59
|
+
};
|
|
60
|
+
/** Text/aria label overrides */
|
|
61
|
+
labels: {
|
|
62
|
+
type: PropType<Partial<TigerLocaleAvatarGroup>>;
|
|
63
|
+
default: undefined;
|
|
64
|
+
};
|
|
43
65
|
}>> & Readonly<{}>, {
|
|
66
|
+
locale: Partial<TigerLocale>;
|
|
67
|
+
labels: Partial<TigerLocaleAvatarGroup>;
|
|
44
68
|
size: AvatarSize;
|
|
45
69
|
className: string;
|
|
46
70
|
max: number;
|
|
@@ -2,7 +2,9 @@ import {
|
|
|
2
2
|
AVATAR_GROUP_INJECTION_KEY,
|
|
3
3
|
AvatarGroup,
|
|
4
4
|
AvatarGroup_default
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-JHFM6IFO.mjs";
|
|
6
|
+
import "../chunk-UOJOJBEU.mjs";
|
|
7
|
+
import "../chunk-TGXBCKOU.mjs";
|
|
6
8
|
export {
|
|
7
9
|
AVATAR_GROUP_INJECTION_KEY,
|
|
8
10
|
AvatarGroup,
|
|
@@ -19,7 +19,16 @@ declare const BarChart: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
19
19
|
};
|
|
20
20
|
padding: {
|
|
21
21
|
type: PropType<ChartPadding>;
|
|
22
|
-
default:
|
|
22
|
+
default: () => {
|
|
23
|
+
top: number;
|
|
24
|
+
right: number;
|
|
25
|
+
bottom: number;
|
|
26
|
+
left: number;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
responsive: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
23
32
|
};
|
|
24
33
|
data: {
|
|
25
34
|
type: PropType<BarChartDatum[]>;
|
|
@@ -195,7 +204,16 @@ declare const BarChart: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
195
204
|
};
|
|
196
205
|
padding: {
|
|
197
206
|
type: PropType<ChartPadding>;
|
|
198
|
-
default:
|
|
207
|
+
default: () => {
|
|
208
|
+
top: number;
|
|
209
|
+
right: number;
|
|
210
|
+
bottom: number;
|
|
211
|
+
left: number;
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
responsive: {
|
|
215
|
+
type: BooleanConstructor;
|
|
216
|
+
default: boolean;
|
|
199
217
|
};
|
|
200
218
|
data: {
|
|
201
219
|
type: PropType<BarChartDatum[]>;
|
|
@@ -370,6 +388,7 @@ declare const BarChart: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
370
388
|
gradient: boolean;
|
|
371
389
|
hoverable: boolean;
|
|
372
390
|
selectable: boolean;
|
|
391
|
+
responsive: boolean;
|
|
373
392
|
xTicks: number;
|
|
374
393
|
yTicks: number;
|
|
375
394
|
barColor: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BarChart,
|
|
3
3
|
BarChart_default
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-5KPO3EDM.mjs";
|
|
5
5
|
import "../chunk-PE5OA4YG.mjs";
|
|
6
6
|
import "../chunk-SPFL55TF.mjs";
|
|
7
7
|
import "../chunk-ZWVA7HT3.mjs";
|
|
8
8
|
import "../chunk-W5RZPTFD.mjs";
|
|
9
9
|
import "../chunk-MI6TL3CQ.mjs";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-V443QIJM.mjs";
|
|
11
11
|
import "../chunk-2ZUEXCVJ.mjs";
|
|
12
12
|
export {
|
|
13
13
|
BarChart,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Calendar,
|
|
3
3
|
Calendar_default
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-JL3CN4UK.mjs";
|
|
5
|
+
import "../chunk-UOJOJBEU.mjs";
|
|
6
|
+
import "../chunk-TGXBCKOU.mjs";
|
|
6
7
|
export {
|
|
7
8
|
Calendar,
|
|
8
9
|
Calendar_default as default
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { PropType, VNode } from 'vue';
|
|
3
|
-
import { CarouselDotPosition, CarouselEffect } from '@expcat/tigercat-core';
|
|
3
|
+
import { CarouselDotPosition, CarouselEffect, TigerLocale, TigerLocaleCarousel } from '@expcat/tigercat-core';
|
|
4
4
|
|
|
5
5
|
interface VueCarouselProps {
|
|
6
6
|
autoplay?: boolean;
|
|
@@ -17,6 +17,8 @@ interface VueCarouselProps {
|
|
|
17
17
|
pauseOnFocus?: boolean;
|
|
18
18
|
className?: string;
|
|
19
19
|
style?: Record<string, string | number>;
|
|
20
|
+
locale?: Partial<TigerLocale>;
|
|
21
|
+
labels?: Partial<TigerLocaleCarousel>;
|
|
20
22
|
}
|
|
21
23
|
declare const Carousel: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
22
24
|
/**
|
|
@@ -128,6 +130,14 @@ declare const Carousel: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
128
130
|
type: PropType<Record<string, string | number>>;
|
|
129
131
|
default: undefined;
|
|
130
132
|
};
|
|
133
|
+
locale: {
|
|
134
|
+
type: PropType<Partial<TigerLocale>>;
|
|
135
|
+
default: undefined;
|
|
136
|
+
};
|
|
137
|
+
labels: {
|
|
138
|
+
type: PropType<Partial<TigerLocaleCarousel>>;
|
|
139
|
+
default: undefined;
|
|
140
|
+
};
|
|
131
141
|
}>, () => VNode<vue.RendererNode, vue.RendererElement, {
|
|
132
142
|
[key: string]: any;
|
|
133
143
|
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("change" | "update:currentIndex" | "before-change")[], "change" | "update:currentIndex" | "before-change", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
@@ -240,11 +250,21 @@ declare const Carousel: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
240
250
|
type: PropType<Record<string, string | number>>;
|
|
241
251
|
default: undefined;
|
|
242
252
|
};
|
|
253
|
+
locale: {
|
|
254
|
+
type: PropType<Partial<TigerLocale>>;
|
|
255
|
+
default: undefined;
|
|
256
|
+
};
|
|
257
|
+
labels: {
|
|
258
|
+
type: PropType<Partial<TigerLocaleCarousel>>;
|
|
259
|
+
default: undefined;
|
|
260
|
+
};
|
|
243
261
|
}>> & Readonly<{
|
|
244
262
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
245
263
|
"onUpdate:currentIndex"?: ((...args: any[]) => any) | undefined;
|
|
246
264
|
"onBefore-change"?: ((...args: any[]) => any) | undefined;
|
|
247
265
|
}>, {
|
|
266
|
+
locale: Partial<TigerLocale>;
|
|
267
|
+
labels: Partial<TigerLocaleCarousel>;
|
|
248
268
|
className: string;
|
|
249
269
|
style: Record<string, string | number>;
|
|
250
270
|
dots: boolean;
|
|
@@ -148,12 +148,12 @@ declare const Cascader: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
148
148
|
}>, {
|
|
149
149
|
locale: Partial<TigerLocale>;
|
|
150
150
|
emptyText: string;
|
|
151
|
+
placeholder: string;
|
|
151
152
|
size: ComponentSize;
|
|
152
153
|
disabled: boolean;
|
|
153
154
|
modelValue: CascaderValue;
|
|
154
155
|
searchable: boolean | CascaderSearchConfig;
|
|
155
156
|
options: CascaderOption[];
|
|
156
|
-
placeholder: string;
|
|
157
157
|
searchValue: string;
|
|
158
158
|
defaultSearchValue: string;
|
|
159
159
|
clearable: boolean;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Cascader,
|
|
3
3
|
Cascader_default
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-DWK5GUMB.mjs";
|
|
5
|
+
import "../chunk-UOJOJBEU.mjs";
|
|
6
|
+
import "../chunk-TGXBCKOU.mjs";
|
|
6
7
|
export {
|
|
7
8
|
Cascader,
|
|
8
9
|
Cascader_default as default
|