gantt-lib 0.79.0 → 0.80.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/dist/styles.css CHANGED
@@ -2046,12 +2046,20 @@
2046
2046
  font-weight: 500;
2047
2047
  background: var(--gantt-cell-background, #ffffff);
2048
2048
  }
2049
+ .gantt-resourceTimeline-resourceHeaderNew {
2050
+ align-items: center;
2051
+ padding-top: 0;
2052
+ }
2049
2053
  .gantt-resourceTimeline-resourceName {
2050
2054
  min-width: 0;
2051
2055
  flex: 1 1 auto;
2056
+ display: -webkit-box;
2052
2057
  overflow: hidden;
2053
- text-overflow: ellipsis;
2054
- white-space: nowrap;
2058
+ font-size: 13px;
2059
+ line-height: 1.25;
2060
+ overflow-wrap: anywhere;
2061
+ -webkit-box-orient: vertical;
2062
+ -webkit-line-clamp: 2;
2055
2063
  }
2056
2064
  .gantt-resourceTimeline-conflictBadge {
2057
2065
  display: inline-flex;
@@ -2068,6 +2076,104 @@
2068
2076
  font-weight: 700;
2069
2077
  line-height: 18px;
2070
2078
  }
2079
+ .gantt-resourceTimeline-resourceMenuButton {
2080
+ display: inline-flex;
2081
+ align-items: center;
2082
+ justify-content: center;
2083
+ flex: 0 0 auto;
2084
+ width: 24px;
2085
+ height: 24px;
2086
+ margin-top: -3px;
2087
+ border: 0;
2088
+ border-radius: 4px;
2089
+ background: transparent;
2090
+ color: #6b7280;
2091
+ cursor: pointer;
2092
+ font: inherit;
2093
+ font-size: 18px;
2094
+ line-height: 1;
2095
+ opacity: 0;
2096
+ transition:
2097
+ background-color 120ms ease,
2098
+ color 120ms ease,
2099
+ opacity 120ms ease;
2100
+ }
2101
+ .gantt-resourceTimeline-resourceHeader:hover .gantt-resourceTimeline-resourceMenuButton,
2102
+ .gantt-resourceTimeline-resourceHeader:focus-within .gantt-resourceTimeline-resourceMenuButton,
2103
+ .gantt-resourceTimeline-resourceHeaderMenuOpen .gantt-resourceTimeline-resourceMenuButton {
2104
+ opacity: 1;
2105
+ }
2106
+ .gantt-resourceTimeline-resourceMenuButton:hover,
2107
+ .gantt-resourceTimeline-resourceMenuButton:focus-visible {
2108
+ background: #e5e7eb;
2109
+ color: #374151;
2110
+ outline: none;
2111
+ }
2112
+ .gantt-resourceTimeline-resourceMenu {
2113
+ min-width: 150px !important;
2114
+ padding: 4px !important;
2115
+ display: flex;
2116
+ flex-direction: column;
2117
+ gap: 2px;
2118
+ }
2119
+ .gantt-resourceTimeline-resourceMenuItem {
2120
+ display: flex;
2121
+ align-items: center;
2122
+ gap: 8px;
2123
+ width: 100%;
2124
+ padding: 6px 10px;
2125
+ border: 0;
2126
+ border-radius: 4px;
2127
+ background: transparent;
2128
+ color: #374151;
2129
+ cursor: pointer;
2130
+ font: inherit;
2131
+ font-size: 0.8rem;
2132
+ text-align: left;
2133
+ white-space: nowrap;
2134
+ }
2135
+ .gantt-resourceTimeline-resourceMenuItem:hover:not(:disabled),
2136
+ .gantt-resourceTimeline-resourceMenuItem:focus-visible:not(:disabled) {
2137
+ background-color: rgba(0, 0, 0, 0.05);
2138
+ outline: none;
2139
+ }
2140
+ .gantt-resourceTimeline-resourceMenuItem:disabled {
2141
+ cursor: default;
2142
+ opacity: 0.45;
2143
+ }
2144
+ .gantt-resourceTimeline-resourceMenuItemDanger {
2145
+ color: #ef4444;
2146
+ }
2147
+ .gantt-resourceTimeline-resourceMenuItemDanger:hover:not(:disabled),
2148
+ .gantt-resourceTimeline-resourceMenuItemDanger:focus-visible:not(:disabled) {
2149
+ background-color: rgba(239, 68, 68, 0.08);
2150
+ color: #dc2626;
2151
+ }
2152
+ .gantt-resourceTimeline-resourceInput {
2153
+ width: 100%;
2154
+ }
2155
+ .gantt-resourceTimeline-addResourceButton {
2156
+ display: flex;
2157
+ align-items: center;
2158
+ width: 100%;
2159
+ box-sizing: border-box;
2160
+ padding: 0 12px;
2161
+ border: 0;
2162
+ border-bottom: 1px solid var(--gantt-grid-line-color, #e0e0e0);
2163
+ background: var(--gantt-cell-background, #ffffff);
2164
+ color: #2563eb;
2165
+ cursor: pointer;
2166
+ font: inherit;
2167
+ font-size: 14px;
2168
+ font-weight: 600;
2169
+ text-align: left;
2170
+ }
2171
+ .gantt-resourceTimeline-addResourceButton:hover,
2172
+ .gantt-resourceTimeline-addResourceButton:focus-visible {
2173
+ background: #f8fafc;
2174
+ color: #1d4ed8;
2175
+ outline: none;
2176
+ }
2071
2177
  .gantt-resourceTimeline-chartSurface {
2072
2178
  position: relative;
2073
2179
  flex: 1;
@@ -2082,6 +2188,9 @@
2082
2188
  .gantt-resourceTimeline-grid {
2083
2189
  position: relative;
2084
2190
  }
2191
+ .gantt-resourceTimeline .gantt-ti-indicator {
2192
+ z-index: 4;
2193
+ }
2085
2194
  .gantt-resourceTimeline-row {
2086
2195
  position: absolute;
2087
2196
  left: 0;
@@ -2141,6 +2250,7 @@
2141
2250
  bottom: 0;
2142
2251
  z-index: 1;
2143
2252
  pointer-events: none;
2253
+ border-radius: inherit;
2144
2254
  background-image:
2145
2255
  repeating-linear-gradient(
2146
2256
  135deg,
@@ -2156,6 +2266,7 @@
2156
2266
  bottom: 0;
2157
2267
  z-index: 0;
2158
2268
  pointer-events: none;
2269
+ border-radius: inherit;
2159
2270
  background-color: rgba(239, 68, 68, 1);
2160
2271
  }
2161
2272
  .gantt-resourceTimeline-resizeHandle {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantt-lib",
3
- "version": "0.79.0",
3
+ "version": "0.80.0",
4
4
  "description": "Lightweight React Gantt chart component library",
5
5
  "license": "MIT",
6
6
  "repository": {