aspose.cells.node 24.11.0 → 24.12.0

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.
Files changed (3) hide show
  1. package/aspose.cells.js +36 -9
  2. package/package.json +5 -6
  3. package/types.d.ts +575 -16
package/aspose.cells.js CHANGED
@@ -5,15 +5,7 @@
5
5
  switch (process.platform) {
6
6
  case "linux":
7
7
  if (process.arch === "x64") {
8
- let regex = /^(\d+)\./;
9
- let match = process.versions.openssl.match(regex);
10
- let major = match ? match[1] : null;
11
- if (major == '1') {
12
- module.exports = require("aspose.cells.node.linux.legacy.x64");
13
- }
14
- else {
15
- module.exports = require("aspose.cells.node.linux.x64");
16
- }
8
+ module.exports = require("aspose.cells.node.linux.x64");
17
9
  }
18
10
  break;
19
11
  case "win32":
@@ -57,6 +49,14 @@ exports.AutoFillType = {
57
49
  Values : 4,
58
50
  };
59
51
 
52
+ exports.FilterCategory = {
53
+ None : 0,
54
+ Label : 1,
55
+ NumberValue : 2,
56
+ Date : 3,
57
+ Top10 : 4,
58
+ };
59
+
60
60
  exports.AutoFitMergedCellsType = {
61
61
  None : 0,
62
62
  FirstLine : 1,
@@ -1441,36 +1441,56 @@ exports.PivotFilterType = {
1441
1441
  DateBetween : 15,
1442
1442
  DateEqual : 16,
1443
1443
  DateNewerThan : 17,
1444
+ DateAfter : 17,
1444
1445
  DateNewerThanOrEqual : 18,
1446
+ DateAfterOrEqual : 18,
1445
1447
  DateNotBetween : 19,
1446
1448
  DateNotEqual : 20,
1447
1449
  DateOlderThan : 21,
1450
+ DateBefore : 21,
1448
1451
  DateOlderThanOrEqual : 22,
1452
+ DateBeforeOrEqual : 22,
1449
1453
  LastMonth : 23,
1450
1454
  LastQuarter : 24,
1451
1455
  LastWeek : 25,
1452
1456
  LastYear : 26,
1453
1457
  M1 : 27,
1458
+ January : 27,
1454
1459
  M2 : 28,
1460
+ February : 28,
1455
1461
  M3 : 29,
1462
+ March : 29,
1456
1463
  M4 : 30,
1464
+ April : 30,
1457
1465
  M5 : 31,
1466
+ May : 31,
1458
1467
  M6 : 32,
1468
+ June : 32,
1459
1469
  M7 : 33,
1470
+ July : 33,
1460
1471
  M8 : 34,
1472
+ August : 34,
1461
1473
  M9 : 35,
1474
+ September : 35,
1462
1475
  M10 : 36,
1476
+ October : 36,
1463
1477
  M11 : 37,
1478
+ November : 37,
1464
1479
  M12 : 38,
1480
+ December : 38,
1465
1481
  NextMonth : 39,
1466
1482
  NextQuarter : 40,
1467
1483
  NextWeek : 41,
1468
1484
  NextYear : 42,
1469
1485
  Percent : 43,
1470
1486
  Q1 : 44,
1487
+ Quarter1 : 44,
1471
1488
  Q2 : 45,
1489
+ Quarter2 : 45,
1472
1490
  Q3 : 46,
1491
+ Quarter3 : 46,
1473
1492
  Q4 : 47,
1493
+ Quarter4 : 47,
1474
1494
  Sum : 48,
1475
1495
  ThisMonth : 49,
1476
1496
  ThisQuarter : 50,
@@ -1489,6 +1509,7 @@ exports.PivotFilterType = {
1489
1509
  ValueNotEqual : 63,
1490
1510
  YearToDate : 64,
1491
1511
  Yesterday : 65,
1512
+ None : 255,
1492
1513
  };
1493
1514
 
1494
1515
  exports.PivotMissingItemLimitType = {
@@ -2903,6 +2924,10 @@ exports.ExceptionType = {
2903
2924
  UndisclosedInformation : 22,
2904
2925
  FileCorrupted : 23,
2905
2926
  Internal : 24,
2927
+ DefinedName : 25,
2928
+ Font : 26,
2929
+ AutoFilter : 27,
2930
+ FontSubstitution : 28,
2906
2931
  };
2907
2932
 
2908
2933
  exports.FileFormatType = {
@@ -3051,6 +3076,8 @@ exports.FilterOperatorType = {
3051
3076
  EndsWith : 8,
3052
3077
  Contains : 9,
3053
3078
  NotContains : 10,
3079
+ NotBeginsWith : 11,
3080
+ NotEndsWith : 12,
3054
3081
  };
3055
3082
 
3056
3083
  exports.FontUnderlineType = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aspose.cells.node",
3
- "version": "24.11.0",
3
+ "version": "24.12.0",
4
4
  "description": "Aspose.Cells for Node.js via C++ is a high-performance and powerful library for manipulating and converting Excel (XLS, XLSX, XLSB), ODS, CSV, and HTML files, offering a comprehensive set of features for creating, editing, converting, and rendering spreadsheets within Node.js applications.",
5
5
  "main": "aspose.cells.js",
6
6
  "types": "types.d.ts",
@@ -35,10 +35,9 @@
35
35
  "license": "Commercial",
36
36
  "homepage": "https://www.aspose.com",
37
37
  "optionalDependencies": {
38
- "aspose.cells.node.win32.x64": "~24.11.0",
39
- "aspose.cells.node.linux.x64": "~24.11.0",
40
- "aspose.cells.node.linux.legacy.x64": "~24.11.0",
41
- "aspose.cells.node.darwin.x64": "~24.11.0",
42
- "aspose.cells.node.darwin.arm64": "~24.11.0"
38
+ "aspose.cells.node.win32.x64": "~24.12.0",
39
+ "aspose.cells.node.linux.x64": "~24.12.0",
40
+ "aspose.cells.node.darwin.x64": "~24.12.0",
41
+ "aspose.cells.node.darwin.arm64": "~24.12.0"
43
42
  }
44
43
  }
package/types.d.ts CHANGED
@@ -257,6 +257,32 @@ export class AutoFilter {
257
257
  isNull() : boolean;
258
258
  }
259
259
 
260
+ /**
261
+ * Represents the category of the filter.
262
+ */
263
+ export enum FilterCategory {
264
+ /**
265
+ * No Filter.
266
+ */
267
+ None = 0,
268
+ /**
269
+ * Caption Filter.
270
+ */
271
+ Label = 1,
272
+ /**
273
+ * Number Value Filter.
274
+ */
275
+ NumberValue = 2,
276
+ /**
277
+ * Date Value Filter.
278
+ */
279
+ Date = 3,
280
+ /**
281
+ * Top10 Value Filter.
282
+ */
283
+ Top10 = 4,
284
+ }
285
+
260
286
  /**
261
287
  * Represents the type of auto fitting merged cells.
262
288
  */
@@ -296,6 +322,27 @@ export enum AutoFitWrappedTextType {
296
322
  Paragraph = 1,
297
323
  }
298
324
 
325
+ /**
326
+ * Monitor for user to track the change of formulas during certain operations.
327
+ *
328
+ * @remarks
329
+ * For example, while deleting/inserting range of cells,
330
+ * formulas of other cells may be changed because of the shift of references.
331
+ */
332
+ export class AbstractFormulaChangeMonitor {
333
+ /**
334
+ * The event that will be triggered when the formula in a cell is changed.
335
+ * @param sheetIndex - The sheet index of the changed cell
336
+ * @param rowIndex - The row index of the changed cell
337
+ * @param columnIndex - The column index of the changed cell
338
+ */
339
+ onCellFormulaChanged(sheetIndex: number, rowIndex: number, columnIndex: number) : void;
340
+ /**
341
+ * Checks whether the implementation object is null.
342
+ */
343
+ isNull() : boolean;
344
+ }
345
+
299
346
  /**
300
347
  * Utility for instantiating classes of Cells model.
301
348
  */
@@ -9177,6 +9224,13 @@ export class Cells {
9177
9224
  * @param updateReference - Indicates whether update references in other worksheets.
9178
9225
  */
9179
9226
  deleteColumns(columnIndex: number, totalColumns: number, updateReference: boolean) : void;
9227
+ /**
9228
+ * Deletes several columns.
9229
+ * @param columnIndex - Index of the first column to be deleted.
9230
+ * @param totalColumns - Count of columns to be deleted.
9231
+ * @param options - Options for the deleting operation
9232
+ */
9233
+ deleteColumns(columnIndex: number, totalColumns: number, options: DeleteOptions) : void;
9180
9234
  /**
9181
9235
  * Check whether the range could be deleted.
9182
9236
  * @param startRow - The start row index of the range.
@@ -9197,7 +9251,7 @@ export class Cells {
9197
9251
  */
9198
9252
  deleteRow(rowIndex: number, updateReference: boolean) : void;
9199
9253
  /**
9200
- * Deletes several rows.
9254
+ * Deletes multiple rows.
9201
9255
  * @param rowIndex - The first row index to be deleted.
9202
9256
  * @param totalRows - Count of rows to be deleted.
9203
9257
  *
@@ -9214,6 +9268,13 @@ export class Cells {
9214
9268
  * @param updateReference - Indicates whether update references in other worksheets.
9215
9269
  */
9216
9270
  deleteRows(rowIndex: number, totalRows: number, updateReference: boolean) : boolean;
9271
+ /**
9272
+ * Deletes multiple rows in the worksheet.
9273
+ * @param rowIndex - Index of the first row to be deleted.
9274
+ * @param totalRows - Count of rows to be deleted.
9275
+ * @param options - Options for the deleting operation
9276
+ */
9277
+ deleteRows(rowIndex: number, totalRows: number, options: DeleteOptions) : boolean;
9217
9278
  /**
9218
9279
  * Delete all blank columns which do not contain any data.
9219
9280
  */
@@ -9257,6 +9318,13 @@ export class Cells {
9257
9318
  * @param updateReference - Indicates if references in other worksheets will be updated.
9258
9319
  */
9259
9320
  insertColumns(columnIndex: number, totalColumns: number, updateReference: boolean) : void;
9321
+ /**
9322
+ * Inserts some columns into the worksheet.
9323
+ * @param columnIndex - Column index.
9324
+ * @param totalColumns - The number of columns.
9325
+ * @param options - The options for inserting operation.
9326
+ */
9327
+ insertColumns(columnIndex: number, totalColumns: number, options: InsertOptions) : void;
9260
9328
  /**
9261
9329
  * Inserts a new column into the worksheet.
9262
9330
  * @param columnIndex - Column index.
@@ -9279,7 +9347,7 @@ export class Cells {
9279
9347
  * Inserts multiple rows into the worksheet.
9280
9348
  * @param rowIndex - Row index.
9281
9349
  * @param totalRows - Number of rows to be inserted.
9282
- * @param options - Indicates if references in other worksheets will be updated.
9350
+ * @param options - Options for inserting operation.
9283
9351
  */
9284
9352
  insertRows(rowIndex: number, totalRows: number, options: InsertOptions) : void;
9285
9353
  /**
@@ -10409,6 +10477,10 @@ export class PowerQueryFormula {
10409
10477
  * Gets the type of this power query formula.
10410
10478
  */
10411
10479
  getType() : PowerQueryFormulaType;
10480
+ /**
10481
+ * Gets the name of group which contains this power query formula.
10482
+ */
10483
+ getGroupName() : string;
10412
10484
  /**
10413
10485
  * Gets the definition of the power query formula.
10414
10486
  */
@@ -15991,6 +16063,10 @@ export class PivotField {
15991
16063
  * Indicates whether the specified PivotTable field is calculated field.
15992
16064
  */
15993
16065
  isCalculatedField() : boolean;
16066
+ /**
16067
+ * Indicates whether this field represents values fields.
16068
+ */
16069
+ isValueFields() : boolean;
15994
16070
  /**
15995
16071
  * Represents the PivotField index in the base PivotFields.
15996
16072
  */
@@ -16004,6 +16080,10 @@ export class PivotField {
16004
16080
  * Represents the index of <see cref="PivotField"/> in the region.
16005
16081
  */
16006
16082
  getPosition() : number;
16083
+ /**
16084
+ * Specifies the region of the PivotTable that this field is displayed.
16085
+ */
16086
+ getRegionType() : PivotFieldType;
16007
16087
  /**
16008
16088
  * Represents the name of PivotField.
16009
16089
  */
@@ -16323,14 +16403,6 @@ export class PivotField {
16323
16403
  * @param value - The value to set.
16324
16404
  */
16325
16405
  setShowCompact(value: boolean) : void;
16326
- /**
16327
- * Gets the pivot filter of the pivot field by type
16328
- */
16329
- getPivotFilterByType(type: PivotFilterType) : PivotFilter;
16330
- /**
16331
- * Gets all pivot filters of this pivot field.
16332
- */
16333
- getFilters() : PivotFilter[];
16334
16406
  /**
16335
16407
  * Init the pivot items of the pivot field
16336
16408
  */
@@ -16374,6 +16446,48 @@ export class PivotField {
16374
16446
  * Ungroup the pivot field.
16375
16447
  */
16376
16448
  ungroup() : void;
16449
+ /**
16450
+ * Gets the pivot filter of the pivot field by type
16451
+ */
16452
+ getPivotFilterByType(type: PivotFilterType) : PivotFilter;
16453
+ /**
16454
+ * Gets all pivot filters of this pivot field.
16455
+ */
16456
+ getFilters() : PivotFilter[];
16457
+ /**
16458
+ * Clears filter setting on this pivot field.
16459
+ */
16460
+ clearFilter() : void;
16461
+ /**
16462
+ * Filters by values of data pivot field.
16463
+ * @param valueFieldIndex - The index of data field in the data region.
16464
+ * @param type - The type of filtering data. Only can be Count,Sum and Percent.
16465
+ * @param isTop - Indicates whether filter from top or bottom
16466
+ * @param itemCount - The item count
16467
+ */
16468
+ filterTop10(valueFieldIndex: number, type: PivotFilterType, isTop: boolean, itemCount: number) : PivotFilter;
16469
+ /**
16470
+ * Filters by values of data pivot field.
16471
+ * @param valueFieldIndex - The index of value field in the value region.
16472
+ * @param type - The type of filtering data.
16473
+ * @param value1 - The value of filter condition
16474
+ * @param value2 - The upper-bound value of between filter condition
16475
+ */
16476
+ filterByValue(valueFieldIndex: number, type: PivotFilterType, value1: number, value2: number) : PivotFilter;
16477
+ /**
16478
+ * Filters by captions of row or column pivot field.
16479
+ * @param type - The type of filtering data.
16480
+ * @param label1 - The label of filter condition
16481
+ * @param label2 - The upper-bound label of between filter condition
16482
+ */
16483
+ filterByLabel(type: PivotFilterType, label1: string, label2: string) : PivotFilter;
16484
+ /**
16485
+ * Filters by date setting of row or column pivot field.
16486
+ * @param type - The type of filtering data.
16487
+ * @param dateTime1 - The date label of filter condition
16488
+ * @param dateTime2 - The upper-bound date label of between filter condition
16489
+ */
16490
+ filterByDate(type: PivotFilterType, dateTime1: Date, dateTime2: Date) : PivotFilter;
16377
16491
  /**
16378
16492
  * Gets formula of the calculated field .
16379
16493
  */
@@ -19747,6 +19861,10 @@ export class CalculationOptions {
19747
19861
  * used in INDIRECT function. For those external links used in INDIRECT function,
19748
19862
  * they are not taken as part of the external links of the workbook and cannot be updated
19749
19863
  * by <see cref="Workbook.UpdateLinkedDataSource(Workbook[])"/>.
19864
+ * The match of those workbooks with external links is determined by <see cref="Workbook.FileName"/>
19865
+ * and <see cref="ExternalLink.DataSource"/>. So please make sure <see cref="Workbook.FileName"/> has
19866
+ * been specified with the proper value(generally it should be same with corresponding
19867
+ * <see cref="ExternalLink.DataSource"/>) for every workbook so they can be linked as expected.
19750
19868
  */
19751
19869
  getLinkedDataSources() : Workbook[];
19752
19870
  /**
@@ -19759,6 +19877,10 @@ export class CalculationOptions {
19759
19877
  * used in INDIRECT function. For those external links used in INDIRECT function,
19760
19878
  * they are not taken as part of the external links of the workbook and cannot be updated
19761
19879
  * by <see cref="Workbook.UpdateLinkedDataSource(Workbook[])"/>.
19880
+ * The match of those workbooks with external links is determined by <see cref="Workbook.FileName"/>
19881
+ * and <see cref="ExternalLink.DataSource"/>. So please make sure <see cref="Workbook.FileName"/> has
19882
+ * been specified with the proper value(generally it should be same with corresponding
19883
+ * <see cref="ExternalLink.DataSource"/>) for every workbook so they can be linked as expected.
19762
19884
  */
19763
19885
  setLinkedDataSources(value: Workbook[]) : void;
19764
19886
  /**
@@ -23788,6 +23910,15 @@ export class DeleteOptions {
23788
23910
  * @param value - The value to set.
23789
23911
  */
23790
23912
  setUpdateReference(value: boolean) : void;
23913
+ /**
23914
+ * Gets/sets the monitor for tracking changes caused by the deletion.
23915
+ */
23916
+ getFormulaChangeMonitor() : AbstractFormulaChangeMonitor;
23917
+ /**
23918
+ * Gets/sets the monitor for tracking changes caused by the deletion.
23919
+ * @param value - The value to set.
23920
+ */
23921
+ setFormulaChangeMonitor(value: AbstractFormulaChangeMonitor) : void;
23791
23922
  /**
23792
23923
  * Checks whether the implementation object is null.
23793
23924
  */
@@ -26305,7 +26436,7 @@ export class WarningInfo {
26305
26436
  /**
26306
26437
  * Get warning type.
26307
26438
  */
26308
- getWarningType() : WarningType;
26439
+ getType() : ExceptionType;
26309
26440
  /**
26310
26441
  * Get description of warning info.
26311
26442
  */
@@ -26331,6 +26462,14 @@ export class WarningInfo {
26331
26462
 
26332
26463
  /**
26333
26464
  * WaringType
26465
+ *
26466
+ * @remarks
26467
+ * NOTE: This enum is now obsolete. Instead,
26468
+ * please use ExceptionType enum, instead.
26469
+ * This property will be removed 12 months later since December 2024.
26470
+ * Aspose apologizes for any inconvenience you may have experienced.
26471
+ * @deprecated
26472
+ * Use ExceptionType enum, instead.
26334
26473
  */
26335
26474
  export enum WarningType {
26336
26475
  /**
@@ -27369,6 +27508,15 @@ export class InsertOptions {
27369
27508
  * @param value - The value to set.
27370
27509
  */
27371
27510
  setUpdateReference(value: boolean) : void;
27511
+ /**
27512
+ * Gets/sets the monitor for tracking changes caused by the insertion.
27513
+ */
27514
+ getFormulaChangeMonitor() : AbstractFormulaChangeMonitor;
27515
+ /**
27516
+ * Gets/sets the monitor for tracking changes caused by the insertion.
27517
+ * @param value - The value to set.
27518
+ */
27519
+ setFormulaChangeMonitor(value: AbstractFormulaChangeMonitor) : void;
27372
27520
  /**
27373
27521
  * Checks whether the implementation object is null.
27374
27522
  */
@@ -28984,8 +29132,25 @@ export enum PivotConditionFormatScopeType {
28984
29132
  * Represents a PivotFilter in PivotFilter Collection.
28985
29133
  */
28986
29134
  export class PivotFilter {
29135
+ /**
29136
+ * Indicates whether uses whole days in its filtering criteria.
29137
+ */
29138
+ getUseWholeDay() : boolean;
29139
+ /**
29140
+ * Indicates whether uses whole days in its filtering criteria.
29141
+ * @param value - The value to set.
29142
+ */
29143
+ setUseWholeDay(value: boolean) : void;
28987
29144
  /**
28988
29145
  * Gets the autofilter of the pivot filter.
29146
+ *
29147
+ * @remarks
29148
+ * NOTE: This method is now obsolete. Instead,
29149
+ * please use FilterLabel, FilterValue,FilterDate or FilterTop10 method.
29150
+ * This method will be removed 12 months later since November 2024.
29151
+ * Aspose apologizes for any inconvenience you may have experienced.
29152
+ * @deprecated
29153
+ * Use FilterLabel, FilterValue,FilterDate or FilterTop10 method.
28989
29154
  */
28990
29155
  getAutoFilter() : AutoFilter;
28991
29156
  /**
@@ -28993,9 +29158,13 @@ export class PivotFilter {
28993
29158
  */
28994
29159
  getFilterType() : PivotFilterType;
28995
29160
  /**
28996
- * Gets the field index of the pivot filter.
29161
+ * Gets the index of source field which this pivot filter is applied to.
28997
29162
  */
28998
29163
  getFieldIndex() : number;
29164
+ /**
29165
+ * Gets the category of this filter.
29166
+ */
29167
+ getFilterCategory() : FilterCategory;
28999
29168
  /**
29000
29169
  * Gets the string value1 of the label pivot filter.
29001
29170
  */
@@ -29016,13 +29185,43 @@ export class PivotFilter {
29016
29185
  setValue2(value: string) : void;
29017
29186
  /**
29018
29187
  * Gets the measure field index of the pivot filter.
29188
+ *
29189
+ * @remarks
29190
+ * NOTE: This method is now obsolete. Instead,
29191
+ * please use PivotFilter.ValueFieldIndex property.
29192
+ * This method will be removed 12 months later since November 2024.
29193
+ * Aspose apologizes for any inconvenience you may have experienced.
29194
+ * @deprecated
29195
+ * Use PivotFilter.ValueFieldIndex property.
29019
29196
  */
29020
29197
  getMeasureFldIndex() : number;
29021
29198
  /**
29022
29199
  * Gets the measure field index of the pivot filter.
29023
29200
  * @param value - The value to set.
29201
+ *
29202
+ * @remarks
29203
+ * NOTE: This method is now obsolete. Instead,
29204
+ * please use PivotFilter.ValueFieldIndex property.
29205
+ * This method will be removed 12 months later since November 2024.
29206
+ * Aspose apologizes for any inconvenience you may have experienced.
29207
+ * @deprecated
29208
+ * Use PivotFilter.ValueFieldIndex property.
29024
29209
  */
29025
29210
  setMeasureFldIndex(value: number) : void;
29211
+ /**
29212
+ * Gets the index of value field in the value region.
29213
+ */
29214
+ getValueFieldIndex() : number;
29215
+ /**
29216
+ * Gets the index of value field in the value region.
29217
+ * @param value - The value to set.
29218
+ */
29219
+ setValueFieldIndex(value: number) : void;
29220
+ /**
29221
+ * Specifies the index of the measure cube field.
29222
+ * this property is used only by filters in OLAP pivots and specifies on which measure a value filter should apply.
29223
+ */
29224
+ getMeasureCubeFieldIndex() : number;
29026
29225
  /**
29027
29226
  * Gets the member property field index of the pivot filter.
29028
29227
  */
@@ -29050,6 +29249,22 @@ export class PivotFilter {
29050
29249
  * @param value - The value to set.
29051
29250
  */
29052
29251
  setEvaluationOrder(value: number) : void;
29252
+ /**
29253
+ * Gets top 10 setting of the filter.
29254
+ */
29255
+ getTop10Value() : Top10Filter;
29256
+ /**
29257
+ * Gets labels of the caption filter.
29258
+ */
29259
+ getLabels() : string[];
29260
+ /**
29261
+ * Gets values of the number filter.
29262
+ */
29263
+ getNumberValues() : number[];
29264
+ /**
29265
+ * Gets values of the number filter.
29266
+ */
29267
+ getDateTimeValues() : Date[];
29053
29268
  /**
29054
29269
  * Checks whether the implementation object is null.
29055
29270
  */
@@ -29070,8 +29285,50 @@ export class PivotFilterCollection {
29070
29285
  * @param type - the PivotFilter type
29071
29286
  * @returns
29072
29287
  * the index of the PivotFilter Object in this PivotFilterCollection.
29288
+ *
29289
+ * @remarks
29290
+ * NOTE: This method is now obsolete. Instead,
29291
+ * please use PivotFilterCollection.AddValueFilter(),AddTop10Filter(),AddLabelFilter() and AddDateFilter() methods.
29292
+ * This method will be removed 12 months later since November 2024.
29293
+ * Aspose apologizes for any inconvenience you may have experienced.
29294
+ * @deprecated
29295
+ * Use PivotFilterCollection.AddValueFilter(),AddTop10Filter(),AddLabelFilter() and AddDateFilter() methods,instead.
29073
29296
  */
29074
29297
  add(fieldIndex: number, type: PivotFilterType) : number;
29298
+ /**
29299
+ * Filters by values of data pivot field.
29300
+ * @param baseFieldIndex - The index of field in the source.
29301
+ * @param valueFieldIndex - The index of data field in the data region.
29302
+ * @param type - The type of filtering data. Only can be Count,Sum and Percent.
29303
+ * @param isTop - Indicates whether filter from top or bottom
29304
+ * @param itemCount - The item count
29305
+ */
29306
+ addTop10Filter(baseFieldIndex: number, valueFieldIndex: number, type: PivotFilterType, isTop: boolean, itemCount: number) : PivotFilter;
29307
+ /**
29308
+ * Filters by values of data pivot field.
29309
+ * @param baseFieldIndex - The index of field in the source.
29310
+ * @param valueFieldIndex - The index of value field in the value region.
29311
+ * @param type - The type of filtering data.
29312
+ * @param value1 - The value of filter condition
29313
+ * @param value2 - The upper-bound value of between filter condition
29314
+ */
29315
+ addValueFilter(baseFieldIndex: number, valueFieldIndex: number, type: PivotFilterType, value1: number, value2: number) : PivotFilter;
29316
+ /**
29317
+ * Filters by captions of row or column pivot field.
29318
+ * @param baseFieldIndex - The index of field in the source.
29319
+ * @param type - The type of filtering data.
29320
+ * @param label1 - The label of filter condition
29321
+ * @param label2 - The upper-bound label of between filter condition
29322
+ */
29323
+ addLabelFilter(baseFieldIndex: number, type: PivotFilterType, label1: string, label2: string) : PivotFilter;
29324
+ /**
29325
+ * Filters by date setting of row or column pivot field.
29326
+ * @param baseFieldIndex - The index of field in the source.
29327
+ * @param type - The type of filtering data.
29328
+ * @param dateTime1 - The date label of filter condition
29329
+ * @param dateTime2 - The upper-bound date label of between filter condition
29330
+ */
29331
+ addDateFilter(baseFieldIndex: number, type: PivotFilterType, dateTime1: Date, dateTime2: Date) : PivotFilter;
29075
29332
  /**
29076
29333
  * Clear PivotFilter from the specific PivotField
29077
29334
  * @param fieldIndex - the PivotField index
@@ -29160,13 +29417,37 @@ export enum PivotFilterType {
29160
29417
  */
29161
29418
  DateEqual = 16,
29162
29419
  /**
29163
- * Indicates the "newer than" filter for date values.
29420
+ * Indicates the "after" filter for date values.
29421
+ *
29422
+ * @remarks
29423
+ * NOTE: This member is now obsolete. Instead,
29424
+ * please use <see cref="PivotFilterType.DateAfter"/> property.
29425
+ * This property will be removed 6 months later since November 2024.
29426
+ * Aspose apologizes for any inconvenience you may have experienced.
29427
+ * @deprecated
29428
+ * Use PivotFilterType.DateAfter instead.
29164
29429
  */
29165
29430
  DateNewerThan = 17,
29166
29431
  /**
29167
- * Indicates the "newer than or equal to" filter for date values.
29432
+ * Indicates the "after" filter for date values.
29433
+ */
29434
+ DateAfter = 17,
29435
+ /**
29436
+ * Indicates the "after or equal to" filter for date values.
29437
+ *
29438
+ * @remarks
29439
+ * NOTE: This member is now obsolete. Instead,
29440
+ * please use <see cref="PivotFilterType.DateAfterOrEqual"/> property.
29441
+ * This property will be removed 6 months later since November 2024.
29442
+ * Aspose apologizes for any inconvenience you may have experienced.
29443
+ * @deprecated
29444
+ * Use PivotFilterType.DateAfterOrEqual instead.
29168
29445
  */
29169
29446
  DateNewerThanOrEqual = 18,
29447
+ /**
29448
+ * Indicates the "after or equal to" filter for date values.
29449
+ */
29450
+ DateAfterOrEqual = 18,
29170
29451
  /**
29171
29452
  * Indicates the "not between" filter for date values.
29172
29453
  */
@@ -29176,13 +29457,37 @@ export enum PivotFilterType {
29176
29457
  */
29177
29458
  DateNotEqual = 20,
29178
29459
  /**
29179
- * Indicates the "older than" filter for date values.
29460
+ * Indicates the "before" filter for date values.
29461
+ *
29462
+ * @remarks
29463
+ * NOTE: This member is now obsolete. Instead,
29464
+ * please use <see cref="PivotFilterType.DateBefore"/> property.
29465
+ * This property will be removed 6 months later since November 2024.
29466
+ * Aspose apologizes for any inconvenience you may have experienced.
29467
+ * @deprecated
29468
+ * Use PivotFilterType.DateBefore instead.
29180
29469
  */
29181
29470
  DateOlderThan = 21,
29182
29471
  /**
29183
- * Indicates the "older than or equal to" filter for date values.
29472
+ * Indicates the "before" filter for date values.
29473
+ */
29474
+ DateBefore = 21,
29475
+ /**
29476
+ * Indicates the "before or equal to" filter for date values.
29477
+ *
29478
+ * @remarks
29479
+ * NOTE: This member is now obsolete. Instead,
29480
+ * please use <see cref="PivotFilterType.DateBeforeOrEqual"/> property.
29481
+ * This property will be removed 6 months later since November 2024.
29482
+ * Aspose apologizes for any inconvenience you may have experienced.
29483
+ * @deprecated
29484
+ * Use PivotFilterType.DateBeforeOrEqual instead.
29184
29485
  */
29185
29486
  DateOlderThanOrEqual = 22,
29487
+ /**
29488
+ * Indicates the "before or equal to" filter for date values.
29489
+ */
29490
+ DateBeforeOrEqual = 22,
29186
29491
  /**
29187
29492
  * Indicates the "last month" filter for date values.
29188
29493
  */
@@ -29201,52 +29506,196 @@ export enum PivotFilterType {
29201
29506
  LastYear = 26,
29202
29507
  /**
29203
29508
  * Indicates the "January" filter for date values.
29509
+ *
29510
+ * @remarks
29511
+ * NOTE: This member is now obsolete. Instead,
29512
+ * please use <see cref="PivotFilterType.January"/> property.
29513
+ * This property will be removed 6 months later since November 2024.
29514
+ * Aspose apologizes for any inconvenience you may have experienced.
29515
+ * @deprecated
29516
+ * Use PivotFilterType.January instead.
29204
29517
  */
29205
29518
  M1 = 27,
29519
+ /**
29520
+ * Indicates the "January" filter for date values.
29521
+ */
29522
+ January = 27,
29206
29523
  /**
29207
29524
  * Indicates the "February" filter for date values.
29525
+ *
29526
+ * @remarks
29527
+ * NOTE: This member is now obsolete. Instead,
29528
+ * please use <see cref="PivotFilterType.February"/> property.
29529
+ * This property will be removed 6 months later since November 2024.
29530
+ * Aspose apologizes for any inconvenience you may have experienced.
29531
+ * @deprecated
29532
+ * Use PivotFilterType.February instead.
29208
29533
  */
29209
29534
  M2 = 28,
29535
+ /**
29536
+ * Indicates the "February" filter for date values.
29537
+ */
29538
+ February = 28,
29210
29539
  /**
29211
29540
  * Indicates the "March" filter for date values.
29541
+ *
29542
+ * @remarks
29543
+ * NOTE: This member is now obsolete. Instead,
29544
+ * please use <see cref="PivotFilterType.March"/> property.
29545
+ * This property will be removed 6 months later since November 2024.
29546
+ * Aspose apologizes for any inconvenience you may have experienced.
29547
+ * @deprecated
29548
+ * Use PivotFilterType.March instead.
29212
29549
  */
29213
29550
  M3 = 29,
29551
+ /**
29552
+ * Indicates the "March" filter for date values.
29553
+ */
29554
+ March = 29,
29214
29555
  /**
29215
29556
  * Indicates the "April" filter for date values.
29557
+ *
29558
+ * @remarks
29559
+ * NOTE: This member is now obsolete. Instead,
29560
+ * please use <see cref="PivotFilterType.April"/> property.
29561
+ * This property will be removed 6 months later since November 2024.
29562
+ * Aspose apologizes for any inconvenience you may have experienced.
29563
+ * @deprecated
29564
+ * Use PivotFilterType.April instead.
29216
29565
  */
29217
29566
  M4 = 30,
29567
+ /**
29568
+ * Indicates the "April" filter for date values.
29569
+ */
29570
+ April = 30,
29218
29571
  /**
29219
29572
  * Indicates the "May" filter for date values.
29573
+ *
29574
+ * @remarks
29575
+ * NOTE: This member is now obsolete. Instead,
29576
+ * please use <see cref="PivotFilterType.May"/> property.
29577
+ * This property will be removed 6 months later since November 2024.
29578
+ * Aspose apologizes for any inconvenience you may have experienced.
29579
+ * @deprecated
29580
+ * Use PivotFilterType.May instead.
29220
29581
  */
29221
29582
  M5 = 31,
29583
+ /**
29584
+ * Indicates the "May" filter for date values.
29585
+ */
29586
+ May = 31,
29222
29587
  /**
29223
29588
  * Indicates the "June" filter for date values.
29589
+ *
29590
+ * @remarks
29591
+ * NOTE: This member is now obsolete. Instead,
29592
+ * please use <see cref="PivotFilterType.June"/> property.
29593
+ * This property will be removed 6 months later since November 2024.
29594
+ * Aspose apologizes for any inconvenience you may have experienced.
29595
+ * @deprecated
29596
+ * Use PivotFilterType.June instead.
29224
29597
  */
29225
29598
  M6 = 32,
29599
+ /**
29600
+ * Indicates the "June" filter for date values.
29601
+ */
29602
+ June = 32,
29226
29603
  /**
29227
29604
  * Indicates the "July" filter for date values.
29605
+ *
29606
+ * @remarks
29607
+ * NOTE: This member is now obsolete. Instead,
29608
+ * please use <see cref="PivotFilterType.July"/> property.
29609
+ * This property will be removed 6 months later since November 2024.
29610
+ * Aspose apologizes for any inconvenience you may have experienced.
29611
+ * @deprecated
29612
+ * Use PivotFilterType.July instead.
29228
29613
  */
29229
29614
  M7 = 33,
29615
+ /**
29616
+ * Indicates the "July" filter for date values.
29617
+ */
29618
+ July = 33,
29230
29619
  /**
29231
29620
  * Indicates the "August" filter for date values.
29621
+ *
29622
+ * @remarks
29623
+ * NOTE: This member is now obsolete. Instead,
29624
+ * please use <see cref="PivotFilterType.August"/> property.
29625
+ * This property will be removed 6 months later since November 2024.
29626
+ * Aspose apologizes for any inconvenience you may have experienced.
29627
+ * @deprecated
29628
+ * Use PivotFilterType.August instead.
29232
29629
  */
29233
29630
  M8 = 34,
29631
+ /**
29632
+ * Indicates the "August" filter for date values.
29633
+ */
29634
+ August = 34,
29234
29635
  /**
29235
29636
  * Indicates the "September" filter for date values.
29637
+ *
29638
+ * @remarks
29639
+ * NOTE: This member is now obsolete. Instead,
29640
+ * please use <see cref="PivotFilterType.September"/> property.
29641
+ * This property will be removed 6 months later since November 2024.
29642
+ * Aspose apologizes for any inconvenience you may have experienced.
29643
+ * @deprecated
29644
+ * Use PivotFilterType.September instead.
29236
29645
  */
29237
29646
  M9 = 35,
29647
+ /**
29648
+ * Indicates the "September" filter for date values.
29649
+ */
29650
+ September = 35,
29238
29651
  /**
29239
29652
  * Indicates the "October" filter for date values.
29653
+ *
29654
+ * @remarks
29655
+ * NOTE: This member is now obsolete. Instead,
29656
+ * please use <see cref="PivotFilterType.October"/> property.
29657
+ * This property will be removed 6 months later since November 2024.
29658
+ * Aspose apologizes for any inconvenience you may have experienced.
29659
+ * @deprecated
29660
+ * Use PivotFilterType.October instead.
29240
29661
  */
29241
29662
  M10 = 36,
29663
+ /**
29664
+ * Indicates the "October" filter for date values.
29665
+ */
29666
+ October = 36,
29242
29667
  /**
29243
29668
  * Indicates the "November" filter for date values.
29669
+ *
29670
+ * @remarks
29671
+ * NOTE: This member is now obsolete. Instead,
29672
+ * please use <see cref="PivotFilterType.November"/> property.
29673
+ * This property will be removed 6 months later since November 2024.
29674
+ * Aspose apologizes for any inconvenience you may have experienced.
29675
+ * @deprecated
29676
+ * Use PivotFilterType.November instead.
29244
29677
  */
29245
29678
  M11 = 37,
29679
+ /**
29680
+ * Indicates the "November" filter for date values.
29681
+ */
29682
+ November = 37,
29246
29683
  /**
29247
29684
  * Indicates the "December" filter for date values.
29685
+ *
29686
+ * @remarks
29687
+ * NOTE: This member is now obsolete. Instead,
29688
+ * please use <see cref="PivotFilterType.December"/> property.
29689
+ * This property will be removed 6 months later since November 2024.
29690
+ * Aspose apologizes for any inconvenience you may have experienced.
29691
+ * @deprecated
29692
+ * Use PivotFilterType.December instead.
29248
29693
  */
29249
29694
  M12 = 38,
29695
+ /**
29696
+ * Indicates the "December" filter for date values.
29697
+ */
29698
+ December = 38,
29250
29699
  /**
29251
29700
  * Indicates the "next month" filter for date values.
29252
29701
  */
@@ -29269,20 +29718,68 @@ export enum PivotFilterType {
29269
29718
  Percent = 43,
29270
29719
  /**
29271
29720
  * Indicates the "first quarter" filter for date values.
29721
+ *
29722
+ * @remarks
29723
+ * NOTE: This member is now obsolete. Instead,
29724
+ * please use <see cref="PivotFilterType.Quarter1"/> property.
29725
+ * This property will be removed 6 months later since November 2024.
29726
+ * Aspose apologizes for any inconvenience you may have experienced.
29727
+ * @deprecated
29728
+ * Use PivotFilterType.Quarter1 instead.
29272
29729
  */
29273
29730
  Q1 = 44,
29731
+ /**
29732
+ * Indicates the "first quarter" filter for date values.
29733
+ */
29734
+ Quarter1 = 44,
29274
29735
  /**
29275
29736
  * Indicates the "second quarter" filter for date values.
29737
+ *
29738
+ * @remarks
29739
+ * NOTE: This member is now obsolete. Instead,
29740
+ * please use <see cref="PivotFilterType.Quarter2"/> property.
29741
+ * This property will be removed 6 months later since November 2024.
29742
+ * Aspose apologizes for any inconvenience you may have experienced.
29743
+ * @deprecated
29744
+ * Use PivotFilterType.Quarter2 instead.
29276
29745
  */
29277
29746
  Q2 = 45,
29747
+ /**
29748
+ * Indicates the "second quarter" filter for date values.
29749
+ */
29750
+ Quarter2 = 45,
29278
29751
  /**
29279
29752
  * Indicates the "third quarter" filter for date values.
29753
+ *
29754
+ * @remarks
29755
+ * NOTE: This member is now obsolete. Instead,
29756
+ * please use <see cref="PivotFilterType.Quarter3"/> property.
29757
+ * This property will be removed 6 months later since November 2024.
29758
+ * Aspose apologizes for any inconvenience you may have experienced.
29759
+ * @deprecated
29760
+ * Use PivotFilterType.Quarter3 instead.
29280
29761
  */
29281
29762
  Q3 = 46,
29763
+ /**
29764
+ * Indicates the "third quarter" filter for date values.
29765
+ */
29766
+ Quarter3 = 46,
29282
29767
  /**
29283
29768
  * Indicates the "fourth quarter" filter for date values.
29769
+ *
29770
+ * @remarks
29771
+ * NOTE: This member is now obsolete. Instead,
29772
+ * please use <see cref="PivotFilterType.Quarter4"/> property.
29773
+ * This property will be removed 6 months later since November 2024.
29774
+ * Aspose apologizes for any inconvenience you may have experienced.
29775
+ * @deprecated
29776
+ * Use PivotFilterType.Quarter4 instead.
29284
29777
  */
29285
29778
  Q4 = 47,
29779
+ /**
29780
+ * Indicates the "fourth quarter" filter for date values.
29781
+ */
29782
+ Quarter4 = 47,
29286
29783
  /**
29287
29784
  * Indicates the "sum" filter for numeric values.
29288
29785
  */
@@ -29355,6 +29852,10 @@ export enum PivotFilterType {
29355
29852
  * Indicates the "yesterday" filter for date values.
29356
29853
  */
29357
29854
  Yesterday = 65,
29855
+ /**
29856
+ * No filter.
29857
+ */
29858
+ None = 255,
29358
29859
  }
29359
29860
 
29360
29861
  /**
@@ -33650,6 +34151,17 @@ export class HtmlSaveOptions extends SaveOptions {
33650
34151
  * @param value - The value to set.
33651
34152
  */
33652
34153
  setCellNameAttribute(value: string) : void;
34154
+ /**
34155
+ * Indicates whether only inline styles are applied, without relying on CSS.
34156
+ * The default value is false.
34157
+ */
34158
+ getDisableCss() : boolean;
34159
+ /**
34160
+ * Indicates whether only inline styles are applied, without relying on CSS.
34161
+ * The default value is false.
34162
+ * @param value - The value to set.
34163
+ */
34164
+ setDisableCss(value: boolean) : void;
33653
34165
  /**
33654
34166
  * Checks whether the implementation object is null.
33655
34167
  */
@@ -36705,6 +37217,15 @@ export class ReplaceOptions {
36705
37217
  * @param value - The value to set.
36706
37218
  */
36707
37219
  setFontSettings(value: FontSetting[]) : void;
37220
+ /**
37221
+ * Gets and sets flags of applying font settings.
37222
+ */
37223
+ getStyleFlags() : StyleFlag[];
37224
+ /**
37225
+ * Gets and sets flags of applying font settings.
37226
+ * @param value - The value to set.
37227
+ */
37228
+ setStyleFlags(value: StyleFlag[]) : void;
36708
37229
  /**
36709
37230
  * Checks whether the implementation object is null.
36710
37231
  */
@@ -43320,6 +43841,23 @@ export enum ExceptionType {
43320
43841
  * Internal exception.
43321
43842
  */
43322
43843
  Internal = 24,
43844
+ /**
43845
+ * Invalid defined name
43846
+ */
43847
+ DefinedName = 25,
43848
+ /**
43849
+ * Invalid font
43850
+ */
43851
+ Font = 26,
43852
+ /**
43853
+ * Invalid auto filter setting.
43854
+ */
43855
+ AutoFilter = 27,
43856
+ /**
43857
+ * Font substitution warning type
43858
+ * when a font has not been found, this warning type can be get.
43859
+ */
43860
+ FontSubstitution = 28,
43323
43861
  }
43324
43862
 
43325
43863
  /**
@@ -44210,6 +44748,14 @@ export enum FilterOperatorType {
44210
44748
  * Not contains the text.
44211
44749
  */
44212
44750
  NotContains = 10,
44751
+ /**
44752
+ * Not begins with the text.
44753
+ */
44754
+ NotBeginsWith = 11,
44755
+ /**
44756
+ * Not ends with the text.
44757
+ */
44758
+ NotEndsWith = 12,
44213
44759
  }
44214
44760
 
44215
44761
  /**
@@ -49790,6 +50336,19 @@ export class SaveOptions {
49790
50336
  * Gets or sets warning callback.
49791
50337
  */
49792
50338
  getWarningCallback() : IWarningCallback;
50339
+ /**
50340
+ * Whether check restriction of excel file when user modify cells related objects.
50341
+ * For example, excel does not allow inputting string value longer than 32K.
50342
+ * When you input a value longer than 32K, it will be truncated.
50343
+ */
50344
+ getCheckExcelRestriction() : boolean;
50345
+ /**
50346
+ * Whether check restriction of excel file when user modify cells related objects.
50347
+ * For example, excel does not allow inputting string value longer than 32K.
50348
+ * When you input a value longer than 32K, it will be truncated.
50349
+ * @param value - The value to set.
50350
+ */
50351
+ setCheckExcelRestriction(value: boolean) : void;
49793
50352
  /**
49794
50353
  * Indicates whether updating smart art setting.
49795
50354
  * The default value is false.