@devtron-labs/devtron-fe-common-lib 0.0.58-beta-9 → 0.0.58-beta-11
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/Pages/GlobalConfigurations/Authorization/constants.d.ts +15 -0
- package/dist/Pages/GlobalConfigurations/Authorization/index.d.ts +1 -0
- package/dist/Pages/GlobalConfigurations/index.d.ts +1 -0
- package/dist/Pages/index.d.ts +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +19 -0
- package/package.json +1 -1
- package/src/Common/Hooks/useUrlFilters/useUrlFilters.ts +1 -0
- package/src/Pages/GlobalConfigurations/Authorization/constants.ts +16 -0
- package/src/Pages/GlobalConfigurations/Authorization/index.ts +1 -0
- package/src/Pages/GlobalConfigurations/index.ts +1 -0
- package/src/Pages/index.ts +1 -0
- package/src/index.ts +2 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* User Status received from the API
|
|
3
|
+
*/
|
|
4
|
+
export declare enum UserStatusDto {
|
|
5
|
+
active = "active",
|
|
6
|
+
inactive = "inactive"
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* User status for the frontend
|
|
10
|
+
*/
|
|
11
|
+
export declare enum UserStatus {
|
|
12
|
+
active = "active",
|
|
13
|
+
inactive = "inactive",
|
|
14
|
+
temporary = "temporary"
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './constants';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Authorization';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './GlobalConfigurations';
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './Common';
|
|
2
|
+
export * from './Pages';
|
package/dist/index.js
CHANGED
|
@@ -25705,6 +25705,7 @@ var useUrlFilters = function (_a) {
|
|
|
25705
25705
|
};
|
|
25706
25706
|
var handleSearch = function (searchTerm) {
|
|
25707
25707
|
_updateSearchParam(SEARCH_KEY, searchTerm);
|
|
25708
|
+
_resetPageNumber();
|
|
25708
25709
|
};
|
|
25709
25710
|
var handleSorting = function (_sortBy) {
|
|
25710
25711
|
var order;
|
|
@@ -28949,6 +28950,24 @@ var Pagination = function (_a) {
|
|
|
28949
28950
|
jsxRuntime.jsxs("div", __assign({ className: rootClassName || '' }, { children: [jsxRuntime.jsxs("div", __assign({ className: "page-number" }, { children: [offset + 1, " - ", lastPageNo, " of ", size] })), jsxRuntime.jsxs("ul", __assign({ className: "pagination" }, { children: [jsxRuntime.jsx("li", __assign({ className: "page" }, { children: jsxRuntime.jsx("button", __assign({ className: "page__button page__button--icon", disabled: !pageNoIndex, onClick: selectPreviousPage, type: "button", "aria-label": "Previous page" }, { children: jsxRuntime.jsx("span", __assign({ className: "left-icon" }, { children: jsxRuntime.jsx("i", { className: "fa fa-chevron-left" }) })) })) })), visiblePages.map(function (page) { return (jsxRuntime.jsx(PageValueItem, { value: page.value, isSelected: page.selected, selectPage: selectPage }, page.value)); }), jsxRuntime.jsx("li", __assign({ className: "page" }, { children: jsxRuntime.jsx("button", __assign({ className: "page__button page__button--icon", disabled: pageNoIndex === pages.length - 1, onClick: selectNextPage, type: "button", "aria-label": "Next page" }, { children: jsxRuntime.jsx("span", __assign({ className: "left-icon" }, { children: jsxRuntime.jsx("i", { className: "fa fa-chevron-right" }) })) })) }))] })), !isPageSizeFix && (jsxRuntime.jsxs("div", __assign({ className: "select" }, { children: [jsxRuntime.jsx("span", __assign({ className: "select__placeholder" }, { children: "Rows per page" })), jsxRuntime.jsx(PageSizeSelector, { pageSizeOptions: pageSizeOptions, pageSize: pageSize, changePageSize: changePageSize })] })))] })));
|
|
28950
28951
|
};
|
|
28951
28952
|
|
|
28953
|
+
/**
|
|
28954
|
+
* User Status received from the API
|
|
28955
|
+
*/
|
|
28956
|
+
exports.UserStatusDto = void 0;
|
|
28957
|
+
(function (UserStatusDto) {
|
|
28958
|
+
UserStatusDto["active"] = "active";
|
|
28959
|
+
UserStatusDto["inactive"] = "inactive";
|
|
28960
|
+
})(exports.UserStatusDto || (exports.UserStatusDto = {}));
|
|
28961
|
+
/**
|
|
28962
|
+
* User status for the frontend
|
|
28963
|
+
*/
|
|
28964
|
+
exports.UserStatus = void 0;
|
|
28965
|
+
(function (UserStatus) {
|
|
28966
|
+
UserStatus["active"] = "active";
|
|
28967
|
+
UserStatus["inactive"] = "inactive";
|
|
28968
|
+
UserStatus["temporary"] = "temporary";
|
|
28969
|
+
})(exports.UserStatus || (exports.UserStatus = {}));
|
|
28970
|
+
|
|
28952
28971
|
exports.AddCDButton = AddCDButton;
|
|
28953
28972
|
exports.AppStatus = AppStatus;
|
|
28954
28973
|
exports.BreadCrumb = BreadCrumb;
|
package/package.json
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* User Status received from the API
|
|
3
|
+
*/
|
|
4
|
+
export enum UserStatusDto {
|
|
5
|
+
active = 'active',
|
|
6
|
+
inactive = 'inactive',
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* User status for the frontend
|
|
11
|
+
*/
|
|
12
|
+
export enum UserStatus {
|
|
13
|
+
active = 'active',
|
|
14
|
+
inactive = 'inactive',
|
|
15
|
+
temporary = 'temporary',
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './constants'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Authorization'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './GlobalConfigurations'
|
package/src/index.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './Common'
|
|
2
|
+
export * from './Pages'
|