@byteluck-fe/runtime-engine 7.0.1-beta.5 → 7.0.1-beta.7

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.
@@ -13,6 +13,10 @@ export default function useAgGrid(props: ExtractPropTypes<typeof basicProps>, em
13
13
  gridInterface: any;
14
14
  showAgSelectedCellBorderColor: ComputedRef<"transparent" | "var(--bl-brand-c)">;
15
15
  onGridReady: (args: GridReadyEvent) => void;
16
+ onFirstDataRendered: () => void;
17
+ onModelUpdated: () => void;
18
+ onVirtualColumnsChanged: () => void;
19
+ onBodyScrollEnd: () => void;
16
20
  getRowClass: (params: RowClassParams<any, any>) => string;
17
21
  getRowId: (node: GetRowIdParams) => any;
18
22
  getRowClassRules: {
@@ -0,0 +1,9 @@
1
+ import { Engine, Plugin } from '@byteluck-fe/model-driven-engine';
2
+
3
+ /**
4
+ * StylePlugin 注入页面 CSS 后,把 [data-cid="column__field"] 展开到 AG Grid 的 col-id。
5
+ */
6
+ export declare class ExpandListColumnPageCssPlugin implements Plugin {
7
+ pluginName: string;
8
+ apply(engine: Engine): void;
9
+ }
@@ -21,6 +21,7 @@ export * from './StatisticsPlugin';
21
21
  export * from './WorkerDataStorePlugin';
22
22
  export * from './CalcPlugin';
23
23
  export * from './ListCheckStatePlugin';
24
+ export * from './ExpandListColumnPageCssPlugin';
24
25
  export * from './GlobalLockPlugin';
25
26
  export * from './PageRulePlugin';
26
27
  export * from './NoPlugin';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * 页面 CSS 约定写 [data-cid="column__field"]。
3
+ * AG Grid 表头/单元格实际属性是 col-id="field",需要把选择器展开过去。
4
+ */
5
+ export declare function expandColumnDataCidSelectors(css: string): string;
@@ -0,0 +1,11 @@
1
+ import { GridApi } from '@ag-grid-community/core';
2
+
3
+ /**
4
+ * 从自定义表头/单元格组件根节点向上打 data-cid,覆盖虚拟滚动后新建的 DOM。
5
+ */
6
+ export declare function stampClosestAgColumnDataCid(fromEl: Element | null | undefined, controlId?: string | null): void;
7
+ /**
8
+ * 列表页页面 CSS 约定使用 [data-cid="column__xxx"]。
9
+ * AG Grid 表头/单元格默认只有 col-id(field),需要把控件 id 打到 DOM 上。
10
+ */
11
+ export declare function stampGridColumnDataCid(api: GridApi | null | undefined, root?: HTMLElement | null): void;
@@ -1,6 +1,7 @@
1
1
  import { ColumnControlsKeys, ControlsKeys, DataBindModelType, Schema } from '@byteluck-fe/model-driven-core-all';
2
2
 
3
3
  export declare function normalizeRegularRules(schema: any): void;
4
+ export declare function normalizeTableHeaders(schema: any): void;
4
5
  export declare function findBindInfoInList(schema: any, modelBindInfoList?: DataBindModelType[]): DataBindModelType | undefined;
5
6
  export declare function columnSchemaFillFieldCode(schema: Schema<ColumnControlsKeys>, dataBindModel: DataBindModelType): void;
6
7
  export declare function schemaFillDataBindModel(schema: Schema<ControlsKeys>, dataBindModel: DataBindModelType): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/runtime-engine",
3
- "version": "7.0.1-beta.5",
3
+ "version": "7.0.1-beta.7",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/runtime-engine.js",