@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
@@ -443,73 +443,11 @@
443
443
  "comment": "",
444
444
  "limit": 0
445
445
  },
446
- "dialogs.schedule.email.filters": {
447
- "value": "Dashboard contains filter changes that will be saved in the schedule.",
448
- "comment": "",
449
- "limit": 0
450
- },
451
- "dialogs.schedule.email.filters.not.saved": {
452
- "value": "Dashboard filters saved in the schedule will not be affected.",
453
- "comment": "",
454
- "limit": 0
455
- },
456
- "dialogs.schedule.email.attachment.filter": {
457
- "value": "(with currently set filters)",
458
- "comment": "Keep the parentheses. Attachment with filters included.",
459
- "limit": 0
460
- },
461
- "dialogs.schedule.email.attachment.label": {
462
- "value": "Attachment",
463
- "comment": "Attachment of the scheduled email.",
464
- "limit": 0
465
- },
466
446
  "dialogs.schedule.email.attachments.label": {
467
447
  "value": "Attachments",
468
448
  "comment": "Attachments of the scheduled email.",
469
449
  "limit": 0
470
450
  },
471
- "dialogs.schedule.email.attachment.select": {
472
- "value": "Select attachments",
473
- "comment": "Label of a button that opens attachment selection",
474
- "limit": 0
475
- },
476
- "dialogs.schedule.email.attachment.select.disabled.message|insight": {
477
- "value": "This dashboard does not contain any visualizations.",
478
- "comment": "Message for button to add visualizations to the export, if there are no visualizations.",
479
- "limit": 0
480
- },
481
- "dialogs.schedule.email.attachment.select.disabled.message|report": {
482
- "value": "This dashboard does not contain any reports.",
483
- "comment": "Message for button to add reports to the export, if there are no reports.",
484
- "limit": 0,
485
- "translate": false
486
- },
487
- "dialogs.schedule.email.attachment.select.dashboard.header": {
488
- "value": "Dashboard (PDF)",
489
- "comment": "Heading of checkbox that selects dashboard to be exported in PDF file format",
490
- "limit": 0
491
- },
492
- "dialogs.schedule.email.attachment.select.widgets.header|report": {
493
- "value": "Reports (CSV, XLSX)",
494
- "comment": "Heading of section of checkboxes for selecting reports to be exported as CSV of XLSX file",
495
- "limit": 0,
496
- "translate": false
497
- },
498
- "dialogs.schedule.email.attachment.select.widgets.header|insight": {
499
- "value": "Visualizations (CSV, XLSX)",
500
- "comment": "Heading of section of checkboxes for selecting visualizations to be exported as CSV of XLSX file",
501
- "limit": 0
502
- },
503
- "dialogs.schedule.email.headline": {
504
- "value": "Schedule email delivery",
505
- "comment": "Translate as imperative. Schedule emailing whole KPI dashboard.",
506
- "limit": 0
507
- },
508
- "dialogs.schedule.email.heading": {
509
- "value": "Schedule export",
510
- "comment": "Translate as imperative. Schedule exporting whole dashboard and visualizations",
511
- "limit": 0
512
- },
513
451
  "dialogs.schedule.email.title.placeholder": {
514
452
  "value": "Untitled schedule",
515
453
  "comment": "Placeholder for schedule title input",
@@ -525,81 +463,11 @@
525
463
  "comment": "Message for recipients input when the maximum number of recipients is reached",
526
464
  "limit": 0
527
465
  },
528
- "dialogs.schedule.email.unsubscribed.recipients": {
529
- "value": "{n, plural, one {1 recipient unsubscribed} other {# recipients unsubscribed}} from this schedule.",
530
- "comment": "Translate only 'recipient unsubscribed'/'recipients unsubscribed' and 'from this schedule.' to form a proper sentence with correct plural form for given language",
531
- "limit": 0
532
- },
533
- "dialogs.schedule.email.repeats.label": {
534
- "value": "Repeats",
535
- "comment": "Count of repeats of the scheduled email.",
536
- "limit": 0
537
- },
538
- "dialogs.schedule.email.repeats.execute.on.dayOfMonth": {
539
- "value": "on day {date}",
540
- "comment": "Example 'on day 2 of January'. Placeholder '{date}' refers to ordinal number of day of the month. Don't translate placeholder '{date}'.",
541
- "limit": 0
542
- },
543
- "dialogs.schedule.email.repeats.execute.on.dayOfWeek": {
544
- "value": "on the {week, select, 1 {first} 2 {second} 3 {third} 4 {fourth} other {last}} {day}",
545
- "comment": "Example: 'on the first Friday'. Translate only uppercase in 'ON THE {week, select, 1 {FIRST} 2 {SECOND} 3 {THIRD} 4 {FOURTH} other {LAST}} {day}'",
546
- "limit": 0
547
- },
548
- "dialogs.schedule.email.repeats.every": {
549
- "value": "every",
550
- "comment": "Example 'every 1 month'. FIXME: This needs to be split into variants 'every day', 'every week', ... since some languages uses different gramatical gender for the 'every' based on the subject.",
551
- "limit": 0
552
- },
553
- "dialogs.schedule.email.repeats.frequencies.day": {
554
- "value": "{n, plural, one {day} other {days}}",
555
- "comment": "Translate only uppercase in '{n, plural, one {DAY} other {DAYS}}'.",
556
- "limit": 0
557
- },
558
- "dialogs.schedule.email.repeats.frequencies.month": {
559
- "value": "{n, plural, one {month} other {months}}",
560
- "comment": "Translate only uppercase in '{n, plural, one {MONTH} other {MONTHS}}'.",
561
- "limit": 0
562
- },
563
- "dialogs.schedule.email.repeats.frequencies.week": {
564
- "value": "{n, plural, one {week} other {weeks}}",
565
- "comment": "Translate only uppercase in '{n, plural, one {WEEK} other {WEEKS}}'.",
566
- "limit": 0
567
- },
568
- "dialogs.schedule.email.repeats.types.custom": {
569
- "value": "Custom",
570
- "comment": "Repeats the schedule email using custom rules defined by the user.",
571
- "limit": 0
572
- },
573
- "dialogs.schedule.email.repeats.types.cron": {
574
- "value": "Cron expression",
575
- "comment": "Repeats the automation schedule using cron expression.",
576
- "limit": 0
577
- },
578
- "dialogs.schedule.email.repeats.types.daily": {
579
- "value": "Daily",
580
- "comment": "Repeats the schedule email daily.",
581
- "limit": 0
582
- },
583
- "dialogs.schedule.email.repeats.types.monthly": {
584
- "value": "Monthly on the {week, select, 1 {first} 2 {second} 3 {third} 4 {fourth} other {last}} {day}",
585
- "comment": "Example: 'Monthly on the first Friday'. Translate only uppercase in 'MONTHLY ON THE {week, select, 1 {FIRST} 2 {SECOND} 3 {THIRD} 4 {FOURTH} other {LAST}} {day}'",
586
- "limit": 0
587
- },
588
- "dialogs.schedule.email.repeats.types.weekly": {
589
- "value": "Weekly on {day}",
590
- "comment": "Example: 'Weekly on Friday'. Placeholder '{day}' refers to a day of a week. Don't translate placeholder '{day}'.",
591
- "limit": 0
592
- },
593
466
  "dialogs.schedule.email.subject.label": {
594
467
  "value": "Subject",
595
468
  "comment": "Subject of the schedule email.",
596
469
  "limit": 0
597
470
  },
598
- "dialogs.schedule.email.time.label": {
599
- "value": "Starts on",
600
- "comment": "Translate as imperative. Date time of the schedule email.",
601
- "limit": 0
602
- },
603
471
  "dialogs.schedule.email.to.label": {
604
472
  "value": "To",
605
473
  "comment": "Emails of the schedule email.",
@@ -645,32 +513,11 @@
645
513
  "comment": "Translate as imperative. It's caption of a button for saving scheduled mail",
646
514
  "limit": 0
647
515
  },
648
- "dialogs.schedule.email.format.options": {
649
- "value": "Format options",
650
- "comment": "Header of a formatting dialog. Not an imperative!",
651
- "limit": 0
652
- },
653
- "dialogs.schedule.email.insight.format|insight": {
654
- "value": "Visualization format:",
655
- "comment": "Label of a dropdown for selecting export format",
656
- "limit": 0
657
- },
658
- "dialogs.schedule.email.insight.format|report": {
659
- "value": "Report format:",
660
- "comment": "Label of a dropdown for selecting export format",
661
- "limit": 0,
662
- "translate": false
663
- },
664
516
  "dialogs.schedule.email.attribute.merged": {
665
517
  "value": "Keep attribute cells merged",
666
518
  "comment": "Label of a checkbox field",
667
519
  "limit": 0
668
520
  },
669
- "dialogs.schedule.email.show.filters": {
670
- "value": "Show what filters are applied",
671
- "comment": "Label of a checkbox field",
672
- "limit": 0
673
- },
674
521
  "dialogs.schedule.management.title": {
675
522
  "value": "Scheduled exports",
676
523
  "comment": "",
@@ -711,42 +558,45 @@
711
558
  "comment": "",
712
559
  "limit": 0
713
560
  },
714
- "dialogs.schedule.management.recipients": {
715
- "value": "{n, plural, one {# recipient} other {# recipients}}",
716
- "comment": "Translate only uppercase in '{n, plural, one {# RECIPIENT} other {# RECIPIENTS}}'.",
561
+ "dialogs.schedule.management.attachments.filters.title": {
562
+ "value": "Dashboard filters",
563
+ "comment": "Title of dropdown for selected type of dashboard filters for attachment",
717
564
  "limit": 0
718
565
  },
719
- "dialogs.schedule.management.recipients.onlyYou": {
720
- "value": "Only you",
721
- "comment": "There is no other recipient than you.",
566
+ "dialogs.schedule.management.attachments.filters.using": {
567
+ "value": "using",
568
+ "comment": "Describes which filters will be used in the attachment",
722
569
  "limit": 0
723
570
  },
724
- "dialogs.schedule.management.attachments.dashboard": {
725
- "value": "Dashboard",
726
- "comment": "Type of attachment.",
571
+ "dialogs.schedule.management.attachments.filters.default": {
572
+ "value": "default dashboard filters",
573
+ "comment": "Attachment filters type title",
727
574
  "limit": 0
728
575
  },
729
- "dialogs.schedule.management.attachments.widgets|insight": {
730
- "value": "{n, plural, one {# visualization} other {# visualizations}}",
731
- "comment": "Translate only uppercase in '{n, plural, one {# VISUALIZATION} other {# VISUALIZATIONS}}'.",
576
+ "dialogs.schedule.management.attachments.filters.edited": {
577
+ "value": "edited dashboard filters",
578
+ "comment": "Attachment filters type title",
732
579
  "limit": 0
733
580
  },
734
- "dialogs.schedule.management.attachments.widgets|report": {
735
- "value": "{n, plural, one {# report} other {# reports}}",
736
- "comment": "Translate only uppercase in '{n, plural, one {# REPORT} other {# REPORTS}}'.",
737
- "limit": 0,
738
- "translate": false
581
+ "dialogs.schedule.management.attachments.filters.item.default": {
582
+ "value": "Use default filters",
583
+ "comment": "Attachment filters type item",
584
+ "limit": 0
739
585
  },
740
- "dialogs.schedule.management.attachments.mixed|insight": {
741
- "value": "Dashboard and {n, plural, one {# visualization} other {# visualizations}}",
742
- "comment": "In '{n, plural, one {# VISUALIZATION} other {# VISUALIZATIONS}}', translate only uppercase words.",
586
+ "dialogs.schedule.management.attachments.filters.item.edited": {
587
+ "value": "Use edited filters",
588
+ "comment": "Attachment filters type item",
743
589
  "limit": 0
744
590
  },
745
- "dialogs.schedule.management.attachments.mixed|report": {
746
- "value": "Dashboard and {n, plural, one {# report} other {# reports}}",
747
- "comment": "In '{n, plural, one {# REPORT} other {# REPORTS}}', translate only uppercase words.",
748
- "limit": 0,
749
- "translate": false
591
+ "dialogs.schedule.management.attachments.filters.item.tooltip": {
592
+ "value": "Default state of dashboard filters will be used in the scheduled export, even if the default values change in the future.",
593
+ "comment": "Attachment filters type tooltip",
594
+ "limit": 0
595
+ },
596
+ "dialogs.schedule.management.attachments.message": {
597
+ "value": "<strong>Note</strong>. Cross-filtering will not be applied in the scheduled export.",
598
+ "comment": "Message about used filters. Do not translate HTML tags.",
599
+ "limit": 0
750
600
  },
751
601
  "dialogs.schedule.management.load.error": {
752
602
  "value": "Failed to load. Try again later.",
@@ -758,26 +608,6 @@
758
608
  "comment": "",
759
609
  "limit": 0
760
610
  },
761
- "options.menu.schedule.email.recipient.invalid": {
762
- "value": "This is not a valid email address.",
763
- "comment": "Translate as imperative. Error message for recipient email address",
764
- "limit": 0
765
- },
766
- "options.menu.schedule.email.recipient.warning.existed": {
767
- "value": "You have already added this recipient.",
768
- "comment": "Translate as imperative. Warning email has been existed on recipient field in schedule email dialog",
769
- "limit": 0
770
- },
771
- "options.menu.schedule.email.recipient.warning.belong.workspace": {
772
- "value": "This email address does not belong to this workspace. The recipient may receive sensitive data.",
773
- "comment": "Translate as imperative. Warning email on recipient field in schedule email dialog",
774
- "limit": 0
775
- },
776
- "options.menu.schedule.email.recipient.external.not.allowed": {
777
- "value": "This email address does not belong to this workspace. Only the author of the schedule can add this email address.",
778
- "comment": "Translate as imperative. Warning email on recipient field in schedule email dialog",
779
- "limit": 0
780
- },
781
611
  "delete": {
782
612
  "value": "Delete",
783
613
  "comment": "",
@@ -793,6 +623,11 @@
793
623
  "comment": "",
794
624
  "limit": 0
795
625
  },
626
+ "save": {
627
+ "value": "Save",
628
+ "comment": "",
629
+ "limit": 0
630
+ },
796
631
  "gs.date.at": {
797
632
  "value": "at",
798
633
  "comment": "",
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultScheduledEmailDialog.d.ts","sourceRoot":"","sources":["../../../../src/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,EASH,SAAS,EAEZ,MAAM,sBAAsB,CAAC;AAkB9B,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAqBzD,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,0BAA0B,4BAyN5E;AAED;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAQ5E,CAAC;AAEF,wBAAgB,gCAAgC;;;;yBAOhB,SAAS;EASxC"}
1
+ {"version":3,"file":"DefaultScheduledEmailDialog.d.ts","sourceRoot":"","sources":["../../../../src/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,EASH,SAAS,EAEZ,MAAM,sBAAsB,CAAC;AAkB9B,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAqBzD,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,0BAA0B,4BA0N5E;AAED;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAQ5E,CAAC;AAEF,wBAAgB,gCAAgC;;;;yBAOhB,SAAS;EASxC"}
@@ -90,7 +90,7 @@ export function ScheduledMailDialogRenderer(props) {
90
90
  React.createElement(Textarea, { className: "gd-schedule-email-dialog-message s-gd-schedule-email-dialog-message", label: intl.formatMessage({ id: "dialogs.schedule.email.message.label" }), maxlength: MAX_MESSAGE_LENGTH, placeholder: intl.formatMessage({
91
91
  id: "dialogs.schedule.email.message.placeholder",
92
92
  }), rows: 3, onChange: onMessageChange, value: automation.details?.message ?? "" }),
93
- React.createElement(Attachments, { dashboardTitle: dashboardTitle, dashboardSelected: isDashboardExportSelected, onAttachmentsSelectionChanged: onAttachmentsChange }),
93
+ React.createElement(Attachments, { dashboardTitle: dashboardTitle, dashboardSelected: isDashboardExportSelected, onAttachmentsSelectionChanged: onAttachmentsChange, editSchedule: editSchedule }),
94
94
  savingErrorMessage ? (React.createElement(Message, { type: "error", className: "gd-schedule-email-dialog-error" }, savingErrorMessage)) : null,
95
95
  React.createElement(ContentDivider, { className: "gd-divider-with-margin gd-divider-full-row" })))),
96
96
  scheduledEmailToDelete ? (React.createElement(DeleteScheduleConfirmDialog, { scheduledEmail: scheduledEmailToDelete, onCancel: () => setScheduledEmailToDelete(null), onSuccess: handleScheduleDeleteSuccess, onError: onDeleteError })) : null));
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultScheduledEmailDialog.js","sourceRoot":"","sources":["../../../../src/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EACH,iBAAiB,EACjB,OAAO,EACP,cAAc,EACd,MAAM,EACN,aAAa,EACb,SAAS,EACT,cAAc,EACd,aAAa,EAEb,OAAO,GACV,MA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EAAE,sBAAsB,EACtC,QAAQ,EAAE,GAAG,EAAE,CAAC,yBAAyB,CAAC,IAAI,CAAC,EAC/C,SAAS,EAAE,2BAA2B,EACtC,OAAO,EAAE,aAAa,GACxB,CACL,CAAC,CAAC,CAAC,IAAI,CACT,CACN,CAAC;AACN,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAyC,CAAC,KAAK,EAAE,EAAE;IACvF,MAAM,MAAM,GAAG,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAElD,OAAO,CACH,oBAAC,WAAW,IAAC,MAAM,EAAE,MAAM;QACvB,oBAAC,2BAA2B,OAAK,KAAK,GAAI,CAChC,CACjB,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,UAAU,gCAAgC;IAC5C,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC;IACtD,MAAM,WAAW,GAAG;QAChB;YACI,KAAK,EAAE,UAAU;SACpB;KACJ,CAAC;IACF,MAAM,OAAO,GAAG,CAAC,SAAoB,EAAE,EAAE;QACrC,IAAI,SAAS,CAAC,GAAG,GAAG,CAAC,EAAE,CAAC;YACpB,aAAa,CAAC,OAAO,CAAC,CAAC;QAC3B,CAAC;aAAM,CAAC;YACJ,aAAa,CAAC,OAAO,CAAC,CAAC;QAC3B,CAAC;IACL,CAAC,CAAC;IAEF,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC;AACpC,CAAC"}
1
+ {"version":3,"file":"DefaultScheduledEmailDialog.js","sourceRoot":"","sources":["../../../../src/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EACH,i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R,oBAAC,cAAc,IAAC,SAAS,EAAC,4CAA4C,GAAG,CACvE,CACU,CACd;QACT,sBAAsB,CAAC,CAAC,CAAC,CACtB,oBAAC,2BAA2B,IACxB,cAAc,EAAE,sBAAsB,EACtC,QAAQ,EAAE,GAAG,EAAE,CAAC,yBAAyB,CAAC,IAAI,CAAC,EAC/C,SAAS,EAAE,2BAA2B,EACtC,OAAO,EAAE,aAAa,GACxB,CACL,CAAC,CAAC,CAAC,IAAI,CACT,CACN,CAAC;AACN,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAyC,CAAC,KAAK,EAAE,EAAE;IACvF,MAAM,MAAM,GAAG,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAElD,OAAO,CACH,oBAAC,WAAW,IAAC,MAAM,EAAE,MAAM;QACvB,oBAAC,2BAA2B,OAAK,KAAK,GAAI,CAChC,CACjB,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,UAAU,gCAAgC;IAC5C,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC;IACtD,MAAM,WAAW,GAAG;QAChB;YACI,KAAK,EAAE,UAAU;SACpB;KACJ,CAAC;IACF,MAAM,OAAO,GAAG,CAAC,SAAoB,EAAE,EAAE;QACrC,IAAI,SAAS,CAAC,GAAG,GAAG,CAAC,EAAE,CAAC;YACpB,aAAa,CAAC,OAAO,CAAC,CAAC;QAC3B,CAAC;aAAM,CAAC;YACJ,aAAa,CAAC,OAAO,CAAC,CAAC;QAC3B,CAAC;IACL,CAAC,CAAC;IAEF,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC;AACpC,CAAC"}
@@ -0,0 +1,30 @@
1
+ import React from "react";
2
+ import { IAttachmentFilterInfo } from "../../hooks/useAttachmentDashboardFilters.js";
3
+ interface IAttachmentFiltersProps {
4
+ filterType: AttachmentFilterType;
5
+ onChange: (type: AttachmentFilterType) => void;
6
+ /**
7
+ * Whole attachment content is hidden
8
+ */
9
+ hidden?: boolean;
10
+ /**
11
+ * We do not allow changing the filter type when disabled
12
+ */
13
+ disabled?: boolean;
14
+ /**
15
+ * Determines whether dropdown is available or not
16
+ */
17
+ useDropdown?: boolean;
18
+ /**
19
+ * Information about attachment filters
20
+ */
21
+ filters?: IAttachmentFilterInfo[];
22
+ }
23
+ /**
24
+ * edited - ad-hoc changed dashboard filters
25
+ * default - default dashboard filters stored in its filter context definition
26
+ */
27
+ export type AttachmentFilterType = "edited" | "default";
28
+ export declare const AttachmentFilters: React.FC<IAttachmentFiltersProps>;
29
+ export {};
30
+ //# sourceMappingURL=AttachmentFilters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttachmentFilters.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFilters.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAWxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAwBrF,UAAU,uBAAuB;IAC7B,UAAU,EAAE,oBAAoB,CAAC;IACjC,QAAQ,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAC/C;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,qBAAqB,EAAE,CAAC;CACrC;AAED;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG,SAAS,CAAC;AAOxD,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA2G/D,CAAC"}
@@ -0,0 +1,76 @@
1
+ // (C) 2024 GoodData Corporation
2
+ import React, { useState } from "react";
3
+ import { Bubble, BubbleHoverTrigger, Button, ContentDivider, Dropdown, } from "@gooddata/sdk-ui-kit";
4
+ import { FormattedMessage, useIntl } from "react-intl";
5
+ import { AttachmentFiltersList } from "./AttachmentFiltersList.js";
6
+ const DROPDOWN_ALIGN_POINTS = [
7
+ {
8
+ align: "bl tl",
9
+ offset: { x: 0, y: 0 },
10
+ },
11
+ {
12
+ align: "tl bl",
13
+ offset: { x: 0, y: 0 },
14
+ },
15
+ ];
16
+ const TOOLTIP_ALIGN_POINTS = [
17
+ {
18
+ align: "cr cl",
19
+ offset: { x: 0, y: -2 },
20
+ },
21
+ {
22
+ align: "cl cr",
23
+ offset: { x: 0, y: -2 },
24
+ },
25
+ ];
26
+ const buttonTitle = {
27
+ edited: "dialogs.schedule.management.attachments.filters.edited",
28
+ default: "dialogs.schedule.management.attachments.filters.default",
29
+ };
30
+ export const AttachmentFilters = (props) => {
31
+ const { filterType, onChange, hidden = false, disabled = false, useDropdown = true, filters } = props;
32
+ const [selectedType, setSelectedType] = useState(filterType);
33
+ const intl = useIntl();
34
+ const handleTypeChange = (type) => {
35
+ !disabled && setSelectedType(type);
36
+ };
37
+ const filtersButtonValue = intl.formatMessage({ id: buttonTitle[filterType] });
38
+ const filtersUsingMessage = intl.formatMessage({
39
+ id: "dialogs.schedule.management.attachments.filters.using",
40
+ });
41
+ if (hidden) {
42
+ return null;
43
+ }
44
+ return (React.createElement("div", null, useDropdown ? (React.createElement(Dropdown, { alignPoints: DROPDOWN_ALIGN_POINTS, renderButton: ({ toggleDropdown }) => (React.createElement("div", { className: "gd-attachment-filters-dropdown-button" },
45
+ filtersUsingMessage,
46
+ React.createElement(Button, { className: "gd-button-link-dimmed s-attachment-filters-dropdown-button", value: intl.formatMessage({ id: buttonTitle[filterType] }), onClick: toggleDropdown }))), renderBody: ({ closeDropdown }) => (React.createElement("div", { className: "gd-attachment-filters-dropdown" },
47
+ React.createElement("div", { className: "gd-list-title" },
48
+ React.createElement(FormattedMessage, { id: "dialogs.schedule.management.attachments.filters.title" }),
49
+ React.createElement("div", { className: "gd-close-button" },
50
+ React.createElement(Button, { className: "gd-button-link gd-button-icon-only gd-icon-cross s-dialog-close-button", value: "", onClick: closeDropdown }))),
51
+ React.createElement("div", { className: "gd-attachment-filters-dropdown-content" },
52
+ React.createElement("label", { className: "input-radio-label" },
53
+ React.createElement("input", { type: "radio", className: "input-radio", name: "filterType", onChange: () => handleTypeChange("edited"), checked: selectedType === "edited", disabled: selectedType !== "edited" && disabled }),
54
+ React.createElement("span", { className: "input-label-text" },
55
+ React.createElement(FormattedMessage, { id: "dialogs.schedule.management.attachments.filters.item.edited" }))),
56
+ React.createElement(AttachmentFiltersList, { filters: filters }),
57
+ React.createElement("label", { className: "input-radio-label" },
58
+ React.createElement("input", { type: "radio", className: "input-radio", name: "filterType", onChange: () => handleTypeChange("default"), checked: selectedType === "default", disabled: selectedType !== "default" && disabled }),
59
+ React.createElement("span", { className: "input-label-text" },
60
+ React.createElement(FormattedMessage, { id: "dialogs.schedule.management.attachments.filters.item.default" }),
61
+ React.createElement(BubbleHoverTrigger, null,
62
+ React.createElement("span", { className: "gd-icon-circle-question" }),
63
+ React.createElement(Bubble, { alignPoints: TOOLTIP_ALIGN_POINTS },
64
+ React.createElement(FormattedMessage, { id: "dialogs.schedule.management.attachments.filters.item.tooltip" })))))),
65
+ React.createElement(ContentDivider, { className: "gd-divider-without-margin" }),
66
+ React.createElement("div", { className: "gd-attachment-filters-dropdown-footer" },
67
+ React.createElement(Button, { value: intl.formatMessage({ id: "cancel" }), className: "gd-button-secondary", onClick: closeDropdown }),
68
+ React.createElement(Button, { value: intl.formatMessage({ id: "save" }), className: "gd-button-action", onClick: () => {
69
+ onChange(selectedType);
70
+ closeDropdown();
71
+ }, disabled: selectedType === filterType })))) })) : (React.createElement("span", null,
72
+ filtersUsingMessage,
73
+ "\u00A0",
74
+ filtersButtonValue))));
75
+ };
76
+ //# sourceMappingURL=AttachmentFilters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttachmentFilters.js","sourceRoot":"","sources":["../../../../../../src/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFilters.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EACH,MAAM,EACN,kBAAkB,EAClB,MAAM,EACN,cAAc,EACd,QAAQ,GAEX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAGnE,MAAM,qBAAqB,GAAkB;IACzC;QACI,KAAK,EAAE,OAAO;QACd,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;KACzB;IACD;QACI,KAAK,EAAE,OAAO;QACd,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;KACzB;CACJ,CAAC;AAEF,MAAM,oBAAoB,GAAkB;IACxC;QACI,KAAK,EAAE,OAAO;QACd,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE;KAC1B;IACD;QACI,KAAK,EAAE,OAAO;QACd,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE;KAC1B;CACJ,CAAC;AA6BF,MAAM,WAAW,GAAG;IAChB,MAAM,EAAE,wDAAwD;IAChE,OAAO,EAAE,yDAAyD;CACrE,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAsC,CAAC,KAAK,EAAE,EAAE;IAC1E,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,GAAG,KAAK,EAAE,QAAQ,GAAG,KAAK,EAAE,WAAW,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IACtG,MAAM,CAAC,YAAY,EAAE,eAAe,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BAAC,MAAM,IACH,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,EACzC,SAAS,EAAC,kBAAkB,EAC5B,OAAO,EAAE,GAAG,EAAE;wBACV,QAAQ,CAAC,YAAY,CAAC,CAAC;wBACvB,aAAa,EAAE,CAAC;oBACpB,CAAC,EACD,QAAQ,EAAE,YAAY,KAAK,UAAU,GACvC,CACA,CACJ,CACT,GACH,CACL,CAAC,CAAC,CAAC,CACA;QACK,mBAAmB;;QAAQ,kBAAkB,CAC3C,CACV,CACC,CACT,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { IAttachmentFilterInfo } from "../../hooks/useAttachmentDashboardFilters.js";
3
+ interface IAttachmentFiltersListProps {
4
+ filters?: IAttachmentFilterInfo[];
5
+ }
6
+ export declare const AttachmentFiltersList: React.FC<IAttachmentFiltersListProps>;
7
+ export {};
8
+ //# sourceMappingURL=AttachmentFiltersList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttachmentFiltersList.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFiltersList.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAErF,UAAU,2BAA2B;IACjC,OAAO,CAAC,EAAE,qBAAqB,EAAE,CAAC;CACrC;AAED,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAYvE,CAAC"}
@@ -0,0 +1,14 @@
1
+ // (C) 2024 GoodData Corporation
2
+ import React from "react";
3
+ export const AttachmentFiltersList = ({ filters }) => {
4
+ if (!filters) {
5
+ return null;
6
+ }
7
+ return (React.createElement("div", { className: "gd-attachment-filters-list" }, filters.map((filter) => (React.createElement(FilterListItem, { key: filter.id, title: filter.title, subtitle: filter.subtitle })))));
8
+ };
9
+ const FilterListItem = ({ title, subtitle }) => {
10
+ return (React.createElement("div", { className: "gd-attachment-filters-list-item" },
11
+ React.createElement("div", { className: "gd-attachment-filters-list-item-title", title: subtitle }, title),
12
+ React.createElement("div", { className: "gd-attachment-filters-list-item-subtitle", title: subtitle }, subtitle)));
13
+ };
14
+ //# sourceMappingURL=AttachmentFiltersList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttachmentFiltersList.js","sourceRoot":"","sources":["../../../../../../src/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFiltersList.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,MAAM,CAAC,MAAM,qBAAqB,GAA0C,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;IACxF,IAAI,CAAC,OAAO,EAAE,CAAC;QACX,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,OAAO,CACH,6BAAK,SAAS,EAAC,4BAA4B,IACtC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACrB,oBAAC,cAAc,IAAC,GAAG,EAAE,MAAM,CAAC,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,GAAI,CACrF,CAAC,CACA,CACT,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,cAAc,GAAkD,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC1F,OAAO,CACH,6BAAK,SAAS,EAAC,iCAAiC;QAC5C,6BAAK,SAAS,EAAC,uCAAuC,EAAC,KAAK,EAAE,QAAQ,IACjE,KAAK,CACJ;QACN,6BAAK,SAAS,EAAC,0CAA0C,EAAC,KAAK,EAAE,QAAQ,IACpE,QAAQ,CACP,CACJ,CACT,CAAC;AACN,CAAC,CAAC"}
@@ -1,8 +1,10 @@
1
- import * as React from "react";
1
+ import React from "react";
2
+ import { FilterContextItem, IAutomationMetadataObject } from "@gooddata/sdk-model";
2
3
  export interface IAttachmentsProps {
3
4
  dashboardTitle: string;
4
5
  dashboardSelected: boolean;
5
- onAttachmentsSelectionChanged(dashboardSelected: boolean): void;
6
+ onAttachmentsSelectionChanged(dashboardSelected: boolean, filters?: FilterContextItem[]): void;
7
+ editSchedule?: IAutomationMetadataObject;
6
8
  }
7
9
  export declare const Attachments: (props: IAttachmentsProps) => React.JSX.Element;
8
10
  //# sourceMappingURL=Attachments.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Attachments.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/Attachments.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,iBAAiB;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,6BAA6B,CAAC,iBAAiB,EAAE,OAAO,GAAG,IAAI,CAAC;CACnE;AASD,eAAO,MAAM,WAAW,UAAW,iBAAiB,sBA0BnD,CAAC"}
1
+ {"version":3,"file":"Attachments.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/Attachments.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAMnF,MAAM,WAAW,iBAAiB;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,6BAA6B,CAAC,iBAAiB,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,iBAAiB,EAAE,GAAG,IAAI,CAAC;IAC/F,YAAY,CAAC,EAAE,yBAAyB,CAAC;CAC5C;AASD,eAAO,MAAM,WAAW,UAAW,iBAAiB,sBA2EnD,CAAC"}
@@ -1,20 +1,55 @@
1
1
  // (C) 2019-2024 GoodData Corporation
2
- import * as React from "react";
2
+ import React, { useState } from "react";
3
3
  import { FormattedMessage } from "react-intl";
4
+ import { Message } from "@gooddata/sdk-ui-kit";
5
+ import { AttachmentFilters } from "./AttachmentFilters.js";
6
+ import { useAttachmentDashboardFilters } from "../../hooks/useAttachmentDashboardFilters.js";
7
+ import { getAutomationDashboardFilters } from "../../utils/automationFilters.js";
4
8
  const AttachmentItem = ({ format, children }) => (React.createElement("div", { "aria-label": "dashboard-attachment", className: "gd-dashboard-attachment s-gd-dashboard-attachment" },
5
9
  React.createElement("span", { className: "gd-dashboard-attachment-format" }, format),
6
10
  React.createElement("span", { className: "gd-dashboard-attachment-name" }, children)));
7
11
  export const Attachments = (props) => {
8
- const { dashboardTitle, dashboardSelected, onAttachmentsSelectionChanged } = props;
12
+ const { dashboardTitle, dashboardSelected, onAttachmentsSelectionChanged, editSchedule } = props;
13
+ /**
14
+ * When editing a schedule, we need to get the filters from the export definition and we don't care
15
+ * about the actual filters on the dashboard.
16
+ */
17
+ const dashboardEditFilters = getAutomationDashboardFilters(editSchedule);
18
+ const { areFiltersChanged, isCrossFiltering, filtersToStore, filtersToDisplayInfo } = useAttachmentDashboardFilters({
19
+ customFilters: dashboardEditFilters,
20
+ });
21
+ const isEditing = !!editSchedule;
22
+ const [attachmentFilterType, setAttachmentFilterType] = useState(
23
+ /**
24
+ * We use "edited" by default when creating a new schedule or editing
25
+ * an existing schedule with filters.
26
+ * "default" is used when editing without filters.
27
+ */
28
+ !isEditing || dashboardEditFilters ? "edited" : "default");
29
+ const showAttachmentFilters = isEditing || (areFiltersChanged && dashboardSelected);
30
+ const disableDropdown = isEditing && attachmentFilterType === "default";
31
+ const handleAttachmentFilterTypeChange = (type) => {
32
+ const includeFilters = type === "edited" && areFiltersChanged;
33
+ setAttachmentFilterType(type);
34
+ onAttachmentsSelectionChanged(dashboardSelected, includeFilters ? filtersToStore : undefined);
35
+ };
36
+ const handleAttachmentSelectionChange = () => {
37
+ const includeFilters = attachmentFilterType === "edited" && areFiltersChanged;
38
+ onAttachmentsSelectionChanged(!dashboardSelected, includeFilters ? filtersToStore : undefined);
39
+ };
9
40
  return (React.createElement("div", { className: "gd-input-component gd-schedule-email-attachments s-schedule-email-attachments" },
10
41
  React.createElement("label", { className: "gd-label" },
11
42
  React.createElement(FormattedMessage, { id: "dialogs.schedule.email.attachments.label" })),
12
- React.createElement("div", { className: "gd-dashboard-attachment-list" },
13
- React.createElement("div", { className: "gd-dashboard-attachment-list-content" },
14
- React.createElement("label", { className: "gd-schedule-mail-attachment-checkbox input-checkbox-label" },
15
- React.createElement("input", { type: "checkbox", className: "input-checkbox", checked: props.dashboardSelected, onChange: () => onAttachmentsSelectionChanged(!dashboardSelected) }),
16
- React.createElement("span", { className: "input-label-text" }),
17
- React.createElement(AttachmentItem, { format: "pdf" },
18
- React.createElement("span", { className: "shortened-name" }, dashboardTitle)))))));
43
+ React.createElement("div", { className: "gd-attachment-list" },
44
+ React.createElement("label", { className: "gd-schedule-mail-attachment-checkbox input-checkbox-label" },
45
+ React.createElement("input", { type: "checkbox", className: "input-checkbox", checked: props.dashboardSelected, onChange: handleAttachmentSelectionChange }),
46
+ React.createElement("span", { className: "input-label-text" }),
47
+ React.createElement(AttachmentItem, { format: "pdf" },
48
+ React.createElement("span", { className: "shortened-name" }, dashboardTitle))),
49
+ React.createElement(AttachmentFilters, { filterType: attachmentFilterType, onChange: handleAttachmentFilterTypeChange, hidden: !showAttachmentFilters, disabled: isEditing, useDropdown: !disableDropdown, filters: filtersToDisplayInfo }),
50
+ isCrossFiltering && props.dashboardSelected ? (React.createElement(Message, { type: "progress", className: "gd-attachment-list-message" },
51
+ React.createElement(FormattedMessage, { id: "dialogs.schedule.management.attachments.message", values: {
52
+ strong: (chunks) => React.createElement("strong", null, chunks),
53
+ } }))) : null)));
19
54
  };
20
55
  //# sourceMappingURL=Attachments.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Attachments.js","sourceRoot":"","sources":["../../../../../../src/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/Attachments.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAQ9C,MAAM,cAAc,GAA6D,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACvG,2CAAgB,sBAAsB,EAAC,SAAS,EAAC,mDAAmD;IAChG,8BAAM,SAAS,EAAC,gCAAgC,IAAE,MAAM,CAAQ;IAChE,8BAAM,SAAS,EAAC,8BAA8B,IAAE,QAAQ,CAAQ,CAC9D,CACT,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAwB,EAAE,EAAE;IACpD,MAAM,EAAE,cAAc,EAAE,iBAAiB,EAAE,6BAA6B,EAAE,GAAG,KAAK,CAAC;IAEnF,OAAO,CACH,6BAAK,SAAS,EAAC,+EAA+E;QAC1F,+BAAO,SAAS,EAAC,UAAU;YACvB,oBAAC,gBAAgB,IAAC,EAAE,EAAC,0CAA0C,GAAG,CAC9D;QACR,6BAAK,SAAS,EAAC,8BAA8B;YACzC,6BAAK,SAAS,EAAC,sCAAsC;gBACjD,+BAAO,SAAS,EAAC,2DAA2D;oBACxE,+BACI,IAAI,EAAC,UAAU,EACf,SAAS,EAAC,gBAAgB,EAC1B,OAAO,EAAE,KAAK,CAAC,iBAAiB,EAChC,QAAQ,EAAE,GAAG,EAAE,CAAC,6BAA6B,CAAC,CAAC,iBAAiB,CAAC,GACnE;oBACF,8BAAM,SAAS,EAAC,kBAAkB,GAAG;oBACrC,oBAAC,cAAc,IAAC,MAAM,EAAC,KAAK;wBACxB,8BAAM,SAAS,EAAC,gBAAgB,IAAE,cAAc,CAAQ,CAC3C,CACb,CACN,CACJ,CACJ,CACT,CAAC;AACN,CAAC,CAAC"}
1
+ {"version":3,"file":"Attachments.js","sourceRoot":"","sources":["../../../../../../src/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/Attachments.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE9C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAwB,MAAM,wBAAwB,CAAC;AACjF,OAAO,EAAE,6BAA6B,EAAE,MAAM,8CAA8C,CAAC;AAC7F,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AASjF,MAAM,cAAc,GAA6D,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACvG,2CAAgB,sBAAsB,EAAC,SAAS,EAAC,mDAAmD;IAChG,8BAAM,SAAS,EAAC,gCAAgC,IAAE,MAAM,CAAQ;IAChE,8BAAM,SAAS,EAAC,8BAA8B,IAAE,QAAQ,CAAQ,CAC9D,CACT,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAwB,EAAE,EAAE;IACpD,MAAM,EAAE,cAAc,EAAE,iBAAiB,EAAE,6BAA6B,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC;IAEjG;;;OAGG;IACH,MAAM,oBAAoB,GAAG,6BAA6B,CAAC,YAAY,CAAC,CAAC;IACzE,MAAM,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,cAAc,EAAE,oBAAoB,EAAE,GAC/E,6BAA6B,CAAC;QAC1B,aAAa,EAAE,oBAAoB;KACtC,CAAC,CAAC;IACP,MAAM,SAAS,GAAG,CAAC,CAAC,YAAY,CAAC;IAEjC,MAAM,CAAC,oBAAoB,EAAE,uBAAuB,CAAC,GAAG,QAAQ;IAC5D;;;;OAIG;IACH,CAAC,SAAS,IAAI,oBAAoB,CAAC,CA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