@ahoo-wang/fetcher-viewer 3.6.2 → 3.6.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.
Files changed (63) hide show
  1. package/dist/fetcher-viewer.css +1 -0
  2. package/dist/filter/panel/AvailableFilterSelect.d.ts +3 -1
  3. package/dist/filter/panel/AvailableFilterSelect.d.ts.map +1 -1
  4. package/dist/filter/panel/EditableFilterPanel.d.ts.map +1 -1
  5. package/dist/index.d.ts +1 -0
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.es.js +1717 -1090
  8. package/dist/index.es.js.map +1 -1
  9. package/dist/index.umd.js +1 -1
  10. package/dist/index.umd.js.map +1 -1
  11. package/dist/table/ViewTable.d.ts +88 -0
  12. package/dist/table/ViewTable.d.ts.map +1 -0
  13. package/dist/table/cell/ActionCell.d.ts +107 -0
  14. package/dist/table/cell/ActionCell.d.ts.map +1 -0
  15. package/dist/table/cell/ActionsCell.d.ts +97 -0
  16. package/dist/table/cell/ActionsCell.d.ts.map +1 -0
  17. package/dist/table/cell/ImageCell.d.ts +1 -1
  18. package/dist/table/cell/ImageCell.d.ts.map +1 -1
  19. package/dist/table/cell/cellRegistry.d.ts +2 -1
  20. package/dist/table/cell/cellRegistry.d.ts.map +1 -1
  21. package/dist/table/cell/index.d.ts +2 -0
  22. package/dist/table/cell/index.d.ts.map +1 -1
  23. package/dist/table/index.d.ts +3 -0
  24. package/dist/table/index.d.ts.map +1 -1
  25. package/dist/table/setting/TableFieldItem.d.ts +53 -0
  26. package/dist/table/setting/TableFieldItem.d.ts.map +1 -0
  27. package/dist/table/setting/TableSettingPanel.d.ts +7 -0
  28. package/dist/table/setting/TableSettingPanel.d.ts.map +1 -0
  29. package/dist/table/setting/index.d.ts +3 -0
  30. package/dist/table/setting/index.d.ts.map +1 -0
  31. package/dist/table/types.d.ts +135 -0
  32. package/dist/table/types.d.ts.map +1 -0
  33. package/dist/topbar/BarItem.d.ts +7 -0
  34. package/dist/topbar/BarItem.d.ts.map +1 -0
  35. package/dist/topbar/ColumnHeightBarItem.d.ts +8 -0
  36. package/dist/topbar/ColumnHeightBarItem.d.ts.map +1 -0
  37. package/dist/topbar/FilterBarItem.d.ts +8 -0
  38. package/dist/topbar/FilterBarItem.d.ts.map +1 -0
  39. package/dist/topbar/RefreshDataBarItem.d.ts +8 -0
  40. package/dist/topbar/RefreshDataBarItem.d.ts.map +1 -0
  41. package/dist/topbar/ShareLinkBarItem.d.ts +8 -0
  42. package/dist/topbar/ShareLinkBarItem.d.ts.map +1 -0
  43. package/dist/topbar/TopBar.d.ts +6 -0
  44. package/dist/topbar/TopBar.d.ts.map +1 -0
  45. package/dist/topbar/TypedBarItem.d.ts +11 -0
  46. package/dist/topbar/TypedBarItem.d.ts.map +1 -0
  47. package/dist/topbar/barItemRegistry.d.ts +4 -0
  48. package/dist/topbar/barItemRegistry.d.ts.map +1 -0
  49. package/dist/topbar/index.d.ts +9 -0
  50. package/dist/topbar/index.d.ts.map +1 -0
  51. package/dist/topbar/types.d.ts +4 -0
  52. package/dist/topbar/types.d.ts.map +1 -0
  53. package/dist/types.d.ts +4 -0
  54. package/dist/types.d.ts.map +1 -1
  55. package/dist/viewer/Viewer.d.ts +13 -0
  56. package/dist/viewer/Viewer.d.ts.map +1 -0
  57. package/dist/viewer/ViewerSharedValueContext.d.ts +26 -0
  58. package/dist/viewer/ViewerSharedValueContext.d.ts.map +1 -0
  59. package/dist/viewer/index.d.ts +4 -0
  60. package/dist/viewer/index.d.ts.map +1 -0
  61. package/dist/viewer/types.d.ts +35 -0
  62. package/dist/viewer/types.d.ts.map +1 -0
  63. package/package.json +1 -1
@@ -0,0 +1,6 @@
1
+ import { BarItemType } from './TypedBarItem';
2
+ export interface TopBarProps {
3
+ barItems: BarItemType[];
4
+ }
5
+ export declare function TopBar(props: TopBarProps): import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=TopBar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TopBar.d.ts","sourceRoot":"","sources":["../../src/topbar/TopBar.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAgB,MAAM,gBAAgB,CAAC;AAO3D,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,WAAW,EAAE,CAAC;CACzB;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,2CA2BxC"}
@@ -0,0 +1,11 @@
1
+ import { TypeCapable } from '../registry';
2
+ import { default as React } from 'react';
3
+ import { TopBarItemProps } from './types';
4
+ export type BarItemType = string;
5
+ export interface TypedTopBarItemProps extends TopBarItemProps, TypeCapable<BarItemType> {
6
+ }
7
+ export declare function TypedBarItem(props: TypedTopBarItemProps): React.FunctionComponentElement<TopBarItemProps> | undefined;
8
+ export declare namespace TypedBarItem {
9
+ var displayName: string;
10
+ }
11
+ //# sourceMappingURL=TypedBarItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TypedBarItem.d.ts","sourceRoot":"","sources":["../../src/topbar/TypedBarItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC;AAEjC,MAAM,WAAW,oBACf,SAAQ,eAAe,EAAE,WAAW,CAAC,WAAW,CAAC;CAAG;AAEtD,wBAAgB,YAAY,CAAC,KAAK,EAAE,oBAAoB,+DAcvD;yBAde,YAAY"}
@@ -0,0 +1,4 @@
1
+ import { TypedComponentRegistry } from '../registry';
2
+ import { TopBarItemProps } from './types';
3
+ export declare const barItemRegistry: TypedComponentRegistry<string, TopBarItemProps>;
4
+ //# sourceMappingURL=barItemRegistry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"barItemRegistry.d.ts","sourceRoot":"","sources":["../../src/topbar/barItemRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAY1C,eAAO,MAAM,eAAe,iDAQ1B,CAAC"}
@@ -0,0 +1,9 @@
1
+ export * from './TopBar';
2
+ export * from './types';
3
+ export * from './barItemRegistry';
4
+ export * from './TypedBarItem';
5
+ export * from './BarItem';
6
+ export * from './ColumnHeightBarItem';
7
+ export * from './FilterBarItem';
8
+ export * from './RefreshDataBarItem';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/topbar/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,uBAAuB,CAAA;AACrC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,sBAAsB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { StyleCapable } from '../types';
2
+ export interface TopBarItemProps extends StyleCapable {
3
+ }
4
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/topbar/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,MAAM,WAAW,eAAgB,SAAQ,YAAY;CACpD"}
package/dist/types.d.ts CHANGED
@@ -1,5 +1,9 @@
1
1
  import { default as React } from 'react';
2
2
  export type Optional<T = any> = T | undefined;
3
+ export interface DataSourceCapable<RecordType = any> {
4
+ list: RecordType[];
5
+ total: number;
6
+ }
3
7
  export interface StyleCapable {
4
8
  style?: React.CSSProperties;
5
9
  className?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,MAAM,QAAQ,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,SAAS,CAAC;AAE9C,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB,CAAC,UAAU,GAAG,GAAG;IACjD,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,MAAM,QAAQ,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,SAAS,CAAC;AAE9C,MAAM,WAAW,iBAAiB,CAAC,UAAU,GAAG,GAAG;IACjD,IAAI,EAAE,UAAU,EAAE,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB,CAAC,UAAU,GAAG,GAAG;IACjD,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB"}
@@ -0,0 +1,13 @@
1
+ import { ViewTableActionColumn } from '../table';
2
+ import { PaginationProps } from 'antd';
3
+ import { View, ViewDefinition } from './';
4
+ import { StyleCapable } from '../types';
5
+ export interface ViewerProps<RecordType> extends StyleCapable {
6
+ name: string;
7
+ view: View;
8
+ definition: ViewDefinition;
9
+ actionColumn: ViewTableActionColumn<RecordType>;
10
+ paginationProps?: Omit<PaginationProps, 'total'>;
11
+ }
12
+ export declare function Viewer<RecordType>(props: ViewerProps<RecordType>): import("react/jsx-runtime").JSX.Element;
13
+ //# sourceMappingURL=Viewer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Viewer.d.ts","sourceRoot":"","sources":["../../src/viewer/Viewer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,EAAsB,eAAe,EAAS,MAAM,MAAM,CAAC;AAMlE,OAAO,EAAE,IAAI,EAAc,cAAc,EAAE,MAAM,IAAI,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAuBxC,MAAM,WAAW,WAAW,CAAC,UAAU,CAAE,SAAQ,YAAY;IAC3D,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,IAAI,CAAC;IACX,UAAU,EAAE,cAAc,CAAC;IAC3B,YAAY,EAAE,qBAAqB,CAAC,UAAU,CAAC,CAAC;IAEhD,eAAe,CAAC,EAAE,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;CAClD;AAED,wBAAgB,MAAM,CAAC,UAAU,EAAE,KAAK,EAAE,WAAW,CAAC,UAAU,CAAC,2CA8IhE"}
@@ -0,0 +1,26 @@
1
+ import { ViewColumn } from './types';
2
+ import { SizeType } from 'antd/es/config-provider/SizeContext';
3
+ declare const ViewerSharedValueContext: import('react').Context<{
4
+ aggregateName: string;
5
+ viewName: string;
6
+ viewColumns: ViewColumn[];
7
+ setViewColumns: (viewColumns: ViewColumn[]) => void;
8
+ showFilterPanel: boolean;
9
+ setShowFilterPanel: (showFilterPanel: boolean) => void;
10
+ refreshData: () => void;
11
+ tableSize: SizeType;
12
+ setTableSize: (size: SizeType) => void;
13
+ }>;
14
+ export declare const useViewerSharedValue: () => {
15
+ aggregateName: string;
16
+ viewName: string;
17
+ viewColumns: ViewColumn[];
18
+ setViewColumns: (viewColumns: ViewColumn[]) => void;
19
+ showFilterPanel: boolean;
20
+ setShowFilterPanel: (showFilterPanel: boolean) => void;
21
+ refreshData: () => void;
22
+ tableSize: SizeType;
23
+ setTableSize: (size: SizeType) => void;
24
+ };
25
+ export default ViewerSharedValueContext;
26
+ //# sourceMappingURL=ViewerSharedValueContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewerSharedValueContext.d.ts","sourceRoot":"","sources":["../../src/viewer/ViewerSharedValueContext.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAkB,MAAM,SAAS,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAEpE,QAAA,MAAM,wBAAwB;;;iBAGT,UAAU,EAAE;kCACD,UAAU,EAAE;;0CAGJ,OAAO;;eAItB,QAAQ;yBACV,QAAQ;EAC7B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;iBAZZ,UAAU,EAAE;kCACD,UAAU,EAAE;;0CAGJ,OAAO;;eAItB,QAAQ;yBACV,QAAQ;CAG+C,CAAC;AAE/E,eAAe,wBAAwB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './Viewer';
2
+ export * from './ViewerSharedValueContext';
3
+ export * from './types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/viewer/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,4BAA4B,CAAA;AAC1C,cAAc,SAAS,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { ActiveFilter, AvailableFilterGroup } from '../filter';
2
+ import { TypeCapable } from '../registry';
3
+ import { AttributesCapable } from '../types';
4
+ import { SortOrder } from 'antd/es/table/interface';
5
+ import { SizeType } from 'antd/es/config-provider/SizeContext';
6
+ export interface ViewDefinition {
7
+ name: string;
8
+ columns: ViewColumnDefinition[];
9
+ availableFilters: AvailableFilterGroup[];
10
+ dataSourceUrl: string;
11
+ defaultPageSize: number;
12
+ }
13
+ export interface ViewColumnDefinition extends TypeCapable, AttributesCapable {
14
+ title: string;
15
+ dataIndex: string;
16
+ primaryKey: boolean;
17
+ sorter: boolean | {
18
+ multiple: number;
19
+ };
20
+ }
21
+ export interface View {
22
+ id: string;
23
+ name: string;
24
+ tableSize?: SizeType;
25
+ filters: ActiveFilter[];
26
+ columns: ViewColumn[];
27
+ }
28
+ export interface ViewColumn {
29
+ dataIndex: string;
30
+ fixed: boolean;
31
+ visible: boolean;
32
+ width?: string;
33
+ sortOrder?: SortOrder;
34
+ }
35
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/viewer/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAmB,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAE/D,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,oBAAoB,EAAE,CAAC;IAChC,gBAAgB,EAAE,oBAAoB,EAAE,CAAC;IACzC,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,oBAAqB,SAAQ,WAAW,EAAE,iBAAiB;IAC1E,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,OAAO,GAAG;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAC,CAAC;CACvC;AAED,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,OAAO,EAAE,UAAU,EAAE,CAAC;CACvB;AA8BD,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,SAAS,CAAA;CACtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ahoo-wang/fetcher-viewer",
3
- "version": "3.6.2",
3
+ "version": "3.6.3",
4
4
  "description": "A comprehensive React component library for API documentation viewing and data 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 and remote data selection.",
5
5
  "keywords": [
6
6
  "react",