coprl 3.0.0.beta.2 → 3.0.0.beta.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +9 -15
  3. data/CHANGELOG.md +57 -0
  4. data/Gemfile +12 -1
  5. data/Gemfile.lock +105 -36
  6. data/README.md +3 -3
  7. data/app/demo/components/dialogs.pom +1 -1
  8. data/app/demo/components/nav/menu.pom +0 -1
  9. data/app/demo/components/snackbar.pom +9 -3
  10. data/app/demo/events/content_as_form.pom +3 -3
  11. data/app/demo/events/halted.pom +23 -0
  12. data/app/demo/events/nav/drawer.pom +1 -1
  13. data/app/demo/events/tagged_input.pom +2 -2
  14. data/app/demo/patterns/search_select.pom +1 -1
  15. data/app/demo/plugins/animate.pom +144 -0
  16. data/app/demo/plugins/cacheable.pom +64 -0
  17. data/app/demo/plugins/clipboard.pom +21 -0
  18. data/app/demo/plugins/color_picker.pom +17 -0
  19. data/app/demo/plugins/google_maps.pom +24 -0
  20. data/app/demo/plugins/iframe.pom +14 -0
  21. data/app/demo/plugins/image_crop.pom +1 -1
  22. data/app/demo/plugins/markup.pom +14 -0
  23. data/app/demo/plugins/nav/drawer.pom +1 -1
  24. data/app/demo/plugins/script.pom +17 -0
  25. data/app/demo/plugins/scroll_to.pom +22 -0
  26. data/app/demo/plugins/timer.pom +24 -0
  27. data/app/demo/shared/context_list.pom +1 -1
  28. data/config.ru +15 -1
  29. data/coprl.gemspec +1 -2
  30. data/lib/coprl/presenters/cli.rb +10 -0
  31. data/lib/coprl/presenters/dsl/components/actions/base.rb +5 -1
  32. data/lib/coprl/presenters/dsl/components/base.rb +6 -4
  33. data/lib/coprl/presenters/dsl/components/event.rb +6 -1
  34. data/lib/coprl/presenters/dsl/components/multi_select.rb +3 -3
  35. data/lib/coprl/presenters/dsl/components/table.rb +2 -2
  36. data/lib/coprl/presenters/dsl/definition.rb +2 -2
  37. data/lib/coprl/presenters/dsl/user_interface.rb +2 -2
  38. data/lib/coprl/presenters/generators/plugin.rb +21 -6
  39. data/lib/coprl/presenters/generators/templates/plugin/.github/workflows/semantic-release.yml +41 -0
  40. data/lib/coprl/presenters/generators/templates/plugin/.releaserc +15 -0
  41. data/lib/coprl/presenters/generators/templates/plugin/.ruby-version +1 -0
  42. data/lib/coprl/presenters/generators/templates/plugin/README.md.tt +34 -0
  43. data/lib/coprl/presenters/generators/templates/plugin/demo/plugin.pom.tt +15 -0
  44. data/lib/coprl/presenters/generators/templates/plugin/lib/coprl/presenters/plugins/components/actions/dsl.rb.tt +1 -1
  45. data/lib/coprl/presenters/generators/templates/plugin/lib/coprl/presenters/plugins/version.rb.tt +3 -0
  46. data/lib/coprl/presenters/generators/templates/plugin/presenter_plugin.gemspec.tt +8 -7
  47. data/lib/coprl/presenters/generators/templates/plugin/views/components/application/component.erb.tt +1 -1
  48. data/lib/coprl/presenters/helpers/rails.rb +1 -4
  49. data/lib/coprl/presenters/helpers/rails/routes.rb +14 -0
  50. data/lib/coprl/presenters/rails/concerns/coprl_partial.rb +51 -0
  51. data/lib/coprl/presenters/rails/engine.rb +5 -0
  52. data/lib/coprl/presenters/rails/railtie.rb +6 -14
  53. data/lib/coprl/presenters/rails/reloader.rb +15 -0
  54. data/lib/coprl/presenters/settings.rb +1 -1
  55. data/lib/coprl/presenters/version.rb +1 -1
  56. data/lib/coprl/presenters/web_client/helpers/headers.rb +8 -6
  57. data/lib/coprl/presenters/web_client/helpers/rails.rb +1 -0
  58. data/lib/coprl/presenters/web_client/helpers/rails/template_helper.rb +10 -0
  59. data/lib/coprl/presenters/web_client/helpers/sinatra.rb +1 -0
  60. data/lib/coprl/presenters/web_client/helpers/sinatra/template_helper.rb +20 -0
  61. data/lib/coprl/presenters/web_client/plugin_views_path.rb +5 -5
  62. data/public/bundle.js +10 -4
  63. data/public/wc.js +10 -4
  64. data/rails-engine/app/controllers/coprl_controller.rb +1 -1
  65. data/rails-engine/app/views/layouts/coprl.html.erb +4 -4
  66. data/rails-engine/config/initializers/presenters.rb +4 -2
  67. data/rails-engine/config/initializers/routes.rb +5 -0
  68. data/rails-engine/config/initializers/session.rb +8 -0
  69. data/views/mdc/assets/js/components/events/posts.js +10 -6
  70. data/views/mdc/body/{_preamble.erb → _wrapper.erb} +16 -5
  71. data/views/mdc/components/_card.erb +2 -2
  72. data/views/mdc/components/_checkbox.erb +1 -1
  73. data/views/mdc/components/_chip.erb +2 -2
  74. data/views/mdc/components/_content.erb +2 -2
  75. data/views/mdc/components/_datetime.erb +1 -1
  76. data/views/mdc/components/_dialog.erb +2 -2
  77. data/views/mdc/components/_form.erb +2 -2
  78. data/views/mdc/components/_grid.erb +2 -2
  79. data/views/mdc/components/_hidden_field.erb +1 -1
  80. data/views/mdc/components/_multi_select.erb +1 -1
  81. data/views/mdc/components/_number_field.erb +1 -1
  82. data/views/mdc/components/_radio_button.erb +1 -1
  83. data/views/mdc/components/_rich_text_area.erb +1 -1
  84. data/views/mdc/components/_select.erb +1 -1
  85. data/views/mdc/components/_slider.erb +2 -2
  86. data/views/mdc/components/_stepper.erb +4 -4
  87. data/views/mdc/components/_switch.erb +1 -1
  88. data/views/mdc/components/_text_area.erb +1 -1
  89. data/views/mdc/components/_text_field.erb +1 -1
  90. data/views/mdc/components/buttons/_image.erb +1 -1
  91. data/views/mdc/components/unordered_list/_list_item.erb +3 -3
  92. data/views/mdc/layout.erb +4 -4
  93. metadata +33 -30
  94. data/app/demo/components/google_maps.pom +0 -22
  95. data/app/demo/components/snackbar_attached.pom +0 -6
  96. data/lib/coprl/presenters/generators/templates/plugin/README.md +0 -253
  97. data/lib/coprl/presenters/plugins/google_maps.rb +0 -24
  98. data/lib/coprl/presenters/plugins/google_maps/google_map.erb +0 -10
  99. data/lib/coprl/presenters/plugins/google_maps/google_map.rb +0 -41
  100. data/views/mdc/body/_postamble.erb +0 -17
@@ -1,7 +1,7 @@
1
1
  <div id="<%= comp.id %>" class="<%= 'v-hidden' if comp.hidden %>">
2
2
  <div
3
- <% if comp.tag %>
4
- data-input-tag="<%= comp.tag %>"
3
+ <% if comp.input_tag %>
4
+ data-input-tag="<%= comp.input_tag %>"
5
5
  <% end %>
6
6
  <%= draggable_attributes(comp) %>
7
7
  <%= drop_zone_attributes(comp) %>
@@ -3,7 +3,7 @@
3
3
  %>
4
4
  <div class="v-form-field mdc-form-field">
5
5
  <div id="<%= comp.id %>"
6
- <% if comp.tag %>data-input-tag="<%= comp.tag %>"<% end %>
6
+ <% if comp.input_tag %>data-input-tag="<%= comp.input_tag %>"<% end %>
7
7
  <% if comp.dirtyable %>data-dirtyable<% end %>
8
8
  class="v-checkbox mdc-checkbox v-input
9
9
  <%= data_table_class_name %>">
@@ -9,8 +9,8 @@
9
9
  <% end %>
10
10
 
11
11
  <button id="<%= comp.id %>"
12
- <% if comp.tag %>
13
- data-input-tag="<%= comp.tag %>"
12
+ <% if comp.input_tag %>
13
+ data-input-tag="<%= comp.input_tag %>"
14
14
  <% end %>
15
15
  class="v-chip v-input mdc-chip
16
16
  <%= color_classname(comp) %>
@@ -3,8 +3,8 @@
3
3
  position_classes = comp.position.map {|p| "v-content-position-#{p}"}.join(' ')
4
4
  %>
5
5
  <div id="<%= comp.id %>"
6
- <% if comp.tag %>
7
- data-input-tag="<%= comp.tag %>"
6
+ <% if comp.input_tag %>
7
+ data-input-tag="<%= comp.input_tag %>"
8
8
  <% end %>
9
9
  <%= draggable_attributes(comp) %>
10
10
  <%= drop_zone_attributes(comp) %>
@@ -3,7 +3,7 @@
3
3
  type_class = comp.picker ? 'v-datetime' : 'v-date-text'
4
4
  %>
5
5
  <div id="<%= comp.id %>"
6
- <% if comp.tag %>data-input-tag="<%= comp.tag %>"<% end %>
6
+ <% if comp.input_tag %>data-input-tag="<%= comp.input_tag %>"<% end %>
7
7
  <% if comp.dirtyable %>data-dirtyable<% end %>
8
8
  class="v-input <%= type_class %> mdc-text-field mdc-text-field--outlined
9
9
  <%= 'mdc-text-field--with-trailing-icon' if comp.clear_icon %>
@@ -2,8 +2,8 @@
2
2
  dialog_action_buttons = Array(comp&.actions&.buttons)
3
3
  %>
4
4
  <div id="<%= comp.id %>"
5
- <% if comp.tag %>
6
- data-input-tag="<%= comp.tag %>"
5
+ <% if comp.input_tag %>
6
+ data-input-tag="<%= comp.input_tag %>"
7
7
  <% end %>
8
8
  class="v-dialog mdc-dialog"
9
9
  role="alertdialog"
@@ -1,6 +1,6 @@
1
1
  <form role="form"
2
- <% if comp.tag %>
3
- data-input-tag="<%= comp.tag %>"
2
+ <% if comp.input_tag %>
3
+ data-input-tag="<%= comp.input_tag %>"
4
4
  <% end %>
5
5
  id="<%= comp.id %>"
6
6
  class="v-form"
@@ -6,8 +6,8 @@
6
6
  @gutters.push comp.gutter.nil? ? @gutters.last : comp.gutter
7
7
  %>
8
8
  <div id="<%= comp.id %>"
9
- <% if comp.tag %>
10
- data-input-tag="<%= comp.tag %>"
9
+ <% if comp.input_tag %>
10
+ data-input-tag="<%= comp.input_tag %>"
11
11
  <% end %>
12
12
  class="v-grid mdc-layout-grid
13
13
  <%= _padding_classes_(comp.padding, @grid_nesting) %>
@@ -1,5 +1,5 @@
1
1
  <input class="v-input v-hidden-field"
2
2
  type="hidden"
3
- <% if comp.tag %>data-input-tag="<%= comp.tag %>"<% end %>
3
+ <% if comp.input_tag %>data-input-tag="<%= comp.input_tag %>"<% end %>
4
4
  <% if comp.dirtyable %>data-dirtyable<% end %>
5
5
  id="<%= comp.id %>" name="<%= comp.name %>" value="<%= comp.value %>"/>
@@ -2,7 +2,7 @@
2
2
  float_label = comp.options.select{|o| o.selected }.any?
3
3
  %>
4
4
  <div class="v-multi-select-container"
5
- <% if comp.tag %>data-input-tag="<%= comp.tag %>"<% end %>
5
+ <% if comp.input_tag %>data-input-tag="<%= comp.input_tag %>"<% end %>
6
6
  <% if comp.dirtyable %>data-dirtyable<% end %>>
7
7
  <div class="v-multi-select--options-list v-hidden">
8
8
  <% comp.options.each do |option| %>
@@ -4,7 +4,7 @@
4
4
  auto_complete = comp.auto_complete&.to_sym == :off ? 'extra-off' : comp.auto_complete
5
5
  %>
6
6
  <div id="<%= comp.id %>"
7
- <%= "data-input-tag='#{comp.tag}'" if comp.tag %>
7
+ <%= "data-input-tag='#{comp.input_tag}'" if comp.input_tag %>
8
8
  <%= 'data-dirtyable' if comp.dirtyable %>
9
9
  class="v-input v-text-field v-focusable mdc-text-field mdc-text-field--outlined
10
10
  <%= 'mdc-text-field--with-leading-icon' if leading_icon %>
@@ -1,6 +1,6 @@
1
1
  <div class="v-form-field mdc-form-field">
2
2
  <div id="<%= comp.id %>"
3
- <% if comp.tag %>data-input-tag="<%= comp.tag %>"<% end %>
3
+ <% if comp.input_tag %>data-input-tag="<%= comp.input_tag %>"<% end %>
4
4
  <% if comp.dirtyable %>data-dirtyable<% end %>
5
5
  class="v-radio mdc-radio v-input">
6
6
  <input class="mdc-radio__native-control"
@@ -1,6 +1,6 @@
1
1
  <div class="v-rich-text-area-container v-input"
2
2
  id="<%= comp.id %>"
3
- <% if comp.tag %>data-input-tag="<%= comp.tag %>"<% end %>
3
+ <% if comp.input_tag %>data-input-tag="<%= comp.input_tag %>"<% end %>
4
4
  <% if comp.dirtyable %>data-dirtyable<% end %>
5
5
  <% if comp.height %>data-initial-height="<%= comp.height %>"<% end %>
6
6
  <% if comp.resizable %>data-resizable<% end %>
@@ -4,7 +4,7 @@
4
4
  <div class="mdc-select v-select v-input
5
5
  <%= 'mdc-select--outlined' if comp.outlined %>
6
6
  <% if comp.disabled %>mdc-select--disabled<% end %>"
7
- <% if comp.tag %>data-input-tag="<%= comp.tag %>"<% end %>
7
+ <% if comp.input_tag %>data-input-tag="<%= comp.input_tag %>"<% end %>
8
8
  <% if comp.dirtyable %>data-dirtyable<% end %>
9
9
  <%= 'style="width: 100%;"' if comp.full_width %>>
10
10
  <%= partial "components/icon", :locals => {comp: comp.icon, class_name: 'mdc-select__icon', parent_id: "#{comp.id}-input", size_class: '', position: []} if comp.icon %>
@@ -1,6 +1,6 @@
1
1
  <div id="<%= comp.id %>"
2
- <% if comp.tag %>
3
- data-input-tag="<%= comp.tag %>"
2
+ <% if comp.input_tag %>
3
+ data-input-tag="<%= comp.input_tag %>"
4
4
  <% end %>
5
5
  class="v-slider v-input mdc-slider
6
6
  <%= 'mdc-slider--discrete' if comp.discrete %>
@@ -3,8 +3,8 @@
3
3
  %>
4
4
  <div class="v-errors">
5
5
  <ul id="<%= comp.id %>"
6
- <% if comp.tag %>
7
- data-input-tag="<%= comp.tag %>"
6
+ <% if comp.input_tag %>
7
+ data-input-tag="<%= comp.input_tag %>"
8
8
  <% end %>
9
9
  class="mdl-stepper v-stepper
10
10
  <%= ' mdl-stepper--horizontal' if horizontal %>
@@ -18,8 +18,8 @@
18
18
  <div id="<%= comp.id %>-content">
19
19
  <% for step in comp.steps %>
20
20
  <div id="<%= step.id %>-content"
21
- <% if step.tag %>
22
- data-input-tag="<%= step.tag %>"
21
+ <% if step.input_tag %>
22
+ data-input-tag="<%= step.input_tag %>"
23
23
  <% end %>
24
24
  class="v-content v-step__content v-step__content-<%= step.id %>
25
25
  <%= ' is-active' if step.selected %>
@@ -3,7 +3,7 @@
3
3
 
4
4
  <div class="v-form-field mdc-form-field">
5
5
  <div id="<%= comp.id %>"
6
- <% if comp.tag %>data-input-tag="<%= comp.tag %>"<% end %>
6
+ <% if comp.input_tag %>data-input-tag="<%= comp.input_tag %>"<% end %>
7
7
  <% if comp.dirtyable %>data-dirtyable<% end %>
8
8
  class="v-switch v-input mdc-switch
9
9
  <%= 'mdc-switch--disabled' if comp.disabled %>
@@ -1,6 +1,6 @@
1
1
  <div id="<%= comp.id %>" class="v-input v-text-field mdc-text-field mdc-text-field--textarea
2
2
  <% if comp.disabled %>mdc-text-field--disabled<% end %>"
3
- <% if comp.tag %>data-input-tag="<%= comp.tag %>"<% end %>
3
+ <% if comp.input_tag %>data-input-tag="<%= comp.input_tag %>"<% end %>
4
4
  <% if comp.dirtyable %>data-dirtyable<% end %>
5
5
  style="<%= 'width:100%' if comp.full_width %>">
6
6
  <textarea id="<%= comp.id %>-input"
@@ -5,7 +5,7 @@
5
5
  behavior = comp.behavior || 'text'
6
6
  %>
7
7
  <div id="<%= comp.id %>"
8
- <% if comp.tag %>data-input-tag="<%= comp.tag %>"<% end %>
8
+ <% if comp.input_tag %>data-input-tag="<%= comp.input_tag %>"<% end %>
9
9
  <% if comp.dirtyable %>data-dirtyable<% end %>
10
10
  class="v-input v-text-field v-focusable mdc-text-field mdc-text-field--outlined
11
11
  <%= 'mdc-text-field--with-leading-icon' if leading_icon %>
@@ -22,4 +22,4 @@
22
22
  <%= partial "components/icon", :locals => {comp: comp.icon, class_name: 'mdc-button__icon', position: [:right, :center]} if comp.icon %>
23
23
  </button>
24
24
  <%= partial "components/tooltip", :locals => {comp: comp.tooltip, parent_id: comp.id} if comp.tooltip %>
25
- <%= partial "components/menu", :locals => {comp: comp.menu, parent_id: comp.id} if comp.menus %>
25
+ <%= partial "components/menu", :locals => {comp: comp.menu, parent_id: comp.id} if comp.menu %>
@@ -1,7 +1,7 @@
1
1
  <li class="<%= 'icon-li' if list_item.icon %>">
2
- <%= erb :"components/unordered_list/icon", :locals => {:list_item => list_item} %>
2
+ <%= partial "components/unordered_list/icon", :locals => {:list_item => list_item} %>
3
3
  <%= expand_text(list_item.text&.text) %>
4
4
  <% if list_item.unordered_list %>
5
- <%= erb :"components/unordered_list", :locals => {:comp => list_item.unordered_list} %>
5
+ <%= partial "components/unordered_list", :locals => {:comp => list_item.unordered_list} %>
6
6
  <% end %>
7
- </li>
7
+ </li>
data/views/mdc/layout.erb CHANGED
@@ -7,12 +7,12 @@
7
7
  <title><%= @pom.page.title if @pom.page %></title>
8
8
  <meta name="description" content="">
9
9
  <meta name="viewport" content="width=device-width, initial-scale=1">
10
- <%= coprl_headers(@base_url, request, @pom) %>
10
+ <%= coprl_headers %>
11
11
  </head>
12
12
  <body class="mdc-typography">
13
- <%= partial "body/preamble", :locals => {pom:@pom} %>
14
- <%= yield %>
15
- <%= partial "body/postamble", :locals => {pom:@pom} %>
13
+ <% with_presenters_wrapper do %>
14
+ <%= yield %>
15
+ <% end %>
16
16
  <noscript><p>JavaScript must be enabled to continue.</p></noscript>
17
17
  </body>
18
18
  </html>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coprl
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.beta.2
4
+ version: 3.0.0.beta.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Russell Edens
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-06-03 00:00:00.000000000 Z
11
+ date: 2021-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ice_nine
@@ -140,20 +140,6 @@ dependencies:
140
140
  - - "~>"
141
141
  - !ruby/object:Gem::Version
142
142
  version: '3.4'
143
- - !ruby/object:Gem::Dependency
144
- name: filewatcher
145
- requirement: !ruby/object:Gem::Requirement
146
- requirements:
147
- - - "~>"
148
- - !ruby/object:Gem::Version
149
- version: 1.1.1
150
- type: :runtime
151
- prerelease: false
152
- version_requirements: !ruby/object:Gem::Requirement
153
- requirements:
154
- - - "~>"
155
- - !ruby/object:Gem::Version
156
- version: 1.1.1
157
143
  - !ruby/object:Gem::Dependency
158
144
  name: zeitwerk
159
145
  requirement: !ruby/object:Gem::Requirement
@@ -267,33 +253,33 @@ dependencies:
267
253
  - !ruby/object:Gem::Version
268
254
  version: '3.0'
269
255
  - !ruby/object:Gem::Dependency
270
- name: gem-release
256
+ name: shotgun
271
257
  requirement: !ruby/object:Gem::Requirement
272
258
  requirements:
273
259
  - - "~>"
274
260
  - !ruby/object:Gem::Version
275
- version: '2.0'
261
+ version: '0.9'
276
262
  type: :development
277
263
  prerelease: false
278
264
  version_requirements: !ruby/object:Gem::Requirement
279
265
  requirements:
280
266
  - - "~>"
281
267
  - !ruby/object:Gem::Version
282
- version: '2.0'
268
+ version: '0.9'
283
269
  - !ruby/object:Gem::Dependency
284
- name: shotgun
270
+ name: timecop
285
271
  requirement: !ruby/object:Gem::Requirement
286
272
  requirements:
287
273
  - - "~>"
288
274
  - !ruby/object:Gem::Version
289
- version: '0.9'
275
+ version: 0.9.4
290
276
  type: :development
291
277
  prerelease: false
292
278
  version_requirements: !ruby/object:Gem::Requirement
293
279
  requirements:
294
280
  - - "~>"
295
281
  - !ruby/object:Gem::Version
296
- version: '0.9'
282
+ version: 0.9.4
297
283
  description:
298
284
  email:
299
285
  - 'rx@russelledens.net
@@ -340,7 +326,6 @@ files:
340
326
  - app/demo/components/fabs.pom
341
327
  - app/demo/components/file_inputs.pom
342
328
  - app/demo/components/footers.pom
343
- - app/demo/components/google_maps.pom
344
329
  - app/demo/components/headers.pom
345
330
  - app/demo/components/hidden_fields.pom
346
331
  - app/demo/components/icons.pom
@@ -360,7 +345,6 @@ files:
360
345
  - app/demo/components/selects.pom
361
346
  - app/demo/components/sliders.pom
362
347
  - app/demo/components/snackbar.pom
363
- - app/demo/components/snackbar_attached.pom
364
348
  - app/demo/components/steppers.pom
365
349
  - app/demo/components/tab_bars.pom
366
350
  - app/demo/components/tables.pom
@@ -391,6 +375,7 @@ files:
391
375
  - app/demo/events/content_as_form.pom
392
376
  - app/demo/events/field_level.pom
393
377
  - app/demo/events/form_level.pom
378
+ - app/demo/events/halted.pom
394
379
  - app/demo/events/nav/drawer.pom
395
380
  - app/demo/events/parallel.pom
396
381
  - app/demo/events/tagged_input.pom
@@ -405,10 +390,20 @@ files:
405
390
  - app/demo/patterns/drag_drop.pom
406
391
  - app/demo/patterns/floating_card.pom
407
392
  - app/demo/patterns/search_select.pom
393
+ - app/demo/plugins/animate.pom
394
+ - app/demo/plugins/cacheable.pom
408
395
  - app/demo/plugins/chart.pom
396
+ - app/demo/plugins/clipboard.pom
397
+ - app/demo/plugins/color_picker.pom
398
+ - app/demo/plugins/google_maps.pom
399
+ - app/demo/plugins/iframe.pom
409
400
  - app/demo/plugins/image_crop.pom
410
401
  - app/demo/plugins/index.pom
402
+ - app/demo/plugins/markup.pom
411
403
  - app/demo/plugins/nav/drawer.pom
404
+ - app/demo/plugins/script.pom
405
+ - app/demo/plugins/scroll_to.pom
406
+ - app/demo/plugins/timer.pom
412
407
  - app/demo/shared/code.pom
413
408
  - app/demo/shared/context_list.pom
414
409
  - app/demo/shared/debug.pom
@@ -558,16 +553,21 @@ files:
558
553
  - lib/coprl/presenters/errors/unprocessable.rb
559
554
  - lib/coprl/presenters/generators/inflectors.rb
560
555
  - lib/coprl/presenters/generators/plugin.rb
556
+ - lib/coprl/presenters/generators/templates/plugin/.github/workflows/semantic-release.yml
561
557
  - lib/coprl/presenters/generators/templates/plugin/.gitignore
558
+ - lib/coprl/presenters/generators/templates/plugin/.releaserc
559
+ - lib/coprl/presenters/generators/templates/plugin/.ruby-version
562
560
  - lib/coprl/presenters/generators/templates/plugin/Gemfile.tt
563
561
  - lib/coprl/presenters/generators/templates/plugin/LICENSE.txt.tt
564
- - lib/coprl/presenters/generators/templates/plugin/README.md
562
+ - lib/coprl/presenters/generators/templates/plugin/README.md.tt
563
+ - lib/coprl/presenters/generators/templates/plugin/demo/plugin.pom.tt
565
564
  - lib/coprl/presenters/generators/templates/plugin/lib/coprl/presenters/plugins/components/actions/action.rb.tt
566
565
  - lib/coprl/presenters/generators/templates/plugin/lib/coprl/presenters/plugins/components/actions/dsl.rb.tt
567
566
  - lib/coprl/presenters/generators/templates/plugin/lib/coprl/presenters/plugins/components/component.rb.tt
568
567
  - lib/coprl/presenters/generators/templates/plugin/lib/coprl/presenters/plugins/components/dsl.rb.tt
569
568
  - lib/coprl/presenters/generators/templates/plugin/lib/coprl/presenters/plugins/helpers/helper.rb.tt
570
569
  - lib/coprl/presenters/generators/templates/plugin/lib/coprl/presenters/plugins/plugin.rb.tt
570
+ - lib/coprl/presenters/generators/templates/plugin/lib/coprl/presenters/plugins/version.rb.tt
571
571
  - lib/coprl/presenters/generators/templates/plugin/lib/coprl/presenters/plugins/web_client/components/actions/data.rb.tt
572
572
  - lib/coprl/presenters/generators/templates/plugin/lib/coprl/presenters/plugins/web_client/components/render.rb.tt
573
573
  - lib/coprl/presenters/generators/templates/plugin/presenter_plugin.gemspec.tt
@@ -583,17 +583,17 @@ files:
583
583
  - lib/coprl/presenters/helpers/rails.rb
584
584
  - lib/coprl/presenters/helpers/rails/currency.rb
585
585
  - lib/coprl/presenters/helpers/rails/model_table.rb
586
+ - lib/coprl/presenters/helpers/rails/routes.rb
586
587
  - lib/coprl/presenters/helpers/redact.rb
587
588
  - lib/coprl/presenters/helpers/route.rb
588
589
  - lib/coprl/presenters/helpers/time.rb
589
590
  - lib/coprl/presenters/namespace.rb
590
591
  - lib/coprl/presenters/pluggable.rb
591
592
  - lib/coprl/presenters/plugins.rb
592
- - lib/coprl/presenters/plugins/google_maps.rb
593
- - lib/coprl/presenters/plugins/google_maps/google_map.erb
594
- - lib/coprl/presenters/plugins/google_maps/google_map.rb
593
+ - lib/coprl/presenters/rails/concerns/coprl_partial.rb
595
594
  - lib/coprl/presenters/rails/engine.rb
596
595
  - lib/coprl/presenters/rails/railtie.rb
596
+ - lib/coprl/presenters/rails/reloader.rb
597
597
  - lib/coprl/presenters/registry.rb
598
598
  - lib/coprl/presenters/router.rb
599
599
  - lib/coprl/presenters/settings.rb
@@ -623,6 +623,7 @@ files:
623
623
  - lib/coprl/presenters/web_client/helpers/rails/partials.rb
624
624
  - lib/coprl/presenters/web_client/helpers/rails/raw.rb
625
625
  - lib/coprl/presenters/web_client/helpers/rails/safe_markdown.rb
626
+ - lib/coprl/presenters/web_client/helpers/rails/template_helper.rb
626
627
  - lib/coprl/presenters/web_client/helpers/render_component.rb
627
628
  - lib/coprl/presenters/web_client/helpers/shared.rb
628
629
  - lib/coprl/presenters/web_client/helpers/sinatra.rb
@@ -631,6 +632,7 @@ files:
631
632
  - lib/coprl/presenters/web_client/helpers/sinatra/partials.rb
632
633
  - lib/coprl/presenters/web_client/helpers/sinatra/raw.rb
633
634
  - lib/coprl/presenters/web_client/helpers/sinatra/safe_markdown.rb
635
+ - lib/coprl/presenters/web_client/helpers/sinatra/template_helper.rb
634
636
  - lib/coprl/presenters/web_client/helpers/snake_to_camel.rb
635
637
  - lib/coprl/presenters/web_client/helpers/transform_hash.rb
636
638
  - lib/coprl/presenters/web_client/helpers/unique_id.rb
@@ -672,6 +674,8 @@ files:
672
674
  - rails-engine/app/views/layouts/coprl.html.erb
673
675
  - rails-engine/config.ru
674
676
  - rails-engine/config/initializers/presenters.rb
677
+ - rails-engine/config/initializers/routes.rb
678
+ - rails-engine/config/initializers/session.rb
675
679
  - rails-engine/config/routes.rb
676
680
  - scripts/build.sh
677
681
  - views/mdc/.babelrc
@@ -802,9 +806,8 @@ files:
802
806
  - views/mdc/body/_footer.erb
803
807
  - views/mdc/body/_header.erb
804
808
  - views/mdc/body/_modal-drawer.erb
805
- - views/mdc/body/_postamble.erb
806
- - views/mdc/body/_preamble.erb
807
809
  - views/mdc/body/_snackbar.erb
810
+ - views/mdc/body/_wrapper.erb
808
811
  - views/mdc/body/drawer/_divider.erb
809
812
  - views/mdc/body/drawer/_item.erb
810
813
  - views/mdc/body/drawer/_label.erb
@@ -1,22 +0,0 @@
1
- require_relative '../helpers/indented_grid'
2
-
3
- Coprl::Presenters.define(:maps) do
4
- helpers Demo::Helpers::IndentedGrid
5
- attach :top_nav
6
- attach :component_drawer
7
- page_title 'Maps'
8
-
9
- indented_grid do
10
- subheading 'Static Maps'
11
-
12
- address = '125 Park Street, Traverse City, MI'
13
- google_map address: address, height: 300, width: 400 do
14
- event :click do
15
- loads "https://www.google.com/maps/place/#{address}"
16
- end
17
- end
18
-
19
- attach :code, file: __FILE__
20
- end
21
-
22
- end