camunda-bpmn-js 0.23.0 → 0.24.0

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.
@@ -115,7 +115,7 @@
115
115
  display: inherit;
116
116
  }
117
117
 
118
- [data-popup="align-elements"] .djs-popup-body {
118
+ [data-popup="align-elements"] .djs-popup-results {
119
119
  display: flex;
120
120
  }
121
121
 
@@ -132,13 +132,13 @@
132
132
  padding: 6px 8px;
133
133
  }
134
134
 
135
- [data-popup="align-elements"] .djs-popup-body .entry img {
136
- display: block;
135
+ [data-popup="align-elements"] .djs-popup-body .entry:not(:first-child) {
136
+ margin-top: 0;
137
+ }
137
138
 
139
+ [data-popup="align-elements"] .djs-popup-entry-icon {
140
+ display: block;
141
+ margin: 0;
138
142
  height: 20px;
139
143
  width: 20px;
140
144
  }
141
-
142
- [data-popup="align-elements"] .bjs-align-elements-menu-entry {
143
- display: inline-block;
144
- }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * color definitions
3
3
  */
4
- .djs-container {
4
+ .djs-parent {
5
5
  --color-grey-225-10-15: hsl(225, 10%, 15%);
6
6
  --color-grey-225-10-35: hsl(225, 10%, 35%);
7
7
  --color-grey-225-10-55: hsl(225, 10%, 55%);
@@ -54,12 +54,18 @@
54
54
  --palette-background-color: var(--color-grey-225-10-97);
55
55
  --palette-border-color: var(--color-grey-225-10-75);
56
56
 
57
- --popup-body-background-color: var(--color-white);
58
57
  --popup-header-entry-selected-color: var(--color-blue-205-100-50);
59
- --popup-header-entry-selected-background-color: var(--color-black-opacity-10);
60
58
  --popup-header-separator-color: var(--color-grey-225-10-75);
61
- --popup-background-color: var(--color-grey-225-10-97);
59
+ --popup-background-color: var(--color-white);
62
60
  --popup-border-color: var(--color-grey-225-10-75);
61
+ --popup-shadow-color: var(--color-grey-225-10-80);
62
+ --popup-description-color: var(--color-grey-225-10-55);
63
+ --popup-no-results-color: var(--color-grey-225-10-55);
64
+ --popup-entry-title-color: var(--color-grey-225-10-55);
65
+ --popup-entry-hover-color: var(--color-grey-225-10-95);
66
+ --popup-search-border-color: var(--color-grey-225-10-75);
67
+ --popup-search-focus-border-color: var(--color-blue-205-100-50);
68
+ --popup-search-focus-background-color: var(--color-blue-205-100-95);
63
69
 
64
70
  --resizer-fill-color: var(--color-blue-205-100-45);
65
71
  --resizer-stroke-color: var(--canvas-fill-color);
@@ -508,73 +514,233 @@ marker.djs-dragger tspan {
508
514
  /**
509
515
  * popup styles
510
516
  */
511
- .djs-popup .entry {
517
+ .djs-popup-backdrop {
518
+ position: fixed;
519
+ width: 100vw;
520
+ height: 100vh;
521
+ top: 0;
522
+ left: 0;
523
+ z-index: 200;
524
+ line-height: 1;
525
+ font-family: "IBM Plex Sans", sans-serif;
526
+ border: solid 1px var(--popup-border-color);
527
+ border-radius: 2px;
528
+ }
529
+
530
+ .djs-popup {
531
+ width: min-content;
532
+ background: var(--popup-background-color);
533
+ overflow: hidden;
534
+ position: absolute;
535
+
536
+ box-shadow: 0px 2px 10px var(--popup-shadow-color);
537
+ min-width: 120px;
538
+ outline: none;
539
+ }
540
+
541
+ .djs-popup-search input {
542
+ width: 100%;
543
+ box-sizing: border-box;
544
+ font-size: 14px;
545
+ padding: 3px 6px;
546
+ border-radius: 2px;
547
+ border: solid 1px var(--popup-search-border-color);
548
+ line-height: 21px;
549
+ }
550
+
551
+ .djs-popup-search input:focus {
552
+ background-color: var(--popup-search-focus-background-color);
553
+ border: solid 1px var(--popup-search-focus-border-color);
554
+ outline: none;
555
+ }
556
+
557
+ .djs-popup-header {
558
+ display: flex;
559
+ align-items: stretch;
512
560
  line-height: 20px;
513
- white-space: nowrap;
514
- cursor: default;
561
+ margin: 10px 12px 10px 12px;
515
562
  }
516
563
 
517
- /* larger font for prefixed icons */
518
- .djs-popup .entry:before {
519
- vertical-align: middle;
520
- font-size: 20px;
564
+ .djs-popup-header .entry {
565
+ font-size: 19.5px;
566
+ border-radius: 2px;
521
567
  }
522
568
 
523
- .djs-popup .entry > span {
524
- vertical-align: middle;
569
+ .djs-popup-header .entry.active {
570
+ color: var(--popup-header-entry-selected-color);
571
+ }
572
+
573
+ .djs-popup-header .entry.disabled {
574
+ color: inherit;
575
+ }
576
+
577
+ .djs-popup-search {
578
+ margin: 10px 12px;
579
+ }
580
+
581
+ .djs-popup-title {
525
582
  font-size: 14px;
583
+ font-weight: 500;
584
+ flex: 1;
585
+ margin: 0;
586
+ width: max-content;
526
587
  }
527
588
 
528
- .djs-popup .entry:hover,
529
- .djs-popup .entry.active:hover {
530
- background: var(--popup-header-entry-selected-background-color);
589
+ .djs-popup-search {
590
+ position: relative;
591
+ width: auto;
531
592
  }
532
593
 
533
- .djs-popup .entry.disabled {
534
- background: inherit;
594
+ .djs-popup-search-icon {
595
+ position: absolute;
596
+ left: 8px;
597
+ top: 7px;
535
598
  }
536
599
 
537
- .djs-popup .djs-popup-header .entry {
538
- display: inline-block;
539
- padding: 2px 3px 2px 3px;
600
+ .djs-popup-search input {
601
+ padding-left: 25px;
602
+ }
540
603
 
541
- border: solid 1px transparent;
542
- border-radius: 3px;
604
+ .djs-popup-results {
605
+ margin: 7px 3px 7px 12px;
606
+ list-style: none;
607
+ max-height: 280px;
608
+ overflow: overlay;
609
+ padding-right: 9px;
543
610
  }
544
611
 
545
- .djs-popup .djs-popup-header .entry.active {
546
- color: var(--popup-header-entry-selected-color);
547
- border: solid 1px var(--popup-header-entry-selected-color);
548
- background-color: var(--popup-header-entry-selected-background-color);
612
+ .djs-popup-group {
613
+ margin: 0;
614
+ padding: 0;
615
+ width: 100%;
616
+ }
617
+
618
+ .djs-popup-body .entry,
619
+ .djs-popup-body .entry-header {
620
+ padding: 5px 7px;
621
+ cursor: default;
622
+ border-radius: 4px;
623
+ font-size: 14px;
624
+ }
625
+
626
+ .djs-popup-body .entry-header {
627
+ font-weight: 500;
628
+ color: var(--popup-entry-title-color);
629
+ padding-left: 0;
630
+ }
631
+
632
+ .djs-popup-entry-icon {
633
+ width: 16px;
634
+ margin-right: 0.5rem;
635
+ margin-bottom: -0.2rem;
636
+ }
637
+
638
+ .djs-popup-body .entry-header:not(:first-child) {
639
+ margin-top: 8px;
640
+ margin-bottom: 2px;
549
641
  }
550
642
 
551
643
  .djs-popup-body .entry {
552
- padding: 4px 5px;
644
+ display: flex;
645
+ flex-direction: row;
646
+ align-items: stretch;
647
+ height: min-content;
553
648
  }
554
649
 
555
- .djs-popup-body .entry > span {
556
- margin-left: 5px;
650
+ .djs-popup .entry.selected {
651
+ background-color: var(--popup-entry-hover-color);
652
+ }
653
+
654
+ .djs-popup-body .entry:not(:first-child) {
655
+ margin-top: 2px;
656
+ }
657
+
658
+ .djs-popup-entry-content {
659
+ display: flex;
660
+ flex-direction: column;
661
+ flex: 1;
662
+ overflow: hidden;
663
+ }
664
+
665
+ .djs-popup-entry-description {
666
+ color: var(--popup-description-color);
667
+ }
668
+
669
+ .djs-popup-entry-name,
670
+ .djs-popup-entry-description {
671
+ line-height: 1.4em;
672
+ display: block;
673
+ overflow: hidden;
674
+ text-overflow: ellipsis;
675
+ white-space: nowrap;
676
+ }
677
+
678
+ .djs-popup-entry-name {
679
+ display: flex;
680
+ }
681
+
682
+ .entry-content {
683
+ display: flex;
684
+ flex-direction: column;
685
+ flex: 1;
686
+ overflow: hidden;
687
+ }
688
+
689
+ .djs-popup-entry-name[class^="bpmn-icon-"]:before,
690
+ .djs-popup-entry-name[class*=" bpmn-icon-"]:before,
691
+ .djs-popup-entry-icon {
692
+ display: inline-block;
693
+ font-size: 1.4em;
694
+ vertical-align: middle;
695
+ margin-right: 0.5rem;
557
696
  }
558
697
 
559
698
  .djs-popup-body {
560
- background-color: var(--popup-body-background-color);
699
+ flex-direction: column;
700
+ width: auto;
561
701
  }
562
702
 
563
- .djs-popup-header {
564
- border-bottom: 1px solid var(--popup-header-separator-color);
703
+ .djs-popup *::-webkit-scrollbar {
704
+ width: 6px;
565
705
  }
566
706
 
567
- .djs-popup-header .entry {
568
- margin: 1px;
569
- margin-left: 3px;
707
+ .djs-popup *::-webkit-scrollbar-thumb {
708
+ border-radius: 3px;
709
+ background-color: rgba(0, 0, 0, 0.2);
710
+ }
711
+
712
+ .djs-popup *::-webkit-scrollbar-track {
713
+ box-shadow: none;
714
+ background: transparent1;
715
+ margin: 0;
716
+ padding: 5px;
717
+ }
718
+
719
+ .djs-popup-no-results {
720
+ font-size: 14px;
721
+ padding: 0 12px 12px 12px;
722
+ color: var(--popup-no-results-color);
570
723
  }
571
724
 
572
- .djs-popup-header .entry:last-child {
573
- margin-right: 3px;
725
+ .djs-popup-entry-docs {
726
+ flex: 0;
727
+ flex-direction: row;
728
+ align-items: center;
729
+ padding-left: 5px;
730
+ display: none;
731
+ }
732
+
733
+ .djs-popup-body .entry:hover .djs-popup-entry-docs {
734
+ display: flex;
735
+ }
736
+
737
+ .djs-popup-entry-docs svg {
738
+ vertical-align: middle;
739
+ margin: auto 2px auto 5px;
574
740
  }
575
741
 
576
742
  /**
577
- * popup / palette styles
743
+ * palette styles
578
744
  */
579
745
  .djs-palette {
580
746
  background: var(--palette-background-color);
@@ -582,12 +748,6 @@ marker.djs-dragger tspan {
582
748
  border-radius: 2px;
583
749
  }
584
750
 
585
- .djs-popup {
586
- background: var(--popup-background-color);
587
- border: solid 1px var(--popup-border-color);
588
- border-radius: 2px;
589
- }
590
-
591
751
  /**
592
752
  * touch
593
753
  */