@gooddata/sdk-ui-dashboard 11.53.0-alpha.2 → 11.53.0-alpha.4
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 +6 -6
- package/esm/__version.d.ts +1 -1
- package/esm/__version.js +1 -1
- package/esm/index.d.ts +4 -3
- package/esm/index.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogFilters.d.ts +8 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogFilters.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/AlertingDialogFilters.js +13 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +14 -3
- package/esm/presentation/automations/alerting/types.d.ts +26 -1
- package/esm/presentation/automations/alerting/types.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts +2 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +27 -3
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogFilters.d.ts +7 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogFilters.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/ScheduledEmailDialogFilters.js +11 -0
- package/esm/presentation/automations/scheduledEmail/types.d.ts +89 -3
- package/esm/presentation/automations/scheduledEmail/types.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/automationParameters.d.ts +17 -1
- package/esm/presentation/automations/shared/automationFilters/automationParameters.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/useAutomationFilters.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/useAutomationFilters.js +7 -51
- package/esm/presentation/automations/shared/automationFilters/utils.d.ts +21 -0
- package/esm/presentation/automations/shared/automationFilters/utils.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/utils.js +57 -0
- package/esm/presentation/automations/shared/slots/types.d.ts +42 -0
- package/esm/presentation/automations/shared/slots/types.d.ts.map +1 -1
- package/esm/presentation/dashboardSettingsDialog/DefaultDashboardSettingsDialog.d.ts.map +1 -1
- package/esm/presentation/dashboardSettingsDialog/DefaultDashboardSettingsDialog.js +4 -4
- package/esm/sdk-ui-dashboard.d.ts +188 -2
- package/package.json +21 -21
|
@@ -26,6 +26,7 @@ import { DashboardAttributeFilterSelectionMode } from '@gooddata/sdk-model';
|
|
|
26
26
|
import { DashboardAttributeFilterSelectionType } from '@gooddata/sdk-model';
|
|
27
27
|
import { DashboardDateFilterConfigMode } from '@gooddata/sdk-model';
|
|
28
28
|
import { DashboardFiltersApplyMode } from '@gooddata/sdk-model';
|
|
29
|
+
import { DashboardParameterMode } from '@gooddata/sdk-model';
|
|
29
30
|
import { DashboardSummaryWorkflowStatus } from '@gooddata/sdk-backend-spi';
|
|
30
31
|
import { DashboardTextAttributeFilter } from '@gooddata/sdk-model';
|
|
31
32
|
import { DataViewFacade } from '@gooddata/sdk-ui';
|
|
@@ -167,6 +168,7 @@ import { INotificationChannelMetadataObjectBase } from '@gooddata/sdk-model';
|
|
|
167
168
|
import { InsightDisplayFormUsage } from '@gooddata/sdk-model';
|
|
168
169
|
import { InsightDrillDefinition } from '@gooddata/sdk-model';
|
|
169
170
|
import { IntlShape } from 'react-intl';
|
|
171
|
+
import { IParameterDefinition } from '@gooddata/sdk-model';
|
|
170
172
|
import { IParameterMetadataObject } from '@gooddata/sdk-model';
|
|
171
173
|
import { IPositiveAttributeFilter } from '@gooddata/sdk-model';
|
|
172
174
|
import { IPushData } from '@gooddata/sdk-ui';
|
|
@@ -4123,7 +4125,8 @@ export declare function DefaultSaveButton({ isVisible, isEnabled, isSaving, butt
|
|
|
4123
4125
|
* outside those providers throws at runtime.
|
|
4124
4126
|
*
|
|
4125
4127
|
* Slots render only in the fully rendered dialog: not while the dialog context reports loading,
|
|
4126
|
-
* and not while the stale-filters confirmation step is shown.
|
|
4128
|
+
* and not while the stale-filters confirmation step is shown. The Filters slot additionally
|
|
4129
|
+
* renders only while the Filters tab is selected — see {@link IScheduledEmailDialogSlots.Filters}.
|
|
4127
4130
|
*
|
|
4128
4131
|
* @alpha
|
|
4129
4132
|
*/
|
|
@@ -5762,6 +5765,20 @@ export declare interface IAlertingDialogContextValue {
|
|
|
5762
5765
|
isLoading: boolean;
|
|
5763
5766
|
}
|
|
5764
5767
|
|
|
5768
|
+
/**
|
|
5769
|
+
* Props of the default alerting dialog's filters region (the filter and parameter chips above
|
|
5770
|
+
* the form).
|
|
5771
|
+
*
|
|
5772
|
+
* @alpha
|
|
5773
|
+
*/
|
|
5774
|
+
export declare interface IAlertingDialogFiltersProps extends IAutomationDialogFiltersProps {
|
|
5775
|
+
/**
|
|
5776
|
+
* Disables the date filter chips. The default dialog disables them while the alert uses
|
|
5777
|
+
* anomaly detection.
|
|
5778
|
+
*/
|
|
5779
|
+
disableDateFilters: boolean;
|
|
5780
|
+
}
|
|
5781
|
+
|
|
5765
5782
|
/**
|
|
5766
5783
|
* Props of the default alerting dialog's header region (the title input row).
|
|
5767
5784
|
*
|
|
@@ -5857,6 +5874,18 @@ export declare interface IAlertingDialogSlots {
|
|
|
5857
5874
|
* identity — see {@link ISlotProps}.
|
|
5858
5875
|
*/
|
|
5859
5876
|
Header?: ComponentType<ISlotProps<AlertingDialogHeaderDefaultProps>>;
|
|
5877
|
+
/**
|
|
5878
|
+
* Wraps or replaces the dialog's filters region (the filter and parameter chips). Must have
|
|
5879
|
+
* a stable reference identity — see {@link ISlotProps}.
|
|
5880
|
+
*
|
|
5881
|
+
* Renders only in the fully rendered dialog: not while the dialog context reports loading,
|
|
5882
|
+
* and not while the stale-filters confirmation step is shown.
|
|
5883
|
+
*
|
|
5884
|
+
* A replacement takes over computing the next filters array: `defaultProps.onFiltersChange`
|
|
5885
|
+
* expects the complete selection, so change/remove/add gestures must submit the whole
|
|
5886
|
+
* updated array, not a delta.
|
|
5887
|
+
*/
|
|
5888
|
+
Filters?: ComponentType<ISlotProps<IAlertingDialogFiltersProps>>;
|
|
5860
5889
|
}
|
|
5861
5890
|
|
|
5862
5891
|
/**
|
|
@@ -6097,6 +6126,47 @@ export declare interface IAttributesDropdownProps extends IDashboardAttributeFil
|
|
|
6097
6126
|
onParameterSelect?: (ref: IdentifierRef) => void;
|
|
6098
6127
|
}
|
|
6099
6128
|
|
|
6129
|
+
/**
|
|
6130
|
+
* Members shared by both automation dialogs' filters regions.
|
|
6131
|
+
*
|
|
6132
|
+
* @alpha
|
|
6133
|
+
*/
|
|
6134
|
+
export declare interface IAutomationDialogFiltersProps {
|
|
6135
|
+
/**
|
|
6136
|
+
* All filters the automation could select from.
|
|
6137
|
+
*/
|
|
6138
|
+
availableFilters: FilterContextItem[] | undefined;
|
|
6139
|
+
/**
|
|
6140
|
+
* The automation's current filter selection.
|
|
6141
|
+
*/
|
|
6142
|
+
selectedFilters: FilterContextItem[];
|
|
6143
|
+
/**
|
|
6144
|
+
* Replaces the selection with the complete updated array. The dialog state applies it
|
|
6145
|
+
* wholesale — change/remove/add gestures must submit the whole array, not a delta.
|
|
6146
|
+
*/
|
|
6147
|
+
onFiltersChange: (filters: FilterContextItem[]) => void;
|
|
6148
|
+
/**
|
|
6149
|
+
* Parameter chips to render. Empty or undefined while the `enableParameters` feature is off.
|
|
6150
|
+
*/
|
|
6151
|
+
parameters?: IAutomationParameter[];
|
|
6152
|
+
/**
|
|
6153
|
+
* Workspace parameters addable via the "+" menu.
|
|
6154
|
+
*/
|
|
6155
|
+
availableParameters?: IAutomationParameter[];
|
|
6156
|
+
/**
|
|
6157
|
+
* Called when a parameter is added from the "+" menu.
|
|
6158
|
+
*/
|
|
6159
|
+
onParameterAdd: (ref: IdentifierRef) => void;
|
|
6160
|
+
/**
|
|
6161
|
+
* Called when a parameter chip's value is edited.
|
|
6162
|
+
*/
|
|
6163
|
+
onParameterChange: (ref: IdentifierRef, value: ParameterValue) => void;
|
|
6164
|
+
/**
|
|
6165
|
+
* Called when a parameter chip is removed.
|
|
6166
|
+
*/
|
|
6167
|
+
onParameterDelete: (ref: IdentifierRef) => void;
|
|
6168
|
+
}
|
|
6169
|
+
|
|
6100
6170
|
/**
|
|
6101
6171
|
* Members shared by both automation dialogs' header regions.
|
|
6102
6172
|
*
|
|
@@ -6161,6 +6231,37 @@ export declare interface IAutomationFiltersTab {
|
|
|
6161
6231
|
hiddenFilters: FilterContextItem[];
|
|
6162
6232
|
}
|
|
6163
6233
|
|
|
6234
|
+
/**
|
|
6235
|
+
* A workspace parameter resolved for display and editing inside an automation (alert/schedule)
|
|
6236
|
+
* dialog. The `value` is the current effective value the headless run will capture; `definition`
|
|
6237
|
+
* picks which control renders.
|
|
6238
|
+
*
|
|
6239
|
+
* @alpha
|
|
6240
|
+
*/
|
|
6241
|
+
export declare interface IAutomationParameter {
|
|
6242
|
+
/**
|
|
6243
|
+
* Reference to the workspace parameter this row represents.
|
|
6244
|
+
*/
|
|
6245
|
+
ref: IdentifierRef;
|
|
6246
|
+
/**
|
|
6247
|
+
* Title shown on the parameter chip: the dashboard-level label when the dashboard defines one,
|
|
6248
|
+
* otherwise the workspace parameter's title, otherwise the identifier.
|
|
6249
|
+
*/
|
|
6250
|
+
title: string;
|
|
6251
|
+
/**
|
|
6252
|
+
* The current effective value — the value a headless run of the automation will capture.
|
|
6253
|
+
*/
|
|
6254
|
+
value: ParameterValue;
|
|
6255
|
+
/**
|
|
6256
|
+
* Dashboard-level mode of the parameter, controlling whether its chip is editable in the dialog.
|
|
6257
|
+
*/
|
|
6258
|
+
mode: DashboardParameterMode;
|
|
6259
|
+
/**
|
|
6260
|
+
* Resolved definition of the parameter; determines which editing control the chip renders.
|
|
6261
|
+
*/
|
|
6262
|
+
definition: IParameterDefinition;
|
|
6263
|
+
}
|
|
6264
|
+
|
|
6164
6265
|
/**
|
|
6165
6266
|
* Main context shared across all automation dialogs.
|
|
6166
6267
|
* Only fields actively consumed by migrated leaves are listed here — add fields as each leaf migrates.
|
|
@@ -12913,7 +13014,9 @@ export declare interface IDefaultDashboardToolbarGroupProps {
|
|
|
12913
13014
|
* @remarks
|
|
12914
13015
|
* Extends the shared {@link IScheduledEmailDialogProps} with customization only the default implementation
|
|
12915
13016
|
* supports. Slots render only in the fully rendered dialog: not while the dialog context reports
|
|
12916
|
-
* loading, and not while the stale-filters confirmation step is shown.
|
|
13017
|
+
* loading, and not while the stale-filters confirmation step is shown. The Filters slot
|
|
13018
|
+
* additionally renders only while the Filters tab is selected — see
|
|
13019
|
+
* {@link IScheduledEmailDialogSlots.Filters}.
|
|
12917
13020
|
*
|
|
12918
13021
|
* @alpha
|
|
12919
13022
|
*/
|
|
@@ -17212,6 +17315,74 @@ export declare interface IScheduledEmailDialogContextValue {
|
|
|
17212
17315
|
isLoading: boolean;
|
|
17213
17316
|
}
|
|
17214
17317
|
|
|
17318
|
+
/**
|
|
17319
|
+
* Props of the default scheduled email dialog's filters region (the Filters tab content).
|
|
17320
|
+
*
|
|
17321
|
+
* @remarks
|
|
17322
|
+
* The region is bimodal: whenever `filtersByTab` is present with more than one tab, the by-tab
|
|
17323
|
+
* members (`filtersByTab` and the `*ByTab` parameter family) drive rendering and the flat
|
|
17324
|
+
* handlers are unused; otherwise the flat members drive it and the by-tab members are unused.
|
|
17325
|
+
* `defaultProps` always carries both families so a wrap stays faithful in either mode.
|
|
17326
|
+
*
|
|
17327
|
+
* @alpha
|
|
17328
|
+
*/
|
|
17329
|
+
export declare interface IScheduledEmailDialogFiltersProps extends IAutomationDialogFiltersProps {
|
|
17330
|
+
/**
|
|
17331
|
+
* Whether the schedule stores its own filters instead of using the latest saved dashboard
|
|
17332
|
+
* filters.
|
|
17333
|
+
*/
|
|
17334
|
+
storeFilters: boolean;
|
|
17335
|
+
/**
|
|
17336
|
+
* Toggles filter (and parameter) persistence. The current filters must be passed back —
|
|
17337
|
+
* flat mode as `(value, selectedFilters, undefined)`, by-tab mode as
|
|
17338
|
+
* `(value, undefined, editedFiltersByTab)`; calling it with the value alone leaves the
|
|
17339
|
+
* draft's export definitions out of sync with the toggle.
|
|
17340
|
+
*/
|
|
17341
|
+
onStoreFiltersChange: (value: boolean, filters?: FilterContextItem[], filtersByTab?: Record<string, FilterContextItem[]>) => void;
|
|
17342
|
+
/**
|
|
17343
|
+
* Whether the schedule targets the whole dashboard (shows the store-filters checkbox)
|
|
17344
|
+
* rather than a single widget.
|
|
17345
|
+
*/
|
|
17346
|
+
isDashboardAutomation: boolean;
|
|
17347
|
+
/**
|
|
17348
|
+
* Filters structured per dashboard tab; when present with more than one tab, the region
|
|
17349
|
+
* renders in by-tab mode.
|
|
17350
|
+
*/
|
|
17351
|
+
filtersByTab?: IAutomationFiltersTab[];
|
|
17352
|
+
/**
|
|
17353
|
+
* Edited filter selection per tab.
|
|
17354
|
+
*/
|
|
17355
|
+
editedFiltersByTab?: Record<string, FilterContextItem[]>;
|
|
17356
|
+
/**
|
|
17357
|
+
* Replaces a tab's filter selection with the complete updated record.
|
|
17358
|
+
*/
|
|
17359
|
+
onFiltersByTabChange?: (filtersByTab: Record<string, FilterContextItem[]>) => void;
|
|
17360
|
+
/**
|
|
17361
|
+
* Parameter chips per tab (by-tab mode).
|
|
17362
|
+
*/
|
|
17363
|
+
parametersByTab?: Record<string, IAutomationParameter[]>;
|
|
17364
|
+
/**
|
|
17365
|
+
* Addable workspace parameters per tab (by-tab mode).
|
|
17366
|
+
*/
|
|
17367
|
+
availableParametersByTab?: Record<string, IAutomationParameter[]>;
|
|
17368
|
+
/**
|
|
17369
|
+
* Called when a parameter is added in a tab section (by-tab mode).
|
|
17370
|
+
*/
|
|
17371
|
+
onParameterAddByTab?: (tabId: string, ref: IdentifierRef) => void;
|
|
17372
|
+
/**
|
|
17373
|
+
* Called when a parameter chip's value is edited in a tab section (by-tab mode).
|
|
17374
|
+
*/
|
|
17375
|
+
onParameterChangeByTab?: (tabId: string, ref: IdentifierRef, value: ParameterValue) => void;
|
|
17376
|
+
/**
|
|
17377
|
+
* Called when a parameter chip is removed in a tab section (by-tab mode).
|
|
17378
|
+
*/
|
|
17379
|
+
onParameterDeleteByTab?: (tabId: string, ref: IdentifierRef) => void;
|
|
17380
|
+
/**
|
|
17381
|
+
* Whether workspace parameters are enabled; adjusts the store-filters tooltip copy.
|
|
17382
|
+
*/
|
|
17383
|
+
parametersEnabled?: boolean;
|
|
17384
|
+
}
|
|
17385
|
+
|
|
17215
17386
|
/**
|
|
17216
17387
|
* Props of the default scheduled email dialog's header region (the title input row).
|
|
17217
17388
|
*
|
|
@@ -17353,6 +17524,21 @@ export declare interface IScheduledEmailDialogSlots {
|
|
|
17353
17524
|
* identity — see {@link ISlotProps}.
|
|
17354
17525
|
*/
|
|
17355
17526
|
Header?: ComponentType<ISlotProps<ScheduledEmailDialogHeaderDefaultProps>>;
|
|
17527
|
+
/**
|
|
17528
|
+
* Wraps or replaces the Filters tab content (the filter and parameter chips). Must have a
|
|
17529
|
+
* stable reference identity — see {@link ISlotProps}.
|
|
17530
|
+
*
|
|
17531
|
+
* Renders only in the fully rendered dialog **and only while the Filters tab is selected**:
|
|
17532
|
+
* not while the dialog context reports loading, not while the stale-filters confirmation
|
|
17533
|
+
* step is shown, and not on the General tab. The dialog opens on the General tab, so the
|
|
17534
|
+
* slot is not mounted initially, and it unmounts — losing any local state — on every switch
|
|
17535
|
+
* away from the Filters tab.
|
|
17536
|
+
*
|
|
17537
|
+
* A replacement takes over computing the next filters array: `onFiltersChange` /
|
|
17538
|
+
* `onFiltersByTabChange` expect the complete selection, and `onStoreFiltersChange` must be
|
|
17539
|
+
* passed the current filters — see {@link IScheduledEmailDialogFiltersProps}.
|
|
17540
|
+
*/
|
|
17541
|
+
Filters?: ComponentType<ISlotProps<IScheduledEmailDialogFiltersProps>>;
|
|
17356
17542
|
}
|
|
17357
17543
|
|
|
17358
17544
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-dashboard",
|
|
3
|
-
"version": "11.53.0-alpha.
|
|
3
|
+
"version": "11.53.0-alpha.4",
|
|
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-
|
|
64
|
-
"@gooddata/sdk-
|
|
65
|
-
"@gooddata/sdk-
|
|
66
|
-
"@gooddata/sdk-ui
|
|
67
|
-
"@gooddata/sdk-ui-
|
|
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/sdk-
|
|
75
|
-
"@gooddata/
|
|
76
|
-
"@gooddata/
|
|
63
|
+
"@gooddata/sdk-backend-base": "11.53.0-alpha.4",
|
|
64
|
+
"@gooddata/sdk-backend-spi": "11.53.0-alpha.4",
|
|
65
|
+
"@gooddata/sdk-model": "11.53.0-alpha.4",
|
|
66
|
+
"@gooddata/sdk-ui": "11.53.0-alpha.4",
|
|
67
|
+
"@gooddata/sdk-ui-charts": "11.53.0-alpha.4",
|
|
68
|
+
"@gooddata/sdk-ui-ext": "11.53.0-alpha.4",
|
|
69
|
+
"@gooddata/sdk-ui-filters": "11.53.0-alpha.4",
|
|
70
|
+
"@gooddata/sdk-ui-geo": "11.53.0-alpha.4",
|
|
71
|
+
"@gooddata/sdk-ui-kit": "11.53.0-alpha.4",
|
|
72
|
+
"@gooddata/sdk-ui-pivot": "11.53.0-alpha.4",
|
|
73
|
+
"@gooddata/sdk-ui-semantic-search": "11.53.0-alpha.4",
|
|
74
|
+
"@gooddata/sdk-ui-vis-commons": "11.53.0-alpha.4",
|
|
75
|
+
"@gooddata/sdk-ui-theme-provider": "11.53.0-alpha.4",
|
|
76
|
+
"@gooddata/util": "11.53.0-alpha.4"
|
|
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/
|
|
123
|
-
"@gooddata/
|
|
124
|
-
"@gooddata/
|
|
125
|
-
"@gooddata/
|
|
126
|
-
"@gooddata/
|
|
127
|
-
"@gooddata/
|
|
122
|
+
"@gooddata/i18n-toolkit": "11.53.0-alpha.4",
|
|
123
|
+
"@gooddata/eslint-config": "11.53.0-alpha.4",
|
|
124
|
+
"@gooddata/oxlint-config": "11.53.0-alpha.4",
|
|
125
|
+
"@gooddata/sdk-backend-mockingbird": "11.53.0-alpha.4",
|
|
126
|
+
"@gooddata/reference-workspace": "11.53.0-alpha.4",
|
|
127
|
+
"@gooddata/stylelint-config": "11.53.0-alpha.4"
|
|
128
128
|
},
|
|
129
129
|
"peerDependencies": {
|
|
130
130
|
"react": "^18.0.0 || ^19.0.0",
|