playbook_ui 12.18.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown628 → 12.18.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown629

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: c999abe9c5d5963b06cceb1667a63267dcf9d1633e6ece0834a87e501a0d8880
4
- data.tar.gz: 6c174d014f46fb6eb7f30f49ac13a9e32955f233bb9c7143da06c06adc42ca72
3
+ metadata.gz: 84278e89e730ab9a8122bc35148a02c73b56edb2225804f69fa7a3381d899d8f
4
+ data.tar.gz: cd72d05c488486c5c626c6caf79f7c54e121cddfd94eb28f5acd30e39d45565c
5
5
  SHA512:
6
- metadata.gz: 11808e3612de95f609ae0355d3bff322fdb8972ae3a8f564868be47d0bf29d310e65ca447d125a3f4c0da57456f58d5a27558290f668dec514327f1a5aabb6c7
7
- data.tar.gz: e0ceb2f1e3c86e36d7cf3a31d2dfd98e60dd924fa83ce992ef26911244a38dd0ef068f5abebf00e54452588155b55c817b43f43ff8f8f378e19a75896c9bec3e
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", (event) => {
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
- 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
- });
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
@@ -1,7 +1,7 @@
1
1
  @import "../../tokens/colors";
2
2
  // Calendar Icon Styles
3
3
  .cal_icon_wrapper {
4
- cursor: pointer;
4
+ pointer-events: none;
5
5
  position: absolute;
6
6
  top: $space_md + 2;
7
7
  right: 0;
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "12.18.0"
5
- VERSION = "12.18.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown628"
5
+ VERSION = "12.18.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown629"
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.PLAY603datepickerquickpickinputpresetdropdown628
4
+ version: 12.18.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown629
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX