formstrap 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (180) hide show
  1. checksums.yaml +7 -0
  2. data/.DS_Store +0 -0
  3. data/.gitignore +33 -0
  4. data/CHANGELOG.md +1 -0
  5. data/CODE_OF_CONDUCT.md +84 -0
  6. data/Gemfile +28 -0
  7. data/LICENSE.txt +21 -0
  8. data/README.md +118 -0
  9. data/Rakefile +10 -0
  10. data/app/assets/config/headmin_manifest.js +2 -0
  11. data/app/assets/images/avatar.jpg +0 -0
  12. data/app/assets/images/document.docx +0 -0
  13. data/app/assets/images/document.pdf +0 -0
  14. data/app/assets/images/image.jpg +0 -0
  15. data/app/assets/images/spreadsheet.xls +0 -0
  16. data/app/assets/images/video.mp4 +0 -0
  17. data/app/assets/javascripts/formstrap/config/i18n.js +11 -0
  18. data/app/assets/javascripts/formstrap/controllers/autocomplete_controller.js +318 -0
  19. data/app/assets/javascripts/formstrap/controllers/date_range_controller.js +38 -0
  20. data/app/assets/javascripts/formstrap/controllers/dropzone_controller.js +31 -0
  21. data/app/assets/javascripts/formstrap/controllers/file_preview_controller.js +244 -0
  22. data/app/assets/javascripts/formstrap/controllers/flatpickr_controller.js +35 -0
  23. data/app/assets/javascripts/formstrap/controllers/infinite_scroller_controller.js +28 -0
  24. data/app/assets/javascripts/formstrap/controllers/media_controller.js +252 -0
  25. data/app/assets/javascripts/formstrap/controllers/media_modal_controller.js +147 -0
  26. data/app/assets/javascripts/formstrap/controllers/redactorx_controller.js +40 -0
  27. data/app/assets/javascripts/formstrap/controllers/repeater_controller.js +148 -0
  28. data/app/assets/javascripts/formstrap/controllers/select_controller.js +49 -0
  29. data/app/assets/javascripts/formstrap/controllers/textarea_controller.js +48 -0
  30. data/app/assets/javascripts/formstrap/index.js +32 -0
  31. data/app/assets/javascripts/formstrap.js +11515 -0
  32. data/app/assets/stylesheets/formstrap/forms/autocomplete.scss +27 -0
  33. data/app/assets/stylesheets/formstrap/forms/file.scss +83 -0
  34. data/app/assets/stylesheets/formstrap/forms/media.scss +10 -0
  35. data/app/assets/stylesheets/formstrap/forms/repeater.scss +62 -0
  36. data/app/assets/stylesheets/formstrap/forms/search.scss +12 -0
  37. data/app/assets/stylesheets/formstrap/forms.scss +12 -0
  38. data/app/assets/stylesheets/formstrap/general.scss +18 -0
  39. data/app/assets/stylesheets/formstrap/media/index.scss +9 -0
  40. data/app/assets/stylesheets/formstrap/media.scss +1 -0
  41. data/app/assets/stylesheets/formstrap/utilities/buttons.scss +27 -0
  42. data/app/assets/stylesheets/formstrap/utilities/dropzone.scss +72 -0
  43. data/app/assets/stylesheets/formstrap/utilities.scss +2 -0
  44. data/app/assets/stylesheets/formstrap/vendor/flatpickr.css +903 -0
  45. data/app/assets/stylesheets/formstrap/vendor/tom-select-bootstrap.scss +535 -0
  46. data/app/assets/stylesheets/formstrap.css +1559 -0
  47. data/app/assets/stylesheets/formstrap.scss +11 -0
  48. data/app/controllers/concerns/formstrap/pagination.rb +27 -0
  49. data/app/controllers/formstrap/media_controller.rb +68 -0
  50. data/app/controllers/formstrap_controller.rb +2 -0
  51. data/app/models/concerns/formstrap/autocompletable.rb +36 -0
  52. data/app/models/concerns/formstrap/hintable.rb +22 -0
  53. data/app/models/concerns/formstrap/input_groupable.rb +21 -0
  54. data/app/models/concerns/formstrap/labelable.rb +31 -0
  55. data/app/models/concerns/formstrap/listable.rb +26 -0
  56. data/app/models/concerns/formstrap/placeholderable.rb +11 -0
  57. data/app/models/concerns/formstrap/validatable.rb +38 -0
  58. data/app/models/concerns/formstrap/wrappable.rb +19 -0
  59. data/app/models/formstrap/.DS_Store +0 -0
  60. data/app/models/formstrap/association_view.rb +100 -0
  61. data/app/models/formstrap/blocks_view.rb +43 -0
  62. data/app/models/formstrap/checkbox_view.rb +50 -0
  63. data/app/models/formstrap/color_view.rb +45 -0
  64. data/app/models/formstrap/date_range_view.rb +23 -0
  65. data/app/models/formstrap/date_view.rb +43 -0
  66. data/app/models/formstrap/datetime_range_view.rb +23 -0
  67. data/app/models/formstrap/datetime_view.rb +43 -0
  68. data/app/models/formstrap/email_view.rb +46 -0
  69. data/app/models/formstrap/file_view.rb +106 -0
  70. data/app/models/formstrap/flatpickr_range_view.rb +89 -0
  71. data/app/models/formstrap/flatpickr_view.rb +27 -0
  72. data/app/models/formstrap/hidden_view.rb +8 -0
  73. data/app/models/formstrap/hint_view.rb +4 -0
  74. data/app/models/formstrap/input_group_view.rb +17 -0
  75. data/app/models/formstrap/label_view.rb +22 -0
  76. data/app/models/formstrap/media_item_view.rb +41 -0
  77. data/app/models/formstrap/media_view.rb +143 -0
  78. data/app/models/formstrap/number_view.rb +47 -0
  79. data/app/models/formstrap/password_view.rb +42 -0
  80. data/app/models/formstrap/redactorx_view.rb +57 -0
  81. data/app/models/formstrap/search_view.rb +46 -0
  82. data/app/models/formstrap/select_view.rb +61 -0
  83. data/app/models/formstrap/switch_view.rb +21 -0
  84. data/app/models/formstrap/text_view.rb +46 -0
  85. data/app/models/formstrap/textarea_view.rb +47 -0
  86. data/app/models/formstrap/url_view.rb +46 -0
  87. data/app/models/formstrap/wrapper_view.rb +17 -0
  88. data/app/models/formstrap/wysiwyg_view.rb +15 -0
  89. data/app/models/view_model.rb +62 -0
  90. data/app/views/formstrap/_association.html.erb +30 -0
  91. data/app/views/formstrap/_autocomplete.html.erb +11 -0
  92. data/app/views/formstrap/_blocks.html.erb +45 -0
  93. data/app/views/formstrap/_checkbox.html.erb +34 -0
  94. data/app/views/formstrap/_color.html.erb +32 -0
  95. data/app/views/formstrap/_datalist.html.erb +3 -0
  96. data/app/views/formstrap/_date.html.erb +41 -0
  97. data/app/views/formstrap/_date_range.html.erb +40 -0
  98. data/app/views/formstrap/_datetime.html.erb +41 -0
  99. data/app/views/formstrap/_datetime_range.html.erb +40 -0
  100. data/app/views/formstrap/_email.html.erb +43 -0
  101. data/app/views/formstrap/_errors.html.erb +19 -0
  102. data/app/views/formstrap/_file.html.erb +94 -0
  103. data/app/views/formstrap/_flatpickr.html.erb +33 -0
  104. data/app/views/formstrap/_flatpickr_range.html.erb +40 -0
  105. data/app/views/formstrap/_hidden.html.erb +23 -0
  106. data/app/views/formstrap/_hint.html.erb +21 -0
  107. data/app/views/formstrap/_input_group.html.erb +21 -0
  108. data/app/views/formstrap/_label.html.erb +22 -0
  109. data/app/views/formstrap/_media.html.erb +60 -0
  110. data/app/views/formstrap/_number.html.erb +41 -0
  111. data/app/views/formstrap/_password.html.erb +39 -0
  112. data/app/views/formstrap/_redactorx.html.erb +31 -0
  113. data/app/views/formstrap/_repeater.html.erb +128 -0
  114. data/app/views/formstrap/_search.html.erb +43 -0
  115. data/app/views/formstrap/_select.html.erb +43 -0
  116. data/app/views/formstrap/_switch.html.erb +29 -0
  117. data/app/views/formstrap/_text.html.erb +42 -0
  118. data/app/views/formstrap/_textarea.html.erb +39 -0
  119. data/app/views/formstrap/_to_ary.html.erb +0 -0
  120. data/app/views/formstrap/_url.html.erb +43 -0
  121. data/app/views/formstrap/_validation.html.erb +18 -0
  122. data/app/views/formstrap/_wrapper.html.erb +8 -0
  123. data/app/views/formstrap/_wysiwyg.html.erb +28 -0
  124. data/app/views/formstrap/autocomplete/_item.html.erb +3 -0
  125. data/app/views/formstrap/autocomplete/_list.html.erb +3 -0
  126. data/app/views/formstrap/blocks/_modal.html.erb +20 -0
  127. data/app/views/formstrap/fields/_base.html.erb +25 -0
  128. data/app/views/formstrap/fields/_file.html.erb +17 -0
  129. data/app/views/formstrap/fields/_files.html.erb +17 -0
  130. data/app/views/formstrap/fields/_group.html.erb +52 -0
  131. data/app/views/formstrap/fields/_list.html.erb +31 -0
  132. data/app/views/formstrap/fields/_text.html.erb +17 -0
  133. data/app/views/formstrap/media/_item.html.erb +38 -0
  134. data/app/views/formstrap/media/_media_item_modal.html.erb +77 -0
  135. data/app/views/formstrap/media/_modal.html.erb +40 -0
  136. data/app/views/formstrap/media/_thumbnail.html.erb +20 -0
  137. data/app/views/formstrap/media/_validation.html.erb +10 -0
  138. data/app/views/formstrap/media/create.turbo_stream.erb +5 -0
  139. data/app/views/formstrap/media/index.html.erb +3 -0
  140. data/app/views/formstrap/media/index.turbo_stream.erb +11 -0
  141. data/app/views/formstrap/media/show.html.erb +9 -0
  142. data/app/views/formstrap/media/thumbnail.html.erb +3 -0
  143. data/app/views/formstrap/media/update.turbo_stream.erb +3 -0
  144. data/app/views/formstrap/pagination/_infinite.html.erb +7 -0
  145. data/app/views/formstrap/repeater/_row.html.erb +53 -0
  146. data/app/views/formstrap/shared/_notifications.html.erb +20 -0
  147. data/app/views/formstrap/shared/_popup.html.erb +32 -0
  148. data/app/views/formstrap/shared/_thumbnail.html.erb +35 -0
  149. data/bin/console +14 -0
  150. data/bin/setup +8 -0
  151. data/config/importmap.rb +2 -0
  152. data/config/locales/activerecord/en.yml +12 -0
  153. data/config/locales/activerecord/nl.yml +13 -0
  154. data/config/locales/defaults/en.yml +215 -0
  155. data/config/locales/defaults/nl.yml +213 -0
  156. data/config/locales/devise/en.yml +65 -0
  157. data/config/locales/devise/nl.yml +85 -0
  158. data/config/locales/en.yml +6 -0
  159. data/config/locales/formstrap/forms/en.yml +39 -0
  160. data/config/locales/formstrap/forms/nl.yml +39 -0
  161. data/config/locales/formstrap/media/en.yml +24 -0
  162. data/config/locales/formstrap/media/nl.yml +24 -0
  163. data/config/locales/formstrap/thumbnail/en.yml +4 -0
  164. data/config/locales/formstrap/thumbnail/nl.yml +4 -0
  165. data/config/locales/nl.yml +6 -0
  166. data/config/routes.rb +11 -0
  167. data/esbuild-css.js +25 -0
  168. data/esbuild-js.js +11 -0
  169. data/formstrap.gemspec +37 -0
  170. data/formstrap.iml +34 -0
  171. data/lib/formstrap/engine.rb +27 -0
  172. data/lib/formstrap/form_builder.rb +177 -0
  173. data/lib/formstrap/form_helper.rb +19 -0
  174. data/lib/formstrap/version.rb +3 -0
  175. data/lib/formstrap.rb +6 -0
  176. data/package.json +54 -0
  177. data/src/js/formstrap.js +1 -0
  178. data/src/scss/formstrap.scss +1 -0
  179. data/yarn.lock +1998 -0
  180. metadata +224 -0
metadata ADDED
@@ -0,0 +1,224 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: formstrap
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Jef Vlamings
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2023-02-22 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: An extensive Bootstrap form library to power your Ruby On Rails application.
14
+ email:
15
+ - vlamingsjef@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - ".DS_Store"
21
+ - ".gitignore"
22
+ - CHANGELOG.md
23
+ - CODE_OF_CONDUCT.md
24
+ - Gemfile
25
+ - LICENSE.txt
26
+ - README.md
27
+ - Rakefile
28
+ - app/assets/config/headmin_manifest.js
29
+ - app/assets/images/avatar.jpg
30
+ - app/assets/images/document.docx
31
+ - app/assets/images/document.pdf
32
+ - app/assets/images/image.jpg
33
+ - app/assets/images/spreadsheet.xls
34
+ - app/assets/images/video.mp4
35
+ - app/assets/javascripts/formstrap.js
36
+ - app/assets/javascripts/formstrap/config/i18n.js
37
+ - app/assets/javascripts/formstrap/controllers/autocomplete_controller.js
38
+ - app/assets/javascripts/formstrap/controllers/date_range_controller.js
39
+ - app/assets/javascripts/formstrap/controllers/dropzone_controller.js
40
+ - app/assets/javascripts/formstrap/controllers/file_preview_controller.js
41
+ - app/assets/javascripts/formstrap/controllers/flatpickr_controller.js
42
+ - app/assets/javascripts/formstrap/controllers/infinite_scroller_controller.js
43
+ - app/assets/javascripts/formstrap/controllers/media_controller.js
44
+ - app/assets/javascripts/formstrap/controllers/media_modal_controller.js
45
+ - app/assets/javascripts/formstrap/controllers/redactorx_controller.js
46
+ - app/assets/javascripts/formstrap/controllers/repeater_controller.js
47
+ - app/assets/javascripts/formstrap/controllers/select_controller.js
48
+ - app/assets/javascripts/formstrap/controllers/textarea_controller.js
49
+ - app/assets/javascripts/formstrap/index.js
50
+ - app/assets/stylesheets/formstrap.css
51
+ - app/assets/stylesheets/formstrap.scss
52
+ - app/assets/stylesheets/formstrap/forms.scss
53
+ - app/assets/stylesheets/formstrap/forms/autocomplete.scss
54
+ - app/assets/stylesheets/formstrap/forms/file.scss
55
+ - app/assets/stylesheets/formstrap/forms/media.scss
56
+ - app/assets/stylesheets/formstrap/forms/repeater.scss
57
+ - app/assets/stylesheets/formstrap/forms/search.scss
58
+ - app/assets/stylesheets/formstrap/general.scss
59
+ - app/assets/stylesheets/formstrap/media.scss
60
+ - app/assets/stylesheets/formstrap/media/index.scss
61
+ - app/assets/stylesheets/formstrap/utilities.scss
62
+ - app/assets/stylesheets/formstrap/utilities/buttons.scss
63
+ - app/assets/stylesheets/formstrap/utilities/dropzone.scss
64
+ - app/assets/stylesheets/formstrap/vendor/flatpickr.css
65
+ - app/assets/stylesheets/formstrap/vendor/tom-select-bootstrap.scss
66
+ - app/controllers/concerns/formstrap/pagination.rb
67
+ - app/controllers/formstrap/media_controller.rb
68
+ - app/controllers/formstrap_controller.rb
69
+ - app/models/concerns/formstrap/autocompletable.rb
70
+ - app/models/concerns/formstrap/hintable.rb
71
+ - app/models/concerns/formstrap/input_groupable.rb
72
+ - app/models/concerns/formstrap/labelable.rb
73
+ - app/models/concerns/formstrap/listable.rb
74
+ - app/models/concerns/formstrap/placeholderable.rb
75
+ - app/models/concerns/formstrap/validatable.rb
76
+ - app/models/concerns/formstrap/wrappable.rb
77
+ - app/models/formstrap/.DS_Store
78
+ - app/models/formstrap/association_view.rb
79
+ - app/models/formstrap/blocks_view.rb
80
+ - app/models/formstrap/checkbox_view.rb
81
+ - app/models/formstrap/color_view.rb
82
+ - app/models/formstrap/date_range_view.rb
83
+ - app/models/formstrap/date_view.rb
84
+ - app/models/formstrap/datetime_range_view.rb
85
+ - app/models/formstrap/datetime_view.rb
86
+ - app/models/formstrap/email_view.rb
87
+ - app/models/formstrap/file_view.rb
88
+ - app/models/formstrap/flatpickr_range_view.rb
89
+ - app/models/formstrap/flatpickr_view.rb
90
+ - app/models/formstrap/hidden_view.rb
91
+ - app/models/formstrap/hint_view.rb
92
+ - app/models/formstrap/input_group_view.rb
93
+ - app/models/formstrap/label_view.rb
94
+ - app/models/formstrap/media_item_view.rb
95
+ - app/models/formstrap/media_view.rb
96
+ - app/models/formstrap/number_view.rb
97
+ - app/models/formstrap/password_view.rb
98
+ - app/models/formstrap/redactorx_view.rb
99
+ - app/models/formstrap/search_view.rb
100
+ - app/models/formstrap/select_view.rb
101
+ - app/models/formstrap/switch_view.rb
102
+ - app/models/formstrap/text_view.rb
103
+ - app/models/formstrap/textarea_view.rb
104
+ - app/models/formstrap/url_view.rb
105
+ - app/models/formstrap/wrapper_view.rb
106
+ - app/models/formstrap/wysiwyg_view.rb
107
+ - app/models/view_model.rb
108
+ - app/views/formstrap/_association.html.erb
109
+ - app/views/formstrap/_autocomplete.html.erb
110
+ - app/views/formstrap/_blocks.html.erb
111
+ - app/views/formstrap/_checkbox.html.erb
112
+ - app/views/formstrap/_color.html.erb
113
+ - app/views/formstrap/_datalist.html.erb
114
+ - app/views/formstrap/_date.html.erb
115
+ - app/views/formstrap/_date_range.html.erb
116
+ - app/views/formstrap/_datetime.html.erb
117
+ - app/views/formstrap/_datetime_range.html.erb
118
+ - app/views/formstrap/_email.html.erb
119
+ - app/views/formstrap/_errors.html.erb
120
+ - app/views/formstrap/_file.html.erb
121
+ - app/views/formstrap/_flatpickr.html.erb
122
+ - app/views/formstrap/_flatpickr_range.html.erb
123
+ - app/views/formstrap/_hidden.html.erb
124
+ - app/views/formstrap/_hint.html.erb
125
+ - app/views/formstrap/_input_group.html.erb
126
+ - app/views/formstrap/_label.html.erb
127
+ - app/views/formstrap/_media.html.erb
128
+ - app/views/formstrap/_number.html.erb
129
+ - app/views/formstrap/_password.html.erb
130
+ - app/views/formstrap/_redactorx.html.erb
131
+ - app/views/formstrap/_repeater.html.erb
132
+ - app/views/formstrap/_search.html.erb
133
+ - app/views/formstrap/_select.html.erb
134
+ - app/views/formstrap/_switch.html.erb
135
+ - app/views/formstrap/_text.html.erb
136
+ - app/views/formstrap/_textarea.html.erb
137
+ - app/views/formstrap/_to_ary.html.erb
138
+ - app/views/formstrap/_url.html.erb
139
+ - app/views/formstrap/_validation.html.erb
140
+ - app/views/formstrap/_wrapper.html.erb
141
+ - app/views/formstrap/_wysiwyg.html.erb
142
+ - app/views/formstrap/autocomplete/_item.html.erb
143
+ - app/views/formstrap/autocomplete/_list.html.erb
144
+ - app/views/formstrap/blocks/_modal.html.erb
145
+ - app/views/formstrap/fields/_base.html.erb
146
+ - app/views/formstrap/fields/_file.html.erb
147
+ - app/views/formstrap/fields/_files.html.erb
148
+ - app/views/formstrap/fields/_group.html.erb
149
+ - app/views/formstrap/fields/_list.html.erb
150
+ - app/views/formstrap/fields/_text.html.erb
151
+ - app/views/formstrap/media/_item.html.erb
152
+ - app/views/formstrap/media/_media_item_modal.html.erb
153
+ - app/views/formstrap/media/_modal.html.erb
154
+ - app/views/formstrap/media/_thumbnail.html.erb
155
+ - app/views/formstrap/media/_validation.html.erb
156
+ - app/views/formstrap/media/create.turbo_stream.erb
157
+ - app/views/formstrap/media/index.html.erb
158
+ - app/views/formstrap/media/index.turbo_stream.erb
159
+ - app/views/formstrap/media/show.html.erb
160
+ - app/views/formstrap/media/thumbnail.html.erb
161
+ - app/views/formstrap/media/update.turbo_stream.erb
162
+ - app/views/formstrap/pagination/_infinite.html.erb
163
+ - app/views/formstrap/repeater/_row.html.erb
164
+ - app/views/formstrap/shared/_notifications.html.erb
165
+ - app/views/formstrap/shared/_popup.html.erb
166
+ - app/views/formstrap/shared/_thumbnail.html.erb
167
+ - bin/console
168
+ - bin/setup
169
+ - config/importmap.rb
170
+ - config/locales/activerecord/en.yml
171
+ - config/locales/activerecord/nl.yml
172
+ - config/locales/defaults/en.yml
173
+ - config/locales/defaults/nl.yml
174
+ - config/locales/devise/en.yml
175
+ - config/locales/devise/nl.yml
176
+ - config/locales/en.yml
177
+ - config/locales/formstrap/forms/en.yml
178
+ - config/locales/formstrap/forms/nl.yml
179
+ - config/locales/formstrap/media/en.yml
180
+ - config/locales/formstrap/media/nl.yml
181
+ - config/locales/formstrap/thumbnail/en.yml
182
+ - config/locales/formstrap/thumbnail/nl.yml
183
+ - config/locales/nl.yml
184
+ - config/routes.rb
185
+ - esbuild-css.js
186
+ - esbuild-js.js
187
+ - formstrap.gemspec
188
+ - formstrap.iml
189
+ - lib/formstrap.rb
190
+ - lib/formstrap/engine.rb
191
+ - lib/formstrap/form_builder.rb
192
+ - lib/formstrap/form_helper.rb
193
+ - lib/formstrap/version.rb
194
+ - package.json
195
+ - src/js/formstrap.js
196
+ - src/scss/formstrap.scss
197
+ - yarn.lock
198
+ homepage: https://github.com/frontierdotbe/formstrap
199
+ licenses:
200
+ - MIT
201
+ metadata:
202
+ homepage_uri: https://github.com/frontierdotbe/formstrap
203
+ source_code_uri: https://github.com/frontierdotbe/formstrap
204
+ changelog_uri: https://github.com/frontierdotbe/formstrap/releases
205
+ post_install_message:
206
+ rdoc_options: []
207
+ require_paths:
208
+ - lib
209
+ required_ruby_version: !ruby/object:Gem::Requirement
210
+ requirements:
211
+ - - ">="
212
+ - !ruby/object:Gem::Version
213
+ version: 3.0.0
214
+ required_rubygems_version: !ruby/object:Gem::Requirement
215
+ requirements:
216
+ - - ">="
217
+ - !ruby/object:Gem::Version
218
+ version: '0'
219
+ requirements: []
220
+ rubygems_version: 3.2.3
221
+ signing_key:
222
+ specification_version: 4
223
+ summary: Bootstrap-powered Form Helpers
224
+ test_files: []