Locking and Unlocking of cells #1390

Open
grantfayvor wants to merge 2 commits from grantfayvor/master into master
16 changed files with 22549 additions and 31723 deletions
Showing only changes of commit 3203b0d133 - Show all commits

View File

@ -57,11 +57,11 @@ dist: dist-deps $(TARGET) bower.json ## Prepare JS files for distribution
<$(TARGET) sed "s/require('stream')/{}/g;s/require('....*')/undefined/g" > dist/$(TARGET)
cp LICENSE dist/
uglifyjs shim.js $(UGLIFYOPTS) -o dist/shim.min.js --preamble "$$(head -n 1 bits/00_header.js)"
uglifyjs $(DISTHDR) dist/$(TARGET) $(UGLIFYOPTS) -o dist/$(LIB).min.js --source-map dist/$(LIB).min.map --preamble "$$(head -n 1 bits/00_header.js)"
uglifyjs $(DISTHDR) dist/$(TARGET) $(UGLIFYOPTS) -o dist/$(LIB).min.js --source-map --preamble "$$(head -n 1 bits/00_header.js)"
misc/strip_sourcemap.sh dist/$(LIB).min.js
uglifyjs $(DISTHDR) $(REQS) dist/$(TARGET) $(UGLIFYOPTS) -o dist/$(LIB).core.min.js --source-map dist/$(LIB).core.min.map --preamble "$$(head -n 1 bits/00_header.js)"
uglifyjs $(DISTHDR) $(REQS) dist/$(TARGET) $(UGLIFYOPTS) -o dist/$(LIB).core.min.js --source-map --preamble "$$(head -n 1 bits/00_header.js)"
misc/strip_sourcemap.sh dist/$(LIB).core.min.js
uglifyjs $(DISTHDR) $(REQS) $(ADDONS) dist/$(TARGET) $(AUXTARGETS) $(UGLIFYOPTS) -o dist/$(LIB).full.min.js --source-map dist/$(LIB).full.min.map --preamble "$$(head -n 1 bits/00_header.js)"
uglifyjs $(DISTHDR) $(REQS) $(ADDONS) dist/$(TARGET) $(AUXTARGETS) $(UGLIFYOPTS) -o dist/$(LIB).full.min.js --source-map --preamble "$$(head -n 1 bits/00_header.js)"
misc/strip_sourcemap.sh dist/$(LIB).full.min.js
cat <(head -n 1 bits/00_header.js) shim.js $(DISTHDR) $(REQS) dist/$(TARGET) > dist/$(LIB).extendscript.js

View File

@ -91,7 +91,7 @@ function get_cell_style(styles /*:Array<any>*/ , cell /*:Cell*/ , opts) {
break;
}
}
if (cell.p && !styles.find(s => !!s.applyProtection)) {
if (cell.p && !styles.find(function(s){ return !!s.applyProtection; })) {
styles[styles.length] = {
numFmtId: z,
fontId: 0,
@ -112,8 +112,8 @@ function get_cell_style(styles /*:Array<any>*/ , cell /*:Cell*/ , opts) {
}
}
if (result == undefined) {
let length = styles.length;
styles[length] = {
var len = styles.length;
styles[len] = {
numFmtId: z,
fontId: 0,
fillId: 0,
@ -121,7 +121,7 @@ function get_cell_style(styles /*:Array<any>*/ , cell /*:Cell*/ , opts) {
xfId: 0,
applyNumberFormat: 1
};
result = length;
result = len;
}
return result;
}

3
dist/shim.min.js vendored

File diff suppressed because one or more lines are too long

18
dist/xlsx.core.min.js vendored

File diff suppressed because one or more lines are too long

1
dist/xlsx.core.min.js.map vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

24
dist/xlsx.full.min.js vendored

File diff suppressed because one or more lines are too long

1
dist/xlsx.full.min.js.map vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1174
dist/xlsx.js vendored

File diff suppressed because it is too large Load Diff

15
dist/xlsx.min.js vendored

File diff suppressed because one or more lines are too long

1
dist/xlsx.min.js.map vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/xlsx.min.map vendored

File diff suppressed because one or more lines are too long

View File

@ -13075,7 +13075,7 @@ function get_cell_style(styles /*:Array<any>*/ , cell /*:Cell*/ , opts) {
break;
}
}
if (cell.p && !styles.find(s => !!s.applyProtection)) {
if (cell.p && !styles.find(function(s){ return !!s.applyProtection; })) {
styles[styles.length] = {
numFmtId: z,
fontId: 0,
@ -13096,8 +13096,8 @@ function get_cell_style(styles /*:Array<any>*/ , cell /*:Cell*/ , opts) {
}
}
if (result == undefined) {
let length = styles.length;
styles[length] = {
var len = styles.length;
styles[len] = {
numFmtId: z,
fontId: 0,
fillId: 0,
@ -13105,7 +13105,7 @@ function get_cell_style(styles /*:Array<any>*/ , cell /*:Cell*/ , opts) {
xfId: 0,
applyNumberFormat: 1
};
result = length;
result = len;
}
return result;
}

51836
xlsx.js

File diff suppressed because it is too large Load Diff