@dssp/supervision 1.0.0-alpha.4 → 1.0.0-alpha.41

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 (217) hide show
  1. package/dist-client/graphql/building-inspection.d.ts +1 -0
  2. package/dist-client/graphql/building-inspection.js +100 -0
  3. package/dist-client/graphql/building-inspection.js.map +1 -0
  4. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.d.ts +9 -0
  5. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js +130 -72
  6. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js.map +1 -1
  7. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.d.ts +1 -0
  8. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js +77 -14
  9. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js.map +1 -1
  10. package/dist-client/pages/building-inspection/building-inspection-list.d.ts +18 -2
  11. package/dist-client/pages/building-inspection/building-inspection-list.js +360 -28
  12. package/dist-client/pages/building-inspection/building-inspection-list.js.map +1 -1
  13. package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js +31 -9
  14. package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js.map +1 -1
  15. package/dist-client/pages/building-inspection/component/daily-worklog-popup.d.ts +27 -0
  16. package/dist-client/pages/building-inspection/component/daily-worklog-popup.js +542 -0
  17. package/dist-client/pages/building-inspection/component/daily-worklog-popup.js.map +1 -0
  18. package/dist-client/pages/building-inspection/component/image-preview-popup.d.ts +15 -0
  19. package/dist-client/pages/building-inspection/component/image-preview-popup.js +351 -0
  20. package/dist-client/pages/building-inspection/component/image-preview-popup.js.map +1 -0
  21. package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.d.ts +20 -0
  22. package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js +432 -0
  23. package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js.map +1 -0
  24. package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.d.ts +30 -0
  25. package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js +479 -0
  26. package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js.map +1 -0
  27. package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.d.ts +27 -0
  28. package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js +401 -0
  29. package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js.map +1 -0
  30. package/dist-client/pages/building-inspection/component/inspection-event-provider.d.ts +2 -1
  31. package/dist-client/pages/building-inspection/component/inspection-event-provider.js +39 -17
  32. package/dist-client/pages/building-inspection/component/inspection-event-provider.js.map +1 -1
  33. package/dist-client/pages/building-inspection/inspection-create-popup.js +22 -9
  34. package/dist-client/pages/building-inspection/inspection-create-popup.js.map +1 -1
  35. package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.d.ts +60 -0
  36. package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js +1132 -0
  37. package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js.map +1 -0
  38. package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.d.ts +2 -0
  39. package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js +740 -0
  40. package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js.map +1 -0
  41. package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.d.ts +19 -0
  42. package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js +205 -0
  43. package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js.map +1 -0
  44. package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.d.ts +1 -0
  45. package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.js +304 -0
  46. package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.js.map +1 -0
  47. package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.d.ts +15 -0
  48. package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.js +430 -0
  49. package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.js.map +1 -0
  50. package/dist-client/pages/checklist/attachment-list-popup.d.ts +1 -0
  51. package/dist-client/pages/checklist/attachment-list-popup.js +250 -67
  52. package/dist-client/pages/checklist/attachment-list-popup.js.map +1 -1
  53. package/dist-client/pages/checklist/checklist-view.d.ts +7 -0
  54. package/dist-client/pages/checklist/checklist-view.js +363 -185
  55. package/dist-client/pages/checklist/checklist-view.js.map +1 -1
  56. package/dist-client/pages/checklist/comment-list-popup.js +14 -3
  57. package/dist-client/pages/checklist/comment-list-popup.js.map +1 -1
  58. package/dist-client/pages/checklist/file-preview-popup.js +0 -1
  59. package/dist-client/pages/checklist/file-preview-popup.js.map +1 -1
  60. package/dist-client/pages/checklist/inspection-info-popup.d.ts +50 -0
  61. package/dist-client/pages/checklist/inspection-info-popup.js +684 -0
  62. package/dist-client/pages/checklist/inspection-info-popup.js.map +1 -0
  63. package/dist-client/pages/checklist/inspection-tab-popup.d.ts +18 -0
  64. package/dist-client/pages/checklist/inspection-tab-popup.js +196 -0
  65. package/dist-client/pages/checklist/inspection-tab-popup.js.map +1 -0
  66. package/dist-client/pages/checklist-template/checklist-template-item.js +8 -3
  67. package/dist-client/pages/checklist-template/checklist-template-item.js.map +1 -1
  68. package/dist-client/pages/checklist-template/checklist-template-list.js +2 -2
  69. package/dist-client/pages/checklist-template/checklist-template-list.js.map +1 -1
  70. package/dist-client/route.d.ts +1 -1
  71. package/dist-client/route.js +3 -0
  72. package/dist-client/route.js.map +1 -1
  73. package/dist-client/stt/speech-to-text.d.ts +36 -0
  74. package/dist-client/stt/speech-to-text.js +89 -0
  75. package/dist-client/stt/speech-to-text.js.map +1 -0
  76. package/dist-client/stt/stt-utils.d.ts +28 -0
  77. package/dist-client/stt/stt-utils.js +146 -0
  78. package/dist-client/stt/stt-utils.js.map +1 -0
  79. package/dist-client/tsconfig.tsbuildinfo +1 -1
  80. package/dist-server/service/action-plan/index.d.ts +0 -1
  81. package/dist-server/service/action-plan/index.js +1 -2
  82. package/dist-server/service/action-plan/index.js.map +1 -1
  83. package/dist-server/service/building-inspection/building-inspection-mutation.d.ts +3 -3
  84. package/dist-server/service/building-inspection/building-inspection-mutation.js +145 -34
  85. package/dist-server/service/building-inspection/building-inspection-mutation.js.map +1 -1
  86. package/dist-server/service/building-inspection/building-inspection-query.d.ts +3 -4
  87. package/dist-server/service/building-inspection/building-inspection-query.js +46 -30
  88. package/dist-server/service/building-inspection/building-inspection-query.js.map +1 -1
  89. package/dist-server/service/building-inspection/building-inspection-type.d.ts +28 -9
  90. package/dist-server/service/building-inspection/building-inspection-type.js +96 -17
  91. package/dist-server/service/building-inspection/building-inspection-type.js.map +1 -1
  92. package/dist-server/service/building-inspection/building-inspection.d.ts +13 -0
  93. package/dist-server/service/building-inspection/building-inspection.js +55 -2
  94. package/dist-server/service/building-inspection/building-inspection.js.map +1 -1
  95. package/dist-server/service/building-inspection/index.d.ts +4 -7
  96. package/dist-server/service/building-inspection/index.js +11 -6
  97. package/dist-server/service/building-inspection/index.js.map +1 -1
  98. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.d.ts +6 -0
  99. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js +56 -0
  100. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js.map +1 -0
  101. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.d.ts +16 -0
  102. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js +171 -0
  103. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js.map +1 -0
  104. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.d.ts +23 -0
  105. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js +90 -0
  106. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js.map +1 -0
  107. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.d.ts +33 -0
  108. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js +132 -0
  109. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js.map +1 -0
  110. package/dist-server/service/building-inspection-daily-worklog/index.d.ts +5 -0
  111. package/dist-server/service/building-inspection-daily-worklog/index.js +9 -0
  112. package/dist-server/service/building-inspection-daily-worklog/index.js.map +1 -0
  113. package/dist-server/service/building-inspection-history/building-inspection-history-query.d.ts +16 -0
  114. package/dist-server/service/building-inspection-history/building-inspection-history-query.js +120 -0
  115. package/dist-server/service/building-inspection-history/building-inspection-history-query.js.map +1 -0
  116. package/dist-server/service/building-inspection-history/building-inspection-history-type.d.ts +5 -0
  117. package/dist-server/service/building-inspection-history/building-inspection-history-type.js +21 -0
  118. package/dist-server/service/building-inspection-history/building-inspection-history-type.js.map +1 -0
  119. package/dist-server/service/building-inspection-history/building-inspection-history.d.ts +34 -0
  120. package/dist-server/service/building-inspection-history/building-inspection-history.js +157 -0
  121. package/dist-server/service/building-inspection-history/building-inspection-history.js.map +1 -0
  122. package/dist-server/service/{building-inspection → building-inspection-history}/event-subscriber.d.ts +1 -1
  123. package/dist-server/service/{building-inspection → building-inspection-history}/event-subscriber.js +1 -1
  124. package/dist-server/service/building-inspection-history/event-subscriber.js.map +1 -0
  125. package/dist-server/service/building-inspection-history/index.d.ts +6 -0
  126. package/dist-server/service/building-inspection-history/index.js +10 -0
  127. package/dist-server/service/building-inspection-history/index.js.map +1 -0
  128. package/dist-server/service/checklist/checklist-mutation.d.ts +0 -5
  129. package/dist-server/service/checklist/checklist-mutation.js +1 -67
  130. package/dist-server/service/checklist/checklist-mutation.js.map +1 -1
  131. package/dist-server/service/checklist/checklist-query.d.ts +6 -0
  132. package/dist-server/service/checklist/checklist-query.js +63 -0
  133. package/dist-server/service/checklist/checklist-query.js.map +1 -1
  134. package/dist-server/service/checklist/checklist-type.d.ts +0 -13
  135. package/dist-server/service/checklist/checklist-type.js +1 -49
  136. package/dist-server/service/checklist/checklist-type.js.map +1 -1
  137. package/dist-server/service/checklist/checklist.d.ts +38 -3
  138. package/dist-server/service/checklist/checklist.js +131 -15
  139. package/dist-server/service/checklist/checklist.js.map +1 -1
  140. package/dist-server/service/checklist/event-subscriber.d.ts +2 -2
  141. package/dist-server/service/checklist/event-subscriber.js +2 -2
  142. package/dist-server/service/checklist/event-subscriber.js.map +1 -1
  143. package/dist-server/service/checklist/index.d.ts +1 -4
  144. package/dist-server/service/checklist/index.js +2 -5
  145. package/dist-server/service/checklist/index.js.map +1 -1
  146. package/dist-server/service/checklist-history/checklist-history-query.d.ts +11 -0
  147. package/dist-server/service/checklist-history/checklist-history-query.js +77 -0
  148. package/dist-server/service/checklist-history/checklist-history-query.js.map +1 -0
  149. package/dist-server/service/checklist-history/checklist-history-type.d.ts +5 -0
  150. package/dist-server/service/checklist-history/checklist-history-type.js +21 -0
  151. package/dist-server/service/checklist-history/checklist-history-type.js.map +1 -0
  152. package/dist-server/service/checklist-history/checklist-history.d.ts +50 -0
  153. package/dist-server/service/checklist-history/checklist-history.js +239 -0
  154. package/dist-server/service/checklist-history/checklist-history.js.map +1 -0
  155. package/dist-server/service/checklist-history/event-subscriber.d.ts +7 -0
  156. package/dist-server/service/checklist-history/event-subscriber.js +21 -0
  157. package/dist-server/service/checklist-history/event-subscriber.js.map +1 -0
  158. package/dist-server/service/checklist-history/index.d.ts +6 -0
  159. package/dist-server/service/checklist-history/index.js +10 -0
  160. package/dist-server/service/checklist-history/index.js.map +1 -0
  161. package/dist-server/service/checklist-item/checklist-item-query.d.ts +1 -1
  162. package/dist-server/service/checklist-item/checklist-item-query.js +5 -3
  163. package/dist-server/service/checklist-item/checklist-item-query.js.map +1 -1
  164. package/dist-server/service/checklist-item/index.d.ts +0 -1
  165. package/dist-server/service/checklist-item/index.js +1 -2
  166. package/dist-server/service/checklist-item/index.js.map +1 -1
  167. package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.d.ts +1 -0
  168. package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js +33 -6
  169. package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js.map +1 -1
  170. package/dist-server/service/checklist-item-comment/index.d.ts +0 -2
  171. package/dist-server/service/checklist-item-comment/index.js +1 -3
  172. package/dist-server/service/checklist-item-comment/index.js.map +1 -1
  173. package/dist-server/service/checklist-item-history/checklist-item-history-query.d.ts +16 -0
  174. package/dist-server/service/checklist-item-history/checklist-item-history-query.js +123 -0
  175. package/dist-server/service/checklist-item-history/checklist-item-history-query.js.map +1 -0
  176. package/dist-server/service/checklist-item-history/checklist-item-history-type.d.ts +5 -0
  177. package/dist-server/service/checklist-item-history/checklist-item-history-type.js +21 -0
  178. package/dist-server/service/checklist-item-history/checklist-item-history-type.js.map +1 -0
  179. package/dist-server/service/checklist-item-history/checklist-item-history.d.ts +25 -0
  180. package/dist-server/service/checklist-item-history/checklist-item-history.js +123 -0
  181. package/dist-server/service/checklist-item-history/checklist-item-history.js.map +1 -0
  182. package/dist-server/service/checklist-item-history/event-subscriber.d.ts +7 -0
  183. package/dist-server/service/checklist-item-history/event-subscriber.js +21 -0
  184. package/dist-server/service/checklist-item-history/event-subscriber.js.map +1 -0
  185. package/dist-server/service/checklist-item-history/index.d.ts +6 -0
  186. package/dist-server/service/checklist-item-history/index.js +10 -0
  187. package/dist-server/service/checklist-item-history/index.js.map +1 -0
  188. package/dist-server/service/checklist-template-item/checklist-template-item.js +2 -4
  189. package/dist-server/service/checklist-template-item/checklist-template-item.js.map +1 -1
  190. package/dist-server/service/index.d.ts +4 -2
  191. package/dist-server/service/index.js +22 -13
  192. package/dist-server/service/index.js.map +1 -1
  193. package/dist-server/service/issue/index.d.ts +0 -1
  194. package/dist-server/service/issue/index.js +1 -2
  195. package/dist-server/service/issue/index.js.map +1 -1
  196. package/dist-server/service/project-report/index.d.ts +0 -1
  197. package/dist-server/service/project-report/index.js +1 -2
  198. package/dist-server/service/project-report/index.js.map +1 -1
  199. package/dist-server/service/project-report/project-report.d.ts +0 -2
  200. package/dist-server/service/project-report/project-report.js +0 -6
  201. package/dist-server/service/project-report/project-report.js.map +1 -1
  202. package/dist-server/service/supervisor/index.d.ts +0 -1
  203. package/dist-server/service/supervisor/index.js +1 -2
  204. package/dist-server/service/supervisor/index.js.map +1 -1
  205. package/dist-server/tsconfig.tsbuildinfo +1 -1
  206. package/package.json +13 -13
  207. package/things-factory.config.js +3 -1
  208. package/dist-server/service/building-inspection/building-inspection-history.d.ts +0 -17
  209. package/dist-server/service/building-inspection/building-inspection-history.js +0 -86
  210. package/dist-server/service/building-inspection/building-inspection-history.js.map +0 -1
  211. package/dist-server/service/building-inspection/event-subscriber.js.map +0 -1
  212. package/dist-server/service/checklist/checklist-history.d.ts +0 -24
  213. package/dist-server/service/checklist/checklist-history.js +0 -120
  214. package/dist-server/service/checklist/checklist-history.js.map +0 -1
  215. package/dist-server/service/checklist-item-comment/event-subscriber.d.ts +0 -7
  216. package/dist-server/service/checklist-item-comment/event-subscriber.js +0 -21
  217. package/dist-server/service/checklist-item-comment/event-subscriber.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grid-inspection-create-popup.js","sourceRoot":"","sources":["../../../../client/pages/building-inspection-grid/component/grid-inspection-create-popup.ts"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,iCAAiC,CAAA;AAExC,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAA;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AACxE,OAAO,EA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Ac;yEAAA;AACrC;IAAxB,KAAK,CAAC,gBAAgB,CAAC;8BAAiB,WAAW;gEAAA;AArKhD,yBAAyB;IAD9B,aAAa,CAAC,8BAA8B,CAAC;GACxC,yBAAyB,CA4qB9B","sourcesContent":["import '@material/web/icon/icon.js'\nimport '@operato/data-grist/ox-grist.js'\n\nimport gql from 'graphql-tag'\nimport { css, html, LitElement } from 'lit'\nimport { customElement, property, query, state } from 'lit/decorators.js'\nimport { DataGrist } from '@operato/data-grist/ox-grist.js'\nimport { client } from '@operato/graphql'\nimport { ButtonContainerStyles, ScrollbarStyles } from '@operato/styles'\nimport { notify } from '@operato/layout'\nimport { BuildingInspectionStatus, CHECKLIST_MAIN_TYPE_LIST } from '../../building-inspection/building-inspection-list'\nimport { ChecklistMode, ProjectType } from '../../checklist/checklist-view'\n\n@customElement('grid-inspection-create-popup')\nclass GridInspectionCreatePopup extends LitElement {\n static styles = [\n ButtonContainerStyles,\n ScrollbarStyles,\n css`\n :host {\n display: flex;\n flex-direction: column;\n padding: 15px 20px;\n\n background-color: var(--md-sys-color-surface);\n }\n\n md-filled-select {\n width: auto;\n min-width: 150px;\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 --md-filled-select-text-field-input-text-weight: bold;\n --md-filled-select-text-field-input-text-line-height: 6px;\n }\n md-filled-select[level] {\n min-width: 110px;\n margin-left: 20px;\n }\n\n checklist-view {\n pointer-events: none;\n transform-origin: top left;\n }\n\n div[body] {\n height: 100%;\n overflow-y: auto;\n\n div[tab-container][inactive] {\n display: none !important;\n }\n\n div[edit] {\n width: 100%;\n\n div[detail] {\n margin-bottom: 30px;\n }\n\n h3 {\n position: relative;\n color: #0595e5;\n font-size: 17px;\n font-weight: 700;\n background-color: var(--md-sys-color-surface);\n margin-top: 0;\n margin-bottom: 5px;\n }\n\n div[data-row] {\n display: grid;\n grid-template-columns: 100px 1fr 0.3fr 100px 1fr;\n gap: 15px;\n margin-bottom: 11px;\n\n & > label {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n font-size: 15px;\n }\n\n div[inspection-parts] {\n display: block;\n margin-top: 7px;\n\n & > span {\n display: inline-block;\n margin-right: 5px;\n margin-bottom: 5px;\n\n & > md-checkbox {\n margin-top: 2px;\n }\n }\n }\n }\n }\n\n div[preview] {\n display: flex;\n overflow-y: auto;\n overflow-x: hidden;\n }\n }\n\n div[tabs] {\n display: flex;\n\n button {\n background-color: #fff;\n padding: 6px 14px;\n color: #999;\n border: solid 1px #999;\n border-top: none;\n border-radius: 0px 0px 8px 8px;\n margin-right: -2px;\n cursor: pointer;\n\n &[active] {\n color: var(--button-color, var(--md-sys-color-on-secondary-container));\n font-weight: 600;\n }\n }\n }\n\n div[button-container] {\n display: flex;\n justify-content: flex-end;\n gap: 10px;\n\n md-elevated-button[blue] {\n --md-elevated-button-container-color: #0595e5;\n\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\n @property({ type: Object }) gristConfig: any\n @property({ type: Object }) checklistDetailTypes: any\n @property({ type: String }) projectId: string = ''\n @property({ type: String }) checklistTemplateId: string = ''\n @property({ type: String }) selectedBuildingId: string = ''\n @property({ type: String }) selectedBuildingLevelId: string = ''\n @property({ type: String }) cell: string = ''\n\n @state() buildings: any = []\n @state() selectedBuilding: any = {}\n @state() selectedLevel: any = {}\n\n @state() constructionTypes: any = []\n @state() selectedConstructionType: any = {}\n @state() selectedConstructionDetailType: any = {}\n\n @state() managers: any = []\n @state() selectedManager: any = {}\n\n @state() checklistTemplates: any = []\n @state() checklist: any = {}\n\n @state() activeTab: 'edit' | 'preview' = 'edit'\n\n @query('md-filled-select[checklistTemplate]') htmlSelectChecklistTemplate\n @query('md-filled-select[constructionType]') htmlSelectConstructionType\n @query('md-filled-select[constructionDetailType]') htmlSelectConstructionDetailType\n @query('ox-grist') grist!: DataGrist\n\n @query('div[preview]') checklistViewContainer!: HTMLDivElement\n @query('checklist-view') checklistView!: HTMLElement\n\n render() {\n return html`\n <div body>\n <div tab-container ?inactive=${this.activeTab !== 'edit'} edit>\n <div detail>\n <h3>세부 정보</h3>\n\n <div data-row>\n <label>공종</label>\n <md-filled-select constructionType @change=${this._onSelectConstructionType}>\n ${this.constructionTypes?.map(constructionType => {\n const selected = constructionType.id === this.selectedConstructionType?.id\n return html`<md-select-option ?selected=${selected} .value=${constructionType.id}>\n <div slot=\"headline\">${constructionType.name}</div>\n </md-select-option>`\n })}\n </md-filled-select>\n\n <div partition></div>\n\n <label>세부 공종</label>\n <md-filled-select constructionDetailType @change=${this._onSelectConstructionDetailType}>\n ${this.selectedConstructionType?.constructionDetailTypes?.map(constructionDetailType => {\n const selected = constructionDetailType.id === this.selectedConstructionDetailType.id\n return html`<md-select-option ?selected=${selected} .value=${constructionDetailType.id}>\n <div slot=\"headline\">${constructionDetailType.name}</div>\n </md-select-option>`\n })}\n </md-filled-select>\n </div>\n\n <div data-row>\n <label>동</label>\n <md-filled-text-field building name=\"buildingName\" type=\"text\" .value=${this.selectedBuilding?.name || ''} disabled>\n </md-filled-text-field>\n\n <div partition></div>\n\n <label>층</label>\n <md-filled-text-field\n level\n name=\"buildingLevelName\"\n type=\"text\"\n .value=${this.selectedLevel?.floorDisplayName || ''}\n disabled\n >\n </md-filled-text-field>\n </div>\n </div>\n\n <div checklist>\n <h3>체크리스트</h3>\n\n <div data-row>\n <label>이름</label>\n <md-filled-text-field\n name=\"checklistName\"\n type=\"text\"\n .value=${this.checklist?.name || ''}\n @input=${this._onInputChange}\n >\n </md-filled-text-field>\n\n <div partition></div>\n\n <label>템플릿</label>\n <md-filled-select checklistTemplate @change=${this._onSelectChecklistTemplate}>\n <md-select-option></md-select-option>\n ${this.checklistTemplates?.map((checklistTemplate, idx) => {\n return html` <md-select-option .value=${checklistTemplate.id}>\n <div slot=\"headline\">${checklistTemplate.name}</div>\n </md-select-option>`\n })}\n </md-filled-select>\n </div>\n </div>\n\n <div manager>\n <h3>담당자</h3>\n\n <div data-row>\n <label>담당자</label>\n <md-filled-select manager @change=${this._onSelectManager}>\n <md-select-option></md-select-option>\n ${this.managers?.map((manager, idx) => {\n return html` <md-select-option .value=${manager.userId}>\n <div slot=\"headline\">${manager.name}</div>\n </md-select-option>`\n })}\n </md-filled-select>\n </div>\n </div>\n\n <ox-grist\n .mode=${'GRID'}\n .config=${this.gristConfig}\n .fetchHandler=${this.fetchHandler.bind(this)}\n @field-change=${this.onChangeGird}\n >\n </ox-grist>\n </div>\n\n <div tab-container ?inactive=${this.activeTab !== 'preview'} preview>\n <checklist-view\n .mode=${ChecklistMode.VIEWER}\n .checklist=${this.checklist}\n .manager=${this.selectedManager || {}}\n .projectType=${ProjectType.DSSP}\n ></checklist-view>\n </div>\n </div>\n\n <div tabs>\n <button ?active=${this.activeTab === 'edit'} @click=${() => (this.activeTab = 'edit')}>검측 요청 정보</button>\n <button ?active=${this.activeTab === 'preview'} @click=${() => (this.activeTab = 'preview')}>미리보기</button>\n </div>\n\n <div button-container>\n <md-elevated-button blue @click=${this._createInspection}>\n <md-icon slot=\"icon\">task</md-icon>검측 요청서 등록\n </md-elevated-button>\n <md-elevated-button @click=${this._close}> <md-icon slot=\"icon\">cancel</md-icon>취소</md-elevated-button>\n </div>\n `\n }\n\n updated() {\n const ratio = Math.round((this.checklistViewContainer?.offsetWidth / this.checklistView?.offsetWidth) * 100) / 100 || 1\n this.checklistView.style.transform = `scale(${ratio})`\n }\n\n async firstUpdated() {\n const response = await client.query({\n query: gql`\n query Project($id: String!) {\n project(id: $id) {\n id\n name\n documentNaming\n buildingComplex {\n id\n buildings {\n id\n name\n }\n }\n }\n\n constructionTypes {\n items {\n name\n id\n }\n }\n\n checklistTemplates {\n items {\n id\n name\n }\n }\n\n checklistTypes {\n items {\n id\n mainType\n detailType\n }\n }\n\n managers {\n id\n phone\n position\n userId\n name\n }\n }\n `,\n variables: {\n id: this.projectId\n }\n })\n\n if (response.errors) return\n\n const project = response.data?.project\n const checklistTemplates = response.data?.checklistTemplates?.items || []\n const constructionTypes = response.data?.constructionTypes?.items || []\n\n this.managers = response.data?.managers\n this.checklistDetailTypes = response.data.checklistTypes?.items?.map(v => {\n return {\n display: v.detailType,\n value: v.id,\n mainType: v.mainType\n }\n })\n\n this.constructionTypes = [...constructionTypes]\n this.checklistTemplates = [...checklistTemplates]\n this.buildings = [...(project?.buildingComplex?.buildings || [])]\n\n // selectedBuildingId가 있으면 해당 빌딩 선택, 없으면 첫번째 빌딩 선택\n this.selectedBuilding = this.buildings.find(building => building.id == this.selectedBuildingId)\n this.selectedBuilding = await this._getBuilding(this.selectedBuilding.id)\n this.selectedConstructionType = constructionTypes?.[0]\n\n // selectedBuildingLevelId가 있으면 선택된 층, 없으면 첫번째 층 선택\n this.selectedLevel = this.selectedBuilding?.buildingLevels?.find(level => level.id == this.selectedBuildingLevelId)\n\n // 세부 공종 리스트 가져오기\n this.selectedConstructionType = await this._getConstructionType(this.selectedConstructionType.id)\n this.selectedConstructionDetailType = this.selectedConstructionType?.constructionDetailTypes?.[0]\n this.selectedConstructionType = await { ...this.selectedConstructionType }\n\n // 기본 값 셋팅 select\n await this.htmlSelectChecklistTemplate.selectIndex(0)\n await this.htmlSelectConstructionDetailType.selectIndex(0)\n\n this.checklist = {\n constructionType: this.selectedConstructionType?.name,\n constructionDetailType: this.selectedConstructionDetailType?.name,\n location: `${this.selectedBuilding?.name || ''} ${this.selectedLevel.floorDisplayName || ''}층`,\n documentNo: `${project.documentNaming} 검측 제01-00000호`,\n buildingInspection: {\n status: BuildingInspectionStatus.WAIT\n }\n }\n\n // 그리드 셋팅\n this.setGristConfig()\n }\n\n requestRefresh(buildingInspectionId: string = '') {\n this.dispatchEvent(new CustomEvent('requestRefresh', { detail: { buildingInspectionId } }))\n }\n\n private _close() {\n history.back()\n }\n\n setGristConfig() {\n this.gristConfig = {\n columns: [\n { type: 'gutter', gutterName: 'row-selector', multiple: true },\n {\n type: 'gutter',\n gutterName: 'button',\n icon: 'arrow_upward',\n handlers: {\n click: 'move-up'\n }\n },\n {\n type: 'gutter',\n gutterName: 'button',\n icon: 'arrow_downward',\n handlers: {\n click: 'move-down'\n }\n },\n {\n type: 'select',\n name: 'mainType',\n header: '구분',\n record: {\n editable: true,\n options: [{ display: '', value: '' }].concat(\n Object.keys(CHECKLIST_MAIN_TYPE_LIST).map(key => ({ display: CHECKLIST_MAIN_TYPE_LIST[key], value: key }))\n )\n },\n width: 100\n },\n {\n type: 'select',\n name: 'detailType',\n header: '상세 구분',\n record: {\n editable: true,\n options: (columns, data, column) => [\n { display: '', value: '' },\n ...this.checklistDetailTypes.filter(v => v.mainType == column.mainType)\n ]\n },\n width: 200\n },\n {\n type: 'string',\n name: 'name',\n header: '검사 항목',\n record: {\n editable: true\n },\n width: 200\n },\n {\n type: 'string',\n name: 'inspctionCriteria',\n header: '검사 기준',\n record: {\n editable: true\n },\n width: 200\n }\n ],\n pagination: {\n infinite: true\n },\n sorters: [{ name: 'mainType' }, { name: 'sequence' }]\n }\n }\n\n async fetchHandler() {\n if (!this.checklistTemplateId) return []\n\n const response = await client.query({\n query: gql`\n query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {\n checklistTemplateItems(filters: $filters, pagination: $pagination, sortings: $sortings) {\n items {\n id\n sequence\n name\n inspctionCriteria\n mainType\n detailType\n }\n }\n }\n `,\n variables: {\n filters: {\n name: 'checklistTemplateId',\n value: this.checklistTemplateId,\n operator: 'eq'\n },\n sortings: [{ name: 'mainType' }, { name: 'sequence' }]\n }\n })\n\n // 체크리스트 아이템 데이터 갱신\n this.onChangeGird()\n\n return {\n records: response.data.checklistTemplateItems.items || []\n }\n }\n\n async _getBuilding(buildingId: string = '') {\n const response = await client.query({\n query: gql`\n query Building($id: String!) {\n building(id: $id) {\n id\n name\n buildingLevels {\n id\n floor\n floorDisplayName\n mainDrawing {\n id\n name\n fullpath\n }\n mainDrawingImage\n }\n }\n }\n `,\n variables: {\n id: buildingId\n }\n })\n\n if (response.errors) return\n\n return response.data?.building || {}\n }\n\n private _onSelectChecklistTemplate(e) {\n const checklistTemplateId = e.target.value\n\n // 체크 리스트 이름 셋팅\n this.checklist = { ...this.checklist, name: e.target.displayText }\n\n // 그리드 아이템 셋팅\n if (checklistTemplateId) {\n this.checklistTemplateId = checklistTemplateId\n this.grist.fetch()\n }\n }\n\n private _onSelectManager(e) {\n const managerId = e.target.value\n this.selectedManager = this.managers.find(manager => manager.userId == managerId)\n }\n\n async _createInspection() {\n let patch: any = {}\n\n patch.buildingLevelId = this.selectedLevel.id\n patch.managerId = this.selectedManager.userId\n patch.checklist = {\n name: this.checklist.name,\n constructionType: this.htmlSelectConstructionType.displayText,\n constructionDetailType: this.htmlSelectConstructionDetailType.displayText,\n location: `${this.selectedBuilding.name} ${this.selectedLevel.floorDisplayName}층`,\n inspectionParts: this.checklist.inspectionParts\n }\n patch.checklistItem = this.checklist.checklistItems?.map(item => {\n return {\n name: item.name,\n mainType: item.mainType,\n detailType: item.detailType,\n inspctionCriteria: item.inspctionCriteria\n }\n })\n\n const [cellX, cellY] = this.cell.split(',')\n patch.cellX = Number(cellX)\n patch.cellY = Number(cellY)\n\n const response = await client.mutate({\n mutation: gql`\n mutation CreateBuildingInspection($patch: NewBuildingInspection!) {\n createBuildingInspection(patch: $patch) {\n id\n }\n }\n `,\n variables: {\n patch\n }\n })\n\n if (!response.errors) {\n notify({ message: '검측 요청서를 등록하였습니다.' })\n this.requestRefresh(response.data.createBuildingInspection.id)\n this._close()\n } else {\n notify({ message: response.errors?.[0]?.message || '검측 요청서 등록에 실패하였습니다.', level: 'error' })\n }\n }\n\n // Input 요소의 값이 변경될 때 호출되는 콜백 함수\n private _onInputChange(event: InputEvent) {\n const target = event.target as HTMLInputElement\n this[target.name] = target.value\n this.checklist = { ...this.checklist, name: target.value }\n }\n\n // 체크리스트 아이템 데이터 갱신\n private onChangeGird() {\n const checklistDetailTypes = Object.fromEntries(this.checklistDetailTypes.map(item => [item.value, item.display]))\n const grist = this.grist\n\n // grist field-change가 오는 시점이 데이터 변경 전이라 setTimeout으로 변경\n setTimeout(() => {\n this.checklist.checklistItems = grist.dirtyData.records.map((row, idx) => {\n return {\n ...row,\n detailType: checklistDetailTypes[row.detailType],\n sequence: idx\n }\n })\n this.checklist = { ...this.checklist }\n }, 100)\n }\n\n private async _onSelectConstructionType(e) {\n const constructionTypeId = e.target.value\n this.selectedConstructionType = await this._getConstructionType(constructionTypeId)\n this.selectedConstructionDetailType = await { ...this.selectedConstructionType?.constructionDetailTypes?.[0] }\n this.checklist = {\n ...this.checklist,\n constructionType: this.selectedConstructionType?.name,\n constructionDetailType: this.selectedConstructionDetailType?.name\n }\n\n await this.htmlSelectConstructionDetailType.selectIndex(0)\n }\n\n private _onSelectConstructionDetailType(e) {\n const constructionDetailTypeId = e.target.value\n this.selectedConstructionDetailType = {\n ...(this.selectedConstructionType?.constructionDetailTypes?.find(v => v.id == constructionDetailTypeId) || {})\n }\n this.checklist = {\n ...this.checklist,\n constructionType: this.selectedConstructionType?.name,\n constructionDetailType: this.selectedConstructionDetailType?.name\n }\n }\n\n async _getConstructionType(id: string = '') {\n const response = await client.query({\n query: gql`\n query ConstructionType($id: String!) {\n constructionType(id: $id) {\n id\n name\n description\n constructionDetailTypes {\n id\n name\n }\n }\n }\n `,\n variables: { id }\n })\n\n if (response.errors) return\n\n return response.data?.constructionType || {}\n }\n}\n"]}
@@ -0,0 +1,19 @@
1
+ import { LitElement } from 'lit';
2
+ export declare class GridInspectionListLayer extends LitElement {
3
+ static styles: import("lit").CSSResult[];
4
+ items: any[];
5
+ direction: 'down' | 'up';
6
+ anchorEl?: HTMLElement;
7
+ containerEl?: HTMLElement;
8
+ left: number;
9
+ top: number;
10
+ render(): import("lit-html").TemplateResult<1>;
11
+ private _select;
12
+ connectedCallback(): void;
13
+ disconnectedCallback(): void;
14
+ private _onWindowChanged;
15
+ private _onGlobalMouseDown;
16
+ private _onKeyDown;
17
+ private _requestClose;
18
+ private _reposition;
19
+ }
@@ -0,0 +1,205 @@
1
+ import { __decorate, __metadata } from "tslib";
2
+ import { css, html, LitElement } from 'lit';
3
+ import { customElement, property } from 'lit/decorators.js';
4
+ import { BUILDING_INSPECTION_STATUS_DISPLAY } from '../../building-inspection/building-inspection-list';
5
+ let GridInspectionListLayer = class GridInspectionListLayer extends LitElement {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.items = [];
9
+ this.direction = 'down';
10
+ // 내부 계산값
11
+ this.left = 0;
12
+ this.top = 0;
13
+ this._onWindowChanged = () => {
14
+ this._reposition();
15
+ };
16
+ this._onGlobalMouseDown = (ev) => {
17
+ const path = (ev.composedPath && ev.composedPath()) || [];
18
+ const containsSelf = path.includes(this);
19
+ if (!containsSelf) {
20
+ this._requestClose();
21
+ }
22
+ };
23
+ this._onKeyDown = (ev) => {
24
+ if (ev.key === 'Escape') {
25
+ this._requestClose();
26
+ }
27
+ };
28
+ }
29
+ render() {
30
+ return html `
31
+ <div container>
32
+ ${this.items.map(item => {
33
+ var _a, _b;
34
+ const status = BUILDING_INSPECTION_STATUS_DISPLAY[item.status];
35
+ const title = `${((_a = item === null || item === void 0 ? void 0 : item.checklist) === null || _a === void 0 ? void 0 : _a.constructionType) || ''} / ${((_b = item === null || item === void 0 ? void 0 : item.checklist) === null || _b === void 0 ? void 0 : _b.constructionDetailType) || ''}`;
36
+ return html `<div item @click=${() => this._select(item.id)}>
37
+ <span status class=${item.status.toLowerCase()}>${status}</span>
38
+ <span title=${title}>${title}</span>
39
+ </div>`;
40
+ })}
41
+ </div>
42
+ `;
43
+ }
44
+ _select(id) {
45
+ this.dispatchEvent(new CustomEvent('select', { detail: { id }, bubbles: true, composed: true }));
46
+ }
47
+ connectedCallback() {
48
+ super.connectedCallback();
49
+ this._reposition();
50
+ window.addEventListener('mousedown', this._onGlobalMouseDown, { capture: true });
51
+ window.addEventListener('keydown', this._onKeyDown, { capture: true });
52
+ window.addEventListener('resize', this._onWindowChanged);
53
+ window.addEventListener('scroll', this._onWindowChanged, true);
54
+ }
55
+ disconnectedCallback() {
56
+ window.removeEventListener('mousedown', this._onGlobalMouseDown, { capture: true });
57
+ window.removeEventListener('keydown', this._onKeyDown, { capture: true });
58
+ window.removeEventListener('resize', this._onWindowChanged);
59
+ window.removeEventListener('scroll', this._onWindowChanged, true);
60
+ super.disconnectedCallback();
61
+ }
62
+ _requestClose() {
63
+ this.dispatchEvent(new CustomEvent('close', { bubbles: true, composed: true }));
64
+ }
65
+ _reposition() {
66
+ const anchor = this.anchorEl;
67
+ const container = this.containerEl;
68
+ if (!anchor || !container)
69
+ return;
70
+ const anchorRect = anchor.getBoundingClientRect();
71
+ const containerRect = container.getBoundingClientRect();
72
+ const estimatedItemHeight = 40;
73
+ const padding = 8;
74
+ const estimatedHeight = Math.min(this.items.length, 10) * estimatedItemHeight + padding * 2;
75
+ let direction = 'down';
76
+ let top = anchorRect.bottom - containerRect.top + 4;
77
+ let left = anchorRect.left - containerRect.left + 4;
78
+ if (anchorRect.bottom + estimatedHeight > window.innerHeight) {
79
+ direction = 'up';
80
+ top = anchorRect.top - containerRect.top - estimatedHeight - 4;
81
+ }
82
+ this.direction = direction;
83
+ this.left = left;
84
+ this.top = top;
85
+ this.style.left = `${left}px`;
86
+ this.style.top = `${top}px`;
87
+ }
88
+ };
89
+ GridInspectionListLayer.styles = [
90
+ css `
91
+ :host {
92
+ display: block;
93
+ position: absolute;
94
+ background: #fff;
95
+ border: 1px solid #cccccc80;
96
+ border-radius: 6px;
97
+ box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
98
+ min-width: 260px;
99
+ max-width: 360px;
100
+ max-height: 420px; /* 약 10개 기준 */
101
+ overflow-y: auto;
102
+ z-index: 10;
103
+ }
104
+
105
+ div[container] {
106
+ display: flex;
107
+ flex-direction: column;
108
+ padding: 8px;
109
+ gap: 6px;
110
+ }
111
+
112
+ div[item] {
113
+ display: grid;
114
+ grid-template-columns: 70px 1fr;
115
+ gap: 10px;
116
+ align-items: center;
117
+ padding: 8px 10px;
118
+ border-radius: 6px;
119
+ cursor: pointer;
120
+ border: 1px solid transparent;
121
+ }
122
+ div[item]:hover {
123
+ background: #f5fbff;
124
+ border-color: #cfeeff;
125
+ }
126
+
127
+ span[status] {
128
+ font-weight: 700;
129
+ font-size: 12px;
130
+ color: #ffffff;
131
+ background: #eef3f8;
132
+ border-radius: 4px;
133
+ padding: 4px 6px;
134
+ text-align: center;
135
+ }
136
+ span[status].wait,
137
+ span[status].overall_wait,
138
+ span[status].request,
139
+ span[status].overall_request {
140
+ background: #4e5055;
141
+ }
142
+ span[status].pass {
143
+ background: #4bbb4a;
144
+ }
145
+ span[status].fail {
146
+ background: #ff4444;
147
+ }
148
+
149
+ span[title] {
150
+ font-size: 13px;
151
+ color: #4e5055;
152
+ white-space: nowrap;
153
+ }
154
+
155
+ :host([direction='up'])::after,
156
+ :host([direction='down'])::after {
157
+ content: '';
158
+ position: absolute;
159
+ left: 12px;
160
+ width: 10px;
161
+ height: 10px;
162
+ background: #fff;
163
+ border-left: 1px solid #cccccc80;
164
+ border-top: 1px solid #cccccc80;
165
+ transform: rotate(45deg);
166
+ }
167
+ :host([direction='down'])::after {
168
+ top: -6px;
169
+ }
170
+ :host([direction='up'])::after {
171
+ bottom: -6px;
172
+ }
173
+ `
174
+ ];
175
+ __decorate([
176
+ property({ type: Array }),
177
+ __metadata("design:type", Array)
178
+ ], GridInspectionListLayer.prototype, "items", void 0);
179
+ __decorate([
180
+ property({ type: String, reflect: true }),
181
+ __metadata("design:type", String)
182
+ ], GridInspectionListLayer.prototype, "direction", void 0);
183
+ __decorate([
184
+ property({ attribute: false }),
185
+ __metadata("design:type", HTMLElement)
186
+ ], GridInspectionListLayer.prototype, "anchorEl", void 0);
187
+ __decorate([
188
+ property({ attribute: false }),
189
+ __metadata("design:type", HTMLElement
190
+ // 내부 계산값
191
+ )
192
+ ], GridInspectionListLayer.prototype, "containerEl", void 0);
193
+ __decorate([
194
+ property({ type: Number }),
195
+ __metadata("design:type", Number)
196
+ ], GridInspectionListLayer.prototype, "left", void 0);
197
+ __decorate([
198
+ property({ type: Number }),
199
+ __metadata("design:type", Number)
200
+ ], GridInspectionListLayer.prototype, "top", void 0);
201
+ GridInspectionListLayer = __decorate([
202
+ customElement('grid-inspection-list-layer')
203
+ ], GridInspectionListLayer);
204
+ export { GridInspectionListLayer };
205
+ //# sourceMappingURL=grid-inspection-list-layer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grid-inspection-list-layer.js","sourceRoot":"","sources":["../../../../client/pages/building-inspection-grid/component/grid-inspection-list-layer.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,EAAE,kCAAkC,EAAE,MAAM,oDAAoD,CAAA;AAGhG,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,UAAU;IAAhD;;QAwFsB,UAAK,GAAU,EAAE,CAAA;QACD,cAAS,GAAkB,MAAM,CAAA;QAM5E,SAAS;QACmB,SAAI,GAAW,CAAC,CAAA;QAChB,QAAG,GAAW,CAAC,CAAA;QAsCnC,qBAAgB,GAAG,GAAG,EAAE;YAC9B,IAAI,CAAC,WAAW,EAAE,CAAA;QACpB,CAAC,CAAA;QAEO,uBAAkB,GAAG,CAAC,EAAc,EAAE,EAAE;YAC9C,MAAM,IAAI,GAAG,CAAC,EAAE,CAAC,YAAY,IAAI,EAAE,CAAC,YAAY,EAAE,CAAC,IAAI,EAAE,CAAA;YACzD,MAAM,YAAY,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;Y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AAE,OAAO,EAAE,IAAI,EAAE,CAAC;;0DAAkC;AAG5C;IAA/B,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;8BAAY,WAAW;yDAAA;AACtB;IAA/B,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;8BAAe,WAAW;IAEzD,SAAS;;4DAFgD;AAG7B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qDAAiB;AAChB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDAAgB;AAjGhC,uBAAuB;IADnC,aAAa,CAAC,4BAA4B,CAAC;GAC/B,uBAAuB,CAyLnC","sourcesContent":["import { css, html, LitElement } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\nimport { BUILDING_INSPECTION_STATUS_DISPLAY } from '../../building-inspection/building-inspection-list'\n\n@customElement('grid-inspection-list-layer')\nexport class GridInspectionListLayer extends LitElement {\n static styles = [\n css`\n :host {\n display: block;\n position: absolute;\n background: #fff;\n border: 1px solid #cccccc80;\n border-radius: 6px;\n box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);\n min-width: 260px;\n max-width: 360px;\n max-height: 420px; /* 약 10개 기준 */\n overflow-y: auto;\n z-index: 10;\n }\n\n div[container] {\n display: flex;\n flex-direction: column;\n padding: 8px;\n gap: 6px;\n }\n\n div[item] {\n display: grid;\n grid-template-columns: 70px 1fr;\n gap: 10px;\n align-items: center;\n padding: 8px 10px;\n border-radius: 6px;\n cursor: pointer;\n border: 1px solid transparent;\n }\n div[item]:hover {\n background: #f5fbff;\n border-color: #cfeeff;\n }\n\n span[status] {\n font-weight: 700;\n font-size: 12px;\n color: #ffffff;\n background: #eef3f8;\n border-radius: 4px;\n padding: 4px 6px;\n text-align: center;\n }\n span[status].wait,\n span[status].overall_wait,\n span[status].request,\n span[status].overall_request {\n background: #4e5055;\n }\n span[status].pass {\n background: #4bbb4a;\n }\n span[status].fail {\n background: #ff4444;\n }\n\n span[title] {\n font-size: 13px;\n color: #4e5055;\n white-space: nowrap;\n }\n\n :host([direction='up'])::after,\n :host([direction='down'])::after {\n content: '';\n position: absolute;\n left: 12px;\n width: 10px;\n height: 10px;\n background: #fff;\n border-left: 1px solid #cccccc80;\n border-top: 1px solid #cccccc80;\n transform: rotate(45deg);\n }\n :host([direction='down'])::after {\n top: -6px;\n }\n :host([direction='up'])::after {\n bottom: -6px;\n }\n `\n ]\n\n @property({ type: Array }) items: any[] = []\n @property({ type: String, reflect: true }) direction: 'down' | 'up' = 'down'\n\n // 포지셔닝 입력\n @property({ attribute: false }) anchorEl?: HTMLElement\n @property({ attribute: false }) containerEl?: HTMLElement\n\n // 내부 계산값\n @property({ type: Number }) left: number = 0\n @property({ type: Number }) top: number = 0\n\n render() {\n return html`\n <div container>\n ${this.items.map(item => {\n const status = BUILDING_INSPECTION_STATUS_DISPLAY[item.status]\n const title = `${item?.checklist?.constructionType || ''} / ${item?.checklist?.constructionDetailType || ''}`\n return html`<div item @click=${() => this._select(item.id)}>\n <span status class=${item.status.toLowerCase()}>${status}</span>\n <span title=${title}>${title}</span>\n </div>`\n })}\n </div>\n `\n }\n\n private _select(id: string) {\n this.dispatchEvent(new CustomEvent('select', { detail: { id }, bubbles: true, composed: true }))\n }\n\n connectedCallback(): void {\n super.connectedCallback()\n this._reposition()\n window.addEventListener('mousedown', this._onGlobalMouseDown, { capture: true })\n window.addEventListener('keydown', this._onKeyDown, { capture: true })\n window.addEventListener('resize', this._onWindowChanged)\n window.addEventListener('scroll', this._onWindowChanged, true)\n }\n\n disconnectedCallback(): void {\n window.removeEventListener('mousedown', this._onGlobalMouseDown as any, { capture: true } as any)\n window.removeEventListener('keydown', this._onKeyDown as any, { capture: true } as any)\n window.removeEventListener('resize', this._onWindowChanged as any)\n window.removeEventListener('scroll', this._onWindowChanged as any, true)\n super.disconnectedCallback()\n }\n\n private _onWindowChanged = () => {\n this._reposition()\n }\n\n private _onGlobalMouseDown = (ev: MouseEvent) => {\n const path = (ev.composedPath && ev.composedPath()) || []\n const containsSelf = path.includes(this)\n if (!containsSelf) {\n this._requestClose()\n }\n }\n\n private _onKeyDown = (ev: KeyboardEvent) => {\n if (ev.key === 'Escape') {\n this._requestClose()\n }\n }\n\n private _requestClose() {\n this.dispatchEvent(new CustomEvent('close', { bubbles: true, composed: true }))\n }\n\n private _reposition() {\n const anchor = this.anchorEl\n const container = this.containerEl\n if (!anchor || !container) return\n\n const anchorRect = anchor.getBoundingClientRect()\n const containerRect = container.getBoundingClientRect()\n\n const estimatedItemHeight = 40\n const padding = 8\n const estimatedHeight = Math.min(this.items.length, 10) * estimatedItemHeight + padding * 2\n\n let direction: 'down' | 'up' = 'down'\n let top = anchorRect.bottom - containerRect.top + 4\n let left = anchorRect.left - containerRect.left + 4\n\n if (anchorRect.bottom + estimatedHeight > window.innerHeight) {\n direction = 'up'\n top = anchorRect.top - containerRect.top - estimatedHeight - 4\n }\n\n this.direction = direction\n this.left = left\n this.top = top\n\n this.style.left = `${left}px`\n this.style.top = `${top}px`\n }\n}\n"]}
@@ -0,0 +1 @@
1
+ import '@material/web/icon/icon.js';
@@ -0,0 +1,304 @@
1
+ import { __decorate, __metadata } from "tslib";
2
+ import '@material/web/icon/icon.js';
3
+ import gql from 'graphql-tag';
4
+ import { client } from '@operato/graphql';
5
+ import { css, html, LitElement } from 'lit';
6
+ import { customElement, property, query, state } from 'lit/decorators.js';
7
+ import { ButtonContainerStyles, ScrollbarStyles } from '@operato/styles';
8
+ import { notify } from '@operato/layout';
9
+ import { store, User } from '@operato/shell';
10
+ import { OxPrompt } from '@operato/popup/ox-prompt.js';
11
+ let NoticeCommentPopup = class NoticeCommentPopup extends LitElement {
12
+ constructor() {
13
+ super(...arguments);
14
+ this.buildingLevelId = '';
15
+ this.title = '';
16
+ this.item = { count: 0 };
17
+ this.noticeComments = [];
18
+ this.comment = '';
19
+ this.user = {};
20
+ }
21
+ render() {
22
+ return html `
23
+ <div body>
24
+ <h3>${this.title}</h3>
25
+
26
+ <div comments-container>
27
+ ${this.noticeComments.map(comment => {
28
+ return html `
29
+ <div comment-row>
30
+ <div creator-container>
31
+ <span creator><md-icon slot="icon">account_circle</md-icon> ${comment.creator.name}</span>
32
+ <span createdAt>
33
+ <md-icon slot="icon">schedule</md-icon> ${this._formatDate(comment.createdAt)}
34
+ ${comment.creator.email === this.user.email
35
+ ? html ` <md-icon delete slot="icon" @click=${() => this._deleteComment(comment.id)}>delete</md-icon>`
36
+ : ''}
37
+ </span>
38
+ </div>
39
+ <div comment>${comment.comment}</div>
40
+ </div>
41
+ `;
42
+ })}
43
+ </div>
44
+
45
+ <textarea .value=${this.comment || ''} @input=${this._onInputChange}></textarea>
46
+
47
+ <div button-container>
48
+ <md-elevated-button blue @click=${this._createComment}> <md-icon slot="icon">task</md-icon>저장 </md-elevated-button>
49
+ <md-elevated-button @click=${this._close}> <md-icon slot="icon">cancel</md-icon>취소 </md-elevated-button>
50
+ </div>
51
+ </div>
52
+ `;
53
+ }
54
+ async firstUpdated() {
55
+ var _a;
56
+ this.user = (_a = store.getState().auth) === null || _a === void 0 ? void 0 : _a.user;
57
+ this.comment = '';
58
+ await this._loadComments();
59
+ this._scrollBottom();
60
+ }
61
+ async _loadComments() {
62
+ const response = await client.query({
63
+ query: gql `
64
+ query NoticeComments($buildingLevelId: String!) {
65
+ noticeComments(buildingLevelId: $buildingLevelId) {
66
+ id
67
+ comment
68
+ creator {
69
+ id
70
+ email
71
+ name
72
+ }
73
+ createdAt
74
+ }
75
+ }
76
+ `,
77
+ variables: {
78
+ buildingLevelId: this.buildingLevelId
79
+ }
80
+ });
81
+ if (response.errors)
82
+ return;
83
+ const items = response.data.noticeComments;
84
+ this.noticeComments = [...items.reverse(), ...this.noticeComments];
85
+ }
86
+ async _createComment() {
87
+ var _a, _b;
88
+ if (!this.comment) {
89
+ notify({ message: '코멘트를 입력해주세요.', level: 'warn' });
90
+ return;
91
+ }
92
+ const response = await client.mutate({
93
+ mutation: gql `
94
+ mutation CreateNoticeComment($noticeComment: NewNoticeComment!) {
95
+ createNoticeComment(noticeComment: $noticeComment) {
96
+ id
97
+ comment
98
+ creator {
99
+ id
100
+ email
101
+ name
102
+ }
103
+ createdAt
104
+ }
105
+ }
106
+ `,
107
+ variables: {
108
+ noticeComment: {
109
+ comment: this.comment,
110
+ buildingLevelId: this.buildingLevelId
111
+ }
112
+ }
113
+ });
114
+ if (!response.errors) {
115
+ this.comment = '';
116
+ this.noticeComments = [...this.noticeComments, Object.assign({}, response.data.createNoticeComment)];
117
+ this._scrollBottom();
118
+ }
119
+ else {
120
+ notify({ message: ((_b = (_a = response.errors) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.message) || '코멘트 등록에 실패하였습니다.', level: 'error' });
121
+ }
122
+ this._dispatchEvent('create');
123
+ }
124
+ async _deleteComment(commentId) {
125
+ var _a, _b;
126
+ if (await OxPrompt.open({
127
+ title: '코멘트를 삭제',
128
+ text: '코멘트를 삭제 하시겠습니까?',
129
+ confirmButton: { text: '삭제' },
130
+ cancelButton: { text: '취소' }
131
+ })) {
132
+ const response = await client.mutate({
133
+ mutation: gql `
134
+ mutation DeleteNoticeComment($id: String!) {
135
+ deleteNoticeComment(id: $id)
136
+ }
137
+ `,
138
+ variables: {
139
+ id: commentId
140
+ }
141
+ });
142
+ if (!response.errors) {
143
+ this.noticeComments = [...this.noticeComments.filter(comment => comment.id != commentId)];
144
+ notify({ message: '코멘트를 삭제하였습니다.', level: 'info' });
145
+ }
146
+ else {
147
+ notify({ message: ((_b = (_a = response.errors) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.message) || '코멘트 삭제에 실패하였습니다.', level: 'error' });
148
+ }
149
+ this._dispatchEvent('delete');
150
+ }
151
+ }
152
+ _close() {
153
+ history.back();
154
+ }
155
+ // Input 요소의 값이 변경될 때 호출되는 콜백 함수
156
+ _onInputChange(event) {
157
+ const target = event.target;
158
+ this.comment = target.value;
159
+ }
160
+ _formatDate(date) {
161
+ const _date = new Date(date.toLocaleString('en-US', { timeZone: 'Asia/Seoul' }));
162
+ const year = _date.getFullYear();
163
+ const month = String(_date.getMonth() + 1).padStart(2, '0');
164
+ const day = String(_date.getDate()).padStart(2, '0');
165
+ const hours = String(_date.getHours()).padStart(2, '0');
166
+ const minutes = String(_date.getMinutes()).padStart(2, '0');
167
+ const seconds = String(_date.getSeconds()).padStart(2, '0');
168
+ return `${year}.${month}.${day} ${hours}:${minutes}:${seconds}`;
169
+ }
170
+ // 댓글 스크롤 맨 밑으로
171
+ async _scrollBottom() {
172
+ setTimeout(() => {
173
+ this.commentsContainer.scrollTop = this.commentsContainer.scrollHeight;
174
+ }, 100);
175
+ }
176
+ // 조치사항 변경 이벤트 디스패치
177
+ _dispatchEvent(type = 'create') {
178
+ this.dispatchEvent(new CustomEvent('change-comment', { detail: { buildingLevelId: this.buildingLevelId, type } }));
179
+ }
180
+ };
181
+ NoticeCommentPopup.styles = [
182
+ ButtonContainerStyles,
183
+ ScrollbarStyles,
184
+ css `
185
+ :host {
186
+ display: flex;
187
+ flex-direction: column;
188
+ padding: 15px 20px;
189
+ background-color: var(--md-sys-color-surface);
190
+ }
191
+
192
+ div[body] {
193
+ height: 100%;
194
+ display: flex;
195
+ flex-direction: column;
196
+ gap: 12px;
197
+ }
198
+
199
+ div[comments-container] {
200
+ overflow-y: auto;
201
+ gap: 10px;
202
+ display: flex;
203
+ flex-direction: column;
204
+ flex: 1;
205
+
206
+ div[comment-row] {
207
+ display: flex;
208
+ flex-direction: column;
209
+ padding-right: 10px;
210
+
211
+ div[creator-container] {
212
+ display: flex;
213
+ justify-content: space-between;
214
+
215
+ span[creator] {
216
+ font-weight: 600;
217
+ display: flex;
218
+ align-items: center;
219
+ gap: 3px;
220
+ }
221
+ span[createdAt] {
222
+ display: flex;
223
+ align-items: center;
224
+ gap: 3px;
225
+
226
+ md-icon[delete] {
227
+ cursor: pointer;
228
+ }
229
+ }
230
+ }
231
+
232
+ div[comment] {
233
+ margin-left: 20px;
234
+ }
235
+ }
236
+ }
237
+
238
+ h3 {
239
+ position: relative;
240
+ color: rgb(5, 149, 229);
241
+ font-size: 17px;
242
+ font-weight: 700;
243
+ background-color: var(--md-sys-color-surface);
244
+ margin-top: 0px;
245
+ margin-bottom: 5px;
246
+ }
247
+
248
+ textarea {
249
+ height: 75px;
250
+ border: 1px solid #ccc;
251
+ }
252
+
253
+ div[button-container] {
254
+ display: flex;
255
+ justify-content: flex-end;
256
+ gap: 10px;
257
+
258
+ md-elevated-button[blue] {
259
+ --md-elevated-button-container-color: #0595e5;
260
+
261
+ --md-elevated-button-label-text-color: #fff;
262
+ --md-elevated-button-hover-label-text-color: #fff;
263
+ --md-elevated-button-pressed-label-text-color: #fff;
264
+ --md-elevated-button-focus-label-text-color: #fff;
265
+ --md-elevated-button-icon-color: #fff;
266
+ --md-elevated-button-hover-icon-color: #fff;
267
+ --md-elevated-button-pressed-icon-color: #fff;
268
+ --md-elevated-button-focus-icon-color: #fff;
269
+ }
270
+ }
271
+ `
272
+ ];
273
+ __decorate([
274
+ property({ type: String }),
275
+ __metadata("design:type", String)
276
+ ], NoticeCommentPopup.prototype, "buildingLevelId", void 0);
277
+ __decorate([
278
+ property({ type: String }),
279
+ __metadata("design:type", String)
280
+ ], NoticeCommentPopup.prototype, "title", void 0);
281
+ __decorate([
282
+ state(),
283
+ __metadata("design:type", Object)
284
+ ], NoticeCommentPopup.prototype, "item", void 0);
285
+ __decorate([
286
+ state(),
287
+ __metadata("design:type", Object)
288
+ ], NoticeCommentPopup.prototype, "noticeComments", void 0);
289
+ __decorate([
290
+ state(),
291
+ __metadata("design:type", String)
292
+ ], NoticeCommentPopup.prototype, "comment", void 0);
293
+ __decorate([
294
+ state(),
295
+ __metadata("design:type", User)
296
+ ], NoticeCommentPopup.prototype, "user", void 0);
297
+ __decorate([
298
+ query('div[comments-container]'),
299
+ __metadata("design:type", HTMLDivElement)
300
+ ], NoticeCommentPopup.prototype, "commentsContainer", void 0);
301
+ NoticeCommentPopup = __decorate([
302
+ customElement('notice-comment-popup')
303
+ ], NoticeCommentPopup);
304
+ //# sourceMappingURL=notice-comment-popup.js.map