@adiba-banking-cloud/backoffice 0.2.31 → 0.2.33
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-Dg_WV350.js → heatmap-XMkXF1iK.js} +1 -1
- package/build/index.cjs.js/{index-CbMaTN8N.js → index-D6VV72Cc.js} +29 -9
- package/build/index.cjs.js/index.js +1 -1
- package/build/index.esm.js/{heatmap-DaXBwBV1.js → heatmap-8OiWRbUn.js} +1 -1
- package/build/index.esm.js/{index-Co5fMms6.js → index-5FoYZrWj.js} +30 -10
- package/build/index.esm.js/index.js +1 -1
- package/build/typings/components/tables/simple/Simple.types.d.ts +2 -0
- package/build/typings/components/widgets/detail_card/DetailCard.types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -12169,7 +12169,7 @@ function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var t
|
|
|
12169
12169
|
}
|
|
12170
12170
|
|
|
12171
12171
|
// Fallback: use dynamic import (async, but will work in Vite/Storybook)
|
|
12172
|
-
Promise.resolve().then(function () { return require('./heatmap-
|
|
12172
|
+
Promise.resolve().then(function () { return require('./heatmap-XMkXF1iK.js'); }).then(function (n) { return n.heatmap; }).then(heatmapModule => {
|
|
12173
12173
|
const moduleFn = typeof heatmapModule === "function" ? heatmapModule : (heatmapModule === null || heatmapModule === void 0 ? void 0 : heatmapModule.default) || heatmapModule;
|
|
12174
12174
|
if (typeof moduleFn === "function") {
|
|
12175
12175
|
moduleFn(Highcharts);
|
|
@@ -14331,7 +14331,7 @@ const DetailCard = _ref => {
|
|
|
14331
14331
|
withBorder: false
|
|
14332
14332
|
}, /*#__PURE__*/React.createElement(core.Stack, {
|
|
14333
14333
|
gap: "8px"
|
|
14334
|
-
}, /*#__PURE__*/React.createElement(core.Text, {
|
|
14334
|
+
}, label && /*#__PURE__*/React.createElement(core.Text, {
|
|
14335
14335
|
c: "#6F758B",
|
|
14336
14336
|
size: "sm",
|
|
14337
14337
|
fw: 300
|
|
@@ -14428,21 +14428,34 @@ const PaymentMethodAdd = () => {
|
|
|
14428
14428
|
})));
|
|
14429
14429
|
};
|
|
14430
14430
|
|
|
14431
|
+
const stickyStyle$1 = {
|
|
14432
|
+
position: "sticky",
|
|
14433
|
+
right: 0,
|
|
14434
|
+
zIndex: 1
|
|
14435
|
+
};
|
|
14431
14436
|
const SimpleHeader = _ref => {
|
|
14432
14437
|
let {
|
|
14433
14438
|
id,
|
|
14434
|
-
label
|
|
14439
|
+
label,
|
|
14440
|
+
sticky
|
|
14435
14441
|
} = _ref;
|
|
14436
14442
|
return /*#__PURE__*/React.createElement(core.Table.Th, {
|
|
14437
14443
|
fw: 500,
|
|
14438
14444
|
id: id,
|
|
14439
14445
|
fz: "xs",
|
|
14440
|
-
tt: "uppercase"
|
|
14446
|
+
tt: "uppercase",
|
|
14447
|
+
style: sticky ? stickyStyle$1 : undefined,
|
|
14448
|
+
bg: sticky ? "white" : undefined
|
|
14441
14449
|
}, label)
|
|
14442
14450
|
//TODO: Manage control of table width from here
|
|
14443
14451
|
;
|
|
14444
14452
|
};
|
|
14445
14453
|
|
|
14454
|
+
const stickyStyle = {
|
|
14455
|
+
position: "sticky",
|
|
14456
|
+
right: 0,
|
|
14457
|
+
zIndex: 1
|
|
14458
|
+
};
|
|
14446
14459
|
const SimpleBody = _ref => {
|
|
14447
14460
|
let {
|
|
14448
14461
|
row,
|
|
@@ -14465,7 +14478,9 @@ const SimpleBody = _ref => {
|
|
|
14465
14478
|
}, columns.map((column, idx) => {
|
|
14466
14479
|
const columnIndex = column.id;
|
|
14467
14480
|
return /*#__PURE__*/React.createElement(core.Table.Td, {
|
|
14468
|
-
key: idx
|
|
14481
|
+
key: idx,
|
|
14482
|
+
style: column.sticky ? stickyStyle : undefined,
|
|
14483
|
+
bg: column.sticky ? "white" : undefined
|
|
14469
14484
|
}, typeof row[columnIndex] === "function" ? row[columnIndex]("".concat(index)) : row[columnIndex] || "");
|
|
14470
14485
|
}));
|
|
14471
14486
|
};
|
|
@@ -14477,7 +14492,8 @@ const SimpleTable = _ref => {
|
|
|
14477
14492
|
withAction,
|
|
14478
14493
|
withIndex,
|
|
14479
14494
|
actionFn,
|
|
14480
|
-
isStriped
|
|
14495
|
+
isStriped,
|
|
14496
|
+
stickyAction
|
|
14481
14497
|
} = _ref;
|
|
14482
14498
|
// Memoize the final columns array to avoid mutations on every render
|
|
14483
14499
|
const finalColumns = React.useMemo(() => {
|
|
@@ -14491,7 +14507,8 @@ const SimpleTable = _ref => {
|
|
|
14491
14507
|
const actionColumn = {
|
|
14492
14508
|
order: 99999,
|
|
14493
14509
|
id: "action",
|
|
14494
|
-
label: ""
|
|
14510
|
+
label: "",
|
|
14511
|
+
sticky: stickyAction
|
|
14495
14512
|
};
|
|
14496
14513
|
|
|
14497
14514
|
// Build final array without mutations
|
|
@@ -14511,7 +14528,10 @@ const SimpleTable = _ref => {
|
|
|
14511
14528
|
withRowBorders: false,
|
|
14512
14529
|
verticalSpacing: "md"
|
|
14513
14530
|
};
|
|
14514
|
-
return /*#__PURE__*/React.createElement(core.
|
|
14531
|
+
return /*#__PURE__*/React.createElement(core.ScrollArea, {
|
|
14532
|
+
type: "auto",
|
|
14533
|
+
offsetScrollbars: true
|
|
14534
|
+
}, /*#__PURE__*/React.createElement(core.Table, isStriped && isStripedProps, /*#__PURE__*/React.createElement(core.Table.Thead, null, /*#__PURE__*/React.createElement(core.Table.Tr, {
|
|
14515
14535
|
bg: isStriped ? "gray.1" : "transparent"
|
|
14516
14536
|
}, finalColumns.map((column, index) => {
|
|
14517
14537
|
return /*#__PURE__*/React.createElement(SimpleHeader, _extends({
|
|
@@ -14527,7 +14547,7 @@ const SimpleTable = _ref => {
|
|
|
14527
14547
|
actionFn,
|
|
14528
14548
|
index
|
|
14529
14549
|
});
|
|
14530
|
-
})));
|
|
14550
|
+
}))));
|
|
14531
14551
|
};
|
|
14532
14552
|
|
|
14533
14553
|
const theme = core.createTheme({
|
|
@@ -3,7 +3,7 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
3
3
|
import { modals } from '@mantine/modals';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import React__default, { useRef, useMemo, useEffect, useState } from 'react';
|
|
6
|
-
import { Center, Image, Space, Popover, Button, Stack, Divider, Group, Text, Menu, Avatar, Badge, NavLink, Card, PillsInput, ActionIcon, Pill, Box, Title, SegmentedControl, Breadcrumbs, Anchor, ColorSwatch, AspectRatio, Overlay, rem, SimpleGrid, Indicator, Table, createTheme, PinInput, UnstyledButton, Drawer as Drawer$1,
|
|
6
|
+
import { Center, Image, Space, Popover, Button, Stack, Divider, Group, Text, Menu, Avatar, Badge, NavLink, Card, PillsInput, ActionIcon, Pill, Box, Title, SegmentedControl, Breadcrumbs, Anchor, ColorSwatch, AspectRatio, Overlay, rem, SimpleGrid, Indicator, Table, ScrollArea, createTheme, PinInput, UnstyledButton, Drawer as Drawer$1, NumberInput, PasswordInput, TextInput, Textarea, Grid, ThemeIcon, MantineProvider } from '@mantine/core';
|
|
7
7
|
import { DotLottieReact } from '@lottiefiles/dotlottie-react';
|
|
8
8
|
import _extends from '@babel/runtime/helpers/extends';
|
|
9
9
|
import HighchartsReact from 'highcharts-react-official';
|
|
@@ -12148,7 +12148,7 @@ function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var t
|
|
|
12148
12148
|
}
|
|
12149
12149
|
|
|
12150
12150
|
// Fallback: use dynamic import (async, but will work in Vite/Storybook)
|
|
12151
|
-
import('./heatmap-
|
|
12151
|
+
import('./heatmap-8OiWRbUn.js').then(function (n) { return n.h; }).then(heatmapModule => {
|
|
12152
12152
|
const moduleFn = typeof heatmapModule === "function" ? heatmapModule : (heatmapModule === null || heatmapModule === void 0 ? void 0 : heatmapModule.default) || heatmapModule;
|
|
12153
12153
|
if (typeof moduleFn === "function") {
|
|
12154
12154
|
moduleFn(Highcharts);
|
|
@@ -14310,7 +14310,7 @@ const DetailCard = _ref => {
|
|
|
14310
14310
|
withBorder: false
|
|
14311
14311
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
14312
14312
|
gap: "8px"
|
|
14313
|
-
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
14313
|
+
}, label && /*#__PURE__*/React__default.createElement(Text, {
|
|
14314
14314
|
c: "#6F758B",
|
|
14315
14315
|
size: "sm",
|
|
14316
14316
|
fw: 300
|
|
@@ -14407,21 +14407,34 @@ const PaymentMethodAdd = () => {
|
|
|
14407
14407
|
})));
|
|
14408
14408
|
};
|
|
14409
14409
|
|
|
14410
|
+
const stickyStyle$1 = {
|
|
14411
|
+
position: "sticky",
|
|
14412
|
+
right: 0,
|
|
14413
|
+
zIndex: 1
|
|
14414
|
+
};
|
|
14410
14415
|
const SimpleHeader = _ref => {
|
|
14411
14416
|
let {
|
|
14412
14417
|
id,
|
|
14413
|
-
label
|
|
14418
|
+
label,
|
|
14419
|
+
sticky
|
|
14414
14420
|
} = _ref;
|
|
14415
14421
|
return /*#__PURE__*/React__default.createElement(Table.Th, {
|
|
14416
14422
|
fw: 500,
|
|
14417
14423
|
id: id,
|
|
14418
14424
|
fz: "xs",
|
|
14419
|
-
tt: "uppercase"
|
|
14425
|
+
tt: "uppercase",
|
|
14426
|
+
style: sticky ? stickyStyle$1 : undefined,
|
|
14427
|
+
bg: sticky ? "white" : undefined
|
|
14420
14428
|
}, label)
|
|
14421
14429
|
//TODO: Manage control of table width from here
|
|
14422
14430
|
;
|
|
14423
14431
|
};
|
|
14424
14432
|
|
|
14433
|
+
const stickyStyle = {
|
|
14434
|
+
position: "sticky",
|
|
14435
|
+
right: 0,
|
|
14436
|
+
zIndex: 1
|
|
14437
|
+
};
|
|
14425
14438
|
const SimpleBody = _ref => {
|
|
14426
14439
|
let {
|
|
14427
14440
|
row,
|
|
@@ -14444,7 +14457,9 @@ const SimpleBody = _ref => {
|
|
|
14444
14457
|
}, columns.map((column, idx) => {
|
|
14445
14458
|
const columnIndex = column.id;
|
|
14446
14459
|
return /*#__PURE__*/React__default.createElement(Table.Td, {
|
|
14447
|
-
key: idx
|
|
14460
|
+
key: idx,
|
|
14461
|
+
style: column.sticky ? stickyStyle : undefined,
|
|
14462
|
+
bg: column.sticky ? "white" : undefined
|
|
14448
14463
|
}, typeof row[columnIndex] === "function" ? row[columnIndex]("".concat(index)) : row[columnIndex] || "");
|
|
14449
14464
|
}));
|
|
14450
14465
|
};
|
|
@@ -14456,7 +14471,8 @@ const SimpleTable = _ref => {
|
|
|
14456
14471
|
withAction,
|
|
14457
14472
|
withIndex,
|
|
14458
14473
|
actionFn,
|
|
14459
|
-
isStriped
|
|
14474
|
+
isStriped,
|
|
14475
|
+
stickyAction
|
|
14460
14476
|
} = _ref;
|
|
14461
14477
|
// Memoize the final columns array to avoid mutations on every render
|
|
14462
14478
|
const finalColumns = useMemo(() => {
|
|
@@ -14470,7 +14486,8 @@ const SimpleTable = _ref => {
|
|
|
14470
14486
|
const actionColumn = {
|
|
14471
14487
|
order: 99999,
|
|
14472
14488
|
id: "action",
|
|
14473
|
-
label: ""
|
|
14489
|
+
label: "",
|
|
14490
|
+
sticky: stickyAction
|
|
14474
14491
|
};
|
|
14475
14492
|
|
|
14476
14493
|
// Build final array without mutations
|
|
@@ -14490,7 +14507,10 @@ const SimpleTable = _ref => {
|
|
|
14490
14507
|
withRowBorders: false,
|
|
14491
14508
|
verticalSpacing: "md"
|
|
14492
14509
|
};
|
|
14493
|
-
return /*#__PURE__*/React__default.createElement(
|
|
14510
|
+
return /*#__PURE__*/React__default.createElement(ScrollArea, {
|
|
14511
|
+
type: "auto",
|
|
14512
|
+
offsetScrollbars: true
|
|
14513
|
+
}, /*#__PURE__*/React__default.createElement(Table, isStriped && isStripedProps, /*#__PURE__*/React__default.createElement(Table.Thead, null, /*#__PURE__*/React__default.createElement(Table.Tr, {
|
|
14494
14514
|
bg: isStriped ? "gray.1" : "transparent"
|
|
14495
14515
|
}, finalColumns.map((column, index) => {
|
|
14496
14516
|
return /*#__PURE__*/React__default.createElement(SimpleHeader, _extends({
|
|
@@ -14506,7 +14526,7 @@ const SimpleTable = _ref => {
|
|
|
14506
14526
|
actionFn,
|
|
14507
14527
|
index
|
|
14508
14528
|
});
|
|
14509
|
-
})));
|
|
14529
|
+
}))));
|
|
14510
14530
|
};
|
|
14511
14531
|
|
|
14512
14532
|
const theme = createTheme({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ApplicationMenu, p as ApplicationPanel, k as AvatarLabelPanel, B as BasicHeatmap, C as CalendarHeatmap, Q as ChatBubble, R as ChatHeader, O as ChatListCard, o as ConnectionPanel, u as CreditCard, a5 as DEFAULT_API_TIMEOUT, a3 as DEFAULT_PAGE_SIZE, v as DetailCard, D as DonutChart, W as Drawer, e as DynamicLogo, f as DynamicShigaLogo, E as EqualizerColumn, G as ErrorModal, F as File, d as Icons, r as InfoGrid, H as InfoModal, I as InterpolatedHeatmap, L as LabelPanel, V as LoadingModal, a4 as MAX_PAGE_SIZE, Y as MaskedTilePanel, _ as MerchantCard, a8 as ModalContentWrapper, M as MultiAxisArea, m as PageTitle, w as PaymentMethod, x as PaymentMethodAdd, P as PieChart, j as SearchPanel, h as SideMenu, b as SimpleArea, S as SimpleColumn, X as SimpleForm, J as SimpleModal, i as SimplePanel, y as SimpleTable, l as SimpleText, c as StackedArea, a as StackedColumn, t as StatusAlert, q as SubscriptionPlans, K as SuccessModal, $ as TableStateView, Z as TilePanel, n as TitleWithIndex, T as TitledPanel, N as TwoFactorModal, U as UserMenu, s as UserProfileCard, a7 as apiClient, a6 as createApiClient, aa as extractBetweenBraces, ab as extractOutsideBraces, z as theme, a1 as useManagedModals, a0 as useModal, a2 as useUrlFilters, a9 as withProviders } from './index-
|
|
1
|
+
export { A as ApplicationMenu, p as ApplicationPanel, k as AvatarLabelPanel, B as BasicHeatmap, C as CalendarHeatmap, Q as ChatBubble, R as ChatHeader, O as ChatListCard, o as ConnectionPanel, u as CreditCard, a5 as DEFAULT_API_TIMEOUT, a3 as DEFAULT_PAGE_SIZE, v as DetailCard, D as DonutChart, W as Drawer, e as DynamicLogo, f as DynamicShigaLogo, E as EqualizerColumn, G as ErrorModal, F as File, d as Icons, r as InfoGrid, H as InfoModal, I as InterpolatedHeatmap, L as LabelPanel, V as LoadingModal, a4 as MAX_PAGE_SIZE, Y as MaskedTilePanel, _ as MerchantCard, a8 as ModalContentWrapper, M as MultiAxisArea, m as PageTitle, w as PaymentMethod, x as PaymentMethodAdd, P as PieChart, j as SearchPanel, h as SideMenu, b as SimpleArea, S as SimpleColumn, X as SimpleForm, J as SimpleModal, i as SimplePanel, y as SimpleTable, l as SimpleText, c as StackedArea, a as StackedColumn, t as StatusAlert, q as SubscriptionPlans, K as SuccessModal, $ as TableStateView, Z as TilePanel, n as TitleWithIndex, T as TitledPanel, N as TwoFactorModal, U as UserMenu, s as UserProfileCard, a7 as apiClient, a6 as createApiClient, aa as extractBetweenBraces, ab as extractOutsideBraces, z as theme, a1 as useManagedModals, a0 as useModal, a2 as useUrlFilters, a9 as withProviders } from './index-5FoYZrWj.js';
|
|
2
2
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import '@babel/runtime/helpers/defineProperty';
|
|
4
4
|
import '@mantine/modals';
|
|
@@ -6,6 +6,7 @@ export interface BaseTableColumnProps {
|
|
|
6
6
|
order: number;
|
|
7
7
|
id: string;
|
|
8
8
|
label: string;
|
|
9
|
+
sticky?: boolean;
|
|
9
10
|
}
|
|
10
11
|
export interface BaseTableRowProps {
|
|
11
12
|
[key: string]: string | ((id: string) => React.ReactNode);
|
|
@@ -14,6 +15,7 @@ export interface SimpleTableProps extends BaseTableProps {
|
|
|
14
15
|
withAction?: boolean;
|
|
15
16
|
withIndex?: boolean;
|
|
16
17
|
isStriped?: boolean;
|
|
18
|
+
stickyAction?: boolean;
|
|
17
19
|
actionFn?: (id: string) => React.ReactNode;
|
|
18
20
|
}
|
|
19
21
|
export interface SimpleTableBodyProps {
|
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.2.
|
|
4
|
+
"version": "0.2.33",
|
|
5
5
|
"description": "An ADIBA component library for backoffice and dashboard applications",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"main": "build/index.cjs.js",
|