gantt-lib 0.75.1 → 0.77.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/core/scheduling/index.d.mts +1 -1
- package/dist/core/scheduling/index.d.ts +1 -1
- package/dist/{index-B2Hmdkey.d.mts → index-BUAal8CL.d.mts} +17 -1
- package/dist/{index-B2Hmdkey.d.ts → index-BUAal8CL.d.ts} +17 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +13 -4
- package/dist/index.d.ts +13 -4
- package/dist/index.js +362 -35
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +362 -35
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +110 -16
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -1911,10 +1911,23 @@
|
|
|
1911
1911
|
--gantt-resourceTimeline-row-header-width: var(--gantt-resource-row-header-width, 240px);
|
|
1912
1912
|
--gantt-resourceTimeline-lane-height: var(--gantt-resource-lane-height, 40px);
|
|
1913
1913
|
--gantt-resourceTimeline-bar-radius: var(--gantt-resource-bar-radius, 4px);
|
|
1914
|
+
--gantt-resource-item-duration-chip-bg: rgba(255, 255, 255, 0.22);
|
|
1915
|
+
--gantt-resource-item-title-font-size: 0.75rem;
|
|
1916
|
+
--gantt-resource-item-title-font-weight: 700;
|
|
1917
|
+
--gantt-resource-item-subtitle-font-size: 0.6875rem;
|
|
1918
|
+
--gantt-resource-item-subtitle-opacity: 0.85;
|
|
1919
|
+
--gantt-resource-item-content-gap: 2px;
|
|
1920
|
+
--gantt-resource-item-main-gap: 6px;
|
|
1914
1921
|
width: 100%;
|
|
1915
1922
|
}
|
|
1916
1923
|
.gantt-resourceTimeline-scrollContainer {
|
|
1917
|
-
overflow: auto;
|
|
1924
|
+
overflow-x: auto;
|
|
1925
|
+
overflow-y: hidden;
|
|
1926
|
+
touch-action: pan-x;
|
|
1927
|
+
}
|
|
1928
|
+
.gantt-resourceTimeline-scrollContainer[data-allow-vertical-pan=true] {
|
|
1929
|
+
overflow-y: auto;
|
|
1930
|
+
touch-action: pan-x pan-y;
|
|
1918
1931
|
}
|
|
1919
1932
|
.gantt-resourceTimeline-scrollContent {
|
|
1920
1933
|
display: flex;
|
|
@@ -1936,8 +1949,9 @@
|
|
|
1936
1949
|
}
|
|
1937
1950
|
.gantt-resourceTimeline-resourceHeader {
|
|
1938
1951
|
display: flex;
|
|
1939
|
-
align-items:
|
|
1940
|
-
|
|
1952
|
+
align-items: flex-start;
|
|
1953
|
+
gap: 8px;
|
|
1954
|
+
padding: 10px 12px 0;
|
|
1941
1955
|
box-sizing: border-box;
|
|
1942
1956
|
border-bottom: 1px solid var(--gantt-grid-line-color, #e0e0e0);
|
|
1943
1957
|
color: #1f2937;
|
|
@@ -1946,10 +1960,27 @@
|
|
|
1946
1960
|
background: var(--gantt-cell-background, #ffffff);
|
|
1947
1961
|
}
|
|
1948
1962
|
.gantt-resourceTimeline-resourceName {
|
|
1963
|
+
min-width: 0;
|
|
1964
|
+
flex: 1 1 auto;
|
|
1949
1965
|
overflow: hidden;
|
|
1950
1966
|
text-overflow: ellipsis;
|
|
1951
1967
|
white-space: nowrap;
|
|
1952
1968
|
}
|
|
1969
|
+
.gantt-resourceTimeline-conflictBadge {
|
|
1970
|
+
display: inline-flex;
|
|
1971
|
+
align-items: center;
|
|
1972
|
+
justify-content: center;
|
|
1973
|
+
flex: 0 0 auto;
|
|
1974
|
+
min-width: 18px;
|
|
1975
|
+
height: 18px;
|
|
1976
|
+
padding: 0 5px;
|
|
1977
|
+
border-radius: 3px;
|
|
1978
|
+
background: #fee2e2;
|
|
1979
|
+
color: #b91c1c;
|
|
1980
|
+
font-size: 0.6875rem;
|
|
1981
|
+
font-weight: 700;
|
|
1982
|
+
line-height: 18px;
|
|
1983
|
+
}
|
|
1953
1984
|
.gantt-resourceTimeline-chartSurface {
|
|
1954
1985
|
position: relative;
|
|
1955
1986
|
flex: 1;
|
|
@@ -1982,6 +2013,43 @@
|
|
|
1982
2013
|
cursor: grab;
|
|
1983
2014
|
user-select: none;
|
|
1984
2015
|
}
|
|
2016
|
+
.gantt-resourceTimeline-weekendOverlay {
|
|
2017
|
+
position: absolute;
|
|
2018
|
+
top: 0;
|
|
2019
|
+
bottom: 0;
|
|
2020
|
+
z-index: 1;
|
|
2021
|
+
pointer-events: none;
|
|
2022
|
+
background-image:
|
|
2023
|
+
repeating-linear-gradient(
|
|
2024
|
+
135deg,
|
|
2025
|
+
rgba(255, 255, 255, 0.26) 0,
|
|
2026
|
+
rgba(255, 255, 255, 0.26) 2px,
|
|
2027
|
+
transparent 2px,
|
|
2028
|
+
transparent 5px);
|
|
2029
|
+
mix-blend-mode: screen;
|
|
2030
|
+
}
|
|
2031
|
+
.gantt-resourceTimeline-conflictOverlay {
|
|
2032
|
+
position: absolute;
|
|
2033
|
+
top: 0;
|
|
2034
|
+
bottom: 0;
|
|
2035
|
+
z-index: 0;
|
|
2036
|
+
pointer-events: none;
|
|
2037
|
+
background-color: rgba(239, 68, 68, 1);
|
|
2038
|
+
}
|
|
2039
|
+
.gantt-resourceTimeline-resizeHandle {
|
|
2040
|
+
position: absolute;
|
|
2041
|
+
top: 0;
|
|
2042
|
+
bottom: 0;
|
|
2043
|
+
z-index: 3;
|
|
2044
|
+
width: 12px;
|
|
2045
|
+
cursor: ew-resize;
|
|
2046
|
+
}
|
|
2047
|
+
.gantt-resourceTimeline-resizeHandleStart {
|
|
2048
|
+
left: 0;
|
|
2049
|
+
}
|
|
2050
|
+
.gantt-resourceTimeline-resizeHandleEnd {
|
|
2051
|
+
right: 0;
|
|
2052
|
+
}
|
|
1985
2053
|
.gantt-resourceTimeline-itemDragging {
|
|
1986
2054
|
z-index: 5;
|
|
1987
2055
|
cursor: grabbing;
|
|
@@ -1992,34 +2060,60 @@
|
|
|
1992
2060
|
cursor: default;
|
|
1993
2061
|
}
|
|
1994
2062
|
.gantt-resourceTimeline-itemInner {
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
gap: 8px;
|
|
2063
|
+
position: relative;
|
|
2064
|
+
z-index: 2;
|
|
1998
2065
|
width: 100%;
|
|
1999
2066
|
height: 100%;
|
|
2000
2067
|
min-width: 0;
|
|
2001
2068
|
overflow: hidden;
|
|
2002
2069
|
pointer-events: auto;
|
|
2003
2070
|
}
|
|
2071
|
+
.gantt-resourceTimeline-defaultItemContent {
|
|
2072
|
+
display: flex;
|
|
2073
|
+
min-width: 0;
|
|
2074
|
+
width: 100%;
|
|
2075
|
+
height: 100%;
|
|
2076
|
+
flex-direction: column;
|
|
2077
|
+
justify-content: center;
|
|
2078
|
+
gap: var(--gantt-resource-item-content-gap);
|
|
2079
|
+
line-height: 1.1;
|
|
2080
|
+
}
|
|
2081
|
+
.gantt-resourceTimeline-defaultItemMain {
|
|
2082
|
+
display: flex;
|
|
2083
|
+
align-items: center;
|
|
2084
|
+
gap: var(--gantt-resource-item-main-gap);
|
|
2085
|
+
min-width: 0;
|
|
2086
|
+
}
|
|
2087
|
+
.gantt-resourceTimeline-itemDurationChip,
|
|
2004
2088
|
.gantt-resourceTimeline-itemTitle,
|
|
2005
|
-
.gantt-resourceTimeline-itemSubtitle
|
|
2006
|
-
.gantt-resourceTimeline-itemDates {
|
|
2089
|
+
.gantt-resourceTimeline-itemSubtitle {
|
|
2007
2090
|
min-width: 0;
|
|
2008
2091
|
overflow: hidden;
|
|
2009
2092
|
text-overflow: ellipsis;
|
|
2010
2093
|
white-space: nowrap;
|
|
2011
|
-
|
|
2012
|
-
|
|
2094
|
+
}
|
|
2095
|
+
.gantt-resourceTimeline-itemDurationChip {
|
|
2096
|
+
display: inline-flex;
|
|
2097
|
+
align-items: center;
|
|
2098
|
+
justify-content: center;
|
|
2099
|
+
flex: 0 0 auto;
|
|
2100
|
+
min-width: 16px;
|
|
2101
|
+
height: 16px;
|
|
2102
|
+
padding: 1px 4px;
|
|
2103
|
+
border-radius: 3px;
|
|
2104
|
+
background: var(--gantt-resource-item-duration-chip-bg);
|
|
2105
|
+
color: inherit;
|
|
2106
|
+
font-size: 0.6875rem;
|
|
2107
|
+
font-weight: 700;
|
|
2108
|
+
line-height: 14px;
|
|
2013
2109
|
}
|
|
2014
2110
|
.gantt-resourceTimeline-itemTitle {
|
|
2015
|
-
font-
|
|
2111
|
+
font-size: var(--gantt-resource-item-title-font-size);
|
|
2112
|
+
font-weight: var(--gantt-resource-item-title-font-weight);
|
|
2016
2113
|
}
|
|
2017
2114
|
.gantt-resourceTimeline-itemSubtitle {
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
.gantt-resourceTimeline-itemDates {
|
|
2021
|
-
margin-left: auto;
|
|
2022
|
-
opacity: 0.9;
|
|
2115
|
+
font-size: var(--gantt-resource-item-subtitle-font-size);
|
|
2116
|
+
opacity: var(--gantt-resource-item-subtitle-opacity);
|
|
2023
2117
|
}
|
|
2024
2118
|
|
|
2025
2119
|
/* src/components/GanttChart/GanttChart.css */
|