jspreadsheet 12.3.3 → 12.3.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.
package/dist/index.d.ts CHANGED
@@ -723,6 +723,8 @@ declare namespace jspreadsheet {
723
723
  * Cell object
724
724
  */
725
725
  interface Records {
726
+ /** Type **/
727
+ type: 'cell' | 'range' | 'footer' | 'definedNames' | 'validation' | 'chart' | 'table' | 'filter' | 'indirect';
726
728
  /** CELL td element */
727
729
  element: HTMLTableCellElement;
728
730
  /** Cached value of the cell */
@@ -732,7 +734,9 @@ declare namespace jspreadsheet {
732
734
  /** Coordinate Y */
733
735
  y: number;
734
736
  /** Associate to an array of values */
735
- a?: Map<Records, any>;
737
+ a?: any[];
738
+ /** Parent cell of an array */
739
+ isArray?: Records;
736
740
  /** Part of a merged cells */
737
741
  merged?: any[];
738
742
  /** Merged cells */
@@ -745,6 +749,10 @@ declare namespace jspreadsheet {
745
749
  meta?: object;
746
750
  /** Chain */
747
751
  chain?: Map<Records, true>;
752
+ /** Range name */
753
+ range?: string;
754
+ /** Table reference */
755
+ table?: Table;
748
756
  // Worksheet Instance
749
757
  w: worksheetInstance;
750
758
  }
@@ -934,6 +942,18 @@ declare namespace jspreadsheet {
934
942
  frozen?: boolean;
935
943
  }
936
944
 
945
+ interface FormulaChainEventExpression {
946
+ w: worksheetInstance;
947
+ x: number;
948
+ y: number;
949
+ v: any;
950
+ value: any;
951
+ /** Excel like cell reference name: A1, A2... **/
952
+ cell: string;
953
+ /** Formula **/
954
+ f: string;
955
+ }
956
+
937
957
  interface Spreadsheet {
938
958
  /** Your application name */
939
959
  application?: string;
@@ -1131,7 +1151,7 @@ declare namespace jspreadsheet {
1131
1151
  /** A way to change the formula in real-time before execution */
1132
1152
  onbeforeformula?: (worksheet: worksheetInstance, expression: string, x: number, y: number) => string | false | undefined;
1133
1153
  /** Get the information about the expressions executed from the formula chain */
1134
- onformulachain?: (worksheet: worksheetInstance, expressions: Array<object>) => void;
1154
+ onformulachain?: (worksheet: worksheetInstance, expressions: FormulaChainEventExpression[]) => void;
1135
1155
  /** Customize the items available when filter editor is open. */
1136
1156
  onopenfilter?: (worksheet: worksheetInstance, column: number, options: Record<string, any>[]) => Record<string, any>[] | Promise<Record<string, any>[]> | undefined;
1137
1157
  /** When the viewport dimension is updated. */