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

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