@trismegisto/angular 3.3.2 → 3.3.4

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 (558) hide show
  1. package/fesm2022/trismegisto-angular-access-control.mjs +823 -0
  2. package/fesm2022/trismegisto-angular-access-control.mjs.map +1 -0
  3. package/fesm2022/trismegisto-angular-account-avatar.mjs +54 -3
  4. package/fesm2022/trismegisto-angular-account-avatar.mjs.map +1 -1
  5. package/fesm2022/trismegisto-angular-account-closure.mjs +221 -0
  6. package/fesm2022/trismegisto-angular-account-closure.mjs.map +1 -0
  7. package/fesm2022/trismegisto-angular-account-forms.mjs +924 -0
  8. package/fesm2022/trismegisto-angular-account-forms.mjs.map +1 -0
  9. package/fesm2022/trismegisto-angular-account-switcher.mjs +202 -0
  10. package/fesm2022/trismegisto-angular-account-switcher.mjs.map +1 -0
  11. package/fesm2022/trismegisto-angular-address.mjs +631 -0
  12. package/fesm2022/trismegisto-angular-address.mjs.map +1 -0
  13. package/fesm2022/trismegisto-angular-alert-history.mjs +294 -0
  14. package/fesm2022/trismegisto-angular-alert-history.mjs.map +1 -0
  15. package/fesm2022/trismegisto-angular-alert-rule-editor.mjs +450 -0
  16. package/fesm2022/trismegisto-angular-alert-rule-editor.mjs.map +1 -0
  17. package/fesm2022/trismegisto-angular-anchor-nav.mjs +157 -0
  18. package/fesm2022/trismegisto-angular-anchor-nav.mjs.map +1 -0
  19. package/fesm2022/trismegisto-angular-announcer.mjs +79 -0
  20. package/fesm2022/trismegisto-angular-announcer.mjs.map +1 -0
  21. package/fesm2022/trismegisto-angular-api-exchange.mjs +202 -0
  22. package/fesm2022/trismegisto-angular-api-exchange.mjs.map +1 -0
  23. package/fesm2022/trismegisto-angular-appointment-details.mjs +254 -0
  24. package/fesm2022/trismegisto-angular-appointment-details.mjs.map +1 -0
  25. package/fesm2022/trismegisto-angular-approval.mjs +242 -0
  26. package/fesm2022/trismegisto-angular-approval.mjs.map +1 -0
  27. package/fesm2022/trismegisto-angular-assignee.mjs +271 -0
  28. package/fesm2022/trismegisto-angular-assignee.mjs.map +1 -0
  29. package/fesm2022/trismegisto-angular-attachment.mjs +1 -1
  30. package/fesm2022/trismegisto-angular-attachment.mjs.map +1 -1
  31. package/fesm2022/trismegisto-angular-availability-editor.mjs +187 -0
  32. package/fesm2022/trismegisto-angular-availability-editor.mjs.map +1 -0
  33. package/fesm2022/trismegisto-angular-avatar-group.mjs +1 -1
  34. package/fesm2022/trismegisto-angular-avatar-group.mjs.map +1 -1
  35. package/fesm2022/trismegisto-angular-backlog.mjs +244 -0
  36. package/fesm2022/trismegisto-angular-backlog.mjs.map +1 -0
  37. package/fesm2022/trismegisto-angular-billing.mjs +1007 -0
  38. package/fesm2022/trismegisto-angular-billing.mjs.map +1 -0
  39. package/fesm2022/trismegisto-angular-bottom-navigation.mjs +203 -0
  40. package/fesm2022/trismegisto-angular-bottom-navigation.mjs.map +1 -0
  41. package/fesm2022/trismegisto-angular-bottom-sheet.mjs +428 -0
  42. package/fesm2022/trismegisto-angular-bottom-sheet.mjs.map +1 -0
  43. package/fesm2022/trismegisto-angular-card-container.mjs +1 -1
  44. package/fesm2022/trismegisto-angular-card-container.mjs.map +1 -1
  45. package/fesm2022/trismegisto-angular-cart.mjs +677 -0
  46. package/fesm2022/trismegisto-angular-cart.mjs.map +1 -0
  47. package/fesm2022/trismegisto-angular-cascader.mjs +419 -0
  48. package/fesm2022/trismegisto-angular-cascader.mjs.map +1 -0
  49. package/fesm2022/trismegisto-angular-change-history.mjs +148 -0
  50. package/fesm2022/trismegisto-angular-change-history.mjs.map +1 -0
  51. package/fesm2022/trismegisto-angular-code-diff.mjs +2 -2
  52. package/fesm2022/trismegisto-angular-code-diff.mjs.map +1 -1
  53. package/fesm2022/trismegisto-angular-color-picker.mjs +145 -0
  54. package/fesm2022/trismegisto-angular-color-picker.mjs.map +1 -0
  55. package/fesm2022/trismegisto-angular-combobox-multi.mjs +6 -4
  56. package/fesm2022/trismegisto-angular-combobox-multi.mjs.map +1 -1
  57. package/fesm2022/trismegisto-angular-commerce-format.mjs +103 -0
  58. package/fesm2022/trismegisto-angular-commerce-format.mjs.map +1 -0
  59. package/fesm2022/trismegisto-angular-connection-wizard.mjs +159 -0
  60. package/fesm2022/trismegisto-angular-connection-wizard.mjs.map +1 -0
  61. package/fesm2022/trismegisto-angular-consent.mjs +382 -0
  62. package/fesm2022/trismegisto-angular-consent.mjs.map +1 -0
  63. package/fesm2022/trismegisto-angular-credentials-form.mjs +461 -0
  64. package/fesm2022/trismegisto-angular-credentials-form.mjs.map +1 -0
  65. package/fesm2022/trismegisto-angular-data-grid.mjs +690 -18
  66. package/fesm2022/trismegisto-angular-data-grid.mjs.map +1 -1
  67. package/fesm2022/trismegisto-angular-data-source-picker.mjs +115 -0
  68. package/fesm2022/trismegisto-angular-data-source-picker.mjs.map +1 -0
  69. package/fesm2022/trismegisto-angular-date-picker.mjs +99 -10
  70. package/fesm2022/trismegisto-angular-date-picker.mjs.map +1 -1
  71. package/fesm2022/trismegisto-angular-datetime-picker.mjs +183 -0
  72. package/fesm2022/trismegisto-angular-datetime-picker.mjs.map +1 -0
  73. package/fesm2022/trismegisto-angular-deadline.mjs +326 -0
  74. package/fesm2022/trismegisto-angular-deadline.mjs.map +1 -0
  75. package/fesm2022/trismegisto-angular-deploy-pipeline.mjs +259 -0
  76. package/fesm2022/trismegisto-angular-deploy-pipeline.mjs.map +1 -0
  77. package/fesm2022/trismegisto-angular-drawer.mjs +11 -5
  78. package/fesm2022/trismegisto-angular-drawer.mjs.map +1 -1
  79. package/fesm2022/trismegisto-angular-endpoint-card.mjs +143 -0
  80. package/fesm2022/trismegisto-angular-endpoint-card.mjs.map +1 -0
  81. package/fesm2022/trismegisto-angular-entity-picker.mjs +246 -0
  82. package/fesm2022/trismegisto-angular-entity-picker.mjs.map +1 -0
  83. package/fesm2022/trismegisto-angular-environment-picker.mjs +217 -0
  84. package/fesm2022/trismegisto-angular-environment-picker.mjs.map +1 -0
  85. package/fesm2022/trismegisto-angular-event-calendar.mjs +234 -11
  86. package/fesm2022/trismegisto-angular-event-calendar.mjs.map +1 -1
  87. package/fesm2022/trismegisto-angular-execution-status.mjs +211 -0
  88. package/fesm2022/trismegisto-angular-execution-status.mjs.map +1 -0
  89. package/fesm2022/trismegisto-angular-feature-flags.mjs +153 -0
  90. package/fesm2022/trismegisto-angular-feature-flags.mjs.map +1 -0
  91. package/fesm2022/trismegisto-angular-field-mapping.mjs +178 -0
  92. package/fesm2022/trismegisto-angular-field-mapping.mjs.map +1 -0
  93. package/fesm2022/trismegisto-angular-file-list.mjs +222 -0
  94. package/fesm2022/trismegisto-angular-file-list.mjs.map +1 -0
  95. package/fesm2022/trismegisto-angular-file-permissions.mjs +273 -0
  96. package/fesm2022/trismegisto-angular-file-permissions.mjs.map +1 -0
  97. package/fesm2022/trismegisto-angular-file-upload.mjs +1 -1
  98. package/fesm2022/trismegisto-angular-file-upload.mjs.map +1 -1
  99. package/fesm2022/trismegisto-angular-file-versions.mjs +139 -0
  100. package/fesm2022/trismegisto-angular-file-versions.mjs.map +1 -0
  101. package/fesm2022/trismegisto-angular-filter-bar.mjs +1 -1
  102. package/fesm2022/trismegisto-angular-filter-bar.mjs.map +1 -1
  103. package/fesm2022/trismegisto-angular-finance.mjs +912 -0
  104. package/fesm2022/trismegisto-angular-finance.mjs.map +1 -0
  105. package/fesm2022/trismegisto-angular-form-error-summary.mjs +195 -0
  106. package/fesm2022/trismegisto-angular-form-error-summary.mjs.map +1 -0
  107. package/fesm2022/trismegisto-angular-forms.mjs +21 -3
  108. package/fesm2022/trismegisto-angular-forms.mjs.map +1 -1
  109. package/fesm2022/trismegisto-angular-gantt.mjs +453 -0
  110. package/fesm2022/trismegisto-angular-gantt.mjs.map +1 -0
  111. package/fesm2022/trismegisto-angular-header.mjs +22 -5
  112. package/fesm2022/trismegisto-angular-header.mjs.map +1 -1
  113. package/fesm2022/trismegisto-angular-health-status.mjs +204 -0
  114. package/fesm2022/trismegisto-angular-health-status.mjs.map +1 -0
  115. package/fesm2022/trismegisto-angular-icon.mjs +96 -1
  116. package/fesm2022/trismegisto-angular-icon.mjs.map +1 -1
  117. package/fesm2022/trismegisto-angular-identity-document.mjs +274 -0
  118. package/fesm2022/trismegisto-angular-identity-document.mjs.map +1 -0
  119. package/fesm2022/trismegisto-angular-image-gallery.mjs +320 -0
  120. package/fesm2022/trismegisto-angular-image-gallery.mjs.map +1 -0
  121. package/fesm2022/trismegisto-angular-incident.mjs +735 -0
  122. package/fesm2022/trismegisto-angular-incident.mjs.map +1 -0
  123. package/fesm2022/trismegisto-angular-input.mjs +2 -1
  124. package/fesm2022/trismegisto-angular-input.mjs.map +1 -1
  125. package/fesm2022/trismegisto-angular-integration-text.mjs +82 -0
  126. package/fesm2022/trismegisto-angular-integration-text.mjs.map +1 -0
  127. package/fesm2022/trismegisto-angular-integration.mjs +423 -0
  128. package/fesm2022/trismegisto-angular-integration.mjs.map +1 -0
  129. package/fesm2022/trismegisto-angular-invoice.mjs +381 -0
  130. package/fesm2022/trismegisto-angular-invoice.mjs.map +1 -0
  131. package/fesm2022/trismegisto-angular-json-viewer.mjs +388 -0
  132. package/fesm2022/trismegisto-angular-json-viewer.mjs.map +1 -0
  133. package/fesm2022/trismegisto-angular-kanban.mjs +49 -9
  134. package/fesm2022/trismegisto-angular-kanban.mjs.map +1 -1
  135. package/fesm2022/trismegisto-angular-level-badge.mjs +192 -0
  136. package/fesm2022/trismegisto-angular-level-badge.mjs.map +1 -0
  137. package/fesm2022/trismegisto-angular-location-select.mjs +213 -0
  138. package/fesm2022/trismegisto-angular-location-select.mjs.map +1 -0
  139. package/fesm2022/trismegisto-angular-log-viewer.mjs +260 -0
  140. package/fesm2022/trismegisto-angular-log-viewer.mjs.map +1 -0
  141. package/fesm2022/trismegisto-angular-maintenance-window.mjs +286 -0
  142. package/fesm2022/trismegisto-angular-maintenance-window.mjs.map +1 -0
  143. package/fesm2022/trismegisto-angular-member-list.mjs +303 -0
  144. package/fesm2022/trismegisto-angular-member-list.mjs.map +1 -0
  145. package/fesm2022/trismegisto-angular-mention-text.mjs +44 -0
  146. package/fesm2022/trismegisto-angular-mention-text.mjs.map +1 -0
  147. package/fesm2022/trismegisto-angular-menu.mjs +10 -4
  148. package/fesm2022/trismegisto-angular-menu.mjs.map +1 -1
  149. package/fesm2022/trismegisto-angular-message.mjs +132 -7
  150. package/fesm2022/trismegisto-angular-message.mjs.map +1 -1
  151. package/fesm2022/trismegisto-angular-metric-explorer.mjs +367 -0
  152. package/fesm2022/trismegisto-angular-metric-explorer.mjs.map +1 -0
  153. package/fesm2022/trismegisto-angular-modal.mjs +14 -5
  154. package/fesm2022/trismegisto-angular-modal.mjs.map +1 -1
  155. package/fesm2022/trismegisto-angular-monitoring-text.mjs +121 -0
  156. package/fesm2022/trismegisto-angular-monitoring-text.mjs.map +1 -0
  157. package/fesm2022/trismegisto-angular-month-picker.mjs +232 -0
  158. package/fesm2022/trismegisto-angular-month-picker.mjs.map +1 -0
  159. package/fesm2022/trismegisto-angular-navigation-menu.mjs +68 -9
  160. package/fesm2022/trismegisto-angular-navigation-menu.mjs.map +1 -1
  161. package/fesm2022/trismegisto-angular-number-field.mjs +275 -0
  162. package/fesm2022/trismegisto-angular-number-field.mjs.map +1 -0
  163. package/fesm2022/trismegisto-angular-observability-text.mjs +244 -0
  164. package/fesm2022/trismegisto-angular-observability-text.mjs.map +1 -0
  165. package/fesm2022/trismegisto-angular-order.mjs +443 -0
  166. package/fesm2022/trismegisto-angular-order.mjs.map +1 -0
  167. package/fesm2022/trismegisto-angular-org-chart.mjs +678 -0
  168. package/fesm2022/trismegisto-angular-org-chart.mjs.map +1 -0
  169. package/fesm2022/trismegisto-angular-password-strength.mjs +204 -0
  170. package/fesm2022/trismegisto-angular-password-strength.mjs.map +1 -0
  171. package/fesm2022/trismegisto-angular-payment-fields.mjs +818 -0
  172. package/fesm2022/trismegisto-angular-payment-fields.mjs.map +1 -0
  173. package/fesm2022/trismegisto-angular-payment-form.mjs +405 -0
  174. package/fesm2022/trismegisto-angular-payment-form.mjs.map +1 -0
  175. package/fesm2022/trismegisto-angular-payment-method.mjs +331 -0
  176. package/fesm2022/trismegisto-angular-payment-method.mjs.map +1 -0
  177. package/fesm2022/trismegisto-angular-pdf-viewer.mjs +113 -0
  178. package/fesm2022/trismegisto-angular-pdf-viewer.mjs.map +1 -0
  179. package/fesm2022/trismegisto-angular-permission-matrix.mjs +266 -0
  180. package/fesm2022/trismegisto-angular-permission-matrix.mjs.map +1 -0
  181. package/fesm2022/trismegisto-angular-pipes.mjs +171 -2
  182. package/fesm2022/trismegisto-angular-pipes.mjs.map +1 -1
  183. package/fesm2022/trismegisto-angular-popconfirm.mjs +239 -0
  184. package/fesm2022/trismegisto-angular-popconfirm.mjs.map +1 -0
  185. package/fesm2022/trismegisto-angular-popover.mjs +6 -2
  186. package/fesm2022/trismegisto-angular-popover.mjs.map +1 -1
  187. package/fesm2022/trismegisto-angular-price.mjs +276 -0
  188. package/fesm2022/trismegisto-angular-price.mjs.map +1 -0
  189. package/fesm2022/trismegisto-angular-product.mjs +800 -0
  190. package/fesm2022/trismegisto-angular-product.mjs.map +1 -0
  191. package/fesm2022/trismegisto-angular-progress.mjs +119 -4
  192. package/fesm2022/trismegisto-angular-progress.mjs.map +1 -1
  193. package/fesm2022/trismegisto-angular-rating.mjs +166 -0
  194. package/fesm2022/trismegisto-angular-rating.mjs.map +1 -0
  195. package/fesm2022/trismegisto-angular-reason-dialog.mjs +137 -0
  196. package/fesm2022/trismegisto-angular-reason-dialog.mjs.map +1 -0
  197. package/fesm2022/trismegisto-angular-recurrence-editor.mjs +429 -0
  198. package/fesm2022/trismegisto-angular-recurrence-editor.mjs.map +1 -0
  199. package/fesm2022/trismegisto-angular-release-timeline.mjs +175 -0
  200. package/fesm2022/trismegisto-angular-release-timeline.mjs.map +1 -0
  201. package/fesm2022/trismegisto-angular-report-history.mjs +251 -0
  202. package/fesm2022/trismegisto-angular-report-history.mjs.map +1 -0
  203. package/fesm2022/trismegisto-angular-report-schedule.mjs +240 -0
  204. package/fesm2022/trismegisto-angular-report-schedule.mjs.map +1 -0
  205. package/fesm2022/trismegisto-angular-resource-calendar.mjs +172 -0
  206. package/fesm2022/trismegisto-angular-resource-calendar.mjs.map +1 -0
  207. package/fesm2022/trismegisto-angular-resource-usage.mjs +208 -0
  208. package/fesm2022/trismegisto-angular-resource-usage.mjs.map +1 -0
  209. package/fesm2022/trismegisto-angular-return-request.mjs +316 -0
  210. package/fesm2022/trismegisto-angular-return-request.mjs.map +1 -0
  211. package/fesm2022/trismegisto-angular-rich-text.mjs +1 -1
  212. package/fesm2022/trismegisto-angular-rich-text.mjs.map +1 -1
  213. package/fesm2022/trismegisto-angular-risk-register.mjs +342 -0
  214. package/fesm2022/trismegisto-angular-risk-register.mjs.map +1 -0
  215. package/fesm2022/trismegisto-angular-save-status.mjs +166 -0
  216. package/fesm2022/trismegisto-angular-save-status.mjs.map +1 -0
  217. package/fesm2022/trismegisto-angular-service-map.mjs +471 -0
  218. package/fesm2022/trismegisto-angular-service-map.mjs.map +1 -0
  219. package/fesm2022/trismegisto-angular-service-status.mjs +278 -0
  220. package/fesm2022/trismegisto-angular-service-status.mjs.map +1 -0
  221. package/fesm2022/trismegisto-angular-shipping.mjs +410 -0
  222. package/fesm2022/trismegisto-angular-shipping.mjs.map +1 -0
  223. package/fesm2022/trismegisto-angular-sidebar.mjs +3 -0
  224. package/fesm2022/trismegisto-angular-sidebar.mjs.map +1 -1
  225. package/fesm2022/trismegisto-angular-skip-link.mjs +74 -0
  226. package/fesm2022/trismegisto-angular-skip-link.mjs.map +1 -0
  227. package/fesm2022/trismegisto-angular-sla-summary.mjs +349 -0
  228. package/fesm2022/trismegisto-angular-sla-summary.mjs.map +1 -0
  229. package/fesm2022/trismegisto-angular-slot-picker.mjs +229 -0
  230. package/fesm2022/trismegisto-angular-slot-picker.mjs.map +1 -0
  231. package/fesm2022/trismegisto-angular-split-button.mjs +190 -0
  232. package/fesm2022/trismegisto-angular-split-button.mjs.map +1 -0
  233. package/fesm2022/trismegisto-angular-status-badge.mjs +80 -0
  234. package/fesm2022/trismegisto-angular-status-badge.mjs.map +1 -0
  235. package/fesm2022/trismegisto-angular-status-select.mjs +156 -0
  236. package/fesm2022/trismegisto-angular-status-select.mjs.map +1 -0
  237. package/fesm2022/trismegisto-angular-storage-usage.mjs +136 -0
  238. package/fesm2022/trismegisto-angular-storage-usage.mjs.map +1 -0
  239. package/fesm2022/trismegisto-angular-swimlane-board.mjs +237 -0
  240. package/fesm2022/trismegisto-angular-swimlane-board.mjs.map +1 -0
  241. package/fesm2022/trismegisto-angular-sync-status.mjs +269 -0
  242. package/fesm2022/trismegisto-angular-sync-status.mjs.map +1 -0
  243. package/fesm2022/trismegisto-angular-tag-input.mjs +345 -0
  244. package/fesm2022/trismegisto-angular-tag-input.mjs.map +1 -0
  245. package/fesm2022/trismegisto-angular-task-card.mjs +315 -0
  246. package/fesm2022/trismegisto-angular-task-card.mjs.map +1 -0
  247. package/fesm2022/trismegisto-angular-task-detail.mjs +737 -0
  248. package/fesm2022/trismegisto-angular-task-detail.mjs.map +1 -0
  249. package/fesm2022/trismegisto-angular-textarea.mjs +129 -8
  250. package/fesm2022/trismegisto-angular-textarea.mjs.map +1 -1
  251. package/fesm2022/trismegisto-angular-time-range.mjs +201 -0
  252. package/fesm2022/trismegisto-angular-time-range.mjs.map +1 -0
  253. package/fesm2022/trismegisto-angular-toast.mjs +135 -34
  254. package/fesm2022/trismegisto-angular-toast.mjs.map +1 -1
  255. package/fesm2022/trismegisto-angular-tour.mjs +385 -0
  256. package/fesm2022/trismegisto-angular-tour.mjs.map +1 -0
  257. package/fesm2022/trismegisto-angular-trace-waterfall.mjs +511 -0
  258. package/fesm2022/trismegisto-angular-trace-waterfall.mjs.map +1 -0
  259. package/fesm2022/trismegisto-angular-transaction.mjs +616 -0
  260. package/fesm2022/trismegisto-angular-transaction.mjs.map +1 -0
  261. package/fesm2022/trismegisto-angular-tree-select.mjs +444 -0
  262. package/fesm2022/trismegisto-angular-tree-select.mjs.map +1 -0
  263. package/fesm2022/trismegisto-angular-tree.mjs +1 -1
  264. package/fesm2022/trismegisto-angular-tree.mjs.map +1 -1
  265. package/fesm2022/trismegisto-angular-unsaved-changes.mjs +147 -0
  266. package/fesm2022/trismegisto-angular-unsaved-changes.mjs.map +1 -0
  267. package/fesm2022/trismegisto-angular-uptime-bar.mjs +271 -0
  268. package/fesm2022/trismegisto-angular-uptime-bar.mjs.map +1 -0
  269. package/fesm2022/trismegisto-angular-user-card.mjs +298 -0
  270. package/fesm2022/trismegisto-angular-user-card.mjs.map +1 -0
  271. package/fesm2022/trismegisto-angular-vehicle-plate.mjs +245 -0
  272. package/fesm2022/trismegisto-angular-vehicle-plate.mjs.map +1 -0
  273. package/fesm2022/trismegisto-angular-webhook.mjs +358 -0
  274. package/fesm2022/trismegisto-angular-webhook.mjs.map +1 -0
  275. package/fesm2022/trismegisto-angular-wizard.mjs +2 -2
  276. package/fesm2022/trismegisto-angular-wizard.mjs.map +1 -1
  277. package/fesm2022/trismegisto-angular-workflow-diagram.mjs +441 -0
  278. package/fesm2022/trismegisto-angular-workflow-diagram.mjs.map +1 -0
  279. package/fesm2022/trismegisto-angular-workflow-i18n.mjs +890 -0
  280. package/fesm2022/trismegisto-angular-workflow-i18n.mjs.map +1 -0
  281. package/fesm2022/trismegisto-angular-workload.mjs +172 -0
  282. package/fesm2022/trismegisto-angular-workload.mjs.map +1 -0
  283. package/fesm2022/trismegisto-angular-workspace-persistence.mjs +3 -2
  284. package/fesm2022/trismegisto-angular-workspace-persistence.mjs.map +1 -1
  285. package/fesm2022/trismegisto-angular-workspace.mjs +229 -44
  286. package/fesm2022/trismegisto-angular-workspace.mjs.map +1 -1
  287. package/fesm2022/trismegisto-angular.mjs +117 -7
  288. package/fesm2022/trismegisto-angular.mjs.map +1 -1
  289. package/package.json +449 -5
  290. package/types/trismegisto-angular-access-control.d.ts +330 -0
  291. package/types/trismegisto-angular-access-control.d.ts.map +1 -0
  292. package/types/trismegisto-angular-account-avatar.d.ts +18 -1
  293. package/types/trismegisto-angular-account-avatar.d.ts.map +1 -1
  294. package/types/trismegisto-angular-account-closure.d.ts +85 -0
  295. package/types/trismegisto-angular-account-closure.d.ts.map +1 -0
  296. package/types/trismegisto-angular-account-forms.d.ts +381 -0
  297. package/types/trismegisto-angular-account-forms.d.ts.map +1 -0
  298. package/types/trismegisto-angular-account-switcher.d.ts +60 -0
  299. package/types/trismegisto-angular-account-switcher.d.ts.map +1 -0
  300. package/types/trismegisto-angular-address.d.ts +267 -0
  301. package/types/trismegisto-angular-address.d.ts.map +1 -0
  302. package/types/trismegisto-angular-alert-history.d.ts +77 -0
  303. package/types/trismegisto-angular-alert-history.d.ts.map +1 -0
  304. package/types/trismegisto-angular-alert-rule-editor.d.ts +123 -0
  305. package/types/trismegisto-angular-alert-rule-editor.d.ts.map +1 -0
  306. package/types/trismegisto-angular-anchor-nav.d.ts +78 -0
  307. package/types/trismegisto-angular-anchor-nav.d.ts.map +1 -0
  308. package/types/trismegisto-angular-announcer.d.ts +49 -0
  309. package/types/trismegisto-angular-announcer.d.ts.map +1 -0
  310. package/types/trismegisto-angular-api-exchange.d.ts +155 -0
  311. package/types/trismegisto-angular-api-exchange.d.ts.map +1 -0
  312. package/types/trismegisto-angular-appointment-details.d.ts +123 -0
  313. package/types/trismegisto-angular-appointment-details.d.ts.map +1 -0
  314. package/types/trismegisto-angular-approval.d.ts +109 -0
  315. package/types/trismegisto-angular-approval.d.ts.map +1 -0
  316. package/types/trismegisto-angular-assignee.d.ts +120 -0
  317. package/types/trismegisto-angular-assignee.d.ts.map +1 -0
  318. package/types/trismegisto-angular-availability-editor.d.ts +100 -0
  319. package/types/trismegisto-angular-availability-editor.d.ts.map +1 -0
  320. package/types/trismegisto-angular-backlog.d.ts +98 -0
  321. package/types/trismegisto-angular-backlog.d.ts.map +1 -0
  322. package/types/trismegisto-angular-billing.d.ts +851 -0
  323. package/types/trismegisto-angular-billing.d.ts.map +1 -0
  324. package/types/trismegisto-angular-bottom-navigation.d.ts +83 -0
  325. package/types/trismegisto-angular-bottom-navigation.d.ts.map +1 -0
  326. package/types/trismegisto-angular-bottom-sheet.d.ts +121 -0
  327. package/types/trismegisto-angular-bottom-sheet.d.ts.map +1 -0
  328. package/types/trismegisto-angular-cart.d.ts +267 -0
  329. package/types/trismegisto-angular-cart.d.ts.map +1 -0
  330. package/types/trismegisto-angular-cascader.d.ts +133 -0
  331. package/types/trismegisto-angular-cascader.d.ts.map +1 -0
  332. package/types/trismegisto-angular-change-history.d.ts +58 -0
  333. package/types/trismegisto-angular-change-history.d.ts.map +1 -0
  334. package/types/trismegisto-angular-color-picker.d.ts +73 -0
  335. package/types/trismegisto-angular-color-picker.d.ts.map +1 -0
  336. package/types/trismegisto-angular-combobox-multi.d.ts +3 -1
  337. package/types/trismegisto-angular-combobox-multi.d.ts.map +1 -1
  338. package/types/trismegisto-angular-commerce-format.d.ts +43 -0
  339. package/types/trismegisto-angular-commerce-format.d.ts.map +1 -0
  340. package/types/trismegisto-angular-connection-wizard.d.ts +110 -0
  341. package/types/trismegisto-angular-connection-wizard.d.ts.map +1 -0
  342. package/types/trismegisto-angular-consent.d.ts +142 -0
  343. package/types/trismegisto-angular-consent.d.ts.map +1 -0
  344. package/types/trismegisto-angular-credentials-form.d.ts +242 -0
  345. package/types/trismegisto-angular-credentials-form.d.ts.map +1 -0
  346. package/types/trismegisto-angular-data-grid.d.ts +382 -48
  347. package/types/trismegisto-angular-data-grid.d.ts.map +1 -1
  348. package/types/trismegisto-angular-data-source-picker.d.ts +73 -0
  349. package/types/trismegisto-angular-data-source-picker.d.ts.map +1 -0
  350. package/types/trismegisto-angular-date-picker.d.ts +75 -4
  351. package/types/trismegisto-angular-date-picker.d.ts.map +1 -1
  352. package/types/trismegisto-angular-datetime-picker.d.ts +89 -0
  353. package/types/trismegisto-angular-datetime-picker.d.ts.map +1 -0
  354. package/types/trismegisto-angular-deadline.d.ts +143 -0
  355. package/types/trismegisto-angular-deadline.d.ts.map +1 -0
  356. package/types/trismegisto-angular-deploy-pipeline.d.ts +100 -0
  357. package/types/trismegisto-angular-deploy-pipeline.d.ts.map +1 -0
  358. package/types/trismegisto-angular-drawer.d.ts +6 -3
  359. package/types/trismegisto-angular-drawer.d.ts.map +1 -1
  360. package/types/trismegisto-angular-endpoint-card.d.ts +113 -0
  361. package/types/trismegisto-angular-endpoint-card.d.ts.map +1 -0
  362. package/types/trismegisto-angular-entity-picker.d.ts +88 -0
  363. package/types/trismegisto-angular-entity-picker.d.ts.map +1 -0
  364. package/types/trismegisto-angular-environment-picker.d.ts +72 -0
  365. package/types/trismegisto-angular-environment-picker.d.ts.map +1 -0
  366. package/types/trismegisto-angular-event-calendar.d.ts +52 -6
  367. package/types/trismegisto-angular-event-calendar.d.ts.map +1 -1
  368. package/types/trismegisto-angular-execution-status.d.ts +76 -0
  369. package/types/trismegisto-angular-execution-status.d.ts.map +1 -0
  370. package/types/trismegisto-angular-feature-flags.d.ts +97 -0
  371. package/types/trismegisto-angular-feature-flags.d.ts.map +1 -0
  372. package/types/trismegisto-angular-field-mapping.d.ts +118 -0
  373. package/types/trismegisto-angular-field-mapping.d.ts.map +1 -0
  374. package/types/trismegisto-angular-file-list.d.ts +136 -0
  375. package/types/trismegisto-angular-file-list.d.ts.map +1 -0
  376. package/types/trismegisto-angular-file-permissions.d.ts +171 -0
  377. package/types/trismegisto-angular-file-permissions.d.ts.map +1 -0
  378. package/types/trismegisto-angular-file-versions.d.ts +93 -0
  379. package/types/trismegisto-angular-file-versions.d.ts.map +1 -0
  380. package/types/trismegisto-angular-finance.d.ts +623 -0
  381. package/types/trismegisto-angular-finance.d.ts.map +1 -0
  382. package/types/trismegisto-angular-form-error-summary.d.ts +98 -0
  383. package/types/trismegisto-angular-form-error-summary.d.ts.map +1 -0
  384. package/types/trismegisto-angular-forms.d.ts +14 -1
  385. package/types/trismegisto-angular-forms.d.ts.map +1 -1
  386. package/types/trismegisto-angular-gantt.d.ts +128 -0
  387. package/types/trismegisto-angular-gantt.d.ts.map +1 -0
  388. package/types/trismegisto-angular-header.d.ts +5 -1
  389. package/types/trismegisto-angular-header.d.ts.map +1 -1
  390. package/types/trismegisto-angular-health-status.d.ts +71 -0
  391. package/types/trismegisto-angular-health-status.d.ts.map +1 -0
  392. package/types/trismegisto-angular-icon.d.ts +96 -1
  393. package/types/trismegisto-angular-icon.d.ts.map +1 -1
  394. package/types/trismegisto-angular-identity-document.d.ts +112 -0
  395. package/types/trismegisto-angular-identity-document.d.ts.map +1 -0
  396. package/types/trismegisto-angular-image-gallery.d.ts +129 -0
  397. package/types/trismegisto-angular-image-gallery.d.ts.map +1 -0
  398. package/types/trismegisto-angular-incident.d.ts +212 -0
  399. package/types/trismegisto-angular-incident.d.ts.map +1 -0
  400. package/types/trismegisto-angular-input.d.ts.map +1 -1
  401. package/types/trismegisto-angular-integration-text.d.ts +42 -0
  402. package/types/trismegisto-angular-integration-text.d.ts.map +1 -0
  403. package/types/trismegisto-angular-integration.d.ts +283 -0
  404. package/types/trismegisto-angular-integration.d.ts.map +1 -0
  405. package/types/trismegisto-angular-invoice.d.ts +221 -0
  406. package/types/trismegisto-angular-invoice.d.ts.map +1 -0
  407. package/types/trismegisto-angular-json-viewer.d.ts +117 -0
  408. package/types/trismegisto-angular-json-viewer.d.ts.map +1 -0
  409. package/types/trismegisto-angular-kanban.d.ts +38 -3
  410. package/types/trismegisto-angular-kanban.d.ts.map +1 -1
  411. package/types/trismegisto-angular-level-badge.d.ts +87 -0
  412. package/types/trismegisto-angular-level-badge.d.ts.map +1 -0
  413. package/types/trismegisto-angular-location-select.d.ts +80 -0
  414. package/types/trismegisto-angular-location-select.d.ts.map +1 -0
  415. package/types/trismegisto-angular-log-viewer.d.ts +125 -0
  416. package/types/trismegisto-angular-log-viewer.d.ts.map +1 -0
  417. package/types/trismegisto-angular-maintenance-window.d.ts +89 -0
  418. package/types/trismegisto-angular-maintenance-window.d.ts.map +1 -0
  419. package/types/trismegisto-angular-member-list.d.ts +80 -0
  420. package/types/trismegisto-angular-member-list.d.ts.map +1 -0
  421. package/types/trismegisto-angular-mention-text.d.ts +28 -0
  422. package/types/trismegisto-angular-mention-text.d.ts.map +1 -0
  423. package/types/trismegisto-angular-menu.d.ts +4 -1
  424. package/types/trismegisto-angular-menu.d.ts.map +1 -1
  425. package/types/trismegisto-angular-message.d.ts +31 -2
  426. package/types/trismegisto-angular-message.d.ts.map +1 -1
  427. package/types/trismegisto-angular-metric-explorer.d.ts +117 -0
  428. package/types/trismegisto-angular-metric-explorer.d.ts.map +1 -0
  429. package/types/trismegisto-angular-modal.d.ts +1 -0
  430. package/types/trismegisto-angular-modal.d.ts.map +1 -1
  431. package/types/trismegisto-angular-monitoring-text.d.ts +57 -0
  432. package/types/trismegisto-angular-monitoring-text.d.ts.map +1 -0
  433. package/types/trismegisto-angular-month-picker.d.ts +104 -0
  434. package/types/trismegisto-angular-month-picker.d.ts.map +1 -0
  435. package/types/trismegisto-angular-navigation-menu.d.ts +35 -2
  436. package/types/trismegisto-angular-navigation-menu.d.ts.map +1 -1
  437. package/types/trismegisto-angular-number-field.d.ts +148 -0
  438. package/types/trismegisto-angular-number-field.d.ts.map +1 -0
  439. package/types/trismegisto-angular-observability-text.d.ts +85 -0
  440. package/types/trismegisto-angular-observability-text.d.ts.map +1 -0
  441. package/types/trismegisto-angular-order.d.ts +268 -0
  442. package/types/trismegisto-angular-order.d.ts.map +1 -0
  443. package/types/trismegisto-angular-org-chart.d.ts +145 -0
  444. package/types/trismegisto-angular-org-chart.d.ts.map +1 -0
  445. package/types/trismegisto-angular-password-strength.d.ts +74 -0
  446. package/types/trismegisto-angular-password-strength.d.ts.map +1 -0
  447. package/types/trismegisto-angular-payment-fields.d.ts +450 -0
  448. package/types/trismegisto-angular-payment-fields.d.ts.map +1 -0
  449. package/types/trismegisto-angular-payment-form.d.ts +189 -0
  450. package/types/trismegisto-angular-payment-form.d.ts.map +1 -0
  451. package/types/trismegisto-angular-payment-method.d.ts +238 -0
  452. package/types/trismegisto-angular-payment-method.d.ts.map +1 -0
  453. package/types/trismegisto-angular-pdf-viewer.d.ts +70 -0
  454. package/types/trismegisto-angular-pdf-viewer.d.ts.map +1 -0
  455. package/types/trismegisto-angular-permission-matrix.d.ts +70 -0
  456. package/types/trismegisto-angular-permission-matrix.d.ts.map +1 -0
  457. package/types/trismegisto-angular-pipes.d.ts +108 -2
  458. package/types/trismegisto-angular-pipes.d.ts.map +1 -1
  459. package/types/trismegisto-angular-popconfirm.d.ts +115 -0
  460. package/types/trismegisto-angular-popconfirm.d.ts.map +1 -0
  461. package/types/trismegisto-angular-popover.d.ts +3 -1
  462. package/types/trismegisto-angular-popover.d.ts.map +1 -1
  463. package/types/trismegisto-angular-price.d.ts +185 -0
  464. package/types/trismegisto-angular-price.d.ts.map +1 -0
  465. package/types/trismegisto-angular-product.d.ts +391 -0
  466. package/types/trismegisto-angular-product.d.ts.map +1 -0
  467. package/types/trismegisto-angular-progress.d.ts +20 -3
  468. package/types/trismegisto-angular-progress.d.ts.map +1 -1
  469. package/types/trismegisto-angular-rating.d.ts +83 -0
  470. package/types/trismegisto-angular-rating.d.ts.map +1 -0
  471. package/types/trismegisto-angular-reason-dialog.d.ts +65 -0
  472. package/types/trismegisto-angular-reason-dialog.d.ts.map +1 -0
  473. package/types/trismegisto-angular-recurrence-editor.d.ts +151 -0
  474. package/types/trismegisto-angular-recurrence-editor.d.ts.map +1 -0
  475. package/types/trismegisto-angular-release-timeline.d.ts +79 -0
  476. package/types/trismegisto-angular-release-timeline.d.ts.map +1 -0
  477. package/types/trismegisto-angular-report-history.d.ts +144 -0
  478. package/types/trismegisto-angular-report-history.d.ts.map +1 -0
  479. package/types/trismegisto-angular-report-schedule.d.ts +138 -0
  480. package/types/trismegisto-angular-report-schedule.d.ts.map +1 -0
  481. package/types/trismegisto-angular-resource-calendar.d.ts +107 -0
  482. package/types/trismegisto-angular-resource-calendar.d.ts.map +1 -0
  483. package/types/trismegisto-angular-resource-usage.d.ts +91 -0
  484. package/types/trismegisto-angular-resource-usage.d.ts.map +1 -0
  485. package/types/trismegisto-angular-return-request.d.ts +158 -0
  486. package/types/trismegisto-angular-return-request.d.ts.map +1 -0
  487. package/types/trismegisto-angular-risk-register.d.ts +130 -0
  488. package/types/trismegisto-angular-risk-register.d.ts.map +1 -0
  489. package/types/trismegisto-angular-save-status.d.ts +67 -0
  490. package/types/trismegisto-angular-save-status.d.ts.map +1 -0
  491. package/types/trismegisto-angular-service-map.d.ts +111 -0
  492. package/types/trismegisto-angular-service-map.d.ts.map +1 -0
  493. package/types/trismegisto-angular-service-status.d.ts +82 -0
  494. package/types/trismegisto-angular-service-status.d.ts.map +1 -0
  495. package/types/trismegisto-angular-shipping.d.ts +221 -0
  496. package/types/trismegisto-angular-shipping.d.ts.map +1 -0
  497. package/types/trismegisto-angular-sidebar.d.ts +1 -0
  498. package/types/trismegisto-angular-sidebar.d.ts.map +1 -1
  499. package/types/trismegisto-angular-skip-link.d.ts +53 -0
  500. package/types/trismegisto-angular-skip-link.d.ts.map +1 -0
  501. package/types/trismegisto-angular-sla-summary.d.ts +104 -0
  502. package/types/trismegisto-angular-sla-summary.d.ts.map +1 -0
  503. package/types/trismegisto-angular-slot-picker.d.ts +128 -0
  504. package/types/trismegisto-angular-slot-picker.d.ts.map +1 -0
  505. package/types/trismegisto-angular-split-button.d.ts +81 -0
  506. package/types/trismegisto-angular-split-button.d.ts.map +1 -0
  507. package/types/trismegisto-angular-status-badge.d.ts +40 -0
  508. package/types/trismegisto-angular-status-badge.d.ts.map +1 -0
  509. package/types/trismegisto-angular-status-select.d.ts +76 -0
  510. package/types/trismegisto-angular-status-select.d.ts.map +1 -0
  511. package/types/trismegisto-angular-storage-usage.d.ts +82 -0
  512. package/types/trismegisto-angular-storage-usage.d.ts.map +1 -0
  513. package/types/trismegisto-angular-swimlane-board.d.ts +114 -0
  514. package/types/trismegisto-angular-swimlane-board.d.ts.map +1 -0
  515. package/types/trismegisto-angular-sync-status.d.ts +191 -0
  516. package/types/trismegisto-angular-sync-status.d.ts.map +1 -0
  517. package/types/trismegisto-angular-tag-input.d.ts +121 -0
  518. package/types/trismegisto-angular-tag-input.d.ts.map +1 -0
  519. package/types/trismegisto-angular-task-card.d.ts +106 -0
  520. package/types/trismegisto-angular-task-card.d.ts.map +1 -0
  521. package/types/trismegisto-angular-task-detail.d.ts +248 -0
  522. package/types/trismegisto-angular-task-detail.d.ts.map +1 -0
  523. package/types/trismegisto-angular-textarea.d.ts +31 -1
  524. package/types/trismegisto-angular-textarea.d.ts.map +1 -1
  525. package/types/trismegisto-angular-time-range.d.ts +92 -0
  526. package/types/trismegisto-angular-time-range.d.ts.map +1 -0
  527. package/types/trismegisto-angular-toast.d.ts +50 -11
  528. package/types/trismegisto-angular-toast.d.ts.map +1 -1
  529. package/types/trismegisto-angular-tour.d.ts +116 -0
  530. package/types/trismegisto-angular-tour.d.ts.map +1 -0
  531. package/types/trismegisto-angular-trace-waterfall.d.ts +111 -0
  532. package/types/trismegisto-angular-trace-waterfall.d.ts.map +1 -0
  533. package/types/trismegisto-angular-transaction.d.ts +542 -0
  534. package/types/trismegisto-angular-transaction.d.ts.map +1 -0
  535. package/types/trismegisto-angular-tree-select.d.ts +197 -0
  536. package/types/trismegisto-angular-tree-select.d.ts.map +1 -0
  537. package/types/trismegisto-angular-unsaved-changes.d.ts +101 -0
  538. package/types/trismegisto-angular-unsaved-changes.d.ts.map +1 -0
  539. package/types/trismegisto-angular-uptime-bar.d.ts +90 -0
  540. package/types/trismegisto-angular-uptime-bar.d.ts.map +1 -0
  541. package/types/trismegisto-angular-user-card.d.ts +126 -0
  542. package/types/trismegisto-angular-user-card.d.ts.map +1 -0
  543. package/types/trismegisto-angular-vehicle-plate.d.ts +107 -0
  544. package/types/trismegisto-angular-vehicle-plate.d.ts.map +1 -0
  545. package/types/trismegisto-angular-webhook.d.ts +244 -0
  546. package/types/trismegisto-angular-webhook.d.ts.map +1 -0
  547. package/types/trismegisto-angular-workflow-diagram.d.ts +136 -0
  548. package/types/trismegisto-angular-workflow-diagram.d.ts.map +1 -0
  549. package/types/trismegisto-angular-workflow-i18n.d.ts +358 -0
  550. package/types/trismegisto-angular-workflow-i18n.d.ts.map +1 -0
  551. package/types/trismegisto-angular-workload.d.ts +64 -0
  552. package/types/trismegisto-angular-workload.d.ts.map +1 -0
  553. package/types/trismegisto-angular-workspace-persistence.d.ts +5 -4
  554. package/types/trismegisto-angular-workspace-persistence.d.ts.map +1 -1
  555. package/types/trismegisto-angular-workspace.d.ts +79 -7
  556. package/types/trismegisto-angular-workspace.d.ts.map +1 -1
  557. package/types/trismegisto-angular.d.ts +120 -10
  558. package/types/trismegisto-angular.d.ts.map +1 -1
@@ -0,0 +1,737 @@
1
+ import * as i0 from '@angular/core';
2
+ import { model, input, booleanAttribute, output, computed, signal, ChangeDetectionStrategy, Component, effect } from '@angular/core';
3
+ import { subtaskProgress, formatMessage, toggleSubtask, taskDependencies, wouldCreateDependencyCycle, workflowTime, formatTimelineDate } from '@trismegisto/primitives';
4
+ import { workflowMessages } from '@trismegisto/angular/workflow-i18n';
5
+ import { CheckboxComponent } from '@trismegisto/angular/checkbox';
6
+ import { IconButtonComponent } from '@trismegisto/angular/icon-button';
7
+ import { ButtonComponent } from '@trismegisto/angular/button';
8
+ import { InputComponent } from '@trismegisto/angular/input';
9
+ import { ProgressComponent } from '@trismegisto/angular/progress';
10
+ import { ICON_HISTORY, ICON_LINK, ICON_PENCIL, ICON_PLUS, ICON_TASKS, ICON_TRASH, ICON_UNLINK, useHermesIcons } from '@trismegisto/angular/icon';
11
+ import { ComboboxComponent } from '@trismegisto/angular/combobox';
12
+ import { StatusBadgeComponent } from '@trismegisto/angular/status-badge';
13
+ import { TextareaComponent } from '@trismegisto/angular/textarea';
14
+ import { SelectComponent } from '@trismegisto/angular/select';
15
+ import { DatePickerComponent } from '@trismegisto/angular/date-picker';
16
+ import { LevelSelectComponent, LevelBadgeComponent } from '@trismegisto/angular/level-badge';
17
+ import { AssigneeSelectComponent, AssigneeComponent } from '@trismegisto/angular/assignee';
18
+ import { TagComponent } from '@trismegisto/angular/tag';
19
+ import { StatusSelectComponent } from '@trismegisto/angular/status-select';
20
+ import { DeadlineComponent } from '@trismegisto/angular/deadline';
21
+ import { ChangeHistoryComponent } from '@trismegisto/angular/change-history';
22
+
23
+ const TASK_DETAIL_ICONS = [ICON_HISTORY, ICON_LINK, ICON_PENCIL, ICON_PLUS, ICON_TASKS, ICON_TRASH, ICON_UNLINK];
24
+
25
+ let sequence = 0;
26
+ /**
27
+ * Subtarefas de uma tarefa: progresso, marcar como feita e, com `editable`, acrescentar e remover.
28
+ *
29
+ * ```html
30
+ * <hm-subtask-list [(subtasks)]="tarefa.subtarefas" editable (added)="criar($event)" (removed)="apagar($event)" />
31
+ * ```
32
+ *
33
+ * - `[(subtasks)]` recebe a lista nova a cada mudança; as saídas (`toggled`, `added`, `removed`) dizem o que mudou,
34
+ * para o app gravar. Subtarefa nova ganha um id provisório (`new-…`) até o app devolver o definitivo.
35
+ * - O progresso é um `hm-progress` com "2 de 5 concluídas"; cada item é um `hm-checkbox` com o título como rótulo.
36
+ */
37
+ class SubtaskListComponent {
38
+ #icons = useHermesIcons(TASK_DETAIL_ICONS);
39
+ subtasks = model([], ...(ngDevMode ? [{ debugName: "subtasks" }] : /* istanbul ignore next */ []));
40
+ /** Acrescentar e remover. */
41
+ editable = input(false, { ...(ngDevMode ? { debugName: "editable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
42
+ disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
43
+ /** Nome da lista. Vazio = "Subtarefas". */
44
+ label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
45
+ toggled = output();
46
+ /** Subtarefa criada (com o id provisório). */
47
+ added = output();
48
+ removed = output();
49
+ /** Sobrescreve textos desta peça (parcial; o resto segue o idioma ativo). */
50
+ texts = input(null, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
51
+ #messages = workflowMessages(() => this.texts());
52
+ text = computed(() => this.#messages.tasks.subtasks, ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
53
+ draft = signal('', ...(ngDevMode ? [{ debugName: "draft" }] : /* istanbul ignore next */ []));
54
+ progress = computed(() => subtaskProgress(this.subtasks()), ...(ngDevMode ? [{ debugName: "progress" }] : /* istanbul ignore next */ []));
55
+ progressText = computed(() => formatMessage(this.text().progress, { ...this.progress() }), ...(ngDevMode ? [{ debugName: "progressText" }] : /* istanbul ignore next */ []));
56
+ removeLabel(subtask) {
57
+ return formatMessage(this.text().remove, { title: subtask.title });
58
+ }
59
+ toggle(subtask, done) {
60
+ this.subtasks.set(toggleSubtask(this.subtasks(), subtask.id, done));
61
+ this.toggled.emit({ ...subtask, done });
62
+ }
63
+ remove(subtask) {
64
+ this.subtasks.set(this.subtasks().filter((s) => s.id !== subtask.id));
65
+ this.removed.emit(subtask);
66
+ }
67
+ add(event) {
68
+ event.preventDefault();
69
+ const title = this.draft().trim();
70
+ if (!title)
71
+ return;
72
+ const subtask = { id: `new-${++sequence}`, title, done: false };
73
+ this.subtasks.set([...this.subtasks(), subtask]);
74
+ this.draft.set('');
75
+ this.added.emit(subtask);
76
+ }
77
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: SubtaskListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
78
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: SubtaskListComponent, isStandalone: true, selector: "hm-subtask-list", inputs: { subtasks: { classPropertyName: "subtasks", publicName: "subtasks", isSignal: true, isRequired: false, transformFunction: null }, editable: { classPropertyName: "editable", publicName: "editable", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { subtasks: "subtasksChange", toggled: "toggled", added: "added", removed: "removed" }, host: { classAttribute: "hm-subtask-list" }, ngImport: i0, template: `
79
+ @if (progress().total) {
80
+ <hm-progress class="hm-subtask-list__progress" [label]="progressText()" [value]="progress().done" [max]="progress().total" size="small" intent="success" />
81
+ }
82
+ @if (subtasks().length) {
83
+ <ul class="hm-subtask-list__items" role="list" [attr.aria-label]="label() || text().label">
84
+ @for (subtask of subtasks(); track subtask.id) {
85
+ <li class="hm-subtask-list__item" [class.hm-subtask-list__item--done]="subtask.done">
86
+ <hm-checkbox [label]="subtask.title" [checked]="subtask.done" [disabled]="disabled()" (checkedChange)="toggle(subtask, $event)" />
87
+ @if (editable()) {
88
+ <hm-icon-button
89
+ class="hm-subtask-list__remove"
90
+ icon="trash"
91
+ emphasis="subtle"
92
+ size="small"
93
+ intent="danger"
94
+ [label]="removeLabel(subtask)"
95
+ [disabled]="disabled()"
96
+ (clicked)="remove(subtask)"
97
+ />
98
+ }
99
+ </li>
100
+ }
101
+ </ul>
102
+ } @else {
103
+ <p class="hm-subtask-list__empty">{{ text().empty }}</p>
104
+ }
105
+ @if (editable()) {
106
+ <form class="hm-subtask-list__add" (submit)="add($event)">
107
+ <hm-input class="hm-subtask-list__field" [label]="text().placeholder" labelHidden [placeholder]="text().placeholder" [disabled]="disabled()" [(value)]="draft" />
108
+ <hm-button type="submit" emphasis="medium" icon="plus" [disabled]="disabled() || !draft().trim()">{{ text().add }}</hm-button>
109
+ </form>
110
+ }
111
+ `, isInline: true, dependencies: [{ kind: "component", type: CheckboxComponent, selector: "hm-checkbox", inputs: ["label", "labelHidden", "checked", "indeterminate"], outputs: ["checkedChange"] }, { kind: "component", type: IconButtonComponent, selector: "hm-icon-button", inputs: ["label", "icon", "solid", "iconDirection", "emphasis", "intent", "size", "disabled", "toggle", "pressed", "keyShortcuts"], outputs: ["pressedChange", "clicked"] }, { kind: "component", type: ButtonComponent, selector: "hm-button", inputs: ["emphasis", "intent", "size", "type", "icon", "iconDirection", "iconEnd", "disabled", "loading", "loadingState", "block", "link", "newTab", "caret", "inMenu", "toggle", "pressed"], outputs: ["loadingStateChange", "pressedChange", "clicked"] }, { kind: "component", type: InputComponent, selector: "hm-input", inputs: ["value", "label", "type", "placeholder", "icon", "labelHidden", "hint", "prefix", "suffix", "prefixIcon", "mask", "maskValue", "min", "max", "step", "stepButtons", "maxLength", "autocomplete", "inputMode"], outputs: ["valueChange"] }, { kind: "component", type: ProgressComponent, selector: "hm-progress", inputs: ["value", "max", "label", "labelHidden", "showValue", "indeterminate", "intent", "size", "hint", "shape"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
112
+ }
113
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: SubtaskListComponent, decorators: [{
114
+ type: Component,
115
+ args: [{
116
+ selector: 'hm-subtask-list',
117
+ imports: [CheckboxComponent, IconButtonComponent, ButtonComponent, InputComponent, ProgressComponent],
118
+ changeDetection: ChangeDetectionStrategy.OnPush,
119
+ host: { class: 'hm-subtask-list' },
120
+ template: `
121
+ @if (progress().total) {
122
+ <hm-progress class="hm-subtask-list__progress" [label]="progressText()" [value]="progress().done" [max]="progress().total" size="small" intent="success" />
123
+ }
124
+ @if (subtasks().length) {
125
+ <ul class="hm-subtask-list__items" role="list" [attr.aria-label]="label() || text().label">
126
+ @for (subtask of subtasks(); track subtask.id) {
127
+ <li class="hm-subtask-list__item" [class.hm-subtask-list__item--done]="subtask.done">
128
+ <hm-checkbox [label]="subtask.title" [checked]="subtask.done" [disabled]="disabled()" (checkedChange)="toggle(subtask, $event)" />
129
+ @if (editable()) {
130
+ <hm-icon-button
131
+ class="hm-subtask-list__remove"
132
+ icon="trash"
133
+ emphasis="subtle"
134
+ size="small"
135
+ intent="danger"
136
+ [label]="removeLabel(subtask)"
137
+ [disabled]="disabled()"
138
+ (clicked)="remove(subtask)"
139
+ />
140
+ }
141
+ </li>
142
+ }
143
+ </ul>
144
+ } @else {
145
+ <p class="hm-subtask-list__empty">{{ text().empty }}</p>
146
+ }
147
+ @if (editable()) {
148
+ <form class="hm-subtask-list__add" (submit)="add($event)">
149
+ <hm-input class="hm-subtask-list__field" [label]="text().placeholder" labelHidden [placeholder]="text().placeholder" [disabled]="disabled()" [(value)]="draft" />
150
+ <hm-button type="submit" emphasis="medium" icon="plus" [disabled]="disabled() || !draft().trim()">{{ text().add }}</hm-button>
151
+ </form>
152
+ }
153
+ `,
154
+ }]
155
+ }], propDecorators: { subtasks: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtasks", required: false }] }, { type: i0.Output, args: ["subtasksChange"] }], editable: [{ type: i0.Input, args: [{ isSignal: true, alias: "editable", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], toggled: [{ type: i0.Output, args: ["toggled"] }], added: [{ type: i0.Output, args: ["added"] }], removed: [{ type: i0.Output, args: ["removed"] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
156
+
157
+ /**
158
+ * Dependências de uma tarefa: de quais ela depende ("Bloqueada por") e quais dependem dela ("Bloqueia"), com
159
+ * status de cada uma e, com `editable`, acrescentar e remover.
160
+ *
161
+ * ```html
162
+ * <hm-task-dependencies [taskId]="tarefa.id" [tasks]="projeto.tarefas" [statuses]="fluxo.statuses" editable
163
+ * (add)="ligar($event)" (remove)="desligar($event)" />
164
+ * ```
165
+ *
166
+ * - Lê `dependsOn` de cada `TaskItem` (`taskDependencies`). As mudanças só são pedidas (`add`/`remove`): a lista
167
+ * de tarefas é do app.
168
+ * - Antes de pedir, recusa o que criaria um ciclo (`wouldCreateDependencyCycle`) com a mensagem no campo.
169
+ * - Concluída leva "concluída" em texto, além do selo.
170
+ */
171
+ class TaskDependenciesComponent {
172
+ #icons = useHermesIcons(TASK_DETAIL_ICONS);
173
+ taskId = input.required(...(ngDevMode ? [{ debugName: "taskId" }] : /* istanbul ignore next */ []));
174
+ /** Todas as tarefas do projeto (as dependências são lidas de `dependsOn`). */
175
+ tasks = input.required(...(ngDevMode ? [{ debugName: "tasks" }] : /* istanbul ignore next */ []));
176
+ statuses = input([], ...(ngDevMode ? [{ debugName: "statuses" }] : /* istanbul ignore next */ []));
177
+ editable = input(false, { ...(ngDevMode ? { debugName: "editable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
178
+ disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
179
+ add = output();
180
+ remove = output();
181
+ id = `hm-task-deps-${Math.random().toString(36).slice(2, 8)}`;
182
+ /** Sobrescreve textos desta peça (parcial; o resto segue o idioma ativo). */
183
+ texts = input(null, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
184
+ #messages = workflowMessages(() => this.texts());
185
+ text = computed(() => this.#messages.tasks.dependencies, ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
186
+ error = signal('', ...(ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []));
187
+ #deps = computed(() => taskDependencies(this.tasks(), this.taskId()), ...(ngDevMode ? [{ debugName: "#deps" }] : /* istanbul ignore next */ []));
188
+ groups = computed(() => [
189
+ { key: 'before', title: this.text().blockedBy, items: this.#deps().blockedBy },
190
+ { key: 'after', title: this.text().blocks, items: this.#deps().blocks },
191
+ ], ...(ngDevMode ? [{ debugName: "groups" }] : /* istanbul ignore next */ []));
192
+ candidates = computed(() => {
193
+ const taken = new Set(this.#deps().blockedBy.map((t) => t.id));
194
+ return this.tasks()
195
+ .filter((t) => t.id !== this.taskId() && !taken.has(t.id))
196
+ .map((t) => ({ value: t.id, label: t.key ? `${t.key} ${t.title}` : t.title }));
197
+ }, ...(ngDevMode ? [{ debugName: "candidates" }] : /* istanbul ignore next */ []));
198
+ removeLabel(task) {
199
+ return formatMessage(this.text().remove, { title: task.title });
200
+ }
201
+ choose(id) {
202
+ if (!id)
203
+ return;
204
+ if (wouldCreateDependencyCycle(this.tasks(), this.taskId(), id)) {
205
+ this.error.set(this.text().cycle);
206
+ return;
207
+ }
208
+ this.error.set('');
209
+ this.add.emit({ taskId: this.taskId(), dependsOn: id });
210
+ }
211
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: TaskDependenciesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
212
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: TaskDependenciesComponent, isStandalone: true, selector: "hm-task-dependencies", inputs: { taskId: { classPropertyName: "taskId", publicName: "taskId", isSignal: true, isRequired: true, transformFunction: null }, tasks: { classPropertyName: "tasks", publicName: "tasks", isSignal: true, isRequired: true, transformFunction: null }, statuses: { classPropertyName: "statuses", publicName: "statuses", isSignal: true, isRequired: false, transformFunction: null }, editable: { classPropertyName: "editable", publicName: "editable", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { add: "add", remove: "remove" }, host: { classAttribute: "hm-task-dependencies" }, ngImport: i0, template: `
213
+ @for (group of groups(); track group.key) {
214
+ <div class="hm-task-dependencies__group">
215
+ <span class="hm-task-dependencies__heading" [id]="id + '-' + group.key">{{ group.title }}</span>
216
+ @if (group.items.length) {
217
+ <ul class="hm-task-dependencies__list" role="list" [attr.aria-labelledby]="id + '-' + group.key">
218
+ @for (task of group.items; track task.id) {
219
+ <li class="hm-task-dependencies__item" [class.hm-task-dependencies__item--done]="task.done">
220
+ @if (task.key) {
221
+ <span class="hm-task-dependencies__key">{{ task.key }}</span>
222
+ }
223
+ <span class="hm-task-dependencies__title">{{ task.title }}</span>
224
+ @if (task.done) {
225
+ <span class="hm-visually-hidden">({{ text().done }})</span>
226
+ }
227
+ @if (task.status) {
228
+ <hm-status-badge [status]="task.status" [statuses]="statuses()" size="small" appearance="dot" />
229
+ }
230
+ @if (editable() && group.key === 'before') {
231
+ <hm-icon-button
232
+ icon="unlink"
233
+ emphasis="subtle"
234
+ size="small"
235
+ [label]="removeLabel(task)"
236
+ [disabled]="disabled()"
237
+ (clicked)="remove.emit({ taskId: taskId(), dependsOn: task.id })"
238
+ />
239
+ }
240
+ </li>
241
+ }
242
+ </ul>
243
+ } @else {
244
+ <p class="hm-task-dependencies__empty">{{ text().empty }}</p>
245
+ }
246
+ </div>
247
+ }
248
+ @if (editable()) {
249
+ <hm-combobox
250
+ class="hm-task-dependencies__add"
251
+ [label]="text().add"
252
+ [options]="candidates()"
253
+ [value]="''"
254
+ [error]="error()"
255
+ [disabled]="disabled()"
256
+ icon="link"
257
+ (valueChange)="choose($event)"
258
+ />
259
+ }
260
+ `, isInline: true, dependencies: [{ kind: "component", type: ComboboxComponent, selector: "hm-combobox", inputs: ["label", "options", "value", "placeholder", "icon", "hint", "size", "labelHidden", "clearable", "loading", "allowCustomValue"], outputs: ["valueChange"] }, { kind: "component", type: IconButtonComponent, selector: "hm-icon-button", inputs: ["label", "icon", "solid", "iconDirection", "emphasis", "intent", "size", "disabled", "toggle", "pressed", "keyShortcuts"], outputs: ["pressedChange", "clicked"] }, { kind: "component", type: StatusBadgeComponent, selector: "hm-status-badge", inputs: ["status", "statuses", "size", "appearance", "texts"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
261
+ }
262
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: TaskDependenciesComponent, decorators: [{
263
+ type: Component,
264
+ args: [{
265
+ selector: 'hm-task-dependencies',
266
+ imports: [ComboboxComponent, IconButtonComponent, StatusBadgeComponent],
267
+ changeDetection: ChangeDetectionStrategy.OnPush,
268
+ host: { class: 'hm-task-dependencies' },
269
+ template: `
270
+ @for (group of groups(); track group.key) {
271
+ <div class="hm-task-dependencies__group">
272
+ <span class="hm-task-dependencies__heading" [id]="id + '-' + group.key">{{ group.title }}</span>
273
+ @if (group.items.length) {
274
+ <ul class="hm-task-dependencies__list" role="list" [attr.aria-labelledby]="id + '-' + group.key">
275
+ @for (task of group.items; track task.id) {
276
+ <li class="hm-task-dependencies__item" [class.hm-task-dependencies__item--done]="task.done">
277
+ @if (task.key) {
278
+ <span class="hm-task-dependencies__key">{{ task.key }}</span>
279
+ }
280
+ <span class="hm-task-dependencies__title">{{ task.title }}</span>
281
+ @if (task.done) {
282
+ <span class="hm-visually-hidden">({{ text().done }})</span>
283
+ }
284
+ @if (task.status) {
285
+ <hm-status-badge [status]="task.status" [statuses]="statuses()" size="small" appearance="dot" />
286
+ }
287
+ @if (editable() && group.key === 'before') {
288
+ <hm-icon-button
289
+ icon="unlink"
290
+ emphasis="subtle"
291
+ size="small"
292
+ [label]="removeLabel(task)"
293
+ [disabled]="disabled()"
294
+ (clicked)="remove.emit({ taskId: taskId(), dependsOn: task.id })"
295
+ />
296
+ }
297
+ </li>
298
+ }
299
+ </ul>
300
+ } @else {
301
+ <p class="hm-task-dependencies__empty">{{ text().empty }}</p>
302
+ }
303
+ </div>
304
+ }
305
+ @if (editable()) {
306
+ <hm-combobox
307
+ class="hm-task-dependencies__add"
308
+ [label]="text().add"
309
+ [options]="candidates()"
310
+ [value]="''"
311
+ [error]="error()"
312
+ [disabled]="disabled()"
313
+ icon="link"
314
+ (valueChange)="choose($event)"
315
+ />
316
+ }
317
+ `,
318
+ }]
319
+ }], propDecorators: { taskId: [{ type: i0.Input, args: [{ isSignal: true, alias: "taskId", required: true }] }], tasks: [{ type: i0.Input, args: [{ isSignal: true, alias: "tasks", required: true }] }], statuses: [{ type: i0.Input, args: [{ isSignal: true, alias: "statuses", required: false }] }], editable: [{ type: i0.Input, args: [{ isSignal: true, alias: "editable", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], add: [{ type: i0.Output, args: ["add"] }], remove: [{ type: i0.Output, args: ["remove"] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
320
+
321
+ function isoDay(value) {
322
+ if (typeof value === 'string' && /^\d{4}-\d{2}-\d{2}$/.test(value))
323
+ return value;
324
+ const time = workflowTime(value);
325
+ if (time === null)
326
+ return null;
327
+ const d = new Date(time);
328
+ return `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, '0')}-${String(d.getDate()).padStart(2, '0')}`;
329
+ }
330
+ /**
331
+ * Editor de tarefa (criar ou editar): título, descrição, status, prioridade, responsável, início, prazo e
332
+ * estimativa, sobre os campos do Hermes.
333
+ *
334
+ * ```html
335
+ * <hm-task-editor [task]="tarefa" [statuses]="fluxo.statuses" [people]="pessoas" (save)="gravar($event)" (cancel)="fechar()" />
336
+ * <hm-task-editor [statuses]="fluxo.statuses" [people]="pessoas" (save)="criar($event)" /> <!-- nova -->
337
+ * ```
338
+ *
339
+ * - `task` preenche o formulário (e troca de tarefa recomeça o rascunho); sem ela, o editor cria ("Criar tarefa").
340
+ * - Título é obrigatório: salvar vazio mostra o erro no campo e não emite.
341
+ * - `save` leva um `TaskDraft` (datas em ISO). Gravar e fechar é do app. Campos sem lista (`statuses`/`people`
342
+ * vazios) somem.
343
+ */
344
+ class TaskEditorComponent {
345
+ #icons = useHermesIcons(TASK_DETAIL_ICONS);
346
+ /** Tarefa a editar; `null` = nova. */
347
+ task = input(null, ...(ngDevMode ? [{ debugName: "task" }] : /* istanbul ignore next */ []));
348
+ statuses = input([], ...(ngDevMode ? [{ debugName: "statuses" }] : /* istanbul ignore next */ []));
349
+ people = input([], ...(ngDevMode ? [{ debugName: "people" }] : /* istanbul ignore next */ []));
350
+ priorityScale = input('priority', ...(ngDevMode ? [{ debugName: "priorityScale" }] : /* istanbul ignore next */ []));
351
+ /** Id da pessoa logada (atalho "Atribuir a mim"). */
352
+ me = input('', ...(ngDevMode ? [{ debugName: "me" }] : /* istanbul ignore next */ []));
353
+ save = output();
354
+ cancel = output();
355
+ /** Sobrescreve textos desta peça (parcial; o resto segue o idioma ativo). */
356
+ texts = input(null, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
357
+ #messages = workflowMessages(() => this.texts());
358
+ text = computed(() => this.#messages.tasks.editor, ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
359
+ fields = computed(() => this.#messages.tasks.fields, ...(ngDevMode ? [{ debugName: "fields" }] : /* istanbul ignore next */ []));
360
+ title = signal('', ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
361
+ description = signal('', ...(ngDevMode ? [{ debugName: "description" }] : /* istanbul ignore next */ []));
362
+ status = signal(null, ...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
363
+ priority = signal(null, ...(ngDevMode ? [{ debugName: "priority" }] : /* istanbul ignore next */ []));
364
+ assigneeId = signal(null, ...(ngDevMode ? [{ debugName: "assigneeId" }] : /* istanbul ignore next */ []));
365
+ start = signal(null, ...(ngDevMode ? [{ debugName: "start" }] : /* istanbul ignore next */ []));
366
+ due = signal(null, ...(ngDevMode ? [{ debugName: "due" }] : /* istanbul ignore next */ []));
367
+ estimate = signal(null, ...(ngDevMode ? [{ debugName: "estimate" }] : /* istanbul ignore next */ []));
368
+ titleError = signal('', ...(ngDevMode ? [{ debugName: "titleError" }] : /* istanbul ignore next */ []));
369
+ estimateText = computed(() => (this.estimate() === null ? '' : String(this.estimate())), ...(ngDevMode ? [{ debugName: "estimateText" }] : /* istanbul ignore next */ []));
370
+ constructor() {
371
+ effect(() => {
372
+ const task = this.task();
373
+ this.title.set(task?.title ?? '');
374
+ this.description.set(task?.description ?? '');
375
+ this.status.set(task?.status ?? this.statuses()[0]?.id ?? null);
376
+ this.priority.set(task?.priority ?? null);
377
+ this.assigneeId.set(task?.assignee?.id ?? null);
378
+ this.start.set(isoDay(task?.start));
379
+ this.due.set(isoDay(task?.due));
380
+ this.estimate.set(task?.estimate ?? null);
381
+ this.titleError.set('');
382
+ });
383
+ }
384
+ setEstimate(value) {
385
+ const n = value === '' || value === null || value === undefined ? null : Number(value);
386
+ this.estimate.set(n === null || Number.isNaN(n) ? null : n);
387
+ }
388
+ submit(event) {
389
+ event.preventDefault();
390
+ const title = this.title().trim();
391
+ if (!title) {
392
+ this.titleError.set(this.text().titleRequired);
393
+ return;
394
+ }
395
+ this.titleError.set('');
396
+ this.save.emit({
397
+ title,
398
+ description: this.description().trim(),
399
+ status: this.status(),
400
+ priority: this.priority(),
401
+ assigneeId: this.assigneeId(),
402
+ start: this.start(),
403
+ due: this.due(),
404
+ estimate: this.estimate(),
405
+ });
406
+ }
407
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: TaskEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
408
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: TaskEditorComponent, isStandalone: true, selector: "hm-task-editor", inputs: { task: { classPropertyName: "task", publicName: "task", isSignal: true, isRequired: false, transformFunction: null }, statuses: { classPropertyName: "statuses", publicName: "statuses", isSignal: true, isRequired: false, transformFunction: null }, people: { classPropertyName: "people", publicName: "people", isSignal: true, isRequired: false, transformFunction: null }, priorityScale: { classPropertyName: "priorityScale", publicName: "priorityScale", isSignal: true, isRequired: false, transformFunction: null }, me: { classPropertyName: "me", publicName: "me", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { save: "save", cancel: "cancel" }, host: { classAttribute: "hm-task-editor" }, ngImport: i0, template: `
409
+ <form class="hm-task-editor__form" (submit)="submit($event)" novalidate>
410
+ <hm-input class="hm-task-editor__title" [label]="fields().title" required [error]="titleError()" [(value)]="title" />
411
+ <hm-textarea [label]="fields().description" [rows]="4" autoGrow [(value)]="description" />
412
+ <div class="hm-task-editor__grid">
413
+ @if (statuses().length) {
414
+ <hm-select [label]="fields().status" [value]="status() ?? ''" (valueChange)="status.set($event || null)">
415
+ @for (s of statuses(); track s.id) {
416
+ <option [value]="s.id">{{ s.label }}</option>
417
+ }
418
+ </hm-select>
419
+ }
420
+ <hm-level-select [scale]="priorityScale()" [label]="fields().priority" allowEmpty [value]="priority()" (valueChange)="priority.set($event || null)" />
421
+ @if (people().length) {
422
+ <hm-assignee-select [people]="people()" [label]="fields().assignee" [me]="me()" [(value)]="assigneeId" />
423
+ }
424
+ <hm-date-picker [label]="fields().start" [(value)]="start" />
425
+ <hm-date-picker [label]="fields().due" [min]="start()" [(value)]="due" />
426
+ <hm-input [label]="fields().estimate" type="number" [min]="0" [value]="estimateText()" (valueChange)="setEstimate($event)" />
427
+ </div>
428
+ <div class="hm-task-editor__actions">
429
+ <hm-button emphasis="medium" (clicked)="cancel.emit()">{{ text().cancel }}</hm-button>
430
+ <hm-button type="submit">{{ task() ? text().save : text().create }}</hm-button>
431
+ </div>
432
+ </form>
433
+ `, isInline: true, dependencies: [{ kind: "component", type: InputComponent, selector: "hm-input", inputs: ["value", "label", "type", "placeholder", "icon", "labelHidden", "hint", "prefix", "suffix", "prefixIcon", "mask", "maskValue", "min", "max", "step", "stepButtons", "maxLength", "autocomplete", "inputMode"], outputs: ["valueChange"] }, { kind: "component", type: TextareaComponent, selector: "hm-textarea", inputs: ["value", "label", "hint", "placeholder", "maxLength", "rows", "autoGrow", "labelHidden", "loading", "maxRows", "submitKey", "mentionCandidates", "mentionTrigger", "texts"], outputs: ["valueChange", "submitted", "mentioned"] }, { kind: "component", type: SelectComponent, selector: "hm-select", inputs: ["value", "label", "labelHidden", "hint"], outputs: ["valueChange"] }, { kind: "component", type: DatePickerComponent, selector: "hm-date-picker", inputs: ["value", "label", "labelHidden", "hint", "placeholder", "min", "max", "valueFormat"], outputs: ["valueChange"] }, { kind: "component", type: ButtonComponent, selector: "hm-button", inputs: ["emphasis", "intent", "size", "type", "icon", "iconDirection", "iconEnd", "disabled", "loading", "loadingState", "block", "link", "newTab", "caret", "inMenu", "toggle", "pressed"], outputs: ["loadingStateChange", "pressedChange", "clicked"] }, { kind: "component", type: LevelSelectComponent, selector: "hm-level-select", inputs: ["scale", "value", "label", "hint", "appearance", "allowEmpty", "disabled", "texts"], outputs: ["valueChange"] }, { kind: "component", type: AssigneeSelectComponent, selector: "hm-assignee-select", inputs: ["people", "value", "label", "hint", "error", "allowUnassigned", "me", "disabled", "required", "texts"], outputs: ["valueChange", "assign"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
434
+ }
435
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: TaskEditorComponent, decorators: [{
436
+ type: Component,
437
+ args: [{
438
+ selector: 'hm-task-editor',
439
+ imports: [InputComponent, TextareaComponent, SelectComponent, DatePickerComponent, ButtonComponent, LevelSelectComponent, AssigneeSelectComponent],
440
+ changeDetection: ChangeDetectionStrategy.OnPush,
441
+ host: { class: 'hm-task-editor' },
442
+ template: `
443
+ <form class="hm-task-editor__form" (submit)="submit($event)" novalidate>
444
+ <hm-input class="hm-task-editor__title" [label]="fields().title" required [error]="titleError()" [(value)]="title" />
445
+ <hm-textarea [label]="fields().description" [rows]="4" autoGrow [(value)]="description" />
446
+ <div class="hm-task-editor__grid">
447
+ @if (statuses().length) {
448
+ <hm-select [label]="fields().status" [value]="status() ?? ''" (valueChange)="status.set($event || null)">
449
+ @for (s of statuses(); track s.id) {
450
+ <option [value]="s.id">{{ s.label }}</option>
451
+ }
452
+ </hm-select>
453
+ }
454
+ <hm-level-select [scale]="priorityScale()" [label]="fields().priority" allowEmpty [value]="priority()" (valueChange)="priority.set($event || null)" />
455
+ @if (people().length) {
456
+ <hm-assignee-select [people]="people()" [label]="fields().assignee" [me]="me()" [(value)]="assigneeId" />
457
+ }
458
+ <hm-date-picker [label]="fields().start" [(value)]="start" />
459
+ <hm-date-picker [label]="fields().due" [min]="start()" [(value)]="due" />
460
+ <hm-input [label]="fields().estimate" type="number" [min]="0" [value]="estimateText()" (valueChange)="setEstimate($event)" />
461
+ </div>
462
+ <div class="hm-task-editor__actions">
463
+ <hm-button emphasis="medium" (clicked)="cancel.emit()">{{ text().cancel }}</hm-button>
464
+ <hm-button type="submit">{{ task() ? text().save : text().create }}</hm-button>
465
+ </div>
466
+ </form>
467
+ `,
468
+ }]
469
+ }], ctorParameters: () => [], propDecorators: { task: [{ type: i0.Input, args: [{ isSignal: true, alias: "task", required: false }] }], statuses: [{ type: i0.Input, args: [{ isSignal: true, alias: "statuses", required: false }] }], people: [{ type: i0.Input, args: [{ isSignal: true, alias: "people", required: false }] }], priorityScale: [{ type: i0.Input, args: [{ isSignal: true, alias: "priorityScale", required: false }] }], me: [{ type: i0.Input, args: [{ isSignal: true, alias: "me", required: false }] }], save: [{ type: i0.Output, args: ["save"] }], cancel: [{ type: i0.Output, args: ["cancel"] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
470
+
471
+ /**
472
+ * Detalhe de uma tarefa: cabeçalho (código, título, status trocável), propriedades, descrição, subtarefas,
473
+ * dependências e histórico — cada seção só aparece quando o dado vem.
474
+ *
475
+ * ```html
476
+ * <hm-task-detail [task]="tarefa" [workflow]="fluxo" [tasks]="projeto.tarefas" [history]="historico"
477
+ * editable (statusChange)="mudar($event)" (subtasksChange)="gravarSubtarefas($event)"
478
+ * (dependencyAdd)="ligar($event)" (dependencyRemove)="desligar($event)" (edit)="abrirEditor()" />
479
+ * ```
480
+ *
481
+ * - Com `workflow`, o status é um `hm-status-select` (só as transições permitidas, com confirmação); sem ele, o selo.
482
+ * - Propriedades numa lista de definição: responsável (`hm-assignee`), prioridade (`hm-level-badge`), prazo
483
+ * (`hm-deadline`), início, estimativa e etiquetas.
484
+ * - Subtarefas (`hm-subtask-list`), dependências (`hm-task-dependencies`, com `tasks`) e histórico
485
+ * (`hm-change-history`, com `history`) ficam em seções com título (`headingLevel`).
486
+ * - `editable` liga a edição das subtarefas e dependências e o botão "Editar" (emite `edit`, para o app abrir
487
+ * o `hm-task-editor`). Tudo só emite; os dados são do app.
488
+ */
489
+ class TaskDetailComponent {
490
+ #icons = useHermesIcons(TASK_DETAIL_ICONS);
491
+ task = input.required(...(ngDevMode ? [{ debugName: "task" }] : /* istanbul ignore next */ []));
492
+ /** Fluxo do status: liga o `hm-status-select`. */
493
+ workflow = input(null, ...(ngDevMode ? [{ debugName: "workflow" }] : /* istanbul ignore next */ []));
494
+ /** Tarefas do projeto: liga a seção de dependências. */
495
+ tasks = input(null, ...(ngDevMode ? [{ debugName: "tasks" }] : /* istanbul ignore next */ []));
496
+ /** Histórico: liga a seção de histórico. */
497
+ history = input(null, ...(ngDevMode ? [{ debugName: "history" }] : /* istanbul ignore next */ []));
498
+ priorityScale = input('priority', ...(ngDevMode ? [{ debugName: "priorityScale" }] : /* istanbul ignore next */ []));
499
+ editable = input(false, { ...(ngDevMode ? { debugName: "editable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
500
+ /** Nível do título da tarefa; as seções usam o seguinte. */
501
+ headingLevel = input(2, ...(ngDevMode ? [{ debugName: "headingLevel" }] : /* istanbul ignore next */ []));
502
+ now = input(null, ...(ngDevMode ? [{ debugName: "now" }] : /* istanbul ignore next */ []));
503
+ statusChange = output();
504
+ subtasksChange = output();
505
+ dependencyAdd = output();
506
+ dependencyRemove = output();
507
+ edit = output();
508
+ /** Sobrescreve textos desta peça (parcial; o resto segue o idioma ativo). */
509
+ texts = input(null, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
510
+ #messages = workflowMessages(() => this.texts());
511
+ text = computed(() => this.#messages.tasks.detail, ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
512
+ fields = computed(() => this.#messages.tasks.fields, ...(ngDevMode ? [{ debugName: "fields" }] : /* istanbul ignore next */ []));
513
+ #dateOnly = { dateStyle: 'medium' };
514
+ dueText = computed(() => formatTimelineDate(this.task().due, this.#messages.meta.locale, this.#dateOnly)?.text ?? '', ...(ngDevMode ? [{ debugName: "dueText" }] : /* istanbul ignore next */ []));
515
+ startText = computed(() => formatTimelineDate(this.task().start, this.#messages.meta.locale, this.#dateOnly)?.text ?? '', ...(ngDevMode ? [{ debugName: "startText" }] : /* istanbul ignore next */ []));
516
+ estimateText = computed(() => formatMessage(this.#messages.tasks.card.estimate, { value: this.task().estimate ?? 0 }), ...(ngDevMode ? [{ debugName: "estimateText" }] : /* istanbul ignore next */ []));
517
+ subtasksTitle = computed(() => this.#messages.tasks.subtasks.label, ...(ngDevMode ? [{ debugName: "subtasksTitle" }] : /* istanbul ignore next */ []));
518
+ dependenciesTitle = computed(() => this.#messages.tasks.dependencies.label, ...(ngDevMode ? [{ debugName: "dependenciesTitle" }] : /* istanbul ignore next */ []));
519
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: TaskDetailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
520
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: TaskDetailComponent, isStandalone: true, selector: "hm-task-detail", inputs: { task: { classPropertyName: "task", publicName: "task", isSignal: true, isRequired: true, transformFunction: null }, workflow: { classPropertyName: "workflow", publicName: "workflow", isSignal: true, isRequired: false, transformFunction: null }, tasks: { classPropertyName: "tasks", publicName: "tasks", isSignal: true, isRequired: false, transformFunction: null }, history: { classPropertyName: "history", publicName: "history", isSignal: true, isRequired: false, transformFunction: null }, priorityScale: { classPropertyName: "priorityScale", publicName: "priorityScale", isSignal: true, isRequired: false, transformFunction: null }, editable: { classPropertyName: "editable", publicName: "editable", isSignal: true, isRequired: false, transformFunction: null }, headingLevel: { classPropertyName: "headingLevel", publicName: "headingLevel", isSignal: true, isRequired: false, transformFunction: null }, now: { classPropertyName: "now", publicName: "now", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { statusChange: "statusChange", subtasksChange: "subtasksChange", dependencyAdd: "dependencyAdd", dependencyRemove: "dependencyRemove", edit: "edit" }, host: { classAttribute: "hm-task-detail" }, ngImport: i0, template: `
521
+ <div class="hm-task-detail__header">
522
+ <div class="hm-task-detail__heading">
523
+ @if (task().key) {
524
+ <span class="hm-task-detail__key">{{ task().key }}</span>
525
+ }
526
+ <span class="hm-task-detail__title" role="heading" [attr.aria-level]="headingLevel()">{{ task().title }}</span>
527
+ </div>
528
+ <div class="hm-task-detail__header-actions">
529
+ @if (workflow(); as workflow) {
530
+ <hm-status-select [definition]="workflow" [value]="task().status ?? null" [apply]="false" [disabled]="!editable()" (transition)="statusChange.emit($event)" />
531
+ } @else if (task().status) {
532
+ <hm-status-badge [status]="task().status" />
533
+ }
534
+ @if (editable()) {
535
+ <hm-button emphasis="medium" icon="pencil" (clicked)="edit.emit()">{{ text().edit }}</hm-button>
536
+ }
537
+ </div>
538
+ </div>
539
+
540
+ <dl class="hm-task-detail__properties" [attr.aria-label]="text().properties">
541
+ <div class="hm-task-detail__property">
542
+ <dt>{{ fields().assignee }}</dt>
543
+ <dd><hm-assignee [assignee]="task().assignee ?? null" /></dd>
544
+ </div>
545
+ @if (task().priority) {
546
+ <div class="hm-task-detail__property">
547
+ <dt>{{ fields().priority }}</dt>
548
+ <dd><hm-level-badge [scale]="priorityScale()" [value]="task().priority" /></dd>
549
+ </div>
550
+ }
551
+ @if (task().due) {
552
+ <div class="hm-task-detail__property">
553
+ <dt>{{ fields().due }}</dt>
554
+ <dd><hm-deadline [due]="task().due" [now]="now()" /> <span class="hm-task-detail__date">{{ dueText() }}</span></dd>
555
+ </div>
556
+ }
557
+ @if (startText()) {
558
+ <div class="hm-task-detail__property">
559
+ <dt>{{ fields().start }}</dt>
560
+ <dd>{{ startText() }}</dd>
561
+ </div>
562
+ }
563
+ @if (task().estimate !== null && task().estimate !== undefined) {
564
+ <div class="hm-task-detail__property">
565
+ <dt>{{ fields().estimate }}</dt>
566
+ <dd>{{ estimateText() }}</dd>
567
+ </div>
568
+ }
569
+ @if (task().labels?.length) {
570
+ <div class="hm-task-detail__property">
571
+ <dt>{{ fields().labels }}</dt>
572
+ <dd class="hm-task-detail__labels">
573
+ @for (label of task().labels; track label.name) {
574
+ <hm-tag [name]="label.name" [color]="label.color ?? 'neutral'" />
575
+ }
576
+ </dd>
577
+ </div>
578
+ }
579
+ </dl>
580
+
581
+ <section class="hm-task-detail__section">
582
+ <span class="hm-task-detail__section-title" role="heading" [attr.aria-level]="headingLevel() + 1">{{ fields().description }}</span>
583
+ <p class="hm-task-detail__description">{{ task().description || text().noDescription }}</p>
584
+ </section>
585
+
586
+ @if (task().subtasks || editable()) {
587
+ <section class="hm-task-detail__section">
588
+ <span class="hm-task-detail__section-title" role="heading" [attr.aria-level]="headingLevel() + 1">{{ subtasksTitle() }}</span>
589
+ <hm-subtask-list [subtasks]="task().subtasks ?? []" [editable]="editable()" (subtasksChange)="subtasksChange.emit($event)" />
590
+ </section>
591
+ }
592
+
593
+ @if (tasks(); as tasks) {
594
+ <section class="hm-task-detail__section">
595
+ <span class="hm-task-detail__section-title" role="heading" [attr.aria-level]="headingLevel() + 1">{{ dependenciesTitle() }}</span>
596
+ <hm-task-dependencies
597
+ [taskId]="task().id"
598
+ [tasks]="tasks"
599
+ [statuses]="workflow()?.statuses ?? []"
600
+ [editable]="editable()"
601
+ (add)="dependencyAdd.emit($event)"
602
+ (remove)="dependencyRemove.emit($event)"
603
+ />
604
+ </section>
605
+ }
606
+
607
+ @if (history(); as history) {
608
+ <section class="hm-task-detail__section">
609
+ <span class="hm-task-detail__section-title" role="heading" [attr.aria-level]="headingLevel() + 1">{{ text().history }}</span>
610
+ <hm-change-history [entries]="history" [statuses]="workflow()?.statuses ?? []" />
611
+ </section>
612
+ }
613
+ `, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "hm-button", inputs: ["emphasis", "intent", "size", "type", "icon", "iconDirection", "iconEnd", "disabled", "loading", "loadingState", "block", "link", "newTab", "caret", "inMenu", "toggle", "pressed"], outputs: ["loadingStateChange", "pressedChange", "clicked"] }, { kind: "component", type: TagComponent, selector: "hm-tag", inputs: ["name", "color", "compact"] }, { kind: "component", type: StatusBadgeComponent, selector: "hm-status-badge", inputs: ["status", "statuses", "size", "appearance", "texts"] }, { kind: "component", type: StatusSelectComponent, selector: "hm-status-select", inputs: ["definition", "value", "label", "size", "disabled", "apply", "texts"], outputs: ["valueChange", "transition"] }, { kind: "component", type: LevelBadgeComponent, selector: "hm-level-badge", inputs: ["scale", "value", "compact", "showScale", "texts"] }, { kind: "component", type: AssigneeComponent, selector: "hm-assignee", inputs: ["assignee", "size", "showDetail", "escalation", "reassignable", "escalatable", "maxEscalation", "texts"], outputs: ["reassign", "escalate"] }, { kind: "component", type: DeadlineComponent, selector: "hm-deadline", inputs: ["due", "completedAt", "variant", "soonHours", "now", "texts"], outputs: ["expired"] }, { kind: "component", type: ChangeHistoryComponent, selector: "hm-change-history", inputs: ["entries", "statuses", "order", "label", "dateFormat", "texts"] }, { kind: "component", type: SubtaskListComponent, selector: "hm-subtask-list", inputs: ["subtasks", "editable", "disabled", "label", "texts"], outputs: ["subtasksChange", "toggled", "added", "removed"] }, { kind: "component", type: TaskDependenciesComponent, selector: "hm-task-dependencies", inputs: ["taskId", "tasks", "statuses", "editable", "disabled", "texts"], outputs: ["add", "remove"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
614
+ }
615
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: TaskDetailComponent, decorators: [{
616
+ type: Component,
617
+ args: [{
618
+ selector: 'hm-task-detail',
619
+ imports: [
620
+ ButtonComponent,
621
+ TagComponent,
622
+ StatusBadgeComponent,
623
+ StatusSelectComponent,
624
+ LevelBadgeComponent,
625
+ AssigneeComponent,
626
+ DeadlineComponent,
627
+ ChangeHistoryComponent,
628
+ SubtaskListComponent,
629
+ TaskDependenciesComponent,
630
+ ],
631
+ changeDetection: ChangeDetectionStrategy.OnPush,
632
+ host: { class: 'hm-task-detail' },
633
+ template: `
634
+ <div class="hm-task-detail__header">
635
+ <div class="hm-task-detail__heading">
636
+ @if (task().key) {
637
+ <span class="hm-task-detail__key">{{ task().key }}</span>
638
+ }
639
+ <span class="hm-task-detail__title" role="heading" [attr.aria-level]="headingLevel()">{{ task().title }}</span>
640
+ </div>
641
+ <div class="hm-task-detail__header-actions">
642
+ @if (workflow(); as workflow) {
643
+ <hm-status-select [definition]="workflow" [value]="task().status ?? null" [apply]="false" [disabled]="!editable()" (transition)="statusChange.emit($event)" />
644
+ } @else if (task().status) {
645
+ <hm-status-badge [status]="task().status" />
646
+ }
647
+ @if (editable()) {
648
+ <hm-button emphasis="medium" icon="pencil" (clicked)="edit.emit()">{{ text().edit }}</hm-button>
649
+ }
650
+ </div>
651
+ </div>
652
+
653
+ <dl class="hm-task-detail__properties" [attr.aria-label]="text().properties">
654
+ <div class="hm-task-detail__property">
655
+ <dt>{{ fields().assignee }}</dt>
656
+ <dd><hm-assignee [assignee]="task().assignee ?? null" /></dd>
657
+ </div>
658
+ @if (task().priority) {
659
+ <div class="hm-task-detail__property">
660
+ <dt>{{ fields().priority }}</dt>
661
+ <dd><hm-level-badge [scale]="priorityScale()" [value]="task().priority" /></dd>
662
+ </div>
663
+ }
664
+ @if (task().due) {
665
+ <div class="hm-task-detail__property">
666
+ <dt>{{ fields().due }}</dt>
667
+ <dd><hm-deadline [due]="task().due" [now]="now()" /> <span class="hm-task-detail__date">{{ dueText() }}</span></dd>
668
+ </div>
669
+ }
670
+ @if (startText()) {
671
+ <div class="hm-task-detail__property">
672
+ <dt>{{ fields().start }}</dt>
673
+ <dd>{{ startText() }}</dd>
674
+ </div>
675
+ }
676
+ @if (task().estimate !== null && task().estimate !== undefined) {
677
+ <div class="hm-task-detail__property">
678
+ <dt>{{ fields().estimate }}</dt>
679
+ <dd>{{ estimateText() }}</dd>
680
+ </div>
681
+ }
682
+ @if (task().labels?.length) {
683
+ <div class="hm-task-detail__property">
684
+ <dt>{{ fields().labels }}</dt>
685
+ <dd class="hm-task-detail__labels">
686
+ @for (label of task().labels; track label.name) {
687
+ <hm-tag [name]="label.name" [color]="label.color ?? 'neutral'" />
688
+ }
689
+ </dd>
690
+ </div>
691
+ }
692
+ </dl>
693
+
694
+ <section class="hm-task-detail__section">
695
+ <span class="hm-task-detail__section-title" role="heading" [attr.aria-level]="headingLevel() + 1">{{ fields().description }}</span>
696
+ <p class="hm-task-detail__description">{{ task().description || text().noDescription }}</p>
697
+ </section>
698
+
699
+ @if (task().subtasks || editable()) {
700
+ <section class="hm-task-detail__section">
701
+ <span class="hm-task-detail__section-title" role="heading" [attr.aria-level]="headingLevel() + 1">{{ subtasksTitle() }}</span>
702
+ <hm-subtask-list [subtasks]="task().subtasks ?? []" [editable]="editable()" (subtasksChange)="subtasksChange.emit($event)" />
703
+ </section>
704
+ }
705
+
706
+ @if (tasks(); as tasks) {
707
+ <section class="hm-task-detail__section">
708
+ <span class="hm-task-detail__section-title" role="heading" [attr.aria-level]="headingLevel() + 1">{{ dependenciesTitle() }}</span>
709
+ <hm-task-dependencies
710
+ [taskId]="task().id"
711
+ [tasks]="tasks"
712
+ [statuses]="workflow()?.statuses ?? []"
713
+ [editable]="editable()"
714
+ (add)="dependencyAdd.emit($event)"
715
+ (remove)="dependencyRemove.emit($event)"
716
+ />
717
+ </section>
718
+ }
719
+
720
+ @if (history(); as history) {
721
+ <section class="hm-task-detail__section">
722
+ <span class="hm-task-detail__section-title" role="heading" [attr.aria-level]="headingLevel() + 1">{{ text().history }}</span>
723
+ <hm-change-history [entries]="history" [statuses]="workflow()?.statuses ?? []" />
724
+ </section>
725
+ }
726
+ `,
727
+ }]
728
+ }], propDecorators: { task: [{ type: i0.Input, args: [{ isSignal: true, alias: "task", required: true }] }], workflow: [{ type: i0.Input, args: [{ isSignal: true, alias: "workflow", required: false }] }], tasks: [{ type: i0.Input, args: [{ isSignal: true, alias: "tasks", required: false }] }], history: [{ type: i0.Input, args: [{ isSignal: true, alias: "history", required: false }] }], priorityScale: [{ type: i0.Input, args: [{ isSignal: true, alias: "priorityScale", required: false }] }], editable: [{ type: i0.Input, args: [{ isSignal: true, alias: "editable", required: false }] }], headingLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "headingLevel", required: false }] }], now: [{ type: i0.Input, args: [{ isSignal: true, alias: "now", required: false }] }], statusChange: [{ type: i0.Output, args: ["statusChange"] }], subtasksChange: [{ type: i0.Output, args: ["subtasksChange"] }], dependencyAdd: [{ type: i0.Output, args: ["dependencyAdd"] }], dependencyRemove: [{ type: i0.Output, args: ["dependencyRemove"] }], edit: [{ type: i0.Output, args: ["edit"] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
729
+
730
+ // Ponto de import `@trismegisto/angular/task-detail` (secundário do ng-packagr).
731
+
732
+ /**
733
+ * Generated bundle index. Do not edit.
734
+ */
735
+
736
+ export { SubtaskListComponent, TaskDependenciesComponent, TaskDetailComponent, TaskEditorComponent };
737
+ //# sourceMappingURL=trismegisto-angular-task-detail.mjs.map