@coldsmirk/ledger-mantine 0.5.1 → 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.
@@ -21,9 +21,15 @@ interface DataTableLabels {
21
21
  expandAll: string;
22
22
  collapseAll: string;
23
23
  /**
24
- * Describes the body viewport — the keyboard focus stop — while `enableActiveRow` is on. It
25
- * is the only place the arrow-key row model is announced, so say what the keys do. A
26
- * description, not a name: it says how to work the rows, not what they are.
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-D-6FCakH.d.ts.map
127
+ //# sourceMappingURL=labels-D6GC8goU.d.cts.map
@@ -21,9 +21,15 @@ interface DataTableLabels {
21
21
  expandAll: string;
22
22
  collapseAll: string;
23
23
  /**
24
- * Describes the body viewport — the keyboard focus stop — while `enableActiveRow` is on. It
25
- * is the only place the arrow-key row model is announced, so say what the keys do. A
26
- * description, not a name: it says how to work the rows, not what they are.
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-D-6FCakH.d.cts.map
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
- rowNavigation: "表格行 —— 使用方向键在行间移动",
15
+ rows: "表格行",
16
+ rowNavigation: "使用方向键在行间移动",
16
17
  currentRow: (row, index, count) => `${row},第 ${index} 行,共 ${count} 行`,
17
18
  expandRow: "展开行",
18
19
  collapseRow: "收起行",
@@ -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: \"表格行 —— 使用方向键在行间移动\",\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,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"}
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"}
@@ -1,5 +1,5 @@
1
1
 
2
- import { t as DataTableLabels } from "./labels-D-6FCakH.cjs";
2
+ import { t as DataTableLabels } from "./labels-D6GC8goU.cjs";
3
3
  //#region src/locales.d.ts
4
4
  export declare const zhCN: DataTableLabels;
5
5
  //#endregion
package/dist/locales.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- import { t as DataTableLabels } from "./labels-D-6FCakH.js";
2
+ import { t as DataTableLabels } from "./labels-D6GC8goU.js";
3
3
  //#region src/locales.d.ts
4
4
  export declare const zhCN: DataTableLabels;
5
5
  //#endregion
package/dist/locales.js CHANGED
@@ -11,7 +11,8 @@ const zhCN = {
11
11
  selectRow: "选择行",
12
12
  selectedCount: (count) => `已选 ${count} 项`,
13
13
  clearSelection: "清除选择",
14
- rowNavigation: "表格行 —— 使用方向键在行间移动",
14
+ rows: "表格行",
15
+ rowNavigation: "使用方向键在行间移动",
15
16
  currentRow: (row, index, count) => `${row},第 ${index} 行,共 ${count} 行`,
16
17
  expandRow: "展开行",
17
18
  collapseRow: "收起行",
@@ -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: \"表格行 —— 使用方向键在行间移动\",\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,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"}
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/dist/styles.css CHANGED
@@ -18,11 +18,19 @@
18
18
  * degrades to content height when the parent is indefinite. min-width/min-height: 0
19
19
  * pre-defuse the flex/grid min-size:auto shrink trap; overflow only ever appears on the
20
20
  * internal scroller.
21
+ *
22
+ * The root is a one-column grid, the elastic row first and the pagination bar under it — not
23
+ * a flex column: under a max height (`mah`) a grid resolves its `1fr` row against the cap
24
+ * (CSS Grid §12.7.1), so the main region stretched into it has a definite height, and so does
25
+ * the scroller's viewport (`height: 100%`). A flex column leaves that height indefinite: the
26
+ * viewport grows to its content and nothing scrolls. A definite parent's row fills it, and an
27
+ * indefinite parent's follows the content, as before.
21
28
  * ------------------------------------------------------------------------------------------ */
22
29
  .ledger-root {
23
30
  position: relative;
24
- display: flex;
25
- flex-direction: column;
31
+ display: grid;
32
+ grid-template-rows: minmax(0, 1fr) auto;
33
+ grid-template-columns: minmax(0, 1fr);
26
34
  width: 100%;
27
35
  min-width: 0;
28
36
  height: 100%;
@@ -58,7 +66,6 @@
58
66
  its box, and the row-drag ghost is portaled to the body. */
59
67
  .ledger-main {
60
68
  display: flex;
61
- flex: 1 1 auto;
62
69
  flex-direction: column;
63
70
  min-width: 0;
64
71
  min-height: 0;
@@ -120,7 +127,7 @@
120
127
  .ledger-header-cell {
121
128
  position: relative;
122
129
  vertical-align: middle;
123
- background-color: var(--ledger-header-bg, var(--mantine-color-body));
130
+ background-color: var(--ledger-header-bg, var(--ledger-body-bg, var(--mantine-color-body)));
124
131
  }
125
132
 
126
133
  .ledger-header-cell[data-pinned] {
@@ -309,7 +316,7 @@
309
316
  * their hover step < the cursor inside a selection < pinned < the editing row (below).
310
317
  * ------------------------------------------------------------------------------------------ */
311
318
  .ledger-row {
312
- --ledger-pinned-bg: var(--ledger-row-bg, var(--mantine-color-body));
319
+ --ledger-pinned-bg: var(--ledger-row-bg, var(--ledger-body-bg, var(--mantine-color-body)));
313
320
  }
314
321
 
315
322
  .ledger-row > td {
@@ -360,7 +367,7 @@
360
367
  /* Sticky pinned rows sit at the body scroller's edges, above the flow (the header lives
361
368
  outside the scroller, so top offsets start at 0). */
362
369
  .ledger-row[data-pinned-row] {
363
- --ledger-row-bg: var(--mantine-color-body);
370
+ --ledger-row-bg: var(--ledger-body-bg, var(--mantine-color-body));
364
371
  position: sticky;
365
372
  z-index: 2;
366
373
  }
@@ -389,7 +396,7 @@
389
396
  .ledger-footer-cell[data-pinned] {
390
397
  position: sticky;
391
398
  z-index: 2;
392
- background-color: var(--ledger-pinned-bg, var(--mantine-color-body));
399
+ background-color: var(--ledger-pinned-bg, var(--ledger-body-bg, var(--mantine-color-body)));
393
400
  }
394
401
 
395
402
  /* Pinned-edge scroll shadows, visible only while content is actually scrolled past. */
@@ -555,7 +562,7 @@
555
562
  z-index: var(--mantine-z-index-popover);
556
563
  overflow: hidden;
557
564
  pointer-events: none;
558
- background-color: var(--mantine-color-body);
565
+ background-color: var(--ledger-body-bg, var(--mantine-color-body));
559
566
  border: 1px solid var(--mantine-color-default-border);
560
567
  border-radius: var(--mantine-radius-default);
561
568
  box-shadow: var(--mantine-shadow-md);
@@ -570,7 +577,7 @@
570
577
 
571
578
  .ledger-footer-cell {
572
579
  font-weight: 600;
573
- background-color: var(--mantine-color-body);
580
+ background-color: var(--ledger-body-bg, var(--mantine-color-body));
574
581
  }
575
582
 
576
583
  /* Overlaid on the whole body region (the scroller is its positioning context): centered in
@@ -600,7 +607,7 @@
600
607
  rows survive as a ghost that says "still here, not current". */
601
608
  .ledger-empty[data-over-rows] {
602
609
  z-index: 2;
603
- background-color: color-mix(in srgb, var(--mantine-color-body) 92%, transparent);
610
+ background-color: color-mix(in srgb, var(--ledger-body-bg, var(--mantine-color-body)) 92%, transparent);
604
611
  }
605
612
 
606
613
  .ledger-loader-row td {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coldsmirk/ledger-mantine",
3
- "version": "0.5.1",
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",