@genesislcap/pbc-notify-ui 15.14.0 → 15.14.1
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/custom-elements.json +1332 -1348
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.d.ts +2 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.d.ts +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.d.ts.map +1 -1
- package/dist/dts/react.d.ts +28 -28
- package/dist/dts/services/system.service.d.ts.map +1 -1
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.js +4 -4
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.js +27 -13
- package/dist/esm/services/system.service.js +37 -12
- package/dist/react.cjs +30 -30
- package/dist/react.mjs +27 -27
- package/package.json +23 -23
- package/src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts +5 -4
- package/src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.ts +27 -14
- package/src/services/system.service.ts +39 -12
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { GenesisElement } from '@genesislcap/web-core';
|
|
2
2
|
import { ConditionBuilderEntity } from '../../../../../../notify.types';
|
|
3
|
+
import { Field } from '../../../../../../services/system.service';
|
|
3
4
|
import { ParameterBuilderEntity } from '../template-dialog.types';
|
|
4
5
|
/**
|
|
5
6
|
* Condition builder for template notification rules.
|
|
@@ -11,7 +12,7 @@ import { ParameterBuilderEntity } from '../template-dialog.types';
|
|
|
11
12
|
export declare class TemplateConditionBuilder extends GenesisElement {
|
|
12
13
|
condition: ConditionBuilderEntity;
|
|
13
14
|
parameters: Array<ParameterBuilderEntity>;
|
|
14
|
-
fields:
|
|
15
|
+
fields: Field[];
|
|
15
16
|
isFirst: boolean;
|
|
16
17
|
joinOperator: string;
|
|
17
18
|
leftValue: any;
|
|
@@ -1 +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":"AACA,OAAO,
|
|
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":"AACA,OAAO,EAAiB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAClF,OAAO,EACL,sBAAsB,EAKvB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAGlE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAGlE;;;;;;GAMG;AACH,qBAKa,wBAAyB,SAAQ,cAAc;IAC9C,SAAS,EAAE,sBAAsB,CAAC;IAClC,UAAU,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAM;IAC/C,MAAM,EAAE,KAAK,EAAE,CAAM;IAIrB,OAAO,EAAE,OAAO,CAAS;IACzB,YAAY,EAAE,MAAM,CAAoB;IAExC,SAAS,EAAE,GAAG,CAAQ;IACtB,cAAc,EAAE,KAAK,CAAC,GAAG,CAAC,CAAM;IAEhC,eAAe,EAAE,MAAM,CAAQ;IAC/B,aAAa,EAAE,MAAM,CAAuB;IAC5C,cAAc,EAAE,MAAM,CAAQ;IAC9B,gBAAgB,EAAE,MAAM,CAAQ;IAChC,eAAe,EAAE,KAAK,CAAC,GAAG,CAAC,CAAM;IACjC,qBAAqB,EAAE,MAAM,EAAE,CAAM;IAEjD,eAAe;IAIT,gBAAgB;IAuBtB,mBAAmB;IASnB,iBAAiB;IAiBjB,OAAO,CAAC,oBAAoB;IAY5B,OAAO,CAAC,oBAAoB;IAoB5B,OAAO,CAAC,kBAAkB;IAa1B,aAAa;IASb,sBAAsB;IAetB,OAAO,CAAC,eAAe;IAiBvB,gBAAgB;IAmBhB,OAAO,CAAC,gBAAgB;IAuBxB,oBAAoB;IA6BpB,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,qBAAqB;IAI7B,qBAAqB;IASrB,uBAAuB;IASvB,4BAA4B;IAgB5B,aAAa,IAAI,MAAM,EAAE;CAI1B"}
|
|
@@ -68,6 +68,7 @@ export declare class TemplateDialog extends TemplateDialog_base {
|
|
|
68
68
|
resources: Array<string>;
|
|
69
69
|
fields: Array<Field>;
|
|
70
70
|
topics: Array<string>;
|
|
71
|
+
private hydrating;
|
|
71
72
|
private requiredFields;
|
|
72
73
|
get isAlertSoundEditMode(): boolean;
|
|
73
74
|
get alertSoundEntityId(): string | null;
|
|
@@ -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":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAiB,cAAc,EAAwB,MAAM,uBAAuB,CAAC;AAC5F,OAAO,EAEL,aAAa,EAGb,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;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAW3E,OAAO,EAAE,sBAAsB,EAAY,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE/F;;;;;GAKG;AACH,qBAKa,cAAe,SAAQ,mBAAyC;IAC1D,eAAe,EAAE,eAAe,CAAC;IACnC,aAAa,EAAE,aAAa,CAAC;IAC7B,aAAa,EAAE,aAAa,CAAC;IAC/B,WAAW,EAAE,WAAW,CAAC;IAEtC,MAAM,EAAE,KAAK,CAAC;IACF,kBAAkB,EAAE,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CACrF;IAEP,OAAO,CAAC,UAAU,CAAgB;IACtB,IAAI,EAAE,MAAM,CAAQ;IACpB,WAAW,EAAE,MAAM,CAAQ;IAC3B,MAAM,MAAQ;IACd,OAAO,MAAQ;IACf,QAAQ,EAAE,MAAM,CAAM;IACtB,KAAK,EAAE,MAAM,CAAM;IACnB,QAAQ,EAAE,MAAM,CAAM;IACtB,UAAU,EAAE,UAAU,EAAE,CAAqB;IAE7C,UAAU,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAM;IAC/C,UAAU,EAAE,KAAK,CAAC,aAAa,CAAC,CAAM;IAItC,oBAAoB,EAAE,MAAM,CAAM;IAElC,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAM;IAC9B,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAM;IAC1B,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAM;
|
|
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,KAAK,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAiB,cAAc,EAAwB,MAAM,uBAAuB,CAAC;AAC5F,OAAO,EAEL,aAAa,EAGb,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;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAW3E,OAAO,EAAE,sBAAsB,EAAY,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE/F;;;;;GAKG;AACH,qBAKa,cAAe,SAAQ,mBAAyC;IAC1D,eAAe,EAAE,eAAe,CAAC;IACnC,aAAa,EAAE,aAAa,CAAC;IAC7B,aAAa,EAAE,aAAa,CAAC;IAC/B,WAAW,EAAE,WAAW,CAAC;IAEtC,MAAM,EAAE,KAAK,CAAC;IACF,kBAAkB,EAAE,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CACrF;IAEP,OAAO,CAAC,UAAU,CAAgB;IACtB,IAAI,EAAE,MAAM,CAAQ;IACpB,WAAW,EAAE,MAAM,CAAQ;IAC3B,MAAM,MAAQ;IACd,OAAO,MAAQ;IACf,QAAQ,EAAE,MAAM,CAAM;IACtB,KAAK,EAAE,MAAM,CAAM;IACnB,QAAQ,EAAE,MAAM,CAAM;IACtB,UAAU,EAAE,UAAU,EAAE,CAAqB;IAE7C,UAAU,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAM;IAC/C,UAAU,EAAE,KAAK,CAAC,aAAa,CAAC,CAAM;IAItC,oBAAoB,EAAE,MAAM,CAAM;IAElC,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAM;IAC9B,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAM;IAC1B,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAM;IACvC,OAAO,CAAC,SAAS,CAAS;IAE1B,OAAO,CAAC,cAAc,CAAkE;IAExF,IAAI,oBAAoB,IAAI,OAAO,CAElC;IAED,IAAI,kBAAkB,IAAI,MAAM,GAAG,IAAI,CAEtC;IAED,IAAI,uBAAuB,IAAI,QAAQ,GAAG,KAAK,CAI9C;IAEY,UAAU,CAAC,MAAM,EAAE,GAAG;IA4BnC,KAAK;YAyBS,cAAc;YAUd,YAAY;IAyB1B,OAAO,CAAC,wBAAwB;IAQhC,OAAO,CAAC,oBAAoB;IAc5B,IAAI,mBAAmB,IAAI,MAAM,CAEhC;IAED,MAAM;IAwBN,OAAO,CAAC,oBAAoB;IAwC5B,gBAAgB,CAAC,QAAQ,KAAA;IAUnB,eAAe;IAWrB,YAAY;IAKZ,QAAQ;IAKR,aAAa,CAAC,eAAe,EAAE,aAAa;IAI5C,eAAe,CAAC,gBAAgB,EAAE,aAAa;IAW/C,YAAY;IAIZ,aAAa,CAAC,eAAe,EAAE,sBAAsB;IAIrD,eAAe,CAAC,gBAAgB,EAAE,sBAAsB;IAYxD,IACW,sBAAsB,IAAI,OAAO,CAE3C;CACF"}
|
package/dist/dts/react.d.ts
CHANGED
|
@@ -79,6 +79,15 @@ export declare const FoundationInbox: React.ForwardRefExoticComponent<
|
|
|
79
79
|
>;
|
|
80
80
|
export type FoundationInboxRef = FoundationInboxWC;
|
|
81
81
|
|
|
82
|
+
export declare const FoundationNotificationDashboard: React.ForwardRefExoticComponent<
|
|
83
|
+
React.PropsWithChildren<
|
|
84
|
+
Omit<PublicOf<FoundationNotificationDashboardWC>, 'children' | 'style'> &
|
|
85
|
+
HTMLWCProps & {
|
|
86
|
+
}
|
|
87
|
+
> & React.RefAttributes<FoundationNotificationDashboardWC>
|
|
88
|
+
>;
|
|
89
|
+
export type FoundationNotificationDashboardRef = FoundationNotificationDashboardWC;
|
|
90
|
+
|
|
82
91
|
export declare const FoundationSoundsPanel: React.ForwardRefExoticComponent<
|
|
83
92
|
React.PropsWithChildren<
|
|
84
93
|
Omit<PublicOf<FoundationSoundsPanelWC>, 'children' | 'style'> &
|
|
@@ -97,24 +106,6 @@ export declare const FoundationSounds: React.ForwardRefExoticComponent<
|
|
|
97
106
|
>;
|
|
98
107
|
export type FoundationSoundsRef = FoundationSoundsWC;
|
|
99
108
|
|
|
100
|
-
export declare const FoundationNotificationDashboard: React.ForwardRefExoticComponent<
|
|
101
|
-
React.PropsWithChildren<
|
|
102
|
-
Omit<PublicOf<FoundationNotificationDashboardWC>, 'children' | 'style'> &
|
|
103
|
-
HTMLWCProps & {
|
|
104
|
-
}
|
|
105
|
-
> & React.RefAttributes<FoundationNotificationDashboardWC>
|
|
106
|
-
>;
|
|
107
|
-
export type FoundationNotificationDashboardRef = FoundationNotificationDashboardWC;
|
|
108
|
-
|
|
109
|
-
export declare const FoundationInboxCounter: React.ForwardRefExoticComponent<
|
|
110
|
-
React.PropsWithChildren<
|
|
111
|
-
Omit<PublicOf<FoundationInboxCounterWC>, 'children' | 'style'> &
|
|
112
|
-
HTMLWCProps & {
|
|
113
|
-
}
|
|
114
|
-
> & React.RefAttributes<FoundationInboxCounterWC>
|
|
115
|
-
>;
|
|
116
|
-
export type FoundationInboxCounterRef = FoundationInboxCounterWC;
|
|
117
|
-
|
|
118
109
|
export declare const FoundationInboxFlyout: React.ForwardRefExoticComponent<
|
|
119
110
|
React.PropsWithChildren<
|
|
120
111
|
Omit<PublicOf<FoundationInboxFlyoutWC>, 'children' | 'style'> &
|
|
@@ -135,6 +126,15 @@ export declare const InboxSubscription: React.ForwardRefExoticComponent<
|
|
|
135
126
|
>;
|
|
136
127
|
export type InboxSubscriptionRef = InboxSubscriptionWC;
|
|
137
128
|
|
|
129
|
+
export declare const FoundationInboxCounter: React.ForwardRefExoticComponent<
|
|
130
|
+
React.PropsWithChildren<
|
|
131
|
+
Omit<PublicOf<FoundationInboxCounterWC>, 'children' | 'style'> &
|
|
132
|
+
HTMLWCProps & {
|
|
133
|
+
}
|
|
134
|
+
> & React.RefAttributes<FoundationInboxCounterWC>
|
|
135
|
+
>;
|
|
136
|
+
export type FoundationInboxCounterRef = FoundationInboxCounterWC;
|
|
137
|
+
|
|
138
138
|
export declare const NotifyAuditManagement: React.ForwardRefExoticComponent<
|
|
139
139
|
React.PropsWithChildren<
|
|
140
140
|
Omit<PublicOf<NotifyAuditManagementWC>, 'children' | 'style'> &
|
|
@@ -181,6 +181,16 @@ export declare const RuleParameter: React.ForwardRefExoticComponent<
|
|
|
181
181
|
>;
|
|
182
182
|
export type RuleParameterRef = RuleParameterWC;
|
|
183
183
|
|
|
184
|
+
export declare const RuleDialog: React.ForwardRefExoticComponent<
|
|
185
|
+
React.PropsWithChildren<
|
|
186
|
+
Omit<PublicOf<RuleDialogWC>, 'children' | 'style'> &
|
|
187
|
+
HTMLWCProps & {
|
|
188
|
+
onClose?: (event: CustomEvent<unknown>) => void;
|
|
189
|
+
}
|
|
190
|
+
> & React.RefAttributes<RuleDialogWC>
|
|
191
|
+
>;
|
|
192
|
+
export type RuleDialogRef = RuleDialogWC;
|
|
193
|
+
|
|
184
194
|
export declare const EmailDistributionRouteManagement: React.ForwardRefExoticComponent<
|
|
185
195
|
React.PropsWithChildren<
|
|
186
196
|
Omit<PublicOf<EmailDistributionRouteManagementWC>, 'children' | 'style'> &
|
|
@@ -235,16 +245,6 @@ export declare const SlackRouteManagement: React.ForwardRefExoticComponent<
|
|
|
235
245
|
>;
|
|
236
246
|
export type SlackRouteManagementRef = SlackRouteManagementWC;
|
|
237
247
|
|
|
238
|
-
export declare const RuleDialog: React.ForwardRefExoticComponent<
|
|
239
|
-
React.PropsWithChildren<
|
|
240
|
-
Omit<PublicOf<RuleDialogWC>, 'children' | 'style'> &
|
|
241
|
-
HTMLWCProps & {
|
|
242
|
-
onClose?: (event: CustomEvent<unknown>) => void;
|
|
243
|
-
}
|
|
244
|
-
> & React.RefAttributes<RuleDialogWC>
|
|
245
|
-
>;
|
|
246
|
-
export type RuleDialogRef = RuleDialogWC;
|
|
247
|
-
|
|
248
248
|
export declare const TemplateDialog: React.ForwardRefExoticComponent<
|
|
249
249
|
React.PropsWithChildren<
|
|
250
250
|
Omit<PublicOf<TemplateDialogWC>, 'children' | 'style'> &
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system.service.d.ts","sourceRoot":"","sources":["../../../src/services/system.service.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,KAAK,GAAG;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CAChC,CAAC;AAEF,MAAM,WAAW,aAAa;IAC5B,YAAY,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAClC,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;CAC/C;
|
|
1
|
+
{"version":3,"file":"system.service.d.ts","sourceRoot":"","sources":["../../../src/services/system.service.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,KAAK,GAAG;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CAChC,CAAC;AAEF,MAAM,WAAW,aAAa;IAC5B,YAAY,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAClC,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;CAC/C;AA2DD,eAAO,MAAM,aAAa,qEAEzB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
2
|
import { FieldTypeEnum } from '@genesislcap/foundation-comms';
|
|
3
|
-
import {
|
|
3
|
+
import { customElement, GenesisElement, observable } from '@genesislcap/web-core';
|
|
4
4
|
import { JoinOperator, LogicalOperator, RightCriteria, nullAndBlankLogicalOperatorValues, } from '../../../../../../notify.types';
|
|
5
5
|
import { logger } from '../../../../../../utils';
|
|
6
6
|
import { ConditionBuilderStyles } from '../../../../styles/condition-builder.styles';
|
|
@@ -261,13 +261,13 @@ let TemplateConditionBuilder = class TemplateConditionBuilder extends GenesisEle
|
|
|
261
261
|
}
|
|
262
262
|
};
|
|
263
263
|
__decorate([
|
|
264
|
-
|
|
264
|
+
observable
|
|
265
265
|
], TemplateConditionBuilder.prototype, "condition", void 0);
|
|
266
266
|
__decorate([
|
|
267
|
-
|
|
267
|
+
observable
|
|
268
268
|
], TemplateConditionBuilder.prototype, "parameters", void 0);
|
|
269
269
|
__decorate([
|
|
270
|
-
|
|
270
|
+
observable
|
|
271
271
|
], TemplateConditionBuilder.prototype, "fields", void 0);
|
|
272
272
|
__decorate([
|
|
273
273
|
observable
|
|
@@ -39,6 +39,7 @@ let TemplateDialog = class TemplateDialog extends AlertSoundAttachmentMixin(Gene
|
|
|
39
39
|
this.resources = [];
|
|
40
40
|
this.fields = [];
|
|
41
41
|
this.topics = [];
|
|
42
|
+
this.hydrating = false;
|
|
42
43
|
this.requiredFields = () => [this.name, this.description, this.header, this.message];
|
|
43
44
|
}
|
|
44
45
|
get isAlertSoundEditMode() {
|
|
@@ -54,21 +55,31 @@ let TemplateDialog = class TemplateDialog extends AlertSoundAttachmentMixin(Gene
|
|
|
54
55
|
}
|
|
55
56
|
openDialog(params) {
|
|
56
57
|
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
-
this.topics = yield this.notifyService.getNotifyRouteTopics();
|
|
58
|
-
this.resources = yield this.systemService.getResources(); // TODO: Tables + Views
|
|
59
58
|
this.templateDialogMode = params.mode;
|
|
60
|
-
|
|
61
|
-
case TemplateDialogMode.CREATE:
|
|
62
|
-
yield this.createTemplate();
|
|
63
|
-
break;
|
|
64
|
-
case TemplateDialogMode.EDIT:
|
|
65
|
-
yield this.editTemplate(params.data);
|
|
66
|
-
break;
|
|
67
|
-
default:
|
|
68
|
-
logger.error('Error on TemplateDialogMode');
|
|
69
|
-
break;
|
|
70
|
-
}
|
|
59
|
+
this.hydrating = true;
|
|
71
60
|
this.dialog.show();
|
|
61
|
+
try {
|
|
62
|
+
this.topics = yield this.notifyService.getNotifyRouteTopics();
|
|
63
|
+
this.resources = yield this.systemService.getResources(); // TODO: Tables + Views
|
|
64
|
+
switch (params.mode) {
|
|
65
|
+
case TemplateDialogMode.CREATE:
|
|
66
|
+
yield this.createTemplate();
|
|
67
|
+
break;
|
|
68
|
+
case TemplateDialogMode.EDIT:
|
|
69
|
+
yield this.editTemplate(params.data);
|
|
70
|
+
break;
|
|
71
|
+
default:
|
|
72
|
+
logger.error('Error on TemplateDialogMode');
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
catch (error) {
|
|
77
|
+
logger.error('Failed to initialize template dialog', error);
|
|
78
|
+
this.close();
|
|
79
|
+
}
|
|
80
|
+
finally {
|
|
81
|
+
this.hydrating = false;
|
|
82
|
+
}
|
|
72
83
|
});
|
|
73
84
|
}
|
|
74
85
|
close() {
|
|
@@ -210,6 +221,9 @@ let TemplateDialog = class TemplateDialog extends AlertSoundAttachmentMixin(Gene
|
|
|
210
221
|
}
|
|
211
222
|
resourceChanged() {
|
|
212
223
|
return __awaiter(this, void 0, void 0, function* () {
|
|
224
|
+
if (this.hydrating) {
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
213
227
|
this.conditions = [DynamicRuleUtils.createEmptyCondition()];
|
|
214
228
|
this.fields = yield this.systemService.getFields(this.resource);
|
|
215
229
|
this.refreshExpressionPreview();
|
|
@@ -1,6 +1,25 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
2
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { DI } from '@genesislcap/web-core';
|
|
4
|
+
function schemaDefinitionToField(name, def) {
|
|
5
|
+
var _a, _b;
|
|
6
|
+
const raw = def && typeof def === 'object' ? def : {};
|
|
7
|
+
const oneOf = Array.isArray(raw.oneOf) ? raw.oneOf : [];
|
|
8
|
+
const concrete = (_a = oneOf.find((option) => {
|
|
9
|
+
if (!option || typeof option !== 'object') {
|
|
10
|
+
return false;
|
|
11
|
+
}
|
|
12
|
+
return option.type !== 'null';
|
|
13
|
+
})) !== null && _a !== void 0 ? _a : raw;
|
|
14
|
+
const genesisType = typeof concrete.genesisType === 'string' ? concrete.genesisType : undefined;
|
|
15
|
+
const jsonType = typeof concrete.type === 'string' ? concrete.type : undefined;
|
|
16
|
+
const enumValues = Array.isArray(concrete.enum) ? concrete.enum.map(String) : null;
|
|
17
|
+
return {
|
|
18
|
+
FIELD_NAME: name,
|
|
19
|
+
FIELD_TYPE: ((_b = genesisType !== null && genesisType !== void 0 ? genesisType : jsonType) !== null && _b !== void 0 ? _b : 'STRING').toUpperCase(),
|
|
20
|
+
FIELD_VALUES: enumValues,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
4
23
|
class SystemServiceImpl {
|
|
5
24
|
getResources() {
|
|
6
25
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -12,21 +31,27 @@ class SystemServiceImpl {
|
|
|
12
31
|
}
|
|
13
32
|
getFields(resource) {
|
|
14
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
var _a, _b;
|
|
15
35
|
if (!resource) {
|
|
16
36
|
return [];
|
|
17
37
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
38
|
+
try {
|
|
39
|
+
const schema = yield this.connect.getJSONSchema(resource);
|
|
40
|
+
const reply = (_b = (_a = schema === null || schema === void 0 ? void 0 : schema.OUTBOUND) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.REPLY;
|
|
41
|
+
if (!reply || typeof reply === 'boolean') {
|
|
42
|
+
return [];
|
|
43
|
+
}
|
|
44
|
+
const items = Array.isArray(reply.items) ? reply.items[0] : reply.items;
|
|
45
|
+
if (!items || typeof items === 'boolean' || !items.properties) {
|
|
46
|
+
return [];
|
|
47
|
+
}
|
|
48
|
+
return Object.entries(items.properties)
|
|
49
|
+
.map(([name, def]) => schemaDefinitionToField(name, def))
|
|
50
|
+
.sort((a, b) => a.FIELD_NAME.localeCompare(b.FIELD_NAME));
|
|
51
|
+
}
|
|
52
|
+
catch (_c) {
|
|
53
|
+
return [];
|
|
54
|
+
}
|
|
30
55
|
});
|
|
31
56
|
}
|
|
32
57
|
}
|
package/dist/react.cjs
CHANGED
|
@@ -52,6 +52,11 @@ const FoundationInbox = React.forwardRef(function FoundationInbox(props, ref) {
|
|
|
52
52
|
return React.createElement(customElements.getName(FoundationInboxWC) ?? 'foundation-inbox', { ...rest, ref }, children);
|
|
53
53
|
});
|
|
54
54
|
|
|
55
|
+
const FoundationNotificationDashboard = React.forwardRef(function FoundationNotificationDashboard(props, ref) {
|
|
56
|
+
const { children, ...rest } = props;
|
|
57
|
+
return React.createElement(customElements.getName(FoundationNotificationDashboardWC) ?? 'foundation-notification-dashboard', { ...rest, ref }, children);
|
|
58
|
+
});
|
|
59
|
+
|
|
55
60
|
const FoundationSoundsPanel = React.forwardRef(function FoundationSoundsPanel(props, ref) {
|
|
56
61
|
const { children, ...rest } = props;
|
|
57
62
|
return React.createElement(customElements.getName(FoundationSoundsPanelWC) ?? 'foundation-sounds-panel', { ...rest, ref }, children);
|
|
@@ -62,16 +67,6 @@ const FoundationSounds = React.forwardRef(function FoundationSounds(props, ref)
|
|
|
62
67
|
return React.createElement(customElements.getName(FoundationSoundsWC) ?? 'foundation-sounds', { ...rest, ref }, children);
|
|
63
68
|
});
|
|
64
69
|
|
|
65
|
-
const FoundationNotificationDashboard = React.forwardRef(function FoundationNotificationDashboard(props, ref) {
|
|
66
|
-
const { children, ...rest } = props;
|
|
67
|
-
return React.createElement(customElements.getName(FoundationNotificationDashboardWC) ?? 'foundation-notification-dashboard', { ...rest, ref }, children);
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
const FoundationInboxCounter = React.forwardRef(function FoundationInboxCounter(props, ref) {
|
|
71
|
-
const { children, ...rest } = props;
|
|
72
|
-
return React.createElement(customElements.getName(FoundationInboxCounterWC) ?? 'foundation-inbox-counter', { ...rest, ref }, children);
|
|
73
|
-
});
|
|
74
|
-
|
|
75
70
|
const FoundationInboxFlyout = React.forwardRef(function FoundationInboxFlyout(props, ref) {
|
|
76
71
|
const { children, ...rest } = props;
|
|
77
72
|
return React.createElement(customElements.getName(FoundationInboxFlyoutWC) ?? 'foundation-inbox-flyout', { ...rest, ref }, children);
|
|
@@ -99,6 +94,11 @@ const InboxSubscription = React.forwardRef(function InboxSubscription(props, ref
|
|
|
99
94
|
return React.createElement(customElements.getName(InboxSubscriptionWC) ?? 'inbox-subscription', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
100
95
|
});
|
|
101
96
|
|
|
97
|
+
const FoundationInboxCounter = React.forwardRef(function FoundationInboxCounter(props, ref) {
|
|
98
|
+
const { children, ...rest } = props;
|
|
99
|
+
return React.createElement(customElements.getName(FoundationInboxCounterWC) ?? 'foundation-inbox-counter', { ...rest, ref }, children);
|
|
100
|
+
});
|
|
101
|
+
|
|
102
102
|
const NotifyAuditManagement = React.forwardRef(function NotifyAuditManagement(props, ref) {
|
|
103
103
|
const { children, ...rest } = props;
|
|
104
104
|
return React.createElement(customElements.getName(NotifyAuditManagementWC) ?? 'notify-audit-management', { ...rest, ref }, children);
|
|
@@ -136,6 +136,23 @@ const RuleParameter = React.forwardRef(function RuleParameter(props, ref) {
|
|
|
136
136
|
return React.createElement(customElements.getName(RuleParameterWC) ?? 'rule-parameter', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
137
137
|
});
|
|
138
138
|
|
|
139
|
+
const RuleDialog = React.forwardRef(function RuleDialog(props, ref) {
|
|
140
|
+
const { onClose, children, ...rest } = props;
|
|
141
|
+
const _innerRef = React.useRef(null);
|
|
142
|
+
const _onCloseRef = React.useRef(onClose);
|
|
143
|
+
_onCloseRef.current = onClose;
|
|
144
|
+
React.useLayoutEffect(() => {
|
|
145
|
+
const el = _innerRef.current;
|
|
146
|
+
if (!el) return;
|
|
147
|
+
const _onCloseFn = (e) => _onCloseRef.current?.(e);
|
|
148
|
+
el.addEventListener('close', _onCloseFn);
|
|
149
|
+
return () => {
|
|
150
|
+
el.removeEventListener('close', _onCloseFn);
|
|
151
|
+
};
|
|
152
|
+
}, []);
|
|
153
|
+
return React.createElement(customElements.getName(RuleDialogWC) ?? 'rule-dialog', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
154
|
+
});
|
|
155
|
+
|
|
139
156
|
const EmailDistributionRouteManagement = React.forwardRef(function EmailDistributionRouteManagement(props, ref) {
|
|
140
157
|
const { children, ...rest } = props;
|
|
141
158
|
return React.createElement(customElements.getName(EmailDistributionRouteManagementWC) ?? 'email-distribution-route-management', { ...rest, ref }, children);
|
|
@@ -166,23 +183,6 @@ const SlackRouteManagement = React.forwardRef(function SlackRouteManagement(prop
|
|
|
166
183
|
return React.createElement(customElements.getName(SlackRouteManagementWC) ?? 'slack-route-management', { ...rest, ref }, children);
|
|
167
184
|
});
|
|
168
185
|
|
|
169
|
-
const RuleDialog = React.forwardRef(function RuleDialog(props, ref) {
|
|
170
|
-
const { onClose, children, ...rest } = props;
|
|
171
|
-
const _innerRef = React.useRef(null);
|
|
172
|
-
const _onCloseRef = React.useRef(onClose);
|
|
173
|
-
_onCloseRef.current = onClose;
|
|
174
|
-
React.useLayoutEffect(() => {
|
|
175
|
-
const el = _innerRef.current;
|
|
176
|
-
if (!el) return;
|
|
177
|
-
const _onCloseFn = (e) => _onCloseRef.current?.(e);
|
|
178
|
-
el.addEventListener('close', _onCloseFn);
|
|
179
|
-
return () => {
|
|
180
|
-
el.removeEventListener('close', _onCloseFn);
|
|
181
|
-
};
|
|
182
|
-
}, []);
|
|
183
|
-
return React.createElement(customElements.getName(RuleDialogWC) ?? 'rule-dialog', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
184
|
-
});
|
|
185
|
-
|
|
186
186
|
const TemplateDialog = React.forwardRef(function TemplateDialog(props, ref) {
|
|
187
187
|
const { onClose, children, ...rest } = props;
|
|
188
188
|
const _innerRef = React.useRef(null);
|
|
@@ -313,24 +313,24 @@ const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(
|
|
|
313
313
|
module.exports = {
|
|
314
314
|
ReconciliationSandbox,
|
|
315
315
|
FoundationInbox,
|
|
316
|
+
FoundationNotificationDashboard,
|
|
316
317
|
FoundationSoundsPanel,
|
|
317
318
|
FoundationSounds,
|
|
318
|
-
FoundationNotificationDashboard,
|
|
319
|
-
FoundationInboxCounter,
|
|
320
319
|
FoundationInboxFlyout,
|
|
321
320
|
InboxSubscription,
|
|
321
|
+
FoundationInboxCounter,
|
|
322
322
|
NotifyAuditManagement,
|
|
323
323
|
RouteManagement,
|
|
324
324
|
RuleManagement,
|
|
325
325
|
TemplateManagement,
|
|
326
326
|
RuleParameter,
|
|
327
|
+
RuleDialog,
|
|
327
328
|
EmailDistributionRouteManagement,
|
|
328
329
|
EmailUserRouteManagement,
|
|
329
330
|
LogRouteManagement,
|
|
330
331
|
MSTeamsRouteManagement,
|
|
331
332
|
ScreenRouteManagement,
|
|
332
333
|
SlackRouteManagement,
|
|
333
|
-
RuleDialog,
|
|
334
334
|
TemplateDialog,
|
|
335
335
|
RuleConditionBuilder,
|
|
336
336
|
RuleConditionGroup,
|
package/dist/react.mjs
CHANGED
|
@@ -50,6 +50,11 @@ export const FoundationInbox = React.forwardRef(function FoundationInbox(props,
|
|
|
50
50
|
return React.createElement(customElements.getName(FoundationInboxWC) ?? 'foundation-inbox', { ...rest, ref }, children);
|
|
51
51
|
});
|
|
52
52
|
|
|
53
|
+
export const FoundationNotificationDashboard = React.forwardRef(function FoundationNotificationDashboard(props, ref) {
|
|
54
|
+
const { children, ...rest } = props;
|
|
55
|
+
return React.createElement(customElements.getName(FoundationNotificationDashboardWC) ?? 'foundation-notification-dashboard', { ...rest, ref }, children);
|
|
56
|
+
});
|
|
57
|
+
|
|
53
58
|
export const FoundationSoundsPanel = React.forwardRef(function FoundationSoundsPanel(props, ref) {
|
|
54
59
|
const { children, ...rest } = props;
|
|
55
60
|
return React.createElement(customElements.getName(FoundationSoundsPanelWC) ?? 'foundation-sounds-panel', { ...rest, ref }, children);
|
|
@@ -60,16 +65,6 @@ export const FoundationSounds = React.forwardRef(function FoundationSounds(props
|
|
|
60
65
|
return React.createElement(customElements.getName(FoundationSoundsWC) ?? 'foundation-sounds', { ...rest, ref }, children);
|
|
61
66
|
});
|
|
62
67
|
|
|
63
|
-
export const FoundationNotificationDashboard = React.forwardRef(function FoundationNotificationDashboard(props, ref) {
|
|
64
|
-
const { children, ...rest } = props;
|
|
65
|
-
return React.createElement(customElements.getName(FoundationNotificationDashboardWC) ?? 'foundation-notification-dashboard', { ...rest, ref }, children);
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
export const FoundationInboxCounter = React.forwardRef(function FoundationInboxCounter(props, ref) {
|
|
69
|
-
const { children, ...rest } = props;
|
|
70
|
-
return React.createElement(customElements.getName(FoundationInboxCounterWC) ?? 'foundation-inbox-counter', { ...rest, ref }, children);
|
|
71
|
-
});
|
|
72
|
-
|
|
73
68
|
export const FoundationInboxFlyout = React.forwardRef(function FoundationInboxFlyout(props, ref) {
|
|
74
69
|
const { children, ...rest } = props;
|
|
75
70
|
return React.createElement(customElements.getName(FoundationInboxFlyoutWC) ?? 'foundation-inbox-flyout', { ...rest, ref }, children);
|
|
@@ -97,6 +92,11 @@ export const InboxSubscription = React.forwardRef(function InboxSubscription(pro
|
|
|
97
92
|
return React.createElement(customElements.getName(InboxSubscriptionWC) ?? 'inbox-subscription', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
98
93
|
});
|
|
99
94
|
|
|
95
|
+
export const FoundationInboxCounter = React.forwardRef(function FoundationInboxCounter(props, ref) {
|
|
96
|
+
const { children, ...rest } = props;
|
|
97
|
+
return React.createElement(customElements.getName(FoundationInboxCounterWC) ?? 'foundation-inbox-counter', { ...rest, ref }, children);
|
|
98
|
+
});
|
|
99
|
+
|
|
100
100
|
export const NotifyAuditManagement = React.forwardRef(function NotifyAuditManagement(props, ref) {
|
|
101
101
|
const { children, ...rest } = props;
|
|
102
102
|
return React.createElement(customElements.getName(NotifyAuditManagementWC) ?? 'notify-audit-management', { ...rest, ref }, children);
|
|
@@ -134,6 +134,23 @@ export const RuleParameter = React.forwardRef(function RuleParameter(props, ref)
|
|
|
134
134
|
return React.createElement(customElements.getName(RuleParameterWC) ?? 'rule-parameter', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
135
135
|
});
|
|
136
136
|
|
|
137
|
+
export const RuleDialog = React.forwardRef(function RuleDialog(props, ref) {
|
|
138
|
+
const { onClose, children, ...rest } = props;
|
|
139
|
+
const _innerRef = React.useRef(null);
|
|
140
|
+
const _onCloseRef = React.useRef(onClose);
|
|
141
|
+
_onCloseRef.current = onClose;
|
|
142
|
+
React.useLayoutEffect(() => {
|
|
143
|
+
const el = _innerRef.current;
|
|
144
|
+
if (!el) return;
|
|
145
|
+
const _onCloseFn = (e) => _onCloseRef.current?.(e);
|
|
146
|
+
el.addEventListener('close', _onCloseFn);
|
|
147
|
+
return () => {
|
|
148
|
+
el.removeEventListener('close', _onCloseFn);
|
|
149
|
+
};
|
|
150
|
+
}, []);
|
|
151
|
+
return React.createElement(customElements.getName(RuleDialogWC) ?? 'rule-dialog', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
152
|
+
});
|
|
153
|
+
|
|
137
154
|
export const EmailDistributionRouteManagement = React.forwardRef(function EmailDistributionRouteManagement(props, ref) {
|
|
138
155
|
const { children, ...rest } = props;
|
|
139
156
|
return React.createElement(customElements.getName(EmailDistributionRouteManagementWC) ?? 'email-distribution-route-management', { ...rest, ref }, children);
|
|
@@ -164,23 +181,6 @@ export const SlackRouteManagement = React.forwardRef(function SlackRouteManageme
|
|
|
164
181
|
return React.createElement(customElements.getName(SlackRouteManagementWC) ?? 'slack-route-management', { ...rest, ref }, children);
|
|
165
182
|
});
|
|
166
183
|
|
|
167
|
-
export const RuleDialog = React.forwardRef(function RuleDialog(props, ref) {
|
|
168
|
-
const { onClose, children, ...rest } = props;
|
|
169
|
-
const _innerRef = React.useRef(null);
|
|
170
|
-
const _onCloseRef = React.useRef(onClose);
|
|
171
|
-
_onCloseRef.current = onClose;
|
|
172
|
-
React.useLayoutEffect(() => {
|
|
173
|
-
const el = _innerRef.current;
|
|
174
|
-
if (!el) return;
|
|
175
|
-
const _onCloseFn = (e) => _onCloseRef.current?.(e);
|
|
176
|
-
el.addEventListener('close', _onCloseFn);
|
|
177
|
-
return () => {
|
|
178
|
-
el.removeEventListener('close', _onCloseFn);
|
|
179
|
-
};
|
|
180
|
-
}, []);
|
|
181
|
-
return React.createElement(customElements.getName(RuleDialogWC) ?? 'rule-dialog', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
182
|
-
});
|
|
183
|
-
|
|
184
184
|
export const TemplateDialog = React.forwardRef(function TemplateDialog(props, ref) {
|
|
185
185
|
const { onClose, children, ...rest } = props;
|
|
186
186
|
const _innerRef = React.useRef(null);
|
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": "15.14.
|
|
4
|
+
"version": "15.14.1",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"workspaces": [
|
|
7
7
|
"client"
|
|
@@ -81,30 +81,30 @@
|
|
|
81
81
|
"@commitlint/cli": "^19.2.1",
|
|
82
82
|
"@commitlint/config-conventional": "^19.1.0",
|
|
83
83
|
"@commitlint/format": "^19.0.3",
|
|
84
|
-
"@genesislcap/design-system-configurator": "15.14.
|
|
85
|
-
"@genesislcap/eslint-config": "15.14.
|
|
86
|
-
"@genesislcap/eslint-stylelint-builder": "15.14.
|
|
87
|
-
"@genesislcap/foundation-testing": "15.14.
|
|
88
|
-
"@genesislcap/genx": "15.14.
|
|
89
|
-
"@genesislcap/prettier-config": "15.14.
|
|
90
|
-
"@genesislcap/stylelint-config": "15.14.
|
|
91
|
-
"@genesislcap/vite-builder": "15.14.
|
|
92
|
-
"@genesislcap/webpack-builder": "15.14.
|
|
84
|
+
"@genesislcap/design-system-configurator": "15.14.1",
|
|
85
|
+
"@genesislcap/eslint-config": "15.14.1",
|
|
86
|
+
"@genesislcap/eslint-stylelint-builder": "15.14.1",
|
|
87
|
+
"@genesislcap/foundation-testing": "15.14.1",
|
|
88
|
+
"@genesislcap/genx": "15.14.1",
|
|
89
|
+
"@genesislcap/prettier-config": "15.14.1",
|
|
90
|
+
"@genesislcap/stylelint-config": "15.14.1",
|
|
91
|
+
"@genesislcap/vite-builder": "15.14.1",
|
|
92
|
+
"@genesislcap/webpack-builder": "15.14.1",
|
|
93
93
|
"dayjs": "^1.11.7"
|
|
94
94
|
},
|
|
95
95
|
"dependencies": {
|
|
96
|
-
"@genesislcap/foundation-comms": "15.14.
|
|
97
|
-
"@genesislcap/foundation-criteria": "15.14.
|
|
98
|
-
"@genesislcap/foundation-entity-management": "15.14.
|
|
99
|
-
"@genesislcap/foundation-forms": "15.14.
|
|
100
|
-
"@genesislcap/foundation-layout": "15.14.
|
|
101
|
-
"@genesislcap/foundation-logger": "15.14.
|
|
102
|
-
"@genesislcap/foundation-notifications": "15.14.
|
|
103
|
-
"@genesislcap/foundation-ui": "15.14.
|
|
104
|
-
"@genesislcap/foundation-utils": "15.14.
|
|
105
|
-
"@genesislcap/rapid-design-system": "15.14.
|
|
106
|
-
"@genesislcap/rapid-grid-pro": "15.14.
|
|
107
|
-
"@genesislcap/web-core": "15.14.
|
|
96
|
+
"@genesislcap/foundation-comms": "15.14.1",
|
|
97
|
+
"@genesislcap/foundation-criteria": "15.14.1",
|
|
98
|
+
"@genesislcap/foundation-entity-management": "15.14.1",
|
|
99
|
+
"@genesislcap/foundation-forms": "15.14.1",
|
|
100
|
+
"@genesislcap/foundation-layout": "15.14.1",
|
|
101
|
+
"@genesislcap/foundation-logger": "15.14.1",
|
|
102
|
+
"@genesislcap/foundation-notifications": "15.14.1",
|
|
103
|
+
"@genesislcap/foundation-ui": "15.14.1",
|
|
104
|
+
"@genesislcap/foundation-utils": "15.14.1",
|
|
105
|
+
"@genesislcap/rapid-design-system": "15.14.1",
|
|
106
|
+
"@genesislcap/rapid-grid-pro": "15.14.1",
|
|
107
|
+
"@genesislcap/web-core": "15.14.1",
|
|
108
108
|
"lodash.debounce": "^4.0.8",
|
|
109
109
|
"rxjs": "^7.5.4"
|
|
110
110
|
},
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"access": "public"
|
|
113
113
|
},
|
|
114
114
|
"customElements": "dist/custom-elements.json",
|
|
115
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "466a79ef9cc4520eb29533fe22058c8d39e59ab5"
|
|
116
116
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FieldTypeEnum } from '@genesislcap/foundation-comms';
|
|
2
|
-
import {
|
|
2
|
+
import { customElement, GenesisElement, observable } from '@genesislcap/web-core';
|
|
3
3
|
import {
|
|
4
4
|
ConditionBuilderEntity,
|
|
5
5
|
JoinOperator,
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
RightCriteria,
|
|
8
8
|
nullAndBlankLogicalOperatorValues,
|
|
9
9
|
} from '../../../../../../notify.types';
|
|
10
|
+
import { Field } from '../../../../../../services/system.service';
|
|
10
11
|
import { logger } from '../../../../../../utils';
|
|
11
12
|
import { ConditionBuilderStyles } from '../../../../styles/condition-builder.styles';
|
|
12
13
|
import { ParameterBuilderEntity } from '../template-dialog.types';
|
|
@@ -25,9 +26,9 @@ import { TemplateConditionBuilderTemplate } from './template-condition-builder.t
|
|
|
25
26
|
styles: ConditionBuilderStyles,
|
|
26
27
|
})
|
|
27
28
|
export class TemplateConditionBuilder extends GenesisElement {
|
|
28
|
-
@
|
|
29
|
-
@
|
|
30
|
-
@
|
|
29
|
+
@observable condition: ConditionBuilderEntity;
|
|
30
|
+
@observable parameters: Array<ParameterBuilderEntity> = [];
|
|
31
|
+
@observable fields: Field[] = [];
|
|
31
32
|
|
|
32
33
|
// Whether this is the first row in the condition list - it has nothing to
|
|
33
34
|
// join to, so the AND/OR selector is hidden for it.
|