playbook_ui 12.18.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown628 → 12.18.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown629
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84278e89e730ab9a8122bc35148a02c73b56edb2225804f69fa7a3381d899d8f
|
4
|
+
data.tar.gz: cd72d05c488486c5c626c6caf79f7c54e121cddfd94eb28f5acd30e39d45565c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29307b1c012c73c352bb9c417f8fd77e7537ed6b68d969656d9cbdffcb11caffc1553a941d2c4c7ea623905f7f17cb0efdda8084534ebd09b7937b5a3d55f691
|
7
|
+
data.tar.gz: 7d5784b8a02de1ec83dbbdc929705ebae998aa657ddc43c9ce12668e87dfb8395d61f9f2ec993adad10d9d542668bff40698d54cf0ffe73ebde0eb68c731a143
|
@@ -60,22 +60,8 @@
|
|
60
60
|
</div>
|
61
61
|
|
62
62
|
<%= javascript_tag do %>
|
63
|
-
window.addEventListener("DOMContentLoaded", (
|
63
|
+
window.addEventListener("DOMContentLoaded", () => {
|
64
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
|
-
});
|
79
65
|
})
|
80
66
|
|
81
67
|
<% end %>
|
@@ -186,26 +186,26 @@ const datePickerHelper = (config: DatePickerConfig, scrollContainer: string | HT
|
|
186
186
|
// ===========================================================
|
187
187
|
|
188
188
|
// opens flatpickr instance when calander icon is clicked so we can have a hover state on icon
|
189
|
-
window.addEventListener("DOMContentLoaded", (event) => {
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
});
|
189
|
+
// window.addEventListener("DOMContentLoaded", (event) => {
|
190
|
+
// event.preventDefault();
|
191
|
+
// function attachIconClickHandler() {
|
192
|
+
// const variantArr = document.querySelectorAll(`#cal-icon-${pickerId}`)
|
193
|
+
// if (!variantArr) {
|
194
|
+
// setTimeout(attachIconClickHandler, 100);
|
195
|
+
// return;
|
196
|
+
// }
|
197
|
+
|
198
|
+
// const instance = document.querySelector<HTMLElement & { [x: string]: any }>(`#${pickerId}`)._flatpickr
|
199
|
+
// variantArr.forEach((icon) => {
|
200
|
+
// icon.addEventListener("click", function(event) {
|
201
|
+
// event.preventDefault();
|
202
|
+
// instance.open()
|
203
|
+
// });
|
204
|
+
// })
|
205
|
+
// }
|
206
|
+
|
207
|
+
// attachIconClickHandler();
|
208
|
+
// });
|
209
209
|
|
210
210
|
// Assign dynamically sourced flatpickr instance to variable
|
211
211
|
const picker = document.querySelector<HTMLElement & { [x: string]: any }>(`#${pickerId}`)._flatpickr
|
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.PLAY603datepickerquickpickinputpresetdropdown629
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Power UX
|