@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.
@@ -1,7 +1,7 @@
1
- import { CommonHeaderStyles } from '@operato/styles';
2
1
  import '../src/ox-gantt.js';
3
2
  import { html } from 'lit';
4
3
  import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles';
4
+ import { CommonHeaderStyles } from '@operato/styles';
5
5
  export default {
6
6
  title: 'ox-gantt',
7
7
  component: 'ox-gantt',
@@ -77,15 +77,6 @@ const Template = ({ tasks, fromDate, toDate, extendGridLines, timeScale = 'week-
77
77
  >
78
78
  </ox-gantt>
79
79
  `;
80
- const developmentSection = {
81
- name: 'Development'
82
- };
83
- const testSection = {
84
- name: 'Test'
85
- };
86
- const releaseSection = {
87
- name: 'Release'
88
- };
89
80
  export const Regular = Template.bind({});
90
81
  Regular.args = {
91
82
  fromDate: '2022-12-27',
@@ -95,12 +86,11 @@ Regular.args = {
95
86
  id: '1',
96
87
  title: 'Design',
97
88
  type: 'task',
98
- // section: developmentSection,
99
89
  startDate: '2023-01-01',
100
90
  endDate: '2023-01-05',
101
91
  progress: 60,
102
92
  dependsOn: '',
103
- length: '5d',
93
+ duration: 5,
104
94
  tags: ['active'],
105
95
  resources: [{ type: '철근/형틀공', allocated: 6 }],
106
96
  children: []
@@ -109,12 +99,11 @@ Regular.args = {
109
99
  id: '2',
110
100
  title: 'Development',
111
101
  type: 'milestone',
112
- // section: developmentSection,
113
102
  startDate: '2023-01-06',
114
103
  endDate: '2023-01-06',
115
104
  progress: 30,
116
105
  dependsOn: '1',
117
- length: '1d',
106
+ duration: 1,
118
107
  tags: ['milestone'],
119
108
  resources: [{ type: '철근/형틀공', allocated: 6 }],
120
109
  children: []
@@ -123,36 +112,33 @@ Regular.args = {
123
112
  id: '3',
124
113
  title: 'Coding',
125
114
  type: 'phase',
126
- // section: developmentSection,
127
115
  startDate: '2023-01-07',
128
116
  endDate: '2023-01-15',
129
117
  progress: 10,
130
118
  dependsOn: '2',
131
- length: '9d',
119
+ duration: 9,
132
120
  tags: ['critical'],
133
121
  children: [
134
122
  {
135
123
  id: '3-1',
136
124
  title: 'Coding-A',
137
125
  type: 'task',
138
- // section: developmentSection,
139
126
  startDate: '2023-01-07',
140
127
  endDate: '2023-01-10',
141
128
  progress: 60,
142
129
  dependsOn: '',
143
- length: '4d',
130
+ duration: 4,
144
131
  tags: ['done'],
145
132
  children: [
146
133
  {
147
134
  id: '3-1-1',
148
135
  title: 'Coding-A',
149
136
  type: 'task',
150
- // section: developmentSection,
151
137
  startDate: '2023-01-07',
152
138
  endDate: '2023-01-10',
153
139
  progress: 60,
154
140
  dependsOn: '',
155
- length: '4d',
141
+ duration: 4,
156
142
  tags: ['active'],
157
143
  resources: [{ type: '창호공', allocated: 5 }],
158
144
  children: []
@@ -161,11 +147,10 @@ Regular.args = {
161
147
  id: '3-1-2',
162
148
  title: 'Coding-B',
163
149
  type: 'task',
164
- // section: developmentSection,
165
150
  startDate: '2023-01-11',
166
151
  endDate: '2023-01-15',
167
152
  dependsOn: '3-1-1',
168
- length: '5d',
153
+ duration: 5,
169
154
  tags: ['active'],
170
155
  resources: [{ type: '창호공', allocated: 3 }],
171
156
  children: []
@@ -176,11 +161,10 @@ Regular.args = {
176
161
  id: '3-2',
177
162
  title: 'Coding-B',
178
163
  type: 'task',
179
- // section: developmentSection,
180
164
  startDate: '2023-01-11',
181
165
  endDate: '2023-01-15',
182
166
  dependsOn: '3-1',
183
- length: '5d',
167
+ duration: 5,
184
168
  tags: ['active'],
185
169
  resources: [{ type: '창호공', allocated: 6 }],
186
170
  children: []
@@ -191,12 +175,11 @@ Regular.args = {
191
175
  id: '4',
192
176
  title: 'Test',
193
177
  type: 'milestone',
194
- // section: developmentSection,
195
178
  startDate: '2023-01-07',
196
179
  endDate: '2023-01-10',
197
180
  progress: 100,
198
181
  dependsOn: '1',
199
- length: '1d',
182
+ duration: 1,
200
183
  tags: ['done'],
201
184
  resources: [{ type: '방수공', allocated: 5 }],
202
185
  children: []
@@ -205,11 +188,10 @@ Regular.args = {
205
188
  id: '5',
206
189
  title: 'Deploy',
207
190
  type: 'milestone',
208
- // section: developmentSection,
209
191
  startDate: '2023-01-15',
210
192
  endDate: '2023-01-21',
211
193
  dependsOn: '4',
212
- length: '1d',
194
+ duration: 1,
213
195
  tags: ['milestone'],
214
196
  resources: [{ type: '목공', allocated: 3 }],
215
197
  children: []
@@ -218,11 +200,10 @@ Regular.args = {
218
200
  id: '6',
219
201
  title: 'Publishing',
220
202
  type: 'milestone',
221
- // section: developmentSection,
222
203
  startDate: '2023-01-11',
223
204
  endDate: '2023-01-15',
224
205
  dependsOn: '5',
225
- length: '1d',
206
+ duration: 1,
226
207
  tags: ['milestone'],
227
208
  resources: [{ type: '금속공', allocated: 1 }],
228
209
  children: []
@@ -231,11 +212,10 @@ Regular.args = {
231
212
  id: '7',
232
213
  title: 'Provisioning',
233
214
  type: 'milestone',
234
- // section: developmentSection,
235
215
  startDate: '2023-01-12',
236
216
  endDate: '2023-01-15',
237
217
  dependsOn: '6',
238
- length: '1d',
218
+ duration: 1,
239
219
  tags: ['milestone'],
240
220
  resources: [{ type: '타일공', allocated: 6 }],
241
221
  children: []
@@ -244,11 +224,10 @@ Regular.args = {
244
224
  id: '8',
245
225
  title: 'Alpha Test',
246
226
  type: 'milestone',
247
- // section: testSection,
248
227
  startDate: '2023-01-15',
249
228
  endDate: '2023-01-17',
250
229
  dependsOn: '7',
251
- length: '1d',
230
+ duration: 1,
252
231
  tags: ['critical'],
253
232
  resources: [{ type: '창호공', allocated: 7 }],
254
233
  children: []
@@ -257,11 +236,10 @@ Regular.args = {
257
236
  id: '9',
258
237
  title: 'Beta Task',
259
238
  type: 'milestone',
260
- // section: testSection,
261
239
  startDate: '2023-01-15',
262
240
  endDate: '2023-01-18',
263
241
  dependsOn: '8',
264
- length: '1d',
242
+ duration: 1,
265
243
  tags: ['active'],
266
244
  resources: [{ type: '도배공', allocated: 8 }],
267
245
  children: []
@@ -274,7 +252,7 @@ Regular.args = {
274
252
  startDate: '2023-01-18',
275
253
  endDate: '2023-01-19',
276
254
  dependsOn: '9',
277
- length: '1d',
255
+ duration: 1,
278
256
  tags: ['critical'],
279
257
  resources: [{ type: '조적공', allocated: 6 }],
280
258
  children: []
@@ -283,11 +261,10 @@ Regular.args = {
283
261
  id: '11',
284
262
  title: 'Zeta Test',
285
263
  type: 'milestone',
286
- // section: testSection,
287
264
  startDate: '2023-01-18',
288
265
  endDate: '2023-01-22',
289
266
  dependsOn: '9',
290
- length: '1d',
267
+ duration: 1,
291
268
  tags: ['milestone'],
292
269
  resources: [{ type: '철근/형틀공', allocated: 6 }],
293
270
  children: []
@@ -296,11 +273,10 @@ Regular.args = {
296
273
  id: '12',
297
274
  title: 'Release',
298
275
  type: 'milestone',
299
- // section: releaseSection,
300
276
  startDate: '2023-01-18',
301
277
  endDate: '2023-01-23',
302
278
  dependsOn: '9',
303
- length: '1d',
279
+ duration: 1,
304
280
  resources: [{ type: '방수공', allocated: 6 }],
305
281
  tags: ['milestone'],
306
282
  children: [
@@ -308,12 +284,11 @@ Regular.args = {
308
284
  id: '12-1',
309
285
  title: 'Coding-A',
310
286
  type: 'task',
311
- // section: developmentSection,
312
287
  startDate: '2023-01-07',
313
288
  endDate: '2023-01-10',
314
289
  progress: 60,
315
290
  dependsOn: '',
316
- length: '4d',
291
+ duration: 4,
317
292
  tags: ['done'],
318
293
  resources: [{ type: '방수공', allocated: 6 }],
319
294
  children: []
@@ -322,11 +297,10 @@ Regular.args = {
322
297
  id: '12-2',
323
298
  title: 'Coding-B',
324
299
  type: 'task',
325
- // section: developmentSection,
326
300
  startDate: '2023-01-11',
327
301
  endDate: '2023-01-15',
328
302
  dependsOn: '12-1',
329
- length: '5d',
303
+ duration: 5,
330
304
  tags: ['active'],
331
305
  resources: [{ type: '조적공', allocated: 6 }],
332
306
  children: []
@@ -337,11 +311,10 @@ Regular.args = {
337
311
  id: '13',
338
312
  title: 'Release',
339
313
  type: 'milestone',
340
- // section: releaseSection,
341
314
  startDate: '2023-01-22',
342
315
  endDate: '2023-01-27',
343
316
  dependsOn: '12',
344
- length: '1d',
317
+ duration: 1,
345
318
  tags: ['done'],
346
319
  children: []
347
320
  },
@@ -349,11 +322,10 @@ Regular.args = {
349
322
  id: '14',
350
323
  title: 'Release',
351
324
  type: 'milestone',
352
- // section: releaseSection,
353
325
  startDate: '2023-01-27',
354
326
  endDate: '2023-01-30',
355
327
  dependsOn: '13',
356
- length: '1d',
328
+ duration: 1,
357
329
  tags: ['milestone'],
358
330
  resources: [{ type: '금속공', allocated: 1 }],
359
331
  children: []
@@ -362,11 +334,10 @@ Regular.args = {
362
334
  id: '15',
363
335
  title: 'Release',
364
336
  type: 'milestone',
365
- // section: releaseSection,
366
337
  startDate: '2023-01-30',
367
338
  endDate: '2023-01-31',
368
339
  dependsOn: '14',
369
- length: '1d',
340
+ duration: 1,
370
341
  tags: ['milestone'],
371
342
  children: []
372
343
  },
@@ -374,11 +345,10 @@ Regular.args = {
374
345
  id: '16',
375
346
  title: 'Release',
376
347
  type: 'milestone',
377
- // section: releaseSection,
378
348
  startDate: '2023-01-31',
379
349
  endDate: '2023-02-05',
380
350
  dependsOn: '15',
381
- length: '1d',
351
+ duration: 1,
382
352
  resources: [{ type: '창호공', allocated: 1 }],
383
353
  tags: ['active'],
384
354
  children: []
@@ -387,11 +357,10 @@ Regular.args = {
387
357
  id: '17',
388
358
  title: 'Release',
389
359
  type: 'milestone',
390
- // section: releaseSection,
391
360
  startDate: '2023-02-06',
392
361
  endDate: '2023-02-07',
393
362
  dependsOn: '16',
394
- length: '1d',
363
+ duration: 1,
395
364
  tags: ['milestone'],
396
365
  children: []
397
366
  },
@@ -399,11 +368,10 @@ Regular.args = {
399
368
  id: '18',
400
369
  title: 'Release',
401
370
  type: 'milestone',
402
- // section: releaseSection,
403
371
  startDate: '2023-02-08',
404
372
  endDate: '2023-02-09',
405
373
  dependsOn: '17',
406
- length: '1d',
374
+ duration: 1,
407
375
  tags: ['critical'],
408
376
  children: []
409
377
  },
@@ -411,11 +379,10 @@ Regular.args = {
411
379
  id: '19',
412
380
  title: 'Release',
413
381
  type: 'milestone',
414
- // section: releaseSection,
415
382
  startDate: '2023-02-10',
416
383
  endDate: '2023-02-25',
417
384
  dependsOn: '18',
418
- length: '1d',
385
+ duration: 1,
419
386
  tags: ['milestone'],
420
387
  resources: [{ type: '창호공', allocated: 7 }],
421
388
  children: []
@@ -1 +1 @@
1
- {"version":3,"file":"ox-gantt.stories.js","sourceRoot":"","sources":["../../stories/ox-gantt.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACpD,OAAO,oBAAoB,CAAA;AAE3B,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAC1C,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,8CAA8C,CAAA;AAI1F,eAAe;IACb,KAAK,EAAE,UAAU;IACjB,SAAS,EAAE,UAAU;IACrB,QAAQ,EAAE;QACR,QAAQ,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QAC7B,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QAC3B,SAAS,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,cAAc,EAAE,YAAY,EAAE,cAAc,EAAE,UAAU,CAAC,EAAE;QACrG,eAAe,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;QACvC,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;KAC7B;CACF,CAAA;AAgBD,MAAM,QAAQ,GAAoB,CAAC,EACjC,KAAK,EACL,QAAQ,EACR,MAAM,EACN,eAAe,EACf,SAAS,GAAG,UAAU,EACb,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;;MAsBd,iBAAiB,CAAC,OAAO;;;;MAIzB,kBAAkB,CAAC,O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,EAAE,IAAI;YACf,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,CAAC,UAAU,CAAC;YAClB,QAAQ,EAAE,EAAE;SACb;QACD;YACE,EAAE,EAAE,IAAI;YACR,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,WAAW;YACjB,2BAA2B;YAC3B,SAAS,EAAE,YAAY;YACvB,OAAO,EAAE,YAAY;YACrB,SAAS,EAAE,IAAI;YACf,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,CAAC,WAAW,CAAC;YACnB,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;YAC1C,QAAQ,EAAE,EAAE;SACb;KACF;CACF,CAAA","sourcesContent":["import { CommonHeaderStyles } from '@operato/styles'\nimport '../src/ox-gantt.js'\n\nimport { html, TemplateResult } from 'lit'\nimport { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles'\n\nimport { Task, Section, TimeScale } from '../src/types.js'\n\nexport default {\n title: 'ox-gantt',\n component: 'ox-gantt',\n argTypes: {\n fromDate: { control: 'date' },\n toDate: { control: 'date' },\n timeScale: { control: 'select', options: ['year-quarter', 'year-month', 'quarter-week', 'week-day'] },\n extendGridLines: { control: 'boolean' },\n tasks: { control: 'object' }\n }\n}\n\ninterface Story<T> {\n (args: T): TemplateResult\n args?: Partial<T>\n argTypes?: Record<string, unknown>\n}\n\ninterface ArgTypes {\n tasks: Task[]\n fromDate: number | string\n toDate: number | string\n extendGridLines: boolean\n timeScale: TimeScale\n}\n\nconst Template: Story<ArgTypes> = ({\n tasks,\n fromDate,\n toDate,\n extendGridLines,\n timeScale = 'week-day'\n}: ArgTypes) => html`\n <link href=\"https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap\" rel=\"stylesheet\" />\n\n <link href=\"/themes/light.css\" rel=\"stylesheet\" />\n <link href=\"/themes/dark.css\" rel=\"stylesheet\" />\n <link href=\"/themes/spacing.css\" rel=\"stylesheet\" />\n <link href=\"/themes/md-typescale-styles.css\" rel=\"stylesheet\" />\n\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n\n <style>\n ${MDTypeScaleStyles.cssText}\n </style>\n\n <style>\n ${CommonHeaderStyles.cssText}\n </style>\n\n <style>\n body {\n width: 100%;\n height: 800px;\n text-align: center;\n\n background-color: var(--md-sys-color-background);\n color: var(--md-sys-color-on-background);\n }\n\n ox-gantt {\n width: 95%;\n height: 650px;\n box-sizing: border-box;\n\n background-color: var(--md-sys-color-primary-container);\n color: var(--md-sys-color-on-primary-container);\n }\n </style>\n\n <ox-gantt\n from-date=${new Date(fromDate).toISOString().split('T')[0]}\n to-date=${new Date(toDate).toISOString().split('T')[0]}\n .timeScale=${timeScale}\n .tasks=${tasks}\n @date-range-selected=${(e: CustomEvent) => {\n console.log('date-range-selected', e.detail)\n }}\n @task-clicked=${(e: CustomEvent) => {\n console.log('task-clicked', e.detail)\n }}\n ?extend-grid-lines=${extendGridLines}\n >\n </ox-gantt>\n`\n\nconst developmentSection: Section = {\n name: 'Development'\n}\n\nconst testSection: Section = {\n name: 'Test'\n}\n\nconst releaseSection: Section = {\n name: 'Release'\n}\n\nexport const Regular = Template.bind({})\nRegular.args = {\n fromDate: '2022-12-27',\n toDate: '2024-12-31',\n tasks: [\n {\n id: '1',\n title: 'Design',\n type: 'task',\n // section: developmentSection,\n startDate: '2023-01-01',\n endDate: '2023-01-05',\n progress: 60,\n dependsOn: '',\n length: '5d',\n tags: ['active'],\n resources: [{ type: '철근/형틀공', allocated: 6 }],\n children: []\n },\n {\n id: '2',\n title: 'Development',\n type: 'milestone',\n // section: developmentSection,\n startDate: '2023-01-06',\n endDate: '2023-01-06',\n progress: 30,\n dependsOn: '1',\n length: '1d',\n tags: ['milestone'],\n resources: [{ type: '철근/형틀공', allocated: 6 }],\n children: []\n },\n {\n id: '3',\n title: 'Coding',\n type: 'phase',\n // section: developmentSection,\n startDate: '2023-01-07',\n endDate: '2023-01-15',\n progress: 10,\n dependsOn: '2',\n length: '9d',\n tags: ['critical'],\n children: [\n {\n id: '3-1',\n title: 'Coding-A',\n type: 'task',\n // section: developmentSection,\n startDate: '2023-01-07',\n endDate: '2023-01-10',\n progress: 60,\n dependsOn: '',\n length: '4d',\n tags: ['done'],\n children: [\n {\n id: '3-1-1',\n title: 'Coding-A',\n type: 'task',\n // section: developmentSection,\n startDate: '2023-01-07',\n endDate: '2023-01-10',\n progress: 60,\n dependsOn: '',\n length: '4d',\n tags: ['active'],\n resources: [{ type: '창호공', allocated: 5 }],\n children: []\n },\n {\n id: '3-1-2',\n title: 'Coding-B',\n type: 'task',\n // section: developmentSection,\n startDate: '2023-01-11',\n endDate: '2023-01-15',\n dependsOn: '3-1-1',\n length: '5d',\n tags: ['active'],\n resources: [{ type: '창호공', allocated: 3 }],\n children: []\n }\n ]\n },\n {\n id: '3-2',\n title: 'Coding-B',\n type: 'task',\n // section: developmentSection,\n startDate: '2023-01-11',\n endDate: '2023-01-15',\n dependsOn: '3-1',\n length: '5d',\n tags: ['active'],\n resources: [{ type: '창호공', allocated: 6 }],\n children: []\n }\n ]\n },\n {\n id: '4',\n title: 'Test',\n type: 'milestone',\n // section: developmentSection,\n startDate: '2023-01-07',\n endDate: '2023-01-10',\n progress: 100,\n dependsOn: '1',\n length: '1d',\n tags: ['done'],\n resources: [{ type: '방수공', allocated: 5 }],\n children: []\n },\n {\n id: '5',\n title: 'Deploy',\n type: 'milestone',\n // section: developmentSection,\n startDate: '2023-01-15',\n endDate: '2023-01-21',\n dependsOn: '4',\n length: '1d',\n tags: ['milestone'],\n resources: [{ type: '목공', allocated: 3 }],\n children: []\n },\n {\n id: '6',\n title: 'Publishing',\n type: 'milestone',\n // section: developmentSection,\n startDate: '2023-01-11',\n endDate: '2023-01-15',\n dependsOn: '5',\n length: '1d',\n tags: ['milestone'],\n resources: [{ type: '금속공', allocated: 1 }],\n children: []\n },\n {\n id: '7',\n title: 'Provisioning',\n type: 'milestone',\n // section: developmentSection,\n startDate: '2023-01-12',\n endDate: '2023-01-15',\n dependsOn: '6',\n length: '1d',\n tags: ['milestone'],\n resources: [{ type: '타일공', allocated: 6 }],\n children: []\n },\n {\n id: '8',\n title: 'Alpha Test',\n type: 'milestone',\n // section: testSection,\n startDate: '2023-01-15',\n endDate: '2023-01-17',\n dependsOn: '7',\n length: '1d',\n tags: ['critical'],\n resources: [{ type: '창호공', allocated: 7 }],\n children: []\n },\n {\n id: '9',\n title: 'Beta Task',\n type: 'milestone',\n // section: testSection,\n startDate: '2023-01-15',\n endDate: '2023-01-18',\n dependsOn: '8',\n length: '1d',\n tags: ['active'],\n resources: [{ type: '도배공', allocated: 8 }],\n children: []\n },\n {\n id: '10',\n title: 'Gamma Test',\n type: 'milestone',\n // section: testSection,\n startDate: '2023-01-18',\n endDate: '2023-01-19',\n dependsOn: '9',\n length: '1d',\n tags: ['critical'],\n resources: [{ type: '조적공', allocated: 6 }],\n children: []\n },\n {\n id: '11',\n title: 'Zeta Test',\n type: 'milestone',\n // section: testSection,\n startDate: '2023-01-18',\n endDate: '2023-01-22',\n dependsOn: '9',\n length: '1d',\n tags: ['milestone'],\n resources: [{ type: '철근/형틀공', allocated: 6 }],\n children: []\n },\n {\n id: '12',\n title: 'Release',\n type: 'milestone',\n // section: releaseSection,\n startDate: '2023-01-18',\n endDate: '2023-01-23',\n dependsOn: '9',\n length: '1d',\n resources: [{ type: '방수공', allocated: 6 }],\n tags: ['milestone'],\n children: [\n {\n id: '12-1',\n title: 'Coding-A',\n type: 'task',\n // section: developmentSection,\n startDate: '2023-01-07',\n endDate: '2023-01-10',\n progress: 60,\n dependsOn: '',\n length: '4d',\n tags: ['done'],\n resources: [{ type: '방수공', allocated: 6 }],\n children: []\n },\n {\n id: '12-2',\n title: 'Coding-B',\n type: 'task',\n // section: developmentSection,\n startDate: '2023-01-11',\n endDate: '2023-01-15',\n dependsOn: '12-1',\n length: '5d',\n tags: ['active'],\n resources: [{ type: '조적공', allocated: 6 }],\n children: []\n }\n ]\n },\n {\n id: '13',\n title: 'Release',\n type: 'milestone',\n // section: releaseSection,\n startDate: '2023-01-22',\n endDate: '2023-01-27',\n dependsOn: '12',\n length: '1d',\n tags: ['done'],\n children: []\n },\n {\n id: '14',\n title: 'Release',\n type: 'milestone',\n // section: releaseSection,\n startDate: '2023-01-27',\n endDate: '2023-01-30',\n dependsOn: '13',\n length: '1d',\n tags: ['milestone'],\n resources: [{ type: '금속공', allocated: 1 }],\n children: []\n },\n {\n id: '15',\n title: 'Release',\n type: 'milestone',\n // section: releaseSection,\n startDate: '2023-01-30',\n endDate: '2023-01-31',\n dependsOn: '14',\n length: '1d',\n tags: ['milestone'],\n children: []\n },\n {\n id: '16',\n title: 'Release',\n type: 'milestone',\n // section: releaseSection,\n startDate: '2023-01-31',\n endDate: '2023-02-05',\n dependsOn: '15',\n length: '1d',\n resources: [{ type: '창호공', allocated: 1 }],\n tags: ['active'],\n children: []\n },\n {\n id: '17',\n title: 'Release',\n type: 'milestone',\n // section: releaseSection,\n startDate: '2023-02-06',\n endDate: '2023-02-07',\n dependsOn: '16',\n length: '1d',\n tags: ['milestone'],\n children: []\n },\n {\n id: '18',\n title: 'Release',\n type: 'milestone',\n // section: releaseSection,\n startDate: '2023-02-08',\n endDate: '2023-02-09',\n dependsOn: '17',\n length: '1d',\n tags: ['critical'],\n children: []\n },\n {\n id: '19',\n title: 'Release',\n type: 'milestone',\n // section: releaseSection,\n startDate: '2023-02-10',\n endDate: '2023-02-25',\n dependsOn: '18',\n length: '1d',\n tags: ['milestone'],\n resources: [{ type: '창호공', allocated: 7 }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,QAAQ,EAAE,EAAE;SACb;QACD;YACE,EAAE,EAAE,IAAI;YACR,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,YAAY;YACvB,OAAO,EAAE,YAAY;YACrB,SAAS,EAAE,IAAI;YACf,QAAQ,EAAE,CAAC;YACX,IAAI,EAAE,CAAC,WAAW,CAAC;YACnB,QAAQ,EAAE,EAAE;SACb;QACD;YACE,EAAE,EAAE,IAAI;YACR,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,YAAY;YACvB,OAAO,EAAE,YAAY;YACrB,SAAS,EAAE,IAAI;YACf,QAAQ,EAAE,CAAC;YACX,IAAI,EAAE,CAAC,UAAU,CAAC;YAClB,QAAQ,EAAE,EAAE;SACb;QACD;YACE,EAAE,EAAE,IAAI;YACR,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,YAAY;YACvB,OAAO,EAAE,YAAY;YACrB,SAAS,EAAE,IAAI;YACf,QAAQ,EAAE,CAAC;YACX,IAAI,EAAE,CAAC,WAAW,CAAC;YACnB,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;YAC1C,QAAQ,EAAE,EAAE;SACb;KACF;CACF,CAAA","sourcesContent":["import '../src/ox-gantt.js'\n\nimport { html, TemplateResult } from 'lit'\nimport { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles'\nimport { CommonHeaderStyles } from '@operato/styles'\n\nimport { Task, TimeScale } from '../src/types.js'\n\nexport default {\n title: 'ox-gantt',\n component: 'ox-gantt',\n argTypes: {\n fromDate: { control: 'date' },\n toDate: { control: 'date' },\n timeScale: { control: 'select', options: ['year-quarter', 'year-month', 'quarter-week', 'week-day'] },\n extendGridLines: { control: 'boolean' },\n tasks: { control: 'object' }\n }\n}\n\ninterface Story<T> {\n (args: T): TemplateResult\n args?: Partial<T>\n argTypes?: Record<string, unknown>\n}\n\ninterface ArgTypes {\n tasks: Task[]\n fromDate: number | string\n toDate: number | string\n extendGridLines: boolean\n timeScale: TimeScale\n}\n\nconst Template: Story<ArgTypes> = ({\n tasks,\n fromDate,\n toDate,\n extendGridLines,\n timeScale = 'week-day'\n}: ArgTypes) => html`\n <link href=\"https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap\" rel=\"stylesheet\" />\n\n <link href=\"/themes/light.css\" rel=\"stylesheet\" />\n <link href=\"/themes/dark.css\" rel=\"stylesheet\" />\n <link href=\"/themes/spacing.css\" rel=\"stylesheet\" />\n <link href=\"/themes/md-typescale-styles.css\" rel=\"stylesheet\" />\n\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n\n <style>\n ${MDTypeScaleStyles.cssText}\n </style>\n\n <style>\n ${CommonHeaderStyles.cssText}\n </style>\n\n <style>\n body {\n width: 100%;\n height: 800px;\n text-align: center;\n\n background-color: var(--md-sys-color-background);\n color: var(--md-sys-color-on-background);\n }\n\n ox-gantt {\n width: 95%;\n height: 650px;\n box-sizing: border-box;\n\n background-color: var(--md-sys-color-primary-container);\n color: var(--md-sys-color-on-primary-container);\n }\n </style>\n\n <ox-gantt\n from-date=${new Date(fromDate).toISOString().split('T')[0]}\n to-date=${new Date(toDate).toISOString().split('T')[0]}\n .timeScale=${timeScale}\n .tasks=${tasks}\n @date-range-selected=${(e: CustomEvent) => {\n console.log('date-range-selected', e.detail)\n }}\n @task-clicked=${(e: CustomEvent) => {\n console.log('task-clicked', e.detail)\n }}\n ?extend-grid-lines=${extendGridLines}\n >\n </ox-gantt>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {\n fromDate: '2022-12-27',\n toDate: '2024-12-31',\n tasks: [\n {\n id: '1',\n title: 'Design',\n type: 'task',\n startDate: '2023-01-01',\n endDate: '2023-01-05',\n progress: 60,\n dependsOn: '',\n duration: 5,\n tags: ['active'],\n resources: [{ type: '철근/형틀공', allocated: 6 }],\n children: []\n },\n {\n id: '2',\n title: 'Development',\n type: 'milestone',\n startDate: '2023-01-06',\n endDate: '2023-01-06',\n progress: 30,\n dependsOn: '1',\n duration: 1,\n tags: ['milestone'],\n resources: [{ type: '철근/형틀공', allocated: 6 }],\n children: []\n },\n {\n id: '3',\n title: 'Coding',\n type: 'phase',\n startDate: '2023-01-07',\n endDate: '2023-01-15',\n progress: 10,\n dependsOn: '2',\n duration: 9,\n tags: ['critical'],\n children: [\n {\n id: '3-1',\n title: 'Coding-A',\n type: 'task',\n startDate: '2023-01-07',\n endDate: '2023-01-10',\n progress: 60,\n dependsOn: '',\n duration: 4,\n tags: ['done'],\n children: [\n {\n id: '3-1-1',\n title: 'Coding-A',\n type: 'task',\n startDate: '2023-01-07',\n endDate: '2023-01-10',\n progress: 60,\n dependsOn: '',\n duration: 4,\n tags: ['active'],\n resources: [{ type: '창호공', allocated: 5 }],\n children: []\n },\n {\n id: '3-1-2',\n title: 'Coding-B',\n type: 'task',\n startDate: '2023-01-11',\n endDate: '2023-01-15',\n dependsOn: '3-1-1',\n duration: 5,\n tags: ['active'],\n resources: [{ type: '창호공', allocated: 3 }],\n children: []\n }\n ]\n },\n {\n id: '3-2',\n title: 'Coding-B',\n type: 'task',\n startDate: '2023-01-11',\n endDate: '2023-01-15',\n dependsOn: '3-1',\n duration: 5,\n tags: ['active'],\n resources: [{ type: '창호공', allocated: 6 }],\n children: []\n }\n ]\n },\n {\n id: '4',\n title: 'Test',\n type: 'milestone',\n startDate: '2023-01-07',\n endDate: '2023-01-10',\n progress: 100,\n dependsOn: '1',\n duration: 1,\n tags: ['done'],\n resources: [{ type: '방수공', allocated: 5 }],\n children: []\n },\n {\n id: '5',\n title: 'Deploy',\n type: 'milestone',\n startDate: '2023-01-15',\n endDate: '2023-01-21',\n dependsOn: '4',\n duration: 1,\n tags: ['milestone'],\n resources: [{ type: '목공', allocated: 3 }],\n children: []\n },\n {\n id: '6',\n title: 'Publishing',\n type: 'milestone',\n startDate: '2023-01-11',\n endDate: '2023-01-15',\n dependsOn: '5',\n duration: 1,\n tags: ['milestone'],\n resources: [{ type: '금속공', allocated: 1 }],\n children: []\n },\n {\n id: '7',\n title: 'Provisioning',\n type: 'milestone',\n startDate: '2023-01-12',\n endDate: '2023-01-15',\n dependsOn: '6',\n duration: 1,\n tags: ['milestone'],\n resources: [{ type: '타일공', allocated: 6 }],\n children: []\n },\n {\n id: '8',\n title: 'Alpha Test',\n type: 'milestone',\n startDate: '2023-01-15',\n endDate: '2023-01-17',\n dependsOn: '7',\n duration: 1,\n tags: ['critical'],\n resources: [{ type: '창호공', allocated: 7 }],\n children: []\n },\n {\n id: '9',\n title: 'Beta Task',\n type: 'milestone',\n startDate: '2023-01-15',\n endDate: '2023-01-18',\n dependsOn: '8',\n duration: 1,\n tags: ['active'],\n resources: [{ type: '도배공', allocated: 8 }],\n children: []\n },\n {\n id: '10',\n title: 'Gamma Test',\n type: 'milestone',\n // section: testSection,\n startDate: '2023-01-18',\n endDate: '2023-01-19',\n dependsOn: '9',\n duration: 1,\n tags: ['critical'],\n resources: [{ type: '조적공', allocated: 6 }],\n children: []\n },\n {\n id: '11',\n title: 'Zeta Test',\n type: 'milestone',\n startDate: '2023-01-18',\n endDate: '2023-01-22',\n dependsOn: '9',\n duration: 1,\n tags: ['milestone'],\n resources: [{ type: '철근/형틀공', allocated: 6 }],\n children: []\n },\n {\n id: '12',\n title: 'Release',\n type: 'milestone',\n startDate: '2023-01-18',\n endDate: '2023-01-23',\n dependsOn: '9',\n duration: 1,\n resources: [{ type: '방수공', allocated: 6 }],\n tags: ['milestone'],\n children: [\n {\n id: '12-1',\n title: 'Coding-A',\n type: 'task',\n startDate: '2023-01-07',\n endDate: '2023-01-10',\n progress: 60,\n dependsOn: '',\n duration: 4,\n tags: ['done'],\n resources: [{ type: '방수공', allocated: 6 }],\n children: []\n },\n {\n id: '12-2',\n title: 'Coding-B',\n type: 'task',\n startDate: '2023-01-11',\n endDate: '2023-01-15',\n dependsOn: '12-1',\n duration: 5,\n tags: ['active'],\n resources: [{ type: '조적공', allocated: 6 }],\n children: []\n }\n ]\n },\n {\n id: '13',\n title: 'Release',\n type: 'milestone',\n startDate: '2023-01-22',\n endDate: '2023-01-27',\n dependsOn: '12',\n duration: 1,\n tags: ['done'],\n children: []\n },\n {\n id: '14',\n title: 'Release',\n type: 'milestone',\n startDate: '2023-01-27',\n endDate: '2023-01-30',\n dependsOn: '13',\n duration: 1,\n tags: ['milestone'],\n resources: [{ type: '금속공', allocated: 1 }],\n children: []\n },\n {\n id: '15',\n title: 'Release',\n type: 'milestone',\n startDate: '2023-01-30',\n endDate: '2023-01-31',\n dependsOn: '14',\n duration: 1,\n tags: ['milestone'],\n children: []\n },\n {\n id: '16',\n title: 'Release',\n type: 'milestone',\n startDate: '2023-01-31',\n endDate: '2023-02-05',\n dependsOn: '15',\n duration: 1,\n resources: [{ type: '창호공', allocated: 1 }],\n tags: ['active'],\n children: []\n },\n {\n id: '17',\n title: 'Release',\n type: 'milestone',\n startDate: '2023-02-06',\n endDate: '2023-02-07',\n dependsOn: '16',\n duration: 1,\n tags: ['milestone'],\n children: []\n },\n {\n id: '18',\n title: 'Release',\n type: 'milestone',\n startDate: '2023-02-08',\n endDate: '2023-02-09',\n dependsOn: '17',\n duration: 1,\n tags: ['critical'],\n children: []\n },\n {\n id: '19',\n title: 'Release',\n type: 'milestone',\n startDate: '2023-02-10',\n endDate: '2023-02-25',\n dependsOn: '18',\n duration: 1,\n tags: ['milestone'],\n resources: [{ type: '창호공', allocated: 7 }],\n children: []\n }\n ]\n}\n"]}