From bdb5aef87674bd26bfcae3e3cbd5a1a6e1688d2c Mon Sep 17 00:00:00 2001 From: Jens Kuerschner Date: Mon, 19 Aug 2024 21:38:53 +0200 Subject: [PATCH] fixes and upgrade --- .eslintrc.json | 2 +- assets/css/atcb-3d.css | 2 +- assets/css/atcb-date.css | 2 +- assets/css/atcb-flat.css | 2 +- assets/css/atcb-neumorphism.css | 2 +- assets/css/atcb-round.css | 2 +- assets/css/atcb-text.css | 2 +- assets/css/atcb.css | 2 +- demo/components/controls/configSearch.vue | 4 +- .../controls/timezoneAutocomplete.vue | 8 ++-- demo/components/footer.vue | 2 +- demo/components/statsBar.vue | 4 +- demo/public/atcb.css | 2 +- demo/tailwind.config.js | 1 + package-lock.json | 43 ++++++++++++++++++- package.json | 3 +- src/atcb-control.js | 2 +- src/atcb-decorate.js | 6 +-- src/atcb-event.js | 2 +- src/atcb-generate-pro.js | 28 ++++++------ src/atcb-generate-rich-data.js | 2 +- src/atcb-generate.js | 2 +- src/atcb-globals.js | 4 +- src/atcb-i18n.js | 2 +- src/atcb-init.js | 2 +- src/atcb-links.js | 2 +- src/atcb-util.js | 2 +- src/atcb-validate.js | 2 +- test/server-side-init.test.js | 1 + test/test-prep.js | 1 + test/wc-tests/wc-load.test.js | 2 +- 31 files changed, 93 insertions(+), 50 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index e5bd58a9..a49c8516 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -22,7 +22,7 @@ ] }, - "extends": ["plugin:@typescript-eslint/recommended", "eslint:recommended", "plugin:security/recommended-legacy", "plugin:prettier/recommended"], + "extends": ["plugin:@typescript-eslint/recommended", "eslint:recommended", "plugin:security/recommended-legacy", "plugin:prettier/recommended", "plugin:wc/recommended"], "plugins": ["@typescript-eslint", "prettier"], diff --git a/assets/css/atcb-3d.css b/assets/css/atcb-3d.css index 9e030efb..28572c7c 100644 --- a/assets/css/atcb-3d.css +++ b/assets/css/atcb-3d.css @@ -5,7 +5,7 @@ * * Style: 3D * - * Version: 2.6.18 + * Version: 2.6.19 * Creator: Jens Kuerschner (https://jekuer.com) * Project: https://github.com/add2cal/add-to-calendar-button * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt) diff --git a/assets/css/atcb-date.css b/assets/css/atcb-date.css index ccf268a1..f8c73b9e 100644 --- a/assets/css/atcb-date.css +++ b/assets/css/atcb-date.css @@ -5,7 +5,7 @@ * * Style: Date * - * Version: 2.6.18 + * Version: 2.6.19 * Creator: Jens Kuerschner (https://jekuer.com) * Project: https://github.com/add2cal/add-to-calendar-button * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt) diff --git a/assets/css/atcb-flat.css b/assets/css/atcb-flat.css index d7f894b1..592cb442 100644 --- a/assets/css/atcb-flat.css +++ b/assets/css/atcb-flat.css @@ -5,7 +5,7 @@ * * Style: Flat * - * Version: 2.6.18 + * Version: 2.6.19 * Creator: Jens Kuerschner (https://jekuer.com) * Project: https://github.com/add2cal/add-to-calendar-button * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt) diff --git a/assets/css/atcb-neumorphism.css b/assets/css/atcb-neumorphism.css index 27233ac0..41c44cf1 100644 --- a/assets/css/atcb-neumorphism.css +++ b/assets/css/atcb-neumorphism.css @@ -5,7 +5,7 @@ * * Style: Neumorphism * - * Version: 2.6.18 + * Version: 2.6.19 * Creator: Jens Kuerschner (https://jekuer.com) * Project: https://github.com/add2cal/add-to-calendar-button * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt) diff --git a/assets/css/atcb-round.css b/assets/css/atcb-round.css index 87be882d..8cb4e905 100644 --- a/assets/css/atcb-round.css +++ b/assets/css/atcb-round.css @@ -5,7 +5,7 @@ * * Style: Round * - * Version: 2.6.18 + * Version: 2.6.19 * Creator: Jens Kuerschner (https://jekuer.com) * Project: https://github.com/add2cal/add-to-calendar-button * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt) diff --git a/assets/css/atcb-text.css b/assets/css/atcb-text.css index cd9231e7..47859d84 100644 --- a/assets/css/atcb-text.css +++ b/assets/css/atcb-text.css @@ -5,7 +5,7 @@ * * Style: Text * - * Version: 2.6.18 + * Version: 2.6.19 * Creator: Jens Kuerschner (https://jekuer.com) * Project: https://github.com/add2cal/add-to-calendar-button * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt) diff --git a/assets/css/atcb.css b/assets/css/atcb.css index 89d1eebe..5eddeea6 100644 --- a/assets/css/atcb.css +++ b/assets/css/atcb.css @@ -5,7 +5,7 @@ * * Style: Default * - * Version: 2.6.18 + * Version: 2.6.19 * Creator: Jens Kuerschner (https://jekuer.com) * Project: https://github.com/add2cal/add-to-calendar-button * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt) diff --git a/demo/components/controls/configSearch.vue b/demo/components/controls/configSearch.vue index 8c839a11..4d489907 100644 --- a/demo/components/controls/configSearch.vue +++ b/demo/components/controls/configSearch.vue @@ -124,7 +124,7 @@ onMounted(() => { onSubmit: (value: string) => { if (value !== undefined) { const goTo = value.toLowerCase(); - searchInput.value && searchInput.value.blur(); + if (searchInput.value) searchInput.value.blur(); searchInput.value.value = ''; // push the route, but add some delay to work around some android soft keyboard issues setTimeout( () => navigateTo({path: localePath('configuration'), hash: '#' + goTo}), 200); @@ -138,7 +138,7 @@ onMounted(() => { const onSearchInputFocus = () => { isInputFocused.value = true; - searchInput.value && searchInput.value.select(); + if (searchInput.value) searchInput.value.select(); } const onSearchInputBlur = () => { diff --git a/demo/components/controls/timezoneAutocomplete.vue b/demo/components/controls/timezoneAutocomplete.vue index 885a875e..05994c04 100644 --- a/demo/components/controls/timezoneAutocomplete.vue +++ b/demo/components/controls/timezoneAutocomplete.vue @@ -64,7 +64,7 @@ const elNoResultsID = (function() { onMounted(() => { if (props.modelValue && getFilteredTimezoneOptions().includes(props.modelValue.toString())) { - searchInput.value && (searchInput.value.value = props.modelValue) + if (searchInput.value) searchInput.value.value = props.modelValue; } if (import.meta.client) { @@ -76,7 +76,7 @@ onMounted(() => { onSubmit: (value: string) => { if (value !== undefined) { emit('update:modelValue', value); - searchInput.value && searchInput.value.blur(); + if (searchInput.value) searchInput.value.blur(); } }, autoSelect: true, @@ -87,7 +87,7 @@ onMounted(() => { const onSearchInputFocus = () => { isInputFocused.value = true; - searchInput.value && searchInput.value.select(); + if (searchInput.value) searchInput.value.select(); } const onSearchInputBlur = () => { @@ -107,7 +107,7 @@ const onSearchInputBlur = () => { // watch props changes to synch mobile and desktop field here if (import.meta.client) { watch(props, () => { - searchInput.value && (searchInput.value.value = props.modelValue); + if (searchInput.value) searchInput.value.value = props.modelValue; }); } diff --git a/demo/components/footer.vue b/demo/components/footer.vue index 8745ac0b..5b1c4bf0 100644 --- a/demo/components/footer.vue +++ b/demo/components/footer.vue @@ -70,7 +70,7 @@ function topFunction() {
© {{new Date().getFullYear()}} - , Current Version: 2.6.18 + , Current Version: 2.6.19