@genesislcap/pbc-notify-ui 15.24.0 → 15.24.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +1030 -1030
- package/dist/dts/react.d.ts +9 -9
- package/dist/dts/services/system.service.d.ts.map +1 -1
- package/dist/esm/services/system.service.js +23 -33
- package/dist/react.cjs +6 -6
- package/dist/react.mjs +5 -5
- package/package.json +22 -22
package/dist/dts/react.d.ts
CHANGED
|
@@ -79,6 +79,15 @@ export declare const FoundationInbox: React.ForwardRefExoticComponent<
|
|
|
79
79
|
>;
|
|
80
80
|
export type FoundationInboxRef = FoundationInboxWC;
|
|
81
81
|
|
|
82
|
+
export declare const FoundationNotificationDashboard: React.ForwardRefExoticComponent<
|
|
83
|
+
React.PropsWithChildren<
|
|
84
|
+
Omit<PublicOf<FoundationNotificationDashboardWC>, 'children' | 'style'> &
|
|
85
|
+
HTMLWCProps & {
|
|
86
|
+
}
|
|
87
|
+
> & React.RefAttributes<FoundationNotificationDashboardWC>
|
|
88
|
+
>;
|
|
89
|
+
export type FoundationNotificationDashboardRef = FoundationNotificationDashboardWC;
|
|
90
|
+
|
|
82
91
|
export declare const FoundationSoundsPanel: React.ForwardRefExoticComponent<
|
|
83
92
|
React.PropsWithChildren<
|
|
84
93
|
Omit<PublicOf<FoundationSoundsPanelWC>, 'children' | 'style'> &
|
|
@@ -97,15 +106,6 @@ export declare const FoundationSounds: React.ForwardRefExoticComponent<
|
|
|
97
106
|
>;
|
|
98
107
|
export type FoundationSoundsRef = FoundationSoundsWC;
|
|
99
108
|
|
|
100
|
-
export declare const FoundationNotificationDashboard: React.ForwardRefExoticComponent<
|
|
101
|
-
React.PropsWithChildren<
|
|
102
|
-
Omit<PublicOf<FoundationNotificationDashboardWC>, 'children' | 'style'> &
|
|
103
|
-
HTMLWCProps & {
|
|
104
|
-
}
|
|
105
|
-
> & React.RefAttributes<FoundationNotificationDashboardWC>
|
|
106
|
-
>;
|
|
107
|
-
export type FoundationNotificationDashboardRef = FoundationNotificationDashboardWC;
|
|
108
|
-
|
|
109
109
|
export declare const FoundationInboxCounter: React.ForwardRefExoticComponent<
|
|
110
110
|
React.PropsWithChildren<
|
|
111
111
|
Omit<PublicOf<FoundationInboxCounterWC>, 'children' | 'style'> &
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system.service.d.ts","sourceRoot":"","sources":["../../../src/services/system.service.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,KAAK,GAAG;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CAChC,CAAC;AAEF,MAAM,WAAW,aAAa;IAC5B,YAAY,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAClC,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;CAC/C;
|
|
1
|
+
{"version":3,"file":"system.service.d.ts","sourceRoot":"","sources":["../../../src/services/system.service.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,KAAK,GAAG;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CAChC,CAAC;AAEF,MAAM,WAAW,aAAa;IAC5B,YAAY,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAClC,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;CAC/C;AA6CD,eAAO,MAAM,aAAa,qEAEzB,CAAC"}
|
|
@@ -1,25 +1,6 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
2
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { DI } from '@genesislcap/web-core';
|
|
4
|
-
function schemaDefinitionToField(name, def) {
|
|
5
|
-
var _a, _b;
|
|
6
|
-
const raw = def && typeof def === 'object' ? def : {};
|
|
7
|
-
const oneOf = Array.isArray(raw.oneOf) ? raw.oneOf : [];
|
|
8
|
-
const concrete = (_a = oneOf.find((option) => {
|
|
9
|
-
if (!option || typeof option !== 'object') {
|
|
10
|
-
return false;
|
|
11
|
-
}
|
|
12
|
-
return option.type !== 'null';
|
|
13
|
-
})) !== null && _a !== void 0 ? _a : raw;
|
|
14
|
-
const genesisType = typeof concrete.genesisType === 'string' ? concrete.genesisType : undefined;
|
|
15
|
-
const jsonType = typeof concrete.type === 'string' ? concrete.type : undefined;
|
|
16
|
-
const enumValues = Array.isArray(concrete.enum) ? concrete.enum.map(String) : null;
|
|
17
|
-
return {
|
|
18
|
-
FIELD_NAME: name,
|
|
19
|
-
FIELD_TYPE: ((_b = genesisType !== null && genesisType !== void 0 ? genesisType : jsonType) !== null && _b !== void 0 ? _b : 'STRING').toUpperCase(),
|
|
20
|
-
FIELD_VALUES: enumValues,
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
4
|
class SystemServiceImpl {
|
|
24
5
|
getResources() {
|
|
25
6
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -31,25 +12,34 @@ class SystemServiceImpl {
|
|
|
31
12
|
}
|
|
32
13
|
getFields(resource) {
|
|
33
14
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
var _a
|
|
15
|
+
var _a;
|
|
35
16
|
if (!resource) {
|
|
36
17
|
return [];
|
|
37
18
|
}
|
|
19
|
+
// Callers (RuleDialog/TemplateDialog createRule/editRule → openDialog) await this with no
|
|
20
|
+
// try/catch of their own, so a failed request here (network drop, expired session, or an
|
|
21
|
+
// invalid entity name) would otherwise reject silently and leave the Add/Edit dialog never
|
|
22
|
+
// opening. Degrade to an empty field list instead, so the dialog still opens.
|
|
38
23
|
try {
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
24
|
+
const response = yield this.connect.request('SYSTEM_ENTITY_FIELDS', {
|
|
25
|
+
REQUEST: {
|
|
26
|
+
ENTITY_NAME: resource,
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.REPLY) !== null && _a !== void 0 ? _a : [])
|
|
30
|
+
.sort((a, b) => a.NAME.localeCompare(b.NAME))
|
|
31
|
+
.map((entity) => ({
|
|
32
|
+
FIELD_NAME: entity.NAME,
|
|
33
|
+
FIELD_TYPE: entity.TYPE,
|
|
34
|
+
// Enum fields expose their allowed values (space-separated) so the condition
|
|
35
|
+
// builder can render a multiselect for them.
|
|
36
|
+
FIELD_VALUES: entity.VALUES
|
|
37
|
+
? entity.VALUES.split(' ').filter((v) => v.length)
|
|
38
|
+
: null,
|
|
39
|
+
}));
|
|
51
40
|
}
|
|
52
|
-
catch (
|
|
41
|
+
catch (error) {
|
|
42
|
+
console.error(`Failed to fetch system entity fields for resource ${resource}:`, error);
|
|
53
43
|
return [];
|
|
54
44
|
}
|
|
55
45
|
});
|
package/dist/react.cjs
CHANGED
|
@@ -52,6 +52,11 @@ const FoundationInbox = React.forwardRef(function FoundationInbox(props, ref) {
|
|
|
52
52
|
return React.createElement(customElements.getName(FoundationInboxWC) ?? 'foundation-inbox', { ...rest, ref }, children);
|
|
53
53
|
});
|
|
54
54
|
|
|
55
|
+
const FoundationNotificationDashboard = React.forwardRef(function FoundationNotificationDashboard(props, ref) {
|
|
56
|
+
const { children, ...rest } = props;
|
|
57
|
+
return React.createElement(customElements.getName(FoundationNotificationDashboardWC) ?? 'foundation-notification-dashboard', { ...rest, ref }, children);
|
|
58
|
+
});
|
|
59
|
+
|
|
55
60
|
const FoundationSoundsPanel = React.forwardRef(function FoundationSoundsPanel(props, ref) {
|
|
56
61
|
const { children, ...rest } = props;
|
|
57
62
|
return React.createElement(customElements.getName(FoundationSoundsPanelWC) ?? 'foundation-sounds-panel', { ...rest, ref }, children);
|
|
@@ -62,11 +67,6 @@ const FoundationSounds = React.forwardRef(function FoundationSounds(props, ref)
|
|
|
62
67
|
return React.createElement(customElements.getName(FoundationSoundsWC) ?? 'foundation-sounds', { ...rest, ref }, children);
|
|
63
68
|
});
|
|
64
69
|
|
|
65
|
-
const FoundationNotificationDashboard = React.forwardRef(function FoundationNotificationDashboard(props, ref) {
|
|
66
|
-
const { children, ...rest } = props;
|
|
67
|
-
return React.createElement(customElements.getName(FoundationNotificationDashboardWC) ?? 'foundation-notification-dashboard', { ...rest, ref }, children);
|
|
68
|
-
});
|
|
69
|
-
|
|
70
70
|
const FoundationInboxCounter = React.forwardRef(function FoundationInboxCounter(props, ref) {
|
|
71
71
|
const { children, ...rest } = props;
|
|
72
72
|
return React.createElement(customElements.getName(FoundationInboxCounterWC) ?? 'foundation-inbox-counter', { ...rest, ref }, children);
|
|
@@ -313,9 +313,9 @@ const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(
|
|
|
313
313
|
module.exports = {
|
|
314
314
|
ReconciliationSandbox,
|
|
315
315
|
FoundationInbox,
|
|
316
|
+
FoundationNotificationDashboard,
|
|
316
317
|
FoundationSoundsPanel,
|
|
317
318
|
FoundationSounds,
|
|
318
|
-
FoundationNotificationDashboard,
|
|
319
319
|
FoundationInboxCounter,
|
|
320
320
|
FoundationInboxFlyout,
|
|
321
321
|
InboxSubscription,
|
package/dist/react.mjs
CHANGED
|
@@ -50,6 +50,11 @@ export const FoundationInbox = React.forwardRef(function FoundationInbox(props,
|
|
|
50
50
|
return React.createElement(customElements.getName(FoundationInboxWC) ?? 'foundation-inbox', { ...rest, ref }, children);
|
|
51
51
|
});
|
|
52
52
|
|
|
53
|
+
export const FoundationNotificationDashboard = React.forwardRef(function FoundationNotificationDashboard(props, ref) {
|
|
54
|
+
const { children, ...rest } = props;
|
|
55
|
+
return React.createElement(customElements.getName(FoundationNotificationDashboardWC) ?? 'foundation-notification-dashboard', { ...rest, ref }, children);
|
|
56
|
+
});
|
|
57
|
+
|
|
53
58
|
export const FoundationSoundsPanel = React.forwardRef(function FoundationSoundsPanel(props, ref) {
|
|
54
59
|
const { children, ...rest } = props;
|
|
55
60
|
return React.createElement(customElements.getName(FoundationSoundsPanelWC) ?? 'foundation-sounds-panel', { ...rest, ref }, children);
|
|
@@ -60,11 +65,6 @@ export const FoundationSounds = React.forwardRef(function FoundationSounds(props
|
|
|
60
65
|
return React.createElement(customElements.getName(FoundationSoundsWC) ?? 'foundation-sounds', { ...rest, ref }, children);
|
|
61
66
|
});
|
|
62
67
|
|
|
63
|
-
export const FoundationNotificationDashboard = React.forwardRef(function FoundationNotificationDashboard(props, ref) {
|
|
64
|
-
const { children, ...rest } = props;
|
|
65
|
-
return React.createElement(customElements.getName(FoundationNotificationDashboardWC) ?? 'foundation-notification-dashboard', { ...rest, ref }, children);
|
|
66
|
-
});
|
|
67
|
-
|
|
68
68
|
export const FoundationInboxCounter = React.forwardRef(function FoundationInboxCounter(props, ref) {
|
|
69
69
|
const { children, ...rest } = props;
|
|
70
70
|
return React.createElement(customElements.getName(FoundationInboxCounterWC) ?? 'foundation-inbox-counter', { ...rest, ref }, children);
|
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": "15.24.
|
|
4
|
+
"version": "15.24.2",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"workspaces": [
|
|
7
7
|
"client"
|
|
@@ -81,30 +81,30 @@
|
|
|
81
81
|
"@commitlint/cli": "^19.2.1",
|
|
82
82
|
"@commitlint/config-conventional": "^19.1.0",
|
|
83
83
|
"@commitlint/format": "^19.0.3",
|
|
84
|
-
"@genesislcap/design-system-configurator": "15.24.
|
|
85
|
-
"@genesislcap/eslint-config": "15.24.
|
|
86
|
-
"@genesislcap/eslint-stylelint-builder": "15.24.
|
|
87
|
-
"@genesislcap/foundation-testing": "15.24.
|
|
88
|
-
"@genesislcap/genx": "15.24.
|
|
89
|
-
"@genesislcap/prettier-config": "15.24.
|
|
90
|
-
"@genesislcap/stylelint-config": "15.24.
|
|
91
|
-
"@genesislcap/vite-builder": "15.24.
|
|
92
|
-
"@genesislcap/webpack-builder": "15.24.
|
|
84
|
+
"@genesislcap/design-system-configurator": "15.24.2",
|
|
85
|
+
"@genesislcap/eslint-config": "15.24.2",
|
|
86
|
+
"@genesislcap/eslint-stylelint-builder": "15.24.2",
|
|
87
|
+
"@genesislcap/foundation-testing": "15.24.2",
|
|
88
|
+
"@genesislcap/genx": "15.24.2",
|
|
89
|
+
"@genesislcap/prettier-config": "15.24.2",
|
|
90
|
+
"@genesislcap/stylelint-config": "15.24.2",
|
|
91
|
+
"@genesislcap/vite-builder": "15.24.2",
|
|
92
|
+
"@genesislcap/webpack-builder": "15.24.2",
|
|
93
93
|
"dayjs": "^1.11.7"
|
|
94
94
|
},
|
|
95
95
|
"dependencies": {
|
|
96
|
-
"@genesislcap/foundation-comms": "15.24.
|
|
97
|
-
"@genesislcap/foundation-criteria": "15.24.
|
|
98
|
-
"@genesislcap/foundation-entity-management": "15.24.
|
|
99
|
-
"@genesislcap/foundation-forms": "15.24.
|
|
100
|
-
"@genesislcap/foundation-layout": "15.24.
|
|
101
|
-
"@genesislcap/foundation-logger": "15.24.
|
|
102
|
-
"@genesislcap/foundation-notifications": "15.24.
|
|
103
|
-
"@genesislcap/foundation-ui": "15.24.
|
|
104
|
-
"@genesislcap/foundation-utils": "15.24.
|
|
105
|
-
"@genesislcap/rapid-design-system": "15.24.
|
|
106
|
-
"@genesislcap/rapid-grid-pro": "15.24.
|
|
107
|
-
"@genesislcap/web-core": "15.24.
|
|
96
|
+
"@genesislcap/foundation-comms": "15.24.2",
|
|
97
|
+
"@genesislcap/foundation-criteria": "15.24.2",
|
|
98
|
+
"@genesislcap/foundation-entity-management": "15.24.2",
|
|
99
|
+
"@genesislcap/foundation-forms": "15.24.2",
|
|
100
|
+
"@genesislcap/foundation-layout": "15.24.2",
|
|
101
|
+
"@genesislcap/foundation-logger": "15.24.2",
|
|
102
|
+
"@genesislcap/foundation-notifications": "15.24.2",
|
|
103
|
+
"@genesislcap/foundation-ui": "15.24.2",
|
|
104
|
+
"@genesislcap/foundation-utils": "15.24.2",
|
|
105
|
+
"@genesislcap/rapid-design-system": "15.24.2",
|
|
106
|
+
"@genesislcap/rapid-grid-pro": "15.24.2",
|
|
107
|
+
"@genesislcap/web-core": "15.24.2",
|
|
108
108
|
"lodash.debounce": "^4.0.8",
|
|
109
109
|
"rxjs": "^7.5.4"
|
|
110
110
|
},
|