@operato/gantt 7.0.76 → 7.1.1
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 +25 -0
- package/dist/src/ox-gantt.js +14 -16
- package/dist/src/ox-gantt.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 -35
- package/dist/stories/ox-gantt.stories.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/src/ox-gantt.ts +14 -15
- package/src/types.ts +2 -8
- package/stories/ox-gantt.stories.ts +27 -39
- 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
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,31 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
### [7.1.1](https://github.com/hatiolab/operato/compare/v7.0.80...v7.1.1) (2024-09-01)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @operato/gantt
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [7.1.0](https://github.com/hatiolab/operato/compare/v7.0.80...v7.1.0) (2024-09-01)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @operato/gantt
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### [7.0.77](https://github.com/hatiolab/operato/compare/v7.0.76...v7.0.77) (2024-08-29)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### :bug: Bug Fix
|
|
26
|
+
|
|
27
|
+
* remove unused types ([efd0046](https://github.com/hatiolab/operato/commit/efd0046096ee06d380c4d16b6549ffc764e9aa17))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
6
31
|
### [7.0.76](https://github.com/hatiolab/operato/compare/v7.0.75...v7.0.76) (2024-08-29)
|
|
7
32
|
|
|
8
33
|
|
package/dist/src/ox-gantt.js
CHANGED
|
@@ -17,7 +17,7 @@ let OxGantt = class OxGantt extends localize(i18next)(LitElement) {
|
|
|
17
17
|
this.toDate = new Date(new Date().getFullYear(), 11, 31).toISOString().split('T')[0]; /* end of this year */
|
|
18
18
|
this.extendGridLines = false;
|
|
19
19
|
this.timeScale = 'week-day';
|
|
20
|
-
this.colorProvider =
|
|
20
|
+
this.colorProvider = (task) => {
|
|
21
21
|
const { tags = [] } = task;
|
|
22
22
|
if (tags.includes('critical')) {
|
|
23
23
|
return 'red';
|
|
@@ -28,34 +28,32 @@ let OxGantt = class OxGantt extends localize(i18next)(LitElement) {
|
|
|
28
28
|
else if (tags.includes('done')) {
|
|
29
29
|
return 'green';
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
return 'grey';
|
|
33
|
-
}
|
|
31
|
+
return 'grey';
|
|
34
32
|
};
|
|
35
33
|
this.columnConfigProvider = function () {
|
|
36
34
|
return [
|
|
37
35
|
{ name: 'id', label: i18next.t('label.gantt-task-id') || 'ID', visible: true, width: 50, order: 1 },
|
|
38
|
-
{
|
|
39
|
-
|
|
40
|
-
label: i18next.t('label.gantt-task-section') || 'section',
|
|
41
|
-
visible: true,
|
|
42
|
-
width: 100,
|
|
43
|
-
order: 2
|
|
44
|
-
},
|
|
45
|
-
{ name: 'title', label: i18next.t('label.gantt-task-title') || 'title', visible: true, width: 150, order: 3 },
|
|
46
|
-
{ name: 'type', label: i18next.t('label.gantt-task-type') || 'type', visible: true, width: 100, order: 4 },
|
|
36
|
+
{ name: 'title', label: i18next.t('label.gantt-task-title') || 'title', visible: true, width: 150, order: 2 },
|
|
37
|
+
{ name: 'type', label: i18next.t('label.gantt-task-type') || 'type', visible: true, width: 100, order: 3 },
|
|
47
38
|
{
|
|
48
39
|
name: 'startDate',
|
|
49
40
|
label: i18next.t('label.gantt-task-start-date') || 'start date',
|
|
50
41
|
visible: true,
|
|
51
42
|
width: 100,
|
|
52
|
-
order:
|
|
43
|
+
order: 4
|
|
53
44
|
},
|
|
54
45
|
{
|
|
55
46
|
name: 'endDate',
|
|
56
47
|
label: i18next.t('label.gantt-task-end-date') || 'end date',
|
|
57
48
|
visible: true,
|
|
58
49
|
width: 100,
|
|
50
|
+
order: 5
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'duration',
|
|
54
|
+
label: i18next.t('label.gantt-task-duration') || 'duration',
|
|
55
|
+
visible: true,
|
|
56
|
+
width: 30,
|
|
59
57
|
order: 6
|
|
60
58
|
},
|
|
61
59
|
{ name: 'tags', label: i18next.t('label.gantt-task-tags') || 'tags', visible: true, width: 100, order: 7 },
|
|
@@ -367,8 +365,6 @@ let OxGantt = class OxGantt extends localize(i18next)(LitElement) {
|
|
|
367
365
|
switch (field) {
|
|
368
366
|
case 'id':
|
|
369
367
|
return task.id;
|
|
370
|
-
case 'section':
|
|
371
|
-
return task.section?.name || '';
|
|
372
368
|
case 'title':
|
|
373
369
|
return task.title;
|
|
374
370
|
case 'type':
|
|
@@ -377,6 +373,8 @@ let OxGantt = class OxGantt extends localize(i18next)(LitElement) {
|
|
|
377
373
|
return new Date(task.startDate).toISOString().split('T')[0];
|
|
378
374
|
case 'endDate':
|
|
379
375
|
return new Date(task.endDate).toISOString().split('T')[0];
|
|
376
|
+
case 'duration':
|
|
377
|
+
return task.duration || 0;
|
|
380
378
|
case 'tags':
|
|
381
379
|
return task.tags?.join(', ') || '';
|
|
382
380
|
case 'progress':
|
package/dist/src/ox-gantt.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ox-gantt.js","sourceRoot":"","sources":["../../src/ox-gantt.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAoC,OAAO,EAAkB,MAAM,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B;IAA5D,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,CAAC;gDAAiC;AACxC;IAApD,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;0CAAkC;AAC1D;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;8CAW1B;AAC2B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qDAiD1B;AAEQ;IAAR,KAAK,EAAE;+CAAwB;AAEN;IAAzB,KAAK,CAAC,iBAAiB,CAAC;8CAA+B;AACxB;IAA/B,KAAK,CAAC,uBAAuB,CAAC;mDAAoC;AACrC;IAA7B,KAAK,CAAC,qBAAqB,CAAC;kDAAmC;AAC5B;IAAnC,KAAK,CAAC,2BAA2B,CAAC;uDAAwC;AACrD;IAArB,KAAK,CAAC,aAAa,CAAC;0CAA6B;AACzB;IAAxB,KAAK,CAAC,gBAAgB,CAAC;2CAA0B;AACtB;IAA3B,KAAK,CAAC,mBAAmB,CAAC;8CAAgC;AA3MhD,OAAO;IADnB,aAAa,CAAC,UAAU,CAAC;GACb,OAAO,CAqgBnB","sourcesContent":["import { LitElement, html, css, PropertyValues, PropertyValueMap, nothing, TemplateResult } from 'lit'\nimport * as d3 from 'd3'\nimport { customElement, property, query, state } from 'lit/decorators.js'\nimport { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles'\nimport { i18next, localize } from '@operato/i18n'\nimport { ScrollbarStyles } from '@operato/styles'\n\nimport './ox-gantt-chart.js'\nimport './ox-resource-chart.js'\nimport './ox-gantt-resize-splitter.js'\nimport { OxGanttChart } from './ox-gantt-chart.js'\nimport { OxResourceChart } from './ox-resource-chart.js'\nimport { ColumnConfig, Task, TimeScale, Resource } from './types.js'\n\n@customElement('ox-gantt')\nexport class OxGantt extends localize(i18next)(LitElement) {\n static styles = [\n MDTypeScaleStyles,\n ScrollbarStyles,\n css`\n :host {\n display: block;\n font-family: Arial, sans-serif;\n text-wrap: nowrap;\n position: relative;\n }\n\n .container {\n flex: 1;\n\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n }\n\n .resource-container {\n height: 300px;\n\n display: flex;\n overflow: hidden;\n box-sizing: border-box;\n }\n\n .resource-table-container {\n padding: 0;\n overflow: auto;\n overflow-y: overlay;\n box-sizing: border-box;\n border: 1px solid var(--ox-gantt-border-color, var(--md-sys-color-outline));\n }\n\n .resource-chart-container {\n flex: 1;\n padding: 0;\n box-sizing: border-box;\n border: 1px solid var(--ox-gantt-border-color, var(--md-sys-color-outline));\n }\n\n .task-container {\n flex: 1;\n\n display: flex;\n overflow: hidden;\n box-sizing: border-box;\n }\n\n .task-table-container {\n padding: 0;\n overflow: auto;\n overflow-y: overlay;\n box-sizing: border-box;\n border: 1px solid var(--ox-gantt-border-color, var(--md-sys-color-outline));\n }\n\n .task-chart-container {\n flex: 1;\n padding: 0;\n box-sizing: border-box;\n border: 1px solid var(--ox-gantt-border-color, var(--md-sys-color-outline));\n }\n\n table {\n width: 100%;\n border-collapse: collapse;\n border: 1px solid var(--ox-gantt-border-color, var(--md-sys-color-outline));\n margin: -1px;\n margin-right: 0;\n }\n\n thead th {\n position: sticky;\n top: -1px;\n z-index: 1;\n color: var(--ox-gantt-header-color, var(--md-sys-color-on-secondary-container));\n background-color: var(--ox-gantt-header-background-color, var(--md-sys-color-secondary-container));\n border-color: var(--ox-gantt-header-border-color, var(--md-sys-color-outline));\n text-transform: capitalize;\n }\n\n th,\n td {\n border: 1px solid var(--ox-gantt-border-color, var(--md-sys-color-outline));\n padding: 4px;\n text-align: left;\n }\n\n th {\n height: 40px;\n box-sizing: border-box;\n text-align: center;\n }\n\n td {\n height: 30px;\n box-sizing: border-box;\n }\n\n tr.selected {\n color: var(--ox-gantt-selected-color, var(--md-sys-color-on-surface));\n background-color: var(--ox-gantt-selected-background-color, var(--md-sys-color-surface-variant));\n }\n\n .resource-table-container th {\n height: 30px;\n }\n\n svg.toggle-icon[collapsed] {\n transform: rotate(-90deg);\n }\n\n span[group] {\n cursor: pointer;\n user-select: none;\n }\n `\n ]\n\n @property({ type: Array }) tasks: Task[] = []\n @property({ type: Array }) resources: Resource[] = []\n @property({ type: String, attribute: 'from-date' })\n fromDate: string = new Date(new Date().getFullYear(), 0, 1).toISOString().split('T')[0] /* beginning of this year */\n @property({ type: String, attribute: 'to-date' })\n toDate: string = new Date(new Date().getFullYear(), 11, 31).toISOString().split('T')[0] /* end of this year */\n @property({ type: Boolean, attribute: 'extend-grid-lines' }) extendGridLines: boolean = false\n @property({ type: String, attribute: 'time-scale' }) timeScale: TimeScale = 'week-day'\n @property({ type: Object }) colorProvider: (task: Task) => string = function (task: Task) {\n const { tags = [] } = task\n if (tags.includes('critical')) {\n return 'red'\n } else if (tags.includes('milestone')) {\n return 'blue'\n } else if (tags.includes('done')) {\n return 'green'\n } else {\n return 'grey'\n }\n }\n @property({ type: Object }) columnConfigProvider: () => ColumnConfig[] = function () {\n return [\n { name: 'id', label: i18next.t('label.gantt-task-id') || 'ID', visible: true, width: 50, order: 1 },\n {\n name: 'section',\n label: i18next.t('label.gantt-task-section') || 'section',\n visible: true,\n width: 100,\n order: 2\n },\n { name: 'title', label: i18next.t('label.gantt-task-title') || 'title', visible: true, width: 150, order: 3 },\n { name: 'type', label: i18next.t('label.gantt-task-type') || 'type', visible: true, width: 100, order: 4 },\n {\n name: 'startDate',\n label: i18next.t('label.gantt-task-start-date') || 'start date',\n visible: true,\n width: 100,\n order: 5\n },\n {\n name: 'endDate',\n label: i18next.t('label.gantt-task-end-date') || 'end date',\n visible: true,\n width: 100,\n order: 6\n },\n { name: 'tags', label: i18next.t('label.gantt-task-tags') || 'tags', visible: true, width: 100, order: 7 },\n {\n name: 'progress',\n label: i18next.t('label.gantt-task-progress') || 'progress',\n visible: true,\n width: 100,\n order: 8\n },\n {\n name: 'dependsOn',\n label: i18next.t('label.gantt-task-previous') || 'previous',\n visible: true,\n width: 100,\n order: 9\n },\n {\n name: 'resources',\n label: i18next.t('label.gantt-task-resources') || 'resources',\n visible: true,\n width: 100,\n order: 10\n }\n ]\n }\n\n @state() selectedTaskId?: string\n\n @query('.task-container') taskContainer!: HTMLDivElement\n @query('.task-table-container') taskTableContainer!: HTMLDivElement\n @query('.resource-container') resourceContainer!: HTMLDivElement\n @query('.resource-table-container') resourceTableContainer!: HTMLDivElement\n @query('.task-table') taskTable!: HTMLTableElement\n @query('ox-gantt-chart') ganttChart!: OxGanttChart\n @query('ox-resource-chart') resourceChart!: OxResourceChart\n\n private _startWidth: number = 0\n private _startHeight: number = 0\n private _isDragging: boolean = false\n\n render() {\n return html`\n <div class=\"container md-typescale-body-medium\">\n <div class=\"task-container\">\n <div class=\"task-table-container\" @scroll=${this.syncScroll}>${this.renderTaskTable()}</div>\n <ox-gantt-resize-splitter\n vertical\n @splitter-dragstart=${(e: CustomEvent) => this.resizeHorizontalStart(e)}\n @splitter-drag=${(e: CustomEvent) => this.resizeHorizontalDrag(e)}\n @splitter-dragend=${(e: CustomEvent) => this.resizeHorizontalEnd(e)}\n ></ox-gantt-resize-splitter>\n <ox-gantt-chart\n class=\"task-chart-container\"\n @scroll=${this.syncScroll}\n .fromDate=${this.fromDate}\n .toDate=${this.toDate}\n .tasks=${this.tasks}\n .selectedTaskId=${this.selectedTaskId}\n .axisScale=${this.timeScale}\n .colorProvider=${this.colorProvider}\n ?extend-grid-lines=${this.extendGridLines}\n @task-clicked=${this.handleTaskClicked}\n @timescale-changed=${(e: CustomEvent) => this.syncTimeScale(e)}\n ></ox-gantt-chart>\n </div>\n <ox-gantt-resize-splitter\n horizontal\n @splitter-dragstart=${(e: CustomEvent) => this.resizeVerticalStart(e)}\n @splitter-drag=${(e: CustomEvent) => this.resizeVerticalDrag(e)}\n @splitter-dragend=${(e: CustomEvent) => this.resizeVerticalEnd(e)}\n ></ox-gantt-resize-splitter>\n <div class=\"resource-container\">\n <div class=\"resource-table-container\" @scroll=${this.syncScroll}>\n <table>\n <thead>\n <tr>\n <th style=\"width: 100px\">${i18next.t('label.gantt-resource-type')}</th>\n <th>${i18next.t('label.gantt-resource-allocated')}</th>\n </tr>\n </thead>\n <tbody>\n ${this.resources.map(resource => this.renderResourceRow(resource))}\n </tbody>\n </table>\n </div>\n <ox-gantt-resize-splitter\n vertical\n @splitter-dragstart=${(e: CustomEvent) => this.resizeHorizontalStart(e)}\n @splitter-drag=${(e: CustomEvent) => this.resizeHorizontalDrag(e)}\n @splitter-dragend=${(e: CustomEvent) => this.resizeHorizontalEnd(e)}\n ></ox-gantt-resize-splitter>\n <ox-resource-chart\n class=\"resource-chart-container\"\n .fromDate=${this.fromDate}\n .toDate=${this.toDate}\n .tasks=${this.tasks}\n .resources=${this.resources}\n .axisScale=${this.timeScale}\n @scroll=${this.syncScroll}\n ></ox-resource-chart>\n </div>\n </div>\n `\n }\n\n renderTaskTable() {\n const columnConfig = this.columnConfigProvider()\n if (!columnConfig) {\n return\n }\n\n // Sort columns by the configured order\n const sortedColumns = [...columnConfig].sort((a, b) => a.order - b.order)\n\n return html`\n <table class=\"task-table\">\n <thead>\n <tr>\n ${sortedColumns.map(col =>\n col.visible ? html`<th style=\"width: ${col.width}px\">${col.label}</th>` : nothing\n )}\n </tr>\n </thead>\n <tbody>\n ${this.renderTaskRows(this.tasks, 0, columnConfig)}\n </tbody>\n </table>\n `\n }\n\n renderTaskRows(tasks: Task[], level: number = 0, columnConfig: ColumnConfig[]): TemplateResult[] {\n return tasks.flatMap(task => {\n if (task.collapsed) {\n return [this.renderTaskRow(task, level, columnConfig)]\n } else {\n return [\n this.renderTaskRow(task, level, columnConfig),\n ...this.renderTaskRows(task.children || [], level + 1, columnConfig)\n ]\n }\n })\n }\n\n renderTaskRow(task: Task, level: number, columnConfig: ColumnConfig[]) {\n const isGroupTask = task.children && task.children.length > 0\n const isCollapsed = !!task.collapsed\n const paddingLeft = level * 16 + 4 // 트리 구조를 위한 패딩\n\n return html`\n <tr class=${this.selectedTaskId === task.id ? 'selected' : ''} @click=${() => this.selectTask(task.id)}>\n ${columnConfig.map(col =>\n col.visible\n ? html`\n <td class=\"task-row\" style=\"padding-left: ${col.name === 'title' ? paddingLeft : 4}px\">\n ${col.name === 'title'\n ? html`\n ${isGroupTask\n ? html`\n <span class=\"toggle-icon\" @click=${(e: Event) => this.toggleCollapse(e, task)} group>\n ${isGroupTask\n ? html`\n <svg\n class=\"toggle-icon\"\n width=\"10\"\n height=\"10\"\n viewBox=\"0 0 10 10\"\n xmlns=\"http://www.w3.org/2000/svg\"\n ?collapsed=${isCollapsed}\n >\n <polygon\n points=\"0,1 10,1 5,9\"\n fill=\"var(--md-sys-color-on-primary-container)\"\n opacity=\"0.5\"\n />\n </svg>\n `\n : nothing}\n </span>\n `\n : nothing}\n ${this.getTaskFieldValue(task, col.name)}\n `\n : this.getTaskFieldValue(task, col.name)}\n </td>\n `\n : nothing\n )}\n </tr>\n `\n }\n\n toggleCollapse(e: Event, task: Task) {\n e.stopPropagation() // 클릭 이벤트 전파 방지\n\n task.collapsed = !task.collapsed\n this.requestUpdate()\n\n this.ganttChart.tasks = [...this.tasks]\n }\n\n renderResourceRow(resource: Resource) {\n return html`\n <tr>\n <td>${resource.type}</td>\n <td>${resource.allocated}</td>\n </tr>\n `\n }\n\n getTaskFieldValue(task: Task, field: string) {\n switch (field) {\n case 'id':\n return task.id\n case 'section':\n return task.section?.name || ''\n case 'title':\n return task.title\n case 'type':\n return task.type\n case 'startDate':\n return new Date(task.startDate).toISOString().split('T')[0]\n case 'endDate':\n return new Date(task.endDate).toISOString().split('T')[0]\n case 'tags':\n return task.tags?.join(', ') || ''\n case 'progress':\n return task.progress || ''\n case 'dependsOn':\n return task.dependsOn || ''\n case 'resources':\n return task.resources?.map(res => `${res.type}: ${res.allocated}`).join(', ') || ''\n default:\n return ''\n }\n }\n\n selectTask(taskId: string) {\n this.selectedTaskId = taskId\n }\n\n handleTaskClicked(event: CustomEvent) {\n this.selectedTaskId = event.detail.taskId\n }\n\n protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void {\n this.taskTableContainer.style.width = '254px'\n this.resourceTableContainer.style.width = '254px'\n }\n\n updated(changedProperties: PropertyValues<this>) {\n if (changedProperties.has('tasks')) {\n this.resources = this.aggregateResources(this.tasks)\n }\n }\n\n aggregateResources(tasks: Task[]): Resource[] {\n const resourceMap: { [key: string]: number } = {}\n\n const traverseTasks = (tasks: Task[]) => {\n tasks.forEach(task => {\n if (task.resources) {\n const startDate = new Date(task.startDate)\n const endDate = new Date(task.endDate)\n const durationDays = d3.timeDay.count(startDate, d3.timeDay.offset(endDate, 1))\n\n task.resources.forEach(resource => {\n const totalAllocation = resource.allocated * durationDays\n if (!resourceMap[resource.type]) {\n resourceMap[resource.type] = 0\n }\n resourceMap[resource.type] += totalAllocation\n })\n }\n\n if (task.children) {\n traverseTasks(task.children)\n }\n })\n }\n\n traverseTasks(tasks)\n\n return Object.keys(resourceMap).map(type => ({\n type,\n allocated: resourceMap[type]\n }))\n }\n\n syncScroll(e: Event) {\n const target = e.target as HTMLElement\n\n if (target === this.taskTableContainer) {\n const newScrollTop = this.taskTableContainer.scrollTop\n this.ganttChart.setVerticalOffset(newScrollTop)\n } else if (target === this.ganttChart) {\n const newScrollTop = this.ganttChart.getVerticalOffset()\n this.taskTableContainer.scrollTop = newScrollTop\n\n const newScrollLeft = this.ganttChart.getHorizontalOffset()\n this.resourceChart.setHorizontalOffset(newScrollLeft)\n } else if (target === this.resourceChart) {\n const newScrollTop = this.resourceChart.getVerticalOffset()\n this.resourceTableContainer.scrollTop = newScrollTop\n\n const newScrollLeft = this.resourceChart.getHorizontalOffset()\n this.ganttChart.setHorizontalOffset(newScrollLeft)\n } else if (target === this.resourceTableContainer) {\n const newScrollTop = this.resourceTableContainer.scrollTop\n this.resourceChart.setVerticalOffset(newScrollTop)\n }\n }\n\n syncTimeScale(e: CustomEvent) {\n const detail = e.detail\n this.resourceChart.syncTimeScale(detail)\n }\n\n resizeHorizontalStart(e: CustomEvent) {\n this._startWidth = ((e.target as HTMLElement)?.previousElementSibling as HTMLElement)?.offsetWidth\n this._isDragging = true\n }\n\n resizeHorizontalDrag(e: CustomEvent) {\n if (!this._isDragging) return\n const delta = e.detail\n this.taskTableContainer.style.width = `${this._startWidth + delta.x}px`\n this.resourceTableContainer.style.width = `${this._startWidth + delta.x}px`\n }\n\n resizeHorizontalEnd(e: CustomEvent) {\n this._isDragging = false\n }\n\n resizeVerticalStart(e: CustomEvent) {\n this._startHeight = ((e.target as HTMLElement)?.nextElementSibling as HTMLElement)?.offsetHeight\n this._isDragging = true\n }\n\n resizeVerticalDrag(e: CustomEvent) {\n if (!this._isDragging) return\n const delta = e.detail\n\n this.resourceContainer.style.height = `${this._startHeight - delta.y}px`\n }\n\n resizeVerticalEnd(e: CustomEvent) {\n this._isDragging = false\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ox-gantt.js","sourceRoot":"","sources":["../../src/ox-gantt.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAoC,OAAO,EAAkB,MAAM,KAAK,CAAA;AACtG,OAAO,KAAK,EAAE,MAAM,IAAI,CAAA;AACxB,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACzE,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,8CAA8C,CAAA;AAC1F,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,qBAAqB,CAAA;AAC5B,OAAO,wBAAwB,CAAA;AAC/B,OAAO,+BAA+B,CAAA;AAM/B,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,QAAQ,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC;IAAnD;;QA4Hs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AK,CAAC,2BAA2B,CAAC;uDAAwC;AACrD;IAArB,KAAK,CAAC,aAAa,CAAC;0CAA6B;AACzB;IAAxB,KAAK,CAAC,gBAAgB,CAAC;2CAA0B;AACtB;IAA3B,KAAK,CAAC,mBAAmB,CAAC;8CAAgC;AA1MhD,OAAO;IADnB,aAAa,CAAC,UAAU,CAAC;GACb,OAAO,CAogBnB","sourcesContent":["import { LitElement, html, css, PropertyValues, PropertyValueMap, nothing, TemplateResult } from 'lit'\nimport * as d3 from 'd3'\nimport { customElement, property, query, state } from 'lit/decorators.js'\nimport { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles'\nimport { i18next, localize } from '@operato/i18n'\nimport { ScrollbarStyles } from '@operato/styles'\n\nimport './ox-gantt-chart.js'\nimport './ox-resource-chart.js'\nimport './ox-gantt-resize-splitter.js'\nimport { OxGanttChart } from './ox-gantt-chart.js'\nimport { OxResourceChart } from './ox-resource-chart.js'\nimport { ColumnConfig, Task, TimeScale, Resource } from './types.js'\n\n@customElement('ox-gantt')\nexport class OxGantt extends localize(i18next)(LitElement) {\n static styles = [\n MDTypeScaleStyles,\n ScrollbarStyles,\n css`\n :host {\n display: block;\n font-family: Arial, sans-serif;\n text-wrap: nowrap;\n position: relative;\n }\n\n .container {\n flex: 1;\n\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n }\n\n .resource-container {\n height: 300px;\n\n display: flex;\n overflow: hidden;\n box-sizing: border-box;\n }\n\n .resource-table-container {\n padding: 0;\n overflow: auto;\n overflow-y: overlay;\n box-sizing: border-box;\n border: 1px solid var(--ox-gantt-border-color, var(--md-sys-color-outline));\n }\n\n .resource-chart-container {\n flex: 1;\n padding: 0;\n box-sizing: border-box;\n border: 1px solid var(--ox-gantt-border-color, var(--md-sys-color-outline));\n }\n\n .task-container {\n flex: 1;\n\n display: flex;\n overflow: hidden;\n box-sizing: border-box;\n }\n\n .task-table-container {\n padding: 0;\n overflow: auto;\n overflow-y: overlay;\n box-sizing: border-box;\n border: 1px solid var(--ox-gantt-border-color, var(--md-sys-color-outline));\n }\n\n .task-chart-container {\n flex: 1;\n padding: 0;\n box-sizing: border-box;\n border: 1px solid var(--ox-gantt-border-color, var(--md-sys-color-outline));\n }\n\n table {\n width: 100%;\n border-collapse: collapse;\n border: 1px solid var(--ox-gantt-border-color, var(--md-sys-color-outline));\n margin: -1px;\n margin-right: 0;\n }\n\n thead th {\n position: sticky;\n top: -1px;\n z-index: 1;\n color: var(--ox-gantt-header-color, var(--md-sys-color-on-secondary-container));\n background-color: var(--ox-gantt-header-background-color, var(--md-sys-color-secondary-container));\n border-color: var(--ox-gantt-header-border-color, var(--md-sys-color-outline));\n text-transform: capitalize;\n }\n\n th,\n td {\n border: 1px solid var(--ox-gantt-border-color, var(--md-sys-color-outline));\n padding: 4px;\n text-align: left;\n }\n\n th {\n height: 40px;\n box-sizing: border-box;\n text-align: center;\n }\n\n td {\n height: 30px;\n box-sizing: border-box;\n }\n\n tr.selected {\n color: var(--ox-gantt-selected-color, var(--md-sys-color-on-surface));\n background-color: var(--ox-gantt-selected-background-color, var(--md-sys-color-surface-variant));\n }\n\n .resource-table-container th {\n height: 30px;\n }\n\n svg.toggle-icon[collapsed] {\n transform: rotate(-90deg);\n }\n\n span[group] {\n cursor: pointer;\n user-select: none;\n }\n `\n ]\n\n @property({ type: Array }) tasks: Task[] = []\n @property({ type: Array }) resources: Resource[] = []\n @property({ type: String, attribute: 'from-date' })\n fromDate: string = new Date(new Date().getFullYear(), 0, 1).toISOString().split('T')[0] /* beginning of this year */\n @property({ type: String, attribute: 'to-date' })\n toDate: string = new Date(new Date().getFullYear(), 11, 31).toISOString().split('T')[0] /* end of this year */\n @property({ type: Boolean, attribute: 'extend-grid-lines' }) extendGridLines: boolean = false\n @property({ type: String, attribute: 'time-scale' }) timeScale: TimeScale = 'week-day'\n @property({ type: Object }) colorProvider: (task: Task) => string = (task: Task) => {\n const { tags = [] } = task\n if (tags.includes('critical')) {\n return 'red'\n } else if (tags.includes('milestone')) {\n return 'blue'\n } else if (tags.includes('done')) {\n return 'green'\n }\n return 'grey'\n }\n @property({ type: Object }) columnConfigProvider: () => ColumnConfig[] = function () {\n return [\n { name: 'id', label: i18next.t('label.gantt-task-id') || 'ID', visible: true, width: 50, order: 1 },\n { name: 'title', label: i18next.t('label.gantt-task-title') || 'title', visible: true, width: 150, order: 2 },\n { name: 'type', label: i18next.t('label.gantt-task-type') || 'type', visible: true, width: 100, order: 3 },\n {\n name: 'startDate',\n label: i18next.t('label.gantt-task-start-date') || 'start date',\n visible: true,\n width: 100,\n order: 4\n },\n {\n name: 'endDate',\n label: i18next.t('label.gantt-task-end-date') || 'end date',\n visible: true,\n width: 100,\n order: 5\n },\n {\n name: 'duration',\n label: i18next.t('label.gantt-task-duration') || 'duration',\n visible: true,\n width: 30,\n order: 6\n },\n { name: 'tags', label: i18next.t('label.gantt-task-tags') || 'tags', visible: true, width: 100, order: 7 },\n {\n name: 'progress',\n label: i18next.t('label.gantt-task-progress') || 'progress',\n visible: true,\n width: 100,\n order: 8\n },\n {\n name: 'dependsOn',\n label: i18next.t('label.gantt-task-previous') || 'previous',\n visible: true,\n width: 100,\n order: 9\n },\n {\n name: 'resources',\n label: i18next.t('label.gantt-task-resources') || 'resources',\n visible: true,\n width: 100,\n order: 10\n }\n ]\n }\n\n @state() selectedTaskId?: string\n\n @query('.task-container') taskContainer!: HTMLDivElement\n @query('.task-table-container') taskTableContainer!: HTMLDivElement\n @query('.resource-container') resourceContainer!: HTMLDivElement\n @query('.resource-table-container') resourceTableContainer!: HTMLDivElement\n @query('.task-table') taskTable!: HTMLTableElement\n @query('ox-gantt-chart') ganttChart!: OxGanttChart\n @query('ox-resource-chart') resourceChart!: OxResourceChart\n\n private _startWidth: number = 0\n private _startHeight: number = 0\n private _isDragging: boolean = false\n\n render() {\n return html`\n <div class=\"container md-typescale-body-medium\">\n <div class=\"task-container\">\n <div class=\"task-table-container\" @scroll=${this.syncScroll}>${this.renderTaskTable()}</div>\n <ox-gantt-resize-splitter\n vertical\n @splitter-dragstart=${(e: CustomEvent) => this.resizeHorizontalStart(e)}\n @splitter-drag=${(e: CustomEvent) => this.resizeHorizontalDrag(e)}\n @splitter-dragend=${(e: CustomEvent) => this.resizeHorizontalEnd(e)}\n ></ox-gantt-resize-splitter>\n <ox-gantt-chart\n class=\"task-chart-container\"\n @scroll=${this.syncScroll}\n .fromDate=${this.fromDate}\n .toDate=${this.toDate}\n .tasks=${this.tasks}\n .selectedTaskId=${this.selectedTaskId}\n .axisScale=${this.timeScale}\n .colorProvider=${this.colorProvider}\n ?extend-grid-lines=${this.extendGridLines}\n @task-clicked=${this.handleTaskClicked}\n @timescale-changed=${(e: CustomEvent) => this.syncTimeScale(e)}\n ></ox-gantt-chart>\n </div>\n <ox-gantt-resize-splitter\n horizontal\n @splitter-dragstart=${(e: CustomEvent) => this.resizeVerticalStart(e)}\n @splitter-drag=${(e: CustomEvent) => this.resizeVerticalDrag(e)}\n @splitter-dragend=${(e: CustomEvent) => this.resizeVerticalEnd(e)}\n ></ox-gantt-resize-splitter>\n <div class=\"resource-container\">\n <div class=\"resource-table-container\" @scroll=${this.syncScroll}>\n <table>\n <thead>\n <tr>\n <th style=\"width: 100px\">${i18next.t('label.gantt-resource-type')}</th>\n <th>${i18next.t('label.gantt-resource-allocated')}</th>\n </tr>\n </thead>\n <tbody>\n ${this.resources.map(resource => this.renderResourceRow(resource))}\n </tbody>\n </table>\n </div>\n <ox-gantt-resize-splitter\n vertical\n @splitter-dragstart=${(e: CustomEvent) => this.resizeHorizontalStart(e)}\n @splitter-drag=${(e: CustomEvent) => this.resizeHorizontalDrag(e)}\n @splitter-dragend=${(e: CustomEvent) => this.resizeHorizontalEnd(e)}\n ></ox-gantt-resize-splitter>\n <ox-resource-chart\n class=\"resource-chart-container\"\n .fromDate=${this.fromDate}\n .toDate=${this.toDate}\n .tasks=${this.tasks}\n .resources=${this.resources}\n .axisScale=${this.timeScale}\n @scroll=${this.syncScroll}\n ></ox-resource-chart>\n </div>\n </div>\n `\n }\n\n renderTaskTable() {\n const columnConfig = this.columnConfigProvider()\n if (!columnConfig) {\n return\n }\n\n // Sort columns by the configured order\n const sortedColumns = [...columnConfig].sort((a, b) => a.order - b.order)\n\n return html`\n <table class=\"task-table\">\n <thead>\n <tr>\n ${sortedColumns.map(col =>\n col.visible ? html`<th style=\"width: ${col.width}px\">${col.label}</th>` : nothing\n )}\n </tr>\n </thead>\n <tbody>\n ${this.renderTaskRows(this.tasks, 0, columnConfig)}\n </tbody>\n </table>\n `\n }\n\n renderTaskRows(tasks: Task[], level: number = 0, columnConfig: ColumnConfig[]): TemplateResult[] {\n return tasks.flatMap(task => {\n if (task.collapsed) {\n return [this.renderTaskRow(task, level, columnConfig)]\n } else {\n return [\n this.renderTaskRow(task, level, columnConfig),\n ...this.renderTaskRows(task.children || [], level + 1, columnConfig)\n ]\n }\n })\n }\n\n renderTaskRow(task: Task, level: number, columnConfig: ColumnConfig[]) {\n const isGroupTask = task.children && task.children.length > 0\n const isCollapsed = !!task.collapsed\n const paddingLeft = level * 16 + 4 // 트리 구조를 위한 패딩\n\n return html`\n <tr class=${this.selectedTaskId === task.id ? 'selected' : ''} @click=${() => this.selectTask(task.id)}>\n ${columnConfig.map(col =>\n col.visible\n ? html`\n <td class=\"task-row\" style=\"padding-left: ${col.name === 'title' ? paddingLeft : 4}px\">\n ${col.name === 'title'\n ? html`\n ${isGroupTask\n ? html`\n <span class=\"toggle-icon\" @click=${(e: Event) => this.toggleCollapse(e, task)} group>\n ${isGroupTask\n ? html`\n <svg\n class=\"toggle-icon\"\n width=\"10\"\n height=\"10\"\n viewBox=\"0 0 10 10\"\n xmlns=\"http://www.w3.org/2000/svg\"\n ?collapsed=${isCollapsed}\n >\n <polygon\n points=\"0,1 10,1 5,9\"\n fill=\"var(--md-sys-color-on-primary-container)\"\n opacity=\"0.5\"\n />\n </svg>\n `\n : nothing}\n </span>\n `\n : nothing}\n ${this.getTaskFieldValue(task, col.name)}\n `\n : this.getTaskFieldValue(task, col.name)}\n </td>\n `\n : nothing\n )}\n </tr>\n `\n }\n\n toggleCollapse(e: Event, task: Task) {\n e.stopPropagation() // 클릭 이벤트 전파 방지\n\n task.collapsed = !task.collapsed\n this.requestUpdate()\n\n this.ganttChart.tasks = [...this.tasks]\n }\n\n renderResourceRow(resource: Resource) {\n return html`\n <tr>\n <td>${resource.type}</td>\n <td>${resource.allocated}</td>\n </tr>\n `\n }\n\n getTaskFieldValue(task: Task, field: string) {\n switch (field) {\n case 'id':\n return task.id\n case 'title':\n return task.title\n case 'type':\n return task.type\n case 'startDate':\n return new Date(task.startDate).toISOString().split('T')[0]\n case 'endDate':\n return new Date(task.endDate).toISOString().split('T')[0]\n case 'duration':\n return task.duration || 0\n case 'tags':\n return task.tags?.join(', ') || ''\n case 'progress':\n return task.progress || ''\n case 'dependsOn':\n return task.dependsOn || ''\n case 'resources':\n return task.resources?.map(res => `${res.type}: ${res.allocated}`).join(', ') || ''\n default:\n return ''\n }\n }\n\n selectTask(taskId: string) {\n this.selectedTaskId = taskId\n }\n\n handleTaskClicked(event: CustomEvent) {\n this.selectedTaskId = event.detail.taskId\n }\n\n protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void {\n this.taskTableContainer.style.width = '254px'\n this.resourceTableContainer.style.width = '254px'\n }\n\n updated(changedProperties: PropertyValues<this>) {\n if (changedProperties.has('tasks')) {\n this.resources = this.aggregateResources(this.tasks)\n }\n }\n\n aggregateResources(tasks: Task[]): Resource[] {\n const resourceMap: { [key: string]: number } = {}\n\n const traverseTasks = (tasks: Task[]) => {\n tasks.forEach(task => {\n if (task.resources) {\n const startDate = new Date(task.startDate)\n const endDate = new Date(task.endDate)\n const durationDays = d3.timeDay.count(startDate, d3.timeDay.offset(endDate, 1))\n\n task.resources.forEach(resource => {\n const totalAllocation = resource.allocated * durationDays\n if (!resourceMap[resource.type]) {\n resourceMap[resource.type] = 0\n }\n resourceMap[resource.type] += totalAllocation\n })\n }\n\n if (task.children) {\n traverseTasks(task.children)\n }\n })\n }\n\n traverseTasks(tasks)\n\n return Object.keys(resourceMap).map(type => ({\n type,\n allocated: resourceMap[type]\n }))\n }\n\n syncScroll(e: Event) {\n const target = e.target as HTMLElement\n\n if (target === this.taskTableContainer) {\n const newScrollTop = this.taskTableContainer.scrollTop\n this.ganttChart.setVerticalOffset(newScrollTop)\n } else if (target === this.ganttChart) {\n const newScrollTop = this.ganttChart.getVerticalOffset()\n this.taskTableContainer.scrollTop = newScrollTop\n\n const newScrollLeft = this.ganttChart.getHorizontalOffset()\n this.resourceChart.setHorizontalOffset(newScrollLeft)\n } else if (target === this.resourceChart) {\n const newScrollTop = this.resourceChart.getVerticalOffset()\n this.resourceTableContainer.scrollTop = newScrollTop\n\n const newScrollLeft = this.resourceChart.getHorizontalOffset()\n this.ganttChart.setHorizontalOffset(newScrollLeft)\n } else if (target === this.resourceTableContainer) {\n const newScrollTop = this.resourceTableContainer.scrollTop\n this.resourceChart.setVerticalOffset(newScrollTop)\n }\n }\n\n syncTimeScale(e: CustomEvent) {\n const detail = e.detail\n this.resourceChart.syncTimeScale(detail)\n }\n\n resizeHorizontalStart(e: CustomEvent) {\n this._startWidth = ((e.target as HTMLElement)?.previousElementSibling as HTMLElement)?.offsetWidth\n this._isDragging = true\n }\n\n resizeHorizontalDrag(e: CustomEvent) {\n if (!this._isDragging) return\n const delta = e.detail\n this.taskTableContainer.style.width = `${this._startWidth + delta.x}px`\n this.resourceTableContainer.style.width = `${this._startWidth + delta.x}px`\n }\n\n resizeHorizontalEnd(e: CustomEvent) {\n this._isDragging = false\n }\n\n resizeVerticalStart(e: CustomEvent) {\n this._startHeight = ((e.target as HTMLElement)?.nextElementSibling as HTMLElement)?.offsetHeight\n this._isDragging = true\n }\n\n resizeVerticalDrag(e: CustomEvent) {\n if (!this._isDragging) return\n const delta = e.detail\n\n this.resourceContainer.style.height = `${this._startHeight - delta.y}px`\n }\n\n resizeVerticalEnd(e: CustomEvent) {\n this._isDragging = false\n }\n}\n"]}
|
package/dist/src/types.d.ts
CHANGED
|
@@ -1,23 +1,18 @@
|
|
|
1
1
|
export type TaskTag = 'done' | 'active' | 'critical' | 'milestone';
|
|
2
|
-
export type TaskType = 'task' | 'milestone' | 'phase';
|
|
2
|
+
export type TaskType = 'group' | 'task' | 'milestone' | 'phase';
|
|
3
3
|
export interface Task {
|
|
4
4
|
id: string;
|
|
5
5
|
title: string;
|
|
6
6
|
type: TaskType;
|
|
7
|
-
section?: Section;
|
|
8
7
|
startDate: Date | string;
|
|
9
8
|
endDate: Date | string;
|
|
10
9
|
progress?: number;
|
|
11
10
|
dependsOn?: string;
|
|
12
|
-
|
|
11
|
+
duration: number;
|
|
13
12
|
tags?: TaskTag[];
|
|
14
13
|
children?: Task[];
|
|
15
14
|
resources?: Resource[];
|
|
16
15
|
collapsed?: boolean;
|
|
17
|
-
parentTask?: Task;
|
|
18
|
-
}
|
|
19
|
-
export interface Section {
|
|
20
|
-
name: string;
|
|
21
16
|
}
|
|
22
17
|
export interface ColumnConfig {
|
|
23
18
|
name: string;
|
package/dist/src/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"","sourcesContent":["export type TaskTag = 'done' | 'active' | 'critical' | 'milestone'\nexport type TaskType = 'task' | 'milestone' | 'phase'\n\nexport interface Task {\n id: string\n title: string\n type: TaskType\n
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"","sourcesContent":["export type TaskTag = 'done' | 'active' | 'critical' | 'milestone'\nexport type TaskType = 'group' | 'task' | 'milestone' | 'phase'\n\nexport interface Task {\n id: string\n title: string\n type: TaskType\n startDate: Date | string\n endDate: Date | string\n progress?: number\n dependsOn?: string\n duration: number\n tags?: TaskTag[]\n children?: Task[]\n resources?: Resource[]\n collapsed?: boolean\n}\n\nexport interface ColumnConfig {\n name: string\n label: string\n visible: boolean\n width: number\n order: number\n}\n\nexport type TimeScale = 'year-quarter' | 'year-month' | 'quarter-week' | 'week-day'\n\nexport interface Resource {\n type: string\n allocated: number\n}\n"]}
|
|
@@ -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',
|
|
@@ -99,7 +90,7 @@ Regular.args = {
|
|
|
99
90
|
endDate: '2023-01-05',
|
|
100
91
|
progress: 60,
|
|
101
92
|
dependsOn: '',
|
|
102
|
-
|
|
93
|
+
duration: 5,
|
|
103
94
|
tags: ['active'],
|
|
104
95
|
resources: [{ type: '철근/형틀공', allocated: 6 }],
|
|
105
96
|
children: []
|
|
@@ -112,7 +103,7 @@ Regular.args = {
|
|
|
112
103
|
endDate: '2023-01-06',
|
|
113
104
|
progress: 30,
|
|
114
105
|
dependsOn: '1',
|
|
115
|
-
|
|
106
|
+
duration: 1,
|
|
116
107
|
tags: ['milestone'],
|
|
117
108
|
resources: [{ type: '철근/형틀공', allocated: 6 }],
|
|
118
109
|
children: []
|
|
@@ -125,7 +116,7 @@ Regular.args = {
|
|
|
125
116
|
endDate: '2023-01-15',
|
|
126
117
|
progress: 10,
|
|
127
118
|
dependsOn: '2',
|
|
128
|
-
|
|
119
|
+
duration: 9,
|
|
129
120
|
tags: ['critical'],
|
|
130
121
|
children: [
|
|
131
122
|
{
|
|
@@ -136,7 +127,7 @@ Regular.args = {
|
|
|
136
127
|
endDate: '2023-01-10',
|
|
137
128
|
progress: 60,
|
|
138
129
|
dependsOn: '',
|
|
139
|
-
|
|
130
|
+
duration: 4,
|
|
140
131
|
tags: ['done'],
|
|
141
132
|
children: [
|
|
142
133
|
{
|
|
@@ -147,7 +138,7 @@ Regular.args = {
|
|
|
147
138
|
endDate: '2023-01-10',
|
|
148
139
|
progress: 60,
|
|
149
140
|
dependsOn: '',
|
|
150
|
-
|
|
141
|
+
duration: 4,
|
|
151
142
|
tags: ['active'],
|
|
152
143
|
resources: [{ type: '창호공', allocated: 5 }],
|
|
153
144
|
children: []
|
|
@@ -159,7 +150,7 @@ Regular.args = {
|
|
|
159
150
|
startDate: '2023-01-11',
|
|
160
151
|
endDate: '2023-01-15',
|
|
161
152
|
dependsOn: '3-1-1',
|
|
162
|
-
|
|
153
|
+
duration: 5,
|
|
163
154
|
tags: ['active'],
|
|
164
155
|
resources: [{ type: '창호공', allocated: 3 }],
|
|
165
156
|
children: []
|
|
@@ -173,7 +164,7 @@ Regular.args = {
|
|
|
173
164
|
startDate: '2023-01-11',
|
|
174
165
|
endDate: '2023-01-15',
|
|
175
166
|
dependsOn: '3-1',
|
|
176
|
-
|
|
167
|
+
duration: 5,
|
|
177
168
|
tags: ['active'],
|
|
178
169
|
resources: [{ type: '창호공', allocated: 6 }],
|
|
179
170
|
children: []
|
|
@@ -188,7 +179,7 @@ Regular.args = {
|
|
|
188
179
|
endDate: '2023-01-10',
|
|
189
180
|
progress: 100,
|
|
190
181
|
dependsOn: '1',
|
|
191
|
-
|
|
182
|
+
duration: 1,
|
|
192
183
|
tags: ['done'],
|
|
193
184
|
resources: [{ type: '방수공', allocated: 5 }],
|
|
194
185
|
children: []
|
|
@@ -200,7 +191,7 @@ Regular.args = {
|
|
|
200
191
|
startDate: '2023-01-15',
|
|
201
192
|
endDate: '2023-01-21',
|
|
202
193
|
dependsOn: '4',
|
|
203
|
-
|
|
194
|
+
duration: 1,
|
|
204
195
|
tags: ['milestone'],
|
|
205
196
|
resources: [{ type: '목공', allocated: 3 }],
|
|
206
197
|
children: []
|
|
@@ -212,7 +203,7 @@ Regular.args = {
|
|
|
212
203
|
startDate: '2023-01-11',
|
|
213
204
|
endDate: '2023-01-15',
|
|
214
205
|
dependsOn: '5',
|
|
215
|
-
|
|
206
|
+
duration: 1,
|
|
216
207
|
tags: ['milestone'],
|
|
217
208
|
resources: [{ type: '금속공', allocated: 1 }],
|
|
218
209
|
children: []
|
|
@@ -224,7 +215,7 @@ Regular.args = {
|
|
|
224
215
|
startDate: '2023-01-12',
|
|
225
216
|
endDate: '2023-01-15',
|
|
226
217
|
dependsOn: '6',
|
|
227
|
-
|
|
218
|
+
duration: 1,
|
|
228
219
|
tags: ['milestone'],
|
|
229
220
|
resources: [{ type: '타일공', allocated: 6 }],
|
|
230
221
|
children: []
|
|
@@ -236,7 +227,7 @@ Regular.args = {
|
|
|
236
227
|
startDate: '2023-01-15',
|
|
237
228
|
endDate: '2023-01-17',
|
|
238
229
|
dependsOn: '7',
|
|
239
|
-
|
|
230
|
+
duration: 1,
|
|
240
231
|
tags: ['critical'],
|
|
241
232
|
resources: [{ type: '창호공', allocated: 7 }],
|
|
242
233
|
children: []
|
|
@@ -248,7 +239,7 @@ Regular.args = {
|
|
|
248
239
|
startDate: '2023-01-15',
|
|
249
240
|
endDate: '2023-01-18',
|
|
250
241
|
dependsOn: '8',
|
|
251
|
-
|
|
242
|
+
duration: 1,
|
|
252
243
|
tags: ['active'],
|
|
253
244
|
resources: [{ type: '도배공', allocated: 8 }],
|
|
254
245
|
children: []
|
|
@@ -261,7 +252,7 @@ Regular.args = {
|
|
|
261
252
|
startDate: '2023-01-18',
|
|
262
253
|
endDate: '2023-01-19',
|
|
263
254
|
dependsOn: '9',
|
|
264
|
-
|
|
255
|
+
duration: 1,
|
|
265
256
|
tags: ['critical'],
|
|
266
257
|
resources: [{ type: '조적공', allocated: 6 }],
|
|
267
258
|
children: []
|
|
@@ -273,7 +264,7 @@ Regular.args = {
|
|
|
273
264
|
startDate: '2023-01-18',
|
|
274
265
|
endDate: '2023-01-22',
|
|
275
266
|
dependsOn: '9',
|
|
276
|
-
|
|
267
|
+
duration: 1,
|
|
277
268
|
tags: ['milestone'],
|
|
278
269
|
resources: [{ type: '철근/형틀공', allocated: 6 }],
|
|
279
270
|
children: []
|
|
@@ -285,7 +276,7 @@ Regular.args = {
|
|
|
285
276
|
startDate: '2023-01-18',
|
|
286
277
|
endDate: '2023-01-23',
|
|
287
278
|
dependsOn: '9',
|
|
288
|
-
|
|
279
|
+
duration: 1,
|
|
289
280
|
resources: [{ type: '방수공', allocated: 6 }],
|
|
290
281
|
tags: ['milestone'],
|
|
291
282
|
children: [
|
|
@@ -297,7 +288,7 @@ Regular.args = {
|
|
|
297
288
|
endDate: '2023-01-10',
|
|
298
289
|
progress: 60,
|
|
299
290
|
dependsOn: '',
|
|
300
|
-
|
|
291
|
+
duration: 4,
|
|
301
292
|
tags: ['done'],
|
|
302
293
|
resources: [{ type: '방수공', allocated: 6 }],
|
|
303
294
|
children: []
|
|
@@ -309,7 +300,7 @@ Regular.args = {
|
|
|
309
300
|
startDate: '2023-01-11',
|
|
310
301
|
endDate: '2023-01-15',
|
|
311
302
|
dependsOn: '12-1',
|
|
312
|
-
|
|
303
|
+
duration: 5,
|
|
313
304
|
tags: ['active'],
|
|
314
305
|
resources: [{ type: '조적공', allocated: 6 }],
|
|
315
306
|
children: []
|
|
@@ -323,7 +314,7 @@ Regular.args = {
|
|
|
323
314
|
startDate: '2023-01-22',
|
|
324
315
|
endDate: '2023-01-27',
|
|
325
316
|
dependsOn: '12',
|
|
326
|
-
|
|
317
|
+
duration: 1,
|
|
327
318
|
tags: ['done'],
|
|
328
319
|
children: []
|
|
329
320
|
},
|
|
@@ -334,7 +325,7 @@ Regular.args = {
|
|
|
334
325
|
startDate: '2023-01-27',
|
|
335
326
|
endDate: '2023-01-30',
|
|
336
327
|
dependsOn: '13',
|
|
337
|
-
|
|
328
|
+
duration: 1,
|
|
338
329
|
tags: ['milestone'],
|
|
339
330
|
resources: [{ type: '금속공', allocated: 1 }],
|
|
340
331
|
children: []
|
|
@@ -346,7 +337,7 @@ Regular.args = {
|
|
|
346
337
|
startDate: '2023-01-30',
|
|
347
338
|
endDate: '2023-01-31',
|
|
348
339
|
dependsOn: '14',
|
|
349
|
-
|
|
340
|
+
duration: 1,
|
|
350
341
|
tags: ['milestone'],
|
|
351
342
|
children: []
|
|
352
343
|
},
|
|
@@ -357,7 +348,7 @@ Regular.args = {
|
|
|
357
348
|
startDate: '2023-01-31',
|
|
358
349
|
endDate: '2023-02-05',
|
|
359
350
|
dependsOn: '15',
|
|
360
|
-
|
|
351
|
+
duration: 1,
|
|
361
352
|
resources: [{ type: '창호공', allocated: 1 }],
|
|
362
353
|
tags: ['active'],
|
|
363
354
|
children: []
|
|
@@ -369,7 +360,7 @@ Regular.args = {
|
|
|
369
360
|
startDate: '2023-02-06',
|
|
370
361
|
endDate: '2023-02-07',
|
|
371
362
|
dependsOn: '16',
|
|
372
|
-
|
|
363
|
+
duration: 1,
|
|
373
364
|
tags: ['milestone'],
|
|
374
365
|
children: []
|
|
375
366
|
},
|
|
@@ -380,7 +371,7 @@ Regular.args = {
|
|
|
380
371
|
startDate: '2023-02-08',
|
|
381
372
|
endDate: '2023-02-09',
|
|
382
373
|
dependsOn: '17',
|
|
383
|
-
|
|
374
|
+
duration: 1,
|
|
384
375
|
tags: ['critical'],
|
|
385
376
|
children: []
|
|
386
377
|
},
|
|
@@ -391,7 +382,7 @@ Regular.args = {
|
|
|
391
382
|
startDate: '2023-02-10',
|
|
392
383
|
endDate: '2023-02-25',
|
|
393
384
|
dependsOn: '18',
|
|
394
|
-
|
|
385
|
+
duration: 1,
|
|
395
386
|
tags: ['milestone'],
|
|
396
387
|
resources: [{ type: '창호공', allocated: 7 }],
|
|
397
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,OAAO;;;;;;;;;;;;;;;;;;;;;;;;gBAwBhB,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,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t.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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 startDate: '2023-02-10',\n endDate: '2023-02-25',\n dependsOn: '18',\n length: '1d',\n tags: ['milestone'],\n resources: [{ type: '창호공', allocated: 7 }],\n children: []\n }\n ]\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ox-gantt.stories.js","sourceRoot":"","sources":["../../stories/ox-gantt.stories.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAA;AAE3B,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAC1C,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,8CAA8C,CAAA;AAC1F,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAIpD,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,SAA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AE;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"]}
|