@genesislcap/pbc-notify-ui 1.0.23 → 1.0.25
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/.husky/commit-msg +3 -0
- package/.husky/pre-commit +4 -0
- package/commitlint.config.js +25 -0
- 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/foundation-inbox-flyout/foundation-inbox-flyout.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.d.ts +3 -3
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.d.ts +2 -2
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.d.ts +1 -1
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox-base/inbox-base.d.ts +12 -9
- package/dist/dts/components/foundation-inbox/inbox-base/inbox-base.d.ts.map +1 -1
- 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 +4 -3
- package/dist/dts/components/foundation-inbox/inbox.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox.types.d.ts +6 -0
- package/dist/dts/components/foundation-inbox/inbox.types.d.ts.map +1 -1
- 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 -1
- package/dist/dts/components/foundation-notification-dashboard/components/routes/route-management.d.ts +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/routes/tabs/email-distribution-route-management.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/routes/tabs/email-user-route-management.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/routes/tabs/log-route-management.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/routes/tabs/ms-teams-route-management.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/routes/tabs/screen-route-management.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/columns.d.ts +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/columns.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.d.ts +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.types.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.styles.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.d.ts +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.types.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-management.d.ts +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-management.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/columns.d.ts +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/columns.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.template.d.ts +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.d.ts +3 -3
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.d.ts +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.styles.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.d.ts +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.utils.d.ts +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.utils.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-management.d.ts +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-management.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.d.ts +1 -1
- package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/types/right-criteria.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/types/rule-execution-strategy.d.ts.map +1 -1
- package/dist/dts/services/alert.service.d.ts.map +1 -1
- package/dist/dts/services/notify.service.d.ts.map +1 -1
- package/dist/dts/services/rule.service.d.ts.map +1 -1
- package/dist/dts/services/system.service.d.ts.map +1 -1
- package/dist/dts/services/template.service.d.ts.map +1 -1
- package/dist/dts/utils/eventDetail.d.ts +1 -1
- package/dist/dts/utils/gridConfig.d.ts.map +1 -1
- package/dist/dts/utils/humanize.d.ts.map +1 -1
- package/dist/dts/utils/icons.d.ts.map +1 -1
- package/dist/dts/utils/logger.d.ts.map +1 -1
- package/dist/dts/utils/updateArray.d.ts.map +1 -1
- package/dist/esm/components/components.js +10 -10
- package/dist/esm/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.template.js +1 -1
- package/dist/esm/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.js +1 -1
- package/dist/esm/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.styles.js +1 -1
- package/dist/esm/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.template.js +5 -10
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/inbox-subscription.js +9 -11
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/inbox-subscription.styles.js +2 -2
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.js +12 -13
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.js +6 -6
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.styles.js +1 -1
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.js +27 -32
- package/dist/esm/components/foundation-inbox/inbox-base/inbox-base.js +38 -32
- package/dist/esm/components/foundation-inbox/inbox.js +1 -1
- package/dist/esm/components/foundation-inbox/inbox.styles.js +24 -33
- package/dist/esm/components/foundation-inbox/inbox.template.js +90 -67
- package/dist/esm/components/foundation-inbox/inbox.types.js +5 -0
- package/dist/esm/components/foundation-inbox/inbox.utils.js +4 -8
- package/dist/esm/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.js +9 -10
- package/dist/esm/components/foundation-notification-dashboard/components/routes/route-management.js +4 -4
- package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/email-distribution-route-management.js +8 -9
- package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/email-user-route-management.js +8 -9
- package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/log-route-management.js +11 -12
- package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/ms-teams-route-management.js +12 -13
- package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/screen-route-management.js +17 -18
- package/dist/esm/components/foundation-notification-dashboard/components/rules/columns.js +10 -10
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.js +2 -2
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.styles.js +2 -2
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.js +21 -32
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.js +13 -20
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.styles.js +9 -7
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.js +29 -61
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-management.js +15 -19
- package/dist/esm/components/foundation-notification-dashboard/components/templates/columns.js +10 -10
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.js +4 -8
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.styles.js +2 -2
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.template.js +25 -43
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.js +4 -8
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.js +4 -4
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.js +25 -42
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.js +24 -24
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.styles.js +7 -8
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.js +31 -69
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.utils.js +18 -18
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-management.js +15 -19
- package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.js +2 -2
- package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.tabs.js +5 -5
- package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.template.js +7 -5
- package/dist/esm/components/foundation-notification-dashboard/styles/management.styles.js +1 -1
- package/dist/esm/components/foundation-notification-dashboard/styles/rules-and-templates.styles.js +1 -1
- package/dist/esm/components/foundation-notification-dashboard/types/expression-type.js +1 -1
- package/dist/esm/components/foundation-notification-dashboard/types/right-criteria.js +1 -4
- package/dist/esm/components/foundation-notification-dashboard/types/rule-execution-strategy.js +1 -4
- package/dist/esm/components/foundation-notification-dashboard/types/severity.js +1 -1
- package/dist/esm/index.federated.js +1 -0
- package/dist/esm/services/alert.service.js +4 -4
- package/dist/esm/services/notify.service.js +6 -6
- package/dist/esm/services/rule.service.js +15 -12
- package/dist/esm/services/system.service.js +11 -8
- package/dist/esm/services/template.service.js +11 -9
- package/dist/esm/utils/gridConfig.js +1 -1
- package/dist/esm/utils/humanize.js +3 -2
- package/dist/esm/utils/icons.js +3 -10
- package/dist/esm/utils/notifyPermissions.js +4 -4
- package/package.json +43 -5
- package/scripts/commitlint.js +24 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system.service.d.ts","sourceRoot":"","sources":["../../../src/services/system.service.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,KAAK,GAAG;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB,
|
|
1
|
+
{"version":3,"file":"system.service.d.ts","sourceRoot":"","sources":["../../../src/services/system.service.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,KAAK,GAAG;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,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;AA6BD,eAAO,MAAM,aAAa,qEAEzB,CAAC"}
|
|
@@ -1 +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,
|
|
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,CAAC;IACvD,gBAAgB,QAAG;IACnB,sBAAsB,CAAC,aAAa,EAAE,MAAM,OAAE;IAC9C,kBAAkB,CAAC,aAAa,EAAE,MAAM,OAAE;CAC3C;AA0DD,eAAO,MAAM,eAAe,uEAE3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gridConfig.d.ts","sourceRoot":"","sources":["../../../src/utils/gridConfig.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;CAEtB,
|
|
1
|
+
{"version":3,"file":"gridConfig.d.ts","sourceRoot":"","sources":["../../../src/utils/gridConfig.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;CAEtB,CAAC;AAEF,eAAO,MAAM,cAAc;;;CAG1B,CAAC;AAEF,eAAO,MAAM,WAAW,qBAAsB,GAAG,QAI5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"humanize.d.ts","sourceRoot":"","sources":["../../../src/utils/humanize.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,MAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"humanize.d.ts","sourceRoot":"","sources":["../../../src/utils/humanize.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,MAAO,MAAM,WAajC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/utils/icons.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/utils/icons.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,0DAQpB,CAAC;AAEF,eAAO,MAAM,UAAU,0DAEtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/utils/logger.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/utils/logger.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,iDAAgC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateArray.d.ts","sourceRoot":"","sources":["../../../src/utils/updateArray.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"updateArray.d.ts","sourceRoot":"","sources":["../../../src/utils/updateArray.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,YAAa,MAAM,GAAG,CAAC,WAAW,MAAM,GAAG,CAAC,KAAG,MAAM,GAAG,CA+B/E,CAAC"}
|
|
@@ -3,22 +3,22 @@ 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
5
|
import { FoundationInboxFlyout } from './foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout';
|
|
6
|
+
import { InboxSubscription } from './foundation-inbox/components/inbox-subscription/inbox-subscription';
|
|
7
|
+
import { RuleParameter } from './foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter';
|
|
8
|
+
import { NotifyAuditManagement } from './foundation-notification-dashboard/components/notify-audit/notify-audit-management';
|
|
9
|
+
import { RouteManagement } from './foundation-notification-dashboard/components/routes/route-management';
|
|
6
10
|
import { EmailDistributionRouteManagement } from './foundation-notification-dashboard/components/routes/tabs/email-distribution-route-management';
|
|
7
11
|
import { EmailUserRouteManagement } from './foundation-notification-dashboard/components/routes/tabs/email-user-route-management';
|
|
8
12
|
import { LogRouteManagement } from './foundation-notification-dashboard/components/routes/tabs/log-route-management';
|
|
9
13
|
import { MSTeamsRouteManagement } from './foundation-notification-dashboard/components/routes/tabs/ms-teams-route-management';
|
|
10
|
-
import { NotifyAuditManagement } from './foundation-notification-dashboard/components/notify-audit/notify-audit-management';
|
|
11
|
-
import { RuleManagement } from './foundation-notification-dashboard/components/rules/rule-management';
|
|
12
|
-
import { TemplateManagement } from './foundation-notification-dashboard/components/templates/template-management';
|
|
13
14
|
import { ScreenRouteManagement } from './foundation-notification-dashboard/components/routes/tabs/screen-route-management';
|
|
14
|
-
import { InboxSubscription } from './foundation-inbox/components/inbox-subscription/inbox-subscription';
|
|
15
|
-
import { TemplateDialog } from './foundation-notification-dashboard/components/templates/template-dialog/template-dialog';
|
|
16
|
-
import { ConditionBuilder } from './foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder';
|
|
17
|
-
import { RuleDialog } from './foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog';
|
|
18
15
|
import { RuleConditionBuilder } from './foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder';
|
|
16
|
+
import { RuleDialog } from './foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog';
|
|
17
|
+
import { RuleManagement } from './foundation-notification-dashboard/components/rules/rule-management';
|
|
18
|
+
import { ConditionBuilder } from './foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder';
|
|
19
19
|
import { ParameterBuilder } from './foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder';
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
20
|
+
import { TemplateDialog } from './foundation-notification-dashboard/components/templates/template-dialog/template-dialog';
|
|
21
|
+
import { TemplateManagement } from './foundation-notification-dashboard/components/templates/template-management';
|
|
22
22
|
// Components
|
|
23
23
|
// #region Inbox
|
|
24
24
|
FoundationInboxCounter;
|
|
@@ -58,7 +58,7 @@ function loadZeroDesignSystem() {
|
|
|
58
58
|
return __awaiter(this, void 0, void 0, function* () {
|
|
59
59
|
let type = ResourceType.REMOTE;
|
|
60
60
|
try {
|
|
61
|
-
// @ts-ignore
|
|
61
|
+
// @ts-expect-error ignore zeroDesignSystem module
|
|
62
62
|
return yield import('foundationZero/ZeroDesignSystem');
|
|
63
63
|
}
|
|
64
64
|
catch (e) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { html } from '@microsoft/fast-element';
|
|
2
2
|
const MAX_NUMBER_TO_DISPLAY = 99;
|
|
3
3
|
export const FoundationInboxCounterTemplate = html `
|
|
4
|
-
<div class="${x => x.value < 1 && 'hidden'}">
|
|
4
|
+
<div class="${(x) => x.value < 1 && 'hidden'}">
|
|
5
5
|
${(x) => (x.value > MAX_NUMBER_TO_DISPLAY ? `${MAX_NUMBER_TO_DISPLAY}+` : x.value)}
|
|
6
6
|
</div>
|
|
7
7
|
`;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
2
|
import { observable, customElement } from '@microsoft/fast-element';
|
|
3
|
+
import { FoundationInboxBase } from '../../inbox-base/inbox-base';
|
|
3
4
|
import { FoundationInboxFlyoutStyles } from './foundation-inbox-flyout.styles';
|
|
4
5
|
import { FoundationInboxFlyoutTemplate } from './foundation-inbox-flyout.template';
|
|
5
|
-
import { FoundationInboxBase } from '../../inbox-base/inbox-base';
|
|
6
6
|
let FoundationInboxFlyout = class FoundationInboxFlyout extends FoundationInboxBase {
|
|
7
7
|
constructor() {
|
|
8
8
|
super(...arguments);
|
|
@@ -4,22 +4,17 @@ export const FoundationInboxFlyoutTemplate = html `
|
|
|
4
4
|
<zero-flyout
|
|
5
5
|
${ref('flyout')}
|
|
6
6
|
position="right"
|
|
7
|
-
@closed=${x => x.flyoutClosed = true}
|
|
8
|
-
:closed=${x => x.flyoutClosed}
|
|
7
|
+
@closed=${(x) => (x.flyoutClosed = true)}
|
|
8
|
+
:closed=${(x) => x.flyoutClosed}
|
|
9
9
|
displayHeader=${false}
|
|
10
10
|
>
|
|
11
11
|
<div class="inbox-header">
|
|
12
|
-
<div class="inbox-header-title">
|
|
13
|
-
|
|
14
|
-
</div>
|
|
15
|
-
<zero-button
|
|
16
|
-
class="inbox-header-close"
|
|
17
|
-
@click=${x => x.close()}
|
|
18
|
-
>
|
|
12
|
+
<div class="inbox-header-title">Alerts</div>
|
|
13
|
+
<zero-button class="inbox-header-close" @click=${(x) => x.close()}>
|
|
19
14
|
<zero-icon part="icon" name="xmark" size="xl"></zero-icon>
|
|
20
15
|
</zero-button>
|
|
21
16
|
</div>
|
|
22
|
-
|
|
17
|
+
|
|
23
18
|
${FoundationInboxTemplate}
|
|
24
19
|
</zero-flyout>
|
|
25
20
|
`;
|
package/dist/esm/components/foundation-inbox/components/inbox-subscription/inbox-subscription.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
|
-
import { FASTElement, attr, customElement, observable } from
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
2
|
+
import { FASTElement, attr, customElement, observable } from '@microsoft/fast-element';
|
|
3
|
+
import { RuleService } from '../../../../services/rule.service';
|
|
4
|
+
import { EXPRESSION_TYPE_PLACEHOLDER } from '../../../foundation-notification-dashboard/types/expression-type';
|
|
5
|
+
import { PARAM_SOURCE_TYPE_DEFINED_GROUP } from '../../../foundation-notification-dashboard/types/param-source-type';
|
|
6
|
+
import { InboxSubscriptionStyles } from './inbox-subscription.styles';
|
|
7
|
+
import { InboxSubscriptionTemplate } from './inbox-subscription.template';
|
|
8
8
|
let InboxSubscription = class InboxSubscription extends FASTElement {
|
|
9
9
|
constructor() {
|
|
10
10
|
super(...arguments);
|
|
11
11
|
this.parametersDetails = {};
|
|
12
12
|
this.parametersOperators = {};
|
|
13
13
|
this.subscribeDisabled = true;
|
|
14
|
-
this.isFirstElement = (parameter) => Object.values(this.template.PARAMETERS).findIndex(p => p.PARAM_NAME === parameter.PARAM_NAME) === 0;
|
|
14
|
+
this.isFirstElement = (parameter) => Object.values(this.template.PARAMETERS).findIndex((p) => p.PARAM_NAME === parameter.PARAM_NAME) === 0;
|
|
15
15
|
this.createParametersOperatorMap = (conditions) => {
|
|
16
16
|
this.parametersOperators = {};
|
|
17
17
|
conditions.forEach((condition) => {
|
|
@@ -32,7 +32,7 @@ let InboxSubscription = class InboxSubscription extends FASTElement {
|
|
|
32
32
|
}
|
|
33
33
|
templateChanged() {
|
|
34
34
|
const parameters = this.template.PARAMETERS;
|
|
35
|
-
Object.keys(parameters).forEach(key => {
|
|
35
|
+
Object.keys(parameters).forEach((key) => {
|
|
36
36
|
const parameter = parameters[key];
|
|
37
37
|
if (parameter.PARAM_SOURCE_TYPE === PARAM_SOURCE_TYPE_DEFINED_GROUP) {
|
|
38
38
|
// Attribute 1st group value for select fields
|
|
@@ -49,9 +49,7 @@ let InboxSubscription = class InboxSubscription extends FASTElement {
|
|
|
49
49
|
}
|
|
50
50
|
verifySubscribe() {
|
|
51
51
|
const parameters = Object.values(this.parametersDetails);
|
|
52
|
-
this.subscribeDisabled = parameters.length > 0
|
|
53
|
-
? !parameters.every(x => x !== '')
|
|
54
|
-
: false;
|
|
52
|
+
this.subscribeDisabled = parameters.length > 0 ? !parameters.every((x) => x !== '') : false;
|
|
55
53
|
}
|
|
56
54
|
subscribeTemplate() {
|
|
57
55
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { css } from
|
|
1
|
+
import { css } from '@microsoft/fast-element';
|
|
2
2
|
export const InboxSubscriptionStyles = css `
|
|
3
3
|
.inbox-subscription {
|
|
4
4
|
display: flex;
|
|
@@ -30,7 +30,7 @@ export const InboxSubscriptionStyles = css `
|
|
|
30
30
|
|
|
31
31
|
zero-button.subscribe {
|
|
32
32
|
display: flex;
|
|
33
|
-
margin:
|
|
33
|
+
margin: 0;
|
|
34
34
|
width: 100%;
|
|
35
35
|
}
|
|
36
36
|
`;
|
|
@@ -3,37 +3,36 @@ import { eventDetail } from '../../../../utils';
|
|
|
3
3
|
export const InboxSubscriptionTemplate = html `
|
|
4
4
|
<div class="inbox-subscription">
|
|
5
5
|
<div class="inbox-subscription-header">
|
|
6
|
-
Subscribe to
|
|
6
|
+
Subscribe to
|
|
7
|
+
<span style="font-weight: bold;">${(x) => x.template.RULE_NAME}</span>
|
|
7
8
|
</div>
|
|
8
|
-
|
|
9
|
-
${when(x => Object.values(x.template.PARAMETERS).length === 0, html `
|
|
9
|
+
|
|
10
|
+
${when((x) => Object.values(x.template.PARAMETERS).length === 0, html `
|
|
10
11
|
<p style="padding-left: 10px;">The selected template doesn't have parameters.</p>
|
|
11
12
|
`)}
|
|
12
|
-
|
|
13
|
-
${when(x => Object.values(x.template.PARAMETERS).length > 0, html `
|
|
13
|
+
${when((x) => Object.values(x.template.PARAMETERS).length > 0, html `
|
|
14
14
|
<div class="inbox-subscription-content">
|
|
15
15
|
${repeat(
|
|
16
16
|
// @ts-ignore
|
|
17
|
-
x => Object.values(x.template.PARAMETERS), html `
|
|
17
|
+
(x) => Object.values(x.template.PARAMETERS), html `
|
|
18
18
|
<rule-parameter
|
|
19
|
-
:parameter=${x => x}
|
|
19
|
+
:parameter=${(x) => x}
|
|
20
20
|
:isFirstElement=${(x, c) => c.parent.isFirstElement(x)}
|
|
21
21
|
:operator=${(x, c) => c.parent.parametersOperators[x.PARAM_NAME]}
|
|
22
22
|
@parameterEdited=${(x, c) => c.parent.parameterEdit(eventDetail(c))}
|
|
23
|
-
>
|
|
24
|
-
</rule-parameter>
|
|
23
|
+
></rule-parameter>
|
|
25
24
|
`)}
|
|
26
25
|
</div>
|
|
27
26
|
`)}
|
|
28
|
-
|
|
27
|
+
|
|
29
28
|
<div class="inbox-subscription-footer">
|
|
30
29
|
<zero-button
|
|
31
30
|
class="subscribe"
|
|
32
|
-
@click=${x => x.subscribeTemplate()}
|
|
33
|
-
?disabled=${x => x.subscribeDisabled}
|
|
31
|
+
@click=${(x) => x.subscribeTemplate()}
|
|
32
|
+
?disabled=${(x) => x.subscribeDisabled}
|
|
34
33
|
>
|
|
35
34
|
Subscribe
|
|
36
35
|
</zero-button>
|
|
37
36
|
</div>
|
|
38
|
-
</div>
|
|
37
|
+
</div>
|
|
39
38
|
`;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { FASTElement, attr, customElement, observable } from
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { FASTElement, attr, customElement, observable } from '@microsoft/fast-element';
|
|
3
|
+
import { PARAM_SOURCE_TYPE_DEFINED_GROUP, PARAM_SOURCE_TYPE_USER_TEXT, } from '../../../../foundation-notification-dashboard/types/param-source-type';
|
|
4
|
+
import { PARAM_TYPE_BOOLEAN } from '../../../../foundation-notification-dashboard/types/param-type';
|
|
5
|
+
import { RuleParameterStyles } from './rule-parameter.styles';
|
|
6
|
+
import { RuleParameterTemplate } from './rule-parameter.template';
|
|
7
7
|
let RuleParameter = class RuleParameter extends FASTElement {
|
|
8
8
|
constructor() {
|
|
9
9
|
super(...arguments);
|
|
@@ -37,7 +37,7 @@ let RuleParameter = class RuleParameter extends FASTElement {
|
|
|
37
37
|
this.inputValue = inputValue;
|
|
38
38
|
this.$emit('parameterEdited', {
|
|
39
39
|
parameter: this.parameter,
|
|
40
|
-
valueTyped: inputValue
|
|
40
|
+
valueTyped: inputValue,
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
};
|
|
@@ -1,43 +1,41 @@
|
|
|
1
|
-
import { html, repeat, when } from "@microsoft/fast-element";
|
|
2
1
|
import { sync } from '@genesislcap/foundation-utils';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { html, repeat, when } from '@microsoft/fast-element';
|
|
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
6
|
export const RuleParameterTemplate = html `
|
|
7
7
|
<div class="control">
|
|
8
8
|
<label>
|
|
9
|
-
<span style="font-weight: bold;">${x => x.parameter.PARAM_LABEL}</span>
|
|
9
|
+
<span style="font-weight: bold;">${(x) => x.parameter.PARAM_LABEL}</span>
|
|
10
|
+
${(x, c) => humanize(x.operator).toLowerCase()}
|
|
10
11
|
</label>
|
|
11
|
-
|
|
12
|
+
|
|
12
13
|
<!-- 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 `
|
|
14
|
+
${when((x) => x.parameter.PARAM_SOURCE_TYPE === PARAM_SOURCE_TYPE_USER_TEXT, html `
|
|
15
|
+
${when((x) => x.parameter.PARAM_TYPE === PARAM_TYPE_STRING, html `
|
|
15
16
|
<zero-text-field
|
|
16
|
-
autofocus=${x => x.isFirstElement}
|
|
17
|
+
autofocus=${(x) => x.isFirstElement}
|
|
17
18
|
class="input-field"
|
|
18
|
-
:value=${sync(x => x.inputValue)}
|
|
19
|
+
:value=${sync((x) => x.inputValue)}
|
|
19
20
|
@input=${(x, c) => x.parameterEdit(c.event.target.value)}
|
|
20
|
-
>
|
|
21
|
-
</zero-text-field>
|
|
21
|
+
></zero-text-field>
|
|
22
22
|
`)}
|
|
23
|
-
|
|
24
|
-
${when(x => x.parameter.PARAM_TYPE === PARAM_TYPE_NUMBER, html `
|
|
23
|
+
${when((x) => x.parameter.PARAM_TYPE === PARAM_TYPE_NUMBER, html `
|
|
25
24
|
<zero-number-field
|
|
26
25
|
hide-step
|
|
27
|
-
autofocus=${x => x.isFirstElement}
|
|
26
|
+
autofocus=${(x) => x.isFirstElement}
|
|
28
27
|
class="input-field"
|
|
29
|
-
:value=${sync(x => x.inputValue)}
|
|
28
|
+
:value=${sync((x) => x.inputValue)}
|
|
30
29
|
@input=${(x, c) => x.parameterEdit(c.event.target.value)}
|
|
31
|
-
>
|
|
32
|
-
</zero-number-field>
|
|
30
|
+
></zero-number-field>
|
|
33
31
|
`)}
|
|
34
32
|
|
|
35
|
-
|
|
36
|
-
${when(x => x.parameter.PARAM_TYPE === PARAM_TYPE_BOOLEAN, html `
|
|
33
|
+
<!-- TODO: Implement
|
|
34
|
+
${when((x) => x.parameter.PARAM_TYPE === PARAM_TYPE_BOOLEAN, html `
|
|
37
35
|
<zero-select
|
|
38
|
-
autofocus=${x => x.isFirstElement}
|
|
36
|
+
autofocus=${(x) => x.isFirstElement}
|
|
39
37
|
class="input-field"
|
|
40
|
-
:value=${sync(x => x.inputValue)}
|
|
38
|
+
:value=${sync((x) => x.inputValue)}
|
|
41
39
|
>
|
|
42
40
|
<zero-option value="true">true</zero-option>
|
|
43
41
|
<zero-option value="false">false</zero-option>
|
|
@@ -45,26 +43,23 @@ export const RuleParameterTemplate = html `
|
|
|
45
43
|
`)}
|
|
46
44
|
-->
|
|
47
45
|
`)}
|
|
48
|
-
|
|
46
|
+
|
|
49
47
|
<!-- DEFINED_GROUP -->
|
|
50
|
-
${when(x => x.parameter.PARAM_SOURCE_TYPE === PARAM_SOURCE_TYPE_DEFINED_GROUP, html `
|
|
48
|
+
${when((x) => x.parameter.PARAM_SOURCE_TYPE === PARAM_SOURCE_TYPE_DEFINED_GROUP, html `
|
|
51
49
|
<zero-select
|
|
52
|
-
autofocus=${x => x.isFirstElement}
|
|
50
|
+
autofocus=${(x) => x.isFirstElement}
|
|
53
51
|
class="input-field"
|
|
54
|
-
:value=${sync(x => x.inputValue)}
|
|
52
|
+
:value=${sync((x) => x.inputValue)}
|
|
55
53
|
>
|
|
56
|
-
${repeat(x => x.parameter.PARAM_SOURCE.split(','), html `
|
|
54
|
+
${repeat((x) => x.parameter.PARAM_SOURCE.split(','), html `
|
|
57
55
|
<zero-option value=${(x) => x}>${(x) => x}</zero-option>
|
|
58
56
|
`)}
|
|
59
57
|
</zero-select>
|
|
60
58
|
`)}
|
|
61
59
|
|
|
62
60
|
<!-- TODO: REQ_REP -->
|
|
63
|
-
${when(x => x.parameter.PARAM_SOURCE_TYPE === PARAM_SOURCE_TYPE_REQ_REP, html `
|
|
64
|
-
<zero-select
|
|
65
|
-
:value=${sync(x => x.inputValue)}
|
|
66
|
-
>
|
|
67
|
-
</zero-select>
|
|
61
|
+
${when((x) => x.parameter.PARAM_SOURCE_TYPE === PARAM_SOURCE_TYPE_REQ_REP, html `
|
|
62
|
+
<zero-select :value=${sync((x) => x.inputValue)}></zero-select>
|
|
68
63
|
`)}
|
|
69
64
|
</div>
|
|
70
65
|
`;
|
|
@@ -1,49 +1,41 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
|
-
import { Auth } from
|
|
3
|
-
import { FASTElement, observable } from
|
|
4
|
-
import { AlertService } from
|
|
5
|
-
import { RuleService } from
|
|
6
|
-
import { TemplateService } from
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
2
|
+
import { Auth } from '@genesislcap/foundation-comms';
|
|
3
|
+
import { FASTElement, observable } from '@microsoft/fast-element';
|
|
4
|
+
import { AlertService } from '../../../services/alert.service';
|
|
5
|
+
import { RuleService } from '../../../services/rule.service';
|
|
6
|
+
import { TemplateService } from '../../../services/template.service';
|
|
7
|
+
import { logger, updateArray } from '../../../utils';
|
|
8
|
+
import { InboxTab } from '../inbox.template';
|
|
9
|
+
import { RuleStatus, } from '../inbox.types';
|
|
10
10
|
export class FoundationInboxBase extends FASTElement {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments);
|
|
13
13
|
this.ready = false;
|
|
14
14
|
this.alerts = [];
|
|
15
15
|
this.alertsFilter = [];
|
|
16
|
-
this.searchAlertLog = '';
|
|
17
16
|
this.rules = [];
|
|
18
17
|
this.rulesFilter = [];
|
|
19
18
|
this.templates = [];
|
|
20
19
|
this.templatesFilter = [];
|
|
21
20
|
this.searchSubscribe = '';
|
|
22
21
|
this.ruleTemplateDetails = null;
|
|
22
|
+
this.selectedTab = InboxTab.AlertsNew;
|
|
23
23
|
// #endregion
|
|
24
24
|
// #region Changed Events
|
|
25
|
-
this.alertsChanged = () => this.alertsFilter = this.alerts;
|
|
26
|
-
this.rulesChanged = () => this.rulesFilter = this.rules;
|
|
27
|
-
this.templatesChanged = () => this.templatesFilter = this.templates;
|
|
25
|
+
this.alertsChanged = () => (this.alertsFilter = this.alerts);
|
|
26
|
+
this.rulesChanged = () => (this.rulesFilter = this.rules);
|
|
27
|
+
this.templatesChanged = () => (this.templatesFilter = this.templates);
|
|
28
|
+
this.searchAlertLog = '';
|
|
28
29
|
this.searchAlertLogChanged = () => {
|
|
29
|
-
|
|
30
|
-
this.alertsFilter = this.alerts;
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
this.alertsFilter = this.alerts.filter(item => item.HEADER
|
|
34
|
-
.toLowerCase()
|
|
35
|
-
.startsWith(this.searchAlertLog.toLowerCase()));
|
|
30
|
+
this.filterAlerts();
|
|
36
31
|
};
|
|
37
32
|
this.searchSubscribeChanged = () => {
|
|
38
33
|
if (!this.searchSubscribe) {
|
|
39
34
|
this.templatesFilter = this.templates;
|
|
40
35
|
return;
|
|
41
36
|
}
|
|
42
|
-
this.templatesFilter = this.templates.filter(item => item.NAME
|
|
43
|
-
.toLowerCase()
|
|
44
|
-
.startsWith(this.searchSubscribe.toLowerCase()));
|
|
37
|
+
this.templatesFilter = this.templates.filter((item) => item.NAME.toLowerCase().startsWith(this.searchSubscribe.toLowerCase()));
|
|
45
38
|
};
|
|
46
|
-
// #endregion
|
|
47
39
|
}
|
|
48
40
|
connectedCallback() {
|
|
49
41
|
const _super = Object.create(null, {
|
|
@@ -59,6 +51,7 @@ export class FoundationInboxBase extends FASTElement {
|
|
|
59
51
|
return;
|
|
60
52
|
}
|
|
61
53
|
this.alerts = updateArray((_a = streamMessage.ROW) !== null && _a !== void 0 ? _a : null, this.alerts);
|
|
54
|
+
this.filterAlerts();
|
|
62
55
|
},
|
|
63
56
|
error: (error) => {
|
|
64
57
|
logger.error(error);
|
|
@@ -78,15 +71,16 @@ export class FoundationInboxBase extends FASTElement {
|
|
|
78
71
|
}
|
|
79
72
|
// #region Tabs
|
|
80
73
|
checkActiveTab(inboxTab) {
|
|
81
|
-
return this.tabs.activeid === inboxTab.toString()
|
|
82
|
-
? ''
|
|
83
|
-
: 'display: none;';
|
|
74
|
+
return this.tabs.activeid === inboxTab.toString() ? '' : 'display: none;';
|
|
84
75
|
}
|
|
85
76
|
inboxTabChanged(inboxTab) {
|
|
86
77
|
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
this.selectedTab = inboxTab;
|
|
87
79
|
this.ruleTemplateDetails = null;
|
|
88
80
|
switch (inboxTab) {
|
|
89
|
-
case InboxTab.
|
|
81
|
+
case InboxTab.AlertsNew:
|
|
82
|
+
case InboxTab.AlertHistory:
|
|
83
|
+
this.filterAlerts();
|
|
90
84
|
break;
|
|
91
85
|
case InboxTab.MyAlerts:
|
|
92
86
|
this.rules = yield this.ruleService.getRules();
|
|
@@ -100,11 +94,16 @@ export class FoundationInboxBase extends FASTElement {
|
|
|
100
94
|
}
|
|
101
95
|
});
|
|
102
96
|
}
|
|
97
|
+
filterAlerts() {
|
|
98
|
+
this.alertsFilter = this.alerts.filter((alert) => (!this.searchAlertLog ||
|
|
99
|
+
alert.HEADER.toLowerCase().startsWith(this.searchAlertLog.toLowerCase())) &&
|
|
100
|
+
((this.selectedTab === InboxTab.AlertsNew && alert.ALERT_STATUS === 'NEW') ||
|
|
101
|
+
(this.selectedTab === InboxTab.AlertHistory && alert.ALERT_STATUS !== 'NEW')));
|
|
102
|
+
}
|
|
103
103
|
// #endregion
|
|
104
104
|
// #region My Alerts
|
|
105
105
|
// TODO:
|
|
106
|
-
editAlert() {
|
|
107
|
-
}
|
|
106
|
+
editAlert() { }
|
|
108
107
|
playPauseAlert(ruleClicked) {
|
|
109
108
|
return __awaiter(this, void 0, void 0, function* () {
|
|
110
109
|
switch (ruleClicked.RULE_STATUS) {
|
|
@@ -140,6 +139,10 @@ export class FoundationInboxBase extends FASTElement {
|
|
|
140
139
|
this.ruleTemplateDetails = yield this.ruleTemplateService.getRuleTemplateDetails(ruleTemplate.ID);
|
|
141
140
|
});
|
|
142
141
|
}
|
|
142
|
+
// #endregion
|
|
143
|
+
dismissAlert(alertId) {
|
|
144
|
+
this.alertService.dismissNotifyAlert(alertId);
|
|
145
|
+
}
|
|
143
146
|
}
|
|
144
147
|
__decorate([
|
|
145
148
|
Auth
|
|
@@ -156,9 +159,6 @@ __decorate([
|
|
|
156
159
|
__decorate([
|
|
157
160
|
observable
|
|
158
161
|
], FoundationInboxBase.prototype, "alertsFilter", void 0);
|
|
159
|
-
__decorate([
|
|
160
|
-
observable
|
|
161
|
-
], FoundationInboxBase.prototype, "searchAlertLog", void 0);
|
|
162
162
|
__decorate([
|
|
163
163
|
RuleService
|
|
164
164
|
], FoundationInboxBase.prototype, "ruleService", void 0);
|
|
@@ -183,3 +183,9 @@ __decorate([
|
|
|
183
183
|
__decorate([
|
|
184
184
|
observable
|
|
185
185
|
], FoundationInboxBase.prototype, "ruleTemplateDetails", void 0);
|
|
186
|
+
__decorate([
|
|
187
|
+
observable
|
|
188
|
+
], FoundationInboxBase.prototype, "selectedTab", void 0);
|
|
189
|
+
__decorate([
|
|
190
|
+
observable
|
|
191
|
+
], FoundationInboxBase.prototype, "searchAlertLog", void 0);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { customElement } from '@microsoft/fast-element';
|
|
3
|
+
import { FoundationInboxBase } from './inbox-base/inbox-base';
|
|
3
4
|
import { FoundationInboxStyles } from './inbox.styles';
|
|
4
5
|
import { FoundationInboxTemplate } from './inbox.template';
|
|
5
|
-
import { FoundationInboxBase } from './inbox-base/inbox-base';
|
|
6
6
|
/**
|
|
7
7
|
* Foundation inbox component for displaying notifies list.
|
|
8
8
|
* Allow searching, filtering and deleting notifies
|