compony 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +2 -0
- data/VERSION +1 -1
- data/compony.gemspec +3 -3
- data/doc/ComponentGenerator.html +1 -1
- data/doc/Components.html +1 -1
- data/doc/ComponentsGenerator.html +1 -1
- data/doc/Compony/Component.html +1 -1
- data/doc/Compony/ComponentMixins/Default/Labelling.html +1 -1
- data/doc/Compony/ComponentMixins/Default/Standalone/ResourcefulVerbDsl.html +1 -1
- data/doc/Compony/ComponentMixins/Default/Standalone/StandaloneDsl.html +1 -1
- data/doc/Compony/ComponentMixins/Default/Standalone/VerbDsl.html +1 -1
- data/doc/Compony/ComponentMixins/Default/Standalone.html +1 -1
- data/doc/Compony/ComponentMixins/Default.html +1 -1
- data/doc/Compony/ComponentMixins/Resourceful.html +1 -1
- data/doc/Compony/ComponentMixins.html +1 -1
- data/doc/Compony/Components/Button.html +9 -5
- data/doc/Compony/Components/Destroy.html +1 -1
- data/doc/Compony/Components/Edit.html +1 -1
- data/doc/Compony/Components/Form.html +146 -75
- data/doc/Compony/Components/New.html +1 -1
- data/doc/Compony/Components/WithForm.html +1 -1
- data/doc/Compony/Components.html +1 -1
- data/doc/Compony/ControllerMixin.html +1 -1
- data/doc/Compony/Engine.html +1 -1
- data/doc/Compony/MethodAccessibleHash.html +1 -1
- data/doc/Compony/ModelFields/Anchormodel.html +1 -1
- data/doc/Compony/ModelFields/Association.html +1 -1
- data/doc/Compony/ModelFields/Attachment.html +1 -1
- data/doc/Compony/ModelFields/Base.html +1 -1
- data/doc/Compony/ModelFields/Boolean.html +1 -1
- data/doc/Compony/ModelFields/Color.html +1 -1
- data/doc/Compony/ModelFields/Currency.html +1 -1
- data/doc/Compony/ModelFields/Date.html +1 -1
- data/doc/Compony/ModelFields/Datetime.html +1 -1
- data/doc/Compony/ModelFields/Decimal.html +1 -1
- data/doc/Compony/ModelFields/Email.html +1 -1
- data/doc/Compony/ModelFields/Float.html +1 -1
- data/doc/Compony/ModelFields/Integer.html +1 -1
- data/doc/Compony/ModelFields/Percentage.html +1 -1
- data/doc/Compony/ModelFields/Phone.html +1 -1
- data/doc/Compony/ModelFields/RichText.html +1 -1
- data/doc/Compony/ModelFields/String.html +1 -1
- data/doc/Compony/ModelFields/Text.html +1 -1
- data/doc/Compony/ModelFields/Time.html +1 -1
- data/doc/Compony/ModelFields/Url.html +1 -1
- data/doc/Compony/ModelFields.html +1 -1
- data/doc/Compony/ModelMixin.html +1 -1
- data/doc/Compony/NaturalOrdering.html +1 -1
- data/doc/Compony/RequestContext.html +1 -1
- data/doc/Compony/Version.html +1 -1
- data/doc/Compony/ViewHelpers.html +30 -12
- data/doc/Compony.html +2 -2
- data/doc/ComponyController.html +1 -1
- data/doc/_index.html +1 -1
- data/doc/file.README.html +4 -1
- data/doc/index.html +4 -1
- data/doc/method_list.html +147 -139
- data/doc/top-level-namespace.html +1 -1
- data/lib/compony/components/button.rb +5 -3
- data/lib/compony/components/form.rb +9 -1
- data/lib/compony/view_helpers.rb +12 -4
- data/lib/compony.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c45d409dec136ce06cf7b04d44089d87463331b952babc63f33bd43a02b74ab3
|
4
|
+
data.tar.gz: 63a1803653878ccaa020ffba945a2aa75e91d6a26d2e7afd9b6c76effcbb5d09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c16b6ade9c9f92fa3dd1e73753ca4b9d063c31bf4cbf443ad8a25b8ecb6935648fcf3c88dac5176ccf7a2e8b797024e1a2b7dbd65a4f82353c2e2c32601452e3
|
7
|
+
data.tar.gz: 7270d80d8f365b6024865b7e51009a5de4de0c53e95bcf0b46649103915c3e200503b10820fde3a453be8b9f50df40dc32b2f4f1df7ae87af3e0d67d7a162fd0
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
# 0.5.3
|
2
|
+
|
3
|
+
- Support `standalone_name` in `Compony.button` and `compony_link`
|
4
|
+
- Support passing component classes directly to `compony_link`
|
5
|
+
- Support `button_params` in regular buttons
|
6
|
+
- Support `value` in submit buttons
|
7
|
+
- Support `disable!` and `disabled: true` in Form, disabling all inputs
|
8
|
+
|
1
9
|
# 0.5.2
|
2
10
|
|
3
11
|
- Add `constraints` to `standalone`
|
data/README.md
CHANGED
@@ -1012,6 +1012,7 @@ Examples:
|
|
1012
1012
|
|
1013
1013
|
```ruby
|
1014
1014
|
compony_link(:index, :users) # "View all users" -> 'users/index'
|
1015
|
+
compony_link(Components::Users::Index) # same as above
|
1015
1016
|
compony_link(:index, :users, label_opts: { format: :short }) # "All" -> 'users/index'
|
1016
1017
|
compony_link(:show, User.first) # "View John Doe" -> 'users/show/1'
|
1017
1018
|
compony_link(:destroy, User.first, method: :delete) # "Delete John Doe" -> 'users/destroy/1'
|
@@ -1352,6 +1353,7 @@ The following DSL calls are provided by the Form component:
|
|
1352
1353
|
- Typically required: `schema_fields` takes the names of fields as a whitelist for strong parameters. Together with model fields, this will completely auto-generate a Schemacop schema suitable for validating this form. If your argument list gets too long, you can use multiple calls to `schema_field` instead to declare your fields one by one on separate lines.
|
1353
1354
|
- Optional: `schema_line` takes a single Schemacop line. Use this for custom whitelisting of an argument, e.g. if you have an input that does not have a corresponding model field.
|
1354
1355
|
- Optional: `schema` allows you to instead fully define your own custom Schemacop V3 schema manually. Note that this disables all of the above schema calls.
|
1356
|
+
- Optional: `disable!` causes generated inputs to be disabled. Alternatively, `disabled: true` can be passed to the initializer to achieve the same result.
|
1355
1357
|
|
1356
1358
|
The `form_fields` block acts much like a content block and you will use Dyny there. Two additional methods are made available exclusively inside the block:
|
1357
1359
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.3
|
data/compony.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# This file is auto-generated via: 'rake gemspec'.
|
3
3
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: compony 0.5.
|
5
|
+
# stub: compony 0.5.3 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "compony".freeze
|
9
|
-
s.version = "0.5.
|
9
|
+
s.version = "0.5.3".freeze
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
13
|
s.authors = ["Sandro Kalbermatter".freeze, "contributors".freeze]
|
14
|
-
s.date = "2024-
|
14
|
+
s.date = "2024-12-20"
|
15
15
|
s.files = [".gitignore".freeze, ".ruby-version".freeze, ".yardopts".freeze, "CHANGELOG.md".freeze, "Gemfile".freeze, "Gemfile.lock".freeze, "LICENSE".freeze, "README.md".freeze, "Rakefile".freeze, "TODO.md".freeze, "VERSION".freeze, "app/controllers/compony_controller.rb".freeze, "compony.gemspec".freeze, "config/locales/de.yml".freeze, "config/locales/en.yml".freeze, "config/locales/fr.yml".freeze, "config/routes.rb".freeze, "doc/ComponentGenerator.html".freeze, "doc/Components.html".freeze, "doc/ComponentsGenerator.html".freeze, "doc/Compony.html".freeze, "doc/Compony/Component.html".freeze, "doc/Compony/ComponentMixins.html".freeze, "doc/Compony/ComponentMixins/Default.html".freeze, "doc/Compony/ComponentMixins/Default/Labelling.html".freeze, "doc/Compony/ComponentMixins/Default/Standalone.html".freeze, "doc/Compony/ComponentMixins/Default/Standalone/ResourcefulVerbDsl.html".freeze, "doc/Compony/ComponentMixins/Default/Standalone/StandaloneDsl.html".freeze, "doc/Compony/ComponentMixins/Default/Standalone/VerbDsl.html".freeze, "doc/Compony/ComponentMixins/Resourceful.html".freeze, "doc/Compony/Components.html".freeze, "doc/Compony/Components/Button.html".freeze, "doc/Compony/Components/Destroy.html".freeze, "doc/Compony/Components/Edit.html".freeze, "doc/Compony/Components/Form.html".freeze, "doc/Compony/Components/New.html".freeze, "doc/Compony/Components/WithForm.html".freeze, "doc/Compony/ControllerMixin.html".freeze, "doc/Compony/Engine.html".freeze, "doc/Compony/MethodAccessibleHash.html".freeze, "doc/Compony/ModelFields.html".freeze, "doc/Compony/ModelFields/Anchormodel.html".freeze, "doc/Compony/ModelFields/Association.html".freeze, "doc/Compony/ModelFields/Attachment.html".freeze, "doc/Compony/ModelFields/Base.html".freeze, "doc/Compony/ModelFields/Boolean.html".freeze, "doc/Compony/ModelFields/Color.html".freeze, "doc/Compony/ModelFields/Currency.html".freeze, "doc/Compony/ModelFields/Date.html".freeze, "doc/Compony/ModelFields/Datetime.html".freeze, "doc/Compony/ModelFields/Decimal.html".freeze, "doc/Compony/ModelFields/Email.html".freeze, "doc/Compony/ModelFields/Float.html".freeze, "doc/Compony/ModelFields/Integer.html".freeze, "doc/Compony/ModelFields/Percentage.html".freeze, "doc/Compony/ModelFields/Phone.html".freeze, "doc/Compony/ModelFields/RichText.html".freeze, "doc/Compony/ModelFields/String.html".freeze, "doc/Compony/ModelFields/Text.html".freeze, "doc/Compony/ModelFields/Time.html".freeze, "doc/Compony/ModelFields/Url.html".freeze, "doc/Compony/ModelMixin.html".freeze, "doc/Compony/NaturalOrdering.html".freeze, "doc/Compony/RequestContext.html".freeze, "doc/Compony/Version.html".freeze, "doc/Compony/ViewHelpers.html".freeze, "doc/ComponyController.html".freeze, "doc/_index.html".freeze, "doc/class_list.html".freeze, "doc/css/common.css".freeze, "doc/css/full_list.css".freeze, "doc/css/style.css".freeze, "doc/file.README.html".freeze, "doc/file_list.html".freeze, "doc/frames.html".freeze, "doc/imgs/intro-example-destroy.png".freeze, "doc/imgs/intro-example-edit.png".freeze, "doc/imgs/intro-example-index.png".freeze, "doc/imgs/intro-example-new.png".freeze, "doc/imgs/intro-example-show.png".freeze, "doc/index.html".freeze, "doc/js/app.js".freeze, "doc/js/full_list.js".freeze, "doc/js/jquery.js".freeze, "doc/method_list.html".freeze, "doc/resourceful_lifecycle.graphml".freeze, "doc/resourceful_lifecycle.pdf".freeze, "doc/resourceful_lifecycle.png".freeze, "doc/top-level-namespace.html".freeze, "lib/compony.rb".freeze, "lib/compony/component.rb".freeze, "lib/compony/component_mixins/default/labelling.rb".freeze, "lib/compony/component_mixins/default/standalone.rb".freeze, "lib/compony/component_mixins/default/standalone/resourceful_verb_dsl.rb".freeze, "lib/compony/component_mixins/default/standalone/standalone_dsl.rb".freeze, "lib/compony/component_mixins/default/standalone/verb_dsl.rb".freeze, "lib/compony/component_mixins/resourceful.rb".freeze, "lib/compony/components/button.rb".freeze, "lib/compony/components/destroy.rb".freeze, "lib/compony/components/edit.rb".freeze, "lib/compony/components/form.rb".freeze, "lib/compony/components/new.rb".freeze, "lib/compony/components/with_form.rb".freeze, "lib/compony/controller_mixin.rb".freeze, "lib/compony/engine.rb".freeze, "lib/compony/method_accessible_hash.rb".freeze, "lib/compony/model_fields/anchormodel.rb".freeze, "lib/compony/model_fields/association.rb".freeze, "lib/compony/model_fields/attachment.rb".freeze, "lib/compony/model_fields/base.rb".freeze, "lib/compony/model_fields/boolean.rb".freeze, "lib/compony/model_fields/color.rb".freeze, "lib/compony/model_fields/currency.rb".freeze, "lib/compony/model_fields/date.rb".freeze, "lib/compony/model_fields/datetime.rb".freeze, "lib/compony/model_fields/decimal.rb".freeze, "lib/compony/model_fields/email.rb".freeze, "lib/compony/model_fields/float.rb".freeze, "lib/compony/model_fields/integer.rb".freeze, "lib/compony/model_fields/percentage.rb".freeze, "lib/compony/model_fields/phone.rb".freeze, "lib/compony/model_fields/rich_text.rb".freeze, "lib/compony/model_fields/string.rb".freeze, "lib/compony/model_fields/text.rb".freeze, "lib/compony/model_fields/time.rb".freeze, "lib/compony/model_fields/url.rb".freeze, "lib/compony/model_mixin.rb".freeze, "lib/compony/natural_ordering.rb".freeze, "lib/compony/request_context.rb".freeze, "lib/compony/version.rb".freeze, "lib/compony/view_helpers.rb".freeze, "lib/generators/component/USAGE".freeze, "lib/generators/component/component_generator.rb".freeze, "lib/generators/component/templates/component.rb.erb".freeze, "lib/generators/component/templates/destroy.rb.erb".freeze, "lib/generators/component/templates/edit.rb.erb".freeze, "lib/generators/component/templates/form.rb.erb".freeze, "lib/generators/component/templates/new.rb.erb".freeze, "lib/generators/components/USAGE".freeze, "lib/generators/components/components_generator.rb".freeze, "logo.svg".freeze]
|
16
16
|
s.required_ruby_version = Gem::Requirement.new(">= 3.3.5".freeze)
|
17
17
|
s.rubygems_version = "3.5.22".freeze
|
data/doc/ComponentGenerator.html
CHANGED
@@ -221,7 +221,7 @@
|
|
221
221
|
</div>
|
222
222
|
|
223
223
|
<div id="footer">
|
224
|
-
Generated on
|
224
|
+
Generated on Fri Dec 20 13:46:33 2024 by
|
225
225
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
226
226
|
0.9.37 (ruby-3.3.5).
|
227
227
|
</div>
|
data/doc/Components.html
CHANGED
@@ -193,7 +193,7 @@
|
|
193
193
|
</div>
|
194
194
|
|
195
195
|
<div id="footer">
|
196
|
-
Generated on
|
196
|
+
Generated on Fri Dec 20 13:46:33 2024 by
|
197
197
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
198
198
|
0.9.37 (ruby-3.3.5).
|
199
199
|
</div>
|
data/doc/Compony/Component.html
CHANGED
@@ -2503,7 +2503,7 @@
|
|
2503
2503
|
</div>
|
2504
2504
|
|
2505
2505
|
<div id="footer">
|
2506
|
-
Generated on
|
2506
|
+
Generated on Fri Dec 20 13:46:33 2024 by
|
2507
2507
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2508
2508
|
0.9.37 (ruby-3.3.5).
|
2509
2509
|
</div>
|
@@ -396,7 +396,7 @@
|
|
396
396
|
</div>
|
397
397
|
|
398
398
|
<div id="footer">
|
399
|
-
Generated on
|
399
|
+
Generated on Fri Dec 20 13:46:33 2024 by
|
400
400
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
401
401
|
0.9.37 (ruby-3.3.5).
|
402
402
|
</div>
|
@@ -529,7 +529,7 @@
|
|
529
529
|
</div>
|
530
530
|
|
531
531
|
<div id="footer">
|
532
|
-
Generated on
|
532
|
+
Generated on Fri Dec 20 13:46:34 2024 by
|
533
533
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
534
534
|
0.9.37 (ruby-3.3.5).
|
535
535
|
</div>
|
@@ -590,7 +590,7 @@
|
|
590
590
|
</div>
|
591
591
|
|
592
592
|
<div id="footer">
|
593
|
-
Generated on
|
593
|
+
Generated on Fri Dec 20 13:46:34 2024 by
|
594
594
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
595
595
|
0.9.37 (ruby-3.3.5).
|
596
596
|
</div>
|
@@ -567,7 +567,7 @@
|
|
567
567
|
</div>
|
568
568
|
|
569
569
|
<div id="footer">
|
570
|
-
Generated on
|
570
|
+
Generated on Fri Dec 20 13:46:34 2024 by
|
571
571
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
572
572
|
0.9.37 (ruby-3.3.5).
|
573
573
|
</div>
|
@@ -682,7 +682,7 @@
|
|
682
682
|
</div>
|
683
683
|
|
684
684
|
<div id="footer">
|
685
|
-
Generated on
|
685
|
+
Generated on Fri Dec 20 13:46:33 2024 by
|
686
686
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
687
687
|
0.9.37 (ruby-3.3.5).
|
688
688
|
</div>
|
@@ -116,7 +116,7 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on
|
119
|
+
Generated on Fri Dec 20 13:46:33 2024 by
|
120
120
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
121
|
0.9.37 (ruby-3.3.5).
|
122
122
|
</div>
|
@@ -1183,7 +1183,7 @@
|
|
1183
1183
|
</div>
|
1184
1184
|
|
1185
1185
|
<div id="footer">
|
1186
|
-
Generated on
|
1186
|
+
Generated on Fri Dec 20 13:46:33 2024 by
|
1187
1187
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1188
1188
|
0.9.37 (ruby-3.3.5).
|
1189
1189
|
</div>
|
@@ -116,7 +116,7 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on
|
119
|
+
Generated on Fri Dec 20 13:46:33 2024 by
|
120
120
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
121
|
0.9.37 (ruby-3.3.5).
|
122
122
|
</div>
|
@@ -160,7 +160,7 @@
|
|
160
160
|
<li class="public ">
|
161
161
|
<span class="summary_signature">
|
162
162
|
|
163
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(label: nil, path: nil, method: nil, type: nil, enabled: nil, visible: nil, title: nil) ⇒ Button </a>
|
163
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(label: nil, path: nil, method: nil, type: nil, enabled: nil, visible: nil, title: nil, button_params: nil, value: nil) ⇒ Button </a>
|
164
164
|
|
165
165
|
|
166
166
|
|
@@ -203,7 +203,7 @@
|
|
203
203
|
<div class="method_details first">
|
204
204
|
<h3 class="signature first" id="initialize-instance_method">
|
205
205
|
|
206
|
-
#<strong>initialize</strong>(label: nil, path: nil, method: nil, type: nil, enabled: nil, visible: nil, title: nil) ⇒ <tt><span class='object_link'><a href="" title="Compony::Components::Button (class)">Button</a></span></tt>
|
206
|
+
#<strong>initialize</strong>(label: nil, path: nil, method: nil, type: nil, enabled: nil, visible: nil, title: nil, button_params: nil, value: nil) ⇒ <tt><span class='object_link'><a href="" title="Compony::Components::Button (class)">Button</a></span></tt>
|
207
207
|
|
208
208
|
|
209
209
|
|
@@ -246,12 +246,14 @@
|
|
246
246
|
27
|
247
247
|
28
|
248
248
|
29
|
249
|
-
30
|
249
|
+
30
|
250
|
+
31
|
251
|
+
32</pre>
|
250
252
|
</td>
|
251
253
|
<td>
|
252
254
|
<pre class="code"><span class="info file"># File 'lib/compony/components/button.rb', line 10</span>
|
253
255
|
|
254
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='op'>*</span><span class='comma'>,</span> <span class='label'>label:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>path:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>method:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>type:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>enabled:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>visible:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>title:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='op'>**</span><span class='comma'>,</span> <span class='op'>&</span><span class='rparen'>)</span>
|
256
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='op'>*</span><span class='comma'>,</span> <span class='label'>label:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>path:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>method:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>type:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>enabled:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>visible:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>title:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>button_params:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>value:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='op'>**</span><span class='comma'>,</span> <span class='op'>&</span><span class='rparen'>)</span>
|
255
257
|
<span class='ivar'>@label</span> <span class='op'>=</span> <span class='id identifier rubyid_label'>label</span> <span class='op'>||</span> <span class='const'><span class='object_link'><a href="../../Compony.html" title="Compony (module)">Compony</a></span></span><span class='period'>.</span><span class='id identifier rubyid_button_defaults'><span class='object_link'><a href="../../Compony.html#button_defaults-class_method" title="Compony.button_defaults (method)">button_defaults</a></span></span><span class='lbracket'>[</span><span class='symbol'>:label</span><span class='rbracket'>]</span>
|
256
258
|
<span class='ivar'>@type</span> <span class='op'>=</span> <span class='id identifier rubyid_type'>type</span><span class='op'>&.</span><span class='id identifier rubyid_to_sym'>to_sym</span> <span class='op'>||</span> <span class='const'><span class='object_link'><a href="../../Compony.html" title="Compony (module)">Compony</a></span></span><span class='period'>.</span><span class='id identifier rubyid_button_defaults'><span class='object_link'><a href="../../Compony.html#button_defaults-class_method" title="Compony.button_defaults (method)">button_defaults</a></span></span><span class='lbracket'>[</span><span class='symbol'>:type</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='symbol'>:button</span>
|
257
259
|
<span class='ivar'>@path</span> <span class='op'>=</span> <span class='id identifier rubyid_path'>path</span> <span class='op'>||</span> <span class='const'><span class='object_link'><a href="../../Compony.html" title="Compony (module)">Compony</a></span></span><span class='period'>.</span><span class='id identifier rubyid_button_defaults'><span class='object_link'><a href="../../Compony.html#button_defaults-class_method" title="Compony.button_defaults (method)">button_defaults</a></span></span><span class='lbracket'>[</span><span class='symbol'>:path</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>javascript:void(0)</span><span class='tstring_end'>'</span></span>
|
@@ -267,6 +269,8 @@
|
|
267
269
|
<span class='ivar'>@visible</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../../Compony.html" title="Compony (module)">Compony</a></span></span><span class='period'>.</span><span class='id identifier rubyid_button_defaults'><span class='object_link'><a href="../../Compony.html#button_defaults-class_method" title="Compony.button_defaults (method)">button_defaults</a></span></span><span class='lbracket'>[</span><span class='symbol'>:visible</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='ivar'>@visible</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
268
270
|
<span class='ivar'>@visible</span> <span class='op'>=</span> <span class='kw'>true</span> <span class='kw'>if</span> <span class='ivar'>@visible</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
269
271
|
<span class='ivar'>@title</span> <span class='op'>=</span> <span class='id identifier rubyid_title'>title</span> <span class='op'>||</span> <span class='const'><span class='object_link'><a href="../../Compony.html" title="Compony (module)">Compony</a></span></span><span class='period'>.</span><span class='id identifier rubyid_button_defaults'><span class='object_link'><a href="../../Compony.html#button_defaults-class_method" title="Compony.button_defaults (method)">button_defaults</a></span></span><span class='lbracket'>[</span><span class='symbol'>:title</span><span class='rbracket'>]</span>
|
272
|
+
<span class='ivar'>@button_params</span> <span class='op'>=</span> <span class='id identifier rubyid_button_params'>button_params</span>
|
273
|
+
<span class='ivar'>@value</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
|
270
274
|
|
271
275
|
<span class='id identifier rubyid_fail'>fail</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Unsupported button type </span><span class='embexpr_beg'>#{</span><span class='ivar'>@type</span><span class='embexpr_end'>}</span><span class='tstring_content'>, use on of: </span><span class='embexpr_beg'>#{</span><span class='const'><span class='object_link'><a href="#SUPPORTED_TYPES-constant" title="Compony::Components::Button::SUPPORTED_TYPES (constant)">SUPPORTED_TYPES</a></span></span><span class='period'>.</span><span class='id identifier rubyid_inspect'><span class='object_link'><a href="../Component.html#inspect-instance_method" title="Compony::Component#inspect (method)">inspect</a></span></span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='kw'>unless</span> <span class='const'><span class='object_link'><a href="#SUPPORTED_TYPES-constant" title="Compony::Components::Button::SUPPORTED_TYPES (constant)">SUPPORTED_TYPES</a></span></span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='ivar'>@type</span><span class='rparen'>)</span>
|
272
276
|
|
@@ -283,7 +287,7 @@
|
|
283
287
|
</div>
|
284
288
|
|
285
289
|
<div id="footer">
|
286
|
-
Generated on
|
290
|
+
Generated on Fri Dec 20 13:46:33 2024 by
|
287
291
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
288
292
|
0.9.37 (ruby-3.3.5).
|
289
293
|
</div>
|
@@ -374,7 +374,7 @@
|
|
374
374
|
</div>
|
375
375
|
|
376
376
|
<div id="footer">
|
377
|
-
Generated on
|
377
|
+
Generated on Fri Dec 20 13:46:33 2024 by
|
378
378
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
379
379
|
0.9.37 (ruby-3.3.5).
|
380
380
|
</div>
|
@@ -452,7 +452,7 @@
|
|
452
452
|
</div>
|
453
453
|
|
454
454
|
<div id="footer">
|
455
|
-
Generated on
|
455
|
+
Generated on Fri Dec 20 13:46:33 2024 by
|
456
456
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
457
457
|
0.9.37 (ruby-3.3.5).
|
458
458
|
</div>
|