@genesislcap/pbc-notify-ui 1.0.12 → 1.0.14
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 +6 -7
- package/dist/dts/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.d.ts +1 -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/rule-parameter/rule-parameter.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox.d.ts +3 -1
- 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-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.d.ts +0 -2
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/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.types.d.ts +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types.d.ts.map +1 -1
- package/dist/dts/utils/notifyPermissions.d.ts +7 -0
- package/dist/dts/utils/notifyPermissions.d.ts.map +1 -0
- package/dist/esm/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.js +5 -0
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/inbox-subscription.js +8 -3
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/inbox-subscription.styles.js +1 -1
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.js +14 -7
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.js +3 -0
- package/dist/esm/components/foundation-inbox/inbox.js +11 -11
- package/dist/esm/components/foundation-inbox/inbox.styles.js +0 -17
- package/dist/esm/components/foundation-inbox/inbox.template.js +98 -94
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.js +1 -0
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.template.js +1 -2
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.js +1 -1
- package/dist/esm/utils/notifyPermissions.js +6 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,19 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
:hammer_and_wrench: **Development**
|
|
4
4
|
- Do the [npm link](https://docs.npmjs.com/cli/v10/commands/npm-link) between the projects:
|
|
5
|
-
- On pbc-notify: ```npm i``` and ```npm link```
|
|
6
|
-
- On client app: ```npm i``` and ```npm link @genesislcap/pbc-notify```
|
|
7
|
-
- On [package.json](package.json) change the following lines:
|
|
5
|
+
- On pbc-notify-ui: ```npm i``` and ```npm link```
|
|
6
|
+
- On client app: ```npm i``` and ```npm link @genesislcap/pbc-notify-ui```
|
|
7
|
+
- On pbc-notify-ui [package.json](package.json) change the following lines:
|
|
8
8
|
- ```"main": "dist/esm/index.js",``` to ```"main": "src/index.ts",```
|
|
9
9
|
- ```"default": "./dist/esm/index.js"``` to ```"default": "./src/index.ts"```
|
|
10
|
-
- **[OPTIONAL]** On client app (blank-seed, position-seed, etc.), create a file in ```/src``` with the name ```global.d.ts``` with this line inside ```declare module '@genesislcap/pbc-notify';```
|
|
11
10
|
- :warning: Always do a ```git rollback``` on the ```package.json``` before a commit or just don't commit it
|
|
12
11
|
|
|
13
12
|
:package: **Build**
|
|
14
13
|
- The recommended build command to be used is ```genx build -b ts```
|
|
15
|
-
- Undo the following lines on [package.json](package.json):
|
|
14
|
+
- Undo the following lines on pbc-notify-ui [package.json] (package.json):
|
|
16
15
|
- ```"main": "src/index.ts",``` to ```"main": "dist/esm/index.js",```
|
|
17
16
|
- ```"default": "./src/index.ts"``` to ```"default": "./dist/esm/index.js"```
|
|
18
|
-
- Do a ```npm run build``` on pbc-notify
|
|
17
|
+
- Do a ```npm run build``` on pbc-notify-ui
|
|
19
18
|
- Do a ```npm run build``` on client app
|
|
20
|
-
- A ```dist``` folder will be generated
|
|
19
|
+
- A ```dist``` folder will be generated with the front-end
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"foundation-inbox-flyout.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAItD,OAAO,EAAC,mBAAmB,EAAC,MAAM,aAAa,CAAC;AAEhD,qBAKa,qBAAsB,SAAQ,mBAAmB;IAE5D,MAAM,EAAE,MAAM,CAAC;IACH,YAAY,EAAE,OAAO,CAAQ;IAE5B,IAAI;
|
|
1
|
+
{"version":3,"file":"foundation-inbox-flyout.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAItD,OAAO,EAAC,mBAAmB,EAAC,MAAM,aAAa,CAAC;AAEhD,qBAKa,qBAAsB,SAAQ,mBAAmB;IAE5D,MAAM,EAAE,MAAM,CAAC;IACH,YAAY,EAAE,OAAO,CAAQ;IAE5B,IAAI;IAKV,KAAK;CAIb"}
|
package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare class InboxSubscription extends FASTElement {
|
|
|
11
11
|
disconnectedCallback(): void;
|
|
12
12
|
templateChanged(): void;
|
|
13
13
|
parameterEdit(value: any): void;
|
|
14
|
-
verifySubscribe
|
|
14
|
+
verifySubscribe(): void;
|
|
15
15
|
isFirstElement: (parameter: RuleParameterEntity) => boolean;
|
|
16
16
|
subscribeTemplate(): Promise<void>;
|
|
17
17
|
createParametersOperatorMap: (conditions: any) => {};
|
|
@@ -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,EAAE,WAAW,EAAmC,MAAM,yBAAyB,CAAC;AACvF,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAKxD,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAEhE,qBAKa,iBAAkB,SAAQ,WAAW;IAE1C,QAAQ,MAAC;IACf,OAAO,CAAC,iBAAiB,CAAM;IACnB,mBAAmB,KAAM;IACzB,iBAAiB,UAAQ;IACxB,WAAW,EAAE,WAAW,CAAC;IAEtC,iBAAiB;
|
|
1
|
+
{"version":3,"file":"inbox-subscription.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAmC,MAAM,yBAAyB,CAAC;AACvF,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAKxD,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAEhE,qBAKa,iBAAkB,SAAQ,WAAW;IAE1C,QAAQ,MAAC;IACf,OAAO,CAAC,iBAAiB,CAAM;IACnB,mBAAmB,KAAM;IACzB,iBAAiB,UAAQ;IACxB,WAAW,EAAE,WAAW,CAAC;IAEtC,iBAAiB;IAIjB,oBAAoB;IAMpB,eAAe;IAmBf,aAAa,CAAC,KAAK,EAAE,GAAG;IAKxB,eAAe;IAOf,cAAc,cACD,mBAAmB,aACkF;IAE5G,iBAAiB;IAKvB,2BAA2B,0BAQ1B;CACF"}
|
|
@@ -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,EAAE,WAAW,EAAmC,MAAM,yBAAyB,CAAC;AAGvF,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,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,EAAE,WAAW,EAAmC,MAAM,yBAAyB,CAAC;AAGvF,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAI3D,qBAKa,aAAc,SAAQ,WAAW;IAE1B,SAAS,EAAE,mBAAmB,CAAC;IAC3C,cAAc,EAAE,OAAO,CAAS;IAChC,QAAQ,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAM;IAEpC,iBAAiB;IAsBjB,oBAAoB;IAIpB,aAAa,CAAC,UAAU,KAAA;CAOzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-parameter.template.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAsB,MAAM,yBAAyB,CAAC;AAO3E,eAAO,MAAM,qBAAqB,EAAE,
|
|
1
|
+
{"version":3,"file":"rule-parameter.template.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAsB,MAAM,yBAAyB,CAAC;AAO3E,eAAO,MAAM,qBAAqB,EAAE,YAsFnC,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { FASTElement } from '@microsoft/fast-element';
|
|
|
2
2
|
import { InboxTab } from './inbox.template';
|
|
3
3
|
import { RuleTemplate, Rule, NotificationRuleTemplateReply, Alert } from './inbox.types';
|
|
4
4
|
import { Tabs } from '@genesislcap/foundation-zero';
|
|
5
|
+
import { Auth } from '@genesislcap/foundation-comms';
|
|
5
6
|
import { AlertService } from '../../services/alert.service';
|
|
6
7
|
import { RuleService } from '../../services/rule.service';
|
|
7
8
|
import { TemplateService } from '../../services/template.service';
|
|
@@ -11,6 +12,7 @@ import { TemplateService } from '../../services/template.service';
|
|
|
11
12
|
* @beta
|
|
12
13
|
*/
|
|
13
14
|
export declare class FoundationInboxBase extends FASTElement {
|
|
15
|
+
auth: Auth;
|
|
14
16
|
ready: boolean;
|
|
15
17
|
alertService: AlertService;
|
|
16
18
|
private alerts;
|
|
@@ -26,6 +28,7 @@ export declare class FoundationInboxBase extends FASTElement {
|
|
|
26
28
|
ruleTemplateDetails: NotificationRuleTemplateReply;
|
|
27
29
|
tabs: Tabs;
|
|
28
30
|
connectedCallback(): Promise<void>;
|
|
31
|
+
disconnectedCallback(): void;
|
|
29
32
|
open(): Promise<void>;
|
|
30
33
|
close(): void;
|
|
31
34
|
checkActiveTab(inboxTab: InboxTab): "" | "display: none;";
|
|
@@ -35,7 +38,6 @@ export declare class FoundationInboxBase extends FASTElement {
|
|
|
35
38
|
templatesChanged: () => RuleTemplate[];
|
|
36
39
|
searchAlertLogChanged: () => void;
|
|
37
40
|
searchSubscribeChanged: () => void;
|
|
38
|
-
deleteNotifyAlert(alertId: string): Promise<void>;
|
|
39
41
|
editAlert(): void;
|
|
40
42
|
playPauseAlert(ruleClicked: Rule): Promise<void>;
|
|
41
43
|
deleteAlert(ruleClicked: Rule): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEjF,OAAO,EAAE,QAAQ,EAAuC,MAAM,kBAAkB,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,6BAA6B,EAAE,KAAK,EAAmC,MAAM,eAAe,CAAC;AAC1H,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"inbox.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEjF,OAAO,EAAE,QAAQ,EAAuC,MAAM,kBAAkB,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,6BAA6B,EAAE,KAAK,EAAmC,MAAM,eAAe,CAAC;AAC1H,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAEpD,OAAO,EAAE,IAAI,EAAW,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAElE;;;;GAIG;AAEH,qBAAa,mBAAoB,SAAQ,WAAW;IAC5C,IAAI,EAAE,IAAI,CAAC;IACL,KAAK,EAAE,OAAO,CAAS;IAErB,YAAY,EAAE,YAAY,CAAC;IAC7B,OAAO,CAAC,MAAM,CAAe;IAC7B,YAAY,EAAE,KAAK,EAAE,CAAM;IAC3B,cAAc,EAAE,MAAM,CAAM;IAE3B,WAAW,EAAE,WAAW,CAAC;IAC1B,OAAO,CAAC,KAAK,CAAc;IAC3B,WAAW,EAAE,IAAI,EAAE,CAAM;IAEpB,mBAAmB,EAAE,eAAe,CAAC;IAC1C,SAAS,EAAE,YAAY,EAAE,CAAM;IAC/B,eAAe,EAAE,YAAY,EAAE,CAAM;IAErC,eAAe,EAAE,MAAM,CAAM;IAC7B,mBAAmB,EAAE,6BAA6B,CAAQ;IAE/D,IAAI,EAAE,IAAI,CAAC;IAEZ,iBAAiB;IAIvB,oBAAoB;IAIP,IAAI;IAcV,KAAK;IAKZ,cAAc,CAAC,QAAQ,EAAE,QAAQ;IAM3B,eAAe,CAAC,QAAQ,EAAE,QAAQ;IAqBxC,aAAa,gBAAyC;IAEtD,YAAY,eAAuC;IAEnD,gBAAgB,uBAA+C;IAE/D,qBAAqB,aAWpB;IAED,sBAAsB,aAWrB;IAKD,SAAS;IAGH,cAAc,CAAC,WAAW,EAAE,IAAI;IAgBhC,WAAW,CAAC,WAAW,EAAE,IAAI;IAQ7B,wBAAwB,CAAC,YAAY,EAAE,GAAG;CAYjD;AAED,qBAKa,eAAgB,SAAQ,mBAAmB;CAEvD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.styles.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"inbox.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.styles.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,WAAW,iDAkOvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox.template.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.template.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"inbox.template.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.template.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAI1C,oBAAY,QAAQ;IAClB,QAAQ,IAAA;IACR,QAAQ,IAAA;IACR,SAAS,IAAA;CACV;AAED;;GAEG;AACH,eAAO,MAAM,uBAAuB,sEA8KnC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Select } from '@genesislcap/foundation-zero';
|
|
2
1
|
import { FASTElement } from '@microsoft/fast-element';
|
|
3
2
|
import { ConditionBuilderEntity, ParameterBuilderEntity } from '../template-dialog.types';
|
|
4
3
|
import { SystemService } from '../../../../../../services/system.service';
|
|
@@ -15,7 +14,6 @@ export declare class ConditionBuilder extends FASTElement {
|
|
|
15
14
|
rightValueUserEntry: string;
|
|
16
15
|
rightValueItems: Array<any>;
|
|
17
16
|
rightValueItemsProperty: any;
|
|
18
|
-
selectRightValueUserEntry: Select;
|
|
19
17
|
connectedCallback(): Promise<void>;
|
|
20
18
|
disconnectedCallback(): void;
|
|
21
19
|
createRightValueItems(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"condition-builder.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"condition-builder.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAyC,MAAM,yBAAyB,CAAC;AAC7F,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAI1F,OAAO,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAI1E,qBAKa,gBAAiB,SAAQ,WAAW;IAEhC,aAAa,EAAE,aAAa,CAAC;IAEtC,SAAS,EAAE,sBAAsB,CAAC;IAElC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAEpC,cAAc,EAAE,KAAK,CAAC,GAAG,CAAC,CAAK;IAC/B,SAAS,EAAE,GAAG,CAAC;IAEf,eAAe,EAAE,MAAM,CAAC;IAExB,aAAa,EAAE,MAAM,CAAwB;IAC7C,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;IAE5B,eAAe,EAAE,KAAK,CAAC,GAAG,CAAC,CAAM;IAEjC,uBAAuB,EAAE,GAAG,CAAM;IAExC,iBAAiB;IAoBvB,oBAAoB;IAIpB,qBAAqB;IAYf,eAAe;IAMrB,iBAAiB;IAOX,gBAAgB;IAYtB,eAAe;IASf,gBAAgB;IAWhB,gBAAgB;IAOhB,sBAAsB;IAOtB,oBAAoB;IAiBpB,qBAAqB;IAOrB,0BAA0B;IAO1B,eAAe;CAGhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"condition-builder.template.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.template.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAA2B,MAAM,yBAAyB,CAAC;AAIhF,eAAO,MAAM,wBAAwB,EAAE,
|
|
1
|
+
{"version":3,"file":"condition-builder.template.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.template.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAA2B,MAAM,yBAAyB,CAAC;AAIhF,eAAO,MAAM,wBAAwB,EAAE,YAoEtC,CAAC"}
|
|
@@ -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,EAAiB,WAAW,EAAc,MAAM,yBAAyB,CAAC;AAGjF,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,kBAAkB,EAAY,MAAM,yBAAyB,CAAC;AAGvH,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAKtD,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAIvE,qBAKa,cAAe,SAAQ,WAAW;IAE5B,mBAAmB,EAAE,eAAe,CAAC;IACvC,aAAa,EAAE,aAAa,CAAC;IAC7B,aAAa,EAAE,aAAa,CAAC;IAEhC,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,MAAC;IACP,OAAO,MAAC;IACR,QAAQ,EAAE,MAAM,CAAM;IACtB,KAAK,MAAC;IACN,QAAQ,MAAC;IAET,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,GAAG,CAAC,CAAM;IACxB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAM;IAE3B,kBAAkB,EAAE,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;IAE7F,MAAM,EAAE,MAAM,CAAC;IAEF,UAAU,CAAC,MAAM,EAAE,GAAG;IAmEnC,IAAI,mBAAmB,IAAI,MAAM,CAKhC;IAED,MAAM;
|
|
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,EAAiB,WAAW,EAAc,MAAM,yBAAyB,CAAC;AAGjF,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,kBAAkB,EAAY,MAAM,yBAAyB,CAAC;AAGvH,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAKtD,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAIvE,qBAKa,cAAe,SAAQ,WAAW;IAE5B,mBAAmB,EAAE,eAAe,CAAC;IACvC,aAAa,EAAE,aAAa,CAAC;IAC7B,aAAa,EAAE,aAAa,CAAC;IAEhC,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,MAAC;IACP,OAAO,MAAC;IACR,QAAQ,EAAE,MAAM,CAAM;IACtB,KAAK,MAAC;IACN,QAAQ,MAAC;IAET,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,GAAG,CAAC,CAAM;IACxB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAM;IAE3B,kBAAkB,EAAE,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;IAE7F,MAAM,EAAE,MAAM,CAAC;IAEF,UAAU,CAAC,MAAM,EAAE,GAAG;IAmEnC,IAAI,mBAAmB,IAAI,MAAM,CAKhC;IAED,MAAM;IAuCN,gBAAgB,CAAC,QAAQ,KAAA;IAoBzB,KAAK;IAkBL,YAAY;IAIZ,aAAa,CAAC,eAAe,EAAE,sBAAsB;IAGrD,eAAe,CAAC,gBAAgB,EAAE,sBAAsB;IAYxD,YAAY;IAIZ,aAAa,CAAC,eAAe,EAAE,sBAAsB;IAIrD,eAAe,CAAC,gBAAgB,EAAE,sBAAsB;IAWlD,eAAe;CAItB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-dialog.types.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB;;;CAGrB,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,OAAO,kBAAkB,CAAC,MAAM,CAAC;CACxC,GAAG;IACF,IAAI,EAAE,OAAO,kBAAkB,CAAC,IAAI,CAAC;IACrC,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,iBAAiB,CAAC,EAAE;QAClB,WAAW,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;KACxB,CAAC;IACF,iBAAiB,EAAE,GAAG,CAAA;
|
|
1
|
+
{"version":3,"file":"template-dialog.types.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB;;;CAGrB,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,OAAO,kBAAkB,CAAC,MAAM,CAAC;CACxC,GAAG;IACF,IAAI,EAAE,OAAO,kBAAkB,CAAC,IAAI,CAAC;IACrC,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,iBAAiB,CAAC,EAAE;QAClB,WAAW,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;KACxB,CAAC;IACF,iBAAiB,EAAE,GAAG,CAAC;IACvB,uBAAuB,EAAE,MAAM,CAAA;CAChC,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,GAAG,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;CACtB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifyPermissions.d.ts","sourceRoot":"","sources":["../../../src/utils/notifyPermissions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;CAK5B,CAAC"}
|
|
@@ -9,11 +9,16 @@ let FoundationInboxFlyout = class FoundationInboxFlyout extends FoundationInboxB
|
|
|
9
9
|
this.flyoutClosed = true;
|
|
10
10
|
}
|
|
11
11
|
open() {
|
|
12
|
+
const _super = Object.create(null, {
|
|
13
|
+
open: { get: () => super.open }
|
|
14
|
+
});
|
|
12
15
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
+
_super.open.call(this);
|
|
13
17
|
this.flyoutClosed = false;
|
|
14
18
|
});
|
|
15
19
|
}
|
|
16
20
|
close() {
|
|
21
|
+
super.close();
|
|
17
22
|
this.flyout.closeFlyout();
|
|
18
23
|
}
|
|
19
24
|
};
|
package/dist/esm/components/foundation-inbox/components/inbox-subscription/inbox-subscription.js
CHANGED
|
@@ -11,7 +11,6 @@ let InboxSubscription = class InboxSubscription extends FASTElement {
|
|
|
11
11
|
this.parametersDetails = {};
|
|
12
12
|
this.parametersOperators = {};
|
|
13
13
|
this.subscribeDisabled = true;
|
|
14
|
-
this.verifySubscribe = () => this.subscribeDisabled = !Object.values(this.parametersDetails).every(x => x !== '');
|
|
15
14
|
this.isFirstElement = (parameter) => Object.values(this.template.PARAMETERS).findIndex(p => p.PARAM_NAME === parameter.PARAM_NAME) === 0;
|
|
16
15
|
this.createParametersOperatorMap = (conditions) => {
|
|
17
16
|
this.parametersOperators = {};
|
|
@@ -25,11 +24,11 @@ let InboxSubscription = class InboxSubscription extends FASTElement {
|
|
|
25
24
|
}
|
|
26
25
|
connectedCallback() {
|
|
27
26
|
super.connectedCallback();
|
|
28
|
-
this.parametersDetails = {};
|
|
29
|
-
this.subscribeDisabled = true;
|
|
30
27
|
}
|
|
31
28
|
disconnectedCallback() {
|
|
32
29
|
super.disconnectedCallback();
|
|
30
|
+
this.parametersDetails = {};
|
|
31
|
+
this.subscribeDisabled = true;
|
|
33
32
|
}
|
|
34
33
|
templateChanged() {
|
|
35
34
|
const parameters = this.template.PARAMETERS;
|
|
@@ -48,6 +47,12 @@ let InboxSubscription = class InboxSubscription extends FASTElement {
|
|
|
48
47
|
this.parametersDetails[value.parameter.PARAM_NAME] = value.valueTyped;
|
|
49
48
|
this.verifySubscribe();
|
|
50
49
|
}
|
|
50
|
+
verifySubscribe() {
|
|
51
|
+
const parameters = Object.values(this.parametersDetails);
|
|
52
|
+
this.subscribeDisabled = parameters.length > 0
|
|
53
|
+
? !parameters.every(x => x !== '')
|
|
54
|
+
: false;
|
|
55
|
+
}
|
|
51
56
|
subscribeTemplate() {
|
|
52
57
|
return __awaiter(this, void 0, void 0, function* () {
|
|
53
58
|
yield this.ruleService.subscribeRule(this.template.DYNAMIC_RULE_ID, this.parametersDetails);
|
|
@@ -16,7 +16,7 @@ export const InboxSubscriptionStyles = css `
|
|
|
16
16
|
flex-direction: column;
|
|
17
17
|
gap: calc(var(--design-unit) * 2px);
|
|
18
18
|
overflow: auto;
|
|
19
|
-
max-height: calc(var(--design-unit) *
|
|
19
|
+
max-height: calc(var(--design-unit) * 80px);
|
|
20
20
|
border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
|
|
21
21
|
margin: calc(var(--design-unit) * 2px);
|
|
22
22
|
padding: calc(var(--design-unit) * 2px);
|
|
@@ -3,6 +3,7 @@ import { FASTElement, attr, customElement, observable } from "@microsoft/fast-el
|
|
|
3
3
|
import { RuleParameterTemplate } from "./rule-parameter.template";
|
|
4
4
|
import { RuleParameterStyles } from "./rule-parameter.styles";
|
|
5
5
|
import { PARAM_TYPE_BOOLEAN } from "../../../../foundation-notification-dashboard/types/param-type";
|
|
6
|
+
import { PARAM_SOURCE_TYPE_DEFINED_GROUP, PARAM_SOURCE_TYPE_USER_TEXT } from "../../../../foundation-notification-dashboard/types/param-source-type";
|
|
6
7
|
let RuleParameter = class RuleParameter extends FASTElement {
|
|
7
8
|
constructor() {
|
|
8
9
|
super(...arguments);
|
|
@@ -11,12 +12,21 @@ let RuleParameter = class RuleParameter extends FASTElement {
|
|
|
11
12
|
}
|
|
12
13
|
connectedCallback() {
|
|
13
14
|
super.connectedCallback();
|
|
14
|
-
switch (this.parameter.
|
|
15
|
-
case
|
|
16
|
-
this.inputValue = '
|
|
15
|
+
switch (this.parameter.PARAM_SOURCE_TYPE) {
|
|
16
|
+
case PARAM_SOURCE_TYPE_DEFINED_GROUP:
|
|
17
|
+
this.inputValue = this.parameter.PARAM_SOURCE.split(',')[0];
|
|
18
|
+
break;
|
|
19
|
+
case PARAM_SOURCE_TYPE_USER_TEXT:
|
|
20
|
+
switch (this.parameter.PARAM_TYPE) {
|
|
21
|
+
case PARAM_TYPE_BOOLEAN:
|
|
22
|
+
this.inputValue = 'true';
|
|
23
|
+
break;
|
|
24
|
+
default:
|
|
25
|
+
this.inputValue = '';
|
|
26
|
+
break;
|
|
27
|
+
}
|
|
17
28
|
break;
|
|
18
29
|
default:
|
|
19
|
-
this.inputValue = '';
|
|
20
30
|
break;
|
|
21
31
|
}
|
|
22
32
|
}
|
|
@@ -24,9 +34,6 @@ let RuleParameter = class RuleParameter extends FASTElement {
|
|
|
24
34
|
super.disconnectedCallback();
|
|
25
35
|
}
|
|
26
36
|
parameterEdit(inputValue) {
|
|
27
|
-
if (this.inputValue === inputValue) {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
37
|
this.inputValue = inputValue;
|
|
31
38
|
this.$emit('parameterEdited', {
|
|
32
39
|
parameter: this.parameter,
|
|
@@ -16,6 +16,7 @@ export const RuleParameterTemplate = html `
|
|
|
16
16
|
autofocus=${x => x.isFirstElement}
|
|
17
17
|
class="input-field"
|
|
18
18
|
:value=${sync(x => x.inputValue)}
|
|
19
|
+
@input=${(x, c) => x.parameterEdit(c.event.target.value)}
|
|
19
20
|
>
|
|
20
21
|
</zero-text-field>
|
|
21
22
|
`)}
|
|
@@ -31,6 +32,7 @@ export const RuleParameterTemplate = html `
|
|
|
31
32
|
</zero-number-field>
|
|
32
33
|
`)}
|
|
33
34
|
|
|
35
|
+
<!-- TODO: Implement
|
|
34
36
|
${when(x => x.parameter.PARAM_TYPE === PARAM_TYPE_BOOLEAN, html `
|
|
35
37
|
<zero-select
|
|
36
38
|
autofocus=${x => x.isFirstElement}
|
|
@@ -41,6 +43,7 @@ export const RuleParameterTemplate = html `
|
|
|
41
43
|
<zero-option value="false">false</zero-option>
|
|
42
44
|
</zero-select>
|
|
43
45
|
`)}
|
|
46
|
+
-->
|
|
44
47
|
`)}
|
|
45
48
|
|
|
46
49
|
<!-- DEFINED_GROUP -->
|
|
@@ -4,6 +4,7 @@ import { InboxStyles as styles } from './inbox.styles';
|
|
|
4
4
|
import { InboxTab, FoundationInboxTemplate as template } from './inbox.template';
|
|
5
5
|
import { RuleStatus } from './inbox.types';
|
|
6
6
|
import { logger, updateArray } from '../../utils';
|
|
7
|
+
import { Auth } from '@genesislcap/foundation-comms';
|
|
7
8
|
import { AlertService } from '../../services/alert.service';
|
|
8
9
|
import { RuleService } from '../../services/rule.service';
|
|
9
10
|
import { TemplateService } from '../../services/template.service';
|
|
@@ -56,6 +57,13 @@ export class FoundationInboxBase extends FASTElement {
|
|
|
56
57
|
});
|
|
57
58
|
return __awaiter(this, void 0, void 0, function* () {
|
|
58
59
|
_super.connectedCallback.call(this);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
disconnectedCallback() {
|
|
63
|
+
super.disconnectedCallback();
|
|
64
|
+
}
|
|
65
|
+
open() {
|
|
66
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
67
|
this.alertService.getAlerts().subscribe({
|
|
60
68
|
next: (streamMessage) => {
|
|
61
69
|
var _a;
|
|
@@ -66,10 +74,6 @@ export class FoundationInboxBase extends FASTElement {
|
|
|
66
74
|
logger.error(error);
|
|
67
75
|
},
|
|
68
76
|
});
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
open() {
|
|
72
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
73
77
|
this.rules = yield this.ruleService.getRules();
|
|
74
78
|
this.templates = yield this.ruleTemplateService.getRuleTemplates();
|
|
75
79
|
});
|
|
@@ -102,13 +106,6 @@ export class FoundationInboxBase extends FASTElement {
|
|
|
102
106
|
});
|
|
103
107
|
}
|
|
104
108
|
// #endregion
|
|
105
|
-
// #region Alert Log
|
|
106
|
-
// TODO:
|
|
107
|
-
deleteNotifyAlert(alertId) {
|
|
108
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
// #endregion
|
|
112
109
|
// #region My Alerts
|
|
113
110
|
// TODO:
|
|
114
111
|
editAlert() {
|
|
@@ -149,6 +146,9 @@ export class FoundationInboxBase extends FASTElement {
|
|
|
149
146
|
});
|
|
150
147
|
}
|
|
151
148
|
}
|
|
149
|
+
__decorate([
|
|
150
|
+
Auth
|
|
151
|
+
], FoundationInboxBase.prototype, "auth", void 0);
|
|
152
152
|
__decorate([
|
|
153
153
|
observable
|
|
154
154
|
], FoundationInboxBase.prototype, "ready", void 0);
|
|
@@ -145,23 +145,6 @@ export const InboxStyles = css `
|
|
|
145
145
|
font-size: calc(var(--design-unit) * 3px)
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
.toast-delete {
|
|
149
|
-
width: 50px;
|
|
150
|
-
display: flex;
|
|
151
|
-
justify-content: center;
|
|
152
|
-
align-items: center;
|
|
153
|
-
border-left: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
|
|
154
|
-
visibility: hidden;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.toast:hover > .toast-delete {
|
|
158
|
-
cursor: pointer;
|
|
159
|
-
visibility: visible;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.toast-delete:hover {
|
|
163
|
-
background-color: #2e3034;
|
|
164
|
-
}
|
|
165
148
|
/***/
|
|
166
149
|
|
|
167
150
|
/* My Alerts */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { sync } from '@genesislcap/foundation-utils';
|
|
2
2
|
import { html, ref, repeat, when } from '@microsoft/fast-element';
|
|
3
3
|
import { getFormattedDate, getIcon, getSeverityColor, getStatus } from './inbox.utils';
|
|
4
|
+
import { NotifyPermission } from '../../utils/notifyPermissions';
|
|
4
5
|
export var InboxTab;
|
|
5
6
|
(function (InboxTab) {
|
|
6
7
|
InboxTab[InboxTab["AlertLog"] = 0] = "AlertLog";
|
|
@@ -14,34 +15,38 @@ export const FoundationInboxTemplate = html `
|
|
|
14
15
|
<div class="inbox-content">
|
|
15
16
|
<zero-tabs ${(ref('tabs'))} appearance="secondary" activeid=${x => InboxTab.AlertLog}>
|
|
16
17
|
<zero-tab slot="alert-log-tab"
|
|
17
|
-
id=${
|
|
18
|
+
id=${InboxTab.AlertLog}
|
|
18
19
|
@click=${x => x.inboxTabChanged(InboxTab.AlertLog)}
|
|
19
20
|
appearance="secondary"
|
|
20
21
|
>
|
|
21
22
|
Alert Log
|
|
22
23
|
</zero-tab>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
24
|
+
${when((x) => x.auth.currentUser.hasPermission(NotifyPermission.NOTIFY_RULE_VIEW), html `
|
|
25
|
+
<zero-tab
|
|
26
|
+
slot="my-alerts-tab"
|
|
27
|
+
id=${InboxTab.MyAlerts}
|
|
28
|
+
@click=${x => x.inboxTabChanged(InboxTab.MyAlerts)}
|
|
29
|
+
appearance="secondary"
|
|
30
|
+
>
|
|
31
|
+
My Alerts
|
|
32
|
+
</zero-tab>
|
|
33
|
+
`)}
|
|
34
|
+
${when((x) => x.auth.currentUser.hasPermission(NotifyPermission.NOTIFICATION_RULE_TEMPLATE_VIEW), html `
|
|
35
|
+
<zero-tab
|
|
36
|
+
slot="subscribe-tab"
|
|
37
|
+
id=${InboxTab.Subscribe}
|
|
38
|
+
@click=${x => x.inboxTabChanged(InboxTab.Subscribe)}
|
|
39
|
+
appearance="secondary"
|
|
40
|
+
>
|
|
41
|
+
Subscribe
|
|
42
|
+
</zero-tab>
|
|
43
|
+
`)}
|
|
44
|
+
|
|
40
45
|
<!-- Alerts -->
|
|
41
46
|
<zero-tab-panel
|
|
42
47
|
slot="alert-log-tab"
|
|
43
48
|
class="alert-log-tab-panel"
|
|
44
|
-
id=${
|
|
49
|
+
id=${InboxTab.AlertLog}
|
|
45
50
|
style=${x => x.checkActiveTab(InboxTab.AlertLog)}
|
|
46
51
|
>
|
|
47
52
|
<div class="search">
|
|
@@ -64,89 +69,88 @@ export const FoundationInboxTemplate = html `
|
|
|
64
69
|
<span class="toast-date" slot="date">${(x) => getFormattedDate(x.CREATED_AT)}</span>
|
|
65
70
|
</div>
|
|
66
71
|
</div>
|
|
67
|
-
<div class="toast-delete" @click=${(x, c) => c.parent.deleteNotifyAlert(x.ALERT_ID)}>
|
|
68
|
-
<zero-icon name="xmark" variant="solid" size="lg"><zero-icon>
|
|
69
|
-
</div>
|
|
70
72
|
</div>
|
|
71
73
|
`)}
|
|
72
74
|
</div>
|
|
73
75
|
</zero-tab-panel>
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
76
|
+
${when((x) => x.auth.currentUser.hasPermission(NotifyPermission.NOTIFY_RULE_VIEW), html `
|
|
77
|
+
<!-- Rules -->
|
|
78
|
+
<zero-tab-panel
|
|
79
|
+
slot="my-alerts-tab"
|
|
80
|
+
class="my-alerts-tab-panel"
|
|
81
|
+
id=${InboxTab.MyAlerts}
|
|
82
|
+
style=${x => x.checkActiveTab(InboxTab.MyAlerts)}
|
|
83
|
+
>
|
|
84
|
+
<div class="my-alerts-tab-content">
|
|
85
|
+
${repeat((x) => x.rulesFilter, html `
|
|
86
|
+
<div class="rule">
|
|
87
|
+
<div class="rule-name">${x => x.NAME}</div>
|
|
88
|
+
<div class="rule-expression">${x => x.RULE_EXPRESSION}</div>
|
|
89
|
+
<div class="rule-datetime">${(x, c) => getFormattedDate(x.DATETIME)}</div>
|
|
90
|
+
<div class="rule-status-actions">
|
|
91
|
+
<div class="rule-status ${x => getStatus(x.RULE_STATUS).toLowerCase()}">
|
|
92
|
+
${(x, c) => getStatus(x.RULE_STATUS)}
|
|
93
|
+
</div>
|
|
94
|
+
<div class="rule-actions">
|
|
95
|
+
<!--
|
|
96
|
+
<span class="rule-action-edit" @click=${(x, c) => c.parent.editAlert(x)}}>
|
|
97
|
+
<zero-icon name="gear"></zero-icon>
|
|
98
|
+
</span>
|
|
99
|
+
-->
|
|
100
|
+
<span class="rule-action-enable-disable" @click=${(x, c) => c.parent.playPauseAlert(x)}>
|
|
101
|
+
<zero-icon name=${x => getIcon(x.RULE_STATUS)}></zero-icon>
|
|
102
|
+
</span>
|
|
103
|
+
<span class="rule-action-delete" @click=${(x, c) => c.parent.deleteAlert(x)}>
|
|
104
|
+
<zero-icon name="trash"></zero-icon>
|
|
105
|
+
</span>
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
104
108
|
</div>
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
style=${x => x.checkActiveTab(InboxTab.Subscribe)}
|
|
117
|
-
>
|
|
118
|
-
<div class="search">
|
|
119
|
-
<zero-text-field
|
|
120
|
-
class="search-input"
|
|
121
|
-
:value=${sync(x => x.searchSubscribe)}
|
|
122
|
-
placeholder="Search Templates..."
|
|
123
|
-
autocomplete="off"
|
|
109
|
+
`)}
|
|
110
|
+
</div>
|
|
111
|
+
</zero-tab-panel>
|
|
112
|
+
`)}
|
|
113
|
+
${when((x) => x.auth.currentUser.hasPermission(NotifyPermission.NOTIFICATION_RULE_TEMPLATE_VIEW), html `
|
|
114
|
+
<!-- Templates -->
|
|
115
|
+
<zero-tab-panel
|
|
116
|
+
slot="subscribe-tab"
|
|
117
|
+
class="subscribe-tab-panel"
|
|
118
|
+
id=${InboxTab.Subscribe}
|
|
119
|
+
style=${x => x.checkActiveTab(InboxTab.Subscribe)}
|
|
124
120
|
>
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
<div
|
|
132
|
-
class="template"
|
|
133
|
-
@click=${(x, c) => c.parent.openTemplateSubscription(x)}
|
|
134
|
-
id=${(x) => x.ID}
|
|
121
|
+
<div class="search">
|
|
122
|
+
<zero-text-field
|
|
123
|
+
class="search-input"
|
|
124
|
+
:value=${sync(x => x.searchSubscribe)}
|
|
125
|
+
placeholder="Search Templates..."
|
|
126
|
+
autocomplete="off"
|
|
135
127
|
>
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
`)}
|
|
141
|
-
</div>
|
|
142
|
-
${when(x => x.ruleTemplateDetails, html `
|
|
143
|
-
<inbox-subscription
|
|
144
|
-
:template=${x => x.ruleTemplateDetails}
|
|
145
|
-
@templateSubscribed=${x => x.ruleTemplateDetails = null}
|
|
128
|
+
</zero-text-field>
|
|
129
|
+
</div>
|
|
130
|
+
<div
|
|
131
|
+
class="subscribe-tab-content"
|
|
146
132
|
>
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
133
|
+
${repeat((x) => x.templatesFilter, html `
|
|
134
|
+
<div
|
|
135
|
+
class="template"
|
|
136
|
+
@click=${(x, c) => c.parent.openTemplateSubscription(x)}
|
|
137
|
+
id=${(x) => x.ID}
|
|
138
|
+
>
|
|
139
|
+
<div class="template-name">${x => x.NAME}</div>
|
|
140
|
+
<div class="template-description">${x => x.DESCRIPTION}</div>
|
|
141
|
+
<div class="template-datetime">${(x, c) => getFormattedDate(x.DATETIME)}</div>
|
|
142
|
+
</div>
|
|
143
|
+
`)}
|
|
144
|
+
</div>
|
|
145
|
+
${when(x => x.ruleTemplateDetails, html `
|
|
146
|
+
<inbox-subscription
|
|
147
|
+
:template=${x => x.ruleTemplateDetails}
|
|
148
|
+
@templateSubscribed=${x => x.ruleTemplateDetails = null}
|
|
149
|
+
>
|
|
150
|
+
</inbox-subscription>
|
|
151
|
+
`)}
|
|
152
|
+
</zero-tab-panel>
|
|
153
|
+
`)}
|
|
150
154
|
</zero-tabs>
|
|
151
155
|
</div>
|
|
152
156
|
`;
|
|
@@ -116,6 +116,7 @@ let ConditionBuilder = class ConditionBuilder extends FASTElement {
|
|
|
116
116
|
this.rightValueUserEntry = ((_a = this.parameters) === null || _a === void 0 ? void 0 : _a.length) > 0
|
|
117
117
|
? this.parameters[0].UUID
|
|
118
118
|
: null;
|
|
119
|
+
this.condition.RIGHT_VALUE = this.rightValueUserEntry;
|
|
119
120
|
}
|
|
120
121
|
this.$emit('edit', this.condition);
|
|
121
122
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { sync } from '@genesislcap/foundation-utils';
|
|
2
|
-
import { html,
|
|
2
|
+
import { html, repeat, when } from "@microsoft/fast-element";
|
|
3
3
|
import { ALL_LOGICAL_OPERATORS } from '../../../../types/logical-operator';
|
|
4
4
|
import { ALL_RIGHT_CRITERIAS, RIGHT_CRITERIA_USER_ENTRY, RIGHT_CRITERIA_VALUE } from '../../../../types/right-criteria';
|
|
5
5
|
export const ConditionBuilderTemplate = html `
|
|
@@ -45,7 +45,6 @@ export const ConditionBuilderTemplate = html `
|
|
|
45
45
|
|
|
46
46
|
${when(x => x.rightCriteria === RIGHT_CRITERIA_USER_ENTRY, html `
|
|
47
47
|
<zero-select
|
|
48
|
-
${ref('selectRightValueUserEntry')}
|
|
49
48
|
class="right-criteria-user-entry"
|
|
50
49
|
:value=${sync(x => x.rightValueUserEntry)}
|
|
51
50
|
position="below"
|
|
@@ -102,7 +102,7 @@ let TemplateDialog = class TemplateDialog extends FASTElement {
|
|
|
102
102
|
createAssignment('BODY', this.message),
|
|
103
103
|
createAssignment('NOTIFY_SEVERITY', humanize(this.severity))
|
|
104
104
|
]
|
|
105
|
-
}, PARAMETER_DETAILS: createParameterDetails(this.parameters) });
|
|
105
|
+
}, PARAMETER_DETAILS: createParameterDetails(this.parameters), RULE_EXECUTION_STRATEGY: 'UNLIMITED' });
|
|
106
106
|
switch (this.templateDialogMode) {
|
|
107
107
|
case TemplateDialogMode.CREATE:
|
|
108
108
|
this.ruleTemplateService
|
package/package.json
CHANGED