compony 0.7.1 → 0.8.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +34 -0
- data/Gemfile.lock +1 -1
- data/README.md +10 -14
- data/VERSION +1 -1
- data/compony.gemspec +4 -4
- data/doc/ComponentGenerator.html +1 -1
- data/doc/Components.html +1 -1
- data/doc/ComponentsGenerator.html +1 -1
- data/doc/Compony/Component.html +193 -457
- 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 +3 -3
- data/doc/Compony/ComponentMixins/Default/Standalone/VerbDsl.html +1 -1
- data/doc/Compony/ComponentMixins/Default/Standalone.html +187 -1
- data/doc/Compony/ComponentMixins/Default.html +1 -1
- data/doc/Compony/ComponentMixins/Resourceful.html +2 -2
- data/doc/Compony/ComponentMixins.html +1 -1
- data/doc/Compony/Components/Button.html +2 -2
- data/doc/Compony/Components/Buttons/CssButton.html +282 -0
- data/doc/Compony/Components/Buttons/Link.html +252 -0
- data/doc/Compony/Components/Buttons.html +126 -0
- data/doc/Compony/Components/Destroy.html +11 -11
- data/doc/Compony/Components/Edit.html +14 -14
- data/doc/Compony/Components/Form.html +100 -100
- data/doc/Compony/Components/Index.html +2 -2
- data/doc/Compony/Components/List.html +3 -3
- data/doc/Compony/Components/New.html +2 -2
- data/doc/Compony/Components/Show.html +24 -24
- data/doc/Compony/Components/WithForm.html +3 -3
- data/doc/Compony/Components.html +5 -3
- data/doc/Compony/ControllerMixin.html +2 -2
- data/doc/Compony/Engine.html +1 -1
- data/doc/Compony/ExposedIntentsDsl.html +403 -0
- data/doc/Compony/Intent.html +1503 -0
- data/doc/Compony/MethodAccessibleHash.html +1 -1
- data/doc/Compony/ModelFields/Anchormodel.html +1 -1
- data/doc/Compony/ModelFields/Association.html +2 -2
- 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 +177 -14
- data/doc/Compony/Version.html +1 -1
- data/doc/Compony/ViewHelpers.html +15 -272
- data/doc/Compony/VirtualModel.html +1 -1
- data/doc/Compony.html +303 -837
- data/doc/ComponyController.html +1 -1
- data/doc/_index.html +30 -2
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +11 -18
- data/doc/guide/basic_component.md +12 -8
- data/doc/guide/example.md +17 -17
- data/doc/guide/feasibility.md +4 -2
- data/doc/guide/generators.md +4 -2
- data/doc/guide/inheritance.md +4 -2
- data/doc/guide/installation.md +4 -2
- data/doc/guide/intents.md +167 -0
- data/doc/guide/internal_datastructures.md +4 -2
- data/doc/guide/model_fields.md +4 -2
- data/doc/guide/nesting.md +5 -3
- data/doc/guide/ownership.md +5 -3
- data/doc/guide/pre_built_components/destroy.md +3 -3
- data/doc/guide/pre_built_components/edit.md +1 -1
- data/doc/guide/pre_built_components/form.md +1 -1
- data/doc/guide/pre_built_components/index.md +1 -1
- data/doc/guide/pre_built_components/list.md +1 -1
- data/doc/guide/pre_built_components/new.md +2 -2
- data/doc/guide/pre_built_components/show.md +1 -1
- data/doc/guide/pre_built_components/with_form.md +1 -1
- data/doc/guide/pre_built_components.md +4 -3
- data/doc/guide/resourceful.md +5 -3
- data/doc/guide/standalone.md +10 -2
- data/doc/guide/virtual_models.md +4 -2
- data/doc/index.html +11 -18
- data/doc/method_list.html +273 -161
- data/doc/top-level-namespace.html +1 -1
- data/lib/compony/component.rb +19 -48
- data/lib/compony/component_mixins/default/standalone/standalone_dsl.rb +2 -2
- data/lib/compony/component_mixins/default/standalone.rb +16 -0
- data/lib/compony/component_mixins/resourceful.rb +1 -1
- data/lib/compony/components/buttons/css_button.rb +32 -0
- data/lib/compony/components/buttons/link.rb +31 -0
- data/lib/compony/components/destroy.rb +9 -8
- data/lib/compony/components/edit.rb +5 -4
- data/lib/compony/components/form.rb +7 -1
- data/lib/compony/components/index.rb +2 -2
- data/lib/compony/components/list.rb +4 -4
- data/lib/compony/components/new.rb +1 -1
- data/lib/compony/components/show.rb +8 -11
- data/lib/compony/components/with_form.rb +1 -1
- data/lib/compony/exposed_intents_dsl.rb +29 -0
- data/lib/compony/intent.rb +145 -0
- data/lib/compony/model_fields/association.rb +1 -1
- data/lib/compony/request_context.rb +21 -0
- data/lib/compony/view_helpers.rb +5 -48
- data/lib/compony.rb +63 -149
- metadata +12 -6
- data/doc/guide/helpers.md +0 -156
- data/doc/guide/pre_built_components/button.md +0 -8
- data/doc/guide/root_actions.md +0 -67
- data/lib/compony/components/button.rb +0 -61
|
@@ -555,7 +555,7 @@
|
|
|
555
555
|
|
|
556
556
|
|
|
557
557
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="../Component.html" title="Compony::Component (class)">Compony::Component</a></span></h3>
|
|
558
|
-
<p class="inherited"><span class='object_link'><a href="../Component.html#
|
|
558
|
+
<p class="inherited"><span class='object_link'><a href="../Component.html#before_render-instance_method" title="Compony::Component#before_render (method)">#before_render</a></span>, <span class='object_link'><a href="../Component.html#comp_name-class_method" title="Compony::Component.comp_name (method)">comp_name</a></span>, <span class='object_link'><a href="../Component.html#content-instance_method" title="Compony::Component#content (method)">#content</a></span>, <span class='object_link'><a href="../Component.html#exposed_intents-instance_method" title="Compony::Component#exposed_intents (method)">#exposed_intents</a></span>, <span class='object_link'><a href="../Component.html#family_name-class_method" title="Compony::Component.family_name (method)">family_name</a></span>, <span class='object_link'><a href="../Component.html#id-instance_method" title="Compony::Component#id (method)">#id</a></span>, <span class='object_link'><a href="../Component.html#id_path-instance_method" title="Compony::Component#id_path (method)">#id_path</a></span>, <span class='object_link'><a href="../Component.html#id_path_hash-instance_method" title="Compony::Component#id_path_hash (method)">#id_path_hash</a></span>, <span class='object_link'><a href="../Component.html#inspect-instance_method" title="Compony::Component#inspect (method)">#inspect</a></span>, <span class='object_link'><a href="../Component.html#param_name-instance_method" title="Compony::Component#param_name (method)">#param_name</a></span>, <span class='object_link'><a href="../Component.html#path-instance_method" title="Compony::Component#path (method)">#path</a></span>, <span class='object_link'><a href="../Component.html#remove_content-instance_method" title="Compony::Component#remove_content (method)">#remove_content</a></span>, <span class='object_link'><a href="../Component.html#remove_content!-instance_method" title="Compony::Component#remove_content! (method)">#remove_content!</a></span>, <span class='object_link'><a href="../Component.html#render-instance_method" title="Compony::Component#render (method)">#render</a></span>, <span class='object_link'><a href="../Component.html#resourceful%3F-instance_method" title="Compony::Component#resourceful? (method)">#resourceful?</a></span>, <span class='object_link'><a href="../Component.html#root_comp-instance_method" title="Compony::Component#root_comp (method)">#root_comp</a></span>, <span class='object_link'><a href="../Component.html#root_comp%3F-instance_method" title="Compony::Component#root_comp? (method)">#root_comp?</a></span>, <span class='object_link'><a href="../Component.html#setup-class_method" title="Compony::Component.setup (method)">setup</a></span>, <span class='object_link'><a href="../Component.html#sub_comp-instance_method" title="Compony::Component#sub_comp (method)">#sub_comp</a></span></p>
|
|
559
559
|
<div id="constructor_details" class="method_details_list">
|
|
560
560
|
<h2>Constructor Details</h2>
|
|
561
561
|
|
|
@@ -639,12 +639,12 @@
|
|
|
639
639
|
<pre class="lines">
|
|
640
640
|
|
|
641
641
|
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
642
|
+
170
|
|
643
|
+
171
|
|
644
|
+
172</pre>
|
|
645
645
|
</td>
|
|
646
646
|
<td>
|
|
647
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
|
647
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 170</span>
|
|
648
648
|
|
|
649
649
|
<span class='kw'>def</span> <span class='id identifier rubyid_collect'>collect</span><span class='lparen'>(</span><span class='op'>...</span><span class='rparen'>)</span>
|
|
650
650
|
<span class='const'><span class='object_link'><a href="../../Compony.html" title="Compony (module)">Compony</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../ModelFields.html" title="Compony::ModelFields (module)">ModelFields</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../ModelFields/Anchormodel.html" title="Compony::ModelFields::Anchormodel (class)">Anchormodel</a></span></span><span class='period'>.</span><span class='id identifier rubyid_collect'><span class='object_link'><a href="../ModelFields/Anchormodel.html#collect-class_method" title="Compony::ModelFields::Anchormodel.collect (method)">collect</a></span></span><span class='lparen'>(</span><span class='op'>...</span><span class='rparen'>)</span>
|
|
@@ -680,12 +680,12 @@
|
|
|
680
680
|
<pre class="lines">
|
|
681
681
|
|
|
682
682
|
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
683
|
+
175
|
|
684
|
+
176
|
|
685
|
+
177</pre>
|
|
686
686
|
</td>
|
|
687
687
|
<td>
|
|
688
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
|
688
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 175</span>
|
|
689
689
|
|
|
690
690
|
<span class='kw'>def</span> <span class='id identifier rubyid_disable!'>disable!</span>
|
|
691
691
|
<span class='ivar'>@form_disabled</span> <span class='op'>=</span> <span class='kw'>true</span>
|
|
@@ -721,13 +721,13 @@
|
|
|
721
721
|
<pre class="lines">
|
|
722
722
|
|
|
723
723
|
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
724
|
+
164
|
|
725
|
+
165
|
|
726
|
+
166
|
|
727
|
+
167</pre>
|
|
728
728
|
</td>
|
|
729
729
|
<td>
|
|
730
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
|
730
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 164</span>
|
|
731
731
|
|
|
732
732
|
<span class='kw'>def</span> <span class='id identifier rubyid_f'>f</span>
|
|
733
733
|
<span class='id identifier rubyid_fail'>fail</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>The `f` method may only be called inside `form_fields` for </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_content'>.</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='ivar'>@simpleform</span>
|
|
@@ -764,12 +764,6 @@
|
|
|
764
764
|
<pre class="lines">
|
|
765
765
|
|
|
766
766
|
|
|
767
|
-
100
|
|
768
|
-
101
|
|
769
|
-
102
|
|
770
|
-
103
|
|
771
|
-
104
|
|
772
|
-
105
|
|
773
767
|
106
|
|
774
768
|
107
|
|
775
769
|
108
|
|
@@ -796,10 +790,16 @@
|
|
|
796
790
|
129
|
|
797
791
|
130
|
|
798
792
|
131
|
|
799
|
-
132
|
|
793
|
+
132
|
|
794
|
+
133
|
|
795
|
+
134
|
|
796
|
+
135
|
|
797
|
+
136
|
|
798
|
+
137
|
|
799
|
+
138</pre>
|
|
800
800
|
</td>
|
|
801
801
|
<td>
|
|
802
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
|
802
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 106</span>
|
|
803
803
|
|
|
804
804
|
<span class='kw'>def</span> <span class='id identifier rubyid_field'>field</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='label'>multilang:</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_input_opts'>input_opts</span><span class='rparen'>)</span>
|
|
805
805
|
<span class='id identifier rubyid_fail'>fail</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>The `field` method may only be called inside `form_fields` for </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_content'>.</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='ivar'>@simpleform</span>
|
|
@@ -865,13 +865,13 @@
|
|
|
865
865
|
<pre class="lines">
|
|
866
866
|
|
|
867
867
|
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
868
|
+
59
|
|
869
|
+
60
|
|
870
|
+
61
|
|
871
|
+
62</pre>
|
|
872
872
|
</td>
|
|
873
873
|
<td>
|
|
874
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
|
874
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 59</span>
|
|
875
875
|
|
|
876
876
|
<span class='kw'>def</span> <span class='id identifier rubyid_form_fields'>form_fields</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
|
877
877
|
<span class='kw'>return</span> <span class='ivar'>@form_fields</span> <span class='kw'>unless</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
|
|
@@ -908,12 +908,12 @@
|
|
|
908
908
|
<pre class="lines">
|
|
909
909
|
|
|
910
910
|
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
911
|
+
180
|
|
912
|
+
181
|
|
913
|
+
182</pre>
|
|
914
914
|
</td>
|
|
915
915
|
<td>
|
|
916
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
|
916
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 180</span>
|
|
917
917
|
|
|
918
918
|
<span class='kw'>def</span> <span class='id identifier rubyid_form_params'>form_params</span><span class='lparen'>(</span><span class='op'>**</span><span class='id identifier rubyid_new_form_params'>new_form_params</span><span class='rparen'>)</span>
|
|
919
919
|
<span class='ivar'>@form_params</span> <span class='op'>=</span> <span class='id identifier rubyid_new_form_params'>new_form_params</span>
|
|
@@ -949,12 +949,6 @@
|
|
|
949
949
|
<pre class="lines">
|
|
950
950
|
|
|
951
951
|
|
|
952
|
-
137
|
|
953
|
-
138
|
|
954
|
-
139
|
|
955
|
-
140
|
|
956
|
-
141
|
|
957
|
-
142
|
|
958
952
|
143
|
|
959
953
|
144
|
|
960
954
|
145
|
|
@@ -966,10 +960,16 @@
|
|
|
966
960
|
151
|
|
967
961
|
152
|
|
968
962
|
153
|
|
969
|
-
154
|
|
963
|
+
154
|
|
964
|
+
155
|
|
965
|
+
156
|
|
966
|
+
157
|
|
967
|
+
158
|
|
968
|
+
159
|
|
969
|
+
160</pre>
|
|
970
970
|
</td>
|
|
971
971
|
<td>
|
|
972
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
|
972
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 143</span>
|
|
973
973
|
|
|
974
974
|
<span class='kw'>def</span> <span class='id identifier rubyid_pw_field'>pw_field</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_input_opts'>input_opts</span><span class='rparen'>)</span>
|
|
975
975
|
<span class='id identifier rubyid_fail'>fail</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>The `pw_field` method may only be called inside `form_fields` for </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_content'>.</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='ivar'>@simpleform</span>
|
|
@@ -1020,17 +1020,17 @@
|
|
|
1020
1020
|
<pre class="lines">
|
|
1021
1021
|
|
|
1022
1022
|
|
|
1023
|
-
232
|
|
1024
|
-
233
|
|
1025
|
-
234
|
|
1026
|
-
235
|
|
1027
|
-
236
|
|
1028
|
-
237
|
|
1029
1023
|
238
|
|
1030
|
-
239
|
|
1024
|
+
239
|
|
1025
|
+
240
|
|
1026
|
+
241
|
|
1027
|
+
242
|
|
1028
|
+
243
|
|
1029
|
+
244
|
|
1030
|
+
245</pre>
|
|
1031
1031
|
</td>
|
|
1032
1032
|
<td>
|
|
1033
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
|
1033
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 238</span>
|
|
1034
1034
|
|
|
1035
1035
|
<span class='kw'>def</span> <span class='id identifier rubyid_schema'>schema</span><span class='lparen'>(</span><span class='id identifier rubyid_wrapper_key'>wrapper_key</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
|
1036
1036
|
<span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
|
|
@@ -1071,12 +1071,6 @@
|
|
|
1071
1071
|
<pre class="lines">
|
|
1072
1072
|
|
|
1073
1073
|
|
|
1074
|
-
69
|
|
1075
|
-
70
|
|
1076
|
-
71
|
|
1077
|
-
72
|
|
1078
|
-
73
|
|
1079
|
-
74
|
|
1080
1074
|
75
|
|
1081
1075
|
76
|
|
1082
1076
|
77
|
|
@@ -1084,10 +1078,16 @@
|
|
|
1084
1078
|
79
|
|
1085
1079
|
80
|
|
1086
1080
|
81
|
|
1087
|
-
82
|
|
1081
|
+
82
|
|
1082
|
+
83
|
|
1083
|
+
84
|
|
1084
|
+
85
|
|
1085
|
+
86
|
|
1086
|
+
87
|
|
1087
|
+
88</pre>
|
|
1088
1088
|
</td>
|
|
1089
1089
|
<td>
|
|
1090
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
|
1090
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 75</span>
|
|
1091
1091
|
|
|
1092
1092
|
<span class='kw'>def</span> <span class='id identifier rubyid_schema_block_for'>schema_block_for</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='id identifier rubyid_controller'>controller</span><span class='rparen'>)</span>
|
|
1093
1093
|
<span class='kw'>if</span> <span class='ivar'>@schema_block</span>
|
|
@@ -1134,12 +1134,6 @@
|
|
|
1134
1134
|
<pre class="lines">
|
|
1135
1135
|
|
|
1136
1136
|
|
|
1137
|
-
189
|
|
1138
|
-
190
|
|
1139
|
-
191
|
|
1140
|
-
192
|
|
1141
|
-
193
|
|
1142
|
-
194
|
|
1143
1137
|
195
|
|
1144
1138
|
196
|
|
1145
1139
|
197
|
|
@@ -1152,10 +1146,16 @@
|
|
|
1152
1146
|
204
|
|
1153
1147
|
205
|
|
1154
1148
|
206
|
|
1155
|
-
207
|
|
1149
|
+
207
|
|
1150
|
+
208
|
|
1151
|
+
209
|
|
1152
|
+
210
|
|
1153
|
+
211
|
|
1154
|
+
212
|
|
1155
|
+
213</pre>
|
|
1156
1156
|
</td>
|
|
1157
1157
|
<td>
|
|
1158
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
|
1158
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 195</span>
|
|
1159
1159
|
|
|
1160
1160
|
<span class='kw'>def</span> <span class='id identifier rubyid_schema_field'>schema_field</span><span class='lparen'>(</span><span class='id identifier rubyid_field_name'>field_name</span><span class='comma'>,</span> <span class='label'>multilang:</span> <span class='kw'>false</span><span class='rparen'>)</span>
|
|
1161
1161
|
<span class='kw'>if</span> <span class='id identifier rubyid_multilang'>multilang</span>
|
|
@@ -1207,12 +1207,12 @@
|
|
|
1207
1207
|
<pre class="lines">
|
|
1208
1208
|
|
|
1209
1209
|
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1210
|
+
233
|
|
1211
|
+
234
|
|
1212
|
+
235</pre>
|
|
1213
1213
|
</td>
|
|
1214
1214
|
<td>
|
|
1215
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
|
1215
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 233</span>
|
|
1216
1216
|
|
|
1217
1217
|
<span class='kw'>def</span> <span class='id identifier rubyid_schema_fields'>schema_fields</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_field_names'>field_names</span><span class='rparen'>)</span>
|
|
1218
1218
|
<span class='id identifier rubyid_field_names'>field_names</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_field_name'>field_name</span><span class='op'>|</span> <span class='id identifier rubyid_schema_field'>schema_field</span><span class='lparen'>(</span><span class='id identifier rubyid_field_name'>field_name</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
|
@@ -1248,12 +1248,12 @@
|
|
|
1248
1248
|
<pre class="lines">
|
|
1249
1249
|
|
|
1250
1250
|
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1251
|
+
188
|
|
1252
|
+
189
|
|
1253
|
+
190</pre>
|
|
1254
1254
|
</td>
|
|
1255
1255
|
<td>
|
|
1256
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
|
1256
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 188</span>
|
|
1257
1257
|
|
|
1258
1258
|
<span class='kw'>def</span> <span class='id identifier rubyid_schema_line'>schema_line</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
|
1259
1259
|
<span class='ivar'>@schema_lines_for_data</span> <span class='op'><<</span> <span class='id identifier rubyid_proc'>proc</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid__data'>_data</span><span class='comma'>,</span> <span class='id identifier rubyid__controller'>_controller</span><span class='op'>|</span> <span class='id identifier rubyid_block'>block</span> <span class='rbrace'>}</span>
|
|
@@ -1289,12 +1289,6 @@
|
|
|
1289
1289
|
<pre class="lines">
|
|
1290
1290
|
|
|
1291
1291
|
|
|
1292
|
-
211
|
|
1293
|
-
212
|
|
1294
|
-
213
|
|
1295
|
-
214
|
|
1296
|
-
215
|
|
1297
|
-
216
|
|
1298
1292
|
217
|
|
1299
1293
|
218
|
|
1300
1294
|
219
|
|
@@ -1302,10 +1296,16 @@
|
|
|
1302
1296
|
221
|
|
1303
1297
|
222
|
|
1304
1298
|
223
|
|
1305
|
-
224
|
|
1299
|
+
224
|
|
1300
|
+
225
|
|
1301
|
+
226
|
|
1302
|
+
227
|
|
1303
|
+
228
|
|
1304
|
+
229
|
|
1305
|
+
230</pre>
|
|
1306
1306
|
</td>
|
|
1307
1307
|
<td>
|
|
1308
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
|
1308
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 217</span>
|
|
1309
1309
|
|
|
1310
1310
|
<span class='kw'>def</span> <span class='id identifier rubyid_schema_pw_field'>schema_pw_field</span><span class='lparen'>(</span><span class='id identifier rubyid_field_name'>field_name</span><span class='rparen'>)</span>
|
|
1311
1311
|
<span class='comment'># This runs upon component setup.
|
|
@@ -1352,17 +1352,17 @@
|
|
|
1352
1352
|
<pre class="lines">
|
|
1353
1353
|
|
|
1354
1354
|
|
|
1355
|
-
59
|
|
1356
|
-
60
|
|
1357
|
-
61
|
|
1358
|
-
62
|
|
1359
|
-
63
|
|
1360
|
-
64
|
|
1361
1355
|
65
|
|
1362
|
-
66
|
|
1356
|
+
66
|
|
1357
|
+
67
|
|
1358
|
+
68
|
|
1359
|
+
69
|
|
1360
|
+
70
|
|
1361
|
+
71
|
|
1362
|
+
72</pre>
|
|
1363
1363
|
</td>
|
|
1364
1364
|
<td>
|
|
1365
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
|
1365
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 65</span>
|
|
1366
1366
|
|
|
1367
1367
|
<span class='kw'>def</span> <span class='id identifier rubyid_schema_wrapper_key_for'>schema_wrapper_key_for</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
|
|
1368
1368
|
<span class='kw'>if</span> <span class='ivar'>@schema_wrapper_key</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span>
|
|
@@ -1403,12 +1403,12 @@
|
|
|
1403
1403
|
<pre class="lines">
|
|
1404
1404
|
|
|
1405
1405
|
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1406
|
+
248
|
|
1407
|
+
249
|
|
1408
|
+
250</pre>
|
|
1409
1409
|
</td>
|
|
1410
1410
|
<td>
|
|
1411
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
|
1411
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 248</span>
|
|
1412
1412
|
|
|
1413
1413
|
<span class='kw'>def</span> <span class='id identifier rubyid_skip_autofocus'>skip_autofocus</span>
|
|
1414
1414
|
<span class='ivar'>@skip_autofocus</span> <span class='op'>=</span> <span class='kw'>true</span>
|
|
@@ -1452,17 +1452,17 @@
|
|
|
1452
1452
|
<pre class="lines">
|
|
1453
1453
|
|
|
1454
1454
|
|
|
1455
|
-
88
|
|
1456
|
-
89
|
|
1457
|
-
90
|
|
1458
|
-
91
|
|
1459
|
-
92
|
|
1460
|
-
93
|
|
1461
1455
|
94
|
|
1462
|
-
95
|
|
1456
|
+
95
|
|
1457
|
+
96
|
|
1458
|
+
97
|
|
1459
|
+
98
|
|
1460
|
+
99
|
|
1461
|
+
100
|
|
1462
|
+
101</pre>
|
|
1463
1463
|
</td>
|
|
1464
1464
|
<td>
|
|
1465
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
|
1465
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 94</span>
|
|
1466
1466
|
|
|
1467
1467
|
<span class='kw'>def</span> <span class='id identifier rubyid_with_simpleform'>with_simpleform</span><span class='lparen'>(</span><span class='id identifier rubyid_simpleform'>simpleform</span><span class='comma'>,</span> <span class='id identifier rubyid_controller'>controller</span><span class='rparen'>)</span>
|
|
1468
1468
|
<span class='ivar'>@simpleform</span> <span class='op'>=</span> <span class='id identifier rubyid_simpleform'>simpleform</span>
|
|
@@ -1482,7 +1482,7 @@
|
|
|
1482
1482
|
</div>
|
|
1483
1483
|
|
|
1484
1484
|
<div id="footer">
|
|
1485
|
-
Generated on Thu Nov
|
|
1485
|
+
Generated on Thu Nov 27 16:02:22 2025 by
|
|
1486
1486
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1487
1487
|
0.9.34 (ruby-3.3.5).
|
|
1488
1488
|
</div>
|
|
@@ -156,13 +156,13 @@
|
|
|
156
156
|
|
|
157
157
|
|
|
158
158
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="../Component.html" title="Compony::Component (class)">Compony::Component</a></span></h3>
|
|
159
|
-
<p class="inherited"><span class='object_link'><a href="../Component.html#
|
|
159
|
+
<p class="inherited"><span class='object_link'><a href="../Component.html#before_render-instance_method" title="Compony::Component#before_render (method)">#before_render</a></span>, <span class='object_link'><a href="../Component.html#comp_name-class_method" title="Compony::Component.comp_name (method)">comp_name</a></span>, <span class='object_link'><a href="../Component.html#content-instance_method" title="Compony::Component#content (method)">#content</a></span>, <span class='object_link'><a href="../Component.html#exposed_intents-instance_method" title="Compony::Component#exposed_intents (method)">#exposed_intents</a></span>, <span class='object_link'><a href="../Component.html#family_name-class_method" title="Compony::Component.family_name (method)">family_name</a></span>, <span class='object_link'><a href="../Component.html#id-instance_method" title="Compony::Component#id (method)">#id</a></span>, <span class='object_link'><a href="../Component.html#id_path-instance_method" title="Compony::Component#id_path (method)">#id_path</a></span>, <span class='object_link'><a href="../Component.html#id_path_hash-instance_method" title="Compony::Component#id_path_hash (method)">#id_path_hash</a></span>, <span class='object_link'><a href="../Component.html#initialize-instance_method" title="Compony::Component#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="../Component.html#inspect-instance_method" title="Compony::Component#inspect (method)">#inspect</a></span>, <span class='object_link'><a href="../Component.html#param_name-instance_method" title="Compony::Component#param_name (method)">#param_name</a></span>, <span class='object_link'><a href="../Component.html#path-instance_method" title="Compony::Component#path (method)">#path</a></span>, <span class='object_link'><a href="../Component.html#remove_content-instance_method" title="Compony::Component#remove_content (method)">#remove_content</a></span>, <span class='object_link'><a href="../Component.html#remove_content!-instance_method" title="Compony::Component#remove_content! (method)">#remove_content!</a></span>, <span class='object_link'><a href="../Component.html#render-instance_method" title="Compony::Component#render (method)">#render</a></span>, <span class='object_link'><a href="../Component.html#resourceful%3F-instance_method" title="Compony::Component#resourceful? (method)">#resourceful?</a></span>, <span class='object_link'><a href="../Component.html#root_comp-instance_method" title="Compony::Component#root_comp (method)">#root_comp</a></span>, <span class='object_link'><a href="../Component.html#root_comp%3F-instance_method" title="Compony::Component#root_comp? (method)">#root_comp?</a></span>, <span class='object_link'><a href="../Component.html#setup-class_method" title="Compony::Component.setup (method)">setup</a></span>, <span class='object_link'><a href="../Component.html#sub_comp-instance_method" title="Compony::Component#sub_comp (method)">#sub_comp</a></span></p>
|
|
160
160
|
|
|
161
161
|
|
|
162
162
|
</div>
|
|
163
163
|
|
|
164
164
|
<div id="footer">
|
|
165
|
-
Generated on Thu Nov
|
|
165
|
+
Generated on Thu Nov 27 16:02:22 2025 by
|
|
166
166
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
167
167
|
0.9.34 (ruby-3.3.5).
|
|
168
168
|
</div>
|
|
@@ -841,7 +841,7 @@
|
|
|
841
841
|
|
|
842
842
|
|
|
843
843
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="../Component.html" title="Compony::Component (class)">Compony::Component</a></span></h3>
|
|
844
|
-
<p class="inherited"><span class='object_link'><a href="../Component.html#
|
|
844
|
+
<p class="inherited"><span class='object_link'><a href="../Component.html#before_render-instance_method" title="Compony::Component#before_render (method)">#before_render</a></span>, <span class='object_link'><a href="../Component.html#comp_name-class_method" title="Compony::Component.comp_name (method)">comp_name</a></span>, <span class='object_link'><a href="../Component.html#content-instance_method" title="Compony::Component#content (method)">#content</a></span>, <span class='object_link'><a href="../Component.html#exposed_intents-instance_method" title="Compony::Component#exposed_intents (method)">#exposed_intents</a></span>, <span class='object_link'><a href="../Component.html#family_name-class_method" title="Compony::Component.family_name (method)">family_name</a></span>, <span class='object_link'><a href="../Component.html#id-instance_method" title="Compony::Component#id (method)">#id</a></span>, <span class='object_link'><a href="../Component.html#id_path-instance_method" title="Compony::Component#id_path (method)">#id_path</a></span>, <span class='object_link'><a href="../Component.html#id_path_hash-instance_method" title="Compony::Component#id_path_hash (method)">#id_path_hash</a></span>, <span class='object_link'><a href="../Component.html#inspect-instance_method" title="Compony::Component#inspect (method)">#inspect</a></span>, <span class='object_link'><a href="../Component.html#param_name-instance_method" title="Compony::Component#param_name (method)">#param_name</a></span>, <span class='object_link'><a href="../Component.html#path-instance_method" title="Compony::Component#path (method)">#path</a></span>, <span class='object_link'><a href="../Component.html#remove_content-instance_method" title="Compony::Component#remove_content (method)">#remove_content</a></span>, <span class='object_link'><a href="../Component.html#remove_content!-instance_method" title="Compony::Component#remove_content! (method)">#remove_content!</a></span>, <span class='object_link'><a href="../Component.html#render-instance_method" title="Compony::Component#render (method)">#render</a></span>, <span class='object_link'><a href="../Component.html#resourceful%3F-instance_method" title="Compony::Component#resourceful? (method)">#resourceful?</a></span>, <span class='object_link'><a href="../Component.html#root_comp-instance_method" title="Compony::Component#root_comp (method)">#root_comp</a></span>, <span class='object_link'><a href="../Component.html#root_comp%3F-instance_method" title="Compony::Component#root_comp? (method)">#root_comp?</a></span>, <span class='object_link'><a href="../Component.html#setup-class_method" title="Compony::Component.setup (method)">setup</a></span>, <span class='object_link'><a href="../Component.html#sub_comp-instance_method" title="Compony::Component#sub_comp (method)">#sub_comp</a></span></p>
|
|
845
845
|
<div id="constructor_details" class="method_details_list">
|
|
846
846
|
<h2>Constructor Details</h2>
|
|
847
847
|
|
|
@@ -2129,7 +2129,7 @@
|
|
|
2129
2129
|
<span class='kw'>unless</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
|
|
2130
2130
|
<span class='id identifier rubyid_block'>block</span> <span class='op'>=</span> <span class='id identifier rubyid_proc'>proc</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_record'>record</span><span class='op'>|</span>
|
|
2131
2131
|
<span class='kw'>next</span> <span class='kw'>if</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_comp_class_for'><span class='object_link'><a href="../../Compony.html#comp_class_for-class_method" title="Compony.comp_class_for (method)">comp_class_for</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_record'>record</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
2132
|
-
<span class='id identifier
|
|
2132
|
+
<span class='id identifier rubyid_render_intent'>render_intent</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_record'>record</span><span class='comma'>,</span> <span class='op'>**</span><span class='lbrace'>{</span> <span class='label'>label:</span> <span class='lbrace'>{</span> <span class='label'>format:</span> <span class='symbol'>:short</span> <span class='rbrace'>}</span> <span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_deep_merge'>deep_merge</span><span class='lparen'>(</span><span class='id identifier rubyid_button_opts'>button_opts</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
|
2133
2133
|
<span class='kw'>end</span>
|
|
2134
2134
|
<span class='kw'>end</span>
|
|
2135
2135
|
<span class='ivar'>@row_actions</span><span class='period'>.</span><span class='id identifier rubyid_natural_push'>natural_push</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_block'>block</span><span class='comma'>,</span> <span class='op'>**</span><span class='rparen'>)</span>
|
|
@@ -2810,7 +2810,7 @@
|
|
|
2810
2810
|
</div>
|
|
2811
2811
|
|
|
2812
2812
|
<div id="footer">
|
|
2813
|
-
Generated on Thu Nov
|
|
2813
|
+
Generated on Thu Nov 27 16:02:22 2025 by
|
|
2814
2814
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
2815
2815
|
0.9.34 (ruby-3.3.5).
|
|
2816
2816
|
</div>
|
|
@@ -276,7 +276,7 @@
|
|
|
276
276
|
|
|
277
277
|
|
|
278
278
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="../Component.html" title="Compony::Component (class)">Compony::Component</a></span></h3>
|
|
279
|
-
<p class="inherited"><span class='object_link'><a href="../Component.html#
|
|
279
|
+
<p class="inherited"><span class='object_link'><a href="../Component.html#before_render-instance_method" title="Compony::Component#before_render (method)">#before_render</a></span>, <span class='object_link'><a href="../Component.html#comp_name-class_method" title="Compony::Component.comp_name (method)">comp_name</a></span>, <span class='object_link'><a href="../Component.html#content-instance_method" title="Compony::Component#content (method)">#content</a></span>, <span class='object_link'><a href="../Component.html#exposed_intents-instance_method" title="Compony::Component#exposed_intents (method)">#exposed_intents</a></span>, <span class='object_link'><a href="../Component.html#family_name-class_method" title="Compony::Component.family_name (method)">family_name</a></span>, <span class='object_link'><a href="../Component.html#id-instance_method" title="Compony::Component#id (method)">#id</a></span>, <span class='object_link'><a href="../Component.html#id_path-instance_method" title="Compony::Component#id_path (method)">#id_path</a></span>, <span class='object_link'><a href="../Component.html#id_path_hash-instance_method" title="Compony::Component#id_path_hash (method)">#id_path_hash</a></span>, <span class='object_link'><a href="../Component.html#initialize-instance_method" title="Compony::Component#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="../Component.html#inspect-instance_method" title="Compony::Component#inspect (method)">#inspect</a></span>, <span class='object_link'><a href="../Component.html#param_name-instance_method" title="Compony::Component#param_name (method)">#param_name</a></span>, <span class='object_link'><a href="../Component.html#path-instance_method" title="Compony::Component#path (method)">#path</a></span>, <span class='object_link'><a href="../Component.html#remove_content-instance_method" title="Compony::Component#remove_content (method)">#remove_content</a></span>, <span class='object_link'><a href="../Component.html#remove_content!-instance_method" title="Compony::Component#remove_content! (method)">#remove_content!</a></span>, <span class='object_link'><a href="../Component.html#render-instance_method" title="Compony::Component#render (method)">#render</a></span>, <span class='object_link'><a href="../Component.html#resourceful%3F-instance_method" title="Compony::Component#resourceful? (method)">#resourceful?</a></span>, <span class='object_link'><a href="../Component.html#root_comp-instance_method" title="Compony::Component#root_comp (method)">#root_comp</a></span>, <span class='object_link'><a href="../Component.html#root_comp%3F-instance_method" title="Compony::Component#root_comp? (method)">#root_comp?</a></span>, <span class='object_link'><a href="../Component.html#setup-class_method" title="Compony::Component.setup (method)">setup</a></span>, <span class='object_link'><a href="../Component.html#sub_comp-instance_method" title="Compony::Component#sub_comp (method)">#sub_comp</a></span></p>
|
|
280
280
|
|
|
281
281
|
|
|
282
282
|
<div id="instance_method_details" class="method_details_list">
|
|
@@ -452,7 +452,7 @@
|
|
|
452
452
|
</div>
|
|
453
453
|
|
|
454
454
|
<div id="footer">
|
|
455
|
-
Generated on Thu Nov
|
|
455
|
+
Generated on Thu Nov 27 16:02:22 2025 by
|
|
456
456
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
457
457
|
0.9.34 (ruby-3.3.5).
|
|
458
458
|
</div>
|