@agile-team/mach-table 0.34.0 → 0.34.2
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/README.md +5 -1
- package/dist/adapter.d.cts +2 -2
- package/dist/adapter.d.ts +2 -2
- package/dist/analysis.d.cts +2 -2
- package/dist/analysis.d.ts +2 -2
- package/dist/{api-CfZinb9Q.d.cts → api-CUQtfQR4.d.cts} +2 -2
- package/dist/{api-CfZinb9Q.d.ts → api-CUQtfQR4.d.ts} +2 -2
- package/dist/business.d.cts +1 -1
- package/dist/business.d.ts +1 -1
- package/dist/{configuration-D2lEYcli.d.cts → configuration-BNK9jzn2.d.cts} +1 -1
- package/dist/{configuration-WTbQcWck.d.ts → configuration-D4gQ2s21.d.ts} +1 -1
- package/dist/import.d.cts +1 -1
- package/dist/import.d.ts +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/mach-table.css +1 -1
- package/dist/multi-range.d.cts +1 -1
- package/dist/multi-range.d.ts +1 -1
- package/dist/ordering.d.cts +1 -1
- package/dist/ordering.d.ts +1 -1
- package/dist/preferences.d.cts +1 -1
- package/dist/preferences.d.ts +1 -1
- package/dist/server-side.d.cts +1 -1
- package/dist/server-side.d.ts +1 -1
- package/dist/{shared-D-DnodkE.d.cts → shared-BgBZ4-2C.d.cts} +1 -1
- package/dist/{shared-buw2Rj4E.d.ts → shared-h73PMB5p.d.ts} +1 -1
- package/dist/workbench.d.cts +3 -3
- package/dist/workbench.d.ts +3 -3
- package/dist/worker.d.cts +2 -2
- package/dist/worker.d.ts +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# @agile-team/mach-table
|
|
6
6
|
|
|
7
|
-
MachTable 0.34.
|
|
7
|
+
MachTable 0.34.2 的框架无关 TypeScript Core:零运行时依赖,提供行列双虚拟化、领域化 API、单元格/整行编辑、树与分组、随机访问远程数据、区段隔离状态持久化和可诊断扩展系统。本版完善内置空态的表格插画、亮暗配色与两级文案;可选 `/business` 的字典列策略、本地语义合计及字典缓存隔离继续兼容;普通根入口 API 和既有默认行为保持兼容。
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
10
|
pnpm add @agile-team/mach-table
|
|
@@ -48,6 +48,8 @@ api.destroy();
|
|
|
48
48
|
|
|
49
49
|
`loading: true` 默认展示轻量表格骨架与本地化状态文案,空数据默认展示内置插画;需要品牌化时再通过 `overlayLoadingTemplate`、`overlayNoRowsTemplate` 覆盖,基础页面无需重复实现 loading/empty DOM。
|
|
50
50
|
|
|
51
|
+
内置空态使用适配亮暗主题的淡蓝表格卡片与放大镜插画;`locale.emptyRows` 和 `locale.emptyRowsHint` 分别配置标题、说明,均按纯文本呈现。静态 SVG 不依赖远端资源或共享 id,多表并排不会互相影响。
|
|
52
|
+
|
|
51
53
|
公共命令按 `rows`、`columns`、`selection`、`editing`、`filtering`、`sorting`、`pagination`、`hierarchy`、`view`、`state`、`io`、`diagnostics` 划分。完整签名见 [GridApi](https://github.com/ChenyCHENYU/MachTable/blob/main/docs/api/grid-api.md)。
|
|
52
54
|
|
|
53
55
|
大型本地数据 Worker 使用独立入口:
|
|
@@ -140,3 +142,5 @@ const statusColumn = {
|
|
|
140
142
|
`ColDef.valueParser` 统一编辑、粘贴和导入的规范值;`valueSerializer` 按 clipboard/csv/xlsx 定义输出,沿用已有 `columnTypes` 优先级。排序/过滤读取规范值,可信事务与撤销不重复解析。`api.io.importMatrix()` / `exportMatrix()` 直传类型,完整导入预览从当前包的 `/import` 导入 `createImportPlan()`,不加载到默认入口。
|
|
141
143
|
|
|
142
144
|
`sum` / `avg` / `min` / `max` 只聚合有限数,空数值集合返回 null,sum/avg 溢出返回 null;`count` 计全部记录,空集合为 0。自定义聚合保留原始输入。分组 ID 区分数字/文本/空值,旧展开路径仅在唯一时迁移,歧义报告错误。超大远程滚动使用有界物理坐标,API、滚轮和交互共用逻辑偏移;应用默认配置的 `dataProcessor` 使用每表工厂。完整边界与升级说明见[升级指南](https://github.com/ChenyCHENYU/MachTable/blob/main/docs/guide/upgrading.md)。
|
|
145
|
+
|
|
146
|
+
冻结区由正文视口统一管理滚动,原生焦点恢复和 `scrollIntoView` 不会单独改变其滚动位置。业务定位继续使用 `api.view.scrollToRow()`,无需页面补丁。
|
package/dist/adapter.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as GridApi, c as GridOptions, j as GridEventType } from './api-
|
|
2
|
-
export { M as MachTableOptionExplanation, R as ResolvedMachTableConfig, a as ResolvedMachTableGridOptions, m as mergeMachTableConfig, n as normalizeMachTableConfig, r as resolveMachTableGridOptions } from './configuration-
|
|
1
|
+
import { b as GridApi, c as GridOptions, j as GridEventType } from './api-CUQtfQR4.cjs';
|
|
2
|
+
export { M as MachTableOptionExplanation, R as ResolvedMachTableConfig, a as ResolvedMachTableGridOptions, m as mergeMachTableConfig, n as normalizeMachTableConfig, r as resolveMachTableGridOptions } from './configuration-BNK9jzn2.cjs';
|
|
3
3
|
|
|
4
4
|
/** Bounded structural comparison for small immutable config values, never row data. */
|
|
5
5
|
declare function equivalentConfigValue(left: unknown, right: unknown, depth?: number): boolean;
|
package/dist/adapter.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as GridApi, c as GridOptions, j as GridEventType } from './api-
|
|
2
|
-
export { M as MachTableOptionExplanation, R as ResolvedMachTableConfig, a as ResolvedMachTableGridOptions, m as mergeMachTableConfig, n as normalizeMachTableConfig, r as resolveMachTableGridOptions } from './configuration-
|
|
1
|
+
import { b as GridApi, c as GridOptions, j as GridEventType } from './api-CUQtfQR4.js';
|
|
2
|
+
export { M as MachTableOptionExplanation, R as ResolvedMachTableConfig, a as ResolvedMachTableGridOptions, m as mergeMachTableConfig, n as normalizeMachTableConfig, r as resolveMachTableGridOptions } from './configuration-D4gQ2s21.js';
|
|
3
3
|
|
|
4
4
|
/** Bounded structural comparison for small immutable config values, never row data. */
|
|
5
5
|
declare function equivalentConfigValue(left: unknown, right: unknown, depth?: number): boolean;
|
package/dist/analysis.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WorkbenchOptions, a as WorkbenchHandle } from './shared-
|
|
2
|
-
import './api-
|
|
1
|
+
import { W as WorkbenchOptions, a as WorkbenchHandle } from './shared-BgBZ4-2C.cjs';
|
|
2
|
+
import './api-CUQtfQR4.cjs';
|
|
3
3
|
|
|
4
4
|
type PivotAggregate = "sum" | "count" | "avg" | "min" | "max";
|
|
5
5
|
type PivotDimension = string | number | boolean | null;
|
package/dist/analysis.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WorkbenchOptions, a as WorkbenchHandle } from './shared-
|
|
2
|
-
import './api-
|
|
1
|
+
import { W as WorkbenchOptions, a as WorkbenchHandle } from './shared-h73PMB5p.js';
|
|
2
|
+
import './api-CUQtfQR4.js';
|
|
3
3
|
|
|
4
4
|
type PivotAggregate = "sum" | "count" | "avg" | "min" | "max";
|
|
5
5
|
type PivotDimension = string | number | boolean | null;
|
|
@@ -585,8 +585,8 @@ declare const DEFAULT_LOCALE: {
|
|
|
585
585
|
readonly statusSum: "和 {n}";
|
|
586
586
|
readonly statusAvg: "均 {n}";
|
|
587
587
|
readonly statusCount: "计 {n}";
|
|
588
|
-
readonly emptyRows: "
|
|
589
|
-
readonly emptyRowsHint: "
|
|
588
|
+
readonly emptyRows: "没有可显示的行";
|
|
589
|
+
readonly emptyRowsHint: "暂无数据,可调整查询条件后重试";
|
|
590
590
|
readonly paginationTotal: "共 {n} 条";
|
|
591
591
|
readonly paginationPage: "第 {a} / {b} 页";
|
|
592
592
|
readonly perPage: "{n} 条/页";
|
|
@@ -585,8 +585,8 @@ declare const DEFAULT_LOCALE: {
|
|
|
585
585
|
readonly statusSum: "和 {n}";
|
|
586
586
|
readonly statusAvg: "均 {n}";
|
|
587
587
|
readonly statusCount: "计 {n}";
|
|
588
|
-
readonly emptyRows: "
|
|
589
|
-
readonly emptyRowsHint: "
|
|
588
|
+
readonly emptyRows: "没有可显示的行";
|
|
589
|
+
readonly emptyRowsHint: "暂无数据,可调整查询条件后重试";
|
|
590
590
|
readonly paginationTotal: "共 {n} 条";
|
|
591
591
|
readonly paginationPage: "第 {a} / {b} 页";
|
|
592
592
|
readonly perPage: "{n} 条/页";
|
package/dist/business.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as ValueOutputTarget, C as ColDef } from './api-
|
|
1
|
+
import { V as ValueOutputTarget, C as ColDef } from './api-CUQtfQR4.cjs';
|
|
2
2
|
import { D as DictionaryKey, a as DictionaryEntry } from './cachedDictionary-HXvqrDI0.cjs';
|
|
3
3
|
|
|
4
4
|
type DictionaryDisplay = "code" | "label" | "code-label";
|
package/dist/business.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as ValueOutputTarget, C as ColDef } from './api-
|
|
1
|
+
import { V as ValueOutputTarget, C as ColDef } from './api-CUQtfQR4.js';
|
|
2
2
|
import { D as DictionaryKey, a as DictionaryEntry } from './cachedDictionary-HXvqrDI0.js';
|
|
3
3
|
|
|
4
4
|
type DictionaryDisplay = "code" | "label" | "code-label";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as GridOptions, d as GridDataProcessor, C as ColDef, e as GridComponents } from './api-
|
|
1
|
+
import { c as GridOptions, d as GridDataProcessor, C as ColDef, e as GridComponents } from './api-CUQtfQR4.cjs';
|
|
2
2
|
|
|
3
3
|
type MachTablePresetSelection = string | readonly string[] | false;
|
|
4
4
|
type MachTableInstanceOptionKey = "rowData" | "columnDefs" | "datasource" | "loading" | "error" | "initialState" | "persistence" | "components" | "columnTypes";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as GridOptions, d as GridDataProcessor, C as ColDef, e as GridComponents } from './api-
|
|
1
|
+
import { c as GridOptions, d as GridDataProcessor, C as ColDef, e as GridComponents } from './api-CUQtfQR4.js';
|
|
2
2
|
|
|
3
3
|
type MachTablePresetSelection = string | readonly string[] | false;
|
|
4
4
|
type MachTableInstanceOptionKey = "rowData" | "columnDefs" | "datasource" | "loading" | "error" | "initialState" | "persistence" | "components" | "columnTypes";
|
package/dist/import.d.cts
CHANGED
package/dist/import.d.ts
CHANGED