@odoo/o-spreadsheet 14.0.0 → 14.0.1

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.
Files changed (198) hide show
  1. package/.eslintrc.json +20 -0
  2. package/.husky/post-checkout +9 -0
  3. package/.husky/pre-commit +39 -0
  4. package/.prettierignore +1 -0
  5. package/astToFormula.patch +0 -0
  6. package/demo/data.js +255 -0
  7. package/demo/index.html +9 -0
  8. package/demo/libs/Chart.bundle.js +20755 -0
  9. package/demo/main.js +101 -0
  10. package/doc/readme.md +46 -0
  11. package/package.json +3 -17
  12. package/rollup.config.js +23 -0
  13. package/src/base_plugin.ts +102 -0
  14. package/src/components/autofill.ts +146 -0
  15. package/src/components/bottom_bar.ts +199 -0
  16. package/src/components/color_picker.ts +150 -0
  17. package/src/components/composer/autocomplete_dropdown.ts +135 -0
  18. package/src/components/composer/composer.ts +487 -0
  19. package/src/components/composer/content_editable_helper.ts +146 -0
  20. package/src/components/figures/chart.ts +70 -0
  21. package/src/components/figures/container.ts +268 -0
  22. package/src/components/figures/text_figure.ts +36 -0
  23. package/src/components/grid.ts +635 -0
  24. package/src/components/helpers/dom_helpers.ts +7 -0
  25. package/src/components/helpers/drag_and_drop.ts +17 -0
  26. package/src/components/icons.ts +36 -0
  27. package/src/components/index.ts +1 -0
  28. package/src/components/menu.ts +288 -0
  29. package/src/components/overlay.ts +457 -0
  30. package/src/components/scrollbar.ts +22 -0
  31. package/src/components/selection_input.ts +168 -0
  32. package/src/components/side_panel/cell_is_rule_editor.ts +169 -0
  33. package/src/components/side_panel/chart_panel.ts +104 -0
  34. package/src/components/side_panel/color_scale_rule_editor.ts +145 -0
  35. package/src/components/side_panel/conditional_formatting.ts +396 -0
  36. package/src/components/side_panel/side_panel.ts +127 -0
  37. package/src/components/side_panel/translations_terms.ts +45 -0
  38. package/src/components/spreadsheet.ts +198 -0
  39. package/src/components/top_bar.ts +535 -0
  40. package/src/constants.ts +26 -0
  41. package/src/data.ts +149 -0
  42. package/src/fonts.ts +41 -0
  43. package/src/formulas/compiler.ts +258 -0
  44. package/src/formulas/composer_tokenizer.ts +70 -0
  45. package/src/formulas/index.ts +15 -0
  46. package/src/formulas/normalize.ts +52 -0
  47. package/src/formulas/parser.ts +280 -0
  48. package/src/formulas/range_tokenizer.ts +97 -0
  49. package/src/formulas/tokenizer.ts +242 -0
  50. package/src/functions/arguments.ts +114 -0
  51. package/src/functions/dates.ts +302 -0
  52. package/src/functions/helpers.ts +592 -0
  53. package/src/functions/index.ts +52 -0
  54. package/src/functions/module_database.ts +282 -0
  55. package/src/functions/module_date.ts +743 -0
  56. package/src/functions/module_info.ts +69 -0
  57. package/src/functions/module_logical.ts +208 -0
  58. package/src/functions/module_lookup.ts +185 -0
  59. package/src/functions/module_math.ts +1252 -0
  60. package/src/functions/module_operators.ts +291 -0
  61. package/src/functions/module_statistical.ts +882 -0
  62. package/src/functions/module_text.ts +370 -0
  63. package/src/helpers/color.ts +30 -0
  64. package/src/helpers/coordinates.ts +71 -0
  65. package/src/helpers/grid_manipulation.ts +68 -0
  66. package/src/helpers/index.ts +7 -0
  67. package/src/helpers/misc.ts +76 -0
  68. package/src/helpers/numbers.ts +117 -0
  69. package/src/helpers/uuid.ts +19 -0
  70. package/src/helpers/zones.ts +263 -0
  71. package/src/history.ts +186 -0
  72. package/src/index.ts +84 -0
  73. package/src/model.ts +261 -0
  74. package/src/plugins/autofill.ts +412 -0
  75. package/src/plugins/chart.ts +404 -0
  76. package/src/plugins/clipboard.ts +461 -0
  77. package/src/plugins/conditional_format.ts +445 -0
  78. package/src/plugins/core.ts +1502 -0
  79. package/src/plugins/edition.ts +157 -0
  80. package/src/plugins/evaluation.ts +428 -0
  81. package/src/plugins/figures.ts +123 -0
  82. package/src/plugins/formatting.ts +630 -0
  83. package/src/plugins/highlight.ts +187 -0
  84. package/src/plugins/index.ts +32 -0
  85. package/src/plugins/merge.ts +524 -0
  86. package/src/plugins/renderer.ts +571 -0
  87. package/src/plugins/selection.ts +562 -0
  88. package/src/plugins/selection_inputs.ts +326 -0
  89. package/src/registries/autofill_modifiers.ts +76 -0
  90. package/src/registries/autofill_rules.ts +98 -0
  91. package/src/registries/figure_registry.ts +30 -0
  92. package/src/registries/index.ts +7 -0
  93. package/src/registries/menu_items_registry.ts +110 -0
  94. package/src/registries/menus/cell_menu_registry.ts +79 -0
  95. package/src/registries/menus/col_menu_registry.ts +63 -0
  96. package/src/registries/menus/index.ts +6 -0
  97. package/src/registries/menus/menu_items_actions.ts +425 -0
  98. package/src/registries/menus/row_menu_registry.ts +63 -0
  99. package/src/registries/menus/sheet_menu_registry.ts +75 -0
  100. package/src/registries/menus/topbar_menu_registry.ts +204 -0
  101. package/src/registries/side_panel_registry.ts +26 -0
  102. package/src/registries/topbar_component_registry.ts +12 -0
  103. package/src/registry.ts +51 -0
  104. package/src/translation.ts +44 -0
  105. package/src/types/autofill.ts +48 -0
  106. package/src/types/chart.ts +26 -0
  107. package/src/types/commands.ts +716 -0
  108. package/src/types/conditional_formatting.ts +124 -0
  109. package/src/types/env.ts +13 -0
  110. package/src/types/functions.ts +35 -0
  111. package/src/types/getters.ts +103 -0
  112. package/src/types/index.ts +20 -0
  113. package/src/types/misc.ts +143 -0
  114. package/src/types/rendering.ts +41 -0
  115. package/src/types/workbook_data.ts +62 -0
  116. package/tests/__mocks__/uuid.ts +7 -0
  117. package/tests/canvas.mock.ts +34 -0
  118. package/tests/components/__mocks__/content_editable_helper.ts +79 -0
  119. package/tests/components/__mocks__/scrollbar.ts +18 -0
  120. package/tests/components/__snapshots__/autocomplete_dropdown_test.ts.snap +29 -0
  121. package/tests/components/__snapshots__/bottom_bar_test.ts.snap +75 -0
  122. package/tests/components/__snapshots__/context_menu_test.ts.snap +88 -0
  123. package/tests/components/__snapshots__/grid_test.ts.snap +60 -0
  124. package/tests/components/__snapshots__/spreadsheet_test.ts.snap +455 -0
  125. package/tests/components/__snapshots__/top_bar_test.ts.snap +705 -0
  126. package/tests/components/autocomplete_dropdown_test.ts +315 -0
  127. package/tests/components/autofill_test.ts +167 -0
  128. package/tests/components/bottom_bar_test.ts +262 -0
  129. package/tests/components/chart_side_panel_test.ts +123 -0
  130. package/tests/components/composer_test.ts +400 -0
  131. package/tests/components/context_menu_test.ts +825 -0
  132. package/tests/components/grid_manipulation_test.ts +163 -0
  133. package/tests/components/grid_test.ts +581 -0
  134. package/tests/components/overlay_test.ts +541 -0
  135. package/tests/components/selection_input_test.ts +259 -0
  136. package/tests/components/side_panel_test.ts +148 -0
  137. package/tests/components/spreadsheet_test.ts +194 -0
  138. package/tests/components/top_bar_test.ts +427 -0
  139. package/tests/data_test.ts +175 -0
  140. package/tests/dom_helper.ts +42 -0
  141. package/tests/formulas/__snapshots__/compiler_test.ts.snap +302 -0
  142. package/tests/formulas/compiler_test.ts +266 -0
  143. package/tests/formulas/composer_tokenizer_test.ts +137 -0
  144. package/tests/formulas/expressions_test.ts +57 -0
  145. package/tests/formulas/formulas_test.ts +80 -0
  146. package/tests/formulas/normalize_test.ts +82 -0
  147. package/tests/formulas/parser_test.ts +224 -0
  148. package/tests/formulas/range_tokenizer_test.ts +187 -0
  149. package/tests/formulas/tokenizer_test.ts +164 -0
  150. package/tests/functions/arguments_test.ts +141 -0
  151. package/tests/functions/dates_test.ts +1081 -0
  152. package/tests/functions/functions_test.ts +53 -0
  153. package/tests/functions/helper_test.ts +98 -0
  154. package/tests/functions/module_database_test.ts +311 -0
  155. package/tests/functions/module_date_test.ts +941 -0
  156. package/tests/functions/module_info_test.ts +139 -0
  157. package/tests/functions/module_logical_test.ts +369 -0
  158. package/tests/functions/module_lookup_test.ts +541 -0
  159. package/tests/functions/module_math_test.ts +2482 -0
  160. package/tests/functions/module_operators_test.ts +955 -0
  161. package/tests/functions/module_statistical_test.ts +2014 -0
  162. package/tests/functions/module_text_test.ts +667 -0
  163. package/tests/helpers/coordinates_test.ts +25 -0
  164. package/tests/helpers/misc_test.ts +95 -0
  165. package/tests/helpers/numbers_test.ts +196 -0
  166. package/tests/helpers/zones_test.ts +97 -0
  167. package/tests/helpers.ts +384 -0
  168. package/tests/menu_items_registry_test.ts +540 -0
  169. package/tests/model/plugins/__snapshots__/chart_test.ts.snap +90 -0
  170. package/tests/model/plugins/chart_test.ts +562 -0
  171. package/tests/model_test.ts +82 -0
  172. package/tests/plugins/__snapshots__/conditional_formatting_test.ts.snap +131 -0
  173. package/tests/plugins/__snapshots__/renderer_test.ts.snap +371 -0
  174. package/tests/plugins/autofill_test.ts +457 -0
  175. package/tests/plugins/borders_test.ts +295 -0
  176. package/tests/plugins/clipboard_test.ts +1180 -0
  177. package/tests/plugins/conditional_formatting_test.ts +1253 -0
  178. package/tests/plugins/core_test.ts +614 -0
  179. package/tests/plugins/edition_test.ts +100 -0
  180. package/tests/plugins/evaluation_async_test.ts +332 -0
  181. package/tests/plugins/evaluation_dates_test.ts +79 -0
  182. package/tests/plugins/evaluation_test.ts +901 -0
  183. package/tests/plugins/figures_test.ts +327 -0
  184. package/tests/plugins/formatting_test.ts +391 -0
  185. package/tests/plugins/grid_manipulation_test.ts +1366 -0
  186. package/tests/plugins/highlight_test.ts +413 -0
  187. package/tests/plugins/history_test.ts +142 -0
  188. package/tests/plugins/import_export_test.ts +276 -0
  189. package/tests/plugins/merges_test.ts +490 -0
  190. package/tests/plugins/navigation_test.ts +181 -0
  191. package/tests/plugins/plugins/evaluation_test.ts +111 -0
  192. package/tests/plugins/renderer_test.ts +598 -0
  193. package/tests/plugins/resizing_test.ts +152 -0
  194. package/tests/plugins/selection_input_test.ts +409 -0
  195. package/tests/plugins/selection_test.ts +442 -0
  196. package/tests/plugins/sheets_test.ts +643 -0
  197. package/tests/plugins/style_test.ts +90 -0
  198. package/tsconfig.json +22 -0
@@ -0,0 +1,29 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Functions autocomplete autocomplete simple snapshot with =S 1`] = `
4
+ <div
5
+ class="o-autocomplete-dropdown"
6
+ >
7
+ <div
8
+ class="o-autocomplete-value-focus"
9
+ >
10
+ <div
11
+ class="o-autocomplete-value"
12
+ >
13
+ SUM
14
+ </div>
15
+ <div
16
+ class="o-autocomplete-description"
17
+ >
18
+ do sum
19
+ </div>
20
+ </div>
21
+ <div>
22
+ <div
23
+ class="o-autocomplete-value"
24
+ >
25
+ SZZ
26
+ </div>
27
+ </div>
28
+ </div>
29
+ `;
@@ -0,0 +1,75 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`BottomBar component simple rendering 1`] = `
4
+ <div
5
+ class="o-spreadsheet-bottom-bar"
6
+ >
7
+ <div
8
+ class="o-sheet-item o-add-sheet"
9
+ >
10
+ <svg
11
+ class="o-icon"
12
+ >
13
+ <path
14
+ d="M8,0 L10,0 L10,8 L18,8 L18,10 L10,10 L10,18 L8,18 L8,10 L0,10 L0,8 L8,8"
15
+ fill="#000000"
16
+ />
17
+ </svg>
18
+ </div>
19
+ <div
20
+ class="o-sheet-item o-list-sheets"
21
+ >
22
+ <svg
23
+ class="o-icon"
24
+ viewBox="0 0 384 384"
25
+ >
26
+ <rect
27
+ height="42.667"
28
+ width="384"
29
+ x="0"
30
+ y="277.333"
31
+ />
32
+ <rect
33
+ height="42.667"
34
+ width="384"
35
+ x="0"
36
+ y="170.667"
37
+ />
38
+ <rect
39
+ height="42.667"
40
+ width="384"
41
+ x="0"
42
+ y="64"
43
+ />
44
+ </svg>
45
+ </div>
46
+ <div
47
+ class="o-all-sheets"
48
+ >
49
+ <div
50
+ class="o-sheet-item o-sheet active"
51
+ data-id="1"
52
+ title="Sheet1"
53
+ >
54
+ <span
55
+ class="o-sheet-name"
56
+ >
57
+ Sheet1
58
+ </span>
59
+ <span
60
+ class="o-sheet-icon"
61
+ >
62
+ <svg
63
+ class="o-icon"
64
+ >
65
+ <polygon
66
+ fill="#000000"
67
+ points="0 0 4 4 8 0"
68
+ transform="translate(5 7)"
69
+ />
70
+ </svg>
71
+ </span>
72
+ </div>
73
+ </div>
74
+ </div>
75
+ `;
@@ -0,0 +1,88 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Context Menu context menu simple rendering 1`] = `
4
+ <div
5
+ class="o-menu"
6
+ style="top:200px;left:300px;max-height:1000px"
7
+ >
8
+ <div
9
+ class="o-menu-item"
10
+ data-name="cut"
11
+ title="Cut"
12
+ >
13
+ Cut
14
+ </div>
15
+ <div
16
+ class="o-menu-item"
17
+ data-name="copy"
18
+ title="Copy"
19
+ >
20
+ Copy
21
+ </div>
22
+ <div
23
+ class="o-menu-item"
24
+ data-name="paste"
25
+ title="Paste"
26
+ >
27
+ Paste
28
+ </div>
29
+ <div
30
+ class="o-menu-item o-menu-root o-separator"
31
+ data-name="paste_special"
32
+ title="Paste special"
33
+ >
34
+ Paste special
35
+ <svg
36
+ class="o-icon"
37
+ >
38
+ <polygon
39
+ fill="#000000"
40
+ points="0 0 4 4 0 8"
41
+ transform="translate(5 5)"
42
+ />
43
+ </svg>
44
+ </div>
45
+ <div
46
+ class="o-menu-item"
47
+ data-name="add_row_before"
48
+ title="Insert row"
49
+ >
50
+ Insert row
51
+ </div>
52
+ <div
53
+ class="o-menu-item o-separator"
54
+ data-name="add_column_before"
55
+ title="Insert column"
56
+ >
57
+ Insert column
58
+ </div>
59
+ <div
60
+ class="o-menu-item"
61
+ data-name="delete_row"
62
+ title="Delete row 8"
63
+ >
64
+ Delete row 8
65
+ </div>
66
+ <div
67
+ class="o-menu-item o-separator"
68
+ data-name="delete_column"
69
+ title="Delete column C"
70
+ >
71
+ Delete column C
72
+ </div>
73
+ <div
74
+ class="o-menu-item disabled"
75
+ data-name="clear_cell"
76
+ title="Clear cell"
77
+ >
78
+ Clear cell
79
+ </div>
80
+ <div
81
+ class="o-menu-item"
82
+ data-name="conditional_formatting"
83
+ title="Conditional formatting"
84
+ >
85
+ Conditional formatting
86
+ </div>
87
+ </div>
88
+ `;
@@ -0,0 +1,60 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Grid component simple rendering snapshot 1`] = `
4
+ <div
5
+ class="o-grid"
6
+ >
7
+ <canvas
8
+ height="985"
9
+ style="width:985px;height:985px;"
10
+ tabindex="-1"
11
+ width="985"
12
+ />
13
+ <div
14
+ class="o-autofill"
15
+ style="top:45px;left:140px"
16
+ >
17
+ <div
18
+ class="o-autofill-handler"
19
+ style="top:0px;left:0px;"
20
+ />
21
+ </div>
22
+ <div
23
+ class="o-overlay"
24
+ >
25
+ <div
26
+ class="o-col-resizer"
27
+ />
28
+ <div
29
+ class="o-row-resizer"
30
+ />
31
+ <div
32
+ class="all"
33
+ />
34
+ </div>
35
+ <div />
36
+ <div
37
+ class="o-scrollbar vertical"
38
+ >
39
+ <div
40
+ style="width:1px;height:2328px"
41
+ />
42
+ </div>
43
+ <div
44
+ class="o-scrollbar horizontal"
45
+ >
46
+ <div
47
+ style="height:1px;width:2592px"
48
+ />
49
+ </div>
50
+ </div>
51
+ `;
52
+
53
+ exports[`error tooltip can display error tooltip 1`] = `
54
+ <div
55
+ class="o-error-tooltip"
56
+ style="left:336px;top:187px"
57
+ >
58
+ Function DIVIDE parameter 2 cannot be zero.
59
+ </div>
60
+ `;
@@ -0,0 +1,455 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Spreadsheet simple rendering snapshot 1`] = `
4
+ <div
5
+ class="o-spreadsheet"
6
+ >
7
+ <div
8
+ class="o-spreadsheet-topbar o-two-columns"
9
+ >
10
+ <div
11
+ class="o-topbar-top"
12
+ >
13
+ <!-- Menus -->
14
+ <div
15
+ class="o-topbar-topleft"
16
+ >
17
+ <div
18
+ class="o-topbar-menu"
19
+ data-id="file"
20
+ >
21
+ File
22
+ </div>
23
+ <div
24
+ class="o-topbar-menu"
25
+ data-id="edit"
26
+ >
27
+ Edit
28
+ </div>
29
+ <div
30
+ class="o-topbar-menu"
31
+ data-id="view"
32
+ >
33
+ View
34
+ </div>
35
+ <div
36
+ class="o-topbar-menu"
37
+ data-id="insert"
38
+ >
39
+ Insert
40
+ </div>
41
+ <div
42
+ class="o-topbar-menu"
43
+ data-id="format"
44
+ >
45
+ Format
46
+ </div>
47
+ </div>
48
+ <div
49
+ class="o-topbar-topright"
50
+ />
51
+ </div>
52
+ <!-- Toolbar and Cell Content -->
53
+ <div
54
+ class="o-topbar-toolbar"
55
+ >
56
+ <!-- Toolbar -->
57
+ <div
58
+ class="o-toolbar-tools"
59
+ >
60
+ <div
61
+ class="o-tool o-disabled"
62
+ title="Undo"
63
+ >
64
+ <svg
65
+ class="o-icon"
66
+ >
67
+ <path
68
+ d="M11.5656391,4.43436088 L9,7 L16,7 L16,0 L13.0418424,2.95815758 C11.5936787,1.73635959 9.72260775,1 7.67955083,1 C4.22126258,1 1.25575599,3.10984908 0,6 L2,7 C2.93658775,4.60974406 5.12943697,3.08011229 7.67955083,3 C9.14881247,3.0528747 10.4994783,3.57862053 11.5656391,4.43436088 Z"
69
+ fill="#000000"
70
+ transform="matrix(-1 0 0 1 17 5)"
71
+ />
72
+ </svg>
73
+ </div>
74
+ <div
75
+ class="o-tool o-disabled"
76
+ title="Redo"
77
+ >
78
+ <svg
79
+ class="o-icon"
80
+ >
81
+ <path
82
+ d="M11.5656391,4.43436088 L9,7 L16,7 L16,0 L13.0418424,2.95815758 C11.5936787,1.73635959 9.72260775,1 7.67955083,1 C4.22126258,1 1.25575599,3.10984908 0,6 L2,7 C2.93658775,4.60974406 5.12943697,3.08011229 7.67955083,3 C9.14881247,3.0528747 10.4994783,3.57862053 11.5656391,4.43436088 Z"
83
+ fill="#000000"
84
+ transform="translate(1 5)"
85
+ />
86
+ </svg>
87
+ </div>
88
+ <div
89
+ class="o-tool"
90
+ title="Paint Format"
91
+ >
92
+ <svg
93
+ class="o-icon"
94
+ >
95
+ <path
96
+ d="M9,0 L1,0 C0.45,0 0,0.45 0,1 L0,4 C0,4.55 0.45,5 1,5 L9,5 C9.55,5 10,4.55 10,4 L10,3 L11,3 L11,6 L4,6 L4,14 L6,14 L6,8 L13,8 L13,2 L10,2 L10,1 C10,0.45 9.55,0 9,0 Z"
97
+ fill="#000000"
98
+ transform="translate(3 2)"
99
+ />
100
+ </svg>
101
+ </div>
102
+ <div
103
+ class="o-tool"
104
+ title="Clear Format"
105
+ >
106
+ <svg
107
+ class="o-icon"
108
+ >
109
+ <path
110
+ d="M0.27,1.55 L5.43,6.7 L3,12 L5.5,12 L7.14,8.42 L11.73,13 L13,11.73 L1.55,0.27 L0.27,1.55 L0.27,1.55 Z M3.82,0 L5.82,2 L7.58,2 L7.03,3.21 L8.74,4.92 L10.08,2 L14,2 L14,0 L3.82,0 L3.82,0 Z"
111
+ fill="#000000"
112
+ transform="translate(2 3)"
113
+ />
114
+ </svg>
115
+ </div>
116
+ <div
117
+ class="o-divider"
118
+ />
119
+ <div
120
+ class="o-tool"
121
+ title="Format as percent"
122
+ >
123
+ %
124
+ </div>
125
+ <div
126
+ class="o-tool"
127
+ title="Decrease decimal places"
128
+ >
129
+ .0
130
+ </div>
131
+ <div
132
+ class="o-tool"
133
+ title="Increase decimal places"
134
+ >
135
+ .00
136
+ </div>
137
+ <div
138
+ class="o-tool o-dropdown"
139
+ title="More formats"
140
+ >
141
+ <div
142
+ class="o-text-icon"
143
+ >
144
+ 123
145
+ <svg
146
+ class="o-icon"
147
+ >
148
+ <polygon
149
+ fill="#000000"
150
+ points="0 0 4 4 8 0"
151
+ transform="translate(5 7)"
152
+ />
153
+ </svg>
154
+ </div>
155
+ </div>
156
+ <div
157
+ class="o-divider"
158
+ />
159
+ <!-- &lt;div class="o-tool" title="Font"&gt;&lt;span&gt;Roboto&lt;/span&gt; &lt;svg class="o-icon"&gt;&lt;polygon fill="#000000" points="0 0 4 4 8 0" transform="translate(5 7)"/&gt;&lt;/svg&gt;&lt;/div&gt; -->
160
+ <div
161
+ class="o-tool o-dropdown"
162
+ title="Font Size"
163
+ >
164
+ <div
165
+ class="o-text-icon"
166
+ >
167
+ 10
168
+
169
+ <svg
170
+ class="o-icon"
171
+ >
172
+ <polygon
173
+ fill="#000000"
174
+ points="0 0 4 4 8 0"
175
+ transform="translate(5 7)"
176
+ />
177
+ </svg>
178
+ </div>
179
+ </div>
180
+ <div
181
+ class="o-divider"
182
+ />
183
+ <div
184
+ class="o-tool"
185
+ title="Bold"
186
+ >
187
+ <svg
188
+ class="o-icon"
189
+ >
190
+ <path
191
+ d="M9,3.5 C9,1.57 7.43,0 5.5,0 L1.77635684e-15,0 L1.77635684e-15,12 L6.25,12 C8.04,12 9.5,10.54 9.5,8.75 C9.5,7.45 8.73,6.34 7.63,5.82 C8.46,5.24 9,4.38 9,3.5 Z M5,2 C5.82999992,2 6.5,2.67 6.5,3.5 C6.5,4.33 5.82999992,5 5,5 L3,5 L3,2 L5,2 Z M3,10 L3,7 L5.5,7 C6.32999992,7 7,7.67 7,8.5 C7,9.33 6.32999992,10 5.5,10 L3,10 Z"
192
+ fill="#000000"
193
+ fill-rule="evenodd"
194
+ transform="translate(4 3)"
195
+ />
196
+ </svg>
197
+ </div>
198
+ <div
199
+ class="o-tool"
200
+ title="Italic"
201
+ >
202
+ <svg
203
+ class="o-icon"
204
+ >
205
+ <polygon
206
+ fill="#000000"
207
+ fill-rule="evenodd"
208
+ points="4 0 4 2 6.58 2 2.92 10 0 10 0 12 8 12 8 10 5.42 10 9.08 2 12 2 12 0"
209
+ transform="translate(3 3)"
210
+ />
211
+ </svg>
212
+ </div>
213
+ <div
214
+ class="o-tool"
215
+ title="Strikethrough"
216
+ >
217
+ <svg
218
+ class="o-icon"
219
+ >
220
+ <path
221
+ d="M2.8875,3.06 C2.8875,2.6025 2.985,2.18625 3.18375,1.8075 C3.3825,1.42875 3.66,1.10625 4.02,0.84 C4.38,0.57375 4.80375,0.3675 5.29875,0.22125 C5.79375,0.075 6.33375,0 6.92625,0 C7.53375,0 8.085,0.0825 8.58,0.25125 C9.075,0.42 9.49875,0.6525 9.85125,0.95625 C10.20375,1.25625 10.47375,1.6125 10.665,2.02875 C10.85625,2.44125 10.95,2.895 10.95,3.38625 L8.6925,3.38625 C8.6925,3.1575 8.655,2.94375 8.58375,2.74875 C8.5125,2.55 8.4,2.38125 8.25,2.2425 C8.1,2.10375 7.9125,1.99125 7.6875,1.91625 C7.4625,1.8375 7.19625,1.8 6.88875,1.8 C6.5925,1.8 6.3375,1.83375 6.11625,1.8975 C5.89875,1.96125 5.71875,2.05125 5.57625,2.1675 C5.43375,2.28375 5.325,2.41875 5.25375,2.5725 C5.1825,2.72625 5.145,2.895 5.145,3.0675 C5.145,3.4275 5.32875,3.73125 5.69625,3.975 C5.71780203,3.98908066 5.73942012,4.00311728 5.76118357,4.01733315 C6.02342923,4.18863185 6.5,4.5 7,5 L4,5 C4,5 3.21375,4.37625 3.17625,4.30875 C2.985,3.9525 2.8875,3.53625 2.8875,3.06 Z M14,6 L0,6 L0,8 L7.21875,8 C7.35375,8.0525 7.51875,8.105 7.63125,8.15375 C7.90875,8.2775 8.12625,8.40875 8.28375,8.53625 C8.44125,8.6675 8.54625,8.81 8.6025,8.96 C8.65875,9.11375 8.685,9.28625 8.685,9.47375 C8.685,9.65 8.65125,9.815 8.58375,9.965 C8.51625,10.11875 8.41125,10.25 8.2725,10.35875 C8.13375,10.4675 7.95375,10.55375 7.74,10.6175 C7.5225,10.68125 7.27125,10.71125 6.97875,10.71125 C6.6525,10.71125 6.35625,10.6775 6.09,10.61375 C5.82375,10.55 5.59875,10.445 5.41125,10.3025 C5.22375,10.16 5.0775,9.9725 4.9725,9.74375 C4.8675,9.515 4.78125,9.17 4.78125,9 L2.55,9 C2.55,9.2525 2.61,9.6875 2.72625,10.025 C2.8425,10.3625 3.0075,10.66625 3.21375,10.9325 C3.42,11.19875 3.6675,11.4275 3.94875,11.6225 C4.23,11.8175 4.53375,11.9825 4.86375,12.11 C5.19375,12.24125 5.535,12.33875 5.89875,12.39875 C6.25875,12.4625 6.6225,12.4925 6.9825,12.4925 C7.5825,12.4925 8.13,12.425 8.6175,12.28625 C9.105,12.1475 9.525,11.94875 9.87,11.69375 C10.215,11.435 10.48125,11.12 10.6725,10.74125 C10.86375,10.3625 10.95375,9.935 10.95375,9.455 C10.95375,9.005 10.875,8.6 10.72125,8.24375 C10.68375,8.1575 10.6425,8.075 10.59375,7.9925 L14,8 L14,6 Z"
222
+ fill="#010101"
223
+ fill-rule="evenodd"
224
+ transform="translate(2 3)"
225
+ />
226
+ </svg>
227
+ </div>
228
+ <div
229
+ class="o-tool o-dropdown o-with-color"
230
+ >
231
+ <span
232
+ style="border-color:black"
233
+ title="Text Color"
234
+ >
235
+ <svg
236
+ class="o-icon"
237
+ >
238
+ <path
239
+ d="M7,0 L5,0 L0.5,12 L2.5,12 L3.62,9 L8.37,9 L9.49,12 L11.49,12 L7,0 L7,0 Z M4.38,7 L6,2.67 L7.62,7 L4.38,7 L4.38,7 Z"
240
+ fill="#000000"
241
+ transform="translate(3 1)"
242
+ />
243
+ </svg>
244
+ </span>
245
+ </div>
246
+ <div
247
+ class="o-divider"
248
+ />
249
+ <div
250
+ class="o-tool o-dropdown o-with-color"
251
+ >
252
+ <span
253
+ style="border-color:white"
254
+ title="Fill Color"
255
+ >
256
+ <svg
257
+ class="o-icon"
258
+ >
259
+ <path
260
+ d="M14.5,8.87 C14.5,8.87 13,10.49 13,11.49 C13,12.32 13.67,12.99 14.5,12.99 C15.33,12.99 16,12.32 16,11.49 C16,10.5 14.5,8.87 14.5,8.87 L14.5,8.87 Z M12.71,6.79 L5.91,0 L4.85,1.06 L6.44,2.65 L2.29,6.79 C1.9,7.18 1.9,7.81 2.29,8.2 L6.79,12.7 C6.99,12.9 7.24,13 7.5,13 C7.76,13 8.01,12.9 8.21,12.71 L12.71,8.21 C13.1,7.82 13.1,7.18 12.71,6.79 L12.71,6.79 Z M4.21,7 L7.5,3.71 L10.79,7 L4.21,7 L4.21,7 Z"
261
+ fill="#000000"
262
+ />
263
+ </svg>
264
+ </span>
265
+ </div>
266
+ <div
267
+ class="o-tool o-dropdown"
268
+ >
269
+ <span
270
+ title="Borders"
271
+ >
272
+ <svg
273
+ class="o-icon"
274
+ >
275
+ <path
276
+ d="M0,0 L0,14 L14,14 L14,0 L0,0 L0,0 Z M6,12 L2,12 L2,8 L6,8 L6,12 L6,12 Z M6,6 L2,6 L2,2 L6,2 L6,6 L6,6 Z M12,12 L8,12 L8,8 L12,8 L12,12 L12,12 Z M12,6 L8,6 L8,2 L12,2 L12,6 L12,6 Z"
277
+ fill="#000000"
278
+ transform="translate(2 2)"
279
+ />
280
+ </svg>
281
+ </span>
282
+ </div>
283
+ <div
284
+ class="o-tool o-disabled"
285
+ title="Merge Cells"
286
+ >
287
+ <svg
288
+ class="o-icon"
289
+ >
290
+ <path
291
+ d="M3,6 L1,6 L1,2 L8,2 L8,4 L3,4 L3,6 Z M10,4 L10,2 L17,2 L17,6 L15,6 L15,4 L10,4 Z M10,14 L15,14 L15,12 L17,12 L17,16 L10,16 L10,14 Z M1,12 L3,12 L3,14 L8,14 L8,16 L1,16 L1,12 Z M1,8 L5,8 L5,6 L8,9 L5,12 L5,10 L1,10 L1,8 Z M10,9 L13,6 L13,8 L17,8 L17,10 L13,10 L13,12 L10,9 Z"
292
+ fill="#000000"
293
+ />
294
+ </svg>
295
+ </div>
296
+ <div
297
+ class="o-divider"
298
+ />
299
+ <div
300
+ class="o-tool o-dropdown"
301
+ title="Horizontal align"
302
+ >
303
+ <span>
304
+ <svg
305
+ class="o-icon"
306
+ >
307
+ <path
308
+ d="M0,14 L10,14 L10,12 L0,12 L0,14 Z M10,4 L0,4 L0,6 L10,6 L10,4 Z M0,0 L0,2 L14,2 L14,0 L0,0 Z M0,10 L14,10 L14,8 L0,8 L0,10 Z"
309
+ fill="#000000"
310
+ transform="translate(2 2)"
311
+ />
312
+ </svg>
313
+ <svg
314
+ class="o-icon"
315
+ >
316
+ <polygon
317
+ fill="#000000"
318
+ points="0 0 4 4 8 0"
319
+ transform="translate(5 7)"
320
+ />
321
+ </svg>
322
+ </span>
323
+ </div>
324
+ <!-- &lt;div class="o-tool" title="Vertical align"&gt;&lt;span&gt;&lt;svg class="o-icon"&gt;&lt;path fill="#000000" d="M9.5,3 L7,3 L7,0 L5,0 L5,3 L2.5,3 L6,6.5 L9.5,3 L9.5,3 Z M0,8 L0,10 L12,10 L12,8 L0,8 L0,8 Z M2.5,15 L5,15 L5,18 L7,18 L7,15 L9.5,15 L6,11.5 L2.5,15 L2.5,15 Z" transform="translate(3)"/&gt;&lt;/svg&gt;&lt;/span&gt; &lt;svg class="o-icon"&gt;&lt;polygon fill="#000000" points="0 0 4 4 8 0" transform="translate(5 7)"/&gt;&lt;/svg&gt;&lt;/div&gt; -->
325
+ <!-- &lt;div class="o-tool" title="Text Wrapping"&gt;&lt;svg class="o-icon"&gt;&lt;path fill="#000000" d="M14,0 L0,0 L0,2 L14,2 L14,0 Z M0,12 L4,12 L4,10 L0,10 L0,12 Z M11.5,5 L0,5 L0,7 L11.75,7 C12.58,7 13.25,7.67 13.25,8.5 C13.25,9.33 12.58,10 11.75,10 L9,10 L9,8 L6,11 L9,14 L9,12 L11.5,12 C13.43,12 15,10.43 15,8.5 C15,6.57 13.43,5 11.5,5 Z" transform="translate(2 3)"/&gt;&lt;/svg&gt;&lt;/div&gt; -->
326
+ <div
327
+ class="o-divider"
328
+ />
329
+ </div>
330
+ <!-- Cell content -->
331
+ <div
332
+ class="o-toolbar-cell-content"
333
+ />
334
+ </div>
335
+ </div>
336
+ <div
337
+ class="o-grid o-two-columns"
338
+ >
339
+ <canvas
340
+ height="150"
341
+ style="width:-15px;height:-15px;"
342
+ tabindex="-1"
343
+ width="300"
344
+ />
345
+ <div
346
+ class="o-autofill"
347
+ style="top:45px;left:140px"
348
+ >
349
+ <div
350
+ class="o-autofill-handler"
351
+ style="top:0px;left:0px;"
352
+ />
353
+ </div>
354
+ <div
355
+ class="o-overlay"
356
+ >
357
+ <div
358
+ class="o-col-resizer"
359
+ />
360
+ <div
361
+ class="o-row-resizer"
362
+ />
363
+ <div
364
+ class="all"
365
+ />
366
+ </div>
367
+ <div />
368
+ <div
369
+ class="o-scrollbar vertical"
370
+ >
371
+ <div
372
+ style="width:1px;height:2328px"
373
+ />
374
+ </div>
375
+ <div
376
+ class="o-scrollbar horizontal"
377
+ >
378
+ <div
379
+ style="height:1px;width:2592px"
380
+ />
381
+ </div>
382
+ </div>
383
+ <div
384
+ class="o-spreadsheet-bottom-bar o-two-columns"
385
+ >
386
+ <div
387
+ class="o-sheet-item o-add-sheet"
388
+ >
389
+ <svg
390
+ class="o-icon"
391
+ >
392
+ <path
393
+ d="M8,0 L10,0 L10,8 L18,8 L18,10 L10,10 L10,18 L8,18 L8,10 L0,10 L0,8 L8,8"
394
+ fill="#000000"
395
+ />
396
+ </svg>
397
+ </div>
398
+ <div
399
+ class="o-sheet-item o-list-sheets"
400
+ >
401
+ <svg
402
+ class="o-icon"
403
+ viewBox="0 0 384 384"
404
+ >
405
+ <rect
406
+ height="42.667"
407
+ width="384"
408
+ x="0"
409
+ y="277.333"
410
+ />
411
+ <rect
412
+ height="42.667"
413
+ width="384"
414
+ x="0"
415
+ y="170.667"
416
+ />
417
+ <rect
418
+ height="42.667"
419
+ width="384"
420
+ x="0"
421
+ y="64"
422
+ />
423
+ </svg>
424
+ </div>
425
+ <div
426
+ class="o-all-sheets"
427
+ >
428
+ <div
429
+ class="o-sheet-item o-sheet active"
430
+ data-id="1"
431
+ title="Sheet1"
432
+ >
433
+ <span
434
+ class="o-sheet-name"
435
+ >
436
+ Sheet1
437
+ </span>
438
+ <span
439
+ class="o-sheet-icon"
440
+ >
441
+ <svg
442
+ class="o-icon"
443
+ >
444
+ <polygon
445
+ fill="#000000"
446
+ points="0 0 4 4 8 0"
447
+ transform="translate(5 7)"
448
+ />
449
+ </svg>
450
+ </span>
451
+ </div>
452
+ </div>
453
+ </div>
454
+ </div>
455
+ `;