@genesislcap/pbc-notify-ui 1.0.64 → 14.308.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/api-extractor.json +4 -0
  2. package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.d.ts.map +1 -1
  3. package/dist/dts/components/foundation-inbox/inbox.utils.d.ts.map +1 -1
  4. package/dist/dts/components/foundation-notification-dashboard/components/rules/columns.d.ts.map +1 -1
  5. package/dist/dts/components/foundation-notification-dashboard/components/templates/columns.d.ts.map +1 -1
  6. package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.utils.d.ts.map +1 -1
  7. package/dist/dts/tsdoc-metadata.json +11 -0
  8. package/dist/dts/utils/gridConfig.d.ts.map +1 -1
  9. package/dist/dts/utils/humanize.d.ts.map +1 -1
  10. package/dist/dts/utils/toBoolean.d.ts.map +1 -1
  11. package/dist/dts/utils/updateArray.d.ts.map +1 -1
  12. package/dist/esm/index.federated.js +0 -1
  13. package/dist/pbc-notify-ui.api.json +889 -0
  14. package/dist/pbc-notify-ui.d.ts +252 -0
  15. package/dist/tsconfig.tsbuildinfo +1 -0
  16. package/docs/api/index.md +30 -0
  17. package/docs/api/pbc-notify-ui.foundationinbox.connectedcallback.md +18 -0
  18. package/docs/api/pbc-notify-ui.foundationinbox.disconnectedcallback.md +18 -0
  19. package/docs/api/pbc-notify-ui.foundationinbox.md +66 -0
  20. package/docs/api/pbc-notify-ui.foundationinboxcounter.connectedcallback.md +15 -0
  21. package/docs/api/pbc-notify-ui.foundationinboxcounter.disconnectedcallback.md +15 -0
  22. package/docs/api/pbc-notify-ui.foundationinboxcounter.inboxservice.md +11 -0
  23. package/docs/api/pbc-notify-ui.foundationinboxcounter.md +116 -0
  24. package/docs/api/pbc-notify-ui.foundationinboxcounter.value.md +11 -0
  25. package/docs/api/pbc-notify-ui.foundationinboxflyout.close.md +15 -0
  26. package/docs/api/pbc-notify-ui.foundationinboxflyout.connectedcallback.md +15 -0
  27. package/docs/api/pbc-notify-ui.foundationinboxflyout.disconnectedcallback.md +15 -0
  28. package/docs/api/pbc-notify-ui.foundationinboxflyout.flyout.md +11 -0
  29. package/docs/api/pbc-notify-ui.foundationinboxflyout.flyoutclosed.md +11 -0
  30. package/docs/api/pbc-notify-ui.foundationinboxflyout.loadremotes.md +15 -0
  31. package/docs/api/pbc-notify-ui.foundationinboxflyout.md +169 -0
  32. package/docs/api/pbc-notify-ui.foundationinboxflyout.open.md +15 -0
  33. package/docs/api/pbc-notify-ui.foundationinboxflyout.ready.md +11 -0
  34. package/docs/api/pbc-notify-ui.foundationnotificationdashboard.auth.md +11 -0
  35. package/docs/api/pbc-notify-ui.foundationnotificationdashboard.connectedcallback.md +15 -0
  36. package/docs/api/pbc-notify-ui.foundationnotificationdashboard.haspermissions.md +11 -0
  37. package/docs/api/pbc-notify-ui.foundationnotificationdashboard.md +122 -0
  38. package/docs/api/pbc-notify-ui.foundationnotificationdashboard.ready.md +11 -0
  39. package/docs/api/pbc-notify-ui.md +60 -0
  40. package/docs/api-report.md.api.md +76 -0
  41. package/license.txt +46 -0
  42. package/package.json +26 -39
  43. package/src/components/components.ts +54 -0
  44. package/src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.styles.ts +30 -0
  45. package/src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.template.ts +16 -0
  46. package/src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.ts +33 -0
  47. package/src/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.styles.ts +18 -0
  48. package/src/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.template.ts +22 -0
  49. package/src/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.ts +43 -0
  50. package/src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.styles.ts +37 -0
  51. package/src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.ts +50 -0
  52. package/src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.ts +81 -0
  53. package/src/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.styles.ts +25 -0
  54. package/src/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.ts +96 -0
  55. package/src/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.ts +55 -0
  56. package/src/components/foundation-inbox/inbox-base/inbox-base.ts +320 -0
  57. package/src/components/foundation-inbox/inbox.styles.ts +309 -0
  58. package/src/components/foundation-inbox/inbox.template.ts +317 -0
  59. package/src/components/foundation-inbox/inbox.ts +26 -0
  60. package/src/components/foundation-inbox/inbox.types.ts +84 -0
  61. package/src/components/foundation-inbox/inbox.utils.ts +33 -0
  62. package/src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts +96 -0
  63. package/src/components/foundation-notification-dashboard/components/routes/route-management.ts +56 -0
  64. package/src/components/foundation-notification-dashboard/components/routes/tabs/email-distribution-route-management.ts +58 -0
  65. package/src/components/foundation-notification-dashboard/components/routes/tabs/email-user-route-management.ts +68 -0
  66. package/src/components/foundation-notification-dashboard/components/routes/tabs/log-route-management.ts +43 -0
  67. package/src/components/foundation-notification-dashboard/components/routes/tabs/ms-teams-route-management.ts +48 -0
  68. package/src/components/foundation-notification-dashboard/components/routes/tabs/screen-route-management.ts +73 -0
  69. package/src/components/foundation-notification-dashboard/components/rules/columns.ts +48 -0
  70. package/src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.ts +139 -0
  71. package/src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.ts +255 -0
  72. package/src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.types.ts +4 -0
  73. package/src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.ts +159 -0
  74. package/src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.ts +202 -0
  75. package/src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.types.ts +28 -0
  76. package/src/components/foundation-notification-dashboard/components/rules/rule-management.ts +72 -0
  77. package/src/components/foundation-notification-dashboard/components/templates/columns.ts +48 -0
  78. package/src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts +59 -0
  79. package/src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts +95 -0
  80. package/src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts +124 -0
  81. package/src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts +107 -0
  82. package/src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts +185 -0
  83. package/src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.ts +139 -0
  84. package/src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.ts +246 -0
  85. package/src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types.ts +38 -0
  86. package/src/components/foundation-notification-dashboard/components/templates/template-management.ts +72 -0
  87. package/src/components/foundation-notification-dashboard/index.ts +1 -0
  88. package/src/components/foundation-notification-dashboard/notification-dashboard.styles.ts +21 -0
  89. package/src/components/foundation-notification-dashboard/notification-dashboard.tabs.ts +35 -0
  90. package/src/components/foundation-notification-dashboard/notification-dashboard.template.ts +58 -0
  91. package/src/components/foundation-notification-dashboard/notification-dashboard.ts +40 -0
  92. package/src/components/foundation-notification-dashboard/notification-dashboard.utils.ts +295 -0
  93. package/src/components/foundation-notification-dashboard/styles/condition-builder.styles.ts +66 -0
  94. package/src/components/foundation-notification-dashboard/styles/dynamic-rule.styles.ts +159 -0
  95. package/src/components/foundation-notification-dashboard/styles/management.styles.ts +21 -0
  96. package/src/components/foundation-notification-dashboard/types/expression-type.ts +13 -0
  97. package/src/components/foundation-notification-dashboard/types/logical-operator.ts +18 -0
  98. package/src/components/foundation-notification-dashboard/types/param-source-type.ts +11 -0
  99. package/src/components/foundation-notification-dashboard/types/param-type.ts +13 -0
  100. package/src/components/foundation-notification-dashboard/types/right-criteria.ts +6 -0
  101. package/src/components/foundation-notification-dashboard/types/rule-execution-strategy.ts +6 -0
  102. package/src/components/foundation-notification-dashboard/types/severity.ts +13 -0
  103. package/src/globals.d.ts +7 -0
  104. package/src/index.federated.ts +1 -0
  105. package/src/index.ts +4 -0
  106. package/src/notify.types.ts +143 -0
  107. package/src/sandbox.ts +83 -0
  108. package/src/services/alert.service.ts +36 -0
  109. package/src/services/inbox.service.ts +85 -0
  110. package/src/services/notify.service.ts +21 -0
  111. package/src/services/rule.service.ts +129 -0
  112. package/src/services/system.service.ts +43 -0
  113. package/src/services/template.service.ts +71 -0
  114. package/src/styles/scrollbar.styles.ts +15 -0
  115. package/src/utils/eventDetail.ts +5 -0
  116. package/src/utils/gridConfig.ts +14 -0
  117. package/src/utils/humanize.ts +14 -0
  118. package/src/utils/icons.ts +15 -0
  119. package/src/utils/index.ts +6 -0
  120. package/src/utils/logger.ts +3 -0
  121. package/src/utils/notifyPermissions.ts +6 -0
  122. package/src/utils/toBoolean.ts +7 -0
  123. package/src/utils/updateArray.ts +33 -0
  124. package/temp/api-report.md.api.md +76 -0
  125. package/tsconfig.json +11 -0
  126. package/.husky/commit-msg +0 -3
  127. package/.husky/pre-commit +0 -4
  128. package/README.md +0 -31
  129. package/commitlint.config.js +0 -25
  130. package/index.html +0 -28
  131. package/scripts/commitlint.js +0 -24
  132. package/sonar-project.properties +0 -5
@@ -0,0 +1,6 @@
1
+ export const NotifyPermission = {
2
+ NotificationRuleView: 'NotificationRuleView',
3
+ NotificationRuleTemplateView: 'NotificationRuleTemplateView',
4
+ NotificationRouteView: 'NotificationRouteView',
5
+ NotificationAuditView: 'NotificationAuditView',
6
+ };
@@ -0,0 +1,7 @@
1
+ export const toBoolean = (s: string) => {
2
+ if (!s) {
3
+ return false;
4
+ }
5
+
6
+ return JSON.parse(s.toLowerCase());
7
+ };
@@ -0,0 +1,33 @@
1
+ export const updateArray = (newData: Array<any>, oldData: Array<any>): Array<any> => {
2
+ if (newData && oldData && oldData.length > 0) {
3
+ newData.forEach((row) => {
4
+ const eventData = row;
5
+
6
+ if (eventData && eventData.DETAILS) {
7
+ const ref = eventData.DETAILS.ROW_REF;
8
+ const type = eventData.DETAILS.OPERATION;
9
+
10
+ if (type === 'INSERT') {
11
+ if (!oldData.find((x) => x.DETAILS?.ROW_REF === ref)) {
12
+ oldData.unshift(eventData);
13
+ }
14
+ }
15
+
16
+ if (type === 'DELETE') {
17
+ oldData = oldData.filter((x) => row.DETAILS?.ROW_REF !== x.DETAILS?.ROW_REF);
18
+ }
19
+
20
+ if (type === 'MODIFY') {
21
+ oldData = oldData.map((item: any) =>
22
+ item.DETAILS?.ROW_REF === ref ? { ...item, ...eventData } : item,
23
+ );
24
+ }
25
+ }
26
+ });
27
+ } else if (Array.isArray(newData) && (!oldData || oldData.length === 0)) {
28
+ const inserts = newData.filter((row) => row?.DETAILS?.OPERATION === 'INSERT');
29
+ oldData = [...new Set(inserts)] as any[];
30
+ }
31
+
32
+ return oldData;
33
+ };
@@ -0,0 +1,76 @@
1
+ ## API Report File for "@genesislcap/pbc-notify-ui"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import { Auth } from '@genesislcap/foundation-comms';
8
+ import { Expression } from '@genesislcap/foundation-criteria';
9
+ import type { Flyout } from '@genesislcap/rapid-design-system';
10
+ import { GenesisElement } from '@genesislcap/web-core';
11
+ import { InterfaceSymbol } from '@microsoft/fast-foundation';
12
+ import { Message } from '@genesislcap/foundation-comms';
13
+ import { SocketObservable } from '@genesislcap/foundation-comms';
14
+ import type { Tabs } from '@genesislcap/foundation-ui';
15
+
16
+ // Warning: (ae-forgotten-export) The symbol "FoundationInboxBase" needs to be exported by the entry point index.d.ts
17
+ //
18
+ // @beta
19
+ export class FoundationInbox extends FoundationInboxBase {
20
+ // (undocumented)
21
+ connectedCallback(): Promise<void>;
22
+ // (undocumented)
23
+ disconnectedCallback(): void;
24
+ }
25
+
26
+ // @public (undocumented)
27
+ export class FoundationInboxCounter extends GenesisElement {
28
+ // (undocumented)
29
+ connectedCallback(): Promise<void>;
30
+ // (undocumented)
31
+ disconnectedCallback(): void;
32
+ // Warning: (ae-forgotten-export) The symbol "FoundationInboxService" needs to be exported by the entry point index.d.ts
33
+ //
34
+ // (undocumented)
35
+ inboxService: FoundationInboxService;
36
+ // (undocumented)
37
+ value: number;
38
+ }
39
+
40
+ // @public (undocumented)
41
+ export class FoundationInboxFlyout extends FoundationInboxBase {
42
+ // (undocumented)
43
+ close(): void;
44
+ // (undocumented)
45
+ connectedCallback(): Promise<void>;
46
+ // (undocumented)
47
+ disconnectedCallback(): void;
48
+ // (undocumented)
49
+ flyout: Flyout;
50
+ // (undocumented)
51
+ flyoutClosed: boolean;
52
+ // (undocumented)
53
+ loadRemotes(): Promise<void>;
54
+ // (undocumented)
55
+ open(): Promise<void>;
56
+ // (undocumented)
57
+ ready: boolean;
58
+ }
59
+
60
+ // @public (undocumented)
61
+ export class FoundationNotificationDashboard extends GenesisElement {
62
+ // (undocumented)
63
+ auth: Auth;
64
+ // (undocumented)
65
+ connectedCallback(): Promise<void>;
66
+ // (undocumented)
67
+ hasPermissions: boolean;
68
+ // @internal
69
+ loadRemotes(): Promise<void>;
70
+ // (undocumented)
71
+ ready: boolean;
72
+ }
73
+
74
+ // (No @packageDocumentation comment for this package)
75
+
76
+ ```
package/tsconfig.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "extends": "../../../../tsconfig.json",
3
+ "compilerOptions": {
4
+ "declarationDir": "./dist/dts",
5
+ "outDir": "./dist/esm",
6
+ "rootDir": "./src"
7
+ },
8
+ "include": [
9
+ "src/**/*"
10
+ ]
11
+ }
package/.husky/commit-msg DELETED
@@ -1,3 +0,0 @@
1
- #!/bin/sh
2
- . "$(dirname "$0")/_/husky.sh"
3
- npx --no -- commitlint --config client/commitlint.config.js --edit ${1}
package/.husky/pre-commit DELETED
@@ -1,4 +0,0 @@
1
- #!/bin/sh
2
- . "$(dirname "$0")/_/husky.sh"
3
-
4
- cd client && npx --no lint-staged
package/README.md DELETED
@@ -1,31 +0,0 @@
1
- # Client (Web)
2
-
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
10
- - Do the [npm link](https://docs.npmjs.com/cli/v10/commands/npm-link) between the projects:
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`
13
- - On pbc-notify-ui [package.json](package.json) change the following lines:
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,25 +0,0 @@
1
- module.exports = {
2
- extends: ['@commitlint/config-conventional'],
3
- rules: {
4
- 'references-empty': [2, 'never'],
5
- },
6
- parserPreset: {
7
- parserOpts: {
8
- issuePrefixes: [
9
- 'DCD-',
10
- 'DVOP-',
11
- 'FUI-',
12
- 'GSA-',
13
- 'PA-',
14
- 'PLAT-',
15
- 'PSD-',
16
- 'PTC-',
17
- 'PTF-',
18
- 'PTL-',
19
- 'TPD-',
20
- 'NOTIFY-',
21
- 'PBC-',
22
- ],
23
- },
24
- },
25
- };
package/index.html DELETED
@@ -1,28 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
-
4
- <head>
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
- html,
10
- body {
11
- width: 100%;
12
- height: 100%;
13
- background: var(--neutral-layer-4);
14
- padding: 0;
15
- margin: 0;
16
- }
17
- </style>
18
- </head>
19
-
20
- <body>
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}}
26
- </body>
27
-
28
- </html>
@@ -1,24 +0,0 @@
1
- // wrapper around commitlint CLI allowing to check commit messages
2
- const format = require('@commitlint/format').default;
3
- const lint = require('@commitlint/lint').default;
4
- const load = require('@commitlint/load').default;
5
-
6
- const message = process.argv.slice(2).join(' ');
7
-
8
- load({}, { file: 'commitlint.config.js', cwd: process.cwd() })
9
- .then((opts) =>
10
- lint(
11
- message,
12
- opts.rules,
13
- opts.parserPreset ? { parserOpts: opts.parserPreset.parserOpts } : {},
14
- ),
15
- )
16
- .then((report) => {
17
- if (report.valid) {
18
- console.log(`⧗ input: ${message}
19
- ✔ Commitlint check successful
20
- `);
21
- } else {
22
- console.log(format({ results: [report] }));
23
- }
24
- });
@@ -1,5 +0,0 @@
1
- sonar.projectKey=genesislcap_genesis-notify_client
2
- sonar.projectName=pbc-notify-ui
3
- sonar.organization=genesislcap
4
- sonar.host.url=https://sonarcloud.io
5
- sonar.sourceEncoding=UTF-8