@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,491 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import '@material/web/button/elevated-button.js';
|
|
3
|
+
import '@material/web/icon/icon.js';
|
|
4
|
+
import '@material/web/button/outlined-button.js';
|
|
5
|
+
import { css, html, LitElement } from 'lit';
|
|
6
|
+
import { customElement, property } from 'lit/decorators.js';
|
|
7
|
+
import { ScrollbarStyles } from '@operato/styles';
|
|
8
|
+
import './photo-album-popup';
|
|
9
|
+
export var InspectionMode;
|
|
10
|
+
(function (InspectionMode) {
|
|
11
|
+
InspectionMode["EDIT"] = "EDIT";
|
|
12
|
+
InspectionMode["VIEW"] = "VIEW";
|
|
13
|
+
})(InspectionMode || (InspectionMode = {}));
|
|
14
|
+
let InspectionRequestDocument = class InspectionRequestDocument extends LitElement {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.checklist = {};
|
|
18
|
+
this.buildingInspection = {};
|
|
19
|
+
this.mode = InspectionMode.VIEW;
|
|
20
|
+
}
|
|
21
|
+
render() {
|
|
22
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
|
|
23
|
+
const headerDate = this._formatDate(this._parseDate((_a = this.checklist) === null || _a === void 0 ? void 0 : _a.inspectionRequestUpdatedAt));
|
|
24
|
+
const requestDate = this._formatDateTime(this._parseDate(this.buildingInspection.requestDate));
|
|
25
|
+
const attachmentCount = (_d = (_c = (_b = this.buildingInspection) === null || _b === void 0 ? void 0 : _b.checklist) === null || _c === void 0 ? void 0 : _c.checklistItems) === null || _d === void 0 ? void 0 : _d.reduce((acc, item) => {
|
|
26
|
+
return acc + item.checklistItemAttachmentCount;
|
|
27
|
+
}, 0);
|
|
28
|
+
return html `
|
|
29
|
+
<div class="document-container">
|
|
30
|
+
<div class="document-header">
|
|
31
|
+
<div class="document-title">검측요청서</div>
|
|
32
|
+
</div>
|
|
33
|
+
|
|
34
|
+
<div class="document-body">
|
|
35
|
+
<div class="date-section">${headerDate}</div>
|
|
36
|
+
|
|
37
|
+
<div class="request-info">
|
|
38
|
+
<div class="recipient-section">
|
|
39
|
+
<div class="recipient-item">
|
|
40
|
+
<span class="recipient-label">문서 번호:</span>
|
|
41
|
+
<span>${((_e = this.checklist) === null || _e === void 0 ? void 0 : _e.inspectionRequestDocumentNo) || ''}</span>
|
|
42
|
+
</div>
|
|
43
|
+
<div class="recipient-item">
|
|
44
|
+
<span class="recipient-label">수신:</span>
|
|
45
|
+
<span>${(_j = (_h = (_g = (_f = this.buildingInspection) === null || _f === void 0 ? void 0 : _f.buildingLevel) === null || _g === void 0 ? void 0 : _g.building) === null || _h === void 0 ? void 0 : _h.buildingComplex) === null || _j === void 0 ? void 0 : _j.supervisoryCompany}</span>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
|
|
49
|
+
<div style="margin: 15px 0;">다음과 같은 세부공종에 대하여 검측요청 하오니 검사 후 승인하여 주시 기 바랍니다.</div>
|
|
50
|
+
|
|
51
|
+
<table class="request-table">
|
|
52
|
+
<tr>
|
|
53
|
+
<th>위치 및 공종</th>
|
|
54
|
+
<td>${(((_k = this.checklist) === null || _k === void 0 ? void 0 : _k.location) || '') + ' - ' + (((_l = this.checklist) === null || _l === void 0 ? void 0 : _l.constructionType) || '')}</td>
|
|
55
|
+
</tr>
|
|
56
|
+
<tr>
|
|
57
|
+
<th>검측 부위</th>
|
|
58
|
+
<td>${((_o = (_m = this.checklist) === null || _m === void 0 ? void 0 : _m.inspectionParts) === null || _o === void 0 ? void 0 : _o.join(', ')) || ''}</td>
|
|
59
|
+
</tr>
|
|
60
|
+
<tr>
|
|
61
|
+
<th>검측 요구일시</th>
|
|
62
|
+
<td>
|
|
63
|
+
${this.mode === InspectionMode.EDIT
|
|
64
|
+
? html `
|
|
65
|
+
<input
|
|
66
|
+
type="datetime-local"
|
|
67
|
+
class="inspection-date-input"
|
|
68
|
+
.value=${this._formatDateTimeForInput(this.buildingInspection.requestDate)}
|
|
69
|
+
@change=${this._onRequestDateChange}
|
|
70
|
+
@click=${this._onDateInputClick}
|
|
71
|
+
/>
|
|
72
|
+
`
|
|
73
|
+
: requestDate}
|
|
74
|
+
</td>
|
|
75
|
+
</tr>
|
|
76
|
+
<tr>
|
|
77
|
+
<th>검측 사항</th>
|
|
78
|
+
<td>
|
|
79
|
+
<input
|
|
80
|
+
type="text"
|
|
81
|
+
class="inspection-memo-input"
|
|
82
|
+
.value=${((_p = this.checklist) === null || _p === void 0 ? void 0 : _p.inspectionRequestMemo) || ''}
|
|
83
|
+
@input=${this._onInspectionMemoChange}
|
|
84
|
+
?disabled=${this.mode === InspectionMode.VIEW}
|
|
85
|
+
placeholder="검측사항을 입력하세요."
|
|
86
|
+
/>
|
|
87
|
+
</td>
|
|
88
|
+
</tr>
|
|
89
|
+
</table>
|
|
90
|
+
</div>
|
|
91
|
+
|
|
92
|
+
<div class="document-footer">
|
|
93
|
+
<div class="attachment-section">
|
|
94
|
+
<div class="attachment-title">첨부 파일</div>
|
|
95
|
+
<div class="attachment-list">
|
|
96
|
+
<div class="attachment-item">시공자의 검측 체크리스트</div>
|
|
97
|
+
${this.mode === InspectionMode.EDIT
|
|
98
|
+
? html `
|
|
99
|
+
<div class="attachment-item upload">
|
|
100
|
+
실명부
|
|
101
|
+
<md-outlined-button @click=${this._onNameListUpload.bind(this)}>
|
|
102
|
+
${((_q = this.checklist) === null || _q === void 0 ? void 0 : _q.nameListAttachment) ? '다시 업로드' : '업로드'}
|
|
103
|
+
</md-outlined-button>
|
|
104
|
+
${((_r = this.checklist) === null || _r === void 0 ? void 0 : _r.nameListAttachment) ? html `<span>(업로드 완료)</span>` : ''}
|
|
105
|
+
</div>
|
|
106
|
+
`
|
|
107
|
+
: ((_s = this.checklist) === null || _s === void 0 ? void 0 : _s.nameListAttachment)
|
|
108
|
+
? html `<div class="attachment-item">실명부</div>`
|
|
109
|
+
: ''}
|
|
110
|
+
${attachmentCount > 0 ? html `<div class="attachment-item">첨부 사진 ${attachmentCount}개</div>` : ''}
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
|
|
114
|
+
<div class="signature-section">
|
|
115
|
+
<div class="signature-box">
|
|
116
|
+
<div class="signature-title">공종별 시공 관리자</div>
|
|
117
|
+
<div class="signature-name">${(_u = (_t = this.checklist) === null || _t === void 0 ? void 0 : _t.taskConstructor) === null || _u === void 0 ? void 0 : _u.name}</div>
|
|
118
|
+
<div class="signature-container">
|
|
119
|
+
${((_v = this.checklist) === null || _v === void 0 ? void 0 : _v.taskConstructorSignature)
|
|
120
|
+
? html `<img class="signature-image" src="${this.checklist.taskConstructorSignature}" alt="서명" />`
|
|
121
|
+
: ''}
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
<div class="signature-box">
|
|
125
|
+
<div class="signature-title">총괄 시공 책임자</div>
|
|
126
|
+
<div class="signature-name">${(_x = (_w = this.checklist) === null || _w === void 0 ? void 0 : _w.overallConstructor) === null || _x === void 0 ? void 0 : _x.name}</div>
|
|
127
|
+
<div class="signature-container">
|
|
128
|
+
${((_y = this.checklist) === null || _y === void 0 ? void 0 : _y.overallConstructorSignature)
|
|
129
|
+
? html `<img class="signature-image" src="${this.checklist.overallConstructorSignature}" alt="서명" />`
|
|
130
|
+
: ''}
|
|
131
|
+
</div>
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
</div>
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
|
|
138
|
+
${this.mode === InspectionMode.EDIT
|
|
139
|
+
? html `
|
|
140
|
+
<div class="button-container">
|
|
141
|
+
<md-elevated-button @click=${this._onConfirm}> 확인 </md-elevated-button>
|
|
142
|
+
</div>
|
|
143
|
+
`
|
|
144
|
+
: ''}
|
|
145
|
+
`;
|
|
146
|
+
}
|
|
147
|
+
_parseDate(value) {
|
|
148
|
+
if (!value)
|
|
149
|
+
return new Date();
|
|
150
|
+
const d = typeof value === 'string' && /^\d+$/.test(value) ? new Date(Number(value)) : new Date(value);
|
|
151
|
+
return isNaN(d.getTime()) ? new Date() : d;
|
|
152
|
+
}
|
|
153
|
+
_formatDate(date) {
|
|
154
|
+
return `${date.getFullYear()}. ${String(date.getMonth() + 1).padStart(2, '0')}. ${String(date.getDate()).padStart(2, '0')}.`;
|
|
155
|
+
}
|
|
156
|
+
_formatDateTime(date) {
|
|
157
|
+
const hours = String(date.getHours()).padStart(2, '0');
|
|
158
|
+
const minutes = String(date.getMinutes()).padStart(2, '0');
|
|
159
|
+
return `${date.getFullYear()}. ${String(date.getMonth() + 1).padStart(2, '0')}. ${String(date.getDate()).padStart(2, '0')}. ${hours}:${minutes}`;
|
|
160
|
+
}
|
|
161
|
+
_formatDateTimeForInput(date) {
|
|
162
|
+
let d = date ? new Date(date) : new Date();
|
|
163
|
+
if (isNaN(d.getTime()))
|
|
164
|
+
d = new Date();
|
|
165
|
+
const year = d.getFullYear();
|
|
166
|
+
const month = String(d.getMonth() + 1).padStart(2, '0');
|
|
167
|
+
const day = String(d.getDate()).padStart(2, '0');
|
|
168
|
+
const hours = String(d.getHours()).padStart(2, '0');
|
|
169
|
+
const minutes = String(d.getMinutes()).padStart(2, '0');
|
|
170
|
+
return `${year}-${month}-${day}T${hours}:${minutes}`;
|
|
171
|
+
}
|
|
172
|
+
_onRequestDateChange(e) {
|
|
173
|
+
const target = e.target;
|
|
174
|
+
this.buildingInspection = Object.assign(Object.assign({}, this.buildingInspection), { requestDate: target.value });
|
|
175
|
+
this.dispatchEvent(new CustomEvent('request-date-change', {
|
|
176
|
+
detail: { requestDate: target.value },
|
|
177
|
+
bubbles: true
|
|
178
|
+
}));
|
|
179
|
+
}
|
|
180
|
+
_onDateInputClick(e) {
|
|
181
|
+
var _a;
|
|
182
|
+
const target = e.target;
|
|
183
|
+
(_a = target.showPicker) === null || _a === void 0 ? void 0 : _a.call(target);
|
|
184
|
+
}
|
|
185
|
+
_onInspectionMemoChange(e) {
|
|
186
|
+
const target = e.target;
|
|
187
|
+
this.checklist = Object.assign(Object.assign({}, this.checklist), { inspectionRequestMemo: target.value });
|
|
188
|
+
// 부모 컴포넌트에 변경사항 전달
|
|
189
|
+
this.dispatchEvent(new CustomEvent('inspection-memo-change', {
|
|
190
|
+
detail: { inspectionRequestMemo: target.value },
|
|
191
|
+
bubbles: true
|
|
192
|
+
}));
|
|
193
|
+
}
|
|
194
|
+
// 실명부 업로드
|
|
195
|
+
_onNameListUpload() {
|
|
196
|
+
const input = document.createElement('input');
|
|
197
|
+
input.type = 'file';
|
|
198
|
+
input.accept = '.pdf,.doc,.docx,.jpg,.jpeg,.png';
|
|
199
|
+
input.onchange = (e) => {
|
|
200
|
+
const file = e.target.files[0];
|
|
201
|
+
if (file) {
|
|
202
|
+
// checklist에 파일과 업로드 플래그 저장
|
|
203
|
+
this.checklist = Object.assign(Object.assign({}, this.checklist), { nameListAttachment: file, isNameListAttachmentUploaded: true });
|
|
204
|
+
// 부모 컴포넌트에 변경사항 알림
|
|
205
|
+
this.dispatchEvent(new CustomEvent('name-list-file-selected', { detail: { file } }));
|
|
206
|
+
this.requestUpdate();
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
input.click();
|
|
210
|
+
}
|
|
211
|
+
// 확인 버튼
|
|
212
|
+
_onConfirm() {
|
|
213
|
+
this.dispatchEvent(new CustomEvent('popup-close', { bubbles: true }));
|
|
214
|
+
history.back();
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
InspectionRequestDocument.styles = [
|
|
218
|
+
ScrollbarStyles,
|
|
219
|
+
css `
|
|
220
|
+
:host {
|
|
221
|
+
display: block;
|
|
222
|
+
padding: 20px;
|
|
223
|
+
font-family: 'Noto Sans KR', sans-serif;
|
|
224
|
+
line-height: 1.4;
|
|
225
|
+
overflow-y: auto;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.document-container {
|
|
229
|
+
max-width: 800px;
|
|
230
|
+
margin: 0 auto;
|
|
231
|
+
background: white;
|
|
232
|
+
border: 2px solid #333;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.document-header {
|
|
236
|
+
text-align: center;
|
|
237
|
+
padding: 15px;
|
|
238
|
+
border-bottom: 1px solid #333;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.document-title {
|
|
242
|
+
font-size: 18px;
|
|
243
|
+
font-weight: bold;
|
|
244
|
+
margin-bottom: 10px;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.document-body {
|
|
248
|
+
padding: 20px;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.request-info {
|
|
252
|
+
margin-bottom: 20px;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.request-table {
|
|
256
|
+
width: 100%;
|
|
257
|
+
border-collapse: collapse;
|
|
258
|
+
margin-bottom: 20px;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.request-table th,
|
|
262
|
+
.request-table td {
|
|
263
|
+
border: 1px solid #333;
|
|
264
|
+
padding: 8px;
|
|
265
|
+
text-align: left;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.request-table th {
|
|
269
|
+
background-color: #f5f5f5;
|
|
270
|
+
font-weight: bold;
|
|
271
|
+
width: 120px;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.inspection-items {
|
|
275
|
+
margin: 20px 0;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.inspection-items textarea {
|
|
279
|
+
width: 100%;
|
|
280
|
+
min-height: 100px;
|
|
281
|
+
border: 1px solid #ddd;
|
|
282
|
+
padding: 10px;
|
|
283
|
+
font-family: inherit;
|
|
284
|
+
resize: vertical;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.signature-section {
|
|
288
|
+
display: flex;
|
|
289
|
+
flex-direction: column;
|
|
290
|
+
align-items: flex-end;
|
|
291
|
+
gap: 15px;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.signature-box {
|
|
295
|
+
display: flex;
|
|
296
|
+
align-items: center;
|
|
297
|
+
gap: 15px;
|
|
298
|
+
text-align: right;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.signature-title {
|
|
302
|
+
font-size: 14px;
|
|
303
|
+
font-weight: bold;
|
|
304
|
+
color: #333;
|
|
305
|
+
min-width: 120px;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.signature-name {
|
|
309
|
+
font-size: 14px;
|
|
310
|
+
color: #333;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.signature-container {
|
|
314
|
+
position: relative;
|
|
315
|
+
min-width: 100px;
|
|
316
|
+
min-height: 60px;
|
|
317
|
+
display: flex;
|
|
318
|
+
align-items: center;
|
|
319
|
+
justify-content: center;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.signature-container::after {
|
|
323
|
+
content: '(인)';
|
|
324
|
+
position: absolute;
|
|
325
|
+
bottom: 5px;
|
|
326
|
+
right: 5px;
|
|
327
|
+
font-size: 12px;
|
|
328
|
+
color: #333;
|
|
329
|
+
font-weight: bold;
|
|
330
|
+
z-index: 2;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.signature-image {
|
|
334
|
+
max-width: 140px;
|
|
335
|
+
max-height: 60px;
|
|
336
|
+
width: auto;
|
|
337
|
+
height: auto;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.attachment-section {
|
|
341
|
+
margin-top: 30px;
|
|
342
|
+
margin-bottom: 30px;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.attachment-title {
|
|
346
|
+
font-weight: bold;
|
|
347
|
+
font-size: 14px;
|
|
348
|
+
color: #333;
|
|
349
|
+
margin-bottom: 10px;
|
|
350
|
+
display: flex;
|
|
351
|
+
align-items: center;
|
|
352
|
+
gap: 8px;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.attachment-list {
|
|
356
|
+
margin-left: 30px;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.attachment-item {
|
|
360
|
+
margin-bottom: 5px;
|
|
361
|
+
color: #2196f3;
|
|
362
|
+
font-size: 14px;
|
|
363
|
+
line-height: 1.5;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.attachment-item.upload {
|
|
367
|
+
display: flex;
|
|
368
|
+
align-items: center;
|
|
369
|
+
gap: 10px;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.attachment-item.upload md-outlined-button {
|
|
373
|
+
--md-outlined-button-container-height: 24px;
|
|
374
|
+
--md-outlined-button-label-text-size: 12px;
|
|
375
|
+
--md-outlined-button-outline-color: #666;
|
|
376
|
+
--md-outlined-button-label-text-color: #666;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.attachment-item.upload span {
|
|
380
|
+
color: #666;
|
|
381
|
+
font-size: 12px;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.attachment-icon {
|
|
385
|
+
display: none;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.date-section {
|
|
389
|
+
text-align: right;
|
|
390
|
+
margin-bottom: 20px;
|
|
391
|
+
font-size: 14px;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.form-row {
|
|
395
|
+
display: flex;
|
|
396
|
+
align-items: flex-start;
|
|
397
|
+
margin-bottom: 10px;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.form-label {
|
|
401
|
+
font-weight: bold;
|
|
402
|
+
width: 100px;
|
|
403
|
+
margin-right: 10px;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.recipient-section {
|
|
407
|
+
margin-bottom: 30px;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.recipient-item {
|
|
411
|
+
display: flex;
|
|
412
|
+
margin-bottom: 5px;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.recipient-label {
|
|
416
|
+
font-weight: bold;
|
|
417
|
+
margin-right: 18px;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.inspection-date-input {
|
|
421
|
+
width: 100%;
|
|
422
|
+
max-width: -webkit-fill-available;
|
|
423
|
+
height: 20px;
|
|
424
|
+
border: 1px solid #ddd;
|
|
425
|
+
padding: 10px;
|
|
426
|
+
font-size: 15px;
|
|
427
|
+
border-radius: 5px;
|
|
428
|
+
cursor: pointer;
|
|
429
|
+
font-family: inherit;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.inspection-memo-input {
|
|
433
|
+
width: 100%;
|
|
434
|
+
max-width: -webkit-fill-available;
|
|
435
|
+
height: 40px;
|
|
436
|
+
border: 1px solid #ddd;
|
|
437
|
+
padding: 10px;
|
|
438
|
+
font-size: 15px;
|
|
439
|
+
border-radius: 5px;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.inspection-memo-text {
|
|
443
|
+
padding: 10px;
|
|
444
|
+
font-size: 15px;
|
|
445
|
+
color: #495057;
|
|
446
|
+
border: 1px solid #e9ecef;
|
|
447
|
+
border-radius: 5px;
|
|
448
|
+
min-height: 20px;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.button-container {
|
|
452
|
+
display: flex;
|
|
453
|
+
justify-content: center;
|
|
454
|
+
margin-top: 20px;
|
|
455
|
+
padding: 15px 0;
|
|
456
|
+
border-top: 1px solid #ddd;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.button-container md-elevated-button {
|
|
460
|
+
background-color: #3498db;
|
|
461
|
+
color: white;
|
|
462
|
+
padding: 12px 30px;
|
|
463
|
+
font-size: 16px;
|
|
464
|
+
font-weight: bold;
|
|
465
|
+
border-radius: 8px;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.document-footer {
|
|
469
|
+
display: flex;
|
|
470
|
+
justify-content: space-between;
|
|
471
|
+
align-items: center;
|
|
472
|
+
}
|
|
473
|
+
`
|
|
474
|
+
];
|
|
475
|
+
__decorate([
|
|
476
|
+
property({ type: Object }),
|
|
477
|
+
__metadata("design:type", Object)
|
|
478
|
+
], InspectionRequestDocument.prototype, "checklist", void 0);
|
|
479
|
+
__decorate([
|
|
480
|
+
property({ type: Object }),
|
|
481
|
+
__metadata("design:type", Object)
|
|
482
|
+
], InspectionRequestDocument.prototype, "buildingInspection", void 0);
|
|
483
|
+
__decorate([
|
|
484
|
+
property({ type: String }),
|
|
485
|
+
__metadata("design:type", String)
|
|
486
|
+
], InspectionRequestDocument.prototype, "mode", void 0);
|
|
487
|
+
InspectionRequestDocument = __decorate([
|
|
488
|
+
customElement('inspection-request-document')
|
|
489
|
+
], InspectionRequestDocument);
|
|
490
|
+
export { InspectionRequestDocument };
|
|
491
|
+
//# sourceMappingURL=inspection-request-document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inspection-request-document.js","sourceRoot":"","sources":["../../../../../client/pages/building-inspection/component/inspection-document/inspection-request-document.ts"],"names":[],"mappings":";AAAA,OAAO,yCAAyC,CAAA;AAChD,OAAO,4BAA4B,CAAA;AACnC,OAAO,yCAAyC,CAAA;AAEhD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,qBAAqB,CAAA;AAE5B,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,+BAAa,CAAA;IACb,+BAAa,CAAA;AACf,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB;AAGM,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,UAAU;IAAlD;;QAoQuB,cAAS,GAAQ,EAAE,CAAA;QACnB,uBAAkB,GAAQ,EAAE,CAAA;QAC5B,SAAI,GAAmB,cAAc,CAAC,IAAI,CAAA;IAuNxE,CAAC;IArNC,MAAM;;QACJ,MAAM,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,MAAA,IAAI,CAAC,SAAS,0CAAE,0BAA0B,CAAC,CAAC,CAAA;QAChG,MAAM,WAAW,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC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AAK,EAAE,CAAA;IACf,CAAC;IAED,QAAQ;IACA,UAAU;QAChB,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,aAAa,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;QACrE,OAAO,CAAC,IAAI,EAAE,CAAA;IAChB,CAAC;;AA3dM,gCAAM,GAAG;IACd,eAAe;IACf,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8PF;CACF,AAjQY,CAiQZ;AAE2B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4DAAoB;AACnB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qEAA6B;AAC5B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uDAA2C;AAtQ3D,yBAAyB;IADrC,aAAa,CAAC,6BAA6B,CAAC;GAChC,yBAAyB,CA6drC","sourcesContent":["import '@material/web/button/elevated-button.js'\nimport '@material/web/icon/icon.js'\nimport '@material/web/button/outlined-button.js'\n\nimport { css, html, LitElement } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\nimport { ScrollbarStyles } from '@operato/styles'\nimport './photo-album-popup'\n\nexport enum InspectionMode {\n EDIT = 'EDIT',\n VIEW = 'VIEW'\n}\n\n@customElement('inspection-request-document')\nexport class InspectionRequestDocument extends LitElement {\n static styles = [\n ScrollbarStyles,\n css`\n :host {\n display: block;\n padding: 20px;\n font-family: 'Noto Sans KR', sans-serif;\n line-height: 1.4;\n overflow-y: auto;\n }\n\n .document-container {\n max-width: 800px;\n margin: 0 auto;\n background: white;\n border: 2px solid #333;\n }\n\n .document-header {\n text-align: center;\n padding: 15px;\n border-bottom: 1px solid #333;\n }\n\n .document-title {\n font-size: 18px;\n font-weight: bold;\n margin-bottom: 10px;\n }\n\n .document-body {\n padding: 20px;\n }\n\n .request-info {\n margin-bottom: 20px;\n }\n\n .request-table {\n width: 100%;\n border-collapse: collapse;\n margin-bottom: 20px;\n }\n\n .request-table th,\n .request-table td {\n border: 1px solid #333;\n padding: 8px;\n text-align: left;\n }\n\n .request-table th {\n background-color: #f5f5f5;\n font-weight: bold;\n width: 120px;\n }\n\n .inspection-items {\n margin: 20px 0;\n }\n\n .inspection-items textarea {\n width: 100%;\n min-height: 100px;\n border: 1px solid #ddd;\n padding: 10px;\n font-family: inherit;\n resize: vertical;\n }\n\n .signature-section {\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n gap: 15px;\n }\n\n .signature-box {\n display: flex;\n align-items: center;\n gap: 15px;\n text-align: right;\n }\n\n .signature-title {\n font-size: 14px;\n font-weight: bold;\n color: #333;\n min-width: 120px;\n }\n\n .signature-name {\n font-size: 14px;\n color: #333;\n }\n\n .signature-container {\n position: relative;\n min-width: 100px;\n min-height: 60px;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .signature-container::after {\n content: '(인)';\n position: absolute;\n bottom: 5px;\n right: 5px;\n font-size: 12px;\n color: #333;\n font-weight: bold;\n z-index: 2;\n }\n\n .signature-image {\n max-width: 140px;\n max-height: 60px;\n width: auto;\n height: auto;\n }\n\n .attachment-section {\n margin-top: 30px;\n margin-bottom: 30px;\n }\n\n .attachment-title {\n font-weight: bold;\n font-size: 14px;\n color: #333;\n margin-bottom: 10px;\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .attachment-list {\n margin-left: 30px;\n }\n\n .attachment-item {\n margin-bottom: 5px;\n color: #2196f3;\n font-size: 14px;\n line-height: 1.5;\n }\n\n .attachment-item.upload {\n display: flex;\n align-items: center;\n gap: 10px;\n }\n\n .attachment-item.upload md-outlined-button {\n --md-outlined-button-container-height: 24px;\n --md-outlined-button-label-text-size: 12px;\n --md-outlined-button-outline-color: #666;\n --md-outlined-button-label-text-color: #666;\n }\n\n .attachment-item.upload span {\n color: #666;\n font-size: 12px;\n }\n\n .attachment-icon {\n display: none;\n }\n\n .date-section {\n text-align: right;\n margin-bottom: 20px;\n font-size: 14px;\n }\n\n .form-row {\n display: flex;\n align-items: flex-start;\n margin-bottom: 10px;\n }\n\n .form-label {\n font-weight: bold;\n width: 100px;\n margin-right: 10px;\n }\n\n .recipient-section {\n margin-bottom: 30px;\n }\n\n .recipient-item {\n display: flex;\n margin-bottom: 5px;\n }\n\n .recipient-label {\n font-weight: bold;\n margin-right: 18px;\n }\n\n .inspection-date-input {\n width: 100%;\n max-width: -webkit-fill-available;\n height: 20px;\n border: 1px solid #ddd;\n padding: 10px;\n font-size: 15px;\n border-radius: 5px;\n cursor: pointer;\n font-family: inherit;\n }\n\n .inspection-memo-input {\n width: 100%;\n max-width: -webkit-fill-available;\n height: 40px;\n border: 1px solid #ddd;\n padding: 10px;\n font-size: 15px;\n border-radius: 5px;\n }\n\n .inspection-memo-text {\n padding: 10px;\n font-size: 15px;\n color: #495057;\n border: 1px solid #e9ecef;\n border-radius: 5px;\n min-height: 20px;\n }\n\n .button-container {\n display: flex;\n justify-content: center;\n margin-top: 20px;\n padding: 15px 0;\n border-top: 1px solid #ddd;\n }\n\n .button-container md-elevated-button {\n background-color: #3498db;\n color: white;\n padding: 12px 30px;\n font-size: 16px;\n font-weight: bold;\n border-radius: 8px;\n }\n\n .document-footer {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n `\n ]\n\n @property({ type: Object }) checklist: any = {}\n @property({ type: Object }) buildingInspection: any = {}\n @property({ type: String }) mode: InspectionMode = InspectionMode.VIEW\n\n render() {\n const headerDate = this._formatDate(this._parseDate(this.checklist?.inspectionRequestUpdatedAt))\n const requestDate = this._formatDateTime(this._parseDate(this.buildingInspection.requestDate))\n const attachmentCount = this.buildingInspection?.checklist?.checklistItems?.reduce((acc, item) => {\n return acc + item.checklistItemAttachmentCount\n }, 0)\n\n return html`\n <div class=\"document-container\">\n <div class=\"document-header\">\n <div class=\"document-title\">검측요청서</div>\n </div>\n\n <div class=\"document-body\">\n <div class=\"date-section\">${headerDate}</div>\n\n <div class=\"request-info\">\n <div class=\"recipient-section\">\n <div class=\"recipient-item\">\n <span class=\"recipient-label\">문서 번호:</span>\n <span>${this.checklist?.inspectionRequestDocumentNo || ''}</span>\n </div>\n <div class=\"recipient-item\">\n <span class=\"recipient-label\">수신:</span>\n <span>${this.buildingInspection?.buildingLevel?.building?.buildingComplex?.supervisoryCompany}</span>\n </div>\n </div>\n\n <div style=\"margin: 15px 0;\">다음과 같은 세부공종에 대하여 검측요청 하오니 검사 후 승인하여 주시 기 바랍니다.</div>\n\n <table class=\"request-table\">\n <tr>\n <th>위치 및 공종</th>\n <td>${(this.checklist?.location || '') + ' - ' + (this.checklist?.constructionType || '')}</td>\n </tr>\n <tr>\n <th>검측 부위</th>\n <td>${this.checklist?.inspectionParts?.join(', ') || ''}</td>\n </tr>\n <tr>\n <th>검측 요구일시</th>\n <td>\n ${this.mode === InspectionMode.EDIT\n ? html`\n <input\n type=\"datetime-local\"\n class=\"inspection-date-input\"\n .value=${this._formatDateTimeForInput(this.buildingInspection.requestDate)}\n @change=${this._onRequestDateChange}\n @click=${this._onDateInputClick}\n />\n `\n : requestDate}\n </td>\n </tr>\n <tr>\n <th>검측 사항</th>\n <td>\n <input\n type=\"text\"\n class=\"inspection-memo-input\"\n .value=${this.checklist?.inspectionRequestMemo || ''}\n @input=${this._onInspectionMemoChange}\n ?disabled=${this.mode === InspectionMode.VIEW}\n placeholder=\"검측사항을 입력하세요.\"\n />\n </td>\n </tr>\n </table>\n </div>\n\n <div class=\"document-footer\">\n <div class=\"attachment-section\">\n <div class=\"attachment-title\">첨부 파일</div>\n <div class=\"attachment-list\">\n <div class=\"attachment-item\">시공자의 검측 체크리스트</div>\n ${this.mode === InspectionMode.EDIT\n ? html`\n <div class=\"attachment-item upload\">\n 실명부\n <md-outlined-button @click=${this._onNameListUpload.bind(this)}>\n ${this.checklist?.nameListAttachment ? '다시 업로드' : '업로드'}\n </md-outlined-button>\n ${this.checklist?.nameListAttachment ? html`<span>(업로드 완료)</span>` : ''}\n </div>\n `\n : this.checklist?.nameListAttachment\n ? html`<div class=\"attachment-item\">실명부</div>`\n : ''}\n ${attachmentCount > 0 ? html`<div class=\"attachment-item\">첨부 사진 ${attachmentCount}개</div>` : ''}\n </div>\n </div>\n\n <div class=\"signature-section\">\n <div class=\"signature-box\">\n <div class=\"signature-title\">공종별 시공 관리자</div>\n <div class=\"signature-name\">${this.checklist?.taskConstructor?.name}</div>\n <div class=\"signature-container\">\n ${this.checklist?.taskConstructorSignature\n ? html`<img class=\"signature-image\" src=\"${this.checklist.taskConstructorSignature}\" alt=\"서명\" />`\n : ''}\n </div>\n </div>\n <div class=\"signature-box\">\n <div class=\"signature-title\">총괄 시공 책임자</div>\n <div class=\"signature-name\">${this.checklist?.overallConstructor?.name}</div>\n <div class=\"signature-container\">\n ${this.checklist?.overallConstructorSignature\n ? html`<img class=\"signature-image\" src=\"${this.checklist.overallConstructorSignature}\" alt=\"서명\" />`\n : ''}\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n ${this.mode === InspectionMode.EDIT\n ? html`\n <div class=\"button-container\">\n <md-elevated-button @click=${this._onConfirm}> 확인 </md-elevated-button>\n </div>\n `\n : ''}\n `\n }\n\n private _parseDate(value: any): Date {\n if (!value) return new Date()\n const d = typeof value === 'string' && /^\\d+$/.test(value) ? new Date(Number(value)) : new Date(value)\n return isNaN(d.getTime()) ? new Date() : d\n }\n\n private _formatDate(date: Date): string {\n return `${date.getFullYear()}. ${String(date.getMonth() + 1).padStart(2, '0')}. ${String(date.getDate()).padStart(2, '0')}.`\n }\n\n private _formatDateTime(date: Date): string {\n const hours = String(date.getHours()).padStart(2, '0')\n const minutes = String(date.getMinutes()).padStart(2, '0')\n return `${date.getFullYear()}. ${String(date.getMonth() + 1).padStart(2, '0')}. ${String(date.getDate()).padStart(2, '0')}. ${hours}:${minutes}`\n }\n\n private _formatDateTimeForInput(date?: string | Date | null): string {\n let d = date ? new Date(date) : new Date()\n if (isNaN(d.getTime())) d = new Date()\n\n const year = d.getFullYear()\n const month = String(d.getMonth() + 1).padStart(2, '0')\n const day = String(d.getDate()).padStart(2, '0')\n const hours = String(d.getHours()).padStart(2, '0')\n const minutes = String(d.getMinutes()).padStart(2, '0')\n return `${year}-${month}-${day}T${hours}:${minutes}`\n }\n\n private _onRequestDateChange(e: Event) {\n const target = e.target as HTMLInputElement\n this.buildingInspection = { ...this.buildingInspection, requestDate: target.value }\n\n this.dispatchEvent(\n new CustomEvent('request-date-change', {\n detail: { requestDate: target.value },\n bubbles: true\n })\n )\n }\n\n private _onDateInputClick(e: Event) {\n const target = e.target as HTMLInputElement\n target.showPicker?.()\n }\n\n private _onInspectionMemoChange(e: Event) {\n const target = e.target as HTMLInputElement\n this.checklist = { ...this.checklist, inspectionRequestMemo: target.value }\n\n // 부모 컴포넌트에 변경사항 전달\n this.dispatchEvent(\n new CustomEvent('inspection-memo-change', {\n detail: { inspectionRequestMemo: target.value },\n bubbles: true\n })\n )\n }\n\n // 실명부 업로드\n private _onNameListUpload() {\n const input = document.createElement('input')\n input.type = 'file'\n input.accept = '.pdf,.doc,.docx,.jpg,.jpeg,.png'\n input.onchange = (e: any) => {\n const file = e.target.files[0]\n if (file) {\n // checklist에 파일과 업로드 플래그 저장\n this.checklist = {\n ...this.checklist,\n nameListAttachment: file,\n isNameListAttachmentUploaded: true\n }\n\n // 부모 컴포넌트에 변경사항 알림\n this.dispatchEvent(new CustomEvent('name-list-file-selected', { detail: { file } }))\n this.requestUpdate()\n }\n }\n input.click()\n }\n\n // 확인 버튼\n private _onConfirm() {\n this.dispatchEvent(new CustomEvent('popup-close', { bubbles: true }))\n history.back()\n }\n}\n"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import '@material/web/button/elevated-button.js';
|
|
2
|
+
import '@material/web/icon/icon.js';
|
|
3
|
+
import '@material/web/radio/radio.js';
|
|
4
|
+
import '@material/web/textfield/outlined-text-field.js';
|
|
5
|
+
import { LitElement } from 'lit';
|
|
6
|
+
import { InspectionMode } from './inspection-request-document';
|
|
7
|
+
export declare enum InspectionResultStatus {
|
|
8
|
+
PASS = "PASS",// 합격
|
|
9
|
+
FAIL = "FAIL"
|
|
10
|
+
}
|
|
11
|
+
export declare enum InspectionResultType {
|
|
12
|
+
GENERAL = "GENERAL",// 일반
|
|
13
|
+
FOCUS = "FOCUS",// 중점
|
|
14
|
+
CONCEALED_WORK = "CONCEALED_WORK"
|
|
15
|
+
}
|
|
16
|
+
export declare class InspectionResultNotification extends LitElement {
|
|
17
|
+
static styles: import("lit").CSSResult[];
|
|
18
|
+
checklist: any;
|
|
19
|
+
buildingInspection: any;
|
|
20
|
+
project: any;
|
|
21
|
+
mode: InspectionMode;
|
|
22
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
23
|
+
protected updated(): void;
|
|
24
|
+
private _parseDate;
|
|
25
|
+
private _formatDate;
|
|
26
|
+
private _getAttachmentCount;
|
|
27
|
+
private _getOverallResult;
|
|
28
|
+
private _onInspectionTypeChange;
|
|
29
|
+
private _onInstructionsChange;
|
|
30
|
+
private _onConfirm;
|
|
31
|
+
}
|