@solidxai/solidctl 0.1.15 → 0.1.17
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/commands/upgrade.command.js +1 -0
- package/dist/commands/upgrade.command.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/templates/ui-template/src/App.tsx +5 -19
- package/templates/ui-template/src/extensions/solid-extensions.ts +2 -68
- package/templates/ui-template/src/routes/AppRoutes.tsx +2 -21
- package/templates/ui-template/src/extensions/venue/call-log/custom-widgets/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/call-log/form-buttons/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/call-log/form-event-listeners/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/call-log/form-event-listeners/callLogsDispositionHandler.ts +0 -47
- package/templates/ui-template/src/extensions/venue/call-log/list-buttons/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/call-log/list-event-listeners/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/call-log/row-buttons/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/hierarchy-import-transaction/custom-widgets/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/hierarchy-import-transaction/form-buttons/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/hierarchy-import-transaction/form-buttons/ImportHierarchyComponent.tsx +0 -377
- package/templates/ui-template/src/extensions/venue/hierarchy-import-transaction/form-buttons/SolidCustomImportHeader.tsx +0 -14
- package/templates/ui-template/src/extensions/venue/hierarchy-import-transaction/form-event-listeners/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/hierarchy-import-transaction/form-event-listeners/CallLogsDispositionHandler.ts +0 -47
- package/templates/ui-template/src/extensions/venue/hierarchy-import-transaction/form-event-listeners/onHierarchyImportFormLoadHandler.ts +0 -45
- package/templates/ui-template/src/extensions/venue/hierarchy-import-transaction/list-buttons/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/hierarchy-import-transaction/list-event-listeners/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/hierarchy-import-transaction/row-buttons/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/venue-master/custom-widgets/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/venue-master/form-buttons/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/venue-master/form-event-listeners/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/venue-master/form-event-listeners/venueMasterFormViewLoadHandler.ts +0 -57
- package/templates/ui-template/src/extensions/venue/venue-master/list-buttons/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/venue-master/list-event-listeners/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/venue-master/row-buttons/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/venue-user/custom-widgets/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/venue-user/form-buttons/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/venue-user/form-event-listeners/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/venue-user/form-event-listeners/venueUserFormViewChangeHandler.ts +0 -21
- package/templates/ui-template/src/extensions/venue/venue-user/form-event-listeners/venueUserFormViewLoadHandler.ts +0 -97
- package/templates/ui-template/src/extensions/venue/venue-user/list-buttons/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/venue-user/list-event-listeners/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/venue-user/row-buttons/.gitkeep +0 -0
- package/templates/ui-template/src/pages/admin/AdminInfoPage.tsx +0 -15
- package/templates/ui-template/src/pages/auth/HelloAuthPage.tsx +0 -15
- package/templates/ui-template/src/pages/static/AboutPage.tsx +0 -17
- package/templates/ui-template/src/redux/hierarchyImportTransactionApi.tsx +0 -28
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { SolidUiEvent, SolidViewLayoutManager } from "@solidxai/core-ui";
|
|
2
|
-
|
|
3
|
-
const callLogsDispositionHandler = async (event: SolidUiEvent) => {
|
|
4
|
-
const { modifiedField, modifiedFieldValue, formViewLayout } = event;
|
|
5
|
-
|
|
6
|
-
const layout = formViewLayout;
|
|
7
|
-
const layoutManager = new SolidViewLayoutManager(layout);
|
|
8
|
-
|
|
9
|
-
if (modifiedField === 'category') {
|
|
10
|
-
const dispositionWhereClause = {
|
|
11
|
-
category: {
|
|
12
|
-
id: { $eq: modifiedFieldValue?.id }
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
layoutManager.updateNodeAttributes('disposition', {
|
|
18
|
-
"whereClause": JSON.stringify(dispositionWhereClause)
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
return {
|
|
22
|
-
layoutChanged: true,
|
|
23
|
-
dataChanged: false,
|
|
24
|
-
newLayout: layoutManager.getLayout(),
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
if (modifiedField === 'disposition') {
|
|
29
|
-
const subDispositionWhereClause = {
|
|
30
|
-
disposition: {
|
|
31
|
-
id: { $eq: modifiedFieldValue?.id }
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
layoutManager.updateNodeAttributes('subDisposition', {
|
|
36
|
-
"whereClause": JSON.stringify(subDispositionWhereClause)
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
return {
|
|
40
|
-
layoutChanged: true,
|
|
41
|
-
dataChanged: false,
|
|
42
|
-
newLayout: layoutManager.getLayout(),
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export default callLogsDispositionHandler;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { SolidLoadForm, SolidViewLayoutManager } from "@solidxai/core-ui";
|
|
2
|
-
|
|
3
|
-
const onHierarchyImportFormLayoutLoadHandler = async (event: SolidLoadForm) => {
|
|
4
|
-
const { viewMetadata } = event;
|
|
5
|
-
|
|
6
|
-
const layout = viewMetadata.layout;
|
|
7
|
-
const layoutManager = new SolidViewLayoutManager(layout);
|
|
8
|
-
|
|
9
|
-
const currentUrl = window.location.href;
|
|
10
|
-
|
|
11
|
-
const { pathname } = new URL(currentUrl);
|
|
12
|
-
const isNewForm = pathname.endsWith('/new');
|
|
13
|
-
|
|
14
|
-
const urlParams = new URLSearchParams(window.location.search);
|
|
15
|
-
const viewMode = urlParams.get('viewMode');
|
|
16
|
-
const isViewMode = viewMode === 'view';
|
|
17
|
-
const isEditMode = viewMode === 'edit';
|
|
18
|
-
|
|
19
|
-
// Hide errorDetails field when it's a new form
|
|
20
|
-
if (isNewForm) {
|
|
21
|
-
layoutManager.updateNodeAttributes('errorDetails', {
|
|
22
|
-
visible: false
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
layoutManager.updateFormButtonByAction('ImportHierarchyComponent', {
|
|
26
|
-
visible: false
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
if (isEditMode) {
|
|
31
|
-
layoutManager.updateNodeAttributes('errorDetails', {
|
|
32
|
-
visible: true,
|
|
33
|
-
disabled: true
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
return {
|
|
38
|
-
layoutChanged: isNewForm || isViewMode || isEditMode,
|
|
39
|
-
dataChanged: false,
|
|
40
|
-
newLayout: layoutManager.getLayout()
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export default onHierarchyImportFormLayoutLoadHandler;
|
|
File without changes
|
|
File without changes
|
package/templates/ui-template/src/extensions/venue/hierarchy-import-transaction/row-buttons/.gitkeep
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/templates/ui-template/src/extensions/venue/venue-master/form-event-listeners/.gitkeep
DELETED
|
File without changes
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { SolidUiEvent, SolidViewLayoutManager } from '@solidxai/core-ui';
|
|
2
|
-
|
|
3
|
-
const handleVenueMasterFormViewLoad = (event: SolidUiEvent) => {
|
|
4
|
-
|
|
5
|
-
const { viewMetadata } = event;
|
|
6
|
-
console.log("handleVenueMasterFormViewLoad handler", viewMetadata);
|
|
7
|
-
|
|
8
|
-
const layout = viewMetadata.layout;
|
|
9
|
-
const layoutManager = new SolidViewLayoutManager(layout);
|
|
10
|
-
|
|
11
|
-
const currentUrl = window.location.href;
|
|
12
|
-
const isNewForm = currentUrl.endsWith('/new');
|
|
13
|
-
|
|
14
|
-
const urlParams = new URLSearchParams(window.location.search);
|
|
15
|
-
const viewMode = urlParams.get('viewMode');
|
|
16
|
-
const isViewMode = viewMode === 'view';
|
|
17
|
-
const isEditMode = viewMode === 'edit';
|
|
18
|
-
|
|
19
|
-
// Hide leader, regionHead, areaHead, venueManager, manager fields when it's a new form
|
|
20
|
-
if (isNewForm) {
|
|
21
|
-
layoutManager.updateNodeAttributes('leader', { visible: false });
|
|
22
|
-
layoutManager.updateNodeAttributes('regionHead', { visible: false });
|
|
23
|
-
layoutManager.updateNodeAttributes('areaHead', { visible: false });
|
|
24
|
-
layoutManager.updateNodeAttributes('venueManager', { visible: false });
|
|
25
|
-
layoutManager.updateNodeAttributes('manager', { visible: false });
|
|
26
|
-
|
|
27
|
-
if (isEditMode) {
|
|
28
|
-
layoutManager.updateNodeAttributes('leader', {
|
|
29
|
-
visible: true,
|
|
30
|
-
disabled: true
|
|
31
|
-
});
|
|
32
|
-
layoutManager.updateNodeAttributes('regionHead', {
|
|
33
|
-
visible: true,
|
|
34
|
-
disabled: true
|
|
35
|
-
});
|
|
36
|
-
layoutManager.updateNodeAttributes('areaHead', {
|
|
37
|
-
visible: true,
|
|
38
|
-
disabled: true
|
|
39
|
-
});
|
|
40
|
-
layoutManager.updateNodeAttributes('venueManager', {
|
|
41
|
-
visible: true,
|
|
42
|
-
disabled: true
|
|
43
|
-
});
|
|
44
|
-
layoutManager.updateNodeAttributes('manager', {
|
|
45
|
-
visible: true,
|
|
46
|
-
disabled: true
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
return {
|
|
51
|
-
layoutChanged: isNewForm || isViewMode || isEditMode,
|
|
52
|
-
dataChanged: false,
|
|
53
|
-
newLayout: layoutManager.getLayout()
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
export default handleVenueMasterFormViewLoad;
|
|
File without changes
|
package/templates/ui-template/src/extensions/venue/venue-master/list-event-listeners/.gitkeep
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { SolidUiEvent, SolidViewLayoutManager } from '@solidxai/core-ui';
|
|
2
|
-
|
|
3
|
-
const handleVenueUserFormViewChange = (event: SolidUiEvent) => {
|
|
4
|
-
|
|
5
|
-
const { modifiedField, modifiedFieldValue, formViewLayout } = event;
|
|
6
|
-
|
|
7
|
-
const layout = formViewLayout;
|
|
8
|
-
const layoutManager = new SolidViewLayoutManager(layout);
|
|
9
|
-
|
|
10
|
-
if (modifiedField === 'code') {
|
|
11
|
-
return {
|
|
12
|
-
layoutChanged: false,
|
|
13
|
-
dataChanged: true,
|
|
14
|
-
newFormData: {
|
|
15
|
-
username: modifiedFieldValue
|
|
16
|
-
},
|
|
17
|
-
newLayout: layoutManager.getLayout(),
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
export default handleVenueUserFormViewChange;
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { SolidUiEvent, SolidViewLayoutManager } from '@solidxai/core-ui';
|
|
2
|
-
|
|
3
|
-
const handleVenueUserFormViewLoad = (event: SolidUiEvent) => {
|
|
4
|
-
const { viewMetadata } = event;
|
|
5
|
-
|
|
6
|
-
const layout = viewMetadata.layout;
|
|
7
|
-
const layoutManager = new SolidViewLayoutManager(layout);
|
|
8
|
-
|
|
9
|
-
const currentUrl = window.location.href;
|
|
10
|
-
|
|
11
|
-
const { pathname } = new URL(currentUrl);
|
|
12
|
-
const isNewForm = pathname.endsWith('/new');
|
|
13
|
-
|
|
14
|
-
const urlParams = new URLSearchParams(window.location.search);
|
|
15
|
-
const viewMode = urlParams.get('viewMode');
|
|
16
|
-
const isViewMode = viewMode === 'view';
|
|
17
|
-
const isEditMode = viewMode === 'edit';
|
|
18
|
-
|
|
19
|
-
// Hide leader, regionHead, areaHead, venueManager, manager fields when it's a new form
|
|
20
|
-
if (isNewForm) {
|
|
21
|
-
layoutManager.updateNodeAttributes('code', { visible: false });
|
|
22
|
-
layoutManager.updateNodeAttributes('internalExternal', { visible: false });
|
|
23
|
-
layoutManager.updateNodeAttributes('designation', { visible: false });
|
|
24
|
-
layoutManager.updateNodeAttributes('exitStatus', { visible: false });
|
|
25
|
-
layoutManager.updateNodeAttributes('doj', { visible: false });
|
|
26
|
-
layoutManager.updateNodeAttributes('dol', { visible: false });
|
|
27
|
-
layoutManager.updateNodeAttributes('lastImportedOn', { visible: false });
|
|
28
|
-
layoutManager.updateNodeAttributes('leader', { visible: false });
|
|
29
|
-
layoutManager.updateNodeAttributes('regionHead', { visible: false });
|
|
30
|
-
layoutManager.updateNodeAttributes('zonalHead', { visible: false });
|
|
31
|
-
layoutManager.updateNodeAttributes('areaHead', { visible: false });
|
|
32
|
-
layoutManager.updateNodeAttributes('venueManager', { visible: false });
|
|
33
|
-
layoutManager.updateNodeAttributes('manager', { visible: false });
|
|
34
|
-
|
|
35
|
-
if (isEditMode) {
|
|
36
|
-
layoutManager.updateNodeAttributes('code', {
|
|
37
|
-
visible: true,
|
|
38
|
-
disabled: true
|
|
39
|
-
});
|
|
40
|
-
layoutManager.updateNodeAttributes('internalExternal', {
|
|
41
|
-
visible: true,
|
|
42
|
-
disabled: true
|
|
43
|
-
});
|
|
44
|
-
layoutManager.updateNodeAttributes('designation', {
|
|
45
|
-
visible: true,
|
|
46
|
-
disabled: true
|
|
47
|
-
});
|
|
48
|
-
layoutManager.updateNodeAttributes('exitStatus', {
|
|
49
|
-
visible: true,
|
|
50
|
-
disabled: true
|
|
51
|
-
});
|
|
52
|
-
layoutManager.updateNodeAttributes('doj', {
|
|
53
|
-
visible: true,
|
|
54
|
-
disabled: true
|
|
55
|
-
});
|
|
56
|
-
layoutManager.updateNodeAttributes('dol', {
|
|
57
|
-
visible: true,
|
|
58
|
-
disabled: true
|
|
59
|
-
});
|
|
60
|
-
layoutManager.updateNodeAttributes('lastImportedOn', {
|
|
61
|
-
visible: true,
|
|
62
|
-
disabled: true
|
|
63
|
-
});
|
|
64
|
-
layoutManager.updateNodeAttributes('leader', {
|
|
65
|
-
visible: true,
|
|
66
|
-
disabled: true
|
|
67
|
-
});
|
|
68
|
-
layoutManager.updateNodeAttributes('regionHead', {
|
|
69
|
-
visible: true,
|
|
70
|
-
disabled: true
|
|
71
|
-
});
|
|
72
|
-
layoutManager.updateNodeAttributes('zonalHead', {
|
|
73
|
-
visible: true,
|
|
74
|
-
disabled: true
|
|
75
|
-
});
|
|
76
|
-
layoutManager.updateNodeAttributes('areaHead', {
|
|
77
|
-
visible: true,
|
|
78
|
-
disabled: true
|
|
79
|
-
});
|
|
80
|
-
layoutManager.updateNodeAttributes('venueManager', {
|
|
81
|
-
visible: true,
|
|
82
|
-
disabled: true
|
|
83
|
-
});
|
|
84
|
-
layoutManager.updateNodeAttributes('manager', {
|
|
85
|
-
visible: true,
|
|
86
|
-
disabled: true
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
return {
|
|
91
|
-
layoutChanged: isNewForm || isViewMode || isEditMode,
|
|
92
|
-
dataChanged: false,
|
|
93
|
-
newLayout: layoutManager.getLayout()
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
export default handleVenueUserFormViewLoad;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Card } from "primereact/card";
|
|
2
|
-
|
|
3
|
-
export function AdminInfoPage() {
|
|
4
|
-
return (
|
|
5
|
-
<div className="flex align-items-center justify-content-center" style={{ minHeight: "70vh" }}>
|
|
6
|
-
<Card className="w-full" style={{ maxWidth: 520 }}>
|
|
7
|
-
<div className="flex flex-column align-items-center text-center gap-2">
|
|
8
|
-
<i className="pi pi-shield" style={{ fontSize: 28, color: "#22c55e" }} />
|
|
9
|
-
<h2 className="m-0">Admin Message</h2>
|
|
10
|
-
<p className="m-0 text-sm">This is a guarded admin route.</p>
|
|
11
|
-
</div>
|
|
12
|
-
</Card>
|
|
13
|
-
</div>
|
|
14
|
-
);
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Card } from "primereact/card";
|
|
2
|
-
|
|
3
|
-
export function HelloAuthPage() {
|
|
4
|
-
return (
|
|
5
|
-
<div className="flex align-items-center justify-content-center" style={{ minHeight: "70vh" }}>
|
|
6
|
-
<Card className="w-full" style={{ maxWidth: 420 }}>
|
|
7
|
-
<div className="flex flex-column align-items-center text-center gap-3">
|
|
8
|
-
<i className="pi pi-sparkles" style={{ fontSize: 28, color: "#7c3aed" }} />
|
|
9
|
-
<h2 className="m-0">Hello!</h2>
|
|
10
|
-
<p className="m-0 text-sm">This is an unguarded auth route.</p>
|
|
11
|
-
</div>
|
|
12
|
-
</Card>
|
|
13
|
-
</div>
|
|
14
|
-
);
|
|
15
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Card } from "primereact/card";
|
|
2
|
-
|
|
3
|
-
export function AboutPage() {
|
|
4
|
-
return (
|
|
5
|
-
<div className="flex align-items-center justify-content-center" style={{ minHeight: "70vh" }}>
|
|
6
|
-
<Card className="w-full" style={{ maxWidth: 520 }}>
|
|
7
|
-
<div className="flex flex-column align-items-center text-center gap-2">
|
|
8
|
-
<i className="pi pi-info-circle" style={{ fontSize: 28, color: "#2563eb" }} />
|
|
9
|
-
<h2 className="m-0">About Us</h2>
|
|
10
|
-
<p className="m-0 text-sm">
|
|
11
|
-
This is a public, unguarded route outside the auth layout.
|
|
12
|
-
</p>
|
|
13
|
-
</div>
|
|
14
|
-
</Card>
|
|
15
|
-
</div>
|
|
16
|
-
);
|
|
17
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { createApi } from "@reduxjs/toolkit/query/react";
|
|
2
|
-
import { baseQueryWithAuth } from "@solidxai/core-ui";
|
|
3
|
-
|
|
4
|
-
export const hierarchyImportTransactionApi = createApi({
|
|
5
|
-
reducerPath: "hierarchyImportTransactionApi",
|
|
6
|
-
baseQuery: baseQueryWithAuth,
|
|
7
|
-
tagTypes: ["HierarchyImportTransaction"],
|
|
8
|
-
endpoints: (builder) => ({
|
|
9
|
-
validateHierarchyImport: builder.mutation({
|
|
10
|
-
query: ({ id }) => ({
|
|
11
|
-
url: `/hierarchy-import-transaction/${id}/validate-import`,
|
|
12
|
-
method: "POST",
|
|
13
|
-
}),
|
|
14
|
-
}),
|
|
15
|
-
triggerHierarchyImport: builder.mutation({
|
|
16
|
-
query: ({ id }) => ({
|
|
17
|
-
url: `/hierarchy-import-transaction/${id}/trigger-import`,
|
|
18
|
-
method: "POST",
|
|
19
|
-
}),
|
|
20
|
-
invalidatesTags: ["HierarchyImportTransaction"],
|
|
21
|
-
}),
|
|
22
|
-
}),
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
export const {
|
|
26
|
-
useValidateHierarchyImportMutation,
|
|
27
|
-
useTriggerHierarchyImportMutation,
|
|
28
|
-
} = hierarchyImportTransactionApi;
|