style-xlsx-m 0.1.1 → 0.1.3

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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## ℹ️ About
4
4
 
5
- SheetJS and with Style! Get and Export Excel with basic styling options using JavaScript. But only get in xlsx and xlsm format.
5
+ SheetJS and with Style! Get and Export Excel with basic styling options using JavaScript. But only get in xlsx and xlsm format. (this is now a beta version)
6
6
 
7
7
  <p align="center">
8
8
  <a href="https://github.com/gitbrent/xlsx-js-style/">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "style-xlsx-m",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "author": "mor8t",
5
5
  "description": "SheetJS and with Style! Get and Export Excel with basic styling options using JavaScript. But only get in xlsx and xlsm format.",
6
6
  "keywords": [
package/xlsx.js CHANGED
@@ -10151,35 +10151,28 @@ function parse_borders(t, styles, themes, opts) {
10151
10151
  /* 18.8.? color CT_Color */case '<color':
10152
10152
  if(!color) color = {};
10153
10153
  if(y.auto) color.auto = parsexmlbool(y.auto);
10154
-
10155
- if(y.rgb){ color.rgb = y.rgb.slice(-6);}
10156
- else if(y.indexed) {
10157
- color.index = parseInt(y.indexed, 10);
10158
- var icv = XLSIcv[color.index];
10159
- if(color.index == 81) icv = XLSIcv[1];
10160
- if(!icv) icv = XLSIcv[1]; //throw new Error(x); // note: 206 is valid
10161
- color.rgb = icv[0].toString(16) + icv[1].toString(16) + icv[2].toString(16);
10162
- } else if(y.theme) {
10163
- color = {}
10164
- color.theme = parseInt(y.theme, 10);
10165
- if(y.tint) color.tint = parseFloat(y.tint);
10166
- if(y.theme && themes.themeElements && themes.themeElements.clrScheme) {
10167
- color.rgb = rgb_tint(themes.themeElements.clrScheme[color.theme].rgb, color.tint || 0);
10168
- }
10169
- }
10170
- // console.log(color)
10171
- if(color.index && color.rgb && !color.theme){
10172
- if(color.index == 64){
10173
- color = {rgb:'000'}
10174
- }else{
10175
- color = {rgb:color.rgb}
10176
- }
10177
- }else if(!color.index && color.rgb && color.theme){
10178
- color = {rgb:color.rgb}
10179
- }else{
10180
- color = {index:color.index}
10154
+ if(y.rgb){ color.rgb = y.rgb.slice(-6);}
10155
+ else if(y.indexed) {
10156
+ color.index = parseInt(y.indexed, 10);
10157
+ var icv = XLSIcv[color.index];
10158
+ if(color.index == 81) icv = XLSIcv[1];
10159
+ if(!icv) icv = XLSIcv[1]; //throw new Error(x); // note: 206 is valid
10160
+ color.rgb = icv[0].toString(16) + icv[1].toString(16) + icv[2].toString(16);
10161
+ } else if(y.theme) {
10162
+ color = {}
10163
+ color.theme = parseInt(y.theme, 10);
10164
+ if(y.tint) color.tint = parseFloat(y.tint);
10165
+ if(y.theme && themes.themeElements && themes.themeElements.clrScheme) {
10166
+ color.rgb = rgb_tint(themes.themeElements.clrScheme[color.theme].rgb, color.tint || 0);
10181
10167
  }
10182
- break;
10168
+ }
10169
+ if(color.index && color.rgb && !color.theme){
10170
+ if(color.index == 64) color = {rgb:'000'}
10171
+ else color = {rgb:color.rgb}
10172
+ }
10173
+ else if(!color.index && color.rgb && color.theme) color = {rgb:color.rgb};
10174
+ else color = {index:color.index};
10175
+ break;
10183
10176
  case '<color/>': case '</color>': break;
10184
10177
 
10185
10178
  /* 18.2.10 extLst CT_ExtensionList ? */
@@ -14532,18 +14525,11 @@ function safe_format(p, fmtid, fillid, opts, themes, styles, fontid, borderid,cf
14532
14525
  } catch(e) { if(opts.WTF) throw e; }
14533
14526
  if(!opts.cellStyles) return;
14534
14527
  // if(fillid != null) try {
14535
- // // p.s = {
14536
- // // ...styles.Fills[fillid],
14537
- // // };
14538
- // // console.log('p style',p)
14539
- // // const styles = {}
14540
- // // console.log(styles.Fills[fillid])
14528
+ // // p.s = {...styles.Fills[fillid]};
14541
14529
  // const pss = {...styles.Fills[fillid]}
14542
14530
  // if (pss.fgColor && pss.fgColor.theme && !pss.fgColor.rgb) {
14543
14531
  // p.s.fgColor.rgb = rgb_tint(themes.themeElements.clrScheme[pss.fgColor.theme].rgb, pss.fgColor.tint || 0);
14544
14532
  // if(opts.WTF) p.s.fgColor.raw_rgb = themes.themeElements.clrScheme[pss.fgColor.theme].rgb;
14545
- // const bg = { rgb: pss.fgColor.rgb };
14546
- // p.s.fill = {...pss.fill, fgColor: bg, bgColor: bg };
14547
14533
  // }
14548
14534
  // if (pss.bgColor && (pss.bgColor.theme || pss.bgColor.theme == 0)) {
14549
14535
  // p.s.Fills[fillid].bgColor.rgb = rgb_tint(themes.themeElements.clrScheme[pss.bgColor.theme].rgb, pss.bgColor.tint || 0);
@@ -14552,74 +14538,28 @@ function safe_format(p, fmtid, fillid, opts, themes, styles, fontid, borderid,cf
14552
14538
  // if(pss.patternType){
14553
14539
  // if(pss.fgColor.rgb){
14554
14540
  // const bg = { rgb: pss.fgColor.rgb };
14555
- // p.s.fill = {
14556
- // fgColor: bg,
14557
- // bgColor: bg ,
14541
+ // p.s.fill = {fgColor: bg, bgColor: bg ,
14558
14542
  // patternType: pss.patternType == 'solid' ? 'solid' : 'none',
14559
14543
  // }
14560
14544
  // }else {
14561
- // p.s.fill = {
14562
- // patternType: pss.patternType == 'solid' ? 'solid' : 'none',
14563
- // }
14545
+ // p.s.fill = {patternType: pss.patternType == 'solid' ? 'solid' : 'none',}
14564
14546
  // }
14565
14547
  // }
14566
14548
  // } catch(e) { if(opts.WTF && styles.Fills) throw e; }
14567
14549
  if(fontid != null){
14568
- p.s = {
14569
- ...p.s,
14570
- ...styles.Fonts[fontid],
14571
- }
14572
- if (p.s.sz) {
14573
- p.s.font = { ...p.s.font, sz: p.s.sz };
14574
- }
14575
- if (p.s.color) {
14576
- p.s.font = {
14577
- ...p.s.font,
14578
- color: p.s.color,
14579
- };
14580
- }
14581
- if (p.s.underline) {
14582
- p.s.font = {
14583
- ...p.s.font,
14584
- underline: p.s.underline ? true : false,
14585
- };
14586
- }
14587
- if (p.s.strike) {
14588
- p.s.font = {
14589
- ...p.s.font,
14590
- strike: p.s.strike ? true : false,
14591
- };
14592
- }
14593
- if (p.s.bold) {
14594
- p.s.font = {
14595
- ...p.s.font,
14596
- bold: p.s.bold ? true : false,
14597
- };
14598
- }
14599
- if (p.s.italic) {
14600
- p.s.font = {
14601
- ...p.s.font,
14602
- italic: p.s.italic ? true : false,
14603
- };
14604
- }
14605
- if (p.s.name) {
14606
- p.s.font = {
14607
- ...p.s.font,
14608
- name: p.s.name,
14609
- };
14610
- }
14611
- }
14612
- if(borderid != null){
14613
- p.s.border = styles.Borders[borderid]
14614
- }
14615
- if(cf.alignment){
14616
- p.s = {
14617
- ...p.s,
14618
- alignment:cf.alignment
14619
- }
14620
- }
14550
+ p.s = {...p.s,...styles.Fonts[fontid],}
14551
+ if (p.s.sz) p.s.font = { ...p.s.font, sz: p.s.sz };
14552
+ if (p.s.color) p.s.font = {...p.s.font, color: p.s.color,};
14553
+ if (p.s.underline) p.s.font = { ...p.s.font, underline: p.s.underline ? true : false,};
14554
+ if (p.s.strike) p.s.font = { ...p.s.font, strike: p.s.strike ? true : false, };
14555
+ if (p.s.bold) p.s.font = { ...p.s.font, bold: p.s.bold ? true : false, };
14556
+ if (p.s.italic) p.s.font = { ...p.s.font, italic: p.s.italic ? true : false, };
14557
+ if (p.s.name) p.s.font = { ...p.s.font, name: p.s.name, };
14558
+ }
14559
+ if(borderid != null) p.s.border = styles.Borders[borderid]
14560
+ if(cf.alignment) p.s = {...p.s, alignment:cf.alignment}
14621
14561
  if(p.s && p.t == 'z'){
14622
- p.t = 's'
14562
+ p.t = 's';
14623
14563
  // p.z = 'General'
14624
14564
  p.v = ' '
14625
14565
  p.w = ' '
@@ -14948,29 +14888,6 @@ var parse_ws_xml_data = (function() {
14948
14888
  var refregex = /ref=["']([^"']*)["']/;
14949
14889
  var match_v = matchtag("v"), match_f = matchtag("f");
14950
14890
 
14951
- //00000000000000000000000000000000000000000000000000000000000000000000000000000000
14952
- //00000000000000000000000000000000000000000000000000000000000000000000000000000000
14953
- //00000000000000000000000000000000000000000000000000000000000000000000000000000000
14954
- //00000000000000000000000000000000000000000000000000000000000000000000000000000000
14955
- //00000000000000000000000000000000000000000000000000000000000000000000000000000000
14956
- //00000000000000000000000000000000000000000000000000000000000000000000000000000000
14957
- //00000000000000000000000000000000000000000000000000000000000000000000000000000000
14958
- //00000000000000000000000000000000000000000000000000000000000000000000000000000000
14959
- //00000000000000000000000000000000000000000000000000000000000000000000000000000000
14960
- //00000000000000000000000000000000000000000000000000000000000000000000000000000000
14961
- //00000000000000000000000000000000000000000000000000000000000000000000000000000000
14962
- //00000000000000000000000000000000000000000000000000000000000000000000000000000000
14963
- //00000000000000000000000000000000000000000000000000000000000000000000000000000000
14964
- //00000000000000000000000000000000000000000000000000000000000000000000000000000000
14965
- //00000000000000000000000000000000000000000000000000000000000000000000000000000000
14966
- //00000000000000000000000000000000000000000000000000000000000000000000000000000000
14967
- //00000000000000000000000000000000000000000000000000000000000000000000000000000000
14968
- //00000000000000000000000000000000000000000000000000000000000000000000000000000000
14969
- //00000000000000000000000000000000000000000000000000000000000000000000000000000000
14970
- //00000000000000000000000000000000000000000000000000000000000000000000000000000000
14971
- //00000000000000000000000000000000000000000000000000000000000000000000000000000000
14972
- //00000000000000000000000000000000000000000000000000000000000000000000000000000000
14973
- //00000000000000000000000000000000000000000000000000000000000000000000000000000000
14974
14891
  return function parse_ws_xml_data(sdata, s, opts, guess, themes, styles) {
14975
14892
  // console.log('1111111111111111111111111111111111111111111111111111111111111111111111111111111111111')
14976
14893
  var ri = 0, x = "", cells = [], cref = [], idx=0, i=0, cc=0, d="", p;
@@ -23451,30 +23368,6 @@ function parse_zip(zip, opts) {
23451
23368
  Themes: themes,
23452
23369
  SSF: dup(table_fmt)
23453
23370
  });
23454
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
23455
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
23456
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
23457
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
23458
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
23459
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
23460
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
23461
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
23462
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
23463
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
23464
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
23465
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
23466
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
23467
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
23468
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
23469
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
23470
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
23471
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
23472
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
23473
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
23474
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
23475
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
23476
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
23477
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
23478
23371
  if(opts && opts.bookFiles) {
23479
23372
  if(zip.files) {
23480
23373
  out.keys = entries;
@@ -24438,7 +24331,8 @@ function book_new() {
24438
24331
  }
24439
24332
 
24440
24333
  /* add a worksheet to the end of a given workbook */
24441
- function book_append_sheet(wb, ws, name, roll) {
24334
+ function book_append_sheet(wb, ws, name, roll, nameSheet) {
24335
+ console.log('book_append_sheet')
24442
24336
  var i = 1;
24443
24337
  if(!name) for(; i <= 0xFFFF; ++i, name = undefined) if(wb.SheetNames.indexOf(name = "Sheet" + i) == -1) break;
24444
24338
  if(!name || wb.SheetNames.length >= 0xFFFF) throw new Error("Too many worksheets");
@@ -24452,7 +24346,21 @@ function book_append_sheet(wb, ws, name, roll) {
24452
24346
  if(wb.SheetNames.indexOf(name) >= 0) throw new Error("Worksheet with name |" + name + "| already exists!");
24453
24347
 
24454
24348
  wb.SheetNames.push(name);
24455
- wb.Sheets[name] = ws;
24349
+ if(nameSheet && typeof nameSheet == 'string'){
24350
+ const wsws = wb.Sheets[nameSheet]
24351
+ const nws = {...ws}
24352
+ Object.keys(ws).map((el) => {
24353
+ if(typeof +el.split('')[el.length-1] == 'number'){
24354
+ nws[el].s = {...wsws[el].s}
24355
+ }
24356
+ })
24357
+ // console.log(nws['A1'],wsws['A1'])
24358
+ wb.Sheets[nameSheet] = nws;
24359
+ }else{
24360
+ wb.Sheets[name] = ws;
24361
+ }
24362
+ // console.log(ws)
24363
+ // console.log('name',name,'name 2',Object.keys(wb.Sheets)[0])
24456
24364
  return name;
24457
24365
  }
24458
24366
 
package/CHANGELOG.md DELETED
@@ -1,264 +0,0 @@
1
- # CHANGELOG
2
-
3
- This log is intended to keep track of backwards-incompatible changes, including
4
- but not limited to API changes and file location changes. Minor behavioral
5
- changes may not be included if they are not expected to break existing code.
6
-
7
- ## v0.18.5
8
-
9
- * Enabled `sideEffects: false` in package.json
10
- * Basic NUMBERS write support
11
-
12
- ## v0.18.4
13
-
14
- * CSV output omits trailing record separator
15
- * Properly terminate NodeJS Streams
16
- * DBF preserve column types on import and use when applicable on export
17
-
18
- ## v0.18.3
19
-
20
- * Removed references to `require` and `process` in browser builds
21
-
22
- ## v0.18.2
23
-
24
- * Hotfix for unicode processing of XLSX exports
25
-
26
- ## v0.18.1
27
-
28
- * Removed Node ESM build script and folded into standard ESM build
29
- * Removed undocumented aliases including `make_formulae` and `get_formulae`
30
-
31
- ## v0.18.0
32
-
33
- * Browser scripts only expose `XLSX` variable
34
- * Module no longer ships with `dist/jszip.js` browser script
35
-
36
- ## v0.17.4
37
-
38
- * CLI script moved to `xlsx-cli` package
39
-
40
- ## v0.17.3
41
-
42
- * `window.XLSX` explicit assignment to satiate LWC
43
- * CSV Proper formatting of errors
44
- * HTML emit data-\* attributes
45
-
46
- ## v0.17.2
47
-
48
- * Browser and Node optional ESM support
49
- * DSV correct handling of bare quotes (h/t @bgamrat)
50
-
51
- ## v0.17.1
52
-
53
- * `XLSB` writer uses short cell form when viable
54
-
55
- ## 0.17.0:
56
-
57
- * mini build includes ODS parse/write support
58
- * DBF explicitly cap worksheet to 1<<20 rows
59
- * XLS throw errors on truncated records
60
-
61
- ## v0.16.2
62
-
63
- * Disabled `PRN` parsing by default (better support for CSV without delimeters)
64
-
65
- ## v0.16.1
66
-
67
- * skip empty custom property tags if data is absent (fixes DocSecurity issue)
68
- * HTML output add raw value, type, number format
69
- * DOM parse look for `v` / `t` / `z` attributes when determining value
70
- * double quotes in properties escaped using `_x0022_`
71
- * changed AMD structure for NetSuite and other RequireJS implementations
72
- - `encode_cell` and `decode_cell` do not rely on `encode_col` / `decode_col`
73
-
74
- ## v0.16.0
75
-
76
- * Date handling changed
77
- * XLML certain tag tests are now case insensitive
78
- * Fixed potentially vulnerable regular expressions
79
-
80
- ## v0.15.6
81
-
82
- * CFB prevent infinite loop
83
- * ODS empty cells marked as stub (type "z")
84
- * `cellStyles` option implies `sheetStubs`
85
-
86
- ## v0.15.5
87
-
88
- * `sheets` parse option to specify which sheets to parse
89
-
90
- ## v0.15.4
91
-
92
- * AOA utilities properly preserve number formats
93
- * Number formats captured in stub cells
94
-
95
- ## v0.15.3
96
-
97
- * Properties and Custom Properties properly XML-encoded
98
-
99
- ## v0.15.2
100
-
101
- - `sheet_get_cell` utility function
102
- - `sheet_to_json` explicitly support `null` as alias for default behavior
103
- - `encode_col` throw on negative column index
104
- - HTML properly handle whitespace around tags in a run
105
- - HTML use `id` option on write
106
- - Files starting with `0x09` followed by a display character are now TSV files
107
- - XLS parse references col/row indices mod by the correct number for BIFF ver
108
- - XLSX comments moved to avoid overlapping cell
109
- - XLSB outline level
110
- - AutoFilter update `_FilterDatabase` defined name on write
111
- - XLML skip CDATA blocks
112
-
113
- ## v0.15.1 (2019-08-14)
114
-
115
- * XLSX ignore XML artifacts
116
- * HTML capture and persist merges
117
-
118
- ## v0.15.0
119
-
120
- * `dist/xlsx.mini.min.js` mini build with XLSX read/write and some utilities
121
- * Removed legacy conversion utility functions
122
-
123
- ## v0.14.5
124
-
125
- * XLS PtgNameX lookup
126
- * XLS always create stub cells for blank cells with comments
127
-
128
-
129
- ## v0.14.4
130
-
131
- * Better treatment of `skipHidden` in CSV output
132
- * Ignore CLSID in XLS
133
- * SYLK 7-bit character encoding
134
- * SYLK and DBF codepage support
135
-
136
- ## v0.14.3
137
-
138
- * Proper shifting of addresses in Shared Formulae
139
-
140
- ## v0.14.2
141
-
142
- * Proper XML encoding of comments
143
-
144
- ## v0.14.1
145
-
146
- * raw cell objects can be passed to `sheet_add_aoa`
147
- * `_FilterDatabase` fix for AutoFilter-related crashes
148
- * `stream.to_json` doesn't end up accidentally scanning to max row
149
-
150
- ## 0.14.0 (2018-09-06)
151
-
152
- * `sheet_to_json` default flipped to `raw: true`
153
-
154
- ## 0.13.5 (2018-08-25)
155
-
156
- * HTML output generates `<br/>` instead of encoded newline character
157
-
158
- ## 0.13.2 (2018-07-08)
159
-
160
- * Buffer.from shim replaced, will not be defined in node `<=0.12`
161
-
162
- ## 0.13.0 (2018-06-01)
163
-
164
- * Library reshaped to support AMD out of the box
165
-
166
- ## 0.12.11 (2018-04-27)
167
-
168
- * XLS/XLSX/XLSB range truncation (errors in `WTF` mode)
169
-
170
- ## 0.12.4 (2018-03-04)
171
-
172
- * `JSZip` renamed to `JSZipSync`
173
-
174
- ## 0.12.0 (2018-02-08)
175
-
176
- * Extendscript target script in NPM package
177
-
178
- ## 0.11.19 (2018-02-03)
179
-
180
- * Error on empty workbook
181
-
182
- ## 0.11.16 (2017-12-30)
183
-
184
- * XLS ANSI/CP separation
185
- * 'array' write type and ArrayBuffer processing
186
-
187
- ## 0.11.6 (2017-10-16)
188
-
189
- * Semicolon-delimited files are detected
190
-
191
- ## 0.11.5 (2017-09-30)
192
-
193
- * Bower main script shifted to full version
194
- * 'binary' / 'string' encoding
195
-
196
- ## 0.11.3 (2017-08-19)
197
-
198
- * XLS cell ixfe/XF removed
199
-
200
- ## 0.11.0 (2017-07-31)
201
-
202
- * Strip `require` statements from minified version
203
- * minifier mangler enabled
204
-
205
- ## 0.10.9 (2017-07-28)
206
-
207
- * XLML/HTML resolution logic looks further into the data stream to decide type
208
- * Errors thrown on suspected RTF files
209
-
210
- ## 0.10.5 (2017-06-09)
211
-
212
- * HTML Table output header/footer should not include `<table>` tag
213
-
214
- ## 0.10.2 (2017-05-16)
215
-
216
- * Dates are converted to numbers by default (set `cellDates:true` to emit Dates)
217
- * Module does not export CFB
218
-
219
- ## 0.9.10 (2017-04-08)
220
-
221
- * `--perf` renamed to `--read-only`
222
-
223
- ## 0.9.9 (2017-04-03)
224
-
225
- * default output format changed to XLSB
226
- * comment text line endings are now normalized
227
- * errors thrown on write when worksheets have invalid names
228
-
229
- ## 0.9.7 (2017-03-28)
230
-
231
- * XLS legacy `!range` field removed
232
- * Hyperlink tooltip is stored in the `Tooltip` field
233
-
234
- ## 0.9.6 (2017-03-25)
235
-
236
- * `sheet_to_json` now passes `null` values when `raw` is set to `true`
237
- * `sheet_to_json` treats `null` stub cells as values in conjunction with `raw`
238
-
239
- ## 0.9.5 (2017-03-22)
240
-
241
- * `cellDates` affects parsing in non-XLSX formats
242
-
243
- ## 0.9.3 (2017-03-15)
244
-
245
- * XLML property names are more closely mapped to the XLSX equivalent
246
- * Stub cells are now cell type `z`
247
-
248
- ## 0.9.2 (2017-03-13)
249
-
250
- * Removed stale TypeScript definition files. Flowtype comments are used in the
251
- `xlsx.flow.js` source and stripped to produce `xlsx.js`.
252
- * sed usage reworked to support GNU sed in-place form. BSD sed seems to work,
253
- but the build script has not been tested on other sed variants:
254
-
255
- ```bash
256
- $ sed -i.ext [...] # GNU
257
- $ sed -i .ext [...] # bsd
258
- ```
259
-
260
- ## 0.9.0 (2017-03-09)
261
-
262
- * Removed ods.js source. The xlsx.js source absorbed the ODS logic and exposes
263
- the ODS variable, so projects should remove references to ods.js
264
-
package/bower.json DELETED
@@ -1,22 +0,0 @@
1
- {
2
- "name": "js-xlsx",
3
- "homepage": "https://github.com/SheetJS/js-xlsx",
4
- "main": ["xlsx.js"],
5
- "ignore": [
6
- "bin",
7
- "bits",
8
- "misc",
9
- "**/.*"
10
- ],
11
- "keywords": [
12
- "excel",
13
- "xls",
14
- "xml",
15
- "xlsx",
16
- "xlsm",
17
- "xlsb",
18
- "ods",
19
- "js-xls",
20
- "js-xlsx"
21
- ]
22
- }
@@ -1,201 +0,0 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- APPENDIX: How to apply the Apache License to your work.
179
-
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "{}"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
- Copyright (C) 2012-present SheetJS LLC
190
-
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
194
-
195
- http://www.apache.org/licenses/LICENSE-2.0
196
-
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.
@@ -1,90 +0,0 @@
1
- {
2
- "name": "xlsx-js-style",
3
- "version": "1.2.0",
4
- "author": "gitbrent",
5
- "description": "SheetJS Spreadsheet Community Edition plus Basic Cell Styles",
6
- "homepage": "https://github.com/gitbrent/xlsx-js-style/",
7
- "keywords": [
8
- "excel",
9
- "xls",
10
- "xlsx",
11
- "xlsb",
12
- "xlsm",
13
- "office",
14
- "spreadsheet",
15
- "js-xlsx",
16
- "xlsx-js",
17
- "sheetjs-style",
18
- "sheetjs-style-v2"
19
- ],
20
- "bin": {
21
- "xlsx": "./bin/xlsx.njs"
22
- },
23
- "main": "dist/xlsx.min.js",
24
- "unpkg": "dist/xlsx.min.js",
25
- "jsdelivr": "dist/xlsx.min.js",
26
- "files": [
27
- "dist",
28
- "libs",
29
- "types"
30
- ],
31
- "types": "types",
32
- "browser": {
33
- "buffer": false,
34
- "crypto": false,
35
- "stream": false,
36
- "process": false,
37
- "fs": false
38
- },
39
- "dependencies": {
40
- "adler-32": "~1.2.0",
41
- "cfb": "^1.1.4",
42
- "codepage": "~1.14.0",
43
- "commander": "~2.17.1",
44
- "crc-32": "~1.2.0",
45
- "exit-on-epipe": "~1.0.1",
46
- "fflate": "^0.3.8",
47
- "ssf": "~0.11.2",
48
- "wmf": "~1.0.1",
49
- "word": "~0.3.0"
50
- },
51
- "devDependencies": {
52
- "@types/node": "^8.5.9",
53
- "gulp": "^4.0.2",
54
- "gulp-concat": "^2.6.1",
55
- "gulp-ignore": "^3.0.0",
56
- "gulp-insert": "^0.5.0",
57
- "gulp-replace": "^1.1.3",
58
- "gulp-sourcemaps": "^3.0.0",
59
- "gulp-uglify": "^3.0.2"
60
- },
61
- "repository": {
62
- "type": "git",
63
- "url": "git://github.com/gitbrent/xlsx-js-style.git"
64
- },
65
- "scripts": {
66
- "ship": "gulp ship"
67
- },
68
- "config": {
69
- "blanket": {
70
- "pattern": "xlsx.js"
71
- }
72
- },
73
- "alex": {
74
- "allow": [
75
- "special",
76
- "simple",
77
- "just",
78
- "crash",
79
- "wtf",
80
- "holes"
81
- ]
82
- },
83
- "bugs": {
84
- "url": "https://github.com/gitbrent/xlsx-js-style/issues"
85
- },
86
- "license": "Apache-2.0",
87
- "engines": {
88
- "node": ">=0.8"
89
- }
90
- }