add-to-calendar-button 2.12.3 → 2.12.4
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.
- package/README.md +1 -0
- package/assets/css/atcb-3d.css +1 -1
- package/assets/css/atcb-date.css +1 -1
- package/assets/css/atcb-flat.css +1 -1
- package/assets/css/atcb-neumorphism.css +1 -1
- package/assets/css/atcb-round.css +1 -1
- package/assets/css/atcb-simple.css +1 -1
- package/assets/css/atcb-text.css +1 -1
- package/assets/css/atcb.css +1 -1
- package/dist/atcb-no-pro-unstyle.js +13 -6
- package/dist/atcb-no-pro.js +13 -6
- package/dist/atcb-unstyle.js +13 -6
- package/dist/atcb.js +13 -6
- package/dist/commonjs/index.js +14 -7
- package/dist/commonjs/no-pro/index.js +13 -6
- package/dist/commonjs/no-pro-unstyle/index.js +13 -6
- package/dist/commonjs/unstyle/index.js +14 -7
- package/dist/module/index.js +14 -7
- package/dist/module/no-pro/index.js +13 -6
- package/dist/module/no-pro-unstyle/index.js +13 -6
- package/dist/module/unstyle/index.js +14 -7
- package/index.d.ts +2 -0
- package/package.json +1 -1
- package/unstyle/index.d.ts +1 -0
package/README.md
CHANGED
|
@@ -290,6 +290,7 @@ In doubt, simply ask and we find a way. :)
|
|
|
290
290
|
<a href="https://github.com/acm-will"><img src="https://avatars.githubusercontent.com/u/103984058?v=4" title="acm-will" width="60" height="60"></a>
|
|
291
291
|
<a href="https://github.com/sukharenko"><img src="https://avatars.githubusercontent.com/u/2049036?v=4" title="Yevgen Sukharenko" width="60" height="60"></a>
|
|
292
292
|
<a href="https://github.com/pbaumard"><img src="https://avatars.githubusercontent.com/u/6176006?v=4" title="Pierre Baumard" width="60" height="60"></a>
|
|
293
|
+
<a href="https://github.com/rocky-premise"><img src="https://avatars.githubusercontent.com/u/230592673?v=4" title="Rocky Assad" width="60" height="60"></a>
|
|
293
294
|
<a href="https://github.com/brenjt"><img src="https://avatars.githubusercontent.com/u/1713885?v=4" title="Brennan" width="60" height="60"></a>
|
|
294
295
|
<a href="https://github.com/chris-at-fabius-labs"><img src="https://avatars.githubusercontent.com/u/108754665?v=4" title="chris-at-fabius-labs" width="60" height="60"></a>
|
|
295
296
|
<a href="https://github.com/ssaaiidd"><img src="https://avatars.githubusercontent.com/u/29234802?v=4" title="ssaaiidd" width="60" height="60"></a>
|
package/assets/css/atcb-3d.css
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Style: 3D
|
|
7
7
|
*
|
|
8
|
-
* Version: 2.12.
|
|
8
|
+
* Version: 2.12.4
|
|
9
9
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
10
10
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
11
11
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
package/assets/css/atcb-date.css
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Style: Date
|
|
7
7
|
*
|
|
8
|
-
* Version: 2.12.
|
|
8
|
+
* Version: 2.12.4
|
|
9
9
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
10
10
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
11
11
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
package/assets/css/atcb-flat.css
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Style: Flat
|
|
7
7
|
*
|
|
8
|
-
* Version: 2.12.
|
|
8
|
+
* Version: 2.12.4
|
|
9
9
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
10
10
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
11
11
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Style: Neumorphism
|
|
7
7
|
*
|
|
8
|
-
* Version: 2.12.
|
|
8
|
+
* Version: 2.12.4
|
|
9
9
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
10
10
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
11
11
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Style: Round
|
|
7
7
|
*
|
|
8
|
-
* Version: 2.12.
|
|
8
|
+
* Version: 2.12.4
|
|
9
9
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
10
10
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
11
11
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Style: Simple
|
|
7
7
|
*
|
|
8
|
-
* Version: 2.12.
|
|
8
|
+
* Version: 2.12.4
|
|
9
9
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
10
10
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
11
11
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
package/assets/css/atcb-text.css
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Style: Text
|
|
7
7
|
*
|
|
8
|
-
* Version: 2.12.
|
|
8
|
+
* Version: 2.12.4
|
|
9
9
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
10
10
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
11
11
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
package/assets/css/atcb.css
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Style: Default
|
|
7
7
|
*
|
|
8
|
-
* Version: 2.12.
|
|
8
|
+
* Version: 2.12.4
|
|
9
9
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
10
10
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
11
11
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
|
@@ -223,14 +223,14 @@ function tzlib_get_timezones(jsonType = false) {
|
|
|
223
223
|
* Add to Calendar Button
|
|
224
224
|
* ++++++++++++++++++++++
|
|
225
225
|
*
|
|
226
|
-
* Version: 2.12.
|
|
226
|
+
* Version: 2.12.4
|
|
227
227
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
228
228
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
229
229
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
|
230
230
|
* Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
|
|
231
231
|
*
|
|
232
232
|
*/
|
|
233
|
-
const atcbVersion = '2.12.
|
|
233
|
+
const atcbVersion = '2.12.4';
|
|
234
234
|
const atcbCssTemplate = {};
|
|
235
235
|
const atcbIsBrowser = () => {
|
|
236
236
|
if (typeof window === 'undefined') {
|
|
@@ -3090,7 +3090,6 @@ function atcb_translate_via_time_zone(date, time, baseTimeZone, targetTimeZone)
|
|
|
3090
3090
|
}
|
|
3091
3091
|
function atcb_generate_timestring(dates, language = 'en', subEvent = 'all', decorate = false, browserTimeOverride = false, enforceYear = false, hideTimeZone = false) {
|
|
3092
3092
|
if (decorate) {
|
|
3093
|
-
dates = atcb_decorate_data_recurrence({ dates: dates }).dates;
|
|
3094
3093
|
dates = atcb_decorate_data_dates({ dates: dates }).dates;
|
|
3095
3094
|
}
|
|
3096
3095
|
let startDateInfo, endDateInfo, timeZoneInfoStart, timeZoneInfoEnd;
|
|
@@ -5373,10 +5372,18 @@ function atcb_global_listener_keydown(event) {
|
|
|
5373
5372
|
if (event.key === 'ArrowDown' && currFocusOption.dataset.optionNumber < optionListCount) {
|
|
5374
5373
|
targetFocus = parseInt(currFocusOption.dataset.optionNumber) + 1;
|
|
5375
5374
|
} else if (event.key === 'Tab') {
|
|
5376
|
-
if (
|
|
5377
|
-
|
|
5375
|
+
if (event.shiftKey) {
|
|
5376
|
+
if (currFocusOption.dataset.optionNumber > 1) {
|
|
5377
|
+
targetFocus = parseInt(currFocusOption.dataset.optionNumber) - 1;
|
|
5378
|
+
} else {
|
|
5379
|
+
targetFocus = optionListCount;
|
|
5380
|
+
}
|
|
5378
5381
|
} else {
|
|
5379
|
-
|
|
5382
|
+
if (currFocusOption.dataset.optionNumber < optionListCount) {
|
|
5383
|
+
targetFocus = parseInt(currFocusOption.dataset.optionNumber) + 1;
|
|
5384
|
+
} else {
|
|
5385
|
+
targetFocus = 1;
|
|
5386
|
+
}
|
|
5380
5387
|
}
|
|
5381
5388
|
} else if (event.key === 'ArrowUp' && currFocusOption.dataset.optionNumber >= 1) {
|
|
5382
5389
|
targetFocus = parseInt(currFocusOption.dataset.optionNumber) - 1;
|
package/dist/atcb-no-pro.js
CHANGED
|
@@ -223,14 +223,14 @@ function tzlib_get_timezones(jsonType = false) {
|
|
|
223
223
|
* Add to Calendar Button
|
|
224
224
|
* ++++++++++++++++++++++
|
|
225
225
|
*
|
|
226
|
-
* Version: 2.12.
|
|
226
|
+
* Version: 2.12.4
|
|
227
227
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
228
228
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
229
229
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
|
230
230
|
* Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
|
|
231
231
|
*
|
|
232
232
|
*/
|
|
233
|
-
const atcbVersion = '2.12.
|
|
233
|
+
const atcbVersion = '2.12.4';
|
|
234
234
|
const atcbCssTemplate = {
|
|
235
235
|
if (typeof window === 'undefined') {
|
|
236
236
|
return false;
|
|
@@ -3089,7 +3089,6 @@ function atcb_translate_via_time_zone(date, time, baseTimeZone, targetTimeZone)
|
|
|
3089
3089
|
}
|
|
3090
3090
|
function atcb_generate_timestring(dates, language = 'en', subEvent = 'all', decorate = false, browserTimeOverride = false, enforceYear = false, hideTimeZone = false) {
|
|
3091
3091
|
if (decorate) {
|
|
3092
|
-
dates = atcb_decorate_data_recurrence({ dates: dates }).dates;
|
|
3093
3092
|
dates = atcb_decorate_data_dates({ dates: dates }).dates;
|
|
3094
3093
|
}
|
|
3095
3094
|
let startDateInfo, endDateInfo, timeZoneInfoStart, timeZoneInfoEnd;
|
|
@@ -5372,10 +5371,18 @@ function atcb_global_listener_keydown(event) {
|
|
|
5372
5371
|
if (event.key === 'ArrowDown' && currFocusOption.dataset.optionNumber < optionListCount) {
|
|
5373
5372
|
targetFocus = parseInt(currFocusOption.dataset.optionNumber) + 1;
|
|
5374
5373
|
} else if (event.key === 'Tab') {
|
|
5375
|
-
if (
|
|
5376
|
-
|
|
5374
|
+
if (event.shiftKey) {
|
|
5375
|
+
if (currFocusOption.dataset.optionNumber > 1) {
|
|
5376
|
+
targetFocus = parseInt(currFocusOption.dataset.optionNumber) - 1;
|
|
5377
|
+
} else {
|
|
5378
|
+
targetFocus = optionListCount;
|
|
5379
|
+
}
|
|
5377
5380
|
} else {
|
|
5378
|
-
|
|
5381
|
+
if (currFocusOption.dataset.optionNumber < optionListCount) {
|
|
5382
|
+
targetFocus = parseInt(currFocusOption.dataset.optionNumber) + 1;
|
|
5383
|
+
} else {
|
|
5384
|
+
targetFocus = 1;
|
|
5385
|
+
}
|
|
5379
5386
|
}
|
|
5380
5387
|
} else if (event.key === 'ArrowUp' && currFocusOption.dataset.optionNumber >= 1) {
|
|
5381
5388
|
targetFocus = parseInt(currFocusOption.dataset.optionNumber) - 1;
|
package/dist/atcb-unstyle.js
CHANGED
|
@@ -223,14 +223,14 @@ function tzlib_get_timezones(jsonType = false) {
|
|
|
223
223
|
* Add to Calendar Button
|
|
224
224
|
* ++++++++++++++++++++++
|
|
225
225
|
*
|
|
226
|
-
* Version: 2.12.
|
|
226
|
+
* Version: 2.12.4
|
|
227
227
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
228
228
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
229
229
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
|
230
230
|
* Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
|
|
231
231
|
*
|
|
232
232
|
*/
|
|
233
|
-
const atcbVersion = '2.12.
|
|
233
|
+
const atcbVersion = '2.12.4';
|
|
234
234
|
const atcbCssTemplate = {};
|
|
235
235
|
const atcbIsBrowser = () => {
|
|
236
236
|
if (typeof window === 'undefined') {
|
|
@@ -3810,7 +3810,6 @@ function atcb_translate_via_time_zone(date, time, baseTimeZone, targetTimeZone)
|
|
|
3810
3810
|
}
|
|
3811
3811
|
function atcb_generate_timestring(dates, language = 'en', subEvent = 'all', decorate = false, browserTimeOverride = false, enforceYear = false, hideTimeZone = false) {
|
|
3812
3812
|
if (decorate) {
|
|
3813
|
-
dates = atcb_decorate_data_recurrence({ dates: dates }).dates;
|
|
3814
3813
|
dates = atcb_decorate_data_dates({ dates: dates }).dates;
|
|
3815
3814
|
}
|
|
3816
3815
|
let startDateInfo, endDateInfo, timeZoneInfoStart, timeZoneInfoEnd;
|
|
@@ -6093,10 +6092,18 @@ function atcb_global_listener_keydown(event) {
|
|
|
6093
6092
|
if (event.key === 'ArrowDown' && currFocusOption.dataset.optionNumber < optionListCount) {
|
|
6094
6093
|
targetFocus = parseInt(currFocusOption.dataset.optionNumber) + 1;
|
|
6095
6094
|
} else if (event.key === 'Tab') {
|
|
6096
|
-
if (
|
|
6097
|
-
|
|
6095
|
+
if (event.shiftKey) {
|
|
6096
|
+
if (currFocusOption.dataset.optionNumber > 1) {
|
|
6097
|
+
targetFocus = parseInt(currFocusOption.dataset.optionNumber) - 1;
|
|
6098
|
+
} else {
|
|
6099
|
+
targetFocus = optionListCount;
|
|
6100
|
+
}
|
|
6098
6101
|
} else {
|
|
6099
|
-
|
|
6102
|
+
if (currFocusOption.dataset.optionNumber < optionListCount) {
|
|
6103
|
+
targetFocus = parseInt(currFocusOption.dataset.optionNumber) + 1;
|
|
6104
|
+
} else {
|
|
6105
|
+
targetFocus = 1;
|
|
6106
|
+
}
|
|
6100
6107
|
}
|
|
6101
6108
|
} else if (event.key === 'ArrowUp' && currFocusOption.dataset.optionNumber >= 1) {
|
|
6102
6109
|
targetFocus = parseInt(currFocusOption.dataset.optionNumber) - 1;
|
package/dist/atcb.js
CHANGED
|
@@ -223,14 +223,14 @@ function tzlib_get_timezones(jsonType = false) {
|
|
|
223
223
|
* Add to Calendar Button
|
|
224
224
|
* ++++++++++++++++++++++
|
|
225
225
|
*
|
|
226
|
-
* Version: 2.12.
|
|
226
|
+
* Version: 2.12.4
|
|
227
227
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
228
228
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
229
229
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
|
230
230
|
* Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
|
|
231
231
|
*
|
|
232
232
|
*/
|
|
233
|
-
const atcbVersion = '2.12.
|
|
233
|
+
const atcbVersion = '2.12.4';
|
|
234
234
|
const atcbCssTemplate = {
|
|
235
235
|
if (typeof window === 'undefined') {
|
|
236
236
|
return false;
|
|
@@ -3809,7 +3809,6 @@ function atcb_translate_via_time_zone(date, time, baseTimeZone, targetTimeZone)
|
|
|
3809
3809
|
}
|
|
3810
3810
|
function atcb_generate_timestring(dates, language = 'en', subEvent = 'all', decorate = false, browserTimeOverride = false, enforceYear = false, hideTimeZone = false) {
|
|
3811
3811
|
if (decorate) {
|
|
3812
|
-
dates = atcb_decorate_data_recurrence({ dates: dates }).dates;
|
|
3813
3812
|
dates = atcb_decorate_data_dates({ dates: dates }).dates;
|
|
3814
3813
|
}
|
|
3815
3814
|
let startDateInfo, endDateInfo, timeZoneInfoStart, timeZoneInfoEnd;
|
|
@@ -6092,10 +6091,18 @@ function atcb_global_listener_keydown(event) {
|
|
|
6092
6091
|
if (event.key === 'ArrowDown' && currFocusOption.dataset.optionNumber < optionListCount) {
|
|
6093
6092
|
targetFocus = parseInt(currFocusOption.dataset.optionNumber) + 1;
|
|
6094
6093
|
} else if (event.key === 'Tab') {
|
|
6095
|
-
if (
|
|
6096
|
-
|
|
6094
|
+
if (event.shiftKey) {
|
|
6095
|
+
if (currFocusOption.dataset.optionNumber > 1) {
|
|
6096
|
+
targetFocus = parseInt(currFocusOption.dataset.optionNumber) - 1;
|
|
6097
|
+
} else {
|
|
6098
|
+
targetFocus = optionListCount;
|
|
6099
|
+
}
|
|
6097
6100
|
} else {
|
|
6098
|
-
|
|
6101
|
+
if (currFocusOption.dataset.optionNumber < optionListCount) {
|
|
6102
|
+
targetFocus = parseInt(currFocusOption.dataset.optionNumber) + 1;
|
|
6103
|
+
} else {
|
|
6104
|
+
targetFocus = 1;
|
|
6105
|
+
}
|
|
6099
6106
|
}
|
|
6100
6107
|
} else if (event.key === 'ArrowUp' && currFocusOption.dataset.optionNumber >= 1) {
|
|
6101
6108
|
targetFocus = parseInt(currFocusOption.dataset.optionNumber) - 1;
|
package/dist/commonjs/index.js
CHANGED
|
@@ -6,14 +6,14 @@ const tzlibActions = require('timezones-ical-library');
|
|
|
6
6
|
* Add to Calendar Button
|
|
7
7
|
* ++++++++++++++++++++++
|
|
8
8
|
*
|
|
9
|
-
* Version: 2.12.
|
|
9
|
+
* Version: 2.12.4
|
|
10
10
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
11
11
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
12
12
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
|
13
13
|
* Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
|
|
14
14
|
*
|
|
15
15
|
*/
|
|
16
|
-
const atcbVersion = '2.12.
|
|
16
|
+
const atcbVersion = '2.12.4';
|
|
17
17
|
const atcbCssTemplate = {
|
|
18
18
|
if (typeof window === 'undefined') {
|
|
19
19
|
return false;
|
|
@@ -3592,7 +3592,6 @@ function atcb_translate_via_time_zone(date, time, baseTimeZone, targetTimeZone)
|
|
|
3592
3592
|
}
|
|
3593
3593
|
function atcb_generate_timestring(dates, language = 'en', subEvent = 'all', decorate = false, browserTimeOverride = false, enforceYear = false, hideTimeZone = false) {
|
|
3594
3594
|
if (decorate) {
|
|
3595
|
-
dates = atcb_decorate_data_recurrence({ dates: dates }).dates;
|
|
3596
3595
|
dates = atcb_decorate_data_dates({ dates: dates }).dates;
|
|
3597
3596
|
}
|
|
3598
3597
|
let startDateInfo, endDateInfo, timeZoneInfoStart, timeZoneInfoEnd;
|
|
@@ -5875,10 +5874,18 @@ function atcb_global_listener_keydown(event) {
|
|
|
5875
5874
|
if (event.key === 'ArrowDown' && currFocusOption.dataset.optionNumber < optionListCount) {
|
|
5876
5875
|
targetFocus = parseInt(currFocusOption.dataset.optionNumber) + 1;
|
|
5877
5876
|
} else if (event.key === 'Tab') {
|
|
5878
|
-
if (
|
|
5879
|
-
|
|
5877
|
+
if (event.shiftKey) {
|
|
5878
|
+
if (currFocusOption.dataset.optionNumber > 1) {
|
|
5879
|
+
targetFocus = parseInt(currFocusOption.dataset.optionNumber) - 1;
|
|
5880
|
+
} else {
|
|
5881
|
+
targetFocus = optionListCount;
|
|
5882
|
+
}
|
|
5880
5883
|
} else {
|
|
5881
|
-
|
|
5884
|
+
if (currFocusOption.dataset.optionNumber < optionListCount) {
|
|
5885
|
+
targetFocus = parseInt(currFocusOption.dataset.optionNumber) + 1;
|
|
5886
|
+
} else {
|
|
5887
|
+
targetFocus = 1;
|
|
5888
|
+
}
|
|
5882
5889
|
}
|
|
5883
5890
|
} else if (event.key === 'ArrowUp' && currFocusOption.dataset.optionNumber >= 1) {
|
|
5884
5891
|
targetFocus = parseInt(currFocusOption.dataset.optionNumber) - 1;
|
|
@@ -5924,4 +5931,4 @@ function atcb_unset_global_event_listener(identifier) {
|
|
|
5924
5931
|
}
|
|
5925
5932
|
}
|
|
5926
5933
|
|
|
5927
|
-
module.exports = { atcb_action, i18nStrings, cssStyles: atcbCssTemplate, atcb_generate_ty, atcb_generate_timestring, atcb_decorate_data_dates };
|
|
5934
|
+
module.exports = { atcb_action, i18nStrings, cssStyles: atcbCssTemplate, atcb_generate_ty, atcb_generate_timestring, atcb_decorate_data_recurrence, atcb_decorate_data_dates };
|
|
@@ -6,14 +6,14 @@ const tzlibActions = require('timezones-ical-library');
|
|
|
6
6
|
* Add to Calendar Button
|
|
7
7
|
* ++++++++++++++++++++++
|
|
8
8
|
*
|
|
9
|
-
* Version: 2.12.
|
|
9
|
+
* Version: 2.12.4
|
|
10
10
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
11
11
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
12
12
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
|
13
13
|
* Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
|
|
14
14
|
*
|
|
15
15
|
*/
|
|
16
|
-
const atcbVersion = '2.12.
|
|
16
|
+
const atcbVersion = '2.12.4';
|
|
17
17
|
const atcbCssTemplate = {
|
|
18
18
|
if (typeof window === 'undefined') {
|
|
19
19
|
return false;
|
|
@@ -2872,7 +2872,6 @@ function atcb_translate_via_time_zone(date, time, baseTimeZone, targetTimeZone)
|
|
|
2872
2872
|
}
|
|
2873
2873
|
function atcb_generate_timestring(dates, language = 'en', subEvent = 'all', decorate = false, browserTimeOverride = false, enforceYear = false, hideTimeZone = false) {
|
|
2874
2874
|
if (decorate) {
|
|
2875
|
-
dates = atcb_decorate_data_recurrence({ dates: dates }).dates;
|
|
2876
2875
|
dates = atcb_decorate_data_dates({ dates: dates }).dates;
|
|
2877
2876
|
}
|
|
2878
2877
|
let startDateInfo, endDateInfo, timeZoneInfoStart, timeZoneInfoEnd;
|
|
@@ -5155,10 +5154,18 @@ function atcb_global_listener_keydown(event) {
|
|
|
5155
5154
|
if (event.key === 'ArrowDown' && currFocusOption.dataset.optionNumber < optionListCount) {
|
|
5156
5155
|
targetFocus = parseInt(currFocusOption.dataset.optionNumber) + 1;
|
|
5157
5156
|
} else if (event.key === 'Tab') {
|
|
5158
|
-
if (
|
|
5159
|
-
|
|
5157
|
+
if (event.shiftKey) {
|
|
5158
|
+
if (currFocusOption.dataset.optionNumber > 1) {
|
|
5159
|
+
targetFocus = parseInt(currFocusOption.dataset.optionNumber) - 1;
|
|
5160
|
+
} else {
|
|
5161
|
+
targetFocus = optionListCount;
|
|
5162
|
+
}
|
|
5160
5163
|
} else {
|
|
5161
|
-
|
|
5164
|
+
if (currFocusOption.dataset.optionNumber < optionListCount) {
|
|
5165
|
+
targetFocus = parseInt(currFocusOption.dataset.optionNumber) + 1;
|
|
5166
|
+
} else {
|
|
5167
|
+
targetFocus = 1;
|
|
5168
|
+
}
|
|
5162
5169
|
}
|
|
5163
5170
|
} else if (event.key === 'ArrowUp' && currFocusOption.dataset.optionNumber >= 1) {
|
|
5164
5171
|
targetFocus = parseInt(currFocusOption.dataset.optionNumber) - 1;
|
|
@@ -6,14 +6,14 @@ const tzlibActions = require('timezones-ical-library');
|
|
|
6
6
|
* Add to Calendar Button
|
|
7
7
|
* ++++++++++++++++++++++
|
|
8
8
|
*
|
|
9
|
-
* Version: 2.12.
|
|
9
|
+
* Version: 2.12.4
|
|
10
10
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
11
11
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
12
12
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
|
13
13
|
* Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
|
|
14
14
|
*
|
|
15
15
|
*/
|
|
16
|
-
const atcbVersion = '2.12.
|
|
16
|
+
const atcbVersion = '2.12.4';
|
|
17
17
|
const atcbCssTemplate = {};
|
|
18
18
|
const atcbIsBrowser = () => {
|
|
19
19
|
if (typeof window === 'undefined') {
|
|
@@ -2873,7 +2873,6 @@ function atcb_translate_via_time_zone(date, time, baseTimeZone, targetTimeZone)
|
|
|
2873
2873
|
}
|
|
2874
2874
|
function atcb_generate_timestring(dates, language = 'en', subEvent = 'all', decorate = false, browserTimeOverride = false, enforceYear = false, hideTimeZone = false) {
|
|
2875
2875
|
if (decorate) {
|
|
2876
|
-
dates = atcb_decorate_data_recurrence({ dates: dates }).dates;
|
|
2877
2876
|
dates = atcb_decorate_data_dates({ dates: dates }).dates;
|
|
2878
2877
|
}
|
|
2879
2878
|
let startDateInfo, endDateInfo, timeZoneInfoStart, timeZoneInfoEnd;
|
|
@@ -5156,10 +5155,18 @@ function atcb_global_listener_keydown(event) {
|
|
|
5156
5155
|
if (event.key === 'ArrowDown' && currFocusOption.dataset.optionNumber < optionListCount) {
|
|
5157
5156
|
targetFocus = parseInt(currFocusOption.dataset.optionNumber) + 1;
|
|
5158
5157
|
} else if (event.key === 'Tab') {
|
|
5159
|
-
if (
|
|
5160
|
-
|
|
5158
|
+
if (event.shiftKey) {
|
|
5159
|
+
if (currFocusOption.dataset.optionNumber > 1) {
|
|
5160
|
+
targetFocus = parseInt(currFocusOption.dataset.optionNumber) - 1;
|
|
5161
|
+
} else {
|
|
5162
|
+
targetFocus = optionListCount;
|
|
5163
|
+
}
|
|
5161
5164
|
} else {
|
|
5162
|
-
|
|
5165
|
+
if (currFocusOption.dataset.optionNumber < optionListCount) {
|
|
5166
|
+
targetFocus = parseInt(currFocusOption.dataset.optionNumber) + 1;
|
|
5167
|
+
} else {
|
|
5168
|
+
targetFocus = 1;
|
|
5169
|
+
}
|
|
5163
5170
|
}
|
|
5164
5171
|
} else if (event.key === 'ArrowUp' && currFocusOption.dataset.optionNumber >= 1) {
|
|
5165
5172
|
targetFocus = parseInt(currFocusOption.dataset.optionNumber) - 1;
|
|
@@ -6,14 +6,14 @@ const tzlibActions = require('timezones-ical-library');
|
|
|
6
6
|
* Add to Calendar Button
|
|
7
7
|
* ++++++++++++++++++++++
|
|
8
8
|
*
|
|
9
|
-
* Version: 2.12.
|
|
9
|
+
* Version: 2.12.4
|
|
10
10
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
11
11
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
12
12
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
|
13
13
|
* Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
|
|
14
14
|
*
|
|
15
15
|
*/
|
|
16
|
-
const atcbVersion = '2.12.
|
|
16
|
+
const atcbVersion = '2.12.4';
|
|
17
17
|
const atcbCssTemplate = {};
|
|
18
18
|
const atcbIsBrowser = () => {
|
|
19
19
|
if (typeof window === 'undefined') {
|
|
@@ -3593,7 +3593,6 @@ function atcb_translate_via_time_zone(date, time, baseTimeZone, targetTimeZone)
|
|
|
3593
3593
|
}
|
|
3594
3594
|
function atcb_generate_timestring(dates, language = 'en', subEvent = 'all', decorate = false, browserTimeOverride = false, enforceYear = false, hideTimeZone = false) {
|
|
3595
3595
|
if (decorate) {
|
|
3596
|
-
dates = atcb_decorate_data_recurrence({ dates: dates }).dates;
|
|
3597
3596
|
dates = atcb_decorate_data_dates({ dates: dates }).dates;
|
|
3598
3597
|
}
|
|
3599
3598
|
let startDateInfo, endDateInfo, timeZoneInfoStart, timeZoneInfoEnd;
|
|
@@ -5876,10 +5875,18 @@ function atcb_global_listener_keydown(event) {
|
|
|
5876
5875
|
if (event.key === 'ArrowDown' && currFocusOption.dataset.optionNumber < optionListCount) {
|
|
5877
5876
|
targetFocus = parseInt(currFocusOption.dataset.optionNumber) + 1;
|
|
5878
5877
|
} else if (event.key === 'Tab') {
|
|
5879
|
-
if (
|
|
5880
|
-
|
|
5878
|
+
if (event.shiftKey) {
|
|
5879
|
+
if (currFocusOption.dataset.optionNumber > 1) {
|
|
5880
|
+
targetFocus = parseInt(currFocusOption.dataset.optionNumber) - 1;
|
|
5881
|
+
} else {
|
|
5882
|
+
targetFocus = optionListCount;
|
|
5883
|
+
}
|
|
5881
5884
|
} else {
|
|
5882
|
-
|
|
5885
|
+
if (currFocusOption.dataset.optionNumber < optionListCount) {
|
|
5886
|
+
targetFocus = parseInt(currFocusOption.dataset.optionNumber) + 1;
|
|
5887
|
+
} else {
|
|
5888
|
+
targetFocus = 1;
|
|
5889
|
+
}
|
|
5883
5890
|
}
|
|
5884
5891
|
} else if (event.key === 'ArrowUp' && currFocusOption.dataset.optionNumber >= 1) {
|
|
5885
5892
|
targetFocus = parseInt(currFocusOption.dataset.optionNumber) - 1;
|
|
@@ -5925,4 +5932,4 @@ function atcb_unset_global_event_listener(identifier) {
|
|
|
5925
5932
|
}
|
|
5926
5933
|
}
|
|
5927
5934
|
|
|
5928
|
-
module.exports = { atcb_action, i18nStrings, atcb_generate_ty, atcb_generate_timestring, atcb_decorate_data_dates };
|
|
5935
|
+
module.exports = { atcb_action, i18nStrings, atcb_generate_ty, atcb_generate_timestring, atcb_decorate_data_recurrence, atcb_decorate_data_dates };
|
package/dist/module/index.js
CHANGED
|
@@ -6,14 +6,14 @@ import { tzlib_get_ical_block, tzlib_get_offset, tzlib_get_timezones } from 'tim
|
|
|
6
6
|
* Add to Calendar Button
|
|
7
7
|
* ++++++++++++++++++++++
|
|
8
8
|
*
|
|
9
|
-
* Version: 2.12.
|
|
9
|
+
* Version: 2.12.4
|
|
10
10
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
11
11
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
12
12
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
|
13
13
|
* Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
|
|
14
14
|
*
|
|
15
15
|
*/
|
|
16
|
-
const atcbVersion = '2.12.
|
|
16
|
+
const atcbVersion = '2.12.4';
|
|
17
17
|
const atcbCssTemplate = {
|
|
18
18
|
if (typeof window === 'undefined') {
|
|
19
19
|
return false;
|
|
@@ -3592,7 +3592,6 @@ function atcb_translate_via_time_zone(date, time, baseTimeZone, targetTimeZone)
|
|
|
3592
3592
|
}
|
|
3593
3593
|
function atcb_generate_timestring(dates, language = 'en', subEvent = 'all', decorate = false, browserTimeOverride = false, enforceYear = false, hideTimeZone = false) {
|
|
3594
3594
|
if (decorate) {
|
|
3595
|
-
dates = atcb_decorate_data_recurrence({ dates: dates }).dates;
|
|
3596
3595
|
dates = atcb_decorate_data_dates({ dates: dates }).dates;
|
|
3597
3596
|
}
|
|
3598
3597
|
let startDateInfo, endDateInfo, timeZoneInfoStart, timeZoneInfoEnd;
|
|
@@ -5875,10 +5874,18 @@ function atcb_global_listener_keydown(event) {
|
|
|
5875
5874
|
if (event.key === 'ArrowDown' && currFocusOption.dataset.optionNumber < optionListCount) {
|
|
5876
5875
|
targetFocus = parseInt(currFocusOption.dataset.optionNumber) + 1;
|
|
5877
5876
|
} else if (event.key === 'Tab') {
|
|
5878
|
-
if (
|
|
5879
|
-
|
|
5877
|
+
if (event.shiftKey) {
|
|
5878
|
+
if (currFocusOption.dataset.optionNumber > 1) {
|
|
5879
|
+
targetFocus = parseInt(currFocusOption.dataset.optionNumber) - 1;
|
|
5880
|
+
} else {
|
|
5881
|
+
targetFocus = optionListCount;
|
|
5882
|
+
}
|
|
5880
5883
|
} else {
|
|
5881
|
-
|
|
5884
|
+
if (currFocusOption.dataset.optionNumber < optionListCount) {
|
|
5885
|
+
targetFocus = parseInt(currFocusOption.dataset.optionNumber) + 1;
|
|
5886
|
+
} else {
|
|
5887
|
+
targetFocus = 1;
|
|
5888
|
+
}
|
|
5882
5889
|
}
|
|
5883
5890
|
} else if (event.key === 'ArrowUp' && currFocusOption.dataset.optionNumber >= 1) {
|
|
5884
5891
|
targetFocus = parseInt(currFocusOption.dataset.optionNumber) - 1;
|
|
@@ -5924,4 +5931,4 @@ function atcb_unset_global_event_listener(identifier) {
|
|
|
5924
5931
|
}
|
|
5925
5932
|
}
|
|
5926
5933
|
|
|
5927
|
-
export { atcb_action, i18nStrings, atcbCssTemplate as cssStyles, atcb_generate_ty, atcb_generate_timestring, atcb_decorate_data_dates };
|
|
5934
|
+
export { atcb_action, i18nStrings, atcbCssTemplate as cssStyles, atcb_generate_ty, atcb_generate_timestring, atcb_decorate_data_recurrence, atcb_decorate_data_dates };
|
|
@@ -6,14 +6,14 @@ import { tzlib_get_ical_block, tzlib_get_offset, tzlib_get_timezones } from 'tim
|
|
|
6
6
|
* Add to Calendar Button
|
|
7
7
|
* ++++++++++++++++++++++
|
|
8
8
|
*
|
|
9
|
-
* Version: 2.12.
|
|
9
|
+
* Version: 2.12.4
|
|
10
10
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
11
11
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
12
12
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
|
13
13
|
* Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
|
|
14
14
|
*
|
|
15
15
|
*/
|
|
16
|
-
const atcbVersion = '2.12.
|
|
16
|
+
const atcbVersion = '2.12.4';
|
|
17
17
|
const atcbCssTemplate = {
|
|
18
18
|
if (typeof window === 'undefined') {
|
|
19
19
|
return false;
|
|
@@ -2872,7 +2872,6 @@ function atcb_translate_via_time_zone(date, time, baseTimeZone, targetTimeZone)
|
|
|
2872
2872
|
}
|
|
2873
2873
|
function atcb_generate_timestring(dates, language = 'en', subEvent = 'all', decorate = false, browserTimeOverride = false, enforceYear = false, hideTimeZone = false) {
|
|
2874
2874
|
if (decorate) {
|
|
2875
|
-
dates = atcb_decorate_data_recurrence({ dates: dates }).dates;
|
|
2876
2875
|
dates = atcb_decorate_data_dates({ dates: dates }).dates;
|
|
2877
2876
|
}
|
|
2878
2877
|
let startDateInfo, endDateInfo, timeZoneInfoStart, timeZoneInfoEnd;
|
|
@@ -5155,10 +5154,18 @@ function atcb_global_listener_keydown(event) {
|
|
|
5155
5154
|
if (event.key === 'ArrowDown' && currFocusOption.dataset.optionNumber < optionListCount) {
|
|
5156
5155
|
targetFocus = parseInt(currFocusOption.dataset.optionNumber) + 1;
|
|
5157
5156
|
} else if (event.key === 'Tab') {
|
|
5158
|
-
if (
|
|
5159
|
-
|
|
5157
|
+
if (event.shiftKey) {
|
|
5158
|
+
if (currFocusOption.dataset.optionNumber > 1) {
|
|
5159
|
+
targetFocus = parseInt(currFocusOption.dataset.optionNumber) - 1;
|
|
5160
|
+
} else {
|
|
5161
|
+
targetFocus = optionListCount;
|
|
5162
|
+
}
|
|
5160
5163
|
} else {
|
|
5161
|
-
|
|
5164
|
+
if (currFocusOption.dataset.optionNumber < optionListCount) {
|
|
5165
|
+
targetFocus = parseInt(currFocusOption.dataset.optionNumber) + 1;
|
|
5166
|
+
} else {
|
|
5167
|
+
targetFocus = 1;
|
|
5168
|
+
}
|
|
5162
5169
|
}
|
|
5163
5170
|
} else if (event.key === 'ArrowUp' && currFocusOption.dataset.optionNumber >= 1) {
|
|
5164
5171
|
targetFocus = parseInt(currFocusOption.dataset.optionNumber) - 1;
|
|
@@ -6,14 +6,14 @@ import { tzlib_get_ical_block, tzlib_get_offset, tzlib_get_timezones } from 'tim
|
|
|
6
6
|
* Add to Calendar Button
|
|
7
7
|
* ++++++++++++++++++++++
|
|
8
8
|
*
|
|
9
|
-
* Version: 2.12.
|
|
9
|
+
* Version: 2.12.4
|
|
10
10
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
11
11
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
12
12
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
|
13
13
|
* Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
|
|
14
14
|
*
|
|
15
15
|
*/
|
|
16
|
-
const atcbVersion = '2.12.
|
|
16
|
+
const atcbVersion = '2.12.4';
|
|
17
17
|
const atcbCssTemplate = {};
|
|
18
18
|
const atcbIsBrowser = () => {
|
|
19
19
|
if (typeof window === 'undefined') {
|
|
@@ -2873,7 +2873,6 @@ function atcb_translate_via_time_zone(date, time, baseTimeZone, targetTimeZone)
|
|
|
2873
2873
|
}
|
|
2874
2874
|
function atcb_generate_timestring(dates, language = 'en', subEvent = 'all', decorate = false, browserTimeOverride = false, enforceYear = false, hideTimeZone = false) {
|
|
2875
2875
|
if (decorate) {
|
|
2876
|
-
dates = atcb_decorate_data_recurrence({ dates: dates }).dates;
|
|
2877
2876
|
dates = atcb_decorate_data_dates({ dates: dates }).dates;
|
|
2878
2877
|
}
|
|
2879
2878
|
let startDateInfo, endDateInfo, timeZoneInfoStart, timeZoneInfoEnd;
|
|
@@ -5156,10 +5155,18 @@ function atcb_global_listener_keydown(event) {
|
|
|
5156
5155
|
if (event.key === 'ArrowDown' && currFocusOption.dataset.optionNumber < optionListCount) {
|
|
5157
5156
|
targetFocus = parseInt(currFocusOption.dataset.optionNumber) + 1;
|
|
5158
5157
|
} else if (event.key === 'Tab') {
|
|
5159
|
-
if (
|
|
5160
|
-
|
|
5158
|
+
if (event.shiftKey) {
|
|
5159
|
+
if (currFocusOption.dataset.optionNumber > 1) {
|
|
5160
|
+
targetFocus = parseInt(currFocusOption.dataset.optionNumber) - 1;
|
|
5161
|
+
} else {
|
|
5162
|
+
targetFocus = optionListCount;
|
|
5163
|
+
}
|
|
5161
5164
|
} else {
|
|
5162
|
-
|
|
5165
|
+
if (currFocusOption.dataset.optionNumber < optionListCount) {
|
|
5166
|
+
targetFocus = parseInt(currFocusOption.dataset.optionNumber) + 1;
|
|
5167
|
+
} else {
|
|
5168
|
+
targetFocus = 1;
|
|
5169
|
+
}
|
|
5163
5170
|
}
|
|
5164
5171
|
} else if (event.key === 'ArrowUp' && currFocusOption.dataset.optionNumber >= 1) {
|
|
5165
5172
|
targetFocus = parseInt(currFocusOption.dataset.optionNumber) - 1;
|
|
@@ -6,14 +6,14 @@ import { tzlib_get_ical_block, tzlib_get_offset, tzlib_get_timezones } from 'tim
|
|
|
6
6
|
* Add to Calendar Button
|
|
7
7
|
* ++++++++++++++++++++++
|
|
8
8
|
*
|
|
9
|
-
* Version: 2.12.
|
|
9
|
+
* Version: 2.12.4
|
|
10
10
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
11
11
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
12
12
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
|
13
13
|
* Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
|
|
14
14
|
*
|
|
15
15
|
*/
|
|
16
|
-
const atcbVersion = '2.12.
|
|
16
|
+
const atcbVersion = '2.12.4';
|
|
17
17
|
const atcbCssTemplate = {};
|
|
18
18
|
const atcbIsBrowser = () => {
|
|
19
19
|
if (typeof window === 'undefined') {
|
|
@@ -3593,7 +3593,6 @@ function atcb_translate_via_time_zone(date, time, baseTimeZone, targetTimeZone)
|
|
|
3593
3593
|
}
|
|
3594
3594
|
function atcb_generate_timestring(dates, language = 'en', subEvent = 'all', decorate = false, browserTimeOverride = false, enforceYear = false, hideTimeZone = false) {
|
|
3595
3595
|
if (decorate) {
|
|
3596
|
-
dates = atcb_decorate_data_recurrence({ dates: dates }).dates;
|
|
3597
3596
|
dates = atcb_decorate_data_dates({ dates: dates }).dates;
|
|
3598
3597
|
}
|
|
3599
3598
|
let startDateInfo, endDateInfo, timeZoneInfoStart, timeZoneInfoEnd;
|
|
@@ -5876,10 +5875,18 @@ function atcb_global_listener_keydown(event) {
|
|
|
5876
5875
|
if (event.key === 'ArrowDown' && currFocusOption.dataset.optionNumber < optionListCount) {
|
|
5877
5876
|
targetFocus = parseInt(currFocusOption.dataset.optionNumber) + 1;
|
|
5878
5877
|
} else if (event.key === 'Tab') {
|
|
5879
|
-
if (
|
|
5880
|
-
|
|
5878
|
+
if (event.shiftKey) {
|
|
5879
|
+
if (currFocusOption.dataset.optionNumber > 1) {
|
|
5880
|
+
targetFocus = parseInt(currFocusOption.dataset.optionNumber) - 1;
|
|
5881
|
+
} else {
|
|
5882
|
+
targetFocus = optionListCount;
|
|
5883
|
+
}
|
|
5881
5884
|
} else {
|
|
5882
|
-
|
|
5885
|
+
if (currFocusOption.dataset.optionNumber < optionListCount) {
|
|
5886
|
+
targetFocus = parseInt(currFocusOption.dataset.optionNumber) + 1;
|
|
5887
|
+
} else {
|
|
5888
|
+
targetFocus = 1;
|
|
5889
|
+
}
|
|
5883
5890
|
}
|
|
5884
5891
|
} else if (event.key === 'ArrowUp' && currFocusOption.dataset.optionNumber >= 1) {
|
|
5885
5892
|
targetFocus = parseInt(currFocusOption.dataset.optionNumber) - 1;
|
|
@@ -5925,4 +5932,4 @@ function atcb_unset_global_event_listener(identifier) {
|
|
|
5925
5932
|
}
|
|
5926
5933
|
}
|
|
5927
5934
|
|
|
5928
|
-
export { atcb_action, i18nStrings, atcb_generate_ty, atcb_generate_timestring, atcb_decorate_data_dates };
|
|
5935
|
+
export { atcb_action, i18nStrings, atcb_generate_ty, atcb_generate_timestring, atcb_decorate_data_recurrence, atcb_decorate_data_dates };
|
package/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ declare module 'add-to-calendar-button' {
|
|
|
21
21
|
};
|
|
22
22
|
export function atcb_generate_ty(host: HTMLElement, data: object): null;
|
|
23
23
|
export function atcb_generate_timestring(dates: EventDate[], language?: string, subEvent?: string | number, decorate?: boolean, browserTimeOverride?: boolean, enforceYear?: boolean, hideTimeZone?: boolean): string[];
|
|
24
|
+
export function atcb_decorate_data_recurrence(data: object): object;
|
|
24
25
|
export function atcb_decorate_data_dates(data: object): object;
|
|
25
26
|
}
|
|
26
27
|
|
|
@@ -36,6 +37,7 @@ declare module 'add-to-calendar-button/unstyle' {
|
|
|
36
37
|
export function atcb_action(config: ATCBActionEventConfig, triggerElement?: HTMLElement, keyboardTrigger?: boolean): Promise<string>;
|
|
37
38
|
export function atcb_generate_ty(host: HTMLElement, data: object): null;
|
|
38
39
|
export function atcb_generate_timestring(dates: EventDate[], language?: string, subEvent?: string | number, decorate?: boolean, browserTimeOverride?: boolean, enforceYear?: boolean, hideTimeZone?: boolean): string[];
|
|
40
|
+
export function atcb_decorate_data_recurrence(data: object): object;
|
|
39
41
|
export function atcb_decorate_data_dates(data: object): object;
|
|
40
42
|
}
|
|
41
43
|
|
package/package.json
CHANGED
package/unstyle/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ declare module 'add-to-calendar-button/unstyle' {
|
|
|
7
7
|
export function atcb_action(config: ATCBActionEventConfig, triggerElement?: HTMLElement, keyboardTrigger?: boolean): Promise<string>;
|
|
8
8
|
export function atcb_generate_ty(host: HTMLElement, data: object): null;
|
|
9
9
|
export function atcb_generate_timestring(dates: EventDate[], language?: string, subEvent?: string | number, decorate?: boolean, browserTimeOverride?: boolean, enforceYear?: boolean, hideTimeZone?: boolean): string[];
|
|
10
|
+
export function atcb_decorate_data_recurrence(data: object): object;
|
|
10
11
|
export function atcb_decorate_data_dates(data: object): object;
|
|
11
12
|
}
|
|
12
13
|
|