jqtree 1.6.3 → 1.7.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.
Files changed (64) hide show
  1. package/.github/workflows/ci.yml +21 -19
  2. package/.tool-versions +1 -0
  3. package/README.md +1 -1
  4. package/bower.json +10 -3
  5. package/config/production +2 -2
  6. package/config/{rollup.config.js → rollup.config.mjs} +3 -8
  7. package/docs/Gemfile.lock +3 -3
  8. package/docs/_config.yml +1 -1
  9. package/docs/_entries/10_changelog.md +9 -0
  10. package/docs/_entries/93_getnextnode.md +4 -1
  11. package/docs/_entries/{95_getpreviousnode.md → 95_getnextvisiblenode.md} +1 -1
  12. package/docs/_entries/96_getpreviousnode.md +0 -0
  13. package/docs/_entries/{96_getprevioussibling.md → 97_getprevioussibling.md} +0 -0
  14. package/docs/_entries/98_getpreviousvisiblenode.md +14 -0
  15. package/docs/_entries/{97_parent.md → 99_parent.md} +0 -0
  16. package/docs/package.json +7 -7
  17. package/docs/pnpm-lock.yaml +138 -108
  18. package/docs/static/bower.json +1 -1
  19. package/docs/static/bower_components/jquery/dist/jquery.js +209 -97
  20. package/docs/static/bower_components/jquery/dist/jquery.min.js +2 -2
  21. package/docs/static/documentation.css +224 -84
  22. package/docs/static/example.css +0 -1
  23. package/docs/tree.jquery.js +2 -2
  24. package/lib/dataLoader.js +5 -31
  25. package/lib/dragAndDropHandler.js +19 -132
  26. package/lib/elementsRenderer.js +29 -59
  27. package/lib/keyHandler.js +8 -32
  28. package/lib/mouse.widget.js +13 -74
  29. package/lib/node.js +60 -125
  30. package/lib/nodeElement.js +5 -72
  31. package/lib/playwright/coverage.js +58 -97
  32. package/lib/playwright/playwright.test.js +148 -210
  33. package/lib/playwright/testUtils.js +116 -182
  34. package/lib/saveStateHandler.js +12 -61
  35. package/lib/scrollHandler.js +17 -74
  36. package/lib/selectNodeHandler.js +5 -24
  37. package/lib/simple.widget.js +18 -53
  38. package/lib/test/jqTree/create.test.js +0 -4
  39. package/lib/test/jqTree/events.test.js +0 -7
  40. package/lib/test/jqTree/keyboard.test.js +0 -6
  41. package/lib/test/jqTree/loadOnDemand.test.js +84 -121
  42. package/lib/test/jqTree/methods.test.js +107 -150
  43. package/lib/test/jqTree/options.test.js +32 -54
  44. package/lib/test/node.test.js +127 -72
  45. package/lib/test/nodeUtil.test.js +0 -1
  46. package/lib/test/support/jqTreeMatchers.js +4 -9
  47. package/lib/test/support/setupTests.js +0 -4
  48. package/lib/test/support/testUtil.js +2 -11
  49. package/lib/test/support/treeStructure.js +0 -6
  50. package/lib/test/util.test.js +0 -1
  51. package/lib/tree.jquery.js +28 -239
  52. package/lib/util.js +0 -6
  53. package/lib/version.js +1 -1
  54. package/package.json +40 -39
  55. package/src/keyHandler.ts +3 -3
  56. package/src/node.ts +43 -12
  57. package/src/test/.eslintrc +3 -1
  58. package/src/test/node.test.ts +146 -54
  59. package/src/tree.jquery.ts +6 -5
  60. package/src/version.ts +1 -1
  61. package/tree.jquery.debug.js +202 -855
  62. package/tree.jquery.debug.js.map +1 -1
  63. package/tree.jquery.js +2 -2
  64. package/tree.jquery.js.map +1 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- ! tailwindcss v3.1.2 | MIT License | https://tailwindcss.com
2
+ ! tailwindcss v3.1.8 | MIT License | https://tailwindcss.com
3
3
  */
4
4
 
5
5
  /*
@@ -355,13 +355,6 @@ input::-moz-placeholder, textarea::-moz-placeholder {
355
355
  /* 2 */
356
356
  }
357
357
 
358
- input:-ms-input-placeholder, textarea:-ms-input-placeholder {
359
- opacity: 1;
360
- /* 1 */
361
- color: #9ca3af;
362
- /* 2 */
363
- }
364
-
365
358
  input::placeholder,
366
359
  textarea::placeholder {
367
360
  opacity: 1;
@@ -464,53 +457,6 @@ video {
464
457
  --tw-backdrop-sepia: ;
465
458
  }
466
459
 
467
- ::-webkit-backdrop {
468
- --tw-border-spacing-x: 0;
469
- --tw-border-spacing-y: 0;
470
- --tw-translate-x: 0;
471
- --tw-translate-y: 0;
472
- --tw-rotate: 0;
473
- --tw-skew-x: 0;
474
- --tw-skew-y: 0;
475
- --tw-scale-x: 1;
476
- --tw-scale-y: 1;
477
- --tw-pan-x: ;
478
- --tw-pan-y: ;
479
- --tw-pinch-zoom: ;
480
- --tw-scroll-snap-strictness: proximity;
481
- --tw-ordinal: ;
482
- --tw-slashed-zero: ;
483
- --tw-numeric-figure: ;
484
- --tw-numeric-spacing: ;
485
- --tw-numeric-fraction: ;
486
- --tw-ring-inset: ;
487
- --tw-ring-offset-width: 0px;
488
- --tw-ring-offset-color: #fff;
489
- --tw-ring-color: rgb(59 130 246 / 0.5);
490
- --tw-ring-offset-shadow: 0 0 #0000;
491
- --tw-ring-shadow: 0 0 #0000;
492
- --tw-shadow: 0 0 #0000;
493
- --tw-shadow-colored: 0 0 #0000;
494
- --tw-blur: ;
495
- --tw-brightness: ;
496
- --tw-contrast: ;
497
- --tw-grayscale: ;
498
- --tw-hue-rotate: ;
499
- --tw-invert: ;
500
- --tw-saturate: ;
501
- --tw-sepia: ;
502
- --tw-drop-shadow: ;
503
- --tw-backdrop-blur: ;
504
- --tw-backdrop-brightness: ;
505
- --tw-backdrop-contrast: ;
506
- --tw-backdrop-grayscale: ;
507
- --tw-backdrop-hue-rotate: ;
508
- --tw-backdrop-invert: ;
509
- --tw-backdrop-opacity: ;
510
- --tw-backdrop-saturate: ;
511
- --tw-backdrop-sepia: ;
512
- }
513
-
514
460
  ::backdrop {
515
461
  --tw-border-spacing-x: 0;
516
462
  --tw-border-spacing-y: 0;
@@ -582,8 +528,22 @@ video {
582
528
  font-weight: 600;
583
529
  }
584
530
 
531
+ .prose :where(a strong):not(:where([class~="not-prose"] *)) {
532
+ color: inherit;
533
+ }
534
+
535
+ .prose :where(blockquote strong):not(:where([class~="not-prose"] *)) {
536
+ color: inherit;
537
+ }
538
+
539
+ .prose :where(thead th strong):not(:where([class~="not-prose"] *)) {
540
+ color: inherit;
541
+ }
542
+
585
543
  .prose :where(ol):not(:where([class~="not-prose"] *)) {
586
544
  list-style-type: decimal;
545
+ margin-top: 1.25em;
546
+ margin-bottom: 1.25em;
587
547
  padding-left: 1.625em;
588
548
  }
589
549
 
@@ -625,6 +585,8 @@ video {
625
585
 
626
586
  .prose :where(ul):not(:where([class~="not-prose"] *)) {
627
587
  list-style-type: disc;
588
+ margin-top: 1.25em;
589
+ margin-bottom: 1.25em;
628
590
  padding-left: 1.625em;
629
591
  }
630
592
 
@@ -675,6 +637,7 @@ video {
675
637
 
676
638
  .prose :where(h1 strong):not(:where([class~="not-prose"] *)) {
677
639
  font-weight: 900;
640
+ color: inherit;
678
641
  }
679
642
 
680
643
  .prose :where(h2):not(:where([class~="not-prose"] *)) {
@@ -688,6 +651,7 @@ video {
688
651
 
689
652
  .prose :where(h2 strong):not(:where([class~="not-prose"] *)) {
690
653
  font-weight: 800;
654
+ color: inherit;
691
655
  }
692
656
 
693
657
  .prose :where(h3):not(:where([class~="not-prose"] *)) {
@@ -701,6 +665,7 @@ video {
701
665
 
702
666
  .prose :where(h3 strong):not(:where([class~="not-prose"] *)) {
703
667
  font-weight: 700;
668
+ color: inherit;
704
669
  }
705
670
 
706
671
  .prose :where(h4):not(:where([class~="not-prose"] *)) {
@@ -713,6 +678,12 @@ video {
713
678
 
714
679
  .prose :where(h4 strong):not(:where([class~="not-prose"] *)) {
715
680
  font-weight: 700;
681
+ color: inherit;
682
+ }
683
+
684
+ .prose :where(img):not(:where([class~="not-prose"] *)) {
685
+ margin-top: 2em;
686
+ margin-bottom: 2em;
716
687
  }
717
688
 
718
689
  .prose :where(figure > *):not(:where([class~="not-prose"] *)) {
@@ -742,7 +713,33 @@ video {
742
713
  }
743
714
 
744
715
  .prose :where(a code):not(:where([class~="not-prose"] *)) {
745
- color: var(--tw-prose-links);
716
+ color: inherit;
717
+ }
718
+
719
+ .prose :where(h1 code):not(:where([class~="not-prose"] *)) {
720
+ color: inherit;
721
+ }
722
+
723
+ .prose :where(h2 code):not(:where([class~="not-prose"] *)) {
724
+ color: inherit;
725
+ font-size: 0.875em;
726
+ }
727
+
728
+ .prose :where(h3 code):not(:where([class~="not-prose"] *)) {
729
+ color: inherit;
730
+ font-size: 0.9em;
731
+ }
732
+
733
+ .prose :where(h4 code):not(:where([class~="not-prose"] *)) {
734
+ color: inherit;
735
+ }
736
+
737
+ .prose :where(blockquote code):not(:where([class~="not-prose"] *)) {
738
+ color: inherit;
739
+ }
740
+
741
+ .prose :where(thead th code):not(:where([class~="not-prose"] *)) {
742
+ color: inherit;
746
743
  }
747
744
 
748
745
  .prose :where(pre):not(:where([class~="not-prose"] *)) {
@@ -816,10 +813,15 @@ video {
816
813
 
817
814
  .prose :where(tbody td):not(:where([class~="not-prose"] *)) {
818
815
  vertical-align: baseline;
819
- padding-top: 0.5714286em;
820
- padding-right: 0.5714286em;
821
- padding-bottom: 0.5714286em;
822
- padding-left: 0.5714286em;
816
+ }
817
+
818
+ .prose :where(tfoot):not(:where([class~="not-prose"] *)) {
819
+ border-top-width: 1px;
820
+ border-top-color: var(--tw-prose-th-borders);
821
+ }
822
+
823
+ .prose :where(tfoot td):not(:where([class~="not-prose"] *)) {
824
+ vertical-align: top;
823
825
  }
824
826
 
825
827
  .prose {
@@ -864,11 +866,6 @@ video {
864
866
  margin-bottom: 1.25em;
865
867
  }
866
868
 
867
- .prose :where(img):not(:where([class~="not-prose"] *)) {
868
- margin-top: 2em;
869
- margin-bottom: 2em;
870
- }
871
-
872
869
  .prose :where(video):not(:where([class~="not-prose"] *)) {
873
870
  margin-top: 2em;
874
871
  margin-bottom: 2em;
@@ -879,14 +876,6 @@ video {
879
876
  margin-bottom: 2em;
880
877
  }
881
878
 
882
- .prose :where(h2 code):not(:where([class~="not-prose"] *)) {
883
- font-size: 0.875em;
884
- }
885
-
886
- .prose :where(h3 code):not(:where([class~="not-prose"] *)) {
887
- font-size: 0.9em;
888
- }
889
-
890
879
  .prose :where(li):not(:where([class~="not-prose"] *)) {
891
880
  margin-top: 0.5em;
892
881
  margin-bottom: 0.5em;
@@ -900,24 +889,24 @@ video {
900
889
  padding-left: 0.375em;
901
890
  }
902
891
 
903
- .prose > :where(ul > li p):not(:where([class~="not-prose"] *)) {
892
+ .prose :where(.prose > ul > li p):not(:where([class~="not-prose"] *)) {
904
893
  margin-top: 0.75em;
905
894
  margin-bottom: 0.75em;
906
895
  }
907
896
 
908
- .prose > :where(ul > li > *:first-child):not(:where([class~="not-prose"] *)) {
897
+ .prose :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)) {
909
898
  margin-top: 1.25em;
910
899
  }
911
900
 
912
- .prose > :where(ul > li > *:last-child):not(:where([class~="not-prose"] *)) {
901
+ .prose :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)) {
913
902
  margin-bottom: 1.25em;
914
903
  }
915
904
 
916
- .prose > :where(ol > li > *:first-child):not(:where([class~="not-prose"] *)) {
905
+ .prose :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)) {
917
906
  margin-top: 1.25em;
918
907
  }
919
908
 
920
- .prose > :where(ol > li > *:last-child):not(:where([class~="not-prose"] *)) {
909
+ .prose :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)) {
921
910
  margin-bottom: 1.25em;
922
911
  }
923
912
 
@@ -950,19 +939,171 @@ video {
950
939
  padding-right: 0;
951
940
  }
952
941
 
953
- .prose :where(tbody td:first-child):not(:where([class~="not-prose"] *)) {
942
+ .prose :where(tbody td, tfoot td):not(:where([class~="not-prose"] *)) {
943
+ padding-top: 0.5714286em;
944
+ padding-right: 0.5714286em;
945
+ padding-bottom: 0.5714286em;
946
+ padding-left: 0.5714286em;
947
+ }
948
+
949
+ .prose :where(tbody td:first-child, tfoot td:first-child):not(:where([class~="not-prose"] *)) {
954
950
  padding-left: 0;
955
951
  }
956
952
 
957
- .prose :where(tbody td:last-child):not(:where([class~="not-prose"] *)) {
953
+ .prose :where(tbody td:last-child, tfoot td:last-child):not(:where([class~="not-prose"] *)) {
958
954
  padding-right: 0;
959
955
  }
960
956
 
961
- .prose > :where(:first-child):not(:where([class~="not-prose"] *)) {
957
+ .prose :where(.prose > :first-child):not(:where([class~="not-prose"] *)) {
958
+ margin-top: 0;
959
+ }
960
+
961
+ .prose :where(.prose > :last-child):not(:where([class~="not-prose"] *)) {
962
+ margin-bottom: 0;
963
+ }
964
+
965
+ .prose-sm :where(.prose > ul > li p):not(:where([class~="not-prose"] *)) {
966
+ margin-top: 0.5714286em;
967
+ margin-bottom: 0.5714286em;
968
+ }
969
+
970
+ .prose-sm :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)) {
971
+ margin-top: 1.1428571em;
972
+ }
973
+
974
+ .prose-sm :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)) {
975
+ margin-bottom: 1.1428571em;
976
+ }
977
+
978
+ .prose-sm :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)) {
979
+ margin-top: 1.1428571em;
980
+ }
981
+
982
+ .prose-sm :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)) {
983
+ margin-bottom: 1.1428571em;
984
+ }
985
+
986
+ .prose-sm :where(.prose > :first-child):not(:where([class~="not-prose"] *)) {
987
+ margin-top: 0;
988
+ }
989
+
990
+ .prose-sm :where(.prose > :last-child):not(:where([class~="not-prose"] *)) {
991
+ margin-bottom: 0;
992
+ }
993
+
994
+ .prose-base :where(.prose > ul > li p):not(:where([class~="not-prose"] *)) {
995
+ margin-top: 0.75em;
996
+ margin-bottom: 0.75em;
997
+ }
998
+
999
+ .prose-base :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)) {
1000
+ margin-top: 1.25em;
1001
+ }
1002
+
1003
+ .prose-base :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)) {
1004
+ margin-bottom: 1.25em;
1005
+ }
1006
+
1007
+ .prose-base :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)) {
1008
+ margin-top: 1.25em;
1009
+ }
1010
+
1011
+ .prose-base :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)) {
1012
+ margin-bottom: 1.25em;
1013
+ }
1014
+
1015
+ .prose-base :where(.prose > :first-child):not(:where([class~="not-prose"] *)) {
1016
+ margin-top: 0;
1017
+ }
1018
+
1019
+ .prose-base :where(.prose > :last-child):not(:where([class~="not-prose"] *)) {
1020
+ margin-bottom: 0;
1021
+ }
1022
+
1023
+ .prose-lg :where(.prose > ul > li p):not(:where([class~="not-prose"] *)) {
1024
+ margin-top: 0.8888889em;
1025
+ margin-bottom: 0.8888889em;
1026
+ }
1027
+
1028
+ .prose-lg :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)) {
1029
+ margin-top: 1.3333333em;
1030
+ }
1031
+
1032
+ .prose-lg :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)) {
1033
+ margin-bottom: 1.3333333em;
1034
+ }
1035
+
1036
+ .prose-lg :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)) {
1037
+ margin-top: 1.3333333em;
1038
+ }
1039
+
1040
+ .prose-lg :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)) {
1041
+ margin-bottom: 1.3333333em;
1042
+ }
1043
+
1044
+ .prose-lg :where(.prose > :first-child):not(:where([class~="not-prose"] *)) {
1045
+ margin-top: 0;
1046
+ }
1047
+
1048
+ .prose-lg :where(.prose > :last-child):not(:where([class~="not-prose"] *)) {
1049
+ margin-bottom: 0;
1050
+ }
1051
+
1052
+ .prose-xl :where(.prose > ul > li p):not(:where([class~="not-prose"] *)) {
1053
+ margin-top: 0.8em;
1054
+ margin-bottom: 0.8em;
1055
+ }
1056
+
1057
+ .prose-xl :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)) {
1058
+ margin-top: 1.2em;
1059
+ }
1060
+
1061
+ .prose-xl :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)) {
1062
+ margin-bottom: 1.2em;
1063
+ }
1064
+
1065
+ .prose-xl :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)) {
1066
+ margin-top: 1.2em;
1067
+ }
1068
+
1069
+ .prose-xl :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)) {
1070
+ margin-bottom: 1.2em;
1071
+ }
1072
+
1073
+ .prose-xl :where(.prose > :first-child):not(:where([class~="not-prose"] *)) {
1074
+ margin-top: 0;
1075
+ }
1076
+
1077
+ .prose-xl :where(.prose > :last-child):not(:where([class~="not-prose"] *)) {
1078
+ margin-bottom: 0;
1079
+ }
1080
+
1081
+ .prose-2xl :where(.prose > ul > li p):not(:where([class~="not-prose"] *)) {
1082
+ margin-top: 0.8333333em;
1083
+ margin-bottom: 0.8333333em;
1084
+ }
1085
+
1086
+ .prose-2xl :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)) {
1087
+ margin-top: 1.3333333em;
1088
+ }
1089
+
1090
+ .prose-2xl :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)) {
1091
+ margin-bottom: 1.3333333em;
1092
+ }
1093
+
1094
+ .prose-2xl :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)) {
1095
+ margin-top: 1.3333333em;
1096
+ }
1097
+
1098
+ .prose-2xl :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)) {
1099
+ margin-bottom: 1.3333333em;
1100
+ }
1101
+
1102
+ .prose-2xl :where(.prose > :first-child):not(:where([class~="not-prose"] *)) {
962
1103
  margin-top: 0;
963
1104
  }
964
1105
 
965
- .prose > :where(:last-child):not(:where([class~="not-prose"] *)) {
1106
+ .prose-2xl :where(.prose > :last-child):not(:where([class~="not-prose"] *)) {
966
1107
  margin-bottom: 0;
967
1108
  }
968
1109
 
@@ -1237,8 +1378,7 @@ video {
1237
1378
  }
1238
1379
 
1239
1380
  .underline {
1240
- -webkit-text-decoration-line: underline;
1241
- text-decoration-line: underline;
1381
+ text-decoration-line: underline;
1242
1382
  }
1243
1383
 
1244
1384
  .shadow {
@@ -20,7 +20,6 @@
20
20
  #scroll-container {
21
21
  height: 200px;
22
22
  overflow-y: scroll;
23
- -ms-user-select: none;
24
23
  -webkit-user-select: none;
25
24
  -moz-user-select: none;
26
25
  user-select: none;