@dssp/supervision 1.0.0-alpha.97 → 1.0.0

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 (498) hide show
  1. package/package.json +13 -12
  2. package/dist-client/bootstrap.d.ts +0 -1
  3. package/dist-client/bootstrap.js +0 -2
  4. package/dist-client/bootstrap.js.map +0 -1
  5. package/dist-client/graphql/building-inspection.d.ts +0 -1
  6. package/dist-client/graphql/building-inspection.js +0 -102
  7. package/dist-client/graphql/building-inspection.js.map +0 -1
  8. package/dist-client/index.d.ts +0 -0
  9. package/dist-client/index.js +0 -2
  10. package/dist-client/index.js.map +0 -1
  11. package/dist-client/pages/action-plan/action-plan-importer.d.ts +0 -10
  12. package/dist-client/pages/action-plan/action-plan-importer.js +0 -101
  13. package/dist-client/pages/action-plan/action-plan-importer.js.map +0 -1
  14. package/dist-client/pages/action-plan/action-plan-list-page.d.ts +0 -62
  15. package/dist-client/pages/action-plan/action-plan-list-page.js +0 -322
  16. package/dist-client/pages/action-plan/action-plan-list-page.js.map +0 -1
  17. package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.d.ts +0 -22
  18. package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js +0 -171
  19. package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js.map +0 -1
  20. package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.d.ts +0 -59
  21. package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js +0 -868
  22. package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js.map +0 -1
  23. package/dist-client/pages/building-inspection/building-inspection-detail-camera.d.ts +0 -27
  24. package/dist-client/pages/building-inspection/building-inspection-detail-camera.js +0 -342
  25. package/dist-client/pages/building-inspection/building-inspection-detail-camera.js.map +0 -1
  26. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.d.ts +0 -31
  27. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js +0 -332
  28. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js.map +0 -1
  29. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.d.ts +0 -36
  30. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js +0 -369
  31. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js.map +0 -1
  32. package/dist-client/pages/building-inspection/building-inspection-list.d.ts +0 -98
  33. package/dist-client/pages/building-inspection/building-inspection-list.js +0 -914
  34. package/dist-client/pages/building-inspection/building-inspection-list.js.map +0 -1
  35. package/dist-client/pages/building-inspection/building-inspection-management.d.ts +0 -82
  36. package/dist-client/pages/building-inspection/building-inspection-management.js +0 -1527
  37. package/dist-client/pages/building-inspection/building-inspection-management.js.map +0 -1
  38. package/dist-client/pages/building-inspection/component/building-inspection-detail-header.d.ts +0 -4
  39. package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js +0 -238
  40. package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js.map +0 -1
  41. package/dist-client/pages/building-inspection/component/daily-worklog-popup.d.ts +0 -27
  42. package/dist-client/pages/building-inspection/component/daily-worklog-popup.js +0 -542
  43. package/dist-client/pages/building-inspection/component/daily-worklog-popup.js.map +0 -1
  44. package/dist-client/pages/building-inspection/component/field-document/field-document-constants.d.ts +0 -18
  45. package/dist-client/pages/building-inspection/component/field-document/field-document-constants.js +0 -630
  46. package/dist-client/pages/building-inspection/component/field-document/field-document-constants.js.map +0 -1
  47. package/dist-client/pages/building-inspection/component/field-document/field-document-detail-popup.d.ts +0 -10
  48. package/dist-client/pages/building-inspection/component/field-document/field-document-detail-popup.js +0 -219
  49. package/dist-client/pages/building-inspection/component/field-document/field-document-detail-popup.js.map +0 -1
  50. package/dist-client/pages/building-inspection/component/field-document/field-document-list-panel.d.ts +0 -25
  51. package/dist-client/pages/building-inspection/component/field-document/field-document-list-panel.js +0 -546
  52. package/dist-client/pages/building-inspection/component/field-document/field-document-list-panel.js.map +0 -1
  53. package/dist-client/pages/building-inspection/component/field-document/field-document-popup.d.ts +0 -42
  54. package/dist-client/pages/building-inspection/component/field-document/field-document-popup.js +0 -738
  55. package/dist-client/pages/building-inspection/component/field-document/field-document-popup.js.map +0 -1
  56. package/dist-client/pages/building-inspection/component/image-preview-popup.d.ts +0 -15
  57. package/dist-client/pages/building-inspection/component/image-preview-popup.js +0 -348
  58. package/dist-client/pages/building-inspection/component/image-preview-popup.js.map +0 -1
  59. package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.d.ts +0 -25
  60. package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js +0 -491
  61. package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js.map +0 -1
  62. package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.d.ts +0 -31
  63. package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js +0 -485
  64. package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js.map +0 -1
  65. package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.d.ts +0 -27
  66. package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js +0 -416
  67. package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js.map +0 -1
  68. package/dist-client/pages/building-inspection/component/inspection-event-provider.d.ts +0 -9
  69. package/dist-client/pages/building-inspection/component/inspection-event-provider.js +0 -190
  70. package/dist-client/pages/building-inspection/component/inspection-event-provider.js.map +0 -1
  71. package/dist-client/pages/building-inspection/inspection-create-popup.d.ts +0 -3
  72. package/dist-client/pages/building-inspection/inspection-create-popup.js +0 -841
  73. package/dist-client/pages/building-inspection/inspection-create-popup.js.map +0 -1
  74. package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.d.ts +0 -3
  75. package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.js +0 -817
  76. package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.js.map +0 -1
  77. package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.d.ts +0 -60
  78. package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js +0 -1135
  79. package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js.map +0 -1
  80. package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.d.ts +0 -2
  81. package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js +0 -740
  82. package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js.map +0 -1
  83. package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.d.ts +0 -19
  84. package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js +0 -205
  85. package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js.map +0 -1
  86. package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.d.ts +0 -1
  87. package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.js +0 -304
  88. package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.js.map +0 -1
  89. package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.d.ts +0 -15
  90. package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.js +0 -430
  91. package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.js.map +0 -1
  92. package/dist-client/pages/checklist/attachment-list-popup.d.ts +0 -3
  93. package/dist-client/pages/checklist/attachment-list-popup.js +0 -492
  94. package/dist-client/pages/checklist/attachment-list-popup.js.map +0 -1
  95. package/dist-client/pages/checklist/checklist-view.d.ts +0 -16
  96. package/dist-client/pages/checklist/checklist-view.js +0 -926
  97. package/dist-client/pages/checklist/checklist-view.js.map +0 -1
  98. package/dist-client/pages/checklist/comment-list-popup.d.ts +0 -1
  99. package/dist-client/pages/checklist/comment-list-popup.js +0 -367
  100. package/dist-client/pages/checklist/comment-list-popup.js.map +0 -1
  101. package/dist-client/pages/checklist/file-preview-popup.d.ts +0 -1
  102. package/dist-client/pages/checklist/file-preview-popup.js +0 -77
  103. package/dist-client/pages/checklist/file-preview-popup.js.map +0 -1
  104. package/dist-client/pages/checklist/inspection-info-popup.d.ts +0 -49
  105. package/dist-client/pages/checklist/inspection-info-popup.js +0 -683
  106. package/dist-client/pages/checklist/inspection-info-popup.js.map +0 -1
  107. package/dist-client/pages/checklist/inspection-tab-popup.d.ts +0 -18
  108. package/dist-client/pages/checklist/inspection-tab-popup.js +0 -196
  109. package/dist-client/pages/checklist/inspection-tab-popup.js.map +0 -1
  110. package/dist-client/pages/checklist/kcs-criteria-popup.d.ts +0 -16
  111. package/dist-client/pages/checklist/kcs-criteria-popup.js +0 -179
  112. package/dist-client/pages/checklist/kcs-criteria-popup.js.map +0 -1
  113. package/dist-client/pages/checklist-database/checklist-database.d.ts +0 -35
  114. package/dist-client/pages/checklist-database/checklist-database.js +0 -540
  115. package/dist-client/pages/checklist-database/checklist-database.js.map +0 -1
  116. package/dist-client/pages/checklist-template/checklist-template-item.d.ts +0 -2
  117. package/dist-client/pages/checklist-template/checklist-template-item.js +0 -278
  118. package/dist-client/pages/checklist-template/checklist-template-item.js.map +0 -1
  119. package/dist-client/pages/checklist-template/checklist-template-list.d.ts +0 -53
  120. package/dist-client/pages/checklist-template/checklist-template-list.js +0 -350
  121. package/dist-client/pages/checklist-template/checklist-template-list.js.map +0 -1
  122. package/dist-client/pages/checklist-template/checklist-type-management.d.ts +0 -55
  123. package/dist-client/pages/checklist-template/checklist-type-management.js +0 -250
  124. package/dist-client/pages/checklist-template/checklist-type-management.js.map +0 -1
  125. package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.d.ts +0 -2
  126. package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.js +0 -223
  127. package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.js.map +0 -1
  128. package/dist-client/pages/checklist-template/construction-checklist-template-list.d.ts +0 -55
  129. package/dist-client/pages/checklist-template/construction-checklist-template-list.js +0 -404
  130. package/dist-client/pages/checklist-template/construction-checklist-template-list.js.map +0 -1
  131. package/dist-client/pages/issue/issue-importer.d.ts +0 -10
  132. package/dist-client/pages/issue/issue-importer.js +0 -101
  133. package/dist-client/pages/issue/issue-importer.js.map +0 -1
  134. package/dist-client/pages/issue/issue-list-page.d.ts +0 -62
  135. package/dist-client/pages/issue/issue-list-page.js +0 -322
  136. package/dist-client/pages/issue/issue-list-page.js.map +0 -1
  137. package/dist-client/pages/project-checklist/project-checklist-management.d.ts +0 -62
  138. package/dist-client/pages/project-checklist/project-checklist-management.js +0 -1145
  139. package/dist-client/pages/project-checklist/project-checklist-management.js.map +0 -1
  140. package/dist-client/pages/project-report/project-report-importer.d.ts +0 -10
  141. package/dist-client/pages/project-report/project-report-importer.js +0 -101
  142. package/dist-client/pages/project-report/project-report-importer.js.map +0 -1
  143. package/dist-client/pages/project-report/project-report-list-page.d.ts +0 -62
  144. package/dist-client/pages/project-report/project-report-list-page.js +0 -322
  145. package/dist-client/pages/project-report/project-report-list-page.js.map +0 -1
  146. package/dist-client/pages/supervisor/supervisor-importer.d.ts +0 -10
  147. package/dist-client/pages/supervisor/supervisor-importer.js +0 -101
  148. package/dist-client/pages/supervisor/supervisor-importer.js.map +0 -1
  149. package/dist-client/pages/supervisor/supervisor-list-page.d.ts +0 -62
  150. package/dist-client/pages/supervisor/supervisor-list-page.js +0 -322
  151. package/dist-client/pages/supervisor/supervisor-list-page.js.map +0 -1
  152. package/dist-client/route.d.ts +0 -1
  153. package/dist-client/route.js +0 -44
  154. package/dist-client/route.js.map +0 -1
  155. package/dist-client/stt/speech-to-text.d.ts +0 -41
  156. package/dist-client/stt/speech-to-text.js +0 -331
  157. package/dist-client/stt/speech-to-text.js.map +0 -1
  158. package/dist-client/stt/stt-utils.d.ts +0 -28
  159. package/dist-client/stt/stt-utils.js +0 -146
  160. package/dist-client/stt/stt-utils.js.map +0 -1
  161. package/dist-client/tsconfig.tsbuildinfo +0 -1
  162. package/dist-server/controllers/index.d.ts +0 -0
  163. package/dist-server/controllers/index.js +0 -1
  164. package/dist-server/controllers/index.js.map +0 -1
  165. package/dist-server/index.d.ts +0 -3
  166. package/dist-server/index.js +0 -7
  167. package/dist-server/index.js.map +0 -1
  168. package/dist-server/middlewares/index.d.ts +0 -1
  169. package/dist-server/middlewares/index.js +0 -7
  170. package/dist-server/middlewares/index.js.map +0 -1
  171. package/dist-server/migrations/index.d.ts +0 -1
  172. package/dist-server/migrations/index.js +0 -12
  173. package/dist-server/migrations/index.js.map +0 -1
  174. package/dist-server/routes.d.ts +0 -0
  175. package/dist-server/routes.js +0 -25
  176. package/dist-server/routes.js.map +0 -1
  177. package/dist-server/service/action-plan/action-plan-mutation.d.ts +0 -10
  178. package/dist-server/service/action-plan/action-plan-mutation.js +0 -167
  179. package/dist-server/service/action-plan/action-plan-mutation.js.map +0 -1
  180. package/dist-server/service/action-plan/action-plan-query.d.ts +0 -12
  181. package/dist-server/service/action-plan/action-plan-query.js +0 -91
  182. package/dist-server/service/action-plan/action-plan-query.js.map +0 -1
  183. package/dist-server/service/action-plan/action-plan-type.d.ts +0 -23
  184. package/dist-server/service/action-plan/action-plan-type.js +0 -86
  185. package/dist-server/service/action-plan/action-plan-type.js.map +0 -1
  186. package/dist-server/service/action-plan/action-plan.d.ts +0 -27
  187. package/dist-server/service/action-plan/action-plan.js +0 -116
  188. package/dist-server/service/action-plan/action-plan.js.map +0 -1
  189. package/dist-server/service/action-plan/index.d.ts +0 -5
  190. package/dist-server/service/action-plan/index.js +0 -9
  191. package/dist-server/service/action-plan/index.js.map +0 -1
  192. package/dist-server/service/building-inspection/building-inspection-mutation.d.ts +0 -9
  193. package/dist-server/service/building-inspection/building-inspection-mutation.js +0 -404
  194. package/dist-server/service/building-inspection/building-inspection-mutation.js.map +0 -1
  195. package/dist-server/service/building-inspection/building-inspection-query.d.ts +0 -24
  196. package/dist-server/service/building-inspection/building-inspection-query.js +0 -406
  197. package/dist-server/service/building-inspection/building-inspection-query.js.map +0 -1
  198. package/dist-server/service/building-inspection/building-inspection-type.d.ts +0 -89
  199. package/dist-server/service/building-inspection/building-inspection-type.js +0 -330
  200. package/dist-server/service/building-inspection/building-inspection-type.js.map +0 -1
  201. package/dist-server/service/building-inspection/building-inspection.d.ts +0 -42
  202. package/dist-server/service/building-inspection/building-inspection.js +0 -186
  203. package/dist-server/service/building-inspection/building-inspection.js.map +0 -1
  204. package/dist-server/service/building-inspection/index.d.ts +0 -7
  205. package/dist-server/service/building-inspection/index.js +0 -19
  206. package/dist-server/service/building-inspection/index.js.map +0 -1
  207. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.d.ts +0 -6
  208. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js +0 -66
  209. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js.map +0 -1
  210. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.d.ts +0 -16
  211. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js +0 -171
  212. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js.map +0 -1
  213. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.d.ts +0 -23
  214. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js +0 -90
  215. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js.map +0 -1
  216. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.d.ts +0 -33
  217. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js +0 -132
  218. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js.map +0 -1
  219. package/dist-server/service/building-inspection-daily-worklog/index.d.ts +0 -5
  220. package/dist-server/service/building-inspection-daily-worklog/index.js +0 -9
  221. package/dist-server/service/building-inspection-daily-worklog/index.js.map +0 -1
  222. package/dist-server/service/building-inspection-history/building-inspection-history-query.d.ts +0 -16
  223. package/dist-server/service/building-inspection-history/building-inspection-history-query.js +0 -120
  224. package/dist-server/service/building-inspection-history/building-inspection-history-query.js.map +0 -1
  225. package/dist-server/service/building-inspection-history/building-inspection-history-type.d.ts +0 -5
  226. package/dist-server/service/building-inspection-history/building-inspection-history-type.js +0 -21
  227. package/dist-server/service/building-inspection-history/building-inspection-history-type.js.map +0 -1
  228. package/dist-server/service/building-inspection-history/building-inspection-history.d.ts +0 -35
  229. package/dist-server/service/building-inspection-history/building-inspection-history.js +0 -162
  230. package/dist-server/service/building-inspection-history/building-inspection-history.js.map +0 -1
  231. package/dist-server/service/building-inspection-history/event-subscriber.d.ts +0 -7
  232. package/dist-server/service/building-inspection-history/event-subscriber.js +0 -21
  233. package/dist-server/service/building-inspection-history/event-subscriber.js.map +0 -1
  234. package/dist-server/service/building-inspection-history/index.d.ts +0 -6
  235. package/dist-server/service/building-inspection-history/index.js +0 -10
  236. package/dist-server/service/building-inspection-history/index.js.map +0 -1
  237. package/dist-server/service/checklist/checklist-mutation.d.ts +0 -3
  238. package/dist-server/service/checklist/checklist-mutation.js +0 -30
  239. package/dist-server/service/checklist/checklist-mutation.js.map +0 -1
  240. package/dist-server/service/checklist/checklist-query.d.ts +0 -21
  241. package/dist-server/service/checklist/checklist-query.js +0 -177
  242. package/dist-server/service/checklist/checklist-query.js.map +0 -1
  243. package/dist-server/service/checklist/checklist-type.d.ts +0 -5
  244. package/dist-server/service/checklist/checklist-type.js +0 -21
  245. package/dist-server/service/checklist/checklist-type.js.map +0 -1
  246. package/dist-server/service/checklist/checklist.d.ts +0 -66
  247. package/dist-server/service/checklist/checklist.js +0 -259
  248. package/dist-server/service/checklist/checklist.js.map +0 -1
  249. package/dist-server/service/checklist/event-subscriber.d.ts +0 -7
  250. package/dist-server/service/checklist/event-subscriber.js +0 -21
  251. package/dist-server/service/checklist/event-subscriber.js.map +0 -1
  252. package/dist-server/service/checklist/index.d.ts +0 -5
  253. package/dist-server/service/checklist/index.js +0 -9
  254. package/dist-server/service/checklist/index.js.map +0 -1
  255. package/dist-server/service/checklist-history/checklist-history-query.d.ts +0 -11
  256. package/dist-server/service/checklist-history/checklist-history-query.js +0 -77
  257. package/dist-server/service/checklist-history/checklist-history-query.js.map +0 -1
  258. package/dist-server/service/checklist-history/checklist-history-type.d.ts +0 -5
  259. package/dist-server/service/checklist-history/checklist-history-type.js +0 -21
  260. package/dist-server/service/checklist-history/checklist-history-type.js.map +0 -1
  261. package/dist-server/service/checklist-history/checklist-history.d.ts +0 -50
  262. package/dist-server/service/checklist-history/checklist-history.js +0 -239
  263. package/dist-server/service/checklist-history/checklist-history.js.map +0 -1
  264. package/dist-server/service/checklist-history/event-subscriber.d.ts +0 -7
  265. package/dist-server/service/checklist-history/event-subscriber.js +0 -21
  266. package/dist-server/service/checklist-history/event-subscriber.js.map +0 -1
  267. package/dist-server/service/checklist-history/index.d.ts +0 -6
  268. package/dist-server/service/checklist-history/index.js +0 -10
  269. package/dist-server/service/checklist-history/index.js.map +0 -1
  270. package/dist-server/service/checklist-item/checklist-item-mutation.d.ts +0 -2
  271. package/dist-server/service/checklist-item/checklist-item-mutation.js +0 -13
  272. package/dist-server/service/checklist-item/checklist-item-mutation.js.map +0 -1
  273. package/dist-server/service/checklist-item/checklist-item-query.d.ts +0 -18
  274. package/dist-server/service/checklist-item/checklist-item-query.js +0 -138
  275. package/dist-server/service/checklist-item/checklist-item-query.js.map +0 -1
  276. package/dist-server/service/checklist-item/checklist-item-type.d.ts +0 -5
  277. package/dist-server/service/checklist-item/checklist-item-type.js +0 -21
  278. package/dist-server/service/checklist-item/checklist-item-type.js.map +0 -1
  279. package/dist-server/service/checklist-item/checklist-item.d.ts +0 -29
  280. package/dist-server/service/checklist-item/checklist-item.js +0 -124
  281. package/dist-server/service/checklist-item/checklist-item.js.map +0 -1
  282. package/dist-server/service/checklist-item/index.d.ts +0 -4
  283. package/dist-server/service/checklist-item/index.js +0 -9
  284. package/dist-server/service/checklist-item/index.js.map +0 -1
  285. package/dist-server/service/checklist-item-comment/checklist-item-comment-history.d.ts +0 -16
  286. package/dist-server/service/checklist-item-comment/checklist-item-comment-history.js +0 -83
  287. package/dist-server/service/checklist-item-comment/checklist-item-comment-history.js.map +0 -1
  288. package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.d.ts +0 -8
  289. package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js +0 -114
  290. package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js.map +0 -1
  291. package/dist-server/service/checklist-item-comment/checklist-item-comment-query.d.ts +0 -7
  292. package/dist-server/service/checklist-item-comment/checklist-item-comment-query.js +0 -49
  293. package/dist-server/service/checklist-item-comment/checklist-item-comment-query.js.map +0 -1
  294. package/dist-server/service/checklist-item-comment/checklist-item-comment-type.d.ts +0 -14
  295. package/dist-server/service/checklist-item-comment/checklist-item-comment-type.js +0 -53
  296. package/dist-server/service/checklist-item-comment/checklist-item-comment-type.js.map +0 -1
  297. package/dist-server/service/checklist-item-comment/checklist-item-comment.d.ts +0 -12
  298. package/dist-server/service/checklist-item-comment/checklist-item-comment.js +0 -57
  299. package/dist-server/service/checklist-item-comment/checklist-item-comment.js.map +0 -1
  300. package/dist-server/service/checklist-item-comment/index.d.ts +0 -5
  301. package/dist-server/service/checklist-item-comment/index.js +0 -10
  302. package/dist-server/service/checklist-item-comment/index.js.map +0 -1
  303. package/dist-server/service/checklist-item-history/checklist-item-history-query.d.ts +0 -16
  304. package/dist-server/service/checklist-item-history/checklist-item-history-query.js +0 -123
  305. package/dist-server/service/checklist-item-history/checklist-item-history-query.js.map +0 -1
  306. package/dist-server/service/checklist-item-history/checklist-item-history-type.d.ts +0 -5
  307. package/dist-server/service/checklist-item-history/checklist-item-history-type.js +0 -21
  308. package/dist-server/service/checklist-item-history/checklist-item-history-type.js.map +0 -1
  309. package/dist-server/service/checklist-item-history/checklist-item-history.d.ts +0 -27
  310. package/dist-server/service/checklist-item-history/checklist-item-history.js +0 -133
  311. package/dist-server/service/checklist-item-history/checklist-item-history.js.map +0 -1
  312. package/dist-server/service/checklist-item-history/event-subscriber.d.ts +0 -7
  313. package/dist-server/service/checklist-item-history/event-subscriber.js +0 -21
  314. package/dist-server/service/checklist-item-history/event-subscriber.js.map +0 -1
  315. package/dist-server/service/checklist-item-history/index.d.ts +0 -6
  316. package/dist-server/service/checklist-item-history/index.js +0 -10
  317. package/dist-server/service/checklist-item-history/index.js.map +0 -1
  318. package/dist-server/service/checklist-template/checklist-template-mutation.d.ts +0 -6
  319. package/dist-server/service/checklist-template/checklist-template-mutation.js +0 -64
  320. package/dist-server/service/checklist-template/checklist-template-mutation.js.map +0 -1
  321. package/dist-server/service/checklist-template/checklist-template-query.d.ts +0 -10
  322. package/dist-server/service/checklist-template/checklist-template-query.js +0 -62
  323. package/dist-server/service/checklist-template/checklist-template-query.js.map +0 -1
  324. package/dist-server/service/checklist-template/checklist-template-type.d.ts +0 -10
  325. package/dist-server/service/checklist-template/checklist-template-type.js +0 -39
  326. package/dist-server/service/checklist-template/checklist-template-type.js.map +0 -1
  327. package/dist-server/service/checklist-template/checklist-template.d.ts +0 -17
  328. package/dist-server/service/checklist-template/checklist-template.js +0 -78
  329. package/dist-server/service/checklist-template/checklist-template.js.map +0 -1
  330. package/dist-server/service/checklist-template/index.d.ts +0 -5
  331. package/dist-server/service/checklist-template/index.js +0 -9
  332. package/dist-server/service/checklist-template/index.js.map +0 -1
  333. package/dist-server/service/checklist-template-item/checklist-template-item-mutation.d.ts +0 -7
  334. package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js +0 -80
  335. package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js.map +0 -1
  336. package/dist-server/service/checklist-template-item/checklist-template-item-query.d.ts +0 -11
  337. package/dist-server/service/checklist-template-item/checklist-template-item-query.js +0 -78
  338. package/dist-server/service/checklist-template-item/checklist-template-item-query.js.map +0 -1
  339. package/dist-server/service/checklist-template-item/checklist-template-item-type.d.ts +0 -19
  340. package/dist-server/service/checklist-template-item/checklist-template-item-type.js +0 -69
  341. package/dist-server/service/checklist-template-item/checklist-template-item-type.js.map +0 -1
  342. package/dist-server/service/checklist-template-item/checklist-template-item.d.ts +0 -26
  343. package/dist-server/service/checklist-template-item/checklist-template-item.js +0 -106
  344. package/dist-server/service/checklist-template-item/checklist-template-item.js.map +0 -1
  345. package/dist-server/service/checklist-template-item/index.d.ts +0 -5
  346. package/dist-server/service/checklist-template-item/index.js +0 -9
  347. package/dist-server/service/checklist-template-item/index.js.map +0 -1
  348. package/dist-server/service/checklist-template-item/spec-matching-service.d.ts +0 -2
  349. package/dist-server/service/checklist-template-item/spec-matching-service.js +0 -51
  350. package/dist-server/service/checklist-template-item/spec-matching-service.js.map +0 -1
  351. package/dist-server/service/checklist-type/checklist-type-mutation.d.ts +0 -6
  352. package/dist-server/service/checklist-type/checklist-type-mutation.js +0 -64
  353. package/dist-server/service/checklist-type/checklist-type-mutation.js.map +0 -1
  354. package/dist-server/service/checklist-type/checklist-type-query.d.ts +0 -10
  355. package/dist-server/service/checklist-type/checklist-type-query.js +0 -62
  356. package/dist-server/service/checklist-type/checklist-type-query.js.map +0 -1
  357. package/dist-server/service/checklist-type/checklist-type-type.d.ts +0 -11
  358. package/dist-server/service/checklist-type/checklist-type-type.js +0 -43
  359. package/dist-server/service/checklist-type/checklist-type-type.js.map +0 -1
  360. package/dist-server/service/checklist-type/checklist-type.d.ts +0 -19
  361. package/dist-server/service/checklist-type/checklist-type.js +0 -78
  362. package/dist-server/service/checklist-type/checklist-type.js.map +0 -1
  363. package/dist-server/service/checklist-type/index.d.ts +0 -5
  364. package/dist-server/service/checklist-type/index.js +0 -9
  365. package/dist-server/service/checklist-type/index.js.map +0 -1
  366. package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.d.ts +0 -7
  367. package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.js +0 -107
  368. package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.js.map +0 -1
  369. package/dist-server/service/construction-checklist-template/construction-checklist-template-query.d.ts +0 -10
  370. package/dist-server/service/construction-checklist-template/construction-checklist-template-query.js +0 -62
  371. package/dist-server/service/construction-checklist-template/construction-checklist-template-query.js.map +0 -1
  372. package/dist-server/service/construction-checklist-template/construction-checklist-template-type.d.ts +0 -11
  373. package/dist-server/service/construction-checklist-template/construction-checklist-template-type.js +0 -43
  374. package/dist-server/service/construction-checklist-template/construction-checklist-template-type.js.map +0 -1
  375. package/dist-server/service/construction-checklist-template/construction-checklist-template.d.ts +0 -18
  376. package/dist-server/service/construction-checklist-template/construction-checklist-template.js +0 -80
  377. package/dist-server/service/construction-checklist-template/construction-checklist-template.js.map +0 -1
  378. package/dist-server/service/construction-checklist-template/index.d.ts +0 -5
  379. package/dist-server/service/construction-checklist-template/index.js +0 -9
  380. package/dist-server/service/construction-checklist-template/index.js.map +0 -1
  381. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.d.ts +0 -6
  382. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.js +0 -56
  383. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.js.map +0 -1
  384. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.d.ts +0 -9
  385. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.js +0 -53
  386. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.js.map +0 -1
  387. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.d.ts +0 -17
  388. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.js +0 -67
  389. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.js.map +0 -1
  390. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.d.ts +0 -24
  391. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.js +0 -113
  392. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.js.map +0 -1
  393. package/dist-server/service/construction-checklist-template-item/index.d.ts +0 -5
  394. package/dist-server/service/construction-checklist-template-item/index.js +0 -9
  395. package/dist-server/service/construction-checklist-template-item/index.js.map +0 -1
  396. package/dist-server/service/field-document/field-document-auto-file.d.ts +0 -21
  397. package/dist-server/service/field-document/field-document-auto-file.js +0 -47
  398. package/dist-server/service/field-document/field-document-auto-file.js.map +0 -1
  399. package/dist-server/service/field-document/field-document-mutation.d.ts +0 -9
  400. package/dist-server/service/field-document/field-document-mutation.js +0 -139
  401. package/dist-server/service/field-document/field-document-mutation.js.map +0 -1
  402. package/dist-server/service/field-document/field-document-query.d.ts +0 -14
  403. package/dist-server/service/field-document/field-document-query.js +0 -120
  404. package/dist-server/service/field-document/field-document-query.js.map +0 -1
  405. package/dist-server/service/field-document/field-document-summary-service.d.ts +0 -10
  406. package/dist-server/service/field-document/field-document-summary-service.js +0 -79
  407. package/dist-server/service/field-document/field-document-summary-service.js.map +0 -1
  408. package/dist-server/service/field-document/field-document-type.d.ts +0 -24
  409. package/dist-server/service/field-document/field-document-type.js +0 -88
  410. package/dist-server/service/field-document/field-document-type.js.map +0 -1
  411. package/dist-server/service/field-document/field-document.d.ts +0 -29
  412. package/dist-server/service/field-document/field-document.js +0 -127
  413. package/dist-server/service/field-document/field-document.js.map +0 -1
  414. package/dist-server/service/field-document/index.d.ts +0 -5
  415. package/dist-server/service/field-document/index.js +0 -9
  416. package/dist-server/service/field-document/index.js.map +0 -1
  417. package/dist-server/service/index.d.ts +0 -23
  418. package/dist-server/service/index.js +0 -98
  419. package/dist-server/service/index.js.map +0 -1
  420. package/dist-server/service/issue/index.d.ts +0 -5
  421. package/dist-server/service/issue/index.js +0 -9
  422. package/dist-server/service/issue/index.js.map +0 -1
  423. package/dist-server/service/issue/issue-mutation.d.ts +0 -10
  424. package/dist-server/service/issue/issue-mutation.js +0 -167
  425. package/dist-server/service/issue/issue-mutation.js.map +0 -1
  426. package/dist-server/service/issue/issue-query.d.ts +0 -12
  427. package/dist-server/service/issue/issue-query.js +0 -91
  428. package/dist-server/service/issue/issue-query.js.map +0 -1
  429. package/dist-server/service/issue/issue-type.d.ts +0 -23
  430. package/dist-server/service/issue/issue-type.js +0 -86
  431. package/dist-server/service/issue/issue-type.js.map +0 -1
  432. package/dist-server/service/issue/issue.d.ts +0 -26
  433. package/dist-server/service/issue/issue.js +0 -111
  434. package/dist-server/service/issue/issue.js.map +0 -1
  435. package/dist-server/service/project-checklist/index.d.ts +0 -5
  436. package/dist-server/service/project-checklist/index.js +0 -9
  437. package/dist-server/service/project-checklist/index.js.map +0 -1
  438. package/dist-server/service/project-checklist/project-checklist-mutation.d.ts +0 -7
  439. package/dist-server/service/project-checklist/project-checklist-mutation.js +0 -118
  440. package/dist-server/service/project-checklist/project-checklist-mutation.js.map +0 -1
  441. package/dist-server/service/project-checklist/project-checklist-query.d.ts +0 -12
  442. package/dist-server/service/project-checklist/project-checklist-query.js +0 -76
  443. package/dist-server/service/project-checklist/project-checklist-query.js.map +0 -1
  444. package/dist-server/service/project-checklist/project-checklist-type.d.ts +0 -18
  445. package/dist-server/service/project-checklist/project-checklist-type.js +0 -69
  446. package/dist-server/service/project-checklist/project-checklist-type.js.map +0 -1
  447. package/dist-server/service/project-checklist/project-checklist.d.ts +0 -20
  448. package/dist-server/service/project-checklist/project-checklist.js +0 -90
  449. package/dist-server/service/project-checklist/project-checklist.js.map +0 -1
  450. package/dist-server/service/project-checklist/spec-matching-service.d.ts +0 -17
  451. package/dist-server/service/project-checklist/spec-matching-service.js +0 -140
  452. package/dist-server/service/project-checklist/spec-matching-service.js.map +0 -1
  453. package/dist-server/service/project-checklist-item/index.d.ts +0 -4
  454. package/dist-server/service/project-checklist-item/index.js +0 -9
  455. package/dist-server/service/project-checklist-item/index.js.map +0 -1
  456. package/dist-server/service/project-checklist-item/project-checklist-item-mutation.d.ts +0 -2
  457. package/dist-server/service/project-checklist-item/project-checklist-item-mutation.js +0 -13
  458. package/dist-server/service/project-checklist-item/project-checklist-item-mutation.js.map +0 -1
  459. package/dist-server/service/project-checklist-item/project-checklist-item-query.d.ts +0 -5
  460. package/dist-server/service/project-checklist-item/project-checklist-item-query.js +0 -34
  461. package/dist-server/service/project-checklist-item/project-checklist-item-query.js.map +0 -1
  462. package/dist-server/service/project-checklist-item/project-checklist-item-type.d.ts +0 -5
  463. package/dist-server/service/project-checklist-item/project-checklist-item-type.js +0 -21
  464. package/dist-server/service/project-checklist-item/project-checklist-item-type.js.map +0 -1
  465. package/dist-server/service/project-checklist-item/project-checklist-item.d.ts +0 -19
  466. package/dist-server/service/project-checklist-item/project-checklist-item.js +0 -92
  467. package/dist-server/service/project-checklist-item/project-checklist-item.js.map +0 -1
  468. package/dist-server/service/project-report/index.d.ts +0 -5
  469. package/dist-server/service/project-report/index.js +0 -9
  470. package/dist-server/service/project-report/index.js.map +0 -1
  471. package/dist-server/service/project-report/project-report-mutation.d.ts +0 -10
  472. package/dist-server/service/project-report/project-report-mutation.js +0 -167
  473. package/dist-server/service/project-report/project-report-mutation.js.map +0 -1
  474. package/dist-server/service/project-report/project-report-query.d.ts +0 -12
  475. package/dist-server/service/project-report/project-report-query.js +0 -91
  476. package/dist-server/service/project-report/project-report-query.js.map +0 -1
  477. package/dist-server/service/project-report/project-report-type.d.ts +0 -23
  478. package/dist-server/service/project-report/project-report-type.js +0 -86
  479. package/dist-server/service/project-report/project-report-type.js.map +0 -1
  480. package/dist-server/service/project-report/project-report.d.ts +0 -28
  481. package/dist-server/service/project-report/project-report.js +0 -121
  482. package/dist-server/service/project-report/project-report.js.map +0 -1
  483. package/dist-server/service/supervisor/index.d.ts +0 -5
  484. package/dist-server/service/supervisor/index.js +0 -9
  485. package/dist-server/service/supervisor/index.js.map +0 -1
  486. package/dist-server/service/supervisor/supervisor-mutation.d.ts +0 -10
  487. package/dist-server/service/supervisor/supervisor-mutation.js +0 -167
  488. package/dist-server/service/supervisor/supervisor-mutation.js.map +0 -1
  489. package/dist-server/service/supervisor/supervisor-query.d.ts +0 -12
  490. package/dist-server/service/supervisor/supervisor-query.js +0 -91
  491. package/dist-server/service/supervisor/supervisor-query.js.map +0 -1
  492. package/dist-server/service/supervisor/supervisor-type.d.ts +0 -23
  493. package/dist-server/service/supervisor/supervisor-type.js +0 -86
  494. package/dist-server/service/supervisor/supervisor-type.js.map +0 -1
  495. package/dist-server/service/supervisor/supervisor.d.ts +0 -28
  496. package/dist-server/service/supervisor/supervisor.js +0 -121
  497. package/dist-server/service/supervisor/supervisor.js.map +0 -1
  498. package/dist-server/tsconfig.tsbuildinfo +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"project-checklist-management.js","sourceRoot":"","sources":["../../../client/pages/project-checklist/project-checklist-management.ts"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,yCAAyC,CAAA;AAChD,OAAO,uCAAuC,CAAA;AAC9C,OAAO,uCAAuC,CAAA;AAC9C,OAAO,uCAAuC,CAAA;AAC9C,OAAO,8CAA8C,CAAA;AACrD,OAAO,qBAAqB,CAAA;AAC5B,OAAO,6BAA6B,CAAA;AACpC,OAAO,iCAAiC,CAAA;AACxC,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AAC3F,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAEzC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC/B,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AACnD,OAAO,GAAG,MAAM,aAAa,CAAA;AAE7B,OAAO,EAAE,wBAAwB,EAAE,MAAM,iDAAiD,CAAA;AAGnF,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,QAAQ;IAAjD;;QAgMI,cAAS,GAAW,EAAE,CAAA;QACtB,gBAAW,GAAW,EAAE,CAAA;QACxB,sBAAiB,GAAU,EAAE,CAAA;QAC7B,mBAAc,GAAU,EAAE,CAAA;QAC1B,6BAAwB,GAAQ,EAAE,CAAA;QAClC,mCAA8B,GAAQ,EAAE,CAAA;Q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+kCtC","sourcesContent":["import '@material/web/icon/icon.js'\nimport '@material/web/button/elevated-button.js'\nimport '@material/web/button/filled-button.js'\nimport '@material/web/select/filled-select.js'\nimport '@material/web/select/select-option.js'\nimport '@material/web/textfield/filled-text-field.js'\nimport '@operato/data-grist'\nimport '../checklist/checklist-view'\nimport '../checklist/kcs-criteria-popup'\nimport { CommonGristStyles, ScrollbarStyles, ButtonContainerStyles } from '@operato/styles'\nimport { PageView } from '@operato/shell'\nimport { PageLifecycle } from '@operato/shell/dist/src/app/pages/page-view'\nimport { css, html } from 'lit'\nimport { customElement, query, state } from 'lit/decorators.js'\nimport { DataGrist } from '@operato/data-grist'\nimport { client } from '@operato/graphql'\nimport { notify, openPopup } from '@operato/layout'\nimport gql from 'graphql-tag'\nimport { ChecklistMode } from '../checklist/checklist-view'\nimport { BuildingInspectionStatus } from '../building-inspection/building-inspection-list'\n\n@customElement('project-checklist-management')\nexport class ProjectChecklistManagement extends PageView {\n static styles = [\n ScrollbarStyles,\n CommonGristStyles,\n ButtonContainerStyles,\n css`\n :host {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n background-color: var(--md-sys-color-surface);\n }\n\n div[header] {\n display: flex;\n align-items: center;\n padding: 0px 12px;\n\n h2 {\n display: flex;\n gap: 7px;\n flex: 1;\n margin-bottom: 8px;\n color: #3f71a0;\n font-size: 18px;\n\n md-icon[back] {\n background: linear-gradient(135deg, #3f71a0 0%, #5a8cc7 100%);\n color: white;\n padding: 8px;\n border-radius: 50%;\n cursor: pointer;\n box-shadow: 0 2px 8px rgba(63, 113, 160, 0.3);\n width: 14px;\n height: 14px;\n --md-icon-size: 20px;\n }\n\n md-icon[back]:hover {\n background: linear-gradient(135deg, #2e5c89 0%, #4a7bb0 100%);\n box-shadow: 0 4px 12px rgba(63, 113, 160, 0.4);\n }\n }\n\n div[button-container] {\n display: flex;\n align-items: center;\n justify-content: end;\n flex: 1;\n padding-top: 8px;\n\n span[site-spec-name] {\n display: inline-flex;\n align-items: center;\n gap: 2px;\n margin: 0 6px;\n padding: 4px 8px;\n font-size: 13px;\n color: #3f71a0;\n background-color: #eaf2fb;\n border-radius: 4px;\n max-width: 220px;\n\n span[filename] {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n md-icon {\n flex-shrink: 0;\n font-size: 16px;\n --md-icon-size: 16px;\n }\n md-icon[clickable] {\n cursor: pointer;\n }\n }\n\n md-elevated-button {\n margin: 0 4px;\n --md-elevated-button-container-height: 32px;\n --md-elevated-button-label-text-size: 16px;\n --md-elevated-button-container-color: #0595e5;\n --md-elevated-button-label-text-color: var(--md-sys-color-on-primary);\n --md-elevated-button-hover-label-text-color: var(--md-sys-color-on-primary);\n --md-elevated-button-pressed-label-text-color: var(--md-sys-color-on-primary);\n --md-elevated-button-focus-label-text-color: var(--md-sys-color-on-primary);\n --md-elevated-button-icon-color: var(--md-sys-color-on-primary);\n --md-elevated-button-hover-icon-color: var(--md-sys-color-on-primary);\n --md-elevated-button-pressed-icon-color: var(--md-sys-color-on-primary);\n --md-elevated-button-focus-icon-color: var(--md-sys-color-on-primary);\n }\n }\n }\n\n div[body] {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 15px;\n flex: 1;\n padding: 15px;\n overflow: hidden;\n }\n\n div[left],\n div[right] {\n display: flex;\n flex-direction: column;\n overflow: hidden;\n border: 1px solid #ddd;\n border-radius: 8px;\n padding: 15px;\n }\n\n div[section-header] {\n font-size: 16px;\n font-weight: 600;\n margin-bottom: 10px;\n color: #0595e5;\n display: flex;\n align-items: center;\n gap: 6px;\n }\n\n div[form-area] {\n display: grid;\n grid-template-columns: 80px 1fr;\n gap: 10px;\n margin-bottom: 10px;\n\n label {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n font-size: 14px;\n }\n }\n\n md-filled-select {\n width: 100%;\n --md-filled-select-text-field-container-color: transparent;\n --md-filled-select-text-field-active-indicator-color: #999;\n --md-filled-select-text-field-input-text-size: 14px;\n }\n\n md-filled-text-field {\n width: 100%;\n --md-filled-text-field-container-color: transparent;\n --md-filled-text-field-active-indicator-color: #999;\n --md-filled-text-field-input-text-size: 14px;\n }\n\n ox-grist {\n flex: 1;\n overflow-y: auto;\n }\n\n div[button-container] {\n display: flex;\n justify-content: flex-end;\n gap: 8px;\n margin-top: 10px;\n }\n\n md-elevated-button[save] {\n --md-elevated-button-container-color: #0595e5;\n --md-elevated-button-label-text-color: #fff;\n --md-elevated-button-hover-label-text-color: #fff;\n --md-elevated-button-pressed-label-text-color: #fff;\n --md-elevated-button-focus-label-text-color: #fff;\n --md-elevated-button-icon-color: #fff;\n --md-elevated-button-hover-icon-color: #fff;\n --md-elevated-button-pressed-icon-color: #fff;\n --md-elevated-button-focus-icon-color: #fff;\n }\n\n md-elevated-button[delete] {\n --md-elevated-button-container-color: #e53935;\n --md-elevated-button-label-text-color: #fff;\n --md-elevated-button-hover-label-text-color: #fff;\n --md-elevated-button-pressed-label-text-color: #fff;\n --md-elevated-button-focus-label-text-color: #fff;\n --md-elevated-button-icon-color: #fff;\n --md-elevated-button-hover-icon-color: #fff;\n --md-elevated-button-pressed-icon-color: #fff;\n --md-elevated-button-focus-icon-color: #fff;\n }\n `\n ]\n\n @state() projectId: string = ''\n @state() projectName: string = ''\n @state() constructionTypes: any[] = []\n @state() allDetailTypes: any[] = []\n @state() selectedConstructionType: any = {}\n @state() selectedConstructionDetailType: any = {}\n @state() checklistName: string = ''\n @state() templateItems: any[] = []\n @state() leftGristConfig: any\n @state() rightGristConfig: any\n @state() isEditMode: boolean = false\n @state() selectedChecklistId: string | null = null\n @state() siteSpecPdfUrl: string = ''\n @state() siteSpecPdfName: string = ''\n @state() siteSpecDetail: string | null = null\n @state() siteSpecDetailItem: string = ''\n\n @query('ox-grist[left]') leftGrist!: DataGrist\n @query('ox-grist[right]') rightGrist!: DataGrist\n @query('md-filled-select[constructionType]') htmlSelectConstructionType\n @query('md-filled-select[constructionDetailType]') htmlSelectConstructionDetailType\n\n get context() {\n return {\n title: this.projectName ? `체크리스트 관리 - ${this.projectName}` : '체크리스트 관리'\n }\n }\n\n render() {\n return html`\n <div header>\n <h2>\n <md-icon slot=\"icon\" back @click=${() => history.back()}>arrow_back</md-icon>\n 체크리스트 관리\n </h2>\n <div button-container>\n <input\n id=\"siteSpecFileInput\"\n type=\"file\"\n accept=\"application/pdf,.pdf\"\n style=\"display: none\"\n @change=${this._onUploadSiteSpecPdf}\n />\n ${\n this.siteSpecPdfName\n ? html`<span site-spec-name title=${this.siteSpecPdfName}>\n <md-icon>description</md-icon>\n <span filename>${this.siteSpecPdfName}</span>\n <md-icon clickable @click=${this._removeSiteSpecPdf}>close</md-icon>\n </span>`\n : ''\n }\n <md-elevated-button @click=${() => this.renderRoot.querySelector<HTMLInputElement>('#siteSpecFileInput')?.click()}>\n <md-icon slot=\"icon\">upload_file</md-icon>현장 시방서 업로드\n </md-elevated-button>\n <md-elevated-button href=${`project-detail/${this.projectId}`}>\n <md-icon slot=\"icon\">home</md-icon>프로젝트 홈\n </md-elevated-button>\n </div>\n </div>\n\n <div body>\n <div left>\n <div section-header>${this.isEditMode ? '체크리스트 수정' : '체크리스트 등록'}</div>\n\n <div form-area>\n <label>공종</label>\n <md-filled-select constructionType @change=${this._onSelectConstructionType}>\n <md-select-option ?selected=${!this.selectedConstructionType?.id} value=\"\">\n <div slot=\"headline\">선택</div>\n </md-select-option>\n ${this.constructionTypes?.map(ct => {\n const selected = ct.id === this.selectedConstructionType?.id\n return html`<md-select-option ?selected=${selected} .value=${ct.id}>\n <div slot=\"headline\">${ct.name}</div>\n </md-select-option>`\n })}\n </md-filled-select>\n\n <label>세부공종</label>\n <md-filled-select constructionDetailType @change=${this._onSelectConstructionDetailType}>\n ${(this.selectedConstructionType?.constructionDetailTypes || []).map(cdt => {\n const selected = cdt.id === this.selectedConstructionDetailType?.id\n return html`<md-select-option ?selected=${selected} .value=${cdt.id}>\n <div slot=\"headline\">${cdt.name}</div>\n </md-select-option>`\n })}\n </md-filled-select>\n\n <label>이름</label>\n <md-filled-text-field\n .value=${this.checklistName}\n @input=${e => {\n this.checklistName = e.target.value\n }}\n ></md-filled-text-field>\n </div>\n\n <ox-grist left .mode=${'GRID'} .config=${this.leftGristConfig}></ox-grist>\n\n <div button-container>\n <md-elevated-button save @click=${this._save}>\n <md-icon slot=\"icon\">${this.isEditMode ? 'save' : 'add'}</md-icon>\n ${this.isEditMode ? '수정' : '등록'}\n </md-elevated-button>\n <md-elevated-button delete @click=${this._delete}> <md-icon slot=\"icon\">delete</md-icon>삭제 </md-elevated-button>\n </div>\n </div>\n\n <div right>\n <div section-header>체크리스트 목록</div>\n\n <ox-grist\n right\n .mode=${'GRID'}\n .config=${this.rightGristConfig}\n .fetchHandler=${this._fetchChecklists.bind(this)}\n ></ox-grist>\n </div>\n </div>\n\n ${\n this.siteSpecDetail\n ? html`<kcs-criteria-popup\n .popupTitle=${'현장 시방서 기준'}\n .kcs=${{ text: this.siteSpecDetail }}\n .itemName=${this.siteSpecDetailItem}\n @close=${() => (this.siteSpecDetail = null)}\n ></kcs-criteria-popup>`\n : ''\n }\n `\n }\n\n async pageUpdated(changes: any, lifecycle: PageLifecycle) {\n if (this.active) {\n this.projectId = lifecycle.resourceId || ''\n await this._init()\n }\n }\n\n async pageInitialized(lifecycle: any) {\n this.projectId = lifecycle.resourceId || ''\n await this._init()\n }\n\n private async _init() {\n await Promise.all([this._fetchProjectName(), this._fetchConstructionTypes()])\n this._buildLeftGristConfig()\n this._buildRightGristConfig()\n }\n\n private async _fetchProjectName() {\n if (!this.projectId) return\n const response = await client.query({\n query: gql`\n query Project($id: String!) {\n project(id: $id) {\n name\n siteSpecPdfUrl\n }\n }\n `,\n variables: { id: this.projectId }\n })\n this.projectName = response.data?.project?.name || ''\n // 현장 시방서 PDF는 프로젝트 단위로 저장되므로 프로젝트에서 로드\n this.siteSpecPdfUrl = response.data?.project?.siteSpecPdfUrl || ''\n this.siteSpecPdfName = this.siteSpecPdfUrl ? await this._fetchSiteSpecPdfName(this.siteSpecPdfUrl) : ''\n this.updateContext()\n }\n\n // 현장 시방서 URL(S3 key 기반)에 해당하는 첨부파일의 원본 파일명 조회\n private async _fetchSiteSpecPdfName(url: string): Promise<string> {\n const key = decodeURIComponent(url.split('/').pop() || '')\n try {\n const response = await client.query({\n query: gql`\n query ($filters: [Filter!]) {\n attachments(filters: $filters) {\n items {\n name\n path\n }\n }\n }\n `,\n variables: {\n filters: [\n { name: 'refBy', value: this.projectId, operator: 'eq' },\n { name: 'refType', value: 'Project', operator: 'eq' }\n ]\n }\n })\n const items = response.data?.attachments?.items || []\n return items.find(a => a.path === key)?.name || key\n } catch {\n return key\n }\n }\n\n // 현장 시방서 PDF 업로드 → 첨부 후 전체 URL(https~)을 프로젝트에 저장\n private async _onUploadSiteSpecPdf(e: Event) {\n const input = e.target as HTMLInputElement\n const file = input.files?.[0]\n if (!file) return\n\n if (file.type !== 'application/pdf' && !file.name.toLowerCase().endsWith('.pdf')) {\n notify({ message: 'PDF 파일만 업로드할 수 있습니다.', level: 'warn' })\n input.value = ''\n return\n }\n\n const response = await client.mutate({\n mutation: gql`\n mutation ($attachments: [NewAttachment!]!) {\n createAttachments(attachments: $attachments) {\n id\n name\n fullpath\n }\n }\n `,\n variables: {\n attachments: [{ file, refBy: this.projectId, refType: 'Project', description: 'site-spec' }]\n },\n context: { hasUpload: true }\n })\n\n input.value = ''\n\n const attachment = response.data?.createAttachments?.[0]\n if (!attachment) {\n notify({ message: '업로드에 실패하였습니다.', level: 'error' })\n return\n }\n\n // fullpath 는 /attachment/... 형태의 상대경로 → location.origin 을 붙여 https 전체 URL 생성\n this.siteSpecPdfUrl = `${location.origin}${attachment.fullpath}`\n this.siteSpecPdfName = attachment.name || file.name\n\n await this._saveSiteSpecPdfToProject()\n notify({ message: '현장 시방서를 업로드하였습니다.' })\n }\n\n private async _removeSiteSpecPdf() {\n if (!confirm('현장 시방서를 삭제하시겠습니까?')) return\n this.siteSpecPdfUrl = ''\n this.siteSpecPdfName = ''\n await this._saveSiteSpecPdfToProject()\n notify({ message: '현장 시방서를 삭제하였습니다.' })\n }\n\n // 현장 시방서 PDF URL을 프로젝트에 저장 (프로젝트 단위 공통 값)\n private async _saveSiteSpecPdfToProject() {\n await client.mutate({\n mutation: gql`\n mutation ($project: ProjectPatch!) {\n updateProject(project: $project) {\n id\n }\n }\n `,\n variables: {\n project: { id: this.projectId, siteSpecPdfUrl: this.siteSpecPdfUrl || null }\n }\n })\n }\n\n private async _fetchConstructionTypes() {\n const response = await client.query({\n query: gql`\n query {\n constructionTypes {\n items {\n id\n name\n projectType\n constructionDetailTypes {\n id\n name\n sequence\n }\n }\n }\n }\n `\n })\n\n const items = (response.data?.constructionTypes?.items || []).filter(\n (ct: any) => ct.projectType === 'DCSP' || !ct.projectType\n )\n\n this.constructionTypes = items\n this.allDetailTypes = items.flatMap(ct =>\n (ct.constructionDetailTypes || []).map(dt => ({\n ...dt,\n constructionTypeId: ct.id\n }))\n )\n\n // 초기에는 선택하지 않음 (사용자가 직접 선택)\n this.selectedConstructionType = {}\n this.selectedConstructionDetailType = {}\n }\n\n private _buildLeftGristConfig() {\n this.leftGristConfig = {\n columns: [\n { type: 'gutter', gutterName: 'row-selector', multiple: true },\n {\n type: 'gutter',\n gutterName: 'button',\n icon: 'arrow_upward',\n handlers: { click: 'move-up' }\n },\n {\n type: 'gutter',\n gutterName: 'button',\n icon: 'arrow_downward',\n handlers: { click: 'move-down' }\n },\n {\n type: 'string',\n name: 'mainType',\n header: '구분',\n record: { editable: true },\n width: 100\n },\n {\n type: 'text-select',\n name: 'name',\n header: '검사항목',\n record: {\n editable: true,\n options: (value, column, record) => {\n if (!record) return []\n const items = [\n record.originalName,\n record.recommendation1,\n record.recommendation2,\n record.recommendation3,\n record.recommendation4,\n record.recommendation5\n ].filter(Boolean)\n return [...new Set(items)].map(r => ({ display: r, value: r }))\n }\n },\n width: 250\n },\n {\n type: 'string',\n name: 'kcsCriteriaLabel',\n header: 'KCS 시방서 기준',\n record: { editable: false },\n width: 220\n },\n {\n type: 'string',\n name: 'siteSpecCriteria',\n header: '현장 시방서 기준',\n record: {\n editable: false,\n // 본문 앞 20글자만 요약 표시 (클릭 시 팝업으로 전체 본문 확인)\n renderer: (value: string) => (value && value.length > 20 ? `${value.slice(0, 20)}...` : value || '')\n },\n handlers: {\n click: (columns, data, column, record) => {\n if (!record?.siteSpecCriteria) return\n this.siteSpecDetail = record.siteSpecCriteria\n this.siteSpecDetailItem = record.name || ''\n }\n },\n width: 220\n },\n { type: 'string', name: 'kcsCriteria', hidden: true },\n { type: 'string', name: 'originalName', hidden: true },\n { type: 'string', name: 'recommendation1', hidden: true },\n { type: 'string', name: 'recommendation2', hidden: true },\n { type: 'string', name: 'recommendation3', hidden: true },\n { type: 'string', name: 'recommendation4', hidden: true },\n { type: 'string', name: 'recommendation5', hidden: true }\n ],\n rows: {\n selectable: { multiple: true }\n },\n pagination: { infinite: true }\n }\n }\n\n private _buildRightGristConfig() {\n this.rightGristConfig = {\n columns: [\n { type: 'gutter', gutterName: 'row-selector', multiple: false },\n { type: 'gutter', gutterName: 'sequence' },\n {\n type: 'gutter',\n gutterName: 'button',\n fixed: true,\n icon: 'preview',\n handlers: {\n click: async (columns, data, column, record, rowIndex) => {\n if (!record.id) return\n await this._openPreview(record)\n }\n }\n },\n {\n type: 'string',\n name: 'constructionTypeName',\n header: '공종',\n width: 120\n },\n {\n type: 'string',\n name: 'constructionDetailTypeName',\n header: '세부공종',\n width: 120\n },\n {\n type: 'string',\n name: 'name',\n header: '체크리스트명',\n width: 180\n }\n ],\n rows: {\n selectable: { multiple: false },\n appendable: false,\n handlers: {\n click: this._handleRightGristRowClick.bind(this)\n }\n },\n pagination: { infinite: true }\n }\n }\n\n private async _fetchChecklists() {\n if (!this.projectId) return { total: 0, records: [] }\n\n const response = await client.query({\n query: gql`\n query ($filters: [Filter!], $sortings: [Sorting!]) {\n projectChecklists(filters: $filters, sortings: $sortings) {\n items {\n id\n projectId\n constructionTypeId\n constructionDetailTypeId\n name\n updatedAt\n }\n total\n }\n }\n `,\n variables: {\n filters: [{ name: 'projectId', value: this.projectId, operator: 'eq' }],\n sortings: [{ name: 'updatedAt', desc: true }]\n }\n })\n\n const items = response.data?.projectChecklists?.items || []\n\n // 공종/세부공종 이름을 클라이언트에서 매핑\n const records = items.map(item => ({\n ...item,\n constructionTypeName: this.constructionTypes.find(ct => ct.id === item.constructionTypeId)?.name || '',\n constructionDetailTypeName: this.allDetailTypes.find(dt => dt.id === item.constructionDetailTypeId)?.name || ''\n }))\n\n return {\n total: response.data?.projectChecklists?.total || 0,\n records\n }\n }\n\n private async _onSelectConstructionType(e) {\n const ctId = e.target.value\n const ct = this.constructionTypes.find(c => c.id === ctId) || {}\n this.selectedConstructionType = ct\n this.selectedConstructionDetailType = { ...(ct.constructionDetailTypes?.[0] || {}) }\n\n // re-render 완료 후 세부공종 select UI 동기화\n await this.updateComplete\n await this.htmlSelectConstructionDetailType?.selectIndex(0)\n\n if (!this.isEditMode) {\n await this._loadTemplateItems()\n }\n }\n\n private async _onSelectConstructionDetailType(e) {\n const cdtId = e.target.value\n this.selectedConstructionDetailType = {\n ...(this.selectedConstructionType?.constructionDetailTypes?.find(d => d.id === cdtId) || {})\n }\n\n if (!this.isEditMode) {\n await this._loadTemplateItems()\n }\n }\n\n private async _loadTemplateItems() {\n const ctId = this.selectedConstructionType?.id\n const cdtId = this.selectedConstructionDetailType?.id\n if (!ctId || !cdtId) {\n this.templateItems = []\n this.leftGrist.data = { records: [] }\n return\n }\n\n // upsert로 템플릿 찾기/생성\n const upsertRes = await client.mutate({\n mutation: gql`\n mutation ($ctId: String!, $cdtId: String!) {\n upsertConstructionChecklistTemplate(constructionTypeId: $ctId, constructionDetailTypeId: $cdtId) {\n id\n }\n }\n `,\n variables: { ctId, cdtId }\n })\n\n const templateId = upsertRes.data?.upsertConstructionChecklistTemplate?.id\n if (!templateId) return\n\n const response = await client.query({\n query: gql`\n query ($filters: [Filter!], $sortings: [Sorting!]) {\n constructionChecklistTemplateItems(filters: $filters, sortings: $sortings) {\n items {\n id\n sequence\n mainType\n name\n recommendation1\n recommendation2\n recommendation3\n recommendation4\n recommendation5\n }\n }\n }\n `,\n variables: {\n filters: [{ name: 'constructionChecklistTemplateId', value: templateId, operator: 'eq' }],\n sortings: [{ name: 'sequence' }]\n }\n })\n\n const items = response.data?.constructionChecklistTemplateItems?.items || []\n this.templateItems = items\n\n // 왼쪽 그리드에 데이터 셋팅 (recommendation 포함)\n // KCS/현장 시방서 기준은 저장(등록/수정) 시 서버에서 매칭되어 채워진다.\n this.leftGrist.data = {\n records: items.map(item => ({\n mainType: item.mainType || '',\n name: item.name || '',\n kcsCriteria: '',\n kcsCriteriaLabel: '',\n siteSpecCriteria: '',\n originalName: item.name || '',\n recommendation1: item.recommendation1 || '',\n recommendation2: item.recommendation2 || '',\n recommendation3: item.recommendation3 || '',\n recommendation4: item.recommendation4 || '',\n recommendation5: item.recommendation5 || ''\n }))\n }\n }\n\n private async _handleRightGristRowClick(columns, data, column, record, rowIndex, field) {\n // 클릭 시 해당 로우 선택/해제 토글\n field?.dispatchEvent(\n new CustomEvent('select-record-change', {\n bubbles: true,\n composed: true,\n detail: record['__selected__'] ? { removed: [record] } : { added: [record] }\n })\n )\n\n // 토글 반영 후 처리\n setTimeout(async () => {\n const selected = this.rightGrist?.selected?.[0]\n\n if (!selected || !selected.id) {\n // 선택 해제 → 등록 모드 + 왼쪽 초기화\n await this._resetLeftForm()\n return\n }\n\n // 선택 → 수정 모드\n this.isEditMode = true\n this.selectedChecklistId = selected.id\n this.checklistName = selected.name || ''\n\n // 공종/세부공종 세팅\n const ct = this.constructionTypes.find(c => c.id === selected.constructionTypeId) || {}\n this.selectedConstructionType = ct\n this.selectedConstructionDetailType = {\n ...(ct.constructionDetailTypes?.find(d => d.id === selected.constructionDetailTypeId) || {})\n }\n\n // 공종 변경으로 세부공종 options가 re-render 된 후 select UI 동기화\n await this.updateComplete\n const cdtIndex = (ct.constructionDetailTypes || []).findIndex(d => d.id === selected.constructionDetailTypeId)\n if (cdtIndex >= 0) {\n await this.htmlSelectConstructionDetailType?.selectIndex(cdtIndex)\n }\n\n // 공종+세부공종의 템플릿 아이템 로드 (추천 options용)\n await this._loadTemplateItemsForEdit(selected.constructionTypeId, selected.constructionDetailTypeId)\n\n // 저장된 아이템 로드 (FieldResolver 활용)\n const items = await this._fetchChecklistItems(selected.id)\n // templateItems에서 같은 mainType의 recommendation을 매칭\n this.leftGrist.data = {\n records: items.map(item => {\n const tmpl = this.templateItems.find(t => t.mainType === item.mainType) || {}\n return {\n mainType: item.mainType || '',\n name: item.name || '',\n kcsCriteria: item.kcsCriteria || '',\n kcsCriteriaLabel: this._kcsLabel(item.kcsCriteria),\n siteSpecCriteria: item.siteSpecCriteria || '',\n originalName: tmpl.name || item.name || '',\n recommendation1: tmpl.recommendation1 || '',\n recommendation2: tmpl.recommendation2 || '',\n recommendation3: tmpl.recommendation3 || '',\n recommendation4: tmpl.recommendation4 || '',\n recommendation5: tmpl.recommendation5 || ''\n }\n })\n }\n }, 100)\n }\n\n private async _loadTemplateItemsForEdit(ctId: string, cdtId: string) {\n if (!ctId || !cdtId) {\n this.templateItems = []\n return\n }\n\n const upsertRes = await client.mutate({\n mutation: gql`\n mutation ($ctId: String!, $cdtId: String!) {\n upsertConstructionChecklistTemplate(constructionTypeId: $ctId, constructionDetailTypeId: $cdtId) {\n id\n }\n }\n `,\n variables: { ctId, cdtId }\n })\n\n const templateId = upsertRes.data?.upsertConstructionChecklistTemplate?.id\n if (!templateId) return\n\n const response = await client.query({\n query: gql`\n query ($filters: [Filter!], $sortings: [Sorting!]) {\n constructionChecklistTemplateItems(filters: $filters, sortings: $sortings) {\n items {\n id\n sequence\n mainType\n name\n inspctionCriteria\n recommendation1\n recommendation2\n recommendation3\n recommendation4\n recommendation5\n }\n }\n }\n `,\n variables: {\n filters: [{ name: 'constructionChecklistTemplateId', value: templateId, operator: 'eq' }],\n sortings: [{ name: 'sequence' }]\n }\n })\n\n this.templateItems = response.data?.constructionChecklistTemplateItems?.items || []\n }\n\n private async _save() {\n const ctId = this.selectedConstructionType?.id\n const cdtId = this.selectedConstructionDetailType?.id\n const name = this.checklistName?.trim()\n\n if (!ctId || !cdtId) {\n notify({ message: '공종과 세부공종을 선택해주세요.', level: 'warn' })\n return\n }\n if (!name) {\n notify({ message: '이름을 입력해주세요.', level: 'warn' })\n return\n }\n\n // 그리드에서 아이템 추출 (KCS/현장 시방서 기준은 서버에서 매칭하여 채운다)\n const records = this.leftGrist.dirtyData?.records || []\n const items = records.map((row, idx) => ({\n mainType: row.mainType || null,\n name: row.name || '',\n sequence: idx\n }))\n\n try {\n if (this.isEditMode && this.selectedChecklistId) {\n // 수정\n const response = await client.mutate({\n mutation: gql`\n mutation ($id: String!, $name: String!, $items: [ProjectChecklistItemInput!]!, $siteSpecPdfUrl: String) {\n updateProjectChecklist(id: $id, name: $name, items: $items, siteSpecPdfUrl: $siteSpecPdfUrl) {\n id\n }\n }\n `,\n variables: {\n id: this.selectedChecklistId,\n name,\n items,\n siteSpecPdfUrl: this.siteSpecPdfUrl || null\n }\n })\n\n if (!response.errors) {\n // 검사 기준(KCS/현장 시방서)은 백그라운드에서 매칭되어 잠시 후 반영됨\n notify({ message: '수정되었습니다. 검사 기준은 잠시 후 반영됩니다.' })\n this.rightGrist.fetch()\n } else {\n notify({ message: '수정에 실패하였습니다.', level: 'error' })\n }\n } else {\n // 등록\n const response = await client.mutate({\n mutation: gql`\n mutation (\n $projectId: String!\n $constructionTypeId: String!\n $constructionDetailTypeId: String!\n $name: String!\n $items: [ProjectChecklistItemInput!]!\n $siteSpecPdfUrl: String\n ) {\n createProjectChecklist(\n projectId: $projectId\n constructionTypeId: $constructionTypeId\n constructionDetailTypeId: $constructionDetailTypeId\n name: $name\n items: $items\n siteSpecPdfUrl: $siteSpecPdfUrl\n ) {\n id\n }\n }\n `,\n variables: {\n projectId: this.projectId,\n constructionTypeId: ctId,\n constructionDetailTypeId: cdtId,\n name,\n items,\n siteSpecPdfUrl: this.siteSpecPdfUrl || null\n }\n })\n\n if (!response.errors) {\n // 검사 기준(KCS/현장 시방서)은 백그라운드에서 매칭되어 잠시 후 반영됨\n notify({ message: '등록되었습니다. 검사 기준은 잠시 후 반영됩니다.' })\n\n // 오른쪽 그리드 새로고침 + 왼쪽 초기화\n await this.rightGrist.fetch()\n this._resetLeftForm()\n } else {\n notify({ message: '등록에 실패하였습니다.', level: 'error' })\n }\n }\n } catch (e) {\n notify({ message: '저장 중 오류가 발생하였습니다.', level: 'error' })\n }\n }\n\n // KCS 기준 JSON 문자열에서 file_label(요약 텍스트) 추출\n private _kcsLabel(kcsCriteria?: string): string {\n if (!kcsCriteria) return ''\n try {\n return JSON.parse(kcsCriteria)?.file_label || ''\n } catch {\n return ''\n }\n }\n\n private async _resetLeftForm() {\n this.isEditMode = false\n this.selectedChecklistId = null\n this.checklistName = ''\n this.selectedConstructionType = {}\n this.selectedConstructionDetailType = {}\n this.templateItems = []\n this.leftGrist.data = { records: [] }\n\n await this.updateComplete\n // md-filled-select 내부 상태 초기화\n this.htmlSelectConstructionType?.reset()\n this.htmlSelectConstructionDetailType?.reset()\n }\n\n private async _delete() {\n const selectedItems = this.leftGrist?.selected || []\n\n if (selectedItems.length > 0) {\n // 왼쪽 그리드에서 선택된 row 삭제 (클라이언트 측)\n if (confirm('선택된 검사항목을 삭제하시겠습니까?')) {\n const records = this.leftGrist.dirtyData?.records || []\n const selectedIndices = new Set(\n selectedItems.map((_, i) => {\n return records.indexOf(selectedItems[i])\n })\n )\n const remaining = records.filter((_, i) => !selectedIndices.has(i))\n this.leftGrist.data = { records: remaining }\n }\n } else if (this.isEditMode && this.selectedChecklistId) {\n // 체크리스트 자체 삭제\n if (confirm('이 체크리스트를 삭제하시겠습니까?')) {\n const response = await client.mutate({\n mutation: gql`\n mutation ($ids: [String!]!) {\n deleteProjectChecklists(ids: $ids)\n }\n `,\n variables: { ids: [this.selectedChecklistId] }\n })\n\n if (!response.errors) {\n notify({ message: '삭제되었습니다.' })\n this.isEditMode = false\n this.selectedChecklistId = null\n this.checklistName = ''\n this.leftGrist.data = { records: [] }\n this.rightGrist.fetch()\n }\n }\n } else {\n notify({ message: '삭제할 항목을 선택해주세요.', level: 'warn' })\n }\n }\n\n private async _fetchChecklistItems(checklistId: string): Promise<any[]> {\n const response = await client.query({\n query: gql`\n query ($filters: [Filter!]) {\n projectChecklists(filters: $filters) {\n items {\n projectChecklistItems {\n id\n mainType\n name\n kcsCriteria\n siteSpecCriteria\n sequence\n }\n }\n }\n }\n `,\n variables: {\n filters: [{ name: 'id', value: checklistId, operator: 'eq' }]\n }\n })\n\n return response.data?.projectChecklists?.items?.[0]?.projectChecklistItems || []\n }\n\n private async _openPreview(record: any) {\n const items = await this._fetchChecklistItems(record.id)\n const ctName = this.constructionTypes.find(ct => ct.id === record.constructionTypeId)?.name || ''\n const cdtName = this.allDetailTypes.find(dt => dt.id === record.constructionDetailTypeId)?.name || ''\n\n const checklist = {\n name: record.name,\n constructionType: ctName,\n constructionDetailType: cdtName,\n location: '',\n documentNo: '',\n inspectionParts: [],\n buildingInspection: {\n status: BuildingInspectionStatus.WAIT\n },\n checklistItems: items.map(item => ({\n ...item,\n detailType: ''\n }))\n }\n\n openPopup(\n html`\n <div style=\"overflow-y: auto;\">\n <checklist-view .mode=${ChecklistMode.VIEWER} .checklist=${checklist}></checklist-view>\n </div>\n `,\n {\n backdrop: true,\n size: 'large',\n title: `체크리스트 미리보기 - ${record.name}`\n }\n )\n }\n}\n"]}
@@ -1,10 +0,0 @@
1
- import '@material/web/button/elevated-button.js';
2
- import '@operato/data-grist';
3
- import { LitElement } from 'lit';
4
- export declare class ProjectReportImporter extends LitElement {
5
- static styles: import("lit").CSSResult[];
6
- private projectReports;
7
- private columns;
8
- render(): import("lit-html").TemplateResult<1>;
9
- private save;
10
- }
@@ -1,101 +0,0 @@
1
- import { __decorate, __metadata } from "tslib";
2
- import '@material/web/button/elevated-button.js';
3
- import '@operato/data-grist';
4
- import gql from 'graphql-tag';
5
- import { css, html, LitElement } from 'lit';
6
- import { state } from 'lit/decorators.js';
7
- import { client } from '@operato/graphql';
8
- import { i18next } from '@operato/i18n';
9
- import { isMobileDevice } from '@operato/utils';
10
- export class ProjectReportImporter extends LitElement {
11
- constructor() {
12
- super(...arguments);
13
- this.projectReports = [];
14
- this.columns = {
15
- list: { fields: ['name', 'description'] },
16
- pagination: { infinite: true },
17
- columns: [
18
- {
19
- type: 'string',
20
- name: 'name',
21
- header: i18next.t('field.name'),
22
- width: 150
23
- },
24
- {
25
- type: 'string',
26
- name: 'description',
27
- header: i18next.t('field.description'),
28
- width: 200
29
- },
30
- {
31
- type: 'checkbox',
32
- name: 'active',
33
- header: i18next.t('field.active'),
34
- width: 60
35
- }
36
- ]
37
- };
38
- }
39
- render() {
40
- return html `
41
- <ox-grist
42
- .mode=${isMobileDevice() ? 'LIST' : 'GRID'}
43
- .config=${this.columns}
44
- .data=${{
45
- records: this.projectReports
46
- }}
47
- ></ox-grist>
48
-
49
- <div class="button-container">
50
- <md-elevated-button raised @click="${this.save.bind(this)}">${i18next.t('button.save')}</md-elevated-button>
51
- </div>
52
- `;
53
- }
54
- async save() {
55
- var _a;
56
- const response = await client.mutate({
57
- mutation: gql `
58
- mutation importProjectReports($projectReports: [ProjectReportPatch!]!) {
59
- importProjectReports(projectReports: $projectReports)
60
- }
61
- `,
62
- variables: { projectReports: this.projectReports }
63
- });
64
- if ((_a = response.errors) === null || _a === void 0 ? void 0 : _a.length)
65
- return;
66
- this.dispatchEvent(new CustomEvent('imported'));
67
- }
68
- }
69
- ProjectReportImporter.styles = [
70
- css `
71
- :host {
72
- display: flex;
73
- flex-direction: column;
74
-
75
- background-color: #fff;
76
- }
77
-
78
- ox-grist {
79
- flex: 1;
80
- }
81
-
82
- .button-container {
83
- display: flex;
84
- margin-left: auto;
85
- padding: var(--padding-default);
86
- }
87
-
88
- md-elevated-button {
89
- margin-left: var(--margin-default);
90
- }
91
- `
92
- ];
93
- __decorate([
94
- state(),
95
- __metadata("design:type", Array)
96
- ], ProjectReportImporter.prototype, "projectReports", void 0);
97
- __decorate([
98
- state(),
99
- __metadata("design:type", Object)
100
- ], ProjectReportImporter.prototype, "columns", void 0);
101
- //# sourceMappingURL=project-report-importer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"project-report-importer.js","sourceRoot":"","sources":["../../../client/pages/project-report/project-report-importer.ts"],"names":[],"mappings":";AAAA,OAAO,yCAAyC,CAAA;AAChD,OAAO,qBAAqB,CAAA;AAE5B,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAY,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAEnD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAE/C,MAAM,OAAO,qBAAsB,SAAQ,UAAU;IAArD;;QA0BmB,mBAAc,GAAU,EAAE,CAAA;QAC1B,YAAO,GAAG;YACzB,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC,EAAE;YACzC,UAAU,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC9B,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,MAAM;oBACZ,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC;oBAC/B,KAAK,EAAE,GAAG;iBACX;gBACD;oBACE,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,aAAa;oBACnB,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,mBAAmB,CAAC;oBACtC,KAAK,EAAE,GAAG;iBACX;gBACD;oBACE,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,QAAQ;oBACd,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC;oBACjC,KAAK,EAAE,EAAE;iBACV;aACF;SACF,CAAA;IAgCH,CAAC;IA9BC,MAAM;QACJ,OAAO,IAAI,CAAA;;gBAEC,cAAc,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM;kBAChC,IAAI,CAAC,OAAO;gBACd;YACN,OAAO,EAAE,IAAI,CAAC,cAAc;SAC7B;;;;6CAIoC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC;;KAEzF,CAAA;IACH,CAAC;IAEO,KAAK,CAAC,IAAI;;QAChB,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC;YACnC,QAAQ,EAAE,GAAG,CAAA;;;;OAIZ;YACD,SAAS,EAAE,EAAE,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE;SACnD,CAAC,CAAA;QAEF,IAAI,MAAA,QAAQ,CAAC,MAAM,0CAAE,MAAM;YAAE,OAAM;QAEnC,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,UAAU,CAAC,CAAC,CAAA;IACjD,CAAC;;AAhFM,4BAAM,GAAG;IACd,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;KAqBF;CACF,AAvBY,CAuBZ;AAEgB;IAAhB,KAAK,EAAE;;6DAAmC;AAC1B;IAAhB,KAAK,EAAE;;sDAuBP","sourcesContent":["import '@material/web/button/elevated-button.js'\nimport '@operato/data-grist'\n\nimport gql from 'graphql-tag'\nimport { css, html, LitElement } from 'lit'\nimport { property, state } from 'lit/decorators.js'\n\nimport { client } from '@operato/graphql'\nimport { i18next } from '@operato/i18n'\nimport { isMobileDevice } from '@operato/utils'\n\nexport class ProjectReportImporter extends LitElement {\n static styles = [\n css`\n :host {\n display: flex;\n flex-direction: column;\n\n background-color: #fff;\n }\n\n ox-grist {\n flex: 1;\n }\n\n .button-container {\n display: flex;\n margin-left: auto;\n padding: var(--padding-default);\n }\n\n md-elevated-button {\n margin-left: var(--margin-default);\n }\n `\n ]\n\n @state() private projectReports: any[] = []\n @state() private columns = {\n list: { fields: ['name', 'description'] },\n pagination: { infinite: true },\n columns: [\n {\n type: 'string',\n name: 'name',\n header: i18next.t('field.name'),\n width: 150\n },\n {\n type: 'string',\n name: 'description',\n header: i18next.t('field.description'),\n width: 200\n },\n {\n type: 'checkbox',\n name: 'active',\n header: i18next.t('field.active'),\n width: 60\n }\n ]\n }\n\n render() {\n return html`\n <ox-grist\n .mode=${isMobileDevice() ? 'LIST' : 'GRID'}\n .config=${this.columns}\n .data=${{\n records: this.projectReports\n }}\n ></ox-grist>\n\n <div class=\"button-container\">\n <md-elevated-button raised @click=\"${this.save.bind(this)}\">${i18next.t('button.save')}</md-elevated-button>\n </div>\n `\n }\n\n private async save() {\n const response = await client.mutate({\n mutation: gql`\n mutation importProjectReports($projectReports: [ProjectReportPatch!]!) {\n importProjectReports(projectReports: $projectReports)\n }\n `,\n variables: { projectReports: this.projectReports }\n })\n\n if (response.errors?.length) return\n\n this.dispatchEvent(new CustomEvent('imported'))\n }\n}\n"]}
@@ -1,62 +0,0 @@
1
- import '@material/web/icon/icon.js';
2
- import '@operato/data-grist';
3
- import { PageView } from '@operato/shell';
4
- import { FetchOption } from '@operato/data-grist';
5
- import { ProjectReportImporter } from './project-report-importer';
6
- declare const ProjectReportListPage_base: (new (...args: any[]) => {
7
- _storeUnsubscribe: () => void;
8
- connectedCallback(): void;
9
- disconnectedCallback(): void;
10
- stateChanged(_state: unknown): void;
11
- }) & (new (...args: any[]) => import("lit").LitElement) & typeof PageView & import("@open-wc/dedupe-mixin").Constructor<import("@open-wc/scoped-elements/types/src/types").ScopedElementsHost>;
12
- export declare class ProjectReportListPage extends ProjectReportListPage_base {
13
- static styles: import("lit").CSSResult[];
14
- static get scopedElements(): {
15
- 'project-report-importer': typeof ProjectReportImporter;
16
- };
17
- private gristConfig;
18
- private mode;
19
- private grist;
20
- private sortersControl;
21
- get context(): {
22
- title: string;
23
- search: {
24
- handler: (search: string) => void;
25
- value: string;
26
- };
27
- filter: {
28
- handler: () => void;
29
- };
30
- help: string;
31
- actions: {
32
- icon: string;
33
- emphasis: {
34
- raised: boolean;
35
- outlined: boolean;
36
- dense: boolean;
37
- danger: boolean;
38
- };
39
- title: string;
40
- action: () => Promise<void>;
41
- }[];
42
- exportable: {
43
- name: string;
44
- data: () => Promise<{}[]>;
45
- };
46
- importable: {
47
- handler: (records: any) => Promise<void>;
48
- };
49
- };
50
- render(): import("lit-html").TemplateResult<1>;
51
- pageInitialized(lifecycle: any): Promise<void>;
52
- pageUpdated(changes: any, lifecycle: any): Promise<void>;
53
- fetchHandler({ page, limit, sortings, filters }: FetchOption): Promise<{
54
- total: any;
55
- records: any;
56
- }>;
57
- private deleteProjectReport;
58
- private updateProjectReport;
59
- private exportHandler;
60
- private importHandler;
61
- }
62
- export {};
@@ -1,322 +0,0 @@
1
- import { __decorate, __metadata } from "tslib";
2
- import '@material/web/icon/icon.js';
3
- import '@operato/data-grist';
4
- import { CommonButtonStyles, CommonGristStyles, ScrollbarStyles } from '@operato/styles';
5
- import { PageView, store, connect } from '@operato/shell';
6
- import { css, html } from 'lit';
7
- import { customElement, query, state } from 'lit/decorators.js';
8
- import { ScopedElementsMixin } from '@open-wc/scoped-elements';
9
- import { DataGrist } from '@operato/data-grist';
10
- import { client } from '@operato/graphql';
11
- import { i18next, localize } from '@operato/i18n';
12
- import { notify, openPopup } from '@operato/layout';
13
- import { OxPopup, OxPrompt } from '@operato/popup';
14
- import { isMobileDevice } from '@operato/utils';
15
- import gql from 'graphql-tag';
16
- import { ProjectReportImporter } from './project-report-importer';
17
- let ProjectReportListPage = class ProjectReportListPage extends connect(store)(localize(i18next)(ScopedElementsMixin(PageView))) {
18
- constructor() {
19
- super(...arguments);
20
- this.mode = isMobileDevice() ? 'CARD' : 'GRID';
21
- }
22
- static get scopedElements() {
23
- return {
24
- 'project-report-importer': ProjectReportImporter
25
- };
26
- }
27
- get context() {
28
- return {
29
- title: i18next.t('title.project-report list'),
30
- search: {
31
- handler: (search) => {
32
- this.grist.searchText = search;
33
- },
34
- value: this.grist.searchText
35
- },
36
- filter: {
37
- handler: () => {
38
- this.grist.toggleHeadroom();
39
- }
40
- },
41
- help: 'supervision/project-report',
42
- actions: [
43
- Object.assign({ title: i18next.t('button.save'), action: this.updateProjectReport.bind(this) }, CommonButtonStyles.save),
44
- Object.assign({ title: i18next.t('button.delete'), action: this.deleteProjectReport.bind(this) }, CommonButtonStyles.delete)
45
- ],
46
- exportable: {
47
- name: i18next.t('title.project-report list'),
48
- data: this.exportHandler.bind(this)
49
- },
50
- importable: {
51
- handler: this.importHandler.bind(this)
52
- }
53
- };
54
- }
55
- render() {
56
- const mode = this.mode || (isMobileDevice() ? 'CARD' : 'GRID');
57
- return html `
58
- <ox-grist .mode=${mode} .config=${this.gristConfig} .fetchHandler=${this.fetchHandler.bind(this)}>
59
- <div slot="headroom">
60
- <div id="filters">
61
- <ox-filters-form autofocus></ox-filters-form>
62
- </div>
63
-
64
- <div id="sorters">
65
- Sort
66
- <md-icon
67
- @click=${e => {
68
- const target = e.currentTarget;
69
- this.sortersControl.open({
70
- right: 0,
71
- top: target.offsetTop + target.offsetHeight
72
- });
73
- }}
74
- >expand_more</md-icon
75
- >
76
- <ox-popup id="sorter-control">
77
- <ox-sorters-control> </ox-sorters-control>
78
- </ox-popup>
79
- </div>
80
-
81
- <div id="modes">
82
- <md-icon @click=${() => (this.mode = 'GRID')} ?active=${mode == 'GRID'}>grid_on</md-icon>
83
- <md-icon @click=${() => (this.mode = 'LIST')} ?active=${mode == 'LIST'}>format_list_bulleted</md-icon>
84
- <md-icon @click=${() => (this.mode = 'CARD')} ?active=${mode == 'CARD'}>apps</md-icon>
85
- </div>
86
- </div>
87
- </ox-grist>
88
- `;
89
- }
90
- async pageInitialized(lifecycle) {
91
- this.gristConfig = {
92
- list: {
93
- fields: ['name', 'description'],
94
- details: ['active', 'updatedAt']
95
- },
96
- columns: [
97
- { type: 'gutter', gutterName: 'sequence' },
98
- { type: 'gutter', gutterName: 'row-selector', multiple: true },
99
- {
100
- type: 'string',
101
- name: 'name',
102
- header: i18next.t('field.name'),
103
- record: {
104
- editable: true
105
- },
106
- filter: 'search',
107
- sortable: true,
108
- width: 150
109
- },
110
- {
111
- type: 'string',
112
- name: 'description',
113
- header: i18next.t('field.description'),
114
- record: {
115
- editable: true
116
- },
117
- filter: 'search',
118
- width: 200
119
- },
120
- {
121
- type: 'checkbox',
122
- name: 'active',
123
- label: true,
124
- header: i18next.t('field.active'),
125
- record: {
126
- editable: true
127
- },
128
- filter: true,
129
- sortable: true,
130
- width: 60
131
- },
132
- {
133
- type: 'resource-object',
134
- name: 'updater',
135
- header: i18next.t('field.updater'),
136
- record: {
137
- editable: false
138
- },
139
- sortable: true,
140
- width: 120
141
- },
142
- {
143
- type: 'datetime',
144
- name: 'updatedAt',
145
- header: i18next.t('field.updated_at'),
146
- record: {
147
- editable: false
148
- },
149
- sortable: true,
150
- width: 180
151
- }
152
- ],
153
- rows: {
154
- selectable: {
155
- multiple: true
156
- }
157
- },
158
- sorters: [
159
- {
160
- name: 'name'
161
- }
162
- ]
163
- };
164
- }
165
- async pageUpdated(changes, lifecycle) {
166
- if (this.active) {
167
- // do something here when this page just became as active
168
- }
169
- }
170
- async fetchHandler({ page = 1, limit = 100, sortings = [], filters = [] }) {
171
- const response = await client.query({
172
- query: gql `
173
- query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
174
- responses: projectReports(filters: $filters, pagination: $pagination, sortings: $sortings) {
175
- items {
176
- id
177
- name
178
- description
179
- active
180
- updater {
181
- id
182
- name
183
- }
184
- updatedAt
185
- }
186
- total
187
- }
188
- }
189
- `,
190
- variables: {
191
- filters,
192
- pagination: { page, limit },
193
- sortings
194
- }
195
- });
196
- return {
197
- total: response.data.responses.total || 0,
198
- records: response.data.responses.items || []
199
- };
200
- }
201
- async deleteProjectReport() {
202
- if (await OxPrompt.open({
203
- title: i18next.t('text.are_you_sure'),
204
- text: i18next.t('text.sure_to_x', { x: i18next.t('text.delete') }),
205
- confirmButton: { text: i18next.t('button.confirm') },
206
- cancelButton: { text: i18next.t('button.cancel') }
207
- })) {
208
- const ids = this.grist.selected.map(record => record.id);
209
- if (ids && ids.length > 0) {
210
- const response = await client.mutate({
211
- mutation: gql `
212
- mutation ($ids: [String!]!) {
213
- deleteProjectReports(ids: $ids)
214
- }
215
- `,
216
- variables: {
217
- ids
218
- }
219
- });
220
- if (!response.errors) {
221
- this.grist.fetch();
222
- notify({
223
- message: i18next.t('text.info_x_successfully', { x: i18next.t('text.delete') })
224
- });
225
- }
226
- }
227
- }
228
- }
229
- async updateProjectReport() {
230
- let patches = this.grist.dirtyRecords;
231
- if (patches && patches.length) {
232
- patches = patches.map(patch => {
233
- let patchField = patch.id ? { id: patch.id } : {};
234
- const dirtyFields = patch.__dirtyfields__;
235
- for (let key in dirtyFields) {
236
- patchField[key] = dirtyFields[key].after;
237
- }
238
- patchField.cuFlag = patch.__dirty__;
239
- return patchField;
240
- });
241
- const response = await client.mutate({
242
- mutation: gql `
243
- mutation ($patches: [ProjectReportPatch!]!) {
244
- updateMultipleProjectReport(patches: $patches) {
245
- name
246
- }
247
- }
248
- `,
249
- variables: {
250
- patches
251
- }
252
- });
253
- if (!response.errors) {
254
- this.grist.fetch();
255
- }
256
- }
257
- }
258
- async exportHandler() {
259
- const exportTargets = this.grist.selected.length ? this.grist.selected : this.grist.dirtyData.records;
260
- const targetFieldSet = new Set(['id', 'name', 'description', 'active']);
261
- return exportTargets.map(projectReport => {
262
- let tempObj = {};
263
- for (const field of targetFieldSet) {
264
- tempObj[field] = projectReport[field];
265
- }
266
- return tempObj;
267
- });
268
- }
269
- async importHandler(records) {
270
- const popup = openPopup(html `
271
- <project-report-importer
272
- .projectReports=${records}
273
- @imported=${() => {
274
- history.back();
275
- this.grist.fetch();
276
- }}
277
- ></project-report-importer>
278
- `, {
279
- backdrop: true,
280
- size: 'large',
281
- title: i18next.t('title.import project-report')
282
- });
283
- popup.onclosed = () => {
284
- this.grist.fetch();
285
- };
286
- }
287
- };
288
- ProjectReportListPage.styles = [
289
- ScrollbarStyles,
290
- CommonGristStyles,
291
- css `
292
- :host {
293
- display: flex;
294
-
295
- width: 100%;
296
-
297
- --grid-record-emphasized-background-color: red;
298
- --grid-record-emphasized-color: yellow;
299
- }
300
- `
301
- ];
302
- __decorate([
303
- state(),
304
- __metadata("design:type", Object)
305
- ], ProjectReportListPage.prototype, "gristConfig", void 0);
306
- __decorate([
307
- state(),
308
- __metadata("design:type", String)
309
- ], ProjectReportListPage.prototype, "mode", void 0);
310
- __decorate([
311
- query('ox-grist'),
312
- __metadata("design:type", DataGrist)
313
- ], ProjectReportListPage.prototype, "grist", void 0);
314
- __decorate([
315
- query('#sorter-control'),
316
- __metadata("design:type", OxPopup)
317
- ], ProjectReportListPage.prototype, "sortersControl", void 0);
318
- ProjectReportListPage = __decorate([
319
- customElement('project-report-list-page')
320
- ], ProjectReportListPage);
321
- export { ProjectReportListPage };
322
- //# sourceMappingURL=project-report-list-page.js.map