datastake-daf 0.6.737 → 0.6.739
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/components/index.js +16 -9
- package/dist/hooks/index.js +4662 -21
- package/dist/layouts/index.js +19 -6
- package/dist/pages/index.js +1589 -78
- package/dist/services/index.js +76 -0
- package/dist/utils/index.js +4 -4
- package/package.json +1 -1
- package/public/assets/favicons/datastake-black.svg +13 -0
- package/public/assets/favicons/datastake-white.svg +13 -0
- package/src/@daf/core/components/EditForm/components/DataLink/useAjaxModal.js +1 -1
- package/src/@daf/core/components/Filters/selectFilters/AjaxSelect.jsx +1 -1
- package/src/@daf/core/components/PdfForm/utils/useAjaxModal.js +1 -1
- package/src/@daf/core/components/Sidenav/index.jsx +15 -3
- package/src/@daf/core/components/ViewForm/components/DataLink/useAjaxModal.js +1 -1
- package/src/@daf/hooks/useGetQueryParams.js +2 -2
- package/src/@daf/layouts/AppLayout/components/Sidenav/index.js +2 -0
- package/src/@daf/layouts/AppLayout/index.jsx +6 -1
- package/src/@daf/pages/dashboards/AllInformation/Documents/columns.js +106 -0
- package/src/@daf/pages/dashboards/AllInformation/Documents/config.js +31 -0
- package/src/@daf/pages/dashboards/AllInformation/Documents/create.jsx +104 -0
- package/src/@daf/pages/dashboards/AllInformation/Documents/index.jsx +156 -0
- package/src/@daf/pages/dashboards/AllInformation/Events/columns.js +150 -0
- package/src/@daf/pages/dashboards/AllInformation/Events/config.js +31 -0
- package/src/@daf/pages/dashboards/AllInformation/Events/create.jsx +104 -0
- package/src/@daf/pages/dashboards/AllInformation/Events/index.jsx +156 -0
- package/src/@daf/pages/dashboards/AllInformation/Locations/index.jsx +1 -2
- package/src/@daf/pages/dashboards/Operations/Operators/columns.js +150 -0
- package/src/@daf/pages/dashboards/Operations/Operators/config.js +163 -0
- package/src/@daf/pages/dashboards/Operations/Operators/create.jsx +104 -0
- package/src/@daf/pages/dashboards/Operations/Operators/index.jsx +155 -0
- package/src/@daf/pages/pages/TablePageWithTabs/index.jsx +2 -2
- package/src/@daf/services/OperatorService.js +90 -0
- package/src/helpers/StringHelper.js +4 -4
- package/src/pages.js +5 -2
- package/src/services.js +2 -1
- package/dist/style/datastake/mapbox-gl.css +0 -330
package/dist/layouts/index.js
CHANGED
|
@@ -5001,7 +5001,8 @@ function Sidenav$1({
|
|
|
5001
5001
|
poweredByLogo,
|
|
5002
5002
|
hoverContentSecond,
|
|
5003
5003
|
t = s => s,
|
|
5004
|
-
isDatastake = false
|
|
5004
|
+
isDatastake = false,
|
|
5005
|
+
logoVariant = "white"
|
|
5005
5006
|
}) {
|
|
5006
5007
|
return /*#__PURE__*/jsxRuntime.jsx(antd.ConfigProvider, {
|
|
5007
5008
|
theme: {
|
|
@@ -5039,9 +5040,13 @@ function Sidenav$1({
|
|
|
5039
5040
|
}), isDatastake && !isCollapsed ? /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
5040
5041
|
className: "sidenav-footer",
|
|
5041
5042
|
children: [/*#__PURE__*/jsxRuntime.jsx("h6", {
|
|
5043
|
+
style: {
|
|
5044
|
+
color: logoVariant === "black" ? "#B5B5C3" : "white",
|
|
5045
|
+
margin: 0
|
|
5046
|
+
},
|
|
5042
5047
|
children: t("Powered By")
|
|
5043
5048
|
}), /*#__PURE__*/jsxRuntime.jsx("img", {
|
|
5044
|
-
src: poweredByLogo ||
|
|
5049
|
+
src: poweredByLogo || `/assets/favicons/datastake-${logoVariant}.svg`,
|
|
5045
5050
|
alt: "logo"
|
|
5046
5051
|
})]
|
|
5047
5052
|
}) : null]
|
|
@@ -5215,9 +5220,11 @@ Sidenav$1.propTypes = {
|
|
|
5215
5220
|
topHoverSecond: PropTypes__default["default"].any,
|
|
5216
5221
|
hoverItemSecond: PropTypes__default["default"].any,
|
|
5217
5222
|
widthHoverSecond: PropTypes__default["default"].any,
|
|
5223
|
+
poweredByLogo: PropTypes__default["default"].any,
|
|
5218
5224
|
hoverContentSecond: PropTypes__default["default"].any,
|
|
5219
5225
|
t: PropTypes__default["default"].any,
|
|
5220
|
-
isDatastake: PropTypes__default["default"].any
|
|
5226
|
+
isDatastake: PropTypes__default["default"].any,
|
|
5227
|
+
logoVariant: PropTypes__default["default"].oneOf(["white", "black"])
|
|
5221
5228
|
};
|
|
5222
5229
|
|
|
5223
5230
|
/* eslint-disable react/prop-types */
|
|
@@ -5309,7 +5316,8 @@ const Sidenav = ({
|
|
|
5309
5316
|
appName = 'app',
|
|
5310
5317
|
getRedirectLink = () => {},
|
|
5311
5318
|
isDatastake,
|
|
5312
|
-
selectedProject
|
|
5319
|
+
selectedProject,
|
|
5320
|
+
logoVariant = "white"
|
|
5313
5321
|
}) => {
|
|
5314
5322
|
const hoverDiv = o.useRef();
|
|
5315
5323
|
const hoverDivSecond = o.useRef();
|
|
@@ -5454,6 +5462,7 @@ const Sidenav = ({
|
|
|
5454
5462
|
hoverContentSecond: hoverContentSecond,
|
|
5455
5463
|
t: t,
|
|
5456
5464
|
isDatastake: isDatastake,
|
|
5465
|
+
logoVariant: logoVariant,
|
|
5457
5466
|
children: showMenu ? /*#__PURE__*/jsxRuntime.jsx(SidenavMenu, {
|
|
5458
5467
|
matchPath: matchPath,
|
|
5459
5468
|
module: module,
|
|
@@ -7085,7 +7094,7 @@ const getAjaxData = async ({
|
|
|
7085
7094
|
apiUrl,
|
|
7086
7095
|
app
|
|
7087
7096
|
}) => {
|
|
7088
|
-
const noQuerryApps = ["nashiriki", "straatos"];
|
|
7097
|
+
const noQuerryApps = ["nashiriki", "straatos", "wazi", "hatua"];
|
|
7089
7098
|
const data = await axios__default["default"].post(noQuerryApps.includes(app) ? "/query" : "/query/options", {
|
|
7090
7099
|
entity,
|
|
7091
7100
|
method,
|
|
@@ -8126,6 +8135,7 @@ const {
|
|
|
8126
8135
|
* @param {Function} props.renderChildren - Custom render function for children
|
|
8127
8136
|
* @param {Object} props.theme - Theme object with layout color customization
|
|
8128
8137
|
* @param {Object|null} props.moduleInterfaceConfig - Module interface config { title, icon }
|
|
8138
|
+
* @param {string} props.logoVariant - Logo variant for powered by section ("white" | "black")
|
|
8129
8139
|
*/
|
|
8130
8140
|
function AppLayout({
|
|
8131
8141
|
// User & Auth
|
|
@@ -8192,6 +8202,8 @@ function AppLayout({
|
|
|
8192
8202
|
renderChildren,
|
|
8193
8203
|
// Theme
|
|
8194
8204
|
theme = {},
|
|
8205
|
+
// Logo variant (white or black)
|
|
8206
|
+
logoVariant = "white",
|
|
8195
8207
|
// Children
|
|
8196
8208
|
children
|
|
8197
8209
|
}) {
|
|
@@ -8328,7 +8340,8 @@ function AppLayout({
|
|
|
8328
8340
|
isDatastake: isDatastake,
|
|
8329
8341
|
selectedProject: selectedProject,
|
|
8330
8342
|
userHelpers: userHelpers,
|
|
8331
|
-
isDev: isDev
|
|
8343
|
+
isDev: isDev,
|
|
8344
|
+
logoVariant: logoVariant
|
|
8332
8345
|
})]
|
|
8333
8346
|
}) : null, /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
8334
8347
|
style: {
|