@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,683 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import '@material/web/icon/icon.js';
|
|
3
|
+
import '@material/web/button/elevated-button.js';
|
|
4
|
+
import '@material/web/textfield/outlined-text-field.js';
|
|
5
|
+
import '@operato/input/ox-input-file.js';
|
|
6
|
+
import gql from 'graphql-tag';
|
|
7
|
+
import { client } from '@operato/graphql';
|
|
8
|
+
import { css, html, LitElement } from 'lit';
|
|
9
|
+
import { customElement, property, query, state } from 'lit/decorators.js';
|
|
10
|
+
import { ButtonContainerStyles, ScrollbarStyles } from '@operato/styles';
|
|
11
|
+
import { notify } from '@operato/layout';
|
|
12
|
+
import { store, User, connect } from '@operato/shell';
|
|
13
|
+
import { OxPrompt } from '@operato/popup/ox-prompt.js';
|
|
14
|
+
import { openPopup } from '@operato/layout';
|
|
15
|
+
import './file-preview-popup';
|
|
16
|
+
import { BuildingInspectionStatus } from '../building-inspection/building-inspection-list';
|
|
17
|
+
let InspectionInfoPopup = class InspectionInfoPopup extends connect(store)(LitElement) {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
this.buildingInspectionId = '';
|
|
21
|
+
this.status = BuildingInspectionStatus.WAIT;
|
|
22
|
+
this.mode = "VIEWER" /* ChecklistMode.VIEWER */;
|
|
23
|
+
this.memo = '';
|
|
24
|
+
this.attachments = [];
|
|
25
|
+
this.user = {};
|
|
26
|
+
this.isCapturing = false;
|
|
27
|
+
this.stream = null;
|
|
28
|
+
}
|
|
29
|
+
render() {
|
|
30
|
+
const canEdit = this.status !== BuildingInspectionStatus.PASS && this.mode === "EDITOR" /* ChecklistMode.EDITOR */;
|
|
31
|
+
const isCameraSupported = navigator.mediaDevices && 'mediaDevices' in navigator;
|
|
32
|
+
return html `
|
|
33
|
+
<div class="section">
|
|
34
|
+
<h3 class="section-title">검측 메모</h3>
|
|
35
|
+
<div class="memo-container">
|
|
36
|
+
<textarea
|
|
37
|
+
class="memo-textarea"
|
|
38
|
+
.value=${this.memo}
|
|
39
|
+
?disabled=${!canEdit}
|
|
40
|
+
@input=${this._onMemoChange}
|
|
41
|
+
placeholder="검측과 관련된 메모를 입력하세요..."
|
|
42
|
+
></textarea>
|
|
43
|
+
${canEdit
|
|
44
|
+
? html `
|
|
45
|
+
<div style="display: flex; justify-content: flex-end;">
|
|
46
|
+
<md-elevated-button @click=${this._saveMemo}> <md-icon slot="icon">save</md-icon>메모 저장 </md-elevated-button>
|
|
47
|
+
</div>
|
|
48
|
+
`
|
|
49
|
+
: ''}
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
|
|
53
|
+
<div class="section file-section">
|
|
54
|
+
<h3 class="section-title">첨부 자료</h3>
|
|
55
|
+
|
|
56
|
+
${canEdit
|
|
57
|
+
? html `
|
|
58
|
+
<div class="upload-controls">
|
|
59
|
+
${isCameraSupported
|
|
60
|
+
? html `
|
|
61
|
+
<button class="camera-button" @click=${this._toggleCamera} ?disabled=${this.isCapturing}>
|
|
62
|
+
<md-icon>camera_alt</md-icon>
|
|
63
|
+
${this.isCapturing ? '촬영 중지' : '사진 촬영'}
|
|
64
|
+
</button>
|
|
65
|
+
`
|
|
66
|
+
: ''}
|
|
67
|
+
|
|
68
|
+
<ox-input-file accept="image/*,application/pdf,*/*" multiple="true" hide-filelist @change=${this._onFileSelect}>
|
|
69
|
+
<button class="file-button" slot="trigger">
|
|
70
|
+
<md-icon>attach_file</md-icon>
|
|
71
|
+
파일 선택
|
|
72
|
+
</button>
|
|
73
|
+
</ox-input-file>
|
|
74
|
+
</div>
|
|
75
|
+
|
|
76
|
+
<div class="video-container ${this.isCapturing ? '' : 'hidden'}">
|
|
77
|
+
<video id="video" autoplay playsinline></video>
|
|
78
|
+
<div class="camera-controls">
|
|
79
|
+
<md-elevated-button @click=${this._capturePhoto}>
|
|
80
|
+
<md-icon slot="icon">camera</md-icon>촬영
|
|
81
|
+
</md-elevated-button>
|
|
82
|
+
<md-elevated-button @click=${this._stopCamera}> <md-icon slot="icon">close</md-icon>취소 </md-elevated-button>
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
`
|
|
86
|
+
: ''}
|
|
87
|
+
|
|
88
|
+
<div class="attachment-list">
|
|
89
|
+
${this.attachments.length === 0
|
|
90
|
+
? html ` <div class="empty-state" style="grid-column: 1 / -1;">첨부된 파일이 없습니다.</div> `
|
|
91
|
+
: this.attachments.map(attachment => html `
|
|
92
|
+
<div class="attachment-item" @click=${() => this._previewFile(attachment.fullpath)}>
|
|
93
|
+
<div class="attachment-preview">
|
|
94
|
+
${this._isImageFile(attachment.name)
|
|
95
|
+
? html `<img
|
|
96
|
+
src="${attachment.fullpath}"
|
|
97
|
+
alt="${attachment.name}"
|
|
98
|
+
loading="lazy"
|
|
99
|
+
@error=${(e) => this._onImageError(e, attachment.name)}
|
|
100
|
+
/>`
|
|
101
|
+
: html `<md-icon>${this._getFileIcon(attachment.name)}</md-icon>`}
|
|
102
|
+
</div>
|
|
103
|
+
<div class="attachment-info">
|
|
104
|
+
<div class="attachment-name" title="${attachment.name}">${attachment.name}</div>
|
|
105
|
+
<div class="creator-info">${attachment.creator.name} • ${this._formatDate(attachment.createdAt)}</div>
|
|
106
|
+
</div>
|
|
107
|
+
<div class="attachment-actions" @click=${(e) => e.stopPropagation()}>
|
|
108
|
+
<a href="${attachment.fullpath}" download="${attachment.name}" title="다운로드">
|
|
109
|
+
<md-icon>download</md-icon>
|
|
110
|
+
</a>
|
|
111
|
+
${attachment.creator.email === this.user.email && canEdit
|
|
112
|
+
? html ` <a href="javascript:void(0)" title="삭제">
|
|
113
|
+
<md-icon @click=${() => this._deleteAttachment(attachment.id)} title="삭제">delete</md-icon>
|
|
114
|
+
</a>`
|
|
115
|
+
: ''}
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
`)}
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
`;
|
|
122
|
+
}
|
|
123
|
+
async firstUpdated() {
|
|
124
|
+
var _a;
|
|
125
|
+
this.user = (_a = store.getState().auth) === null || _a === void 0 ? void 0 : _a.user;
|
|
126
|
+
await this._loadInspectionInfo();
|
|
127
|
+
}
|
|
128
|
+
async _loadInspectionInfo() {
|
|
129
|
+
var _a;
|
|
130
|
+
const response = await client.query({
|
|
131
|
+
query: gql `
|
|
132
|
+
query BuildingInspection($id: String!) {
|
|
133
|
+
buildingInspection(id: $id) {
|
|
134
|
+
id
|
|
135
|
+
memo
|
|
136
|
+
attachments {
|
|
137
|
+
id
|
|
138
|
+
name
|
|
139
|
+
fullpath
|
|
140
|
+
creator {
|
|
141
|
+
id
|
|
142
|
+
name
|
|
143
|
+
email
|
|
144
|
+
}
|
|
145
|
+
createdAt
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
`,
|
|
150
|
+
variables: {
|
|
151
|
+
id: this.buildingInspectionId
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
if ((_a = response.data) === null || _a === void 0 ? void 0 : _a.buildingInspection) {
|
|
155
|
+
this.memo = response.data.buildingInspection.memo || '';
|
|
156
|
+
this.attachments = response.data.buildingInspection.attachments || [];
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
_onMemoChange(e) {
|
|
160
|
+
const target = e.target;
|
|
161
|
+
this.memo = target.value;
|
|
162
|
+
}
|
|
163
|
+
async _saveMemo() {
|
|
164
|
+
const response = await client.mutate({
|
|
165
|
+
mutation: gql `
|
|
166
|
+
mutation UpdateBuildingInspection($patch: UpdateBuildingInspection!) {
|
|
167
|
+
updateBuildingInspection(patch: $patch) {
|
|
168
|
+
id
|
|
169
|
+
memo
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
`,
|
|
173
|
+
variables: {
|
|
174
|
+
patch: {
|
|
175
|
+
id: this.buildingInspectionId,
|
|
176
|
+
memo: this.memo
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
if (!response.errors) {
|
|
181
|
+
notify({ message: '메모가 저장되었습니다.', level: 'info' });
|
|
182
|
+
this._requestRefresh();
|
|
183
|
+
}
|
|
184
|
+
else {
|
|
185
|
+
notify({ message: '메모 저장에 실패했습니다.', level: 'error' });
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
async _toggleCamera() {
|
|
189
|
+
if (this.isCapturing) {
|
|
190
|
+
this._stopCamera();
|
|
191
|
+
}
|
|
192
|
+
else {
|
|
193
|
+
await this._startCamera();
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
async _startCamera() {
|
|
197
|
+
try {
|
|
198
|
+
this.stream = await navigator.mediaDevices.getUserMedia({
|
|
199
|
+
video: { facingMode: 'environment' }, // 후면 카메라 우선
|
|
200
|
+
audio: false
|
|
201
|
+
});
|
|
202
|
+
this.isCapturing = true;
|
|
203
|
+
await this.updateComplete;
|
|
204
|
+
if (this.video) {
|
|
205
|
+
this.video.srcObject = this.stream;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
catch (error) {
|
|
209
|
+
notify({ message: '카메라에 접근할 수 없습니다.', level: 'error' });
|
|
210
|
+
console.error('Camera access error:', error);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
_stopCamera() {
|
|
214
|
+
if (this.stream) {
|
|
215
|
+
this.stream.getTracks().forEach(track => track.stop());
|
|
216
|
+
this.stream = null;
|
|
217
|
+
}
|
|
218
|
+
this.isCapturing = false;
|
|
219
|
+
}
|
|
220
|
+
async _capturePhoto() {
|
|
221
|
+
if (!this.video || !this.stream)
|
|
222
|
+
return;
|
|
223
|
+
const canvas = document.createElement('canvas');
|
|
224
|
+
const context = canvas.getContext('2d');
|
|
225
|
+
canvas.width = this.video.videoWidth;
|
|
226
|
+
canvas.height = this.video.videoHeight;
|
|
227
|
+
context.drawImage(this.video, 0, 0);
|
|
228
|
+
canvas.toBlob(async (blob) => {
|
|
229
|
+
if (blob) {
|
|
230
|
+
const now = new Date();
|
|
231
|
+
const koreaTime = new Date(now.getTime() + 9 * 60 * 60 * 1000); // UTC + 9시간
|
|
232
|
+
const timestamp = koreaTime.toISOString().slice(0, 19).replace('T', '_').replace(/:/g, '-');
|
|
233
|
+
const file = new File([blob], `photo-${timestamp}.jpg`, { type: 'image/jpeg' });
|
|
234
|
+
await this._uploadFiles([file]); // 단일 파일도 배열로 감싸서 전송
|
|
235
|
+
}
|
|
236
|
+
}, 'image/jpeg', 0.8);
|
|
237
|
+
this._stopCamera();
|
|
238
|
+
}
|
|
239
|
+
async _onFileSelect(e) {
|
|
240
|
+
const files = e.detail;
|
|
241
|
+
await this._uploadFiles(files);
|
|
242
|
+
}
|
|
243
|
+
async _uploadFiles(files) {
|
|
244
|
+
if (files.length === 0)
|
|
245
|
+
return;
|
|
246
|
+
try {
|
|
247
|
+
const response = await client.mutate({
|
|
248
|
+
mutation: gql `
|
|
249
|
+
mutation ($attachments: [NewAttachment!]!) {
|
|
250
|
+
createAttachments(attachments: $attachments) {
|
|
251
|
+
id
|
|
252
|
+
name
|
|
253
|
+
fullpath
|
|
254
|
+
creator {
|
|
255
|
+
id
|
|
256
|
+
name
|
|
257
|
+
email
|
|
258
|
+
}
|
|
259
|
+
createdAt
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
`,
|
|
263
|
+
variables: {
|
|
264
|
+
attachments: files.map(file => ({
|
|
265
|
+
file,
|
|
266
|
+
refBy: this.buildingInspectionId,
|
|
267
|
+
refType: 'BuildingInspection'
|
|
268
|
+
}))
|
|
269
|
+
},
|
|
270
|
+
context: {
|
|
271
|
+
hasUpload: true
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
if (!response.errors) {
|
|
275
|
+
const uploadedFiles = response.data.createAttachments;
|
|
276
|
+
this.attachments = [...this.attachments, ...uploadedFiles];
|
|
277
|
+
if (files.length === 1) {
|
|
278
|
+
notify({ message: '파일이 업로드되었습니다.', level: 'info' });
|
|
279
|
+
}
|
|
280
|
+
else {
|
|
281
|
+
notify({ message: `${files.length}개 파일이 모두 업로드되었습니다.`, level: 'info' });
|
|
282
|
+
}
|
|
283
|
+
this._requestRefresh();
|
|
284
|
+
}
|
|
285
|
+
else {
|
|
286
|
+
notify({ message: '파일 업로드에 실패했습니다.', level: 'error' });
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
catch (error) {
|
|
290
|
+
notify({ message: '파일 업로드 중 오류가 발생했습니다.', level: 'error' });
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
async _deleteAttachment(attachmentId) {
|
|
294
|
+
var _a, _b;
|
|
295
|
+
if (await OxPrompt.open({
|
|
296
|
+
title: '첨부 자료 삭제',
|
|
297
|
+
text: '첨부 자료를 삭제하시겠습니까?',
|
|
298
|
+
confirmButton: { text: '삭제' },
|
|
299
|
+
cancelButton: { text: '취소' }
|
|
300
|
+
})) {
|
|
301
|
+
const response = await client.mutate({
|
|
302
|
+
mutation: gql `
|
|
303
|
+
mutation DeleteAttachment($deleteAttachmentId: String!) {
|
|
304
|
+
deleteAttachment(id: $deleteAttachmentId)
|
|
305
|
+
}
|
|
306
|
+
`,
|
|
307
|
+
variables: {
|
|
308
|
+
deleteAttachmentId: attachmentId
|
|
309
|
+
}
|
|
310
|
+
});
|
|
311
|
+
if (!response.errors) {
|
|
312
|
+
this.attachments = this.attachments.filter(attachment => attachment.id !== attachmentId);
|
|
313
|
+
notify({ message: '첨부 자료를 삭제하였습니다.', level: 'info' });
|
|
314
|
+
this._requestRefresh();
|
|
315
|
+
}
|
|
316
|
+
else {
|
|
317
|
+
notify({ message: ((_b = (_a = response.errors) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.message) || '첨부 자료 삭제에 실패하였습니다.', level: 'error' });
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
_previewFile(filepath) {
|
|
322
|
+
openPopup(html `<file-preview-popup .filepath=${filepath}></file-preview-popup>`, {
|
|
323
|
+
backdrop: true,
|
|
324
|
+
size: 'large',
|
|
325
|
+
title: '미리보기'
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
_isImageFile(filename) {
|
|
329
|
+
var _a;
|
|
330
|
+
const ext = (_a = filename.split('.').pop()) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
331
|
+
return ['jpg', 'jpeg', 'png', 'gif', 'webp'].includes(ext || '');
|
|
332
|
+
}
|
|
333
|
+
_onImageError(e, filename) {
|
|
334
|
+
const img = e.target;
|
|
335
|
+
const parent = img.parentElement;
|
|
336
|
+
if (parent) {
|
|
337
|
+
parent.innerHTML = `<md-icon>${this._getFileIcon(filename)}</md-icon>`;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
_getFileIcon(filename) {
|
|
341
|
+
var _a;
|
|
342
|
+
const ext = (_a = filename.split('.').pop()) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
343
|
+
if (['jpg', 'jpeg', 'png', 'gif', 'webp'].includes(ext || '')) {
|
|
344
|
+
return 'image';
|
|
345
|
+
}
|
|
346
|
+
else if (ext === 'pdf') {
|
|
347
|
+
return 'picture_as_pdf';
|
|
348
|
+
}
|
|
349
|
+
else {
|
|
350
|
+
return 'description';
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
_formatDate(date) {
|
|
354
|
+
const _date = new Date(date);
|
|
355
|
+
return _date.toLocaleDateString('ko-KR', {
|
|
356
|
+
year: 'numeric',
|
|
357
|
+
month: '2-digit',
|
|
358
|
+
day: '2-digit',
|
|
359
|
+
hour: '2-digit',
|
|
360
|
+
minute: '2-digit'
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
_requestRefresh() {
|
|
364
|
+
this.dispatchEvent(new CustomEvent('requestRefresh', {
|
|
365
|
+
detail: { buildingInspectionId: this.buildingInspectionId }
|
|
366
|
+
}));
|
|
367
|
+
}
|
|
368
|
+
disconnectedCallback() {
|
|
369
|
+
super.disconnectedCallback();
|
|
370
|
+
this._stopCamera();
|
|
371
|
+
}
|
|
372
|
+
};
|
|
373
|
+
InspectionInfoPopup.styles = [
|
|
374
|
+
ButtonContainerStyles,
|
|
375
|
+
ScrollbarStyles,
|
|
376
|
+
css `
|
|
377
|
+
:host {
|
|
378
|
+
display: flex;
|
|
379
|
+
flex-direction: column;
|
|
380
|
+
padding: 15px 20px;
|
|
381
|
+
background-color: var(--md-sys-color-surface);
|
|
382
|
+
height: 100%;
|
|
383
|
+
gap: 16px;
|
|
384
|
+
overflow-y: auto;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.section {
|
|
388
|
+
display: flex;
|
|
389
|
+
flex-direction: column;
|
|
390
|
+
gap: 12px;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.section-title {
|
|
394
|
+
color: rgb(5, 149, 229);
|
|
395
|
+
font-size: 17px;
|
|
396
|
+
font-weight: 700;
|
|
397
|
+
margin: 0;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.memo-container {
|
|
401
|
+
display: flex;
|
|
402
|
+
flex-direction: column;
|
|
403
|
+
gap: 8px;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.memo-textarea {
|
|
407
|
+
min-height: 120px;
|
|
408
|
+
border: 1px solid #ccc;
|
|
409
|
+
border-radius: 8px;
|
|
410
|
+
padding: 12px;
|
|
411
|
+
font-family: inherit;
|
|
412
|
+
font-size: 14px;
|
|
413
|
+
resize: vertical;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.file-section {
|
|
417
|
+
flex: 1;
|
|
418
|
+
display: flex;
|
|
419
|
+
flex-direction: column;
|
|
420
|
+
gap: 12px;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.upload-controls {
|
|
424
|
+
display: flex;
|
|
425
|
+
gap: 8px;
|
|
426
|
+
flex-wrap: wrap;
|
|
427
|
+
|
|
428
|
+
ox-input-file {
|
|
429
|
+
flex: 1;
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.camera-button,
|
|
434
|
+
.file-button {
|
|
435
|
+
display: flex;
|
|
436
|
+
align-items: center;
|
|
437
|
+
gap: 8px;
|
|
438
|
+
padding: 8px 16px;
|
|
439
|
+
border: 1px solid #ccc;
|
|
440
|
+
border-radius: 8px;
|
|
441
|
+
background: #fff;
|
|
442
|
+
cursor: pointer;
|
|
443
|
+
transition: background 0.2s;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.camera-button:hover,
|
|
447
|
+
.file-button:hover {
|
|
448
|
+
background: #f5f5f5;
|
|
449
|
+
color: #000;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.camera-button:disabled,
|
|
453
|
+
.file-button:disabled {
|
|
454
|
+
opacity: 0.6;
|
|
455
|
+
cursor: not-allowed;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.attachment-list {
|
|
459
|
+
flex: 1;
|
|
460
|
+
overflow-y: auto;
|
|
461
|
+
display: grid;
|
|
462
|
+
grid-template-columns: repeat(3, 1fr);
|
|
463
|
+
gap: 12px;
|
|
464
|
+
max-height: 400px;
|
|
465
|
+
border: 1px solid #eee;
|
|
466
|
+
border-radius: 8px;
|
|
467
|
+
padding: 12px;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.attachment-item {
|
|
471
|
+
display: flex;
|
|
472
|
+
flex-direction: column;
|
|
473
|
+
padding: 8px;
|
|
474
|
+
border: 1px solid #ddd;
|
|
475
|
+
border-radius: 8px;
|
|
476
|
+
background: #fafafa;
|
|
477
|
+
transition: all 0.2s;
|
|
478
|
+
cursor: pointer;
|
|
479
|
+
position: relative;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
.attachment-item:hover {
|
|
483
|
+
transform: translateY(-2px);
|
|
484
|
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.attachment-item:hover .attachment-actions {
|
|
488
|
+
opacity: 1;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
.attachment-preview {
|
|
492
|
+
width: 100%;
|
|
493
|
+
height: 150px;
|
|
494
|
+
display: flex;
|
|
495
|
+
align-items: center;
|
|
496
|
+
justify-content: center;
|
|
497
|
+
border-radius: 6px;
|
|
498
|
+
background: #f8f9fa;
|
|
499
|
+
margin-bottom: 8px;
|
|
500
|
+
overflow: hidden;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.attachment-preview img {
|
|
504
|
+
width: 100%;
|
|
505
|
+
height: 100%;
|
|
506
|
+
object-fit: cover;
|
|
507
|
+
border-radius: 6px;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
.attachment-preview md-icon {
|
|
511
|
+
font-size: 48px;
|
|
512
|
+
color: #666;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
.attachment-info {
|
|
516
|
+
display: flex;
|
|
517
|
+
flex-direction: column;
|
|
518
|
+
gap: 4px;
|
|
519
|
+
flex: 1;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.attachment-name {
|
|
523
|
+
font-size: 13px;
|
|
524
|
+
font-weight: 500;
|
|
525
|
+
line-height: 1.2;
|
|
526
|
+
overflow: hidden;
|
|
527
|
+
text-overflow: ellipsis;
|
|
528
|
+
display: -webkit-box;
|
|
529
|
+
-webkit-line-clamp: 2;
|
|
530
|
+
-webkit-box-orient: vertical;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
.attachment-actions {
|
|
534
|
+
position: absolute;
|
|
535
|
+
top: 4px;
|
|
536
|
+
right: 4px;
|
|
537
|
+
display: flex;
|
|
538
|
+
gap: 4px;
|
|
539
|
+
opacity: 0.7;
|
|
540
|
+
transition: opacity 0.2s;
|
|
541
|
+
background: rgba(255, 255, 255, 0.9);
|
|
542
|
+
border-radius: 4px;
|
|
543
|
+
padding: 2px;
|
|
544
|
+
backdrop-filter: blur(2px);
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
.attachment-actions a,
|
|
548
|
+
.attachment-actions md-icon {
|
|
549
|
+
cursor: pointer;
|
|
550
|
+
padding: 4px;
|
|
551
|
+
border-radius: 4px;
|
|
552
|
+
transition: background 0.2s;
|
|
553
|
+
color: #666;
|
|
554
|
+
display: flex;
|
|
555
|
+
align-items: center;
|
|
556
|
+
justify-content: center;
|
|
557
|
+
text-decoration: none;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
.attachment-actions a:hover,
|
|
561
|
+
.attachment-actions md-icon:hover {
|
|
562
|
+
background: rgba(0, 0, 0, 0.1);
|
|
563
|
+
color: #000;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
.creator-info {
|
|
567
|
+
font-size: 12px;
|
|
568
|
+
color: #666;
|
|
569
|
+
margin-top: 4px;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
.empty-state {
|
|
573
|
+
text-align: center;
|
|
574
|
+
color: #666;
|
|
575
|
+
font-style: italic;
|
|
576
|
+
padding: 20px;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
#cameraInput {
|
|
580
|
+
display: none;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
.video-container {
|
|
584
|
+
position: relative;
|
|
585
|
+
margin-bottom: 12px;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
#video {
|
|
589
|
+
width: 100%;
|
|
590
|
+
max-width: 400px;
|
|
591
|
+
height: auto;
|
|
592
|
+
border: 1px solid #ccc;
|
|
593
|
+
border-radius: 8px;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
.camera-controls {
|
|
597
|
+
display: flex;
|
|
598
|
+
gap: 8px;
|
|
599
|
+
margin-top: 8px;
|
|
600
|
+
justify-content: center;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
.hidden {
|
|
604
|
+
display: none;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
/* 반응형 디자인 */
|
|
608
|
+
@media (max-width: 768px) {
|
|
609
|
+
.attachment-list {
|
|
610
|
+
grid-template-columns: repeat(2, 1fr);
|
|
611
|
+
gap: 8px;
|
|
612
|
+
padding: 8px;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
.attachment-preview {
|
|
616
|
+
height: 100px;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
.attachment-name {
|
|
620
|
+
font-size: 12px;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
.creator-info {
|
|
624
|
+
font-size: 11px;
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
@media (max-width: 480px) {
|
|
629
|
+
.attachment-list {
|
|
630
|
+
grid-template-columns: 1fr;
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
`
|
|
634
|
+
];
|
|
635
|
+
__decorate([
|
|
636
|
+
property({ type: String }),
|
|
637
|
+
__metadata("design:type", String)
|
|
638
|
+
], InspectionInfoPopup.prototype, "buildingInspectionId", void 0);
|
|
639
|
+
__decorate([
|
|
640
|
+
property({ type: String }),
|
|
641
|
+
__metadata("design:type", String)
|
|
642
|
+
], InspectionInfoPopup.prototype, "status", void 0);
|
|
643
|
+
__decorate([
|
|
644
|
+
property({ type: String }),
|
|
645
|
+
__metadata("design:type", String)
|
|
646
|
+
], InspectionInfoPopup.prototype, "mode", void 0);
|
|
647
|
+
__decorate([
|
|
648
|
+
state(),
|
|
649
|
+
__metadata("design:type", String)
|
|
650
|
+
], InspectionInfoPopup.prototype, "memo", void 0);
|
|
651
|
+
__decorate([
|
|
652
|
+
state(),
|
|
653
|
+
__metadata("design:type", Array)
|
|
654
|
+
], InspectionInfoPopup.prototype, "attachments", void 0);
|
|
655
|
+
__decorate([
|
|
656
|
+
state(),
|
|
657
|
+
__metadata("design:type", User)
|
|
658
|
+
], InspectionInfoPopup.prototype, "user", void 0);
|
|
659
|
+
__decorate([
|
|
660
|
+
state(),
|
|
661
|
+
__metadata("design:type", Boolean)
|
|
662
|
+
], InspectionInfoPopup.prototype, "isCapturing", void 0);
|
|
663
|
+
__decorate([
|
|
664
|
+
state(),
|
|
665
|
+
__metadata("design:type", Object)
|
|
666
|
+
], InspectionInfoPopup.prototype, "stream", void 0);
|
|
667
|
+
__decorate([
|
|
668
|
+
query('#video'),
|
|
669
|
+
__metadata("design:type", HTMLVideoElement)
|
|
670
|
+
], InspectionInfoPopup.prototype, "video", void 0);
|
|
671
|
+
__decorate([
|
|
672
|
+
query('#cameraInput'),
|
|
673
|
+
__metadata("design:type", HTMLInputElement)
|
|
674
|
+
], InspectionInfoPopup.prototype, "cameraInput", void 0);
|
|
675
|
+
__decorate([
|
|
676
|
+
query('ox-input-file'),
|
|
677
|
+
__metadata("design:type", Object)
|
|
678
|
+
], InspectionInfoPopup.prototype, "fileInput", void 0);
|
|
679
|
+
InspectionInfoPopup = __decorate([
|
|
680
|
+
customElement('inspection-info-popup')
|
|
681
|
+
], InspectionInfoPopup);
|
|
682
|
+
export { InspectionInfoPopup };
|
|
683
|
+
//# sourceMappingURL=inspection-info-popup.js.map
|