@amcharts/amcharts5 5.3.11 → 5.3.13

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 (274) hide show
  1. package/.internal/bundled/xlsx/CHANGELOG.md +328 -0
  2. package/.internal/bundled/xlsx/LICENSE +201 -0
  3. package/.internal/bundled/xlsx/README.md +40 -0
  4. package/.internal/bundled/xlsx/bin/xlsx.njs +310 -0
  5. package/.internal/bundled/xlsx/bower.json +22 -0
  6. package/.internal/bundled/xlsx/dist/LICENSE +201 -0
  7. package/.internal/bundled/xlsx/dist/cpexcel.d.ts +39 -0
  8. package/.internal/bundled/xlsx/dist/cpexcel.full.mjs +1502 -0
  9. package/.internal/bundled/xlsx/dist/cpexcel.js +1506 -0
  10. package/.internal/bundled/xlsx/dist/shim.min.js +2 -0
  11. package/.internal/bundled/xlsx/dist/xlsx.core.min.js +17 -0
  12. package/.internal/bundled/xlsx/dist/xlsx.core.min.map +1 -0
  13. package/.internal/bundled/xlsx/dist/xlsx.extendscript.js +26629 -0
  14. package/.internal/bundled/xlsx/dist/xlsx.full.min.js +23 -0
  15. package/.internal/bundled/xlsx/dist/xlsx.full.min.map +1 -0
  16. package/.internal/bundled/xlsx/dist/xlsx.mini.min.js +10 -0
  17. package/.internal/bundled/xlsx/dist/xlsx.mini.min.map +1 -0
  18. package/.internal/bundled/xlsx/dist/xlsx.zahl.js +4 -0
  19. package/.internal/bundled/xlsx/dist/xlsx.zahl.mjs +2 -0
  20. package/.internal/bundled/xlsx/dist/zahl.d.ts +4 -0
  21. package/.internal/bundled/xlsx/package.json +147 -0
  22. package/.internal/bundled/xlsx/types/index.d.ts +990 -0
  23. package/.internal/bundled/xlsx/types/tsconfig.json +15 -0
  24. package/.internal/bundled/xlsx/xlsx.js +26473 -0
  25. package/.internal/bundled/xlsx/xlsx.mjs +26598 -0
  26. package/.internal/bundled/xlsx/xlsxworker.js +14 -0
  27. package/.internal/charts/hierarchy/Hierarchy.d.ts +7 -0
  28. package/.internal/charts/hierarchy/Hierarchy.d.ts.map +1 -1
  29. package/.internal/charts/hierarchy/Hierarchy.js +13 -1
  30. package/.internal/charts/hierarchy/Hierarchy.js.map +1 -1
  31. package/.internal/charts/map/MapChart.d.ts +2 -2
  32. package/.internal/charts/map/MapChart.d.ts.map +1 -1
  33. package/.internal/charts/map/MapChart.js +18 -11
  34. package/.internal/charts/map/MapChart.js.map +1 -1
  35. package/.internal/charts/percent/PercentSeries.d.ts.map +1 -1
  36. package/.internal/charts/percent/PercentSeries.js +12 -10
  37. package/.internal/charts/percent/PercentSeries.js.map +1 -1
  38. package/.internal/charts/stock/SettingsModal.js +4 -4
  39. package/.internal/charts/stock/SettingsModal.js.map +1 -1
  40. package/.internal/charts/stock/StockChart.d.ts +4 -4
  41. package/.internal/charts/stock/StockChart.d.ts.map +1 -1
  42. package/.internal/charts/stock/StockChart.js +48 -44
  43. package/.internal/charts/stock/StockChart.js.map +1 -1
  44. package/.internal/charts/stock/drawing/AverageSeries.js +1 -1
  45. package/.internal/charts/stock/drawing/AverageSeries.js.map +1 -1
  46. package/.internal/charts/stock/drawing/LabelSeries.js +6 -6
  47. package/.internal/charts/stock/drawing/LabelSeries.js.map +1 -1
  48. package/.internal/charts/stock/indicators/Indicator.js +3 -3
  49. package/.internal/charts/stock/indicators/Indicator.js.map +1 -1
  50. package/.internal/charts/stock/indicators/VWAP.js +1 -1
  51. package/.internal/charts/stock/indicators/VWAP.js.map +1 -1
  52. package/.internal/charts/stock/indicators/WilliamsR.js +1 -1
  53. package/.internal/charts/stock/indicators/WilliamsR.js.map +1 -1
  54. package/.internal/charts/stock/toolbar/DateRangeSelector.d.ts.map +1 -1
  55. package/.internal/charts/stock/toolbar/DateRangeSelector.js +9 -5
  56. package/.internal/charts/stock/toolbar/DateRangeSelector.js.map +1 -1
  57. package/.internal/charts/xy/XYChart.d.ts.map +1 -1
  58. package/.internal/charts/xy/XYChart.js +36 -0
  59. package/.internal/charts/xy/XYChart.js.map +1 -1
  60. package/.internal/charts/xy/axes/AxisRendererX.d.ts.map +1 -1
  61. package/.internal/charts/xy/axes/AxisRendererX.js +3 -1
  62. package/.internal/charts/xy/axes/AxisRendererX.js.map +1 -1
  63. package/.internal/charts/xy/axes/AxisRendererY.d.ts.map +1 -1
  64. package/.internal/charts/xy/axes/AxisRendererY.js +4 -2
  65. package/.internal/charts/xy/axes/AxisRendererY.js.map +1 -1
  66. package/.internal/charts/xy/axes/DateAxis.js +2 -2
  67. package/.internal/charts/xy/axes/DateAxis.js.map +1 -1
  68. package/.internal/charts/xy/axes/ValueAxis.d.ts.map +1 -1
  69. package/.internal/charts/xy/axes/ValueAxis.js.map +1 -1
  70. package/.internal/charts/xy/series/LineSeries.js +1 -1
  71. package/.internal/charts/xy/series/LineSeries.js.map +1 -1
  72. package/.internal/charts/xy/series/XYSeries.d.ts +11 -2
  73. package/.internal/charts/xy/series/XYSeries.d.ts.map +1 -1
  74. package/.internal/charts/xy/series/XYSeries.js +20 -23
  75. package/.internal/charts/xy/series/XYSeries.js.map +1 -1
  76. package/.internal/core/Classes.d.ts +203 -201
  77. package/.internal/core/Classes.d.ts.map +1 -1
  78. package/.internal/core/Classes.js.map +1 -1
  79. package/.internal/core/Registry.js +1 -1
  80. package/.internal/core/Registry.js.map +1 -1
  81. package/.internal/core/Root.d.ts +1 -1
  82. package/.internal/core/Root.d.ts.map +1 -1
  83. package/.internal/core/Root.js +7 -2
  84. package/.internal/core/Root.js.map +1 -1
  85. package/.internal/core/render/Container.d.ts.map +1 -1
  86. package/.internal/core/render/Container.js +3 -3
  87. package/.internal/core/render/Container.js.map +1 -1
  88. package/.internal/core/render/Legend.js +5 -5
  89. package/.internal/core/render/Legend.js.map +1 -1
  90. package/.internal/core/render/Picture.d.ts +12 -1
  91. package/.internal/core/render/Picture.d.ts.map +1 -1
  92. package/.internal/core/render/Picture.js +5 -1
  93. package/.internal/core/render/Picture.js.map +1 -1
  94. package/.internal/core/render/Series.d.ts +2 -2
  95. package/.internal/core/render/Series.d.ts.map +1 -1
  96. package/.internal/core/render/Series.js +41 -39
  97. package/.internal/core/render/Series.js.map +1 -1
  98. package/.internal/core/render/Sprite.d.ts.map +1 -1
  99. package/.internal/core/render/Sprite.js +10 -8
  100. package/.internal/core/render/Sprite.js.map +1 -1
  101. package/.internal/core/render/Tooltip.d.ts.map +1 -1
  102. package/.internal/core/render/Tooltip.js +14 -0
  103. package/.internal/core/render/Tooltip.js.map +1 -1
  104. package/.internal/core/render/backend/CanvasRenderer.d.ts +13 -12
  105. package/.internal/core/render/backend/CanvasRenderer.d.ts.map +1 -1
  106. package/.internal/core/render/backend/CanvasRenderer.js +38 -37
  107. package/.internal/core/render/backend/CanvasRenderer.js.map +1 -1
  108. package/.internal/core/util/Disposer.d.ts +1 -0
  109. package/.internal/core/util/Disposer.d.ts.map +1 -1
  110. package/.internal/core/util/Disposer.js +3 -0
  111. package/.internal/core/util/Disposer.js.map +1 -1
  112. package/.internal/core/util/Modal.js +2 -2
  113. package/.internal/core/util/Modal.js.map +1 -1
  114. package/.internal/core/util/NumberFormatter.d.ts +8 -0
  115. package/.internal/core/util/NumberFormatter.d.ts.map +1 -1
  116. package/.internal/core/util/NumberFormatter.js +3 -0
  117. package/.internal/core/util/NumberFormatter.js.map +1 -1
  118. package/.internal/core/util/PopulateString.js +1 -2
  119. package/.internal/core/util/PopulateString.js.map +1 -1
  120. package/.internal/core/util/Utils.d.ts +4 -0
  121. package/.internal/core/util/Utils.d.ts.map +1 -1
  122. package/.internal/core/util/Utils.js +17 -0
  123. package/.internal/core/util/Utils.js.map +1 -1
  124. package/.internal/plugins/exporting/Exporting.d.ts.map +1 -1
  125. package/.internal/plugins/exporting/Exporting.js +3 -3
  126. package/.internal/plugins/exporting/Exporting.js.map +1 -1
  127. package/.internal/plugins/json/Classes-script.d.ts +2 -0
  128. package/.internal/plugins/json/Classes-script.d.ts.map +1 -1
  129. package/.internal/plugins/json/Classes-script.js +1 -0
  130. package/.internal/plugins/json/Classes-script.js.map +1 -1
  131. package/.internal/plugins/json/Classes.d.ts +2 -0
  132. package/.internal/plugins/json/Classes.d.ts.map +1 -1
  133. package/.internal/plugins/json/Classes.js +1 -0
  134. package/.internal/plugins/json/Classes.js.map +1 -1
  135. package/CHANGELOG.md +31 -0
  136. package/examples/javascript/flow-chord/package.json +4 -4
  137. package/examples/javascript/flow-chord-directed/package.json +4 -4
  138. package/examples/javascript/flow-chord-non-ribbon/package.json +4 -4
  139. package/examples/javascript/flow-sankey/package.json +4 -4
  140. package/examples/javascript/gauge/package.json +4 -4
  141. package/examples/javascript/gauge-bands/package.json +4 -4
  142. package/examples/javascript/hierarchy-force-directed/package.json +4 -4
  143. package/examples/javascript/hierarchy-pack/package.json +4 -4
  144. package/examples/javascript/hierarchy-partition/package.json +4 -4
  145. package/examples/javascript/hierarchy-sunburst/package.json +4 -4
  146. package/examples/javascript/hierarchy-tree/package.json +4 -4
  147. package/examples/javascript/hierarchy-treemap/package.json +4 -4
  148. package/examples/javascript/jest/package.json +4 -4
  149. package/examples/javascript/json-pie/package.json +4 -4
  150. package/examples/javascript/json-xy/package.json +4 -4
  151. package/examples/javascript/map-animating-along-lines/package.json +4 -4
  152. package/examples/javascript/map-day-and-night/package.json +4 -4
  153. package/examples/javascript/map-globe-rotate-to-country/package.json +4 -4
  154. package/examples/javascript/map-globe-with-projected-circles/package.json +4 -4
  155. package/examples/javascript/map-with-bubbles/package.json +4 -4
  156. package/examples/javascript/map-zoom-to-country/package.json +4 -4
  157. package/examples/javascript/misc-40-charts/package.json +4 -4
  158. package/examples/javascript/misc-microchart-grid/package.json +4 -4
  159. package/examples/javascript/pie-chart/package.json +4 -4
  160. package/examples/javascript/pie-donut-chart/package.json +4 -4
  161. package/examples/javascript/pie-variable-radius/package.json +4 -4
  162. package/examples/javascript/radar-column-iwatch-style/package.json +4 -4
  163. package/examples/javascript/radar-heat-map/package.json +4 -4
  164. package/examples/javascript/radar-line/package.json +4 -4
  165. package/examples/javascript/radar-time-line/package.json +4 -4
  166. package/examples/javascript/sliced-funnel/package.json +4 -4
  167. package/examples/javascript/sliced-pictorial-stacked/package.json +4 -4
  168. package/examples/javascript/sliced-pyramid/package.json +4 -4
  169. package/examples/javascript/stock-chart/package.json +4 -4
  170. package/examples/javascript/stock-chart-comparing-stocks/package.json +4 -4
  171. package/examples/javascript/stock-chart-data-granularity/package.json +4 -4
  172. package/examples/javascript/stock-chart-data-grouping/package.json +4 -4
  173. package/examples/javascript/stock-chart-intraday/package.json +4 -4
  174. package/examples/javascript/stock-chart-live/package.json +4 -4
  175. package/examples/javascript/stock-chart-volume-separate-panel/package.json +4 -4
  176. package/examples/javascript/venn-diagram/package.json +4 -4
  177. package/examples/javascript/wordcloud-with-data/package.json +4 -4
  178. package/examples/javascript/wordcloud-with-text/package.json +4 -4
  179. package/examples/javascript/xy-100-percent-stacked-column/package.json +4 -4
  180. package/examples/javascript/xy-animated-bullet-at-the-end-of-the-series/package.json +4 -4
  181. package/examples/javascript/xy-bubble/package.json +4 -4
  182. package/examples/javascript/xy-candlestick/package.json +4 -4
  183. package/examples/javascript/xy-clustered-column/package.json +4 -4
  184. package/examples/javascript/xy-column/package.json +4 -4
  185. package/examples/javascript/xy-comparing-series-google-analytics-style/package.json +4 -4
  186. package/examples/javascript/xy-data-grouping/package.json +4 -4
  187. package/examples/javascript/xy-draggable-range/package.json +4 -4
  188. package/examples/javascript/xy-drawing-series-with-mouse-or-touch/package.json +4 -4
  189. package/examples/javascript/xy-dumbbell plot/package.json +4 -4
  190. package/examples/javascript/xy-evenly-spaced-date-axis/package.json +4 -4
  191. package/examples/javascript/xy-line/package.json +4 -4
  192. package/examples/javascript/xy-line-highlight-on-legend-hover/package.json +4 -4
  193. package/examples/javascript/xy-live-data/package.json +4 -4
  194. package/examples/javascript/xy-multiple-synced-value-axes/package.json +4 -4
  195. package/examples/javascript/xy-ohlc/package.json +4 -4
  196. package/examples/javascript/xy-real-time-data-sorting/package.json +4 -4
  197. package/examples/javascript/xy-smoothed-line/package.json +4 -4
  198. package/examples/javascript/xy-stacked-and-clustered-column/package.json +4 -4
  199. package/examples/javascript/xy-stacked-column/package.json +4 -4
  200. package/examples/javascript/xy-stacked-step/package.json +4 -4
  201. package/examples/javascript/xy-stock/package.json +4 -4
  202. package/examples/javascript/xy-stock-comparing/package.json +4 -4
  203. package/examples/typescript/flow-chord/package.json +4 -4
  204. package/examples/typescript/flow-chord-directed/package.json +4 -4
  205. package/examples/typescript/flow-chord-non-ribbon/package.json +4 -4
  206. package/examples/typescript/flow-sankey/package.json +4 -4
  207. package/examples/typescript/gauge/package.json +4 -4
  208. package/examples/typescript/gauge-bands/package.json +4 -4
  209. package/examples/typescript/hierarchy-force-directed/package.json +4 -4
  210. package/examples/typescript/hierarchy-pack/package.json +4 -4
  211. package/examples/typescript/hierarchy-partition/package.json +4 -4
  212. package/examples/typescript/hierarchy-sunburst/package.json +4 -4
  213. package/examples/typescript/hierarchy-tree/package.json +4 -4
  214. package/examples/typescript/hierarchy-treemap/package.json +4 -4
  215. package/examples/typescript/jest/package.json +4 -4
  216. package/examples/typescript/json-pie/package.json +4 -4
  217. package/examples/typescript/json-xy/package.json +4 -4
  218. package/examples/typescript/map-animating-along-lines/package.json +4 -4
  219. package/examples/typescript/map-day-and-night/package.json +4 -4
  220. package/examples/typescript/map-globe-rotate-to-country/package.json +4 -4
  221. package/examples/typescript/map-globe-with-projected-circles/package.json +4 -4
  222. package/examples/typescript/map-with-bubbles/package.json +4 -4
  223. package/examples/typescript/map-zoom-to-country/package.json +4 -4
  224. package/examples/typescript/misc-40-charts/package.json +4 -4
  225. package/examples/typescript/misc-microchart-grid/package.json +4 -4
  226. package/examples/typescript/pie-chart/package.json +4 -4
  227. package/examples/typescript/pie-donut-chart/package.json +4 -4
  228. package/examples/typescript/pie-variable-radius/package.json +4 -4
  229. package/examples/typescript/radar-column-iwatch-style/package.json +4 -4
  230. package/examples/typescript/radar-heat-map/package.json +4 -4
  231. package/examples/typescript/radar-line/package.json +4 -4
  232. package/examples/typescript/radar-time-line/package.json +4 -4
  233. package/examples/typescript/sliced-funnel/package.json +4 -4
  234. package/examples/typescript/sliced-pictorial-stacked/package.json +4 -4
  235. package/examples/typescript/sliced-pyramid/package.json +4 -4
  236. package/examples/typescript/stock-chart/package.json +4 -4
  237. package/examples/typescript/stock-chart-comparing-stocks/package.json +4 -4
  238. package/examples/typescript/stock-chart-data-granularity/package.json +4 -4
  239. package/examples/typescript/stock-chart-data-grouping/package.json +4 -4
  240. package/examples/typescript/stock-chart-intraday/package.json +4 -4
  241. package/examples/typescript/stock-chart-live/package.json +4 -4
  242. package/examples/typescript/stock-chart-volume-separate-panel/package.json +4 -4
  243. package/examples/typescript/venn-diagram/package.json +4 -4
  244. package/examples/typescript/wordcloud-with-data/package.json +4 -4
  245. package/examples/typescript/wordcloud-with-text/package.json +4 -4
  246. package/examples/typescript/xy-100-percent-stacked-column/package.json +4 -4
  247. package/examples/typescript/xy-animated-bullet-at-the-end-of-the-series/package.json +4 -4
  248. package/examples/typescript/xy-bubble/package.json +4 -4
  249. package/examples/typescript/xy-candlestick/package.json +4 -4
  250. package/examples/typescript/xy-clustered-column/package.json +4 -4
  251. package/examples/typescript/xy-column/package.json +4 -4
  252. package/examples/typescript/xy-comparing-series-google-analytics-style/package.json +4 -4
  253. package/examples/typescript/xy-data-grouping/package.json +4 -4
  254. package/examples/typescript/xy-draggable-range/package.json +4 -4
  255. package/examples/typescript/xy-drawing-series-with-mouse-or-touch/package.json +4 -4
  256. package/examples/typescript/xy-dumbbell plot/package.json +4 -4
  257. package/examples/typescript/xy-evenly-spaced-date-axis/package.json +4 -4
  258. package/examples/typescript/xy-line/package.json +4 -4
  259. package/examples/typescript/xy-line-highlight-on-legend-hover/package.json +4 -4
  260. package/examples/typescript/xy-live-data/package.json +4 -4
  261. package/examples/typescript/xy-multiple-synced-value-axes/package.json +4 -4
  262. package/examples/typescript/xy-ohlc/package.json +4 -4
  263. package/examples/typescript/xy-real-time-data-sorting/package.json +4 -4
  264. package/examples/typescript/xy-smoothed-line/package.json +4 -4
  265. package/examples/typescript/xy-stacked-and-clustered-column/package.json +4 -4
  266. package/examples/typescript/xy-stacked-column/package.json +4 -4
  267. package/examples/typescript/xy-stacked-step/package.json +4 -4
  268. package/examples/typescript/xy-stock/package.json +4 -4
  269. package/examples/typescript/xy-stock-comparing/package.json +4 -4
  270. package/locales/fo_FO.d.ts +257 -0
  271. package/locales/fo_FO.d.ts.map +1 -0
  272. package/locales/fo_FO.js +391 -0
  273. package/locales/fo_FO.js.map +1 -0
  274. package/package.json +2 -3
@@ -0,0 +1,990 @@
1
+ /* index.d.ts (C) 2015-present SheetJS and contributors */
2
+ // TypeScript Version: 2.2
3
+ // import * as CFB from "cfb";
4
+ // import * as SSF from "ssf";
5
+
6
+ /** Version string */
7
+ export const version: string;
8
+
9
+ /** SSF Formatter Library */
10
+ // export { SSF };
11
+ export const SSF: any;
12
+
13
+ /** CFB Library */
14
+ // export { CFB };
15
+ export const CFB: any;
16
+
17
+ /** Set internal `fs` instance */
18
+ export function set_fs(fs: any): void;
19
+ /** Set internal codepage tables */
20
+ export function set_cptable(cptable: any): void;
21
+
22
+ /** NODE ONLY! Attempts to read filename and parse */
23
+ export function readFile(filename: string, opts?: ParsingOptions): WorkBook;
24
+ /** Attempts to parse data */
25
+ export function read(data: any, opts?: ParsingOptions): WorkBook;
26
+ /** Attempts to write or download workbook data to file */
27
+ export function writeFile(data: WorkBook, filename: string, opts?: WritingOptions): any;
28
+ /** Attempts to write or download workbook data to XLSX file */
29
+ export function writeFileXLSX(data: WorkBook, filename: string, opts?: WritingOptions): any;
30
+ /** Attempts to write or download workbook data to file asynchronously */
31
+ type CBFunc = () => void;
32
+ export function writeFileAsync(filename: string, data: WorkBook, opts: WritingOptions | CBFunc, cb?: CBFunc): any;
33
+ /** Attempts to write the workbook data */
34
+ export function write(data: WorkBook, opts: WritingOptions): any;
35
+ /** Attempts to write the workbook data as XLSX */
36
+ export function writeXLSX(data: WorkBook, opts: WritingOptions): any;
37
+
38
+ /** Utility Functions */
39
+ export const utils: XLSX$Utils;
40
+ /** Stream Utility Functions */
41
+ export const stream: StreamUtils;
42
+
43
+ /** Number Format (either a string or an index to the format table) */
44
+ export type NumberFormat = string | number;
45
+
46
+ /** Worksheet specifier (string, number, worksheet) */
47
+ export type WSSpec = string | number | WorkSheet;
48
+
49
+ /** Range specifier (string or range or cell), single-cell lifted to range */
50
+ export type RangeSpec = string | Range | CellAddress;
51
+
52
+ /** Basic File Properties */
53
+ export interface Properties {
54
+ /** Summary tab "Title" */
55
+ Title?: string;
56
+ /** Summary tab "Subject" */
57
+ Subject?: string;
58
+ /** Summary tab "Author" */
59
+ Author?: string;
60
+ /** Summary tab "Manager" */
61
+ Manager?: string;
62
+ /** Summary tab "Company" */
63
+ Company?: string;
64
+ /** Summary tab "Category" */
65
+ Category?: string;
66
+ /** Summary tab "Keywords" */
67
+ Keywords?: string;
68
+ /** Summary tab "Comments" */
69
+ Comments?: string;
70
+ /** Statistics tab "Last saved by" */
71
+ LastAuthor?: string;
72
+ /** Statistics tab "Created" */
73
+ CreatedDate?: Date;
74
+ }
75
+
76
+ /** Other supported properties */
77
+ export interface FullProperties extends Properties {
78
+ ModifiedDate?: Date;
79
+ Application?: string;
80
+ AppVersion?: string;
81
+ DocSecurity?: string;
82
+ HyperlinksChanged?: boolean;
83
+ SharedDoc?: boolean;
84
+ LinksUpToDate?: boolean;
85
+ ScaleCrop?: boolean;
86
+ Worksheets?: number;
87
+ SheetNames?: string[];
88
+ ContentStatus?: string;
89
+ LastPrinted?: string;
90
+ Revision?: string | number;
91
+ Version?: string;
92
+ Identifier?: string;
93
+ Language?: string;
94
+ }
95
+
96
+ export interface CommonOptions {
97
+ /**
98
+ * If true, throw errors when features are not understood
99
+ * @default false
100
+ */
101
+ WTF?: boolean;
102
+
103
+ /**
104
+ * When reading a file with VBA macros, expose CFB blob to `vbaraw` field
105
+ * When writing BIFF8/XLSB/XLSM, reseat `vbaraw` and export to file
106
+ * @default false
107
+ */
108
+ bookVBA?: boolean;
109
+
110
+ /**
111
+ * When reading a file, store dates as type d (default is n)
112
+ * When writing XLSX/XLSM file, use native date (default uses date codes)
113
+ * @default false
114
+ */
115
+ cellDates?: boolean;
116
+
117
+ /**
118
+ * Create cell objects for stub cells
119
+ * @default false
120
+ */
121
+ sheetStubs?: boolean;
122
+
123
+ /**
124
+ * When reading a file, save style/theme info to the .s field
125
+ * When writing a file, export style/theme info
126
+ * @default false
127
+ */
128
+ cellStyles?: boolean;
129
+
130
+ /**
131
+ * If defined and file is encrypted, use password
132
+ * @default ''
133
+ */
134
+ password?: string;
135
+ }
136
+
137
+ export interface DateNFOption {
138
+ /** Use specified date format */
139
+ dateNF?: NumberFormat;
140
+ }
141
+
142
+ /** Options for read and readFile */
143
+ export interface ParsingOptions extends CommonOptions {
144
+ /** Input data encoding */
145
+ type?: 'base64' | 'binary' | 'buffer' | 'file' | 'array' | 'string';
146
+
147
+ /**
148
+ * Default codepage for legacy files
149
+ *
150
+ * This requires encoding support to be loaded. It is automatically loaded
151
+ * in `xlsx.full.min.js` and in CommonJS / Extendscript, but an extra step
152
+ * is required in React / Angular / Webpack ESM deployments.
153
+ *
154
+ * Check the relevant guide https://docs.sheetjs.com/docs/getting-started/
155
+ */
156
+ codepage?: number;
157
+
158
+ /**
159
+ * Save formulae to the .f field
160
+ * @default true
161
+ */
162
+ cellFormula?: boolean;
163
+
164
+ /**
165
+ * Parse rich text and save HTML to the .h field
166
+ * @default true
167
+ */
168
+ cellHTML?: boolean;
169
+
170
+ /**
171
+ * Save number format string to the .z field
172
+ * @default false
173
+ */
174
+ cellNF?: boolean;
175
+
176
+ /**
177
+ * Generate formatted text to the .w field
178
+ * @default true
179
+ */
180
+ cellText?: boolean;
181
+
182
+ /** Override default date format (code 14) */
183
+ dateNF?: string;
184
+
185
+ /** Field Separator ("Delimiter" override) */
186
+ FS?: string;
187
+
188
+ /**
189
+ * If >0, read the first sheetRows rows
190
+ * @default 0
191
+ */
192
+ sheetRows?: number;
193
+
194
+ /**
195
+ * If true, parse calculation chains
196
+ * @default false
197
+ */
198
+ bookDeps?: boolean;
199
+
200
+ /**
201
+ * If true, add raw files to book object
202
+ * @default false
203
+ */
204
+ bookFiles?: boolean;
205
+
206
+ /**
207
+ * If true, only parse enough to get book metadata
208
+ * @default false
209
+ */
210
+ bookProps?: boolean;
211
+
212
+ /**
213
+ * If true, only parse enough to get the sheet names
214
+ * @default false
215
+ */
216
+ bookSheets?: boolean;
217
+
218
+ /** If specified, only parse the specified sheets or sheet names */
219
+ sheets?: number | string | Array<number | string>;
220
+
221
+ /** If true, plaintext parsing will not parse values */
222
+ raw?: boolean;
223
+
224
+ /** If true, ignore "dimensions" records and guess range using every cell */
225
+ nodim?: boolean;
226
+
227
+ /** If true, preserve _xlfn. prefixes in formula function names */
228
+ xlfn?: boolean;
229
+
230
+ /** If true, generate dense-mode worksheets */
231
+ dense?: boolean;
232
+
233
+ /**
234
+ * For single-sheet formats (including CSV), override the worksheet name
235
+ * @default "Sheet1"
236
+ */
237
+ sheet?: string;
238
+
239
+ PRN?: boolean;
240
+ }
241
+
242
+
243
+ /** Options for write and writeFile */
244
+ export interface WritingOptions extends CommonOptions {
245
+ /** Output data encoding */
246
+ type?: 'base64' | 'binary' | 'buffer' | 'file' | 'array' | 'string';
247
+
248
+ /**
249
+ * Generate Shared String Table
250
+ * @default false
251
+ */
252
+ bookSST?: boolean;
253
+
254
+ /**
255
+ * File format of generated workbook
256
+ * @default 'xlsx'
257
+ */
258
+ bookType?: BookType;
259
+
260
+ /**
261
+ * Use ZIP compression for ZIP-based formats
262
+ * @default false
263
+ */
264
+ compression?: boolean;
265
+
266
+ /**
267
+ * Suppress "number stored as text" errors in generated files
268
+ * @default true
269
+ */
270
+ ignoreEC?: boolean;
271
+
272
+ /** Override workbook properties on save */
273
+ Props?: Properties;
274
+
275
+ /**
276
+ * Desired codepage for legacy file formats
277
+ *
278
+ * This requires encoding support to be loaded. It is automatically loaded
279
+ * in `xlsx.full.min.js` and in CommonJS / Extendscript, but an extra step
280
+ * is required in React / Angular / Webpack / ESM deployments.
281
+ *
282
+ * Check the relevant guide https://docs.sheetjs.com/docs/getting-started/
283
+ */
284
+ codepage?: number;
285
+
286
+ /** Base64 encoding of NUMBERS base for exports */
287
+ numbers?: string;
288
+
289
+ /**
290
+ * For single-sheet formats, export the specified worksheet.
291
+ *
292
+ * The property must be a string (sheet name) or number (`SheetNames` index).
293
+ *
294
+ * If this option is omitted, the first worksheet will be exported.
295
+ */
296
+ sheet?: string | number;
297
+ }
298
+
299
+ /** Workbook Object */
300
+ export interface WorkBook {
301
+ /**
302
+ * A dictionary of the worksheets in the workbook.
303
+ * Use SheetNames to reference these.
304
+ */
305
+ Sheets: { [sheet: string]: WorkSheet };
306
+
307
+ /** Ordered list of the sheet names in the workbook */
308
+ SheetNames: string[];
309
+
310
+ /** Standard workbook Properties */
311
+ Props?: FullProperties;
312
+
313
+ /** Custom workbook Properties */
314
+ Custprops?: object;
315
+
316
+ Workbook?: WBProps;
317
+
318
+ vbaraw?: any;
319
+
320
+ /** Original file type (when parsed with `read` or `readFile`) */
321
+ bookType?: BookType;
322
+ }
323
+
324
+ export interface SheetProps {
325
+ /** Name of Sheet */
326
+ name?: string;
327
+
328
+ /** Sheet Visibility (0=Visible 1=Hidden 2=VeryHidden) */
329
+ Hidden?: 0 | 1 | 2;
330
+
331
+ /** Name of Document Module in associated VBA Project */
332
+ CodeName?: string;
333
+ }
334
+
335
+ /** Defined Name Object */
336
+ export interface DefinedName {
337
+ /** Name */
338
+ Name: string;
339
+
340
+ /** Reference */
341
+ Ref: string;
342
+
343
+ /** Scope (undefined for workbook scope) */
344
+ Sheet?: number;
345
+
346
+ /** Name comment */
347
+ Comment?: string;
348
+ }
349
+
350
+ /** Workbook-Level Attributes */
351
+ export interface WBProps {
352
+ /** Sheet Properties */
353
+ Sheets?: SheetProps[];
354
+
355
+ /** Defined Names */
356
+ Names?: DefinedName[];
357
+
358
+ /** Workbook Views */
359
+ Views?: WBView[];
360
+
361
+ /** Other Workbook Properties */
362
+ WBProps?: WorkbookProperties;
363
+ }
364
+
365
+ /** Workbook View */
366
+ export interface WBView {
367
+ /** Right-to-left mode */
368
+ RTL?: boolean;
369
+ }
370
+
371
+ /** Other Workbook Properties */
372
+ export interface WorkbookProperties {
373
+ /** Worksheet Epoch (1904 if true, 1900 if false) */
374
+ date1904?: boolean;
375
+
376
+ /** Warn or strip personally identifying info on save */
377
+ filterPrivacy?: boolean;
378
+
379
+ /** Name of Document Module in associated VBA Project */
380
+ CodeName?: string;
381
+ }
382
+
383
+ /** DBF Field Header */
384
+ export interface DBFField {
385
+ /** Original Field Name */
386
+ name?: string;
387
+
388
+ /** Field Type */
389
+ type?: string;
390
+
391
+ /** Field Length */
392
+ len?: number;
393
+
394
+ /** Field Decimal Count */
395
+ dec?: number;
396
+ }
397
+
398
+ /** Column Properties Object */
399
+ export interface ColInfo {
400
+ /* --- visibility --- */
401
+
402
+ /** if true, the column is hidden */
403
+ hidden?: boolean;
404
+
405
+ /* --- column width --- */
406
+
407
+ /** width in Excel's "Max Digit Width", width*256 is integral */
408
+ width?: number;
409
+
410
+ /** width in screen pixels */
411
+ wpx?: number;
412
+
413
+ /** width in "characters" */
414
+ wch?: number;
415
+
416
+ /** outline / group level */
417
+ level?: number;
418
+
419
+ /** Excel's "Max Digit Width" unit, always integral */
420
+ MDW?: number;
421
+
422
+ /** DBF Field Header */
423
+ DBF?: DBFField;
424
+ }
425
+
426
+ /** Row Properties Object */
427
+ export interface RowInfo {
428
+ /* --- visibility --- */
429
+
430
+ /** if true, the column is hidden */
431
+ hidden?: boolean;
432
+
433
+ /* --- row height --- */
434
+
435
+ /** height in screen pixels */
436
+ hpx?: number;
437
+
438
+ /** height in points */
439
+ hpt?: number;
440
+
441
+ /** outline / group level */
442
+ level?: number;
443
+ }
444
+
445
+ /**
446
+ * Write sheet protection properties.
447
+ */
448
+ export interface ProtectInfo {
449
+ /**
450
+ * The password for formats that support password-protected sheets
451
+ * (XLSX/XLSB/XLS). The writer uses the XOR obfuscation method.
452
+ */
453
+ password?: string;
454
+ /**
455
+ * Select locked cells
456
+ * @default: true
457
+ */
458
+ selectLockedCells?: boolean;
459
+ /**
460
+ * Select unlocked cells
461
+ * @default: true
462
+ */
463
+ selectUnlockedCells?: boolean;
464
+ /**
465
+ * Format cells
466
+ * @default: false
467
+ */
468
+ formatCells?: boolean;
469
+ /**
470
+ * Format columns
471
+ * @default: false
472
+ */
473
+ formatColumns?: boolean;
474
+ /**
475
+ * Format rows
476
+ * @default: false
477
+ */
478
+ formatRows?: boolean;
479
+ /**
480
+ * Insert columns
481
+ * @default: false
482
+ */
483
+ insertColumns?: boolean;
484
+ /**
485
+ * Insert rows
486
+ * @default: false
487
+ */
488
+ insertRows?: boolean;
489
+ /**
490
+ * Insert hyperlinks
491
+ * @default: false
492
+ */
493
+ insertHyperlinks?: boolean;
494
+ /**
495
+ * Delete columns
496
+ * @default: false
497
+ */
498
+ deleteColumns?: boolean;
499
+ /**
500
+ * Delete rows
501
+ * @default: false
502
+ */
503
+ deleteRows?: boolean;
504
+ /**
505
+ * Sort
506
+ * @default: false
507
+ */
508
+ sort?: boolean;
509
+ /**
510
+ * Filter
511
+ * @default: false
512
+ */
513
+ autoFilter?: boolean;
514
+ /**
515
+ * Use PivotTable reports
516
+ * @default: false
517
+ */
518
+ pivotTables?: boolean;
519
+ /**
520
+ * Edit objects
521
+ * @default: true
522
+ */
523
+ objects?: boolean;
524
+ /**
525
+ * Edit scenarios
526
+ * @default: true
527
+ */
528
+ scenarios?: boolean;
529
+ }
530
+
531
+ /** Page Margins -- see Excel Page Setup .. Margins diagram for explanation */
532
+ export interface MarginInfo {
533
+ /** Left side margin (inches) */
534
+ left?: number;
535
+ /** Right side margin (inches) */
536
+ right?: number;
537
+ /** Top side margin (inches) */
538
+ top?: number;
539
+ /** Bottom side margin (inches) */
540
+ bottom?: number;
541
+ /** Header top margin (inches) */
542
+ header?: number;
543
+ /** Footer bottom height (inches) */
544
+ footer?: number;
545
+ }
546
+ export type SheetType = 'sheet' | 'chart';
547
+ export type SheetKeys = string | MarginInfo | SheetType;
548
+ /** General object representing a Sheet (worksheet or chartsheet) */
549
+ export interface Sheet {
550
+ /**
551
+ * Sparse-mode store cells with keys corresponding to A1-style address
552
+ * Dense-mode store cells in the '!data' key
553
+ * Special keys start with '!'
554
+ */
555
+ [cell: string]: CellObject | CellObject[][] | SheetKeys | any;
556
+
557
+ /**
558
+ * Dense-mode worksheets store data in an array of arrays
559
+ *
560
+ * Cells are accessed with sheet['!data'][R][C] (where R and C are 0-indexed)
561
+ */
562
+ '!data'?: CellObject[][];
563
+
564
+ /** Sheet type */
565
+ '!type'?: SheetType;
566
+
567
+ /** Sheet Range (A1-style) */
568
+ '!ref'?: string;
569
+
570
+ /** Page Margins */
571
+ '!margins'?: MarginInfo;
572
+ }
573
+ /** General object representing a dense Sheet (worksheet or chartsheet) */
574
+ export interface DenseSheet extends Sheet {
575
+ /**
576
+ * Special keys start with '!'
577
+ * Dense-mode worksheets store data in the '!data' key
578
+ */
579
+ [cell: string]: CellObject[][] | SheetKeys | any;
580
+
581
+ /**
582
+ * Dense-mode worksheets store data in an array of arrays
583
+ *
584
+ * Cells are accessed with sheet['!data'][R][C] (where R and C are 0-indexed)
585
+ */
586
+ '!data': CellObject[][];
587
+ }
588
+ /** General object representing a sparse Sheet (worksheet or chartsheet) */
589
+ export interface SparseSheet extends Sheet {
590
+ /**
591
+ * Sparse-mode store cells with keys corresponding to A1-style address
592
+ * Cells are accessed with sheet[addr]
593
+ */
594
+ '!data': never;
595
+ }
596
+
597
+
598
+ /** AutoFilter properties */
599
+ export interface AutoFilterInfo {
600
+ /** Range of the AutoFilter table */
601
+ ref: string;
602
+ }
603
+
604
+ export type WSKeys = SheetKeys | ColInfo[] | RowInfo[] | Range[] | ProtectInfo | AutoFilterInfo;
605
+
606
+ /** Worksheet Object */
607
+ export interface WorkSheet extends Sheet {
608
+ /**
609
+ * Indexing with a cell address string maps to a cell object
610
+ * Special keys start with '!'
611
+ */
612
+ [cell: string]: CellObject | WSKeys | any;
613
+
614
+ /** Column Info */
615
+ '!cols'?: ColInfo[];
616
+
617
+ /** Row Info */
618
+ '!rows'?: RowInfo[];
619
+
620
+ /** Merge Ranges */
621
+ '!merges'?: Range[];
622
+
623
+ /** Worksheet Protection info */
624
+ '!protect'?: ProtectInfo;
625
+
626
+ /** AutoFilter info */
627
+ '!autofilter'?: AutoFilterInfo;
628
+ }
629
+ /** Dense Worksheet Object */
630
+ export interface DenseWorkSheet extends DenseSheet {
631
+ /**
632
+ * Dense-mode worksheets store data in an array of arrays
633
+ *
634
+ * Cells are accessed with sheet['!data'][R][C] (where R and C are 0-indexed)
635
+ */
636
+ '!data': CellObject[][];
637
+ }
638
+
639
+ /**
640
+ * Worksheet Object with CellObject type
641
+ *
642
+ * The normal Worksheet type uses indexer of type `any` -- this enforces CellObject
643
+ */
644
+ export interface StrictWS { [addr: string]: CellObject; }
645
+
646
+ /**
647
+ * The Excel data type for a cell.
648
+ * b Boolean, n Number, e error, s String, d Date, z Stub
649
+ */
650
+ export type ExcelDataType = 'b' | 'n' | 'e' | 's' | 'd' | 'z';
651
+
652
+ /**
653
+ * Type of generated workbook
654
+ * @default 'xlsx'
655
+ */
656
+ export type BookType = 'xlsx' | 'xlsm' | 'xlsb' | 'xls' | 'xla' | 'biff8' | 'biff5' | 'biff2' | 'xlml' | 'ods' | 'fods' | 'csv' | 'txt' | 'sylk' | 'slk' | 'html' | 'dif' | 'rtf' | 'prn' | 'eth' | 'dbf' | 'numbers';
657
+
658
+ /** Comment element */
659
+ export interface Comment {
660
+ /** Author of the comment block */
661
+ a?: string;
662
+
663
+ /** Plaintext of the comment */
664
+ t: string;
665
+
666
+ /** If true, mark the comment as a part of a thread */
667
+ T?: boolean;
668
+ }
669
+
670
+ /** Cell comments */
671
+ export interface Comments extends Array<Comment> {
672
+ /** Hide comment by default */
673
+ hidden?: boolean;
674
+ }
675
+
676
+ /** Link object */
677
+ export interface Hyperlink {
678
+ /** Target of the link (HREF) */
679
+ Target: string;
680
+
681
+ /** Plaintext tooltip to display when mouse is over cell */
682
+ Tooltip?: string;
683
+ }
684
+
685
+ /** Worksheet Cell Object */
686
+ export interface CellObject {
687
+ /** The raw value of the cell. Can be omitted if a formula is specified */
688
+ v?: string | number | boolean | Date;
689
+
690
+ /** Formatted text (if applicable) */
691
+ w?: string;
692
+
693
+ /**
694
+ * The Excel Data Type of the cell.
695
+ * b Boolean, n Number, e Error, s String, d Date, z Empty
696
+ */
697
+ t: ExcelDataType;
698
+
699
+ /** Cell formula (if applicable) */
700
+ f?: string;
701
+
702
+ /** Range of enclosing array if formula is array formula (if applicable) */
703
+ F?: string;
704
+
705
+ /** If true, cell is a dynamic array formula (for supported file formats) */
706
+ D?: boolean;
707
+
708
+ /** Rich text encoding (if applicable) */
709
+ r?: any;
710
+
711
+ /** HTML rendering of the rich text (if applicable) */
712
+ h?: string;
713
+
714
+ /** Comments associated with the cell */
715
+ c?: Comments;
716
+
717
+ /** Number format string associated with the cell (if requested) */
718
+ z?: NumberFormat;
719
+
720
+ /** Cell hyperlink object (.Target holds link, .tooltip is tooltip) */
721
+ l?: Hyperlink;
722
+
723
+ /** The style/theme of the cell (if applicable) */
724
+ s?: any;
725
+ }
726
+
727
+ /** Simple Cell Address */
728
+ export interface CellAddress {
729
+ /** Column number */
730
+ c: number;
731
+ /** Row number */
732
+ r: number;
733
+ }
734
+
735
+ /** Range object (representing ranges like "A1:B2") */
736
+ export interface Range {
737
+ /** Starting cell */
738
+ s: CellAddress;
739
+ /** Ending cell */
740
+ e: CellAddress;
741
+ }
742
+
743
+ export interface Sheet2CSVOpts extends DateNFOption {
744
+ /** Field Separator ("delimiter") */
745
+ FS?: string;
746
+
747
+ /** Record Separator ("row separator") */
748
+ RS?: string;
749
+
750
+ /** Remove trailing field separators in each record */
751
+ strip?: boolean;
752
+
753
+ /** Include blank lines in the CSV output */
754
+ blankrows?: boolean;
755
+
756
+ /** Skip hidden rows and columns in the CSV output */
757
+ skipHidden?: boolean;
758
+
759
+ /** Force quotes around fields */
760
+ forceQuotes?: boolean;
761
+
762
+ /** if true, return raw numbers; if false, return formatted numbers */
763
+ rawNumbers?: boolean;
764
+ }
765
+
766
+ export interface OriginOption {
767
+ /** Top-Left cell for operation (CellAddress or A1 string or row) */
768
+ origin?: number | string | CellAddress;
769
+ }
770
+
771
+ export interface Sheet2HTMLOpts {
772
+ /** TABLE element id attribute */
773
+ id?: string;
774
+
775
+ /** Add contenteditable to every cell */
776
+ editable?: boolean;
777
+
778
+ /** Header HTML */
779
+ header?: string;
780
+
781
+ /** Footer HTML */
782
+ footer?: string;
783
+ }
784
+
785
+ export interface Sheet2JSONOpts extends DateNFOption {
786
+ /** Output format */
787
+ header?: "A"|number|string[];
788
+
789
+ /** Override worksheet range */
790
+ range?: any;
791
+
792
+ /** Include or omit blank lines in the output */
793
+ blankrows?: boolean;
794
+
795
+ /** Default value for null/undefined values */
796
+ defval?: any;
797
+
798
+ /** if true, return raw data; if false, return formatted text */
799
+ raw?: boolean;
800
+
801
+ /** if true, skip hidden rows and columns */
802
+ skipHidden?: boolean;
803
+
804
+ /** if true, return raw numbers; if false, return formatted numbers */
805
+ rawNumbers?: boolean;
806
+ }
807
+
808
+ export interface AOA2SheetOpts extends CommonOptions, DateNFOption {
809
+ /**
810
+ * Create cell objects for stub cells
811
+ * @default false
812
+ */
813
+ sheetStubs?: boolean;
814
+ }
815
+
816
+ export interface SheetAOAOpts extends AOA2SheetOpts, OriginOption {}
817
+
818
+ export interface JSON2SheetOpts extends CommonOptions, DateNFOption, OriginOption {
819
+ /** Use specified column order */
820
+ header?: string[];
821
+
822
+ /** Skip header row in generated sheet */
823
+ skipHeader?: boolean;
824
+ }
825
+
826
+ export interface Table2SheetOpts extends CommonOptions, DateNFOption, OriginOption {
827
+ /** If true, plaintext parsing will not parse values */
828
+ raw?: boolean;
829
+
830
+ /**
831
+ * If >0, read the first sheetRows rows
832
+ * @default 0
833
+ */
834
+ sheetRows?: number;
835
+
836
+ /** If true, hidden rows and cells will not be parsed */
837
+ display?: boolean;
838
+
839
+ /**
840
+ * Override the worksheet name
841
+ * @default "Sheet1"
842
+ */
843
+ sheet?: string;
844
+ }
845
+
846
+ export interface Table2BookOpts extends Table2SheetOpts {
847
+ /**
848
+ * Override the worksheet name
849
+ * @default "Sheet1"
850
+ */
851
+ sheet?: string;
852
+ }
853
+
854
+ /** General utilities */
855
+ export interface XLSX$Utils {
856
+ /* --- Import Functions --- */
857
+
858
+ /** Converts an array of arrays of JS data to a worksheet. */
859
+ aoa_to_sheet<T>(data: T[][], opts?: AOA2SheetOpts): WorkSheet;
860
+ aoa_to_sheet(data: any[][], opts?: AOA2SheetOpts): WorkSheet;
861
+
862
+ /** Converts an array of JS objects to a worksheet. */
863
+ json_to_sheet<T>(data: T[], opts?: JSON2SheetOpts): WorkSheet;
864
+ json_to_sheet(data: any[], opts?: JSON2SheetOpts): WorkSheet;
865
+
866
+ /** BROWSER ONLY! Converts a TABLE DOM element to a worksheet. */
867
+ table_to_sheet(data: any, opts?: Table2SheetOpts): WorkSheet;
868
+ table_to_book(data: any, opts?: Table2BookOpts): WorkBook;
869
+ sheet_add_dom(ws: WorkSheet, data: any, opts?: Table2SheetOpts): WorkSheet;
870
+
871
+ /* --- Export Functions --- */
872
+
873
+ /** Converts a worksheet object to an array of JSON objects */
874
+ sheet_to_json<T>(worksheet: WorkSheet, opts?: Sheet2JSONOpts): T[];
875
+ sheet_to_json(worksheet: WorkSheet, opts?: Sheet2JSONOpts): any[][];
876
+ sheet_to_json(worksheet: WorkSheet, opts?: Sheet2JSONOpts): any[];
877
+
878
+ /** Generates delimiter-separated-values output */
879
+ sheet_to_csv(worksheet: WorkSheet, options?: Sheet2CSVOpts): string;
880
+
881
+ /** Generates UTF16 Formatted Text */
882
+ sheet_to_txt(worksheet: WorkSheet, options?: Sheet2CSVOpts): string;
883
+
884
+ /** Generates HTML */
885
+ sheet_to_html(worksheet: WorkSheet, options?: Sheet2HTMLOpts): string;
886
+
887
+ /** Generates a list of the formulae (with value fallbacks) */
888
+ sheet_to_formulae(worksheet: WorkSheet): string[];
889
+
890
+ /** Generates DIF */
891
+ sheet_to_dif(worksheet: WorkSheet, options?: Sheet2HTMLOpts): string;
892
+
893
+ /** Generates SYLK (Symbolic Link) */
894
+ sheet_to_slk(worksheet: WorkSheet, options?: Sheet2HTMLOpts): string;
895
+
896
+ /** Generates ETH */
897
+ sheet_to_eth(worksheet: WorkSheet, options?: Sheet2HTMLOpts): string;
898
+
899
+ /* --- Cell Address Utilities --- */
900
+
901
+ /** Converts 0-indexed cell address to A1 form */
902
+ encode_cell(cell: CellAddress): string;
903
+
904
+ /** Converts 0-indexed row to A1 form */
905
+ encode_row(row: number): string;
906
+
907
+ /** Converts 0-indexed column to A1 form */
908
+ encode_col(col: number): string;
909
+
910
+ /** Converts 0-indexed range to A1 form */
911
+ encode_range(s: CellAddress, e: CellAddress): string;
912
+ encode_range(r: Range): string;
913
+
914
+ /** Converts A1 cell address to 0-indexed form */
915
+ decode_cell(address: string): CellAddress;
916
+
917
+ /** Converts A1 row to 0-indexed form */
918
+ decode_row(row: string): number;
919
+
920
+ /** Converts A1 column to 0-indexed form */
921
+ decode_col(col: string): number;
922
+
923
+ /** Converts A1 range to 0-indexed form */
924
+ decode_range(range: string): Range;
925
+
926
+ /** Format cell */
927
+ format_cell(cell: CellObject, v?: any, opts?: any): string;
928
+
929
+ /* --- General Utilities --- */
930
+
931
+ /** Creates a new workbook */
932
+ book_new(): WorkBook;
933
+
934
+ /** Append a worksheet to a workbook, returns new worksheet name */
935
+ book_append_sheet(workbook: WorkBook, worksheet: WorkSheet, name?: string, roll?: boolean): string;
936
+
937
+ /** Set sheet visibility (visible/hidden/very hidden) */
938
+ book_set_sheet_visibility(workbook: WorkBook, sheet: number|string, visibility: number): void;
939
+
940
+ /** Set number format for a cell */
941
+ cell_set_number_format(cell: CellObject, fmt: string|number): CellObject;
942
+
943
+ /** Set hyperlink for a cell */
944
+ cell_set_hyperlink(cell: CellObject, target: string, tooltip?: string): CellObject;
945
+
946
+ /** Set internal link for a cell */
947
+ cell_set_internal_link(cell: CellObject, target: string, tooltip?: string): CellObject;
948
+
949
+ /** Add comment to a cell */
950
+ cell_add_comment(cell: CellObject, text: string, author?: string): void;
951
+
952
+ /** Assign an Array Formula to a range */
953
+ sheet_set_array_formula(ws: WorkSheet, range: Range|string, formula: string, dynamic?: boolean): WorkSheet;
954
+
955
+ /** Add an array of arrays of JS data to a worksheet */
956
+ sheet_add_aoa<T>(ws: WorkSheet, data: T[][], opts?: SheetAOAOpts): WorkSheet;
957
+ sheet_add_aoa(ws: WorkSheet, data: any[][], opts?: SheetAOAOpts): WorkSheet;
958
+
959
+ /** Add an array of JS objects to a worksheet */
960
+ sheet_add_json(ws: WorkSheet, data: any[], opts?: JSON2SheetOpts): WorkSheet;
961
+ sheet_add_json<T>(ws: WorkSheet, data: T[], opts?: JSON2SheetOpts): WorkSheet;
962
+
963
+
964
+ consts: XLSX$Consts;
965
+ }
966
+
967
+ export interface XLSX$Consts {
968
+ /* --- Sheet Visibility --- */
969
+
970
+ /** Visibility: Visible */
971
+ SHEET_VISIBLE: 0;
972
+
973
+ /** Visibility: Hidden */
974
+ SHEET_HIDDEN: 1;
975
+
976
+ /** Visibility: Very Hidden */
977
+ SHEET_VERYHIDDEN: 2;
978
+ }
979
+
980
+ /** NODE ONLY! these return Readable Streams */
981
+ export interface StreamUtils {
982
+ /** CSV output stream, generate one line at a time */
983
+ to_csv(sheet: WorkSheet, opts?: Sheet2CSVOpts): any;
984
+ /** HTML output stream, generate one line at a time */
985
+ to_html(sheet: WorkSheet, opts?: Sheet2HTMLOpts): any;
986
+ /** JSON object stream, generate one row at a time */
987
+ to_json(sheet: WorkSheet, opts?: Sheet2JSONOpts): any;
988
+ /** Set `Readable` (internal) */
989
+ set_readable(Readable: any): void;
990
+ }