rowvia 0.2.2 → 0.2.3

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.
@@ -53,6 +53,17 @@ export interface WorkItemPageConfig {
53
53
  /** Opt in to browser URL hash integration. Disabled for embedded pages. */
54
54
  syncLocationHash?: boolean;
55
55
  onDataChange?: (items: WorkItem[]) => void;
56
+ /** Embedded business applications own their data; do not restore browser demo state. */
57
+ persistence?: "local" | "none";
58
+ showSavedViews?: boolean;
59
+ allowCustomFields?: boolean;
60
+ canCreate?: boolean;
61
+ initialView?: import("./model").ViewState;
62
+ onOpenDetail?: (item: WorkItem) => void;
63
+ onCreate?: () => void;
64
+ onSaveView?: (state: import("./model").ViewState & {
65
+ columns: import("rowvia").ColumnState[];
66
+ }) => void;
56
67
  }
57
68
  /** The table, create form, and detail layout are three independent configurations. */
58
69
  export declare function topicDemoConfig(container: HTMLElement): WorkItemPageConfig;
@@ -19,5 +19,6 @@ export declare function createWorkItemPage(config: WorkItemPageConfig): {
19
19
  showTerminated: boolean;
20
20
  };
21
21
  getItems: () => WorkItem[];
22
+ setItems: (items: WorkItem[]) => void;
22
23
  destroy: () => void;
23
24
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rowvia",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "零运行时依赖的 TypeScript 数据表格、甘特图与人员排期组件库",
5
5
  "type": "module",
6
6
  "scripts": {