@genesislcap/pbc-notify-ui 1.0.1 → 1.0.2
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/README.md +17 -11
- package/dist/dts/components/components.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/components/components.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.d.ts +0 -3
- package/dist/dts/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox.d.ts +24 -26
- 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 +11 -64
- package/dist/dts/components/foundation-inbox/inbox.types.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox.utils.d.ts +7 -6
- package/dist/dts/components/foundation-inbox/inbox.utils.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/condition-builder/condition-builder.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/parameter-builder/parameter-builder.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-condition-builder/rule-condition-builder.d.ts +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-condition-builder/rule-condition-builder.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-condition-builder/rule-condition-builder.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.d.ts +2 -10
- package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.types.d.ts +2 -2
- package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.types.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.d.ts +16 -31
- package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.styles.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.types.d.ts +2 -7
- package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.types.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.utils.d.ts +39 -0
- package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.utils.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/management/management.styles.d.ts +1 -0
- package/dist/dts/components/foundation-notification-dashboard/management/management.styles.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/management/notify-audit-management.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/management/rule-management.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/management/rule-template-management.d.ts +5 -5
- package/dist/dts/components/foundation-notification-dashboard/management/rule-template-management.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/management/screen-route-management.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/types/severity.d.ts +2 -2
- package/dist/dts/components/foundation-notification-dashboard/types/severity.d.ts.map +1 -1
- package/dist/dts/services/alert.service.d.ts.map +1 -1
- package/dist/dts/services/notify.service.d.ts +1 -1
- package/dist/dts/services/notify.service.d.ts.map +1 -1
- package/dist/dts/services/rule-template.service.d.ts +2 -0
- package/dist/dts/services/rule-template.service.d.ts.map +1 -1
- package/dist/dts/services/system.service.d.ts.map +1 -1
- package/dist/esm/components/components.js +0 -2
- package/dist/esm/components/foundation-inbox/components/components.js +1 -3
- package/dist/esm/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.js +0 -9
- package/dist/esm/components/foundation-inbox/inbox.js +97 -82
- package/dist/esm/components/foundation-inbox/inbox.styles.js +4 -2
- package/dist/esm/components/foundation-inbox/inbox.template.js +159 -164
- package/dist/esm/components/foundation-inbox/inbox.types.js +0 -4
- package/dist/esm/components/foundation-inbox/inbox.utils.js +47 -29
- package/dist/esm/components/foundation-notification-dashboard/components/condition-builder/condition-builder.js +0 -3
- package/dist/esm/components/foundation-notification-dashboard/components/parameter-builder/parameter-builder.template.js +2 -0
- package/dist/esm/components/foundation-notification-dashboard/components/rule-dialog/rule-condition-builder/rule-condition-builder.js +21 -11
- package/dist/esm/components/foundation-notification-dashboard/components/rule-dialog/rule-condition-builder/rule-condition-builder.template.js +4 -2
- package/dist/esm/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.js +34 -95
- package/dist/esm/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.template.js +3 -4
- package/dist/esm/components/foundation-notification-dashboard/components/template-dialog/template-dialog.js +110 -157
- package/dist/esm/components/foundation-notification-dashboard/components/template-dialog/template-dialog.styles.js +15 -4
- package/dist/esm/components/foundation-notification-dashboard/components/template-dialog/template-dialog.template.js +69 -17
- package/dist/esm/components/foundation-notification-dashboard/components/template-dialog/template-dialog.utils.js +85 -2
- package/dist/esm/components/foundation-notification-dashboard/management/management.styles.js +19 -2
- package/dist/esm/components/foundation-notification-dashboard/management/notify-audit-management.js +8 -2
- package/dist/esm/components/foundation-notification-dashboard/management/rule-management.js +39 -28
- package/dist/esm/components/foundation-notification-dashboard/management/rule-template-management.js +64 -59
- package/dist/esm/components/foundation-notification-dashboard/management/screen-route-management.js +2 -1
- package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.js +1 -1
- package/dist/esm/components/foundation-notification-dashboard/types/severity.js +3 -3
- package/dist/esm/services/alert.service.js +15 -11
- package/dist/esm/services/notify.service.js +5 -6
- package/dist/esm/services/rule-template.service.js +34 -9
- package/package.json +2 -1
- package/dist/dts/components/foundation-alerts/alerts.config.d.ts +0 -64
- package/dist/dts/components/foundation-alerts/alerts.config.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/alerts.d.ts +0 -74
- package/dist/dts/components/foundation-alerts/alerts.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/alerts.template.d.ts +0 -10
- package/dist/dts/components/foundation-alerts/alerts.template.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/alerts.types.d.ts +0 -72
- package/dist/dts/components/foundation-alerts/alerts.types.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.config.d.ts +0 -9
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.config.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.d.ts +0 -37
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.styles.d.ts +0 -2
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.styles.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.template.d.ts +0 -4
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.template.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.types.d.ts +0 -28
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.types.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-form/foundation-alerts-form.d.ts +0 -30
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-form/foundation-alerts-form.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-form/foundation-alerts-form.styles.d.ts +0 -2
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-form/foundation-alerts-form.styles.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-form/foundation-alerts-form.template.d.ts +0 -4
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-form/foundation-alerts-form.template.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-navigation-button/foundation-alerts-navigation-button.d.ts +0 -8
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-navigation-button/foundation-alerts-navigation-button.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-navigation-button/foundation-alerts-navigation-button.styles.d.ts +0 -2
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-navigation-button/foundation-alerts-navigation-button.styles.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-navigation-button/foundation-alerts-navigation-button.template.d.ts +0 -4
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-navigation-button/foundation-alerts-navigation-button.template.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/components/index.d.ts +0 -5
- package/dist/dts/components/foundation-alerts/components/index.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/index.d.ts +0 -2
- package/dist/dts/components/foundation-alerts/index.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/index.federated.d.ts +0 -1
- package/dist/dts/components/foundation-alerts/index.federated.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/styles/index.d.ts +0 -2
- package/dist/dts/components/foundation-alerts/styles/index.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/styles/styles.d.ts +0 -5
- package/dist/dts/components/foundation-alerts/styles/styles.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/utils/getConditionObject.d.ts +0 -8
- package/dist/dts/components/foundation-alerts/utils/getConditionObject.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/utils/getDateMilliseconds.d.ts +0 -2
- package/dist/dts/components/foundation-alerts/utils/getDateMilliseconds.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/utils/getDateStringFormat.d.ts +0 -2
- package/dist/dts/components/foundation-alerts/utils/getDateStringFormat.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/utils/index.d.ts +0 -5
- package/dist/dts/components/foundation-alerts/utils/index.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/utils/logger.d.ts +0 -2
- package/dist/dts/components/foundation-alerts/utils/logger.d.ts.map +0 -1
- package/dist/dts/components/foundation-inbox/components/foundation-inbox-toast/foundation-inbox-toast.d.ts +0 -10
- package/dist/dts/components/foundation-inbox/components/foundation-inbox-toast/foundation-inbox-toast.d.ts.map +0 -1
- package/dist/dts/components/foundation-inbox/components/foundation-inbox-toast/foundation-inbox-toast.styles.d.ts +0 -2
- package/dist/dts/components/foundation-inbox/components/foundation-inbox-toast/foundation-inbox-toast.styles.d.ts.map +0 -1
- package/dist/dts/components/foundation-inbox/inbox.config.d.ts +0 -6
- package/dist/dts/components/foundation-inbox/inbox.config.d.ts.map +0 -1
- package/dist/dts/components/foundation-inbox/layouts/default.d.ts +0 -3
- package/dist/dts/components/foundation-inbox/layouts/default.d.ts.map +0 -1
- package/dist/dts/components/foundation-inbox/layouts/index.d.ts +0 -2
- package/dist/dts/components/foundation-inbox/layouts/index.d.ts.map +0 -1
- package/dist/dts/components/foundation-inbox/services/foundation-inbox.service.d.ts +0 -11
- package/dist/dts/components/foundation-inbox/services/foundation-inbox.service.d.ts.map +0 -1
- package/dist/dts/components/foundation-inbox/styles/index.d.ts +0 -2
- package/dist/dts/components/foundation-inbox/styles/index.d.ts.map +0 -1
- package/dist/dts/components/foundation-inbox/styles/styles.d.ts +0 -3
- package/dist/dts/components/foundation-inbox/styles/styles.d.ts.map +0 -1
- package/dist/dts/components/foundation-inbox/utils/getSeverityByMessageType.d.ts +0 -3
- package/dist/dts/components/foundation-inbox/utils/getSeverityByMessageType.d.ts.map +0 -1
- package/dist/dts/components/foundation-inbox/utils/index.d.ts +0 -4
- package/dist/dts/components/foundation-inbox/utils/index.d.ts.map +0 -1
- package/dist/dts/components/foundation-inbox/utils/logger.d.ts +0 -2
- package/dist/dts/components/foundation-inbox/utils/logger.d.ts.map +0 -1
- package/dist/dts/components/foundation-inbox/utils/transformMessageToNotify.d.ts +0 -3
- package/dist/dts/components/foundation-inbox/utils/transformMessageToNotify.d.ts.map +0 -1
- package/dist/dts/layouts/default.d.ts +0 -3
- package/dist/dts/layouts/default.d.ts.map +0 -1
- package/dist/dts/layouts/index.d.ts +0 -2
- package/dist/dts/layouts/index.d.ts.map +0 -1
- package/dist/dts/styles/index.d.ts +0 -2
- package/dist/dts/styles/index.d.ts.map +0 -1
- package/dist/dts/styles/styles.d.ts +0 -3
- package/dist/dts/styles/styles.d.ts.map +0 -1
- package/dist/esm/components/foundation-alerts/alerts.config.js +0 -78
- package/dist/esm/components/foundation-alerts/alerts.js +0 -246
- package/dist/esm/components/foundation-alerts/alerts.template.js +0 -82
- package/dist/esm/components/foundation-alerts/alerts.types.js +0 -18
- package/dist/esm/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.config.js +0 -52
- package/dist/esm/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.js +0 -182
- package/dist/esm/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.styles.js +0 -68
- package/dist/esm/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.template.js +0 -135
- package/dist/esm/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.types.js +0 -1
- package/dist/esm/components/foundation-alerts/components/foundation-alerts-form/foundation-alerts-form.js +0 -145
- package/dist/esm/components/foundation-alerts/components/foundation-alerts-form/foundation-alerts-form.styles.js +0 -194
- package/dist/esm/components/foundation-alerts/components/foundation-alerts-form/foundation-alerts-form.template.js +0 -96
- package/dist/esm/components/foundation-alerts/components/foundation-alerts-navigation-button/foundation-alerts-navigation-button.js +0 -33
- package/dist/esm/components/foundation-alerts/components/foundation-alerts-navigation-button/foundation-alerts-navigation-button.styles.js +0 -27
- package/dist/esm/components/foundation-alerts/components/foundation-alerts-navigation-button/foundation-alerts-navigation-button.template.js +0 -14
- package/dist/esm/components/foundation-alerts/components/index.js +0 -52
- package/dist/esm/components/foundation-alerts/index.federated.js +0 -1
- package/dist/esm/components/foundation-alerts/index.js +0 -1
- package/dist/esm/components/foundation-alerts/styles/index.js +0 -1
- package/dist/esm/components/foundation-alerts/styles/styles.js +0 -198
- package/dist/esm/components/foundation-alerts/utils/getConditionObject.js +0 -24
- package/dist/esm/components/foundation-alerts/utils/getDateMilliseconds.js +0 -5
- package/dist/esm/components/foundation-alerts/utils/getDateStringFormat.js +0 -12
- package/dist/esm/components/foundation-alerts/utils/index.js +0 -4
- package/dist/esm/components/foundation-alerts/utils/logger.js +0 -2
- package/dist/esm/components/foundation-inbox/components/foundation-inbox-toast/foundation-inbox-toast.js +0 -42
- package/dist/esm/components/foundation-inbox/components/foundation-inbox-toast/foundation-inbox-toast.styles.js +0 -25
- package/dist/esm/components/foundation-inbox/inbox.config.js +0 -27
- package/dist/esm/components/foundation-inbox/layouts/default.js +0 -27
- package/dist/esm/components/foundation-inbox/layouts/index.js +0 -1
- package/dist/esm/components/foundation-inbox/services/foundation-inbox.service.js +0 -109
- package/dist/esm/components/foundation-inbox/styles/index.js +0 -1
- package/dist/esm/components/foundation-inbox/styles/styles.js +0 -13
- package/dist/esm/components/foundation-inbox/utils/getSeverityByMessageType.js +0 -4
- package/dist/esm/components/foundation-inbox/utils/index.js +0 -3
- package/dist/esm/components/foundation-inbox/utils/logger.js +0 -2
- package/dist/esm/components/foundation-inbox/utils/transformMessageToNotify.js +0 -12
- package/dist/esm/layouts/default.js +0 -27
- package/dist/esm/layouts/index.js +0 -1
- package/dist/esm/styles/index.js +0 -1
- package/dist/esm/styles/styles.js +0 -13
package/dist/dts/components/foundation-notification-dashboard/management/rule-management.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-management.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/management/rule-management.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,WAAW,EAAqB,MAAM,yBAAyB,CAAC;AAC7F,OAAO,EAAe,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACnF,OAAO,EAAE,UAAU,EAAkB,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"rule-management.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/management/rule-management.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,WAAW,EAAqB,MAAM,yBAAyB,CAAC;AAC7F,OAAO,EAAe,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACnF,OAAO,EAAE,UAAU,EAAkB,MAAM,2BAA2B,CAAC;AAKvE,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,uBAAuB,EAAE,MAAM,CAAC;IAChC,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAA;AAED,eAAO,MAAM,WAAW,YAAa,cAAc,oDAmDlD,CAAC;AAEF,qBAkCa,cAAe,SAAQ,WAAW;IAEhC,WAAW,EAAE,oBAAoB,CAAC;IAC/C,UAAU,EAAE,UAAU,CAAC;IAEvB,cAAc;IAIR,QAAQ,CAAC,GAAG,EAAE,WAAW;IAK/B,UAAU,CAAC,IAAI,EAAE,WAAW;CAmB7B"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { FASTElement } from '@microsoft/fast-element';
|
|
2
2
|
import { RuleTemplateServiceInterface } from '../../../services/rule-template.service';
|
|
3
|
+
import { TemplateDialog } from '../components/template-dialog/template-dialog';
|
|
3
4
|
export declare class RuleTemplateManagement extends FASTElement {
|
|
4
5
|
ruleTemplateService: RuleTemplateServiceInterface;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
deleteTemplate(ruleTemplate: any): void;
|
|
6
|
+
templateDialog: TemplateDialog;
|
|
7
|
+
openTemplateDialog(): void;
|
|
8
|
+
editTemplate(row: any): Promise<void>;
|
|
9
|
+
deleteTemplate(row: any): void;
|
|
10
10
|
}
|
|
11
11
|
//# sourceMappingURL=rule-template-management.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-template-management.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/management/rule-template-management.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,WAAW,
|
|
1
|
+
{"version":3,"file":"rule-template-management.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/management/rule-template-management.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,WAAW,EAAuC,MAAM,yBAAyB,CAAC;AAC/G,OAAO,EAAuB,4BAA4B,EAAE,MAAM,yCAAyC,CAAC;AAK5G,OAAO,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAuD/E,qBAkCa,sBAAuB,SAAQ,WAAW;IAEhC,mBAAmB,EAAE,4BAA4B,CAAC;IACvE,cAAc,EAAE,cAAc,CAAC;IAE/B,kBAAkB;IAIZ,YAAY,CAAC,GAAG,KAAA;IAKtB,cAAc,CAAC,GAAG,KAAA;CAmBnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screen-route-management.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/management/screen-route-management.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,WAAW,EAAQ,MAAM,yBAAyB,CAAC;AAG3E,
|
|
1
|
+
{"version":3,"file":"screen-route-management.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/management/screen-route-management.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,WAAW,EAAQ,MAAM,yBAAyB,CAAC;AAG3E,qBAaa,qBAAsB,SAAQ,WAAW;CAAG"}
|
package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-dashboard.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-notification-dashboard/notification-dashboard.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"notification-dashboard.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-notification-dashboard/notification-dashboard.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAA6B,MAAM,yBAAyB,CAAC;AAMjF;;GAEG;AACH,qBAKa,+BAAgC,SAAQ,WAAW;IAElD,KAAK,EAAE,OAAO,CAAS;IAE7B,iBAAiB;IAKvB;;;;OAIG;IACG,WAAW;CAIlB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const SEVERITY_INFORMATION = "INFORMATION";
|
|
2
|
-
export declare const SEVERITY_WARNING = "WARNING";
|
|
3
2
|
export declare const SEVERITY_CRITICAL = "CRITICAL";
|
|
4
3
|
export declare const SEVERITY_SERIOUS = "SERIOUS";
|
|
5
|
-
export declare const
|
|
4
|
+
export declare const SEVERITY_WARNING = "WARNING";
|
|
5
|
+
export declare const ALL_SEVERITIES: readonly ["INFORMATION", "CRITICAL", "SERIOUS", "WARNING"];
|
|
6
6
|
export type Severity = (typeof ALL_SEVERITIES)[number];
|
|
7
7
|
//# sourceMappingURL=severity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"severity.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/types/severity.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,gBAAgB,CAAC;AAClD,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"severity.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/types/severity.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,gBAAgB,CAAC;AAClD,eAAO,MAAM,iBAAiB,aAAa,CAAC;AAC5C,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAC1C,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAE1C,eAAO,MAAM,cAAc,4DAKjB,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -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":"AASA,MAAM,WAAW,qBAAqB;IACpC,SAAS,QAAG;IACZ,kBAAkB,CAAC,OAAO,EAAE,MAAM,OAAE;CACrC;AAyBD,eAAO,MAAM,YAAY,6EAExB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export interface NotifyServiceInterface {
|
|
2
|
-
getNotifyRouteTopics():
|
|
2
|
+
getNotifyRouteTopics(): any;
|
|
3
3
|
}
|
|
4
4
|
export declare const NotifyService: import("@microsoft/fast-foundation").InterfaceSymbol<NotifyServiceInterface>;
|
|
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,sBAAsB;IACrC,oBAAoB,
|
|
1
|
+
{"version":3,"file":"notify.service.d.ts","sourceRoot":"","sources":["../../../src/services/notify.service.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,sBAAsB;IACrC,oBAAoB,QAAG;CACxB;AAcD,eAAO,MAAM,aAAa,8EAEzB,CAAC"}
|
|
@@ -2,6 +2,8 @@ import { RuleTemplateEntity } from '../components/foundation-notification-dashbo
|
|
|
2
2
|
export interface RuleTemplateServiceInterface {
|
|
3
3
|
createRuleTemplate(ruleTemplate: RuleTemplateEntity): Promise<any>;
|
|
4
4
|
editRuleTemplate(ruleTemplate: RuleTemplateEntity): Promise<any>;
|
|
5
|
+
getResources(): Promise<string[]>;
|
|
6
|
+
getFields(resource: string): Promise<any>;
|
|
5
7
|
getRuleTemplates(): any;
|
|
6
8
|
getRuleTemplateDetails(dynamicRuleId: string): any;
|
|
7
9
|
deleteRuleTemplate(dynamicRuleId: string): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-template.service.d.ts","sourceRoot":"","sources":["../../../src/services/rule-template.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kGAAkG,CAAC;AAEtI,MAAM,WAAW,4BAA4B;IAC3C,kBAAkB,CAAC,YAAY,EAAE,kBAAkB,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACnE,gBAAgB,CAAC,YAAY,EAAE,kBAAkB,GAAG,OAAO,CAAC,GAAG,CAAC,CAAA;IAChE,gBAAgB,QAAG;IACnB,sBAAsB,CAAC,aAAa,EAAE,MAAM,OAAE;IAC9C,kBAAkB,CAAC,aAAa,EAAE,MAAM,OAAE;CAC3C;
|
|
1
|
+
{"version":3,"file":"rule-template.service.d.ts","sourceRoot":"","sources":["../../../src/services/rule-template.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kGAAkG,CAAC;AAEtI,MAAM,WAAW,4BAA4B;IAC3C,kBAAkB,CAAC,YAAY,EAAE,kBAAkB,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACnE,gBAAgB,CAAC,YAAY,EAAE,kBAAkB,GAAG,OAAO,CAAC,GAAG,CAAC,CAAA;IAChE,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,mBAAmB,oFAE/B,CAAC"}
|
|
@@ -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,+FAA+F,CAAC;AAGtH,MAAM,WAAW,sBAAsB;IACrC,YAAY,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAClC,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;CAC/C;
|
|
1
|
+
{"version":3,"file":"system.service.d.ts","sourceRoot":"","sources":["../../../src/services/system.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,+FAA+F,CAAC;AAGtH,MAAM,WAAW,sBAAsB;IACrC,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,8EAEzB,CAAC"}
|
|
@@ -2,7 +2,6 @@ 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 { FoundationInboxToast } from './foundation-inbox/components/foundation-inbox-toast/foundation-inbox-toast';
|
|
6
5
|
import { ConditionBuilder } from './foundation-notification-dashboard/components/condition-builder/condition-builder';
|
|
7
6
|
import { ParameterBuilder } from './foundation-notification-dashboard/components/parameter-builder/parameter-builder';
|
|
8
7
|
import { RuleDialog } from './foundation-notification-dashboard/components/rule-dialog';
|
|
@@ -18,7 +17,6 @@ import { RuleTemplateManagement } from './foundation-notification-dashboard/mana
|
|
|
18
17
|
import { ScreenRouteManagement } from './foundation-notification-dashboard/management/screen-route-management';
|
|
19
18
|
// Components
|
|
20
19
|
FoundationInboxCounter;
|
|
21
|
-
FoundationInboxToast;
|
|
22
20
|
TemplateDialog;
|
|
23
21
|
ConditionBuilder;
|
|
24
22
|
RuleDialog;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
2
|
import { FoundationInbox } from '../inbox';
|
|
3
|
-
import { logger } from '
|
|
3
|
+
import { logger } from '../../../utils';
|
|
4
4
|
import { FoundationInboxCounter } from './foundation-inbox-counter/foundation-inbox-counter';
|
|
5
|
-
import { FoundationInboxToast } from './foundation-inbox-toast/foundation-inbox-toast';
|
|
6
5
|
var ResourceType;
|
|
7
6
|
(function (ResourceType) {
|
|
8
7
|
ResourceType["LOCAL"] = "LOCAL";
|
|
@@ -48,5 +47,4 @@ export function loadRemotes() {
|
|
|
48
47
|
* Perhaps we keep these MFs style free, ie. they need to get wrapped to have style applied. Keeping it simple for now.
|
|
49
48
|
*/
|
|
50
49
|
FoundationInboxCounter;
|
|
51
|
-
FoundationInboxToast;
|
|
52
50
|
FoundationInbox;
|
|
@@ -2,7 +2,6 @@ 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
|
-
import { FoundationInboxService } from '../../services/foundation-inbox.service';
|
|
6
5
|
let FoundationInboxCounter = class FoundationInboxCounter extends FASTElement {
|
|
7
6
|
constructor() {
|
|
8
7
|
super(...arguments);
|
|
@@ -14,23 +13,15 @@ let FoundationInboxCounter = class FoundationInboxCounter extends FASTElement {
|
|
|
14
13
|
});
|
|
15
14
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16
15
|
_super.connectedCallback.call(this);
|
|
17
|
-
this.subscriptionHandler = ({ store }) => {
|
|
18
|
-
this.value = store.notifies.length;
|
|
19
|
-
};
|
|
20
|
-
this.foundationInboxService.subscribe(this.subscriptionHandler);
|
|
21
16
|
});
|
|
22
17
|
}
|
|
23
18
|
disconnectedCallback() {
|
|
24
19
|
super.disconnectedCallback();
|
|
25
|
-
this.foundationInboxService.unsubscribe(this.subscriptionHandler);
|
|
26
20
|
}
|
|
27
21
|
};
|
|
28
22
|
__decorate([
|
|
29
23
|
observable
|
|
30
24
|
], FoundationInboxCounter.prototype, "value", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
FoundationInboxService
|
|
33
|
-
], FoundationInboxCounter.prototype, "foundationInboxService", void 0);
|
|
34
25
|
FoundationInboxCounter = __decorate([
|
|
35
26
|
customElement({
|
|
36
27
|
name: 'foundation-inbox-counter',
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
|
-
import { Connect } from '@genesislcap/foundation-comms';
|
|
3
|
-
import { FASTElement, customElement, observable } from '@microsoft/fast-element';
|
|
4
|
-
import { AlertService } from '../../services/alert.service';
|
|
5
|
-
import { RuleTemplateService } from '../../services/rule-template.service';
|
|
6
|
-
import { RuleService } from '../../services/rule.service';
|
|
7
|
-
import { PARAM_SOURCE_TYPE_DEFINED_GROUP } from '../foundation-notification-dashboard/types/param-source-type';
|
|
8
2
|
import * as Components from '../index';
|
|
3
|
+
import { observable, customElement, FASTElement } from '@microsoft/fast-element';
|
|
9
4
|
import { InboxStyles as styles } from './inbox.styles';
|
|
10
5
|
import { InboxTab, FoundationInboxTemplate as template } from './inbox.template';
|
|
11
6
|
import { RuleStatus } from './inbox.types';
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
7
|
+
import { RuleTemplateService } from '../../services/rule-template.service';
|
|
8
|
+
import { RuleService } from '../../services/rule.service';
|
|
9
|
+
import { PARAM_SOURCE_TYPE_DEFINED_GROUP } from '../foundation-notification-dashboard/types/param-source-type';
|
|
10
|
+
import { EMPTY_HTML, createParametersOperatorMap, createSubscribeComponent } from './inbox.utils';
|
|
11
|
+
import { AlertService } from '../../services/alert.service';
|
|
12
|
+
import { logger } from '../../utils';
|
|
14
13
|
/**
|
|
15
14
|
* Foundation inbox component for displaying notifies list.
|
|
16
15
|
* Allow searching, filtering and deleting notifies
|
|
@@ -19,22 +18,44 @@ import { logger } from './utils';
|
|
|
19
18
|
let FoundationInbox = class FoundationInbox extends FASTElement {
|
|
20
19
|
constructor() {
|
|
21
20
|
super(...arguments);
|
|
21
|
+
this.ready = false;
|
|
22
22
|
this.alerts = [];
|
|
23
23
|
this.alertsFilter = [];
|
|
24
|
+
this.searchAlertLog = '';
|
|
24
25
|
this.rules = [];
|
|
25
26
|
this.rulesFilter = [];
|
|
26
27
|
this.templates = [];
|
|
27
28
|
this.templatesFilter = [];
|
|
28
|
-
this.ready = false;
|
|
29
|
-
this.searchAlertLog = '';
|
|
30
29
|
this.searchSubscribe = '';
|
|
31
|
-
this.
|
|
32
|
-
this.flyoutClosed = true;
|
|
30
|
+
this.parametersDetails = {};
|
|
33
31
|
this.ruleTemplateSelected = null;
|
|
34
|
-
this.subscribeToAlertComponent =
|
|
32
|
+
this.subscribeToAlertComponent = EMPTY_HTML;
|
|
33
|
+
this.subscribeDisabled = false;
|
|
34
|
+
this.flyoutClosed = true;
|
|
35
|
+
// #endregion
|
|
36
|
+
// #region Changed Events
|
|
35
37
|
this.alertsChanged = () => this.alertsFilter = this.alerts;
|
|
36
38
|
this.rulesChanged = () => this.rulesFilter = this.rules;
|
|
37
39
|
this.templatesChanged = () => this.templatesFilter = this.templates;
|
|
40
|
+
this.verifySubscribe = () => this.subscribeDisabled = !Object.values(this.parametersDetails).every(x => x !== '');
|
|
41
|
+
this.searchAlertLogChanged = () => {
|
|
42
|
+
if (!this.searchAlertLog) {
|
|
43
|
+
this.alertsFilter = this.alerts;
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
this.alertsFilter = this.alerts.filter(item => item.HEADER
|
|
47
|
+
.toLowerCase()
|
|
48
|
+
.startsWith(this.searchAlertLog.toLowerCase()));
|
|
49
|
+
};
|
|
50
|
+
this.searchSubscribeChanged = () => {
|
|
51
|
+
if (!this.searchSubscribe) {
|
|
52
|
+
this.templatesFilter = this.templates;
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
this.templatesFilter = this.templates.filter(item => item.NAME
|
|
56
|
+
.toLowerCase()
|
|
57
|
+
.startsWith(this.searchSubscribe.toLowerCase()));
|
|
58
|
+
};
|
|
38
59
|
}
|
|
39
60
|
connectedCallback() {
|
|
40
61
|
const _super = Object.create(null, {
|
|
@@ -42,13 +63,11 @@ let FoundationInbox = class FoundationInbox extends FASTElement {
|
|
|
42
63
|
});
|
|
43
64
|
return __awaiter(this, void 0, void 0, function* () {
|
|
44
65
|
_super.connectedCallback.call(this);
|
|
45
|
-
this.alerts = yield this.alertService.getAlerts();
|
|
46
|
-
this.rules = yield this.ruleService.getRules();
|
|
47
|
-
this.templates = yield this.ruleTemplateService.getRuleTemplates();
|
|
48
66
|
});
|
|
49
67
|
}
|
|
50
68
|
open() {
|
|
51
69
|
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
this.alerts = yield this.alertService.getAlerts();
|
|
52
71
|
this.rules = yield this.ruleService.getRules();
|
|
53
72
|
this.templates = yield this.ruleTemplateService.getRuleTemplates();
|
|
54
73
|
this.flyoutClosed = false;
|
|
@@ -58,47 +77,7 @@ let FoundationInbox = class FoundationInbox extends FASTElement {
|
|
|
58
77
|
this.cleanSubscriptionFields();
|
|
59
78
|
this.flyout.closeFlyout();
|
|
60
79
|
}
|
|
61
|
-
|
|
62
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
-
if (!this.searchAlertLog) {
|
|
64
|
-
this.alertsFilter = this.alerts;
|
|
65
|
-
}
|
|
66
|
-
this.alertsFilter = this.alerts.filter(item => item.HEADER.toLowerCase().startsWith(this.searchAlertLog.toLowerCase()));
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
searchSubscribeChanged() {
|
|
70
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
-
if (!this.searchSubscribe) {
|
|
72
|
-
this.templatesFilter = this.templates;
|
|
73
|
-
}
|
|
74
|
-
this.templatesFilter = this.templates.filter(item => item.NAME.toLowerCase().startsWith(this.searchSubscribe.toLowerCase()));
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
openAlertSubscription(ruleTemplate) {
|
|
78
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
79
|
-
if (this.ruleTemplateSelected) {
|
|
80
|
-
// Close
|
|
81
|
-
this.cleanSubscriptionFields();
|
|
82
|
-
return;
|
|
83
|
-
}
|
|
84
|
-
// Open
|
|
85
|
-
this.ruleTemplateSelected = yield this.ruleTemplateService.getRuleTemplateDetails(ruleTemplate.ID);
|
|
86
|
-
const parameters = this.ruleTemplateSelected.PARAMETERS;
|
|
87
|
-
this.subscribeToAlertComponent = createSubscribeComponent(parameters);
|
|
88
|
-
Object.keys(parameters).forEach(key => {
|
|
89
|
-
const parameter = parameters[key];
|
|
90
|
-
if (parameter.PARAM_SOURCE_TYPE === PARAM_SOURCE_TYPE_DEFINED_GROUP) {
|
|
91
|
-
// Attribute 1st group value for select fields
|
|
92
|
-
this.parameterDetails[parameter.PARAM_NAME] = parameter.PARAM_SOURCE.split(',')[0];
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
cleanSubscriptionFields() {
|
|
98
|
-
this.ruleTemplateSelected = null;
|
|
99
|
-
this.parameterDetails = {};
|
|
100
|
-
this.subscribeToAlertComponent = EMPTY_HTML;
|
|
101
|
-
}
|
|
80
|
+
// #region Tabs
|
|
102
81
|
checkActiveTab(inboxTab) {
|
|
103
82
|
return this.tabs.activeid === inboxTab.toString()
|
|
104
83
|
? ''
|
|
@@ -107,11 +86,10 @@ let FoundationInbox = class FoundationInbox extends FASTElement {
|
|
|
107
86
|
inboxTabChanged(inboxTab) {
|
|
108
87
|
return __awaiter(this, void 0, void 0, function* () {
|
|
109
88
|
logger.log('inboxTab Changed:', InboxTab[inboxTab.toString()]);
|
|
110
|
-
this.
|
|
111
|
-
this.subscribeToAlertComponent = '';
|
|
89
|
+
this.cleanSubscriptionFields();
|
|
112
90
|
switch (inboxTab) {
|
|
113
91
|
case InboxTab.AlertLog:
|
|
114
|
-
|
|
92
|
+
this.alerts = yield this.alertService.getAlerts();
|
|
115
93
|
break;
|
|
116
94
|
case InboxTab.MyAlerts:
|
|
117
95
|
this.rules = yield this.ruleService.getRules();
|
|
@@ -125,6 +103,15 @@ let FoundationInbox = class FoundationInbox extends FASTElement {
|
|
|
125
103
|
}
|
|
126
104
|
});
|
|
127
105
|
}
|
|
106
|
+
// #endregion
|
|
107
|
+
// #region Alert Log
|
|
108
|
+
// TODO:
|
|
109
|
+
deleteNotifyAlert(alertId) {
|
|
110
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
// #endregion
|
|
114
|
+
// #region My Alerts
|
|
128
115
|
// TODO:
|
|
129
116
|
editAlert() {
|
|
130
117
|
}
|
|
@@ -150,19 +137,47 @@ let FoundationInbox = class FoundationInbox extends FASTElement {
|
|
|
150
137
|
this.rules = yield this.ruleService.getRules();
|
|
151
138
|
});
|
|
152
139
|
}
|
|
140
|
+
// #endregion
|
|
141
|
+
// #region Subscribe
|
|
142
|
+
openAlertSubscription(ruleTemplate) {
|
|
143
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
144
|
+
if (this.ruleTemplateSelected) {
|
|
145
|
+
// Close
|
|
146
|
+
this.cleanSubscriptionFields();
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
// Open
|
|
150
|
+
this.ruleTemplateSelected = yield this.ruleTemplateService.getRuleTemplateDetails(ruleTemplate.ID);
|
|
151
|
+
const parameters = this.ruleTemplateSelected.PARAMETERS;
|
|
152
|
+
Object.keys(parameters).forEach(key => {
|
|
153
|
+
const parameter = parameters[key];
|
|
154
|
+
if (parameter.PARAM_SOURCE_TYPE === PARAM_SOURCE_TYPE_DEFINED_GROUP) {
|
|
155
|
+
// Attribute 1st group value for select fields
|
|
156
|
+
this.parametersDetails[parameter.PARAM_NAME] = parameter.PARAM_SOURCE.split(',')[0];
|
|
157
|
+
}
|
|
158
|
+
this.parametersDetails[parameter.PARAM_NAME] = '';
|
|
159
|
+
});
|
|
160
|
+
this.subscribeToAlertComponent = createSubscribeComponent(parameters, createParametersOperatorMap(this.ruleTemplateSelected.RULE_EXPRESSION.CONDITIONS));
|
|
161
|
+
this.verifySubscribe();
|
|
162
|
+
});
|
|
163
|
+
}
|
|
153
164
|
parameterEdit(parameter, valueTyped) {
|
|
154
|
-
this.
|
|
165
|
+
this.parametersDetails[parameter.PARAM_NAME] = valueTyped;
|
|
166
|
+
this.verifySubscribe();
|
|
155
167
|
}
|
|
156
168
|
subscribeAlert() {
|
|
157
169
|
return __awaiter(this, void 0, void 0, function* () {
|
|
158
|
-
yield this.ruleService.subscribeRule(this.ruleTemplateSelected.DYNAMIC_RULE_ID, this.
|
|
159
|
-
this.
|
|
160
|
-
this.ruleTemplateSelected = null;
|
|
170
|
+
yield this.ruleService.subscribeRule(this.ruleTemplateSelected.DYNAMIC_RULE_ID, this.parametersDetails);
|
|
171
|
+
this.cleanSubscriptionFields();
|
|
161
172
|
});
|
|
162
173
|
}
|
|
163
|
-
|
|
164
|
-
this.
|
|
174
|
+
cleanSubscriptionFields() {
|
|
175
|
+
this.ruleTemplateSelected = null;
|
|
176
|
+
this.parametersDetails = {};
|
|
177
|
+
this.subscribeToAlertComponent = EMPTY_HTML;
|
|
178
|
+
this.subscribeDisabled = false;
|
|
165
179
|
}
|
|
180
|
+
// #endregion
|
|
166
181
|
/**
|
|
167
182
|
* Load remote components
|
|
168
183
|
* @remarks With regards to module federation
|
|
@@ -176,29 +191,32 @@ let FoundationInbox = class FoundationInbox extends FASTElement {
|
|
|
176
191
|
}
|
|
177
192
|
};
|
|
178
193
|
__decorate([
|
|
179
|
-
|
|
180
|
-
], FoundationInbox.prototype, "
|
|
194
|
+
observable
|
|
195
|
+
], FoundationInbox.prototype, "ready", void 0);
|
|
181
196
|
__decorate([
|
|
182
197
|
AlertService
|
|
183
198
|
], FoundationInbox.prototype, "alertService", void 0);
|
|
184
|
-
__decorate([
|
|
185
|
-
RuleTemplateService
|
|
186
|
-
], FoundationInbox.prototype, "ruleTemplateService", void 0);
|
|
187
|
-
__decorate([
|
|
188
|
-
RuleService
|
|
189
|
-
], FoundationInbox.prototype, "ruleService", void 0);
|
|
190
199
|
__decorate([
|
|
191
200
|
observable
|
|
192
201
|
], FoundationInbox.prototype, "alerts", void 0);
|
|
193
202
|
__decorate([
|
|
194
203
|
observable
|
|
195
204
|
], FoundationInbox.prototype, "alertsFilter", void 0);
|
|
205
|
+
__decorate([
|
|
206
|
+
observable
|
|
207
|
+
], FoundationInbox.prototype, "searchAlertLog", void 0);
|
|
208
|
+
__decorate([
|
|
209
|
+
RuleService
|
|
210
|
+
], FoundationInbox.prototype, "ruleService", void 0);
|
|
196
211
|
__decorate([
|
|
197
212
|
observable
|
|
198
213
|
], FoundationInbox.prototype, "rules", void 0);
|
|
199
214
|
__decorate([
|
|
200
215
|
observable
|
|
201
216
|
], FoundationInbox.prototype, "rulesFilter", void 0);
|
|
217
|
+
__decorate([
|
|
218
|
+
RuleTemplateService
|
|
219
|
+
], FoundationInbox.prototype, "ruleTemplateService", void 0);
|
|
202
220
|
__decorate([
|
|
203
221
|
observable
|
|
204
222
|
], FoundationInbox.prototype, "templates", void 0);
|
|
@@ -207,22 +225,19 @@ __decorate([
|
|
|
207
225
|
], FoundationInbox.prototype, "templatesFilter", void 0);
|
|
208
226
|
__decorate([
|
|
209
227
|
observable
|
|
210
|
-
], FoundationInbox.prototype, "
|
|
211
|
-
__decorate([
|
|
212
|
-
observable
|
|
213
|
-
], FoundationInbox.prototype, "searchAlertLog", void 0);
|
|
228
|
+
], FoundationInbox.prototype, "searchSubscribe", void 0);
|
|
214
229
|
__decorate([
|
|
215
230
|
observable
|
|
216
|
-
], FoundationInbox.prototype, "
|
|
231
|
+
], FoundationInbox.prototype, "ruleTemplateSelected", void 0);
|
|
217
232
|
__decorate([
|
|
218
233
|
observable
|
|
219
|
-
], FoundationInbox.prototype, "
|
|
234
|
+
], FoundationInbox.prototype, "subscribeToAlertComponent", void 0);
|
|
220
235
|
__decorate([
|
|
221
236
|
observable
|
|
222
|
-
], FoundationInbox.prototype, "
|
|
237
|
+
], FoundationInbox.prototype, "subscribeDisabled", void 0);
|
|
223
238
|
__decorate([
|
|
224
239
|
observable
|
|
225
|
-
], FoundationInbox.prototype, "
|
|
240
|
+
], FoundationInbox.prototype, "flyoutClosed", void 0);
|
|
226
241
|
FoundationInbox = __decorate([
|
|
227
242
|
customElement({
|
|
228
243
|
name: 'foundation-inbox',
|
|
@@ -11,6 +11,8 @@ export const InboxStyles = css `
|
|
|
11
11
|
|
|
12
12
|
zero-flyout::part(content) {
|
|
13
13
|
height: 100%;
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
.inbox {
|
|
@@ -235,7 +237,7 @@ export const InboxStyles = css `
|
|
|
235
237
|
cursor: default;
|
|
236
238
|
}
|
|
237
239
|
|
|
238
|
-
.rule-status-
|
|
240
|
+
.rule-status-actions {
|
|
239
241
|
display: flex;
|
|
240
242
|
flex-direction: row;
|
|
241
243
|
gap: 8px;
|
|
@@ -246,7 +248,7 @@ export const InboxStyles = css `
|
|
|
246
248
|
background-color: #2e3034;
|
|
247
249
|
}
|
|
248
250
|
|
|
249
|
-
.rule:hover > .rule-status-
|
|
251
|
+
.rule:hover > .rule-status-actions > .rule-actions {
|
|
250
252
|
visibility: visible;
|
|
251
253
|
}
|
|
252
254
|
|