From a6ddb931daed935bdd1cb67f914a3960eb63ece8 Mon Sep 17 00:00:00 2001 From: Jens Kuerschner Date: Sat, 1 Jun 2024 14:27:17 +0200 Subject: [PATCH] better ::parts support --- 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/app.vue | 2 +- demo/components/footer.vue | 2 +- demo/package-lock.json | 207 ++++++++++++++------------- demo/package.json | 18 +-- demo/pages/advanced-use.vue | 22 ++- demo/public/atcb.css | 2 +- package-lock.json | 238 ++++++++++++++++---------------- package.json | 10 +- src/atcb-control.js | 2 +- src/atcb-decorate.js | 2 +- src/atcb-event.js | 2 +- src/atcb-generate-pro.js | 2 +- src/atcb-generate-rich-data.js | 2 +- src/atcb-generate.js | 3 +- src/atcb-globals.js | 4 +- src/atcb-i18n.js | 2 +- src/atcb-init.js | 3 +- src/atcb-links.js | 2 +- src/atcb-util.js | 2 +- src/atcb-validate.js | 2 +- 27 files changed, 288 insertions(+), 255 deletions(-) diff --git a/assets/css/atcb-3d.css b/assets/css/atcb-3d.css index 08c522e0..4e490f62 100644 --- a/assets/css/atcb-3d.css +++ b/assets/css/atcb-3d.css @@ -5,7 +5,7 @@ * * Style: 3D * - * Version: 2.6.15 + * Version: 2.6.16 * 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 d8f7b696..30fc61c8 100644 --- a/assets/css/atcb-date.css +++ b/assets/css/atcb-date.css @@ -5,7 +5,7 @@ * * Style: Date * - * Version: 2.6.15 + * Version: 2.6.16 * 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 2d518482..06fa1571 100644 --- a/assets/css/atcb-flat.css +++ b/assets/css/atcb-flat.css @@ -5,7 +5,7 @@ * * Style: Flat * - * Version: 2.6.15 + * Version: 2.6.16 * 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 fcfc24a1..4443c297 100644 --- a/assets/css/atcb-neumorphism.css +++ b/assets/css/atcb-neumorphism.css @@ -5,7 +5,7 @@ * * Style: Neumorphism * - * Version: 2.6.15 + * Version: 2.6.16 * 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 d51ea59c..19834114 100644 --- a/assets/css/atcb-round.css +++ b/assets/css/atcb-round.css @@ -5,7 +5,7 @@ * * Style: Round * - * Version: 2.6.15 + * Version: 2.6.16 * 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 72003968..238580c4 100644 --- a/assets/css/atcb-text.css +++ b/assets/css/atcb-text.css @@ -5,7 +5,7 @@ * * Style: Text * - * Version: 2.6.15 + * Version: 2.6.16 * 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 b19e6ae6..fdd78fe0 100644 --- a/assets/css/atcb.css +++ b/assets/css/atcb.css @@ -5,7 +5,7 @@ * * Style: Default * - * Version: 2.6.15 + * Version: 2.6.16 * 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/app.vue b/demo/app.vue index 80e97a3b..66564f11 100644 --- a/demo/app.vue +++ b/demo/app.vue @@ -21,7 +21,7 @@ useSchemaOrg([ diff --git a/demo/components/footer.vue b/demo/components/footer.vue index 3320e2d8..f950b8ed 100644 --- a/demo/components/footer.vue +++ b/demo/components/footer.vue @@ -71,7 +71,7 @@ function topFunction() {
© {{new Date().getFullYear()}} - , Current Version: 2.6.15 + , Current Version: 2.6.16
- +
@@ -389,10 +391,17 @@ onUnmounted(() => { ></add-to-calendar-button> <style> - add-to-calendar-button#css-part-example::part(atcb-button) { + add-to-calendar-button#css-part-example::part(atcb-button), + #atcb-btn-css-part-example-modal-host::part(atcb-button) { background-color: #264f3c; color: #fff; } + /* or, for all buttons and modals: + .add-to-calendar::part(atcb-button) { + background-color: #264f3c; + color: #fff; + } + */ </style> @@ -1112,8 +1121,9 @@ onUnmounted(() => {
-