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
@@ -5,14 +5,12 @@ module Xlsxrb
5
5
  #
6
6
  # @api public
7
7
  class WorksheetBuilder
8
- OMITTED: untyped
9
-
10
8
  # @param name [String] The worksheet name.
11
9
  # @param strict_excel_mode [Boolean] Whether to enforce Microsoft Excel limits.
12
10
  # @param state [Symbol] Sheet visibility state (:visible, :hidden, or :very_hidden).
13
- # @param escape_formulas [Boolean] Whether to treat strings starting with formula prefixes as plain text.
14
- # : (String name, ?strict_excel_mode: bool, ?state: Symbol, ?escape_formulas: bool) -> void
15
- def initialize: (String name, ?strict_excel_mode: bool, ?state: Symbol, ?escape_formulas: bool) -> void
11
+ # @param style_log [StyleLog] When the workbook's styles are defined (internal).
12
+ # : (String name, ?strict_excel_mode: bool, ?state: Symbol, ?style_log: StyleLog) -> void
13
+ def initialize: (String name, ?strict_excel_mode: bool, ?state: Symbol, ?style_log: StyleLog) -> void
16
14
 
17
15
  # : String
18
16
  attr_reader name: untyped
@@ -20,17 +18,6 @@ module Xlsxrb
20
18
  # : Array[Hash[Symbol, untyped]]
21
19
  attr_reader defined_names: untyped
22
20
 
23
- # @return [Boolean] Whether to treat strings starting with formula prefixes as plain text.
24
- # : bool
25
- attr_accessor escape_formulas: untyped
26
-
27
- # Returns whether formula escaping is enabled.
28
- #
29
- # @return [Boolean]
30
- # @api public
31
- # : () -> bool
32
- def escape_formulas?: () -> bool
33
-
34
21
  # Defines or configures a named cell style.
35
22
  #
36
23
  # @example Define a bold header style
@@ -41,6 +28,8 @@ module Xlsxrb
41
28
  # @yield [style_builder]
42
29
  # @yieldparam style_builder [Xlsxrb::StyleBuilder]
43
30
  # @return [StyleBuilder]
31
+ # Using the returned value is deprecated and warns; in version 0.3.0, this method
32
+ # will return nil. Configure the style with options or in the block.
44
33
  # @api public
45
34
  # : (String | Symbol name, **untyped opts) ?{ (StyleBuilder) -> void } -> StyleBuilder
46
35
  def style: (String | Symbol name, **untyped opts) ?{ (StyleBuilder) -> void } -> StyleBuilder
@@ -86,16 +75,11 @@ module Xlsxrb
86
75
  # @param custom_height [Boolean] Whether custom row height is enforced.
87
76
  # @param outline_level [Integer, nil] Grouping/outline hierarchy level.
88
77
  # @param collapsed [Boolean] Whether the row is collapsed.
89
- # @param styles [String, Symbol, Array<String | Symbol>, Hash, nil] Deprecated. Use cell_styles: instead.
90
- # @param style [Integer, Symbol, String, Hash, nil] Deprecated. Use row_style: instead.
91
78
  # @return [void]
92
79
  # @raise [ArgumentError] If limits are exceeded when strict_excel_mode is enabled.
93
80
  # @api public
94
- # : (Array[untyped] | Hash[untyped, untyped] values, ?cell_styles: untyped, ?row_style: (Integer | Symbol | String | Hash[Symbol, untyped])?, ?styles: untyped, ?style: (Integer | Symbol | String | Hash[Symbol, untyped])?, ?height: Float | Integer | nil, ?hidden: bool, ?custom_height: bool, ?collapsed: bool, ?outline_level: Integer | nil) -> void
95
- def row: (Array[untyped] | Hash[untyped, untyped] values, ?cell_styles: untyped, ?row_style: (Integer | Symbol | String | Hash[Symbol, untyped])?, ?styles: untyped, ?style: (Integer | Symbol | String | Hash[Symbol, untyped])?, ?height: Float | Integer | nil, ?hidden: bool, ?custom_height: bool, ?collapsed: bool, ?outline_level: Integer | nil) -> void
96
-
97
- # @deprecated Use {#row} instead. Will be removed in 0.2.0 (available via xlsxrb-adapters).
98
- alias add_row row
81
+ # : (Array[untyped] | Hash[untyped, untyped] values, ?cell_styles: untyped, ?row_style: (Integer | Symbol | String | Hash[Symbol, untyped])?, ?height: Float | Integer | nil, ?hidden: bool, ?custom_height: bool, ?collapsed: bool, ?outline_level: Integer | nil) -> void
82
+ def row: (Array[untyped] | Hash[untyped, untyped] values, ?cell_styles: untyped, ?row_style: (Integer | Symbol | String | Hash[Symbol, untyped])?, ?height: Float | Integer | nil, ?hidden: bool, ?custom_height: bool, ?collapsed: bool, ?outline_level: Integer | nil) -> void
99
83
 
100
84
  # Appends a row to the worksheet and returns self for chaining.
101
85
  #
@@ -110,9 +94,6 @@ module Xlsxrb
110
94
 
111
95
  # Advances the row cursor by count without writing empty row elements.
112
96
  #
113
- # @example Skip one row
114
- # sheet.skip_row
115
- #
116
97
  # @example Skip multiple rows
117
98
  # sheet.skip_rows(3)
118
99
  #
@@ -122,9 +103,6 @@ module Xlsxrb
122
103
  # : (?Integer count) -> void
123
104
  def skip_rows: (?Integer count) -> void
124
105
 
125
- # @deprecated Use {#skip_rows} instead. Will be removed in 0.2.0.
126
- alias skip_row skip_rows
127
-
128
106
  # Sets column formatting and properties for one or multiple columns.
129
107
  #
130
108
  # @example Set width for column A
@@ -169,15 +147,6 @@ module Xlsxrb
169
147
  # : (Integer | String | Range[Integer | String] | Array[Integer | String] index, ?level: Integer, ?collapsed: bool, ?hidden: bool, ?width: Float | Integer | nil, ?style: untyped) -> void
170
148
  def group_columns: (Integer | String | Range[Integer | String] | Array[Integer | String] index, ?level: Integer, ?collapsed: bool, ?hidden: bool, ?width: Float | Integer | nil, ?style: untyped) -> void
171
149
 
172
- # @deprecated Use {#group_columns} instead. Will be removed in 0.2.0.
173
- alias group_column group_columns
174
-
175
- # @deprecated Use {#group_columns} instead. Will be removed in 0.2.0.
176
- alias group_cols group_columns
177
-
178
- # @deprecated Use {#group_columns} instead. Will be removed in 0.2.0.
179
- alias group_col group_columns
180
-
181
150
  # Groups multiple rows with outline hierarchy, either by range or with a block.
182
151
  #
183
152
  # @example Group rows with a block
@@ -199,10 +168,10 @@ module Xlsxrb
199
168
  # : (?untyped rows, ?level: Integer, ?collapsed: bool, ?hidden: bool) ?{ (self) -> void } -> void
200
169
  def group_rows: (?untyped rows, ?level: Integer, ?collapsed: bool, ?hidden: bool) ?{ (self) -> void } -> void
201
170
 
202
- # @deprecated Use {#group_rows} instead. Will be removed in 0.2.0.
203
- alias group_row group_rows
204
-
205
- # Configures worksheet-level outline and grouping view properties.
171
+ # Configures or queries worksheet-level outline and grouping view properties.
172
+ #
173
+ # When called with no arguments, returns the outline properties Hash.
174
+ # When called with arguments, updates outline properties and returns nil.
206
175
  #
207
176
  # @example Show summary row below detail rows
208
177
  # sheet.outline_properties(summary_below: true, summary_right: true)
@@ -210,16 +179,14 @@ module Xlsxrb
210
179
  # @param summary_below [Boolean, nil] Flag indicating if summary rows appear below detail rows.
211
180
  # @param summary_right [Boolean, nil] Flag indicating if summary columns appear to the right of detail columns.
212
181
  # @param show_outline_symbols [Boolean, nil] Flag indicating whether outline symbols are visible.
213
- # @param show_symbols [Boolean, nil] Deprecated alias for show_outline_symbols.
214
182
  # @param apply_styles [Boolean, nil] Flag indicating whether automatic styles apply to outlines.
215
183
  # @param opts [Hash] Additional options.
216
184
  # @return [Hash<Symbol, untyped>, void]
217
185
  # @api public
218
- # : (?summary_below: bool?, ?summary_right: bool?, ?show_outline_symbols: bool?, ?show_symbols: bool?, ?apply_styles: bool?, **untyped opts) -> (Hash[Symbol, untyped] | void)
219
- def outline_properties: (?summary_below: untyped, ?summary_right: untyped, ?show_outline_symbols: untyped, ?show_symbols: untyped, ?apply_styles: untyped, **untyped opts) -> untyped
220
-
221
- # @deprecated Use {#outline_properties} instead. Will be removed in 0.2.0.
222
- alias outline_pr outline_properties
186
+ # : () -> Hash[Symbol, untyped]
187
+ # : (?summary_below: bool?, ?summary_right: bool?, ?show_outline_symbols: bool?, ?apply_styles: bool?, **untyped opts) -> void
188
+ def outline_properties: () -> Hash[Symbol, untyped]
189
+ | (?summary_below: bool?, ?summary_right: bool?, ?show_outline_symbols: bool?, ?apply_styles: bool?, **untyped opts) -> void
223
190
 
224
191
  # Sets worksheet outline and grouping view properties.
225
192
  #
@@ -229,8 +196,6 @@ module Xlsxrb
229
196
  # : (Hash[Symbol, untyped] opts) -> void
230
197
  def outline_properties=: (Hash[Symbol, untyped] opts) -> void
231
198
 
232
- alias outline_pr= outline_properties=
233
-
234
199
  # Adds a chart to the worksheet.
235
200
  #
236
201
  # @param type [Symbol, String, nil] Optional chart type (e.g. :bar, :line).
@@ -254,13 +219,12 @@ module Xlsxrb
254
219
  # : (String | Integer cell, ?(String | Elements::Hyperlink)? url, ?display: String?, ?tooltip: String?, ?location: String?) -> void
255
220
  def hyperlink: (String | Integer cell, ?(String | Elements::Hyperlink)? url, ?display: String?, ?tooltip: String?, ?location: String?) -> void
256
221
 
257
- # Sets an auto-filter range on the sheet.
222
+ # Returns the auto-filter range for the worksheet, or nil if none.
258
223
  #
259
- # @param range [String, nil] The cell range (e.g. "A1:E100").
260
- # @return [void]
224
+ # @return [String, nil]
261
225
  # @api public
262
- # : (String? range) -> void
263
- def auto_filter: (String? range) -> void
226
+ # : () -> String?
227
+ attr_reader auto_filter: untyped
264
228
 
265
229
  # Sets the auto-filter range for the worksheet.
266
230
  #
@@ -276,26 +240,33 @@ module Xlsxrb
276
240
  # @param filter [Hash] Filter criteria (e.g. values, custom filters).
277
241
  # @return [void]
278
242
  # @api public
279
- # : (Integer | String | Symbol col_id, untyped filter) -> void
280
- def filter_column: (Integer | String | Symbol col_id, untyped filter) -> void
243
+ # : (Integer | String | Symbol col_id, (Hash[untyped, untyped] | Array[untyped]) filter) -> void
244
+ def filter_column: (Integer | String | Symbol col_id, Hash[untyped, untyped] | Array[untyped] filter) -> void
281
245
 
282
- # Configures column sort state for the sheet.
246
+ # Configures or queries column sort state for the sheet.
247
+ #
248
+ # When called with no arguments, returns the {Elements::SortState} value object.
249
+ # When called with arguments, updates sort state and returns nil.
283
250
  #
284
- # @param ref [String] The sorted range.
285
- # @param sort_conditions [Array<Hash>] List of sort condition definitions.
251
+ # @param ref [String, nil] The sorted range.
252
+ # @param sort_conditions [Array<Hash>, nil] List of sort condition definitions.
253
+ # @param case_sensitive [Boolean] Whether sorting is case sensitive.
254
+ # @param sort_method [String, nil] Sort method.
286
255
  # @param opts [Hash] Additional sort state options.
287
- # @return [Elements::SortState, Hash<Symbol, untyped>, nil, void]
256
+ # @return [Elements::SortState, nil, void]
288
257
  # @api public
289
- # : (?String? ref, ?Array[Hash[untyped, untyped]]? sort_conditions, **untyped opts) -> (untyped | void)
290
- def sort_state: (?untyped ref, ?untyped sort_conditions, **untyped opts) -> untyped
258
+ # : () -> Elements::SortState?
259
+ # : (?String? ref, ?Array[Hash[untyped, untyped]]? sort_conditions, ?case_sensitive: bool, ?sort_method: String?, **untyped opts) -> void
260
+ def sort_state: () -> Elements::SortState?
261
+ | (?String? ref, ?Array[Hash[untyped, untyped]]? sort_conditions, ?case_sensitive: bool, ?sort_method: String?, **untyped opts) -> void
291
262
 
292
263
  # Sets column sort state for the sheet.
293
264
  #
294
265
  # @param opts [Elements::SortState, Hash, nil] Sort state options.
295
266
  # @return [void]
296
267
  # @api public
297
- # : (untyped opts) -> void
298
- def sort_state=: (untyped opts) -> void
268
+ # : (Elements::SortState | Hash[Symbol, untyped] | nil opts) -> void
269
+ def sort_state=: (Elements::SortState | Hash[Symbol, untyped] | nil opts) -> void
299
270
 
300
271
  # Adds a data validation rule to a cell, range, or coordinates.
301
272
  #
@@ -307,10 +278,6 @@ module Xlsxrb
307
278
  # : (?String? sqref, **untyped opts) ?{ (DataValidationBuilder) -> void } -> void
308
279
  def data_validation: (?String? sqref, **untyped opts) ?{ (DataValidationBuilder) -> void } -> void
309
280
 
310
- # @deprecated Use {#data_validation} instead.
311
- # : (?String? sqref, **untyped opts) ?{ (DataValidationBuilder) -> void } -> void
312
- def validate_data: (?String? sqref, **untyped opts) ?{ (DataValidationBuilder) -> void } -> void
313
-
314
281
  # Adds a conditional formatting rule to a cell range.
315
282
  # Supports block configuration via {ConditionalFormatBuilder} and coordinate targeting (:columns, :rows).
316
283
  #
@@ -343,29 +310,26 @@ module Xlsxrb
343
310
  # @param source_ref [String] Source data range (e.g. "DataSheet!A1:D100").
344
311
  # @param row_fields [Array<Integer, String>] Field names or indices for row headers.
345
312
  # @param data_fields [Array<Hash>] Data aggregation fields.
346
- # @param col_fields [Array<Integer, String>] Field names or indices for column headers.
347
- # @param dest_ref [String] Top-left destination cell (default "E1").
313
+ # @param column_fields [Array<String, Integer>, nil] Field names or indices for columns.
314
+ # @param ref [String, nil] Target cell for pivot table top-left corner (e.g. "E1").
348
315
  # @param name [String, nil] Pivot table name.
349
316
  # @param field_names [Array<String>, nil] Custom field display names.
350
- # @param items [Array, nil] Item configuration.
351
- # @param column_fields [Array<String, Integer>] Field names or indices for columns.
352
- # @param col_fields [Array<String, Integer>] Deprecated alias for column_fields.
353
- # @param ref [String] Target cell for pivot table top-left corner (e.g. "E1").
354
- # @param dest_ref [String] Deprecated alias for ref.
317
+ # @param items [Hash{Integer => Array}, nil] Items of each field, by 0-based field index.
355
318
  # @return [void]
356
319
  # @api public
357
- # : (String source_ref, row_fields: Array[String | Integer], data_fields: Array[String | Hash[Symbol, untyped]], ?column_fields: Array[String | Integer]?, ?col_fields: Array[String | Integer]?, ?ref: String?, ?dest_ref: String?, ?name: String?, ?field_names: Array[String]?, ?items: Array[untyped]?, **untyped opts) -> void
358
- def pivot_table: (String source_ref, row_fields: Array[String | Integer], data_fields: Array[String | Hash[Symbol, untyped]], ?column_fields: Array[String | Integer]?, ?col_fields: Array[String | Integer]?, ?ref: String?, ?dest_ref: String?, ?name: String?, ?field_names: Array[String]?, ?items: Array[untyped]?, **untyped opts) -> void
320
+ # : (String source_ref, row_fields: Array[String | Integer], data_fields: Array[String | Hash[Symbol, untyped]], ?column_fields: Array[String | Integer]?, ?ref: String?, ?name: String?, ?field_names: Array[String]?, ?items: Hash[Integer, Array[untyped]]?, **untyped opts) -> void
321
+ def pivot_table: (String source_ref, row_fields: Array[String | Integer], data_fields: Array[String | Hash[Symbol, untyped]], ?column_fields: Array[String | Integer]?, ?ref: String?, ?name: String?, ?field_names: Array[String]?, ?items: Hash[Integer, Array[untyped]]?, **untyped opts) -> void
359
322
 
360
323
  # Adds a cell comment / note.
361
324
  #
362
325
  # @param cell [String, Integer] Cell reference (e.g. "B2").
363
326
  # @param text [String] The comment text.
364
327
  # @param author [String] Author name.
328
+ # @param visible [Boolean] Whether the comment is always shown instead of on hover.
365
329
  # @return [void]
366
330
  # @api public
367
- # : (String | Integer cell, String text, ?author: ::String) -> void
368
- def comment: (String | Integer cell, String text, ?author: ::String) -> void
331
+ # : (String | Integer cell, String text, ?author: ::String, ?visible: bool) -> void
332
+ def comment: (String | Integer cell, String text, ?author: ::String, ?visible: bool) -> void
369
333
 
370
334
  # Adds a threaded comment to a cell.
371
335
  #
@@ -383,9 +347,6 @@ module Xlsxrb
383
347
  # : (String | Integer cell, String text, ?author: untyped, ?timestamp: untyped, ?id: String?, ?parent_id: String?, ?done: bool?, ?user_id: String?, ?provider_id: String?) -> void
384
348
  def threaded_comment: (String | Integer cell, String text, ?author: untyped, ?timestamp: untyped, ?id: String?, ?parent_id: String?, ?done: bool?, ?user_id: String?, ?provider_id: String?) -> void
385
349
 
386
- # @deprecated Use {#threaded_comment} instead. Will be removed in 0.2.0.
387
- alias add_threaded_comment threaded_comment
388
-
389
350
  # Adds a sparkline group to the sheet.
390
351
  #
391
352
  # @param sparklines [Array<Hash>] List of { data_ref:, location_ref: } items.
@@ -396,107 +357,91 @@ module Xlsxrb
396
357
  # : (sparklines: Array[String | Hash[Symbol, untyped]], ?type: (String | Symbol)?, **untyped opts) -> void
397
358
  def sparkline_group: (sparklines: Array[String | Hash[Symbol, untyped]], ?type: (String | Symbol)?, **untyped opts) -> void
398
359
 
399
- # Adds a single sparkline to the sheet.
400
- #
401
- # @example Add a line sparkline
402
- # sheet.add_sparkline(location: "F1", range: "A1:E1")
403
- #
404
- # @example Add a column sparkline with high/low markers
405
- # sheet.add_sparkline(location: "F2", range: "A2:E2", type: :column, high: true, low: true)
406
- #
407
- # @example Add a win/loss sparkline
408
- # sheet.add_sparkline(location: "F3", range: "A3:E3", type: :win_loss)
409
- #
410
- # @deprecated Use {#sparkline_group} instead. Will be removed in 0.2.0.
411
- # @param location [String, nil] Target cell for the sparkline (e.g. "F1").
412
- # @param range [String, nil] Data range for the sparkline (e.g. "A1:E1").
413
- # @param type [Symbol, String, nil] Sparkline type (:line, :column, :win_loss / :stacked).
414
- # @param opts [Hash] Additional sparkline options.
415
- # @return [void]
416
- # @api public
417
- # : (?location: String?, ?range: String?, ?type: (String | Symbol)?, **untyped opts) -> void
418
- def add_sparkline: (?location: String?, ?range: String?, ?type: (String | Symbol)?, **untyped opts) -> void
419
-
420
360
  # Merges a range of cells into a single cell.
421
361
  #
422
362
  # @example Merge with string range
423
363
  # sheet.merge("A1:C1")
424
364
  #
425
- # @deprecated Passing coordinate keyword arguments (row:, col_start:, col_end:, row_start:, row_end:) is deprecated and will be removed in 0.2.0. Use a range string (e.g. merge("A1:C1")) instead.
426
- # @param range [String, Hash, nil] Cell range (e.g. "A1:B2") or hash of coordinates.
427
- # @param row [Integer, nil] Single row index.
428
- # @param col_start [Integer, String, nil] Starting column.
429
- # @param col_end [Integer, String, nil] Ending column.
430
- # @param row_start [Integer, nil] Starting row index.
431
- # @param row_end [Integer, nil] Ending row index.
365
+ # @param range [String] Cell range (e.g. "A1:B2").
432
366
  # @return [void]
433
367
  # @api public
434
- # : (?(String | Hash[Symbol, Integer | String])? range, ?row: Integer?, ?col_start: (Integer | String)?, ?col_end: (Integer | String)?, ?row_start: Integer?, ?row_end: Integer?) -> void
435
- def merge: (?(String | Hash[Symbol, Integer | String])? range, ?row: Integer?, ?col_start: (Integer | String)?, ?col_end: (Integer | String)?, ?row_start: Integer?, ?row_end: Integer?) -> void
368
+ # : (String range) -> void
369
+ def merge: (String range) -> void
436
370
 
437
- # Freezes window panes at the specified row and column, or queries freeze pane settings.
371
+ # Configures or queries freeze panes (<pane state="frozen">).
372
+ #
373
+ # When called with no arguments, returns the {Elements::FreezePane} value object or nil.
374
+ # When called with arguments, configures the freeze pane and returns nil.
438
375
  #
439
376
  # @param row [Integer, nil] Number of rows to freeze from top (0-based split position).
440
377
  # @param column [Integer, String, nil] Number of columns to freeze from left (0-based or letter).
441
- # @param col [Integer, String, nil] Deprecated alias for column.
442
- # @return [Elements::FreezePane, Hash<Symbol, untyped>, nil, void]
378
+ # @param top_left_cell [String, nil] Top-left cell reference in bottom-right pane.
379
+ # @param active_pane [String, Symbol, nil] Active pane identifier.
380
+ # @return [Elements::FreezePane, nil, void]
443
381
  # @api public
444
- # : (?row: Integer | nil, ?column: (Integer | String)?, ?col: (Integer | String)?) -> (untyped | void)
445
- def freeze_pane: (?row: untyped, ?column: untyped, ?col: untyped) -> untyped
382
+ # : () -> Elements::FreezePane?
383
+ # : (?row: Integer | nil, ?column: (Integer | String)?, ?top_left_cell: String?, ?active_pane: (String | Symbol)?) -> void
384
+ def freeze_pane: () -> Elements::FreezePane?
385
+ | (?row: Integer | nil, ?column: (Integer | String)?, ?top_left_cell: String?, ?active_pane: (String | Symbol)?) -> void
446
386
 
447
387
  # Sets or clears freeze pane configuration.
448
388
  #
449
389
  # @param opts [Elements::FreezePane, Hash, nil] Freeze pane options.
450
390
  # @return [void]
451
391
  # @api public
452
- # : (untyped opts) -> void
453
- def freeze_pane=: (untyped opts) -> void
392
+ # : (Elements::FreezePane | Hash[Symbol, untyped] | nil opts) -> void
393
+ def freeze_pane=: (Elements::FreezePane | Hash[Symbol, untyped] | nil opts) -> void
454
394
 
455
- # Splits window panes without freezing or queries split pane settings.
395
+ # Splits window panes without freezing or queries split pane settings (<pane>).
396
+ #
397
+ # When called with no arguments, returns the {Elements::SplitPane} value object or nil.
398
+ # When called with arguments, configures the split pane and returns nil.
456
399
  #
457
400
  # @param x_split [Integer, nil] Horizontal split offset in points.
458
401
  # @param y_split [Integer, nil] Vertical split offset in points.
459
402
  # @param top_left_cell [String, nil] Top-left cell reference in bottom-right pane.
460
403
  # @param active_pane [String, Symbol, nil] Active pane identifier.
461
- # @param state [String, Symbol, nil] Split state.
462
- # @return [Elements::SplitPane, Hash<Symbol, untyped>, nil, void]
404
+ # @return [Elements::SplitPane, nil, void]
463
405
  # @api public
464
- # : (?x_split: Integer | nil, ?y_split: Integer | nil, ?top_left_cell: String?, ?active_pane: (String | Symbol)?, ?state: (String | Symbol)?) -> (untyped | void)
465
- def split_pane: (?x_split: untyped, ?y_split: untyped, ?top_left_cell: untyped, ?active_pane: untyped, ?state: untyped) -> untyped
406
+ # : () -> Elements::SplitPane?
407
+ # : (?x_split: Integer | nil, ?y_split: Integer | nil, ?top_left_cell: String?, ?active_pane: (String | Symbol)?) -> void
408
+ def split_pane: () -> Elements::SplitPane?
409
+ | (?x_split: Integer | nil, ?y_split: Integer | nil, ?top_left_cell: String?, ?active_pane: (String | Symbol)?) -> void
466
410
 
467
411
  # Sets or clears split pane configuration.
468
412
  #
469
413
  # @param opts [Elements::SplitPane, Hash, nil] Split pane options.
470
414
  # @return [void]
471
415
  # @api public
472
- # : (untyped opts) -> void
473
- def split_pane=: (untyped opts) -> void
416
+ # : (Elements::SplitPane | Hash[Symbol, untyped] | nil opts) -> void
417
+ def split_pane=: (Elements::SplitPane | Hash[Symbol, untyped] | nil opts) -> void
474
418
 
475
- # Sets or queries the active cell and selection area (<selection>).
419
+ # Configures or queries the active cell and selection area (<selection>).
420
+ #
421
+ # When called with no arguments, returns the selection ({Elements::Selection}, Array, or nil).
422
+ # When called with arguments, updates the selection and returns nil.
476
423
  #
477
424
  # @param active_cell [String, nil] Active cell reference (e.g. "A1") or range (e.g. "A1:D10").
478
425
  # @param sqref [String, nil] Selected range reference (e.g. "A1:D10").
479
426
  # @param pane [String, Symbol, nil] Target pane (:topLeft, :topRight, :bottomLeft, :bottomRight).
480
- # @return [Elements::Selection, Array<Elements::Selection>, Hash<Symbol, untyped>, nil, void]
427
+ # @return [Elements::Selection, Array<Elements::Selection>, nil, void]
481
428
  # @api public
482
- # : (?String? active_cell, ?sqref: String?, ?pane: (String | Symbol)?) -> (untyped | void)
483
- def selection: (?untyped active_cell, ?sqref: untyped, ?pane: untyped) -> untyped
429
+ # : () -> (Elements::Selection | Array[Elements::Selection])?
430
+ # : (?String? active_cell, ?sqref: String?, ?pane: (String | Symbol)?) -> void
431
+ def selection: () -> (Elements::Selection | Array[Elements::Selection])?
432
+ | (?String? active_cell, ?sqref: String?, ?pane: (String | Symbol)?) -> void
484
433
 
485
434
  # Sets or clears the selection configuration.
486
435
  #
487
436
  # @param opts [Elements::Selection, Array<Elements::Selection, Hash>, Hash, nil]
488
437
  # @return [void]
489
438
  # @api public
490
- # : (untyped opts) -> void
491
- def selection=: (untyped opts) -> void
492
-
493
- # @deprecated Use {#selection} instead.
494
- # : (String active_cell, ?sqref: String?, ?pane: (String | Symbol)?) -> void
495
- def select_cell: (String active_cell, ?sqref: String?, ?pane: (String | Symbol)?) -> void
439
+ # : (Elements::Selection | Array[Elements::Selection | Hash[Symbol, untyped]] | Hash[Symbol, untyped] | nil opts) -> void
440
+ def selection=: (Elements::Selection | Array[Elements::Selection | Hash[Symbol, untyped]] | Hash[Symbol, untyped] | nil opts) -> void
496
441
 
497
442
  # Configures or queries page margins in inches for printing (<pageMargins>).
498
443
  #
499
- # When called with no arguments, returns the page margins value object or hash.
444
+ # When called with no arguments, returns the {Elements::PageMargins} value object or nil.
500
445
  # When called with arguments, configures page margins and returns nil.
501
446
  #
502
447
  # @param left [Float, nil] Left margin.
@@ -505,51 +450,44 @@ module Xlsxrb
505
450
  # @param bottom [Float, nil] Bottom margin.
506
451
  # @param header [Float, nil] Header margin.
507
452
  # @param footer [Float, nil] Footer margin.
508
- # @return [Elements::PageMargins, Hash<Symbol, untyped>, nil, void]
453
+ # @return [Elements::PageMargins, nil, void]
509
454
  # @api public
510
- # : (?left: Float?, ?right: Float?, ?top: Float?, ?bottom: Float?, ?header: Float?, ?footer: Float?) -> (untyped | void)
511
- def page_margins: (?left: untyped, ?right: untyped, ?top: untyped, ?bottom: untyped, ?header: untyped, ?footer: untyped) -> untyped
455
+ # : () -> Elements::PageMargins?
456
+ # : (?left: Float?, ?right: Float?, ?top: Float?, ?bottom: Float?, ?header: Float?, ?footer: Float?) -> void
457
+ def page_margins: () -> Elements::PageMargins?
458
+ | (?left: Float?, ?right: Float?, ?top: Float?, ?bottom: Float?, ?header: Float?, ?footer: Float?) -> void
512
459
 
513
460
  # Sets or clears page margins configuration.
514
461
  #
515
462
  # @param opts [Hash, Elements::PageMargins, nil]
516
463
  # @return [void]
517
464
  # @api public
518
- # : (untyped opts) -> void
519
- def page_margins=: (untyped opts) -> void
465
+ # : (Hash[Symbol, untyped] | Elements::PageMargins | nil opts) -> void
466
+ def page_margins=: (Hash[Symbol, untyped] | Elements::PageMargins | nil opts) -> void
520
467
 
521
468
  # Configures or queries page setup configuration (<pageSetup>).
522
469
  #
523
- # When called with no arguments, returns the page setup value object or hash.
470
+ # When called with no arguments, returns the {Elements::PageSetup} value object.
524
471
  # When called with keyword arguments, updates page setup and returns nil.
525
472
  #
526
473
  # @param opts [Hash] Page setup options (e.g. orientation: :landscape, paper_size: 9).
527
- # @return [Elements::PageSetup, Hash<Symbol, untyped>, void]
474
+ # @return [Elements::PageSetup, void]
528
475
  # @api public
529
- # : (**untyped opts) -> (untyped | void)
530
- def page_setup: (**untyped opts) -> untyped
476
+ # : () -> Elements::PageSetup
477
+ # : (**untyped opts) -> void
478
+ def page_setup: () -> Elements::PageSetup
479
+ | (**untyped opts) -> void
531
480
 
532
481
  # Sets page setup configuration.
533
482
  #
534
483
  # @param opts [Hash, Elements::PageSetup]
535
484
  # @return [void]
536
485
  # @api public
537
- # : (untyped opts) -> void
538
- def page_setup=: (untyped opts) -> void
486
+ # : (Hash[Symbol, untyped] | Elements::PageSetup opts) -> void
487
+ def page_setup=: (Hash[Symbol, untyped] | Elements::PageSetup opts) -> void
539
488
 
540
- # Configures whether page setup fits content to page width/height.
541
- # When enabled, optionally sets fit_to_width and/or fit_to_height on page_setup.
489
+ # Returns whether page setup fits content to page width/height.
542
490
  #
543
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#fit_to_page=} or {#page_setup} with :fit_to_width/:fit_to_height instead.
544
- # @param enabled [Boolean, nil] Whether to fit to page.
545
- # @param width [Integer, nil] Pages wide to fit to.
546
- # @param height [Integer, nil] Pages tall to fit to.
547
- # @return [Boolean, void]
548
- # @api public
549
- # : (?bool? enabled, ?width: Integer?, ?height: Integer?) -> (bool | void)
550
- def fit_to_page: (?untyped enabled, ?width: untyped, ?height: untyped) -> untyped
551
-
552
- # @deprecated Use {#fit_to_page} instead. Will be removed in 0.2.0.
553
491
  # @return [Boolean]
554
492
  # @api public
555
493
  # : () -> bool
@@ -565,35 +503,37 @@ module Xlsxrb
565
503
 
566
504
  # Configures or queries headers and footers for printing (<headerFooter>).
567
505
  #
568
- # When called with no arguments, returns the header/footer value object or hash.
506
+ # When called with no arguments, returns the {Elements::HeaderFooter} value object.
569
507
  # When called with keyword arguments, updates headers and footers and returns nil.
570
508
  #
571
509
  # @param opts [Hash] Header and footer options (e.g. odd_header: "&CHeader Text").
572
- # @return [Elements::HeaderFooter, Hash<Symbol, untyped>, void]
510
+ # @return [Elements::HeaderFooter, void]
573
511
  # @api public
574
- # : (**untyped opts) -> (untyped | void)
575
- def header_footer: (**untyped opts) -> untyped
512
+ # : () -> Elements::HeaderFooter
513
+ # : (**untyped opts) -> void
514
+ def header_footer: () -> Elements::HeaderFooter
515
+ | (**untyped opts) -> void
576
516
 
577
517
  # Sets header and footer configuration.
578
518
  #
579
519
  # @param opts [Hash, Elements::HeaderFooter]
580
520
  # @return [void]
581
521
  # @api public
582
- # : (untyped opts) -> void
583
- def header_footer=: (untyped opts) -> void
522
+ # : (Hash[Symbol, untyped] | Elements::HeaderFooter opts) -> void
523
+ def header_footer=: (Hash[Symbol, untyped] | Elements::HeaderFooter opts) -> void
584
524
 
585
525
  # Configures or queries print options (<printOptions>).
586
526
  #
587
527
  # When called with no arguments, returns the {Elements::PrintOptions} value object.
588
- # When called with arguments or keyword options, configures print options and returns nil.
528
+ # When called with keyword options, configures print options and returns nil.
589
529
  #
590
- # @param name [Symbol, String, Hash, Elements::MetadataRecord, nil] Option name or hash/record of options.
591
- # @param value [Object, nil] Option value.
592
530
  # @param opts [Hash] Additional print options.
593
531
  # @return [Elements::PrintOptions, void]
594
532
  # @api public
595
- # : (?Symbol | String | Hash[Symbol, untyped] | Elements::MetadataRecord | nil name, ?untyped value, **untyped opts) -> (Elements::PrintOptions | void)
596
- def print_options: (?untyped name, ?untyped value, **untyped opts) -> untyped
533
+ # : () -> Elements::PrintOptions
534
+ # : (**untyped opts) -> void
535
+ def print_options: () -> Elements::PrintOptions
536
+ | (**untyped opts) -> void
597
537
 
598
538
  # Replaces print options with the given hash or {Elements::PrintOptions} object.
599
539
  #
@@ -609,33 +549,25 @@ module Xlsxrb
609
549
  # @param name [String] Defined name identifier.
610
550
  # @param value [Object, nil] Cell reference, formula, or constant.
611
551
  # @param hidden [Boolean] Whether the defined name is hidden from Excel's UI.
612
- # @param column [Integer, String, nil] Deprecated alias for columns.
613
552
  # @param columns [Integer, String, nil] Column index or letter for coordinate-based reference.
614
- # @param col [Integer, String, nil] Deprecated alias for column.
615
- # @param row [Integer, Range, nil] Deprecated alias for rows.
616
- # @param rows [Integer, Range, nil] Row or row range (1-based) for coordinate-based reference.
553
+ # @param rows [Integer, Range, nil] Row or row range (0-based) for coordinate-based reference.
617
554
  # @param range [String, nil] Cell range reference (e.g. "A1:A10").
618
555
  # @param sheet [String, nil] Reference sheet name (defaults to current sheet).
619
556
  # @param scope [String, Symbol, nil] Scope identifier (:workbook or sheet name).
620
- # @param local [Boolean] Deprecated alias for scope: :current.
621
557
  # @return [void]
622
558
  # @api public
623
- # : (String name, ?untyped value, ?hidden: bool, ?column: untyped, ?columns: untyped, ?col: untyped, ?row: untyped, ?rows: untyped, ?range: untyped, ?sheet: String?, ?scope: (String | Symbol)?, ?local: bool) -> void
624
- def defined_name: (String name, ?untyped value, ?hidden: bool, ?column: untyped, ?columns: untyped, ?col: untyped, ?row: untyped, ?rows: untyped, ?range: untyped, ?sheet: String?, ?scope: (String | Symbol)?, ?local: bool) -> void
559
+ # : (String name, ?untyped value, ?hidden: bool, ?columns: untyped, ?rows: untyped, ?range: untyped, ?sheet: String?, ?scope: (String | Symbol)?) -> void
560
+ def defined_name: (String name, ?untyped value, ?hidden: bool, ?columns: untyped, ?rows: untyped, ?range: untyped, ?sheet: String?, ?scope: (String | Symbol)?) -> void
625
561
 
626
- # Sets or gets the print area for the worksheet.
627
- #
628
- # @example Set print area range
629
- # sheet.print_area("A1:H50")
562
+ # Returns the print area for the worksheet, or nil if none.
630
563
  #
631
564
  # @example Get print area range
632
565
  # sheet.print_area #=> "A1:H50"
633
566
  #
634
- # @param range [String, nil] Cell range (e.g. "A1:H50").
635
- # @return [String, nil, void]
567
+ # @return [String, nil]
636
568
  # @api public
637
- # : (?String? range) -> (String | nil | void)
638
- def print_area: (?untyped range) -> untyped
569
+ # : () -> String?
570
+ attr_reader print_area: untyped
639
571
 
640
572
  # Sets the print area for the worksheet.
641
573
  #
@@ -647,20 +579,23 @@ module Xlsxrb
647
579
 
648
580
  # Sets or gets repeating print titles (rows and/or columns) for pagination.
649
581
  #
582
+ # When called with no arguments, returns the {Elements::PrintTitles} value object or nil.
583
+ # When called with arguments, updates print titles and returns nil.
584
+ #
650
585
  # @example Set repeating header rows
651
586
  # sheet.print_titles(rows: "1:2")
652
587
  #
653
588
  # @example Get repeating print titles
654
- # sheet.print_titles #=> { rows: "1:2", columns: nil, cols: nil }
589
+ # sheet.print_titles #=> #<Xlsxrb::Elements::PrintTitles ...>
655
590
  #
656
- # @param rows [String, nil] Repeating row range (e.g. "1:2").
657
591
  # @param rows [String, Integer, Range, nil] Repeating row range (e.g. "1:2" or 0-based 0..1).
658
592
  # @param columns [String, Integer, Symbol, Range, nil] Repeating column range (e.g. "A:B" or 0..1).
659
- # @param cols [String, Integer, Symbol, Range, nil] Deprecated alias for columns.
660
593
  # @return [Elements::PrintTitles, nil, void]
661
594
  # @api public
662
- # : (?rows: (String | Integer | Range[Integer])?, ?columns: (String | Integer | Symbol | Range[untyped])?, ?cols: (String | Integer | Symbol | Range[untyped])?) -> (Elements::PrintTitles | nil | void)
663
- def print_titles: (?rows: untyped, ?columns: untyped, ?cols: untyped) -> untyped
595
+ # : () -> Elements::PrintTitles?
596
+ # : (?rows: (String | Integer | Range[Integer])?, ?columns: (String | Integer | Symbol | Range[untyped])?) -> void
597
+ def print_titles: () -> Elements::PrintTitles?
598
+ | (?rows: (String | Integer | Range[Integer])?, ?columns: (String | Integer | Symbol | Range[untyped])?) -> void
664
599
 
665
600
  # Sets repeating print titles for the worksheet.
666
601
  #
@@ -702,101 +637,76 @@ module Xlsxrb
702
637
  # : (Integer | String first, ?(Integer | String)? last) -> void
703
638
  def repeat_columns: (Integer | String first, ?(Integer | String)? last) -> void
704
639
 
705
- # Configures or queries sheet-level protection with optional password hashing (<sheetProtection>).
640
+ # Sets or queries sheet-level protection with optional password hashing (<sheetProtection>).
706
641
  #
707
- # When called with no arguments, returns the sheet protection value object or hash.
642
+ # When called with no arguments, returns the {Elements::SheetProtection} value object or nil.
708
643
  # When called with keyword arguments, sets sheet protection and returns nil.
709
644
  #
710
645
  # @param opts [Hash] Protection options (e.g. password: "secret", select_locked_cells: true).
711
- # @return [Elements::SheetProtection, Hash<Symbol, untyped>, nil, void]
646
+ # @return [Elements::SheetProtection, nil, void]
712
647
  # @api public
713
- # : (**untyped opts) -> (untyped | void)
714
- def sheet_protection: (**untyped opts) -> untyped
648
+ # : () -> Elements::SheetProtection?
649
+ # : (**untyped opts) -> void
650
+ def sheet_protection: () -> Elements::SheetProtection?
651
+ | (**untyped opts) -> void
715
652
 
716
653
  # Sets or clears sheet protection configuration.
717
654
  #
718
655
  # @param opts [Elements::SheetProtection, Hash, Boolean, nil]
719
656
  # @return [void]
720
657
  # @api public
721
- # : (untyped opts) -> void
722
- def sheet_protection=: (untyped opts) -> void
723
-
724
- # @deprecated Use {#sheet_protection} instead.
725
- # : (**untyped opts) -> void
726
- def protect_sheet: (**untyped opts) -> void
658
+ # : (Elements::SheetProtection | Hash[Symbol, untyped] | bool | nil opts) -> void
659
+ def sheet_protection=: (Elements::SheetProtection | Hash[Symbol, untyped] | bool | nil opts) -> void
727
660
 
728
661
  # Inserts an embedded image from raw binary data.
729
662
  #
730
663
  # @param file_data [String] Binary image data.
731
664
  # @param ext [String] File extension ("png", "jpeg", etc.).
732
665
  # @param from_column [Integer, nil] Top-left starting column (0-based).
733
- # @param from_col [Integer, nil] Deprecated alias for from_column.
734
666
  # @param from_row [Integer] Top-left starting row (0-based).
735
667
  # @param to_column [Integer, nil] Bottom-right ending column (0-based).
736
- # @param to_col [Integer, nil] Deprecated alias for to_column.
737
668
  # @param to_row [Integer] Bottom-right ending row (0-based).
738
669
  # @param opts [Hash] Additional image anchoring options.
739
670
  # @return [void]
740
671
  # @api public
741
- # : (String file_data, ?ext: ::String, ?from_column: ::Integer?, ?from_col: ::Integer?, ?from_row: ::Integer, ?to_column: ::Integer?, ?to_col: ::Integer?, ?to_row: ::Integer, **untyped opts) -> void
742
- def image: (String file_data, ?ext: ::String, ?from_column: ::Integer?, ?from_col: ::Integer?, ?from_row: ::Integer, ?to_column: ::Integer?, ?to_col: ::Integer?, ?to_row: ::Integer, **untyped opts) -> void
672
+ # : (String file_data, ?ext: ::String, ?from_column: ::Integer?, ?from_row: ::Integer, ?to_column: ::Integer?, ?to_row: ::Integer, **untyped opts) -> void
673
+ def image: (String file_data, ?ext: ::String, ?from_column: ::Integer?, ?from_row: ::Integer, ?to_column: ::Integer?, ?to_row: ::Integer, **untyped opts) -> void
743
674
 
744
- # Configures the worksheet background image (<picture>).
745
- #
746
- # @example Set background image from binary data
747
- # sheet.background_image(png_bytes, ext: "png")
675
+ # Gets the worksheet background image (<picture>).
748
676
  #
749
- # @example Set background image from file path
750
- # sheet.background_image("path/to/background.png")
751
- #
752
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#background_image=} instead.
753
- # @param file_data [String, Hash, Elements::Image, nil] Image binary data, file path, or image options hash.
754
- # @param ext [String, nil] Image extension ("png", "jpeg", "jpg", "gif", etc.).
755
- # @param opts [Hash] Additional image options.
756
- # @return [Hash, nil]
677
+ # @return [Elements::BackgroundImage, nil]
757
678
  # @api public
758
- # : (?untyped file_data, ?ext: ::String?, **untyped opts) -> (Elements::BackgroundImage | Hash[Symbol, untyped] | nil)
759
- def background_image: (?untyped file_data, ?ext: ::String?, **untyped opts) -> (Elements::BackgroundImage | Hash[Symbol, untyped] | nil)
760
-
761
- # @deprecated Use {#background_image} instead. Will be removed in 0.2.0.
762
- alias background_picture background_image
763
-
764
- # @deprecated Use {#background_image} instead. Will be removed in 0.2.0.
765
- alias picture background_image
679
+ # : () -> Elements::BackgroundImage?
680
+ def background_image: () -> Elements::BackgroundImage?
766
681
 
682
+ # Sets the worksheet background image (<picture>).
683
+ #
684
+ # @param val [String, Hash, Elements::Image, nil] Image binary data, file path, or image options hash.
685
+ # @return [untyped]
686
+ # @api public
767
687
  # : (untyped val) -> untyped
768
688
  def background_image=: (untyped val) -> untyped
769
689
 
770
- # @deprecated Use {#background_image=} instead. Will be removed in 0.2.0.
771
- alias background_picture= background_image=
772
-
773
- # @deprecated Use {#background_image=} instead. Will be removed in 0.2.0.
774
- alias picture= background_image=
775
-
776
690
  # Inserts a drawing shape (e.g. rectangle, callout, arrow).
777
691
  #
778
692
  # @param preset [String] Shape preset name (e.g. "rect", "roundRect").
779
693
  # @param text [String, nil] Shape label text.
780
694
  # @param from_column [Integer, nil] Top-left column.
781
- # @param from_col [Integer, nil] Deprecated alias for from_column.
782
695
  # @param from_row [Integer] Top-left row.
783
696
  # @param to_column [Integer, nil] Bottom-right column.
784
- # @param to_col [Integer, nil] Deprecated alias for to_column.
785
697
  # @param to_row [Integer] Bottom-right row.
786
698
  # @param opts [Hash] Additional shape formatting options.
787
699
  # @return [void]
788
700
  # @api public
789
- # : (**untyped opts) -> void
790
- def shape: (**untyped opts) -> void
701
+ # : (?preset: String, ?text: String?, ?from_column: Integer?, ?from_row: Integer, ?to_column: Integer?, ?to_row: Integer, **untyped opts) -> void
702
+ def shape: (?preset: String, ?text: String?, ?from_column: Integer?, ?from_row: Integer, ?to_column: Integer?, ?to_row: Integer, **untyped opts) -> void
791
703
 
792
- # Gets or sets the sheet visibility state (:visible, :hidden, or :very_hidden).
704
+ # Gets the sheet visibility state (:visible, :hidden, or :very_hidden).
793
705
  #
794
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#state=} instead.
795
- # @param new_state [Symbol, nil] The new state.
796
706
  # @return [Symbol]
797
707
  # @api public
798
- # : (?Symbol? new_state) -> Symbol
799
- def state: (?Symbol? new_state) -> Symbol
708
+ # : Symbol
709
+ attr_reader state: untyped
800
710
 
801
711
  # Sets the sheet visibility state (:visible, :hidden, or :very_hidden).
802
712
  #
@@ -806,20 +716,12 @@ module Xlsxrb
806
716
  # : (Symbol | String new_state) -> Symbol
807
717
  def state=: (Symbol | String new_state) -> Symbol
808
718
 
809
- # Gets or sets the worksheet tab color.
719
+ # Gets the worksheet tab color.
810
720
  #
811
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#tab_color=} instead.
812
- # @overload tab_color()
813
- # Returns the current tab color specification.
814
- # @return [String, Hash, nil]
815
- # @overload tab_color(spec, **opts)
816
- # Sets the tab color using an RGB hex string or color options.
817
- # @param spec [String, Hash, Symbol, nil] RGB hex string (e.g. "FF0000"), theme/indexed hash, or nil.
818
- # @param opts [Hash] Color keyword arguments (e.g. theme: 1, tint: 0.5, indexed: 9, auto: true).
819
- # @return [String, Hash, nil]
721
+ # @return [String, Hash, nil]
820
722
  # @api public
821
- # : (?String | Symbol | Hash[Symbol, untyped] | nil spec, **untyped opts) -> (String | Hash[Symbol, untyped] | nil)
822
- def tab_color: (?String | Symbol | Hash[Symbol, untyped] | nil spec, **untyped opts) -> (String | Hash[Symbol, untyped] | nil)
723
+ # : () -> (String | Hash[Symbol, untyped] | nil)
724
+ def tab_color: () -> (String | Hash[Symbol, untyped] | nil)
823
725
 
824
726
  # Sets the tab color of this worksheet.
825
727
  #
@@ -831,25 +733,18 @@ module Xlsxrb
831
733
 
832
734
  # Sets a single sheet property.
833
735
  #
834
- # @param name [Symbol, String] Property name.
835
- # @param value [Object] Property value.
836
- # @return [void]
837
- # @api public
838
- # : (Symbol | String name, untyped value) -> void
839
- def sheet_property: (Symbol | String name, untyped value) -> void
840
-
841
736
  # Configures or queries sheet properties (<sheetPr>).
842
737
  #
843
738
  # When called with no arguments, returns the {Elements::SheetProperties} value object.
844
- # When called with arguments or keyword options, configures properties and returns nil.
739
+ # When called with keyword options, configures properties and returns nil.
845
740
  #
846
- # @param name [Symbol, String, Hash, Elements::MetadataRecord, nil] Property name or hash/record of properties.
847
- # @param value [Object, nil] Property value when name is provided.
848
741
  # @param opts [Hash] Additional sheet properties.
849
742
  # @return [Elements::SheetProperties, void]
850
743
  # @api public
851
- # : (?Symbol | String | Hash[Symbol, untyped] | Elements::MetadataRecord | nil name, ?untyped value, **untyped opts) -> (Elements::SheetProperties | void)
852
- def sheet_properties: (?untyped name, ?untyped value, **untyped opts) -> untyped
744
+ # : () -> Elements::SheetProperties
745
+ # : (**untyped opts) -> void
746
+ def sheet_properties: () -> Elements::SheetProperties
747
+ | (**untyped opts) -> void
853
748
 
854
749
  # Replaces worksheet properties with the given hash or {Elements::SheetProperties} object.
855
750
  #
@@ -862,15 +757,15 @@ module Xlsxrb
862
757
  # Configures or queries sheet view display properties (<sheetView>).
863
758
  #
864
759
  # When called with no arguments, returns the {Elements::SheetView} value object.
865
- # When called with arguments or keyword options, configures view properties and returns nil.
760
+ # When called with keyword options, configures view properties and returns nil.
866
761
  #
867
- # @param name [Symbol, String, Hash, Elements::MetadataRecord, nil] View property name or hash/record of properties.
868
- # @param value [Object, nil] View property value when name is provided.
869
762
  # @param opts [Hash] Additional view properties.
870
763
  # @return [Elements::SheetView, void]
871
764
  # @api public
872
- # : (?Symbol | String | Hash[Symbol, untyped] | Elements::MetadataRecord | nil name, ?untyped value, **untyped opts) -> (Elements::SheetView | void)
873
- def sheet_view: (?untyped name, ?untyped value, **untyped opts) -> untyped
765
+ # : () -> Elements::SheetView
766
+ # : (**untyped opts) -> void
767
+ def sheet_view: () -> Elements::SheetView
768
+ | (**untyped opts) -> void
874
769
 
875
770
  # Replaces sheet view properties with the given hash or {Elements::SheetView} object.
876
771
  #
@@ -883,21 +778,18 @@ module Xlsxrb
883
778
  # Configures or queries sheet format properties (<sheetFormatPr>).
884
779
  #
885
780
  # When called with no arguments, returns the {Elements::SheetFormat} value object.
886
- # When called with arguments or keyword options, configures format properties and returns nil.
781
+ # When called with keyword options, configures format properties and returns nil.
887
782
  #
888
783
  # @example Using keyword arguments
889
784
  # sheet.sheet_format(default_row_height: 24, default_column_width: 15)
890
785
  #
891
- # @example Using property name and value
892
- # sheet.sheet_format(:default_row_height, 24)
893
- #
894
- # @param name [Symbol, String, Hash, Elements::MetadataRecord, nil] Property name or hash/record of properties.
895
- # @param value [Object, nil] Property value when name is provided.
896
786
  # @param opts [Hash] Keyword arguments for sheet format properties.
897
787
  # @return [Elements::SheetFormat, void]
898
788
  # @api public
899
- # : (?Symbol | String | Hash[Symbol, untyped] | Elements::MetadataRecord | nil name, ?untyped value, **untyped opts) -> (Elements::SheetFormat | void)
900
- def sheet_format: (?untyped name, ?untyped value, **untyped opts) -> untyped
789
+ # : () -> Elements::SheetFormat
790
+ # : (**untyped opts) -> void
791
+ def sheet_format: () -> Elements::SheetFormat
792
+ | (**untyped opts) -> void
901
793
 
902
794
  # Replaces sheet format properties with the given hash or {Elements::SheetFormat} object.
903
795
  #
@@ -915,10 +807,6 @@ module Xlsxrb
915
807
  # : (Integer row_index) -> void
916
808
  def row_break: (Integer row_index) -> void
917
809
 
918
- # @deprecated Use {#row_break} instead.
919
- # : (Integer row_num) -> void
920
- def page_break_row: (Integer row_num) -> void
921
-
922
810
  # Inserts a vertical page break after the specified column.
923
811
  #
924
812
  # @param col [Integer, String, Symbol] Column index (0-based) or letter ("B", :B).
@@ -927,10 +815,6 @@ module Xlsxrb
927
815
  # : (Integer | String | Symbol col) -> void
928
816
  def column_break: (Integer | String | Symbol col) -> void
929
817
 
930
- # @deprecated Use {#column_break} instead.
931
- # : (Integer | String | Symbol col_index) -> void
932
- def page_break_col: (Integer | String | Symbol col_index) -> void
933
-
934
818
  # Adds a protected range to the worksheet.
935
819
  #
936
820
  # @param name [String] Name of the protected range.
@@ -942,9 +826,6 @@ module Xlsxrb
942
826
  # : (String name, String sqref, ?password: String?, **untyped opts) -> void
943
827
  def protected_range: (String name, String sqref, ?password: String?, **untyped opts) -> void
944
828
 
945
- # @deprecated Use {#protected_range} instead. Will be removed in 0.2.0.
946
- alias add_protected_range protected_range
947
-
948
829
  # Adds a cell watch to the worksheet.
949
830
  #
950
831
  # @param ref [String] Cell reference (e.g. "A1").
@@ -953,9 +834,6 @@ module Xlsxrb
953
834
  # : (String ref) -> void
954
835
  def cell_watch: (String ref) -> void
955
836
 
956
- # @deprecated Use {#cell_watch} instead. Will be removed in 0.2.0.
957
- alias add_cell_watch cell_watch
958
-
959
837
  # Adds an ignored error entry for the worksheet.
960
838
  #
961
839
  # @param sqref [String] Cell range reference (e.g. "A1" or "A1:B10").
@@ -965,40 +843,19 @@ module Xlsxrb
965
843
  # : (String sqref, ?eval_error: bool, ?two_digit_text_year: bool, ?number_stored_as_text: bool, ?formula: bool, ?formula_range: bool, ?unlocked_formula: bool, ?empty_cell_reference: bool, ?list_data_validation: bool, ?calculated_column: bool) -> void
966
844
  def ignored_error: (String sqref, ?eval_error: bool, ?two_digit_text_year: bool, ?number_stored_as_text: bool, ?formula: bool, ?formula_range: bool, ?unlocked_formula: bool, ?empty_cell_reference: bool, ?list_data_validation: bool, ?calculated_column: bool) -> void
967
845
 
968
- # @deprecated Use {#ignored_error} instead. Will be removed in 0.2.0.
969
- # : (String sqref, ?eval_error: bool, ?two_digit_text_year: bool, ?number_stored_as_text: bool, ?formula: bool, ?formula_range: bool, ?unlocked_formula: bool, ?empty_cell_reference: bool, ?list_data_validation: bool, ?calculated_column: bool) -> void
970
- def ignore_error: (String sqref, ?eval_error: bool, ?two_digit_text_year: bool, ?number_stored_as_text: bool, ?formula: bool, ?formula_range: bool, ?unlocked_formula: bool, ?empty_cell_reference: bool, ?list_data_validation: bool, ?calculated_column: bool) -> void
971
-
972
- # @deprecated Use {#ignored_error} instead. Will be removed in 0.2.0.
973
- # : (String sqref, ?eval_error: bool, ?two_digit_text_year: bool, ?number_stored_as_text: bool, ?formula: bool, ?formula_range: bool, ?unlocked_formula: bool, ?empty_cell_reference: bool, ?list_data_validation: bool, ?calculated_column: bool) -> void
974
- def add_ignored_error: (String sqref, ?eval_error: bool, ?two_digit_text_year: bool, ?number_stored_as_text: bool, ?formula: bool, ?formula_range: bool, ?unlocked_formula: bool, ?empty_cell_reference: bool, ?list_data_validation: bool, ?calculated_column: bool) -> void
975
-
976
846
  # Returns ignored error rules configured for this worksheet.
977
847
  #
978
- # @return [Array<Hash[Symbol, untyped]>]
848
+ # @return [Array<Elements::IgnoredError>]
979
849
  # @api public
980
- # : () -> Array[Hash[Symbol, untyped]]
981
- def ignored_errors: () -> Array[Hash[Symbol, untyped]]
850
+ # : () -> Array[Elements::IgnoredError]
851
+ def ignored_errors: () -> Array[Elements::IgnoredError]
982
852
 
983
- # Gets or sets phonetic (furigana) guide properties for the worksheet.
853
+ # Gets phonetic (furigana) guide properties for the sheet.
984
854
  #
985
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#phonetic_properties=} instead.
986
- # @overload phonetic_properties()
987
- # Returns the current phonetic properties.
988
- # @return [Hash, nil]
989
- # @overload phonetic_properties(props = nil, font_id: nil, type: nil, alignment: nil)
990
- # Sets phonetic properties.
991
- # @param spec [Hash, Integer, nil]
992
- # @param font_id [Integer, nil]
993
- # @param type [Symbol, String, nil]
994
- # @param alignment [Symbol, String, nil]
995
- # @return [Hash, nil]
855
+ # @return [Elements::PhoneticProperties, nil]
996
856
  # @api public
997
- # : (?untyped spec, ?font_id: Integer?, ?type: (Symbol | String)?, ?alignment: (Symbol | String)?, **untyped opts) -> (Elements::PhoneticProperties | Hash[Symbol, untyped] | nil)
998
- def phonetic_properties: (?untyped spec, ?font_id: Integer?, ?type: (Symbol | String)?, ?alignment: (Symbol | String)?, **untyped opts) -> (Elements::PhoneticProperties | Hash[Symbol, untyped] | nil)
999
-
1000
- # @deprecated Use {#phonetic_properties} instead. Will be removed in 0.2.0.
1001
- alias phonetic_pr phonetic_properties
857
+ # : () -> Elements::PhoneticProperties?
858
+ def phonetic_properties: () -> Elements::PhoneticProperties?
1002
859
 
1003
860
  # Sets phonetic (furigana) guide properties for the sheet.
1004
861
  #
@@ -1008,9 +865,6 @@ module Xlsxrb
1008
865
  # : (Hash[Symbol, untyped] | Integer | nil spec) -> (Hash[Symbol, untyped] | Integer | nil)
1009
866
  def phonetic_properties=: (Hash[Symbol, untyped] | Integer | nil spec) -> (Hash[Symbol, untyped] | Integer | nil)
1010
867
 
1011
- # @deprecated Use {#phonetic_properties=} instead. Will be removed in 0.2.0.
1012
- alias phonetic_pr= phonetic_properties=
1013
-
1014
868
  # Normalizes phonetic properties to OOXML schema values.
1015
869
  #
1016
870
  # @param props [Hash, nil]
@@ -1019,14 +873,12 @@ module Xlsxrb
1019
873
  # : (Hash[untyped, untyped]? props) -> Hash[Symbol, untyped]?
1020
874
  def self.normalize_phonetic_properties: (Hash[untyped, untyped]? props) -> Hash[Symbol, untyped]?
1021
875
 
1022
- # Sets or gets the internal code name of the worksheet.
876
+ # Gets the internal code name of the worksheet.
1023
877
  #
1024
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#code_name=} instead.
1025
- # @param val [String, Symbol, nil] The code name.
1026
878
  # @return [String, nil]
1027
879
  # @api public
1028
- # : (?String | Symbol | nil val) -> String?
1029
- def code_name: (?String | Symbol | nil val) -> String?
880
+ # : () -> String?
881
+ def code_name: () -> String?
1030
882
 
1031
883
  # Sets the internal code name of the worksheet.
1032
884
  #
@@ -1036,18 +888,12 @@ module Xlsxrb
1036
888
  # : (String | Symbol | nil val) -> String?
1037
889
  def code_name=: (String | Symbol | nil val) -> String?
1038
890
 
1039
- # Configures worksheet calculation properties (<sheetCalcPr>).
1040
- #
1041
- # @example Instruct Excel to recalculate formulas when loading sheet
1042
- # sheet.sheet_calc_properties = { full_calc_on_load: true }
891
+ # Gets worksheet calculation properties (<sheetCalcPr>).
1043
892
  #
1044
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#sheet_calc_properties=} instead.
1045
- # @param spec [Hash, nil] Calculation properties hash.
1046
- # @param full_calc_on_load [Boolean, nil] Whether to recalculate when loading.
1047
- # @return [Hash, nil]
893
+ # @return [Elements::SheetCalcProperties, nil]
1048
894
  # @api public
1049
- # : (?untyped spec, ?full_calc_on_load: bool?, **untyped opts) -> (Elements::SheetCalcProperties | Hash[Symbol, untyped] | nil)
1050
- def sheet_calc_properties: (?untyped spec, ?full_calc_on_load: bool?, **untyped opts) -> (Elements::SheetCalcProperties | Hash[Symbol, untyped] | nil)
895
+ # : () -> Elements::SheetCalcProperties?
896
+ def sheet_calc_properties: () -> Elements::SheetCalcProperties?
1051
897
 
1052
898
  # Sets worksheet calculation properties (<sheetCalcPr>).
1053
899
  #
@@ -1057,41 +903,632 @@ module Xlsxrb
1057
903
  # : (Hash[Symbol, untyped]? spec) -> Hash[Symbol, untyped]?
1058
904
  def sheet_calc_properties=: (Hash[Symbol, untyped]? spec) -> Hash[Symbol, untyped]?
1059
905
 
1060
- # @deprecated Use {#sheet_calc_properties} instead. Will be removed in 0.2.0.
1061
- # : (?Hash[Symbol, untyped]? spec, ?full_calc_on_load: bool?, **untyped opts) -> (Elements::SheetCalcProperties | Hash[Symbol, untyped] | nil)
1062
- def sheet_calc_pr: (?Hash[Symbol, untyped]? spec, ?full_calc_on_load: bool?, **untyped opts) -> (Elements::SheetCalcProperties | Hash[Symbol, untyped] | nil)
1063
-
1064
- # @deprecated Use {#sheet_calc_properties} instead. Will be removed in 0.2.0.
1065
- # : (?Hash[Symbol, untyped]? spec, ?full_calc_on_load: bool?, **untyped opts) -> (Elements::SheetCalcProperties | Hash[Symbol, untyped] | nil)
1066
- def calc_pr: (?Hash[Symbol, untyped]? spec, ?full_calc_on_load: bool?, **untyped opts) -> (Elements::SheetCalcProperties | Hash[Symbol, untyped] | nil)
1067
-
1068
- # @deprecated Use {#sheet_calc_properties=} instead. Will be removed in 0.2.0.
1069
- # : (Hash[Symbol, untyped]? spec) -> Hash[Symbol, untyped]?
1070
- def sheet_calc_pr=: (Hash[Symbol, untyped]? spec) -> Hash[Symbol, untyped]?
1071
-
1072
- # @deprecated Use {#sheet_calc_properties=} instead. Will be removed in 0.2.0.
1073
- # : (Hash[Symbol, untyped]? spec) -> Hash[Symbol, untyped]?
1074
- def calc_pr=: (Hash[Symbol, untyped]? spec) -> Hash[Symbol, untyped]?
1075
-
1076
- # Builds and returns the in-memory {Elements::Worksheet}.
906
+ # Builds and returns the in-memory {Elements::Worksheet}. Cells carry their style
907
+ # names; {WorkbookBuilder#build} resolves them to style indexes.
1077
908
  #
909
+ # @deprecated Read the sheet from the workbook that {Xlsxrb.build} returns. This
910
+ # method will be private in version 0.3.0.
1078
911
  # @return [Elements::Worksheet]
1079
912
  # @api public
1080
913
  # : () -> Elements::Worksheet
1081
914
  def build: () -> Elements::Worksheet
1082
915
 
916
+ # Ends the sheet block: rows can no longer be added, and the sheet's state is taken
917
+ # as it is now.
918
+ #
919
+ # @return [Snapshot]
920
+ # @api private
921
+ # : () -> Snapshot
922
+ def close: () -> Snapshot
923
+
1083
924
  # Internal: returns styles for later processing by WorkbookBuilder
1084
925
  # @return [Hash{String => StyleBuilder}]
1085
926
  # : Hash[String, StyleBuilder]
1086
927
  attr_reader styles: untyped
928
+
929
+ private
930
+
931
+ # : () -> void
932
+ def check_open!: () -> void
933
+
934
+ # The style that a Date or Time cell without a cell style inherits, to give the cell
935
+ # in its place: the row style, or the sheet's column style in a row without one. The
936
+ # workbook then gives the cell a variant of that style with the default date or
937
+ # date-time format, so it keeps the style's font, fill, and border, as StreamWriter
938
+ # does. Returns nil for a style index or for no style.
939
+ # : (untyped row_style, Integer column_index) -> (String | Symbol | Hash[Symbol, untyped])?
940
+ def inherited_date_style: (untyped row_style, Integer column_index) -> (String | Symbol | Hash[Symbol, untyped])?
941
+
942
+ # Returns the number format code of the sheet style named +style_name+, if it has one.
943
+ # : (untyped style_name) -> String?
944
+ def format_code_of: (untyped style_name) -> String?
945
+
946
+ # : (Array[PendingRow] rows) -> Snapshot
947
+ def snapshot: (Array[PendingRow] rows) -> Snapshot
948
+ end
949
+
950
+ class WorksheetBuilder
951
+ # A row as given to {WorksheetBuilder#row}, kept until the workbook resolves its
952
+ # style names, so that its cells are created once.
953
+ #
954
+ # @api private
955
+ class PendingRow
956
+ # : Integer
957
+ attr_reader index: untyped
958
+
959
+ # Cell values; Hashes with :formula and rich text runs are already converted.
960
+ # : Array[untyped]
961
+ attr_reader values: untyped
962
+
963
+ # Style of each cell: a name, an index, or nil; or one of these for every cell.
964
+ # : untyped
965
+ attr_reader styles: untyped
966
+
967
+ # Number format codes of the cells' sheet styles: an Array, one code, or nil.
968
+ # : untyped
969
+ attr_reader format_codes: untyped
970
+
971
+ # Number of columns the row spans, including styled cells past the last value.
972
+ # : Integer
973
+ attr_reader width: untyped
974
+
975
+ # : (Float | Integer)?
976
+ attr_reader height: untyped
977
+
978
+ # : untyped
979
+ attr_reader hidden: untyped
980
+
981
+ # : bool
982
+ attr_reader custom_height: untyped
983
+
984
+ # : untyped
985
+ attr_reader collapsed: untyped
986
+
987
+ # : Integer?
988
+ attr_reader outline_level: untyped
989
+
990
+ # The row style as given: a name, an index, an inline Hash, or nil.
991
+ # : untyped
992
+ attr_reader style: untyped
993
+
994
+ # The style log clock when the row was added: its styles are the definitions made before.
995
+ # : Integer
996
+ attr_reader clock: untyped
997
+
998
+ # : (Integer index, Array[untyped] values, untyped styles, untyped format_codes, Integer width, (Float | Integer)? height, untyped hidden, bool custom_height, untyped collapsed, Integer? outline_level, untyped style, Integer clock) -> void
999
+ def initialize: (Integer index, Array[untyped] values, untyped styles, untyped format_codes, Integer width, (Float | Integer)? height, untyped hidden, bool custom_height, untyped collapsed, Integer? outline_level, untyped style, Integer clock) -> void
1000
+
1001
+ # : (hidden: untyped, collapsed: untyped, outline_level: Integer?) -> PendingRow
1002
+ def with_outline: (hidden: untyped, collapsed: untyped, outline_level: Integer?) -> PendingRow
1003
+
1004
+ # Returns whether every cell of the row is within Excel's row and column limits.
1005
+ # : () -> bool
1006
+ def within_limits?: () -> bool
1007
+
1008
+ # Returns the row's cells with their style names, as {WorksheetBuilder#build} gives them.
1009
+ # : () -> Array[Elements::Cell]
1010
+ def named_cells: () -> Array[Elements::Cell]
1011
+
1012
+ # : (Array[Elements::Cell] cells, untyped style_index) -> Elements::Row
1013
+ def to_row: (Array[Elements::Cell] cells, untyped style_index) -> Elements::Row
1014
+
1015
+ # Creates a cell for +value+ with +style+ (a name, an index, or nil).
1016
+ # +valid_coordinates+ tells whether the cell is within Excel's limits; a valid cell
1017
+ # has no errors, so it skips the checks of Cell.new.
1018
+ # : (Integer row_index, Integer column_index, untyped value, untyped style, String? format_code, bool valid_coordinates) -> Elements::Cell
1019
+ def self.cell: (Integer row_index, Integer column_index, untyped value, untyped style, String? format_code, bool valid_coordinates) -> Elements::Cell
1020
+ end
1021
+
1022
+ # The state of a sheet when its block ended: the worksheet without its rows, the
1023
+ # pending rows, and the hyperlinks and comments to attach to their cells.
1024
+ #
1025
+ # @api private
1026
+ class Snapshot
1027
+ # The worksheet with every part except its rows.
1028
+ # : Elements::Worksheet
1029
+ attr_reader frame: untyped
1030
+
1031
+ # : Array[PendingRow]
1032
+ attr_reader rows: untyped
1033
+
1034
+ # The style log clock when each column's style was set.
1035
+ # : Hash[Integer, Integer]
1036
+ attr_reader column_style_clocks: untyped
1037
+
1038
+ # : (Elements::Worksheet frame, Array[PendingRow] rows, Hash[String, untyped] hyperlinks, Hash[String, untyped] comments, Hash[String, Array[untyped]] threaded_comments, Hash[Integer, Integer] column_style_clocks) -> void
1039
+ def initialize: (Elements::Worksheet frame, Array[PendingRow] rows, Hash[String, untyped] hyperlinks, Hash[String, untyped] comments, Hash[String, Array[untyped]] threaded_comments, Hash[Integer, Integer] column_style_clocks) -> void
1040
+
1041
+ # Returns the worksheet with +rows+, or with the rows' named cells by default.
1042
+ # : (?Array[Elements::Row]? rows, ?Array[Elements::Column]? columns) -> Elements::Worksheet
1043
+ def worksheet: (?Array[Elements::Row]? rows, ?Array[Elements::Column]? columns) -> Elements::Worksheet
1044
+
1045
+ # Attaches the sheet's hyperlinks and comments to the cells they refer to.
1046
+ # : (Array[Elements::Cell] cells) -> Array[Elements::Cell]
1047
+ def attach_links: (Array[Elements::Cell] cells) -> Array[Elements::Cell]
1048
+ end
1049
+ end
1050
+
1051
+ # Stands in for the {Elements::Worksheet} of a sheet defined in {Xlsxrb.build}, as
1052
+ # returned by {WorkbookBuilder#sheet}. It answers the same methods with the same
1053
+ # results. The worksheet is built the first time one of them is called, or when the
1054
+ # object is frozen (as Ractor.make_shareable does), so a sheet whose return value is
1055
+ # never used costs nothing.
1056
+ #
1057
+ # @deprecated Read the sheet from the workbook that {Xlsxrb.build} returns. In version
1058
+ # 0.3.0, {WorkbookBuilder#sheet} will return the sheet's {WorksheetBuilder}, and
1059
+ # {WorkbookBuilder#[]} will return the {WorksheetBuilder} of an existing sheet.
1060
+ # @api public
1061
+ class DeferredWorksheet
1062
+ DEPRECATION_MESSAGE: ::String
1063
+
1064
+ # : (WorksheetBuilder::Snapshot snapshot) -> void
1065
+ def initialize: (WorksheetBuilder::Snapshot snapshot) -> void
1066
+
1067
+ # Returns the worksheet, building it on first use.
1068
+ #
1069
+ # @return [Elements::Worksheet]
1070
+ # @api public
1071
+ # : () -> Elements::Worksheet
1072
+ def worksheet: () -> Elements::Worksheet
1073
+
1074
+ # : (untyped other) -> bool
1075
+ def ==: (untyped other) -> bool
1076
+
1077
+ # : (untyped other) -> bool
1078
+ def eql?: (untyped other) -> bool
1079
+
1080
+ # : () -> Integer
1081
+ def hash: () -> Integer
1082
+
1083
+ # : () -> String
1084
+ def inspect: () -> String
1085
+
1086
+ # : () -> String
1087
+ def to_s: () -> String
1088
+
1089
+ # : (untyped printer) -> untyped
1090
+ def pretty_print: (untyped printer) -> untyped
1091
+
1092
+ # Builds the worksheet before freezing, so that a frozen stand-in still answers.
1093
+ # : () -> self
1094
+ def freeze: () -> self
1095
+
1096
+ # : (String | Symbol | Integer ref_or_row, ?Integer | String | Symbol | nil col) -> Elements::Cell?
1097
+ def []: (String | Symbol | Integer ref_or_row, ?Integer | String | Symbol | nil col) -> Elements::Cell?
1098
+
1099
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1100
+ def all?: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1101
+
1102
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1103
+ def any?: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1104
+
1105
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1106
+ def auto_filter: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1107
+
1108
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1109
+ def background_image: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1110
+
1111
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1112
+ def cell_watches: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1113
+
1114
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1115
+ def cells: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1116
+
1117
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1118
+ def chain: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1119
+
1120
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1121
+ def charts: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1122
+
1123
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1124
+ def chunk: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1125
+
1126
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1127
+ def chunk_while: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1128
+
1129
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1130
+ def code_name: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1131
+
1132
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1133
+ def collect: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1134
+
1135
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1136
+ def collect_concat: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1137
+
1138
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1139
+ def column_breaks: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1140
+
1141
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1142
+ def column_range: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1143
+
1144
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1145
+ def columns: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1146
+
1147
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1148
+ def comment: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1149
+
1150
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1151
+ def comments: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1152
+
1153
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1154
+ def comments_by_ref: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1155
+
1156
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1157
+ def compact: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1158
+
1159
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1160
+ def conditional_formats: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1161
+
1162
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1163
+ def count: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1164
+
1165
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1166
+ def cycle: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1167
+
1168
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1169
+ def data_validations: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1170
+
1171
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1172
+ def date1904?: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1173
+
1174
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1175
+ def deconstruct: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1176
+
1177
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1178
+ def deconstruct_keys: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1179
+
1180
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1181
+ def detect: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1182
+
1183
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1184
+ def dimension: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1185
+
1186
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1187
+ def dimension_bounds: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1188
+
1189
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1190
+ def drop: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1191
+
1192
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1193
+ def drop_while: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1194
+
1195
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1196
+ def each: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1197
+
1198
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1199
+ def each_cell: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1200
+
1201
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1202
+ def each_cons: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1203
+
1204
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1205
+ def each_entry: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1206
+
1207
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1208
+ def each_row: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1209
+
1210
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1211
+ def each_row_values: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1212
+
1213
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1214
+ def each_slice: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1215
+
1216
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1217
+ def each_with_index: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1218
+
1219
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1220
+ def each_with_object: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1221
+
1222
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1223
+ def entries: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1224
+
1225
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1226
+ def errors: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1227
+
1228
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1229
+ def filter: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1230
+
1231
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1232
+ def filter_columns: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1233
+
1234
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1235
+ def filter_map: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1236
+
1237
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1238
+ def find: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1239
+
1240
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1241
+ def find_all: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1242
+
1243
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1244
+ def find_index: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1245
+
1246
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1247
+ def first: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1248
+
1249
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1250
+ def first_row: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1251
+
1252
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1253
+ def fit_to_page?: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1254
+
1255
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1256
+ def flat_map: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1257
+
1258
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1259
+ def formatted_value: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1260
+
1261
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1262
+ def freeze_pane: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1263
+
1264
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1265
+ def full_calc_on_load?: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1266
+
1267
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1268
+ def grep: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1269
+
1270
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1271
+ def grep_v: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1272
+
1273
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1274
+ def group_by: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1275
+
1276
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1277
+ def header_footer: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1278
+
1279
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1280
+ def header_footer_images: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1281
+
1282
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1283
+ def hidden?: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1284
+
1285
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1286
+ def hyperlink: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1287
+
1288
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1289
+ def hyperlinks: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1290
+
1291
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1292
+ def ignored_errors: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1293
+
1294
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1295
+ def images: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1296
+
1297
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1298
+ def images_at: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1299
+
1300
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1301
+ def include?: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1302
+
1303
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1304
+ def inject: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1305
+
1306
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1307
+ def last_row: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1308
+
1309
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1310
+ def lazy: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1311
+
1312
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1313
+ def map: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1314
+
1315
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1316
+ def max: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1317
+
1318
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1319
+ def max_by: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1320
+
1321
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1322
+ def member?: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1323
+
1324
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1325
+ def merged_cells: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1326
+
1327
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1328
+ def min: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1329
+
1330
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1331
+ def min_by: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1332
+
1333
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1334
+ def minmax: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1335
+
1336
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1337
+ def minmax_by: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1338
+
1339
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1340
+ def name: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1341
+
1342
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1343
+ def none?: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1344
+
1345
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1346
+ def one?: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1347
+
1348
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1349
+ def outline_properties: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1350
+
1351
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1352
+ def pad_empty_cells?: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1353
+
1354
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1355
+ def pad_empty_rows?: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1356
+
1357
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1358
+ def page_margins: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1359
+
1360
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1361
+ def page_setup: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1362
+
1363
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1364
+ def partition: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1365
+
1366
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1367
+ def phonetic_properties: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1368
+
1369
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1370
+ def pivot_tables: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1371
+
1372
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1373
+ def print_area: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1374
+
1375
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1376
+ def print_options: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1377
+
1378
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1379
+ def print_titles: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1380
+
1381
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1382
+ def protected_ranges: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1383
+
1384
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1385
+ def reduce: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1386
+
1387
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1388
+ def reject: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1389
+
1390
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1391
+ def reverse_each: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1392
+
1393
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1394
+ def row_at: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1395
+
1396
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1397
+ def row_breaks: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1398
+
1399
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1400
+ def row_range: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1401
+
1402
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1403
+ def rows: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1404
+
1405
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1406
+ def select: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1407
+
1408
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1409
+ def selection: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1410
+
1411
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1412
+ def shapes: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1413
+
1414
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1415
+ def sheet_calc_properties: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1416
+
1417
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1418
+ def sheet_format: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1419
+
1420
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1421
+ def sheet_properties: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1422
+
1423
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1424
+ def sheet_protection: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1425
+
1426
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1427
+ def sheet_view: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1428
+
1429
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1430
+ def slice_after: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1431
+
1432
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1433
+ def slice_before: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1434
+
1435
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1436
+ def slice_when: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1437
+
1438
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1439
+ def sort: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1440
+
1441
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1442
+ def sort_by: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1443
+
1444
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1445
+ def sort_state: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1446
+
1447
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1448
+ def sparkline_groups: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1449
+
1450
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1451
+ def split_pane: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1452
+
1453
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1454
+ def state: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1455
+
1456
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1457
+ def styles: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1458
+
1459
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1460
+ def sum: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1461
+
1462
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1463
+ def tab_color: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1464
+
1465
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1466
+ def tables: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1467
+
1468
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1469
+ def take: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1470
+
1471
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1472
+ def take_while: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1473
+
1474
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1475
+ def tally: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1476
+
1477
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1478
+ def threaded_comment: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1479
+
1480
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1481
+ def threaded_comments: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1482
+
1483
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1484
+ def threaded_comments_at: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1485
+
1486
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1487
+ def threaded_comments_by_ref: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1488
+
1489
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1490
+ def to_a: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1491
+
1492
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1493
+ def to_h: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1494
+
1495
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1496
+ def to_set: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1497
+
1498
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1499
+ def trim_empty_rows?: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1500
+
1501
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1502
+ def uniq: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1503
+
1504
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1505
+ def unmapped_data: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1506
+
1507
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1508
+ def valid?: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1509
+
1510
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1511
+ def very_hidden?: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1512
+
1513
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1514
+ def visible?: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1515
+
1516
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1517
+ def with: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1518
+
1519
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1520
+ def zip: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1521
+
1522
+ # Returns the worksheet, building it on first use with a deprecation warning that
1523
+ # points at the caller of the public method.
1524
+ # : () -> Elements::Worksheet
1525
+ def built_worksheet: () -> Elements::Worksheet
1087
1526
  end
1088
1527
 
1089
1528
  # Builder context for configuring an Excel Table (ListObject) in block form.
1090
1529
  #
1091
1530
  # @api public
1092
1531
  class TableBuilder
1093
- OMITTED: untyped
1094
-
1095
1532
  # @param ref [String, nil] Table range (e.g. "A1:D10").
1096
1533
  # @param columns [Array, nil] Column header names or definition hashes.
1097
1534
  # @param name [String, nil] Table name identifier.
@@ -1101,24 +1538,18 @@ module Xlsxrb
1101
1538
  # : (?String? ref, ?columns: untyped, ?name: String?, ?display_name: String?, ?style: String?, **untyped opts) -> void
1102
1539
  def initialize: (?String? ref, ?columns: untyped, ?name: String?, ?display_name: String?, ?style: String?, **untyped opts) -> void
1103
1540
 
1104
- # @deprecated Use explicit getter methods instead.
1105
- # : (untyped key) -> untyped
1106
- def []: (untyped key) -> untyped
1107
-
1108
- # @deprecated Use explicit setter methods instead.
1109
- # : (untyped key, untyped value) -> untyped
1110
- def []=: (untyped key, untyped value) -> untyped
1111
-
1112
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#ref=} instead.
1113
- # : (?String? val) -> String?
1114
- def ref: (?String? val) -> String?
1541
+ # : () -> String?
1542
+ def ref: () -> String?
1115
1543
 
1116
1544
  # : (String val) -> String
1117
1545
  def ref=: (String val) -> String
1118
1546
 
1119
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#columns=} instead.
1120
- # : (*untyped cols) -> untyped
1121
- def columns: (*untyped cols) -> untyped
1547
+ # Returns column definitions for the table.
1548
+ #
1549
+ # @return [Array<Elements::TableColumn>]
1550
+ # @api public
1551
+ # : () -> Array[Elements::TableColumn]
1552
+ def columns: () -> Array[Elements::TableColumn]
1122
1553
 
1123
1554
  # : (untyped cols) -> untyped
1124
1555
  def columns=: (untyped cols) -> untyped
@@ -1131,9 +1562,6 @@ module Xlsxrb
1131
1562
  # : (String | Symbol | Hash[Symbol, untyped] col, **untyped opts) -> void
1132
1563
  def column: (String | Symbol | Hash[Symbol, untyped] col, **untyped opts) -> void
1133
1564
 
1134
- # @deprecated Use {#column} instead. Will be removed in 0.2.0.
1135
- alias add_column column
1136
-
1137
1565
  # Appends a calculated column with formula and options.
1138
1566
  #
1139
1567
  # @param name [String, Symbol] The column name.
@@ -1143,90 +1571,65 @@ module Xlsxrb
1143
1571
  # : (String | Symbol name, String formula, **untyped opts) -> void
1144
1572
  def calculated_column: (String | Symbol name, String formula, **untyped opts) -> void
1145
1573
 
1146
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#name=} instead.
1147
- # : (?String? val) -> String?
1148
- def name: (?String? val) -> String?
1574
+ # : () -> String?
1575
+ def name: () -> String?
1149
1576
 
1150
1577
  # : (String val) -> String
1151
1578
  def name=: (String val) -> String
1152
1579
 
1153
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#display_name=} instead.
1154
- # : (?String? val) -> String?
1155
- def display_name: (?String? val) -> String?
1580
+ # : () -> String?
1581
+ def display_name: () -> String?
1156
1582
 
1157
1583
  # : (String val) -> String
1158
1584
  def display_name=: (String val) -> String
1159
1585
 
1160
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#style=} instead.
1161
- # : (?String? val) -> String?
1162
- def style: (?String? val) -> String?
1586
+ # : () -> String?
1587
+ def style: () -> String?
1163
1588
 
1164
1589
  # : (String val) -> String
1165
1590
  def style=: (String val) -> String
1166
1591
 
1167
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#show_row_stripes=} instead.
1168
- # : (?bool? val) -> bool?
1169
- def show_row_stripes: (?bool? val) -> bool?
1592
+ # : () -> bool
1593
+ def show_row_stripes?: () -> bool
1170
1594
 
1171
1595
  # : (bool val) -> bool
1172
1596
  def show_row_stripes=: (bool val) -> bool
1173
1597
 
1174
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#show_column_stripes=} instead.
1175
- # : (?bool? val) -> bool?
1176
- def show_column_stripes: (?bool? val) -> bool?
1598
+ # : () -> bool
1599
+ def show_column_stripes?: () -> bool
1177
1600
 
1178
1601
  # : (bool val) -> bool
1179
1602
  def show_column_stripes=: (bool val) -> bool
1180
1603
 
1181
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#show_first_column=} instead.
1182
- # : (?bool? val) -> bool?
1183
- def show_first_column: (?bool? val) -> bool?
1604
+ # : () -> bool
1605
+ def show_first_column?: () -> bool
1184
1606
 
1185
1607
  # : (bool val) -> bool
1186
1608
  def show_first_column=: (bool val) -> bool
1187
1609
 
1188
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#show_last_column=} instead.
1189
- # : (?bool? val) -> bool?
1190
- def show_last_column: (?bool? val) -> bool?
1610
+ # : () -> bool
1611
+ def show_last_column?: () -> bool
1191
1612
 
1192
1613
  # : (bool val) -> bool
1193
1614
  def show_last_column=: (bool val) -> bool
1194
1615
 
1195
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#totals_row_count=} instead.
1196
- # : (?Integer? val) -> Integer?
1197
- def totals_row_count: (?Integer? val) -> Integer?
1616
+ # : () -> Integer?
1617
+ def totals_row_count: () -> Integer?
1198
1618
 
1199
1619
  # : (Integer val) -> Integer
1200
1620
  def totals_row_count=: (Integer val) -> Integer
1201
1621
 
1202
- # @deprecated Use {#totals_row_count} instead. Will be removed in 0.2.0.
1203
- # : (?Integer? val) -> Integer?
1204
- def total_row_count: (?Integer? val) -> Integer?
1205
-
1206
- # @deprecated Use {#totals_row_count=} instead. Will be removed in 0.2.0.
1207
- # : (Integer val) -> Integer
1208
- def total_row_count=: (Integer val) -> Integer
1209
-
1210
- # Gets or sets whether the table has a totals row.
1622
+ # Returns whether the table has a totals row.
1211
1623
  #
1212
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#totals_row=} instead.
1213
- # : (?untyped val) -> bool?
1214
- def totals_row: (?untyped val) -> bool?
1624
+ # @return [Boolean]
1625
+ # : () -> bool
1626
+ def totals_row?: () -> bool
1215
1627
 
1216
1628
  # : (bool val) -> bool
1217
1629
  def totals_row=: (bool val) -> bool
1218
1630
 
1219
- # @deprecated Use {#totals_row} instead. Will be removed in 0.2.0.
1220
- # : (?bool? val) -> bool?
1221
- def total_row: (?bool? val) -> bool?
1222
-
1223
- # @deprecated Use {#totals_row=} instead. Will be removed in 0.2.0.
1224
- # : (bool val) -> bool
1225
- def total_row=: (bool val) -> bool
1226
-
1227
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#auto_filter=} instead.
1228
- # : (?bool? val) -> bool?
1229
- def auto_filter: (?bool? val) -> bool?
1631
+ # : () -> bool
1632
+ def auto_filter?: () -> bool
1230
1633
 
1231
1634
  # : (bool val) -> bool
1232
1635
  def auto_filter=: (bool val) -> bool
@@ -1244,63 +1647,26 @@ module Xlsxrb
1244
1647
  # : (?String? sqref, **untyped opts) -> void
1245
1648
  def initialize: (?String? sqref, **untyped opts) -> void
1246
1649
 
1247
- # @deprecated Use dedicated property accessors instead. Will be removed in 0.2.0.
1248
- # @param key [Symbol, String]
1249
- # @return [Object, nil]
1250
- # @api public
1251
- # : (untyped key) -> untyped
1252
- def []: (untyped key) -> untyped
1253
-
1254
- # @deprecated Use dedicated property accessors instead. Will be removed in 0.2.0.
1255
- # @param key [Symbol, String]
1256
- # @param value [Object]
1257
- # @return [Object]
1258
- # @api public
1259
- # : (untyped key, untyped value) -> untyped
1260
- def []=: (untyped key, untyped value) -> untyped
1261
-
1262
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#sqref=} instead.
1263
- # : (?String? val) -> String?
1264
- def sqref: (?String? val) -> String?
1650
+ # : () -> String?
1651
+ def sqref: () -> String?
1265
1652
 
1266
1653
  # : (String val) -> String
1267
1654
  def sqref=: (String val) -> String
1268
1655
 
1269
- # @deprecated Use {#sqref} instead. Will be removed in 0.2.0.
1270
- alias range sqref
1271
-
1272
- # @deprecated Use {#sqref=} instead. Will be removed in 0.2.0.
1273
- alias range= sqref=
1274
-
1275
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#columns=} instead.
1276
- # : (?untyped val) -> untyped
1277
- def columns: (?untyped val) -> untyped
1656
+ # : () -> untyped
1657
+ def columns: () -> untyped
1278
1658
 
1279
1659
  # : (untyped val) -> untyped
1280
1660
  def columns=: (untyped val) -> untyped
1281
1661
 
1282
- # @deprecated Use {#columns} instead. Will be removed in 0.2.0.
1283
- alias col columns
1284
-
1285
- # @deprecated Use {#columns=} instead. Will be removed in 0.2.0.
1286
- alias col= columns=
1287
-
1288
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#rows=} instead.
1289
- # : (?untyped val) -> untyped
1290
- def rows: (?untyped val) -> untyped
1662
+ # : () -> untyped
1663
+ def rows: () -> untyped
1291
1664
 
1292
1665
  # : (untyped val) -> untyped
1293
1666
  def rows=: (untyped val) -> untyped
1294
1667
 
1295
- # @deprecated Use {#rows} instead. Will be removed in 0.2.0.
1296
- alias row rows
1297
-
1298
- # @deprecated Use {#rows=} instead. Will be removed in 0.2.0.
1299
- alias row= rows=
1300
-
1301
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#except_rows=} instead.
1302
- # : (?untyped val) -> untyped
1303
- def except_rows: (?untyped val) -> untyped
1668
+ # : () -> untyped
1669
+ def except_rows: () -> untyped
1304
1670
 
1305
1671
  # : (untyped val) -> untyped
1306
1672
  def except_rows=: (untyped val) -> untyped
@@ -1310,115 +1676,82 @@ module Xlsxrb
1310
1676
  # @example
1311
1677
  # b.list = ["Option1", "Option2"]
1312
1678
  #
1313
- # @param val [Array<Object>, nil]
1314
1679
  # @return [Array<Object>, nil]
1315
1680
  # @api public
1316
- # : (?Array[untyped]? val) -> untyped
1317
- def list: (?Array[untyped]? val) -> untyped
1681
+ # : () -> untyped
1682
+ def list: () -> untyped
1318
1683
 
1319
1684
  # : (Array[untyped] val) -> untyped
1320
1685
  def list=: (Array[untyped] val) -> untyped
1321
1686
 
1322
- # @deprecated Use {#list} instead.
1323
- # : (?Array[untyped]? val) -> untyped
1324
- def in: (?Array[untyped]? val) -> untyped
1325
-
1326
- # @deprecated Use {#list=} instead.
1327
- # : (Array[untyped] val) -> untyped
1328
- def in=: (Array[untyped] val) -> untyped
1329
-
1330
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#type=} instead.
1331
- # : (?untyped val) -> untyped
1332
- def type: (?untyped val) -> untyped
1687
+ # : () -> untyped
1688
+ def type: () -> untyped
1333
1689
 
1334
1690
  # : (untyped val) -> untyped
1335
1691
  def type=: (untyped val) -> untyped
1336
1692
 
1337
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#operator=} instead.
1338
- # : (?untyped val) -> untyped
1339
- def operator: (?untyped val) -> untyped
1693
+ # : () -> untyped
1694
+ def operator: () -> untyped
1340
1695
 
1341
1696
  # : (untyped val) -> untyped
1342
1697
  def operator=: (untyped val) -> untyped
1343
1698
 
1344
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#formula1=} instead.
1345
- # : (?untyped val) -> untyped
1346
- def formula1: (?untyped val) -> untyped
1699
+ # : () -> untyped
1700
+ def formula1: () -> untyped
1347
1701
 
1348
1702
  # : (untyped val) -> untyped
1349
1703
  def formula1=: (untyped val) -> untyped
1350
1704
 
1351
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#formula2=} instead.
1352
- # : (?untyped val) -> untyped
1353
- def formula2: (?untyped val) -> untyped
1705
+ # : () -> untyped
1706
+ def formula2: () -> untyped
1354
1707
 
1355
1708
  # : (untyped val) -> untyped
1356
1709
  def formula2=: (untyped val) -> untyped
1357
1710
 
1358
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#allow_blank=} instead.
1359
- # : (?bool? val) -> bool?
1360
- def allow_blank: (?bool? val) -> bool?
1711
+ # : () -> bool
1712
+ def allow_blank?: () -> bool
1361
1713
 
1362
1714
  # : (bool val) -> bool
1363
1715
  def allow_blank=: (bool val) -> bool
1364
1716
 
1365
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#show_input_message=} instead.
1366
- # : (?bool? val) -> bool?
1367
- def show_input_message: (?bool? val) -> bool?
1717
+ # : () -> bool
1718
+ def show_input_message?: () -> bool
1368
1719
 
1369
1720
  # : (bool val) -> bool
1370
1721
  def show_input_message=: (bool val) -> bool
1371
1722
 
1372
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#show_error_message=} instead.
1373
- # : (?bool? val) -> bool?
1374
- def show_error_message: (?bool? val) -> bool?
1723
+ # : () -> bool
1724
+ def show_error_message?: () -> bool
1375
1725
 
1376
1726
  # : (bool val) -> bool
1377
1727
  def show_error_message=: (bool val) -> bool
1378
1728
 
1379
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#error_title=} instead.
1380
- # : (?String? val) -> String?
1381
- def error_title: (?String? val) -> String?
1729
+ # : () -> String?
1730
+ def error_title: () -> String?
1382
1731
 
1383
1732
  # : (String val) -> String
1384
1733
  def error_title=: (String val) -> String
1385
1734
 
1386
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#error_message=} instead.
1387
- # : (?String? val) -> String?
1388
- def error_message: (?String? val) -> String?
1735
+ # : () -> String?
1736
+ def error_message: () -> String?
1389
1737
 
1390
1738
  # : (String val) -> String
1391
1739
  def error_message=: (String val) -> String
1392
1740
 
1393
- # @deprecated Use {#error_message} instead. Will be removed in 0.2.0.
1394
- alias error error_message
1395
-
1396
- # @deprecated Use {#error_message=} instead. Will be removed in 0.2.0.
1397
- alias error= error_message=
1398
-
1399
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#prompt_title=} instead.
1400
- # : (?String? val) -> String?
1401
- def prompt_title: (?String? val) -> String?
1741
+ # : () -> String?
1742
+ def prompt_title: () -> String?
1402
1743
 
1403
1744
  # : (String val) -> String
1404
1745
  def prompt_title=: (String val) -> String
1405
1746
 
1406
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#prompt_message=} instead.
1407
- # : (?String? val) -> String?
1408
- def prompt_message: (?String? val) -> String?
1747
+ # : () -> String?
1748
+ def prompt_message: () -> String?
1409
1749
 
1410
1750
  # : (String val) -> String
1411
1751
  def prompt_message=: (String val) -> String
1412
1752
 
1413
- # @deprecated Use {#prompt_message} instead. Will be removed in 0.2.0.
1414
- alias prompt prompt_message
1415
-
1416
- # @deprecated Use {#prompt_message=} instead. Will be removed in 0.2.0.
1417
- alias prompt= prompt_message=
1418
-
1419
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#error_style=} instead.
1420
- # : (?untyped val) -> untyped
1421
- def error_style: (?untyped val) -> untyped
1753
+ # : () -> untyped
1754
+ def error_style: () -> untyped
1422
1755
 
1423
1756
  # : (untyped val) -> untyped
1424
1757
  def error_style=: (untyped val) -> untyped
@@ -1436,281 +1769,192 @@ module Xlsxrb
1436
1769
  # : (?String? sqref, **untyped opts) -> void
1437
1770
  def initialize: (?String? sqref, **untyped opts) -> void
1438
1771
 
1439
- # @deprecated Use dedicated property accessors instead. Will be removed in 0.2.0.
1440
- # @param key [Symbol, String]
1441
- # @return [Object, nil]
1442
- # @api public
1443
- # : (untyped key) -> untyped
1444
- def []: (untyped key) -> untyped
1445
-
1446
- # @deprecated Use dedicated property accessors instead. Will be removed in 0.2.0.
1447
- # @param key [Symbol, String]
1448
- # @param value [Object]
1449
- # @return [Object]
1450
- # @api public
1451
- # : (untyped key, untyped value) -> untyped
1452
- def []=: (untyped key, untyped value) -> untyped
1453
-
1454
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#sqref=} instead.
1455
- # : (?String? val) -> String?
1456
- def sqref: (?String? val) -> String?
1772
+ # : () -> String?
1773
+ def sqref: () -> String?
1457
1774
 
1458
1775
  # : (String val) -> String
1459
1776
  def sqref=: (String val) -> String
1460
1777
 
1461
- # @deprecated Use {#sqref} instead. Will be removed in 0.2.0.
1462
- alias range sqref
1463
-
1464
- # @deprecated Use {#sqref=} instead. Will be removed in 0.2.0.
1465
- alias range= sqref=
1466
-
1467
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#columns=} instead.
1468
- # : (?untyped val) -> untyped
1469
- def columns: (?untyped val) -> untyped
1778
+ # : () -> untyped
1779
+ def columns: () -> untyped
1470
1780
 
1471
1781
  # : (untyped val) -> untyped
1472
1782
  def columns=: (untyped val) -> untyped
1473
1783
 
1474
- # @deprecated Use {#columns} instead. Will be removed in 0.2.0.
1475
- alias col columns
1476
-
1477
- # @deprecated Use {#columns=} instead. Will be removed in 0.2.0.
1478
- alias col= columns=
1479
-
1480
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#rows=} instead.
1481
- # : (?untyped val) -> untyped
1482
- def rows: (?untyped val) -> untyped
1784
+ # : () -> untyped
1785
+ def rows: () -> untyped
1483
1786
 
1484
1787
  # : (untyped val) -> untyped
1485
1788
  def rows=: (untyped val) -> untyped
1486
1789
 
1487
- # @deprecated Use {#rows} instead. Will be removed in 0.2.0.
1488
- alias row rows
1489
-
1490
- # @deprecated Use {#rows=} instead. Will be removed in 0.2.0.
1491
- alias row= rows=
1492
-
1493
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#except_rows=} instead.
1494
- # : (?untyped val) -> untyped
1495
- def except_rows: (?untyped val) -> untyped
1790
+ # : () -> untyped
1791
+ def except_rows: () -> untyped
1496
1792
 
1497
1793
  # : (untyped val) -> untyped
1498
1794
  def except_rows=: (untyped val) -> untyped
1499
1795
 
1500
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#type=} instead.
1501
- # : (?untyped val) -> untyped
1502
- def type: (?untyped val) -> untyped
1796
+ # : () -> untyped
1797
+ def type: () -> untyped
1503
1798
 
1504
1799
  # : (untyped val) -> untyped
1505
1800
  def type=: (untyped val) -> untyped
1506
1801
 
1507
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#operator=} instead.
1508
- # : (?untyped val) -> untyped
1509
- def operator: (?untyped val) -> untyped
1802
+ # : () -> untyped
1803
+ def operator: () -> untyped
1510
1804
 
1511
1805
  # : (untyped val) -> untyped
1512
1806
  def operator=: (untyped val) -> untyped
1513
1807
 
1514
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#formula=} instead.
1515
- # : (?untyped val) -> untyped
1516
- def formula: (?untyped val) -> untyped
1808
+ # : () -> untyped
1809
+ def formula: () -> untyped
1517
1810
 
1518
1811
  # : (untyped val) -> untyped
1519
1812
  def formula=: (untyped val) -> untyped
1520
1813
 
1521
- # @deprecated Use {#formula} instead. Will be removed in 0.2.0.
1522
- # @return [Object]
1523
- # @api public
1524
- # : (*untyped vals) -> untyped
1525
- def formulas: (*untyped vals) -> untyped
1526
-
1527
- # @deprecated Use {#formula=} instead. Will be removed in 0.2.0.
1528
- # @param vals [Array, Object]
1529
- # @return [Array]
1530
- # @api public
1531
- # : (untyped vals) -> untyped
1532
- def formulas=: (untyped vals) -> untyped
1533
-
1534
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#font=} instead.
1535
- # : (?untyped val) -> untyped
1536
- def font: (?untyped val) -> untyped
1814
+ # : () -> untyped
1815
+ def font: () -> untyped
1537
1816
 
1538
1817
  # : (untyped val) -> untyped
1539
1818
  def font=: (untyped val) -> untyped
1540
1819
 
1541
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#fill=} instead.
1542
- # : (?untyped val) -> untyped
1543
- def fill: (?untyped val) -> untyped
1820
+ # : () -> untyped
1821
+ def fill: () -> untyped
1544
1822
 
1545
1823
  # : (untyped val) -> untyped
1546
1824
  def fill=: (untyped val) -> untyped
1547
1825
 
1548
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#fill_color=} instead.
1549
- # : (?untyped val) -> untyped
1550
- def fill_color: (?untyped val) -> untyped
1826
+ # : () -> untyped
1827
+ def fill_color: () -> untyped
1551
1828
 
1552
1829
  # : (untyped val) -> untyped
1553
1830
  def fill_color=: (untyped val) -> untyped
1554
1831
 
1555
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#font_color=} instead.
1556
- # : (?untyped val) -> untyped
1557
- def font_color: (?untyped val) -> untyped
1832
+ # : () -> untyped
1833
+ def font_color: () -> untyped
1558
1834
 
1559
1835
  # : (untyped val) -> untyped
1560
1836
  def font_color=: (untyped val) -> untyped
1561
1837
 
1562
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#bold=} instead.
1563
- # : (?bool? val) -> bool?
1564
- def bold: (?bool? val) -> bool?
1838
+ # : () -> bool
1839
+ def bold?: () -> bool
1565
1840
 
1566
1841
  # : (bool val) -> bool
1567
1842
  def bold=: (bool val) -> bool
1568
1843
 
1569
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#italic=} instead.
1570
- # : (?bool? val) -> bool?
1571
- def italic: (?bool? val) -> bool?
1844
+ # : () -> bool
1845
+ def italic?: () -> bool
1572
1846
 
1573
1847
  # : (bool val) -> bool
1574
1848
  def italic=: (bool val) -> bool
1575
1849
 
1576
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#underline=} instead.
1577
- # : (?untyped val) -> untyped
1578
- def underline: (?untyped val) -> untyped
1850
+ # : () -> untyped
1851
+ def underline: () -> untyped
1579
1852
 
1580
1853
  # : (untyped val) -> untyped
1581
1854
  def underline=: (untyped val) -> untyped
1582
1855
 
1583
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#font_name=} instead.
1584
- # : (?String? val) -> String?
1585
- def font_name: (?String? val) -> String?
1856
+ # : () -> String?
1857
+ def font_name: () -> String?
1586
1858
 
1587
1859
  # : (String val) -> String
1588
1860
  def font_name=: (String val) -> String
1589
1861
 
1590
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#font_size=} instead.
1591
- # : (?untyped val) -> untyped
1592
- def font_size: (?untyped val) -> untyped
1862
+ # : () -> untyped
1863
+ def font_size: () -> untyped
1593
1864
 
1594
1865
  # : (untyped val) -> untyped
1595
1866
  def font_size=: (untyped val) -> untyped
1596
1867
 
1597
- # @deprecated Use {#font_size} instead. Will be removed in 0.2.0.
1598
- def size: (?untyped val) -> untyped
1599
-
1600
- # @deprecated Use {#font_size=} instead. Will be removed in 0.2.0.
1601
- def size=: (untyped val) -> untyped
1602
-
1603
- # @deprecated Use {#font_size} instead. Will be removed in 0.2.0.
1604
- def sz: (?untyped val) -> untyped
1605
-
1606
- # @deprecated Use {#font_size=} instead. Will be removed in 0.2.0.
1607
- def sz=: (untyped val) -> untyped
1608
-
1609
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#stop_if_true=} instead.
1610
- # : (?bool? val) -> bool?
1611
- def stop_if_true: (?bool? val) -> bool?
1868
+ # : () -> bool
1869
+ def stop_if_true?: () -> bool
1612
1870
 
1613
1871
  # : (bool val) -> bool
1614
1872
  def stop_if_true=: (bool val) -> bool
1615
1873
 
1616
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#priority=} instead.
1617
- # : (?Integer? val) -> Integer?
1618
- def priority: (?Integer? val) -> Integer?
1874
+ # : () -> Integer?
1875
+ def priority: () -> Integer?
1619
1876
 
1620
1877
  # : (Integer val) -> Integer
1621
1878
  def priority=: (Integer val) -> Integer
1622
1879
 
1623
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#above_average=} instead.
1624
- # : (?bool? val) -> bool?
1625
- def above_average: (?bool? val) -> bool?
1880
+ # : () -> bool
1881
+ def above_average?: () -> bool
1626
1882
 
1627
1883
  # : (bool val) -> bool
1628
1884
  def above_average=: (bool val) -> bool
1629
1885
 
1630
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#equal_average=} instead.
1631
- # : (?bool? val) -> bool?
1632
- def equal_average: (?bool? val) -> bool?
1886
+ # : () -> bool
1887
+ def equal_average?: () -> bool
1633
1888
 
1634
1889
  # : (bool val) -> bool
1635
1890
  def equal_average=: (bool val) -> bool
1636
1891
 
1637
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#std_dev=} instead.
1638
- # : (?Integer? val) -> Integer?
1639
- def std_dev: (?Integer? val) -> Integer?
1892
+ # : () -> Integer?
1893
+ def std_dev: () -> Integer?
1640
1894
 
1641
1895
  # : (Integer val) -> Integer
1642
1896
  def std_dev=: (Integer val) -> Integer
1643
1897
 
1644
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#rank=} instead.
1645
- # : (?Integer? val) -> Integer?
1646
- def rank: (?Integer? val) -> Integer?
1898
+ # : () -> Integer?
1899
+ def rank: () -> Integer?
1647
1900
 
1648
1901
  # : (Integer val) -> Integer
1649
1902
  def rank=: (Integer val) -> Integer
1650
1903
 
1651
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#percent=} instead.
1652
- # : (?bool? val) -> bool?
1653
- def percent: (?bool? val) -> bool?
1904
+ # : () -> bool
1905
+ def percent?: () -> bool
1654
1906
 
1655
1907
  # : (bool val) -> bool
1656
1908
  def percent=: (bool val) -> bool
1657
1909
 
1658
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#bottom=} instead.
1659
- # : (?bool? val) -> bool?
1660
- def bottom: (?bool? val) -> bool?
1910
+ # : () -> bool
1911
+ def bottom?: () -> bool
1661
1912
 
1662
1913
  # : (bool val) -> bool
1663
1914
  def bottom=: (bool val) -> bool
1664
1915
 
1665
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#text=} instead.
1666
- # : (?String? val) -> String?
1667
- def text: (?String? val) -> String?
1916
+ # : () -> String?
1917
+ def text: () -> String?
1668
1918
 
1669
1919
  # : (String val) -> String
1670
1920
  def text=: (String val) -> String
1671
1921
 
1672
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#time_period=} instead.
1673
- # : (?untyped val) -> untyped
1674
- def time_period: (?untyped val) -> untyped
1922
+ # : () -> untyped
1923
+ def time_period: () -> untyped
1675
1924
 
1676
1925
  # : (untyped val) -> untyped
1677
1926
  def time_period=: (untyped val) -> untyped
1678
1927
 
1679
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#color_scale=} instead.
1680
- # : (?untyped val) -> untyped
1681
- def color_scale: (?untyped val) -> untyped
1928
+ # : () -> untyped
1929
+ def color_scale: () -> untyped
1682
1930
 
1683
1931
  # : (untyped val) -> untyped
1684
1932
  def color_scale=: (untyped val) -> untyped
1685
1933
 
1686
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#data_bar=} instead.
1687
- # : (?untyped val) -> untyped
1688
- def data_bar: (?untyped val) -> untyped
1934
+ # : () -> untyped
1935
+ def data_bar: () -> untyped
1689
1936
 
1690
1937
  # : (untyped val) -> untyped
1691
1938
  def data_bar=: (untyped val) -> untyped
1692
1939
 
1693
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#icon_set=} instead.
1694
- # : (?untyped val) -> untyped
1695
- def icon_set: (?untyped val) -> untyped
1940
+ # : () -> untyped
1941
+ def icon_set: () -> untyped
1696
1942
 
1697
1943
  # : (untyped val) -> untyped
1698
1944
  def icon_set=: (untyped val) -> untyped
1699
1945
 
1700
- # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#dxf=} instead.
1701
- # : (?untyped val) -> untyped
1702
- def dxf: (?untyped val) -> untyped
1946
+ # : () -> untyped
1947
+ def dxf: () -> untyped
1703
1948
 
1704
1949
  # : (untyped val) -> untyped
1705
1950
  def dxf=: (untyped val) -> untyped
1706
1951
 
1707
- # Gets or sets the differential format identifier (dxfId).
1952
+ # Gets the differential format identifier (dxfId).
1708
1953
  #
1709
- # @param val [Integer, nil]
1710
1954
  # @return [Integer, nil]
1711
1955
  # @api public
1712
- # : (?Integer? val) -> Integer?
1713
- def dxf_id: (?Integer? val) -> Integer?
1956
+ # : () -> Integer?
1957
+ def dxf_id: () -> Integer?
1714
1958
 
1715
1959
  # Sets the differential format identifier (dxfId).
1716
1960
  #
@@ -1720,14 +1964,6 @@ module Xlsxrb
1720
1964
  # : (Integer val) -> Integer
1721
1965
  def dxf_id=: (Integer val) -> Integer
1722
1966
 
1723
- # @deprecated Use {#dxf_id} instead. Will be removed in 0.2.0.
1724
- # : (?Integer? val) -> Integer?
1725
- def format_id: (?Integer? val) -> Integer?
1726
-
1727
- # @deprecated Use {#dxf_id=} instead. Will be removed in 0.2.0.
1728
- # : (Integer val) -> Integer
1729
- def format_id=: (Integer val) -> Integer
1730
-
1731
1967
  # : () -> Hash[Symbol, untyped]
1732
1968
  def to_h: () -> Hash[Symbol, untyped]
1733
1969
  end