@operato/gantt 7.0.75 → 7.0.77
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/CHANGELOG.md +18 -0
- package/dist/src/ox-gantt.js +14 -16
- package/dist/src/ox-gantt.js.map +1 -1
- package/dist/src/ox-resource-chart.d.ts +1 -0
- package/dist/src/ox-resource-chart.js +6 -4
- package/dist/src/ox-resource-chart.js.map +1 -1
- package/dist/src/types.d.ts +2 -7
- package/dist/src/types.js.map +1 -1
- package/dist/stories/ox-gantt.stories.js +26 -59
- package/dist/stories/ox-gantt.stories.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/ox-gantt.ts +14 -15
- package/src/ox-resource-chart.ts +9 -4
- package/src/types.ts +2 -8
- package/stories/ox-gantt.stories.ts +27 -63
- package/translations/en.json +1 -0
- package/translations/ja.json +1 -0
- package/translations/ko.json +1 -0
- package/translations/ms.json +1 -0
- package/translations/zh.json +1 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { CommonHeaderStyles } from '@operato/styles'
|
|
2
1
|
import '../src/ox-gantt.js'
|
|
3
2
|
|
|
4
3
|
import { html, TemplateResult } from 'lit'
|
|
5
4
|
import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles'
|
|
5
|
+
import { CommonHeaderStyles } from '@operato/styles'
|
|
6
6
|
|
|
7
|
-
import { Task,
|
|
7
|
+
import { Task, TimeScale } from '../src/types.js'
|
|
8
8
|
|
|
9
9
|
export default {
|
|
10
10
|
title: 'ox-gantt',
|
|
@@ -103,18 +103,6 @@ const Template: Story<ArgTypes> = ({
|
|
|
103
103
|
</ox-gantt>
|
|
104
104
|
`
|
|
105
105
|
|
|
106
|
-
const developmentSection: Section = {
|
|
107
|
-
name: 'Development'
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
const testSection: Section = {
|
|
111
|
-
name: 'Test'
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
const releaseSection: Section = {
|
|
115
|
-
name: 'Release'
|
|
116
|
-
}
|
|
117
|
-
|
|
118
106
|
export const Regular = Template.bind({})
|
|
119
107
|
Regular.args = {
|
|
120
108
|
fromDate: '2022-12-27',
|
|
@@ -124,12 +112,11 @@ Regular.args = {
|
|
|
124
112
|
id: '1',
|
|
125
113
|
title: 'Design',
|
|
126
114
|
type: 'task',
|
|
127
|
-
// section: developmentSection,
|
|
128
115
|
startDate: '2023-01-01',
|
|
129
116
|
endDate: '2023-01-05',
|
|
130
117
|
progress: 60,
|
|
131
118
|
dependsOn: '',
|
|
132
|
-
|
|
119
|
+
duration: 5,
|
|
133
120
|
tags: ['active'],
|
|
134
121
|
resources: [{ type: '철근/형틀공', allocated: 6 }],
|
|
135
122
|
children: []
|
|
@@ -138,12 +125,11 @@ Regular.args = {
|
|
|
138
125
|
id: '2',
|
|
139
126
|
title: 'Development',
|
|
140
127
|
type: 'milestone',
|
|
141
|
-
// section: developmentSection,
|
|
142
128
|
startDate: '2023-01-06',
|
|
143
129
|
endDate: '2023-01-06',
|
|
144
130
|
progress: 30,
|
|
145
131
|
dependsOn: '1',
|
|
146
|
-
|
|
132
|
+
duration: 1,
|
|
147
133
|
tags: ['milestone'],
|
|
148
134
|
resources: [{ type: '철근/형틀공', allocated: 6 }],
|
|
149
135
|
children: []
|
|
@@ -152,36 +138,33 @@ Regular.args = {
|
|
|
152
138
|
id: '3',
|
|
153
139
|
title: 'Coding',
|
|
154
140
|
type: 'phase',
|
|
155
|
-
// section: developmentSection,
|
|
156
141
|
startDate: '2023-01-07',
|
|
157
142
|
endDate: '2023-01-15',
|
|
158
143
|
progress: 10,
|
|
159
144
|
dependsOn: '2',
|
|
160
|
-
|
|
145
|
+
duration: 9,
|
|
161
146
|
tags: ['critical'],
|
|
162
147
|
children: [
|
|
163
148
|
{
|
|
164
149
|
id: '3-1',
|
|
165
150
|
title: 'Coding-A',
|
|
166
151
|
type: 'task',
|
|
167
|
-
// section: developmentSection,
|
|
168
152
|
startDate: '2023-01-07',
|
|
169
153
|
endDate: '2023-01-10',
|
|
170
154
|
progress: 60,
|
|
171
155
|
dependsOn: '',
|
|
172
|
-
|
|
156
|
+
duration: 4,
|
|
173
157
|
tags: ['done'],
|
|
174
158
|
children: [
|
|
175
159
|
{
|
|
176
160
|
id: '3-1-1',
|
|
177
161
|
title: 'Coding-A',
|
|
178
162
|
type: 'task',
|
|
179
|
-
// section: developmentSection,
|
|
180
163
|
startDate: '2023-01-07',
|
|
181
164
|
endDate: '2023-01-10',
|
|
182
165
|
progress: 60,
|
|
183
166
|
dependsOn: '',
|
|
184
|
-
|
|
167
|
+
duration: 4,
|
|
185
168
|
tags: ['active'],
|
|
186
169
|
resources: [{ type: '창호공', allocated: 5 }],
|
|
187
170
|
children: []
|
|
@@ -190,11 +173,10 @@ Regular.args = {
|
|
|
190
173
|
id: '3-1-2',
|
|
191
174
|
title: 'Coding-B',
|
|
192
175
|
type: 'task',
|
|
193
|
-
// section: developmentSection,
|
|
194
176
|
startDate: '2023-01-11',
|
|
195
177
|
endDate: '2023-01-15',
|
|
196
178
|
dependsOn: '3-1-1',
|
|
197
|
-
|
|
179
|
+
duration: 5,
|
|
198
180
|
tags: ['active'],
|
|
199
181
|
resources: [{ type: '창호공', allocated: 3 }],
|
|
200
182
|
children: []
|
|
@@ -205,11 +187,10 @@ Regular.args = {
|
|
|
205
187
|
id: '3-2',
|
|
206
188
|
title: 'Coding-B',
|
|
207
189
|
type: 'task',
|
|
208
|
-
// section: developmentSection,
|
|
209
190
|
startDate: '2023-01-11',
|
|
210
191
|
endDate: '2023-01-15',
|
|
211
192
|
dependsOn: '3-1',
|
|
212
|
-
|
|
193
|
+
duration: 5,
|
|
213
194
|
tags: ['active'],
|
|
214
195
|
resources: [{ type: '창호공', allocated: 6 }],
|
|
215
196
|
children: []
|
|
@@ -220,12 +201,11 @@ Regular.args = {
|
|
|
220
201
|
id: '4',
|
|
221
202
|
title: 'Test',
|
|
222
203
|
type: 'milestone',
|
|
223
|
-
// section: developmentSection,
|
|
224
204
|
startDate: '2023-01-07',
|
|
225
205
|
endDate: '2023-01-10',
|
|
226
206
|
progress: 100,
|
|
227
207
|
dependsOn: '1',
|
|
228
|
-
|
|
208
|
+
duration: 1,
|
|
229
209
|
tags: ['done'],
|
|
230
210
|
resources: [{ type: '방수공', allocated: 5 }],
|
|
231
211
|
children: []
|
|
@@ -234,11 +214,10 @@ Regular.args = {
|
|
|
234
214
|
id: '5',
|
|
235
215
|
title: 'Deploy',
|
|
236
216
|
type: 'milestone',
|
|
237
|
-
// section: developmentSection,
|
|
238
217
|
startDate: '2023-01-15',
|
|
239
218
|
endDate: '2023-01-21',
|
|
240
219
|
dependsOn: '4',
|
|
241
|
-
|
|
220
|
+
duration: 1,
|
|
242
221
|
tags: ['milestone'],
|
|
243
222
|
resources: [{ type: '목공', allocated: 3 }],
|
|
244
223
|
children: []
|
|
@@ -247,11 +226,10 @@ Regular.args = {
|
|
|
247
226
|
id: '6',
|
|
248
227
|
title: 'Publishing',
|
|
249
228
|
type: 'milestone',
|
|
250
|
-
// section: developmentSection,
|
|
251
229
|
startDate: '2023-01-11',
|
|
252
230
|
endDate: '2023-01-15',
|
|
253
231
|
dependsOn: '5',
|
|
254
|
-
|
|
232
|
+
duration: 1,
|
|
255
233
|
tags: ['milestone'],
|
|
256
234
|
resources: [{ type: '금속공', allocated: 1 }],
|
|
257
235
|
children: []
|
|
@@ -260,11 +238,10 @@ Regular.args = {
|
|
|
260
238
|
id: '7',
|
|
261
239
|
title: 'Provisioning',
|
|
262
240
|
type: 'milestone',
|
|
263
|
-
// section: developmentSection,
|
|
264
241
|
startDate: '2023-01-12',
|
|
265
242
|
endDate: '2023-01-15',
|
|
266
243
|
dependsOn: '6',
|
|
267
|
-
|
|
244
|
+
duration: 1,
|
|
268
245
|
tags: ['milestone'],
|
|
269
246
|
resources: [{ type: '타일공', allocated: 6 }],
|
|
270
247
|
children: []
|
|
@@ -273,11 +250,10 @@ Regular.args = {
|
|
|
273
250
|
id: '8',
|
|
274
251
|
title: 'Alpha Test',
|
|
275
252
|
type: 'milestone',
|
|
276
|
-
// section: testSection,
|
|
277
253
|
startDate: '2023-01-15',
|
|
278
254
|
endDate: '2023-01-17',
|
|
279
255
|
dependsOn: '7',
|
|
280
|
-
|
|
256
|
+
duration: 1,
|
|
281
257
|
tags: ['critical'],
|
|
282
258
|
resources: [{ type: '창호공', allocated: 7 }],
|
|
283
259
|
children: []
|
|
@@ -286,11 +262,10 @@ Regular.args = {
|
|
|
286
262
|
id: '9',
|
|
287
263
|
title: 'Beta Task',
|
|
288
264
|
type: 'milestone',
|
|
289
|
-
// section: testSection,
|
|
290
265
|
startDate: '2023-01-15',
|
|
291
266
|
endDate: '2023-01-18',
|
|
292
267
|
dependsOn: '8',
|
|
293
|
-
|
|
268
|
+
duration: 1,
|
|
294
269
|
tags: ['active'],
|
|
295
270
|
resources: [{ type: '도배공', allocated: 8 }],
|
|
296
271
|
children: []
|
|
@@ -303,7 +278,7 @@ Regular.args = {
|
|
|
303
278
|
startDate: '2023-01-18',
|
|
304
279
|
endDate: '2023-01-19',
|
|
305
280
|
dependsOn: '9',
|
|
306
|
-
|
|
281
|
+
duration: 1,
|
|
307
282
|
tags: ['critical'],
|
|
308
283
|
resources: [{ type: '조적공', allocated: 6 }],
|
|
309
284
|
children: []
|
|
@@ -312,11 +287,10 @@ Regular.args = {
|
|
|
312
287
|
id: '11',
|
|
313
288
|
title: 'Zeta Test',
|
|
314
289
|
type: 'milestone',
|
|
315
|
-
// section: testSection,
|
|
316
290
|
startDate: '2023-01-18',
|
|
317
291
|
endDate: '2023-01-22',
|
|
318
292
|
dependsOn: '9',
|
|
319
|
-
|
|
293
|
+
duration: 1,
|
|
320
294
|
tags: ['milestone'],
|
|
321
295
|
resources: [{ type: '철근/형틀공', allocated: 6 }],
|
|
322
296
|
children: []
|
|
@@ -325,11 +299,10 @@ Regular.args = {
|
|
|
325
299
|
id: '12',
|
|
326
300
|
title: 'Release',
|
|
327
301
|
type: 'milestone',
|
|
328
|
-
// section: releaseSection,
|
|
329
302
|
startDate: '2023-01-18',
|
|
330
303
|
endDate: '2023-01-23',
|
|
331
304
|
dependsOn: '9',
|
|
332
|
-
|
|
305
|
+
duration: 1,
|
|
333
306
|
resources: [{ type: '방수공', allocated: 6 }],
|
|
334
307
|
tags: ['milestone'],
|
|
335
308
|
children: [
|
|
@@ -337,12 +310,11 @@ Regular.args = {
|
|
|
337
310
|
id: '12-1',
|
|
338
311
|
title: 'Coding-A',
|
|
339
312
|
type: 'task',
|
|
340
|
-
// section: developmentSection,
|
|
341
313
|
startDate: '2023-01-07',
|
|
342
314
|
endDate: '2023-01-10',
|
|
343
315
|
progress: 60,
|
|
344
316
|
dependsOn: '',
|
|
345
|
-
|
|
317
|
+
duration: 4,
|
|
346
318
|
tags: ['done'],
|
|
347
319
|
resources: [{ type: '방수공', allocated: 6 }],
|
|
348
320
|
children: []
|
|
@@ -351,11 +323,10 @@ Regular.args = {
|
|
|
351
323
|
id: '12-2',
|
|
352
324
|
title: 'Coding-B',
|
|
353
325
|
type: 'task',
|
|
354
|
-
// section: developmentSection,
|
|
355
326
|
startDate: '2023-01-11',
|
|
356
327
|
endDate: '2023-01-15',
|
|
357
328
|
dependsOn: '12-1',
|
|
358
|
-
|
|
329
|
+
duration: 5,
|
|
359
330
|
tags: ['active'],
|
|
360
331
|
resources: [{ type: '조적공', allocated: 6 }],
|
|
361
332
|
children: []
|
|
@@ -366,11 +337,10 @@ Regular.args = {
|
|
|
366
337
|
id: '13',
|
|
367
338
|
title: 'Release',
|
|
368
339
|
type: 'milestone',
|
|
369
|
-
// section: releaseSection,
|
|
370
340
|
startDate: '2023-01-22',
|
|
371
341
|
endDate: '2023-01-27',
|
|
372
342
|
dependsOn: '12',
|
|
373
|
-
|
|
343
|
+
duration: 1,
|
|
374
344
|
tags: ['done'],
|
|
375
345
|
children: []
|
|
376
346
|
},
|
|
@@ -378,11 +348,10 @@ Regular.args = {
|
|
|
378
348
|
id: '14',
|
|
379
349
|
title: 'Release',
|
|
380
350
|
type: 'milestone',
|
|
381
|
-
// section: releaseSection,
|
|
382
351
|
startDate: '2023-01-27',
|
|
383
352
|
endDate: '2023-01-30',
|
|
384
353
|
dependsOn: '13',
|
|
385
|
-
|
|
354
|
+
duration: 1,
|
|
386
355
|
tags: ['milestone'],
|
|
387
356
|
resources: [{ type: '금속공', allocated: 1 }],
|
|
388
357
|
children: []
|
|
@@ -391,11 +360,10 @@ Regular.args = {
|
|
|
391
360
|
id: '15',
|
|
392
361
|
title: 'Release',
|
|
393
362
|
type: 'milestone',
|
|
394
|
-
// section: releaseSection,
|
|
395
363
|
startDate: '2023-01-30',
|
|
396
364
|
endDate: '2023-01-31',
|
|
397
365
|
dependsOn: '14',
|
|
398
|
-
|
|
366
|
+
duration: 1,
|
|
399
367
|
tags: ['milestone'],
|
|
400
368
|
children: []
|
|
401
369
|
},
|
|
@@ -403,11 +371,10 @@ Regular.args = {
|
|
|
403
371
|
id: '16',
|
|
404
372
|
title: 'Release',
|
|
405
373
|
type: 'milestone',
|
|
406
|
-
// section: releaseSection,
|
|
407
374
|
startDate: '2023-01-31',
|
|
408
375
|
endDate: '2023-02-05',
|
|
409
376
|
dependsOn: '15',
|
|
410
|
-
|
|
377
|
+
duration: 1,
|
|
411
378
|
resources: [{ type: '창호공', allocated: 1 }],
|
|
412
379
|
tags: ['active'],
|
|
413
380
|
children: []
|
|
@@ -416,11 +383,10 @@ Regular.args = {
|
|
|
416
383
|
id: '17',
|
|
417
384
|
title: 'Release',
|
|
418
385
|
type: 'milestone',
|
|
419
|
-
// section: releaseSection,
|
|
420
386
|
startDate: '2023-02-06',
|
|
421
387
|
endDate: '2023-02-07',
|
|
422
388
|
dependsOn: '16',
|
|
423
|
-
|
|
389
|
+
duration: 1,
|
|
424
390
|
tags: ['milestone'],
|
|
425
391
|
children: []
|
|
426
392
|
},
|
|
@@ -428,11 +394,10 @@ Regular.args = {
|
|
|
428
394
|
id: '18',
|
|
429
395
|
title: 'Release',
|
|
430
396
|
type: 'milestone',
|
|
431
|
-
// section: releaseSection,
|
|
432
397
|
startDate: '2023-02-08',
|
|
433
398
|
endDate: '2023-02-09',
|
|
434
399
|
dependsOn: '17',
|
|
435
|
-
|
|
400
|
+
duration: 1,
|
|
436
401
|
tags: ['critical'],
|
|
437
402
|
children: []
|
|
438
403
|
},
|
|
@@ -440,11 +405,10 @@ Regular.args = {
|
|
|
440
405
|
id: '19',
|
|
441
406
|
title: 'Release',
|
|
442
407
|
type: 'milestone',
|
|
443
|
-
// section: releaseSection,
|
|
444
408
|
startDate: '2023-02-10',
|
|
445
409
|
endDate: '2023-02-25',
|
|
446
410
|
dependsOn: '18',
|
|
447
|
-
|
|
411
|
+
duration: 1,
|
|
448
412
|
tags: ['milestone'],
|
|
449
413
|
resources: [{ type: '창호공', allocated: 7 }],
|
|
450
414
|
children: []
|
package/translations/en.json
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"label.gantt-task-progress": "progress",
|
|
10
10
|
"label.gantt-task-previous": "previous",
|
|
11
11
|
"label.gantt-task-resources": "resources",
|
|
12
|
+
"label.gantt-task-duration": "duration",
|
|
12
13
|
"label.gantt-resource-type": "type",
|
|
13
14
|
"label.gantt-resource-allocated": "allocated"
|
|
14
15
|
}
|
package/translations/ja.json
CHANGED
package/translations/ko.json
CHANGED
package/translations/ms.json
CHANGED
package/translations/zh.json
CHANGED