@amcharts/amcharts5 5.9.0 → 5.9.1

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 (198) hide show
  1. package/.internal/bundled/xlsx/CHANGELOG.md +25 -0
  2. package/.internal/bundled/xlsx/README.md +10 -9
  3. package/.internal/bundled/xlsx/dist/xlsx.core.min.js +16 -16
  4. package/.internal/bundled/xlsx/dist/xlsx.core.min.map +1 -1
  5. package/.internal/bundled/xlsx/dist/xlsx.extendscript.js +3904 -2572
  6. package/.internal/bundled/xlsx/dist/xlsx.full.min.js +18 -17
  7. package/.internal/bundled/xlsx/dist/xlsx.full.min.map +1 -1
  8. package/.internal/bundled/xlsx/dist/xlsx.mini.min.js +9 -9
  9. package/.internal/bundled/xlsx/dist/xlsx.mini.min.map +1 -1
  10. package/.internal/bundled/xlsx/package.json +37 -1
  11. package/.internal/bundled/xlsx/types/index.d.ts +60 -17
  12. package/.internal/bundled/xlsx/xlsx.js +3904 -2572
  13. package/.internal/bundled/xlsx/xlsx.mjs +3902 -2573
  14. package/.internal/charts/stock/StockChart.d.ts +9 -0
  15. package/.internal/charts/stock/StockChart.d.ts.map +1 -1
  16. package/.internal/charts/stock/StockChart.js +13 -0
  17. package/.internal/charts/stock/StockChart.js.map +1 -1
  18. package/.internal/charts/stock/StockChartDefaultTheme.d.ts.map +1 -1
  19. package/.internal/charts/stock/StockChartDefaultTheme.js +2 -1
  20. package/.internal/charts/stock/StockChartDefaultTheme.js.map +1 -1
  21. package/.internal/charts/stock/drawing/DrawingSeries.d.ts +1 -0
  22. package/.internal/charts/stock/drawing/DrawingSeries.d.ts.map +1 -1
  23. package/.internal/charts/stock/drawing/DrawingSeries.js +35 -23
  24. package/.internal/charts/stock/drawing/DrawingSeries.js.map +1 -1
  25. package/.internal/charts/stock/drawing/EllipseSeries.d.ts +1 -0
  26. package/.internal/charts/stock/drawing/EllipseSeries.d.ts.map +1 -1
  27. package/.internal/charts/stock/drawing/EllipseSeries.js +4 -0
  28. package/.internal/charts/stock/drawing/EllipseSeries.js.map +1 -1
  29. package/.internal/charts/stock/drawing/LabelSeries.d.ts.map +1 -1
  30. package/.internal/charts/stock/drawing/LabelSeries.js +1 -0
  31. package/.internal/charts/stock/drawing/LabelSeries.js.map +1 -1
  32. package/.internal/charts/stock/drawing/SimpleLineSeries.d.ts +1 -0
  33. package/.internal/charts/stock/drawing/SimpleLineSeries.d.ts.map +1 -1
  34. package/.internal/charts/stock/drawing/SimpleLineSeries.js +6 -0
  35. package/.internal/charts/stock/drawing/SimpleLineSeries.js.map +1 -1
  36. package/.internal/charts/stock/toolbar/DrawingControl.d.ts +7 -1
  37. package/.internal/charts/stock/toolbar/DrawingControl.d.ts.map +1 -1
  38. package/.internal/charts/stock/toolbar/DrawingControl.js +20 -1
  39. package/.internal/charts/stock/toolbar/DrawingControl.js.map +1 -1
  40. package/.internal/charts/stock/toolbar/StockIcons.d.ts.map +1 -1
  41. package/.internal/charts/stock/toolbar/StockIcons.js +1 -0
  42. package/.internal/charts/stock/toolbar/StockIcons.js.map +1 -1
  43. package/.internal/charts/stock/toolbar/StockToolbarCSS.d.ts.map +1 -1
  44. package/.internal/charts/stock/toolbar/StockToolbarCSS.js +2 -1
  45. package/.internal/charts/stock/toolbar/StockToolbarCSS.js.map +1 -1
  46. package/.internal/charts/xy/series/LineSeries.d.ts.map +1 -1
  47. package/.internal/charts/xy/series/LineSeries.js +8 -4
  48. package/.internal/charts/xy/series/LineSeries.js.map +1 -1
  49. package/.internal/core/Registry.js +1 -1
  50. package/.internal/core/Registry.js.map +1 -1
  51. package/.internal/core/Root.d.ts +3 -2
  52. package/.internal/core/Root.d.ts.map +1 -1
  53. package/.internal/core/Root.js +21 -8
  54. package/.internal/core/Root.js.map +1 -1
  55. package/CHANGELOG.md +16 -0
  56. package/examples/javascript/flow-arc-horizontal/package.json +1 -1
  57. package/examples/javascript/flow-arc-vertical/package.json +1 -1
  58. package/examples/javascript/flow-chord/package.json +1 -1
  59. package/examples/javascript/flow-chord-directed/package.json +1 -1
  60. package/examples/javascript/flow-chord-non-ribbon/package.json +1 -1
  61. package/examples/javascript/flow-sankey/package.json +1 -1
  62. package/examples/javascript/gauge/package.json +1 -1
  63. package/examples/javascript/gauge-bands/package.json +1 -1
  64. package/examples/javascript/hierarchy-force-directed/package.json +1 -1
  65. package/examples/javascript/hierarchy-pack/package.json +1 -1
  66. package/examples/javascript/hierarchy-partition/package.json +1 -1
  67. package/examples/javascript/hierarchy-sunburst/package.json +1 -1
  68. package/examples/javascript/hierarchy-tree/package.json +1 -1
  69. package/examples/javascript/hierarchy-treemap/package.json +1 -1
  70. package/examples/javascript/hierarchy-voronoi-treemap/package.json +1 -1
  71. package/examples/javascript/jest/package.json +1 -1
  72. package/examples/javascript/json-pie/package.json +1 -1
  73. package/examples/javascript/json-xy/package.json +1 -1
  74. package/examples/javascript/map-animating-along-lines/package.json +1 -1
  75. package/examples/javascript/map-clustered-points/package.json +1 -1
  76. package/examples/javascript/map-day-and-night/package.json +1 -1
  77. package/examples/javascript/map-globe-rotate-to-country/package.json +1 -1
  78. package/examples/javascript/map-globe-with-projected-circles/package.json +1 -1
  79. package/examples/javascript/map-with-bubbles/package.json +1 -1
  80. package/examples/javascript/map-zoom-to-country/package.json +1 -1
  81. package/examples/javascript/misc-40-charts/package.json +1 -1
  82. package/examples/javascript/misc-microchart-grid/package.json +1 -1
  83. package/examples/javascript/pie-chart/package.json +1 -1
  84. package/examples/javascript/pie-donut-chart/package.json +1 -1
  85. package/examples/javascript/pie-variable-radius/package.json +1 -1
  86. package/examples/javascript/radar-column-iwatch-style/package.json +1 -1
  87. package/examples/javascript/radar-heat-map/package.json +1 -1
  88. package/examples/javascript/radar-line/package.json +1 -1
  89. package/examples/javascript/radar-time-line/package.json +1 -1
  90. package/examples/javascript/sliced-funnel/package.json +1 -1
  91. package/examples/javascript/sliced-pictorial-stacked/package.json +1 -1
  92. package/examples/javascript/sliced-pyramid/package.json +1 -1
  93. package/examples/javascript/stock-chart/package.json +1 -1
  94. package/examples/javascript/stock-chart-comparing-stocks/package.json +1 -1
  95. package/examples/javascript/stock-chart-data-granularity/package.json +1 -1
  96. package/examples/javascript/stock-chart-data-grouping/package.json +1 -1
  97. package/examples/javascript/stock-chart-intraday/package.json +1 -1
  98. package/examples/javascript/stock-chart-live/package.json +1 -1
  99. package/examples/javascript/stock-chart-volume-separate-panel/package.json +1 -1
  100. package/examples/javascript/venn-diagram/package.json +1 -1
  101. package/examples/javascript/wordcloud-with-data/package.json +1 -1
  102. package/examples/javascript/wordcloud-with-text/package.json +1 -1
  103. package/examples/javascript/xy-100-percent-stacked-column/package.json +1 -1
  104. package/examples/javascript/xy-animated-bullet-at-the-end-of-the-series/package.json +1 -1
  105. package/examples/javascript/xy-bubble/package.json +1 -1
  106. package/examples/javascript/xy-candlestick/package.json +1 -1
  107. package/examples/javascript/xy-clustered-column/package.json +1 -1
  108. package/examples/javascript/xy-column/package.json +1 -1
  109. package/examples/javascript/xy-comparing-series-google-analytics-style/package.json +1 -1
  110. package/examples/javascript/xy-data-grouping/package.json +1 -1
  111. package/examples/javascript/xy-draggable-range/package.json +1 -1
  112. package/examples/javascript/xy-drawing-series-with-mouse-or-touch/package.json +1 -1
  113. package/examples/javascript/xy-dumbbell plot/package.json +1 -1
  114. package/examples/javascript/xy-evenly-spaced-date-axis/package.json +1 -1
  115. package/examples/javascript/xy-line/package.json +1 -1
  116. package/examples/javascript/xy-line-highlight-on-legend-hover/package.json +1 -1
  117. package/examples/javascript/xy-live-data/package.json +1 -1
  118. package/examples/javascript/xy-multiple-synced-value-axes/package.json +1 -1
  119. package/examples/javascript/xy-ohlc/package.json +1 -1
  120. package/examples/javascript/xy-real-time-data-sorting/package.json +1 -1
  121. package/examples/javascript/xy-smoothed-line/package.json +1 -1
  122. package/examples/javascript/xy-stacked-and-clustered-column/package.json +1 -1
  123. package/examples/javascript/xy-stacked-column/package.json +1 -1
  124. package/examples/javascript/xy-stacked-step/package.json +1 -1
  125. package/examples/javascript/xy-stock/package.json +1 -1
  126. package/examples/javascript/xy-stock-comparing/package.json +1 -1
  127. package/examples/typescript/flow-arc-horizontal/package.json +1 -1
  128. package/examples/typescript/flow-arc-vertical/package.json +1 -1
  129. package/examples/typescript/flow-chord/package.json +1 -1
  130. package/examples/typescript/flow-chord-directed/package.json +1 -1
  131. package/examples/typescript/flow-chord-non-ribbon/package.json +1 -1
  132. package/examples/typescript/flow-sankey/package.json +1 -1
  133. package/examples/typescript/gauge/package.json +1 -1
  134. package/examples/typescript/gauge-bands/package.json +1 -1
  135. package/examples/typescript/hierarchy-force-directed/package.json +1 -1
  136. package/examples/typescript/hierarchy-pack/package.json +1 -1
  137. package/examples/typescript/hierarchy-partition/package.json +1 -1
  138. package/examples/typescript/hierarchy-sunburst/package.json +1 -1
  139. package/examples/typescript/hierarchy-tree/package.json +1 -1
  140. package/examples/typescript/hierarchy-treemap/package.json +1 -1
  141. package/examples/typescript/hierarchy-voronoi-treemap/package.json +1 -1
  142. package/examples/typescript/jest/package.json +1 -1
  143. package/examples/typescript/json-pie/package.json +1 -1
  144. package/examples/typescript/json-xy/package.json +1 -1
  145. package/examples/typescript/map-animating-along-lines/package.json +1 -1
  146. package/examples/typescript/map-clustered-points/package.json +1 -1
  147. package/examples/typescript/map-day-and-night/package.json +1 -1
  148. package/examples/typescript/map-globe-rotate-to-country/package.json +1 -1
  149. package/examples/typescript/map-globe-with-projected-circles/package.json +1 -1
  150. package/examples/typescript/map-with-bubbles/package.json +1 -1
  151. package/examples/typescript/map-zoom-to-country/package.json +1 -1
  152. package/examples/typescript/misc-40-charts/package.json +1 -1
  153. package/examples/typescript/misc-microchart-grid/package.json +1 -1
  154. package/examples/typescript/pie-chart/package.json +1 -1
  155. package/examples/typescript/pie-donut-chart/package.json +1 -1
  156. package/examples/typescript/pie-variable-radius/package.json +1 -1
  157. package/examples/typescript/radar-column-iwatch-style/package.json +1 -1
  158. package/examples/typescript/radar-heat-map/package.json +1 -1
  159. package/examples/typescript/radar-line/package.json +1 -1
  160. package/examples/typescript/radar-time-line/package.json +1 -1
  161. package/examples/typescript/sliced-funnel/package.json +1 -1
  162. package/examples/typescript/sliced-pictorial-stacked/package.json +1 -1
  163. package/examples/typescript/sliced-pyramid/package.json +1 -1
  164. package/examples/typescript/stock-chart/package.json +1 -1
  165. package/examples/typescript/stock-chart-comparing-stocks/package.json +1 -1
  166. package/examples/typescript/stock-chart-data-granularity/package.json +1 -1
  167. package/examples/typescript/stock-chart-data-grouping/package.json +1 -1
  168. package/examples/typescript/stock-chart-intraday/package.json +1 -1
  169. package/examples/typescript/stock-chart-live/package.json +1 -1
  170. package/examples/typescript/stock-chart-volume-separate-panel/package.json +1 -1
  171. package/examples/typescript/venn-diagram/package.json +1 -1
  172. package/examples/typescript/wordcloud-with-data/package.json +1 -1
  173. package/examples/typescript/wordcloud-with-text/package.json +1 -1
  174. package/examples/typescript/xy-100-percent-stacked-column/package.json +1 -1
  175. package/examples/typescript/xy-animated-bullet-at-the-end-of-the-series/package.json +1 -1
  176. package/examples/typescript/xy-bubble/package.json +1 -1
  177. package/examples/typescript/xy-candlestick/package.json +1 -1
  178. package/examples/typescript/xy-clustered-column/package.json +1 -1
  179. package/examples/typescript/xy-column/package.json +1 -1
  180. package/examples/typescript/xy-comparing-series-google-analytics-style/package.json +1 -1
  181. package/examples/typescript/xy-data-grouping/package.json +1 -1
  182. package/examples/typescript/xy-draggable-range/package.json +1 -1
  183. package/examples/typescript/xy-drawing-series-with-mouse-or-touch/package.json +1 -1
  184. package/examples/typescript/xy-dumbbell plot/package.json +1 -1
  185. package/examples/typescript/xy-evenly-spaced-date-axis/package.json +1 -1
  186. package/examples/typescript/xy-line/package.json +1 -1
  187. package/examples/typescript/xy-line-highlight-on-legend-hover/package.json +1 -1
  188. package/examples/typescript/xy-live-data/package.json +1 -1
  189. package/examples/typescript/xy-multiple-synced-value-axes/package.json +1 -1
  190. package/examples/typescript/xy-ohlc/package.json +1 -1
  191. package/examples/typescript/xy-real-time-data-sorting/package.json +1 -1
  192. package/examples/typescript/xy-smoothed-line/package.json +1 -1
  193. package/examples/typescript/xy-stacked-and-clustered-column/package.json +1 -1
  194. package/examples/typescript/xy-stacked-column/package.json +1 -1
  195. package/examples/typescript/xy-stacked-step/package.json +1 -1
  196. package/examples/typescript/xy-stock/package.json +1 -1
  197. package/examples/typescript/xy-stock-comparing/package.json +1 -1
  198. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xlsx",
3
- "version": "0.19.3",
3
+ "version": "0.20.2",
4
4
  "author": "sheetjs",
5
5
  "description": "SheetJS Spreadsheet data parser and writer",
6
6
  "keywords": [
@@ -39,6 +39,36 @@
39
39
  "require": "./xlsx.js",
40
40
  "types": "./types/index.d.ts"
41
41
  },
42
+ "./dist/xlsx.core.min": {
43
+ "import": "./dist/xlsx.core.min.js",
44
+ "require": "./dist/xlsx.core.min.js",
45
+ "types": "./types/index.d.ts"
46
+ },
47
+ "./dist/xlsx.core.min.js": {
48
+ "import": "./dist/xlsx.core.min.js",
49
+ "require": "./dist/xlsx.core.min.js",
50
+ "types": "./types/index.d.ts"
51
+ },
52
+ "./dist/xlsx.full.min": {
53
+ "import": "./dist/xlsx.full.min.js",
54
+ "require": "./dist/xlsx.full.min.js",
55
+ "types": "./types/index.d.ts"
56
+ },
57
+ "./dist/xlsx.full.min.js": {
58
+ "import": "./dist/xlsx.full.min.js",
59
+ "require": "./dist/xlsx.full.min.js",
60
+ "types": "./types/index.d.ts"
61
+ },
62
+ "./dist/xlsx.mini.min": {
63
+ "import": "./dist/xlsx.mini.min.js",
64
+ "require": "./dist/xlsx.mini.min.js",
65
+ "types": "./types/index.d.ts"
66
+ },
67
+ "./dist/xlsx.mini.min.js": {
68
+ "import": "./dist/xlsx.mini.min.js",
69
+ "require": "./dist/xlsx.mini.min.js",
70
+ "types": "./types/index.d.ts"
71
+ },
42
72
  "./dist/xlsx.zahl": {
43
73
  "import": "./dist/xlsx.zahl.mjs",
44
74
  "require": "./dist/xlsx.zahl.js",
@@ -137,6 +167,12 @@
137
167
  ]
138
168
  },
139
169
  "homepage": "https://sheetjs.com/",
170
+ "files": [
171
+ "CHANGELOG.md", "LICENSE", "README.md", "bower.json", "package.json", "xlsx.js", "xlsx.mjs", "xlsxworker.js",
172
+ "bin/xlsx.njs",
173
+ "dist/LICENSE", "dist/*.mjs", "dist/*.js", "dist/*.map", "dist/*.d.ts",
174
+ "types/index.d.ts", "types/tsconfig.json"
175
+ ],
140
176
  "bugs": {
141
177
  "url": "https://git.sheetjs.com/SheetJS/sheetjs/issues"
142
178
  },
@@ -139,8 +139,25 @@ export interface DateNFOption {
139
139
  dateNF?: NumberFormat;
140
140
  }
141
141
 
142
+ export interface UTCOption {
143
+ /**
144
+ * For plaintext formats, interpret ambiguous datetimes in UTC
145
+ * If explicitly set to `false`, dates will be parsed in local time.
146
+ *
147
+ * The `true` option is consistent with spreadsheet application export.
148
+ *
149
+ * @default true
150
+ */
151
+ UTC?: boolean;
152
+ }
153
+
154
+ export interface DenseOption {
155
+ /** If true, generate dense-mode worksheets */
156
+ dense?: boolean;
157
+ }
158
+
142
159
  /** Options for read and readFile */
143
- export interface ParsingOptions extends CommonOptions {
160
+ export interface ParsingOptions extends UTCOption, CommonOptions, DenseOption {
144
161
  /** Input data encoding */
145
162
  type?: 'base64' | 'binary' | 'buffer' | 'file' | 'array' | 'string';
146
163
 
@@ -227,9 +244,6 @@ export interface ParsingOptions extends CommonOptions {
227
244
  /** If true, preserve _xlfn. prefixes in formula function names */
228
245
  xlfn?: boolean;
229
246
 
230
- /** If true, generate dense-mode worksheets */
231
- dense?: boolean;
232
-
233
247
  /**
234
248
  * For single-sheet formats (including CSV), override the worksheet name
235
249
  * @default "Sheet1"
@@ -263,6 +277,9 @@ export interface WritingOptions extends CommonOptions {
263
277
  */
264
278
  compression?: boolean;
265
279
 
280
+ /** Overwride theme XML when exporting to XLSX/XLSM/XLSB */
281
+ themeXLSX?: string;
282
+
266
283
  /**
267
284
  * Suppress "number stored as text" errors in generated files
268
285
  * @default true
@@ -294,6 +311,12 @@ export interface WritingOptions extends CommonOptions {
294
311
  * If this option is omitted, the first worksheet will be exported.
295
312
  */
296
313
  sheet?: string | number;
314
+
315
+ /** Field Separator ("delimiter") for CSV / Text output */
316
+ FS?: string;
317
+
318
+ /** Record Separator ("row separator") for CSV / Text output */
319
+ RS?: string;
297
320
  }
298
321
 
299
322
  /** Workbook Object */
@@ -803,9 +826,27 @@ export interface Sheet2JSONOpts extends DateNFOption {
803
826
 
804
827
  /** if true, return raw numbers; if false, return formatted numbers */
805
828
  rawNumbers?: boolean;
829
+
830
+ /**
831
+ * If true, return dates whose UTC interpretation is correct
832
+ * By default, return dates whose local interpretation is correct
833
+ *
834
+ * @default false
835
+ */
836
+ UTC?: boolean;
837
+ }
838
+
839
+ export interface UTCDateOption {
840
+ /**
841
+ * If true, dates are interpreted using the UTC methods
842
+ * By default, dates are interpreted in the local timezone
843
+ *
844
+ * @default false
845
+ */
846
+ UTC?: boolean;
806
847
  }
807
848
 
808
- export interface AOA2SheetOpts extends CommonOptions, DateNFOption {
849
+ export interface AOA2SheetOpts extends CommonOptions, UTCDateOption, DateNFOption, DenseOption {
809
850
  /**
810
851
  * Create cell objects for stub cells
811
852
  * @default false
@@ -815,7 +856,7 @@ export interface AOA2SheetOpts extends CommonOptions, DateNFOption {
815
856
 
816
857
  export interface SheetAOAOpts extends AOA2SheetOpts, OriginOption {}
817
858
 
818
- export interface JSON2SheetOpts extends CommonOptions, DateNFOption, OriginOption {
859
+ export interface JSON2SheetOpts extends CommonOptions, UTCDateOption, DateNFOption, OriginOption, DenseOption {
819
860
  /** Use specified column order */
820
861
  header?: string[];
821
862
 
@@ -841,6 +882,14 @@ export interface Table2SheetOpts extends CommonOptions, DateNFOption, OriginOpti
841
882
  * @default "Sheet1"
842
883
  */
843
884
  sheet?: string;
885
+
886
+ /**
887
+ * If true, interpret date strings as if they are UTC.
888
+ * By default, date strings are interpreted in the local timezone.
889
+ *
890
+ * @default false
891
+ */
892
+ UTC?: boolean;
844
893
  }
845
894
 
846
895
  export interface Table2BookOpts extends Table2SheetOpts {
@@ -887,15 +936,6 @@ export interface XLSX$Utils {
887
936
  /** Generates a list of the formulae (with value fallbacks) */
888
937
  sheet_to_formulae(worksheet: WorkSheet): string[];
889
938
 
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
939
  /* --- Cell Address Utilities --- */
900
940
 
901
941
  /** Converts 0-indexed cell address to A1 form */
@@ -928,8 +968,11 @@ export interface XLSX$Utils {
928
968
 
929
969
  /* --- General Utilities --- */
930
970
 
931
- /** Creates a new workbook */
932
- book_new(): WorkBook;
971
+ /** Create a new workbook */
972
+ book_new(ws?: WorkSheet, wsname?: string): WorkBook;
973
+
974
+ /** Create a new worksheet */
975
+ sheet_new(opts?: DenseOption): WorkSheet;
933
976
 
934
977
  /** Append a worksheet to a workbook, returns new worksheet name */
935
978
  book_append_sheet(workbook: WorkBook, worksheet: WorkSheet, name?: string, roll?: boolean): string;