microsoft-graph 2.22.2 → 2.22.3
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.
|
@@ -150,7 +150,7 @@ export declare function countAddressColumns(address: Address): number;
|
|
|
150
150
|
*/
|
|
151
151
|
export declare function cellToRangeAddress(cell: CellAddress, rows: number, cols: number): Address;
|
|
152
152
|
/**
|
|
153
|
-
* Extracts a
|
|
153
|
+
* Extracts a sub-address from a spreadsheet-style A1 range (e.g., "A1:D10"),
|
|
154
154
|
* allowing skip and take semantics on both rows and columns.
|
|
155
155
|
*
|
|
156
156
|
* Supports negative values for `skipRows` and `skipCols` to count from the end.
|
|
@@ -171,7 +171,7 @@ export declare function cellToRangeAddress(cell: CellAddress, rows: number, cols
|
|
|
171
171
|
*/
|
|
172
172
|
export declare function subAddress(address: Address, skipRows?: number, takeRows?: number, skipCols?: number, takeCols?: number): Address;
|
|
173
173
|
/**
|
|
174
|
-
* Extracts a
|
|
174
|
+
* Extracts a sub-range from a WorkbookRangeRef using skip/take semantics.
|
|
175
175
|
* @param rangeRef Range reference to extract the sub-range from.
|
|
176
176
|
* @param skipRows Number of rows to skip. If negative, skips from the end. Default 0.
|
|
177
177
|
* @param takeRows Number of rows to take after skipping. If negative, excludes from the end. Default Infinity.
|
|
@@ -180,5 +180,5 @@ export declare function subAddress(address: Address, skipRows?: number, takeRows
|
|
|
180
180
|
* @returns Extracted sub-range reference.
|
|
181
181
|
* @throws InvalidArgumentError if the requested rows or columns exceed the available range.
|
|
182
182
|
*/
|
|
183
|
-
export declare function
|
|
183
|
+
export declare function subRange(rangeRef: WorkbookRangeRef, skipRows?: number, takeRows?: number, skipCols?: number, takeCols?: number): WorkbookRangeRef;
|
|
184
184
|
//# sourceMappingURL=addressManipulation.d.ts.map
|
|
@@ -24,7 +24,7 @@ exports.countAddressRows = countAddressRows;
|
|
|
24
24
|
exports.countAddressColumns = countAddressColumns;
|
|
25
25
|
exports.cellToRangeAddress = cellToRangeAddress;
|
|
26
26
|
exports.subAddress = subAddress;
|
|
27
|
-
exports.
|
|
27
|
+
exports.subRange = subRange;
|
|
28
28
|
const InvalidArgumentError_ts_1 = __importDefault(require("../errors/InvalidArgumentError.js"));
|
|
29
29
|
const UnsupportedAddressTypeError_ts_1 = __importDefault(require("../errors/UnsupportedAddressTypeError.js"));
|
|
30
30
|
const addressOffset_ts_1 = require("./addressOffset.js");
|
|
@@ -343,7 +343,7 @@ function cellToRangeAddress(cell, rows, cols) {
|
|
|
343
343
|
});
|
|
344
344
|
}
|
|
345
345
|
/**
|
|
346
|
-
* Extracts a
|
|
346
|
+
* Extracts a sub-address from a spreadsheet-style A1 range (e.g., "A1:D10"),
|
|
347
347
|
* allowing skip and take semantics on both rows and columns.
|
|
348
348
|
*
|
|
349
349
|
* Supports negative values for `skipRows` and `skipCols` to count from the end.
|
|
@@ -397,7 +397,7 @@ function subAddress(address, skipRows = 0, takeRows = Number.POSITIVE_INFINITY,
|
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
/**
|
|
400
|
-
* Extracts a
|
|
400
|
+
* Extracts a sub-range from a WorkbookRangeRef using skip/take semantics.
|
|
401
401
|
* @param rangeRef Range reference to extract the sub-range from.
|
|
402
402
|
* @param skipRows Number of rows to skip. If negative, skips from the end. Default 0.
|
|
403
403
|
* @param takeRows Number of rows to take after skipping. If negative, excludes from the end. Default Infinity.
|
|
@@ -406,7 +406,7 @@ function subAddress(address, skipRows = 0, takeRows = Number.POSITIVE_INFINITY,
|
|
|
406
406
|
* @returns Extracted sub-range reference.
|
|
407
407
|
* @throws InvalidArgumentError if the requested rows or columns exceed the available range.
|
|
408
408
|
*/
|
|
409
|
-
function
|
|
409
|
+
function subRange(rangeRef, skipRows = 0, takeRows = Number.POSITIVE_INFINITY, skipCols = 0, takeCols = Number.POSITIVE_INFINITY) {
|
|
410
410
|
const address = subAddress(rangeRef.address, skipRows, takeRows, skipCols, takeCols);
|
|
411
411
|
return {
|
|
412
412
|
...rangeRef,
|
|
@@ -150,7 +150,7 @@ export declare function countAddressColumns(address: Address): number;
|
|
|
150
150
|
*/
|
|
151
151
|
export declare function cellToRangeAddress(cell: CellAddress, rows: number, cols: number): Address;
|
|
152
152
|
/**
|
|
153
|
-
* Extracts a
|
|
153
|
+
* Extracts a sub-address from a spreadsheet-style A1 range (e.g., "A1:D10"),
|
|
154
154
|
* allowing skip and take semantics on both rows and columns.
|
|
155
155
|
*
|
|
156
156
|
* Supports negative values for `skipRows` and `skipCols` to count from the end.
|
|
@@ -171,7 +171,7 @@ export declare function cellToRangeAddress(cell: CellAddress, rows: number, cols
|
|
|
171
171
|
*/
|
|
172
172
|
export declare function subAddress(address: Address, skipRows?: number, takeRows?: number, skipCols?: number, takeCols?: number): Address;
|
|
173
173
|
/**
|
|
174
|
-
* Extracts a
|
|
174
|
+
* Extracts a sub-range from a WorkbookRangeRef using skip/take semantics.
|
|
175
175
|
* @param rangeRef Range reference to extract the sub-range from.
|
|
176
176
|
* @param skipRows Number of rows to skip. If negative, skips from the end. Default 0.
|
|
177
177
|
* @param takeRows Number of rows to take after skipping. If negative, excludes from the end. Default Infinity.
|
|
@@ -180,5 +180,5 @@ export declare function subAddress(address: Address, skipRows?: number, takeRows
|
|
|
180
180
|
* @returns Extracted sub-range reference.
|
|
181
181
|
* @throws InvalidArgumentError if the requested rows or columns exceed the available range.
|
|
182
182
|
*/
|
|
183
|
-
export declare function
|
|
183
|
+
export declare function subRange(rangeRef: WorkbookRangeRef, skipRows?: number, takeRows?: number, skipCols?: number, takeCols?: number): WorkbookRangeRef;
|
|
184
184
|
//# sourceMappingURL=addressManipulation.d.ts.map
|
|
@@ -316,7 +316,7 @@ export function cellToRangeAddress(cell, rows, cols) {
|
|
|
316
316
|
});
|
|
317
317
|
}
|
|
318
318
|
/**
|
|
319
|
-
* Extracts a
|
|
319
|
+
* Extracts a sub-address from a spreadsheet-style A1 range (e.g., "A1:D10"),
|
|
320
320
|
* allowing skip and take semantics on both rows and columns.
|
|
321
321
|
*
|
|
322
322
|
* Supports negative values for `skipRows` and `skipCols` to count from the end.
|
|
@@ -370,7 +370,7 @@ export function subAddress(address, skipRows = 0, takeRows = Number.POSITIVE_INF
|
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
/**
|
|
373
|
-
* Extracts a
|
|
373
|
+
* Extracts a sub-range from a WorkbookRangeRef using skip/take semantics.
|
|
374
374
|
* @param rangeRef Range reference to extract the sub-range from.
|
|
375
375
|
* @param skipRows Number of rows to skip. If negative, skips from the end. Default 0.
|
|
376
376
|
* @param takeRows Number of rows to take after skipping. If negative, excludes from the end. Default Infinity.
|
|
@@ -379,7 +379,7 @@ export function subAddress(address, skipRows = 0, takeRows = Number.POSITIVE_INF
|
|
|
379
379
|
* @returns Extracted sub-range reference.
|
|
380
380
|
* @throws InvalidArgumentError if the requested rows or columns exceed the available range.
|
|
381
381
|
*/
|
|
382
|
-
export function
|
|
382
|
+
export function subRange(rangeRef, skipRows = 0, takeRows = Number.POSITIVE_INFINITY, skipCols = 0, takeCols = Number.POSITIVE_INFINITY) {
|
|
383
383
|
const address = subAddress(rangeRef.address, skipRows, takeRows, skipCols, takeCols);
|
|
384
384
|
return {
|
|
385
385
|
...rangeRef,
|