super 0.0.16 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/super/application.js +1401 -125
  3. data/app/assets/stylesheets/super/application.css +90702 -90026
  4. data/app/controllers/super/application_controller.rb +49 -6
  5. data/app/controllers/super/substructure_controller.rb +121 -37
  6. data/app/views/layouts/super/application.html.erb +1 -1
  7. data/app/views/super/application/_batch_button.html.erb +12 -0
  8. data/app/views/super/application/_batch_checkbox.csv.erb +1 -0
  9. data/app/views/super/application/_batch_checkbox.html.erb +5 -0
  10. data/app/views/super/application/_batch_form.html.erb +3 -0
  11. data/app/views/super/application/_collection_header.html.erb +7 -6
  12. data/app/views/super/application/_csv_button.html.erb +25 -0
  13. data/app/views/super/application/_display_actions.html.erb +2 -2
  14. data/app/views/super/application/_filter.html.erb +62 -2
  15. data/app/views/super/application/_layout.html.erb +13 -14
  16. data/app/views/super/application/_link.html.erb +8 -0
  17. data/app/views/super/application/_member_header.html.erb +7 -7
  18. data/app/views/super/application/_pagination.html.erb +1 -0
  19. data/app/views/super/application/_site_header.html.erb +4 -4
  20. data/app/views/super/application/_sort_expression.html.erb +2 -2
  21. data/app/views/super/application/_view_chain.html.erb +5 -0
  22. data/app/views/super/application/index.csv.erb +14 -0
  23. data/config/locales/en.yml +8 -0
  24. data/frontend/super-frontend/dist/application.css +90702 -90026
  25. data/frontend/super-frontend/dist/application.js +1401 -125
  26. data/frontend/super-frontend/dist/package.json +13 -0
  27. data/lib/generators/super/webpacker/USAGE +1 -7
  28. data/lib/generators/super/webpacker/templates/pack_super_application.js.tt +2 -0
  29. data/lib/generators/super/webpacker/webpacker_generator.rb +10 -6
  30. data/lib/super/cheat.rb +1 -0
  31. data/lib/super/display/guesser.rb +1 -1
  32. data/lib/super/display/schema_types.rb +6 -1
  33. data/lib/super/display.rb +2 -1
  34. data/lib/super/engine.rb +5 -0
  35. data/lib/super/error.rb +12 -0
  36. data/lib/super/filter/form_object.rb +74 -48
  37. data/lib/super/filter/guesser.rb +2 -0
  38. data/lib/super/filter/operator.rb +90 -64
  39. data/lib/super/filter/schema_types.rb +63 -80
  40. data/lib/super/filter.rb +1 -1
  41. data/lib/super/form/builder.rb +6 -3
  42. data/lib/super/form/field_transcript.rb +43 -0
  43. data/lib/super/form/guesser.rb +1 -1
  44. data/lib/super/form/schema_types.rb +11 -20
  45. data/lib/super/layout.rb +9 -33
  46. data/lib/super/link.rb +2 -7
  47. data/lib/super/link_builder.rb +0 -4
  48. data/lib/super/packaged_asset.rb +49 -0
  49. data/lib/super/pagination.rb +2 -1
  50. data/lib/super/reorderable_hash.rb +88 -0
  51. data/lib/super/reset.rb +20 -1
  52. data/lib/super/schema.rb +4 -0
  53. data/lib/super/version.rb +1 -1
  54. data/lib/super/view_chain.rb +25 -0
  55. data/lib/super.rb +4 -0
  56. metadata +46 -9
  57. data/app/views/super/application/_filter_type_select.html.erb +0 -21
  58. data/app/views/super/application/_filter_type_text.html.erb +0 -18
  59. data/app/views/super/application/_filter_type_timestamp.html.erb +0 -24
  60. data/app/views/super/application/_form_field_select.html.erb +0 -1
  61. data/lib/generators/super/webpacker/templates/pack_super_application.js.erb.tt +0 -2
data/lib/super.rb CHANGED
@@ -25,6 +25,7 @@ require "super/filter/operator"
25
25
  require "super/filter/schema_types"
26
26
  require "super/form"
27
27
  require "super/form/builder"
28
+ require "super/form/field_transcript"
28
29
  require "super/form/guesser"
29
30
  require "super/form/inline_errors"
30
31
  require "super/form/schema_types"
@@ -33,16 +34,19 @@ require "super/layout"
33
34
  require "super/link"
34
35
  require "super/link_builder"
35
36
  require "super/navigation"
37
+ require "super/packaged_asset"
36
38
  require "super/pagination"
37
39
  require "super/panel"
38
40
  require "super/partial"
39
41
  require "super/plugin"
40
42
  require "super/query/form_object"
43
+ require "super/reorderable_hash"
41
44
  require "super/reset"
42
45
  require "super/schema"
43
46
  require "super/schema/guesser"
44
47
  require "super/sort"
45
48
  require "super/version"
49
+ require "super/view_chain"
46
50
  require "super/view_helper"
47
51
 
48
52
  require "super/engine"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: super
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zach Ahn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-15 00:00:00.000000000 Z
11
+ date: 2021-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -115,7 +115,7 @@ dependencies:
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
117
  - !ruby/object:Gem::Dependency
118
- name: pry
118
+ name: pry-rails
119
119
  requirement: !ruby/object:Gem::Requirement
120
120
  requirements:
121
121
  - - ">="
@@ -212,6 +212,34 @@ dependencies:
212
212
  - - ">="
213
213
  - !ruby/object:Gem::Version
214
214
  version: '0'
215
+ - !ruby/object:Gem::Dependency
216
+ name: rails_anonymous_controller_testing
217
+ requirement: !ruby/object:Gem::Requirement
218
+ requirements:
219
+ - - ">="
220
+ - !ruby/object:Gem::Version
221
+ version: '0'
222
+ type: :development
223
+ prerelease: false
224
+ version_requirements: !ruby/object:Gem::Requirement
225
+ requirements:
226
+ - - ">="
227
+ - !ruby/object:Gem::Version
228
+ version: '0'
229
+ - !ruby/object:Gem::Dependency
230
+ name: minitest-bisect
231
+ requirement: !ruby/object:Gem::Requirement
232
+ requirements:
233
+ - - ">="
234
+ - !ruby/object:Gem::Version
235
+ version: '0'
236
+ type: :development
237
+ prerelease: false
238
+ version_requirements: !ruby/object:Gem::Requirement
239
+ requirements:
240
+ - - ">="
241
+ - !ruby/object:Gem::Version
242
+ version: '0'
215
243
  description:
216
244
  email:
217
245
  - engineering@zachahn.com
@@ -229,24 +257,26 @@ files:
229
257
  - app/controllers/super/substructure_controller.rb
230
258
  - app/helpers/super/form_builder_helper.rb
231
259
  - app/views/layouts/super/application.html.erb
260
+ - app/views/super/application/_batch_button.html.erb
261
+ - app/views/super/application/_batch_checkbox.csv.erb
262
+ - app/views/super/application/_batch_checkbox.html.erb
263
+ - app/views/super/application/_batch_form.html.erb
232
264
  - app/views/super/application/_collection_header.html.erb
265
+ - app/views/super/application/_csv_button.html.erb
233
266
  - app/views/super/application/_display_actions.html.erb
234
267
  - app/views/super/application/_display_index.html.erb
235
268
  - app/views/super/application/_display_rich_text.html.erb
236
269
  - app/views/super/application/_display_show.html.erb
237
270
  - app/views/super/application/_filter.html.erb
238
- - app/views/super/application/_filter_type_select.html.erb
239
- - app/views/super/application/_filter_type_text.html.erb
240
- - app/views/super/application/_filter_type_timestamp.html.erb
241
271
  - app/views/super/application/_flash.html.erb
242
272
  - app/views/super/application/_form.html.erb
243
273
  - app/views/super/application/_form_field.html.erb
244
274
  - app/views/super/application/_form_field__destroy.html.erb
245
- - app/views/super/application/_form_field_select.html.erb
246
275
  - app/views/super/application/_form_fieldset.html.erb
247
276
  - app/views/super/application/_form_has_many.html.erb
248
277
  - app/views/super/application/_form_has_one.html.erb
249
278
  - app/views/super/application/_layout.html.erb
279
+ - app/views/super/application/_link.html.erb
250
280
  - app/views/super/application/_member_header.html.erb
251
281
  - app/views/super/application/_pagination.html.erb
252
282
  - app/views/super/application/_panel.html.erb
@@ -255,7 +285,9 @@ files:
255
285
  - app/views/super/application/_site_header.html.erb
256
286
  - app/views/super/application/_sort.html.erb
257
287
  - app/views/super/application/_sort_expression.html.erb
288
+ - app/views/super/application/_view_chain.html.erb
258
289
  - app/views/super/application/edit.html.erb
290
+ - app/views/super/application/index.csv.erb
259
291
  - app/views/super/application/index.html.erb
260
292
  - app/views/super/application/new.html.erb
261
293
  - app/views/super/application/nothing.html.erb
@@ -266,6 +298,7 @@ files:
266
298
  - config/routes.rb
267
299
  - frontend/super-frontend/dist/application.css
268
300
  - frontend/super-frontend/dist/application.js
301
+ - frontend/super-frontend/dist/package.json
269
302
  - lib/generators/super/action_text/USAGE
270
303
  - lib/generators/super/action_text/action_text_generator.rb
271
304
  - lib/generators/super/action_text/templates/pack_super_action_text.css
@@ -278,7 +311,7 @@ files:
278
311
  - lib/generators/super/resource/resource_generator.rb
279
312
  - lib/generators/super/resource/templates/resources_controller.rb.tt
280
313
  - lib/generators/super/webpacker/USAGE
281
- - lib/generators/super/webpacker/templates/pack_super_application.js.erb.tt
314
+ - lib/generators/super/webpacker/templates/pack_super_application.js.tt
282
315
  - lib/generators/super/webpacker/webpacker_generator.rb
283
316
  - lib/super.rb
284
317
  - lib/super/action_inquirer.rb
@@ -300,6 +333,7 @@ files:
300
333
  - lib/super/filter/schema_types.rb
301
334
  - lib/super/form.rb
302
335
  - lib/super/form/builder.rb
336
+ - lib/super/form/field_transcript.rb
303
337
  - lib/super/form/guesser.rb
304
338
  - lib/super/form/inline_errors.rb
305
339
  - lib/super/form/schema_types.rb
@@ -308,12 +342,14 @@ files:
308
342
  - lib/super/link.rb
309
343
  - lib/super/link_builder.rb
310
344
  - lib/super/navigation.rb
345
+ - lib/super/packaged_asset.rb
311
346
  - lib/super/pagination.rb
312
347
  - lib/super/panel.rb
313
348
  - lib/super/partial.rb
314
349
  - lib/super/partial/resolving.rb
315
350
  - lib/super/plugin.rb
316
351
  - lib/super/query/form_object.rb
352
+ - lib/super/reorderable_hash.rb
317
353
  - lib/super/reset.rb
318
354
  - lib/super/schema.rb
319
355
  - lib/super/schema/common.rb
@@ -322,6 +358,7 @@ files:
322
358
  - lib/super/useful/builder.rb
323
359
  - lib/super/useful/enum.rb
324
360
  - lib/super/version.rb
361
+ - lib/super/view_chain.rb
325
362
  - lib/super/view_helper.rb
326
363
  - lib/tasks/super/cheat.rake
327
364
  homepage:
@@ -348,7 +385,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
348
385
  - !ruby/object:Gem::Version
349
386
  version: '0'
350
387
  requirements: []
351
- rubygems_version: 3.2.4
388
+ rubygems_version: 3.0.3.1
352
389
  signing_key:
353
390
  specification_version: 4
354
391
  summary: A simple, powerful, zero dependency Rails admin framework
@@ -1,21 +0,0 @@
1
- <div class="super-field-group" data-controller="clean-filter-param">
2
- <%= form.fields_for(filter_type_select.field_name, filter_type_select) do |form_field| %>
3
- <%= form_field.label(:q, filter_type_select.humanized_field_name) %>
4
- <div class="inline-block">
5
- <%= form_field.super.select(
6
- :op,
7
- filter_type_select.operators,
8
- { include_blank: false },
9
- data: { clean_filter_param_target: "candidate" }
10
- ) %>
11
- </div>
12
- <div class="mt-3">
13
- <%= form_field.super.select(
14
- :q,
15
- filter_type_select.field_type.collection,
16
- {},
17
- data: { clean_filter_param_target: "control candidate" }
18
- ) %>
19
- </div>
20
- <% end %>
21
- </div>
@@ -1,18 +0,0 @@
1
- <div class="super-field-group" data-controller="clean-filter-param">
2
- <%= form.fields_for(filter_type_text.field_name, filter_type_text) do |form_field| %>
3
- <%= form_field.label(:q, filter_type_text.humanized_field_name) %>
4
- <div class="inline-block">
5
- <%= form_field.super.select(
6
- :op,
7
- filter_type_text.operators,
8
- { include_blank: false },
9
- data: { clean_filter_param_target: "candidate" }
10
- ) %>
11
- </div>
12
- <%= form_field.super.text_field(
13
- :q,
14
- class: "mt-3",
15
- data: { clean_filter_param_target: "control candidate" }
16
- ) %>
17
- <% end %>
18
- </div>
@@ -1,24 +0,0 @@
1
- <div class="super-field-group" data-controller="clean-filter-param">
2
- <%= form.fields_for(filter_type_timestamp.field_name, filter_type_timestamp) do |form_field| %>
3
- <%= form_field.label(:q0, filter_type_timestamp.humanized_field_name) %>
4
- <div class="inline-block mt-2">
5
- <%= form_field.super.select(
6
- :op,
7
- filter_type_timestamp.operators,
8
- { include_blank: false },
9
- data: { clean_filter_param_target: "candidate" }
10
- ) %>
11
- </div>
12
- <div class="flex items-center mt-3">
13
- <div class="flex-initial">
14
- <%= form_field.super.datetime_flatpickr(:q0, data: { clean_filter_param_target: "control candidate" }) %>
15
- </div>
16
- <div class="flex-initial px-2">
17
- &ndash;
18
- </div>
19
- <div class="flex-initial">
20
- <%= form_field.super.datetime_flatpickr(:q1, data: { clean_filter_param_target: "control candidate" }) %>
21
- </div>
22
- </div>
23
- <% end %>
24
- </div>
@@ -1 +0,0 @@
1
- <%= form.super.select!(column, form_field_select[:collection]) %>
@@ -1,2 +0,0 @@
1
- import Super from "<%%= Super::Assets.dist("super", "super-frontend").join("application") %>";
2
- import "<%%= Super::Assets.dist("super", "super-frontend").join("application.css") %>";