robobyte-front-builder 1.0.16 → 1.0.19
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/package.json +1 -1
- package/src/lib/providers/RoboByteFrontBuilderProvider.jsx +26 -9
- package/src/pages/_app.js +0 -8
- package/src/pages/reportModule/reportBuilder/index.js +719 -561
- package/src/pages/reportModule/reportBuilder/reportViewer/index.js +135 -80
- package/src/pages/reportModule/reportBuilder/reports/index.js +51 -11
- package/src/pages/reportModule/reportBuilder/reportsPermissions/index.js +127 -0
- package/src/services/helper/multiSelectEditorByBuilder.js +245 -0
- package/src/services/helper/reportSessionHelper.js +83 -0
- package/src/views/genericTable/ColumnConfiguratorDialog.js +762 -0
- package/src/views/genericTable/FormattingSettingsDialog.js +546 -0
- package/src/views/genericTable/ReportSettingsDialog.js +151 -0
- package/src/views/genericTable/SGrid.js +872 -159
- package/src/views/genericTable/TAGGrid.js +83 -69
- package/src/views/genericTable/convertStringFunctions.js +200 -0
- package/src/views/genericTable/updateRefHelpers.js +421 -0
- package/src/views/rolePermissions/UpdateReportPermissionDialog.js +315 -0
package/package.json
CHANGED
|
@@ -44,20 +44,25 @@
|
|
|
44
44
|
*/
|
|
45
45
|
|
|
46
46
|
import { useMemo } from 'react'
|
|
47
|
+
import { ModuleRegistry } from 'ag-grid-community'
|
|
48
|
+
import { AllEnterpriseModule, IntegratedChartsModule, LicenseManager } from 'ag-grid-enterprise'
|
|
49
|
+
import { AgChartsEnterpriseModule } from 'ag-charts-enterprise'
|
|
47
50
|
import { NavigationExtensionProvider } from '../navigation/NavigationExtensionContext'
|
|
48
51
|
import { configureRoboByte } from '../../services/config'
|
|
49
52
|
import { AuthContext } from '../../context/AuthContext'
|
|
50
53
|
|
|
51
54
|
/**
|
|
52
|
-
* @param {string} [baseURL]
|
|
53
|
-
* @param {string} [apiURL]
|
|
54
|
-
* @param {object} [user]
|
|
55
|
-
* @param {string} [accessToken]
|
|
56
|
-
* @param {Object[]} [navExtensions]
|
|
57
|
-
* @param {Object} [endpoints]
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
55
|
+
* @param {string} [baseURL] Root API server URL (with trailing slash)
|
|
56
|
+
* @param {string} [apiURL] /api prefix URL (with trailing slash)
|
|
57
|
+
* @param {object} [user] Current user from the host auth context
|
|
58
|
+
* @param {string} [accessToken] Current Bearer token from the host auth context
|
|
59
|
+
* @param {Object[]} [navExtensions] Static nav items to inject into the sidebar
|
|
60
|
+
* @param {Object} [endpoints] Full-URL overrides for each endpoint group+name.
|
|
61
|
+
* Shape: { [group]: { [name]: fullURL } }
|
|
62
|
+
* @param {string} [agGridLicenseKey] AG Grid Enterprise license key.
|
|
63
|
+
* Pass your key here — the provider calls
|
|
64
|
+
* LicenseManager.setLicenseKey() and registers
|
|
65
|
+
* AllEnterpriseModule automatically.
|
|
61
66
|
* @param {ReactNode} children
|
|
62
67
|
*/
|
|
63
68
|
const RoboByteFrontBuilderProvider = ({
|
|
@@ -68,6 +73,7 @@ const RoboByteFrontBuilderProvider = ({
|
|
|
68
73
|
accessToken = null,
|
|
69
74
|
navExtensions = [],
|
|
70
75
|
endpoints = null,
|
|
76
|
+
agGridLicenseKey = null,
|
|
71
77
|
}) => {
|
|
72
78
|
// Apply URL + endpoint config synchronously before any child renders.
|
|
73
79
|
useMemo(() => {
|
|
@@ -76,6 +82,17 @@ const RoboByteFrontBuilderProvider = ({
|
|
|
76
82
|
}
|
|
77
83
|
}, [baseURL, apiURL, endpoints])
|
|
78
84
|
|
|
85
|
+
// Set up AG Grid Enterprise once — safe to call multiple times (idempotent).
|
|
86
|
+
useMemo(() => {
|
|
87
|
+
if (agGridLicenseKey) {
|
|
88
|
+
LicenseManager.setLicenseKey(agGridLicenseKey)
|
|
89
|
+
}
|
|
90
|
+
ModuleRegistry.registerModules([
|
|
91
|
+
AllEnterpriseModule,
|
|
92
|
+
IntegratedChartsModule.with(AgChartsEnterpriseModule),
|
|
93
|
+
])
|
|
94
|
+
}, [agGridLicenseKey])
|
|
95
|
+
|
|
79
96
|
// Auth context value — comes entirely from the host. No logic here.
|
|
80
97
|
const authValue = useMemo(
|
|
81
98
|
() => ({ user, accessToken }),
|
package/src/pages/_app.js
CHANGED
|
@@ -46,14 +46,6 @@ import {useContext, useEffect} from "react";
|
|
|
46
46
|
import { NavigationExtensionProvider } from 'src/lib/navigation/NavigationExtensionContext'
|
|
47
47
|
|
|
48
48
|
const clientSideEmotionCache = createEmotionCache()
|
|
49
|
-
import { AllEnterpriseModule, LicenseManager} from "ag-grid-enterprise";
|
|
50
|
-
|
|
51
|
-
LicenseManager.setLicenseKey("Using_this_{AG_Grid}_Enterprise_key_{AG-064521}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{RoboByte}_is_granted_a_{Multiple_Applications}_Developer_License_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_need_to_be_licensed_in_addition_to_the_ones_working_with_{AG_Grid}_Enterprise___This_key_has_not_been_granted_a_Deployment_License_Add-on___This_key_works_with_{AG_Grid}_Enterprise_versions_released_before_{4_August_2025}____[v3]_[01]_MTc1NDI2MjAwMDAwMA==3b122b26308a216244f31e0932146fec");
|
|
52
|
-
import {ModuleRegistry} from "ag-grid-community";
|
|
53
|
-
|
|
54
|
-
ModuleRegistry. registerModules([
|
|
55
|
-
AllEnterpriseModule,
|
|
56
|
-
]);
|
|
57
49
|
// ** Pace Loader
|
|
58
50
|
if (themeConfig.routingLoader) {
|
|
59
51
|
Router.events.on('routeChangeStart', () => {
|