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