@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
package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.styles.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-dashboard.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-notification-dashboard/notification-dashboard.styles.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,qCAAqC,
|
|
1
|
+
{"version":3,"file":"notification-dashboard.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-notification-dashboard/notification-dashboard.styles.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,qCAAqC,iDAMjD,CAAC"}
|
package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.tabs.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-dashboard.tabs.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-notification-dashboard/notification-dashboard.tabs.ts"],"names":[],"mappings":"AAAA,qBAAa,wBAAwB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,2BAA2B,EAAE,wBAAwB,EAyBjE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-dashboard.template.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-notification-dashboard/notification-dashboard.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,+BAA+B,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"notification-dashboard.template.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-notification-dashboard/notification-dashboard.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,+BAA+B,EAAE,MAAM,0BAA0B,CAAC;AAI3E,eAAO,MAAM,uCAAuC,sFAqCnD,CAAC"}
|
package/dist/dts/components/foundation-notification-dashboard/styles/management.styles.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"management.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/styles/management.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,iDAkBhC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rules-and-templates.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/styles/rules-and-templates.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB,iDAenC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { Message, SocketObservable } from '@genesislcap/foundation-comms';
|
|
2
|
+
export interface AlertService {
|
|
3
|
+
getAlerts(): SocketObservable<Message<any>>;
|
|
3
4
|
dismissNotifyAlert(alertId: string): any;
|
|
4
5
|
}
|
|
5
|
-
export declare const AlertService: import("@microsoft/fast-foundation").InterfaceSymbol<
|
|
6
|
+
export declare const AlertService: import("@microsoft/fast-foundation").InterfaceSymbol<AlertService>;
|
|
6
7
|
//# sourceMappingURL=alert.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.service.d.ts","sourceRoot":"","sources":["../../../src/services/alert.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"alert.service.d.ts","sourceRoot":"","sources":["../../../src/services/alert.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEnF,MAAM,WAAW,YAAY;IAC3B,SAAS,IAAI,gBAAgB,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5C,kBAAkB,CAAC,OAAO,EAAE,MAAM,OAAE;CACrC;AAyBD,eAAO,MAAM,YAAY,oEAExB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface NotifyService {
|
|
2
2
|
getNotifyRouteTopics(): any;
|
|
3
3
|
}
|
|
4
|
-
export declare const NotifyService: import("@microsoft/fast-foundation").InterfaceSymbol<
|
|
4
|
+
export declare const NotifyService: import("@microsoft/fast-foundation").InterfaceSymbol<NotifyService>;
|
|
5
5
|
//# sourceMappingURL=notify.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notify.service.d.ts","sourceRoot":"","sources":["../../../src/services/notify.service.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"notify.service.d.ts","sourceRoot":"","sources":["../../../src/services/notify.service.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,aAAa;IAC5B,oBAAoB,QAAG;CACxB;AAcD,eAAO,MAAM,aAAa,qEAEzB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Message } from '@genesislcap/foundation-comms';
|
|
2
|
-
import { Rule } from '../components/foundation-notification-dashboard/components/rule-dialog';
|
|
3
|
-
export interface
|
|
2
|
+
import { Rule } from '../components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.types';
|
|
3
|
+
export interface RuleService {
|
|
4
4
|
subscribeRule(dynamicRuleId: string, parameterDetails: any): any;
|
|
5
5
|
unsubscribeRule(dynamicRuleId: string): any;
|
|
6
6
|
enableRule(dynamicRuleId: string): any;
|
|
@@ -11,5 +11,5 @@ export interface RuleServiceInterface {
|
|
|
11
11
|
updateRule(rule: Rule): Promise<Message>;
|
|
12
12
|
deleteRule(ruleId: string): void;
|
|
13
13
|
}
|
|
14
|
-
export declare const RuleService: import("@microsoft/fast-foundation").InterfaceSymbol<
|
|
14
|
+
export declare const RuleService: import("@microsoft/fast-foundation").InterfaceSymbol<RuleService>;
|
|
15
15
|
//# sourceMappingURL=rule.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule.service.d.ts","sourceRoot":"","sources":["../../../src/services/rule.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAEjE,OAAO,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"rule.service.d.ts","sourceRoot":"","sources":["../../../src/services/rule.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAEjE,OAAO,EAAE,IAAI,EAAE,MAAM,gGAAgG,CAAC;AAEtH,MAAM,WAAW,WAAW;IAC1B,aAAa,CAAC,aAAa,EAAE,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAE;IAC5D,eAAe,CAAC,aAAa,EAAE,MAAM,OAAE;IACvC,UAAU,CAAC,aAAa,EAAE,MAAM,OAAE;IAClC,WAAW,CAAC,aAAa,EAAE,MAAM,OAAE;IACnC,QAAQ,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;IACzB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9C,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACzC,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACzC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC;AAoHD,eAAO,MAAM,WAAW,mEAEvB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Field } from '../components/foundation-notification-dashboard/components/rule-dialog/rule-condition-builder';
|
|
2
|
-
export interface
|
|
1
|
+
import { Field } from '../components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.types';
|
|
2
|
+
export interface SystemService {
|
|
3
3
|
getResources(): Promise<string[]>;
|
|
4
4
|
getFields(resource: string): Promise<Field[]>;
|
|
5
5
|
}
|
|
6
|
-
export declare const SystemService: import("@microsoft/fast-foundation").InterfaceSymbol<
|
|
6
|
+
export declare const SystemService: import("@microsoft/fast-foundation").InterfaceSymbol<SystemService>;
|
|
7
7
|
//# sourceMappingURL=system.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system.service.d.ts","sourceRoot":"","sources":["../../../src/services/system.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"system.service.d.ts","sourceRoot":"","sources":["../../../src/services/system.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,kIAAkI,CAAC;AAEzJ,MAAM,WAAW,aAAa;IAC5B,YAAY,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAClC,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;CAC/C;AAyBD,eAAO,MAAM,aAAa,qEAEzB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Template } from '../components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types';
|
|
2
|
+
export interface TemplateService {
|
|
3
|
+
createRuleTemplate(ruleTemplate: Template): Promise<any>;
|
|
4
|
+
editRuleTemplate(ruleTemplate: Template): Promise<any>;
|
|
5
|
+
getResources(): Promise<string[]>;
|
|
6
|
+
getFields(resource: string): Promise<any>;
|
|
7
|
+
getRuleTemplates(): any;
|
|
8
|
+
getRuleTemplateDetails(dynamicRuleId: string): any;
|
|
9
|
+
deleteRuleTemplate(dynamicRuleId: string): any;
|
|
10
|
+
}
|
|
11
|
+
export declare const TemplateService: import("@microsoft/fast-foundation").InterfaceSymbol<TemplateService>;
|
|
12
|
+
//# sourceMappingURL=template.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template.service.d.ts","sourceRoot":"","sources":["../../../src/services/template.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,4GAA4G,CAAC;AAEtI,MAAM,WAAW,eAAe;IAC9B,kBAAkB,CAAC,YAAY,EAAE,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACzD,gBAAgB,CAAC,YAAY,EAAE,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,CAAA;IACtD,YAAY,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAClC,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAC1C,gBAAgB,QAAG;IACnB,sBAAsB,CAAC,aAAa,EAAE,MAAM,OAAE;IAC9C,kBAAkB,CAAC,aAAa,EAAE,MAAM,OAAE;CAC3C;AAuFD,eAAO,MAAM,eAAe,uEAE3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventDetail.d.ts","sourceRoot":"","sources":["../../../src/utils/eventDetail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,wBAAgB,WAAW,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,EAAE,gBAAgB,KAEzD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gridConfig.d.ts","sourceRoot":"","sources":["../../../src/utils/gridConfig.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;CAEtB,CAAA;AAED,eAAO,MAAM,cAAc;;;CAG1B,CAAA;AAED,eAAO,MAAM,WAAW,qBAAsB,GAAG,QAG9C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"humanize.d.ts","sourceRoot":"","sources":["../../../src/utils/humanize.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,MAAO,MAAM,WAYjC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/utils/icons.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,0DASpB,CAAA;AAED,eAAO,MAAM,UAAU,0DAQtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/utils/logger.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/utils/logger.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,MAAM,iDAAgC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateArray.d.ts","sourceRoot":"","sources":["../../../src/utils/updateArray.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,YACb,MAAM,GAAG,CAAC,WACV,MAAM,GAAG,CAAC,KAClB,MAAM,GAAG,CA+BX,CAAA"}
|
|
@@ -2,34 +2,44 @@ import { __awaiter } from "tslib";
|
|
|
2
2
|
import { foundationLayoutComponents } from '@genesislcap/foundation-layout';
|
|
3
3
|
import { logger } from '../utils';
|
|
4
4
|
import { FoundationInboxCounter } from './foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
5
|
+
import { EmailDistributionRouteManagement } from './foundation-notification-dashboard/components/routes/tabs/email-distribution-route-management';
|
|
6
|
+
import { EmailUserRouteManagement } from './foundation-notification-dashboard/components/routes/tabs/email-user-route-management';
|
|
7
|
+
import { LogRouteManagement } from './foundation-notification-dashboard/components/routes/tabs/log-route-management';
|
|
8
|
+
import { MSTeamsRouteManagement } from './foundation-notification-dashboard/components/routes/tabs/ms-teams-route-management';
|
|
9
|
+
import { NotifyAuditManagement } from './foundation-notification-dashboard/components/notify-audit/notify-audit-management';
|
|
10
|
+
import { RuleManagement } from './foundation-notification-dashboard/components/rules/rule-management';
|
|
11
|
+
import { TemplateManagement } from './foundation-notification-dashboard/components/templates/template-management';
|
|
12
|
+
import { ScreenRouteManagement } from './foundation-notification-dashboard/components/routes/tabs/screen-route-management';
|
|
13
|
+
import { InboxSubscription } from './foundation-inbox/components/inbox-subscription/inbox-subscription';
|
|
14
|
+
import { TemplateDialog } from './foundation-notification-dashboard/components/templates/template-dialog/template-dialog';
|
|
15
|
+
import { ConditionBuilder } from './foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder';
|
|
16
|
+
import { RuleDialog } from './foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog';
|
|
17
|
+
import { RuleConditionBuilder } from './foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder';
|
|
18
|
+
import { ParameterBuilder } from './foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder';
|
|
19
|
+
import { RuleParameter } from './foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter';
|
|
20
|
+
import { RouteManagement } from './foundation-notification-dashboard/components/routes/route-management';
|
|
18
21
|
// Components
|
|
22
|
+
// #region Inbox
|
|
19
23
|
FoundationInboxCounter;
|
|
20
|
-
|
|
21
|
-
|
|
24
|
+
InboxSubscription;
|
|
25
|
+
RuleParameter;
|
|
26
|
+
// #endregion Inbox
|
|
27
|
+
// #region Notification Dashboard
|
|
28
|
+
RuleManagement;
|
|
22
29
|
RuleDialog;
|
|
23
30
|
RuleConditionBuilder;
|
|
31
|
+
TemplateManagement;
|
|
32
|
+
TemplateDialog;
|
|
24
33
|
ParameterBuilder;
|
|
34
|
+
ConditionBuilder;
|
|
35
|
+
RouteManagement;
|
|
36
|
+
ScreenRouteManagement;
|
|
25
37
|
EmailDistributionRouteManagement;
|
|
26
38
|
EmailUserRouteManagement;
|
|
27
39
|
LogRouteManagement;
|
|
28
40
|
MSTeamsRouteManagement;
|
|
29
41
|
NotifyAuditManagement;
|
|
30
|
-
|
|
31
|
-
ScreenRouteManagement;
|
|
32
|
-
RuleManagement;
|
|
42
|
+
// #endregion Notification Dashboard
|
|
33
43
|
var ResourceType;
|
|
34
44
|
(function (ResourceType) {
|
|
35
45
|
ResourceType["LOCAL"] = "LOCAL";
|
|
@@ -2,6 +2,8 @@ import { __awaiter, __decorate } from "tslib";
|
|
|
2
2
|
import { observable, customElement, FASTElement } from '@microsoft/fast-element';
|
|
3
3
|
import { FoundationInboxCounterStyles } from './foundation-inbox-counter.styles';
|
|
4
4
|
import { FoundationInboxCounterTemplate } from './foundation-inbox-counter.template';
|
|
5
|
+
// TODO: Needs to implement this, but after
|
|
6
|
+
// the alert can be dismissed in back-end
|
|
5
7
|
let FoundationInboxCounter = class FoundationInboxCounter extends FASTElement {
|
|
6
8
|
constructor() {
|
|
7
9
|
super(...arguments);
|
package/dist/esm/components/foundation-inbox/components/inbox-subscription/inbox-subscription.js
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { __awaiter, __decorate } from "tslib";
|
|
2
|
+
import { FASTElement, attr, customElement, observable } from "@microsoft/fast-element";
|
|
3
|
+
import { PARAM_SOURCE_TYPE_DEFINED_GROUP } from "../../../foundation-notification-dashboard/types/param-source-type";
|
|
4
|
+
import { InboxSubscriptionTemplate } from "./inbox-subscription.template";
|
|
5
|
+
import { InboxSubscriptionStyles } from "./inbox-subscription.styles";
|
|
6
|
+
import { EXPRESSION_TYPE_PLACEHOLDER } from "../../../foundation-notification-dashboard/types/expression-type";
|
|
7
|
+
import { RuleService } from "../../../../services/rule.service";
|
|
8
|
+
let InboxSubscription = class InboxSubscription extends FASTElement {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.parametersDetails = {};
|
|
12
|
+
this.parametersOperators = {};
|
|
13
|
+
this.subscribeDisabled = true;
|
|
14
|
+
this.verifySubscribe = () => this.subscribeDisabled = !Object.values(this.parametersDetails).every(x => x !== '');
|
|
15
|
+
this.isFirstElement = (parameter) => Object.values(this.template.PARAMETERS).findIndex(p => p.PARAM_NAME === parameter.PARAM_NAME) === 0;
|
|
16
|
+
this.createParametersOperatorMap = (conditions) => {
|
|
17
|
+
this.parametersOperators = {};
|
|
18
|
+
conditions.forEach((condition) => {
|
|
19
|
+
if (condition.RIGHT.TYPE == EXPRESSION_TYPE_PLACEHOLDER) {
|
|
20
|
+
this.parametersOperators[condition.RIGHT.KEY] = condition.OPERATION;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
return this.parametersOperators;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
connectedCallback() {
|
|
27
|
+
super.connectedCallback();
|
|
28
|
+
this.parametersDetails = {};
|
|
29
|
+
this.subscribeDisabled = true;
|
|
30
|
+
}
|
|
31
|
+
disconnectedCallback() {
|
|
32
|
+
super.disconnectedCallback();
|
|
33
|
+
}
|
|
34
|
+
templateChanged() {
|
|
35
|
+
const parameters = this.template.PARAMETERS;
|
|
36
|
+
Object.keys(parameters).forEach(key => {
|
|
37
|
+
const parameter = parameters[key];
|
|
38
|
+
if (parameter.PARAM_SOURCE_TYPE === PARAM_SOURCE_TYPE_DEFINED_GROUP) {
|
|
39
|
+
// Attribute 1st group value for select fields
|
|
40
|
+
this.parametersDetails[parameter.PARAM_NAME] = parameter.PARAM_SOURCE.split(',')[0];
|
|
41
|
+
}
|
|
42
|
+
this.parametersDetails[parameter.PARAM_NAME] = '';
|
|
43
|
+
});
|
|
44
|
+
this.parametersOperators = this.createParametersOperatorMap(this.template.RULE_EXPRESSION.CONDITIONS);
|
|
45
|
+
this.verifySubscribe();
|
|
46
|
+
}
|
|
47
|
+
parameterEdit(value) {
|
|
48
|
+
this.parametersDetails[value.parameter.PARAM_NAME] = value.valueTyped;
|
|
49
|
+
this.verifySubscribe();
|
|
50
|
+
}
|
|
51
|
+
subscribeTemplate() {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
yield this.ruleService.subscribeRule(this.template.DYNAMIC_RULE_ID, this.parametersDetails);
|
|
54
|
+
this.$emit('templateSubscribed');
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
__decorate([
|
|
59
|
+
attr
|
|
60
|
+
], InboxSubscription.prototype, "template", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
observable
|
|
63
|
+
], InboxSubscription.prototype, "parametersOperators", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
observable
|
|
66
|
+
], InboxSubscription.prototype, "subscribeDisabled", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
RuleService
|
|
69
|
+
], InboxSubscription.prototype, "ruleService", void 0);
|
|
70
|
+
InboxSubscription = __decorate([
|
|
71
|
+
customElement({
|
|
72
|
+
name: 'inbox-subscription',
|
|
73
|
+
template: InboxSubscriptionTemplate,
|
|
74
|
+
styles: InboxSubscriptionStyles,
|
|
75
|
+
})
|
|
76
|
+
], InboxSubscription);
|
|
77
|
+
export { InboxSubscription };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { css } from "@microsoft/fast-element";
|
|
2
|
+
export const InboxSubscriptionStyles = css `
|
|
3
|
+
.inbox-subscription {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.inbox-subscription-header {
|
|
9
|
+
border-top: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
|
|
10
|
+
border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
|
|
11
|
+
padding: calc(var(--design-unit) * 2px);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.inbox-subscription-content {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
gap: calc(var(--design-unit) * 2px);
|
|
18
|
+
overflow: auto;
|
|
19
|
+
max-height: calc(var(--design-unit) * 25px);
|
|
20
|
+
border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
|
|
21
|
+
margin: calc(var(--design-unit) * 2px);
|
|
22
|
+
padding: calc(var(--design-unit) * 2px);
|
|
23
|
+
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.inbox-subscription-footer {
|
|
27
|
+
padding: calc(var(--design-unit) * 2px);
|
|
28
|
+
border-top: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
zero-button.subscribe {
|
|
32
|
+
display: flex;
|
|
33
|
+
margin: 0px;
|
|
34
|
+
width: 100%;
|
|
35
|
+
}
|
|
36
|
+
`;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { html, repeat, when } from '@microsoft/fast-element';
|
|
2
|
+
import { eventDetail } from '../../../../utils';
|
|
3
|
+
export const InboxSubscriptionTemplate = html `
|
|
4
|
+
<div class="inbox-subscription">
|
|
5
|
+
<div class="inbox-subscription-header">
|
|
6
|
+
Subscribe to <span style="font-weight: bold;">${x => x.template.RULE_NAME}</span>
|
|
7
|
+
</div>
|
|
8
|
+
|
|
9
|
+
${when(x => Object.values(x.template.PARAMETERS).length === 0, html `
|
|
10
|
+
<p style="padding-left: 10px;">The selected template doesn't have parameters.</p>
|
|
11
|
+
`)}
|
|
12
|
+
|
|
13
|
+
${when(x => Object.values(x.template.PARAMETERS).length > 0, html `
|
|
14
|
+
<div class="inbox-subscription-content">
|
|
15
|
+
${repeat(
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
x => Object.values(x.template.PARAMETERS), html `
|
|
18
|
+
<rule-parameter
|
|
19
|
+
:parameter=${x => x}
|
|
20
|
+
:isFirstElement=${(x, c) => c.parent.isFirstElement(x)}
|
|
21
|
+
:operator=${(x, c) => c.parent.parametersOperators[x.PARAM_NAME]}
|
|
22
|
+
@parameterEdited=${(x, c) => c.parent.parameterEdit(eventDetail(c))}
|
|
23
|
+
>
|
|
24
|
+
</rule-parameter>
|
|
25
|
+
`)}
|
|
26
|
+
</div>
|
|
27
|
+
`)}
|
|
28
|
+
|
|
29
|
+
<div class="inbox-subscription-footer">
|
|
30
|
+
<zero-button
|
|
31
|
+
class="subscribe"
|
|
32
|
+
@click=${x => x.subscribeTemplate()}
|
|
33
|
+
?disabled=${x => x.subscribeDisabled}
|
|
34
|
+
>
|
|
35
|
+
Subscribe
|
|
36
|
+
</zero-button>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
`;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { FASTElement, attr, customElement, observable } from "@microsoft/fast-element";
|
|
3
|
+
import { RuleParameterTemplate } from "./rule-parameter.template";
|
|
4
|
+
import { RuleParameterStyles } from "./rule-parameter.styles";
|
|
5
|
+
import { PARAM_TYPE_BOOLEAN } from "../../../../foundation-notification-dashboard/types/param-type";
|
|
6
|
+
let RuleParameter = class RuleParameter extends FASTElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.isFirstElement = false;
|
|
10
|
+
this.inputValue = '';
|
|
11
|
+
}
|
|
12
|
+
connectedCallback() {
|
|
13
|
+
super.connectedCallback();
|
|
14
|
+
switch (this.parameter.PARAM_TYPE) {
|
|
15
|
+
case PARAM_TYPE_BOOLEAN:
|
|
16
|
+
this.inputValue = 'true';
|
|
17
|
+
break;
|
|
18
|
+
default:
|
|
19
|
+
this.inputValue = '';
|
|
20
|
+
break;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
disconnectedCallback() {
|
|
24
|
+
super.disconnectedCallback();
|
|
25
|
+
}
|
|
26
|
+
inputValueChanged() {
|
|
27
|
+
this.$emit('parameterEdited', {
|
|
28
|
+
parameter: this.parameter,
|
|
29
|
+
valueTyped: this.inputValue
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
__decorate([
|
|
34
|
+
attr,
|
|
35
|
+
observable
|
|
36
|
+
], RuleParameter.prototype, "parameter", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
attr
|
|
39
|
+
], RuleParameter.prototype, "isFirstElement", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
attr
|
|
42
|
+
], RuleParameter.prototype, "operator", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
observable
|
|
45
|
+
], RuleParameter.prototype, "inputValue", void 0);
|
|
46
|
+
RuleParameter = __decorate([
|
|
47
|
+
customElement({
|
|
48
|
+
name: 'rule-parameter',
|
|
49
|
+
template: RuleParameterTemplate,
|
|
50
|
+
styles: RuleParameterStyles,
|
|
51
|
+
})
|
|
52
|
+
], RuleParameter);
|
|
53
|
+
export { RuleParameter };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { css } from "@microsoft/fast-element";
|
|
2
|
+
export const RuleParameterStyles = css `
|
|
3
|
+
.control {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
width: 100%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
label {
|
|
10
|
+
margin-bottom: calc(var(--design-unit) * 2px);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.input-field {
|
|
14
|
+
display: flex;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.input-field::part(root) {
|
|
18
|
+
width: 100%;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
zero-select::part(listbox) {
|
|
22
|
+
max-height: 160px;
|
|
23
|
+
}
|
|
24
|
+
`;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { html, repeat, when } from "@microsoft/fast-element";
|
|
2
|
+
import { sync } from '@genesislcap/foundation-utils';
|
|
3
|
+
import { humanize } from "../../../../../utils";
|
|
4
|
+
import { PARAM_SOURCE_TYPE_DEFINED_GROUP, PARAM_SOURCE_TYPE_REQ_REP, PARAM_SOURCE_TYPE_USER_TEXT } from "../../../../foundation-notification-dashboard/types/param-source-type";
|
|
5
|
+
import { PARAM_TYPE_BOOLEAN, PARAM_TYPE_NUMBER, PARAM_TYPE_STRING } from "../../../../foundation-notification-dashboard/types/param-type";
|
|
6
|
+
export const RuleParameterTemplate = html `
|
|
7
|
+
<div class="control">
|
|
8
|
+
<label>
|
|
9
|
+
<span style="font-weight: bold;">${x => x.parameter.PARAM_LABEL}</span> ${(x, c) => humanize(x.operator).toLowerCase()}
|
|
10
|
+
</label>
|
|
11
|
+
|
|
12
|
+
<!-- USER_TEXT -->
|
|
13
|
+
${when(x => x.parameter.PARAM_SOURCE_TYPE === PARAM_SOURCE_TYPE_USER_TEXT, html `
|
|
14
|
+
${when(x => x.parameter.PARAM_TYPE === PARAM_TYPE_STRING, html `
|
|
15
|
+
<zero-text-field
|
|
16
|
+
autofocus=${x => x.isFirstElement}
|
|
17
|
+
class="input-field"
|
|
18
|
+
:value=${sync(x => x.inputValue)}
|
|
19
|
+
>
|
|
20
|
+
</zero-text-field>
|
|
21
|
+
`)}
|
|
22
|
+
|
|
23
|
+
${when(x => x.parameter.PARAM_TYPE === PARAM_TYPE_NUMBER, html `
|
|
24
|
+
<zero-number-field
|
|
25
|
+
hide-step
|
|
26
|
+
autofocus=${x => x.isFirstElement}
|
|
27
|
+
class="input-field"
|
|
28
|
+
:value=${sync(x => x.inputValue)}
|
|
29
|
+
>
|
|
30
|
+
</zero-number-field>
|
|
31
|
+
`)}
|
|
32
|
+
|
|
33
|
+
${when(x => x.parameter.PARAM_TYPE === PARAM_TYPE_BOOLEAN, html `
|
|
34
|
+
<zero-select
|
|
35
|
+
autofocus=${x => x.isFirstElement}
|
|
36
|
+
class="input-field"
|
|
37
|
+
:value=${sync(x => x.inputValue)}
|
|
38
|
+
>
|
|
39
|
+
<zero-option value="true">true</zero-option>
|
|
40
|
+
<zero-option value="false">false</zero-option>
|
|
41
|
+
</zero-select>
|
|
42
|
+
`)}
|
|
43
|
+
`)}
|
|
44
|
+
|
|
45
|
+
<!-- DEFINED_GROUP -->
|
|
46
|
+
${when(x => x.parameter.PARAM_SOURCE_TYPE === PARAM_SOURCE_TYPE_DEFINED_GROUP, html `
|
|
47
|
+
<zero-select
|
|
48
|
+
autofocus=${x => x.isFirstElement}
|
|
49
|
+
class="input-field"
|
|
50
|
+
position="below"
|
|
51
|
+
:value=${sync(x => x.inputValue)}
|
|
52
|
+
>
|
|
53
|
+
${repeat(x => x.parameter.PARAM_SOURCE.split(','), html `
|
|
54
|
+
<zero-option value=${(x) => x}>${(x) => x}</zero-option>
|
|
55
|
+
`)}
|
|
56
|
+
</zero-select>
|
|
57
|
+
`)}
|
|
58
|
+
|
|
59
|
+
<!-- TODO: REQ_REP -->
|
|
60
|
+
${when(x => x.parameter.PARAM_SOURCE_TYPE === PARAM_SOURCE_TYPE_REQ_REP, html `
|
|
61
|
+
<zero-select
|
|
62
|
+
:value=${sync(x => x.inputValue)}
|
|
63
|
+
>
|
|
64
|
+
</zero-select>
|
|
65
|
+
`)}
|
|
66
|
+
</div>
|
|
67
|
+
`;
|