@ivandt/importer 1.0.3 → 1.0.6

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.
@@ -101,7 +101,7 @@ export interface IRemoveRowsTransformActionPayload extends ITransformActionPaylo
101
101
  /** Array of filter conditions to drop matching rows */
102
102
  filters: Array<{
103
103
  column: string;
104
- operator: '=' | '!=' | '>' | '<=' | 'regex';
104
+ operator: '=' | 'is not equal' | 'is greater than' | '<=' | 'regex';
105
105
  value: IvtCellValue;
106
106
  }>;
107
107
  }
@@ -195,7 +195,7 @@ export interface ISortRowsTransformActionPayload extends ITransformActionPayload
195
195
  export interface IFilterRowsTransformActionPayload extends ITransformActionPayloadBase {
196
196
  filters: Array<{
197
197
  column: string;
198
- operator: '=' | '!=' | '>' | '<=' | 'regex';
198
+ operator: '=' | 'is not equal' | 'is greater than' | '<=' | 'regex';
199
199
  value: IvtCellValue;
200
200
  }>;
201
201
  }
@@ -1,2 +1,19 @@
1
1
  import { IHotCellEditChange, ITableRowRange } from '../types';
2
+ /**
3
+ * Calculates the inclusive row range (start index and total length) covered by a set of cell edits.
4
+ * Missing rows between the first and last edit are counted in rowsLength.
5
+ *
6
+ * Example:
7
+ * // edits on rows 2 and 4
8
+ * const rows = [ [2, ...], [4, ...] ];
9
+ * // unique sorted row numbers: [2, 4]
10
+ * // startRowIndex = 2
11
+ * // endRowIndex = 4
12
+ * // rowsLength = (4 - 2 + 1) = 3 // covers rows 2, 3, and 4
13
+ *
14
+ * @param rows - Array of cell-edit tuples where the first element is the zero-based row index.
15
+ * @returns An object with:
16
+ * - startRowIndex: the lowest row index edited
17
+ * - rowsLength: total count of rows in the inclusive range from startRowIndex to the highest edited row
18
+ */
2
19
  export declare function getCellChangesRowsRange(rows: IHotCellEditChange[]): ITableRowRange;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ivandt/importer",
3
- "version": "1.0.3",
3
+ "version": "1.0.6",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs.js",
@@ -85,7 +85,7 @@
85
85
  "xlsx": "0.18.5"
86
86
  },
87
87
  "dependencies": {
88
- "@ivandt/json-rules": "^1.7.2",
88
+ "@ivandt/json-rules": "^2.1.1",
89
89
  "@jsonquerylang/jsonquery": "5.0.4",
90
90
  "country-list": "^2.3.0",
91
91
  "daisyui": "5.0.46",
@@ -1,3 +0,0 @@
1
- export declare function appendToBody(node: HTMLElement): {
2
- destroy(): void;
3
- };