gantt-lib 0.131.1 → 0.132.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.
- package/README.md +1 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +20 -1
- package/dist/index.d.ts +20 -1
- package/dist/index.js +309 -218
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +255 -165
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +105 -0
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -993,6 +993,111 @@
|
|
|
993
993
|
}
|
|
994
994
|
}
|
|
995
995
|
|
|
996
|
+
/* src/components/GenerationSkeleton/GenerationSkeleton.css */
|
|
997
|
+
.gantt-generation-skeleton {
|
|
998
|
+
position: absolute;
|
|
999
|
+
inset: 0;
|
|
1000
|
+
pointer-events: none;
|
|
1001
|
+
z-index: 2;
|
|
1002
|
+
overflow: hidden;
|
|
1003
|
+
}
|
|
1004
|
+
.gantt-generation-skeleton-row {
|
|
1005
|
+
position: absolute;
|
|
1006
|
+
left: 0;
|
|
1007
|
+
right: 0;
|
|
1008
|
+
display: flex;
|
|
1009
|
+
align-items: center;
|
|
1010
|
+
gap: 8px;
|
|
1011
|
+
box-sizing: border-box;
|
|
1012
|
+
border-bottom: 1px solid var(--gantt-grid-line-color, #e5e7eb);
|
|
1013
|
+
animation: gantt-generation-skeleton-in 180ms ease-out both;
|
|
1014
|
+
}
|
|
1015
|
+
.gantt-generation-skeleton-task-list .gantt-generation-skeleton-row {
|
|
1016
|
+
display: block;
|
|
1017
|
+
}
|
|
1018
|
+
.gantt-generation-skeleton-label,
|
|
1019
|
+
.gantt-generation-skeleton-date,
|
|
1020
|
+
.gantt-generation-skeleton-bar {
|
|
1021
|
+
display: block;
|
|
1022
|
+
border-radius: 999px;
|
|
1023
|
+
background:
|
|
1024
|
+
linear-gradient(
|
|
1025
|
+
90deg,
|
|
1026
|
+
rgba(148, 163, 184, 0.13),
|
|
1027
|
+
rgba(148, 163, 184, 0.28),
|
|
1028
|
+
rgba(148, 163, 184, 0.13));
|
|
1029
|
+
background-size: 220% 100%;
|
|
1030
|
+
animation: gantt-generation-skeleton-shimmer 1.45s ease-in-out infinite;
|
|
1031
|
+
}
|
|
1032
|
+
.gantt-generation-skeleton-chart .gantt-generation-skeleton-bar {
|
|
1033
|
+
background:
|
|
1034
|
+
linear-gradient(
|
|
1035
|
+
90deg,
|
|
1036
|
+
#d9dee7,
|
|
1037
|
+
#eef1f5,
|
|
1038
|
+
#d9dee7);
|
|
1039
|
+
background-size: 220% 100%;
|
|
1040
|
+
height: var(--gantt-task-bar-height, 24px);
|
|
1041
|
+
border-radius: var(--gantt-task-bar-border-radius, 4px);
|
|
1042
|
+
border: 0;
|
|
1043
|
+
box-shadow: none;
|
|
1044
|
+
}
|
|
1045
|
+
.gantt-generation-skeleton-label {
|
|
1046
|
+
position: absolute;
|
|
1047
|
+
left: calc(var(--skeleton-name-left, 40px) + 6px);
|
|
1048
|
+
width: calc(var(--skeleton-name-width, 200px) - 12px);
|
|
1049
|
+
height: 10px;
|
|
1050
|
+
top: 50%;
|
|
1051
|
+
transform: translateY(-50%);
|
|
1052
|
+
}
|
|
1053
|
+
.gantt-generation-skeleton-label-parent {
|
|
1054
|
+
width: calc(var(--skeleton-name-width, 200px) - 24px);
|
|
1055
|
+
height: 12px;
|
|
1056
|
+
}
|
|
1057
|
+
.gantt-generation-skeleton-label-short {
|
|
1058
|
+
width: 56%;
|
|
1059
|
+
}
|
|
1060
|
+
.gantt-generation-skeleton-label-medium {
|
|
1061
|
+
width: 72%;
|
|
1062
|
+
}
|
|
1063
|
+
.gantt-generation-skeleton-bar {
|
|
1064
|
+
width: 43%;
|
|
1065
|
+
height: 12px;
|
|
1066
|
+
margin-left: 5%;
|
|
1067
|
+
}
|
|
1068
|
+
.gantt-generation-skeleton-bar-parent {
|
|
1069
|
+
width: 61%;
|
|
1070
|
+
margin-left: 2%;
|
|
1071
|
+
}
|
|
1072
|
+
.gantt-generation-skeleton-bar-short {
|
|
1073
|
+
width: 29%;
|
|
1074
|
+
}
|
|
1075
|
+
@keyframes gantt-generation-skeleton-shimmer {
|
|
1076
|
+
0% {
|
|
1077
|
+
background-position: 100% 0;
|
|
1078
|
+
}
|
|
1079
|
+
100% {
|
|
1080
|
+
background-position: -100% 0;
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
@keyframes gantt-generation-skeleton-in {
|
|
1084
|
+
from {
|
|
1085
|
+
opacity: 0;
|
|
1086
|
+
transform: translateY(3px);
|
|
1087
|
+
}
|
|
1088
|
+
to {
|
|
1089
|
+
opacity: 1;
|
|
1090
|
+
transform: translateY(0);
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1094
|
+
.gantt-generation-skeleton-row,
|
|
1095
|
+
.gantt-generation-skeleton-label,
|
|
1096
|
+
.gantt-generation-skeleton-bar {
|
|
1097
|
+
animation: none;
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
|
|
996
1101
|
/* src/components/TaskList/TaskList.css */
|
|
997
1102
|
.gantt-tl-overlay {
|
|
998
1103
|
position: sticky;
|