@genesislcap/pbc-notify-ui 1.0.4 → 1.0.6

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 (237) hide show
  1. package/dist/dts/components/components.d.ts.map +1 -1
  2. package/dist/dts/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.d.ts.map +1 -1
  3. package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.d.ts +19 -0
  4. package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.d.ts.map +1 -0
  5. package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.styles.d.ts +2 -0
  6. package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.styles.d.ts.map +1 -0
  7. package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.d.ts +3 -0
  8. package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.d.ts.map +1 -0
  9. package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.d.ts +12 -0
  10. package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.d.ts.map +1 -0
  11. package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.styles.d.ts +2 -0
  12. package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.styles.d.ts.map +1 -0
  13. package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.d.ts +3 -0
  14. package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.d.ts.map +1 -0
  15. package/dist/dts/components/foundation-inbox/inbox.d.ts +8 -15
  16. package/dist/dts/components/foundation-inbox/inbox.d.ts.map +1 -1
  17. package/dist/dts/components/foundation-inbox/inbox.styles.d.ts.map +1 -1
  18. package/dist/dts/components/foundation-inbox/inbox.template.d.ts.map +1 -1
  19. package/dist/dts/components/foundation-inbox/inbox.types.d.ts +1 -1
  20. package/dist/dts/components/foundation-inbox/inbox.types.d.ts.map +1 -1
  21. package/dist/dts/components/foundation-inbox/inbox.utils.d.ts +0 -4
  22. package/dist/dts/components/foundation-inbox/inbox.utils.d.ts.map +1 -1
  23. package/dist/dts/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.d.ts.map +1 -0
  24. package/dist/dts/components/foundation-notification-dashboard/components/routes/route-management.d.ts +4 -0
  25. package/dist/dts/components/foundation-notification-dashboard/components/routes/route-management.d.ts.map +1 -0
  26. package/dist/dts/components/foundation-notification-dashboard/components/routes/tabs/email-distribution-route-management.d.ts.map +1 -0
  27. package/dist/dts/components/foundation-notification-dashboard/components/routes/tabs/email-user-route-management.d.ts.map +1 -0
  28. package/dist/dts/components/foundation-notification-dashboard/components/routes/tabs/log-route-management.d.ts.map +1 -0
  29. package/dist/dts/components/foundation-notification-dashboard/components/routes/tabs/ms-teams-route-management.d.ts.map +1 -0
  30. package/dist/dts/components/foundation-notification-dashboard/components/routes/tabs/screen-route-management.d.ts.map +1 -0
  31. package/dist/dts/components/foundation-notification-dashboard/components/rules/columns.d.ts +3 -0
  32. package/dist/dts/components/foundation-notification-dashboard/components/rules/columns.d.ts.map +1 -0
  33. package/dist/dts/components/foundation-notification-dashboard/components/{rule-dialog → rules/rule-dialog}/rule-condition-builder/rule-condition-builder.d.ts +2 -2
  34. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.d.ts.map +1 -0
  35. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.styles.d.ts.map +1 -0
  36. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.d.ts.map +1 -0
  37. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.types.d.ts.map +1 -0
  38. package/dist/dts/components/foundation-notification-dashboard/components/{rule-dialog → rules/rule-dialog}/rule-dialog.d.ts +7 -7
  39. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.d.ts.map +1 -0
  40. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.styles.d.ts +2 -0
  41. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.styles.d.ts.map +1 -0
  42. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.d.ts +3 -0
  43. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.d.ts.map +1 -0
  44. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.types.d.ts +23 -0
  45. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.types.d.ts.map +1 -0
  46. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-management.d.ts +11 -0
  47. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-management.d.ts.map +1 -0
  48. package/dist/dts/components/foundation-notification-dashboard/components/templates/columns.d.ts +3 -0
  49. package/dist/dts/components/foundation-notification-dashboard/components/templates/columns.d.ts.map +1 -0
  50. package/dist/dts/components/foundation-notification-dashboard/components/{condition-builder → templates/template-dialog/condition-builder}/condition-builder.d.ts +3 -3
  51. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.d.ts.map +1 -0
  52. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.styles.d.ts.map +1 -0
  53. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.template.d.ts.map +1 -0
  54. package/dist/dts/components/foundation-notification-dashboard/components/{parameter-builder → templates/template-dialog/parameter-builder}/parameter-builder.d.ts +1 -1
  55. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.d.ts.map +1 -0
  56. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.d.ts.map +1 -0
  57. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.d.ts.map +1 -0
  58. package/dist/dts/components/foundation-notification-dashboard/components/{template-dialog → templates/template-dialog}/template-dialog.d.ts +8 -8
  59. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.d.ts.map +1 -0
  60. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.styles.d.ts.map +1 -0
  61. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.d.ts.map +1 -0
  62. package/dist/dts/components/foundation-notification-dashboard/components/{template-dialog → templates/template-dialog}/template-dialog.types.d.ts +6 -6
  63. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types.d.ts.map +1 -0
  64. package/dist/dts/components/foundation-notification-dashboard/components/{template-dialog → templates/template-dialog}/template-dialog.utils.d.ts +2 -2
  65. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.utils.d.ts.map +1 -0
  66. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-management.d.ts +11 -0
  67. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-management.d.ts.map +1 -0
  68. package/dist/dts/components/foundation-notification-dashboard/index.d.ts +0 -1
  69. package/dist/dts/components/foundation-notification-dashboard/index.d.ts.map +1 -1
  70. package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.d.ts +2 -0
  71. package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.d.ts.map +1 -1
  72. package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.styles.d.ts.map +1 -1
  73. package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.tabs.d.ts +8 -0
  74. package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.tabs.d.ts.map +1 -0
  75. package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.template.d.ts.map +1 -1
  76. package/dist/dts/components/foundation-notification-dashboard/styles/management.styles.d.ts +2 -0
  77. package/dist/dts/components/foundation-notification-dashboard/styles/management.styles.d.ts.map +1 -0
  78. package/dist/dts/components/foundation-notification-dashboard/styles/rules-and-templates.styles.d.ts +2 -0
  79. package/dist/dts/components/foundation-notification-dashboard/styles/rules-and-templates.styles.d.ts.map +1 -0
  80. package/dist/dts/services/alert.service.d.ts +4 -3
  81. package/dist/dts/services/alert.service.d.ts.map +1 -1
  82. package/dist/dts/services/notify.service.d.ts +2 -2
  83. package/dist/dts/services/notify.service.d.ts.map +1 -1
  84. package/dist/dts/services/rule.service.d.ts +3 -3
  85. package/dist/dts/services/rule.service.d.ts.map +1 -1
  86. package/dist/dts/services/system.service.d.ts +3 -3
  87. package/dist/dts/services/system.service.d.ts.map +1 -1
  88. package/dist/dts/services/template.service.d.ts +12 -0
  89. package/dist/dts/services/template.service.d.ts.map +1 -0
  90. package/dist/dts/utils/eventDetail.d.ts.map +1 -0
  91. package/dist/dts/utils/gridConfig.d.ts.map +1 -0
  92. package/dist/dts/utils/humanize.d.ts +2 -0
  93. package/dist/dts/utils/humanize.d.ts.map +1 -0
  94. package/dist/dts/utils/icons.d.ts.map +1 -0
  95. package/dist/dts/utils/index.d.ts +5 -0
  96. package/dist/dts/utils/index.d.ts.map +1 -1
  97. package/dist/dts/utils/logger.d.ts.map +1 -1
  98. package/dist/dts/utils/updateArray.d.ts +2 -0
  99. package/dist/dts/utils/updateArray.d.ts.map +1 -0
  100. package/dist/esm/components/components.js +28 -18
  101. package/dist/esm/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.js +2 -0
  102. package/dist/esm/components/foundation-inbox/components/inbox-subscription/inbox-subscription.js +77 -0
  103. package/dist/esm/components/foundation-inbox/components/inbox-subscription/inbox-subscription.styles.js +36 -0
  104. package/dist/esm/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.js +39 -0
  105. package/dist/esm/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.js +53 -0
  106. package/dist/esm/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.styles.js +24 -0
  107. package/dist/esm/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.js +67 -0
  108. package/dist/esm/components/foundation-inbox/inbox.js +22 -54
  109. package/dist/esm/components/foundation-inbox/inbox.styles.js +29 -107
  110. package/dist/esm/components/foundation-inbox/inbox.template.js +146 -159
  111. package/dist/esm/components/foundation-inbox/inbox.utils.js +0 -90
  112. package/dist/esm/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.js +99 -0
  113. package/dist/esm/components/foundation-notification-dashboard/components/routes/route-management.js +59 -0
  114. package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/email-distribution-route-management.js +56 -0
  115. package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/email-user-route-management.js +66 -0
  116. package/dist/esm/components/foundation-notification-dashboard/{management → components/routes/tabs}/log-route-management.js +23 -2
  117. package/dist/esm/components/foundation-notification-dashboard/{management → components/routes/tabs}/ms-teams-route-management.js +28 -2
  118. package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/screen-route-management.js +76 -0
  119. package/dist/esm/components/foundation-notification-dashboard/components/rules/columns.js +46 -0
  120. package/dist/esm/components/foundation-notification-dashboard/components/{rule-dialog → rules/rule-dialog}/rule-condition-builder/rule-condition-builder.js +1 -1
  121. package/dist/esm/components/foundation-notification-dashboard/components/{rule-dialog → rules/rule-dialog}/rule-condition-builder/rule-condition-builder.template.js +1 -1
  122. package/dist/esm/components/foundation-notification-dashboard/components/{rule-dialog → rules/rule-dialog}/rule-dialog.js +15 -16
  123. package/dist/esm/components/foundation-notification-dashboard/components/{rule-dialog → rules/rule-dialog}/rule-dialog.styles.js +35 -37
  124. package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.js +164 -0
  125. package/dist/esm/components/foundation-notification-dashboard/{management → components/rules}/rule-management.js +9 -51
  126. package/dist/esm/components/foundation-notification-dashboard/components/templates/columns.js +46 -0
  127. package/dist/esm/components/foundation-notification-dashboard/components/{condition-builder → templates/template-dialog/condition-builder}/condition-builder.js +8 -4
  128. package/dist/esm/components/foundation-notification-dashboard/components/{condition-builder → templates/template-dialog/condition-builder}/condition-builder.template.js +2 -2
  129. package/dist/esm/components/foundation-notification-dashboard/components/{parameter-builder → templates/template-dialog/parameter-builder}/parameter-builder.js +1 -1
  130. package/dist/esm/components/foundation-notification-dashboard/components/{parameter-builder → templates/template-dialog/parameter-builder}/parameter-builder.template.js +2 -2
  131. package/dist/esm/components/foundation-notification-dashboard/components/{template-dialog → templates/template-dialog}/template-dialog.js +15 -16
  132. package/dist/esm/components/foundation-notification-dashboard/components/{template-dialog → templates/template-dialog}/template-dialog.styles.js +36 -43
  133. package/dist/esm/components/foundation-notification-dashboard/components/{template-dialog → templates/template-dialog}/template-dialog.template.js +62 -54
  134. package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types.js +4 -0
  135. package/dist/esm/components/foundation-notification-dashboard/components/{template-dialog → templates/template-dialog}/template-dialog.utils.js +10 -9
  136. package/dist/esm/components/foundation-notification-dashboard/components/templates/template-management.js +74 -0
  137. package/dist/esm/components/foundation-notification-dashboard/index.js +0 -1
  138. package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.js +4 -0
  139. package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.styles.js +3 -25
  140. package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.tabs.js +28 -0
  141. package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.template.js +22 -31
  142. package/dist/esm/components/foundation-notification-dashboard/{management → styles}/management.styles.js +1 -14
  143. package/dist/esm/components/foundation-notification-dashboard/styles/rules-and-templates.styles.js +17 -0
  144. package/dist/esm/services/alert.service.js +3 -14
  145. package/dist/esm/services/{rule-template.service.js → template.service.js} +3 -3
  146. package/dist/esm/utils/humanize.js +10 -0
  147. package/dist/esm/utils/index.js +5 -0
  148. package/dist/esm/utils/logger.js +1 -1
  149. package/dist/esm/utils/updateArray.js +26 -0
  150. package/package.json +1 -1
  151. package/dist/dts/components/foundation-inbox/components/components.d.ts +0 -5
  152. package/dist/dts/components/foundation-inbox/components/components.d.ts.map +0 -1
  153. package/dist/dts/components/foundation-inbox/components/index.d.ts +0 -2
  154. package/dist/dts/components/foundation-inbox/components/index.d.ts.map +0 -1
  155. package/dist/dts/components/foundation-notification-dashboard/components/condition-builder/condition-builder.d.ts.map +0 -1
  156. package/dist/dts/components/foundation-notification-dashboard/components/condition-builder/condition-builder.styles.d.ts.map +0 -1
  157. package/dist/dts/components/foundation-notification-dashboard/components/condition-builder/condition-builder.template.d.ts.map +0 -1
  158. package/dist/dts/components/foundation-notification-dashboard/components/parameter-builder/parameter-builder.d.ts.map +0 -1
  159. package/dist/dts/components/foundation-notification-dashboard/components/parameter-builder/parameter-builder.styles.d.ts.map +0 -1
  160. package/dist/dts/components/foundation-notification-dashboard/components/parameter-builder/parameter-builder.template.d.ts.map +0 -1
  161. package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/index.d.ts +0 -3
  162. package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/index.d.ts.map +0 -1
  163. package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-condition-builder/index.d.ts +0 -3
  164. package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-condition-builder/index.d.ts.map +0 -1
  165. package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-condition-builder/rule-condition-builder.d.ts.map +0 -1
  166. package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-condition-builder/rule-condition-builder.styles.d.ts.map +0 -1
  167. package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-condition-builder/rule-condition-builder.template.d.ts.map +0 -1
  168. package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-condition-builder/rule-condition-builder.types.d.ts.map +0 -1
  169. package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.d.ts.map +0 -1
  170. package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.styles.d.ts +0 -2
  171. package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.styles.d.ts.map +0 -1
  172. package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.template.d.ts +0 -3
  173. package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.template.d.ts.map +0 -1
  174. package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.types.d.ts +0 -59
  175. package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.types.d.ts.map +0 -1
  176. package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.d.ts.map +0 -1
  177. package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.styles.d.ts.map +0 -1
  178. package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.template.d.ts.map +0 -1
  179. package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.types.d.ts.map +0 -1
  180. package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.utils.d.ts.map +0 -1
  181. package/dist/dts/components/foundation-notification-dashboard/management/email-distribution-route-management.d.ts.map +0 -1
  182. package/dist/dts/components/foundation-notification-dashboard/management/email-user-route-management.d.ts.map +0 -1
  183. package/dist/dts/components/foundation-notification-dashboard/management/index.d.ts +0 -9
  184. package/dist/dts/components/foundation-notification-dashboard/management/index.d.ts.map +0 -1
  185. package/dist/dts/components/foundation-notification-dashboard/management/log-route-management.d.ts.map +0 -1
  186. package/dist/dts/components/foundation-notification-dashboard/management/management.styles.d.ts +0 -3
  187. package/dist/dts/components/foundation-notification-dashboard/management/management.styles.d.ts.map +0 -1
  188. package/dist/dts/components/foundation-notification-dashboard/management/ms-teams-route-management.d.ts.map +0 -1
  189. package/dist/dts/components/foundation-notification-dashboard/management/notify-audit-management.d.ts.map +0 -1
  190. package/dist/dts/components/foundation-notification-dashboard/management/rule-management.d.ts +0 -29
  191. package/dist/dts/components/foundation-notification-dashboard/management/rule-management.d.ts.map +0 -1
  192. package/dist/dts/components/foundation-notification-dashboard/management/rule-template-management.d.ts +0 -11
  193. package/dist/dts/components/foundation-notification-dashboard/management/rule-template-management.d.ts.map +0 -1
  194. package/dist/dts/components/foundation-notification-dashboard/management/screen-route-management.d.ts.map +0 -1
  195. package/dist/dts/components/foundation-notification-dashboard/utils/eventDetail.d.ts.map +0 -1
  196. package/dist/dts/components/foundation-notification-dashboard/utils/gridConfig.d.ts.map +0 -1
  197. package/dist/dts/components/foundation-notification-dashboard/utils/icons.d.ts.map +0 -1
  198. package/dist/dts/services/rule-template.service.d.ts +0 -12
  199. package/dist/dts/services/rule-template.service.d.ts.map +0 -1
  200. package/dist/esm/components/foundation-inbox/components/components.js +0 -50
  201. package/dist/esm/components/foundation-inbox/components/index.js +0 -1
  202. package/dist/esm/components/foundation-notification-dashboard/components/rule-dialog/index.js +0 -2
  203. package/dist/esm/components/foundation-notification-dashboard/components/rule-dialog/rule-condition-builder/index.js +0 -2
  204. package/dist/esm/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.template.js +0 -131
  205. package/dist/esm/components/foundation-notification-dashboard/components/template-dialog/template-dialog.types.js +0 -5
  206. package/dist/esm/components/foundation-notification-dashboard/management/email-distribution-route-management.js +0 -23
  207. package/dist/esm/components/foundation-notification-dashboard/management/email-user-route-management.js +0 -20
  208. package/dist/esm/components/foundation-notification-dashboard/management/index.js +0 -8
  209. package/dist/esm/components/foundation-notification-dashboard/management/notify-audit-management.js +0 -24
  210. package/dist/esm/components/foundation-notification-dashboard/management/rule-template-management.js +0 -116
  211. package/dist/esm/components/foundation-notification-dashboard/management/screen-route-management.js +0 -21
  212. /package/dist/dts/components/foundation-notification-dashboard/{management → components/notify-audit}/notify-audit-management.d.ts +0 -0
  213. /package/dist/dts/components/foundation-notification-dashboard/{management → components/routes/tabs}/email-distribution-route-management.d.ts +0 -0
  214. /package/dist/dts/components/foundation-notification-dashboard/{management → components/routes/tabs}/email-user-route-management.d.ts +0 -0
  215. /package/dist/dts/components/foundation-notification-dashboard/{management → components/routes/tabs}/log-route-management.d.ts +0 -0
  216. /package/dist/dts/components/foundation-notification-dashboard/{management → components/routes/tabs}/ms-teams-route-management.d.ts +0 -0
  217. /package/dist/dts/components/foundation-notification-dashboard/{management → components/routes/tabs}/screen-route-management.d.ts +0 -0
  218. /package/dist/dts/components/foundation-notification-dashboard/components/{rule-dialog → rules/rule-dialog}/rule-condition-builder/rule-condition-builder.styles.d.ts +0 -0
  219. /package/dist/dts/components/foundation-notification-dashboard/components/{rule-dialog → rules/rule-dialog}/rule-condition-builder/rule-condition-builder.template.d.ts +0 -0
  220. /package/dist/dts/components/foundation-notification-dashboard/components/{rule-dialog → rules/rule-dialog}/rule-condition-builder/rule-condition-builder.types.d.ts +0 -0
  221. /package/dist/dts/components/foundation-notification-dashboard/components/{condition-builder → templates/template-dialog/condition-builder}/condition-builder.styles.d.ts +0 -0
  222. /package/dist/dts/components/foundation-notification-dashboard/components/{condition-builder → templates/template-dialog/condition-builder}/condition-builder.template.d.ts +0 -0
  223. /package/dist/dts/components/foundation-notification-dashboard/components/{parameter-builder → templates/template-dialog/parameter-builder}/parameter-builder.styles.d.ts +0 -0
  224. /package/dist/dts/components/foundation-notification-dashboard/components/{parameter-builder → templates/template-dialog/parameter-builder}/parameter-builder.template.d.ts +0 -0
  225. /package/dist/dts/components/foundation-notification-dashboard/components/{template-dialog → templates/template-dialog}/template-dialog.styles.d.ts +0 -0
  226. /package/dist/dts/components/foundation-notification-dashboard/components/{template-dialog → templates/template-dialog}/template-dialog.template.d.ts +0 -0
  227. /package/dist/dts/{components/foundation-notification-dashboard/utils → utils}/eventDetail.d.ts +0 -0
  228. /package/dist/dts/{components/foundation-notification-dashboard/utils → utils}/gridConfig.d.ts +0 -0
  229. /package/dist/dts/{components/foundation-notification-dashboard/utils → utils}/icons.d.ts +0 -0
  230. /package/dist/esm/components/foundation-notification-dashboard/components/{rule-dialog → rules/rule-dialog}/rule-condition-builder/rule-condition-builder.styles.js +0 -0
  231. /package/dist/esm/components/foundation-notification-dashboard/components/{rule-dialog → rules/rule-dialog}/rule-condition-builder/rule-condition-builder.types.js +0 -0
  232. /package/dist/esm/components/foundation-notification-dashboard/components/{rule-dialog → rules/rule-dialog}/rule-dialog.types.js +0 -0
  233. /package/dist/esm/components/foundation-notification-dashboard/components/{condition-builder → templates/template-dialog/condition-builder}/condition-builder.styles.js +0 -0
  234. /package/dist/esm/components/foundation-notification-dashboard/components/{parameter-builder → templates/template-dialog/parameter-builder}/parameter-builder.styles.js +0 -0
  235. /package/dist/esm/{components/foundation-notification-dashboard/utils → utils}/eventDetail.js +0 -0
  236. /package/dist/esm/{components/foundation-notification-dashboard/utils → utils}/gridConfig.js +0 -0
  237. /package/dist/esm/{components/foundation-notification-dashboard/utils → utils}/icons.js +0 -0
@@ -1,55 +1,10 @@
1
1
  import { __awaiter, __decorate } from "tslib";
2
- import { buttonCellRenderer } from '@genesislcap/foundation-entity-management';
3
2
  import { css, customElement, FASTElement, html, ref, repeat } from '@microsoft/fast-element';
4
- import { RuleService } from '../../../services/rule.service';
5
- import { RuleDialogMode } from '../components/rule-dialog';
6
- import { deleteIcon, editIcon } from '../utils/icons';
7
- import { rulesAndTemplatesStyles } from './management.styles';
8
3
  import { showNotificationDialog } from '@genesislcap/foundation-notifications';
9
- export const ruleColumns = (context) => [
10
- {
11
- field: 'NAME',
12
- headerName: 'Name',
13
- flex: 1
14
- },
15
- {
16
- field: 'DESCRIPTION',
17
- headerName: 'Description',
18
- flex: 1
19
- },
20
- {
21
- field: 'USER_NAME',
22
- headerName: 'Username',
23
- flex: 1
24
- },
25
- {
26
- field: 'RULE_TABLE',
27
- headerName: 'Table',
28
- flex: 1
29
- },
30
- {
31
- field: 'RULE_STATUS',
32
- headerName: 'Status',
33
- flex: 1
34
- },
35
- {
36
- field: 'RULE_EXPRESSION',
37
- headerName: 'Expression',
38
- flex: 1
39
- },
40
- {
41
- field: 'RESULT_EXPRESSION',
42
- headerName: 'Result',
43
- flex: 1
44
- },
45
- {
46
- field: 'RULE_EXECUTION_STRATEGY',
47
- headerName: 'Execution Strategy',
48
- flex: 1,
49
- },
50
- buttonCellRenderer('Edit', (e) => context.editRule(e), editIcon),
51
- buttonCellRenderer('Delete', (e) => context.deleteRule(e), deleteIcon)
52
- ];
4
+ import { RuleDialogMode } from './rule-dialog/rule-dialog.types';
5
+ import { rulesAndTemplatesStyles } from '../../styles/rules-and-templates.styles';
6
+ import { RULE_MANAGEMENT_COLUMNS } from './columns';
7
+ import { RuleService } from '../../../../services/rule.service';
53
8
  let RuleManagement = class RuleManagement extends FASTElement {
54
9
  openRuleDialog() {
55
10
  this.ruleDialog.openDialog({ mode: RuleDialogMode.CREATE });
@@ -90,19 +45,22 @@ RuleManagement = __decorate([
90
45
  class="add"
91
46
  @click=${x => x.openRuleDialog()}
92
47
  >
93
- <zero-icon name="plus" size="lg" variant="solid"></zero-icon>Create
48
+ <zero-icon name="plus" size="lg" variant="solid"></zero-icon>
49
+ Add
94
50
  </zero-button>
95
51
  </div>
52
+
96
53
  <div class="grid">
97
54
  <zero-grid-pro only-template-col-defs>
98
55
  <grid-pro-genesis-datasource resource-name="ALL_DYNAMIC_NOTIFY_RULES">
99
- ${repeat(x => ruleColumns(x), html `
56
+ ${repeat(x => RULE_MANAGEMENT_COLUMNS(x), html `
100
57
  <grid-pro-column :definition=${x => x} />
101
58
  `)}
102
59
  </grid-pro-genesis-datasource>
103
60
  </zero-grid-pro>
104
61
  </div>
105
62
  </div>
63
+
106
64
  <rule-dialog
107
65
  ${ref('ruleDialog')}
108
66
  >
@@ -0,0 +1,46 @@
1
+ import { buttonCellRenderer } from "@genesislcap/foundation-entity-management";
2
+ import { deleteIcon, editIcon } from "../../../../utils";
3
+ export const TEMPLATE_MANAGEMENT_COLUMNS = (context) => [
4
+ {
5
+ field: 'NAME',
6
+ headerName: 'Name',
7
+ flex: 1
8
+ },
9
+ {
10
+ field: 'DESCRIPTION',
11
+ headerName: 'Description',
12
+ flex: 1
13
+ },
14
+ {
15
+ field: 'USER_NAME',
16
+ headerName: 'Username',
17
+ flex: 1
18
+ },
19
+ {
20
+ field: 'RULE_TABLE',
21
+ headerName: 'Table',
22
+ flex: 1
23
+ },
24
+ {
25
+ field: 'RULE_STATUS',
26
+ headerName: 'Status',
27
+ flex: 1
28
+ },
29
+ {
30
+ field: 'RULE_EXPRESSION',
31
+ headerName: 'Expression',
32
+ flex: 1
33
+ },
34
+ {
35
+ field: 'RESULT_EXPRESSION',
36
+ headerName: 'Result',
37
+ flex: 1
38
+ },
39
+ {
40
+ field: 'RULE_EXECUTION_STRATEGY',
41
+ headerName: 'Execution Strategy',
42
+ flex: 1,
43
+ },
44
+ buttonCellRenderer('Edit', (e) => context.editTemplate(e), editIcon),
45
+ buttonCellRenderer('Delete', (e) => context.deleteTemplate(e), deleteIcon)
46
+ ];
@@ -1,9 +1,9 @@
1
1
  import { __awaiter, __decorate } from "tslib";
2
2
  import { FASTElement, attr, customElement, html, observable } from '@microsoft/fast-element';
3
- import { SystemService } from '../../../../services/system.service';
4
- import { RIGHT_CRITERIA_VALUE } from '../../types/right-criteria';
5
3
  import { ConditionBuilderStyles as styles } from './condition-builder.styles';
6
4
  import { ConditionBuilderTemplate as template } from './condition-builder.template';
5
+ import { RIGHT_CRITERIA_VALUE } from '../../../../types/right-criteria';
6
+ import { SystemService } from '../../../../../../services/system.service';
7
7
  const name = 'condition-builder';
8
8
  let ConditionBuilder = class ConditionBuilder extends FASTElement {
9
9
  constructor() {
@@ -27,7 +27,9 @@ let ConditionBuilder = class ConditionBuilder extends FASTElement {
27
27
  if (this.condition.ID) {
28
28
  this.assignLeftValue();
29
29
  this.logicalOperator = this.condition.LOGICAL_OPERATOR;
30
+ const rightValue = this.condition.RIGHT_VALUE; // Save4Edit
30
31
  this.rightCriteria = this.condition.RIGHT_CRITERIA;
32
+ this.condition.RIGHT_VALUE = rightValue;
31
33
  this.assignRightValue();
32
34
  }
33
35
  });
@@ -38,8 +40,8 @@ let ConditionBuilder = class ConditionBuilder extends FASTElement {
38
40
  createRightValueItems() {
39
41
  let optionsInHTML = '';
40
42
  this.rightValueItems.forEach(item => {
41
- var _a;
42
- optionsInHTML += `<zero-option value="${item.UUID}">${(_a = item.PARAM_NAME) !== null && _a !== void 0 ? _a : ''}</zero-option>`;
43
+ var _a, _b;
44
+ optionsInHTML += `<zero-option value="${(_a = item.UUID) !== null && _a !== void 0 ? _a : ''}">${(_b = item.PARAM_NAME) !== null && _b !== void 0 ? _b : ''}</zero-option>`;
43
45
  });
44
46
  this.rightValueItemsProperty = html `
45
47
  ${optionsInHTML}
@@ -65,7 +67,9 @@ let ConditionBuilder = class ConditionBuilder extends FASTElement {
65
67
  }
66
68
  this.assignLeftValue();
67
69
  this.logicalOperator = this.condition.LOGICAL_OPERATOR;
70
+ const rightValue = this.condition.RIGHT_VALUE; // Save4Edit
68
71
  this.rightCriteria = this.condition.RIGHT_CRITERIA;
72
+ this.condition.RIGHT_VALUE = rightValue;
69
73
  this.assignRightValue();
70
74
  });
71
75
  }
@@ -1,7 +1,7 @@
1
1
  import { sync } from '@genesislcap/foundation-utils';
2
2
  import { html, ref, repeat, when } from "@microsoft/fast-element";
3
- import { ALL_LOGICAL_OPERATORS } from '../../types/logical-operator';
4
- import { ALL_RIGHT_CRITERIAS, RIGHT_CRITERIA_USER_ENTRY, RIGHT_CRITERIA_VALUE } from '../../types/right-criteria';
3
+ import { ALL_LOGICAL_OPERATORS } from '../../../../types/logical-operator';
4
+ import { ALL_RIGHT_CRITERIAS, RIGHT_CRITERIA_USER_ENTRY, RIGHT_CRITERIA_VALUE } from '../../../../types/right-criteria';
5
5
  export const ConditionBuilderTemplate = html `
6
6
  <div class="condition-builder">
7
7
  <zero-select
@@ -2,7 +2,7 @@ import { __awaiter, __decorate } from "tslib";
2
2
  import { FASTElement, attr, customElement, observable } from "@microsoft/fast-element";
3
3
  import { ParameterBuilderTemplate as template } from './parameter-builder.template';
4
4
  import { ParameterBuilderStyles as styles } from './parameter-builder.styles';
5
- import { PARAM_SOURCE_TYPE_DEFINED_GROUP, PARAM_SOURCE_TYPE_REQ_REP } from "../../types/param-source-type";
5
+ import { PARAM_SOURCE_TYPE_DEFINED_GROUP, PARAM_SOURCE_TYPE_REQ_REP } from "../../../../types/param-source-type";
6
6
  const name = 'parameter-builder';
7
7
  let ParameterBuilder = class ParameterBuilder extends FASTElement {
8
8
  constructor() {
@@ -1,7 +1,7 @@
1
1
  import { sync } from '@genesislcap/foundation-utils';
2
2
  import { html, ref, repeat, when } from "@microsoft/fast-element";
3
- import { ALL_PARAM_SOURCE_TYPES, PARAM_SOURCE_TYPE_DEFINED_GROUP, PARAM_SOURCE_TYPE_REQ_REP, PARAM_SOURCE_TYPE_USER_TEXT } from '../../types/param-source-type';
4
- import { ALL_PARAM_TYPES } from '../../types/param-type';
3
+ import { ALL_PARAM_SOURCE_TYPES, PARAM_SOURCE_TYPE_DEFINED_GROUP, PARAM_SOURCE_TYPE_REQ_REP, PARAM_SOURCE_TYPE_USER_TEXT } from '../../../../types/param-source-type';
4
+ import { ALL_PARAM_TYPES } from '../../../../types/param-type';
5
5
  export const ParameterBuilderTemplate = html `
6
6
  <div class="parameter-builder">
7
7
  <zero-text-field
@@ -3,17 +3,16 @@ import { customElement, FASTElement, observable } from '@microsoft/fast-element'
3
3
  import { TemplateDialogTemplate as template } from './template-dialog.template';
4
4
  import { TemplateDialogStyles as styles } from './template-dialog.styles';
5
5
  import { TemplateDialogMode } from './template-dialog.types';
6
- import { RuleTemplateService } from '../../../../services/rule-template.service';
7
- import { RULE_EXECUTION_UNLIMITED } from '../../types/rule-execution-strategy';
8
- import { RIGHT_CRITERIA_USER_ENTRY, RIGHT_CRITERIA_VALUE } from '../../types/right-criteria';
9
- import { EXPRESSION_TYPE_PLACEHOLDER } from '../../types/expression-type';
10
6
  import { createAssignment, createConditions, createEmptyCondition, createEmptyParameter, createParameterDetails, getAssignmentValue, UUIDGenerator } from './template-dialog.utils';
11
7
  import { showNotification } from '@genesislcap/foundation-notifications';
12
- import { logger } from '../../../../utils';
13
- import { NotifyService } from '../../../../services/notify.service';
14
- import { SEVERITY_INFORMATION } from '../../types/severity';
15
- import { SystemService } from '../../../../services/system.service';
16
- import { humanize } from '../../../foundation-inbox/inbox.utils';
8
+ import { RULE_EXECUTION_UNLIMITED } from '../../../types/rule-execution-strategy';
9
+ import { SEVERITY_INFORMATION } from '../../../types/severity';
10
+ import { EXPRESSION_TYPE_PLACEHOLDER } from '../../../types/expression-type';
11
+ import { RIGHT_CRITERIA_USER_ENTRY, RIGHT_CRITERIA_VALUE } from '../../../types/right-criteria';
12
+ import { humanize, logger } from '../../../../../utils';
13
+ import { TemplateService } from '../../../../../services/template.service';
14
+ import { SystemService } from '../../../../../services/system.service';
15
+ import { NotifyService } from '../../../../../services/notify.service';
17
16
  const name = 'template-dialog';
18
17
  let TemplateDialog = class TemplateDialog extends FASTElement {
19
18
  constructor() {
@@ -28,7 +27,7 @@ let TemplateDialog = class TemplateDialog extends FASTElement {
28
27
  openDialog(params) {
29
28
  var _a, _b;
30
29
  return __awaiter(this, void 0, void 0, function* () {
31
- this.resources = yield this.systemService.getResources(); // TODO: Get tables and views
30
+ this.resources = yield this.systemService.getResources(); // TODO: Tables + Views
32
31
  this.topics = yield this.notifyService.getNotifyRouteTopics();
33
32
  this.templateDialogMode = params.mode;
34
33
  switch (params.mode) {
@@ -71,7 +70,7 @@ let TemplateDialog = class TemplateDialog extends FASTElement {
71
70
  ? RIGHT_CRITERIA_USER_ENTRY
72
71
  : RIGHT_CRITERIA_VALUE,
73
72
  RIGHT_VALUE: condition.RIGHT.TYPE === EXPRESSION_TYPE_PLACEHOLDER
74
- ? condition.RIGHT.KEY
73
+ ? this.parameters.find(parameter => parameter.PARAM_NAME === condition.RIGHT.KEY).UUID
75
74
  : (_b = condition.RIGHT.VALUE) !== null && _b !== void 0 ? _b : condition.RIGHT.NAME
76
75
  };
77
76
  });
@@ -98,8 +97,8 @@ let TemplateDialog = class TemplateDialog extends FASTElement {
98
97
  : 'Edit';
99
98
  return `${mode} Template`;
100
99
  }
101
- complete() {
102
- const ruleTemplate = Object.assign(Object.assign({}, (this.templateDialogMode === TemplateDialogMode.EDIT && { DYNAMIC_RULE_ID: this.ruleTemplateId })), { RULE_NAME: this.name, RULE_DESCRIPTION: this.description, RULE_TABLE: this.resource, RULE_EXECUTION_STRATEGY: this.executionStrategy, RULE_EXPRESSION: {
100
+ submit() {
101
+ const template = Object.assign(Object.assign({}, (this.templateDialogMode === TemplateDialogMode.EDIT && { DYNAMIC_RULE_ID: this.ruleTemplateId })), { RULE_NAME: this.name, RULE_DESCRIPTION: this.description, RULE_TABLE: this.resource, RULE_EXECUTION_STRATEGY: this.executionStrategy, RULE_EXPRESSION: {
103
102
  CONDITIONS: createConditions(this.conditions, this.parameters)
104
103
  }, RAW_RULE_EXPRESSION: null, RESULT_EXPRESSION: {
105
104
  ASSIGNMENTS: [
@@ -114,12 +113,12 @@ let TemplateDialog = class TemplateDialog extends FASTElement {
114
113
  switch (this.templateDialogMode) {
115
114
  case TemplateDialogMode.CREATE:
116
115
  this.ruleTemplateService
117
- .createRuleTemplate(ruleTemplate)
116
+ .createRuleTemplate(template)
118
117
  .then(response => this.validateResponse(response));
119
118
  break;
120
119
  case TemplateDialogMode.EDIT:
121
120
  this.ruleTemplateService
122
- .editRuleTemplate(ruleTemplate)
121
+ .editRuleTemplate(template)
123
122
  .then(response => this.validateResponse(response));
124
123
  break;
125
124
  default:
@@ -198,7 +197,7 @@ let TemplateDialog = class TemplateDialog extends FASTElement {
198
197
  }
199
198
  };
200
199
  __decorate([
201
- RuleTemplateService
200
+ TemplateService
202
201
  ], TemplateDialog.prototype, "ruleTemplateService", void 0);
203
202
  __decorate([
204
203
  SystemService
@@ -1,12 +1,35 @@
1
1
  import { css } from '@microsoft/fast-element';
2
2
  const modalWidthPx = 940;
3
- export const TemplateDialogStyles = css `
4
- label {
5
- margin-bottom: calc(var(--design-unit) * 2px);
3
+ const header = css `
4
+ zero-modal::part(top) {
5
+ padding: calc(var(--design-unit) * 4px);
6
+ border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
6
7
  }
7
8
 
8
- zero-button {
9
- margin: 0px;
9
+ .template-dialog-header-title {
10
+ font-weight: bold;
11
+ align-self: center;
12
+ }
13
+ `;
14
+ const footer = css `
15
+ .template-dialog-footer {
16
+ display: flex;
17
+ padding: calc(var(--design-unit) * 4px);
18
+ }
19
+
20
+ .template-dialog-footer .content-row {
21
+ margin-left: auto;
22
+ margin-bottom: 0px;
23
+ }
24
+ `;
25
+ export const TemplateDialogStyles = css `
26
+ ${header}
27
+ ${footer}
28
+
29
+ zero-modal::part(dialog) {
30
+ padding: 0;
31
+ background: var(--neutral-layer-4);
32
+ border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
10
33
  }
11
34
 
12
35
  .template-dialog-content {
@@ -27,11 +50,11 @@ export const TemplateDialogStyles = css `
27
50
  display: flex;
28
51
  flex-direction: column;
29
52
  width: 100%;
30
- min-width: 0;
53
+ gap: calc(var(--design-unit) * 2px);
31
54
  }
32
55
 
33
- .conditions,
34
- .parameters {
56
+ .parameters,
57
+ .conditions {
35
58
  height: 150px;
36
59
  max-height: 200px;
37
60
  border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
@@ -43,52 +66,22 @@ export const TemplateDialogStyles = css `
43
66
  overflow-y: scroll;
44
67
  }
45
68
 
46
- .template-dialog-footer {
47
- margin-top: calc(var(--design-unit) * 2px);
48
- display: flex;
49
- padding: calc(var(--design-unit) * 4px);
50
- }
51
-
52
- .template-dialog-footer .content-row {
53
- margin-left: auto;
69
+ .parameter,
70
+ .condition {
71
+ gap: 0px;
72
+ flex-direction: column;
54
73
  margin-bottom: 0px;
55
74
  }
56
75
 
57
- .complete {
76
+ zero-button {
58
77
  margin: 0px;
59
- background-color: #dadc01;
60
- color: #000000;
61
- }
62
-
63
- .condition,
64
- .parameter {
65
- gap: 0px;
66
- flex-direction: column;
67
- margin-bottom: 0px;
68
78
  }
69
79
 
70
80
  zero-select {
71
81
  min-width: 0;
72
82
  }
73
83
 
74
- zero-select::part(control) {
75
- }
76
-
77
84
  zero-select::part(listbox) {
78
85
  max-height: 160px;
79
86
  }
80
-
81
- zero-select::part(selected-value) {
82
- }
83
-
84
- zero-modal::part(dialog) {
85
- padding: 0;
86
- background: var(--neutral-layer-4);
87
- border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
88
- }
89
-
90
- zero-modal::part(top) {
91
- padding: calc(var(--design-unit) * 4px);
92
- border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
93
- }
94
87
  `;
@@ -1,8 +1,8 @@
1
1
  import { sync } from '@genesislcap/foundation-utils';
2
2
  import { html, ref, repeat } from "@microsoft/fast-element";
3
- import { eventDetail } from '../../utils/eventDetail';
4
- import { ALL_RULE_EXECUTION_STRATEGIES } from '../../types/rule-execution-strategy';
5
- import { ALL_SEVERITIES } from '../../types/severity';
3
+ import { ALL_RULE_EXECUTION_STRATEGIES } from '../../../types/rule-execution-strategy';
4
+ import { ALL_SEVERITIES } from '../../../types/severity';
5
+ import { eventDetail } from '../../../../../utils/eventDetail';
6
6
  export const TemplateDialogTemplate = html `
7
7
  <zero-modal
8
8
  ${ref('dialog')}
@@ -74,9 +74,13 @@ export const TemplateDialogTemplate = html `
74
74
  <zero-select
75
75
  :value=${sync(x => x.executionStrategy)}
76
76
  >
77
- ${repeat(x => ALL_RULE_EXECUTION_STRATEGIES, html `
78
- <zero-option value=${x => x}>${x => x}</zero-option>
79
- `)}
77
+ <options-datasource
78
+ value-field='value'
79
+ label-field='value'
80
+ option-element='zero-option'
81
+ :data=${_ => ALL_RULE_EXECUTION_STRATEGIES.map(value => ({ value, label: value }))}
82
+ >
83
+ </options-datasource>
80
84
  </zero-select>
81
85
  </div>
82
86
  </div>
@@ -87,9 +91,13 @@ export const TemplateDialogTemplate = html `
87
91
  <zero-select
88
92
  :value=${sync(x => x.severity)}
89
93
  >
90
- ${repeat(x => ALL_SEVERITIES, html `
91
- <zero-option value=${x => x}>${x => x}</zero-option>
92
- `)}
94
+ <options-datasource
95
+ value-field='value'
96
+ label-field='value'
97
+ option-element='zero-option'
98
+ :data=${_ => ALL_SEVERITIES.map(value => ({ value, label: value }))}
99
+ >
100
+ </options-datasource>
93
101
  </zero-select>
94
102
  </div>
95
103
 
@@ -112,55 +120,55 @@ export const TemplateDialogTemplate = html `
112
120
  </div>
113
121
  </div>
114
122
 
115
- <div class="content-row">
123
+ <div class="control">
116
124
  <label>Parameter(s)</label>
117
- </div>
118
-
119
- <div class="parameters">
120
- <div class="content-row parameter">
121
- ${repeat(x => x.parameters, html `
122
- <parameter-builder
123
- :parameter=${x => x}
124
- @edit=${(x, c) => c.parent.editParameter(eventDetail(c))}
125
- @delete=${(x, c) => c.parent.deleteParameter(eventDetail(c))}
126
- >
127
- </parameter-builder>
128
- `)}
129
- </div>
130
-
131
- <div class="content-row">
132
- <zero-button
133
- @click=${x => x.newParameter()}
134
- >
135
- <zero-icon name="plus"></zero-icon>Parameter
136
- </zero-button>
125
+ <div class="parameters">
126
+ <div class="content-row parameter">
127
+ ${repeat(x => x.parameters, html `
128
+ <parameter-builder
129
+ :parameter=${x => x}
130
+ @edit=${(x, c) => c.parent.editParameter(eventDetail(c))}
131
+ @delete=${(x, c) => c.parent.deleteParameter(eventDetail(c))}
132
+ >
133
+ </parameter-builder>
134
+ `)}
135
+ </div>
136
+
137
+ <div class="content-row">
138
+ <zero-button
139
+ @click=${x => x.newParameter()}
140
+ >
141
+ <zero-icon name="plus"></zero-icon>
142
+ Parameter
143
+ </zero-button>
144
+ </div>
137
145
  </div>
138
146
  </div>
139
147
 
140
- <div class="content-row">
148
+ <div class="control">
141
149
  <label>Condition(s)</label>
142
- </div>
143
-
144
- <div class="conditions">
145
- <div class="content-row condition">
146
- ${repeat(x => x.conditions, html `
147
- <condition-builder
148
- :resource=${(x, c) => c.parent.resource}
149
- :parameters=${(x, c) => c.parent.parameters}
150
- :condition=${x => x}
151
- @edit=${(x, c) => c.parent.editCondition(eventDetail(c))}
152
- @delete=${(x, c) => c.parent.deleteCondition(eventDetail(c))}
153
- >
154
- </condition-builder>
155
- `)}
156
- </div>
150
+ <div class="conditions">
151
+ <div class="content-row condition">
152
+ ${repeat(x => x.conditions, html `
153
+ <condition-builder
154
+ :resource=${(x, c) => c.parent.resource}
155
+ :parameters=${(x, c) => c.parent.parameters}
156
+ :condition=${x => x}
157
+ @edit=${(x, c) => c.parent.editCondition(eventDetail(c))}
158
+ @delete=${(x, c) => c.parent.deleteCondition(eventDetail(c))}
159
+ >
160
+ </condition-builder>
161
+ `)}
162
+ </div>
157
163
 
158
- <div class="content-row">
159
- <zero-button
160
- @click=${x => x.newCondition()}
161
- >
162
- <zero-icon name="plus"></zero-icon>Condition
163
- </zero-button>
164
+ <div class="content-row">
165
+ <zero-button
166
+ @click=${x => x.newCondition()}
167
+ >
168
+ <zero-icon name="plus"></zero-icon>
169
+ Condition
170
+ </zero-button>
171
+ </div>
164
172
  </div>
165
173
  </div>
166
174
  </div>
@@ -169,9 +177,9 @@ export const TemplateDialogTemplate = html `
169
177
  <div class="content-row">
170
178
  <zero-button
171
179
  appearance="accent"
172
- @click=${x => x.complete()}
180
+ @click=${x => x.submit()}
173
181
  >
174
- Complete
182
+ Submit
175
183
  </zero-button>
176
184
  </div>
177
185
  </div>
@@ -0,0 +1,4 @@
1
+ export const TemplateDialogMode = {
2
+ CREATE: 'create',
3
+ EDIT: 'edit',
4
+ };
@@ -1,9 +1,9 @@
1
1
  import { __decorate } from "tslib";
2
- import { EXPRESSION_TYPE_FIELD, EXPRESSION_TYPE_PLACEHOLDER, EXPRESSION_TYPE_STRING } from "../../types/expression-type";
3
- import { LOGICAL_OPERATOR_EQUALS } from "../../types/logical-operator";
4
- import { PARAM_SOURCE_TYPE_USER_TEXT } from "../../types/param-source-type";
5
- import { PARAM_TYPE_BOOLEAN, PARAM_TYPE_FIELD, PARAM_TYPE_NUMBER, PARAM_TYPE_STRING } from "../../types/param-type";
6
- import { RIGHT_CRITERIA_USER_ENTRY, RIGHT_CRITERIA_VALUE } from "../../types/right-criteria";
2
+ import { EXPRESSION_TYPE_FIELD, EXPRESSION_TYPE_PLACEHOLDER, EXPRESSION_TYPE_STRING } from "../../../types/expression-type";
3
+ import { LOGICAL_OPERATOR_EQUALS } from "../../../types/logical-operator";
4
+ import { PARAM_SOURCE_TYPE_USER_TEXT } from "../../../types/param-source-type";
5
+ import { PARAM_TYPE_BOOLEAN, PARAM_TYPE_FIELD, PARAM_TYPE_NUMBER, PARAM_TYPE_STRING } from "../../../types/param-type";
6
+ import { RIGHT_CRITERIA_USER_ENTRY, RIGHT_CRITERIA_VALUE } from "../../../types/right-criteria";
7
7
  import { UUID } from '@genesislcap/foundation-utils';
8
8
  export class UUIDGenerator {
9
9
  static createUuid() {
@@ -102,15 +102,16 @@ export function getRightExpression(condition, parameters) {
102
102
  };
103
103
  }
104
104
  export function createParameterDetails(parameters) {
105
- return parameters.reduce((acc, parameter) => {
105
+ const map = {};
106
+ parameters.forEach((parameter) => {
106
107
  var _a;
107
- acc[parameter.PARAM_NAME] = {
108
+ map[parameter.PARAM_NAME] = {
108
109
  PARAM_LABEL: parameter.PARAM_LABEL,
109
110
  PARAM_TYPE: parameter.PARAM_TYPE,
110
111
  PARAM_SOURCE_TYPE: parameter.PARAM_SOURCE_TYPE,
111
112
  PARAM_SOURCE: (_a = parameter.PARAM_SOURCE) !== null && _a !== void 0 ? _a : '',
112
113
  PARAM_OPERATOR: 'EQUALS'
113
114
  };
114
- return acc;
115
- }, {});
115
+ });
116
+ return map;
116
117
  }