@genesislcap/blank-app-seed 5.3.2 → 5.4.0-prerelease.10
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/.genx/package.json +1 -1
- package/.genx/templates/angular/component/component.hbs +1 -1
- package/.genx/templates/angular/grid.hbs +2 -1
- package/.genx/templates/csv.hbs +2 -2
- package/.genx/templates/react/component/component.events.config.hbs +2 -1
- package/.genx/templates/react/component/component.hbs +31 -51
- package/.genx/templates/react/entityManager.hbs +3 -0
- package/.genx/templates/react/grid.hbs +2 -1
- package/.genx/templates/web-components/component/component.hbs +8 -25
- package/.genx/templates/web-components/component/component.template.hbs +2 -5
- package/.genx/templates/web-components/entityManager.hbs +11 -20
- package/.genx/templates/web-components/grid.hbs +2 -1
- package/.genx/versions.json +3 -3
- package/.github/workflows/build.yml +3 -0
- package/CHANGELOG.md +49 -0
- package/bdd-tests/build.gradle.kts +51 -0
- package/bdd-tests/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/bdd-tests/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/bdd-tests/gradle.properties +7 -0
- package/bdd-tests/gradlew +252 -0
- package/bdd-tests/gradlew.bat +94 -0
- package/bdd-tests/settings.gradle.kts +31 -0
- package/bdd-tests/src/test/java/support.runner/CucumberRunner.java +8 -0
- package/bdd-tests/src/test/resources/1-payload/Test/P_R_Test.json +0 -0
- package/bdd-tests/src/test/resources/1-payload/global/P_login.json +6 -0
- package/bdd-tests/src/test/resources/1-payload/global/P_logout.json +8 -0
- package/bdd-tests/src/test/resources/3-expected/Test/E_R_Test.json +0 -0
- package/bdd-tests/src/test/resources/4-config/config.properties +24 -0
- package/bdd-tests/src/test/resources/features/Test.feature +0 -0
- package/build.gradle.kts +3 -3
- package/client-tmp/react/package.json +4 -0
- package/client-tmp/react/src/custom-elements.d.ts +1 -0
- package/client-tmp/react/src/share/genesis-components.ts +2 -1
- package/client-tmp/react/src/utils/customEvents.ts +14 -1
- package/client-tmp/web-components/package.json +3 -3
- package/client-tmp/web-components/src/components/components.ts +2 -1
- package/client-tmp/web-components/src/utils/customEvents.ts +0 -2
- package/client-tmp/web-components/test/e2e/flows/001-protected.e2e.ts +1 -1
- package/gradle.properties +1 -1
- package/package.json +1 -1
- package/server/build.gradle.kts +1 -0
- package/server/gradle.properties +1 -1
- package/server/settings.gradle.kts +1 -0
- package/server/{{appName}}-app/build.gradle.kts +1 -1
- package/settings.gradle.kts +3 -0
package/.genx/package.json
CHANGED
|
@@ -53,7 +53,7 @@ export class {{pascalCase tile.componentName}} {
|
|
|
53
53
|
uischema = createFormSchema;{{/if}}{{#if tile.config.updateFormUiSchema}}
|
|
54
54
|
updateFormSchema = updateFormSchema;{{/if}}{{#if tile.config.gridOptions}}
|
|
55
55
|
gridOptions = gridOptions as GridOptionsConfig;{{/if}}{{#if tile.config.reqrep}}
|
|
56
|
-
reqrep = { pollingInterval: 5000 };{{/if}}{{#if tile.config.columns}}
|
|
56
|
+
reqrep = { pollingInterval: 5000, requestAutoSetup: false };{{/if}}{{#if tile.config.columns}}
|
|
57
57
|
columnDefs = [
|
|
58
58
|
...columnDefs,
|
|
59
59
|
{{#if tile.config.customEvents}}
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
isSnapshot="{{config.snapshot}}"
|
|
12
12
|
{{/if}}
|
|
13
13
|
{{#if config.reqrep}}
|
|
14
|
-
|
|
14
|
+
polling-interval="5000"
|
|
15
|
+
request-auto-setup="false"
|
|
15
16
|
{{/if}}
|
|
16
17
|
{{#if config.gridOptions}}
|
|
17
18
|
[deferredGridOptions]="{ onRowClicked: gridOptions.onRowClicked }"
|
package/.genx/templates/csv.hbs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{{#each entity.fields}}{{this.name}}{{#unless this.isLast }},{{/unless}}{{/each}}
|
|
1
|
+
{{#each entity.fields}}{{{this.name}}}{{#unless this.isLast }},{{/unless}}{{/each}}
|
|
2
2
|
{{#if entity.data}}
|
|
3
3
|
{{#each entity.data}}
|
|
4
|
-
{{#each this.rows}}{{this.name}}{{#unless this.isLast }},{{/unless}}{{/each}}
|
|
4
|
+
{{#each this.rows}}{{{this.name}}}{{#unless this.isLast }},{{/unless}}{{/each}}
|
|
5
5
|
{{/each}}
|
|
6
6
|
{{/if}}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { CustomEventHandler } from "../../../utils/customEvents";
|
|
2
|
+
import { UiSchema } from '@genesislcap/foundation-forms';
|
|
2
3
|
|
|
3
4
|
{{#each tile.config.customEvents}}
|
|
4
5
|
{{#if this.hasForm}}
|
|
5
|
-
export const {{camelCase this.name}}FormSchema = {{{this.uischema}}};
|
|
6
|
+
export const {{camelCase this.name}}FormSchema: UiSchema = {{{this.uischema}}};
|
|
6
7
|
{{/if}}
|
|
7
8
|
{{/each}}
|
|
8
9
|
|
|
@@ -19,9 +19,9 @@ import { createPortal } from 'react-dom';
|
|
|
19
19
|
import { getConnect } from '@genesislcap/foundation-comms';
|
|
20
20
|
import type { ActionRendererParams } from '@genesislcap/rapid-grid-pro';
|
|
21
21
|
import { RapidAgActionRenderer } from '@genesislcap/rapid-grid-pro';
|
|
22
|
-
import {
|
|
22
|
+
import { UiSchema } from '@genesislcap/foundation-forms';
|
|
23
23
|
import { customEvents, customEventFormSchemas } from './{{pascalCase tile.title}}EventsConfig';
|
|
24
|
-
import { useCustomEvent, type
|
|
24
|
+
import { useCustomEvent, type CustomEventState } from '../../../utils/customEvents';
|
|
25
25
|
{{/if}}
|
|
26
26
|
{{#if tile.config.createFormUiSchema~}}
|
|
27
27
|
import { createFormSchema as createFormSchemaTile } from './{{pascalCase tile.title}}CreateFormSchema';
|
|
@@ -75,28 +75,33 @@ export const {{pascalCase tile.componentName}}: React.FC = () => {
|
|
|
75
75
|
**/
|
|
76
76
|
{{#each tile.config.customEvents}}
|
|
77
77
|
{
|
|
78
|
-
field: '',
|
|
79
78
|
headerName: '',
|
|
80
79
|
minWidth: 50,
|
|
81
80
|
maxWidth: 50,
|
|
82
81
|
headerTooltip: '{{this.tooltip}}',
|
|
83
82
|
pinned: 'right',
|
|
83
|
+
suppressCellFlash: true,
|
|
84
84
|
cellRenderer: RapidAgActionRenderer,
|
|
85
85
|
cellRendererParams: {
|
|
86
86
|
actionClick: async (rowData) => {
|
|
87
|
+
setIsModalVisible(false);
|
|
88
|
+
|
|
87
89
|
const customEvent = customEvents.find(e => e.name === '{{this.name}}');
|
|
88
90
|
if (customEvent) {
|
|
89
91
|
const handleCustomEvent = useCustomEvent(
|
|
90
92
|
customEvent,
|
|
91
93
|
rowData,
|
|
92
94
|
setCustomEventFormData,
|
|
93
|
-
setActiveCustomEvent
|
|
95
|
+
setActiveCustomEvent,
|
|
96
|
+
setResourceName,
|
|
97
|
+
setUiSchema,
|
|
98
|
+
customEventFormSchemas
|
|
94
99
|
);
|
|
95
100
|
await handleCustomEvent();
|
|
96
101
|
}
|
|
97
102
|
},
|
|
98
103
|
contentTemplate: `
|
|
99
|
-
<rapid-icon name="{{this.icon}}"></rapid-icon>
|
|
104
|
+
<rapid-icon name="{{this.icon}}" title="{{this.name}}"></rapid-icon>
|
|
100
105
|
`,
|
|
101
106
|
} as ActionRendererParams,
|
|
102
107
|
},
|
|
@@ -108,7 +113,7 @@ export const {{pascalCase tile.componentName}}: React.FC = () => {
|
|
|
108
113
|
const deferredGridOptions: { onRowClicked: GridOptionsConfig.onRowClicked } = { onRowClicked: gridOptionsTile?.onRowClicked }
|
|
109
114
|
{{/if}}
|
|
110
115
|
{{#if tile.config.reqrep~}}
|
|
111
|
-
const reqrep: { pollingInterval: number } = { pollingInterval: 5000 };
|
|
116
|
+
const reqrep: { pollingInterval: number } = { pollingInterval: 5000, requestAutoSetup: false };
|
|
112
117
|
{{/if}}
|
|
113
118
|
{{#if tile.config.type~}}
|
|
114
119
|
const chartConfig: {
|
|
@@ -133,63 +138,38 @@ export const {{pascalCase tile.componentName}}: React.FC = () => {
|
|
|
133
138
|
{{/if}}
|
|
134
139
|
|
|
135
140
|
{{#if tile.config.customEvents}}
|
|
136
|
-
const customEventModalRef = useRef<Modal>(null);
|
|
137
141
|
const [activeCustomEvent, setActiveCustomEvent] = useState<CustomEventState | null>(null);
|
|
138
142
|
const [customEventFormData, setCustomEventFormData] = useState<Record<string, any>>({});
|
|
143
|
+
const [resourceName, setResourceName] = useState<string>('');
|
|
144
|
+
const [uiSchema, setUiSchema] = useState<UiSchema | null>(null);
|
|
145
|
+
const [isModalVisible, setIsModalVisible] = useState<boolean>(false);
|
|
146
|
+
|
|
147
|
+
function confirmationMessage() {
|
|
148
|
+
if (!activeCustomEvent) return null;
|
|
149
|
+
const event = customEvents.find(e => e.name === activeCustomEvent.name);
|
|
150
|
+
return event?.confirmSubmit?.state === 'enabled' ? event.confirmSubmit.message : null;
|
|
151
|
+
}
|
|
139
152
|
|
|
140
153
|
useEffect(() => {
|
|
141
154
|
if (activeCustomEvent) {
|
|
142
|
-
|
|
143
|
-
} else {
|
|
144
|
-
customEventModalRef.current?.close();
|
|
155
|
+
setIsModalVisible(true);
|
|
145
156
|
}
|
|
146
157
|
}, [activeCustomEvent]);
|
|
147
158
|
|
|
148
|
-
const handleCustomEventSubmit = () => {
|
|
149
|
-
setActiveCustomEvent(null);
|
|
150
|
-
setCustomEventFormData({});
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
const getActiveCustomEvent = () => {
|
|
154
|
-
if (!activeCustomEvent) return null;
|
|
155
|
-
return customEvents.find(e => e.name === activeCustomEvent.name);
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
const getCustomEventModalTitle = () => {
|
|
159
|
-
const customEvent = getActiveCustomEvent();
|
|
160
|
-
return customEvent?.name || 'Custom Event';
|
|
161
|
-
};
|
|
162
|
-
|
|
163
|
-
const getCustomEventResourceName = () => {
|
|
164
|
-
if (!activeCustomEvent) return '';
|
|
165
|
-
return `EVENT_${activeCustomEvent.event}`;
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
const getCustomEventUiSchema = () => {
|
|
169
|
-
const customEvent = getActiveCustomEvent();
|
|
170
|
-
return customEvent && customEvent.name in customEventFormSchemas
|
|
171
|
-
? customEventFormSchemas[customEvent.name as keyof typeof customEventFormSchemas]
|
|
172
|
-
: null;
|
|
173
|
-
};
|
|
174
|
-
|
|
175
159
|
const renderFormModal = () => {
|
|
176
160
|
if (!activeCustomEvent) return null;
|
|
177
161
|
|
|
178
162
|
return createPortal(
|
|
179
|
-
<
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
onsubmit={submitFailureNotification}
|
|
190
|
-
onsubmit-failure={submitFailureNotification}
|
|
191
|
-
></foundation-form>
|
|
192
|
-
</rapid-modal>,
|
|
163
|
+
<smart-form-modal
|
|
164
|
+
entityLabel="{{ tile.config.entityName }}"
|
|
165
|
+
modal-position="{{ tile.config.modalPosition }}"
|
|
166
|
+
modalFormType={isModalVisible && 'update'}
|
|
167
|
+
editModalVisible={isModalVisible}
|
|
168
|
+
formResourceName={resourceName}
|
|
169
|
+
formUiSchema={uiSchema}
|
|
170
|
+
editedEntity={customEventFormData}
|
|
171
|
+
confirmationMessage={confirmationMessage()}
|
|
172
|
+
></smart-form-modal>,
|
|
193
173
|
document.querySelector('rapid-design-system-provider')!
|
|
194
174
|
);
|
|
195
175
|
};
|
|
@@ -49,6 +49,9 @@ hasUserPermission('{{config.permissions.viewRight}}') ? (
|
|
|
49
49
|
{{#if config.columns~}}
|
|
50
50
|
columns={columnDefs}
|
|
51
51
|
{{/if}}
|
|
52
|
+
{{#if config.entityName}}
|
|
53
|
+
entityLabel="{{ config.entityName }}"
|
|
54
|
+
{{/if}}
|
|
52
55
|
{{#if config.modalPosition~}}
|
|
53
56
|
modal-position="{{ config.modalPosition }}"
|
|
54
57
|
{{/if}}
|
|
@@ -15,7 +15,8 @@ hasUserPermission('{{config.permissions.viewRight}}') ? (
|
|
|
15
15
|
isSnapshot="{{config.snapshot}}"
|
|
16
16
|
{{/if}}
|
|
17
17
|
{{#if config.reqrep~}}
|
|
18
|
-
|
|
18
|
+
polling-interval="5000"
|
|
19
|
+
request-auto-setup="false"
|
|
19
20
|
{{/if}}
|
|
20
21
|
{{#if config.gridOptions~}}
|
|
21
22
|
deferredGridOptions={deferredGridOptions}
|
|
@@ -10,7 +10,6 @@ import { ColDef } from '@ag-grid-community/core';
|
|
|
10
10
|
{{#if tile.config.customEvents}}
|
|
11
11
|
import type { ActionRendererParams } from '@genesislcap/rapid-grid-pro';
|
|
12
12
|
import { RapidAgActionRenderer } from '@genesislcap/rapid-grid-pro';
|
|
13
|
-
import { Modal } from '@genesislcap/rapid-design-system';
|
|
14
13
|
import { customEvents, customEventFormSchemas } from './{{kebabCase tile.title}}.events.config';
|
|
15
14
|
import { handleFormCustomEvent, handleNonFormCustomEvent, showCustomEventConfirmation, type CustomEventHandler, type CustomEventState } from '../../../utils/customEvents';
|
|
16
15
|
{{/if}}
|
|
@@ -34,35 +33,24 @@ export class {{pascalCase tile.componentName}} extends GenesisElement {
|
|
|
34
33
|
@Connect connect!: Connect;
|
|
35
34
|
|
|
36
35
|
{{#if tile.config.customEvents}}
|
|
37
|
-
customEventModal: Modal;
|
|
38
36
|
@observable customEvents: CustomEventHandler[] = customEvents;
|
|
39
37
|
@observable activeCustomEvent: CustomEventState | null = null;
|
|
40
38
|
@observable customEventFormData: Record<string, any> = {};
|
|
41
39
|
|
|
42
|
-
async handleCustomEventSubmit() {
|
|
43
|
-
this.activeCustomEvent = null;
|
|
44
|
-
this.customEventFormData = {};
|
|
45
|
-
this.customEventModal.close();
|
|
46
|
-
}
|
|
47
|
-
|
|
48
40
|
async handleCustomEventClick(eventName: string, rowData: any) {
|
|
49
|
-
const customEvent = this.customEvents.find(e => e.name === eventName);
|
|
41
|
+
const customEvent = this.customEvents.find((e) => e.name === eventName);
|
|
50
42
|
if (!customEvent) return;
|
|
51
43
|
|
|
52
44
|
if (customEvent.hasForm) {
|
|
53
45
|
handleFormCustomEvent(
|
|
54
46
|
customEvent,
|
|
55
47
|
rowData,
|
|
56
|
-
(data) => this.customEventFormData = data,
|
|
57
|
-
(event) => this.activeCustomEvent = event,
|
|
58
|
-
() => this.customEventModal.show()
|
|
48
|
+
(data) => (this.customEventFormData = data),
|
|
49
|
+
(event) => (this.activeCustomEvent = event),
|
|
59
50
|
);
|
|
60
51
|
} else {
|
|
61
|
-
await handleNonFormCustomEvent(
|
|
62
|
-
|
|
63
|
-
customEvent,
|
|
64
|
-
rowData,
|
|
65
|
-
(onConfirm) => showCustomEventConfirmation(customEvent, onConfirm)
|
|
52
|
+
await handleNonFormCustomEvent(this.connect, customEvent, rowData, (onConfirm) =>
|
|
53
|
+
showCustomEventConfirmation(customEvent, onConfirm),
|
|
66
54
|
);
|
|
67
55
|
}
|
|
68
56
|
}
|
|
@@ -72,11 +60,6 @@ export class {{pascalCase tile.componentName}} extends GenesisElement {
|
|
|
72
60
|
return this.customEvents.find(e => e.name === this.activeCustomEvent.name);
|
|
73
61
|
}
|
|
74
62
|
|
|
75
|
-
getCustomEventModalTitle() {
|
|
76
|
-
const customEvent = this.getActiveCustomEvent();
|
|
77
|
-
return customEvent?.name || 'Custom Event';
|
|
78
|
-
}
|
|
79
|
-
|
|
80
63
|
getCustomEventResourceName() {
|
|
81
64
|
if (!this.activeCustomEvent) return '';
|
|
82
65
|
return `EVENT_${this.activeCustomEvent.event}`;
|
|
@@ -95,19 +78,19 @@ export class {{pascalCase tile.componentName}} extends GenesisElement {
|
|
|
95
78
|
{{#if tile.config.customEvents}}
|
|
96
79
|
{{#each tile.config.customEvents}}
|
|
97
80
|
{
|
|
98
|
-
field: '',
|
|
99
81
|
headerName: '',
|
|
100
82
|
minWidth: 50,
|
|
101
83
|
maxWidth: 50,
|
|
102
84
|
headerTooltip: '{{this.tooltip}}',
|
|
103
85
|
pinned: 'right',
|
|
86
|
+
suppressCellFlash: true,
|
|
104
87
|
cellRenderer: RapidAgActionRenderer,
|
|
105
88
|
cellRendererParams: <ActionRendererParams>{
|
|
106
89
|
actionClick: async (rowData) => {
|
|
107
90
|
await this.handleCustomEventClick('{{this.name}}', rowData);
|
|
108
91
|
},
|
|
109
92
|
contentTemplate: `
|
|
110
|
-
<rapid-icon name="{{this.icon}}"></rapid-icon>
|
|
93
|
+
<rapid-icon name="{{this.icon}}" title="{{this.name}}"></rapid-icon>
|
|
111
94
|
`,
|
|
112
95
|
},
|
|
113
96
|
},
|
|
@@ -115,4 +98,4 @@ export class {{pascalCase tile.componentName}} extends GenesisElement {
|
|
|
115
98
|
{{/if}}
|
|
116
99
|
];
|
|
117
100
|
{{/if}}
|
|
118
|
-
}
|
|
101
|
+
}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { html,
|
|
2
|
-
{
|
|
3
|
-
import { customEvent } from '@genesislcap/foundation-events';
|
|
4
|
-
{{/if}}
|
|
5
|
-
import { getViewUpdateRightComponent{{#if tile.config.customEvents}}, submitFailureNotification{{/if}} } from '../../../utils';
|
|
1
|
+
import { html, whenElse, repeat } from '@genesislcap/web-core';
|
|
2
|
+
import { getViewUpdateRightComponent } from '../../../utils';
|
|
6
3
|
import type { {{pascalCase tile.componentName}} } from './{{kebabCase tile.title}}';
|
|
7
4
|
{{#if tile.config.createFormUiSchema}}
|
|
8
5
|
import { createFormSchema } from './{{kebabCase tile.title}}.create.form.schema';
|
|
@@ -32,7 +32,7 @@ ${whenElse(
|
|
|
32
32
|
:datasourceConfig=${() => ({isSnapshot: {{ config.snapshot }} })}
|
|
33
33
|
{{/if}}
|
|
34
34
|
{{#if config.reqrep}}
|
|
35
|
-
:datasourceConfig=${() => ({pollingInterval: 5000 })}
|
|
35
|
+
:datasourceConfig=${() => ({pollingInterval: 5000, requestAutoSetup: false})}
|
|
36
36
|
{{/if}}
|
|
37
37
|
{{#if config.entityName}}
|
|
38
38
|
entityLabel="{{ config.entityName }}"
|
|
@@ -51,25 +51,16 @@ ${whenElse(
|
|
|
51
51
|
{{/if}}
|
|
52
52
|
></entity-management>
|
|
53
53
|
{{#if config.customEvents}}
|
|
54
|
-
<
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
(x) => x.
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
:uischema=${(x) => x.getCustomEventUiSchema()}
|
|
65
|
-
:data=${(x) => x.customEventFormData}
|
|
66
|
-
@submit-success=${(x) => x.handleCustomEventSubmit()}
|
|
67
|
-
@submit=${(_, c) => submitFailureNotification(customEvent(c))}
|
|
68
|
-
@submit-failure=${(_, c) => submitFailureNotification(customEvent(c))}
|
|
69
|
-
></foundation-form>
|
|
70
|
-
`,
|
|
71
|
-
)}
|
|
72
|
-
</rapid-modal>
|
|
54
|
+
<smart-form-modal
|
|
55
|
+
entityLabel="{{ config.entityName }}"
|
|
56
|
+
modal-position="{{ config.modalPosition }}"
|
|
57
|
+
:modalFormType=${(x) => !!x.activeCustomEvent && 'update'}
|
|
58
|
+
:editModalVisible=${(x) => !!x.activeCustomEvent}
|
|
59
|
+
:formResourceName=${(x) => x.getCustomEventResourceName()}
|
|
60
|
+
:formUiSchema=${(x) => x.getCustomEventUiSchema()}
|
|
61
|
+
:editedEntity=${(x) => x.customEventFormData}
|
|
62
|
+
confirmation-message="${(x) => x.getActiveCustomEvent()?.confirmSubmit?.state === 'enabled' ? x.getActiveCustomEvent().confirmSubmit.message : null}"
|
|
63
|
+
></smart-form-modal>
|
|
73
64
|
{{/if}}
|
|
74
65
|
`,
|
|
75
66
|
html`
|
|
@@ -13,7 +13,8 @@ ${whenElse(
|
|
|
13
13
|
isSnapshot="{{config.snapshot}}"
|
|
14
14
|
{{/if}}
|
|
15
15
|
{{#if config.reqrep}}
|
|
16
|
-
|
|
16
|
+
request-auto-setup="false"
|
|
17
|
+
polling-interval="5000"
|
|
17
18
|
{{/if}}
|
|
18
19
|
{{#if config.gridOptions}}
|
|
19
20
|
:deferredGridOptions=${() => ({ onRowClicked: gridOptions?.onRowClicked })}
|
package/.genx/versions.json
CHANGED
|
@@ -53,6 +53,9 @@ jobs:
|
|
|
53
53
|
working-directory: /tmp/testapp/client
|
|
54
54
|
run: npm run lint
|
|
55
55
|
|
|
56
|
+
- name: Install Chromium
|
|
57
|
+
run: npx playwright install chromium --with-deps
|
|
58
|
+
|
|
56
59
|
- name: Test (unit & integration UI)
|
|
57
60
|
working-directory: /tmp/testapp/client
|
|
58
61
|
run: npm run test && npm run test:e2e
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,54 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [5.4.0-prerelease.10](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v5.4.0-prerelease.9...v5.4.0-prerelease.10) (2025-08-20)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* bump fui version with stacking notification fix PA-1745 ce6ad4d
|
|
9
|
+
* bump fui version with stacking notification fix PA-1745 (#505) 0002d5d
|
|
10
|
+
|
|
11
|
+
## [5.4.0-prerelease.9](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v5.4.0-prerelease.8...v5.4.0-prerelease.9) (2025-08-19)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* support confirmation message for event on entity manager GENC-1185 ea27d49
|
|
17
|
+
* support confirmation message for event on entity manager GENC-1185 (#503) d2b4448
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* e2e test for wc GENC-1185 9b4dc53
|
|
23
|
+
* react event setup GENC-1185 80e20fd
|
|
24
|
+
* syntax error setting confirmation message GENC-1185 10b2835
|
|
25
|
+
* tweak react syntax GENC-1185 07cf6dd
|
|
26
|
+
* use smart-form-modal for message display GENC-1185 22f7968
|
|
27
|
+
|
|
28
|
+
## [5.4.0-prerelease.8](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v5.4.0-prerelease.7...v5.4.0-prerelease.8) (2025-08-13)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
|
|
33
|
+
* added logout endpoint in confog.properties GENC-0 (#502) aa02828
|
|
34
|
+
|
|
35
|
+
## [5.4.0-prerelease.7](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v5.4.0-prerelease.6...v5.4.0-prerelease.7) (2025-08-12)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Bug Fixes
|
|
39
|
+
|
|
40
|
+
* escape commas in CSV files GENC-1188 c25aab1
|
|
41
|
+
* escape commas in CSV files GENC-1188 (#501) 7c32c98
|
|
42
|
+
|
|
43
|
+
## [5.4.0-prerelease.6](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v5.4.0-prerelease.5...v5.4.0-prerelease.6) (2025-08-11)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Bug Fixes
|
|
47
|
+
|
|
48
|
+
* Add foundation-auth:defined selector for Chrome 139 compatibility ed79e1f
|
|
49
|
+
* Add foundation-auth:defined selector for Chrome 139 compatibility (#499) 9260d22
|
|
50
|
+
* backport main to prerelease [FUI-0](https://github.com/genesiscommunitysuccess/blank-app-seed/issues/0) (#500) 4b8dd8d
|
|
51
|
+
|
|
3
52
|
## [5.3.2](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v5.3.1...v5.3.2) (2025-08-11)
|
|
4
53
|
|
|
5
54
|
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
plugins {
|
|
2
|
+
kotlin("jvm") version "2.1.21"
|
|
3
|
+
java
|
|
4
|
+
id("global.genesis.bdd_automation")
|
|
5
|
+
}
|
|
6
|
+
description = "{{appName}} BDD Testing Framework"
|
|
7
|
+
|
|
8
|
+
repositories {
|
|
9
|
+
mavenCentral()
|
|
10
|
+
maven {
|
|
11
|
+
val repoUrl = if (properties["useDevRepo"] == "true") {
|
|
12
|
+
"https://genesisglobal.jfrog.io/genesisglobal/dev-repo"
|
|
13
|
+
} else {
|
|
14
|
+
"https://genesisglobal.jfrog.io/genesisglobal/libs-release-client"
|
|
15
|
+
}
|
|
16
|
+
url = uri(repoUrl)
|
|
17
|
+
credentials {
|
|
18
|
+
username = properties["genesisArtifactoryUser"].toString()
|
|
19
|
+
password = properties["genesisArtifactoryPassword"].toString()
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
mavenLocal {
|
|
23
|
+
// VERY IMPORTANT!!! EXCLUDE AGRONA AS IT IS A POM DEPENDENCY AND DOES NOT PLAY NICELY WITH MAVEN LOCAL!
|
|
24
|
+
content {
|
|
25
|
+
excludeGroup("org.agrona")
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
kotlin {
|
|
30
|
+
jvmToolchain {
|
|
31
|
+
(this as JavaToolchainSpec).languageVersion.set(JavaLanguageVersion.of(17))
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
java {
|
|
36
|
+
toolchain {
|
|
37
|
+
languageVersion.set(JavaLanguageVersion.of(17))
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
tasks {
|
|
41
|
+
test {
|
|
42
|
+
useJUnitPlatform()
|
|
43
|
+
notCompatibleWithConfigurationCache("Allure test plugin does not support Configuration Cache.")
|
|
44
|
+
}
|
|
45
|
+
named("allureReport") {
|
|
46
|
+
notCompatibleWithConfigurationCache("Allure test plugin does not support Configuration Cache.")
|
|
47
|
+
}
|
|
48
|
+
named("allureGenesisReport") {
|
|
49
|
+
notCompatibleWithConfigurationCache("Allure test plugin does not support Configuration Cache.")
|
|
50
|
+
}
|
|
51
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# This file was generated by the Gradle 'init' task.
|
|
2
|
+
# https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties
|
|
3
|
+
org.gradle.configuration-cache=false
|
|
4
|
+
org.gradle.parallel=true
|
|
5
|
+
org.gradle.caching=true
|
|
6
|
+
bddVersion=3.5.18
|
|
7
|
+
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
|
|
3
|
+
#
|
|
4
|
+
# Copyright © 2015-2021 the original authors.
|
|
5
|
+
#
|
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
# you may not use this file except in compliance with the License.
|
|
8
|
+
# You may obtain a copy of the License at
|
|
9
|
+
#
|
|
10
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
#
|
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
# See the License for the specific language governing permissions and
|
|
16
|
+
# limitations under the License.
|
|
17
|
+
#
|
|
18
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
19
|
+
#
|
|
20
|
+
|
|
21
|
+
##############################################################################
|
|
22
|
+
#
|
|
23
|
+
# Gradle start up script for POSIX generated by Gradle.
|
|
24
|
+
#
|
|
25
|
+
# Important for running:
|
|
26
|
+
#
|
|
27
|
+
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
|
|
28
|
+
# noncompliant, but you have some other compliant shell such as ksh or
|
|
29
|
+
# bash, then to run this script, type that shell name before the whole
|
|
30
|
+
# command line, like:
|
|
31
|
+
#
|
|
32
|
+
# ksh Gradle
|
|
33
|
+
#
|
|
34
|
+
# Busybox and similar reduced shells will NOT work, because this script
|
|
35
|
+
# requires all of these POSIX shell features:
|
|
36
|
+
# * functions;
|
|
37
|
+
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
|
|
38
|
+
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
|
|
39
|
+
# * compound commands having a testable exit status, especially «case»;
|
|
40
|
+
# * various built-in commands including «command», «set», and «ulimit».
|
|
41
|
+
#
|
|
42
|
+
# Important for patching:
|
|
43
|
+
#
|
|
44
|
+
# (2) This script targets any POSIX shell, so it avoids extensions provided
|
|
45
|
+
# by Bash, Ksh, etc; in particular arrays are avoided.
|
|
46
|
+
#
|
|
47
|
+
# The "traditional" practice of packing multiple parameters into a
|
|
48
|
+
# space-separated string is a well documented source of bugs and security
|
|
49
|
+
# problems, so this is (mostly) avoided, by progressively accumulating
|
|
50
|
+
# options in "$@", and eventually passing that to Java.
|
|
51
|
+
#
|
|
52
|
+
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
|
|
53
|
+
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
|
|
54
|
+
# see the in-line comments for details.
|
|
55
|
+
#
|
|
56
|
+
# There are tweaks for specific operating systems such as AIX, CygWin,
|
|
57
|
+
# Darwin, MinGW, and NonStop.
|
|
58
|
+
#
|
|
59
|
+
# (3) This script is generated from the Groovy template
|
|
60
|
+
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
|
61
|
+
# within the Gradle project.
|
|
62
|
+
#
|
|
63
|
+
# You can find Gradle at https://github.com/gradle/gradle/.
|
|
64
|
+
#
|
|
65
|
+
##############################################################################
|
|
66
|
+
|
|
67
|
+
# Attempt to set APP_HOME
|
|
68
|
+
|
|
69
|
+
# Resolve links: $0 may be a link
|
|
70
|
+
app_path=$0
|
|
71
|
+
|
|
72
|
+
# Need this for daisy-chained symlinks.
|
|
73
|
+
while
|
|
74
|
+
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
|
|
75
|
+
[ -h "$app_path" ]
|
|
76
|
+
do
|
|
77
|
+
ls=$( ls -ld "$app_path" )
|
|
78
|
+
link=${ls#*' -> '}
|
|
79
|
+
case $link in #(
|
|
80
|
+
/*) app_path=$link ;; #(
|
|
81
|
+
*) app_path=$APP_HOME$link ;;
|
|
82
|
+
esac
|
|
83
|
+
done
|
|
84
|
+
|
|
85
|
+
# This is normally unused
|
|
86
|
+
# shellcheck disable=SC2034
|
|
87
|
+
APP_BASE_NAME=${0##*/}
|
|
88
|
+
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
|
89
|
+
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
|
|
90
|
+
' "$PWD" ) || exit
|
|
91
|
+
|
|
92
|
+
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
|
93
|
+
MAX_FD=maximum
|
|
94
|
+
|
|
95
|
+
warn () {
|
|
96
|
+
echo "$*"
|
|
97
|
+
} >&2
|
|
98
|
+
|
|
99
|
+
die () {
|
|
100
|
+
echo
|
|
101
|
+
echo "$*"
|
|
102
|
+
echo
|
|
103
|
+
exit 1
|
|
104
|
+
} >&2
|
|
105
|
+
|
|
106
|
+
# OS specific support (must be 'true' or 'false').
|
|
107
|
+
cygwin=false
|
|
108
|
+
msys=false
|
|
109
|
+
darwin=false
|
|
110
|
+
nonstop=false
|
|
111
|
+
case "$( uname )" in #(
|
|
112
|
+
CYGWIN* ) cygwin=true ;; #(
|
|
113
|
+
Darwin* ) darwin=true ;; #(
|
|
114
|
+
MSYS* | MINGW* ) msys=true ;; #(
|
|
115
|
+
NONSTOP* ) nonstop=true ;;
|
|
116
|
+
esac
|
|
117
|
+
|
|
118
|
+
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
# Determine the Java command to use to start the JVM.
|
|
122
|
+
if [ -n "$JAVA_HOME" ] ; then
|
|
123
|
+
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
|
124
|
+
# IBM's JDK on AIX uses strange locations for the executables
|
|
125
|
+
JAVACMD=$JAVA_HOME/jre/sh/java
|
|
126
|
+
else
|
|
127
|
+
JAVACMD=$JAVA_HOME/bin/java
|
|
128
|
+
fi
|
|
129
|
+
if [ ! -x "$JAVACMD" ] ; then
|
|
130
|
+
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
|
131
|
+
|
|
132
|
+
Please set the JAVA_HOME variable in your environment to match the
|
|
133
|
+
location of your Java installation."
|
|
134
|
+
fi
|
|
135
|
+
else
|
|
136
|
+
JAVACMD=java
|
|
137
|
+
if ! command -v java >/dev/null 2>&1
|
|
138
|
+
then
|
|
139
|
+
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
|
140
|
+
|
|
141
|
+
Please set the JAVA_HOME variable in your environment to match the
|
|
142
|
+
location of your Java installation."
|
|
143
|
+
fi
|
|
144
|
+
fi
|
|
145
|
+
|
|
146
|
+
# Increase the maximum file descriptors if we can.
|
|
147
|
+
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
|
148
|
+
case $MAX_FD in #(
|
|
149
|
+
max*)
|
|
150
|
+
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
|
|
151
|
+
# shellcheck disable=SC2039,SC3045
|
|
152
|
+
MAX_FD=$( ulimit -H -n ) ||
|
|
153
|
+
warn "Could not query maximum file descriptor limit"
|
|
154
|
+
esac
|
|
155
|
+
case $MAX_FD in #(
|
|
156
|
+
'' | soft) :;; #(
|
|
157
|
+
*)
|
|
158
|
+
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
|
|
159
|
+
# shellcheck disable=SC2039,SC3045
|
|
160
|
+
ulimit -n "$MAX_FD" ||
|
|
161
|
+
warn "Could not set maximum file descriptor limit to $MAX_FD"
|
|
162
|
+
esac
|
|
163
|
+
fi
|
|
164
|
+
|
|
165
|
+
# Collect all arguments for the java command, stacking in reverse order:
|
|
166
|
+
# * args from the command line
|
|
167
|
+
# * the main class name
|
|
168
|
+
# * -classpath
|
|
169
|
+
# * -D...appname settings
|
|
170
|
+
# * --module-path (only if needed)
|
|
171
|
+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
|
|
172
|
+
|
|
173
|
+
# For Cygwin or MSYS, switch paths to Windows format before running java
|
|
174
|
+
if "$cygwin" || "$msys" ; then
|
|
175
|
+
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
|
|
176
|
+
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
|
|
177
|
+
|
|
178
|
+
JAVACMD=$( cygpath --unix "$JAVACMD" )
|
|
179
|
+
|
|
180
|
+
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
|
181
|
+
for arg do
|
|
182
|
+
if
|
|
183
|
+
case $arg in #(
|
|
184
|
+
-*) false ;; # don't mess with options #(
|
|
185
|
+
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
|
|
186
|
+
[ -e "$t" ] ;; #(
|
|
187
|
+
*) false ;;
|
|
188
|
+
esac
|
|
189
|
+
then
|
|
190
|
+
arg=$( cygpath --path --ignore --mixed "$arg" )
|
|
191
|
+
fi
|
|
192
|
+
# Roll the args list around exactly as many times as the number of
|
|
193
|
+
# args, so each arg winds up back in the position where it started, but
|
|
194
|
+
# possibly modified.
|
|
195
|
+
#
|
|
196
|
+
# NB: a `for` loop captures its iteration list before it begins, so
|
|
197
|
+
# changing the positional parameters here affects neither the number of
|
|
198
|
+
# iterations, nor the values presented in `arg`.
|
|
199
|
+
shift # remove old arg
|
|
200
|
+
set -- "$@" "$arg" # push replacement arg
|
|
201
|
+
done
|
|
202
|
+
fi
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
|
206
|
+
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
|
207
|
+
|
|
208
|
+
# Collect all arguments for the java command:
|
|
209
|
+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
|
|
210
|
+
# and any embedded shellness will be escaped.
|
|
211
|
+
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
|
|
212
|
+
# treated as '${Hostname}' itself on the command line.
|
|
213
|
+
|
|
214
|
+
set -- \
|
|
215
|
+
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
|
216
|
+
-classpath "$CLASSPATH" \
|
|
217
|
+
org.gradle.wrapper.GradleWrapperMain \
|
|
218
|
+
"$@"
|
|
219
|
+
|
|
220
|
+
# Stop when "xargs" is not available.
|
|
221
|
+
if ! command -v xargs >/dev/null 2>&1
|
|
222
|
+
then
|
|
223
|
+
die "xargs is not available"
|
|
224
|
+
fi
|
|
225
|
+
|
|
226
|
+
# Use "xargs" to parse quoted args.
|
|
227
|
+
#
|
|
228
|
+
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
|
|
229
|
+
#
|
|
230
|
+
# In Bash we could simply go:
|
|
231
|
+
#
|
|
232
|
+
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
|
|
233
|
+
# set -- "${ARGS[@]}" "$@"
|
|
234
|
+
#
|
|
235
|
+
# but POSIX shell has neither arrays nor command substitution, so instead we
|
|
236
|
+
# post-process each arg (as a line of input to sed) to backslash-escape any
|
|
237
|
+
# character that might be a shell metacharacter, then use eval to reverse
|
|
238
|
+
# that process (while maintaining the separation between arguments), and wrap
|
|
239
|
+
# the whole thing up as a single "set" statement.
|
|
240
|
+
#
|
|
241
|
+
# This will of course break if any of these variables contains a newline or
|
|
242
|
+
# an unmatched quote.
|
|
243
|
+
#
|
|
244
|
+
|
|
245
|
+
eval "set -- $(
|
|
246
|
+
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
|
|
247
|
+
xargs -n1 |
|
|
248
|
+
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
|
|
249
|
+
tr '\n' ' '
|
|
250
|
+
)" '"$@"'
|
|
251
|
+
|
|
252
|
+
exec "$JAVACMD" "$@"
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
@rem
|
|
2
|
+
@rem Copyright 2015 the original author or authors.
|
|
3
|
+
@rem
|
|
4
|
+
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
@rem you may not use this file except in compliance with the License.
|
|
6
|
+
@rem You may obtain a copy of the License at
|
|
7
|
+
@rem
|
|
8
|
+
@rem https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
@rem
|
|
10
|
+
@rem Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
@rem See the License for the specific language governing permissions and
|
|
14
|
+
@rem limitations under the License.
|
|
15
|
+
@rem
|
|
16
|
+
@rem SPDX-License-Identifier: Apache-2.0
|
|
17
|
+
@rem
|
|
18
|
+
|
|
19
|
+
@if "%DEBUG%"=="" @echo off
|
|
20
|
+
@rem ##########################################################################
|
|
21
|
+
@rem
|
|
22
|
+
@rem Gradle startup script for Windows
|
|
23
|
+
@rem
|
|
24
|
+
@rem ##########################################################################
|
|
25
|
+
|
|
26
|
+
@rem Set local scope for the variables with windows NT shell
|
|
27
|
+
if "%OS%"=="Windows_NT" setlocal
|
|
28
|
+
|
|
29
|
+
set DIRNAME=%~dp0
|
|
30
|
+
if "%DIRNAME%"=="" set DIRNAME=.
|
|
31
|
+
@rem This is normally unused
|
|
32
|
+
set APP_BASE_NAME=%~n0
|
|
33
|
+
set APP_HOME=%DIRNAME%
|
|
34
|
+
|
|
35
|
+
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
|
36
|
+
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
|
37
|
+
|
|
38
|
+
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
|
39
|
+
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
|
40
|
+
|
|
41
|
+
@rem Find java.exe
|
|
42
|
+
if defined JAVA_HOME goto findJavaFromJavaHome
|
|
43
|
+
|
|
44
|
+
set JAVA_EXE=java.exe
|
|
45
|
+
%JAVA_EXE% -version >NUL 2>&1
|
|
46
|
+
if %ERRORLEVEL% equ 0 goto execute
|
|
47
|
+
|
|
48
|
+
echo. 1>&2
|
|
49
|
+
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
|
|
50
|
+
echo. 1>&2
|
|
51
|
+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
|
52
|
+
echo location of your Java installation. 1>&2
|
|
53
|
+
|
|
54
|
+
goto fail
|
|
55
|
+
|
|
56
|
+
:findJavaFromJavaHome
|
|
57
|
+
set JAVA_HOME=%JAVA_HOME:"=%
|
|
58
|
+
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
|
59
|
+
|
|
60
|
+
if exist "%JAVA_EXE%" goto execute
|
|
61
|
+
|
|
62
|
+
echo. 1>&2
|
|
63
|
+
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
|
|
64
|
+
echo. 1>&2
|
|
65
|
+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
|
66
|
+
echo location of your Java installation. 1>&2
|
|
67
|
+
|
|
68
|
+
goto fail
|
|
69
|
+
|
|
70
|
+
:execute
|
|
71
|
+
@rem Setup the command line
|
|
72
|
+
|
|
73
|
+
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
@rem Execute Gradle
|
|
77
|
+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
|
78
|
+
|
|
79
|
+
:end
|
|
80
|
+
@rem End local scope for the variables with windows NT shell
|
|
81
|
+
if %ERRORLEVEL% equ 0 goto mainEnd
|
|
82
|
+
|
|
83
|
+
:fail
|
|
84
|
+
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
|
85
|
+
rem the _cmd.exe /c_ return code!
|
|
86
|
+
set EXIT_CODE=%ERRORLEVEL%
|
|
87
|
+
if %EXIT_CODE% equ 0 set EXIT_CODE=1
|
|
88
|
+
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
|
|
89
|
+
exit /b %EXIT_CODE%
|
|
90
|
+
|
|
91
|
+
:mainEnd
|
|
92
|
+
if "%OS%"=="Windows_NT" endlocal
|
|
93
|
+
|
|
94
|
+
:omega
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
pluginManagement {
|
|
2
|
+
val bddVersion: String by settings
|
|
3
|
+
|
|
4
|
+
plugins {
|
|
5
|
+
id("global.genesis.bdd_automation") version bddVersion
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
repositories {
|
|
9
|
+
gradlePluginPortal()
|
|
10
|
+
mavenCentral()
|
|
11
|
+
maven {
|
|
12
|
+
val repoUrl = if(extra.properties["useDevRepo"] == "true") {
|
|
13
|
+
"https://genesisglobal.jfrog.io/genesisglobal/dev-repo"
|
|
14
|
+
} else {
|
|
15
|
+
"https://genesisglobal.jfrog.io/genesisglobal/libs-release-client"
|
|
16
|
+
}
|
|
17
|
+
url = uri(repoUrl)
|
|
18
|
+
credentials {
|
|
19
|
+
username = extra.properties["genesisArtifactoryUser"].toString()
|
|
20
|
+
password = extra.properties["genesisArtifactoryPassword"].toString()
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
mavenLocal {
|
|
24
|
+
content {
|
|
25
|
+
excludeGroup("org.agrona")
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
rootProject.name = "{{appName}}-bdd-tests"
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#BROWSER
|
|
2
|
+
browser=chrome
|
|
3
|
+
#ENVIRONMENT
|
|
4
|
+
defaultHost=http://localhost:6060/
|
|
5
|
+
baseURI=sm
|
|
6
|
+
getEventAfterLogout=REQ_USER_DETAILS
|
|
7
|
+
#PATH FOR RESOURCES
|
|
8
|
+
resourcesPath=src/test/resources
|
|
9
|
+
#PATH FOR PAYLOADS
|
|
10
|
+
payloadPath=src/test/resources/1-payload
|
|
11
|
+
#PATH FOR ACTUAL FILES
|
|
12
|
+
actualPath=src/test/resources/2-actual
|
|
13
|
+
#PATH FOR EXPECTED FILES
|
|
14
|
+
expectedPath=src/test/resources/3-expected
|
|
15
|
+
#PATH FOR FEATURES
|
|
16
|
+
featurePath=src/test/resources/features
|
|
17
|
+
#PATH FOR .PROPERTIES FILES
|
|
18
|
+
configPath=src/test/resources/4-config
|
|
19
|
+
#PATH FOR TEST DATA FILES
|
|
20
|
+
inputPath=src/test/resources/5-input
|
|
21
|
+
#API MAXIMUM RESPONSE TIME
|
|
22
|
+
apiMaxResponseTime=7000
|
|
23
|
+
#HEALTH CHECK TASK MAXIMUM TIME TO EXECUTE
|
|
24
|
+
healthCheckMaxWait=10
|
|
File without changes
|
package/build.gradle.kts
CHANGED
|
@@ -5,10 +5,10 @@ plugins {
|
|
|
5
5
|
|
|
6
6
|
tasks {
|
|
7
7
|
val tasks = listOf("clean", "assemble", "check", "build")
|
|
8
|
-
for(taskName in tasks){
|
|
9
|
-
named(taskName){
|
|
8
|
+
for (taskName in tasks) {
|
|
9
|
+
named(taskName) {
|
|
10
10
|
gradle.includedBuilds.forEach {
|
|
11
|
-
dependsOn(it.task(":$taskName"))
|
|
11
|
+
if (!it.name.endsWith("bdd-tests")) dependsOn(it.task(":$taskName"))
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -44,12 +44,16 @@
|
|
|
44
44
|
{{#if FDC3.includeDependencies}}
|
|
45
45
|
"@genesislcap/foundation-fdc3": "{{versions.UI}}",
|
|
46
46
|
{{/if}}
|
|
47
|
+
"@genesislcap/foundation-events": "{{versions.UI}}",
|
|
48
|
+
"@genesislcap/foundation-forms": "{{versions.UI}}",
|
|
47
49
|
"@genesislcap/foundation-header": "{{versions.UI}}",
|
|
48
50
|
"@genesislcap/foundation-layout": "{{versions.UI}}",
|
|
49
51
|
"@genesislcap/foundation-logger": "{{versions.UI}}",
|
|
50
52
|
"@genesislcap/foundation-login": "{{versions.UI}}",
|
|
53
|
+
"@genesislcap/foundation-notifications": "{{versions.UI}}",
|
|
51
54
|
"@genesislcap/foundation-shell": "{{versions.UI}}",
|
|
52
55
|
"@genesislcap/foundation-ui": "{{versions.UI}}",
|
|
56
|
+
"@genesislcap/foundation-user": "{{versions.UI}}",
|
|
53
57
|
"@genesislcap/foundation-utils": "{{versions.UI}}",
|
|
54
58
|
"@genesislcap/foundation-zero-grid-tabulator": "{{versions.UI}}",
|
|
55
59
|
"@genesislcap/rapid-design-system": "{{versions.UI}}",
|
|
@@ -8,6 +8,7 @@ declare module "react/jsx-runtime" {
|
|
|
8
8
|
'rapid-design-system-provider': CustomElement;
|
|
9
9
|
'entity-management': CustomElement;
|
|
10
10
|
'foundation-form': CustomElement;
|
|
11
|
+
'smart-form-modal': CustomElement;
|
|
11
12
|
'rapid-grid-pro': CustomElement;
|
|
12
13
|
'grid-pro-genesis-datasource': CustomElement;
|
|
13
14
|
'grid-pro-column': CustomElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EntityManagement } from '@genesislcap/foundation-entity-management';
|
|
1
|
+
import { EntityManagement, SmartFormModal } from '@genesislcap/foundation-entity-management';
|
|
2
2
|
import { Form } from '@genesislcap/foundation-forms';
|
|
3
3
|
import { foundationLayoutComponents } from '@genesislcap/foundation-layout';
|
|
4
4
|
import { getApp } from '@genesislcap/foundation-shell/app';
|
|
@@ -13,6 +13,7 @@ import { FoundationRouter } from '@genesislcap/foundation-ui';
|
|
|
13
13
|
FoundationRouter;
|
|
14
14
|
EntityManagement;
|
|
15
15
|
Form;
|
|
16
|
+
SmartFormModal;
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
* registerComponents.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { getConnect } from '@genesislcap/foundation-comms';
|
|
2
|
+
import { UiSchema } from '@genesislcap/foundation-forms';
|
|
2
3
|
import { showNotification, showNotificationDialog } from '@genesislcap/foundation-notifications';
|
|
3
4
|
|
|
4
5
|
interface ConfirmSubmit {
|
|
@@ -150,7 +151,10 @@ export const useCustomEvent =
|
|
|
150
151
|
customEvent: CustomEventHandler,
|
|
151
152
|
rowData: any,
|
|
152
153
|
setFormData: (data: Record<string, any>) => void,
|
|
153
|
-
setActiveEvent: (event: CustomEventState | null) => void
|
|
154
|
+
setActiveEvent: (event: CustomEventState | null) => void,
|
|
155
|
+
setResourceName?: (name: string) => void,
|
|
156
|
+
setUiSchema?: (schema: UiSchema) => void,
|
|
157
|
+
customEventFormSchemas?: Record<string, UiSchema>
|
|
154
158
|
) =>
|
|
155
159
|
async () => {
|
|
156
160
|
if (customEvent.hasForm) {
|
|
@@ -162,6 +166,15 @@ export const useCustomEvent =
|
|
|
162
166
|
event: customEvent.baseEvent,
|
|
163
167
|
rowData,
|
|
164
168
|
});
|
|
169
|
+
|
|
170
|
+
if (setResourceName) {
|
|
171
|
+
setResourceName(`EVENT_${customEvent.baseEvent}`);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
if (setUiSchema && customEventFormSchemas) {
|
|
175
|
+
const uiSchema = customEventFormSchemas[customEvent.name];
|
|
176
|
+
setUiSchema(uiSchema || null);
|
|
177
|
+
}
|
|
165
178
|
} else {
|
|
166
179
|
if (customEvent.confirmSubmit?.state === 'enabled') {
|
|
167
180
|
showCustomEventConfirmation(customEvent, () =>
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"build:stats": "genx analyze",
|
|
30
30
|
"clean": "genx clean dist node_modules",
|
|
31
31
|
"dev": "npm run dev:webpack",
|
|
32
|
-
"dev:docker": "npm run dev -- --host 0.0.0.0",
|
|
32
|
+
"dev:docker": "npm run dev -- -- --host 0.0.0.0",
|
|
33
33
|
"dev:intellij": "genx dev -e ENABLE_SSO -b webpack",
|
|
34
|
-
"dev:no-open": "npm run dev -- --no-open",
|
|
35
|
-
"dev:https": "npm run dev -- --https",
|
|
34
|
+
"dev:no-open": "npm run dev -- -- --no-open",
|
|
35
|
+
"dev:https": "npm run dev -- -- --https",
|
|
36
36
|
"dev:vite": "genx dev -e API_HOST,ENABLE_SSO -b vite",
|
|
37
37
|
"dev:webpack": "genx dev -e API_HOST,ENABLE_SSO -b webpack",
|
|
38
38
|
"dsconfig": "dsconfig --path src/styles/design-tokens.json",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EntityManagement } from '@genesislcap/foundation-entity-management';
|
|
1
|
+
import { EntityManagement, SmartFormModal } from '@genesislcap/foundation-entity-management';
|
|
2
2
|
import { Form } from '@genesislcap/foundation-forms';
|
|
3
3
|
import { foundationLayoutComponents } from '@genesislcap/foundation-layout';
|
|
4
4
|
import { getApp } from '@genesislcap/foundation-shell/app';
|
|
@@ -16,6 +16,7 @@ FoundationRouter;
|
|
|
16
16
|
EntityManagement;
|
|
17
17
|
Form;
|
|
18
18
|
NotPermittedComponent;
|
|
19
|
+
SmartFormModal;
|
|
19
20
|
|
|
20
21
|
/**
|
|
21
22
|
* registerComponents.
|
|
@@ -144,14 +144,12 @@ export const handleFormCustomEvent = (
|
|
|
144
144
|
rowData: any,
|
|
145
145
|
setFormData: (data: Record<string, any>) => void,
|
|
146
146
|
setActiveEvent: (event: CustomEventState) => void,
|
|
147
|
-
showModal: () => void,
|
|
148
147
|
): void => {
|
|
149
148
|
const defaultValues = customEvent.defaultValues || {};
|
|
150
149
|
const formData = mapDefaultValues(defaultValues, rowData);
|
|
151
150
|
|
|
152
151
|
setFormData(formData);
|
|
153
152
|
setActiveEvent({ name: customEvent.name, event: customEvent.baseEvent, rowData });
|
|
154
|
-
showModal();
|
|
155
153
|
};
|
|
156
154
|
|
|
157
155
|
export const handleNonFormCustomEvent = async (
|
|
@@ -2,5 +2,5 @@ import { expect } from '@genesislcap/foundation-testing/e2e';
|
|
|
2
2
|
import { test } from '../fixture';
|
|
3
3
|
|
|
4
4
|
test('expected page title', async ({ protectedPage, page }) => {
|
|
5
|
-
await expect(page).toHaveTitle(/
|
|
5
|
+
await expect(page).toHaveTitle(/{{capitalCase appName}}/);
|
|
6
6
|
});
|
package/gradle.properties
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
kotlin.code.style=official
|
|
2
|
-
org.gradle.jvmargs=-Xmx3g -Xss512k -XX:+HeapDumpOnOutOfMemoryError -XX:+UseG1GC -XX:+UseStringDeduplication -XX:ReservedCodeCacheSize=512m -Dfile.encoding=UTF-8
|
|
2
|
+
org.gradle.jvmargs=-Xmx3g -Xss512k -XX:+HeapDumpOnOutOfMemoryError -XX:+UseG1GC -XX:+UseStringDeduplication -XX:ReservedCodeCacheSize=512m -Dfile.encoding=UTF-8 -Dlog4j2.shutdownHookEnabled=false
|
|
3
3
|
kotlin.daemon.jvmargs=-Xmx3g -XX:+UseG1GC -XX:+UseStringDeduplication
|
|
4
4
|
org.gradle.caching=true
|
|
5
5
|
org.gradle.configuration-cache=true
|
package/package.json
CHANGED
package/server/build.gradle.kts
CHANGED
package/server/gradle.properties
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
bundleGeneratedClasses=true
|
|
2
|
-
org.gradle.jvmargs=-Xmx3g -Xss512k -XX:+HeapDumpOnOutOfMemoryError -XX:+UseG1GC -XX:+UseStringDeduplication -XX:ReservedCodeCacheSize=512m -Dfile.encoding=UTF-8
|
|
2
|
+
org.gradle.jvmargs=-Xmx3g -Xss512k -XX:+HeapDumpOnOutOfMemoryError -XX:+UseG1GC -XX:+UseStringDeduplication -XX:ReservedCodeCacheSize=512m -Dfile.encoding=UTF-8 -Dlog4j2.shutdownHookEnabled=false
|
|
3
3
|
kotlin.daemon.jvmargs=-Xmx3g -XX:+UseG1GC -XX:+UseStringDeduplication
|
|
4
4
|
org.gradle.configuration-cache=true
|
|
5
5
|
enableDockerTasks=true
|