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