@gooddata/sdk-ui-dashboard 11.54.0-alpha.5 → 11.54.0-alpha.7

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 (335) hide show
  1. package/NOTICE +849 -114
  2. package/esm/__version.d.ts +1 -1
  3. package/esm/__version.js +1 -1
  4. package/esm/index.d.ts +2 -1
  5. package/esm/index.d.ts.map +1 -1
  6. package/esm/model/commandHandlers/dashboard/common/parameterHydration.d.ts +7 -0
  7. package/esm/model/commandHandlers/dashboard/common/parameterHydration.d.ts.map +1 -1
  8. package/esm/model/commandHandlers/dashboard/common/parameterHydration.js +17 -1
  9. package/esm/model/commandHandlers/filterContext/filterViewHandler.d.ts.map +1 -1
  10. package/esm/model/commandHandlers/filterContext/filterViewHandler.js +7 -7
  11. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts +1 -1
  12. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +1 -1
  13. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +32 -91
  14. package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertSubmit.d.ts +19 -14
  15. package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertSubmit.d.ts.map +1 -1
  16. package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertSubmit.js +18 -2
  17. package/esm/presentation/automations/alerting/state/AlertActionsContext.d.ts +1 -10
  18. package/esm/presentation/automations/alerting/state/AlertActionsContext.d.ts.map +1 -1
  19. package/esm/presentation/automations/alerting/state/AlertDataContext.d.ts +1 -11
  20. package/esm/presentation/automations/alerting/state/AlertDataContext.d.ts.map +1 -1
  21. package/esm/presentation/automations/alerting/state/AlertDraftContext.d.ts +1 -11
  22. package/esm/presentation/automations/alerting/state/AlertDraftContext.d.ts.map +1 -1
  23. package/esm/presentation/automations/alerting/state/AlertFiltersContext.d.ts +1 -13
  24. package/esm/presentation/automations/alerting/state/AlertFiltersContext.d.ts.map +1 -1
  25. package/esm/presentation/automations/alerting/state/AlertingDialogStateProvider.d.ts.map +1 -1
  26. package/esm/presentation/automations/alerting/state/types.d.ts +156 -0
  27. package/esm/presentation/automations/alerting/state/types.d.ts.map +1 -0
  28. package/esm/presentation/automations/alerting/state/types.js +2 -0
  29. package/esm/presentation/automations/alerting/state/useAlertFiltersModel.d.ts +2 -8
  30. package/esm/presentation/automations/alerting/state/useAlertFiltersModel.d.ts.map +1 -1
  31. package/esm/presentation/automations/alerting/state/useAlertFormState.d.ts +4 -34
  32. package/esm/presentation/automations/alerting/state/useAlertFormState.d.ts.map +1 -1
  33. package/esm/presentation/automations/alerting/state/useAlertSupportedMetrics.d.ts +2 -11
  34. package/esm/presentation/automations/alerting/state/useAlertSupportedMetrics.d.ts.map +1 -1
  35. package/esm/presentation/automations/alerting/state/useAlertSupportedMetrics.js +2 -2
  36. package/esm/presentation/automations/alerting/state/useAlertingDialogRegionProps.d.ts +82 -0
  37. package/esm/presentation/automations/alerting/state/useAlertingDialogRegionProps.d.ts.map +1 -0
  38. package/esm/presentation/automations/alerting/state/useAlertingDialogRegionProps.js +152 -0
  39. package/esm/presentation/automations/alerting/types.d.ts +34 -6
  40. package/esm/presentation/automations/alerting/types.d.ts.map +1 -1
  41. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts +1 -1
  42. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts.map +1 -1
  43. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +41 -126
  44. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentSettings.d.ts.map +1 -1
  45. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentSettings.js +2 -3
  46. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useSaveScheduledEmailToBackend.d.ts +17 -2
  47. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useSaveScheduledEmailToBackend.d.ts.map +1 -1
  48. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useSaveScheduledEmailToBackend.js +16 -5
  49. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useScheduleTimezone.d.ts +2 -29
  50. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useScheduleTimezone.d.ts.map +1 -1
  51. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useScheduleTimezone.js +0 -14
  52. package/esm/presentation/automations/scheduledEmail/state/ScheduledEmailDialogStateProvider.d.ts.map +1 -1
  53. package/esm/presentation/automations/scheduledEmail/state/ScheduledEmailDialogStateProvider.js +3 -3
  54. package/esm/presentation/automations/scheduledEmail/state/ScheduledExportActionsContext.d.ts +1 -16
  55. package/esm/presentation/automations/scheduledEmail/state/ScheduledExportActionsContext.d.ts.map +1 -1
  56. package/esm/presentation/automations/scheduledEmail/state/ScheduledExportDataContext.d.ts +1 -12
  57. package/esm/presentation/automations/scheduledEmail/state/ScheduledExportDataContext.d.ts.map +1 -1
  58. package/esm/presentation/automations/scheduledEmail/state/ScheduledExportDraftContext.d.ts +1 -15
  59. package/esm/presentation/automations/scheduledEmail/state/ScheduledExportDraftContext.d.ts.map +1 -1
  60. package/esm/presentation/automations/scheduledEmail/state/ScheduledExportFiltersContext.d.ts +2 -14
  61. package/esm/presentation/automations/scheduledEmail/state/ScheduledExportFiltersContext.d.ts.map +1 -1
  62. package/esm/presentation/automations/scheduledEmail/state/types.d.ts +204 -0
  63. package/esm/presentation/automations/scheduledEmail/state/types.d.ts.map +1 -0
  64. package/esm/presentation/automations/scheduledEmail/state/types.js +2 -0
  65. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDialogRegionProps.d.ts +105 -0
  66. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDialogRegionProps.d.ts.map +1 -0
  67. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDialogRegionProps.js +196 -0
  68. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailExportSettings.d.ts +3 -11
  69. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailExportSettings.d.ts.map +1 -1
  70. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailExportSettings.js +10 -8
  71. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFiltersModel.d.ts +2 -20
  72. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFiltersModel.d.ts.map +1 -1
  73. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFiltersModel.js +1 -1
  74. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFormState.d.ts +3 -20
  75. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFormState.d.ts.map +1 -1
  76. package/esm/presentation/automations/scheduledEmail/state/useScheduledExportAttachments.d.ts +2 -2
  77. package/esm/presentation/automations/scheduledEmail/state/useScheduledExportAttachments.d.ts.map +1 -1
  78. package/esm/presentation/automations/scheduledEmail/state/useScheduledExportAttachments.js +3 -4
  79. package/esm/presentation/automations/scheduledEmail/types.d.ts +38 -7
  80. package/esm/presentation/automations/scheduledEmail/types.d.ts.map +1 -1
  81. package/esm/presentation/automations/shared/slots/AutomationDialogActionBar.d.ts +25 -0
  82. package/esm/presentation/automations/shared/slots/AutomationDialogActionBar.d.ts.map +1 -0
  83. package/esm/presentation/automations/shared/slots/AutomationDialogActionBar.js +22 -0
  84. package/esm/presentation/automations/shared/slots/types.d.ts +53 -26
  85. package/esm/presentation/automations/shared/slots/types.d.ts.map +1 -1
  86. package/esm/presentation/dashboardContexts/ExportCsvDialogContext.d.ts +1 -2
  87. package/esm/presentation/dashboardContexts/ExportCsvDialogContext.d.ts.map +1 -1
  88. package/esm/presentation/dialogs/ExportCsvDialog.d.ts +0 -1
  89. package/esm/presentation/dialogs/ExportCsvDialog.d.ts.map +1 -1
  90. package/esm/presentation/dialogs/ExportCsvDialog.js +2 -2
  91. package/esm/presentation/dialogs/ExportCsvDialogProvider.d.ts.map +1 -1
  92. package/esm/presentation/dialogs/ExportCsvDialogProvider.js +1 -1
  93. package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts +12 -16
  94. package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts.map +1 -1
  95. package/esm/presentation/localization/bundles/de-DE.localization-bundle.js +12 -16
  96. package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts +12 -16
  97. package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts.map +1 -1
  98. package/esm/presentation/localization/bundles/en-AU.localization-bundle.js +14 -18
  99. package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts +12 -16
  100. package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts.map +1 -1
  101. package/esm/presentation/localization/bundles/en-GB.localization-bundle.js +14 -18
  102. package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +0 -60
  103. package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
  104. package/esm/presentation/localization/bundles/en-US.localization-bundle.js +0 -60
  105. package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts +12 -16
  106. package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts.map +1 -1
  107. package/esm/presentation/localization/bundles/es-419.localization-bundle.js +14 -18
  108. package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts +10 -16
  109. package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts.map +1 -1
  110. package/esm/presentation/localization/bundles/es-ES.localization-bundle.js +12 -18
  111. package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts +12 -16
  112. package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts.map +1 -1
  113. package/esm/presentation/localization/bundles/fi-FI.localization-bundle.js +14 -18
  114. package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts +12 -16
  115. package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts.map +1 -1
  116. package/esm/presentation/localization/bundles/fr-CA.localization-bundle.js +14 -18
  117. package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts +12 -16
  118. package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts.map +1 -1
  119. package/esm/presentation/localization/bundles/fr-FR.localization-bundle.js +14 -18
  120. package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts +12 -16
  121. package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts.map +1 -1
  122. package/esm/presentation/localization/bundles/id-ID.localization-bundle.js +14 -18
  123. package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts +12 -16
  124. package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts.map +1 -1
  125. package/esm/presentation/localization/bundles/it-IT.localization-bundle.js +14 -18
  126. package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts +12 -16
  127. package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts.map +1 -1
  128. package/esm/presentation/localization/bundles/ja-JP.localization-bundle.js +12 -16
  129. package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts +12 -16
  130. package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts.map +1 -1
  131. package/esm/presentation/localization/bundles/ko-KR.localization-bundle.js +14 -18
  132. package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts +12 -16
  133. package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts.map +1 -1
  134. package/esm/presentation/localization/bundles/nl-NL.localization-bundle.js +14 -18
  135. package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts +12 -16
  136. package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts.map +1 -1
  137. package/esm/presentation/localization/bundles/pl-PL.localization-bundle.js +14 -18
  138. package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts +12 -16
  139. package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts.map +1 -1
  140. package/esm/presentation/localization/bundles/pt-BR.localization-bundle.js +16 -20
  141. package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts +12 -16
  142. package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts.map +1 -1
  143. package/esm/presentation/localization/bundles/pt-PT.localization-bundle.js +16 -20
  144. package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts +12 -16
  145. package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts.map +1 -1
  146. package/esm/presentation/localization/bundles/ru-RU.localization-bundle.js +14 -18
  147. package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts +12 -16
  148. package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts.map +1 -1
  149. package/esm/presentation/localization/bundles/sl-SI.localization-bundle.js +14 -18
  150. package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts +12 -16
  151. package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts.map +1 -1
  152. package/esm/presentation/localization/bundles/th-TH.localization-bundle.js +14 -18
  153. package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts +12 -16
  154. package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts.map +1 -1
  155. package/esm/presentation/localization/bundles/tr-TR.localization-bundle.js +14 -18
  156. package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts +12 -16
  157. package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts.map +1 -1
  158. package/esm/presentation/localization/bundles/uk-UA.localization-bundle.js +14 -18
  159. package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts +12 -16
  160. package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts.map +1 -1
  161. package/esm/presentation/localization/bundles/vi-VN.localization-bundle.js +14 -18
  162. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts +12 -16
  163. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts.map +1 -1
  164. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.js +12 -16
  165. package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts +12 -16
  166. package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts.map +1 -1
  167. package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.js +14 -18
  168. package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts +12 -16
  169. package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts.map +1 -1
  170. package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.js +14 -18
  171. package/esm/presentation/widget/common/useInsightExport.d.ts.map +1 -1
  172. package/esm/presentation/widget/common/useInsightExport.js +2 -4
  173. package/esm/sdk-ui-dashboard.d.ts +123 -36
  174. package/package.json +25 -25
  175. package/styles/css/main.css +369 -0
  176. package/styles/css/main.css.map +1 -1
  177. package/esm/_staging/dateFilterConfig/fixtures.d.ts +0 -10
  178. package/esm/_staging/dateFilterConfig/fixtures.d.ts.map +0 -1
  179. package/esm/_staging/dateFilterConfig/fixtures.js +0 -60
  180. package/esm/_staging/layout/coordinates.mock.d.ts +0 -17
  181. package/esm/_staging/layout/coordinates.mock.d.ts.map +0 -1
  182. package/esm/_staging/layout/coordinates.mock.js +0 -103
  183. package/esm/model/commandHandlers/filterContext/filterViewParameters.d.ts +0 -8
  184. package/esm/model/commandHandlers/filterContext/filterViewParameters.d.ts.map +0 -1
  185. package/esm/model/commandHandlers/filterContext/filterViewParameters.js +0 -9
  186. package/esm/model/fixtures/CatalogAvailability.fixtures.d.ts +0 -14
  187. package/esm/model/fixtures/CatalogAvailability.fixtures.d.ts.map +0 -1
  188. package/esm/model/fixtures/CatalogAvailability.fixtures.js +0 -57
  189. package/esm/model/fixtures/ComplexDashboard.fixtures.d.ts +0 -56
  190. package/esm/model/fixtures/ComplexDashboard.fixtures.d.ts.map +0 -1
  191. package/esm/model/fixtures/ComplexDashboard.fixtures.js +0 -71
  192. package/esm/model/fixtures/Dashboard.fixtures.d.ts +0 -10
  193. package/esm/model/fixtures/Dashboard.fixtures.d.ts.map +0 -1
  194. package/esm/model/fixtures/Dashboard.fixtures.js +0 -13
  195. package/esm/model/fixtures/Insights.fixtures.d.ts +0 -6
  196. package/esm/model/fixtures/Insights.fixtures.d.ts.map +0 -1
  197. package/esm/model/fixtures/Insights.fixtures.js +0 -11
  198. package/esm/model/fixtures/Layout.fixtures.d.ts +0 -14
  199. package/esm/model/fixtures/Layout.fixtures.d.ts.map +0 -1
  200. package/esm/model/fixtures/Layout.fixtures.js +0 -115
  201. package/esm/model/fixtures/SimpleDashboard.fixtures.d.ts +0 -46
  202. package/esm/model/fixtures/SimpleDashboard.fixtures.d.ts.map +0 -1
  203. package/esm/model/fixtures/SimpleDashboard.fixtures.js +0 -315
  204. package/esm/model/fixtures/SimpleDashboardNoDrills.fixtures.d.ts +0 -28
  205. package/esm/model/fixtures/SimpleDashboardNoDrills.fixtures.d.ts.map +0 -1
  206. package/esm/model/fixtures/SimpleDashboardNoDrills.fixtures.js +0 -40
  207. package/esm/plugins/customizationApis/fixtures/TestingDashboardCustomizationLogger.d.ts +0 -16
  208. package/esm/plugins/customizationApis/fixtures/TestingDashboardCustomizationLogger.d.ts.map +0 -1
  209. package/esm/plugins/customizationApis/fixtures/TestingDashboardCustomizationLogger.js +0 -30
  210. package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/AlertDropdown.d.ts +0 -3
  211. package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/AlertDropdown.d.ts.map +0 -1
  212. package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/AlertDropdown.js +0 -46
  213. package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/PauseAlertRunner.d.ts +0 -11
  214. package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/PauseAlertRunner.d.ts.map +0 -1
  215. package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/PauseAlertRunner.js +0 -31
  216. package/esm/presentation/automations/alerting/state/fixtures.d.ts +0 -13
  217. package/esm/presentation/automations/alerting/state/fixtures.d.ts.map +0 -1
  218. package/esm/presentation/automations/alerting/state/fixtures.js +0 -37
  219. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useFiltersForDashboardScheduledExportInfo.d.ts +0 -19
  220. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useFiltersForDashboardScheduledExportInfo.d.ts.map +0 -1
  221. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useFiltersForDashboardScheduledExportInfo.js +0 -28
  222. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.d.ts +0 -13
  223. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.d.ts.map +0 -1
  224. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.js +0 -56
  225. package/esm/presentation/automations/scheduledEmail/state/fixtures.d.ts +0 -18
  226. package/esm/presentation/automations/scheduledEmail/state/fixtures.d.ts.map +0 -1
  227. package/esm/presentation/automations/scheduledEmail/state/fixtures.js +0 -105
  228. package/esm/presentation/automations/shared/automationFilters/parameterFixtures.d.ts +0 -5
  229. package/esm/presentation/automations/shared/automationFilters/parameterFixtures.d.ts.map +0 -1
  230. package/esm/presentation/automations/shared/automationFilters/parameterFixtures.js +0 -22
  231. package/esm/presentation/automations/shared/test/fixtures.d.ts +0 -9
  232. package/esm/presentation/automations/shared/test/fixtures.d.ts.map +0 -1
  233. package/esm/presentation/automations/shared/test/fixtures.js +0 -101
  234. package/esm/presentation/dashboard/components/DashboardMainContent.d.ts +0 -3
  235. package/esm/presentation/dashboard/components/DashboardMainContent.d.ts.map +0 -1
  236. package/esm/presentation/dashboard/components/DashboardMainContent.js +0 -39
  237. package/esm/presentation/dragAndDrop/draggableWidget/DraggableKpiCreatePanelItem.d.ts +0 -16
  238. package/esm/presentation/dragAndDrop/draggableWidget/DraggableKpiCreatePanelItem.d.ts.map +0 -1
  239. package/esm/presentation/dragAndDrop/draggableWidget/DraggableKpiCreatePanelItem.js +0 -17
  240. package/esm/presentation/dragAndDrop/draggableWidget/KpiDraggingComponent.d.ts +0 -3
  241. package/esm/presentation/dragAndDrop/draggableWidget/KpiDraggingComponent.d.ts.map +0 -1
  242. package/esm/presentation/dragAndDrop/draggableWidget/KpiDraggingComponent.js +0 -9
  243. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/DeleteButton.d.ts +0 -6
  244. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/DeleteButton.d.ts.map +0 -1
  245. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/DeleteButton.js +0 -10
  246. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/common/DropdownControls.d.ts +0 -8
  247. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/common/DropdownControls.d.ts.map +0 -1
  248. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/common/DropdownControls.js +0 -14
  249. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/ConfigurationButton.d.ts +0 -6
  250. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/ConfigurationButton.d.ts.map +0 -1
  251. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/ConfigurationButton.js +0 -8
  252. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormButton.d.ts +0 -8
  253. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormButton.d.ts.map +0 -1
  254. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormButton.js +0 -10
  255. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormDropdown.d.ts +0 -8
  256. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormDropdown.d.ts.map +0 -1
  257. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormDropdown.js +0 -33
  258. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormItem.d.ts +0 -8
  259. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormItem.d.ts.map +0 -1
  260. package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormItem.js +0 -33
  261. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayout.d.ts +0 -17
  262. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayout.d.ts.map +0 -1
  263. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayout.js +0 -18
  264. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutItemRenderer.d.ts +0 -12
  265. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutItemRenderer.d.ts.map +0 -1
  266. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutItemRenderer.js +0 -26
  267. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutMocks.d.ts +0 -20
  268. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutMocks.d.ts.map +0 -1
  269. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutMocks.js +0 -95
  270. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutRowRenderer.d.ts +0 -14
  271. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutRowRenderer.d.ts.map +0 -1
  272. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutRowRenderer.js +0 -9
  273. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionBorder.d.ts +0 -9
  274. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionBorder.d.ts.map +0 -1
  275. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionBorder.js +0 -17
  276. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionBorderMarker.d.ts +0 -6
  277. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionBorderMarker.d.ts.map +0 -1
  278. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionBorderMarker.js +0 -10
  279. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionHeader.d.ts +0 -9
  280. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionHeader.d.ts.map +0 -1
  281. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionHeader.js +0 -14
  282. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionHeaderRenderer.d.ts +0 -8
  283. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionHeaderRenderer.d.ts.map +0 -1
  284. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionHeaderRenderer.js +0 -49
  285. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionRenderer.d.ts +0 -7
  286. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionRenderer.d.ts.map +0 -1
  287. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionRenderer.js +0 -33
  288. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutTypes.d.ts +0 -62
  289. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutTypes.d.ts.map +0 -1
  290. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutTypes.js +0 -2
  291. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutWidget.d.ts +0 -11
  292. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutWidget.d.ts.map +0 -1
  293. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutWidget.js +0 -4
  294. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutWidgetRenderer.d.ts +0 -8
  295. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutWidgetRenderer.d.ts.map +0 -1
  296. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutWidgetRenderer.js +0 -28
  297. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/LayoutTypes.d.ts +0 -26
  298. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/LayoutTypes.d.ts.map +0 -1
  299. package/esm/presentation/flexibleLayout/useInKD/DashboardEditLayout/LayoutTypes.js +0 -21
  300. package/esm/presentation/widget/common/configuration/AttributeFilterConfiguration.d.ts +0 -7
  301. package/esm/presentation/widget/common/configuration/AttributeFilterConfiguration.d.ts.map +0 -1
  302. package/esm/presentation/widget/common/configuration/AttributeFilterConfiguration.js +0 -39
  303. package/esm/presentation/widget/common/useWidgetBrokenAlertsQuery.d.ts +0 -9
  304. package/esm/presentation/widget/common/useWidgetBrokenAlertsQuery.d.ts.map +0 -1
  305. package/esm/presentation/widget/common/useWidgetBrokenAlertsQuery.js +0 -26
  306. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelector.d.ts +0 -7
  307. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelector.d.ts.map +0 -1
  308. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelector.js +0 -37
  309. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorBody.d.ts +0 -8
  310. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorBody.d.ts.map +0 -1
  311. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorBody.js +0 -15
  312. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorItem.d.ts +0 -7
  313. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorItem.d.ts.map +0 -1
  314. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorItem.js +0 -8
  315. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorList.d.ts +0 -7
  316. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorList.d.ts.map +0 -1
  317. package/esm/presentation/widget/insight/configuration/DrillMeasureSelector/DrillMeasureSelectorList.js +0 -5
  318. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTitle.d.ts +0 -12
  319. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTitle.d.ts.map +0 -1
  320. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTitle.js +0 -12
  321. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts +0 -25
  322. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts.map +0 -1
  323. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.js +0 -5
  324. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts +0 -29
  325. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts.map +0 -1
  326. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js +0 -137
  327. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.d.ts +0 -11
  328. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.d.ts.map +0 -1
  329. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.js +0 -42
  330. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts +0 -48
  331. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts.map +0 -1
  332. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js +0 -171
  333. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useWidgetAutomationFilters.d.ts +0 -4
  334. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useWidgetAutomationFilters.d.ts.map +0 -1
  335. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useWidgetAutomationFilters.js +0 -46
@@ -1,8 +0,0 @@
1
- import { type IAttributeDisplayFormMetadataObject, type ObjRef } from "@gooddata/sdk-model";
2
- export interface IAttributeDisplayFormDropdownProps {
3
- displayForms: IAttributeDisplayFormMetadataObject[];
4
- selectedDisplayForm: ObjRef;
5
- onChange: (displayForm: ObjRef) => void;
6
- }
7
- export declare function DisplayFormDropdown({ displayForms, selectedDisplayForm, onChange }: IAttributeDisplayFormDropdownProps): import("react/jsx-runtime").JSX.Element;
8
- //# sourceMappingURL=DisplayFormDropdown.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DisplayFormDropdown.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormDropdown.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,mCAAmC,EAAE,KAAK,MAAM,EAAmB,MAAM,qBAAqB,CAAC;AAmB7G,MAAM,WAAW,kCAAkC;IAC/C,YAAY,EAAE,mCAAmC,EAAE,CAAC;IACpD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,QAAQ,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C;AAED,wBAAgB,mBAAmB,CAAC,EAChC,YAAY,EACZ,mBAAmB,EACnB,QAAQ,EACX,EAAE,kCAAkC,2CA2CpC"}
@@ -1,33 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- // (C) 2021-2025 GoodData Corporation
3
- import { areObjRefsEqual } from "@gooddata/sdk-model";
4
- import { Dropdown, DropdownList } from "@gooddata/sdk-ui-kit";
5
- import { DisplayFormButton } from "./DisplayFormButton.js";
6
- import { DisplayDropdownItem } from "./DisplayFormItem.js";
7
- const ITEM_HEIGHT = 23;
8
- const DROPDOWN_WIDTH = 225;
9
- const ALIGN_POINTS = [
10
- {
11
- align: "bl tl",
12
- offset: { x: 0, y: 1 },
13
- },
14
- {
15
- align: "tl bl",
16
- offset: { x: 0, y: -1 },
17
- },
18
- ];
19
- export function DisplayFormDropdown({ displayForms, selectedDisplayForm, onChange, }) {
20
- const getButtonLabel = () => displayForms.find((displayForm) => {
21
- return areObjRefsEqual(displayForm.ref, selectedDisplayForm);
22
- })?.title || "";
23
- return (_jsx(Dropdown, { alignPoints: ALIGN_POINTS, renderButton: ({ isOpen, toggleDropdown }) => (_jsx(DisplayFormButton, { text: getButtonLabel(), isOpened: isOpen, toggleDropdown: toggleDropdown })), renderBody: ({ closeDropdown }) => (_jsx(DropdownList, { className: "attribute-display-form-dropdown-body s-attribute-display-form-dropdown-body", items: displayForms, itemHeight: ITEM_HEIGHT, width: DROPDOWN_WIDTH, renderItem: ({ item }) => {
24
- const selected = areObjRefsEqual(item.ref, selectedDisplayForm);
25
- const onClick = (displayForm) => {
26
- closeDropdown();
27
- if (!selected) {
28
- onChange(displayForm);
29
- }
30
- };
31
- return (_jsx(DisplayDropdownItem, { displayForm: item, onClick: onClick, selected: selected }, item.id));
32
- } })) }));
33
- }
@@ -1,8 +0,0 @@
1
- import { type IAttributeDisplayFormMetadataObject, type ObjRef } from "@gooddata/sdk-model";
2
- export interface IDisplayFormDropdownItemProps {
3
- displayForm: IAttributeDisplayFormMetadataObject;
4
- onClick: (displayForm: ObjRef) => void;
5
- selected: boolean;
6
- }
7
- export declare function DisplayDropdownItem({ displayForm, selected, onClick }: IDisplayFormDropdownItemProps): import("react/jsx-runtime").JSX.Element;
8
- //# sourceMappingURL=DisplayFormItem.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DisplayFormItem.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/displayFormDropdown/DisplayFormItem.tsx"],"names":[],"mappings":"AAMA,OAAO,EAEH,KAAK,mCAAmC,EACxC,KAAK,MAAM,EACd,MAAM,qBAAqB,CAAC;AAwB7B,MAAM,WAAW,6BAA6B;IAC1C,WAAW,EAAE,mCAAmC,CAAC;IACjD,OAAO,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,QAAQ,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,mBAAmB,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,6BAA6B,2CAwBpG"}
@@ -1,33 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import classNames from "classnames";
3
- import { ShortenedText } from "@gooddata/sdk-ui-kit";
4
- import { simplifyText } from "@gooddata/util";
5
- const getDisplayFormIcon = (type) => {
6
- switch (type) {
7
- case "GDC.link":
8
- return "gd-icon-hyperlink-warning";
9
- case "GDC.image":
10
- return "gd-icon-image";
11
- case "GDC.geo.pin":
12
- case "GDC.geo.pin_latitude":
13
- case "GDC.geo.pin_longitude":
14
- return "gd-icon-earth";
15
- default:
16
- return "gd-icon-label-warning";
17
- }
18
- };
19
- const tooltipAlignPoints = [
20
- { align: "cl cr", offset: { x: -10, y: 0 } },
21
- { align: "cr cl", offset: { x: 10, y: 0 } },
22
- ];
23
- export function DisplayDropdownItem({ displayForm, selected, onClick }) {
24
- const { title } = displayForm;
25
- const className = classNames("gd-list-item", "attribute-display-form-name", "s-attribute-display-form-name", `s-attribute-display-form-name-${simplifyText(title)}`, getDisplayFormIcon(displayForm.displayFormType), {
26
- "is-selected": selected,
27
- });
28
- const handleOnClick = (e) => {
29
- onClick(displayForm.ref);
30
- e.preventDefault();
31
- };
32
- return (_jsx("div", { className: className, onClick: handleOnClick, children: _jsx(ShortenedText, { tooltipAlignPoints: tooltipAlignPoints, children: title }) }));
33
- }
@@ -1,17 +0,0 @@
1
- import { type IDashboardEditLayout } from "./DashboardEditLayoutTypes.js";
2
- export interface IDashboardEditLayoutStateProps {
3
- isDragging?: boolean;
4
- isResizingColumn?: boolean;
5
- isResizingRow?: boolean;
6
- shouldRenderSectionHotspots?: boolean;
7
- layout: IDashboardEditLayout;
8
- rowIdsByRowOrder?: any;
9
- shouldUseRowRenderer?: boolean;
10
- isEditMode?: boolean;
11
- }
12
- export interface IDashboardEditLayoutDispatchProps {
13
- removeDropZones?: () => void;
14
- }
15
- export type IDashboardEditLayoutProps = IDashboardEditLayoutStateProps & IDashboardEditLayoutDispatchProps;
16
- export declare function RenderDashboardEditLayout({ layout, rowIdsByRowOrder, shouldUseRowRenderer }: IDashboardEditLayoutProps): import("react/jsx-runtime").JSX.Element;
17
- //# sourceMappingURL=DashboardEditLayout.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DashboardEditLayout.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayout.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAG1E,MAAM,WAAW,8BAA8B;IAC3C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,MAAM,EAAE,oBAAoB,CAAC;IAC7B,gBAAgB,CAAC,EAAE,GAAG,CAAC;IACvB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,iCAAiC;IAC9C,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;CAChC;AAED,MAAM,MAAM,yBAAyB,GAAG,8BAA8B,GAAG,iCAAiC,CAAC;AAI3G,wBAAgB,yBAAyB,CAAC,EACtC,MAAM,EACN,gBAAgB,EAChB,oBAAoB,EACvB,EAAE,yBAAyB,2CAmC3B"}
@@ -1,18 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- // (C) 2007-2026 GoodData Corporation
3
- import { Fragment } from "react";
4
- import { objRefToString } from "@gooddata/sdk-model";
5
- import { DashboardLayout } from "../../DefaultDashboardLayoutRenderer/DashboardLayout.js";
6
- import { DashboardEditLayoutItemRenderer } from "./DashboardEditLayoutItemRenderer.js";
7
- import { DashboardEditLayoutRowRenderer } from "./DashboardEditLayoutRowRenderer.js";
8
- import { DashboardEditLayoutSectionHeaderRenderer } from "./DashboardEditLayoutSectionHeaderRenderer.js";
9
- import { DashboardEditLayoutSectionRenderer } from "./DashboardEditLayoutSectionRenderer.js";
10
- import { DashboardEditLayoutWidgetRenderer } from "./DashboardEditLayoutWidgetRenderer.js";
11
- const screen = "xl"; // Todo: figure out what this was supposed to be?
12
- export function RenderDashboardEditLayout({ layout, rowIdsByRowOrder, shouldUseRowRenderer, }) {
13
- return (layout && (
14
- // @ts-expect-error Unknown
15
- _jsx(DashboardLayout, { layout: layout, sectionKeyGetter: (p) => rowIdsByRowOrder?.[p.section.index()] ?? p.section.index().toString(), sectionRenderer: (renderProps) => _jsx(DashboardEditLayoutSectionRenderer, { ...renderProps }), sectionHeaderRenderer: (renderProps) => (_jsx(DashboardEditLayoutSectionHeaderRenderer, { ...renderProps })), itemKeyGetter: (p) =>
16
- // We want to rerender kpi/insight, when we resize the widget (to recalculate rendered visualization size).
17
- objRefToString(p.item.widget().ref) + p.item.sizeForScreen(p.screen).gridWidth, itemRenderer: (renderProps) => _jsx(DashboardEditLayoutItemRenderer, { ...renderProps }), widgetRenderer: (renderProps) => _jsx(DashboardEditLayoutWidgetRenderer, { ...renderProps }), gridRowRenderer: (renderProps) => shouldUseRowRenderer ? (_jsx(DashboardEditLayoutRowRenderer, { layoutItems: renderProps.items, screen: screen, section: renderProps.section, children: renderProps.children })) : (_jsx(Fragment, { children: renderProps.children })) })));
18
- }
@@ -1,12 +0,0 @@
1
- import { type ObjRef } from "@gooddata/sdk-model";
2
- import { type IDashboardLayoutItemRenderProps } from "../../DefaultDashboardLayoutRenderer/interfaces.js";
3
- import { type IDashboardEditLayoutContent } from "./DashboardEditLayoutTypes.js";
4
- export interface IDashboardEditLayoutItemRendererStateProps {
5
- hiddenWidgetRef?: ObjRef;
6
- }
7
- export type IDashboardEditLayoutItemRendererOwnProps = IDashboardLayoutItemRenderProps<IDashboardEditLayoutContent>;
8
- export type IDashboardEditLayoutItemRendererProps = IDashboardEditLayoutItemRendererOwnProps & IDashboardEditLayoutItemRendererStateProps;
9
- export declare function RenderDashboardEditLayoutItemRenderer(props: IDashboardEditLayoutItemRendererProps): import("react/jsx-runtime").JSX.Element;
10
- export declare const DashboardEditLayoutItemRenderer: typeof RenderDashboardEditLayoutItemRenderer;
11
- export declare const isHiddenContent: (content: IDashboardEditLayoutContent, hiddenWidgetRef: ObjRef) => boolean;
12
- //# sourceMappingURL=DashboardEditLayoutItemRenderer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DashboardEditLayoutItemRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutItemRenderer.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAA0B,MAAM,qBAAqB,CAAC;AAG1E,OAAO,EAAE,KAAK,+BAA+B,EAAE,MAAM,oDAAoD,CAAC;AAE1G,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAEjF,MAAM,WAAW,0CAA0C;IACvD,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,MAAM,wCAAwC,GAChD,+BAA+B,CAAC,2BAA2B,CAAC,CAAC;AAEjE,MAAM,MAAM,qCAAqC,GAAG,wCAAwC,GACxF,0CAA0C,CAAC;AAE/C,wBAAgB,qCAAqC,CAAC,KAAK,EAAE,qCAAqC,2CAqBjG;AAED,eAAO,MAAM,+BAA+B,8CAAwC,CAAC;AAErF,eAAO,MAAM,eAAe,4EAM3B,CAAC"}
@@ -1,26 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- // (C) 2007-2026 GoodData Corporation
3
- import cx from "classnames";
4
- import { areObjRefsEqual, idRef } from "@gooddata/sdk-model";
5
- import { DashboardLayoutItemViewRenderer } from "../../DefaultDashboardLayoutRenderer/DashboardLayoutItemViewRenderer.js";
6
- export function RenderDashboardEditLayoutItemRenderer(props) {
7
- const { children, item, hiddenWidgetRef = idRef("hiddenWidget") } = props;
8
- const content = item.widget();
9
- const isLastInSection = item.isLastInSection();
10
- const isLastSection = item.section().isLast();
11
- const isLast = isLastSection && isLastInSection;
12
- const className = cx({
13
- last: content?.type === "widget" ? isLast : false,
14
- });
15
- const isHidden = content && isHiddenContent(content, hiddenWidgetRef);
16
- return (
17
- // @ts-expect-error Unknown
18
- _jsx(DashboardLayoutItemViewRenderer, { isHidden: isHidden, ...props, className: className, children: children }));
19
- }
20
- export const DashboardEditLayoutItemRenderer = RenderDashboardEditLayoutItemRenderer;
21
- export const isHiddenContent = (content, hiddenWidgetRef) => {
22
- if (content.type === "widgetDropzoneHotspot") {
23
- return areObjRefsEqual(content.widgetRef, hiddenWidgetRef);
24
- }
25
- return areObjRefsEqual(content.ref, hiddenWidgetRef);
26
- };
@@ -1,20 +0,0 @@
1
- import { type ObjRef } from "@gooddata/sdk-model";
2
- import { type VisType } from "@gooddata/sdk-ui";
3
- import { type IDashboardEditLayout, type IDashboardEditLayoutContent, type IDashboardEditLayoutContentWidget, type IDashboardEditLayoutContentWidgetDropzone, type IDashboardEditLayoutContentWidgetDropzoneHotspot, type IDashboardEditLayoutContentWidgetKpiPlaceholder, type IDashboardEditLayoutContentWidgetNewInsightPlaceholder } from "./DashboardEditLayoutTypes.js";
4
- import { DropZoneType, WidgetPosition } from "./LayoutTypes.js";
5
- export type DashboardEditLayoutContentGenerator = (ref: ObjRef, rowId?: string) => IDashboardEditLayoutContent;
6
- export type DashboardEditLayoutRowMock = {
7
- title?: string;
8
- description?: string;
9
- isDropzone?: boolean;
10
- contentGeneratorColumnWidthAndHeightAsRatioTuples: ([DashboardEditLayoutContentGenerator, number, number | undefined] | [DashboardEditLayoutContentGenerator, number] | [DashboardEditLayoutContentGenerator])[];
11
- };
12
- export declare const widgetMock: () => (ref: ObjRef) => IDashboardEditLayoutContentWidget;
13
- export declare const widgetDropzoneMock: (visType?: VisType, isInitialDropzone?: boolean, position?: WidgetPosition) => (ref: ObjRef) => IDashboardEditLayoutContentWidgetDropzone;
14
- export declare const widgetDropzoneHotspotMock: (widgetRef: ObjRef, dropZoneType?: DropZoneType) => (ref: ObjRef) => IDashboardEditLayoutContentWidgetDropzoneHotspot;
15
- export declare const widgetKpiPlaceholderMock: () => (ref: ObjRef) => IDashboardEditLayoutContentWidgetKpiPlaceholder;
16
- export declare const widgetNewInsightPlaceholderMock: () => (ref: ObjRef) => IDashboardEditLayoutContentWidgetNewInsightPlaceholder;
17
- export declare const rowMock: (contentGeneratorColumnWidthAndHeightAsRatioTuples: ([DashboardEditLayoutContentGenerator] | [DashboardEditLayoutContentGenerator, number] | [DashboardEditLayoutContentGenerator, number, number | undefined])[], title?: string | undefined, description?: string | undefined, isDropzone?: boolean | undefined) => DashboardEditLayoutRowMock;
18
- export declare const getWidgetMockRef: (itemIndex: number, sectionIndex: number) => import("@gooddata/sdk-model").IdentifierRef;
19
- export declare const layoutMock: (rowMocks: DashboardEditLayoutRowMock[]) => IDashboardEditLayout;
20
- //# sourceMappingURL=DashboardEditLayoutMocks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DashboardEditLayoutMocks.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutMocks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,MAAM,EAAS,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAIhD,OAAO,EACH,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,iCAAiC,EACtC,KAAK,yCAAyC,EAC9C,KAAK,gDAAgD,EACrD,KAAK,+CAA+C,EACpD,KAAK,sDAAsD,EAE9D,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEhE,MAAM,MAAM,mCAAmC,GAAG,CAC9C,GAAG,EAAE,MAAM,EACX,KAAK,CAAC,EAAE,MAAM,KACb,2BAA2B,CAAC;AACjC,MAAM,MAAM,0BAA0B,GAAG;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iDAAiD,EAAE,CAC7C,CAAC,mCAAmC,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,GACjE,CAAC,mCAAmC,EAAE,MAAM,CAAC,GAC7C,CAAC,mCAAmC,CAAC,CAC1C,EAAE,CAAC;CACP,CAAC;AAEF,eAAO,MAAM,UAAU,0DAOlB,CAAC;AAEN,eAAO,MAAM,kBAAkB,2IAgB1B,CAAC;AAEN,eAAO,MAAM,yBAAyB,uHASjC,CAAC;AAEN,eAAO,MAAM,wBAAwB,wEAOhC,CAAC;AAEN,eAAO,MAAM,+BAA+B,+EAOvC,CAAC;AAEN,eAAO,MAAM,OAAO,kVAgBnB,CAAC;AAEF,eAAO,MAAM,gBAAgB,0FACuB,CAAC;AAErD,eAAO,MAAM,UAAU,kEAkDtB,CAAC"}
@@ -1,95 +0,0 @@
1
- // (C) 2007-2026 GoodData Corporation
2
- import { idRef } from "@gooddata/sdk-model";
3
- import { newInsight } from "../../../../_staging/insight/insightBuilder.js";
4
- import { DropZoneType, WidgetPosition } from "./LayoutTypes.js";
5
- export const widgetMock = () => (ref) => {
6
- return {
7
- type: "widget",
8
- ref,
9
- };
10
- };
11
- export const widgetDropzoneMock = (visType = "bar", isInitialDropzone = false, position = WidgetPosition.next) => (ref) => {
12
- return {
13
- type: "widgetDropzone",
14
- dragZoneWidget: {
15
- dropzone: {
16
- ref,
17
- widgetType: "insight",
18
- content: newInsight(`local:${visType}`, (m) => m.title("Some vis").uri("gdc/some/vis")),
19
- isInitialDropzone,
20
- position,
21
- },
22
- },
23
- ref,
24
- };
25
- };
26
- export const widgetDropzoneHotspotMock = (widgetRef, dropZoneType = DropZoneType.next) => (ref) => {
27
- return {
28
- type: "widgetDropzoneHotspot",
29
- dropZoneType,
30
- ref,
31
- widgetRef,
32
- };
33
- };
34
- export const widgetKpiPlaceholderMock = () => (ref) => {
35
- return {
36
- type: "widgetKpiPlaceholder",
37
- ref,
38
- };
39
- };
40
- export const widgetNewInsightPlaceholderMock = () => (ref) => {
41
- return {
42
- type: "widgetNewInsightPlaceholder",
43
- ref,
44
- };
45
- };
46
- export const rowMock = (contentGeneratorColumnWidthAndHeightAsRatioTuples, title, description, isDropzone) => {
47
- return {
48
- contentGeneratorColumnWidthAndHeightAsRatioTuples,
49
- title,
50
- description,
51
- isDropzone,
52
- };
53
- };
54
- export const getWidgetMockRef = (itemIndex, sectionIndex) => idRef(`widget_${itemIndex}_row_${sectionIndex}`);
55
- export const layoutMock = (rowMocks) => {
56
- const emptyLayout = {
57
- type: "IDashboardLayout",
58
- sections: [],
59
- };
60
- return rowMocks.reduce((acc, rowMock, sectionIndex) => {
61
- const rowId = `row_${sectionIndex}`;
62
- if (!acc.sections[sectionIndex]) {
63
- acc.sections[sectionIndex] = {
64
- type: "IDashboardLayoutSection",
65
- items: [],
66
- ...(rowMock.title || rowMock.description
67
- ? {
68
- header: {
69
- title: rowMock.title,
70
- description: rowMock.description,
71
- },
72
- }
73
- : {}),
74
- };
75
- }
76
- return rowMock.contentGeneratorColumnWidthAndHeightAsRatioTuples.reduce((acc2, [contentGenerator, gridWidth = 12, heightAsRatio = undefined], itemIndex) => {
77
- const widgetRef = getWidgetMockRef(itemIndex, sectionIndex);
78
- const widget = contentGenerator(widgetRef, rowId);
79
- const item = {
80
- type: "IDashboardLayoutItem",
81
- size: {
82
- xl: {
83
- gridWidth,
84
- },
85
- },
86
- widget,
87
- };
88
- if (heightAsRatio) {
89
- item.size.xl.heightAsRatio = heightAsRatio;
90
- }
91
- acc2.sections[sectionIndex].items[itemIndex] = item;
92
- return acc2;
93
- }, acc);
94
- }, emptyLayout);
95
- };
@@ -1,14 +0,0 @@
1
- import { type ReactNode } from "react";
2
- import { type ScreenSize } from "@gooddata/sdk-model";
3
- import { type IDashboardLayoutItemFacade, type IDashboardLayoutSectionFacade } from "../../../../_staging/dashboard/flexibleLayout/facade/interfaces.js";
4
- import { type IDashboardEditLayoutContent } from "./DashboardEditLayoutTypes.js";
5
- export interface IDashboardEditLayoutRowRendererOwnProps {
6
- layoutItems: IDashboardLayoutItemFacade<IDashboardEditLayoutContent>[];
7
- screen: ScreenSize;
8
- section: IDashboardLayoutSectionFacade<IDashboardEditLayoutContent>;
9
- children?: ReactNode;
10
- }
11
- export type IDashboardEditLayoutRowRendererProps = IDashboardEditLayoutRowRendererOwnProps;
12
- export declare function RenderDashboardEditLayoutRowRenderer({ children }: IDashboardEditLayoutRowRendererProps): import("react/jsx-runtime").JSX.Element;
13
- export declare const DashboardEditLayoutRowRenderer: typeof RenderDashboardEditLayoutRowRenderer;
14
- //# sourceMappingURL=DashboardEditLayoutRowRenderer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DashboardEditLayoutRowRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutRowRenderer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAY,KAAK,SAAS,EAAU,MAAM,OAAO,CAAC;AAEzD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,OAAO,EACH,KAAK,0BAA0B,EAC/B,KAAK,6BAA6B,EACrC,MAAM,oEAAoE,CAAC;AAE5E,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAEjF,MAAM,WAAW,uCAAuC;IACpD,WAAW,EAAE,0BAA0B,CAAC,2BAA2B,CAAC,EAAE,CAAC;IACvE,MAAM,EAAE,UAAU,CAAC;IACnB,OAAO,EAAE,6BAA6B,CAAC,2BAA2B,CAAC,CAAC;IACpE,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAED,MAAM,MAAM,oCAAoC,GAAG,uCAAuC,CAAC;AAE3F,wBAAgB,oCAAoC,CAAC,EAAE,QAAQ,EAAE,EAAE,oCAAoC,2CAQtG;AAED,eAAO,MAAM,8BAA8B,6CAAuC,CAAC"}
@@ -1,9 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- // (C) 2007-2026 GoodData Corporation
3
- import { Fragment, useRef } from "react";
4
- export function RenderDashboardEditLayoutRowRenderer({ children }) {
5
- const rowId = "rowId";
6
- const contentRef = useRef(null);
7
- return (_jsx("div", { ref: contentRef, className: "gd-fluid-layout-row s-gd-fluid-layout-row", children: _jsx(Fragment, { children: children }) }, rowId));
8
- }
9
- export const DashboardEditLayoutRowRenderer = RenderDashboardEditLayoutRowRenderer;
@@ -1,9 +0,0 @@
1
- import { type ReactNode } from "react";
2
- export type DashboardEditLayoutSectionBorderStatus = "active" | "muted" | "invisible";
3
- interface IDashboardEditLayoutSectionBorderProps {
4
- children?: ReactNode;
5
- status: DashboardEditLayoutSectionBorderStatus;
6
- }
7
- export declare function DashboardEditLayoutSectionBorder(props: IDashboardEditLayoutSectionBorderProps): import("react/jsx-runtime").JSX.Element;
8
- export {};
9
- //# sourceMappingURL=DashboardEditLayoutSectionBorder.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DashboardEditLayoutSectionBorder.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionBorder.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAMjD,MAAM,MAAM,sCAAsC,GAAG,QAAQ,GAAG,OAAO,GAAG,WAAW,CAAC;AAEtF,UAAU,sCAAsC;IAC5C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,sCAAsC,CAAC;CAClD;AAED,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,sCAAsC,2CA0B7F"}
@@ -1,17 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // (C) 2019-2026 GoodData Corporation
3
- import { Fragment } from "react";
4
- import cx from "classnames";
5
- import { DashboardEditLayoutSectionBorderMarker } from "./DashboardEditLayoutSectionBorderMarker.js";
6
- export function DashboardEditLayoutSectionBorder(props) {
7
- return (_jsxs(Fragment, { children: [
8
- _jsxs("div", { className: classNames("top", props.status), children: [
9
- _jsx(DashboardEditLayoutSectionBorderMarker, { className: "gd-fluidlayout-row-separator-icon gd-fluidlayout-row-separator-icon-left", active: props.status === "active" }), _jsx(DashboardEditLayoutSectionBorderMarker, { className: "gd-fluidlayout-row-separator-icon gd-fluidlayout-row-separator-icon-right", active: props.status === "active" })
10
- ] }), props.children, _jsxs("div", { className: classNames("bottom", props.status), children: [
11
- _jsx(DashboardEditLayoutSectionBorderMarker, { className: "gd-fluidlayout-row-separator-icon gd-fluidlayout-row-separator-icon-left", active: props.status === "active" }), _jsx(DashboardEditLayoutSectionBorderMarker, { className: "gd-fluidlayout-row-separator-icon gd-fluidlayout-row-separator-icon-right", active: props.status === "active" })
12
- ] })
13
- ] }));
14
- }
15
- function classNames(position, status) {
16
- return cx("gd-fluidlayout-row-separator", "s-fluidlayout-row-separator", position, status);
17
- }
@@ -1,6 +0,0 @@
1
- export interface IDashboardEditLayoutSectionBorderMarkerProps {
2
- active?: boolean;
3
- className?: string;
4
- }
5
- export declare function DashboardEditLayoutSectionBorderMarker({ active, className }: IDashboardEditLayoutSectionBorderMarkerProps): import("react/jsx-runtime").JSX.Element;
6
- //# sourceMappingURL=DashboardEditLayoutSectionBorderMarker.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DashboardEditLayoutSectionBorderMarker.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionBorderMarker.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,4CAA4C;IACzD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,sCAAsC,CAAC,EACnD,MAAM,EACN,SAAS,EACZ,EAAE,4CAA4C,2CAsB9C"}
@@ -1,10 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // (C) 2020-2026 GoodData Corporation
3
- import { GD_COLOR_HIGHLIGHT, GD_COLOR_WHITE, INFO_TEXT_COLOR } from "@gooddata/sdk-ui-kit";
4
- export function DashboardEditLayoutSectionBorderMarker({ active, className, }) {
5
- const background = active ? `var(--gd-palette-primary-base, ${GD_COLOR_HIGHLIGHT})` : "#E6E6E6";
6
- const color = active ? GD_COLOR_WHITE : INFO_TEXT_COLOR;
7
- return (_jsx("svg", { width: "20", height: "20", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", className: className, children: _jsxs("g", { fill: "none", fillRule: "evenodd", children: [
8
- _jsx("circle", { cx: "10", cy: "10", r: "10", fill: background }), _jsx("path", { d: "M6.5 9.5H14c.2761424 0 .5.22385763.5.5 0 .2761424-.2238576.5-.5.5H6.5V14c0 .2761424-.22385763.5-.5.5-.27614237 0-.5-.2238576-.5-.5V6c0-.27614237.22385763-.5.5-.5.27614237 0 .5.22385763.5.5v3.5z", fill: color, fillRule: "nonzero" })
9
- ] }) }));
10
- }
@@ -1,9 +0,0 @@
1
- export interface IDashboardEditLayoutSectionHeaderOwnProps {
2
- title: string;
3
- description: string;
4
- rowId: string;
5
- }
6
- export type IDashboardEditLayoutSectionHeaderProps = IDashboardEditLayoutSectionHeaderOwnProps;
7
- export declare function RenderDashboardEditLayoutSectionHeader({ description, title }: IDashboardEditLayoutSectionHeaderProps): import("react/jsx-runtime").JSX.Element;
8
- export declare const DashboardEditLayoutSectionHeader: typeof RenderDashboardEditLayoutSectionHeader;
9
- //# sourceMappingURL=DashboardEditLayoutSectionHeader.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DashboardEditLayoutSectionHeader.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionHeader.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,yCAAyC;IACtD,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,sCAAsC,GAAG,yCAAyC,CAAC;AAE/F,wBAAgB,sCAAsC,CAAC,EACnD,WAAW,EACX,KAAK,EACR,EAAE,sCAAsC,2CAexC;AAED,eAAO,MAAM,gCAAgC,+CAAyC,CAAC"}
@@ -1,14 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- // (C) 2019-2026 GoodData Corporation
3
- import { DashboardLayoutEditSectionHeader } from "../../DefaultDashboardLayoutRenderer/DashboardLayoutEditSectionHeader.js";
4
- export function RenderDashboardEditLayoutSectionHeader({ description, title, }) {
5
- const isDashboardEditing = true;
6
- return (_jsx(DashboardLayoutEditSectionHeader
7
- // @ts-expect-error this is weird, who did this?
8
- , {
9
- // @ts-expect-error this is weird, who did this?
10
- title: title, description: description, renderHeader: isDashboardEditing
11
- ? "<SectionHeaderEditable title={title} description={description} rowId={rowId} />"
12
- : null }));
13
- }
14
- export const DashboardEditLayoutSectionHeader = RenderDashboardEditLayoutSectionHeader;
@@ -1,8 +0,0 @@
1
- import { type IDashboardLayoutSectionHeaderRenderProps } from "../../DefaultDashboardLayoutRenderer/interfaces.js";
2
- import { type IDashboardEditLayoutContent } from "./DashboardEditLayoutTypes.js";
3
- type IDashboardLayoutSectionHeaderRendererOwnProps = IDashboardLayoutSectionHeaderRenderProps<IDashboardEditLayoutContent>;
4
- type IDashboardLayoutSectionHeaderRendererProps = IDashboardLayoutSectionHeaderRendererOwnProps;
5
- export declare function RenderDashboardEditLayoutSectionHeaderRenderer(props: IDashboardLayoutSectionHeaderRendererProps): import("react/jsx-runtime").JSX.Element | null;
6
- export declare const DashboardEditLayoutSectionHeaderRenderer: typeof RenderDashboardEditLayoutSectionHeaderRenderer;
7
- export {};
8
- //# sourceMappingURL=DashboardEditLayoutSectionHeaderRenderer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DashboardEditLayoutSectionHeaderRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionHeaderRenderer.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,wCAAwC,EAAE,MAAM,oDAAoD,CAAC;AAGnH,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAEjF,KAAK,6CAA6C,GAC9C,wCAAwC,CAAC,2BAA2B,CAAC,CAAC;AAE1E,KAAK,0CAA0C,GAAG,6CAA6C,CAAC;AAkChG,wBAAgB,8CAA8C,CAC1D,KAAK,EAAE,0CAA0C,kDA+BpD;AAED,eAAO,MAAM,wCAAwC,uDAAiD,CAAC"}
@@ -1,49 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { DashboardLayoutItemViewRenderer } from "../../DefaultDashboardLayoutRenderer/DashboardLayoutItemViewRenderer.js";
3
- import { DashboardEditLayoutSectionHeader } from "./DashboardEditLayoutSectionHeader.js";
4
- const emptyItemFacadeWithFullSize = {
5
- ref: () => undefined,
6
- index: () => [{ sectionIndex: 0, itemIndex: 0 }],
7
- raw: () => null,
8
- widget: () => null,
9
- section: () => undefined,
10
- size: () => ({ xl: { gridWidth: 12 } }),
11
- sizeForScreen: () => ({ gridWidth: 12 }),
12
- isLastInSection: () => true,
13
- isLastInRow: (_screen) => true,
14
- widgetEquals: () => false,
15
- widgetIs: () => false,
16
- isEmpty: () => false,
17
- hasSizeForScreen: () => false,
18
- indexIs: () => false,
19
- isFirstInSection: () => true,
20
- test: () => false,
21
- testRaw: () => false,
22
- isCustomItem: () => false,
23
- isInsightWidgetDefinitionItem: () => false,
24
- isInsightWidgetItem: () => false,
25
- isKpiWidgetDefinitionItem: () => false,
26
- isKpiWidgetItem: () => false,
27
- isLayoutItem: () => false,
28
- isWidgetDefinitionItem: () => false,
29
- isWidgetItem: () => false,
30
- isWidgetItemWithInsightRef: () => false,
31
- isWidgetItemWithKpiRef: () => false,
32
- isWidgetItemWithRef: () => false,
33
- sizeForScreenWithFallback: (_screen) => undefined,
34
- };
35
- export function RenderDashboardEditLayoutSectionHeaderRenderer(props) {
36
- const { section, DefaultSectionHeaderRenderer } = props;
37
- const rowId = "rowId";
38
- const hasJustOneDropZone = false;
39
- const isDashboardEditing = true; // TODO state?
40
- const header = section.header();
41
- if (hasJustOneDropZone) {
42
- return null;
43
- }
44
- if (isDashboardEditing) {
45
- return (_jsx(DashboardLayoutItemViewRenderer, { DefaultItemRenderer: DashboardLayoutItemViewRenderer, item: emptyItemFacadeWithFullSize, rowIndex: 0, children: _jsx(DashboardEditLayoutSectionHeader, { title: header?.title || "", description: header?.description || "", rowId: rowId }) }));
46
- }
47
- return _jsx(DefaultSectionHeaderRenderer, { ...props });
48
- }
49
- export const DashboardEditLayoutSectionHeaderRenderer = RenderDashboardEditLayoutSectionHeaderRenderer;
@@ -1,7 +0,0 @@
1
- import { type IDashboardLayoutSectionRenderProps } from "../../DefaultDashboardLayoutRenderer/interfaces.js";
2
- import { type IDashboardEditLayoutContent } from "./DashboardEditLayoutTypes.js";
3
- export type IDashboardEditLayoutSectionRendererOwnProps = IDashboardLayoutSectionRenderProps<IDashboardEditLayoutContent>;
4
- export type IDashboardEditLayoutSectionRendererProps = IDashboardEditLayoutSectionRendererOwnProps;
5
- export declare function RenderDashboardEditLayoutSectionRenderer(props: IDashboardEditLayoutSectionRendererProps): import("react/jsx-runtime").JSX.Element;
6
- export declare const DashboardEditLayoutSectionRenderer: typeof RenderDashboardEditLayoutSectionRenderer;
7
- //# sourceMappingURL=DashboardEditLayoutSectionRenderer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DashboardEditLayoutSectionRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutSectionRenderer.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,kCAAkC,EAAE,MAAM,oDAAoD,CAAC;AAG7G,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAEjF,MAAM,MAAM,2CAA2C,GACnD,kCAAkC,CAAC,2BAA2B,CAAC,CAAC;AAEpE,MAAM,MAAM,wCAAwC,GAAG,2CAA2C,CAAC;AACnG,wBAAgB,wCAAwC,CAAC,KAAK,EAAE,wCAAwC,2CA6CvG;AAED,eAAO,MAAM,kCAAkC,iDAA2C,CAAC"}
@@ -1,33 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- // (C) 2007-2026 GoodData Corporation
3
- import { useCallback, useState } from "react";
4
- import cx from "classnames";
5
- import { DashboardEditLayoutSectionBorder } from "./DashboardEditLayoutSectionBorder.js";
6
- export function RenderDashboardEditLayoutSectionRenderer(props) {
7
- const { DefaultSectionRenderer, section, children } = props;
8
- const { isDragging, isRowDropzoneVisible, activeHeaderRowId, rowId } = {
9
- isDragging: false,
10
- activeHeaderRowId: "active row id",
11
- isRowDropzoneVisible: false,
12
- rowId: "row id",
13
- };
14
- const [isActive, setIsActive] = useState(false);
15
- const markRowAsActive = useCallback(() => setIsActive(true), [setIsActive]);
16
- const markRowAsInactive = useCallback(() => setIsActive(false), [setIsActive]);
17
- const isActivatedByHeader = rowId === activeHeaderRowId;
18
- const isRowActive = (isActive || isActivatedByHeader) && isRowDropzoneVisible;
19
- const className = cx({
20
- active: isRowActive,
21
- });
22
- let rowBorderStatus = isRowActive ? "active" : "muted";
23
- if (!isDragging && !isActivatedByHeader) {
24
- rowBorderStatus = "invisible";
25
- }
26
- const isHiddenSection = section.items().all().length === 0; //hide empty sections
27
- return (_jsx(DefaultSectionRenderer, { ...props, isHidden: isHiddenSection, className: className, ...(isDragging && {
28
- onMouseEnter: markRowAsActive,
29
- onMouseLeave: markRowAsInactive,
30
- onMouseOver: markRowAsActive,
31
- }), children: _jsx(DashboardEditLayoutSectionBorder, { status: rowBorderStatus, children: children }) }));
32
- }
33
- export const DashboardEditLayoutSectionRenderer = RenderDashboardEditLayoutSectionRenderer;
@@ -1,62 +0,0 @@
1
- import { type IDashboardLayout, type IDashboardLayoutItem, type IDashboardLayoutSection, type ObjRef } from "@gooddata/sdk-model";
2
- import { type DropZoneType, type IDragZoneWidget } from "./LayoutTypes.js";
3
- export type DashboardEditLayoutContentType = "widget" | "widgetDropzone" | "widgetDropzoneHotspot" | "widgetKpiPlaceholder" | "widgetNewInsightPlaceholder";
4
- export interface IDashboardEditLayoutContentBase {
5
- /**
6
- * Dashboard edit layout content type - widget or drag and drop widget.
7
- */
8
- type: DashboardEditLayoutContentType;
9
- /**
10
- * Persisted widget identifier/uri, or widget temporary identifier
11
- * for widgets added in edit mode (or custom drag and drop widgets).
12
- */
13
- ref: ObjRef;
14
- }
15
- export interface IDashboardEditLayoutContentWidget extends IDashboardEditLayoutContentBase {
16
- /**
17
- * Type
18
- */
19
- type: "widget";
20
- }
21
- export interface IDashboardEditLayoutContentWidgetDropzone extends IDashboardEditLayoutContentBase {
22
- /**
23
- * Type
24
- */
25
- type: "widgetDropzone";
26
- /**
27
- * Drag and drop widget details
28
- */
29
- dragZoneWidget: IDragZoneWidget;
30
- }
31
- export interface IDashboardEditLayoutContentWidgetDropzoneHotspot extends IDashboardEditLayoutContentBase {
32
- /**
33
- * Type
34
- */
35
- type: "widgetDropzoneHotspot";
36
- /**
37
- * Persisted widget identifier/uri, or widget temporary identifier
38
- * for widgets added in edit mode.
39
- */
40
- widgetRef: ObjRef;
41
- /**
42
- * Drop zone position (prev / next)
43
- */
44
- dropZoneType: DropZoneType;
45
- }
46
- export interface IDashboardEditLayoutContentWidgetKpiPlaceholder extends IDashboardEditLayoutContentBase {
47
- /**
48
- * Type
49
- */
50
- type: "widgetKpiPlaceholder";
51
- }
52
- export interface IDashboardEditLayoutContentWidgetNewInsightPlaceholder extends IDashboardEditLayoutContentBase {
53
- /**
54
- * Type
55
- */
56
- type: "widgetNewInsightPlaceholder";
57
- }
58
- export type IDashboardEditLayoutContent = IDashboardEditLayoutContentWidget | IDashboardEditLayoutContentWidgetDropzone | IDashboardEditLayoutContentWidgetDropzoneHotspot | IDashboardEditLayoutContentWidgetKpiPlaceholder | IDashboardEditLayoutContentWidgetNewInsightPlaceholder;
59
- export type IDashboardEditLayoutItem = IDashboardLayoutItem<IDashboardEditLayoutContent>;
60
- export type IDashboardEditLayoutSection = IDashboardLayoutSection<IDashboardEditLayoutContent>;
61
- export type IDashboardEditLayout = IDashboardLayout<IDashboardEditLayoutContent>;
62
- //# sourceMappingURL=DashboardEditLayoutTypes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DashboardEditLayoutTypes.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/useInKD/DashboardEditLayout/DashboardEditLayoutTypes.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,MAAM,EACd,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAE3E,MAAM,MAAM,8BAA8B,GACpC,QAAQ,GACR,gBAAgB,GAChB,uBAAuB,GACvB,sBAAsB,GACtB,6BAA6B,CAAC;AAEpC,MAAM,WAAW,+BAA+B;IAC5C;;OAEG;IACH,IAAI,EAAE,8BAA8B,CAAC;IAErC;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iCAAkC,SAAQ,+BAA+B;IACtF;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAC;CAClB;AAED,MAAM,WAAW,yCAA0C,SAAQ,+BAA+B;IAC9F;;OAEG;IACH,IAAI,EAAE,gBAAgB,CAAC;IAEvB;;OAEG;IACH,cAAc,EAAE,eAAe,CAAC;CACnC;AAED,MAAM,WAAW,gDAAiD,SAAQ,+BAA+B;IACrG;;OAEG;IACH,IAAI,EAAE,uBAAuB,CAAC;IAE9B;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,YAAY,EAAE,YAAY,CAAC;CAC9B;AAED,MAAM,WAAW,+CAAgD,SAAQ,+BAA+B;IACpG;;OAEG;IACH,IAAI,EAAE,sBAAsB,CAAC;CAChC;AAED,MAAM,WAAW,sDAAuD,SAAQ,+BAA+B;IAC3G;;OAEG;IACH,IAAI,EAAE,6BAA6B,CAAC;CACvC;AAED,MAAM,MAAM,2BAA2B,GACjC,iCAAiC,GACjC,yCAAyC,GACzC,gDAAgD,GAChD,+CAA+C,GAC/C,sDAAsD,CAAC;AAE7D,MAAM,MAAM,wBAAwB,GAAG,oBAAoB,CAAC,2BAA2B,CAAC,CAAC;AAEzF,MAAM,MAAM,2BAA2B,GAAG,uBAAuB,CAAC,2BAA2B,CAAC,CAAC;AAE/F,MAAM,MAAM,oBAAoB,GAAG,gBAAgB,CAAC,2BAA2B,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- // (C) 2019-2026 GoodData Corporation
2
- export {};