@expcat/tigercat-core 1.2.33 → 1.2.37
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/index.cjs +59 -21
- package/dist/index.d.cts +67 -9
- package/dist/index.d.ts +67 -9
- package/dist/index.js +55 -21
- package/dist/{locale-Cvl0yrRV.d.cts → locale-BiVGd2Kj.d.cts} +11 -1
- package/dist/{locale-B_WkH8fG.d.ts → locale-C0cvkjts.d.ts} +11 -1
- package/dist/locales/ar-SA.d.cts +1 -1
- package/dist/locales/ar-SA.d.ts +1 -1
- package/dist/locales/de-DE.d.cts +1 -1
- package/dist/locales/de-DE.d.ts +1 -1
- package/dist/locales/en-US.d.cts +1 -1
- package/dist/locales/en-US.d.ts +1 -1
- package/dist/locales/es-ES.d.cts +1 -1
- package/dist/locales/es-ES.d.ts +1 -1
- package/dist/locales/fr-FR.d.cts +1 -1
- package/dist/locales/fr-FR.d.ts +1 -1
- package/dist/locales/id-ID.d.cts +1 -1
- package/dist/locales/id-ID.d.ts +1 -1
- package/dist/locales/ja-JP.d.cts +1 -1
- package/dist/locales/ja-JP.d.ts +1 -1
- package/dist/locales/ko-KR.d.cts +1 -1
- package/dist/locales/ko-KR.d.ts +1 -1
- package/dist/locales/pt-BR.d.cts +1 -1
- package/dist/locales/pt-BR.d.ts +1 -1
- package/dist/locales/th-TH.d.cts +1 -1
- package/dist/locales/th-TH.d.ts +1 -1
- package/dist/locales/vi-VN.d.cts +1 -1
- package/dist/locales/vi-VN.d.ts +1 -1
- package/dist/locales/zh-CN.d.cts +1 -1
- package/dist/locales/zh-CN.d.ts +1 -1
- package/dist/locales/zh-TW.d.cts +1 -1
- package/dist/locales/zh-TW.d.ts +1 -1
- package/dist/{table-export-DDANRyCp.d.cts → table-export-BXKss-rR.d.cts} +39 -4
- package/dist/{table-export-C4Yqu5JI.d.ts → table-export-CrjXjyjp.d.ts} +39 -4
- package/dist/utils/table-export.d.cts +2 -2
- package/dist/utils/table-export.d.ts +2 -2
- package/package.json +1 -1
|
@@ -90,10 +90,20 @@ interface TigerLocale {
|
|
|
90
90
|
formWizard?: TigerLocaleFormWizard;
|
|
91
91
|
taskBoard?: TigerLocaleTaskBoard;
|
|
92
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* Flat custom-text overlay for single-language projects that do not need i18n.
|
|
95
|
+
*
|
|
96
|
+
* Same shape as `TigerLocale` but without the `locale` code / `direction`
|
|
97
|
+
* fields — it carries only the component text. Pass it to
|
|
98
|
+
* `<ConfigProvider locale={defineText({...})} />` for app-wide custom text, or
|
|
99
|
+
* to a component's `labels` prop for a one-off override. No locale data files
|
|
100
|
+
* are pulled in, so the bundle stays small.
|
|
101
|
+
*/
|
|
102
|
+
type TigerText = Omit<Partial<TigerLocale>, 'locale' | 'direction'>;
|
|
93
103
|
type TigerLocaleLazyModule = Partial<TigerLocale> | {
|
|
94
104
|
default?: Partial<TigerLocale>;
|
|
95
105
|
} | Record<string, unknown>;
|
|
96
106
|
type TigerLocaleLoader = () => PromiseLike<TigerLocaleLazyModule>;
|
|
97
107
|
type TigerLocaleInput = Partial<TigerLocale> | PromiseLike<TigerLocaleLazyModule> | TigerLocaleLoader;
|
|
98
108
|
|
|
99
|
-
export type { TigerLocale as T, TigerLocaleInput as a, TigerLocaleLazyModule as b, TigerLocaleLoader as c, TigerLocaleDirection as d, TigerLocalePagination as e, TigerLocaleFormWizard as f, TigerLocaleTaskBoard as g,
|
|
109
|
+
export type { TigerLocale as T, TigerLocaleInput as a, TigerLocaleLazyModule as b, TigerLocaleLoader as c, TigerLocaleDirection as d, TigerLocalePagination as e, TigerLocaleFormWizard as f, TigerLocaleTaskBoard as g, TigerText as h, TigerLocaleDrawer as i, TigerLocaleModal as j, TigerLocaleCommon as k, TigerLocaleUpload as l };
|
package/dist/locales/ar-SA.d.cts
CHANGED
package/dist/locales/ar-SA.d.ts
CHANGED
package/dist/locales/de-DE.d.cts
CHANGED
package/dist/locales/de-DE.d.ts
CHANGED
package/dist/locales/en-US.d.cts
CHANGED
package/dist/locales/en-US.d.ts
CHANGED
package/dist/locales/es-ES.d.cts
CHANGED
package/dist/locales/es-ES.d.ts
CHANGED
package/dist/locales/fr-FR.d.cts
CHANGED
package/dist/locales/fr-FR.d.ts
CHANGED
package/dist/locales/id-ID.d.cts
CHANGED
package/dist/locales/id-ID.d.ts
CHANGED
package/dist/locales/ja-JP.d.cts
CHANGED
package/dist/locales/ja-JP.d.ts
CHANGED
package/dist/locales/ko-KR.d.cts
CHANGED
package/dist/locales/ko-KR.d.ts
CHANGED
package/dist/locales/pt-BR.d.cts
CHANGED
package/dist/locales/pt-BR.d.ts
CHANGED
package/dist/locales/th-TH.d.cts
CHANGED
package/dist/locales/th-TH.d.ts
CHANGED
package/dist/locales/vi-VN.d.cts
CHANGED
package/dist/locales/vi-VN.d.ts
CHANGED
package/dist/locales/zh-CN.d.cts
CHANGED
package/dist/locales/zh-CN.d.ts
CHANGED
package/dist/locales/zh-TW.d.cts
CHANGED
package/dist/locales/zh-TW.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as TigerLocaleInput } from './locale-
|
|
1
|
+
import { a as TigerLocaleInput, e as TigerLocalePagination } from './locale-BiVGd2Kj.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Pagination component types and interfaces
|
|
@@ -137,6 +137,11 @@ interface PaginationProps {
|
|
|
137
137
|
* Locale configuration. Accepts a sync locale, promise, or lazy loader.
|
|
138
138
|
*/
|
|
139
139
|
locale?: TigerLocaleInput;
|
|
140
|
+
/**
|
|
141
|
+
* Flat custom-text overrides for single-language use (no i18n needed).
|
|
142
|
+
* Takes precedence over `locale` and global ConfigProvider text.
|
|
143
|
+
*/
|
|
144
|
+
labels?: Partial<TigerLocalePagination>;
|
|
140
145
|
}
|
|
141
146
|
/**
|
|
142
147
|
* Page change event info
|
|
@@ -175,6 +180,11 @@ interface PageSizeChangeInfo {
|
|
|
175
180
|
type TableSize = 'sm' | 'md' | 'lg';
|
|
176
181
|
type TableExportFormat = 'csv' | 'excel';
|
|
177
182
|
type TableResponsiveMode = 'card' | 'scroll';
|
|
183
|
+
/**
|
|
184
|
+
* Viewport breakpoint below which `responsiveMode="card"` activates.
|
|
185
|
+
* Maps to Tailwind's `sm` (640px), `md` (768px), and `lg` (1024px) widths.
|
|
186
|
+
*/
|
|
187
|
+
type TableCardBreakpoint = 'sm' | 'md' | 'lg';
|
|
178
188
|
type TableFixedPosition = 'left' | 'right';
|
|
179
189
|
/**
|
|
180
190
|
* Sort direction
|
|
@@ -304,6 +314,24 @@ interface TableColumn<T = Record<string, unknown>> {
|
|
|
304
314
|
* @default false
|
|
305
315
|
*/
|
|
306
316
|
fixed?: TableFixedPosition | false;
|
|
317
|
+
/**
|
|
318
|
+
* Hide this column when the table renders as cards (`responsiveMode="card"`).
|
|
319
|
+
* Useful for omitting secondary fields (id, timestamps) on narrow screens.
|
|
320
|
+
* @default false
|
|
321
|
+
*/
|
|
322
|
+
hideInCard?: boolean;
|
|
323
|
+
/**
|
|
324
|
+
* Ordering weight in card mode; columns with a lower value render first.
|
|
325
|
+
* Columns without a priority keep their original relative order and sort
|
|
326
|
+
* after prioritized ones.
|
|
327
|
+
*/
|
|
328
|
+
cardPriority?: number;
|
|
329
|
+
/**
|
|
330
|
+
* Render this column as the card's heading instead of a label/value row.
|
|
331
|
+
* The first visible column with `cardTitle` wins.
|
|
332
|
+
* @default false
|
|
333
|
+
*/
|
|
334
|
+
cardTitle?: boolean;
|
|
307
335
|
/**
|
|
308
336
|
* Custom render function for cell content
|
|
309
337
|
* Framework-specific implementations will handle this differently
|
|
@@ -577,11 +605,18 @@ interface TableProps<T = Record<string, unknown>> {
|
|
|
577
605
|
*/
|
|
578
606
|
tableLayout?: 'auto' | 'fixed';
|
|
579
607
|
/**
|
|
580
|
-
* Mobile layout below
|
|
581
|
-
* `
|
|
608
|
+
* Mobile layout below the `cardBreakpoint` width (640px by default).
|
|
609
|
+
* `scroll` keeps the table horizontally scrollable; `card` renders each row
|
|
610
|
+
* as a stacked card list.
|
|
582
611
|
* @default 'scroll'
|
|
583
612
|
*/
|
|
584
613
|
responsiveMode?: TableResponsiveMode;
|
|
614
|
+
/**
|
|
615
|
+
* Viewport breakpoint below which `responsiveMode="card"` activates.
|
|
616
|
+
* `sm` = 640px, `md` = 768px, `lg` = 1024px.
|
|
617
|
+
* @default 'sm'
|
|
618
|
+
*/
|
|
619
|
+
cardBreakpoint?: TableCardBreakpoint;
|
|
585
620
|
/**
|
|
586
621
|
* Enable virtual scrolling for large datasets
|
|
587
622
|
* @default false
|
|
@@ -702,4 +737,4 @@ declare function downloadTableExport(content: string, filename?: string, format?
|
|
|
702
737
|
*/
|
|
703
738
|
declare const tableExportButtonClasses = "inline-flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium rounded-[var(--tiger-radius-md,0.5rem)] border border-[var(--tiger-border,#e5e7eb)] text-[var(--tiger-text,#111827)] bg-[var(--tiger-surface,#ffffff)] hover:bg-[var(--tiger-surface-muted,#f9fafb)] transition-colors";
|
|
704
739
|
|
|
705
|
-
export { type
|
|
740
|
+
export { type PaginationProps as A, type PageChangeInfo as B, type ColumnAlign as C, type PageSizeChangeInfo as D, type ExpandableConfig as E, type FilterOption as F, type PaginationQuickJumperValidationOptions as P, type RowSelectionConfig as R, type SortDirection as S, type TableResponsiveMode as T, type TableCardBreakpoint as a, type TableColumn as b, type TableFixedPosition as c, type TableSize as d, type PaginationAlign as e, type PaginationSize as f, type TableProps as g, type PaginationConfig as h, type FilterRule as i, type ColumnFilter as j, type SortState as k, exportTableToCsv as l, exportTableToExcel as m, downloadCsv as n, downloadExcel as o, exportTableData as p, downloadTableExport as q, type TableExportFormat as r, type TableFixedHeaderClassNameContext as s, tableExportButtonClasses as t, type TableFixedCellClassNameContext as u, type TableFixedHeaderClassName as v, type TableFixedCellClassName as w, type FilterType as x, type PaginationPageSizeOption as y, type PaginationPageSizeOptionItem as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as TigerLocaleInput } from './locale-
|
|
1
|
+
import { a as TigerLocaleInput, e as TigerLocalePagination } from './locale-C0cvkjts.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Pagination component types and interfaces
|
|
@@ -137,6 +137,11 @@ interface PaginationProps {
|
|
|
137
137
|
* Locale configuration. Accepts a sync locale, promise, or lazy loader.
|
|
138
138
|
*/
|
|
139
139
|
locale?: TigerLocaleInput;
|
|
140
|
+
/**
|
|
141
|
+
* Flat custom-text overrides for single-language use (no i18n needed).
|
|
142
|
+
* Takes precedence over `locale` and global ConfigProvider text.
|
|
143
|
+
*/
|
|
144
|
+
labels?: Partial<TigerLocalePagination>;
|
|
140
145
|
}
|
|
141
146
|
/**
|
|
142
147
|
* Page change event info
|
|
@@ -175,6 +180,11 @@ interface PageSizeChangeInfo {
|
|
|
175
180
|
type TableSize = 'sm' | 'md' | 'lg';
|
|
176
181
|
type TableExportFormat = 'csv' | 'excel';
|
|
177
182
|
type TableResponsiveMode = 'card' | 'scroll';
|
|
183
|
+
/**
|
|
184
|
+
* Viewport breakpoint below which `responsiveMode="card"` activates.
|
|
185
|
+
* Maps to Tailwind's `sm` (640px), `md` (768px), and `lg` (1024px) widths.
|
|
186
|
+
*/
|
|
187
|
+
type TableCardBreakpoint = 'sm' | 'md' | 'lg';
|
|
178
188
|
type TableFixedPosition = 'left' | 'right';
|
|
179
189
|
/**
|
|
180
190
|
* Sort direction
|
|
@@ -304,6 +314,24 @@ interface TableColumn<T = Record<string, unknown>> {
|
|
|
304
314
|
* @default false
|
|
305
315
|
*/
|
|
306
316
|
fixed?: TableFixedPosition | false;
|
|
317
|
+
/**
|
|
318
|
+
* Hide this column when the table renders as cards (`responsiveMode="card"`).
|
|
319
|
+
* Useful for omitting secondary fields (id, timestamps) on narrow screens.
|
|
320
|
+
* @default false
|
|
321
|
+
*/
|
|
322
|
+
hideInCard?: boolean;
|
|
323
|
+
/**
|
|
324
|
+
* Ordering weight in card mode; columns with a lower value render first.
|
|
325
|
+
* Columns without a priority keep their original relative order and sort
|
|
326
|
+
* after prioritized ones.
|
|
327
|
+
*/
|
|
328
|
+
cardPriority?: number;
|
|
329
|
+
/**
|
|
330
|
+
* Render this column as the card's heading instead of a label/value row.
|
|
331
|
+
* The first visible column with `cardTitle` wins.
|
|
332
|
+
* @default false
|
|
333
|
+
*/
|
|
334
|
+
cardTitle?: boolean;
|
|
307
335
|
/**
|
|
308
336
|
* Custom render function for cell content
|
|
309
337
|
* Framework-specific implementations will handle this differently
|
|
@@ -577,11 +605,18 @@ interface TableProps<T = Record<string, unknown>> {
|
|
|
577
605
|
*/
|
|
578
606
|
tableLayout?: 'auto' | 'fixed';
|
|
579
607
|
/**
|
|
580
|
-
* Mobile layout below
|
|
581
|
-
* `
|
|
608
|
+
* Mobile layout below the `cardBreakpoint` width (640px by default).
|
|
609
|
+
* `scroll` keeps the table horizontally scrollable; `card` renders each row
|
|
610
|
+
* as a stacked card list.
|
|
582
611
|
* @default 'scroll'
|
|
583
612
|
*/
|
|
584
613
|
responsiveMode?: TableResponsiveMode;
|
|
614
|
+
/**
|
|
615
|
+
* Viewport breakpoint below which `responsiveMode="card"` activates.
|
|
616
|
+
* `sm` = 640px, `md` = 768px, `lg` = 1024px.
|
|
617
|
+
* @default 'sm'
|
|
618
|
+
*/
|
|
619
|
+
cardBreakpoint?: TableCardBreakpoint;
|
|
585
620
|
/**
|
|
586
621
|
* Enable virtual scrolling for large datasets
|
|
587
622
|
* @default false
|
|
@@ -702,4 +737,4 @@ declare function downloadTableExport(content: string, filename?: string, format?
|
|
|
702
737
|
*/
|
|
703
738
|
declare const tableExportButtonClasses = "inline-flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium rounded-[var(--tiger-radius-md,0.5rem)] border border-[var(--tiger-border,#e5e7eb)] text-[var(--tiger-text,#111827)] bg-[var(--tiger-surface,#ffffff)] hover:bg-[var(--tiger-surface-muted,#f9fafb)] transition-colors";
|
|
704
739
|
|
|
705
|
-
export { type
|
|
740
|
+
export { type PaginationProps as A, type PageChangeInfo as B, type ColumnAlign as C, type PageSizeChangeInfo as D, type ExpandableConfig as E, type FilterOption as F, type PaginationQuickJumperValidationOptions as P, type RowSelectionConfig as R, type SortDirection as S, type TableResponsiveMode as T, type TableCardBreakpoint as a, type TableColumn as b, type TableFixedPosition as c, type TableSize as d, type PaginationAlign as e, type PaginationSize as f, type TableProps as g, type PaginationConfig as h, type FilterRule as i, type ColumnFilter as j, type SortState as k, exportTableToCsv as l, exportTableToExcel as m, downloadCsv as n, downloadExcel as o, exportTableData as p, downloadTableExport as q, type TableExportFormat as r, type TableFixedHeaderClassNameContext as s, tableExportButtonClasses as t, type TableFixedCellClassNameContext as u, type TableFixedHeaderClassName as v, type TableFixedCellClassName as w, type FilterType as x, type PaginationPageSizeOption as y, type PaginationPageSizeOptionItem as z };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import '../locale-
|
|
1
|
+
export { n as downloadCsv, o as downloadExcel, q as downloadTableExport, p as exportTableData, l as exportTableToCsv, m as exportTableToExcel, t as tableExportButtonClasses } from '../table-export-BXKss-rR.cjs';
|
|
2
|
+
import '../locale-BiVGd2Kj.cjs';
|
|
3
3
|
import '../datepicker-DXzS_8l8.cjs';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import '../locale-
|
|
1
|
+
export { n as downloadCsv, o as downloadExcel, q as downloadTableExport, p as exportTableData, l as exportTableToCsv, m as exportTableToExcel, t as tableExportButtonClasses } from '../table-export-CrjXjyjp.js';
|
|
2
|
+
import '../locale-C0cvkjts.js';
|
|
3
3
|
import '../datepicker-DXzS_8l8.js';
|