@dssp/supervision 1.0.0-y.0 → 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 (382) hide show
  1. package/package.json +14 -12
  2. package/things-factory.config.js +7 -1
  3. package/dist-client/bootstrap.d.ts +0 -1
  4. package/dist-client/bootstrap.js +0 -2
  5. package/dist-client/bootstrap.js.map +0 -1
  6. package/dist-client/graphql/building-inspection.d.ts +0 -1
  7. package/dist-client/graphql/building-inspection.js +0 -100
  8. package/dist-client/graphql/building-inspection.js.map +0 -1
  9. package/dist-client/index.d.ts +0 -0
  10. package/dist-client/index.js +0 -2
  11. package/dist-client/index.js.map +0 -1
  12. package/dist-client/pages/action-plan/action-plan-importer.d.ts +0 -10
  13. package/dist-client/pages/action-plan/action-plan-importer.js +0 -101
  14. package/dist-client/pages/action-plan/action-plan-importer.js.map +0 -1
  15. package/dist-client/pages/action-plan/action-plan-list-page.d.ts +0 -63
  16. package/dist-client/pages/action-plan/action-plan-list-page.js +0 -323
  17. package/dist-client/pages/action-plan/action-plan-list-page.js.map +0 -1
  18. package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.d.ts +0 -22
  19. package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js +0 -169
  20. package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js.map +0 -1
  21. package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.d.ts +0 -57
  22. package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js +0 -825
  23. package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js.map +0 -1
  24. package/dist-client/pages/building-inspection/building-inspection-detail-camera.d.ts +0 -27
  25. package/dist-client/pages/building-inspection/building-inspection-detail-camera.js +0 -341
  26. package/dist-client/pages/building-inspection/building-inspection-detail-camera.js.map +0 -1
  27. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.d.ts +0 -29
  28. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js +0 -315
  29. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js.map +0 -1
  30. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.d.ts +0 -36
  31. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js +0 -368
  32. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js.map +0 -1
  33. package/dist-client/pages/building-inspection/building-inspection-list.d.ts +0 -90
  34. package/dist-client/pages/building-inspection/building-inspection-list.js +0 -904
  35. package/dist-client/pages/building-inspection/building-inspection-list.js.map +0 -1
  36. package/dist-client/pages/building-inspection/component/building-inspection-detail-header.d.ts +0 -4
  37. package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js +0 -233
  38. package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js.map +0 -1
  39. package/dist-client/pages/building-inspection/component/daily-worklog-popup.d.ts +0 -27
  40. package/dist-client/pages/building-inspection/component/daily-worklog-popup.js +0 -542
  41. package/dist-client/pages/building-inspection/component/daily-worklog-popup.js.map +0 -1
  42. package/dist-client/pages/building-inspection/component/image-preview-popup.d.ts +0 -15
  43. package/dist-client/pages/building-inspection/component/image-preview-popup.js +0 -351
  44. package/dist-client/pages/building-inspection/component/image-preview-popup.js.map +0 -1
  45. package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.d.ts +0 -20
  46. package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js +0 -432
  47. package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js.map +0 -1
  48. package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.d.ts +0 -30
  49. package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js +0 -479
  50. package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js.map +0 -1
  51. package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.d.ts +0 -27
  52. package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js +0 -416
  53. package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js.map +0 -1
  54. package/dist-client/pages/building-inspection/component/inspection-event-provider.d.ts +0 -8
  55. package/dist-client/pages/building-inspection/component/inspection-event-provider.js +0 -93
  56. package/dist-client/pages/building-inspection/component/inspection-event-provider.js.map +0 -1
  57. package/dist-client/pages/building-inspection/inspection-create-popup.d.ts +0 -3
  58. package/dist-client/pages/building-inspection/inspection-create-popup.js +0 -840
  59. package/dist-client/pages/building-inspection/inspection-create-popup.js.map +0 -1
  60. package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.d.ts +0 -60
  61. package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js +0 -1132
  62. package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js.map +0 -1
  63. package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.d.ts +0 -2
  64. package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js +0 -740
  65. package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js.map +0 -1
  66. package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.d.ts +0 -19
  67. package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js +0 -205
  68. package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js.map +0 -1
  69. package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.d.ts +0 -1
  70. package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.js +0 -304
  71. package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.js.map +0 -1
  72. package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.d.ts +0 -15
  73. package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.js +0 -430
  74. package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.js.map +0 -1
  75. package/dist-client/pages/checklist/attachment-list-popup.d.ts +0 -3
  76. package/dist-client/pages/checklist/attachment-list-popup.js +0 -493
  77. package/dist-client/pages/checklist/attachment-list-popup.js.map +0 -1
  78. package/dist-client/pages/checklist/checklist-view.d.ts +0 -15
  79. package/dist-client/pages/checklist/checklist-view.js +0 -738
  80. package/dist-client/pages/checklist/checklist-view.js.map +0 -1
  81. package/dist-client/pages/checklist/comment-list-popup.d.ts +0 -1
  82. package/dist-client/pages/checklist/comment-list-popup.js +0 -368
  83. package/dist-client/pages/checklist/comment-list-popup.js.map +0 -1
  84. package/dist-client/pages/checklist/file-preview-popup.d.ts +0 -1
  85. package/dist-client/pages/checklist/file-preview-popup.js +0 -77
  86. package/dist-client/pages/checklist/file-preview-popup.js.map +0 -1
  87. package/dist-client/pages/checklist/inspection-info-popup.d.ts +0 -50
  88. package/dist-client/pages/checklist/inspection-info-popup.js +0 -684
  89. package/dist-client/pages/checklist/inspection-info-popup.js.map +0 -1
  90. package/dist-client/pages/checklist/inspection-tab-popup.d.ts +0 -18
  91. package/dist-client/pages/checklist/inspection-tab-popup.js +0 -196
  92. package/dist-client/pages/checklist/inspection-tab-popup.js.map +0 -1
  93. package/dist-client/pages/checklist-template/checklist-template-item.d.ts +0 -2
  94. package/dist-client/pages/checklist-template/checklist-template-item.js +0 -253
  95. package/dist-client/pages/checklist-template/checklist-template-item.js.map +0 -1
  96. package/dist-client/pages/checklist-template/checklist-template-list.d.ts +0 -53
  97. package/dist-client/pages/checklist-template/checklist-template-list.js +0 -349
  98. package/dist-client/pages/checklist-template/checklist-template-list.js.map +0 -1
  99. package/dist-client/pages/checklist-template/checklist-type-management.d.ts +0 -55
  100. package/dist-client/pages/checklist-template/checklist-type-management.js +0 -250
  101. package/dist-client/pages/checklist-template/checklist-type-management.js.map +0 -1
  102. package/dist-client/pages/issue/issue-importer.d.ts +0 -10
  103. package/dist-client/pages/issue/issue-importer.js +0 -101
  104. package/dist-client/pages/issue/issue-importer.js.map +0 -1
  105. package/dist-client/pages/issue/issue-list-page.d.ts +0 -63
  106. package/dist-client/pages/issue/issue-list-page.js +0 -323
  107. package/dist-client/pages/issue/issue-list-page.js.map +0 -1
  108. package/dist-client/pages/project-report/project-report-importer.d.ts +0 -10
  109. package/dist-client/pages/project-report/project-report-importer.js +0 -101
  110. package/dist-client/pages/project-report/project-report-importer.js.map +0 -1
  111. package/dist-client/pages/project-report/project-report-list-page.d.ts +0 -63
  112. package/dist-client/pages/project-report/project-report-list-page.js +0 -323
  113. package/dist-client/pages/project-report/project-report-list-page.js.map +0 -1
  114. package/dist-client/pages/supervisor/supervisor-importer.d.ts +0 -10
  115. package/dist-client/pages/supervisor/supervisor-importer.js +0 -101
  116. package/dist-client/pages/supervisor/supervisor-importer.js.map +0 -1
  117. package/dist-client/pages/supervisor/supervisor-list-page.d.ts +0 -63
  118. package/dist-client/pages/supervisor/supervisor-list-page.js +0 -323
  119. package/dist-client/pages/supervisor/supervisor-list-page.js.map +0 -1
  120. package/dist-client/route.d.ts +0 -1
  121. package/dist-client/route.js +0 -32
  122. package/dist-client/route.js.map +0 -1
  123. package/dist-client/stt/speech-to-text.d.ts +0 -36
  124. package/dist-client/stt/speech-to-text.js +0 -89
  125. package/dist-client/stt/speech-to-text.js.map +0 -1
  126. package/dist-client/stt/stt-utils.d.ts +0 -28
  127. package/dist-client/stt/stt-utils.js +0 -146
  128. package/dist-client/stt/stt-utils.js.map +0 -1
  129. package/dist-client/tsconfig.tsbuildinfo +0 -1
  130. package/dist-server/controllers/index.d.ts +0 -0
  131. package/dist-server/controllers/index.js +0 -1
  132. package/dist-server/controllers/index.js.map +0 -1
  133. package/dist-server/index.d.ts +0 -3
  134. package/dist-server/index.js +0 -7
  135. package/dist-server/index.js.map +0 -1
  136. package/dist-server/middlewares/index.d.ts +0 -1
  137. package/dist-server/middlewares/index.js +0 -7
  138. package/dist-server/middlewares/index.js.map +0 -1
  139. package/dist-server/migrations/index.d.ts +0 -1
  140. package/dist-server/migrations/index.js +0 -12
  141. package/dist-server/migrations/index.js.map +0 -1
  142. package/dist-server/routes.d.ts +0 -0
  143. package/dist-server/routes.js +0 -25
  144. package/dist-server/routes.js.map +0 -1
  145. package/dist-server/service/action-plan/action-plan-mutation.d.ts +0 -10
  146. package/dist-server/service/action-plan/action-plan-mutation.js +0 -168
  147. package/dist-server/service/action-plan/action-plan-mutation.js.map +0 -1
  148. package/dist-server/service/action-plan/action-plan-query.d.ts +0 -12
  149. package/dist-server/service/action-plan/action-plan-query.js +0 -97
  150. package/dist-server/service/action-plan/action-plan-query.js.map +0 -1
  151. package/dist-server/service/action-plan/action-plan-type.d.ts +0 -23
  152. package/dist-server/service/action-plan/action-plan-type.js +0 -86
  153. package/dist-server/service/action-plan/action-plan-type.js.map +0 -1
  154. package/dist-server/service/action-plan/action-plan.d.ts +0 -27
  155. package/dist-server/service/action-plan/action-plan.js +0 -116
  156. package/dist-server/service/action-plan/action-plan.js.map +0 -1
  157. package/dist-server/service/action-plan/index.d.ts +0 -5
  158. package/dist-server/service/action-plan/index.js +0 -9
  159. package/dist-server/service/action-plan/index.js.map +0 -1
  160. package/dist-server/service/building-inspection/building-inspection-mutation.d.ts +0 -9
  161. package/dist-server/service/building-inspection/building-inspection-mutation.js +0 -370
  162. package/dist-server/service/building-inspection/building-inspection-mutation.js.map +0 -1
  163. package/dist-server/service/building-inspection/building-inspection-query.d.ts +0 -20
  164. package/dist-server/service/building-inspection/building-inspection-query.js +0 -277
  165. package/dist-server/service/building-inspection/building-inspection-query.js.map +0 -1
  166. package/dist-server/service/building-inspection/building-inspection-type.d.ts +0 -80
  167. package/dist-server/service/building-inspection/building-inspection-type.js +0 -296
  168. package/dist-server/service/building-inspection/building-inspection-type.js.map +0 -1
  169. package/dist-server/service/building-inspection/building-inspection.d.ts +0 -41
  170. package/dist-server/service/building-inspection/building-inspection.js +0 -168
  171. package/dist-server/service/building-inspection/building-inspection.js.map +0 -1
  172. package/dist-server/service/building-inspection/index.d.ts +0 -7
  173. package/dist-server/service/building-inspection/index.js +0 -19
  174. package/dist-server/service/building-inspection/index.js.map +0 -1
  175. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.d.ts +0 -6
  176. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js +0 -56
  177. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js.map +0 -1
  178. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.d.ts +0 -16
  179. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js +0 -171
  180. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js.map +0 -1
  181. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.d.ts +0 -23
  182. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js +0 -90
  183. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js.map +0 -1
  184. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.d.ts +0 -33
  185. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js +0 -132
  186. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js.map +0 -1
  187. package/dist-server/service/building-inspection-daily-worklog/index.d.ts +0 -5
  188. package/dist-server/service/building-inspection-daily-worklog/index.js +0 -9
  189. package/dist-server/service/building-inspection-daily-worklog/index.js.map +0 -1
  190. package/dist-server/service/building-inspection-history/building-inspection-history-query.d.ts +0 -16
  191. package/dist-server/service/building-inspection-history/building-inspection-history-query.js +0 -120
  192. package/dist-server/service/building-inspection-history/building-inspection-history-query.js.map +0 -1
  193. package/dist-server/service/building-inspection-history/building-inspection-history-type.d.ts +0 -5
  194. package/dist-server/service/building-inspection-history/building-inspection-history-type.js +0 -21
  195. package/dist-server/service/building-inspection-history/building-inspection-history-type.js.map +0 -1
  196. package/dist-server/service/building-inspection-history/building-inspection-history.d.ts +0 -34
  197. package/dist-server/service/building-inspection-history/building-inspection-history.js +0 -157
  198. package/dist-server/service/building-inspection-history/building-inspection-history.js.map +0 -1
  199. package/dist-server/service/building-inspection-history/event-subscriber.d.ts +0 -7
  200. package/dist-server/service/building-inspection-history/event-subscriber.js +0 -21
  201. package/dist-server/service/building-inspection-history/event-subscriber.js.map +0 -1
  202. package/dist-server/service/building-inspection-history/index.d.ts +0 -6
  203. package/dist-server/service/building-inspection-history/index.js +0 -10
  204. package/dist-server/service/building-inspection-history/index.js.map +0 -1
  205. package/dist-server/service/checklist/checklist-mutation.d.ts +0 -3
  206. package/dist-server/service/checklist/checklist-mutation.js +0 -30
  207. package/dist-server/service/checklist/checklist-mutation.js.map +0 -1
  208. package/dist-server/service/checklist/checklist-query.d.ts +0 -21
  209. package/dist-server/service/checklist/checklist-query.js +0 -177
  210. package/dist-server/service/checklist/checklist-query.js.map +0 -1
  211. package/dist-server/service/checklist/checklist-type.d.ts +0 -5
  212. package/dist-server/service/checklist/checklist-type.js +0 -21
  213. package/dist-server/service/checklist/checklist-type.js.map +0 -1
  214. package/dist-server/service/checklist/checklist.d.ts +0 -66
  215. package/dist-server/service/checklist/checklist.js +0 -259
  216. package/dist-server/service/checklist/checklist.js.map +0 -1
  217. package/dist-server/service/checklist/event-subscriber.d.ts +0 -7
  218. package/dist-server/service/checklist/event-subscriber.js +0 -21
  219. package/dist-server/service/checklist/event-subscriber.js.map +0 -1
  220. package/dist-server/service/checklist/index.d.ts +0 -5
  221. package/dist-server/service/checklist/index.js +0 -9
  222. package/dist-server/service/checklist/index.js.map +0 -1
  223. package/dist-server/service/checklist-history/checklist-history-query.d.ts +0 -11
  224. package/dist-server/service/checklist-history/checklist-history-query.js +0 -77
  225. package/dist-server/service/checklist-history/checklist-history-query.js.map +0 -1
  226. package/dist-server/service/checklist-history/checklist-history-type.d.ts +0 -5
  227. package/dist-server/service/checklist-history/checklist-history-type.js +0 -21
  228. package/dist-server/service/checklist-history/checklist-history-type.js.map +0 -1
  229. package/dist-server/service/checklist-history/checklist-history.d.ts +0 -50
  230. package/dist-server/service/checklist-history/checklist-history.js +0 -239
  231. package/dist-server/service/checklist-history/checklist-history.js.map +0 -1
  232. package/dist-server/service/checklist-history/event-subscriber.d.ts +0 -7
  233. package/dist-server/service/checklist-history/event-subscriber.js +0 -21
  234. package/dist-server/service/checklist-history/event-subscriber.js.map +0 -1
  235. package/dist-server/service/checklist-history/index.d.ts +0 -6
  236. package/dist-server/service/checklist-history/index.js +0 -10
  237. package/dist-server/service/checklist-history/index.js.map +0 -1
  238. package/dist-server/service/checklist-item/checklist-item-mutation.d.ts +0 -2
  239. package/dist-server/service/checklist-item/checklist-item-mutation.js +0 -13
  240. package/dist-server/service/checklist-item/checklist-item-mutation.js.map +0 -1
  241. package/dist-server/service/checklist-item/checklist-item-query.d.ts +0 -18
  242. package/dist-server/service/checklist-item/checklist-item-query.js +0 -138
  243. package/dist-server/service/checklist-item/checklist-item-query.js.map +0 -1
  244. package/dist-server/service/checklist-item/checklist-item-type.d.ts +0 -5
  245. package/dist-server/service/checklist-item/checklist-item-type.js +0 -21
  246. package/dist-server/service/checklist-item/checklist-item-type.js.map +0 -1
  247. package/dist-server/service/checklist-item/checklist-item.d.ts +0 -27
  248. package/dist-server/service/checklist-item/checklist-item.js +0 -114
  249. package/dist-server/service/checklist-item/checklist-item.js.map +0 -1
  250. package/dist-server/service/checklist-item/index.d.ts +0 -4
  251. package/dist-server/service/checklist-item/index.js +0 -9
  252. package/dist-server/service/checklist-item/index.js.map +0 -1
  253. package/dist-server/service/checklist-item-comment/checklist-item-comment-history.d.ts +0 -16
  254. package/dist-server/service/checklist-item-comment/checklist-item-comment-history.js +0 -83
  255. package/dist-server/service/checklist-item-comment/checklist-item-comment-history.js.map +0 -1
  256. package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.d.ts +0 -8
  257. package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js +0 -114
  258. package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js.map +0 -1
  259. package/dist-server/service/checklist-item-comment/checklist-item-comment-query.d.ts +0 -7
  260. package/dist-server/service/checklist-item-comment/checklist-item-comment-query.js +0 -49
  261. package/dist-server/service/checklist-item-comment/checklist-item-comment-query.js.map +0 -1
  262. package/dist-server/service/checklist-item-comment/checklist-item-comment-type.d.ts +0 -14
  263. package/dist-server/service/checklist-item-comment/checklist-item-comment-type.js +0 -53
  264. package/dist-server/service/checklist-item-comment/checklist-item-comment-type.js.map +0 -1
  265. package/dist-server/service/checklist-item-comment/checklist-item-comment.d.ts +0 -12
  266. package/dist-server/service/checklist-item-comment/checklist-item-comment.js +0 -57
  267. package/dist-server/service/checklist-item-comment/checklist-item-comment.js.map +0 -1
  268. package/dist-server/service/checklist-item-comment/index.d.ts +0 -5
  269. package/dist-server/service/checklist-item-comment/index.js +0 -10
  270. package/dist-server/service/checklist-item-comment/index.js.map +0 -1
  271. package/dist-server/service/checklist-item-history/checklist-item-history-query.d.ts +0 -16
  272. package/dist-server/service/checklist-item-history/checklist-item-history-query.js +0 -123
  273. package/dist-server/service/checklist-item-history/checklist-item-history-query.js.map +0 -1
  274. package/dist-server/service/checklist-item-history/checklist-item-history-type.d.ts +0 -5
  275. package/dist-server/service/checklist-item-history/checklist-item-history-type.js +0 -21
  276. package/dist-server/service/checklist-item-history/checklist-item-history-type.js.map +0 -1
  277. package/dist-server/service/checklist-item-history/checklist-item-history.d.ts +0 -25
  278. package/dist-server/service/checklist-item-history/checklist-item-history.js +0 -123
  279. package/dist-server/service/checklist-item-history/checklist-item-history.js.map +0 -1
  280. package/dist-server/service/checklist-item-history/event-subscriber.d.ts +0 -7
  281. package/dist-server/service/checklist-item-history/event-subscriber.js +0 -21
  282. package/dist-server/service/checklist-item-history/event-subscriber.js.map +0 -1
  283. package/dist-server/service/checklist-item-history/index.d.ts +0 -6
  284. package/dist-server/service/checklist-item-history/index.js +0 -10
  285. package/dist-server/service/checklist-item-history/index.js.map +0 -1
  286. package/dist-server/service/checklist-template/checklist-template-mutation.d.ts +0 -6
  287. package/dist-server/service/checklist-template/checklist-template-mutation.js +0 -64
  288. package/dist-server/service/checklist-template/checklist-template-mutation.js.map +0 -1
  289. package/dist-server/service/checklist-template/checklist-template-query.d.ts +0 -10
  290. package/dist-server/service/checklist-template/checklist-template-query.js +0 -65
  291. package/dist-server/service/checklist-template/checklist-template-query.js.map +0 -1
  292. package/dist-server/service/checklist-template/checklist-template-type.d.ts +0 -10
  293. package/dist-server/service/checklist-template/checklist-template-type.js +0 -39
  294. package/dist-server/service/checklist-template/checklist-template-type.js.map +0 -1
  295. package/dist-server/service/checklist-template/checklist-template.d.ts +0 -17
  296. package/dist-server/service/checklist-template/checklist-template.js +0 -78
  297. package/dist-server/service/checklist-template/checklist-template.js.map +0 -1
  298. package/dist-server/service/checklist-template/index.d.ts +0 -5
  299. package/dist-server/service/checklist-template/index.js +0 -9
  300. package/dist-server/service/checklist-template/index.js.map +0 -1
  301. package/dist-server/service/checklist-template-item/checklist-template-item-mutation.d.ts +0 -7
  302. package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js +0 -71
  303. package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js.map +0 -1
  304. package/dist-server/service/checklist-template-item/checklist-template-item-query.d.ts +0 -11
  305. package/dist-server/service/checklist-template-item/checklist-template-item-query.js +0 -78
  306. package/dist-server/service/checklist-template-item/checklist-template-item-query.js.map +0 -1
  307. package/dist-server/service/checklist-template-item/checklist-template-item-type.d.ts +0 -18
  308. package/dist-server/service/checklist-template-item/checklist-template-item-type.js +0 -65
  309. package/dist-server/service/checklist-template-item/checklist-template-item-type.js.map +0 -1
  310. package/dist-server/service/checklist-template-item/checklist-template-item.d.ts +0 -25
  311. package/dist-server/service/checklist-template-item/checklist-template-item.js +0 -101
  312. package/dist-server/service/checklist-template-item/checklist-template-item.js.map +0 -1
  313. package/dist-server/service/checklist-template-item/index.d.ts +0 -5
  314. package/dist-server/service/checklist-template-item/index.js +0 -9
  315. package/dist-server/service/checklist-template-item/index.js.map +0 -1
  316. package/dist-server/service/checklist-template-item/spec-matching-service.d.ts +0 -2
  317. package/dist-server/service/checklist-template-item/spec-matching-service.js +0 -50
  318. package/dist-server/service/checklist-template-item/spec-matching-service.js.map +0 -1
  319. package/dist-server/service/checklist-type/checklist-type-mutation.d.ts +0 -6
  320. package/dist-server/service/checklist-type/checklist-type-mutation.js +0 -64
  321. package/dist-server/service/checklist-type/checklist-type-mutation.js.map +0 -1
  322. package/dist-server/service/checklist-type/checklist-type-query.d.ts +0 -10
  323. package/dist-server/service/checklist-type/checklist-type-query.js +0 -65
  324. package/dist-server/service/checklist-type/checklist-type-query.js.map +0 -1
  325. package/dist-server/service/checklist-type/checklist-type-type.d.ts +0 -11
  326. package/dist-server/service/checklist-type/checklist-type-type.js +0 -43
  327. package/dist-server/service/checklist-type/checklist-type-type.js.map +0 -1
  328. package/dist-server/service/checklist-type/checklist-type.d.ts +0 -19
  329. package/dist-server/service/checklist-type/checklist-type.js +0 -78
  330. package/dist-server/service/checklist-type/checklist-type.js.map +0 -1
  331. package/dist-server/service/checklist-type/index.d.ts +0 -5
  332. package/dist-server/service/checklist-type/index.js +0 -9
  333. package/dist-server/service/checklist-type/index.js.map +0 -1
  334. package/dist-server/service/index.d.ts +0 -18
  335. package/dist-server/service/index.js +0 -78
  336. package/dist-server/service/index.js.map +0 -1
  337. package/dist-server/service/issue/index.d.ts +0 -5
  338. package/dist-server/service/issue/index.js +0 -9
  339. package/dist-server/service/issue/index.js.map +0 -1
  340. package/dist-server/service/issue/issue-mutation.d.ts +0 -10
  341. package/dist-server/service/issue/issue-mutation.js +0 -168
  342. package/dist-server/service/issue/issue-mutation.js.map +0 -1
  343. package/dist-server/service/issue/issue-query.d.ts +0 -12
  344. package/dist-server/service/issue/issue-query.js +0 -97
  345. package/dist-server/service/issue/issue-query.js.map +0 -1
  346. package/dist-server/service/issue/issue-type.d.ts +0 -23
  347. package/dist-server/service/issue/issue-type.js +0 -86
  348. package/dist-server/service/issue/issue-type.js.map +0 -1
  349. package/dist-server/service/issue/issue.d.ts +0 -26
  350. package/dist-server/service/issue/issue.js +0 -111
  351. package/dist-server/service/issue/issue.js.map +0 -1
  352. package/dist-server/service/project-report/index.d.ts +0 -5
  353. package/dist-server/service/project-report/index.js +0 -9
  354. package/dist-server/service/project-report/index.js.map +0 -1
  355. package/dist-server/service/project-report/project-report-mutation.d.ts +0 -10
  356. package/dist-server/service/project-report/project-report-mutation.js +0 -168
  357. package/dist-server/service/project-report/project-report-mutation.js.map +0 -1
  358. package/dist-server/service/project-report/project-report-query.d.ts +0 -12
  359. package/dist-server/service/project-report/project-report-query.js +0 -97
  360. package/dist-server/service/project-report/project-report-query.js.map +0 -1
  361. package/dist-server/service/project-report/project-report-type.d.ts +0 -23
  362. package/dist-server/service/project-report/project-report-type.js +0 -86
  363. package/dist-server/service/project-report/project-report-type.js.map +0 -1
  364. package/dist-server/service/project-report/project-report.d.ts +0 -28
  365. package/dist-server/service/project-report/project-report.js +0 -121
  366. package/dist-server/service/project-report/project-report.js.map +0 -1
  367. package/dist-server/service/supervisor/index.d.ts +0 -5
  368. package/dist-server/service/supervisor/index.js +0 -9
  369. package/dist-server/service/supervisor/index.js.map +0 -1
  370. package/dist-server/service/supervisor/supervisor-mutation.d.ts +0 -10
  371. package/dist-server/service/supervisor/supervisor-mutation.js +0 -168
  372. package/dist-server/service/supervisor/supervisor-mutation.js.map +0 -1
  373. package/dist-server/service/supervisor/supervisor-query.d.ts +0 -12
  374. package/dist-server/service/supervisor/supervisor-query.js +0 -97
  375. package/dist-server/service/supervisor/supervisor-query.js.map +0 -1
  376. package/dist-server/service/supervisor/supervisor-type.d.ts +0 -23
  377. package/dist-server/service/supervisor/supervisor-type.js +0 -86
  378. package/dist-server/service/supervisor/supervisor-type.js.map +0 -1
  379. package/dist-server/service/supervisor/supervisor.d.ts +0 -28
  380. package/dist-server/service/supervisor/supervisor.js +0 -121
  381. package/dist-server/service/supervisor/supervisor.js.map +0 -1
  382. package/dist-server/tsconfig.tsbuildinfo +0 -1
@@ -1,323 +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 } 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 { connect } from 'pwa-helpers/connect-mixin';
16
- import gql from 'graphql-tag';
17
- import { ActionPlanImporter } from './action-plan-importer';
18
- let ActionPlanListPage = class ActionPlanListPage extends connect(store)(localize(i18next)(ScopedElementsMixin(PageView))) {
19
- constructor() {
20
- super(...arguments);
21
- this.mode = isMobileDevice() ? 'CARD' : 'GRID';
22
- }
23
- static get scopedElements() {
24
- return {
25
- 'action-plan-importer': ActionPlanImporter
26
- };
27
- }
28
- get context() {
29
- return {
30
- title: i18next.t('title.action-plan list'),
31
- search: {
32
- handler: (search) => {
33
- this.grist.searchText = search;
34
- },
35
- value: this.grist.searchText
36
- },
37
- filter: {
38
- handler: () => {
39
- this.grist.toggleHeadroom();
40
- }
41
- },
42
- help: 'supervision/action-plan',
43
- actions: [
44
- Object.assign({ title: i18next.t('button.save'), action: this.updateActionPlan.bind(this) }, CommonButtonStyles.save),
45
- Object.assign({ title: i18next.t('button.delete'), action: this.deleteActionPlan.bind(this) }, CommonButtonStyles.delete)
46
- ],
47
- exportable: {
48
- name: i18next.t('title.action-plan list'),
49
- data: this.exportHandler.bind(this)
50
- },
51
- importable: {
52
- handler: this.importHandler.bind(this)
53
- }
54
- };
55
- }
56
- render() {
57
- const mode = this.mode || (isMobileDevice() ? 'CARD' : 'GRID');
58
- return html `
59
- <ox-grist .mode=${mode} .config=${this.gristConfig} .fetchHandler=${this.fetchHandler.bind(this)}>
60
- <div slot="headroom">
61
- <div id="filters">
62
- <ox-filters-form autofocus></ox-filters-form>
63
- </div>
64
-
65
- <div id="sorters">
66
- Sort
67
- <md-icon
68
- @click=${e => {
69
- const target = e.currentTarget;
70
- this.sortersControl.open({
71
- right: 0,
72
- top: target.offsetTop + target.offsetHeight
73
- });
74
- }}
75
- >expand_more</md-icon
76
- >
77
- <ox-popup id="sorter-control">
78
- <ox-sorters-control> </ox-sorters-control>
79
- </ox-popup>
80
- </div>
81
-
82
- <div id="modes">
83
- <md-icon @click=${() => (this.mode = 'GRID')} ?active=${mode == 'GRID'}>grid_on</md-icon>
84
- <md-icon @click=${() => (this.mode = 'LIST')} ?active=${mode == 'LIST'}>format_list_bulleted</md-icon>
85
- <md-icon @click=${() => (this.mode = 'CARD')} ?active=${mode == 'CARD'}>apps</md-icon>
86
- </div>
87
- </div>
88
- </ox-grist>
89
- `;
90
- }
91
- async pageInitialized(lifecycle) {
92
- this.gristConfig = {
93
- list: {
94
- fields: ['name', 'description'],
95
- details: ['active', 'updatedAt']
96
- },
97
- columns: [
98
- { type: 'gutter', gutterName: 'sequence' },
99
- { type: 'gutter', gutterName: 'row-selector', multiple: true },
100
- {
101
- type: 'string',
102
- name: 'name',
103
- header: i18next.t('field.name'),
104
- record: {
105
- editable: true
106
- },
107
- filter: 'search',
108
- sortable: true,
109
- width: 150
110
- },
111
- {
112
- type: 'string',
113
- name: 'description',
114
- header: i18next.t('field.description'),
115
- record: {
116
- editable: true
117
- },
118
- filter: 'search',
119
- width: 200
120
- },
121
- {
122
- type: 'checkbox',
123
- name: 'active',
124
- label: true,
125
- header: i18next.t('field.active'),
126
- record: {
127
- editable: true
128
- },
129
- filter: true,
130
- sortable: true,
131
- width: 60
132
- },
133
- {
134
- type: 'resource-object',
135
- name: 'updater',
136
- header: i18next.t('field.updater'),
137
- record: {
138
- editable: false
139
- },
140
- sortable: true,
141
- width: 120
142
- },
143
- {
144
- type: 'datetime',
145
- name: 'updatedAt',
146
- header: i18next.t('field.updated_at'),
147
- record: {
148
- editable: false
149
- },
150
- sortable: true,
151
- width: 180
152
- }
153
- ],
154
- rows: {
155
- selectable: {
156
- multiple: true
157
- }
158
- },
159
- sorters: [
160
- {
161
- name: 'name'
162
- }
163
- ]
164
- };
165
- }
166
- async pageUpdated(changes, lifecycle) {
167
- if (this.active) {
168
- // do something here when this page just became as active
169
- }
170
- }
171
- async fetchHandler({ page = 1, limit = 100, sortings = [], filters = [] }) {
172
- const response = await client.query({
173
- query: gql `
174
- query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
175
- responses: actionPlans(filters: $filters, pagination: $pagination, sortings: $sortings) {
176
- items {
177
- id
178
- name
179
- description
180
- active
181
- updater {
182
- id
183
- name
184
- }
185
- updatedAt
186
- }
187
- total
188
- }
189
- }
190
- `,
191
- variables: {
192
- filters,
193
- pagination: { page, limit },
194
- sortings
195
- }
196
- });
197
- return {
198
- total: response.data.responses.total || 0,
199
- records: response.data.responses.items || []
200
- };
201
- }
202
- async deleteActionPlan() {
203
- if (await OxPrompt.open({
204
- title: i18next.t('text.are_you_sure'),
205
- text: i18next.t('text.sure_to_x', { x: i18next.t('text.delete') }),
206
- confirmButton: { text: i18next.t('button.confirm') },
207
- cancelButton: { text: i18next.t('button.cancel') }
208
- })) {
209
- const ids = this.grist.selected.map(record => record.id);
210
- if (ids && ids.length > 0) {
211
- const response = await client.mutate({
212
- mutation: gql `
213
- mutation ($ids: [String!]!) {
214
- deleteActionPlans(ids: $ids)
215
- }
216
- `,
217
- variables: {
218
- ids
219
- }
220
- });
221
- if (!response.errors) {
222
- this.grist.fetch();
223
- notify({
224
- message: i18next.t('text.info_x_successfully', { x: i18next.t('text.delete') })
225
- });
226
- }
227
- }
228
- }
229
- }
230
- async updateActionPlan() {
231
- let patches = this.grist.dirtyRecords;
232
- if (patches && patches.length) {
233
- patches = patches.map(patch => {
234
- let patchField = patch.id ? { id: patch.id } : {};
235
- const dirtyFields = patch.__dirtyfields__;
236
- for (let key in dirtyFields) {
237
- patchField[key] = dirtyFields[key].after;
238
- }
239
- patchField.cuFlag = patch.__dirty__;
240
- return patchField;
241
- });
242
- const response = await client.mutate({
243
- mutation: gql `
244
- mutation ($patches: [ActionPlanPatch!]!) {
245
- updateMultipleActionPlan(patches: $patches) {
246
- name
247
- }
248
- }
249
- `,
250
- variables: {
251
- patches
252
- }
253
- });
254
- if (!response.errors) {
255
- this.grist.fetch();
256
- }
257
- }
258
- }
259
- async exportHandler() {
260
- const exportTargets = this.grist.selected.length ? this.grist.selected : this.grist.dirtyData.records;
261
- const targetFieldSet = new Set(['id', 'name', 'description', 'active']);
262
- return exportTargets.map(actionPlan => {
263
- let tempObj = {};
264
- for (const field of targetFieldSet) {
265
- tempObj[field] = actionPlan[field];
266
- }
267
- return tempObj;
268
- });
269
- }
270
- async importHandler(records) {
271
- const popup = openPopup(html `
272
- <action-plan-importer
273
- .actionPlans=${records}
274
- @imported=${() => {
275
- history.back();
276
- this.grist.fetch();
277
- }}
278
- ></action-plan-importer>
279
- `, {
280
- backdrop: true,
281
- size: 'large',
282
- title: i18next.t('title.import action-plan')
283
- });
284
- popup.onclosed = () => {
285
- this.grist.fetch();
286
- };
287
- }
288
- };
289
- ActionPlanListPage.styles = [
290
- ScrollbarStyles,
291
- CommonGristStyles,
292
- css `
293
- :host {
294
- display: flex;
295
-
296
- width: 100%;
297
-
298
- --grid-record-emphasized-background-color: red;
299
- --grid-record-emphasized-color: yellow;
300
- }
301
- `
302
- ];
303
- __decorate([
304
- state(),
305
- __metadata("design:type", Object)
306
- ], ActionPlanListPage.prototype, "gristConfig", void 0);
307
- __decorate([
308
- state(),
309
- __metadata("design:type", String)
310
- ], ActionPlanListPage.prototype, "mode", void 0);
311
- __decorate([
312
- query('ox-grist'),
313
- __metadata("design:type", DataGrist)
314
- ], ActionPlanListPage.prototype, "grist", void 0);
315
- __decorate([
316
- query('#sorter-control'),
317
- __metadata("design:type", OxPopup)
318
- ], ActionPlanListPage.prototype, "sortersControl", void 0);
319
- ActionPlanListPage = __decorate([
320
- customElement('action-plan-list-page')
321
- ], ActionPlanListPage);
322
- export { ActionPlanListPage };
323
- //# sourceMappingURL=action-plan-list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AAA;;;;;;;;;KASF;CACF,AAbY,CAaZ;AAQgB;IAAhB,KAAK,EAAE;;uDAAyB;AAChB;IAAhB,KAAK,EAAE;;gDAA4E;AAEzD;IAA1B,KAAK,CAAC,UAAU,CAAC;8BAAiB,SAAS;iDAAA;AACV;IAAjC,KAAK,CAAC,iBAAiB,CAAC;8BAA0B,OAAO;0DAAA;AA1B/C,kBAAkB;IAD9B,aAAa,CAAC,uBAAuB,CAAC;GAC1B,kBAAkB,CA8T9B","sourcesContent":["import '@material/web/icon/icon.js'\nimport '@operato/data-grist'\n\nimport { CommonButtonStyles, CommonGristStyles, ScrollbarStyles } from '@operato/styles'\nimport { PageView, store } from '@operato/shell'\nimport { css, html } from 'lit'\nimport { customElement, property, query, state } from 'lit/decorators.js'\nimport { ScopedElementsMixin } from '@open-wc/scoped-elements'\nimport { ColumnConfig, DataGrist, FetchOption, SortersControl } from '@operato/data-grist'\nimport { client } from '@operato/graphql'\nimport { i18next, localize } from '@operato/i18n'\nimport { notify, openPopup } from '@operato/layout'\nimport { OxPopup, OxPrompt } from '@operato/popup'\nimport { isMobileDevice } from '@operato/utils'\n\nimport { connect } from 'pwa-helpers/connect-mixin'\nimport gql from 'graphql-tag'\n\nimport { ActionPlanImporter } from './action-plan-importer'\n\n@customElement('action-plan-list-page')\nexport class ActionPlanListPage extends connect(store)(localize(i18next)(ScopedElementsMixin(PageView))) {\n static styles = [\n ScrollbarStyles,\n CommonGristStyles,\n css`\n :host {\n display: flex;\n\n width: 100%;\n\n --grid-record-emphasized-background-color: red;\n --grid-record-emphasized-color: yellow;\n }\n `\n ]\n\n static get scopedElements() {\n return {\n 'action-plan-importer': ActionPlanImporter\n }\n }\n\n @state() private gristConfig: any\n @state() private mode: 'CARD' | 'GRID' | 'LIST' = isMobileDevice() ? 'CARD' : 'GRID'\n\n @query('ox-grist') private grist!: DataGrist\n @query('#sorter-control') private sortersControl!: OxPopup\n\n get context() {\n return {\n title: i18next.t('title.action-plan list'),\n search: {\n handler: (search: string) => {\n this.grist.searchText = search\n },\n value: this.grist.searchText\n },\n filter: {\n handler: () => {\n this.grist.toggleHeadroom()\n }\n },\n help: 'supervision/action-plan',\n actions: [\n {\n title: i18next.t('button.save'),\n action: this.updateActionPlan.bind(this),\n ...CommonButtonStyles.save\n },\n {\n title: i18next.t('button.delete'),\n action: this.deleteActionPlan.bind(this),\n ...CommonButtonStyles.delete\n }\n ],\n exportable: {\n name: i18next.t('title.action-plan list'),\n data: this.exportHandler.bind(this)\n },\n importable: {\n handler: this.importHandler.bind(this)\n }\n }\n }\n\n render() {\n const mode = this.mode || (isMobileDevice() ? 'CARD' : 'GRID')\n\n return html`\n <ox-grist .mode=${mode} .config=${this.gristConfig} .fetchHandler=${this.fetchHandler.bind(this)}>\n <div slot=\"headroom\">\n <div id=\"filters\">\n <ox-filters-form autofocus></ox-filters-form>\n </div>\n\n <div id=\"sorters\">\n Sort\n <md-icon\n @click=${e => {\n const target = e.currentTarget\n this.sortersControl.open({\n right: 0,\n top: target.offsetTop + target.offsetHeight\n })\n }}\n >expand_more</md-icon\n >\n <ox-popup id=\"sorter-control\">\n <ox-sorters-control> </ox-sorters-control>\n </ox-popup>\n </div>\n\n <div id=\"modes\">\n <md-icon @click=${() => (this.mode = 'GRID')} ?active=${mode == 'GRID'}>grid_on</md-icon>\n <md-icon @click=${() => (this.mode = 'LIST')} ?active=${mode == 'LIST'}>format_list_bulleted</md-icon>\n <md-icon @click=${() => (this.mode = 'CARD')} ?active=${mode == 'CARD'}>apps</md-icon>\n </div>\n </div>\n </ox-grist>\n `\n }\n\n async pageInitialized(lifecycle: any) {\n this.gristConfig = {\n list: {\n fields: ['name', 'description'],\n details: ['active', 'updatedAt']\n },\n columns: [\n { type: 'gutter', gutterName: 'sequence' },\n { type: 'gutter', gutterName: 'row-selector', multiple: true },\n {\n type: 'string',\n name: 'name',\n header: i18next.t('field.name'),\n record: {\n editable: true\n },\n filter: 'search',\n sortable: true,\n width: 150\n },\n {\n type: 'string',\n name: 'description',\n header: i18next.t('field.description'),\n record: {\n editable: true\n },\n filter: 'search',\n width: 200\n },\n {\n type: 'checkbox',\n name: 'active',\n label: true,\n header: i18next.t('field.active'),\n record: {\n editable: true\n },\n filter: true,\n sortable: true,\n width: 60\n },\n {\n type: 'resource-object',\n name: 'updater',\n header: i18next.t('field.updater'),\n record: {\n editable: false\n },\n sortable: true,\n width: 120\n },\n {\n type: 'datetime',\n name: 'updatedAt',\n header: i18next.t('field.updated_at'),\n record: {\n editable: false\n },\n sortable: true,\n width: 180\n }\n ],\n rows: {\n selectable: {\n multiple: true\n }\n },\n sorters: [\n {\n name: 'name'\n }\n ]\n }\n }\n\n async pageUpdated(changes: any, lifecycle: any) {\n if (this.active) {\n // do something here when this page just became as active\n }\n }\n\n async fetchHandler({ page = 1, limit = 100, sortings = [], filters = [] }: FetchOption) {\n const response = await client.query({\n query: gql`\n query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {\n responses: actionPlans(filters: $filters, pagination: $pagination, sortings: $sortings) {\n items {\n id\n name\n description\n active\n updater {\n id\n name\n }\n updatedAt\n }\n total\n }\n }\n `,\n variables: {\n filters,\n pagination: { page, limit },\n sortings\n }\n })\n\n return {\n total: response.data.responses.total || 0,\n records: response.data.responses.items || []\n }\n }\n\n private async deleteActionPlan() {\n if (\n await OxPrompt.open({\n title: i18next.t('text.are_you_sure'),\n text: i18next.t('text.sure_to_x', { x: i18next.t('text.delete') }),\n confirmButton: { text: i18next.t('button.confirm') },\n cancelButton: { text: i18next.t('button.cancel') }\n })\n ) {\n const ids = this.grist.selected.map(record => record.id)\n if (ids && ids.length > 0) {\n const response = await client.mutate({\n mutation: gql`\n mutation ($ids: [String!]!) {\n deleteActionPlans(ids: $ids)\n }\n `,\n variables: {\n ids\n }\n })\n\n if (!response.errors) {\n this.grist.fetch()\n notify({\n message: i18next.t('text.info_x_successfully', { x: i18next.t('text.delete') })\n })\n }\n }\n }\n }\n\n private async updateActionPlan() {\n let patches = this.grist.dirtyRecords\n if (patches && patches.length) {\n patches = patches.map(patch => {\n let patchField: any = patch.id ? { id: patch.id } : {}\n const dirtyFields = patch.__dirtyfields__\n for (let key in dirtyFields) {\n patchField[key] = dirtyFields[key].after\n }\n patchField.cuFlag = patch.__dirty__\n\n return patchField\n })\n\n const response = await client.mutate({\n mutation: gql`\n mutation ($patches: [ActionPlanPatch!]!) {\n updateMultipleActionPlan(patches: $patches) {\n name\n }\n }\n `,\n variables: {\n patches\n }\n })\n\n if (!response.errors) {\n this.grist.fetch()\n }\n }\n }\n\n private async exportHandler() {\n const exportTargets = this.grist.selected.length ? this.grist.selected : this.grist.dirtyData.records\n const targetFieldSet = new Set(['id', 'name', 'description', 'active'])\n\n return exportTargets.map(actionPlan => {\n let tempObj = {}\n for (const field of targetFieldSet) {\n tempObj[field] = actionPlan[field]\n }\n\n return tempObj\n })\n }\n\n private async importHandler(records) {\n const popup = openPopup(\n html`\n <action-plan-importer\n .actionPlans=${records}\n @imported=${() => {\n history.back()\n this.grist.fetch()\n }}\n ></action-plan-importer>\n `,\n {\n backdrop: true,\n size: 'large',\n title: i18next.t('title.import action-plan')\n }\n )\n\n popup.onclosed = () => {\n this.grist.fetch()\n }\n }\n}\n"]}
@@ -1,22 +0,0 @@
1
- import '@material/web/icon/icon.js';
2
- import '@operato/input/ox-input-switch.js';
3
- import '@operato/mini-map/ox-zoomable-image.js';
4
- import '@material/web/progress/circular-progress.js';
5
- import { PropertyValues } from 'lit';
6
- import { PageView } from '@operato/shell';
7
- import { PageLifecycle } from '@operato/shell/dist/src/app/pages/page-view';
8
- import './component/building-inspection-detail-header';
9
- export declare class BuildingInspectionAiDefect extends PageView {
10
- static styles: import("lit").CSSResult[];
11
- project: any;
12
- buildingInspection: any;
13
- buildingInspectionId: string;
14
- get context(): {
15
- title: string;
16
- };
17
- render(): import("lit-html").TemplateResult<1>;
18
- protected updated(changes: PropertyValues): Promise<void>;
19
- pageUpdated(changes: any, lifecycle: PageLifecycle): Promise<void>;
20
- initBuildingInspection(buildingInspectionId?: string): Promise<void>;
21
- private _getProjectByBuildingComplexId;
22
- }
@@ -1,169 +0,0 @@
1
- import { __decorate, __metadata } from "tslib";
2
- import '@material/web/icon/icon.js';
3
- import '@operato/input/ox-input-switch.js';
4
- import '@operato/mini-map/ox-zoomable-image.js';
5
- import '@material/web/progress/circular-progress.js';
6
- import gql from 'graphql-tag';
7
- import { css, html } from 'lit';
8
- import { customElement, state } from 'lit/decorators.js';
9
- import { PageView } from '@operato/shell';
10
- import { CommonGristStyles, ScrollbarStyles } from '@operato/styles';
11
- import { client } from '@operato/graphql';
12
- import './component/building-inspection-detail-header';
13
- let BuildingInspectionAiDefect = class BuildingInspectionAiDefect extends PageView {
14
- constructor() {
15
- super(...arguments);
16
- this.project = {};
17
- this.buildingInspection = {};
18
- this.buildingInspectionId = '';
19
- }
20
- get context() {
21
- return {
22
- title: '검측 관리 상세 - AI 하자 분석'
23
- };
24
- }
25
- render() {
26
- var _a, _b, _c, _d, _e, _f, _g, _h;
27
- return html `
28
- <building-inspection-detail-header
29
- .buildingInspectionId=${(_a = this.buildingInspection) === null || _a === void 0 ? void 0 : _a.id}
30
- .buildingLevelId=${(_c = (_b = this.buildingInspection) === null || _b === void 0 ? void 0 : _b.buildingLevel) === null || _c === void 0 ? void 0 : _c.id}
31
- .projectName=${this.project.name}
32
- .buildingName=${(_f = (_e = (_d = this.buildingInspection) === null || _d === void 0 ? void 0 : _d.buildingLevel) === null || _e === void 0 ? void 0 : _e.building) === null || _f === void 0 ? void 0 : _f.name}
33
- .buildingLevelFloor=${(_h = (_g = this.buildingInspection) === null || _g === void 0 ? void 0 : _g.buildingLevel) === null || _h === void 0 ? void 0 : _h.floor}
34
- ></building-inspection-detail-header>
35
-
36
- <div body>
37
- <div preview>
38
- <video src="/attachment/21e53688-5262-4fae-961a-591db7114b75.mp4" controls playsinline></video>
39
- </div>
40
- </div>
41
- `;
42
- }
43
- async updated(changes) { }
44
- async pageUpdated(changes, lifecycle) {
45
- if (this.active) {
46
- this.buildingInspectionId = lifecycle.resourceId || '';
47
- await this.initBuildingInspection(this.buildingInspectionId);
48
- }
49
- }
50
- async initBuildingInspection(buildingInspectionId = '') {
51
- var _a, _b, _c, _d;
52
- const response = await client.query({
53
- query: gql `
54
- query BuildingInspection($buildingInspectionId: String!) {
55
- buildingInspection(id: $buildingInspectionId) {
56
- id
57
- status
58
- requestDate
59
- drawingMarker
60
- checklist {
61
- id
62
- location
63
- inspectionDrawingType
64
- }
65
- buildingLevel {
66
- id
67
- floor
68
- mainDrawing {
69
- id
70
- name
71
- fullpath
72
- }
73
- mainDrawingImage
74
- building {
75
- id
76
- name
77
- buildingComplex {
78
- id
79
- }
80
- }
81
- }
82
- }
83
- }
84
- `,
85
- variables: {
86
- buildingInspectionId
87
- }
88
- });
89
- if (response.errors)
90
- return;
91
- this.buildingInspection = response.data.buildingInspection;
92
- await this._getProjectByBuildingComplexId((_d = (_c = (_b = (_a = this.buildingInspection) === null || _a === void 0 ? void 0 : _a.buildingLevel) === null || _b === void 0 ? void 0 : _b.building) === null || _c === void 0 ? void 0 : _c.buildingComplex) === null || _d === void 0 ? void 0 : _d.id);
93
- }
94
- async _getProjectByBuildingComplexId(buildingComplexId) {
95
- const response = await client.query({
96
- query: gql `
97
- query ProjectByBuildingComplexId($buildingComplexId: String!) {
98
- project: projectByBuildingComplexId(buildingComplexId: $buildingComplexId) {
99
- id
100
- name
101
- }
102
- }
103
- `,
104
- variables: {
105
- buildingComplexId
106
- }
107
- });
108
- if (response.errors)
109
- return;
110
- this.project = response.data.project;
111
- }
112
- };
113
- BuildingInspectionAiDefect.styles = [
114
- ScrollbarStyles,
115
- CommonGristStyles,
116
- css `
117
- :host {
118
- display: grid;
119
- grid-template-rows: 75px 1fr;
120
- color: #4e5055;
121
- width: 100%;
122
- height: 100%;
123
- background-color: #f7f7f7;
124
- }
125
-
126
- div[body] {
127
- display: flex;
128
- justify-items: center;
129
- gap: var(--spacing-medium);
130
- margin: var(--spacing-medium);
131
- min-height: 0;
132
- }
133
-
134
- div[preview] {
135
- flex: 1;
136
- border: 2px solid #ddd;
137
- border-radius: 10px;
138
-
139
- display: flex;
140
- justify-content: center;
141
- align-items: center;
142
- min-height: 0;
143
- overflow: hidden;
144
- }
145
-
146
- div[preview] video {
147
- max-width: 100%;
148
- max-height: 100%;
149
- object-fit: contain;
150
- }
151
- `
152
- ];
153
- __decorate([
154
- state(),
155
- __metadata("design:type", Object)
156
- ], BuildingInspectionAiDefect.prototype, "project", void 0);
157
- __decorate([
158
- state(),
159
- __metadata("design:type", Object)
160
- ], BuildingInspectionAiDefect.prototype, "buildingInspection", void 0);
161
- __decorate([
162
- state(),
163
- __metadata("design:type", String)
164
- ], BuildingInspectionAiDefect.prototype, "buildingInspectionId", void 0);
165
- BuildingInspectionAiDefect = __decorate([
166
- customElement('building-inspection-detail-ai-defect')
167
- ], BuildingInspectionAiDefect);
168
- export { BuildingInspectionAiDefect };
169
- //# sourceMappingURL=building-inspection-detail-ai-defect.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"building-inspection-detail-ai-defect.js","sourceRoot":"","sources":["../../../client/pages/building-inspection/building-inspection-detail-ai-defect.ts"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,mCAAmC,CAAA;AAC1C,OAAO,wCAAwC,CAAA;AAC/C,OAAO,6CAA6C,CAAA;AAEpD,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,KAAK,EAAS,MAAM,mBAAmB,CAAA;AAE/D,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEpE,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAEzC,OAAO,+CAA+C,CAAA;AAG/C,IAAM,0BAA0B,GA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AAC,IAAI,CAAC,kBAAkB,CAAA;QAE1D,MAAM,IAAI,CAAC,8BAA8B,CAAC,MAAA,MAAA,MAAA,MAAA,IAAI,CAAC,kBAAkB,0CAAE,aAAa,0CAAE,QAAQ,0CAAE,eAAe,0CAAE,EAAE,CAAC,CAAA;IAClH,CAAC;IAEO,KAAK,CAAC,8BAA8B,CAAC,iBAAiB;QAC5D,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC;YAClC,KAAK,EAAE,GAAG,CAAA;;;;;;;OAOT;YACD,SAAS,EAAE;gBACT,iBAAiB;aAClB;SACF,CAAC,CAAA;QAEF,IAAI,QAAQ,CAAC,MAAM;YAAE,OAAM;QAE3B,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAA;IACtC,CAAC;;AA9IM,iCAAM,GAAG;IACd,eAAe;IACf,iBAAiB;IACjB,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAmCF;CACF,AAvCY,CAuCZ;AAEQ;IAAR,KAAK,EAAE;;2DAAkB;AACjB;IAAR,KAAK,EAAE;;sEAA6B;AAC5B;IAAR,KAAK,EAAE;;wEAAkC;AA5C/B,0BAA0B;IADtC,aAAa,CAAC,sCAAsC,CAAC;GACzC,0BAA0B,CAgJtC","sourcesContent":["import '@material/web/icon/icon.js'\nimport '@operato/input/ox-input-switch.js'\nimport '@operato/mini-map/ox-zoomable-image.js'\nimport '@material/web/progress/circular-progress.js'\n\nimport gql from 'graphql-tag'\nimport { css, html, PropertyValues } from 'lit'\nimport { customElement, state, query } from 'lit/decorators.js'\n\nimport { PageView } from '@operato/shell'\nimport { CommonGristStyles, ScrollbarStyles } from '@operato/styles'\nimport { PageLifecycle } from '@operato/shell/dist/src/app/pages/page-view'\nimport { client } from '@operato/graphql'\n\nimport './component/building-inspection-detail-header'\n\n@customElement('building-inspection-detail-ai-defect')\nexport class BuildingInspectionAiDefect extends PageView {\n static styles = [\n ScrollbarStyles,\n CommonGristStyles,\n css`\n :host {\n display: grid;\n grid-template-rows: 75px 1fr;\n color: #4e5055;\n width: 100%;\n height: 100%;\n background-color: #f7f7f7;\n }\n\n div[body] {\n display: flex;\n justify-items: center;\n gap: var(--spacing-medium);\n margin: var(--spacing-medium);\n min-height: 0;\n }\n\n div[preview] {\n flex: 1;\n border: 2px solid #ddd;\n border-radius: 10px;\n\n display: flex;\n justify-content: center;\n align-items: center;\n min-height: 0;\n overflow: hidden;\n }\n\n div[preview] video {\n max-width: 100%;\n max-height: 100%;\n object-fit: contain;\n }\n `\n ]\n\n @state() project: any = {}\n @state() buildingInspection: any = {}\n @state() buildingInspectionId: string = ''\n\n get context() {\n return {\n title: '검측 관리 상세 - AI 하자 분석'\n }\n }\n\n render() {\n return html`\n <building-inspection-detail-header\n .buildingInspectionId=${this.buildingInspection?.id}\n .buildingLevelId=${this.buildingInspection?.buildingLevel?.id}\n .projectName=${this.project.name}\n .buildingName=${this.buildingInspection?.buildingLevel?.building?.name}\n .buildingLevelFloor=${this.buildingInspection?.buildingLevel?.floor}\n ></building-inspection-detail-header>\n\n <div body>\n <div preview>\n <video src=\"/attachment/21e53688-5262-4fae-961a-591db7114b75.mp4\" controls playsinline></video>\n </div>\n </div>\n `\n }\n\n protected async updated(changes: PropertyValues): Promise<void> {}\n\n async pageUpdated(changes: any, lifecycle: PageLifecycle) {\n if (this.active) {\n this.buildingInspectionId = lifecycle.resourceId || ''\n await this.initBuildingInspection(this.buildingInspectionId)\n }\n }\n\n async initBuildingInspection(buildingInspectionId: string = '') {\n const response = await client.query({\n query: gql`\n query BuildingInspection($buildingInspectionId: String!) {\n buildingInspection(id: $buildingInspectionId) {\n id\n status\n requestDate\n drawingMarker\n checklist {\n id\n location\n inspectionDrawingType\n }\n buildingLevel {\n id\n floor\n mainDrawing {\n id\n name\n fullpath\n }\n mainDrawingImage\n building {\n id\n name\n buildingComplex {\n id\n }\n }\n }\n }\n }\n `,\n variables: {\n buildingInspectionId\n }\n })\n\n if (response.errors) return\n\n this.buildingInspection = response.data.buildingInspection\n\n await this._getProjectByBuildingComplexId(this.buildingInspection?.buildingLevel?.building?.buildingComplex?.id)\n }\n\n private async _getProjectByBuildingComplexId(buildingComplexId) {\n const response = await client.query({\n query: gql`\n query ProjectByBuildingComplexId($buildingComplexId: String!) {\n project: projectByBuildingComplexId(buildingComplexId: $buildingComplexId) {\n id\n name\n }\n }\n `,\n variables: {\n buildingComplexId\n }\n })\n\n if (response.errors) return\n\n this.project = response.data.project\n }\n}\n"]}
@@ -1,57 +0,0 @@
1
- import '@material/web/icon/icon.js';
2
- import '@operato/input/ox-input-switch.js';
3
- import '@operato/mini-map/ox-zoomable-image.js';
4
- import '@material/web/progress/circular-progress.js';
5
- import { PropertyValues } from 'lit';
6
- import { PageView } from '@operato/shell';
7
- import { PageLifecycle } from '@operato/shell/dist/src/app/pages/page-view';
8
- import './component/building-inspection-detail-header';
9
- export declare class BuildingInspectionAiMeasurement extends PageView {
10
- static styles: import("lit").CSSResult[];
11
- private KEYPOINT_RULER_API_BASE_URL;
12
- project: any;
13
- buildingInspection: any;
14
- buildingInspectionId: string;
15
- capturedVideoUrl: string | null;
16
- videoFile: File | null;
17
- frame: any | null;
18
- analyzing: boolean;
19
- selectedPoints: {
20
- x1: number | null;
21
- y1: number | null;
22
- x2: number | null;
23
- y2: number | null;
24
- };
25
- frameNaturalWidth: number;
26
- frameNaturalHeight: number;
27
- displayedImageRect: {
28
- width: number;
29
- height: number;
30
- left: number;
31
- top: number;
32
- } | null;
33
- distance: number | null;
34
- unit: string | null;
35
- analyzingError: string | null;
36
- private frameImageEl;
37
- private imageWrapperEl;
38
- private cameraInputEl;
39
- get context(): {
40
- title: string;
41
- };
42
- render(): import("lit-html").TemplateResult<1>;
43
- protected updated(changes: PropertyValues): Promise<void>;
44
- pageUpdated(changes: any, lifecycle: PageLifecycle): Promise<void>;
45
- initBuildingInspection(buildingInspectionId?: string): Promise<void>;
46
- private _getProjectByBuildingComplexId;
47
- private _onVideoSelected;
48
- private _onAnalyzeVideo;
49
- private _onRetry;
50
- private _onImageLoad;
51
- private _onImageClick;
52
- private _hasTwoPoints;
53
- private _renderMarkers;
54
- private _onAnalyzePhoto;
55
- _savePhoto(): Promise<any>;
56
- getCurrentImage(): Promise<File>;
57
- }