Skip to content

Commit

Permalink
Merge pull request #2 from handsontable/feature/issue-1441
Browse files Browse the repository at this point in the history
  • Loading branch information
sequba authored Oct 24, 2024
2 parents 28116bf + 1c2e8b8 commit d23cf89
Show file tree
Hide file tree
Showing 24 changed files with 42 additions and 42 deletions.
2 changes: 1 addition & 1 deletion docs/examples/advanced-usage/example1.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/* start:skip-in-compilation */
import HyperFormula from 'hyperformula';

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

/* end:skip-in-compilation */
// first column represents players' IDs
// second column represents players' scores
const playersAData = [
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/advanced-usage/example1.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* start:skip-in-compilation */
import HyperFormula from 'hyperformula';
/* end:skip-in-compilation */

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

// first column represents players' IDs
// second column represents players' scores
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/basic-operations/example1.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/* start:skip-in-compilation */
import HyperFormula from 'hyperformula';

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

/* end:skip-in-compilation */
const ANIMATION_ENABLED = true;

/**
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/basic-operations/example1.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* start:skip-in-compilation */
import HyperFormula from 'hyperformula';
/* end:skip-in-compilation */

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

const ANIMATION_ENABLED = true;

Expand Down
2 changes: 1 addition & 1 deletion docs/examples/basic-usage/example1.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/* start:skip-in-compilation */
import HyperFormula from 'hyperformula';

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

/* end:skip-in-compilation */
const tableData = [['10', '20', '=SUM(A1,B1)']];
// Create an empty HyperFormula instance.
const hf = HyperFormula.buildEmpty({
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/basic-usage/example1.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* start:skip-in-compilation */
import HyperFormula from 'hyperformula';
/* end:skip-in-compilation */

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

const tableData = [['10', '20', '=SUM(A1,B1)']];

Expand Down
2 changes: 1 addition & 1 deletion docs/examples/batch-operations/example1.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/* start:skip-in-compilation */
import HyperFormula from 'hyperformula';

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

/* end:skip-in-compilation */
/**
* Initial table data.
*/
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/batch-operations/example1.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* start:skip-in-compilation */
import HyperFormula from 'hyperformula';
/* end:skip-in-compilation */

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

/**
* Initial table data.
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/clipboard-operations/example1.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/* start:skip-in-compilation */
import HyperFormula from 'hyperformula';

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

/* end:skip-in-compilation */
/**
* Initial table data.
*/
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/clipboard-operations/example1.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* start:skip-in-compilation */
import HyperFormula from 'hyperformula';
/* end:skip-in-compilation */

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

/**
* Initial table data.
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/date-time/example1.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
import HyperFormula from 'hyperformula';
import moment from 'moment';

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

/* end:skip-in-compilation */
/**
* Function defining the way HF should handle the provided date string.
*
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/date-time/example1.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/* start:skip-in-compilation */
import HyperFormula from 'hyperformula';
import moment from 'moment';
/* end:skip-in-compilation */

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

/**
* Function defining the way HF should handle the provided date string.
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/demo/example1.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/* start:skip-in-compilation */
import HyperFormula from 'hyperformula';

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

/* end:skip-in-compilation */
const tableData = [
['Greg Black', 4.66, '=B1*1.3', '=AVERAGE(B1:C1)', '=SUM(B1:C1)'],
['Anne Carpenter', 5.25, '=$B$2*30%', '=AVERAGE(B2:C2)', '=SUM(B2:C2)'],
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/demo/example1.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* start:skip-in-compilation */
import HyperFormula from 'hyperformula';
/* end:skip-in-compilation */

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

const tableData = [
['Greg Black', 4.66, '=B1*1.3', '=AVERAGE(B1:C1)', '=SUM(B1:C1)'],
Expand Down
9 changes: 4 additions & 5 deletions docs/examples/i18n/example1.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@
import HyperFormula from 'hyperformula';
import moment from 'moment';

/* end:skip-in-compilation */
/* start:skip-in-sandbox */
const enUS = HyperFormula.languages.enUS;

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

/* end:skip-in-compilation */
/* start:skip-in-sandbox */
const enUS = HyperFormula.languages.enUS;
/* end:skip-in-sandbox */
/**
* Initial table data.
*/
Expand Down
16 changes: 9 additions & 7 deletions docs/examples/i18n/example1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
import HyperFormula from 'hyperformula';
import enUS from 'hyperformula/es/i18n/languages/enUS';
import moment from 'moment';
/* end:skip-in-compilation */

/* start:skip-in-sandbox */
const enUS = HyperFormula.languages.enUS;
/* end:skip-in-sandbox */

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

/* start:skip-in-sandbox */
const enUS = HyperFormula.languages.enUS;
/* end:skip-in-sandbox */

/**
* Initial table data.
Expand Down Expand Up @@ -157,7 +157,7 @@ function renderTable(calculated = false) {
let newTbodyHTML = '';

for (let row = 0; row < height; row++) {
newTbodyHTML += `<tr class="${row === height-1 ? 'summary' : ''}">`;
newTbodyHTML += `<tr class="${row === height - 1 ? 'summary' : ''}">`;

for (let col = 0; col < width; col++) {
const cellAddress = { sheet: sheetId, col, row };
Expand All @@ -167,7 +167,9 @@ function renderTable(calculated = false) {
? hf.getCellFormula(cellAddress)
: formatCellValue(cellAddress);

newTbodyHTML += `<td class="${cellHasFormula ? updatedCellClass : ''}"><span>${displayValue}</span></td>`;
newTbodyHTML += `<td class="${
cellHasFormula ? updatedCellClass : ''
}"><span>${displayValue}</span></td>`;
}

newTbodyHTML += '</tr>';
Expand Down
9 changes: 4 additions & 5 deletions docs/examples/localizing-functions/example1.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
/* start:skip-in-compilation */
import HyperFormula from 'hyperformula';

/* end:skip-in-compilation */
/* start:skip-in-sandbox */
const frFR = HyperFormula.languages.frFR;

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

/* end:skip-in-compilation */
/* start:skip-in-sandbox */
const frFR = HyperFormula.languages.frFR;
/* end:skip-in-sandbox */
/**
* Initial table data.
*/
Expand Down
10 changes: 5 additions & 5 deletions docs/examples/localizing-functions/example1.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
/* start:skip-in-compilation */
import HyperFormula from 'hyperformula';
import frFR from 'hyperformula/es/i18n/languages/frFR';
/* end:skip-in-compilation */

/* start:skip-in-sandbox */
const frFR = HyperFormula.languages.frFR;
/* end:skip-in-sandbox */

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

/* start:skip-in-sandbox */
const frFR = HyperFormula.languages.frFR;
/* end:skip-in-sandbox */

/**
* Initial table data.
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/named-expressions/example1.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/* start:skip-in-compilation */
import HyperFormula from 'hyperformula';

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

/* end:skip-in-compilation */
/**
* Initial table data.
*/
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/named-expressions/example1.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* start:skip-in-compilation */
import HyperFormula from 'hyperformula';
/* end:skip-in-compilation */

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

/**
* Initial table data.
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/sorting-data/example1.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/* start:skip-in-compilation */
import HyperFormula from 'hyperformula';

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

/* end:skip-in-compilation */
/**
* Initial table data.
*/
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/sorting-data/example1.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* start:skip-in-compilation */
import HyperFormula from 'hyperformula';
/* end:skip-in-compilation */

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

/**
* Initial table data.
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/undo-redo/example1.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/* start:skip-in-compilation */
import HyperFormula from 'hyperformula';

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

/* end:skip-in-compilation */
/**
* Initial table data.
*/
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/undo-redo/example1.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* start:skip-in-compilation */
import HyperFormula from 'hyperformula';
/* end:skip-in-compilation */

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

/**
* Initial table data.
Expand Down

0 comments on commit d23cf89

Please sign in to comment.