@genesislcap/pbc-notify-ui 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -11
- package/dist/dts/components/components.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/components/components.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.d.ts +0 -3
- package/dist/dts/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox.d.ts +24 -26
- package/dist/dts/components/foundation-inbox/inbox.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox.styles.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox.types.d.ts +11 -64
- package/dist/dts/components/foundation-inbox/inbox.types.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox.utils.d.ts +7 -6
- package/dist/dts/components/foundation-inbox/inbox.utils.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/condition-builder/condition-builder.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/parameter-builder/parameter-builder.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-condition-builder/rule-condition-builder.d.ts +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-condition-builder/rule-condition-builder.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-condition-builder/rule-condition-builder.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.d.ts +2 -10
- package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.styles.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.types.d.ts +2 -2
- package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.types.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.d.ts +16 -31
- package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.styles.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.types.d.ts +8 -7
- package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.types.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.utils.d.ts +39 -0
- package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.utils.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/management/management.styles.d.ts +1 -0
- package/dist/dts/components/foundation-notification-dashboard/management/management.styles.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/management/notify-audit-management.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/management/rule-management.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/management/rule-template-management.d.ts +5 -5
- package/dist/dts/components/foundation-notification-dashboard/management/rule-template-management.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/management/screen-route-management.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/types/severity.d.ts +2 -2
- package/dist/dts/components/foundation-notification-dashboard/types/severity.d.ts.map +1 -1
- package/dist/dts/services/alert.service.d.ts.map +1 -1
- package/dist/dts/services/notify.service.d.ts +1 -1
- package/dist/dts/services/notify.service.d.ts.map +1 -1
- package/dist/dts/services/rule-template.service.d.ts +2 -0
- package/dist/dts/services/rule-template.service.d.ts.map +1 -1
- package/dist/dts/services/system.service.d.ts.map +1 -1
- package/dist/esm/components/components.js +0 -2
- package/dist/esm/components/foundation-inbox/components/components.js +1 -3
- package/dist/esm/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.js +0 -9
- package/dist/esm/components/foundation-inbox/inbox.js +97 -82
- package/dist/esm/components/foundation-inbox/inbox.styles.js +4 -2
- package/dist/esm/components/foundation-inbox/inbox.template.js +159 -164
- package/dist/esm/components/foundation-inbox/inbox.types.js +0 -4
- package/dist/esm/components/foundation-inbox/inbox.utils.js +47 -29
- package/dist/esm/components/foundation-notification-dashboard/components/condition-builder/condition-builder.js +0 -3
- package/dist/esm/components/foundation-notification-dashboard/components/condition-builder/condition-builder.styles.js +4 -4
- package/dist/esm/components/foundation-notification-dashboard/components/parameter-builder/parameter-builder.styles.js +4 -4
- package/dist/esm/components/foundation-notification-dashboard/components/parameter-builder/parameter-builder.template.js +2 -0
- package/dist/esm/components/foundation-notification-dashboard/components/rule-dialog/rule-condition-builder/rule-condition-builder.js +21 -11
- package/dist/esm/components/foundation-notification-dashboard/components/rule-dialog/rule-condition-builder/rule-condition-builder.styles.js +4 -4
- package/dist/esm/components/foundation-notification-dashboard/components/rule-dialog/rule-condition-builder/rule-condition-builder.template.js +4 -2
- package/dist/esm/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.js +34 -95
- package/dist/esm/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.styles.js +32 -12
- package/dist/esm/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.template.js +35 -30
- package/dist/esm/components/foundation-notification-dashboard/components/template-dialog/template-dialog.js +110 -157
- package/dist/esm/components/foundation-notification-dashboard/components/template-dialog/template-dialog.styles.js +40 -41
- package/dist/esm/components/foundation-notification-dashboard/components/template-dialog/template-dialog.template.js +70 -17
- package/dist/esm/components/foundation-notification-dashboard/components/template-dialog/template-dialog.utils.js +85 -2
- package/dist/esm/components/foundation-notification-dashboard/management/management.styles.js +23 -0
- package/dist/esm/components/foundation-notification-dashboard/management/notify-audit-management.js +8 -2
- package/dist/esm/components/foundation-notification-dashboard/management/rule-management.js +39 -28
- package/dist/esm/components/foundation-notification-dashboard/management/rule-template-management.js +64 -59
- package/dist/esm/components/foundation-notification-dashboard/management/screen-route-management.js +2 -1
- package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.js +1 -1
- package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.styles.js +1 -1
- package/dist/esm/components/foundation-notification-dashboard/types/severity.js +3 -3
- package/dist/esm/services/alert.service.js +15 -11
- package/dist/esm/services/notify.service.js +5 -6
- package/dist/esm/services/rule-template.service.js +34 -9
- package/package.json +2 -1
- package/dist/dts/components/foundation-alerts/alerts.config.d.ts +0 -64
- package/dist/dts/components/foundation-alerts/alerts.config.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/alerts.d.ts +0 -74
- package/dist/dts/components/foundation-alerts/alerts.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/alerts.template.d.ts +0 -10
- package/dist/dts/components/foundation-alerts/alerts.template.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/alerts.types.d.ts +0 -72
- package/dist/dts/components/foundation-alerts/alerts.types.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.config.d.ts +0 -9
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.config.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.d.ts +0 -37
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.styles.d.ts +0 -2
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.styles.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.template.d.ts +0 -4
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.template.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.types.d.ts +0 -28
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.types.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-form/foundation-alerts-form.d.ts +0 -30
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-form/foundation-alerts-form.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-form/foundation-alerts-form.styles.d.ts +0 -2
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-form/foundation-alerts-form.styles.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-form/foundation-alerts-form.template.d.ts +0 -4
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-form/foundation-alerts-form.template.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-navigation-button/foundation-alerts-navigation-button.d.ts +0 -8
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-navigation-button/foundation-alerts-navigation-button.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-navigation-button/foundation-alerts-navigation-button.styles.d.ts +0 -2
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-navigation-button/foundation-alerts-navigation-button.styles.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-navigation-button/foundation-alerts-navigation-button.template.d.ts +0 -4
- package/dist/dts/components/foundation-alerts/components/foundation-alerts-navigation-button/foundation-alerts-navigation-button.template.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/components/index.d.ts +0 -5
- package/dist/dts/components/foundation-alerts/components/index.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/index.d.ts +0 -2
- package/dist/dts/components/foundation-alerts/index.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/index.federated.d.ts +0 -1
- package/dist/dts/components/foundation-alerts/index.federated.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/styles/index.d.ts +0 -2
- package/dist/dts/components/foundation-alerts/styles/index.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/styles/styles.d.ts +0 -5
- package/dist/dts/components/foundation-alerts/styles/styles.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/utils/getConditionObject.d.ts +0 -8
- package/dist/dts/components/foundation-alerts/utils/getConditionObject.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/utils/getDateMilliseconds.d.ts +0 -2
- package/dist/dts/components/foundation-alerts/utils/getDateMilliseconds.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/utils/getDateStringFormat.d.ts +0 -2
- package/dist/dts/components/foundation-alerts/utils/getDateStringFormat.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/utils/index.d.ts +0 -5
- package/dist/dts/components/foundation-alerts/utils/index.d.ts.map +0 -1
- package/dist/dts/components/foundation-alerts/utils/logger.d.ts +0 -2
- package/dist/dts/components/foundation-alerts/utils/logger.d.ts.map +0 -1
- package/dist/dts/components/foundation-inbox/components/foundation-inbox-toast/foundation-inbox-toast.d.ts +0 -10
- package/dist/dts/components/foundation-inbox/components/foundation-inbox-toast/foundation-inbox-toast.d.ts.map +0 -1
- package/dist/dts/components/foundation-inbox/components/foundation-inbox-toast/foundation-inbox-toast.styles.d.ts +0 -2
- package/dist/dts/components/foundation-inbox/components/foundation-inbox-toast/foundation-inbox-toast.styles.d.ts.map +0 -1
- package/dist/dts/components/foundation-inbox/inbox.config.d.ts +0 -6
- package/dist/dts/components/foundation-inbox/inbox.config.d.ts.map +0 -1
- package/dist/dts/components/foundation-inbox/layouts/default.d.ts +0 -3
- package/dist/dts/components/foundation-inbox/layouts/default.d.ts.map +0 -1
- package/dist/dts/components/foundation-inbox/layouts/index.d.ts +0 -2
- package/dist/dts/components/foundation-inbox/layouts/index.d.ts.map +0 -1
- package/dist/dts/components/foundation-inbox/services/foundation-inbox.service.d.ts +0 -11
- package/dist/dts/components/foundation-inbox/services/foundation-inbox.service.d.ts.map +0 -1
- package/dist/dts/components/foundation-inbox/styles/index.d.ts +0 -2
- package/dist/dts/components/foundation-inbox/styles/index.d.ts.map +0 -1
- package/dist/dts/components/foundation-inbox/styles/styles.d.ts +0 -3
- package/dist/dts/components/foundation-inbox/styles/styles.d.ts.map +0 -1
- package/dist/dts/components/foundation-inbox/utils/getSeverityByMessageType.d.ts +0 -3
- package/dist/dts/components/foundation-inbox/utils/getSeverityByMessageType.d.ts.map +0 -1
- package/dist/dts/components/foundation-inbox/utils/index.d.ts +0 -4
- package/dist/dts/components/foundation-inbox/utils/index.d.ts.map +0 -1
- package/dist/dts/components/foundation-inbox/utils/logger.d.ts +0 -2
- package/dist/dts/components/foundation-inbox/utils/logger.d.ts.map +0 -1
- package/dist/dts/components/foundation-inbox/utils/transformMessageToNotify.d.ts +0 -3
- package/dist/dts/components/foundation-inbox/utils/transformMessageToNotify.d.ts.map +0 -1
- package/dist/dts/layouts/default.d.ts +0 -3
- package/dist/dts/layouts/default.d.ts.map +0 -1
- package/dist/dts/layouts/index.d.ts +0 -2
- package/dist/dts/layouts/index.d.ts.map +0 -1
- package/dist/dts/styles/index.d.ts +0 -2
- package/dist/dts/styles/index.d.ts.map +0 -1
- package/dist/dts/styles/styles.d.ts +0 -3
- package/dist/dts/styles/styles.d.ts.map +0 -1
- package/dist/esm/components/foundation-alerts/alerts.config.js +0 -78
- package/dist/esm/components/foundation-alerts/alerts.js +0 -246
- package/dist/esm/components/foundation-alerts/alerts.template.js +0 -82
- package/dist/esm/components/foundation-alerts/alerts.types.js +0 -18
- package/dist/esm/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.config.js +0 -52
- package/dist/esm/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.js +0 -182
- package/dist/esm/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.styles.js +0 -68
- package/dist/esm/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.template.js +0 -135
- package/dist/esm/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.types.js +0 -1
- package/dist/esm/components/foundation-alerts/components/foundation-alerts-form/foundation-alerts-form.js +0 -145
- package/dist/esm/components/foundation-alerts/components/foundation-alerts-form/foundation-alerts-form.styles.js +0 -194
- package/dist/esm/components/foundation-alerts/components/foundation-alerts-form/foundation-alerts-form.template.js +0 -96
- package/dist/esm/components/foundation-alerts/components/foundation-alerts-navigation-button/foundation-alerts-navigation-button.js +0 -33
- package/dist/esm/components/foundation-alerts/components/foundation-alerts-navigation-button/foundation-alerts-navigation-button.styles.js +0 -27
- package/dist/esm/components/foundation-alerts/components/foundation-alerts-navigation-button/foundation-alerts-navigation-button.template.js +0 -14
- package/dist/esm/components/foundation-alerts/components/index.js +0 -52
- package/dist/esm/components/foundation-alerts/index.federated.js +0 -1
- package/dist/esm/components/foundation-alerts/index.js +0 -1
- package/dist/esm/components/foundation-alerts/styles/index.js +0 -1
- package/dist/esm/components/foundation-alerts/styles/styles.js +0 -198
- package/dist/esm/components/foundation-alerts/utils/getConditionObject.js +0 -24
- package/dist/esm/components/foundation-alerts/utils/getDateMilliseconds.js +0 -5
- package/dist/esm/components/foundation-alerts/utils/getDateStringFormat.js +0 -12
- package/dist/esm/components/foundation-alerts/utils/index.js +0 -4
- package/dist/esm/components/foundation-alerts/utils/logger.js +0 -2
- package/dist/esm/components/foundation-inbox/components/foundation-inbox-toast/foundation-inbox-toast.js +0 -42
- package/dist/esm/components/foundation-inbox/components/foundation-inbox-toast/foundation-inbox-toast.styles.js +0 -25
- package/dist/esm/components/foundation-inbox/inbox.config.js +0 -27
- package/dist/esm/components/foundation-inbox/layouts/default.js +0 -27
- package/dist/esm/components/foundation-inbox/layouts/index.js +0 -1
- package/dist/esm/components/foundation-inbox/services/foundation-inbox.service.js +0 -109
- package/dist/esm/components/foundation-inbox/styles/index.js +0 -1
- package/dist/esm/components/foundation-inbox/styles/styles.js +0 -13
- package/dist/esm/components/foundation-inbox/utils/getSeverityByMessageType.js +0 -4
- package/dist/esm/components/foundation-inbox/utils/index.js +0 -3
- package/dist/esm/components/foundation-inbox/utils/logger.js +0 -2
- package/dist/esm/components/foundation-inbox/utils/transformMessageToNotify.js +0 -12
- package/dist/esm/layouts/default.js +0 -27
- package/dist/esm/layouts/index.js +0 -1
- package/dist/esm/styles/index.js +0 -1
- package/dist/esm/styles/styles.js +0 -13
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
+
import { EXPRESSION_TYPE_FIELD, EXPRESSION_TYPE_PLACEHOLDER, EXPRESSION_TYPE_STRING } from "../../types/expression-type";
|
|
2
3
|
import { LOGICAL_OPERATOR_EQUALS } from "../../types/logical-operator";
|
|
3
4
|
import { PARAM_SOURCE_TYPE_USER_TEXT } from "../../types/param-source-type";
|
|
4
|
-
import { PARAM_TYPE_STRING } from "../../types/param-type";
|
|
5
|
-
import { RIGHT_CRITERIA_VALUE } from "../../types/right-criteria";
|
|
5
|
+
import { PARAM_TYPE_BOOLEAN, PARAM_TYPE_FIELD, PARAM_TYPE_NUMBER, PARAM_TYPE_STRING } from "../../types/param-type";
|
|
6
|
+
import { RIGHT_CRITERIA_USER_ENTRY, RIGHT_CRITERIA_VALUE } from "../../types/right-criteria";
|
|
6
7
|
import { UUID } from '@genesislcap/foundation-utils';
|
|
7
8
|
export class UUIDGenerator {
|
|
8
9
|
static createUuid() {
|
|
@@ -31,3 +32,85 @@ export function createEmptyParameter() {
|
|
|
31
32
|
PARAM_SOURCE: null,
|
|
32
33
|
};
|
|
33
34
|
}
|
|
35
|
+
export function createAssignment(field, value) {
|
|
36
|
+
return {
|
|
37
|
+
FIELD: {
|
|
38
|
+
TYPE: 'FIELD',
|
|
39
|
+
NAME: field
|
|
40
|
+
},
|
|
41
|
+
VALUE: {
|
|
42
|
+
TYPE: 'STRING',
|
|
43
|
+
VALUE: value
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export function getAssignmentValue(assignments, field) {
|
|
48
|
+
return assignments.find(assignment => assignment.FIELD.NAME === field).VALUE.VALUE;
|
|
49
|
+
}
|
|
50
|
+
export function createConditions(conditions, parameters) {
|
|
51
|
+
return conditions.map(condition => {
|
|
52
|
+
return {
|
|
53
|
+
LEFT: getLeftExpression(condition),
|
|
54
|
+
OPERATION: condition.LOGICAL_OPERATOR,
|
|
55
|
+
RIGHT: getRightExpression(condition, parameters)
|
|
56
|
+
};
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
export function getLeftExpression(condition) {
|
|
60
|
+
const leftType = getLeftType(condition);
|
|
61
|
+
if (PARAM_TYPE_STRING === leftType) {
|
|
62
|
+
return {
|
|
63
|
+
TYPE: PARAM_TYPE_STRING,
|
|
64
|
+
VALUE: condition.LEFT_VALUE.FIELD_NAME
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
TYPE: PARAM_TYPE_FIELD,
|
|
69
|
+
NAME: condition.LEFT_VALUE.FIELD_NAME
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
export function getLeftType(condition) {
|
|
73
|
+
switch (condition.LEFT_VALUE.FIELD_TYPE) {
|
|
74
|
+
case PARAM_TYPE_BOOLEAN:
|
|
75
|
+
return PARAM_TYPE_FIELD;
|
|
76
|
+
case 'INTEGER':
|
|
77
|
+
case 'DOUBLE':
|
|
78
|
+
case 'LONG':
|
|
79
|
+
case 'SHORT':
|
|
80
|
+
case 'BIGDECIMAL':
|
|
81
|
+
return PARAM_TYPE_NUMBER;
|
|
82
|
+
default:
|
|
83
|
+
return PARAM_TYPE_STRING;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
export function getRightExpression(condition, parameters) {
|
|
87
|
+
if (condition.RIGHT_CRITERIA === RIGHT_CRITERIA_USER_ENTRY) {
|
|
88
|
+
return {
|
|
89
|
+
TYPE: EXPRESSION_TYPE_PLACEHOLDER,
|
|
90
|
+
KEY: parameters.find(parameter => parameter.UUID === condition.RIGHT_VALUE).PARAM_NAME
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
if (condition.LEFT_VALUE.FIELD_TYPE === EXPRESSION_TYPE_STRING) {
|
|
94
|
+
return {
|
|
95
|
+
TYPE: EXPRESSION_TYPE_STRING,
|
|
96
|
+
VALUE: condition.RIGHT_VALUE
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
TYPE: EXPRESSION_TYPE_FIELD,
|
|
101
|
+
NAME: condition.RIGHT_VALUE
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
export function createParameterDetails(parameters) {
|
|
105
|
+
return parameters.reduce((acc, parameter) => {
|
|
106
|
+
var _a;
|
|
107
|
+
acc[parameter.PARAM_NAME] = {
|
|
108
|
+
PARAM_LABEL: parameter.PARAM_LABEL,
|
|
109
|
+
PARAM_TYPE: parameter.PARAM_TYPE,
|
|
110
|
+
PARAM_SOURCE_TYPE: parameter.PARAM_SOURCE_TYPE,
|
|
111
|
+
PARAM_SOURCE: (_a = parameter.PARAM_SOURCE) !== null && _a !== void 0 ? _a : '',
|
|
112
|
+
PARAM_OPERATOR: 'EQUALS'
|
|
113
|
+
};
|
|
114
|
+
return acc;
|
|
115
|
+
}, {});
|
|
116
|
+
}
|
package/dist/esm/components/foundation-notification-dashboard/management/management.styles.js
CHANGED
|
@@ -3,6 +3,29 @@ export const managementGridStyles = css `
|
|
|
3
3
|
:host {
|
|
4
4
|
height: 100%;
|
|
5
5
|
}
|
|
6
|
+
`;
|
|
7
|
+
export const rulesAndTemplatesStyles = css `
|
|
8
|
+
.container {
|
|
9
|
+
display: flex;
|
|
10
|
+
height: 100%;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.header {
|
|
15
|
+
display: flex;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.grid {
|
|
19
|
+
height: 100%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
zero-button.add {
|
|
23
|
+
margin-bottom: calc(var(--design-unit) * 3px);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
zero-button {
|
|
27
|
+
margin: 0;
|
|
28
|
+
}
|
|
6
29
|
|
|
7
30
|
entity-management::part(header) {
|
|
8
31
|
display: none;
|
package/dist/esm/components/foundation-notification-dashboard/management/notify-audit-management.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { customElement, FASTElement, html } from '@microsoft/fast-element';
|
|
2
|
+
import { css, customElement, FASTElement, html } from '@microsoft/fast-element';
|
|
3
3
|
import { managementGridStyles } from './management.styles';
|
|
4
4
|
let NotifyAuditManagement = class NotifyAuditManagement extends FASTElement {
|
|
5
5
|
};
|
|
@@ -12,7 +12,13 @@ NotifyAuditManagement = __decorate([
|
|
|
12
12
|
resourceName="ALL_NOTIFY_AUDIT"
|
|
13
13
|
></entity-management>
|
|
14
14
|
`,
|
|
15
|
-
styles:
|
|
15
|
+
styles: css `
|
|
16
|
+
${managementGridStyles}
|
|
17
|
+
|
|
18
|
+
entity-management::part(header) {
|
|
19
|
+
display: none;
|
|
20
|
+
}
|
|
21
|
+
`
|
|
16
22
|
})
|
|
17
23
|
], NotifyAuditManagement);
|
|
18
24
|
export { NotifyAuditManagement };
|
|
@@ -4,6 +4,8 @@ import { css, customElement, FASTElement, html, ref, repeat } from '@microsoft/f
|
|
|
4
4
|
import { RuleService } from '../../../services/rule.service';
|
|
5
5
|
import { RuleDialogMode } from '../components/rule-dialog';
|
|
6
6
|
import { deleteIcon, editIcon } from '../utils/icons';
|
|
7
|
+
import { rulesAndTemplatesStyles } from './management.styles';
|
|
8
|
+
import { showNotificationDialog } from '@genesislcap/foundation-notifications';
|
|
7
9
|
export const ruleColumns = (context) => [
|
|
8
10
|
{
|
|
9
11
|
field: 'NAME',
|
|
@@ -59,7 +61,20 @@ let RuleManagement = class RuleManagement extends FASTElement {
|
|
|
59
61
|
});
|
|
60
62
|
}
|
|
61
63
|
deleteRule(rule) {
|
|
62
|
-
|
|
64
|
+
showNotificationDialog({
|
|
65
|
+
title: 'Confirm Delete',
|
|
66
|
+
body: 'Do you really want to delete this rule?',
|
|
67
|
+
dialog: {
|
|
68
|
+
dismissingAction: {
|
|
69
|
+
label: 'Dismiss',
|
|
70
|
+
action: () => null
|
|
71
|
+
},
|
|
72
|
+
confirmingActions: [{
|
|
73
|
+
label: 'Confirm',
|
|
74
|
+
action: () => this.ruleService.deleteRule(rule.ID)
|
|
75
|
+
}],
|
|
76
|
+
},
|
|
77
|
+
}, 'zero');
|
|
63
78
|
}
|
|
64
79
|
};
|
|
65
80
|
__decorate([
|
|
@@ -69,36 +84,32 @@ RuleManagement = __decorate([
|
|
|
69
84
|
customElement({
|
|
70
85
|
name: 'rule-management',
|
|
71
86
|
template: html `
|
|
72
|
-
<
|
|
73
|
-
class="
|
|
74
|
-
|
|
87
|
+
<div class="container">
|
|
88
|
+
<div class="header">
|
|
89
|
+
<zero-button
|
|
90
|
+
class="add"
|
|
91
|
+
@click=${x => x.openRuleDialog()}
|
|
92
|
+
>
|
|
93
|
+
<zero-icon name="plus" size="lg" variant="solid"></zero-icon>Create
|
|
94
|
+
</zero-button>
|
|
95
|
+
</div>
|
|
96
|
+
<div class="grid">
|
|
97
|
+
<zero-grid-pro only-template-col-defs>
|
|
98
|
+
<grid-pro-genesis-datasource resource-name="ALL_DYNAMIC_NOTIFY_RULES">
|
|
99
|
+
${repeat(x => ruleColumns(x), html `
|
|
100
|
+
<grid-pro-column :definition=${x => x} />
|
|
101
|
+
`)}
|
|
102
|
+
</grid-pro-genesis-datasource>
|
|
103
|
+
</zero-grid-pro>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
<rule-dialog
|
|
107
|
+
${ref('ruleDialog')}
|
|
75
108
|
>
|
|
76
|
-
|
|
77
|
-
Create Rule
|
|
78
|
-
</zero-button>
|
|
79
|
-
<zero-grid-pro only-template-col-defs>
|
|
80
|
-
<grid-pro-genesis-datasource resource-name="ALL_DYNAMIC_NOTIFY_RULES">
|
|
81
|
-
${repeat(x => ruleColumns(x), html `
|
|
82
|
-
<grid-pro-column :definition=${x => x} />
|
|
83
|
-
`)}
|
|
84
|
-
</grid-pro-genesis-datasource>
|
|
85
|
-
</zero-grid-pro>
|
|
86
|
-
<rule-dialog ${ref('ruleDialog')}></rule-dialog>
|
|
109
|
+
</rule-dialog>
|
|
87
110
|
`,
|
|
88
111
|
styles: css `
|
|
89
|
-
|
|
90
|
-
height: 100%;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
zero-button.create-template {
|
|
94
|
-
margin: 0px;
|
|
95
|
-
margin-left: auto;
|
|
96
|
-
margin-bottom: 6px;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
zero-button::part(control) {
|
|
100
|
-
display: block;
|
|
101
|
-
}
|
|
112
|
+
${rulesAndTemplatesStyles}
|
|
102
113
|
`,
|
|
103
114
|
})
|
|
104
115
|
], RuleManagement);
|
package/dist/esm/components/foundation-notification-dashboard/management/rule-template-management.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
2
|
import { buttonCellRenderer } from '@genesislcap/foundation-entity-management';
|
|
3
|
-
import { css, customElement, FASTElement, html,
|
|
3
|
+
import { css, customElement, FASTElement, html, ref, repeat } from '@microsoft/fast-element';
|
|
4
4
|
import { RuleTemplateService } from '../../../services/rule-template.service';
|
|
5
5
|
import { TemplateDialogMode } from '../components/template-dialog/template-dialog.types';
|
|
6
6
|
import { deleteIcon, editIcon } from '../utils/icons';
|
|
7
|
-
import {
|
|
7
|
+
import { rulesAndTemplatesStyles } from './management.styles';
|
|
8
|
+
import { showNotificationDialog } from '@genesislcap/foundation-notifications';
|
|
8
9
|
const ruleTemplateColumns = (context) => [
|
|
9
10
|
{
|
|
10
11
|
field: 'NAME',
|
|
@@ -16,95 +17,99 @@ const ruleTemplateColumns = (context) => [
|
|
|
16
17
|
headerName: 'Description',
|
|
17
18
|
flex: 1
|
|
18
19
|
},
|
|
20
|
+
{
|
|
21
|
+
field: 'USER_NAME',
|
|
22
|
+
headerName: 'Username',
|
|
23
|
+
flex: 1
|
|
24
|
+
},
|
|
19
25
|
{
|
|
20
26
|
field: 'RULE_TABLE',
|
|
21
27
|
headerName: 'Table',
|
|
22
28
|
flex: 1
|
|
23
29
|
},
|
|
30
|
+
{
|
|
31
|
+
field: 'RULE_STATUS',
|
|
32
|
+
headerName: 'Status',
|
|
33
|
+
flex: 1
|
|
34
|
+
},
|
|
24
35
|
{
|
|
25
36
|
field: 'RULE_EXPRESSION',
|
|
26
37
|
headerName: 'Expression',
|
|
27
38
|
flex: 1
|
|
28
39
|
},
|
|
29
40
|
{
|
|
30
|
-
field: '
|
|
31
|
-
headerName: '
|
|
41
|
+
field: 'RESULT_EXPRESSION',
|
|
42
|
+
headerName: 'Result',
|
|
32
43
|
flex: 1
|
|
33
44
|
},
|
|
34
|
-
|
|
45
|
+
{
|
|
46
|
+
field: 'RULE_EXECUTION_STRATEGY',
|
|
47
|
+
headerName: 'Execution Strategy',
|
|
48
|
+
flex: 1,
|
|
49
|
+
},
|
|
50
|
+
buttonCellRenderer('Edit', (e) => context.editTemplate(e), editIcon),
|
|
35
51
|
buttonCellRenderer('Delete', (e) => context.deleteTemplate(e), deleteIcon)
|
|
36
52
|
];
|
|
37
53
|
let RuleTemplateManagement = class RuleTemplateManagement extends FASTElement {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
this.templateDialogMode = null;
|
|
41
|
-
this.ruleTemplateData = null;
|
|
54
|
+
openTemplateDialog() {
|
|
55
|
+
this.templateDialog.openDialog({ mode: TemplateDialogMode.CREATE });
|
|
42
56
|
}
|
|
43
|
-
|
|
57
|
+
editTemplate(row) {
|
|
44
58
|
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
this.ruleTemplateData = null;
|
|
48
|
-
this.templateDialogMode = TemplateDialogMode.CREATE;
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
// Edit
|
|
52
|
-
this.ruleTemplateData = yield this.ruleTemplateService.getRuleTemplateDetails(ruleTemplate.ID);
|
|
53
|
-
this.templateDialogMode = TemplateDialogMode.EDIT;
|
|
59
|
+
const ruleTemplate = yield this.ruleTemplateService.getRuleTemplateDetails(row.ID);
|
|
60
|
+
this.templateDialog.openDialog({ mode: TemplateDialogMode.EDIT, data: ruleTemplate });
|
|
54
61
|
});
|
|
55
62
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
63
|
+
deleteTemplate(row) {
|
|
64
|
+
showNotificationDialog({
|
|
65
|
+
title: 'Confirm Delete',
|
|
66
|
+
body: 'Do you really want to delete this template?',
|
|
67
|
+
dialog: {
|
|
68
|
+
dismissingAction: {
|
|
69
|
+
label: 'Dismiss',
|
|
70
|
+
action: () => null
|
|
71
|
+
},
|
|
72
|
+
confirmingActions: [{
|
|
73
|
+
label: 'Confirm',
|
|
74
|
+
action: () => this.ruleTemplateService.deleteRuleTemplate(row.ID)
|
|
75
|
+
}],
|
|
76
|
+
},
|
|
77
|
+
}, 'zero');
|
|
62
78
|
}
|
|
63
79
|
};
|
|
64
80
|
__decorate([
|
|
65
81
|
RuleTemplateService
|
|
66
82
|
], RuleTemplateManagement.prototype, "ruleTemplateService", void 0);
|
|
67
|
-
__decorate([
|
|
68
|
-
observable
|
|
69
|
-
], RuleTemplateManagement.prototype, "templateDialogMode", void 0);
|
|
70
|
-
__decorate([
|
|
71
|
-
observable
|
|
72
|
-
], RuleTemplateManagement.prototype, "ruleTemplateData", void 0);
|
|
73
83
|
RuleTemplateManagement = __decorate([
|
|
74
84
|
customElement({
|
|
75
85
|
name: 'rule-template-management',
|
|
76
86
|
template: html `
|
|
77
|
-
<
|
|
78
|
-
<
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
${repeat(x => ruleTemplateColumns(x), html `
|
|
83
|
-
<grid-pro-column :definition=${x => x} />
|
|
84
|
-
`)}
|
|
85
|
-
</grid-pro-genesis-datasource>
|
|
86
|
-
</zero-grid-pro>
|
|
87
|
-
${when(x => x.templateDialogMode != null, html `
|
|
88
|
-
<template-dialog
|
|
89
|
-
@close=${x => x.closeTemplateModal()}
|
|
90
|
-
:templateDialogMode=${x => x.templateDialogMode}
|
|
91
|
-
:ruleTemplateData=${x => x.ruleTemplateData}
|
|
87
|
+
<div class="container">
|
|
88
|
+
<div class="header">
|
|
89
|
+
<zero-button
|
|
90
|
+
class="add"
|
|
91
|
+
@click=${x => x.openTemplateDialog()}
|
|
92
92
|
>
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
<zero-icon name="plus" size="lg" variant="solid"></zero-icon>Create
|
|
94
|
+
</zero-button>
|
|
95
|
+
</div>
|
|
96
|
+
<div class="grid">
|
|
97
|
+
<zero-grid-pro only-template-col-defs>
|
|
98
|
+
<grid-pro-genesis-datasource resource-name="ALL_RULE_TEMPLATES">
|
|
99
|
+
${repeat(x => ruleTemplateColumns(x), html `
|
|
100
|
+
<grid-pro-column :definition=${x => x} />
|
|
101
|
+
`)}
|
|
102
|
+
</grid-pro-genesis-datasource>
|
|
103
|
+
</zero-grid-pro>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
<template-dialog
|
|
107
|
+
${ref('templateDialog')}
|
|
108
|
+
>
|
|
109
|
+
</template-dialog>
|
|
95
110
|
`,
|
|
96
111
|
styles: css `
|
|
97
|
-
${
|
|
98
|
-
|
|
99
|
-
zero-button.create-template {
|
|
100
|
-
margin: 0px;
|
|
101
|
-
margin-left: auto;
|
|
102
|
-
margin-bottom: 6px;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
zero-button::part(control) {
|
|
106
|
-
display: block;
|
|
107
|
-
}
|
|
112
|
+
${rulesAndTemplatesStyles}
|
|
108
113
|
`,
|
|
109
114
|
})
|
|
110
115
|
], RuleTemplateManagement);
|
package/dist/esm/components/foundation-notification-dashboard/management/screen-route-management.js
CHANGED
|
@@ -12,7 +12,8 @@ ScreenRouteManagement = __decorate([
|
|
|
12
12
|
createEvent="EVENT_SCREEN_NOTIFY_ROUTE_CREATE"
|
|
13
13
|
updateEvent="EVENT_SCREEN_NOTIFY_ROUTE_UPDATE"
|
|
14
14
|
deleteEvent="EVENT_SCREEN_NOTIFY_ROUTE_DELETE"
|
|
15
|
-
|
|
15
|
+
>
|
|
16
|
+
</entity-management>
|
|
16
17
|
`,
|
|
17
18
|
styles: managementGridStyles,
|
|
18
19
|
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
|
-
import { FASTElement, customElement, observable } from '@microsoft/fast-element';
|
|
3
2
|
import * as Components from '../index';
|
|
3
|
+
import { FASTElement, customElement, observable } from '@microsoft/fast-element';
|
|
4
4
|
import { FoundationNotificationDashboardStyles as styles } from './notification-dashboard.styles';
|
|
5
5
|
import { FoundationNotificationDashboardTemplate as template } from './notification-dashboard.template';
|
|
6
6
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export const SEVERITY_INFORMATION = 'INFORMATION';
|
|
2
|
-
export const SEVERITY_WARNING = 'WARNING';
|
|
3
2
|
export const SEVERITY_CRITICAL = 'CRITICAL';
|
|
4
3
|
export const SEVERITY_SERIOUS = 'SERIOUS';
|
|
4
|
+
export const SEVERITY_WARNING = 'WARNING';
|
|
5
5
|
export const ALL_SEVERITIES = [
|
|
6
6
|
SEVERITY_INFORMATION,
|
|
7
|
-
SEVERITY_WARNING,
|
|
8
7
|
SEVERITY_CRITICAL,
|
|
9
|
-
SEVERITY_SERIOUS
|
|
8
|
+
SEVERITY_SERIOUS,
|
|
9
|
+
SEVERITY_WARNING
|
|
10
10
|
];
|
|
@@ -1,30 +1,34 @@
|
|
|
1
|
-
import { __awaiter, __decorate
|
|
1
|
+
import { __awaiter, __decorate } from "tslib";
|
|
2
2
|
import { DI } from '@microsoft/fast-foundation';
|
|
3
3
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
import orderBy from 'lodash/orderBy';
|
|
5
|
+
const Constant = {
|
|
6
|
+
CREATED_AT: 'CREATED_AT',
|
|
7
|
+
DESC: 'desc',
|
|
8
|
+
};
|
|
9
|
+
class AlertServiceImpl {
|
|
8
10
|
getAlerts() {
|
|
9
11
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10
12
|
let alerts = [];
|
|
11
13
|
yield this.connect.request('REQ_NOTIFY_ALERT', { REQUEST: true }).then(data => {
|
|
12
|
-
alerts = data.REPLY
|
|
14
|
+
alerts = data.REPLY
|
|
15
|
+
? orderBy(data.REPLY, Constant.CREATED_AT, Constant.DESC)
|
|
16
|
+
: [];
|
|
13
17
|
});
|
|
14
18
|
return alerts;
|
|
15
19
|
});
|
|
16
20
|
}
|
|
17
21
|
dismissNotifyAlert(alertId) {
|
|
18
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
-
this.connect.commitEvent('EVENT_DISMISS_NOTIFY_ALERT', {
|
|
23
|
+
return yield this.connect.commitEvent('EVENT_DISMISS_NOTIFY_ALERT', {
|
|
20
24
|
DETAILS: {
|
|
21
25
|
ALERT_ID: alertId,
|
|
22
26
|
},
|
|
23
27
|
});
|
|
24
28
|
});
|
|
25
29
|
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
], AlertServiceImpl);
|
|
30
|
+
}
|
|
31
|
+
__decorate([
|
|
32
|
+
Connect
|
|
33
|
+
], AlertServiceImpl.prototype, "connect", void 0);
|
|
30
34
|
export const AlertService = DI.createInterface(x => x.singleton(AlertServiceImpl));
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
|
-
import { Connect } from '@genesislcap/foundation-comms';
|
|
3
2
|
import { DI } from '@microsoft/fast-foundation';
|
|
3
|
+
import { Connect } from '@genesislcap/foundation-comms';
|
|
4
4
|
class NotifyServiceImpl {
|
|
5
5
|
getNotifyRouteTopics() {
|
|
6
6
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return response.REPLY[0].TOPICS;
|
|
7
|
+
const data = yield this.connect.request('REQ_NOTIFY_ROUTE_TOPICS', { REQUEST: { NOTIFY_ROUTE_ID: '' } });
|
|
8
|
+
return data.REPLY
|
|
9
|
+
? data.REPLY[0].TOPICS
|
|
10
|
+
: [];
|
|
12
11
|
});
|
|
13
12
|
}
|
|
14
13
|
}
|
|
@@ -1,9 +1,34 @@
|
|
|
1
|
-
import { __awaiter, __decorate
|
|
2
|
-
import { Connect } from '@genesislcap/foundation-comms';
|
|
1
|
+
import { __awaiter, __decorate } from "tslib";
|
|
3
2
|
import { DI } from '@microsoft/fast-foundation';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import { Connect } from '@genesislcap/foundation-comms';
|
|
4
|
+
class RuleTemplateServiceImpl {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.compareByFieldName = (a, b) => a.FIELD_NAME.localeCompare(b.FIELD_NAME);
|
|
7
|
+
}
|
|
8
|
+
getResources() {
|
|
9
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10
|
+
let resources;
|
|
11
|
+
yield this.connect.request('SYSTEM_TABLES').then(data => {
|
|
12
|
+
resources = data.REPLY.map(table => table.TABLE_NAME).sort();
|
|
13
|
+
});
|
|
14
|
+
return resources;
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
getFields(resource) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
if (!resource) {
|
|
20
|
+
return [];
|
|
21
|
+
}
|
|
22
|
+
let fields;
|
|
23
|
+
yield this.connect.request('SYSTEM_TABLE_FIELDS', {
|
|
24
|
+
REQUEST: {
|
|
25
|
+
TABLE_NAME: resource
|
|
26
|
+
}
|
|
27
|
+
}).then(data => {
|
|
28
|
+
fields = data.REPLY.sort(this.compareByFieldName);
|
|
29
|
+
});
|
|
30
|
+
return fields;
|
|
31
|
+
});
|
|
7
32
|
}
|
|
8
33
|
createRuleTemplate(ruleTemplate) {
|
|
9
34
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -57,8 +82,8 @@ let RuleTemplateServiceImpl = class RuleTemplateServiceImpl {
|
|
|
57
82
|
VALIDATE: false,
|
|
58
83
|
});
|
|
59
84
|
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
], RuleTemplateServiceImpl);
|
|
85
|
+
}
|
|
86
|
+
__decorate([
|
|
87
|
+
Connect
|
|
88
|
+
], RuleTemplateServiceImpl.prototype, "connect", void 0);
|
|
64
89
|
export const RuleTemplateService = DI.createInterface(x => x.singleton(RuleTemplateServiceImpl));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/pbc-notify-ui",
|
|
3
3
|
"description": "Genesis PBC Notify UI",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.3",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/foundation-notify.d.ts",
|
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
"@genesislcap/foundation-entity-management": "~14",
|
|
65
65
|
"@genesislcap/foundation-layout": "~14",
|
|
66
66
|
"@genesislcap/foundation-logger": "~14",
|
|
67
|
+
"@genesislcap/foundation-notifications": "~14",
|
|
67
68
|
"@genesislcap/foundation-ui": "~14",
|
|
68
69
|
"@genesislcap/foundation-zero": "~14",
|
|
69
70
|
"@genesislcap/foundation-comms": "~14",
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* (undocumented)
|
|
3
|
-
* @public
|
|
4
|
-
*/
|
|
5
|
-
export declare const ALERT_TYPE_INFORMATION: "Information";
|
|
6
|
-
/**
|
|
7
|
-
* (undocumented)
|
|
8
|
-
* @public
|
|
9
|
-
*/
|
|
10
|
-
export declare const ALERT_TYPE_WARNING: "Warning";
|
|
11
|
-
/**
|
|
12
|
-
* (undocumented)
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
15
|
-
export declare const ALERT_TYPE_SERIOUS: "Serious";
|
|
16
|
-
/**
|
|
17
|
-
* (undocumented)
|
|
18
|
-
* @public
|
|
19
|
-
*/
|
|
20
|
-
export declare const ALERT_TYPE_CRITICAL: "Critical";
|
|
21
|
-
/**
|
|
22
|
-
* (undocumented)
|
|
23
|
-
* @public
|
|
24
|
-
*/
|
|
25
|
-
export declare const ALERT_ALL_TYPES: ("Information" | "Warning" | "Serious" | "Critical")[];
|
|
26
|
-
/**
|
|
27
|
-
* (undocumented)
|
|
28
|
-
* @public
|
|
29
|
-
*/
|
|
30
|
-
export declare const SEVERITY_TYPE_DEFAULT = "default";
|
|
31
|
-
/**
|
|
32
|
-
* (undocumented)
|
|
33
|
-
* @public
|
|
34
|
-
*/
|
|
35
|
-
export declare const SEVERITY_TYPE_WARNING = "warning";
|
|
36
|
-
/**
|
|
37
|
-
* (undocumented)
|
|
38
|
-
* @public
|
|
39
|
-
*/
|
|
40
|
-
export declare const SEVERITY_TYPE_SERIOUS = "serious";
|
|
41
|
-
/**
|
|
42
|
-
* (undocumented)
|
|
43
|
-
* @public
|
|
44
|
-
*/
|
|
45
|
-
export declare const SEVERITY_TYPE_CRITICAL = "critical";
|
|
46
|
-
/**
|
|
47
|
-
* (undocumented)
|
|
48
|
-
* @public
|
|
49
|
-
*/
|
|
50
|
-
export declare const SEVERITIES_ALL_TYPES: readonly ["default", "warning", "serious", "critical"];
|
|
51
|
-
/**
|
|
52
|
-
* (undocumented)
|
|
53
|
-
* @public
|
|
54
|
-
*/
|
|
55
|
-
export declare const MAP_ALERT_TYPE_TO_SEVERITY_TYPE: Map<"Information" | "Warning" | "Serious" | "Critical", "default" | "warning" | "serious" | "critical">;
|
|
56
|
-
/**
|
|
57
|
-
* (undocumented)
|
|
58
|
-
* @public
|
|
59
|
-
*/
|
|
60
|
-
export declare const FREQUENCY_ALL_VALUE: {
|
|
61
|
-
readonly ONCE: "Once";
|
|
62
|
-
readonly EVERY_TIME: "Every Time";
|
|
63
|
-
};
|
|
64
|
-
//# sourceMappingURL=alerts.config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alerts.config.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-alerts/alerts.config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,sBAAsB,eAAyB,CAAC;AAC7D;;;GAGG;AACH,eAAO,MAAM,kBAAkB,WAAqB,CAAC;AACrD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,WAAqB,CAAC;AACrD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,YAAsB,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,eAAe,wDAK3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,YAAY,CAAC;AAC/C;;;GAGG;AACH,eAAO,MAAM,qBAAqB,YAAY,CAAC;AAC/C;;;GAGG;AACH,eAAO,MAAM,qBAAqB,YAAY,CAAC;AAC/C;;;GAGG;AACH,eAAO,MAAM,sBAAsB,aAAa,CAAC;AAEjD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,wDAKvB,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,+BAA+B,yGAKjC,CAAC;AAEZ;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;CAGtB,CAAC"}
|