@dssp/supervision 1.0.0-alpha.0 → 1.0.0-alpha.100

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 (540) hide show
  1. package/dist-client/graphql/building-inspection.d.ts +1 -0
  2. package/dist-client/graphql/building-inspection.js +102 -0
  3. package/dist-client/graphql/building-inspection.js.map +1 -0
  4. package/dist-client/pages/action-plan/action-plan-importer.js.map +1 -1
  5. package/dist-client/pages/action-plan/action-plan-list-page.d.ts +1 -2
  6. package/dist-client/pages/action-plan/action-plan-list-page.js +1 -2
  7. package/dist-client/pages/action-plan/action-plan-list-page.js.map +1 -1
  8. package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.d.ts +22 -0
  9. package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js +171 -0
  10. package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js.map +1 -0
  11. package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.d.ts +71 -0
  12. package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js +1407 -0
  13. package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js.map +1 -0
  14. package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement_old_ai.d.ts +59 -0
  15. package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement_old_ai.js +868 -0
  16. package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement_old_ai.js.map +1 -0
  17. package/dist-client/pages/building-inspection/building-inspection-detail-camera.d.ts +8 -6
  18. package/dist-client/pages/building-inspection/building-inspection-detail-camera.js +116 -65
  19. package/dist-client/pages/building-inspection/building-inspection-detail-camera.js.map +1 -1
  20. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.d.ts +11 -0
  21. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js +148 -73
  22. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js.map +1 -1
  23. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.d.ts +1 -1
  24. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js +94 -25
  25. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js.map +1 -1
  26. package/dist-client/pages/building-inspection/building-inspection-list.d.ts +28 -4
  27. package/dist-client/pages/building-inspection/building-inspection-list.js +377 -35
  28. package/dist-client/pages/building-inspection/building-inspection-list.js.map +1 -1
  29. package/dist-client/pages/building-inspection/building-inspection-management.d.ts +82 -0
  30. package/dist-client/pages/building-inspection/building-inspection-management.js +1527 -0
  31. package/dist-client/pages/building-inspection/building-inspection-management.js.map +1 -0
  32. package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js +46 -14
  33. package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js.map +1 -1
  34. package/dist-client/pages/building-inspection/component/daily-worklog-popup.d.ts +27 -0
  35. package/dist-client/pages/building-inspection/component/daily-worklog-popup.js +542 -0
  36. package/dist-client/pages/building-inspection/component/daily-worklog-popup.js.map +1 -0
  37. package/dist-client/pages/building-inspection/component/field-document/field-document-constants.d.ts +18 -0
  38. package/dist-client/pages/building-inspection/component/field-document/field-document-constants.js +630 -0
  39. package/dist-client/pages/building-inspection/component/field-document/field-document-constants.js.map +1 -0
  40. package/dist-client/pages/building-inspection/component/field-document/field-document-detail-popup.d.ts +10 -0
  41. package/dist-client/pages/building-inspection/component/field-document/field-document-detail-popup.js +219 -0
  42. package/dist-client/pages/building-inspection/component/field-document/field-document-detail-popup.js.map +1 -0
  43. package/dist-client/pages/building-inspection/component/field-document/field-document-list-panel.d.ts +25 -0
  44. package/dist-client/pages/building-inspection/component/field-document/field-document-list-panel.js +546 -0
  45. package/dist-client/pages/building-inspection/component/field-document/field-document-list-panel.js.map +1 -0
  46. package/dist-client/pages/building-inspection/component/field-document/field-document-popup.d.ts +42 -0
  47. package/dist-client/pages/building-inspection/component/field-document/field-document-popup.js +738 -0
  48. package/dist-client/pages/building-inspection/component/field-document/field-document-popup.js.map +1 -0
  49. package/dist-client/pages/building-inspection/component/image-preview-popup.d.ts +15 -0
  50. package/dist-client/pages/building-inspection/component/image-preview-popup.js +348 -0
  51. package/dist-client/pages/building-inspection/component/image-preview-popup.js.map +1 -0
  52. package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.d.ts +25 -0
  53. package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js +491 -0
  54. package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js.map +1 -0
  55. package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.d.ts +31 -0
  56. package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js +485 -0
  57. package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js.map +1 -0
  58. package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.d.ts +27 -0
  59. package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js +416 -0
  60. package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js.map +1 -0
  61. package/dist-client/pages/building-inspection/component/inspection-event-provider.d.ts +4 -2
  62. package/dist-client/pages/building-inspection/component/inspection-event-provider.js +156 -37
  63. package/dist-client/pages/building-inspection/component/inspection-event-provider.js.map +1 -1
  64. package/dist-client/pages/building-inspection/inspection-create-popup.js +27 -13
  65. package/dist-client/pages/building-inspection/inspection-create-popup.js.map +1 -1
  66. package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.d.ts +4 -0
  67. package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.js +844 -0
  68. package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.js.map +1 -0
  69. package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.d.ts +60 -0
  70. package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js +1135 -0
  71. package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js.map +1 -0
  72. package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.d.ts +2 -0
  73. package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js +740 -0
  74. package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js.map +1 -0
  75. package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.d.ts +19 -0
  76. package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js +205 -0
  77. package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js.map +1 -0
  78. package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.d.ts +1 -0
  79. package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.js +304 -0
  80. package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.js.map +1 -0
  81. package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.d.ts +15 -0
  82. package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.js +430 -0
  83. package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.js.map +1 -0
  84. package/dist-client/pages/checklist/attachment-list-popup.d.ts +1 -0
  85. package/dist-client/pages/checklist/attachment-list-popup.js +251 -69
  86. package/dist-client/pages/checklist/attachment-list-popup.js.map +1 -1
  87. package/dist-client/pages/checklist/checklist-view.d.ts +8 -0
  88. package/dist-client/pages/checklist/checklist-view.js +557 -191
  89. package/dist-client/pages/checklist/checklist-view.js.map +1 -1
  90. package/dist-client/pages/checklist/comment-list-popup.js +15 -5
  91. package/dist-client/pages/checklist/comment-list-popup.js.map +1 -1
  92. package/dist-client/pages/checklist/file-preview-popup.js +0 -1
  93. package/dist-client/pages/checklist/file-preview-popup.js.map +1 -1
  94. package/dist-client/pages/checklist/inspection-info-popup.d.ts +49 -0
  95. package/dist-client/pages/checklist/inspection-info-popup.js +683 -0
  96. package/dist-client/pages/checklist/inspection-info-popup.js.map +1 -0
  97. package/dist-client/pages/checklist/inspection-tab-popup.d.ts +18 -0
  98. package/dist-client/pages/checklist/inspection-tab-popup.js +196 -0
  99. package/dist-client/pages/checklist/inspection-tab-popup.js.map +1 -0
  100. package/dist-client/pages/checklist/kcs-criteria-popup.d.ts +16 -0
  101. package/dist-client/pages/checklist/kcs-criteria-popup.js +179 -0
  102. package/dist-client/pages/checklist/kcs-criteria-popup.js.map +1 -0
  103. package/dist-client/pages/checklist-database/checklist-database.d.ts +35 -0
  104. package/dist-client/pages/checklist-database/checklist-database.js +540 -0
  105. package/dist-client/pages/checklist-database/checklist-database.js.map +1 -0
  106. package/dist-client/pages/checklist-template/checklist-template-item.js +44 -3
  107. package/dist-client/pages/checklist-template/checklist-template-item.js.map +1 -1
  108. package/dist-client/pages/checklist-template/checklist-template-list.js +4 -3
  109. package/dist-client/pages/checklist-template/checklist-template-list.js.map +1 -1
  110. package/dist-client/pages/checklist-template/checklist-type-management.d.ts +2 -2
  111. package/dist-client/pages/checklist-template/checklist-type-management.js.map +1 -1
  112. package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.d.ts +2 -0
  113. package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.js +223 -0
  114. package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.js.map +1 -0
  115. package/dist-client/pages/checklist-template/construction-checklist-template-list.d.ts +55 -0
  116. package/dist-client/pages/checklist-template/construction-checklist-template-list.js +404 -0
  117. package/dist-client/pages/checklist-template/construction-checklist-template-list.js.map +1 -0
  118. package/dist-client/pages/issue/issue-importer.js.map +1 -1
  119. package/dist-client/pages/issue/issue-list-page.d.ts +1 -2
  120. package/dist-client/pages/issue/issue-list-page.js +1 -2
  121. package/dist-client/pages/issue/issue-list-page.js.map +1 -1
  122. package/dist-client/pages/project-checklist/project-checklist-management.d.ts +62 -0
  123. package/dist-client/pages/project-checklist/project-checklist-management.js +1145 -0
  124. package/dist-client/pages/project-checklist/project-checklist-management.js.map +1 -0
  125. package/dist-client/pages/project-report/project-report-importer.js.map +1 -1
  126. package/dist-client/pages/project-report/project-report-list-page.d.ts +1 -2
  127. package/dist-client/pages/project-report/project-report-list-page.js +1 -2
  128. package/dist-client/pages/project-report/project-report-list-page.js.map +1 -1
  129. package/dist-client/pages/supervisor/supervisor-importer.js.map +1 -1
  130. package/dist-client/pages/supervisor/supervisor-list-page.d.ts +1 -2
  131. package/dist-client/pages/supervisor/supervisor-list-page.js +1 -2
  132. package/dist-client/pages/supervisor/supervisor-list-page.js.map +1 -1
  133. package/dist-client/route.d.ts +1 -1
  134. package/dist-client/route.js +21 -0
  135. package/dist-client/route.js.map +1 -1
  136. package/dist-client/stt/speech-to-text.d.ts +41 -0
  137. package/dist-client/stt/speech-to-text.js +331 -0
  138. package/dist-client/stt/speech-to-text.js.map +1 -0
  139. package/dist-client/stt/stt-utils.d.ts +28 -0
  140. package/dist-client/stt/stt-utils.js +146 -0
  141. package/dist-client/stt/stt-utils.js.map +1 -0
  142. package/dist-client/tsconfig.tsbuildinfo +1 -1
  143. package/dist-server/middlewares/index.js +1 -2
  144. package/dist-server/middlewares/index.js.map +1 -1
  145. package/dist-server/service/action-plan/action-plan-mutation.js +7 -8
  146. package/dist-server/service/action-plan/action-plan-mutation.js.map +1 -1
  147. package/dist-server/service/action-plan/action-plan-query.d.ts +2 -2
  148. package/dist-server/service/action-plan/action-plan-query.js +7 -13
  149. package/dist-server/service/action-plan/action-plan-query.js.map +1 -1
  150. package/dist-server/service/action-plan/action-plan-type.js +6 -6
  151. package/dist-server/service/action-plan/action-plan-type.js.map +1 -1
  152. package/dist-server/service/action-plan/action-plan.js +3 -3
  153. package/dist-server/service/action-plan/action-plan.js.map +1 -1
  154. package/dist-server/service/action-plan/index.d.ts +0 -1
  155. package/dist-server/service/action-plan/index.js +1 -2
  156. package/dist-server/service/action-plan/index.js.map +1 -1
  157. package/dist-server/service/building-inspection/building-inspection-mutation.d.ts +3 -3
  158. package/dist-server/service/building-inspection/building-inspection-mutation.js +185 -40
  159. package/dist-server/service/building-inspection/building-inspection-mutation.js.map +1 -1
  160. package/dist-server/service/building-inspection/building-inspection-query.d.ts +9 -6
  161. package/dist-server/service/building-inspection/building-inspection-query.js +199 -54
  162. package/dist-server/service/building-inspection/building-inspection-query.js.map +1 -1
  163. package/dist-server/service/building-inspection/building-inspection-type.d.ts +38 -10
  164. package/dist-server/service/building-inspection/building-inspection-type.js +142 -29
  165. package/dist-server/service/building-inspection/building-inspection-type.js.map +1 -1
  166. package/dist-server/service/building-inspection/building-inspection.d.ts +14 -0
  167. package/dist-server/service/building-inspection/building-inspection.js +78 -7
  168. package/dist-server/service/building-inspection/building-inspection.js.map +1 -1
  169. package/dist-server/service/building-inspection/index.d.ts +4 -7
  170. package/dist-server/service/building-inspection/index.js +11 -6
  171. package/dist-server/service/building-inspection/index.js.map +1 -1
  172. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.d.ts +6 -0
  173. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js +66 -0
  174. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js.map +1 -0
  175. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.d.ts +16 -0
  176. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js +171 -0
  177. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js.map +1 -0
  178. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.d.ts +23 -0
  179. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js +90 -0
  180. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js.map +1 -0
  181. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.d.ts +33 -0
  182. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js +132 -0
  183. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js.map +1 -0
  184. package/dist-server/service/building-inspection-daily-worklog/index.d.ts +5 -0
  185. package/dist-server/service/building-inspection-daily-worklog/index.js +9 -0
  186. package/dist-server/service/building-inspection-daily-worklog/index.js.map +1 -0
  187. package/dist-server/service/building-inspection-history/building-inspection-history-query.d.ts +16 -0
  188. package/dist-server/service/building-inspection-history/building-inspection-history-query.js +120 -0
  189. package/dist-server/service/building-inspection-history/building-inspection-history-query.js.map +1 -0
  190. package/dist-server/service/building-inspection-history/building-inspection-history-type.d.ts +5 -0
  191. package/dist-server/service/building-inspection-history/building-inspection-history-type.js +21 -0
  192. package/dist-server/service/building-inspection-history/building-inspection-history-type.js.map +1 -0
  193. package/dist-server/service/building-inspection-history/building-inspection-history.d.ts +35 -0
  194. package/dist-server/service/building-inspection-history/building-inspection-history.js +162 -0
  195. package/dist-server/service/building-inspection-history/building-inspection-history.js.map +1 -0
  196. package/dist-server/service/{building-inspection → building-inspection-history}/event-subscriber.d.ts +1 -1
  197. package/dist-server/service/{building-inspection → building-inspection-history}/event-subscriber.js +3 -3
  198. package/dist-server/service/building-inspection-history/event-subscriber.js.map +1 -0
  199. package/dist-server/service/building-inspection-history/index.d.ts +6 -0
  200. package/dist-server/service/building-inspection-history/index.js +10 -0
  201. package/dist-server/service/building-inspection-history/index.js.map +1 -0
  202. package/dist-server/service/checklist/checklist-mutation.d.ts +0 -5
  203. package/dist-server/service/checklist/checklist-mutation.js +3 -69
  204. package/dist-server/service/checklist/checklist-mutation.js.map +1 -1
  205. package/dist-server/service/checklist/checklist-query.d.ts +7 -0
  206. package/dist-server/service/checklist/checklist-query.js +85 -2
  207. package/dist-server/service/checklist/checklist-query.js.map +1 -1
  208. package/dist-server/service/checklist/checklist-type.d.ts +0 -13
  209. package/dist-server/service/checklist/checklist-type.js +3 -51
  210. package/dist-server/service/checklist/checklist-type.js.map +1 -1
  211. package/dist-server/service/checklist/checklist.d.ts +38 -3
  212. package/dist-server/service/checklist/checklist.js +133 -17
  213. package/dist-server/service/checklist/checklist.js.map +1 -1
  214. package/dist-server/service/checklist/event-subscriber.d.ts +2 -2
  215. package/dist-server/service/checklist/event-subscriber.js +4 -4
  216. package/dist-server/service/checklist/event-subscriber.js.map +1 -1
  217. package/dist-server/service/checklist/index.d.ts +1 -4
  218. package/dist-server/service/checklist/index.js +2 -5
  219. package/dist-server/service/checklist/index.js.map +1 -1
  220. package/dist-server/service/checklist-history/checklist-history-query.d.ts +11 -0
  221. package/dist-server/service/checklist-history/checklist-history-query.js +77 -0
  222. package/dist-server/service/checklist-history/checklist-history-query.js.map +1 -0
  223. package/dist-server/service/checklist-history/checklist-history-type.d.ts +5 -0
  224. package/dist-server/service/checklist-history/checklist-history-type.js +21 -0
  225. package/dist-server/service/checklist-history/checklist-history-type.js.map +1 -0
  226. package/dist-server/service/checklist-history/checklist-history.d.ts +50 -0
  227. package/dist-server/service/checklist-history/checklist-history.js +239 -0
  228. package/dist-server/service/checklist-history/checklist-history.js.map +1 -0
  229. package/dist-server/service/checklist-history/event-subscriber.d.ts +7 -0
  230. package/dist-server/service/checklist-history/event-subscriber.js +21 -0
  231. package/dist-server/service/checklist-history/event-subscriber.js.map +1 -0
  232. package/dist-server/service/checklist-history/index.d.ts +6 -0
  233. package/dist-server/service/checklist-history/index.js +10 -0
  234. package/dist-server/service/checklist-history/index.js.map +1 -0
  235. package/dist-server/service/checklist-item/checklist-item-mutation.d.ts +2 -0
  236. package/dist-server/service/checklist-item/checklist-item-mutation.js +23 -2
  237. package/dist-server/service/checklist-item/checklist-item-mutation.js.map +1 -1
  238. package/dist-server/service/checklist-item/checklist-item-query.d.ts +1 -1
  239. package/dist-server/service/checklist-item/checklist-item-query.js +7 -5
  240. package/dist-server/service/checklist-item/checklist-item-query.js.map +1 -1
  241. package/dist-server/service/checklist-item/checklist-item-type.d.ts +5 -1
  242. package/dist-server/service/checklist-item/checklist-item-type.js +17 -3
  243. package/dist-server/service/checklist-item/checklist-item-type.js.map +1 -1
  244. package/dist-server/service/checklist-item/checklist-item.d.ts +2 -0
  245. package/dist-server/service/checklist-item/checklist-item.js +14 -4
  246. package/dist-server/service/checklist-item/checklist-item.js.map +1 -1
  247. package/dist-server/service/checklist-item/index.d.ts +2 -2
  248. package/dist-server/service/checklist-item/index.js +1 -2
  249. package/dist-server/service/checklist-item/index.js.map +1 -1
  250. package/dist-server/service/checklist-item-comment/checklist-item-comment-history.js +2 -2
  251. package/dist-server/service/checklist-item-comment/checklist-item-comment-history.js.map +1 -1
  252. package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.d.ts +1 -0
  253. package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js +35 -8
  254. package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js.map +1 -1
  255. package/dist-server/service/checklist-item-comment/checklist-item-comment-query.js +2 -2
  256. package/dist-server/service/checklist-item-comment/checklist-item-comment-query.js.map +1 -1
  257. package/dist-server/service/checklist-item-comment/checklist-item-comment-type.js +6 -6
  258. package/dist-server/service/checklist-item-comment/checklist-item-comment-type.js.map +1 -1
  259. package/dist-server/service/checklist-item-comment/checklist-item-comment.js +2 -2
  260. package/dist-server/service/checklist-item-comment/checklist-item-comment.js.map +1 -1
  261. package/dist-server/service/checklist-item-comment/index.d.ts +0 -2
  262. package/dist-server/service/checklist-item-comment/index.js +1 -3
  263. package/dist-server/service/checklist-item-comment/index.js.map +1 -1
  264. package/dist-server/service/checklist-item-history/checklist-item-history-query.d.ts +16 -0
  265. package/dist-server/service/checklist-item-history/checklist-item-history-query.js +123 -0
  266. package/dist-server/service/checklist-item-history/checklist-item-history-query.js.map +1 -0
  267. package/dist-server/service/checklist-item-history/checklist-item-history-type.d.ts +5 -0
  268. package/dist-server/service/checklist-item-history/checklist-item-history-type.js +21 -0
  269. package/dist-server/service/checklist-item-history/checklist-item-history-type.js.map +1 -0
  270. package/dist-server/service/checklist-item-history/checklist-item-history.d.ts +27 -0
  271. package/dist-server/service/checklist-item-history/checklist-item-history.js +133 -0
  272. package/dist-server/service/checklist-item-history/checklist-item-history.js.map +1 -0
  273. package/dist-server/service/checklist-item-history/event-subscriber.d.ts +7 -0
  274. package/dist-server/service/checklist-item-history/event-subscriber.js +21 -0
  275. package/dist-server/service/checklist-item-history/event-subscriber.js.map +1 -0
  276. package/dist-server/service/checklist-item-history/index.d.ts +6 -0
  277. package/dist-server/service/checklist-item-history/index.js +10 -0
  278. package/dist-server/service/checklist-item-history/index.js.map +1 -0
  279. package/dist-server/service/checklist-template/checklist-template-mutation.js +2 -2
  280. package/dist-server/service/checklist-template/checklist-template-mutation.js.map +1 -1
  281. package/dist-server/service/checklist-template/checklist-template-query.d.ts +1 -1
  282. package/dist-server/service/checklist-template/checklist-template-query.js +4 -7
  283. package/dist-server/service/checklist-template/checklist-template-query.js.map +1 -1
  284. package/dist-server/service/checklist-template/checklist-template-type.js +4 -4
  285. package/dist-server/service/checklist-template/checklist-template-type.js.map +1 -1
  286. package/dist-server/service/checklist-template/checklist-template.js +2 -2
  287. package/dist-server/service/checklist-template/checklist-template.js.map +1 -1
  288. package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js +15 -3
  289. package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js.map +1 -1
  290. package/dist-server/service/checklist-template-item/checklist-template-item-query.js +2 -2
  291. package/dist-server/service/checklist-template-item/checklist-template-item-query.js.map +1 -1
  292. package/dist-server/service/checklist-template-item/checklist-template-item-type.d.ts +3 -0
  293. package/dist-server/service/checklist-template-item/checklist-template-item-type.js +13 -4
  294. package/dist-server/service/checklist-template-item/checklist-template-item-type.js.map +1 -1
  295. package/dist-server/service/checklist-template-item/checklist-template-item.d.ts +7 -0
  296. package/dist-server/service/checklist-template-item/checklist-template-item.js +26 -8
  297. package/dist-server/service/checklist-template-item/checklist-template-item.js.map +1 -1
  298. package/dist-server/service/checklist-template-item/spec-matching-service.d.ts +2 -0
  299. package/dist-server/service/checklist-template-item/spec-matching-service.js +51 -0
  300. package/dist-server/service/checklist-template-item/spec-matching-service.js.map +1 -0
  301. package/dist-server/service/checklist-type/checklist-type-mutation.js +2 -2
  302. package/dist-server/service/checklist-type/checklist-type-mutation.js.map +1 -1
  303. package/dist-server/service/checklist-type/checklist-type-query.d.ts +1 -1
  304. package/dist-server/service/checklist-type/checklist-type-query.js +4 -7
  305. package/dist-server/service/checklist-type/checklist-type-query.js.map +1 -1
  306. package/dist-server/service/checklist-type/checklist-type-type.js +4 -4
  307. package/dist-server/service/checklist-type/checklist-type-type.js.map +1 -1
  308. package/dist-server/service/checklist-type/checklist-type.js +3 -3
  309. package/dist-server/service/checklist-type/checklist-type.js.map +1 -1
  310. package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.d.ts +7 -0
  311. package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.js +107 -0
  312. package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.js.map +1 -0
  313. package/dist-server/service/construction-checklist-template/construction-checklist-template-query.d.ts +10 -0
  314. package/dist-server/service/construction-checklist-template/construction-checklist-template-query.js +62 -0
  315. package/dist-server/service/construction-checklist-template/construction-checklist-template-query.js.map +1 -0
  316. package/dist-server/service/construction-checklist-template/construction-checklist-template-type.d.ts +11 -0
  317. package/dist-server/service/construction-checklist-template/construction-checklist-template-type.js +43 -0
  318. package/dist-server/service/construction-checklist-template/construction-checklist-template-type.js.map +1 -0
  319. package/dist-server/service/construction-checklist-template/construction-checklist-template.d.ts +18 -0
  320. package/dist-server/service/construction-checklist-template/construction-checklist-template.js +80 -0
  321. package/dist-server/service/construction-checklist-template/construction-checklist-template.js.map +1 -0
  322. package/dist-server/service/construction-checklist-template/index.d.ts +5 -0
  323. package/dist-server/service/construction-checklist-template/index.js +9 -0
  324. package/dist-server/service/construction-checklist-template/index.js.map +1 -0
  325. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.d.ts +6 -0
  326. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.js +56 -0
  327. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.js.map +1 -0
  328. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.d.ts +9 -0
  329. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.js +53 -0
  330. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.js.map +1 -0
  331. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.d.ts +17 -0
  332. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.js +67 -0
  333. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.js.map +1 -0
  334. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.d.ts +24 -0
  335. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.js +113 -0
  336. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.js.map +1 -0
  337. package/dist-server/service/construction-checklist-template-item/index.d.ts +5 -0
  338. package/dist-server/service/construction-checklist-template-item/index.js +9 -0
  339. package/dist-server/service/construction-checklist-template-item/index.js.map +1 -0
  340. package/dist-server/service/field-document/field-document-auto-file.d.ts +21 -0
  341. package/dist-server/service/field-document/field-document-auto-file.js +47 -0
  342. package/dist-server/service/field-document/field-document-auto-file.js.map +1 -0
  343. package/dist-server/service/field-document/field-document-mutation.d.ts +9 -0
  344. package/dist-server/service/field-document/field-document-mutation.js +139 -0
  345. package/dist-server/service/field-document/field-document-mutation.js.map +1 -0
  346. package/dist-server/service/field-document/field-document-query.d.ts +14 -0
  347. package/dist-server/service/field-document/field-document-query.js +120 -0
  348. package/dist-server/service/field-document/field-document-query.js.map +1 -0
  349. package/dist-server/service/field-document/field-document-summary-service.d.ts +10 -0
  350. package/dist-server/service/field-document/field-document-summary-service.js +79 -0
  351. package/dist-server/service/field-document/field-document-summary-service.js.map +1 -0
  352. package/dist-server/service/field-document/field-document-type.d.ts +24 -0
  353. package/dist-server/service/field-document/field-document-type.js +88 -0
  354. package/dist-server/service/field-document/field-document-type.js.map +1 -0
  355. package/dist-server/service/field-document/field-document.d.ts +29 -0
  356. package/dist-server/service/field-document/field-document.js +127 -0
  357. package/dist-server/service/field-document/field-document.js.map +1 -0
  358. package/dist-server/service/field-document/index.d.ts +5 -0
  359. package/dist-server/service/field-document/index.js +9 -0
  360. package/dist-server/service/field-document/index.js.map +1 -0
  361. package/dist-server/service/index.d.ts +10 -3
  362. package/dist-server/service/index.js +42 -13
  363. package/dist-server/service/index.js.map +1 -1
  364. package/dist-server/service/issue/index.d.ts +0 -1
  365. package/dist-server/service/issue/index.js +1 -2
  366. package/dist-server/service/issue/index.js.map +1 -1
  367. package/dist-server/service/issue/issue-mutation.js +7 -8
  368. package/dist-server/service/issue/issue-mutation.js.map +1 -1
  369. package/dist-server/service/issue/issue-query.d.ts +2 -2
  370. package/dist-server/service/issue/issue-query.js +7 -13
  371. package/dist-server/service/issue/issue-query.js.map +1 -1
  372. package/dist-server/service/issue/issue-type.js +6 -6
  373. package/dist-server/service/issue/issue-type.js.map +1 -1
  374. package/dist-server/service/issue/issue.js +3 -3
  375. package/dist-server/service/issue/issue.js.map +1 -1
  376. package/dist-server/service/project-checklist/index.d.ts +5 -0
  377. package/dist-server/service/project-checklist/index.js +9 -0
  378. package/dist-server/service/project-checklist/index.js.map +1 -0
  379. package/dist-server/service/project-checklist/project-checklist-mutation.d.ts +7 -0
  380. package/dist-server/service/project-checklist/project-checklist-mutation.js +118 -0
  381. package/dist-server/service/project-checklist/project-checklist-mutation.js.map +1 -0
  382. package/dist-server/service/project-checklist/project-checklist-query.d.ts +12 -0
  383. package/dist-server/service/project-checklist/project-checklist-query.js +76 -0
  384. package/dist-server/service/project-checklist/project-checklist-query.js.map +1 -0
  385. package/dist-server/service/project-checklist/project-checklist-type.d.ts +18 -0
  386. package/dist-server/service/project-checklist/project-checklist-type.js +69 -0
  387. package/dist-server/service/project-checklist/project-checklist-type.js.map +1 -0
  388. package/dist-server/service/project-checklist/project-checklist.d.ts +20 -0
  389. package/dist-server/service/project-checklist/project-checklist.js +90 -0
  390. package/dist-server/service/project-checklist/project-checklist.js.map +1 -0
  391. package/dist-server/service/project-checklist/spec-matching-service.d.ts +17 -0
  392. package/dist-server/service/project-checklist/spec-matching-service.js +140 -0
  393. package/dist-server/service/project-checklist/spec-matching-service.js.map +1 -0
  394. package/dist-server/service/project-checklist-item/index.d.ts +4 -0
  395. package/dist-server/service/project-checklist-item/index.js +9 -0
  396. package/dist-server/service/project-checklist-item/index.js.map +1 -0
  397. package/dist-server/service/project-checklist-item/project-checklist-item-mutation.d.ts +2 -0
  398. package/dist-server/service/project-checklist-item/project-checklist-item-mutation.js +13 -0
  399. package/dist-server/service/project-checklist-item/project-checklist-item-mutation.js.map +1 -0
  400. package/dist-server/service/project-checklist-item/project-checklist-item-query.d.ts +5 -0
  401. package/dist-server/service/project-checklist-item/project-checklist-item-query.js +34 -0
  402. package/dist-server/service/project-checklist-item/project-checklist-item-query.js.map +1 -0
  403. package/dist-server/service/project-checklist-item/project-checklist-item-type.d.ts +5 -0
  404. package/dist-server/service/project-checklist-item/project-checklist-item-type.js +21 -0
  405. package/dist-server/service/project-checklist-item/project-checklist-item-type.js.map +1 -0
  406. package/dist-server/service/project-checklist-item/project-checklist-item.d.ts +19 -0
  407. package/dist-server/service/project-checklist-item/project-checklist-item.js +92 -0
  408. package/dist-server/service/project-checklist-item/project-checklist-item.js.map +1 -0
  409. package/dist-server/service/project-report/index.d.ts +0 -1
  410. package/dist-server/service/project-report/index.js +1 -2
  411. package/dist-server/service/project-report/index.js.map +1 -1
  412. package/dist-server/service/project-report/project-report-mutation.js +7 -8
  413. package/dist-server/service/project-report/project-report-mutation.js.map +1 -1
  414. package/dist-server/service/project-report/project-report-query.d.ts +2 -2
  415. package/dist-server/service/project-report/project-report-query.js +7 -13
  416. package/dist-server/service/project-report/project-report-query.js.map +1 -1
  417. package/dist-server/service/project-report/project-report-type.js +6 -6
  418. package/dist-server/service/project-report/project-report-type.js.map +1 -1
  419. package/dist-server/service/project-report/project-report.d.ts +0 -2
  420. package/dist-server/service/project-report/project-report.js +3 -9
  421. package/dist-server/service/project-report/project-report.js.map +1 -1
  422. package/dist-server/service/supervisor/index.d.ts +0 -1
  423. package/dist-server/service/supervisor/index.js +1 -2
  424. package/dist-server/service/supervisor/index.js.map +1 -1
  425. package/dist-server/service/supervisor/supervisor-mutation.js +7 -8
  426. package/dist-server/service/supervisor/supervisor-mutation.js.map +1 -1
  427. package/dist-server/service/supervisor/supervisor-query.d.ts +2 -2
  428. package/dist-server/service/supervisor/supervisor-query.js +7 -13
  429. package/dist-server/service/supervisor/supervisor-query.js.map +1 -1
  430. package/dist-server/service/supervisor/supervisor-type.js +6 -6
  431. package/dist-server/service/supervisor/supervisor-type.js.map +1 -1
  432. package/dist-server/service/supervisor/supervisor.js +3 -3
  433. package/dist-server/service/supervisor/supervisor.js.map +1 -1
  434. package/dist-server/tsconfig.tsbuildinfo +1 -1
  435. package/package.json +16 -13
  436. package/things-factory.config.js +11 -1
  437. package/client/bootstrap.ts +0 -1
  438. package/client/index.ts +0 -0
  439. package/client/pages/action-plan/action-plan-importer.ts +0 -94
  440. package/client/pages/action-plan/action-plan-list-page.ts +0 -340
  441. package/client/pages/building-inspection/building-inspection-detail-camera.ts +0 -277
  442. package/client/pages/building-inspection/building-inspection-detail-checklist.ts +0 -258
  443. package/client/pages/building-inspection/building-inspection-detail-drawing.ts +0 -288
  444. package/client/pages/building-inspection/building-inspection-list.ts +0 -565
  445. package/client/pages/building-inspection/component/building-inspection-detail-header.ts +0 -123
  446. package/client/pages/building-inspection/component/inspection-event-provider.ts +0 -81
  447. package/client/pages/building-inspection/inspection-create-popup.ts +0 -785
  448. package/client/pages/checklist/attachment-list-popup.ts +0 -301
  449. package/client/pages/checklist/checklist-view.ts +0 -581
  450. package/client/pages/checklist/comment-list-popup.ts +0 -328
  451. package/client/pages/checklist/file-preview-popup.ts +0 -70
  452. package/client/pages/checklist-template/checklist-template-item.ts +0 -240
  453. package/client/pages/checklist-template/checklist-template-list.ts +0 -368
  454. package/client/pages/checklist-template/checklist-type-management.ts +0 -262
  455. package/client/pages/issue/issue-importer.ts +0 -94
  456. package/client/pages/issue/issue-list-page.ts +0 -340
  457. package/client/pages/project-report/project-report-importer.ts +0 -94
  458. package/client/pages/project-report/project-report-list-page.ts +0 -340
  459. package/client/pages/supervisor/supervisor-importer.ts +0 -94
  460. package/client/pages/supervisor/supervisor-list-page.ts +0 -340
  461. package/client/route.ts +0 -27
  462. package/client/tsconfig.json +0 -11
  463. package/dist-server/service/building-inspection/building-inspection-history.d.ts +0 -17
  464. package/dist-server/service/building-inspection/building-inspection-history.js +0 -86
  465. package/dist-server/service/building-inspection/building-inspection-history.js.map +0 -1
  466. package/dist-server/service/building-inspection/event-subscriber.js.map +0 -1
  467. package/dist-server/service/checklist/checklist-history.d.ts +0 -24
  468. package/dist-server/service/checklist/checklist-history.js +0 -120
  469. package/dist-server/service/checklist/checklist-history.js.map +0 -1
  470. package/dist-server/service/checklist-item-comment/event-subscriber.d.ts +0 -7
  471. package/dist-server/service/checklist-item-comment/event-subscriber.js +0 -21
  472. package/dist-server/service/checklist-item-comment/event-subscriber.js.map +0 -1
  473. package/server/controllers/index.ts +0 -0
  474. package/server/index.ts +0 -4
  475. package/server/middlewares/index.ts +0 -3
  476. package/server/migrations/index.ts +0 -9
  477. package/server/routes.ts +0 -28
  478. package/server/service/action-plan/action-plan-mutation.ts +0 -198
  479. package/server/service/action-plan/action-plan-query.ts +0 -62
  480. package/server/service/action-plan/action-plan-type.ts +0 -61
  481. package/server/service/action-plan/action-plan.ts +0 -103
  482. package/server/service/action-plan/index.ts +0 -7
  483. package/server/service/building-inspection/building-inspection-history.ts +0 -72
  484. package/server/service/building-inspection/building-inspection-mutation.ts +0 -276
  485. package/server/service/building-inspection/building-inspection-query.ts +0 -242
  486. package/server/service/building-inspection/building-inspection-type.ts +0 -145
  487. package/server/service/building-inspection/building-inspection.ts +0 -108
  488. package/server/service/building-inspection/event-subscriber.ts +0 -20
  489. package/server/service/building-inspection/index.ts +0 -11
  490. package/server/service/checklist/checklist-history.ts +0 -96
  491. package/server/service/checklist/checklist-mutation.ts +0 -103
  492. package/server/service/checklist/checklist-query.ts +0 -58
  493. package/server/service/checklist/checklist-type.ts +0 -49
  494. package/server/service/checklist/checklist.ts +0 -127
  495. package/server/service/checklist/event-subscriber.ts +0 -17
  496. package/server/service/checklist/index.ts +0 -9
  497. package/server/service/checklist-item/checklist-item-mutation.ts +0 -5
  498. package/server/service/checklist-item/checklist-item-query.ts +0 -84
  499. package/server/service/checklist-item/checklist-item-type.ts +0 -12
  500. package/server/service/checklist-item/checklist-item.ts +0 -103
  501. package/server/service/checklist-item/index.ts +0 -7
  502. package/server/service/checklist-item-comment/checklist-item-comment-history.ts +0 -69
  503. package/server/service/checklist-item-comment/checklist-item-comment-mutation.ts +0 -80
  504. package/server/service/checklist-item-comment/checklist-item-comment-query.ts +0 -36
  505. package/server/service/checklist-item-comment/checklist-item-comment-type.ts +0 -32
  506. package/server/service/checklist-item-comment/checklist-item-comment.ts +0 -56
  507. package/server/service/checklist-item-comment/event-subscriber.ts +0 -17
  508. package/server/service/checklist-item-comment/index.ts +0 -9
  509. package/server/service/checklist-template/checklist-template-mutation.ts +0 -66
  510. package/server/service/checklist-template/checklist-template-query.ts +0 -39
  511. package/server/service/checklist-template/checklist-template-type.ts +0 -23
  512. package/server/service/checklist-template/checklist-template.ts +0 -71
  513. package/server/service/checklist-template/index.ts +0 -6
  514. package/server/service/checklist-template-item/checklist-template-item-mutation.ts +0 -64
  515. package/server/service/checklist-template-item/checklist-template-item-query.ts +0 -44
  516. package/server/service/checklist-template-item/checklist-template-item-type.ts +0 -39
  517. package/server/service/checklist-template-item/checklist-template-item.ts +0 -68
  518. package/server/service/checklist-template-item/index.ts +0 -6
  519. package/server/service/checklist-type/checklist-type-mutation.ts +0 -66
  520. package/server/service/checklist-type/checklist-type-query.ts +0 -39
  521. package/server/service/checklist-type/checklist-type-type.ts +0 -26
  522. package/server/service/checklist-type/checklist-type.ts +0 -64
  523. package/server/service/checklist-type/index.ts +0 -6
  524. package/server/service/index.ts +0 -88
  525. package/server/service/issue/index.ts +0 -7
  526. package/server/service/issue/issue-mutation.ts +0 -198
  527. package/server/service/issue/issue-query.ts +0 -62
  528. package/server/service/issue/issue-type.ts +0 -61
  529. package/server/service/issue/issue.ts +0 -100
  530. package/server/service/project-report/index.ts +0 -7
  531. package/server/service/project-report/project-report-mutation.ts +0 -198
  532. package/server/service/project-report/project-report-query.ts +0 -62
  533. package/server/service/project-report/project-report-type.ts +0 -61
  534. package/server/service/project-report/project-report.ts +0 -113
  535. package/server/service/supervisor/index.ts +0 -7
  536. package/server/service/supervisor/supervisor-mutation.ts +0 -198
  537. package/server/service/supervisor/supervisor-query.ts +0 -62
  538. package/server/service/supervisor/supervisor-type.ts +0 -61
  539. package/server/service/supervisor/supervisor.ts +0 -108
  540. package/server/tsconfig.json +0 -10
@@ -1,22 +1,27 @@
1
1
  import { __decorate, __metadata } from "tslib";
2
+ import '@material/web/fab/fab.js';
2
3
  import '@material/web/icon/icon.js';
3
4
  import gql from 'graphql-tag';
4
5
  import { client } from '@operato/graphql';
5
6
  import { css, html, LitElement } from 'lit';
6
7
  import { customElement, property } from 'lit/decorators.js';
7
8
  import { ButtonContainerStyles, ScrollbarStyles } from '@operato/styles';
8
- import { CHECKLIST_MAIN_TYPE_LIST, BuildingInspectionStatus, BUILDING_INSPECTION_STATUS_DISPLAY } from '../building-inspection/building-inspection-list';
9
+ import { CHECKLIST_MAIN_TYPE_LIST, BuildingInspectionStatus, BUILDING_INSPECTION_STATUS_DISPLAY, BUILDING_INSPECTION_RE_STATUS_DISPLAY } from '../building-inspection/building-inspection-list';
9
10
  import '@operato/input/ox-input-signature.js';
10
- import { store } from '@operato/shell';
11
- import { connect } from 'pwa-helpers/connect-mixin.js';
11
+ import { store, connect } from '@operato/shell';
12
12
  import { openPopup } from '@operato/layout';
13
13
  import './comment-list-popup';
14
14
  import './attachment-list-popup';
15
+ import './kcs-criteria-popup';
16
+ import '../../stt/speech-to-text';
17
+ import { parseSpeechCommand } from '../../stt/stt-utils';
18
+ import { notify } from '@operato/layout';
15
19
  let ChecklistView = class ChecklistView extends connect(store)(LitElement) {
16
20
  constructor() {
17
21
  super(...arguments);
18
22
  this.mode = "VIEWER" /* ChecklistMode.VIEWER */;
19
23
  this.checklist = {};
24
+ this.manager = {};
20
25
  this.buildingComplex = {
21
26
  id: '',
22
27
  taskConstructorEmails: [],
@@ -25,9 +30,98 @@ let ChecklistView = class ChecklistView extends connect(store)(LitElement) {
25
30
  overallSupervisoryEmails: []
26
31
  };
27
32
  this.status = BuildingInspectionStatus.WAIT;
33
+ this.failCount = 0;
34
+ this.projectType = "DSSP" /* ProjectType.DSSP */;
35
+ this.isListening = false;
36
+ this._tooltip = null;
37
+ this._kcsDetail = null;
38
+ this._kcsDetailItem = '';
39
+ this._siteSpecDetail = null;
40
+ this._siteSpecDetailItem = '';
41
+ this._onStartSTT = (e) => {
42
+ e.preventDefault();
43
+ const stt = this.renderRoot.querySelector('#stt');
44
+ if (!this.isListening) {
45
+ stt === null || stt === void 0 ? void 0 : stt.startListening();
46
+ }
47
+ };
48
+ this._onStopSTT = (e) => {
49
+ e.preventDefault();
50
+ const stt = this.renderRoot.querySelector('#stt');
51
+ if (this.isListening) {
52
+ stt === null || stt === void 0 ? void 0 : stt.stopListening();
53
+ }
54
+ };
55
+ this._hideSiteSpecDetail = () => {
56
+ this._siteSpecDetail = null;
57
+ this.requestUpdate();
58
+ };
59
+ this._hideKcsDetail = () => {
60
+ this._kcsDetail = null;
61
+ this.requestUpdate();
62
+ };
63
+ }
64
+ firstUpdated() {
65
+ const stt = this.renderRoot.querySelector('#stt');
66
+ if (stt) {
67
+ stt.addEventListener('stt-result', (e) => {
68
+ var _a, _b;
69
+ const text = e.detail.finalTranscript;
70
+ const parsed = parseSpeechCommand(text, ((_b = (_a = this.checklist) === null || _a === void 0 ? void 0 : _a.checklistItems) === null || _b === void 0 ? void 0 : _b.length) || 20);
71
+ this._applySpeechCommand(parsed);
72
+ });
73
+ stt.addEventListener('stt-status', (e) => {
74
+ // 음성 인식 상태에 따라 버튼 상태 갱신
75
+ const status = e.detail.status;
76
+ if (status && status.includes('Listening'))
77
+ this.isListening = true;
78
+ if (status && (status.includes('종료') || status.includes('Stopped')))
79
+ this.isListening = false;
80
+ this.requestUpdate();
81
+ });
82
+ }
83
+ }
84
+ /**
85
+ * 음성 명령 해석 결과를 체크리스트에 반영
86
+ */
87
+ async _applySpeechCommand(parsed) {
88
+ // 합격/불합격 처리 예시 (시공자 기준)
89
+ if (parsed.rowIds && parsed.isPass !== null) {
90
+ this.checklist.checklistItems = this.checklist.checklistItems.map((item, idx) => parsed.rowIds.includes(idx + 1) ? Object.assign(Object.assign({}, item), { constructionConfirmStatus: parsed.isPass ? 'T' : 'F' }) : item);
91
+ this.requestUpdate();
92
+ }
93
+ // 조치사항 처리 예시
94
+ if (parsed.rowIds && parsed.actionText) {
95
+ const { rowIds, actionText } = parsed;
96
+ const checklistItems = this.checklist.checklistItems;
97
+ const ids = rowIds.length > 0 ? rowIds : Array.from({ length: checklistItems.length }, (_, i) => i + 1); // rowIds가 빈값이면 모든 아이템에 대해 조치사항 등록
98
+ let count = 0;
99
+ for (const rowId of ids) {
100
+ const item = checklistItems[rowId - 1];
101
+ count += await this._createChecklistItemComment(item.id, actionText);
102
+ this._refreshItem({ detail: { checklistItemId: item.id } });
103
+ }
104
+ notify({ message: `${count}건의 조치사항을 등록했습니다.` });
105
+ }
106
+ }
107
+ // 체크리스트 아이템 코멘트 생성
108
+ async _createChecklistItemComment(checklistItemId, comment) {
109
+ const response = await client.mutate({
110
+ mutation: gql `
111
+ mutation CreateChecklistItemComment($checklistItemComment: NewChecklistItemComment!) {
112
+ createChecklistItemComment(checklistItemComment: $checklistItemComment) {
113
+ id
114
+ }
115
+ }
116
+ `,
117
+ variables: {
118
+ checklistItemComment: { comment, checklistItemId }
119
+ }
120
+ });
121
+ return !response.errors ? 1 : 0;
28
122
  }
29
123
  render() {
30
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
124
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
31
125
  const today = this._getDate(new Date());
32
126
  // 시공자 스탭 여부
33
127
  const isConstructorStep = this.status == BuildingInspectionStatus.WAIT ||
@@ -71,204 +165,321 @@ let ChecklistView = class ChecklistView extends connect(store)(LitElement) {
71
165
  // 3순위: sequence 오름차순
72
166
  return a.sequence - b.sequence;
73
167
  });
74
- const processedItems = this.drawChecklistItems(((_j = this.checklist) === null || _j === void 0 ? void 0 : _j.checklistItems) || []);
168
+ const checklistItems = ((_j = this.checklist) === null || _j === void 0 ? void 0 : _j.checklistItems) || [];
169
+ const processedItems = this.drawChecklistItems(checklistItems);
170
+ const hasAnyDetailType = checklistItems.some(item => item.detailType);
75
171
  return html `
76
- <div wrapper>
77
- <div name bold>${this.checklist.name}</div>
172
+ ${this.mode == "EDITOR" /* ChecklistMode.EDITOR */
173
+ ? html `
174
+ <speech-to-text id="stt"></speech-to-text>
175
+ <md-fab
176
+ class="stt-fab"
177
+ ?active=${this.isListening}
178
+ @mousedown=${this._onStartSTT}
179
+ @mouseup=${this._onStopSTT}
180
+ @mouseleave=${this._onStopSTT}
181
+ @touchstart=${this._onStartSTT}
182
+ @touchend=${this._onStopSTT}
183
+ ?disabled=${false}
184
+ .label=${this.isListening ? '말씀하세요...' : '길게 눌러서 음성 인식'}
185
+ >
186
+ <md-icon slot="icon">mic</md-icon>
187
+ </md-fab>
188
+ `
189
+ : ''}
78
190
 
79
- <table header>
191
+ <div title-row>
192
+ <div name>${this.checklist.name}</div>
193
+ </div>
194
+ <table header>
195
+ <tr>
196
+ <th>공종</th>
197
+ <td>${this.checklist.constructionType}</td>
198
+ <th>문서 번호</th>
199
+ <td>${this.checklist.documentNo}</td>
200
+ </tr>
201
+ <tr>
202
+ <th>세부 공종</th>
203
+ <td>${this.checklist.constructionDetailType}</td>
204
+ <th>위치 및 부위</th>
205
+ <td>${this.checklist.location}</td>
206
+ </tr>
207
+ <tr>
208
+ ${this.projectType == "DSSP" /* ProjectType.DSSP */
209
+ ? html `
210
+ <th>담당자</th>
211
+ <td>${((_k = this.manager) === null || _k === void 0 ? void 0 : _k.name) || ''}</td>
212
+ `
213
+ : html `
214
+ <th>검측 부위</th>
215
+ <td>${((_m = (_l = this.checklist) === null || _l === void 0 ? void 0 : _l.inspectionParts) === null || _m === void 0 ? void 0 : _m.join(', ')) || ''}</td>
216
+ `}
217
+
218
+ <th>검측 상태</th>
219
+ <td>
220
+ ${(this.failCount > 0 ? BUILDING_INSPECTION_RE_STATUS_DISPLAY : BUILDING_INSPECTION_STATUS_DISPLAY)[this.status]}
221
+ </td>
222
+ </tr>
223
+ </table>
224
+
225
+ <table body>
226
+ <thead>
80
227
  <tr>
81
- <th>공종</th>
82
- <td>${this.checklist.constructionType}</td>
83
- <th>문서 번호</th>
84
- <td>${this.checklist.documentNo}</td>
228
+ <th colspan="${hasAnyDetailType ? 2 : 1}" rowspan="3" type>구분</th>
229
+ <th rowspan="3" inspection-name>검사항목</th>
230
+ <th rowspan="3" criteria>KCS 시방서 기준</th>
231
+ <th rowspan="3" criteria>현장 시방서 기준</th>
232
+ <th colspan="4" result>검사결과</th>
233
+ <th rowspan="3" small>첨부자료</th>
234
+ <th rowspan="3" small>조치사항</th>
85
235
  </tr>
86
236
  <tr>
87
- <th>세부 공종</th>
88
- <td>${this.checklist.constructionDetailType}</td>
89
- <th>위치 및 부위</th>
90
- <td>${this.checklist.location}</td>
237
+ <th colspan="2">시공자</th>
238
+ <th colspan="2">감리자</th>
91
239
  </tr>
92
240
  <tr>
93
- <th>검측 부위</th>
94
- <td>${((_l = (_k = this.checklist) === null || _k === void 0 ? void 0 : _k.inspectionParts) === null || _l === void 0 ? void 0 : _l.join(', ')) || ''}</td>
95
- <th>검측 상태</th>
96
- <td>${BUILDING_INSPECTION_STATUS_DISPLAY[(_o = (_m = this.checklist) === null || _m === void 0 ? void 0 : _m.buildingInspection) === null || _o === void 0 ? void 0 : _o.status]}</td>
241
+ <th>적합</th>
242
+ <th>부적합</th>
243
+ <th>적합</th>
244
+ <th>부적합</th>
97
245
  </tr>
98
- </table>
99
-
100
- <table body>
101
- <thead>
102
- <tr>
103
- <th colspan="2" rowspan="3" type>구분</th>
104
- <th rowspan="3" inspection-name>검사항목</th>
105
- <th rowspan="3" criteria>검사기준</th>
106
- <th colspan="4" result>검사결과</th>
107
- <th rowspan="3" small>첨부자료</th>
108
- <th rowspan="3" small>조치사항</th>
109
- </tr>
110
- <tr>
111
- <th colspan="2">시공자</th>
112
- <th colspan="2">감리자</th>
113
- </tr>
114
- <tr>
115
- <th>적합</th>
116
- <th>부적합</th>
117
- <th>적합</th>
118
- <th>부적합</th>
119
- </tr>
120
- </thead>
121
- <tbody>
122
- ${processedItems.map(({ item, showMainTypeCell, mainTypeRowspan, showDetailTypeCell, detailTypeRowspan }, idx) => {
246
+ </thead>
247
+ <tbody>
248
+ ${processedItems.map(({ item, showMainTypeCell, mainTypeRowspan, showDetailTypeCell, detailTypeRowspan }, idx) => {
249
+ var _a;
250
+ const recs = ((_a = [
251
+ item.recommendation1,
252
+ item.recommendation2,
253
+ item.recommendation3,
254
+ item.recommendation4,
255
+ item.recommendation5
256
+ ]) === null || _a === void 0 ? void 0 : _a.filter(r => r)) || [];
257
+ const hasRecs = recs.length > 0;
258
+ const kcs = this._parseKcs(item.kcsCriteria);
259
+ const hasKcs = !!kcs;
260
+ const siteSpec = item.siteSpecCriteria || item.inspctionCriteria || '';
123
261
  return html ` <tr>
124
- ${showMainTypeCell
125
- ? html `<td main-type bold rowspan="${mainTypeRowspan}">${CHECKLIST_MAIN_TYPE_LIST[item.mainType]}</td>`
262
+ ${showMainTypeCell
263
+ ? html `<td main-type bold rowspan="${mainTypeRowspan}">
264
+ ${CHECKLIST_MAIN_TYPE_LIST[item.mainType] || item.mainType}
265
+ </td>`
266
+ : ''}
267
+ ${hasAnyDetailType
268
+ ? showDetailTypeCell
269
+ ? html ` <td bold rowspan="${detailTypeRowspan}">${item.detailType}</td> `
270
+ : ''
126
271
  : ''}
127
- ${showDetailTypeCell ? html ` <td bold rowspan="${detailTypeRowspan}">${item.detailType}</td> ` : ''}
128
-
129
- <td>${idx + 1}. ${item.name}</td>
130
- <td>${item.inspctionCriteria}</td>
131
- <td radio>
132
- <md-radio
133
- item-id=${item.id}
134
- item-name="constructionConfirmStatus"
135
- name=${'radio-construction-' + item.id}
136
- value="T"
137
- .checked=${item.constructionConfirmStatus === 'T'}
138
- ?disabled=${!isConstructorStep || !havePermissionByStatus}
139
- @change=${this._onChangeConfirmStatus}
140
- ></md-radio>
141
- </td>
142
- <td radio>
143
- <md-radio
144
- item-id=${item.id}
145
- item-name="constructionConfirmStatus"
146
- name=${'radio-construction-' + item.id}
147
- value="F"
148
- .checked=${item.constructionConfirmStatus === 'F'}
149
- ?disabled=${!isConstructorStep || !havePermissionByStatus}
150
- @change=${this._onChangeConfirmStatus}
151
- ></md-radio>
152
- </td>
153
- <td radio>
154
- <md-radio
155
- item-id=${item.id}
156
- item-name="supervisoryConfirmStatus"
157
- name=${'radio-supervisory-' + item.id}
158
- value="T"
159
- .checked=${item.supervisoryConfirmStatus === 'T'}
160
- ?disabled=${!isSupervisoryStep || !havePermissionByStatus}
161
- @change=${this._onChangeConfirmStatus}
162
- ></md-radio>
163
- </td>
164
- <td radio>
165
- <md-radio
166
- item-id=${item.id}
167
- item-name="supervisoryConfirmStatus"
168
- name=${'radio-supervisory-' + item.id}
169
- value="F"
170
- .checked=${item.supervisoryConfirmStatus === 'F'}
171
- ?disabled=${!isSupervisoryStep || !havePermissionByStatus}
172
- @change=${this._onChangeConfirmStatus}
173
- ></md-radio>
174
- </td>
175
- <td
176
- attachment
177
- ?disabled=${this.status == BuildingInspectionStatus.PASS}
178
- @click=${() => this._onClickAttachment(item.id)}
179
- >
180
- <md-icon slot="icon">attach_file</md-icon>
181
- <span>${(item === null || item === void 0 ? void 0 : item.checklistItemAttachmentCount) || ''}</span>
182
- </td>
183
- <td
184
- comment
185
- ?disabled=${this.status == BuildingInspectionStatus.PASS}
186
- @click=${() => this._onClickComment(item.id)}
187
- >
188
- <md-icon slot="icon">chat</md-icon>
189
- <span>${(item === null || item === void 0 ? void 0 : item.checklistItemCommentCount) || ''}</span>
190
- </td>
191
- </tr>`;
192
- })}
193
- </tbody>
194
- </table>
195
272
 
196
- <table tail>
197
- <tbody>
198
- <tr first>
199
- <th rowspan="2">시공자 점검일</th>
200
- <td rowspan="2">
201
- ${this.mode == "VIEWER" /* ChecklistMode.VIEWER */ ? today : this._getDate(this.checklist.constructionInspectionDate)}
273
+ <td
274
+ ?has-recommendation=${hasRecs}
275
+ @mouseenter=${hasRecs ? (e) => this._showRecTooltip(e, item.id || idx, recs) : null}
276
+ @mouseleave=${hasRecs ? () => this._hideRecTooltip() : null}
277
+ >
278
+ ${idx + 1}. ${item.name}
279
+ ${hasRecs ? html `<md-icon style="font-size:14px;vertical-align:middle;color:#2e79be;">info</md-icon>` : ''}
202
280
  </td>
203
- <th>공종별 시공 관리자</th>
204
- <td>
205
- <span sign-text>(인)</span>
206
- <ox-input-signature
207
- .value=${this.checklist.taskConstructorSignature}
208
- name="taskConstructorSignature"
209
- @change=${this._onChangeSignature}
210
- ?disabled=${(this.status != BuildingInspectionStatus.WAIT && this.status != BuildingInspectionStatus.FAIL) ||
211
- !isTaskConstructor}
212
- >
213
- </ox-input-signature>
281
+ <td kcs-criteria ?has-kcs=${hasKcs} @click=${hasKcs ? () => this._showKcsDetail(kcs, item.name) : null}>
282
+ ${(kcs === null || kcs === void 0 ? void 0 : kcs.file_label) || ''}
283
+ ${hasKcs ? html `<md-icon style="font-size:14px;vertical-align:middle;color:#2e79be;">search</md-icon>` : ''}
284
+ </td>
285
+ <td
286
+ site-spec-criteria
287
+ ?has-site-spec=${!!siteSpec}
288
+ @click=${siteSpec ? () => this._showSiteSpecDetail(siteSpec, item.name) : null}
289
+ >
290
+ ${this._summarize(siteSpec)}
291
+ ${siteSpec ? html `<md-icon style="font-size:14px;vertical-align:middle;color:#2e79be;">search</md-icon>` : ''}
292
+ </td>
293
+ <td radio>
294
+ <md-radio
295
+ item-id=${item.id}
296
+ item-name="constructionConfirmStatus"
297
+ name=${'radio-construction-' + item.id}
298
+ value="T"
299
+ .checked=${item.constructionConfirmStatus === 'T'}
300
+ ?disabled=${!isConstructorStep || !havePermissionByStatus}
301
+ @change=${this._onChangeConfirmStatus}
302
+ ></md-radio>
214
303
  </td>
215
- </tr>
216
- <tr>
217
- <th>총괄 시공 책임자</th>
218
- <td>
219
- <span sign-text>(인)</span>
220
- <ox-input-signature
221
- .value=${this.checklist.overallConstructorSignature}
222
- name="overallConstructorSignature"
223
- @change=${this._onChangeSignature}
224
- ?disabled=${this.status != BuildingInspectionStatus.OVERALL_WAIT || !isOverallConstructor}
225
- >
226
- </ox-input-signature>
304
+ <td radio>
305
+ <md-radio
306
+ item-id=${item.id}
307
+ item-name="constructionConfirmStatus"
308
+ name=${'radio-construction-' + item.id}
309
+ value="F"
310
+ .checked=${item.constructionConfirmStatus === 'F'}
311
+ ?disabled=${!isConstructorStep || !havePermissionByStatus}
312
+ @change=${this._onChangeConfirmStatus}
313
+ ></md-radio>
227
314
  </td>
228
- </tr>
229
- <tr>
230
- <th rowspan="2">감리자 점검일</th>
231
- <td rowspan="2">
232
- ${this.mode == "VIEWER" /* ChecklistMode.VIEWER */ ? today : this._getDate(this.checklist.supervisorInspectionDate)}
315
+ <td radio>
316
+ <md-radio
317
+ item-id=${item.id}
318
+ item-name="supervisoryConfirmStatus"
319
+ name=${'radio-supervisory-' + item.id}
320
+ value="T"
321
+ .checked=${item.supervisoryConfirmStatus === 'T'}
322
+ ?disabled=${!isSupervisoryStep || !havePermissionByStatus}
323
+ @change=${this._onChangeConfirmStatus}
324
+ ></md-radio>
233
325
  </td>
234
- <th>공종별 감리 책임자</th>
235
- <td>
236
- <span sign-text>(인)</span>
237
- <ox-input-signature
238
- .value=${this.checklist.taskSupervisorySignature}
239
- name="taskSupervisorySignature"
240
- @change=${this._onChangeSignature}
241
- ?disabled=${this.status != BuildingInspectionStatus.REQUEST || !isTaskSupervisory}
242
- >
243
- </ox-input-signature>
326
+ <td radio>
327
+ <md-radio
328
+ item-id=${item.id}
329
+ item-name="supervisoryConfirmStatus"
330
+ name=${'radio-supervisory-' + item.id}
331
+ value="F"
332
+ .checked=${item.supervisoryConfirmStatus === 'F'}
333
+ ?disabled=${!isSupervisoryStep || !havePermissionByStatus}
334
+ @change=${this._onChangeConfirmStatus}
335
+ ></md-radio>
244
336
  </td>
245
- </tr>
246
- <tr>
247
- <th>총괄 감리 책임자</th>
248
- <td>
249
- <span sign-text>(인)</span>
250
- <ox-input-signature
251
- .value=${this.checklist.overallSupervisorySignature}
252
- name="overallSupervisorySignature"
253
- @change=${this._onChangeSignature}
254
- ?disabled=${this.status != BuildingInspectionStatus.OVERALL_REQUEST || !isOverallSupervisory}
255
- >
256
- </ox-input-signature>
337
+ <td
338
+ attachment
339
+ ?disabled=${this.status == BuildingInspectionStatus.PASS}
340
+ @click=${() => this._onClickAttachment(item.id)}
341
+ >
342
+ <md-icon slot="icon">attach_file</md-icon>
343
+ <span>${(item === null || item === void 0 ? void 0 : item.checklistItemAttachmentCount) || ''}</span>
257
344
  </td>
258
- </tr>
259
- </tbody>
260
- </table>
345
+ <td comment ?disabled=${this.status == BuildingInspectionStatus.PASS} @click=${() => this._onClickComment(item.id)}>
346
+ <md-icon slot="icon">chat</md-icon>
347
+ <span>${(item === null || item === void 0 ? void 0 : item.checklistItemCommentCount) || ''}</span>
348
+ </td>
349
+ </tr>`;
350
+ })}
351
+ </tbody>
352
+ </table>
353
+
354
+ <table tail>
355
+ <tbody>
356
+ <tr first>
357
+ <th rowspan="2">시공자 점검일</th>
358
+ <td rowspan="2">
359
+ ${this.mode == "VIEWER" /* ChecklistMode.VIEWER */ ? today : this._getDate(this.checklist.constructionInspectionDate)}
360
+ </td>
361
+ <th>공종별 시공 관리자</th>
362
+ <td>
363
+ <span sign-text>(인)</span>
364
+ <ox-input-signature
365
+ .value=${this.checklist.taskConstructorSignature}
366
+ name="taskConstructorSignature"
367
+ @change=${this._onChangeSignature}
368
+ ?disabled=${(this.status != BuildingInspectionStatus.WAIT && this.status != BuildingInspectionStatus.FAIL) ||
369
+ !isTaskConstructor}
370
+ >
371
+ </ox-input-signature>
372
+ </td>
373
+ </tr>
374
+ <tr>
375
+ <th>총괄 시공 책임자</th>
376
+ <td>
377
+ <span sign-text>(인)</span>
378
+ <ox-input-signature
379
+ .value=${this.checklist.overallConstructorSignature}
380
+ name="overallConstructorSignature"
381
+ @change=${this._onChangeSignature}
382
+ ?disabled=${this.status != BuildingInspectionStatus.OVERALL_WAIT || !isOverallConstructor}
383
+ >
384
+ </ox-input-signature>
385
+ </td>
386
+ </tr>
387
+ <tr>
388
+ <th rowspan="2">감리자 점검일</th>
389
+ <td rowspan="2">
390
+ ${this.mode == "VIEWER" /* ChecklistMode.VIEWER */ ? today : this._getDate(this.checklist.supervisorInspectionDate)}
391
+ </td>
392
+ <th>공종별 감리 책임자</th>
393
+ <td>
394
+ <span sign-text>(인)</span>
395
+ <ox-input-signature
396
+ .value=${this.checklist.taskSupervisorySignature}
397
+ name="taskSupervisorySignature"
398
+ @change=${this._onChangeSignature}
399
+ ?disabled=${this.status != BuildingInspectionStatus.REQUEST || !isTaskSupervisory}
400
+ >
401
+ </ox-input-signature>
402
+ </td>
403
+ </tr>
404
+ <tr>
405
+ <th>총괄 감리 책임자</th>
406
+ <td>
407
+ <span sign-text>(인)</span>
408
+ <ox-input-signature
409
+ .value=${this.checklist.overallSupervisorySignature}
410
+ name="overallSupervisorySignature"
411
+ @change=${this._onChangeSignature}
412
+ ?disabled=${this.status != BuildingInspectionStatus.OVERALL_REQUEST || !isOverallSupervisory}
413
+ >
414
+ </ox-input-signature>
415
+ </td>
416
+ </tr>
417
+ </tbody>
418
+ </table>
261
419
 
262
- <div footer>
263
- <div>
264
- - 검사결과는 1차, 2차로 구분 재검측시 2차에 기록하고 검사기준도 검사결과와 비교될 수 있도록 시방서 또는 도면 등에 있는
265
- 수치를 작성하며, 수치가 없는 검사항목은 시방서 또는 설계도서에 있는 내용과 검사한 내용으로 작성함
266
- </div>
267
- <div>- 검사항목 및 검사기준은 각 공종별로 감리원과 협의하여 작성할 것</div>
420
+ <div footer>
421
+ <div>
422
+ - 검사결과는 1차, 2차로 구분 재검측시 2차에 기록하고 검사기준도 검사결과와 비교될 수 있도록 시방서 또는 도면 등에 있는
423
+ 수치를 작성하며, 수치가 없는 검사항목은 시방서 또는 설계도서에 있는 내용과 검사한 내용으로 작성함
268
424
  </div>
425
+ <div>- 검사항목 및 검사기준은 각 공종별로 감리원과 협의하여 작성할 것</div>
269
426
  </div>
427
+
428
+ ${this._tooltip
429
+ ? html `
430
+ <div recommendation-tooltip style="left:${this._tooltip.x}px;top:${this._tooltip.y}px;">
431
+ <div tooltip-title>추천 검사 항목</div>
432
+ ${this._tooltip.recs.map(r => html `<div tooltip-item>${r}</div>`)}
433
+ </div>
434
+ `
435
+ : ''}
436
+ ${this._kcsDetail
437
+ ? html `<kcs-criteria-popup
438
+ .kcs=${this._kcsDetail}
439
+ .itemName=${this._kcsDetailItem}
440
+ @close=${this._hideKcsDetail}
441
+ ></kcs-criteria-popup>`
442
+ : ''}
443
+ ${this._siteSpecDetail
444
+ ? html `<kcs-criteria-popup
445
+ .popupTitle=${'현장 시방서 기준'}
446
+ .kcs=${{ text: this._siteSpecDetail }}
447
+ .itemName=${this._siteSpecDetailItem}
448
+ @close=${this._hideSiteSpecDetail}
449
+ ></kcs-criteria-popup>`
450
+ : ''}
270
451
  `;
271
452
  }
453
+ // 본문 앞 20글자 요약 (그 뒤는 ... 처리)
454
+ _summarize(text, length = 20) {
455
+ if (!text)
456
+ return '';
457
+ return text.length > length ? `${text.slice(0, length)}...` : text;
458
+ }
459
+ // 현장 시방서 기준 상세(본문 전체)를 팝업으로 표시
460
+ _showSiteSpecDetail(text, itemName = '') {
461
+ this._siteSpecDetail = text;
462
+ this._siteSpecDetailItem = itemName;
463
+ this.requestUpdate();
464
+ }
465
+ // KCS 기준 JSON 문자열을 오브젝트로 파싱 (file_label/clause/text 포함)
466
+ _parseKcs(kcsCriteria) {
467
+ if (!kcsCriteria)
468
+ return null;
469
+ try {
470
+ const obj = JSON.parse(kcsCriteria);
471
+ return obj && (obj.file_label || obj.text) ? obj : null;
472
+ }
473
+ catch (_a) {
474
+ return null;
475
+ }
476
+ }
477
+ // KCS 기준 상세(text)를 팝업으로 표시
478
+ _showKcsDetail(kcs, itemName = '') {
479
+ this._kcsDetail = kcs;
480
+ this._kcsDetailItem = itemName;
481
+ this.requestUpdate();
482
+ }
272
483
  _onChangeConfirmStatus(e) {
273
484
  var _a, _b;
274
485
  const target = e.target;
@@ -278,8 +489,27 @@ let ChecklistView = class ChecklistView extends connect(store)(LitElement) {
278
489
  this.checklist.checklistItems = (_b = (_a = this.checklist) === null || _a === void 0 ? void 0 : _a.checklistItems) === null || _b === void 0 ? void 0 : _b.map(item => item.id == itemId ? Object.assign(Object.assign({}, item), { [name]: value }) : item);
279
490
  }
280
491
  _onChangeSignature(e) {
492
+ var _a;
281
493
  const target = e.target;
494
+ const { name: userName } = (_a = store.getState().auth) === null || _a === void 0 ? void 0 : _a.user;
282
495
  this.checklist[target.name] = target.value;
496
+ // 서명할 때 해당 사용자 ID도 업데이트
497
+ if (userName) {
498
+ switch (target.name) {
499
+ case 'taskConstructorSignature':
500
+ this.checklist.taskConstructor = { name: userName };
501
+ break;
502
+ case 'overallConstructorSignature':
503
+ this.checklist.overallConstructor = { name: userName };
504
+ break;
505
+ case 'taskSupervisorySignature':
506
+ this.checklist.taskSupervisory = { name: userName };
507
+ break;
508
+ case 'overallSupervisorySignature':
509
+ this.checklist.overallSupervisory = { name: userName };
510
+ break;
511
+ }
512
+ }
283
513
  }
284
514
  _getDate(date) {
285
515
  if (!date)
@@ -330,26 +560,20 @@ let ChecklistView = class ChecklistView extends connect(store)(LitElement) {
330
560
  <comment-list-popup
331
561
  .checklistItemId=${checklistItemId}
332
562
  .status=${this.status}
563
+ .mode=${this.mode}
333
564
  @change-comment=${this._refreshItem.bind(this)}
334
565
  ></comment-list-popup>
335
- `, {
336
- backdrop: true,
337
- size: 'medium',
338
- title: '조치 사항'
339
- });
566
+ `, { backdrop: true, size: 'medium', title: '조치 사항' });
340
567
  }
341
568
  _onClickAttachment(checklistItemId) {
342
569
  openPopup(html `
343
570
  <attachment-list-popup
344
571
  .checklistItemId=${checklistItemId}
345
572
  .status=${this.status}
573
+ .mode=${this.mode}
346
574
  @change-attachment=${this._refreshItem.bind(this)}
347
575
  ></attachment-list-popup>
348
- `, {
349
- backdrop: true,
350
- size: 'medium',
351
- title: '첨부 자료'
352
- });
576
+ `, { backdrop: true, size: 'medium', title: '첨부 자료' });
353
577
  }
354
578
  async _refreshItem(e) {
355
579
  var _a;
@@ -374,6 +598,21 @@ let ChecklistView = class ChecklistView extends connect(store)(LitElement) {
374
598
  });
375
599
  this.requestUpdate();
376
600
  }
601
+ _showRecTooltip(e, id, recs) {
602
+ const td = e.currentTarget;
603
+ const rect = td.getBoundingClientRect();
604
+ const tooltipHeight = recs.length * 24 + 40;
605
+ // 위에 공간이 부족하면 아래로
606
+ const showBelow = rect.top < tooltipHeight;
607
+ const x = rect.left;
608
+ const y = showBelow ? rect.bottom + 4 : rect.top - tooltipHeight;
609
+ this._tooltip = { id: String(id), x, y, recs };
610
+ this.requestUpdate();
611
+ }
612
+ _hideRecTooltip() {
613
+ this._tooltip = null;
614
+ this.requestUpdate();
615
+ }
377
616
  };
378
617
  ChecklistView.styles = [
379
618
  ButtonContainerStyles,
@@ -386,6 +625,8 @@ ChecklistView.styles = [
386
625
  padding-top: 0;
387
626
  font-size: 14px;
388
627
  min-width: 800px;
628
+
629
+ position: relative;
389
630
  }
390
631
 
391
632
  [bold] {
@@ -457,7 +698,7 @@ ChecklistView.styles = [
457
698
  width: 270px;
458
699
  }
459
700
  &[criteria] {
460
- width: 90px;
701
+ width: 200px;
461
702
  }
462
703
  &[small] {
463
704
  width: 60px;
@@ -536,6 +777,119 @@ ChecklistView.styles = [
536
777
  text-indent: -9px;
537
778
  padding-left: var(--spacing-medium, 8px);
538
779
  }
780
+
781
+ .stt-float-btns {
782
+ position: absolute;
783
+ top: 0;
784
+ right: 0;
785
+ display: flex;
786
+ gap: 8px;
787
+ z-index: 10;
788
+ }
789
+ .stt-float-btns button {
790
+ background: #fff;
791
+ border: 1px solid #ccc;
792
+ border-radius: 50%;
793
+ width: 38px;
794
+ height: 38px;
795
+ font-size: 18px;
796
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
797
+ cursor: pointer;
798
+ transition: background 0.2s;
799
+ outline: none;
800
+ }
801
+ .stt-float-btns button:hover {
802
+ background: #f2f2f2;
803
+ }
804
+ div[title-row] {
805
+ position: relative;
806
+ display: flex;
807
+ align-items: center;
808
+ justify-content: center;
809
+ margin-bottom: 8px;
810
+ }
811
+ div[name] {
812
+ color: #586878;
813
+ font-size: 24px;
814
+ font-weight: bold;
815
+ flex: 1;
816
+ text-align: center;
817
+ }
818
+
819
+ @keyframes pulse {
820
+ 0% {
821
+ filter: drop-shadow(0 0 0 #d32f2f);
822
+ }
823
+ 70% {
824
+ filter: drop-shadow(0 0 8px #d32f2f);
825
+ }
826
+ 100% {
827
+ filter: drop-shadow(0 0 0 #d32f2f);
828
+ }
829
+ }
830
+
831
+ /* 추천 검사 항목 툴팁 */
832
+ td[has-recommendation] {
833
+ cursor: pointer;
834
+ position: relative;
835
+ }
836
+ td[has-recommendation]:hover {
837
+ background-color: #f0f7ff !important;
838
+ }
839
+ div[recommendation-tooltip] {
840
+ position: fixed;
841
+ z-index: 1000;
842
+ background: #333;
843
+ color: #fff;
844
+ padding: 8px 12px;
845
+ border-radius: 6px;
846
+ font-size: 13px;
847
+ max-width: 350px;
848
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
849
+ line-height: 1.6;
850
+ pointer-events: none;
851
+ }
852
+ div[recommendation-tooltip] div[tooltip-title] {
853
+ font-weight: bold;
854
+ color: #8fc9ff;
855
+ margin-bottom: 4px;
856
+ font-size: 12px;
857
+ }
858
+ div[recommendation-tooltip] div[tooltip-item] {
859
+ padding-left: 8px;
860
+ }
861
+ div[recommendation-tooltip] div[tooltip-item]::before {
862
+ content: '• ';
863
+ color: #8fc9ff;
864
+ }
865
+
866
+ /* KCS 시방서 기준 셀 (클릭 시 상세 팝업) */
867
+ td[kcs-criteria][has-kcs] {
868
+ cursor: pointer;
869
+ color: #2e79be;
870
+ }
871
+ td[kcs-criteria][has-kcs]:hover {
872
+ background-color: #f0f7ff !important;
873
+ }
874
+ td[site-spec-criteria][has-site-spec] {
875
+ cursor: pointer;
876
+ color: #2e79be;
877
+ }
878
+ td[site-spec-criteria][has-site-spec]:hover {
879
+ background-color: #f0f7ff !important;
880
+ }
881
+
882
+ .stt-fab {
883
+ position: fixed;
884
+ top: 100px;
885
+ right: 20px;
886
+ z-index: 1;
887
+ }
888
+
889
+ .stt-fab[active] md-icon {
890
+ color: #d32f2f;
891
+ animation: pulse 1s infinite;
892
+ }
539
893
  `
540
894
  ];
541
895
  __decorate([
@@ -546,6 +900,10 @@ __decorate([
546
900
  property({ type: Object }),
547
901
  __metadata("design:type", Object)
548
902
  ], ChecklistView.prototype, "checklist", void 0);
903
+ __decorate([
904
+ property({ type: Object }),
905
+ __metadata("design:type", Object)
906
+ ], ChecklistView.prototype, "manager", void 0);
549
907
  __decorate([
550
908
  property({ type: Object }),
551
909
  __metadata("design:type", Object)
@@ -554,6 +912,14 @@ __decorate([
554
912
  property({ type: String }),
555
913
  __metadata("design:type", String)
556
914
  ], ChecklistView.prototype, "status", void 0);
915
+ __decorate([
916
+ property({ type: Number }),
917
+ __metadata("design:type", Number)
918
+ ], ChecklistView.prototype, "failCount", void 0);
919
+ __decorate([
920
+ property({ type: String }),
921
+ __metadata("design:type", String)
922
+ ], ChecklistView.prototype, "projectType", void 0);
557
923
  ChecklistView = __decorate([
558
924
  customElement('checklist-view')
559
925
  ], ChecklistView);