@dssp/project 0.0.2 → 0.0.5
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/client/pages/checklist/checklist-importer.ts +6 -8
- package/client/pages/checklist/checklist-list-page.ts +10 -25
- package/client/pages/project/popup/popup-plan-upload.ts +138 -0
- package/client/pages/project/{project-create-popup.ts → popup/popup-project-create.ts} +2 -3
- package/client/pages/project/project-detail.ts +8 -7
- package/client/pages/project/project-list.ts +17 -10
- package/client/pages/project/project-plan-management.ts +117 -39
- package/client/pages/project/project-schedule-list.ts +2 -0
- package/client/pages/project/project-schedule.ts +296 -7
- package/client/pages/project/project-setting-list.ts +10 -6
- package/client/pages/project/project-update.ts +5 -2
- package/client/pages/resource/construction-type-management.ts +192 -0
- package/client/pages/resource/manager-management.ts +181 -0
- package/client/pages/resource/worker-type-management.ts +194 -0
- package/client/pages/task/task-importer.ts +6 -8
- package/client/pages/task/task-list-page.ts +10 -25
- package/client/route.ts +8 -4
- package/dist-client/pages/checklist/checklist-importer.d.ts +1 -0
- package/dist-client/pages/checklist/checklist-importer.js +3 -2
- package/dist-client/pages/checklist/checklist-importer.js.map +1 -1
- package/dist-client/pages/checklist/checklist-list-page.d.ts +1 -0
- package/dist-client/pages/checklist/checklist-list-page.js +8 -16
- package/dist-client/pages/checklist/checklist-list-page.js.map +1 -1
- package/dist-client/pages/project/popup/popup-plan-upload.d.ts +10 -0
- package/dist-client/pages/project/popup/popup-plan-upload.js +139 -0
- package/dist-client/pages/project/popup/popup-plan-upload.js.map +1 -0
- package/dist-client/pages/project/{project-create-popup.d.ts → popup/popup-project-create.d.ts} +1 -3
- package/dist-client/pages/project/{project-create-popup.js → popup/popup-project-create.js} +9 -10
- package/dist-client/pages/project/popup/popup-project-create.js.map +1 -0
- package/dist-client/pages/project/project-detail.d.ts +5 -4
- package/dist-client/pages/project/project-detail.js +7 -6
- package/dist-client/pages/project/project-detail.js.map +1 -1
- package/dist-client/pages/project/project-list.d.ts +12 -2
- package/dist-client/pages/project/project-list.js +11 -14
- package/dist-client/pages/project/project-list.js.map +1 -1
- package/dist-client/pages/project/project-plan-management.d.ts +9 -4
- package/dist-client/pages/project/project-plan-management.js +105 -35
- package/dist-client/pages/project/project-plan-management.js.map +1 -1
- package/dist-client/pages/project/project-schedule-list.d.ts +1 -0
- package/dist-client/pages/project/project-schedule-list.js +1 -0
- package/dist-client/pages/project/project-schedule-list.js.map +1 -1
- package/dist-client/pages/project/project-schedule.d.ts +10 -3
- package/dist-client/pages/project/project-schedule.js +294 -7
- package/dist-client/pages/project/project-schedule.js.map +1 -1
- package/dist-client/pages/project/project-setting-list.d.ts +3 -2
- package/dist-client/pages/project/project-setting-list.js +9 -6
- package/dist-client/pages/project/project-setting-list.js.map +1 -1
- package/dist-client/pages/project/project-update.d.ts +3 -2
- package/dist-client/pages/project/project-update.js +4 -2
- package/dist-client/pages/project/project-update.js.map +1 -1
- package/dist-client/pages/resource/construction-type-management.d.ts +27 -0
- package/dist-client/pages/resource/construction-type-management.js +189 -0
- package/dist-client/pages/resource/construction-type-management.js.map +1 -0
- package/dist-client/pages/resource/manager-management.d.ts +31 -0
- package/dist-client/pages/resource/manager-management.js +175 -0
- package/dist-client/pages/resource/manager-management.js.map +1 -0
- package/dist-client/pages/resource/worker-type-management.d.ts +27 -0
- package/dist-client/pages/resource/worker-type-management.js +191 -0
- package/dist-client/pages/resource/worker-type-management.js.map +1 -0
- package/dist-client/pages/task/task-importer.d.ts +1 -0
- package/dist-client/pages/task/task-importer.js +3 -2
- package/dist-client/pages/task/task-importer.js.map +1 -1
- package/dist-client/pages/task/task-list-page.d.ts +1 -0
- package/dist-client/pages/task/task-list-page.js +8 -16
- package/dist-client/pages/task/task-list-page.js.map +1 -1
- package/dist-client/route.d.ts +1 -1
- package/dist-client/route.js +7 -4
- package/dist-client/route.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/controllers/index.d.ts +0 -0
- package/dist-server/controllers/project-to-excel.d.ts +7 -0
- package/dist-server/index.d.ts +2 -0
- package/dist-server/middlewares/index.d.ts +1 -0
- package/dist-server/routes.d.ts +1 -0
- package/dist-server/service/check-item/check-item-mutation.d.ts +10 -0
- package/dist-server/service/check-item/check-item-query.d.ts +11 -0
- package/dist-server/service/check-item/check-item-type.d.ts +18 -0
- package/dist-server/service/check-item/check-item.d.ts +18 -0
- package/dist-server/service/check-item/index.d.ts +5 -0
- package/dist-server/service/checklist/checklist-mutation.d.ts +10 -0
- package/dist-server/service/checklist/checklist-query.d.ts +11 -0
- package/dist-server/service/checklist/checklist-type.d.ts +18 -0
- package/dist-server/service/checklist/checklist.d.ts +26 -0
- package/dist-server/service/checklist/index.d.ts +5 -0
- package/dist-server/service/construction-type/construction-type-mutation.d.ts +6 -0
- package/dist-server/service/construction-type/construction-type-mutation.js +64 -0
- package/dist-server/service/construction-type/construction-type-mutation.js.map +1 -0
- package/dist-server/service/construction-type/construction-type-query.d.ts +11 -0
- package/dist-server/service/construction-type/construction-type-query.js +78 -0
- package/dist-server/service/construction-type/construction-type-query.js.map +1 -0
- package/dist-server/service/construction-type/construction-type-type.d.ts +11 -0
- package/dist-server/service/construction-type/construction-type-type.js +43 -0
- package/dist-server/service/construction-type/construction-type-type.js.map +1 -0
- package/dist-server/service/construction-type/construction-type.d.ts +16 -0
- package/dist-server/service/construction-type/construction-type.js +77 -0
- package/dist-server/service/construction-type/construction-type.js.map +1 -0
- package/dist-server/service/construction-type/index.d.ts +5 -0
- package/dist-server/service/construction-type/index.js +9 -0
- package/dist-server/service/construction-type/index.js.map +1 -0
- package/dist-server/service/index.d.ts +12 -0
- package/dist-server/service/index.js +12 -4
- package/dist-server/service/index.js.map +1 -1
- package/dist-server/service/manager/index.d.ts +5 -0
- package/dist-server/service/manager/index.js +9 -0
- package/dist-server/service/manager/index.js.map +1 -0
- package/dist-server/service/manager/manager-mutation.d.ts +5 -0
- package/dist-server/service/manager/manager-mutation.js +39 -0
- package/dist-server/service/manager/manager-mutation.js.map +1 -0
- package/dist-server/service/manager/manager-query.d.ts +4 -0
- package/dist-server/service/manager/manager-query.js +39 -0
- package/dist-server/service/manager/manager-query.js.map +1 -0
- package/dist-server/service/manager/manager-type.d.ts +15 -0
- package/dist-server/service/manager/manager-type.js +62 -0
- package/dist-server/service/manager/manager-type.js.map +1 -0
- package/dist-server/service/manager/manager.d.ts +8 -0
- package/dist-server/service/manager/manager.js +41 -0
- package/dist-server/service/manager/manager.js.map +1 -0
- package/dist-server/service/project/index.d.ts +7 -0
- package/dist-server/service/project/project-mutation.d.ts +9 -0
- package/dist-server/service/project/project-mutation.js +61 -55
- package/dist-server/service/project/project-mutation.js.map +1 -1
- package/dist-server/service/project/project-query.d.ts +16 -0
- package/dist-server/service/project/project-query.js +3 -3
- package/dist-server/service/project/project-query.js.map +1 -1
- package/dist-server/service/project/project-type.d.ts +29 -0
- package/dist-server/service/project/project-type.js +1 -2
- package/dist-server/service/project/project-type.js.map +1 -1
- package/dist-server/service/project/project.d.ts +35 -0
- package/dist-server/service/project/project.js +1 -2
- package/dist-server/service/project/project.js.map +1 -1
- package/dist-server/service/task/index.d.ts +5 -0
- package/dist-server/service/task/task-mutation.d.ts +10 -0
- package/dist-server/service/task/task-query.d.ts +11 -0
- package/dist-server/service/task/task-type.d.ts +18 -0
- package/dist-server/service/task/task.d.ts +25 -0
- package/dist-server/service/worker-type/index.d.ts +5 -0
- package/dist-server/service/worker-type/index.js +9 -0
- package/dist-server/service/worker-type/index.js.map +1 -0
- package/dist-server/service/worker-type/worker-type-mutation.d.ts +6 -0
- package/dist-server/service/worker-type/worker-type-mutation.js +64 -0
- package/dist-server/service/worker-type/worker-type-mutation.js.map +1 -0
- package/dist-server/service/worker-type/worker-type-query.d.ts +11 -0
- package/dist-server/service/{resource/resource-query.js → worker-type/worker-type-query.js} +31 -39
- package/dist-server/service/worker-type/worker-type-query.js.map +1 -0
- package/dist-server/service/worker-type/worker-type-type.d.ts +11 -0
- package/dist-server/service/worker-type/worker-type-type.js +43 -0
- package/dist-server/service/worker-type/worker-type-type.js.map +1 -0
- package/dist-server/service/worker-type/worker-type.d.ts +16 -0
- package/dist-server/service/{resource/resource.js → worker-type/worker-type.js} +35 -20
- package/dist-server/service/worker-type/worker-type.js.map +1 -0
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/server/service/construction-type/construction-type-mutation.ts +66 -0
- package/server/service/construction-type/construction-type-query.ts +47 -0
- package/server/service/construction-type/construction-type-type.ts +26 -0
- package/server/service/{resource/resource.ts → construction-type/construction-type.ts} +18 -6
- package/server/service/construction-type/index.ts +6 -0
- package/server/service/index.ts +12 -4
- package/server/service/manager/index.ts +6 -0
- package/server/service/manager/manager-mutation.ts +42 -0
- package/server/service/manager/manager-query.ts +28 -0
- package/server/service/manager/manager-type.ts +40 -0
- package/server/service/manager/manager.ts +29 -0
- package/server/service/project/project-mutation.ts +101 -79
- package/server/service/project/project-query.ts +4 -4
- package/server/service/worker-type/index.ts +6 -0
- package/server/service/worker-type/worker-type-mutation.ts +66 -0
- package/server/service/worker-type/worker-type-query.ts +47 -0
- package/server/service/worker-type/worker-type-type.ts +26 -0
- package/server/service/worker-type/worker-type.ts +68 -0
- package/things-factory.config.js +3 -0
- package/client/pages/project/ox-progress-circle.ts +0 -133
- package/client/pages/resource/resource-importer.ts +0 -96
- package/client/pages/resource/resource-list-page.ts +0 -355
- package/dist-client/pages/project/ox-progress-circle.d.ts +0 -41
- package/dist-client/pages/project/ox-progress-circle.js +0 -182
- package/dist-client/pages/project/ox-progress-circle.js.map +0 -1
- package/dist-client/pages/project/project-create-popup.js.map +0 -1
- package/dist-client/pages/resource/resource-importer.d.ts +0 -9
- package/dist-client/pages/resource/resource-importer.js +0 -100
- package/dist-client/pages/resource/resource-importer.js.map +0 -1
- package/dist-client/pages/resource/resource-list-page.d.ts +0 -62
- package/dist-client/pages/resource/resource-list-page.js +0 -331
- package/dist-client/pages/resource/resource-list-page.js.map +0 -1
- package/dist-server/service/resource/index.js +0 -9
- package/dist-server/service/resource/index.js.map +0 -1
- package/dist-server/service/resource/resource-mutation.js +0 -129
- package/dist-server/service/resource/resource-mutation.js.map +0 -1
- package/dist-server/service/resource/resource-query.js.map +0 -1
- package/dist-server/service/resource/resource-type.js +0 -69
- package/dist-server/service/resource/resource-type.js.map +0 -1
- package/dist-server/service/resource/resource.js.map +0 -1
- package/server/service/resource/index.ts +0 -6
- package/server/service/resource/resource-mutation.ts +0 -139
- package/server/service/resource/resource-query.ts +0 -56
- package/server/service/resource/resource-type.ts +0 -49
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import '@material/web/icon/icon.js'
|
|
2
|
+
import '@material/web/button/elevated-button.js'
|
|
3
|
+
import '@material/web/textfield/outlined-text-field.js'
|
|
4
|
+
import '@material/web/button/filled-button.js'
|
|
5
|
+
import '@material/web/button/outlined-button.js'
|
|
6
|
+
|
|
1
7
|
import { PageView } from '@operato/shell'
|
|
2
8
|
import { PageLifecycle } from '@operato/shell/dist/src/app/pages/page-view'
|
|
3
9
|
import { css, html } from 'lit'
|
|
@@ -8,10 +14,7 @@ import { notify } from '@operato/layout'
|
|
|
8
14
|
|
|
9
15
|
import gql from 'graphql-tag'
|
|
10
16
|
import { Building, Project } from './project-list'
|
|
11
|
-
import '@
|
|
12
|
-
import '@material/web/textfield/outlined-text-field.js'
|
|
13
|
-
import '@material/web/button/filled-button.js'
|
|
14
|
-
import '@material/web/button/outlined-button.js'
|
|
17
|
+
import '@operato/gantt/ox-gantt.js'
|
|
15
18
|
|
|
16
19
|
@customElement('project-schedule')
|
|
17
20
|
export class ProjectSchedule extends ScopedElementsMixin(PageView) {
|
|
@@ -93,6 +96,15 @@ export class ProjectSchedule extends ScopedElementsMixin(PageView) {
|
|
|
93
96
|
div[chart] {
|
|
94
97
|
flex: 0.7;
|
|
95
98
|
background: #03a9f44d;
|
|
99
|
+
|
|
100
|
+
ox-gantt {
|
|
101
|
+
max-width: 91vw;
|
|
102
|
+
aspect-ratio: 3 / 1;
|
|
103
|
+
box-sizing: border-box;
|
|
104
|
+
|
|
105
|
+
background-color: var(--md-sys-color-primary-container);
|
|
106
|
+
color: var(--md-sys-color-on-primary-container);
|
|
107
|
+
}
|
|
96
108
|
}
|
|
97
109
|
|
|
98
110
|
div[table] {
|
|
@@ -154,6 +166,271 @@ export class ProjectSchedule extends ScopedElementsMixin(PageView) {
|
|
|
154
166
|
@state() project: Project = { ...this.defaultProject }
|
|
155
167
|
@state() selectedBuildingIdx: number = 0
|
|
156
168
|
|
|
169
|
+
private fromDate = '2022-12-27'
|
|
170
|
+
private toDate = '2024-12-31'
|
|
171
|
+
private timeScale = 'week-day'
|
|
172
|
+
private extendGridLines = false
|
|
173
|
+
private tasks = [
|
|
174
|
+
{
|
|
175
|
+
id: '1',
|
|
176
|
+
title: 'Design',
|
|
177
|
+
type: 'task',
|
|
178
|
+
// section: developmentSection,
|
|
179
|
+
startDate: '2023-01-01',
|
|
180
|
+
endDate: '2023-01-05',
|
|
181
|
+
progress: 60,
|
|
182
|
+
dependsOn: '',
|
|
183
|
+
length: '5d',
|
|
184
|
+
tags: ['active'],
|
|
185
|
+
children: []
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
id: '2',
|
|
189
|
+
title: 'Development',
|
|
190
|
+
type: 'milestone',
|
|
191
|
+
// section: developmentSection,
|
|
192
|
+
startDate: '2023-01-06',
|
|
193
|
+
endDate: '2023-01-06',
|
|
194
|
+
progress: 30,
|
|
195
|
+
dependsOn: '1',
|
|
196
|
+
length: '1d',
|
|
197
|
+
tags: ['milestone'],
|
|
198
|
+
children: []
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
id: '3',
|
|
202
|
+
title: 'Coding',
|
|
203
|
+
type: 'phase',
|
|
204
|
+
// section: developmentSection,
|
|
205
|
+
startDate: '2023-01-07',
|
|
206
|
+
endDate: '2023-01-15',
|
|
207
|
+
progress: 10,
|
|
208
|
+
dependsOn: '2',
|
|
209
|
+
length: '9d',
|
|
210
|
+
tags: ['critical'],
|
|
211
|
+
children: [
|
|
212
|
+
{
|
|
213
|
+
id: '3-1',
|
|
214
|
+
title: 'Coding-A',
|
|
215
|
+
type: 'task',
|
|
216
|
+
// section: developmentSection,
|
|
217
|
+
startDate: '2023-01-07',
|
|
218
|
+
endDate: '2023-01-10',
|
|
219
|
+
progress: 60,
|
|
220
|
+
dependsOn: '',
|
|
221
|
+
length: '4d',
|
|
222
|
+
tags: ['done'],
|
|
223
|
+
children: []
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
id: '3-2',
|
|
227
|
+
title: 'Coding-B',
|
|
228
|
+
type: 'task',
|
|
229
|
+
// section: developmentSection,
|
|
230
|
+
startDate: '2023-01-11',
|
|
231
|
+
endDate: '2023-01-15',
|
|
232
|
+
dependsOn: '3-1',
|
|
233
|
+
length: '5d',
|
|
234
|
+
tags: ['active'],
|
|
235
|
+
children: []
|
|
236
|
+
}
|
|
237
|
+
]
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
id: '4',
|
|
241
|
+
title: 'Test',
|
|
242
|
+
type: 'milestone',
|
|
243
|
+
// section: developmentSection,
|
|
244
|
+
startDate: '2023-01-07',
|
|
245
|
+
endDate: '2023-01-10',
|
|
246
|
+
progress: 100,
|
|
247
|
+
dependsOn: '1',
|
|
248
|
+
length: '1d',
|
|
249
|
+
tags: ['done'],
|
|
250
|
+
children: []
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
id: '5',
|
|
254
|
+
title: 'Deploy',
|
|
255
|
+
type: 'milestone',
|
|
256
|
+
// section: developmentSection,
|
|
257
|
+
startDate: '2023-01-15',
|
|
258
|
+
endDate: '2023-01-21',
|
|
259
|
+
dependsOn: '4',
|
|
260
|
+
length: '1d',
|
|
261
|
+
tags: ['milestone'],
|
|
262
|
+
children: []
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
id: '6',
|
|
266
|
+
title: 'Publishing',
|
|
267
|
+
type: 'milestone',
|
|
268
|
+
// section: developmentSection,
|
|
269
|
+
startDate: '2023-01-11',
|
|
270
|
+
endDate: '2023-01-15',
|
|
271
|
+
dependsOn: '5',
|
|
272
|
+
length: '1d',
|
|
273
|
+
tags: ['milestone'],
|
|
274
|
+
children: []
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
id: '7',
|
|
278
|
+
title: 'Provisioning',
|
|
279
|
+
type: 'milestone',
|
|
280
|
+
// section: developmentSection,
|
|
281
|
+
startDate: '2023-01-12',
|
|
282
|
+
endDate: '2023-01-15',
|
|
283
|
+
dependsOn: '6',
|
|
284
|
+
length: '1d',
|
|
285
|
+
tags: ['milestone'],
|
|
286
|
+
children: []
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
id: '8',
|
|
290
|
+
title: 'Alpha Test',
|
|
291
|
+
type: 'milestone',
|
|
292
|
+
// section: testSection,
|
|
293
|
+
startDate: '2023-01-15',
|
|
294
|
+
endDate: '2023-01-17',
|
|
295
|
+
dependsOn: '7',
|
|
296
|
+
length: '1d',
|
|
297
|
+
tags: ['critical'],
|
|
298
|
+
children: []
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
id: '9',
|
|
302
|
+
title: 'Beta Task',
|
|
303
|
+
type: 'milestone',
|
|
304
|
+
// section: testSection,
|
|
305
|
+
startDate: '2023-01-15',
|
|
306
|
+
endDate: '2023-01-18',
|
|
307
|
+
dependsOn: '8',
|
|
308
|
+
length: '1d',
|
|
309
|
+
tags: ['active'],
|
|
310
|
+
children: []
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
id: '10',
|
|
314
|
+
title: 'Gamma Test',
|
|
315
|
+
type: 'milestone',
|
|
316
|
+
// section: testSection,
|
|
317
|
+
startDate: '2023-01-18',
|
|
318
|
+
endDate: '2023-01-19',
|
|
319
|
+
dependsOn: '9',
|
|
320
|
+
length: '1d',
|
|
321
|
+
tags: ['critical'],
|
|
322
|
+
children: []
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
id: '11',
|
|
326
|
+
title: 'Zeta Test',
|
|
327
|
+
type: 'milestone',
|
|
328
|
+
// section: testSection,
|
|
329
|
+
startDate: '2023-01-18',
|
|
330
|
+
endDate: '2023-01-22',
|
|
331
|
+
dependsOn: '9',
|
|
332
|
+
length: '1d',
|
|
333
|
+
tags: ['milestone'],
|
|
334
|
+
children: []
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
id: '12',
|
|
338
|
+
title: 'Release',
|
|
339
|
+
type: 'milestone',
|
|
340
|
+
// section: releaseSection,
|
|
341
|
+
startDate: '2023-01-18',
|
|
342
|
+
endDate: '2023-01-23',
|
|
343
|
+
dependsOn: '9',
|
|
344
|
+
length: '1d',
|
|
345
|
+
tags: ['milestone'],
|
|
346
|
+
children: []
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
id: '13',
|
|
350
|
+
title: 'Release',
|
|
351
|
+
type: 'milestone',
|
|
352
|
+
// section: releaseSection,
|
|
353
|
+
startDate: '2023-01-22',
|
|
354
|
+
endDate: '2023-01-27',
|
|
355
|
+
dependsOn: '12',
|
|
356
|
+
length: '1d',
|
|
357
|
+
tags: ['done'],
|
|
358
|
+
children: []
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
id: '14',
|
|
362
|
+
title: 'Release',
|
|
363
|
+
type: 'milestone',
|
|
364
|
+
// section: releaseSection,
|
|
365
|
+
startDate: '2023-01-27',
|
|
366
|
+
endDate: '2023-01-30',
|
|
367
|
+
dependsOn: '13',
|
|
368
|
+
length: '1d',
|
|
369
|
+
tags: ['milestone'],
|
|
370
|
+
children: []
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
id: '15',
|
|
374
|
+
title: 'Release',
|
|
375
|
+
type: 'milestone',
|
|
376
|
+
// section: releaseSection,
|
|
377
|
+
startDate: '2023-01-30',
|
|
378
|
+
endDate: '2023-01-31',
|
|
379
|
+
dependsOn: '14',
|
|
380
|
+
length: '1d',
|
|
381
|
+
tags: ['milestone'],
|
|
382
|
+
children: []
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
id: '16',
|
|
386
|
+
title: 'Release',
|
|
387
|
+
type: 'milestone',
|
|
388
|
+
// section: releaseSection,
|
|
389
|
+
startDate: '2023-01-31',
|
|
390
|
+
endDate: '2023-02-05',
|
|
391
|
+
dependsOn: '15',
|
|
392
|
+
length: '1d',
|
|
393
|
+
tags: ['active'],
|
|
394
|
+
children: []
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
id: '17',
|
|
398
|
+
title: 'Release',
|
|
399
|
+
type: 'milestone',
|
|
400
|
+
// section: releaseSection,
|
|
401
|
+
startDate: '2023-02-06',
|
|
402
|
+
endDate: '2023-02-07',
|
|
403
|
+
dependsOn: '16',
|
|
404
|
+
length: '1d',
|
|
405
|
+
tags: ['milestone'],
|
|
406
|
+
children: []
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
id: '18',
|
|
410
|
+
title: 'Release',
|
|
411
|
+
type: 'milestone',
|
|
412
|
+
// section: releaseSection,
|
|
413
|
+
startDate: '2023-02-08',
|
|
414
|
+
endDate: '2023-02-09',
|
|
415
|
+
dependsOn: '17',
|
|
416
|
+
length: '1d',
|
|
417
|
+
tags: ['critical'],
|
|
418
|
+
children: []
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
id: '19',
|
|
422
|
+
title: 'Release',
|
|
423
|
+
type: 'milestone',
|
|
424
|
+
// section: releaseSection,
|
|
425
|
+
startDate: '2023-02-10',
|
|
426
|
+
endDate: '2023-02-25',
|
|
427
|
+
dependsOn: '18',
|
|
428
|
+
length: '1d',
|
|
429
|
+
tags: ['milestone'],
|
|
430
|
+
children: []
|
|
431
|
+
}
|
|
432
|
+
]
|
|
433
|
+
|
|
157
434
|
render() {
|
|
158
435
|
return html`
|
|
159
436
|
<div header>
|
|
@@ -174,7 +451,20 @@ export class ProjectSchedule extends ScopedElementsMixin(PageView) {
|
|
|
174
451
|
<div body>
|
|
175
452
|
<div chart-container>
|
|
176
453
|
<div chart>
|
|
177
|
-
<
|
|
454
|
+
<ox-gantt
|
|
455
|
+
from-date=${new Date(this.fromDate).toISOString().split('T')[0]}
|
|
456
|
+
to-date=${new Date(this.toDate).toISOString().split('T')[0]}
|
|
457
|
+
.timeScale=${this.timeScale}
|
|
458
|
+
.tasks=${this.tasks}
|
|
459
|
+
@date-range-selected=${(e: CustomEvent) => {
|
|
460
|
+
console.log('date-range-selected', e.detail)
|
|
461
|
+
}}
|
|
462
|
+
@task-clicked=${(e: CustomEvent) => {
|
|
463
|
+
console.log('task-clicked', e.detail)
|
|
464
|
+
}}
|
|
465
|
+
?extend-grid-lines=${this.extendGridLines}
|
|
466
|
+
>
|
|
467
|
+
</ox-gantt>
|
|
178
468
|
</div>
|
|
179
469
|
<div table>
|
|
180
470
|
<table></table>
|
|
@@ -186,7 +476,7 @@ export class ProjectSchedule extends ScopedElementsMixin(PageView) {
|
|
|
186
476
|
<div>
|
|
187
477
|
<input type="date" name="startDate" project .value=${this.project.startDate || ''} max="9999-12-31" />
|
|
188
478
|
~
|
|
189
|
-
<input type="date" name="
|
|
479
|
+
<input type="date" name="endDate" project .value=${this.project.endDate || ''} max="9999-12-31" />
|
|
190
480
|
</div>
|
|
191
481
|
</div>
|
|
192
482
|
<div button></div>
|
|
@@ -241,7 +531,6 @@ export class ProjectSchedule extends ScopedElementsMixin(PageView) {
|
|
|
241
531
|
})
|
|
242
532
|
|
|
243
533
|
this.project = response.data?.project
|
|
244
|
-
this.selectedBuildingIdx = 0
|
|
245
534
|
|
|
246
535
|
console.log('init project : ', this.project)
|
|
247
536
|
}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
+
import '@material/web/icon/icon.js'
|
|
2
|
+
import '@material/web/button/elevated-button.js'
|
|
3
|
+
import '@material/web/button/outlined-button.js'
|
|
4
|
+
import '@material/web/progress/linear-progress.js'
|
|
5
|
+
import '@material/web/textfield/filled-text-field.js'
|
|
6
|
+
|
|
1
7
|
import { PageView } from '@operato/shell'
|
|
2
8
|
import { css, html } from 'lit'
|
|
3
9
|
import { customElement, state } from 'lit/decorators.js'
|
|
4
10
|
import { ScopedElementsMixin } from '@open-wc/scoped-elements'
|
|
5
11
|
import { client } from '@operato/graphql'
|
|
6
12
|
import { openPopup } from '@operato/layout'
|
|
7
|
-
import '@material/web/button/elevated-button.js'
|
|
8
|
-
import '@material/web/button/outlined-button.js'
|
|
9
|
-
import '@material/web/progress/linear-progress.js'
|
|
10
|
-
import '@material/web/textfield/filled-text-field.js'
|
|
11
13
|
|
|
12
14
|
import gql from 'graphql-tag'
|
|
13
|
-
import './project-create
|
|
15
|
+
import './popup/popup-project-create'
|
|
14
16
|
import { Project } from './project-list'
|
|
15
17
|
|
|
16
18
|
@customElement('project-setting-list')
|
|
@@ -80,9 +82,11 @@ export class ProjectSettingList extends ScopedElementsMixin(PageView) {
|
|
|
80
82
|
background-color: #ffffff;
|
|
81
83
|
border: 1px solid #cccccc80;
|
|
82
84
|
border-radius: 5px;
|
|
85
|
+
align-items: center;
|
|
83
86
|
|
|
84
87
|
img[project-img] {
|
|
85
88
|
width: 285px;
|
|
89
|
+
aspect-ratio: 2;
|
|
86
90
|
background-color: #cccccc80;
|
|
87
91
|
}
|
|
88
92
|
|
|
@@ -276,7 +280,7 @@ export class ProjectSettingList extends ScopedElementsMixin(PageView) {
|
|
|
276
280
|
}
|
|
277
281
|
|
|
278
282
|
private _openCreateProjectPopup() {
|
|
279
|
-
openPopup(html`<project-create
|
|
283
|
+
openPopup(html`<popup-project-create .refreshFn=${this.getProjectList.bind(this)}></popup-project-create>`, {
|
|
280
284
|
backdrop: true,
|
|
281
285
|
size: 'small',
|
|
282
286
|
title: '신규 프로젝트 생성'
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import '@material/web/icon/icon.js'
|
|
2
|
+
import '@material/web/button/elevated-button.js'
|
|
3
|
+
import '@material/web/textfield/outlined-text-field.js'
|
|
4
|
+
|
|
1
5
|
import { PageView } from '@operato/shell'
|
|
2
6
|
import { PageLifecycle } from '@operato/shell/dist/src/app/pages/page-view'
|
|
3
7
|
import { css, html } from 'lit'
|
|
@@ -8,8 +12,6 @@ import { notify } from '@operato/layout'
|
|
|
8
12
|
|
|
9
13
|
import gql from 'graphql-tag'
|
|
10
14
|
import { Project } from './project-list'
|
|
11
|
-
import '@material/web/button/elevated-button.js'
|
|
12
|
-
import '@material/web/textfield/outlined-text-field.js'
|
|
13
15
|
|
|
14
16
|
@customElement('project-update')
|
|
15
17
|
export class ProjectUpdate extends ScopedElementsMixin(PageView) {
|
|
@@ -40,6 +42,7 @@ export class ProjectUpdate extends ScopedElementsMixin(PageView) {
|
|
|
40
42
|
md-outlined-text-field[type='textarea'] {
|
|
41
43
|
width: 100%;
|
|
42
44
|
height: 130px;
|
|
45
|
+
resize: none;
|
|
43
46
|
}
|
|
44
47
|
|
|
45
48
|
ox-input-image {
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import '@operato/data-grist'
|
|
2
|
+
import '@operato/context/ox-context-page-toolbar.js'
|
|
3
|
+
|
|
4
|
+
import { CommonGristStyles, ScrollbarStyles } from '@operato/styles'
|
|
5
|
+
import { PageView } from '@operato/shell'
|
|
6
|
+
import { css, html } from 'lit'
|
|
7
|
+
import { customElement, property, query } from 'lit/decorators.js'
|
|
8
|
+
import { DataGrist } from '@operato/data-grist'
|
|
9
|
+
import { client } from '@operato/graphql'
|
|
10
|
+
import { notify } from '@operato/layout'
|
|
11
|
+
import gql from 'graphql-tag'
|
|
12
|
+
|
|
13
|
+
@customElement('construction-type-management')
|
|
14
|
+
export class ConstructionTypeManagement extends PageView {
|
|
15
|
+
static styles = [
|
|
16
|
+
ScrollbarStyles,
|
|
17
|
+
CommonGristStyles,
|
|
18
|
+
css`
|
|
19
|
+
:host {
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
|
|
23
|
+
width: 100%;
|
|
24
|
+
|
|
25
|
+
--grid-record-emphasized-background-color: red;
|
|
26
|
+
--grid-record-emphasized-color: yellow;
|
|
27
|
+
}
|
|
28
|
+
`
|
|
29
|
+
]
|
|
30
|
+
|
|
31
|
+
@property({ type: Object }) gristConfig: any
|
|
32
|
+
@query('ox-grist') private grist!: DataGrist
|
|
33
|
+
|
|
34
|
+
get context() {
|
|
35
|
+
return {
|
|
36
|
+
title: '공종 관리',
|
|
37
|
+
actions: [
|
|
38
|
+
{
|
|
39
|
+
title: '저장',
|
|
40
|
+
action: this._updateConstructionTypes.bind(this),
|
|
41
|
+
icon: 'save'
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
title: '삭제',
|
|
45
|
+
action: this._deleteConstructionTypes.bind(this),
|
|
46
|
+
icon: 'delete'
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
render() {
|
|
53
|
+
return html`
|
|
54
|
+
<ox-grist .mode=${'GRID'} .config=${this.gristConfig} .fetchHandler=${this.fetchHandler.bind(this)}>
|
|
55
|
+
<div slot="headroom" class="header">
|
|
56
|
+
<ox-context-page-toolbar class="actions" .context=${this.context}></ox-context-page-toolbar>
|
|
57
|
+
</div>
|
|
58
|
+
</ox-grist>
|
|
59
|
+
<div>
|
|
60
|
+
<button @click=${this._updateConstructionTypes.bind(this)}>저장</button>
|
|
61
|
+
<button @click=${this._deleteConstructionTypes.bind(this)}>삭제</button>
|
|
62
|
+
</div>
|
|
63
|
+
`
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
async pageInitialized(lifecycle: any) {
|
|
67
|
+
this.gristConfig = {
|
|
68
|
+
columns: [
|
|
69
|
+
{ type: 'gutter', gutterName: 'sequence' },
|
|
70
|
+
{ type: 'gutter', gutterName: 'row-selector', multiple: true },
|
|
71
|
+
{
|
|
72
|
+
type: 'string',
|
|
73
|
+
name: 'name',
|
|
74
|
+
header: '이름',
|
|
75
|
+
record: {
|
|
76
|
+
editable: true
|
|
77
|
+
},
|
|
78
|
+
width: 150
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
type: 'string',
|
|
82
|
+
name: 'description',
|
|
83
|
+
header: '설명',
|
|
84
|
+
record: {
|
|
85
|
+
editable: true
|
|
86
|
+
},
|
|
87
|
+
width: 200
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
type: 'datetime',
|
|
91
|
+
name: 'createdAt',
|
|
92
|
+
header: '생성 시간',
|
|
93
|
+
width: 200
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
type: 'datetime',
|
|
97
|
+
name: 'updatedAt',
|
|
98
|
+
header: '수정 시간',
|
|
99
|
+
width: 200
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
pagination: { infinite: true }
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
async fetchHandler() {
|
|
107
|
+
const response = await client.query({
|
|
108
|
+
query: gql`
|
|
109
|
+
query ConstructionTypes {
|
|
110
|
+
constructionTypes {
|
|
111
|
+
items {
|
|
112
|
+
id
|
|
113
|
+
name
|
|
114
|
+
description
|
|
115
|
+
createdAt
|
|
116
|
+
updatedAt
|
|
117
|
+
}
|
|
118
|
+
total
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
`
|
|
122
|
+
})
|
|
123
|
+
|
|
124
|
+
if (response.errors) return {}
|
|
125
|
+
|
|
126
|
+
return {
|
|
127
|
+
total: response.data.constructionTypes.total || 0,
|
|
128
|
+
records: response.data.constructionTypes.items || []
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
async _updateConstructionTypes() {
|
|
133
|
+
let patches = this.grist.dirtyRecords
|
|
134
|
+
if (patches && patches.length) {
|
|
135
|
+
patches = patches.map(patch => {
|
|
136
|
+
let patchField: any = patch.id ? { id: patch.id } : {}
|
|
137
|
+
const dirtyFields = patch.__dirtyfields__
|
|
138
|
+
for (let key in dirtyFields) {
|
|
139
|
+
patchField[key] = dirtyFields[key].after
|
|
140
|
+
}
|
|
141
|
+
patchField.cuFlag = patch.__dirty__
|
|
142
|
+
|
|
143
|
+
return patchField
|
|
144
|
+
})
|
|
145
|
+
|
|
146
|
+
const response = await client.mutate({
|
|
147
|
+
mutation: gql`
|
|
148
|
+
mutation UpdateMultipleConstructionType($patches: [ConstructionTypePatch!]!) {
|
|
149
|
+
updateMultipleConstructionType(patches: $patches) {
|
|
150
|
+
id
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
`,
|
|
154
|
+
variables: {
|
|
155
|
+
patches
|
|
156
|
+
}
|
|
157
|
+
})
|
|
158
|
+
|
|
159
|
+
if (!response.errors) {
|
|
160
|
+
this.grist.fetch()
|
|
161
|
+
notify({ message: '저장되었습니다.' })
|
|
162
|
+
} else {
|
|
163
|
+
notify({ message: '저장에 실패하였습니다.', level: 'error' })
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
async _deleteConstructionTypes() {
|
|
169
|
+
if (confirm('삭제하시겠습니까?')) {
|
|
170
|
+
const a = this.grist
|
|
171
|
+
|
|
172
|
+
const ids = this.grist.selected.map(record => record.id)
|
|
173
|
+
if (ids && ids.length > 0) {
|
|
174
|
+
const response = await client.mutate({
|
|
175
|
+
mutation: gql`
|
|
176
|
+
mutation DeleteConstructionTypes($ids: [String!]!) {
|
|
177
|
+
deleteConstructionTypes(ids: $ids)
|
|
178
|
+
}
|
|
179
|
+
`,
|
|
180
|
+
variables: {
|
|
181
|
+
ids
|
|
182
|
+
}
|
|
183
|
+
})
|
|
184
|
+
|
|
185
|
+
if (!response.errors) {
|
|
186
|
+
this.grist.fetch()
|
|
187
|
+
notify({ message: '삭제되었습니다.' })
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|