foggy-data-viewer 1.0.1-beta.48 → 1.0.1-beta.49

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 CHANGED
@@ -184,7 +184,11 @@ const amountField = {
184
184
  />
185
185
  ```
186
186
 
187
- 后端可通过 `foggy.data-viewer.table-defaults.system/tenants/roles` 配置 fallback;用户默认配置仍可通过 `listPreset` 覆盖。`requiredRuntimeColumns` 只会追加到 `fetchData(params).columns`,不会显示为普通列。
187
+ 后端可通过 `foggy.data-viewer.table-defaults.system/tenants/roles` 配置 fallback;用户默认配置仍可通过 `listPreset` 覆盖。
188
+
189
+ 从 `1.0.1-beta.49` 起,`requiredFields` / `requiredRuntimeColumns` 仅声明执行依赖:请求字段为用户选择 U 与依赖 R 的并集。用户主动选择的 U∩R 正常展示、保存并计入 50 字段额度;隐式补入的 R\\U 不自动展示、不保存、不占用户额度。永久隐藏的系统字段应使用独立元数据规则,不能由 required 推断。旧 `internalFields` 额度豁免选项不再生效。
190
+
191
+ 恢复方案中的维度 ID 时,`SelectFilter` 会通过当前 `filterMemberLoader` 主动回填名称,无需打开下拉。成员接口应在 `selectedItems` 返回不在当前分页内的已选成员;回填不改变 DSL 值或触发额外筛选/主表请求。
188
192
 
189
193
  ### DataTable Events
190
194
 
@@ -12,9 +12,9 @@ interface Props {
12
12
  schema?: TableSchema;
13
13
  /** 数据加载函数 */
14
14
  fetchData?: (params: FetchDataParams) => Promise<FetchDataResult>;
15
- /** 业务查询所需但不一定展示的字段;不会作为用户字段保存 */
15
+ /** 执行依赖;隐式补入不展示/保存,用户主动选择时正常展示/保存。 */
16
16
  requiredFields?: string[];
17
- /** 业务查询所需但不一定展示的运行时字段;不会作为用户字段保存 */
17
+ /** 执行依赖,与 requiredFields 同义,不限制用户选择。 */
18
18
  requiredRuntimeColumns?: string[];
19
19
  /** 列配置 */
20
20
  columns?: EnhancedColumnSchema[];
@@ -10,6 +10,7 @@ interface Props {
10
10
  clearConditions?: () => void | Promise<void>;
11
11
  availableColumns?: EnhancedColumnSchema[];
12
12
  lockedColumns?: string[];
13
+ /** @deprecated Execution dependencies belong to the query layer; never filter presets. */
13
14
  requiredRuntimeColumns?: string[];
14
15
  filterMemberLoader?: (request: MemberQueryRequest) => Promise<MemberQueryResponse>;
15
16
  triggerMode?: 'button' | 'none';