jqtree 1.7.0 → 1.7.2
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.
- package/.github/workflows/ci.yml +2 -15
- package/.github/workflows/codeql-analysis.yml +2 -2
- package/.github/workflows/size.yml +24 -0
- package/README.md +1 -1
- package/bower.json +1 -1
- package/docs/Gemfile.lock +39 -40
- package/docs/_config.yml +1 -1
- package/docs/_entries/03_features.md +1 -1
- package/docs/_entries/10_changelog.md +9 -0
- package/docs/_entries/16_closedicon.md +17 -3
- package/docs/_entries/31_openedicon.md +17 -3
- package/docs/package.json +7 -7
- package/docs/pnpm-lock.yaml +378 -284
- package/docs/static/bower.json +2 -2
- package/docs/static/bower_components/fontawesome/css/all.min.css +6 -2
- package/docs/static/bower_components/fontawesome/webfonts/fa-brands-400.ttf +0 -0
- package/docs/static/bower_components/fontawesome/webfonts/fa-brands-400.woff2 +0 -0
- package/docs/static/bower_components/fontawesome/webfonts/fa-regular-400.ttf +0 -0
- package/docs/static/bower_components/fontawesome/webfonts/fa-regular-400.woff2 +0 -0
- package/docs/static/bower_components/fontawesome/webfonts/fa-solid-900.ttf +0 -0
- package/docs/static/bower_components/fontawesome/webfonts/fa-solid-900.woff2 +0 -0
- package/docs/static/bower_components/fontawesome/webfonts/fa-v4compatibility.ttf +0 -0
- package/docs/static/bower_components/fontawesome/webfonts/fa-v4compatibility.woff2 +0 -0
- package/docs/static/bower_components/jquery/dist/jquery.js +813 -1102
- package/docs/static/bower_components/jquery/dist/jquery.min.js +2 -2
- package/docs/static/documentation.css +104 -222
- package/docs/static/examples/autoescape.js +15 -17
- package/docs/static/examples/autoscroll.js +5 -7
- package/docs/static/examples/button-on-right.js +4 -6
- package/docs/static/examples/custom_html.js +22 -24
- package/docs/static/examples/drag-outside.js +23 -25
- package/docs/static/examples/drag_and_drop.js +4 -6
- package/docs/static/examples/icon_buttons.js +3 -5
- package/docs/static/examples/load_json_data.js +14 -16
- package/docs/static/examples/load_json_data_from_server.js +1 -3
- package/docs/static/examples/load_on_demand.js +3 -5
- package/docs/static/examples/multiple_select.js +19 -21
- package/docs/static/examples/right-to-left.js +2 -4
- package/docs/static/examples/save_state.js +2 -4
- package/docs/tree.jquery.js +3 -3
- package/lib/dataLoader.js +3 -3
- package/lib/dragAndDropHandler.js +22 -11
- package/lib/elementsRenderer.js +26 -16
- package/lib/keyHandler.js +1 -1
- package/lib/mouse.widget.js +13 -2
- package/lib/node.js +17 -14
- package/lib/nodeElement.js +20 -13
- package/lib/playwright/coverage.js +11 -16
- package/lib/playwright/playwright.test.js +37 -58
- package/lib/playwright/testUtils.js +27 -44
- package/lib/saveStateHandler.js +2 -2
- package/lib/scrollHandler.js +8 -4
- package/lib/selectNodeHandler.js +2 -2
- package/lib/simple.widget.js +5 -3
- package/lib/test/jqTree/accessibility.test.js +37 -0
- package/lib/test/jqTree/events.test.js +73 -77
- package/lib/test/jqTree/loadOnDemand.test.js +5 -4
- package/lib/test/jqTree/methods.test.js +2 -2
- package/lib/test/jqTree/options.test.js +43 -2
- package/lib/test/node.test.js +7 -4
- package/lib/tree.jquery.js +5 -5
- package/lib/version.js +1 -1
- package/package.json +37 -41
- package/src/dragAndDropHandler.ts +24 -10
- package/src/elementsRenderer.ts +57 -50
- package/src/jqtreeOptions.ts +5 -5
- package/src/mouse.widget.ts +12 -0
- package/src/node.ts +10 -5
- package/src/nodeElement.ts +27 -21
- package/src/saveStateHandler.ts +1 -1
- package/src/scrollHandler.ts +6 -2
- package/src/selectNodeHandler.ts +1 -1
- package/src/simple.widget.ts +2 -0
- package/src/test/.eslintrc +2 -1
- package/src/test/jqTree/accessibility.test.ts +25 -0
- package/src/test/jqTree/events.test.ts +79 -93
- package/src/test/jqTree/loadOnDemand.test.ts +6 -5
- package/src/test/jqTree/methods.test.ts +27 -27
- package/src/test/jqTree/options.test.ts +61 -8
- package/src/test/node.test.ts +6 -4
- package/src/test/nodeUtil.test.ts +1 -1
- package/src/tree.jquery.d.ts +20 -11
- package/src/tree.jquery.ts +1 -1
- package/src/version.ts +1 -1
- package/tree.jquery.debug.js +143 -97
- package/tree.jquery.debug.js.map +1 -1
- package/tree.jquery.js +3 -3
- package/tree.jquery.js.map +1 -1
- package/tsconfig.json +1 -0
- package/.tool-versions +0 -1
- package/docs/static/bower_components/fontawesome/webfonts/fa-brands-400.eot +0 -0
- package/docs/static/bower_components/fontawesome/webfonts/fa-brands-400.svg +0 -3717
- package/docs/static/bower_components/fontawesome/webfonts/fa-brands-400.woff +0 -0
- package/docs/static/bower_components/fontawesome/webfonts/fa-regular-400.eot +0 -0
- package/docs/static/bower_components/fontawesome/webfonts/fa-regular-400.svg +0 -801
- package/docs/static/bower_components/fontawesome/webfonts/fa-regular-400.woff +0 -0
- package/docs/static/bower_components/fontawesome/webfonts/fa-solid-900.eot +0 -0
- package/docs/static/bower_components/fontawesome/webfonts/fa-solid-900.svg +0 -5028
- package/docs/static/bower_components/fontawesome/webfonts/fa-solid-900.woff +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
! tailwindcss v3.
|
|
2
|
+
! tailwindcss v3.3.3 | MIT License | https://tailwindcss.com
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
/*
|
|
@@ -30,6 +30,8 @@
|
|
|
30
30
|
2. Prevent adjustments of font size after orientation changes in iOS.
|
|
31
31
|
3. Use a more readable tab size.
|
|
32
32
|
4. Use the user's configured `sans` font-family by default.
|
|
33
|
+
5. Use the user's configured `sans` font-feature-settings by default.
|
|
34
|
+
6. Use the user's configured `sans` font-variation-settings by default.
|
|
33
35
|
*/
|
|
34
36
|
|
|
35
37
|
html {
|
|
@@ -44,6 +46,10 @@ html {
|
|
|
44
46
|
/* 3 */
|
|
45
47
|
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
46
48
|
/* 4 */
|
|
49
|
+
font-feature-settings: normal;
|
|
50
|
+
/* 5 */
|
|
51
|
+
font-variation-settings: normal;
|
|
52
|
+
/* 6 */
|
|
47
53
|
}
|
|
48
54
|
|
|
49
55
|
/*
|
|
@@ -185,6 +191,10 @@ select,
|
|
|
185
191
|
textarea {
|
|
186
192
|
font-family: inherit;
|
|
187
193
|
/* 1 */
|
|
194
|
+
font-feature-settings: inherit;
|
|
195
|
+
/* 1 */
|
|
196
|
+
font-variation-settings: inherit;
|
|
197
|
+
/* 1 */
|
|
188
198
|
font-size: 100%;
|
|
189
199
|
/* 1 */
|
|
190
200
|
font-weight: inherit;
|
|
@@ -335,6 +345,14 @@ menu {
|
|
|
335
345
|
padding: 0;
|
|
336
346
|
}
|
|
337
347
|
|
|
348
|
+
/*
|
|
349
|
+
Reset default styling for dialogs.
|
|
350
|
+
*/
|
|
351
|
+
|
|
352
|
+
dialog {
|
|
353
|
+
padding: 0;
|
|
354
|
+
}
|
|
355
|
+
|
|
338
356
|
/*
|
|
339
357
|
Prevent resizing textareas horizontally by default.
|
|
340
358
|
*/
|
|
@@ -410,6 +428,12 @@ video {
|
|
|
410
428
|
height: auto;
|
|
411
429
|
}
|
|
412
430
|
|
|
431
|
+
/* Make elements with the HTML hidden attribute stay hidden by default */
|
|
432
|
+
|
|
433
|
+
[hidden] {
|
|
434
|
+
display: none;
|
|
435
|
+
}
|
|
436
|
+
|
|
413
437
|
*, ::before, ::after {
|
|
414
438
|
--tw-border-spacing-x: 0;
|
|
415
439
|
--tw-border-spacing-y: 0;
|
|
@@ -424,6 +448,9 @@ video {
|
|
|
424
448
|
--tw-pan-y: ;
|
|
425
449
|
--tw-pinch-zoom: ;
|
|
426
450
|
--tw-scroll-snap-strictness: proximity;
|
|
451
|
+
--tw-gradient-from-position: ;
|
|
452
|
+
--tw-gradient-via-position: ;
|
|
453
|
+
--tw-gradient-to-position: ;
|
|
427
454
|
--tw-ordinal: ;
|
|
428
455
|
--tw-slashed-zero: ;
|
|
429
456
|
--tw-numeric-figure: ;
|
|
@@ -471,6 +498,9 @@ video {
|
|
|
471
498
|
--tw-pan-y: ;
|
|
472
499
|
--tw-pinch-zoom: ;
|
|
473
500
|
--tw-scroll-snap-strictness: proximity;
|
|
501
|
+
--tw-gradient-from-position: ;
|
|
502
|
+
--tw-gradient-via-position: ;
|
|
503
|
+
--tw-gradient-to-position: ;
|
|
474
504
|
--tw-ordinal: ;
|
|
475
505
|
--tw-slashed-zero: ;
|
|
476
506
|
--tw-numeric-figure: ;
|
|
@@ -509,6 +539,11 @@ video {
|
|
|
509
539
|
max-width: 65ch;
|
|
510
540
|
}
|
|
511
541
|
|
|
542
|
+
.prose :where(p):not(:where([class~="not-prose"] *)) {
|
|
543
|
+
margin-top: 1.25em;
|
|
544
|
+
margin-bottom: 1.25em;
|
|
545
|
+
}
|
|
546
|
+
|
|
512
547
|
.prose :where([class~="lead"]):not(:where([class~="not-prose"] *)) {
|
|
513
548
|
color: var(--tw-prose-lead);
|
|
514
549
|
font-size: 1.25em;
|
|
@@ -861,11 +896,6 @@ video {
|
|
|
861
896
|
line-height: 1.75;
|
|
862
897
|
}
|
|
863
898
|
|
|
864
|
-
.prose :where(p):not(:where([class~="not-prose"] *)) {
|
|
865
|
-
margin-top: 1.25em;
|
|
866
|
-
margin-bottom: 1.25em;
|
|
867
|
-
}
|
|
868
|
-
|
|
869
899
|
.prose :where(video):not(:where([class~="not-prose"] *)) {
|
|
870
900
|
margin-top: 2em;
|
|
871
901
|
margin-bottom: 2em;
|
|
@@ -962,160 +992,12 @@ video {
|
|
|
962
992
|
margin-bottom: 0;
|
|
963
993
|
}
|
|
964
994
|
|
|
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"] *)) {
|
|
1103
|
-
margin-top: 0;
|
|
1104
|
-
}
|
|
1105
|
-
|
|
1106
|
-
.prose-2xl :where(.prose > :last-child):not(:where([class~="not-prose"] *)) {
|
|
1107
|
-
margin-bottom: 0;
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
995
|
.fixed {
|
|
1111
996
|
position: fixed;
|
|
1112
997
|
}
|
|
1113
998
|
|
|
1114
999
|
.inset-0 {
|
|
1115
|
-
|
|
1116
|
-
right: 0px;
|
|
1117
|
-
bottom: 0px;
|
|
1118
|
-
left: 0px;
|
|
1000
|
+
inset: 0px;
|
|
1119
1001
|
}
|
|
1120
1002
|
|
|
1121
1003
|
.left-\[max\(0px\2c calc\(50\%-45rem\)\)\] {
|
|
@@ -1131,40 +1013,40 @@ video {
|
|
|
1131
1013
|
margin-right: auto;
|
|
1132
1014
|
}
|
|
1133
1015
|
|
|
1134
|
-
.
|
|
1135
|
-
margin-
|
|
1016
|
+
.mb-16 {
|
|
1017
|
+
margin-bottom: 4rem;
|
|
1136
1018
|
}
|
|
1137
1019
|
|
|
1138
1020
|
.mb-3 {
|
|
1139
1021
|
margin-bottom: 0.75rem;
|
|
1140
1022
|
}
|
|
1141
1023
|
|
|
1142
|
-
.
|
|
1143
|
-
margin-
|
|
1024
|
+
.mb-4 {
|
|
1025
|
+
margin-bottom: 1rem;
|
|
1144
1026
|
}
|
|
1145
1027
|
|
|
1146
1028
|
.mb-8 {
|
|
1147
1029
|
margin-bottom: 2rem;
|
|
1148
1030
|
}
|
|
1149
1031
|
|
|
1150
|
-
.
|
|
1151
|
-
margin-
|
|
1032
|
+
.ml-2 {
|
|
1033
|
+
margin-left: 0.5rem;
|
|
1152
1034
|
}
|
|
1153
1035
|
|
|
1154
|
-
.
|
|
1155
|
-
margin-
|
|
1036
|
+
.mr-4 {
|
|
1037
|
+
margin-right: 1rem;
|
|
1156
1038
|
}
|
|
1157
1039
|
|
|
1158
1040
|
.mt-4 {
|
|
1159
1041
|
margin-top: 1rem;
|
|
1160
1042
|
}
|
|
1161
1043
|
|
|
1162
|
-
.
|
|
1163
|
-
margin-
|
|
1044
|
+
.mt-5 {
|
|
1045
|
+
margin-top: 1.25rem;
|
|
1164
1046
|
}
|
|
1165
1047
|
|
|
1166
|
-
.
|
|
1167
|
-
margin-
|
|
1048
|
+
.mt-8 {
|
|
1049
|
+
margin-top: 2rem;
|
|
1168
1050
|
}
|
|
1169
1051
|
|
|
1170
1052
|
.block {
|
|
@@ -1213,6 +1095,11 @@ video {
|
|
|
1213
1095
|
border-left-width: 1px;
|
|
1214
1096
|
}
|
|
1215
1097
|
|
|
1098
|
+
.border-gray-300 {
|
|
1099
|
+
--tw-border-opacity: 1;
|
|
1100
|
+
border-color: rgb(209 213 219 / var(--tw-border-opacity));
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1216
1103
|
.border-slate-100 {
|
|
1217
1104
|
--tw-border-opacity: 1;
|
|
1218
1105
|
border-color: rgb(241 245 249 / var(--tw-border-opacity));
|
|
@@ -1222,11 +1109,6 @@ video {
|
|
|
1222
1109
|
border-color: transparent;
|
|
1223
1110
|
}
|
|
1224
1111
|
|
|
1225
|
-
.border-gray-300 {
|
|
1226
|
-
--tw-border-opacity: 1;
|
|
1227
|
-
border-color: rgb(209 213 219 / var(--tw-border-opacity));
|
|
1228
|
-
}
|
|
1229
|
-
|
|
1230
1112
|
.bg-gray-50 {
|
|
1231
1113
|
--tw-bg-opacity: 1;
|
|
1232
1114
|
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
@@ -1242,31 +1124,21 @@ video {
|
|
|
1242
1124
|
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
1243
1125
|
}
|
|
1244
1126
|
|
|
1245
|
-
.px-8 {
|
|
1246
|
-
padding-left: 2rem;
|
|
1247
|
-
padding-right: 2rem;
|
|
1248
|
-
}
|
|
1249
|
-
|
|
1250
1127
|
.px-10 {
|
|
1251
1128
|
padding-left: 2.5rem;
|
|
1252
1129
|
padding-right: 2.5rem;
|
|
1253
1130
|
}
|
|
1254
1131
|
|
|
1255
|
-
.py-4 {
|
|
1256
|
-
padding-top: 1rem;
|
|
1257
|
-
padding-bottom: 1rem;
|
|
1258
|
-
}
|
|
1259
|
-
|
|
1260
|
-
.py-8 {
|
|
1261
|
-
padding-top: 2rem;
|
|
1262
|
-
padding-bottom: 2rem;
|
|
1263
|
-
}
|
|
1264
|
-
|
|
1265
1132
|
.px-4 {
|
|
1266
1133
|
padding-left: 1rem;
|
|
1267
1134
|
padding-right: 1rem;
|
|
1268
1135
|
}
|
|
1269
1136
|
|
|
1137
|
+
.px-8 {
|
|
1138
|
+
padding-left: 2rem;
|
|
1139
|
+
padding-right: 2rem;
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1270
1142
|
.py-1 {
|
|
1271
1143
|
padding-top: 0.25rem;
|
|
1272
1144
|
padding-bottom: 0.25rem;
|
|
@@ -1277,12 +1149,14 @@ video {
|
|
|
1277
1149
|
padding-bottom: 0.5rem;
|
|
1278
1150
|
}
|
|
1279
1151
|
|
|
1280
|
-
.
|
|
1281
|
-
padding-
|
|
1152
|
+
.py-4 {
|
|
1153
|
+
padding-top: 1rem;
|
|
1154
|
+
padding-bottom: 1rem;
|
|
1282
1155
|
}
|
|
1283
1156
|
|
|
1284
|
-
.
|
|
1285
|
-
padding-top:
|
|
1157
|
+
.py-8 {
|
|
1158
|
+
padding-top: 2rem;
|
|
1159
|
+
padding-bottom: 2rem;
|
|
1286
1160
|
}
|
|
1287
1161
|
|
|
1288
1162
|
.pb-24 {
|
|
@@ -1293,58 +1167,71 @@ video {
|
|
|
1293
1167
|
padding-bottom: 1.5rem;
|
|
1294
1168
|
}
|
|
1295
1169
|
|
|
1170
|
+
.pl-4 {
|
|
1171
|
+
padding-left: 1rem;
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
.pt-16 {
|
|
1175
|
+
padding-top: 4rem;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1296
1178
|
.text-center {
|
|
1297
1179
|
text-align: center;
|
|
1298
1180
|
}
|
|
1299
1181
|
|
|
1182
|
+
.text-4xl {
|
|
1183
|
+
font-size: 2.25rem;
|
|
1184
|
+
line-height: 2.5rem;
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1300
1187
|
.text-6xl {
|
|
1301
1188
|
font-size: 3.75rem;
|
|
1302
1189
|
line-height: 1;
|
|
1303
1190
|
}
|
|
1304
1191
|
|
|
1305
|
-
.text-xl {
|
|
1306
|
-
font-size: 1.25rem;
|
|
1307
|
-
line-height: 1.75rem;
|
|
1308
|
-
}
|
|
1309
|
-
|
|
1310
1192
|
.text-lg {
|
|
1311
1193
|
font-size: 1.125rem;
|
|
1312
1194
|
line-height: 1.75rem;
|
|
1313
1195
|
}
|
|
1314
1196
|
|
|
1315
|
-
.text-4xl {
|
|
1316
|
-
font-size: 2.25rem;
|
|
1317
|
-
line-height: 2.5rem;
|
|
1318
|
-
}
|
|
1319
|
-
|
|
1320
1197
|
.text-sm {
|
|
1321
1198
|
font-size: 0.875rem;
|
|
1322
1199
|
line-height: 1.25rem;
|
|
1323
1200
|
}
|
|
1324
1201
|
|
|
1325
|
-
.
|
|
1326
|
-
font-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
.font-extrabold {
|
|
1330
|
-
font-weight: 800;
|
|
1202
|
+
.text-xl {
|
|
1203
|
+
font-size: 1.25rem;
|
|
1204
|
+
line-height: 1.75rem;
|
|
1331
1205
|
}
|
|
1332
1206
|
|
|
1333
1207
|
.font-bold {
|
|
1334
1208
|
font-weight: 700;
|
|
1335
1209
|
}
|
|
1336
1210
|
|
|
1211
|
+
.font-extrabold {
|
|
1212
|
+
font-weight: 800;
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1337
1215
|
.font-medium {
|
|
1338
1216
|
font-weight: 500;
|
|
1339
1217
|
}
|
|
1340
1218
|
|
|
1219
|
+
.font-semibold {
|
|
1220
|
+
font-weight: 600;
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1341
1223
|
.tracking-tight {
|
|
1342
1224
|
letter-spacing: -0.025em;
|
|
1343
1225
|
}
|
|
1344
1226
|
|
|
1345
|
-
.text-
|
|
1227
|
+
.text-gray-500 {
|
|
1346
1228
|
--tw-text-opacity: 1;
|
|
1347
|
-
color: rgb(
|
|
1229
|
+
color: rgb(107 114 128 / var(--tw-text-opacity));
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
.text-gray-700 {
|
|
1233
|
+
--tw-text-opacity: 1;
|
|
1234
|
+
color: rgb(55 65 81 / var(--tw-text-opacity));
|
|
1348
1235
|
}
|
|
1349
1236
|
|
|
1350
1237
|
.text-gray-900 {
|
|
@@ -1357,14 +1244,9 @@ video {
|
|
|
1357
1244
|
color: rgb(79 70 229 / var(--tw-text-opacity));
|
|
1358
1245
|
}
|
|
1359
1246
|
|
|
1360
|
-
.text-
|
|
1361
|
-
--tw-text-opacity: 1;
|
|
1362
|
-
color: rgb(107 114 128 / var(--tw-text-opacity));
|
|
1363
|
-
}
|
|
1364
|
-
|
|
1365
|
-
.text-white {
|
|
1247
|
+
.text-slate-700 {
|
|
1366
1248
|
--tw-text-opacity: 1;
|
|
1367
|
-
color: rgb(
|
|
1249
|
+
color: rgb(51 65 85 / var(--tw-text-opacity));
|
|
1368
1250
|
}
|
|
1369
1251
|
|
|
1370
1252
|
.text-slate-900 {
|
|
@@ -1372,9 +1254,9 @@ video {
|
|
|
1372
1254
|
color: rgb(15 23 42 / var(--tw-text-opacity));
|
|
1373
1255
|
}
|
|
1374
1256
|
|
|
1375
|
-
.text-
|
|
1257
|
+
.text-white {
|
|
1376
1258
|
--tw-text-opacity: 1;
|
|
1377
|
-
color: rgb(
|
|
1259
|
+
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
1378
1260
|
}
|
|
1379
1261
|
|
|
1380
1262
|
.underline {
|
|
@@ -1402,14 +1284,14 @@ video {
|
|
|
1402
1284
|
border-color: rgb(148 163 184 / var(--tw-border-opacity));
|
|
1403
1285
|
}
|
|
1404
1286
|
|
|
1405
|
-
.hover\:bg-
|
|
1287
|
+
.hover\:bg-gray-50:hover {
|
|
1406
1288
|
--tw-bg-opacity: 1;
|
|
1407
|
-
background-color: rgb(
|
|
1289
|
+
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
1408
1290
|
}
|
|
1409
1291
|
|
|
1410
|
-
.hover\:bg-
|
|
1292
|
+
.hover\:bg-indigo-700:hover {
|
|
1411
1293
|
--tw-bg-opacity: 1;
|
|
1412
|
-
background-color: rgb(
|
|
1294
|
+
background-color: rgb(67 56 202 / var(--tw-bg-opacity));
|
|
1413
1295
|
}
|
|
1414
1296
|
|
|
1415
1297
|
.hover\:text-slate-900:hover {
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
];
|
|
1
|
+
var data = [
|
|
2
|
+
{
|
|
3
|
+
name: "examples",
|
|
4
|
+
children: [
|
|
5
|
+
{ name: '<a href="example1.html">Example 1</a>' },
|
|
6
|
+
{ name: '<a href="example2.html">Example 2</a>' },
|
|
7
|
+
'<a href="example3.html">Example 3</a>'
|
|
8
|
+
]
|
|
9
|
+
}
|
|
10
|
+
];
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
});
|
|
12
|
+
// set autoEscape to false
|
|
13
|
+
$("#tree1").tree({
|
|
14
|
+
data: data,
|
|
15
|
+
autoEscape: false,
|
|
16
|
+
autoOpen: true
|
|
19
17
|
});
|
|
@@ -1,29 +1,27 @@
|
|
|
1
|
-
$
|
|
2
|
-
var $tree = $("#tree1");
|
|
1
|
+
var $tree = $("#tree1");
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
$tree.tree({
|
|
4
|
+
data: ExampleData.exampleData,
|
|
5
|
+
autoOpen: 1,
|
|
6
|
+
onCreateLi: function (node, $li) {
|
|
7
|
+
// Append a link to the jqtree-element div.
|
|
8
|
+
// The link has an url '#node-[id]' and a data property 'node-id'.
|
|
9
|
+
$li.find(".jqtree-element").append(
|
|
10
|
+
`<a href="#node-${node.id}" class="edit underline font-medium ml-2 hover:text-slate-900" data-node-id="${node.id}">edit</a>`
|
|
11
|
+
);
|
|
12
|
+
},
|
|
13
|
+
});
|
|
15
14
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
// Handle a click on the edit link
|
|
16
|
+
$tree.on("click", ".edit", function (e) {
|
|
17
|
+
// Get the id from the 'node-id' data property
|
|
18
|
+
var node_id = $(e.target).data("node-id");
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
// Get the node from the tree
|
|
21
|
+
var node = $tree.tree("getNodeById", node_id);
|
|
23
22
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
});
|
|
23
|
+
if (node) {
|
|
24
|
+
// Display the node name
|
|
25
|
+
alert(node.name);
|
|
26
|
+
}
|
|
29
27
|
});
|