@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
package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js
ADDED
|
@@ -0,0 +1,416 @@
|
|
|
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/tabs/tabs.js';
|
|
5
|
+
import '@material/web/tabs/primary-tab.js';
|
|
6
|
+
import gql from 'graphql-tag';
|
|
7
|
+
import { client } from '@operato/graphql';
|
|
8
|
+
import { css, html, LitElement } from 'lit';
|
|
9
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
10
|
+
import { ButtonContainerStyles, ScrollbarStyles } from '@operato/styles';
|
|
11
|
+
import { notify, openPopup } from '@operato/layout';
|
|
12
|
+
import '../image-preview-popup';
|
|
13
|
+
import { BuildingInspectionStatus } from '../../building-inspection-list';
|
|
14
|
+
export var PhotoTab;
|
|
15
|
+
(function (PhotoTab) {
|
|
16
|
+
PhotoTab["CONSTRUCTOR"] = "constructor";
|
|
17
|
+
PhotoTab["SUPERVISOR"] = "supervisor";
|
|
18
|
+
})(PhotoTab || (PhotoTab = {}));
|
|
19
|
+
let PhotoAlbumPopup = class PhotoAlbumPopup extends LitElement {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(...arguments);
|
|
22
|
+
this.checklistId = '';
|
|
23
|
+
this.activeTab = PhotoTab.CONSTRUCTOR;
|
|
24
|
+
this.constructorFiles = [];
|
|
25
|
+
this.supervisorFiles = [];
|
|
26
|
+
}
|
|
27
|
+
render() {
|
|
28
|
+
const currentFiles = this.activeTab === PhotoTab.CONSTRUCTOR ? this.constructorFiles : this.supervisorFiles;
|
|
29
|
+
const constructorCount = this.constructorFiles.length;
|
|
30
|
+
const supervisorCount = this.supervisorFiles.length;
|
|
31
|
+
return html `
|
|
32
|
+
<div body>
|
|
33
|
+
<div class="tabs-container">
|
|
34
|
+
<md-tabs>
|
|
35
|
+
<md-primary-tab
|
|
36
|
+
?active=${this.activeTab === PhotoTab.CONSTRUCTOR}
|
|
37
|
+
@click=${() => this._setActiveTab(PhotoTab.CONSTRUCTOR)}
|
|
38
|
+
>
|
|
39
|
+
시공자 (${constructorCount})
|
|
40
|
+
</md-primary-tab>
|
|
41
|
+
<md-primary-tab
|
|
42
|
+
?active=${this.activeTab === PhotoTab.SUPERVISOR}
|
|
43
|
+
@click=${() => this._setActiveTab(PhotoTab.SUPERVISOR)}
|
|
44
|
+
>
|
|
45
|
+
감리자 (${supervisorCount})
|
|
46
|
+
</md-primary-tab>
|
|
47
|
+
</md-tabs>
|
|
48
|
+
</div>
|
|
49
|
+
|
|
50
|
+
<div class="tab-content">
|
|
51
|
+
<div class="photo-count">
|
|
52
|
+
${this.activeTab === PhotoTab.CONSTRUCTOR ? '시공자' : '감리자'} 첨부파일: ${currentFiles.length}건
|
|
53
|
+
</div>
|
|
54
|
+
|
|
55
|
+
${currentFiles.length > 0
|
|
56
|
+
? html `
|
|
57
|
+
<div class="photo-grid">
|
|
58
|
+
${currentFiles.map((file, index) => {
|
|
59
|
+
var _a;
|
|
60
|
+
return html `
|
|
61
|
+
<div class="photo-item" @click=${() => this._openFilePreview(currentFiles, index)}>
|
|
62
|
+
${this._isImageFile(file.fullpath)
|
|
63
|
+
? html `<img
|
|
64
|
+
src="${file.fullpath}"
|
|
65
|
+
alt="${file.name}"
|
|
66
|
+
@error=${(e) => this._onImageError(e, file)}
|
|
67
|
+
/>`
|
|
68
|
+
: html `
|
|
69
|
+
<div class="file-icon-container">
|
|
70
|
+
<md-icon class="file-icon">description</md-icon>
|
|
71
|
+
<div class="file-extension">${this._getFileExtension(file.fullpath)}</div>
|
|
72
|
+
</div>
|
|
73
|
+
`}
|
|
74
|
+
<div class="photo-overlay">
|
|
75
|
+
<div class="photo-info">
|
|
76
|
+
<div class="photo-name">${file.name}</div>
|
|
77
|
+
<div class="photo-creator">
|
|
78
|
+
<md-icon style="--md-icon-size: 10px;">account_circle</md-icon>
|
|
79
|
+
${((_a = file.creator) === null || _a === void 0 ? void 0 : _a.name) || ''}
|
|
80
|
+
</div>
|
|
81
|
+
<div class="photo-date">${this._formatDate(file.createdAt)}</div>
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
`;
|
|
86
|
+
})}
|
|
87
|
+
</div>
|
|
88
|
+
`
|
|
89
|
+
: html `
|
|
90
|
+
<div class="empty-state">
|
|
91
|
+
<md-icon>attach_file</md-icon>
|
|
92
|
+
<div>${this.activeTab === PhotoTab.CONSTRUCTOR ? '시공자' : '감리자'}가 업로드한 첨부파일이 없습니다.</div>
|
|
93
|
+
</div>
|
|
94
|
+
`}
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
|
|
98
|
+
<div class="button-container">
|
|
99
|
+
<md-elevated-button @click=${this._close}> <md-icon slot="icon">close</md-icon>닫기 </md-elevated-button>
|
|
100
|
+
</div>
|
|
101
|
+
`;
|
|
102
|
+
}
|
|
103
|
+
async firstUpdated() {
|
|
104
|
+
await this._loadPhotos();
|
|
105
|
+
}
|
|
106
|
+
async _loadPhotos() {
|
|
107
|
+
var _a, _b;
|
|
108
|
+
try {
|
|
109
|
+
const response = await client.query({
|
|
110
|
+
query: gql `
|
|
111
|
+
query ChecklistPhotos($checklistId: String!) {
|
|
112
|
+
checklist(id: $checklistId) {
|
|
113
|
+
id
|
|
114
|
+
checklistAttachments {
|
|
115
|
+
id
|
|
116
|
+
name
|
|
117
|
+
fullpath
|
|
118
|
+
description
|
|
119
|
+
creator {
|
|
120
|
+
name
|
|
121
|
+
}
|
|
122
|
+
createdAt
|
|
123
|
+
}
|
|
124
|
+
checklistItems {
|
|
125
|
+
id
|
|
126
|
+
name
|
|
127
|
+
checklistItemAttachments {
|
|
128
|
+
id
|
|
129
|
+
name
|
|
130
|
+
fullpath
|
|
131
|
+
description
|
|
132
|
+
creator {
|
|
133
|
+
id
|
|
134
|
+
name
|
|
135
|
+
email
|
|
136
|
+
}
|
|
137
|
+
createdAt
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
`,
|
|
143
|
+
variables: {
|
|
144
|
+
checklistId: this.checklistId
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
if (response.errors) {
|
|
148
|
+
notify({ message: '사진 목록을 불러오는데 실패했습니다.', level: 'error' });
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
const checklist = response.data.checklist;
|
|
152
|
+
// 모든 첨부파일을 수집 (체크리스트 레벨 + 아이템 레벨)
|
|
153
|
+
const allAttachments = [
|
|
154
|
+
// 체크리스트 레벨 첨부파일
|
|
155
|
+
...(((_a = checklist.checklistAttachments) === null || _a === void 0 ? void 0 : _a.map((attachment) => (Object.assign(Object.assign({}, attachment), { previewTitle: `사진 대지` })))) || []),
|
|
156
|
+
// 체크리스트 아이템 레벨 첨부파일
|
|
157
|
+
...(((_b = checklist.checklistItems) === null || _b === void 0 ? void 0 : _b.flatMap((item) => {
|
|
158
|
+
var _a;
|
|
159
|
+
return ((_a = item.checklistItemAttachments) === null || _a === void 0 ? void 0 : _a.map((attachment) => (Object.assign(Object.assign({}, attachment), { previewTitle: `[검사 항목] ${item.name}` })))) || [];
|
|
160
|
+
})) || [])
|
|
161
|
+
];
|
|
162
|
+
// 시공자와 감리자로 분류 (이메일 도메인이나 역할로 구분)
|
|
163
|
+
this.constructorFiles = allAttachments.filter(attachment => [BuildingInspectionStatus.WAIT, BuildingInspectionStatus.OVERALL_WAIT, BuildingInspectionStatus.FAIL].includes(attachment.description));
|
|
164
|
+
this.supervisorFiles = allAttachments.filter(attachment => [BuildingInspectionStatus.REQUEST, BuildingInspectionStatus.OVERALL_REQUEST].includes(attachment.description));
|
|
165
|
+
}
|
|
166
|
+
catch (error) {
|
|
167
|
+
console.error('사진 목록 로딩 중 오류 발생:', error);
|
|
168
|
+
notify({ message: '사진 목록을 불러오는데 실패했습니다.', level: 'error' });
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
_isImageFile(filepath) {
|
|
172
|
+
if (!filepath)
|
|
173
|
+
return false;
|
|
174
|
+
const imageExtensions = ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp', 'svg'];
|
|
175
|
+
const extension = filepath.toLowerCase().split('.').pop();
|
|
176
|
+
return imageExtensions.includes(extension || '');
|
|
177
|
+
}
|
|
178
|
+
_getFileExtension(filepath) {
|
|
179
|
+
if (!filepath)
|
|
180
|
+
return '';
|
|
181
|
+
const extension = filepath.toLowerCase().split('.').pop();
|
|
182
|
+
return extension || 'file';
|
|
183
|
+
}
|
|
184
|
+
_setActiveTab(tab) {
|
|
185
|
+
this.activeTab = tab;
|
|
186
|
+
}
|
|
187
|
+
_openFilePreview(files, startIndex) {
|
|
188
|
+
const file = files[startIndex];
|
|
189
|
+
if (this._isImageFile(file.fullpath)) {
|
|
190
|
+
// 이미지들만 필터링해서 이미지 미리보기 팝업 열기
|
|
191
|
+
const imageFiles = files.filter(f => this._isImageFile(f.fullpath));
|
|
192
|
+
const imageIndex = imageFiles.findIndex(f => f.id === file.id);
|
|
193
|
+
openPopup(html ` <image-preview-popup .images=${imageFiles} .currentIndex=${Math.max(0, imageIndex)}></image-preview-popup> `, { backdrop: true, size: 'large', title: '사진 미리보기' });
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
// 일반 파일은 새 탭에서 열기 또는 다운로드
|
|
197
|
+
window.open(file.fullpath, '_blank');
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
_onImageError(e, file) {
|
|
201
|
+
const target = e.target;
|
|
202
|
+
target.style.display = 'none';
|
|
203
|
+
// 오류 발생 시 기본 아이콘 표시
|
|
204
|
+
const container = target.parentElement;
|
|
205
|
+
container.innerHTML += `
|
|
206
|
+
<div style="display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background-color: #f5f5f5;">
|
|
207
|
+
<md-icon style="--md-icon-size: 48px; color: #ccc;">broken_image</md-icon>
|
|
208
|
+
</div>
|
|
209
|
+
`;
|
|
210
|
+
}
|
|
211
|
+
_formatDate(date) {
|
|
212
|
+
const _date = new Date(date);
|
|
213
|
+
if (isNaN(_date.getTime())) {
|
|
214
|
+
return '날짜 없음';
|
|
215
|
+
}
|
|
216
|
+
const year = _date.getFullYear();
|
|
217
|
+
const month = String(_date.getMonth() + 1).padStart(2, '0');
|
|
218
|
+
const day = String(_date.getDate()).padStart(2, '0');
|
|
219
|
+
const hours = String(_date.getHours()).padStart(2, '0');
|
|
220
|
+
const minutes = String(_date.getMinutes()).padStart(2, '0');
|
|
221
|
+
return `${year}.${month}.${day} ${hours}:${minutes}`;
|
|
222
|
+
}
|
|
223
|
+
_close() {
|
|
224
|
+
history.back();
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
PhotoAlbumPopup.styles = [
|
|
228
|
+
ButtonContainerStyles,
|
|
229
|
+
ScrollbarStyles,
|
|
230
|
+
css `
|
|
231
|
+
:host {
|
|
232
|
+
display: flex;
|
|
233
|
+
flex-direction: column;
|
|
234
|
+
background-color: #fff;
|
|
235
|
+
width: 100%;
|
|
236
|
+
max-height: 80vh;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
div[body] {
|
|
240
|
+
flex: 1;
|
|
241
|
+
overflow-y: auto;
|
|
242
|
+
padding: 20px;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.tabs-container {
|
|
246
|
+
margin-bottom: 20px;
|
|
247
|
+
border-bottom: 2px solid #ddd;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
md-tabs {
|
|
251
|
+
--md-primary-tab-container-color: transparent;
|
|
252
|
+
--md-primary-tab-active-indicator-color: #2196f3;
|
|
253
|
+
--md-primary-tab-label-text-color: #666;
|
|
254
|
+
--md-primary-tab-active-label-text-color: #2196f3;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.photo-grid {
|
|
258
|
+
display: grid;
|
|
259
|
+
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
|
260
|
+
gap: 15px;
|
|
261
|
+
margin-bottom: 20px;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.photo-item {
|
|
265
|
+
position: relative;
|
|
266
|
+
aspect-ratio: 1;
|
|
267
|
+
border-radius: 8px;
|
|
268
|
+
overflow: hidden;
|
|
269
|
+
cursor: pointer;
|
|
270
|
+
transition: all 0.2s ease;
|
|
271
|
+
border: 2px solid #ddd;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.photo-item:hover {
|
|
275
|
+
transform: translateY(-2px);
|
|
276
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
277
|
+
border-color: #2196f3;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.photo-item img {
|
|
281
|
+
width: 100%;
|
|
282
|
+
height: 100%;
|
|
283
|
+
object-fit: cover;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.photo-overlay {
|
|
287
|
+
position: absolute;
|
|
288
|
+
bottom: 0;
|
|
289
|
+
left: 0;
|
|
290
|
+
right: 0;
|
|
291
|
+
background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
|
|
292
|
+
color: white;
|
|
293
|
+
padding: 10px 8px 8px;
|
|
294
|
+
font-size: 12px;
|
|
295
|
+
line-height: 1.2;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.photo-info {
|
|
299
|
+
display: flex;
|
|
300
|
+
flex-direction: column;
|
|
301
|
+
gap: 2px;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.photo-name {
|
|
305
|
+
font-weight: bold;
|
|
306
|
+
overflow: hidden;
|
|
307
|
+
text-overflow: ellipsis;
|
|
308
|
+
white-space: nowrap;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.photo-creator {
|
|
312
|
+
font-size: 10px;
|
|
313
|
+
opacity: 0.9;
|
|
314
|
+
display: flex;
|
|
315
|
+
align-items: center;
|
|
316
|
+
gap: 3px;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.photo-date {
|
|
320
|
+
font-size: 10px;
|
|
321
|
+
opacity: 0.8;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.file-icon-container {
|
|
325
|
+
width: 100%;
|
|
326
|
+
height: 100%;
|
|
327
|
+
display: flex;
|
|
328
|
+
flex-direction: column;
|
|
329
|
+
align-items: center;
|
|
330
|
+
justify-content: center;
|
|
331
|
+
background-color: #f5f5f5;
|
|
332
|
+
position: relative;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.file-icon {
|
|
336
|
+
--md-icon-size: 48px;
|
|
337
|
+
color: #666;
|
|
338
|
+
margin-bottom: 8px;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.file-extension {
|
|
342
|
+
font-size: 12px;
|
|
343
|
+
font-weight: bold;
|
|
344
|
+
color: #444;
|
|
345
|
+
background-color: #e0e0e0;
|
|
346
|
+
padding: 2px 6px;
|
|
347
|
+
border-radius: 3px;
|
|
348
|
+
text-transform: uppercase;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.empty-state {
|
|
352
|
+
text-align: center;
|
|
353
|
+
color: #666;
|
|
354
|
+
padding: 60px 20px;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.empty-state md-icon {
|
|
358
|
+
--md-icon-size: 64px;
|
|
359
|
+
color: #ccc;
|
|
360
|
+
margin-bottom: 16px;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.tab-content {
|
|
364
|
+
min-height: 300px;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.photo-count {
|
|
368
|
+
color: #666;
|
|
369
|
+
font-size: 14px;
|
|
370
|
+
margin-bottom: 15px;
|
|
371
|
+
padding: 10px;
|
|
372
|
+
background-color: #f5f5f5;
|
|
373
|
+
border-radius: 5px;
|
|
374
|
+
text-align: center;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
h3 {
|
|
378
|
+
position: relative;
|
|
379
|
+
color: rgb(5, 149, 229);
|
|
380
|
+
font-size: 17px;
|
|
381
|
+
font-weight: 700;
|
|
382
|
+
margin: 0px 0px 20px 0px;
|
|
383
|
+
padding-top: 0px;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.button-container {
|
|
387
|
+
display: flex;
|
|
388
|
+
justify-content: center;
|
|
389
|
+
padding: 15px;
|
|
390
|
+
border-top: 1px solid #ddd;
|
|
391
|
+
background-color: #f9f9f9;
|
|
392
|
+
margin-left: unset;
|
|
393
|
+
}
|
|
394
|
+
`
|
|
395
|
+
];
|
|
396
|
+
__decorate([
|
|
397
|
+
property({ type: String }),
|
|
398
|
+
__metadata("design:type", String)
|
|
399
|
+
], PhotoAlbumPopup.prototype, "checklistId", void 0);
|
|
400
|
+
__decorate([
|
|
401
|
+
state(),
|
|
402
|
+
__metadata("design:type", String)
|
|
403
|
+
], PhotoAlbumPopup.prototype, "activeTab", void 0);
|
|
404
|
+
__decorate([
|
|
405
|
+
state(),
|
|
406
|
+
__metadata("design:type", Array)
|
|
407
|
+
], PhotoAlbumPopup.prototype, "constructorFiles", void 0);
|
|
408
|
+
__decorate([
|
|
409
|
+
state(),
|
|
410
|
+
__metadata("design:type", Array)
|
|
411
|
+
], PhotoAlbumPopup.prototype, "supervisorFiles", void 0);
|
|
412
|
+
PhotoAlbumPopup = __decorate([
|
|
413
|
+
customElement('photo-album-popup')
|
|
414
|
+
], PhotoAlbumPopup);
|
|
415
|
+
export { PhotoAlbumPopup };
|
|
416
|
+
//# sourceMappingURL=photo-album-popup.js.map
|
package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"photo-album-popup.js","sourceRoot":"","sources":["../../../../../client/pages/building-inspection/component/inspection-document/photo-album-popup.ts"],"names":[],"mappings":";AAAA,OAAO,yCAAyC,CAAA;AAChD,OAAO,4BAA4B,CAAA;AACnC,OAAO,4BAA4B,CAAA;AACnC,OAAO,mCAAmC,CAAA;AAE1C,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,GAAG,EAAE,IAAI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CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA;QAC3D,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA;QACpD,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA;QACvD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA;QAE3D,OAAO,GAAG,IAAI,IAAI,KAAK,IAAI,GAAG,IAAI,KAAK,IAAI,OAAO,EAAE,CAAA;IACtD,CAAC;IAEO,MAAM;QACZ,OAAO,CAAC,IAAI,EAAE,CAAA;IAChB,CAAC;;AAnZM,sBAAM,GAAG;IACd,qBAAqB;IACrB,eAAe;IACf,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAoKF;CACF,AAxKY,CAwKZ;AAE2B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDAAyB;AAE3C;IAAR,KAAK,EAAE;;kDAA2C;AAC1C;IAAR,KAAK,EAAE;;yDAA6B;AAC5B;IAAR,KAAK,EAAE;;wDAA4B;AA/KzB,eAAe;IAD3B,aAAa,CAAC,mBAAmB,CAAC;GACtB,eAAe,CAqZ3B","sourcesContent":["import '@material/web/button/elevated-button.js'\nimport '@material/web/icon/icon.js'\nimport '@material/web/tabs/tabs.js'\nimport '@material/web/tabs/primary-tab.js'\n\nimport gql from 'graphql-tag'\nimport { client } from '@operato/graphql'\nimport { css, html, LitElement } from 'lit'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { ButtonContainerStyles, ScrollbarStyles } from '@operato/styles'\nimport { notify, openPopup } from '@operato/layout'\nimport '../image-preview-popup'\nimport { BuildingInspectionStatus } from '../../building-inspection-list'\n\nexport enum PhotoTab {\n CONSTRUCTOR = 'constructor',\n SUPERVISOR = 'supervisor'\n}\n\n@customElement('photo-album-popup')\nexport class PhotoAlbumPopup extends LitElement {\n static styles = [\n ButtonContainerStyles,\n ScrollbarStyles,\n css`\n :host {\n display: flex;\n flex-direction: column;\n background-color: #fff;\n width: 100%;\n max-height: 80vh;\n }\n\n div[body] {\n flex: 1;\n overflow-y: auto;\n padding: 20px;\n }\n\n .tabs-container {\n margin-bottom: 20px;\n border-bottom: 2px solid #ddd;\n }\n\n md-tabs {\n --md-primary-tab-container-color: transparent;\n --md-primary-tab-active-indicator-color: #2196f3;\n --md-primary-tab-label-text-color: #666;\n --md-primary-tab-active-label-text-color: #2196f3;\n }\n\n .photo-grid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));\n gap: 15px;\n margin-bottom: 20px;\n }\n\n .photo-item {\n position: relative;\n aspect-ratio: 1;\n border-radius: 8px;\n overflow: hidden;\n cursor: pointer;\n transition: all 0.2s ease;\n border: 2px solid #ddd;\n }\n\n .photo-item:hover {\n transform: translateY(-2px);\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n border-color: #2196f3;\n }\n\n .photo-item img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n\n .photo-overlay {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));\n color: white;\n padding: 10px 8px 8px;\n font-size: 12px;\n line-height: 1.2;\n }\n\n .photo-info {\n display: flex;\n flex-direction: column;\n gap: 2px;\n }\n\n .photo-name {\n font-weight: bold;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .photo-creator {\n font-size: 10px;\n opacity: 0.9;\n display: flex;\n align-items: center;\n gap: 3px;\n }\n\n .photo-date {\n font-size: 10px;\n opacity: 0.8;\n }\n\n .file-icon-container {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n background-color: #f5f5f5;\n position: relative;\n }\n\n .file-icon {\n --md-icon-size: 48px;\n color: #666;\n margin-bottom: 8px;\n }\n\n .file-extension {\n font-size: 12px;\n font-weight: bold;\n color: #444;\n background-color: #e0e0e0;\n padding: 2px 6px;\n border-radius: 3px;\n text-transform: uppercase;\n }\n\n .empty-state {\n text-align: center;\n color: #666;\n padding: 60px 20px;\n }\n\n .empty-state md-icon {\n --md-icon-size: 64px;\n color: #ccc;\n margin-bottom: 16px;\n }\n\n .tab-content {\n min-height: 300px;\n }\n\n .photo-count {\n color: #666;\n font-size: 14px;\n margin-bottom: 15px;\n padding: 10px;\n background-color: #f5f5f5;\n border-radius: 5px;\n text-align: center;\n }\n\n h3 {\n position: relative;\n color: rgb(5, 149, 229);\n font-size: 17px;\n font-weight: 700;\n margin: 0px 0px 20px 0px;\n padding-top: 0px;\n }\n\n .button-container {\n display: flex;\n justify-content: center;\n padding: 15px;\n border-top: 1px solid #ddd;\n background-color: #f9f9f9;\n margin-left: unset;\n }\n `\n ]\n\n @property({ type: String }) checklistId: string = ''\n\n @state() activeTab: PhotoTab = PhotoTab.CONSTRUCTOR\n @state() constructorFiles: any[] = []\n @state() supervisorFiles: any[] = []\n\n render() {\n const currentFiles = this.activeTab === PhotoTab.CONSTRUCTOR ? this.constructorFiles : this.supervisorFiles\n const constructorCount = this.constructorFiles.length\n const supervisorCount = this.supervisorFiles.length\n\n return html`\n <div body>\n <div class=\"tabs-container\">\n <md-tabs>\n <md-primary-tab\n ?active=${this.activeTab === PhotoTab.CONSTRUCTOR}\n @click=${() => this._setActiveTab(PhotoTab.CONSTRUCTOR)}\n >\n 시공자 (${constructorCount})\n </md-primary-tab>\n <md-primary-tab\n ?active=${this.activeTab === PhotoTab.SUPERVISOR}\n @click=${() => this._setActiveTab(PhotoTab.SUPERVISOR)}\n >\n 감리자 (${supervisorCount})\n </md-primary-tab>\n </md-tabs>\n </div>\n\n <div class=\"tab-content\">\n <div class=\"photo-count\">\n ${this.activeTab === PhotoTab.CONSTRUCTOR ? '시공자' : '감리자'} 첨부파일: ${currentFiles.length}건\n </div>\n\n ${currentFiles.length > 0\n ? html`\n <div class=\"photo-grid\">\n ${currentFiles.map(\n (file, index) => html`\n <div class=\"photo-item\" @click=${() => this._openFilePreview(currentFiles, index)}>\n ${this._isImageFile(file.fullpath)\n ? html`<img\n src=\"${file.fullpath}\"\n alt=\"${file.name}\"\n @error=${(e: Event) => this._onImageError(e, file)}\n />`\n : html`\n <div class=\"file-icon-container\">\n <md-icon class=\"file-icon\">description</md-icon>\n <div class=\"file-extension\">${this._getFileExtension(file.fullpath)}</div>\n </div>\n `}\n <div class=\"photo-overlay\">\n <div class=\"photo-info\">\n <div class=\"photo-name\">${file.name}</div>\n <div class=\"photo-creator\">\n <md-icon style=\"--md-icon-size: 10px;\">account_circle</md-icon>\n ${file.creator?.name || ''}\n </div>\n <div class=\"photo-date\">${this._formatDate(file.createdAt)}</div>\n </div>\n </div>\n </div>\n `\n )}\n </div>\n `\n : html`\n <div class=\"empty-state\">\n <md-icon>attach_file</md-icon>\n <div>${this.activeTab === PhotoTab.CONSTRUCTOR ? '시공자' : '감리자'}가 업로드한 첨부파일이 없습니다.</div>\n </div>\n `}\n </div>\n </div>\n\n <div class=\"button-container\">\n <md-elevated-button @click=${this._close}> <md-icon slot=\"icon\">close</md-icon>닫기 </md-elevated-button>\n </div>\n `\n }\n\n async firstUpdated() {\n await this._loadPhotos()\n }\n\n private async _loadPhotos() {\n try {\n const response = await client.query({\n query: gql`\n query ChecklistPhotos($checklistId: String!) {\n checklist(id: $checklistId) {\n id\n checklistAttachments {\n id\n name\n fullpath\n description\n creator {\n name\n }\n createdAt\n }\n checklistItems {\n id\n name\n checklistItemAttachments {\n id\n name\n fullpath\n description\n creator {\n id\n name\n email\n }\n createdAt\n }\n }\n }\n }\n `,\n variables: {\n checklistId: this.checklistId\n }\n })\n\n if (response.errors) {\n notify({ message: '사진 목록을 불러오는데 실패했습니다.', level: 'error' })\n return\n }\n\n const checklist = response.data.checklist\n // 모든 첨부파일을 수집 (체크리스트 레벨 + 아이템 레벨)\n const allAttachments = [\n // 체크리스트 레벨 첨부파일\n ...(checklist.checklistAttachments?.map((attachment: any) => ({\n ...attachment,\n previewTitle: `사진 대지`\n })) || []),\n // 체크리스트 아이템 레벨 첨부파일\n ...(checklist.checklistItems?.flatMap(\n (item: any) =>\n item.checklistItemAttachments?.map((attachment: any) => ({\n ...attachment,\n previewTitle: `[검사 항목] ${item.name}`\n })) || []\n ) || [])\n ]\n\n // 시공자와 감리자로 분류 (이메일 도메인이나 역할로 구분)\n this.constructorFiles = allAttachments.filter(attachment =>\n [BuildingInspectionStatus.WAIT, BuildingInspectionStatus.OVERALL_WAIT, BuildingInspectionStatus.FAIL].includes(\n attachment.description\n )\n )\n\n this.supervisorFiles = allAttachments.filter(attachment =>\n [BuildingInspectionStatus.REQUEST, BuildingInspectionStatus.OVERALL_REQUEST].includes(attachment.description)\n )\n } catch (error) {\n console.error('사진 목록 로딩 중 오류 발생:', error)\n notify({ message: '사진 목록을 불러오는데 실패했습니다.', level: 'error' })\n }\n }\n\n private _isImageFile(filepath: string): boolean {\n if (!filepath) return false\n const imageExtensions = ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp', 'svg']\n const extension = filepath.toLowerCase().split('.').pop()\n return imageExtensions.includes(extension || '')\n }\n\n private _getFileExtension(filepath: string): string {\n if (!filepath) return ''\n const extension = filepath.toLowerCase().split('.').pop()\n return extension || 'file'\n }\n\n private _setActiveTab(tab: PhotoTab) {\n this.activeTab = tab\n }\n\n private _openFilePreview(files: any[], startIndex: number) {\n const file = files[startIndex]\n\n if (this._isImageFile(file.fullpath)) {\n // 이미지들만 필터링해서 이미지 미리보기 팝업 열기\n const imageFiles = files.filter(f => this._isImageFile(f.fullpath))\n const imageIndex = imageFiles.findIndex(f => f.id === file.id)\n\n openPopup(\n html` <image-preview-popup .images=${imageFiles} .currentIndex=${Math.max(0, imageIndex)}></image-preview-popup> `,\n { backdrop: true, size: 'large', title: '사진 미리보기' }\n )\n } else {\n // 일반 파일은 새 탭에서 열기 또는 다운로드\n window.open(file.fullpath, '_blank')\n }\n }\n\n private _onImageError(e: Event, file: any) {\n const target = e.target as HTMLImageElement\n target.style.display = 'none'\n\n // 오류 발생 시 기본 아이콘 표시\n const container = target.parentElement!\n container.innerHTML += `\n <div style=\"display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background-color: #f5f5f5;\">\n <md-icon style=\"--md-icon-size: 48px; color: #ccc;\">broken_image</md-icon>\n </div>\n `\n }\n\n private _formatDate(date: string | Date): string {\n const _date = new Date(date)\n\n if (isNaN(_date.getTime())) {\n return '날짜 없음'\n }\n\n const year = _date.getFullYear()\n const month = String(_date.getMonth() + 1).padStart(2, '0')\n const day = String(_date.getDate()).padStart(2, '0')\n const hours = String(_date.getHours()).padStart(2, '0')\n const minutes = String(_date.getMinutes()).padStart(2, '0')\n\n return `${year}.${month}.${day} ${hours}:${minutes}`\n }\n\n private _close() {\n history.back()\n }\n}\n"]}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { BizEvent, CALENDAR, EventProvider } from '@operato/event-view';
|
|
2
2
|
export declare class InspectionEventProvider implements EventProvider {
|
|
3
3
|
buildingLevelId: {};
|
|
4
|
-
|
|
4
|
+
projectId: string;
|
|
5
|
+
constructor(buildingLevelId?: string, projectId?: string);
|
|
5
6
|
fetchEventsForCalendar(calendar: CALENDAR): Promise<Map<Date, BizEvent[]>>;
|
|
6
7
|
private getCalendarTemplate;
|
|
7
8
|
}
|
|
@@ -1,19 +1,27 @@
|
|
|
1
1
|
import { html } from 'lit';
|
|
2
2
|
import gql from 'graphql-tag';
|
|
3
3
|
import { client } from '@operato/graphql';
|
|
4
|
+
import moment from 'moment-timezone';
|
|
4
5
|
export class InspectionEventProvider {
|
|
5
|
-
constructor(buildingLevelId = '') {
|
|
6
|
+
constructor(buildingLevelId = '', projectId = '') {
|
|
6
7
|
this.buildingLevelId = {};
|
|
8
|
+
this.projectId = '';
|
|
7
9
|
this.buildingLevelId = buildingLevelId;
|
|
10
|
+
this.projectId = projectId;
|
|
8
11
|
}
|
|
9
12
|
async fetchEventsForCalendar(calendar) {
|
|
10
|
-
var _a;
|
|
13
|
+
var _a, _b;
|
|
11
14
|
const result = new Map();
|
|
12
|
-
const startDate = calendar[0]['date']
|
|
13
|
-
const endDate = calendar[calendar.length - 1]['date']
|
|
15
|
+
const startDate = moment(calendar[0]['date']).format('YYYY-MM-DD');
|
|
16
|
+
const endDate = moment(calendar[calendar.length - 1]['date']).format('YYYY-MM-DD');
|
|
14
17
|
const response = await client.query({
|
|
15
18
|
query: gql `
|
|
16
|
-
query BuildingInspectionDateSummaryOfLevelAndPeriod(
|
|
19
|
+
query BuildingInspectionDateSummaryOfLevelAndPeriod(
|
|
20
|
+
$buildingLevelId: String!
|
|
21
|
+
$startDate: String!
|
|
22
|
+
$endDate: String!
|
|
23
|
+
$projectId: String!
|
|
24
|
+
) {
|
|
17
25
|
buildingInspectionDateSummaryOfLevelAndPeriod(
|
|
18
26
|
buildingLevelId: $buildingLevelId
|
|
19
27
|
startDate: $startDate
|
|
@@ -24,31 +32,46 @@ export class InspectionEventProvider {
|
|
|
24
32
|
request
|
|
25
33
|
pass
|
|
26
34
|
fail
|
|
35
|
+
reWait
|
|
36
|
+
}
|
|
37
|
+
dailyWorklogDatesOfProject(projectId: $projectId, startDate: $startDate, endDate: $endDate) {
|
|
38
|
+
id
|
|
39
|
+
date
|
|
27
40
|
}
|
|
28
41
|
}
|
|
29
42
|
`,
|
|
30
43
|
variables: {
|
|
31
44
|
buildingLevelId: this.buildingLevelId,
|
|
45
|
+
projectId: this.projectId,
|
|
32
46
|
startDate,
|
|
33
47
|
endDate
|
|
34
48
|
}
|
|
35
49
|
});
|
|
36
|
-
// if (response.errors) return null
|
|
37
50
|
const calendarData = this.getCalendarTemplate((_a = response.data) === null || _a === void 0 ? void 0 : _a.buildingInspectionDateSummaryOfLevelAndPeriod);
|
|
51
|
+
const worklogDates = ((_b = response.data) === null || _b === void 0 ? void 0 : _b.dailyWorklogDatesOfProject.map(v => v.date)) || [];
|
|
52
|
+
const worklogSet = new Set(worklogDates);
|
|
38
53
|
calendar.forEach(({ date }) => {
|
|
39
54
|
const formattedDate = date.toLocaleDateString('en-CA'); // 'en-CA'는 'YYYY-MM-DD' 형식으로 반환됩니다.
|
|
40
55
|
const template = calendarData[formattedDate];
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
56
|
+
const hasWorklog = worklogSet.has(formattedDate);
|
|
57
|
+
if (template || hasWorklog) {
|
|
58
|
+
result.set(date, [
|
|
59
|
+
{
|
|
60
|
+
due: formattedDate,
|
|
61
|
+
template: html `
|
|
62
|
+
<div style="display:grid;grid-template-columns:repeat(2,1fr);padding-inline:7px;align-items:center;gap:4px;">
|
|
63
|
+
${template || html ``}
|
|
64
|
+
${hasWorklog
|
|
65
|
+
? html `<div style="justify-self:end"><md-icon style="color:#008000;">description</md-icon></div>`
|
|
66
|
+
: html ``}
|
|
67
|
+
</div>
|
|
68
|
+
`,
|
|
69
|
+
title: '',
|
|
70
|
+
color: '',
|
|
71
|
+
clickEvent: e => console.log('calendar click', formattedDate)
|
|
72
|
+
}
|
|
73
|
+
]);
|
|
74
|
+
}
|
|
52
75
|
});
|
|
53
76
|
return result;
|
|
54
77
|
}
|
|
@@ -59,9 +82,10 @@ export class InspectionEventProvider {
|
|
|
59
82
|
template[date.requestDate] = html `
|
|
60
83
|
<div style="display: grid; grid-template-columns: repeat(2, 1fr); padding-inline: 7px;">
|
|
61
84
|
${date.wait !== 0 ? html `<div><span style="font-size: 1.3em; color: #4e5055">●</span> ${date.wait}</div>` : ''}
|
|
62
|
-
${date.request !== 0 ? html `<div><span style="font-size: 1.3em; color: #
|
|
85
|
+
${date.request !== 0 ? html `<div><span style="font-size: 1.3em; color: #2e79be">●</span> ${date.request}</div>` : ''}
|
|
63
86
|
${date.pass !== 0 ? html `<div><span style="font-size: 1.3em; color: #1bb401">●</span> ${date.pass}</div>` : ''}
|
|
64
87
|
${date.fail !== 0 ? html `<div><span style="font-size: 1.3em; color: #ff4444">●</span> ${date.fail}</div>` : ''}
|
|
88
|
+
${date.reWait ? html `<div><span style="font-size: 1.3em; color: #e89c0e">●</span> ${date.reWait}</div>` : ''}
|
|
65
89
|
</div>
|
|
66
90
|
`;
|
|
67
91
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspection-event-provider.js","sourceRoot":"","sources":["../../../../client/pages/building-inspection/component/inspection-event-provider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAC1C,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"inspection-event-provider.js","sourceRoot":"","sources":["../../../../client/pages/building-inspection/component/inspection-event-provider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAC1C,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,MAAM,MAAM,iBAAiB,CAAA;AAEpC,MAAM,OAAO,uBAAuB;IAIlC,YAAY,kBAA0B,EAAE,EAAE,YAAoB,EAAE;QAHhE,oBAAe,GAAG,EAAE,CAAA;QACpB,cAAS,GAAW,EAAE,CAAA;QAGpB,IAAI,CAAC,eAAe,GAAG,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AI,QAAQ,CAAC,CAAC,CAAC,EAAE;YAC5G,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAA,gEAAgE,IAAI,CAAC,MAAM,QAAQ,CAAC,CAAC,CAAC,EAAE;;OAE/G,CAAA;QACH,CAAC;QAED,OAAO,QAAQ,CAAA;IACjB,CAAC;CACF","sourcesContent":["import { BizEvent, CALENDAR, EventProvider } from '@operato/event-view'\nimport { html, TemplateResult } from 'lit'\nimport gql from 'graphql-tag'\nimport { client } from '@operato/graphql'\nimport moment from 'moment-timezone'\n\nexport class InspectionEventProvider implements EventProvider {\n buildingLevelId = {}\n projectId: string = ''\n\n constructor(buildingLevelId: string = '', projectId: string = '') {\n this.buildingLevelId = buildingLevelId\n this.projectId = projectId\n }\n\n async fetchEventsForCalendar(calendar: CALENDAR): Promise<Map<Date, BizEvent[]>> {\n const result = new Map<Date, BizEvent[]>()\n const startDate = moment(calendar[0]['date']).format('YYYY-MM-DD')\n const endDate = moment(calendar[calendar.length - 1]['date']).format('YYYY-MM-DD')\n\n const response = await client.query({\n query: gql`\n query BuildingInspectionDateSummaryOfLevelAndPeriod(\n $buildingLevelId: String!\n $startDate: String!\n $endDate: String!\n $projectId: String!\n ) {\n buildingInspectionDateSummaryOfLevelAndPeriod(\n buildingLevelId: $buildingLevelId\n startDate: $startDate\n endDate: $endDate\n ) {\n requestDate\n wait\n request\n pass\n fail\n reWait\n }\n dailyWorklogDatesOfProject(projectId: $projectId, startDate: $startDate, endDate: $endDate) {\n id\n date\n }\n }\n `,\n variables: {\n buildingLevelId: this.buildingLevelId,\n projectId: this.projectId,\n startDate,\n endDate\n }\n })\n\n const calendarData = this.getCalendarTemplate(response.data?.buildingInspectionDateSummaryOfLevelAndPeriod)\n const worklogDates: string[] = response.data?.dailyWorklogDatesOfProject.map(v => v.date) || []\n const worklogSet = new Set(worklogDates)\n\n calendar.forEach(({ date }) => {\n const formattedDate = date.toLocaleDateString('en-CA') // 'en-CA'는 'YYYY-MM-DD' 형식으로 반환됩니다.\n const template = calendarData[formattedDate]\n\n const hasWorklog = worklogSet.has(formattedDate)\n if (template || hasWorklog) {\n result.set(date, [\n {\n due: formattedDate,\n template: html`\n <div style=\"display:grid;grid-template-columns:repeat(2,1fr);padding-inline:7px;align-items:center;gap:4px;\">\n ${template || html``}\n ${hasWorklog\n ? html`<div style=\"justify-self:end\"><md-icon style=\"color:#008000;\">description</md-icon></div>`\n : html``}\n </div>\n `,\n title: '',\n color: '',\n clickEvent: e => console.log('calendar click', formattedDate)\n }\n ])\n }\n })\n\n return result\n }\n\n // 검측 개수가 있는 데이터들만 날짜별로 템플릿 만들기\n private getCalendarTemplate(inspectionData: any[] = []): { [date: string]: TemplateResult } {\n const template = {}\n for (let date of inspectionData) {\n template[date.requestDate] = html`\n <div style=\"display: grid; grid-template-columns: repeat(2, 1fr); padding-inline: 7px;\">\n ${date.wait !== 0 ? html`<div><span style=\"font-size: 1.3em; color: #4e5055\">●</span> ${date.wait}</div>` : ''}\n ${date.request !== 0 ? html`<div><span style=\"font-size: 1.3em; color: #2e79be\">●</span> ${date.request}</div>` : ''}\n ${date.pass !== 0 ? html`<div><span style=\"font-size: 1.3em; color: #1bb401\">●</span> ${date.pass}</div>` : ''}\n ${date.fail !== 0 ? html`<div><span style=\"font-size: 1.3em; color: #ff4444\">●</span> ${date.fail}</div>` : ''}\n ${date.reWait ? html`<div><span style=\"font-size: 1.3em; color: #e89c0e\">●</span> ${date.reWait}</div>` : ''}\n </div>\n `\n }\n\n return template\n }\n}\n"]}
|