add-to-calendar-button 2.11.3 → 2.11.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-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 +8 -3
- package/dist/atcb-no-pro.js +8 -3
- package/dist/atcb-unstyle.js +8 -3
- package/dist/atcb.js +8 -3
- package/dist/commonjs/index.js +8 -3
- package/dist/commonjs/no-pro/index.js +8 -3
- package/dist/commonjs/no-pro-unstyle/index.js +8 -3
- package/dist/commonjs/unstyle/index.js +8 -3
- package/dist/module/index.js +8 -3
- package/dist/module/no-pro/index.js +8 -3
- package/dist/module/no-pro-unstyle/index.js +8 -3
- package/dist/module/unstyle/index.js +8 -3
- 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.11.
|
|
8
|
+
* Version: 2.11.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.11.
|
|
8
|
+
* Version: 2.11.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.11.
|
|
8
|
+
* Version: 2.11.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.11.
|
|
8
|
+
* Version: 2.11.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.11.
|
|
8
|
+
* Version: 2.11.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.11.
|
|
8
|
+
* Version: 2.11.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.11.
|
|
8
|
+
* Version: 2.11.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.11.
|
|
8
|
+
* Version: 2.11.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.11.
|
|
226
|
+
* Version: 2.11.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.11.
|
|
233
|
+
const atcbVersion = '2.11.4';
|
|
234
234
|
const atcbCssTemplate = {};
|
|
235
235
|
const atcbIsBrowser = () => {
|
|
236
236
|
if (typeof window === 'undefined') {
|
|
@@ -522,6 +522,11 @@ function atcb_decorate_data_defaults(data) {
|
|
|
522
522
|
}
|
|
523
523
|
if (!data.sequence || data.sequence === '') {
|
|
524
524
|
data.sequence = 0;
|
|
525
|
+
} else {
|
|
526
|
+
data.sequence = parseInt(data.sequence);
|
|
527
|
+
if (isNaN(data.sequence) || data.sequence < 0) {
|
|
528
|
+
data.sequence = 0;
|
|
529
|
+
}
|
|
525
530
|
}
|
|
526
531
|
if (!data.language || data.language === '' || !availableLanguages.includes(data.language)) {
|
|
527
532
|
data.language = 'en';
|
|
@@ -777,7 +782,7 @@ function atcb_move_root_values_into_dates(data, i) {
|
|
|
777
782
|
properties.unshift('name');
|
|
778
783
|
}
|
|
779
784
|
properties.forEach((prop) => {
|
|
780
|
-
if (data[`${prop}`] && data[`${prop}`] !== '') {
|
|
785
|
+
if ((data[`${prop}`] && data[`${prop}`] !== '') || (prop === 'sequence' && data[`${prop}`] === 0)) {
|
|
781
786
|
dateEntry[`${prop}`] = data[`${prop}`];
|
|
782
787
|
}
|
|
783
788
|
});
|
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.11.
|
|
226
|
+
* Version: 2.11.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.11.
|
|
233
|
+
const atcbVersion = '2.11.4';
|
|
234
234
|
const atcbCssTemplate = {
|
|
235
235
|
if (typeof window === 'undefined') {
|
|
236
236
|
return false;
|
|
@@ -521,6 +521,11 @@ function atcb_decorate_data_defaults(data) {
|
|
|
521
521
|
}
|
|
522
522
|
if (!data.sequence || data.sequence === '') {
|
|
523
523
|
data.sequence = 0;
|
|
524
|
+
} else {
|
|
525
|
+
data.sequence = parseInt(data.sequence);
|
|
526
|
+
if (isNaN(data.sequence) || data.sequence < 0) {
|
|
527
|
+
data.sequence = 0;
|
|
528
|
+
}
|
|
524
529
|
}
|
|
525
530
|
if (!data.language || data.language === '' || !availableLanguages.includes(data.language)) {
|
|
526
531
|
data.language = 'en';
|
|
@@ -776,7 +781,7 @@ function atcb_move_root_values_into_dates(data, i) {
|
|
|
776
781
|
properties.unshift('name');
|
|
777
782
|
}
|
|
778
783
|
properties.forEach((prop) => {
|
|
779
|
-
if (data[`${prop}`] && data[`${prop}`] !== '') {
|
|
784
|
+
if ((data[`${prop}`] && data[`${prop}`] !== '') || (prop === 'sequence' && data[`${prop}`] === 0)) {
|
|
780
785
|
dateEntry[`${prop}`] = data[`${prop}`];
|
|
781
786
|
}
|
|
782
787
|
});
|
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.11.
|
|
226
|
+
* Version: 2.11.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.11.
|
|
233
|
+
const atcbVersion = '2.11.4';
|
|
234
234
|
const atcbCssTemplate = {};
|
|
235
235
|
const atcbIsBrowser = () => {
|
|
236
236
|
if (typeof window === 'undefined') {
|
|
@@ -522,6 +522,11 @@ function atcb_decorate_data_defaults(data) {
|
|
|
522
522
|
}
|
|
523
523
|
if (!data.sequence || data.sequence === '') {
|
|
524
524
|
data.sequence = 0;
|
|
525
|
+
} else {
|
|
526
|
+
data.sequence = parseInt(data.sequence);
|
|
527
|
+
if (isNaN(data.sequence) || data.sequence < 0) {
|
|
528
|
+
data.sequence = 0;
|
|
529
|
+
}
|
|
525
530
|
}
|
|
526
531
|
if (!data.language || data.language === '' || !availableLanguages.includes(data.language)) {
|
|
527
532
|
data.language = 'en';
|
|
@@ -777,7 +782,7 @@ function atcb_move_root_values_into_dates(data, i) {
|
|
|
777
782
|
properties.unshift('name');
|
|
778
783
|
}
|
|
779
784
|
properties.forEach((prop) => {
|
|
780
|
-
if (data[`${prop}`] && data[`${prop}`] !== '') {
|
|
785
|
+
if ((data[`${prop}`] && data[`${prop}`] !== '') || (prop === 'sequence' && data[`${prop}`] === 0)) {
|
|
781
786
|
dateEntry[`${prop}`] = data[`${prop}`];
|
|
782
787
|
}
|
|
783
788
|
});
|
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.11.
|
|
226
|
+
* Version: 2.11.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.11.
|
|
233
|
+
const atcbVersion = '2.11.4';
|
|
234
234
|
const atcbCssTemplate = {
|
|
235
235
|
if (typeof window === 'undefined') {
|
|
236
236
|
return false;
|
|
@@ -521,6 +521,11 @@ function atcb_decorate_data_defaults(data) {
|
|
|
521
521
|
}
|
|
522
522
|
if (!data.sequence || data.sequence === '') {
|
|
523
523
|
data.sequence = 0;
|
|
524
|
+
} else {
|
|
525
|
+
data.sequence = parseInt(data.sequence);
|
|
526
|
+
if (isNaN(data.sequence) || data.sequence < 0) {
|
|
527
|
+
data.sequence = 0;
|
|
528
|
+
}
|
|
524
529
|
}
|
|
525
530
|
if (!data.language || data.language === '' || !availableLanguages.includes(data.language)) {
|
|
526
531
|
data.language = 'en';
|
|
@@ -776,7 +781,7 @@ function atcb_move_root_values_into_dates(data, i) {
|
|
|
776
781
|
properties.unshift('name');
|
|
777
782
|
}
|
|
778
783
|
properties.forEach((prop) => {
|
|
779
|
-
if (data[`${prop}`] && data[`${prop}`] !== '') {
|
|
784
|
+
if ((data[`${prop}`] && data[`${prop}`] !== '') || (prop === 'sequence' && data[`${prop}`] === 0)) {
|
|
780
785
|
dateEntry[`${prop}`] = data[`${prop}`];
|
|
781
786
|
}
|
|
782
787
|
});
|
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.11.
|
|
9
|
+
* Version: 2.11.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.11.
|
|
16
|
+
const atcbVersion = '2.11.4';
|
|
17
17
|
const atcbCssTemplate = {
|
|
18
18
|
if (typeof window === 'undefined') {
|
|
19
19
|
return false;
|
|
@@ -304,6 +304,11 @@ function atcb_decorate_data_defaults(data) {
|
|
|
304
304
|
}
|
|
305
305
|
if (!data.sequence || data.sequence === '') {
|
|
306
306
|
data.sequence = 0;
|
|
307
|
+
} else {
|
|
308
|
+
data.sequence = parseInt(data.sequence);
|
|
309
|
+
if (isNaN(data.sequence) || data.sequence < 0) {
|
|
310
|
+
data.sequence = 0;
|
|
311
|
+
}
|
|
307
312
|
}
|
|
308
313
|
if (!data.language || data.language === '' || !availableLanguages.includes(data.language)) {
|
|
309
314
|
data.language = 'en';
|
|
@@ -559,7 +564,7 @@ function atcb_move_root_values_into_dates(data, i) {
|
|
|
559
564
|
properties.unshift('name');
|
|
560
565
|
}
|
|
561
566
|
properties.forEach((prop) => {
|
|
562
|
-
if (data[`${prop}`] && data[`${prop}`] !== '') {
|
|
567
|
+
if ((data[`${prop}`] && data[`${prop}`] !== '') || (prop === 'sequence' && data[`${prop}`] === 0)) {
|
|
563
568
|
dateEntry[`${prop}`] = data[`${prop}`];
|
|
564
569
|
}
|
|
565
570
|
});
|
|
@@ -6,14 +6,14 @@ const tzlibActions = require('timezones-ical-library');
|
|
|
6
6
|
* Add to Calendar Button
|
|
7
7
|
* ++++++++++++++++++++++
|
|
8
8
|
*
|
|
9
|
-
* Version: 2.11.
|
|
9
|
+
* Version: 2.11.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.11.
|
|
16
|
+
const atcbVersion = '2.11.4';
|
|
17
17
|
const atcbCssTemplate = {
|
|
18
18
|
if (typeof window === 'undefined') {
|
|
19
19
|
return false;
|
|
@@ -304,6 +304,11 @@ function atcb_decorate_data_defaults(data) {
|
|
|
304
304
|
}
|
|
305
305
|
if (!data.sequence || data.sequence === '') {
|
|
306
306
|
data.sequence = 0;
|
|
307
|
+
} else {
|
|
308
|
+
data.sequence = parseInt(data.sequence);
|
|
309
|
+
if (isNaN(data.sequence) || data.sequence < 0) {
|
|
310
|
+
data.sequence = 0;
|
|
311
|
+
}
|
|
307
312
|
}
|
|
308
313
|
if (!data.language || data.language === '' || !availableLanguages.includes(data.language)) {
|
|
309
314
|
data.language = 'en';
|
|
@@ -559,7 +564,7 @@ function atcb_move_root_values_into_dates(data, i) {
|
|
|
559
564
|
properties.unshift('name');
|
|
560
565
|
}
|
|
561
566
|
properties.forEach((prop) => {
|
|
562
|
-
if (data[`${prop}`] && data[`${prop}`] !== '') {
|
|
567
|
+
if ((data[`${prop}`] && data[`${prop}`] !== '') || (prop === 'sequence' && data[`${prop}`] === 0)) {
|
|
563
568
|
dateEntry[`${prop}`] = data[`${prop}`];
|
|
564
569
|
}
|
|
565
570
|
});
|
|
@@ -6,14 +6,14 @@ const tzlibActions = require('timezones-ical-library');
|
|
|
6
6
|
* Add to Calendar Button
|
|
7
7
|
* ++++++++++++++++++++++
|
|
8
8
|
*
|
|
9
|
-
* Version: 2.11.
|
|
9
|
+
* Version: 2.11.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.11.
|
|
16
|
+
const atcbVersion = '2.11.4';
|
|
17
17
|
const atcbCssTemplate = {};
|
|
18
18
|
const atcbIsBrowser = () => {
|
|
19
19
|
if (typeof window === 'undefined') {
|
|
@@ -305,6 +305,11 @@ function atcb_decorate_data_defaults(data) {
|
|
|
305
305
|
}
|
|
306
306
|
if (!data.sequence || data.sequence === '') {
|
|
307
307
|
data.sequence = 0;
|
|
308
|
+
} else {
|
|
309
|
+
data.sequence = parseInt(data.sequence);
|
|
310
|
+
if (isNaN(data.sequence) || data.sequence < 0) {
|
|
311
|
+
data.sequence = 0;
|
|
312
|
+
}
|
|
308
313
|
}
|
|
309
314
|
if (!data.language || data.language === '' || !availableLanguages.includes(data.language)) {
|
|
310
315
|
data.language = 'en';
|
|
@@ -560,7 +565,7 @@ function atcb_move_root_values_into_dates(data, i) {
|
|
|
560
565
|
properties.unshift('name');
|
|
561
566
|
}
|
|
562
567
|
properties.forEach((prop) => {
|
|
563
|
-
if (data[`${prop}`] && data[`${prop}`] !== '') {
|
|
568
|
+
if ((data[`${prop}`] && data[`${prop}`] !== '') || (prop === 'sequence' && data[`${prop}`] === 0)) {
|
|
564
569
|
dateEntry[`${prop}`] = data[`${prop}`];
|
|
565
570
|
}
|
|
566
571
|
});
|
|
@@ -6,14 +6,14 @@ const tzlibActions = require('timezones-ical-library');
|
|
|
6
6
|
* Add to Calendar Button
|
|
7
7
|
* ++++++++++++++++++++++
|
|
8
8
|
*
|
|
9
|
-
* Version: 2.11.
|
|
9
|
+
* Version: 2.11.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.11.
|
|
16
|
+
const atcbVersion = '2.11.4';
|
|
17
17
|
const atcbCssTemplate = {};
|
|
18
18
|
const atcbIsBrowser = () => {
|
|
19
19
|
if (typeof window === 'undefined') {
|
|
@@ -305,6 +305,11 @@ function atcb_decorate_data_defaults(data) {
|
|
|
305
305
|
}
|
|
306
306
|
if (!data.sequence || data.sequence === '') {
|
|
307
307
|
data.sequence = 0;
|
|
308
|
+
} else {
|
|
309
|
+
data.sequence = parseInt(data.sequence);
|
|
310
|
+
if (isNaN(data.sequence) || data.sequence < 0) {
|
|
311
|
+
data.sequence = 0;
|
|
312
|
+
}
|
|
308
313
|
}
|
|
309
314
|
if (!data.language || data.language === '' || !availableLanguages.includes(data.language)) {
|
|
310
315
|
data.language = 'en';
|
|
@@ -560,7 +565,7 @@ function atcb_move_root_values_into_dates(data, i) {
|
|
|
560
565
|
properties.unshift('name');
|
|
561
566
|
}
|
|
562
567
|
properties.forEach((prop) => {
|
|
563
|
-
if (data[`${prop}`] && data[`${prop}`] !== '') {
|
|
568
|
+
if ((data[`${prop}`] && data[`${prop}`] !== '') || (prop === 'sequence' && data[`${prop}`] === 0)) {
|
|
564
569
|
dateEntry[`${prop}`] = data[`${prop}`];
|
|
565
570
|
}
|
|
566
571
|
});
|
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.11.
|
|
9
|
+
* Version: 2.11.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.11.
|
|
16
|
+
const atcbVersion = '2.11.4';
|
|
17
17
|
const atcbCssTemplate = {
|
|
18
18
|
if (typeof window === 'undefined') {
|
|
19
19
|
return false;
|
|
@@ -304,6 +304,11 @@ function atcb_decorate_data_defaults(data) {
|
|
|
304
304
|
}
|
|
305
305
|
if (!data.sequence || data.sequence === '') {
|
|
306
306
|
data.sequence = 0;
|
|
307
|
+
} else {
|
|
308
|
+
data.sequence = parseInt(data.sequence);
|
|
309
|
+
if (isNaN(data.sequence) || data.sequence < 0) {
|
|
310
|
+
data.sequence = 0;
|
|
311
|
+
}
|
|
307
312
|
}
|
|
308
313
|
if (!data.language || data.language === '' || !availableLanguages.includes(data.language)) {
|
|
309
314
|
data.language = 'en';
|
|
@@ -559,7 +564,7 @@ function atcb_move_root_values_into_dates(data, i) {
|
|
|
559
564
|
properties.unshift('name');
|
|
560
565
|
}
|
|
561
566
|
properties.forEach((prop) => {
|
|
562
|
-
if (data[`${prop}`] && data[`${prop}`] !== '') {
|
|
567
|
+
if ((data[`${prop}`] && data[`${prop}`] !== '') || (prop === 'sequence' && data[`${prop}`] === 0)) {
|
|
563
568
|
dateEntry[`${prop}`] = data[`${prop}`];
|
|
564
569
|
}
|
|
565
570
|
});
|
|
@@ -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.11.
|
|
9
|
+
* Version: 2.11.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.11.
|
|
16
|
+
const atcbVersion = '2.11.4';
|
|
17
17
|
const atcbCssTemplate = {
|
|
18
18
|
if (typeof window === 'undefined') {
|
|
19
19
|
return false;
|
|
@@ -304,6 +304,11 @@ function atcb_decorate_data_defaults(data) {
|
|
|
304
304
|
}
|
|
305
305
|
if (!data.sequence || data.sequence === '') {
|
|
306
306
|
data.sequence = 0;
|
|
307
|
+
} else {
|
|
308
|
+
data.sequence = parseInt(data.sequence);
|
|
309
|
+
if (isNaN(data.sequence) || data.sequence < 0) {
|
|
310
|
+
data.sequence = 0;
|
|
311
|
+
}
|
|
307
312
|
}
|
|
308
313
|
if (!data.language || data.language === '' || !availableLanguages.includes(data.language)) {
|
|
309
314
|
data.language = 'en';
|
|
@@ -559,7 +564,7 @@ function atcb_move_root_values_into_dates(data, i) {
|
|
|
559
564
|
properties.unshift('name');
|
|
560
565
|
}
|
|
561
566
|
properties.forEach((prop) => {
|
|
562
|
-
if (data[`${prop}`] && data[`${prop}`] !== '') {
|
|
567
|
+
if ((data[`${prop}`] && data[`${prop}`] !== '') || (prop === 'sequence' && data[`${prop}`] === 0)) {
|
|
563
568
|
dateEntry[`${prop}`] = data[`${prop}`];
|
|
564
569
|
}
|
|
565
570
|
});
|
|
@@ -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.11.
|
|
9
|
+
* Version: 2.11.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.11.
|
|
16
|
+
const atcbVersion = '2.11.4';
|
|
17
17
|
const atcbCssTemplate = {};
|
|
18
18
|
const atcbIsBrowser = () => {
|
|
19
19
|
if (typeof window === 'undefined') {
|
|
@@ -305,6 +305,11 @@ function atcb_decorate_data_defaults(data) {
|
|
|
305
305
|
}
|
|
306
306
|
if (!data.sequence || data.sequence === '') {
|
|
307
307
|
data.sequence = 0;
|
|
308
|
+
} else {
|
|
309
|
+
data.sequence = parseInt(data.sequence);
|
|
310
|
+
if (isNaN(data.sequence) || data.sequence < 0) {
|
|
311
|
+
data.sequence = 0;
|
|
312
|
+
}
|
|
308
313
|
}
|
|
309
314
|
if (!data.language || data.language === '' || !availableLanguages.includes(data.language)) {
|
|
310
315
|
data.language = 'en';
|
|
@@ -560,7 +565,7 @@ function atcb_move_root_values_into_dates(data, i) {
|
|
|
560
565
|
properties.unshift('name');
|
|
561
566
|
}
|
|
562
567
|
properties.forEach((prop) => {
|
|
563
|
-
if (data[`${prop}`] && data[`${prop}`] !== '') {
|
|
568
|
+
if ((data[`${prop}`] && data[`${prop}`] !== '') || (prop === 'sequence' && data[`${prop}`] === 0)) {
|
|
564
569
|
dateEntry[`${prop}`] = data[`${prop}`];
|
|
565
570
|
}
|
|
566
571
|
});
|
|
@@ -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.11.
|
|
9
|
+
* Version: 2.11.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.11.
|
|
16
|
+
const atcbVersion = '2.11.4';
|
|
17
17
|
const atcbCssTemplate = {};
|
|
18
18
|
const atcbIsBrowser = () => {
|
|
19
19
|
if (typeof window === 'undefined') {
|
|
@@ -305,6 +305,11 @@ function atcb_decorate_data_defaults(data) {
|
|
|
305
305
|
}
|
|
306
306
|
if (!data.sequence || data.sequence === '') {
|
|
307
307
|
data.sequence = 0;
|
|
308
|
+
} else {
|
|
309
|
+
data.sequence = parseInt(data.sequence);
|
|
310
|
+
if (isNaN(data.sequence) || data.sequence < 0) {
|
|
311
|
+
data.sequence = 0;
|
|
312
|
+
}
|
|
308
313
|
}
|
|
309
314
|
if (!data.language || data.language === '' || !availableLanguages.includes(data.language)) {
|
|
310
315
|
data.language = 'en';
|
|
@@ -560,7 +565,7 @@ function atcb_move_root_values_into_dates(data, i) {
|
|
|
560
565
|
properties.unshift('name');
|
|
561
566
|
}
|
|
562
567
|
properties.forEach((prop) => {
|
|
563
|
-
if (data[`${prop}`] && data[`${prop}`] !== '') {
|
|
568
|
+
if ((data[`${prop}`] && data[`${prop}`] !== '') || (prop === 'sequence' && data[`${prop}`] === 0)) {
|
|
564
569
|
dateEntry[`${prop}`] = data[`${prop}`];
|
|
565
570
|
}
|
|
566
571
|
});
|