add-to-calendar-button 2.8.2 → 2.8.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/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-text.css +1 -1
- package/assets/css/atcb.css +1 -1
- package/dist/atcb-no-pro-unstyle.js +8 -4
- package/dist/atcb-no-pro.js +8 -4
- package/dist/atcb-unstyle.js +8 -4
- package/dist/atcb.js +8 -4
- package/dist/commonjs/index.js +8 -4
- package/dist/commonjs/no-pro/index.js +8 -4
- package/dist/commonjs/no-pro-unstyle/index.js +8 -4
- package/dist/commonjs/unstyle/index.js +8 -4
- package/dist/module/index.js +8 -4
- package/dist/module/no-pro/index.js +8 -4
- package/dist/module/no-pro-unstyle/index.js +8 -4
- package/dist/module/unstyle/index.js +8 -4
- package/package.json +1 -1
package/assets/css/atcb-3d.css
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Style: 3D
|
|
7
7
|
*
|
|
8
|
-
* Version: 2.8.
|
|
8
|
+
* Version: 2.8.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.8.
|
|
8
|
+
* Version: 2.8.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.8.
|
|
8
|
+
* Version: 2.8.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.8.
|
|
8
|
+
* Version: 2.8.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.8.
|
|
8
|
+
* Version: 2.8.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.8.
|
|
8
|
+
* Version: 2.8.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.8.
|
|
8
|
+
* Version: 2.8.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.8.
|
|
226
|
+
* Version: 2.8.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.8.
|
|
233
|
+
const atcbVersion = '2.8.4';
|
|
234
234
|
const atcbCssTemplate = {};
|
|
235
235
|
const atcbIsBrowser = () => {
|
|
236
236
|
if (typeof window === 'undefined') {
|
|
@@ -2055,7 +2055,7 @@ function atcb_generate_date_button(data, parent, subEvent = 'all', oneOption = f
|
|
|
2055
2055
|
btnDescription.style.boxOrient = 'vertical';
|
|
2056
2056
|
btnDetails.append(btnDescription);
|
|
2057
2057
|
} else {
|
|
2058
|
-
btnHeadline.
|
|
2058
|
+
btnHeadline.style.lineClamp = '2';
|
|
2059
2059
|
if (fullTimeInfo.length == 0 && (data.recurrence == null || data.recurrence == '')) {
|
|
2060
2060
|
btnRight.style.alignSelf = 'center';
|
|
2061
2061
|
btnHeadline.style.textAlign = 'center';
|
|
@@ -2494,7 +2494,11 @@ function atcb_subscribe_microsoft(data, fileUrl, calName, type = 'ms365') {
|
|
|
2494
2494
|
}
|
|
2495
2495
|
function atcb_generate_google(data, date, subEvent = 'all') {
|
|
2496
2496
|
const urlParts = [];
|
|
2497
|
-
|
|
2497
|
+
if (atcbIsMobile() || data.fakeMobile) {
|
|
2498
|
+
urlParts.push('https://calendar.google.com/calendar/render?action=TEMPLATE&');
|
|
2499
|
+
} else {
|
|
2500
|
+
urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
|
|
2501
|
+
}
|
|
2498
2502
|
const formattedDate = atcb_generate_time(date, 'clean', 'google');
|
|
2499
2503
|
urlParts.push('dates=' + encodeURIComponent(formattedDate.start) + '%2F' + encodeURIComponent(formattedDate.end));
|
|
2500
2504
|
if (date.timeZone && date.timeZone !== '' && !/GMT[+|-]\d{1,2}|Etc\/U|Etc\/Zulu|CET|CST6CDT|EET|EST|MET|MST|PST8PDT|WET/i.test(date.timeZone) && !formattedDate.allday) {
|
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.8.
|
|
226
|
+
* Version: 2.8.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.8.
|
|
233
|
+
const atcbVersion = '2.8.4';
|
|
234
234
|
const atcbCssTemplate = {
|
|
235
235
|
if (typeof window === 'undefined') {
|
|
236
236
|
return false;
|
|
@@ -2054,7 +2054,7 @@ function atcb_generate_date_button(data, parent, subEvent = 'all', oneOption = f
|
|
|
2054
2054
|
btnDescription.style.boxOrient = 'vertical';
|
|
2055
2055
|
btnDetails.append(btnDescription);
|
|
2056
2056
|
} else {
|
|
2057
|
-
btnHeadline.
|
|
2057
|
+
btnHeadline.style.lineClamp = '2';
|
|
2058
2058
|
if (fullTimeInfo.length == 0 && (data.recurrence == null || data.recurrence == '')) {
|
|
2059
2059
|
btnRight.style.alignSelf = 'center';
|
|
2060
2060
|
btnHeadline.style.textAlign = 'center';
|
|
@@ -2493,7 +2493,11 @@ function atcb_subscribe_microsoft(data, fileUrl, calName, type = 'ms365') {
|
|
|
2493
2493
|
}
|
|
2494
2494
|
function atcb_generate_google(data, date, subEvent = 'all') {
|
|
2495
2495
|
const urlParts = [];
|
|
2496
|
-
|
|
2496
|
+
if (atcbIsMobile() || data.fakeMobile) {
|
|
2497
|
+
urlParts.push('https://calendar.google.com/calendar/render?action=TEMPLATE&');
|
|
2498
|
+
} else {
|
|
2499
|
+
urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
|
|
2500
|
+
}
|
|
2497
2501
|
const formattedDate = atcb_generate_time(date, 'clean', 'google');
|
|
2498
2502
|
urlParts.push('dates=' + encodeURIComponent(formattedDate.start) + '%2F' + encodeURIComponent(formattedDate.end));
|
|
2499
2503
|
if (date.timeZone && date.timeZone !== '' && !/GMT[+|-]\d{1,2}|Etc\/U|Etc\/Zulu|CET|CST6CDT|EET|EST|MET|MST|PST8PDT|WET/i.test(date.timeZone) && !formattedDate.allday) {
|
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.8.
|
|
226
|
+
* Version: 2.8.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.8.
|
|
233
|
+
const atcbVersion = '2.8.4';
|
|
234
234
|
const atcbCssTemplate = {};
|
|
235
235
|
const atcbIsBrowser = () => {
|
|
236
236
|
if (typeof window === 'undefined') {
|
|
@@ -2775,7 +2775,7 @@ function atcb_generate_date_button(data, parent, subEvent = 'all', oneOption = f
|
|
|
2775
2775
|
btnDescription.style.boxOrient = 'vertical';
|
|
2776
2776
|
btnDetails.append(btnDescription);
|
|
2777
2777
|
} else {
|
|
2778
|
-
btnHeadline.
|
|
2778
|
+
btnHeadline.style.lineClamp = '2';
|
|
2779
2779
|
if (fullTimeInfo.length == 0 && (data.recurrence == null || data.recurrence == '')) {
|
|
2780
2780
|
btnRight.style.alignSelf = 'center';
|
|
2781
2781
|
btnHeadline.style.textAlign = 'center';
|
|
@@ -3214,7 +3214,11 @@ function atcb_subscribe_microsoft(data, fileUrl, calName, type = 'ms365') {
|
|
|
3214
3214
|
}
|
|
3215
3215
|
function atcb_generate_google(data, date, subEvent = 'all') {
|
|
3216
3216
|
const urlParts = [];
|
|
3217
|
-
|
|
3217
|
+
if (atcbIsMobile() || data.fakeMobile) {
|
|
3218
|
+
urlParts.push('https://calendar.google.com/calendar/render?action=TEMPLATE&');
|
|
3219
|
+
} else {
|
|
3220
|
+
urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
|
|
3221
|
+
}
|
|
3218
3222
|
const formattedDate = atcb_generate_time(date, 'clean', 'google');
|
|
3219
3223
|
urlParts.push('dates=' + encodeURIComponent(formattedDate.start) + '%2F' + encodeURIComponent(formattedDate.end));
|
|
3220
3224
|
if (date.timeZone && date.timeZone !== '' && !/GMT[+|-]\d{1,2}|Etc\/U|Etc\/Zulu|CET|CST6CDT|EET|EST|MET|MST|PST8PDT|WET/i.test(date.timeZone) && !formattedDate.allday) {
|
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.8.
|
|
226
|
+
* Version: 2.8.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.8.
|
|
233
|
+
const atcbVersion = '2.8.4';
|
|
234
234
|
const atcbCssTemplate = {
|
|
235
235
|
if (typeof window === 'undefined') {
|
|
236
236
|
return false;
|
|
@@ -2774,7 +2774,7 @@ function atcb_generate_date_button(data, parent, subEvent = 'all', oneOption = f
|
|
|
2774
2774
|
btnDescription.style.boxOrient = 'vertical';
|
|
2775
2775
|
btnDetails.append(btnDescription);
|
|
2776
2776
|
} else {
|
|
2777
|
-
btnHeadline.
|
|
2777
|
+
btnHeadline.style.lineClamp = '2';
|
|
2778
2778
|
if (fullTimeInfo.length == 0 && (data.recurrence == null || data.recurrence == '')) {
|
|
2779
2779
|
btnRight.style.alignSelf = 'center';
|
|
2780
2780
|
btnHeadline.style.textAlign = 'center';
|
|
@@ -3213,7 +3213,11 @@ function atcb_subscribe_microsoft(data, fileUrl, calName, type = 'ms365') {
|
|
|
3213
3213
|
}
|
|
3214
3214
|
function atcb_generate_google(data, date, subEvent = 'all') {
|
|
3215
3215
|
const urlParts = [];
|
|
3216
|
-
|
|
3216
|
+
if (atcbIsMobile() || data.fakeMobile) {
|
|
3217
|
+
urlParts.push('https://calendar.google.com/calendar/render?action=TEMPLATE&');
|
|
3218
|
+
} else {
|
|
3219
|
+
urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
|
|
3220
|
+
}
|
|
3217
3221
|
const formattedDate = atcb_generate_time(date, 'clean', 'google');
|
|
3218
3222
|
urlParts.push('dates=' + encodeURIComponent(formattedDate.start) + '%2F' + encodeURIComponent(formattedDate.end));
|
|
3219
3223
|
if (date.timeZone && date.timeZone !== '' && !/GMT[+|-]\d{1,2}|Etc\/U|Etc\/Zulu|CET|CST6CDT|EET|EST|MET|MST|PST8PDT|WET/i.test(date.timeZone) && !formattedDate.allday) {
|
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.8.
|
|
9
|
+
* Version: 2.8.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.8.
|
|
16
|
+
const atcbVersion = '2.8.4';
|
|
17
17
|
const atcbCssTemplate = {
|
|
18
18
|
if (typeof window === 'undefined') {
|
|
19
19
|
return false;
|
|
@@ -2557,7 +2557,7 @@ function atcb_generate_date_button(data, parent, subEvent = 'all', oneOption = f
|
|
|
2557
2557
|
btnDescription.style.boxOrient = 'vertical';
|
|
2558
2558
|
btnDetails.append(btnDescription);
|
|
2559
2559
|
} else {
|
|
2560
|
-
btnHeadline.
|
|
2560
|
+
btnHeadline.style.lineClamp = '2';
|
|
2561
2561
|
if (fullTimeInfo.length == 0 && (data.recurrence == null || data.recurrence == '')) {
|
|
2562
2562
|
btnRight.style.alignSelf = 'center';
|
|
2563
2563
|
btnHeadline.style.textAlign = 'center';
|
|
@@ -2996,7 +2996,11 @@ function atcb_subscribe_microsoft(data, fileUrl, calName, type = 'ms365') {
|
|
|
2996
2996
|
}
|
|
2997
2997
|
function atcb_generate_google(data, date, subEvent = 'all') {
|
|
2998
2998
|
const urlParts = [];
|
|
2999
|
-
|
|
2999
|
+
if (atcbIsMobile() || data.fakeMobile) {
|
|
3000
|
+
urlParts.push('https://calendar.google.com/calendar/render?action=TEMPLATE&');
|
|
3001
|
+
} else {
|
|
3002
|
+
urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
|
|
3003
|
+
}
|
|
3000
3004
|
const formattedDate = atcb_generate_time(date, 'clean', 'google');
|
|
3001
3005
|
urlParts.push('dates=' + encodeURIComponent(formattedDate.start) + '%2F' + encodeURIComponent(formattedDate.end));
|
|
3002
3006
|
if (date.timeZone && date.timeZone !== '' && !/GMT[+|-]\d{1,2}|Etc\/U|Etc\/Zulu|CET|CST6CDT|EET|EST|MET|MST|PST8PDT|WET/i.test(date.timeZone) && !formattedDate.allday) {
|
|
@@ -6,14 +6,14 @@ const tzlibActions = require('timezones-ical-library');
|
|
|
6
6
|
* Add to Calendar Button
|
|
7
7
|
* ++++++++++++++++++++++
|
|
8
8
|
*
|
|
9
|
-
* Version: 2.8.
|
|
9
|
+
* Version: 2.8.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.8.
|
|
16
|
+
const atcbVersion = '2.8.4';
|
|
17
17
|
const atcbCssTemplate = {
|
|
18
18
|
if (typeof window === 'undefined') {
|
|
19
19
|
return false;
|
|
@@ -1837,7 +1837,7 @@ function atcb_generate_date_button(data, parent, subEvent = 'all', oneOption = f
|
|
|
1837
1837
|
btnDescription.style.boxOrient = 'vertical';
|
|
1838
1838
|
btnDetails.append(btnDescription);
|
|
1839
1839
|
} else {
|
|
1840
|
-
btnHeadline.
|
|
1840
|
+
btnHeadline.style.lineClamp = '2';
|
|
1841
1841
|
if (fullTimeInfo.length == 0 && (data.recurrence == null || data.recurrence == '')) {
|
|
1842
1842
|
btnRight.style.alignSelf = 'center';
|
|
1843
1843
|
btnHeadline.style.textAlign = 'center';
|
|
@@ -2276,7 +2276,11 @@ function atcb_subscribe_microsoft(data, fileUrl, calName, type = 'ms365') {
|
|
|
2276
2276
|
}
|
|
2277
2277
|
function atcb_generate_google(data, date, subEvent = 'all') {
|
|
2278
2278
|
const urlParts = [];
|
|
2279
|
-
|
|
2279
|
+
if (atcbIsMobile() || data.fakeMobile) {
|
|
2280
|
+
urlParts.push('https://calendar.google.com/calendar/render?action=TEMPLATE&');
|
|
2281
|
+
} else {
|
|
2282
|
+
urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
|
|
2283
|
+
}
|
|
2280
2284
|
const formattedDate = atcb_generate_time(date, 'clean', 'google');
|
|
2281
2285
|
urlParts.push('dates=' + encodeURIComponent(formattedDate.start) + '%2F' + encodeURIComponent(formattedDate.end));
|
|
2282
2286
|
if (date.timeZone && date.timeZone !== '' && !/GMT[+|-]\d{1,2}|Etc\/U|Etc\/Zulu|CET|CST6CDT|EET|EST|MET|MST|PST8PDT|WET/i.test(date.timeZone) && !formattedDate.allday) {
|
|
@@ -6,14 +6,14 @@ const tzlibActions = require('timezones-ical-library');
|
|
|
6
6
|
* Add to Calendar Button
|
|
7
7
|
* ++++++++++++++++++++++
|
|
8
8
|
*
|
|
9
|
-
* Version: 2.8.
|
|
9
|
+
* Version: 2.8.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.8.
|
|
16
|
+
const atcbVersion = '2.8.4';
|
|
17
17
|
const atcbCssTemplate = {};
|
|
18
18
|
const atcbIsBrowser = () => {
|
|
19
19
|
if (typeof window === 'undefined') {
|
|
@@ -1838,7 +1838,7 @@ function atcb_generate_date_button(data, parent, subEvent = 'all', oneOption = f
|
|
|
1838
1838
|
btnDescription.style.boxOrient = 'vertical';
|
|
1839
1839
|
btnDetails.append(btnDescription);
|
|
1840
1840
|
} else {
|
|
1841
|
-
btnHeadline.
|
|
1841
|
+
btnHeadline.style.lineClamp = '2';
|
|
1842
1842
|
if (fullTimeInfo.length == 0 && (data.recurrence == null || data.recurrence == '')) {
|
|
1843
1843
|
btnRight.style.alignSelf = 'center';
|
|
1844
1844
|
btnHeadline.style.textAlign = 'center';
|
|
@@ -2277,7 +2277,11 @@ function atcb_subscribe_microsoft(data, fileUrl, calName, type = 'ms365') {
|
|
|
2277
2277
|
}
|
|
2278
2278
|
function atcb_generate_google(data, date, subEvent = 'all') {
|
|
2279
2279
|
const urlParts = [];
|
|
2280
|
-
|
|
2280
|
+
if (atcbIsMobile() || data.fakeMobile) {
|
|
2281
|
+
urlParts.push('https://calendar.google.com/calendar/render?action=TEMPLATE&');
|
|
2282
|
+
} else {
|
|
2283
|
+
urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
|
|
2284
|
+
}
|
|
2281
2285
|
const formattedDate = atcb_generate_time(date, 'clean', 'google');
|
|
2282
2286
|
urlParts.push('dates=' + encodeURIComponent(formattedDate.start) + '%2F' + encodeURIComponent(formattedDate.end));
|
|
2283
2287
|
if (date.timeZone && date.timeZone !== '' && !/GMT[+|-]\d{1,2}|Etc\/U|Etc\/Zulu|CET|CST6CDT|EET|EST|MET|MST|PST8PDT|WET/i.test(date.timeZone) && !formattedDate.allday) {
|
|
@@ -6,14 +6,14 @@ const tzlibActions = require('timezones-ical-library');
|
|
|
6
6
|
* Add to Calendar Button
|
|
7
7
|
* ++++++++++++++++++++++
|
|
8
8
|
*
|
|
9
|
-
* Version: 2.8.
|
|
9
|
+
* Version: 2.8.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.8.
|
|
16
|
+
const atcbVersion = '2.8.4';
|
|
17
17
|
const atcbCssTemplate = {};
|
|
18
18
|
const atcbIsBrowser = () => {
|
|
19
19
|
if (typeof window === 'undefined') {
|
|
@@ -2558,7 +2558,7 @@ function atcb_generate_date_button(data, parent, subEvent = 'all', oneOption = f
|
|
|
2558
2558
|
btnDescription.style.boxOrient = 'vertical';
|
|
2559
2559
|
btnDetails.append(btnDescription);
|
|
2560
2560
|
} else {
|
|
2561
|
-
btnHeadline.
|
|
2561
|
+
btnHeadline.style.lineClamp = '2';
|
|
2562
2562
|
if (fullTimeInfo.length == 0 && (data.recurrence == null || data.recurrence == '')) {
|
|
2563
2563
|
btnRight.style.alignSelf = 'center';
|
|
2564
2564
|
btnHeadline.style.textAlign = 'center';
|
|
@@ -2997,7 +2997,11 @@ function atcb_subscribe_microsoft(data, fileUrl, calName, type = 'ms365') {
|
|
|
2997
2997
|
}
|
|
2998
2998
|
function atcb_generate_google(data, date, subEvent = 'all') {
|
|
2999
2999
|
const urlParts = [];
|
|
3000
|
-
|
|
3000
|
+
if (atcbIsMobile() || data.fakeMobile) {
|
|
3001
|
+
urlParts.push('https://calendar.google.com/calendar/render?action=TEMPLATE&');
|
|
3002
|
+
} else {
|
|
3003
|
+
urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
|
|
3004
|
+
}
|
|
3001
3005
|
const formattedDate = atcb_generate_time(date, 'clean', 'google');
|
|
3002
3006
|
urlParts.push('dates=' + encodeURIComponent(formattedDate.start) + '%2F' + encodeURIComponent(formattedDate.end));
|
|
3003
3007
|
if (date.timeZone && date.timeZone !== '' && !/GMT[+|-]\d{1,2}|Etc\/U|Etc\/Zulu|CET|CST6CDT|EET|EST|MET|MST|PST8PDT|WET/i.test(date.timeZone) && !formattedDate.allday) {
|
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.8.
|
|
9
|
+
* Version: 2.8.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.8.
|
|
16
|
+
const atcbVersion = '2.8.4';
|
|
17
17
|
const atcbCssTemplate = {
|
|
18
18
|
if (typeof window === 'undefined') {
|
|
19
19
|
return false;
|
|
@@ -2557,7 +2557,7 @@ function atcb_generate_date_button(data, parent, subEvent = 'all', oneOption = f
|
|
|
2557
2557
|
btnDescription.style.boxOrient = 'vertical';
|
|
2558
2558
|
btnDetails.append(btnDescription);
|
|
2559
2559
|
} else {
|
|
2560
|
-
btnHeadline.
|
|
2560
|
+
btnHeadline.style.lineClamp = '2';
|
|
2561
2561
|
if (fullTimeInfo.length == 0 && (data.recurrence == null || data.recurrence == '')) {
|
|
2562
2562
|
btnRight.style.alignSelf = 'center';
|
|
2563
2563
|
btnHeadline.style.textAlign = 'center';
|
|
@@ -2996,7 +2996,11 @@ function atcb_subscribe_microsoft(data, fileUrl, calName, type = 'ms365') {
|
|
|
2996
2996
|
}
|
|
2997
2997
|
function atcb_generate_google(data, date, subEvent = 'all') {
|
|
2998
2998
|
const urlParts = [];
|
|
2999
|
-
|
|
2999
|
+
if (atcbIsMobile() || data.fakeMobile) {
|
|
3000
|
+
urlParts.push('https://calendar.google.com/calendar/render?action=TEMPLATE&');
|
|
3001
|
+
} else {
|
|
3002
|
+
urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
|
|
3003
|
+
}
|
|
3000
3004
|
const formattedDate = atcb_generate_time(date, 'clean', 'google');
|
|
3001
3005
|
urlParts.push('dates=' + encodeURIComponent(formattedDate.start) + '%2F' + encodeURIComponent(formattedDate.end));
|
|
3002
3006
|
if (date.timeZone && date.timeZone !== '' && !/GMT[+|-]\d{1,2}|Etc\/U|Etc\/Zulu|CET|CST6CDT|EET|EST|MET|MST|PST8PDT|WET/i.test(date.timeZone) && !formattedDate.allday) {
|
|
@@ -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.8.
|
|
9
|
+
* Version: 2.8.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.8.
|
|
16
|
+
const atcbVersion = '2.8.4';
|
|
17
17
|
const atcbCssTemplate = {
|
|
18
18
|
if (typeof window === 'undefined') {
|
|
19
19
|
return false;
|
|
@@ -1837,7 +1837,7 @@ function atcb_generate_date_button(data, parent, subEvent = 'all', oneOption = f
|
|
|
1837
1837
|
btnDescription.style.boxOrient = 'vertical';
|
|
1838
1838
|
btnDetails.append(btnDescription);
|
|
1839
1839
|
} else {
|
|
1840
|
-
btnHeadline.
|
|
1840
|
+
btnHeadline.style.lineClamp = '2';
|
|
1841
1841
|
if (fullTimeInfo.length == 0 && (data.recurrence == null || data.recurrence == '')) {
|
|
1842
1842
|
btnRight.style.alignSelf = 'center';
|
|
1843
1843
|
btnHeadline.style.textAlign = 'center';
|
|
@@ -2276,7 +2276,11 @@ function atcb_subscribe_microsoft(data, fileUrl, calName, type = 'ms365') {
|
|
|
2276
2276
|
}
|
|
2277
2277
|
function atcb_generate_google(data, date, subEvent = 'all') {
|
|
2278
2278
|
const urlParts = [];
|
|
2279
|
-
|
|
2279
|
+
if (atcbIsMobile() || data.fakeMobile) {
|
|
2280
|
+
urlParts.push('https://calendar.google.com/calendar/render?action=TEMPLATE&');
|
|
2281
|
+
} else {
|
|
2282
|
+
urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
|
|
2283
|
+
}
|
|
2280
2284
|
const formattedDate = atcb_generate_time(date, 'clean', 'google');
|
|
2281
2285
|
urlParts.push('dates=' + encodeURIComponent(formattedDate.start) + '%2F' + encodeURIComponent(formattedDate.end));
|
|
2282
2286
|
if (date.timeZone && date.timeZone !== '' && !/GMT[+|-]\d{1,2}|Etc\/U|Etc\/Zulu|CET|CST6CDT|EET|EST|MET|MST|PST8PDT|WET/i.test(date.timeZone) && !formattedDate.allday) {
|
|
@@ -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.8.
|
|
9
|
+
* Version: 2.8.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.8.
|
|
16
|
+
const atcbVersion = '2.8.4';
|
|
17
17
|
const atcbCssTemplate = {};
|
|
18
18
|
const atcbIsBrowser = () => {
|
|
19
19
|
if (typeof window === 'undefined') {
|
|
@@ -1838,7 +1838,7 @@ function atcb_generate_date_button(data, parent, subEvent = 'all', oneOption = f
|
|
|
1838
1838
|
btnDescription.style.boxOrient = 'vertical';
|
|
1839
1839
|
btnDetails.append(btnDescription);
|
|
1840
1840
|
} else {
|
|
1841
|
-
btnHeadline.
|
|
1841
|
+
btnHeadline.style.lineClamp = '2';
|
|
1842
1842
|
if (fullTimeInfo.length == 0 && (data.recurrence == null || data.recurrence == '')) {
|
|
1843
1843
|
btnRight.style.alignSelf = 'center';
|
|
1844
1844
|
btnHeadline.style.textAlign = 'center';
|
|
@@ -2277,7 +2277,11 @@ function atcb_subscribe_microsoft(data, fileUrl, calName, type = 'ms365') {
|
|
|
2277
2277
|
}
|
|
2278
2278
|
function atcb_generate_google(data, date, subEvent = 'all') {
|
|
2279
2279
|
const urlParts = [];
|
|
2280
|
-
|
|
2280
|
+
if (atcbIsMobile() || data.fakeMobile) {
|
|
2281
|
+
urlParts.push('https://calendar.google.com/calendar/render?action=TEMPLATE&');
|
|
2282
|
+
} else {
|
|
2283
|
+
urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
|
|
2284
|
+
}
|
|
2281
2285
|
const formattedDate = atcb_generate_time(date, 'clean', 'google');
|
|
2282
2286
|
urlParts.push('dates=' + encodeURIComponent(formattedDate.start) + '%2F' + encodeURIComponent(formattedDate.end));
|
|
2283
2287
|
if (date.timeZone && date.timeZone !== '' && !/GMT[+|-]\d{1,2}|Etc\/U|Etc\/Zulu|CET|CST6CDT|EET|EST|MET|MST|PST8PDT|WET/i.test(date.timeZone) && !formattedDate.allday) {
|
|
@@ -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.8.
|
|
9
|
+
* Version: 2.8.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.8.
|
|
16
|
+
const atcbVersion = '2.8.4';
|
|
17
17
|
const atcbCssTemplate = {};
|
|
18
18
|
const atcbIsBrowser = () => {
|
|
19
19
|
if (typeof window === 'undefined') {
|
|
@@ -2558,7 +2558,7 @@ function atcb_generate_date_button(data, parent, subEvent = 'all', oneOption = f
|
|
|
2558
2558
|
btnDescription.style.boxOrient = 'vertical';
|
|
2559
2559
|
btnDetails.append(btnDescription);
|
|
2560
2560
|
} else {
|
|
2561
|
-
btnHeadline.
|
|
2561
|
+
btnHeadline.style.lineClamp = '2';
|
|
2562
2562
|
if (fullTimeInfo.length == 0 && (data.recurrence == null || data.recurrence == '')) {
|
|
2563
2563
|
btnRight.style.alignSelf = 'center';
|
|
2564
2564
|
btnHeadline.style.textAlign = 'center';
|
|
@@ -2997,7 +2997,11 @@ function atcb_subscribe_microsoft(data, fileUrl, calName, type = 'ms365') {
|
|
|
2997
2997
|
}
|
|
2998
2998
|
function atcb_generate_google(data, date, subEvent = 'all') {
|
|
2999
2999
|
const urlParts = [];
|
|
3000
|
-
|
|
3000
|
+
if (atcbIsMobile() || data.fakeMobile) {
|
|
3001
|
+
urlParts.push('https://calendar.google.com/calendar/render?action=TEMPLATE&');
|
|
3002
|
+
} else {
|
|
3003
|
+
urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
|
|
3004
|
+
}
|
|
3001
3005
|
const formattedDate = atcb_generate_time(date, 'clean', 'google');
|
|
3002
3006
|
urlParts.push('dates=' + encodeURIComponent(formattedDate.start) + '%2F' + encodeURIComponent(formattedDate.end));
|
|
3003
3007
|
if (date.timeZone && date.timeZone !== '' && !/GMT[+|-]\d{1,2}|Etc\/U|Etc\/Zulu|CET|CST6CDT|EET|EST|MET|MST|PST8PDT|WET/i.test(date.timeZone) && !formattedDate.allday) {
|