@gooddata/sdk-ui-ext 10.18.0-alpha.9 → 10.18.0-beta.1
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/NOTICE +3 -3
- package/esm/index.d.ts +10 -2
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +9 -2
- package/esm/index.js.map +1 -1
- package/esm/internal/translations/de-DE.json +25 -1
- package/esm/internal/translations/en-AU.json +25 -1
- package/esm/internal/translations/en-GB.json +25 -1
- package/esm/internal/translations/en-US.json +16 -1
- package/esm/internal/translations/es-419.json +25 -1
- package/esm/internal/translations/es-ES.json +25 -1
- package/esm/internal/translations/fi-FI.json +25 -1
- package/esm/internal/translations/fr-CA.json +25 -1
- package/esm/internal/translations/fr-FR.json +25 -1
- package/esm/internal/translations/it-IT.json +25 -1
- package/esm/internal/translations/ja-JP.json +25 -1
- package/esm/internal/translations/nl-NL.json +25 -1
- package/esm/internal/translations/pt-BR.json +25 -1
- package/esm/internal/translations/pt-PT.json +25 -1
- package/esm/internal/translations/zh-HK.json +25 -1
- package/esm/internal/translations/zh-Hans.json +25 -1
- package/esm/internal/translations/zh-Hant.json +25 -1
- package/esm/notificationsPanel/@staging/OrganizationContext/OrganizationContext.d.ts +12 -0
- package/esm/notificationsPanel/@staging/OrganizationContext/OrganizationContext.d.ts.map +1 -1
- package/esm/notificationsPanel/@staging/OrganizationContext/OrganizationContext.js +10 -1
- package/esm/notificationsPanel/@staging/OrganizationContext/OrganizationContext.js.map +1 -1
- package/esm/notificationsPanel/@staging/OrganizationContext/useFetchOrganization.d.ts +6 -4
- package/esm/notificationsPanel/@staging/OrganizationContext/useFetchOrganization.d.ts.map +1 -1
- package/esm/notificationsPanel/@staging/OrganizationContext/useFetchOrganization.js +1 -1
- package/esm/notificationsPanel/@staging/OrganizationContext/useFetchOrganization.js.map +1 -1
- package/esm/notificationsPanel/Notification/AlertNotification.d.ts +2 -2
- package/esm/notificationsPanel/Notification/AlertNotification.d.ts.map +1 -1
- package/esm/notificationsPanel/Notification/AlertNotification.js +40 -12
- package/esm/notificationsPanel/Notification/AlertNotification.js.map +1 -1
- package/esm/notificationsPanel/Notification/DefaultNotification.d.ts +17 -4
- package/esm/notificationsPanel/Notification/DefaultNotification.d.ts.map +1 -1
- package/esm/notificationsPanel/Notification/DefaultNotification.js +6 -4
- package/esm/notificationsPanel/Notification/DefaultNotification.js.map +1 -1
- package/esm/notificationsPanel/NotificationFiltersDetail/NotificationFiltersDetail.js +1 -1
- package/esm/notificationsPanel/NotificationFiltersDetail/NotificationFiltersDetail.js.map +1 -1
- package/esm/notificationsPanel/NotificationFiltersDetail/NotificationFiltersDetailDialog.js +2 -2
- package/esm/notificationsPanel/NotificationFiltersDetail/NotificationFiltersDetailDialog.js.map +1 -1
- package/esm/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetail.d.ts +4 -1
- package/esm/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetail.d.ts.map +1 -1
- package/esm/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetail.js +9 -5
- package/esm/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetail.js.map +1 -1
- package/esm/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetailDialog.d.ts +4 -1
- package/esm/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetailDialog.d.ts.map +1 -1
- package/esm/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetailDialog.js +1 -1
- package/esm/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetailDialog.js.map +1 -1
- package/esm/notificationsPanel/NotificationsList/DefaultNotificationsList.d.ts +66 -4
- package/esm/notificationsPanel/NotificationsList/DefaultNotificationsList.d.ts.map +1 -1
- package/esm/notificationsPanel/NotificationsList/DefaultNotificationsList.js +16 -15
- package/esm/notificationsPanel/NotificationsList/DefaultNotificationsList.js.map +1 -1
- package/esm/notificationsPanel/NotificationsList/DefaultNotificationsListEmptyState.d.ts +9 -2
- package/esm/notificationsPanel/NotificationsList/DefaultNotificationsListEmptyState.d.ts.map +1 -1
- package/esm/notificationsPanel/NotificationsList/DefaultNotificationsListEmptyState.js +4 -2
- package/esm/notificationsPanel/NotificationsList/DefaultNotificationsListEmptyState.js.map +1 -1
- package/esm/notificationsPanel/NotificationsList/DefaultNotificationsListErrorState.d.ts +9 -2
- package/esm/notificationsPanel/NotificationsList/DefaultNotificationsListErrorState.d.ts.map +1 -1
- package/esm/notificationsPanel/NotificationsList/DefaultNotificationsListErrorState.js +4 -2
- package/esm/notificationsPanel/NotificationsList/DefaultNotificationsListErrorState.js.map +1 -1
- package/esm/notificationsPanel/NotificationsList/DefaultSkeletonItem.d.ts +19 -0
- package/esm/notificationsPanel/NotificationsList/DefaultSkeletonItem.d.ts.map +1 -0
- package/esm/notificationsPanel/NotificationsList/DefaultSkeletonItem.js +9 -0
- package/esm/notificationsPanel/NotificationsList/DefaultSkeletonItem.js.map +1 -0
- package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanel.d.ts +95 -5
- package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanel.d.ts.map +1 -1
- package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanel.js +7 -5
- package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanel.js.map +1 -1
- package/esm/notificationsPanel/NotificationsPanel/{DefaultOpenNotificationsPanelButton.d.ts → DefaultNotificationsPanelButton.d.ts} +8 -6
- package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanelButton.d.ts.map +1 -0
- package/esm/notificationsPanel/NotificationsPanel/{DefaultOpenNotificationsPanelButton.js → DefaultNotificationsPanelButton.js} +7 -5
- package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanelButton.js.map +1 -0
- package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanelHeader.d.ts +8 -4
- package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanelHeader.d.ts.map +1 -1
- package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanelHeader.js +6 -4
- package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanelHeader.js.map +1 -1
- package/esm/notificationsPanel/NotificationsPanel/NotificationsPanel.d.ts +75 -11
- package/esm/notificationsPanel/NotificationsPanel/NotificationsPanel.d.ts.map +1 -1
- package/esm/notificationsPanel/NotificationsPanel/NotificationsPanel.js +23 -11
- package/esm/notificationsPanel/NotificationsPanel/NotificationsPanel.js.map +1 -1
- package/esm/notificationsPanel/bem.d.ts +5 -0
- package/esm/notificationsPanel/bem.d.ts.map +1 -1
- package/esm/notificationsPanel/bem.js +6 -1
- package/esm/notificationsPanel/bem.js.map +1 -1
- package/esm/notificationsPanel/components/Popup.d.ts +9 -0
- package/esm/notificationsPanel/components/Popup.d.ts.map +1 -0
- package/esm/notificationsPanel/components/Popup.js +15 -0
- package/esm/notificationsPanel/components/Popup.js.map +1 -0
- package/esm/notificationsPanel/data/NotificationsContext.d.ts +16 -1
- package/esm/notificationsPanel/data/NotificationsContext.d.ts.map +1 -1
- package/esm/notificationsPanel/data/NotificationsContext.js +9 -3
- package/esm/notificationsPanel/data/NotificationsContext.js.map +1 -1
- package/esm/notificationsPanel/data/useFetchNotifications.d.ts +11 -8
- package/esm/notificationsPanel/data/useFetchNotifications.d.ts.map +1 -1
- package/esm/notificationsPanel/data/useFetchNotifications.js +18 -7
- package/esm/notificationsPanel/data/useFetchNotifications.js.map +1 -1
- package/esm/notificationsPanel/data/useNotificationFiltersDetail.d.ts +1 -0
- package/esm/notificationsPanel/data/useNotificationFiltersDetail.d.ts.map +1 -1
- package/esm/notificationsPanel/data/useNotificationFiltersDetail.js +34 -17
- package/esm/notificationsPanel/data/useNotificationFiltersDetail.js.map +1 -1
- package/esm/notificationsPanel/data/useNotifications.d.ts +24 -4
- package/esm/notificationsPanel/data/useNotifications.d.ts.map +1 -1
- package/esm/notificationsPanel/data/useNotifications.js +15 -10
- package/esm/notificationsPanel/data/useNotifications.js.map +1 -1
- package/esm/notificationsPanel/types.d.ts +3 -1
- package/esm/notificationsPanel/types.d.ts.map +1 -1
- package/esm/notificationsPanel/types.js +1 -1
- package/esm/notificationsPanel/types.js.map +1 -1
- package/esm/sdk-ui-ext.d.ts +349 -52
- package/package.json +17 -18
- package/src/notificationsPanel/Notification/DefaultNotification.scss +28 -5
- package/src/notificationsPanel/NotificationsList/DefaultNotificationsList.scss +3 -0
- package/src/notificationsPanel/NotificationsPanel/DefaultNotificationsPanel.scss +8 -4
- package/src/notificationsPanel/NotificationsPanel/{DefaultOpenNotificationsPanelButton.scss → DefaultNotificationsPanelButton.scss} +2 -2
- package/src/notificationsPanel/NotificationsPanel/DefaultNotificationsPanelHeader.scss +8 -3
- package/src/notificationsPanel/notificationPanel.scss +9 -4
- package/styles/css/main.css +987 -51
- package/styles/css/main.css.map +1 -1
- package/esm/notificationsPanel/NotificationsPanel/DefaultOpenNotificationsPanelButton.d.ts.map +0 -1
- package/esm/notificationsPanel/NotificationsPanel/DefaultOpenNotificationsPanelButton.js.map +0 -1
- package/esm/notificationsPanel/components/Skeleton.d.ts +0 -8
- package/esm/notificationsPanel/components/Skeleton.d.ts.map +0 -1
- package/esm/notificationsPanel/components/Skeleton.js +0 -11
- package/esm/notificationsPanel/components/Skeleton.js.map +0 -1
- package/esm/notificationsPanel/components/VirtualList.d.ts +0 -15
- package/esm/notificationsPanel/components/VirtualList.d.ts.map +0 -1
- package/esm/notificationsPanel/components/VirtualList.js +0 -77
- package/esm/notificationsPanel/components/VirtualList.js.map +0 -1
- package/src/notificationsPanel/components/Skeleton.scss +0 -25
- package/src/notificationsPanel/components/VirtualList.scss +0 -26
|
@@ -363,5 +363,29 @@
|
|
|
363
363
|
"properties.interactions.alerts": "警報",
|
|
364
364
|
"properties.interactions.alerts.tooltip": "使用戶能夠在儀表板上為此視覺化建立警報。",
|
|
365
365
|
"properties.interactions.scheduledExports": "預定出口",
|
|
366
|
-
"properties.interactions.scheduledExports.tooltip": "使用戶能夠在儀表板上為此視覺化建立計劃匯出。"
|
|
366
|
+
"properties.interactions.scheduledExports.tooltip": "使用戶能夠在儀表板上為此視覺化建立計劃匯出。",
|
|
367
|
+
"properties.advanced.title": "高級訂製",
|
|
368
|
+
"properties.advanced.chartConfigOverride.noValueLabel": "還沒有訂製。",
|
|
369
|
+
"properties.advanced.chartConfigOverride.link": "了解更多",
|
|
370
|
+
"properties.advanced.chartConfigOverride.editorButton": "開啟編輯器",
|
|
371
|
+
"properties.advanced.chartConfigOverride.title": "高級訂製",
|
|
372
|
+
"properties.advanced.chartConfigOverride.snippets.header": "片段",
|
|
373
|
+
"properties.advanced.chartConfigOverride.button.apply": "申請",
|
|
374
|
+
"properties.advanced.chartConfigOverride.button.cancel": "取消",
|
|
375
|
+
"gs.date.yesterday": "昨天",
|
|
376
|
+
"notifications.panel.tab.unread": "未讀({count})",
|
|
377
|
+
"notifications.panel.tab.all": "全部",
|
|
378
|
+
"notifications.panel.markAllAsRead": "全部標記為已讀",
|
|
379
|
+
"notifications.panel.error.loading": "載入通知時出錯",
|
|
380
|
+
"notifications.panel.empty.all": "沒有通知",
|
|
381
|
+
"notifications.panel.empty.unread": "沒有未讀通知",
|
|
382
|
+
"notifications.panel.unsupported.notification.type": "不支援的通知類型",
|
|
383
|
+
"notifications.panel.markAsRead": "標記為已讀",
|
|
384
|
+
"notifications.filters.buttonLabel": "顯示篩選器",
|
|
385
|
+
"notifications.filters.dialog.title": "應用篩選器",
|
|
386
|
+
"notifications.filters.dialog.dateRange": "日期範圍",
|
|
387
|
+
"notifications.panel.triggers.title": "適用於 {triggeredCount}/{totalCount} 個項目",
|
|
388
|
+
"notifications.panel.triggers.dialog.newValue": "新值",
|
|
389
|
+
"close": "關閉",
|
|
390
|
+
"notifications.panel.triggers.dialog.title": "觸發原因"
|
|
367
391
|
}
|
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { IAnalyticalBackend, IOrganization } from "@gooddata/sdk-backend-spi";
|
|
3
3
|
import { GoodDataSdkError, UseCancelablePromiseState } from "@gooddata/sdk-ui";
|
|
4
|
+
/**
|
|
5
|
+
* @beta
|
|
6
|
+
*/
|
|
4
7
|
export type IOrganizationContext = UseCancelablePromiseState<IOrganization, GoodDataSdkError>;
|
|
8
|
+
/**
|
|
9
|
+
* @beta
|
|
10
|
+
*/
|
|
5
11
|
export declare const useOrganization: () => IOrganizationContext;
|
|
12
|
+
/**
|
|
13
|
+
* @beta
|
|
14
|
+
*/
|
|
6
15
|
export interface IOrganizationProviderProps {
|
|
7
16
|
backend?: IAnalyticalBackend;
|
|
8
17
|
organizationId?: string;
|
|
9
18
|
children?: React.ReactNode;
|
|
10
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* @beta
|
|
22
|
+
*/
|
|
11
23
|
export declare const OrganizationProvider: React.FC<IOrganizationProviderProps>;
|
|
12
24
|
//# sourceMappingURL=OrganizationContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrganizationContext.d.ts","sourceRoot":"","sources":["../../../../src/notificationsPanel/@staging/OrganizationContext/OrganizationContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE9E,OAAO,EAAE,gBAAgB,EAAsB,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAEnG,MAAM,MAAM,oBAAoB,GAAG,yBAAyB,CAAC,aAAa,EAAE,gBAAgB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"OrganizationContext.d.ts","sourceRoot":"","sources":["../../../../src/notificationsPanel/@staging/OrganizationContext/OrganizationContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE9E,OAAO,EAAE,gBAAgB,EAAsB,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAEnG;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,yBAAyB,CAAC,aAAa,EAAE,gBAAgB,CAAC,CAAC;AAQ9F;;GAEG;AACH,eAAO,MAAM,eAAe,4BAM3B,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACvC,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAQrE,CAAC"}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
// (C) 2019-
|
|
1
|
+
// (C) 2019-2025 GoodData Corporation
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { useFetchOrganization } from "./useFetchOrganization.js";
|
|
4
4
|
import { UnexpectedSdkError } from "@gooddata/sdk-ui";
|
|
5
|
+
/**
|
|
6
|
+
* @beta
|
|
7
|
+
*/
|
|
5
8
|
const OrganizationContext = React.createContext(null);
|
|
6
9
|
OrganizationContext.displayName = "OrganizationContext";
|
|
10
|
+
/**
|
|
11
|
+
* @beta
|
|
12
|
+
*/
|
|
7
13
|
export const useOrganization = () => {
|
|
8
14
|
const organization = React.useContext(OrganizationContext);
|
|
9
15
|
if (!organization) {
|
|
@@ -11,6 +17,9 @@ export const useOrganization = () => {
|
|
|
11
17
|
}
|
|
12
18
|
return organization;
|
|
13
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* @beta
|
|
22
|
+
*/
|
|
14
23
|
export const OrganizationProvider = ({ children, backend, organizationId, }) => {
|
|
15
24
|
const organization = useFetchOrganization({ backend, organizationId });
|
|
16
25
|
return React.createElement(OrganizationContext.Provider, { value: organization }, children);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrganizationContext.js","sourceRoot":"","sources":["../../../../src/notificationsPanel/@staging/OrganizationContext/OrganizationContext.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAoB,kBAAkB,EAA6B,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"OrganizationContext.js","sourceRoot":"","sources":["../../../../src/notificationsPanel/@staging/OrganizationContext/OrganizationContext.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAoB,kBAAkB,EAA6B,MAAM,kBAAkB,CAAC;AAOnG;;GAEG;AACH,MAAM,mBAAmB,GAAG,KAAK,CAAC,aAAa,CAA8B,IAAI,CAAC,CAAC;AACnF,mBAAmB,CAAC,WAAW,GAAG,qBAAqB,CAAC;AAExD;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE;IAChC,MAAM,YAAY,GAAG,KAAK,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC;IAC3D,IAAI,CAAC,YAAY,EAAE,CAAC;QAChB,MAAM,IAAI,kBAAkB,CAAC,4DAA4D,CAAC,CAAC;IAC/F,CAAC;IACD,OAAO,YAAY,CAAC;AACxB,CAAC,CAAC;AAWF;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAyC,CAAC,EACvE,QAAQ,EACR,OAAO,EACP,cAAc,GACjB,EAAE,EAAE;IACD,MAAM,YAAY,GAAG,oBAAoB,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC,CAAC;IAEvE,OAAO,oBAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,YAAY,IAAG,QAAQ,CAAgC,CAAC;AACxG,CAAC,CAAC"}
|
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import { IAnalyticalBackend, IOrganization } from "@gooddata/sdk-backend-spi";
|
|
2
2
|
import { GoodDataSdkError } from "@gooddata/sdk-ui";
|
|
3
3
|
/**
|
|
4
|
-
* @
|
|
4
|
+
* @beta
|
|
5
5
|
*/
|
|
6
6
|
export interface IUseFetchOrganizationProps {
|
|
7
7
|
/**
|
|
8
8
|
* Analytical backend instance to use.
|
|
9
|
-
*
|
|
9
|
+
*
|
|
10
|
+
* - If not provided, it will be taken from the BackendProvider context.
|
|
10
11
|
*/
|
|
11
12
|
backend?: IAnalyticalBackend;
|
|
12
13
|
/**
|
|
13
14
|
* Organization ID to use.
|
|
14
|
-
*
|
|
15
|
+
*
|
|
16
|
+
* - If not provided, organization of the currently logged in user will be used.
|
|
15
17
|
*/
|
|
16
18
|
organizationId?: string;
|
|
17
19
|
}
|
|
18
20
|
/**
|
|
19
|
-
* @
|
|
21
|
+
* @beta
|
|
20
22
|
*/
|
|
21
23
|
export declare function useFetchOrganization({ backend, organizationId }: IUseFetchOrganizationProps): import("@gooddata/sdk-ui").UseCancelablePromiseState<IOrganization, GoodDataSdkError>;
|
|
22
24
|
//# sourceMappingURL=useFetchOrganization.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFetchOrganization.d.ts","sourceRoot":"","sources":["../../../../src/notificationsPanel/@staging/OrganizationContext/useFetchOrganization.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAA0C,MAAM,kBAAkB,CAAC;AAE5F;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACvC
|
|
1
|
+
{"version":3,"file":"useFetchOrganization.d.ts","sourceRoot":"","sources":["../../../../src/notificationsPanel/@staging/OrganizationContext/useFetchOrganization.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAA0C,MAAM,kBAAkB,CAAC;AAE5F;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;OAIG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,0BAA0B,yFAa3F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFetchOrganization.js","sourceRoot":"","sources":["../../../../src/notificationsPanel/@staging/OrganizationContext/useFetchOrganization.ts"],"names":[],"mappings":"AAEA,OAAO,EAAoB,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"useFetchOrganization.js","sourceRoot":"","sources":["../../../../src/notificationsPanel/@staging/OrganizationContext/useFetchOrganization.ts"],"names":[],"mappings":"AAEA,OAAO,EAAoB,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAqB5F;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAAC,EAAE,OAAO,EAAE,cAAc,EAA8B;IACxF,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;IAEtE,OAAO,oBAAoB,CACvB;QACI,OAAO,EAAE,GAAG,EAAE;YACV,OAAO,cAAc;gBACjB,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC;gBAChE,CAAC,CAAC,gBAAgB,CAAC,aAAa,EAAE,CAAC,sBAAsB,EAAE,CAAC;QACpE,CAAC;KACJ,EACD,CAAC,gBAAgB,EAAE,cAAc,CAAC,CACrC,CAAC;AACN,CAAC"}
|
|
@@ -5,11 +5,11 @@ import { IAlertNotification } from "@gooddata/sdk-model";
|
|
|
5
5
|
*/
|
|
6
6
|
export interface IAlertNotificationsProps {
|
|
7
7
|
notification: IAlertNotification;
|
|
8
|
-
|
|
8
|
+
markNotificationAsRead: (id: string) => void;
|
|
9
9
|
onNotificationClick: (notification: IAlertNotification) => void;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* @internal
|
|
13
13
|
*/
|
|
14
|
-
export declare function AlertNotification({ notification,
|
|
14
|
+
export declare function AlertNotification({ notification, markNotificationAsRead, onNotificationClick, }: IAlertNotificationsProps): React.JSX.Element;
|
|
15
15
|
//# sourceMappingURL=AlertNotification.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertNotification.d.ts","sourceRoot":"","sources":["../../../src/notificationsPanel/Notification/AlertNotification.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAqB,kBAAkB,EAAiB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"AlertNotification.d.ts","sourceRoot":"","sources":["../../../src/notificationsPanel/Notification/AlertNotification.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAqB,kBAAkB,EAAiB,MAAM,qBAAqB,CAAC;AAS3F;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,YAAY,EAAE,kBAAkB,CAAC;IACjC,sBAAsB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,mBAAmB,EAAE,CAAC,YAAY,EAAE,kBAAkB,KAAK,IAAI,CAAC;CACnE;AAID;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,EAC9B,YAAY,EACZ,sBAAsB,EACtB,mBAAmB,GACtB,EAAE,wBAAwB,qBAqG1B"}
|
|
@@ -1,38 +1,66 @@
|
|
|
1
|
-
// (C) 2024 GoodData Corporation
|
|
1
|
+
// (C) 2024-2025 GoodData Corporation
|
|
2
2
|
import React, { useCallback } from "react";
|
|
3
3
|
import { getDateTimeConfig, UiIcon } from "@gooddata/sdk-ui-kit";
|
|
4
4
|
import { bem } from "../bem.js";
|
|
5
5
|
import { Tooltip } from "../components/Tooltip.js";
|
|
6
|
-
import {
|
|
6
|
+
import { Popup } from "../components/Popup.js";
|
|
7
|
+
// import { NotificationFiltersDetail } from "../NotificationFiltersDetail/NotificationFiltersDetail.js";
|
|
7
8
|
import { NotificationTriggerDetail } from "../NotificationTriggersDetail/NotificationTriggersDetail.js";
|
|
8
9
|
import { defineMessages, FormattedDate, FormattedMessage, FormattedTime, useIntl } from "react-intl";
|
|
9
10
|
const { b, e } = bem("gd-ui-ext-notification");
|
|
10
11
|
/**
|
|
11
12
|
* @internal
|
|
12
13
|
*/
|
|
13
|
-
export function AlertNotification({ notification,
|
|
14
|
+
export function AlertNotification({ notification, markNotificationAsRead, onNotificationClick, }) {
|
|
14
15
|
const intl = useIntl();
|
|
15
16
|
const onMarkAsReadClick = (e) => {
|
|
16
17
|
e.stopPropagation();
|
|
17
|
-
|
|
18
|
+
markNotificationAsRead(notification.id);
|
|
18
19
|
};
|
|
19
|
-
const clickNotification = useCallback(() => {
|
|
20
|
+
const clickNotification = useCallback((event) => {
|
|
21
|
+
const target = event.target;
|
|
22
|
+
const targetIsElement = target instanceof Element;
|
|
23
|
+
const isNotificationsDetailsLink = targetIsElement &&
|
|
24
|
+
(target.closest(`[data-id="notification-detail"]`) ||
|
|
25
|
+
target.closest(`[data-id="notification-error"]`));
|
|
26
|
+
if (isNotificationsDetailsLink) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
20
29
|
onNotificationClick(notification);
|
|
21
30
|
}, [onNotificationClick, notification]);
|
|
22
|
-
|
|
23
|
-
const
|
|
24
|
-
const
|
|
31
|
+
// Hide filters for now, as there is lot of unresolved cases to consider
|
|
32
|
+
// const filterCount = notification.details.data.alert.filterCount;
|
|
33
|
+
// const isSliced = notification.details.data.alert.attribute;
|
|
34
|
+
// const showSeparator = filterCount && filterCount > 0 && isSliced;
|
|
25
35
|
const notificationTitle = getNotificationTitle(notification);
|
|
36
|
+
const isSliced = notification.details.data.alert.attribute;
|
|
37
|
+
const hasTriggers = notification.details.data.alert.totalValueCount > 0;
|
|
38
|
+
const isError = notification.details.data.alert.status !== "SUCCESS";
|
|
39
|
+
const errorMessage = notification.details.data.alert.errorMessage;
|
|
40
|
+
const traceId = notification.details.data.alert.traceId;
|
|
26
41
|
return (React.createElement("div", { className: b({ isRead: notification.isRead }), onClick: clickNotification },
|
|
27
42
|
React.createElement("div", { className: e("icon") },
|
|
28
43
|
!notification.isRead && React.createElement("div", { className: e("unread-status") }),
|
|
29
44
|
React.createElement(UiIcon, { type: "alert", size: 14, color: "complementary-6" })),
|
|
30
45
|
React.createElement("div", { className: e("details") },
|
|
31
46
|
React.createElement("div", { className: e("title", { isRead: notification.isRead }), title: notificationTitle }, notificationTitle),
|
|
32
|
-
React.createElement("div", { className: e("
|
|
33
|
-
React.createElement(
|
|
34
|
-
|
|
35
|
-
React.createElement(
|
|
47
|
+
isError ? (React.createElement("div", { className: e("error") },
|
|
48
|
+
React.createElement("div", { className: e("error-icon") },
|
|
49
|
+
React.createElement(UiIcon, { type: "crossCircle", size: 12, color: "error" })),
|
|
50
|
+
React.createElement("div", null,
|
|
51
|
+
React.createElement(FormattedMessage, { id: "notifications.panel.error.message" }),
|
|
52
|
+
" ",
|
|
53
|
+
React.createElement(Popup, { popup: React.createElement("div", { className: e("error-popup") },
|
|
54
|
+
errorMessage,
|
|
55
|
+
React.createElement("br", null),
|
|
56
|
+
React.createElement(FormattedMessage, { id: "notifications.panel.error.traceId" }),
|
|
57
|
+
": ",
|
|
58
|
+
traceId) }, ({ toggle, id }) => (React.createElement("u", { "data-id": "notification-error", id: id, onClick: () => {
|
|
59
|
+
toggle();
|
|
60
|
+
} },
|
|
61
|
+
React.createElement(FormattedMessage, { id: "notifications.panel.error.learnMore" }))))))) : null,
|
|
62
|
+
!isError && isSliced && hasTriggers ? (React.createElement("div", { className: e("links") },
|
|
63
|
+
React.createElement(NotificationTriggerDetail, { notification: notification }))) : null),
|
|
36
64
|
React.createElement("div", { className: e("time") },
|
|
37
65
|
React.createElement(NotificationTime, { config: getDateTimeConfig(notification.createdAt) })),
|
|
38
66
|
React.createElement("div", { className: e("mark-as-read-button") },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertNotification.js","sourceRoot":"","sources":["../../../src/notificationsPanel/Notification/AlertNotification.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"AlertNotification.js","sourceRoot":"","sources":["../../../src/notificationsPanel/Notification/AlertNotification.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAE,iBAAiB,EAAe,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,yGAAyG;AACzG,OAAO,EAAE,yBAAyB,EAAE,MAAM,6DAA6D,CAAC;AACxG,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAWrG,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,GAAG,CAAC,wBAAwB,CAAC,CAAC;AAE/C;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,EAC9B,YAAY,EACZ,sBAAsB,EACtB,mBAAmB,GACI;IACvB,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IAEvB,MAAM,iBAAiB,GAAG,CAAC,CAAoC,EAAE,EAAE;QAC/D,CAAC,CAAC,eAAe,EAAE,CAAC;QACpB,sBAAsB,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;IAC5C,CAAC,CAAC;IAEF,MAAM,iBAAiB,GAAG,WAAW,CACjC,CAAC,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D,CAAC;AAED,MAAM,gBAAgB,GAAG,CAAC,EAAE,MAAM,EAA2B,EAAE,EAAE;IAC7D,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;QACjB,OAAO,oBAAC,aAAa,IAAC,KAAK,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,EAAC,MAAM,EAAC,MAAM,EAAE,KAAK,GAAI,CAAC;IAC9E,CAAC;SAAM,IAAI,MAAM,CAAC,WAAW,EAAE,CAAC;QAC5B,OAAO,CACH;YACI,oBAAC,gBAAgB,IAAC,EAAE,EAAC,mBAAmB,GAAG,CACxC,CACV,CAAC;IACN,CAAC;IAED,OAAO,oBAAC,aAAa,IAAC,KAAK,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,EAAC,eAAe,GAAG,CAAC;AACxE,CAAC,CAAC;AAEF,MAAM,QAAQ,GAAG,cAAc,CAAC;IAC5B,UAAU,EAAE;QACR,EAAE,EAAE,gCAAgC;KACvC;CACJ,CAAC,CAAC"}
|
|
@@ -1,15 +1,28 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { INotification } from "@gooddata/sdk-model";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Props for the Notification component.
|
|
5
|
+
*
|
|
6
|
+
* @public
|
|
5
7
|
*/
|
|
6
8
|
export interface INotificationComponentProps {
|
|
9
|
+
/**
|
|
10
|
+
* Notification to display.
|
|
11
|
+
*/
|
|
7
12
|
notification: INotification;
|
|
8
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Function to mark notification as read.
|
|
15
|
+
*/
|
|
16
|
+
markNotificationAsRead: (id: string) => void;
|
|
17
|
+
/**
|
|
18
|
+
* Function to handle notification click.
|
|
19
|
+
*/
|
|
9
20
|
onNotificationClick: (notification: INotification) => void;
|
|
10
21
|
}
|
|
11
22
|
/**
|
|
12
|
-
*
|
|
23
|
+
* Default implementation of the Notification component.
|
|
24
|
+
*
|
|
25
|
+
* @public
|
|
13
26
|
*/
|
|
14
|
-
export declare function DefaultNotification({ notification,
|
|
27
|
+
export declare function DefaultNotification({ notification, markNotificationAsRead, onNotificationClick, }: INotificationComponentProps): React.JSX.Element;
|
|
15
28
|
//# sourceMappingURL=DefaultNotification.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultNotification.d.ts","sourceRoot":"","sources":["../../../src/notificationsPanel/Notification/DefaultNotification.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAKpD
|
|
1
|
+
{"version":3,"file":"DefaultNotification.d.ts","sourceRoot":"","sources":["../../../src/notificationsPanel/Notification/DefaultNotification.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAKpD;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IACxC;;OAEG;IACH,YAAY,EAAE,aAAa,CAAC;IAE5B;;OAEG;IACH,sBAAsB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAE7C;;OAEG;IACH,mBAAmB,EAAE,CAAC,YAAY,EAAE,aAAa,KAAK,IAAI,CAAC;CAC9D;AAID;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,EAChC,YAAY,EACZ,sBAAsB,EACtB,mBAAmB,GACtB,EAAE,2BAA2B,qBAY7B"}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
// (C) 2024 GoodData Corporation
|
|
1
|
+
// (C) 2024-2025 GoodData Corporation
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { bem } from "../bem.js";
|
|
4
4
|
import { defineMessages, FormattedMessage } from "react-intl";
|
|
5
5
|
import { AlertNotification } from "./AlertNotification.js";
|
|
6
6
|
const { b, e } = bem("gd-ui-ext-notification");
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Default implementation of the Notification component.
|
|
9
|
+
*
|
|
10
|
+
* @public
|
|
9
11
|
*/
|
|
10
|
-
export function DefaultNotification({ notification,
|
|
12
|
+
export function DefaultNotification({ notification, markNotificationAsRead, onNotificationClick, }) {
|
|
11
13
|
if (notification.notificationType !== "alertNotification") {
|
|
12
14
|
return React.createElement(UnsupportedNotificationType, null);
|
|
13
15
|
}
|
|
14
|
-
return (React.createElement(AlertNotification, { notification: notification,
|
|
16
|
+
return (React.createElement(AlertNotification, { notification: notification, markNotificationAsRead: markNotificationAsRead, onNotificationClick: onNotificationClick }));
|
|
15
17
|
}
|
|
16
18
|
function UnsupportedNotificationType() {
|
|
17
19
|
return (React.createElement("div", { className: b({ isUnsupported: true }) },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultNotification.js","sourceRoot":"","sources":["../../../src/notificationsPanel/Notification/DefaultNotification.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"DefaultNotification.js","sourceRoot":"","sources":["../../../src/notificationsPanel/Notification/DefaultNotification.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAwB3D,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,GAAG,CAAC,wBAAwB,CAAC,CAAC;AAE/C;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAC,EAChC,YAAY,EACZ,sBAAsB,EACtB,mBAAmB,GACO;IAC1B,IAAI,YAAY,CAAC,gBAAgB,KAAK,mBAAmB,EAAE,CAAC;QACxD,OAAO,oBAAC,2BAA2B,OAAG,CAAC;IAC3C,CAAC;IAED,OAAO,CACH,oBAAC,iBAAiB,IACd,YAAY,EAAE,YAAY,EAC1B,sBAAsB,EAAE,sBAAsB,EAC9C,mBAAmB,EAAE,mBAAmB,GAC1C,CACL,CAAC;AACN,CAAC;AAED,SAAS,2BAA2B;IAChC,OAAO,CACH,6BAAK,SAAS,EAAE,CAAC,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;QACtC,6BAAK,SAAS,EAAE,CAAC,CAAC,aAAa,CAAC;YAC5B,oBAAC,gBAAgB,IAAC,EAAE,EAAE,QAAQ,CAAC,2BAA2B,CAAC,EAAE,GAAI,CAC/D,CACJ,CACT,CAAC;AACN,CAAC;AAED,MAAM,QAAQ,GAAG,cAAc,CAAC;IAC5B,2BAA2B,EAAE;QACzB,EAAE,EAAE,mDAAmD;KAC1D;CACJ,CAAC,CAAC"}
|
|
@@ -30,7 +30,7 @@ export function NotificationFiltersDetail({ notification }) {
|
|
|
30
30
|
toggleFiltersDialog();
|
|
31
31
|
};
|
|
32
32
|
return (React.createElement(React.Fragment, null,
|
|
33
|
-
filterCount && filterCount > 0 ? (React.createElement(UiButton, { buttonRef: ref, onClick: onButtonClick, variant: "tertiary", size: "small", label: intl.formatMessage(messages.buttonLabel
|
|
33
|
+
filterCount && filterCount > 0 ? (React.createElement(UiButton, { buttonRef: ref, onClick: onButtonClick, variant: "tertiary", size: "small", label: intl.formatMessage(messages.buttonLabel) })) : null,
|
|
34
34
|
isFiltersDialogOpen ? (React.createElement(Overlay, { isModal: false, alignTo: ref.current, alignPoints: ALIGN_POINTS, closeOnEscape: true, closeOnOutsideClick: true, closeOnParentScroll: true, closeOnMouseDrag: false, onClose: closeFiltersDialog },
|
|
35
35
|
React.createElement(NotificationFiltersDetailDialog, { notification: notification, onClose: closeFiltersDialog }))) : null));
|
|
36
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationFiltersDetail.js","sourceRoot":"","sources":["../../../src/notificationsPanel/NotificationFiltersDetail/NotificationFiltersDetail.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OA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,WAAW,IAAI,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC,CAC9B,oBAAC,QAAQ,IACL,SAAS,EAAE,GAAG,EACd,OAAO,EAAE,aAAa,EACtB,OAAO,EAAC,UAAU,EAClB,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"NotificationFiltersDetail.js","sourceRoot":"","sources":["../../../src/notificationsPanel/NotificationFiltersDetail/NotificationFiltersDetail.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,EAAE,uBAAuB,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAClF,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEhD,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErD,MAAM,YAAY,GAAG;IACjB,uBAAuB,CAAC;QACpB,iBAAiB,EAAE,cAAc;QACjC,iBAAiB,EAAE,WAAW;QAC9B,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;KACzB,CAAC;CACL,CAAC;AASF,MAAM,QAAQ,GAAG,cAAc,CAAC;IAC5B,WAAW,EAAE;QACT,EAAE,EAAE,mCAAmC;KAC1C;CACJ,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,UAAU,yBAAyB,CAAC,EAAE,YAAY,EAAmC;IACvF,MAAM,CAAC,mBAAmB,EAAE,sBAAsB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACtE,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,GAAG,GAAG,MAAM,CAAoB,IAAI,CAAC,CAAC;IAC5C,MAAM,WAAW,GAAG,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC;IAChE,MAAM,kBAAkB,GAAG,GAAG,EAAE,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC;IAC/D,MAAM,mBAAmB,GAAG,GAAG,EAAE,CAAC,sBAAsB,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IACpE,MAAM,aAAa,GAAG,CAAC,CAAsC,EAAE,EAAE;QAC7D,CAAC,CAAC,eAAe,EAAE,CAAC;QACpB,mBAAmB,EAAE,CAAC;IAC1B,CAAC,CAAC;IAEF,OAAO,CACH;QACK,WAAW,IAAI,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC,CAC9B,oBAAC,QAAQ,IACL,SAAS,EAAE,GAAG,EACd,OAAO,EAAE,aAAa,EACtB,OAAO,EAAC,UAAU,EAClB,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,WAAW,CAAC,GACjD,CACL,CAAC,CAAC,CAAC,IAAI;QACP,mBAAmB,CAAC,CAAC,CAAC,CACnB,oBAAC,OAAO,IACJ,OAAO,EAAE,KAAK,EACd,OAAO,EAAE,GAAG,CAAC,OAAO,EACpB,WAAW,EAAE,YAAY,EACzB,aAAa,QACb,mBAAmB,QACnB,mBAAmB,EAAE,IAAI,EACzB,gBAAgB,EAAE,KAAK,EACvB,OAAO,EAAE,kBAAkB;YAE3B,oBAAC,+BAA+B,IAC5B,YAAY,EAAE,YAAY,EAC1B,OAAO,EAAE,kBAAkB,GAC7B,CACI,CACb,CAAC,CAAC,CAAC,IAAI,CACT,CACN,CAAC;AACN,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { UiSkeleton } from "@gooddata/sdk-ui-kit";
|
|
3
3
|
import { DetailsDialog } from "../components/DetailsDialog.js";
|
|
4
4
|
import { useNotificationsFilterDetail } from "../data/useNotificationFiltersDetail.js";
|
|
5
5
|
import { bem } from "../bem.js";
|
|
@@ -17,7 +17,7 @@ export function NotificationFiltersDetailDialog({ notification, onClose, }) {
|
|
|
17
17
|
const intl = useIntl();
|
|
18
18
|
const { filtersInfo, automationPromise } = useNotificationsFilterDetail(notification);
|
|
19
19
|
const filtersCount = notification.details.data.alert.filterCount ?? 0;
|
|
20
|
-
return (React.createElement(DetailsDialog, { title: intl.formatMessage(messages.title), content: React.createElement("div", { className: b() }, automationPromise.status !== "success" ? (React.createElement(
|
|
20
|
+
return (React.createElement(DetailsDialog, { title: intl.formatMessage(messages.title), content: React.createElement("div", { className: b() }, automationPromise.status !== "success" ? (React.createElement(UiSkeleton, { itemHeight: 32, itemsCount: filtersCount })) : (filtersInfo?.map(({ title, subtitle }, idx) => (React.createElement("div", { className: e("item"), key: idx },
|
|
21
21
|
React.createElement("div", { className: e("label") }, title),
|
|
22
22
|
React.createElement("div", { className: e("values") }, subtitle)))))), onClose: onClose }));
|
|
23
23
|
}
|
package/esm/notificationsPanel/NotificationFiltersDetail/NotificationFiltersDetailDialog.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationFiltersDetailDialog.js","sourceRoot":"","sources":["../../../src/notificationsPanel/NotificationFiltersDetail/NotificationFiltersDetailDialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"NotificationFiltersDetailDialog.js","sourceRoot":"","sources":["../../../src/notificationsPanel/NotificationFiltersDetail/NotificationFiltersDetailDialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,yCAAyC,CAAC;AACvF,OAAO,EAAE,GAAG,EAAE,MAAM,WAA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AACN,CAAC"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { IAlertNotification } from "@gooddata/sdk-model";
|
|
2
2
|
import React from "react";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
3
6
|
export interface INotificationTriggerDetailProps {
|
|
4
7
|
notification: IAlertNotification;
|
|
5
8
|
}
|
|
6
9
|
/**
|
|
7
|
-
* @
|
|
10
|
+
* @internal
|
|
8
11
|
*/
|
|
9
12
|
export declare function NotificationTriggerDetail({ notification }: INotificationTriggerDetailProps): React.JSX.Element;
|
|
10
13
|
//# sourceMappingURL=NotificationTriggersDetail.d.ts.map
|
package/esm/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetail.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationTriggersDetail.d.ts","sourceRoot":"","sources":["../../../src/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetail.tsx"],"names":[],"mappings":"AACA,OAAO,EAAqB,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE5E,OAAO,KAA2B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"NotificationTriggersDetail.d.ts","sourceRoot":"","sources":["../../../src/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetail.tsx"],"names":[],"mappings":"AACA,OAAO,EAAqB,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE5E,OAAO,KAA2B,MAAM,OAAO,CAAC;AAuBhD;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC5C,YAAY,EAAE,kBAAkB,CAAC;CACpC;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,EAAE,YAAY,EAAE,EAAE,+BAA+B,qBAwC1F"}
|
|
@@ -8,6 +8,11 @@ const ALIGN_POINTS = [
|
|
|
8
8
|
overlayAlignPoint: "top-right",
|
|
9
9
|
offset: { x: 2, y: 3 },
|
|
10
10
|
}),
|
|
11
|
+
alignConfigToAlignPoint({
|
|
12
|
+
triggerAlignPoint: "bottom-left",
|
|
13
|
+
overlayAlignPoint: "top-left",
|
|
14
|
+
offset: { x: 2, y: 3 },
|
|
15
|
+
}),
|
|
11
16
|
];
|
|
12
17
|
const messages = defineMessages({
|
|
13
18
|
triggersTitle: {
|
|
@@ -15,7 +20,7 @@ const messages = defineMessages({
|
|
|
15
20
|
},
|
|
16
21
|
});
|
|
17
22
|
/**
|
|
18
|
-
* @
|
|
23
|
+
* @internal
|
|
19
24
|
*/
|
|
20
25
|
export function NotificationTriggerDetail({ notification }) {
|
|
21
26
|
const [isTriggersDialogOpen, setIsTriggersDialogOpen] = useState(false);
|
|
@@ -26,11 +31,10 @@ export function NotificationTriggerDetail({ notification }) {
|
|
|
26
31
|
const isSliced = notification.details.data.alert.attribute;
|
|
27
32
|
const triggersTitle = isSliced ? getTriggersTitle(intl, notification.details.data.alert) : "";
|
|
28
33
|
return (React.createElement(React.Fragment, null,
|
|
29
|
-
React.createElement(UiButton, { buttonRef: ref, onClick: (
|
|
30
|
-
e.stopPropagation();
|
|
34
|
+
React.createElement(UiButton, { buttonRef: ref, onClick: () => {
|
|
31
35
|
toggleTriggersDialog();
|
|
32
|
-
}, variant: "tertiary", size: "small", label: triggersTitle }),
|
|
33
|
-
isTriggersDialogOpen ? (React.createElement(Overlay, { isModal: false, alignTo: ref.current, alignPoints: ALIGN_POINTS, closeOnEscape: true, closeOnOutsideClick: true, closeOnParentScroll: false, closeOnMouseDrag: false, onClose: closeTriggersDialog
|
|
36
|
+
}, variant: "tertiary", size: "small", label: triggersTitle, dataId: "notification-detail" }),
|
|
37
|
+
isTriggersDialogOpen ? (React.createElement(Overlay, { isModal: false, alignTo: ref.current, alignPoints: ALIGN_POINTS, closeOnEscape: true, closeOnOutsideClick: true, closeOnParentScroll: false, closeOnMouseDrag: false, onClose: closeTriggersDialog },
|
|
34
38
|
React.createElement(NotificationTriggersDetailDialog, { notification: notification, onClose: closeTriggersDialog }))) : null));
|
|
35
39
|
}
|
|
36
40
|
function getTriggersTitle(intl, alertDescription) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationTriggersDetail.js","sourceRoot":"","sources":["../../../src/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetail.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAClF,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,cAAc,EAAa,OAAO,EAAE,MAAM,YAAY,CAAC;AAEhE,MAAM,YAAY,GAAG;IACjB,uBAAuB,CAAC;QACpB,iBAAiB,EAAE,cAAc;QACjC,iBAAiB,EAAE,WAAW;QAC9B,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;KACzB,CAAC;CACL,CAAC;AAEF,MAAM,QAAQ,GAAG,cAAc,CAAC;IAC5B,aAAa,EAAE;QACX,EAAE,EAAE,oCAAoC;KAC3C;CACJ,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"NotificationTriggersDetail.js","sourceRoot":"","sources":["../../../src/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetail.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAClF,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,cAAc,EAAa,OAAO,EAAE,MAAM,YAAY,CAAC;AAEhE,MAAM,YAAY,GAAG;IACjB,uBAAuB,CAAC;QACpB,iBAAiB,EAAE,cAAc;QACjC,iBAAiB,EAAE,WAAW;QA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a,EACpB,MAAM,EAAC,qBAAqB,GAC9B;QACD,oBAAoB,CAAC,CAAC,CAAC,CACpB,oBAAC,OAAO,IACJ,OAAO,EAAE,KAAK,EACd,OAAO,EAAE,GAAG,CAAC,OAAO,EACpB,WAAW,EAAE,YAAY,EACzB,aAAa,QACb,mBAAmB,QACnB,mBAAmB,EAAE,KAAK,EAC1B,gBAAgB,EAAE,KAAK,EACvB,OAAO,EAAE,mBAAmB;YAE5B,oBAAC,gCAAgC,IAC7B,YAAY,EAAE,YAAY,EAC1B,OAAO,EAAE,mBAAmB,GAC9B,CACI,CACb,CAAC,CAAC,CAAC,IAAI,CACT,CACN,CAAC;AACN,CAAC;AAED,SAAS,gBAAgB,CAAC,IAAe,EAAE,gBAAmC;IAC1E,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,aAAa,EAAE;QAC9C,cAAc,EAAE,gBAAgB,CAAC,cAAc;QAC/C,UAAU,EAAE,gBAAgB,CAAC,eAAe;KAC/C,CAAC,CAAC;AACP,CAAC"}
|
package/esm/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetailDialog.d.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { IAlertNotification } from "@gooddata/sdk-model";
|
|
2
2
|
import React from "react";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
3
6
|
interface INotificationTriggersDetailDialogProps {
|
|
4
7
|
notification: IAlertNotification;
|
|
5
8
|
onClose: () => void;
|
|
6
9
|
}
|
|
7
10
|
/**
|
|
8
|
-
* @
|
|
11
|
+
* @internal
|
|
9
12
|
*/
|
|
10
13
|
export declare function NotificationTriggersDetailDialog({ notification, onClose, }: INotificationTriggersDetailDialogProps): React.JSX.Element;
|
|
11
14
|
export {};
|
package/esm/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetailDialog.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationTriggersDetailDialog.d.ts","sourceRoot":"","sources":["../../../src/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetailDialog.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,UAAU,sCAAsC;IAC5C,YAAY,EAAE,kBAAkB,CAAC;IACjC,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAWD;;GAEG;AACH,wBAAgB,gCAAgC,CAAC,EAC7C,YAAY,EACZ,OAAO,GACV,EAAE,sCAAsC,qBAgCxC"}
|
|
1
|
+
{"version":3,"file":"NotificationTriggersDetailDialog.d.ts","sourceRoot":"","sources":["../../../src/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetailDialog.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B;;GAEG;AACH,UAAU,sCAAsC;IAC5C,YAAY,EAAE,kBAAkB,CAAC;IACjC,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAWD;;GAEG;AACH,wBAAgB,gCAAgC,CAAC,EAC7C,YAAY,EACZ,OAAO,GACV,EAAE,sCAAsC,qBAgCxC"}
|
package/esm/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetailDialog.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationTriggersDetailDialog.js","sourceRoot":"","sources":["../../../src/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetailDialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAErD,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,GAAG,CAAC,+CAA+C,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"NotificationTriggersDetailDialog.js","sourceRoot":"","sources":["../../../src/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetailDialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAErD,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,GAAG,CAAC,+CAA+C,CAAC,CAAC;AAUtE,MAAM,QAAQ,GAAG,cAAc,CAAC;IAC5B,aAAa,EAAE;QACX,EAAE,EAAE,2CAA2C;KAClD;IACD,QAAQ,EAAE;QACN,EAAE,EAAE,8CAA8C;KACrD;CACJ,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,UAAU,gCAAgC,CAAC,EAC7C,YAAY,EACZ,OAAO,GAC8B;IACrC,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,OAAO,CACH,oBAAC,aAAa,IACV,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,EACjD,OAAO,EACH,6BAAK,SAAS,EAAE,CAAC,EAAE;YACf,6BAAK,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC;gBACvB,6BAAK,SAAS,EAAE,CAAC,CAAC,cAAc,CAAC,IAAG,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,KAAM,CAAC,MAAM,CAAO;gBAClF,6BAAK,SAAS,EAAE,CAAC,CAAC,cAAc,CAAC,IAAG,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAO,CAC9E;YACN,6BAAK,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC;gBACtB,6BAAK,SAAS,EAAE,CAAC,CAAC,eAAe,CAAC,IAC7B,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAC7D,6BAAK,GAAG,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,cAAc,CAAC,IACpC,IAAI,CAAC,UAAU,CACd,CACT,CAAC,CACA;gBACN,6BAAK,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,IACtB,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAC7D,6BAAK,GAAG,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,cAAc,CAAC,IACpC,IAAI,CAAC,aAAc,CAAC,cAAc,CACjC,CACT,CAAC,CACA,CACJ,CACJ,EAEV,OAAO,EAAE,OAAO,GAClB,CACL,CAAC;AACN,CAAC"}
|
|
@@ -5,24 +5,86 @@ import { INotification } from "@gooddata/sdk-model";
|
|
|
5
5
|
import { INotificationsPanelView } from "../types.js";
|
|
6
6
|
import { INotificationsListEmptyStateComponentProps } from "./DefaultNotificationsListEmptyState.js";
|
|
7
7
|
import { INotificationsListErrorStateComponentProps } from "./DefaultNotificationsListErrorState.js";
|
|
8
|
+
import { INotificationSkeletonItemComponentProps } from "./DefaultSkeletonItem.js";
|
|
8
9
|
/**
|
|
9
|
-
*
|
|
10
|
+
* Props for the NotificationsList component.
|
|
11
|
+
*
|
|
12
|
+
* @public
|
|
10
13
|
*/
|
|
11
14
|
export interface INotificationsListComponentProps {
|
|
15
|
+
/**
|
|
16
|
+
* Component to render when the notifications list is empty.
|
|
17
|
+
*/
|
|
12
18
|
NotificationsListEmptyState: React.ComponentType<INotificationsListEmptyStateComponentProps>;
|
|
19
|
+
/**
|
|
20
|
+
* Component to render when the notifications list is in error state.
|
|
21
|
+
*/
|
|
13
22
|
NotificationsListErrorState: React.ComponentType<INotificationsListErrorStateComponentProps>;
|
|
23
|
+
/**
|
|
24
|
+
* Component to render each notification.
|
|
25
|
+
*/
|
|
14
26
|
Notification: React.ComponentType<INotificationComponentProps>;
|
|
27
|
+
/**
|
|
28
|
+
* Component to render each skeleton item.
|
|
29
|
+
*/
|
|
30
|
+
NotificationSkeletonItem: React.ComponentType<INotificationSkeletonItemComponentProps>;
|
|
31
|
+
/**
|
|
32
|
+
* Active view of the notifications list.
|
|
33
|
+
*/
|
|
15
34
|
activeView: INotificationsPanelView;
|
|
35
|
+
/**
|
|
36
|
+
* Status of the notifications list.
|
|
37
|
+
*/
|
|
16
38
|
status: UseCancelablePromiseStatus;
|
|
39
|
+
/**
|
|
40
|
+
* Error to display.
|
|
41
|
+
*/
|
|
17
42
|
error?: GoodDataSdkError;
|
|
18
|
-
|
|
43
|
+
/**
|
|
44
|
+
* Loaded notifications relevant to the active view.
|
|
45
|
+
*/
|
|
46
|
+
activeNotifications?: INotification[];
|
|
47
|
+
/**
|
|
48
|
+
* Callback function to mark notification as read.
|
|
49
|
+
*/
|
|
19
50
|
markNotificationAsRead: (notificationId: string) => Promise<void>;
|
|
51
|
+
/**
|
|
52
|
+
* Callback function to handle notification click.
|
|
53
|
+
*/
|
|
20
54
|
onNotificationClick: (notification: INotification) => void;
|
|
55
|
+
/**
|
|
56
|
+
* Whether there is a next page of notifications.
|
|
57
|
+
*/
|
|
21
58
|
hasNextPage: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Load next page of notifications.
|
|
61
|
+
*/
|
|
22
62
|
loadNextPage: () => void;
|
|
63
|
+
/**
|
|
64
|
+
* Height of the notification item in pixels.
|
|
65
|
+
*/
|
|
66
|
+
itemHeight: number;
|
|
67
|
+
/**
|
|
68
|
+
* Gap between notification items in pixels.
|
|
69
|
+
*/
|
|
70
|
+
itemsGap: number;
|
|
71
|
+
/**
|
|
72
|
+
* Padding of the notification item (from left/right) in pixels.
|
|
73
|
+
*/
|
|
74
|
+
itemPadding: number;
|
|
75
|
+
/**
|
|
76
|
+
* Number of skeleton items to render when loading notifications.
|
|
77
|
+
*/
|
|
78
|
+
skeletonItemsCount: number;
|
|
79
|
+
/**
|
|
80
|
+
* Maximum height of the notifications list in pixels.
|
|
81
|
+
*/
|
|
82
|
+
maxListHeight?: number;
|
|
23
83
|
}
|
|
24
84
|
/**
|
|
25
|
-
*
|
|
85
|
+
* Default implementation of the NotificationsList component.
|
|
86
|
+
*
|
|
87
|
+
* @public
|
|
26
88
|
*/
|
|
27
|
-
export declare function DefaultNotificationsList({ Notification, activeView, status, error,
|
|
89
|
+
export declare function DefaultNotificationsList({ Notification, NotificationsListEmptyState, NotificationsListErrorState, NotificationSkeletonItem, activeView, status, error, activeNotifications, markNotificationAsRead, onNotificationClick, hasNextPage, loadNextPage, itemHeight, itemsGap, itemPadding, skeletonItemsCount, maxListHeight, }: INotificationsListComponentProps): React.JSX.Element;
|
|
28
90
|
//# sourceMappingURL=DefaultNotificationsList.d.ts.map
|