@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.
Files changed (109) hide show
  1. package/dist/{datepicker-DXzS_8l8.d.cts → datepicker-gSOJN_pQ.d.cts} +1 -1
  2. package/dist/{datepicker-DXzS_8l8.d.ts → datepicker-gSOJN_pQ.d.ts} +1 -1
  3. package/dist/datepicker-locales/ar-SA.d.cts +1 -1
  4. package/dist/datepicker-locales/ar-SA.d.ts +1 -1
  5. package/dist/datepicker-locales/de-DE.d.cts +1 -1
  6. package/dist/datepicker-locales/de-DE.d.ts +1 -1
  7. package/dist/datepicker-locales/en-US.d.cts +1 -1
  8. package/dist/datepicker-locales/en-US.d.ts +1 -1
  9. package/dist/datepicker-locales/es-ES.d.cts +1 -1
  10. package/dist/datepicker-locales/es-ES.d.ts +1 -1
  11. package/dist/datepicker-locales/fr-FR.d.cts +1 -1
  12. package/dist/datepicker-locales/fr-FR.d.ts +1 -1
  13. package/dist/datepicker-locales/id-ID.d.cts +1 -1
  14. package/dist/datepicker-locales/id-ID.d.ts +1 -1
  15. package/dist/datepicker-locales/ja-JP.d.cts +1 -1
  16. package/dist/datepicker-locales/ja-JP.d.ts +1 -1
  17. package/dist/datepicker-locales/ko-KR.d.cts +1 -1
  18. package/dist/datepicker-locales/ko-KR.d.ts +1 -1
  19. package/dist/datepicker-locales/pt-BR.d.cts +1 -1
  20. package/dist/datepicker-locales/pt-BR.d.ts +1 -1
  21. package/dist/datepicker-locales/th-TH.d.cts +1 -1
  22. package/dist/datepicker-locales/th-TH.d.ts +1 -1
  23. package/dist/datepicker-locales/vi-VN.d.cts +1 -1
  24. package/dist/datepicker-locales/vi-VN.d.ts +1 -1
  25. package/dist/datepicker-locales/zh-CN.d.cts +1 -1
  26. package/dist/datepicker-locales/zh-CN.d.ts +1 -1
  27. package/dist/datepicker-locales/zh-TW.d.cts +1 -1
  28. package/dist/datepicker-locales/zh-TW.d.ts +1 -1
  29. package/dist/icons/registry.cjs +1 -3
  30. package/dist/icons/registry.js +1 -3
  31. package/dist/index.cjs +2094 -715
  32. package/dist/index.d.cts +811 -319
  33. package/dist/index.d.ts +811 -319
  34. package/dist/index.js +2023 -712
  35. package/dist/locale-BTAo7XO1.d.cts +392 -0
  36. package/dist/locale-hhhI2kH6.d.ts +392 -0
  37. package/dist/locales/ar-SA.cjs +357 -4
  38. package/dist/locales/ar-SA.d.cts +2 -2
  39. package/dist/locales/ar-SA.d.ts +2 -2
  40. package/dist/locales/ar-SA.js +357 -4
  41. package/dist/locales/de-DE.cjs +357 -4
  42. package/dist/locales/de-DE.d.cts +2 -2
  43. package/dist/locales/de-DE.d.ts +2 -2
  44. package/dist/locales/de-DE.js +357 -4
  45. package/dist/locales/en-US.cjs +159 -2
  46. package/dist/locales/en-US.d.cts +2 -2
  47. package/dist/locales/en-US.d.ts +2 -2
  48. package/dist/locales/en-US.js +157 -2
  49. package/dist/locales/es-ES.cjs +357 -4
  50. package/dist/locales/es-ES.d.cts +2 -2
  51. package/dist/locales/es-ES.d.ts +2 -2
  52. package/dist/locales/es-ES.js +357 -4
  53. package/dist/locales/fr-FR.cjs +357 -4
  54. package/dist/locales/fr-FR.d.cts +2 -2
  55. package/dist/locales/fr-FR.d.ts +2 -2
  56. package/dist/locales/fr-FR.js +357 -4
  57. package/dist/locales/id-ID.cjs +445 -3
  58. package/dist/locales/id-ID.d.cts +2 -2
  59. package/dist/locales/id-ID.d.ts +2 -2
  60. package/dist/locales/id-ID.js +443 -3
  61. package/dist/locales/ja-JP.cjs +445 -3
  62. package/dist/locales/ja-JP.d.cts +2 -2
  63. package/dist/locales/ja-JP.d.ts +2 -2
  64. package/dist/locales/ja-JP.js +443 -3
  65. package/dist/locales/ko-KR.cjs +445 -3
  66. package/dist/locales/ko-KR.d.cts +2 -2
  67. package/dist/locales/ko-KR.d.ts +2 -2
  68. package/dist/locales/ko-KR.js +443 -3
  69. package/dist/locales/pt-BR.cjs +357 -4
  70. package/dist/locales/pt-BR.d.cts +2 -2
  71. package/dist/locales/pt-BR.d.ts +2 -2
  72. package/dist/locales/pt-BR.js +357 -4
  73. package/dist/locales/th-TH.cjs +445 -3
  74. package/dist/locales/th-TH.d.cts +2 -2
  75. package/dist/locales/th-TH.d.ts +2 -2
  76. package/dist/locales/th-TH.js +443 -3
  77. package/dist/locales/vi-VN.cjs +445 -3
  78. package/dist/locales/vi-VN.d.cts +2 -2
  79. package/dist/locales/vi-VN.d.ts +2 -2
  80. package/dist/locales/vi-VN.js +443 -3
  81. package/dist/locales/zh-CN.cjs +159 -2
  82. package/dist/locales/zh-CN.d.cts +2 -2
  83. package/dist/locales/zh-CN.d.ts +2 -2
  84. package/dist/locales/zh-CN.js +157 -2
  85. package/dist/locales/zh-TW.cjs +445 -3
  86. package/dist/locales/zh-TW.d.cts +2 -2
  87. package/dist/locales/zh-TW.d.ts +2 -2
  88. package/dist/locales/zh-TW.js +443 -3
  89. package/dist/{table-export-CZ7wtGf4.d.ts → table-export-CfdzU6Y5.d.ts} +2 -2
  90. package/dist/{table-export-DOqFkseW.d.cts → table-export-vfyBzKui.d.cts} +2 -2
  91. package/dist/tailwind/modern.cjs +76 -81
  92. package/dist/tailwind/modern.d.cts +2 -3
  93. package/dist/tailwind/modern.d.ts +2 -3
  94. package/dist/tailwind/modern.js +76 -81
  95. package/dist/{tailwind-entry-D4_sseNi.d.ts → tailwind-entry-CNBAH7iv.d.cts} +7 -41
  96. package/dist/{tailwind-entry-DUchHtjs.d.cts → tailwind-entry-CNBAH7iv.d.ts} +7 -41
  97. package/dist/tailwind.cjs +123 -70
  98. package/dist/tailwind.d.cts +2 -3
  99. package/dist/tailwind.d.ts +2 -3
  100. package/dist/tailwind.js +123 -70
  101. package/dist/utils/table-export.cjs +7 -0
  102. package/dist/utils/table-export.d.cts +3 -3
  103. package/dist/utils/table-export.d.ts +3 -3
  104. package/dist/utils/table-export.js +7 -0
  105. package/package.json +5 -12
  106. package/dist/locale-BuZwW3Ok.d.ts +0 -135
  107. package/dist/locale-DDFn0b6z.d.cts +0 -135
  108. package/dist/types-CJYAW1ql.d-DDBFn6KB.d.cts +0 -126
  109. 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 };