gantt-lib 0.74.0 → 0.75.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 +49 -0
- package/dist/core/scheduling/index.d.mts +2 -1
- package/dist/core/scheduling/index.d.ts +2 -1
- package/dist/{index-BLFB_fez.d.mts → index-B2Hmdkey.d.mts} +42 -1
- package/dist/{index-BLFB_fez.d.ts → index-B2Hmdkey.d.ts} +42 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +50 -5
- package/dist/index.d.ts +50 -5
- package/dist/index.js +602 -69
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +598 -67
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +120 -0
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -311,6 +311,10 @@
|
|
|
311
311
|
--gantt-task-bar-text-color: #ffffff;
|
|
312
312
|
--gantt-task-bar-border-radius: 4px;
|
|
313
313
|
--gantt-task-bar-height: 24px;
|
|
314
|
+
--gantt-resource-row-header-width: 240px;
|
|
315
|
+
--gantt-resource-lane-height: 40px;
|
|
316
|
+
--gantt-resource-bar-radius: 4px;
|
|
317
|
+
--gantt-resource-bar-conflict-color: #ef4444;
|
|
314
318
|
--gantt-today-indicator-color: rgba(255, 0, 0, 0.6);
|
|
315
319
|
--gantt-today-indicator-width: 2px;
|
|
316
320
|
--gantt-weekend-background: #fff9f8;
|
|
@@ -1902,6 +1906,122 @@
|
|
|
1902
1906
|
padding: 2px 4px;
|
|
1903
1907
|
}
|
|
1904
1908
|
|
|
1909
|
+
/* src/components/ResourceTimelineChart/ResourceTimelineChart.css */
|
|
1910
|
+
.gantt-resourceTimeline {
|
|
1911
|
+
--gantt-resourceTimeline-row-header-width: var(--gantt-resource-row-header-width, 240px);
|
|
1912
|
+
--gantt-resourceTimeline-lane-height: var(--gantt-resource-lane-height, 40px);
|
|
1913
|
+
--gantt-resourceTimeline-bar-radius: var(--gantt-resource-bar-radius, 4px);
|
|
1914
|
+
width: 100%;
|
|
1915
|
+
}
|
|
1916
|
+
.gantt-resourceTimeline-scrollContainer {
|
|
1917
|
+
overflow: auto;
|
|
1918
|
+
}
|
|
1919
|
+
.gantt-resourceTimeline-scrollContent {
|
|
1920
|
+
display: flex;
|
|
1921
|
+
min-width: min-content;
|
|
1922
|
+
}
|
|
1923
|
+
.gantt-resourceTimeline-resourceColumn {
|
|
1924
|
+
position: sticky;
|
|
1925
|
+
left: 0;
|
|
1926
|
+
z-index: 3;
|
|
1927
|
+
background: var(--gantt-cell-background, #ffffff);
|
|
1928
|
+
border-right: 1px solid var(--gantt-grid-line-color, #e0e0e0);
|
|
1929
|
+
}
|
|
1930
|
+
.gantt-resourceTimeline-corner {
|
|
1931
|
+
position: sticky;
|
|
1932
|
+
top: 0;
|
|
1933
|
+
z-index: 4;
|
|
1934
|
+
background: var(--gantt-cell-background, #ffffff);
|
|
1935
|
+
border-bottom: 1px solid var(--gantt-grid-line-color, #e0e0e0);
|
|
1936
|
+
}
|
|
1937
|
+
.gantt-resourceTimeline-resourceHeader {
|
|
1938
|
+
display: flex;
|
|
1939
|
+
align-items: center;
|
|
1940
|
+
padding: 0 12px;
|
|
1941
|
+
box-sizing: border-box;
|
|
1942
|
+
border-bottom: 1px solid var(--gantt-grid-line-color, #e0e0e0);
|
|
1943
|
+
color: #1f2937;
|
|
1944
|
+
font-size: 14px;
|
|
1945
|
+
font-weight: 500;
|
|
1946
|
+
background: var(--gantt-cell-background, #ffffff);
|
|
1947
|
+
}
|
|
1948
|
+
.gantt-resourceTimeline-resourceName {
|
|
1949
|
+
overflow: hidden;
|
|
1950
|
+
text-overflow: ellipsis;
|
|
1951
|
+
white-space: nowrap;
|
|
1952
|
+
}
|
|
1953
|
+
.gantt-resourceTimeline-chartSurface {
|
|
1954
|
+
position: relative;
|
|
1955
|
+
flex: 1;
|
|
1956
|
+
}
|
|
1957
|
+
.gantt-resourceTimeline-stickyHeader {
|
|
1958
|
+
position: sticky;
|
|
1959
|
+
top: 0;
|
|
1960
|
+
z-index: 2;
|
|
1961
|
+
background: var(--gantt-cell-background, #ffffff);
|
|
1962
|
+
}
|
|
1963
|
+
.gantt-resourceTimeline-grid {
|
|
1964
|
+
position: relative;
|
|
1965
|
+
}
|
|
1966
|
+
.gantt-resourceTimeline-row {
|
|
1967
|
+
position: absolute;
|
|
1968
|
+
left: 0;
|
|
1969
|
+
right: 0;
|
|
1970
|
+
box-sizing: border-box;
|
|
1971
|
+
border-bottom: 1px solid var(--gantt-grid-line-color, #e0e0e0);
|
|
1972
|
+
pointer-events: none;
|
|
1973
|
+
}
|
|
1974
|
+
.gantt-resourceTimeline-item {
|
|
1975
|
+
position: absolute;
|
|
1976
|
+
z-index: 1;
|
|
1977
|
+
box-sizing: border-box;
|
|
1978
|
+
padding: 4px;
|
|
1979
|
+
color: var(--gantt-task-bar-text-color, #ffffff);
|
|
1980
|
+
border-radius: var(--gantt-resource-bar-radius, 4px);
|
|
1981
|
+
overflow: hidden;
|
|
1982
|
+
cursor: grab;
|
|
1983
|
+
user-select: none;
|
|
1984
|
+
}
|
|
1985
|
+
.gantt-resourceTimeline-itemDragging {
|
|
1986
|
+
z-index: 5;
|
|
1987
|
+
cursor: grabbing;
|
|
1988
|
+
opacity: 0.85;
|
|
1989
|
+
box-shadow: 0 4px 12px rgba(31, 41, 55, 0.2);
|
|
1990
|
+
}
|
|
1991
|
+
.gantt-resourceTimeline-itemDisabled {
|
|
1992
|
+
cursor: default;
|
|
1993
|
+
}
|
|
1994
|
+
.gantt-resourceTimeline-itemInner {
|
|
1995
|
+
display: flex;
|
|
1996
|
+
align-items: center;
|
|
1997
|
+
gap: 8px;
|
|
1998
|
+
width: 100%;
|
|
1999
|
+
height: 100%;
|
|
2000
|
+
min-width: 0;
|
|
2001
|
+
overflow: hidden;
|
|
2002
|
+
pointer-events: auto;
|
|
2003
|
+
}
|
|
2004
|
+
.gantt-resourceTimeline-itemTitle,
|
|
2005
|
+
.gantt-resourceTimeline-itemSubtitle,
|
|
2006
|
+
.gantt-resourceTimeline-itemDates {
|
|
2007
|
+
min-width: 0;
|
|
2008
|
+
overflow: hidden;
|
|
2009
|
+
text-overflow: ellipsis;
|
|
2010
|
+
white-space: nowrap;
|
|
2011
|
+
font-size: 12px;
|
|
2012
|
+
line-height: 1;
|
|
2013
|
+
}
|
|
2014
|
+
.gantt-resourceTimeline-itemTitle {
|
|
2015
|
+
font-weight: 600;
|
|
2016
|
+
}
|
|
2017
|
+
.gantt-resourceTimeline-itemSubtitle {
|
|
2018
|
+
opacity: 0.85;
|
|
2019
|
+
}
|
|
2020
|
+
.gantt-resourceTimeline-itemDates {
|
|
2021
|
+
margin-left: auto;
|
|
2022
|
+
opacity: 0.9;
|
|
2023
|
+
}
|
|
2024
|
+
|
|
1905
2025
|
/* src/components/GanttChart/GanttChart.css */
|
|
1906
2026
|
.gantt-container {
|
|
1907
2027
|
width: 100%;
|