@ckeditor/ckeditor5-ui 44.3.0 → 45.0.0-alpha.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.
Files changed (107) hide show
  1. package/LICENSE.md +1 -1
  2. package/ckeditor5-metadata.json +1 -1
  3. package/dist/index-editor.css +28 -0
  4. package/dist/index.css +33 -0
  5. package/dist/index.css.map +1 -1
  6. package/dist/index.js +196 -74
  7. package/dist/index.js.map +1 -1
  8. package/dist/translations/be.d.ts +8 -0
  9. package/dist/translations/be.js +5 -0
  10. package/dist/translations/be.umd.js +11 -0
  11. package/lang/translations/be.po +208 -0
  12. package/package.json +12 -6
  13. package/src/arialiveannouncer.js +24 -0
  14. package/src/autocomplete/autocompleteview.js +29 -25
  15. package/src/badge/badge.js +23 -15
  16. package/src/bindings/draggableviewmixin.js +12 -12
  17. package/src/button/buttonview.js +35 -5
  18. package/src/button/filedialogbuttonview.js +11 -1
  19. package/src/button/listitembuttonview.js +14 -10
  20. package/src/button/switchbuttonview.js +4 -0
  21. package/src/collapsible/collapsibleview.d.ts +1 -4
  22. package/src/collapsible/collapsibleview.js +13 -2
  23. package/src/colorgrid/colorgridview.js +18 -2
  24. package/src/colorgrid/colortileview.d.ts +1 -4
  25. package/src/colorgrid/colortileview.js +3 -3
  26. package/src/colorpicker/colorpickerview.js +28 -1
  27. package/src/colorselector/colorgridsfragmentview.js +80 -4
  28. package/src/colorselector/colorpickerfragmentview.js +44 -3
  29. package/src/colorselector/colorselectorview.js +36 -0
  30. package/src/componentfactory.js +8 -4
  31. package/src/dialog/dialog.js +18 -0
  32. package/src/dialog/dialogactionsview.js +20 -0
  33. package/src/dialog/dialogcontentview.js +4 -0
  34. package/src/dialog/dialogview.d.ts +1 -1
  35. package/src/dialog/dialogview.js +56 -11
  36. package/src/dropdown/button/dropdownbuttonview.d.ts +0 -3
  37. package/src/dropdown/button/dropdownbuttonview.js +6 -2
  38. package/src/dropdown/button/splitbuttonview.d.ts +1 -4
  39. package/src/dropdown/button/splitbuttonview.js +27 -3
  40. package/src/dropdown/dropdownpanelview.js +8 -0
  41. package/src/dropdown/dropdownview.js +235 -184
  42. package/src/dropdown/menu/dropdownmenubuttonview.d.ts +0 -3
  43. package/src/dropdown/menu/dropdownmenubuttonview.js +6 -2
  44. package/src/dropdown/menu/dropdownmenulistitembuttonview.js +1 -0
  45. package/src/dropdown/menu/dropdownmenulistitemview.js +4 -0
  46. package/src/dropdown/menu/dropdownmenunestedmenuview.js +31 -8
  47. package/src/dropdown/menu/dropdownmenurootlistview.js +16 -8
  48. package/src/editableui/editableuiview.js +22 -4
  49. package/src/editableui/inline/inlineeditableuiview.js +4 -0
  50. package/src/editorui/accessibilityhelp/accessibilityhelp.js +8 -11
  51. package/src/editorui/bodycollection.js +13 -0
  52. package/src/editorui/boxed/boxededitoruiview.js +14 -0
  53. package/src/editorui/editorui.d.ts +1 -1
  54. package/src/editorui/editorui.js +56 -25
  55. package/src/editorui/editoruiview.d.ts +15 -1
  56. package/src/editorui/editoruiview.js +22 -0
  57. package/src/editorui/evaluationbadge.js +5 -5
  58. package/src/editorui/poweredby.d.ts +1 -4
  59. package/src/editorui/poweredby.js +5 -2
  60. package/src/focuscycler.js +31 -0
  61. package/src/formheader/formheaderview.js +8 -0
  62. package/src/formrow/formrowview.d.ts +57 -0
  63. package/src/formrow/formrowview.js +56 -0
  64. package/src/highlightedtext/highlightedtextview.js +1 -1
  65. package/src/highlightedtext/labelwithhighlightview.js +4 -0
  66. package/src/icon/iconview.js +25 -16
  67. package/src/index.d.ts +1 -0
  68. package/src/index.js +1 -0
  69. package/src/input/inputbase.js +5 -0
  70. package/src/label/labelview.js +5 -0
  71. package/src/labeledfield/labeledfieldview.js +20 -0
  72. package/src/labeledinput/labeledinputview.js +13 -0
  73. package/src/list/listitemgroupview.js +15 -0
  74. package/src/list/listitemview.js +4 -0
  75. package/src/list/listview.js +27 -5
  76. package/src/menubar/menubarmenubuttonview.d.ts +0 -3
  77. package/src/menubar/menubarmenubuttonview.js +6 -2
  78. package/src/menubar/menubarmenupanelview.js +4 -0
  79. package/src/menubar/menubarmenuview.js +23 -6
  80. package/src/menubar/menubarview.d.ts +8 -0
  81. package/src/menubar/menubarview.js +27 -7
  82. package/src/menubar/utils.d.ts +6 -0
  83. package/src/menubar/utils.js +16 -3
  84. package/src/model.js +1 -1
  85. package/src/panel/balloon/balloonpanelview.js +464 -449
  86. package/src/panel/balloon/contextualballoon.js +60 -24
  87. package/src/panel/sticky/stickypanelview.js +14 -0
  88. package/src/search/searchresultsview.js +18 -0
  89. package/src/search/text/searchtextqueryview.d.ts +0 -3
  90. package/src/search/text/searchtextqueryview.js +15 -3
  91. package/src/search/text/searchtextview.js +43 -3
  92. package/src/template.js +69 -1
  93. package/src/textarea/textareaview.js +12 -5
  94. package/src/toolbar/balloon/balloontoolbar.d.ts +1 -1
  95. package/src/toolbar/balloon/balloontoolbar.js +38 -11
  96. package/src/toolbar/block/blocktoolbar.js +24 -8
  97. package/src/toolbar/toolbarview.d.ts +15 -2
  98. package/src/toolbar/toolbarview.js +206 -58
  99. package/src/tooltipmanager.js +50 -32
  100. package/src/view.js +76 -0
  101. package/src/viewcollection.js +4 -0
  102. package/theme/components/form/form.css +87 -0
  103. package/theme/components/formrow/formrow.css +32 -0
  104. package/theme/icons/accessibility.svg +0 -1
  105. package/theme/icons/color-tile-check.svg +0 -1
  106. package/theme/icons/dropdown-arrow.svg +0 -1
  107. package/theme/icons/project-logo.svg +0 -1
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import View from '../../view.js';
9
9
  import { getOptimalPosition, global, isRange, toUnit, isVisible, isText, ResizeObserver } from '@ckeditor/ckeditor5-utils';
10
- import { isElement } from 'lodash-es';
10
+ import { isElement } from 'es-toolkit/compat';
11
11
  import '../../../theme/components/panel/balloonpanel.css';
12
12
  const toPx = /* #__PURE__ */ toUnit('px');
13
13
  // A static balloon panel positioning function that moves the balloon far off the viewport.
@@ -66,6 +66,21 @@ const POSITION_OFF_SCREEN = {
66
66
  * ```
67
67
  */
68
68
  class BalloonPanelView extends View {
69
+ /**
70
+ * A collection of the child views that creates the balloon panel contents.
71
+ */
72
+ content;
73
+ /**
74
+ * A callback that starts pinning the panel when {@link #isVisible} gets
75
+ * `true`. Used by {@link #pin}.
76
+ *
77
+ * @private
78
+ */
79
+ _pinWhenIsVisibleCallback;
80
+ /**
81
+ * An instance of resize observer used to detect if target element is still visible.
82
+ */
83
+ _resizeObserver;
69
84
  /**
70
85
  * @inheritDoc
71
86
  */
@@ -587,455 +602,455 @@ class BalloonPanelView extends View {
587
602
  return targetRect.bottom + heightOffset;
588
603
  }
589
604
  }
605
+ /**
606
+ * A side offset of the arrow tip from the edge of the balloon. Controlled by CSS.
607
+ *
608
+ * ```
609
+ * ┌───────────────────────┐
610
+ * │ │
611
+ * │ Balloon │
612
+ * │ Content │
613
+ * │ │
614
+ * └──+ +───────────────┘
615
+ * | \ /
616
+ * | \/
617
+ * >┼─────┼< ─────────────────────── side offset
618
+ *
619
+ * ```
620
+ *
621
+ * @default 25
622
+ */
623
+ static arrowSideOffset = 25;
624
+ /**
625
+ * A height offset of the arrow from the edge of the balloon. Controlled by CSS.
626
+ *
627
+ * ```
628
+ * ┌───────────────────────┐
629
+ * │ │
630
+ * │ Balloon │
631
+ * │ Content │ ╱-- arrow height offset
632
+ * │ │ V
633
+ * └──+ +───────────────┘ --- ─┼───────
634
+ * \ / │
635
+ * \/ │
636
+ * ────────────────────────────────┼───────
637
+ * ^
638
+ *
639
+ *
640
+ * >┼────┼< arrow height offset
641
+ * │ │
642
+ * │ ┌────────────────────────┐
643
+ * │ │ │
644
+ * │ ╱ │
645
+ * │ ╱ Balloon │
646
+ * │ ╲ Content │
647
+ * │ ╲ │
648
+ * │ │ │
649
+ * │ └────────────────────────┘
650
+ * ```
651
+ *
652
+ * @default 10
653
+ */
654
+ static arrowHeightOffset = 10;
655
+ /**
656
+ * A vertical offset of the balloon panel from the edge of the viewport if sticky.
657
+ * It helps in accessing toolbar buttons underneath the balloon panel.
658
+ *
659
+ * ```
660
+ * ┌───────────────────────────────────────────────────┐
661
+ * │ Target │
662
+ * │ │
663
+ * │ /── vertical offset │
664
+ * ┌─────────────────────────────V─────────────────────────┐
665
+ * │ Toolbar ┌─────────────┐ │
666
+ * ├────────────────────│ Balloon │────────────────────┤
667
+ * │ │ └─────────────┘ │ │
668
+ * │ │ │ │
669
+ * │ │ │ │
670
+ * │ │ │ │
671
+ * │ └───────────────────────────────────────────────────┘ │
672
+ * │ Viewport │
673
+ * └───────────────────────────────────────────────────────┘
674
+ * ```
675
+ *
676
+ * @default 20
677
+ */
678
+ static stickyVerticalOffset = 20;
679
+ /**
680
+ * Function used to calculate the optimal position for the balloon.
681
+ */
682
+ static _getOptimalPosition = getOptimalPosition;
683
+ /**
684
+ * A default set of positioning functions used by the balloon panel view
685
+ * when attaching using the {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView#attachTo} method.
686
+ *
687
+ * The available positioning functions are as follows:
688
+ *
689
+ * **North west**
690
+ *
691
+ * * `northWestArrowSouthWest`
692
+ *
693
+ * ```
694
+ * +-----------------+
695
+ * | Balloon |
696
+ * +-----------------+
697
+ * V
698
+ * [ Target ]
699
+ * ```
700
+ *
701
+ * * `northWestArrowSouthMiddleWest`
702
+ *
703
+ * ```
704
+ * +-----------------+
705
+ * | Balloon |
706
+ * +-----------------+
707
+ * V
708
+ * [ Target ]
709
+ * ```
710
+ *
711
+ * * `northWestArrowSouth`
712
+ *
713
+ * ```
714
+ * +-----------------+
715
+ * | Balloon |
716
+ * +-----------------+
717
+ * V
718
+ * [ Target ]
719
+ * ```
720
+ *
721
+ * * `northWestArrowSouthMiddleEast`
722
+ *
723
+ * ```
724
+ * +-----------------+
725
+ * | Balloon |
726
+ * +-----------------+
727
+ * V
728
+ * [ Target ]
729
+ * ```
730
+ *
731
+ * * `northWestArrowSouthEast`
732
+ *
733
+ * ```
734
+ * +-----------------+
735
+ * | Balloon |
736
+ * +-----------------+
737
+ * V
738
+ * [ Target ]
739
+ * ```
740
+ *
741
+ * **North**
742
+ *
743
+ * * `northArrowSouthWest`
744
+ *
745
+ * ```
746
+ * +-----------------+
747
+ * | Balloon |
748
+ * +-----------------+
749
+ * V
750
+ * [ Target ]
751
+ * ```
752
+ *
753
+ * * `northArrowSouthMiddleWest`
754
+ *
755
+ * ```
756
+ * +-----------------+
757
+ * | Balloon |
758
+ * +-----------------+
759
+ * V
760
+ * [ Target ]
761
+ * ```
762
+ * * `northArrowSouth`
763
+ *
764
+ * ```
765
+ * +-----------------+
766
+ * | Balloon |
767
+ * +-----------------+
768
+ * V
769
+ * [ Target ]
770
+ * ```
771
+ *
772
+ * * `northArrowSouthMiddleEast`
773
+ *
774
+ * ```
775
+ * +-----------------+
776
+ * | Balloon |
777
+ * +-----------------+
778
+ * V
779
+ * [ Target ]
780
+ * ```
781
+ *
782
+ * * `northArrowSouthEast`
783
+ *
784
+ * ```
785
+ * +-----------------+
786
+ * | Balloon |
787
+ * +-----------------+
788
+ * V
789
+ * [ Target ]
790
+ * ```
791
+ *
792
+ * **North east**
793
+ *
794
+ * * `northEastArrowSouthWest`
795
+ *
796
+ * ```
797
+ * +-----------------+
798
+ * | Balloon |
799
+ * +-----------------+
800
+ * V
801
+ * [ Target ]
802
+ * ```
803
+ *
804
+ * * `northEastArrowSouthMiddleWest`
805
+ *
806
+ * ```
807
+ * +-----------------+
808
+ * | Balloon |
809
+ * +-----------------+
810
+ * V
811
+ * [ Target ]
812
+ * ```
813
+ *
814
+ * * `northEastArrowSouth`
815
+ *
816
+ * ```
817
+ * +-----------------+
818
+ * | Balloon |
819
+ * +-----------------+
820
+ * V
821
+ * [ Target ]
822
+ * ```
823
+ *
824
+ * * `northEastArrowSouthMiddleEast`
825
+ *
826
+ * ```
827
+ * +-----------------+
828
+ * | Balloon |
829
+ * +-----------------+
830
+ * V
831
+ * [ Target ]
832
+ * ```
833
+ *
834
+ * * `northEastArrowSouthEast`
835
+ *
836
+ * ```
837
+ * +-----------------+
838
+ * | Balloon |
839
+ * +-----------------+
840
+ * V
841
+ * [ Target ]
842
+ * ```
843
+ *
844
+ * **South**
845
+ *
846
+ * * `southArrowNorthWest`
847
+ *
848
+ * ```
849
+ * [ Target ]
850
+ * ^
851
+ * +-----------------+
852
+ * | Balloon |
853
+ * +-----------------+
854
+ * ```
855
+ *
856
+ * * `southArrowNorthMiddleWest`
857
+ *
858
+ * ```
859
+ * [ Target ]
860
+ * ^
861
+ * +-----------------+
862
+ * | Balloon |
863
+ * +-----------------+
864
+ * ```
865
+ *
866
+ * * `southArrowNorth`
867
+ *
868
+ * ```
869
+ * [ Target ]
870
+ * ^
871
+ * +-----------------+
872
+ * | Balloon |
873
+ * +-----------------+
874
+ * ```
875
+ *
876
+ * * `southArrowNorthMiddleEast`
877
+ *
878
+ * ```
879
+ * [ Target ]
880
+ * ^
881
+ * +-----------------+
882
+ * | Balloon |
883
+ * +-----------------+
884
+ * ```
885
+ *
886
+ * * `southArrowNorthEast`
887
+ *
888
+ * ```
889
+ * [ Target ]
890
+ * ^
891
+ * +-----------------+
892
+ * | Balloon |
893
+ * +-----------------+
894
+ * ```
895
+ *
896
+ * **South west**
897
+ *
898
+ * * `southWestArrowNorthWest`
899
+ *
900
+ *
901
+ * ```
902
+ * [ Target ]
903
+ * ^
904
+ * +-----------------+
905
+ * | Balloon |
906
+ * +-----------------+
907
+ * ```
908
+ *
909
+ * * `southWestArrowNorthMiddleWest`
910
+ *
911
+ * ```
912
+ * [ Target ]
913
+ * ^
914
+ * +-----------------+
915
+ * | Balloon |
916
+ * +-----------------+
917
+ * ```
918
+ *
919
+ * * `southWestArrowNorth`
920
+ *
921
+ * ```
922
+ * [ Target ]
923
+ * ^
924
+ * +-----------------+
925
+ * | Balloon |
926
+ * +-----------------+
927
+ * ```
928
+ *
929
+ * * `southWestArrowNorthMiddleEast`
930
+ *
931
+ * ```
932
+ * [ Target ]
933
+ * ^
934
+ * +-----------------+
935
+ * | Balloon |
936
+ * +-----------------+
937
+ * ```
938
+ *
939
+ * * `southWestArrowNorthEast`
940
+ *
941
+ * ```
942
+ * [ Target ]
943
+ * ^
944
+ * +-----------------+
945
+ * | Balloon |
946
+ * +-----------------+
947
+ * ```
948
+ *
949
+ * **South east**
950
+ *
951
+ * * `southEastArrowNorthWest`
952
+ *
953
+ * ```
954
+ * [ Target ]
955
+ * ^
956
+ * +-----------------+
957
+ * | Balloon |
958
+ * +-----------------+
959
+ * ```
960
+ *
961
+ * * `southEastArrowNorthMiddleWest`
962
+ *
963
+ * ```
964
+ * [ Target ]
965
+ * ^
966
+ * +-----------------+
967
+ * | Balloon |
968
+ * +-----------------+
969
+ * ```
970
+ *
971
+ * * `southEastArrowNorth`
972
+ *
973
+ * ```
974
+ * [ Target ]
975
+ * ^
976
+ * +-----------------+
977
+ * | Balloon |
978
+ * +-----------------+
979
+ * ```
980
+ *
981
+ * * `southEastArrowNorthMiddleEast`
982
+ *
983
+ * ```
984
+ * [ Target ]
985
+ * ^
986
+ * +-----------------+
987
+ * | Balloon |
988
+ * +-----------------+
989
+ * ```
990
+ *
991
+ * * `southEastArrowNorthEast`
992
+ *
993
+ * ```
994
+ * [ Target ]
995
+ * ^
996
+ * +-----------------+
997
+ * | Balloon |
998
+ * +-----------------+
999
+ * ```
1000
+ *
1001
+ * **West**
1002
+ *
1003
+ * * `westArrowEast`
1004
+ *
1005
+ * ```
1006
+ * +-----------------+
1007
+ * | Balloon |>[ Target ]
1008
+ * +-----------------+
1009
+ * ```
1010
+ *
1011
+ * **East**
1012
+ *
1013
+ * * `eastArrowWest`
1014
+ *
1015
+ * ```
1016
+ * +-----------------+
1017
+ * [ Target ]<| Balloon |
1018
+ * +-----------------+
1019
+ * ```
1020
+ *
1021
+ * **Sticky**
1022
+ *
1023
+ * * `viewportStickyNorth`
1024
+ *
1025
+ * ```
1026
+ * +---------------------------+
1027
+ * | [ Target ] |
1028
+ * | |
1029
+ * +-----------------------------------+
1030
+ * | | +-----------------+ | |
1031
+ * | | | Balloon | | |
1032
+ * | | +-----------------+ | |
1033
+ * | | | |
1034
+ * | | | |
1035
+ * | | | |
1036
+ * | | | |
1037
+ * | +---------------------------+ |
1038
+ * | Viewport |
1039
+ * +-----------------------------------+
1040
+ * ```
1041
+ *
1042
+ * See {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView#attachTo}.
1043
+ *
1044
+ * Positioning functions must be compatible with {@link module:utils/dom/position~DomPoint}.
1045
+ *
1046
+ * Default positioning functions with customized offsets can be generated using
1047
+ * {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView.generatePositions}.
1048
+ *
1049
+ * The name that the position function returns will be reflected in the balloon panel's class that
1050
+ * controls the placement of the "arrow". See {@link #position} to learn more.
1051
+ */
1052
+ static defaultPositions = /* #__PURE__ */ BalloonPanelView.generatePositions();
590
1053
  }
591
- /**
592
- * A side offset of the arrow tip from the edge of the balloon. Controlled by CSS.
593
- *
594
- * ```
595
- * ┌───────────────────────┐
596
- * │ │
597
- * │ Balloon │
598
- * │ Content │
599
- * │ │
600
- * └──+ +───────────────┘
601
- * | \ /
602
- * | \/
603
- * >┼─────┼< ─────────────────────── side offset
604
- *
605
- * ```
606
- *
607
- * @default 25
608
- */
609
- BalloonPanelView.arrowSideOffset = 25;
610
- /**
611
- * A height offset of the arrow from the edge of the balloon. Controlled by CSS.
612
- *
613
- * ```
614
- * ┌───────────────────────┐
615
- * │ │
616
- * │ Balloon │
617
- * │ Content │ ╱-- arrow height offset
618
- * │ │ V
619
- * └──+ +───────────────┘ --- ─┼───────
620
- * \ / │
621
- * \/ │
622
- * ────────────────────────────────┼───────
623
- * ^
624
- *
625
- *
626
- * >┼────┼< arrow height offset
627
- * │ │
628
- * │ ┌────────────────────────┐
629
- * │ │ │
630
- * │ ╱ │
631
- * │ ╱ Balloon │
632
- * │ ╲ Content │
633
- * │ ╲ │
634
- * │ │ │
635
- * │ └────────────────────────┘
636
- * ```
637
- *
638
- * @default 10
639
- */
640
- BalloonPanelView.arrowHeightOffset = 10;
641
- /**
642
- * A vertical offset of the balloon panel from the edge of the viewport if sticky.
643
- * It helps in accessing toolbar buttons underneath the balloon panel.
644
- *
645
- * ```
646
- * ┌───────────────────────────────────────────────────┐
647
- * │ Target │
648
- * │ │
649
- * │ /── vertical offset │
650
- * ┌─────────────────────────────V─────────────────────────┐
651
- * │ Toolbar ┌─────────────┐ │
652
- * ├────────────────────│ Balloon │────────────────────┤
653
- * │ │ └─────────────┘ │ │
654
- * │ │ │ │
655
- * │ │ │ │
656
- * │ │ │ │
657
- * │ └───────────────────────────────────────────────────┘ │
658
- * │ Viewport │
659
- * └───────────────────────────────────────────────────────┘
660
- * ```
661
- *
662
- * @default 20
663
- */
664
- BalloonPanelView.stickyVerticalOffset = 20;
665
- /**
666
- * Function used to calculate the optimal position for the balloon.
667
- */
668
- BalloonPanelView._getOptimalPosition = getOptimalPosition;
669
- /**
670
- * A default set of positioning functions used by the balloon panel view
671
- * when attaching using the {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView#attachTo} method.
672
- *
673
- * The available positioning functions are as follows:
674
- *
675
- * **North west**
676
- *
677
- * * `northWestArrowSouthWest`
678
- *
679
- * ```
680
- * +-----------------+
681
- * | Balloon |
682
- * +-----------------+
683
- * V
684
- * [ Target ]
685
- * ```
686
- *
687
- * * `northWestArrowSouthMiddleWest`
688
- *
689
- * ```
690
- * +-----------------+
691
- * | Balloon |
692
- * +-----------------+
693
- * V
694
- * [ Target ]
695
- * ```
696
- *
697
- * * `northWestArrowSouth`
698
- *
699
- * ```
700
- * +-----------------+
701
- * | Balloon |
702
- * +-----------------+
703
- * V
704
- * [ Target ]
705
- * ```
706
- *
707
- * * `northWestArrowSouthMiddleEast`
708
- *
709
- * ```
710
- * +-----------------+
711
- * | Balloon |
712
- * +-----------------+
713
- * V
714
- * [ Target ]
715
- * ```
716
- *
717
- * * `northWestArrowSouthEast`
718
- *
719
- * ```
720
- * +-----------------+
721
- * | Balloon |
722
- * +-----------------+
723
- * V
724
- * [ Target ]
725
- * ```
726
- *
727
- * **North**
728
- *
729
- * * `northArrowSouthWest`
730
- *
731
- * ```
732
- * +-----------------+
733
- * | Balloon |
734
- * +-----------------+
735
- * V
736
- * [ Target ]
737
- * ```
738
- *
739
- * * `northArrowSouthMiddleWest`
740
- *
741
- * ```
742
- * +-----------------+
743
- * | Balloon |
744
- * +-----------------+
745
- * V
746
- * [ Target ]
747
- * ```
748
- * * `northArrowSouth`
749
- *
750
- * ```
751
- * +-----------------+
752
- * | Balloon |
753
- * +-----------------+
754
- * V
755
- * [ Target ]
756
- * ```
757
- *
758
- * * `northArrowSouthMiddleEast`
759
- *
760
- * ```
761
- * +-----------------+
762
- * | Balloon |
763
- * +-----------------+
764
- * V
765
- * [ Target ]
766
- * ```
767
- *
768
- * * `northArrowSouthEast`
769
- *
770
- * ```
771
- * +-----------------+
772
- * | Balloon |
773
- * +-----------------+
774
- * V
775
- * [ Target ]
776
- * ```
777
- *
778
- * **North east**
779
- *
780
- * * `northEastArrowSouthWest`
781
- *
782
- * ```
783
- * +-----------------+
784
- * | Balloon |
785
- * +-----------------+
786
- * V
787
- * [ Target ]
788
- * ```
789
- *
790
- * * `northEastArrowSouthMiddleWest`
791
- *
792
- * ```
793
- * +-----------------+
794
- * | Balloon |
795
- * +-----------------+
796
- * V
797
- * [ Target ]
798
- * ```
799
- *
800
- * * `northEastArrowSouth`
801
- *
802
- * ```
803
- * +-----------------+
804
- * | Balloon |
805
- * +-----------------+
806
- * V
807
- * [ Target ]
808
- * ```
809
- *
810
- * * `northEastArrowSouthMiddleEast`
811
- *
812
- * ```
813
- * +-----------------+
814
- * | Balloon |
815
- * +-----------------+
816
- * V
817
- * [ Target ]
818
- * ```
819
- *
820
- * * `northEastArrowSouthEast`
821
- *
822
- * ```
823
- * +-----------------+
824
- * | Balloon |
825
- * +-----------------+
826
- * V
827
- * [ Target ]
828
- * ```
829
- *
830
- * **South**
831
- *
832
- * * `southArrowNorthWest`
833
- *
834
- * ```
835
- * [ Target ]
836
- * ^
837
- * +-----------------+
838
- * | Balloon |
839
- * +-----------------+
840
- * ```
841
- *
842
- * * `southArrowNorthMiddleWest`
843
- *
844
- * ```
845
- * [ Target ]
846
- * ^
847
- * +-----------------+
848
- * | Balloon |
849
- * +-----------------+
850
- * ```
851
- *
852
- * * `southArrowNorth`
853
- *
854
- * ```
855
- * [ Target ]
856
- * ^
857
- * +-----------------+
858
- * | Balloon |
859
- * +-----------------+
860
- * ```
861
- *
862
- * * `southArrowNorthMiddleEast`
863
- *
864
- * ```
865
- * [ Target ]
866
- * ^
867
- * +-----------------+
868
- * | Balloon |
869
- * +-----------------+
870
- * ```
871
- *
872
- * * `southArrowNorthEast`
873
- *
874
- * ```
875
- * [ Target ]
876
- * ^
877
- * +-----------------+
878
- * | Balloon |
879
- * +-----------------+
880
- * ```
881
- *
882
- * **South west**
883
- *
884
- * * `southWestArrowNorthWest`
885
- *
886
- *
887
- * ```
888
- * [ Target ]
889
- * ^
890
- * +-----------------+
891
- * | Balloon |
892
- * +-----------------+
893
- * ```
894
- *
895
- * * `southWestArrowNorthMiddleWest`
896
- *
897
- * ```
898
- * [ Target ]
899
- * ^
900
- * +-----------------+
901
- * | Balloon |
902
- * +-----------------+
903
- * ```
904
- *
905
- * * `southWestArrowNorth`
906
- *
907
- * ```
908
- * [ Target ]
909
- * ^
910
- * +-----------------+
911
- * | Balloon |
912
- * +-----------------+
913
- * ```
914
- *
915
- * * `southWestArrowNorthMiddleEast`
916
- *
917
- * ```
918
- * [ Target ]
919
- * ^
920
- * +-----------------+
921
- * | Balloon |
922
- * +-----------------+
923
- * ```
924
- *
925
- * * `southWestArrowNorthEast`
926
- *
927
- * ```
928
- * [ Target ]
929
- * ^
930
- * +-----------------+
931
- * | Balloon |
932
- * +-----------------+
933
- * ```
934
- *
935
- * **South east**
936
- *
937
- * * `southEastArrowNorthWest`
938
- *
939
- * ```
940
- * [ Target ]
941
- * ^
942
- * +-----------------+
943
- * | Balloon |
944
- * +-----------------+
945
- * ```
946
- *
947
- * * `southEastArrowNorthMiddleWest`
948
- *
949
- * ```
950
- * [ Target ]
951
- * ^
952
- * +-----------------+
953
- * | Balloon |
954
- * +-----------------+
955
- * ```
956
- *
957
- * * `southEastArrowNorth`
958
- *
959
- * ```
960
- * [ Target ]
961
- * ^
962
- * +-----------------+
963
- * | Balloon |
964
- * +-----------------+
965
- * ```
966
- *
967
- * * `southEastArrowNorthMiddleEast`
968
- *
969
- * ```
970
- * [ Target ]
971
- * ^
972
- * +-----------------+
973
- * | Balloon |
974
- * +-----------------+
975
- * ```
976
- *
977
- * * `southEastArrowNorthEast`
978
- *
979
- * ```
980
- * [ Target ]
981
- * ^
982
- * +-----------------+
983
- * | Balloon |
984
- * +-----------------+
985
- * ```
986
- *
987
- * **West**
988
- *
989
- * * `westArrowEast`
990
- *
991
- * ```
992
- * +-----------------+
993
- * | Balloon |>[ Target ]
994
- * +-----------------+
995
- * ```
996
- *
997
- * **East**
998
- *
999
- * * `eastArrowWest`
1000
- *
1001
- * ```
1002
- * +-----------------+
1003
- * [ Target ]<| Balloon |
1004
- * +-----------------+
1005
- * ```
1006
- *
1007
- * **Sticky**
1008
- *
1009
- * * `viewportStickyNorth`
1010
- *
1011
- * ```
1012
- * +---------------------------+
1013
- * | [ Target ] |
1014
- * | |
1015
- * +-----------------------------------+
1016
- * | | +-----------------+ | |
1017
- * | | | Balloon | | |
1018
- * | | +-----------------+ | |
1019
- * | | | |
1020
- * | | | |
1021
- * | | | |
1022
- * | | | |
1023
- * | +---------------------------+ |
1024
- * | Viewport |
1025
- * +-----------------------------------+
1026
- * ```
1027
- *
1028
- * See {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView#attachTo}.
1029
- *
1030
- * Positioning functions must be compatible with {@link module:utils/dom/position~DomPoint}.
1031
- *
1032
- * Default positioning functions with customized offsets can be generated using
1033
- * {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView.generatePositions}.
1034
- *
1035
- * The name that the position function returns will be reflected in the balloon panel's class that
1036
- * controls the placement of the "arrow". See {@link #position} to learn more.
1037
- */
1038
- BalloonPanelView.defaultPositions = BalloonPanelView.generatePositions();
1039
1054
  export default BalloonPanelView;
1040
1055
  /**
1041
1056
  * Returns the DOM element for given object or null, if there is none,