@levelcaptech/gantt-task-react-custom 0.1.0 → 0.4.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/dist/index.css CHANGED
@@ -20,6 +20,52 @@
20
20
  display: table-cell;
21
21
  vertical-align: -webkit-baseline-middle;
22
22
  vertical-align: middle;
23
+ padding: 0 6px;
24
+ white-space: nowrap;
25
+ position: relative;
26
+ }
27
+ ._Fc5Tl {
28
+ opacity: 0.6;
29
+ }
30
+ ._b6dPy {
31
+ cursor: grab;
32
+ display: inline-flex;
33
+ align-items: center;
34
+ padding: 0 4px 0 2px;
35
+ -webkit-user-select: none;
36
+ -moz-user-select: none;
37
+ user-select: none;
38
+ }
39
+ ._3ZMNU {
40
+ cursor: default;
41
+ opacity: 0.4;
42
+ }
43
+ ._QZHO8 {
44
+ font-size: 12px;
45
+ line-height: 1;
46
+ }
47
+ ._2ANS- {
48
+ display: inline-block;
49
+ align-items: center;
50
+ max-width: calc(100% - 22px);
51
+ overflow: hidden;
52
+ text-overflow: ellipsis;
53
+ white-space: nowrap;
54
+ vertical-align: middle;
55
+ }
56
+ ._OJ-Vg {
57
+ position: absolute;
58
+ right: 0;
59
+ top: 0;
60
+ bottom: 0;
61
+ width: 6px;
62
+ cursor: col-resize;
63
+ }
64
+ ._21P28 {
65
+ background-color: rgba(0, 0, 0, 0.06);
66
+ -webkit-user-select: none;
67
+ -moz-user-select: none;
68
+ user-select: none;
23
69
  }
24
70
 
25
71
  ._3ZbQT {
@@ -43,9 +89,31 @@
43
89
  white-space: nowrap;
44
90
  overflow: hidden;
45
91
  text-overflow: ellipsis;
92
+ padding: 0 6px;
93
+ }
94
+
95
+ ._3Nu1y {
96
+ position: fixed;
97
+ z-index: 9999;
98
+ pointer-events: auto;
99
+ }
100
+
101
+ ._2jEdG {
102
+ opacity: 0.7;
103
+ }
104
+
105
+ ._2TWaP {
106
+ margin-top: 4px;
107
+ padding: 4px 6px;
108
+ font-size: 12px;
109
+ color: #b42318;
110
+ background: #fef3f2;
111
+ border: 1px solid #fecdca;
112
+ border-radius: 4px;
46
113
  }
47
114
  ._nI1Xw {
48
115
  display: flex;
116
+ align-items: center;
49
117
  }
50
118
 
51
119
  ._2QjE6 {
@@ -54,23 +122,63 @@
54
122
  padding: 0.15rem 0.2rem 0rem 0.2rem;
55
123
  -webkit-user-select: none;
56
124
  -moz-user-select: none;
57
- -ms-user-select: none;
58
125
  user-select: none;
59
126
  cursor: pointer;
60
127
  }
128
+
61
129
  ._2TfEi {
62
130
  font-size: 0.6rem;
63
131
  padding-left: 1rem;
64
132
  -webkit-user-select: none;
65
133
  -moz-user-select: none;
66
- -ms-user-select: none;
67
134
  user-select: none;
68
135
  }
69
136
 
137
+ ._1bdaa,
138
+ ._1u3fW {
139
+ width: 100%;
140
+ box-sizing: border-box;
141
+ font: inherit;
142
+ padding: 4px 6px;
143
+ border: 1px solid #d0d0d0;
144
+ border-radius: 4px;
145
+ background: #fff;
146
+ }
147
+
148
+ ._1bdaa:disabled,
149
+ ._1u3fW:disabled {
150
+ background: #f5f5f5;
151
+ color: #888;
152
+ }
153
+
154
+ ._dRJfs {
155
+ display: flex;
156
+ align-items: center;
157
+ gap: 6px;
158
+ }
159
+
160
+ ._33mea {
161
+ display: inline-flex;
162
+ align-items: center;
163
+ justify-content: center;
164
+ min-width: 28px;
165
+ height: 22px;
166
+ padding: 2px 6px;
167
+ border-radius: 10px;
168
+ color: #fff;
169
+ font-size: 12px;
170
+ line-height: 1;
171
+ }
172
+
173
+ ._vpQEz {
174
+ font-size: 13px;
175
+ }
176
+
70
177
  ._3T42e {
71
178
  background: #fff;
72
179
  padding: 12px;
73
180
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
181
+ min-width: 220px;
74
182
  }
75
183
 
76
184
  ._29NTg {
@@ -78,6 +186,62 @@
78
186
  margin-bottom: 6px;
79
187
  color: #666;
80
188
  }
189
+ ._OlR7X {
190
+ display: flex;
191
+ flex-direction: column;
192
+ gap: 4px;
193
+ margin-bottom: 6px;
194
+ }
195
+
196
+ ._1LUF2 {
197
+ font-size: 16px;
198
+ line-height: 1.4;
199
+ }
200
+
201
+ ._18-nf {
202
+ font-size: 12px;
203
+ color: #555;
204
+ }
205
+
206
+ ._2rDF0 {
207
+ display: flex;
208
+ align-items: center;
209
+ justify-content: space-between;
210
+ margin-bottom: 4px;
211
+ gap: 8px;
212
+ }
213
+
214
+ ._2vh4d {
215
+ font-size: 12px;
216
+ color: #555;
217
+ min-width: 70px;
218
+ }
219
+
220
+ ._2HKiU {
221
+ font-size: 13px;
222
+ color: #222;
223
+ display: inline-flex;
224
+ align-items: center;
225
+ gap: 6px;
226
+ justify-content: flex-end;
227
+ }
228
+
229
+ ._2Vw2t {
230
+ display: inline-flex;
231
+ align-items: center;
232
+ justify-content: center;
233
+ min-width: 24px;
234
+ height: 20px;
235
+ padding: 2px 6px;
236
+ border-radius: 10px;
237
+ color: #fff;
238
+ font-size: 11px;
239
+ line-height: 1;
240
+ }
241
+
242
+ ._33_nk {
243
+ font-size: 12px;
244
+ }
81
245
 
82
246
  ._25P-K {
83
247
  position: absolute;
@@ -87,7 +251,6 @@
87
251
  -webkit-touch-callout: none;
88
252
  -webkit-user-select: none;
89
253
  -moz-user-select: none;
90
- -ms-user-select: none;
91
254
  user-select: none;
92
255
  }
93
256
 
@@ -148,7 +311,6 @@
148
311
  -webkit-touch-callout: none;
149
312
  -webkit-user-select: none;
150
313
  -moz-user-select: none;
151
- -ms-user-select: none;
152
314
  user-select: none;
153
315
  pointer-events: none;
154
316
  }
@@ -163,7 +325,6 @@
163
325
  -webkit-touch-callout: none;
164
326
  -webkit-user-select: none;
165
327
  -moz-user-select: none;
166
- -ms-user-select: none;
167
328
  user-select: none;
168
329
  pointer-events: none;
169
330
  }
@@ -194,7 +355,6 @@
194
355
  ._31ERP {
195
356
  -webkit-user-select: none;
196
357
  -moz-user-select: none;
197
- -ms-user-select: none;
198
358
  user-select: none;
199
359
  stroke-width: 0;
200
360
  }
@@ -207,7 +367,6 @@
207
367
  ._2P2B1 {
208
368
  -webkit-user-select: none;
209
369
  -moz-user-select: none;
210
- -ms-user-select: none;
211
370
  user-select: none;
212
371
  }
213
372
 
@@ -219,7 +378,6 @@
219
378
  ._2RbVy {
220
379
  -webkit-user-select: none;
221
380
  -moz-user-select: none;
222
- -ms-user-select: none;
223
381
  user-select: none;
224
382
  opacity: 0.6;
225
383
  }
@@ -227,7 +385,6 @@
227
385
  ._2pZMF {
228
386
  -webkit-user-select: none;
229
387
  -moz-user-select: none;
230
- -ms-user-select: none;
231
388
  user-select: none;
232
389
  }
233
390
 
@@ -239,7 +396,6 @@
239
396
  -webkit-touch-callout: none;
240
397
  -webkit-user-select: none;
241
398
  -moz-user-select: none;
242
- -ms-user-select: none;
243
399
  user-select: none;
244
400
  pointer-events: none;
245
401
  }
@@ -250,11 +406,14 @@
250
406
  -webkit-touch-callout: none;
251
407
  -webkit-user-select: none;
252
408
  -moz-user-select: none;
253
- -ms-user-select: none;
254
409
  user-select: none;
255
410
  pointer-events: none;
256
411
  }
257
412
 
413
+ ._3ITgM {
414
+ font-size: 12px;
415
+ }
416
+
258
417
  ._CZjuD {
259
418
  overflow: hidden;
260
419
  font-size: 0;
@@ -262,6 +421,12 @@
262
421
  padding: 0;
263
422
  }
264
423
 
424
+ /* SVG はデフォルトで inline 表示になり、下部にベースラインの余白が生じることがある。
425
+ テーブル本体と水平スクロール間の隙間を無くすために block にする */
426
+ ._CZjuD svg,
427
+ ._2B2zv svg {
428
+ display: block;
429
+ }
265
430
  ._2B2zv {
266
431
  margin: 0;
267
432
  padding: 0;
@@ -269,12 +434,58 @@
269
434
  }
270
435
 
271
436
  ._3eULf {
272
- display: flex;
437
+ display: grid;
273
438
  padding: 0;
274
439
  margin: 0;
275
440
  list-style: none;
276
441
  outline: none;
277
442
  position: relative;
443
+ grid-template-columns: auto var(--splitter-width, 8px) 1fr;
444
+ }
445
+
446
+ ._3eX5j {
447
+ flex: 0 0 auto;
448
+ overflow: hidden;
449
+ min-width: 0;
450
+ }
451
+
452
+ ._1YST3 {
453
+ width: 8px;
454
+ cursor: col-resize;
455
+ background-color: transparent;
456
+ flex: 0 0 auto;
457
+ -webkit-user-select: none;
458
+ -moz-user-select: none;
459
+ user-select: none;
460
+ }
461
+
462
+ ._3cO1L {
463
+ background-color: rgba(0, 0, 0, 0.08);
464
+ }
465
+
466
+ ._1G4xA {
467
+ flex: 1 1 auto;
468
+ min-width: 0;
469
+ overflow: hidden;
470
+ }
471
+
472
+ ._2VUKJ {
473
+ display: grid;
474
+ grid-template-columns: auto var(--splitter-width, 8px) 1fr;
475
+ align-items: stretch;
476
+ }
477
+
478
+ ._1vvPx {
479
+ overflow: hidden;
480
+ }
481
+
482
+ ._3sIUT {
483
+ overflow: hidden;
484
+ }
485
+
486
+ ._3gMam {
487
+ width: var(--splitter-width, 8px);
488
+ background: transparent;
278
489
  }
279
490
 
280
491
  ._2k9Ys {
package/dist/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
1
  export { Gantt } from "./components/gantt/gantt";
2
2
  export { ViewMode } from "./types/public-types";
3
- export type { GanttProps, Task, StylingOption, DisplayOption, EventOption, } from "./types/public-types";
3
+ export type { GanttProps, Task, StylingOption, DisplayOption, EventOption, EffortUnit, VisibleField, TaskProcess, TaskStatus, CalendarConfig, } from "./types/public-types";
4
+ export { TASK_PROCESS_OPTIONS, TASK_STATUS_OPTIONS, TASK_STATUS_BADGE_TEXT, TASK_STATUS_COLORS, } from "./constants/taskOptions";
5
+ export { formatDate, parseDateFromInput, formatEffort, sanitizeEffortInput, normalizeProcess, normalizeStatus, resolveVisibleFields, getStatusColor, getStatusBadgeText, DEFAULT_VISIBLE_FIELDS, } from "./helpers/task-helper";