@genesislcap/pbc-notify-ui 1.0.11 → 1.0.13
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/foundation-inbox-flyout/foundation-inbox-flyout.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.styles.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox.d.ts +2 -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/rules/rule-dialog/rule-dialog.d.ts +0 -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.styles.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/templates/template-dialog/template-dialog.d.ts +0 -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.styles.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.d.ts.map +1 -1
- package/dist/dts/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.styles.js +1 -0
- package/dist/esm/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.template.js +17 -10
- package/dist/esm/components/foundation-inbox/inbox.js +4 -7
- package/dist/esm/components/foundation-inbox/inbox.styles.js +0 -17
- package/dist/esm/components/foundation-inbox/inbox.template.js +131 -127
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.js +0 -8
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.styles.js +3 -2
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.js +0 -11
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.js +0 -10
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.styles.js +3 -2
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.js +0 -12
- package/dist/esm/utils/notifyPermissions.js +6 -0
- package/package.json +1 -1
|
@@ -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;
|
|
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;IAIV,KAAK;CAGb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"foundation-inbox-flyout.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,2BAA2B,
|
|
1
|
+
{"version":3,"file":"foundation-inbox-flyout.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,2BAA2B,iDAcvC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"foundation-inbox-flyout.template.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE,eAAO,MAAM,6BAA6B,
|
|
1
|
+
{"version":3,"file":"foundation-inbox-flyout.template.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE,eAAO,MAAM,6BAA6B,4EAsBzC,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;
|
|
@@ -35,7 +37,6 @@ export declare class FoundationInboxBase extends FASTElement {
|
|
|
35
37
|
templatesChanged: () => RuleTemplate[];
|
|
36
38
|
searchAlertLogChanged: () => void;
|
|
37
39
|
searchSubscribeChanged: () => void;
|
|
38
|
-
deleteNotifyAlert(alertId: string): Promise<void>;
|
|
39
40
|
editAlert(): void;
|
|
40
41
|
playPauseAlert(ruleClicked: Rule): Promise<void>;
|
|
41
42
|
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;IAaV,IAAI;IAKV,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 +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,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAiB,WAAW,EAAc,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAQ,cAAc,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAI7E,OAAO,EAAE,sBAAsB,EAAE,KAAK,EAAkB,MAAM,uDAAuD,CAAC;
|
|
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,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAiB,WAAW,EAAc,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAQ,cAAc,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAI7E,OAAO,EAAE,sBAAsB,EAAE,KAAK,EAAkB,MAAM,uDAAuD,CAAC;AAMtH,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAEvE,qBAKa,UAAW,SAAQ,WAAW;IAE5B,WAAW,EAAE,WAAW,CAAC;IACvB,aAAa,EAAE,aAAa,CAAC;IAC7B,aAAa,EAAE,aAAa,CAAC;IAE5C,MAAM,EAAE,MAAM,CAAC;IACH,cAAc,EAAE,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;IAEjF,OAAO,CAAC,MAAM,CAAS;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAM;IACtB,KAAK,EAAE,MAAM,CAAM;IACnB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,cAAc,EAAE,KAAK,EAAE,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAM;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAM;IAE/C,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAM;IAE7B,UAAU,CAAC,MAAM,EAAE,gBAAgB;IAkDhD,IAAI,eAAe,IAAI,MAAM,CAE5B;IAED,MAAM;IAiCN,gBAAgB,CAAC,QAAQ,KAAA;IAoBzB,KAAK;IAgBL,YAAY;IAIZ,aAAa,CAAC,eAAe,EAAE,sBAAsB;IAGrD,eAAe,CAAC,gBAAgB,EAAE,sBAAsB;IAWlD,eAAe;IAKrB,oBAAoB,IAAI,sBAAsB;CAS/C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-dialog.styles.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rule-dialog.styles.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.styles.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,gBAAgB,iDA4D5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-dialog.template.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAqB,MAAM,yBAAyB,CAAC;AAO1E,eAAO,MAAM,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"rule-dialog.template.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAqB,MAAM,yBAAyB,CAAC;AAO1E,eAAO,MAAM,kBAAkB,EAAE,YA2IhC,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;
|
|
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;IAsCN,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.styles.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"template-dialog.styles.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.styles.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,oBAAoB,iDA8DhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-dialog.template.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAqB,MAAM,yBAAyB,CAAC;AAM1E,eAAO,MAAM,sBAAsB,EAAE,
|
|
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":"AAEA,OAAO,EAAE,YAAY,EAAqB,MAAM,yBAAyB,CAAC;AAM1E,eAAO,MAAM,sBAAsB,EAAE,YAoKpC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifyPermissions.d.ts","sourceRoot":"","sources":["../../../src/utils/notifyPermissions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;CAK5B,CAAC"}
|
|
@@ -1,18 +1,25 @@
|
|
|
1
1
|
import { html, ref } from '@microsoft/fast-element';
|
|
2
2
|
import { FoundationInboxTemplate } from '../../inbox.template';
|
|
3
3
|
export const FoundationInboxFlyoutTemplate = html `
|
|
4
|
-
<zero-flyout
|
|
4
|
+
<zero-flyout
|
|
5
|
+
${ref('flyout')}
|
|
6
|
+
position="right"
|
|
7
|
+
@closed=${x => x.flyoutClosed = true}
|
|
8
|
+
:closed=${x => x.flyoutClosed}
|
|
9
|
+
displayHeader=${false}
|
|
10
|
+
>
|
|
5
11
|
<div class="inbox-header">
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
<div class="inbox-header-title">
|
|
13
|
+
Alerts
|
|
14
|
+
</div>
|
|
15
|
+
<zero-button
|
|
16
|
+
class="inbox-header-close"
|
|
17
|
+
@click=${x => x.close()}
|
|
18
|
+
>
|
|
19
|
+
<zero-icon part="icon" name="xmark" size="xl"></zero-icon>
|
|
20
|
+
</zero-button>
|
|
15
21
|
</div>
|
|
22
|
+
|
|
16
23
|
${FoundationInboxTemplate}
|
|
17
24
|
</zero-flyout>
|
|
18
25
|
`;
|
|
@@ -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';
|
|
@@ -102,13 +103,6 @@ export class FoundationInboxBase extends FASTElement {
|
|
|
102
103
|
});
|
|
103
104
|
}
|
|
104
105
|
// #endregion
|
|
105
|
-
// #region Alert Log
|
|
106
|
-
// TODO:
|
|
107
|
-
deleteNotifyAlert(alertId) {
|
|
108
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
// #endregion
|
|
112
106
|
// #region My Alerts
|
|
113
107
|
// TODO:
|
|
114
108
|
editAlert() {
|
|
@@ -149,6 +143,9 @@ export class FoundationInboxBase extends FASTElement {
|
|
|
149
143
|
});
|
|
150
144
|
}
|
|
151
145
|
}
|
|
146
|
+
__decorate([
|
|
147
|
+
Auth
|
|
148
|
+
], FoundationInboxBase.prototype, "auth", void 0);
|
|
152
149
|
__decorate([
|
|
153
150
|
observable
|
|
154
151
|
], 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";
|
|
@@ -11,142 +12,145 @@ export var InboxTab;
|
|
|
11
12
|
* @public
|
|
12
13
|
*/
|
|
13
14
|
export const FoundationInboxTemplate = html `
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
</
|
|
67
|
-
<div class="toast-
|
|
68
|
-
<
|
|
15
|
+
<div class="inbox-content">
|
|
16
|
+
<zero-tabs ${(ref('tabs'))} appearance="secondary" activeid=${x => InboxTab.AlertLog}>
|
|
17
|
+
<zero-tab slot="alert-log-tab"
|
|
18
|
+
id=${InboxTab.AlertLog}
|
|
19
|
+
@click=${x => x.inboxTabChanged(InboxTab.AlertLog)}
|
|
20
|
+
appearance="secondary"
|
|
21
|
+
>
|
|
22
|
+
Alert Log
|
|
23
|
+
</zero-tab>
|
|
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
|
+
|
|
45
|
+
<!-- Alerts -->
|
|
46
|
+
<zero-tab-panel
|
|
47
|
+
slot="alert-log-tab"
|
|
48
|
+
class="alert-log-tab-panel"
|
|
49
|
+
id=${InboxTab.AlertLog}
|
|
50
|
+
style=${x => x.checkActiveTab(InboxTab.AlertLog)}
|
|
51
|
+
>
|
|
52
|
+
<div class="search">
|
|
53
|
+
<zero-text-field
|
|
54
|
+
class="search-input"
|
|
55
|
+
:value=${sync((x) => x.searchAlertLog)}
|
|
56
|
+
placeholder="Search Alerts..."
|
|
57
|
+
autocomplete="off"
|
|
58
|
+
>
|
|
59
|
+
</zero-text-field>
|
|
60
|
+
</div>
|
|
61
|
+
<div class="alert-log-tab-content">
|
|
62
|
+
${repeat(x => x.alertsFilter, html `
|
|
63
|
+
<div class="toast" id=${(x) => x.ALERT_ID}>
|
|
64
|
+
<div class="toast-severity" style="background-color: ${(x) => getSeverityColor(x.NOTIFY_SEVERITY)}"></div>
|
|
65
|
+
<div class="toast-content">
|
|
66
|
+
<span class="toast-header">${(x) => x.HEADER}</span>
|
|
67
|
+
<span class="toast-message">${(x) => x.MESSAGE}</span>
|
|
68
|
+
<div class="toast-bottom" slot="bottom">
|
|
69
|
+
<span class="toast-date" slot="date">${(x) => getFormattedDate(x.CREATED_AT)}</span>
|
|
69
70
|
</div>
|
|
70
71
|
</div>
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
</
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
<div class="rule
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
<div class="rule-status
|
|
90
|
-
${
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
72
|
+
</div>
|
|
73
|
+
`)}
|
|
74
|
+
</div>
|
|
75
|
+
</zero-tab-panel>
|
|
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
|
+
<!--
|
|
94
96
|
<span class="rule-action-edit" @click=${(x, c) => c.parent.editAlert(x)}}>
|
|
95
97
|
<zero-icon name="gear"></zero-icon>
|
|
96
98
|
</span>
|
|
97
99
|
-->
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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>
|
|
104
107
|
</div>
|
|
105
108
|
</div>
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
</
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
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"
|
|
124
|
-
>
|
|
125
|
-
</zero-text-field>
|
|
126
|
-
</div>
|
|
127
|
-
<div
|
|
128
|
-
class="subscribe-tab-content"
|
|
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)}
|
|
129
120
|
>
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
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"
|
|
127
|
+
>
|
|
128
|
+
</zero-text-field>
|
|
129
|
+
</div>
|
|
130
|
+
<div
|
|
131
|
+
class="subscribe-tab-content"
|
|
132
|
+
>
|
|
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}
|
|
135
149
|
>
|
|
136
|
-
|
|
137
|
-
<div class="template-description">${x => x.DESCRIPTION}</div>
|
|
138
|
-
<div class="template-datetime">${(x, c) => getFormattedDate(x.DATETIME)}</div>
|
|
139
|
-
</div>
|
|
150
|
+
</inbox-subscription>
|
|
140
151
|
`)}
|
|
141
|
-
</
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
@templateSubscribed=${x => x.ruleTemplateDetails = null}
|
|
146
|
-
>
|
|
147
|
-
</inbox-subscription>
|
|
148
|
-
`)}
|
|
149
|
-
</zero-tab-panel>
|
|
150
|
-
</zero-tabs>
|
|
151
|
-
</div>
|
|
152
|
+
</zero-tab-panel>
|
|
153
|
+
`)}
|
|
154
|
+
</zero-tabs>
|
|
155
|
+
</div>
|
|
152
156
|
`;
|
|
@@ -33,7 +33,6 @@ let RuleDialog = class RuleDialog extends FASTElement {
|
|
|
33
33
|
this.conditions.push(this.createEmptyCondition());
|
|
34
34
|
this.resource = this.resources[0];
|
|
35
35
|
this.resourceFields = yield this.systemService.getFields(this.resource);
|
|
36
|
-
this.tableId = this.resourceFields[0].FIELD_NAME;
|
|
37
36
|
this.topic = this.topics[0];
|
|
38
37
|
this.severity = SEVERITY_INFORMATION;
|
|
39
38
|
break;
|
|
@@ -65,7 +64,6 @@ let RuleDialog = class RuleDialog extends FASTElement {
|
|
|
65
64
|
this.message = getAssignmentValue(assignments, 'BODY');
|
|
66
65
|
this.severity = (_c = getAssignmentValue(assignments, 'NOTIFY_SEVERITY')) === null || _c === void 0 ? void 0 : _c.toUpperCase();
|
|
67
66
|
this.topic = getAssignmentValue(assignments, 'TOPIC');
|
|
68
|
-
this.tableId = getAssignmentValue(assignments, 'TABLE_ENTITY_ID');
|
|
69
67
|
}
|
|
70
68
|
break;
|
|
71
69
|
}
|
|
@@ -81,8 +79,6 @@ let RuleDialog = class RuleDialog extends FASTElement {
|
|
|
81
79
|
}, RESULT_EXPRESSION: {
|
|
82
80
|
ASSIGNMENTS: [
|
|
83
81
|
createAssignment('TOPIC', this.topic),
|
|
84
|
-
createAssignment('TABLE_NAME', this.resource),
|
|
85
|
-
createAssignment('TABLE_ENTITY_ID', this.tableId),
|
|
86
82
|
createAssignment('HEADER', this.header),
|
|
87
83
|
createAssignment('BODY', this.message),
|
|
88
84
|
createAssignment('NOTIFY_SEVERITY', humanize(this.severity))
|
|
@@ -129,7 +125,6 @@ let RuleDialog = class RuleDialog extends FASTElement {
|
|
|
129
125
|
this.topic = null;
|
|
130
126
|
this.topics = [];
|
|
131
127
|
this.severity = null;
|
|
132
|
-
this.tableId = null;
|
|
133
128
|
this.conditions = [];
|
|
134
129
|
}
|
|
135
130
|
// #region Condition
|
|
@@ -182,9 +177,6 @@ __decorate([
|
|
|
182
177
|
__decorate([
|
|
183
178
|
observable
|
|
184
179
|
], RuleDialog.prototype, "resource", void 0);
|
|
185
|
-
__decorate([
|
|
186
|
-
observable
|
|
187
|
-
], RuleDialog.prototype, "tableId", void 0);
|
|
188
180
|
__decorate([
|
|
189
181
|
observable
|
|
190
182
|
], RuleDialog.prototype, "topic", void 0);
|
|
@@ -4,6 +4,7 @@ const header = css `
|
|
|
4
4
|
zero-modal::part(top) {
|
|
5
5
|
padding: calc(var(--design-unit) * 4px);
|
|
6
6
|
border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
|
|
7
|
+
margin: 0px;
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
.rule-dialog-header-title {
|
|
@@ -14,7 +15,7 @@ const header = css `
|
|
|
14
15
|
const footer = css `
|
|
15
16
|
.rule-dialog-footer {
|
|
16
17
|
display: flex;
|
|
17
|
-
padding: calc(var(--design-unit) * 4px);
|
|
18
|
+
padding: 0 calc(var(--design-unit)* 4px) calc(var(--design-unit)* 4px);
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
.rule-dialog-footer .content-row {
|
|
@@ -38,7 +39,7 @@ export const RuleDialogStyles = css `
|
|
|
38
39
|
flex-direction: column;
|
|
39
40
|
width: ${String(modalWidthPx)}px;
|
|
40
41
|
gap: calc(var(--design-unit) * 3px);
|
|
41
|
-
padding:
|
|
42
|
+
padding: calc(var(--design-unit) * 4px);
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
.content-row {
|
|
@@ -47,17 +47,6 @@ export const RuleDialogTemplate = html `
|
|
|
47
47
|
</zero-select>
|
|
48
48
|
</div>
|
|
49
49
|
|
|
50
|
-
<div class="control">
|
|
51
|
-
<label>Table ID</label>
|
|
52
|
-
<zero-select
|
|
53
|
-
:value=${sync(x => x.tableId)}
|
|
54
|
-
>
|
|
55
|
-
${repeat(x => x.resourceFields, html `
|
|
56
|
-
<zero-option value=${x => x.FIELD_NAME}>${x => x.FIELD_NAME}</zero-option>
|
|
57
|
-
`)}
|
|
58
|
-
</zero-select>
|
|
59
|
-
</div>
|
|
60
|
-
|
|
61
50
|
<div class="control">
|
|
62
51
|
<label>Topic</label>
|
|
63
52
|
<zero-select
|
|
@@ -34,7 +34,6 @@ let TemplateDialog = class TemplateDialog extends FASTElement {
|
|
|
34
34
|
this.conditions.push(createEmptyCondition());
|
|
35
35
|
this.resource = this.resources[0];
|
|
36
36
|
this.fields = yield this.ruleTemplateService.getFields(this.resource);
|
|
37
|
-
this.tableId = this.fields[0].FIELD_NAME;
|
|
38
37
|
this.topic = this.topics[0];
|
|
39
38
|
this.severity = SEVERITY_INFORMATION;
|
|
40
39
|
break;
|
|
@@ -78,7 +77,6 @@ let TemplateDialog = class TemplateDialog extends FASTElement {
|
|
|
78
77
|
this.message = getAssignmentValue(assignments, 'BODY');
|
|
79
78
|
this.severity = (_b = getAssignmentValue(assignments, 'NOTIFY_SEVERITY')) === null || _b === void 0 ? void 0 : _b.toUpperCase();
|
|
80
79
|
this.topic = getAssignmentValue(assignments, 'TOPIC');
|
|
81
|
-
this.tableId = getAssignmentValue(assignments, 'TABLE_ENTITY_ID');
|
|
82
80
|
}
|
|
83
81
|
break;
|
|
84
82
|
default:
|
|
@@ -100,8 +98,6 @@ let TemplateDialog = class TemplateDialog extends FASTElement {
|
|
|
100
98
|
}, RAW_RULE_EXPRESSION: null, RESULT_EXPRESSION: {
|
|
101
99
|
ASSIGNMENTS: [
|
|
102
100
|
createAssignment('TOPIC', this.topic),
|
|
103
|
-
createAssignment('TABLE_NAME', this.resource),
|
|
104
|
-
createAssignment('TABLE_ENTITY_ID', this.tableId),
|
|
105
101
|
createAssignment('HEADER', this.header),
|
|
106
102
|
createAssignment('BODY', this.message),
|
|
107
103
|
createAssignment('NOTIFY_SEVERITY', humanize(this.severity))
|
|
@@ -186,9 +182,6 @@ let TemplateDialog = class TemplateDialog extends FASTElement {
|
|
|
186
182
|
return __awaiter(this, void 0, void 0, function* () {
|
|
187
183
|
this.conditions = [createEmptyCondition()];
|
|
188
184
|
this.fields = yield this.ruleTemplateService.getFields(this.resource);
|
|
189
|
-
if (this.fields && this.fields.length > 0) {
|
|
190
|
-
this.tableId = this.fields[0].FIELD_NAME;
|
|
191
|
-
}
|
|
192
185
|
});
|
|
193
186
|
}
|
|
194
187
|
};
|
|
@@ -225,9 +218,6 @@ __decorate([
|
|
|
225
218
|
__decorate([
|
|
226
219
|
observable
|
|
227
220
|
], TemplateDialog.prototype, "severity", void 0);
|
|
228
|
-
__decorate([
|
|
229
|
-
observable
|
|
230
|
-
], TemplateDialog.prototype, "tableId", void 0);
|
|
231
221
|
__decorate([
|
|
232
222
|
observable
|
|
233
223
|
], TemplateDialog.prototype, "parameters", void 0);
|
|
@@ -4,6 +4,7 @@ const header = css `
|
|
|
4
4
|
zero-modal::part(top) {
|
|
5
5
|
padding: calc(var(--design-unit) * 4px);
|
|
6
6
|
border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
|
|
7
|
+
margin: 0px;
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
.template-dialog-header-title {
|
|
@@ -14,7 +15,7 @@ const header = css `
|
|
|
14
15
|
const footer = css `
|
|
15
16
|
.template-dialog-footer {
|
|
16
17
|
display: flex;
|
|
17
|
-
padding: calc(var(--design-unit) * 4px);
|
|
18
|
+
padding: 0 calc(var(--design-unit)* 4px) calc(var(--design-unit)* 4px);
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
.template-dialog-footer .content-row {
|
|
@@ -38,7 +39,7 @@ export const TemplateDialogStyles = css `
|
|
|
38
39
|
flex-direction: column;
|
|
39
40
|
width: ${String(modalWidthPx)}px;
|
|
40
41
|
gap: calc(var(--design-unit) * 3px);
|
|
41
|
-
padding:
|
|
42
|
+
padding: calc(var(--design-unit) * 4px);
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
.content-row {
|
|
@@ -45,18 +45,6 @@ export const TemplateDialogTemplate = html `
|
|
|
45
45
|
</zero-select>
|
|
46
46
|
</div>
|
|
47
47
|
|
|
48
|
-
<div class="control">
|
|
49
|
-
<label>Table ID</label>
|
|
50
|
-
<zero-select
|
|
51
|
-
:value=${sync(x => x.tableId)}
|
|
52
|
-
position="below"
|
|
53
|
-
>
|
|
54
|
-
${repeat(x => x.fields, html `
|
|
55
|
-
<zero-option value=${x => x.FIELD_NAME}>${x => x.FIELD_NAME}</zero-option>
|
|
56
|
-
`)}
|
|
57
|
-
</zero-select>
|
|
58
|
-
</div>
|
|
59
|
-
|
|
60
48
|
<div class="control">
|
|
61
49
|
<label>Topic</label>
|
|
62
50
|
<zero-select
|
package/package.json
CHANGED