five-two-nw-olivander 0.2.0.51 → 0.2.0.52

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e178485d7c7d6e52a13df286378873fadb049edcbc84a88de71763db0f29dc02
4
- data.tar.gz: 8e60799ed84eb44f378741a5df3d95d48159837ce752fda30a5b5deac7604cc7
3
+ metadata.gz: 0e51747f4a731df0e1d38098a0dda5b32a40f9108055094f315205ccf39a12c9
4
+ data.tar.gz: caca81ca9b975528a1bf4003fc534d122a3261480e9a236c7b6fe188d9833b9e
5
5
  SHA512:
6
- metadata.gz: 1597949c45595dca40b42e52a6434f7c4317b7d8cead7694b0167552140d591207700341562951ad0c526099ba1d6a466cfb111205c4adcc595289a48b83ffa3
7
- data.tar.gz: c256983a41fc1c851e311fd6675ddd4c89db14f4ea36b4591ef1670f6f91c838d001f8372cd7e694380771ac0dd206f3b757c88f229e5ce44d2a4b0a726232db
6
+ metadata.gz: 827b3f59f3a22e704cf378406e2a72517365bfa8d66cbd0779b7de701c5eaf61f166b3156fcb0d137596869355bfaa1525c3ff86800fb5eb6e2ae213c7ba078b
7
+ data.tar.gz: f7104384c9a3012231e87c5feedb04fa050c2696a23878bbbca170bdc8b914a550e74e5711ccdafe29614f1aa15680c257170013e155b69eb2ed8fcb9c471832
@@ -4,6 +4,7 @@ class Olivander::Components::MenuItemComponent < ViewComponent::Base
4
4
  attr_reader :menu_item
5
5
 
6
6
  def initialize(menu_item)
7
+ super()
7
8
  @menu_item = menu_item
8
9
  end
9
10
  end
@@ -7,6 +7,7 @@ class Olivander::Components::ResourceFormComponent < ViewComponent::Base
7
7
  def initialize(resource, form_builder)
8
8
  @resource = resource
9
9
  @f = form_builder
10
+ super()
10
11
  end
11
12
 
12
13
  def collection_for(field)
@@ -7,5 +7,6 @@ class Olivander::Components::ResourceShowComponent < ViewComponent::Base
7
7
  def initialize(resource, actions)
8
8
  @resource = resource
9
9
  @actions = actions
10
+ super()
10
11
  end
11
12
  end
@@ -3,9 +3,11 @@ class DateTimeInput < SimpleForm::Inputs::Base
3
3
  raw_value = parse_value(object.public_send(attribute_name), options[:date_format])
4
4
 
5
5
  disabled = options[:disabled] || false
6
-
7
- hash = { id: "#{attribute_name}_datetimepicker", class: 'form-control datetimepicker-input', value: raw_value,
8
- disabled: disabled, 'data-toggle': 'datetimepicker', 'data-target': "##{attribute_name}_datetimepicker", autocomplete: 'off' }
6
+ field_name = @builder.field_name(attribute_name)
7
+ field_id = @builder.field_id(attribute_name)
8
+ picker_id = "#{field_id}_datetimepicker"
9
+ hash = { id: picker_id, name: field_name, class: 'form-control datetimepicker-input', value: raw_value,
10
+ disabled: disabled, 'data-toggle': 'datetimepicker', 'data-target': "##{picker_id}", autocomplete: 'off' }
9
11
  data = options[:data] || {}
10
12
  data.keys.each do |d|
11
13
  hash["data-#{d.to_s.dasherize}".to_sym] = data[d]
@@ -17,7 +19,7 @@ class DateTimeInput < SimpleForm::Inputs::Base
17
19
  add_on = template.content_tag(:div, class: 'input-group-prepend') do
18
20
  add_on = template.content_tag(:div, class: 'input-group-text') do
19
21
  hash = { class: add_on_class, 'data-toggle': 'datetimepicker',
20
- 'data-target': "##{attribute_name}_datetimepicker" }
22
+ 'data-target': "##{picker_id}" }
21
23
  template.content_tag(:i, '', hash)
22
24
  end
23
25
  end
@@ -31,7 +33,7 @@ class DateTimeInput < SimpleForm::Inputs::Base
31
33
  script = ''"
32
34
  <script>
33
35
  $(document).ready(function() {
34
- $('##{attribute_name}_datetimepicker').datetimepicker(
36
+ $('##{picker_id}').datetimepicker(
35
37
  #{picker_options.to_json}
36
38
  );
37
39
  });
@@ -2,5 +2,5 @@
2
2
 
3
3
  # needed for gem
4
4
  module Olivander
5
- VERSION = '0.2.0.51'
5
+ VERSION = '0.2.0.52'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: five-two-nw-olivander
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.51
4
+ version: 0.2.0.52
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Dennis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-10-06 00:00:00.000000000 Z
11
+ date: 2026-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chartkick