datastake-daf 0.6.149 → 0.6.151
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 +112 -335
- package/package.json +1 -1
- package/src/@daf/core/components/Dashboard/PdfView/index.jsx +59 -102
- package/src/@daf/core/components/Dashboard/Widget/ExpandableMapWidget/ExpandableMapWidget.stories.js +1693 -0
- package/src/@daf/core/components/Dashboard/Widget/ExpandableMapWidget/hook.js +44 -0
- package/src/@daf/core/components/Dashboard/Widget/ExpandableMapWidget/index.js +55 -0
- package/src/@daf/core/components/Dashboard/Widget/index.jsx +2 -1
- package/.vscode/settings.json +0 -13
- package/public/assets/images/SVG/403.svg +0 -20
- package/public/assets/images/SVG/404.svg +0 -11
- package/public/assets/images/SVG/CADD.svg +0 -27
- package/public/assets/images/SVG/InDevelopment.svg +0 -24
- package/public/assets/images/SVG/PME.svg +0 -21
- package/public/assets/images/SVG/comment-alt.svg +0 -3
- package/public/assets/images/SVG/comment.svg +0 -3
- package/public/assets/images/SVG/coordinator.svg +0 -3
- package/public/assets/images/SVG/implementer.svg +0 -3
- package/public/assets/images/SVG/logo-horizontal.svg +0 -1
- package/public/assets/images/SVG/partner-building.svg +0 -3
- package/public/assets/images/SVG/partner.svg +0 -5
- package/public/assets/images/SVG/unavailable-info.svg +0 -16
- package/public/assets/images/SVG/vault.svg +0 -6
- package/public/assets/images/app-navigation/mmt-logo.svg +0 -32
- package/public/assets/images/app-navigation/tazama-logo.svg +0 -31
- package/public/assets/images/app-navigation/tif-logo.svg +0 -33
- package/public/assets/images/applications/arm-prev.png +0 -0
- package/public/assets/images/applications/asm-icon.svg +0 -29
- package/public/assets/images/applications/kota-logo.svg +0 -4
- package/public/assets/images/applications/mmt-logo-2.svg +0 -5
- package/public/assets/images/applications/mmt-logo.svg +0 -6
- package/public/assets/images/applications/mmt-prev.png +0 -0
- package/public/assets/images/applications/sbgi_logo.png +0 -0
- package/public/assets/images/applications/tazama-home-img.jpeg +0 -0
- package/public/assets/images/applications/tazama-logo.svg +0 -9
- package/public/assets/images/applications/tif-app.png +0 -0
- package/public/assets/images/applications/tif-logo.svg +0 -9
- package/public/assets/images/auth-bg-2.svg +0 -296
- package/public/assets/images/auth-bg.svg +0 -303
- package/public/assets/images/countries/fr.png +0 -0
- package/public/assets/images/countries/gb.png +0 -0
- package/public/assets/images/countries/sp.png +0 -0
- package/public/assets/images/dashboard/amp-dashboard/empty.png +0 -0
- package/public/assets/images/dashboard/map-icons/amp.svg +0 -28
- package/public/assets/images/dashboard/map-icons/amp_focused.svg +0 -28
- package/public/assets/images/dashboard/map-icons/amp_location_pin.svg +0 -4
- package/public/assets/images/dashboard/map-icons/datachain-icon.svg +0 -21
- package/public/assets/images/dashboard/map-icons/ellipse.svg +0 -3
- package/public/assets/images/dashboard/map-icons/lir-icon.svg +0 -3
- package/public/assets/images/dashboard/map-icons/major-incident-events-icon.svg +0 -3
- package/public/assets/images/dashboard/map-icons/minesites-location-icon.svg +0 -21
- package/public/assets/images/dashboard/map-icons/minor-incident-events-icon.svg +0 -3
- package/public/assets/images/dashboard/map-icons/moderate-incident-events-icon.svg +0 -3
- package/public/assets/images/dashboard/map-icons/other-events-icon.svg +0 -3
- package/public/assets/images/dashboard/map-icons/other-location-icon.svg +0 -21
- package/public/assets/images/dashboard/map-icons/risk-mitigation-events-icon.svg +0 -3
- package/public/assets/images/dashboard/map-icons/sca_location_pin.svg +0 -4
- package/public/assets/images/dashboard/map-icons/villages-location-icon.svg +0 -21
- package/public/assets/images/dashboard/mine-site.svg +0 -7
- package/public/assets/images/dashboard/programs/key-data.svg +0 -12
- package/public/assets/images/dashboard/programs/key-projects.svg +0 -12
- package/public/assets/images/dashboard/scl-icons/close-icon.svg +0 -4
- package/public/assets/images/dashboard/scl-icons/dot.svg +0 -3
- package/public/assets/images/dashboard/scl-icons/empty-gallery.svg +0 -5
- package/public/assets/images/dashboard/scl-icons/location-icon.svg +0 -14
- package/public/assets/images/dashboard/scl-icons/town-dot.svg +0 -3
- package/public/assets/images/dashboard/scl-icons/town-icon.svg +0 -4
- package/public/assets/images/dashboard/scl-icons/village-icon.svg +0 -6
- package/public/assets/images/dashboard/tif-products/cobalt-bg.png +0 -0
- package/public/assets/images/dashboard/tif-products/cobalt-logo.png +0 -0
- package/public/assets/images/dashboard/tif-products/gold-bg.png +0 -0
- package/public/assets/images/dashboard/tif-products/gold-logo.png +0 -0
- package/public/assets/images/datastake-logo.svg +0 -20
- package/public/assets/images/datastake-white.svg +0 -20
- package/public/assets/images/empty-box.svg +0 -5
- package/public/assets/images/find-information/business-entity.svg +0 -4
- package/public/assets/images/find-information/civil-society.svg +0 -4
- package/public/assets/images/find-information/government.svg +0 -4
- package/public/assets/images/find-information/graphs.png +0 -0
- package/public/assets/images/find-information/individual.svg +0 -11
- package/public/assets/images/find-information/non-stated-arm-group.svg +0 -4
- package/public/assets/images/find-information/other-organisation.svg +0 -4
- package/public/assets/images/find-information/state-security.svg +0 -4
- package/public/assets/images/info-channels/investor.svg +0 -4
- package/public/assets/images/info-channels/mine.svg +0 -4
- package/public/assets/images/info-channels/source.png +0 -0
- package/public/assets/images/kota-bg.jpg +0 -0
- package/public/assets/images/kota-logo-small.svg +0 -2
- package/public/assets/images/kota-logo.svg +0 -2
- package/public/assets/images/logo-new-white-icon.svg +0 -5
- package/public/assets/images/logo-new-white.svg +0 -8
- package/public/assets/images/logo-white.svg +0 -67
- package/public/assets/images/map/assessed.png +0 -0
- package/public/assets/images/map/connected.png +0 -0
- package/public/assets/images/map/disabled.png +0 -0
- package/public/assets/images/map/identified.png +0 -0
- package/public/assets/images/map/position.png +0 -0
- package/public/assets/images/map/treasure-map.png +0 -0
- package/public/assets/images/project-share-info/due-dilligence.svg +0 -3
- package/public/assets/images/project-share-info/event.svg +0 -3
- package/public/assets/images/project-share-info/location.svg +0 -3
- package/public/assets/images/project-share-info/network.svg +0 -3
- package/public/assets/images/project-share-info/stakeholder.svg +0 -10
- package/public/assets/images/tif/antelope-mine-people.png +0 -0
- package/public/assets/images/tif/gesagu-people.png +0 -0
- package/public/assets/images/tif/ironstep-people.png +0 -0
- package/public/assets/images/tif-bg.png +0 -0
- package/public/assets/images/tif-logo-small.svg +0 -3
- package/public/assets/images/tif-logo.svg +0 -9
- package/public/assets/images/verified-user-tif.png +0 -0
- package/public/assets/images/verified-user.svg +0 -100
- package/public/favicons/android-chrome-192x192.png +0 -0
- package/public/favicons/android-chrome-512x512.png +0 -0
- package/public/favicons/apple-touch-icon.png +0 -0
- package/public/favicons/favicon-16x16.png +0 -0
- package/public/favicons/favicon-32x32.png +0 -0
- package/public/favicons/favicon.ico +0 -0
- package/public/favicons/tazama/android-chrome-192x192.png +0 -0
- package/public/favicons/tazama/android-chrome-512x512.png +0 -0
- package/public/favicons/tazama/apple-touch-icon.png +0 -0
- package/public/favicons/tazama/favicon-16x16.png +0 -0
- package/public/favicons/tazama/favicon-32x32.png +0 -0
- package/public/favicons/tazama/favicon.ico +0 -0
package/dist/components/index.js
CHANGED
|
@@ -3065,7 +3065,7 @@ const config$3 = {
|
|
|
3065
3065
|
Integration: config$4
|
|
3066
3066
|
};
|
|
3067
3067
|
|
|
3068
|
-
const _excluded$
|
|
3068
|
+
const _excluded$r = ["width", "height", "size", "name", "fill"];
|
|
3069
3069
|
const CustomIcon = _ref => {
|
|
3070
3070
|
let {
|
|
3071
3071
|
width = 14,
|
|
@@ -3074,7 +3074,7 @@ const CustomIcon = _ref => {
|
|
|
3074
3074
|
name = "",
|
|
3075
3075
|
fill = "none"
|
|
3076
3076
|
} = _ref,
|
|
3077
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3077
|
+
props = _objectWithoutProperties(_ref, _excluded$r);
|
|
3078
3078
|
const conf = config$3[name];
|
|
3079
3079
|
if (conf) {
|
|
3080
3080
|
return /*#__PURE__*/jsxRuntime.jsx("svg", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
@@ -9276,7 +9276,7 @@ createCommonjsModule(function (module, exports) {
|
|
|
9276
9276
|
!function(e,n){module.exports=n();}(commonjsGlobal,(function(){return {name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var n=["th","st","nd","rd"],t=e%100;return "["+e+(n[(t-20)%10]||n[t]||n[0])+"]"}}}));
|
|
9277
9277
|
});
|
|
9278
9278
|
|
|
9279
|
-
const _excluded$
|
|
9279
|
+
const _excluded$q = ["view", "module", "scope", "form", "meta"];
|
|
9280
9280
|
dayjs__default["default"].extend(customParseFormat);
|
|
9281
9281
|
dayjs__default["default"].extend(utc);
|
|
9282
9282
|
dayjs__default["default"].extend(utc);
|
|
@@ -9650,7 +9650,7 @@ const filterCreateData = data => {
|
|
|
9650
9650
|
form,
|
|
9651
9651
|
meta
|
|
9652
9652
|
} = data,
|
|
9653
|
-
rest = _objectWithoutProperties(data, _excluded$
|
|
9653
|
+
rest = _objectWithoutProperties(data, _excluded$q);
|
|
9654
9654
|
const _meta = isObjectEmpty(meta) ? undefined : meta;
|
|
9655
9655
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
9656
9656
|
meta: _meta
|
|
@@ -10035,7 +10035,7 @@ SelectFilters.propTypes = {
|
|
|
10035
10035
|
apiUrl: PropTypes__default["default"].string
|
|
10036
10036
|
};
|
|
10037
10037
|
|
|
10038
|
-
const _excluded$
|
|
10038
|
+
const _excluded$p = ["columns", "data", "defaultFilters", "style", "pagination", "loading", "onChange", "onFilterChange", "selectOptions", "filtersConfig", "rowSelection", "setShowFilters", "rowKey", "showFilters", "hideOnLoading", "sourcesKey", "className", "projects", "t", "selectedProject", "sourceId", "projectSources", "language", "scrollX", "apiUrl", "app", "doEmptyRows"];
|
|
10039
10039
|
function DAFTable(_ref) {
|
|
10040
10040
|
let {
|
|
10041
10041
|
columns = [],
|
|
@@ -10066,7 +10066,7 @@ function DAFTable(_ref) {
|
|
|
10066
10066
|
app,
|
|
10067
10067
|
doEmptyRows
|
|
10068
10068
|
} = _ref,
|
|
10069
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10069
|
+
rest = _objectWithoutProperties(_ref, _excluded$p);
|
|
10070
10070
|
const [source, setSource] = React.useState([]);
|
|
10071
10071
|
const projectData = (projects || []).find(p => p.id === selectedProject);
|
|
10072
10072
|
const [filtersInit, setFiltersInit] = React.useState(!loading);
|
|
@@ -10788,7 +10788,7 @@ Pagination.propTypes = {
|
|
|
10788
10788
|
isMobile: PropTypes__default["default"].bool
|
|
10789
10789
|
};
|
|
10790
10790
|
|
|
10791
|
-
const _excluded$
|
|
10791
|
+
const _excluded$o = ["size", "maxHeight", "dataSource", "columns", "pagination"];
|
|
10792
10792
|
function StickyTable(_ref) {
|
|
10793
10793
|
let {
|
|
10794
10794
|
size = null,
|
|
@@ -10797,7 +10797,7 @@ function StickyTable(_ref) {
|
|
|
10797
10797
|
columns = {},
|
|
10798
10798
|
pagination = false
|
|
10799
10799
|
} = _ref,
|
|
10800
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
10800
|
+
props = _objectWithoutProperties(_ref, _excluded$o);
|
|
10801
10801
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
10802
10802
|
className: "daf-sticky-table",
|
|
10803
10803
|
children: /*#__PURE__*/jsxRuntime.jsx(antd.Table, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
@@ -11262,7 +11262,7 @@ const BTN_SIZE = {
|
|
|
11262
11262
|
LG: 'large'
|
|
11263
11263
|
};
|
|
11264
11264
|
|
|
11265
|
-
const _excluded$
|
|
11265
|
+
const _excluded$n = ["content", "size", "type", "icon", "onClick", "disabled", "loading", "title", "style", "className"];
|
|
11266
11266
|
function DafButton(_ref) {
|
|
11267
11267
|
let {
|
|
11268
11268
|
content = '',
|
|
@@ -11276,7 +11276,7 @@ function DafButton(_ref) {
|
|
|
11276
11276
|
style = {},
|
|
11277
11277
|
className = ''
|
|
11278
11278
|
} = _ref,
|
|
11279
|
-
restProps = _objectWithoutProperties(_ref, _excluded$
|
|
11279
|
+
restProps = _objectWithoutProperties(_ref, _excluded$n);
|
|
11280
11280
|
return /*#__PURE__*/jsxRuntime.jsx(antd.Button, _objectSpread2(_objectSpread2({
|
|
11281
11281
|
icon: icon,
|
|
11282
11282
|
type: type,
|
|
@@ -11510,12 +11510,12 @@ const Style$H = dt.div`
|
|
|
11510
11510
|
}
|
|
11511
11511
|
`;
|
|
11512
11512
|
|
|
11513
|
-
const _excluded$
|
|
11513
|
+
const _excluded$m = ["children"];
|
|
11514
11514
|
const BorderedButton = _ref => {
|
|
11515
11515
|
let {
|
|
11516
11516
|
children
|
|
11517
11517
|
} = _ref,
|
|
11518
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
11518
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
11519
11519
|
return /*#__PURE__*/jsxRuntime.jsx(Style$H, {
|
|
11520
11520
|
className: "d-btn-cont",
|
|
11521
11521
|
children: /*#__PURE__*/jsxRuntime.jsx(antd.Button, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
@@ -11524,7 +11524,7 @@ const BorderedButton = _ref => {
|
|
|
11524
11524
|
});
|
|
11525
11525
|
};
|
|
11526
11526
|
|
|
11527
|
-
var _templateObject$
|
|
11527
|
+
var _templateObject$c;
|
|
11528
11528
|
const variantConfig = {
|
|
11529
11529
|
default: {
|
|
11530
11530
|
className: "default-badge",
|
|
@@ -11642,7 +11642,7 @@ function Badge(_ref) {
|
|
|
11642
11642
|
})
|
|
11643
11643
|
});
|
|
11644
11644
|
}
|
|
11645
|
-
const Style$G = dt.div(_templateObject$
|
|
11645
|
+
const Style$G = dt.div(_templateObject$c || (_templateObject$c = _taggedTemplateLiteral(["\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\tgap: 4px;\n\tpadding: 4px;\n\tmax-width: 100%;\n\n\toverflow: hidden;\n\twhite-space: nowrap;\n\ttext-overflow: ellipsis;\n\n\t> svg {\n\t\tflex-shrink: 0;\n\t}\n\n\t> span {\n\t\tall: unset;\n\t\tmargin-left: 4px;\n\t\tfont-weight: 600;\n\t\tfont-size: 12px;\n\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\twhite-space: nowrap;\n\t\tdisplay: block;\n\t\tmax-width: 100%;\n\t}\n"])));
|
|
11646
11646
|
Badge.propTypes = {
|
|
11647
11647
|
children: PropTypes__default["default"].node,
|
|
11648
11648
|
className: PropTypes__default["default"].string,
|
|
@@ -11655,12 +11655,12 @@ Badge.propTypes = {
|
|
|
11655
11655
|
props: PropTypes__default["default"].object
|
|
11656
11656
|
};
|
|
11657
11657
|
|
|
11658
|
-
const _excluded$
|
|
11658
|
+
const _excluded$l = ["icon"];
|
|
11659
11659
|
function GetIcon(_ref) {
|
|
11660
11660
|
let {
|
|
11661
11661
|
icon
|
|
11662
11662
|
} = _ref,
|
|
11663
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
11663
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
11664
11664
|
let Icon = Icons__namespace.CloseOutlined;
|
|
11665
11665
|
if (Icons__namespace[icon]) {
|
|
11666
11666
|
Icon = Icons__namespace[icon];
|
|
@@ -11982,7 +11982,7 @@ GoToSelect.propTypes = {
|
|
|
11982
11982
|
t: PropTypes__default["default"].func
|
|
11983
11983
|
};
|
|
11984
11984
|
|
|
11985
|
-
const _excluded$
|
|
11985
|
+
const _excluded$k = ["options", "defaultSelected", "onChange", "textWhenMultiple", "withCount", "oneAlwaysSelected", "canUnselectLast", "isAvatarGroup", "maxAvatarCount", "dropDownWidth", "topAvatarValue", "isSingle", "selectionType"];
|
|
11986
11986
|
const {
|
|
11987
11987
|
useToken: useToken$j
|
|
11988
11988
|
} = antd.theme;
|
|
@@ -12075,7 +12075,7 @@ function Multiselect(_ref) {
|
|
|
12075
12075
|
isSingle = false,
|
|
12076
12076
|
selectionType = SELECTION_TYPES.DEFAULT
|
|
12077
12077
|
} = _ref,
|
|
12078
|
-
restProps = _objectWithoutProperties(_ref, _excluded$
|
|
12078
|
+
restProps = _objectWithoutProperties(_ref, _excluded$k);
|
|
12079
12079
|
const {
|
|
12080
12080
|
token
|
|
12081
12081
|
} = useToken$j();
|
|
@@ -12742,7 +12742,7 @@ DAFHeader.propTypes = {
|
|
|
12742
12742
|
downloadDisabled: PropTypes__default["default"].any
|
|
12743
12743
|
};
|
|
12744
12744
|
|
|
12745
|
-
const _excluded$
|
|
12745
|
+
const _excluded$j = ["tabs", "onChange", "value", "className"];
|
|
12746
12746
|
function TabsHeader(_ref) {
|
|
12747
12747
|
let {
|
|
12748
12748
|
tabs = [],
|
|
@@ -12750,7 +12750,7 @@ function TabsHeader(_ref) {
|
|
|
12750
12750
|
value = '',
|
|
12751
12751
|
className = 'mt-2'
|
|
12752
12752
|
} = _ref,
|
|
12753
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12753
|
+
rest = _objectWithoutProperties(_ref, _excluded$j);
|
|
12754
12754
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
12755
12755
|
className: formatClassname(['daf-tabs-header pl-6 pr-6', className]),
|
|
12756
12756
|
children: /*#__PURE__*/jsxRuntime.jsx(antd.Tabs, _objectSpread2({
|
|
@@ -12847,14 +12847,16 @@ DrawerHeader.propTypes = {
|
|
|
12847
12847
|
tabsConfig: PropTypes__default["default"].any
|
|
12848
12848
|
};
|
|
12849
12849
|
|
|
12850
|
-
const
|
|
12851
|
-
|
|
12852
|
-
|
|
12853
|
-
|
|
12854
|
-
|
|
12855
|
-
|
|
12856
|
-
|
|
12857
|
-
|
|
12850
|
+
const _excluded$i = ["label", "onClick", "icon", "type", "tooltip", "disabled", "loading", "style", "className"];
|
|
12851
|
+
const useFooter = _ref => {
|
|
12852
|
+
let {
|
|
12853
|
+
leftContent,
|
|
12854
|
+
centerContent,
|
|
12855
|
+
rightContent,
|
|
12856
|
+
actionButtons,
|
|
12857
|
+
app,
|
|
12858
|
+
isViewMode
|
|
12859
|
+
} = _ref;
|
|
12858
12860
|
const renderFooterContent = React.useMemo(() => {
|
|
12859
12861
|
const FooterContent = () => /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
12860
12862
|
className: "daf-footer-content",
|
|
@@ -12870,18 +12872,18 @@ const useFooter = ({
|
|
|
12870
12872
|
className: "daf-footer-actions",
|
|
12871
12873
|
children: actionButtons.map((button, index) => {
|
|
12872
12874
|
const {
|
|
12873
|
-
|
|
12874
|
-
|
|
12875
|
-
|
|
12876
|
-
|
|
12877
|
-
|
|
12878
|
-
|
|
12879
|
-
|
|
12880
|
-
|
|
12881
|
-
|
|
12882
|
-
|
|
12883
|
-
|
|
12884
|
-
return /*#__PURE__*/jsxRuntime.jsx(DafButton, {
|
|
12875
|
+
label,
|
|
12876
|
+
onClick,
|
|
12877
|
+
icon,
|
|
12878
|
+
type = BTN_TYPES.PRIMARY,
|
|
12879
|
+
tooltip,
|
|
12880
|
+
disabled = false,
|
|
12881
|
+
loading = false,
|
|
12882
|
+
style = {},
|
|
12883
|
+
className = ""
|
|
12884
|
+
} = button,
|
|
12885
|
+
restProps = _objectWithoutProperties(button, _excluded$i);
|
|
12886
|
+
return /*#__PURE__*/jsxRuntime.jsx(DafButton, _objectSpread2({
|
|
12885
12887
|
content: label,
|
|
12886
12888
|
type: type,
|
|
12887
12889
|
size: BTN_SIZE.MD,
|
|
@@ -12893,9 +12895,8 @@ const useFooter = ({
|
|
|
12893
12895
|
loading: loading,
|
|
12894
12896
|
title: tooltip,
|
|
12895
12897
|
style: style,
|
|
12896
|
-
className: className
|
|
12897
|
-
|
|
12898
|
-
}, index);
|
|
12898
|
+
className: className
|
|
12899
|
+
}, restProps), index);
|
|
12899
12900
|
})
|
|
12900
12901
|
})]
|
|
12901
12902
|
})]
|
|
@@ -12908,180 +12909,8 @@ const useFooter = ({
|
|
|
12908
12909
|
};
|
|
12909
12910
|
};
|
|
12910
12911
|
|
|
12911
|
-
|
|
12912
|
-
|
|
12913
|
-
background: #ffffff;
|
|
12914
|
-
border-top: 1px solid #e8e8e8;
|
|
12915
|
-
border-left: none;
|
|
12916
|
-
border-right: none;
|
|
12917
|
-
border-bottom: none;
|
|
12918
|
-
border-radius: 0;
|
|
12919
|
-
padding: 24px;
|
|
12920
|
-
margin: 0;
|
|
12921
|
-
box-shadow: none;
|
|
12922
|
-
z-index: 100;
|
|
12923
|
-
position: relative;
|
|
12924
|
-
min-height: 80px;
|
|
12925
|
-
|
|
12926
|
-
&.daf-footer-fixed {
|
|
12927
|
-
position: fixed;
|
|
12928
|
-
bottom: 0;
|
|
12929
|
-
left: 0;
|
|
12930
|
-
right: 0;
|
|
12931
|
-
z-index: 1000;
|
|
12932
|
-
}
|
|
12933
|
-
|
|
12934
|
-
.daf-footer-content {
|
|
12935
|
-
display: flex;
|
|
12936
|
-
align-items: center;
|
|
12937
|
-
justify-content: space-between;
|
|
12938
|
-
width: 100%;
|
|
12939
|
-
min-height: 32px;
|
|
12940
|
-
|
|
12941
|
-
.daf-footer-left {
|
|
12942
|
-
flex: 1;
|
|
12943
|
-
display: flex;
|
|
12944
|
-
align-items: center;
|
|
12945
|
-
justify-content: flex-start;
|
|
12946
|
-
}
|
|
12947
|
-
|
|
12948
|
-
.daf-footer-center {
|
|
12949
|
-
flex: 1;
|
|
12950
|
-
display: flex;
|
|
12951
|
-
align-items: center;
|
|
12952
|
-
justify-content: center;
|
|
12953
|
-
}
|
|
12954
|
-
|
|
12955
|
-
.daf-footer-right {
|
|
12956
|
-
flex: 1;
|
|
12957
|
-
display: flex;
|
|
12958
|
-
align-items: center;
|
|
12959
|
-
justify-content: flex-end;
|
|
12960
|
-
gap: 12px;
|
|
12961
|
-
|
|
12962
|
-
.daf-footer-actions {
|
|
12963
|
-
.ant-btn {
|
|
12964
|
-
height: 40px;
|
|
12965
|
-
padding: 0 24px;
|
|
12966
|
-
border-radius: 6px;
|
|
12967
|
-
font-weight: 500;
|
|
12968
|
-
font-size: 14px;
|
|
12969
|
-
transition: all 0.3s ease;
|
|
12970
|
-
border: 1px solid transparent;
|
|
12971
|
-
|
|
12972
|
-
&.ant-btn-primary {
|
|
12973
|
-
background-color: var(--color-primary-70);
|
|
12974
|
-
color: #ffffff;
|
|
12975
|
-
border-color: var(--color-primary-70);
|
|
12976
|
-
|
|
12977
|
-
&:hover {
|
|
12978
|
-
background-color: var(--color-primary-60);
|
|
12979
|
-
border-color: var(--color-primary-60);
|
|
12980
|
-
}
|
|
12981
|
-
|
|
12982
|
-
&:active {
|
|
12983
|
-
background-color: var(--color-primary-80);
|
|
12984
|
-
border-color: var(--color-primary-80);
|
|
12985
|
-
}
|
|
12986
|
-
|
|
12987
|
-
&:disabled {
|
|
12988
|
-
background-color: #f5f5f5;
|
|
12989
|
-
color: #bfbfbf;
|
|
12990
|
-
border-color: #d9d9d9;
|
|
12991
|
-
}
|
|
12992
|
-
}
|
|
12993
|
-
|
|
12994
|
-
&.ant-btn-default {
|
|
12995
|
-
background: #ffffff;
|
|
12996
|
-
color: #666666;
|
|
12997
|
-
border-color: #d9d9d9;
|
|
12998
|
-
|
|
12999
|
-
&:hover {
|
|
13000
|
-
border-color: var(--color-primary-70);
|
|
13001
|
-
color: var(--color-primary-70);
|
|
13002
|
-
}
|
|
13003
|
-
|
|
13004
|
-
&:active {
|
|
13005
|
-
border-color: var(--color-primary-80);
|
|
13006
|
-
color: var(--color-primary-80);
|
|
13007
|
-
}
|
|
13008
|
-
|
|
13009
|
-
&:disabled {
|
|
13010
|
-
background-color: #f5f5f5;
|
|
13011
|
-
color: #bfbfbf;
|
|
13012
|
-
border-color: #d9d9d9;
|
|
13013
|
-
}
|
|
13014
|
-
}
|
|
13015
|
-
|
|
13016
|
-
&.ant-btn-ghost {
|
|
13017
|
-
background: transparent;
|
|
13018
|
-
color: #666666;
|
|
13019
|
-
border-color: #d9d9d9;
|
|
13020
|
-
|
|
13021
|
-
&:hover {
|
|
13022
|
-
border-color: var(--color-primary-70);
|
|
13023
|
-
color: var(--color-primary-70);
|
|
13024
|
-
background: rgba(0, 0, 0, 0.02);
|
|
13025
|
-
}
|
|
13026
|
-
|
|
13027
|
-
&:active {
|
|
13028
|
-
border-color: var(--color-primary-80);
|
|
13029
|
-
color: var(--color-primary-80);
|
|
13030
|
-
}
|
|
13031
|
-
|
|
13032
|
-
&:disabled {
|
|
13033
|
-
color: #bfbfbf;
|
|
13034
|
-
border-color: #d9d9d9;
|
|
13035
|
-
}
|
|
13036
|
-
}
|
|
13037
|
-
}
|
|
13038
|
-
}
|
|
13039
|
-
}
|
|
13040
|
-
}
|
|
13041
|
-
}
|
|
13042
|
-
|
|
13043
|
-
/* Responsive design */
|
|
13044
|
-
@media (max-width: 768px) {
|
|
13045
|
-
.daf-footer {
|
|
13046
|
-
margin: 0;
|
|
13047
|
-
padding: 16px;
|
|
13048
|
-
|
|
13049
|
-
.daf-footer-content {
|
|
13050
|
-
flex-direction: column;
|
|
13051
|
-
gap: 16px;
|
|
13052
|
-
align-items: stretch;
|
|
13053
|
-
|
|
13054
|
-
.daf-footer-left,
|
|
13055
|
-
.daf-footer-center,
|
|
13056
|
-
.daf-footer-right {
|
|
13057
|
-
flex: none;
|
|
13058
|
-
justify-content: center;
|
|
13059
|
-
}
|
|
13060
|
-
|
|
13061
|
-
.daf-footer-right {
|
|
13062
|
-
.daf-footer-actions {
|
|
13063
|
-
justify-content: center;
|
|
13064
|
-
}
|
|
13065
|
-
}
|
|
13066
|
-
}
|
|
13067
|
-
}
|
|
13068
|
-
}
|
|
13069
|
-
|
|
13070
|
-
/* App-specific styling */
|
|
13071
|
-
&.sbg-app {
|
|
13072
|
-
.daf-footer {
|
|
13073
|
-
background: #f8f9fa;
|
|
13074
|
-
border-color: #e9ecef;
|
|
13075
|
-
}
|
|
13076
|
-
}
|
|
13077
|
-
|
|
13078
|
-
&.nashiriki-app {
|
|
13079
|
-
.daf-footer {
|
|
13080
|
-
background: #fff;
|
|
13081
|
-
border-color: #d9d9d9;
|
|
13082
|
-
}
|
|
13083
|
-
}
|
|
13084
|
-
`;
|
|
12912
|
+
var _templateObject$b;
|
|
12913
|
+
const FooterContainer = dt.div(_templateObject$b || (_templateObject$b = _taggedTemplateLiteral(["\n\t.daf-footer {\n\t\tbackground: #ffffff;\n\t\tborder-top: 1px solid #e8e8e8;\n\t\tborder-left: none;\n\t\tborder-right: none;\n\t\tborder-bottom: none;\n\t\tborder-radius: 0;\n\t\tpadding: 24px;\n\t\tmargin: 0;\n\t\tbox-shadow: none;\n\t\tz-index: 100;\n\t\tposition: relative;\n\t\tmin-height: 80px;\n\n\t\t&.daf-footer-fixed {\n\t\t\tposition: fixed;\n\t\t\tbottom: 0;\n\t\t\tleft: 0;\n\t\t\tright: 0;\n\t\t\tz-index: 1000;\n\t\t}\n\n\t\t.daf-footer-content {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: space-between;\n\t\t\twidth: 100%;\n\t\t\tmin-height: 32px;\n\n\t\t\t.daf-footer-left {\n\t\t\t\tflex: 1;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: flex-start;\n\t\t\t}\n\n\t\t\t.daf-footer-center {\n\t\t\t\tflex: 1;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t}\n\n\t\t\t.daf-footer-right {\n\t\t\t\tflex: 1;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: flex-end;\n\t\t\t\tgap: 12px;\n\n\t\t\t\t.daf-footer-actions {\n\t\t\t\t\t.ant-btn {\n\t\t\t\t\t\theight: 40px;\n\t\t\t\t\t\tpadding: 0 24px;\n\t\t\t\t\t\tborder-radius: 6px;\n\t\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\t\tfont-size: 14px;\n\t\t\t\t\t\ttransition: all 0.3s ease;\n\t\t\t\t\t\tborder: 1px solid transparent;\n\n\t\t\t\t\t\t&.ant-btn-primary {\n\t\t\t\t\t\t\tbackground-color: var(--color-primary-70);\n\t\t\t\t\t\t\tcolor: #ffffff;\n\t\t\t\t\t\t\tborder-color: var(--color-primary-70);\n\n\t\t\t\t\t\t\t&:hover {\n\t\t\t\t\t\t\t\tbackground-color: var(--color-primary-60);\n\t\t\t\t\t\t\t\tborder-color: var(--color-primary-60);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t&:active {\n\t\t\t\t\t\t\t\tbackground-color: var(--color-primary-80);\n\t\t\t\t\t\t\t\tborder-color: var(--color-primary-80);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t&:disabled {\n\t\t\t\t\t\t\t\tbackground-color: #f5f5f5;\n\t\t\t\t\t\t\t\tcolor: #bfbfbf;\n\t\t\t\t\t\t\t\tborder-color: #d9d9d9;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t&.ant-btn-default {\n\t\t\t\t\t\t\tbackground: #ffffff;\n\t\t\t\t\t\t\tcolor: #666666;\n\t\t\t\t\t\t\tborder-color: #d9d9d9;\n\n\t\t\t\t\t\t\t&:hover {\n\t\t\t\t\t\t\t\tborder-color: var(--color-primary-70);\n\t\t\t\t\t\t\t\tcolor: var(--color-primary-70);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t&:active {\n\t\t\t\t\t\t\t\tborder-color: var(--color-primary-80);\n\t\t\t\t\t\t\t\tcolor: var(--color-primary-80);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t&:disabled {\n\t\t\t\t\t\t\t\tbackground-color: #f5f5f5;\n\t\t\t\t\t\t\t\tcolor: #bfbfbf;\n\t\t\t\t\t\t\t\tborder-color: #d9d9d9;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t&.ant-btn-ghost {\n\t\t\t\t\t\t\tbackground: transparent;\n\t\t\t\t\t\t\tcolor: #666666;\n\t\t\t\t\t\t\tborder-color: #d9d9d9;\n\n\t\t\t\t\t\t\t&:hover {\n\t\t\t\t\t\t\t\tborder-color: var(--color-primary-70);\n\t\t\t\t\t\t\t\tcolor: var(--color-primary-70);\n\t\t\t\t\t\t\t\tbackground: rgba(0, 0, 0, 0.02);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t&:active {\n\t\t\t\t\t\t\t\tborder-color: var(--color-primary-80);\n\t\t\t\t\t\t\t\tcolor: var(--color-primary-80);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t&:disabled {\n\t\t\t\t\t\t\t\tcolor: #bfbfbf;\n\t\t\t\t\t\t\t\tborder-color: #d9d9d9;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Responsive design */\n\t@media (max-width: 768px) {\n\t\t.daf-footer {\n\t\t\tmargin: 0;\n\t\t\tpadding: 16px;\n\n\t\t\t.daf-footer-content {\n\t\t\t\tflex-direction: column;\n\t\t\t\tgap: 16px;\n\t\t\t\talign-items: stretch;\n\n\t\t\t\t.daf-footer-left,\n\t\t\t\t.daf-footer-center,\n\t\t\t\t.daf-footer-right {\n\t\t\t\t\tflex: none;\n\t\t\t\t\tjustify-content: center;\n\t\t\t\t}\n\n\t\t\t\t.daf-footer-right {\n\t\t\t\t\t.daf-footer-actions {\n\t\t\t\t\t\tjustify-content: center;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/* App-specific styling */\n\t&.sbg-app {\n\t\t.daf-footer {\n\t\t\tbackground: #f8f9fa;\n\t\t\tborder-color: #e9ecef;\n\t\t}\n\t}\n\n\t&.nashiriki-app {\n\t\t.daf-footer {\n\t\t\tbackground: #fff;\n\t\t\tborder-color: #d9d9d9;\n\t\t}\n\t}\n"])));
|
|
13085
12914
|
|
|
13086
12915
|
function DAFFooter(_ref) {
|
|
13087
12916
|
let {
|
|
@@ -13126,10 +12955,15 @@ DAFFooter.propTypes = {
|
|
|
13126
12955
|
isViewMode: PropTypes__default["default"].bool
|
|
13127
12956
|
};
|
|
13128
12957
|
|
|
13129
|
-
const PAGE_HEIGHT = 1587;
|
|
13130
|
-
// margin-top: 20, bottom: 20;
|
|
12958
|
+
const PAGE_HEIGHT = 1587; // Total height of a virtual PDF page
|
|
13131
12959
|
const FOOTER_HEIGHT = 70;
|
|
13132
12960
|
const HEADER_HEIGHT = 100;
|
|
12961
|
+
const ROW_SPACING = 24; // Spacing between content rows
|
|
12962
|
+
const CONTENT_BOTTOM_PADDING = 30; // Extra padding at the very bottom of the last section of the document
|
|
12963
|
+
|
|
12964
|
+
// This is the actual height available for the *flowing content* after Puppeteer
|
|
12965
|
+
// applies its margins for the header and footer.
|
|
12966
|
+
const USABLE_FLOW_HEIGHT_PER_PAGE = PAGE_HEIGHT - HEADER_HEIGHT - FOOTER_HEIGHT;
|
|
13133
12967
|
const Row = _ref => {
|
|
13134
12968
|
let {
|
|
13135
12969
|
widgets,
|
|
@@ -13144,8 +12978,14 @@ const Row = _ref => {
|
|
|
13144
12978
|
setHeight(entry.contentRect.height);
|
|
13145
12979
|
}
|
|
13146
12980
|
});
|
|
13147
|
-
|
|
13148
|
-
|
|
12981
|
+
if (ref.current) {
|
|
12982
|
+
observer.observe(ref.current);
|
|
12983
|
+
}
|
|
12984
|
+
return () => {
|
|
12985
|
+
if (ref.current) {
|
|
12986
|
+
observer.disconnect();
|
|
12987
|
+
}
|
|
12988
|
+
};
|
|
13149
12989
|
}, []);
|
|
13150
12990
|
React.useEffect(() => {
|
|
13151
12991
|
if (height) {
|
|
@@ -13154,7 +12994,7 @@ const Row = _ref => {
|
|
|
13154
12994
|
ref
|
|
13155
12995
|
});
|
|
13156
12996
|
}
|
|
13157
|
-
}, [height]);
|
|
12997
|
+
}, [height, i, onChangeHeight]);
|
|
13158
12998
|
return /*#__PURE__*/jsxRuntime.jsx("section", {
|
|
13159
12999
|
ref: ref,
|
|
13160
13000
|
style: widgets.style,
|
|
@@ -13165,6 +13005,8 @@ function PdfView(_ref2) {
|
|
|
13165
13005
|
let {
|
|
13166
13006
|
config = [],
|
|
13167
13007
|
customClassName,
|
|
13008
|
+
// No longer needed to directly render title/imgSrc/etc within PdfView as Puppeteer handles it
|
|
13009
|
+
// but kept in props for completeness if other parts of the app use them.
|
|
13168
13010
|
title = 'Title',
|
|
13169
13011
|
imgSrc = '',
|
|
13170
13012
|
userId = 'IDD-0000000',
|
|
@@ -13173,54 +13015,57 @@ function PdfView(_ref2) {
|
|
|
13173
13015
|
downloadId = 'DWL-00000123'
|
|
13174
13016
|
} = _ref2;
|
|
13175
13017
|
const [sectionsConfig, setSectionsConfig] = React.useState({});
|
|
13176
|
-
const [
|
|
13018
|
+
const [pagesCount, setPagesCount] = React.useState(1); // Track total pages for Puppeteer footer
|
|
13019
|
+
|
|
13177
13020
|
const doSizing = React.useCallback(() => {
|
|
13178
|
-
|
|
13179
|
-
|
|
13180
|
-
let _page = 1;
|
|
13021
|
+
// Ensure keys are processed in order
|
|
13022
|
+
const keys = Object.keys(sectionsConfig).sort((a, b) => parseInt(a) - parseInt(b));
|
|
13181
13023
|
if (keys.length === config.length) {
|
|
13182
|
-
let
|
|
13024
|
+
let currentPageContentHeight = 0;
|
|
13025
|
+
let currentPage = 1;
|
|
13026
|
+
|
|
13027
|
+
// Reset all page-break styles before recalculating
|
|
13183
13028
|
keys.forEach(k => {
|
|
13184
13029
|
const {
|
|
13185
13030
|
ref
|
|
13186
13031
|
} = sectionsConfig[k];
|
|
13187
|
-
ref.current
|
|
13188
|
-
|
|
13032
|
+
if (ref.current) {
|
|
13033
|
+
ref.current.style.pageBreakBefore = 'auto'; // Reset to default
|
|
13034
|
+
ref.current.style.marginTop = '0px'; // Clear any previous dynamic margins
|
|
13035
|
+
ref.current.style.paddingBottom = '0px'; // Clear any previous dynamic paddings
|
|
13036
|
+
}
|
|
13189
13037
|
});
|
|
13190
13038
|
keys.forEach((k, i) => {
|
|
13191
13039
|
const {
|
|
13192
13040
|
height,
|
|
13193
13041
|
ref
|
|
13194
13042
|
} = sectionsConfig[k];
|
|
13195
|
-
if (
|
|
13196
|
-
|
|
13197
|
-
|
|
13198
|
-
|
|
13199
|
-
|
|
13200
|
-
|
|
13201
|
-
ref.current.style.paddingBottom = '30px';
|
|
13202
|
-
}
|
|
13203
|
-
if (newHeight > PAGE_HEIGHT - 30 - FOOTER_HEIGHT - HEADER_HEIGHT) {
|
|
13204
|
-
const dif = Math.abs(PAGE_HEIGHT - incrHeight);
|
|
13205
|
-
ref.current.style.marginTop = '30px';
|
|
13206
|
-
_page += 1;
|
|
13207
|
-
_pages.push(_page);
|
|
13208
|
-
if (sectionsConfig[keys[i - 1]]) {
|
|
13209
|
-
const {
|
|
13210
|
-
ref: topRef
|
|
13211
|
-
} = sectionsConfig[keys[i - 1]];
|
|
13212
|
-
topRef.current.style.marginBottom = "".concat(dif + HEADER_HEIGHT - 24, "px");
|
|
13213
|
-
incrHeight = height + 24 + HEADER_HEIGHT;
|
|
13214
|
-
// console.log('margin', dif);
|
|
13215
|
-
}
|
|
13043
|
+
if (!ref.current) return;
|
|
13044
|
+
let spaceNeededForThisSection = height;
|
|
13045
|
+
|
|
13046
|
+
// Add ROW_SPACING *after* each section, except the very last one.
|
|
13047
|
+
if (i < keys.length - 1) {
|
|
13048
|
+
spaceNeededForThisSection += ROW_SPACING;
|
|
13216
13049
|
} else {
|
|
13217
|
-
|
|
13050
|
+
// Add CONTENT_BOTTOM_PADDING after the very last section of the document.
|
|
13051
|
+
spaceNeededForThisSection += CONTENT_BOTTOM_PADDING;
|
|
13052
|
+
}
|
|
13053
|
+
|
|
13054
|
+
// If placing this section on the current page would exceed the usable content area,
|
|
13055
|
+
// mark it to start on a new page.
|
|
13056
|
+
if (currentPageContentHeight + spaceNeededForThisSection > USABLE_FLOW_HEIGHT_PER_PAGE) {
|
|
13057
|
+
ref.current.style.pageBreakBefore = 'always';
|
|
13058
|
+
currentPage++;
|
|
13059
|
+
// Reset current page content height to just what this new section takes.
|
|
13060
|
+
currentPageContentHeight = spaceNeededForThisSection;
|
|
13061
|
+
} else {
|
|
13062
|
+
// This section fits on the current page.
|
|
13063
|
+
currentPageContentHeight += spaceNeededForThisSection;
|
|
13218
13064
|
}
|
|
13219
|
-
// console.groupEnd();
|
|
13220
13065
|
});
|
|
13221
|
-
|
|
13066
|
+
setPagesCount(currentPage);
|
|
13222
13067
|
}
|
|
13223
|
-
}, [sectionsConfig]);
|
|
13068
|
+
}, [sectionsConfig, config.length]);
|
|
13224
13069
|
React.useEffect(() => {
|
|
13225
13070
|
doSizing();
|
|
13226
13071
|
}, [doSizing]);
|
|
@@ -13246,89 +13091,16 @@ function PdfView(_ref2) {
|
|
|
13246
13091
|
})
|
|
13247
13092
|
});
|
|
13248
13093
|
}, [config, onChangeHeight]);
|
|
13249
|
-
|
|
13250
|
-
// <div className="daf-analysis">
|
|
13251
|
-
// <Header title={t('Dashboard Title')} />
|
|
13252
|
-
|
|
13253
|
-
// <div className="content">
|
|
13254
|
-
// <div className="view-content">
|
|
13255
|
-
// <div className="daf-analysis-layout">
|
|
13256
|
-
// <div className='sections-cont w-pt'>
|
|
13257
|
-
// <section>
|
|
13258
|
-
|
|
13259
|
-
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
13094
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
13260
13095
|
className: contClassName,
|
|
13261
13096
|
style: {
|
|
13262
13097
|
position: 'relative'
|
|
13263
13098
|
},
|
|
13264
|
-
children:
|
|
13265
|
-
|
|
13266
|
-
|
|
13267
|
-
|
|
13268
|
-
|
|
13269
|
-
height: HEADER_HEIGHT - 24,
|
|
13270
|
-
position: 'absolute',
|
|
13271
|
-
left: 0,
|
|
13272
|
-
zIndex: 1000000
|
|
13273
|
-
},
|
|
13274
|
-
className: "flex-row dashboard-header",
|
|
13275
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
13276
|
-
className: "flex flex-column justify-center flex-1",
|
|
13277
|
-
children: /*#__PURE__*/jsxRuntime.jsx("h2", {
|
|
13278
|
-
children: title
|
|
13279
|
-
})
|
|
13280
|
-
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
13281
|
-
className: "flex flex-column justify-center",
|
|
13282
|
-
children: /*#__PURE__*/jsxRuntime.jsx("img", {
|
|
13283
|
-
src: imgSrc,
|
|
13284
|
-
alt: "logo"
|
|
13285
|
-
})
|
|
13286
|
-
})]
|
|
13287
|
-
}, "headers-".concat(page)), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
13288
|
-
style: {
|
|
13289
|
-
top: page * PAGE_HEIGHT - FOOTER_HEIGHT,
|
|
13290
|
-
width: '100%',
|
|
13291
|
-
height: FOOTER_HEIGHT,
|
|
13292
|
-
position: 'absolute',
|
|
13293
|
-
left: 0,
|
|
13294
|
-
zIndex: 1000000
|
|
13295
|
-
},
|
|
13296
|
-
className: "dashboard-footer flex-row",
|
|
13297
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
13298
|
-
className: "flex flex-column justify-center",
|
|
13299
|
-
children: /*#__PURE__*/jsxRuntime.jsx("h5", {
|
|
13300
|
-
children: moment__default["default"]().format('DD MMM YYYY')
|
|
13301
|
-
})
|
|
13302
|
-
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
13303
|
-
className: "flex flex-column justify-center",
|
|
13304
|
-
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
13305
|
-
className: "flex gap-2",
|
|
13306
|
-
children: [/*#__PURE__*/jsxRuntime.jsxs("h5", {
|
|
13307
|
-
children: ["User ID:", ' ', /*#__PURE__*/jsxRuntime.jsx("strong", {
|
|
13308
|
-
children: userId
|
|
13309
|
-
})]
|
|
13310
|
-
}), /*#__PURE__*/jsxRuntime.jsxs("h5", {
|
|
13311
|
-
children: ["Account ID:", ' ', /*#__PURE__*/jsxRuntime.jsx("strong", {
|
|
13312
|
-
children: accountId
|
|
13313
|
-
})]
|
|
13314
|
-
}), /*#__PURE__*/jsxRuntime.jsxs("h5", {
|
|
13315
|
-
children: ["Document ID:", ' ', /*#__PURE__*/jsxRuntime.jsx("strong", {
|
|
13316
|
-
children: documentId
|
|
13317
|
-
})]
|
|
13318
|
-
}), /*#__PURE__*/jsxRuntime.jsxs("h5", {
|
|
13319
|
-
children: ["Download ID:", ' ', /*#__PURE__*/jsxRuntime.jsx("strong", {
|
|
13320
|
-
children: downloadId
|
|
13321
|
-
})]
|
|
13322
|
-
})]
|
|
13323
|
-
})
|
|
13324
|
-
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
13325
|
-
className: "flex flex-column justify-center",
|
|
13326
|
-
children: /*#__PURE__*/jsxRuntime.jsx("h5", {
|
|
13327
|
-
children: page
|
|
13328
|
-
})
|
|
13329
|
-
})]
|
|
13330
|
-
}, "footers-".concat(page))]
|
|
13331
|
-
}))]
|
|
13099
|
+
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
13100
|
+
id: "pdf-content-root",
|
|
13101
|
+
"data-page-count": pagesCount,
|
|
13102
|
+
children: renderDashboard()
|
|
13103
|
+
})
|
|
13332
13104
|
});
|
|
13333
13105
|
}
|
|
13334
13106
|
PdfView.propTypes = {
|
|
@@ -13338,7 +13110,8 @@ PdfView.propTypes = {
|
|
|
13338
13110
|
imgSrc: PropTypes__default["default"].string,
|
|
13339
13111
|
userId: PropTypes__default["default"].string,
|
|
13340
13112
|
accountId: PropTypes__default["default"].string,
|
|
13341
|
-
documentId: PropTypes__default["default"].string
|
|
13113
|
+
documentId: PropTypes__default["default"].string,
|
|
13114
|
+
downloadId: PropTypes__default["default"].string
|
|
13342
13115
|
};
|
|
13343
13116
|
|
|
13344
13117
|
const ajaxSelectFieldData = async (value, config, getApiBaseUrl = () => {}, getAppHeader = () => {}, app, formValues = {}) => {
|
|
@@ -15440,7 +15213,11 @@ function Widget(_ref) {
|
|
|
15440
15213
|
className: "flex justify-content-end",
|
|
15441
15214
|
children: /*#__PURE__*/jsxRuntime.jsx(antd.Button, {
|
|
15442
15215
|
size: "small",
|
|
15443
|
-
className: "
|
|
15216
|
+
className: "squareIconButton no-min-width",
|
|
15217
|
+
style: {
|
|
15218
|
+
height: '25px',
|
|
15219
|
+
width: '25px'
|
|
15220
|
+
},
|
|
15444
15221
|
onClick: handleCollapseToggle,
|
|
15445
15222
|
icon: isCollapsed ? /*#__PURE__*/jsxRuntime.jsx(Icons.RightOutlined, {
|
|
15446
15223
|
style: {
|