@trebco/treb 21.4.0 → 21.6.2
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/package.json +1 -1
- package/treb-bundle.css +2 -2
- package/treb-bundle.mjs +8 -8
- package/treb.d.ts +28 -4
package/treb.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! API v21.
|
|
1
|
+
/*! API v21.6. Copyright 2018-2022 trebco, llc. All rights reserved. LGPL: https://treb.app/license */
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Global instance. In the base script, this object will be created as an
|
|
@@ -341,6 +341,16 @@ export declare class EmbeddedSpreadsheet {
|
|
|
341
341
|
*/
|
|
342
342
|
UnmergeCells(range?: RangeReference): void;
|
|
343
343
|
|
|
344
|
+
/**
|
|
345
|
+
* revert to the original version of this document. this is a new flow
|
|
346
|
+
* that requires options set for `storage_key` and `alternate_document`.
|
|
347
|
+
*
|
|
348
|
+
* the idea is that the localStorage version will control, unless you
|
|
349
|
+
* don't have one or you revert; in that case we will load the alternate
|
|
350
|
+
* document.
|
|
351
|
+
*/
|
|
352
|
+
Revert(): void;
|
|
353
|
+
|
|
344
354
|
/**
|
|
345
355
|
* Export to XLSX file.
|
|
346
356
|
*
|
|
@@ -606,13 +616,22 @@ export declare class EmbeddedSpreadsheet {
|
|
|
606
616
|
ClearName(name: string): void;
|
|
607
617
|
|
|
608
618
|
/**
|
|
609
|
-
* Create a named range.
|
|
619
|
+
* Create a named range or named expression. A named range refers to an
|
|
620
|
+
* address or range. A named expression can be a value or formula, basically
|
|
621
|
+
* anything you would type into a cell.
|
|
622
|
+
*
|
|
623
|
+
* @param value range, value or expression
|
|
610
624
|
*
|
|
611
|
-
* @
|
|
625
|
+
* @remarks
|
|
626
|
+
*
|
|
627
|
+
* This function used to support passing `undefined` as the value,
|
|
628
|
+
* which meant "create a named range using current selection". We don't
|
|
629
|
+
* support that any more but you can accompilsh that with
|
|
630
|
+
* `sheet.DefineName("Name", sheet.GetSelection())`.
|
|
612
631
|
*
|
|
613
632
|
* @public
|
|
614
633
|
*/
|
|
615
|
-
DefineName(name: string,
|
|
634
|
+
DefineName(name: string, value: RangeReference | CellValue): void;
|
|
616
635
|
|
|
617
636
|
/**
|
|
618
637
|
* Set or remove a link in a cell.
|
|
@@ -1025,6 +1044,11 @@ export interface EmbeddedSpreadsheetOptions {
|
|
|
1025
1044
|
|
|
1026
1045
|
/** collapsed: start sidebar closed */
|
|
1027
1046
|
collapsed?: boolean;
|
|
1047
|
+
|
|
1048
|
+
/**
|
|
1049
|
+
* show the revert button. see the Revert method.
|
|
1050
|
+
*/
|
|
1051
|
+
revert?: boolean;
|
|
1028
1052
|
}
|
|
1029
1053
|
export declare type LoadSource = "drag-and-drop" | "local-file" | "network-file" | "local-storage" | "undo";
|
|
1030
1054
|
|