@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.
- package/api-extractor.json +4 -0
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox.utils.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/columns.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/columns.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.utils.d.ts.map +1 -1
- package/dist/dts/tsdoc-metadata.json +11 -0
- package/dist/dts/utils/gridConfig.d.ts.map +1 -1
- package/dist/dts/utils/humanize.d.ts.map +1 -1
- package/dist/dts/utils/toBoolean.d.ts.map +1 -1
- package/dist/dts/utils/updateArray.d.ts.map +1 -1
- package/dist/esm/index.federated.js +0 -1
- package/dist/pbc-notify-ui.api.json +889 -0
- package/dist/pbc-notify-ui.d.ts +252 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/docs/api/index.md +30 -0
- package/docs/api/pbc-notify-ui.foundationinbox.connectedcallback.md +18 -0
- package/docs/api/pbc-notify-ui.foundationinbox.disconnectedcallback.md +18 -0
- package/docs/api/pbc-notify-ui.foundationinbox.md +66 -0
- package/docs/api/pbc-notify-ui.foundationinboxcounter.connectedcallback.md +15 -0
- package/docs/api/pbc-notify-ui.foundationinboxcounter.disconnectedcallback.md +15 -0
- package/docs/api/pbc-notify-ui.foundationinboxcounter.inboxservice.md +11 -0
- package/docs/api/pbc-notify-ui.foundationinboxcounter.md +116 -0
- package/docs/api/pbc-notify-ui.foundationinboxcounter.value.md +11 -0
- package/docs/api/pbc-notify-ui.foundationinboxflyout.close.md +15 -0
- package/docs/api/pbc-notify-ui.foundationinboxflyout.connectedcallback.md +15 -0
- package/docs/api/pbc-notify-ui.foundationinboxflyout.disconnectedcallback.md +15 -0
- package/docs/api/pbc-notify-ui.foundationinboxflyout.flyout.md +11 -0
- package/docs/api/pbc-notify-ui.foundationinboxflyout.flyoutclosed.md +11 -0
- package/docs/api/pbc-notify-ui.foundationinboxflyout.loadremotes.md +15 -0
- package/docs/api/pbc-notify-ui.foundationinboxflyout.md +169 -0
- package/docs/api/pbc-notify-ui.foundationinboxflyout.open.md +15 -0
- package/docs/api/pbc-notify-ui.foundationinboxflyout.ready.md +11 -0
- package/docs/api/pbc-notify-ui.foundationnotificationdashboard.auth.md +11 -0
- package/docs/api/pbc-notify-ui.foundationnotificationdashboard.connectedcallback.md +15 -0
- package/docs/api/pbc-notify-ui.foundationnotificationdashboard.haspermissions.md +11 -0
- package/docs/api/pbc-notify-ui.foundationnotificationdashboard.md +122 -0
- package/docs/api/pbc-notify-ui.foundationnotificationdashboard.ready.md +11 -0
- package/docs/api/pbc-notify-ui.md +60 -0
- package/docs/api-report.md.api.md +76 -0
- package/license.txt +46 -0
- package/package.json +26 -39
- package/src/components/components.ts +54 -0
- package/src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.styles.ts +30 -0
- package/src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.template.ts +16 -0
- package/src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.ts +33 -0
- package/src/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.styles.ts +18 -0
- package/src/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.template.ts +22 -0
- package/src/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.ts +43 -0
- package/src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.styles.ts +37 -0
- package/src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.ts +50 -0
- package/src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.ts +81 -0
- package/src/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.styles.ts +25 -0
- package/src/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.ts +96 -0
- package/src/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.ts +55 -0
- package/src/components/foundation-inbox/inbox-base/inbox-base.ts +320 -0
- package/src/components/foundation-inbox/inbox.styles.ts +309 -0
- package/src/components/foundation-inbox/inbox.template.ts +317 -0
- package/src/components/foundation-inbox/inbox.ts +26 -0
- package/src/components/foundation-inbox/inbox.types.ts +84 -0
- package/src/components/foundation-inbox/inbox.utils.ts +33 -0
- package/src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts +96 -0
- package/src/components/foundation-notification-dashboard/components/routes/route-management.ts +56 -0
- package/src/components/foundation-notification-dashboard/components/routes/tabs/email-distribution-route-management.ts +58 -0
- package/src/components/foundation-notification-dashboard/components/routes/tabs/email-user-route-management.ts +68 -0
- package/src/components/foundation-notification-dashboard/components/routes/tabs/log-route-management.ts +43 -0
- package/src/components/foundation-notification-dashboard/components/routes/tabs/ms-teams-route-management.ts +48 -0
- package/src/components/foundation-notification-dashboard/components/routes/tabs/screen-route-management.ts +73 -0
- package/src/components/foundation-notification-dashboard/components/rules/columns.ts +48 -0
- package/src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.ts +139 -0
- package/src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.ts +255 -0
- package/src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.types.ts +4 -0
- package/src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.ts +159 -0
- package/src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.ts +202 -0
- package/src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.types.ts +28 -0
- package/src/components/foundation-notification-dashboard/components/rules/rule-management.ts +72 -0
- package/src/components/foundation-notification-dashboard/components/templates/columns.ts +48 -0
- package/src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts +59 -0
- package/src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts +95 -0
- package/src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts +124 -0
- package/src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts +107 -0
- package/src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts +185 -0
- package/src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.ts +139 -0
- package/src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.ts +246 -0
- package/src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types.ts +38 -0
- package/src/components/foundation-notification-dashboard/components/templates/template-management.ts +72 -0
- package/src/components/foundation-notification-dashboard/index.ts +1 -0
- package/src/components/foundation-notification-dashboard/notification-dashboard.styles.ts +21 -0
- package/src/components/foundation-notification-dashboard/notification-dashboard.tabs.ts +35 -0
- package/src/components/foundation-notification-dashboard/notification-dashboard.template.ts +58 -0
- package/src/components/foundation-notification-dashboard/notification-dashboard.ts +40 -0
- package/src/components/foundation-notification-dashboard/notification-dashboard.utils.ts +295 -0
- package/src/components/foundation-notification-dashboard/styles/condition-builder.styles.ts +66 -0
- package/src/components/foundation-notification-dashboard/styles/dynamic-rule.styles.ts +159 -0
- package/src/components/foundation-notification-dashboard/styles/management.styles.ts +21 -0
- package/src/components/foundation-notification-dashboard/types/expression-type.ts +13 -0
- package/src/components/foundation-notification-dashboard/types/logical-operator.ts +18 -0
- package/src/components/foundation-notification-dashboard/types/param-source-type.ts +11 -0
- package/src/components/foundation-notification-dashboard/types/param-type.ts +13 -0
- package/src/components/foundation-notification-dashboard/types/right-criteria.ts +6 -0
- package/src/components/foundation-notification-dashboard/types/rule-execution-strategy.ts +6 -0
- package/src/components/foundation-notification-dashboard/types/severity.ts +13 -0
- package/src/globals.d.ts +7 -0
- package/src/index.federated.ts +1 -0
- package/src/index.ts +4 -0
- package/src/notify.types.ts +143 -0
- package/src/sandbox.ts +83 -0
- package/src/services/alert.service.ts +36 -0
- package/src/services/inbox.service.ts +85 -0
- package/src/services/notify.service.ts +21 -0
- package/src/services/rule.service.ts +129 -0
- package/src/services/system.service.ts +43 -0
- package/src/services/template.service.ts +71 -0
- package/src/styles/scrollbar.styles.ts +15 -0
- package/src/utils/eventDetail.ts +5 -0
- package/src/utils/gridConfig.ts +14 -0
- package/src/utils/humanize.ts +14 -0
- package/src/utils/icons.ts +15 -0
- package/src/utils/index.ts +6 -0
- package/src/utils/logger.ts +3 -0
- package/src/utils/notifyPermissions.ts +6 -0
- package/src/utils/toBoolean.ts +7 -0
- package/src/utils/updateArray.ts +33 -0
- package/temp/api-report.md.api.md +76 -0
- package/tsconfig.json +11 -0
- package/.husky/commit-msg +0 -3
- package/.husky/pre-commit +0 -4
- package/README.md +0 -31
- package/commitlint.config.js +0 -25
- package/index.html +0 -28
- package/scripts/commitlint.js +0 -24
- package/sonar-project.properties +0 -5
|
@@ -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
package/.husky/commit-msg
DELETED
package/.husky/pre-commit
DELETED
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._
|
package/commitlint.config.js
DELETED
|
@@ -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>
|
package/scripts/commitlint.js
DELETED
|
@@ -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
|
-
});
|