active_element 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +12 -0
- data/.strong_versions.yml +2 -0
- data/Gemfile +10 -2
- data/Gemfile.lock +229 -4
- data/Rakefile +1 -0
- data/active_element.gemspec +7 -0
- data/app/assets/config/active_element/manifest.js +2 -0
- data/app/assets/javascripts/active_element/application.js +10 -0
- data/app/assets/javascripts/active_element/confirm.js +67 -0
- data/app/assets/javascripts/active_element/form.js +61 -0
- data/app/assets/javascripts/active_element/json_field.js +316 -0
- data/app/assets/javascripts/active_element/pagination.js +18 -0
- data/app/assets/javascripts/active_element/search_field.js +127 -0
- data/app/assets/javascripts/active_element/secret.js +40 -0
- data/app/assets/javascripts/active_element/setup.js +36 -0
- data/app/assets/javascripts/active_element/theme.js +42 -0
- data/app/assets/stylesheets/active_element/_variables.scss +142 -0
- data/app/assets/stylesheets/active_element/application.scss +77 -0
- data/app/controllers/active_element/application_controller.rb +41 -0
- data/app/controllers/active_element/text_searches_controller.rb +189 -0
- data/app/views/active_element/components/_horizontal_tabs.html.erb +32 -0
- data/app/views/active_element/components/_vertical_tabs.html.erb +38 -0
- data/app/views/active_element/components/button.html.erb +27 -0
- data/app/views/active_element/components/fields/_boolean.html.erb +11 -0
- data/app/views/active_element/components/form/_check_box.html.erb +3 -0
- data/app/views/active_element/components/form/_check_boxes.html.erb +33 -0
- data/app/views/active_element/components/form/_field.html.erb +28 -0
- data/app/views/active_element/components/form/_generic_field.html.erb +3 -0
- data/app/views/active_element/components/form/_json.html.erb +12 -0
- data/app/views/active_element/components/form/_label.html.erb +17 -0
- data/app/views/active_element/components/form/_option_groups_summary.html.erb +17 -0
- data/app/views/active_element/components/form/_select.html.erb +4 -0
- data/app/views/active_element/components/form/_summary.html.erb +40 -0
- data/app/views/active_element/components/form/_templates.html.erb +85 -0
- data/app/views/active_element/components/form/_text_area.html.erb +4 -0
- data/app/views/active_element/components/form/_text_search.html.erb +16 -0
- data/app/views/active_element/components/form.html.erb +78 -0
- data/app/views/active_element/components/json.html.erb +8 -0
- data/app/views/active_element/components/page_description.html.erb +3 -0
- data/app/views/active_element/components/secret/_field.html.erb +1 -0
- data/app/views/active_element/components/secret/_templates.html.erb +11 -0
- data/app/views/active_element/components/table/_collection_row.html.erb +30 -0
- data/app/views/active_element/components/table/_grouped_collection.html.erb +88 -0
- data/app/views/active_element/components/table/_pagination.html.erb +17 -0
- data/app/views/active_element/components/table/_ungrouped_collection.html.erb +49 -0
- data/app/views/active_element/components/table/collection.html.erb +39 -0
- data/app/views/active_element/components/table/item.html.erb +39 -0
- data/app/views/active_element/components/tabs.html.erb +7 -0
- data/app/views/active_element/decorators/_boolean.html.erb +5 -0
- data/app/views/active_element/decorators/_date.html.erb +3 -0
- data/app/views/active_element/decorators/_datetime.html.erb +3 -0
- data/app/views/active_element/decorators/_time.html.erb +3 -0
- data/app/views/active_element/forbidden.html.erb +33 -0
- data/app/views/active_element/main_menu/_item.html.erb +9 -0
- data/app/views/active_element/navbar/_menu.html.erb +30 -0
- data/app/views/active_element/theme/_select.html.erb +1 -0
- data/app/views/active_element/theme/_templates.html.erb +6 -0
- data/app/views/kaminari/_first_page.html.erb +3 -0
- data/app/views/kaminari/_gap.html.erb +3 -0
- data/app/views/kaminari/_last_page.html.erb +3 -0
- data/app/views/kaminari/_next_page.html.erb +3 -0
- data/app/views/kaminari/_page.html.erb +9 -0
- data/app/views/kaminari/_paginator.html.erb +17 -0
- data/app/views/kaminari/_prev_page.html.erb +3 -0
- data/app/views/layouts/active_element.html.erb +65 -0
- data/app/views/layouts/active_element_error.html.erb +40 -0
- data/config/routes.rb +5 -0
- data/lib/active_element/active_menu_link.rb +80 -0
- data/lib/active_element/active_record_text_search_authorization.rb +12 -0
- data/lib/active_element/colorized_string.rb +33 -0
- data/lib/active_element/component.rb +122 -0
- data/lib/active_element/components/button.rb +156 -0
- data/lib/active_element/components/collection_table.rb +118 -0
- data/lib/active_element/components/form.rb +210 -0
- data/lib/active_element/components/item_table.rb +57 -0
- data/lib/active_element/components/json.rb +31 -0
- data/lib/active_element/components/link_helpers.rb +9 -0
- data/lib/active_element/components/page_description.rb +28 -0
- data/lib/active_element/components/secret_fields.rb +15 -0
- data/lib/active_element/components/tab.rb +37 -0
- data/lib/active_element/components/tabs.rb +35 -0
- data/lib/active_element/components/translations.rb +18 -0
- data/lib/active_element/components/util/association_mapping.rb +80 -0
- data/lib/active_element/components/util/decorator.rb +107 -0
- data/lib/active_element/components/util/display_value_mapping.rb +48 -0
- data/lib/active_element/components/util/field_mapping.rb +144 -0
- data/lib/active_element/components/util/form_field_mapping.rb +104 -0
- data/lib/active_element/components/util/form_value_mapping.rb +49 -0
- data/lib/active_element/components/util/i18n.rb +66 -0
- data/lib/active_element/components/util/record_mapping.rb +111 -0
- data/lib/active_element/components/util.rb +43 -0
- data/lib/active_element/components.rb +20 -0
- data/lib/active_element/controller_action.rb +91 -0
- data/lib/active_element/engine.rb +26 -0
- data/lib/active_element/permissions_check.rb +101 -0
- data/lib/active_element/rails_component.rb +40 -0
- data/lib/active_element/route.rb +112 -0
- data/lib/active_element/routes.rb +62 -0
- data/lib/active_element/version.rb +1 -1
- data/lib/active_element.rb +91 -1
- data/lib/tasks/active_element.rake +23 -0
- data/rspec-documentation/dummy +1 -0
- data/rspec-documentation/pages/Components/Forms.md +1 -0
- data/rspec-documentation/pages/Components/Tables.md +47 -0
- data/rspec-documentation/pages/Components/Tabs.md +1 -0
- data/rspec-documentation/pages/Components.md +1 -0
- data/rspec-documentation/pages/Decorators/Inline Decorators.md +1 -0
- data/rspec-documentation/pages/Decorators/View Decorators.md +1 -0
- data/rspec-documentation/pages/Index.md +3 -0
- data/rspec-documentation/pages/Util/I18n.md +1 -0
- data/rspec-documentation/spec_helper.rb +35 -0
- metadata +191 -3
metadata
CHANGED
@@ -1,15 +1,99 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_element
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Farrell
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
12
|
-
dependencies:
|
11
|
+
date: 2023-05-23 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bootstrap
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 5.3.0alpha3
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 5.3.0alpha3
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: faraday
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.7'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.7'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: kaminari
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.2'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.2'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '6.1'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '6.1'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rouge
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '4.1'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '4.1'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: sassc
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '2.4'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '2.4'
|
13
97
|
description: Provides boilerplate for common HTML components for front end applications.
|
14
98
|
email:
|
15
99
|
- git@bob.frl
|
@@ -20,6 +104,7 @@ files:
|
|
20
104
|
- ".rspec"
|
21
105
|
- ".rubocop.yml"
|
22
106
|
- ".ruby-version"
|
107
|
+
- ".strong_versions.yml"
|
23
108
|
- Gemfile
|
24
109
|
- Gemfile.lock
|
25
110
|
- MIT-LICENSE
|
@@ -27,8 +112,111 @@ files:
|
|
27
112
|
- README.md
|
28
113
|
- Rakefile
|
29
114
|
- active_element.gemspec
|
115
|
+
- app/assets/config/active_element/manifest.js
|
116
|
+
- app/assets/javascripts/active_element/application.js
|
117
|
+
- app/assets/javascripts/active_element/confirm.js
|
118
|
+
- app/assets/javascripts/active_element/form.js
|
119
|
+
- app/assets/javascripts/active_element/json_field.js
|
120
|
+
- app/assets/javascripts/active_element/pagination.js
|
121
|
+
- app/assets/javascripts/active_element/search_field.js
|
122
|
+
- app/assets/javascripts/active_element/secret.js
|
123
|
+
- app/assets/javascripts/active_element/setup.js
|
124
|
+
- app/assets/javascripts/active_element/theme.js
|
125
|
+
- app/assets/stylesheets/active_element/_variables.scss
|
126
|
+
- app/assets/stylesheets/active_element/application.scss
|
127
|
+
- app/controllers/active_element/application_controller.rb
|
128
|
+
- app/controllers/active_element/text_searches_controller.rb
|
129
|
+
- app/views/active_element/components/_horizontal_tabs.html.erb
|
130
|
+
- app/views/active_element/components/_vertical_tabs.html.erb
|
131
|
+
- app/views/active_element/components/button.html.erb
|
132
|
+
- app/views/active_element/components/fields/_boolean.html.erb
|
133
|
+
- app/views/active_element/components/form.html.erb
|
134
|
+
- app/views/active_element/components/form/_check_box.html.erb
|
135
|
+
- app/views/active_element/components/form/_check_boxes.html.erb
|
136
|
+
- app/views/active_element/components/form/_field.html.erb
|
137
|
+
- app/views/active_element/components/form/_generic_field.html.erb
|
138
|
+
- app/views/active_element/components/form/_json.html.erb
|
139
|
+
- app/views/active_element/components/form/_label.html.erb
|
140
|
+
- app/views/active_element/components/form/_option_groups_summary.html.erb
|
141
|
+
- app/views/active_element/components/form/_select.html.erb
|
142
|
+
- app/views/active_element/components/form/_summary.html.erb
|
143
|
+
- app/views/active_element/components/form/_templates.html.erb
|
144
|
+
- app/views/active_element/components/form/_text_area.html.erb
|
145
|
+
- app/views/active_element/components/form/_text_search.html.erb
|
146
|
+
- app/views/active_element/components/json.html.erb
|
147
|
+
- app/views/active_element/components/page_description.html.erb
|
148
|
+
- app/views/active_element/components/secret/_field.html.erb
|
149
|
+
- app/views/active_element/components/secret/_templates.html.erb
|
150
|
+
- app/views/active_element/components/table/_collection_row.html.erb
|
151
|
+
- app/views/active_element/components/table/_grouped_collection.html.erb
|
152
|
+
- app/views/active_element/components/table/_pagination.html.erb
|
153
|
+
- app/views/active_element/components/table/_ungrouped_collection.html.erb
|
154
|
+
- app/views/active_element/components/table/collection.html.erb
|
155
|
+
- app/views/active_element/components/table/item.html.erb
|
156
|
+
- app/views/active_element/components/tabs.html.erb
|
157
|
+
- app/views/active_element/decorators/_boolean.html.erb
|
158
|
+
- app/views/active_element/decorators/_date.html.erb
|
159
|
+
- app/views/active_element/decorators/_datetime.html.erb
|
160
|
+
- app/views/active_element/decorators/_time.html.erb
|
161
|
+
- app/views/active_element/forbidden.html.erb
|
162
|
+
- app/views/active_element/main_menu/_item.html.erb
|
163
|
+
- app/views/active_element/navbar/_menu.html.erb
|
164
|
+
- app/views/active_element/theme/_select.html.erb
|
165
|
+
- app/views/active_element/theme/_templates.html.erb
|
166
|
+
- app/views/kaminari/_first_page.html.erb
|
167
|
+
- app/views/kaminari/_gap.html.erb
|
168
|
+
- app/views/kaminari/_last_page.html.erb
|
169
|
+
- app/views/kaminari/_next_page.html.erb
|
170
|
+
- app/views/kaminari/_page.html.erb
|
171
|
+
- app/views/kaminari/_paginator.html.erb
|
172
|
+
- app/views/kaminari/_prev_page.html.erb
|
173
|
+
- app/views/layouts/active_element.html.erb
|
174
|
+
- app/views/layouts/active_element_error.html.erb
|
175
|
+
- config/routes.rb
|
30
176
|
- lib/active_element.rb
|
177
|
+
- lib/active_element/active_menu_link.rb
|
178
|
+
- lib/active_element/active_record_text_search_authorization.rb
|
179
|
+
- lib/active_element/colorized_string.rb
|
180
|
+
- lib/active_element/component.rb
|
181
|
+
- lib/active_element/components.rb
|
182
|
+
- lib/active_element/components/button.rb
|
183
|
+
- lib/active_element/components/collection_table.rb
|
184
|
+
- lib/active_element/components/form.rb
|
185
|
+
- lib/active_element/components/item_table.rb
|
186
|
+
- lib/active_element/components/json.rb
|
187
|
+
- lib/active_element/components/link_helpers.rb
|
188
|
+
- lib/active_element/components/page_description.rb
|
189
|
+
- lib/active_element/components/secret_fields.rb
|
190
|
+
- lib/active_element/components/tab.rb
|
191
|
+
- lib/active_element/components/tabs.rb
|
192
|
+
- lib/active_element/components/translations.rb
|
193
|
+
- lib/active_element/components/util.rb
|
194
|
+
- lib/active_element/components/util/association_mapping.rb
|
195
|
+
- lib/active_element/components/util/decorator.rb
|
196
|
+
- lib/active_element/components/util/display_value_mapping.rb
|
197
|
+
- lib/active_element/components/util/field_mapping.rb
|
198
|
+
- lib/active_element/components/util/form_field_mapping.rb
|
199
|
+
- lib/active_element/components/util/form_value_mapping.rb
|
200
|
+
- lib/active_element/components/util/i18n.rb
|
201
|
+
- lib/active_element/components/util/record_mapping.rb
|
202
|
+
- lib/active_element/controller_action.rb
|
203
|
+
- lib/active_element/engine.rb
|
204
|
+
- lib/active_element/permissions_check.rb
|
205
|
+
- lib/active_element/rails_component.rb
|
206
|
+
- lib/active_element/route.rb
|
207
|
+
- lib/active_element/routes.rb
|
31
208
|
- lib/active_element/version.rb
|
209
|
+
- lib/tasks/active_element.rake
|
210
|
+
- rspec-documentation/dummy
|
211
|
+
- rspec-documentation/pages/Components.md
|
212
|
+
- rspec-documentation/pages/Components/Forms.md
|
213
|
+
- rspec-documentation/pages/Components/Tables.md
|
214
|
+
- rspec-documentation/pages/Components/Tabs.md
|
215
|
+
- rspec-documentation/pages/Decorators/Inline Decorators.md
|
216
|
+
- rspec-documentation/pages/Decorators/View Decorators.md
|
217
|
+
- rspec-documentation/pages/Index.md
|
218
|
+
- rspec-documentation/pages/Util/I18n.md
|
219
|
+
- rspec-documentation/spec_helper.rb
|
32
220
|
- sig/active_element.rbs
|
33
221
|
homepage: https://github.com/bobf/active_element
|
34
222
|
licenses:
|