@gooddata/sdk-ui-ext 10.18.0-alpha.1 → 10.18.0-alpha.2
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 +102 -3
- package/esm/index.d.ts +11 -0
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +2 -0
- package/esm/index.js.map +1 -1
- package/esm/internal/translations/en-US.json +80 -0
- package/esm/notificationsPanel/@staging/OrganizationContext/OrganizationContext.d.ts +12 -0
- package/esm/notificationsPanel/@staging/OrganizationContext/OrganizationContext.d.ts.map +1 -0
- package/esm/notificationsPanel/@staging/OrganizationContext/OrganizationContext.js +18 -0
- package/esm/notificationsPanel/@staging/OrganizationContext/OrganizationContext.js.map +1 -0
- package/esm/notificationsPanel/@staging/OrganizationContext/useFetchOrganization.d.ts +22 -0
- package/esm/notificationsPanel/@staging/OrganizationContext/useFetchOrganization.d.ts.map +1 -0
- package/esm/notificationsPanel/@staging/OrganizationContext/useFetchOrganization.js +15 -0
- package/esm/notificationsPanel/@staging/OrganizationContext/useFetchOrganization.js.map +1 -0
- package/esm/notificationsPanel/Notification/AlertNotification.d.ts +15 -0
- package/esm/notificationsPanel/Notification/AlertNotification.d.ts.map +1 -0
- package/esm/notificationsPanel/Notification/AlertNotification.js +74 -0
- package/esm/notificationsPanel/Notification/AlertNotification.js.map +1 -0
- package/esm/notificationsPanel/Notification/DefaultNotification.d.ts +15 -0
- package/esm/notificationsPanel/Notification/DefaultNotification.d.ts.map +1 -0
- package/esm/notificationsPanel/Notification/DefaultNotification.js +26 -0
- package/esm/notificationsPanel/Notification/DefaultNotification.js.map +1 -0
- package/esm/notificationsPanel/NotificationFiltersDetail/NotificationFiltersDetail.d.ts +13 -0
- package/esm/notificationsPanel/NotificationFiltersDetail/NotificationFiltersDetail.d.ts.map +1 -0
- package/esm/notificationsPanel/NotificationFiltersDetail/NotificationFiltersDetail.js +37 -0
- package/esm/notificationsPanel/NotificationFiltersDetail/NotificationFiltersDetail.js.map +1 -0
- package/esm/notificationsPanel/NotificationFiltersDetail/NotificationFiltersDetailDialog.d.ts +14 -0
- package/esm/notificationsPanel/NotificationFiltersDetail/NotificationFiltersDetailDialog.d.ts.map +1 -0
- package/esm/notificationsPanel/NotificationFiltersDetail/NotificationFiltersDetailDialog.js +24 -0
- package/esm/notificationsPanel/NotificationFiltersDetail/NotificationFiltersDetailDialog.js.map +1 -0
- package/esm/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetail.d.ts +10 -0
- package/esm/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetail.d.ts.map +1 -0
- package/esm/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetail.js +42 -0
- package/esm/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetail.js.map +1 -0
- package/esm/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetailDialog.d.ts +12 -0
- package/esm/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetailDialog.d.ts.map +1 -0
- package/esm/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetailDialog.js +27 -0
- package/esm/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetailDialog.js.map +1 -0
- package/esm/notificationsPanel/NotificationsList/DefaultNotificationsList.d.ts +28 -0
- package/esm/notificationsPanel/NotificationsList/DefaultNotificationsList.d.ts.map +1 -0
- package/esm/notificationsPanel/NotificationsList/DefaultNotificationsList.js +23 -0
- package/esm/notificationsPanel/NotificationsList/DefaultNotificationsList.js.map +1 -0
- package/esm/notificationsPanel/NotificationsList/DefaultNotificationsListEmptyState.d.ts +13 -0
- package/esm/notificationsPanel/NotificationsList/DefaultNotificationsListEmptyState.d.ts.map +1 -0
- package/esm/notificationsPanel/NotificationsList/DefaultNotificationsListEmptyState.js +23 -0
- package/esm/notificationsPanel/NotificationsList/DefaultNotificationsListEmptyState.js.map +1 -0
- package/esm/notificationsPanel/NotificationsList/DefaultNotificationsListErrorState.d.ts +13 -0
- package/esm/notificationsPanel/NotificationsList/DefaultNotificationsListErrorState.d.ts.map +1 -0
- package/esm/notificationsPanel/NotificationsList/DefaultNotificationsListErrorState.js +18 -0
- package/esm/notificationsPanel/NotificationsList/DefaultNotificationsListErrorState.js.map +1 -0
- package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanel.d.ts +38 -0
- package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanel.d.ts.map +1 -0
- package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanel.js +13 -0
- package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanel.js.map +1 -0
- package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanelHeader.d.ts +32 -0
- package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanelHeader.d.ts.map +1 -0
- package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanelHeader.js +41 -0
- package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanelHeader.js.map +1 -0
- package/esm/notificationsPanel/NotificationsPanel/DefaultOpenNotificationsPanelButton.d.ts +35 -0
- package/esm/notificationsPanel/NotificationsPanel/DefaultOpenNotificationsPanelButton.d.ts.map +1 -0
- package/esm/notificationsPanel/NotificationsPanel/DefaultOpenNotificationsPanelButton.js +16 -0
- package/esm/notificationsPanel/NotificationsPanel/DefaultOpenNotificationsPanelButton.js.map +1 -0
- package/esm/notificationsPanel/NotificationsPanel/NotificationsPanel.d.ts +58 -0
- package/esm/notificationsPanel/NotificationsPanel/NotificationsPanel.d.ts.map +1 -0
- package/esm/notificationsPanel/NotificationsPanel/NotificationsPanel.js +93 -0
- package/esm/notificationsPanel/NotificationsPanel/NotificationsPanel.js.map +1 -0
- package/esm/notificationsPanel/bem.d.ts +5 -0
- package/esm/notificationsPanel/bem.d.ts.map +1 -0
- package/esm/notificationsPanel/bem.js +4 -0
- package/esm/notificationsPanel/bem.js.map +1 -0
- package/esm/notificationsPanel/components/DetailsDialog.d.ts +9 -0
- package/esm/notificationsPanel/components/DetailsDialog.d.ts.map +1 -0
- package/esm/notificationsPanel/components/DetailsDialog.js +23 -0
- package/esm/notificationsPanel/components/DetailsDialog.js.map +1 -0
- package/esm/notificationsPanel/components/Skeleton.d.ts +8 -0
- package/esm/notificationsPanel/components/Skeleton.d.ts.map +1 -0
- package/esm/notificationsPanel/components/Skeleton.js +11 -0
- package/esm/notificationsPanel/components/Skeleton.js.map +1 -0
- package/esm/notificationsPanel/components/Tooltip.d.ts +6 -0
- package/esm/notificationsPanel/components/Tooltip.d.ts.map +1 -0
- package/esm/notificationsPanel/components/Tooltip.js +10 -0
- package/esm/notificationsPanel/components/Tooltip.js.map +1 -0
- package/esm/notificationsPanel/components/VirtualList.d.ts +15 -0
- package/esm/notificationsPanel/components/VirtualList.d.ts.map +1 -0
- package/esm/notificationsPanel/components/VirtualList.js +77 -0
- package/esm/notificationsPanel/components/VirtualList.js.map +1 -0
- package/esm/notificationsPanel/data/NotificationsContext.d.ts +26 -0
- package/esm/notificationsPanel/data/NotificationsContext.d.ts.map +1 -0
- package/esm/notificationsPanel/data/NotificationsContext.js +18 -0
- package/esm/notificationsPanel/data/NotificationsContext.js.map +1 -0
- package/esm/notificationsPanel/data/attributeFilterNaming.d.ts +4 -0
- package/esm/notificationsPanel/data/attributeFilterNaming.d.ts.map +1 -0
- package/esm/notificationsPanel/data/attributeFilterNaming.js +9 -0
- package/esm/notificationsPanel/data/attributeFilterNaming.js.map +1 -0
- package/esm/notificationsPanel/data/dateFilterNaming.d.ts +4 -0
- package/esm/notificationsPanel/data/dateFilterNaming.d.ts.map +1 -0
- package/esm/notificationsPanel/data/dateFilterNaming.js +15 -0
- package/esm/notificationsPanel/data/dateFilterNaming.js.map +1 -0
- package/esm/notificationsPanel/data/useFetchNotifications.d.ts +29 -0
- package/esm/notificationsPanel/data/useFetchNotifications.d.ts.map +1 -0
- package/esm/notificationsPanel/data/useFetchNotifications.js +52 -0
- package/esm/notificationsPanel/data/useFetchNotifications.js.map +1 -0
- package/esm/notificationsPanel/data/useNotificationFiltersDetail.d.ts +12 -0
- package/esm/notificationsPanel/data/useNotificationFiltersDetail.d.ts.map +1 -0
- package/esm/notificationsPanel/data/useNotificationFiltersDetail.js +96 -0
- package/esm/notificationsPanel/data/useNotificationFiltersDetail.js.map +1 -0
- package/esm/notificationsPanel/data/useNotifications.d.ts +27 -0
- package/esm/notificationsPanel/data/useNotifications.d.ts.map +1 -0
- package/esm/notificationsPanel/data/useNotifications.js +92 -0
- package/esm/notificationsPanel/data/useNotifications.js.map +1 -0
- package/esm/notificationsPanel/localization/IntlWrapper.d.ts +13 -0
- package/esm/notificationsPanel/localization/IntlWrapper.d.ts.map +1 -0
- package/esm/notificationsPanel/localization/IntlWrapper.js +32 -0
- package/esm/notificationsPanel/localization/IntlWrapper.js.map +1 -0
- package/esm/notificationsPanel/types.d.ts +5 -0
- package/esm/notificationsPanel/types.d.ts.map +1 -0
- package/esm/notificationsPanel/types.js +3 -0
- package/esm/notificationsPanel/types.js.map +1 -0
- package/esm/sdk-ui-ext.d.ts +183 -0
- package/package.json +20 -16
- package/src/notificationsPanel/Notification/DefaultNotification.scss +134 -0
- package/src/notificationsPanel/NotificationFiltersDetail/NotificationFiltersDetailDialog.scss +29 -0
- package/src/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetailDialog.scss +72 -0
- package/src/notificationsPanel/NotificationsList/DefaultNotificationsList.scss +7 -0
- package/src/notificationsPanel/NotificationsList/DefaultNotificationsListEmptyState.scss +21 -0
- package/src/notificationsPanel/NotificationsList/DefaultNotificationsListErrorState.scss +21 -0
- package/src/notificationsPanel/NotificationsPanel/DefaultNotificationsPanel.scss +18 -0
- package/src/notificationsPanel/NotificationsPanel/DefaultNotificationsPanelHeader.scss +28 -0
- package/src/notificationsPanel/NotificationsPanel/DefaultOpenNotificationsPanelButton.scss +34 -0
- package/src/notificationsPanel/components/DetailsDialog.scss +51 -0
- package/src/notificationsPanel/components/Skeleton.scss +25 -0
- package/src/notificationsPanel/components/VirtualList.scss +26 -0
- package/src/notificationsPanel/notificationPanel.scss +19 -0
- package/styles/css/main.css +407 -0
- package/styles/css/main.css.map +1 -1
- package/styles/scss/main.scss +1 -0
package/NOTICE
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
The following 3rd-party software packages may be used by or distributed with gooddata-ui-sdk. Any information relevant to third-party vendors listed below are collected using common, reasonable means.
|
|
9
9
|
|
|
10
|
-
Date generated: 2024-12-
|
|
10
|
+
Date generated: 2024-12-12
|
|
11
11
|
|
|
12
|
-
Revision ID:
|
|
12
|
+
Revision ID: 7858990a3c705864b91bd44591aa99013da8e51b
|
|
13
13
|
|
|
14
14
|
================================================================================
|
|
15
15
|
================================================================================
|
|
@@ -206,6 +206,8 @@ Revision ID: aa9a7bc89047d6aca5adad2e425b559628b1cbf2
|
|
|
206
206
|
- @seznam/compose-react-refs (1.0.6) [ISC]
|
|
207
207
|
- @sidvind/better-ajv-errors (2.1.3) [Apache-2.0]
|
|
208
208
|
- @sinclair/typebox (0.27.8) [MIT]
|
|
209
|
+
- @tanstack/react-virtual (3.11.1) [MIT]
|
|
210
|
+
- @tanstack/virtual-core (3.10.9) [MIT]
|
|
209
211
|
- @tootallnate/once (2.0.0) [MIT]
|
|
210
212
|
- @ts-morph/common (0.12.3) [Apache-2.0, MIT]
|
|
211
213
|
- @types/body-parser (1.19.5) [MIT]
|
|
@@ -7897,6 +7899,78 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
7897
7899
|
SOFTWARE.
|
|
7898
7900
|
|
|
7899
7901
|
|
|
7902
|
+
--------------------------------------------------------------------------------
|
|
7903
|
+
Package Title: @tanstack/react-virtual (3.11.1)
|
|
7904
|
+
|
|
7905
|
+
Package Locator: npm+@tanstack/react-virtual$3.11.1
|
|
7906
|
+
|
|
7907
|
+
Package Depth: Direct
|
|
7908
|
+
--------------------------------------------------------------------------------
|
|
7909
|
+
|
|
7910
|
+
* Declared Licenses *
|
|
7911
|
+
MIT
|
|
7912
|
+
|
|
7913
|
+
|
|
7914
|
+
MIT License
|
|
7915
|
+
|
|
7916
|
+
Copyright (c) 2021-present Tanner Linsley
|
|
7917
|
+
|
|
7918
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7919
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7920
|
+
in the Software without restriction, including without limitation the rights
|
|
7921
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7922
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
7923
|
+
furnished to do so, subject to the following conditions:
|
|
7924
|
+
|
|
7925
|
+
The above copyright notice and this permission notice shall be included in all
|
|
7926
|
+
copies or substantial portions of the Software.
|
|
7927
|
+
|
|
7928
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
7929
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
7930
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
7931
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
7932
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
7933
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
7934
|
+
SOFTWARE.
|
|
7935
|
+
|
|
7936
|
+
|
|
7937
|
+
|
|
7938
|
+
--------------------------------------------------------------------------------
|
|
7939
|
+
Package Title: @tanstack/virtual-core (3.10.9)
|
|
7940
|
+
|
|
7941
|
+
Package Locator: npm+@tanstack/virtual-core$3.10.9
|
|
7942
|
+
|
|
7943
|
+
Package Depth: Transitive
|
|
7944
|
+
--------------------------------------------------------------------------------
|
|
7945
|
+
|
|
7946
|
+
* Declared Licenses *
|
|
7947
|
+
MIT
|
|
7948
|
+
|
|
7949
|
+
|
|
7950
|
+
MIT License
|
|
7951
|
+
|
|
7952
|
+
Copyright (c) 2021-present Tanner Linsley
|
|
7953
|
+
|
|
7954
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7955
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7956
|
+
in the Software without restriction, including without limitation the rights
|
|
7957
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7958
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
7959
|
+
furnished to do so, subject to the following conditions:
|
|
7960
|
+
|
|
7961
|
+
The above copyright notice and this permission notice shall be included in all
|
|
7962
|
+
copies or substantial portions of the Software.
|
|
7963
|
+
|
|
7964
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
7965
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
7966
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
7967
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
7968
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
7969
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
7970
|
+
SOFTWARE.
|
|
7971
|
+
|
|
7972
|
+
|
|
7973
|
+
|
|
7900
7974
|
--------------------------------------------------------------------------------
|
|
7901
7975
|
Package Title: @tootallnate/once (2.0.0)
|
|
7902
7976
|
|
|
@@ -67710,6 +67784,31 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
|
67710
67784
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
67711
67785
|
|
|
67712
67786
|
|
|
67787
|
+
* MIT *
|
|
67788
|
+
|
|
67789
|
+
MIT License
|
|
67790
|
+
|
|
67791
|
+
Copyright (c) 2021-present Tanner Linsley
|
|
67792
|
+
|
|
67793
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
67794
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
67795
|
+
in the Software without restriction, including without limitation the rights
|
|
67796
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
67797
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
67798
|
+
furnished to do so, subject to the following conditions:
|
|
67799
|
+
|
|
67800
|
+
The above copyright notice and this permission notice shall be included in all
|
|
67801
|
+
copies or substantial portions of the Software.
|
|
67802
|
+
|
|
67803
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
67804
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
67805
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
67806
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
67807
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
67808
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
67809
|
+
SOFTWARE.
|
|
67810
|
+
|
|
67811
|
+
|
|
67713
67812
|
* MIT *
|
|
67714
67813
|
|
|
67715
67814
|
MIT License
|
|
@@ -72561,4 +72660,4 @@ POSSIBILITY OF SUCH DAMAGE.
|
|
|
72561
72660
|
--------------------------------------------------------------------------------
|
|
72562
72661
|
--------------------------------------------------------------------------------
|
|
72563
72662
|
|
|
72564
|
-
Report Generated by FOSSA on 2024-12-
|
|
72663
|
+
Report Generated by FOSSA on 2024-12-12
|
package/esm/index.d.ts
CHANGED
|
@@ -34,4 +34,15 @@ export declare function getInsightVisualizationMeta(insight: IInsightDefinition,
|
|
|
34
34
|
export * from "./internal/components/dialogs/userManagementDialogs/index.js";
|
|
35
35
|
export * from "./internal/components/attributeHierarchies/index.js";
|
|
36
36
|
export * from "./internal/components/pluggableVisualizations/alerts.js";
|
|
37
|
+
export { DefaultOpenNotificationsPanelButton } from "./notificationsPanel/NotificationsPanel/DefaultOpenNotificationsPanelButton.js";
|
|
38
|
+
export { NotificationsPanel } from "./notificationsPanel/NotificationsPanel/NotificationsPanel.js";
|
|
39
|
+
export type { INotificationsPanelProps, INotificationsPanelCustomComponentsProps, } from "./notificationsPanel/NotificationsPanel/NotificationsPanel.js";
|
|
40
|
+
export type { INotificationsPanelComponentProps } from "./notificationsPanel/NotificationsPanel/DefaultNotificationsPanel.js";
|
|
41
|
+
export type { IOpenNotificationsPanelButtonComponentProps } from "./notificationsPanel/NotificationsPanel/DefaultOpenNotificationsPanelButton.js";
|
|
42
|
+
export type { INotificationsPanelHeaderComponentProps } from "./notificationsPanel/NotificationsPanel/DefaultNotificationsPanelHeader.js";
|
|
43
|
+
export type { INotificationsListComponentProps } from "./notificationsPanel/NotificationsList/DefaultNotificationsList.js";
|
|
44
|
+
export type { INotificationsListEmptyStateComponentProps } from "./notificationsPanel/NotificationsList/DefaultNotificationsListEmptyState.js";
|
|
45
|
+
export type { INotificationsListErrorStateComponentProps } from "./notificationsPanel/NotificationsList/DefaultNotificationsListErrorState.js";
|
|
46
|
+
export type { INotificationComponentProps } from "./notificationsPanel/Notification/DefaultNotification.js";
|
|
47
|
+
export type { INotificationsPanelView } from "./notificationsPanel/types.js";
|
|
37
48
|
//# sourceMappingURL=index.d.ts.map
|
package/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,QAAQ,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function getInsightVisualizationMeta(insight, settings) {
|
|
|
40
40
|
export * from "./internal/components/dialogs/userManagementDialogs/index.js";
|
|
41
41
|
export * from "./internal/components/attributeHierarchies/index.js";
|
|
42
42
|
export * from "./internal/components/pluggableVisualizations/alerts.js";
|
|
43
|
+
export { DefaultOpenNotificationsPanelButton } from "./notificationsPanel/NotificationsPanel/DefaultOpenNotificationsPanelButton.js";
|
|
44
|
+
export { NotificationsPanel } from "./notificationsPanel/NotificationsPanel/NotificationsPanel.js";
|
|
43
45
|
//# sourceMappingURL=index.js.map
|
package/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC;;;;;;;;;;GAUG;AAKH,OAAO,EACH,qBAAqB,EACrB,wBAAwB,GAI3B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAChE,cAAc,wBAAwB,CAAC;AAgBvC,OAAO,EACH,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,UAAU,EACV,gBAAgB,EAChB,gCAAgC,EAChC,+BAA+B,EAC/B,sCAAsC,EACtC,gCAAgC,EAChC,uCAAuC,EACvC,oCAAoC,EACpC,4BAA4B,EAC5B,mCAAmC,EACnC,iCAAiC,EACjC,kCAAkC,EAClC,sCAAsC,EACtC,+CAA+C,EAC/C,mDAAmD,EACnD,yCAAyC,EACzC,uBAAuB,EACvB,kBAAkB,GACrB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAErE,mHAAmH;AACnH;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAA2B,EAAE,QAAmB;IAC/E,OAAO,wBAAwB,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,OAAO,EAAE,qBAAqB,EAAE,QAAQ,CAAC,CAAC;A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UAAU,kBAAkB,CAAC,OAA2B,EAAE,QAAmB;IAC/E,OAAO,wBAAwB,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,OAAO,EAAE,qBAAqB,EAAE,QAAQ,CAAC,CAAC;AAC9G,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,8BAA8B,CAC1C,OAAiB,EACjB,UAAuB,EACvB,eAAqC,EACrC,0BAAmC,EACnC,4CAAqD;IAErD,OAAO,wBAAwB,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,cAAc,CAC9D,OAAO,EACP;QACI,eAAe;QACf,KAAK,EAAE,UAAU;KACpB,EACD,0BAA0B,EAC1B,4CAA4C,CAC/C,CAAC;AACN,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,2BAA2B,CACvC,OAA2B,EAC3B,QAAoB;IAEpB,OAAO,wBAAwB,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC1E,CAAC;AAED,cAAc,8DAA8D,CAAC;AAE7E,cAAc,qDAAqD,CAAC;AAEpE,cAAc,yDAAyD,CAAC;AAExE,OAAO,EAAE,mCAAmC,EAAE,MAAM,gFAAgF,CAAC;AACrI,OAAO,EAAE,kBAAkB,EAAE,MAAM,+DAA+D,CAAC"}
|
|
@@ -2007,5 +2007,85 @@
|
|
|
2007
2007
|
"value": "Versus",
|
|
2008
2008
|
"comment": "Means comparison of two values - for example '100 (this week) VERSUS 10 (last week)'.",
|
|
2009
2009
|
"limit": 0
|
|
2010
|
+
},
|
|
2011
|
+
"gs.date.yesterday": {
|
|
2012
|
+
"value": "Yesterday",
|
|
2013
|
+
"comment": "",
|
|
2014
|
+
"limit": 0
|
|
2015
|
+
},
|
|
2016
|
+
"notifications.panel.tab.unread": {
|
|
2017
|
+
"value": "Unread ({count})",
|
|
2018
|
+
"comment": "",
|
|
2019
|
+
"limit": 0
|
|
2020
|
+
},
|
|
2021
|
+
"notifications.panel.tab.all": {
|
|
2022
|
+
"value": "All",
|
|
2023
|
+
"comment": "",
|
|
2024
|
+
"limit": 0
|
|
2025
|
+
},
|
|
2026
|
+
"notifications.panel.markAllAsRead": {
|
|
2027
|
+
"value": "Mark all as read",
|
|
2028
|
+
"comment": "",
|
|
2029
|
+
"limit": 0
|
|
2030
|
+
},
|
|
2031
|
+
"notifications.panel.error.loading": {
|
|
2032
|
+
"value": "Error loading notifications",
|
|
2033
|
+
"comment": "",
|
|
2034
|
+
"limit": 0
|
|
2035
|
+
},
|
|
2036
|
+
"notifications.panel.empty.all": {
|
|
2037
|
+
"value": "No notifications",
|
|
2038
|
+
"comment": "",
|
|
2039
|
+
"limit": 0
|
|
2040
|
+
},
|
|
2041
|
+
"notifications.panel.empty.unread": {
|
|
2042
|
+
"value": "No unread notifications",
|
|
2043
|
+
"comment": "",
|
|
2044
|
+
"limit": 0
|
|
2045
|
+
},
|
|
2046
|
+
"notifications.panel.unsupported.notification.type": {
|
|
2047
|
+
"value": "Unsupported notification type",
|
|
2048
|
+
"comment": "",
|
|
2049
|
+
"limit": 0
|
|
2050
|
+
},
|
|
2051
|
+
"notifications.panel.markAsRead": {
|
|
2052
|
+
"value": "Mark as read",
|
|
2053
|
+
"comment": "",
|
|
2054
|
+
"limit": 0
|
|
2055
|
+
},
|
|
2056
|
+
"notifications.filters.buttonLabel": {
|
|
2057
|
+
"value": "{count} filters",
|
|
2058
|
+
"comment": "",
|
|
2059
|
+
"limit": 0
|
|
2060
|
+
},
|
|
2061
|
+
"notifications.filters.dialog.title": {
|
|
2062
|
+
"value": "Applied filters",
|
|
2063
|
+
"comment": "",
|
|
2064
|
+
"limit": 0
|
|
2065
|
+
},
|
|
2066
|
+
"notifications.filters.dialog.dateRange": {
|
|
2067
|
+
"value": "Date Range",
|
|
2068
|
+
"comment": "",
|
|
2069
|
+
"limit": 0
|
|
2070
|
+
},
|
|
2071
|
+
"notifications.panel.triggers.title": {
|
|
2072
|
+
"value": "for {triggeredCount}/{totalCount} items",
|
|
2073
|
+
"comment": "",
|
|
2074
|
+
"limit": 0
|
|
2075
|
+
},
|
|
2076
|
+
"notifications.panel.triggers.dialog.newValue": {
|
|
2077
|
+
"value": "New value",
|
|
2078
|
+
"comment": "",
|
|
2079
|
+
"limit": 0
|
|
2080
|
+
},
|
|
2081
|
+
"close": {
|
|
2082
|
+
"value": "Close",
|
|
2083
|
+
"comment": "Label of a button for closing a dialog window",
|
|
2084
|
+
"limit": 0
|
|
2085
|
+
},
|
|
2086
|
+
"notifications.panel.triggers.dialog.title": {
|
|
2087
|
+
"value": "Triggered for",
|
|
2088
|
+
"comment": "",
|
|
2089
|
+
"limit": 0
|
|
2010
2090
|
}
|
|
2011
2091
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IAnalyticalBackend, IOrganization } from "@gooddata/sdk-backend-spi";
|
|
3
|
+
import { GoodDataSdkError, UseCancelablePromiseState } from "@gooddata/sdk-ui";
|
|
4
|
+
export type IOrganizationContext = UseCancelablePromiseState<IOrganization, GoodDataSdkError>;
|
|
5
|
+
export declare const useOrganization: () => IOrganizationContext;
|
|
6
|
+
export interface IOrganizationProviderProps {
|
|
7
|
+
backend?: IAnalyticalBackend;
|
|
8
|
+
organizationId?: string;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export declare const OrganizationProvider: React.FC<IOrganizationProviderProps>;
|
|
12
|
+
//# sourceMappingURL=OrganizationContext.d.ts.map
|
|
@@ -0,0 +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;AAK9F,eAAO,MAAM,eAAe,4BAM3B,CAAC;AAEF,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,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAQrE,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// (C) 2019-2024 GoodData Corporation
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { useFetchOrganization } from "./useFetchOrganization.js";
|
|
4
|
+
import { UnexpectedSdkError } from "@gooddata/sdk-ui";
|
|
5
|
+
const OrganizationContext = React.createContext(null);
|
|
6
|
+
OrganizationContext.displayName = "OrganizationContext";
|
|
7
|
+
export const useOrganization = () => {
|
|
8
|
+
const organization = React.useContext(OrganizationContext);
|
|
9
|
+
if (!organization) {
|
|
10
|
+
throw new UnexpectedSdkError("useOrganization must be used within a OrganizationProvider");
|
|
11
|
+
}
|
|
12
|
+
return organization;
|
|
13
|
+
};
|
|
14
|
+
export const OrganizationProvider = ({ children, backend, organizationId, }) => {
|
|
15
|
+
const organization = useFetchOrganization({ backend, organizationId });
|
|
16
|
+
return React.createElement(OrganizationContext.Provider, { value: organization }, children);
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=OrganizationContext.js.map
|
|
@@ -0,0 +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;AAInG,MAAM,mBAAmB,GAAG,KAAK,CAAC,aAAa,CAA8B,IAAI,CAAC,CAAC;AACnF,mBAAmB,CAAC,WAAW,GAAG,qBAAqB,CAAC;AAExD,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;AAQF,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"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IAnalyticalBackend, IOrganization } from "@gooddata/sdk-backend-spi";
|
|
2
|
+
import { GoodDataSdkError } from "@gooddata/sdk-ui";
|
|
3
|
+
/**
|
|
4
|
+
* @alpha
|
|
5
|
+
*/
|
|
6
|
+
export interface IUseFetchOrganizationProps {
|
|
7
|
+
/**
|
|
8
|
+
* Analytical backend instance to use.
|
|
9
|
+
* If not provided, it will be taken from the BackendProvider context.
|
|
10
|
+
*/
|
|
11
|
+
backend?: IAnalyticalBackend;
|
|
12
|
+
/**
|
|
13
|
+
* Organization ID to use.
|
|
14
|
+
* If not provided, the current organization will be used.
|
|
15
|
+
*/
|
|
16
|
+
organizationId?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @alpha
|
|
20
|
+
*/
|
|
21
|
+
export declare function useFetchOrganization({ backend, organizationId }: IUseFetchOrganizationProps): import("@gooddata/sdk-ui").UseCancelablePromiseState<IOrganization, GoodDataSdkError>;
|
|
22
|
+
//# sourceMappingURL=useFetchOrganization.d.ts.map
|
|
@@ -0,0 +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;;;OAGG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,0BAA0B,yFAa3F"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useBackendStrict, useCancelablePromise } from "@gooddata/sdk-ui";
|
|
2
|
+
/**
|
|
3
|
+
* @alpha
|
|
4
|
+
*/
|
|
5
|
+
export function useFetchOrganization({ backend, organizationId }) {
|
|
6
|
+
const effectiveBackend = useBackendStrict(backend, "useOrganization");
|
|
7
|
+
return useCancelablePromise({
|
|
8
|
+
promise: () => {
|
|
9
|
+
return organizationId
|
|
10
|
+
? Promise.resolve(effectiveBackend.organization(organizationId))
|
|
11
|
+
: effectiveBackend.organizations().getCurrentOrganization();
|
|
12
|
+
},
|
|
13
|
+
}, [effectiveBackend]);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=useFetchOrganization.js.map
|
|
@@ -0,0 +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;AAmB5F;;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,CAAC,CACrB,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IAlertNotification } from "@gooddata/sdk-model";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface IAlertNotificationsProps {
|
|
7
|
+
notification: IAlertNotification;
|
|
8
|
+
markAsRead: (id: string) => void;
|
|
9
|
+
onNotificationClick: (notification: IAlertNotification) => void;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export declare function AlertNotification({ notification, markAsRead, onNotificationClick, }: IAlertNotificationsProps): React.JSX.Element;
|
|
15
|
+
//# sourceMappingURL=AlertNotification.d.ts.map
|
|
@@ -0,0 +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;AAQ3F;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,YAAY,EAAE,kBAAkB,CAAC;IACjC,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,mBAAmB,EAAE,CAAC,YAAY,EAAE,kBAAkB,KAAK,IAAI,CAAC;CACnE;AAID;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,EAC9B,YAAY,EACZ,UAAU,EACV,mBAAmB,GACtB,EAAE,wBAAwB,qBAkD1B"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
// (C) 2024 GoodData Corporation
|
|
2
|
+
import React, { useCallback } from "react";
|
|
3
|
+
import { getDateTimeConfig, UiIcon } from "@gooddata/sdk-ui-kit";
|
|
4
|
+
import { bem } from "../bem.js";
|
|
5
|
+
import { Tooltip } from "../components/Tooltip.js";
|
|
6
|
+
import { NotificationFiltersDetail } from "../NotificationFiltersDetail/NotificationFiltersDetail.js";
|
|
7
|
+
import { NotificationTriggerDetail } from "../NotificationTriggersDetail/NotificationTriggersDetail.js";
|
|
8
|
+
import { defineMessages, FormattedDate, FormattedMessage, FormattedTime, useIntl } from "react-intl";
|
|
9
|
+
const { b, e } = bem("gd-ui-ext-notification");
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export function AlertNotification({ notification, markAsRead, onNotificationClick, }) {
|
|
14
|
+
const intl = useIntl();
|
|
15
|
+
const onMarkAsReadClick = (e) => {
|
|
16
|
+
e.stopPropagation();
|
|
17
|
+
markAsRead(notification.id);
|
|
18
|
+
};
|
|
19
|
+
const clickNotification = useCallback(() => {
|
|
20
|
+
onNotificationClick(notification);
|
|
21
|
+
}, [onNotificationClick, notification]);
|
|
22
|
+
const filterCount = notification.details.data.alert.filterCount;
|
|
23
|
+
const isSliced = notification.details.data.alert.attribute;
|
|
24
|
+
const showSeparator = filterCount && filterCount > 0 && isSliced;
|
|
25
|
+
const notificationTitle = getNotificationTitle(notification);
|
|
26
|
+
return (React.createElement("div", { className: b({ isRead: notification.isRead }), onClick: clickNotification },
|
|
27
|
+
React.createElement("div", { className: e("icon") },
|
|
28
|
+
!notification.isRead && React.createElement("div", { className: e("unread-status") }),
|
|
29
|
+
React.createElement(UiIcon, { type: "alert", size: 14, color: "complementary-6" })),
|
|
30
|
+
React.createElement("div", { className: e("details") },
|
|
31
|
+
React.createElement("div", { className: e("title", { isRead: notification.isRead }), title: notificationTitle }, notificationTitle),
|
|
32
|
+
React.createElement("div", { className: e("links") },
|
|
33
|
+
React.createElement(NotificationFiltersDetail, { notification: notification }),
|
|
34
|
+
showSeparator ? "・" : null,
|
|
35
|
+
React.createElement(NotificationTriggerDetail, { notification: notification }))),
|
|
36
|
+
React.createElement("div", { className: e("time") },
|
|
37
|
+
React.createElement(NotificationTime, { config: getDateTimeConfig(notification.createdAt) })),
|
|
38
|
+
React.createElement("div", { className: e("mark-as-read-button") },
|
|
39
|
+
React.createElement(Tooltip, { tooltip: intl.formatMessage(messages.markAsRead) },
|
|
40
|
+
React.createElement("span", { onClick: onMarkAsReadClick },
|
|
41
|
+
React.createElement(UiIcon, { type: "check", size: 14, color: "complementary-7", label: intl.formatMessage(messages.markAsRead) }))))));
|
|
42
|
+
}
|
|
43
|
+
function getNotificationTitle(notification) {
|
|
44
|
+
if (notification.notificationType === "alertNotification") {
|
|
45
|
+
return getAlertNotificationTitle(notification.details.data.alert);
|
|
46
|
+
}
|
|
47
|
+
else if (notification.notificationType === "scheduleNotification") {
|
|
48
|
+
return notification.details.data.automation.title;
|
|
49
|
+
}
|
|
50
|
+
return notification.details.message;
|
|
51
|
+
}
|
|
52
|
+
function getAlertNotificationTitle(alertDescription) {
|
|
53
|
+
const metric = alertDescription.metric;
|
|
54
|
+
const condition = alertDescription.condition;
|
|
55
|
+
const formattedThreshold = alertDescription.formattedThreshold;
|
|
56
|
+
// TODO: translate (backend is currently returning English, should return translation strings)
|
|
57
|
+
return `${metric} is ${condition} ${formattedThreshold}`;
|
|
58
|
+
}
|
|
59
|
+
const NotificationTime = ({ config }) => {
|
|
60
|
+
if (config.isToday) {
|
|
61
|
+
return React.createElement(FormattedTime, { value: config.date, format: "hhmm", hour12: false });
|
|
62
|
+
}
|
|
63
|
+
else if (config.isYesterday) {
|
|
64
|
+
return (React.createElement("span", null,
|
|
65
|
+
React.createElement(FormattedMessage, { id: "gs.date.yesterday" })));
|
|
66
|
+
}
|
|
67
|
+
return React.createElement(FormattedDate, { value: config.date, format: "shortWithYear" });
|
|
68
|
+
};
|
|
69
|
+
const messages = defineMessages({
|
|
70
|
+
markAsRead: {
|
|
71
|
+
id: "notifications.panel.markAsRead",
|
|
72
|
+
},
|
|
73
|
+
});
|
|
74
|
+
//# sourceMappingURL=AlertNotification.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertNotification.js","sourceRoot":"","sources":["../../../src/notificationsPanel/Notification/AlertNotification.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,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,yBAAyB,EAAE,MAAM,2DAA2D,CAAC;AACtG,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,UAAU,EACV,mBAAmB,GACI;IACvB,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IAEvB,MAAM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CAAC,kBAAkB,CAAC;IAE/D,8FAA8F;IAC9F,OAAO,GAAG,MAAM,OAAO,SAAS,IAAI,kBAAkB,EAAE,CAAC;AAC7D,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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { INotification } from "@gooddata/sdk-model";
|
|
3
|
+
/**
|
|
4
|
+
* @alpha
|
|
5
|
+
*/
|
|
6
|
+
export interface INotificationComponentProps {
|
|
7
|
+
notification: INotification;
|
|
8
|
+
markAsRead: (id: string) => void;
|
|
9
|
+
onNotificationClick: (notification: INotification) => void;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export declare function DefaultNotification({ notification, markAsRead, onNotificationClick, }: INotificationComponentProps): React.JSX.Element;
|
|
15
|
+
//# sourceMappingURL=DefaultNotification.d.ts.map
|
|
@@ -0,0 +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;;GAEG;AACH,MAAM,WAAW,2BAA2B;IACxC,YAAY,EAAE,aAAa,CAAC;IAC5B,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,mBAAmB,EAAE,CAAC,YAAY,EAAE,aAAa,KAAK,IAAI,CAAC;CAC9D;AAID;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,EAChC,YAAY,EACZ,UAAU,EACV,mBAAmB,GACtB,EAAE,2BAA2B,qBAY7B"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// (C) 2024 GoodData Corporation
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { bem } from "../bem.js";
|
|
4
|
+
import { defineMessages, FormattedMessage } from "react-intl";
|
|
5
|
+
import { AlertNotification } from "./AlertNotification.js";
|
|
6
|
+
const { b, e } = bem("gd-ui-ext-notification");
|
|
7
|
+
/**
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export function DefaultNotification({ notification, markAsRead, onNotificationClick, }) {
|
|
11
|
+
if (notification.notificationType !== "alertNotification") {
|
|
12
|
+
return React.createElement(UnsupportedNotificationType, null);
|
|
13
|
+
}
|
|
14
|
+
return (React.createElement(AlertNotification, { notification: notification, markAsRead: markAsRead, onNotificationClick: onNotificationClick }));
|
|
15
|
+
}
|
|
16
|
+
function UnsupportedNotificationType() {
|
|
17
|
+
return (React.createElement("div", { className: b({ isUnsupported: true }) },
|
|
18
|
+
React.createElement("div", { className: e("unsupported") },
|
|
19
|
+
React.createElement(FormattedMessage, { id: messages.unsupportedNotificationType.id }))));
|
|
20
|
+
}
|
|
21
|
+
const messages = defineMessages({
|
|
22
|
+
unsupportedNotificationType: {
|
|
23
|
+
id: "notifications.panel.unsupported.notification.type",
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
//# sourceMappingURL=DefaultNotification.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultNotification.js","sourceRoot":"","sources":["../../../src/notificationsPanel/Notification/DefaultNotification.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,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;AAW3D,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,GAAG,CAAC,wBAAwB,CAAC,CAAC;AAE/C;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAC,EAChC,YAAY,EACZ,UAAU,EACV,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,UAAU,EAAE,UAAU,EACtB,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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IAlertNotification } from "@gooddata/sdk-model";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface INotificationFiltersDetailProps {
|
|
7
|
+
notification: IAlertNotification;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export declare function NotificationFiltersDetail({ notification }: INotificationFiltersDetailProps): React.JSX.Element;
|
|
13
|
+
//# sourceMappingURL=NotificationFiltersDetail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationFiltersDetail.d.ts","sourceRoot":"","sources":["../../../src/notificationsPanel/NotificationFiltersDetail/NotificationFiltersDetail.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAYzD;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC5C,YAAY,EAAE,kBAAkB,CAAC;CACpC;AAQD;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,EAAE,YAAY,EAAE,EAAE,+BAA+B,qBA0C1F"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// (C) 2024 GoodData Corporation
|
|
2
|
+
import { alignConfigToAlignPoint, Overlay, UiButton } from "@gooddata/sdk-ui-kit";
|
|
3
|
+
import React, { useRef, useState } from "react";
|
|
4
|
+
import { NotificationFiltersDetailDialog } from "./NotificationFiltersDetailDialog.js";
|
|
5
|
+
import { defineMessages, useIntl } from "react-intl";
|
|
6
|
+
const ALIGN_POINTS = [
|
|
7
|
+
alignConfigToAlignPoint({
|
|
8
|
+
triggerAlignPoint: "bottom-right",
|
|
9
|
+
overlayAlignPoint: "top-right",
|
|
10
|
+
offset: { x: 2, y: 3 },
|
|
11
|
+
}),
|
|
12
|
+
];
|
|
13
|
+
const messages = defineMessages({
|
|
14
|
+
buttonLabel: {
|
|
15
|
+
id: "notifications.filters.buttonLabel",
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
/**
|
|
19
|
+
* @internal
|
|
20
|
+
*/
|
|
21
|
+
export function NotificationFiltersDetail({ notification }) {
|
|
22
|
+
const [isFiltersDialogOpen, setIsFiltersDialogOpen] = useState(false);
|
|
23
|
+
const intl = useIntl();
|
|
24
|
+
const ref = useRef(null);
|
|
25
|
+
const filterCount = notification.details.data.alert.filterCount;
|
|
26
|
+
const closeFiltersDialog = () => setIsFiltersDialogOpen(false);
|
|
27
|
+
const toggleFiltersDialog = () => setIsFiltersDialogOpen((x) => !x);
|
|
28
|
+
const onButtonClick = (e) => {
|
|
29
|
+
e.stopPropagation();
|
|
30
|
+
toggleFiltersDialog();
|
|
31
|
+
};
|
|
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, { count: filterCount }) })) : null,
|
|
34
|
+
isFiltersDialogOpen ? (React.createElement(Overlay, { isModal: false, alignTo: ref.current, alignPoints: ALIGN_POINTS, closeOnEscape: true, closeOnOutsideClick: true, closeOnParentScroll: true, closeOnMouseDrag: false, onClose: closeFiltersDialog },
|
|
35
|
+
React.createElement(NotificationFiltersDetailDialog, { notification: notification, onClose: closeFiltersDialog }))) : null));
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=NotificationFiltersDetail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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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AAC,UAAU,EAClB,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC,GACzE,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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IAlertNotification } from "@gooddata/sdk-model";
|
|
2
|
+
import React from "react";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface INotificationFiltersDetailDialogProps {
|
|
7
|
+
notification: IAlertNotification;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export declare function NotificationFiltersDetailDialog({ notification, onClose, }: INotificationFiltersDetailDialogProps): React.JSX.Element;
|
|
14
|
+
//# sourceMappingURL=NotificationFiltersDetailDialog.d.ts.map
|
package/esm/notificationsPanel/NotificationFiltersDetail/NotificationFiltersDetailDialog.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationFiltersDetailDialog.d.ts","sourceRoot":"","sources":["../../../src/notificationsPanel/NotificationFiltersDetail/NotificationFiltersDetailDialog.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,MAAM,OAAO,CAAC;AAe1B;;GAEG;AACH,MAAM,WAAW,qCAAqC;IAClD,YAAY,EAAE,kBAAkB,CAAC;IACjC,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,EAC5C,YAAY,EACZ,OAAO,GACV,EAAE,qCAAqC,qBAyBvC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Skeleton } from "../components/Skeleton.js";
|
|
3
|
+
import { DetailsDialog } from "../components/DetailsDialog.js";
|
|
4
|
+
import { useNotificationsFilterDetail } from "../data/useNotificationFiltersDetail.js";
|
|
5
|
+
import { bem } from "../bem.js";
|
|
6
|
+
import { defineMessages, useIntl } from "react-intl";
|
|
7
|
+
const { b, e } = bem("gd-ui-ext-notification-filters-detail-dialog");
|
|
8
|
+
const messages = defineMessages({
|
|
9
|
+
title: {
|
|
10
|
+
id: "notifications.filters.dialog.title",
|
|
11
|
+
},
|
|
12
|
+
});
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
export function NotificationFiltersDetailDialog({ notification, onClose, }) {
|
|
17
|
+
const intl = useIntl();
|
|
18
|
+
const { filtersInfo, automationPromise } = useNotificationsFilterDetail(notification);
|
|
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(Skeleton, { itemHeight: 32, itemsCount: filtersCount })) : (filtersInfo?.map(({ title, subtitle }, idx) => (React.createElement("div", { className: e("item"), key: idx },
|
|
21
|
+
React.createElement("div", { className: e("label") }, title),
|
|
22
|
+
React.createElement("div", { className: e("values") }, subtitle)))))), onClose: onClose }));
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=NotificationFiltersDetailDialog.js.map
|
package/esm/notificationsPanel/NotificationFiltersDetail/NotificationFiltersDetailDialog.js.map
ADDED
|
@@ -0,0 +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,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,yCAAyC,CAAC;AACvF,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErD,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,GAAG,CAAC,8CAA8C,CAAC,CAAC;AAErE,MAAM,QAAQ,GAAG,cAAc,CAAC;IAC5B,KAAK,EAAE;QACH,EAAE,EAAE,oCAAoC;KAC3C;CACJ,CAAC,CAAC;AAUH;;GAEG;AACH,MAAM,UAAU,+BAA+B,CAAC,EAC5C,YAAY,EACZ,OAAO,GAC6B;IACpC,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,EAAE,WAAW,EAAE,iBAAiB,EAAE,GAAG,4BAA4B,CAAC,YAAY,CAAC,CAAC;IACtF,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,IAAI,CAAC,CAAC;IAEtE,OAAO,CACH,oBAAC,aAAa,IACV,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,KAAK,CAAC,EACzC,OAAO,EACH,6BAAK,SAAS,EAAE,CAAC,EAAE,IACd,iBAAiB,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,CACtC,oBAAC,QAAQ,IAAC,UAAU,EAA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