@canvas-components/list-table 0.3.32 → 0.3.33

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/dist/index.cjs CHANGED
@@ -33308,7 +33308,7 @@ var ListTableHeaderActionController = class {
33308
33308
  columnTitle: column.title ?? "",
33309
33309
  anchorRect: this.options.toViewportRect(anchorRect),
33310
33310
  value: buildFilterPanelValue(currentValue),
33311
- filterOptionImmediateApply: this.options.getOptions().query?.filterOptionImmediateApply,
33311
+ filterOptionImmediateApply: this.options.getOptions().query?.filterOptionImmediateApply ?? true,
33312
33312
  modes: resolveFilterModes(column),
33313
33313
  options: panelOptions,
33314
33314
  loadOptions,
@@ -33563,7 +33563,7 @@ var ListTableHeaderActionController = class {
33563
33563
  this.options.setFilterState(next.filterState);
33564
33564
  this.options.clearExpandedRows();
33565
33565
  this.options.clearCollapsedRows();
33566
- if (!this.options.getOptions().query?.filterOptionImmediateApply) {
33566
+ if (this.options.getOptions().query?.filterOptionImmediateApply === false) {
33567
33567
  this.options.filterPanel.hide();
33568
33568
  }
33569
33569
  this.options.applyFilterQueryAsync();
package/dist/index.d.cts CHANGED
@@ -2048,9 +2048,9 @@ interface ListTableQueryOptions<RecordType> {
2048
2048
  /** 字段缓存容量上限(估算字节数),默认 32 MiB。 */
2049
2049
  fieldCacheMaxBytes?: number;
2050
2050
  /**
2051
- * 点击过滤候选项后是否立即应用过滤,并保持过滤面板打开。
2051
+ * 点击单个过滤候选项后是否立即应用过滤,并保持过滤面板打开;全选仍需点击应用。
2052
2052
  *
2053
- * @default false
2053
+ * @default true
2054
2054
  */
2055
2055
  filterOptionImmediateApply?: boolean;
2056
2056
  mergeCell?: ListTableMergeCellOptions;
package/dist/index.d.ts CHANGED
@@ -2048,9 +2048,9 @@ interface ListTableQueryOptions<RecordType> {
2048
2048
  /** 字段缓存容量上限(估算字节数),默认 32 MiB。 */
2049
2049
  fieldCacheMaxBytes?: number;
2050
2050
  /**
2051
- * 点击过滤候选项后是否立即应用过滤,并保持过滤面板打开。
2051
+ * 点击单个过滤候选项后是否立即应用过滤,并保持过滤面板打开;全选仍需点击应用。
2052
2052
  *
2053
- * @default false
2053
+ * @default true
2054
2054
  */
2055
2055
  filterOptionImmediateApply?: boolean;
2056
2056
  mergeCell?: ListTableMergeCellOptions;
package/dist/index.js CHANGED
@@ -33286,7 +33286,7 @@ var ListTableHeaderActionController = class {
33286
33286
  columnTitle: column.title ?? "",
33287
33287
  anchorRect: this.options.toViewportRect(anchorRect),
33288
33288
  value: buildFilterPanelValue(currentValue),
33289
- filterOptionImmediateApply: this.options.getOptions().query?.filterOptionImmediateApply,
33289
+ filterOptionImmediateApply: this.options.getOptions().query?.filterOptionImmediateApply ?? true,
33290
33290
  modes: resolveFilterModes(column),
33291
33291
  options: panelOptions,
33292
33292
  loadOptions,
@@ -33541,7 +33541,7 @@ var ListTableHeaderActionController = class {
33541
33541
  this.options.setFilterState(next.filterState);
33542
33542
  this.options.clearExpandedRows();
33543
33543
  this.options.clearCollapsedRows();
33544
- if (!this.options.getOptions().query?.filterOptionImmediateApply) {
33544
+ if (this.options.getOptions().query?.filterOptionImmediateApply === false) {
33545
33545
  this.options.filterPanel.hide();
33546
33546
  }
33547
33547
  this.options.applyFilterQueryAsync();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canvas-components/list-table",
3
- "version": "0.3.32",
3
+ "version": "0.3.33",
4
4
  "description": "Framework-agnostic list table core engine.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -28,9 +28,9 @@
28
28
  "dependencies": {
29
29
  "@ant-design/icons-svg": "4.6.0",
30
30
  "@canvas-components/barcode": "0.2.2",
31
- "@canvas-components/chart": "0.3.7",
32
31
  "@canvas-components/stats": "0.1.4",
33
32
  "@canvas-components/qrcode": "0.2.2",
33
+ "@canvas-components/chart": "0.3.7",
34
34
  "@canvas-components/utils": "0.2.8"
35
35
  },
36
36
  "scripts": {