@dssp/supervision 1.0.0-alpha.97 → 1.0.0
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/package.json +13 -12
- package/dist-client/bootstrap.d.ts +0 -1
- package/dist-client/bootstrap.js +0 -2
- package/dist-client/bootstrap.js.map +0 -1
- package/dist-client/graphql/building-inspection.d.ts +0 -1
- package/dist-client/graphql/building-inspection.js +0 -102
- package/dist-client/graphql/building-inspection.js.map +0 -1
- package/dist-client/index.d.ts +0 -0
- package/dist-client/index.js +0 -2
- package/dist-client/index.js.map +0 -1
- package/dist-client/pages/action-plan/action-plan-importer.d.ts +0 -10
- package/dist-client/pages/action-plan/action-plan-importer.js +0 -101
- package/dist-client/pages/action-plan/action-plan-importer.js.map +0 -1
- package/dist-client/pages/action-plan/action-plan-list-page.d.ts +0 -62
- package/dist-client/pages/action-plan/action-plan-list-page.js +0 -322
- package/dist-client/pages/action-plan/action-plan-list-page.js.map +0 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.d.ts +0 -22
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js +0 -171
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js.map +0 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.d.ts +0 -59
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js +0 -868
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js.map +0 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-camera.d.ts +0 -27
- package/dist-client/pages/building-inspection/building-inspection-detail-camera.js +0 -342
- package/dist-client/pages/building-inspection/building-inspection-detail-camera.js.map +0 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.d.ts +0 -31
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js +0 -332
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js.map +0 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.d.ts +0 -36
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js +0 -369
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js.map +0 -1
- package/dist-client/pages/building-inspection/building-inspection-list.d.ts +0 -98
- package/dist-client/pages/building-inspection/building-inspection-list.js +0 -914
- package/dist-client/pages/building-inspection/building-inspection-list.js.map +0 -1
- package/dist-client/pages/building-inspection/building-inspection-management.d.ts +0 -82
- package/dist-client/pages/building-inspection/building-inspection-management.js +0 -1527
- package/dist-client/pages/building-inspection/building-inspection-management.js.map +0 -1
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.d.ts +0 -4
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js +0 -238
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js.map +0 -1
- package/dist-client/pages/building-inspection/component/daily-worklog-popup.d.ts +0 -27
- package/dist-client/pages/building-inspection/component/daily-worklog-popup.js +0 -542
- package/dist-client/pages/building-inspection/component/daily-worklog-popup.js.map +0 -1
- package/dist-client/pages/building-inspection/component/field-document/field-document-constants.d.ts +0 -18
- package/dist-client/pages/building-inspection/component/field-document/field-document-constants.js +0 -630
- package/dist-client/pages/building-inspection/component/field-document/field-document-constants.js.map +0 -1
- package/dist-client/pages/building-inspection/component/field-document/field-document-detail-popup.d.ts +0 -10
- package/dist-client/pages/building-inspection/component/field-document/field-document-detail-popup.js +0 -219
- package/dist-client/pages/building-inspection/component/field-document/field-document-detail-popup.js.map +0 -1
- package/dist-client/pages/building-inspection/component/field-document/field-document-list-panel.d.ts +0 -25
- package/dist-client/pages/building-inspection/component/field-document/field-document-list-panel.js +0 -546
- package/dist-client/pages/building-inspection/component/field-document/field-document-list-panel.js.map +0 -1
- package/dist-client/pages/building-inspection/component/field-document/field-document-popup.d.ts +0 -42
- package/dist-client/pages/building-inspection/component/field-document/field-document-popup.js +0 -738
- package/dist-client/pages/building-inspection/component/field-document/field-document-popup.js.map +0 -1
- package/dist-client/pages/building-inspection/component/image-preview-popup.d.ts +0 -15
- package/dist-client/pages/building-inspection/component/image-preview-popup.js +0 -348
- package/dist-client/pages/building-inspection/component/image-preview-popup.js.map +0 -1
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.d.ts +0 -25
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js +0 -491
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js.map +0 -1
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.d.ts +0 -31
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js +0 -485
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js.map +0 -1
- package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.d.ts +0 -27
- package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js +0 -416
- package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js.map +0 -1
- package/dist-client/pages/building-inspection/component/inspection-event-provider.d.ts +0 -9
- package/dist-client/pages/building-inspection/component/inspection-event-provider.js +0 -190
- package/dist-client/pages/building-inspection/component/inspection-event-provider.js.map +0 -1
- package/dist-client/pages/building-inspection/inspection-create-popup.d.ts +0 -3
- package/dist-client/pages/building-inspection/inspection-create-popup.js +0 -841
- package/dist-client/pages/building-inspection/inspection-create-popup.js.map +0 -1
- package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.d.ts +0 -3
- package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.js +0 -817
- package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.js.map +0 -1
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.d.ts +0 -60
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js +0 -1135
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js.map +0 -1
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.d.ts +0 -2
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js +0 -740
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js.map +0 -1
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.d.ts +0 -19
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js +0 -205
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js.map +0 -1
- package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.d.ts +0 -1
- package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.js +0 -304
- package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.js.map +0 -1
- package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.d.ts +0 -15
- package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.js +0 -430
- package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.js.map +0 -1
- package/dist-client/pages/checklist/attachment-list-popup.d.ts +0 -3
- package/dist-client/pages/checklist/attachment-list-popup.js +0 -492
- package/dist-client/pages/checklist/attachment-list-popup.js.map +0 -1
- package/dist-client/pages/checklist/checklist-view.d.ts +0 -16
- package/dist-client/pages/checklist/checklist-view.js +0 -926
- package/dist-client/pages/checklist/checklist-view.js.map +0 -1
- package/dist-client/pages/checklist/comment-list-popup.d.ts +0 -1
- package/dist-client/pages/checklist/comment-list-popup.js +0 -367
- package/dist-client/pages/checklist/comment-list-popup.js.map +0 -1
- package/dist-client/pages/checklist/file-preview-popup.d.ts +0 -1
- package/dist-client/pages/checklist/file-preview-popup.js +0 -77
- package/dist-client/pages/checklist/file-preview-popup.js.map +0 -1
- package/dist-client/pages/checklist/inspection-info-popup.d.ts +0 -49
- package/dist-client/pages/checklist/inspection-info-popup.js +0 -683
- package/dist-client/pages/checklist/inspection-info-popup.js.map +0 -1
- package/dist-client/pages/checklist/inspection-tab-popup.d.ts +0 -18
- package/dist-client/pages/checklist/inspection-tab-popup.js +0 -196
- package/dist-client/pages/checklist/inspection-tab-popup.js.map +0 -1
- package/dist-client/pages/checklist/kcs-criteria-popup.d.ts +0 -16
- package/dist-client/pages/checklist/kcs-criteria-popup.js +0 -179
- package/dist-client/pages/checklist/kcs-criteria-popup.js.map +0 -1
- package/dist-client/pages/checklist-database/checklist-database.d.ts +0 -35
- package/dist-client/pages/checklist-database/checklist-database.js +0 -540
- package/dist-client/pages/checklist-database/checklist-database.js.map +0 -1
- package/dist-client/pages/checklist-template/checklist-template-item.d.ts +0 -2
- package/dist-client/pages/checklist-template/checklist-template-item.js +0 -278
- package/dist-client/pages/checklist-template/checklist-template-item.js.map +0 -1
- package/dist-client/pages/checklist-template/checklist-template-list.d.ts +0 -53
- package/dist-client/pages/checklist-template/checklist-template-list.js +0 -350
- package/dist-client/pages/checklist-template/checklist-template-list.js.map +0 -1
- package/dist-client/pages/checklist-template/checklist-type-management.d.ts +0 -55
- package/dist-client/pages/checklist-template/checklist-type-management.js +0 -250
- package/dist-client/pages/checklist-template/checklist-type-management.js.map +0 -1
- package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.d.ts +0 -2
- package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.js +0 -223
- package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.js.map +0 -1
- package/dist-client/pages/checklist-template/construction-checklist-template-list.d.ts +0 -55
- package/dist-client/pages/checklist-template/construction-checklist-template-list.js +0 -404
- package/dist-client/pages/checklist-template/construction-checklist-template-list.js.map +0 -1
- package/dist-client/pages/issue/issue-importer.d.ts +0 -10
- package/dist-client/pages/issue/issue-importer.js +0 -101
- package/dist-client/pages/issue/issue-importer.js.map +0 -1
- package/dist-client/pages/issue/issue-list-page.d.ts +0 -62
- package/dist-client/pages/issue/issue-list-page.js +0 -322
- package/dist-client/pages/issue/issue-list-page.js.map +0 -1
- package/dist-client/pages/project-checklist/project-checklist-management.d.ts +0 -62
- package/dist-client/pages/project-checklist/project-checklist-management.js +0 -1145
- package/dist-client/pages/project-checklist/project-checklist-management.js.map +0 -1
- package/dist-client/pages/project-report/project-report-importer.d.ts +0 -10
- package/dist-client/pages/project-report/project-report-importer.js +0 -101
- package/dist-client/pages/project-report/project-report-importer.js.map +0 -1
- package/dist-client/pages/project-report/project-report-list-page.d.ts +0 -62
- package/dist-client/pages/project-report/project-report-list-page.js +0 -322
- package/dist-client/pages/project-report/project-report-list-page.js.map +0 -1
- package/dist-client/pages/supervisor/supervisor-importer.d.ts +0 -10
- package/dist-client/pages/supervisor/supervisor-importer.js +0 -101
- package/dist-client/pages/supervisor/supervisor-importer.js.map +0 -1
- package/dist-client/pages/supervisor/supervisor-list-page.d.ts +0 -62
- package/dist-client/pages/supervisor/supervisor-list-page.js +0 -322
- package/dist-client/pages/supervisor/supervisor-list-page.js.map +0 -1
- package/dist-client/route.d.ts +0 -1
- package/dist-client/route.js +0 -44
- package/dist-client/route.js.map +0 -1
- package/dist-client/stt/speech-to-text.d.ts +0 -41
- package/dist-client/stt/speech-to-text.js +0 -331
- package/dist-client/stt/speech-to-text.js.map +0 -1
- package/dist-client/stt/stt-utils.d.ts +0 -28
- package/dist-client/stt/stt-utils.js +0 -146
- package/dist-client/stt/stt-utils.js.map +0 -1
- package/dist-client/tsconfig.tsbuildinfo +0 -1
- package/dist-server/controllers/index.d.ts +0 -0
- package/dist-server/controllers/index.js +0 -1
- package/dist-server/controllers/index.js.map +0 -1
- package/dist-server/index.d.ts +0 -3
- package/dist-server/index.js +0 -7
- package/dist-server/index.js.map +0 -1
- package/dist-server/middlewares/index.d.ts +0 -1
- package/dist-server/middlewares/index.js +0 -7
- package/dist-server/middlewares/index.js.map +0 -1
- package/dist-server/migrations/index.d.ts +0 -1
- package/dist-server/migrations/index.js +0 -12
- package/dist-server/migrations/index.js.map +0 -1
- package/dist-server/routes.d.ts +0 -0
- package/dist-server/routes.js +0 -25
- package/dist-server/routes.js.map +0 -1
- package/dist-server/service/action-plan/action-plan-mutation.d.ts +0 -10
- package/dist-server/service/action-plan/action-plan-mutation.js +0 -167
- package/dist-server/service/action-plan/action-plan-mutation.js.map +0 -1
- package/dist-server/service/action-plan/action-plan-query.d.ts +0 -12
- package/dist-server/service/action-plan/action-plan-query.js +0 -91
- package/dist-server/service/action-plan/action-plan-query.js.map +0 -1
- package/dist-server/service/action-plan/action-plan-type.d.ts +0 -23
- package/dist-server/service/action-plan/action-plan-type.js +0 -86
- package/dist-server/service/action-plan/action-plan-type.js.map +0 -1
- package/dist-server/service/action-plan/action-plan.d.ts +0 -27
- package/dist-server/service/action-plan/action-plan.js +0 -116
- package/dist-server/service/action-plan/action-plan.js.map +0 -1
- package/dist-server/service/action-plan/index.d.ts +0 -5
- package/dist-server/service/action-plan/index.js +0 -9
- package/dist-server/service/action-plan/index.js.map +0 -1
- package/dist-server/service/building-inspection/building-inspection-mutation.d.ts +0 -9
- package/dist-server/service/building-inspection/building-inspection-mutation.js +0 -404
- package/dist-server/service/building-inspection/building-inspection-mutation.js.map +0 -1
- package/dist-server/service/building-inspection/building-inspection-query.d.ts +0 -24
- package/dist-server/service/building-inspection/building-inspection-query.js +0 -406
- package/dist-server/service/building-inspection/building-inspection-query.js.map +0 -1
- package/dist-server/service/building-inspection/building-inspection-type.d.ts +0 -89
- package/dist-server/service/building-inspection/building-inspection-type.js +0 -330
- package/dist-server/service/building-inspection/building-inspection-type.js.map +0 -1
- package/dist-server/service/building-inspection/building-inspection.d.ts +0 -42
- package/dist-server/service/building-inspection/building-inspection.js +0 -186
- package/dist-server/service/building-inspection/building-inspection.js.map +0 -1
- package/dist-server/service/building-inspection/index.d.ts +0 -7
- package/dist-server/service/building-inspection/index.js +0 -19
- package/dist-server/service/building-inspection/index.js.map +0 -1
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.d.ts +0 -6
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js +0 -66
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js.map +0 -1
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.d.ts +0 -16
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js +0 -171
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js.map +0 -1
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.d.ts +0 -23
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js +0 -90
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js.map +0 -1
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.d.ts +0 -33
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js +0 -132
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js.map +0 -1
- package/dist-server/service/building-inspection-daily-worklog/index.d.ts +0 -5
- package/dist-server/service/building-inspection-daily-worklog/index.js +0 -9
- package/dist-server/service/building-inspection-daily-worklog/index.js.map +0 -1
- package/dist-server/service/building-inspection-history/building-inspection-history-query.d.ts +0 -16
- package/dist-server/service/building-inspection-history/building-inspection-history-query.js +0 -120
- package/dist-server/service/building-inspection-history/building-inspection-history-query.js.map +0 -1
- package/dist-server/service/building-inspection-history/building-inspection-history-type.d.ts +0 -5
- package/dist-server/service/building-inspection-history/building-inspection-history-type.js +0 -21
- package/dist-server/service/building-inspection-history/building-inspection-history-type.js.map +0 -1
- package/dist-server/service/building-inspection-history/building-inspection-history.d.ts +0 -35
- package/dist-server/service/building-inspection-history/building-inspection-history.js +0 -162
- package/dist-server/service/building-inspection-history/building-inspection-history.js.map +0 -1
- package/dist-server/service/building-inspection-history/event-subscriber.d.ts +0 -7
- package/dist-server/service/building-inspection-history/event-subscriber.js +0 -21
- package/dist-server/service/building-inspection-history/event-subscriber.js.map +0 -1
- package/dist-server/service/building-inspection-history/index.d.ts +0 -6
- package/dist-server/service/building-inspection-history/index.js +0 -10
- package/dist-server/service/building-inspection-history/index.js.map +0 -1
- package/dist-server/service/checklist/checklist-mutation.d.ts +0 -3
- package/dist-server/service/checklist/checklist-mutation.js +0 -30
- package/dist-server/service/checklist/checklist-mutation.js.map +0 -1
- package/dist-server/service/checklist/checklist-query.d.ts +0 -21
- package/dist-server/service/checklist/checklist-query.js +0 -177
- package/dist-server/service/checklist/checklist-query.js.map +0 -1
- package/dist-server/service/checklist/checklist-type.d.ts +0 -5
- package/dist-server/service/checklist/checklist-type.js +0 -21
- package/dist-server/service/checklist/checklist-type.js.map +0 -1
- package/dist-server/service/checklist/checklist.d.ts +0 -66
- package/dist-server/service/checklist/checklist.js +0 -259
- package/dist-server/service/checklist/checklist.js.map +0 -1
- package/dist-server/service/checklist/event-subscriber.d.ts +0 -7
- package/dist-server/service/checklist/event-subscriber.js +0 -21
- package/dist-server/service/checklist/event-subscriber.js.map +0 -1
- package/dist-server/service/checklist/index.d.ts +0 -5
- package/dist-server/service/checklist/index.js +0 -9
- package/dist-server/service/checklist/index.js.map +0 -1
- package/dist-server/service/checklist-history/checklist-history-query.d.ts +0 -11
- package/dist-server/service/checklist-history/checklist-history-query.js +0 -77
- package/dist-server/service/checklist-history/checklist-history-query.js.map +0 -1
- package/dist-server/service/checklist-history/checklist-history-type.d.ts +0 -5
- package/dist-server/service/checklist-history/checklist-history-type.js +0 -21
- package/dist-server/service/checklist-history/checklist-history-type.js.map +0 -1
- package/dist-server/service/checklist-history/checklist-history.d.ts +0 -50
- package/dist-server/service/checklist-history/checklist-history.js +0 -239
- package/dist-server/service/checklist-history/checklist-history.js.map +0 -1
- package/dist-server/service/checklist-history/event-subscriber.d.ts +0 -7
- package/dist-server/service/checklist-history/event-subscriber.js +0 -21
- package/dist-server/service/checklist-history/event-subscriber.js.map +0 -1
- package/dist-server/service/checklist-history/index.d.ts +0 -6
- package/dist-server/service/checklist-history/index.js +0 -10
- package/dist-server/service/checklist-history/index.js.map +0 -1
- package/dist-server/service/checklist-item/checklist-item-mutation.d.ts +0 -2
- package/dist-server/service/checklist-item/checklist-item-mutation.js +0 -13
- package/dist-server/service/checklist-item/checklist-item-mutation.js.map +0 -1
- package/dist-server/service/checklist-item/checklist-item-query.d.ts +0 -18
- package/dist-server/service/checklist-item/checklist-item-query.js +0 -138
- package/dist-server/service/checklist-item/checklist-item-query.js.map +0 -1
- package/dist-server/service/checklist-item/checklist-item-type.d.ts +0 -5
- package/dist-server/service/checklist-item/checklist-item-type.js +0 -21
- package/dist-server/service/checklist-item/checklist-item-type.js.map +0 -1
- package/dist-server/service/checklist-item/checklist-item.d.ts +0 -29
- package/dist-server/service/checklist-item/checklist-item.js +0 -124
- package/dist-server/service/checklist-item/checklist-item.js.map +0 -1
- package/dist-server/service/checklist-item/index.d.ts +0 -4
- package/dist-server/service/checklist-item/index.js +0 -9
- package/dist-server/service/checklist-item/index.js.map +0 -1
- package/dist-server/service/checklist-item-comment/checklist-item-comment-history.d.ts +0 -16
- package/dist-server/service/checklist-item-comment/checklist-item-comment-history.js +0 -83
- package/dist-server/service/checklist-item-comment/checklist-item-comment-history.js.map +0 -1
- package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.d.ts +0 -8
- package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js +0 -114
- package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js.map +0 -1
- package/dist-server/service/checklist-item-comment/checklist-item-comment-query.d.ts +0 -7
- package/dist-server/service/checklist-item-comment/checklist-item-comment-query.js +0 -49
- package/dist-server/service/checklist-item-comment/checklist-item-comment-query.js.map +0 -1
- package/dist-server/service/checklist-item-comment/checklist-item-comment-type.d.ts +0 -14
- package/dist-server/service/checklist-item-comment/checklist-item-comment-type.js +0 -53
- package/dist-server/service/checklist-item-comment/checklist-item-comment-type.js.map +0 -1
- package/dist-server/service/checklist-item-comment/checklist-item-comment.d.ts +0 -12
- package/dist-server/service/checklist-item-comment/checklist-item-comment.js +0 -57
- package/dist-server/service/checklist-item-comment/checklist-item-comment.js.map +0 -1
- package/dist-server/service/checklist-item-comment/index.d.ts +0 -5
- package/dist-server/service/checklist-item-comment/index.js +0 -10
- package/dist-server/service/checklist-item-comment/index.js.map +0 -1
- package/dist-server/service/checklist-item-history/checklist-item-history-query.d.ts +0 -16
- package/dist-server/service/checklist-item-history/checklist-item-history-query.js +0 -123
- package/dist-server/service/checklist-item-history/checklist-item-history-query.js.map +0 -1
- package/dist-server/service/checklist-item-history/checklist-item-history-type.d.ts +0 -5
- package/dist-server/service/checklist-item-history/checklist-item-history-type.js +0 -21
- package/dist-server/service/checklist-item-history/checklist-item-history-type.js.map +0 -1
- package/dist-server/service/checklist-item-history/checklist-item-history.d.ts +0 -27
- package/dist-server/service/checklist-item-history/checklist-item-history.js +0 -133
- package/dist-server/service/checklist-item-history/checklist-item-history.js.map +0 -1
- package/dist-server/service/checklist-item-history/event-subscriber.d.ts +0 -7
- package/dist-server/service/checklist-item-history/event-subscriber.js +0 -21
- package/dist-server/service/checklist-item-history/event-subscriber.js.map +0 -1
- package/dist-server/service/checklist-item-history/index.d.ts +0 -6
- package/dist-server/service/checklist-item-history/index.js +0 -10
- package/dist-server/service/checklist-item-history/index.js.map +0 -1
- package/dist-server/service/checklist-template/checklist-template-mutation.d.ts +0 -6
- package/dist-server/service/checklist-template/checklist-template-mutation.js +0 -64
- package/dist-server/service/checklist-template/checklist-template-mutation.js.map +0 -1
- package/dist-server/service/checklist-template/checklist-template-query.d.ts +0 -10
- package/dist-server/service/checklist-template/checklist-template-query.js +0 -62
- package/dist-server/service/checklist-template/checklist-template-query.js.map +0 -1
- package/dist-server/service/checklist-template/checklist-template-type.d.ts +0 -10
- package/dist-server/service/checklist-template/checklist-template-type.js +0 -39
- package/dist-server/service/checklist-template/checklist-template-type.js.map +0 -1
- package/dist-server/service/checklist-template/checklist-template.d.ts +0 -17
- package/dist-server/service/checklist-template/checklist-template.js +0 -78
- package/dist-server/service/checklist-template/checklist-template.js.map +0 -1
- package/dist-server/service/checklist-template/index.d.ts +0 -5
- package/dist-server/service/checklist-template/index.js +0 -9
- package/dist-server/service/checklist-template/index.js.map +0 -1
- package/dist-server/service/checklist-template-item/checklist-template-item-mutation.d.ts +0 -7
- package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js +0 -80
- package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js.map +0 -1
- package/dist-server/service/checklist-template-item/checklist-template-item-query.d.ts +0 -11
- package/dist-server/service/checklist-template-item/checklist-template-item-query.js +0 -78
- package/dist-server/service/checklist-template-item/checklist-template-item-query.js.map +0 -1
- package/dist-server/service/checklist-template-item/checklist-template-item-type.d.ts +0 -19
- package/dist-server/service/checklist-template-item/checklist-template-item-type.js +0 -69
- package/dist-server/service/checklist-template-item/checklist-template-item-type.js.map +0 -1
- package/dist-server/service/checklist-template-item/checklist-template-item.d.ts +0 -26
- package/dist-server/service/checklist-template-item/checklist-template-item.js +0 -106
- package/dist-server/service/checklist-template-item/checklist-template-item.js.map +0 -1
- package/dist-server/service/checklist-template-item/index.d.ts +0 -5
- package/dist-server/service/checklist-template-item/index.js +0 -9
- package/dist-server/service/checklist-template-item/index.js.map +0 -1
- package/dist-server/service/checklist-template-item/spec-matching-service.d.ts +0 -2
- package/dist-server/service/checklist-template-item/spec-matching-service.js +0 -51
- package/dist-server/service/checklist-template-item/spec-matching-service.js.map +0 -1
- package/dist-server/service/checklist-type/checklist-type-mutation.d.ts +0 -6
- package/dist-server/service/checklist-type/checklist-type-mutation.js +0 -64
- package/dist-server/service/checklist-type/checklist-type-mutation.js.map +0 -1
- package/dist-server/service/checklist-type/checklist-type-query.d.ts +0 -10
- package/dist-server/service/checklist-type/checklist-type-query.js +0 -62
- package/dist-server/service/checklist-type/checklist-type-query.js.map +0 -1
- package/dist-server/service/checklist-type/checklist-type-type.d.ts +0 -11
- package/dist-server/service/checklist-type/checklist-type-type.js +0 -43
- package/dist-server/service/checklist-type/checklist-type-type.js.map +0 -1
- package/dist-server/service/checklist-type/checklist-type.d.ts +0 -19
- package/dist-server/service/checklist-type/checklist-type.js +0 -78
- package/dist-server/service/checklist-type/checklist-type.js.map +0 -1
- package/dist-server/service/checklist-type/index.d.ts +0 -5
- package/dist-server/service/checklist-type/index.js +0 -9
- package/dist-server/service/checklist-type/index.js.map +0 -1
- package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.d.ts +0 -7
- package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.js +0 -107
- package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.js.map +0 -1
- package/dist-server/service/construction-checklist-template/construction-checklist-template-query.d.ts +0 -10
- package/dist-server/service/construction-checklist-template/construction-checklist-template-query.js +0 -62
- package/dist-server/service/construction-checklist-template/construction-checklist-template-query.js.map +0 -1
- package/dist-server/service/construction-checklist-template/construction-checklist-template-type.d.ts +0 -11
- package/dist-server/service/construction-checklist-template/construction-checklist-template-type.js +0 -43
- package/dist-server/service/construction-checklist-template/construction-checklist-template-type.js.map +0 -1
- package/dist-server/service/construction-checklist-template/construction-checklist-template.d.ts +0 -18
- package/dist-server/service/construction-checklist-template/construction-checklist-template.js +0 -80
- package/dist-server/service/construction-checklist-template/construction-checklist-template.js.map +0 -1
- package/dist-server/service/construction-checklist-template/index.d.ts +0 -5
- package/dist-server/service/construction-checklist-template/index.js +0 -9
- package/dist-server/service/construction-checklist-template/index.js.map +0 -1
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.d.ts +0 -6
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.js +0 -56
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.js.map +0 -1
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.d.ts +0 -9
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.js +0 -53
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.js.map +0 -1
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.d.ts +0 -17
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.js +0 -67
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.js.map +0 -1
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.d.ts +0 -24
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.js +0 -113
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.js.map +0 -1
- package/dist-server/service/construction-checklist-template-item/index.d.ts +0 -5
- package/dist-server/service/construction-checklist-template-item/index.js +0 -9
- package/dist-server/service/construction-checklist-template-item/index.js.map +0 -1
- package/dist-server/service/field-document/field-document-auto-file.d.ts +0 -21
- package/dist-server/service/field-document/field-document-auto-file.js +0 -47
- package/dist-server/service/field-document/field-document-auto-file.js.map +0 -1
- package/dist-server/service/field-document/field-document-mutation.d.ts +0 -9
- package/dist-server/service/field-document/field-document-mutation.js +0 -139
- package/dist-server/service/field-document/field-document-mutation.js.map +0 -1
- package/dist-server/service/field-document/field-document-query.d.ts +0 -14
- package/dist-server/service/field-document/field-document-query.js +0 -120
- package/dist-server/service/field-document/field-document-query.js.map +0 -1
- package/dist-server/service/field-document/field-document-summary-service.d.ts +0 -10
- package/dist-server/service/field-document/field-document-summary-service.js +0 -79
- package/dist-server/service/field-document/field-document-summary-service.js.map +0 -1
- package/dist-server/service/field-document/field-document-type.d.ts +0 -24
- package/dist-server/service/field-document/field-document-type.js +0 -88
- package/dist-server/service/field-document/field-document-type.js.map +0 -1
- package/dist-server/service/field-document/field-document.d.ts +0 -29
- package/dist-server/service/field-document/field-document.js +0 -127
- package/dist-server/service/field-document/field-document.js.map +0 -1
- package/dist-server/service/field-document/index.d.ts +0 -5
- package/dist-server/service/field-document/index.js +0 -9
- package/dist-server/service/field-document/index.js.map +0 -1
- package/dist-server/service/index.d.ts +0 -23
- package/dist-server/service/index.js +0 -98
- package/dist-server/service/index.js.map +0 -1
- package/dist-server/service/issue/index.d.ts +0 -5
- package/dist-server/service/issue/index.js +0 -9
- package/dist-server/service/issue/index.js.map +0 -1
- package/dist-server/service/issue/issue-mutation.d.ts +0 -10
- package/dist-server/service/issue/issue-mutation.js +0 -167
- package/dist-server/service/issue/issue-mutation.js.map +0 -1
- package/dist-server/service/issue/issue-query.d.ts +0 -12
- package/dist-server/service/issue/issue-query.js +0 -91
- package/dist-server/service/issue/issue-query.js.map +0 -1
- package/dist-server/service/issue/issue-type.d.ts +0 -23
- package/dist-server/service/issue/issue-type.js +0 -86
- package/dist-server/service/issue/issue-type.js.map +0 -1
- package/dist-server/service/issue/issue.d.ts +0 -26
- package/dist-server/service/issue/issue.js +0 -111
- package/dist-server/service/issue/issue.js.map +0 -1
- package/dist-server/service/project-checklist/index.d.ts +0 -5
- package/dist-server/service/project-checklist/index.js +0 -9
- package/dist-server/service/project-checklist/index.js.map +0 -1
- package/dist-server/service/project-checklist/project-checklist-mutation.d.ts +0 -7
- package/dist-server/service/project-checklist/project-checklist-mutation.js +0 -118
- package/dist-server/service/project-checklist/project-checklist-mutation.js.map +0 -1
- package/dist-server/service/project-checklist/project-checklist-query.d.ts +0 -12
- package/dist-server/service/project-checklist/project-checklist-query.js +0 -76
- package/dist-server/service/project-checklist/project-checklist-query.js.map +0 -1
- package/dist-server/service/project-checklist/project-checklist-type.d.ts +0 -18
- package/dist-server/service/project-checklist/project-checklist-type.js +0 -69
- package/dist-server/service/project-checklist/project-checklist-type.js.map +0 -1
- package/dist-server/service/project-checklist/project-checklist.d.ts +0 -20
- package/dist-server/service/project-checklist/project-checklist.js +0 -90
- package/dist-server/service/project-checklist/project-checklist.js.map +0 -1
- package/dist-server/service/project-checklist/spec-matching-service.d.ts +0 -17
- package/dist-server/service/project-checklist/spec-matching-service.js +0 -140
- package/dist-server/service/project-checklist/spec-matching-service.js.map +0 -1
- package/dist-server/service/project-checklist-item/index.d.ts +0 -4
- package/dist-server/service/project-checklist-item/index.js +0 -9
- package/dist-server/service/project-checklist-item/index.js.map +0 -1
- package/dist-server/service/project-checklist-item/project-checklist-item-mutation.d.ts +0 -2
- package/dist-server/service/project-checklist-item/project-checklist-item-mutation.js +0 -13
- package/dist-server/service/project-checklist-item/project-checklist-item-mutation.js.map +0 -1
- package/dist-server/service/project-checklist-item/project-checklist-item-query.d.ts +0 -5
- package/dist-server/service/project-checklist-item/project-checklist-item-query.js +0 -34
- package/dist-server/service/project-checklist-item/project-checklist-item-query.js.map +0 -1
- package/dist-server/service/project-checklist-item/project-checklist-item-type.d.ts +0 -5
- package/dist-server/service/project-checklist-item/project-checklist-item-type.js +0 -21
- package/dist-server/service/project-checklist-item/project-checklist-item-type.js.map +0 -1
- package/dist-server/service/project-checklist-item/project-checklist-item.d.ts +0 -19
- package/dist-server/service/project-checklist-item/project-checklist-item.js +0 -92
- package/dist-server/service/project-checklist-item/project-checklist-item.js.map +0 -1
- package/dist-server/service/project-report/index.d.ts +0 -5
- package/dist-server/service/project-report/index.js +0 -9
- package/dist-server/service/project-report/index.js.map +0 -1
- package/dist-server/service/project-report/project-report-mutation.d.ts +0 -10
- package/dist-server/service/project-report/project-report-mutation.js +0 -167
- package/dist-server/service/project-report/project-report-mutation.js.map +0 -1
- package/dist-server/service/project-report/project-report-query.d.ts +0 -12
- package/dist-server/service/project-report/project-report-query.js +0 -91
- package/dist-server/service/project-report/project-report-query.js.map +0 -1
- package/dist-server/service/project-report/project-report-type.d.ts +0 -23
- package/dist-server/service/project-report/project-report-type.js +0 -86
- package/dist-server/service/project-report/project-report-type.js.map +0 -1
- package/dist-server/service/project-report/project-report.d.ts +0 -28
- package/dist-server/service/project-report/project-report.js +0 -121
- package/dist-server/service/project-report/project-report.js.map +0 -1
- package/dist-server/service/supervisor/index.d.ts +0 -5
- package/dist-server/service/supervisor/index.js +0 -9
- package/dist-server/service/supervisor/index.js.map +0 -1
- package/dist-server/service/supervisor/supervisor-mutation.d.ts +0 -10
- package/dist-server/service/supervisor/supervisor-mutation.js +0 -167
- package/dist-server/service/supervisor/supervisor-mutation.js.map +0 -1
- package/dist-server/service/supervisor/supervisor-query.d.ts +0 -12
- package/dist-server/service/supervisor/supervisor-query.js +0 -91
- package/dist-server/service/supervisor/supervisor-query.js.map +0 -1
- package/dist-server/service/supervisor/supervisor-type.d.ts +0 -23
- package/dist-server/service/supervisor/supervisor-type.js +0 -86
- package/dist-server/service/supervisor/supervisor-type.js.map +0 -1
- package/dist-server/service/supervisor/supervisor.d.ts +0 -28
- package/dist-server/service/supervisor/supervisor.js +0 -121
- package/dist-server/service/supervisor/supervisor.js.map +0 -1
- package/dist-server/tsconfig.tsbuildinfo +0 -1
|
@@ -1,492 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import '@material/web/icon/icon.js';
|
|
3
|
-
import gql from 'graphql-tag';
|
|
4
|
-
import { client } from '@operato/graphql';
|
|
5
|
-
import { css, html, LitElement } from 'lit';
|
|
6
|
-
import { customElement, property, state } from 'lit/decorators.js';
|
|
7
|
-
import { ButtonContainerStyles, ScrollbarStyles } from '@operato/styles';
|
|
8
|
-
import { notify } from '@operato/layout';
|
|
9
|
-
import { store, User, connect } from '@operato/shell';
|
|
10
|
-
import { OxPrompt } from '@operato/popup/ox-prompt.js';
|
|
11
|
-
import { openPopup } from '@operato/layout';
|
|
12
|
-
import './file-preview-popup';
|
|
13
|
-
import '../building-inspection/component/image-preview-popup';
|
|
14
|
-
import { BuildingInspectionStatus } from '../building-inspection/building-inspection-list';
|
|
15
|
-
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
16
|
-
let AttachmentListPopup = class AttachmentListPopup extends connect(store)(LitElement) {
|
|
17
|
-
constructor() {
|
|
18
|
-
super(...arguments);
|
|
19
|
-
this.checklistItemId = '';
|
|
20
|
-
this.status = BuildingInspectionStatus.WAIT;
|
|
21
|
-
this.mode = "VIEWER" /* ChecklistMode.VIEWER */;
|
|
22
|
-
this.item = { count: 0 };
|
|
23
|
-
this.checklistItemAttachments = [];
|
|
24
|
-
this.checklistItemAttachmentCount = 0;
|
|
25
|
-
this.user = {};
|
|
26
|
-
}
|
|
27
|
-
render() {
|
|
28
|
-
return html `
|
|
29
|
-
<h3>제품검사에 대한 파일: ${this.checklistItemAttachmentCount || 0}건</h3>
|
|
30
|
-
|
|
31
|
-
<div body>
|
|
32
|
-
<div file-list-container>
|
|
33
|
-
${this.checklistItemAttachments.length > 0
|
|
34
|
-
? this.checklistItemAttachments.map(attachment => {
|
|
35
|
-
var _a, _b;
|
|
36
|
-
return html `
|
|
37
|
-
<div file-item @click=${() => this._onClickPreview(attachment.fullpath)}>
|
|
38
|
-
<div file-info>
|
|
39
|
-
<div file-icon>
|
|
40
|
-
<md-icon>description</md-icon>
|
|
41
|
-
</div>
|
|
42
|
-
<div file-details>
|
|
43
|
-
<span file-name>${attachment.name || ''}</span>
|
|
44
|
-
<div file-meta>
|
|
45
|
-
<span file-creator>
|
|
46
|
-
<md-icon style="--md-icon-size: 12px;">account_circle</md-icon>
|
|
47
|
-
${((_a = attachment.creator) === null || _a === void 0 ? void 0 : _a.name) || ''}
|
|
48
|
-
</span>
|
|
49
|
-
<span file-date>
|
|
50
|
-
<md-icon style="--md-icon-size: 12px;">schedule</md-icon>
|
|
51
|
-
${this._formatDate(attachment.createdAt)}
|
|
52
|
-
</span>
|
|
53
|
-
</div>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
<div action-buttons>
|
|
57
|
-
<md-icon
|
|
58
|
-
title="미리보기"
|
|
59
|
-
@click=${(e) => {
|
|
60
|
-
e.stopPropagation();
|
|
61
|
-
this._onClickPreview(attachment.fullpath);
|
|
62
|
-
}}
|
|
63
|
-
>visibility</md-icon
|
|
64
|
-
>
|
|
65
|
-
<a
|
|
66
|
-
href=${ifDefined(attachment.fullpath)}
|
|
67
|
-
download=${ifDefined(attachment.name)}
|
|
68
|
-
@click=${(e) => e.stopPropagation()}
|
|
69
|
-
>
|
|
70
|
-
<md-icon title="다운로드" style="color: #2196f3;">download</md-icon>
|
|
71
|
-
</a>
|
|
72
|
-
${((_b = attachment.creator) === null || _b === void 0 ? void 0 : _b.email) === this.user.email &&
|
|
73
|
-
this.status != BuildingInspectionStatus.PASS &&
|
|
74
|
-
this.mode == "EDITOR" /* ChecklistMode.EDITOR */
|
|
75
|
-
? html `<md-icon
|
|
76
|
-
delete
|
|
77
|
-
title="삭제"
|
|
78
|
-
@click=${(e) => {
|
|
79
|
-
e.stopPropagation();
|
|
80
|
-
this._deleteAttachment(attachment.id);
|
|
81
|
-
}}
|
|
82
|
-
>delete</md-icon
|
|
83
|
-
>`
|
|
84
|
-
: ''}
|
|
85
|
-
</div>
|
|
86
|
-
</div>
|
|
87
|
-
`;
|
|
88
|
-
})
|
|
89
|
-
: html `
|
|
90
|
-
<div empty-state>
|
|
91
|
-
<md-icon>insert_drive_file</md-icon>
|
|
92
|
-
<div>첨부된 파일이 없습니다.</div>
|
|
93
|
-
</div>
|
|
94
|
-
`}
|
|
95
|
-
</div>
|
|
96
|
-
|
|
97
|
-
<ox-input-file
|
|
98
|
-
accept="*/*"
|
|
99
|
-
multiple="true"
|
|
100
|
-
hide-filelist
|
|
101
|
-
?disabled=${this.status == BuildingInspectionStatus.PASS || this.mode == "VIEWER" /* ChecklistMode.VIEWER */}
|
|
102
|
-
@change=${this.onCreateAttachment.bind(this)}
|
|
103
|
-
></ox-input-file>
|
|
104
|
-
|
|
105
|
-
<div button-container>
|
|
106
|
-
<md-elevated-button @click=${this._close}> <md-icon slot="icon">cancel</md-icon>취소 </md-elevated-button>
|
|
107
|
-
</div>
|
|
108
|
-
</div>
|
|
109
|
-
`;
|
|
110
|
-
}
|
|
111
|
-
async firstUpdated() {
|
|
112
|
-
var _a;
|
|
113
|
-
this.user = (_a = store.getState().auth) === null || _a === void 0 ? void 0 : _a.user;
|
|
114
|
-
await this._loadAttachments();
|
|
115
|
-
}
|
|
116
|
-
async _loadAttachments() {
|
|
117
|
-
const response = await client.query({
|
|
118
|
-
query: gql `
|
|
119
|
-
query ChecklistItem($id: String!) {
|
|
120
|
-
checklistItem(id: $id) {
|
|
121
|
-
id
|
|
122
|
-
checklistItemAttachmentCount
|
|
123
|
-
checklistItemAttachments {
|
|
124
|
-
id
|
|
125
|
-
name
|
|
126
|
-
fullpath
|
|
127
|
-
creator {
|
|
128
|
-
id
|
|
129
|
-
name
|
|
130
|
-
email
|
|
131
|
-
}
|
|
132
|
-
createdAt
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
`,
|
|
137
|
-
variables: {
|
|
138
|
-
id: this.checklistItemId
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
if (response.errors)
|
|
142
|
-
return;
|
|
143
|
-
this.checklistItemAttachments = response.data.checklistItem.checklistItemAttachments || [];
|
|
144
|
-
this.checklistItemAttachmentCount = response.data.checklistItem.checklistItemAttachmentCount;
|
|
145
|
-
}
|
|
146
|
-
async _deleteAttachment(attachmentId) {
|
|
147
|
-
var _a, _b;
|
|
148
|
-
if (this.status == BuildingInspectionStatus.PASS) {
|
|
149
|
-
notify({ message: '완료 상태인 검측정보를 변경할 수 없습니다.', level: 'error' });
|
|
150
|
-
return;
|
|
151
|
-
}
|
|
152
|
-
if (await OxPrompt.open({
|
|
153
|
-
title: '첨부 자료를 삭제',
|
|
154
|
-
text: '첨부 자료를 삭제 하시겠습니까?',
|
|
155
|
-
confirmButton: { text: '삭제' },
|
|
156
|
-
cancelButton: { text: '취소' }
|
|
157
|
-
})) {
|
|
158
|
-
const response = await client.mutate({
|
|
159
|
-
mutation: gql `
|
|
160
|
-
mutation DeleteAttachment($deleteAttachmentId: String!) {
|
|
161
|
-
deleteAttachment(id: $deleteAttachmentId)
|
|
162
|
-
}
|
|
163
|
-
`,
|
|
164
|
-
variables: {
|
|
165
|
-
deleteAttachmentId: attachmentId
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
if (!response.errors) {
|
|
169
|
-
this.checklistItemAttachments = [...this.checklistItemAttachments.filter(attachment => attachment.id != attachmentId)];
|
|
170
|
-
notify({ message: '첨부 자료를 삭제하였습니다.', level: 'info' });
|
|
171
|
-
}
|
|
172
|
-
else {
|
|
173
|
-
notify({ message: ((_b = (_a = response.errors) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.message) || '첨부 자료 삭제에 실패하였습니다.', level: 'error' });
|
|
174
|
-
}
|
|
175
|
-
this._dispatchEvent();
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
_close() {
|
|
179
|
-
history.back();
|
|
180
|
-
}
|
|
181
|
-
// 파일 변경 시 파일을 저장할 핸들러
|
|
182
|
-
async onCreateAttachment(e) {
|
|
183
|
-
if (this.status == BuildingInspectionStatus.PASS) {
|
|
184
|
-
notify({ message: '완료 상태인 검측정보를 변경할 수 없습니다.', level: 'error' });
|
|
185
|
-
return;
|
|
186
|
-
}
|
|
187
|
-
const files = e.detail;
|
|
188
|
-
await this._createAttachments(files);
|
|
189
|
-
this._dispatchEvent();
|
|
190
|
-
}
|
|
191
|
-
async _createAttachments(files) {
|
|
192
|
-
const checklistItemId = this.checklistItemId;
|
|
193
|
-
const response = await client.mutate({
|
|
194
|
-
mutation: gql `
|
|
195
|
-
mutation ($attachments: [NewAttachment!]!) {
|
|
196
|
-
createAttachments(attachments: $attachments) {
|
|
197
|
-
id
|
|
198
|
-
name
|
|
199
|
-
fullpath
|
|
200
|
-
creator {
|
|
201
|
-
id
|
|
202
|
-
name
|
|
203
|
-
email
|
|
204
|
-
}
|
|
205
|
-
createdAt
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
`,
|
|
209
|
-
variables: {
|
|
210
|
-
attachments: files.map(file => {
|
|
211
|
-
return { file, refBy: checklistItemId, refType: 'ChecklistItem', description: this.status };
|
|
212
|
-
})
|
|
213
|
-
},
|
|
214
|
-
context: {
|
|
215
|
-
hasUpload: true
|
|
216
|
-
}
|
|
217
|
-
});
|
|
218
|
-
const attachments = response.data.createAttachments;
|
|
219
|
-
this.checklistItemAttachments = [...attachments, ...this.checklistItemAttachments];
|
|
220
|
-
this.checklistItemAttachmentCount = this.checklistItemAttachmentCount + attachments.length;
|
|
221
|
-
}
|
|
222
|
-
_formatDate(date) {
|
|
223
|
-
const _date = new Date(date.toLocaleString('en-US', { timeZone: 'Asia/Seoul' }));
|
|
224
|
-
const year = _date.getFullYear();
|
|
225
|
-
const month = String(_date.getMonth() + 1).padStart(2, '0');
|
|
226
|
-
const day = String(_date.getDate()).padStart(2, '0');
|
|
227
|
-
const hours = String(_date.getHours()).padStart(2, '0');
|
|
228
|
-
const minutes = String(_date.getMinutes()).padStart(2, '0');
|
|
229
|
-
return `${year}.${month}.${day} ${hours}:${minutes}`;
|
|
230
|
-
}
|
|
231
|
-
// 첨부 자료 변경 이벤트 디스패치
|
|
232
|
-
_dispatchEvent() {
|
|
233
|
-
this.dispatchEvent(new CustomEvent('change-attachment', { detail: { checklistItemId: this.checklistItemId } }));
|
|
234
|
-
}
|
|
235
|
-
_onClickPreview(filepath) {
|
|
236
|
-
if (!filepath) {
|
|
237
|
-
return;
|
|
238
|
-
}
|
|
239
|
-
// 파일 확장자로 타입 판단
|
|
240
|
-
const fileExtension = filepath.toLowerCase().split('.').pop();
|
|
241
|
-
const isImage = ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp', 'svg'].includes(fileExtension || '');
|
|
242
|
-
const isPdf = fileExtension === 'pdf';
|
|
243
|
-
if (isImage) {
|
|
244
|
-
this._openImagePreview(filepath);
|
|
245
|
-
}
|
|
246
|
-
else if (isPdf) {
|
|
247
|
-
this._openPdfPreview(filepath);
|
|
248
|
-
}
|
|
249
|
-
else {
|
|
250
|
-
// 기타 파일은 기존 file-preview-popup 사용
|
|
251
|
-
this._openGenericPreview(filepath);
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
_openImagePreview(filepath) {
|
|
255
|
-
const imageData = this.checklistItemAttachments.filter(attachment => {
|
|
256
|
-
var _a;
|
|
257
|
-
const fileExtension = (_a = attachment.fullpath) === null || _a === void 0 ? void 0 : _a.toLowerCase().split('.').pop();
|
|
258
|
-
return ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp', 'svg'].includes(fileExtension || '');
|
|
259
|
-
});
|
|
260
|
-
const currentIndex = imageData.findIndex(attachment => attachment.fullpath === filepath);
|
|
261
|
-
openPopup(html ` <image-preview-popup .images=${imageData} .currentIndex=${Math.max(0, currentIndex)}></image-preview-popup> `, { backdrop: true, size: 'large', title: '이미지 미리보기' });
|
|
262
|
-
}
|
|
263
|
-
_openPdfPreview(filepath) {
|
|
264
|
-
openPopup(html `
|
|
265
|
-
<div style="display: flex; flex-direction: column;">
|
|
266
|
-
<div style="flex: 1; overflow: hidden; touch-action: pan-x pan-y;">
|
|
267
|
-
<iframe
|
|
268
|
-
src="${filepath}#toolbar=1&navpanes=0&scrollbar=1&zoom=page-fit"
|
|
269
|
-
style="
|
|
270
|
-
width: 100%;
|
|
271
|
-
height: 100%;
|
|
272
|
-
border: none;
|
|
273
|
-
touch-action: pan-x pan-y;
|
|
274
|
-
"
|
|
275
|
-
@error=${() => {
|
|
276
|
-
// PDF 로드 실패시 새 탭에서 열기
|
|
277
|
-
window.open(filepath, '_blank');
|
|
278
|
-
}}
|
|
279
|
-
></iframe>
|
|
280
|
-
</div>
|
|
281
|
-
</div>
|
|
282
|
-
`, { backdrop: true, size: 'large', title: '[PDF 미리보기]' });
|
|
283
|
-
}
|
|
284
|
-
// 기타 파일 타입은 기존 방식 사용
|
|
285
|
-
_openGenericPreview(filepath) {
|
|
286
|
-
openPopup(html ` <file-preview-popup .filepath=${filepath}></file-preview-popup> `, {
|
|
287
|
-
backdrop: true,
|
|
288
|
-
size: 'large',
|
|
289
|
-
title: '미리보기'
|
|
290
|
-
});
|
|
291
|
-
}
|
|
292
|
-
};
|
|
293
|
-
AttachmentListPopup.styles = [
|
|
294
|
-
ButtonContainerStyles,
|
|
295
|
-
ScrollbarStyles,
|
|
296
|
-
css `
|
|
297
|
-
:host {
|
|
298
|
-
display: flex;
|
|
299
|
-
flex-direction: column;
|
|
300
|
-
background-color: #fff;
|
|
301
|
-
width: 100%;
|
|
302
|
-
max-height: 80vh;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
div[body] {
|
|
306
|
-
flex: 1;
|
|
307
|
-
overflow-y: auto;
|
|
308
|
-
padding: 20px;
|
|
309
|
-
|
|
310
|
-
div[file-list-container] {
|
|
311
|
-
display: flex;
|
|
312
|
-
flex-direction: column;
|
|
313
|
-
gap: 15px;
|
|
314
|
-
background-color: #f7f7f7;
|
|
315
|
-
padding: 20px;
|
|
316
|
-
border-radius: 8px;
|
|
317
|
-
margin-bottom: 20px;
|
|
318
|
-
|
|
319
|
-
div[file-item] {
|
|
320
|
-
display: flex;
|
|
321
|
-
align-items: center;
|
|
322
|
-
gap: 12px;
|
|
323
|
-
padding: 12px;
|
|
324
|
-
background-color: #fff;
|
|
325
|
-
border-radius: 6px;
|
|
326
|
-
border: 1px solid #ddd;
|
|
327
|
-
cursor: pointer;
|
|
328
|
-
transition: all 0.2s ease;
|
|
329
|
-
|
|
330
|
-
&:hover {
|
|
331
|
-
background-color: #e3f2fd;
|
|
332
|
-
border-color: #2196f3;
|
|
333
|
-
transform: translateY(-1px);
|
|
334
|
-
box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
div[file-info] {
|
|
338
|
-
flex: 1;
|
|
339
|
-
display: flex;
|
|
340
|
-
align-items: center;
|
|
341
|
-
gap: 12px;
|
|
342
|
-
|
|
343
|
-
div[file-icon] {
|
|
344
|
-
display: flex;
|
|
345
|
-
align-items: center;
|
|
346
|
-
justify-content: center;
|
|
347
|
-
width: 40px;
|
|
348
|
-
height: 40px;
|
|
349
|
-
border-radius: 8px;
|
|
350
|
-
|
|
351
|
-
md-icon {
|
|
352
|
-
--md-icon-size: 24px;
|
|
353
|
-
color: #666;
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
div[file-details] {
|
|
358
|
-
flex: 1;
|
|
359
|
-
display: flex;
|
|
360
|
-
flex-direction: column;
|
|
361
|
-
gap: 4px;
|
|
362
|
-
|
|
363
|
-
span[file-name] {
|
|
364
|
-
font-size: 14px;
|
|
365
|
-
font-weight: 500;
|
|
366
|
-
color: #333;
|
|
367
|
-
line-height: 1.2;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
div[file-meta] {
|
|
371
|
-
display: flex;
|
|
372
|
-
gap: 15px;
|
|
373
|
-
margin-top: 2px;
|
|
374
|
-
|
|
375
|
-
span[file-creator] {
|
|
376
|
-
font-size: 11px;
|
|
377
|
-
color: #666;
|
|
378
|
-
display: flex;
|
|
379
|
-
align-items: center;
|
|
380
|
-
gap: 3px;
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
span[file-date] {
|
|
384
|
-
font-size: 11px;
|
|
385
|
-
color: #666;
|
|
386
|
-
display: flex;
|
|
387
|
-
align-items: center;
|
|
388
|
-
gap: 3px;
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
div[action-buttons] {
|
|
395
|
-
display: flex;
|
|
396
|
-
gap: 8px;
|
|
397
|
-
align-items: center;
|
|
398
|
-
|
|
399
|
-
md-icon {
|
|
400
|
-
--md-icon-size: 20px;
|
|
401
|
-
color: #2196f3;
|
|
402
|
-
cursor: pointer;
|
|
403
|
-
padding: 4px;
|
|
404
|
-
border-radius: 4px;
|
|
405
|
-
transition: background-color 0.2s;
|
|
406
|
-
|
|
407
|
-
&:hover {
|
|
408
|
-
background-color: rgba(33, 150, 243, 0.1);
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
md-icon[delete] {
|
|
413
|
-
color: #f44336;
|
|
414
|
-
|
|
415
|
-
&:hover {
|
|
416
|
-
background-color: rgba(244, 67, 54, 0.1);
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
a {
|
|
421
|
-
text-decoration: none;
|
|
422
|
-
color: inherit;
|
|
423
|
-
display: flex;
|
|
424
|
-
align-items: center;
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
div[empty-state] {
|
|
431
|
-
text-align: center;
|
|
432
|
-
color: #666;
|
|
433
|
-
padding: 40px;
|
|
434
|
-
|
|
435
|
-
md-icon {
|
|
436
|
-
--md-icon-size: 48px;
|
|
437
|
-
color: #ccc;
|
|
438
|
-
margin-bottom: 16px;
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
div[button-container] {
|
|
443
|
-
display: flex;
|
|
444
|
-
align-items: center;
|
|
445
|
-
justify-content: center;
|
|
446
|
-
gap: 10px;
|
|
447
|
-
margin-top: 20px;
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
h3 {
|
|
452
|
-
position: relative;
|
|
453
|
-
color: rgb(5, 149, 229);
|
|
454
|
-
font-size: 17px;
|
|
455
|
-
font-weight: 700;
|
|
456
|
-
margin: 0px 20px 10px 20px;
|
|
457
|
-
padding-top: 20px;
|
|
458
|
-
}
|
|
459
|
-
`
|
|
460
|
-
];
|
|
461
|
-
__decorate([
|
|
462
|
-
property({ type: String }),
|
|
463
|
-
__metadata("design:type", String)
|
|
464
|
-
], AttachmentListPopup.prototype, "checklistItemId", void 0);
|
|
465
|
-
__decorate([
|
|
466
|
-
property({ type: String }),
|
|
467
|
-
__metadata("design:type", String)
|
|
468
|
-
], AttachmentListPopup.prototype, "status", void 0);
|
|
469
|
-
__decorate([
|
|
470
|
-
property({ type: String }),
|
|
471
|
-
__metadata("design:type", String)
|
|
472
|
-
], AttachmentListPopup.prototype, "mode", void 0);
|
|
473
|
-
__decorate([
|
|
474
|
-
state(),
|
|
475
|
-
__metadata("design:type", Object)
|
|
476
|
-
], AttachmentListPopup.prototype, "item", void 0);
|
|
477
|
-
__decorate([
|
|
478
|
-
state(),
|
|
479
|
-
__metadata("design:type", Object)
|
|
480
|
-
], AttachmentListPopup.prototype, "checklistItemAttachments", void 0);
|
|
481
|
-
__decorate([
|
|
482
|
-
state(),
|
|
483
|
-
__metadata("design:type", Number)
|
|
484
|
-
], AttachmentListPopup.prototype, "checklistItemAttachmentCount", void 0);
|
|
485
|
-
__decorate([
|
|
486
|
-
state(),
|
|
487
|
-
__metadata("design:type", User)
|
|
488
|
-
], AttachmentListPopup.prototype, "user", void 0);
|
|
489
|
-
AttachmentListPopup = __decorate([
|
|
490
|
-
customElement('attachment-list-popup')
|
|
491
|
-
], AttachmentListPopup);
|
|
492
|
-
//# sourceMappingURL=attachment-list-popup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"attachment-list-popup.js","sourceRoot":"","sources":["../../../client/pages/checklist/attachment-list-popup.ts"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAClE,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AACxE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,sBAAsB,CAAA;AAC7B,OAAO,sDAAsD,CAAA;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,iDAAiD,CAAA;AAE1F,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAGxD,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,OAAO,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC;IAA5D;;QA0K8B,oBAAe,GAAW,EAAE,CAAA;QAC5B,WAAM,GAA6B,wBAAwB,CAAC,IAAI,CAAA;QAChE,SAAI,uCAAsC;QAE7D,S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AQ,EAAE,IAAI;YACd,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,MAAM;SACd,CAAC,CAAA;IACJ,CAAC;;AAxdM,0BAAM,GAAG;IACd,qBAAqB;IACrB,eAAe;IACf,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAmKF;CACF,AAvKY,CAuKZ;AAE2B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4DAA6B;AAC5B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mDAAiE;AAChE;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;iDAA2C;AAE7D;IAAR,KAAK,EAAE;;iDAAyB;AACxB;IAAR,KAAK,EAAE;;qEAAmC;AAClC;IAAR,KAAK,EAAE;;yEAAyC;AACxC;IAAR,KAAK,EAAE;8BAAO,IAAI;iDAAK;AAjLpB,mBAAmB;IADxB,aAAa,CAAC,uBAAuB,CAAC;GACjC,mBAAmB,CA0dxB","sourcesContent":["import '@material/web/icon/icon.js'\nimport gql from 'graphql-tag'\nimport { client } from '@operato/graphql'\nimport { css, html, LitElement } from 'lit'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { ButtonContainerStyles, ScrollbarStyles } from '@operato/styles'\nimport { notify } from '@operato/layout'\nimport { store, User, connect } from '@operato/shell'\nimport { OxPrompt } from '@operato/popup/ox-prompt.js'\nimport { openPopup } from '@operato/layout'\nimport './file-preview-popup'\nimport '../building-inspection/component/image-preview-popup'\nimport { BuildingInspectionStatus } from '../building-inspection/building-inspection-list'\nimport { ChecklistMode } from './checklist-view'\nimport { ifDefined } from 'lit/directives/if-defined.js'\n\n@customElement('attachment-list-popup')\nclass AttachmentListPopup extends connect(store)(LitElement) {\n static styles = [\n ButtonContainerStyles,\n ScrollbarStyles,\n css`\n :host {\n display: flex;\n flex-direction: column;\n background-color: #fff;\n width: 100%;\n max-height: 80vh;\n }\n\n div[body] {\n flex: 1;\n overflow-y: auto;\n padding: 20px;\n\n div[file-list-container] {\n display: flex;\n flex-direction: column;\n gap: 15px;\n background-color: #f7f7f7;\n padding: 20px;\n border-radius: 8px;\n margin-bottom: 20px;\n\n div[file-item] {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 12px;\n background-color: #fff;\n border-radius: 6px;\n border: 1px solid #ddd;\n cursor: pointer;\n transition: all 0.2s ease;\n\n &:hover {\n background-color: #e3f2fd;\n border-color: #2196f3;\n transform: translateY(-1px);\n box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);\n }\n\n div[file-info] {\n flex: 1;\n display: flex;\n align-items: center;\n gap: 12px;\n\n div[file-icon] {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 40px;\n height: 40px;\n border-radius: 8px;\n\n md-icon {\n --md-icon-size: 24px;\n color: #666;\n }\n }\n\n div[file-details] {\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: 4px;\n\n span[file-name] {\n font-size: 14px;\n font-weight: 500;\n color: #333;\n line-height: 1.2;\n }\n\n div[file-meta] {\n display: flex;\n gap: 15px;\n margin-top: 2px;\n\n span[file-creator] {\n font-size: 11px;\n color: #666;\n display: flex;\n align-items: center;\n gap: 3px;\n }\n\n span[file-date] {\n font-size: 11px;\n color: #666;\n display: flex;\n align-items: center;\n gap: 3px;\n }\n }\n }\n }\n\n div[action-buttons] {\n display: flex;\n gap: 8px;\n align-items: center;\n\n md-icon {\n --md-icon-size: 20px;\n color: #2196f3;\n cursor: pointer;\n padding: 4px;\n border-radius: 4px;\n transition: background-color 0.2s;\n\n &:hover {\n background-color: rgba(33, 150, 243, 0.1);\n }\n }\n\n md-icon[delete] {\n color: #f44336;\n\n &:hover {\n background-color: rgba(244, 67, 54, 0.1);\n }\n }\n\n a {\n text-decoration: none;\n color: inherit;\n display: flex;\n align-items: center;\n }\n }\n }\n }\n\n div[empty-state] {\n text-align: center;\n color: #666;\n padding: 40px;\n\n md-icon {\n --md-icon-size: 48px;\n color: #ccc;\n margin-bottom: 16px;\n }\n }\n\n div[button-container] {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 10px;\n margin-top: 20px;\n }\n }\n\n h3 {\n position: relative;\n color: rgb(5, 149, 229);\n font-size: 17px;\n font-weight: 700;\n margin: 0px 20px 10px 20px;\n padding-top: 20px;\n }\n `\n ]\n\n @property({ type: String }) checklistItemId: string = ''\n @property({ type: String }) status: BuildingInspectionStatus = BuildingInspectionStatus.WAIT\n @property({ type: String }) mode: ChecklistMode = ChecklistMode.VIEWER\n\n @state() item: any = { count: 0 }\n @state() checklistItemAttachments: any = []\n @state() checklistItemAttachmentCount: number = 0\n @state() user: User = {}\n\n render() {\n return html`\n <h3>제품검사에 대한 파일: ${this.checklistItemAttachmentCount || 0}건</h3>\n\n <div body>\n <div file-list-container>\n ${this.checklistItemAttachments.length > 0\n ? this.checklistItemAttachments.map(\n attachment => html`\n <div file-item @click=${() => this._onClickPreview(attachment.fullpath)}>\n <div file-info>\n <div file-icon>\n <md-icon>description</md-icon>\n </div>\n <div file-details>\n <span file-name>${attachment.name || ''}</span>\n <div file-meta>\n <span file-creator>\n <md-icon style=\"--md-icon-size: 12px;\">account_circle</md-icon>\n ${attachment.creator?.name || ''}\n </span>\n <span file-date>\n <md-icon style=\"--md-icon-size: 12px;\">schedule</md-icon>\n ${this._formatDate(attachment.createdAt)}\n </span>\n </div>\n </div>\n </div>\n <div action-buttons>\n <md-icon\n title=\"미리보기\"\n @click=${(e: Event) => {\n e.stopPropagation()\n this._onClickPreview(attachment.fullpath)\n }}\n >visibility</md-icon\n >\n <a\n href=${ifDefined(attachment.fullpath)}\n download=${ifDefined(attachment.name)}\n @click=${(e: Event) => e.stopPropagation()}\n >\n <md-icon title=\"다운로드\" style=\"color: #2196f3;\">download</md-icon>\n </a>\n ${attachment.creator?.email === this.user.email &&\n this.status != BuildingInspectionStatus.PASS &&\n this.mode == ChecklistMode.EDITOR\n ? html`<md-icon\n delete\n title=\"삭제\"\n @click=${(e: Event) => {\n e.stopPropagation()\n this._deleteAttachment(attachment.id)\n }}\n >delete</md-icon\n >`\n : ''}\n </div>\n </div>\n `\n )\n : html`\n <div empty-state>\n <md-icon>insert_drive_file</md-icon>\n <div>첨부된 파일이 없습니다.</div>\n </div>\n `}\n </div>\n\n <ox-input-file\n accept=\"*/*\"\n multiple=\"true\"\n hide-filelist\n ?disabled=${this.status == BuildingInspectionStatus.PASS || this.mode == ChecklistMode.VIEWER}\n @change=${this.onCreateAttachment.bind(this)}\n ></ox-input-file>\n\n <div button-container>\n <md-elevated-button @click=${this._close}> <md-icon slot=\"icon\">cancel</md-icon>취소 </md-elevated-button>\n </div>\n </div>\n `\n }\n\n async firstUpdated() {\n this.user = (store.getState() as any).auth?.user\n\n await this._loadAttachments()\n }\n\n private async _loadAttachments() {\n const response = await client.query({\n query: gql`\n query ChecklistItem($id: String!) {\n checklistItem(id: $id) {\n id\n checklistItemAttachmentCount\n checklistItemAttachments {\n id\n name\n fullpath\n creator {\n id\n name\n email\n }\n createdAt\n }\n }\n }\n `,\n variables: {\n id: this.checklistItemId\n }\n })\n\n if (response.errors) return\n\n this.checklistItemAttachments = response.data.checklistItem.checklistItemAttachments || []\n this.checklistItemAttachmentCount = response.data.checklistItem.checklistItemAttachmentCount\n }\n\n private async _deleteAttachment(attachmentId: string) {\n if (this.status == BuildingInspectionStatus.PASS) {\n notify({ message: '완료 상태인 검측정보를 변경할 수 없습니다.', level: 'error' })\n return\n }\n\n if (\n await OxPrompt.open({\n title: '첨부 자료를 삭제',\n text: '첨부 자료를 삭제 하시겠습니까?',\n confirmButton: { text: '삭제' },\n cancelButton: { text: '취소' }\n })\n ) {\n const response = await client.mutate({\n mutation: gql`\n mutation DeleteAttachment($deleteAttachmentId: String!) {\n deleteAttachment(id: $deleteAttachmentId)\n }\n `,\n variables: {\n deleteAttachmentId: attachmentId\n }\n })\n\n if (!response.errors) {\n this.checklistItemAttachments = [...this.checklistItemAttachments.filter(attachment => attachment.id != attachmentId)]\n notify({ message: '첨부 자료를 삭제하였습니다.', level: 'info' })\n } else {\n notify({ message: response.errors?.[0]?.message || '첨부 자료 삭제에 실패하였습니다.', level: 'error' })\n }\n\n this._dispatchEvent()\n }\n }\n\n private _close() {\n history.back()\n }\n\n // 파일 변경 시 파일을 저장할 핸들러\n private async onCreateAttachment(e: CustomEvent) {\n if (this.status == BuildingInspectionStatus.PASS) {\n notify({ message: '완료 상태인 검측정보를 변경할 수 없습니다.', level: 'error' })\n return\n }\n\n const files = e.detail\n\n await this._createAttachments(files)\n\n this._dispatchEvent()\n }\n\n async _createAttachments(files: File[]) {\n const checklistItemId = this.checklistItemId\n\n const response = await client.mutate({\n mutation: gql`\n mutation ($attachments: [NewAttachment!]!) {\n createAttachments(attachments: $attachments) {\n id\n name\n fullpath\n creator {\n id\n name\n email\n }\n createdAt\n }\n }\n `,\n variables: {\n attachments: files.map(file => {\n return { file, refBy: checklistItemId, refType: 'ChecklistItem', description: this.status }\n })\n },\n context: {\n hasUpload: true\n }\n })\n\n const attachments = response.data.createAttachments\n\n this.checklistItemAttachments = [...attachments, ...this.checklistItemAttachments]\n this.checklistItemAttachmentCount = this.checklistItemAttachmentCount + attachments.length\n }\n\n private _formatDate(date) {\n const _date = new Date(date.toLocaleString('en-US', { timeZone: 'Asia/Seoul' }))\n\n const year = _date.getFullYear()\n const month = String(_date.getMonth() + 1).padStart(2, '0')\n const day = String(_date.getDate()).padStart(2, '0')\n const hours = String(_date.getHours()).padStart(2, '0')\n const minutes = String(_date.getMinutes()).padStart(2, '0')\n\n return `${year}.${month}.${day} ${hours}:${minutes}`\n }\n\n // 첨부 자료 변경 이벤트 디스패치\n _dispatchEvent() {\n this.dispatchEvent(new CustomEvent('change-attachment', { detail: { checklistItemId: this.checklistItemId } }))\n }\n\n private _onClickPreview(filepath: string) {\n if (!filepath) {\n return\n }\n\n // 파일 확장자로 타입 판단\n const fileExtension = filepath.toLowerCase().split('.').pop()\n const isImage = ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp', 'svg'].includes(fileExtension || '')\n const isPdf = fileExtension === 'pdf'\n\n if (isImage) {\n this._openImagePreview(filepath)\n } else if (isPdf) {\n this._openPdfPreview(filepath)\n } else {\n // 기타 파일은 기존 file-preview-popup 사용\n this._openGenericPreview(filepath)\n }\n }\n\n private _openImagePreview(filepath: string) {\n const imageData = this.checklistItemAttachments.filter(attachment => {\n const fileExtension = attachment.fullpath?.toLowerCase().split('.').pop()\n return ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp', 'svg'].includes(fileExtension || '')\n })\n\n const currentIndex = imageData.findIndex(attachment => attachment.fullpath === filepath)\n\n openPopup(\n html` <image-preview-popup .images=${imageData} .currentIndex=${Math.max(0, currentIndex)}></image-preview-popup> `,\n { backdrop: true, size: 'large', title: '이미지 미리보기' }\n )\n }\n\n private _openPdfPreview(filepath: string) {\n openPopup(\n html`\n <div style=\"display: flex; flex-direction: column;\">\n <div style=\"flex: 1; overflow: hidden; touch-action: pan-x pan-y;\">\n <iframe\n src=\"${filepath}#toolbar=1&navpanes=0&scrollbar=1&zoom=page-fit\"\n style=\"\n width: 100%; \n height: 100%; \n border: none; \n touch-action: pan-x pan-y;\n \"\n @error=${() => {\n // PDF 로드 실패시 새 탭에서 열기\n window.open(filepath, '_blank')\n }}\n ></iframe>\n </div>\n </div>\n `,\n { backdrop: true, size: 'large', title: '[PDF 미리보기]' }\n )\n }\n\n // 기타 파일 타입은 기존 방식 사용\n private _openGenericPreview(filepath: string) {\n openPopup(html` <file-preview-popup .filepath=${filepath}></file-preview-popup> `, {\n backdrop: true,\n size: 'large',\n title: '미리보기'\n })\n }\n}\n"]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import '@material/web/fab/fab.js';
|
|
2
|
-
import '@material/web/icon/icon.js';
|
|
3
|
-
import '@operato/input/ox-input-signature.js';
|
|
4
|
-
import './comment-list-popup';
|
|
5
|
-
import './attachment-list-popup';
|
|
6
|
-
import './kcs-criteria-popup';
|
|
7
|
-
import '../../stt/speech-to-text';
|
|
8
|
-
export declare const enum ProjectType {
|
|
9
|
-
DSSP = "DSSP",
|
|
10
|
-
DCSP = "DCSP",
|
|
11
|
-
DKPI = "DKPI"
|
|
12
|
-
}
|
|
13
|
-
export declare const enum ChecklistMode {
|
|
14
|
-
VIEWER = "VIEWER",
|
|
15
|
-
EDITOR = "EDITOR"
|
|
16
|
-
}
|