datastake-daf 0.6.792 → 0.6.793
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 +56 -30
- package/dist/pages/index.js +1401 -589
- package/package.json +1 -1
- package/src/@daf/core/components/ProgressBar/ProgressBarWithIcon/index.jsx +23 -0
- package/src/@daf/core/components/Table/NavigationAction/index.jsx +5 -3
- package/src/@daf/pages/Dashboards/SelfAssesment/components/AssociatedInformation/columns.js +248 -0
- package/src/@daf/pages/Dashboards/SelfAssesment/components/AssociatedInformation/index.jsx +68 -0
- package/src/@daf/pages/Dashboards/SelfAssesment/components/AssociatedInformation/style.js +29 -0
- package/src/@daf/pages/Dashboards/SelfAssesment/components/OrganisationInformation/columns.js +93 -0
- package/src/@daf/pages/Dashboards/SelfAssesment/components/OrganisationInformation/index.jsx +43 -0
- package/src/@daf/pages/Dashboards/SelfAssesment/components/ProductionSites/columns.js +127 -0
- package/src/@daf/pages/Dashboards/SelfAssesment/components/ProductionSites/index.jsx +52 -0
- package/src/@daf/pages/Dashboards/SelfAssesment/components/ProductionSites/style.js +26 -0
- package/src/@daf/pages/Dashboards/SelfAssesment/index.jsx +39 -0
- package/src/index.js +1 -0
- package/src/pages.js +1 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React, { useMemo } from 'react'
|
|
2
|
+
import ComponentWithFocus from '../../../../../core/components/Dashboard/ComponentWithFocus/index.jsx';
|
|
3
|
+
import StickyTable from '../../../../../core/components/Table/StickyTable/index.jsx';
|
|
4
|
+
import Widget from '../../../../../core/components/Dashboard/Widget/index.jsx';
|
|
5
|
+
import Style from './style.js';
|
|
6
|
+
import { getColumns } from './columns.js';
|
|
7
|
+
|
|
8
|
+
function ProductionSites({
|
|
9
|
+
t = () => {},
|
|
10
|
+
options = {},
|
|
11
|
+
user = {},
|
|
12
|
+
goTo = () => {},
|
|
13
|
+
getRedirectLink = () => {},
|
|
14
|
+
}) {
|
|
15
|
+
const data = [];
|
|
16
|
+
|
|
17
|
+
const Wrapper = useMemo(() => {
|
|
18
|
+
return data.length > 5 ? ComponentWithFocus : "div";
|
|
19
|
+
}, [data.length]);
|
|
20
|
+
|
|
21
|
+
const columns = useMemo(() => {
|
|
22
|
+
return getColumns({ t, options, user, goTo, getRedirectLink });
|
|
23
|
+
}, [t, options, user, goTo, getRedirectLink]);
|
|
24
|
+
|
|
25
|
+
return (
|
|
26
|
+
<Widget
|
|
27
|
+
title={t("Production Sites")}
|
|
28
|
+
className="with-border-header no-px-body"
|
|
29
|
+
>
|
|
30
|
+
<Wrapper>
|
|
31
|
+
<Style>
|
|
32
|
+
<div
|
|
33
|
+
className="daf-table-wrapper"
|
|
34
|
+
style={{
|
|
35
|
+
maxHeight: "526px",
|
|
36
|
+
overflowY: "auto",
|
|
37
|
+
}}
|
|
38
|
+
>
|
|
39
|
+
<StickyTable
|
|
40
|
+
columns={columns}
|
|
41
|
+
dataSource={data}
|
|
42
|
+
hideOnLoading={false}
|
|
43
|
+
doEmptyRows={true}
|
|
44
|
+
/>
|
|
45
|
+
</div>
|
|
46
|
+
</Style>
|
|
47
|
+
</Wrapper>
|
|
48
|
+
</Widget>
|
|
49
|
+
)
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export default ProductionSites
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
|
|
3
|
+
const Style = styled.div`
|
|
4
|
+
overflow: hidden;
|
|
5
|
+
|
|
6
|
+
.daf-table {
|
|
7
|
+
padding: 0px;
|
|
8
|
+
margin-top: 0px;
|
|
9
|
+
|
|
10
|
+
.ant-tag {
|
|
11
|
+
text-align: center;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.daf-select-filters .filters {
|
|
16
|
+
padding-top: 16px;
|
|
17
|
+
padding-left: 0;
|
|
18
|
+
padding-right: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.daf-table {
|
|
22
|
+
padding-top: 16px;
|
|
23
|
+
}
|
|
24
|
+
`;
|
|
25
|
+
|
|
26
|
+
export default Style;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import DashboardLayout from '../../../core/components/Dashboard/DashboardLayout/index.jsx';
|
|
3
|
+
import Header from '../../../core/components/Header/index.jsx';
|
|
4
|
+
import OrganisationInformation from './components/OrganisationInformation/index.jsx';
|
|
5
|
+
import ProductionSites from './components/ProductionSites/index.jsx';
|
|
6
|
+
import AssociatedInformation from './components/AssociatedInformation/index.jsx';
|
|
7
|
+
|
|
8
|
+
function SelfAssesment({
|
|
9
|
+
t = () => {},
|
|
10
|
+
breadcrumbs = [],
|
|
11
|
+
user = {},
|
|
12
|
+
goTo = () => {},
|
|
13
|
+
getRedirectLink = () => {},
|
|
14
|
+
theme = {},
|
|
15
|
+
options = {},
|
|
16
|
+
}) {
|
|
17
|
+
return (
|
|
18
|
+
<DashboardLayout
|
|
19
|
+
header={
|
|
20
|
+
<Header
|
|
21
|
+
title={t("Self Assesment")}
|
|
22
|
+
breadcrumbs={breadcrumbs}
|
|
23
|
+
/>
|
|
24
|
+
}
|
|
25
|
+
>
|
|
26
|
+
<section>
|
|
27
|
+
<OrganisationInformation t={t} user={user} goTo={goTo} getRedirectLink={getRedirectLink} theme={theme} />
|
|
28
|
+
</section>
|
|
29
|
+
<section>
|
|
30
|
+
<ProductionSites t={t} options={options} user={user} goTo={goTo} getRedirectLink={getRedirectLink} />
|
|
31
|
+
</section>
|
|
32
|
+
<section>
|
|
33
|
+
<AssociatedInformation t={t} user={user} goTo={goTo} getRedirectLink={getRedirectLink} />
|
|
34
|
+
</section>
|
|
35
|
+
</DashboardLayout>
|
|
36
|
+
)
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export default SelfAssesment
|
package/src/index.js
CHANGED
|
@@ -97,6 +97,7 @@ export { default as ProgressBar } from "./@daf/core/components/ProgressBar/index
|
|
|
97
97
|
export { default as MultiBarProgress } from "./@daf/core/components/ProgressBar/MultiBarProgress/index.jsx";
|
|
98
98
|
export { default as MultiColorProgressBar } from "./@daf/core/components/ProgressBar/MultiColorProgressBar/index.jsx";
|
|
99
99
|
export { default as ProgressBarSideIcon } from "./@daf/core/components/ProgressBar/components/SideIcon/index.jsx";
|
|
100
|
+
export { default as ProgressBarWithIcon } from "./@daf/core/components/ProgressBar/ProgressBarWithIcon/index.jsx";
|
|
100
101
|
export { default as ProgressTabs } from "./@daf/core/components/ProgressTabs/index.jsx";
|
|
101
102
|
|
|
102
103
|
// Data Store
|
package/src/pages.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Dashboards
|
|
2
2
|
export { default as SupplyChainDashboard } from './@daf/pages/Dashboards/SupplyChain/index.jsx';
|
|
3
3
|
export { default as UserDashboard } from './@daf/pages/Dashboards/UserDashboard/index.jsx';
|
|
4
|
+
export { default as SelfAssesment } from './@daf/pages/Dashboards/SelfAssesment/index.jsx';
|
|
4
5
|
export { default as OperatorsTable } from './@daf/pages/Stakeholders/Operators/index.jsx';
|
|
5
6
|
export { default as LocationsTable } from './@daf/pages/Locations/index.jsx';
|
|
6
7
|
export { default as StakeholdersTable } from './@daf/pages/Stakeholders/index.jsx';
|