@dssp/supervision 1.0.0-alpha.9 → 1.0.0-alpha.92

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 (360) 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-list-page.d.ts +1 -2
  5. package/dist-client/pages/action-plan/action-plan-list-page.js +1 -2
  6. package/dist-client/pages/action-plan/action-plan-list-page.js.map +1 -1
  7. package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.d.ts +22 -0
  8. package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js +171 -0
  9. package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js.map +1 -0
  10. package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.d.ts +59 -0
  11. package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js +868 -0
  12. package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js.map +1 -0
  13. package/dist-client/pages/building-inspection/building-inspection-detail-camera.d.ts +8 -6
  14. package/dist-client/pages/building-inspection/building-inspection-detail-camera.js +116 -65
  15. package/dist-client/pages/building-inspection/building-inspection-detail-camera.js.map +1 -1
  16. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.d.ts +11 -0
  17. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js +147 -72
  18. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js.map +1 -1
  19. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.d.ts +1 -0
  20. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js +78 -14
  21. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js.map +1 -1
  22. package/dist-client/pages/building-inspection/building-inspection-list.d.ts +26 -2
  23. package/dist-client/pages/building-inspection/building-inspection-list.js +375 -34
  24. package/dist-client/pages/building-inspection/building-inspection-list.js.map +1 -1
  25. package/dist-client/pages/building-inspection/building-inspection-management.d.ts +81 -0
  26. package/dist-client/pages/building-inspection/building-inspection-management.js +1512 -0
  27. package/dist-client/pages/building-inspection/building-inspection-management.js.map +1 -0
  28. package/dist-client/pages/building-inspection/component/building-inspection-detail-header.d.ts +3 -0
  29. package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js +112 -20
  30. package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js.map +1 -1
  31. package/dist-client/pages/building-inspection/component/daily-worklog-popup.d.ts +27 -0
  32. package/dist-client/pages/building-inspection/component/daily-worklog-popup.js +542 -0
  33. package/dist-client/pages/building-inspection/component/daily-worklog-popup.js.map +1 -0
  34. package/dist-client/pages/building-inspection/component/field-document/field-document-constants.d.ts +18 -0
  35. package/dist-client/pages/building-inspection/component/field-document/field-document-constants.js +630 -0
  36. package/dist-client/pages/building-inspection/component/field-document/field-document-constants.js.map +1 -0
  37. package/dist-client/pages/building-inspection/component/field-document/field-document-detail-popup.d.ts +10 -0
  38. package/dist-client/pages/building-inspection/component/field-document/field-document-detail-popup.js +219 -0
  39. package/dist-client/pages/building-inspection/component/field-document/field-document-detail-popup.js.map +1 -0
  40. package/dist-client/pages/building-inspection/component/field-document/field-document-list-panel.d.ts +25 -0
  41. package/dist-client/pages/building-inspection/component/field-document/field-document-list-panel.js +545 -0
  42. package/dist-client/pages/building-inspection/component/field-document/field-document-list-panel.js.map +1 -0
  43. package/dist-client/pages/building-inspection/component/field-document/field-document-popup.d.ts +39 -0
  44. package/dist-client/pages/building-inspection/component/field-document/field-document-popup.js +675 -0
  45. package/dist-client/pages/building-inspection/component/field-document/field-document-popup.js.map +1 -0
  46. package/dist-client/pages/building-inspection/component/image-preview-popup.d.ts +15 -0
  47. package/dist-client/pages/building-inspection/component/image-preview-popup.js +348 -0
  48. package/dist-client/pages/building-inspection/component/image-preview-popup.js.map +1 -0
  49. package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.d.ts +25 -0
  50. package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js +491 -0
  51. package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js.map +1 -0
  52. package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.d.ts +31 -0
  53. package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js +485 -0
  54. package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js.map +1 -0
  55. package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.d.ts +27 -0
  56. package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js +416 -0
  57. package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js.map +1 -0
  58. package/dist-client/pages/building-inspection/component/inspection-event-provider.d.ts +4 -2
  59. package/dist-client/pages/building-inspection/component/inspection-event-provider.js +156 -37
  60. package/dist-client/pages/building-inspection/component/inspection-event-provider.js.map +1 -1
  61. package/dist-client/pages/building-inspection/inspection-create-popup.js +23 -12
  62. package/dist-client/pages/building-inspection/inspection-create-popup.js.map +1 -1
  63. package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.d.ts +3 -0
  64. package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.js +817 -0
  65. package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.js.map +1 -0
  66. package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.d.ts +16 -2
  67. package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js +250 -45
  68. package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js.map +1 -1
  69. package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js +10 -6
  70. package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js.map +1 -1
  71. package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.d.ts +19 -0
  72. package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js +205 -0
  73. package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js.map +1 -0
  74. package/dist-client/pages/checklist/attachment-list-popup.d.ts +1 -0
  75. package/dist-client/pages/checklist/attachment-list-popup.js +251 -69
  76. package/dist-client/pages/checklist/attachment-list-popup.js.map +1 -1
  77. package/dist-client/pages/checklist/checklist-view.d.ts +5 -4
  78. package/dist-client/pages/checklist/checklist-view.js +305 -37
  79. package/dist-client/pages/checklist/checklist-view.js.map +1 -1
  80. package/dist-client/pages/checklist/comment-list-popup.js +15 -5
  81. package/dist-client/pages/checklist/comment-list-popup.js.map +1 -1
  82. package/dist-client/pages/checklist/file-preview-popup.js +0 -1
  83. package/dist-client/pages/checklist/file-preview-popup.js.map +1 -1
  84. package/dist-client/pages/checklist/inspection-info-popup.d.ts +49 -0
  85. package/dist-client/pages/checklist/inspection-info-popup.js +683 -0
  86. package/dist-client/pages/checklist/inspection-info-popup.js.map +1 -0
  87. package/dist-client/pages/checklist/inspection-tab-popup.d.ts +18 -0
  88. package/dist-client/pages/checklist/inspection-tab-popup.js +196 -0
  89. package/dist-client/pages/checklist/inspection-tab-popup.js.map +1 -0
  90. package/dist-client/pages/checklist-database/checklist-database.d.ts +35 -0
  91. package/dist-client/pages/checklist-database/checklist-database.js +540 -0
  92. package/dist-client/pages/checklist-database/checklist-database.js.map +1 -0
  93. package/dist-client/pages/checklist-template/checklist-template-item.js +39 -3
  94. package/dist-client/pages/checklist-template/checklist-template-item.js.map +1 -1
  95. package/dist-client/pages/checklist-template/checklist-template-list.js +3 -2
  96. package/dist-client/pages/checklist-template/checklist-template-list.js.map +1 -1
  97. package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.d.ts +2 -0
  98. package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.js +223 -0
  99. package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.js.map +1 -0
  100. package/dist-client/pages/checklist-template/construction-checklist-template-list.d.ts +55 -0
  101. package/dist-client/pages/checklist-template/construction-checklist-template-list.js +404 -0
  102. package/dist-client/pages/checklist-template/construction-checklist-template-list.js.map +1 -0
  103. package/dist-client/pages/issue/issue-list-page.d.ts +1 -2
  104. package/dist-client/pages/issue/issue-list-page.js +1 -2
  105. package/dist-client/pages/issue/issue-list-page.js.map +1 -1
  106. package/dist-client/pages/project-checklist/project-checklist-management.d.ts +58 -0
  107. package/dist-client/pages/project-checklist/project-checklist-management.js +1076 -0
  108. package/dist-client/pages/project-checklist/project-checklist-management.js.map +1 -0
  109. package/dist-client/pages/project-report/project-report-list-page.d.ts +1 -2
  110. package/dist-client/pages/project-report/project-report-list-page.js +1 -2
  111. package/dist-client/pages/project-report/project-report-list-page.js.map +1 -1
  112. package/dist-client/pages/supervisor/supervisor-list-page.d.ts +1 -2
  113. package/dist-client/pages/supervisor/supervisor-list-page.js +1 -2
  114. package/dist-client/pages/supervisor/supervisor-list-page.js.map +1 -1
  115. package/dist-client/route.d.ts +1 -1
  116. package/dist-client/route.js +18 -0
  117. package/dist-client/route.js.map +1 -1
  118. package/dist-client/stt/speech-to-text.d.ts +13 -8
  119. package/dist-client/stt/speech-to-text.js +282 -40
  120. package/dist-client/stt/speech-to-text.js.map +1 -1
  121. package/dist-client/tsconfig.tsbuildinfo +1 -1
  122. package/dist-server/service/action-plan/action-plan-mutation.js +5 -6
  123. package/dist-server/service/action-plan/action-plan-mutation.js.map +1 -1
  124. package/dist-server/service/action-plan/action-plan-query.d.ts +2 -2
  125. package/dist-server/service/action-plan/action-plan-query.js +5 -11
  126. package/dist-server/service/action-plan/action-plan-query.js.map +1 -1
  127. package/dist-server/service/building-inspection/building-inspection-mutation.d.ts +2 -3
  128. package/dist-server/service/building-inspection/building-inspection-mutation.js +102 -34
  129. package/dist-server/service/building-inspection/building-inspection-mutation.js.map +1 -1
  130. package/dist-server/service/building-inspection/building-inspection-query.d.ts +9 -7
  131. package/dist-server/service/building-inspection/building-inspection-query.js +168 -52
  132. package/dist-server/service/building-inspection/building-inspection-query.js.map +1 -1
  133. package/dist-server/service/building-inspection/building-inspection-type.d.ts +32 -11
  134. package/dist-server/service/building-inspection/building-inspection-type.js +111 -23
  135. package/dist-server/service/building-inspection/building-inspection-type.js.map +1 -1
  136. package/dist-server/service/building-inspection/building-inspection.d.ts +5 -0
  137. package/dist-server/service/building-inspection/building-inspection.js +37 -4
  138. package/dist-server/service/building-inspection/building-inspection.js.map +1 -1
  139. package/dist-server/service/building-inspection/index.d.ts +3 -4
  140. package/dist-server/service/building-inspection/index.js +10 -3
  141. package/dist-server/service/building-inspection/index.js.map +1 -1
  142. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.d.ts +6 -0
  143. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js +66 -0
  144. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js.map +1 -0
  145. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.d.ts +16 -0
  146. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js +171 -0
  147. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js.map +1 -0
  148. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.d.ts +23 -0
  149. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js +90 -0
  150. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js.map +1 -0
  151. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.d.ts +33 -0
  152. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js +132 -0
  153. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js.map +1 -0
  154. package/dist-server/service/building-inspection-daily-worklog/index.d.ts +5 -0
  155. package/dist-server/service/building-inspection-daily-worklog/index.js +9 -0
  156. package/dist-server/service/building-inspection-daily-worklog/index.js.map +1 -0
  157. package/dist-server/service/building-inspection-history/building-inspection-history-query.d.ts +16 -0
  158. package/dist-server/service/building-inspection-history/building-inspection-history-query.js +120 -0
  159. package/dist-server/service/building-inspection-history/building-inspection-history-query.js.map +1 -0
  160. package/dist-server/service/building-inspection-history/building-inspection-history-type.d.ts +5 -0
  161. package/dist-server/service/building-inspection-history/building-inspection-history-type.js +21 -0
  162. package/dist-server/service/building-inspection-history/building-inspection-history-type.js.map +1 -0
  163. package/dist-server/service/building-inspection-history/building-inspection-history.d.ts +35 -0
  164. package/dist-server/service/building-inspection-history/building-inspection-history.js +162 -0
  165. package/dist-server/service/building-inspection-history/building-inspection-history.js.map +1 -0
  166. package/dist-server/service/building-inspection-history/event-subscriber.d.ts +7 -0
  167. package/dist-server/service/building-inspection-history/event-subscriber.js +21 -0
  168. package/dist-server/service/building-inspection-history/event-subscriber.js.map +1 -0
  169. package/dist-server/service/building-inspection-history/index.d.ts +6 -0
  170. package/dist-server/service/building-inspection-history/index.js +10 -0
  171. package/dist-server/service/building-inspection-history/index.js.map +1 -0
  172. package/dist-server/service/checklist/checklist-mutation.d.ts +0 -5
  173. package/dist-server/service/checklist/checklist-mutation.js +1 -67
  174. package/dist-server/service/checklist/checklist-mutation.js.map +1 -1
  175. package/dist-server/service/checklist/checklist-query.d.ts +7 -0
  176. package/dist-server/service/checklist/checklist-query.js +83 -0
  177. package/dist-server/service/checklist/checklist-query.js.map +1 -1
  178. package/dist-server/service/checklist/checklist-type.d.ts +0 -13
  179. package/dist-server/service/checklist/checklist-type.js +1 -49
  180. package/dist-server/service/checklist/checklist-type.js.map +1 -1
  181. package/dist-server/service/checklist/checklist.d.ts +24 -7
  182. package/dist-server/service/checklist/checklist.js +75 -30
  183. package/dist-server/service/checklist/checklist.js.map +1 -1
  184. package/dist-server/service/checklist/event-subscriber.d.ts +7 -0
  185. package/dist-server/service/checklist/event-subscriber.js +21 -0
  186. package/dist-server/service/checklist/event-subscriber.js.map +1 -0
  187. package/dist-server/service/checklist/index.d.ts +1 -2
  188. package/dist-server/service/checklist/index.js +1 -2
  189. package/dist-server/service/checklist/index.js.map +1 -1
  190. package/dist-server/service/checklist-history/checklist-history-query.d.ts +11 -0
  191. package/dist-server/service/checklist-history/checklist-history-query.js +77 -0
  192. package/dist-server/service/checklist-history/checklist-history-query.js.map +1 -0
  193. package/dist-server/service/checklist-history/checklist-history-type.d.ts +5 -0
  194. package/dist-server/service/checklist-history/checklist-history-type.js +21 -0
  195. package/dist-server/service/checklist-history/checklist-history-type.js.map +1 -0
  196. package/dist-server/service/{checklist → checklist-history}/checklist-history.d.ts +19 -1
  197. package/dist-server/service/{checklist → checklist-history}/checklist-history.js +97 -14
  198. package/dist-server/service/checklist-history/checklist-history.js.map +1 -0
  199. package/dist-server/service/checklist-history/event-subscriber.d.ts +7 -0
  200. package/dist-server/service/checklist-history/event-subscriber.js +21 -0
  201. package/dist-server/service/checklist-history/event-subscriber.js.map +1 -0
  202. package/dist-server/service/checklist-history/index.d.ts +6 -0
  203. package/dist-server/service/checklist-history/index.js +10 -0
  204. package/dist-server/service/checklist-history/index.js.map +1 -0
  205. package/dist-server/service/checklist-item/checklist-item-query.d.ts +1 -1
  206. package/dist-server/service/checklist-item/checklist-item-query.js +5 -3
  207. package/dist-server/service/checklist-item/checklist-item-query.js.map +1 -1
  208. package/dist-server/service/checklist-item/checklist-item.d.ts +2 -0
  209. package/dist-server/service/checklist-item/checklist-item.js +11 -1
  210. package/dist-server/service/checklist-item/checklist-item.js.map +1 -1
  211. package/dist-server/service/checklist-item/index.d.ts +0 -1
  212. package/dist-server/service/checklist-item/index.js +1 -2
  213. package/dist-server/service/checklist-item/index.js.map +1 -1
  214. package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.d.ts +1 -0
  215. package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js +33 -6
  216. package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js.map +1 -1
  217. package/dist-server/service/checklist-item-history/checklist-item-history-query.d.ts +16 -0
  218. package/dist-server/service/checklist-item-history/checklist-item-history-query.js +123 -0
  219. package/dist-server/service/checklist-item-history/checklist-item-history-query.js.map +1 -0
  220. package/dist-server/service/checklist-item-history/checklist-item-history-type.d.ts +5 -0
  221. package/dist-server/service/checklist-item-history/checklist-item-history-type.js +21 -0
  222. package/dist-server/service/checklist-item-history/checklist-item-history-type.js.map +1 -0
  223. package/dist-server/service/checklist-item-history/checklist-item-history.d.ts +27 -0
  224. package/dist-server/service/checklist-item-history/checklist-item-history.js +133 -0
  225. package/dist-server/service/checklist-item-history/checklist-item-history.js.map +1 -0
  226. package/dist-server/service/checklist-item-history/event-subscriber.d.ts +7 -0
  227. package/dist-server/service/checklist-item-history/event-subscriber.js +21 -0
  228. package/dist-server/service/checklist-item-history/event-subscriber.js.map +1 -0
  229. package/dist-server/service/checklist-item-history/index.d.ts +6 -0
  230. package/dist-server/service/checklist-item-history/index.js +10 -0
  231. package/dist-server/service/checklist-item-history/index.js.map +1 -0
  232. package/dist-server/service/checklist-template/checklist-template-query.d.ts +1 -1
  233. package/dist-server/service/checklist-template/checklist-template-query.js +2 -5
  234. package/dist-server/service/checklist-template/checklist-template-query.js.map +1 -1
  235. package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js +13 -1
  236. package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js.map +1 -1
  237. package/dist-server/service/checklist-template-item/checklist-template-item-type.d.ts +3 -0
  238. package/dist-server/service/checklist-template-item/checklist-template-item-type.js +9 -0
  239. package/dist-server/service/checklist-template-item/checklist-template-item-type.js.map +1 -1
  240. package/dist-server/service/checklist-template-item/checklist-template-item.d.ts +7 -0
  241. package/dist-server/service/checklist-template-item/checklist-template-item.js +22 -2
  242. package/dist-server/service/checklist-template-item/checklist-template-item.js.map +1 -1
  243. package/dist-server/service/checklist-template-item/spec-matching-service.d.ts +2 -0
  244. package/dist-server/service/checklist-template-item/spec-matching-service.js +51 -0
  245. package/dist-server/service/checklist-template-item/spec-matching-service.js.map +1 -0
  246. package/dist-server/service/checklist-type/checklist-type-query.d.ts +1 -1
  247. package/dist-server/service/checklist-type/checklist-type-query.js +2 -5
  248. package/dist-server/service/checklist-type/checklist-type-query.js.map +1 -1
  249. package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.d.ts +7 -0
  250. package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.js +107 -0
  251. package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.js.map +1 -0
  252. package/dist-server/service/construction-checklist-template/construction-checklist-template-query.d.ts +10 -0
  253. package/dist-server/service/construction-checklist-template/construction-checklist-template-query.js +62 -0
  254. package/dist-server/service/construction-checklist-template/construction-checklist-template-query.js.map +1 -0
  255. package/dist-server/service/construction-checklist-template/construction-checklist-template-type.d.ts +11 -0
  256. package/dist-server/service/construction-checklist-template/construction-checklist-template-type.js +43 -0
  257. package/dist-server/service/construction-checklist-template/construction-checklist-template-type.js.map +1 -0
  258. package/dist-server/service/construction-checklist-template/construction-checklist-template.d.ts +18 -0
  259. package/dist-server/service/construction-checklist-template/construction-checklist-template.js +80 -0
  260. package/dist-server/service/construction-checklist-template/construction-checklist-template.js.map +1 -0
  261. package/dist-server/service/construction-checklist-template/index.d.ts +5 -0
  262. package/dist-server/service/construction-checklist-template/index.js +9 -0
  263. package/dist-server/service/construction-checklist-template/index.js.map +1 -0
  264. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.d.ts +6 -0
  265. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.js +56 -0
  266. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.js.map +1 -0
  267. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.d.ts +9 -0
  268. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.js +53 -0
  269. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.js.map +1 -0
  270. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.d.ts +17 -0
  271. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.js +67 -0
  272. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.js.map +1 -0
  273. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.d.ts +24 -0
  274. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.js +113 -0
  275. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.js.map +1 -0
  276. package/dist-server/service/construction-checklist-template-item/index.d.ts +5 -0
  277. package/dist-server/service/construction-checklist-template-item/index.js +9 -0
  278. package/dist-server/service/construction-checklist-template-item/index.js.map +1 -0
  279. package/dist-server/service/field-document/field-document-auto-file.d.ts +21 -0
  280. package/dist-server/service/field-document/field-document-auto-file.js +47 -0
  281. package/dist-server/service/field-document/field-document-auto-file.js.map +1 -0
  282. package/dist-server/service/field-document/field-document-mutation.d.ts +9 -0
  283. package/dist-server/service/field-document/field-document-mutation.js +136 -0
  284. package/dist-server/service/field-document/field-document-mutation.js.map +1 -0
  285. package/dist-server/service/field-document/field-document-query.d.ts +14 -0
  286. package/dist-server/service/field-document/field-document-query.js +120 -0
  287. package/dist-server/service/field-document/field-document-query.js.map +1 -0
  288. package/dist-server/service/field-document/field-document-summary-service.d.ts +2 -0
  289. package/dist-server/service/field-document/field-document-summary-service.js +55 -0
  290. package/dist-server/service/field-document/field-document-summary-service.js.map +1 -0
  291. package/dist-server/service/field-document/field-document-type.d.ts +23 -0
  292. package/dist-server/service/field-document/field-document-type.js +84 -0
  293. package/dist-server/service/field-document/field-document-type.js.map +1 -0
  294. package/dist-server/service/field-document/field-document.d.ts +29 -0
  295. package/dist-server/service/field-document/field-document.js +127 -0
  296. package/dist-server/service/field-document/field-document.js.map +1 -0
  297. package/dist-server/service/field-document/index.d.ts +5 -0
  298. package/dist-server/service/field-document/index.js +9 -0
  299. package/dist-server/service/field-document/index.js.map +1 -0
  300. package/dist-server/service/index.d.ts +9 -1
  301. package/dist-server/service/index.js +42 -3
  302. package/dist-server/service/index.js.map +1 -1
  303. package/dist-server/service/issue/issue-mutation.js +5 -6
  304. package/dist-server/service/issue/issue-mutation.js.map +1 -1
  305. package/dist-server/service/issue/issue-query.d.ts +2 -2
  306. package/dist-server/service/issue/issue-query.js +5 -11
  307. package/dist-server/service/issue/issue-query.js.map +1 -1
  308. package/dist-server/service/project-checklist/index.d.ts +5 -0
  309. package/dist-server/service/project-checklist/index.js +9 -0
  310. package/dist-server/service/project-checklist/index.js.map +1 -0
  311. package/dist-server/service/project-checklist/project-checklist-mutation.d.ts +7 -0
  312. package/dist-server/service/project-checklist/project-checklist-mutation.js +118 -0
  313. package/dist-server/service/project-checklist/project-checklist-mutation.js.map +1 -0
  314. package/dist-server/service/project-checklist/project-checklist-query.d.ts +12 -0
  315. package/dist-server/service/project-checklist/project-checklist-query.js +76 -0
  316. package/dist-server/service/project-checklist/project-checklist-query.js.map +1 -0
  317. package/dist-server/service/project-checklist/project-checklist-type.d.ts +18 -0
  318. package/dist-server/service/project-checklist/project-checklist-type.js +69 -0
  319. package/dist-server/service/project-checklist/project-checklist-type.js.map +1 -0
  320. package/dist-server/service/project-checklist/project-checklist.d.ts +20 -0
  321. package/dist-server/service/project-checklist/project-checklist.js +90 -0
  322. package/dist-server/service/project-checklist/project-checklist.js.map +1 -0
  323. package/dist-server/service/project-checklist/spec-matching-service.d.ts +17 -0
  324. package/dist-server/service/project-checklist/spec-matching-service.js +85 -0
  325. package/dist-server/service/project-checklist/spec-matching-service.js.map +1 -0
  326. package/dist-server/service/project-checklist-item/index.d.ts +4 -0
  327. package/dist-server/service/project-checklist-item/index.js +9 -0
  328. package/dist-server/service/project-checklist-item/index.js.map +1 -0
  329. package/dist-server/service/project-checklist-item/project-checklist-item-mutation.d.ts +2 -0
  330. package/dist-server/service/project-checklist-item/project-checklist-item-mutation.js +13 -0
  331. package/dist-server/service/project-checklist-item/project-checklist-item-mutation.js.map +1 -0
  332. package/dist-server/service/project-checklist-item/project-checklist-item-query.d.ts +5 -0
  333. package/dist-server/service/project-checklist-item/project-checklist-item-query.js +34 -0
  334. package/dist-server/service/project-checklist-item/project-checklist-item-query.js.map +1 -0
  335. package/dist-server/service/project-checklist-item/project-checklist-item-type.d.ts +5 -0
  336. package/dist-server/service/project-checklist-item/project-checklist-item-type.js +21 -0
  337. package/dist-server/service/project-checklist-item/project-checklist-item-type.js.map +1 -0
  338. package/dist-server/service/project-checklist-item/project-checklist-item.d.ts +19 -0
  339. package/dist-server/service/project-checklist-item/project-checklist-item.js +92 -0
  340. package/dist-server/service/project-checklist-item/project-checklist-item.js.map +1 -0
  341. package/dist-server/service/project-report/project-report-mutation.js +5 -6
  342. package/dist-server/service/project-report/project-report-mutation.js.map +1 -1
  343. package/dist-server/service/project-report/project-report-query.d.ts +2 -2
  344. package/dist-server/service/project-report/project-report-query.js +5 -11
  345. package/dist-server/service/project-report/project-report-query.js.map +1 -1
  346. package/dist-server/service/project-report/project-report.d.ts +0 -2
  347. package/dist-server/service/project-report/project-report.js +0 -6
  348. package/dist-server/service/project-report/project-report.js.map +1 -1
  349. package/dist-server/service/supervisor/supervisor-mutation.js +5 -6
  350. package/dist-server/service/supervisor/supervisor-mutation.js.map +1 -1
  351. package/dist-server/service/supervisor/supervisor-query.d.ts +2 -2
  352. package/dist-server/service/supervisor/supervisor-query.js +5 -11
  353. package/dist-server/service/supervisor/supervisor-query.js.map +1 -1
  354. package/dist-server/tsconfig.tsbuildinfo +1 -1
  355. package/package.json +14 -13
  356. package/things-factory.config.js +9 -1
  357. package/dist-server/service/building-inspection/building-inspection-history.d.ts +0 -17
  358. package/dist-server/service/building-inspection/building-inspection-history.js +0 -86
  359. package/dist-server/service/building-inspection/building-inspection-history.js.map +0 -1
  360. package/dist-server/service/checklist/checklist-history.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"attachment-list-popup.js","sourceRoot":"","sources":["../../../client/pages/checklist/attachment-list-popup.ts"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAA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AAI,EAAE,MAAM,EAAE,CAAC;;4DAA6B;AAC5B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mDAAiE;AAEnF;IAAR,KAAK,EAAE;;iDAAyB;AACxB;IAAR,KAAK,EAAE;;qEAAmC;AAClC;IAAR,KAAK,EAAE;;yEAAyC;AACxC;IAAR,KAAK,EAAE;8BAAO,IAAI;iDAAK;AACY;IAAnC,KAAK,CAAC,2BAA2B,CAAC;8BAAuB,cAAc;gEAAA;AAzFpE,mBAAmB;IADxB,aAAa,CAAC,uBAAuB,CAAC;GACjC,mBAAmB,CA6RxB","sourcesContent":["import '@material/web/icon/icon.js'\nimport gql from 'graphql-tag'\nimport { client } from '@operato/graphql'\nimport { css, html, LitElement } from 'lit'\nimport { customElement, property, query, state } from 'lit/decorators.js'\nimport { ButtonContainerStyles, ScrollbarStyles } from '@operato/styles'\nimport { notify } from '@operato/layout'\nimport { store, User } from '@operato/shell'\nimport { connect } from 'pwa-helpers/connect-mixin.js'\nimport { OxPrompt } from '@operato/popup/ox-prompt.js'\nimport { openPopup } from '@operato/layout'\nimport './file-preview-popup'\nimport { BuildingInspectionStatus } from '../building-inspection/building-inspection-list'\n\n@customElement('attachment-list-popup')\nclass AttachmentListPopup extends connect(store)(LitElement) {\n static styles = [\n ButtonContainerStyles,\n ScrollbarStyles,\n css`\n :host {\n display: flex;\n flex-direction: column;\n padding: 15px 20px;\n background-color: var(--md-sys-color-surface);\n }\n\n div[body] {\n height: 100%;\n display: flex;\n flex-direction: column;\n gap: 12px;\n }\n\n div[attachment-container] {\n overflow-y: auto;\n gap: 10px;\n display: flex;\n flex-direction: column;\n flex: 1;\n\n div[attachment-row] {\n display: flex;\n flex-direction: column;\n\n div[creator-container] {\n display: flex;\n justify-content: space-between;\n\n span[creator] {\n font-weight: 600;\n display: flex;\n align-items: center;\n gap: 3px;\n }\n span[createdAt] {\n display: flex;\n align-items: center;\n gap: 3px;\n\n md-icon[delete] {\n cursor: pointer;\n }\n\n a[button-download] {\n display: flex;\n color: #000;\n }\n }\n }\n\n a[attachment] {\n margin-left: 20px;\n text-decoration: none;\n color: #000;\n }\n }\n }\n\n h3 {\n position: relative;\n color: rgb(5, 149, 229);\n font-size: 17px;\n font-weight: 700;\n background-color: var(--md-sys-color-surface);\n margin-top: 0px;\n margin-bottom: 5px;\n }\n\n div[button-container] {\n display: flex;\n justify-content: flex-end;\n gap: 10px;\n }\n `\n ]\n\n @property({ type: String }) checklistItemId: string = ''\n @property({ type: String }) status: BuildingInspectionStatus = BuildingInspectionStatus.WAIT\n\n @state() item: any = { count: 0 }\n @state() checklistItemAttachments: any = []\n @state() checklistItemAttachmentCount: number = 0\n @state() user: User = {}\n @query('div[attachment-container]') attachmentContainer!: HTMLDivElement\n\n render() {\n return html`\n <div body>\n <h3>제품검사에 대한 파일: ${this.checklistItemAttachmentCount || 0}건</h3>\n\n <div attachment-container>\n ${this.checklistItemAttachments.map(attachment => {\n return html`\n <div attachment-row>\n <div creator-container>\n <span creator><md-icon slot=\"icon\">account_circle</md-icon> ${attachment.creator.name}</span>\n <span createdAt>\n <md-icon slot=\"icon\">schedule</md-icon> ${this._formatDate(attachment.createdAt)}\n ${attachment.creator.email === this.user.email && this.status != BuildingInspectionStatus.PASS\n ? html` <md-icon delete slot=\"icon\" @click=${() => this._deleteAttachment(attachment.id)}>delete</md-icon>`\n : ''}\n <a button-download href=${attachment.fullpath} download=${attachment.name}>\n <md-icon slot=\"icon\">download</md-icon></a\n >\n </span>\n </div>\n <a attachment @click=${() => this._onClickPreview(attachment.fullpath)}>${attachment.name}</a>\n </div>\n `\n })}\n </div>\n\n <ox-input-file\n accept=\"*/*\"\n multiple=\"true\"\n hide-filelist\n ?disabled=${this.status == BuildingInspectionStatus.PASS}\n @change=${this.onCreateAttachment.bind(this)}\n ></ox-input-file>\n\n <div button-container>\n <md-elevated-button @click=${this._close}> <md-icon slot=\"icon\">cancel</md-icon>취소 </md-elevated-button>\n </div>\n </div>\n `\n }\n\n async firstUpdated() {\n this.user = (store.getState() as any).auth?.user\n\n await this._loadAttachments()\n }\n\n private async _loadAttachments() {\n const response = await client.query({\n query: gql`\n query ChecklistItem($id: String!) {\n checklistItem(id: $id) {\n id\n checklistItemAttachmentCount\n checklistItemAttachments {\n id\n name\n fullpath\n creator {\n id\n name\n email\n }\n createdAt\n }\n }\n }\n `,\n variables: {\n id: this.checklistItemId\n }\n })\n\n if (response.errors) return\n\n this.checklistItemAttachments = response.data.checklistItem.checklistItemAttachments || []\n this.checklistItemAttachmentCount = response.data.checklistItem.checklistItemAttachmentCount\n }\n\n private async _deleteAttachment(attachmentId: string) {\n if (this.status == BuildingInspectionStatus.PASS) {\n notify({ message: '완료 상태인 검측정보를 변경할 수 없습니다.', level: 'error' })\n return\n }\n\n if (\n await OxPrompt.open({\n title: '첨부 자료를 삭제',\n text: '첨부 자료를 삭제 하시겠습니까?',\n confirmButton: { text: '삭제' },\n cancelButton: { text: '취소' }\n })\n ) {\n const response = await client.mutate({\n mutation: gql`\n mutation DeleteAttachment($deleteAttachmentId: String!) {\n deleteAttachment(id: $deleteAttachmentId)\n }\n `,\n variables: {\n deleteAttachmentId: attachmentId\n }\n })\n\n if (!response.errors) {\n this.checklistItemAttachments = [...this.checklistItemAttachments.filter(attachment => attachment.id != attachmentId)]\n notify({ message: '첨부 자료를 삭제하였습니다.', level: 'info' })\n } else {\n notify({ message: response.errors?.[0]?.message || '첨부 자료 삭제에 실패하였습니다.', level: 'error' })\n }\n\n this._dispatchEvent()\n }\n }\n\n private _close() {\n history.back()\n }\n\n // 파일 변경 시 파일을 저장할 핸들러\n private async onCreateAttachment(e: CustomEvent) {\n if (this.status == BuildingInspectionStatus.PASS) {\n notify({ message: '완료 상태인 검측정보를 변경할 수 없습니다.', level: 'error' })\n return\n }\n\n const files = e.detail\n\n await this._createAttachments(files)\n\n this._dispatchEvent()\n }\n\n async _createAttachments(files: File[]) {\n const checklistItemId = this.checklistItemId\n\n const response = await client.mutate({\n mutation: gql`\n mutation ($attachments: [NewAttachment!]!) {\n createAttachments(attachments: $attachments) {\n id\n name\n fullpath\n creator {\n id\n name\n email\n }\n createdAt\n }\n }\n `,\n variables: {\n attachments: files.map(file => {\n return { file, refBy: checklistItemId, refType: 'ChecklistItem' }\n })\n },\n context: {\n hasUpload: true\n }\n })\n\n const attachments = response.data.createAttachments\n\n this.checklistItemAttachments = [...attachments, ...this.checklistItemAttachments]\n this.checklistItemAttachmentCount = this.checklistItemAttachmentCount + attachments.length\n }\n\n private _formatDate(date) {\n const _date = new Date(date.toLocaleString('en-US', { timeZone: 'Asia/Seoul' }))\n\n const year = _date.getFullYear()\n const month = String(_date.getMonth() + 1).padStart(2, '0')\n const day = String(_date.getDate()).padStart(2, '0')\n const hours = String(_date.getHours()).padStart(2, '0')\n const minutes = String(_date.getMinutes()).padStart(2, '0')\n const seconds = String(_date.getSeconds()).padStart(2, '0')\n\n return `${year}.${month}.${day} ${hours}:${minutes}:${seconds}`\n }\n\n // 첨부 자료 변경 이벤트 디스패치\n _dispatchEvent() {\n this.dispatchEvent(new CustomEvent('change-attachment', { detail: { checklistItemId: this.checklistItemId } }))\n }\n\n private _onClickPreview(filepath: string) {\n openPopup(html` <file-preview-popup .filepath=${filepath}></file-preview-popup> `, {\n backdrop: true,\n size: 'large',\n title: '미리보기'\n })\n }\n}\n"]}
1
+ {"version":3,"file":"attachment-list-popup.js","sourceRoot":"","sources":["../../../client/pages/checklist/attachment-list-popup.ts"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAClE,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,M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K,EAAE;;iDAAyB;AACxB;IAAR,KAAK,EAAE;;qEAAmC;AAClC;IAAR,KAAK,EAAE;;yEAAyC;AACxC;IAAR,KAAK,EAAE;8BAAO,IAAI;iDAAK;AAjLpB,mBAAmB;IADxB,aAAa,CAAC,uBAAuB,CAAC;GACjC,mBAAmB,CA0dxB","sourcesContent":["import '@material/web/icon/icon.js'\nimport gql from 'graphql-tag'\nimport { client } from '@operato/graphql'\nimport { css, html, LitElement } from 'lit'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { ButtonContainerStyles, ScrollbarStyles } from '@operato/styles'\nimport { notify } from '@operato/layout'\nimport { store, User, connect } from '@operato/shell'\nimport { OxPrompt } from '@operato/popup/ox-prompt.js'\nimport { openPopup } from '@operato/layout'\nimport './file-preview-popup'\nimport '../building-inspection/component/image-preview-popup'\nimport { BuildingInspectionStatus } from '../building-inspection/building-inspection-list'\nimport { ChecklistMode } from './checklist-view'\nimport { ifDefined } from 'lit/directives/if-defined.js'\n\n@customElement('attachment-list-popup')\nclass AttachmentListPopup extends connect(store)(LitElement) {\n static styles = [\n ButtonContainerStyles,\n ScrollbarStyles,\n css`\n :host {\n display: flex;\n flex-direction: column;\n background-color: #fff;\n width: 100%;\n max-height: 80vh;\n }\n\n div[body] {\n flex: 1;\n overflow-y: auto;\n padding: 20px;\n\n div[file-list-container] {\n display: flex;\n flex-direction: column;\n gap: 15px;\n background-color: #f7f7f7;\n padding: 20px;\n border-radius: 8px;\n margin-bottom: 20px;\n\n div[file-item] {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 12px;\n background-color: #fff;\n border-radius: 6px;\n border: 1px solid #ddd;\n cursor: pointer;\n transition: all 0.2s ease;\n\n &:hover {\n background-color: #e3f2fd;\n border-color: #2196f3;\n transform: translateY(-1px);\n box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);\n }\n\n div[file-info] {\n flex: 1;\n display: flex;\n align-items: center;\n gap: 12px;\n\n div[file-icon] {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 40px;\n height: 40px;\n border-radius: 8px;\n\n md-icon {\n --md-icon-size: 24px;\n color: #666;\n }\n }\n\n div[file-details] {\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: 4px;\n\n span[file-name] {\n font-size: 14px;\n font-weight: 500;\n color: #333;\n line-height: 1.2;\n }\n\n div[file-meta] {\n display: flex;\n gap: 15px;\n margin-top: 2px;\n\n span[file-creator] {\n font-size: 11px;\n color: #666;\n display: flex;\n align-items: center;\n gap: 3px;\n }\n\n span[file-date] {\n font-size: 11px;\n color: #666;\n display: flex;\n align-items: center;\n gap: 3px;\n }\n }\n }\n }\n\n div[action-buttons] {\n display: flex;\n gap: 8px;\n align-items: center;\n\n md-icon {\n --md-icon-size: 20px;\n color: #2196f3;\n cursor: pointer;\n padding: 4px;\n border-radius: 4px;\n transition: background-color 0.2s;\n\n &:hover {\n background-color: rgba(33, 150, 243, 0.1);\n }\n }\n\n md-icon[delete] {\n color: #f44336;\n\n &:hover {\n background-color: rgba(244, 67, 54, 0.1);\n }\n }\n\n a {\n text-decoration: none;\n color: inherit;\n display: flex;\n align-items: center;\n }\n }\n }\n }\n\n div[empty-state] {\n text-align: center;\n color: #666;\n padding: 40px;\n\n md-icon {\n --md-icon-size: 48px;\n color: #ccc;\n margin-bottom: 16px;\n }\n }\n\n div[button-container] {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 10px;\n margin-top: 20px;\n }\n }\n\n h3 {\n position: relative;\n color: rgb(5, 149, 229);\n font-size: 17px;\n font-weight: 700;\n margin: 0px 20px 10px 20px;\n padding-top: 20px;\n }\n `\n ]\n\n @property({ type: String }) checklistItemId: string = ''\n @property({ type: String }) status: BuildingInspectionStatus = BuildingInspectionStatus.WAIT\n @property({ type: String }) mode: ChecklistMode = ChecklistMode.VIEWER\n\n @state() item: any = { count: 0 }\n @state() checklistItemAttachments: any = []\n @state() checklistItemAttachmentCount: number = 0\n @state() user: User = {}\n\n render() {\n return html`\n <h3>제품검사에 대한 파일: ${this.checklistItemAttachmentCount || 0}건</h3>\n\n <div body>\n <div file-list-container>\n ${this.checklistItemAttachments.length > 0\n ? this.checklistItemAttachments.map(\n attachment => html`\n <div file-item @click=${() => this._onClickPreview(attachment.fullpath)}>\n <div file-info>\n <div file-icon>\n <md-icon>description</md-icon>\n </div>\n <div file-details>\n <span file-name>${attachment.name || ''}</span>\n <div file-meta>\n <span file-creator>\n <md-icon style=\"--md-icon-size: 12px;\">account_circle</md-icon>\n ${attachment.creator?.name || ''}\n </span>\n <span file-date>\n <md-icon style=\"--md-icon-size: 12px;\">schedule</md-icon>\n ${this._formatDate(attachment.createdAt)}\n </span>\n </div>\n </div>\n </div>\n <div action-buttons>\n <md-icon\n title=\"미리보기\"\n @click=${(e: Event) => {\n e.stopPropagation()\n this._onClickPreview(attachment.fullpath)\n }}\n >visibility</md-icon\n >\n <a\n href=${ifDefined(attachment.fullpath)}\n download=${ifDefined(attachment.name)}\n @click=${(e: Event) => e.stopPropagation()}\n >\n <md-icon title=\"다운로드\" style=\"color: #2196f3;\">download</md-icon>\n </a>\n ${attachment.creator?.email === this.user.email &&\n this.status != BuildingInspectionStatus.PASS &&\n this.mode == ChecklistMode.EDITOR\n ? html`<md-icon\n delete\n title=\"삭제\"\n @click=${(e: Event) => {\n e.stopPropagation()\n this._deleteAttachment(attachment.id)\n }}\n >delete</md-icon\n >`\n : ''}\n </div>\n </div>\n `\n )\n : html`\n <div empty-state>\n <md-icon>insert_drive_file</md-icon>\n <div>첨부된 파일이 없습니다.</div>\n </div>\n `}\n </div>\n\n <ox-input-file\n accept=\"*/*\"\n multiple=\"true\"\n hide-filelist\n ?disabled=${this.status == BuildingInspectionStatus.PASS || this.mode == ChecklistMode.VIEWER}\n @change=${this.onCreateAttachment.bind(this)}\n ></ox-input-file>\n\n <div button-container>\n <md-elevated-button @click=${this._close}> <md-icon slot=\"icon\">cancel</md-icon>취소 </md-elevated-button>\n </div>\n </div>\n `\n }\n\n async firstUpdated() {\n this.user = (store.getState() as any).auth?.user\n\n await this._loadAttachments()\n }\n\n private async _loadAttachments() {\n const response = await client.query({\n query: gql`\n query ChecklistItem($id: String!) {\n checklistItem(id: $id) {\n id\n checklistItemAttachmentCount\n checklistItemAttachments {\n id\n name\n fullpath\n creator {\n id\n name\n email\n }\n createdAt\n }\n }\n }\n `,\n variables: {\n id: this.checklistItemId\n }\n })\n\n if (response.errors) return\n\n this.checklistItemAttachments = response.data.checklistItem.checklistItemAttachments || []\n this.checklistItemAttachmentCount = response.data.checklistItem.checklistItemAttachmentCount\n }\n\n private async _deleteAttachment(attachmentId: string) {\n if (this.status == BuildingInspectionStatus.PASS) {\n notify({ message: '완료 상태인 검측정보를 변경할 수 없습니다.', level: 'error' })\n return\n }\n\n if (\n await OxPrompt.open({\n title: '첨부 자료를 삭제',\n text: '첨부 자료를 삭제 하시겠습니까?',\n confirmButton: { text: '삭제' },\n cancelButton: { text: '취소' }\n })\n ) {\n const response = await client.mutate({\n mutation: gql`\n mutation DeleteAttachment($deleteAttachmentId: String!) {\n deleteAttachment(id: $deleteAttachmentId)\n }\n `,\n variables: {\n deleteAttachmentId: attachmentId\n }\n })\n\n if (!response.errors) {\n this.checklistItemAttachments = [...this.checklistItemAttachments.filter(attachment => attachment.id != attachmentId)]\n notify({ message: '첨부 자료를 삭제하였습니다.', level: 'info' })\n } else {\n notify({ message: response.errors?.[0]?.message || '첨부 자료 삭제에 실패하였습니다.', level: 'error' })\n }\n\n this._dispatchEvent()\n }\n }\n\n private _close() {\n history.back()\n }\n\n // 파일 변경 시 파일을 저장할 핸들러\n private async onCreateAttachment(e: CustomEvent) {\n if (this.status == BuildingInspectionStatus.PASS) {\n notify({ message: '완료 상태인 검측정보를 변경할 수 없습니다.', level: 'error' })\n return\n }\n\n const files = e.detail\n\n await this._createAttachments(files)\n\n this._dispatchEvent()\n }\n\n async _createAttachments(files: File[]) {\n const checklistItemId = this.checklistItemId\n\n const response = await client.mutate({\n mutation: gql`\n mutation ($attachments: [NewAttachment!]!) {\n createAttachments(attachments: $attachments) {\n id\n name\n fullpath\n creator {\n id\n name\n email\n }\n createdAt\n }\n }\n `,\n variables: {\n attachments: files.map(file => {\n return { file, refBy: checklistItemId, refType: 'ChecklistItem', description: this.status }\n })\n },\n context: {\n hasUpload: true\n }\n })\n\n const attachments = response.data.createAttachments\n\n this.checklistItemAttachments = [...attachments, ...this.checklistItemAttachments]\n this.checklistItemAttachmentCount = this.checklistItemAttachmentCount + attachments.length\n }\n\n private _formatDate(date) {\n const _date = new Date(date.toLocaleString('en-US', { timeZone: 'Asia/Seoul' }))\n\n const year = _date.getFullYear()\n const month = String(_date.getMonth() + 1).padStart(2, '0')\n const day = String(_date.getDate()).padStart(2, '0')\n const hours = String(_date.getHours()).padStart(2, '0')\n const minutes = String(_date.getMinutes()).padStart(2, '0')\n\n return `${year}.${month}.${day} ${hours}:${minutes}`\n }\n\n // 첨부 자료 변경 이벤트 디스패치\n _dispatchEvent() {\n this.dispatchEvent(new CustomEvent('change-attachment', { detail: { checklistItemId: this.checklistItemId } }))\n }\n\n private _onClickPreview(filepath: string) {\n if (!filepath) {\n return\n }\n\n // 파일 확장자로 타입 판단\n const fileExtension = filepath.toLowerCase().split('.').pop()\n const isImage = ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp', 'svg'].includes(fileExtension || '')\n const isPdf = fileExtension === 'pdf'\n\n if (isImage) {\n this._openImagePreview(filepath)\n } else if (isPdf) {\n this._openPdfPreview(filepath)\n } else {\n // 기타 파일은 기존 file-preview-popup 사용\n this._openGenericPreview(filepath)\n }\n }\n\n private _openImagePreview(filepath: string) {\n const imageData = this.checklistItemAttachments.filter(attachment => {\n const fileExtension = attachment.fullpath?.toLowerCase().split('.').pop()\n return ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp', 'svg'].includes(fileExtension || '')\n })\n\n const currentIndex = imageData.findIndex(attachment => attachment.fullpath === filepath)\n\n openPopup(\n html` <image-preview-popup .images=${imageData} .currentIndex=${Math.max(0, currentIndex)}></image-preview-popup> `,\n { backdrop: true, size: 'large', title: '이미지 미리보기' }\n )\n }\n\n private _openPdfPreview(filepath: string) {\n openPopup(\n html`\n <div style=\"display: flex; flex-direction: column;\">\n <div style=\"flex: 1; overflow: hidden; touch-action: pan-x pan-y;\">\n <iframe\n src=\"${filepath}#toolbar=1&navpanes=0&scrollbar=1&zoom=page-fit\"\n style=\"\n width: 100%; \n height: 100%; \n border: none; \n touch-action: pan-x pan-y;\n \"\n @error=${() => {\n // PDF 로드 실패시 새 탭에서 열기\n window.open(filepath, '_blank')\n }}\n ></iframe>\n </div>\n </div>\n `,\n { backdrop: true, size: 'large', title: '[PDF 미리보기]' }\n )\n }\n\n // 기타 파일 타입은 기존 방식 사용\n private _openGenericPreview(filepath: string) {\n openPopup(html` <file-preview-popup .filepath=${filepath}></file-preview-popup> `, {\n backdrop: true,\n size: 'large',\n title: '미리보기'\n })\n }\n}\n"]}
@@ -4,11 +4,12 @@ import '@operato/input/ox-input-signature.js';
4
4
  import './comment-list-popup';
5
5
  import './attachment-list-popup';
6
6
  import '../../stt/speech-to-text';
7
+ export declare const enum ProjectType {
8
+ DSSP = "DSSP",
9
+ DCSP = "DCSP",
10
+ DKPI = "DKPI"
11
+ }
7
12
  export declare const enum ChecklistMode {
8
13
  VIEWER = "VIEWER",
9
14
  EDITOR = "EDITOR"
10
15
  }
11
- export declare enum ChecklistReferenceType {
12
- INSPECTION = "INSPECTION",// 검측
13
- SCHEDULE = "SCHEDULE"
14
- }
@@ -6,25 +6,21 @@ import { client } from '@operato/graphql';
6
6
  import { css, html, LitElement } from 'lit';
7
7
  import { customElement, property } from 'lit/decorators.js';
8
8
  import { ButtonContainerStyles, ScrollbarStyles } from '@operato/styles';
9
- 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';
10
10
  import '@operato/input/ox-input-signature.js';
11
- import { store } from '@operato/shell';
12
- import { connect } from 'pwa-helpers/connect-mixin.js';
11
+ import { store, connect } from '@operato/shell';
13
12
  import { openPopup } from '@operato/layout';
14
13
  import './comment-list-popup';
15
14
  import './attachment-list-popup';
16
15
  import '../../stt/speech-to-text';
17
16
  import { parseSpeechCommand } from '../../stt/stt-utils';
18
- export var ChecklistReferenceType;
19
- (function (ChecklistReferenceType) {
20
- ChecklistReferenceType["INSPECTION"] = "INSPECTION";
21
- ChecklistReferenceType["SCHEDULE"] = "SCHEDULE"; // 공정표
22
- })(ChecklistReferenceType || (ChecklistReferenceType = {}));
17
+ import { notify } from '@operato/layout';
23
18
  let ChecklistView = class ChecklistView extends connect(store)(LitElement) {
24
19
  constructor() {
25
20
  super(...arguments);
26
21
  this.mode = "VIEWER" /* ChecklistMode.VIEWER */;
27
22
  this.checklist = {};
23
+ this.manager = {};
28
24
  this.buildingComplex = {
29
25
  id: '',
30
26
  taskConstructorEmails: [],
@@ -33,16 +29,28 @@ let ChecklistView = class ChecklistView extends connect(store)(LitElement) {
33
29
  overallSupervisoryEmails: []
34
30
  };
35
31
  this.status = BuildingInspectionStatus.WAIT;
32
+ this.failCount = 0;
33
+ this.projectType = "DSSP" /* ProjectType.DSSP */;
36
34
  this.isListening = false;
37
- this._onToggleSTT = () => {
35
+ this._tooltip = null;
36
+ this._kcsDetail = null;
37
+ this._onStartSTT = (e) => {
38
+ e.preventDefault();
38
39
  const stt = this.renderRoot.querySelector('#stt');
39
40
  if (!this.isListening) {
40
41
  stt === null || stt === void 0 ? void 0 : stt.startListening();
41
42
  }
42
- else {
43
+ };
44
+ this._onStopSTT = (e) => {
45
+ e.preventDefault();
46
+ const stt = this.renderRoot.querySelector('#stt');
47
+ if (this.isListening) {
43
48
  stt === null || stt === void 0 ? void 0 : stt.stopListening();
44
49
  }
45
- // isListening은 stt-status 이벤트에서 갱신됨
50
+ };
51
+ this._hideKcsDetail = () => {
52
+ this._kcsDetail = null;
53
+ this.requestUpdate();
46
54
  };
47
55
  }
48
56
  firstUpdated() {
@@ -68,7 +76,7 @@ let ChecklistView = class ChecklistView extends connect(store)(LitElement) {
68
76
  /**
69
77
  * 음성 명령 해석 결과를 체크리스트에 반영
70
78
  */
71
- _applySpeechCommand(parsed) {
79
+ async _applySpeechCommand(parsed) {
72
80
  // 합격/불합격 처리 예시 (시공자 기준)
73
81
  if (parsed.rowIds && parsed.isPass !== null) {
74
82
  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);
@@ -76,12 +84,36 @@ let ChecklistView = class ChecklistView extends connect(store)(LitElement) {
76
84
  }
77
85
  // 조치사항 처리 예시
78
86
  if (parsed.rowIds && parsed.actionText) {
79
- this.checklist.checklistItems = this.checklist.checklistItems.map((item, idx) => parsed.rowIds.includes(idx + 1) ? Object.assign(Object.assign({}, item), { action: parsed.actionText }) : item);
80
- this.requestUpdate();
87
+ const { rowIds, actionText } = parsed;
88
+ const checklistItems = this.checklist.checklistItems;
89
+ const ids = rowIds.length > 0 ? rowIds : Array.from({ length: checklistItems.length }, (_, i) => i + 1); // rowIds가 빈값이면 모든 아이템에 대해 조치사항 등록
90
+ let count = 0;
91
+ for (const rowId of ids) {
92
+ const item = checklistItems[rowId - 1];
93
+ count += await this._createChecklistItemComment(item.id, actionText);
94
+ this._refreshItem({ detail: { checklistItemId: item.id } });
95
+ }
96
+ notify({ message: `${count}건의 조치사항을 등록했습니다.` });
81
97
  }
82
98
  }
99
+ // 체크리스트 아이템 코멘트 생성
100
+ async _createChecklistItemComment(checklistItemId, comment) {
101
+ const response = await client.mutate({
102
+ mutation: gql `
103
+ mutation CreateChecklistItemComment($checklistItemComment: NewChecklistItemComment!) {
104
+ createChecklistItemComment(checklistItemComment: $checklistItemComment) {
105
+ id
106
+ }
107
+ }
108
+ `,
109
+ variables: {
110
+ checklistItemComment: { comment, checklistItemId }
111
+ }
112
+ });
113
+ return !response.errors ? 1 : 0;
114
+ }
83
115
  render() {
84
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
116
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
85
117
  const today = this._getDate(new Date());
86
118
  // 시공자 스탭 여부
87
119
  const isConstructorStep = this.status == BuildingInspectionStatus.WAIT ||
@@ -125,21 +157,31 @@ let ChecklistView = class ChecklistView extends connect(store)(LitElement) {
125
157
  // 3순위: sequence 오름차순
126
158
  return a.sequence - b.sequence;
127
159
  });
128
- const processedItems = this.drawChecklistItems(((_j = this.checklist) === null || _j === void 0 ? void 0 : _j.checklistItems) || []);
160
+ const checklistItems = ((_j = this.checklist) === null || _j === void 0 ? void 0 : _j.checklistItems) || [];
161
+ const processedItems = this.drawChecklistItems(checklistItems);
162
+ const hasAnyDetailType = checklistItems.some(item => item.detailType);
129
163
  return html `
130
- <speech-to-text id="stt"></speech-to-text>
164
+ ${this.mode == "EDITOR" /* ChecklistMode.EDITOR */
165
+ ? html `
166
+ <speech-to-text id="stt"></speech-to-text>
167
+ <md-fab
168
+ class="stt-fab"
169
+ ?active=${this.isListening}
170
+ @mousedown=${this._onStartSTT}
171
+ @mouseup=${this._onStopSTT}
172
+ @mouseleave=${this._onStopSTT}
173
+ @touchstart=${this._onStartSTT}
174
+ @touchend=${this._onStopSTT}
175
+ ?disabled=${false}
176
+ .label=${this.isListening ? '말씀하세요...' : '길게 눌러서 음성 인식'}
177
+ >
178
+ <md-icon slot="icon">mic</md-icon>
179
+ </md-fab>
180
+ `
181
+ : ''}
182
+
131
183
  <div title-row>
132
184
  <div name>${this.checklist.name}</div>
133
- <md-fab
134
- class="stt-fab"
135
- ?active=${this.isListening}
136
- @click=${this._onToggleSTT}
137
- ?disabled=${false}
138
- style="position:absolute;top:0;right:0;z-index:10;"
139
- .label=${this.isListening ? '음성 인식 중지' : '음성 인식 시작'}
140
- >
141
- <md-icon slot="icon">mic</md-icon>
142
- </md-fab>
143
185
  </div>
144
186
  <table header>
145
187
  <tr>
@@ -155,19 +197,28 @@ let ChecklistView = class ChecklistView extends connect(store)(LitElement) {
155
197
  <td>${this.checklist.location}</td>
156
198
  </tr>
157
199
  <tr>
158
- <th>검측 부위</th>
159
- <td>${((_l = (_k = this.checklist) === null || _k === void 0 ? void 0 : _k.inspectionParts) === null || _l === void 0 ? void 0 : _l.join(', ')) || ''}</td>
200
+ ${this.projectType == "DSSP" /* ProjectType.DSSP */
201
+ ? html `
202
+ <th>담당자</th>
203
+ <td>${((_k = this.manager) === null || _k === void 0 ? void 0 : _k.name) || ''}</td>
204
+ `
205
+ : html `
206
+ <th>검측 부위</th>
207
+ <td>${((_m = (_l = this.checklist) === null || _l === void 0 ? void 0 : _l.inspectionParts) === null || _m === void 0 ? void 0 : _m.join(', ')) || ''}</td>
208
+ `}
209
+
160
210
  <th>검측 상태</th>
161
- <td>${BUILDING_INSPECTION_STATUS_DISPLAY[this.status]}</td>
211
+ <td>${(this.failCount > 0 ? BUILDING_INSPECTION_RE_STATUS_DISPLAY : BUILDING_INSPECTION_STATUS_DISPLAY)[this.status]}</td>
162
212
  </tr>
163
213
  </table>
164
214
 
165
215
  <table body>
166
216
  <thead>
167
217
  <tr>
168
- <th colspan="2" rowspan="3" type>구분</th>
218
+ <th colspan="${hasAnyDetailType ? 2 : 1}" rowspan="3" type>구분</th>
169
219
  <th rowspan="3" inspection-name>검사항목</th>
170
- <th rowspan="3" criteria>검사기준</th>
220
+ <th rowspan="3" criteria>KCS 시방서 기준</th>
221
+ <th rowspan="3" criteria>현장 시방서 기준</th>
171
222
  <th colspan="4" result>검사결과</th>
172
223
  <th rowspan="3" small>첨부자료</th>
173
224
  <th rowspan="3" small>조치사항</th>
@@ -185,14 +236,35 @@ let ChecklistView = class ChecklistView extends connect(store)(LitElement) {
185
236
  </thead>
186
237
  <tbody>
187
238
  ${processedItems.map(({ item, showMainTypeCell, mainTypeRowspan, showDetailTypeCell, detailTypeRowspan }, idx) => {
239
+ var _a;
240
+ const recs = ((_a = [item.recommendation1, item.recommendation2, item.recommendation3, item.recommendation4, item.recommendation5]) === null || _a === void 0 ? void 0 : _a.filter(r => r)) || [];
241
+ const hasRecs = recs.length > 0;
242
+ const kcs = this._parseKcs(item.kcsCriteria);
243
+ const hasKcs = !!kcs;
188
244
  return html ` <tr>
189
245
  ${showMainTypeCell
190
- ? html `<td main-type bold rowspan="${mainTypeRowspan}">${CHECKLIST_MAIN_TYPE_LIST[item.mainType]}</td>`
246
+ ? html `<td main-type bold rowspan="${mainTypeRowspan}">${CHECKLIST_MAIN_TYPE_LIST[item.mainType] || item.mainType}</td>`
247
+ : ''}
248
+ ${hasAnyDetailType
249
+ ? showDetailTypeCell ? html ` <td bold rowspan="${detailTypeRowspan}">${item.detailType}</td> ` : ''
191
250
  : ''}
192
- ${showDetailTypeCell ? html ` <td bold rowspan="${detailTypeRowspan}">${item.detailType}</td> ` : ''}
193
251
 
194
- <td>${idx + 1}. ${item.name}</td>
195
- <td>${item.inspctionCriteria}</td>
252
+ <td
253
+ ?has-recommendation=${hasRecs}
254
+ @mouseenter=${hasRecs ? (e) => this._showRecTooltip(e, item.id || idx, recs) : null}
255
+ @mouseleave=${hasRecs ? () => this._hideRecTooltip() : null}
256
+ >
257
+ ${idx + 1}. ${item.name} ${hasRecs ? html `<md-icon style="font-size:14px;vertical-align:middle;color:#2e79be;">info</md-icon>` : ''}
258
+ </td>
259
+ <td
260
+ kcs-criteria
261
+ ?has-kcs=${hasKcs}
262
+ @click=${hasKcs ? () => this._showKcsDetail(kcs) : null}
263
+ >
264
+ ${(kcs === null || kcs === void 0 ? void 0 : kcs.file_label) || ''}
265
+ ${hasKcs ? html `<md-icon style="font-size:14px;vertical-align:middle;color:#2e79be;">search</md-icon>` : ''}
266
+ </td>
267
+ <td site-spec-criteria>${item.siteSpecCriteria || item.inspctionCriteria || ''}</td>
196
268
  <td radio>
197
269
  <md-radio
198
270
  item-id=${item.id}
@@ -327,8 +399,49 @@ let ChecklistView = class ChecklistView extends connect(store)(LitElement) {
327
399
  </div>
328
400
  <div>- 검사항목 및 검사기준은 각 공종별로 감리원과 협의하여 작성할 것</div>
329
401
  </div>
402
+
403
+ ${this._tooltip ? html `
404
+ <div recommendation-tooltip style="left:${this._tooltip.x}px;top:${this._tooltip.y}px;">
405
+ <div tooltip-title>추천 검사 항목</div>
406
+ ${this._tooltip.recs.map(r => html `<div tooltip-item>${r}</div>`)}
407
+ </div>
408
+ ` : ''}
409
+
410
+ ${this._kcsDetail ? html `
411
+ <div kcs-detail-backdrop @click=${(e) => { if (e.target === e.currentTarget)
412
+ this._hideKcsDetail(); }}>
413
+ <div kcs-detail-popup>
414
+ <div kcs-detail-header>
415
+ <span>KCS 시방서 기준</span>
416
+ <md-icon @click=${this._hideKcsDetail}>close</md-icon>
417
+ </div>
418
+ ${this._kcsDetail.file_label ? html `<div kcs-detail-label>${this._kcsDetail.file_label}</div>` : ''}
419
+ ${this._kcsDetail.clause_no || this._kcsDetail.clause_title
420
+ ? html `<div kcs-detail-clause>${[this._kcsDetail.clause_no, this._kcsDetail.clause_title].filter(Boolean).join(' ')}</div>`
421
+ : ''}
422
+ <div kcs-detail-text>${this._kcsDetail.text || ''}</div>
423
+ </div>
424
+ </div>
425
+ ` : ''}
330
426
  `;
331
427
  }
428
+ // KCS 기준 JSON 문자열을 오브젝트로 파싱 (file_label/clause/text 포함)
429
+ _parseKcs(kcsCriteria) {
430
+ if (!kcsCriteria)
431
+ return null;
432
+ try {
433
+ const obj = JSON.parse(kcsCriteria);
434
+ return obj && (obj.file_label || obj.text) ? obj : null;
435
+ }
436
+ catch (_a) {
437
+ return null;
438
+ }
439
+ }
440
+ // KCS 기준 상세(text)를 작은 팝업으로 표시
441
+ _showKcsDetail(kcs) {
442
+ this._kcsDetail = kcs;
443
+ this.requestUpdate();
444
+ }
332
445
  _onChangeConfirmStatus(e) {
333
446
  var _a, _b;
334
447
  const target = e.target;
@@ -338,8 +451,27 @@ let ChecklistView = class ChecklistView extends connect(store)(LitElement) {
338
451
  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);
339
452
  }
340
453
  _onChangeSignature(e) {
454
+ var _a;
341
455
  const target = e.target;
456
+ const { name: userName } = (_a = store.getState().auth) === null || _a === void 0 ? void 0 : _a.user;
342
457
  this.checklist[target.name] = target.value;
458
+ // 서명할 때 해당 사용자 ID도 업데이트
459
+ if (userName) {
460
+ switch (target.name) {
461
+ case 'taskConstructorSignature':
462
+ this.checklist.taskConstructor = { name: userName };
463
+ break;
464
+ case 'overallConstructorSignature':
465
+ this.checklist.overallConstructor = { name: userName };
466
+ break;
467
+ case 'taskSupervisorySignature':
468
+ this.checklist.taskSupervisory = { name: userName };
469
+ break;
470
+ case 'overallSupervisorySignature':
471
+ this.checklist.overallSupervisory = { name: userName };
472
+ break;
473
+ }
474
+ }
343
475
  }
344
476
  _getDate(date) {
345
477
  if (!date)
@@ -390,6 +522,7 @@ let ChecklistView = class ChecklistView extends connect(store)(LitElement) {
390
522
  <comment-list-popup
391
523
  .checklistItemId=${checklistItemId}
392
524
  .status=${this.status}
525
+ .mode=${this.mode}
393
526
  @change-comment=${this._refreshItem.bind(this)}
394
527
  ></comment-list-popup>
395
528
  `, { backdrop: true, size: 'medium', title: '조치 사항' });
@@ -399,6 +532,7 @@ let ChecklistView = class ChecklistView extends connect(store)(LitElement) {
399
532
  <attachment-list-popup
400
533
  .checklistItemId=${checklistItemId}
401
534
  .status=${this.status}
535
+ .mode=${this.mode}
402
536
  @change-attachment=${this._refreshItem.bind(this)}
403
537
  ></attachment-list-popup>
404
538
  `, { backdrop: true, size: 'medium', title: '첨부 자료' });
@@ -426,6 +560,21 @@ let ChecklistView = class ChecklistView extends connect(store)(LitElement) {
426
560
  });
427
561
  this.requestUpdate();
428
562
  }
563
+ _showRecTooltip(e, id, recs) {
564
+ const td = e.currentTarget;
565
+ const rect = td.getBoundingClientRect();
566
+ const tooltipHeight = recs.length * 24 + 40;
567
+ // 위에 공간이 부족하면 아래로
568
+ const showBelow = rect.top < tooltipHeight;
569
+ const x = rect.left;
570
+ const y = showBelow ? rect.bottom + 4 : rect.top - tooltipHeight;
571
+ this._tooltip = { id: String(id), x, y, recs };
572
+ this.requestUpdate();
573
+ }
574
+ _hideRecTooltip() {
575
+ this._tooltip = null;
576
+ this.requestUpdate();
577
+ }
429
578
  };
430
579
  ChecklistView.styles = [
431
580
  ButtonContainerStyles,
@@ -438,6 +587,8 @@ ChecklistView.styles = [
438
587
  padding-top: 0;
439
588
  font-size: 14px;
440
589
  min-width: 800px;
590
+
591
+ position: relative;
441
592
  }
442
593
 
443
594
  [bold] {
@@ -509,7 +660,7 @@ ChecklistView.styles = [
509
660
  width: 270px;
510
661
  }
511
662
  &[criteria] {
512
- width: 90px;
663
+ width: 200px;
513
664
  }
514
665
  &[small] {
515
666
  width: 60px;
@@ -638,6 +789,111 @@ ChecklistView.styles = [
638
789
  filter: drop-shadow(0 0 0 #d32f2f);
639
790
  }
640
791
  }
792
+
793
+ /* 추천 검사 항목 툴팁 */
794
+ td[has-recommendation] {
795
+ cursor: pointer;
796
+ position: relative;
797
+ }
798
+ td[has-recommendation]:hover {
799
+ background-color: #f0f7ff !important;
800
+ }
801
+ div[recommendation-tooltip] {
802
+ position: fixed;
803
+ z-index: 1000;
804
+ background: #333;
805
+ color: #fff;
806
+ padding: 8px 12px;
807
+ border-radius: 6px;
808
+ font-size: 13px;
809
+ max-width: 350px;
810
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
811
+ line-height: 1.6;
812
+ pointer-events: none;
813
+ }
814
+ div[recommendation-tooltip] div[tooltip-title] {
815
+ font-weight: bold;
816
+ color: #8fc9ff;
817
+ margin-bottom: 4px;
818
+ font-size: 12px;
819
+ }
820
+ div[recommendation-tooltip] div[tooltip-item] {
821
+ padding-left: 8px;
822
+ }
823
+ div[recommendation-tooltip] div[tooltip-item]::before {
824
+ content: '• ';
825
+ color: #8fc9ff;
826
+ }
827
+
828
+ /* KCS 시방서 기준 셀 (클릭 시 상세 팝업) */
829
+ td[kcs-criteria][has-kcs] {
830
+ cursor: pointer;
831
+ color: #2e79be;
832
+ }
833
+ td[kcs-criteria][has-kcs]:hover {
834
+ background-color: #f0f7ff !important;
835
+ }
836
+ td[site-spec-criteria] {
837
+ white-space: pre-wrap;
838
+ }
839
+
840
+ /* KCS 시방서 기준 상세 팝업 */
841
+ div[kcs-detail-backdrop] {
842
+ position: fixed;
843
+ inset: 0;
844
+ background: rgba(0, 0, 0, 0.4);
845
+ z-index: 1100;
846
+ display: flex;
847
+ align-items: center;
848
+ justify-content: center;
849
+ }
850
+ div[kcs-detail-popup] {
851
+ background: #fff;
852
+ border-radius: 8px;
853
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
854
+ width: 480px;
855
+ max-width: 90vw;
856
+ max-height: 70vh;
857
+ overflow-y: auto;
858
+ padding: 16px 18px;
859
+ color: #333;
860
+ }
861
+ div[kcs-detail-header] {
862
+ display: flex;
863
+ align-items: center;
864
+ justify-content: space-between;
865
+ font-weight: bold;
866
+ font-size: 16px;
867
+ color: #2e79be;
868
+ margin-bottom: 10px;
869
+ }
870
+ div[kcs-detail-header] md-icon {
871
+ cursor: pointer;
872
+ color: #888;
873
+ }
874
+ div[kcs-detail-label] {
875
+ font-weight: bold;
876
+ font-size: 14px;
877
+ margin-bottom: 6px;
878
+ }
879
+ div[kcs-detail-clause] {
880
+ font-size: 13px;
881
+ color: #666;
882
+ margin-bottom: 8px;
883
+ }
884
+ div[kcs-detail-text] {
885
+ font-size: 14px;
886
+ line-height: 1.6;
887
+ white-space: pre-wrap;
888
+ }
889
+
890
+ .stt-fab {
891
+ position: fixed;
892
+ top: 100px;
893
+ right: 20px;
894
+ z-index: 1;
895
+ }
896
+
641
897
  .stt-fab[active] md-icon {
642
898
  color: #d32f2f;
643
899
  animation: pulse 1s infinite;
@@ -652,6 +908,10 @@ __decorate([
652
908
  property({ type: Object }),
653
909
  __metadata("design:type", Object)
654
910
  ], ChecklistView.prototype, "checklist", void 0);
911
+ __decorate([
912
+ property({ type: Object }),
913
+ __metadata("design:type", Object)
914
+ ], ChecklistView.prototype, "manager", void 0);
655
915
  __decorate([
656
916
  property({ type: Object }),
657
917
  __metadata("design:type", Object)
@@ -660,6 +920,14 @@ __decorate([
660
920
  property({ type: String }),
661
921
  __metadata("design:type", String)
662
922
  ], ChecklistView.prototype, "status", void 0);
923
+ __decorate([
924
+ property({ type: Number }),
925
+ __metadata("design:type", Number)
926
+ ], ChecklistView.prototype, "failCount", void 0);
927
+ __decorate([
928
+ property({ type: String }),
929
+ __metadata("design:type", String)
930
+ ], ChecklistView.prototype, "projectType", void 0);
663
931
  ChecklistView = __decorate([
664
932
  customElement('checklist-view')
665
933
  ], ChecklistView);