compony 0.5.9 → 0.6.0

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 (88) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +21 -0
  5. data/VERSION +1 -1
  6. data/compony.gemspec +3 -3
  7. data/config/locales/de.yml +13 -0
  8. data/config/locales/en.yml +13 -0
  9. data/config/locales/fr.yml +14 -1
  10. data/doc/ComponentGenerator.html +16 -4
  11. data/doc/Components.html +3 -3
  12. data/doc/ComponentsGenerator.html +3 -3
  13. data/doc/Compony/Component.html +4 -4
  14. data/doc/Compony/ComponentMixins/Default/Labelling.html +3 -3
  15. data/doc/Compony/ComponentMixins/Default/Standalone/ResourcefulVerbDsl.html +3 -3
  16. data/doc/Compony/ComponentMixins/Default/Standalone/StandaloneDsl.html +3 -3
  17. data/doc/Compony/ComponentMixins/Default/Standalone/VerbDsl.html +3 -3
  18. data/doc/Compony/ComponentMixins/Default/Standalone.html +3 -3
  19. data/doc/Compony/ComponentMixins/Default.html +3 -3
  20. data/doc/Compony/ComponentMixins/Resourceful.html +4 -4
  21. data/doc/Compony/ComponentMixins.html +3 -3
  22. data/doc/Compony/Components/Button.html +3 -3
  23. data/doc/Compony/Components/Destroy.html +3 -3
  24. data/doc/Compony/Components/Edit.html +3 -3
  25. data/doc/Compony/Components/Form.html +3 -3
  26. data/doc/Compony/Components/Index.html +172 -0
  27. data/doc/Compony/Components/List.html +2731 -0
  28. data/doc/Compony/Components/New.html +3 -3
  29. data/doc/Compony/Components/Show.html +740 -0
  30. data/doc/Compony/Components/WithForm.html +3 -3
  31. data/doc/Compony/Components.html +5 -5
  32. data/doc/Compony/ControllerMixin.html +3 -3
  33. data/doc/Compony/Engine.html +3 -3
  34. data/doc/Compony/MethodAccessibleHash.html +3 -3
  35. data/doc/Compony/ModelFields/Anchormodel.html +136 -4
  36. data/doc/Compony/ModelFields/Association.html +4 -4
  37. data/doc/Compony/ModelFields/Attachment.html +4 -4
  38. data/doc/Compony/ModelFields/Base.html +143 -13
  39. data/doc/Compony/ModelFields/Boolean.html +136 -4
  40. data/doc/Compony/ModelFields/Color.html +4 -4
  41. data/doc/Compony/ModelFields/Currency.html +4 -4
  42. data/doc/Compony/ModelFields/Date.html +4 -4
  43. data/doc/Compony/ModelFields/Datetime.html +4 -4
  44. data/doc/Compony/ModelFields/Decimal.html +4 -4
  45. data/doc/Compony/ModelFields/Email.html +4 -4
  46. data/doc/Compony/ModelFields/Float.html +4 -4
  47. data/doc/Compony/ModelFields/Integer.html +83 -5
  48. data/doc/Compony/ModelFields/Percentage.html +4 -4
  49. data/doc/Compony/ModelFields/Phone.html +4 -4
  50. data/doc/Compony/ModelFields/RichText.html +4 -4
  51. data/doc/Compony/ModelFields/String.html +4 -4
  52. data/doc/Compony/ModelFields/Text.html +4 -4
  53. data/doc/Compony/ModelFields/Time.html +4 -4
  54. data/doc/Compony/ModelFields/Url.html +4 -4
  55. data/doc/Compony/ModelFields.html +3 -3
  56. data/doc/Compony/ModelMixin.html +26 -26
  57. data/doc/Compony/NaturalOrdering.html +3 -3
  58. data/doc/Compony/RequestContext.html +3 -3
  59. data/doc/Compony/Version.html +3 -3
  60. data/doc/Compony/ViewHelpers.html +3 -3
  61. data/doc/Compony.html +4 -4
  62. data/doc/ComponyController.html +3 -3
  63. data/doc/_index.html +25 -4
  64. data/doc/class_list.html +3 -6
  65. data/doc/css/full_list.css +3 -3
  66. data/doc/css/style.css +0 -6
  67. data/doc/file.README.html +37 -10
  68. data/doc/file_list.html +2 -5
  69. data/doc/frames.html +5 -10
  70. data/doc/index.html +37 -10
  71. data/doc/js/app.js +264 -294
  72. data/doc/js/full_list.js +4 -30
  73. data/doc/method_list.html +423 -114
  74. data/doc/top-level-namespace.html +3 -3
  75. data/lib/compony/components/index.rb +33 -0
  76. data/lib/compony/components/list.rb +418 -0
  77. data/lib/compony/components/show.rb +116 -0
  78. data/lib/compony/model_fields/anchormodel.rb +13 -0
  79. data/lib/compony/model_fields/base.rb +12 -0
  80. data/lib/compony/model_fields/boolean.rb +13 -0
  81. data/lib/compony/model_fields/integer.rb +3 -0
  82. data/lib/compony/model_mixin.rb +5 -0
  83. data/lib/compony.rb +3 -0
  84. data/lib/generators/component/component_generator.rb +6 -0
  85. data/lib/generators/component/templates/index.rb.erb +2 -0
  86. data/lib/generators/component/templates/list.rb.erb +7 -0
  87. data/lib/generators/component/templates/show.rb.erb +2 -0
  88. metadata +10 -1
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Compony::Components::WithForm
8
8
 
9
- &mdash; Documentation by YARD 0.9.37
9
+ &mdash; Documentation by YARD 0.9.34
10
10
 
11
11
  </title>
12
12
 
@@ -593,9 +593,9 @@
593
593
  </div>
594
594
 
595
595
  <div id="footer">
596
- Generated on Fri Aug 29 14:58:41 2025 by
596
+ Generated on Fri Sep 5 14:00:25 2025 by
597
597
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
598
- 0.9.37 (ruby-3.3.5).
598
+ 0.9.34 (ruby-3.3.5).
599
599
  </div>
600
600
 
601
601
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Compony::Components
8
8
 
9
- &mdash; Documentation by YARD 0.9.37
9
+ &mdash; Documentation by YARD 0.9.34
10
10
 
11
11
  </title>
12
12
 
@@ -79,7 +79,7 @@
79
79
  <dl>
80
80
  <dt>Defined in:</dt>
81
81
  <dd>lib/compony/components/new.rb<span class="defines">,<br />
82
- lib/compony/components/edit.rb,<br /> lib/compony/components/form.rb,<br /> lib/compony/components/button.rb,<br /> lib/compony/components/destroy.rb,<br /> lib/compony/components/with_form.rb</span>
82
+ lib/compony/components/edit.rb,<br /> lib/compony/components/form.rb,<br /> lib/compony/components/list.rb,<br /> lib/compony/components/show.rb,<br /> lib/compony/components/index.rb,<br /> lib/compony/components/button.rb,<br /> lib/compony/components/destroy.rb,<br /> lib/compony/components/with_form.rb</span>
83
83
  </dd>
84
84
  </dl>
85
85
 
@@ -100,7 +100,7 @@
100
100
 
101
101
 
102
102
 
103
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="Components/Button.html" title="Compony::Components::Button (class)">Button</a></span>, <span class='object_link'><a href="Components/Destroy.html" title="Compony::Components::Destroy (class)">Destroy</a></span>, <span class='object_link'><a href="Components/Edit.html" title="Compony::Components::Edit (class)">Edit</a></span>, <span class='object_link'><a href="Components/Form.html" title="Compony::Components::Form (class)">Form</a></span>, <span class='object_link'><a href="Components/New.html" title="Compony::Components::New (class)">New</a></span>, <span class='object_link'><a href="Components/WithForm.html" title="Compony::Components::WithForm (class)">WithForm</a></span>
103
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="Components/Button.html" title="Compony::Components::Button (class)">Button</a></span>, <span class='object_link'><a href="Components/Destroy.html" title="Compony::Components::Destroy (class)">Destroy</a></span>, <span class='object_link'><a href="Components/Edit.html" title="Compony::Components::Edit (class)">Edit</a></span>, <span class='object_link'><a href="Components/Form.html" title="Compony::Components::Form (class)">Form</a></span>, <span class='object_link'><a href="Components/Index.html" title="Compony::Components::Index (class)">Index</a></span>, <span class='object_link'><a href="Components/List.html" title="Compony::Components::List (class)">List</a></span>, <span class='object_link'><a href="Components/New.html" title="Compony::Components::New (class)">New</a></span>, <span class='object_link'><a href="Components/Show.html" title="Compony::Components::Show (class)">Show</a></span>, <span class='object_link'><a href="Components/WithForm.html" title="Compony::Components::WithForm (class)">WithForm</a></span>
104
104
 
105
105
 
106
106
  </p>
@@ -116,9 +116,9 @@
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Fri Aug 29 14:58:40 2025 by
119
+ Generated on Fri Sep 5 14:00:24 2025 by
120
120
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
121
- 0.9.37 (ruby-3.3.5).
121
+ 0.9.34 (ruby-3.3.5).
122
122
  </div>
123
123
 
124
124
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Compony::ControllerMixin
8
8
 
9
- &mdash; Documentation by YARD 0.9.37
9
+ &mdash; Documentation by YARD 0.9.34
10
10
 
11
11
  </title>
12
12
 
@@ -126,9 +126,9 @@
126
126
  </div>
127
127
 
128
128
  <div id="footer">
129
- Generated on Fri Aug 29 14:58:40 2025 by
129
+ Generated on Fri Sep 5 14:00:24 2025 by
130
130
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
131
- 0.9.37 (ruby-3.3.5).
131
+ 0.9.34 (ruby-3.3.5).
132
132
  </div>
133
133
 
134
134
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Compony::Engine
8
8
 
9
- &mdash; Documentation by YARD 0.9.37
9
+ &mdash; Documentation by YARD 0.9.34
10
10
 
11
11
  </title>
12
12
 
@@ -123,9 +123,9 @@
123
123
  </div>
124
124
 
125
125
  <div id="footer">
126
- Generated on Fri Aug 29 14:58:40 2025 by
126
+ Generated on Fri Sep 5 14:00:25 2025 by
127
127
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
128
- 0.9.37 (ruby-3.3.5).
128
+ 0.9.34 (ruby-3.3.5).
129
129
  </div>
130
130
 
131
131
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Compony::MethodAccessibleHash
8
8
 
9
- &mdash; Documentation by YARD 0.9.37
9
+ &mdash; Documentation by YARD 0.9.34
10
10
 
11
11
  </title>
12
12
 
@@ -443,9 +443,9 @@ instance_of_a_hash.roo --&gt; nil
443
443
  </div>
444
444
 
445
445
  <div id="footer">
446
- Generated on Fri Aug 29 14:58:41 2025 by
446
+ Generated on Fri Sep 5 14:00:26 2025 by
447
447
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
448
- 0.9.37 (ruby-3.3.5).
448
+ 0.9.34 (ruby-3.3.5).
449
449
  </div>
450
450
 
451
451
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Compony::ModelFields::Anchormodel
8
8
 
9
- &mdash; Documentation by YARD 0.9.37
9
+ &mdash; Documentation by YARD 0.9.34
10
10
 
11
11
  </title>
12
12
 
@@ -166,6 +166,50 @@
166
166
  <li class="public ">
167
167
  <span class="summary_signature">
168
168
 
169
+ <a href="#ransack_filter_input-instance_method" title="#ransack_filter_input (instance method)">#<strong>ransack_filter_input</strong>(form, **input_opts) &#x21d2; Object </a>
170
+
171
+
172
+
173
+ </span>
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+ <span class="summary_desc"><div class='inline'></div></span>
184
+
185
+ </li>
186
+
187
+
188
+ <li class="public ">
189
+ <span class="summary_signature">
190
+
191
+ <a href="#ransack_filter_name-instance_method" title="#ransack_filter_name (instance method)">#<strong>ransack_filter_name</strong> &#x21d2; Object </a>
192
+
193
+
194
+
195
+ </span>
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+ <span class="summary_desc"><div class='inline'></div></span>
206
+
207
+ </li>
208
+
209
+
210
+ <li class="public ">
211
+ <span class="summary_signature">
212
+
169
213
  <a href="#simpleform_input_hidden-instance_method" title="#simpleform_input_hidden (instance method)">#<strong>simpleform_input_hidden</strong>(form, _component, name: nil, **input_opts) &#x21d2; Object </a>
170
214
 
171
215
 
@@ -281,7 +325,95 @@
281
325
 
282
326
 
283
327
  <div class="method_details first">
284
- <h3 class="signature first" id="simpleform_input_hidden-instance_method">
328
+ <h3 class="signature first" id="ransack_filter_input-instance_method">
329
+
330
+ #<strong>ransack_filter_input</strong>(form, **input_opts) &#x21d2; <tt>Object</tt>
331
+
332
+
333
+
334
+
335
+
336
+ </h3><div class="docstring">
337
+ <div class="discussion">
338
+
339
+
340
+ </div>
341
+ </div>
342
+ <div class="tags">
343
+
344
+
345
+ </div><table class="source_code">
346
+ <tr>
347
+ <td>
348
+ <pre class="lines">
349
+
350
+
351
+ 28
352
+ 29
353
+ 30
354
+ 31
355
+ 32
356
+ 33
357
+ 34
358
+ 35</pre>
359
+ </td>
360
+ <td>
361
+ <pre class="code"><span class="info file"># File 'lib/compony/model_fields/anchormodel.rb', line 28</span>
362
+
363
+ <span class='kw'>def</span> <span class='id identifier rubyid_ransack_filter_input'>ransack_filter_input</span><span class='lparen'>(</span><span class='id identifier rubyid_form'>form</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_input_opts'>input_opts</span><span class='rparen'>)</span>
364
+ <span class='id identifier rubyid_form'>form</span><span class='period'>.</span><span class='id identifier rubyid_select'>select</span><span class='lparen'>(</span>
365
+ <span class='id identifier rubyid_ransack_filter_name'>ransack_filter_name</span><span class='comma'>,</span>
366
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_collect'>collect</span><span class='lparen'>(</span><span class='ivar'>@model_class</span><span class='period'>.</span><span class='id identifier rubyid_anchormodel_attributes'>anchormodel_attributes</span><span class='lbracket'>[</span><span class='ivar'>@name</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_anchormodel_class'>anchormodel_class</span><span class='period'>.</span><span class='id identifier rubyid_all'>all</span><span class='rparen'>)</span><span class='comma'>,</span>
367
+ <span class='lbrace'>{</span> <span class='label'>include_blank:</span> <span class='kw'>true</span> <span class='rbrace'>}</span><span class='comma'>,</span>
368
+ <span class='lbrace'>{</span> <span class='label'>class:</span> <span class='id identifier rubyid_input_opts'>input_opts</span><span class='lbracket'>[</span><span class='symbol'>:filter_select_class</span><span class='rbracket'>]</span> <span class='rbrace'>}</span>
369
+ <span class='rparen'>)</span>
370
+ <span class='kw'>end</span></pre>
371
+ </td>
372
+ </tr>
373
+ </table>
374
+ </div>
375
+
376
+ <div class="method_details ">
377
+ <h3 class="signature " id="ransack_filter_name-instance_method">
378
+
379
+ #<strong>ransack_filter_name</strong> &#x21d2; <tt>Object</tt>
380
+
381
+
382
+
383
+
384
+
385
+ </h3><div class="docstring">
386
+ <div class="discussion">
387
+
388
+
389
+ </div>
390
+ </div>
391
+ <div class="tags">
392
+
393
+
394
+ </div><table class="source_code">
395
+ <tr>
396
+ <td>
397
+ <pre class="lines">
398
+
399
+
400
+ 24
401
+ 25
402
+ 26</pre>
403
+ </td>
404
+ <td>
405
+ <pre class="code"><span class="info file"># File 'lib/compony/model_fields/anchormodel.rb', line 24</span>
406
+
407
+ <span class='kw'>def</span> <span class='id identifier rubyid_ransack_filter_name'>ransack_filter_name</span>
408
+ <span class='symbol'>:&quot;#{</span><span class='ivar'>@name</span><span class='embexpr_end'>}</span><span class='tstring_content'>_eq</span><span class='tstring_end'>&quot;</span></span>
409
+ <span class='kw'>end</span></pre>
410
+ </td>
411
+ </tr>
412
+ </table>
413
+ </div>
414
+
415
+ <div class="method_details ">
416
+ <h3 class="signature " id="simpleform_input_hidden-instance_method">
285
417
 
286
418
  #<strong>simpleform_input_hidden</strong>(form, _component, name: nil, **input_opts) &#x21d2; <tt>Object</tt>
287
419
 
@@ -377,9 +509,9 @@
377
509
  </div>
378
510
 
379
511
  <div id="footer">
380
- Generated on Fri Aug 29 14:58:41 2025 by
512
+ Generated on Fri Sep 5 14:00:26 2025 by
381
513
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
382
- 0.9.37 (ruby-3.3.5).
514
+ 0.9.34 (ruby-3.3.5).
383
515
  </div>
384
516
 
385
517
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Compony::ModelFields::Association
8
8
 
9
- &mdash; Documentation by YARD 0.9.37
9
+ &mdash; Documentation by YARD 0.9.34
10
10
 
11
11
  </title>
12
12
 
@@ -281,7 +281,7 @@
281
281
 
282
282
 
283
283
  <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Base.html" title="Compony::ModelFields::Base (class)">Base</a></span></h3>
284
- <p class="inherited"><span class='object_link'><a href="Base.html#association%3F-instance_method" title="Compony::ModelFields::Base#association? (method)">#association?</a></span>, <span class='object_link'><a href="Base.html#label-instance_method" title="Compony::ModelFields::Base#label (method)">#label</a></span>, <span class='object_link'><a href="Base.html#multi%3F-instance_method" title="Compony::ModelFields::Base#multi? (method)">#multi?</a></span>, <span class='object_link'><a href="Base.html#transform_and_join-instance_method" title="Compony::ModelFields::Base#transform_and_join (method)">#transform_and_join</a></span></p>
284
+ <p class="inherited"><span class='object_link'><a href="Base.html#association%3F-instance_method" title="Compony::ModelFields::Base#association? (method)">#association?</a></span>, <span class='object_link'><a href="Base.html#label-instance_method" title="Compony::ModelFields::Base#label (method)">#label</a></span>, <span class='object_link'><a href="Base.html#multi%3F-instance_method" title="Compony::ModelFields::Base#multi? (method)">#multi?</a></span>, <span class='object_link'><a href="Base.html#ransack_filter_input-instance_method" title="Compony::ModelFields::Base#ransack_filter_input (method)">#ransack_filter_input</a></span>, <span class='object_link'><a href="Base.html#ransack_filter_name-instance_method" title="Compony::ModelFields::Base#ransack_filter_name (method)">#ransack_filter_name</a></span>, <span class='object_link'><a href="Base.html#transform_and_join-instance_method" title="Compony::ModelFields::Base#transform_and_join (method)">#transform_and_join</a></span></p>
285
285
  <div id="constructor_details" class="method_details_list">
286
286
  <h2>Constructor Details</h2>
287
287
 
@@ -603,9 +603,9 @@
603
603
  </div>
604
604
 
605
605
  <div id="footer">
606
- Generated on Fri Aug 29 14:58:41 2025 by
606
+ Generated on Fri Sep 5 14:00:26 2025 by
607
607
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
608
- 0.9.37 (ruby-3.3.5).
608
+ 0.9.34 (ruby-3.3.5).
609
609
  </div>
610
610
 
611
611
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Compony::ModelFields::Attachment
8
8
 
9
- &mdash; Documentation by YARD 0.9.37
9
+ &mdash; Documentation by YARD 0.9.34
10
10
 
11
11
  </title>
12
12
 
@@ -189,7 +189,7 @@
189
189
 
190
190
 
191
191
  <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Base.html" title="Compony::ModelFields::Base (class)">Base</a></span></h3>
192
- <p class="inherited"><span class='object_link'><a href="Base.html#association%3F-instance_method" title="Compony::ModelFields::Base#association? (method)">#association?</a></span>, <span class='object_link'><a href="Base.html#initialize-instance_method" title="Compony::ModelFields::Base#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="Base.html#label-instance_method" title="Compony::ModelFields::Base#label (method)">#label</a></span>, <span class='object_link'><a href="Base.html#multi%3F-instance_method" title="Compony::ModelFields::Base#multi? (method)">#multi?</a></span>, <span class='object_link'><a href="Base.html#schema_line-instance_method" title="Compony::ModelFields::Base#schema_line (method)">#schema_line</a></span>, <span class='object_link'><a href="Base.html#simpleform_input_hidden-instance_method" title="Compony::ModelFields::Base#simpleform_input_hidden (method)">#simpleform_input_hidden</a></span>, <span class='object_link'><a href="Base.html#transform_and_join-instance_method" title="Compony::ModelFields::Base#transform_and_join (method)">#transform_and_join</a></span></p>
192
+ <p class="inherited"><span class='object_link'><a href="Base.html#association%3F-instance_method" title="Compony::ModelFields::Base#association? (method)">#association?</a></span>, <span class='object_link'><a href="Base.html#initialize-instance_method" title="Compony::ModelFields::Base#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="Base.html#label-instance_method" title="Compony::ModelFields::Base#label (method)">#label</a></span>, <span class='object_link'><a href="Base.html#multi%3F-instance_method" title="Compony::ModelFields::Base#multi? (method)">#multi?</a></span>, <span class='object_link'><a href="Base.html#ransack_filter_input-instance_method" title="Compony::ModelFields::Base#ransack_filter_input (method)">#ransack_filter_input</a></span>, <span class='object_link'><a href="Base.html#ransack_filter_name-instance_method" title="Compony::ModelFields::Base#ransack_filter_name (method)">#ransack_filter_name</a></span>, <span class='object_link'><a href="Base.html#schema_line-instance_method" title="Compony::ModelFields::Base#schema_line (method)">#schema_line</a></span>, <span class='object_link'><a href="Base.html#simpleform_input_hidden-instance_method" title="Compony::ModelFields::Base#simpleform_input_hidden (method)">#simpleform_input_hidden</a></span>, <span class='object_link'><a href="Base.html#transform_and_join-instance_method" title="Compony::ModelFields::Base#transform_and_join (method)">#transform_and_join</a></span></p>
193
193
  <div id="constructor_details" class="method_details_list">
194
194
  <h2>Constructor Details</h2>
195
195
 
@@ -295,9 +295,9 @@
295
295
  </div>
296
296
 
297
297
  <div id="footer">
298
- Generated on Fri Aug 29 14:58:41 2025 by
298
+ Generated on Fri Sep 5 14:00:26 2025 by
299
299
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
300
- 0.9.37 (ruby-3.3.5).
300
+ 0.9.34 (ruby-3.3.5).
301
301
  </div>
302
302
 
303
303
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Compony::ModelFields::Base
8
8
 
9
- &mdash; Documentation by YARD 0.9.37
9
+ &mdash; Documentation by YARD 0.9.34
10
10
 
11
11
  </title>
12
12
 
@@ -331,6 +331,54 @@
331
331
 
332
332
  <span class="summary_desc"><div class='inline'></div></span>
333
333
 
334
+ </li>
335
+
336
+
337
+ <li class="public ">
338
+ <span class="summary_signature">
339
+
340
+ <a href="#ransack_filter_input-instance_method" title="#ransack_filter_input (instance method)">#<strong>ransack_filter_input</strong>(form, **input_opts) &#x21d2; Object </a>
341
+
342
+
343
+
344
+ </span>
345
+
346
+
347
+
348
+
349
+
350
+
351
+
352
+
353
+
354
+ <span class="summary_desc"><div class='inline'>
355
+ <p>Used in list component Given a ransack search form, returns a suitable search input.</p>
356
+ </div></span>
357
+
358
+ </li>
359
+
360
+
361
+ <li class="public ">
362
+ <span class="summary_signature">
363
+
364
+ <a href="#ransack_filter_name-instance_method" title="#ransack_filter_name (instance method)">#<strong>ransack_filter_name</strong> &#x21d2; Object </a>
365
+
366
+
367
+
368
+ </span>
369
+
370
+
371
+
372
+
373
+
374
+
375
+
376
+
377
+
378
+ <span class="summary_desc"><div class='inline'>
379
+ <p>Used in list component Given a column name, returns the most suitable ransack filter name.</p>
380
+ </div></span>
381
+
334
382
  </li>
335
383
 
336
384
 
@@ -826,6 +874,88 @@
826
874
  </td>
827
875
  </tr>
828
876
  </table>
877
+ </div>
878
+
879
+ <div class="method_details ">
880
+ <h3 class="signature " id="ransack_filter_input-instance_method">
881
+
882
+ #<strong>ransack_filter_input</strong>(form, **input_opts) &#x21d2; <tt>Object</tt>
883
+
884
+
885
+
886
+
887
+
888
+ </h3><div class="docstring">
889
+ <div class="discussion">
890
+
891
+ <p>Used in list component Given a ransack search form, returns a suitable search input</p>
892
+
893
+
894
+ </div>
895
+ </div>
896
+ <div class="tags">
897
+
898
+
899
+ </div><table class="source_code">
900
+ <tr>
901
+ <td>
902
+ <pre class="lines">
903
+
904
+
905
+ 63
906
+ 64
907
+ 65</pre>
908
+ </td>
909
+ <td>
910
+ <pre class="code"><span class="info file"># File 'lib/compony/model_fields/base.rb', line 63</span>
911
+
912
+ <span class='kw'>def</span> <span class='id identifier rubyid_ransack_filter_input'>ransack_filter_input</span><span class='lparen'>(</span><span class='id identifier rubyid_form'>form</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_input_opts'>input_opts</span><span class='rparen'>)</span>
913
+ <span class='id identifier rubyid_form'>form</span><span class='period'>.</span><span class='id identifier rubyid_search_field'>search_field</span><span class='lparen'>(</span><span class='id identifier rubyid_ransack_filter_name'>ransack_filter_name</span><span class='comma'>,</span> <span class='label'>class:</span> <span class='id identifier rubyid_input_opts'>input_opts</span><span class='lbracket'>[</span><span class='symbol'>:filter_input_class</span><span class='rbracket'>]</span><span class='rparen'>)</span>
914
+ <span class='kw'>end</span></pre>
915
+ </td>
916
+ </tr>
917
+ </table>
918
+ </div>
919
+
920
+ <div class="method_details ">
921
+ <h3 class="signature " id="ransack_filter_name-instance_method">
922
+
923
+ #<strong>ransack_filter_name</strong> &#x21d2; <tt>Object</tt>
924
+
925
+
926
+
927
+
928
+
929
+ </h3><div class="docstring">
930
+ <div class="discussion">
931
+
932
+ <p>Used in list component Given a column name, returns the most suitable ransack filter name</p>
933
+
934
+
935
+ </div>
936
+ </div>
937
+ <div class="tags">
938
+
939
+
940
+ </div><table class="source_code">
941
+ <tr>
942
+ <td>
943
+ <pre class="lines">
944
+
945
+
946
+ 57
947
+ 58
948
+ 59</pre>
949
+ </td>
950
+ <td>
951
+ <pre class="code"><span class="info file"># File 'lib/compony/model_fields/base.rb', line 57</span>
952
+
953
+ <span class='kw'>def</span> <span class='id identifier rubyid_ransack_filter_name'>ransack_filter_name</span>
954
+ <span class='symbol'>:&quot;#{</span><span class='ivar'>@name</span><span class='embexpr_end'>}</span><span class='tstring_content'>_cont</span><span class='tstring_end'>&quot;</span></span>
955
+ <span class='kw'>end</span></pre>
956
+ </td>
957
+ </tr>
958
+ </table>
829
959
  </div>
830
960
 
831
961
  <div class="method_details ">
@@ -981,18 +1111,18 @@
981
1111
  <pre class="lines">
982
1112
 
983
1113
 
984
- 58
985
- 59
986
- 60
987
- 61
988
- 62
989
- 63
990
- 64
991
- 65
992
- 66</pre>
1114
+ 70
1115
+ 71
1116
+ 72
1117
+ 73
1118
+ 74
1119
+ 75
1120
+ 76
1121
+ 77
1122
+ 78</pre>
993
1123
  </td>
994
1124
  <td>
995
- <pre class="code"><span class="info file"># File 'lib/compony/model_fields/base.rb', line 58</span>
1125
+ <pre class="code"><span class="info file"># File 'lib/compony/model_fields/base.rb', line 70</span>
996
1126
 
997
1127
  <span class='kw'>def</span> <span class='id identifier rubyid_transform_and_join'>transform_and_join</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='label'>controller:</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_transform_block'>transform_block</span><span class='rparen'>)</span>
998
1128
  <span class='kw'>if</span> <span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Enumerable</span><span class='rparen'>)</span>
@@ -1056,9 +1186,9 @@
1056
1186
  </div>
1057
1187
 
1058
1188
  <div id="footer">
1059
- Generated on Fri Aug 29 14:58:40 2025 by
1189
+ Generated on Fri Sep 5 14:00:25 2025 by
1060
1190
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1061
- 0.9.37 (ruby-3.3.5).
1191
+ 0.9.34 (ruby-3.3.5).
1062
1192
  </div>
1063
1193
 
1064
1194
  </div>