@gooddata/sdk-ui-dashboard 11.52.0-alpha.4 → 11.52.0-alpha.5
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 +22 -22
- package/esm/__version.d.ts +1 -1
- package/esm/__version.js +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/{useAlertFilters.d.ts → useAlertFiltersModel.d.ts} +4 -4
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertFiltersModel.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/{useAlertFilters.js → useAlertFiltersModel.js} +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertFormState.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertFormState.js +6 -6
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useEditAlert.js +3 -3
- package/esm/presentation/dashboard/components/DashboardLoading.js +1 -1
- package/esm/presentation/dashboardSettingsDialog/TimezoneOption.d.ts.map +1 -1
- package/esm/presentation/dashboardSettingsDialog/TimezoneOption.js +12 -10
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +8 -0
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-US.localization-bundle.js +18 -10
- package/esm/presentation/timezoneDialog/TimezoneDialog.d.ts.map +1 -1
- package/esm/presentation/timezoneDialog/TimezoneDialog.js +2 -4
- package/package.json +21 -21
- package/styles/css/dashboardSettingsDialog.css +3 -0
- package/styles/css/dashboardSettingsDialog.css.map +1 -1
- package/styles/css/main.css +3 -0
- package/styles/css/main.css.map +1 -1
- package/styles/scss/dashboardSettingsDialog.scss +4 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertFilters.d.ts.map +0 -1
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: 2026-8-
|
|
10
|
+
Date generated: 2026-8-10
|
|
11
11
|
|
|
12
|
-
Revision ID:
|
|
12
|
+
Revision ID: df24fd6388dc31e841cd593b9a048731ec44afec
|
|
13
13
|
|
|
14
14
|
================================================================================
|
|
15
15
|
================================================================================
|
|
@@ -373,7 +373,7 @@ Revision ID: 81ef8e705df7e83197c71d5bca4ff1d157c580f3
|
|
|
373
373
|
- balanced-match (2.0.0) [MIT]
|
|
374
374
|
- balanced-match (4.0.4) [MIT]
|
|
375
375
|
- base64-js (1.5.1) [MIT]
|
|
376
|
-
- baseline-browser-mapping (2.11.
|
|
376
|
+
- baseline-browser-mapping (2.11.13) [Apache-2.0]
|
|
377
377
|
- batch (0.6.1) [MIT]
|
|
378
378
|
- binary-extensions (2.3.0) [MIT]
|
|
379
379
|
- bl (4.1.0) [MIT]
|
|
@@ -382,7 +382,7 @@ Revision ID: 81ef8e705df7e83197c71d5bca4ff1d157c580f3
|
|
|
382
382
|
- brace-expansion (1.1.16) [MIT]
|
|
383
383
|
- brace-expansion (5.0.8) [MIT]
|
|
384
384
|
- braces (3.0.3) [MIT]
|
|
385
|
-
- browserslist (4.28.
|
|
385
|
+
- browserslist (4.28.8) [MIT]
|
|
386
386
|
- buffer (5.7.1) [MIT]
|
|
387
387
|
- buffer-from (1.1.2) [MIT]
|
|
388
388
|
- bundle-name (4.1.0) [MIT]
|
|
@@ -394,7 +394,7 @@ Revision ID: 81ef8e705df7e83197c71d5bca4ff1d157c580f3
|
|
|
394
394
|
- call-bind-apply-helpers (1.0.2) [MIT]
|
|
395
395
|
- call-bound (1.0.4) [MIT]
|
|
396
396
|
- callsites (3.1.0) [MIT]
|
|
397
|
-
- caniuse-lite (1.0.
|
|
397
|
+
- caniuse-lite (1.0.30001809) [CC-BY-4.0]
|
|
398
398
|
- ccount (2.0.1) [MIT]
|
|
399
399
|
- chalk (5.3.0) [MIT]
|
|
400
400
|
- chalk (4.1.2) [MIT]
|
|
@@ -487,7 +487,7 @@ Revision ID: 81ef8e705df7e83197c71d5bca4ff1d157c580f3
|
|
|
487
487
|
- earcut (2.2.4) [ISC]
|
|
488
488
|
- earcut (3.2.3) [ISC]
|
|
489
489
|
- ee-first (1.1.1) [MIT]
|
|
490
|
-
- electron-to-chromium (1.5.
|
|
490
|
+
- electron-to-chromium (1.5.403) [ISC]
|
|
491
491
|
- emailjs-base64 (1.1.4) [MIT]
|
|
492
492
|
- emoji-regex (8.0.0) [MIT]
|
|
493
493
|
- emojilib (2.4.0) [MIT]
|
|
@@ -775,7 +775,7 @@ Revision ID: 81ef8e705df7e83197c71d5bca4ff1d157c580f3
|
|
|
775
775
|
- negotiator (0.6.4) [MIT]
|
|
776
776
|
- neo-async (2.6.2) [MIT]
|
|
777
777
|
- node-emoji (2.2.0) [MIT]
|
|
778
|
-
- node-releases (2.0.
|
|
778
|
+
- node-releases (2.0.53) [MIT]
|
|
779
779
|
- normalize-path (3.0.0) [MIT]
|
|
780
780
|
- object-assign (4.1.1) [MIT]
|
|
781
781
|
- object-code (2.0.0) [MIT]
|
|
@@ -1017,7 +1017,7 @@ Revision ID: 81ef8e705df7e83197c71d5bca4ff1d157c580f3
|
|
|
1017
1017
|
- unist-util-visit-parents (6.0.2) [MIT]
|
|
1018
1018
|
- universalify (2.0.1) [MIT]
|
|
1019
1019
|
- unpipe (1.0.0) [MIT]
|
|
1020
|
-
- update-browserslist-db (1.
|
|
1020
|
+
- update-browserslist-db (1.3.0) [MIT]
|
|
1021
1021
|
- use-composed-ref (1.4.0) [MIT]
|
|
1022
1022
|
- use-is-mounted-ref (1.5.0) [MIT]
|
|
1023
1023
|
- use-isomorphic-layout-effect (1.2.1) [MIT]
|
|
@@ -5277,9 +5277,9 @@ MIT
|
|
|
5277
5277
|
|
|
5278
5278
|
|
|
5279
5279
|
--------------------------------------------------------------------------------
|
|
5280
|
-
Package Title: baseline-browser-mapping (2.11.
|
|
5280
|
+
Package Title: baseline-browser-mapping (2.11.13)
|
|
5281
5281
|
|
|
5282
|
-
Package Locator: npm+baseline-browser-mapping$2.11.
|
|
5282
|
+
Package Locator: npm+baseline-browser-mapping$2.11.13
|
|
5283
5283
|
|
|
5284
5284
|
Package Depth: Transitive
|
|
5285
5285
|
--------------------------------------------------------------------------------
|
|
@@ -5385,9 +5385,9 @@ MIT
|
|
|
5385
5385
|
|
|
5386
5386
|
|
|
5387
5387
|
--------------------------------------------------------------------------------
|
|
5388
|
-
Package Title: browserslist (4.28.
|
|
5388
|
+
Package Title: browserslist (4.28.8)
|
|
5389
5389
|
|
|
5390
|
-
Package Locator: npm+browserslist$4.28.
|
|
5390
|
+
Package Locator: npm+browserslist$4.28.8
|
|
5391
5391
|
|
|
5392
5392
|
Package Depth: Transitive
|
|
5393
5393
|
--------------------------------------------------------------------------------
|
|
@@ -5529,9 +5529,9 @@ MIT
|
|
|
5529
5529
|
|
|
5530
5530
|
|
|
5531
5531
|
--------------------------------------------------------------------------------
|
|
5532
|
-
Package Title: caniuse-lite (1.0.
|
|
5532
|
+
Package Title: caniuse-lite (1.0.30001809)
|
|
5533
5533
|
|
|
5534
|
-
Package Locator: npm+caniuse-lite$1.0.
|
|
5534
|
+
Package Locator: npm+caniuse-lite$1.0.30001809
|
|
5535
5535
|
|
|
5536
5536
|
Package Depth: Transitive
|
|
5537
5537
|
--------------------------------------------------------------------------------
|
|
@@ -6649,9 +6649,9 @@ MIT
|
|
|
6649
6649
|
|
|
6650
6650
|
|
|
6651
6651
|
--------------------------------------------------------------------------------
|
|
6652
|
-
Package Title: electron-to-chromium (1.5.
|
|
6652
|
+
Package Title: electron-to-chromium (1.5.403)
|
|
6653
6653
|
|
|
6654
|
-
Package Locator: npm+electron-to-chromium$1.5.
|
|
6654
|
+
Package Locator: npm+electron-to-chromium$1.5.403
|
|
6655
6655
|
|
|
6656
6656
|
Package Depth: Transitive
|
|
6657
6657
|
--------------------------------------------------------------------------------
|
|
@@ -10123,9 +10123,9 @@ MIT
|
|
|
10123
10123
|
|
|
10124
10124
|
|
|
10125
10125
|
--------------------------------------------------------------------------------
|
|
10126
|
-
Package Title: node-releases (2.0.
|
|
10126
|
+
Package Title: node-releases (2.0.53)
|
|
10127
10127
|
|
|
10128
|
-
Package Locator: npm+node-releases$2.0.
|
|
10128
|
+
Package Locator: npm+node-releases$2.0.53
|
|
10129
10129
|
|
|
10130
10130
|
Package Depth: Transitive
|
|
10131
10131
|
--------------------------------------------------------------------------------
|
|
@@ -13081,9 +13081,9 @@ MIT
|
|
|
13081
13081
|
|
|
13082
13082
|
|
|
13083
13083
|
--------------------------------------------------------------------------------
|
|
13084
|
-
Package Title: update-browserslist-db (1.
|
|
13084
|
+
Package Title: update-browserslist-db (1.3.0)
|
|
13085
13085
|
|
|
13086
|
-
Package Locator: npm+update-browserslist-db$1.
|
|
13086
|
+
Package Locator: npm+update-browserslist-db$1.3.0
|
|
13087
13087
|
|
|
13088
13088
|
Package Depth: Transitive
|
|
13089
13089
|
--------------------------------------------------------------------------------
|
|
@@ -28551,7 +28551,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
28551
28551
|
|
|
28552
28552
|
The MIT License (MIT)
|
|
28553
28553
|
|
|
28554
|
-
Copyright 2022 Andrey Sitnik <andrey@sitnik.
|
|
28554
|
+
Copyright 2022 Andrey Sitnik <andrey@sitnik.es> and other contributors
|
|
28555
28555
|
|
|
28556
28556
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
28557
28557
|
this software and associated documentation files (the "Software"), to deal in
|
|
@@ -29357,4 +29357,4 @@ POSSIBILITY OF SUCH DAMAGE.
|
|
|
29357
29357
|
--------------------------------------------------------------------------------
|
|
29358
29358
|
--------------------------------------------------------------------------------
|
|
29359
29359
|
|
|
29360
|
-
Report Generated by FOSSA on 2026-8-
|
|
29360
|
+
Report Generated by FOSSA on 2026-8-10
|
package/esm/__version.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const LIB_VERSION = "11.52.0-alpha.
|
|
1
|
+
export declare const LIB_VERSION = "11.52.0-alpha.5";
|
|
2
2
|
export declare const LIB_DESCRIPTION = "GoodData SDK - Dashboard Component";
|
|
3
3
|
export declare const LIB_NAME = "@gooddata/sdk-ui-dashboard";
|
|
4
4
|
//# sourceMappingURL=__version.d.ts.map
|
package/esm/__version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// (C) 2021 GoodData Corporation
|
|
2
2
|
// DO NOT CHANGE THIS FILE, IT IS RE-GENERATED ON EVERY BUILD
|
|
3
|
-
export const LIB_VERSION = "11.52.0-alpha.
|
|
3
|
+
export const LIB_VERSION = "11.52.0-alpha.5";
|
|
4
4
|
export const LIB_DESCRIPTION = "GoodData SDK - Dashboard Component";
|
|
5
5
|
export const LIB_NAME = "@gooddata/sdk-ui-dashboard";
|
|
@@ -3,10 +3,10 @@ import { type FilterContextItem, type IAutomationMetadataObject, type IAutomatio
|
|
|
3
3
|
import { type AlertAttribute, type AlertMetric } from "../../types.js";
|
|
4
4
|
import { type IMeasureFormatMap } from "../utils/getters.js";
|
|
5
5
|
/**
|
|
6
|
-
* Props for {@link
|
|
6
|
+
* Props for {@link useAlertFiltersModel}.
|
|
7
7
|
* @internal
|
|
8
8
|
*/
|
|
9
|
-
export interface
|
|
9
|
+
export interface IUseAlertFiltersModelProps {
|
|
10
10
|
setEditedAutomation: Dispatch<SetStateAction<IAutomationMetadataObjectDefinition | undefined>>;
|
|
11
11
|
alertToEdit?: IAutomationMetadataObject;
|
|
12
12
|
editedAutomationFilters: FilterContextItem[];
|
|
@@ -40,7 +40,7 @@ export interface IUseAlertFiltersProps {
|
|
|
40
40
|
*
|
|
41
41
|
* @internal
|
|
42
42
|
*/
|
|
43
|
-
export declare function
|
|
43
|
+
export declare function useAlertFiltersModel({ setEditedAutomation, alertToEdit, editedAutomationFilters, setEditedAutomationFilters, availableFilters, filtersForNewAutomation, availableFiltersAsVisibleFilters, dashboardHiddenFilters, commonDateFilterId, widget, insight, supportedMeasures, supportedAttributes, measureFormatMap, selectedMeasure, selectedAttribute, selectedValue, weekStart, timezone }: IUseAlertFiltersModelProps): {
|
|
44
44
|
selectedFilters: FilterContextItem[];
|
|
45
45
|
availableFilters: FilterContextItem[] | undefined;
|
|
46
46
|
onFiltersChange: (filters: FilterContextItem[]) => void;
|
|
@@ -48,4 +48,4 @@ export declare function useAlertFilters({ setEditedAutomation, alertToEdit, edit
|
|
|
48
48
|
automationIsValid: boolean;
|
|
49
49
|
filtersAreStale: boolean;
|
|
50
50
|
};
|
|
51
|
-
//# sourceMappingURL=
|
|
51
|
+
//# sourceMappingURL=useAlertFiltersModel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAlertFiltersModel.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertFiltersModel.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAe,MAAM,OAAO,CAAC;AAExE,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EACxC,KAAK,wBAAwB,EAC7B,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,SAAS,EACjB,MAAM,qBAAqB,CAAC;AAI7B,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAG7D;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACvC,mBAAmB,EAAE,QAAQ,CAAC,cAAc,CAAC,mCAAmC,GAAG,SAAS,CAAC,CAAC,CAAC;IAC/F,WAAW,CAAC,EAAE,yBAAyB,CAAC;IACxC,uBAAuB,E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qBAAqB,EAAE,MAAM,IAAI,CAAC;IAClC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,eAAe,EAAE,OAAO,CAAC;CAC5B,CAsGA"}
|
|
@@ -16,7 +16,7 @@ import { transformAlertByAttribute, transformAlertByMetric } from "../utils/tran
|
|
|
16
16
|
*
|
|
17
17
|
* @internal
|
|
18
18
|
*/
|
|
19
|
-
export function
|
|
19
|
+
export function useAlertFiltersModel({ setEditedAutomation, alertToEdit, editedAutomationFilters, setEditedAutomationFilters, availableFilters, filtersForNewAutomation, availableFiltersAsVisibleFilters, dashboardHiddenFilters, commonDateFilterId, widget, insight, supportedMeasures, supportedAttributes, measureFormatMap, selectedMeasure, selectedAttribute, selectedValue, weekStart, timezone, }) {
|
|
20
20
|
const onFiltersChange = useCallback((filters) => {
|
|
21
21
|
setEditedAutomationFilters(filters);
|
|
22
22
|
setEditedAutomation((s) => {
|
package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertFormState.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAlertFormState.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertFormState.ts"],"names":[],"mappings":"AAMA,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EACxC,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,QAAQ,EAEb,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,KAAK,OAAO,EACf,MAAM,qBAAqB,CAAC;AAe7B,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EAAE,KAAK,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAEvG,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAY7D;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACpC,WAAW,CAAC,EAAE,yBAAyB,CAAC;IACxC,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,oBAAoB,EAAE,8BAA8B,EAAE,GAAG,kCAAkC,EAAE,CAAC;IAC9F,uBAAuB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC9C,gCAAgC,CAAC,EAAE,wBAAwB,EAAE,GAAG,SAAS,CAAC;IAC1E,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,iBAAiB,EAAE,WAAW,EAAE,CAAC;IACjC,mBAAmB,EAAE,cAAc,EAAE,CAAC;IACtC,gBAAgB,EAAE,iBAAiB,CAAC;CACvC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,EAC9B,WAAW,EACX,OAAO,EACP,MAAM,EACN,oBAAoB,EACpB,uBAAuB,EACvB,gCAAgC,EAChC,yBAAyB,EACzB,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EACnB,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useAlertFormState.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertFormState.ts"],"names":[],"mappings":"AAMA,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EACxC,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,QAAQ,EAEb,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,KAAK,OAAO,EACf,MAAM,qBAAqB,CAAC;AAe7B,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EAAE,KAAK,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAEvG,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAY7D;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACpC,WAAW,CAAC,EAAE,yBAAyB,CAAC;IACxC,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,oBAAoB,EAAE,8BAA8B,EAAE,GAAG,kCAAkC,EAAE,CAAC;IAC9F,uBAAuB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC9C,gCAAgC,CAAC,EAAE,wBAAwB,EAAE,GAAG,SAAS,CAAC;IAC1E,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,iBAAiB,EAAE,WAAW,EAAE,CAAC;IACjC,mBAAmB,EAAE,cAAc,EAAE,CAAC;IACtC,gBAAgB,EAAE,iBAAiB,CAAC;CACvC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,EAC9B,WAAW,EACX,OAAO,EACP,MAAM,EACN,oBAAoB,EACpB,uBAAuB,EACvB,gCAAgC,EAChC,yBAAyB,EACzB,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EACnB,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwZzB"}
|
package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertFormState.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
|
-
import { useCallback, useState } from "react";
|
|
2
|
+
import { useCallback, useMemo, useState } from "react";
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
4
|
import { useAlertingDialogContext } from "../../../contexts/AlertingDialogContext.js";
|
|
5
5
|
import { useAutomationsContext } from "../../../contexts/AutomationsContext.js";
|
|
@@ -28,10 +28,10 @@ export function useAlertFormState({ alertToEdit, insight, widget, notificationCh
|
|
|
28
28
|
const targetTabIdentifier = widget?.localIdentifier ? widgetTabMap[widget.localIdentifier] : undefined;
|
|
29
29
|
// Default values
|
|
30
30
|
const defaultMeasure = supportedMeasures[0];
|
|
31
|
-
const defaultUser = convertUserToAutomationRecipient(currentUser);
|
|
32
|
-
const defaultRecipient = externalRecipientOverride
|
|
31
|
+
const defaultUser = useMemo(() => convertUserToAutomationRecipient(currentUser), [currentUser]);
|
|
32
|
+
const defaultRecipient = useMemo(() => externalRecipientOverride
|
|
33
33
|
? convertExternalRecipientToAutomationRecipient(externalRecipientOverride)
|
|
34
|
-
: convertUserToAutomationRecipient(currentUser);
|
|
34
|
+
: convertUserToAutomationRecipient(currentUser), [externalRecipientOverride, currentUser]);
|
|
35
35
|
const defaultNotificationChannelId = notificationChannels[0]?.id;
|
|
36
36
|
const resolvedAlertToEdit = (() => {
|
|
37
37
|
if (!alertToEdit) {
|
|
@@ -84,10 +84,10 @@ export function useAlertFormState({ alertToEdit, insight, widget, notificationCh
|
|
|
84
84
|
//
|
|
85
85
|
// Handlers
|
|
86
86
|
//
|
|
87
|
-
const onTitleChange = (value, isValid) => {
|
|
87
|
+
const onTitleChange = useCallback((value, isValid) => {
|
|
88
88
|
setIsTitleValid(isValid);
|
|
89
89
|
setEditedAutomation((s) => (s ? { ...s, title: value } : undefined));
|
|
90
|
-
};
|
|
90
|
+
}, [setEditedAutomation]);
|
|
91
91
|
const onMeasureChange = useCallback((measure) => {
|
|
92
92
|
setEditedAutomation((alert) => alert
|
|
93
93
|
? transformAlertByMetric(supportedMeasures, alert, measure, measureFormatMap, weekStart, timezone)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { useAlertingDialogContext } from "../../../contexts/AlertingDialogContext.js";
|
|
3
3
|
import { useAutomationsContext } from "../../../contexts/AutomationsContext.js";
|
|
4
4
|
import { useAutomationFiltersSelect } from "../../../shared/automationFilters/useAutomationFiltersSelect.js";
|
|
5
|
-
import {
|
|
5
|
+
import { useAlertFiltersModel } from "./useAlertFiltersModel.js";
|
|
6
6
|
import { useAlertFormState } from "./useAlertFormState.js";
|
|
7
7
|
import { useAlertFormValidation } from "./useAlertFormValidation.js";
|
|
8
8
|
import { useAlertSelectedValues } from "./useAlertSelectedValues.js";
|
|
@@ -38,7 +38,7 @@ export function useEditAlert({ maxAutomationsRecipients, externalRecipientOverri
|
|
|
38
38
|
// Kept whole rather than destructured: every member is re-exposed unchanged, so spreading it into
|
|
39
39
|
// the return means a member can never be dropped by forgetting to re-list it. What the model may
|
|
40
40
|
// contain is gated by its own shape test, not here.
|
|
41
|
-
const filterModel =
|
|
41
|
+
const filterModel = useAlertFiltersModel({
|
|
42
42
|
setEditedAutomation,
|
|
43
43
|
alertToEdit,
|
|
44
44
|
editedAutomationFilters,
|
|
@@ -87,7 +87,7 @@ export function useEditAlert({ maxAutomationsRecipients, externalRecipientOverri
|
|
|
87
87
|
return {
|
|
88
88
|
onTitleChange,
|
|
89
89
|
onRecipientsChange,
|
|
90
|
-
// Filter model, absorbed from `
|
|
90
|
+
// Filter model, absorbed from `useAlertFiltersModel`. Spread rather than re-listed so a member
|
|
91
91
|
// cannot be dropped by omission; its `availableFilters` is the model's, not the raw
|
|
92
92
|
// selection hook's.
|
|
93
93
|
...filterModel,
|
|
@@ -20,7 +20,7 @@ export function DashboardLoading(props) {
|
|
|
20
20
|
// can tell the rendering has started even before any dashboard data is loaded.
|
|
21
21
|
// The element is a hidden sibling (same as the gd-dashboard-meta export data),
|
|
22
22
|
// so it cannot affect the layout of the loading indicator.
|
|
23
|
-
return (_jsxs(_Fragment, { children: [exportData ? _jsx("div", { style: { display: "none" }, ...exportData }) : null, _jsx(LoadingComponent, {})
|
|
23
|
+
return (_jsxs(_Fragment, { children: [exportData ? _jsx("div", { style: { display: "none" }, ...exportData }) : null, _jsx(LoadingComponent, { className: "sdk-dashboard-loading s-loading" })
|
|
24
24
|
] }));
|
|
25
25
|
}
|
|
26
26
|
return _jsx(DashboardInner, { ...props });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimezoneOption.d.ts","sourceRoot":"","sources":["../../../src/presentation/dashboardSettingsDialog/TimezoneOption.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAIhD,OAAO,EAAoB,KAAK,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"TimezoneOption.d.ts","sourceRoot":"","sources":["../../../src/presentation/dashboardSettingsDialog/TimezoneOption.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAIhD,OAAO,EAAoB,KAAK,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAWtF,UAAU,oBAAoB;IAC1B,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,EAAE,SAAS,CAAC;IACnB,cAAc,EAAE,wBAAwB,GAAG,SAAS,CAAC;IACrD,QAAQ,EAAE,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;CACtD;AAED,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,EAAE,oBAAoB,2CA2DhG"}
|
|
@@ -3,31 +3,33 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
import { useIntl } from "react-intl";
|
|
5
5
|
import { BROWSER_DETECTED } from "@gooddata/sdk-model";
|
|
6
|
-
import { Bubble, BubbleHoverTrigger, TimezoneSelect,
|
|
7
|
-
import { useDashboardSelector } from "../../model/react/DashboardStoreProvider.js";
|
|
8
|
-
import { selectTimezone } from "../../model/store/config/configSelectors.js";
|
|
6
|
+
import { Bubble, BubbleHoverTrigger, TimezoneSelect, } from "@gooddata/sdk-ui-kit";
|
|
9
7
|
const BUBBLE_ALIGN_POINTS = [{ align: "bc tl" }];
|
|
10
8
|
export function TimezoneOption({ label, tooltip, timezoneConfig, onChange }) {
|
|
11
9
|
const intl = useIntl();
|
|
12
|
-
const workspaceTimezone = useDashboardSelector(selectTimezone);
|
|
13
|
-
const workspaceTimezoneName = getTimezoneDisplayLabel(workspaceTimezone);
|
|
14
10
|
const specialItems = useMemo(() => {
|
|
15
11
|
const workspaceItemLabel = intl.formatMessage({
|
|
16
12
|
id: "settingsDashboardDialog.section.timezone.defaultTimezone.workspace",
|
|
17
|
-
}
|
|
13
|
+
});
|
|
14
|
+
const workspaceItemTooltip = intl.formatMessage({
|
|
15
|
+
id: "settingsDashboardDialog.section.timezone.defaultTimezone.workspace.tooltip",
|
|
16
|
+
});
|
|
18
17
|
const browserItemLabel = intl.formatMessage({
|
|
19
18
|
id: "settingsDashboardDialog.section.timezone.defaultTimezone.fromBrowser",
|
|
20
19
|
});
|
|
20
|
+
const browserItemTooltip = intl.formatMessage({
|
|
21
|
+
id: "settingsDashboardDialog.section.timezone.defaultTimezone.fromBrowser.tooltip",
|
|
22
|
+
});
|
|
21
23
|
return [
|
|
22
|
-
{ id: undefined, label: workspaceItemLabel },
|
|
23
|
-
{ id: BROWSER_DETECTED, label: browserItemLabel },
|
|
24
|
+
{ id: undefined, label: workspaceItemLabel, tooltip: workspaceItemTooltip },
|
|
25
|
+
{ id: BROWSER_DETECTED, label: browserItemLabel, tooltip: browserItemTooltip },
|
|
24
26
|
];
|
|
25
|
-
}, [intl
|
|
27
|
+
}, [intl]);
|
|
26
28
|
return (_jsxs("div", { className: "configuration-category-item", children: [
|
|
27
29
|
_jsxs("span", { className: "input-label-text", children: [label, _jsxs(BubbleHoverTrigger, { showDelay: 0, hideDelay: 0, eventsOnBubble: true, className: "configuration-category-item-tooltip-icon", children: [
|
|
28
30
|
_jsx("span", { className: "gd-icon-circle-question gd-filter-configuration__help-icon" }), _jsx(Bubble, { alignPoints: BUBBLE_ALIGN_POINTS, children: _jsx("div", { className: "gd-filter-configuration__help-tooltip", children: tooltip }) })
|
|
29
31
|
] })
|
|
30
|
-
] }), _jsx(TimezoneSelect, { value: timezoneConfig?.timezoneId, onChange: onChange, specialItems: specialItems, searchPlaceholder: intl.formatMessage({
|
|
32
|
+
] }), _jsx(TimezoneSelect, { value: timezoneConfig?.timezoneId, showTooltip: true, onChange: onChange, specialItems: specialItems, searchPlaceholder: intl.formatMessage({
|
|
31
33
|
id: "settingsDashboardDialog.section.timezone.select.searchPlaceholder",
|
|
32
34
|
}), ariaLabel: intl.formatMessage({
|
|
33
35
|
id: "settingsDashboardDialog.section.timezone.defaultTimezone",
|
|
@@ -447,10 +447,18 @@ export declare const en_US: {
|
|
|
447
447
|
text: string;
|
|
448
448
|
crowdinContext: string;
|
|
449
449
|
};
|
|
450
|
+
"settingsDashboardDialog.section.timezone.defaultTimezone.workspace.tooltip": {
|
|
451
|
+
text: string;
|
|
452
|
+
crowdinContext: string;
|
|
453
|
+
};
|
|
450
454
|
"settingsDashboardDialog.section.timezone.defaultTimezone.fromBrowser": {
|
|
451
455
|
text: string;
|
|
452
456
|
crowdinContext: string;
|
|
453
457
|
};
|
|
458
|
+
"settingsDashboardDialog.section.timezone.defaultTimezone.fromBrowser.tooltip": {
|
|
459
|
+
text: string;
|
|
460
|
+
crowdinContext: string;
|
|
461
|
+
};
|
|
454
462
|
"settingsDashboardDialog.section.timezone.allowUserOverride.toggle": {
|
|
455
463
|
text: string;
|
|
456
464
|
crowdinContext: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en-US.localization-bundle.d.ts","sourceRoot":"","sources":["../../../../src/presentation/localization/bundles/en-US.localization-bundle.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"en-US.localization-bundle.d.ts","sourceRoot":"","sources":["../../../../src/presentation/localization/bundles/en-US.localization-bundle.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6/GjB,CAAC"}
|
|
@@ -438,21 +438,29 @@ export const en_US = {
|
|
|
438
438
|
"crowdinContext": "Section title for time zone settings in the dashboard settings dialog"
|
|
439
439
|
},
|
|
440
440
|
"settingsDashboardDialog.section.timezone.defaultTimezone": {
|
|
441
|
-
"text": "
|
|
441
|
+
"text": "Dashboard time zone",
|
|
442
442
|
"crowdinContext": "Label of the default time zone picker in the dashboard settings dialog"
|
|
443
443
|
},
|
|
444
444
|
"settingsDashboardDialog.section.timezone.defaultTimezone.tooltip": {
|
|
445
|
-
"text": "Time zone used
|
|
445
|
+
"text": "Time zone used for date filters and date values on this dashboard.",
|
|
446
446
|
"crowdinContext": "Tooltip of the default time zone picker in the dashboard settings dialog"
|
|
447
447
|
},
|
|
448
448
|
"settingsDashboardDialog.section.timezone.defaultTimezone.workspace": {
|
|
449
|
-
"text": "
|
|
450
|
-
"crowdinContext": "Time zone picker item meaning the workspace default time zone is used.
|
|
449
|
+
"text": "Default",
|
|
450
|
+
"crowdinContext": "Time zone picker item meaning the workspace default time zone is used."
|
|
451
|
+
},
|
|
452
|
+
"settingsDashboardDialog.section.timezone.defaultTimezone.workspace.tooltip": {
|
|
453
|
+
"text": "Follows the time zone set for your organization, workspace, or user account. It updates automatically if that setting changes.",
|
|
454
|
+
"crowdinContext": "Tooltip of the default time zone picker item in the dashboard settings dialog"
|
|
451
455
|
},
|
|
452
456
|
"settingsDashboardDialog.section.timezone.defaultTimezone.fromBrowser": {
|
|
453
|
-
"text": "
|
|
457
|
+
"text": "Device time zone",
|
|
454
458
|
"crowdinContext": "Time zone picker item meaning the time zone is detected from the viewer's browser."
|
|
455
459
|
},
|
|
460
|
+
"settingsDashboardDialog.section.timezone.defaultTimezone.fromBrowser.tooltip": {
|
|
461
|
+
"text": "Uses the time zone reported by the viewer's browser. Can differ for each viewer.",
|
|
462
|
+
"crowdinContext": "Tooltip of the device time zone picker item in the dashboard settings dialog"
|
|
463
|
+
},
|
|
456
464
|
"settingsDashboardDialog.section.timezone.allowUserOverride.toggle": {
|
|
457
465
|
"text": "Allow users to change the dashboard time zone",
|
|
458
466
|
"crowdinContext": "Toggle allowing dashboard consumers to change the time zone in view mode"
|
|
@@ -482,19 +490,19 @@ export const en_US = {
|
|
|
482
490
|
"crowdinContext": "Title of the dialog for temporarily changing the dashboard time zone in view mode"
|
|
483
491
|
},
|
|
484
492
|
"timezoneDialog.description": {
|
|
485
|
-
"text": "<b>Note:</b> Time zone resets to the default
|
|
486
|
-
"crowdinContext": "Note in the dialog for temporarily changing the dashboard time zone in view mode. The
|
|
493
|
+
"text": "<b>Note:</b> Time zone resets to the default when you reload the page.",
|
|
494
|
+
"crowdinContext": "Note in the dialog for temporarily changing the dashboard time zone in view mode. The <b> tags wrap the 'Note:' label."
|
|
487
495
|
},
|
|
488
496
|
"timezoneDialog.description.ariaLabel": {
|
|
489
497
|
"text": "Change timezone dialog information message",
|
|
490
498
|
"crowdinContext": "Aria label for the change timezone dialog information message"
|
|
491
499
|
},
|
|
492
500
|
"timezoneDialog.default": {
|
|
493
|
-
"text": "Default
|
|
494
|
-
"crowdinContext": "Time zone picker item meaning the dashboard's configured time zone is used.
|
|
501
|
+
"text": "Default",
|
|
502
|
+
"crowdinContext": "Time zone picker item meaning the dashboard's configured time zone is used."
|
|
495
503
|
},
|
|
496
504
|
"timezoneDialog.fromBrowser": {
|
|
497
|
-
"text": "
|
|
505
|
+
"text": "Device time zone ({timezone})",
|
|
498
506
|
"crowdinContext": "Time zone picker item meaning the time zone is detected from the viewer's browser. The {timezone} placeholder shows the detected time zone."
|
|
499
507
|
},
|
|
500
508
|
"timezoneDialog.select.searchPlaceholder": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimezoneDialog.d.ts","sourceRoot":"","sources":["../../../src/presentation/timezoneDialog/TimezoneDialog.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAgD,MAAM,OAAO,CAAC;AAsBxF;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,IAAI,YAAY,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"TimezoneDialog.d.ts","sourceRoot":"","sources":["../../../src/presentation/timezoneDialog/TimezoneDialog.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAgD,MAAM,OAAO,CAAC;AAsBxF;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,IAAI,YAAY,GAAG,IAAI,CAiGpD"}
|
|
@@ -36,9 +36,8 @@ export function TimezoneDialog() {
|
|
|
36
36
|
// timezone so the Default item, description note, and current-time preview share the same
|
|
37
37
|
// concrete ID.
|
|
38
38
|
const defaultTimezoneId = resolveTimezoneId(timezoneConfig?.timezoneId) ?? workspaceTimezone;
|
|
39
|
-
const defaultTimezoneName = defaultTimezoneId ? getTimezoneDisplayLabel(defaultTimezoneId) : undefined;
|
|
40
39
|
const specialItems = useMemo(() => {
|
|
41
|
-
const defaultItemLabel = intl.formatMessage({ id: "timezoneDialog.default" }
|
|
40
|
+
const defaultItemLabel = intl.formatMessage({ id: "timezoneDialog.default" });
|
|
42
41
|
// plain ID here — the label template already brackets the value, so the "id (offset)"
|
|
43
42
|
// display label would produce nested brackets
|
|
44
43
|
const browserTimezoneId = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
@@ -48,7 +47,7 @@ export function TimezoneDialog() {
|
|
|
48
47
|
{ id: undefined, label: defaultItemLabel },
|
|
49
48
|
{ id: BROWSER_DETECTED, label: browserItemLabel },
|
|
50
49
|
];
|
|
51
|
-
}, [intl
|
|
50
|
+
}, [intl]);
|
|
52
51
|
useEffect(() => {
|
|
53
52
|
const timezoneId = resolveTimezoneId(selected) ?? defaultTimezoneId;
|
|
54
53
|
if (timezoneId) {
|
|
@@ -74,7 +73,6 @@ export function TimezoneDialog() {
|
|
|
74
73
|
id: "timezoneDialog.select.searchPlaceholder",
|
|
75
74
|
}), ariaLabel: intl.formatMessage({ id: "timezoneDialog.title" }), noMatchLabel: intl.formatMessage({ id: "timezoneDialog.select.noMatch" }) }), currentTimeOfTimezone ? (_jsx("span", { className: "gd-timezone-dialog-current-time", children: intl.formatMessage({ id: "timezoneDialog.currentTime" }, { time: currentTimeOfTimezone }) })) : null] }), _jsx(Message, { type: "progress", className: "gd-timezone-dialog-description s-timezone-dialog-description", children: _jsx("span", { "aria-label": intl.formatMessage({ id: "timezoneDialog.description.ariaLabel" }), children: _jsx(FormattedMessage, { id: "timezoneDialog.description", values: {
|
|
76
75
|
b: (chunks) => _jsx("strong", { children: chunks }),
|
|
77
|
-
timezone: defaultTimezoneName,
|
|
78
76
|
} }) }) })
|
|
79
77
|
] }));
|
|
80
78
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-dashboard",
|
|
3
|
-
"version": "11.52.0-alpha.
|
|
3
|
+
"version": "11.52.0-alpha.5",
|
|
4
4
|
"description": "GoodData SDK - Dashboard Component",
|
|
5
5
|
"license": "LicenseRef-LICENSE",
|
|
6
6
|
"author": "GoodData Corporation",
|
|
@@ -60,20 +60,20 @@
|
|
|
60
60
|
"ts-invariant": "0.10.3",
|
|
61
61
|
"tslib": "2.8.1",
|
|
62
62
|
"uuid": "11.1.1",
|
|
63
|
-
"@gooddata/sdk-backend-base": "11.52.0-alpha.
|
|
64
|
-
"@gooddata/sdk-backend-spi": "11.52.0-alpha.
|
|
65
|
-
"@gooddata/sdk-
|
|
66
|
-
"@gooddata/sdk-ui
|
|
67
|
-
"@gooddata/sdk-ui-
|
|
68
|
-
"@gooddata/sdk-ui-
|
|
69
|
-
"@gooddata/sdk-
|
|
70
|
-
"@gooddata/sdk-ui-geo": "11.52.0-alpha.
|
|
71
|
-
"@gooddata/sdk-ui-kit": "11.52.0-alpha.
|
|
72
|
-
"@gooddata/sdk-ui-
|
|
73
|
-
"@gooddata/sdk-ui-
|
|
74
|
-
"@gooddata/sdk-ui-
|
|
75
|
-
"@gooddata/sdk-ui-
|
|
76
|
-
"@gooddata/util": "11.52.0-alpha.
|
|
63
|
+
"@gooddata/sdk-backend-base": "11.52.0-alpha.5",
|
|
64
|
+
"@gooddata/sdk-backend-spi": "11.52.0-alpha.5",
|
|
65
|
+
"@gooddata/sdk-model": "11.52.0-alpha.5",
|
|
66
|
+
"@gooddata/sdk-ui": "11.52.0-alpha.5",
|
|
67
|
+
"@gooddata/sdk-ui-charts": "11.52.0-alpha.5",
|
|
68
|
+
"@gooddata/sdk-ui-ext": "11.52.0-alpha.5",
|
|
69
|
+
"@gooddata/sdk-ui-filters": "11.52.0-alpha.5",
|
|
70
|
+
"@gooddata/sdk-ui-geo": "11.52.0-alpha.5",
|
|
71
|
+
"@gooddata/sdk-ui-kit": "11.52.0-alpha.5",
|
|
72
|
+
"@gooddata/sdk-ui-semantic-search": "11.52.0-alpha.5",
|
|
73
|
+
"@gooddata/sdk-ui-pivot": "11.52.0-alpha.5",
|
|
74
|
+
"@gooddata/sdk-ui-theme-provider": "11.52.0-alpha.5",
|
|
75
|
+
"@gooddata/sdk-ui-vis-commons": "11.52.0-alpha.5",
|
|
76
|
+
"@gooddata/util": "11.52.0-alpha.5"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@microsoft/api-documenter": "^7.17.0",
|
|
@@ -119,12 +119,12 @@
|
|
|
119
119
|
"typescript": "5.9.3",
|
|
120
120
|
"vitest": "4.1.8",
|
|
121
121
|
"vitest-dom": "0.1.1",
|
|
122
|
-
"@gooddata/eslint-config": "11.52.0-alpha.
|
|
123
|
-
"@gooddata/
|
|
124
|
-
"@gooddata/
|
|
125
|
-
"@gooddata/reference-workspace": "11.52.0-alpha.
|
|
126
|
-
"@gooddata/
|
|
127
|
-
"@gooddata/
|
|
122
|
+
"@gooddata/eslint-config": "11.52.0-alpha.5",
|
|
123
|
+
"@gooddata/i18n-toolkit": "11.52.0-alpha.5",
|
|
124
|
+
"@gooddata/oxlint-config": "11.52.0-alpha.5",
|
|
125
|
+
"@gooddata/reference-workspace": "11.52.0-alpha.5",
|
|
126
|
+
"@gooddata/sdk-backend-mockingbird": "11.52.0-alpha.5",
|
|
127
|
+
"@gooddata/stylelint-config": "11.52.0-alpha.5"
|
|
128
128
|
},
|
|
129
129
|
"peerDependencies": {
|
|
130
130
|
"react": "^18.0.0 || ^19.0.0",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../node_modules/@gooddata/sdk-ui-kit/styles/scss/mixins.scss","../../node_modules/@gooddata/sdk-ui-kit/styles/scss/Bubble/_variables.scss","../scss/dashboardSettingsDialog.scss","../../node_modules/@gooddata/sdk-ui-kit/styles/scss/variables.scss"],"names":[],"mappings":"AA0HA;AA4DA;ACjLA;AAAA;AAAA;ACAA;EACI;;AAEA;EACI;;AAEA;EACI;;AAIR;EACI;EACA;;AAGJ;EACI;EACA;EACA;EACA,aC8EU;ED7EV,OCMQ;;ADHZ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;EACA;;AAEA;EACI;;AAIR;EACI;;AAEA;EACI;EACA,OCvBO;;AD4BnB;EACI;;AAEA;EACI;EACA;;AAIR;EACI;EACA;EACA;;;AAIR;EACI","file":"dashboardSettingsDialog.css"}
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../node_modules/@gooddata/sdk-ui-kit/styles/scss/mixins.scss","../../node_modules/@gooddata/sdk-ui-kit/styles/scss/Bubble/_variables.scss","../scss/dashboardSettingsDialog.scss","../../node_modules/@gooddata/sdk-ui-kit/styles/scss/variables.scss"],"names":[],"mappings":"AA0HA;AA4DA;ACjLA;AAAA;AAAA;ACAA;EACI;;AAEA;EACI;;AAEA;EACI;;AAIR;EACI;EACA;;AAGJ;EACI;EACA;EACA;EACA,aC8EU;ED7EV,OCMQ;;ADHZ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;EACA;;AAEA;EACI;;AAIR;EACI;;AAEA;EACI;EACA,OCvBO;;AD4BnB;EACI;;AAEA;EACI;EACA;;AAIR;EACI;;AAGJ;EACI;EACA;EACA;;;AAIR;EACI","file":"dashboardSettingsDialog.css"}
|
package/styles/css/main.css
CHANGED
|
@@ -31503,6 +31503,9 @@ figure {
|
|
|
31503
31503
|
display: block;
|
|
31504
31504
|
width: 100%;
|
|
31505
31505
|
}
|
|
31506
|
+
.gd-dashboard-settings-dialog .gd-timezone-select {
|
|
31507
|
+
width: 280px;
|
|
31508
|
+
}
|
|
31506
31509
|
.gd-dashboard-settings-dialog .gd-dashboard-content-wrapper {
|
|
31507
31510
|
margin: 0 -20px;
|
|
31508
31511
|
padding: 0 20px 20px 20px;
|