@dssp/supervision 1.0.0 → 1.0.1

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