@trebco/treb 32.14.0 → 36.1.3

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 (267) hide show
  1. package/api-generator/api-generator-types.ts +3 -0
  2. package/api-generator/api-generator.ts +15 -1
  3. package/bun.lock +145 -99
  4. package/dist/chunk-43DLP2OX.mjs +11 -0
  5. package/dist/chunk-4CKS56PE.mjs +11 -0
  6. package/dist/chunk-75PARUQE.mjs +11 -0
  7. package/dist/chunk-7QD63AZS.mjs +24601 -0
  8. package/dist/chunk-A55ARVRD.mjs +11 -0
  9. package/dist/chunk-DESAKYW4.mjs +11 -0
  10. package/dist/chunk-EQ2R5W6P.mjs +24565 -0
  11. package/dist/chunk-IYJU2J6D.mjs +24601 -0
  12. package/dist/chunk-KSJFPGXT.mjs +11 -0
  13. package/dist/chunk-ORQFKLXM.mjs +24601 -0
  14. package/dist/chunk-SFDNNDHY.mjs +11 -0
  15. package/dist/chunk-T47DX5MI.mjs +11 -0
  16. package/dist/chunk-T6ILBVEX.mjs +11 -0
  17. package/dist/chunk-TPRCDYYG.mjs +11 -0
  18. package/dist/chunk-YAHNOOHO.mjs +11 -0
  19. package/dist/chunk-YLCFKX2G.mjs +24601 -0
  20. package/dist/treb-export-worker.mjs +9 -2
  21. package/dist/treb-spreadsheet.mjs +7 -19
  22. package/dist/treb.d.ts +144 -117
  23. package/esbuild-composite.mjs +18 -6
  24. package/esbuild-utils.mjs +62 -3
  25. package/i18n/languages/treb-i18n-da.mjs +1 -1
  26. package/i18n/languages/treb-i18n-de.mjs +1 -1
  27. package/i18n/languages/treb-i18n-es.mjs +1 -1
  28. package/i18n/languages/treb-i18n-fr.mjs +1 -1
  29. package/i18n/languages/treb-i18n-it.mjs +1 -1
  30. package/i18n/languages/treb-i18n-nl.mjs +1 -1
  31. package/i18n/languages/treb-i18n-no.mjs +1 -1
  32. package/i18n/languages/treb-i18n-pl.mjs +1 -1
  33. package/i18n/languages/treb-i18n-pt.mjs +1 -1
  34. package/i18n/languages/treb-i18n-sv.mjs +1 -1
  35. package/ooxml-types/README.md +141 -0
  36. package/ooxml-types/package.json +5 -0
  37. package/ooxml-types/src/types/drawingml/chart.ts +327 -0
  38. package/ooxml-types/src/types/drawingml/index.ts +63 -0
  39. package/ooxml-types/src/types/drawingml/spreadsheetDrawing.ts +105 -0
  40. package/ooxml-types/src/types/drawingml/theme.ts +104 -0
  41. package/ooxml-types/src/types/index.ts +3 -0
  42. package/ooxml-types/src/types/package/contentTypes.ts +49 -0
  43. package/ooxml-types/src/types/package/docProps.ts +46 -0
  44. package/ooxml-types/src/types/package/index.ts +17 -0
  45. package/ooxml-types/src/types/package/relationships.ts +37 -0
  46. package/ooxml-types/src/types/spreadsheetml/columns.ts +20 -0
  47. package/ooxml-types/src/types/spreadsheetml/comments.ts +30 -0
  48. package/ooxml-types/src/types/spreadsheetml/dataFeatures.ts +261 -0
  49. package/ooxml-types/src/types/spreadsheetml/enums.ts +175 -0
  50. package/ooxml-types/src/types/spreadsheetml/index.ts +186 -0
  51. package/ooxml-types/src/types/spreadsheetml/metadata.ts +90 -0
  52. package/ooxml-types/src/types/spreadsheetml/misc.ts +35 -0
  53. package/ooxml-types/src/types/spreadsheetml/pageLayout.ts +83 -0
  54. package/ooxml-types/src/types/spreadsheetml/sharedStrings.ts +33 -0
  55. package/ooxml-types/src/types/spreadsheetml/sheetData.ts +70 -0
  56. package/ooxml-types/src/types/spreadsheetml/sheetProperties.ts +86 -0
  57. package/ooxml-types/src/types/spreadsheetml/sheetViews.ts +51 -0
  58. package/ooxml-types/src/types/spreadsheetml/sparkline.ts +46 -0
  59. package/ooxml-types/src/types/spreadsheetml/styles.ts +274 -0
  60. package/ooxml-types/src/types/spreadsheetml/table.ts +106 -0
  61. package/ooxml-types/src/types/spreadsheetml/util.ts +15 -0
  62. package/ooxml-types/src/types/spreadsheetml/workbook.ts +165 -0
  63. package/ooxml-types/src/types/spreadsheetml/worksheet.ts +60 -0
  64. package/package.json +13 -11
  65. package/treb-base-types/src/api_types.ts +1 -1
  66. package/treb-base-types/src/area-utils.ts +1 -1
  67. package/treb-base-types/src/area.ts +1 -1
  68. package/treb-base-types/src/basic_types.ts +1 -1
  69. package/treb-base-types/src/cell.ts +1 -1
  70. package/treb-base-types/src/cells.ts +1 -1
  71. package/treb-base-types/src/color.ts +1 -1
  72. package/treb-base-types/src/dom-utilities.ts +1 -1
  73. package/treb-base-types/src/evaluate-options.ts +1 -1
  74. package/treb-base-types/src/font-stack.ts +1 -1
  75. package/treb-base-types/src/gradient.ts +1 -1
  76. package/treb-base-types/src/import.ts +1 -1
  77. package/treb-base-types/src/index-standalone.ts +1 -1
  78. package/treb-base-types/src/index.ts +2 -1
  79. package/treb-base-types/src/layout.ts +1 -1
  80. package/treb-base-types/src/localization.ts +1 -1
  81. package/treb-base-types/src/rectangle.ts +1 -1
  82. package/treb-base-types/src/render_text.ts +7 -1
  83. package/treb-base-types/src/style.ts +1 -1
  84. package/treb-base-types/src/table.ts +1 -1
  85. package/treb-base-types/src/text_part.ts +1 -1
  86. package/treb-base-types/src/theme.ts +1 -1
  87. package/treb-base-types/src/union.ts +4 -1
  88. package/treb-base-types/src/value-type.ts +1 -1
  89. package/treb-base-types/src/worker-proxy.ts +294 -0
  90. package/treb-base-types/style/resizable.css +1 -1
  91. package/treb-calculator/src/calculator.ts +133 -14
  92. package/treb-calculator/src/complex-math.ts +1 -1
  93. package/treb-calculator/src/dag/array-vertex.ts +1 -1
  94. package/treb-calculator/src/dag/calculation_leaf_vertex.ts +1 -1
  95. package/treb-calculator/src/dag/graph.ts +1 -1
  96. package/treb-calculator/src/dag/spreadsheet_vertex.ts +1 -1
  97. package/treb-calculator/src/dag/spreadsheet_vertex_base.ts +1 -1
  98. package/treb-calculator/src/dag/state_leaf_vertex.ts +1 -1
  99. package/treb-calculator/src/dag/vertex.ts +1 -1
  100. package/treb-calculator/src/descriptors.ts +9 -1
  101. package/treb-calculator/src/expression-calculator.ts +1 -1
  102. package/treb-calculator/src/function-error.ts +1 -1
  103. package/treb-calculator/src/function-library.ts +1 -1
  104. package/treb-calculator/src/functions/base-functions.ts +8 -4
  105. package/treb-calculator/src/functions/beta.ts +1 -1
  106. package/treb-calculator/src/functions/checkbox.ts +1 -1
  107. package/treb-calculator/src/functions/complex-functions.ts +1 -1
  108. package/treb-calculator/src/functions/date-utils.ts +1 -1
  109. package/treb-calculator/src/functions/finance-functions.ts +2 -4
  110. package/treb-calculator/src/functions/fp.ts +1 -1
  111. package/treb-calculator/src/functions/function-utilities.ts +1 -1
  112. package/treb-calculator/src/functions/gamma.ts +1 -1
  113. package/treb-calculator/src/functions/information-functions.ts +1 -1
  114. package/treb-calculator/src/functions/lambda-functions.ts +4 -1
  115. package/treb-calculator/src/functions/matrix-functions.ts +1 -1
  116. package/treb-calculator/src/functions/normal.ts +1 -1
  117. package/treb-calculator/src/functions/regex-functions.ts +13 -4
  118. package/treb-calculator/src/functions/sparkline.ts +1 -1
  119. package/treb-calculator/src/functions/statistics-functions.ts +1 -1
  120. package/treb-calculator/src/functions/students-t.ts +1 -1
  121. package/treb-calculator/src/functions/text-functions.ts +5 -1
  122. package/treb-calculator/src/index.ts +1 -1
  123. package/treb-calculator/src/notifier-types.ts +1 -1
  124. package/treb-calculator/src/primitives.ts +1 -1
  125. package/treb-calculator/src/utilities.ts +1 -1
  126. package/treb-charts/src/chart-functions.ts +1 -1
  127. package/treb-charts/src/chart-types.ts +1 -1
  128. package/treb-charts/src/chart-utils.ts +1 -1
  129. package/treb-charts/src/chart.ts +1 -1
  130. package/treb-charts/src/default-chart-renderer.ts +1 -1
  131. package/treb-charts/src/index.ts +1 -1
  132. package/treb-charts/src/main.ts +1 -1
  133. package/treb-charts/src/quicksort.ts +1 -1
  134. package/treb-charts/src/rectangle.ts +1 -1
  135. package/treb-charts/src/renderer-type.ts +1 -1
  136. package/treb-charts/src/renderer.ts +1 -1
  137. package/treb-charts/src/util.ts +1 -1
  138. package/treb-charts/style/charts.scss +1 -1
  139. package/treb-data-model/src/annotation.ts +1 -1
  140. package/treb-data-model/src/conditional_format.ts +1 -1
  141. package/treb-data-model/src/data-validation.ts +1 -1
  142. package/treb-data-model/src/data_model.ts +32 -5
  143. package/treb-data-model/src/index.ts +1 -1
  144. package/treb-data-model/src/language-model.ts +1 -1
  145. package/treb-data-model/src/named.ts +1 -1
  146. package/treb-data-model/src/serialize_options.ts +1 -1
  147. package/treb-data-model/src/sheet.ts +1 -1
  148. package/treb-data-model/src/sheet_collection.ts +1 -1
  149. package/treb-data-model/src/sheet_selection.ts +1 -1
  150. package/treb-data-model/src/sheet_types.ts +1 -1
  151. package/treb-data-model/src/types.ts +1 -1
  152. package/treb-embed/src/content-types.d.ts +1 -1
  153. package/treb-embed/src/custom-element/global.d.ts +1 -1
  154. package/treb-embed/src/custom-element/spreadsheet-constructor.ts +1 -1
  155. package/treb-embed/src/custom-element/treb-global.ts +1 -1
  156. package/treb-embed/src/custom-element/treb-spreadsheet-element.ts +1 -1
  157. package/treb-embed/src/embedded-spreadsheet.ts +357 -154
  158. package/treb-embed/src/index.ts +1 -1
  159. package/treb-embed/src/options.ts +4 -2
  160. package/treb-embed/src/plugin.ts +1 -1
  161. package/treb-embed/src/progress-dialog.ts +1 -1
  162. package/treb-embed/src/selection-state.ts +1 -1
  163. package/treb-embed/src/spinner.ts +1 -1
  164. package/treb-embed/src/toolbar-message.ts +6 -1
  165. package/treb-embed/src/types.ts +13 -1
  166. package/treb-embed/style/autocomplete.scss +1 -1
  167. package/treb-embed/style/dark-theme.scss +1 -1
  168. package/treb-embed/style/defaults.scss +1 -1
  169. package/treb-embed/style/dialog.scss +1 -1
  170. package/treb-embed/style/dropdown-select.scss +1 -1
  171. package/treb-embed/style/font-stacks.scss +1 -1
  172. package/treb-embed/style/formula-bar.scss +1 -1
  173. package/treb-embed/style/grid.scss +1 -1
  174. package/treb-embed/style/layout.scss +1 -1
  175. package/treb-embed/style/mouse-mask.scss +1 -1
  176. package/treb-embed/style/note.scss +1 -1
  177. package/treb-embed/style/overlay-editor.scss +1 -1
  178. package/treb-embed/style/spinner.scss +1 -1
  179. package/treb-embed/style/tab-bar.scss +1 -1
  180. package/treb-embed/style/table.scss +1 -1
  181. package/treb-embed/style/theme-defaults.scss +1 -1
  182. package/treb-embed/style/toolbar.scss +1 -1
  183. package/treb-embed/style/tooltip.scss +1 -1
  184. package/treb-embed/style/treb-icons.scss +1 -1
  185. package/treb-embed/style/treb-spreadsheet-element.scss +1 -1
  186. package/treb-embed/style/z-index.scss +1 -1
  187. package/treb-export/src/address-type.ts +1 -1
  188. package/treb-export/src/base-template.ts +1 -1
  189. package/treb-export/src/column-width.ts +1 -1
  190. package/treb-export/src/drawing/bubble-chart-template.ts +1 -1
  191. package/treb-export/src/drawing/chart-template-components2.ts +1 -1
  192. package/treb-export/src/drawing/chart.ts +1 -1
  193. package/treb-export/src/drawing/column-chart-template2.ts +1 -1
  194. package/treb-export/src/drawing/donut-chart-template2.ts +1 -1
  195. package/treb-export/src/drawing/drawing.ts +1 -1
  196. package/treb-export/src/drawing/embedded-image.ts +1 -1
  197. package/treb-export/src/drawing/scatter-chart-template2.ts +1 -1
  198. package/treb-export/src/export.ts +10 -6
  199. package/treb-export/src/import-export-messages.ts +61 -0
  200. package/treb-export/src/import.ts +318 -301
  201. package/treb-export/src/index.worker.ts +85 -53
  202. package/treb-export/src/metadata.ts +71 -3
  203. package/treb-export/src/ooxml.ts +47 -0
  204. package/treb-export/src/relationship.ts +1 -1
  205. package/treb-export/src/shared-strings.ts +19 -15
  206. package/treb-export/src/template-2.ts +1 -1
  207. package/treb-export/src/unescape_xml.ts +1 -1
  208. package/treb-export/src/workbook-sheet.ts +11 -6
  209. package/treb-export/src/workbook-style.ts +137 -25
  210. package/treb-export/src/workbook-theme.ts +20 -4
  211. package/treb-export/src/workbook.ts +85 -88
  212. package/treb-export/src/xml-test.ts +1 -1
  213. package/treb-export/src/xml-utils.ts +1 -1
  214. package/treb-export/src/zip-wrapper.ts +1 -1
  215. package/treb-export/tsconfig.json +2 -1
  216. package/treb-format/src/format.test.ts +1 -1
  217. package/treb-format/src/format.ts +12 -5
  218. package/treb-format/src/format_cache.ts +3 -3
  219. package/treb-format/src/format_parser.ts +1 -1
  220. package/treb-format/src/index.ts +1 -1
  221. package/treb-format/src/number_format_section.ts +1 -1
  222. package/treb-format/src/value_parser.ts +1 -1
  223. package/treb-grid/src/editors/autocomplete.ts +1 -1
  224. package/treb-grid/src/editors/autocomplete_matcher.ts +1 -1
  225. package/treb-grid/src/editors/editor.ts +15 -6
  226. package/treb-grid/src/editors/external_editor.ts +33 -8
  227. package/treb-grid/src/editors/formula_bar.ts +12 -1
  228. package/treb-grid/src/editors/overlay_editor.ts +4 -1
  229. package/treb-grid/src/index.ts +1 -1
  230. package/treb-grid/src/layout/base_layout.ts +1 -1
  231. package/treb-grid/src/layout/grid_layout.ts +1 -1
  232. package/treb-grid/src/layout/mock-layout.ts +1 -1
  233. package/treb-grid/src/render/selection-renderer.ts +1 -1
  234. package/treb-grid/src/render/svg_header_overlay.ts +1 -1
  235. package/treb-grid/src/render/svg_selection_block.ts +1 -1
  236. package/treb-grid/src/render/tile_renderer.ts +36 -7
  237. package/treb-grid/src/types/border_constants.ts +1 -1
  238. package/treb-grid/src/types/clipboard_data.ts +1 -1
  239. package/treb-grid/src/types/clipboard_data2.ts +1 -1
  240. package/treb-grid/src/types/drag_mask.ts +1 -1
  241. package/treb-grid/src/types/external_editor_config.ts +1 -1
  242. package/treb-grid/src/types/grid.ts +181 -40
  243. package/treb-grid/src/types/grid_base.ts +7 -4
  244. package/treb-grid/src/types/grid_command.ts +7 -1
  245. package/treb-grid/src/types/grid_events.ts +2 -1
  246. package/treb-grid/src/types/grid_options.ts +1 -1
  247. package/treb-grid/src/types/scale-control.ts +1 -1
  248. package/treb-grid/src/types/set_range_options.ts +1 -1
  249. package/treb-grid/src/types/tab_bar.ts +1 -1
  250. package/treb-grid/src/types/tile.ts +1 -1
  251. package/treb-grid/src/types/update_flags.ts +1 -1
  252. package/treb-grid/src/util/fontmetrics.ts +1 -1
  253. package/treb-grid/src/util/ua.ts +1 -1
  254. package/treb-parser/src/csv-parser.ts +1 -1
  255. package/treb-parser/src/index.ts +1 -1
  256. package/treb-parser/src/md-parser.ts +1 -1
  257. package/treb-parser/src/parser-types.ts +1 -1
  258. package/treb-parser/src/parser.ts +1 -1
  259. package/treb-utils/src/event_source.ts +1 -1
  260. package/treb-utils/src/ievent_source.ts +1 -1
  261. package/treb-utils/src/index.ts +1 -1
  262. package/treb-utils/src/measurement.ts +1 -1
  263. package/treb-utils/src/scale.ts +1 -1
  264. package/treb-utils/src/serialize_html.ts +1 -1
  265. package/treb-utils/src/validate_uri.ts +1 -1
  266. package/tsproject.json +2 -3
  267. package/treb-embed/src/export-worker.ts +0 -44
@@ -0,0 +1,90 @@
1
+ import type { OneOrMany, XsdBoolean } from "./util.js";
2
+ import type { Extension, ExtensionList } from "./misc.js";
3
+
4
+ export interface MetadataType {
5
+ $attributes?: {
6
+ name: string;
7
+ minSupportedVersion: number;
8
+ ghostRow?: XsdBoolean;
9
+ ghostCol?: XsdBoolean;
10
+ edit?: XsdBoolean;
11
+ delete?: XsdBoolean;
12
+ copy?: XsdBoolean;
13
+ pasteAll?: XsdBoolean;
14
+ pasteFormulas?: XsdBoolean;
15
+ pasteValues?: XsdBoolean;
16
+ pasteFormats?: XsdBoolean;
17
+ pasteComments?: XsdBoolean;
18
+ pasteDataValidation?: XsdBoolean;
19
+ pasteBorders?: XsdBoolean;
20
+ pasteColWidths?: XsdBoolean;
21
+ pasteNumberFormats?: XsdBoolean;
22
+ merge?: XsdBoolean;
23
+ splitFirst?: XsdBoolean;
24
+ splitAll?: XsdBoolean;
25
+ rowColShift?: XsdBoolean;
26
+ clearAll?: XsdBoolean;
27
+ clearFormats?: XsdBoolean;
28
+ clearContents?: XsdBoolean;
29
+ clearComments?: XsdBoolean;
30
+ assign?: XsdBoolean;
31
+ coerce?: XsdBoolean;
32
+ adjust?: XsdBoolean;
33
+ cellMeta?: XsdBoolean;
34
+ };
35
+ }
36
+
37
+ export interface MetadataTypes {
38
+ $attributes?: {
39
+ count?: number;
40
+ };
41
+ metadataType: OneOrMany<MetadataType>;
42
+ }
43
+
44
+ export interface MetadataRecord {
45
+ $attributes?: {
46
+ t: number;
47
+ v: number;
48
+ };
49
+ }
50
+
51
+ export interface MetadataBlock {
52
+ rc: OneOrMany<MetadataRecord>;
53
+ }
54
+
55
+ export interface MetadataBlocks {
56
+ $attributes?: {
57
+ count?: number;
58
+ };
59
+ bk: OneOrMany<MetadataBlock>;
60
+ }
61
+
62
+ export interface DynamicArrayProperties {
63
+ $attributes?: {
64
+ fDynamic?: XsdBoolean;
65
+ fCollapsed?: XsdBoolean;
66
+ };
67
+ }
68
+
69
+ export interface MetadataExtension extends Extension {
70
+ dynamicArrayProperties?: DynamicArrayProperties;
71
+ }
72
+
73
+ export interface FutureMetadataBlock {
74
+ extLst?: ExtensionList<MetadataExtension>;
75
+ }
76
+
77
+ export interface FutureMetadata {
78
+ $attributes?: {
79
+ name: string;
80
+ count?: number;
81
+ };
82
+ bk?: OneOrMany<FutureMetadataBlock>;
83
+ }
84
+
85
+ export interface Metadata {
86
+ metadataTypes?: MetadataTypes;
87
+ futureMetadata?: OneOrMany<FutureMetadata>;
88
+ cellMetadata?: MetadataBlocks;
89
+ valueMetadata?: MetadataBlocks;
90
+ }
@@ -0,0 +1,35 @@
1
+ import type { OneOrMany } from "./util.js";
2
+
3
+ export interface Drawing {
4
+ $attributes?: {
5
+ id: string;
6
+ };
7
+ }
8
+
9
+ export interface TablePart {
10
+ $attributes?: {
11
+ id: string;
12
+ };
13
+ }
14
+
15
+ export interface TableParts {
16
+ $attributes?: {
17
+ count?: number;
18
+ };
19
+ tablePart?: OneOrMany<TablePart>;
20
+ }
21
+
22
+ export interface Extension {
23
+ $attributes?: {
24
+ uri: string;
25
+ };
26
+ [key: string]: unknown;
27
+ }
28
+
29
+ export interface ExtensionList<E extends Extension = Extension> {
30
+ ext?: OneOrMany<E>;
31
+ }
32
+
33
+ export type OleObjects = Record<string, unknown>;
34
+
35
+ export type Controls = Record<string, unknown>;
@@ -0,0 +1,83 @@
1
+ import type { OneOrMany, TextElement, XsdBoolean } from "./util.js";
2
+ import type {
3
+ ST_Orientation,
4
+ ST_PageOrder,
5
+ ST_CellComments,
6
+ ST_PrintError,
7
+ } from "./enums.js";
8
+
9
+ export interface PageMargins {
10
+ $attributes?: {
11
+ left: number;
12
+ right: number;
13
+ top: number;
14
+ bottom: number;
15
+ header: number;
16
+ footer: number;
17
+ };
18
+ }
19
+
20
+ export interface PageSetup {
21
+ $attributes?: {
22
+ paperSize?: number;
23
+ scale?: number;
24
+ firstPageNumber?: number;
25
+ fitToWidth?: number;
26
+ fitToHeight?: number;
27
+ pageOrder?: ST_PageOrder;
28
+ orientation?: ST_Orientation;
29
+ usePrinterDefaults?: XsdBoolean;
30
+ blackAndWhite?: XsdBoolean;
31
+ draft?: XsdBoolean;
32
+ cellComments?: ST_CellComments;
33
+ useFirstPageNumber?: XsdBoolean;
34
+ errors?: ST_PrintError;
35
+ horizontalDpi?: number;
36
+ verticalDpi?: number;
37
+ copies?: number;
38
+ id?: string;
39
+ };
40
+ }
41
+
42
+ export interface PrintOptions {
43
+ $attributes?: {
44
+ horizontalCentered?: XsdBoolean;
45
+ verticalCentered?: XsdBoolean;
46
+ headings?: XsdBoolean;
47
+ gridLines?: XsdBoolean;
48
+ gridLinesSet?: XsdBoolean;
49
+ };
50
+ }
51
+
52
+ export interface HeaderFooter {
53
+ $attributes?: {
54
+ differentOddEven?: XsdBoolean;
55
+ differentFirst?: XsdBoolean;
56
+ scaleWithDoc?: XsdBoolean;
57
+ alignWithMargins?: XsdBoolean;
58
+ };
59
+ oddHeader?: TextElement;
60
+ oddFooter?: TextElement;
61
+ evenHeader?: TextElement;
62
+ evenFooter?: TextElement;
63
+ firstHeader?: TextElement;
64
+ firstFooter?: TextElement;
65
+ }
66
+
67
+ export interface Break {
68
+ $attributes?: {
69
+ id?: number;
70
+ min?: number;
71
+ max?: number;
72
+ man?: XsdBoolean;
73
+ pt?: XsdBoolean;
74
+ };
75
+ }
76
+
77
+ export interface PageBreak {
78
+ $attributes?: {
79
+ count?: number;
80
+ manualBreakCount?: number;
81
+ };
82
+ brk?: OneOrMany<Break>;
83
+ }
@@ -0,0 +1,33 @@
1
+ import type { OneOrMany, TextElement } from "./util.js";
2
+ import type { RichTextRun } from "./sheetData.js";
3
+
4
+ export interface PhoneticRun {
5
+ $attributes?: {
6
+ sb: number;
7
+ eb: number;
8
+ };
9
+ t: TextElement;
10
+ }
11
+
12
+ export interface PhoneticProperties {
13
+ $attributes?: {
14
+ fontId: number;
15
+ type?: "halfwidthKatakana" | "fullwidthKatakana" | "Hiragana" | "noConversion";
16
+ alignment?: "noControl" | "left" | "center" | "distributed";
17
+ };
18
+ }
19
+
20
+ export interface StringItem {
21
+ t?: TextElement;
22
+ r?: OneOrMany<RichTextRun>;
23
+ rPh?: OneOrMany<PhoneticRun>;
24
+ phoneticPr?: PhoneticProperties;
25
+ }
26
+
27
+ export interface SharedStringTable {
28
+ $attributes?: {
29
+ count?: number;
30
+ uniqueCount?: number;
31
+ };
32
+ si?: OneOrMany<StringItem>;
33
+ }
@@ -0,0 +1,70 @@
1
+ import type { OneOrMany, TextElement, XsdBoolean } from "./util.js";
2
+ import type { ST_CellType, ST_CellFormulaType } from "./enums.js";
3
+ import type { Font } from "./styles.js";
4
+
5
+ export interface CellFormula extends TextElement {
6
+ $attributes?: {
7
+ t?: ST_CellFormulaType;
8
+ ref?: string;
9
+ si?: number;
10
+ ca?: XsdBoolean;
11
+ aca?: XsdBoolean;
12
+ dt2D?: XsdBoolean;
13
+ dtr1?: XsdBoolean;
14
+ dtr2?: XsdBoolean;
15
+ r1?: string;
16
+ r2?: string;
17
+ del1?: XsdBoolean;
18
+ del2?: XsdBoolean;
19
+ bx?: XsdBoolean;
20
+ };
21
+ }
22
+
23
+ /** Run properties share the same structure as `Font` in styles. */
24
+ export type RunProperties = Font;
25
+
26
+ export interface RichTextRun {
27
+ rPr?: RunProperties;
28
+ t: TextElement;
29
+ }
30
+
31
+ export interface InlineString {
32
+ t?: TextElement;
33
+ r?: OneOrMany<RichTextRun>;
34
+ }
35
+
36
+ export interface Cell {
37
+ $attributes?: {
38
+ r?: string;
39
+ s?: number;
40
+ t?: ST_CellType;
41
+ cm?: number;
42
+ vm?: number;
43
+ ph?: XsdBoolean;
44
+ };
45
+ f?: CellFormula;
46
+ v?: TextElement;
47
+ is?: InlineString;
48
+ }
49
+
50
+ export interface Row {
51
+ $attributes?: {
52
+ r?: number;
53
+ spans?: string;
54
+ s?: number;
55
+ customFormat?: XsdBoolean;
56
+ ht?: number;
57
+ hidden?: XsdBoolean;
58
+ customHeight?: XsdBoolean;
59
+ outlineLevel?: number;
60
+ collapsed?: XsdBoolean;
61
+ thickTop?: XsdBoolean;
62
+ thickBot?: XsdBoolean;
63
+ ph?: XsdBoolean;
64
+ };
65
+ c?: OneOrMany<Cell>;
66
+ }
67
+
68
+ export interface SheetData {
69
+ row?: OneOrMany<Row>;
70
+ }
@@ -0,0 +1,86 @@
1
+ import type { XsdBoolean } from "./util.js";
2
+
3
+ export interface SheetDimension {
4
+ $attributes?: {
5
+ ref: string;
6
+ };
7
+ }
8
+
9
+ export interface Color {
10
+ $attributes?: {
11
+ auto?: XsdBoolean;
12
+ indexed?: number;
13
+ rgb?: string;
14
+ theme?: number;
15
+ tint?: number;
16
+ };
17
+ }
18
+
19
+ export interface SheetPr {
20
+ $attributes?: {
21
+ syncHorizontal?: XsdBoolean;
22
+ syncVertical?: XsdBoolean;
23
+ syncRef?: string;
24
+ transitionEvaluation?: XsdBoolean;
25
+ transitionEntry?: XsdBoolean;
26
+ published?: XsdBoolean;
27
+ codeName?: string;
28
+ filterMode?: XsdBoolean;
29
+ enableFormatConditionsCalculation?: XsdBoolean;
30
+ };
31
+ tabColor?: Color;
32
+ outlinePr?: {
33
+ $attributes?: {
34
+ applyStyles?: XsdBoolean;
35
+ summaryBelow?: XsdBoolean;
36
+ summaryRight?: XsdBoolean;
37
+ showOutlineSymbols?: XsdBoolean;
38
+ };
39
+ };
40
+ pageSetUpPr?: {
41
+ $attributes?: {
42
+ autoPageBreaks?: XsdBoolean;
43
+ fitToPage?: XsdBoolean;
44
+ };
45
+ };
46
+ }
47
+
48
+ export interface SheetFormatPr {
49
+ $attributes?: {
50
+ defaultRowHeight: number;
51
+ baseColWidth?: number;
52
+ defaultColWidth?: number;
53
+ customHeight?: XsdBoolean;
54
+ zeroHeight?: XsdBoolean;
55
+ thickTop?: XsdBoolean;
56
+ thickBottom?: XsdBoolean;
57
+ outlineLevelRow?: number;
58
+ outlineLevelCol?: number;
59
+ };
60
+ }
61
+
62
+ export interface SheetProtection {
63
+ $attributes?: {
64
+ password?: string;
65
+ algorithmName?: string;
66
+ hashValue?: string;
67
+ saltValue?: string;
68
+ spinCount?: number;
69
+ sheet?: XsdBoolean;
70
+ objects?: XsdBoolean;
71
+ scenarios?: XsdBoolean;
72
+ formatCells?: XsdBoolean;
73
+ formatColumns?: XsdBoolean;
74
+ formatRows?: XsdBoolean;
75
+ insertColumns?: XsdBoolean;
76
+ insertRows?: XsdBoolean;
77
+ insertHyperlinks?: XsdBoolean;
78
+ deleteColumns?: XsdBoolean;
79
+ deleteRows?: XsdBoolean;
80
+ selectLockedCells?: XsdBoolean;
81
+ sort?: XsdBoolean;
82
+ autoFilter?: XsdBoolean;
83
+ pivotTables?: XsdBoolean;
84
+ selectUnlockedCells?: XsdBoolean;
85
+ };
86
+ }
@@ -0,0 +1,51 @@
1
+ import type { OneOrMany, XsdBoolean } from "./util.js";
2
+ import type { ST_Pane, ST_PaneState, ST_SheetViewType } from "./enums.js";
3
+
4
+ export interface Selection {
5
+ $attributes?: {
6
+ pane?: ST_Pane;
7
+ activeCell?: string;
8
+ activeCellId?: number;
9
+ sqref?: string;
10
+ };
11
+ }
12
+
13
+ export interface Pane {
14
+ $attributes?: {
15
+ xSplit?: number;
16
+ ySplit?: number;
17
+ topLeftCell?: string;
18
+ activePane?: ST_Pane;
19
+ state?: ST_PaneState;
20
+ };
21
+ }
22
+
23
+ export interface SheetView {
24
+ $attributes?: {
25
+ windowProtection?: XsdBoolean;
26
+ showFormulas?: XsdBoolean;
27
+ showGridLines?: XsdBoolean;
28
+ showRowColHeaders?: XsdBoolean;
29
+ showZeros?: XsdBoolean;
30
+ rightToLeft?: XsdBoolean;
31
+ tabSelected?: XsdBoolean;
32
+ showRuler?: XsdBoolean;
33
+ showOutlineSymbols?: XsdBoolean;
34
+ defaultGridColor?: XsdBoolean;
35
+ showWhiteSpace?: XsdBoolean;
36
+ view?: ST_SheetViewType;
37
+ topLeftCell?: string;
38
+ colorId?: number;
39
+ zoomScale?: number;
40
+ zoomScaleNormal?: number;
41
+ zoomScaleSheetLayoutView?: number;
42
+ zoomScalePageLayoutView?: number;
43
+ workbookViewId: number;
44
+ };
45
+ pane?: Pane;
46
+ selection?: OneOrMany<Selection>;
47
+ }
48
+
49
+ export interface SheetViews {
50
+ sheetView: OneOrMany<SheetView>;
51
+ }
@@ -0,0 +1,46 @@
1
+ import type { OneOrMany, TextElement, XsdBoolean } from "./util.js";
2
+ import type { Color } from "./sheetProperties.js";
3
+ import type { ST_SparklineType } from "./enums.js";
4
+
5
+ export interface Sparkline {
6
+ /** Sparkline formula (data source range) */
7
+ f?: TextElement;
8
+ /** Cell location where the sparkline is rendered */
9
+ sqref?: TextElement;
10
+ }
11
+
12
+ export interface SparklineGroup {
13
+ $attributes?: {
14
+ type?: ST_SparklineType;
15
+ displayEmptyCellsAs?: string;
16
+ markers?: XsdBoolean;
17
+ high?: XsdBoolean;
18
+ low?: XsdBoolean;
19
+ first?: XsdBoolean;
20
+ last?: XsdBoolean;
21
+ negative?: XsdBoolean;
22
+ displayXAxis?: XsdBoolean;
23
+ displayHidden?: XsdBoolean;
24
+ minAxisType?: string;
25
+ maxAxisType?: string;
26
+ rightToLeft?: XsdBoolean;
27
+ manualMax?: number;
28
+ manualMin?: number;
29
+ lineWeight?: number;
30
+ };
31
+ colorSeries?: Color;
32
+ colorNegative?: Color;
33
+ colorAxis?: Color;
34
+ colorMarkers?: Color;
35
+ colorFirst?: Color;
36
+ colorLast?: Color;
37
+ colorHigh?: Color;
38
+ colorLow?: Color;
39
+ sparklines: {
40
+ sparkline: OneOrMany<Sparkline>;
41
+ };
42
+ }
43
+
44
+ export interface SparklineGroups {
45
+ sparklineGroup: OneOrMany<SparklineGroup>;
46
+ }