@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.
- package/dist/fetcher-viewer.css +1 -0
- package/dist/filter/panel/AvailableFilterSelect.d.ts +3 -1
- package/dist/filter/panel/AvailableFilterSelect.d.ts.map +1 -1
- package/dist/filter/panel/EditableFilterPanel.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +1717 -1090
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/table/ViewTable.d.ts +88 -0
- package/dist/table/ViewTable.d.ts.map +1 -0
- package/dist/table/cell/ActionCell.d.ts +107 -0
- package/dist/table/cell/ActionCell.d.ts.map +1 -0
- package/dist/table/cell/ActionsCell.d.ts +97 -0
- package/dist/table/cell/ActionsCell.d.ts.map +1 -0
- package/dist/table/cell/ImageCell.d.ts +1 -1
- package/dist/table/cell/ImageCell.d.ts.map +1 -1
- package/dist/table/cell/cellRegistry.d.ts +2 -1
- package/dist/table/cell/cellRegistry.d.ts.map +1 -1
- package/dist/table/cell/index.d.ts +2 -0
- package/dist/table/cell/index.d.ts.map +1 -1
- package/dist/table/index.d.ts +3 -0
- package/dist/table/index.d.ts.map +1 -1
- package/dist/table/setting/TableFieldItem.d.ts +53 -0
- package/dist/table/setting/TableFieldItem.d.ts.map +1 -0
- package/dist/table/setting/TableSettingPanel.d.ts +7 -0
- package/dist/table/setting/TableSettingPanel.d.ts.map +1 -0
- package/dist/table/setting/index.d.ts +3 -0
- package/dist/table/setting/index.d.ts.map +1 -0
- package/dist/table/types.d.ts +135 -0
- package/dist/table/types.d.ts.map +1 -0
- package/dist/topbar/BarItem.d.ts +7 -0
- package/dist/topbar/BarItem.d.ts.map +1 -0
- package/dist/topbar/ColumnHeightBarItem.d.ts +8 -0
- package/dist/topbar/ColumnHeightBarItem.d.ts.map +1 -0
- package/dist/topbar/FilterBarItem.d.ts +8 -0
- package/dist/topbar/FilterBarItem.d.ts.map +1 -0
- package/dist/topbar/RefreshDataBarItem.d.ts +8 -0
- package/dist/topbar/RefreshDataBarItem.d.ts.map +1 -0
- package/dist/topbar/ShareLinkBarItem.d.ts +8 -0
- package/dist/topbar/ShareLinkBarItem.d.ts.map +1 -0
- package/dist/topbar/TopBar.d.ts +6 -0
- package/dist/topbar/TopBar.d.ts.map +1 -0
- package/dist/topbar/TypedBarItem.d.ts +11 -0
- package/dist/topbar/TypedBarItem.d.ts.map +1 -0
- package/dist/topbar/barItemRegistry.d.ts +4 -0
- package/dist/topbar/barItemRegistry.d.ts.map +1 -0
- package/dist/topbar/index.d.ts +9 -0
- package/dist/topbar/index.d.ts.map +1 -0
- package/dist/topbar/types.d.ts +4 -0
- package/dist/topbar/types.d.ts.map +1 -0
- package/dist/types.d.ts +4 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/viewer/Viewer.d.ts +13 -0
- package/dist/viewer/Viewer.d.ts.map +1 -0
- package/dist/viewer/ViewerSharedValueContext.d.ts +26 -0
- package/dist/viewer/ViewerSharedValueContext.d.ts.map +1 -0
- package/dist/viewer/index.d.ts +4 -0
- package/dist/viewer/index.d.ts.map +1 -0
- package/dist/viewer/types.d.ts +35 -0
- package/dist/viewer/types.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -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 @@
|
|
|
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.
|
|
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",
|