@devtron-labs/devtron-fe-common-lib 0.0.62-beta-1 → 0.0.62-beta-2
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/Common/DraggableWrapper/types.d.ts +1 -4
- package/dist/Common/Hooks/useUrlFilters/index.d.ts +1 -1
- package/dist/Common/Hooks/useUrlFilters/types.d.ts +0 -13
- package/dist/Common/Hooks/useUrlFilters/useUrlFilters.d.ts +14 -2
- package/dist/Common/Types.d.ts +3 -3
- package/dist/Pages/GlobalConfigurations/Authorization/constants.d.ts +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +150 -441
- package/package.json +1 -1
- package/src/Common/DraggableWrapper/types.ts +1 -4
- package/src/Common/Helper.tsx +1 -8
- package/src/Common/Hooks/useUrlFilters/index.ts +1 -1
- package/src/Common/Hooks/useUrlFilters/types.ts +0 -15
- package/src/Common/Hooks/useUrlFilters/useUrlFilters.ts +2 -2
- package/src/Common/Types.ts +2 -3
- package/src/Pages/GlobalConfigurations/Authorization/constants.ts +1 -1
- package/src/index.ts +0 -1
- package/dist/Shared/Components/BulkSelection/BulkSelection.d.ts +0 -4
- package/dist/Shared/Components/BulkSelection/BulkSelectionDropdownItems.d.ts +0 -4
- package/dist/Shared/Components/BulkSelection/BulkSelectionProvider.d.ts +0 -4
- package/dist/Shared/Components/BulkSelection/constants.d.ts +0 -9
- package/dist/Shared/Components/BulkSelection/index.d.ts +0 -4
- package/dist/Shared/Components/BulkSelection/types.d.ts +0 -56
- package/dist/Shared/Components/index.d.ts +0 -1
- package/dist/Shared/index.d.ts +0 -1
- package/src/Assets/Icon/ic-check-all.svg +0 -5
- package/src/Assets/Icon/ic-check-square.svg +0 -4
- package/src/Assets/Icon/ic-close.svg +0 -9
- package/src/Shared/Components/BulkSelection/BulkSelection.tsx +0 -77
- package/src/Shared/Components/BulkSelection/BulkSelectionDropdownItems.tsx +0 -31
- package/src/Shared/Components/BulkSelection/BulkSelectionProvider.tsx +0 -171
- package/src/Shared/Components/BulkSelection/constants.tsx +0 -13
- package/src/Shared/Components/BulkSelection/index.ts +0 -4
- package/src/Shared/Components/BulkSelection/types.tsx +0 -67
- package/src/Shared/Components/index.ts +0 -1
- package/src/Shared/index.ts +0 -1
|
@@ -5,10 +5,7 @@ export declare enum DraggablePositionVariant {
|
|
|
5
5
|
}
|
|
6
6
|
export interface DraggableWrapperProps {
|
|
7
7
|
children: ReactNode;
|
|
8
|
-
|
|
9
|
-
* Support for passing the direct value or calc functions as well
|
|
10
|
-
*/
|
|
11
|
-
zIndex?: number | string;
|
|
8
|
+
zIndex?: number;
|
|
12
9
|
positionVariant?: DraggablePositionVariant;
|
|
13
10
|
/**
|
|
14
11
|
* dragSelector (class - (append with .), id, etc) will be used to identify the grabbable button that will grab the div to drag
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as useUrlFilters } from './useUrlFilters';
|
|
2
|
-
export type { UseUrlFiltersProps
|
|
2
|
+
export type { UseUrlFiltersProps } from './types';
|
|
@@ -1,19 +1,6 @@
|
|
|
1
|
-
import { SortingOrder } from '../../Constants';
|
|
2
1
|
export interface UseUrlFiltersProps<T> {
|
|
3
2
|
/**
|
|
4
3
|
* The key on which the sorting should be applied
|
|
5
4
|
*/
|
|
6
5
|
initialSortKey?: T;
|
|
7
6
|
}
|
|
8
|
-
export interface UseUrlFiltersReturnType<T> {
|
|
9
|
-
pageSize: number;
|
|
10
|
-
changePage: (pageNumber: number) => void;
|
|
11
|
-
changePageSize: (pageSize: number) => void;
|
|
12
|
-
searchKey: string;
|
|
13
|
-
handleSearch: (searchKey: string) => void;
|
|
14
|
-
offset: number;
|
|
15
|
-
sortBy: T;
|
|
16
|
-
sortOrder: SortingOrder;
|
|
17
|
-
handleSorting: (sortBy: T) => void;
|
|
18
|
-
clearFilters: () => void;
|
|
19
|
-
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SortingOrder } from '../../Constants';
|
|
2
|
+
import { UseUrlFiltersProps } from './types';
|
|
2
3
|
/**
|
|
3
4
|
* Generic hook for implementing URL based filters.
|
|
4
5
|
* eg: pagination, search, sort.
|
|
@@ -16,5 +17,16 @@ import { UseUrlFiltersProps, UseUrlFiltersReturnType } from './types';
|
|
|
16
17
|
* ```
|
|
17
18
|
*
|
|
18
19
|
*/
|
|
19
|
-
declare const useUrlFilters: <T = string>({ initialSortKey }?: UseUrlFiltersProps<T>) =>
|
|
20
|
+
declare const useUrlFilters: <T = string>({ initialSortKey }?: UseUrlFiltersProps<T>) => {
|
|
21
|
+
pageSize: number;
|
|
22
|
+
changePage: (page: number) => void;
|
|
23
|
+
changePageSize: (_pageSize: number) => void;
|
|
24
|
+
searchKey: string;
|
|
25
|
+
handleSearch: (searchTerm: string) => void;
|
|
26
|
+
offset: number;
|
|
27
|
+
sortBy: T;
|
|
28
|
+
sortOrder: SortingOrder;
|
|
29
|
+
handleSorting: (_sortBy: T) => void;
|
|
30
|
+
clearFilters: () => void;
|
|
31
|
+
};
|
|
20
32
|
export default useUrlFilters;
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -44,13 +44,12 @@ export interface Teams {
|
|
|
44
44
|
}
|
|
45
45
|
export declare enum CHECKBOX_VALUE {
|
|
46
46
|
CHECKED = "CHECKED",
|
|
47
|
-
INTERMEDIATE = "INTERMEDIATE"
|
|
48
|
-
BULK_CHECKED = "BULK_CHECKED"
|
|
47
|
+
INTERMEDIATE = "INTERMEDIATE"
|
|
49
48
|
}
|
|
50
49
|
export interface CheckboxProps {
|
|
51
50
|
onChange: (event: any) => void;
|
|
52
51
|
isChecked: boolean;
|
|
53
|
-
value: 'CHECKED' | 'INTERMEDIATE'
|
|
52
|
+
value: 'CHECKED' | 'INTERMEDIATE';
|
|
54
53
|
disabled?: boolean;
|
|
55
54
|
tabIndex?: number;
|
|
56
55
|
rootClassName?: string;
|
|
@@ -341,6 +340,7 @@ export interface CommonNodeAttr {
|
|
|
341
340
|
};
|
|
342
341
|
appReleaseTagNames?: string[];
|
|
343
342
|
tagsEditable?: boolean;
|
|
343
|
+
isGitOpsRepoNotConfigured?: boolean;
|
|
344
344
|
deploymentAppCreated?: boolean;
|
|
345
345
|
isLast?: boolean;
|
|
346
346
|
downstreamEnvironments?: DownstreamNodesEnvironmentsType[];
|
package/dist/index.d.ts
CHANGED