@adiba-banking-cloud/backoffice 0.2.26 → 0.2.28
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-D1SQUNrl.js → heatmap-_eSrjYlG.js} +1 -1
- package/build/index.cjs.js/{index-DbCa8uwP.js → index-B8ygF6T8.js} +6 -23
- package/build/index.cjs.js/index.js +1 -1
- package/build/index.esm.js/{heatmap-OFHx8ymB.js → heatmap-CYOPx-_h.js} +1 -1
- package/build/index.esm.js/{index-CrB5gMd3.js → index-CzYOlCzh.js} +6 -23
- package/build/index.esm.js/index.js +1 -1
- package/build/typings/components/widgets/chat/Chat.types.d.ts +5 -0
- 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-_eSrjYlG.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);
|
|
@@ -14780,7 +14780,7 @@ const ChatListCard = _ref => {
|
|
|
14780
14780
|
}, unreadCount)))));
|
|
14781
14781
|
};
|
|
14782
14782
|
|
|
14783
|
-
const _excluded$4 = ["message", "time", "isOutgoing", "senderName", "avatar", "attachment", "className", "style"];
|
|
14783
|
+
const _excluded$4 = ["message", "time", "isOutgoing", "senderName", "avatar", "attachment", "onFileClick", "onFileActionClick", "className", "style"];
|
|
14784
14784
|
function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14785
14785
|
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14786
14786
|
const ChatBubble = _ref => {
|
|
@@ -14792,6 +14792,8 @@ const ChatBubble = _ref => {
|
|
|
14792
14792
|
senderName,
|
|
14793
14793
|
avatar,
|
|
14794
14794
|
attachment,
|
|
14795
|
+
onFileClick,
|
|
14796
|
+
onFileActionClick,
|
|
14795
14797
|
className,
|
|
14796
14798
|
style
|
|
14797
14799
|
} = _ref,
|
|
@@ -14844,13 +14846,14 @@ const ChatBubble = _ref => {
|
|
|
14844
14846
|
md: 250
|
|
14845
14847
|
},
|
|
14846
14848
|
bd: "1px solid #E2E8F0",
|
|
14849
|
+
onClick: () => onFileClick === null || onFileClick === void 0 ? void 0 : onFileClick(attachment),
|
|
14847
14850
|
rightsection: {
|
|
14848
14851
|
icon: {
|
|
14849
14852
|
name: "ReceiveSquare",
|
|
14850
14853
|
size: 16,
|
|
14851
14854
|
color: "gray"
|
|
14852
14855
|
},
|
|
14853
|
-
onClick: () =>
|
|
14856
|
+
onClick: () => onFileActionClick === null || onFileActionClick === void 0 ? void 0 : onFileActionClick(attachment)
|
|
14854
14857
|
},
|
|
14855
14858
|
mb: 4
|
|
14856
14859
|
}, /*#__PURE__*/React.createElement(core.Stack, {
|
|
@@ -15020,10 +15023,6 @@ const ChatHeader = _ref => {
|
|
|
15020
15023
|
px: {
|
|
15021
15024
|
base: 4,
|
|
15022
15025
|
md: 8
|
|
15023
|
-
},
|
|
15024
|
-
display: {
|
|
15025
|
-
base: "none",
|
|
15026
|
-
md: "block"
|
|
15027
15026
|
}
|
|
15028
15027
|
}, /*#__PURE__*/React.createElement(core.ActionIcon, {
|
|
15029
15028
|
variant: "transparent",
|
|
@@ -15033,22 +15032,6 @@ const ChatHeader = _ref => {
|
|
|
15033
15032
|
}, /*#__PURE__*/React.createElement(Icons, {
|
|
15034
15033
|
name: "Sms",
|
|
15035
15034
|
size: 20
|
|
15036
|
-
}))), /*#__PURE__*/React.createElement(core.Box, {
|
|
15037
|
-
style: {
|
|
15038
|
-
borderLeft: "1px solid #ECEDEF"
|
|
15039
|
-
},
|
|
15040
|
-
px: {
|
|
15041
|
-
base: 4,
|
|
15042
|
-
md: 8
|
|
15043
|
-
}
|
|
15044
|
-
}, /*#__PURE__*/React.createElement(core.ActionIcon, {
|
|
15045
|
-
variant: "transparent",
|
|
15046
|
-
color: "gray",
|
|
15047
|
-
size: "lg",
|
|
15048
|
-
radius: "xl"
|
|
15049
|
-
}, /*#__PURE__*/React.createElement(Icons, {
|
|
15050
|
-
name: "Call",
|
|
15051
|
-
size: 20
|
|
15052
15035
|
}))))));
|
|
15053
15036
|
};
|
|
15054
15037
|
|
|
@@ -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-CYOPx-_h.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);
|
|
@@ -14759,7 +14759,7 @@ const ChatListCard = _ref => {
|
|
|
14759
14759
|
}, unreadCount)))));
|
|
14760
14760
|
};
|
|
14761
14761
|
|
|
14762
|
-
const _excluded$4 = ["message", "time", "isOutgoing", "senderName", "avatar", "attachment", "className", "style"];
|
|
14762
|
+
const _excluded$4 = ["message", "time", "isOutgoing", "senderName", "avatar", "attachment", "onFileClick", "onFileActionClick", "className", "style"];
|
|
14763
14763
|
function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14764
14764
|
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14765
14765
|
const ChatBubble = _ref => {
|
|
@@ -14771,6 +14771,8 @@ const ChatBubble = _ref => {
|
|
|
14771
14771
|
senderName,
|
|
14772
14772
|
avatar,
|
|
14773
14773
|
attachment,
|
|
14774
|
+
onFileClick,
|
|
14775
|
+
onFileActionClick,
|
|
14774
14776
|
className,
|
|
14775
14777
|
style
|
|
14776
14778
|
} = _ref,
|
|
@@ -14823,13 +14825,14 @@ const ChatBubble = _ref => {
|
|
|
14823
14825
|
md: 250
|
|
14824
14826
|
},
|
|
14825
14827
|
bd: "1px solid #E2E8F0",
|
|
14828
|
+
onClick: () => onFileClick === null || onFileClick === void 0 ? void 0 : onFileClick(attachment),
|
|
14826
14829
|
rightsection: {
|
|
14827
14830
|
icon: {
|
|
14828
14831
|
name: "ReceiveSquare",
|
|
14829
14832
|
size: 16,
|
|
14830
14833
|
color: "gray"
|
|
14831
14834
|
},
|
|
14832
|
-
onClick: () =>
|
|
14835
|
+
onClick: () => onFileActionClick === null || onFileActionClick === void 0 ? void 0 : onFileActionClick(attachment)
|
|
14833
14836
|
},
|
|
14834
14837
|
mb: 4
|
|
14835
14838
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
@@ -14999,10 +15002,6 @@ const ChatHeader = _ref => {
|
|
|
14999
15002
|
px: {
|
|
15000
15003
|
base: 4,
|
|
15001
15004
|
md: 8
|
|
15002
|
-
},
|
|
15003
|
-
display: {
|
|
15004
|
-
base: "none",
|
|
15005
|
-
md: "block"
|
|
15006
15005
|
}
|
|
15007
15006
|
}, /*#__PURE__*/React__default.createElement(ActionIcon, {
|
|
15008
15007
|
variant: "transparent",
|
|
@@ -15012,22 +15011,6 @@ const ChatHeader = _ref => {
|
|
|
15012
15011
|
}, /*#__PURE__*/React__default.createElement(Icons, {
|
|
15013
15012
|
name: "Sms",
|
|
15014
15013
|
size: 20
|
|
15015
|
-
}))), /*#__PURE__*/React__default.createElement(Box, {
|
|
15016
|
-
style: {
|
|
15017
|
-
borderLeft: "1px solid #ECEDEF"
|
|
15018
|
-
},
|
|
15019
|
-
px: {
|
|
15020
|
-
base: 4,
|
|
15021
|
-
md: 8
|
|
15022
|
-
}
|
|
15023
|
-
}, /*#__PURE__*/React__default.createElement(ActionIcon, {
|
|
15024
|
-
variant: "transparent",
|
|
15025
|
-
color: "gray",
|
|
15026
|
-
size: "lg",
|
|
15027
|
-
radius: "xl"
|
|
15028
|
-
}, /*#__PURE__*/React__default.createElement(Icons, {
|
|
15029
|
-
name: "Call",
|
|
15030
|
-
size: 20
|
|
15031
15014
|
}))))));
|
|
15032
15015
|
};
|
|
15033
15016
|
|
|
@@ -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-CzYOlCzh.js';
|
|
2
2
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import '@babel/runtime/helpers/defineProperty';
|
|
4
4
|
import '@mantine/modals';
|
|
@@ -4,6 +4,7 @@ export interface ChatAttachment {
|
|
|
4
4
|
name: string;
|
|
5
5
|
size?: string;
|
|
6
6
|
url?: string;
|
|
7
|
+
date?: string;
|
|
7
8
|
}
|
|
8
9
|
export interface ChatListCardProps extends React.ComponentPropsWithoutRef<"button"> {
|
|
9
10
|
/** User name */
|
|
@@ -38,6 +39,10 @@ export interface ChatBubbleProps extends React.ComponentPropsWithoutRef<"div"> {
|
|
|
38
39
|
avatar?: string;
|
|
39
40
|
/** Optional attachment */
|
|
40
41
|
attachment?: ChatAttachment;
|
|
42
|
+
/** Handler for file click */
|
|
43
|
+
onFileClick?: (attachment: ChatAttachment) => void;
|
|
44
|
+
/** Handler for file action click (right section) */
|
|
45
|
+
onFileActionClick?: (attachment: ChatAttachment) => void;
|
|
41
46
|
}
|
|
42
47
|
export interface ChatHeaderProps extends React.ComponentPropsWithoutRef<"div"> {
|
|
43
48
|
/** User name */
|
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.28",
|
|
5
5
|
"description": "An ADIBA component library for backoffice and dashboard applications",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"main": "build/index.cjs.js",
|