@expcat/tigercat-core 1.3.4 → 1.5.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/{datepicker-DXzS_8l8.d.cts → datepicker-gSOJN_pQ.d.cts} +1 -1
- package/dist/{datepicker-DXzS_8l8.d.ts → datepicker-gSOJN_pQ.d.ts} +1 -1
- package/dist/datepicker-locales/ar-SA.d.cts +1 -1
- package/dist/datepicker-locales/ar-SA.d.ts +1 -1
- package/dist/datepicker-locales/de-DE.d.cts +1 -1
- package/dist/datepicker-locales/de-DE.d.ts +1 -1
- package/dist/datepicker-locales/en-US.d.cts +1 -1
- package/dist/datepicker-locales/en-US.d.ts +1 -1
- package/dist/datepicker-locales/es-ES.d.cts +1 -1
- package/dist/datepicker-locales/es-ES.d.ts +1 -1
- package/dist/datepicker-locales/fr-FR.d.cts +1 -1
- package/dist/datepicker-locales/fr-FR.d.ts +1 -1
- package/dist/datepicker-locales/id-ID.d.cts +1 -1
- package/dist/datepicker-locales/id-ID.d.ts +1 -1
- package/dist/datepicker-locales/ja-JP.d.cts +1 -1
- package/dist/datepicker-locales/ja-JP.d.ts +1 -1
- package/dist/datepicker-locales/ko-KR.d.cts +1 -1
- package/dist/datepicker-locales/ko-KR.d.ts +1 -1
- package/dist/datepicker-locales/pt-BR.d.cts +1 -1
- package/dist/datepicker-locales/pt-BR.d.ts +1 -1
- package/dist/datepicker-locales/th-TH.d.cts +1 -1
- package/dist/datepicker-locales/th-TH.d.ts +1 -1
- package/dist/datepicker-locales/vi-VN.d.cts +1 -1
- package/dist/datepicker-locales/vi-VN.d.ts +1 -1
- package/dist/datepicker-locales/zh-CN.d.cts +1 -1
- package/dist/datepicker-locales/zh-CN.d.ts +1 -1
- package/dist/datepicker-locales/zh-TW.d.cts +1 -1
- package/dist/datepicker-locales/zh-TW.d.ts +1 -1
- package/dist/icons/registry.cjs +1 -3
- package/dist/icons/registry.js +1 -3
- package/dist/index.cjs +2094 -715
- package/dist/index.d.cts +811 -319
- package/dist/index.d.ts +811 -319
- package/dist/index.js +2023 -712
- package/dist/locale-BTAo7XO1.d.cts +392 -0
- package/dist/locale-hhhI2kH6.d.ts +392 -0
- package/dist/locales/ar-SA.cjs +357 -4
- package/dist/locales/ar-SA.d.cts +2 -2
- package/dist/locales/ar-SA.d.ts +2 -2
- package/dist/locales/ar-SA.js +357 -4
- package/dist/locales/de-DE.cjs +357 -4
- package/dist/locales/de-DE.d.cts +2 -2
- package/dist/locales/de-DE.d.ts +2 -2
- package/dist/locales/de-DE.js +357 -4
- package/dist/locales/en-US.cjs +159 -2
- package/dist/locales/en-US.d.cts +2 -2
- package/dist/locales/en-US.d.ts +2 -2
- package/dist/locales/en-US.js +157 -2
- package/dist/locales/es-ES.cjs +357 -4
- package/dist/locales/es-ES.d.cts +2 -2
- package/dist/locales/es-ES.d.ts +2 -2
- package/dist/locales/es-ES.js +357 -4
- package/dist/locales/fr-FR.cjs +357 -4
- package/dist/locales/fr-FR.d.cts +2 -2
- package/dist/locales/fr-FR.d.ts +2 -2
- package/dist/locales/fr-FR.js +357 -4
- package/dist/locales/id-ID.cjs +445 -3
- package/dist/locales/id-ID.d.cts +2 -2
- package/dist/locales/id-ID.d.ts +2 -2
- package/dist/locales/id-ID.js +443 -3
- package/dist/locales/ja-JP.cjs +445 -3
- package/dist/locales/ja-JP.d.cts +2 -2
- package/dist/locales/ja-JP.d.ts +2 -2
- package/dist/locales/ja-JP.js +443 -3
- package/dist/locales/ko-KR.cjs +445 -3
- package/dist/locales/ko-KR.d.cts +2 -2
- package/dist/locales/ko-KR.d.ts +2 -2
- package/dist/locales/ko-KR.js +443 -3
- package/dist/locales/pt-BR.cjs +357 -4
- package/dist/locales/pt-BR.d.cts +2 -2
- package/dist/locales/pt-BR.d.ts +2 -2
- package/dist/locales/pt-BR.js +357 -4
- package/dist/locales/th-TH.cjs +445 -3
- package/dist/locales/th-TH.d.cts +2 -2
- package/dist/locales/th-TH.d.ts +2 -2
- package/dist/locales/th-TH.js +443 -3
- package/dist/locales/vi-VN.cjs +445 -3
- package/dist/locales/vi-VN.d.cts +2 -2
- package/dist/locales/vi-VN.d.ts +2 -2
- package/dist/locales/vi-VN.js +443 -3
- package/dist/locales/zh-CN.cjs +159 -2
- package/dist/locales/zh-CN.d.cts +2 -2
- package/dist/locales/zh-CN.d.ts +2 -2
- package/dist/locales/zh-CN.js +157 -2
- package/dist/locales/zh-TW.cjs +445 -3
- package/dist/locales/zh-TW.d.cts +2 -2
- package/dist/locales/zh-TW.d.ts +2 -2
- package/dist/locales/zh-TW.js +443 -3
- package/dist/{table-export-CZ7wtGf4.d.ts → table-export-CfdzU6Y5.d.ts} +2 -2
- package/dist/{table-export-DOqFkseW.d.cts → table-export-vfyBzKui.d.cts} +2 -2
- package/dist/tailwind/modern.cjs +76 -81
- package/dist/tailwind/modern.d.cts +2 -3
- package/dist/tailwind/modern.d.ts +2 -3
- package/dist/tailwind/modern.js +76 -81
- package/dist/{tailwind-entry-D4_sseNi.d.ts → tailwind-entry-CNBAH7iv.d.cts} +7 -41
- package/dist/{tailwind-entry-DUchHtjs.d.cts → tailwind-entry-CNBAH7iv.d.ts} +7 -41
- package/dist/tailwind.cjs +123 -70
- package/dist/tailwind.d.cts +2 -3
- package/dist/tailwind.d.ts +2 -3
- package/dist/tailwind.js +123 -70
- package/dist/utils/table-export.cjs +7 -0
- package/dist/utils/table-export.d.cts +3 -3
- package/dist/utils/table-export.d.ts +3 -3
- package/dist/utils/table-export.js +7 -0
- package/package.json +5 -12
- package/dist/locale-BuZwW3Ok.d.ts +0 -135
- package/dist/locale-DDFn0b6z.d.cts +0 -135
- package/dist/types-CJYAW1ql.d-DDBFn6KB.d.cts +0 -126
- package/dist/types-CJYAW1ql.d-DDBFn6KB.d.ts +0 -126
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
import { D as DatePickerLocalePreset } from './datepicker-gSOJN_pQ.cjs';
|
|
2
|
+
|
|
3
|
+
/** TimePicker shared types */
|
|
4
|
+
|
|
5
|
+
type TimePickerSize = 'sm' | 'md' | 'lg';
|
|
6
|
+
type TimeFormat = '12' | '24';
|
|
7
|
+
type TimePickerSingleValue = string | null;
|
|
8
|
+
type TimePickerRangeValue = [string | null, string | null];
|
|
9
|
+
type TimePickerModelValue = TimePickerSingleValue | TimePickerRangeValue;
|
|
10
|
+
interface TimePickerLabels {
|
|
11
|
+
hour: string;
|
|
12
|
+
minute: string;
|
|
13
|
+
second: string;
|
|
14
|
+
now: string;
|
|
15
|
+
ok: string;
|
|
16
|
+
start: string;
|
|
17
|
+
end: string;
|
|
18
|
+
clear: string;
|
|
19
|
+
toggle: string;
|
|
20
|
+
dialog: string;
|
|
21
|
+
selectTime: string;
|
|
22
|
+
selectTimeRange: string;
|
|
23
|
+
}
|
|
24
|
+
interface TimePickerProps {
|
|
25
|
+
/**
|
|
26
|
+
* Locale used for UI labels (e.g. AM/PM) and display formatting.
|
|
27
|
+
* Example: 'zh-CN', 'en-US', or a Tigercat locale object.
|
|
28
|
+
*/
|
|
29
|
+
locale?: string | Partial<TigerLocale>;
|
|
30
|
+
/**
|
|
31
|
+
* UI labels for i18n.
|
|
32
|
+
* When provided, merges with locale-based defaults.
|
|
33
|
+
*/
|
|
34
|
+
labels?: Partial<TimePickerLabels>;
|
|
35
|
+
/**
|
|
36
|
+
* TimePicker size
|
|
37
|
+
* @default 'md'
|
|
38
|
+
*/
|
|
39
|
+
size?: TimePickerSize;
|
|
40
|
+
/** Controlled value. Format: 'HH:mm' or 'HH:mm:ss' */
|
|
41
|
+
value?: TimePickerModelValue;
|
|
42
|
+
/** Uncontrolled default value. Format: 'HH:mm' or 'HH:mm:ss' */
|
|
43
|
+
defaultValue?: TimePickerModelValue;
|
|
44
|
+
/**
|
|
45
|
+
* Enable range selection (start/end).
|
|
46
|
+
* When true, value/defaultValue use a tuple: [start, end].
|
|
47
|
+
* @default false
|
|
48
|
+
*/
|
|
49
|
+
range?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Time format (12-hour or 24-hour)
|
|
52
|
+
* @default '24'
|
|
53
|
+
*/
|
|
54
|
+
format?: TimeFormat;
|
|
55
|
+
/**
|
|
56
|
+
* Whether to show seconds
|
|
57
|
+
* @default false
|
|
58
|
+
*/
|
|
59
|
+
showSeconds?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Hour step
|
|
62
|
+
* @default 1
|
|
63
|
+
*/
|
|
64
|
+
hourStep?: number;
|
|
65
|
+
/**
|
|
66
|
+
* Minute step
|
|
67
|
+
* @default 1
|
|
68
|
+
*/
|
|
69
|
+
minuteStep?: number;
|
|
70
|
+
/**
|
|
71
|
+
* Second step
|
|
72
|
+
* @default 1
|
|
73
|
+
*/
|
|
74
|
+
secondStep?: number;
|
|
75
|
+
/**
|
|
76
|
+
* Placeholder text
|
|
77
|
+
* @default 'Select time'
|
|
78
|
+
*/
|
|
79
|
+
placeholder?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Whether the timepicker is disabled
|
|
82
|
+
* @default false
|
|
83
|
+
*/
|
|
84
|
+
disabled?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Whether the timepicker is readonly
|
|
87
|
+
* @default false
|
|
88
|
+
*/
|
|
89
|
+
readonly?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Whether the timepicker is required
|
|
92
|
+
* @default false
|
|
93
|
+
*/
|
|
94
|
+
required?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Minimum selectable time (HH:mm format)
|
|
97
|
+
*/
|
|
98
|
+
minTime?: string | null;
|
|
99
|
+
/**
|
|
100
|
+
* Maximum selectable time (HH:mm format)
|
|
101
|
+
*/
|
|
102
|
+
maxTime?: string | null;
|
|
103
|
+
/**
|
|
104
|
+
* Whether to show the clear button
|
|
105
|
+
* @default true
|
|
106
|
+
*/
|
|
107
|
+
clearable?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Input name attribute
|
|
110
|
+
*/
|
|
111
|
+
name?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Input id attribute
|
|
114
|
+
*/
|
|
115
|
+
id?: string;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
type TigerLocaleDirection = 'ltr' | 'rtl';
|
|
119
|
+
interface TigerLocaleCommon {
|
|
120
|
+
okText?: string;
|
|
121
|
+
cancelText?: string;
|
|
122
|
+
closeText?: string;
|
|
123
|
+
loadingText?: string;
|
|
124
|
+
emptyText?: string;
|
|
125
|
+
/** Default "no more items" text for infinite-scroll end state */
|
|
126
|
+
noMoreText?: string;
|
|
127
|
+
/** Default placeholder for in-component search inputs (Select/Tree/Transfer/Cascader…) */
|
|
128
|
+
searchPlaceholder?: string;
|
|
129
|
+
/** Default label for clear actions */
|
|
130
|
+
clearText?: string;
|
|
131
|
+
}
|
|
132
|
+
interface TigerLocaleEmpty {
|
|
133
|
+
noData?: string;
|
|
134
|
+
noDataAvailable?: string;
|
|
135
|
+
noResults?: string;
|
|
136
|
+
error?: string;
|
|
137
|
+
}
|
|
138
|
+
interface TigerLocaleModal {
|
|
139
|
+
closeAriaLabel?: string;
|
|
140
|
+
okText?: string;
|
|
141
|
+
cancelText?: string;
|
|
142
|
+
}
|
|
143
|
+
interface TigerLocaleDrawer {
|
|
144
|
+
closeAriaLabel?: string;
|
|
145
|
+
}
|
|
146
|
+
interface TigerLocaleQRCode {
|
|
147
|
+
ariaLabel?: string;
|
|
148
|
+
expiredText?: string;
|
|
149
|
+
refreshText?: string;
|
|
150
|
+
loadingText?: string;
|
|
151
|
+
}
|
|
152
|
+
interface TigerLocaleTimeline {
|
|
153
|
+
pendingText?: string;
|
|
154
|
+
}
|
|
155
|
+
interface TigerLocaleUpload {
|
|
156
|
+
/** Drag area aria-label */
|
|
157
|
+
dragAreaAriaLabel?: string;
|
|
158
|
+
/** Upload button aria-label (non-drag mode) */
|
|
159
|
+
buttonAriaLabel?: string;
|
|
160
|
+
/** Main drag-area instruction (emphasized part) */
|
|
161
|
+
clickToUploadText?: string;
|
|
162
|
+
/** Secondary drag-area instruction */
|
|
163
|
+
dragAndDropText?: string;
|
|
164
|
+
/** Template: supports {accept} */
|
|
165
|
+
acceptInfoText?: string;
|
|
166
|
+
/** Template: supports {maxSize} */
|
|
167
|
+
maxSizeInfoText?: string;
|
|
168
|
+
/** Default non-drag button text */
|
|
169
|
+
selectFileText?: string;
|
|
170
|
+
/** File list aria-label */
|
|
171
|
+
uploadedFilesAriaLabel?: string;
|
|
172
|
+
/** Status aria-labels */
|
|
173
|
+
successAriaLabel?: string;
|
|
174
|
+
errorAriaLabel?: string;
|
|
175
|
+
uploadingAriaLabel?: string;
|
|
176
|
+
/** Templates: support {fileName} */
|
|
177
|
+
removeFileAriaLabel?: string;
|
|
178
|
+
previewFileAriaLabel?: string;
|
|
179
|
+
}
|
|
180
|
+
interface TigerLocalePagination {
|
|
181
|
+
/** Total text template: supports {total}, {start}, {end} */
|
|
182
|
+
totalText?: string;
|
|
183
|
+
/** Items per page text */
|
|
184
|
+
itemsPerPageText?: string;
|
|
185
|
+
/** Quick jumper label */
|
|
186
|
+
jumpToText?: string;
|
|
187
|
+
/** Page text (after number) */
|
|
188
|
+
pageText?: string;
|
|
189
|
+
/** Previous page button aria-label */
|
|
190
|
+
prevPageAriaLabel?: string;
|
|
191
|
+
/** Next page button aria-label */
|
|
192
|
+
nextPageAriaLabel?: string;
|
|
193
|
+
/** Page button aria-label template: supports {page} */
|
|
194
|
+
pageAriaLabel?: string;
|
|
195
|
+
/** Simple pagination page indicator template: supports {current}, {total} */
|
|
196
|
+
pageIndicatorText?: string;
|
|
197
|
+
}
|
|
198
|
+
interface TigerLocaleTable {
|
|
199
|
+
emptyText?: string;
|
|
200
|
+
loadingText?: string;
|
|
201
|
+
expandText?: string;
|
|
202
|
+
collapseText?: string;
|
|
203
|
+
selectAllText?: string;
|
|
204
|
+
/** Template: supports {row} */
|
|
205
|
+
selectRowAriaLabel?: string;
|
|
206
|
+
/** Template: supports {column} */
|
|
207
|
+
sortByText?: string;
|
|
208
|
+
clearSortText?: string;
|
|
209
|
+
toolbarAriaLabel?: string;
|
|
210
|
+
searchPlaceholder?: string;
|
|
211
|
+
searchButtonText?: string;
|
|
212
|
+
selectedText?: string;
|
|
213
|
+
selectedItemsText?: string;
|
|
214
|
+
/** Column-settings panel title / trigger label */
|
|
215
|
+
columnSettingsText?: string;
|
|
216
|
+
/** Aria label for the column-settings trigger button */
|
|
217
|
+
columnSettingsAriaLabel?: string;
|
|
218
|
+
/** Lock-column button aria-label. Template: supports {column} */
|
|
219
|
+
lockColumnAriaLabel?: string;
|
|
220
|
+
/** Unlock-column button aria-label. Template: supports {column} */
|
|
221
|
+
unlockColumnAriaLabel?: string;
|
|
222
|
+
allText?: string;
|
|
223
|
+
filterPlaceholder?: string;
|
|
224
|
+
exportCsvText?: string;
|
|
225
|
+
exportExcelText?: string;
|
|
226
|
+
exportCsvAriaLabel?: string;
|
|
227
|
+
exportExcelAriaLabel?: string;
|
|
228
|
+
expandRowAriaLabel?: string;
|
|
229
|
+
collapseRowAriaLabel?: string;
|
|
230
|
+
}
|
|
231
|
+
interface TigerLocaleFormWizard {
|
|
232
|
+
prevText?: string;
|
|
233
|
+
nextText?: string;
|
|
234
|
+
finishText?: string;
|
|
235
|
+
}
|
|
236
|
+
interface TigerLocaleTour {
|
|
237
|
+
prevText?: string;
|
|
238
|
+
nextText?: string;
|
|
239
|
+
finishText?: string;
|
|
240
|
+
closeAriaLabel?: string;
|
|
241
|
+
}
|
|
242
|
+
interface TigerLocaleCalendar {
|
|
243
|
+
previousMonth?: string;
|
|
244
|
+
nextMonth?: string;
|
|
245
|
+
previousYear?: string;
|
|
246
|
+
nextYear?: string;
|
|
247
|
+
yearSelectAriaLabel?: string;
|
|
248
|
+
monthSelectAriaLabel?: string;
|
|
249
|
+
daySelectAriaLabel?: string;
|
|
250
|
+
}
|
|
251
|
+
interface TigerLocaleFileManager {
|
|
252
|
+
rootText?: string;
|
|
253
|
+
}
|
|
254
|
+
interface TigerLocaleImageViewer {
|
|
255
|
+
dialogAriaLabel?: string;
|
|
256
|
+
previewDialogAriaLabel?: string;
|
|
257
|
+
closeAriaLabel?: string;
|
|
258
|
+
closePreviewAriaLabel?: string;
|
|
259
|
+
previousImageAriaLabel?: string;
|
|
260
|
+
nextImageAriaLabel?: string;
|
|
261
|
+
zoomOutAriaLabel?: string;
|
|
262
|
+
resetAriaLabel?: string;
|
|
263
|
+
zoomInAriaLabel?: string;
|
|
264
|
+
rotateLeftAriaLabel?: string;
|
|
265
|
+
rotateRightAriaLabel?: string;
|
|
266
|
+
}
|
|
267
|
+
interface TigerLocaleImageEditor {
|
|
268
|
+
selectImageText?: string;
|
|
269
|
+
selectImageAriaLabel?: string;
|
|
270
|
+
cropModalTitle?: string;
|
|
271
|
+
cropCancelText?: string;
|
|
272
|
+
cropConfirmText?: string;
|
|
273
|
+
cropperDialogAriaLabel?: string;
|
|
274
|
+
imageToCropAriaLabel?: string;
|
|
275
|
+
moveCropAreaAriaLabel?: string;
|
|
276
|
+
resizeCropAreaAriaLabel?: string;
|
|
277
|
+
loadingCropImageAriaLabel?: string;
|
|
278
|
+
annotationToolbarAriaLabel?: string;
|
|
279
|
+
annotationEditorAriaLabel?: string;
|
|
280
|
+
annotationCanvasAriaLabel?: string;
|
|
281
|
+
loadingAnnotationImageAriaLabel?: string;
|
|
282
|
+
selectToolText?: string;
|
|
283
|
+
rectangleToolText?: string;
|
|
284
|
+
ellipseToolText?: string;
|
|
285
|
+
polygonToolText?: string;
|
|
286
|
+
freehandToolText?: string;
|
|
287
|
+
deleteText?: string;
|
|
288
|
+
}
|
|
289
|
+
interface TigerLocaleStatus {
|
|
290
|
+
tagCloseAriaLabel?: string;
|
|
291
|
+
badgeLabel?: string;
|
|
292
|
+
badgeCountLabel?: string;
|
|
293
|
+
}
|
|
294
|
+
type TigerLocaleTimePicker = Partial<TimePickerLabels>;
|
|
295
|
+
interface TigerLocaleTaskBoard {
|
|
296
|
+
/** Placeholder shown inside an empty column */
|
|
297
|
+
emptyColumnText?: string;
|
|
298
|
+
/** Label for the add-card button */
|
|
299
|
+
addCardText?: string;
|
|
300
|
+
/** Label for the add-column button */
|
|
301
|
+
addColumnText?: string;
|
|
302
|
+
/** Template: supports {limit} */
|
|
303
|
+
wipLimitText?: string;
|
|
304
|
+
/** Aria hint for draggable items */
|
|
305
|
+
dragHintText?: string;
|
|
306
|
+
/** Aria label for the board root region */
|
|
307
|
+
boardAriaLabel?: string;
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Built-in form-validation messages.
|
|
311
|
+
*
|
|
312
|
+
* Used by `validateRule`/`validateField`/`validateForm` to localize the
|
|
313
|
+
* default error messages. A per-rule `message` always takes precedence over
|
|
314
|
+
* these. Range messages support `{min}` / `{max}` placeholders.
|
|
315
|
+
*/
|
|
316
|
+
interface TigerLocaleFormValidation {
|
|
317
|
+
/** Required-field message */
|
|
318
|
+
required?: string;
|
|
319
|
+
/** Type errors */
|
|
320
|
+
typeString?: string;
|
|
321
|
+
typeNumber?: string;
|
|
322
|
+
typeBoolean?: string;
|
|
323
|
+
typeArray?: string;
|
|
324
|
+
typeObject?: string;
|
|
325
|
+
/** Preset type errors */
|
|
326
|
+
email?: string;
|
|
327
|
+
phone?: string;
|
|
328
|
+
url?: string;
|
|
329
|
+
date?: string;
|
|
330
|
+
idCard?: string;
|
|
331
|
+
/** Range errors — template: supports {min} */
|
|
332
|
+
minLength?: string;
|
|
333
|
+
/** Template: supports {max} */
|
|
334
|
+
maxLength?: string;
|
|
335
|
+
/** Template: supports {min} */
|
|
336
|
+
minValue?: string;
|
|
337
|
+
/** Template: supports {max} */
|
|
338
|
+
maxValue?: string;
|
|
339
|
+
/** Template: supports {min} */
|
|
340
|
+
minItems?: string;
|
|
341
|
+
/** Template: supports {max} */
|
|
342
|
+
maxItems?: string;
|
|
343
|
+
/** Pattern mismatch message */
|
|
344
|
+
patternMismatch?: string;
|
|
345
|
+
/** Custom validator returned false */
|
|
346
|
+
validatorFailed?: string;
|
|
347
|
+
/** Custom validator threw */
|
|
348
|
+
validatorError?: string;
|
|
349
|
+
}
|
|
350
|
+
interface TigerLocale {
|
|
351
|
+
/** BCP 47 locale identifier, for Intl formatting and direction inference. */
|
|
352
|
+
locale?: string;
|
|
353
|
+
/** Text/layout direction. RTL locales should set this to `rtl`. */
|
|
354
|
+
direction?: TigerLocaleDirection;
|
|
355
|
+
common?: TigerLocaleCommon;
|
|
356
|
+
empty?: TigerLocaleEmpty;
|
|
357
|
+
modal?: TigerLocaleModal;
|
|
358
|
+
drawer?: TigerLocaleDrawer;
|
|
359
|
+
qrcode?: TigerLocaleQRCode;
|
|
360
|
+
timeline?: TigerLocaleTimeline;
|
|
361
|
+
upload?: TigerLocaleUpload;
|
|
362
|
+
pagination?: TigerLocalePagination;
|
|
363
|
+
table?: TigerLocaleTable;
|
|
364
|
+
datePicker?: Partial<DatePickerLocalePreset>;
|
|
365
|
+
timePicker?: TigerLocaleTimePicker;
|
|
366
|
+
formWizard?: TigerLocaleFormWizard;
|
|
367
|
+
tour?: TigerLocaleTour;
|
|
368
|
+
calendar?: TigerLocaleCalendar;
|
|
369
|
+
fileManager?: TigerLocaleFileManager;
|
|
370
|
+
imageViewer?: TigerLocaleImageViewer;
|
|
371
|
+
imageEditor?: TigerLocaleImageEditor;
|
|
372
|
+
status?: TigerLocaleStatus;
|
|
373
|
+
taskBoard?: TigerLocaleTaskBoard;
|
|
374
|
+
formValidation?: TigerLocaleFormValidation;
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
* Flat custom-text overlay for single-language projects that do not need i18n.
|
|
378
|
+
*
|
|
379
|
+
* Same shape as `TigerLocale` but without the `locale` code / `direction`
|
|
380
|
+
* fields — it carries only the component text. Pass it to
|
|
381
|
+
* `<ConfigProvider locale={defineText({...})} />` for app-wide custom text, or
|
|
382
|
+
* to a component's `labels` prop for a one-off override. No locale data files
|
|
383
|
+
* are pulled in, so the bundle stays small.
|
|
384
|
+
*/
|
|
385
|
+
type TigerText = Omit<Partial<TigerLocale>, 'locale' | 'direction'>;
|
|
386
|
+
type TigerLocaleLazyModule = Partial<TigerLocale> | {
|
|
387
|
+
default?: Partial<TigerLocale>;
|
|
388
|
+
} | Record<string, unknown>;
|
|
389
|
+
type TigerLocaleLoader = () => PromiseLike<TigerLocaleLazyModule>;
|
|
390
|
+
type TigerLocaleInput = Partial<TigerLocale> | PromiseLike<TigerLocaleLazyModule> | TigerLocaleLoader;
|
|
391
|
+
|
|
392
|
+
export type { TimePickerModelValue as A, TimePickerProps as B, TimePickerRangeValue as C, TimePickerSingleValue as D, TimePickerSize as E, TigerLocale as T, TigerLocaleCalendar as a, TigerLocaleFileManager as b, TigerLocaleFormValidation as c, TigerLocaleFormWizard as d, TigerLocaleImageEditor as e, TigerLocaleImageViewer as f, TigerLocalePagination as g, TigerLocaleStatus as h, TigerLocaleTable as i, TigerLocaleTaskBoard as j, TimePickerLabels as k, TigerLocaleTour as l, TigerLocaleInput as m, TigerLocaleDirection as n, TigerLocaleLazyModule as o, TigerLocaleLoader as p, TigerText as q, TimeFormat as r, TigerLocaleDrawer as s, TigerLocaleModal as t, TigerLocaleCommon as u, TigerLocaleEmpty as v, TigerLocaleQRCode as w, TigerLocaleTimePicker as x, TigerLocaleTimeline as y, TigerLocaleUpload as z };
|