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 +4 -4
- data/app/pb_kits/playbook/pb_date_picker/date_picker.html.erb +17 -2
- data/lib/playbook/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da94a33e9be6bed594968620dcee40ae14414fa442e8082d66e972ddf3c23403
|
4
|
+
data.tar.gz: 03af1c6d84d98eb24ac6513a4c342d77a49ca386eee31142855ad1366cdaeeb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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 %>
|
data/lib/playbook/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2023-05-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|