@adiba-banking-cloud/backoffice 0.0.106 → 0.2.0
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/build/index.cjs.js/{heatmap-BJmii0aO.js → heatmap-c3tdleHx.js} +1 -1
- package/build/index.cjs.js/{index-BLpjQkzt.js → index-QwR6crYB.js} +129 -1
- package/build/index.cjs.js/index.js +10 -1
- package/build/index.esm.js/{heatmap-yNnNxsAY.js → heatmap-Dfb5-pNh.js} +1 -1
- package/build/index.esm.js/{index-CWjYoFnK.js → index-9HtrJaD9.js} +403 -281
- package/build/index.esm.js/index.js +4 -1
- package/build/typings/index.d.ts +2 -0
- package/build/typings/shared/api/client.d.ts +24 -0
- package/build/typings/shared/api/constants.d.ts +12 -0
- package/build/typings/shared/api/index.d.ts +3 -0
- package/build/typings/shared/api/types.d.ts +16 -0
- package/build/typings/shared/components/ModalContentWrapper.d.ts +9 -0
- package/build/typings/shared/components/index.d.ts +1 -0
- package/package.json +5 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ApplicationMenu, o as ApplicationPanel, k as AvatarLabelPanel, B as BasicHeatmap, C as CalendarHeatmap, n as ConnectionPanel, D as DonutChart, z as Drawer, e as DynamicLogo, f as DynamicShigaLogo, E as EqualizerColumn, u as ErrorModal, F as File, d as Icons, v as InfoModal, I as InterpolatedHeatmap, L as LabelPanel, H as MaskedTilePanel, M as MultiAxisArea, P as PageTitle, q as PaymentMethod, r as PaymentMethodAdd, j as SearchPanel, h as SideMenu, b as SimpleArea, S as SimpleColumn, G as SimpleForm, w as SimpleModal, i as SimplePanel, s as SimpleTable, l as SimpleText, c as StackedArea, a as StackedColumn, p as SubscriptionPlans, x as SuccessModal, J as TilePanel, m as TitleWithIndex, T as TitledPanel, y as TwoFactorModal, U as UserMenu, t as theme, N as useManagedModals, K as useModal } from './index-
|
|
1
|
+
export { A as ApplicationMenu, o as ApplicationPanel, k as AvatarLabelPanel, B as BasicHeatmap, C as CalendarHeatmap, n as ConnectionPanel, R as DEFAULT_API_TIMEOUT, O as DEFAULT_PAGE_SIZE, D as DonutChart, z as Drawer, e as DynamicLogo, f as DynamicShigaLogo, E as EqualizerColumn, u as ErrorModal, F as File, d as Icons, v as InfoModal, I as InterpolatedHeatmap, L as LabelPanel, Q as MAX_PAGE_SIZE, H as MaskedTilePanel, X as ModalContentWrapper, M as MultiAxisArea, P as PageTitle, q as PaymentMethod, r as PaymentMethodAdd, j as SearchPanel, h as SideMenu, b as SimpleArea, S as SimpleColumn, G as SimpleForm, w as SimpleModal, i as SimplePanel, s as SimpleTable, l as SimpleText, c as StackedArea, a as StackedColumn, p as SubscriptionPlans, x as SuccessModal, J as TilePanel, m as TitleWithIndex, T as TitledPanel, y as TwoFactorModal, U as UserMenu, W as apiClient, V as createApiClient, t as theme, N as useManagedModals, K as useModal } from './index-9HtrJaD9.js';
|
|
2
2
|
import '@mantine/modals';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@mantine/core';
|
|
@@ -18,3 +18,6 @@ import '@fontsource/poppins/500.css';
|
|
|
18
18
|
import '@fontsource/poppins/600.css';
|
|
19
19
|
import '@fontsource/poppins/700.css';
|
|
20
20
|
import '@fontsource/poppins/800.css';
|
|
21
|
+
import 'axios';
|
|
22
|
+
import '@mantine/dates';
|
|
23
|
+
import '@mantine/dates/styles.css';
|
package/build/typings/index.d.ts
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from "axios";
|
|
2
|
+
import type { ApiResponse } from "./types";
|
|
3
|
+
export interface ApiClientConfig {
|
|
4
|
+
baseURL?: string;
|
|
5
|
+
timeout?: number;
|
|
6
|
+
headers?: Record<string, string>;
|
|
7
|
+
}
|
|
8
|
+
export interface IApiClient {
|
|
9
|
+
get<T>(url: string, config?: AxiosRequestConfig): Promise<ApiResponse<T>>;
|
|
10
|
+
post<T>(url: string, data?: any, config?: AxiosRequestConfig): Promise<ApiResponse<T>>;
|
|
11
|
+
put<T>(url: string, data?: any, config?: AxiosRequestConfig): Promise<ApiResponse<T>>;
|
|
12
|
+
delete<T>(url: string, config?: AxiosRequestConfig): Promise<ApiResponse<T>>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Factory function to create a configured API client instance
|
|
16
|
+
* @param config - Configuration options for the API client
|
|
17
|
+
* @returns Configured ApiClient instance
|
|
18
|
+
*/
|
|
19
|
+
export declare function createApiClient(config?: ApiClientConfig): IApiClient;
|
|
20
|
+
/**
|
|
21
|
+
* Default API client instance with default configuration
|
|
22
|
+
* For custom configuration, use createApiClient() instead
|
|
23
|
+
*/
|
|
24
|
+
export declare const apiClient: IApiClient;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default pagination page size
|
|
3
|
+
*/
|
|
4
|
+
export declare const DEFAULT_PAGE_SIZE = 10;
|
|
5
|
+
/**
|
|
6
|
+
* Maximum allowed page size for pagination
|
|
7
|
+
*/
|
|
8
|
+
export declare const MAX_PAGE_SIZE = 100;
|
|
9
|
+
/**
|
|
10
|
+
* Default API request timeout in milliseconds
|
|
11
|
+
*/
|
|
12
|
+
export declare const DEFAULT_API_TIMEOUT = 30000;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface ApiResponse<T> {
|
|
2
|
+
status: "success" | "error";
|
|
3
|
+
code: number;
|
|
4
|
+
message: string;
|
|
5
|
+
data?: T;
|
|
6
|
+
total?: number;
|
|
7
|
+
page?: number;
|
|
8
|
+
limit?: number;
|
|
9
|
+
error?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ApiError {
|
|
12
|
+
status: "error";
|
|
13
|
+
code: number;
|
|
14
|
+
message: string;
|
|
15
|
+
error: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import "@mantine/dates/styles.css";
|
|
3
|
+
/**
|
|
4
|
+
* Wrapper component for modal content to ensure MantineProvider context is available
|
|
5
|
+
* This is needed because modals rendered by the appshell may not have access to the pilet's provider
|
|
6
|
+
*/
|
|
7
|
+
export declare const ModalContentWrapper: React.FC<{
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ModalContentWrapper";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adiba-banking-cloud/backoffice",
|
|
3
3
|
"author": "TUROG Technologies",
|
|
4
|
-
"version": "0.0
|
|
4
|
+
"version": "0.2.0",
|
|
5
5
|
"description": "An ADIBA component library for backoffice and dashboard applications",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"main": "build/index.cjs.js",
|
|
@@ -32,9 +32,11 @@
|
|
|
32
32
|
"@hello-pangea/dnd": "^16.5.0",
|
|
33
33
|
"@lottiefiles/dotlottie-react": "^0.14.1",
|
|
34
34
|
"@mantine/core": "^7.12.2",
|
|
35
|
+
"@mantine/dates": "^7.12.2",
|
|
35
36
|
"@mantine/form": "^7.17.8",
|
|
36
37
|
"@mantine/hooks": "^7.12.2",
|
|
37
38
|
"@mantine/modals": "^7.17.8",
|
|
39
|
+
"axios": "^1.6.0",
|
|
38
40
|
"highcharts-react-official": "^3.2.2",
|
|
39
41
|
"highcharts-rounded-corners": "^1.0.7",
|
|
40
42
|
"iconsax-react": "^0.0.8",
|
|
@@ -47,6 +49,7 @@
|
|
|
47
49
|
"url": "git+https://github.com/turog-technologies/adiba-common-libraries.git"
|
|
48
50
|
},
|
|
49
51
|
"devDependencies": {
|
|
52
|
+
"axios": "^1.6.0",
|
|
50
53
|
"@babel/core": "^7.21.3",
|
|
51
54
|
"@babel/plugin-transform-runtime": "^7.21.0",
|
|
52
55
|
"@babel/preset-env": "^7.20.2",
|
|
@@ -58,6 +61,7 @@
|
|
|
58
61
|
"@hello-pangea/dnd": "^16.5.0",
|
|
59
62
|
"@lottiefiles/dotlottie-react": "^0.14.1",
|
|
60
63
|
"@mantine/core": "^7.12.2",
|
|
64
|
+
"@mantine/dates": "^7.12.2",
|
|
61
65
|
"@mantine/form": "^7.17.8",
|
|
62
66
|
"@mantine/hooks": "^7.12.2",
|
|
63
67
|
"@mantine/modals": "^7.17.8",
|