@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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dssp/supervision",
|
|
3
|
-
"version": "1.0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "dist-client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -27,19 +27,20 @@
|
|
|
27
27
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
+
"@aws-sdk/client-s3": "^3.1085.0",
|
|
30
31
|
"@aws-sdk/s3-request-presigner": "3.1085.0",
|
|
31
|
-
"@dssp/building-complex": "^1.0.0
|
|
32
|
-
"@dssp/drawing": "^1.0.0
|
|
33
|
-
"@operato/event-view": "^10.0.0
|
|
34
|
-
"@operato/graphql": "^10.0.0
|
|
35
|
-
"@operato/image-marker": "^10.0.0
|
|
36
|
-
"@operato/input": "^10.0.0
|
|
37
|
-
"@operato/mini-map": "^10.0.0
|
|
38
|
-
"@operato/shell": "^10.0.0
|
|
39
|
-
"@things-factory/auth-base": "^10.0.0
|
|
40
|
-
"@things-factory/shell": "^10.0.0
|
|
32
|
+
"@dssp/building-complex": "^1.0.0",
|
|
33
|
+
"@dssp/drawing": "^1.0.0",
|
|
34
|
+
"@operato/event-view": "^10.0.0",
|
|
35
|
+
"@operato/graphql": "^10.0.0",
|
|
36
|
+
"@operato/image-marker": "^10.0.0",
|
|
37
|
+
"@operato/input": "^10.0.0",
|
|
38
|
+
"@operato/mini-map": "^10.0.0",
|
|
39
|
+
"@operato/shell": "^10.0.0",
|
|
40
|
+
"@things-factory/auth-base": "^10.0.0",
|
|
41
|
+
"@things-factory/shell": "^10.0.0",
|
|
41
42
|
"html2canvas": "1.4.1",
|
|
42
43
|
"moment": "2.30.1"
|
|
43
44
|
},
|
|
44
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "a41eaae7a2e1651af65e8f285e95073b921b9c91"
|
|
45
46
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function bootstrap(): void;
|
package/dist-client/bootstrap.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../client/bootstrap.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,SAAS,KAAI,CAAC","sourcesContent":["export default function bootstrap() {}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getBuildingInspectionForChecklist(buildingInspectionId?: string): Promise<any>;
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { client } from '@operato/graphql';
|
|
2
|
-
import { gql } from '@apollo/client';
|
|
3
|
-
export async function getBuildingInspectionForChecklist(buildingInspectionId = '') {
|
|
4
|
-
if (!buildingInspectionId)
|
|
5
|
-
return null;
|
|
6
|
-
const response = await client.query({
|
|
7
|
-
query: gql `
|
|
8
|
-
query BuildingInspection($buildingInspectionId: String!) {
|
|
9
|
-
buildingInspection(id: $buildingInspectionId) {
|
|
10
|
-
id
|
|
11
|
-
status
|
|
12
|
-
failCount
|
|
13
|
-
requestDate
|
|
14
|
-
memo
|
|
15
|
-
checklist {
|
|
16
|
-
id
|
|
17
|
-
name
|
|
18
|
-
constructionType
|
|
19
|
-
constructionDetailType
|
|
20
|
-
location
|
|
21
|
-
inspectionParts
|
|
22
|
-
documentNo
|
|
23
|
-
inspectionRequestDocumentNo
|
|
24
|
-
inspectionRequestMemo
|
|
25
|
-
inspectionRequestUpdatedAt
|
|
26
|
-
inspectionResultDocumentNo
|
|
27
|
-
inspectionResultStatus
|
|
28
|
-
inspectionResultType
|
|
29
|
-
inspectionResultMemo
|
|
30
|
-
inspectionResultUpdatedAt
|
|
31
|
-
constructionInspectionDate
|
|
32
|
-
supervisorInspectionDate
|
|
33
|
-
overallConstructorSignature
|
|
34
|
-
taskConstructorSignature
|
|
35
|
-
overallSupervisorySignature
|
|
36
|
-
taskSupervisorySignature
|
|
37
|
-
nameListAttachment {
|
|
38
|
-
id
|
|
39
|
-
name
|
|
40
|
-
fullpath
|
|
41
|
-
}
|
|
42
|
-
taskConstructor {
|
|
43
|
-
id
|
|
44
|
-
name
|
|
45
|
-
}
|
|
46
|
-
overallConstructor {
|
|
47
|
-
id
|
|
48
|
-
name
|
|
49
|
-
}
|
|
50
|
-
taskSupervisory {
|
|
51
|
-
id
|
|
52
|
-
name
|
|
53
|
-
}
|
|
54
|
-
overallSupervisory {
|
|
55
|
-
id
|
|
56
|
-
name
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
checklistItems {
|
|
60
|
-
id
|
|
61
|
-
name
|
|
62
|
-
sequence
|
|
63
|
-
mainType
|
|
64
|
-
detailType
|
|
65
|
-
kcsCriteria
|
|
66
|
-
siteSpecCriteria
|
|
67
|
-
constructionConfirmStatus
|
|
68
|
-
supervisoryConfirmStatus
|
|
69
|
-
checklistItemCommentCount
|
|
70
|
-
checklistItemAttachmentCount
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
buildingLevel {
|
|
75
|
-
id
|
|
76
|
-
floor
|
|
77
|
-
|
|
78
|
-
building {
|
|
79
|
-
id
|
|
80
|
-
buildingComplex {
|
|
81
|
-
id
|
|
82
|
-
overallConstructorEmails
|
|
83
|
-
taskConstructorEmails
|
|
84
|
-
overallSupervisoryEmails
|
|
85
|
-
taskSupervisoryEmails
|
|
86
|
-
supervisoryCompany
|
|
87
|
-
constructionCompany
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
`,
|
|
94
|
-
variables: {
|
|
95
|
-
buildingInspectionId
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
if (response.errors)
|
|
99
|
-
return null;
|
|
100
|
-
return response.data.buildingInspection;
|
|
101
|
-
}
|
|
102
|
-
//# sourceMappingURL=building-inspection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"building-inspection.js","sourceRoot":"","sources":["../../client/graphql/building-inspection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAEpC,MAAM,CAAC,KAAK,UAAU,iCAAiC,CAAC,uBAA+B,EAAE;IACvF,IAAI,CAAC,oBAAoB;QAAE,OAAO,IAAI,CAAA;IAEtC,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC;QAClC,KAAK,EAAE,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAsFT;QACD,SAAS,EAAE;YACT,oBAAoB;SACrB;KACF,CAAC,CAAA;IAEF,IAAI,QAAQ,CAAC,MAAM;QAAE,OAAO,IAAI,CAAA;IAEhC,OAAO,QAAQ,CAAC,IAAI,CAAC,kBAAkB,CAAA;AACzC,CAAC","sourcesContent":["import { client } from '@operato/graphql'\nimport { gql } from '@apollo/client'\n\nexport async function getBuildingInspectionForChecklist(buildingInspectionId: string = '') {\n if (!buildingInspectionId) return null\n\n const response = await client.query({\n query: gql`\n query BuildingInspection($buildingInspectionId: String!) {\n buildingInspection(id: $buildingInspectionId) {\n id\n status\n failCount\n requestDate\n memo\n checklist {\n id\n name\n constructionType\n constructionDetailType\n location\n inspectionParts\n documentNo\n inspectionRequestDocumentNo\n inspectionRequestMemo\n inspectionRequestUpdatedAt\n inspectionResultDocumentNo\n inspectionResultStatus\n inspectionResultType\n inspectionResultMemo\n inspectionResultUpdatedAt\n constructionInspectionDate\n supervisorInspectionDate\n overallConstructorSignature\n taskConstructorSignature\n overallSupervisorySignature\n taskSupervisorySignature\n nameListAttachment {\n id\n name\n fullpath\n }\n taskConstructor {\n id\n name\n }\n overallConstructor {\n id\n name\n }\n taskSupervisory {\n id\n name\n }\n overallSupervisory {\n id\n name\n }\n\n checklistItems {\n id\n name\n sequence\n mainType\n detailType\n kcsCriteria\n siteSpecCriteria\n constructionConfirmStatus\n supervisoryConfirmStatus\n checklistItemCommentCount\n checklistItemAttachmentCount\n }\n }\n\n buildingLevel {\n id\n floor\n\n building {\n id\n buildingComplex {\n id\n overallConstructorEmails\n taskConstructorEmails\n overallSupervisoryEmails\n taskSupervisoryEmails\n supervisoryCompany\n constructionCompany\n }\n }\n }\n }\n }\n `,\n variables: {\n buildingInspectionId\n }\n })\n\n if (response.errors) return null\n\n return response.data.buildingInspection\n}\n"]}
|
package/dist-client/index.d.ts
DELETED
|
File without changes
|
package/dist-client/index.js
DELETED
package/dist-client/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../client/index.ts"],"names":[],"mappings":"","sourcesContent":[""]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import '@material/web/button/elevated-button.js';
|
|
2
|
-
import '@operato/data-grist';
|
|
3
|
-
import { LitElement } from 'lit';
|
|
4
|
-
export declare class ActionPlanImporter extends LitElement {
|
|
5
|
-
static styles: import("lit").CSSResult[];
|
|
6
|
-
private actionPlans;
|
|
7
|
-
private columns;
|
|
8
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
9
|
-
private save;
|
|
10
|
-
}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import '@material/web/button/elevated-button.js';
|
|
3
|
-
import '@operato/data-grist';
|
|
4
|
-
import gql from 'graphql-tag';
|
|
5
|
-
import { css, html, LitElement } from 'lit';
|
|
6
|
-
import { state } from 'lit/decorators.js';
|
|
7
|
-
import { client } from '@operato/graphql';
|
|
8
|
-
import { i18next } from '@operato/i18n';
|
|
9
|
-
import { isMobileDevice } from '@operato/utils';
|
|
10
|
-
export class ActionPlanImporter extends LitElement {
|
|
11
|
-
constructor() {
|
|
12
|
-
super(...arguments);
|
|
13
|
-
this.actionPlans = [];
|
|
14
|
-
this.columns = {
|
|
15
|
-
list: { fields: ['name', 'description'] },
|
|
16
|
-
pagination: { infinite: true },
|
|
17
|
-
columns: [
|
|
18
|
-
{
|
|
19
|
-
type: 'string',
|
|
20
|
-
name: 'name',
|
|
21
|
-
header: i18next.t('field.name'),
|
|
22
|
-
width: 150
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
type: 'string',
|
|
26
|
-
name: 'description',
|
|
27
|
-
header: i18next.t('field.description'),
|
|
28
|
-
width: 200
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
type: 'checkbox',
|
|
32
|
-
name: 'active',
|
|
33
|
-
header: i18next.t('field.active'),
|
|
34
|
-
width: 60
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
render() {
|
|
40
|
-
return html `
|
|
41
|
-
<ox-grist
|
|
42
|
-
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
43
|
-
.config=${this.columns}
|
|
44
|
-
.data=${{
|
|
45
|
-
records: this.actionPlans
|
|
46
|
-
}}
|
|
47
|
-
></ox-grist>
|
|
48
|
-
|
|
49
|
-
<div class="button-container">
|
|
50
|
-
<md-elevated-button raised @click="${this.save.bind(this)}">${i18next.t('button.save')}</md-elevated-button>
|
|
51
|
-
</div>
|
|
52
|
-
`;
|
|
53
|
-
}
|
|
54
|
-
async save() {
|
|
55
|
-
var _a;
|
|
56
|
-
const response = await client.mutate({
|
|
57
|
-
mutation: gql `
|
|
58
|
-
mutation importActionPlans($actionPlans: [ActionPlanPatch!]!) {
|
|
59
|
-
importActionPlans(actionPlans: $actionPlans)
|
|
60
|
-
}
|
|
61
|
-
`,
|
|
62
|
-
variables: { actionPlans: this.actionPlans }
|
|
63
|
-
});
|
|
64
|
-
if ((_a = response.errors) === null || _a === void 0 ? void 0 : _a.length)
|
|
65
|
-
return;
|
|
66
|
-
this.dispatchEvent(new CustomEvent('imported'));
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
ActionPlanImporter.styles = [
|
|
70
|
-
css `
|
|
71
|
-
:host {
|
|
72
|
-
display: flex;
|
|
73
|
-
flex-direction: column;
|
|
74
|
-
|
|
75
|
-
background-color: #fff;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
ox-grist {
|
|
79
|
-
flex: 1;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.button-container {
|
|
83
|
-
display: flex;
|
|
84
|
-
margin-left: auto;
|
|
85
|
-
padding: var(--padding-default);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
md-elevated-button {
|
|
89
|
-
margin-left: var(--margin-default);
|
|
90
|
-
}
|
|
91
|
-
`
|
|
92
|
-
];
|
|
93
|
-
__decorate([
|
|
94
|
-
state(),
|
|
95
|
-
__metadata("design:type", Array)
|
|
96
|
-
], ActionPlanImporter.prototype, "actionPlans", void 0);
|
|
97
|
-
__decorate([
|
|
98
|
-
state(),
|
|
99
|
-
__metadata("design:type", Object)
|
|
100
|
-
], ActionPlanImporter.prototype, "columns", void 0);
|
|
101
|
-
//# sourceMappingURL=action-plan-importer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"action-plan-importer.js","sourceRoot":"","sources":["../../../client/pages/action-plan/action-plan-importer.ts"],"names":[],"mappings":";AAAA,OAAO,yCAAyC,CAAA;AAChD,OAAO,qBAAqB,CAAA;AAE5B,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAY,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAEnD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAE/C,MAAM,OAAO,kBAAmB,SAAQ,UAAU;IAAlD;;QA0BmB,gBAAW,GAAU,EAAE,CAAA;QACvB,YAAO,GAAG;YACzB,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC,EAAE;YACzC,UAAU,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC9B,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,MAAM;oBACZ,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC;oBAC/B,KAAK,EAAE,GAAG;iBACX;gBACD;oBACE,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,aAAa;oBACnB,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,mBAAmB,CAAC;oBACtC,KAAK,EAAE,GAAG;iBACX;gBACD;oBACE,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,QAAQ;oBACd,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC;oBACjC,KAAK,EAAE,EAAE;iBACV;aACF;SACF,CAAA;IAgCH,CAAC;IA9BC,MAAM;QACJ,OAAO,IAAI,CAAA;;gBAEC,cAAc,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM;kBAChC,IAAI,CAAC,OAAO;gBACd;YACN,OAAO,EAAE,IAAI,CAAC,WAAW;SAC1B;;;;6CAIoC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC;;KAEzF,CAAA;IACH,CAAC;IAEO,KAAK,CAAC,IAAI;;QAChB,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC;YACnC,QAAQ,EAAE,GAAG,CAAA;;;;OAIZ;YACD,SAAS,EAAE,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE;SAC7C,CAAC,CAAA;QAEF,IAAI,MAAA,QAAQ,CAAC,MAAM,0CAAE,MAAM;YAAE,OAAM;QAEnC,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,UAAU,CAAC,CAAC,CAAA;IACjD,CAAC;;AAhFM,yBAAM,GAAG;IACd,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;KAqBF;CACF,AAvBY,CAuBZ;AAEgB;IAAhB,KAAK,EAAE;;uDAAgC;AACvB;IAAhB,KAAK,EAAE;;mDAuBP","sourcesContent":["import '@material/web/button/elevated-button.js'\nimport '@operato/data-grist'\n\nimport gql from 'graphql-tag'\nimport { css, html, LitElement } from 'lit'\nimport { property, state } from 'lit/decorators.js'\n\nimport { client } from '@operato/graphql'\nimport { i18next } from '@operato/i18n'\nimport { isMobileDevice } from '@operato/utils'\n\nexport class ActionPlanImporter extends LitElement {\n static styles = [\n css`\n :host {\n display: flex;\n flex-direction: column;\n\n background-color: #fff;\n }\n\n ox-grist {\n flex: 1;\n }\n\n .button-container {\n display: flex;\n margin-left: auto;\n padding: var(--padding-default);\n }\n\n md-elevated-button {\n margin-left: var(--margin-default);\n }\n `\n ]\n\n @state() private actionPlans: any[] = []\n @state() private columns = {\n list: { fields: ['name', 'description'] },\n pagination: { infinite: true },\n columns: [\n {\n type: 'string',\n name: 'name',\n header: i18next.t('field.name'),\n width: 150\n },\n {\n type: 'string',\n name: 'description',\n header: i18next.t('field.description'),\n width: 200\n },\n {\n type: 'checkbox',\n name: 'active',\n header: i18next.t('field.active'),\n width: 60\n }\n ]\n }\n\n render() {\n return html`\n <ox-grist\n .mode=${isMobileDevice() ? 'LIST' : 'GRID'}\n .config=${this.columns}\n .data=${{\n records: this.actionPlans\n }}\n ></ox-grist>\n\n <div class=\"button-container\">\n <md-elevated-button raised @click=\"${this.save.bind(this)}\">${i18next.t('button.save')}</md-elevated-button>\n </div>\n `\n }\n\n private async save() {\n const response = await client.mutate({\n mutation: gql`\n mutation importActionPlans($actionPlans: [ActionPlanPatch!]!) {\n importActionPlans(actionPlans: $actionPlans)\n }\n `,\n variables: { actionPlans: this.actionPlans }\n })\n\n if (response.errors?.length) return\n\n this.dispatchEvent(new CustomEvent('imported'))\n }\n}\n"]}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import '@material/web/icon/icon.js';
|
|
2
|
-
import '@operato/data-grist';
|
|
3
|
-
import { PageView } from '@operato/shell';
|
|
4
|
-
import { FetchOption } from '@operato/data-grist';
|
|
5
|
-
import { ActionPlanImporter } from './action-plan-importer';
|
|
6
|
-
declare const ActionPlanListPage_base: (new (...args: any[]) => {
|
|
7
|
-
_storeUnsubscribe: () => void;
|
|
8
|
-
connectedCallback(): void;
|
|
9
|
-
disconnectedCallback(): void;
|
|
10
|
-
stateChanged(_state: unknown): void;
|
|
11
|
-
}) & (new (...args: any[]) => import("lit").LitElement) & typeof PageView & import("@open-wc/dedupe-mixin").Constructor<import("@open-wc/scoped-elements/types/src/types").ScopedElementsHost>;
|
|
12
|
-
export declare class ActionPlanListPage extends ActionPlanListPage_base {
|
|
13
|
-
static styles: import("lit").CSSResult[];
|
|
14
|
-
static get scopedElements(): {
|
|
15
|
-
'action-plan-importer': typeof ActionPlanImporter;
|
|
16
|
-
};
|
|
17
|
-
private gristConfig;
|
|
18
|
-
private mode;
|
|
19
|
-
private grist;
|
|
20
|
-
private sortersControl;
|
|
21
|
-
get context(): {
|
|
22
|
-
title: string;
|
|
23
|
-
search: {
|
|
24
|
-
handler: (search: string) => void;
|
|
25
|
-
value: string;
|
|
26
|
-
};
|
|
27
|
-
filter: {
|
|
28
|
-
handler: () => void;
|
|
29
|
-
};
|
|
30
|
-
help: string;
|
|
31
|
-
actions: {
|
|
32
|
-
icon: string;
|
|
33
|
-
emphasis: {
|
|
34
|
-
raised: boolean;
|
|
35
|
-
outlined: boolean;
|
|
36
|
-
dense: boolean;
|
|
37
|
-
danger: boolean;
|
|
38
|
-
};
|
|
39
|
-
title: string;
|
|
40
|
-
action: () => Promise<void>;
|
|
41
|
-
}[];
|
|
42
|
-
exportable: {
|
|
43
|
-
name: string;
|
|
44
|
-
data: () => Promise<{}[]>;
|
|
45
|
-
};
|
|
46
|
-
importable: {
|
|
47
|
-
handler: (records: any) => Promise<void>;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
51
|
-
pageInitialized(lifecycle: any): Promise<void>;
|
|
52
|
-
pageUpdated(changes: any, lifecycle: any): Promise<void>;
|
|
53
|
-
fetchHandler({ page, limit, sortings, filters }: FetchOption): Promise<{
|
|
54
|
-
total: any;
|
|
55
|
-
records: any;
|
|
56
|
-
}>;
|
|
57
|
-
private deleteActionPlan;
|
|
58
|
-
private updateActionPlan;
|
|
59
|
-
private exportHandler;
|
|
60
|
-
private importHandler;
|
|
61
|
-
}
|
|
62
|
-
export {};
|
|
@@ -1,322 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import '@material/web/icon/icon.js';
|
|
3
|
-
import '@operato/data-grist';
|
|
4
|
-
import { CommonButtonStyles, CommonGristStyles, ScrollbarStyles } from '@operato/styles';
|
|
5
|
-
import { PageView, store, connect } from '@operato/shell';
|
|
6
|
-
import { css, html } from 'lit';
|
|
7
|
-
import { customElement, query, state } from 'lit/decorators.js';
|
|
8
|
-
import { ScopedElementsMixin } from '@open-wc/scoped-elements';
|
|
9
|
-
import { DataGrist } from '@operato/data-grist';
|
|
10
|
-
import { client } from '@operato/graphql';
|
|
11
|
-
import { i18next, localize } from '@operato/i18n';
|
|
12
|
-
import { notify, openPopup } from '@operato/layout';
|
|
13
|
-
import { OxPopup, OxPrompt } from '@operato/popup';
|
|
14
|
-
import { isMobileDevice } from '@operato/utils';
|
|
15
|
-
import gql from 'graphql-tag';
|
|
16
|
-
import { ActionPlanImporter } from './action-plan-importer';
|
|
17
|
-
let ActionPlanListPage = class ActionPlanListPage extends connect(store)(localize(i18next)(ScopedElementsMixin(PageView))) {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(...arguments);
|
|
20
|
-
this.mode = isMobileDevice() ? 'CARD' : 'GRID';
|
|
21
|
-
}
|
|
22
|
-
static get scopedElements() {
|
|
23
|
-
return {
|
|
24
|
-
'action-plan-importer': ActionPlanImporter
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
get context() {
|
|
28
|
-
return {
|
|
29
|
-
title: i18next.t('title.action-plan list'),
|
|
30
|
-
search: {
|
|
31
|
-
handler: (search) => {
|
|
32
|
-
this.grist.searchText = search;
|
|
33
|
-
},
|
|
34
|
-
value: this.grist.searchText
|
|
35
|
-
},
|
|
36
|
-
filter: {
|
|
37
|
-
handler: () => {
|
|
38
|
-
this.grist.toggleHeadroom();
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
help: 'supervision/action-plan',
|
|
42
|
-
actions: [
|
|
43
|
-
Object.assign({ title: i18next.t('button.save'), action: this.updateActionPlan.bind(this) }, CommonButtonStyles.save),
|
|
44
|
-
Object.assign({ title: i18next.t('button.delete'), action: this.deleteActionPlan.bind(this) }, CommonButtonStyles.delete)
|
|
45
|
-
],
|
|
46
|
-
exportable: {
|
|
47
|
-
name: i18next.t('title.action-plan list'),
|
|
48
|
-
data: this.exportHandler.bind(this)
|
|
49
|
-
},
|
|
50
|
-
importable: {
|
|
51
|
-
handler: this.importHandler.bind(this)
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
render() {
|
|
56
|
-
const mode = this.mode || (isMobileDevice() ? 'CARD' : 'GRID');
|
|
57
|
-
return html `
|
|
58
|
-
<ox-grist .mode=${mode} .config=${this.gristConfig} .fetchHandler=${this.fetchHandler.bind(this)}>
|
|
59
|
-
<div slot="headroom">
|
|
60
|
-
<div id="filters">
|
|
61
|
-
<ox-filters-form autofocus></ox-filters-form>
|
|
62
|
-
</div>
|
|
63
|
-
|
|
64
|
-
<div id="sorters">
|
|
65
|
-
Sort
|
|
66
|
-
<md-icon
|
|
67
|
-
@click=${e => {
|
|
68
|
-
const target = e.currentTarget;
|
|
69
|
-
this.sortersControl.open({
|
|
70
|
-
right: 0,
|
|
71
|
-
top: target.offsetTop + target.offsetHeight
|
|
72
|
-
});
|
|
73
|
-
}}
|
|
74
|
-
>expand_more</md-icon
|
|
75
|
-
>
|
|
76
|
-
<ox-popup id="sorter-control">
|
|
77
|
-
<ox-sorters-control> </ox-sorters-control>
|
|
78
|
-
</ox-popup>
|
|
79
|
-
</div>
|
|
80
|
-
|
|
81
|
-
<div id="modes">
|
|
82
|
-
<md-icon @click=${() => (this.mode = 'GRID')} ?active=${mode == 'GRID'}>grid_on</md-icon>
|
|
83
|
-
<md-icon @click=${() => (this.mode = 'LIST')} ?active=${mode == 'LIST'}>format_list_bulleted</md-icon>
|
|
84
|
-
<md-icon @click=${() => (this.mode = 'CARD')} ?active=${mode == 'CARD'}>apps</md-icon>
|
|
85
|
-
</div>
|
|
86
|
-
</div>
|
|
87
|
-
</ox-grist>
|
|
88
|
-
`;
|
|
89
|
-
}
|
|
90
|
-
async pageInitialized(lifecycle) {
|
|
91
|
-
this.gristConfig = {
|
|
92
|
-
list: {
|
|
93
|
-
fields: ['name', 'description'],
|
|
94
|
-
details: ['active', 'updatedAt']
|
|
95
|
-
},
|
|
96
|
-
columns: [
|
|
97
|
-
{ type: 'gutter', gutterName: 'sequence' },
|
|
98
|
-
{ type: 'gutter', gutterName: 'row-selector', multiple: true },
|
|
99
|
-
{
|
|
100
|
-
type: 'string',
|
|
101
|
-
name: 'name',
|
|
102
|
-
header: i18next.t('field.name'),
|
|
103
|
-
record: {
|
|
104
|
-
editable: true
|
|
105
|
-
},
|
|
106
|
-
filter: 'search',
|
|
107
|
-
sortable: true,
|
|
108
|
-
width: 150
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
type: 'string',
|
|
112
|
-
name: 'description',
|
|
113
|
-
header: i18next.t('field.description'),
|
|
114
|
-
record: {
|
|
115
|
-
editable: true
|
|
116
|
-
},
|
|
117
|
-
filter: 'search',
|
|
118
|
-
width: 200
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
type: 'checkbox',
|
|
122
|
-
name: 'active',
|
|
123
|
-
label: true,
|
|
124
|
-
header: i18next.t('field.active'),
|
|
125
|
-
record: {
|
|
126
|
-
editable: true
|
|
127
|
-
},
|
|
128
|
-
filter: true,
|
|
129
|
-
sortable: true,
|
|
130
|
-
width: 60
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
type: 'resource-object',
|
|
134
|
-
name: 'updater',
|
|
135
|
-
header: i18next.t('field.updater'),
|
|
136
|
-
record: {
|
|
137
|
-
editable: false
|
|
138
|
-
},
|
|
139
|
-
sortable: true,
|
|
140
|
-
width: 120
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
type: 'datetime',
|
|
144
|
-
name: 'updatedAt',
|
|
145
|
-
header: i18next.t('field.updated_at'),
|
|
146
|
-
record: {
|
|
147
|
-
editable: false
|
|
148
|
-
},
|
|
149
|
-
sortable: true,
|
|
150
|
-
width: 180
|
|
151
|
-
}
|
|
152
|
-
],
|
|
153
|
-
rows: {
|
|
154
|
-
selectable: {
|
|
155
|
-
multiple: true
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
sorters: [
|
|
159
|
-
{
|
|
160
|
-
name: 'name'
|
|
161
|
-
}
|
|
162
|
-
]
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
async pageUpdated(changes, lifecycle) {
|
|
166
|
-
if (this.active) {
|
|
167
|
-
// do something here when this page just became as active
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
async fetchHandler({ page = 1, limit = 100, sortings = [], filters = [] }) {
|
|
171
|
-
const response = await client.query({
|
|
172
|
-
query: gql `
|
|
173
|
-
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
174
|
-
responses: actionPlans(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
175
|
-
items {
|
|
176
|
-
id
|
|
177
|
-
name
|
|
178
|
-
description
|
|
179
|
-
active
|
|
180
|
-
updater {
|
|
181
|
-
id
|
|
182
|
-
name
|
|
183
|
-
}
|
|
184
|
-
updatedAt
|
|
185
|
-
}
|
|
186
|
-
total
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
`,
|
|
190
|
-
variables: {
|
|
191
|
-
filters,
|
|
192
|
-
pagination: { page, limit },
|
|
193
|
-
sortings
|
|
194
|
-
}
|
|
195
|
-
});
|
|
196
|
-
return {
|
|
197
|
-
total: response.data.responses.total || 0,
|
|
198
|
-
records: response.data.responses.items || []
|
|
199
|
-
};
|
|
200
|
-
}
|
|
201
|
-
async deleteActionPlan() {
|
|
202
|
-
if (await OxPrompt.open({
|
|
203
|
-
title: i18next.t('text.are_you_sure'),
|
|
204
|
-
text: i18next.t('text.sure_to_x', { x: i18next.t('text.delete') }),
|
|
205
|
-
confirmButton: { text: i18next.t('button.confirm') },
|
|
206
|
-
cancelButton: { text: i18next.t('button.cancel') }
|
|
207
|
-
})) {
|
|
208
|
-
const ids = this.grist.selected.map(record => record.id);
|
|
209
|
-
if (ids && ids.length > 0) {
|
|
210
|
-
const response = await client.mutate({
|
|
211
|
-
mutation: gql `
|
|
212
|
-
mutation ($ids: [String!]!) {
|
|
213
|
-
deleteActionPlans(ids: $ids)
|
|
214
|
-
}
|
|
215
|
-
`,
|
|
216
|
-
variables: {
|
|
217
|
-
ids
|
|
218
|
-
}
|
|
219
|
-
});
|
|
220
|
-
if (!response.errors) {
|
|
221
|
-
this.grist.fetch();
|
|
222
|
-
notify({
|
|
223
|
-
message: i18next.t('text.info_x_successfully', { x: i18next.t('text.delete') })
|
|
224
|
-
});
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
async updateActionPlan() {
|
|
230
|
-
let patches = this.grist.dirtyRecords;
|
|
231
|
-
if (patches && patches.length) {
|
|
232
|
-
patches = patches.map(patch => {
|
|
233
|
-
let patchField = patch.id ? { id: patch.id } : {};
|
|
234
|
-
const dirtyFields = patch.__dirtyfields__;
|
|
235
|
-
for (let key in dirtyFields) {
|
|
236
|
-
patchField[key] = dirtyFields[key].after;
|
|
237
|
-
}
|
|
238
|
-
patchField.cuFlag = patch.__dirty__;
|
|
239
|
-
return patchField;
|
|
240
|
-
});
|
|
241
|
-
const response = await client.mutate({
|
|
242
|
-
mutation: gql `
|
|
243
|
-
mutation ($patches: [ActionPlanPatch!]!) {
|
|
244
|
-
updateMultipleActionPlan(patches: $patches) {
|
|
245
|
-
name
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
`,
|
|
249
|
-
variables: {
|
|
250
|
-
patches
|
|
251
|
-
}
|
|
252
|
-
});
|
|
253
|
-
if (!response.errors) {
|
|
254
|
-
this.grist.fetch();
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
async exportHandler() {
|
|
259
|
-
const exportTargets = this.grist.selected.length ? this.grist.selected : this.grist.dirtyData.records;
|
|
260
|
-
const targetFieldSet = new Set(['id', 'name', 'description', 'active']);
|
|
261
|
-
return exportTargets.map(actionPlan => {
|
|
262
|
-
let tempObj = {};
|
|
263
|
-
for (const field of targetFieldSet) {
|
|
264
|
-
tempObj[field] = actionPlan[field];
|
|
265
|
-
}
|
|
266
|
-
return tempObj;
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
|
-
async importHandler(records) {
|
|
270
|
-
const popup = openPopup(html `
|
|
271
|
-
<action-plan-importer
|
|
272
|
-
.actionPlans=${records}
|
|
273
|
-
@imported=${() => {
|
|
274
|
-
history.back();
|
|
275
|
-
this.grist.fetch();
|
|
276
|
-
}}
|
|
277
|
-
></action-plan-importer>
|
|
278
|
-
`, {
|
|
279
|
-
backdrop: true,
|
|
280
|
-
size: 'large',
|
|
281
|
-
title: i18next.t('title.import action-plan')
|
|
282
|
-
});
|
|
283
|
-
popup.onclosed = () => {
|
|
284
|
-
this.grist.fetch();
|
|
285
|
-
};
|
|
286
|
-
}
|
|
287
|
-
};
|
|
288
|
-
ActionPlanListPage.styles = [
|
|
289
|
-
ScrollbarStyles,
|
|
290
|
-
CommonGristStyles,
|
|
291
|
-
css `
|
|
292
|
-
:host {
|
|
293
|
-
display: flex;
|
|
294
|
-
|
|
295
|
-
width: 100%;
|
|
296
|
-
|
|
297
|
-
--grid-record-emphasized-background-color: red;
|
|
298
|
-
--grid-record-emphasized-color: yellow;
|
|
299
|
-
}
|
|
300
|
-
`
|
|
301
|
-
];
|
|
302
|
-
__decorate([
|
|
303
|
-
state(),
|
|
304
|
-
__metadata("design:type", Object)
|
|
305
|
-
], ActionPlanListPage.prototype, "gristConfig", void 0);
|
|
306
|
-
__decorate([
|
|
307
|
-
state(),
|
|
308
|
-
__metadata("design:type", String)
|
|
309
|
-
], ActionPlanListPage.prototype, "mode", void 0);
|
|
310
|
-
__decorate([
|
|
311
|
-
query('ox-grist'),
|
|
312
|
-
__metadata("design:type", DataGrist)
|
|
313
|
-
], ActionPlanListPage.prototype, "grist", void 0);
|
|
314
|
-
__decorate([
|
|
315
|
-
query('#sorter-control'),
|
|
316
|
-
__metadata("design:type", OxPopup)
|
|
317
|
-
], ActionPlanListPage.prototype, "sortersControl", void 0);
|
|
318
|
-
ActionPlanListPage = __decorate([
|
|
319
|
-
customElement('action-plan-list-page')
|
|
320
|
-
], ActionPlanListPage);
|
|
321
|
-
export { ActionPlanListPage };
|
|
322
|
-
//# sourceMappingURL=action-plan-list-page.js.map
|