@bit.rhplus/ui2.filter-panel 0.0.16 → 0.0.18
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/filterHelpers.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export function buildValueLabelsMap(filterConfigs:
|
|
2
|
-
export function buildFieldLabelsMap(filterConfigs:
|
|
3
|
-
export function formatFilterValue(value: any, fieldName: string, valueLabelsMap?:
|
|
1
|
+
export function buildValueLabelsMap(filterConfigs: any): any;
|
|
2
|
+
export function buildFieldLabelsMap(filterConfigs: any): any;
|
|
3
|
+
export function formatFilterValue(value: any, fieldName: string, valueLabelsMap?: any, moduleLabels?: any, fieldKey?: string): string;
|
|
4
4
|
export function normalizeFilterValueForBackend(value: any): any;
|
|
5
5
|
export function throttle(func: Function, wait: number): Function;
|
|
6
6
|
export function debounce(func: Function, wait: number): Function;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,31 +1,30 @@
|
|
|
1
1
|
declare const _default: React.MemoExoticComponent<({ filters, onRemoveFilter, onClearAll, onRefresh, fieldLabels, valueLabelsMap, alwaysVisible, isLoading, current, pageSize, total, pageSizeOptions, onPageChange, onPageSizeChange, showPagination, filterFields, onApplyFilters, initialFilterValues, accessToken, searchValue, onSearchChange, searchPlaceholder, showAIButton, aiConnectionId, onFilterMetadata, moduleContext, }: {
|
|
2
|
-
filters?:
|
|
2
|
+
filters?: any[];
|
|
3
3
|
onRemoveFilter: any;
|
|
4
4
|
onClearAll: any;
|
|
5
5
|
onRefresh: any;
|
|
6
|
-
fieldLabels?: {}
|
|
7
|
-
valueLabelsMap?: {}
|
|
8
|
-
alwaysVisible?: boolean
|
|
9
|
-
isLoading?: boolean
|
|
10
|
-
current?: number
|
|
11
|
-
pageSize?: number
|
|
12
|
-
total?: number
|
|
13
|
-
pageSizeOptions?: string[]
|
|
6
|
+
fieldLabels?: {};
|
|
7
|
+
valueLabelsMap?: {};
|
|
8
|
+
alwaysVisible?: boolean;
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
current?: number;
|
|
11
|
+
pageSize?: number;
|
|
12
|
+
total?: number;
|
|
13
|
+
pageSizeOptions?: string[];
|
|
14
14
|
onPageChange: any;
|
|
15
15
|
onPageSizeChange: any;
|
|
16
|
-
showPagination?: boolean
|
|
17
|
-
filterFields?:
|
|
16
|
+
showPagination?: boolean;
|
|
17
|
+
filterFields?: any[];
|
|
18
18
|
onApplyFilters: any;
|
|
19
|
-
initialFilterValues?: {}
|
|
19
|
+
initialFilterValues?: {};
|
|
20
20
|
accessToken: any;
|
|
21
|
-
searchValue?: string
|
|
21
|
+
searchValue?: string;
|
|
22
22
|
onSearchChange: any;
|
|
23
|
-
searchPlaceholder?: string
|
|
24
|
-
showAIButton?: boolean
|
|
23
|
+
searchPlaceholder?: string;
|
|
24
|
+
showAIButton?: boolean;
|
|
25
25
|
aiConnectionId: any;
|
|
26
|
-
onFilterMetadata?:
|
|
27
|
-
moduleContext?:
|
|
28
|
-
}) => import("react/jsx-runtime").JSX.Element
|
|
26
|
+
onFilterMetadata?: any;
|
|
27
|
+
moduleContext?: any;
|
|
28
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
29
29
|
export default _default;
|
|
30
30
|
import React from 'react';
|
|
31
|
-
export { buildValueLabelsMap, buildFieldLabelsMap, normalizeFilterValueForBackend, throttle, formatFilterValue, debounce } from "./filterHelpers";
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bit.rhplus/ui2.filter-panel",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"homepage": "https://bit.cloud/remote-scope/ui2/filter-panel",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "remote-scope",
|
|
8
8
|
"name": "ui2/filter-panel",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.18"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@ant-design/icons": "^5.4.0",
|
|
13
13
|
"antd": "^5.20.6",
|
|
14
|
-
"@bit.rhplus/ui2.ai-button": "0.0.
|
|
15
|
-
"@bit.rhplus/ui2.ai-chat-window": "0.0.
|
|
16
|
-
"@bit.rhplus/ui2.filter": "0.0.
|
|
14
|
+
"@bit.rhplus/ui2.ai-button": "0.0.5",
|
|
15
|
+
"@bit.rhplus/ui2.ai-chat-window": "0.0.7",
|
|
16
|
+
"@bit.rhplus/ui2.filter": "0.0.4"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@
|
|
19
|
+
"@bitdev/react.react-env": "4.0.14"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"react": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"license": "SEE LICENSE IN UNLICENSED",
|
|
25
25
|
"optionalDependencies": {},
|
|
26
26
|
"peerDependenciesMeta": {},
|
|
27
|
+
"type": "module",
|
|
27
28
|
"private": false,
|
|
28
29
|
"publishConfig": {
|
|
29
30
|
"scope": "@bit.rhplus",
|
package/types/env.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
|
|
3
|
+
export type ImportMetaEnv = Record<string, string>;
|
|
4
|
+
|
|
5
|
+
interface ImportMeta {
|
|
6
|
+
readonly env: ImportMetaEnv
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare global {
|
|
10
|
+
namespace NodeJS {
|
|
11
|
+
interface ProcessEnv {
|
|
12
|
+
[key: string]: string;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
File without changes
|