@devtron-labs/devtron-fe-common-lib 0.0.64-beta-1 → 0.0.64

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 (32) hide show
  1. package/dist/Common/DraggableWrapper/DraggableWrapper.d.ts +1 -1
  2. package/dist/Common/DraggableWrapper/types.d.ts +1 -8
  3. package/dist/Common/Hooks/useUrlFilters/index.d.ts +1 -1
  4. package/dist/Common/Hooks/useUrlFilters/types.d.ts +1 -54
  5. package/dist/Common/Hooks/useUrlFilters/useUrlFilters.d.ts +14 -2
  6. package/dist/Pages/GlobalConfigurations/Authorization/constants.d.ts +1 -5
  7. package/dist/Pages/GlobalConfigurations/Authorization/index.d.ts +0 -1
  8. package/dist/Shared/Components/BulkSelection/BulkSelectionDropdownItems.d.ts +1 -1
  9. package/dist/Shared/Components/BulkSelection/constants.d.ts +1 -1
  10. package/dist/Shared/Components/BulkSelection/types.d.ts +0 -3
  11. package/dist/Shared/Components/index.d.ts +0 -1
  12. package/dist/{cssMode-72e61e31.js → cssMode-0eb181b8.js} +1 -1
  13. package/dist/{freemarker2-4d054d35.js → freemarker2-4361569f.js} +1 -1
  14. package/dist/{handlebars-f02732c8.js → handlebars-babdfc67.js} +1 -1
  15. package/dist/{html-79283c28.js → html-23b49eab.js} +1 -1
  16. package/dist/{htmlMode-594b48ca.js → htmlMode-f37a1616.js} +1 -1
  17. package/dist/{index-89c659f5.js → index-3a430320.js} +19306 -19119
  18. package/dist/index.js +149 -151
  19. package/dist/{javascript-5d9e8721.js → javascript-3597fa14.js} +1 -1
  20. package/dist/{jsonMode-e8696ac5.js → jsonMode-b97d1b5f.js} +1 -1
  21. package/dist/{liquid-b0d70aed.js → liquid-9778cbb4.js} +1 -1
  22. package/dist/{python-d7514f72.js → python-e4dba3c0.js} +1 -1
  23. package/dist/{razor-080f292a.js → razor-242f0a8f.js} +1 -1
  24. package/dist/{tsMode-ff4a92d7.js → tsMode-bf606946.js} +1 -1
  25. package/dist/{typescript-282b26e5.js → typescript-9ed04bdd.js} +1 -1
  26. package/dist/{xml-8dc8529f.js → xml-825eaa31.js} +1 -1
  27. package/dist/{yaml-546dd727.js → yaml-c9fb7842.js} +1 -1
  28. package/package.json +1 -1
  29. package/dist/Pages/GlobalConfigurations/Authorization/types.d.ts +0 -23
  30. package/dist/Shared/Components/FilterChips/FilterChips.component.d.ts +0 -6
  31. package/dist/Shared/Components/FilterChips/index.d.ts +0 -2
  32. package/dist/Shared/Components/FilterChips/types.d.ts +0 -37
@@ -6,4 +6,4 @@ import { DraggableWrapperProps } from './types';
6
6
  * 2. dragSelector will be used to identify the grabbable button that will grab the div to drag
7
7
  * 3. parentRef is the reference point from which we will derive the base top:0 ,left: 0 position
8
8
  */
9
- export default function DraggableWrapper({ children, zIndex, positionVariant, dragSelector, parentRef, boundaryGap, childDivProps, layoutFixDelta }: DraggableWrapperProps): JSX.Element;
9
+ export default function DraggableWrapper({ children, zIndex, positionVariant, dragSelector, parentRef, boundaryGap, childDivProps, }: DraggableWrapperProps): JSX.Element;
@@ -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
@@ -17,10 +14,6 @@ export interface DraggableWrapperProps {
17
14
  parentRef?: RefObject<HTMLDivElement>;
18
15
  boundaryGap?: number;
19
16
  childDivProps?: HTMLAttributes<HTMLDivElement>;
20
- /**
21
- * Delta for fixing the scrollable layout positioning
22
- */
23
- layoutFixDelta?: number;
24
17
  }
25
18
  /**
26
19
  * dragClassName is the class that we feed to Draggable to identify dragging buttons
@@ -1,2 +1,2 @@
1
1
  export { default as useUrlFilters } from './useUrlFilters';
2
- export type { UseUrlFiltersProps, UseUrlFiltersReturnType } from './types';
2
+ export type { UseUrlFiltersProps } from './types';
@@ -1,59 +1,6 @@
1
- import { SortingOrder } from '../../Constants';
2
- export interface UseUrlFiltersProps<T, K> {
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
- /**
8
- * Callback function for parsing the search params
9
- */
10
- parseSearchParams?: (searchParams: URLSearchParams) => K;
11
6
  }
12
- export type UseUrlFiltersReturnType<T, K = unknown> = K & {
13
- /**
14
- * Currently applied page size
15
- */
16
- pageSize: number;
17
- /**
18
- * Handler for updating the current page
19
- */
20
- changePage: (pageNumber: number) => void;
21
- /**
22
- * Handler for updating the current page size
23
- */
24
- changePageSize: (pageSize: number) => void;
25
- /**
26
- * Current search key
27
- */
28
- searchKey: string;
29
- /**
30
- * Handler for updating the search
31
- */
32
- handleSearch: (searchKey: string) => void;
33
- /**
34
- * Computed offset using the pageSize and pageNumber
35
- *
36
- * Note: Used in pagination component
37
- */
38
- offset: number;
39
- /**
40
- * Key on which the sorting is applied
41
- */
42
- sortBy: T;
43
- /**
44
- * Current sort order
45
- */
46
- sortOrder: SortingOrder;
47
- /**
48
- * Handle the sorting type change / key change
49
- */
50
- handleSorting: (sortBy: T) => void;
51
- /**
52
- * Clear all the applied filters
53
- */
54
- clearFilters: () => void;
55
- /**
56
- * Update the search params with the passed object
57
- */
58
- updateSearchParams: (paramsToSerialize: K) => void;
59
- };
@@ -1,4 +1,5 @@
1
- import { UseUrlFiltersProps, UseUrlFiltersReturnType } from './types';
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, K = unknown>({ initialSortKey, parseSearchParams, }?: UseUrlFiltersProps<T, K>) => UseUrlFiltersReturnType<T, K>;
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;
@@ -1,7 +1,3 @@
1
- export declare enum UserListSortableKeys {
2
- email = "email_id",
3
- lastLogin = "last_login"
4
- }
5
1
  /**
6
2
  * User Status received from the API
7
3
  */
@@ -15,5 +11,5 @@ export declare enum UserStatusDto {
15
11
  export declare enum UserStatus {
16
12
  active = "active",
17
13
  inactive = "inactive",
18
- temporary = "temporaryAccess"
14
+ temporary = "temporary"
19
15
  }
@@ -1,2 +1 @@
1
1
  export * from './constants';
2
- export * from './types';
@@ -1,3 +1,3 @@
1
1
  import { BulkSelectionDropdownItemsProps } from './types';
2
- declare const BulkSelectionDropdownItems: <T>({ locator, label, isSelected, handleBulkSelection, icon: Icon, iconClass, }: BulkSelectionDropdownItemsProps<T>) => JSX.Element;
2
+ declare const BulkSelectionDropdownItems: <T>({ locator, label, isSelected, handleBulkSelection, icon: Icon, }: BulkSelectionDropdownItemsProps<T>) => JSX.Element;
3
3
  export default BulkSelectionDropdownItems;
@@ -2,7 +2,7 @@ export declare const BULK_DROPDOWN_TEST_ID: "bulk-selection-pop-up-menu";
2
2
  export declare const BulkSelectionOptionsLabels: {
3
3
  readonly SELECT_ALL_ON_PAGE: "All on this page";
4
4
  readonly SELECT_ALL_ACROSS_PAGES: "All across pages";
5
- readonly CLEAR_ALL_SELECTIONS: "Clear selection(s)";
5
+ readonly CLEAR_ALL_SELECTIONS: "Clear selection";
6
6
  };
7
7
  export declare const SELECT_ALL_ACROSS_PAGES_LOCATOR: "*";
8
8
  export declare const getInvalidActionMessage: (action: string) => string;
@@ -23,8 +23,6 @@ export interface GetBulkSelectionCheckboxValuesType {
23
23
  export interface UseBulkSelectionReturnType<T> extends GetBulkSelectionCheckboxValuesType {
24
24
  selectedIdentifiers: T;
25
25
  handleBulkSelection: ({ action, data }: HandleBulkSelectionType<T>) => void;
26
- isBulkSelectionApplied: boolean;
27
- getSelectedIdentifiersCount: () => number;
28
26
  }
29
27
  export interface BulkSelectionProps {
30
28
  showPagination: boolean;
@@ -34,7 +32,6 @@ export interface BulkSelectionDropdownItemsType {
34
32
  label: string;
35
33
  isSelected: boolean;
36
34
  icon: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
37
- iconClass?: string;
38
35
  }
39
36
  export interface BulkSelectionDropdownItemsProps<T> extends BulkSelectionDropdownItemsType, Pick<UseBulkSelectionReturnType<T>, 'handleBulkSelection'> {
40
37
  }
@@ -1,4 +1,3 @@
1
1
  export * from './APIResponseHandler';
2
2
  export * from './ReactSelect';
3
3
  export * from './BulkSelection';
4
- export * from './FilterChips';
@@ -1,7 +1,7 @@
1
1
  var Le = Object.defineProperty;
2
2
  var je = (e, n, i) => n in e ? Le(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var k = (e, n, i) => (je(e, typeof n != "symbol" ? n + "" : n, i), i);
4
- import { m as Ne } from "./index-89c659f5.js";
4
+ import { m as Ne } from "./index-3a430320.js";
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  * Version: 0.39.0(ff3621a3fa6389873be5412d17554294ea1b0941)
@@ -1,4 +1,4 @@
1
- import { m as F } from "./index-89c659f5.js";
1
+ import { m as F } from "./index-3a430320.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.39.0(ff3621a3fa6389873be5412d17554294ea1b0941)
@@ -1,4 +1,4 @@
1
- import { m as i } from "./index-89c659f5.js";
1
+ import { m as i } from "./index-3a430320.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.39.0(ff3621a3fa6389873be5412d17554294ea1b0941)
@@ -1,4 +1,4 @@
1
- import { m as d } from "./index-89c659f5.js";
1
+ import { m as d } from "./index-3a430320.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.39.0(ff3621a3fa6389873be5412d17554294ea1b0941)
@@ -1,7 +1,7 @@
1
1
  var $e = Object.defineProperty;
2
2
  var qe = (e, n, i) => n in e ? $e(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var k = (e, n, i) => (qe(e, typeof n != "symbol" ? n + "" : n, i), i);
4
- import { m as Qe } from "./index-89c659f5.js";
4
+ import { m as Qe } from "./index-3a430320.js";
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  * Version: 0.39.0(ff3621a3fa6389873be5412d17554294ea1b0941)