@genesislcap/pbc-notify-ui 14.483.1 → 14.483.3-alpha-7a2e689.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.d.ts +8 -1
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.styles.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.d.ts +8 -1
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.styles.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox-base/inbox-base.d.ts +8 -6
- package/dist/dts/components/foundation-inbox/inbox-base/inbox-base.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 +3 -2
- package/dist/dts/components/foundation-inbox/inbox.types.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox.utils.d.ts +0 -2
- package/dist/dts/components/foundation-inbox/inbox.utils.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.d.ts +6 -0
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.types.d.ts +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.types.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.d.ts +9 -0
- 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-condition-builder/template-condition-builder.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.utils.d.ts +14 -0
- package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.utils.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/types/param-type.d.ts +1 -1
- package/dist/dts/components/foundation-notification-dashboard/types/param-type.d.ts.map +1 -1
- package/dist/dts/notify.types.d.ts +6 -0
- package/dist/dts/notify.types.d.ts.map +1 -1
- package/dist/dts/services/system.service.d.ts +1 -0
- package/dist/dts/services/system.service.d.ts.map +1 -1
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/inbox-subscription.js +51 -9
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/inbox-subscription.styles.js +48 -6
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.js +40 -21
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.js +70 -3
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.styles.js +16 -2
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.js +12 -11
- package/dist/esm/components/foundation-inbox/inbox-base/inbox-base.js +76 -40
- package/dist/esm/components/foundation-inbox/inbox.styles.js +24 -3
- package/dist/esm/components/foundation-inbox/inbox.template.js +26 -66
- package/dist/esm/components/foundation-inbox/inbox.types.js +1 -2
- package/dist/esm/components/foundation-inbox/inbox.utils.js +0 -2
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.js +57 -1
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.js +43 -14
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.js +27 -10
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.js +2 -1
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.js +2 -1
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.js +119 -7
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.js +35 -6
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.js +30 -11
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.js +2 -1
- package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.utils.js +303 -1
- package/dist/esm/components/foundation-notification-dashboard/types/param-type.js +1 -1
- package/dist/esm/notify.types.js +8 -1
- package/dist/esm/services/system.service.js +3 -0
- package/dist/pbc-notify-ui.d.ts +12 -9
- package/package.json +22 -22
- package/src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.styles.ts +48 -6
- package/src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.ts +52 -21
- package/src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.ts +54 -11
- package/src/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.styles.ts +16 -2
- package/src/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.ts +11 -11
- package/src/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.ts +77 -4
- package/src/components/foundation-inbox/inbox-base/inbox-base.ts +75 -44
- package/src/components/foundation-inbox/inbox.styles.ts +24 -3
- package/src/components/foundation-inbox/inbox.template.ts +33 -80
- package/src/components/foundation-inbox/inbox.types.ts +2 -1
- package/src/components/foundation-inbox/inbox.utils.ts +0 -4
- package/src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.ts +51 -14
- package/src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.ts +51 -0
- package/src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.ts +2 -0
- package/src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.ts +27 -8
- package/src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.types.ts +1 -1
- package/src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts +1 -1
- package/src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts +42 -6
- package/src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts +116 -5
- package/src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.ts +2 -0
- package/src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.ts +30 -13
- package/src/components/foundation-notification-dashboard/notification-dashboard.utils.ts +336 -0
- package/src/components/foundation-notification-dashboard/types/param-type.ts +1 -1
- package/src/notify.types.ts +9 -1
- package/src/services/system.service.ts +4 -0
package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.d.ts
CHANGED
|
@@ -6,20 +6,27 @@ import { RuleParameterEntity } from '../../inbox.types';
|
|
|
6
6
|
* @public
|
|
7
7
|
*
|
|
8
8
|
* @fires templateSubscribed - Fired when a template subscription is created
|
|
9
|
+
* @fires subscribeCancelled - Fired when inline parameter entry is cancelled
|
|
9
10
|
*/
|
|
10
11
|
export declare class InboxSubscription extends GenesisElement {
|
|
11
12
|
template: any;
|
|
13
|
+
inline: boolean;
|
|
12
14
|
private parametersDetails;
|
|
15
|
+
private isSubmitting;
|
|
13
16
|
parametersOperators: {};
|
|
14
17
|
subscribeDisabled: boolean;
|
|
15
18
|
ruleService: RuleService;
|
|
16
19
|
connectedCallback(): void;
|
|
17
20
|
disconnectedCallback(): void;
|
|
18
21
|
templateChanged(): void;
|
|
19
|
-
|
|
22
|
+
usesAutoSubmit(): boolean;
|
|
23
|
+
requiresManualSubscribe(): boolean;
|
|
24
|
+
parameterEdit(value: any): Promise<void>;
|
|
25
|
+
private autoSubscribe;
|
|
20
26
|
verifySubscribe(): void;
|
|
21
27
|
isFirstElement: (parameter: RuleParameterEntity) => boolean;
|
|
22
28
|
subscribeTemplate(): Promise<void>;
|
|
29
|
+
cancelSubscribe(): void;
|
|
23
30
|
createParametersOperatorMap: (conditions: any) => {};
|
|
24
31
|
}
|
|
25
32
|
//# sourceMappingURL=inbox-subscription.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox-subscription.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"inbox-subscription.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAIhE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAIxD;;;;;;GAMG;AACH,qBAKa,iBAAkB,SAAQ,cAAc;IAC7C,QAAQ,MAAC;IACY,MAAM,UAAS;IAC1C,OAAO,CAAC,iBAAiB,CAAM;IAC/B,OAAO,CAAC,YAAY,CAAS;IACjB,mBAAmB,KAAM;IACzB,iBAAiB,UAAQ;IACxB,WAAW,EAAE,WAAW,CAAC;IAEtC,iBAAiB;IAIjB,oBAAoB;IAMpB,eAAe;IAgBf,cAAc,IAAI,OAAO;IAIzB,uBAAuB,IAAI,OAAO;IAO5B,aAAa,CAAC,KAAK,EAAE,GAAG;YAYhB,aAAa;IAa3B,eAAe;IAKf,cAAc,GAAI,WAAW,mBAAmB,aAGtC;IAEJ,iBAAiB;IAcvB,eAAe;IAIf,2BAA2B,GAAI,eAAU,QAQvC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox-subscription.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"inbox-subscription.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB,iDA4EnC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox-subscription.template.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,eAAO,MAAM,yBAAyB,
|
|
1
|
+
{"version":3,"file":"inbox-subscription.template.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,eAAO,MAAM,yBAAyB,wEA2ErC,CAAC"}
|
|
@@ -8,11 +8,18 @@ import { RuleParameterEntity } from '../../../inbox.types';
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class RuleParameter extends GenesisElement {
|
|
10
10
|
parameter: RuleParameterEntity;
|
|
11
|
+
requireSelection: boolean;
|
|
11
12
|
isFirstElement: boolean;
|
|
12
13
|
operator: string;
|
|
13
14
|
inputValue: string;
|
|
14
15
|
connectedCallback(): void;
|
|
16
|
+
parameterChanged(): void;
|
|
17
|
+
requireSelectionChanged(): void;
|
|
18
|
+
inputValueChanged(): void;
|
|
19
|
+
private initParameter;
|
|
20
|
+
private checkAndClearForcedSelection;
|
|
21
|
+
private clearForcedSelection;
|
|
15
22
|
disconnectedCallback(): void;
|
|
16
|
-
parameterEdit(inputValue:
|
|
23
|
+
parameterEdit(inputValue: string): void;
|
|
17
24
|
}
|
|
18
25
|
//# sourceMappingURL=rule-parameter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-parameter.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAMxF,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAI3D;;;;;GAKG;AACH,qBAKa,aAAc,SAAQ,cAAc;IAC7B,SAAS,EAAE,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"rule-parameter.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAMxF,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAI3D;;;;;GAKG;AACH,qBAKa,aAAc,SAAQ,cAAc;IAC7B,SAAS,EAAE,mBAAmB,CAAC;IACtB,gBAAgB,UAAS;IAC9C,cAAc,EAAE,OAAO,CAAS;IAChC,QAAQ,EAAE,MAAM,CAAQ;IAClB,UAAU,EAAE,MAAM,CAAM;IAEpC,iBAAiB;IAYjB,gBAAgB;IAIhB,uBAAuB;IAIvB,iBAAiB;IAIjB,OAAO,CAAC,aAAa;IAwCrB,OAAO,CAAC,4BAA4B;IAYpC,OAAO,CAAC,oBAAoB;IAgB5B,oBAAoB;IAIpB,aAAa,CAAC,UAAU,EAAE,MAAM;CASjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-parameter.styles.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"rule-parameter.styles.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,iDAoC/B,CAAC"}
|
|
@@ -18,7 +18,6 @@ export declare class FoundationInboxBase extends GenesisElement {
|
|
|
18
18
|
moreAlerts: boolean;
|
|
19
19
|
ruleService: RuleService;
|
|
20
20
|
rules: Rule[];
|
|
21
|
-
rulesFilter: Rule[];
|
|
22
21
|
templateService: TemplateService;
|
|
23
22
|
templates: RuleTemplate[];
|
|
24
23
|
templatesFilter: RuleTemplate[];
|
|
@@ -27,6 +26,8 @@ export declare class FoundationInboxBase extends GenesisElement {
|
|
|
27
26
|
bodySearchValue: string;
|
|
28
27
|
searchSubscribe: string;
|
|
29
28
|
ruleTemplateDetails: NotificationRuleTemplateReply;
|
|
29
|
+
pendingSubscribeTemplateId: string;
|
|
30
|
+
subscribedTemplateIds: Record<string, boolean>;
|
|
30
31
|
selectedTab: InboxTab;
|
|
31
32
|
fromDatePickerValue: string;
|
|
32
33
|
toDatePickerValue: string;
|
|
@@ -45,7 +46,6 @@ export declare class FoundationInboxBase extends GenesisElement {
|
|
|
45
46
|
inboxTabChanged(inboxTab: InboxTab): Promise<void>;
|
|
46
47
|
alertsChanged: () => Alert[];
|
|
47
48
|
loadMoreAlerts(): void;
|
|
48
|
-
rulesChanged: () => Rule[];
|
|
49
49
|
templatesChanged: () => RuleTemplate[];
|
|
50
50
|
debouncedFilterSearchAlertLog: any;
|
|
51
51
|
filterSearchAlertLog(): void;
|
|
@@ -55,10 +55,12 @@ export declare class FoundationInboxBase extends GenesisElement {
|
|
|
55
55
|
dismissAlert(alertId: string): void;
|
|
56
56
|
validateResponse(response: any): void;
|
|
57
57
|
dismissAllAlerts(): void;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
refreshSubscribeData(): Promise<void>;
|
|
59
|
+
findSubscribedRule(template: RuleTemplate): Rule | undefined;
|
|
60
|
+
isTemplateSubscribed(template: RuleTemplate): boolean;
|
|
61
|
+
handleTemplateToggle(template: RuleTemplate, event: Event): Promise<void>;
|
|
62
|
+
onTemplateSubscribed(templateId?: string): Promise<void>;
|
|
63
|
+
cancelPendingSubscribe(): void;
|
|
62
64
|
formatDateStrForMatchCriteria(date?: string): string;
|
|
63
65
|
}
|
|
64
66
|
//# sourceMappingURL=inbox-base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox-base.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-inbox/inbox-base/inbox-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAEL,UAAU,EAKX,MAAM,kCAAkC,CAAC;AAE1C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAKnE,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EA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@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.styles.ts"],"names":[],"mappings":"AA4JA,eAAO,MAAM,WAAW,iDA+BvB,CAAC;AAEF,eAAO,MAAM,yBAAyB,iDA8ErC,CAAC;AAEF,eAAO,MAAM,aAAa,iDAYzB,CAAC;AAEF,eAAO,MAAM,SAAS,iDAYrB,CAAC;AAEF,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"inbox.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.styles.ts"],"names":[],"mappings":"AA4JA,eAAO,MAAM,WAAW,iDA+BvB,CAAC;AAEF,eAAO,MAAM,yBAAyB,iDA8ErC,CAAC;AAEF,eAAO,MAAM,aAAa,iDAYzB,CAAC;AAEF,eAAO,MAAM,SAAS,iDAYrB,CAAC;AAEF,eAAO,MAAM,eAAe,iDAwG3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,iDAyBjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox.template.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"inbox.template.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.template.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAmM/C;;GAEG;AACH,eAAO,MAAM,uBAAuB,sEAoGnC,CAAC"}
|
|
@@ -24,6 +24,7 @@ export interface Rule {
|
|
|
24
24
|
RULE_TABLE: string;
|
|
25
25
|
PROCESS_NAME: string;
|
|
26
26
|
TABLE_OPERATION: string;
|
|
27
|
+
DATETIME?: number;
|
|
27
28
|
}
|
|
28
29
|
export interface RuleParameterEntity {
|
|
29
30
|
DYNAMIC_RULE_ID: any;
|
|
@@ -49,6 +50,7 @@ export interface RuleTemplate {
|
|
|
49
50
|
IS_TEMPLATE: boolean;
|
|
50
51
|
RULE_EXECUTION_STRATEGY: string;
|
|
51
52
|
RULE_TYPE: string;
|
|
53
|
+
DATETIME?: number;
|
|
52
54
|
}
|
|
53
55
|
export interface NotificationRuleTemplateReply {
|
|
54
56
|
DYNAMIC_RULE_ID: string;
|
|
@@ -72,7 +74,6 @@ export declare enum RuleStatus {
|
|
|
72
74
|
export declare enum InboxTab {
|
|
73
75
|
ALERTS_NEW = 0,
|
|
74
76
|
ALERT_HISTORY = 1,
|
|
75
|
-
|
|
76
|
-
SUBSCRIBE = 3
|
|
77
|
+
SUBSCRIBE = 2
|
|
77
78
|
}
|
|
78
79
|
//# sourceMappingURL=inbox.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox.types.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,WAAW,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,oBAAY,WAAW;IACrB,GAAG,QAAQ;IACX,SAAS,cAAc;CACxB;AAED,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,uBAAuB,EAAE,MAAM,CAAC;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"inbox.types.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,WAAW,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,oBAAY,WAAW;IACrB,GAAG,QAAQ;IACX,SAAS,cAAc;CACxB;AAED,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,uBAAuB,EAAE,MAAM,CAAC;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,mBAAmB;IAClC,eAAe,MAAC;IAChB,WAAW,MAAC;IACZ,UAAU,MAAC;IACX,cAAc,MAAC;IACf,YAAY,MAAC;IACb,iBAAiB,MAAC;IAClB,UAAU,MAAC;CACZ;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,OAAO,CAAC;IACrB,uBAAuB,EAAE,MAAM,CAAC;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,6BAA6B;IAC5C,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,uBAAuB,EAAE,MAAM,CAAC;IAChC,eAAe,EAAE;QACf,UAAU,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;KACxB,CAAC;IACF,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iBAAiB,EAAE;QACjB,WAAW,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;KACzB,CAAC;IACF,UAAU,EAAE,GAAG,CAAC;CACjB;AAED,oBAAY,UAAU;IACpB,OAAO,YAAY;IACnB,QAAQ,aAAa;CACtB;AAED,oBAAY,QAAQ;IAClB,UAAU,IAAA;IACV,aAAa,IAAA;IACb,SAAS,IAAA;CACV"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export declare const getStatus: (ruleStatus: any) => "Active" | "Paused";
|
|
2
|
-
export declare const getIcon: (ruleStatus: any) => "pause" | "play";
|
|
3
1
|
export declare const getFormattedDate: (dateTimeInMills: any) => string;
|
|
4
2
|
export declare function getSeverityColor(severity: string): "var(--info-color, #11C9FC)" | "var(--error-color)" | "var(--serious-notify-color, #F9644D)" | "var(--warning-color)" | "var(--neutral-foreground-rest)";
|
|
5
3
|
//# sourceMappingURL=inbox.utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox.utils.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.utils.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"inbox.utils.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.utils.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,gBAAgB,GAAI,oBAAe,WAG/C,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,4JAgBhD"}
|
|
@@ -11,14 +11,18 @@ import { Field } from '../../../../../../services/system.service';
|
|
|
11
11
|
export declare class RuleConditionBuilder extends GenesisElement {
|
|
12
12
|
condition: ConditionBuilderEntity;
|
|
13
13
|
fields: Field[];
|
|
14
|
+
isFirst: boolean;
|
|
15
|
+
joinOperator: string;
|
|
14
16
|
leftValue: string;
|
|
15
17
|
leftValueItems: Array<any>;
|
|
16
18
|
logicalOperator: string;
|
|
17
19
|
rightCriteria: string;
|
|
18
20
|
rightValueText: string;
|
|
19
21
|
rightValueSelect: string;
|
|
22
|
+
rightValueMultiSelect: string[];
|
|
20
23
|
deleteCondition(): void;
|
|
21
24
|
conditionChanged(): Promise<void>;
|
|
25
|
+
joinOperatorChanged(): void;
|
|
22
26
|
fieldsChanged(): void;
|
|
23
27
|
private assignLeftValue;
|
|
24
28
|
assignRightValue(): void;
|
|
@@ -31,6 +35,8 @@ export declare class RuleConditionBuilder extends GenesisElement {
|
|
|
31
35
|
private clearRightValueSelect;
|
|
32
36
|
rightValueTextChanged(): void;
|
|
33
37
|
rightValueSelectChanged(): void;
|
|
38
|
+
rightValueMultiSelectChanged(): void;
|
|
39
|
+
getEnumValues(): string[];
|
|
34
40
|
convertDateTime(dateTimeStr: string): number;
|
|
35
41
|
convertLongForDatePicker(value: number, time?: boolean): string;
|
|
36
42
|
getAllFields(): Field[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-condition-builder.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAElF,OAAO,EACL,sBAAsB,
|
|
1
|
+
{"version":3,"file":"rule-condition-builder.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAElF,OAAO,EACL,sBAAsB,EAMvB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAMlE;;;;;;GAMG;AACH,qBAKa,oBAAqB,SAAQ,cAAc;IAC1C,SAAS,EAAE,sBAAsB,CAAC;IAClC,MAAM,EAAE,KAAK,EAAE,CAAM;IAIrB,OAAO,EAAE,OAAO,CAAS;IACzB,YAAY,EAAE,MAAM,CAAoB;IAExC,SAAS,EAAE,MAAM,CAAQ;IACzB,cAAc,EAAE,KAAK,CAAC,GAAG,CAAC,CAAM;IAEhC,eAAe,EAAE,MAAM,CAAQ;IAE/B,aAAa,EAAE,MAAM,CAAuB;IAC5C,cAAc,EAAE,MAAM,CAAQ;IAC9B,gBAAgB,EAAE,MAAM,CAAQ;IAChC,qBAAqB,EAAE,MAAM,EAAE,CAAM;IAEjD,eAAe;IAIT,gBAAgB;IAgBtB,mBAAmB;IASnB,aAAa;IASb,OAAO,CAAC,eAAe;IAiBvB,gBAAgB;IAgChB,gBAAgB,IAAI,KAAK,CAAC,GAAG,CAAC;IAI9B,mBAAmB,IAAI,KAAK,CAAC,GAAG,CAAC;IAUjC,gBAAgB;IAqBhB,sBAAsB;IActB,oBAAoB;IA6BpB,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,qBAAqB;IAI7B,qBAAqB;IAkBrB,uBAAuB;IASvB,4BAA4B;IAgB5B,aAAa,IAAI,MAAM,EAAE;IAIzB,eAAe,CAAC,WAAW,EAAE,MAAM;IAMnC,wBAAwB,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,GAAE,OAAe;IAI7D,YAAY;IAIZ,mBAAmB;CA8BpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-condition-builder.template.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAGrE,eAAO,MAAM,4BAA4B,
|
|
1
|
+
{"version":3,"file":"rule-condition-builder.template.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAGrE,eAAO,MAAM,4BAA4B,2EAwKxC,CAAC"}
|
|
@@ -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":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAiB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAEL,sBAAsB,EAGtB,UAAU,EACX,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAU9E,OAAO,EAAQ,cAAc,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE7E;;;;;GAKG;AACH,qBAKa,UAAW,SAAQ,cAAc;IAC/B,WAAW,EAAE,WAAW,CAAC;IACvB,aAAa,EAAE,aAAa,CAAC;IAC7B,aAAa,EAAE,aAAa,CAAC;IAE5C,MAAM,EAAE,KAAK,CAAC;IACF,cAAc,EAAE,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;IAEjF,OAAO,CAAC,MAAM,CAAgB;IAClB,IAAI,EAAE,MAAM,CAAM;IAClB,WAAW,EAAE,MAAM,CAAM;IACzB,QAAQ,EAAE,MAAM,CAAM;IACtB,KAAK,EAAE,MAAM,CAAM;IACnB,QAAQ,EAAE,MAAM,CAAM;IACtB,UAAU,EAAE,UAAU,EAAE,CAAqB;IAC7C,MAAM,EAAE,MAAM,CAAM;IACpB,OAAO,EAAE,MAAM,CAAM;IACrB,UAAU,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAM;IAC/C,cAAc,EAAE,OAAO,CAAC;IAExB,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAM;IAC9B,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAM;IAC1B,MAAM,EAAE,MAAM,EAAE,CAAM;IAErB,UAAU,CAAC,MAAM,EAAE,gBAAgB;IAmBhD,KAAK;YAsBS,UAAU;YASV,QAAQ;
|
|
1
|
+
{"version":3,"file":"rule-dialog.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAiB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAEL,sBAAsB,EAGtB,UAAU,EACX,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,wCAA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.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,eAAO,MAAM,kBAAkB,
|
|
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":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,eAAO,MAAM,kBAAkB,iEA0J9B,CAAC"}
|
|
@@ -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,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAEzD,eAAO,MAAM,cAAc;;;CAGjB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GACxB;IACE,IAAI,EAAE,OAAO,cAAc,CAAC,MAAM,CAAC;CACpC,GACD;IACE,IAAI,EAAE,OAAO,cAAc,CAAC,IAAI,CAAC;IACjC,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEN,MAAM,MAAM,IAAI,GAAG;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,UAAU,EAAE,CAAC;IAC/B,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,mBAAmB,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"rule-dialog.types.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAEzD,eAAO,MAAM,cAAc;;;CAGjB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GACxB;IACE,IAAI,EAAE,OAAO,cAAc,CAAC,MAAM,CAAC;CACpC,GACD;IACE,IAAI,EAAE,OAAO,cAAc,CAAC,IAAI,CAAC;IACjC,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEN,MAAM,MAAM,IAAI,GAAG;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,UAAU,EAAE,CAAC;IAC/B,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,iBAAiB,CAAC,EAAE;QAClB,WAAW,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;KACzB,CAAC;CACH,CAAC"}
|
|
@@ -12,6 +12,8 @@ export declare class TemplateConditionBuilder extends GenesisElement {
|
|
|
12
12
|
condition: ConditionBuilderEntity;
|
|
13
13
|
parameters: Array<ParameterBuilderEntity>;
|
|
14
14
|
fields: Array<string>;
|
|
15
|
+
isFirst: boolean;
|
|
16
|
+
joinOperator: string;
|
|
15
17
|
leftValue: any;
|
|
16
18
|
leftValueItems: Array<any>;
|
|
17
19
|
logicalOperator: string;
|
|
@@ -19,9 +21,14 @@ export declare class TemplateConditionBuilder extends GenesisElement {
|
|
|
19
21
|
rightValueText: string;
|
|
20
22
|
rightValueSelect: string;
|
|
21
23
|
rightValueItems: Array<any>;
|
|
24
|
+
rightValueMultiSelect: string[];
|
|
22
25
|
deleteCondition(): void;
|
|
23
26
|
conditionChanged(): Promise<void>;
|
|
27
|
+
joinOperatorChanged(): void;
|
|
24
28
|
parametersChanged(): void;
|
|
29
|
+
private getMatchingParameter;
|
|
30
|
+
private syncParameterBinding;
|
|
31
|
+
private resetToValueEditor;
|
|
25
32
|
fieldsChanged(): void;
|
|
26
33
|
logicalOperatorChanged(): void;
|
|
27
34
|
private assignLeftValue;
|
|
@@ -32,5 +39,7 @@ export declare class TemplateConditionBuilder extends GenesisElement {
|
|
|
32
39
|
private clearRightValueSelect;
|
|
33
40
|
rightValueTextChanged(): void;
|
|
34
41
|
rightValueSelectChanged(): void;
|
|
42
|
+
rightValueMultiSelectChanged(): void;
|
|
43
|
+
getEnumValues(): string[];
|
|
35
44
|
}
|
|
36
45
|
//# sourceMappingURL=template-condition-builder.d.ts.map
|
|
@@ -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,EAAuB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AACxF,OAAO,EACL,sBAAsB,
|
|
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,EAAuB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AACxF,OAAO,EACL,sBAAsB,EAKvB,MAAM,gCAAgC,CAAC;AAGxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAGlE;;;;;;GAMG;AACH,qBAKa,wBAAyB,SAAQ,cAAc;IACpD,SAAS,EAAE,sBAAsB,CAAC;IAClC,UAAU,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAM;IAC/C,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-condition-builder.template.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAE7E,eAAO,MAAM,gCAAgC,+
|
|
1
|
+
{"version":3,"file":"template-condition-builder.template.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAE7E,eAAO,MAAM,gCAAgC,+EA0H5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-dialog.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dial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;IAE3E,UAAU,CAAC,MAAM,EAAE,GAAG;IAoBnC,KAAK;YAuBS,cAAc;YASd,YAAY;
|
|
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,sBAAsB,EAGtB,UAAU,EACX,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAU3E,OAAO,EAAE,sBAAsB,EAAY,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE/F;;;;;GAKG;AACH,qBAKa,cAAe,SAAQ,cAAc;IAC/B,eAAe,EAAE,eAAe,CAAC;IACnC,aAAa,EAAE,aAAa,CAAC;IAC7B,aAAa,EAAE,aAAa,CAAC;IAE5C,MAAM,EAAE,KAAK,CAAC;IACF,kBAAkB,EAAE,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CACrF;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,sBAAsB,CAAC,CAAM;IAE/C,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAM;IAC9B,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAM;IAC1B,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAM;IAEvC,OAAO,CAAC,cAAc,CAAkE;IAE3E,UAAU,CAAC,MAAM,EAAE,GAAG;IAoBnC,KAAK;YAuBS,cAAc;YASd,YAAY;IAsB1B,OAAO,CAAC,oBAAoB;IAc5B,IAAI,mBAAmB,IAAI,MAAM,CAEhC;IAED,MAAM;IAwBN,OAAO,CAAC,oBAAoB;IAoC5B,gBAAgB,CAAC,QAAQ,KAAA;IASnB,eAAe;IAMrB,YAAY;IAIZ,aAAa,CAAC,eAAe,EAAE,sBAAsB;IAErD,eAAe,CAAC,gBAAgB,EAAE,sBAAsB;IAUxD,YAAY;IAIZ,aAAa,CAAC,eAAe,EAAE,sBAAsB;IAIrD,eAAe,CAAC,gBAAgB,EAAE,sBAAsB;IAWxD,IACW,sBAAsB,IAAI,OAAO,CAE3C;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-dialog.template.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,eAAO,MAAM,sBAAsB,
|
|
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":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,eAAO,MAAM,sBAAsB,qEAsIlC,CAAC"}
|
package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.utils.d.ts
CHANGED
|
@@ -17,8 +17,22 @@ export declare class DynamicRuleUtils {
|
|
|
17
17
|
VALUE: string;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
+
static createTextAssignment: (field: string, text: string, fields?: {
|
|
21
|
+
FIELD_NAME: string;
|
|
22
|
+
}[]) => {
|
|
23
|
+
FIELD: {
|
|
24
|
+
TYPE: string;
|
|
25
|
+
NAME: string;
|
|
26
|
+
};
|
|
27
|
+
VALUE: any;
|
|
28
|
+
};
|
|
20
29
|
static getAssignmentValue: (assignments: any[], field: string) => string;
|
|
30
|
+
static getAssignmentText: (assignments: any[], field: string) => string;
|
|
21
31
|
static createConditions(conditions: ConditionBuilderEntity[], parameters?: any): any;
|
|
32
|
+
static hasMultiValueCondition(conditions: ConditionBuilderEntity[]): boolean;
|
|
33
|
+
static hasOrJoin(conditions: ConditionBuilderEntity[]): boolean;
|
|
34
|
+
static buildRawExpression(conditions: ConditionBuilderEntity[]): string;
|
|
35
|
+
static parseRawExpression(rawExpression: string): ConditionBuilderEntity[] | null;
|
|
22
36
|
}
|
|
23
37
|
export declare class TemplateUtils {
|
|
24
38
|
static createEmptyParameter: () => ParameterBuilderEntity;
|
package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-dashboard.utils.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-notification-dashboard/notification-dashboard.utils.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,sBAAsB,
|
|
1
|
+
{"version":3,"file":"notification-dashboard.utils.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-notification-dashboard/notification-dashboard.utils.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,sBAAsB,EASvB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,8DAA8D,CAAC;AAEtG,qBAAa,aAAa;IAClB,OAAO,CAAC,MAAM,CAAC,IAAI,CAAO;IAChC,MAAM,CAAC,UAAU,QAAO,MAAM,CAAyB;CACxD;AAED,eAAO,MAAM,OAAO,GAAI,UAAK,Y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C,UAAU,KAAA;CAYhC;AAID,wBAAgB,qBAAqB,CAAC,KAAK,KAAA,QAa1C"}
|
|
@@ -2,6 +2,6 @@ export declare const PARAM_TYPE_FIELD = "FIELD";
|
|
|
2
2
|
export declare const PARAM_TYPE_STRING = "STRING";
|
|
3
3
|
export declare const PARAM_TYPE_BOOLEAN = "BOOLEAN";
|
|
4
4
|
export declare const PARAM_TYPE_NUMBER = "NUMBER";
|
|
5
|
-
export declare const ALL_PARAM_TYPES: readonly ["STRING", "NUMBER"];
|
|
5
|
+
export declare const ALL_PARAM_TYPES: readonly ["STRING", "BOOLEAN", "NUMBER"];
|
|
6
6
|
export type ParamType = (typeof ALL_PARAM_TYPES)[number];
|
|
7
7
|
//# sourceMappingURL=param-type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"param-type.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/types/param-type.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,UAAU,CAAC;AACxC,eAAO,MAAM,iBAAiB,WAAW,CAAC;AAC1C,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAC5C,eAAO,MAAM,iBAAiB,WAAW,CAAC;AAE1C,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"param-type.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/types/param-type.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,UAAU,CAAC;AACxC,eAAO,MAAM,iBAAiB,WAAW,CAAC;AAC1C,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAC5C,eAAO,MAAM,iBAAiB,WAAW,CAAC;AAE1C,eAAO,MAAM,eAAe,0CAKlB,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -23,6 +23,7 @@ export declare enum RightCriteria {
|
|
|
23
23
|
}
|
|
24
24
|
export declare enum ParamType {
|
|
25
25
|
STRING = "STRING",
|
|
26
|
+
BOOLEAN = "BOOLEAN",
|
|
26
27
|
NUMBER = "NUMBER"
|
|
27
28
|
}
|
|
28
29
|
export declare enum ParamSourceType {
|
|
@@ -58,11 +59,16 @@ export declare enum EmptyValue {
|
|
|
58
59
|
BLANK = "",
|
|
59
60
|
NULL = "NULL"
|
|
60
61
|
}
|
|
62
|
+
export declare enum JoinOperator {
|
|
63
|
+
AND = "AND",
|
|
64
|
+
OR = "OR"
|
|
65
|
+
}
|
|
61
66
|
export type ConditionBuilderEntity = {
|
|
62
67
|
ID: string;
|
|
63
68
|
LEFT_VALUE: any;
|
|
64
69
|
LOGICAL_OPERATOR: string;
|
|
65
70
|
RIGHT_CRITERIA: string;
|
|
66
71
|
RIGHT_VALUE: string;
|
|
72
|
+
JOIN_OPERATOR?: string;
|
|
67
73
|
};
|
|
68
74
|
//# sourceMappingURL=notify.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notify.types.d.ts","sourceRoot":"","sources":["../../src/notify.types.ts"],"names":[],"mappings":"AACA,oBAAY,eAAe;IACzB,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAC7B,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,SAAS,cAAc;CACxB;AAED,eAAO,MAAM,gBAAgB;;;GAiC5B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;GAyBhC,CAAC;AAEF,eAAO,MAAM,iCAAiC,mBAK7C,CAAC;AAEF,oBAAY,aAAa;IACvB,KAAK,UAAU;IACf,UAAU,eAAe;CAC1B;AAED,oBAAY,SAAS;IAEnB,MAAM,WAAW;
|
|
1
|
+
{"version":3,"file":"notify.types.d.ts","sourceRoot":"","sources":["../../src/notify.types.ts"],"names":[],"mappings":"AACA,oBAAY,eAAe;IACzB,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,YAAY,iBAAiB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
|
|
|
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;
|
|
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;AAgCD,eAAO,MAAM,aAAa,qEAEzB,CAAC"}
|
package/dist/esm/components/foundation-inbox/components/inbox-subscription/inbox-subscription.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
2
|
import { attr, customElement, GenesisElement, observable } from '@genesislcap/web-core';
|
|
3
3
|
import { RuleService } from '../../../../services/rule.service';
|
|
4
|
+
import { showNotificationError } from '../../../foundation-notification-dashboard/notification-dashboard.utils';
|
|
4
5
|
import { EXPRESSION_TYPE_PLACEHOLDER } from '../../../foundation-notification-dashboard/types/expression-type';
|
|
5
6
|
import { PARAM_SOURCE_TYPE_DEFINED_GROUP } from '../../../foundation-notification-dashboard/types/param-source-type';
|
|
6
7
|
import { InboxSubscriptionStyles } from './inbox-subscription.styles';
|
|
@@ -10,11 +11,14 @@ import { InboxSubscriptionTemplate } from './inbox-subscription.template';
|
|
|
10
11
|
* @public
|
|
11
12
|
*
|
|
12
13
|
* @fires templateSubscribed - Fired when a template subscription is created
|
|
14
|
+
* @fires subscribeCancelled - Fired when inline parameter entry is cancelled
|
|
13
15
|
*/
|
|
14
16
|
let InboxSubscription = class InboxSubscription extends GenesisElement {
|
|
15
17
|
constructor() {
|
|
16
18
|
super(...arguments);
|
|
19
|
+
this.inline = false;
|
|
17
20
|
this.parametersDetails = {};
|
|
21
|
+
this.isSubmitting = false;
|
|
18
22
|
this.parametersOperators = {};
|
|
19
23
|
this.subscribeDisabled = true;
|
|
20
24
|
this.isFirstElement = (parameter) => Object.values(this.template.PARAMETERS).findIndex((p) => p.PARAM_NAME === parameter.PARAM_NAME) === 0;
|
|
@@ -39,19 +43,47 @@ let InboxSubscription = class InboxSubscription extends GenesisElement {
|
|
|
39
43
|
templateChanged() {
|
|
40
44
|
const parameters = this.template.PARAMETERS;
|
|
41
45
|
Object.keys(parameters).forEach((key) => {
|
|
46
|
+
var _a;
|
|
42
47
|
const parameter = parameters[key];
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
this.parametersDetails[parameter.PARAM_NAME] = parameter.PARAM_SOURCE.split(',')[0];
|
|
46
|
-
}
|
|
47
|
-
this.parametersDetails[parameter.PARAM_NAME] = '';
|
|
48
|
+
const paramName = (_a = parameter.PARAM_NAME) !== null && _a !== void 0 ? _a : key;
|
|
49
|
+
this.parametersDetails[paramName] = '';
|
|
48
50
|
});
|
|
49
51
|
this.parametersOperators = this.createParametersOperatorMap(this.template.RULE_EXPRESSION.CONDITIONS);
|
|
50
52
|
this.verifySubscribe();
|
|
51
53
|
}
|
|
54
|
+
usesAutoSubmit() {
|
|
55
|
+
return this.inline && !this.requiresManualSubscribe();
|
|
56
|
+
}
|
|
57
|
+
requiresManualSubscribe() {
|
|
58
|
+
var _a, _b;
|
|
59
|
+
const parameters = Object.values((_b = (_a = this.template) === null || _a === void 0 ? void 0 : _a.PARAMETERS) !== null && _b !== void 0 ? _b : {});
|
|
60
|
+
return parameters.some((parameter) => parameter.PARAM_SOURCE_TYPE !== PARAM_SOURCE_TYPE_DEFINED_GROUP);
|
|
61
|
+
}
|
|
52
62
|
parameterEdit(value) {
|
|
53
|
-
this
|
|
54
|
-
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
var _a, _b;
|
|
65
|
+
const paramName = (_a = value.parameter.PARAM_NAME) !== null && _a !== void 0 ? _a : value.parameter;
|
|
66
|
+
const paramValue = String((_b = value.valueTyped) !== null && _b !== void 0 ? _b : '').trim();
|
|
67
|
+
this.parametersDetails[paramName] = paramValue;
|
|
68
|
+
this.verifySubscribe();
|
|
69
|
+
if (this.usesAutoSubmit() && !this.subscribeDisabled) {
|
|
70
|
+
yield this.autoSubscribe();
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
autoSubscribe() {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
if (this.isSubmitting) {
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
this.isSubmitting = true;
|
|
80
|
+
try {
|
|
81
|
+
yield this.subscribeTemplate();
|
|
82
|
+
}
|
|
83
|
+
finally {
|
|
84
|
+
this.isSubmitting = false;
|
|
85
|
+
}
|
|
86
|
+
});
|
|
55
87
|
}
|
|
56
88
|
verifySubscribe() {
|
|
57
89
|
const parameters = Object.values(this.parametersDetails);
|
|
@@ -59,14 +91,24 @@ let InboxSubscription = class InboxSubscription extends GenesisElement {
|
|
|
59
91
|
}
|
|
60
92
|
subscribeTemplate() {
|
|
61
93
|
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
-
yield this.ruleService.subscribeRule(this.template.DYNAMIC_RULE_ID, this.parametersDetails);
|
|
63
|
-
|
|
94
|
+
const response = yield this.ruleService.subscribeRule(this.template.DYNAMIC_RULE_ID, this.parametersDetails);
|
|
95
|
+
if ((response === null || response === void 0 ? void 0 : response.MESSAGE_TYPE) === 'EVENT_ACK') {
|
|
96
|
+
this.$emit('templateSubscribed', this.template.DYNAMIC_RULE_ID);
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
showNotificationError(response === null || response === void 0 ? void 0 : response.ERROR);
|
|
64
100
|
});
|
|
65
101
|
}
|
|
102
|
+
cancelSubscribe() {
|
|
103
|
+
this.$emit('subscribeCancelled');
|
|
104
|
+
}
|
|
66
105
|
};
|
|
67
106
|
__decorate([
|
|
68
107
|
attr
|
|
69
108
|
], InboxSubscription.prototype, "template", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
attr({ mode: 'boolean' })
|
|
111
|
+
], InboxSubscription.prototype, "inline", void 0);
|
|
70
112
|
__decorate([
|
|
71
113
|
observable
|
|
72
114
|
], InboxSubscription.prototype, "parametersOperators", void 0);
|