@genesislcap/pbc-notify-ui 1.0.30 → 1.0.32
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/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox-base/inbox-base.d.ts +9 -9
- package/dist/dts/components/foundation-inbox/inbox-base/inbox-base.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.d.ts +12 -11
- 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 +4 -12
- 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 +14 -9
- 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.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.types.d.ts +1 -6
- 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.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.d.ts +29 -0
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.d.ts +3 -0
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.d.ts +13 -7
- 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.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types.d.ts +1 -8
- 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-management.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.utils.d.ts +42 -0
- package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.utils.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/styles/condition-builder.styles.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/styles/dynamic-rule.styles.d.ts +3 -0
- package/dist/dts/components/foundation-notification-dashboard/styles/dynamic-rule.styles.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/types/logical-operator.d.ts +4 -0
- package/dist/dts/components/foundation-notification-dashboard/types/logical-operator.d.ts.map +1 -1
- package/dist/dts/notify.types.d.ts +60 -0
- package/dist/dts/notify.types.d.ts.map +1 -0
- package/dist/dts/services/inbox.service.d.ts.map +1 -1
- package/dist/esm/components/components.js +2 -2
- package/dist/esm/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.js +3 -3
- package/dist/esm/components/foundation-inbox/inbox-base/inbox-base.js +10 -12
- package/dist/esm/components/foundation-inbox/inbox.template.js +1 -2
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.js +84 -60
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.js +42 -28
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.types.js +5 -4
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.js +99 -101
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.js +30 -30
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.types.js +0 -7
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-management.js +3 -5
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.js +169 -0
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.js +66 -0
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.js +106 -116
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.js +27 -31
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-management.js +3 -5
- package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.utils.js +259 -0
- package/dist/esm/components/foundation-notification-dashboard/{components/templates/template-dialog/condition-builder → styles}/condition-builder.styles.js +6 -6
- package/dist/esm/components/foundation-notification-dashboard/{components/templates/template-dialog/template-dialog.styles.js → styles/dynamic-rule.styles.js} +57 -16
- package/dist/esm/components/foundation-notification-dashboard/types/logical-operator.js +4 -0
- package/dist/esm/notify.types.js +70 -0
- package/dist/esm/services/inbox.service.js +1 -5
- package/package.json +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.styles.d.ts +0 -2
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.styles.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.styles.d.ts +0 -2
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.styles.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.d.ts +0 -32
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.styles.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.template.d.ts +0 -3
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.template.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.styles.d.ts +0 -2
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.styles.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.utils.d.ts +0 -41
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.utils.d.ts.map +0 -1
- package/dist/dts/components/foundation-notification-dashboard/styles/rules-and-templates.styles.d.ts +0 -2
- package/dist/dts/components/foundation-notification-dashboard/styles/rules-and-templates.styles.d.ts.map +0 -1
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.styles.js +0 -53
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.styles.js +0 -95
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.js +0 -179
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.template.js +0 -42
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.utils.js +0 -119
- package/dist/esm/components/foundation-notification-dashboard/styles/rules-and-templates.styles.js +0 -17
- /package/dist/dts/components/foundation-notification-dashboard/{components/templates/template-dialog/condition-builder → styles}/condition-builder.styles.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"foundation-inbox-counter.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,WAAW,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"foundation-inbox-counter.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAK5E,qBAKa,sBAAuB,SAAQ,WAAW;IACzC,KAAK,EAAE,MAAM,CAAK;IACN,YAAY,EAAE,sBAAsB,CAAC;IAC7D,OAAO,CAAC,mBAAmB,CAAgB;IAErC,iBAAiB;IAQvB,oBAAoB;CAIrB"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Auth } from
|
|
2
|
-
import { FASTElement } from
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { InboxTab } from
|
|
9
|
-
import {
|
|
1
|
+
import { Auth } from '@genesislcap/foundation-comms';
|
|
2
|
+
import { FASTElement } from '@microsoft/fast-element';
|
|
3
|
+
import { Tabs } from '@microsoft/fast-foundation';
|
|
4
|
+
import { AlertService } from '../../../services/alert.service';
|
|
5
|
+
import { FoundationInboxService } from '../../../services/inbox.service';
|
|
6
|
+
import { RuleService } from '../../../services/rule.service';
|
|
7
|
+
import { TemplateService } from '../../../services/template.service';
|
|
8
|
+
import { InboxTab } from '../inbox.template';
|
|
9
|
+
import { Alert, NotificationRuleTemplateReply, Rule, RuleTemplate } from '../inbox.types';
|
|
10
10
|
export declare class FoundationInboxBase extends FASTElement {
|
|
11
11
|
auth: Auth;
|
|
12
12
|
alertService: AlertService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox-base.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-inbox/inbox-base/inbox-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"inbox-base.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-inbox/inbox-base/inbox-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAE,WAAW,EAAc,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAErE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EACL,KAAK,EAEL,6BAA6B,EAC7B,IAAI,EAEJ,YAAY,EACb,MAAM,gBAAgB,CAAC;AAExB,qBAAa,mBAAoB,SAAQ,WAAW;IAC5C,IAAI,EAAE,IAAI,CAAC;IAEH,YAAY,EAAE,YAAY,CAAC;IACjB,YAAY,EAAE,sBAAsB,CAAC;IAC7D,OAAO,CAAC,iBAAiB,CAAgB;IAC7B,OAAO,CAAC,MAAM,CAAe;IAC7B,YAAY,EAAE,KAAK,EAAE,CAAM;IAE1B,WAAW,EAAE,WAAW,CAAC;IAC1B,KAAK,EAAE,IAAI,EAAE,CAAM;IACnB,WAAW,EAAE,IAAI,EAAE,CAAM;IAEpB,eAAe,EAAE,eAAe,CAAC;IACtC,SAAS,EAAE,YAAY,EAAE,CAAM;IAC/B,eAAe,EAAE,YAAY,EAAE,CAAM;IAErC,eAAe,EAAE,MAAM,CAAM;IAC7B,mBAAmB,EAAE,6BAA6B,CAAQ;IAC1D,WAAW,EAAE,QAAQ,CAAsB;IAEhD,IAAI,EAAE,IAAI,CAAC;IAEZ,iBAAiB;IAWvB,oBAAoB;IAMpB,cAAc,CAAC,QAAQ,EAAE,QAAQ;IAI3B,eAAe,CAAC,QAAQ,EAAE,QAAQ;IAuBxC,aAAa,gBAA2C;IAExD,YAAY,eAAyC;IAErD,gBAAgB,uBAAiD;IAErD,cAAc,EAAE,MAAM,CAAM;IACxC,qBAAqB,aAEnB;IAEF,OAAO,CAAC,YAAY;IAUpB,sBAAsB,aASpB;IAKF,YAAY,CAAC,OAAO,EAAE,MAAM;IAO5B,SAAS;IAEH,cAAc,CAAC,WAAW,EAAE,IAAI;IAgBhC,WAAW,CAAC,WAAW,EAAE,IAAI;IAO7B,wBAAwB,CAAC,YAAY,EAAE,GAAG;CAWjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox.template.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.template.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAI1C,oBAAY,QAAQ;IAClB,SAAS,IAAA;IACT,YAAY,IAAA;IACZ,QAAQ,IAAA;IACR,SAAS,IAAA;CACV;AAgDD;;GAEG;AACH,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"inbox.template.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.template.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAI1C,oBAAY,QAAQ;IAClB,SAAS,IAAA;IACT,YAAY,IAAA;IACZ,QAAQ,IAAA;IACR,SAAS,IAAA;CACV;AAgDD;;GAEG;AACH,eAAO,MAAM,uBAAuB,sEAiJnC,CAAC"}
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { ConditionBuilderEntity } from '../../../../../../notify.types';
|
|
3
|
+
import { Field } from '../../../../../../services/system.service';
|
|
4
4
|
export declare class RuleConditionBuilder extends FASTElement {
|
|
5
|
-
systemService: SystemService;
|
|
6
5
|
condition: ConditionBuilderEntity;
|
|
7
|
-
|
|
8
|
-
resourceFields: Field[];
|
|
6
|
+
fields: Field[];
|
|
9
7
|
leftValue: string;
|
|
8
|
+
leftValueItems: Array<any>;
|
|
10
9
|
logicalOperator: string;
|
|
11
|
-
rightCriteria:
|
|
10
|
+
rightCriteria: string;
|
|
12
11
|
rightValueText: string;
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
rightValueSelect: string;
|
|
13
|
+
deleteCondition(): void;
|
|
15
14
|
conditionChanged(): Promise<void>;
|
|
16
|
-
|
|
15
|
+
fieldsChanged(): void;
|
|
16
|
+
private assignLeftValue;
|
|
17
17
|
assignRightValue(): void;
|
|
18
18
|
leftValueChanged(): void;
|
|
19
19
|
logicalOperatorChanged(): void;
|
|
20
20
|
rightCriteriaChanged(): void;
|
|
21
|
+
private clearRightValueText;
|
|
22
|
+
private clearRightValueSelect;
|
|
21
23
|
rightValueTextChanged(): void;
|
|
22
|
-
|
|
23
|
-
deleteCondition(): void;
|
|
24
|
+
rightValueSelectChanged(): void;
|
|
24
25
|
}
|
|
25
26
|
//# sourceMappingURL=rule-condition-builder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-condition-builder.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,WAAW,EAAc,MAAM,yBAAyB,CAAC;AACjF,OAAO,
|
|
1
|
+
{"version":3,"file":"rule-condition-builder.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,WAAW,EAAc,MAAM,yBAAyB,CAAC;AACjF,OAAO,EACL,sBAAsB,EAGvB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAMlE,qBAKa,oBAAqB,SAAQ,WAAW;IACvC,SAAS,EAAE,sBAAsB,CAAC;IAClC,MAAM,EAAE,KAAK,EAAE,CAAC;IAEhB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,KAAK,CAAC,GAAG,CAAC,CAAM;IAEhC,eAAe,EAAE,MAAM,CAAC;IAExB,aAAa,EAAE,MAAM,CAAuB;IAC5C,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IAErC,eAAe;IAIT,gBAAgB;IAatB,aAAa;IASb,OAAO,CAAC,eAAe;IAmBvB,gBAAgB;IAShB,gBAAgB;IAShB,sBAAsB;IActB,oBAAoB;IAsBpB,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,qBAAqB;IAI7B,qBAAqB;IASrB,uBAAuB;CAQxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-condition-builder.template.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"rule-condition-builder.template.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAsB,MAAM,yBAAyB,CAAC;AAM3E,eAAO,MAAM,4BAA4B,EAAE,YAgF1C,CAAC"}
|
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
export type RightCriteria = (typeof RIGHT_CRITERIA)[keyof typeof RIGHT_CRITERIA];
|
|
6
|
-
export type ConditionBuilderEntity = {
|
|
7
|
-
ID: string;
|
|
8
|
-
LEFT_VALUE: string;
|
|
9
|
-
LOGICAL_OPERATOR: string;
|
|
10
|
-
RIGHT_CRITERIA: RightCriteria;
|
|
11
|
-
RIGHT_VALUE: string;
|
|
12
|
-
};
|
|
1
|
+
export declare enum RightCriteria {
|
|
2
|
+
VALUE = "VALUE",
|
|
3
|
+
FIELD = "FIELD"
|
|
4
|
+
}
|
|
13
5
|
//# sourceMappingURL=rule-condition-builder.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-condition-builder.types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.types.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"rule-condition-builder.types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.types.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,KAAK,UAAU;IACf,KAAK,UAAU;CAChB"}
|
|
@@ -1,38 +1,43 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Modal } from '@genesislcap/foundation-zero';
|
|
2
2
|
import { FASTElement } from '@microsoft/fast-element';
|
|
3
|
+
import { ConditionBuilderEntity, UpdateType } from '../../../../../notify.types';
|
|
3
4
|
import { NotifyService } from '../../../../../services/notify.service';
|
|
4
5
|
import { RuleService } from '../../../../../services/rule.service';
|
|
5
6
|
import { Field, SystemService } from '../../../../../services/system.service';
|
|
6
|
-
import {
|
|
7
|
-
import { RuleDialogMode, RuleDialogParams, UpdateType } from './rule-dialog.types';
|
|
7
|
+
import { RuleDialogMode, RuleDialogParams } from './rule-dialog.types';
|
|
8
8
|
export declare class RuleDialog extends FASTElement {
|
|
9
9
|
ruleService: RuleService;
|
|
10
10
|
systemService: SystemService;
|
|
11
11
|
notifyService: NotifyService;
|
|
12
|
-
dialog:
|
|
12
|
+
dialog: Modal;
|
|
13
13
|
ruleDialogMode: (typeof RuleDialogMode)[keyof typeof RuleDialogMode];
|
|
14
14
|
private ruleId;
|
|
15
15
|
name: string;
|
|
16
16
|
description: string;
|
|
17
17
|
resource: string;
|
|
18
18
|
topic: string;
|
|
19
|
-
topics: string[];
|
|
20
|
-
resourceFields: Field[];
|
|
21
19
|
severity: string;
|
|
22
20
|
updateType: UpdateType[];
|
|
23
21
|
header: string;
|
|
24
22
|
message: string;
|
|
25
23
|
conditions: Array<ConditionBuilderEntity>;
|
|
26
24
|
resources: Array<string>;
|
|
25
|
+
fields: Array<Field>;
|
|
26
|
+
topics: string[];
|
|
27
|
+
private requiredFields;
|
|
27
28
|
openDialog(params: RuleDialogParams): Promise<void>;
|
|
29
|
+
close(): void;
|
|
30
|
+
private createRule;
|
|
31
|
+
private editRule;
|
|
32
|
+
private attributeAssignments;
|
|
28
33
|
get ruleDialogTitle(): string;
|
|
29
34
|
submit(): void;
|
|
35
|
+
private createRuleObject;
|
|
30
36
|
validateResponse(response: any): void;
|
|
31
|
-
|
|
37
|
+
resourceChanged(): Promise<void>;
|
|
32
38
|
newCondition(): void;
|
|
33
39
|
editCondition(editedCondition: ConditionBuilderEntity): void;
|
|
34
40
|
deleteCondition(deletedCondition: ConditionBuilderEntity): void;
|
|
35
|
-
|
|
36
|
-
createEmptyCondition(): ConditionBuilderEntity;
|
|
41
|
+
get validateRequiredFields(): boolean;
|
|
37
42
|
}
|
|
38
43
|
//# sourceMappingURL=rule-dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-dialog.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rule-dialog.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAiB,WAAW,EAAwB,MAAM,yBAAyB,CAAC;AAC3F,OAAO,EAEL,sBAAsB,EAGtB,UAAU,EACX,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAU9E,OAAO,EAAQ,cAAc,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE7E,qBAKa,UAAW,SAAQ,WAAW;IAC5B,WAAW,EAAE,WAAW,CAAC;IACvB,aAAa,EAAE,aAAa,CAAC;IAC7B,aAAa,EAAE,aAAa,CAAC;IAE5C,MAAM,EAAE,KAAK,CAAC;IACF,cAAc,EAAE,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;IAEjF,OAAO,CAAC,MAAM,CAAS;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAM;IACtB,KAAK,EAAE,MAAM,CAAM;IACnB,QAAQ,EAAE,MAAM,CAAM;IACtB,UAAU,EAAE,UAAU,EAAE,CAAqB;IAC7C,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAM;IAE/C,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAM;IAC9B,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAM;IAC1B,MAAM,EAAE,MAAM,EAAE,CAAC;IAE7B,OAAO,CAAC,cAAc,CAAkE;IAE3E,UAAU,CAAC,MAAM,EAAE,gBAAgB;IAiBhD,KAAK;YAsBS,UAAU;YASV,QAAQ;IAYtB,OAAO,CAAC,oBAAoB;IAc5B,IAAI,eAAe,IAAI,MAAM,CAE5B;IAED,MAAM;IAiBN,OAAO,CAAC,gBAAgB;IAqBxB,gBAAgB,CAAC,QAAQ,KAAA;IASnB,eAAe;IAMrB,YAAY;IAIZ,aAAa,CAAC,eAAe,EAAE,sBAAsB;IAErD,eAAe,CAAC,gBAAgB,EAAE,sBAAsB;IASxD,IACW,sBAAsB,IAAI,OAAO,CAE3C;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-dialog.template.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAqB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"rule-dialog.template.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAqB,MAAM,yBAAyB,CAAC;AAK1E,eAAO,MAAM,kBAAkB,EAAE,YA2HhC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { UpdateType } from '../../../../../notify.types';
|
|
1
2
|
export declare const RuleDialogMode: {
|
|
2
3
|
readonly CREATE: "create";
|
|
3
4
|
readonly EDIT: "edit";
|
|
@@ -20,10 +21,4 @@ export type Rule = {
|
|
|
20
21
|
ASSIGNMENTS: Array<any>;
|
|
21
22
|
};
|
|
22
23
|
};
|
|
23
|
-
export declare enum UpdateType {
|
|
24
|
-
INSERT = "INSERT",
|
|
25
|
-
MODIFY = "MODIFY",
|
|
26
|
-
DELETE = "DELETE"
|
|
27
|
-
}
|
|
28
|
-
export declare const defaultUpdateType: UpdateType[];
|
|
29
24
|
//# sourceMappingURL=rule-dialog.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-dialog.types.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;CAGjB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GACxB;IACE,IAAI,EAAE,OAAO,cAAc,CAAC,MAAM,CAAC;CACpC,GACD;IACE,IAAI,EAAE,OAAO,cAAc,CAAC,IAAI,CAAC;IACjC,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEN,MAAM,MAAM,IAAI,GAAG;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,UAAU,EAAE,CAAC;IAC/B,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,iBAAiB,CAAC,EAAE;QAClB,WAAW,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;KACzB,CAAC;CACH,CAAC
|
|
1
|
+
{"version":3,"file":"rule-dialog.types.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAEzD,eAAO,MAAM,cAAc;;;CAGjB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GACxB;IACE,IAAI,EAAE,OAAO,cAAc,CAAC,MAAM,CAAC;CACpC,GACD;IACE,IAAI,EAAE,OAAO,cAAc,CAAC,IAAI,CAAC;IACjC,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEN,MAAM,MAAM,IAAI,GAAG;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,UAAU,EAAE,CAAC;IAC/B,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,iBAAiB,CAAC,EAAE;QAClB,WAAW,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;KACzB,CAAC;CACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-management.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-management.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"rule-management.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-management.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,WAAW,EAAqB,MAAM,yBAAyB,CAAC;AACxF,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAGhE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAGvD,qBA6Ba,cAAe,SAAQ,WAAW;IAChC,WAAW,EAAE,WAAW,CAAC;IACtC,UAAU,EAAE,UAAU,CAAC;IAEvB,cAAc;IAIR,QAAQ,CAAC,GAAG,KAAA;IAKlB,UAAU,CAAC,IAAI,KAAA;CAqBhB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
+
import { ConditionBuilderEntity } from '../../../../../../notify.types';
|
|
3
|
+
import { ParameterBuilderEntity } from '../template-dialog.types';
|
|
4
|
+
export declare class TemplateConditionBuilder extends FASTElement {
|
|
5
|
+
condition: ConditionBuilderEntity;
|
|
6
|
+
parameters: Array<ParameterBuilderEntity>;
|
|
7
|
+
fields: Array<string>;
|
|
8
|
+
leftValue: any;
|
|
9
|
+
leftValueItems: Array<any>;
|
|
10
|
+
logicalOperator: string;
|
|
11
|
+
rightCriteria: string;
|
|
12
|
+
rightValueText: string;
|
|
13
|
+
rightValueSelect: string;
|
|
14
|
+
rightValueItems: Array<any>;
|
|
15
|
+
deleteCondition(): void;
|
|
16
|
+
conditionChanged(): Promise<void>;
|
|
17
|
+
parametersChanged(): void;
|
|
18
|
+
fieldsChanged(): void;
|
|
19
|
+
logicalOperatorChanged(): void;
|
|
20
|
+
private assignLeftValue;
|
|
21
|
+
leftValueChanged(): void;
|
|
22
|
+
private assignRightValue;
|
|
23
|
+
rightCriteriaChanged(): void;
|
|
24
|
+
private clearRightValueText;
|
|
25
|
+
private clearRightValueSelect;
|
|
26
|
+
rightValueTextChanged(): void;
|
|
27
|
+
rightValueSelectChanged(): void;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=template-condition-builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template-condition-builder.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAmC,MAAM,yBAAyB,CAAC;AACvF,OAAO,EACL,sBAAsB,EAIvB,MAAM,gCAAgC,CAAC;AAGxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,qBAKa,wBAAyB,SAAQ,WAAW;IACjD,SAAS,EAAE,sBAAsB,CAAC;IAClC,UAAU,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAC1C,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEhB,SAAS,EAAE,GAAG,CAAC;IACf,cAAc,EAAE,KAAK,CAAC,GAAG,CAAC,CAAM;IAEhC,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAuB;IAC5C,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,KAAK,CAAC,GAAG,CAAC,CAAM;IAE7C,eAAe;IAIT,gBAAgB;IAiBtB,iBAAiB;IAQjB,aAAa;IASb,sBAAsB;IAetB,OAAO,CAAC,eAAe;IAmBvB,gBAAgB;IAWhB,OAAO,CAAC,gBAAgB;IAcxB,oBAAoB;IAsBpB,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,qBAAqB;IAI7B,qBAAqB;IASrB,uBAAuB;CASxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template-condition-builder.template.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAsB,MAAM,yBAAyB,CAAC;AAU3E,eAAO,MAAM,gCAAgC,EAAE,YA2E9C,CAAC"}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Modal } from '@genesislcap/foundation-zero';
|
|
2
2
|
import { FASTElement } from '@microsoft/fast-element';
|
|
3
|
+
import { ConditionBuilderEntity, UpdateType } from '../../../../../notify.types';
|
|
3
4
|
import { NotifyService } from '../../../../../services/notify.service';
|
|
4
5
|
import { Field, SystemService } from '../../../../../services/system.service';
|
|
5
6
|
import { TemplateService } from '../../../../../services/template.service';
|
|
6
|
-
import {
|
|
7
|
-
import { ConditionBuilderEntity, ParameterBuilderEntity, TemplateDialogMode } from './template-dialog.types';
|
|
7
|
+
import { ParameterBuilderEntity, TemplateDialogMode } from './template-dialog.types';
|
|
8
8
|
export declare class TemplateDialog extends FASTElement {
|
|
9
9
|
templateService: TemplateService;
|
|
10
10
|
systemService: SystemService;
|
|
11
11
|
notifyService: NotifyService;
|
|
12
|
+
dialog: Modal;
|
|
13
|
+
templateDialogMode: (typeof TemplateDialogMode)[keyof typeof TemplateDialogMode];
|
|
12
14
|
templateId: string;
|
|
13
15
|
name: string;
|
|
14
16
|
description: string;
|
|
@@ -23,19 +25,23 @@ export declare class TemplateDialog extends FASTElement {
|
|
|
23
25
|
resources: Array<string>;
|
|
24
26
|
fields: Array<Field>;
|
|
25
27
|
topics: Array<string>;
|
|
26
|
-
|
|
27
|
-
dialog: Dialog;
|
|
28
|
+
private requiredFields;
|
|
28
29
|
openDialog(params: any): Promise<void>;
|
|
30
|
+
close(): void;
|
|
31
|
+
private createTemplate;
|
|
32
|
+
private editTemplate;
|
|
33
|
+
private attributeAssignments;
|
|
29
34
|
get templateDialogTitle(): string;
|
|
30
35
|
submit(): void;
|
|
36
|
+
private createTemplateObject;
|
|
31
37
|
validateResponse(response: any): void;
|
|
32
|
-
|
|
38
|
+
resourceChanged(): Promise<void>;
|
|
33
39
|
newCondition(): void;
|
|
34
40
|
editCondition(editedCondition: ConditionBuilderEntity): void;
|
|
35
41
|
deleteCondition(deletedCondition: ConditionBuilderEntity): void;
|
|
36
42
|
newParameter(): void;
|
|
37
43
|
editParameter(editedParameter: ParameterBuilderEntity): void;
|
|
38
44
|
deleteParameter(deletedParameter: ParameterBuilderEntity): void;
|
|
39
|
-
|
|
45
|
+
get validateRequiredFields(): boolean;
|
|
40
46
|
}
|
|
41
47
|
//# sourceMappingURL=template-dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-dialog.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"template-dialog.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAiB,WAAW,EAAwB,MAAM,yBAAyB,CAAC;AAC3F,OAAO,EAEL,sBAAsB,EAGtB,UAAU,EACX,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAU3E,OAAO,EAAE,sBAAsB,EAAY,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE/F,qBAKa,cAAe,SAAQ,WAAW;IAC5B,eAAe,EAAE,eAAe,CAAC;IACnC,aAAa,EAAE,aAAa,CAAC;IAC7B,aAAa,EAAE,aAAa,CAAC;IAE5C,MAAM,EAAE,KAAK,CAAC;IACF,kBAAkB,EAAE,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CACrF;IAEK,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,MAAC;IACP,OAAO,MAAC;IACR,QAAQ,EAAE,MAAM,CAAM;IACtB,KAAK,MAAC;IACN,QAAQ,MAAC;IACT,UAAU,EAAE,UAAU,EAAE,CAAqB;IAE7C,UAAU,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAM;IAC/C,UAAU,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAM;IAE/C,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAM;IAC9B,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAM;IAC1B,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAM;IAEvC,OAAO,CAAC,cAAc,CAAkE;IAE3E,UAAU,CAAC,MAAM,EAAE,GAAG;IAoBnC,KAAK;YAuBS,cAAc;YASd,YAAY;IAgB1B,OAAO,CAAC,oBAAoB;IAc5B,IAAI,mBAAmB,IAAI,MAAM,CAEhC;IAED,MAAM;IAwBN,OAAO,CAAC,oBAAoB;IAyB5B,gBAAgB,CAAC,QAAQ,KAAA;IASnB,eAAe;IAMrB,YAAY;IAIZ,aAAa,CAAC,eAAe,EAAE,sBAAsB;IAErD,eAAe,CAAC,gBAAgB,EAAE,sBAAsB;IAUxD,YAAY;IAIZ,aAAa,CAAC,eAAe,EAAE,sBAAsB;IAIrD,eAAe,CAAC,gBAAgB,EAAE,sBAAsB;IAWxD,IACW,sBAAsB,IAAI,OAAO,CAE3C;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-dialog.template.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAqB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"template-dialog.template.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAqB,MAAM,yBAAyB,CAAC;AAK1E,eAAO,MAAM,sBAAsB,EAAE,YA0IpC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UpdateType } from '
|
|
1
|
+
import { UpdateType } from '../../../../../notify.types';
|
|
2
2
|
export declare const TemplateDialogMode: {
|
|
3
3
|
readonly CREATE: "create";
|
|
4
4
|
readonly EDIT: "edit";
|
|
@@ -22,13 +22,6 @@ export type Template = {
|
|
|
22
22
|
};
|
|
23
23
|
PARAMETER_DETAILS: any;
|
|
24
24
|
};
|
|
25
|
-
export type ConditionBuilderEntity = {
|
|
26
|
-
ID: string;
|
|
27
|
-
LEFT_VALUE: any;
|
|
28
|
-
LOGICAL_OPERATOR: string;
|
|
29
|
-
RIGHT_CRITERIA: string;
|
|
30
|
-
RIGHT_VALUE: string;
|
|
31
|
-
};
|
|
32
25
|
export type ParameterBuilderEntity = {
|
|
33
26
|
UUID?: string;
|
|
34
27
|
PARAM_NAME: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-dialog.types.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"template-dialog.types.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAEzD,eAAO,MAAM,kBAAkB;;;CAGrB,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAC5B;IACE,IAAI,EAAE,OAAO,kBAAkB,CAAC,MAAM,CAAC;CACxC,GACD;IACE,IAAI,EAAE,OAAO,kBAAkB,CAAC,IAAI,CAAC;IACrC,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC;AAEN,MAAM,MAAM,QAAQ,GAAG;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,gBAAgB,EAAE,UAAU,EAAE,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,iBAAiB,CAAC,EAAE;QAClB,WAAW,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;KACzB,CAAC;IACF,iBAAiB,EAAE,GAAG,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-management.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-notification-dashboard/components/templates/template-management.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"template-management.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-notification-dashboard/components/templates/template-management.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,WAAW,EAAqB,MAAM,yBAAyB,CAAC;AACxF,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAGxE,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAGnE,qBA6Ba,kBAAmB,SAAQ,WAAW;IAChC,eAAe,EAAE,eAAe,CAAC;IAClD,cAAc,EAAE,cAAc,CAAC;IAE/B,kBAAkB;IAIZ,YAAY,CAAC,GAAG,KAAA;IAKtB,cAAc,CAAC,QAAQ,KAAA;CAqBxB"}
|
package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.utils.d.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ConditionBuilderEntity } from '../../notify.types';
|
|
2
|
+
import { ParameterBuilderEntity } from './components/templates/template-dialog/template-dialog.types';
|
|
3
|
+
export declare class UUIDGenerator {
|
|
4
|
+
private static uuid;
|
|
5
|
+
static createUUID: () => string;
|
|
6
|
+
}
|
|
7
|
+
export declare const isEmpty: (value: any) => boolean;
|
|
8
|
+
export declare class DynamicRuleUtils {
|
|
9
|
+
static createEmptyCondition: () => ConditionBuilderEntity;
|
|
10
|
+
static createAssignment: (field: string, value: string) => {
|
|
11
|
+
FIELD: {
|
|
12
|
+
TYPE: string;
|
|
13
|
+
NAME: string;
|
|
14
|
+
};
|
|
15
|
+
VALUE: {
|
|
16
|
+
TYPE: string;
|
|
17
|
+
VALUE: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
static getAssignmentValue: (assignments: any[], field: string) => string;
|
|
21
|
+
static createConditions(conditions: ConditionBuilderEntity[], parameters?: any): any;
|
|
22
|
+
}
|
|
23
|
+
export declare class TemplateUtils {
|
|
24
|
+
static createEmptyParameter: () => ParameterBuilderEntity;
|
|
25
|
+
static getParameters(parameters: any): {
|
|
26
|
+
UUID: string;
|
|
27
|
+
PARAM_NAME: any;
|
|
28
|
+
PARAM_LABEL: any;
|
|
29
|
+
PARAM_TYPE: any;
|
|
30
|
+
PARAM_SOURCE_TYPE: any;
|
|
31
|
+
PARAM_SOURCE: any;
|
|
32
|
+
}[];
|
|
33
|
+
private static buildRightValue;
|
|
34
|
+
static getConditions(conditions: any, parameters?: any): any;
|
|
35
|
+
static createParameterDetails(parameters: any): {};
|
|
36
|
+
}
|
|
37
|
+
export declare class RuleUtils {
|
|
38
|
+
private static buildRightValue;
|
|
39
|
+
static getConditions(conditions: any): any;
|
|
40
|
+
}
|
|
41
|
+
export declare function showNotificationError(error: any): void;
|
|
42
|
+
//# sourceMappingURL=notification-dashboard.utils.d.ts.map
|
package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.utils.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-dashboard.utils.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-notification-dashboard/notification-dashboard.utils.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,sBAAsB,EAQvB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,8DAA8D,CAAC;AAEtG,qBAAa,aAAa;IAClB,OAAO,CAAC,MAAM,CAAC,IAAI,CAAO;IAChC,MAAM,CAAC,UAAU,QAAO,MAAM,CAAyB;CACxD;AAED,eAAO,MAAM,OAAO,yBACuD,CAAC;AAkH5E,qBAAa,gBAAgB;IAC3B,MAAM,CAAC,oBAAoB,QAAO,sBAAsB,CAMrD;IAEH,MAAM,CAAC,gBAAgB,UAAW,MAAM,SAAS,MAAM;;;;;;;;;MASpD;IAEH,MAAM,CAAC,kBAAkB,gBAAiB,GAAG,EAAE,SAAS,MAAM,KAAG,MAAM,CACS;IAEhF,MAAM,CAAC,gBAAgB,CAAC,UAAU,EAAE,sBAAsB,EAAE,EAAE,UAAU,CAAC,KAAA,GAAG,GAAG;CAUhF;AAED,qBAAa,aAAa;IACxB,MAAM,CAAC,oBAAoB,QAAO,sBAAsB,CAOrD;IAEH,MAAM,CAAC,aAAa,CAAC,UAAU,KAAA;;;;;;;;IAe/B,OAAO,CAAC,MAAM,CAAC,eAAe;IAe9B,MAAM,CAAC,aAAa,CAAC,UAAU,KAAA,EAAE,UAAU,CAAC,KAAA;IAgB5C,MAAM,CAAC,sBAAsB,CAAC,UAAU,KAAA;CAmBzC;AAED,qBAAa,SAAS;IACpB,OAAO,CAAC,MAAM,CAAC,eAAe;IAe9B,MAAM,CAAC,aAAa,CAAC,UAAU,KAAA;CAYhC;AAID,wBAAgB,qBAAqB,CAAC,KAAK,KAAA,QAa1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"condition-builder.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/styles/condition-builder.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,iDA+ClC,CAAC"}
|
package/dist/dts/components/foundation-notification-dashboard/styles/dynamic-rule.styles.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dynamic-rule.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/styles/dynamic-rule.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,2BAA2B,iDAevC,CAAC;AA8DF,eAAO,MAAM,uBAAuB,iDAgEnC,CAAC"}
|
|
@@ -2,6 +2,10 @@ export declare const LOGICAL_OPERATOR_EQUALS = "EQUALS";
|
|
|
2
2
|
export declare const LOGICAL_OPERATOR_NOT_EQUALS = "NOT_EQUALS";
|
|
3
3
|
export declare const LOGICAL_OPERATOR_GREATER_THAN = "GREATER_THAN";
|
|
4
4
|
export declare const LOGICAL_OPERATOR_LESS_THAN = "LESS_THAN";
|
|
5
|
+
export declare const LOGICAL_OPERATOR_NULL = "NULL";
|
|
6
|
+
export declare const LOGICAL_OPERATOR_NOT_NULL = "NOT_NULL";
|
|
7
|
+
export declare const LOGICAL_OPERATOR_BLANK = "BLANK_NULL";
|
|
8
|
+
export declare const LOGICAL_OPERATOR_NOT_BLANK = "NOT_BLANK";
|
|
5
9
|
export declare const ALL_LOGICAL_OPERATORS: readonly ["EQUALS", "NOT_EQUALS", "GREATER_THAN", "LESS_THAN"];
|
|
6
10
|
export type LogicalOperator = (typeof ALL_LOGICAL_OPERATORS)[number];
|
|
7
11
|
//# sourceMappingURL=logical-operator.d.ts.map
|
package/dist/dts/components/foundation-notification-dashboard/types/logical-operator.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logical-operator.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/types/logical-operator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,WAAW,CAAC;AAChD,eAAO,MAAM,2BAA2B,eAAe,CAAC;AACxD,eAAO,MAAM,6BAA6B,iBAAiB,CAAC;AAC5D,eAAO,MAAM,0BAA0B,cAAc,CAAC;AAEtD,eAAO,MAAM,qBAAqB,gEAKxB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"logical-operator.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/types/logical-operator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,WAAW,CAAC;AAChD,eAAO,MAAM,2BAA2B,eAAe,CAAC;AACxD,eAAO,MAAM,6BAA6B,iBAAiB,CAAC;AAC5D,eAAO,MAAM,0BAA0B,cAAc,CAAC;AAEtD,eAAO,MAAM,qBAAqB,SAAS,CAAC;AAC5C,eAAO,MAAM,yBAAyB,aAAa,CAAC;AACpD,eAAO,MAAM,sBAAsB,eAAe,CAAC;AACnD,eAAO,MAAM,0BAA0B,cAAc,CAAC;AAEtD,eAAO,MAAM,qBAAqB,gEAKxB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export declare enum LogicalOperator {
|
|
2
|
+
EQUALS = "EQUALS",
|
|
3
|
+
NOT_EQUALS = "NOT_EQUALS",
|
|
4
|
+
GREATER_THAN = "GREATER_THAN",
|
|
5
|
+
LESS_THAN = "LESS_THAN",
|
|
6
|
+
NULL = "NULL",
|
|
7
|
+
NOT_NULL = "NOT_NULL",
|
|
8
|
+
BLANK = "BLANK",
|
|
9
|
+
NOT_BLANK = "NOT_BLANK"
|
|
10
|
+
}
|
|
11
|
+
export declare const nullAndBlankLogicalOperatorValues: LogicalOperator[];
|
|
12
|
+
export declare enum RightCriteria {
|
|
13
|
+
VALUE = "VALUE",
|
|
14
|
+
USER_ENTRY = "USER_ENTRY"
|
|
15
|
+
}
|
|
16
|
+
export declare enum ParamType {
|
|
17
|
+
STRING = "STRING",
|
|
18
|
+
NUMBER = "NUMBER"
|
|
19
|
+
}
|
|
20
|
+
export declare enum ParamSourceType {
|
|
21
|
+
USER_TEXT = "USER_TEXT",
|
|
22
|
+
DEFINED_GROUP = "DEFINED_GROUP",
|
|
23
|
+
REQ_REP = "REQ_REP"
|
|
24
|
+
}
|
|
25
|
+
export declare enum Severity {
|
|
26
|
+
INFORMATION = "INFORMATION",
|
|
27
|
+
CRITICAL = "CRITICAL",
|
|
28
|
+
SERIOUS = "SERIOUS",
|
|
29
|
+
WARNING = "WARNING"
|
|
30
|
+
}
|
|
31
|
+
export declare enum ExpressionType {
|
|
32
|
+
FIELD = "FIELD",
|
|
33
|
+
NUMBER = "NUMBER",
|
|
34
|
+
STRING = "STRING",
|
|
35
|
+
PLACEHOLDER = "PLACEHOLDER"
|
|
36
|
+
}
|
|
37
|
+
export declare enum Assignment {
|
|
38
|
+
HEADER = "HEADER",
|
|
39
|
+
BODY = "BODY",
|
|
40
|
+
NOTIFY_SEVERITY = "NOTIFY_SEVERITY",
|
|
41
|
+
TOPIC = "TOPIC"
|
|
42
|
+
}
|
|
43
|
+
export declare enum UpdateType {
|
|
44
|
+
INSERT = "INSERT",
|
|
45
|
+
MODIFY = "MODIFY",
|
|
46
|
+
DELETE = "DELETE"
|
|
47
|
+
}
|
|
48
|
+
export declare const defaultUpdateType: UpdateType[];
|
|
49
|
+
export declare enum EmptyValue {
|
|
50
|
+
BLANK = "",
|
|
51
|
+
NULL = "NULL"
|
|
52
|
+
}
|
|
53
|
+
export type ConditionBuilderEntity = {
|
|
54
|
+
ID: string;
|
|
55
|
+
LEFT_VALUE: any;
|
|
56
|
+
LOGICAL_OPERATOR: string;
|
|
57
|
+
RIGHT_CRITERIA: string;
|
|
58
|
+
RIGHT_VALUE: string;
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=notify.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notify.types.d.ts","sourceRoot":"","sources":["../../src/notify.types.ts"],"names":[],"mappings":"AACA,oBAAY,eAAe;IACzB,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAC7B,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,SAAS,cAAc;CACxB;AAED,eAAO,MAAM,iCAAiC,mBAK7C,CAAC;AAEF,oBAAY,aAAa;IACvB,KAAK,UAAU;IACf,UAAU,eAAe;CAC1B;AAED,oBAAY,SAAS;IAEnB,MAAM,WAAW;IAEjB,MAAM,WAAW;CAClB;AAED,oBAAY,eAAe;IACzB,SAAS,cAAc;IACvB,aAAa,kBAAkB;IAC/B,OAAO,YAAY;CACpB;AAED,oBAAY,QAAQ;IAClB,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAED,oBAAY,cAAc;IACxB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,WAAW,gBAAgB;CAC5B;AAED,oBAAY,UAAU;IACpB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,eAAe,oBAAoB;IACnC,KAAK,UAAU;CAChB;AAED,oBAAY,UAAU;IACpB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,iBAAiB,cAAsB,CAAC;AAErD,oBAAY,UAAU;IACpB,KAAK,KAAK;IACV,IAAI,SAAS;CACd;AAID,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,GAAG,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox.service.d.ts","sourceRoot":"","sources":["../../../src/services/inbox.service.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,2BAA2B;IAC1C,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;CACnB;AAED,MAAM,MAAM,iBAAiB,GAAG,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,2BAA2B,CAAA;CAAE,KAAK,GAAG,CAAC;AAE3F,MAAM,WAAW,sBAAsB;IACrC,SAAS,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC7C,WAAW,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAC;CAChD;
|
|
1
|
+
{"version":3,"file":"inbox.service.d.ts","sourceRoot":"","sources":["../../../src/services/inbox.service.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,2BAA2B;IAC1C,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;CACnB;AAED,MAAM,MAAM,iBAAiB,GAAG,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,2BAA2B,CAAA;CAAE,KAAK,GAAG,CAAC;AAE3F,MAAM,WAAW,sBAAsB;IACrC,SAAS,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC7C,WAAW,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAC;CAChD;AAsFD,eAAO,MAAM,sBAAsB,8EAElC,CAAC"}
|
|
@@ -14,8 +14,8 @@ import { ScreenRouteManagement } from './foundation-notification-dashboard/compo
|
|
|
14
14
|
import { RuleConditionBuilder } from './foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder';
|
|
15
15
|
import { RuleDialog } from './foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog';
|
|
16
16
|
import { RuleManagement } from './foundation-notification-dashboard/components/rules/rule-management';
|
|
17
|
-
import { ConditionBuilder } from './foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder';
|
|
18
17
|
import { ParameterBuilder } from './foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder';
|
|
18
|
+
import { TemplateConditionBuilder } from './foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder';
|
|
19
19
|
import { TemplateDialog } from './foundation-notification-dashboard/components/templates/template-dialog/template-dialog';
|
|
20
20
|
import { TemplateManagement } from './foundation-notification-dashboard/components/templates/template-management';
|
|
21
21
|
// Components
|
|
@@ -31,7 +31,7 @@ RuleConditionBuilder;
|
|
|
31
31
|
TemplateManagement;
|
|
32
32
|
TemplateDialog;
|
|
33
33
|
ParameterBuilder;
|
|
34
|
-
|
|
34
|
+
TemplateConditionBuilder;
|
|
35
35
|
RouteManagement;
|
|
36
36
|
ScreenRouteManagement;
|
|
37
37
|
EmailDistributionRouteManagement;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
2
|
import { observable, customElement, FASTElement } from '@microsoft/fast-element';
|
|
3
|
-
import { FoundationInboxCounterStyles } from './foundation-inbox-counter.styles';
|
|
4
|
-
import { FoundationInboxCounterTemplate } from './foundation-inbox-counter.template';
|
|
5
3
|
import { FoundationInboxService } from '../../../../services/inbox.service';
|
|
6
4
|
import { AlertStatus } from '../../inbox.types';
|
|
5
|
+
import { FoundationInboxCounterStyles } from './foundation-inbox-counter.styles';
|
|
6
|
+
import { FoundationInboxCounterTemplate } from './foundation-inbox-counter.template';
|
|
7
7
|
let FoundationInboxCounter = class FoundationInboxCounter extends FASTElement {
|
|
8
8
|
constructor() {
|
|
9
9
|
super(...arguments);
|
|
@@ -16,7 +16,7 @@ let FoundationInboxCounter = class FoundationInboxCounter extends FASTElement {
|
|
|
16
16
|
return __awaiter(this, void 0, void 0, function* () {
|
|
17
17
|
_super.connectedCallback.call(this);
|
|
18
18
|
this.subscriptionHandler = ({ store }) => {
|
|
19
|
-
this.value = store === null || store === void 0 ? void 0 : store.items.filter(alert => alert.ALERT_STATUS === AlertStatus.NEW).length;
|
|
19
|
+
this.value = store === null || store === void 0 ? void 0 : store.items.filter((alert) => alert.ALERT_STATUS === AlertStatus.NEW).length;
|
|
20
20
|
};
|
|
21
21
|
this.inboxService.subscribe(this.subscriptionHandler);
|
|
22
22
|
});
|