@gooddata/sdk-ui-dashboard 11.46.0-alpha.4 → 11.46.0-alpha.6
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 +15 -15
- package/esm/__version.d.ts +1 -1
- package/esm/__version.js +1 -1
- package/esm/_staging/dateFilterConfig/validation.d.ts.map +1 -1
- package/esm/_staging/dateFilterConfig/validation.js +2 -15
- package/esm/index.d.ts +2 -2
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +2 -2
- package/esm/model/store/config/configSelectors.d.ts +0 -37
- package/esm/model/store/config/configSelectors.d.ts.map +1 -1
- package/esm/model/store/config/configSelectors.js +1 -50
- package/esm/model/store/executionResults/executionResultsSelectors.d.ts.map +1 -1
- package/esm/model/store/executionResults/executionResultsSelectors.js +1 -2
- package/esm/model/store/widgetExports/widgetExportsSelectors.d.ts +0 -4
- package/esm/model/store/widgetExports/widgetExportsSelectors.d.ts.map +1 -1
- package/esm/model/store/widgetExports/widgetExportsSelectors.js +2 -11
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertFormValidation.d.ts +22 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertFormValidation.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertFormValidation.js +47 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useEditAlert.d.ts +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useEditAlert.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useEditAlert.js +16 -36
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/SlidesTemplateSettings.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/SlidesTemplateSettings.js +9 -4
- package/esm/presentation/dashboardSettingsDialog/DefaultDashboardSettingsDialog.d.ts.map +1 -1
- package/esm/presentation/dashboardSettingsDialog/DefaultDashboardSettingsDialog.js +4 -4
- package/esm/presentation/dialogs/ExportTemplateSelectionDialog/ExportTemplateSelectionDialog.d.ts.map +1 -1
- package/esm/presentation/dialogs/ExportTemplateSelectionDialog/ExportTemplateSelectionDialog.js +9 -4
- package/esm/presentation/filterBar/dateFilter/DefaultDashboardDateFilter.d.ts.map +1 -1
- package/esm/presentation/filterBar/dateFilter/DefaultDashboardDateFilter.js +4 -5
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js +1 -12
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.js +1 -2
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +0 -12
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-US.localization-bundle.js +0 -12
- package/esm/presentation/widget/common/useInsightExport.js +3 -2
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialog.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialog.js +2 -4
- package/esm/sdk-ui-dashboard.d.ts +0 -41
- package/package.json +21 -21
- package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlay.d.ts +0 -10
- package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlay.d.ts.map +0 -1
- package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlay.js +0 -51
- package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlayController.d.ts +0 -7
- package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlayController.d.ts.map +0 -1
- package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlayController.js +0 -16
package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialog.js
CHANGED
|
@@ -5,7 +5,7 @@ import cx from "classnames";
|
|
|
5
5
|
import { FormattedMessage, defineMessages, useIntl } from "react-intl";
|
|
6
6
|
import { Bubble, BubbleHoverTrigger, Button, DialogBase, ShortenedText, Typography, UiAutofocus, UiButton, useId, } from "@gooddata/sdk-ui-kit";
|
|
7
7
|
import { useDashboardSelector } from "../../../../../model/react/DashboardStoreProvider.js";
|
|
8
|
-
import {
|
|
8
|
+
import { selectSettings } from "../../../../../model/store/config/configSelectors.js";
|
|
9
9
|
import { selectCanExportTabular } from "../../../../../model/store/permissions/permissionsSelectors.js";
|
|
10
10
|
import { DrillDialogExportDropdownResolver } from "./DrillDialogExportDropdownResolver.js";
|
|
11
11
|
import { getTitleWithBreadcrumbs } from "./getTitleWithBreadcrumbs.js";
|
|
@@ -22,7 +22,6 @@ const messages = defineMessages({
|
|
|
22
22
|
export function DrillDialog({ insight, widget, insightTitle, breadcrumbs, onCloseDialog, onBackButtonClick, isBackButtonVisible, children, enableDrillDescription, exportAvailable, exportXLSXEnabled, exportCSVEnabled, exportCSVRawEnabled, exportPDFEnabled, exportPDFVisible, onExportCSV, onExportXLSX, onExportCSVRaw, onExportPDF, isLoading, isExporting, isExportRawVisible, accessibilityConfig = {}, initialFocus, isShowAsTableVisible, isWidgetAsTable, onShowAsTable, focusCheckFn, }) {
|
|
23
23
|
const [announcementText, setAnnouncementText] = useState("");
|
|
24
24
|
const canExport = useDashboardSelector(selectCanExportTabular);
|
|
25
|
-
const enablePdfTabularExport = useDashboardSelector(selectEnableExportToPdfTabular);
|
|
26
25
|
const settings = useDashboardSelector(selectSettings);
|
|
27
26
|
const isAccessibilityModeEnabled = settings.enableAccessibilityMode === true;
|
|
28
27
|
const titleWithBreadcrumbs = getTitleWithBreadcrumbs(insightTitle, breadcrumbs);
|
|
@@ -49,7 +48,6 @@ export function DrillDialog({ insight, widget, insightTitle, breadcrumbs, onClos
|
|
|
49
48
|
] })) : null, _jsx(Typography, { tagName: "h3", className: "gd-drill-title s-drill-title", id: titleElementId, children: _jsx(ShortenedText, { tooltipAlignPoints: tooltipAlignPoints, tooltipVisibleOnMouseOver: false, children: titleWithBreadcrumbs }) })
|
|
50
49
|
] }), _jsx("div", { className: cx("gd-drill-modal-dialog-content visualization", {
|
|
51
50
|
"gd-ff-drill-description": enableDrillDescription,
|
|
52
|
-
}), children: _jsx("div", { className: "gd-drill-modal-dialog-content-base", children: children }) }), canExport || isShowAsTableVisible ? (_jsxs("div", { className: "gd-drill-modal-dialog-footer gd-drill-modal-dialog-footer-with-border s-drill-modal-dialog-footer", children: [isShowAsTableVisible ? (_jsx(UiButton, { variant: "tertiary", onClick: handleShowAsTableClick, iconBefore: isWidgetAsTable ? "visualization" : "table", label: formatMessage(showAsTableButtonMessage) })) : null, canExport ? (_jsx(DrillDialogExportDropdownResolver, { insight: insight, widget: widget, exportAvailable: exportAvailable, exportXLSXEnabled: exportXLSXEnabled, exportCSVEnabled: exportCSVEnabled, exportCSVRawEnabled: exportCSVRawEnabled, exportPDFEnabled: exportPDFEnabled, exportPDFVisible: exportPDFVisible ||
|
|
53
|
-
(isWidgetAsTable && enablePdfTabularExport && !isAccessibilityModeEnabled), onExportXLSX: onExportXLSX, onExportCSV: onExportCSV, onExportCSVRaw: onExportCSVRaw, onExportPDF: onExportPDF, isLoading: isLoading, isExporting: isExporting, isExportRawVisible: isExportRawVisible })) : null] })) : null, _jsx("div", { className: "sr-only", "aria-live": "polite", "aria-atomic": "true", role: "status", children: announcementText })
|
|
51
|
+
}), children: _jsx("div", { className: "gd-drill-modal-dialog-content-base", children: children }) }), canExport || isShowAsTableVisible ? (_jsxs("div", { className: "gd-drill-modal-dialog-footer gd-drill-modal-dialog-footer-with-border s-drill-modal-dialog-footer", children: [isShowAsTableVisible ? (_jsx(UiButton, { variant: "tertiary", onClick: handleShowAsTableClick, iconBefore: isWidgetAsTable ? "visualization" : "table", label: formatMessage(showAsTableButtonMessage) })) : null, canExport ? (_jsx(DrillDialogExportDropdownResolver, { insight: insight, widget: widget, exportAvailable: exportAvailable, exportXLSXEnabled: exportXLSXEnabled, exportCSVEnabled: exportCSVEnabled, exportCSVRawEnabled: exportCSVRawEnabled, exportPDFEnabled: exportPDFEnabled, exportPDFVisible: exportPDFVisible || (isWidgetAsTable && !isAccessibilityModeEnabled), onExportXLSX: onExportXLSX, onExportCSV: onExportCSV, onExportCSVRaw: onExportCSVRaw, onExportPDF: onExportPDF, isLoading: isLoading, isExporting: isExporting, isExportRawVisible: isExportRawVisible })) : null] })) : null, _jsx("div", { className: "sr-only", "aria-live": "polite", "aria-atomic": "true", role: "status", children: announcementText })
|
|
54
52
|
] }) }));
|
|
55
53
|
}
|
|
@@ -23774,13 +23774,6 @@ export declare const selectEffectiveParameterValuesForWidget: (ref: ObjRef | und
|
|
|
23774
23774
|
*/
|
|
23775
23775
|
export declare const selectEnableAccessibilityMode: DashboardSelector<boolean>;
|
|
23776
23776
|
|
|
23777
|
-
/**
|
|
23778
|
-
* Returns whether filter views are enabled.
|
|
23779
|
-
*
|
|
23780
|
-
* @internal
|
|
23781
|
-
*/
|
|
23782
|
-
export declare const selectEnableAlertsEvaluationFrequencySetup: DashboardSelector<boolean>;
|
|
23783
|
-
|
|
23784
23777
|
/**
|
|
23785
23778
|
* Returns whether anomaly detection alert is enabled.
|
|
23786
23779
|
*
|
|
@@ -23795,14 +23788,6 @@ export declare const selectEnableAnomalyDetectionAlert: DashboardSelector<boolea
|
|
|
23795
23788
|
*/
|
|
23796
23789
|
export declare const selectEnableAutomationEvaluationMode: DashboardSelector<boolean>;
|
|
23797
23790
|
|
|
23798
|
-
/**
|
|
23799
|
-
* Returns whether customized dashboards without plugin overlay are enabled.
|
|
23800
|
-
* When enabled, the plugin overlay will not be displayed on dashboard items.
|
|
23801
|
-
*
|
|
23802
|
-
* @internal
|
|
23803
|
-
*/
|
|
23804
|
-
export declare const selectEnableCustomizedDashboardsWithoutPluginOverlay: DashboardSelector<boolean>;
|
|
23805
|
-
|
|
23806
23791
|
/**
|
|
23807
23792
|
* Returns whether the dashboard density setting is enabled.
|
|
23808
23793
|
*
|
|
@@ -23838,13 +23823,6 @@ export declare const selectEnableDashboardSectionHeadersDateDataSet: DashboardSe
|
|
|
23838
23823
|
*/
|
|
23839
23824
|
export declare const selectEnableDashboardShareDialogLink: DashboardSelector<boolean>;
|
|
23840
23825
|
|
|
23841
|
-
/**
|
|
23842
|
-
* Selector for the dashboard share link feature flag
|
|
23843
|
-
*
|
|
23844
|
-
* @internal
|
|
23845
|
-
*/
|
|
23846
|
-
export declare const selectEnableDashboardShareLink: DashboardSelector<boolean>;
|
|
23847
|
-
|
|
23848
23826
|
/**
|
|
23849
23827
|
*
|
|
23850
23828
|
*
|
|
@@ -23871,13 +23849,6 @@ export declare const selectEnableExportTimeoutFix: DashboardSelector<boolean>;
|
|
|
23871
23849
|
*/
|
|
23872
23850
|
export declare const selectEnableExportToDocumentStorage: DashboardSelector<boolean>;
|
|
23873
23851
|
|
|
23874
|
-
/**
|
|
23875
|
-
* Selector for the export to PDF tabular
|
|
23876
|
-
*
|
|
23877
|
-
* @internal
|
|
23878
|
-
*/
|
|
23879
|
-
export declare const selectEnableExportToPdfTabular: DashboardSelector<boolean>;
|
|
23880
|
-
|
|
23881
23852
|
/**
|
|
23882
23853
|
* Returns whether filter control in drilling configuration is enabled.
|
|
23883
23854
|
*
|
|
@@ -23913,13 +23884,6 @@ export declare const selectEnableImmediateAttributeFilterDisplayAsLabelMigration
|
|
|
23913
23884
|
*/
|
|
23914
23885
|
export declare const selectEnableKDDependentFilters: DashboardSelector<boolean>;
|
|
23915
23886
|
|
|
23916
|
-
/**
|
|
23917
|
-
* Selector for enabling empty date values configuration in KPI Dashboards date filter.
|
|
23918
|
-
*
|
|
23919
|
-
* @alpha
|
|
23920
|
-
*/
|
|
23921
|
-
export declare const selectEnableKDEmptyDateValuesFilter: DashboardSelector<boolean>;
|
|
23922
|
-
|
|
23923
23887
|
/**
|
|
23924
23888
|
* Returns whether measure value (numeric) filter is enabled in dashboards.
|
|
23925
23889
|
*
|
|
@@ -24983,11 +24947,6 @@ export declare const selectIsExport: DashboardSelector<boolean>;
|
|
|
24983
24947
|
*/
|
|
24984
24948
|
export declare const selectIsExportableToCSV: DashboardSelector<boolean>;
|
|
24985
24949
|
|
|
24986
|
-
/**
|
|
24987
|
-
* @internal
|
|
24988
|
-
*/
|
|
24989
|
-
export declare const selectIsExportableToPdfTabular: DashboardSelector<boolean>;
|
|
24990
|
-
|
|
24991
24950
|
/**
|
|
24992
24951
|
* @internal
|
|
24993
24952
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-dashboard",
|
|
3
|
-
"version": "11.46.0-alpha.
|
|
3
|
+
"version": "11.46.0-alpha.6",
|
|
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-
|
|
64
|
-
"@gooddata/sdk-model": "11.46.0-alpha.
|
|
65
|
-
"@gooddata/sdk-backend-
|
|
66
|
-
"@gooddata/sdk-ui": "11.46.0-alpha.
|
|
67
|
-
"@gooddata/sdk-ui-charts": "11.46.0-alpha.
|
|
68
|
-
"@gooddata/sdk-ui-
|
|
69
|
-
"@gooddata/sdk-ui-
|
|
70
|
-
"@gooddata/sdk-ui-
|
|
71
|
-
"@gooddata/sdk-ui-
|
|
72
|
-
"@gooddata/sdk-ui-
|
|
73
|
-
"@gooddata/sdk-ui-
|
|
74
|
-
"@gooddata/
|
|
75
|
-
"@gooddata/sdk-ui-
|
|
76
|
-
"@gooddata/
|
|
63
|
+
"@gooddata/sdk-backend-base": "11.46.0-alpha.6",
|
|
64
|
+
"@gooddata/sdk-model": "11.46.0-alpha.6",
|
|
65
|
+
"@gooddata/sdk-backend-spi": "11.46.0-alpha.6",
|
|
66
|
+
"@gooddata/sdk-ui": "11.46.0-alpha.6",
|
|
67
|
+
"@gooddata/sdk-ui-charts": "11.46.0-alpha.6",
|
|
68
|
+
"@gooddata/sdk-ui-geo": "11.46.0-alpha.6",
|
|
69
|
+
"@gooddata/sdk-ui-ext": "11.46.0-alpha.6",
|
|
70
|
+
"@gooddata/sdk-ui-filters": "11.46.0-alpha.6",
|
|
71
|
+
"@gooddata/sdk-ui-semantic-search": "11.46.0-alpha.6",
|
|
72
|
+
"@gooddata/sdk-ui-theme-provider": "11.46.0-alpha.6",
|
|
73
|
+
"@gooddata/sdk-ui-vis-commons": "11.46.0-alpha.6",
|
|
74
|
+
"@gooddata/util": "11.46.0-alpha.6",
|
|
75
|
+
"@gooddata/sdk-ui-pivot": "11.46.0-alpha.6",
|
|
76
|
+
"@gooddata/sdk-ui-kit": "11.46.0-alpha.6"
|
|
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.46.0-alpha.
|
|
123
|
-
"@gooddata/i18n-toolkit": "11.46.0-alpha.
|
|
124
|
-
"@gooddata/reference-workspace": "11.46.0-alpha.
|
|
125
|
-
"@gooddata/oxlint-config": "11.46.0-alpha.
|
|
126
|
-
"@gooddata/
|
|
127
|
-
"@gooddata/
|
|
122
|
+
"@gooddata/eslint-config": "11.46.0-alpha.6",
|
|
123
|
+
"@gooddata/i18n-toolkit": "11.46.0-alpha.6",
|
|
124
|
+
"@gooddata/reference-workspace": "11.46.0-alpha.6",
|
|
125
|
+
"@gooddata/oxlint-config": "11.46.0-alpha.6",
|
|
126
|
+
"@gooddata/sdk-backend-mockingbird": "11.46.0-alpha.6",
|
|
127
|
+
"@gooddata/stylelint-config": "11.46.0-alpha.6"
|
|
128
128
|
},
|
|
129
129
|
"peerDependencies": {
|
|
130
130
|
"react": "^18.0.0 || ^19.0.0",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type IDashboardWidgetOverlay } from "../../../model/types/commonTypes.js";
|
|
2
|
-
type DashboardItemOverlayProps = {
|
|
3
|
-
render?: boolean;
|
|
4
|
-
type: "row" | "column";
|
|
5
|
-
modifications: Required<IDashboardWidgetOverlay>["modification"][];
|
|
6
|
-
onHide?: () => void;
|
|
7
|
-
};
|
|
8
|
-
export declare function DashboardItemOverlay({ render, type, modifications, onHide }: DashboardItemOverlayProps): import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=DashboardItemOverlay.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardItemOverlay.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlay.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAOnF,KAAK,yBAAyB,GAAG;IAC7B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,KAAK,GAAG,QAAQ,CAAC;IACvB,aAAa,EAAE,QAAQ,CAAC,uBAAuB,CAAC,CAAC,cAAc,CAAC,EAAE,CAAC;IACnE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,yBAAyB,kDA8CtG"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2020-2026 GoodData Corporation
|
|
3
|
-
import { useState } from "react";
|
|
4
|
-
import classNames from "classnames";
|
|
5
|
-
import { defaultImport } from "default-import";
|
|
6
|
-
import { FormattedMessage, useIntl } from "react-intl";
|
|
7
|
-
import DefaultMeasure from "react-measure";
|
|
8
|
-
import { Button } from "@gooddata/sdk-ui-kit";
|
|
9
|
-
import { useTheme } from "@gooddata/sdk-ui-theme-provider";
|
|
10
|
-
import { useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
|
|
11
|
-
import { selectEnableCustomizedDashboardsWithoutPluginOverlay } from "../../../model/store/config/configSelectors.js";
|
|
12
|
-
// There are known compatibility issues between CommonJS (CJS) and ECMAScript modules (ESM).
|
|
13
|
-
// In ESM, default exports of CJS modules are wrapped in default properties instead of being exposed directly.
|
|
14
|
-
// https://github.com/microsoft/TypeScript/issues/52086#issuecomment-1385978414
|
|
15
|
-
const Measure = defaultImport(DefaultMeasure);
|
|
16
|
-
export function DashboardItemOverlay({ render, type, modifications, onHide }) {
|
|
17
|
-
const intl = useIntl();
|
|
18
|
-
const added = modifications.includes("insertedByPlugin");
|
|
19
|
-
const modified = modifications.includes("modifiedByPlugin");
|
|
20
|
-
const isOverlayDisabled = useDashboardSelector(selectEnableCustomizedDashboardsWithoutPluginOverlay);
|
|
21
|
-
const theme = useTheme();
|
|
22
|
-
const [size, setSize] = useState("none");
|
|
23
|
-
const [height, setHeight] = useState(0);
|
|
24
|
-
const classes = classNames("gd-fluidlayout-item-changed", {
|
|
25
|
-
[type]: true,
|
|
26
|
-
[size]: true,
|
|
27
|
-
added: added,
|
|
28
|
-
modified: modified,
|
|
29
|
-
});
|
|
30
|
-
const show = render && (added || modified) && !isOverlayDisabled;
|
|
31
|
-
return show ? (_jsx(Measure, { client: true, onResize: (data) => {
|
|
32
|
-
if (data.client) {
|
|
33
|
-
setSize(data.client.height < 100 ? "small" : "big");
|
|
34
|
-
setHeight(data.client.height);
|
|
35
|
-
}
|
|
36
|
-
}, children: ({ measureRef }) => (_jsx("div", { className: classes, ref: measureRef, children: _jsxs("div", { className: "gd-fluidlayout-item-changed-content", children: [
|
|
37
|
-
_jsx("div", { className: "gd-fluidlayout-item-changed-icon", style: height ? { height } : {}, children: _jsx(PluginIcon, { color: theme?.palette?.complementary?.c7 }) }), _jsx("div", { className: "gd-fluidlayout-item-changed-info", children: _jsx(DashboardItemOverlayInfo, { added: added, modified: modified }) }), _jsx(Button, { className: "gd-button gd-button-link", value: intl.formatMessage({ id: "layout.widget.hideOverlay" }), onClick: onHide })
|
|
38
|
-
] }) })) })) : null;
|
|
39
|
-
}
|
|
40
|
-
function DashboardItemOverlayInfo({ added, modified }) {
|
|
41
|
-
if (added) {
|
|
42
|
-
return _jsx(FormattedMessage, { id: "layout.widget.addedByPlugin" });
|
|
43
|
-
}
|
|
44
|
-
if (modified) {
|
|
45
|
-
return _jsx(FormattedMessage, { id: "layout.widget.modifiedByPlugin" });
|
|
46
|
-
}
|
|
47
|
-
return null;
|
|
48
|
-
}
|
|
49
|
-
function PluginIcon({ color }) {
|
|
50
|
-
return (_jsx("svg", { width: "29", height: "35", viewBox: "0 0 29 35", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M15.6264 2.50847C14.8954 2.26481 14.1052 2.26481 13.3742 2.50847L13.2559 2.54788C11.124 3.25852 10.1752 5.74192 11.2901 7.69306L11.8345 8.64571C12.6873 10.1381 11.3879 11.9409 9.70247 11.6038L2.30263 10.1238C2.16491 10.0963 2.03641 10.2016 2.03641 10.342V32.3544C2.03641 32.4773 2.13606 32.577 2.25898 32.577H25.7456C25.859 32.577 25.9543 32.4917 25.9668 32.379L26.7587 25.2513C26.7776 25.0818 26.6066 24.955 26.4499 25.0222L23.9499 26.0936C21.5157 27.1368 18.6851 26.2215 17.3226 23.9506C16.3163 22.2735 16.3163 20.1783 17.3226 18.5012C18.6851 16.2303 21.5157 15.315 23.9499 16.3582L26.4499 17.4296C26.6066 17.4968 26.7776 17.37 26.7587 17.2005L25.9937 10.3154C25.9791 10.1838 25.8535 10.0939 25.7242 10.1227L19.3749 11.5336C17.6773 11.9109 16.3383 10.0943 17.2011 8.58438L17.7105 7.69306C18.8254 5.74192 17.8766 3.25852 15.7447 2.54788L15.6264 2.50847ZM12.8111 0.819283C13.9076 0.453794 15.093 0.453794 16.1895 0.819283L16.3077 0.858699C19.5056 1.92465 20.9288 5.64975 19.2564 8.57646L18.7471 9.46779C18.6512 9.63555 18.8 9.8374 18.9886 9.79548L25.338 8.38451C26.5014 8.12598 27.6318 8.93425 27.7634 10.1187L28.5284 17.0039C28.6979 18.5293 27.1592 19.6708 25.7485 19.0662L23.2485 17.9948C21.6327 17.3024 19.7538 17.9099 18.8494 19.4173C18.1815 20.5305 18.1815 21.9213 18.8494 23.0345C19.7538 24.5419 21.6327 25.1495 23.2485 24.457L25.7485 23.3856C27.1592 22.781 28.6979 23.9225 28.5284 25.448L27.7364 32.5756C27.6237 33.59 26.7663 34.3575 25.7456 34.3575H2.25898C1.15269 34.3575 0.255859 33.4607 0.255859 32.3544V10.342C0.255859 9.07798 1.41231 8.12991 2.65183 8.37782L10.0517 9.85778C10.2389 9.89524 10.3833 9.69493 10.2886 9.52911L9.74419 8.57646C8.07178 5.64975 9.49501 1.92465 12.6929 0.858699L12.8111 0.819283Z", fill: color ?? "#687581" }) }));
|
|
51
|
-
}
|
package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlayController.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type IDashboardLayoutSectionFacade } from "../../../_staging/dashboard/flexibleLayout/facade/interfaces.js";
|
|
2
|
-
interface IDashboardLayoutSectionOverlayControllerProps {
|
|
3
|
-
section: IDashboardLayoutSectionFacade<unknown>;
|
|
4
|
-
}
|
|
5
|
-
export declare function DashboardLayoutSectionOverlayController({ section }: IDashboardLayoutSectionOverlayControllerProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export {};
|
|
7
|
-
//# sourceMappingURL=DashboardItemOverlayController.d.ts.map
|
package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlayController.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardItemOverlayController.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlayController.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,iEAAiE,CAAC;AAQrH,UAAU,6CAA6C;IACnD,OAAO,EAAE,6BAA6B,CAAC,OAAO,CAAC,CAAC;CACnD;AAED,wBAAgB,uCAAuC,CAAC,EACpD,OAAO,EACV,EAAE,6CAA6C,2CAqB/C"}
|
package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlayController.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useDashboardDispatch, useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
|
|
3
|
-
import { uiActions } from "../../../model/store/ui/index.js";
|
|
4
|
-
import { selectSectionModification, selectWidgetsOverlayState } from "../../../model/store/ui/uiSelectors.js";
|
|
5
|
-
import { getRefsForSection } from "../refs.js";
|
|
6
|
-
import { DashboardItemOverlay } from "./DashboardItemOverlay.js";
|
|
7
|
-
export function DashboardLayoutSectionOverlayController({ section, }) {
|
|
8
|
-
const dispatch = useDashboardDispatch();
|
|
9
|
-
const refs = getRefsForSection(section);
|
|
10
|
-
const overlayShow = useDashboardSelector(selectWidgetsOverlayState(refs));
|
|
11
|
-
const sectionModifications = useDashboardSelector(selectSectionModification(refs));
|
|
12
|
-
return (_jsx(DashboardItemOverlay, { type: "column", onHide: () => dispatch(uiActions.toggleWidgetsOverlay({
|
|
13
|
-
refs: section.items().map((item) => item.ref()),
|
|
14
|
-
visible: false,
|
|
15
|
-
})), render: overlayShow, modifications: sectionModifications }));
|
|
16
|
-
}
|