@genesislcap/pbc-notify-ui 1.0.25 → 1.0.26
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/inbox.styles.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.d.ts +2 -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.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.types.d.ts +7 -0
- 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/templates/template-dialog/template-dialog.d.ts +2 -0
- 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.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types.d.ts +2 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types.d.ts.map +1 -1
- package/dist/esm/components/foundation-inbox/inbox.styles.js +1 -0
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.js +9 -2
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.js +18 -0
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.types.js +7 -0
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.js +10 -2
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.styles.js +1 -0
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.js +18 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.styles.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"inbox.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.styles.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,eAAO,MAAM,qBAAqB,iDA0NjC,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { NotifyService } from '../../../../../services/notify.service';
|
|
|
4
4
|
import { RuleService } from '../../../../../services/rule.service';
|
|
5
5
|
import { Field, SystemService } from '../../../../../services/system.service';
|
|
6
6
|
import { ConditionBuilderEntity } from './rule-condition-builder/rule-condition-builder.types';
|
|
7
|
-
import { RuleDialogMode, RuleDialogParams } from './rule-dialog.types';
|
|
7
|
+
import { RuleDialogMode, RuleDialogParams, UpdateType } from './rule-dialog.types';
|
|
8
8
|
export declare class RuleDialog extends FASTElement {
|
|
9
9
|
ruleService: RuleService;
|
|
10
10
|
systemService: SystemService;
|
|
@@ -19,6 +19,7 @@ export declare class RuleDialog extends FASTElement {
|
|
|
19
19
|
topics: string[];
|
|
20
20
|
resourceFields: Field[];
|
|
21
21
|
severity: string;
|
|
22
|
+
updateType: UpdateType[];
|
|
22
23
|
header: string;
|
|
23
24
|
message: string;
|
|
24
25
|
conditions: Array<ConditionBuilderEntity>;
|
|
@@ -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":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAiB,WAAW,EAAc,MAAM,yBAAyB,CAAC;AACjF,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;AAW9E,OAAO,EACL,sBAAsB,EAEvB,MAAM,uDAAuD,CAAC;AAG/D,OAAO,
|
|
1
|
+
{"version":3,"file":"rule-dialog.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAiB,WAAW,EAAc,MAAM,yBAAyB,CAAC;AACjF,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;AAW9E,OAAO,EACL,sBAAsB,EAEvB,MAAM,uDAAuD,CAAC;AAG/D,OAAO,EAGL,cAAc,EACd,gBAAgB,EAChB,UAAU,EACX,MAAM,qBAAqB,CAAC;AAE7B,qBAKa,UAAW,SAAQ,WAAW;IAC5B,WAAW,EAAE,WAAW,CAAC;IACvB,aAAa,EAAE,aAAa,CAAC;IAC7B,aAAa,EAAE,aAAa,CAAC;IAE5C,MAAM,EAAE,MAAM,CAAC;IACH,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,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,cAAc,EAAE,KAAK,EAAE,CAAC;IACxB,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;IAE7B,UAAU,CAAC,MAAM,EAAE,gBAAgB;IAoDhD,IAAI,eAAe,IAAI,MAAM,CAE5B;IAED,MAAM;IA8BN,gBAAgB,CAAC,QAAQ,KAAA;IAoBzB,KAAK;IAiBL,YAAY;IAIZ,aAAa,CAAC,eAAe,EAAE,sBAAsB;IAErD,eAAe,CAAC,gBAAgB,EAAE,sBAAsB;IASlD,eAAe;IAKrB,oBAAoB,IAAI,sBAAsB;CAS/C"}
|
|
@@ -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;AAO1E,eAAO,MAAM,kBAAkB,EAAE,YA0HhC,CAAC"}
|
|
@@ -13,10 +13,17 @@ export type Rule = {
|
|
|
13
13
|
RULE_NAME: string;
|
|
14
14
|
RULE_DESCRIPTION: string;
|
|
15
15
|
RULE_TABLE: string;
|
|
16
|
+
TABLE_OPERATIONS: UpdateType[];
|
|
16
17
|
RULE_EXPRESSION?: any;
|
|
17
18
|
RAW_RULE_EXPRESSION?: string;
|
|
18
19
|
RESULT_EXPRESSION?: {
|
|
19
20
|
ASSIGNMENTS: Array<any>;
|
|
20
21
|
};
|
|
21
22
|
};
|
|
23
|
+
export declare enum UpdateType {
|
|
24
|
+
INSERT = "INSERT",
|
|
25
|
+
MODIFY = "MODIFY",
|
|
26
|
+
DELETE = "DELETE"
|
|
27
|
+
}
|
|
28
|
+
export declare const defaultUpdateType: UpdateType[];
|
|
22
29
|
//# 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,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,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;AAEF,oBAAY,UAAU;IACpB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,iBAAiB,cAAsB,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { FASTElement } from '@microsoft/fast-element';
|
|
|
3
3
|
import { NotifyService } from '../../../../../services/notify.service';
|
|
4
4
|
import { Field, SystemService } from '../../../../../services/system.service';
|
|
5
5
|
import { TemplateService } from '../../../../../services/template.service';
|
|
6
|
+
import { UpdateType } from '../../rules/rule-dialog/rule-dialog.types';
|
|
6
7
|
import { ConditionBuilderEntity, ParameterBuilderEntity, TemplateDialogMode } from './template-dialog.types';
|
|
7
8
|
export declare class TemplateDialog extends FASTElement {
|
|
8
9
|
templateService: TemplateService;
|
|
@@ -16,6 +17,7 @@ export declare class TemplateDialog extends FASTElement {
|
|
|
16
17
|
resource: string;
|
|
17
18
|
topic: any;
|
|
18
19
|
severity: any;
|
|
20
|
+
updateType: UpdateType[];
|
|
19
21
|
parameters: Array<ParameterBuilderEntity>;
|
|
20
22
|
conditions: Array<ConditionBuilderEntity>;
|
|
21
23
|
resources: Array<string>;
|
|
@@ -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":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAiB,WAAW,EAAc,MAAM,yBAAyB,CAAC;AACjF,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;
|
|
1
|
+
{"version":3,"file":"template-dialog.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAiB,WAAW,EAAc,MAAM,yBAAyB,CAAC;AACjF,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;AAK3E,OAAO,EAAqB,UAAU,EAAE,MAAM,2CAA2C,CAAC;AAG1F,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EAEtB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AAajC,qBAKa,cAAe,SAAQ,WAAW;IAC5B,eAAe,EAAE,eAAe,CAAC;IACnC,aAAa,EAAE,aAAa,CAAC;IAC7B,aAAa,EAAE,aAAa,CAAC;IAEhC,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;IAE3B,kBAAkB,EAAE,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;IAE7F,MAAM,EAAE,MAAM,CAAC;IAEF,UAAU,CAAC,MAAM,EAAE,GAAG;IAwEnC,IAAI,mBAAmB,IAAI,MAAM,CAGhC;IAED,MAAM;IAyCN,gBAAgB,CAAC,QAAQ,KAAA;IAoBzB,KAAK;IAmBL,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;IAWlD,eAAe;CAItB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-dialog.styles.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.styles.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"template-dialog.styles.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.styles.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,oBAAoB,iDAuEhC,CAAC"}
|
|
@@ -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;AAO1E,eAAO,MAAM,sBAAsB,EAAE,YA6IpC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { UpdateType } from '../../rules/rule-dialog/rule-dialog.types';
|
|
1
2
|
export declare const TemplateDialogMode: {
|
|
2
3
|
readonly CREATE: "create";
|
|
3
4
|
readonly EDIT: "edit";
|
|
@@ -14,12 +15,12 @@ export type Template = {
|
|
|
14
15
|
RULE_DESCRIPTION: string;
|
|
15
16
|
RULE_TABLE: string;
|
|
16
17
|
RULE_EXPRESSION?: any;
|
|
18
|
+
TABLE_OPERATIONS: UpdateType[];
|
|
17
19
|
RAW_RULE_EXPRESSION?: string;
|
|
18
20
|
RESULT_EXPRESSION?: {
|
|
19
21
|
ASSIGNMENTS: Array<any>;
|
|
20
22
|
};
|
|
21
23
|
PARAMETER_DETAILS: any;
|
|
22
|
-
RULE_EXECUTION_STRATEGY: string;
|
|
23
24
|
};
|
|
24
25
|
export type ConditionBuilderEntity = {
|
|
25
26
|
ID: 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,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,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,iBAAiB,CAAC,EAAE;QAClB,WAAW,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;KACzB,CAAC;IACF,iBAAiB,EAAE,GAAG,CAAC;
|
|
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,2CAA2C,CAAC;AAEvE,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,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;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"}
|
|
@@ -12,13 +12,14 @@ import { createAssignment, createConditions, getAssignmentValue, UUIDGenerator,
|
|
|
12
12
|
import { RIGHT_CRITERIA, } from './rule-condition-builder/rule-condition-builder.types';
|
|
13
13
|
import { RuleDialogStyles } from './rule-dialog.styles';
|
|
14
14
|
import { RuleDialogTemplate } from './rule-dialog.template';
|
|
15
|
-
import { RuleDialogMode } from './rule-dialog.types';
|
|
15
|
+
import { defaultUpdateType, RuleDialogMode, } from './rule-dialog.types';
|
|
16
16
|
let RuleDialog = class RuleDialog extends FASTElement {
|
|
17
17
|
constructor() {
|
|
18
18
|
super(...arguments);
|
|
19
19
|
this.resource = ''; // Tables + Views
|
|
20
20
|
this.topic = '';
|
|
21
21
|
this.severity = '';
|
|
22
|
+
this.updateType = defaultUpdateType;
|
|
22
23
|
this.conditions = [];
|
|
23
24
|
this.resources = [];
|
|
24
25
|
}
|
|
@@ -35,6 +36,7 @@ let RuleDialog = class RuleDialog extends FASTElement {
|
|
|
35
36
|
this.resourceFields = yield this.systemService.getFields(this.resource);
|
|
36
37
|
this.topic = this.topics[0];
|
|
37
38
|
this.severity = SEVERITY_INFORMATION;
|
|
39
|
+
this.updateType = defaultUpdateType;
|
|
38
40
|
break;
|
|
39
41
|
case RuleDialogMode.EDIT:
|
|
40
42
|
const rule = params.data;
|
|
@@ -42,6 +44,7 @@ let RuleDialog = class RuleDialog extends FASTElement {
|
|
|
42
44
|
this.name = rule.RULE_NAME;
|
|
43
45
|
this.description = rule.RULE_DESCRIPTION;
|
|
44
46
|
this.resource = rule.RULE_TABLE;
|
|
47
|
+
this.updateType = rule.TABLE_OPERATIONS;
|
|
45
48
|
// Conditions
|
|
46
49
|
this.conditions = (_a = rule.RULE_EXPRESSION.CONDITIONS) === null || _a === void 0 ? void 0 : _a.map((condition) => {
|
|
47
50
|
var _a, _b;
|
|
@@ -72,7 +75,7 @@ let RuleDialog = class RuleDialog extends FASTElement {
|
|
|
72
75
|
return `${this.ruleDialogMode === RuleDialogMode.CREATE ? 'Create' : 'Edit'} Rule`;
|
|
73
76
|
}
|
|
74
77
|
submit() {
|
|
75
|
-
const rule = Object.assign(Object.assign({}, (this.ruleDialogMode === RuleDialogMode.EDIT && { DYNAMIC_RULE_ID: this.ruleId })), { RULE_NAME: this.name, RULE_DESCRIPTION: this.description, RULE_TABLE: this.resource, RULE_EXPRESSION: {
|
|
78
|
+
const rule = Object.assign(Object.assign({}, (this.ruleDialogMode === RuleDialogMode.EDIT && { DYNAMIC_RULE_ID: this.ruleId })), { RULE_NAME: this.name, RULE_DESCRIPTION: this.description, RULE_TABLE: this.resource, TABLE_OPERATIONS: this.updateType, RULE_EXPRESSION: {
|
|
76
79
|
CONDITIONS: createConditions(this.conditions, null),
|
|
77
80
|
}, RESULT_EXPRESSION: {
|
|
78
81
|
ASSIGNMENTS: [
|
|
@@ -119,6 +122,7 @@ let RuleDialog = class RuleDialog extends FASTElement {
|
|
|
119
122
|
this.topic = null;
|
|
120
123
|
this.topics = [];
|
|
121
124
|
this.severity = null;
|
|
125
|
+
this.updateType = defaultUpdateType;
|
|
122
126
|
this.conditions = [];
|
|
123
127
|
}
|
|
124
128
|
// #region Condition
|
|
@@ -182,6 +186,9 @@ __decorate([
|
|
|
182
186
|
__decorate([
|
|
183
187
|
observable
|
|
184
188
|
], RuleDialog.prototype, "severity", void 0);
|
|
189
|
+
__decorate([
|
|
190
|
+
observable
|
|
191
|
+
], RuleDialog.prototype, "updateType", void 0);
|
|
185
192
|
__decorate([
|
|
186
193
|
observable
|
|
187
194
|
], RuleDialog.prototype, "header", void 0);
|
|
@@ -2,6 +2,7 @@ import { sync } from '@genesislcap/foundation-utils';
|
|
|
2
2
|
import { html, ref, repeat } from '@microsoft/fast-element';
|
|
3
3
|
import { eventDetail } from '../../../../../utils/eventDetail';
|
|
4
4
|
import { ALL_SEVERITIES } from '../../../types/severity';
|
|
5
|
+
import { UpdateType } from './rule-dialog.types';
|
|
5
6
|
export const RuleDialogTemplate = html `
|
|
6
7
|
<zero-modal ${ref('dialog')} class="rule-dialog" :onCloseCallback=${(x) => () => x.close()}>
|
|
7
8
|
<div slot="top" class="rule-dialog-top">${(x) => x.ruleDialogTitle}</div>
|
|
@@ -56,6 +57,23 @@ export const RuleDialogTemplate = html `
|
|
|
56
57
|
></options-datasource>
|
|
57
58
|
</zero-select>
|
|
58
59
|
</div>
|
|
60
|
+
<div class="control">
|
|
61
|
+
<label>Update Type</label>
|
|
62
|
+
<zero-multiselect
|
|
63
|
+
:selectedOptions=${(x) => x.updateType}
|
|
64
|
+
@selectionChange=${(x, c) => {
|
|
65
|
+
x.updateType = c.event.detail;
|
|
66
|
+
}}
|
|
67
|
+
search="false"
|
|
68
|
+
all="false"
|
|
69
|
+
>
|
|
70
|
+
<multiselect-datasource
|
|
71
|
+
value-field="value"
|
|
72
|
+
label-field="value"
|
|
73
|
+
:data=${() => Object.values(UpdateType).map((value) => ({ value, label: value }))}
|
|
74
|
+
></multiselect-datasource>
|
|
75
|
+
</zero-multiselect>
|
|
76
|
+
</div>
|
|
59
77
|
</div>
|
|
60
78
|
|
|
61
79
|
<div class="content-row">
|
|
@@ -2,3 +2,10 @@ export const RuleDialogMode = {
|
|
|
2
2
|
CREATE: 'create',
|
|
3
3
|
EDIT: 'edit',
|
|
4
4
|
};
|
|
5
|
+
export var UpdateType;
|
|
6
|
+
(function (UpdateType) {
|
|
7
|
+
UpdateType["INSERT"] = "INSERT";
|
|
8
|
+
UpdateType["MODIFY"] = "MODIFY";
|
|
9
|
+
UpdateType["DELETE"] = "DELETE";
|
|
10
|
+
})(UpdateType || (UpdateType = {}));
|
|
11
|
+
export const defaultUpdateType = [UpdateType.INSERT];
|
|
@@ -8,6 +8,7 @@ import { humanize, logger } from '../../../../../utils';
|
|
|
8
8
|
import { EXPRESSION_TYPE_PLACEHOLDER } from '../../../types/expression-type';
|
|
9
9
|
import { RIGHT_CRITERIA_USER_ENTRY, RIGHT_CRITERIA_VALUE } from '../../../types/right-criteria';
|
|
10
10
|
import { SEVERITY_INFORMATION } from '../../../types/severity';
|
|
11
|
+
import { defaultUpdateType } from '../../rules/rule-dialog/rule-dialog.types';
|
|
11
12
|
import { TemplateDialogStyles as styles } from './template-dialog.styles';
|
|
12
13
|
import { TemplateDialogTemplate as template } from './template-dialog.template';
|
|
13
14
|
import { TemplateDialogMode, } from './template-dialog.types';
|
|
@@ -17,6 +18,7 @@ let TemplateDialog = class TemplateDialog extends FASTElement {
|
|
|
17
18
|
constructor() {
|
|
18
19
|
super(...arguments);
|
|
19
20
|
this.resource = ''; // Tables + Views
|
|
21
|
+
this.updateType = defaultUpdateType;
|
|
20
22
|
this.parameters = [];
|
|
21
23
|
this.conditions = [];
|
|
22
24
|
this.resources = [];
|
|
@@ -36,6 +38,7 @@ let TemplateDialog = class TemplateDialog extends FASTElement {
|
|
|
36
38
|
this.fields = yield this.systemService.getFields(this.resource);
|
|
37
39
|
this.topic = this.topics[0];
|
|
38
40
|
this.severity = SEVERITY_INFORMATION;
|
|
41
|
+
this.updateType = defaultUpdateType;
|
|
39
42
|
break;
|
|
40
43
|
case TemplateDialogMode.EDIT:
|
|
41
44
|
const ruleTemplate = params.data;
|
|
@@ -43,6 +46,7 @@ let TemplateDialog = class TemplateDialog extends FASTElement {
|
|
|
43
46
|
this.name = ruleTemplate.RULE_NAME;
|
|
44
47
|
this.description = ruleTemplate.RULE_DESCRIPTION;
|
|
45
48
|
this.resource = ruleTemplate.RULE_TABLE;
|
|
49
|
+
this.updateType = ruleTemplate.TABLE_OPERATIONS;
|
|
46
50
|
this.fields = yield this.systemService.getFields(this.resource);
|
|
47
51
|
// Parameters
|
|
48
52
|
this.parameters = Object.keys(ruleTemplate.PARAMETERS).map((key) => {
|
|
@@ -94,7 +98,7 @@ let TemplateDialog = class TemplateDialog extends FASTElement {
|
|
|
94
98
|
submit() {
|
|
95
99
|
const ruleTemplate = Object.assign(Object.assign({}, (this.templateDialogMode === TemplateDialogMode.EDIT && {
|
|
96
100
|
DYNAMIC_RULE_ID: this.templateId,
|
|
97
|
-
})), { RULE_NAME: this.name, RULE_DESCRIPTION: this.description, RULE_TABLE: this.resource, RULE_EXPRESSION: {
|
|
101
|
+
})), { RULE_NAME: this.name, RULE_DESCRIPTION: this.description, RULE_TABLE: this.resource, TABLE_OPERATIONS: this.updateType, RULE_EXPRESSION: {
|
|
98
102
|
CONDITIONS: createConditions(this.conditions, this.parameters),
|
|
99
103
|
}, RAW_RULE_EXPRESSION: null, RESULT_EXPRESSION: {
|
|
100
104
|
ASSIGNMENTS: [
|
|
@@ -103,7 +107,7 @@ let TemplateDialog = class TemplateDialog extends FASTElement {
|
|
|
103
107
|
createAssignment('BODY', this.message),
|
|
104
108
|
createAssignment('NOTIFY_SEVERITY', humanize(this.severity)),
|
|
105
109
|
],
|
|
106
|
-
}, PARAMETER_DETAILS: createParameterDetails(this.parameters)
|
|
110
|
+
}, PARAMETER_DETAILS: createParameterDetails(this.parameters) });
|
|
107
111
|
switch (this.templateDialogMode) {
|
|
108
112
|
case TemplateDialogMode.CREATE:
|
|
109
113
|
this.templateService
|
|
@@ -146,6 +150,7 @@ let TemplateDialog = class TemplateDialog extends FASTElement {
|
|
|
146
150
|
this.resource = null;
|
|
147
151
|
this.topic = null;
|
|
148
152
|
this.severity = null;
|
|
153
|
+
this.updateType = defaultUpdateType;
|
|
149
154
|
this.conditions = [];
|
|
150
155
|
this.parameters = [];
|
|
151
156
|
this.resources = [];
|
|
@@ -218,6 +223,9 @@ __decorate([
|
|
|
218
223
|
__decorate([
|
|
219
224
|
observable
|
|
220
225
|
], TemplateDialog.prototype, "severity", void 0);
|
|
226
|
+
__decorate([
|
|
227
|
+
observable
|
|
228
|
+
], TemplateDialog.prototype, "updateType", void 0);
|
|
221
229
|
__decorate([
|
|
222
230
|
observable
|
|
223
231
|
], TemplateDialog.prototype, "parameters", void 0);
|
|
@@ -2,6 +2,7 @@ import { sync } from '@genesislcap/foundation-utils';
|
|
|
2
2
|
import { html, ref, repeat } from '@microsoft/fast-element';
|
|
3
3
|
import { eventDetail } from '../../../../../utils/eventDetail';
|
|
4
4
|
import { ALL_SEVERITIES } from '../../../types/severity';
|
|
5
|
+
import { UpdateType } from '../../rules/rule-dialog/rule-dialog.types';
|
|
5
6
|
export const TemplateDialogTemplate = html `
|
|
6
7
|
<zero-modal ${ref('dialog')} class="template-dialog" :onCloseCallback=${(x) => () => x.close()}>
|
|
7
8
|
<div slot="top" class="template-dialog-top">${(x) => x.templateDialogTitle}</div>
|
|
@@ -49,6 +50,23 @@ export const TemplateDialogTemplate = html `
|
|
|
49
50
|
></options-datasource>
|
|
50
51
|
</zero-select>
|
|
51
52
|
</div>
|
|
53
|
+
<div class="control">
|
|
54
|
+
<label>Update Type</label>
|
|
55
|
+
<zero-multiselect
|
|
56
|
+
:selectedOptions=${(x) => x.updateType}
|
|
57
|
+
@selectionChange=${(x, c) => {
|
|
58
|
+
x.updateType = c.event.detail;
|
|
59
|
+
}}
|
|
60
|
+
search="false"
|
|
61
|
+
all="false"
|
|
62
|
+
>
|
|
63
|
+
<multiselect-datasource
|
|
64
|
+
value-field="value"
|
|
65
|
+
label-field="value"
|
|
66
|
+
:data=${() => Object.values(UpdateType).map((value) => ({ value, label: value }))}
|
|
67
|
+
></multiselect-datasource>
|
|
68
|
+
</zero-multiselect>
|
|
69
|
+
</div>
|
|
52
70
|
</div>
|
|
53
71
|
|
|
54
72
|
<div class="content-row">
|