@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.
- package/dist/dts/components/components.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.d.ts +19 -0
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.d.ts.map +1 -0
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.styles.d.ts +2 -0
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.styles.d.ts.map +1 -0
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.d.ts +3 -0
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.d.ts.map +1 -0
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.d.ts +12 -0
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.d.ts.map +1 -0
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.styles.d.ts +2 -0
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.styles.d.ts.map +1 -0
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.d.ts +3 -0
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.d.ts.map +1 -0
- package/dist/dts/components/foundation-inbox/inbox.d.ts +8 -15
- package/dist/dts/components/foundation-inbox/inbox.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox.styles.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox.types.d.ts +1 -1
- package/dist/dts/components/foundation-inbox/inbox.types.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox.utils.d.ts +0 -4
- package/dist/dts/components/foundation-inbox/inbox.utils.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/routes/route-management.d.ts +4 -0
- package/dist/dts/components/foundation-notification-dashboard/components/routes/route-management.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/routes/tabs/email-distribution-route-management.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/routes/tabs/email-user-route-management.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/routes/tabs/log-route-management.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/routes/tabs/ms-teams-route-management.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/routes/tabs/screen-route-management.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/rules/columns.d.ts +3 -0
- package/dist/dts/components/foundation-notification-dashboard/components/rules/columns.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/{rule-dialog → rules/rule-dialog}/rule-condition-builder/rule-condition-builder.d.ts +2 -2
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.styles.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.types.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/{rule-dialog → rules/rule-dialog}/rule-dialog.d.ts +7 -7
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.styles.d.ts +2 -0
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.styles.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.d.ts +3 -0
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.types.d.ts +23 -0
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.types.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-management.d.ts +11 -0
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-management.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/templates/columns.d.ts +3 -0
- package/dist/dts/components/foundation-notification-dashboard/components/templates/columns.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/{condition-builder → templates/template-dialog/condition-builder}/condition-builder.d.ts +3 -3
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.styles.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.template.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/{parameter-builder → templates/template-dialog/parameter-builder}/parameter-builder.d.ts +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/{template-dialog → templates/template-dialog}/template-dialog.d.ts +8 -8
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.styles.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/{template-dialog → templates/template-dialog}/template-dialog.types.d.ts +6 -6
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/{template-dialog → templates/template-dialog}/template-dialog.utils.d.ts +2 -2
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.utils.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-management.d.ts +11 -0
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-management.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/index.d.ts +0 -1
- package/dist/dts/components/foundation-notification-dashboard/index.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.d.ts +2 -0
- package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.styles.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.tabs.d.ts +8 -0
- package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.tabs.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/styles/management.styles.d.ts +2 -0
- package/dist/dts/components/foundation-notification-dashboard/styles/management.styles.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/styles/rules-and-templates.styles.d.ts +2 -0
- package/dist/dts/components/foundation-notification-dashboard/styles/rules-and-templates.styles.d.ts.map +1 -0
- package/dist/dts/services/alert.service.d.ts +4 -3
- package/dist/dts/services/alert.service.d.ts.map +1 -1
- package/dist/dts/services/notify.service.d.ts +2 -2
- package/dist/dts/services/notify.service.d.ts.map +1 -1
- package/dist/dts/services/rule.service.d.ts +3 -3
- package/dist/dts/services/rule.service.d.ts.map +1 -1
- package/dist/dts/services/system.service.d.ts +3 -3
- package/dist/dts/services/system.service.d.ts.map +1 -1
- package/dist/dts/services/template.service.d.ts +12 -0
- package/dist/dts/services/template.service.d.ts.map +1 -0
- package/dist/dts/utils/eventDetail.d.ts.map +1 -0
- package/dist/dts/utils/gridConfig.d.ts.map +1 -0
- package/dist/dts/utils/humanize.d.ts +2 -0
- package/dist/dts/utils/humanize.d.ts.map +1 -0
- package/dist/dts/utils/icons.d.ts.map +1 -0
- package/dist/dts/utils/index.d.ts +5 -0
- package/dist/dts/utils/index.d.ts.map +1 -1
- package/dist/dts/utils/logger.d.ts.map +1 -1
- package/dist/dts/utils/updateArray.d.ts +2 -0
- package/dist/dts/utils/updateArray.d.ts.map +1 -0
- package/dist/esm/components/components.js +28 -18
- package/dist/esm/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.js +2 -0
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/inbox-subscription.js +77 -0
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/inbox-subscription.styles.js +36 -0
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.js +39 -0
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.js +53 -0
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.styles.js +24 -0
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.js +67 -0
- package/dist/esm/components/foundation-inbox/inbox.js +22 -54
- package/dist/esm/components/foundation-inbox/inbox.styles.js +29 -107
- package/dist/esm/components/foundation-inbox/inbox.template.js +146 -159
- package/dist/esm/components/foundation-inbox/inbox.utils.js +0 -90
- package/dist/esm/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.js +99 -0
- package/dist/esm/components/foundation-notification-dashboard/components/routes/route-management.js +59 -0
- package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/email-distribution-route-management.js +56 -0
- package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/email-user-route-management.js +66 -0
- package/dist/esm/components/foundation-notification-dashboard/{management → components/routes/tabs}/log-route-management.js +23 -2
- package/dist/esm/components/foundation-notification-dashboard/{management → components/routes/tabs}/ms-teams-route-management.js +28 -2
- package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/screen-route-management.js +76 -0
- package/dist/esm/components/foundation-notification-dashboard/components/rules/columns.js +46 -0
- package/dist/esm/components/foundation-notification-dashboard/components/{rule-dialog → rules/rule-dialog}/rule-condition-builder/rule-condition-builder.js +1 -1
- package/dist/esm/components/foundation-notification-dashboard/components/{rule-dialog → rules/rule-dialog}/rule-condition-builder/rule-condition-builder.template.js +1 -1
- package/dist/esm/components/foundation-notification-dashboard/components/{rule-dialog → rules/rule-dialog}/rule-dialog.js +15 -16
- package/dist/esm/components/foundation-notification-dashboard/components/{rule-dialog → rules/rule-dialog}/rule-dialog.styles.js +35 -37
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.js +164 -0
- package/dist/esm/components/foundation-notification-dashboard/{management → components/rules}/rule-management.js +9 -51
- package/dist/esm/components/foundation-notification-dashboard/components/templates/columns.js +46 -0
- package/dist/esm/components/foundation-notification-dashboard/components/{condition-builder → templates/template-dialog/condition-builder}/condition-builder.js +8 -4
- package/dist/esm/components/foundation-notification-dashboard/components/{condition-builder → templates/template-dialog/condition-builder}/condition-builder.template.js +2 -2
- package/dist/esm/components/foundation-notification-dashboard/components/{parameter-builder → templates/template-dialog/parameter-builder}/parameter-builder.js +1 -1
- package/dist/esm/components/foundation-notification-dashboard/components/{parameter-builder → templates/template-dialog/parameter-builder}/parameter-builder.template.js +2 -2
- package/dist/esm/components/foundation-notification-dashboard/components/{template-dialog → templates/template-dialog}/template-dialog.js +15 -16
- package/dist/esm/components/foundation-notification-dashboard/components/{template-dialog → templates/template-dialog}/template-dialog.styles.js +36 -43
- package/dist/esm/components/foundation-notification-dashboard/components/{template-dialog → templates/template-dialog}/template-dialog.template.js +62 -54
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types.js +4 -0
- package/dist/esm/components/foundation-notification-dashboard/components/{template-dialog → templates/template-dialog}/template-dialog.utils.js +10 -9
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-management.js +74 -0
- package/dist/esm/components/foundation-notification-dashboard/index.js +0 -1
- package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.js +4 -0
- package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.styles.js +3 -25
- package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.tabs.js +28 -0
- package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.template.js +22 -31
- package/dist/esm/components/foundation-notification-dashboard/{management → styles}/management.styles.js +1 -14
- package/dist/esm/components/foundation-notification-dashboard/styles/rules-and-templates.styles.js +17 -0
- package/dist/esm/services/alert.service.js +3 -14
- package/dist/esm/services/{rule-template.service.js → template.service.js} +3 -3
- package/dist/esm/utils/humanize.js +10 -0
- package/dist/esm/utils/index.js +5 -0
- package/dist/esm/utils/logger.js +1 -1
- package/dist/esm/utils/updateArray.js +26 -0
- package/package.json +1 -1
- package/dist/dts/components/foundation-inbox/components/components.d.ts +0 -5
- package/dist/dts/components/foundation-inbox/components/components.d.ts.map +0 -1
- package/dist/dts/components/foundation-inbox/components/index.d.ts +0 -2
- package/dist/dts/components/foundation-inbox/components/index.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/components/condition-builder/condition-builder.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/components/condition-builder/condition-builder.styles.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/components/condition-builder/condition-builder.template.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/components/parameter-builder/parameter-builder.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/components/parameter-builder/parameter-builder.styles.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/components/parameter-builder/parameter-builder.template.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/index.d.ts +0 -3
- package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/index.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-condition-builder/index.d.ts +0 -3
- package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-condition-builder/index.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-condition-builder/rule-condition-builder.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-condition-builder/rule-condition-builder.styles.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-condition-builder/rule-condition-builder.template.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-condition-builder/rule-condition-builder.types.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.styles.d.ts +0 -2
- package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.styles.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.template.d.ts +0 -3
- package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.template.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.types.d.ts +0 -59
- package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.types.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.styles.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.template.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.types.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.utils.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/management/email-distribution-route-management.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/management/email-user-route-management.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/management/index.d.ts +0 -9
- package/dist/dts/components/foundation-notification-dashboard/management/index.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/management/log-route-management.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/management/management.styles.d.ts +0 -3
- package/dist/dts/components/foundation-notification-dashboard/management/management.styles.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/management/ms-teams-route-management.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/management/notify-audit-management.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/management/rule-management.d.ts +0 -29
- package/dist/dts/components/foundation-notification-dashboard/management/rule-management.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/management/rule-template-management.d.ts +0 -11
- package/dist/dts/components/foundation-notification-dashboard/management/rule-template-management.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/management/screen-route-management.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/utils/eventDetail.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/utils/gridConfig.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/utils/icons.d.ts.map +0 -1
- package/dist/dts/services/rule-template.service.d.ts +0 -12
- package/dist/dts/services/rule-template.service.d.ts.map +0 -1
- package/dist/esm/components/foundation-inbox/components/components.js +0 -50
- package/dist/esm/components/foundation-inbox/components/index.js +0 -1
- package/dist/esm/components/foundation-notification-dashboard/components/rule-dialog/index.js +0 -2
- package/dist/esm/components/foundation-notification-dashboard/components/rule-dialog/rule-condition-builder/index.js +0 -2
- package/dist/esm/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.template.js +0 -131
- package/dist/esm/components/foundation-notification-dashboard/components/template-dialog/template-dialog.types.js +0 -5
- package/dist/esm/components/foundation-notification-dashboard/management/email-distribution-route-management.js +0 -23
- package/dist/esm/components/foundation-notification-dashboard/management/email-user-route-management.js +0 -20
- package/dist/esm/components/foundation-notification-dashboard/management/index.js +0 -8
- package/dist/esm/components/foundation-notification-dashboard/management/notify-audit-management.js +0 -24
- package/dist/esm/components/foundation-notification-dashboard/management/rule-template-management.js +0 -116
- package/dist/esm/components/foundation-notification-dashboard/management/screen-route-management.js +0 -21
- /package/dist/dts/components/foundation-notification-dashboard/{management → components/notify-audit}/notify-audit-management.d.ts +0 -0
- /package/dist/dts/components/foundation-notification-dashboard/{management → components/routes/tabs}/email-distribution-route-management.d.ts +0 -0
- /package/dist/dts/components/foundation-notification-dashboard/{management → components/routes/tabs}/email-user-route-management.d.ts +0 -0
- /package/dist/dts/components/foundation-notification-dashboard/{management → components/routes/tabs}/log-route-management.d.ts +0 -0
- /package/dist/dts/components/foundation-notification-dashboard/{management → components/routes/tabs}/ms-teams-route-management.d.ts +0 -0
- /package/dist/dts/components/foundation-notification-dashboard/{management → components/routes/tabs}/screen-route-management.d.ts +0 -0
- /package/dist/dts/components/foundation-notification-dashboard/components/{rule-dialog → rules/rule-dialog}/rule-condition-builder/rule-condition-builder.styles.d.ts +0 -0
- /package/dist/dts/components/foundation-notification-dashboard/components/{rule-dialog → rules/rule-dialog}/rule-condition-builder/rule-condition-builder.template.d.ts +0 -0
- /package/dist/dts/components/foundation-notification-dashboard/components/{rule-dialog → rules/rule-dialog}/rule-condition-builder/rule-condition-builder.types.d.ts +0 -0
- /package/dist/dts/components/foundation-notification-dashboard/components/{condition-builder → templates/template-dialog/condition-builder}/condition-builder.styles.d.ts +0 -0
- /package/dist/dts/components/foundation-notification-dashboard/components/{condition-builder → templates/template-dialog/condition-builder}/condition-builder.template.d.ts +0 -0
- /package/dist/dts/components/foundation-notification-dashboard/components/{parameter-builder → templates/template-dialog/parameter-builder}/parameter-builder.styles.d.ts +0 -0
- /package/dist/dts/components/foundation-notification-dashboard/components/{parameter-builder → templates/template-dialog/parameter-builder}/parameter-builder.template.d.ts +0 -0
- /package/dist/dts/components/foundation-notification-dashboard/components/{template-dialog → templates/template-dialog}/template-dialog.styles.d.ts +0 -0
- /package/dist/dts/components/foundation-notification-dashboard/components/{template-dialog → templates/template-dialog}/template-dialog.template.d.ts +0 -0
- /package/dist/dts/{components/foundation-notification-dashboard/utils → utils}/eventDetail.d.ts +0 -0
- /package/dist/dts/{components/foundation-notification-dashboard/utils → utils}/gridConfig.d.ts +0 -0
- /package/dist/dts/{components/foundation-notification-dashboard/utils → utils}/icons.d.ts +0 -0
- /package/dist/esm/components/foundation-notification-dashboard/components/{rule-dialog → rules/rule-dialog}/rule-condition-builder/rule-condition-builder.styles.js +0 -0
- /package/dist/esm/components/foundation-notification-dashboard/components/{rule-dialog → rules/rule-dialog}/rule-condition-builder/rule-condition-builder.types.js +0 -0
- /package/dist/esm/components/foundation-notification-dashboard/components/{rule-dialog → rules/rule-dialog}/rule-dialog.types.js +0 -0
- /package/dist/esm/components/foundation-notification-dashboard/components/{condition-builder → templates/template-dialog/condition-builder}/condition-builder.styles.js +0 -0
- /package/dist/esm/components/foundation-notification-dashboard/components/{parameter-builder → templates/template-dialog/parameter-builder}/parameter-builder.styles.js +0 -0
- /package/dist/esm/{components/foundation-notification-dashboard/utils → utils}/eventDetail.js +0 -0
- /package/dist/esm/{components/foundation-notification-dashboard/utils → utils}/gridConfig.js +0 -0
- /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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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>
|
|
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 =>
|
|
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}">${(
|
|
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 '
|
|
4
|
-
import { ALL_RIGHT_CRITERIAS, RIGHT_CRITERIA_USER_ENTRY, RIGHT_CRITERIA_VALUE } from '
|
|
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 "
|
|
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 '
|
|
4
|
-
import { ALL_PARAM_TYPES } from '
|
|
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 {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { humanize } from '
|
|
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:
|
|
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
|
-
|
|
102
|
-
const
|
|
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(
|
|
116
|
+
.createRuleTemplate(template)
|
|
118
117
|
.then(response => this.validateResponse(response));
|
|
119
118
|
break;
|
|
120
119
|
case TemplateDialogMode.EDIT:
|
|
121
120
|
this.ruleTemplateService
|
|
122
|
-
.editRuleTemplate(
|
|
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
|
-
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
9
|
-
|
|
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
|
-
|
|
53
|
+
gap: calc(var(--design-unit) * 2px);
|
|
31
54
|
}
|
|
32
55
|
|
|
33
|
-
.
|
|
34
|
-
.
|
|
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
|
-
.
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
-
|
|
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 {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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
|
-
|
|
78
|
-
|
|
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
|
-
|
|
91
|
-
|
|
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="
|
|
123
|
+
<div class="control">
|
|
116
124
|
<label>Parameter(s)</label>
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
</
|
|
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="
|
|
148
|
+
<div class="control">
|
|
141
149
|
<label>Condition(s)</label>
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
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
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
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.
|
|
180
|
+
@click=${x => x.submit()}
|
|
173
181
|
>
|
|
174
|
-
|
|
182
|
+
Submit
|
|
175
183
|
</zero-button>
|
|
176
184
|
</div>
|
|
177
185
|
</div>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { EXPRESSION_TYPE_FIELD, EXPRESSION_TYPE_PLACEHOLDER, EXPRESSION_TYPE_STRING } from "
|
|
3
|
-
import { LOGICAL_OPERATOR_EQUALS } from "
|
|
4
|
-
import { PARAM_SOURCE_TYPE_USER_TEXT } from "
|
|
5
|
-
import { PARAM_TYPE_BOOLEAN, PARAM_TYPE_FIELD, PARAM_TYPE_NUMBER, PARAM_TYPE_STRING } from "
|
|
6
|
-
import { RIGHT_CRITERIA_USER_ENTRY, RIGHT_CRITERIA_VALUE } from "
|
|
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
|
-
|
|
105
|
+
const map = {};
|
|
106
|
+
parameters.forEach((parameter) => {
|
|
106
107
|
var _a;
|
|
107
|
-
|
|
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
|
-
|
|
115
|
-
|
|
115
|
+
});
|
|
116
|
+
return map;
|
|
116
117
|
}
|