camunda-bpmn-js 0.23.1 → 0.24.1

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