xlsxrb 0.1.18 → 0.2.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 (77) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +200 -0
  3. data/README.md +35 -12
  4. data/lib/ruby_lsp/xlsxrb/completion_listener.rb +410 -80
  5. data/lib/xlsxrb/chart_builder.rb +251 -386
  6. data/lib/xlsxrb/dsl_helpers.rb +169 -68
  7. data/lib/xlsxrb/elements/cell.rb +37 -157
  8. data/lib/xlsxrb/elements/column.rb +11 -19
  9. data/lib/xlsxrb/elements/coordinate_access.rb +15 -86
  10. data/lib/xlsxrb/elements/image.rb +5 -72
  11. data/lib/xlsxrb/elements/metadata.rb +463 -817
  12. data/lib/xlsxrb/elements/row.rb +27 -145
  13. data/lib/xlsxrb/elements/styles.rb +30 -88
  14. data/lib/xlsxrb/elements/types.rb +6 -99
  15. data/lib/xlsxrb/elements/workbook.rb +19 -126
  16. data/lib/xlsxrb/elements/worksheet.rb +45 -316
  17. data/lib/xlsxrb/ooxml/reader/listeners/core_listeners.rb +4 -1
  18. data/lib/xlsxrb/ooxml/reader/listeners/drawing_listeners.rb +7 -7
  19. data/lib/xlsxrb/ooxml/reader/listeners/feature_listeners.rb +32 -17
  20. data/lib/xlsxrb/ooxml/reader.rb +49 -51
  21. data/lib/xlsxrb/ooxml/styles_parser.rb +26 -2
  22. data/lib/xlsxrb/ooxml/utils.rb +15 -2
  23. data/lib/xlsxrb/ooxml/workbook_parser.rb +0 -1
  24. data/lib/xlsxrb/ooxml/workbook_writer.rb +184 -94
  25. data/lib/xlsxrb/ooxml/worksheet_parser.rb +61 -29
  26. data/lib/xlsxrb/ooxml/worksheet_writer.rb +353 -261
  27. data/lib/xlsxrb/ooxml/writer/drawing_xml.rb +28 -11
  28. data/lib/xlsxrb/ooxml/writer/features_xml.rb +62 -16
  29. data/lib/xlsxrb/ooxml/writer/styles_xml.rb +1 -1
  30. data/lib/xlsxrb/ooxml/writer.rb +106 -42
  31. data/lib/xlsxrb/ooxml/xml_builder.rb +18 -0
  32. data/lib/xlsxrb/ooxml/xml_parser.rb +78 -5
  33. data/lib/xlsxrb/ooxml/zip_reader.rb +65 -15
  34. data/lib/xlsxrb/ooxml/zip_writer.rb +119 -30
  35. data/lib/xlsxrb/stream_row.rb +14 -118
  36. data/lib/xlsxrb/stream_sheet.rb +14 -261
  37. data/lib/xlsxrb/stream_writer.rb +807 -1537
  38. data/lib/xlsxrb/style_builder.rb +715 -593
  39. data/lib/xlsxrb/version.rb +1 -1
  40. data/lib/xlsxrb/workbook_builder.rb +403 -286
  41. data/lib/xlsxrb/worksheet_builder.rb +1297 -1458
  42. data/lib/xlsxrb.rb +281 -1079
  43. data/sig/generated/xlsxrb/chart_builder.rbs +202 -205
  44. data/sig/generated/xlsxrb/dsl_helpers.rbs +92 -16
  45. data/sig/generated/xlsxrb/elements/cell.rbs +12 -76
  46. data/sig/generated/xlsxrb/elements/column.rbs +0 -7
  47. data/sig/generated/xlsxrb/elements/coordinate_access.rbs +5 -41
  48. data/sig/generated/xlsxrb/elements/image.rbs +3 -29
  49. data/sig/generated/xlsxrb/elements/metadata.rbs +138 -151
  50. data/sig/generated/xlsxrb/elements/row.rbs +10 -53
  51. data/sig/generated/xlsxrb/elements/styles.rbs +1 -39
  52. data/sig/generated/xlsxrb/elements/workbook.rbs +14 -78
  53. data/sig/generated/xlsxrb/elements/worksheet.rbs +5 -121
  54. data/sig/generated/xlsxrb/ooxml/reader/listeners/feature_listeners.rbs +0 -4
  55. data/sig/generated/xlsxrb/ooxml/reader.rbs +0 -3
  56. data/sig/generated/xlsxrb/ooxml/styles_parser.rbs +1 -1
  57. data/sig/generated/xlsxrb/ooxml/utils.rbs +13 -3
  58. data/sig/generated/xlsxrb/ooxml/workbook_writer.rbs +17 -0
  59. data/sig/generated/xlsxrb/ooxml/worksheet_parser.rbs +16 -0
  60. data/sig/generated/xlsxrb/ooxml/worksheet_writer.rbs +58 -3
  61. data/sig/generated/xlsxrb/ooxml/writer/features_xml.rbs +10 -0
  62. data/sig/generated/xlsxrb/ooxml/writer.rbs +20 -14
  63. data/sig/generated/xlsxrb/ooxml/xml_builder.rbs +12 -0
  64. data/sig/generated/xlsxrb/ooxml/xml_parser.rbs +70 -0
  65. data/sig/generated/xlsxrb/ooxml/zip_reader.rbs +22 -7
  66. data/sig/generated/xlsxrb/ooxml/zip_writer.rbs +26 -1
  67. data/sig/generated/xlsxrb/stream_row.rbs +9 -44
  68. data/sig/generated/xlsxrb/stream_sheet.rbs +1 -158
  69. data/sig/generated/xlsxrb/stream_writer.rbs +491 -974
  70. data/sig/generated/xlsxrb/style_builder.rbs +464 -239
  71. data/sig/generated/xlsxrb/workbook_builder.rbs +124 -139
  72. data/sig/generated/xlsxrb/worksheet_builder.rbs +922 -686
  73. data/sig/generated/xlsxrb.rbs +56 -188
  74. data/sig/rexml.rbs +8 -0
  75. metadata +3 -5
  76. data/lib/xlsxrb/utils.rb +0 -251
  77. data/sig/generated/xlsxrb/utils.rbs +0 -200
@@ -1,19 +1,37 @@
1
1
  # Generated from lib/xlsxrb/elements/metadata.rb with RBS::Inline
2
2
 
3
3
  module Xlsxrb
4
+ # Immutable value objects that describe workbook content and metadata.
4
5
  module Elements
5
- # Shared mixin for metadata Data value objects providing Hash compatibility.
6
+ # Rejects keyword arguments that a value object does not have.
7
+ #
8
+ # Prepended to the singleton class of each value object, so Klass.new(**opts) raises
9
+ # ArgumentError for an unknown key instead of dropping it. A class can declare
10
+ # KEY_ALIASES, mapping old key names to the member they were renamed to: an alias is
11
+ # dropped when its member is also given (readers emit both), and otherwise raises with
12
+ # the new name.
13
+ #
14
+ # @api private
15
+ module StrictKeywords
16
+ # : (*untyped args, **untyped kwargs) -> untyped
17
+ def new: (*untyped args, **untyped kwargs) -> untyped
18
+
19
+ # Removes alias keys whose member is also given; raises for any other unknown key.
20
+ #
21
+ # @param klass [Class] The value object class.
22
+ # @param kwargs [Hash{Symbol => Object}] Keyword arguments given to new.
23
+ # @return [Hash{Symbol => Object}]
24
+ # @raise [ArgumentError] for an unknown key or an alias given without its member.
25
+ # : (Class klass, Hash[Symbol, untyped] kwargs) -> Hash[Symbol, untyped]
26
+ def self.normalize: (Class klass, Hash[Symbol, untyped] kwargs) -> Hash[Symbol, untyped]
27
+ end
28
+
29
+ # Shared mixin for metadata Data value objects.
6
30
  #
7
31
  # @api public
8
32
  module MetadataRecord
9
- # Accesses an attribute by Symbol or String key, supporting key aliases.
10
- #
11
- # @deprecated Hash-like access via {#[]} is deprecated and will be removed in 0.2.0; use method calls instead.
12
- # @param key [Symbol, String]
13
- # @return [Object, nil]
14
- # @api public
15
- # : (Symbol | String key) -> untyped
16
- def []: (Symbol | String key) -> untyped
33
+ # : (Module base) -> void
34
+ def self.included: (Module base) -> void
17
35
 
18
36
  # Returns whether all attributes are nil or empty.
19
37
  #
@@ -29,63 +47,7 @@ module Xlsxrb
29
47
  # : () -> Hash[Symbol, untyped]
30
48
  def to_h: () -> Hash[Symbol, untyped]
31
49
 
32
- # Checks whether a key is present with a non-nil value.
33
- #
34
- # @deprecated {#key?} is deprecated and will be removed in 0.2.0; check attribute presence directly.
35
- # @param key [Symbol, String]
36
- # @return [Boolean]
37
- # @api public
38
- # : (Symbol | String key) -> bool
39
- def key?: (Symbol | String key) -> bool
40
-
41
- alias has_key? key?
42
-
43
- # Digs into nested metadata by key path.
44
- #
45
- # @deprecated {#dig} is deprecated and will be removed in 0.2.0; use method chaining instead.
46
- # @param head [Symbol, String]
47
- # @param rest [Array<Symbol, String>]
48
- # @return [Object, nil]
49
- # @api public
50
- # : (Symbol | String head, *(Symbol | String) rest) -> untyped
51
- def dig: (Symbol | String head, *Symbol | String rest) -> untyped
52
-
53
- # Fetches a key with an optional default.
54
- #
55
- # @deprecated {#fetch} is deprecated and will be removed in 0.2.0; use method calls instead.
56
- # @param key [Symbol, String]
57
- # @param args [Array<Object>]
58
- # @return [Object, nil]
59
- # @api public
60
- # : (Symbol | String key, *untyped args) ?{ (Symbol | String) -> untyped } -> untyped
61
- def fetch: (Symbol | String key, *untyped args) ?{ (Symbol | String) -> untyped } -> untyped
62
-
63
- # Merges non-nil attributes with another Hash or MetadataRecord.
64
- #
65
- # @deprecated {#merge} is deprecated and will be removed in 0.2.0; use {#with} or {#to_h} instead.
66
- # @param other [Hash, MetadataRecord]
67
- # @return [Hash{Symbol => Object}]
68
- # @api public
69
- # : (untyped other) -> Hash[Symbol, untyped]
70
- def merge: (untyped other) -> Hash[Symbol, untyped]
71
-
72
50
  alias to_hash to_h
73
-
74
- # Checks equality against another instance, a Hash, or a scalar.
75
- #
76
- # @param other [Object]
77
- # @return [Boolean]
78
- # @api public
79
- # : (untyped other) -> bool
80
- def ==: (untyped other) -> bool
81
-
82
- private
83
-
84
- def _lookup_key: (untyped key) -> untyped
85
-
86
- def _has_key?: (untyped key) -> untyped
87
-
88
- def _normalize_key: (untyped key) -> untyped
89
51
  end
90
52
 
91
53
  # Core document properties (docProps/core.xml).
@@ -113,12 +75,14 @@ module Xlsxrb
113
75
 
114
76
  attr_reader content_status(): untyped
115
77
 
116
- def self.new: (untyped title, untyped subject, untyped creator, untyped keywords, untyped description, untyped last_modified_by, untyped revision, untyped created, untyped modified, untyped category, untyped content_status) -> instance
117
- | (title: untyped, subject: untyped, creator: untyped, keywords: untyped, description: untyped, last_modified_by: untyped, revision: untyped, created: untyped, modified: untyped, category: untyped, content_status: untyped) -> instance
78
+ attr_reader language(): untyped
79
+
80
+ def self.new: (untyped title, untyped subject, untyped creator, untyped keywords, untyped description, untyped last_modified_by, untyped revision, untyped created, untyped modified, untyped category, untyped content_status, untyped language) -> instance
81
+ | (title: untyped, subject: untyped, creator: untyped, keywords: untyped, description: untyped, last_modified_by: untyped, revision: untyped, created: untyped, modified: untyped, category: untyped, content_status: untyped, language: untyped) -> instance
118
82
 
119
- def self.members: () -> [ :title, :subject, :creator, :keywords, :description, :last_modified_by, :revision, :created, :modified, :category, :content_status ]
83
+ def self.members: () -> [ :title, :subject, :creator, :keywords, :description, :last_modified_by, :revision, :created, :modified, :category, :content_status, :language ]
120
84
 
121
- def members: () -> [ :title, :subject, :creator, :keywords, :description, :last_modified_by, :revision, :created, :modified, :category, :content_status ]
85
+ def members: () -> [ :title, :subject, :creator, :keywords, :description, :last_modified_by, :revision, :created, :modified, :category, :content_status, :language ]
122
86
  end
123
87
 
124
88
  # Application document properties (docProps/app.xml).
@@ -167,8 +131,6 @@ module Xlsxrb
167
131
 
168
132
  attr_reader first_sheet(): untyped
169
133
 
170
- attr_reader first_tab(): untyped
171
-
172
134
  attr_reader show_sheet_tabs(): untyped
173
135
 
174
136
  attr_reader tab_ratio(): untyped
@@ -181,12 +143,14 @@ module Xlsxrb
181
143
 
182
144
  attr_reader refresh_all(): untyped
183
145
 
184
- def self.new: (untyped date1904, untyped code_name, untyped active_sheet, untyped first_sheet, untyped first_tab, untyped show_sheet_tabs, untyped tab_ratio, untyped full_calc_on_load, untyped filter_privacy, untyped default_theme_version, untyped refresh_all) -> instance
185
- | (date1904: untyped, code_name: untyped, active_sheet: untyped, first_sheet: untyped, first_tab: untyped, show_sheet_tabs: untyped, tab_ratio: untyped, full_calc_on_load: untyped, filter_privacy: untyped, default_theme_version: untyped, refresh_all: untyped) -> instance
146
+ attr_reader update_links(): untyped
147
+
148
+ def self.new: (untyped date1904, untyped code_name, untyped active_sheet, untyped first_sheet, untyped show_sheet_tabs, untyped tab_ratio, untyped full_calc_on_load, untyped filter_privacy, untyped default_theme_version, untyped refresh_all, untyped update_links) -> instance
149
+ | (date1904: untyped, code_name: untyped, active_sheet: untyped, first_sheet: untyped, show_sheet_tabs: untyped, tab_ratio: untyped, full_calc_on_load: untyped, filter_privacy: untyped, default_theme_version: untyped, refresh_all: untyped, update_links: untyped) -> instance
186
150
 
187
- def self.members: () -> [ :date1904, :code_name, :active_sheet, :first_sheet, :first_tab, :show_sheet_tabs, :tab_ratio, :full_calc_on_load, :filter_privacy, :default_theme_version, :refresh_all ]
151
+ def self.members: () -> [ :date1904, :code_name, :active_sheet, :first_sheet, :show_sheet_tabs, :tab_ratio, :full_calc_on_load, :filter_privacy, :default_theme_version, :refresh_all, :update_links ]
188
152
 
189
- def members: () -> [ :date1904, :code_name, :active_sheet, :first_sheet, :first_tab, :show_sheet_tabs, :tab_ratio, :full_calc_on_load, :filter_privacy, :default_theme_version, :refresh_all ]
153
+ def members: () -> [ :date1904, :code_name, :active_sheet, :first_sheet, :show_sheet_tabs, :tab_ratio, :full_calc_on_load, :filter_privacy, :default_theme_version, :refresh_all, :update_links ]
190
154
  end
191
155
 
192
156
  # Workbook protection settings (<workbookProtection>).
@@ -210,12 +174,20 @@ module Xlsxrb
210
174
 
211
175
  attr_reader spin_count(): untyped
212
176
 
213
- def self.new: (untyped workbook_password, untyped lock_structure, untyped lock_windows, untyped revisions_password, untyped lock_revision, untyped algorithm_name, untyped hash_value, untyped salt_value, untyped spin_count) -> instance
214
- | (workbook_password: untyped, lock_structure: untyped, lock_windows: untyped, revisions_password: untyped, lock_revision: untyped, algorithm_name: untyped, hash_value: untyped, salt_value: untyped, spin_count: untyped) -> instance
177
+ attr_reader revisions_algorithm_name(): untyped
178
+
179
+ attr_reader revisions_hash_value(): untyped
180
+
181
+ attr_reader revisions_salt_value(): untyped
215
182
 
216
- def self.members: () -> [ :workbook_password, :lock_structure, :lock_windows, :revisions_password, :lock_revision, :algorithm_name, :hash_value, :salt_value, :spin_count ]
183
+ attr_reader revisions_spin_count(): untyped
217
184
 
218
- def members: () -> [ :workbook_password, :lock_structure, :lock_windows, :revisions_password, :lock_revision, :algorithm_name, :hash_value, :salt_value, :spin_count ]
185
+ def self.new: (untyped workbook_password, untyped lock_structure, untyped lock_windows, untyped revisions_password, untyped lock_revision, untyped algorithm_name, untyped hash_value, untyped salt_value, untyped spin_count, untyped revisions_algorithm_name, untyped revisions_hash_value, untyped revisions_salt_value, untyped revisions_spin_count) -> instance
186
+ | (workbook_password: untyped, lock_structure: untyped, lock_windows: untyped, revisions_password: untyped, lock_revision: untyped, algorithm_name: untyped, hash_value: untyped, salt_value: untyped, spin_count: untyped, revisions_algorithm_name: untyped, revisions_hash_value: untyped, revisions_salt_value: untyped, revisions_spin_count: untyped) -> instance
187
+
188
+ def self.members: () -> [ :workbook_password, :lock_structure, :lock_windows, :revisions_password, :lock_revision, :algorithm_name, :hash_value, :salt_value, :spin_count, :revisions_algorithm_name, :revisions_hash_value, :revisions_salt_value, :revisions_spin_count ]
189
+
190
+ def members: () -> [ :workbook_password, :lock_structure, :lock_windows, :revisions_password, :lock_revision, :algorithm_name, :hash_value, :salt_value, :spin_count, :revisions_algorithm_name, :revisions_hash_value, :revisions_salt_value, :revisions_spin_count ]
219
191
  end
220
192
 
221
193
  # Worksheet page setup properties (<pageSetup>).
@@ -251,12 +223,18 @@ module Xlsxrb
251
223
 
252
224
  attr_reader id(): untyped
253
225
 
254
- def self.new: (untyped paper_size, untyped orientation, untyped scale, untyped fit_to_width, untyped fit_to_height, untyped first_page_number, untyped use_first_page_number, untyped black_and_white, untyped draft, untyped cell_comments, untyped use_printer_defaults, untyped copies, untyped horizontal_centered, untyped vertical_centered, untyped id) -> instance
255
- | (paper_size: untyped, orientation: untyped, scale: untyped, fit_to_width: untyped, fit_to_height: untyped, first_page_number: untyped, use_first_page_number: untyped, black_and_white: untyped, draft: untyped, cell_comments: untyped, use_printer_defaults: untyped, copies: untyped, horizontal_centered: untyped, vertical_centered: untyped, id: untyped) -> instance
226
+ attr_reader page_order(): untyped
227
+
228
+ attr_reader horizontal_dpi(): untyped
229
+
230
+ attr_reader vertical_dpi(): untyped
256
231
 
257
- def self.members: () -> [ :paper_size, :orientation, :scale, :fit_to_width, :fit_to_height, :first_page_number, :use_first_page_number, :black_and_white, :draft, :cell_comments, :use_printer_defaults, :copies, :horizontal_centered, :vertical_centered, :id ]
232
+ def self.new: (untyped paper_size, untyped orientation, untyped scale, untyped fit_to_width, untyped fit_to_height, untyped first_page_number, untyped use_first_page_number, untyped black_and_white, untyped draft, untyped cell_comments, untyped use_printer_defaults, untyped copies, untyped horizontal_centered, untyped vertical_centered, untyped id, untyped page_order, untyped horizontal_dpi, untyped vertical_dpi) -> instance
233
+ | (paper_size: untyped, orientation: untyped, scale: untyped, fit_to_width: untyped, fit_to_height: untyped, first_page_number: untyped, use_first_page_number: untyped, black_and_white: untyped, draft: untyped, cell_comments: untyped, use_printer_defaults: untyped, copies: untyped, horizontal_centered: untyped, vertical_centered: untyped, id: untyped, page_order: untyped, horizontal_dpi: untyped, vertical_dpi: untyped) -> instance
258
234
 
259
- def members: () -> [ :paper_size, :orientation, :scale, :fit_to_width, :fit_to_height, :first_page_number, :use_first_page_number, :black_and_white, :draft, :cell_comments, :use_printer_defaults, :copies, :horizontal_centered, :vertical_centered, :id ]
235
+ def self.members: () -> [ :paper_size, :orientation, :scale, :fit_to_width, :fit_to_height, :first_page_number, :use_first_page_number, :black_and_white, :draft, :cell_comments, :use_printer_defaults, :copies, :horizontal_centered, :vertical_centered, :id, :page_order, :horizontal_dpi, :vertical_dpi ]
236
+
237
+ def members: () -> [ :paper_size, :orientation, :scale, :fit_to_width, :fit_to_height, :first_page_number, :use_first_page_number, :black_and_white, :draft, :cell_comments, :use_printer_defaults, :copies, :horizontal_centered, :vertical_centered, :id, :page_order, :horizontal_dpi, :vertical_dpi ]
260
238
  end
261
239
 
262
240
  # Worksheet page margins (<pageMargins>).
@@ -341,62 +319,59 @@ module Xlsxrb
341
319
 
342
320
  attr_reader columns(): untyped
343
321
 
344
- attr_reader cols(): untyped
345
-
346
- def self.new: (untyped rows, untyped columns, untyped cols) -> instance
347
- | (rows: untyped, columns: untyped, cols: untyped) -> instance
322
+ def self.new: (untyped rows, untyped columns) -> instance
323
+ | (rows: untyped, columns: untyped) -> instance
348
324
 
349
- def self.members: () -> [ :rows, :columns, :cols ]
325
+ def self.members: () -> [ :rows, :columns ]
350
326
 
351
- def members: () -> [ :rows, :columns, :cols ]
327
+ def members: () -> [ :rows, :columns ]
352
328
  end
353
329
 
354
330
  # Worksheet freeze pane settings (<pane>).
355
331
  # @api public
332
+ #
333
+ # +top_left_cell+ is the first visible cell of the bottom-right pane (the topLeftCell
334
+ # attribute). When nil, the writer uses the cell just past the frozen rows and columns.
356
335
  class FreezePane < Data
357
336
  attr_reader row(): untyped
358
337
 
359
338
  attr_reader column(): untyped
360
339
 
361
- attr_reader col(): untyped
362
-
363
- attr_reader top_row(): untyped
364
-
365
- attr_reader left_column(): untyped
340
+ attr_reader top_left_cell(): untyped
366
341
 
367
342
  attr_reader active_pane(): untyped
368
343
 
369
344
  attr_reader state(): untyped
370
345
 
371
- def self.new: (untyped row, untyped column, untyped col, untyped top_row, untyped left_column, untyped active_pane, untyped state) -> instance
372
- | (row: untyped, column: untyped, col: untyped, top_row: untyped, left_column: untyped, active_pane: untyped, state: untyped) -> instance
346
+ def self.new: (untyped row, untyped column, untyped top_left_cell, untyped active_pane, untyped state) -> instance
347
+ | (row: untyped, column: untyped, top_left_cell: untyped, active_pane: untyped, state: untyped) -> instance
373
348
 
374
- def self.members: () -> [ :row, :column, :col, :top_row, :left_column, :active_pane, :state ]
349
+ def self.members: () -> [ :row, :column, :top_left_cell, :active_pane, :state ]
375
350
 
376
- def members: () -> [ :row, :column, :col, :top_row, :left_column, :active_pane, :state ]
351
+ def members: () -> [ :row, :column, :top_left_cell, :active_pane, :state ]
377
352
  end
378
353
 
379
354
  # Worksheet split pane settings (<pane>).
380
355
  # @api public
356
+ #
357
+ # +top_left_cell+ is the first visible cell of the bottom-right pane (the topLeftCell attribute).
381
358
  class SplitPane < Data
382
359
  attr_reader x_split(): untyped
383
360
 
384
361
  attr_reader y_split(): untyped
385
362
 
386
- attr_reader top_row(): untyped
387
-
388
- attr_reader left_column(): untyped
363
+ attr_reader top_left_cell(): untyped
389
364
 
390
365
  attr_reader active_pane(): untyped
391
366
 
392
367
  attr_reader state(): untyped
393
368
 
394
- def self.new: (untyped x_split, untyped y_split, untyped top_row, untyped left_column, untyped active_pane, untyped state) -> instance
395
- | (x_split: untyped, y_split: untyped, top_row: untyped, left_column: untyped, active_pane: untyped, state: untyped) -> instance
369
+ def self.new: (untyped x_split, untyped y_split, untyped top_left_cell, untyped active_pane, untyped state) -> instance
370
+ | (x_split: untyped, y_split: untyped, top_left_cell: untyped, active_pane: untyped, state: untyped) -> instance
396
371
 
397
- def self.members: () -> [ :x_split, :y_split, :top_row, :left_column, :active_pane, :state ]
372
+ def self.members: () -> [ :x_split, :y_split, :top_left_cell, :active_pane, :state ]
398
373
 
399
- def members: () -> [ :x_split, :y_split, :top_row, :left_column, :active_pane, :state ]
374
+ def members: () -> [ :x_split, :y_split, :top_left_cell, :active_pane, :state ]
400
375
  end
401
376
 
402
377
  # Worksheet selection / active cell (<selection>).
@@ -480,8 +455,6 @@ module Xlsxrb
480
455
 
481
456
  attr_reader enable_format_conditions_calculation(): untyped
482
457
 
483
- attr_reader outline_pr(): untyped
484
-
485
458
  attr_reader page_setup_properties(): untyped
486
459
 
487
460
  attr_reader code_name(): untyped
@@ -522,12 +495,12 @@ module Xlsxrb
522
495
 
523
496
  attr_reader show_outline_symbols(): untyped
524
497
 
525
- def self.new: (untyped tab_color, untyped filter_mode, untyped enable_format_conditions_calculation, untyped outline_pr, untyped page_setup_properties, untyped code_name, untyped fit_to_page, untyped full_calc_on_load, untyped tab_color_theme, untyped tab_color_tint, untyped tab_color_indexed, untyped tab_color_auto, untyped outline_properties, untyped auto_page_breaks, untyped sync_horizontal, untyped sync_vertical, untyped sync_ref, untyped transition_evaluation, untyped transition_entry, untyped published, untyped apply_styles, untyped summary_below, untyped summary_right, untyped show_outline_symbols) -> instance
526
- | (tab_color: untyped, filter_mode: untyped, enable_format_conditions_calculation: untyped, outline_pr: untyped, page_setup_properties: untyped, code_name: untyped, fit_to_page: untyped, full_calc_on_load: untyped, tab_color_theme: untyped, tab_color_tint: untyped, tab_color_indexed: untyped, tab_color_auto: untyped, outline_properties: untyped, auto_page_breaks: untyped, sync_horizontal: untyped, sync_vertical: untyped, sync_ref: untyped, transition_evaluation: untyped, transition_entry: untyped, published: untyped, apply_styles: untyped, summary_below: untyped, summary_right: untyped, show_outline_symbols: untyped) -> instance
498
+ def self.new: (untyped tab_color, untyped filter_mode, untyped enable_format_conditions_calculation, untyped page_setup_properties, untyped code_name, untyped fit_to_page, untyped full_calc_on_load, untyped tab_color_theme, untyped tab_color_tint, untyped tab_color_indexed, untyped tab_color_auto, untyped outline_properties, untyped auto_page_breaks, untyped sync_horizontal, untyped sync_vertical, untyped sync_ref, untyped transition_evaluation, untyped transition_entry, untyped published, untyped apply_styles, untyped summary_below, untyped summary_right, untyped show_outline_symbols) -> instance
499
+ | (tab_color: untyped, filter_mode: untyped, enable_format_conditions_calculation: untyped, page_setup_properties: untyped, code_name: untyped, fit_to_page: untyped, full_calc_on_load: untyped, tab_color_theme: untyped, tab_color_tint: untyped, tab_color_indexed: untyped, tab_color_auto: untyped, outline_properties: untyped, auto_page_breaks: untyped, sync_horizontal: untyped, sync_vertical: untyped, sync_ref: untyped, transition_evaluation: untyped, transition_entry: untyped, published: untyped, apply_styles: untyped, summary_below: untyped, summary_right: untyped, show_outline_symbols: untyped) -> instance
527
500
 
528
- def self.members: () -> [ :tab_color, :filter_mode, :enable_format_conditions_calculation, :outline_pr, :page_setup_properties, :code_name, :fit_to_page, :full_calc_on_load, :tab_color_theme, :tab_color_tint, :tab_color_indexed, :tab_color_auto, :outline_properties, :auto_page_breaks, :sync_horizontal, :sync_vertical, :sync_ref, :transition_evaluation, :transition_entry, :published, :apply_styles, :summary_below, :summary_right, :show_outline_symbols ]
501
+ def self.members: () -> [ :tab_color, :filter_mode, :enable_format_conditions_calculation, :page_setup_properties, :code_name, :fit_to_page, :full_calc_on_load, :tab_color_theme, :tab_color_tint, :tab_color_indexed, :tab_color_auto, :outline_properties, :auto_page_breaks, :sync_horizontal, :sync_vertical, :sync_ref, :transition_evaluation, :transition_entry, :published, :apply_styles, :summary_below, :summary_right, :show_outline_symbols ]
529
502
 
530
- def members: () -> [ :tab_color, :filter_mode, :enable_format_conditions_calculation, :outline_pr, :page_setup_properties, :code_name, :fit_to_page, :full_calc_on_load, :tab_color_theme, :tab_color_tint, :tab_color_indexed, :tab_color_auto, :outline_properties, :auto_page_breaks, :sync_horizontal, :sync_vertical, :sync_ref, :transition_evaluation, :transition_entry, :published, :apply_styles, :summary_below, :summary_right, :show_outline_symbols ]
503
+ def members: () -> [ :tab_color, :filter_mode, :enable_format_conditions_calculation, :page_setup_properties, :code_name, :fit_to_page, :full_calc_on_load, :tab_color_theme, :tab_color_tint, :tab_color_indexed, :tab_color_auto, :outline_properties, :auto_page_breaks, :sync_horizontal, :sync_vertical, :sync_ref, :transition_evaluation, :transition_entry, :published, :apply_styles, :summary_below, :summary_right, :show_outline_symbols ]
531
504
  end
532
505
 
533
506
  # Worksheet format properties (<sheetFormatPr>).
@@ -662,26 +635,20 @@ module Xlsxrb
662
635
  class BackgroundImage < Data
663
636
  attr_reader r_id(): untyped
664
637
 
665
- attr_reader rel_id(): untyped
666
-
667
638
  attr_reader path(): untyped
668
639
 
669
640
  attr_reader extension(): untyped
670
641
 
671
642
  attr_reader data(): untyped
672
643
 
673
- attr_reader ext(): untyped
674
-
675
- attr_reader filename(): untyped
676
-
677
644
  attr_reader content_type(): untyped
678
645
 
679
- def self.new: (untyped r_id, untyped rel_id, untyped path, untyped extension, untyped data, untyped ext, untyped filename, untyped content_type) -> instance
680
- | (r_id: untyped, rel_id: untyped, path: untyped, extension: untyped, data: untyped, ext: untyped, filename: untyped, content_type: untyped) -> instance
646
+ def self.new: (untyped r_id, untyped path, untyped extension, untyped data, untyped content_type) -> instance
647
+ | (r_id: untyped, path: untyped, extension: untyped, data: untyped, content_type: untyped) -> instance
681
648
 
682
- def self.members: () -> [ :r_id, :rel_id, :path, :extension, :data, :ext, :filename, :content_type ]
649
+ def self.members: () -> [ :r_id, :path, :extension, :data, :content_type ]
683
650
 
684
- def members: () -> [ :r_id, :rel_id, :path, :extension, :data, :ext, :filename, :content_type ]
651
+ def members: () -> [ :r_id, :path, :extension, :data, :content_type ]
685
652
  end
686
653
 
687
654
  # Table styles configuration in stylesheet (<tableStyles>).
@@ -754,12 +721,16 @@ module Xlsxrb
754
721
 
755
722
  attr_reader show_button(): untyped
756
723
 
757
- def self.new: (untyped column_id, untyped filters, untyped custom_filters, untyped dynamic_filter, untyped top10, untyped color_filter, untyped icon_filter, untyped hidden, untyped show_button) -> instance
758
- | (column_id: untyped, filters: untyped, custom_filters: untyped, dynamic_filter: untyped, top10: untyped, color_filter: untyped, icon_filter: untyped, hidden: untyped, show_button: untyped) -> instance
724
+ attr_reader blank(): untyped
725
+
726
+ attr_reader custom_filters_and(): untyped
759
727
 
760
- def self.members: () -> [ :column_id, :filters, :custom_filters, :dynamic_filter, :top10, :color_filter, :icon_filter, :hidden, :show_button ]
728
+ def self.new: (untyped column_id, untyped filters, untyped custom_filters, untyped dynamic_filter, untyped top10, untyped color_filter, untyped icon_filter, untyped hidden, untyped show_button, untyped blank, untyped custom_filters_and) -> instance
729
+ | (column_id: untyped, filters: untyped, custom_filters: untyped, dynamic_filter: untyped, top10: untyped, color_filter: untyped, icon_filter: untyped, hidden: untyped, show_button: untyped, blank: untyped, custom_filters_and: untyped) -> instance
761
730
 
762
- def members: () -> [ :column_id, :filters, :custom_filters, :dynamic_filter, :top10, :color_filter, :icon_filter, :hidden, :show_button ]
731
+ def self.members: () -> [ :column_id, :filters, :custom_filters, :dynamic_filter, :top10, :color_filter, :icon_filter, :hidden, :show_button, :blank, :custom_filters_and ]
732
+
733
+ def members: () -> [ :column_id, :filters, :custom_filters, :dynamic_filter, :top10, :color_filter, :icon_filter, :hidden, :show_button, :blank, :custom_filters_and ]
763
734
  end
764
735
 
765
736
  # Workbook defined name (<definedName>).
@@ -807,6 +778,11 @@ module Xlsxrb
807
778
  end
808
779
 
809
780
  # Cell comment or note (<comment>).
781
+ #
782
+ # +anchor+ places the comment box: the eight integers of the VML note's <x:Anchor>, that is
783
+ # the left column, x offset, top row, y offset, right column, x offset, bottom row, and
784
+ # y offset (0-based columns and rows, offsets in pixels). Without it, the box is placed
785
+ # next to the cell.
810
786
  # @api public
811
787
  class Comment < Data
812
788
  attr_reader ref(): untyped
@@ -823,12 +799,14 @@ module Xlsxrb
823
799
 
824
800
  attr_reader visible(): untyped
825
801
 
826
- def self.new: (untyped ref, untyped text, untyped author, untyped r_id, untyped shape_id, untyped author_id, untyped visible) -> instance
827
- | (ref: untyped, text: untyped, author: untyped, r_id: untyped, shape_id: untyped, author_id: untyped, visible: untyped) -> instance
802
+ attr_reader anchor(): untyped
803
+
804
+ def self.new: (untyped ref, untyped text, untyped author, untyped r_id, untyped shape_id, untyped author_id, untyped visible, untyped anchor) -> instance
805
+ | (ref: untyped, text: untyped, author: untyped, r_id: untyped, shape_id: untyped, author_id: untyped, visible: untyped, anchor: untyped) -> instance
828
806
 
829
- def self.members: () -> [ :ref, :text, :author, :r_id, :shape_id, :author_id, :visible ]
807
+ def self.members: () -> [ :ref, :text, :author, :r_id, :shape_id, :author_id, :visible, :anchor ]
830
808
 
831
- def members: () -> [ :ref, :text, :author, :r_id, :shape_id, :author_id, :visible ]
809
+ def members: () -> [ :ref, :text, :author, :r_id, :shape_id, :author_id, :visible, :anchor ]
832
810
  end
833
811
 
834
812
  # Threaded comment (<threadedComment>).
@@ -850,12 +828,14 @@ module Xlsxrb
850
828
 
851
829
  attr_reader resolved(): untyped
852
830
 
853
- def self.new: (untyped id, untyped ref, untyped text, untyped author, untyped author_id, untyped created_at, untyped parent_id, untyped resolved) -> instance
854
- | (id: untyped, ref: untyped, text: untyped, author: untyped, author_id: untyped, created_at: untyped, parent_id: untyped, resolved: untyped) -> instance
831
+ attr_reader provider_id(): untyped
855
832
 
856
- def self.members: () -> [ :id, :ref, :text, :author, :author_id, :created_at, :parent_id, :resolved ]
833
+ def self.new: (untyped id, untyped ref, untyped text, untyped author, untyped author_id, untyped created_at, untyped parent_id, untyped resolved, untyped provider_id) -> instance
834
+ | (id: untyped, ref: untyped, text: untyped, author: untyped, author_id: untyped, created_at: untyped, parent_id: untyped, resolved: untyped, provider_id: untyped) -> instance
857
835
 
858
- def members: () -> [ :id, :ref, :text, :author, :author_id, :created_at, :parent_id, :resolved ]
836
+ def self.members: () -> [ :id, :ref, :text, :author, :author_id, :created_at, :parent_id, :resolved, :provider_id ]
837
+
838
+ def members: () -> [ :id, :ref, :text, :author, :author_id, :created_at, :parent_id, :resolved, :provider_id ]
859
839
  end
860
840
 
861
841
  # Data validation rule (<dataValidation>).
@@ -1016,12 +996,14 @@ module Xlsxrb
1016
996
 
1017
997
  attr_reader calculated_column_formula(): untyped
1018
998
 
1019
- def self.new: (untyped id, untyped name, untyped totals_row_function, untyped totals_row_label, untyped totals_row_formula, untyped data_dxf_id, untyped calculated_column_formula) -> instance
1020
- | (id: untyped, name: untyped, totals_row_function: untyped, totals_row_label: untyped, totals_row_formula: untyped, data_dxf_id: untyped, calculated_column_formula: untyped) -> instance
999
+ attr_reader data_cell_style(): untyped
1000
+
1001
+ def self.new: (untyped id, untyped name, untyped totals_row_function, untyped totals_row_label, untyped totals_row_formula, untyped data_dxf_id, untyped calculated_column_formula, untyped data_cell_style) -> instance
1002
+ | (id: untyped, name: untyped, totals_row_function: untyped, totals_row_label: untyped, totals_row_formula: untyped, data_dxf_id: untyped, calculated_column_formula: untyped, data_cell_style: untyped) -> instance
1021
1003
 
1022
- def self.members: () -> [ :id, :name, :totals_row_function, :totals_row_label, :totals_row_formula, :data_dxf_id, :calculated_column_formula ]
1004
+ def self.members: () -> [ :id, :name, :totals_row_function, :totals_row_label, :totals_row_formula, :data_dxf_id, :calculated_column_formula, :data_cell_style ]
1023
1005
 
1024
- def members: () -> [ :id, :name, :totals_row_function, :totals_row_label, :totals_row_formula, :data_dxf_id, :calculated_column_formula ]
1006
+ def members: () -> [ :id, :name, :totals_row_function, :totals_row_label, :totals_row_formula, :data_dxf_id, :calculated_column_formula, :data_cell_style ]
1025
1007
  end
1026
1008
 
1027
1009
  # Table style information (<tableStyleInfo>).
@@ -1297,8 +1279,6 @@ module Xlsxrb
1297
1279
 
1298
1280
  attr_reader ref(): untyped
1299
1281
 
1300
- attr_reader location(): untyped
1301
-
1302
1282
  attr_reader source_ref(): untyped
1303
1283
 
1304
1284
  attr_reader row_fields(): untyped
@@ -1329,12 +1309,12 @@ module Xlsxrb
1329
1309
 
1330
1310
  attr_reader options(): untyped
1331
1311
 
1332
- def self.new: (untyped name, untyped ref, untyped location, untyped source_ref, untyped row_fields, untyped column_fields, untyped data_fields, untyped page_fields, untyped data_caption, untyped page_wrap, untyped column_grand_totals, untyped row_grand_totals, untyped show_row_headers, untyped show_column_headers, untyped show_row_stripes, untyped show_column_stripes, untyped cache, untyped options) -> instance
1333
- | (name: untyped, ref: untyped, location: untyped, source_ref: untyped, row_fields: untyped, column_fields: untyped, data_fields: untyped, page_fields: untyped, data_caption: untyped, page_wrap: untyped, column_grand_totals: untyped, row_grand_totals: untyped, show_row_headers: untyped, show_column_headers: untyped, show_row_stripes: untyped, show_column_stripes: untyped, cache: untyped, options: untyped) -> instance
1312
+ def self.new: (untyped name, untyped ref, untyped source_ref, untyped row_fields, untyped column_fields, untyped data_fields, untyped page_fields, untyped data_caption, untyped page_wrap, untyped column_grand_totals, untyped row_grand_totals, untyped show_row_headers, untyped show_column_headers, untyped show_row_stripes, untyped show_column_stripes, untyped cache, untyped options) -> instance
1313
+ | (name: untyped, ref: untyped, source_ref: untyped, row_fields: untyped, column_fields: untyped, data_fields: untyped, page_fields: untyped, data_caption: untyped, page_wrap: untyped, column_grand_totals: untyped, row_grand_totals: untyped, show_row_headers: untyped, show_column_headers: untyped, show_row_stripes: untyped, show_column_stripes: untyped, cache: untyped, options: untyped) -> instance
1334
1314
 
1335
- def self.members: () -> [ :name, :ref, :location, :source_ref, :row_fields, :column_fields, :data_fields, :page_fields, :data_caption, :page_wrap, :column_grand_totals, :row_grand_totals, :show_row_headers, :show_column_headers, :show_row_stripes, :show_column_stripes, :cache, :options ]
1315
+ def self.members: () -> [ :name, :ref, :source_ref, :row_fields, :column_fields, :data_fields, :page_fields, :data_caption, :page_wrap, :column_grand_totals, :row_grand_totals, :show_row_headers, :show_column_headers, :show_row_stripes, :show_column_stripes, :cache, :options ]
1336
1316
 
1337
- def members: () -> [ :name, :ref, :location, :source_ref, :row_fields, :column_fields, :data_fields, :page_fields, :data_caption, :page_wrap, :column_grand_totals, :row_grand_totals, :show_row_headers, :show_column_headers, :show_row_stripes, :show_column_stripes, :cache, :options ]
1317
+ def members: () -> [ :name, :ref, :source_ref, :row_fields, :column_fields, :data_fields, :page_fields, :data_caption, :page_wrap, :column_grand_totals, :row_grand_totals, :show_row_headers, :show_column_headers, :show_row_stripes, :show_column_stripes, :cache, :options ]
1338
1318
  end
1339
1319
 
1340
1320
  # Header or footer embedded image.
@@ -1390,15 +1370,20 @@ module Xlsxrb
1390
1370
 
1391
1371
  attr_reader extend(): untyped
1392
1372
 
1393
- def self.new: (untyped name, untyped size, untyped bold, untyped italic, untyped underline, untyped strike, untyped color, untyped family, untyped scheme, untyped outline, untyped shadow, untyped condense, untyped extend) -> instance
1394
- | (name: untyped, size: untyped, bold: untyped, italic: untyped, underline: untyped, strike: untyped, color: untyped, family: untyped, scheme: untyped, outline: untyped, shadow: untyped, condense: untyped, extend: untyped) -> instance
1373
+ attr_reader vert_align(): untyped
1374
+
1375
+ def self.new: (untyped name, untyped size, untyped bold, untyped italic, untyped underline, untyped strike, untyped color, untyped family, untyped scheme, untyped outline, untyped shadow, untyped condense, untyped extend, untyped vert_align) -> instance
1376
+ | (name: untyped, size: untyped, bold: untyped, italic: untyped, underline: untyped, strike: untyped, color: untyped, family: untyped, scheme: untyped, outline: untyped, shadow: untyped, condense: untyped, extend: untyped, vert_align: untyped) -> instance
1395
1377
 
1396
- def self.members: () -> [ :name, :size, :bold, :italic, :underline, :strike, :color, :family, :scheme, :outline, :shadow, :condense, :extend ]
1378
+ def self.members: () -> [ :name, :size, :bold, :italic, :underline, :strike, :color, :family, :scheme, :outline, :shadow, :condense, :extend, :vert_align ]
1397
1379
 
1398
- def members: () -> [ :name, :size, :bold, :italic, :underline, :strike, :color, :family, :scheme, :outline, :shadow, :condense, :extend ]
1380
+ def members: () -> [ :name, :size, :bold, :italic, :underline, :strike, :color, :family, :scheme, :outline, :shadow, :condense, :extend, :vert_align ]
1399
1381
  end
1400
1382
 
1401
1383
  # Fill style definition in stylesheet (<fill>).
1384
+ #
1385
+ # +gradient+ describes a <gradientFill> in place of a pattern: { type:, degree:, left:, right:,
1386
+ # top:, bottom:, stops: [{ position:, color: { rgb: | theme:, tint: } }] }.
1402
1387
  # @api public
1403
1388
  class Fill < Data
1404
1389
  attr_reader pattern_type(): untyped
@@ -1407,12 +1392,14 @@ module Xlsxrb
1407
1392
 
1408
1393
  attr_reader bg_color(): untyped
1409
1394
 
1410
- def self.new: (untyped pattern_type, untyped fg_color, untyped bg_color) -> instance
1411
- | (pattern_type: untyped, fg_color: untyped, bg_color: untyped) -> instance
1395
+ attr_reader gradient(): untyped
1396
+
1397
+ def self.new: (untyped pattern_type, untyped fg_color, untyped bg_color, untyped gradient) -> instance
1398
+ | (pattern_type: untyped, fg_color: untyped, bg_color: untyped, gradient: untyped) -> instance
1412
1399
 
1413
- def self.members: () -> [ :pattern_type, :fg_color, :bg_color ]
1400
+ def self.members: () -> [ :pattern_type, :fg_color, :bg_color, :gradient ]
1414
1401
 
1415
- def members: () -> [ :pattern_type, :fg_color, :bg_color ]
1402
+ def members: () -> [ :pattern_type, :fg_color, :bg_color, :gradient ]
1416
1403
  end
1417
1404
 
1418
1405
  # Border style definition in stylesheet (<border>).
@@ -26,57 +26,29 @@ module Xlsxrb
26
26
  # : (index: Integer, ?cells: Array[Elements::Cell], ?height: Float | Integer | nil, ?hidden: bool, ?custom_height: bool, ?collapsed: bool, ?outline_level: Integer | nil, ?style_index: (Integer | Symbol | String | Hash[Symbol, untyped] | nil), ?unmapped_data: Hash[untyped, untyped], ?errors: Array[String]?) -> void
27
27
  def initialize: (index: Integer, ?cells: Array[Elements::Cell], ?height: Float | Integer | nil, ?hidden: bool, ?custom_height: bool, ?collapsed: bool, ?outline_level: Integer | nil, ?style_index: Integer | Symbol | String | Hash[Symbol, untyped] | nil, ?unmapped_data: Hash[untyped, untyped], ?errors: Array[String]?) -> void
28
28
 
29
- # Access a cell by 0-based column index, column letter, or access row attributes via Symbol.
29
+ # Access a cell by 0-based column index, column letter/Symbol, or column range.
30
30
  #
31
31
  # @example
32
32
  # row[0] #=> Cell at column 0 (or nil if sparse)
33
33
  # row["A"] #=> Cell at column "A"
34
34
  # row[:A] #=> Cell at column "A"
35
- # row[:height] #=> 25.0
36
- # row[:cells] #=> [Cell, Cell, ...]
35
+ # row[0..2] #=> [Cell, Cell, ...]
37
36
  #
38
- # @param col_index [Integer, String, Symbol] Column index, column letter, or attribute symbol.
39
- # @return [Elements::Cell, Object, nil]
37
+ # @param col_index_or_range [Integer, String, Symbol, Range<Integer>] Column index, column letter/Symbol, or column index range.
38
+ # @return [Elements::Cell, Array<Elements::Cell>, nil]
40
39
  # @api public
41
- # : (Integer | String | Symbol col_index) -> untyped
42
- def []: (Integer | String | Symbol col_index) -> untyped
40
+ # : (Integer | String | Symbol col_index_or_range) -> Elements::Cell?
41
+ # : (Range[Integer] col_index_or_range) -> Array[Elements::Cell]
42
+ def []: (Integer | String | Symbol col_index_or_range) -> Elements::Cell?
43
+ | (Range[Integer] col_index_or_range) -> Array[Elements::Cell]
43
44
 
44
45
  # Returns a new Row with missing cells padded up to max_column (or maximum cell column index if nil).
45
46
  #
46
47
  # @param max_column [Integer, nil] Maximum 0-based column index to pad up to.
47
- # @param max_col [Integer, nil] Deprecated alias for max_column.
48
48
  # @return [Elements::Row]
49
49
  # @api public
50
- # : (?max_column: Integer?, ?max_col: Integer?) -> Elements::Row
51
- def padded: (?max_column: Integer?, ?max_col: Integer?) -> Elements::Row
52
-
53
- # @deprecated Use {#padded} instead. Will be removed in 0.2.0.
54
- #
55
- # @param max_col [Integer, nil] Deprecated parameter.
56
- # @return [Elements::Row]
57
- # : (?max_col: Integer?) -> Elements::Row
58
- def pad_empty_cells: (?max_col: Integer?) -> Elements::Row
59
-
60
- # Returns a coordinate-keyed Hash of cell values (e.g. {"A1" => "value", "B1" => 123}).
61
- #
62
- # @deprecated Use {#cells} or sheet.cells_hash instead. Will be removed in 0.2.0.
63
- # @param type_cast [Boolean] Whether to coerce date/time serial numbers into Date/Time instances.
64
- # @return [Hash{String => Object}]
65
- # @api public
66
- # : (?type_cast: bool) -> Hash[String, untyped]
67
- def cells_hash: (?type_cast: bool) -> Hash[String, untyped]
68
-
69
- # @deprecated Use {#hidden?} instead. Will be removed in 0.2.0.
70
- # : () -> bool
71
- def hidden: () -> bool
72
-
73
- # @deprecated Use {#collapsed?} instead. Will be removed in 0.2.0.
74
- # : () -> bool
75
- def collapsed: () -> bool
76
-
77
- # @deprecated Use {#custom_height?} instead. Will be removed in 0.2.0.
78
- # : () -> bool
79
- def custom_height: () -> bool
50
+ # : (?max_column: Integer?) -> Elements::Row
51
+ def padded: (?max_column: Integer?) -> Elements::Row
80
52
 
81
53
  # Returns whether the row is hidden.
82
54
  #
@@ -153,17 +125,6 @@ module Xlsxrb
153
125
  def each_cell: () { (Elements::Cell) -> void } -> void
154
126
  | () -> Enumerator[Elements::Cell, void]
155
127
 
156
- # Convert row cells to an Array of raw values.
157
- #
158
- # @deprecated Use {#values} to get an Array of cell values, or {#cells} for Cell objects. In 0.2.0, {#to_a} will conform to Enumerable#to_a and return Array<Cell>.
159
- # @example
160
- # row.values #=> ["ID", "Name", "Total"]
161
- #
162
- # @return [Array<Object>]
163
- # @api public
164
- # : () -> Array[untyped]
165
- def to_a: () -> Array[untyped]
166
-
167
128
  # Returns whether the row is valid according to OOXML specifications.
168
129
  #
169
130
  # @return [Boolean]
@@ -214,10 +175,6 @@ module Xlsxrb
214
175
  # : () -> Array[String?]
215
176
  def formula_expressions: () -> Array[String?]
216
177
 
217
- # @deprecated Use {#formula_expressions} instead. Will be removed in 0.2.0.
218
- # : () -> Array[String?]
219
- def formulas: () -> Array[String?]
220
-
221
178
  # Returns whether the row index is within valid OOXML range (0..1048575).
222
179
  #
223
180
  # @param index [Object]