@gooddata/sdk-ui-dashboard 10.8.0-alpha.26 → 10.8.0-alpha.28

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 (123) hide show
  1. package/esm/__version.d.ts +1 -1
  2. package/esm/__version.js +1 -1
  3. package/esm/_staging/sharedHooks/useEventToastMessage.d.ts +19 -0
  4. package/esm/_staging/sharedHooks/useEventToastMessage.d.ts.map +1 -0
  5. package/esm/_staging/sharedHooks/useEventToastMessage.js +72 -0
  6. package/esm/_staging/sharedHooks/useEventToastMessage.js.map +1 -0
  7. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
  8. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +27 -3
  9. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js.map +1 -1
  10. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadFilterViews.d.ts +4 -0
  11. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadFilterViews.d.ts.map +1 -0
  12. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadFilterViews.js +9 -0
  13. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadFilterViews.js.map +1 -0
  14. package/esm/model/commandHandlers/filterContext/filterViewHandler.d.ts +9 -0
  15. package/esm/model/commandHandlers/filterContext/filterViewHandler.d.ts.map +1 -0
  16. package/esm/model/commandHandlers/filterContext/filterViewHandler.js +94 -0
  17. package/esm/model/commandHandlers/filterContext/filterViewHandler.js.map +1 -0
  18. package/esm/model/commandHandlers/index.d.ts.map +1 -1
  19. package/esm/model/commandHandlers/index.js +6 -0
  20. package/esm/model/commandHandlers/index.js.map +1 -1
  21. package/esm/model/commands/base.d.ts +1 -1
  22. package/esm/model/commands/base.d.ts.map +1 -1
  23. package/esm/model/commands/filters.d.ts +156 -0
  24. package/esm/model/commands/filters.d.ts.map +1 -1
  25. package/esm/model/commands/filters.js +106 -0
  26. package/esm/model/commands/filters.js.map +1 -1
  27. package/esm/model/commands/index.d.ts +3 -3
  28. package/esm/model/commands/index.d.ts.map +1 -1
  29. package/esm/model/commands/index.js +1 -1
  30. package/esm/model/commands/index.js.map +1 -1
  31. package/esm/model/events/base.d.ts +1 -1
  32. package/esm/model/events/base.d.ts.map +1 -1
  33. package/esm/model/events/base.js.map +1 -1
  34. package/esm/model/events/filters.d.ts +179 -1
  35. package/esm/model/events/filters.d.ts.map +1 -1
  36. package/esm/model/events/filters.js +131 -0
  37. package/esm/model/events/filters.js.map +1 -1
  38. package/esm/model/events/index.d.ts +1 -1
  39. package/esm/model/events/index.d.ts.map +1 -1
  40. package/esm/model/events/index.js +1 -1
  41. package/esm/model/events/index.js.map +1 -1
  42. package/esm/model/react/useDashboardCommand.d.ts +8 -0
  43. package/esm/model/react/useDashboardCommand.d.ts.map +1 -1
  44. package/esm/model/store/config/configSelectors.d.ts +6 -0
  45. package/esm/model/store/config/configSelectors.d.ts.map +1 -1
  46. package/esm/model/store/config/configSelectors.js +9 -1
  47. package/esm/model/store/config/configSelectors.js.map +1 -1
  48. package/esm/model/store/dashboardStore.d.ts.map +1 -1
  49. package/esm/model/store/dashboardStore.js +2 -0
  50. package/esm/model/store/dashboardStore.js.map +1 -1
  51. package/esm/model/store/filterViews/filterViewsReducers.d.ts +11 -0
  52. package/esm/model/store/filterViews/filterViewsReducers.d.ts.map +1 -0
  53. package/esm/model/store/filterViews/filterViewsReducers.js +12 -0
  54. package/esm/model/store/filterViews/filterViewsReducers.js.map +1 -0
  55. package/esm/model/store/filterViews/filterViewsReducersSelectors.d.ts +7 -0
  56. package/esm/model/store/filterViews/filterViewsReducersSelectors.d.ts.map +1 -0
  57. package/esm/model/store/filterViews/filterViewsReducersSelectors.js +17 -0
  58. package/esm/model/store/filterViews/filterViewsReducersSelectors.js.map +1 -0
  59. package/esm/model/store/filterViews/filterViewsState.d.ts +16 -0
  60. package/esm/model/store/filterViews/filterViewsState.d.ts.map +1 -0
  61. package/esm/model/store/filterViews/filterViewsState.js +3 -0
  62. package/esm/model/store/filterViews/filterViewsState.js.map +1 -0
  63. package/esm/model/store/filterViews/index.d.ts +10 -0
  64. package/esm/model/store/filterViews/index.d.ts.map +1 -0
  65. package/esm/model/store/filterViews/index.js +13 -0
  66. package/esm/model/store/filterViews/index.js.map +1 -0
  67. package/esm/model/store/index.d.ts +3 -2
  68. package/esm/model/store/index.d.ts.map +1 -1
  69. package/esm/model/store/index.js +3 -2
  70. package/esm/model/store/index.js.map +1 -1
  71. package/esm/model/store/meta/index.d.ts +4 -0
  72. package/esm/model/store/meta/index.d.ts.map +1 -1
  73. package/esm/model/store/meta/metaReducers.d.ts +4 -0
  74. package/esm/model/store/meta/metaReducers.d.ts.map +1 -1
  75. package/esm/model/store/meta/metaReducers.js +6 -0
  76. package/esm/model/store/meta/metaReducers.js.map +1 -1
  77. package/esm/model/store/meta/metaSelectors.d.ts +20 -8
  78. package/esm/model/store/meta/metaSelectors.d.ts.map +1 -1
  79. package/esm/model/store/meta/metaSelectors.js +39 -12
  80. package/esm/model/store/meta/metaSelectors.js.map +1 -1
  81. package/esm/model/store/meta/metaState.d.ts +1 -1
  82. package/esm/model/store/meta/metaState.d.ts.map +1 -1
  83. package/esm/model/store/meta/metaState.js.map +1 -1
  84. package/esm/model/store/types.d.ts +2 -0
  85. package/esm/model/store/types.d.ts.map +1 -1
  86. package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.d.ts.map +1 -1
  87. package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.js +9 -2
  88. package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.js.map +1 -1
  89. package/esm/presentation/filterBar/filterBar/FiltersConfigurationPanel.d.ts +1 -1
  90. package/esm/presentation/filterBar/filterBar/FiltersConfigurationPanel.d.ts.map +1 -1
  91. package/esm/presentation/filterBar/filterBar/FiltersConfigurationPanel.js +47 -67
  92. package/esm/presentation/filterBar/filterBar/FiltersConfigurationPanel.js.map +1 -1
  93. package/esm/presentation/filterBar/filterBar/filterViews/AddFilterView.d.ts +6 -0
  94. package/esm/presentation/filterBar/filterBar/filterViews/AddFilterView.d.ts.map +1 -0
  95. package/esm/presentation/filterBar/filterBar/filterViews/AddFilterView.js +38 -0
  96. package/esm/presentation/filterBar/filterBar/filterViews/AddFilterView.js.map +1 -0
  97. package/esm/presentation/filterBar/filterBar/filterViews/FilterViewDeleteConfirm.d.ts +9 -0
  98. package/esm/presentation/filterBar/filterBar/filterViews/FilterViewDeleteConfirm.d.ts.map +1 -0
  99. package/esm/presentation/filterBar/filterBar/filterViews/FilterViewDeleteConfirm.js +14 -0
  100. package/esm/presentation/filterBar/filterBar/filterViews/FilterViewDeleteConfirm.js.map +1 -0
  101. package/esm/presentation/filterBar/filterBar/filterViews/FilterViews.d.ts +3 -0
  102. package/esm/presentation/filterBar/filterBar/filterViews/FilterViews.d.ts.map +1 -0
  103. package/esm/presentation/filterBar/filterBar/filterViews/FilterViews.js +27 -0
  104. package/esm/presentation/filterBar/filterBar/filterViews/FilterViews.js.map +1 -0
  105. package/esm/presentation/filterBar/filterBar/filterViews/FilterViewsList.d.ts +9 -0
  106. package/esm/presentation/filterBar/filterBar/filterViews/FilterViewsList.d.ts.map +1 -0
  107. package/esm/presentation/filterBar/filterBar/filterViews/FilterViewsList.js +72 -0
  108. package/esm/presentation/filterBar/filterBar/filterViews/FilterViewsList.js.map +1 -0
  109. package/esm/presentation/filterBar/filterBar/filterViews/useFilterViewsToastMessages.d.ts +2 -0
  110. package/esm/presentation/filterBar/filterBar/filterViews/useFilterViewsToastMessages.d.ts.map +1 -0
  111. package/esm/presentation/filterBar/filterBar/filterViews/useFilterViewsToastMessages.js +31 -0
  112. package/esm/presentation/filterBar/filterBar/filterViews/useFilterViewsToastMessages.js.map +1 -0
  113. package/esm/presentation/localization/bundles/en-US.json +171 -6
  114. package/esm/sdk-ui-dashboard.d.ts +401 -4
  115. package/package.json +15 -15
  116. package/styles/css/configurationPanel.css +7 -0
  117. package/styles/css/configurationPanel.css.map +1 -1
  118. package/styles/css/filterBar.css +190 -5
  119. package/styles/css/filterBar.css.map +1 -1
  120. package/styles/css/main.css +197 -5
  121. package/styles/css/main.css.map +1 -1
  122. package/styles/scss/configurationPanel.scss +9 -0
  123. package/styles/scss/filterBar.scss +255 -8
@@ -127,7 +127,7 @@ $attribute-filter-drag-handle-left: 10px;
127
127
  display: flex;
128
128
  align-items: stretch;
129
129
  flex-wrap: wrap;
130
- width: calc(100% - variables.$scrollbar-width);
130
+ width: calc(100% - 150px); // minus filters configuration buttons panel width
131
131
  min-height: variables.$filter-bar-height;
132
132
  margin-right: variables.$scrollbar-width;
133
133
 
@@ -469,7 +469,7 @@ $attribute-filter-drag-handle-left: 10px;
469
469
  }
470
470
  }
471
471
 
472
- .gd-filters-configuration {
472
+ .filter-bar-configuration {
473
473
  position: absolute;
474
474
  top: 0;
475
475
  right: 0;
@@ -477,18 +477,265 @@ $attribute-filter-drag-handle-left: 10px;
477
477
  align-items: start;
478
478
  justify-content: center;
479
479
  height: 100%;
480
- width: 40px;
481
- padding-top: 18px;
482
480
  }
483
481
 
484
482
  .gd-filters-configuration-button {
483
+ margin: 18px 11px 0;
485
484
  height: 18px;
486
485
  width: 18px;
487
486
  cursor: pointer;
488
487
  }
489
488
 
490
- .gd-configuration-bubble-wrapper.overlay-wrapper.sdk-edit-mode-on
491
- .gd-configuration-bubble.gd-filters-configuration-panel
492
- .arrow-position {
493
- display: none;
489
+ .gd-filters-configuration__header {
490
+ height: 35px;
491
+ }
492
+
493
+ .gd-filter-configuration__help-icon {
494
+ &::before {
495
+ color: kit-variables.$gd-color-state-blank;
496
+ }
497
+ }
498
+
499
+ .gd-filter-configuration__help-tooltip {
500
+ width: 220px;
501
+ }
502
+
503
+ // --- Filter Views configuration panel open button
504
+
505
+ .gd-filter-views {
506
+ display: flex;
507
+ align-items: center;
508
+ }
509
+
510
+ .gd-button-primary.gd-filter-views-button {
511
+ border: 0;
512
+ box-shadow: none;
513
+ color: kit-variables.$gd-color-state-blank;
514
+ background: variables.$gd-dashboards-content-backgroundColor;
515
+ font-size: 14px;
516
+ margin-top: 7px;
517
+
518
+ // override .button behavior so text and icon does not "jump" (simulate pressed button)
519
+ &:not(.disabled):not(.gd-button-link) {
520
+ &:active {
521
+ &::before,
522
+ &::after {
523
+ top: 1px;
524
+ }
525
+
526
+ .gd-button-text {
527
+ top: 1px;
528
+ }
529
+
530
+ .gd-button-icon {
531
+ margin-top: 1px;
532
+ }
533
+ }
534
+ }
535
+ }
536
+
537
+ .gd-button-primary.gd-filter-views-button--open {
538
+ color: kit-variables.$gd-color-text;
539
+
540
+ .gd-button-icon::before {
541
+ color: kit-variables.$gd-color-highlight;
542
+ }
543
+ }
544
+
545
+ .gd-filters-views__panel__divider {
546
+ border-right: 1px solid kit-variables.$default-gd-border-color;
547
+ width: 1px;
548
+ height: 20px;
549
+ margin-top: 9px;
550
+ }
551
+
552
+ // --- Filter Views configuration panel
553
+
554
+ .gd-configuration-bubble-wrapper.overlay-wrapper.sdk-edit-mode-on {
555
+ .gd-configuration-bubble {
556
+ &.gd-filters-configuration-panel,
557
+ &.gd-filters-views__panel {
558
+ .arrow-position {
559
+ display: none;
560
+ }
561
+ }
562
+
563
+ &.gd-filters-views__panel {
564
+ min-width: 350px;
565
+ max-width: 350px;
566
+
567
+ .configuration-panel-header {
568
+ display: flex;
569
+ align-items: center;
570
+ height: 35px;
571
+ padding: 0 10px;
572
+ }
573
+ }
574
+
575
+ .configuration-panel__filter-view__add {
576
+ .configuration-category {
577
+ margin: 10px 10px 0;
578
+ }
579
+
580
+ // it is not easily possible to override this otherwise
581
+ // stylelint-disable-next-line max-nesting-depth
582
+ .gd-filter-view-add-hint {
583
+ font-size: 12px;
584
+ margin: 5px 0;
585
+ }
586
+ }
587
+
588
+ .configuration-panel__filter-view__list .configuration-category {
589
+ margin: 10px 0 0;
590
+ overflow: auto;
591
+ }
592
+ }
593
+ }
594
+
595
+ .gd-filters-views__panel {
596
+ .gd-title-with-icon {
597
+ display: flex;
598
+ align-items: center;
599
+ gap: 5px;
600
+
601
+ .gd-bubble-trigger-wrapper {
602
+ line-height: 14px;
603
+ }
604
+ }
605
+
606
+ .configuration-panel-header-title {
607
+ display: flex;
608
+ justify-content: space-between;
609
+ }
610
+
611
+ .configuration-panel-footer__content {
612
+ text-align: right;
613
+ }
614
+
615
+ .gd-input-with-label {
616
+ .gd-input-label {
617
+ font-size: 12px;
618
+ }
619
+ }
620
+
621
+ .gd-filter-view-add-checkbox-row {
622
+ padding: 5px 0;
623
+ }
624
+ }
625
+
626
+ .configuration-panel__filter-view__list {
627
+ .configuration-panel-footer__content {
628
+ text-align: left;
629
+
630
+ .gd-button {
631
+ display: flex;
632
+ height: 23px;
633
+ align-items: center;
634
+ margin-left: -10px;
635
+ }
636
+ }
637
+ }
638
+
639
+ // --- Filter Views item
640
+
641
+ .gd-filter-view__item {
642
+ display: flex;
643
+ flex-direction: row-reverse;
644
+ align-items: center;
645
+ height: 28px;
646
+
647
+ .gd-filter-view__item__value {
648
+ display: flex;
649
+ flex-grow: 1;
650
+ gap: 5px;
651
+ overflow: hidden;
652
+ cursor: pointer;
653
+ color: kit-variables.$gd-color-text;
654
+ padding: 5px 10px;
655
+ align-items: center;
656
+ }
657
+
658
+ .gd-filter-view__item__value__title {
659
+ gap: 5px;
660
+ overflow: hidden;
661
+ text-overflow: ellipsis;
662
+ white-space: nowrap;
663
+ }
664
+
665
+ .gd-filter-view__item__value__suffix {
666
+ flex-shrink: 0;
667
+ color: kit-variables.$gd-color-disabled;
668
+ }
669
+
670
+ .gd-filter-view__item__button {
671
+ display: none;
672
+ flex-shrink: 0;
673
+ height: 28px;
674
+ padding: 0;
675
+ margin: 0;
676
+ transition: none;
677
+
678
+ .gd-button-icon::before {
679
+ font-size: 12px;
680
+ }
681
+ }
682
+
683
+ &:hover {
684
+ background: kit-variables.$default-is-focused-background;
685
+
686
+ .gd-filter-view__item__button {
687
+ display: block;
688
+ cursor: pointer;
689
+ }
690
+ }
691
+
692
+ .gd-filter-view__item__button--delete {
693
+ width: 16px;
694
+ margin-left: 5px;
695
+
696
+ .gd-button-icon::before {
697
+ color: kit-variables.$gd-color-link;
698
+ }
699
+
700
+ &:hover {
701
+ .gd-button-icon::before {
702
+ color: kit-variables.$gd-color-negative;
703
+ }
704
+ }
705
+ }
706
+
707
+ .gd-filter-view__item__delete-button-wrapper {
708
+ padding: 0 5px;
709
+
710
+ &:hover {
711
+ background-color: kit-variables.$gd-delete-item-background;
712
+
713
+ ~ .gd-filter-view__item__button,
714
+ ~ .gd-filter-view__item__value {
715
+ background-color: kit-variables.$gd-delete-item-background;
716
+ }
717
+ }
718
+ }
719
+ }
720
+
721
+ // --- Filter Views configuration miscellaneous
722
+
723
+ .gd-filter-view__list__empty {
724
+ text-align: center;
725
+ color: kit-variables.$gd-color-disabled;
726
+ padding: 5px 0;
727
+ }
728
+
729
+ .gd-filter-view__list__tooltip {
730
+ width: 230px;
731
+ }
732
+
733
+ .overlay.gd-dialog.gd-filter-view__delete-dialog {
734
+ min-width: 450px;
735
+ max-width: 450px;
736
+
737
+ .gd-filter-view__delete-dialog__item {
738
+ word-break: break-word;
739
+ overflow-wrap: break-word;
740
+ }
494
741
  }