playbook_ui 12.18.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown617 → 12.18.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown626

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 102bb0a97a693903b5529db165bc9e772618418347aeeda1bf999c0efdc46121
4
- data.tar.gz: be8f83ba5c73d4d513039e483dd9b0d83eeb30d6b4462da6dcb8542915ee66dc
3
+ metadata.gz: da94a33e9be6bed594968620dcee40ae14414fa442e8082d66e972ddf3c23403
4
+ data.tar.gz: 03af1c6d84d98eb24ac6513a4c342d77a49ca386eee31142855ad1366cdaeeb6
5
5
  SHA512:
6
- metadata.gz: fbf7ffb2694dc1c932df32a956002fd388c55aa8ee6fb2fe5e38d3f909b81c4f6b65a06a5cc8fee481437ed5c7af553a43b8b4d2aba38e0a03c7c7cf5b4bdd24
7
- data.tar.gz: b178df679610fca701110d377a3e03f308d3fdbde8836d163dbac07d4dc2e6afb219b2f0603c0983558a19aee8f80b41156dec7bf749600c96173078dcef8cfb
6
+ metadata.gz: 189a38c94ed36c3769f3acb5ea4f8b6e24e722aff91b837ed35aa149af91a6db161eb5797aa2fce669a3a1c2f1290910b45f0b9e5d29d5f696ba00773259dd93
7
+ data.tar.gz: 439322d7a13e55290d63a1da377bc2207b97f003f0f0b9bb6191eeaeb26dcd5e2ef3f801e87859fad68120e492d4002f734308f333a1d31be4583629cd2fede2
@@ -60,8 +60,23 @@
60
60
  </div>
61
61
 
62
62
  <%= javascript_tag do %>
63
- window.addEventListener("DOMContentLoaded", () => {
64
- datePickerHelper(<%= object.date_picker_config %>, "<%= object.scroll_container %>")
63
+ window.addEventListener("DOMContentLoaded", (event) => {
64
+ datePickerHelper(<%= object.date_picker_config %>, "<%= object.scroll_container %>")
65
+ event.preventDefault();
66
+ const variantArr = document.querySelectorAll('#cal-icon-<%= object.picker_id %>')
67
+ if (!variantArr) {
68
+ setTimeout(attachIconClickHandler, 100);
69
+ return;
70
+ }
71
+
72
+ const instance = document.querySelector('#<%= object.picker_id %>')._flatpickr
73
+ variantArr.forEach(icon => {
74
+ icon.addEventListener("click", function(event) {
75
+ event.preventDefault();
76
+ instance.open()
77
+ });
78
+ });
65
79
  })
80
+
66
81
  <% end %>
67
82
  <% end %>
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "12.18.0"
5
- VERSION = "12.18.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown617"
5
+ VERSION = "12.18.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown626"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.18.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown617
4
+ version: 12.18.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown626
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-05-05 00:00:00.000000000 Z
12
+ date: 2023-05-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack