playbook_ui 12.18.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown626 → 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: da94a33e9be6bed594968620dcee40ae14414fa442e8082d66e972ddf3c23403
4
- data.tar.gz: 03af1c6d84d98eb24ac6513a4c342d77a49ca386eee31142855ad1366cdaeeb6
3
+ metadata.gz: 84278e89e730ab9a8122bc35148a02c73b56edb2225804f69fa7a3381d899d8f
4
+ data.tar.gz: cd72d05c488486c5c626c6caf79f7c54e121cddfd94eb28f5acd30e39d45565c
5
5
  SHA512:
6
- metadata.gz: 189a38c94ed36c3769f3acb5ea4f8b6e24e722aff91b837ed35aa149af91a6db161eb5797aa2fce669a3a1c2f1290910b45f0b9e5d29d5f696ba00773259dd93
7
- data.tar.gz: 439322d7a13e55290d63a1da377bc2207b97f003f0f0b9bb6191eeaeb26dcd5e2ef3f801e87859fad68120e492d4002f734308f333a1d31be4583629cd2fede2
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
@@ -148,12 +148,12 @@ const quickPickPlugin = () => {
148
148
  selectActiveRangeButton(selectedDates);
149
149
  },
150
150
 
151
- onClose(selectedDates: Array<string>) {
152
- // set the input value to the selected dates when the dropdown is closed
153
- if (!selectedDates[1]) {
154
- fp.input.value = fp.formatDate(this.selectedDates[0], fp.config.dateFormat) + ' → ' + fp.formatDate(this.selectedDates[1], fp.config.dateFormat);
155
- }
156
- }
151
+ // onClose(selectedDates: Array<string>) {
152
+ // // set the input value to the selected dates when the dropdown is closed
153
+ // // if (!selectedDates[1]) {
154
+ // // fp.input.value = fp.formatDate(this.selectedDates[0], fp.config.dateFormat) + ' → ' + fp.formatDate(this.selectedDates[1], fp.config.dateFormat);
155
+ // // }
156
+ // }
157
157
  };
158
158
  };
159
159
  }
@@ -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.PLAY603datepickerquickpickinputpresetdropdown626"
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.PLAY603datepickerquickpickinputpresetdropdown626
4
+ version: 12.18.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown629
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX