@dssp/supervision 1.0.0-alpha.7 → 1.0.0-alpha.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-client/graphql/building-inspection.d.ts +1 -0
- package/dist-client/graphql/building-inspection.js +101 -0
- package/dist-client/graphql/building-inspection.js.map +1 -0
- package/dist-client/pages/action-plan/action-plan-list-page.d.ts +1 -2
- package/dist-client/pages/action-plan/action-plan-list-page.js +1 -2
- package/dist-client/pages/action-plan/action-plan-list-page.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.d.ts +22 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js +171 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js.map +1 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.d.ts +59 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js +868 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js.map +1 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-camera.d.ts +8 -6
- package/dist-client/pages/building-inspection/building-inspection-detail-camera.js +116 -65
- package/dist-client/pages/building-inspection/building-inspection-detail-camera.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.d.ts +11 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js +147 -72
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.d.ts +1 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js +78 -14
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-list.d.ts +26 -2
- package/dist-client/pages/building-inspection/building-inspection-list.js +375 -34
- package/dist-client/pages/building-inspection/building-inspection-list.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-management.d.ts +72 -0
- package/dist-client/pages/building-inspection/building-inspection-management.js +1256 -0
- package/dist-client/pages/building-inspection/building-inspection-management.js.map +1 -0
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.d.ts +3 -0
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js +112 -20
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js.map +1 -1
- package/dist-client/pages/building-inspection/component/daily-worklog-popup.d.ts +27 -0
- package/dist-client/pages/building-inspection/component/daily-worklog-popup.js +542 -0
- package/dist-client/pages/building-inspection/component/daily-worklog-popup.js.map +1 -0
- package/dist-client/pages/building-inspection/component/image-preview-popup.d.ts +15 -0
- package/dist-client/pages/building-inspection/component/image-preview-popup.js +348 -0
- package/dist-client/pages/building-inspection/component/image-preview-popup.js.map +1 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.d.ts +25 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js +491 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js.map +1 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.d.ts +31 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js +485 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js.map +1 -0
- package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.d.ts +27 -0
- package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js +416 -0
- package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js.map +1 -0
- package/dist-client/pages/building-inspection/component/inspection-event-provider.d.ts +2 -1
- package/dist-client/pages/building-inspection/component/inspection-event-provider.js +42 -18
- package/dist-client/pages/building-inspection/component/inspection-event-provider.js.map +1 -1
- package/dist-client/pages/building-inspection/inspection-create-popup.js +17 -5
- package/dist-client/pages/building-inspection/inspection-create-popup.js.map +1 -1
- package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.d.ts +3 -0
- package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.js +791 -0
- package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.js.map +1 -0
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.d.ts +16 -2
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js +249 -45
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js.map +1 -1
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js +9 -3
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js.map +1 -1
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.d.ts +19 -0
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js +205 -0
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js.map +1 -0
- package/dist-client/pages/checklist/attachment-list-popup.d.ts +1 -0
- package/dist-client/pages/checklist/attachment-list-popup.js +251 -69
- package/dist-client/pages/checklist/attachment-list-popup.js.map +1 -1
- package/dist-client/pages/checklist/checklist-view.d.ts +5 -0
- package/dist-client/pages/checklist/checklist-view.js +191 -30
- package/dist-client/pages/checklist/checklist-view.js.map +1 -1
- package/dist-client/pages/checklist/comment-list-popup.js +15 -5
- package/dist-client/pages/checklist/comment-list-popup.js.map +1 -1
- package/dist-client/pages/checklist/file-preview-popup.js +0 -1
- package/dist-client/pages/checklist/file-preview-popup.js.map +1 -1
- package/dist-client/pages/checklist/inspection-info-popup.d.ts +49 -0
- package/dist-client/pages/checklist/inspection-info-popup.js +683 -0
- package/dist-client/pages/checklist/inspection-info-popup.js.map +1 -0
- package/dist-client/pages/checklist/inspection-tab-popup.d.ts +18 -0
- package/dist-client/pages/checklist/inspection-tab-popup.js +196 -0
- package/dist-client/pages/checklist/inspection-tab-popup.js.map +1 -0
- package/dist-client/pages/checklist-database/checklist-database.d.ts +35 -0
- package/dist-client/pages/checklist-database/checklist-database.js +539 -0
- package/dist-client/pages/checklist-database/checklist-database.js.map +1 -0
- package/dist-client/pages/checklist-template/checklist-template-item.js +39 -3
- package/dist-client/pages/checklist-template/checklist-template-item.js.map +1 -1
- package/dist-client/pages/checklist-template/checklist-template-list.js +1 -1
- package/dist-client/pages/checklist-template/checklist-template-list.js.map +1 -1
- package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.d.ts +2 -0
- package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.js +242 -0
- package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.js.map +1 -0
- package/dist-client/pages/checklist-template/construction-checklist-template-list.d.ts +55 -0
- package/dist-client/pages/checklist-template/construction-checklist-template-list.js +409 -0
- package/dist-client/pages/checklist-template/construction-checklist-template-list.js.map +1 -0
- package/dist-client/pages/issue/issue-list-page.d.ts +1 -2
- package/dist-client/pages/issue/issue-list-page.js +1 -2
- package/dist-client/pages/issue/issue-list-page.js.map +1 -1
- package/dist-client/pages/project-checklist/project-checklist-management.d.ts +50 -0
- package/dist-client/pages/project-checklist/project-checklist-management.js +910 -0
- package/dist-client/pages/project-checklist/project-checklist-management.js.map +1 -0
- package/dist-client/pages/project-report/project-report-list-page.d.ts +1 -2
- package/dist-client/pages/project-report/project-report-list-page.js +1 -2
- package/dist-client/pages/project-report/project-report-list-page.js.map +1 -1
- package/dist-client/pages/supervisor/supervisor-list-page.d.ts +1 -2
- package/dist-client/pages/supervisor/supervisor-list-page.js +1 -2
- package/dist-client/pages/supervisor/supervisor-list-page.js.map +1 -1
- package/dist-client/route.d.ts +1 -1
- package/dist-client/route.js +18 -0
- package/dist-client/route.js.map +1 -1
- package/dist-client/stt/speech-to-text.d.ts +13 -8
- package/dist-client/stt/speech-to-text.js +282 -40
- package/dist-client/stt/speech-to-text.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/service/action-plan/action-plan-mutation.js +5 -6
- package/dist-server/service/action-plan/action-plan-mutation.js.map +1 -1
- package/dist-server/service/action-plan/action-plan-query.d.ts +2 -2
- package/dist-server/service/action-plan/action-plan-query.js +5 -11
- package/dist-server/service/action-plan/action-plan-query.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-mutation.d.ts +2 -3
- package/dist-server/service/building-inspection/building-inspection-mutation.js +77 -39
- package/dist-server/service/building-inspection/building-inspection-mutation.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-query.d.ts +5 -7
- package/dist-server/service/building-inspection/building-inspection-query.js +54 -52
- package/dist-server/service/building-inspection/building-inspection-query.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-type.d.ts +26 -7
- package/dist-server/service/building-inspection/building-inspection-type.js +92 -13
- package/dist-server/service/building-inspection/building-inspection-type.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection.d.ts +5 -0
- package/dist-server/service/building-inspection/building-inspection.js +37 -4
- package/dist-server/service/building-inspection/building-inspection.js.map +1 -1
- package/dist-server/service/building-inspection/index.d.ts +3 -4
- package/dist-server/service/building-inspection/index.js +10 -3
- package/dist-server/service/building-inspection/index.js.map +1 -1
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.d.ts +6 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js +56 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js.map +1 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.d.ts +16 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js +171 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js.map +1 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.d.ts +23 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js +90 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js.map +1 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.d.ts +33 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js +132 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js.map +1 -0
- package/dist-server/service/building-inspection-daily-worklog/index.d.ts +5 -0
- package/dist-server/service/building-inspection-daily-worklog/index.js +9 -0
- package/dist-server/service/building-inspection-daily-worklog/index.js.map +1 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-query.d.ts +16 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-query.js +120 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-query.js.map +1 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-type.d.ts +5 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-type.js +21 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-type.js.map +1 -0
- package/dist-server/service/building-inspection-history/building-inspection-history.d.ts +35 -0
- package/dist-server/service/building-inspection-history/building-inspection-history.js +162 -0
- package/dist-server/service/building-inspection-history/building-inspection-history.js.map +1 -0
- package/dist-server/service/building-inspection-history/event-subscriber.d.ts +7 -0
- package/dist-server/service/building-inspection-history/event-subscriber.js +21 -0
- package/dist-server/service/building-inspection-history/event-subscriber.js.map +1 -0
- package/dist-server/service/building-inspection-history/index.d.ts +6 -0
- package/dist-server/service/building-inspection-history/index.js +10 -0
- package/dist-server/service/building-inspection-history/index.js.map +1 -0
- package/dist-server/service/checklist/checklist-mutation.d.ts +0 -5
- package/dist-server/service/checklist/checklist-mutation.js +1 -67
- package/dist-server/service/checklist/checklist-mutation.js.map +1 -1
- package/dist-server/service/checklist/checklist-query.d.ts +7 -0
- package/dist-server/service/checklist/checklist-query.js +83 -0
- package/dist-server/service/checklist/checklist-query.js.map +1 -1
- package/dist-server/service/checklist/checklist-type.d.ts +0 -13
- package/dist-server/service/checklist/checklist-type.js +1 -49
- package/dist-server/service/checklist/checklist-type.js.map +1 -1
- package/dist-server/service/checklist/checklist.d.ts +28 -3
- package/dist-server/service/checklist/checklist.js +89 -15
- package/dist-server/service/checklist/checklist.js.map +1 -1
- package/dist-server/service/checklist/event-subscriber.d.ts +7 -0
- package/dist-server/service/checklist/event-subscriber.js +21 -0
- package/dist-server/service/checklist/event-subscriber.js.map +1 -0
- package/dist-server/service/checklist/index.d.ts +1 -2
- package/dist-server/service/checklist/index.js +1 -2
- package/dist-server/service/checklist/index.js.map +1 -1
- package/dist-server/service/checklist-history/checklist-history-query.d.ts +11 -0
- package/dist-server/service/checklist-history/checklist-history-query.js +77 -0
- package/dist-server/service/checklist-history/checklist-history-query.js.map +1 -0
- package/dist-server/service/checklist-history/checklist-history-type.d.ts +5 -0
- package/dist-server/service/checklist-history/checklist-history-type.js +21 -0
- package/dist-server/service/checklist-history/checklist-history-type.js.map +1 -0
- package/dist-server/service/{checklist → checklist-history}/checklist-history.d.ts +19 -1
- package/dist-server/service/{checklist → checklist-history}/checklist-history.js +97 -14
- package/dist-server/service/checklist-history/checklist-history.js.map +1 -0
- package/dist-server/service/checklist-history/event-subscriber.d.ts +7 -0
- package/dist-server/service/checklist-history/event-subscriber.js +21 -0
- package/dist-server/service/checklist-history/event-subscriber.js.map +1 -0
- package/dist-server/service/checklist-history/index.d.ts +6 -0
- package/dist-server/service/checklist-history/index.js +10 -0
- package/dist-server/service/checklist-history/index.js.map +1 -0
- package/dist-server/service/checklist-item/checklist-item-query.d.ts +1 -1
- package/dist-server/service/checklist-item/checklist-item-query.js +5 -3
- package/dist-server/service/checklist-item/checklist-item-query.js.map +1 -1
- package/dist-server/service/checklist-item/index.d.ts +0 -1
- package/dist-server/service/checklist-item/index.js +1 -2
- package/dist-server/service/checklist-item/index.js.map +1 -1
- package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.d.ts +1 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js +33 -6
- package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js.map +1 -1
- package/dist-server/service/checklist-item-history/checklist-item-history-query.d.ts +16 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-query.js +123 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-query.js.map +1 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-type.d.ts +5 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-type.js +21 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-type.js.map +1 -0
- package/dist-server/service/checklist-item-history/checklist-item-history.d.ts +25 -0
- package/dist-server/service/checklist-item-history/checklist-item-history.js +123 -0
- package/dist-server/service/checklist-item-history/checklist-item-history.js.map +1 -0
- package/dist-server/service/checklist-item-history/event-subscriber.d.ts +7 -0
- package/dist-server/service/checklist-item-history/event-subscriber.js +21 -0
- package/dist-server/service/checklist-item-history/event-subscriber.js.map +1 -0
- package/dist-server/service/checklist-item-history/index.d.ts +6 -0
- package/dist-server/service/checklist-item-history/index.js +10 -0
- package/dist-server/service/checklist-item-history/index.js.map +1 -0
- package/dist-server/service/checklist-template/checklist-template-query.d.ts +1 -1
- package/dist-server/service/checklist-template/checklist-template-query.js +2 -5
- package/dist-server/service/checklist-template/checklist-template-query.js.map +1 -1
- package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js +13 -1
- package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js.map +1 -1
- package/dist-server/service/checklist-template-item/checklist-template-item-type.d.ts +3 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-type.js +9 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-type.js.map +1 -1
- package/dist-server/service/checklist-template-item/checklist-template-item.d.ts +7 -0
- package/dist-server/service/checklist-template-item/checklist-template-item.js +22 -2
- package/dist-server/service/checklist-template-item/checklist-template-item.js.map +1 -1
- package/dist-server/service/checklist-template-item/spec-matching-service.d.ts +2 -0
- package/dist-server/service/checklist-template-item/spec-matching-service.js +51 -0
- package/dist-server/service/checklist-template-item/spec-matching-service.js.map +1 -0
- package/dist-server/service/checklist-type/checklist-type-query.d.ts +1 -1
- package/dist-server/service/checklist-type/checklist-type-query.js +2 -5
- package/dist-server/service/checklist-type/checklist-type-query.js.map +1 -1
- package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.d.ts +7 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.js +107 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.js.map +1 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-query.d.ts +10 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-query.js +62 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-query.js.map +1 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-type.d.ts +11 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-type.js +43 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-type.js.map +1 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template.d.ts +18 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template.js +80 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template.js.map +1 -0
- package/dist-server/service/construction-checklist-template/index.d.ts +5 -0
- package/dist-server/service/construction-checklist-template/index.js +9 -0
- package/dist-server/service/construction-checklist-template/index.js.map +1 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.d.ts +6 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.js +60 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.js.map +1 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.d.ts +9 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.js +53 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.js.map +1 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.d.ts +17 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.js +67 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.js.map +1 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.d.ts +24 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.js +113 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.js.map +1 -0
- package/dist-server/service/construction-checklist-template-item/index.d.ts +5 -0
- package/dist-server/service/construction-checklist-template-item/index.js +9 -0
- package/dist-server/service/construction-checklist-template-item/index.js.map +1 -0
- package/dist-server/service/construction-checklist-template-item/spec-matching-service.d.ts +2 -0
- package/dist-server/service/construction-checklist-template-item/spec-matching-service.js +50 -0
- package/dist-server/service/construction-checklist-template-item/spec-matching-service.js.map +1 -0
- package/dist-server/service/index.d.ts +8 -1
- package/dist-server/service/index.js +38 -3
- package/dist-server/service/index.js.map +1 -1
- package/dist-server/service/issue/issue-mutation.js +5 -6
- package/dist-server/service/issue/issue-mutation.js.map +1 -1
- package/dist-server/service/issue/issue-query.d.ts +2 -2
- package/dist-server/service/issue/issue-query.js +5 -11
- package/dist-server/service/issue/issue-query.js.map +1 -1
- package/dist-server/service/project-checklist/index.d.ts +5 -0
- package/dist-server/service/project-checklist/index.js +9 -0
- package/dist-server/service/project-checklist/index.js.map +1 -0
- package/dist-server/service/project-checklist/project-checklist-mutation.d.ts +7 -0
- package/dist-server/service/project-checklist/project-checklist-mutation.js +109 -0
- package/dist-server/service/project-checklist/project-checklist-mutation.js.map +1 -0
- package/dist-server/service/project-checklist/project-checklist-query.d.ts +12 -0
- package/dist-server/service/project-checklist/project-checklist-query.js +76 -0
- package/dist-server/service/project-checklist/project-checklist-query.js.map +1 -0
- package/dist-server/service/project-checklist/project-checklist-type.d.ts +18 -0
- package/dist-server/service/project-checklist/project-checklist-type.js +69 -0
- package/dist-server/service/project-checklist/project-checklist-type.js.map +1 -0
- package/dist-server/service/project-checklist/project-checklist.d.ts +20 -0
- package/dist-server/service/project-checklist/project-checklist.js +90 -0
- package/dist-server/service/project-checklist/project-checklist.js.map +1 -0
- package/dist-server/service/project-checklist-item/index.d.ts +4 -0
- package/dist-server/service/project-checklist-item/index.js +9 -0
- package/dist-server/service/project-checklist-item/index.js.map +1 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-mutation.d.ts +2 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-mutation.js +13 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-mutation.js.map +1 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-query.d.ts +5 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-query.js +34 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-query.js.map +1 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-type.d.ts +5 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-type.js +21 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-type.js.map +1 -0
- package/dist-server/service/project-checklist-item/project-checklist-item.d.ts +17 -0
- package/dist-server/service/project-checklist-item/project-checklist-item.js +82 -0
- package/dist-server/service/project-checklist-item/project-checklist-item.js.map +1 -0
- package/dist-server/service/project-report/project-report-mutation.js +5 -6
- package/dist-server/service/project-report/project-report-mutation.js.map +1 -1
- package/dist-server/service/project-report/project-report-query.d.ts +2 -2
- package/dist-server/service/project-report/project-report-query.js +5 -11
- package/dist-server/service/project-report/project-report-query.js.map +1 -1
- package/dist-server/service/project-report/project-report.d.ts +0 -2
- package/dist-server/service/project-report/project-report.js +0 -6
- package/dist-server/service/project-report/project-report.js.map +1 -1
- package/dist-server/service/supervisor/supervisor-mutation.js +5 -6
- package/dist-server/service/supervisor/supervisor-mutation.js.map +1 -1
- package/dist-server/service/supervisor/supervisor-query.d.ts +2 -2
- package/dist-server/service/supervisor/supervisor-query.js +5 -11
- package/dist-server/service/supervisor/supervisor-query.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +14 -13
- package/things-factory.config.js +9 -1
- package/dist-server/service/building-inspection/building-inspection-history.d.ts +0 -17
- package/dist-server/service/building-inspection/building-inspection-history.js +0 -86
- package/dist-server/service/building-inspection/building-inspection-history.js.map +0 -1
- package/dist-server/service/checklist/checklist-history.js.map +0 -1
|
@@ -0,0 +1,1256 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import '@material/web/icon/icon.js';
|
|
3
|
+
import '@material/web/button/elevated-button.js';
|
|
4
|
+
import '@material/web/button/filled-button.js';
|
|
5
|
+
import '@material/web/button/outlined-button.js';
|
|
6
|
+
import '@operato/image-marker/ox-image-marker-view.js';
|
|
7
|
+
import '@operato/input/ox-select-floor.js';
|
|
8
|
+
import '@operato/data-grist';
|
|
9
|
+
import '@operato/event-view/ox-event-view.js';
|
|
10
|
+
import './inspection-create-popup';
|
|
11
|
+
import './inspection-with-checklist-create-popup';
|
|
12
|
+
import './component/daily-worklog-popup';
|
|
13
|
+
import './component/inspection-document/photo-album-popup';
|
|
14
|
+
import './component/inspection-document/inspection-request-document';
|
|
15
|
+
import './component/inspection-document/inspection-result-notification';
|
|
16
|
+
import './component/image-preview-popup';
|
|
17
|
+
import { CommonGristStyles, ScrollbarStyles } from '@operato/styles';
|
|
18
|
+
import { PageView, navigate } from '@operato/shell';
|
|
19
|
+
import { css, html } from 'lit';
|
|
20
|
+
import { customElement, query, state } from 'lit/decorators.js';
|
|
21
|
+
import { ScopedElementsMixin } from '@open-wc/scoped-elements';
|
|
22
|
+
import { DataGrist } from '@operato/data-grist';
|
|
23
|
+
import { client } from '@operato/graphql';
|
|
24
|
+
import { notify, openPopup } from '@operato/layout';
|
|
25
|
+
import gql from 'graphql-tag';
|
|
26
|
+
import moment from 'moment-timezone';
|
|
27
|
+
import { BuildingInspectionStatus, BUILDING_INSPECTION_STATUS_DISPLAY, BUILDING_INSPECTION_RE_STATUS_DISPLAY } from './building-inspection-list';
|
|
28
|
+
import { InspectionEventProvider } from './component/inspection-event-provider';
|
|
29
|
+
import { DailyWorklogMode } from './component/daily-worklog-popup';
|
|
30
|
+
import '../checklist/checklist-view';
|
|
31
|
+
import { getBuildingInspectionForChecklist } from '../../graphql/building-inspection';
|
|
32
|
+
import { InspectionMode } from './component/inspection-document/inspection-request-document';
|
|
33
|
+
import { DrawingImageProvider } from '@dssp/drawing/dist-client/drawing-management/drawing-image-provider.js';
|
|
34
|
+
let BuildingInspectionManagement = class BuildingInspectionManagement extends ScopedElementsMixin(PageView) {
|
|
35
|
+
constructor() {
|
|
36
|
+
super(...arguments);
|
|
37
|
+
this.defaultProject = {
|
|
38
|
+
name: '',
|
|
39
|
+
buildingComplex: {
|
|
40
|
+
buildings: []
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
this.projectId = '';
|
|
44
|
+
this.project = Object.assign({}, this.defaultProject);
|
|
45
|
+
this.selectedBuilding = {};
|
|
46
|
+
this.building = {};
|
|
47
|
+
this.currentFloor = -1;
|
|
48
|
+
this.buildingLevelId = '';
|
|
49
|
+
this.buildingInspectionSummary = {};
|
|
50
|
+
this.selectedYearMonth = moment().tz('Asia/Seoul').format('YYYY-MM');
|
|
51
|
+
this.selectedDate = moment().tz('Asia/Seoul').format('YYYY-MM-DD');
|
|
52
|
+
this.dailyWorklog = {};
|
|
53
|
+
this.viewMode = 'calendar';
|
|
54
|
+
}
|
|
55
|
+
get context() {
|
|
56
|
+
return {
|
|
57
|
+
title: '업무 대시보드'
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
render() {
|
|
61
|
+
var _a, _b, _c, _d, _e, _f;
|
|
62
|
+
const cards = ((_b = (_a = this.building) === null || _a === void 0 ? void 0 : _a.buildingLevels) === null || _b === void 0 ? void 0 : _b.map(({ mainDrawingImage, floor }) => {
|
|
63
|
+
return {
|
|
64
|
+
image: mainDrawingImage || '/assets/images/img-drawing-default.png',
|
|
65
|
+
name: floor
|
|
66
|
+
};
|
|
67
|
+
})) || [];
|
|
68
|
+
return html `
|
|
69
|
+
<div header>
|
|
70
|
+
<h2>
|
|
71
|
+
<md-icon slot="icon" back @click=${() => history.back()}>arrow_back</md-icon>
|
|
72
|
+
업무 대시보드
|
|
73
|
+
</h2>
|
|
74
|
+
</div>
|
|
75
|
+
|
|
76
|
+
<div body>
|
|
77
|
+
<div left>
|
|
78
|
+
<div>
|
|
79
|
+
<div subject bold>개별 단지 상세정보 바로가기</div>
|
|
80
|
+
<div building-container>
|
|
81
|
+
${(_d = (_c = this.project.buildingComplex) === null || _c === void 0 ? void 0 : _c.buildings) === null || _d === void 0 ? void 0 : _d.map(building => {
|
|
82
|
+
return this.selectedBuilding.id === building.id
|
|
83
|
+
? html `
|
|
84
|
+
<md-filled-button @click=${() => this._onClickBuilding(building)}> ${building.name} </md-filled-button>
|
|
85
|
+
`
|
|
86
|
+
: html `
|
|
87
|
+
<md-outlined-button @click=${() => this._onClickBuilding(building)}> ${building.name} </md-outlined-button>
|
|
88
|
+
`;
|
|
89
|
+
})}
|
|
90
|
+
</div>
|
|
91
|
+
</div>
|
|
92
|
+
|
|
93
|
+
<ox-select-floor
|
|
94
|
+
.cards=${cards}
|
|
95
|
+
.bottomLimit=${70}
|
|
96
|
+
.interval=${50}
|
|
97
|
+
@change=${(e) => {
|
|
98
|
+
this.currentFloor = e.detail;
|
|
99
|
+
}}
|
|
100
|
+
>
|
|
101
|
+
${(_f = (_e = this.building) === null || _e === void 0 ? void 0 : _e.buildingLevels) === null || _f === void 0 ? void 0 : _f.map(({ id, floor, floorDisplayName, inspectionSummary }, idx) => {
|
|
102
|
+
return html `
|
|
103
|
+
<div slot="template-${idx}" @click=${() => this._onSelectFloor(id)} style="cursor: pointer;">
|
|
104
|
+
<div status>
|
|
105
|
+
<div content>
|
|
106
|
+
<span><md-icon wait slot="icon">frame_inspect</md-icon>${inspectionSummary.wait}</span>
|
|
107
|
+
<span><md-icon request slot="icon">exclamation</md-icon>${inspectionSummary.request}</span>
|
|
108
|
+
<span><md-icon pass slot="icon">check</md-icon>${inspectionSummary.pass}</span>
|
|
109
|
+
<span><md-icon fail slot="icon">close</md-icon>${inspectionSummary.fail}</span>
|
|
110
|
+
</div>
|
|
111
|
+
<span name ?active=${this.currentFloor == floor}>${floorDisplayName}층</span>
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
`;
|
|
115
|
+
})}
|
|
116
|
+
</ox-select-floor>
|
|
117
|
+
</div>
|
|
118
|
+
|
|
119
|
+
<div right-panel>
|
|
120
|
+
${this.buildingLevelId
|
|
121
|
+
? html `
|
|
122
|
+
<div inspection-container>
|
|
123
|
+
<div inspection>
|
|
124
|
+
<div name bold>
|
|
125
|
+
<md-icon slot="icon">fact_check</md-icon>
|
|
126
|
+
검측 현황
|
|
127
|
+
</div>
|
|
128
|
+
|
|
129
|
+
<div>
|
|
130
|
+
<label>${BUILDING_INSPECTION_STATUS_DISPLAY[BuildingInspectionStatus.WAIT]}</label>
|
|
131
|
+
<span bold status="wait"> ${this.buildingInspectionSummary.wait}</span>
|
|
132
|
+
</div>
|
|
133
|
+
<div>
|
|
134
|
+
<label>${BUILDING_INSPECTION_STATUS_DISPLAY[BuildingInspectionStatus.REQUEST]}</label>
|
|
135
|
+
<span bold status="request"> ${this.buildingInspectionSummary.request}</span>
|
|
136
|
+
</div>
|
|
137
|
+
<div>
|
|
138
|
+
<label>${BUILDING_INSPECTION_STATUS_DISPLAY[BuildingInspectionStatus.FAIL]}</label>
|
|
139
|
+
<span bold status="fail"> ${this.buildingInspectionSummary.fail}</span>
|
|
140
|
+
</div>
|
|
141
|
+
<div>
|
|
142
|
+
<label>재검측 대기</label>
|
|
143
|
+
<span bold status="re-wait"> ${this.buildingInspectionSummary.reWait}</span>
|
|
144
|
+
</div>
|
|
145
|
+
<div>
|
|
146
|
+
<label>${BUILDING_INSPECTION_STATUS_DISPLAY[BuildingInspectionStatus.PASS]}</label>
|
|
147
|
+
<span bold status="pass"> ${this.buildingInspectionSummary.pass}</span>
|
|
148
|
+
</div>
|
|
149
|
+
</div>
|
|
150
|
+
|
|
151
|
+
<div view-toggle>
|
|
152
|
+
<md-icon ?active=${this.viewMode === 'calendar'} @click=${() => this._setViewMode('calendar')}>
|
|
153
|
+
calendar_month
|
|
154
|
+
</md-icon>
|
|
155
|
+
<md-icon ?active=${this.viewMode === 'list'} @click=${() => this._setViewMode('list')}> view_list </md-icon>
|
|
156
|
+
</div>
|
|
157
|
+
|
|
158
|
+
<div calendar-wrapper style="display:${this.viewMode === 'calendar' ? 'block' : 'none'}">
|
|
159
|
+
<ox-event-view
|
|
160
|
+
.mode=${'monthly'}
|
|
161
|
+
.eventProvider=${this.calendarData}
|
|
162
|
+
@select-date=${(e) => {
|
|
163
|
+
this.selectedDate = moment(e.detail[0]).format('YYYY-MM-DD');
|
|
164
|
+
this._fetchDailyWorklog(this.selectedDate);
|
|
165
|
+
}}
|
|
166
|
+
@change-month=${(e) => {
|
|
167
|
+
var _a, _b, _c;
|
|
168
|
+
const year = e.detail.year;
|
|
169
|
+
const month = (_c = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.month) === null || _b === void 0 ? void 0 : _b.toString()) === null || _c === void 0 ? void 0 : _c.padStart(2, '0');
|
|
170
|
+
this.selectedYearMonth = `${year}-${month}`;
|
|
171
|
+
this._refreshListGrists();
|
|
172
|
+
}}
|
|
173
|
+
></ox-event-view>
|
|
174
|
+
</div>
|
|
175
|
+
<div list-wrapper style="display:${this.viewMode === 'list' ? 'block' : 'none'}">
|
|
176
|
+
<div list-view>
|
|
177
|
+
<div list-section>
|
|
178
|
+
<h3 section-title>작업 완료 / 조치 필요</h3>
|
|
179
|
+
<ox-grist
|
|
180
|
+
section="wait-fail"
|
|
181
|
+
.mode=${'GRID'}
|
|
182
|
+
.config=${this.gristConfig}
|
|
183
|
+
.fetchHandler=${this._fetchWaitFail.bind(this)}
|
|
184
|
+
></ox-grist>
|
|
185
|
+
</div>
|
|
186
|
+
<div list-section>
|
|
187
|
+
<h3 section-title blue>감리 / 재검측 대기</h3>
|
|
188
|
+
<ox-grist
|
|
189
|
+
section="request"
|
|
190
|
+
.mode=${'GRID'}
|
|
191
|
+
.config=${this.gristConfig}
|
|
192
|
+
.fetchHandler=${this._fetchRequest.bind(this)}
|
|
193
|
+
></ox-grist>
|
|
194
|
+
</div>
|
|
195
|
+
<div list-section>
|
|
196
|
+
<h3 section-title green>검측 완료</h3>
|
|
197
|
+
<ox-grist
|
|
198
|
+
section="pass"
|
|
199
|
+
.mode=${'GRID'}
|
|
200
|
+
.config=${this.gristConfig}
|
|
201
|
+
.fetchHandler=${this._fetchPass.bind(this)}
|
|
202
|
+
></ox-grist>
|
|
203
|
+
</div>
|
|
204
|
+
</div>
|
|
205
|
+
</div>
|
|
206
|
+
</div>
|
|
207
|
+
|
|
208
|
+
<div action-buttons>
|
|
209
|
+
<md-filled-button navy @click=${this._openFieldDocuments}>
|
|
210
|
+
<md-icon slot="icon">search</md-icon>현장 문서 확인
|
|
211
|
+
</md-filled-button>
|
|
212
|
+
<div style="flex:1"></div>
|
|
213
|
+
${this.viewMode === 'calendar'
|
|
214
|
+
? this.dailyWorklog.id
|
|
215
|
+
? html `<md-filled-button green @click=${this._openDailyWorklogPopup}>
|
|
216
|
+
<md-icon slot="icon">edit</md-icon>일일 업무일지 수정
|
|
217
|
+
</md-filled-button>`
|
|
218
|
+
: html `<md-filled-button @click=${this._openDailyWorklogPopup}>
|
|
219
|
+
<md-icon slot="icon">note_add</md-icon>일일 업무일지 작성
|
|
220
|
+
</md-filled-button>`
|
|
221
|
+
: ''}
|
|
222
|
+
${this.viewMode === 'list'
|
|
223
|
+
? html `<md-filled-button red @click=${this._deleteInspections}>
|
|
224
|
+
<md-icon slot="icon">delete</md-icon>검측 삭제
|
|
225
|
+
</md-filled-button>`
|
|
226
|
+
: ''}
|
|
227
|
+
<md-filled-button navy-light @click=${this._openCreateInspection}>
|
|
228
|
+
<md-icon slot="icon">check_circle</md-icon>검측 등록
|
|
229
|
+
</md-filled-button>
|
|
230
|
+
</div>
|
|
231
|
+
`
|
|
232
|
+
: html `
|
|
233
|
+
<div style="display:flex;align-items:center;justify-content:center;flex:1;color:#999;">
|
|
234
|
+
층을 선택하면 작업 현황이 표시됩니다.
|
|
235
|
+
</div>
|
|
236
|
+
`}
|
|
237
|
+
</div>
|
|
238
|
+
</div>
|
|
239
|
+
`;
|
|
240
|
+
}
|
|
241
|
+
async pageUpdated(changes, lifecycle) {
|
|
242
|
+
if (this.active) {
|
|
243
|
+
this.projectId = lifecycle.resourceId || '';
|
|
244
|
+
await this._initProject(this.projectId);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
async pageInitialized(lifecycle) {
|
|
248
|
+
this.gristConfig = {
|
|
249
|
+
columns: [
|
|
250
|
+
{ type: 'gutter', gutterName: 'sequence' },
|
|
251
|
+
{ type: 'gutter', gutterName: 'row-selector', multiple: true },
|
|
252
|
+
{
|
|
253
|
+
type: 'gutter',
|
|
254
|
+
gutterName: 'button',
|
|
255
|
+
icon: 'open_in_new',
|
|
256
|
+
header: '상세보기',
|
|
257
|
+
width: 60,
|
|
258
|
+
handlers: {
|
|
259
|
+
click: (columns, data, column, record, rowIndex) => {
|
|
260
|
+
navigate(`building-inspection-detail-drawing/${record.id}`);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
type: 'string',
|
|
266
|
+
name: 'id',
|
|
267
|
+
hidden: true
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
type: 'string',
|
|
271
|
+
name: 'statusDisplay',
|
|
272
|
+
header: '검측 상태',
|
|
273
|
+
record: { align: 'center' },
|
|
274
|
+
width: 100
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
type: 'string',
|
|
278
|
+
name: 'location',
|
|
279
|
+
header: '위치',
|
|
280
|
+
width: 130
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
type: 'string',
|
|
284
|
+
name: 'constructionType',
|
|
285
|
+
header: '공종',
|
|
286
|
+
width: 120
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
type: 'string',
|
|
290
|
+
name: 'inspectionParts',
|
|
291
|
+
header: '검측 부위',
|
|
292
|
+
record: {
|
|
293
|
+
renderer: value => (value === null || value === void 0 ? void 0 : value.join(', ')) || ''
|
|
294
|
+
},
|
|
295
|
+
width: 200
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
type: 'string',
|
|
299
|
+
name: 'requestDate',
|
|
300
|
+
header: '검측 요청일시',
|
|
301
|
+
width: 150
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
type: 'gutter',
|
|
305
|
+
gutterName: 'button',
|
|
306
|
+
icon: 'fact_check',
|
|
307
|
+
header: '도면',
|
|
308
|
+
width: 50,
|
|
309
|
+
handlers: {
|
|
310
|
+
click: (columns, data, column, record, rowIndex) => {
|
|
311
|
+
this._openDrawingPopup(record);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
type: 'gutter',
|
|
317
|
+
gutterName: 'button',
|
|
318
|
+
icon: 'edit_square',
|
|
319
|
+
header: '요청서/결과통보',
|
|
320
|
+
width: 100,
|
|
321
|
+
handlers: {
|
|
322
|
+
click: (columns, data, column, record, rowIndex) => {
|
|
323
|
+
this._openInspectionRequestDocument(record.id);
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
type: 'gutter',
|
|
329
|
+
gutterName: 'button',
|
|
330
|
+
icon: 'task',
|
|
331
|
+
header: '체크리스트',
|
|
332
|
+
width: 70,
|
|
333
|
+
handlers: {
|
|
334
|
+
click: (columns, data, column, record, rowIndex) => {
|
|
335
|
+
this._openChecklistPopup(record.id);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
type: 'gutter',
|
|
341
|
+
gutterName: 'button',
|
|
342
|
+
icon: 'photo_camera',
|
|
343
|
+
header: '사진대지',
|
|
344
|
+
width: 60,
|
|
345
|
+
handlers: {
|
|
346
|
+
click: (columns, data, column, record, rowIndex) => {
|
|
347
|
+
this._openPhotoAlbumPopup(record.checklistId);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
type: 'gutter',
|
|
353
|
+
gutterName: 'button',
|
|
354
|
+
icon: 'engineering',
|
|
355
|
+
header: '실명부',
|
|
356
|
+
width: 50,
|
|
357
|
+
handlers: {
|
|
358
|
+
click: (columns, data, column, record, rowIndex) => {
|
|
359
|
+
this._showNameListPreview(record);
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
],
|
|
364
|
+
rows: {
|
|
365
|
+
selectable: {
|
|
366
|
+
multiple: true
|
|
367
|
+
},
|
|
368
|
+
appendable: false
|
|
369
|
+
},
|
|
370
|
+
sorters: [{ name: 'requestDate' }]
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
async _initProject(projectId = '') {
|
|
374
|
+
var _a, _b, _c;
|
|
375
|
+
const response = await client.query({
|
|
376
|
+
query: gql `
|
|
377
|
+
query Project($id: String!) {
|
|
378
|
+
project(id: $id) {
|
|
379
|
+
id
|
|
380
|
+
name
|
|
381
|
+
projectType
|
|
382
|
+
mainPhoto {
|
|
383
|
+
fullpath
|
|
384
|
+
}
|
|
385
|
+
buildingComplex {
|
|
386
|
+
id
|
|
387
|
+
drawing {
|
|
388
|
+
id
|
|
389
|
+
name
|
|
390
|
+
fullpath
|
|
391
|
+
}
|
|
392
|
+
buildings {
|
|
393
|
+
id
|
|
394
|
+
name
|
|
395
|
+
drawing {
|
|
396
|
+
id
|
|
397
|
+
name
|
|
398
|
+
fullpath
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
`,
|
|
405
|
+
variables: {
|
|
406
|
+
id: projectId
|
|
407
|
+
}
|
|
408
|
+
});
|
|
409
|
+
if (response.errors)
|
|
410
|
+
return;
|
|
411
|
+
this.project = (_a = response.data) === null || _a === void 0 ? void 0 : _a.project;
|
|
412
|
+
// 첫번째 빌딩 선택
|
|
413
|
+
this.selectedBuilding = (_c = (_b = this.project) === null || _b === void 0 ? void 0 : _b.buildingComplex) === null || _c === void 0 ? void 0 : _c.buildings[0];
|
|
414
|
+
if (this.selectedBuilding) {
|
|
415
|
+
await this._getBuilding(this.selectedBuilding.id);
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
async _getBuilding(buildingId = '') {
|
|
419
|
+
var _a;
|
|
420
|
+
const response = await client.query({
|
|
421
|
+
query: gql `
|
|
422
|
+
query Building($id: String!) {
|
|
423
|
+
building(id: $id) {
|
|
424
|
+
id
|
|
425
|
+
buildingLevels {
|
|
426
|
+
id
|
|
427
|
+
floor
|
|
428
|
+
floorDisplayName
|
|
429
|
+
mainDrawing {
|
|
430
|
+
id
|
|
431
|
+
name
|
|
432
|
+
fullpath
|
|
433
|
+
}
|
|
434
|
+
mainDrawingImage
|
|
435
|
+
inspectionSummary {
|
|
436
|
+
wait
|
|
437
|
+
request
|
|
438
|
+
pass
|
|
439
|
+
fail
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
`,
|
|
445
|
+
variables: {
|
|
446
|
+
id: buildingId
|
|
447
|
+
}
|
|
448
|
+
});
|
|
449
|
+
if (response.errors)
|
|
450
|
+
return;
|
|
451
|
+
this.building = (_a = response.data) === null || _a === void 0 ? void 0 : _a.building;
|
|
452
|
+
// 왼쪽 패널 스크롤을 맨 아래로
|
|
453
|
+
await this.updateComplete;
|
|
454
|
+
if (this.leftPanel) {
|
|
455
|
+
this.leftPanel.scrollTop = this.leftPanel.scrollHeight;
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
async _onClickBuilding(building) {
|
|
459
|
+
this.selectedBuilding = Object.assign({}, building);
|
|
460
|
+
this.buildingLevelId = '';
|
|
461
|
+
this.buildingInspectionSummary = {};
|
|
462
|
+
await this._getBuilding(this.selectedBuilding.id);
|
|
463
|
+
}
|
|
464
|
+
async _onSelectFloor(levelId) {
|
|
465
|
+
this.buildingLevelId = levelId;
|
|
466
|
+
await this._initBuildingLevel(levelId);
|
|
467
|
+
}
|
|
468
|
+
async _initBuildingLevel(buildingLevelId) {
|
|
469
|
+
var _a;
|
|
470
|
+
const response = await client.query({
|
|
471
|
+
query: gql `
|
|
472
|
+
query BuildingInspectionSummaryOfBuildingLevel($buildingLevelId: String!) {
|
|
473
|
+
buildingInspectionSummaryOfBuildingLevel(buildingLevelId: $buildingLevelId) {
|
|
474
|
+
wait
|
|
475
|
+
request
|
|
476
|
+
pass
|
|
477
|
+
fail
|
|
478
|
+
reWait
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
`,
|
|
482
|
+
variables: {
|
|
483
|
+
buildingLevelId
|
|
484
|
+
}
|
|
485
|
+
});
|
|
486
|
+
if (response.errors)
|
|
487
|
+
return;
|
|
488
|
+
this.buildingInspectionSummary = (_a = response.data) === null || _a === void 0 ? void 0 : _a.buildingInspectionSummaryOfBuildingLevel;
|
|
489
|
+
// 달력 데이터 생성
|
|
490
|
+
this.calendarData = new InspectionEventProvider(buildingLevelId, this.project.id);
|
|
491
|
+
// 달력 최소 높이 속성 수정
|
|
492
|
+
await this.updateComplete;
|
|
493
|
+
// 일일 업무일지 조회
|
|
494
|
+
await this._fetchDailyWorklog(this.selectedDate);
|
|
495
|
+
// 목록 모드일 경우 그리스트 갱신
|
|
496
|
+
this._refreshListGrists();
|
|
497
|
+
}
|
|
498
|
+
async _fetchInspectionsByStatus(statuses, { page = 1, limit = 100 }, extraFilter) {
|
|
499
|
+
var _a, _b;
|
|
500
|
+
if (!this.buildingLevelId)
|
|
501
|
+
return { total: 0, records: [] };
|
|
502
|
+
const response = await client.query({
|
|
503
|
+
query: gql `
|
|
504
|
+
query BuildingInspectionsOfBuildingLevel($params: BuildingInspectionsOfBuildingLevel!) {
|
|
505
|
+
buildingInspectionsOfBuildingLevel(params: $params) {
|
|
506
|
+
items {
|
|
507
|
+
id
|
|
508
|
+
status
|
|
509
|
+
failCount
|
|
510
|
+
requestDate
|
|
511
|
+
|
|
512
|
+
checklist {
|
|
513
|
+
checklistId: id
|
|
514
|
+
name
|
|
515
|
+
constructionType
|
|
516
|
+
constructionDetailType
|
|
517
|
+
location
|
|
518
|
+
inspectionParts
|
|
519
|
+
inspectionDrawingType
|
|
520
|
+
|
|
521
|
+
nameListAttachment {
|
|
522
|
+
id
|
|
523
|
+
name
|
|
524
|
+
fullpath
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
drawingMarker
|
|
528
|
+
}
|
|
529
|
+
total
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
`,
|
|
533
|
+
variables: {
|
|
534
|
+
params: {
|
|
535
|
+
buildingLevelId: this.buildingLevelId,
|
|
536
|
+
limit: 0
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
});
|
|
540
|
+
let items = ((_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.buildingInspectionsOfBuildingLevel) === null || _b === void 0 ? void 0 : _b.items) || [];
|
|
541
|
+
// 상태별 필터링
|
|
542
|
+
items = items.filter(item => statuses.includes(item.status));
|
|
543
|
+
if (extraFilter) {
|
|
544
|
+
items = items.filter(extraFilter);
|
|
545
|
+
}
|
|
546
|
+
items = items.map(item => (Object.assign(Object.assign(Object.assign({}, item), item.checklist), { statusDisplay: (item.failCount > 0 ? BUILDING_INSPECTION_RE_STATUS_DISPLAY : BUILDING_INSPECTION_STATUS_DISPLAY)[item.status], requestDate: this._formatDateTime(item.requestDate) })));
|
|
547
|
+
return {
|
|
548
|
+
total: items.length,
|
|
549
|
+
records: items
|
|
550
|
+
};
|
|
551
|
+
}
|
|
552
|
+
async _fetchWaitFail(options) {
|
|
553
|
+
return this._fetchInspectionsByStatus([BuildingInspectionStatus.WAIT, BuildingInspectionStatus.OVERALL_WAIT, BuildingInspectionStatus.FAIL], options,
|
|
554
|
+
// 재검측 대기(failCount > 0인 WAIT) 제외
|
|
555
|
+
item => !((item.status === BuildingInspectionStatus.WAIT || item.status === BuildingInspectionStatus.OVERALL_WAIT) &&
|
|
556
|
+
(item.failCount || 0) > 0));
|
|
557
|
+
}
|
|
558
|
+
async _fetchRequest(options) {
|
|
559
|
+
return this._fetchInspectionsByStatus([
|
|
560
|
+
BuildingInspectionStatus.REQUEST,
|
|
561
|
+
BuildingInspectionStatus.OVERALL_REQUEST,
|
|
562
|
+
BuildingInspectionStatus.WAIT,
|
|
563
|
+
BuildingInspectionStatus.OVERALL_WAIT
|
|
564
|
+
], options,
|
|
565
|
+
// REQUEST/OVERALL_REQUEST 전체 + 재검측 대기(failCount > 0인 WAIT)만
|
|
566
|
+
item => item.status === BuildingInspectionStatus.REQUEST ||
|
|
567
|
+
item.status === BuildingInspectionStatus.OVERALL_REQUEST ||
|
|
568
|
+
((item.status === BuildingInspectionStatus.WAIT || item.status === BuildingInspectionStatus.OVERALL_WAIT) &&
|
|
569
|
+
(item.failCount || 0) > 0));
|
|
570
|
+
}
|
|
571
|
+
async _fetchPass(options) {
|
|
572
|
+
return this._fetchInspectionsByStatus([BuildingInspectionStatus.PASS], options);
|
|
573
|
+
}
|
|
574
|
+
_setViewMode(mode) {
|
|
575
|
+
this.viewMode = mode;
|
|
576
|
+
if (mode === 'list') {
|
|
577
|
+
this.updateComplete.then(() => this._refreshListGrists());
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
_refreshListGrists() {
|
|
581
|
+
if (this.viewMode === 'list') {
|
|
582
|
+
this.updateComplete.then(() => {
|
|
583
|
+
var _a, _b, _c;
|
|
584
|
+
(_a = this.gristWaitFail) === null || _a === void 0 ? void 0 : _a.fetch();
|
|
585
|
+
(_b = this.gristRequest) === null || _b === void 0 ? void 0 : _b.fetch();
|
|
586
|
+
(_c = this.gristPass) === null || _c === void 0 ? void 0 : _c.fetch();
|
|
587
|
+
});
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
_formatDateTime(date) {
|
|
591
|
+
if (!date)
|
|
592
|
+
return '';
|
|
593
|
+
try {
|
|
594
|
+
const parsed = typeof date === 'string' && /^\d+$/.test(date) ? new Date(Number(date)) : new Date(date);
|
|
595
|
+
return new Intl.DateTimeFormat('ko-KR', {
|
|
596
|
+
timeZone: 'Asia/Seoul',
|
|
597
|
+
year: 'numeric',
|
|
598
|
+
month: '2-digit',
|
|
599
|
+
day: '2-digit',
|
|
600
|
+
hour: '2-digit',
|
|
601
|
+
minute: '2-digit',
|
|
602
|
+
hour12: false
|
|
603
|
+
}).format(parsed);
|
|
604
|
+
}
|
|
605
|
+
catch (_a) {
|
|
606
|
+
return '';
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
_openDailyWorklogPopup() {
|
|
610
|
+
const date = this.selectedDate;
|
|
611
|
+
openPopup(html `<daily-worklog-popup
|
|
612
|
+
.project=${this.project}
|
|
613
|
+
.date=${date}
|
|
614
|
+
.dailyWorklog=${this.dailyWorklog}
|
|
615
|
+
.mode=${this.dailyWorklog.id ? DailyWorklogMode.EDIT : DailyWorklogMode.CREATE}
|
|
616
|
+
@createdDailyWorklog=${this._refreshCalendar.bind(this)}
|
|
617
|
+
@updatedDailyWorklog=${() => this._fetchDailyWorklog(this.selectedDate)}
|
|
618
|
+
></daily-worklog-popup>`, {
|
|
619
|
+
backdrop: true,
|
|
620
|
+
size: 'large',
|
|
621
|
+
title: '일일 업무일지 작성'
|
|
622
|
+
});
|
|
623
|
+
}
|
|
624
|
+
async _deleteInspections() {
|
|
625
|
+
var _a, _b, _c;
|
|
626
|
+
const allSelected = [
|
|
627
|
+
...(((_a = this.gristWaitFail) === null || _a === void 0 ? void 0 : _a.selected) || []),
|
|
628
|
+
...(((_b = this.gristRequest) === null || _b === void 0 ? void 0 : _b.selected) || []),
|
|
629
|
+
...(((_c = this.gristPass) === null || _c === void 0 ? void 0 : _c.selected) || [])
|
|
630
|
+
];
|
|
631
|
+
const ids = allSelected.map(record => record.id);
|
|
632
|
+
if (!ids.length) {
|
|
633
|
+
notify({ message: '삭제할 항목을 선택해주세요.', level: 'info' });
|
|
634
|
+
return;
|
|
635
|
+
}
|
|
636
|
+
if (confirm('삭제하시겠습니까?')) {
|
|
637
|
+
const response = await client.mutate({
|
|
638
|
+
mutation: gql `
|
|
639
|
+
mutation ($ids: [String!]!) {
|
|
640
|
+
deleteBuildingInspections(ids: $ids)
|
|
641
|
+
}
|
|
642
|
+
`,
|
|
643
|
+
variables: { ids }
|
|
644
|
+
});
|
|
645
|
+
if (!response.errors) {
|
|
646
|
+
this._refreshListGrists();
|
|
647
|
+
this._initBuildingLevel(this.buildingLevelId);
|
|
648
|
+
notify({ message: '삭제되었습니다.' });
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
_openCreateInspection() {
|
|
653
|
+
openPopup(html `
|
|
654
|
+
<inspection-with-checklist-create-popup
|
|
655
|
+
.projectId=${this.project.id}
|
|
656
|
+
.selectedBuildingId=${this.selectedBuilding.id}
|
|
657
|
+
.selectedBuildingLevelId=${this.buildingLevelId}
|
|
658
|
+
@requestRefresh="${() => {
|
|
659
|
+
this._initBuildingLevel(this.buildingLevelId);
|
|
660
|
+
this._getBuilding(this.selectedBuilding.id);
|
|
661
|
+
}}"
|
|
662
|
+
></inspection-with-checklist-create-popup>
|
|
663
|
+
`, { backdrop: true, size: 'large', title: '검측 등록' });
|
|
664
|
+
}
|
|
665
|
+
// TODO: 현장 문서 확인 기능 구현
|
|
666
|
+
_openFieldDocuments() {
|
|
667
|
+
notify({ message: '현장 문서 확인 기능은 준비 중입니다.', level: 'info' });
|
|
668
|
+
}
|
|
669
|
+
async _openDrawingPopup(buildingInspection) {
|
|
670
|
+
const drawingImageProvider = new DrawingImageProvider();
|
|
671
|
+
const inspectionDrawingType = buildingInspection.inspectionDrawingType;
|
|
672
|
+
const drawingShapes = JSON.parse((buildingInspection === null || buildingInspection === void 0 ? void 0 : buildingInspection.drawingMarker) || null) || [];
|
|
673
|
+
const markers = await drawingImageProvider.getMarkers(inspectionDrawingType);
|
|
674
|
+
const imageUrl = String(inspectionDrawingType).normalize('NFC');
|
|
675
|
+
const shapes = [...drawingShapes, ...markers];
|
|
676
|
+
openPopup(html `<ox-image-marker-view
|
|
677
|
+
style="pointer-events: none;"
|
|
678
|
+
id="image-marker"
|
|
679
|
+
.imageUrl=${imageUrl}
|
|
680
|
+
.shapes=${shapes}
|
|
681
|
+
.imageProvider=${drawingImageProvider}
|
|
682
|
+
></ox-image-marker-view>`, { backdrop: true, size: 'large', title: '검측 도면' });
|
|
683
|
+
}
|
|
684
|
+
async _openInspectionRequestDocument(buildingInspectionId) {
|
|
685
|
+
const buildingInspection = await getBuildingInspectionForChecklist(buildingInspectionId);
|
|
686
|
+
if (!buildingInspection.checklist.inspectionRequestUpdatedAt) {
|
|
687
|
+
notify({ message: '검측 요청서가 없습니다.', level: 'info' });
|
|
688
|
+
return;
|
|
689
|
+
}
|
|
690
|
+
openPopup(html `
|
|
691
|
+
<div style="overflow-y: auto;">
|
|
692
|
+
<inspection-request-document
|
|
693
|
+
.checklist=${buildingInspection.checklist}
|
|
694
|
+
.buildingInspection=${buildingInspection}
|
|
695
|
+
.mode=${InspectionMode.VIEW}
|
|
696
|
+
></inspection-request-document>
|
|
697
|
+
|
|
698
|
+
${buildingInspection.checklist.inspectionResultUpdatedAt
|
|
699
|
+
? html `
|
|
700
|
+
<hr />
|
|
701
|
+
<inspection-result-notification
|
|
702
|
+
.checklist=${buildingInspection.checklist}
|
|
703
|
+
.buildingInspection=${buildingInspection}
|
|
704
|
+
.mode=${InspectionMode.VIEW}
|
|
705
|
+
></inspection-result-notification>
|
|
706
|
+
`
|
|
707
|
+
: ''}
|
|
708
|
+
</div>
|
|
709
|
+
`, { backdrop: true, size: 'large', title: '검측요청결과 통보내용' });
|
|
710
|
+
}
|
|
711
|
+
async _openChecklistPopup(buildingInspectionId) {
|
|
712
|
+
var _a, _b;
|
|
713
|
+
const buildingInspection = await getBuildingInspectionForChecklist(buildingInspectionId);
|
|
714
|
+
openPopup(html `
|
|
715
|
+
<div style="overflow-y: auto;">
|
|
716
|
+
<checklist-view
|
|
717
|
+
.mode=${"VIEWER" /* ChecklistMode.VIEWER */}
|
|
718
|
+
.checklist=${buildingInspection === null || buildingInspection === void 0 ? void 0 : buildingInspection.checklist}
|
|
719
|
+
.buildingComplex=${((_b = (_a = buildingInspection === null || buildingInspection === void 0 ? void 0 : buildingInspection.buildingLevel) === null || _a === void 0 ? void 0 : _a.building) === null || _b === void 0 ? void 0 : _b.buildingComplex) || {}}
|
|
720
|
+
.status=${buildingInspection === null || buildingInspection === void 0 ? void 0 : buildingInspection.status}
|
|
721
|
+
.failCount=${(buildingInspection === null || buildingInspection === void 0 ? void 0 : buildingInspection.failCount) || 0}
|
|
722
|
+
.projectType=${this.project.projectType}
|
|
723
|
+
></checklist-view>
|
|
724
|
+
</div>
|
|
725
|
+
`, { backdrop: true, size: 'large', title: '체크 리스트 미리보기' });
|
|
726
|
+
}
|
|
727
|
+
_openPhotoAlbumPopup(checklistId) {
|
|
728
|
+
openPopup(html `<photo-album-popup .checklistId=${checklistId}></photo-album-popup>`, {
|
|
729
|
+
backdrop: true,
|
|
730
|
+
size: 'large',
|
|
731
|
+
title: '사진대지'
|
|
732
|
+
});
|
|
733
|
+
}
|
|
734
|
+
_showNameListPreview(record) {
|
|
735
|
+
const nameListAttachment = record.nameListAttachment;
|
|
736
|
+
if (!nameListAttachment) {
|
|
737
|
+
notify({ message: '실명부 파일이 없습니다.', level: 'info' });
|
|
738
|
+
return;
|
|
739
|
+
}
|
|
740
|
+
openPopup(html `
|
|
741
|
+
<image-preview-popup
|
|
742
|
+
.images=${[{ fullpath: nameListAttachment.fullpath, name: nameListAttachment.name }]}
|
|
743
|
+
.currentIndex=${0}
|
|
744
|
+
></image-preview-popup>
|
|
745
|
+
`, { backdrop: true, size: 'large', title: '실명부' });
|
|
746
|
+
}
|
|
747
|
+
async _refreshCalendar() {
|
|
748
|
+
this.calendarData = new InspectionEventProvider(this.buildingLevelId, this.project.id);
|
|
749
|
+
await this._fetchDailyWorklog(this.selectedDate);
|
|
750
|
+
}
|
|
751
|
+
async _fetchDailyWorklog(date = '') {
|
|
752
|
+
var _a;
|
|
753
|
+
if (!date || !this.project.id)
|
|
754
|
+
return;
|
|
755
|
+
const response = await client.query({
|
|
756
|
+
query: gql `
|
|
757
|
+
query ($projectId: String!, $date: String!) {
|
|
758
|
+
buildingInspectionDailyWorklogByProjectIdAndDate(projectId: $projectId, date: $date) {
|
|
759
|
+
id
|
|
760
|
+
date
|
|
761
|
+
documentNo
|
|
762
|
+
worklogs
|
|
763
|
+
memo
|
|
764
|
+
directiveMemo
|
|
765
|
+
taskSupervisorySignature
|
|
766
|
+
overallSupervisorySignature
|
|
767
|
+
|
|
768
|
+
taskSupervisory {
|
|
769
|
+
id
|
|
770
|
+
name
|
|
771
|
+
}
|
|
772
|
+
overallSupervisory {
|
|
773
|
+
id
|
|
774
|
+
name
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
buildingInspections {
|
|
778
|
+
id
|
|
779
|
+
|
|
780
|
+
checklist {
|
|
781
|
+
overallSupervisorySignature
|
|
782
|
+
taskSupervisorySignature
|
|
783
|
+
taskSupervisory {
|
|
784
|
+
id
|
|
785
|
+
name
|
|
786
|
+
}
|
|
787
|
+
overallSupervisory {
|
|
788
|
+
id
|
|
789
|
+
name
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
`,
|
|
796
|
+
variables: { projectId: this.project.id, date }
|
|
797
|
+
});
|
|
798
|
+
this.dailyWorklog = ((_a = response.data) === null || _a === void 0 ? void 0 : _a.buildingInspectionDailyWorklogByProjectIdAndDate) || {};
|
|
799
|
+
}
|
|
800
|
+
};
|
|
801
|
+
BuildingInspectionManagement.styles = [
|
|
802
|
+
ScrollbarStyles,
|
|
803
|
+
CommonGristStyles,
|
|
804
|
+
css `
|
|
805
|
+
:host {
|
|
806
|
+
display: grid;
|
|
807
|
+
grid-template-rows: 55px 1fr;
|
|
808
|
+
color: #4e5055;
|
|
809
|
+
|
|
810
|
+
width: 100%;
|
|
811
|
+
height: 100%;
|
|
812
|
+
background-color: var(--md-sys-color-background, #f6f6f6);
|
|
813
|
+
overflow: hidden;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
md-filled-button {
|
|
817
|
+
--md-filled-button-container-color: #0595e5;
|
|
818
|
+
--md-filled-button-container-height: 30px;
|
|
819
|
+
--md-filled-button-trailing-space: 15px;
|
|
820
|
+
--md-filled-button-leading-space: 15px;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
md-filled-button[green] {
|
|
824
|
+
--md-filled-button-container-color: #008000;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
md-outlined-button {
|
|
828
|
+
--md-outlined-button-container-height: 30px;
|
|
829
|
+
--md-outlined-button-trailing-space: var(--spacing-medium, 8px);
|
|
830
|
+
--md-outlined-button-leading-space: var(--spacing-medium, 8px);
|
|
831
|
+
--md-sys-color-outline: rgba(51, 51, 51, 0.2);
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
*[bold] {
|
|
835
|
+
font-weight: bold;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
div[header] {
|
|
839
|
+
display: flex;
|
|
840
|
+
margin: 0px var(--spacing-large, 12px);
|
|
841
|
+
|
|
842
|
+
h2 {
|
|
843
|
+
display: flex;
|
|
844
|
+
gap: 7px;
|
|
845
|
+
flex: 0.5;
|
|
846
|
+
color: #3f71a0;
|
|
847
|
+
font-size: 18px;
|
|
848
|
+
|
|
849
|
+
md-icon[back] {
|
|
850
|
+
background: linear-gradient(135deg, #3f71a0 0%, #5a8cc7 100%);
|
|
851
|
+
color: white;
|
|
852
|
+
padding: 8px;
|
|
853
|
+
border-radius: 50%;
|
|
854
|
+
cursor: pointer;
|
|
855
|
+
box-shadow: 0 2px 8px rgba(63, 113, 160, 0.3);
|
|
856
|
+
width: 14px;
|
|
857
|
+
height: 14px;
|
|
858
|
+
--md-icon-size: 20px;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
md-icon[back]:hover {
|
|
862
|
+
background: linear-gradient(135deg, #2e5c89 0%, #4a7bb0 100%);
|
|
863
|
+
box-shadow: 0 4px 12px rgba(63, 113, 160, 0.4);
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
div[header] div[button-container] {
|
|
869
|
+
display: flex;
|
|
870
|
+
align-items: center;
|
|
871
|
+
justify-content: end;
|
|
872
|
+
flex: 0.5;
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
div[body] {
|
|
876
|
+
display: grid;
|
|
877
|
+
grid-template-columns: 4fr 6fr;
|
|
878
|
+
margin: var(--spacing-large, 12px);
|
|
879
|
+
margin-top: 0;
|
|
880
|
+
gap: var(--spacing-medium, 8px);
|
|
881
|
+
overflow: hidden;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
h3 {
|
|
885
|
+
color: #2e79be;
|
|
886
|
+
font-size: 16px;
|
|
887
|
+
margin: 0px;
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
div[body] > div {
|
|
891
|
+
display: flex;
|
|
892
|
+
gap: var(--spacing-medium, 8px);
|
|
893
|
+
padding: var(--spacing-large, 12px);
|
|
894
|
+
border-radius: 5px;
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
div[left] {
|
|
898
|
+
flex-direction: column;
|
|
899
|
+
background-color: var(--md-sys-color-on-primary);
|
|
900
|
+
border: 1px solid #cccccc80;
|
|
901
|
+
overflow-y: auto;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
div[subject] {
|
|
905
|
+
margin-bottom: var(--spacing-small, 4px);
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
div[building-container] {
|
|
909
|
+
display: block;
|
|
910
|
+
|
|
911
|
+
& > * {
|
|
912
|
+
margin-right: var(--spacing-medium, 8px);
|
|
913
|
+
margin-bottom: var(--spacing-medium, 8px);
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
div[right] {
|
|
918
|
+
height: auto;
|
|
919
|
+
overflow-x: hidden;
|
|
920
|
+
overflow-y: auto;
|
|
921
|
+
flex-direction: column;
|
|
922
|
+
position: relative;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
ox-select-floor {
|
|
926
|
+
width: 100%;
|
|
927
|
+
align-content: flex-end;
|
|
928
|
+
|
|
929
|
+
--ox-select-floor-rotate-x: 60deg;
|
|
930
|
+
--ox-select-floor-rotate-x-active: 30deg;
|
|
931
|
+
--ox-select-floor-perspective: 1200px;
|
|
932
|
+
|
|
933
|
+
user-select: none;
|
|
934
|
+
overflow-y: auto;
|
|
935
|
+
flex: 1;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
div[status] {
|
|
939
|
+
display: flex;
|
|
940
|
+
position: absolute;
|
|
941
|
+
right: 0px;
|
|
942
|
+
bottom: 0px;
|
|
943
|
+
align-items: center;
|
|
944
|
+
z-index: 2;
|
|
945
|
+
right: 3%;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
div[status] > div[content] {
|
|
949
|
+
display: flex;
|
|
950
|
+
background-color: #4e5055;
|
|
951
|
+
color: #fff;
|
|
952
|
+
padding: var(--spacing-small, 4px) var(--spacing-medium, 8px);
|
|
953
|
+
border-radius: 5px;
|
|
954
|
+
gap: var(--spacing-medium, 8px);
|
|
955
|
+
font-size: 14px;
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
div[status] span {
|
|
959
|
+
display: flex;
|
|
960
|
+
align-items: center;
|
|
961
|
+
width: 40px;
|
|
962
|
+
font-weight: bold;
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
div[status] md-icon {
|
|
966
|
+
width: 16px;
|
|
967
|
+
height: 16px;
|
|
968
|
+
margin-right: var(--spacing-small, 4px);
|
|
969
|
+
border-radius: 5px;
|
|
970
|
+
font-size: 16px;
|
|
971
|
+
font-weight: 700;
|
|
972
|
+
}
|
|
973
|
+
div[status] md-icon[wait] {
|
|
974
|
+
background-color: #f7f7f7;
|
|
975
|
+
color: #4e5055;
|
|
976
|
+
}
|
|
977
|
+
div[status] md-icon[request] {
|
|
978
|
+
background-color: #f7f7f7;
|
|
979
|
+
color: #4e5055;
|
|
980
|
+
}
|
|
981
|
+
div[status] md-icon[pass] {
|
|
982
|
+
background-color: #4bbb4a;
|
|
983
|
+
}
|
|
984
|
+
div[status] md-icon[fail] {
|
|
985
|
+
background-color: #ff4444;
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
span[name] {
|
|
989
|
+
color: #4e5055;
|
|
990
|
+
margin-left: var(--spacing-small, 4px);
|
|
991
|
+
padding: var(--spacing-tiny, 2px) var(--spacing-small, 4px);
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
span[name][active] {
|
|
995
|
+
color: var(--md-sys-color-on-error);
|
|
996
|
+
background-color: var(--md-sys-color-error);
|
|
997
|
+
border-radius: 5px;
|
|
998
|
+
opacity: 0.7;
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
/* 오른쪽 패널 */
|
|
1002
|
+
div[right-panel] {
|
|
1003
|
+
display: flex;
|
|
1004
|
+
flex-direction: column;
|
|
1005
|
+
overflow: hidden;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
div[inspection-container] {
|
|
1009
|
+
gap: var(--spacing-medium, 8px);
|
|
1010
|
+
display: flex;
|
|
1011
|
+
flex-direction: column;
|
|
1012
|
+
flex: 1;
|
|
1013
|
+
min-height: 0;
|
|
1014
|
+
|
|
1015
|
+
div[inspection] {
|
|
1016
|
+
display: grid;
|
|
1017
|
+
grid-template-columns: 90px 1fr 1fr 1fr 1fr 1fr;
|
|
1018
|
+
background: #ebc8321a;
|
|
1019
|
+
border-radius: 5px;
|
|
1020
|
+
padding: var(--spacing-medium, 8px) var(--spacing-large, 12px);
|
|
1021
|
+
|
|
1022
|
+
& > div {
|
|
1023
|
+
display: flex;
|
|
1024
|
+
flex-direction: column;
|
|
1025
|
+
align-items: center;
|
|
1026
|
+
justify-content: center;
|
|
1027
|
+
|
|
1028
|
+
span::before {
|
|
1029
|
+
display: inline-block;
|
|
1030
|
+
position: relative;
|
|
1031
|
+
content: '';
|
|
1032
|
+
width: 10px;
|
|
1033
|
+
height: 10px;
|
|
1034
|
+
border-radius: 6px;
|
|
1035
|
+
top: -1px;
|
|
1036
|
+
margin-right: 2px;
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
span[status='wait']::before {
|
|
1040
|
+
background-color: #4e5055;
|
|
1041
|
+
}
|
|
1042
|
+
span[status='request']::before {
|
|
1043
|
+
background-color: #2e79be;
|
|
1044
|
+
}
|
|
1045
|
+
span[status='pass']::before {
|
|
1046
|
+
background-color: #1bb401;
|
|
1047
|
+
}
|
|
1048
|
+
span[status='fail']::before {
|
|
1049
|
+
background-color: #ff4444;
|
|
1050
|
+
}
|
|
1051
|
+
span[status='re-wait']::before {
|
|
1052
|
+
background-color: #e89c0e;
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
& > div[name] {
|
|
1056
|
+
flex-direction: row;
|
|
1057
|
+
text-align: right;
|
|
1058
|
+
gap: var(--spacing-small, 4px);
|
|
1059
|
+
padding-right: var(--spacing-large, 12px);
|
|
1060
|
+
border-right: 2px dotted #ccc;
|
|
1061
|
+
max-width: 100%;
|
|
1062
|
+
line-height: 1.3;
|
|
1063
|
+
|
|
1064
|
+
md-icon {
|
|
1065
|
+
width: 40px;
|
|
1066
|
+
height: 40px;
|
|
1067
|
+
border-radius: 5px;
|
|
1068
|
+
color: #fff;
|
|
1069
|
+
background: #f16154;
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
div[view-toggle] {
|
|
1076
|
+
display: flex;
|
|
1077
|
+
justify-content: flex-end;
|
|
1078
|
+
gap: var(--spacing-small, 4px);
|
|
1079
|
+
|
|
1080
|
+
md-icon {
|
|
1081
|
+
cursor: pointer;
|
|
1082
|
+
padding: 4px;
|
|
1083
|
+
border-radius: 4px;
|
|
1084
|
+
font-size: 24px;
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
md-icon[active] {
|
|
1088
|
+
background-color: #0595e5;
|
|
1089
|
+
color: white;
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
ox-event-view {
|
|
1094
|
+
flex: 1;
|
|
1095
|
+
overflow-y: auto;
|
|
1096
|
+
--calendar-monthly-date-min-height: 50px;
|
|
1097
|
+
height: 100%;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
div[calendar-wrapper] {
|
|
1101
|
+
flex: 1;
|
|
1102
|
+
min-height: 0;
|
|
1103
|
+
overflow-y: auto;
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
div[list-wrapper] {
|
|
1107
|
+
flex: 1;
|
|
1108
|
+
min-height: 0;
|
|
1109
|
+
overflow-y: auto;
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
div[action-buttons] {
|
|
1113
|
+
flex-shrink: 0;
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
div[list-view] {
|
|
1117
|
+
display: flex;
|
|
1118
|
+
flex-direction: column;
|
|
1119
|
+
gap: var(--spacing-medium, 8px);
|
|
1120
|
+
overflow-y: auto;
|
|
1121
|
+
flex: 1;
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
div[list-section] {
|
|
1125
|
+
display: flex;
|
|
1126
|
+
flex-direction: column;
|
|
1127
|
+
gap: var(--spacing-small, 4px);
|
|
1128
|
+
|
|
1129
|
+
h3[section-title] {
|
|
1130
|
+
color: #e15757;
|
|
1131
|
+
font-size: 14px;
|
|
1132
|
+
margin: 0;
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
h3[section-title][blue] {
|
|
1136
|
+
color: #3395f1;
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
h3[section-title][green] {
|
|
1140
|
+
color: #1bb401;
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
ox-grist {
|
|
1145
|
+
overflow-y: auto;
|
|
1146
|
+
flex: 1;
|
|
1147
|
+
min-height: 150px;
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
div[action-buttons] {
|
|
1151
|
+
display: flex;
|
|
1152
|
+
justify-content: center;
|
|
1153
|
+
gap: var(--spacing-medium, 8px);
|
|
1154
|
+
padding: var(--spacing-medium, 8px) 0;
|
|
1155
|
+
|
|
1156
|
+
md-filled-button {
|
|
1157
|
+
--md-filled-button-container-height: 40px;
|
|
1158
|
+
--md-filled-button-trailing-space: 20px;
|
|
1159
|
+
--md-filled-button-leading-space: 20px;
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
md-filled-button[green] {
|
|
1163
|
+
--md-filled-button-container-color: #008000;
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
md-filled-button[red] {
|
|
1167
|
+
--md-filled-button-container-color: #e15757;
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
md-filled-button[navy] {
|
|
1171
|
+
--md-filled-button-container-color: #3f71a0;
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
md-filled-button[navy-light] {
|
|
1175
|
+
--md-filled-button-container-color: #2e8b8b;
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
`
|
|
1179
|
+
];
|
|
1180
|
+
__decorate([
|
|
1181
|
+
state(),
|
|
1182
|
+
__metadata("design:type", String)
|
|
1183
|
+
], BuildingInspectionManagement.prototype, "projectId", void 0);
|
|
1184
|
+
__decorate([
|
|
1185
|
+
state(),
|
|
1186
|
+
__metadata("design:type", Object)
|
|
1187
|
+
], BuildingInspectionManagement.prototype, "project", void 0);
|
|
1188
|
+
__decorate([
|
|
1189
|
+
state(),
|
|
1190
|
+
__metadata("design:type", Object)
|
|
1191
|
+
], BuildingInspectionManagement.prototype, "selectedBuilding", void 0);
|
|
1192
|
+
__decorate([
|
|
1193
|
+
state(),
|
|
1194
|
+
__metadata("design:type", Object)
|
|
1195
|
+
], BuildingInspectionManagement.prototype, "building", void 0);
|
|
1196
|
+
__decorate([
|
|
1197
|
+
state(),
|
|
1198
|
+
__metadata("design:type", Number)
|
|
1199
|
+
], BuildingInspectionManagement.prototype, "currentFloor", void 0);
|
|
1200
|
+
__decorate([
|
|
1201
|
+
state(),
|
|
1202
|
+
__metadata("design:type", String)
|
|
1203
|
+
], BuildingInspectionManagement.prototype, "buildingLevelId", void 0);
|
|
1204
|
+
__decorate([
|
|
1205
|
+
state(),
|
|
1206
|
+
__metadata("design:type", Object)
|
|
1207
|
+
], BuildingInspectionManagement.prototype, "buildingInspectionSummary", void 0);
|
|
1208
|
+
__decorate([
|
|
1209
|
+
state(),
|
|
1210
|
+
__metadata("design:type", Object)
|
|
1211
|
+
], BuildingInspectionManagement.prototype, "calendarData", void 0);
|
|
1212
|
+
__decorate([
|
|
1213
|
+
state(),
|
|
1214
|
+
__metadata("design:type", String)
|
|
1215
|
+
], BuildingInspectionManagement.prototype, "selectedYearMonth", void 0);
|
|
1216
|
+
__decorate([
|
|
1217
|
+
state(),
|
|
1218
|
+
__metadata("design:type", String)
|
|
1219
|
+
], BuildingInspectionManagement.prototype, "selectedDate", void 0);
|
|
1220
|
+
__decorate([
|
|
1221
|
+
state(),
|
|
1222
|
+
__metadata("design:type", Object)
|
|
1223
|
+
], BuildingInspectionManagement.prototype, "dailyWorklog", void 0);
|
|
1224
|
+
__decorate([
|
|
1225
|
+
state(),
|
|
1226
|
+
__metadata("design:type", String)
|
|
1227
|
+
], BuildingInspectionManagement.prototype, "viewMode", void 0);
|
|
1228
|
+
__decorate([
|
|
1229
|
+
state(),
|
|
1230
|
+
__metadata("design:type", Object)
|
|
1231
|
+
], BuildingInspectionManagement.prototype, "gristConfig", void 0);
|
|
1232
|
+
__decorate([
|
|
1233
|
+
query('div[left]'),
|
|
1234
|
+
__metadata("design:type", HTMLElement)
|
|
1235
|
+
], BuildingInspectionManagement.prototype, "leftPanel", void 0);
|
|
1236
|
+
__decorate([
|
|
1237
|
+
query('ox-grist[section="wait-fail"]'),
|
|
1238
|
+
__metadata("design:type", DataGrist)
|
|
1239
|
+
], BuildingInspectionManagement.prototype, "gristWaitFail", void 0);
|
|
1240
|
+
__decorate([
|
|
1241
|
+
query('ox-grist[section="request"]'),
|
|
1242
|
+
__metadata("design:type", DataGrist)
|
|
1243
|
+
], BuildingInspectionManagement.prototype, "gristRequest", void 0);
|
|
1244
|
+
__decorate([
|
|
1245
|
+
query('ox-grist[section="pass"]'),
|
|
1246
|
+
__metadata("design:type", DataGrist)
|
|
1247
|
+
], BuildingInspectionManagement.prototype, "gristPass", void 0);
|
|
1248
|
+
__decorate([
|
|
1249
|
+
query('ox-event-view'),
|
|
1250
|
+
__metadata("design:type", HTMLElement)
|
|
1251
|
+
], BuildingInspectionManagement.prototype, "eventView", void 0);
|
|
1252
|
+
BuildingInspectionManagement = __decorate([
|
|
1253
|
+
customElement('building-inspection-management')
|
|
1254
|
+
], BuildingInspectionManagement);
|
|
1255
|
+
export { BuildingInspectionManagement };
|
|
1256
|
+
//# sourceMappingURL=building-inspection-management.js.map
|