xlsxrb 0.1.17 → 0.1.18

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 (69) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +93 -1
  3. data/README.md +79 -19
  4. data/lib/ruby_lsp/xlsxrb/completion_listener.rb +31 -61
  5. data/lib/xlsxrb/chart_builder.rb +595 -113
  6. data/lib/xlsxrb/dsl_helpers.rb +72 -20
  7. data/lib/xlsxrb/elements/cell.rb +243 -56
  8. data/lib/xlsxrb/elements/column.rb +94 -5
  9. data/lib/xlsxrb/elements/coordinate_access.rb +108 -10
  10. data/lib/xlsxrb/elements/image.rb +81 -15
  11. data/lib/xlsxrb/elements/metadata.rb +2733 -0
  12. data/lib/xlsxrb/elements/row.rb +130 -46
  13. data/lib/xlsxrb/elements/styles.rb +184 -76
  14. data/lib/xlsxrb/elements/types.rb +242 -7
  15. data/lib/xlsxrb/elements/workbook.rb +171 -82
  16. data/lib/xlsxrb/elements/worksheet.rb +598 -102
  17. data/lib/xlsxrb/elements.rb +1 -0
  18. data/lib/xlsxrb/ooxml/reader/listeners/core_listeners.rb +12 -4
  19. data/lib/xlsxrb/ooxml/reader/listeners/drawing_listeners.rb +7 -2
  20. data/lib/xlsxrb/ooxml/reader/listeners/feature_listeners.rb +264 -17
  21. data/lib/xlsxrb/ooxml/reader/listeners/style_listeners.rb +17 -3
  22. data/lib/xlsxrb/ooxml/reader.rb +4 -0
  23. data/lib/xlsxrb/ooxml/styles_parser.rb +10 -3
  24. data/lib/xlsxrb/ooxml/workbook_writer.rb +90 -36
  25. data/lib/xlsxrb/ooxml/worksheet_parser.rb +2 -2
  26. data/lib/xlsxrb/ooxml/worksheet_writer.rb +64 -19
  27. data/lib/xlsxrb/ooxml/writer/drawing_xml.rb +5 -2
  28. data/lib/xlsxrb/ooxml/writer/features_xml.rb +26 -5
  29. data/lib/xlsxrb/ooxml/writer/styles_xml.rb +19 -9
  30. data/lib/xlsxrb/ooxml/writer.rb +22 -6
  31. data/lib/xlsxrb/ooxml/zip_generator.rb +2 -0
  32. data/lib/xlsxrb/ooxml/zip_reader.rb +47 -10
  33. data/lib/xlsxrb/stream_row.rb +97 -18
  34. data/lib/xlsxrb/stream_sheet.rb +706 -190
  35. data/lib/xlsxrb/stream_writer.rb +1893 -374
  36. data/lib/xlsxrb/style_builder.rb +774 -111
  37. data/lib/xlsxrb/utils.rb +66 -106
  38. data/lib/xlsxrb/version.rb +1 -1
  39. data/lib/xlsxrb/workbook_builder.rb +380 -83
  40. data/lib/xlsxrb/worksheet_builder.rb +1210 -233
  41. data/lib/xlsxrb.rb +1266 -326
  42. data/sig/generated/xlsxrb/chart_builder.rbs +319 -90
  43. data/sig/generated/xlsxrb/dsl_helpers.rbs +20 -2
  44. data/sig/generated/xlsxrb/elements/cell.rbs +92 -20
  45. data/sig/generated/xlsxrb/elements/column.rbs +61 -2
  46. data/sig/generated/xlsxrb/elements/coordinate_access.rbs +49 -7
  47. data/sig/generated/xlsxrb/elements/image.rbs +30 -8
  48. data/sig/generated/xlsxrb/elements/metadata.rbs +1587 -0
  49. data/sig/generated/xlsxrb/elements/row.rbs +61 -21
  50. data/sig/generated/xlsxrb/elements/styles.rbs +96 -58
  51. data/sig/generated/xlsxrb/elements/types.rbs +27 -0
  52. data/sig/generated/xlsxrb/elements/workbook.rbs +63 -52
  53. data/sig/generated/xlsxrb/elements/worksheet.rbs +192 -51
  54. data/sig/generated/xlsxrb/ooxml/reader/listeners/feature_listeners.rbs +61 -0
  55. data/sig/generated/xlsxrb/ooxml/reader.rbs +3 -0
  56. data/sig/generated/xlsxrb/ooxml/workbook_writer.rbs +1 -1
  57. data/sig/generated/xlsxrb/ooxml/worksheet_writer.rbs +1 -1
  58. data/sig/generated/xlsxrb/ooxml/writer.rbs +3 -0
  59. data/sig/generated/xlsxrb/ooxml/zip_generator.rbs +2 -0
  60. data/sig/generated/xlsxrb/ooxml/zip_reader.rbs +2 -2
  61. data/sig/generated/xlsxrb/stream_row.rbs +48 -14
  62. data/sig/generated/xlsxrb/stream_sheet.rbs +324 -115
  63. data/sig/generated/xlsxrb/stream_writer.rbs +1068 -255
  64. data/sig/generated/xlsxrb/style_builder.rbs +389 -79
  65. data/sig/generated/xlsxrb/utils.rbs +34 -18
  66. data/sig/generated/xlsxrb/workbook_builder.rbs +234 -34
  67. data/sig/generated/xlsxrb/worksheet_builder.rbs +628 -126
  68. data/sig/generated/xlsxrb.rbs +257 -49
  69. metadata +3 -1
@@ -5,16 +5,32 @@ module Xlsxrb
5
5
  #
6
6
  # @api public
7
7
  class WorksheetBuilder
8
+ OMITTED: untyped
9
+
8
10
  # @param name [String] The worksheet name.
9
11
  # @param strict_excel_mode [Boolean] Whether to enforce Microsoft Excel limits.
10
12
  # @param state [Symbol] Sheet visibility state (:visible, :hidden, or :very_hidden).
11
- # : (String name, ?strict_excel_mode: bool, ?state: Symbol) -> void
12
- def initialize: (String name, ?strict_excel_mode: bool, ?state: Symbol) -> void
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
13
16
 
17
+ # : String
14
18
  attr_reader name: untyped
15
19
 
20
+ # : Array[Hash[Symbol, untyped]]
16
21
  attr_reader defined_names: untyped
17
22
 
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
+
18
34
  # Defines or configures a named cell style.
19
35
  #
20
36
  # @example Define a bold header style
@@ -29,28 +45,56 @@ module Xlsxrb
29
45
  # : (String | Symbol name, **untyped opts) ?{ (StyleBuilder) -> void } -> StyleBuilder
30
46
  def style: (String | Symbol name, **untyped opts) ?{ (StyleBuilder) -> void } -> StyleBuilder
31
47
 
48
+ # Creates an {Elements::Formula} object.
49
+ # @api public
50
+ # : (String expression, ?cached_value: (String | Numeric | bool | Elements::CellError | nil), ?type: (Symbol | String)?, ?ref: String?, ?shared_index: Integer?) -> Elements::Formula
51
+ def formula: (String expression, ?cached_value: String | Numeric | bool | Elements::CellError | nil, ?type: (Symbol | String)?, ?ref: String?, ?shared_index: Integer?) -> Elements::Formula
52
+
53
+ # Creates an array or dynamic array {Elements::Formula} object.
54
+ # @api public
55
+ # : (String expression, ?ref: String?, ?cached_value: (String | Numeric | bool | Elements::CellError | nil), **untyped attrs) -> Elements::Formula
56
+ def array_formula: (String expression, ?ref: String?, ?cached_value: String | Numeric | bool | Elements::CellError | nil, **untyped attrs) -> Elements::Formula
57
+
58
+ # Creates a shared formula {Elements::Formula} object.
59
+ # @api public
60
+ # : (?String? expression, ?shared_index: Integer?, ?ref: String?, ?cached_value: (String | Numeric | bool | Elements::CellError | nil)) -> Elements::Formula
61
+ def shared_formula: (?String? expression, ?shared_index: Integer?, ?ref: String?, ?cached_value: String | Numeric | bool | Elements::CellError | nil) -> Elements::Formula
62
+
63
+ # Creates an {Elements::RichText} object.
64
+ # @api public
65
+ # : (*(Hash[Symbol, untyped] | Elements::RichTextRun | String | Array[untyped] | untyped) runs, ?text: String?, ?base_font: untyped, **untyped font_props) -> Elements::RichText
66
+ def rich_text: (*Hash[Symbol, untyped] | Elements::RichTextRun | String | Array[untyped] | untyped runs, ?text: String?, ?base_font: untyped, **untyped font_props) -> Elements::RichText
67
+
68
+ # Creates or returns an {Elements::CellError} object.
69
+ # @api public
70
+ # : (String | Symbol | Elements::CellError code) -> Elements::CellError
71
+ def cell_error: (String | Symbol | Elements::CellError code) -> Elements::CellError
72
+
32
73
  # Appends a row of cells to the worksheet.
33
74
  #
34
75
  # @example Add a row with values and array styles
35
- # sheet.row(["ID", "Name", "Total"], styles: [:header, :header, :header])
76
+ # sheet.row(["ID", "Name", "Total"], cell_styles: [:header, :header, :header])
36
77
  #
37
78
  # @example Add a row with a hash of column keys
38
79
  # sheet.row({ "A" => "Invoice", "C" => 12345 })
39
80
  #
40
81
  # @param values [Array<Object>, Hash{String, Integer => Object}] The cell values.
41
- # @param styles [String, Symbol, Array<String | Symbol>, Hash, nil] Style names or inline styles to apply.
82
+ # @param cell_styles [String, Symbol, Array<String | Symbol>, Hash, nil] Style names or inline styles to apply to each cell.
83
+ # @param row_style [Integer, Symbol, String, Hash, nil] Row style format or index.
42
84
  # @param height [Float, Integer, nil] The row height in points (0 to 409).
43
85
  # @param hidden [Boolean] Whether the row is hidden.
44
86
  # @param custom_height [Boolean] Whether custom row height is enforced.
45
87
  # @param outline_level [Integer, nil] Grouping/outline hierarchy level.
46
88
  # @param collapsed [Boolean] Whether the row is collapsed.
47
- # @param style [Integer, Symbol, String, Hash, nil] Row style format or index.
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.
48
91
  # @return [void]
49
92
  # @raise [ArgumentError] If limits are exceeded when strict_excel_mode is enabled.
50
93
  # @api public
51
- # : (Array[untyped] | Hash[untyped, untyped] values, ?styles: untyped, ?height: Float | Integer | nil, ?hidden: bool, ?custom_height: bool, ?collapsed: bool, ?outline_level: Integer | nil, ?style: (Integer | Symbol | String | Hash[Symbol, untyped])?) -> void
52
- def row: (Array[untyped] | Hash[untyped, untyped] values, ?styles: untyped, ?height: Float | Integer | nil, ?hidden: bool, ?custom_height: bool, ?collapsed: bool, ?outline_level: Integer | nil, ?style: (Integer | Symbol | String | Hash[Symbol, untyped])?) -> void
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
53
96
 
97
+ # @deprecated Use {#row} instead. Will be removed in 0.2.0 (available via xlsxrb-adapters).
54
98
  alias add_row row
55
99
 
56
100
  # Appends a row to the worksheet and returns self for chaining.
@@ -78,6 +122,7 @@ module Xlsxrb
78
122
  # : (?Integer count) -> void
79
123
  def skip_rows: (?Integer count) -> void
80
124
 
125
+ # @deprecated Use {#skip_rows} instead. Will be removed in 0.2.0.
81
126
  alias skip_row skip_rows
82
127
 
83
128
  # Sets column formatting and properties for one or multiple columns.
@@ -95,8 +140,15 @@ module Xlsxrb
95
140
  # @return [void]
96
141
  # @raise [ArgumentError] If width exceeds 255 in strict mode.
97
142
  # @api public
98
- # : (Integer | String | Range[Integer | String] | Array[Integer | String] index, ?width: Float | Integer | nil, ?hidden: bool, ?custom_width: bool, ?outline_level: Integer | nil, ?collapsed: bool, ?style: (Integer | Symbol | String | Hash[Symbol, untyped])?) -> void
99
- def column: (Integer | String | Range[Integer | String] | Array[Integer | String] index, ?width: Float | Integer | nil, ?hidden: bool, ?custom_width: bool, ?outline_level: Integer | nil, ?collapsed: bool, ?style: (Integer | Symbol | String | Hash[Symbol, untyped])?) -> void
143
+ # : (Integer | String | Symbol | Range[Integer | String | Symbol] | Array[Integer | String | Symbol] index, ?width: Float | Integer | nil, ?hidden: bool, ?custom_width: bool, ?outline_level: Integer | nil, ?collapsed: bool, ?style: (Integer | Symbol | String | Hash[Symbol, untyped])?, ?best_fit: bool) -> void
144
+ def column: (Integer | String | Symbol | Range[Integer | String | Symbol] | Array[Integer | String | Symbol] index, ?width: Float | Integer | nil, ?hidden: bool, ?custom_width: bool, ?outline_level: Integer | nil, ?collapsed: bool, ?style: (Integer | Symbol | String | Hash[Symbol, untyped])?, ?best_fit: bool) -> void
145
+
146
+ # Returns column configurations defined for this worksheet.
147
+ #
148
+ # @return [Array<Elements::Column>]
149
+ # @api public
150
+ # : () -> Array[Elements::Column]
151
+ def columns: () -> Array[Elements::Column]
100
152
 
101
153
  # Groups multiple columns together with outline hierarchy.
102
154
  #
@@ -117,10 +169,13 @@ module Xlsxrb
117
169
  # : (Integer | String | Range[Integer | String] | Array[Integer | String] index, ?level: Integer, ?collapsed: bool, ?hidden: bool, ?width: Float | Integer | nil, ?style: untyped) -> void
118
170
  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
119
171
 
172
+ # @deprecated Use {#group_columns} instead. Will be removed in 0.2.0.
120
173
  alias group_column group_columns
121
174
 
175
+ # @deprecated Use {#group_columns} instead. Will be removed in 0.2.0.
122
176
  alias group_cols group_columns
123
177
 
178
+ # @deprecated Use {#group_columns} instead. Will be removed in 0.2.0.
124
179
  alias group_col group_columns
125
180
 
126
181
  # Groups multiple rows with outline hierarchy, either by range or with a block.
@@ -144,6 +199,7 @@ module Xlsxrb
144
199
  # : (?untyped rows, ?level: Integer, ?collapsed: bool, ?hidden: bool) ?{ (self) -> void } -> void
145
200
  def group_rows: (?untyped rows, ?level: Integer, ?collapsed: bool, ?hidden: bool) ?{ (self) -> void } -> void
146
201
 
202
+ # @deprecated Use {#group_rows} instead. Will be removed in 0.2.0.
147
203
  alias group_row group_rows
148
204
 
149
205
  # Configures worksheet-level outline and grouping view properties.
@@ -154,25 +210,37 @@ module Xlsxrb
154
210
  # @param summary_below [Boolean, nil] Flag indicating if summary rows appear below detail rows.
155
211
  # @param summary_right [Boolean, nil] Flag indicating if summary columns appear to the right of detail columns.
156
212
  # @param show_outline_symbols [Boolean, nil] Flag indicating whether outline symbols are visible.
157
- # @param show_symbols [Boolean, nil] Alias for show_outline_symbols.
213
+ # @param show_symbols [Boolean, nil] Deprecated alias for show_outline_symbols.
158
214
  # @param apply_styles [Boolean, nil] Flag indicating whether automatic styles apply to outlines.
159
215
  # @param opts [Hash] Additional options.
160
- # @return [Hash]
216
+ # @return [Hash<Symbol, untyped>, void]
161
217
  # @api public
162
- # : (?summary_below: bool?, ?summary_right: bool?, ?show_outline_symbols: bool?, ?show_symbols: bool?, ?apply_styles: bool?, **untyped opts) -> Hash[Symbol, untyped]
163
- def outline_properties: (?summary_below: bool?, ?summary_right: bool?, ?show_outline_symbols: bool?, ?show_symbols: bool?, ?apply_styles: bool?, **untyped opts) -> Hash[Symbol, untyped]
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
164
220
 
221
+ # @deprecated Use {#outline_properties} instead. Will be removed in 0.2.0.
165
222
  alias outline_pr outline_properties
166
223
 
224
+ # Sets worksheet outline and grouping view properties.
225
+ #
226
+ # @param opts [Hash] Outline properties.
227
+ # @return [void]
228
+ # @api public
229
+ # : (Hash[Symbol, untyped] opts) -> void
230
+ def outline_properties=: (Hash[Symbol, untyped] opts) -> void
231
+
232
+ alias outline_pr= outline_properties=
233
+
167
234
  # Adds a chart to the worksheet.
168
235
  #
236
+ # @param type [Symbol, String, nil] Optional chart type (e.g. :bar, :line).
169
237
  # @param options [Hash] Chart configuration options.
170
238
  # @yield [builder]
171
239
  # @yieldparam builder [Xlsxrb::ChartBuilder]
172
240
  # @return [void]
173
241
  # @api public
174
- # : (**untyped options) ?{ (ChartBuilder) -> void } -> void
175
- def chart: (**untyped options) ?{ (ChartBuilder) -> void } -> void
242
+ # : (?Symbol | String? type, **untyped options) ?{ (ChartBuilder) -> void } -> void
243
+ def chart: (?Symbol | String? type, **untyped options) ?{ (ChartBuilder) -> void } -> void
176
244
 
177
245
  # Adds a hyperlink to a cell.
178
246
  #
@@ -188,39 +256,59 @@ module Xlsxrb
188
256
 
189
257
  # Sets an auto-filter range on the sheet.
190
258
  #
191
- # @param range [String] The cell range (e.g. "A1:E100").
192
- # @return [String]
259
+ # @param range [String, nil] The cell range (e.g. "A1:E100").
260
+ # @return [void]
193
261
  # @api public
194
- # : (String range) -> String
195
- def auto_filter: (String range) -> String
262
+ # : (String? range) -> void
263
+ def auto_filter: (String? range) -> void
264
+
265
+ # Sets the auto-filter range for the worksheet.
266
+ #
267
+ # @param range [String, nil] Cell range (e.g. "A1:E100").
268
+ # @return [String, nil]
269
+ # @api public
270
+ # : (String? range) -> String?
271
+ def auto_filter=: (String? range) -> String?
196
272
 
197
273
  # Configures filtering rules on a specific column of an auto-filter.
198
274
  #
199
- # @param col_id [Integer] 0-based column index relative to filter range.
275
+ # @param col_id [Integer, String, Symbol] 0-based column index relative to filter range or column letter ("A", :B).
200
276
  # @param filter [Hash] Filter criteria (e.g. values, custom filters).
201
- # @return [Hash]
277
+ # @return [void]
202
278
  # @api public
203
- # : (Integer col_id, Hash[untyped, untyped] filter) -> Hash[untyped, untyped]
204
- def filter_column: (Integer col_id, Hash[untyped, untyped] filter) -> Hash[untyped, untyped]
279
+ # : (Integer | String | Symbol col_id, untyped filter) -> void
280
+ def filter_column: (Integer | String | Symbol col_id, untyped filter) -> void
205
281
 
206
282
  # Configures column sort state for the sheet.
207
283
  #
208
284
  # @param ref [String] The sorted range.
209
285
  # @param sort_conditions [Array<Hash>] List of sort condition definitions.
210
286
  # @param opts [Hash] Additional sort state options.
211
- # @return [Hash]
287
+ # @return [Elements::SortState, Hash<Symbol, untyped>, nil, void]
212
288
  # @api public
213
- # : (String ref, Array[Hash[untyped, untyped]] sort_conditions, **untyped opts) -> Hash[untyped, untyped]
214
- def sort_state: (String ref, Array[Hash[untyped, untyped]] sort_conditions, **untyped opts) -> Hash[untyped, untyped]
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
291
+
292
+ # Sets column sort state for the sheet.
293
+ #
294
+ # @param opts [Elements::SortState, Hash, nil] Sort state options.
295
+ # @return [void]
296
+ # @api public
297
+ # : (untyped opts) -> void
298
+ def sort_state=: (untyped opts) -> void
215
299
 
216
300
  # Adds a data validation rule to a cell, range, or coordinates.
217
301
  #
218
302
  # @param sqref [String, nil] Target cell or range reference (e.g. "B2:B100").
219
- # @param opts [Hash] Validation configuration (e.g. type: :list, formula1: '"Option1,Option2"', or coordinate options `columns:`, `rows:`, `except_rows:`, `in:`).
303
+ # @param opts [Hash] Validation configuration (e.g. type: :list, formula1: '"Option1,Option2"', or coordinate options `columns:`, `rows:`, `except_rows:`, `list:`, `in:`).
220
304
  # @yield [data_validation_builder] Optional configuration block.
221
305
  # @return [void]
222
306
  # @api public
223
307
  # : (?String? sqref, **untyped opts) ?{ (DataValidationBuilder) -> void } -> void
308
+ def data_validation: (?String? sqref, **untyped opts) ?{ (DataValidationBuilder) -> void } -> void
309
+
310
+ # @deprecated Use {#data_validation} instead.
311
+ # : (?String? sqref, **untyped opts) ?{ (DataValidationBuilder) -> void } -> void
224
312
  def validate_data: (?String? sqref, **untyped opts) ?{ (DataValidationBuilder) -> void } -> void
225
313
 
226
314
  # Adds a conditional formatting rule to a cell range.
@@ -260,10 +348,14 @@ module Xlsxrb
260
348
  # @param name [String, nil] Pivot table name.
261
349
  # @param field_names [Array<String>, nil] Custom field display names.
262
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.
263
355
  # @return [void]
264
356
  # @api public
265
- # : (String source_ref, row_fields: Array[String | Integer], data_fields: Array[String | Hash[Symbol, untyped]], ?col_fields: Array[String | Integer], ?dest_ref: String, ?name: String?, ?field_names: Array[String]?, ?items: Array[untyped]?, **untyped opts) -> void
266
- def pivot_table: (String source_ref, row_fields: Array[String | Integer], data_fields: Array[String | Hash[Symbol, untyped]], ?col_fields: Array[String | Integer], ?dest_ref: String, ?name: String?, ?field_names: Array[String]?, ?items: Array[untyped]?, **untyped opts) -> void
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
267
359
 
268
360
  # Adds a cell comment / note.
269
361
  #
@@ -291,6 +383,7 @@ module Xlsxrb
291
383
  # : (String | Integer cell, String text, ?author: untyped, ?timestamp: untyped, ?id: String?, ?parent_id: String?, ?done: bool?, ?user_id: String?, ?provider_id: String?) -> void
292
384
  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
293
385
 
386
+ # @deprecated Use {#threaded_comment} instead. Will be removed in 0.2.0.
294
387
  alias add_threaded_comment threaded_comment
295
388
 
296
389
  # Adds a sparkline group to the sheet.
@@ -314,6 +407,7 @@ module Xlsxrb
314
407
  # @example Add a win/loss sparkline
315
408
  # sheet.add_sparkline(location: "F3", range: "A3:E3", type: :win_loss)
316
409
  #
410
+ # @deprecated Use {#sparkline_group} instead. Will be removed in 0.2.0.
317
411
  # @param location [String, nil] Target cell for the sparkline (e.g. "F1").
318
412
  # @param range [String, nil] Data range for the sparkline (e.g. "A1:E1").
319
413
  # @param type [Symbol, String, nil] Sparkline type (:line, :column, :win_loss / :stacked).
@@ -328,9 +422,7 @@ module Xlsxrb
328
422
  # @example Merge with string range
329
423
  # sheet.merge("A1:C1")
330
424
  #
331
- # @example Merge with row and column bounds
332
- # sheet.merge(row_start: 0, row_end: 2, col_start: "A", col_end: "C")
333
- #
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.
334
426
  # @param range [String, Hash, nil] Cell range (e.g. "A1:B2") or hash of coordinates.
335
427
  # @param row [Integer, nil] Single row index.
336
428
  # @param col_start [Integer, String, nil] Starting column.
@@ -342,36 +434,70 @@ module Xlsxrb
342
434
  # : (?(String | Hash[Symbol, Integer | String])? range, ?row: Integer?, ?col_start: (Integer | String)?, ?col_end: (Integer | String)?, ?row_start: Integer?, ?row_end: Integer?) -> void
343
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
344
436
 
345
- # Freezes window panes at the specified row and column.
437
+ # Freezes window panes at the specified row and column, or queries freeze pane settings.
438
+ #
439
+ # @param row [Integer, nil] Number of rows to freeze from top (0-based split position).
440
+ # @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]
443
+ # @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
446
+
447
+ # Sets or clears freeze pane configuration.
346
448
  #
347
- # @param row [Integer] Number of rows to freeze from top (0-based split position).
348
- # @param col [Integer, String] Number of columns to freeze from left (0-based or letter).
449
+ # @param opts [Elements::FreezePane, Hash, nil] Freeze pane options.
349
450
  # @return [void]
350
451
  # @api public
351
- # : (?row: Integer, ?col: (Integer | String)) -> void
352
- def freeze_pane: (?row: Integer, ?col: Integer | String) -> void
452
+ # : (untyped opts) -> void
453
+ def freeze_pane=: (untyped opts) -> void
353
454
 
354
- # Splits window panes without freezing.
455
+ # Splits window panes without freezing or queries split pane settings.
355
456
  #
356
- # @param x_split [Integer] Horizontal split offset in points.
357
- # @param y_split [Integer] Vertical split offset in points.
457
+ # @param x_split [Integer, nil] Horizontal split offset in points.
458
+ # @param y_split [Integer, nil] Vertical split offset in points.
358
459
  # @param top_left_cell [String, nil] Top-left cell reference in bottom-right pane.
460
+ # @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]
463
+ # @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
466
+
467
+ # Sets or clears split pane configuration.
468
+ #
469
+ # @param opts [Elements::SplitPane, Hash, nil] Split pane options.
359
470
  # @return [void]
360
471
  # @api public
361
- # : (?x_split: ::Integer, ?y_split: ::Integer, ?top_left_cell: String?) -> void
362
- def split_pane: (?x_split: ::Integer, ?y_split: ::Integer, ?top_left_cell: String?) -> void
472
+ # : (untyped opts) -> void
473
+ def split_pane=: (untyped opts) -> void
363
474
 
364
- # Sets the active cell and selection area for the worksheet.
475
+ # Sets or queries the active cell and selection area (<selection>).
365
476
  #
366
- # @param active_cell [String] Active cell reference (e.g. "A1").
477
+ # @param active_cell [String, nil] Active cell reference (e.g. "A1") or range (e.g. "A1:D10").
367
478
  # @param sqref [String, nil] Selected range reference (e.g. "A1:D10").
368
479
  # @param pane [String, Symbol, nil] Target pane (:topLeft, :topRight, :bottomLeft, :bottomRight).
480
+ # @return [Elements::Selection, Array<Elements::Selection>, Hash<Symbol, untyped>, nil, void]
481
+ # @api public
482
+ # : (?String? active_cell, ?sqref: String?, ?pane: (String | Symbol)?) -> (untyped | void)
483
+ def selection: (?untyped active_cell, ?sqref: untyped, ?pane: untyped) -> untyped
484
+
485
+ # Sets or clears the selection configuration.
486
+ #
487
+ # @param opts [Elements::Selection, Array<Elements::Selection, Hash>, Hash, nil]
369
488
  # @return [void]
370
489
  # @api public
490
+ # : (untyped opts) -> void
491
+ def selection=: (untyped opts) -> void
492
+
493
+ # @deprecated Use {#selection} instead.
371
494
  # : (String active_cell, ?sqref: String?, ?pane: (String | Symbol)?) -> void
372
495
  def select_cell: (String active_cell, ?sqref: String?, ?pane: (String | Symbol)?) -> void
373
496
 
374
- # Sets page margins in inches for printing.
497
+ # Configures or queries page margins in inches for printing (<pageMargins>).
498
+ #
499
+ # When called with no arguments, returns the page margins value object or hash.
500
+ # When called with arguments, configures page margins and returns nil.
375
501
  #
376
502
  # @param left [Float, nil] Left margin.
377
503
  # @param right [Float, nil] Right margin.
@@ -379,22 +505,42 @@ module Xlsxrb
379
505
  # @param bottom [Float, nil] Bottom margin.
380
506
  # @param header [Float, nil] Header margin.
381
507
  # @param footer [Float, nil] Footer margin.
508
+ # @return [Elements::PageMargins, Hash<Symbol, untyped>, nil, void]
509
+ # @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
512
+
513
+ # Sets or clears page margins configuration.
514
+ #
515
+ # @param opts [Hash, Elements::PageMargins, nil]
382
516
  # @return [void]
383
517
  # @api public
384
- # : (?left: Float?, ?right: Float?, ?top: Float?, ?bottom: Float?, ?header: Float?, ?footer: Float?) -> void
385
- def page_margins: (?left: Float?, ?right: Float?, ?top: Float?, ?bottom: Float?, ?header: Float?, ?footer: Float?) -> void
518
+ # : (untyped opts) -> void
519
+ def page_margins=: (untyped opts) -> void
386
520
 
387
- # Sets page setup configuration (orientation, paper size, fit to page, scaling).
521
+ # Configures or queries page setup configuration (<pageSetup>).
522
+ #
523
+ # When called with no arguments, returns the page setup value object or hash.
524
+ # When called with keyword arguments, updates page setup and returns nil.
388
525
  #
389
526
  # @param opts [Hash] Page setup options (e.g. orientation: :landscape, paper_size: 9).
527
+ # @return [Elements::PageSetup, Hash<Symbol, untyped>, void]
528
+ # @api public
529
+ # : (**untyped opts) -> (untyped | void)
530
+ def page_setup: (**untyped opts) -> untyped
531
+
532
+ # Sets page setup configuration.
533
+ #
534
+ # @param opts [Hash, Elements::PageSetup]
390
535
  # @return [void]
391
536
  # @api public
392
- # : (**untyped opts) -> void
393
- def page_setup: (**untyped opts) -> void
537
+ # : (untyped opts) -> void
538
+ def page_setup=: (untyped opts) -> void
394
539
 
395
540
  # Configures whether page setup fits content to page width/height.
396
541
  # When enabled, optionally sets fit_to_width and/or fit_to_height on page_setup.
397
542
  #
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.
398
544
  # @param enabled [Boolean, nil] Whether to fit to page.
399
545
  # @param width [Integer, nil] Pages wide to fit to.
400
546
  # @param height [Integer, nil] Pages tall to fit to.
@@ -403,26 +549,59 @@ module Xlsxrb
403
549
  # : (?bool? enabled, ?width: Integer?, ?height: Integer?) -> (bool | void)
404
550
  def fit_to_page: (?untyped enabled, ?width: untyped, ?height: untyped) -> untyped
405
551
 
406
- alias fit_to_page= fit_to_page
552
+ # @deprecated Use {#fit_to_page} instead. Will be removed in 0.2.0.
553
+ # @return [Boolean]
554
+ # @api public
555
+ # : () -> bool
556
+ def fit_to_page?: () -> bool
407
557
 
408
- alias fit_to_page? fit_to_page
558
+ # Sets whether page setup fits content to page width/height.
559
+ #
560
+ # @param enabled [Boolean, nil] Whether to fit to page.
561
+ # @return [Boolean]
562
+ # @api public
563
+ # : (bool? enabled) -> bool?
564
+ def fit_to_page=: (bool? enabled) -> bool?
409
565
 
410
- # Configures headers and footers for printing.
566
+ # Configures or queries headers and footers for printing (<headerFooter>).
567
+ #
568
+ # When called with no arguments, returns the header/footer value object or hash.
569
+ # When called with keyword arguments, updates headers and footers and returns nil.
411
570
  #
412
571
  # @param opts [Hash] Header and footer options (e.g. odd_header: "&CHeader Text").
572
+ # @return [Elements::HeaderFooter, Hash<Symbol, untyped>, void]
573
+ # @api public
574
+ # : (**untyped opts) -> (untyped | void)
575
+ def header_footer: (**untyped opts) -> untyped
576
+
577
+ # Sets header and footer configuration.
578
+ #
579
+ # @param opts [Hash, Elements::HeaderFooter]
413
580
  # @return [void]
414
581
  # @api public
415
- # : (**untyped opts) -> void
416
- def header_footer: (**untyped opts) -> void
582
+ # : (untyped opts) -> void
583
+ def header_footer=: (untyped opts) -> void
584
+
585
+ # Configures or queries print options (<printOptions>).
586
+ #
587
+ # 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.
589
+ #
590
+ # @param name [Symbol, String, Hash, Elements::MetadataRecord, nil] Option name or hash/record of options.
591
+ # @param value [Object, nil] Option value.
592
+ # @param opts [Hash] Additional print options.
593
+ # @return [Elements::PrintOptions, void]
594
+ # @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
417
597
 
418
- # Sets a print option (e.g. grid_lines: true, headings: true).
598
+ # Replaces print options with the given hash or {Elements::PrintOptions} object.
419
599
  #
420
- # @param name [Symbol] Option name.
421
- # @param value [Object] Option value.
600
+ # @param opts [Hash, Elements::PrintOptions]
422
601
  # @return [void]
423
602
  # @api public
424
- # : (Symbol name, untyped value) -> void
425
- def print_options: (Symbol name, untyped value) -> void
603
+ # : (Hash[Symbol, untyped] | Elements::PrintOptions opts) -> void
604
+ def print_options=: (Hash[Symbol, untyped] | Elements::PrintOptions opts) -> void
426
605
 
427
606
  # Adds a defined name (named range or formula) scoped to this sheet or workbook.
428
607
  # Bare cell references and coordinate keywords are automatically formatted with sheet quotes and absolute $ references.
@@ -430,14 +609,19 @@ module Xlsxrb
430
609
  # @param name [String] Defined name identifier.
431
610
  # @param value [Object, nil] Cell reference, formula, or constant.
432
611
  # @param hidden [Boolean] Whether the defined name is hidden from Excel's UI.
433
- # @param col [Integer, String, nil] Column index or letter for coordinate-based reference.
612
+ # @param column [Integer, String, nil] Deprecated alias for columns.
613
+ # @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.
434
616
  # @param rows [Integer, Range, nil] Row or row range (1-based) for coordinate-based reference.
435
617
  # @param range [String, nil] Cell range reference (e.g. "A1:A10").
436
- # @param sheet [String, nil] Target sheet name (defaults to current sheet).
618
+ # @param sheet [String, nil] Reference sheet name (defaults to current sheet).
619
+ # @param scope [String, Symbol, nil] Scope identifier (:workbook or sheet name).
620
+ # @param local [Boolean] Deprecated alias for scope: :current.
437
621
  # @return [void]
438
622
  # @api public
439
- # : (String name, ?untyped value, ?hidden: bool, ?col: untyped, ?rows: untyped, ?range: untyped, ?sheet: String?, ?local: bool) -> void
440
- def defined_name: (String name, ?untyped value, ?hidden: bool, ?col: untyped, ?rows: untyped, ?range: untyped, ?sheet: String?, ?local: bool) -> void
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
441
625
 
442
626
  # Sets or gets the print area for the worksheet.
443
627
  #
@@ -448,10 +632,18 @@ module Xlsxrb
448
632
  # sheet.print_area #=> "A1:H50"
449
633
  #
450
634
  # @param range [String, nil] Cell range (e.g. "A1:H50").
635
+ # @return [String, nil, void]
636
+ # @api public
637
+ # : (?String? range) -> (String | nil | void)
638
+ def print_area: (?untyped range) -> untyped
639
+
640
+ # Sets the print area for the worksheet.
641
+ #
642
+ # @param range [String, nil] Cell range (e.g. "A1:H50").
451
643
  # @return [String, nil]
452
644
  # @api public
453
- # : (?String? range) -> String?
454
- def print_area: (?String? range) -> String?
645
+ # : (String? range) -> String?
646
+ def print_area=: (String? range) -> String?
455
647
 
456
648
  # Sets or gets repeating print titles (rows and/or columns) for pagination.
457
649
  #
@@ -459,14 +651,24 @@ module Xlsxrb
459
651
  # sheet.print_titles(rows: "1:2")
460
652
  #
461
653
  # @example Get repeating print titles
462
- # sheet.print_titles #=> { rows: "1:2", cols: nil }
654
+ # sheet.print_titles #=> { rows: "1:2", columns: nil, cols: nil }
463
655
  #
464
656
  # @param rows [String, nil] Repeating row range (e.g. "1:2").
465
- # @param cols [String, nil] Repeating column range (e.g. "A:B").
466
- # @return [Hash, nil]
657
+ # @param rows [String, Integer, Range, nil] Repeating row range (e.g. "1:2" or 0-based 0..1).
658
+ # @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
+ # @return [Elements::PrintTitles, nil, void]
467
661
  # @api public
468
- # : (?rows: String?, ?cols: String?) -> Hash[Symbol, untyped]?
469
- def print_titles: (?rows: String?, ?cols: String?) -> Hash[Symbol, untyped]?
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
664
+
665
+ # Sets repeating print titles for the worksheet.
666
+ #
667
+ # @param opts [Elements::PrintTitles, Hash, nil] Options with :rows and/or :columns.
668
+ # @return [Elements::PrintTitles, Hash, nil]
669
+ # @api public
670
+ # : (Elements::PrintTitles | Hash[Symbol, untyped] | nil opts) -> (Elements::PrintTitles | Hash[Symbol, untyped] | nil)
671
+ def print_titles=: (Elements::PrintTitles | Hash[Symbol, untyped] | nil opts) -> (Elements::PrintTitles | Hash[Symbol, untyped] | nil)
470
672
 
471
673
  # Sets repeating title rows to appear at the top of each printed page.
472
674
  # Accepts 0-indexed row numbers (WriteXLSX / xlsxrb convention) or Excel range string ("1:2").
@@ -500,11 +702,26 @@ module Xlsxrb
500
702
  # : (Integer | String first, ?(Integer | String)? last) -> void
501
703
  def repeat_columns: (Integer | String first, ?(Integer | String)? last) -> void
502
704
 
503
- # Sets sheet-level protection with optional password hashing.
705
+ # Configures or queries sheet-level protection with optional password hashing (<sheetProtection>).
706
+ #
707
+ # When called with no arguments, returns the sheet protection value object or hash.
708
+ # When called with keyword arguments, sets sheet protection and returns nil.
504
709
  #
505
710
  # @param opts [Hash] Protection options (e.g. password: "secret", select_locked_cells: true).
711
+ # @return [Elements::SheetProtection, Hash<Symbol, untyped>, nil, void]
712
+ # @api public
713
+ # : (**untyped opts) -> (untyped | void)
714
+ def sheet_protection: (**untyped opts) -> untyped
715
+
716
+ # Sets or clears sheet protection configuration.
717
+ #
718
+ # @param opts [Elements::SheetProtection, Hash, Boolean, nil]
506
719
  # @return [void]
507
720
  # @api public
721
+ # : (untyped opts) -> void
722
+ def sheet_protection=: (untyped opts) -> void
723
+
724
+ # @deprecated Use {#sheet_protection} instead.
508
725
  # : (**untyped opts) -> void
509
726
  def protect_sheet: (**untyped opts) -> void
510
727
 
@@ -512,15 +729,17 @@ module Xlsxrb
512
729
  #
513
730
  # @param file_data [String] Binary image data.
514
731
  # @param ext [String] File extension ("png", "jpeg", etc.).
515
- # @param from_col [Integer] Top-left starting column (0-based).
732
+ # @param from_column [Integer, nil] Top-left starting column (0-based).
733
+ # @param from_col [Integer, nil] Deprecated alias for from_column.
516
734
  # @param from_row [Integer] Top-left starting row (0-based).
517
- # @param to_col [Integer] Bottom-right ending column (0-based).
735
+ # @param to_column [Integer, nil] Bottom-right ending column (0-based).
736
+ # @param to_col [Integer, nil] Deprecated alias for to_column.
518
737
  # @param to_row [Integer] Bottom-right ending row (0-based).
519
738
  # @param opts [Hash] Additional image anchoring options.
520
739
  # @return [void]
521
740
  # @api public
522
- # : (String file_data, ?ext: ::String, ?from_col: ::Integer, ?from_row: ::Integer, ?to_col: ::Integer, ?to_row: ::Integer, **untyped opts) -> void
523
- def image: (String file_data, ?ext: ::String, ?from_col: ::Integer, ?from_row: ::Integer, ?to_col: ::Integer, ?to_row: ::Integer, **untyped opts) -> void
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
524
743
 
525
744
  # Configures the worksheet background image (<picture>).
526
745
  #
@@ -530,31 +749,39 @@ module Xlsxrb
530
749
  # @example Set background image from file path
531
750
  # sheet.background_image("path/to/background.png")
532
751
  #
752
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#background_image=} instead.
533
753
  # @param file_data [String, Hash, Elements::Image, nil] Image binary data, file path, or image options hash.
534
754
  # @param ext [String, nil] Image extension ("png", "jpeg", "jpg", "gif", etc.).
535
755
  # @param opts [Hash] Additional image options.
536
756
  # @return [Hash, nil]
537
757
  # @api public
538
- # : (?untyped file_data, ?ext: ::String?, **untyped opts) -> Hash[Symbol, untyped]?
539
- def background_image: (?untyped file_data, ?ext: ::String?, **untyped opts) -> Hash[Symbol, untyped]?
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)
540
760
 
761
+ # @deprecated Use {#background_image} instead. Will be removed in 0.2.0.
541
762
  alias background_picture background_image
542
763
 
764
+ # @deprecated Use {#background_image} instead. Will be removed in 0.2.0.
543
765
  alias picture background_image
544
766
 
767
+ # : (untyped val) -> untyped
545
768
  def background_image=: (untyped val) -> untyped
546
769
 
770
+ # @deprecated Use {#background_image=} instead. Will be removed in 0.2.0.
547
771
  alias background_picture= background_image=
548
772
 
773
+ # @deprecated Use {#background_image=} instead. Will be removed in 0.2.0.
549
774
  alias picture= background_image=
550
775
 
551
776
  # Inserts a drawing shape (e.g. rectangle, callout, arrow).
552
777
  #
553
778
  # @param preset [String] Shape preset name (e.g. "rect", "roundRect").
554
779
  # @param text [String, nil] Shape label text.
555
- # @param from_col [Integer] Top-left column.
780
+ # @param from_column [Integer, nil] Top-left column.
781
+ # @param from_col [Integer, nil] Deprecated alias for from_column.
556
782
  # @param from_row [Integer] Top-left row.
557
- # @param to_col [Integer] Bottom-right column.
783
+ # @param to_column [Integer, nil] Bottom-right column.
784
+ # @param to_col [Integer, nil] Deprecated alias for to_column.
558
785
  # @param to_row [Integer] Bottom-right row.
559
786
  # @param opts [Hash] Additional shape formatting options.
560
787
  # @return [void]
@@ -564,14 +791,24 @@ module Xlsxrb
564
791
 
565
792
  # Gets or sets the sheet visibility state (:visible, :hidden, or :very_hidden).
566
793
  #
794
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#state=} instead.
567
795
  # @param new_state [Symbol, nil] The new state.
568
796
  # @return [Symbol]
569
797
  # @api public
570
798
  # : (?Symbol? new_state) -> Symbol
571
799
  def state: (?Symbol? new_state) -> Symbol
572
800
 
801
+ # Sets the sheet visibility state (:visible, :hidden, or :very_hidden).
802
+ #
803
+ # @param new_state [Symbol, String] The new state.
804
+ # @return [Symbol]
805
+ # @api public
806
+ # : (Symbol | String new_state) -> Symbol
807
+ def state=: (Symbol | String new_state) -> Symbol
808
+
573
809
  # Gets or sets the worksheet tab color.
574
810
  #
811
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#tab_color=} instead.
575
812
  # @overload tab_color()
576
813
  # Returns the current tab color specification.
577
814
  # @return [String, Hash, nil]
@@ -584,57 +821,115 @@ module Xlsxrb
584
821
  # : (?String | Symbol | Hash[Symbol, untyped] | nil spec, **untyped opts) -> (String | Hash[Symbol, untyped] | nil)
585
822
  def tab_color: (?String | Symbol | Hash[Symbol, untyped] | nil spec, **untyped opts) -> (String | Hash[Symbol, untyped] | nil)
586
823
 
587
- alias tab_color= tab_color
824
+ # Sets the tab color of this worksheet.
825
+ #
826
+ # @param spec [String, Hash, Symbol, nil] Tab color hex string (e.g. "FF0000") or hash options.
827
+ # @return [String, Hash, nil]
828
+ # @api public
829
+ # : (String | Symbol | Hash[Symbol, untyped] | nil spec) -> (String | Hash[Symbol, untyped] | nil)
830
+ def tab_color=: (String | Symbol | Hash[Symbol, untyped] | nil spec) -> (String | Hash[Symbol, untyped] | nil)
588
831
 
589
- # Sets a sheet-level property (e.g. tab_color: "FF0000").
832
+ # Sets a single sheet property.
590
833
  #
591
- # @param name [Symbol] Property name.
834
+ # @param name [Symbol, String] Property name.
592
835
  # @param value [Object] Property value.
593
836
  # @return [void]
594
837
  # @api public
595
- # : (Symbol name, untyped value) -> void
596
- def sheet_properties: (Symbol name, untyped value) -> void
838
+ # : (Symbol | String name, untyped value) -> void
839
+ def sheet_property: (Symbol | String name, untyped value) -> void
597
840
 
598
- # Sets a sheet view display property (e.g. show_grid_lines: true, zoom_scale: 120).
841
+ # Configures or queries sheet properties (<sheetPr>).
842
+ #
843
+ # When called with no arguments, returns the {Elements::SheetProperties} value object.
844
+ # When called with arguments or keyword options, configures properties and returns nil.
599
845
  #
600
- # @param name [Symbol] View property name.
601
- # @param value [Object] View property value.
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
+ # @param opts [Hash] Additional sheet properties.
849
+ # @return [Elements::SheetProperties, void]
850
+ # @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
853
+
854
+ # Replaces worksheet properties with the given hash or {Elements::SheetProperties} object.
855
+ #
856
+ # @param opts [Hash, Elements::SheetProperties]
602
857
  # @return [void]
603
858
  # @api public
604
- # : (Symbol name, untyped value) -> void
605
- def sheet_view: (Symbol name, untyped value) -> void
859
+ # : (Hash[Symbol, untyped] | Elements::SheetProperties opts) -> void
860
+ def sheet_properties=: (Hash[Symbol, untyped] | Elements::SheetProperties opts) -> void
606
861
 
607
- # Configures sheet format properties (e.g. default_row_height, default_col_width).
862
+ # Configures or queries sheet view display properties (<sheetView>).
863
+ #
864
+ # 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.
866
+ #
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
+ # @param opts [Hash] Additional view properties.
870
+ # @return [Elements::SheetView, void]
871
+ # @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
874
+
875
+ # Replaces sheet view properties with the given hash or {Elements::SheetView} object.
876
+ #
877
+ # @param opts [Hash, Elements::SheetView]
878
+ # @return [void]
879
+ # @api public
880
+ # : (Hash[Symbol, untyped] | Elements::SheetView opts) -> void
881
+ def sheet_view=: (Hash[Symbol, untyped] | Elements::SheetView opts) -> void
882
+
883
+ # Configures or queries sheet format properties (<sheetFormatPr>).
884
+ #
885
+ # 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.
608
887
  #
609
888
  # @example Using keyword arguments
610
- # sheet.sheet_format(default_row_height: 24, default_col_width: 15)
889
+ # sheet.sheet_format(default_row_height: 24, default_column_width: 15)
611
890
  #
612
891
  # @example Using property name and value
613
892
  # sheet.sheet_format(:default_row_height, 24)
614
893
  #
615
- # @param name [Symbol, String, Hash, nil] Property name or hash of properties.
894
+ # @param name [Symbol, String, Hash, Elements::MetadataRecord, nil] Property name or hash/record of properties.
616
895
  # @param value [Object, nil] Property value when name is provided.
617
896
  # @param opts [Hash] Keyword arguments for sheet format properties.
618
- # @return [Hash]
897
+ # @return [Elements::SheetFormat, void]
898
+ # @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
901
+
902
+ # Replaces sheet format properties with the given hash or {Elements::SheetFormat} object.
903
+ #
904
+ # @param opts [Hash, Elements::SheetFormat]
905
+ # @return [void]
619
906
  # @api public
620
- # : (?Symbol | String | Hash[Symbol, untyped] | nil name, ?untyped value, **untyped opts) -> Hash[Symbol, untyped]
621
- def sheet_format: (?Symbol | String | Hash[Symbol, untyped] | nil name, ?untyped value, **untyped opts) -> Hash[Symbol, untyped]
907
+ # : (Hash[Symbol, untyped] | Elements::SheetFormat opts) -> void
908
+ def sheet_format=: (Hash[Symbol, untyped] | Elements::SheetFormat opts) -> void
622
909
 
623
- # Inserts a horizontal page break before the specified row.
910
+ # Inserts a horizontal page break after the specified 0-based row.
624
911
  #
625
- # @param row_num [Integer] 1-based row number.
912
+ # @param row_index [Integer] 0-based row index.
626
913
  # @return [void]
627
914
  # @api public
915
+ # : (Integer row_index) -> void
916
+ def row_break: (Integer row_index) -> void
917
+
918
+ # @deprecated Use {#row_break} instead.
628
919
  # : (Integer row_num) -> void
629
920
  def page_break_row: (Integer row_num) -> void
630
921
 
631
- # Inserts a vertical page break before the specified column.
922
+ # Inserts a vertical page break after the specified column.
632
923
  #
633
- # @param col_index [Integer, String] Column index (0-based) or letter ("B").
924
+ # @param col [Integer, String, Symbol] Column index (0-based) or letter ("B", :B).
634
925
  # @return [void]
635
926
  # @api public
636
- # : (Integer | String col_index) -> void
637
- def page_break_col: (Integer | String col_index) -> void
927
+ # : (Integer | String | Symbol col) -> void
928
+ def column_break: (Integer | String | Symbol col) -> void
929
+
930
+ # @deprecated Use {#column_break} instead.
931
+ # : (Integer | String | Symbol col_index) -> void
932
+ def page_break_col: (Integer | String | Symbol col_index) -> void
638
933
 
639
934
  # Adds a protected range to the worksheet.
640
935
  #
@@ -647,6 +942,7 @@ module Xlsxrb
647
942
  # : (String name, String sqref, ?password: String?, **untyped opts) -> void
648
943
  def protected_range: (String name, String sqref, ?password: String?, **untyped opts) -> void
649
944
 
945
+ # @deprecated Use {#protected_range} instead. Will be removed in 0.2.0.
650
946
  alias add_protected_range protected_range
651
947
 
652
948
  # Adds a cell watch to the worksheet.
@@ -657,6 +953,7 @@ module Xlsxrb
657
953
  # : (String ref) -> void
658
954
  def cell_watch: (String ref) -> void
659
955
 
956
+ # @deprecated Use {#cell_watch} instead. Will be removed in 0.2.0.
660
957
  alias add_cell_watch cell_watch
661
958
 
662
959
  # Adds an ignored error entry for the worksheet.
@@ -666,9 +963,15 @@ module Xlsxrb
666
963
  # @return [void]
667
964
  # @api public
668
965
  # : (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
+ 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
+
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
669
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
670
971
 
671
- alias add_ignored_error ignore_error
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
672
975
 
673
976
  # Returns ignored error rules configured for this worksheet.
674
977
  #
@@ -679,6 +982,7 @@ module Xlsxrb
679
982
 
680
983
  # Gets or sets phonetic (furigana) guide properties for the worksheet.
681
984
  #
985
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#phonetic_properties=} instead.
682
986
  # @overload phonetic_properties()
683
987
  # Returns the current phonetic properties.
684
988
  # @return [Hash, nil]
@@ -690,49 +994,84 @@ module Xlsxrb
690
994
  # @param alignment [Symbol, String, nil]
691
995
  # @return [Hash, nil]
692
996
  # @api public
693
- # : (?Hash[Symbol, untyped] | Integer | nil spec, ?font_id: Integer?, ?type: (Symbol | String)?, ?alignment: (Symbol | String)?, **untyped opts) -> Hash[Symbol, untyped]?
694
- def phonetic_properties: (?Hash[Symbol, untyped] | Integer | nil spec, ?font_id: Integer?, ?type: (Symbol | String)?, ?alignment: (Symbol | String)?, **untyped opts) -> Hash[Symbol, untyped]?
695
-
696
- alias phonetic_properties= phonetic_properties
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)
697
999
 
1000
+ # @deprecated Use {#phonetic_properties} instead. Will be removed in 0.2.0.
698
1001
  alias phonetic_pr phonetic_properties
699
1002
 
700
- alias phonetic_pr= phonetic_properties
1003
+ # Sets phonetic (furigana) guide properties for the sheet.
1004
+ #
1005
+ # @param spec [Hash, Integer, nil] Options hash or font ID integer.
1006
+ # @return [Hash[Symbol, untyped], Integer, nil]
1007
+ # @api public
1008
+ # : (Hash[Symbol, untyped] | Integer | nil spec) -> (Hash[Symbol, untyped] | Integer | nil)
1009
+ def phonetic_properties=: (Hash[Symbol, untyped] | Integer | nil spec) -> (Hash[Symbol, untyped] | Integer | nil)
1010
+
1011
+ # @deprecated Use {#phonetic_properties=} instead. Will be removed in 0.2.0.
1012
+ alias phonetic_pr= phonetic_properties=
701
1013
 
702
1014
  # Normalizes phonetic properties to OOXML schema values.
703
1015
  #
704
1016
  # @param props [Hash, nil]
705
1017
  # @return [Hash[Symbol, untyped], nil]
1018
+ # @api private
706
1019
  # : (Hash[untyped, untyped]? props) -> Hash[Symbol, untyped]?
707
1020
  def self.normalize_phonetic_properties: (Hash[untyped, untyped]? props) -> Hash[Symbol, untyped]?
708
1021
 
709
1022
  # Sets or gets the internal code name of the worksheet.
710
1023
  #
1024
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#code_name=} instead.
711
1025
  # @param val [String, Symbol, nil] The code name.
712
1026
  # @return [String, nil]
713
1027
  # @api public
714
1028
  # : (?String | Symbol | nil val) -> String?
715
1029
  def code_name: (?String | Symbol | nil val) -> String?
716
1030
 
717
- alias code_name= code_name
1031
+ # Sets the internal code name of the worksheet.
1032
+ #
1033
+ # @param val [String, Symbol, nil] The code name.
1034
+ # @return [String, nil]
1035
+ # @api public
1036
+ # : (String | Symbol | nil val) -> String?
1037
+ def code_name=: (String | Symbol | nil val) -> String?
718
1038
 
719
1039
  # Configures worksheet calculation properties (<sheetCalcPr>).
720
1040
  #
721
1041
  # @example Instruct Excel to recalculate formulas when loading sheet
722
- # sheet.sheet_calc_pr(full_calc_on_load: true)
1042
+ # sheet.sheet_calc_properties = { full_calc_on_load: true }
723
1043
  #
1044
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#sheet_calc_properties=} instead.
724
1045
  # @param spec [Hash, nil] Calculation properties hash.
725
1046
  # @param full_calc_on_load [Boolean, nil] Whether to recalculate when loading.
726
1047
  # @return [Hash, nil]
727
1048
  # @api public
728
- # : (?Hash[Symbol, untyped]? spec, ?full_calc_on_load: bool?, **untyped opts) -> Hash[Symbol, untyped]?
729
- def sheet_calc_pr: (?Hash[Symbol, untyped]? spec, ?full_calc_on_load: bool?, **untyped opts) -> Hash[Symbol, untyped]?
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)
1051
+
1052
+ # Sets worksheet calculation properties (<sheetCalcPr>).
1053
+ #
1054
+ # @param spec [Hash, nil] Calculation properties hash.
1055
+ # @return [Hash, nil]
1056
+ # @api public
1057
+ # : (Hash[Symbol, untyped]? spec) -> Hash[Symbol, untyped]?
1058
+ def sheet_calc_properties=: (Hash[Symbol, untyped]? spec) -> Hash[Symbol, untyped]?
730
1059
 
731
- alias sheet_calc_pr= sheet_calc_pr
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)
732
1063
 
733
- alias calc_pr sheet_calc_pr
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)
734
1067
 
735
- alias calc_pr= sheet_calc_pr
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]?
736
1075
 
737
1076
  # Builds and returns the in-memory {Elements::Worksheet}.
738
1077
  #
@@ -751,6 +1090,8 @@ module Xlsxrb
751
1090
  #
752
1091
  # @api public
753
1092
  class TableBuilder
1093
+ OMITTED: untyped
1094
+
754
1095
  # @param ref [String, nil] Table range (e.g. "A1:D10").
755
1096
  # @param columns [Array, nil] Column header names or definition hashes.
756
1097
  # @param name [String, nil] Table name identifier.
@@ -760,18 +1101,22 @@ module Xlsxrb
760
1101
  # : (?String? ref, ?columns: untyped, ?name: String?, ?display_name: String?, ?style: String?, **untyped opts) -> void
761
1102
  def initialize: (?String? ref, ?columns: untyped, ?name: String?, ?display_name: String?, ?style: String?, **untyped opts) -> void
762
1103
 
1104
+ # @deprecated Use explicit getter methods instead.
763
1105
  # : (untyped key) -> untyped
764
1106
  def []: (untyped key) -> untyped
765
1107
 
1108
+ # @deprecated Use explicit setter methods instead.
766
1109
  # : (untyped key, untyped value) -> untyped
767
1110
  def []=: (untyped key, untyped value) -> untyped
768
1111
 
1112
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#ref=} instead.
769
1113
  # : (?String? val) -> String?
770
1114
  def ref: (?String? val) -> String?
771
1115
 
772
1116
  # : (String val) -> String
773
1117
  def ref=: (String val) -> String
774
1118
 
1119
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#columns=} instead.
775
1120
  # : (*untyped cols) -> untyped
776
1121
  def columns: (*untyped cols) -> untyped
777
1122
 
@@ -786,6 +1131,7 @@ module Xlsxrb
786
1131
  # : (String | Symbol | Hash[Symbol, untyped] col, **untyped opts) -> void
787
1132
  def column: (String | Symbol | Hash[Symbol, untyped] col, **untyped opts) -> void
788
1133
 
1134
+ # @deprecated Use {#column} instead. Will be removed in 0.2.0.
789
1135
  alias add_column column
790
1136
 
791
1137
  # Appends a calculated column with formula and options.
@@ -797,67 +1143,88 @@ module Xlsxrb
797
1143
  # : (String | Symbol name, String formula, **untyped opts) -> void
798
1144
  def calculated_column: (String | Symbol name, String formula, **untyped opts) -> void
799
1145
 
1146
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#name=} instead.
800
1147
  # : (?String? val) -> String?
801
1148
  def name: (?String? val) -> String?
802
1149
 
803
1150
  # : (String val) -> String
804
1151
  def name=: (String val) -> String
805
1152
 
1153
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#display_name=} instead.
806
1154
  # : (?String? val) -> String?
807
1155
  def display_name: (?String? val) -> String?
808
1156
 
809
1157
  # : (String val) -> String
810
1158
  def display_name=: (String val) -> String
811
1159
 
1160
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#style=} instead.
812
1161
  # : (?String? val) -> String?
813
1162
  def style: (?String? val) -> String?
814
1163
 
815
1164
  # : (String val) -> String
816
1165
  def style=: (String val) -> String
817
1166
 
1167
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#show_row_stripes=} instead.
818
1168
  # : (?bool? val) -> bool?
819
1169
  def show_row_stripes: (?bool? val) -> bool?
820
1170
 
821
1171
  # : (bool val) -> bool
822
1172
  def show_row_stripes=: (bool val) -> bool
823
1173
 
1174
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#show_column_stripes=} instead.
824
1175
  # : (?bool? val) -> bool?
825
1176
  def show_column_stripes: (?bool? val) -> bool?
826
1177
 
827
1178
  # : (bool val) -> bool
828
1179
  def show_column_stripes=: (bool val) -> bool
829
1180
 
1181
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#show_first_column=} instead.
830
1182
  # : (?bool? val) -> bool?
831
1183
  def show_first_column: (?bool? val) -> bool?
832
1184
 
833
1185
  # : (bool val) -> bool
834
1186
  def show_first_column=: (bool val) -> bool
835
1187
 
1188
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#show_last_column=} instead.
836
1189
  # : (?bool? val) -> bool?
837
1190
  def show_last_column: (?bool? val) -> bool?
838
1191
 
839
1192
  # : (bool val) -> bool
840
1193
  def show_last_column=: (bool val) -> bool
841
1194
 
1195
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#totals_row_count=} instead.
842
1196
  # : (?Integer? val) -> Integer?
843
- def total_row_count: (?Integer? val) -> Integer?
1197
+ def totals_row_count: (?Integer? val) -> Integer?
1198
+
1199
+ # : (Integer val) -> Integer
1200
+ def totals_row_count=: (Integer val) -> Integer
844
1201
 
845
- alias totals_row_count total_row_count
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?
846
1205
 
1206
+ # @deprecated Use {#totals_row_count=} instead. Will be removed in 0.2.0.
847
1207
  # : (Integer val) -> Integer
848
1208
  def total_row_count=: (Integer val) -> Integer
849
1209
 
850
- alias totals_row_count= total_row_count=
1210
+ # Gets or sets whether the table has a totals row.
1211
+ #
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?
851
1215
 
1216
+ # : (bool val) -> bool
1217
+ def totals_row=: (bool val) -> bool
1218
+
1219
+ # @deprecated Use {#totals_row} instead. Will be removed in 0.2.0.
852
1220
  # : (?bool? val) -> bool?
853
1221
  def total_row: (?bool? val) -> bool?
854
1222
 
855
- alias total_row= total_row
856
-
857
- alias totals_row total_row
858
-
859
- alias totals_row= total_row
1223
+ # @deprecated Use {#totals_row=} instead. Will be removed in 0.2.0.
1224
+ # : (bool val) -> bool
1225
+ def total_row=: (bool val) -> bool
860
1226
 
1227
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#auto_filter=} instead.
861
1228
  # : (?bool? val) -> bool?
862
1229
  def auto_filter: (?bool? val) -> bool?
863
1230
 
@@ -877,128 +1244,179 @@ module Xlsxrb
877
1244
  # : (?String? sqref, **untyped opts) -> void
878
1245
  def initialize: (?String? sqref, **untyped opts) -> void
879
1246
 
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
880
1251
  # : (untyped key) -> untyped
881
1252
  def []: (untyped key) -> untyped
882
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
883
1259
  # : (untyped key, untyped value) -> untyped
884
1260
  def []=: (untyped key, untyped value) -> untyped
885
1261
 
1262
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#sqref=} instead.
886
1263
  # : (?String? val) -> String?
887
1264
  def sqref: (?String? val) -> String?
888
1265
 
889
1266
  # : (String val) -> String
890
1267
  def sqref=: (String val) -> String
891
1268
 
1269
+ # @deprecated Use {#sqref} instead. Will be removed in 0.2.0.
892
1270
  alias range sqref
893
1271
 
1272
+ # @deprecated Use {#sqref=} instead. Will be removed in 0.2.0.
894
1273
  alias range= sqref=
895
1274
 
1275
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#columns=} instead.
896
1276
  # : (?untyped val) -> untyped
897
1277
  def columns: (?untyped val) -> untyped
898
1278
 
899
1279
  # : (untyped val) -> untyped
900
1280
  def columns=: (untyped val) -> untyped
901
1281
 
1282
+ # @deprecated Use {#columns} instead. Will be removed in 0.2.0.
902
1283
  alias col columns
903
1284
 
1285
+ # @deprecated Use {#columns=} instead. Will be removed in 0.2.0.
904
1286
  alias col= columns=
905
1287
 
1288
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#rows=} instead.
906
1289
  # : (?untyped val) -> untyped
907
1290
  def rows: (?untyped val) -> untyped
908
1291
 
909
1292
  # : (untyped val) -> untyped
910
1293
  def rows=: (untyped val) -> untyped
911
1294
 
1295
+ # @deprecated Use {#rows} instead. Will be removed in 0.2.0.
912
1296
  alias row rows
913
1297
 
1298
+ # @deprecated Use {#rows=} instead. Will be removed in 0.2.0.
914
1299
  alias row= rows=
915
1300
 
1301
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#except_rows=} instead.
916
1302
  # : (?untyped val) -> untyped
917
1303
  def except_rows: (?untyped val) -> untyped
918
1304
 
919
1305
  # : (untyped val) -> untyped
920
1306
  def except_rows=: (untyped val) -> untyped
921
1307
 
1308
+ # Sets or gets the list validation choices.
1309
+ #
1310
+ # @example
1311
+ # b.list = ["Option1", "Option2"]
1312
+ #
1313
+ # @param val [Array<Object>, nil]
1314
+ # @return [Array<Object>, nil]
1315
+ # @api public
1316
+ # : (?Array[untyped]? val) -> untyped
1317
+ def list: (?Array[untyped]? val) -> untyped
1318
+
1319
+ # : (Array[untyped] val) -> untyped
1320
+ def list=: (Array[untyped] val) -> untyped
1321
+
1322
+ # @deprecated Use {#list} instead.
922
1323
  # : (?Array[untyped]? val) -> untyped
923
1324
  def in: (?Array[untyped]? val) -> untyped
924
1325
 
1326
+ # @deprecated Use {#list=} instead.
925
1327
  # : (Array[untyped] val) -> untyped
926
1328
  def in=: (Array[untyped] val) -> untyped
927
1329
 
1330
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#type=} instead.
928
1331
  # : (?untyped val) -> untyped
929
1332
  def type: (?untyped val) -> untyped
930
1333
 
931
1334
  # : (untyped val) -> untyped
932
1335
  def type=: (untyped val) -> untyped
933
1336
 
1337
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#operator=} instead.
934
1338
  # : (?untyped val) -> untyped
935
1339
  def operator: (?untyped val) -> untyped
936
1340
 
937
1341
  # : (untyped val) -> untyped
938
1342
  def operator=: (untyped val) -> untyped
939
1343
 
1344
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#formula1=} instead.
940
1345
  # : (?untyped val) -> untyped
941
1346
  def formula1: (?untyped val) -> untyped
942
1347
 
943
1348
  # : (untyped val) -> untyped
944
1349
  def formula1=: (untyped val) -> untyped
945
1350
 
1351
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#formula2=} instead.
946
1352
  # : (?untyped val) -> untyped
947
1353
  def formula2: (?untyped val) -> untyped
948
1354
 
949
1355
  # : (untyped val) -> untyped
950
1356
  def formula2=: (untyped val) -> untyped
951
1357
 
1358
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#allow_blank=} instead.
952
1359
  # : (?bool? val) -> bool?
953
1360
  def allow_blank: (?bool? val) -> bool?
954
1361
 
955
1362
  # : (bool val) -> bool
956
1363
  def allow_blank=: (bool val) -> bool
957
1364
 
1365
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#show_input_message=} instead.
958
1366
  # : (?bool? val) -> bool?
959
1367
  def show_input_message: (?bool? val) -> bool?
960
1368
 
961
1369
  # : (bool val) -> bool
962
1370
  def show_input_message=: (bool val) -> bool
963
1371
 
1372
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#show_error_message=} instead.
964
1373
  # : (?bool? val) -> bool?
965
1374
  def show_error_message: (?bool? val) -> bool?
966
1375
 
967
1376
  # : (bool val) -> bool
968
1377
  def show_error_message=: (bool val) -> bool
969
1378
 
1379
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#error_title=} instead.
970
1380
  # : (?String? val) -> String?
971
1381
  def error_title: (?String? val) -> String?
972
1382
 
973
1383
  # : (String val) -> String
974
1384
  def error_title=: (String val) -> String
975
1385
 
1386
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#error_message=} instead.
976
1387
  # : (?String? val) -> String?
977
1388
  def error_message: (?String? val) -> String?
978
1389
 
979
1390
  # : (String val) -> String
980
1391
  def error_message=: (String val) -> String
981
1392
 
1393
+ # @deprecated Use {#error_message} instead. Will be removed in 0.2.0.
982
1394
  alias error error_message
983
1395
 
1396
+ # @deprecated Use {#error_message=} instead. Will be removed in 0.2.0.
984
1397
  alias error= error_message=
985
1398
 
1399
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#prompt_title=} instead.
986
1400
  # : (?String? val) -> String?
987
1401
  def prompt_title: (?String? val) -> String?
988
1402
 
989
1403
  # : (String val) -> String
990
1404
  def prompt_title=: (String val) -> String
991
1405
 
1406
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#prompt_message=} instead.
992
1407
  # : (?String? val) -> String?
993
1408
  def prompt_message: (?String? val) -> String?
994
1409
 
995
1410
  # : (String val) -> String
996
1411
  def prompt_message=: (String val) -> String
997
1412
 
1413
+ # @deprecated Use {#prompt_message} instead. Will be removed in 0.2.0.
998
1414
  alias prompt prompt_message
999
1415
 
1416
+ # @deprecated Use {#prompt_message=} instead. Will be removed in 0.2.0.
1000
1417
  alias prompt= prompt_message=
1001
1418
 
1419
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#error_style=} instead.
1002
1420
  # : (?untyped val) -> untyped
1003
1421
  def error_style: (?untyped val) -> untyped
1004
1422
 
@@ -1018,211 +1436,295 @@ module Xlsxrb
1018
1436
  # : (?String? sqref, **untyped opts) -> void
1019
1437
  def initialize: (?String? sqref, **untyped opts) -> void
1020
1438
 
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
1021
1443
  # : (untyped key) -> untyped
1022
1444
  def []: (untyped key) -> untyped
1023
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
1024
1451
  # : (untyped key, untyped value) -> untyped
1025
1452
  def []=: (untyped key, untyped value) -> untyped
1026
1453
 
1454
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#sqref=} instead.
1027
1455
  # : (?String? val) -> String?
1028
1456
  def sqref: (?String? val) -> String?
1029
1457
 
1030
1458
  # : (String val) -> String
1031
1459
  def sqref=: (String val) -> String
1032
1460
 
1461
+ # @deprecated Use {#sqref} instead. Will be removed in 0.2.0.
1033
1462
  alias range sqref
1034
1463
 
1464
+ # @deprecated Use {#sqref=} instead. Will be removed in 0.2.0.
1035
1465
  alias range= sqref=
1036
1466
 
1467
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#columns=} instead.
1037
1468
  # : (?untyped val) -> untyped
1038
1469
  def columns: (?untyped val) -> untyped
1039
1470
 
1040
1471
  # : (untyped val) -> untyped
1041
1472
  def columns=: (untyped val) -> untyped
1042
1473
 
1474
+ # @deprecated Use {#columns} instead. Will be removed in 0.2.0.
1043
1475
  alias col columns
1044
1476
 
1477
+ # @deprecated Use {#columns=} instead. Will be removed in 0.2.0.
1045
1478
  alias col= columns=
1046
1479
 
1480
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#rows=} instead.
1047
1481
  # : (?untyped val) -> untyped
1048
1482
  def rows: (?untyped val) -> untyped
1049
1483
 
1050
1484
  # : (untyped val) -> untyped
1051
1485
  def rows=: (untyped val) -> untyped
1052
1486
 
1487
+ # @deprecated Use {#rows} instead. Will be removed in 0.2.0.
1053
1488
  alias row rows
1054
1489
 
1490
+ # @deprecated Use {#rows=} instead. Will be removed in 0.2.0.
1055
1491
  alias row= rows=
1056
1492
 
1493
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#except_rows=} instead.
1057
1494
  # : (?untyped val) -> untyped
1058
1495
  def except_rows: (?untyped val) -> untyped
1059
1496
 
1060
1497
  # : (untyped val) -> untyped
1061
1498
  def except_rows=: (untyped val) -> untyped
1062
1499
 
1500
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#type=} instead.
1063
1501
  # : (?untyped val) -> untyped
1064
1502
  def type: (?untyped val) -> untyped
1065
1503
 
1066
1504
  # : (untyped val) -> untyped
1067
1505
  def type=: (untyped val) -> untyped
1068
1506
 
1507
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#operator=} instead.
1069
1508
  # : (?untyped val) -> untyped
1070
1509
  def operator: (?untyped val) -> untyped
1071
1510
 
1072
1511
  # : (untyped val) -> untyped
1073
1512
  def operator=: (untyped val) -> untyped
1074
1513
 
1514
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#formula=} instead.
1075
1515
  # : (?untyped val) -> untyped
1076
1516
  def formula: (?untyped val) -> untyped
1077
1517
 
1078
1518
  # : (untyped val) -> untyped
1079
1519
  def formula=: (untyped val) -> untyped
1080
1520
 
1521
+ # @deprecated Use {#formula} instead. Will be removed in 0.2.0.
1522
+ # @return [Object]
1523
+ # @api public
1081
1524
  # : (*untyped vals) -> untyped
1082
1525
  def formulas: (*untyped vals) -> untyped
1083
1526
 
1527
+ # @deprecated Use {#formula=} instead. Will be removed in 0.2.0.
1528
+ # @param vals [Array, Object]
1529
+ # @return [Array]
1530
+ # @api public
1084
1531
  # : (untyped vals) -> untyped
1085
1532
  def formulas=: (untyped vals) -> untyped
1086
1533
 
1534
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#font=} instead.
1087
1535
  # : (?untyped val) -> untyped
1088
1536
  def font: (?untyped val) -> untyped
1089
1537
 
1090
1538
  # : (untyped val) -> untyped
1091
1539
  def font=: (untyped val) -> untyped
1092
1540
 
1541
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#fill=} instead.
1093
1542
  # : (?untyped val) -> untyped
1094
1543
  def fill: (?untyped val) -> untyped
1095
1544
 
1096
1545
  # : (untyped val) -> untyped
1097
1546
  def fill=: (untyped val) -> untyped
1098
1547
 
1548
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#fill_color=} instead.
1099
1549
  # : (?untyped val) -> untyped
1100
1550
  def fill_color: (?untyped val) -> untyped
1101
1551
 
1102
1552
  # : (untyped val) -> untyped
1103
1553
  def fill_color=: (untyped val) -> untyped
1104
1554
 
1555
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#font_color=} instead.
1105
1556
  # : (?untyped val) -> untyped
1106
1557
  def font_color: (?untyped val) -> untyped
1107
1558
 
1108
1559
  # : (untyped val) -> untyped
1109
1560
  def font_color=: (untyped val) -> untyped
1110
1561
 
1562
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#bold=} instead.
1111
1563
  # : (?bool? val) -> bool?
1112
1564
  def bold: (?bool? val) -> bool?
1113
1565
 
1114
1566
  # : (bool val) -> bool
1115
1567
  def bold=: (bool val) -> bool
1116
1568
 
1569
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#italic=} instead.
1117
1570
  # : (?bool? val) -> bool?
1118
1571
  def italic: (?bool? val) -> bool?
1119
1572
 
1120
1573
  # : (bool val) -> bool
1121
1574
  def italic=: (bool val) -> bool
1122
1575
 
1576
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#underline=} instead.
1123
1577
  # : (?untyped val) -> untyped
1124
1578
  def underline: (?untyped val) -> untyped
1125
1579
 
1126
1580
  # : (untyped val) -> untyped
1127
1581
  def underline=: (untyped val) -> untyped
1128
1582
 
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?
1586
+
1587
+ # : (String val) -> String
1588
+ def font_name=: (String val) -> String
1589
+
1590
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#font_size=} instead.
1129
1591
  # : (?untyped val) -> untyped
1130
- def size: (?untyped val) -> untyped
1592
+ def font_size: (?untyped val) -> untyped
1131
1593
 
1132
1594
  # : (untyped val) -> untyped
1595
+ def font_size=: (untyped val) -> untyped
1596
+
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.
1133
1601
  def size=: (untyped val) -> untyped
1134
1602
 
1135
- alias sz size
1603
+ # @deprecated Use {#font_size} instead. Will be removed in 0.2.0.
1604
+ def sz: (?untyped val) -> untyped
1136
1605
 
1137
- alias sz= size=
1606
+ # @deprecated Use {#font_size=} instead. Will be removed in 0.2.0.
1607
+ def sz=: (untyped val) -> untyped
1138
1608
 
1609
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#stop_if_true=} instead.
1139
1610
  # : (?bool? val) -> bool?
1140
1611
  def stop_if_true: (?bool? val) -> bool?
1141
1612
 
1142
1613
  # : (bool val) -> bool
1143
1614
  def stop_if_true=: (bool val) -> bool
1144
1615
 
1616
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#priority=} instead.
1145
1617
  # : (?Integer? val) -> Integer?
1146
1618
  def priority: (?Integer? val) -> Integer?
1147
1619
 
1148
1620
  # : (Integer val) -> Integer
1149
1621
  def priority=: (Integer val) -> Integer
1150
1622
 
1623
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#above_average=} instead.
1151
1624
  # : (?bool? val) -> bool?
1152
1625
  def above_average: (?bool? val) -> bool?
1153
1626
 
1154
1627
  # : (bool val) -> bool
1155
1628
  def above_average=: (bool val) -> bool
1156
1629
 
1630
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#equal_average=} instead.
1157
1631
  # : (?bool? val) -> bool?
1158
1632
  def equal_average: (?bool? val) -> bool?
1159
1633
 
1160
1634
  # : (bool val) -> bool
1161
1635
  def equal_average=: (bool val) -> bool
1162
1636
 
1637
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#std_dev=} instead.
1163
1638
  # : (?Integer? val) -> Integer?
1164
1639
  def std_dev: (?Integer? val) -> Integer?
1165
1640
 
1166
1641
  # : (Integer val) -> Integer
1167
1642
  def std_dev=: (Integer val) -> Integer
1168
1643
 
1644
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#rank=} instead.
1169
1645
  # : (?Integer? val) -> Integer?
1170
1646
  def rank: (?Integer? val) -> Integer?
1171
1647
 
1172
1648
  # : (Integer val) -> Integer
1173
1649
  def rank=: (Integer val) -> Integer
1174
1650
 
1651
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#percent=} instead.
1175
1652
  # : (?bool? val) -> bool?
1176
1653
  def percent: (?bool? val) -> bool?
1177
1654
 
1178
1655
  # : (bool val) -> bool
1179
1656
  def percent=: (bool val) -> bool
1180
1657
 
1658
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#bottom=} instead.
1181
1659
  # : (?bool? val) -> bool?
1182
1660
  def bottom: (?bool? val) -> bool?
1183
1661
 
1184
1662
  # : (bool val) -> bool
1185
1663
  def bottom=: (bool val) -> bool
1186
1664
 
1665
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#text=} instead.
1187
1666
  # : (?String? val) -> String?
1188
1667
  def text: (?String? val) -> String?
1189
1668
 
1190
1669
  # : (String val) -> String
1191
1670
  def text=: (String val) -> String
1192
1671
 
1672
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#time_period=} instead.
1193
1673
  # : (?untyped val) -> untyped
1194
1674
  def time_period: (?untyped val) -> untyped
1195
1675
 
1196
1676
  # : (untyped val) -> untyped
1197
1677
  def time_period=: (untyped val) -> untyped
1198
1678
 
1679
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#color_scale=} instead.
1199
1680
  # : (?untyped val) -> untyped
1200
1681
  def color_scale: (?untyped val) -> untyped
1201
1682
 
1202
1683
  # : (untyped val) -> untyped
1203
1684
  def color_scale=: (untyped val) -> untyped
1204
1685
 
1686
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#data_bar=} instead.
1205
1687
  # : (?untyped val) -> untyped
1206
1688
  def data_bar: (?untyped val) -> untyped
1207
1689
 
1208
1690
  # : (untyped val) -> untyped
1209
1691
  def data_bar=: (untyped val) -> untyped
1210
1692
 
1693
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#icon_set=} instead.
1211
1694
  # : (?untyped val) -> untyped
1212
1695
  def icon_set: (?untyped val) -> untyped
1213
1696
 
1214
1697
  # : (untyped val) -> untyped
1215
1698
  def icon_set=: (untyped val) -> untyped
1216
1699
 
1700
+ # @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#dxf=} instead.
1217
1701
  # : (?untyped val) -> untyped
1218
1702
  def dxf: (?untyped val) -> untyped
1219
1703
 
1220
1704
  # : (untyped val) -> untyped
1221
1705
  def dxf=: (untyped val) -> untyped
1222
1706
 
1707
+ # Gets or sets the differential format identifier (dxfId).
1708
+ #
1709
+ # @param val [Integer, nil]
1710
+ # @return [Integer, nil]
1711
+ # @api public
1712
+ # : (?Integer? val) -> Integer?
1713
+ def dxf_id: (?Integer? val) -> Integer?
1714
+
1715
+ # Sets the differential format identifier (dxfId).
1716
+ #
1717
+ # @param val [Integer]
1718
+ # @return [Integer]
1719
+ # @api public
1720
+ # : (Integer val) -> Integer
1721
+ def dxf_id=: (Integer val) -> Integer
1722
+
1723
+ # @deprecated Use {#dxf_id} instead. Will be removed in 0.2.0.
1223
1724
  # : (?Integer? val) -> Integer?
1224
1725
  def format_id: (?Integer? val) -> Integer?
1225
1726
 
1727
+ # @deprecated Use {#dxf_id=} instead. Will be removed in 0.2.0.
1226
1728
  # : (Integer val) -> Integer
1227
1729
  def format_id=: (Integer val) -> Integer
1228
1730