@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,348 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import '@material/web/button/elevated-button.js';
|
|
3
|
+
import '@material/web/icon/icon.js';
|
|
4
|
+
import { css, html, LitElement } from 'lit';
|
|
5
|
+
import { customElement, property } from 'lit/decorators.js';
|
|
6
|
+
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
7
|
+
let ImagePreviewPopup = class ImagePreviewPopup extends LitElement {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.images = [];
|
|
11
|
+
this.currentIndex = 0;
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
var _a;
|
|
15
|
+
const currentImage = this.images[this.currentIndex];
|
|
16
|
+
const hasMultipleImages = this.images.length > 1;
|
|
17
|
+
return html `
|
|
18
|
+
${(currentImage === null || currentImage === void 0 ? void 0 : currentImage.previewTitle)
|
|
19
|
+
? html `
|
|
20
|
+
<div class="inspection-header">
|
|
21
|
+
<div class="inspection-name">${currentImage.previewTitle}</div>
|
|
22
|
+
</div>
|
|
23
|
+
`
|
|
24
|
+
: ''}
|
|
25
|
+
|
|
26
|
+
<div body>
|
|
27
|
+
${hasMultipleImages
|
|
28
|
+
? html `
|
|
29
|
+
<button class="navigation-button prev" @click=${this._previousImage} ?disabled=${this.currentIndex === 0}>
|
|
30
|
+
<md-icon>chevron_left</md-icon>
|
|
31
|
+
</button>
|
|
32
|
+
<button
|
|
33
|
+
class="navigation-button next"
|
|
34
|
+
@click=${this._nextImage}
|
|
35
|
+
?disabled=${this.currentIndex === this.images.length - 1}
|
|
36
|
+
>
|
|
37
|
+
<md-icon>chevron_right</md-icon>
|
|
38
|
+
</button>
|
|
39
|
+
`
|
|
40
|
+
: ''}
|
|
41
|
+
|
|
42
|
+
<div class="image-container">
|
|
43
|
+
${currentImage
|
|
44
|
+
? html `
|
|
45
|
+
<img
|
|
46
|
+
class="zoomable-image"
|
|
47
|
+
src="${ifDefined(currentImage.fullpath)}"
|
|
48
|
+
alt="${ifDefined(currentImage.name)}"
|
|
49
|
+
@load=${this._initImageZoom}
|
|
50
|
+
@error=${this._onImageError}
|
|
51
|
+
/>
|
|
52
|
+
<div class="image-info">
|
|
53
|
+
${currentImage.name || ((_a = currentImage.checklistItem) === null || _a === void 0 ? void 0 : _a.name) || ''}
|
|
54
|
+
${hasMultipleImages ? html ` (${this.currentIndex + 1}/${this.images.length})` : ''}
|
|
55
|
+
</div>
|
|
56
|
+
`
|
|
57
|
+
: html `<div class="error-message">표시할 이미지가 없습니다.</div>`}
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
|
|
61
|
+
<div class="button-container">
|
|
62
|
+
<md-elevated-button @click=${this._close}> <md-icon slot="icon">close</md-icon>닫기 </md-elevated-button>
|
|
63
|
+
</div>
|
|
64
|
+
`;
|
|
65
|
+
}
|
|
66
|
+
_previousImage() {
|
|
67
|
+
if (this.currentIndex > 0) {
|
|
68
|
+
this.currentIndex--;
|
|
69
|
+
this.requestUpdate();
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
_nextImage() {
|
|
73
|
+
if (this.currentIndex < this.images.length - 1) {
|
|
74
|
+
this.currentIndex++;
|
|
75
|
+
this.requestUpdate();
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
_close() {
|
|
79
|
+
history.back();
|
|
80
|
+
}
|
|
81
|
+
_onImageError(e) {
|
|
82
|
+
const target = e.target;
|
|
83
|
+
target.style.display = 'none';
|
|
84
|
+
const container = target.parentElement;
|
|
85
|
+
container.innerHTML += '<div class="error-message">이미지를 불러올 수 없습니다.</div>';
|
|
86
|
+
}
|
|
87
|
+
_initImageZoom(e) {
|
|
88
|
+
const img = e.target;
|
|
89
|
+
let scale = 1;
|
|
90
|
+
let translateX = 0;
|
|
91
|
+
let translateY = 0;
|
|
92
|
+
let isDragging = false;
|
|
93
|
+
let lastTouchDistance = 0;
|
|
94
|
+
let lastTouchX = 0;
|
|
95
|
+
let lastTouchY = 0;
|
|
96
|
+
const updateTransform = () => {
|
|
97
|
+
img.style.transform = `scale(${scale}) translate(${translateX}px, ${translateY}px)`;
|
|
98
|
+
};
|
|
99
|
+
const resetTransform = () => {
|
|
100
|
+
scale = 1;
|
|
101
|
+
translateX = 0;
|
|
102
|
+
translateY = 0;
|
|
103
|
+
updateTransform();
|
|
104
|
+
};
|
|
105
|
+
// 터치 시작
|
|
106
|
+
img.addEventListener('touchstart', event => {
|
|
107
|
+
event.preventDefault();
|
|
108
|
+
if (event.touches.length === 1) {
|
|
109
|
+
// 단일 터치 - 드래그 시작
|
|
110
|
+
isDragging = true;
|
|
111
|
+
lastTouchX = event.touches[0].clientX;
|
|
112
|
+
lastTouchY = event.touches[0].clientY;
|
|
113
|
+
}
|
|
114
|
+
else if (event.touches.length === 2) {
|
|
115
|
+
// 멀티 터치 - 핀치 줌 시작
|
|
116
|
+
isDragging = false;
|
|
117
|
+
const touch1 = event.touches[0];
|
|
118
|
+
const touch2 = event.touches[1];
|
|
119
|
+
lastTouchDistance = Math.sqrt(Math.pow(touch2.clientX - touch1.clientX, 2) + Math.pow(touch2.clientY - touch1.clientY, 2));
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
// 터치 이동
|
|
123
|
+
img.addEventListener('touchmove', event => {
|
|
124
|
+
event.preventDefault();
|
|
125
|
+
if (event.touches.length === 1 && isDragging && scale > 1) {
|
|
126
|
+
// 드래그
|
|
127
|
+
const currentX = event.touches[0].clientX;
|
|
128
|
+
const currentY = event.touches[0].clientY;
|
|
129
|
+
const deltaX = currentX - lastTouchX;
|
|
130
|
+
const deltaY = currentY - lastTouchY;
|
|
131
|
+
translateX += deltaX / scale;
|
|
132
|
+
translateY += deltaY / scale;
|
|
133
|
+
lastTouchX = currentX;
|
|
134
|
+
lastTouchY = currentY;
|
|
135
|
+
updateTransform();
|
|
136
|
+
}
|
|
137
|
+
else if (event.touches.length === 2) {
|
|
138
|
+
// 핀치 줌
|
|
139
|
+
const touch1 = event.touches[0];
|
|
140
|
+
const touch2 = event.touches[1];
|
|
141
|
+
const currentDistance = Math.sqrt(Math.pow(touch2.clientX - touch1.clientX, 2) + Math.pow(touch2.clientY - touch1.clientY, 2));
|
|
142
|
+
if (lastTouchDistance > 0) {
|
|
143
|
+
const scaleChange = currentDistance / lastTouchDistance;
|
|
144
|
+
const newScale = scale * scaleChange;
|
|
145
|
+
// 최소/최대 배율 제한
|
|
146
|
+
if (newScale >= 0.5 && newScale <= 5) {
|
|
147
|
+
scale = newScale;
|
|
148
|
+
updateTransform();
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
lastTouchDistance = currentDistance;
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
// 터치 끝
|
|
155
|
+
img.addEventListener('touchend', event => {
|
|
156
|
+
event.preventDefault();
|
|
157
|
+
isDragging = false;
|
|
158
|
+
if (event.touches.length === 0) {
|
|
159
|
+
// 모든 터치가 끝났을 때 - 경계 체크 및 보정
|
|
160
|
+
if (scale < 1) {
|
|
161
|
+
resetTransform();
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
// 더블 탭으로 줌 토글
|
|
166
|
+
let lastTapTime = 0;
|
|
167
|
+
img.addEventListener('touchend', event => {
|
|
168
|
+
const currentTime = new Date().getTime();
|
|
169
|
+
const tapLength = currentTime - lastTapTime;
|
|
170
|
+
if (tapLength < 500 && tapLength > 0 && event.touches.length === 0) {
|
|
171
|
+
if (scale === 1) {
|
|
172
|
+
scale = 2;
|
|
173
|
+
updateTransform();
|
|
174
|
+
}
|
|
175
|
+
else {
|
|
176
|
+
resetTransform();
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
lastTapTime = currentTime;
|
|
180
|
+
});
|
|
181
|
+
// 마우스 휠 지원 (데스크톱)
|
|
182
|
+
img.addEventListener('wheel', event => {
|
|
183
|
+
event.preventDefault();
|
|
184
|
+
const delta = event.deltaY > 0 ? 0.9 : 1.1;
|
|
185
|
+
const newScale = scale * delta;
|
|
186
|
+
if (newScale >= 0.5 && newScale <= 5) {
|
|
187
|
+
scale = newScale;
|
|
188
|
+
updateTransform();
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
// 키보드 네비게이션 지원
|
|
192
|
+
const handleKeyPress = (event) => {
|
|
193
|
+
if (event.key === 'ArrowLeft') {
|
|
194
|
+
this._previousImage();
|
|
195
|
+
}
|
|
196
|
+
else if (event.key === 'ArrowRight') {
|
|
197
|
+
this._nextImage();
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
document.addEventListener('keydown', handleKeyPress);
|
|
201
|
+
// 컴포넌트가 제거될 때 이벤트 리스너 정리
|
|
202
|
+
const cleanup = () => {
|
|
203
|
+
document.removeEventListener('keydown', handleKeyPress);
|
|
204
|
+
};
|
|
205
|
+
this._cleanup = cleanup;
|
|
206
|
+
}
|
|
207
|
+
disconnectedCallback() {
|
|
208
|
+
super.disconnectedCallback();
|
|
209
|
+
if (this._cleanup) {
|
|
210
|
+
;
|
|
211
|
+
this._cleanup();
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
ImagePreviewPopup.styles = [
|
|
216
|
+
css `
|
|
217
|
+
:host {
|
|
218
|
+
display: flex;
|
|
219
|
+
flex-direction: column;
|
|
220
|
+
background-color: #fff;
|
|
221
|
+
width: 100%;
|
|
222
|
+
height: 100%;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.inspection-header {
|
|
226
|
+
background-color: #f8f9fa;
|
|
227
|
+
color: #495057;
|
|
228
|
+
padding: 12px 20px;
|
|
229
|
+
display: flex;
|
|
230
|
+
align-items: center;
|
|
231
|
+
justify-content: center;
|
|
232
|
+
gap: 8px;
|
|
233
|
+
border-bottom: 1px solid #dee2e6;
|
|
234
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.inspection-name {
|
|
238
|
+
font-size: 16px;
|
|
239
|
+
font-weight: 700;
|
|
240
|
+
color: #212529;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
div[body] {
|
|
244
|
+
flex: 1;
|
|
245
|
+
overflow: hidden;
|
|
246
|
+
position: relative;
|
|
247
|
+
touch-action: none;
|
|
248
|
+
display: flex;
|
|
249
|
+
align-items: center;
|
|
250
|
+
justify-content: center;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.navigation-button {
|
|
254
|
+
position: absolute;
|
|
255
|
+
top: 50%;
|
|
256
|
+
transform: translateY(-50%);
|
|
257
|
+
z-index: 10;
|
|
258
|
+
background-color: rgba(0, 0, 0, 0.7);
|
|
259
|
+
color: white;
|
|
260
|
+
border: none;
|
|
261
|
+
border-radius: 50%;
|
|
262
|
+
width: 50px;
|
|
263
|
+
height: 50px;
|
|
264
|
+
display: flex;
|
|
265
|
+
align-items: center;
|
|
266
|
+
justify-content: center;
|
|
267
|
+
cursor: pointer;
|
|
268
|
+
transition: background-color 0.2s;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.navigation-button:hover {
|
|
272
|
+
background-color: rgba(0, 0, 0, 0.9);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.navigation-button:disabled {
|
|
276
|
+
background-color: rgba(0, 0, 0, 0.3);
|
|
277
|
+
cursor: not-allowed;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.navigation-button.prev {
|
|
281
|
+
left: 20px;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.navigation-button.next {
|
|
285
|
+
right: 20px;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.image-container {
|
|
289
|
+
width: 100%;
|
|
290
|
+
height: 100%;
|
|
291
|
+
display: flex;
|
|
292
|
+
align-items: center;
|
|
293
|
+
justify-content: center;
|
|
294
|
+
position: relative;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.zoomable-image {
|
|
298
|
+
max-width: 100%;
|
|
299
|
+
max-height: 100%;
|
|
300
|
+
object-fit: contain;
|
|
301
|
+
transform-origin: center center;
|
|
302
|
+
transition: transform 0.1s ease-out;
|
|
303
|
+
user-select: none;
|
|
304
|
+
-webkit-user-select: none;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.image-info {
|
|
308
|
+
position: absolute;
|
|
309
|
+
bottom: 20px;
|
|
310
|
+
left: 50%;
|
|
311
|
+
transform: translateX(-50%);
|
|
312
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
313
|
+
color: white;
|
|
314
|
+
padding: 10px 20px;
|
|
315
|
+
border-radius: 20px;
|
|
316
|
+
font-size: 14px;
|
|
317
|
+
z-index: 5;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.error-message {
|
|
321
|
+
padding: 40px;
|
|
322
|
+
text-align: center;
|
|
323
|
+
color: #666;
|
|
324
|
+
font-size: 16px;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.button-container {
|
|
328
|
+
display: flex;
|
|
329
|
+
justify-content: center;
|
|
330
|
+
padding: 15px;
|
|
331
|
+
border-top: 1px solid #ddd;
|
|
332
|
+
background-color: #f9f9f9;
|
|
333
|
+
}
|
|
334
|
+
`
|
|
335
|
+
];
|
|
336
|
+
__decorate([
|
|
337
|
+
property({ type: Array }),
|
|
338
|
+
__metadata("design:type", Array)
|
|
339
|
+
], ImagePreviewPopup.prototype, "images", void 0);
|
|
340
|
+
__decorate([
|
|
341
|
+
property({ type: Number }),
|
|
342
|
+
__metadata("design:type", Number)
|
|
343
|
+
], ImagePreviewPopup.prototype, "currentIndex", void 0);
|
|
344
|
+
ImagePreviewPopup = __decorate([
|
|
345
|
+
customElement('image-preview-popup')
|
|
346
|
+
], ImagePreviewPopup);
|
|
347
|
+
export { ImagePreviewPopup };
|
|
348
|
+
//# sourceMappingURL=image-preview-popup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-preview-popup.js","sourceRoot":"","sources":["../../../../client/pages/building-inspection/component/image-preview-popup.ts"],"names":[],"mappings":";AAAA,OAAO,yCAAyC,CAAA;AAChD,OAAO,4BAA4B,CAAA;AAEnC,OAAO,EAAE,GAAG,EAAE,IAAI,E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;IAA1B,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;iDAAmB;AACjB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uDAAyB;AA5HzC,iBAAiB;IAD7B,aAAa,CAAC,qBAAqB,CAAC;GACxB,iBAAiB,CAiW7B","sourcesContent":["import '@material/web/button/elevated-button.js'\nimport '@material/web/icon/icon.js'\n\nimport { css, html, LitElement } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\nimport { ifDefined } from 'lit/directives/if-defined.js'\n\n@customElement('image-preview-popup')\nexport class ImagePreviewPopup extends LitElement {\n static styles = [\n css`\n :host {\n display: flex;\n flex-direction: column;\n background-color: #fff;\n width: 100%;\n height: 100%;\n }\n\n .inspection-header {\n background-color: #f8f9fa;\n color: #495057;\n padding: 12px 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n border-bottom: 1px solid #dee2e6;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n }\n\n .inspection-name {\n font-size: 16px;\n font-weight: 700;\n color: #212529;\n }\n\n div[body] {\n flex: 1;\n overflow: hidden;\n position: relative;\n touch-action: none;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .navigation-button {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n z-index: 10;\n background-color: rgba(0, 0, 0, 0.7);\n color: white;\n border: none;\n border-radius: 50%;\n width: 50px;\n height: 50px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: background-color 0.2s;\n }\n\n .navigation-button:hover {\n background-color: rgba(0, 0, 0, 0.9);\n }\n\n .navigation-button:disabled {\n background-color: rgba(0, 0, 0, 0.3);\n cursor: not-allowed;\n }\n\n .navigation-button.prev {\n left: 20px;\n }\n\n .navigation-button.next {\n right: 20px;\n }\n\n .image-container {\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n }\n\n .zoomable-image {\n max-width: 100%;\n max-height: 100%;\n object-fit: contain;\n transform-origin: center center;\n transition: transform 0.1s ease-out;\n user-select: none;\n -webkit-user-select: none;\n }\n\n .image-info {\n position: absolute;\n bottom: 20px;\n left: 50%;\n transform: translateX(-50%);\n background-color: rgba(0, 0, 0, 0.5);\n color: white;\n padding: 10px 20px;\n border-radius: 20px;\n font-size: 14px;\n z-index: 5;\n }\n\n .error-message {\n padding: 40px;\n text-align: center;\n color: #666;\n font-size: 16px;\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 }\n `\n ]\n\n @property({ type: Array }) images: any[] = []\n @property({ type: Number }) currentIndex: number = 0\n\n render() {\n const currentImage = this.images[this.currentIndex]\n const hasMultipleImages = this.images.length > 1\n\n return html`\n ${currentImage?.previewTitle\n ? html`\n <div class=\"inspection-header\">\n <div class=\"inspection-name\">${currentImage.previewTitle}</div>\n </div>\n `\n : ''}\n\n <div body>\n ${hasMultipleImages\n ? html`\n <button class=\"navigation-button prev\" @click=${this._previousImage} ?disabled=${this.currentIndex === 0}>\n <md-icon>chevron_left</md-icon>\n </button>\n <button\n class=\"navigation-button next\"\n @click=${this._nextImage}\n ?disabled=${this.currentIndex === this.images.length - 1}\n >\n <md-icon>chevron_right</md-icon>\n </button>\n `\n : ''}\n\n <div class=\"image-container\">\n ${currentImage\n ? html`\n <img\n class=\"zoomable-image\"\n src=\"${ifDefined(currentImage.fullpath)}\"\n alt=\"${ifDefined(currentImage.name)}\"\n @load=${this._initImageZoom}\n @error=${this._onImageError}\n />\n <div class=\"image-info\">\n ${currentImage.name || currentImage.checklistItem?.name || ''}\n ${hasMultipleImages ? html` (${this.currentIndex + 1}/${this.images.length})` : ''}\n </div>\n `\n : html`<div class=\"error-message\">표시할 이미지가 없습니다.</div>`}\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 private _previousImage() {\n if (this.currentIndex > 0) {\n this.currentIndex--\n this.requestUpdate()\n }\n }\n\n private _nextImage() {\n if (this.currentIndex < this.images.length - 1) {\n this.currentIndex++\n this.requestUpdate()\n }\n }\n\n private _close() {\n history.back()\n }\n\n private _onImageError(e: Event) {\n const target = e.target as HTMLImageElement\n target.style.display = 'none'\n const container = target.parentElement!\n container.innerHTML += '<div class=\"error-message\">이미지를 불러올 수 없습니다.</div>'\n }\n\n private _initImageZoom(e: Event) {\n const img = e.target as HTMLImageElement\n let scale = 1\n let translateX = 0\n let translateY = 0\n let isDragging = false\n let lastTouchDistance = 0\n let lastTouchX = 0\n let lastTouchY = 0\n\n const updateTransform = () => {\n img.style.transform = `scale(${scale}) translate(${translateX}px, ${translateY}px)`\n }\n\n const resetTransform = () => {\n scale = 1\n translateX = 0\n translateY = 0\n updateTransform()\n }\n\n // 터치 시작\n img.addEventListener('touchstart', event => {\n event.preventDefault()\n\n if (event.touches.length === 1) {\n // 단일 터치 - 드래그 시작\n isDragging = true\n lastTouchX = event.touches[0].clientX\n lastTouchY = event.touches[0].clientY\n } else if (event.touches.length === 2) {\n // 멀티 터치 - 핀치 줌 시작\n isDragging = false\n const touch1 = event.touches[0]\n const touch2 = event.touches[1]\n lastTouchDistance = Math.sqrt(Math.pow(touch2.clientX - touch1.clientX, 2) + Math.pow(touch2.clientY - touch1.clientY, 2))\n }\n })\n\n // 터치 이동\n img.addEventListener('touchmove', event => {\n event.preventDefault()\n\n if (event.touches.length === 1 && isDragging && scale > 1) {\n // 드래그\n const currentX = event.touches[0].clientX\n const currentY = event.touches[0].clientY\n const deltaX = currentX - lastTouchX\n const deltaY = currentY - lastTouchY\n\n translateX += deltaX / scale\n translateY += deltaY / scale\n\n lastTouchX = currentX\n lastTouchY = currentY\n updateTransform()\n } else if (event.touches.length === 2) {\n // 핀치 줌\n const touch1 = event.touches[0]\n const touch2 = event.touches[1]\n const currentDistance = Math.sqrt(\n Math.pow(touch2.clientX - touch1.clientX, 2) + Math.pow(touch2.clientY - touch1.clientY, 2)\n )\n\n if (lastTouchDistance > 0) {\n const scaleChange = currentDistance / lastTouchDistance\n const newScale = scale * scaleChange\n\n // 최소/최대 배율 제한\n if (newScale >= 0.5 && newScale <= 5) {\n scale = newScale\n updateTransform()\n }\n }\n\n lastTouchDistance = currentDistance\n }\n })\n\n // 터치 끝\n img.addEventListener('touchend', event => {\n event.preventDefault()\n isDragging = false\n\n if (event.touches.length === 0) {\n // 모든 터치가 끝났을 때 - 경계 체크 및 보정\n if (scale < 1) {\n resetTransform()\n }\n }\n })\n\n // 더블 탭으로 줌 토글\n let lastTapTime = 0\n img.addEventListener('touchend', event => {\n const currentTime = new Date().getTime()\n const tapLength = currentTime - lastTapTime\n\n if (tapLength < 500 && tapLength > 0 && event.touches.length === 0) {\n if (scale === 1) {\n scale = 2\n updateTransform()\n } else {\n resetTransform()\n }\n }\n\n lastTapTime = currentTime\n })\n\n // 마우스 휠 지원 (데스크톱)\n img.addEventListener('wheel', event => {\n event.preventDefault()\n const delta = event.deltaY > 0 ? 0.9 : 1.1\n const newScale = scale * delta\n\n if (newScale >= 0.5 && newScale <= 5) {\n scale = newScale\n updateTransform()\n }\n })\n\n // 키보드 네비게이션 지원\n const handleKeyPress = (event: KeyboardEvent) => {\n if (event.key === 'ArrowLeft') {\n this._previousImage()\n } else if (event.key === 'ArrowRight') {\n this._nextImage()\n }\n }\n\n document.addEventListener('keydown', handleKeyPress)\n\n // 컴포넌트가 제거될 때 이벤트 리스너 정리\n const cleanup = () => {\n document.removeEventListener('keydown', handleKeyPress)\n }\n\n // 나중에 정리할 수 있도록 참조 저장\n ;(this as any)._cleanup = cleanup\n }\n\n disconnectedCallback() {\n super.disconnectedCallback()\n if ((this as any)._cleanup) {\n ;(this as any)._cleanup()\n }\n }\n}\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import '@material/web/button/elevated-button.js';
|
|
2
|
+
import '@material/web/icon/icon.js';
|
|
3
|
+
import '@material/web/button/outlined-button.js';
|
|
4
|
+
import { LitElement } from 'lit';
|
|
5
|
+
import './photo-album-popup';
|
|
6
|
+
export declare enum InspectionMode {
|
|
7
|
+
EDIT = "EDIT",
|
|
8
|
+
VIEW = "VIEW"
|
|
9
|
+
}
|
|
10
|
+
export declare class InspectionRequestDocument extends LitElement {
|
|
11
|
+
static styles: import("lit").CSSResult[];
|
|
12
|
+
checklist: any;
|
|
13
|
+
buildingInspection: any;
|
|
14
|
+
mode: InspectionMode;
|
|
15
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
16
|
+
private _parseDate;
|
|
17
|
+
private _formatDate;
|
|
18
|
+
private _formatDateTime;
|
|
19
|
+
private _formatDateTimeForInput;
|
|
20
|
+
private _onRequestDateChange;
|
|
21
|
+
private _onDateInputClick;
|
|
22
|
+
private _onInspectionMemoChange;
|
|
23
|
+
private _onNameListUpload;
|
|
24
|
+
private _onConfirm;
|
|
25
|
+
}
|