super 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +2 -0
  3. data/README.md +47 -61
  4. data/STABILITY.md +2 -2
  5. data/app/assets/javascripts/super/application.js +109 -105
  6. data/app/assets/stylesheets/super/application.css +5600 -0
  7. data/app/views/layouts/super/application.html.erb +10 -2
  8. data/app/views/super/application/_display_rich_text.html.erb +1 -0
  9. data/app/views/super/application/_form_field_checkbox.html.erb +15 -0
  10. data/app/views/super/application/_form_field_generic.html.erb +19 -0
  11. data/app/views/super/application/_form_field_rich_text_area.html.erb +13 -0
  12. data/app/views/super/application/_super_schema_display_show.html.erb +3 -3
  13. data/docs/README.md +4 -2
  14. data/docs/action_text.md +48 -0
  15. data/docs/cheat.md +8 -8
  16. data/docs/faq.md +3 -3
  17. data/docs/installation.md +21 -0
  18. data/docs/quick_start.md +1 -16
  19. data/docs/webpacker.md +13 -5
  20. data/frontend/super-frontend/build.js +1 -1
  21. data/frontend/super-frontend/dist/application.css +5600 -0
  22. data/frontend/super-frontend/dist/application.js +109 -105
  23. data/frontend/super-frontend/package.json +1 -2
  24. data/frontend/super-frontend/src/javascripts/super/{application.ts → application.js} +0 -0
  25. data/frontend/super-frontend/src/javascripts/super/{apply_template_controller.ts → apply_template_controller.js} +3 -5
  26. data/frontend/super-frontend/src/javascripts/super/{toggle_pending_destruction_controller.ts → toggle_pending_destruction_controller.js} +2 -2
  27. data/frontend/super-frontend/tailwind.config.js +2 -2
  28. data/frontend/super-frontend/yarn.lock +0 -5
  29. data/lib/generators/super/action_text/USAGE +23 -0
  30. data/lib/generators/super/action_text/action_text_generator.rb +30 -0
  31. data/lib/generators/super/action_text/templates/pack_super_action_text.css +23 -0
  32. data/lib/generators/super/action_text/templates/pack_super_action_text.js +4 -0
  33. data/lib/generators/super/webpacker/USAGE +5 -4
  34. data/lib/super/assets.rb +4 -0
  35. data/lib/super/display/schema_types.rb +6 -0
  36. data/lib/super/form/schema_types.rb +10 -0
  37. data/lib/super/version.rb +1 -1
  38. metadata +15 -7
  39. data/frontend/super-frontend/src/javascripts/super/rails__ujs.d.ts +0 -1
  40. data/frontend/super-frontend/tsconfig.json +0 -13
@@ -48,6 +48,12 @@ module Super
48
48
  Dynamic.new(&:iso8601)
49
49
  end
50
50
 
51
+ def rich_text
52
+ Dynamic.new do |value|
53
+ Partial.new("display_rich_text", locals: { rich_text: value })
54
+ end
55
+ end
56
+
51
57
  def manual(&transform_block)
52
58
  Dynamic.new(&transform_block)
53
59
  end
@@ -74,6 +74,16 @@ module Super
74
74
  Generic.new(partial_path: "form_field_text", extras: extras, nested: {})
75
75
  end
76
76
 
77
+ alias text string
78
+
79
+ def rich_text_area(**extras)
80
+ Generic.new(partial_path: "form_field_rich_text_area", extras: extras, nested: {})
81
+ end
82
+
83
+ def checkbox(**extras)
84
+ Generic.new(partial_path: "form_field_checkbox", extras: extras, nested: {})
85
+ end
86
+
77
87
  def has_many(reader, **extras)
78
88
  nested = @fields.nested do
79
89
  yield
@@ -1,3 +1,3 @@
1
1
  module Super
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
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.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zach Ahn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-28 00:00:00.000000000 Z
11
+ date: 2021-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -217,12 +217,16 @@ files:
217
217
  - app/controllers/super/application_controller.rb
218
218
  - app/views/layouts/super/application.html.erb
219
219
  - app/views/super/application/_collection_header.html.erb
220
+ - app/views/super/application/_display_rich_text.html.erb
220
221
  - app/views/super/application/_filter.html.erb
221
222
  - app/views/super/application/_filter_type_select.html.erb
222
223
  - app/views/super/application/_filter_type_text.html.erb
223
224
  - app/views/super/application/_filter_type_timestamp.html.erb
224
225
  - app/views/super/application/_flash.html.erb
225
226
  - app/views/super/application/_form_field__destroy.html.erb
227
+ - app/views/super/application/_form_field_checkbox.html.erb
228
+ - app/views/super/application/_form_field_generic.html.erb
229
+ - app/views/super/application/_form_field_rich_text_area.html.erb
226
230
  - app/views/super/application/_form_field_select.html.erb
227
231
  - app/views/super/application/_form_field_text.html.erb
228
232
  - app/views/super/application/_form_fieldset.html.erb
@@ -247,8 +251,10 @@ files:
247
251
  - config/locales/en.yml
248
252
  - config/routes.rb
249
253
  - docs/README.md
254
+ - docs/action_text.md
250
255
  - docs/cheat.md
251
256
  - docs/faq.md
257
+ - docs/installation.md
252
258
  - docs/quick_start.md
253
259
  - docs/webpacker.md
254
260
  - docs/yard_customizations.rb
@@ -257,14 +263,16 @@ files:
257
263
  - frontend/super-frontend/dist/application.js
258
264
  - frontend/super-frontend/package.json
259
265
  - frontend/super-frontend/postcss.config.js
260
- - frontend/super-frontend/src/javascripts/super/application.ts
261
- - frontend/super-frontend/src/javascripts/super/apply_template_controller.ts
262
- - frontend/super-frontend/src/javascripts/super/rails__ujs.d.ts
263
- - frontend/super-frontend/src/javascripts/super/toggle_pending_destruction_controller.ts
266
+ - frontend/super-frontend/src/javascripts/super/application.js
267
+ - frontend/super-frontend/src/javascripts/super/apply_template_controller.js
268
+ - frontend/super-frontend/src/javascripts/super/toggle_pending_destruction_controller.js
264
269
  - frontend/super-frontend/src/stylesheets/super/application.css
265
270
  - frontend/super-frontend/tailwind.config.js
266
- - frontend/super-frontend/tsconfig.json
267
271
  - frontend/super-frontend/yarn.lock
272
+ - lib/generators/super/action_text/USAGE
273
+ - lib/generators/super/action_text/action_text_generator.rb
274
+ - lib/generators/super/action_text/templates/pack_super_action_text.css
275
+ - lib/generators/super/action_text/templates/pack_super_action_text.js
268
276
  - lib/generators/super/install/USAGE
269
277
  - lib/generators/super/install/install_generator.rb
270
278
  - lib/generators/super/install/templates/base_controller.rb.tt
@@ -1 +0,0 @@
1
- declare module "@rails/ujs";
@@ -1,13 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "baseUrl": "./src",
4
- "paths": {
5
- "~/*": ["./*"]
6
- },
7
- "typeRoots": ["node_modules/@types"],
8
- "esModuleInterop": true,
9
- "noEmit": true,
10
- "strict": true
11
- },
12
- "include": ["src/**/*"]
13
- }