@coldsmirk/ledger-mantine 0.6.0 → 0.7.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/index.cjs +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/{labels-D-6FCakH.d.ts → labels-D6GC8goU.d.cts} +10 -4
- package/dist/{labels-D-6FCakH.d.cts → labels-D6GC8goU.d.ts} +10 -4
- package/dist/locales.cjs +2 -1
- package/dist/locales.cjs.map +1 -1
- package/dist/locales.d.cts +1 -1
- package/dist/locales.d.ts +1 -1
- package/dist/locales.js +2 -1
- package/dist/locales.js.map +1 -1
- package/package.json +1 -1
|
@@ -21,9 +21,15 @@ interface DataTableLabels {
|
|
|
21
21
|
expandAll: string;
|
|
22
22
|
collapseAll: string;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
24
|
+
* Names the body viewport, the table's row group, while it is a keyboard focus stop (its
|
|
25
|
+
* content scrolls, or `enableActiveRow` is on). A focused element needs a name of its own: left
|
|
26
|
+
* without one, a browser may name the row group by the text of every row it holds.
|
|
27
|
+
*/
|
|
28
|
+
rows: string;
|
|
29
|
+
/**
|
|
30
|
+
* Describes the body viewport — the keyboard focus stop, named by `rows` — while
|
|
31
|
+
* `enableActiveRow` is on. It is the only place the arrow-key row model is announced, so say
|
|
32
|
+
* what the keys do, and only that: the name already says what the rows are.
|
|
27
33
|
*/
|
|
28
34
|
rowNavigation: string;
|
|
29
35
|
/**
|
|
@@ -118,4 +124,4 @@ interface DataTableLabels {
|
|
|
118
124
|
declare const defaultLabels: DataTableLabels;
|
|
119
125
|
//#endregion
|
|
120
126
|
export { defaultLabels as n, DataTableLabels as t };
|
|
121
|
-
//# sourceMappingURL=labels-
|
|
127
|
+
//# sourceMappingURL=labels-D6GC8goU.d.cts.map
|
|
@@ -21,9 +21,15 @@ interface DataTableLabels {
|
|
|
21
21
|
expandAll: string;
|
|
22
22
|
collapseAll: string;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
24
|
+
* Names the body viewport, the table's row group, while it is a keyboard focus stop (its
|
|
25
|
+
* content scrolls, or `enableActiveRow` is on). A focused element needs a name of its own: left
|
|
26
|
+
* without one, a browser may name the row group by the text of every row it holds.
|
|
27
|
+
*/
|
|
28
|
+
rows: string;
|
|
29
|
+
/**
|
|
30
|
+
* Describes the body viewport — the keyboard focus stop, named by `rows` — while
|
|
31
|
+
* `enableActiveRow` is on. It is the only place the arrow-key row model is announced, so say
|
|
32
|
+
* what the keys do, and only that: the name already says what the rows are.
|
|
27
33
|
*/
|
|
28
34
|
rowNavigation: string;
|
|
29
35
|
/**
|
|
@@ -118,4 +124,4 @@ interface DataTableLabels {
|
|
|
118
124
|
declare const defaultLabels: DataTableLabels;
|
|
119
125
|
//#endregion
|
|
120
126
|
export { defaultLabels as n, DataTableLabels as t };
|
|
121
|
-
//# sourceMappingURL=labels-
|
|
127
|
+
//# sourceMappingURL=labels-D6GC8goU.d.ts.map
|
package/dist/locales.cjs
CHANGED
|
@@ -12,7 +12,8 @@ const zhCN = {
|
|
|
12
12
|
selectRow: "选择行",
|
|
13
13
|
selectedCount: (count) => `已选 ${count} 项`,
|
|
14
14
|
clearSelection: "清除选择",
|
|
15
|
-
|
|
15
|
+
rows: "表格行",
|
|
16
|
+
rowNavigation: "使用方向键在行间移动",
|
|
16
17
|
currentRow: (row, index, count) => `${row},第 ${index} 行,共 ${count} 行`,
|
|
17
18
|
expandRow: "展开行",
|
|
18
19
|
collapseRow: "收起行",
|
package/dist/locales.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locales.cjs","names":[],"sources":["../src/locales.ts"],"sourcesContent":["/**\n * Locale presets for `DataTableLabels`. This module is also published as the \"./locales\"\n * subpath so applications can import a preset without touching the main entry:\n *\n * ```ts\n * import { zhCN } from \"@coldsmirk/ledger-mantine/locales\";\n * theme.components.DataTable = DataTable.extend({ defaultProps: { labels: zhCN } });\n * ```\n */\nimport type { DataTableLabels } from \"./labels\";\n\nexport const zhCN: DataTableLabels = {\n paginationSummary: (from, to, total) => `第 ${from}–${to} 条,共 ${total} 条`,\n rowsPerPage: \"每页行数\",\n firstPage: \"第一页\",\n previousPage: \"上一页\",\n nextPage: \"下一页\",\n lastPage: \"最后一页\",\n\n selectAllRows: \"全选\",\n selectRow: \"选择行\",\n selectedCount: count => `已选 ${count} 项`,\n clearSelection: \"清除选择\",\n\n rowNavigation: \"
|
|
1
|
+
{"version":3,"file":"locales.cjs","names":[],"sources":["../src/locales.ts"],"sourcesContent":["/**\n * Locale presets for `DataTableLabels`. This module is also published as the \"./locales\"\n * subpath so applications can import a preset without touching the main entry:\n *\n * ```ts\n * import { zhCN } from \"@coldsmirk/ledger-mantine/locales\";\n * theme.components.DataTable = DataTable.extend({ defaultProps: { labels: zhCN } });\n * ```\n */\nimport type { DataTableLabels } from \"./labels\";\n\nexport const zhCN: DataTableLabels = {\n paginationSummary: (from, to, total) => `第 ${from}–${to} 条,共 ${total} 条`,\n rowsPerPage: \"每页行数\",\n firstPage: \"第一页\",\n previousPage: \"上一页\",\n nextPage: \"下一页\",\n lastPage: \"最后一页\",\n\n selectAllRows: \"全选\",\n selectRow: \"选择行\",\n selectedCount: count => `已选 ${count} 项`,\n clearSelection: \"清除选择\",\n\n rows: \"表格行\",\n\n rowNavigation: \"使用方向键在行间移动\",\n currentRow: (row, index, count) => `${row},第 ${index} 行,共 ${count} 行`,\n\n expandRow: \"展开行\",\n collapseRow: \"收起行\",\n expandAll: \"展开全部\",\n collapseAll: \"收起全部\",\n\n columnsPanel: \"列设置\",\n resetColumns: \"重置\",\n pinStart: \"固定到左侧\",\n pinEnd: \"固定到右侧\",\n unpin: \"取消固定\",\n pinnedStart: \"左侧固定\",\n pinnedEnd: \"右侧固定\",\n groupByColumn: \"按此列分组\",\n ungroupColumn: \"取消分组\",\n columnWidth: \"宽度\",\n columnWidthAuto: \"自适应\",\n\n resizeColumn: \"拖动调整列宽;双击自适应内容\",\n reorderColumn: \"拖拽调整列顺序\",\n\n filterColumn: column => `筛选${column}`,\n clearFilter: \"清除筛选\",\n filterPlaceholder: \"筛选…\",\n filterRangeMin: \"最小值\",\n filterRangeMax: \"最大值\",\n previousMonth: \"上个月\",\n nextMonth: \"下个月\",\n previousYear: \"上一年\",\n nextYear: \"下一年\",\n previousDecade: \"上一个十年\",\n nextDecade: \"下一个十年\",\n\n searchPlaceholder: \"搜索…\",\n\n loading: \"加载中\",\n empty: \"暂无数据\",\n noResults: \"没有匹配的记录\",\n loadingMore: \"加载更多\",\n error: \"数据加载失败\",\n retry: \"重试\",\n loadMoreError: \"加载更多失败\",\n\n editColumn: column => `编辑${column}`,\n editPending: \"保存中\",\n\n reorderRow: \"拖拽调整行顺序\",\n rowOrderingUnavailable: \"清除排序、筛选和分组后才能调整行顺序\",\n rowReorderLifted: row => `已拿起 ${row} —— 方向键移动,空格放下,Esc 取消`,\n rowReorderTarget: (row, side) => side === \"before\" ? `${row} 之前` : `${row} 之后`,\n rowReorderDropped: row => `已放下 ${row}`,\n rowReorderCanceled: \"已取消调整\"\n};\n"],"mappings":";;;AAWA,MAAa,OAAwB;CACnC,oBAAoB,MAAM,IAAI,UAAU,KAAK,KAAK,GAAG,GAAG,OAAO,MAAM;CACrE,aAAa;CACb,WAAW;CACX,cAAc;CACd,UAAU;CACV,UAAU;CAEV,eAAe;CACf,WAAW;CACX,gBAAe,UAAS,MAAM,MAAM;CACpC,gBAAgB;CAEhB,MAAM;CAEN,eAAe;CACf,aAAa,KAAK,OAAO,UAAU,GAAG,IAAI,KAAK,MAAM,OAAO,MAAM;CAElE,WAAW;CACX,aAAa;CACb,WAAW;CACX,aAAa;CAEb,cAAc;CACd,cAAc;CACd,UAAU;CACV,QAAQ;CACR,OAAO;CACP,aAAa;CACb,WAAW;CACX,eAAe;CACf,eAAe;CACf,aAAa;CACb,iBAAiB;CAEjB,cAAc;CACd,eAAe;CAEf,eAAc,WAAU,KAAK;CAC7B,aAAa;CACb,mBAAmB;CACnB,gBAAgB;CAChB,gBAAgB;CAChB,eAAe;CACf,WAAW;CACX,cAAc;CACd,UAAU;CACV,gBAAgB;CAChB,YAAY;CAEZ,mBAAmB;CAEnB,SAAS;CACT,OAAO;CACP,WAAW;CACX,aAAa;CACb,OAAO;CACP,OAAO;CACP,eAAe;CAEf,aAAY,WAAU,KAAK;CAC3B,aAAa;CAEb,YAAY;CACZ,wBAAwB;CACxB,mBAAkB,QAAO,OAAO,IAAI;CACpC,mBAAmB,KAAK,SAAS,SAAS,WAAW,GAAG,IAAI,OAAO,GAAG,IAAI;CAC1E,oBAAmB,QAAO,OAAO;CACjC,oBAAoB;AACtB"}
|
package/dist/locales.d.cts
CHANGED
package/dist/locales.d.ts
CHANGED
package/dist/locales.js
CHANGED
|
@@ -11,7 +11,8 @@ const zhCN = {
|
|
|
11
11
|
selectRow: "选择行",
|
|
12
12
|
selectedCount: (count) => `已选 ${count} 项`,
|
|
13
13
|
clearSelection: "清除选择",
|
|
14
|
-
|
|
14
|
+
rows: "表格行",
|
|
15
|
+
rowNavigation: "使用方向键在行间移动",
|
|
15
16
|
currentRow: (row, index, count) => `${row},第 ${index} 行,共 ${count} 行`,
|
|
16
17
|
expandRow: "展开行",
|
|
17
18
|
collapseRow: "收起行",
|
package/dist/locales.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locales.js","names":[],"sources":["../src/locales.ts"],"sourcesContent":["/**\n * Locale presets for `DataTableLabels`. This module is also published as the \"./locales\"\n * subpath so applications can import a preset without touching the main entry:\n *\n * ```ts\n * import { zhCN } from \"@coldsmirk/ledger-mantine/locales\";\n * theme.components.DataTable = DataTable.extend({ defaultProps: { labels: zhCN } });\n * ```\n */\nimport type { DataTableLabels } from \"./labels\";\n\nexport const zhCN: DataTableLabels = {\n paginationSummary: (from, to, total) => `第 ${from}–${to} 条,共 ${total} 条`,\n rowsPerPage: \"每页行数\",\n firstPage: \"第一页\",\n previousPage: \"上一页\",\n nextPage: \"下一页\",\n lastPage: \"最后一页\",\n\n selectAllRows: \"全选\",\n selectRow: \"选择行\",\n selectedCount: count => `已选 ${count} 项`,\n clearSelection: \"清除选择\",\n\n rowNavigation: \"
|
|
1
|
+
{"version":3,"file":"locales.js","names":[],"sources":["../src/locales.ts"],"sourcesContent":["/**\n * Locale presets for `DataTableLabels`. This module is also published as the \"./locales\"\n * subpath so applications can import a preset without touching the main entry:\n *\n * ```ts\n * import { zhCN } from \"@coldsmirk/ledger-mantine/locales\";\n * theme.components.DataTable = DataTable.extend({ defaultProps: { labels: zhCN } });\n * ```\n */\nimport type { DataTableLabels } from \"./labels\";\n\nexport const zhCN: DataTableLabels = {\n paginationSummary: (from, to, total) => `第 ${from}–${to} 条,共 ${total} 条`,\n rowsPerPage: \"每页行数\",\n firstPage: \"第一页\",\n previousPage: \"上一页\",\n nextPage: \"下一页\",\n lastPage: \"最后一页\",\n\n selectAllRows: \"全选\",\n selectRow: \"选择行\",\n selectedCount: count => `已选 ${count} 项`,\n clearSelection: \"清除选择\",\n\n rows: \"表格行\",\n\n rowNavigation: \"使用方向键在行间移动\",\n currentRow: (row, index, count) => `${row},第 ${index} 行,共 ${count} 行`,\n\n expandRow: \"展开行\",\n collapseRow: \"收起行\",\n expandAll: \"展开全部\",\n collapseAll: \"收起全部\",\n\n columnsPanel: \"列设置\",\n resetColumns: \"重置\",\n pinStart: \"固定到左侧\",\n pinEnd: \"固定到右侧\",\n unpin: \"取消固定\",\n pinnedStart: \"左侧固定\",\n pinnedEnd: \"右侧固定\",\n groupByColumn: \"按此列分组\",\n ungroupColumn: \"取消分组\",\n columnWidth: \"宽度\",\n columnWidthAuto: \"自适应\",\n\n resizeColumn: \"拖动调整列宽;双击自适应内容\",\n reorderColumn: \"拖拽调整列顺序\",\n\n filterColumn: column => `筛选${column}`,\n clearFilter: \"清除筛选\",\n filterPlaceholder: \"筛选…\",\n filterRangeMin: \"最小值\",\n filterRangeMax: \"最大值\",\n previousMonth: \"上个月\",\n nextMonth: \"下个月\",\n previousYear: \"上一年\",\n nextYear: \"下一年\",\n previousDecade: \"上一个十年\",\n nextDecade: \"下一个十年\",\n\n searchPlaceholder: \"搜索…\",\n\n loading: \"加载中\",\n empty: \"暂无数据\",\n noResults: \"没有匹配的记录\",\n loadingMore: \"加载更多\",\n error: \"数据加载失败\",\n retry: \"重试\",\n loadMoreError: \"加载更多失败\",\n\n editColumn: column => `编辑${column}`,\n editPending: \"保存中\",\n\n reorderRow: \"拖拽调整行顺序\",\n rowOrderingUnavailable: \"清除排序、筛选和分组后才能调整行顺序\",\n rowReorderLifted: row => `已拿起 ${row} —— 方向键移动,空格放下,Esc 取消`,\n rowReorderTarget: (row, side) => side === \"before\" ? `${row} 之前` : `${row} 之后`,\n rowReorderDropped: row => `已放下 ${row}`,\n rowReorderCanceled: \"已取消调整\"\n};\n"],"mappings":";;AAWA,MAAa,OAAwB;CACnC,oBAAoB,MAAM,IAAI,UAAU,KAAK,KAAK,GAAG,GAAG,OAAO,MAAM;CACrE,aAAa;CACb,WAAW;CACX,cAAc;CACd,UAAU;CACV,UAAU;CAEV,eAAe;CACf,WAAW;CACX,gBAAe,UAAS,MAAM,MAAM;CACpC,gBAAgB;CAEhB,MAAM;CAEN,eAAe;CACf,aAAa,KAAK,OAAO,UAAU,GAAG,IAAI,KAAK,MAAM,OAAO,MAAM;CAElE,WAAW;CACX,aAAa;CACb,WAAW;CACX,aAAa;CAEb,cAAc;CACd,cAAc;CACd,UAAU;CACV,QAAQ;CACR,OAAO;CACP,aAAa;CACb,WAAW;CACX,eAAe;CACf,eAAe;CACf,aAAa;CACb,iBAAiB;CAEjB,cAAc;CACd,eAAe;CAEf,eAAc,WAAU,KAAK;CAC7B,aAAa;CACb,mBAAmB;CACnB,gBAAgB;CAChB,gBAAgB;CAChB,eAAe;CACf,WAAW;CACX,cAAc;CACd,UAAU;CACV,gBAAgB;CAChB,YAAY;CAEZ,mBAAmB;CAEnB,SAAS;CACT,OAAO;CACP,WAAW;CACX,aAAa;CACb,OAAO;CACP,OAAO;CACP,eAAe;CAEf,aAAY,WAAU,KAAK;CAC3B,aAAa;CAEb,YAAY;CACZ,wBAAwB;CACxB,mBAAkB,QAAO,OAAO,IAAI;CACpC,mBAAmB,KAAK,SAAS,SAAS,WAAW,GAAG,IAAI,OAAO,GAAG,IAAI;CAC1E,oBAAmB,QAAO,OAAO;CACjC,oBAAoB;AACtB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coldsmirk/ledger-mantine",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Mantine-native <DataTable> on TanStack Table and TanStack Virtual: sorting, filtering, pagination, selection, pinning, inline editing, and adaptive row virtualization.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data-table",
|