super 0.0.8 → 0.0.9
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/.yardopts +2 -0
- data/README.md +47 -61
- data/STABILITY.md +2 -2
- data/app/assets/javascripts/super/application.js +109 -105
- data/app/assets/stylesheets/super/application.css +5600 -0
- data/app/views/layouts/super/application.html.erb +10 -2
- data/app/views/super/application/_display_rich_text.html.erb +1 -0
- data/app/views/super/application/_form_field_checkbox.html.erb +15 -0
- data/app/views/super/application/_form_field_generic.html.erb +19 -0
- data/app/views/super/application/_form_field_rich_text_area.html.erb +13 -0
- data/app/views/super/application/_super_schema_display_show.html.erb +3 -3
- data/docs/README.md +4 -2
- data/docs/action_text.md +48 -0
- data/docs/cheat.md +8 -8
- data/docs/faq.md +3 -3
- data/docs/installation.md +21 -0
- data/docs/quick_start.md +1 -16
- data/docs/webpacker.md +13 -5
- data/frontend/super-frontend/build.js +1 -1
- data/frontend/super-frontend/dist/application.css +5600 -0
- data/frontend/super-frontend/dist/application.js +109 -105
- data/frontend/super-frontend/package.json +1 -2
- data/frontend/super-frontend/src/javascripts/super/{application.ts → application.js} +0 -0
- data/frontend/super-frontend/src/javascripts/super/{apply_template_controller.ts → apply_template_controller.js} +3 -5
- data/frontend/super-frontend/src/javascripts/super/{toggle_pending_destruction_controller.ts → toggle_pending_destruction_controller.js} +2 -2
- data/frontend/super-frontend/tailwind.config.js +2 -2
- data/frontend/super-frontend/yarn.lock +0 -5
- data/lib/generators/super/action_text/USAGE +23 -0
- data/lib/generators/super/action_text/action_text_generator.rb +30 -0
- data/lib/generators/super/action_text/templates/pack_super_action_text.css +23 -0
- data/lib/generators/super/action_text/templates/pack_super_action_text.js +4 -0
- data/lib/generators/super/webpacker/USAGE +5 -4
- data/lib/super/assets.rb +4 -0
- data/lib/super/display/schema_types.rb +6 -0
- data/lib/super/form/schema_types.rb +10 -0
- data/lib/super/version.rb +1 -1
- metadata +15 -7
- data/frontend/super-frontend/src/javascripts/super/rails__ujs.d.ts +0 -1
- data/frontend/super-frontend/tsconfig.json +0 -13
@@ -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
|
data/lib/super/version.rb
CHANGED
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.
|
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:
|
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.
|
261
|
-
- frontend/super-frontend/src/javascripts/super/apply_template_controller.
|
262
|
-
- frontend/super-frontend/src/javascripts/super/
|
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";
|