Skip to content

Commit 917a69e

Browse files
committed
XLSX custprops strip ns [ci skip]
1 parent 838ee58 commit 917a69e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+81
-1008
lines changed

bits/35_custprops.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function parse_cust_props(data/*:string*/, opts) {
55
var m = data.match(custregex);
66
if(m) for(var i = 0; i != m.length; ++i) {
77
var x = m[i], y = parsexmltag(x);
8-
switch(y[0]) {
8+
switch(strip_ns(y[0])) {
99
case '<?xml': break;
1010
case '<Properties': break;
1111
case '<property': name = unescapexml(y.name); break;

demos/README.md

Lines changed: 41 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -18,57 +18,60 @@ can be installed with Bash on Windows or with `cygwin`.
1818
### Included Demos
1919

2020
**JavaScript APIs**
21-
- [`XMLHttpRequest and fetch`](https://docs.sheetjs.com/docs/getting-started/demos/network)
22-
- [`Clipboard Data`](https://docs.sheetjs.com/docs/getting-started/demos/clipboard)
23-
- [`Typed Arrays for Machine Learning`](https://docs.sheetjs.com/docs/getting-started/demos/ml)
24-
- [`LocalStorage and SessionStorage`](https://docs.sheetjs.com/docs/getting-started/demos/database#localstorage-and-sessionstorage)
25-
- [`Web SQL Database`](https://docs.sheetjs.com/docs/getting-started/demos/database#websql)
26-
- [`IndexedDB`](https://docs.sheetjs.com/docs/getting-started/demos/database#indexeddb)
21+
- [`XMLHttpRequest and fetch`](https://docs.sheetjs.com/docs/demos/network)
22+
- [`Clipboard Data`](https://docs.sheetjs.com/docs/demos/clipboard)
23+
- [`Typed Arrays for Machine Learning`](https://docs.sheetjs.com/docs/demos/ml)
24+
- [`LocalStorage and SessionStorage`](https://docs.sheetjs.com/docs/demos/database#localstorage-and-sessionstorage)
25+
- [`Web SQL Database`](https://docs.sheetjs.com/docs/demos/database#websql)
26+
- [`IndexedDB`](https://docs.sheetjs.com/docs/demos/database#indexeddb)
2727

2828
**Frameworks**
29-
- [`Angular.JS`](https://docs.sheetjs.com/docs/getting-started/demos/legacy#angularjs)
29+
- [`Angular.JS`](https://docs.sheetjs.com/docs/demos/legacy#angularjs)
3030
- [`Angular 2+ and Ionic`](angular2/)
31-
- [`Knockout`](https://docs.sheetjs.com/docs/getting-started/demos/legacy#knockoutjs)
32-
- [`React, React Native and NextJS`](react/)
33-
- [`VueJS, WeeX and NuxtJS`](vue/)
31+
- [`Knockout`](https://docs.sheetjs.com/docs/demos/legacy#knockoutjs)
32+
- [`React and NextJS`](react/)
33+
- [`VueJS`](vue/)
3434

3535
**Front-End UI Components**
36-
- [`canvas-datagrid`](https://docs.sheetjs.com/docs/getting-started/demos/grid#canvas-datagrid)
36+
- [`canvas-datagrid`](https://docs.sheetjs.com/docs/demos/grid#canvas-datagrid)
3737
- [`x-spreadsheet`](xspreadsheet/)
3838
- [`react-data-grid`](react/modify/)
3939
- [`vue3-table-light`](vue/modify/)
40-
- [`angular-ui-grid`](https://docs.sheetjs.com/docs/getting-started/demos/grid#angular-ui-grid)
40+
- [`angular-ui-grid`](https://docs.sheetjs.com/docs/demos/grid#angular-ui-grid)
4141

4242
**Platforms and Integrations**
43-
- [`Command-Line Tools`](https://docs.sheetjs.com/docs/getting-started/demos/cli)
43+
- [`Command-Line Tools`](https://docs.sheetjs.com/docs/demos/cli)
44+
- [`iOS and Android Mobile Applications`](https://docs.sheetjs.com/docs/demos/mobile)
4445
- [`NodeJS Server-Side Processing`](server/)
45-
- [`Electron`](https://docs.sheetjs.com/docs/getting-started/demos/desktop#electron)
46-
- [`NW.js`](https://docs.sheetjs.com/docs/getting-started/demos/desktop#nwjs)
47-
- [`Chrome / Chromium Extension`](https://docs.sheetjs.com/docs/getting-started/demos/chromium)
48-
- [`Google Sheets API`](https://docs.sheetjs.com/docs/getting-started/demos/gsheet)
49-
- [`ExtendScript for Adobe Apps`](https://docs.sheetjs.com/docs/getting-started/demos/extendscript)
50-
- [`NetSuite SuiteScript`](https://docs.sheetjs.com/docs/getting-started/demos/netsuite)
51-
- [`SalesForce Lightning Web Components`](https://docs.sheetjs.com/docs/getting-started/demos/salesforce)
52-
- [`Excel JavaScript API`](https://docs.sheetjs.com/docs/getting-started/demos/excel)
53-
- [`Headless Automation`](https://docs.sheetjs.com/docs/getting-started/demos/headless)
54-
- [`Swift JSC and Other JavaScript Engines`](https://docs.sheetjs.com/docs/getting-started/demos/engines)
46+
- [`Content Management and Static Sites`](https://docs.sheetjs.com/docs/demos/content)
47+
- [`Electron`](https://docs.sheetjs.com/docs/demos/desktop#electron)
48+
- [`NW.js`](https://docs.sheetjs.com/docs/demos/desktop#nwjs)
49+
- [`Tauri`](https://docs.sheetjs.com/docs/demos/desktop#tauri)
50+
- [`Chrome and Chromium Extensions`](https://docs.sheetjs.com/docs/demos/chromium)
51+
- [`Google Sheets API`](https://docs.sheetjs.com/docs/demos/gsheet)
52+
- [`ExtendScript for Adobe Apps`](https://docs.sheetjs.com/docs/demos/extendscript)
53+
- [`NetSuite SuiteScript`](https://docs.sheetjs.com/docs/demos/netsuite)
54+
- [`SalesForce Lightning Web Components`](https://docs.sheetjs.com/docs/demos/salesforce)
55+
- [`Excel JavaScript API`](https://docs.sheetjs.com/docs/demos/excel)
56+
- [`Headless Automation`](https://docs.sheetjs.com/docs/demos/headless)
57+
- [`Swift JSC and Other JavaScript Engines`](https://docs.sheetjs.com/docs/demos/engines)
5558
- [`"serverless" functions`](function/)
56-
- [`Databases and Structured Data Stores`](https://docs.sheetjs.com/docs/getting-started/demos/database)
57-
- [`NoSQL, K/V, and Unstructured Data Stores`](https://docs.sheetjs.com/docs/getting-started/demos/nosql)
58-
- [`Legacy Internet Explorer`](oldie/)
59+
- [`Databases and Structured Data Stores`](https://docs.sheetjs.com/docs/demos/database)
60+
- [`NoSQL and Unstructured Data Stores`](https://docs.sheetjs.com/docs/demos/nosql)
61+
- [`Legacy Internet Explorer`](https://docs.sheetjs.com/docs/demos/legacy#internet-explorer)
5962

6063
**Bundlers and Tooling**
61-
- [`browserify`](https://docs.sheetjs.com/docs/getting-started/demos/bundler#browserify)
62-
- [`bun`](https://docs.sheetjs.com/docs/getting-started/demos/bundler#bun)
63-
- [`esbuild`](https://docs.sheetjs.com/docs/getting-started/demos/bundler#esbuild)
64-
- [`parcel`](https://docs.sheetjs.com/docs/getting-started/demos/bundler#parcel)
65-
- [`requirejs`](https://docs.sheetjs.com/docs/getting-started/demos/bundler#requirejs)
66-
- [`rollup`](https://docs.sheetjs.com/docs/getting-started/demos/bundler#rollup)
67-
- [`snowpack`](https://docs.sheetjs.com/docs/getting-started/demos/bundler#snowpack)
68-
- [`swc`](https://docs.sheetjs.com/docs/getting-started/demos/bundler#swc)
69-
- [`systemjs`](https://docs.sheetjs.com/docs/getting-started/demos/bundler#systemjs)
70-
- [`vite`](https://docs.sheetjs.com/docs/getting-started/demos/bundler#vite)
71-
- [`webpack`](https://docs.sheetjs.com/docs/getting-started/demos/bundler#webpack)
72-
- [`wmr`](https://docs.sheetjs.com/docs/getting-started/demos/bundler#wmr)
64+
- [`browserify`](https://docs.sheetjs.com/docs/demos/bundler#browserify)
65+
- [`bun`](https://docs.sheetjs.com/docs/demos/bundler#bun)
66+
- [`esbuild`](https://docs.sheetjs.com/docs/demos/bundler#esbuild)
67+
- [`parcel`](https://docs.sheetjs.com/docs/demos/bundler#parcel)
68+
- [`requirejs`](https://docs.sheetjs.com/docs/demos/bundler#requirejs)
69+
- [`rollup`](https://docs.sheetjs.com/docs/demos/bundler#rollup)
70+
- [`snowpack`](https://docs.sheetjs.com/docs/demos/bundler#snowpack)
71+
- [`swc`](https://docs.sheetjs.com/docs/demos/bundler#swc)
72+
- [`systemjs`](https://docs.sheetjs.com/docs/demos/bundler#systemjs)
73+
- [`vite`](https://docs.sheetjs.com/docs/demos/bundler#vite)
74+
- [`webpack`](https://docs.sheetjs.com/docs/demos/bundler#webpack)
75+
- [`wmr`](https://docs.sheetjs.com/docs/demos/bundler#wmr)
7376

7477
[![Analytics](https://ga-beacon.appspot.com/UA-36810333-1/SheetJS/js-xlsx?pixel)](https://github.com/SheetJS/js-xlsx)

demos/altjs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Other JS Engines and Deployments
22

3-
[The new demo](https://docs.sheetjs.com/docs/getting-started/demos/engines)
3+
[The new demo](https://docs.sheetjs.com/docs/demos/engines)
44
includes more detailed instructions and more JS engines.
55

66

demos/angular/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
The content has been reorganized;
44

5-
- [The "Legacy Frameworks" section](https://docs.sheetjs.com/docs/getting-started/demos/legacy#angularjs)
5+
- [The "Legacy Frameworks" section](https://docs.sheetjs.com/docs/demos/legacy#angularjs)
66
covers the AngularJS basics.
7-
- [The "Angular UI Grid" section](https://docs.sheetjs.com/docs/getting-started/demos/legacy#angularjs)
7+
- [The "Angular UI Grid" section](https://docs.sheetjs.com/docs/demos/legacy#angularjs)
88
covers the integration with Angular UI Grid.
99

1010
[![Analytics](https://ga-beacon.appspot.com/UA-36810333-1/SheetJS/js-xlsx?pixel)](https://github.com/SheetJS/js-xlsx)

demos/angular2/Makefile

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,3 @@ ios browser: ionic
3232
android: ionic
3333
cd SheetJSIonic; ionic cordova prepare $@ </dev/null; ionic cordova emulate $@ </dev/null; cd -
3434

35-
36-
.PHONY: nativescript
37-
nativescript:
38-
bash ./nscript.sh
39-
40-
.PHONY: ns-ios ns-android
41-
ns-ios: nativescript
42-
cd SheetJSNS; ns run ios; cd -
43-
ns-android: nativescript
44-
cd SheetJSNS; ns run android; cd -
45-

demos/angular2/README.md

Lines changed: 5 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -101,24 +101,9 @@ $ npm install --save https://cdn.sheetjs.com/xlsx-latest/xlsx-latest.tgz
101101

102102
The default angular-cli configuration requires no additional configuration.
103103

104-
Some deployments use the SystemJS loader, which does require configuration. The
105-
SystemJS example shows the required meta and map settings:
106-
107-
```js
108-
SystemJS.config({
109-
meta: {
110-
'xlsx': {
111-
exports: 'XLSX' // <-- tell SystemJS to expose the XLSX variable
112-
}
113-
},
114-
map: {
115-
'xlsx': 'xlsx.full.min.js', // <-- make sure xlsx.full.min.js is in same dir
116-
'fs': '', // <--|
117-
'crypto': '', // <--| suppress native node modules
118-
'stream': '' // <--|
119-
}
120-
});
121-
```
104+
Some deployments use the SystemJS loader, which does require configuration.
105+
[SystemJS](https://docs.sheetjs.com/docs/demos/bundler#systemjs)
106+
demo in the SheetJS CE docs describe the required settings.
122107

123108
## Ionic
124109

@@ -157,29 +142,7 @@ this.file.writeFile(url, filename, blob, {replace: true});
157142

158143
## NativeScript
159144

160-
Reproducing the full project is a little bit tricky. The included `nscript.sh`
161-
script performs the necessary installation steps and adds the necessary shims
162-
for `async` support. Due to incompatibilities with NativeScript and TypeScript
163-
definitions, apps should require the `xlsx.full.min.js` file directly:
164-
165-
```typescript
166-
const XLSX = require("./xlsx.full.min.js");
167-
```
168-
169-
The `ISO_8859_1` encoding from the text module specifies `"binary"` strings.
170-
`File#readText` and `File#writeText` reads and writes files:
171-
172-
```typescript
173-
/* read a workbook */
174-
const bstr: string = await file.readText(encoding.ISO_8859_1);
175-
const wb = XLSX.read(bstr, { type: "binary" });
176-
177-
/* write a workbook */
178-
const wbout: string = XLSX.write(wb, { bookType: 'xlsx', type: 'binary' });
179-
await file.writeText(wbout, encoding.ISO_8859_1);
180-
```
181-
182-
Note: some versions of NativeScript do not properly support typed arrays or
183-
binary strings. See <https://github.com/NativeScript/NativeScript/issues/9586>
145+
[The new demo](https://docs.sheetjs.com/docs/demos/mobile#nativescript)
146+
is updated for NativeScript 8 and uses more idiomatic data patterns.
184147

185148
[![Analytics](https://ga-beacon.appspot.com/UA-36810333-1/SheetJS/js-xlsx?pixel)](https://github.com/SheetJS/js-xlsx)

demos/angular2/nscript.sh

Lines changed: 0 additions & 10 deletions
This file was deleted.

demos/angular2/nscript.ts

Lines changed: 0 additions & 82 deletions
This file was deleted.

demos/array/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Typed Arrays and Math
22

3-
[The new demo](https://docs.sheetjs.com/docs/getting-started/demos/ml) includes
3+
[The new demo](https://docs.sheetjs.com/docs/demos/ml) includes
44
interactive examples as well as strategies for CSV and JS Array interchange.
55

66
[![Analytics](https://ga-beacon.appspot.com/UA-36810333-1/SheetJS/js-xlsx?pixel)](https://github.com/SheetJS/js-xlsx)

demos/browserify/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Browserify
22

3-
[The new demo](https://docs.sheetjs.com/docs/getting-started/demos/bundler#browserify)
3+
[The new demo](https://docs.sheetjs.com/docs/demos/bundler#browserify)
44
includes a more concise example.
55

66
[![Analytics](https://ga-beacon.appspot.com/UA-36810333-1/SheetJS/js-xlsx?pixel)](https://github.com/SheetJS/js-xlsx)

0 commit comments

Comments
 (0)