@gooddata/sdk-ui-dashboard 10.7.0-alpha.0 → 10.7.0-alpha.10

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.
Files changed (116) hide show
  1. package/esm/__version.d.ts +1 -1
  2. package/esm/__version.d.ts.map +1 -1
  3. package/esm/__version.js +1 -1
  4. package/esm/__version.js.map +1 -1
  5. package/esm/_staging/sharedHooks/useCommonDateFilterTitle.d.ts.map +1 -0
  6. package/esm/{presentation/filterBar/dateFilter → _staging/sharedHooks}/useCommonDateFilterTitle.js +1 -1
  7. package/esm/_staging/sharedHooks/useCommonDateFilterTitle.js.map +1 -0
  8. package/esm/_staging/sharedHooks/useDateFiltersTitles.d.ts +4 -0
  9. package/esm/_staging/sharedHooks/useDateFiltersTitles.d.ts.map +1 -0
  10. package/esm/_staging/sharedHooks/useDateFiltersTitles.js +21 -0
  11. package/esm/_staging/sharedHooks/useDateFiltersTitles.js.map +1 -0
  12. package/esm/locales.d.ts.map +1 -1
  13. package/esm/locales.js +0 -18
  14. package/esm/locales.js.map +1 -1
  15. package/esm/model/commandHandlers/drill/common/intersectionUtils.d.ts +6 -1
  16. package/esm/model/commandHandlers/drill/common/intersectionUtils.d.ts.map +1 -1
  17. package/esm/model/commandHandlers/drill/common/intersectionUtils.js +19 -9
  18. package/esm/model/commandHandlers/drill/common/intersectionUtils.js.map +1 -1
  19. package/esm/model/commandHandlers/drill/crossFilteringHandler.d.ts +1 -1
  20. package/esm/model/commandHandlers/drill/crossFilteringHandler.d.ts.map +1 -1
  21. package/esm/model/commandHandlers/drill/crossFilteringHandler.js +8 -6
  22. package/esm/model/commandHandlers/drill/crossFilteringHandler.js.map +1 -1
  23. package/esm/model/commandHandlers/drill/drillToDashboardHandler.d.ts.map +1 -1
  24. package/esm/model/commandHandlers/drill/drillToDashboardHandler.js +16 -6
  25. package/esm/model/commandHandlers/drill/drillToDashboardHandler.js.map +1 -1
  26. package/esm/model/commands/scheduledEmail.d.ts +9 -9
  27. package/esm/model/commands/scheduledEmail.d.ts.map +1 -1
  28. package/esm/model/commands/scheduledEmail.js +6 -6
  29. package/esm/model/commands/scheduledEmail.js.map +1 -1
  30. package/esm/model/react/useDashboardScheduledEmails.d.ts.map +1 -1
  31. package/esm/model/react/useDashboardScheduledEmails.js +1 -1
  32. package/esm/model/react/useDashboardScheduledEmails.js.map +1 -1
  33. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/LimitValuesConfiguration.js +1 -1
  34. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/LimitValuesConfiguration.js.map +1 -1
  35. package/esm/presentation/localization/bundles/en-US.json +33 -198
  36. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts.map +1 -1
  37. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +1 -1
  38. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js.map +1 -1
  39. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFilters.d.ts +30 -0
  40. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFilters.d.ts.map +1 -0
  41. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFilters.js +76 -0
  42. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFilters.js.map +1 -0
  43. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFiltersList.d.ts +8 -0
  44. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFiltersList.d.ts.map +1 -0
  45. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFiltersList.js +14 -0
  46. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFiltersList.js.map +1 -0
  47. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/Attachments.d.ts +4 -2
  48. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/Attachments.d.ts.map +1 -1
  49. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/Attachments.js +44 -9
  50. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/Attachments.js.map +1 -1
  51. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/constants.d.ts +0 -18
  52. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/constants.d.ts.map +1 -1
  53. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/constants.js +0 -18
  54. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/constants.js.map +1 -1
  55. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useAttachmentDashboardFilters.d.ts +38 -0
  56. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useAttachmentDashboardFilters.d.ts.map +1 -0
  57. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useAttachmentDashboardFilters.js +114 -0
  58. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useAttachmentDashboardFilters.js.map +1 -0
  59. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useCreateScheduledEmail.d.ts.map +1 -1
  60. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useCreateScheduledEmail.js +3 -7
  61. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useCreateScheduledEmail.js.map +1 -1
  62. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.d.ts +2 -2
  63. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.d.ts.map +1 -1
  64. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.js +37 -18
  65. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.js.map +1 -1
  66. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useSaveScheduledEmailToBackend.d.ts.map +1 -1
  67. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useSaveScheduledEmailToBackend.js +9 -6
  68. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useSaveScheduledEmailToBackend.js.map +1 -1
  69. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useUpdateScheduledEmail.d.ts +2 -2
  70. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useUpdateScheduledEmail.d.ts.map +1 -1
  71. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useUpdateScheduledEmail.js +2 -2
  72. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useUpdateScheduledEmail.js.map +1 -1
  73. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/automationFilters.d.ts +5 -0
  74. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/automationFilters.d.ts.map +1 -0
  75. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/automationFilters.js +31 -0
  76. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/automationFilters.js.map +1 -0
  77. package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/utils.d.ts +0 -9
  78. package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/utils.d.ts.map +1 -1
  79. package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/utils.js +0 -38
  80. package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/utils.js.map +1 -1
  81. package/esm/sdk-ui-dashboard.d.ts +8 -8
  82. package/package.json +15 -15
  83. package/styles/css/dashboard.css +80 -356
  84. package/styles/css/dashboard.css.map +1 -1
  85. package/styles/css/main.css +80 -356
  86. package/styles/css/main.css.map +1 -1
  87. package/styles/css/scheduled_mail.css +80 -356
  88. package/styles/css/scheduled_mail.css.map +1 -1
  89. package/styles/scss/scheduled_mail.scss +85 -390
  90. package/esm/presentation/filterBar/dateFilter/useCommonDateFilterTitle.d.ts.map +0 -1
  91. package/esm/presentation/filterBar/dateFilter/useCommonDateFilterTitle.js.map +0 -1
  92. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useWorkspaceUsers.d.ts +0 -31
  93. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useWorkspaceUsers.d.ts.map +0 -1
  94. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useWorkspaceUsers.js +0 -28
  95. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useWorkspaceUsers.js.map +0 -1
  96. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/interfaces.d.ts +0 -98
  97. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/interfaces.d.ts.map +0 -1
  98. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/interfaces.js +0 -11
  99. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/interfaces.js.map +0 -1
  100. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/datetime.d.ts +0 -12
  101. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/datetime.d.ts.map +0 -1
  102. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/datetime.js +0 -44
  103. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/datetime.js.map +0 -1
  104. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/scheduledMailRecipients.d.ts +0 -3
  105. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/scheduledMailRecipients.d.ts.map +0 -1
  106. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/scheduledMailRecipients.js +0 -24
  107. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/scheduledMailRecipients.js.map +0 -1
  108. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/scheduledMailSummary.d.ts +0 -4
  109. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/scheduledMailSummary.d.ts.map +0 -1
  110. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/scheduledMailSummary.js +0 -69
  111. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/scheduledMailSummary.js.map +0 -1
  112. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/stripLocalIdentifierFromFilters.d.ts +0 -15
  113. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/stripLocalIdentifierFromFilters.d.ts.map +0 -1
  114. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/stripLocalIdentifierFromFilters.js +0 -10
  115. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/stripLocalIdentifierFromFilters.js.map +0 -1
  116. /package/esm/{presentation/filterBar/dateFilter → _staging/sharedHooks}/useCommonDateFilterTitle.d.ts +0 -0
@@ -1,42 +1,4 @@
1
1
  // (C) 2022-2024 GoodData Corporation
2
- import { isDashboardAttachment, isWidgetAttachment } from "@gooddata/sdk-model";
3
- import { Icon } from "@gooddata/sdk-ui-kit";
4
- import compact from "lodash/compact.js";
5
- export const getRecipientsLabel = (intl, recipients) => {
6
- const numberOfRecipients = recipients.length;
7
- return intl.formatMessage({
8
- id: "dialogs.schedule.management.recipients",
9
- }, { n: numberOfRecipients });
10
- };
11
- export const getAttachmentType = (intl, attachments) => {
12
- const hasDashboardAttachment = attachments.some(isDashboardAttachment);
13
- const numberOfWidgetAttachments = attachments.filter(isWidgetAttachment).length;
14
- if (hasDashboardAttachment && numberOfWidgetAttachments) {
15
- return {
16
- AttachmentIcon: Icon.Many,
17
- attachmentLabel: intl.formatMessage({ id: "dialogs.schedule.management.attachments.mixed" }, { n: numberOfWidgetAttachments }),
18
- };
19
- }
20
- else if (numberOfWidgetAttachments) {
21
- return {
22
- AttachmentIcon: Icon.Insight,
23
- attachmentLabel: intl.formatMessage({ id: "dialogs.schedule.management.attachments.widgets" }, { n: numberOfWidgetAttachments }),
24
- };
25
- }
26
- else {
27
- return {
28
- AttachmentIcon: Icon.Dashboard,
29
- attachmentLabel: intl.formatMessage({ id: "dialogs.schedule.management.attachments.dashboard" }),
30
- };
31
- }
32
- };
33
- export const getFormatsLabel = (attachments) => {
34
- const hasPdfFormat = attachments.some(isDashboardAttachment);
35
- const widgetAttachments = attachments.filter(isWidgetAttachment);
36
- const hasCsvFormat = widgetAttachments.some((attachment) => attachment.formats.includes("csv"));
37
- const hasXlsxFormat = widgetAttachments.some((attachment) => attachment.formats.includes("xlsx"));
38
- return compact([hasPdfFormat && "PDF", hasCsvFormat && "CSV", hasXlsxFormat && "XLSX"]).join(", ");
39
- };
40
2
  /**
41
3
  * In order to match backend format, we need to remove milliseconds from the date.
42
4
  * Otherwise comparing newly created dates (as ISO string) with ISO dates from backend will fail.
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/utils.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAGrC,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAA2B,MAAM,qBAAqB,CAAC;AACzG,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,OAAO,MAAM,mBAAmB,CAAC;AAExC,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,IAAe,EAAE,UAAoB,EAAE,EAAE;IACxE,MAAM,kBAAkB,GAAG,UAAU,CAAC,MAAM,CAAC;IAC7C,OAAO,IAAI,CAAC,aAAa,CACrB;QACI,EAAE,EAAE,wCAAwC;KAC/C,EACD,EAAE,CAAC,EAAE,kBAAkB,EAAE,CAC5B,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,IAAe,EAAE,WAAsC,EAAE,EAAE;IACzF,MAAM,sBAAsB,GAAG,WAAW,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;IACvE,MAAM,yBAAyB,GAAG,WAAW,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,MAAM,CAAC;IAEhF,IAAI,sBAAsB,IAAI,yBAAyB,EAAE,CAAC;QACtD,OAAO;YACH,cAAc,EAAE,IAAI,CAAC,IAAI;YACzB,eAAe,EAAE,IAAI,CAAC,aAAa,CAC/B,EAAE,EAAE,EAAE,+CAA+C,EAAE,EACvD,EAAE,CAAC,EAAE,yBAAyB,EAAE,CACnC;SACJ,CAAC;IACN,CAAC;SAAM,IAAI,yBAAyB,EAAE,CAAC;QACnC,OAAO;YACH,cAAc,EAAE,IAAI,CAAC,OAAO;YAC5B,eAAe,EAAE,IAAI,CAAC,aAAa,CAC/B,EAAE,EAAE,EAAE,iDAAiD,EAAE,EACzD,EAAE,CAAC,EAAE,yBAAyB,EAAE,CACnC;SACJ,CAAC;IACN,CAAC;SAAM,CAAC;QACJ,OAAO;YACH,cAAc,EAAE,IAAI,CAAC,SAAS;YAC9B,eAAe,EAAE,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,mDAAmD,EAAE,CAAC;SACnG,CAAC;IACN,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,WAAsC,EAAE,EAAE;IACtE,MAAM,YAAY,GAAG,WAAW,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;IAC7D,MAAM,iBAAiB,GAAG,WAAW,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;IACjE,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IAChG,MAAM,aAAa,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;IAElG,OAAO,OAAO,CAAC,CAAC,YAAY,IAAI,KAAK,EAAE,YAAY,IAAI,KAAK,EAAE,aAAa,IAAI,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACvG,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAAU,EAAE,EAAE;IAC9C,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC;AAClD,CAAC,CAAC"}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/utils.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAAU,EAAE,EAAE;IAC9C,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC;AAClD,CAAC,CAAC"}
@@ -1925,13 +1925,13 @@ export declare interface CreateScheduledEmail extends IDashboardCommand {
1925
1925
  * Dispatching this command will result in the creating scheduled email on the backend.
1926
1926
  *
1927
1927
  * @param scheduledEmail - specify scheduled email to create.
1928
- * @param filterContext - specify filter context to use for the scheduled email. If no filter context is provided, stored dashboard filter context will be used.
1928
+ * @param filters - specify filter context filters to use for the scheduled email. If no filters are provided, stored dashboard filters will be used.
1929
1929
  * @param correlationId - specify correlation id to use for this command. this will be included in all
1930
1930
  * events that will be emitted during the command processing
1931
1931
 
1932
1932
  * @beta
1933
1933
  */
1934
- export declare function createScheduledEmail(scheduledEmail: IAutomationMetadataObjectDefinition, filterContext?: IFilterContextDefinition, correlationId?: string): CreateScheduledEmail;
1934
+ export declare function createScheduledEmail(scheduledEmail: IAutomationMetadataObjectDefinition, filters?: FilterContextItem[], correlationId?: string): CreateScheduledEmail;
1935
1935
 
1936
1936
  /**
1937
1937
  * Payload of the {@link CreateScheduledEmail} command.
@@ -1943,9 +1943,9 @@ export declare interface CreateScheduledEmailPayload {
1943
1943
  */
1944
1944
  readonly scheduledEmail: IAutomationMetadataObjectDefinition;
1945
1945
  /**
1946
- * Filter context to use for the scheduled email. If no filter context is provided, stored dashboard filter context will be used.
1946
+ * Filter context filters to use for the scheduled email. If no filters are provided, stored dashboard filters will be used.
1947
1947
  */
1948
- readonly filterContext?: IFilterContextDefinition;
1948
+ readonly filters?: FilterContextItem[];
1949
1949
  }
1950
1950
 
1951
1951
  /**
@@ -14092,13 +14092,13 @@ export declare interface SaveScheduledEmail extends IDashboardCommand {
14092
14092
  * Saves existing SaveScheduledEmail command. Dispatching this command will result in saving scheduled email on the backend.
14093
14093
  *
14094
14094
  * @param scheduledEmail - specify scheduled email to save.
14095
- * @param filterContextRef - optionally specify existing filter context reference to be used for all attachments
14095
+ * @param filters - optionally specify existing filter context filters to be used for all attachments
14096
14096
  * @param correlationId - optionally specify correlation id to use for this command. this will be included in all
14097
14097
  * events that will be emitted during the command processing
14098
14098
 
14099
14099
  * @beta
14100
14100
  */
14101
- export declare function saveScheduledEmail(scheduledEmail: IAutomationMetadataObject, filterContextRef?: ObjRef, correlationId?: string): SaveScheduledEmail;
14101
+ export declare function saveScheduledEmail(scheduledEmail: IAutomationMetadataObject, filters?: FilterContextItem[], correlationId?: string): SaveScheduledEmail;
14102
14102
 
14103
14103
  /**
14104
14104
  * Payload of the {@link SaveScheduledEmail} command.
@@ -14110,9 +14110,9 @@ export declare interface SaveScheduledEmailPayload {
14110
14110
  */
14111
14111
  readonly scheduledEmail: IAutomationMetadataObject;
14112
14112
  /**
14113
- * optionally specify existing filter context reference to be used for all attachments
14113
+ * optionally specify existing filter context filters to be used for all attachments
14114
14114
  */
14115
- readonly filterContextRef?: ObjRef;
14115
+ readonly filters?: FilterContextItem[];
14116
14116
  }
14117
14117
 
14118
14118
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-ui-dashboard",
3
- "version": "10.7.0-alpha.0",
3
+ "version": "10.7.0-alpha.10",
4
4
  "description": "GoodData SDK - Dashboard Component",
5
5
  "repository": {
6
6
  "type": "git",
@@ -55,17 +55,17 @@
55
55
  "ts-invariant": "^0.7.5",
56
56
  "tslib": "^2.5.0",
57
57
  "uuid": "^8.3.2",
58
- "@gooddata/sdk-backend-spi": "10.7.0-alpha.0",
59
- "@gooddata/sdk-backend-base": "10.7.0-alpha.0",
60
- "@gooddata/sdk-model": "10.7.0-alpha.0",
61
- "@gooddata/sdk-ui": "10.7.0-alpha.0",
62
- "@gooddata/sdk-ui-ext": "10.7.0-alpha.0",
63
- "@gooddata/sdk-ui-filters": "10.7.0-alpha.0",
64
- "@gooddata/sdk-ui-kit": "10.7.0-alpha.0",
65
- "@gooddata/sdk-ui-geo": "10.7.0-alpha.0",
66
- "@gooddata/sdk-ui-theme-provider": "10.7.0-alpha.0",
67
- "@gooddata/util": "10.7.0-alpha.0",
68
- "@gooddata/sdk-ui-vis-commons": "10.7.0-alpha.0"
58
+ "@gooddata/sdk-backend-spi": "10.7.0-alpha.10",
59
+ "@gooddata/sdk-model": "10.7.0-alpha.10",
60
+ "@gooddata/sdk-ui": "10.7.0-alpha.10",
61
+ "@gooddata/sdk-backend-base": "10.7.0-alpha.10",
62
+ "@gooddata/sdk-ui-ext": "10.7.0-alpha.10",
63
+ "@gooddata/sdk-ui-geo": "10.7.0-alpha.10",
64
+ "@gooddata/sdk-ui-filters": "10.7.0-alpha.10",
65
+ "@gooddata/sdk-ui-kit": "10.7.0-alpha.10",
66
+ "@gooddata/sdk-ui-theme-provider": "10.7.0-alpha.10",
67
+ "@gooddata/sdk-ui-vis-commons": "10.7.0-alpha.10",
68
+ "@gooddata/util": "10.7.0-alpha.10"
69
69
  },
70
70
  "peerDependencies": {
71
71
  "react": "^16.10.0 || ^17.0.0 || ^18.0.0",
@@ -118,9 +118,9 @@
118
118
  "typescript": "5.3.3",
119
119
  "vitest": "1.0.4",
120
120
  "vitest-dom": "0.1.1",
121
- "@gooddata/reference-workspace": "10.7.0-alpha.0",
122
- "@gooddata/sdk-backend-mockingbird": "10.7.0-alpha.0",
123
- "@gooddata/i18n-toolkit": "10.7.0-alpha.0"
121
+ "@gooddata/i18n-toolkit": "10.7.0-alpha.10",
122
+ "@gooddata/reference-workspace": "10.7.0-alpha.10",
123
+ "@gooddata/sdk-backend-mockingbird": "10.7.0-alpha.10"
124
124
  },
125
125
  "scripts": {
126
126
  "clean": "rm -rf ci dist esm coverage *.log styles/css tsconfig.tsbuildinfo",
@@ -986,26 +986,6 @@
986
986
  .gd-dialog:not(.gd-dropdown).gd-schedule-email-dialog .gd-dialog-footer {
987
987
  display: flex;
988
988
  }
989
- .gd-dialog:not(.gd-dropdown).gd-schedule-email-dialog .gd-schedule-email-dialog-filters-message {
990
- margin-top: -5px;
991
- margin-bottom: 20px;
992
- }
993
-
994
- .gd-schedule-email-dialog-unsubscribed-recipients {
995
- margin-top: -5px;
996
- margin-left: 105px;
997
- overflow: hidden;
998
- width: 100%;
999
- line-height: 16px;
1000
- white-space: normal;
1001
- font-size: 12px;
1002
- color: var(--gd-palette-complementary-7, #6d7680);
1003
- }
1004
- @media only screen and (max-width: 640px) {
1005
- .gd-schedule-email-dialog-unsubscribed-recipients {
1006
- margin-left: 0;
1007
- }
1008
- }
1009
989
 
1010
990
  .gd-input-component {
1011
991
  margin-bottom: 20px;
@@ -1050,29 +1030,6 @@
1050
1030
  line-height: 15px;
1051
1031
  }
1052
1032
 
1053
- @media only screen and (min-width:641px) {
1054
- .gd-attachment-component {
1055
- align-items: flex-start;
1056
- }
1057
- }
1058
- .gd-attachment-component .gd-attachment-name {
1059
- flex: 1;
1060
- padding-left: 7px;
1061
- }
1062
- @media only screen and (min-width:641px) {
1063
- .gd-attachment-component .gd-attachment-name {
1064
- margin-top: 3px;
1065
- word-break: break-all;
1066
- }
1067
- }
1068
- .gd-attachment-component .gd-icon-pdf {
1069
- position: relative;
1070
- top: 1px;
1071
- flex: 0;
1072
- padding: 0;
1073
- margin-top: 3px;
1074
- }
1075
-
1076
1033
  @media only screen and (min-width:641px) {
1077
1034
  .gd-schedule-email-attachments {
1078
1035
  align-items: flex-start;
@@ -1082,25 +1039,33 @@
1082
1039
  height: 30px;
1083
1040
  line-height: 30px;
1084
1041
  }
1085
- .gd-schedule-email-attachments .gd-attachment-config-button {
1086
- display: inline-block;
1087
- margin: 10px 20px 0 0;
1088
- }
1089
- .gd-schedule-email-attachments .gd-dashboard-attachment-list {
1042
+ .gd-schedule-email-attachments .gd-attachment-list {
1043
+ display: flex;
1044
+ flex-direction: row;
1045
+ align-items: baseline;
1090
1046
  flex: 1;
1091
1047
  overflow: hidden;
1092
1048
  margin: -2px 0;
1049
+ flex-wrap: wrap;
1093
1050
  }
1094
1051
  @media only screen and (max-width: 640px) {
1095
- .gd-schedule-email-attachments .gd-dashboard-attachment-list {
1052
+ .gd-schedule-email-attachments .gd-attachment-list {
1096
1053
  max-width: none;
1097
1054
  }
1098
1055
  }
1099
- .gd-schedule-email-attachments .gd-dashboard-attachment-list-content {
1056
+ .gd-schedule-email-attachments .gd-attachment-list-message {
1100
1057
  display: flex;
1101
- flex-wrap: wrap;
1102
- overflow: hidden;
1103
- margin: 0 -5px;
1058
+ flex-basis: 100%;
1059
+ margin-top: 10px;
1060
+ }
1061
+ .gd-schedule-email-attachments .gd-attachment-filters-dropdown-button {
1062
+ display: flex;
1063
+ align-items: baseline;
1064
+ height: 28px;
1065
+ }
1066
+ .gd-schedule-email-attachments .gd-attachment-filters-dropdown-button .gd-button-link-dimmed {
1067
+ border: none;
1068
+ box-shadow: none;
1104
1069
  }
1105
1070
  .gd-schedule-email-attachments .gd-dashboard-attachment {
1106
1071
  display: flex;
@@ -1143,123 +1108,74 @@
1143
1108
  margin-left: 7px;
1144
1109
  }
1145
1110
 
1146
- .gd-schedule-email-dialog-datetime,
1147
- .gd-schedule-email-dialog-repeat {
1148
- align-items: flex-start;
1149
- flex-direction: row;
1150
- }
1151
- @media only screen and (max-width: 640px) {
1152
- .gd-schedule-email-dialog-datetime .gd-label,
1153
- .gd-schedule-email-dialog-repeat .gd-label {
1154
- margin-bottom: 0;
1155
- }
1156
- }
1157
- .gd-schedule-email-dialog-datetime > div,
1158
- .gd-schedule-email-dialog-repeat > div {
1159
- display: flex;
1160
- align-items: center;
1161
- flex-wrap: wrap;
1162
- }
1163
-
1164
- .gd-schedule-email-dialog-datetime > div .gd-datepicker {
1165
- width: 119px;
1111
+ .gd-attachment-filters-dropdown {
1112
+ width: 245px;
1113
+ max-height: 350px;
1166
1114
  }
1167
- @media only screen and (max-width: 640px) {
1168
- .gd-schedule-email-dialog-datetime > div .gd-datepicker {
1169
- width: calc(50% - 10px);
1170
- }
1171
- }
1172
- .gd-schedule-email-dialog-datetime > div .gd-datepicker .input-text {
1173
- color: var(--gd-palette-complementary-7, #778491);
1174
- font-size: 12px;
1175
- }
1176
- .gd-schedule-email-dialog-datetime > div .gd-datepicker .input-text:hover {
1177
- color: var(--gd-palette-complementary-8, inherit);
1178
- }
1179
- .gd-schedule-email-dialog-datetime > div .gd-datepicker .gd-datepicker-icon {
1180
- top: -2px;
1181
- }
1182
- .gd-schedule-email-dialog-datetime > div .gd-schedule-email-dialog-datetime-date input {
1183
- height: 28px;
1184
- }
1185
- .gd-schedule-email-dialog-datetime > div .gd-schedule-email-dialog-datetime-time {
1186
- margin-left: 10px;
1115
+ .gd-attachment-filters-dropdown .gd-list-title {
1116
+ line-height: normal;
1187
1117
  }
1188
- .gd-schedule-email-dialog-datetime > div .gd-schedule-email-dialog-datetime-time button {
1189
- height: 28px;
1118
+ .gd-attachment-filters-dropdown .gd-close-button {
1119
+ position: absolute;
1120
+ top: 5px;
1121
+ right: 5px;
1122
+ outline: none;
1190
1123
  }
1191
- @media only screen and (max-width: 640px) {
1192
- .gd-schedule-email-dialog-datetime > div .gd-schedule-email-dialog-datetime-timezone {
1193
- width: 100%;
1194
- margin-top: 15px;
1195
- }
1124
+ .gd-attachment-filters-dropdown .gd-close-button .gd-button-link.gd-button-icon-only::before {
1125
+ font-size: 14px;
1196
1126
  }
1197
- @media only screen and (min-width:641px) {
1198
- .gd-schedule-email-dialog-datetime > div .gd-schedule-email-dialog-datetime-timezone {
1199
- margin-left: 10px;
1200
- }
1127
+ .gd-attachment-filters-dropdown .gd-attachment-filters-dropdown-content {
1128
+ display: flex;
1129
+ flex-direction: column;
1130
+ padding: 10px;
1201
1131
  }
1202
-
1203
- .gd-automation-cron-input {
1204
- margin-left: 10px;
1132
+ .gd-attachment-filters-dropdown .gd-attachment-filters-dropdown-content > :first-child {
1133
+ margin-bottom: 5px;
1205
1134
  }
1206
-
1207
- @media only screen and (max-width: 640px) {
1208
- .gd-schedule-email-dialog-repeat .gd-schedule-email-dialog-repeat-type {
1209
- width: 100%;
1210
- margin-bottom: 20px;
1211
- }
1212
- .gd-schedule-email-dialog-repeat .gd-schedule-email-dialog-repeat-type .button-dropdown {
1213
- width: 100%;
1214
- }
1135
+ .gd-attachment-filters-dropdown .gd-attachment-filters-dropdown-content > :last-child {
1136
+ margin-top: 5px;
1215
1137
  }
1216
- .gd-schedule-email-dialog-repeat .gd-schedule-email-dialog-repeat-type button {
1217
- height: 28px;
1138
+ .gd-attachment-filters-dropdown .gd-attachment-filters-dropdown-content .gd-icon-circle-question {
1139
+ position: relative;
1140
+ top: 2px;
1141
+ padding: 5px;
1142
+ color: var(--gd-palette-complementary-6, #94a1ad);
1218
1143
  }
1219
- .gd-schedule-email-dialog-repeat .gd-schedule-email-dialog-repeat-custom {
1144
+ .gd-attachment-filters-dropdown .gd-attachment-filters-dropdown-content .gd-attachment-filters-list {
1220
1145
  display: flex;
1221
- align-items: center;
1222
- }
1223
- @media only screen and (max-width: 640px) {
1224
- .gd-schedule-email-dialog-repeat .gd-schedule-email-dialog-repeat-custom {
1225
- flex-wrap: wrap;
1226
- border-left: 2px dotted var(--gd-palette-complementary-3, #dde4eb);
1227
- }
1228
- }
1229
- .gd-schedule-email-dialog-repeat .gd-schedule-email-dialog-repeat-custom .gd-schedule-email-dialog-repeat-every {
1230
- margin-left: 10px;
1231
- }
1232
- .gd-schedule-email-dialog-repeat .gd-schedule-email-dialog-repeat-custom .gd-schedule-email-dialog-repeat-period {
1233
- margin-left: 10px;
1146
+ flex-direction: column;
1147
+ gap: 10px;
1148
+ border-left: 2px dotted var(--gd-palette-complementary-3, #dde4eb);
1149
+ padding: 0 10px;
1150
+ margin-left: 6px;
1151
+ max-height: 190px;
1152
+ overflow-y: auto;
1153
+ margin-right: -10px;
1234
1154
  }
1235
- .gd-schedule-email-dialog-repeat .gd-schedule-email-dialog-repeat-custom .gd-schedule-email-dialog-repeat-period .gd-input-field {
1236
- color: var(--gd-palette-complementary-7, #778491);
1155
+ .gd-attachment-filters-dropdown .gd-attachment-filters-dropdown-content .gd-attachment-filters-list-item-title {
1156
+ text-overflow: ellipsis;
1157
+ white-space: nowrap;
1158
+ overflow: hidden;
1159
+ color: var(--gd-palette-complementary-7, #6d7680);
1237
1160
  font-size: 12px;
1238
- width: 24px;
1239
- height: 28px;
1240
- text-align: center;
1241
- padding-right: 0;
1242
- padding-left: 0;
1243
- }
1244
- .gd-schedule-email-dialog-repeat .gd-schedule-email-dialog-repeat-custom .gd-schedule-email-dialog-repeat-frequency {
1245
- margin-left: 10px;
1246
- }
1247
- .gd-schedule-email-dialog-repeat .gd-schedule-email-dialog-repeat-custom .gd-schedule-email-dialog-repeat-frequency button {
1248
- height: 28px;
1249
- }
1250
- @media only screen and (max-width: 640px) {
1251
- .gd-schedule-email-dialog-repeat .gd-schedule-email-dialog-repeat-custom .break-the-row {
1252
- height: 0;
1253
- flex-basis: 100%;
1254
- }
1161
+ font-style: normal;
1162
+ font-weight: 400;
1163
+ line-height: normal;
1255
1164
  }
1256
- .gd-schedule-email-dialog-repeat .gd-schedule-email-dialog-repeat-custom .gd-schedule-email-dialog-repeat-execute-on {
1257
- margin-left: 10px;
1165
+ .gd-attachment-filters-dropdown .gd-attachment-filters-dropdown-content .gd-attachment-filters-list-item-subtitle {
1166
+ text-overflow: ellipsis;
1167
+ white-space: nowrap;
1168
+ overflow: hidden;
1169
+ color: var(--gd-palette-complementary-8, #464e56);
1170
+ font-size: 12px;
1171
+ font-style: normal;
1172
+ font-weight: bold;
1173
+ line-height: normal;
1258
1174
  }
1259
- @media only screen and (max-width: 640px) {
1260
- .gd-schedule-email-dialog-repeat .gd-schedule-email-dialog-repeat-custom .gd-schedule-email-dialog-repeat-execute-on {
1261
- margin-top: 20px;
1262
- }
1175
+ .gd-attachment-filters-dropdown .gd-attachment-filters-dropdown-footer {
1176
+ display: flex;
1177
+ justify-content: end;
1178
+ padding: 10px;
1263
1179
  }
1264
1180
 
1265
1181
  .gd-scheduled-email-management-dialog {
@@ -1496,204 +1412,6 @@
1496
1412
  }
1497
1413
  }
1498
1414
 
1499
- .gd-schedule-email-dialog-attachments {
1500
- display: flex;
1501
- flex-direction: row;
1502
- flex-wrap: wrap;
1503
- margin: 0 -10px;
1504
- }
1505
- .gd-schedule-email-dialog-attachments > div {
1506
- margin: 5px 10px;
1507
- }
1508
-
1509
- .gd-schedule-dropdown-button {
1510
- display: flex;
1511
- align-items: center;
1512
- height: 30px;
1513
- margin: 0;
1514
- padding: 0;
1515
- border: none;
1516
- outline: inherit;
1517
- font: inherit;
1518
- color: var(--gd-palette-complementary-7, #6d7680);
1519
- background: none;
1520
- text-decoration: underline;
1521
- font-size: 14px;
1522
- cursor: pointer;
1523
- }
1524
- .gd-schedule-dropdown-button-icon {
1525
- display: flex;
1526
- flex-direction: row;
1527
- justify-content: center;
1528
- align-items: center;
1529
- height: 100%;
1530
- margin-right: 6px;
1531
- flex-shrink: 0;
1532
- }
1533
- .gd-schedule-dropdown-button-disabled {
1534
- color: var(--gd-palette-complementary-5, #b0beca);
1535
- }
1536
- .gd-schedule-dropdown-button-disabled svg {
1537
- fill: var(--gd-palette-complementary-5, #b0beca);
1538
- }
1539
- .gd-schedule-dropdown-button-disabled:hover {
1540
- color: var(--gd-palette-complementary-5, #b0beca);
1541
- }
1542
- .gd-schedule-dropdown-body {
1543
- display: flex;
1544
- flex-direction: column;
1545
- height: inherit;
1546
- font-size: 12px;
1547
- }
1548
- @media only screen and (max-width: 640px) {
1549
- .gd-schedule-dropdown-body {
1550
- width: 100vw;
1551
- max-height: calc(100vh - 30px);
1552
- }
1553
- }
1554
- .gd-schedule-dropdown-header {
1555
- display: flex;
1556
- flex: 0 0 auto;
1557
- align-items: center;
1558
- padding-left: 10px;
1559
- padding-right: 10px;
1560
- overflow: hidden;
1561
- height: 35px;
1562
- white-space: nowrap;
1563
- color: var(--gd-palette-complementary-6, #94a1ad);
1564
- background: var(--gd-palette-complementary-2, #ebeff4);
1565
- text-overflow: ellipsis;
1566
- text-transform: uppercase;
1567
- font-size: 11px;
1568
- font-weight: bold;
1569
- }
1570
- .gd-schedule-dropdown-content {
1571
- flex: 0 0 auto;
1572
- overflow-y: auto;
1573
- max-height: 200px;
1574
- }
1575
- @media only screen and (max-width: 640px) {
1576
- .gd-schedule-dropdown-content {
1577
- overflow: auto;
1578
- height: calc(100vh - 113px);
1579
- max-height: calc(100vh - 113px);
1580
- }
1581
- }
1582
- .gd-schedule-dropdown-footer {
1583
- flex: 0 0 auto;
1584
- height: 47px;
1585
- padding: 10px;
1586
- border-top: 1px solid var(--gd-palette-complementary-3, #dde4eb);
1587
- text-align: right;
1588
- }
1589
-
1590
- .gd-format-options-dropdown {
1591
- padding: 10px;
1592
- min-width: 253px;
1593
- }
1594
- @media only screen and (max-width: 640px) {
1595
- .gd-format-options-dropdown {
1596
- width: 100%;
1597
- min-width: none;
1598
- }
1599
- }
1600
- .gd-format-options-dropdown-selector {
1601
- display: flex;
1602
- flex-direction: row;
1603
- align-items: center;
1604
- height: 28px;
1605
- }
1606
- .gd-format-options-dropdown-selector > div {
1607
- margin-left: 15px;
1608
- }
1609
-
1610
- .gd-format-options-dropdown-xlsx {
1611
- display: flex;
1612
- flex-direction: column;
1613
- border-left: 1px dashed var(--gd-palette-complementary-7, #6d7680);
1614
- padding-left: 10px;
1615
- margin-top: 5px;
1616
- font-size: 14px;
1617
- color: var(--gd-palette-complementary-8, #464e56);
1618
- }
1619
- .gd-format-options-dropdown-xlsx > div:not(:first-child) {
1620
- margin-top: 10px;
1621
- }
1622
- .gd-format-options-dropdown-xlsx > div {
1623
- display: flex;
1624
- align-items: center;
1625
- height: 28px;
1626
- }
1627
- .gd-format-options-dropdown-xlsx > div > label {
1628
- display: flex;
1629
- align-items: center;
1630
- width: 100%;
1631
- padding-right: 0;
1632
- }
1633
- .gd-format-options-dropdown-xlsx > div > label > span {
1634
- margin-left: 4px;
1635
- white-space: nowrap;
1636
- }
1637
-
1638
- .gd-attachments-selection-dropdown {
1639
- width: 253px;
1640
- padding: 10px;
1641
- }
1642
- @media only screen and (max-width: 640px) {
1643
- .gd-attachments-selection-dropdown {
1644
- width: 100%;
1645
- }
1646
- }
1647
- .gd-attachments-selection-dropdown h3 {
1648
- flex-grow: 2;
1649
- position: relative;
1650
- overflow: hidden;
1651
- height: 23px;
1652
- margin-top: 5px;
1653
- margin-bottom: 5px;
1654
- font-size: 11px;
1655
- font-weight: bold;
1656
- text-transform: uppercase;
1657
- color: var(--gd-palette-complementary-6, #94a1ad);
1658
- }
1659
- .gd-attachments-selection-dropdown h3::after {
1660
- content: "";
1661
- position: absolute;
1662
- top: 50%;
1663
- display: inline-block;
1664
- width: 100%;
1665
- height: 0;
1666
- margin-left: 10px;
1667
- border-top: 1px solid var(--gd-palette-complementary-6, #94a1ad);
1668
- }
1669
- .gd-attachments-selection-dropdown > div:not(:last-child) {
1670
- margin-bottom: 10px;
1671
- }
1672
- .gd-attachments-selection-dropdown > div {
1673
- display: flex;
1674
- align-items: center;
1675
- overflow: hidden;
1676
- height: 28px;
1677
- }
1678
- .gd-attachments-selection-dropdown > div > label {
1679
- display: flex;
1680
- align-items: center;
1681
- overflow: hidden;
1682
- width: 100%;
1683
- padding-right: 0;
1684
- }
1685
- .gd-attachments-selection-dropdown > div > label > svg {
1686
- margin-left: 4px;
1687
- margin-right: 6px;
1688
- flex-shrink: 0;
1689
- }
1690
- .gd-attachments-selection-dropdown > div > label > span {
1691
- overflow: hidden;
1692
- white-space: nowrap;
1693
- text-overflow: ellipsis;
1694
- margin-left: 4px;
1695
- }
1696
-
1697
1415
  .gd-schedule-mail-dialog-content-wrapper {
1698
1416
  background: var(--gd-palette-complementary-0, #fcfcfd);
1699
1417
  margin: 0 -20px;
@@ -1705,8 +1423,14 @@
1705
1423
  margin-bottom: 20px;
1706
1424
  }
1707
1425
 
1426
+ .gd-divider-without-margin {
1427
+ margin-top: 0;
1428
+ margin-bottom: 0;
1429
+ }
1430
+
1708
1431
  .gd-divider-full-row {
1709
- margin: 0 -20px 20px;
1432
+ margin-left: -20px;
1433
+ margin-right: -20px;
1710
1434
  }
1711
1435
 
1712
1436
  .gd-schedule-email-dialog-destination-empty {