Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dev dependencies #1459

Merged
merged 17 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/examples/advanced-usage/example1.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import HyperFormula from 'hyperformula';

console.log(
`%c Using HyperFormula ${HyperFormula.version}`,
'color: blue; font-weight: bold'
'color: blue; font-weight: bold',
);

/* end:skip-in-compilation */
Expand Down Expand Up @@ -67,7 +67,7 @@ hf.setSheetContent(hf.getSheetId(sheetInfo.formulas.sheetName), formulasData);
function renderTable(sheetName) {
const sheetId = hf.getSheetId(sheetName);
const tbodyDOM = document.querySelector(
`.example #${sheetName}-container tbody`
`.example #${sheetName}-container tbody`,
);

const { height, width } = hf.getSheetDimensions(sheetId);
Expand Down Expand Up @@ -101,7 +101,7 @@ function renderResult() {
const resultOutputDOM = document.querySelector('.example #output');
const cellAddress = hf.simpleCellAddressFromString(
`${sheetInfo.formulas.sheetName}!A1`,
hf.getSheetId(sheetInfo.formulas.sheetName)
hf.getSheetId(sheetInfo.formulas.sheetName),
);

resultOutputDOM.innerHTML = `<span>
Expand Down
6 changes: 3 additions & 3 deletions docs/examples/advanced-usage/example1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import HyperFormula from 'hyperformula';

console.log(
`%c Using HyperFormula ${HyperFormula.version}`,
'color: blue; font-weight: bold'
'color: blue; font-weight: bold',
);
/* end:skip-in-compilation */

Expand Down Expand Up @@ -69,7 +69,7 @@ hf.setSheetContent(hf.getSheetId(sheetInfo.formulas.sheetName), formulasData);
function renderTable(sheetName) {
const sheetId = hf.getSheetId(sheetName);
const tbodyDOM = document.querySelector(
`.example #${sheetName}-container tbody`
`.example #${sheetName}-container tbody`,
);

const { height, width } = hf.getSheetDimensions(sheetId);
Expand Down Expand Up @@ -103,7 +103,7 @@ function renderResult() {
const resultOutputDOM = document.querySelector('.example #output');
const cellAddress = hf.simpleCellAddressFromString(
`${sheetInfo.formulas.sheetName}!A1`,
hf.getSheetId(sheetInfo.formulas.sheetName)
hf.getSheetId(sheetInfo.formulas.sheetName),
);

resultOutputDOM.innerHTML = `<span>
Expand Down
16 changes: 6 additions & 10 deletions docs/examples/basic-operations/example1.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import HyperFormula from 'hyperformula';

console.log(
`%c Using HyperFormula ${HyperFormula.version}`,
'color: blue; font-weight: bold'
'color: blue; font-weight: bold',
);

/* end:skip-in-compilation */
Expand Down Expand Up @@ -188,9 +188,7 @@ function renderTable() {
cellValue = hf.getCellFormula(cellAddress);
}

newTbodyHTML += `<td class="${
cellHasFormula ? updatedCellClass : ''
}"><span>
newTbodyHTML += `<td class="${cellHasFormula ? updatedCellClass : ''}"><span>
${cellValue}
</span></td>`;
}
Expand All @@ -213,9 +211,7 @@ function updateSheetDropdown() {
sheetNames.forEach((sheetName) => {
const isCurrent = sheetName === state.currentSheet;

dropdownContent += `<option value="${sheetName}" ${
isCurrent ? 'selected' : ''
}>${sheetName}</option>`;
dropdownContent += `<option value="${sheetName}" ${isCurrent ? 'selected' : ''}>${sheetName}</option>`;
});
sheetDropdownDOM.innerHTML = dropdownContent;
}
Expand Down Expand Up @@ -332,7 +328,7 @@ function doAction(action) {
handleError(() => {
hf.setSheetContent(
hf.getSheetId(state.currentSheet),
getSampleData(5, 5)
getSampleData(5, 5),
);
});
updateSheetDropdown();
Expand Down Expand Up @@ -398,7 +394,7 @@ function doAction(action) {
cellAddress = handleError(() => {
return hf.simpleCellAddressFromString(
inputValues[0],
hf.getSheetId(state.currentSheet)
hf.getSheetId(state.currentSheet),
);
}, 'Invalid cell address format.');

Expand All @@ -413,7 +409,7 @@ function doAction(action) {
cellAddress = handleError(() => {
return hf.simpleCellAddressFromString(
inputValues[0],
hf.getSheetId(state.currentSheet)
hf.getSheetId(state.currentSheet),
);
}, 'Invalid cell address format.');

Expand Down
8 changes: 4 additions & 4 deletions docs/examples/basic-operations/example1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import HyperFormula from 'hyperformula';

console.log(
`%c Using HyperFormula ${HyperFormula.version}`,
'color: blue; font-weight: bold'
'color: blue; font-weight: bold',
);
/* end:skip-in-compilation */

Expand Down Expand Up @@ -343,7 +343,7 @@ function doAction(action) {
handleError(() => {
hf.setSheetContent(
hf.getSheetId(state.currentSheet),
getSampleData(5, 5)
getSampleData(5, 5),
);
});

Expand Down Expand Up @@ -415,7 +415,7 @@ function doAction(action) {
cellAddress = handleError(() => {
return hf.simpleCellAddressFromString(
inputValues[0],
hf.getSheetId(state.currentSheet)
hf.getSheetId(state.currentSheet),
);
}, 'Invalid cell address format.');

Expand All @@ -430,7 +430,7 @@ function doAction(action) {
cellAddress = handleError(() => {
return hf.simpleCellAddressFromString(
inputValues[0],
hf.getSheetId(state.currentSheet)
hf.getSheetId(state.currentSheet),
);
}, 'Invalid cell address format.');

Expand Down
4 changes: 2 additions & 2 deletions docs/examples/basic-usage/example1.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import HyperFormula from 'hyperformula';

console.log(
`%c Using HyperFormula ${HyperFormula.version}`,
'color: blue; font-weight: bold'
'color: blue; font-weight: bold',
);

/* end:skip-in-compilation */
Expand All @@ -25,7 +25,7 @@ hf.setCellContents(
col: 0,
sheet: sheetId,
},
tableData
tableData,
);

/**
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/basic-usage/example1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import HyperFormula from 'hyperformula';

console.log(
`%c Using HyperFormula ${HyperFormula.version}`,
'color: blue; font-weight: bold'
'color: blue; font-weight: bold',
);
/* end:skip-in-compilation */

Expand All @@ -26,7 +26,7 @@ hf.setCellContents(
col: 0,
sheet: sheetId,
},
tableData
tableData,
);

/**
Expand Down
8 changes: 3 additions & 5 deletions docs/examples/batch-operations/example1.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import HyperFormula from 'hyperformula';

console.log(
`%c Using HyperFormula ${HyperFormula.version}`,
'color: blue; font-weight: bold'
'color: blue; font-weight: bold',
);

/* end:skip-in-compilation */
Expand Down Expand Up @@ -40,7 +40,7 @@ hf.setCellContents(
col: 0,
sheet: sheetId,
},
tableData
tableData,
);
// Add named expressions for the "TOTAL" row.
hf.addNamedExpression('Year_1', '=SUM(main!$B$1:main!$B$5)');
Expand Down Expand Up @@ -78,9 +78,7 @@ function renderTable(calculated = false) {
cellValue = hf.getCellFormula(cellAddress);
}

newTbodyHTML += `<td class="${
cellHasFormula ? updatedCellClass : ''
}"><span>
newTbodyHTML += `<td class="${cellHasFormula ? updatedCellClass : ''}"><span>
${cellValue}
</span></td>`;
}
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/batch-operations/example1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import HyperFormula from 'hyperformula';

console.log(
`%c Using HyperFormula ${HyperFormula.version}`,
'color: blue; font-weight: bold'
'color: blue; font-weight: bold',
);
/* end:skip-in-compilation */

Expand Down Expand Up @@ -40,7 +40,7 @@ hf.setCellContents(
col: 0,
sheet: sheetId,
},
tableData
tableData,
);

// Add named expressions for the "TOTAL" row.
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/clipboard-operations/example1.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import HyperFormula from 'hyperformula';

console.log(
`%c Using HyperFormula ${HyperFormula.version}`,
'color: blue; font-weight: bold'
'color: blue; font-weight: bold',
);

/* end:skip-in-compilation */
Expand Down Expand Up @@ -35,7 +35,7 @@ function reinitializeData() {
col: 0,
sheet: sheetId,
},
tableData
tableData,
);
}

Expand Down
4 changes: 2 additions & 2 deletions docs/examples/clipboard-operations/example1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import HyperFormula from 'hyperformula';

console.log(
`%c Using HyperFormula ${HyperFormula.version}`,
'color: blue; font-weight: bold'
'color: blue; font-weight: bold',
);
/* end:skip-in-compilation */

Expand Down Expand Up @@ -35,7 +35,7 @@ function reinitializeData() {
col: 0,
sheet: sheetId,
},
tableData
tableData,
);
}

Expand Down
8 changes: 3 additions & 5 deletions docs/examples/date-time/example1.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import moment from 'moment';

console.log(
`%c Using HyperFormula ${HyperFormula.version}`,
'color: blue; font-weight: bold'
'color: blue; font-weight: bold',
);

/* end:skip-in-compilation */
Expand Down Expand Up @@ -61,7 +61,7 @@ hf.setCellContents(
col: 0,
sheet: sheetId,
},
tableData
tableData,
);

/**
Expand All @@ -82,9 +82,7 @@ function renderTable(calculated = false) {
const showFormula = calculated || !cellHasFormula;
const cellValue = displayValue(cellAddress, showFormula);

newTbodyHTML += `<td class="${
cellHasFormula ? updatedCellClass : ''
}"><span>
newTbodyHTML += `<td class="${cellHasFormula ? updatedCellClass : ''}"><span>
${cellValue}
</span></td>`;
}
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/date-time/example1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import moment from 'moment';

console.log(
`%c Using HyperFormula ${HyperFormula.version}`,
'color: blue; font-weight: bold'
'color: blue; font-weight: bold',
);
/* end:skip-in-compilation */

Expand Down Expand Up @@ -62,7 +62,7 @@ hf.setCellContents(
col: 0,
sheet: sheetId,
},
tableData
tableData,
);

/**
Expand Down
16 changes: 5 additions & 11 deletions docs/examples/demo/example1.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import HyperFormula from 'hyperformula';

console.log(
`%c Using HyperFormula ${HyperFormula.version}`,
'color: blue; font-weight: bold'
'color: blue; font-weight: bold',
);

/* end:skip-in-compilation */
Expand Down Expand Up @@ -37,7 +37,7 @@ hf.setCellContents(
col: 0,
sheet: sheetId,
},
tableData
tableData,
);
// Add named expressions for the "TOTAL" row.
hf.addNamedExpression('Year_1', '=SUM(main!$B$1:main!$B$5)');
Expand Down Expand Up @@ -88,9 +88,7 @@ function renderTable(calculated = false) {
cellValue = hf.getCellFormula(cellAddress);
}

newTbodyHTML += `<td class="${
cellHasFormula ? updatedCellClass : ''
}"><span>
newTbodyHTML += `<td class="${cellHasFormula ? updatedCellClass : ''}"><span>
${cellValue}
</span></td>`;
}
Expand All @@ -101,14 +99,10 @@ function renderTable(calculated = false) {
totalRowsHTML = `<tr class="summary">
<td>TOTAL</td>
<td class="${updatedCellClass}">
<span>${
calculated ? hf.calculateFormula(totals[0], sheetId).toFixed(2) : totals[0]
}</span>
<span>${calculated ? hf.calculateFormula(totals[0], sheetId).toFixed(2) : totals[0]}</span>
</td>
<td class="${updatedCellClass}">
<span>${
calculated ? hf.calculateFormula(totals[1], sheetId).toFixed(2) : totals[1]
}</span>
<span>${calculated ? hf.calculateFormula(totals[1], sheetId).toFixed(2) : totals[1]}</span>
</td>
<td colspan="2"></td>
</tr>`;
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/demo/example1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import HyperFormula from 'hyperformula';

console.log(
`%c Using HyperFormula ${HyperFormula.version}`,
'color: blue; font-weight: bold'
'color: blue; font-weight: bold',
);
/* end:skip-in-compilation */

Expand Down Expand Up @@ -37,7 +37,7 @@ hf.setCellContents(
col: 0,
sheet: sheetId,
},
tableData
tableData,
);

// Add named expressions for the "TOTAL" row.
Expand Down
Loading
Loading