coprl 3.0.0.beta.4 → 3.0.0.beta.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/Gemfile.lock +11 -11
  4. data/app/demo/components/dialogs.pom +1 -1
  5. data/app/demo/events/content_as_form.pom +3 -3
  6. data/app/demo/events/halted.pom +23 -0
  7. data/app/demo/events/nav/drawer.pom +1 -1
  8. data/app/demo/events/tagged_input.pom +2 -2
  9. data/app/demo/patterns/search_select.pom +1 -1
  10. data/lib/coprl/presenters/dsl/components/actions/base.rb +5 -1
  11. data/lib/coprl/presenters/dsl/components/base.rb +6 -3
  12. data/lib/coprl/presenters/dsl/components/multi_select.rb +3 -3
  13. data/lib/coprl/presenters/dsl/components/table.rb +2 -2
  14. data/lib/coprl/presenters/version.rb +1 -1
  15. data/public/bundle.js +10 -4
  16. data/public/wc.js +10 -4
  17. data/views/mdc/assets/js/components/events/posts.js +10 -6
  18. data/views/mdc/components/_card.erb +2 -2
  19. data/views/mdc/components/_checkbox.erb +1 -1
  20. data/views/mdc/components/_chip.erb +2 -2
  21. data/views/mdc/components/_content.erb +2 -2
  22. data/views/mdc/components/_datetime.erb +1 -1
  23. data/views/mdc/components/_dialog.erb +2 -2
  24. data/views/mdc/components/_form.erb +2 -2
  25. data/views/mdc/components/_grid.erb +2 -2
  26. data/views/mdc/components/_hidden_field.erb +1 -1
  27. data/views/mdc/components/_multi_select.erb +1 -1
  28. data/views/mdc/components/_number_field.erb +1 -1
  29. data/views/mdc/components/_radio_button.erb +1 -1
  30. data/views/mdc/components/_rich_text_area.erb +1 -1
  31. data/views/mdc/components/_select.erb +1 -1
  32. data/views/mdc/components/_slider.erb +2 -2
  33. data/views/mdc/components/_stepper.erb +4 -4
  34. data/views/mdc/components/_switch.erb +1 -1
  35. data/views/mdc/components/_text_area.erb +1 -1
  36. data/views/mdc/components/_text_field.erb +1 -1
  37. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 45145c29a52d2d2074e5df3ea11da0a7c88620b1043341a1189cd08a52b0d88c
4
- data.tar.gz: d7de08262cb1acd575cad2128b11994e4951f40b87c14cab80adec38abc512c9
3
+ metadata.gz: ff1d61921712f73e4c13f6a206c4499e7bd72f40b82471cf03f741a272f118c1
4
+ data.tar.gz: 6e6812e4334f47c542b3710cea1d74daa0d6f7b3e803bd0ac334e15cc6192461
5
5
  SHA512:
6
- metadata.gz: 8a7cd7a2ef1e87c04010151ee4617dfa1bf341431a8663a5877fba94bd7347ee5b2c894ac87d62d06c6f806559dcfab1969d51ec1129c208ac5d316a85d4bd62
7
- data.tar.gz: b5e9bdf460093dc6d0d54150ea03d1e2cf7f285b486fe4c9f70606abbc90fb8800e566ef6100a1d4703cc08dc82b4a52c90383ea16262d1c9efaf83d784eaa0d
6
+ metadata.gz: 384f80e03ad8cb9674d35d3fb5ceb293b6fed3c4b497076efeb3dfd8215394716b6c82db4fc8fc5ffe8d8145a6bc6f5f69adbcd6ecf67245f5f9e7b08c2cdb81
7
+ data.tar.gz: 15ec4d677bc0ab317e5de06c3c0e499fa22b9fa047c78da589539365e6abc4c8dce33a889d97e6d9f620916ceaf05eb2dc1ec89ad29b9eab1828dfccde9dd15f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ # [3.0.0-beta.5](https://github.com/rx/presenters/compare/v3.0.0-beta.4...v3.0.0-beta.5) (2021-06-18)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add Rack > 2.2.2 support ([c39c18d](https://github.com/rx/presenters/commit/c39c18d48c557f9f206396eb73e20f15b0a85e7e))
7
+ * add Rack > 2.2.2 support ([6e23287](https://github.com/rx/presenters/commit/6e232875d1ea3c4250f9e19e841215a750082ffc))
8
+ * native rails tag helper conflicts with base components tag method. ([c9d3847](https://github.com/rx/presenters/commit/c9d3847405ab53c1ba728bf9f2afac655f0b1c1f))
9
+
1
10
  # [3.0.0-beta.4](https://github.com/rx/presenters/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2021-06-15)
2
11
 
3
12
 
data/Gemfile.lock CHANGED
@@ -12,7 +12,7 @@ GIT
12
12
 
13
13
  GIT
14
14
  remote: https://github.com/coprl/chart_presenter_plugin.git
15
- revision: ae9a8bb805570dbf2c1156e3c81f07e3a24807e2
15
+ revision: 6b93c7a1b04356987cbe962841f564f4afc744c4
16
16
  specs:
17
17
  chart_presenter_plugin (0.1.0)
18
18
 
@@ -24,32 +24,32 @@ GIT
24
24
 
25
25
  GIT
26
26
  remote: https://github.com/coprl/color_picker_presenter_plugin.git
27
- revision: 73807e71d3c9410ff76437323b3f480784f98b47
27
+ revision: 10bdc8b555b2c168ee1d93316c7b10e961a7f5b5
28
28
  specs:
29
29
  color_picker_presenter_plugin (0.0.1)
30
30
 
31
31
  GIT
32
32
  remote: https://github.com/coprl/foo_presenter_plugin.git
33
- revision: f9c92ab98388aeb150c9b523e97042c1386aff10
33
+ revision: 7b05a88ac5d34a18401d8dbbb73758927be39cdd
34
34
  specs:
35
35
  foo_presenter_plugin (0.0.2)
36
36
 
37
37
  GIT
38
38
  remote: https://github.com/coprl/google_maps_presenter_plugin.git
39
- revision: 237d956ce36b6c9945080088e4d9e5a2f042ee5b
39
+ revision: 53d8d4d778fcc0295980aaae29bbc3fdb3a947d4
40
40
  branch: main
41
41
  specs:
42
42
  google_maps_presenter_plugin (0.1.0)
43
43
 
44
44
  GIT
45
45
  remote: https://github.com/coprl/iframe_presenter_plugin.git
46
- revision: 7b460d23a277e85e89cb8547538c7af484a873f7
46
+ revision: d0bc691adba4807499af30ee375e9b6dd1426732
47
47
  specs:
48
48
  iframe_presenter_plugin (0.0.1)
49
49
 
50
50
  GIT
51
51
  remote: https://github.com/coprl/image_crop_presenter_plugin.git
52
- revision: 33452c5d3b232e93a942280f8429be2707c992ab
52
+ revision: 586ef47bd6132f94810cfb04d02fcf7c9df1ae10
53
53
  specs:
54
54
  image_crop_presenter_plugin (0.1.0)
55
55
 
@@ -67,13 +67,13 @@ GIT
67
67
 
68
68
  GIT
69
69
  remote: https://github.com/coprl/scroll_to_presenter_plugin.git
70
- revision: e1dd957723561117ee45743ac9e27a4fd91a4a97
70
+ revision: c34ab770665a16b81b8274357dd9cc77dbd0a566
71
71
  specs:
72
72
  scroll_to_presenter_plugin (0.0.2)
73
73
 
74
74
  GIT
75
75
  remote: https://github.com/coprl/timer_presenter_plugin.git
76
- revision: 319392281f17875cbe69aaeb8b5ac26ec78fc7bf
76
+ revision: 5901fd1a368ae7b293c0b87f58ebd01a24a38573
77
77
  specs:
78
78
  timer_presenter_plugin (0.0.1)
79
79
 
@@ -98,17 +98,17 @@ GEM
98
98
  byebug (11.1.3)
99
99
  childprocess (3.0.0)
100
100
  coderay (1.1.2)
101
- concurrent-ruby (1.1.8)
101
+ concurrent-ruby (1.1.9)
102
102
  diff-lcs (1.3)
103
103
  docile (1.3.1)
104
104
  dotenv (2.7.6)
105
105
  dry-configurable (0.12.1)
106
106
  concurrent-ruby (~> 1.0)
107
107
  dry-core (~> 0.5, >= 0.5.0)
108
- dry-container (0.7.2)
108
+ dry-container (0.8.0)
109
109
  concurrent-ruby (~> 1.0)
110
110
  dry-configurable (~> 0.1, >= 0.1.3)
111
- dry-core (0.5.0)
111
+ dry-core (0.6.0)
112
112
  concurrent-ruby (~> 1.0)
113
113
  dry-inflector (0.2.0)
114
114
  filewatcher (1.1.1)
@@ -170,7 +170,7 @@ Coprl::Presenters.define(:dialogs) do
170
170
  end
171
171
  end
172
172
  separator
173
- content tag: :second_form_input do
173
+ content input_tag: :second_form_input do
174
174
  dlg_form
175
175
  end
176
176
  subtitle 'The buttons below are Dialog Action buttons. When clicked, they will process any configured actions, then automatically clsoe the dialog.'
@@ -118,7 +118,7 @@ Coprl::Presenters.define(:content_as_form) do
118
118
 
119
119
  grid do
120
120
  column 12 do
121
- text_field id: :input_tag_extra, name: :whatever, tag: :test_input_tag do
121
+ text_field id: :input_tag_extra, name: :whatever, input_tag: :test_input_tag do
122
122
  value 'foo bar'
123
123
  end
124
124
  end
@@ -127,7 +127,7 @@ Coprl::Presenters.define(:content_as_form) do
127
127
  indented_grid do
128
128
  card do
129
129
  title 'Content with input_tag'
130
- content id: :content_2, tag: :test_input_tag do
130
+ content id: :content_2, input_tag: :test_input_tag do
131
131
  text_field name: :text1 do
132
132
  label 'Text 1'
133
133
  end
@@ -275,7 +275,7 @@ end
275
275
 
276
276
  Coprl::Presenters.define(:dialog_c) do
277
277
  dialog id: :dialog_c do
278
- content tag: :some_dialog_tag do
278
+ content input_tag: :some_dialog_tag do
279
279
  text_field name: :dialog_text_field do
280
280
  value 'whatever'
281
281
  end
@@ -0,0 +1,23 @@
1
+ Coprl::Presenters.define(:halted) do
2
+ helpers Demo::Helpers::IndentedGrid
3
+ attach :top_nav
4
+ attach :events_drawer
5
+
6
+ indented_grid do
7
+ display 'Halted Events'
8
+ body 'This demonstrates how to respond to failed, or halted events'
9
+
10
+ content do
11
+ button :failed_post do
12
+ event :click do
13
+ posts '_echo_', status: 500
14
+ end
15
+ event 'V:eventsHalted' do
16
+ snackbar 'That did not work! Please try again later.'
17
+ end
18
+ end
19
+
20
+ end
21
+ end
22
+ attach :code, file: __FILE__
23
+ end
@@ -1,7 +1,7 @@
1
1
  Coprl::Presenters.define(:events_drawer) do
2
2
  helpers Coprl::Presenters::Helpers::Inflector
3
3
 
4
- events = %i[field_level_events form_level_events tagged_input parallel_events].sort
4
+ events = %i[field_level_events form_level_events tagged_input parallel_events halted].sort
5
5
  actions = %i[dialog replaces loads toggle_visibility snackbar updates deletes posts clear last_response prompt_if_dirty].sort
6
6
 
7
7
  drawer 'Events' do
@@ -18,11 +18,11 @@ Coprl::Presenters.define(:tagged_input) do
18
18
 
19
19
  title 'Example'
20
20
 
21
- content tag: :somefields do
21
+ content input_tag: :somefields do
22
22
  radio_button text: :on, name: :check_me, value: :on, checked: true
23
23
  radio_button text: :off, name: :check_me, value: :off
24
24
  end
25
- text_field name: :myfield2, tag: :somefields do
25
+ text_field name: :myfield2, input_tag: :somefields do
26
26
  label 'More Data to post'
27
27
  end
28
28
 
@@ -21,7 +21,7 @@ Coprl::Presenters.define(:search_select) do
21
21
 
22
22
  page_title 'Search and Select Pattern'
23
23
  indented_grid do
24
- grid tag: :input_data_container do
24
+ grid input_tag: :input_data_container do
25
25
  column 6 do
26
26
  grid do
27
27
  column 4 do
@@ -25,10 +25,14 @@ module Coprl
25
25
  private
26
26
 
27
27
  def extract_options!
28
- %i(path presenter target input_tag headers).each do |option|
28
+ %i(path presenter target headers).each do |option|
29
29
  option_value = attribs.delete(option){:not_found}
30
30
  @options.merge!({option => option_value}) unless option_value==:not_found
31
31
  end
32
+ # Special case ... the input tag is defined at the component base level for all components
33
+ # By the time we get here we have put it into its accessor via the super call
34
+ # So we manually move it to the options for all actions
35
+ @options.merge!(input_tag: self.input_tag) if self.input_tag
32
36
  end
33
37
 
34
38
  def extract_dynamic_params(hash)
@@ -15,16 +15,19 @@ module Coprl
15
15
  include Mixins::YieldTo
16
16
  extend Pluggable
17
17
 
18
- attr_reader :type, :id, :tag, :attributes, :draggable, :drop_zone, :css_class
18
+ attr_reader :type, :id, :input_tag, :attributes, :draggable, :drop_zone, :css_class
19
19
 
20
20
  alias attribs attributes
21
21
 
22
- def initialize(type:, parent:, id: nil, tag: nil, **attributes, &block)
22
+ def initialize(type:, parent:, id: nil, tag: nil, input_tag: nil, **attributes, &block)
23
23
  @draggable = attributes.delete(:draggable) {nil}
24
24
  @drop_zone = attributes.delete(:drop_zone) {nil}
25
25
  @css_class = Array(attributes.delete(:class) {nil})
26
26
  @id = id || generate_id
27
- @tag = tag
27
+ @input_tag = input_tag || tag
28
+ logger.warn(
29
+ 'The `tag` attribute is deprecated. ' \
30
+ 'Please use `input_tag` instead. This will change in a future feature release.') unless tag.nil?
28
31
  @type = type
29
32
  @parent = parent
30
33
  @attributes = attributes
@@ -16,8 +16,8 @@ module Coprl
16
16
  def check_option(**attribs, &block)
17
17
  @options << CheckOption.new(parent: self,
18
18
  name: @name,
19
- tag: @tag,
20
- **attribs.delete_if{ |k,v| [:tag, :name].include?(k) }, &block)
19
+ input_tag: @input_tag,
20
+ **attribs.delete_if{ |k,v| [:tag, :name, :input_tag].include?(k) }, &block)
21
21
  end
22
22
 
23
23
  class CheckOption < EventBase
@@ -33,7 +33,7 @@ module Coprl
33
33
  self.checkbox(name: "#{attribs[:name]}[]",
34
34
  value: @value,
35
35
  text: @text,
36
- tag: tag,
36
+ input_tag: self.input_tag,
37
37
  checked: @selected,
38
38
  disabled: @disabled,
39
39
  &block)
@@ -58,10 +58,10 @@ module Coprl
58
58
  def checkbox(**attributes, &block)
59
59
  return @checkbox if locked?
60
60
  field_name = @type == :header ? 'all' : "#{attributes.delete(:name)}[]"
61
- tag = @type == :header ? '' : @parent.tag
61
+ tag = @type == :header ? '' : @parent.input_tag
62
62
  @checkbox = Components::Checkbox.new(parent: self,
63
63
  name: field_name,
64
- tag: tag,
64
+ input_tag: tag,
65
65
  **attributes,
66
66
  &block)
67
67
  end
@@ -1,7 +1,7 @@
1
1
  module Coprl
2
2
  module Presenters
3
3
  module Version
4
- VERSION = '3.0.0.beta.4'
4
+ VERSION = '3.0.0.beta.5'
5
5
  end
6
6
  end
7
7
  end
data/public/bundle.js CHANGED
@@ -48739,9 +48739,7 @@ var VPosts = function (_VBase) {
48739
48739
  }
48740
48740
  }
48741
48741
 
48742
- var paramCount = Array.from(formData).length;
48743
-
48744
- if (paramCount < 1) {
48742
+ if (this.paramCount(formData) < 1) {
48745
48743
  console.warn('Creating request with no data!' + ' Are you sure you\'ve hooked everything up correctly?');
48746
48744
  }
48747
48745
 
@@ -48910,9 +48908,17 @@ var VPosts = function (_VBase) {
48910
48908
  }
48911
48909
 
48912
48910
  // Send our FormData object; HTTP headers are set automatically
48913
- httpRequest.send(formData);
48911
+ // Rack 2.2 will throw an exception https://github.com/rack/rack/issues/1603
48912
+ // if we set the header as multi-part form data with no data in the body
48913
+ // So we set the body to null in this case.
48914
+ httpRequest.send(_this2.paramCount(formData) < 1 ? null : formData);
48914
48915
  });
48915
48916
  }
48917
+ }, {
48918
+ key: 'paramCount',
48919
+ value: function paramCount(formData) {
48920
+ return Array.from(formData).length;
48921
+ }
48916
48922
  }, {
48917
48923
  key: 'isForm',
48918
48924
  value: function isForm() {
data/public/wc.js CHANGED
@@ -34213,9 +34213,7 @@ var VPosts = function (_VBase) {
34213
34213
  }
34214
34214
  }
34215
34215
 
34216
- var paramCount = Array.from(formData).length;
34217
-
34218
- if (paramCount < 1) {
34216
+ if (this.paramCount(formData) < 1) {
34219
34217
  console.warn('Creating request with no data!' + ' Are you sure you\'ve hooked everything up correctly?');
34220
34218
  }
34221
34219
 
@@ -34384,9 +34382,17 @@ var VPosts = function (_VBase) {
34384
34382
  }
34385
34383
 
34386
34384
  // Send our FormData object; HTTP headers are set automatically
34387
- httpRequest.send(formData);
34385
+ // Rack 2.2 will throw an exception https://github.com/rack/rack/issues/1603
34386
+ // if we set the header as multi-part form data with no data in the body
34387
+ // So we set the body to null in this case.
34388
+ httpRequest.send(_this2.paramCount(formData) < 1 ? null : formData);
34388
34389
  });
34389
34390
  }
34391
+ }, {
34392
+ key: 'paramCount',
34393
+ value: function paramCount(formData) {
34394
+ return Array.from(formData).length;
34395
+ }
34390
34396
  }, {
34391
34397
  key: 'isForm',
34392
34398
  value: function isForm() {
@@ -59,13 +59,10 @@ export class VPosts extends VBase {
59
59
  formData.append(name, encode(value));
60
60
  }
61
61
 
62
- const paramCount = Array.from(formData).length;
63
-
64
- if (paramCount < 1) {
62
+ if (this.paramCount(formData) < 1) {
65
63
  console.warn(
66
64
  'Creating request with no data!'
67
- + ' Are you sure you\'ve hooked everything up correctly?',
68
- );
65
+ + ' Are you sure you\'ve hooked everything up correctly?');
69
66
  }
70
67
 
71
68
  let errors = this.validate(formData);
@@ -185,10 +182,17 @@ export class VPosts extends VBase {
185
182
  }
186
183
 
187
184
  // Send our FormData object; HTTP headers are set automatically
188
- httpRequest.send(formData);
185
+ // Rack 2.2 will throw an exception https://github.com/rack/rack/issues/1603
186
+ // if we set the header as multi-part form data with no data in the body
187
+ // So we set the body to null in this case.
188
+ httpRequest.send(this.paramCount(formData) < 1 ? null : formData);
189
189
  });
190
190
  }
191
191
 
192
+ paramCount(formData){
193
+ return Array.from(formData).length;
194
+ }
195
+
192
196
  isForm() {
193
197
  var parentElement = this.parentElement();
194
198
  return parentElement && parentElement.elements;
@@ -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 %>
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.4
4
+ version: 3.0.0.beta.5
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-15 00:00:00.000000000 Z
11
+ date: 2021-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ice_nine
@@ -390,6 +390,7 @@ files:
390
390
  - app/demo/events/content_as_form.pom
391
391
  - app/demo/events/field_level.pom
392
392
  - app/demo/events/form_level.pom
393
+ - app/demo/events/halted.pom
393
394
  - app/demo/events/nav/drawer.pom
394
395
  - app/demo/events/parallel.pom
395
396
  - app/demo/events/tagged_input.pom