datastake-daf 0.6.727 → 0.6.729
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/build/favicon.ico +0 -0
- package/build/logo192.png +0 -0
- package/build/logo512.png +0 -0
- package/build/manifest.json +25 -0
- package/build/robots.txt +3 -0
- package/dist/components/index.js +31 -30
- package/dist/hooks/index.js +4872 -192
- package/dist/layouts/index.js +3 -6
- package/dist/pages/index.js +15809 -252
- package/dist/services/index.js +213 -0
- package/dist/utils/index.js +23 -0
- package/package.json +1 -1
- package/src/@daf/core/components/Sidenav/index.jsx +1 -7
- package/src/@daf/core/components/Table/index.jsx +28 -22
- package/src/@daf/hooks/useFilters.js +1 -1
- package/src/@daf/hooks/useGetQueryParams.js +26 -0
- package/src/@daf/pages/dashboards/AllInformation/Stakeholders/columns.js +129 -0
- package/src/@daf/pages/dashboards/AllInformation/Stakeholders/config.js +31 -0
- package/src/@daf/pages/dashboards/AllInformation/Stakeholders/create.jsx +103 -0
- package/src/@daf/pages/dashboards/AllInformation/Stakeholders/index.jsx +140 -0
- package/src/@daf/pages/dashboards/UserDashboard/components/DataCompilation/index.jsx +0 -1
- package/src/@daf/pages/pages/TablePageWithTabs/index.jsx +128 -0
- package/src/@daf/services/LinkedSubjects.js +131 -0
- package/src/@daf/utils/object.js +12 -0
- package/src/hooks.js +2 -1
- package/src/pages.js +6 -1
- package/src/services.js +2 -1
- package/src/utils.js +1 -1
- package/public/assets/favicons/datastake-black.svg +0 -13
- package/public/assets/favicons/datastake-blue.svg +0 -13
- package/public/assets/favicons/datastake-small.svg +0 -4
- package/public/assets/favicons/datastake-smallBlue.svg +0 -4
- package/public/assets/favicons/datastake-white.svg +0 -13
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"short_name": "React App",
|
|
3
|
+
"name": "Create React App Sample",
|
|
4
|
+
"icons": [
|
|
5
|
+
{
|
|
6
|
+
"src": "favicon.ico",
|
|
7
|
+
"sizes": "64x64 32x32 24x24 16x16",
|
|
8
|
+
"type": "image/x-icon"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"src": "logo192.png",
|
|
12
|
+
"type": "image/png",
|
|
13
|
+
"sizes": "192x192"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"src": "logo512.png",
|
|
17
|
+
"type": "image/png",
|
|
18
|
+
"sizes": "512x512"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"start_url": ".",
|
|
22
|
+
"display": "standalone",
|
|
23
|
+
"theme_color": "#000000",
|
|
24
|
+
"background_color": "#ffffff"
|
|
25
|
+
}
|
package/build/robots.txt
ADDED
package/dist/components/index.js
CHANGED
|
@@ -5732,7 +5732,7 @@ function DAFTable(_ref) {
|
|
|
5732
5732
|
if (!filtersInit && !loading) {
|
|
5733
5733
|
setFiltersInit(true);
|
|
5734
5734
|
}
|
|
5735
|
-
}, [loading]);
|
|
5735
|
+
}, [loading, filtersInit]);
|
|
5736
5736
|
const sources = React.useMemo(() => {
|
|
5737
5737
|
if (projectData) {
|
|
5738
5738
|
if (sourceId === 'overview') {
|
|
@@ -5747,31 +5747,36 @@ function DAFTable(_ref) {
|
|
|
5747
5747
|
}
|
|
5748
5748
|
return undefined;
|
|
5749
5749
|
}, [projectData, sourceId, projectSources]);
|
|
5750
|
-
const _selectOptions =
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
|
|
5759
|
-
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5750
|
+
const _selectOptions = React.useMemo(() => {
|
|
5751
|
+
return typeof sourcesKey === 'string' && sources ? _objectSpread2(_objectSpread2({}, selectOptions), {}, {
|
|
5752
|
+
[sourcesKey]: sources
|
|
5753
|
+
}) : selectOptions;
|
|
5754
|
+
}, [sourcesKey, sources, selectOptions]);
|
|
5755
|
+
const _filtersConfig = React.useMemo(() => {
|
|
5756
|
+
return typeof sourcesKey === 'string' && sources ? _objectSpread2(_objectSpread2({}, filtersConfig), {}, {
|
|
5757
|
+
[sourcesKey]: {
|
|
5758
|
+
type: "select",
|
|
5759
|
+
label: t("Source"),
|
|
5760
|
+
placeholder: t => "".concat(t("Filter By"), " ").concat(t('Source')),
|
|
5761
|
+
labelStyle: {
|
|
5762
|
+
flex: 1
|
|
5763
|
+
},
|
|
5764
|
+
style: {
|
|
5765
|
+
flex: 1
|
|
5766
|
+
},
|
|
5767
|
+
getLabel: opt => opt.label,
|
|
5768
|
+
getValue: opt => opt.value
|
|
5769
|
+
}
|
|
5770
|
+
}) : filtersConfig;
|
|
5771
|
+
}, [sourcesKey, sources, filtersConfig, t]);
|
|
5768
5772
|
React.useEffect(() => {
|
|
5769
5773
|
if (data) {
|
|
5770
5774
|
setSource(data);
|
|
5771
5775
|
}
|
|
5772
|
-
}, [data]);
|
|
5776
|
+
}, [data.length]);
|
|
5777
|
+
const paginationPageSize = pagination === null || pagination === void 0 ? void 0 : pagination.pageSize;
|
|
5773
5778
|
const dataSource = React.useMemo(() => {
|
|
5774
|
-
const pageSize =
|
|
5779
|
+
const pageSize = paginationPageSize ? paginationPageSize : source.length > 10 ? source.length : 10;
|
|
5775
5780
|
if (doEmptyRows && pageSize) {
|
|
5776
5781
|
const emptyDataSource = [];
|
|
5777
5782
|
for (let i = 0; i < pageSize; i++) {
|
|
@@ -5784,7 +5789,7 @@ function DAFTable(_ref) {
|
|
|
5784
5789
|
return emptyDataSource.map((empty, i) => source[i] || empty);
|
|
5785
5790
|
}
|
|
5786
5791
|
return source;
|
|
5787
|
-
}, [source,
|
|
5792
|
+
}, [source, paginationPageSize, doEmptyRows]);
|
|
5788
5793
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
5789
5794
|
children: [showFilters && filtersConfig && onFilterChange && filtersInit && /*#__PURE__*/jsxRuntime.jsx(SelectFilters, {
|
|
5790
5795
|
app: app,
|
|
@@ -43777,8 +43782,7 @@ const useFilters = ({
|
|
|
43777
43782
|
goTo(qs !== '' ? `${`/app/${module}/${view}`}?${qs}` : doPagination ? `${`/app/${module}/${view}`}?page=${page}` : `${`/app/${module}/${view}`}`);
|
|
43778
43783
|
}
|
|
43779
43784
|
}
|
|
43780
|
-
}, [module, view, location.pathname]);
|
|
43781
|
-
|
|
43785
|
+
}, [module, view, location.pathname, goTo, getRedirectLink, doPagination]);
|
|
43782
43786
|
const defaultFilters = React.useMemo(() => {
|
|
43783
43787
|
const def = {};
|
|
43784
43788
|
Object.keys(selectFiltersConfig).forEach(key => {
|
|
@@ -45473,8 +45477,7 @@ function Sidenav(_ref) {
|
|
|
45473
45477
|
poweredByLogo,
|
|
45474
45478
|
hoverContentSecond,
|
|
45475
45479
|
t = s => s,
|
|
45476
|
-
isDatastake = false
|
|
45477
|
-
logoVariant = "white"
|
|
45480
|
+
isDatastake = false
|
|
45478
45481
|
} = _ref;
|
|
45479
45482
|
return /*#__PURE__*/jsxRuntime.jsx(antd.ConfigProvider, {
|
|
45480
45483
|
theme: {
|
|
@@ -45514,7 +45517,7 @@ function Sidenav(_ref) {
|
|
|
45514
45517
|
children: [/*#__PURE__*/jsxRuntime.jsx("h6", {
|
|
45515
45518
|
children: t("Powered By")
|
|
45516
45519
|
}), /*#__PURE__*/jsxRuntime.jsx("img", {
|
|
45517
|
-
src: poweredByLogo || "/assets/
|
|
45520
|
+
src: poweredByLogo || "/assets/images/datastake-white.svg",
|
|
45518
45521
|
alt: "logo"
|
|
45519
45522
|
})]
|
|
45520
45523
|
}) : null]
|
|
@@ -45689,11 +45692,9 @@ Sidenav.propTypes = {
|
|
|
45689
45692
|
topHoverSecond: PropTypes__default["default"].any,
|
|
45690
45693
|
hoverItemSecond: PropTypes__default["default"].any,
|
|
45691
45694
|
widthHoverSecond: PropTypes__default["default"].any,
|
|
45692
|
-
poweredByLogo: PropTypes__default["default"].any,
|
|
45693
45695
|
hoverContentSecond: PropTypes__default["default"].any,
|
|
45694
45696
|
t: PropTypes__default["default"].any,
|
|
45695
|
-
isDatastake: PropTypes__default["default"].any
|
|
45696
|
-
logoVariant: PropTypes__default["default"].oneOf(["white", "black"])
|
|
45697
|
+
isDatastake: PropTypes__default["default"].any
|
|
45697
45698
|
};
|
|
45698
45699
|
|
|
45699
45700
|
function Applications(_ref) {
|