@genesislcap/pbc-notify-ui 1.0.41 → 1.0.43
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 +27 -15
- package/dist/dts/components/components.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.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox-base/inbox-base.d.ts +4 -5
- package/dist/dts/components/foundation-inbox/inbox-base/inbox-base.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox.d.ts +2 -0
- package/dist/dts/components/foundation-inbox/inbox.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox.styles.d.ts +5 -0
- 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 +4 -4
- package/dist/dts/components/foundation-inbox/inbox.types.d.ts.map +1 -1
- 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-dialog.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.d.ts +3 -3
- 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/styles/condition-builder.styles.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/styles/dynamic-rule.styles.d.ts.map +1 -1
- package/dist/dts/sandbox.d.ts +9 -0
- package/dist/dts/sandbox.d.ts.map +1 -0
- package/dist/dts/services/alert.service.d.ts +1 -0
- package/dist/dts/services/alert.service.d.ts.map +1 -1
- package/dist/dts/styles/scrollbar.styles.d.ts +2 -0
- package/dist/dts/styles/scrollbar.styles.d.ts.map +1 -0
- package/dist/esm/components/components.js +2 -1
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.js +1 -0
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.js +1 -0
- package/dist/esm/components/foundation-inbox/inbox-base/inbox-base.js +41 -28
- package/dist/esm/components/foundation-inbox/inbox.js +14 -1
- package/dist/esm/components/foundation-inbox/inbox.styles.js +54 -32
- package/dist/esm/components/foundation-inbox/inbox.template.js +36 -19
- package/dist/esm/components/foundation-inbox/inbox.types.js +4 -4
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.js +7 -1
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.js +6 -0
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.js +1 -1
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.js +6 -1
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.js +7 -1
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.js +8 -1
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.js +7 -3
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.js +1 -1
- package/dist/esm/components/foundation-notification-dashboard/styles/condition-builder.styles.js +4 -0
- package/dist/esm/components/foundation-notification-dashboard/styles/dynamic-rule.styles.js +3 -13
- package/dist/esm/sandbox.js +55 -0
- package/dist/esm/services/alert.service.js +5 -0
- package/dist/esm/styles/scrollbar.styles.js +14 -0
- package/index.html +20 -18
- package/package.json +15 -5
package/README.md
CHANGED
|
@@ -1,19 +1,31 @@
|
|
|
1
1
|
# Client (Web)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Development
|
|
4
|
+
|
|
5
|
+
### Sandbox Environment (Preferable)
|
|
6
|
+
- On [.env](.env), put real server data to establish connection
|
|
7
|
+
- `npm run dev`
|
|
8
|
+
|
|
9
|
+
### Manual
|
|
4
10
|
- Do the [npm link](https://docs.npmjs.com/cli/v10/commands/npm-link) between the projects:
|
|
5
|
-
- On pbc-notify-ui:
|
|
6
|
-
- On client app:
|
|
11
|
+
- On pbc-notify-ui project: `npm i` and `npm link`
|
|
12
|
+
- On client app project: `npm i` and `npm link @genesislcap/pbc-notify-ui`
|
|
7
13
|
- On pbc-notify-ui [package.json](package.json) change the following lines:
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
-
|
|
14
|
+
- `"main": "dist/esm/index.js",` to `"main": "src/index.ts",`
|
|
15
|
+
- `"default": "./dist/esm/index.js"` to `"default": "./src/index.ts"`
|
|
16
|
+
|
|
17
|
+
**Important:** Always do a `git rollback` on the `package.json` before a commit or just don't commit it.
|
|
18
|
+
|
|
19
|
+
## Build
|
|
20
|
+
|
|
21
|
+
- The recommended build command to be used is `genx build -b ts`
|
|
22
|
+
|
|
23
|
+
_If you developed using manual method:_
|
|
24
|
+
|
|
25
|
+
- Undo the following lines on pbc-notify-ui [package.json](package.json):
|
|
26
|
+
- `"main": "src/index.ts",` to `"main": "dist/esm/index.js",`
|
|
27
|
+
- `"default": "./src/index.ts"` to `"default": "./dist/esm/index.js"`
|
|
28
|
+
- Do a `npm run build` on pbc-notify-ui
|
|
29
|
+
- Do a `npm run build` on client app
|
|
30
|
+
|
|
31
|
+
_If not, just run the `npm run build` command._
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/components/components.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/components/components.ts"],"names":[],"mappings":"AAiDA,wBAAsB,WAAW,kBAIhC"}
|
|
@@ -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,wEA4CrC,CAAC"}
|
|
@@ -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,qBAKa,aAAc,SAAQ,cAAc;IAC7B,SAAS,EAAE,mBAAmB,CAAC;IAC3C,cAAc,EAAE,OAAO,CAAS;IAChC,QAAQ,EAAE,MAAM,
|
|
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,qBAKa,aAAc,SAAQ,cAAc;IAC7B,SAAS,EAAE,mBAAmB,CAAC;IAC3C,cAAc,EAAE,OAAO,CAAS;IAChC,QAAQ,EAAE,MAAM,CAAQ;IAClB,UAAU,EAAE,MAAM,CAAM;IAEpC,iBAAiB;IAsBjB,oBAAoB;IAIpB,aAAa,CAAC,UAAU,KAAA;CAOzB"}
|
|
@@ -19,22 +19,21 @@ export declare class FoundationInboxBase extends GenesisElement {
|
|
|
19
19
|
templateService: TemplateService;
|
|
20
20
|
templates: RuleTemplate[];
|
|
21
21
|
templatesFilter: RuleTemplate[];
|
|
22
|
+
searchAlertLog: string;
|
|
22
23
|
searchSubscribe: string;
|
|
23
24
|
ruleTemplateDetails: NotificationRuleTemplateReply;
|
|
24
25
|
selectedTab: InboxTab;
|
|
25
26
|
tabs: Tabs;
|
|
26
27
|
connectedCallback(): Promise<void>;
|
|
27
28
|
disconnectedCallback(): void;
|
|
28
|
-
checkActiveTab(inboxTab: InboxTab): "" | "display: none;";
|
|
29
29
|
inboxTabChanged(inboxTab: InboxTab): Promise<void>;
|
|
30
30
|
alertsChanged: () => Alert[];
|
|
31
31
|
rulesChanged: () => Rule[];
|
|
32
32
|
templatesChanged: () => RuleTemplate[];
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
private filterAlerts;
|
|
36
|
-
searchSubscribeChanged: () => void;
|
|
33
|
+
filterSearchAlertLog(): void;
|
|
34
|
+
filterSearchSubscribe(): void;
|
|
37
35
|
dismissAlert(alertId: string): void;
|
|
36
|
+
dismissAllAlerts(): void;
|
|
38
37
|
editAlert(): void;
|
|
39
38
|
playPauseAlert(ruleClicked: Rule): Promise<void>;
|
|
40
39
|
deleteAlert(ruleClicked: Rule): Promise<void>;
|
|
@@ -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,MAAM,+BAA+B,CAAC;
|
|
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,MAAM,+BAA+B,CAAC;AAErD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAc,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAErE,OAAO,EACL,KAAK,EAEL,QAAQ,EACR,6BAA6B,EAC7B,IAAI,EAEJ,YAAY,EACb,MAAM,gBAAgB,CAAC;AAExB,qBAAa,mBAAoB,SAAQ,cAAc;IAC/C,IAAI,EAAE,IAAI,CAAC;IAEH,YAAY,EAAE,YAAY,CAAC;IACjB,YAAY,EAAE,sBAAsB,CAAC;IAC7D,OAAO,CAAC,iBAAiB,CAAgB;IAC7B,OAAO,CAAC,MAAM,CAAe;IAC7B,YAAY,EAAE,KAAK,EAAE,CAAM;IAE1B,WAAW,EAAE,WAAW,CAAC;IAC1B,KAAK,EAAE,IAAI,EAAE,CAAM;IACnB,WAAW,EAAE,IAAI,EAAE,CAAM;IAEpB,eAAe,EAAE,eAAe,CAAC;IACtC,SAAS,EAAE,YAAY,EAAE,CAAM;IAC/B,eAAe,EAAE,YAAY,EAAE,CAAM;IAErC,cAAc,EAAE,MAAM,CAAQ;IAC9B,eAAe,EAAE,MAAM,CAAQ;IAC/B,mBAAmB,EAAE,6BAA6B,CAAQ;IAC1D,WAAW,EAAE,QAAQ,CAAuB;IAEjD,IAAI,EAAE,IAAI,CAAC;IAEZ,iBAAiB;IAWvB,oBAAoB;IAMd,eAAe,CAAC,QAAQ,EAAE,QAAQ;IAuBxC,aAAa,gBAA2C;IAExD,YAAY,eAAyC;IAErD,gBAAgB,uBAAiD;IAEjE,oBAAoB;IAUpB,qBAAqB;IAarB,YAAY,CAAC,OAAO,EAAE,MAAM;IAI5B,gBAAgB;IAyBhB,SAAS;IAEH,cAAc,CAAC,WAAW,EAAE,IAAI;IAgBhC,WAAW,CAAC,WAAW,EAAE,IAAI;IAO7B,wBAAwB,CAAC,YAAY,EAAE,GAAG;CAWjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"inbox.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAI9D;;;;GAIG;AACH,qBAKa,eAAgB,SAAQ,mBAAmB;IAChD,iBAAiB;IAKvB,oBAAoB;CAGrB"}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
export declare const inboxHeader: import("@microsoft/fast-element").ElementStyles;
|
|
2
|
+
export declare const alertsNewAndAlertsHistory: import("@microsoft/fast-element").ElementStyles;
|
|
3
|
+
export declare const subscriptions: import("@microsoft/fast-element").ElementStyles;
|
|
4
|
+
export declare const subscribe: import("@microsoft/fast-element").ElementStyles;
|
|
5
|
+
export declare const ruleAndTemplate: import("@microsoft/fast-element").ElementStyles;
|
|
1
6
|
/**
|
|
2
7
|
* @public
|
|
3
8
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"inbox.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.styles.ts"],"names":[],"mappings":"AAqDA,eAAO,MAAM,WAAW,iDA+BvB,CAAC;AAEF,eAAO,MAAM,yBAAyB,iDAkDrC,CAAC;AAEF,eAAO,MAAM,aAAa,iDAYzB,CAAC;AAEF,eAAO,MAAM,SAAS,iDAYrB,CAAC;AAEF,eAAO,MAAM,eAAe,iDA0D3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,iDAwBjC,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":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAoE/C;;GAEG;AACH,eAAO,MAAM,uBAAuB,sEAoJnC,CAAC"}
|
|
@@ -70,9 +70,9 @@ export declare enum RuleStatus {
|
|
|
70
70
|
DISABLED = "DISABLED"
|
|
71
71
|
}
|
|
72
72
|
export declare enum InboxTab {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
ALERTS_NEW = 0,
|
|
74
|
+
ALERT_HISTORY = 1,
|
|
75
|
+
MY_ALERTS = 2,
|
|
76
|
+
SUBSCRIBE = 3
|
|
77
77
|
}
|
|
78
78
|
//# 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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,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,
|
|
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,CA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
|
|
|
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;AAClF,OAAO,EACL,sBAAsB,EAGvB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAMlE,qBAKa,oBAAqB,SAAQ,cAAc;IAC1C,SAAS,EAAE,sBAAsB,CAAC;IAClC,MAAM,EAAE,KAAK,EAAE,
|
|
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;AAClF,OAAO,EACL,sBAAsB,EAGvB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAMlE,qBAKa,oBAAqB,SAAQ,cAAc;IAC1C,SAAS,EAAE,sBAAsB,CAAC;IAClC,MAAM,EAAE,KAAK,EAAE,CAAM;IAErB,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;IAE5C,eAAe;IAIT,gBAAgB;IAetB,aAAa;IASb,OAAO,CAAC,eAAe;IAiBvB,gBAAgB;IAShB,gBAAgB;IAgBhB,sBAAsB;IActB,oBAAoB;IA0BpB,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,qBAAqB;IAI7B,qBAAqB;IASrB,uBAAuB;CAQxB"}
|
|
@@ -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,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,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,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,
|
|
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,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,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,KA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-1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parameter-builder.styles.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"parameter-builder.styles.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,sBAAsB,iDAsDlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parameter-builder.template.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,eAAO,MAAM,wBAAwB,
|
|
1
|
+
{"version":3,"file":"parameter-builder.template.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,eAAO,MAAM,wBAAwB,uEAmFpC,CAAC"}
|
|
@@ -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,EAIvB,MAAM,gCAAgC,CAAC;AAGxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,qBAKa,wBAAyB,SAAQ,cAAc;IACpD,SAAS,EAAE,sBAAsB,CAAC;IAClC,UAAU,EAAE,KAAK,CAAC,sBAAsB,CAAC,
|
|
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,EAIvB,MAAM,gCAAgC,CAAC;AAGxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,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;IAErB,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;IAE7C,eAAe;IAIT,gBAAgB;IAetB,iBAAiB;IAQjB,aAAa;IASb,sBAAsB;IAetB,OAAO,CAAC,eAAe;IAiBvB,gBAAgB;IAkBhB,OAAO,CAAC,gBAAgB;IAcxB,oBAAoB;IA0BpB,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,qBAAqB;IAI7B,qBAAqB;IASrB,uBAAuB;CASxB"}
|
|
@@ -11,14 +11,14 @@ export declare class TemplateDialog extends GenesisElement {
|
|
|
11
11
|
notifyService: NotifyService;
|
|
12
12
|
dialog: Modal;
|
|
13
13
|
templateDialogMode: (typeof TemplateDialogMode)[keyof typeof TemplateDialogMode];
|
|
14
|
-
templateId
|
|
14
|
+
private templateId;
|
|
15
15
|
name: string;
|
|
16
16
|
description: string;
|
|
17
17
|
header: any;
|
|
18
18
|
message: any;
|
|
19
19
|
resource: string;
|
|
20
|
-
topic:
|
|
21
|
-
severity:
|
|
20
|
+
topic: string;
|
|
21
|
+
severity: string;
|
|
22
22
|
updateType: UpdateType[];
|
|
23
23
|
parameters: Array<ParameterBuilderEntity>;
|
|
24
24
|
conditions: Array<ConditionBuilderEntity>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-dialog.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAiB,cAAc,EAAwB,MAAM,uBAAuB,CAAC;AAC5F,OAAO,EAEL,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,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;
|
|
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,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IAAI,mBAAmB,IAAI,MAAM,CAEhC;IAED,MAAM;IAwBN,OAAO,CAAC,oBAAoB;IAyB5B,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":"condition-builder.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/styles/condition-builder.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"condition-builder.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/styles/condition-builder.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,iDA+DlC,CAAC"}
|
package/dist/dts/components/foundation-notification-dashboard/styles/dynamic-rule.styles.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic-rule.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/styles/dynamic-rule.styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dynamic-rule.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/styles/dynamic-rule.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,2BAA2B,iDAevC,CAAC;AAkEF,eAAO,MAAM,uBAAuB,iDAyEnC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Auth, Connect } from '@genesislcap/foundation-comms';
|
|
2
|
+
import { GenesisElement } from '@genesislcap/web-core';
|
|
3
|
+
export declare class ReconciliationSandbox extends GenesisElement {
|
|
4
|
+
connect: Connect;
|
|
5
|
+
auth: Auth;
|
|
6
|
+
ready: boolean;
|
|
7
|
+
connectedCallback(): Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=sandbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sandbox.d.ts","sourceRoot":"","sources":["../../src/sandbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAY,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAsB,cAAc,EAA0B,MAAM,uBAAuB,CAAC;AAEnG,qBAea,qBAAsB,SAAQ,cAAc;IAC9C,OAAO,EAAG,OAAO,CAAC;IACrB,IAAI,EAAG,IAAI,CAAC;IACN,KAAK,UAAS;IAEpB,iBAAiB;CAqBxB"}
|
|
@@ -2,6 +2,7 @@ import { Message, SocketObservable } from '@genesislcap/foundation-comms';
|
|
|
2
2
|
export interface AlertService {
|
|
3
3
|
getAlerts(): SocketObservable<Message<any>>;
|
|
4
4
|
dismissNotifyAlert(alertId: string): any;
|
|
5
|
+
dismissAllNotifyAlerts(): any;
|
|
5
6
|
}
|
|
6
7
|
export declare const AlertService: import("@microsoft/fast-foundation").InterfaceSymbol<AlertService>;
|
|
7
8
|
//# sourceMappingURL=alert.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.service.d.ts","sourceRoot":"","sources":["../../../src/services/alert.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGnF,MAAM,WAAW,YAAY;IAC3B,SAAS,IAAI,gBAAgB,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5C,kBAAkB,CAAC,OAAO,EAAE,MAAM,OAAE;
|
|
1
|
+
{"version":3,"file":"alert.service.d.ts","sourceRoot":"","sources":["../../../src/services/alert.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGnF,MAAM,WAAW,YAAY;IAC3B,SAAS,IAAI,gBAAgB,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5C,kBAAkB,CAAC,OAAO,EAAE,MAAM,OAAE;IACpC,sBAAsB,QAAG;CAC1B;AA4BD,eAAO,MAAM,YAAY,oEAAyE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scrollbar.styles.d.ts","sourceRoot":"","sources":["../../../src/styles/scrollbar.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,iDAY3B,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
2
|
import { foundationLayoutComponents } from '@genesislcap/foundation-layout';
|
|
3
3
|
import * as rapidDesignSystem from '@genesislcap/rapid-design-system';
|
|
4
|
+
import { rapidGridComponents } from '@genesislcap/rapid-grid-pro';
|
|
4
5
|
import { FoundationInboxCounter } from './foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter';
|
|
5
6
|
import { InboxSubscription } from './foundation-inbox/components/inbox-subscription/inbox-subscription';
|
|
6
7
|
import { RuleParameter } from './foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter';
|
|
@@ -44,6 +45,6 @@ export function loadRemotes() {
|
|
|
44
45
|
return __awaiter(this, void 0, void 0, function* () {
|
|
45
46
|
rapidDesignSystem
|
|
46
47
|
.provideDesignSystem()
|
|
47
|
-
.register(rapidDesignSystem.baseComponents, foundationLayoutComponents);
|
|
48
|
+
.register(rapidGridComponents, rapidDesignSystem.baseComponents, foundationLayoutComponents);
|
|
48
49
|
});
|
|
49
50
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
2
|
import { Auth } from '@genesislcap/foundation-comms';
|
|
3
|
+
import { showNotificationDialog } from '@genesislcap/foundation-notifications';
|
|
3
4
|
import { GenesisElement, observable } from '@genesislcap/web-core';
|
|
4
5
|
import { AlertService } from '../../../services/alert.service';
|
|
5
6
|
import { FoundationInboxService } from '../../../services/inbox.service';
|
|
@@ -16,25 +17,15 @@ export class FoundationInboxBase extends GenesisElement {
|
|
|
16
17
|
this.rulesFilter = [];
|
|
17
18
|
this.templates = [];
|
|
18
19
|
this.templatesFilter = [];
|
|
19
|
-
this.
|
|
20
|
+
this.searchAlertLog = null;
|
|
21
|
+
this.searchSubscribe = null;
|
|
20
22
|
this.ruleTemplateDetails = null;
|
|
21
|
-
this.selectedTab = InboxTab.
|
|
23
|
+
this.selectedTab = InboxTab.ALERTS_NEW;
|
|
22
24
|
// #endregion
|
|
23
25
|
// #region Changed Events
|
|
24
26
|
this.alertsChanged = () => (this.alertsFilter = this.alerts);
|
|
25
27
|
this.rulesChanged = () => (this.rulesFilter = this.rules);
|
|
26
28
|
this.templatesChanged = () => (this.templatesFilter = this.templates);
|
|
27
|
-
this.searchAlertLog = '';
|
|
28
|
-
this.searchAlertLogChanged = () => {
|
|
29
|
-
this.filterAlerts();
|
|
30
|
-
};
|
|
31
|
-
this.searchSubscribeChanged = () => {
|
|
32
|
-
if (!this.searchSubscribe) {
|
|
33
|
-
this.templatesFilter = this.templates;
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
this.templatesFilter = this.templates.filter((item) => item.NAME.toLowerCase().startsWith(this.searchSubscribe.toLowerCase()));
|
|
37
|
-
};
|
|
38
29
|
// #endregion
|
|
39
30
|
}
|
|
40
31
|
connectedCallback() {
|
|
@@ -45,7 +36,7 @@ export class FoundationInboxBase extends GenesisElement {
|
|
|
45
36
|
_super.connectedCallback.call(this);
|
|
46
37
|
this.alertSubscription = ({ store }) => {
|
|
47
38
|
this.alerts = (store === null || store === void 0 ? void 0 : store.items) || [];
|
|
48
|
-
this.
|
|
39
|
+
this.filterSearchAlertLog();
|
|
49
40
|
};
|
|
50
41
|
this.inboxService.subscribe(this.alertSubscription);
|
|
51
42
|
this.rules = yield this.ruleService.getRules();
|
|
@@ -57,22 +48,19 @@ export class FoundationInboxBase extends GenesisElement {
|
|
|
57
48
|
this.inboxService.unsubscribe(this.alertSubscription);
|
|
58
49
|
}
|
|
59
50
|
// #region Tabs
|
|
60
|
-
checkActiveTab(inboxTab) {
|
|
61
|
-
return this.tabs.activeid === inboxTab.toString() ? '' : 'display: none;';
|
|
62
|
-
}
|
|
63
51
|
inboxTabChanged(inboxTab) {
|
|
64
52
|
return __awaiter(this, void 0, void 0, function* () {
|
|
65
53
|
this.selectedTab = inboxTab;
|
|
66
54
|
this.ruleTemplateDetails = null;
|
|
67
55
|
switch (inboxTab) {
|
|
68
|
-
case InboxTab.
|
|
69
|
-
case InboxTab.
|
|
70
|
-
this.
|
|
56
|
+
case InboxTab.ALERTS_NEW:
|
|
57
|
+
case InboxTab.ALERT_HISTORY:
|
|
58
|
+
this.filterSearchAlertLog();
|
|
71
59
|
break;
|
|
72
|
-
case InboxTab.
|
|
60
|
+
case InboxTab.MY_ALERTS:
|
|
73
61
|
this.rules = yield this.ruleService.getRules();
|
|
74
62
|
break;
|
|
75
|
-
case InboxTab.
|
|
63
|
+
case InboxTab.SUBSCRIBE:
|
|
76
64
|
this.templates = yield this.templateService.getRuleTemplates();
|
|
77
65
|
break;
|
|
78
66
|
default:
|
|
@@ -81,17 +69,42 @@ export class FoundationInboxBase extends GenesisElement {
|
|
|
81
69
|
}
|
|
82
70
|
});
|
|
83
71
|
}
|
|
84
|
-
|
|
72
|
+
filterSearchAlertLog() {
|
|
85
73
|
this.alertsFilter = this.alerts.filter((alert) => (!this.searchAlertLog ||
|
|
86
74
|
alert.HEADER.toLowerCase().startsWith(this.searchAlertLog.toLowerCase())) &&
|
|
87
|
-
((this.selectedTab === InboxTab.
|
|
88
|
-
(this.selectedTab === InboxTab.
|
|
75
|
+
((this.selectedTab === InboxTab.ALERTS_NEW && alert.ALERT_STATUS === AlertStatus.NEW) ||
|
|
76
|
+
(this.selectedTab === InboxTab.ALERT_HISTORY && alert.ALERT_STATUS !== AlertStatus.NEW)));
|
|
77
|
+
}
|
|
78
|
+
filterSearchSubscribe() {
|
|
79
|
+
if (!this.searchSubscribe) {
|
|
80
|
+
this.templatesFilter = this.templates;
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
this.templatesFilter = this.templates.filter((item) => item.NAME.toLowerCase().startsWith(this.searchSubscribe.toLowerCase()));
|
|
89
84
|
}
|
|
90
85
|
// #endregion
|
|
91
86
|
// #region New and History
|
|
92
87
|
dismissAlert(alertId) {
|
|
93
88
|
this.alertService.dismissNotifyAlert(alertId);
|
|
94
89
|
}
|
|
90
|
+
dismissAllAlerts() {
|
|
91
|
+
showNotificationDialog({
|
|
92
|
+
title: 'Confirm Clear All',
|
|
93
|
+
body: `Do you really want to clear all the alerts? This action can't be undone.`,
|
|
94
|
+
dialog: {
|
|
95
|
+
dismissingAction: {
|
|
96
|
+
label: 'Dismiss',
|
|
97
|
+
action: () => null,
|
|
98
|
+
},
|
|
99
|
+
confirmingActions: [
|
|
100
|
+
{
|
|
101
|
+
label: 'Confirm',
|
|
102
|
+
action: () => this.alertService.dismissAllNotifyAlerts(),
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
},
|
|
106
|
+
}, 'rapid');
|
|
107
|
+
}
|
|
95
108
|
// #endregion
|
|
96
109
|
// #region Subscriptions
|
|
97
110
|
// TODO:
|
|
@@ -165,6 +178,9 @@ __decorate([
|
|
|
165
178
|
__decorate([
|
|
166
179
|
observable
|
|
167
180
|
], FoundationInboxBase.prototype, "templatesFilter", void 0);
|
|
181
|
+
__decorate([
|
|
182
|
+
observable
|
|
183
|
+
], FoundationInboxBase.prototype, "searchAlertLog", void 0);
|
|
168
184
|
__decorate([
|
|
169
185
|
observable
|
|
170
186
|
], FoundationInboxBase.prototype, "searchSubscribe", void 0);
|
|
@@ -174,6 +190,3 @@ __decorate([
|
|
|
174
190
|
__decorate([
|
|
175
191
|
observable
|
|
176
192
|
], FoundationInboxBase.prototype, "selectedTab", void 0);
|
|
177
|
-
__decorate([
|
|
178
|
-
observable
|
|
179
|
-
], FoundationInboxBase.prototype, "searchAlertLog", void 0);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
1
|
+
import { __awaiter, __decorate } from "tslib";
|
|
2
2
|
import { customElement } from '@genesislcap/web-core';
|
|
3
|
+
import { loadRemotes } from '../components';
|
|
3
4
|
import { FoundationInboxBase } from './inbox-base/inbox-base';
|
|
4
5
|
import { FoundationInboxStyles } from './inbox.styles';
|
|
5
6
|
import { FoundationInboxTemplate } from './inbox.template';
|
|
@@ -9,6 +10,18 @@ import { FoundationInboxTemplate } from './inbox.template';
|
|
|
9
10
|
* @beta
|
|
10
11
|
*/
|
|
11
12
|
let FoundationInbox = class FoundationInbox extends FoundationInboxBase {
|
|
13
|
+
connectedCallback() {
|
|
14
|
+
const _super = Object.create(null, {
|
|
15
|
+
connectedCallback: { get: () => super.connectedCallback }
|
|
16
|
+
});
|
|
17
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18
|
+
_super.connectedCallback.call(this);
|
|
19
|
+
yield loadRemotes();
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
disconnectedCallback() {
|
|
23
|
+
super.disconnectedCallback();
|
|
24
|
+
}
|
|
12
25
|
};
|
|
13
26
|
FoundationInbox = __decorate([
|
|
14
27
|
customElement({
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
import { css } from '@genesislcap/web-core';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
5
|
-
export const FoundationInboxStyles = css `
|
|
6
|
-
.inbox {
|
|
7
|
-
width: 100%;
|
|
8
|
-
height: 100%;
|
|
9
|
-
background: var(--neutral-layer-4);
|
|
10
|
-
display: flex;
|
|
11
|
-
flex-direction: column;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/* Tabs */
|
|
2
|
+
import { scrollbarStyles } from '../../styles/scrollbar.styles';
|
|
3
|
+
const tabs = css `
|
|
15
4
|
rapid-tabs {
|
|
16
5
|
display: flex;
|
|
17
6
|
flex-direction: column;
|
|
@@ -31,22 +20,35 @@ export const FoundationInboxStyles = css `
|
|
|
31
20
|
min-height: 0;
|
|
32
21
|
}
|
|
33
22
|
|
|
34
|
-
|
|
23
|
+
rapid-tab-panel {
|
|
24
|
+
padding: 0;
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
27
|
+
const search = css `
|
|
35
28
|
.search {
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: row;
|
|
31
|
+
flex: 0;
|
|
36
32
|
padding: calc(var(--design-unit) * 3px) calc(var(--design-unit) * 3px);
|
|
37
33
|
border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
|
|
38
|
-
|
|
34
|
+
gap: calc(var(--design-unit) * 2px);
|
|
39
35
|
}
|
|
40
36
|
|
|
41
37
|
.search-input {
|
|
42
38
|
display: flex;
|
|
39
|
+
margin: 0;
|
|
40
|
+
width: 100%;
|
|
43
41
|
}
|
|
44
42
|
|
|
45
43
|
.search-input::part(root) {
|
|
46
44
|
width: 100%;
|
|
47
45
|
}
|
|
48
46
|
|
|
49
|
-
|
|
47
|
+
.clear-all {
|
|
48
|
+
min-width: auto;
|
|
49
|
+
}
|
|
50
|
+
`;
|
|
51
|
+
export const inboxHeader = css `
|
|
50
52
|
.inbox-header {
|
|
51
53
|
display: flex;
|
|
52
54
|
flex: 0;
|
|
@@ -77,16 +79,8 @@ export const FoundationInboxStyles = css `
|
|
|
77
79
|
.inbox-header-close::part(start) {
|
|
78
80
|
margin-inline-end: 0;
|
|
79
81
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
.inbox-content {
|
|
83
|
-
flex: 1;
|
|
84
|
-
min-height: 0;
|
|
85
|
-
display: flex;
|
|
86
|
-
height: calc(100% - 54px);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/* Alert Log */
|
|
82
|
+
`;
|
|
83
|
+
export const alertsNewAndAlertsHistory = css `
|
|
90
84
|
.alert-log-tab-panel {
|
|
91
85
|
display: flex;
|
|
92
86
|
flex-direction: column;
|
|
@@ -136,8 +130,8 @@ export const FoundationInboxStyles = css `
|
|
|
136
130
|
color: var(--neutral-foreground-hint);
|
|
137
131
|
font-size: calc(var(--design-unit) * 3px);
|
|
138
132
|
}
|
|
139
|
-
|
|
140
|
-
|
|
133
|
+
`;
|
|
134
|
+
export const subscriptions = css `
|
|
141
135
|
.my-alerts-tab-panel {
|
|
142
136
|
display: flex;
|
|
143
137
|
flex-direction: column;
|
|
@@ -149,8 +143,8 @@ export const FoundationInboxStyles = css `
|
|
|
149
143
|
flex: 1;
|
|
150
144
|
overflow: auto;
|
|
151
145
|
}
|
|
152
|
-
|
|
153
|
-
|
|
146
|
+
`;
|
|
147
|
+
export const subscribe = css `
|
|
154
148
|
.subscribe-tab-panel {
|
|
155
149
|
display: flex;
|
|
156
150
|
flex-direction: column;
|
|
@@ -162,8 +156,8 @@ export const FoundationInboxStyles = css `
|
|
|
162
156
|
flex: 1;
|
|
163
157
|
overflow: auto;
|
|
164
158
|
}
|
|
165
|
-
|
|
166
|
-
|
|
159
|
+
`;
|
|
160
|
+
export const ruleAndTemplate = css `
|
|
167
161
|
.template {
|
|
168
162
|
cursor: pointer;
|
|
169
163
|
}
|
|
@@ -222,3 +216,31 @@ export const FoundationInboxStyles = css `
|
|
|
222
216
|
cursor: pointer;
|
|
223
217
|
}
|
|
224
218
|
`;
|
|
219
|
+
/**
|
|
220
|
+
* @public
|
|
221
|
+
*/
|
|
222
|
+
export const FoundationInboxStyles = css `
|
|
223
|
+
${scrollbarStyles}
|
|
224
|
+
|
|
225
|
+
:host {
|
|
226
|
+
display: flex;
|
|
227
|
+
min-height: 0;
|
|
228
|
+
height: 100%;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
${tabs}
|
|
232
|
+
${search}
|
|
233
|
+
${inboxHeader}
|
|
234
|
+
${alertsNewAndAlertsHistory}
|
|
235
|
+
|
|
236
|
+
.inbox-content {
|
|
237
|
+
flex: 1;
|
|
238
|
+
display: flex;
|
|
239
|
+
min-height: 0;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
${alertsNewAndAlertsHistory}
|
|
243
|
+
${subscriptions}
|
|
244
|
+
${subscribe}
|
|
245
|
+
${ruleAndTemplate}
|
|
246
|
+
`;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { sync } from '@genesislcap/foundation-utils';
|
|
2
1
|
import { html, ref, repeat, when } from '@genesislcap/web-core';
|
|
3
2
|
import { NotifyPermission } from '../../utils/notifyPermissions';
|
|
4
3
|
import { AlertStatus, InboxTab } from './inbox.types';
|
|
@@ -8,16 +7,30 @@ const alertsTab = (tab) => html `
|
|
|
8
7
|
slot="alert-log-tab"
|
|
9
8
|
class="alert-log-tab-panel"
|
|
10
9
|
id=${tab}
|
|
11
|
-
style=${(x) => x.
|
|
10
|
+
style=${(x) => (x.selectedTab === tab ? '' : 'display: none;')}
|
|
12
11
|
>
|
|
13
12
|
<div class="search">
|
|
14
13
|
<rapid-text-field
|
|
15
14
|
class="search-input"
|
|
16
|
-
|
|
15
|
+
@input=${(x, c) => {
|
|
16
|
+
x.searchAlertLog = c.event.target.value;
|
|
17
|
+
x.filterSearchAlertLog();
|
|
18
|
+
}}
|
|
17
19
|
placeholder="Search Alerts..."
|
|
18
20
|
autocomplete="off"
|
|
19
21
|
></rapid-text-field>
|
|
22
|
+
|
|
23
|
+
${when(() => tab === InboxTab.ALERTS_NEW, html `
|
|
24
|
+
<rapid-button
|
|
25
|
+
class="clear-all"
|
|
26
|
+
appearance="primary"
|
|
27
|
+
@click=${(x) => x.dismissAllAlerts()}
|
|
28
|
+
>
|
|
29
|
+
Clear All
|
|
30
|
+
</rapid-button>
|
|
31
|
+
`)}
|
|
20
32
|
</div>
|
|
33
|
+
|
|
21
34
|
<div class="alert-log-tab-content">
|
|
22
35
|
${repeat((x) => x.alertsFilter, html `
|
|
23
36
|
<div class="toast" id=${(x) => x.ALERT_ID}>
|
|
@@ -25,6 +38,7 @@ const alertsTab = (tab) => html `
|
|
|
25
38
|
class="toast-severity"
|
|
26
39
|
style="background-color: ${(x) => getSeverityColor(x.NOTIFY_SEVERITY)}"
|
|
27
40
|
></div>
|
|
41
|
+
|
|
28
42
|
<div class="toast-content">
|
|
29
43
|
${when((x) => x.ALERT_STATUS === AlertStatus.NEW, html `
|
|
30
44
|
<div class="close-icon" @click=${(x, c) => c.parent.dismissAlert(x.ALERT_ID)}>
|
|
@@ -47,19 +61,19 @@ const alertsTab = (tab) => html `
|
|
|
47
61
|
*/
|
|
48
62
|
export const FoundationInboxTemplate = html `
|
|
49
63
|
<div class="inbox-content">
|
|
50
|
-
<rapid-tabs ${ref('tabs')} appearance="secondary" activeid=${(x) => InboxTab.
|
|
64
|
+
<rapid-tabs ${ref('tabs')} appearance="secondary" activeid=${(x) => InboxTab.ALERTS_NEW}>
|
|
51
65
|
<rapid-tab
|
|
52
66
|
slot="alert-log-tab"
|
|
53
|
-
id=${InboxTab.
|
|
54
|
-
@click=${(x) => x.inboxTabChanged(InboxTab.
|
|
67
|
+
id=${InboxTab.ALERTS_NEW}
|
|
68
|
+
@click=${(x) => x.inboxTabChanged(InboxTab.ALERTS_NEW)}
|
|
55
69
|
appearance="secondary"
|
|
56
70
|
>
|
|
57
71
|
Alerts
|
|
58
72
|
</rapid-tab>
|
|
59
73
|
<rapid-tab
|
|
60
74
|
slot="alert-log-tab"
|
|
61
|
-
id=${InboxTab.
|
|
62
|
-
@click=${(x) => x.inboxTabChanged(InboxTab.
|
|
75
|
+
id=${InboxTab.ALERT_HISTORY}
|
|
76
|
+
@click=${(x) => x.inboxTabChanged(InboxTab.ALERT_HISTORY)}
|
|
63
77
|
appearance="secondary"
|
|
64
78
|
>
|
|
65
79
|
Alert History
|
|
@@ -67,8 +81,8 @@ export const FoundationInboxTemplate = html `
|
|
|
67
81
|
${when((x) => { var _a; return (_a = x.auth.currentUser) === null || _a === void 0 ? void 0 : _a.hasPermission(NotifyPermission.NotificationRuleView); }, html `
|
|
68
82
|
<rapid-tab
|
|
69
83
|
slot="my-alerts-tab"
|
|
70
|
-
id=${InboxTab.
|
|
71
|
-
@click=${(x) => x.inboxTabChanged(InboxTab.
|
|
84
|
+
id=${InboxTab.MY_ALERTS}
|
|
85
|
+
@click=${(x) => x.inboxTabChanged(InboxTab.MY_ALERTS)}
|
|
72
86
|
appearance="secondary"
|
|
73
87
|
>
|
|
74
88
|
Subscriptions
|
|
@@ -77,8 +91,8 @@ export const FoundationInboxTemplate = html `
|
|
|
77
91
|
${when((x) => { var _a; return (_a = x.auth.currentUser) === null || _a === void 0 ? void 0 : _a.hasPermission(NotifyPermission.NotificationRuleTemplateView); }, html `
|
|
78
92
|
<rapid-tab
|
|
79
93
|
slot="subscribe-tab"
|
|
80
|
-
id=${InboxTab.
|
|
81
|
-
@click=${(x) => x.inboxTabChanged(InboxTab.
|
|
94
|
+
id=${InboxTab.SUBSCRIBE}
|
|
95
|
+
@click=${(x) => x.inboxTabChanged(InboxTab.SUBSCRIBE)}
|
|
82
96
|
appearance="secondary"
|
|
83
97
|
>
|
|
84
98
|
Subscribe
|
|
@@ -86,14 +100,14 @@ export const FoundationInboxTemplate = html `
|
|
|
86
100
|
`)}
|
|
87
101
|
|
|
88
102
|
<!-- Alerts -->
|
|
89
|
-
${(_) => alertsTab(InboxTab.
|
|
103
|
+
${(_) => alertsTab(InboxTab.ALERTS_NEW)} ${(_) => alertsTab(InboxTab.ALERT_HISTORY)}
|
|
90
104
|
${when((x) => { var _a; return (_a = x.auth.currentUser) === null || _a === void 0 ? void 0 : _a.hasPermission(NotifyPermission.NotificationRuleView); }, html `
|
|
91
105
|
<!-- Rules -->
|
|
92
106
|
<rapid-tab-panel
|
|
93
107
|
slot="my-alerts-tab"
|
|
94
108
|
class="my-alerts-tab-panel"
|
|
95
|
-
id=${InboxTab.
|
|
96
|
-
style=${(x) => x.
|
|
109
|
+
id=${InboxTab.MY_ALERTS}
|
|
110
|
+
style=${(x) => (x.selectedTab === InboxTab.MY_ALERTS ? '' : 'display: none;')}
|
|
97
111
|
>
|
|
98
112
|
<div class="my-alerts-tab-content">
|
|
99
113
|
${repeat((x) => x.rulesFilter, html `
|
|
@@ -110,7 +124,7 @@ export const FoundationInboxTemplate = html `
|
|
|
110
124
|
<span class="rule-action-edit" @click=${(x, c) => c.parent.editAlert(x)}}>
|
|
111
125
|
<rapid-icon name="gear"></rapid-icon>
|
|
112
126
|
</span>
|
|
113
|
-
|
|
127
|
+
-->
|
|
114
128
|
<span
|
|
115
129
|
class="rule-action-enable-disable"
|
|
116
130
|
@click=${(x, c) => c.parent.playPauseAlert(x)}
|
|
@@ -135,13 +149,16 @@ export const FoundationInboxTemplate = html `
|
|
|
135
149
|
<rapid-tab-panel
|
|
136
150
|
slot="subscribe-tab"
|
|
137
151
|
class="subscribe-tab-panel"
|
|
138
|
-
id=${InboxTab.
|
|
139
|
-
style=${(x) => x.
|
|
152
|
+
id=${InboxTab.SUBSCRIBE}
|
|
153
|
+
style=${(x) => (x.selectedTab === InboxTab.SUBSCRIBE ? '' : 'display: none;')}
|
|
140
154
|
>
|
|
141
155
|
<div class="search">
|
|
142
156
|
<rapid-text-field
|
|
143
157
|
class="search-input"
|
|
144
|
-
|
|
158
|
+
@input=${(x, c) => {
|
|
159
|
+
x.searchSubscribe = c.event.target.value;
|
|
160
|
+
x.filterSearchSubscribe();
|
|
161
|
+
}}
|
|
145
162
|
placeholder="Search Templates..."
|
|
146
163
|
autocomplete="off"
|
|
147
164
|
></rapid-text-field>
|
|
@@ -10,8 +10,8 @@ export var RuleStatus;
|
|
|
10
10
|
})(RuleStatus || (RuleStatus = {}));
|
|
11
11
|
export var InboxTab;
|
|
12
12
|
(function (InboxTab) {
|
|
13
|
-
InboxTab[InboxTab["
|
|
14
|
-
InboxTab[InboxTab["
|
|
15
|
-
InboxTab[InboxTab["
|
|
16
|
-
InboxTab[InboxTab["
|
|
13
|
+
InboxTab[InboxTab["ALERTS_NEW"] = 0] = "ALERTS_NEW";
|
|
14
|
+
InboxTab[InboxTab["ALERT_HISTORY"] = 1] = "ALERT_HISTORY";
|
|
15
|
+
InboxTab[InboxTab["MY_ALERTS"] = 2] = "MY_ALERTS";
|
|
16
|
+
InboxTab[InboxTab["SUBSCRIBE"] = 3] = "SUBSCRIBE";
|
|
17
17
|
})(InboxTab || (InboxTab = {}));
|
|
@@ -9,8 +9,13 @@ import { RightCriteria } from './rule-condition-builder.types';
|
|
|
9
9
|
let RuleConditionBuilder = class RuleConditionBuilder extends GenesisElement {
|
|
10
10
|
constructor() {
|
|
11
11
|
super(...arguments);
|
|
12
|
+
this.fields = [];
|
|
13
|
+
this.leftValue = null;
|
|
12
14
|
this.leftValueItems = [];
|
|
15
|
+
this.logicalOperator = null;
|
|
13
16
|
this.rightCriteria = RightCriteria.VALUE;
|
|
17
|
+
this.rightValueText = null;
|
|
18
|
+
this.rightValueSelect = null;
|
|
14
19
|
}
|
|
15
20
|
deleteCondition() {
|
|
16
21
|
this.$emit('delete', this.condition);
|
|
@@ -60,10 +65,11 @@ let RuleConditionBuilder = class RuleConditionBuilder extends GenesisElement {
|
|
|
60
65
|
this.rightValueSelect = null;
|
|
61
66
|
}
|
|
62
67
|
leftValueChanged() {
|
|
68
|
+
var _a;
|
|
63
69
|
if (!this.condition) {
|
|
64
70
|
return;
|
|
65
71
|
}
|
|
66
|
-
this.condition.LEFT_VALUE = JSON.parse(this.leftValue);
|
|
72
|
+
this.condition.LEFT_VALUE = JSON.parse((_a = this.leftValue) !== null && _a !== void 0 ? _a : '{}');
|
|
67
73
|
if (this.condition.LEFT_VALUE.FIELD_TYPE === FieldTypeEnum.BOOLEAN) {
|
|
68
74
|
this.rightValueText = 'true';
|
|
69
75
|
}
|
|
@@ -12,13 +12,19 @@ import { RuleDialogMode } from './rule-dialog.types';
|
|
|
12
12
|
let RuleDialog = class RuleDialog extends GenesisElement {
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments);
|
|
15
|
+
this.ruleId = null;
|
|
16
|
+
this.name = null;
|
|
17
|
+
this.description = null;
|
|
15
18
|
this.resource = ''; // TODO: Tables + Views
|
|
16
19
|
this.topic = '';
|
|
17
20
|
this.severity = '';
|
|
18
21
|
this.updateType = defaultUpdateType;
|
|
22
|
+
this.header = null;
|
|
23
|
+
this.message = null;
|
|
19
24
|
this.conditions = [];
|
|
20
25
|
this.resources = [];
|
|
21
26
|
this.fields = [];
|
|
27
|
+
this.topics = [];
|
|
22
28
|
this.requiredFields = () => [this.name, this.description, this.header, this.message];
|
|
23
29
|
}
|
|
24
30
|
openDialog(params) {
|
|
@@ -107,7 +107,7 @@ export const RuleDialogTemplate = html `
|
|
|
107
107
|
</div>
|
|
108
108
|
|
|
109
109
|
<div slot="bottom" class="dialog-bottom">
|
|
110
|
-
<rapid-button appearance="
|
|
110
|
+
<rapid-button appearance="primary" @click=${(x) => x.submit()}>Submit</rapid-button>
|
|
111
111
|
</div>
|
|
112
112
|
</rapid-modal>
|
|
113
113
|
`;
|
|
@@ -13,9 +13,9 @@ export const ParameterBuilderStyles = css `
|
|
|
13
13
|
|
|
14
14
|
.delete {
|
|
15
15
|
margin: 0;
|
|
16
|
-
background-color: var(--neutral-layer-1);
|
|
17
16
|
display: flex;
|
|
18
17
|
justify-content: center;
|
|
18
|
+
height: calc(var(--design-unit) * 9px);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.delete:hover {
|
|
@@ -24,6 +24,11 @@ export const ParameterBuilderStyles = css `
|
|
|
24
24
|
|
|
25
25
|
rapid-text-field {
|
|
26
26
|
width: 100%;
|
|
27
|
+
margin-bottom: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
rapid-text-field::part(root) {
|
|
31
|
+
height: calc(var(--design-unit) * 9px);
|
|
27
32
|
}
|
|
28
33
|
|
|
29
34
|
rapid-select {
|
|
@@ -58,7 +58,13 @@ export const ParameterBuilderTemplate = html `
|
|
|
58
58
|
</rapid-select>
|
|
59
59
|
|
|
60
60
|
<rapid-button appearance="icon" class="delete" @click=${(x) => x.deleteParameter()}>
|
|
61
|
-
<rapid-icon
|
|
61
|
+
<rapid-icon
|
|
62
|
+
style="opacity: 0.5"
|
|
63
|
+
variant="regular"
|
|
64
|
+
name="trash-alt"
|
|
65
|
+
size="lg"
|
|
66
|
+
part="icon"
|
|
67
|
+
></rapid-icon>
|
|
62
68
|
</rapid-button>
|
|
63
69
|
</div>
|
|
64
70
|
`;
|
|
@@ -8,8 +8,14 @@ import { TemplateConditionBuilderTemplate } from './template-condition-builder.t
|
|
|
8
8
|
let TemplateConditionBuilder = class TemplateConditionBuilder extends GenesisElement {
|
|
9
9
|
constructor() {
|
|
10
10
|
super(...arguments);
|
|
11
|
+
this.parameters = [];
|
|
12
|
+
this.fields = [];
|
|
13
|
+
this.leftValue = null;
|
|
11
14
|
this.leftValueItems = [];
|
|
15
|
+
this.logicalOperator = null;
|
|
12
16
|
this.rightCriteria = RightCriteria.VALUE;
|
|
17
|
+
this.rightValueText = null;
|
|
18
|
+
this.rightValueSelect = null;
|
|
13
19
|
this.rightValueItems = [];
|
|
14
20
|
// #endregion
|
|
15
21
|
}
|
|
@@ -72,10 +78,11 @@ let TemplateConditionBuilder = class TemplateConditionBuilder extends GenesisEle
|
|
|
72
78
|
this.condition.LEFT_VALUE = JSON.parse((_a = this.leftValue) !== null && _a !== void 0 ? _a : '{}');
|
|
73
79
|
}
|
|
74
80
|
leftValueChanged() {
|
|
81
|
+
var _a;
|
|
75
82
|
if (!this.condition) {
|
|
76
83
|
return;
|
|
77
84
|
}
|
|
78
|
-
this.condition.LEFT_VALUE = JSON.parse(this.leftValue);
|
|
85
|
+
this.condition.LEFT_VALUE = JSON.parse((_a = this.leftValue) !== null && _a !== void 0 ? _a : '{}');
|
|
79
86
|
if (this.condition.LEFT_VALUE.FIELD_TYPE === FieldTypeEnum.BOOLEAN) {
|
|
80
87
|
this.rightValueText = 'true';
|
|
81
88
|
}
|
|
@@ -13,7 +13,14 @@ let TemplateDialog = class TemplateDialog extends GenesisElement {
|
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments);
|
|
15
15
|
this.templateDialogMode = null;
|
|
16
|
+
this.templateId = null;
|
|
17
|
+
this.name = null;
|
|
18
|
+
this.description = null;
|
|
19
|
+
this.header = null;
|
|
20
|
+
this.message = null;
|
|
16
21
|
this.resource = ''; // TODO: Tables + Views
|
|
22
|
+
this.topic = '';
|
|
23
|
+
this.severity = '';
|
|
17
24
|
this.updateType = defaultUpdateType;
|
|
18
25
|
this.parameters = [];
|
|
19
26
|
this.conditions = [];
|
|
@@ -189,9 +196,6 @@ __decorate([
|
|
|
189
196
|
__decorate([
|
|
190
197
|
observable
|
|
191
198
|
], TemplateDialog.prototype, "templateDialogMode", void 0);
|
|
192
|
-
__decorate([
|
|
193
|
-
observable
|
|
194
|
-
], TemplateDialog.prototype, "templateId", void 0);
|
|
195
199
|
__decorate([
|
|
196
200
|
observable
|
|
197
201
|
], TemplateDialog.prototype, "name", void 0);
|
|
@@ -119,7 +119,7 @@ export const TemplateDialogTemplate = html `
|
|
|
119
119
|
</div>
|
|
120
120
|
|
|
121
121
|
<div slot="bottom" class="dialog-bottom">
|
|
122
|
-
<rapid-button appearance="
|
|
122
|
+
<rapid-button appearance="primary" @click=${(x) => x.submit()}>Submit</rapid-button>
|
|
123
123
|
</div>
|
|
124
124
|
</rapid-modal>
|
|
125
125
|
`;
|
package/dist/esm/components/foundation-notification-dashboard/styles/condition-builder.styles.js
CHANGED
|
@@ -17,6 +17,10 @@ export const ConditionBuilderStyles = css `
|
|
|
17
17
|
height: calc(var(--design-unit) * 9px);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
.delete:hover {
|
|
21
|
+
background-color: color-mix(in srgb, var(--neutral-foreground-rest), transparent 89%);
|
|
22
|
+
}
|
|
23
|
+
|
|
20
24
|
rapid-text-field {
|
|
21
25
|
width: 100%;
|
|
22
26
|
margin-bottom: 0;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { css } from '@genesislcap/web-core';
|
|
2
|
+
import { scrollbarStyles } from '../../../styles/scrollbar.styles';
|
|
2
3
|
export const DynamicRuleManagementStyles = css `
|
|
3
4
|
.container {
|
|
4
5
|
display: flex;
|
|
@@ -70,11 +71,12 @@ const select = css `
|
|
|
70
71
|
max-height: 40px;
|
|
71
72
|
}
|
|
72
73
|
|
|
73
|
-
rapid-multiselect::part(
|
|
74
|
+
rapid-multiselect::part(filter-search) {
|
|
74
75
|
height: calc((var(--design-unit) * 9px) - 2px);
|
|
75
76
|
}
|
|
76
77
|
`;
|
|
77
78
|
export const DynamicRuleDialogStyles = css `
|
|
79
|
+
${scrollbarStyles}
|
|
78
80
|
${top}
|
|
79
81
|
${bottom}
|
|
80
82
|
|
|
@@ -146,17 +148,5 @@ export const DynamicRuleDialogStyles = css `
|
|
|
146
148
|
.topic {
|
|
147
149
|
min-width: revert-layer;
|
|
148
150
|
}
|
|
149
|
-
|
|
150
|
-
::-webkit-scrollbar {
|
|
151
|
-
width: calc((var(--base-height-multiplier) + var(--design-unit)) * 1px);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
::-webkit-scrollbar-track {
|
|
155
|
-
background: var(--neutral-layer-1);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
::-webkit-scrollbar-thumb {
|
|
159
|
-
background: var(--neutral-fill-rest);
|
|
160
|
-
}
|
|
161
151
|
`;
|
|
162
152
|
// #endregion
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { __awaiter, __decorate } from "tslib";
|
|
2
|
+
import { Auth, AuthType, Connect } from '@genesislcap/foundation-comms';
|
|
3
|
+
import { css, customElement, GenesisElement, html, observable, when } from '@genesislcap/web-core';
|
|
4
|
+
let ReconciliationSandbox = class ReconciliationSandbox extends GenesisElement {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(...arguments);
|
|
7
|
+
this.ready = false;
|
|
8
|
+
}
|
|
9
|
+
connectedCallback() {
|
|
10
|
+
const _super = Object.create(null, {
|
|
11
|
+
connectedCallback: { get: () => super.connectedCallback }
|
|
12
|
+
});
|
|
13
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14
|
+
_super.connectedCallback.call(this);
|
|
15
|
+
console.log('.env:', {
|
|
16
|
+
GENX_SANDBOX_DEFAULT_USER,
|
|
17
|
+
GENX_SANDBOX_DEFAULT_PASSWORD,
|
|
18
|
+
GENX_SANDBOX_API_HOST,
|
|
19
|
+
});
|
|
20
|
+
yield this.connect.connect(GENX_SANDBOX_API_HOST);
|
|
21
|
+
yield this.auth.login({
|
|
22
|
+
username: GENX_SANDBOX_DEFAULT_USER,
|
|
23
|
+
password: GENX_SANDBOX_DEFAULT_PASSWORD,
|
|
24
|
+
type: AuthType.BASIC,
|
|
25
|
+
});
|
|
26
|
+
this.auth.isLoggedIn$.subscribe((isLoggedIn) => {
|
|
27
|
+
this.ready = isLoggedIn;
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
__decorate([
|
|
33
|
+
Connect
|
|
34
|
+
], ReconciliationSandbox.prototype, "connect", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
Auth
|
|
37
|
+
], ReconciliationSandbox.prototype, "auth", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
observable
|
|
40
|
+
], ReconciliationSandbox.prototype, "ready", void 0);
|
|
41
|
+
ReconciliationSandbox = __decorate([
|
|
42
|
+
customElement({
|
|
43
|
+
name: 'notify-sandbox',
|
|
44
|
+
template: html `
|
|
45
|
+
${when((x) => x.ready, html `
|
|
46
|
+
<rapid-design-system-provider>
|
|
47
|
+
<foundation-notification-dashboard></foundation-notification-dashboard>
|
|
48
|
+
<!-- <foundation-inbox></foundation-inbox> -->
|
|
49
|
+
</rapid-design-system-provider>
|
|
50
|
+
`)}
|
|
51
|
+
`,
|
|
52
|
+
styles: css ``,
|
|
53
|
+
})
|
|
54
|
+
], ReconciliationSandbox);
|
|
55
|
+
export { ReconciliationSandbox };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { css } from '@genesislcap/web-core';
|
|
2
|
+
export const scrollbarStyles = css `
|
|
3
|
+
::-webkit-scrollbar {
|
|
4
|
+
width: calc((var(--base-height-multiplier) + var(--design-unit)) * 1px);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
::-webkit-scrollbar-track {
|
|
8
|
+
background: var(--neutral-layer-1);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
::-webkit-scrollbar-thumb {
|
|
12
|
+
background: var(--neutral-fill-rest);
|
|
13
|
+
}
|
|
14
|
+
`;
|
package/index.html
CHANGED
|
@@ -1,26 +1,28 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html lang="en">
|
|
3
|
+
|
|
3
4
|
<head>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
<style>
|
|
5
|
+
<meta charset="utf-8" />
|
|
6
|
+
<title>{{htmlWebpackPlugin.options.title}}</title>
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
8
|
+
<style>
|
|
9
9
|
html,
|
|
10
10
|
body {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
:not(:defined) {
|
|
17
|
-
visibility: hidden;
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 100%;
|
|
13
|
+
background: var(--neutral-layer-4);
|
|
14
|
+
padding: 0;
|
|
15
|
+
margin: 0;
|
|
18
16
|
}
|
|
19
|
-
</style>
|
|
17
|
+
</style>
|
|
18
|
+
</head>
|
|
19
|
+
|
|
20
20
|
<body>
|
|
21
|
-
<
|
|
22
|
-
{{#if insertEntryPoint}}
|
|
23
|
-
<script type="module" src="/src/
|
|
24
|
-
|
|
21
|
+
<notify-sandbox></notify-sandbox>
|
|
22
|
+
{{#if insertEntryPoint}}
|
|
23
|
+
<script type="module" src="/src/sandbox.ts"></script>
|
|
24
|
+
<script type="module" src="/src/index.ts"></script>
|
|
25
|
+
{{/if}}
|
|
25
26
|
</body>
|
|
26
|
-
|
|
27
|
+
|
|
28
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/pbc-notify-ui",
|
|
3
3
|
"description": "Genesis PBC Notify UI",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.43",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"workspaces": [
|
|
7
7
|
"client"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"clean": "genx clean dist node_modules",
|
|
42
42
|
"circular": "npx madge --extensions ts --circular ./src",
|
|
43
43
|
"commitlint": "node ./scripts/commitlint",
|
|
44
|
-
"dev": "genx dev
|
|
44
|
+
"dev": "genx dev",
|
|
45
45
|
"dev:docker": "npm run dev -- --host 0.0.0.0",
|
|
46
46
|
"dev:intellij": "genx dev -e",
|
|
47
47
|
"dev:no-open": "npm run dev -- --no-open",
|
|
@@ -86,15 +86,20 @@
|
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
|
+
"@genesiscommunitysuccess/cep-fast-plugin": "5.0.3",
|
|
90
|
+
"@genesiscommunitysuccess/custom-elements-lsp": "5.0.3",
|
|
89
91
|
"@commitlint/cli": "^19.2.1",
|
|
90
92
|
"@commitlint/config-conventional": "^19.1.0",
|
|
91
93
|
"@commitlint/format": "^19.0.3",
|
|
94
|
+
"@genesislcap/design-system-configurator": "~14",
|
|
92
95
|
"@genesislcap/eslint-config": "~14",
|
|
93
96
|
"@genesislcap/eslint-stylelint-builder": "~14",
|
|
94
97
|
"@genesislcap/foundation-testing": "~14",
|
|
95
98
|
"@genesislcap/genx": "~14",
|
|
96
99
|
"@genesislcap/prettier-config": "~14",
|
|
97
100
|
"@genesislcap/stylelint-config": "~14",
|
|
101
|
+
"@genesislcap/vite-builder": "~14",
|
|
102
|
+
"@genesislcap/webpack-builder": "~14",
|
|
98
103
|
"conventional-changelog-conventionalcommits": "^6.1.0",
|
|
99
104
|
"husky": "9.0.11",
|
|
100
105
|
"lint-prepush": "^2.2.1",
|
|
@@ -105,19 +110,24 @@
|
|
|
105
110
|
},
|
|
106
111
|
"peerDependencies": {
|
|
107
112
|
"@genesislcap/foundation-comms": "~14",
|
|
113
|
+
"@genesislcap/foundation-events": "~14",
|
|
108
114
|
"@genesislcap/foundation-entity-management": "~14",
|
|
109
115
|
"@genesislcap/foundation-forms": "~14",
|
|
116
|
+
"@genesislcap/foundation-notifications": "~14",
|
|
110
117
|
"@genesislcap/foundation-layout": "~14",
|
|
111
118
|
"@genesislcap/foundation-logger": "~14",
|
|
112
|
-
"@genesislcap/foundation-
|
|
119
|
+
"@genesislcap/foundation-shell": "~14",
|
|
120
|
+
"@genesislcap/foundation-store": "~14",
|
|
113
121
|
"@genesislcap/foundation-ui": "~14",
|
|
114
122
|
"@genesislcap/foundation-utils": "~14",
|
|
115
123
|
"@genesislcap/foundation-zero": "~14",
|
|
124
|
+
"@genesislcap/foundation-zero-grid-pro": "~14",
|
|
125
|
+
"@genesislcap/rapid-grid-pro": "~14",
|
|
116
126
|
"@genesislcap/rapid-design-system": "~14",
|
|
127
|
+
"@genesislcap/g2plot-chart": "~14",
|
|
117
128
|
"@genesislcap/web-core": "~14"
|
|
118
129
|
},
|
|
119
130
|
"publishConfig": {
|
|
120
131
|
"access": "public"
|
|
121
|
-
}
|
|
122
|
-
"customElements": "dist/custom-elements.json"
|
|
132
|
+
}
|
|
123
133
|
}
|