@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
@@ -0,0 +1,1076 @@
1
+ import { __decorate, __metadata } from "tslib";
2
+ import '@material/web/icon/icon.js';
3
+ import '@material/web/button/elevated-button.js';
4
+ import '@material/web/button/filled-button.js';
5
+ import '@material/web/select/filled-select.js';
6
+ import '@material/web/select/select-option.js';
7
+ import '@material/web/textfield/filled-text-field.js';
8
+ import '@operato/data-grist';
9
+ import '../checklist/checklist-view';
10
+ import { CommonGristStyles, ScrollbarStyles, ButtonContainerStyles } from '@operato/styles';
11
+ import { PageView } from '@operato/shell';
12
+ import { css, html } from 'lit';
13
+ import { customElement, query, state } from 'lit/decorators.js';
14
+ import { DataGrist } from '@operato/data-grist';
15
+ import { client } from '@operato/graphql';
16
+ import { notify, openPopup } from '@operato/layout';
17
+ import gql from 'graphql-tag';
18
+ import { BuildingInspectionStatus } from '../building-inspection/building-inspection-list';
19
+ let ProjectChecklistManagement = class ProjectChecklistManagement extends PageView {
20
+ constructor() {
21
+ super(...arguments);
22
+ this.projectId = '';
23
+ this.projectName = '';
24
+ this.constructionTypes = [];
25
+ this.allDetailTypes = [];
26
+ this.selectedConstructionType = {};
27
+ this.selectedConstructionDetailType = {};
28
+ this.checklistName = '';
29
+ this.templateItems = [];
30
+ this.isEditMode = false;
31
+ this.selectedChecklistId = null;
32
+ this.siteSpecPdfUrl = '';
33
+ this.siteSpecPdfName = '';
34
+ }
35
+ get context() {
36
+ return {
37
+ title: this.projectName ? `체크리스트 관리 - ${this.projectName}` : '체크리스트 관리'
38
+ };
39
+ }
40
+ render() {
41
+ var _a, _b, _c;
42
+ return html `
43
+ <div header>
44
+ <h2>
45
+ <md-icon slot="icon" back @click=${() => history.back()}>arrow_back</md-icon>
46
+ 체크리스트 관리
47
+ </h2>
48
+ <div button-container>
49
+ <input
50
+ id="siteSpecFileInput"
51
+ type="file"
52
+ accept="application/pdf,.pdf"
53
+ style="display: none"
54
+ @change=${this._onUploadSiteSpecPdf}
55
+ />
56
+ <md-elevated-button @click=${() => { var _a; return (_a = this.renderRoot.querySelector('#siteSpecFileInput')) === null || _a === void 0 ? void 0 : _a.click(); }}>
57
+ <md-icon slot="icon">upload_file</md-icon>현장 시방서 업로드
58
+ </md-elevated-button>
59
+ ${this.siteSpecPdfName
60
+ ? html `<span site-spec-name title=${this.siteSpecPdfUrl}>
61
+ <md-icon>description</md-icon>${this.siteSpecPdfName}
62
+ <md-icon clickable @click=${this._removeSiteSpecPdf}>close</md-icon>
63
+ </span>`
64
+ : ''}
65
+ <md-elevated-button href=${`project-detail/${this.projectId}`}>
66
+ <md-icon slot="icon">home</md-icon>프로젝트 홈
67
+ </md-elevated-button>
68
+ </div>
69
+ </div>
70
+
71
+ <div body>
72
+ <div left>
73
+ <div section-header>${this.isEditMode ? '체크리스트 수정' : '체크리스트 등록'}</div>
74
+
75
+ <div form-area>
76
+ <label>공종</label>
77
+ <md-filled-select constructionType @change=${this._onSelectConstructionType}>
78
+ <md-select-option ?selected=${!((_a = this.selectedConstructionType) === null || _a === void 0 ? void 0 : _a.id)} value="">
79
+ <div slot="headline">선택</div>
80
+ </md-select-option>
81
+ ${(_b = this.constructionTypes) === null || _b === void 0 ? void 0 : _b.map(ct => {
82
+ var _a;
83
+ const selected = ct.id === ((_a = this.selectedConstructionType) === null || _a === void 0 ? void 0 : _a.id);
84
+ return html `<md-select-option ?selected=${selected} .value=${ct.id}>
85
+ <div slot="headline">${ct.name}</div>
86
+ </md-select-option>`;
87
+ })}
88
+ </md-filled-select>
89
+
90
+ <label>세부공종</label>
91
+ <md-filled-select constructionDetailType @change=${this._onSelectConstructionDetailType}>
92
+ ${(((_c = this.selectedConstructionType) === null || _c === void 0 ? void 0 : _c.constructionDetailTypes) || []).map(cdt => {
93
+ var _a;
94
+ const selected = cdt.id === ((_a = this.selectedConstructionDetailType) === null || _a === void 0 ? void 0 : _a.id);
95
+ return html `<md-select-option ?selected=${selected} .value=${cdt.id}>
96
+ <div slot="headline">${cdt.name}</div>
97
+ </md-select-option>`;
98
+ })}
99
+ </md-filled-select>
100
+
101
+ <label>이름</label>
102
+ <md-filled-text-field
103
+ .value=${this.checklistName}
104
+ @input=${e => {
105
+ this.checklistName = e.target.value;
106
+ }}
107
+ ></md-filled-text-field>
108
+ </div>
109
+
110
+ <ox-grist left .mode=${'GRID'} .config=${this.leftGristConfig}></ox-grist>
111
+
112
+ <div button-container>
113
+ <md-elevated-button save @click=${this._save}>
114
+ <md-icon slot="icon">${this.isEditMode ? 'save' : 'add'}</md-icon>
115
+ ${this.isEditMode ? '수정' : '등록'}
116
+ </md-elevated-button>
117
+ <md-elevated-button delete @click=${this._delete}> <md-icon slot="icon">delete</md-icon>삭제 </md-elevated-button>
118
+ </div>
119
+ </div>
120
+
121
+ <div right>
122
+ <div section-header>체크리스트 목록</div>
123
+
124
+ <ox-grist
125
+ right
126
+ .mode=${'GRID'}
127
+ .config=${this.rightGristConfig}
128
+ .fetchHandler=${this._fetchChecklists.bind(this)}
129
+ ></ox-grist>
130
+ </div>
131
+ </div>
132
+ `;
133
+ }
134
+ async pageUpdated(changes, lifecycle) {
135
+ if (this.active) {
136
+ this.projectId = lifecycle.resourceId || '';
137
+ await this._init();
138
+ }
139
+ }
140
+ async pageInitialized(lifecycle) {
141
+ this.projectId = lifecycle.resourceId || '';
142
+ await this._init();
143
+ }
144
+ async _init() {
145
+ await Promise.all([this._fetchProjectName(), this._fetchConstructionTypes()]);
146
+ this._buildLeftGristConfig();
147
+ this._buildRightGristConfig();
148
+ }
149
+ async _fetchProjectName() {
150
+ var _a, _b, _c, _d;
151
+ if (!this.projectId)
152
+ return;
153
+ const response = await client.query({
154
+ query: gql `
155
+ query Project($id: String!) {
156
+ project(id: $id) {
157
+ name
158
+ siteSpecPdfUrl
159
+ }
160
+ }
161
+ `,
162
+ variables: { id: this.projectId }
163
+ });
164
+ this.projectName = ((_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.project) === null || _b === void 0 ? void 0 : _b.name) || '';
165
+ // 현장 시방서 PDF는 프로젝트 단위로 저장되므로 프로젝트에서 로드
166
+ this.siteSpecPdfUrl = ((_d = (_c = response.data) === null || _c === void 0 ? void 0 : _c.project) === null || _d === void 0 ? void 0 : _d.siteSpecPdfUrl) || '';
167
+ this.siteSpecPdfName = this.siteSpecPdfUrl ? decodeURIComponent(this.siteSpecPdfUrl.split('/').pop() || '') : '';
168
+ this.updateContext();
169
+ }
170
+ // 현장 시방서 PDF 업로드 → 첨부 후 전체 URL(https~)을 프로젝트에 저장
171
+ async _onUploadSiteSpecPdf(e) {
172
+ var _a, _b, _c;
173
+ const input = e.target;
174
+ const file = (_a = input.files) === null || _a === void 0 ? void 0 : _a[0];
175
+ if (!file)
176
+ return;
177
+ if (file.type !== 'application/pdf' && !file.name.toLowerCase().endsWith('.pdf')) {
178
+ notify({ message: 'PDF 파일만 업로드할 수 있습니다.', level: 'warn' });
179
+ input.value = '';
180
+ return;
181
+ }
182
+ const response = await client.mutate({
183
+ mutation: gql `
184
+ mutation ($attachments: [NewAttachment!]!) {
185
+ createAttachments(attachments: $attachments) {
186
+ id
187
+ name
188
+ fullpath
189
+ }
190
+ }
191
+ `,
192
+ variables: {
193
+ attachments: [{ file, refBy: this.projectId, refType: 'Project', description: 'site-spec' }]
194
+ },
195
+ context: { hasUpload: true }
196
+ });
197
+ input.value = '';
198
+ const attachment = (_c = (_b = response.data) === null || _b === void 0 ? void 0 : _b.createAttachments) === null || _c === void 0 ? void 0 : _c[0];
199
+ if (!attachment) {
200
+ notify({ message: '업로드에 실패하였습니다.', level: 'error' });
201
+ return;
202
+ }
203
+ // fullpath 는 /attachment/... 형태의 상대경로 → location.origin 을 붙여 https 전체 URL 생성
204
+ this.siteSpecPdfUrl = `${location.origin}${attachment.fullpath}`;
205
+ this.siteSpecPdfName = attachment.name || file.name;
206
+ await this._saveSiteSpecPdfToProject();
207
+ notify({ message: '현장 시방서를 업로드하였습니다.' });
208
+ }
209
+ async _removeSiteSpecPdf() {
210
+ this.siteSpecPdfUrl = '';
211
+ this.siteSpecPdfName = '';
212
+ await this._saveSiteSpecPdfToProject();
213
+ }
214
+ // 현장 시방서 PDF URL을 프로젝트에 저장 (프로젝트 단위 공통 값)
215
+ async _saveSiteSpecPdfToProject() {
216
+ await client.mutate({
217
+ mutation: gql `
218
+ mutation ($project: ProjectPatch!) {
219
+ updateProject(project: $project) {
220
+ id
221
+ }
222
+ }
223
+ `,
224
+ variables: {
225
+ project: { id: this.projectId, siteSpecPdfUrl: this.siteSpecPdfUrl || null }
226
+ }
227
+ });
228
+ }
229
+ async _fetchConstructionTypes() {
230
+ var _a, _b;
231
+ const response = await client.query({
232
+ query: gql `
233
+ query {
234
+ constructionTypes {
235
+ items {
236
+ id
237
+ name
238
+ projectType
239
+ constructionDetailTypes {
240
+ id
241
+ name
242
+ sequence
243
+ }
244
+ }
245
+ }
246
+ }
247
+ `
248
+ });
249
+ const items = (((_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.constructionTypes) === null || _b === void 0 ? void 0 : _b.items) || []).filter((ct) => ct.projectType === 'DCSP' || !ct.projectType);
250
+ this.constructionTypes = items;
251
+ this.allDetailTypes = items.flatMap(ct => (ct.constructionDetailTypes || []).map(dt => (Object.assign(Object.assign({}, dt), { constructionTypeId: ct.id }))));
252
+ // 초기에는 선택하지 않음 (사용자가 직접 선택)
253
+ this.selectedConstructionType = {};
254
+ this.selectedConstructionDetailType = {};
255
+ }
256
+ _buildLeftGristConfig() {
257
+ this.leftGristConfig = {
258
+ columns: [
259
+ { type: 'gutter', gutterName: 'row-selector', multiple: true },
260
+ {
261
+ type: 'gutter',
262
+ gutterName: 'button',
263
+ icon: 'arrow_upward',
264
+ handlers: { click: 'move-up' }
265
+ },
266
+ {
267
+ type: 'gutter',
268
+ gutterName: 'button',
269
+ icon: 'arrow_downward',
270
+ handlers: { click: 'move-down' }
271
+ },
272
+ {
273
+ type: 'string',
274
+ name: 'mainType',
275
+ header: '구분',
276
+ record: { editable: true },
277
+ width: 100
278
+ },
279
+ {
280
+ type: 'text-select',
281
+ name: 'name',
282
+ header: '검사항목',
283
+ record: {
284
+ editable: true,
285
+ options: (value, column, record) => {
286
+ if (!record)
287
+ return [];
288
+ const items = [
289
+ record.originalName,
290
+ record.recommendation1,
291
+ record.recommendation2,
292
+ record.recommendation3,
293
+ record.recommendation4,
294
+ record.recommendation5
295
+ ].filter(Boolean);
296
+ return [...new Set(items)].map(r => ({ display: r, value: r }));
297
+ }
298
+ },
299
+ width: 250
300
+ },
301
+ {
302
+ type: 'string',
303
+ name: 'kcsCriteriaLabel',
304
+ header: 'KCS 시방서 기준',
305
+ record: { editable: false },
306
+ width: 220
307
+ },
308
+ {
309
+ type: 'string',
310
+ name: 'siteSpecCriteria',
311
+ header: '현장 시방서 기준',
312
+ record: { editable: false },
313
+ multiline: true,
314
+ width: 220
315
+ },
316
+ { type: 'string', name: 'kcsCriteria', hidden: true },
317
+ { type: 'string', name: 'originalName', hidden: true },
318
+ { type: 'string', name: 'recommendation1', hidden: true },
319
+ { type: 'string', name: 'recommendation2', hidden: true },
320
+ { type: 'string', name: 'recommendation3', hidden: true },
321
+ { type: 'string', name: 'recommendation4', hidden: true },
322
+ { type: 'string', name: 'recommendation5', hidden: true }
323
+ ],
324
+ rows: {
325
+ selectable: { multiple: true }
326
+ },
327
+ pagination: { infinite: true }
328
+ };
329
+ }
330
+ _buildRightGristConfig() {
331
+ this.rightGristConfig = {
332
+ columns: [
333
+ { type: 'gutter', gutterName: 'row-selector', multiple: false },
334
+ { type: 'gutter', gutterName: 'sequence' },
335
+ {
336
+ type: 'gutter',
337
+ gutterName: 'button',
338
+ fixed: true,
339
+ icon: 'preview',
340
+ handlers: {
341
+ click: async (columns, data, column, record, rowIndex) => {
342
+ if (!record.id)
343
+ return;
344
+ await this._openPreview(record);
345
+ }
346
+ }
347
+ },
348
+ {
349
+ type: 'string',
350
+ name: 'constructionTypeName',
351
+ header: '공종',
352
+ width: 120
353
+ },
354
+ {
355
+ type: 'string',
356
+ name: 'constructionDetailTypeName',
357
+ header: '세부공종',
358
+ width: 120
359
+ },
360
+ {
361
+ type: 'string',
362
+ name: 'name',
363
+ header: '체크리스트명',
364
+ width: 180
365
+ }
366
+ ],
367
+ rows: {
368
+ selectable: { multiple: false },
369
+ appendable: false,
370
+ handlers: {
371
+ click: this._handleRightGristRowClick.bind(this)
372
+ }
373
+ },
374
+ pagination: { infinite: true }
375
+ };
376
+ }
377
+ async _fetchChecklists() {
378
+ var _a, _b, _c, _d;
379
+ if (!this.projectId)
380
+ return { total: 0, records: [] };
381
+ const response = await client.query({
382
+ query: gql `
383
+ query ($filters: [Filter!], $sortings: [Sorting!]) {
384
+ projectChecklists(filters: $filters, sortings: $sortings) {
385
+ items {
386
+ id
387
+ projectId
388
+ constructionTypeId
389
+ constructionDetailTypeId
390
+ name
391
+ updatedAt
392
+ }
393
+ total
394
+ }
395
+ }
396
+ `,
397
+ variables: {
398
+ filters: [{ name: 'projectId', value: this.projectId, operator: 'eq' }],
399
+ sortings: [{ name: 'updatedAt', desc: true }]
400
+ }
401
+ });
402
+ const items = ((_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.projectChecklists) === null || _b === void 0 ? void 0 : _b.items) || [];
403
+ // 공종/세부공종 이름을 클라이언트에서 매핑
404
+ const records = items.map(item => {
405
+ var _a, _b;
406
+ return (Object.assign(Object.assign({}, item), { constructionTypeName: ((_a = this.constructionTypes.find(ct => ct.id === item.constructionTypeId)) === null || _a === void 0 ? void 0 : _a.name) || '', constructionDetailTypeName: ((_b = this.allDetailTypes.find(dt => dt.id === item.constructionDetailTypeId)) === null || _b === void 0 ? void 0 : _b.name) || '' }));
407
+ });
408
+ return {
409
+ total: ((_d = (_c = response.data) === null || _c === void 0 ? void 0 : _c.projectChecklists) === null || _d === void 0 ? void 0 : _d.total) || 0,
410
+ records
411
+ };
412
+ }
413
+ async _onSelectConstructionType(e) {
414
+ var _a, _b;
415
+ const ctId = e.target.value;
416
+ const ct = this.constructionTypes.find(c => c.id === ctId) || {};
417
+ this.selectedConstructionType = ct;
418
+ this.selectedConstructionDetailType = Object.assign({}, (((_a = ct.constructionDetailTypes) === null || _a === void 0 ? void 0 : _a[0]) || {}));
419
+ // re-render 완료 후 세부공종 select UI 동기화
420
+ await this.updateComplete;
421
+ await ((_b = this.htmlSelectConstructionDetailType) === null || _b === void 0 ? void 0 : _b.selectIndex(0));
422
+ if (!this.isEditMode) {
423
+ await this._loadTemplateItems();
424
+ }
425
+ }
426
+ async _onSelectConstructionDetailType(e) {
427
+ var _a, _b;
428
+ const cdtId = e.target.value;
429
+ this.selectedConstructionDetailType = Object.assign({}, (((_b = (_a = this.selectedConstructionType) === null || _a === void 0 ? void 0 : _a.constructionDetailTypes) === null || _b === void 0 ? void 0 : _b.find(d => d.id === cdtId)) || {}));
430
+ if (!this.isEditMode) {
431
+ await this._loadTemplateItems();
432
+ }
433
+ }
434
+ async _loadTemplateItems() {
435
+ var _a, _b, _c, _d, _e, _f;
436
+ const ctId = (_a = this.selectedConstructionType) === null || _a === void 0 ? void 0 : _a.id;
437
+ const cdtId = (_b = this.selectedConstructionDetailType) === null || _b === void 0 ? void 0 : _b.id;
438
+ if (!ctId || !cdtId) {
439
+ this.templateItems = [];
440
+ this.leftGrist.data = { records: [] };
441
+ return;
442
+ }
443
+ // upsert로 템플릿 찾기/생성
444
+ const upsertRes = await client.mutate({
445
+ mutation: gql `
446
+ mutation ($ctId: String!, $cdtId: String!) {
447
+ upsertConstructionChecklistTemplate(constructionTypeId: $ctId, constructionDetailTypeId: $cdtId) {
448
+ id
449
+ }
450
+ }
451
+ `,
452
+ variables: { ctId, cdtId }
453
+ });
454
+ const templateId = (_d = (_c = upsertRes.data) === null || _c === void 0 ? void 0 : _c.upsertConstructionChecklistTemplate) === null || _d === void 0 ? void 0 : _d.id;
455
+ if (!templateId)
456
+ return;
457
+ const response = await client.query({
458
+ query: gql `
459
+ query ($filters: [Filter!], $sortings: [Sorting!]) {
460
+ constructionChecklistTemplateItems(filters: $filters, sortings: $sortings) {
461
+ items {
462
+ id
463
+ sequence
464
+ mainType
465
+ name
466
+ recommendation1
467
+ recommendation2
468
+ recommendation3
469
+ recommendation4
470
+ recommendation5
471
+ }
472
+ }
473
+ }
474
+ `,
475
+ variables: {
476
+ filters: [{ name: 'constructionChecklistTemplateId', value: templateId, operator: 'eq' }],
477
+ sortings: [{ name: 'sequence' }]
478
+ }
479
+ });
480
+ const items = ((_f = (_e = response.data) === null || _e === void 0 ? void 0 : _e.constructionChecklistTemplateItems) === null || _f === void 0 ? void 0 : _f.items) || [];
481
+ this.templateItems = items;
482
+ // 왼쪽 그리드에 데이터 셋팅 (recommendation 포함)
483
+ // KCS/현장 시방서 기준은 저장(등록/수정) 시 서버에서 매칭되어 채워진다.
484
+ this.leftGrist.data = {
485
+ records: items.map(item => ({
486
+ mainType: item.mainType || '',
487
+ name: item.name || '',
488
+ kcsCriteria: '',
489
+ kcsCriteriaLabel: '',
490
+ siteSpecCriteria: '',
491
+ originalName: item.name || '',
492
+ recommendation1: item.recommendation1 || '',
493
+ recommendation2: item.recommendation2 || '',
494
+ recommendation3: item.recommendation3 || '',
495
+ recommendation4: item.recommendation4 || '',
496
+ recommendation5: item.recommendation5 || ''
497
+ }))
498
+ };
499
+ }
500
+ async _handleRightGristRowClick(columns, data, column, record, rowIndex, field) {
501
+ // 클릭 시 해당 로우 선택/해제 토글
502
+ field === null || field === void 0 ? void 0 : field.dispatchEvent(new CustomEvent('select-record-change', {
503
+ bubbles: true,
504
+ composed: true,
505
+ detail: record['__selected__'] ? { removed: [record] } : { added: [record] }
506
+ }));
507
+ // 토글 반영 후 처리
508
+ setTimeout(async () => {
509
+ var _a, _b, _c, _d;
510
+ const selected = (_b = (_a = this.rightGrist) === null || _a === void 0 ? void 0 : _a.selected) === null || _b === void 0 ? void 0 : _b[0];
511
+ if (!selected || !selected.id) {
512
+ // 선택 해제 → 등록 모드 + 왼쪽 초기화
513
+ await this._resetLeftForm();
514
+ return;
515
+ }
516
+ // 선택 → 수정 모드
517
+ this.isEditMode = true;
518
+ this.selectedChecklistId = selected.id;
519
+ this.checklistName = selected.name || '';
520
+ // 공종/세부공종 세팅
521
+ const ct = this.constructionTypes.find(c => c.id === selected.constructionTypeId) || {};
522
+ this.selectedConstructionType = ct;
523
+ this.selectedConstructionDetailType = Object.assign({}, (((_c = ct.constructionDetailTypes) === null || _c === void 0 ? void 0 : _c.find(d => d.id === selected.constructionDetailTypeId)) || {}));
524
+ // 공종 변경으로 세부공종 options가 re-render 된 후 select UI 동기화
525
+ await this.updateComplete;
526
+ const cdtIndex = (ct.constructionDetailTypes || []).findIndex(d => d.id === selected.constructionDetailTypeId);
527
+ if (cdtIndex >= 0) {
528
+ await ((_d = this.htmlSelectConstructionDetailType) === null || _d === void 0 ? void 0 : _d.selectIndex(cdtIndex));
529
+ }
530
+ // 공종+세부공종의 템플릿 아이템 로드 (추천 options용)
531
+ await this._loadTemplateItemsForEdit(selected.constructionTypeId, selected.constructionDetailTypeId);
532
+ // 저장된 아이템 로드 (FieldResolver 활용)
533
+ const items = await this._fetchChecklistItems(selected.id);
534
+ // templateItems에서 같은 mainType의 recommendation을 매칭
535
+ this.leftGrist.data = {
536
+ records: items.map(item => {
537
+ const tmpl = this.templateItems.find(t => t.mainType === item.mainType) || {};
538
+ return {
539
+ mainType: item.mainType || '',
540
+ name: item.name || '',
541
+ kcsCriteria: item.kcsCriteria || '',
542
+ kcsCriteriaLabel: this._kcsLabel(item.kcsCriteria),
543
+ siteSpecCriteria: item.siteSpecCriteria || '',
544
+ originalName: tmpl.name || item.name || '',
545
+ recommendation1: tmpl.recommendation1 || '',
546
+ recommendation2: tmpl.recommendation2 || '',
547
+ recommendation3: tmpl.recommendation3 || '',
548
+ recommendation4: tmpl.recommendation4 || '',
549
+ recommendation5: tmpl.recommendation5 || ''
550
+ };
551
+ })
552
+ };
553
+ }, 100);
554
+ }
555
+ async _loadTemplateItemsForEdit(ctId, cdtId) {
556
+ var _a, _b, _c, _d;
557
+ if (!ctId || !cdtId) {
558
+ this.templateItems = [];
559
+ return;
560
+ }
561
+ const upsertRes = await client.mutate({
562
+ mutation: gql `
563
+ mutation ($ctId: String!, $cdtId: String!) {
564
+ upsertConstructionChecklistTemplate(constructionTypeId: $ctId, constructionDetailTypeId: $cdtId) {
565
+ id
566
+ }
567
+ }
568
+ `,
569
+ variables: { ctId, cdtId }
570
+ });
571
+ const templateId = (_b = (_a = upsertRes.data) === null || _a === void 0 ? void 0 : _a.upsertConstructionChecklistTemplate) === null || _b === void 0 ? void 0 : _b.id;
572
+ if (!templateId)
573
+ return;
574
+ const response = await client.query({
575
+ query: gql `
576
+ query ($filters: [Filter!], $sortings: [Sorting!]) {
577
+ constructionChecklistTemplateItems(filters: $filters, sortings: $sortings) {
578
+ items {
579
+ id
580
+ sequence
581
+ mainType
582
+ name
583
+ inspctionCriteria
584
+ recommendation1
585
+ recommendation2
586
+ recommendation3
587
+ recommendation4
588
+ recommendation5
589
+ }
590
+ }
591
+ }
592
+ `,
593
+ variables: {
594
+ filters: [{ name: 'constructionChecklistTemplateId', value: templateId, operator: 'eq' }],
595
+ sortings: [{ name: 'sequence' }]
596
+ }
597
+ });
598
+ this.templateItems = ((_d = (_c = response.data) === null || _c === void 0 ? void 0 : _c.constructionChecklistTemplateItems) === null || _d === void 0 ? void 0 : _d.items) || [];
599
+ }
600
+ async _save() {
601
+ var _a, _b, _c, _d;
602
+ const ctId = (_a = this.selectedConstructionType) === null || _a === void 0 ? void 0 : _a.id;
603
+ const cdtId = (_b = this.selectedConstructionDetailType) === null || _b === void 0 ? void 0 : _b.id;
604
+ const name = (_c = this.checklistName) === null || _c === void 0 ? void 0 : _c.trim();
605
+ if (!ctId || !cdtId) {
606
+ notify({ message: '공종과 세부공종을 선택해주세요.', level: 'warn' });
607
+ return;
608
+ }
609
+ if (!name) {
610
+ notify({ message: '이름을 입력해주세요.', level: 'warn' });
611
+ return;
612
+ }
613
+ // 그리드에서 아이템 추출 (KCS/현장 시방서 기준은 서버에서 매칭하여 채운다)
614
+ const records = ((_d = this.leftGrist.dirtyData) === null || _d === void 0 ? void 0 : _d.records) || [];
615
+ const items = records.map((row, idx) => ({
616
+ mainType: row.mainType || null,
617
+ name: row.name || '',
618
+ sequence: idx
619
+ }));
620
+ try {
621
+ if (this.isEditMode && this.selectedChecklistId) {
622
+ // 수정
623
+ const response = await client.mutate({
624
+ mutation: gql `
625
+ mutation ($id: String!, $name: String!, $items: [ProjectChecklistItemInput!]!, $siteSpecPdfUrl: String) {
626
+ updateProjectChecklist(id: $id, name: $name, items: $items, siteSpecPdfUrl: $siteSpecPdfUrl) {
627
+ id
628
+ }
629
+ }
630
+ `,
631
+ variables: {
632
+ id: this.selectedChecklistId,
633
+ name,
634
+ items,
635
+ siteSpecPdfUrl: this.siteSpecPdfUrl || null
636
+ }
637
+ });
638
+ if (!response.errors) {
639
+ // 검사 기준(KCS/현장 시방서)은 백그라운드에서 매칭되어 잠시 후 반영됨
640
+ notify({ message: '수정되었습니다. 검사 기준은 잠시 후 반영됩니다.' });
641
+ this.rightGrist.fetch();
642
+ }
643
+ else {
644
+ notify({ message: '수정에 실패하였습니다.', level: 'error' });
645
+ }
646
+ }
647
+ else {
648
+ // 등록
649
+ const response = await client.mutate({
650
+ mutation: gql `
651
+ mutation (
652
+ $projectId: String!
653
+ $constructionTypeId: String!
654
+ $constructionDetailTypeId: String!
655
+ $name: String!
656
+ $items: [ProjectChecklistItemInput!]!
657
+ $siteSpecPdfUrl: String
658
+ ) {
659
+ createProjectChecklist(
660
+ projectId: $projectId
661
+ constructionTypeId: $constructionTypeId
662
+ constructionDetailTypeId: $constructionDetailTypeId
663
+ name: $name
664
+ items: $items
665
+ siteSpecPdfUrl: $siteSpecPdfUrl
666
+ ) {
667
+ id
668
+ }
669
+ }
670
+ `,
671
+ variables: {
672
+ projectId: this.projectId,
673
+ constructionTypeId: ctId,
674
+ constructionDetailTypeId: cdtId,
675
+ name,
676
+ items,
677
+ siteSpecPdfUrl: this.siteSpecPdfUrl || null
678
+ }
679
+ });
680
+ if (!response.errors) {
681
+ // 검사 기준(KCS/현장 시방서)은 백그라운드에서 매칭되어 잠시 후 반영됨
682
+ notify({ message: '등록되었습니다. 검사 기준은 잠시 후 반영됩니다.' });
683
+ // 오른쪽 그리드 새로고침 + 왼쪽 초기화
684
+ await this.rightGrist.fetch();
685
+ this._resetLeftForm();
686
+ }
687
+ else {
688
+ notify({ message: '등록에 실패하였습니다.', level: 'error' });
689
+ }
690
+ }
691
+ }
692
+ catch (e) {
693
+ notify({ message: '저장 중 오류가 발생하였습니다.', level: 'error' });
694
+ }
695
+ }
696
+ // KCS 기준 JSON 문자열에서 file_label(요약 텍스트) 추출
697
+ _kcsLabel(kcsCriteria) {
698
+ var _a;
699
+ if (!kcsCriteria)
700
+ return '';
701
+ try {
702
+ return ((_a = JSON.parse(kcsCriteria)) === null || _a === void 0 ? void 0 : _a.file_label) || '';
703
+ }
704
+ catch (_b) {
705
+ return '';
706
+ }
707
+ }
708
+ async _resetLeftForm() {
709
+ var _a, _b;
710
+ this.isEditMode = false;
711
+ this.selectedChecklistId = null;
712
+ this.checklistName = '';
713
+ this.selectedConstructionType = {};
714
+ this.selectedConstructionDetailType = {};
715
+ this.templateItems = [];
716
+ this.leftGrist.data = { records: [] };
717
+ await this.updateComplete;
718
+ // md-filled-select 내부 상태 초기화
719
+ (_a = this.htmlSelectConstructionType) === null || _a === void 0 ? void 0 : _a.reset();
720
+ (_b = this.htmlSelectConstructionDetailType) === null || _b === void 0 ? void 0 : _b.reset();
721
+ }
722
+ async _delete() {
723
+ var _a, _b;
724
+ const selectedItems = ((_a = this.leftGrist) === null || _a === void 0 ? void 0 : _a.selected) || [];
725
+ if (selectedItems.length > 0) {
726
+ // 왼쪽 그리드에서 선택된 row 삭제 (클라이언트 측)
727
+ if (confirm('선택된 검사항목을 삭제하시겠습니까?')) {
728
+ const records = ((_b = this.leftGrist.dirtyData) === null || _b === void 0 ? void 0 : _b.records) || [];
729
+ const selectedIndices = new Set(selectedItems.map((_, i) => {
730
+ return records.indexOf(selectedItems[i]);
731
+ }));
732
+ const remaining = records.filter((_, i) => !selectedIndices.has(i));
733
+ this.leftGrist.data = { records: remaining };
734
+ }
735
+ }
736
+ else if (this.isEditMode && this.selectedChecklistId) {
737
+ // 체크리스트 자체 삭제
738
+ if (confirm('이 체크리스트를 삭제하시겠습니까?')) {
739
+ const response = await client.mutate({
740
+ mutation: gql `
741
+ mutation ($ids: [String!]!) {
742
+ deleteProjectChecklists(ids: $ids)
743
+ }
744
+ `,
745
+ variables: { ids: [this.selectedChecklistId] }
746
+ });
747
+ if (!response.errors) {
748
+ notify({ message: '삭제되었습니다.' });
749
+ this.isEditMode = false;
750
+ this.selectedChecklistId = null;
751
+ this.checklistName = '';
752
+ this.leftGrist.data = { records: [] };
753
+ this.rightGrist.fetch();
754
+ }
755
+ }
756
+ }
757
+ else {
758
+ notify({ message: '삭제할 항목을 선택해주세요.', level: 'warn' });
759
+ }
760
+ }
761
+ async _fetchChecklistItems(checklistId) {
762
+ var _a, _b, _c, _d;
763
+ const response = await client.query({
764
+ query: gql `
765
+ query ($filters: [Filter!]) {
766
+ projectChecklists(filters: $filters) {
767
+ items {
768
+ projectChecklistItems {
769
+ id
770
+ mainType
771
+ name
772
+ kcsCriteria
773
+ siteSpecCriteria
774
+ sequence
775
+ }
776
+ }
777
+ }
778
+ }
779
+ `,
780
+ variables: {
781
+ filters: [{ name: 'id', value: checklistId, operator: 'eq' }]
782
+ }
783
+ });
784
+ return ((_d = (_c = (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.projectChecklists) === null || _b === void 0 ? void 0 : _b.items) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.projectChecklistItems) || [];
785
+ }
786
+ async _openPreview(record) {
787
+ var _a, _b;
788
+ const items = await this._fetchChecklistItems(record.id);
789
+ const ctName = ((_a = this.constructionTypes.find(ct => ct.id === record.constructionTypeId)) === null || _a === void 0 ? void 0 : _a.name) || '';
790
+ const cdtName = ((_b = this.allDetailTypes.find(dt => dt.id === record.constructionDetailTypeId)) === null || _b === void 0 ? void 0 : _b.name) || '';
791
+ const checklist = {
792
+ name: record.name,
793
+ constructionType: ctName,
794
+ constructionDetailType: cdtName,
795
+ location: '',
796
+ documentNo: '',
797
+ inspectionParts: [],
798
+ buildingInspection: {
799
+ status: BuildingInspectionStatus.WAIT
800
+ },
801
+ checklistItems: items.map(item => (Object.assign(Object.assign({}, item), { detailType: '' })))
802
+ };
803
+ openPopup(html `
804
+ <div style="overflow-y: auto;">
805
+ <checklist-view .mode=${"VIEWER" /* ChecklistMode.VIEWER */} .checklist=${checklist}></checklist-view>
806
+ </div>
807
+ `, {
808
+ backdrop: true,
809
+ size: 'large',
810
+ title: `체크리스트 미리보기 - ${record.name}`
811
+ });
812
+ }
813
+ };
814
+ ProjectChecklistManagement.styles = [
815
+ ScrollbarStyles,
816
+ CommonGristStyles,
817
+ ButtonContainerStyles,
818
+ css `
819
+ :host {
820
+ display: flex;
821
+ flex-direction: column;
822
+ width: 100%;
823
+ height: 100%;
824
+ background-color: var(--md-sys-color-surface);
825
+ }
826
+
827
+ div[header] {
828
+ display: flex;
829
+ align-items: center;
830
+ padding: 0px 12px;
831
+
832
+ h2 {
833
+ display: flex;
834
+ gap: 7px;
835
+ flex: 1;
836
+ margin-bottom: 8px;
837
+ color: #3f71a0;
838
+ font-size: 18px;
839
+
840
+ md-icon[back] {
841
+ background: linear-gradient(135deg, #3f71a0 0%, #5a8cc7 100%);
842
+ color: white;
843
+ padding: 8px;
844
+ border-radius: 50%;
845
+ cursor: pointer;
846
+ box-shadow: 0 2px 8px rgba(63, 113, 160, 0.3);
847
+ width: 14px;
848
+ height: 14px;
849
+ --md-icon-size: 20px;
850
+ }
851
+
852
+ md-icon[back]:hover {
853
+ background: linear-gradient(135deg, #2e5c89 0%, #4a7bb0 100%);
854
+ box-shadow: 0 4px 12px rgba(63, 113, 160, 0.4);
855
+ }
856
+ }
857
+
858
+ div[button-container] {
859
+ display: flex;
860
+ align-items: center;
861
+ justify-content: end;
862
+ flex: 1;
863
+ padding-top: 8px;
864
+
865
+ span[site-spec-name] {
866
+ display: inline-flex;
867
+ align-items: center;
868
+ gap: 2px;
869
+ margin: 0 6px;
870
+ padding: 4px 8px;
871
+ font-size: 13px;
872
+ color: #3f71a0;
873
+ background-color: #eaf2fb;
874
+ border-radius: 4px;
875
+ max-width: 220px;
876
+ overflow: hidden;
877
+ text-overflow: ellipsis;
878
+ white-space: nowrap;
879
+
880
+ md-icon {
881
+ font-size: 16px;
882
+ --md-icon-size: 16px;
883
+ }
884
+ md-icon[clickable] {
885
+ cursor: pointer;
886
+ }
887
+ }
888
+
889
+ md-elevated-button {
890
+ margin: 0 4px;
891
+ --md-elevated-button-container-height: 32px;
892
+ --md-elevated-button-label-text-size: 16px;
893
+ --md-elevated-button-container-color: #0595e5;
894
+ --md-elevated-button-label-text-color: var(--md-sys-color-on-primary);
895
+ --md-elevated-button-hover-label-text-color: var(--md-sys-color-on-primary);
896
+ --md-elevated-button-pressed-label-text-color: var(--md-sys-color-on-primary);
897
+ --md-elevated-button-focus-label-text-color: var(--md-sys-color-on-primary);
898
+ --md-elevated-button-icon-color: var(--md-sys-color-on-primary);
899
+ --md-elevated-button-hover-icon-color: var(--md-sys-color-on-primary);
900
+ --md-elevated-button-pressed-icon-color: var(--md-sys-color-on-primary);
901
+ --md-elevated-button-focus-icon-color: var(--md-sys-color-on-primary);
902
+ }
903
+ }
904
+ }
905
+
906
+ div[body] {
907
+ display: grid;
908
+ grid-template-columns: 1fr 1fr;
909
+ gap: 15px;
910
+ flex: 1;
911
+ padding: 15px;
912
+ overflow: hidden;
913
+ }
914
+
915
+ div[left],
916
+ div[right] {
917
+ display: flex;
918
+ flex-direction: column;
919
+ overflow: hidden;
920
+ border: 1px solid #ddd;
921
+ border-radius: 8px;
922
+ padding: 15px;
923
+ }
924
+
925
+ div[section-header] {
926
+ font-size: 16px;
927
+ font-weight: 600;
928
+ margin-bottom: 10px;
929
+ color: #0595e5;
930
+ display: flex;
931
+ align-items: center;
932
+ gap: 6px;
933
+ }
934
+
935
+ div[form-area] {
936
+ display: grid;
937
+ grid-template-columns: 80px 1fr;
938
+ gap: 10px;
939
+ margin-bottom: 10px;
940
+
941
+ label {
942
+ display: flex;
943
+ align-items: center;
944
+ justify-content: flex-end;
945
+ font-size: 14px;
946
+ }
947
+ }
948
+
949
+ md-filled-select {
950
+ width: 100%;
951
+ --md-filled-select-text-field-container-color: transparent;
952
+ --md-filled-select-text-field-active-indicator-color: #999;
953
+ --md-filled-select-text-field-input-text-size: 14px;
954
+ }
955
+
956
+ md-filled-text-field {
957
+ width: 100%;
958
+ --md-filled-text-field-container-color: transparent;
959
+ --md-filled-text-field-active-indicator-color: #999;
960
+ --md-filled-text-field-input-text-size: 14px;
961
+ }
962
+
963
+ ox-grist {
964
+ flex: 1;
965
+ overflow-y: auto;
966
+ }
967
+
968
+ div[button-container] {
969
+ display: flex;
970
+ justify-content: flex-end;
971
+ gap: 8px;
972
+ margin-top: 10px;
973
+ }
974
+
975
+ md-elevated-button[save] {
976
+ --md-elevated-button-container-color: #0595e5;
977
+ --md-elevated-button-label-text-color: #fff;
978
+ --md-elevated-button-hover-label-text-color: #fff;
979
+ --md-elevated-button-pressed-label-text-color: #fff;
980
+ --md-elevated-button-focus-label-text-color: #fff;
981
+ --md-elevated-button-icon-color: #fff;
982
+ --md-elevated-button-hover-icon-color: #fff;
983
+ --md-elevated-button-pressed-icon-color: #fff;
984
+ --md-elevated-button-focus-icon-color: #fff;
985
+ }
986
+
987
+ md-elevated-button[delete] {
988
+ --md-elevated-button-container-color: #e53935;
989
+ --md-elevated-button-label-text-color: #fff;
990
+ --md-elevated-button-hover-label-text-color: #fff;
991
+ --md-elevated-button-pressed-label-text-color: #fff;
992
+ --md-elevated-button-focus-label-text-color: #fff;
993
+ --md-elevated-button-icon-color: #fff;
994
+ --md-elevated-button-hover-icon-color: #fff;
995
+ --md-elevated-button-pressed-icon-color: #fff;
996
+ --md-elevated-button-focus-icon-color: #fff;
997
+ }
998
+ `
999
+ ];
1000
+ __decorate([
1001
+ state(),
1002
+ __metadata("design:type", String)
1003
+ ], ProjectChecklistManagement.prototype, "projectId", void 0);
1004
+ __decorate([
1005
+ state(),
1006
+ __metadata("design:type", String)
1007
+ ], ProjectChecklistManagement.prototype, "projectName", void 0);
1008
+ __decorate([
1009
+ state(),
1010
+ __metadata("design:type", Array)
1011
+ ], ProjectChecklistManagement.prototype, "constructionTypes", void 0);
1012
+ __decorate([
1013
+ state(),
1014
+ __metadata("design:type", Array)
1015
+ ], ProjectChecklistManagement.prototype, "allDetailTypes", void 0);
1016
+ __decorate([
1017
+ state(),
1018
+ __metadata("design:type", Object)
1019
+ ], ProjectChecklistManagement.prototype, "selectedConstructionType", void 0);
1020
+ __decorate([
1021
+ state(),
1022
+ __metadata("design:type", Object)
1023
+ ], ProjectChecklistManagement.prototype, "selectedConstructionDetailType", void 0);
1024
+ __decorate([
1025
+ state(),
1026
+ __metadata("design:type", String)
1027
+ ], ProjectChecklistManagement.prototype, "checklistName", void 0);
1028
+ __decorate([
1029
+ state(),
1030
+ __metadata("design:type", Array)
1031
+ ], ProjectChecklistManagement.prototype, "templateItems", void 0);
1032
+ __decorate([
1033
+ state(),
1034
+ __metadata("design:type", Object)
1035
+ ], ProjectChecklistManagement.prototype, "leftGristConfig", void 0);
1036
+ __decorate([
1037
+ state(),
1038
+ __metadata("design:type", Object)
1039
+ ], ProjectChecklistManagement.prototype, "rightGristConfig", void 0);
1040
+ __decorate([
1041
+ state(),
1042
+ __metadata("design:type", Boolean)
1043
+ ], ProjectChecklistManagement.prototype, "isEditMode", void 0);
1044
+ __decorate([
1045
+ state(),
1046
+ __metadata("design:type", Object)
1047
+ ], ProjectChecklistManagement.prototype, "selectedChecklistId", void 0);
1048
+ __decorate([
1049
+ state(),
1050
+ __metadata("design:type", String)
1051
+ ], ProjectChecklistManagement.prototype, "siteSpecPdfUrl", void 0);
1052
+ __decorate([
1053
+ state(),
1054
+ __metadata("design:type", String)
1055
+ ], ProjectChecklistManagement.prototype, "siteSpecPdfName", void 0);
1056
+ __decorate([
1057
+ query('ox-grist[left]'),
1058
+ __metadata("design:type", DataGrist)
1059
+ ], ProjectChecklistManagement.prototype, "leftGrist", void 0);
1060
+ __decorate([
1061
+ query('ox-grist[right]'),
1062
+ __metadata("design:type", DataGrist)
1063
+ ], ProjectChecklistManagement.prototype, "rightGrist", void 0);
1064
+ __decorate([
1065
+ query('md-filled-select[constructionType]'),
1066
+ __metadata("design:type", Object)
1067
+ ], ProjectChecklistManagement.prototype, "htmlSelectConstructionType", void 0);
1068
+ __decorate([
1069
+ query('md-filled-select[constructionDetailType]'),
1070
+ __metadata("design:type", Object)
1071
+ ], ProjectChecklistManagement.prototype, "htmlSelectConstructionDetailType", void 0);
1072
+ ProjectChecklistManagement = __decorate([
1073
+ customElement('project-checklist-management')
1074
+ ], ProjectChecklistManagement);
1075
+ export { ProjectChecklistManagement };
1076
+ //# sourceMappingURL=project-checklist-management.js.map