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/components/index.js
CHANGED
|
@@ -169,12 +169,12 @@ const camelCaseToTitle = string => string && typeof string === 'string' ? string
|
|
|
169
169
|
const findOptions = (value, options) => {
|
|
170
170
|
if (value instanceof Array) {
|
|
171
171
|
return value.map(v => {
|
|
172
|
-
const op = options
|
|
172
|
+
const op = Array.isArray(options) ? options.find(o => o.value === v) : null;
|
|
173
173
|
return op ? op.label : v;
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
176
|
if (typeof value === "string") {
|
|
177
|
-
const op = options
|
|
177
|
+
const op = Array.isArray(options) ? options.find(o => o.value === value) : null;
|
|
178
178
|
return op ? op.label : value;
|
|
179
179
|
}
|
|
180
180
|
return value;
|
|
@@ -5418,7 +5418,7 @@ const getAjaxData = async ({
|
|
|
5418
5418
|
apiUrl,
|
|
5419
5419
|
app
|
|
5420
5420
|
}) => {
|
|
5421
|
-
const noQuerryApps = ["nashiriki", "straatos"];
|
|
5421
|
+
const noQuerryApps = ["nashiriki", "straatos", "wazi", "hatua"];
|
|
5422
5422
|
const data = await axios__default["default"].post(noQuerryApps.includes(app) ? "/query" : "/query/options", {
|
|
5423
5423
|
entity,
|
|
5424
5424
|
method,
|
|
@@ -9982,7 +9982,7 @@ const handleArrayChildren = ({
|
|
|
9982
9982
|
};
|
|
9983
9983
|
|
|
9984
9984
|
const noDafApps = ['tif', 'cukura']; //PACKAGE_CHANGE_LATER (remove sbg)
|
|
9985
|
-
const packageApps$2 = ["kota", "sbg", "nashiriki", "straatos"]; //PACKAGE_CHANGE_LATER (add sbg)
|
|
9985
|
+
const packageApps$2 = ["kota", "sbg", "nashiriki", "straatos", "wazi", "hatua"]; //PACKAGE_CHANGE_LATER (add sbg)
|
|
9986
9986
|
|
|
9987
9987
|
function useAjaxModal$3({
|
|
9988
9988
|
name = {},
|
|
@@ -10059,7 +10059,7 @@ function useAjaxModal$3({
|
|
|
10059
10059
|
};
|
|
10060
10060
|
}
|
|
10061
10061
|
|
|
10062
|
-
const packageApps$1 = ["kota", "sbg", "nashiriki", "straatos"]; //PACKAGE_CHANGE_LATER (add sbg)
|
|
10062
|
+
const packageApps$1 = ["kota", "sbg", "nashiriki", "straatos", "wazi", "hatua"]; //PACKAGE_CHANGE_LATER (add sbg)
|
|
10063
10063
|
|
|
10064
10064
|
function useAjaxModal$2({
|
|
10065
10065
|
name = {},
|
|
@@ -29774,7 +29774,7 @@ const GroupContentFormItem = ({
|
|
|
29774
29774
|
});
|
|
29775
29775
|
};
|
|
29776
29776
|
|
|
29777
|
-
const packageApps = ["kota", "sbg", "nashiriki", "straatos"]; //PACKAGE_CHANGE_LATER (add sbg)
|
|
29777
|
+
const packageApps = ["kota", "sbg", "nashiriki", "straatos", "wazi", "hatua"]; //PACKAGE_CHANGE_LATER (add sbg)
|
|
29778
29778
|
|
|
29779
29779
|
function useAjaxModal({
|
|
29780
29780
|
name = {},
|
|
@@ -45507,7 +45507,8 @@ function Sidenav(_ref) {
|
|
|
45507
45507
|
poweredByLogo,
|
|
45508
45508
|
hoverContentSecond,
|
|
45509
45509
|
t = s => s,
|
|
45510
|
-
isDatastake = false
|
|
45510
|
+
isDatastake = false,
|
|
45511
|
+
logoVariant = "white"
|
|
45511
45512
|
} = _ref;
|
|
45512
45513
|
return /*#__PURE__*/jsxRuntime.jsx(antd.ConfigProvider, {
|
|
45513
45514
|
theme: {
|
|
@@ -45545,9 +45546,13 @@ function Sidenav(_ref) {
|
|
|
45545
45546
|
}), isDatastake && !isCollapsed ? /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
45546
45547
|
className: "sidenav-footer",
|
|
45547
45548
|
children: [/*#__PURE__*/jsxRuntime.jsx("h6", {
|
|
45549
|
+
style: {
|
|
45550
|
+
color: logoVariant === "black" ? "#B5B5C3" : "white",
|
|
45551
|
+
margin: 0
|
|
45552
|
+
},
|
|
45548
45553
|
children: t("Powered By")
|
|
45549
45554
|
}), /*#__PURE__*/jsxRuntime.jsx("img", {
|
|
45550
|
-
src: poweredByLogo || "/assets/
|
|
45555
|
+
src: poweredByLogo || "/assets/favicons/datastake-".concat(logoVariant, ".svg"),
|
|
45551
45556
|
alt: "logo"
|
|
45552
45557
|
})]
|
|
45553
45558
|
}) : null]
|
|
@@ -45722,9 +45727,11 @@ Sidenav.propTypes = {
|
|
|
45722
45727
|
topHoverSecond: PropTypes__default["default"].any,
|
|
45723
45728
|
hoverItemSecond: PropTypes__default["default"].any,
|
|
45724
45729
|
widthHoverSecond: PropTypes__default["default"].any,
|
|
45730
|
+
poweredByLogo: PropTypes__default["default"].any,
|
|
45725
45731
|
hoverContentSecond: PropTypes__default["default"].any,
|
|
45726
45732
|
t: PropTypes__default["default"].any,
|
|
45727
|
-
isDatastake: PropTypes__default["default"].any
|
|
45733
|
+
isDatastake: PropTypes__default["default"].any,
|
|
45734
|
+
logoVariant: PropTypes__default["default"].oneOf(["white", "black"])
|
|
45728
45735
|
};
|
|
45729
45736
|
|
|
45730
45737
|
function Applications(_ref) {
|