@ahoo-wang/fetcher-viewer 2.15.2 → 2.15.5
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 +3 -9
- package/README.zh-CN.md +3 -8
- package/dist/filter/panel/FilterPanel.d.ts +14 -2
- package/dist/filter/panel/FilterPanel.d.ts.map +1 -1
- package/dist/index.es.js +345 -340
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
[](https://www.npmjs.com/package/@ahoo-wang/fetcher-viewer)
|
|
8
8
|
[](https://www.npmjs.com/package/@ahoo-wang/fetcher-viewer)
|
|
9
9
|
[](https://deepwiki.com/Ahoo-Wang/fetcher)
|
|
10
|
+
[](https://fetcher.ahoo.me/?path=/docs/viewer-introduction--docs)
|
|
10
11
|
|
|
11
12
|
A comprehensive React component library for data visualization and filtering, built on top of Ant Design and the Fetcher ecosystem. Provides reusable UI components for building rich data-driven applications with advanced filtering capabilities.
|
|
12
13
|
|
|
@@ -402,12 +403,5 @@ This project is licensed under the Apache License 2.0 - see the [LICENSE](../../
|
|
|
402
403
|
|
|
403
404
|
## 📞 Support
|
|
404
405
|
|
|
405
|
-
- 📖 [Documentation](https://github.com/Ahoo-Wang/fetcher/tree/master/packages/
|
|
406
|
-
- 🐛 [Issues](https://github.com/Ahoo-Wang/fetcher/issues)
|
|
407
|
-
- 💬 [Discussions](https://github.com/Ahoo-Wang/fetcher/discussions)
|
|
408
|
-
|
|
409
|
-
---
|
|
410
|
-
|
|
411
|
-
Made with ❤️ by the Fetcher team</content>
|
|
412
|
-
</xai:function_call">Now I need to create the Chinese version of the README as well. Let me create README.zh-CN.md</content>
|
|
413
|
-
</xai:function_call">Now I need to create the Chinese version of the README as well. Let me create README.zh-CN.md
|
|
406
|
+
- 📖 [Documentation](https://github.com/Ahoo-Wang/fetcher/tree/master/packages/viewer)
|
|
407
|
+
- 🐛 [Issues](https://github.com/Ahoo-Wang/fetcher/issues)
|
package/README.zh-CN.md
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
[](https://www.npmjs.com/package/@ahoo-wang/fetcher-viewer)
|
|
8
8
|
[](https://www.npmjs.com/package/@ahoo-wang/fetcher-viewer)
|
|
9
9
|
[](https://deepwiki.com/Ahoo-Wang/fetcher)
|
|
10
|
+
[](https://fetcher.ahoo.me/?path=/docs/viewer-introduction--docs)
|
|
10
11
|
|
|
11
12
|
一个全面的 React 组件库,用于数据可视化和过滤,基于 Ant Design 和 Fetcher 生态系统。提供可重用的 UI 组件,用于构建具有高级过滤功能的数据驱动应用程序。
|
|
12
13
|
|
|
@@ -402,11 +403,5 @@ function AdvancedSearch() {
|
|
|
402
403
|
|
|
403
404
|
## 📞 支持
|
|
404
405
|
|
|
405
|
-
- 📖 [文档](https://github.com/Ahoo-Wang/fetcher/tree/master/packages/
|
|
406
|
-
- 🐛 [问题](https://github.com/Ahoo-Wang/fetcher/issues)
|
|
407
|
-
- 💬 [讨论](https://github.com/Ahoo-Wang/fetcher/discussions)
|
|
408
|
-
|
|
409
|
-
---
|
|
410
|
-
|
|
411
|
-
由 Fetcher 团队用 ❤️ 制作</content>
|
|
412
|
-
</xai:function_call">Now let me run the tests to make sure everything is working correctly.
|
|
406
|
+
- 📖 [文档](https://github.com/Ahoo-Wang/fetcher/tree/master/packages/viewer)
|
|
407
|
+
- 🐛 [问题](https://github.com/Ahoo-Wang/fetcher/issues)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as React, Key } from 'react';
|
|
1
|
+
import { default as React, Key, RefAttributes } from 'react';
|
|
2
2
|
import { TypedFilterProps } from '../TypedFilter';
|
|
3
3
|
import { Condition } from '@ahoo-wang/fetcher-wow';
|
|
4
4
|
import { ColProps, ButtonProps } from 'antd';
|
|
@@ -7,7 +7,19 @@ export interface ActiveFilter extends Omit<TypedFilterProps, 'onChange' | 'ref'>
|
|
|
7
7
|
key: Key;
|
|
8
8
|
onRemove?: () => void;
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface FilterPanelRef {
|
|
11
|
+
/**
|
|
12
|
+
* Triggers the search action using the current filter values.
|
|
13
|
+
* Typically calls the `onSearch` callback with the composed filter condition.
|
|
14
|
+
*/
|
|
15
|
+
search(): void;
|
|
16
|
+
/**
|
|
17
|
+
* Resets all filter values to their initial state.
|
|
18
|
+
* Typically clears the filters and triggers any associated reset logic.
|
|
19
|
+
*/
|
|
20
|
+
reset(): void;
|
|
21
|
+
}
|
|
22
|
+
export interface FilterPanelProps extends RefAttributes<FilterPanelRef> {
|
|
11
23
|
row?: RowProps;
|
|
12
24
|
col?: ColProps;
|
|
13
25
|
actionsCol?: ColProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterPanel.d.ts","sourceRoot":"","sources":["../../../src/filter/panel/FilterPanel.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FilterPanel.d.ts","sourceRoot":"","sources":["../../../src/filter/panel/FilterPanel.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,EAAE,GAAG,EAAE,aAAa,EAAuB,MAAM,OAAO,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElD,OAAO,EAAO,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAA2B,QAAQ,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAItE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,MAAM,WAAW,YACf,SAAQ,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,KAAK,CAAC;IAClD,GAAG,EAAE,GAAG,CAAC;IACT,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,M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