rowvia 0.3.3 → 0.3.4

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.
@@ -81,6 +81,10 @@ export interface WorkflowDetailOptions {
81
81
  }) => FlowDefinition | void | Promise<FlowDefinition | void>;
82
82
  onError?: (error: unknown, command: WorkflowDetailCommand) => void;
83
83
  onSelectNode?: (nodeId: string) => void;
84
+ /** Host-owned filter UI; its anchor remains stable across controlled updates. */
85
+ onFilter?: (anchor: HTMLElement) => void;
86
+ filterNode?: (node: FlowNode) => boolean;
87
+ filterLabel?: string;
84
88
  renderField?: (container: HTMLElement, field: FormItem | NodeField, context: WorkflowDetailRenderContext) => void | (() => void);
85
89
  renderSystemField?: (container: HTMLElement, field: {
86
90
  key: 'owner' | 'schedule' | 'estimate';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rowvia",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "零运行时依赖的 TypeScript 数据表格、甘特图与人员排期组件库",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -10,7 +10,8 @@
10
10
  "build:lib": "vite build --config vite.lib.config.ts && vite build --config vite.fields.config.ts && npm run build:types",
11
11
  "preview": "vite preview",
12
12
  "typecheck": "tsc --noEmit",
13
- "test": "esbuild src/index.ts --bundle --format=esm --outfile=dist-test/rowvia.mjs --loader:.ts=ts --log-level=error && node test/smoke.mjs && node test/gantt.mjs && node test/personnel.mjs && node test/work-items.mjs && node test/fields.mjs && node test/field-controls.mjs && node test/form-surface.mjs && node test/field-interactions.mjs && node test/node-flow.mjs && node test/workflow-detail.mjs && node test/detail-comments.mjs && node test/detail-history.mjs && node test/refactor.mjs",
13
+ "test": "esbuild src/index.ts --bundle --format=esm --outfile=dist-test/rowvia.mjs --loader:.ts=ts --log-level=error && node test/smoke.mjs && node test/gantt.mjs && node test/personnel.mjs && node test/work-items.mjs && node test/fields.mjs && node test/field-controls.mjs && node test/form-surface.mjs && node test/field-interactions.mjs && node test/node-flow.mjs && node test/workflow-detail.mjs && node test/detail-comments.mjs && node test/detail-history.mjs && node test/refactor.mjs && node test/header-context-menu.mjs",
14
+ "test:header-context-menu": "esbuild src/index.ts --bundle --format=esm --outfile=dist-test/rowvia.mjs --loader:.ts=ts --log-level=error && node test/header-context-menu.mjs",
14
15
  "test:work-items": "node test/work-items.mjs",
15
16
  "test:node-flow": "node test/node-flow.mjs",
16
17
  "test:workflow-detail": "node test/workflow-detail.mjs",