@syncfusion/ej2-pdf-export 26.2.11 → 26.2.14

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 26.2.11
3
+ * version : 26.2.14
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-pdf-export@*",
3
- "_id": "@syncfusion/ej2-pdf-export@26.2.10",
3
+ "_id": "@syncfusion/ej2-pdf-export@26.2.11",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-FQR5I20PGDaovjZsZjNvgkRpmpwzi8m7SeJJ9iKeJkVKjapQx5n96HP1CwKMpMbgWFJlNmSr4QC+6L5qfDhLcw==",
5
+ "_integrity": "sha512-2SLRcuu9QJUeMl3P9fl6qN8N5epJQoEMWNrN67oPxGlhTeTmIBXFidePOhCjrLQLahxO7v0vNEVjFQM0BTXXog==",
6
6
  "_location": "/@syncfusion/ej2-pdf-export",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -27,8 +27,8 @@
27
27
  "/@syncfusion/ej2-pivotview",
28
28
  "/@syncfusion/ej2-treemap"
29
29
  ],
30
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-pdf-export/-/ej2-pdf-export-26.2.10.tgz",
31
- "_shasum": "a569dfbf7502ff25b1ce5c8867f1fa7690b56e4d",
30
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-pdf-export/-/ej2-pdf-export-26.2.11.tgz",
31
+ "_shasum": "a414545d364413377d3edc87567ed51d779a0f0d",
32
32
  "_spec": "@syncfusion/ej2-pdf-export@*",
33
33
  "_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
34
34
  "author": {
@@ -47,7 +47,7 @@
47
47
  "module": "./index.js",
48
48
  "name": "@syncfusion/ej2-pdf-export",
49
49
  "typings": "index.d.ts",
50
- "version": "26.2.11",
50
+ "version": "26.2.14",
51
51
  "sideEffects": false,
52
52
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
53
53
  }
@@ -763,7 +763,11 @@ var PdfGridLayouter = /** @class */ (function (_super) {
763
763
  var cell = row.cells.getCell(c);
764
764
  var cellWidth = 0;
765
765
  var totalwidth = 0;
766
+ var childGridCell = void 0;
766
767
  if (cell.value instanceof PdfGrid) {
768
+ if (!childGridCell) {
769
+ childGridCell = cell;
770
+ }
767
771
  for (var i_6 = 0; i_6 < cell.value.columns.count; i_6++) {
768
772
  totalwidth += cell.value.columns.getColumn(i_6).columnWidth;
769
773
  }
@@ -777,13 +781,16 @@ var PdfGridLayouter = /** @class */ (function (_super) {
777
781
  }
778
782
  else
779
783
  cellWidth = Math.max(totalwidth, row.grid.columns.getColumn(c).width);
780
- if (!this.Grid.style._isDefaultPadding) {
781
- var bottomPadding = this.Grid.style.cellPadding.top + this.Grid.style.cellPadding.bottom;
782
- bottomPadding += cell.style.borders.top.width + cell.style.borders.bottom.width;
783
- if ((height + bottomPadding) < pageGraphics.clientSize.height) {
784
- height += bottomPadding;
785
- this.currentBounds.y += bottomPadding;
786
- }
784
+ var bottomPadding = void 0;
785
+ if (childGridCell && childGridCell.style && childGridCell.style.cellPadding) {
786
+ bottomPadding = childGridCell.style.cellPadding.bottom;
787
+ }
788
+ else {
789
+ bottomPadding = this.Grid.style.cellPadding.bottom;
790
+ }
791
+ if (typeof bottomPadding === 'number' && (height + bottomPadding) < pageGraphics.clientSize.height) {
792
+ height += bottomPadding;
793
+ this.currentBounds.y += bottomPadding;
787
794
  }
788
795
  cell.drawCellBorders(pageGraphics, new RectangleF(location_2, new SizeF(cellWidth, height)));
789
796
  var rowWidth = this.Grid.rows.getRow(this.Grid.rows.count - 1).width;
@@ -143,10 +143,8 @@ var PdfPaddings = /** @class */ (function () {
143
143
  */
144
144
  this.hasBottomPad = false;
145
145
  if (typeof left === 'undefined') {
146
- //5.76 and 0 are taken from ms-word default table margins.
147
- this.leftPad = this.rightPad = 5.76;
148
146
  //0.5 is set for top and bottom by default.
149
- this.bottomPad = this.topPad = 0.5;
147
+ this.bottomPad = this.topPad = this.leftPad = this.rightPad = 0.5;
150
148
  }
151
149
  else {
152
150
  this.leftPad = left;
@@ -93,10 +93,6 @@ export declare class PdfGridStyle extends PdfGridStyleBase {
93
93
  * @private
94
94
  */
95
95
  private gridCellSpacing;
96
- /**
97
- * @private
98
- */
99
- _isDefaultPadding: boolean;
100
96
  /**
101
97
  * Initialize a new instance for `PdfGridStyle` class.
102
98
  * @private
@@ -105,10 +105,6 @@ var PdfGridStyle = /** @class */ (function (_super) {
105
105
  */
106
106
  function PdfGridStyle() {
107
107
  var _this = _super.call(this) || this;
108
- /**
109
- * @private
110
- */
111
- _this._isDefaultPadding = false;
112
108
  _this.gridBorderOverlapStyle = PdfBorderOverlapStyle.Overlap;
113
109
  _this.bAllowHorizontalOverflow = false;
114
110
  _this.gridHorizontalOverflowType = PdfHorizontalOverflowType.LastPage;
@@ -168,7 +164,6 @@ var PdfGridStyle = /** @class */ (function (_super) {
168
164
  get: function () {
169
165
  if (typeof this.gridCellPadding === 'undefined') {
170
166
  this.gridCellPadding = new PdfPaddings();
171
- this._isDefaultPadding = true;
172
167
  }
173
168
  return this.gridCellPadding;
174
169
  },
@@ -180,7 +175,6 @@ var PdfGridStyle = /** @class */ (function (_super) {
180
175
  else {
181
176
  this.gridCellPadding = value;
182
177
  }
183
- this._isDefaultPadding = false;
184
178
  },
185
179
  enumerable: true,
186
180
  configurable: true