datastake-daf 0.6.437 → 0.6.438

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.
@@ -14670,7 +14670,74 @@ function PdfView(_ref2) {
14670
14670
  style: {
14671
14671
  position: 'relative'
14672
14672
  },
14673
- children: [renderDashboard(), pages.map(page => /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {}))]
14673
+ children: [renderDashboard(), pages.map(page => /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
14674
+ children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
14675
+ style: {
14676
+ top: (page - 1) * PAGE_HEIGHT,
14677
+ width: '100%',
14678
+ height: HEADER_HEIGHT - 24,
14679
+ position: 'absolute',
14680
+ left: 0,
14681
+ zIndex: 1000000
14682
+ },
14683
+ className: "flex-row dashboard-header",
14684
+ children: [/*#__PURE__*/jsxRuntime.jsx("div", {
14685
+ className: "flex flex-column justify-center flex-1",
14686
+ children: /*#__PURE__*/jsxRuntime.jsx("h2", {
14687
+ children: title
14688
+ })
14689
+ }), /*#__PURE__*/jsxRuntime.jsx("div", {
14690
+ className: "flex flex-column justify-center",
14691
+ children: /*#__PURE__*/jsxRuntime.jsx("img", {
14692
+ src: imgSrc,
14693
+ alt: "logo"
14694
+ })
14695
+ })]
14696
+ }, "headers-".concat(page)), /*#__PURE__*/jsxRuntime.jsxs("div", {
14697
+ style: {
14698
+ top: page * PAGE_HEIGHT - FOOTER_HEIGHT,
14699
+ width: '100%',
14700
+ height: FOOTER_HEIGHT,
14701
+ position: 'absolute',
14702
+ left: 0,
14703
+ zIndex: 1000000
14704
+ },
14705
+ className: "dashboard-footer flex-row",
14706
+ children: [/*#__PURE__*/jsxRuntime.jsx("div", {
14707
+ className: "flex flex-column justify-center",
14708
+ children: /*#__PURE__*/jsxRuntime.jsx("h5", {
14709
+ children: moment__default["default"]().format('DD MMM YYYY')
14710
+ })
14711
+ }), /*#__PURE__*/jsxRuntime.jsx("div", {
14712
+ className: "flex flex-column justify-center",
14713
+ children: /*#__PURE__*/jsxRuntime.jsxs("div", {
14714
+ className: "flex gap-2",
14715
+ children: [/*#__PURE__*/jsxRuntime.jsxs("h5", {
14716
+ children: ["User ID:", ' ', /*#__PURE__*/jsxRuntime.jsx("strong", {
14717
+ children: userId
14718
+ })]
14719
+ }), /*#__PURE__*/jsxRuntime.jsxs("h5", {
14720
+ children: ["Account ID:", ' ', /*#__PURE__*/jsxRuntime.jsx("strong", {
14721
+ children: accountId
14722
+ })]
14723
+ }), /*#__PURE__*/jsxRuntime.jsxs("h5", {
14724
+ children: ["Document ID:", ' ', /*#__PURE__*/jsxRuntime.jsx("strong", {
14725
+ children: documentId
14726
+ })]
14727
+ }), /*#__PURE__*/jsxRuntime.jsxs("h5", {
14728
+ children: ["Download ID:", ' ', /*#__PURE__*/jsxRuntime.jsx("strong", {
14729
+ children: downloadId
14730
+ })]
14731
+ })]
14732
+ })
14733
+ }), /*#__PURE__*/jsxRuntime.jsx("div", {
14734
+ className: "flex flex-column justify-center",
14735
+ children: /*#__PURE__*/jsxRuntime.jsx("h5", {
14736
+ children: page
14737
+ })
14738
+ })]
14739
+ }, "footers-".concat(page))]
14740
+ }))]
14674
14741
  });
14675
14742
  }
14676
14743
  PdfView.propTypes = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.437",
3
+ "version": "0.6.438",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -142,7 +142,7 @@ export default function PdfView({
142
142
  {renderDashboard()}
143
143
  {pages.map((page) => (
144
144
  <>
145
- {/* <div
145
+ <div
146
146
  style={{ top: ((page - 1) * PAGE_HEIGHT), width: '100%', height: HEADER_HEIGHT - 24, position: 'absolute', left: 0, zIndex: 1000000 }}
147
147
  key={`headers-${page}`}
148
148
  className="flex-row dashboard-header"
@@ -189,7 +189,7 @@ export default function PdfView({
189
189
  <div className="flex flex-column justify-center">
190
190
  <h5>{page}</h5>
191
191
  </div>
192
- </div> */}
192
+ </div>
193
193
  </>
194
194
  ))}
195
195
  </div>