From 96e1d446e391afd0fd2cf6679023fc7f1dc25561 Mon Sep 17 00:00:00 2001 From: planctus Date: Wed, 17 Jan 2024 11:47:43 +0200 Subject: [PATCH 1/8] chore(ecl): updating deps to 3.13.0 --- src/components/ecl-accordion/package.json | 20 +++++++++---------- src/components/ecl-banner/package.json | 4 ++-- src/components/ecl-blockquote/package.json | 8 ++++---- src/components/ecl-breadcrumb/package.json | 8 ++++---- src/components/ecl-button/package.json | 18 ++++++++--------- src/components/ecl-card/package.json | 4 ++-- src/components/ecl-carousel/package.json | 6 +++--- .../ecl-category-filter/package.json | 4 ++-- src/components/ecl-content-block/package.json | 16 +++++++-------- src/components/ecl-content-item/package.json | 8 ++++---- src/components/ecl-date-block/package.json | 10 +++++----- src/components/ecl-datepicker/package.json | 8 ++++---- .../ecl-description-list/package.json | 8 ++++---- src/components/ecl-expandable/package.json | 12 +++++------ src/components/ecl-fact-figures/package.json | 6 +++--- src/components/ecl-featured-item/package.json | 4 ++-- src/components/ecl-file-upload/package.json | 6 +++--- src/components/ecl-file/package.json | 6 +++--- src/components/ecl-footer/package.json | 12 +++++------ src/components/ecl-form-group/package.json | 4 ++-- src/components/ecl-gallery/package.json | 6 +++--- src/components/ecl-grid/package.json | 4 ++-- src/components/ecl-hero-banner/package.json | 4 ++-- src/components/ecl-icon/package.json | 10 +++++----- .../ecl-inpage-navigation/package.json | 6 +++--- src/components/ecl-input/package.json | 16 +++++++-------- src/components/ecl-label/package.json | 4 ++-- src/components/ecl-link/package.json | 10 +++++----- .../ecl-list-illustration/package.json | 4 ++-- .../ecl-media-container/package.json | 6 +++--- src/components/ecl-menu/package.json | 6 +++--- src/components/ecl-message/package.json | 10 +++++----- src/components/ecl-modal/package.json | 6 +++--- .../ecl-navigation-list/package.json | 4 ++-- src/components/ecl-news-ticker/package.json | 4 ++-- src/components/ecl-page-banner/package.json | 4 ++-- src/components/ecl-page-header/package.json | 6 +++--- src/components/ecl-pagination/package.json | 4 ++-- src/components/ecl-picture/package.json | 2 +- src/components/ecl-popover/package.json | 6 +++--- src/components/ecl-range/package.json | 4 ++-- src/components/ecl-rating-field/package.json | 4 ++-- src/components/ecl-search-form/package.json | 4 ++-- src/components/ecl-select/package.json | 4 ++-- src/components/ecl-site-header/package.json | 10 +++++----- .../ecl-social-media-follow/package.json | 6 +++--- .../ecl-social-media-share/package.json | 10 +++++----- src/components/ecl-spacing/package.json | 4 ++-- src/components/ecl-spinner/package.json | 4 ++-- src/components/ecl-tag/package.json | 12 +++++------ src/components/ecl-text/package.json | 4 ++-- src/components/ecl-textarea/package.json | 4 ++-- src/components/ecl-timeline/package.json | 4 ++-- .../ckeditor5-ecl-webcomponents/package.json | 2 +- 54 files changed, 185 insertions(+), 185 deletions(-) diff --git a/src/components/ecl-accordion/package.json b/src/components/ecl-accordion/package.json index e6906da..3cddf9c 100644 --- a/src/components/ecl-accordion/package.json +++ b/src/components/ecl-accordion/package.json @@ -15,16 +15,16 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/resources-ec-icons": "3.11.0", - "@ecl/resources-eu-icons": "3.11.0", - "@ecl/specs-component-accordion": "3.11.0", - "@ecl/theme-ec": "3.11.0", - "@ecl/theme-eu": "3.11.0", - "@ecl/vanilla-component-accordion": "3.11.0", - "@ecl/vanilla-component-button": "3.11.0", - "@ecl/vanilla-component-icon": "3.11.0", - "@ecl/vanilla-layout-grid": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/resources-ec-icons": "3.13.0", + "@ecl/resources-eu-icons": "3.13.0", + "@ecl/specs-component-accordion": "3.13.0", + "@ecl/theme-ec": "3.13.0", + "@ecl/theme-eu": "3.13.0", + "@ecl/vanilla-component-accordion": "3.13.0", + "@ecl/vanilla-component-button": "3.13.0", + "@ecl/vanilla-component-icon": "3.13.0", + "@ecl/vanilla-layout-grid": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-banner/package.json b/src/components/ecl-banner/package.json index da67f54..f92daa5 100644 --- a/src/components/ecl-banner/package.json +++ b/src/components/ecl-banner/package.json @@ -13,8 +13,8 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-component-banner": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-component-banner": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-blockquote/package.json b/src/components/ecl-blockquote/package.json index 83e11a0..df657e5 100644 --- a/src/components/ecl-blockquote/package.json +++ b/src/components/ecl-blockquote/package.json @@ -13,10 +13,10 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/theme-ec": "3.11.0", - "@ecl/theme-eu": "3.11.0", - "@ecl/vanilla-component-blockquote": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/theme-ec": "3.13.0", + "@ecl/theme-eu": "3.13.0", + "@ecl/vanilla-component-blockquote": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-breadcrumb/package.json b/src/components/ecl-breadcrumb/package.json index ed17704..3e5d724 100644 --- a/src/components/ecl-breadcrumb/package.json +++ b/src/components/ecl-breadcrumb/package.json @@ -14,10 +14,10 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/theme-ec": "3.11.0", - "@ecl/theme-eu": "3.11.0", - "@ecl/vanilla-component-breadcrumb": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/theme-ec": "3.13.0", + "@ecl/theme-eu": "3.13.0", + "@ecl/vanilla-component-breadcrumb": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-button/package.json b/src/components/ecl-button/package.json index e3ca3f8..73b00ed 100644 --- a/src/components/ecl-button/package.json +++ b/src/components/ecl-button/package.json @@ -13,15 +13,15 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/resources-ec-icons": "3.11.0", - "@ecl/resources-eu-icons": "3.11.0", - "@ecl/specs-component-button": "3.11.0", - "@ecl/theme-ec": "3.11.0", - "@ecl/theme-eu": "3.11.0", - "@ecl/vanilla-component-button": "3.11.0", - "@ecl/vanilla-component-icon": "3.11.0", - "@ecl/vanilla-component-link": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/resources-ec-icons": "3.13.0", + "@ecl/resources-eu-icons": "3.13.0", + "@ecl/specs-component-button": "3.13.0", + "@ecl/theme-ec": "3.13.0", + "@ecl/theme-eu": "3.13.0", + "@ecl/vanilla-component-button": "3.13.0", + "@ecl/vanilla-component-icon": "3.13.0", + "@ecl/vanilla-component-link": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-card/package.json b/src/components/ecl-card/package.json index 00ab869..84838ae 100644 --- a/src/components/ecl-card/package.json +++ b/src/components/ecl-card/package.json @@ -13,8 +13,8 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-component-card": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-component-card": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-carousel/package.json b/src/components/ecl-carousel/package.json index d27250d..320e770 100644 --- a/src/components/ecl-carousel/package.json +++ b/src/components/ecl-carousel/package.json @@ -14,9 +14,9 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-component-carousel": "3.11.0", - "@ecl/vanilla-layout-grid": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-component-carousel": "3.13.0", + "@ecl/vanilla-layout-grid": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-category-filter/package.json b/src/components/ecl-category-filter/package.json index 04248f4..9969deb 100644 --- a/src/components/ecl-category-filter/package.json +++ b/src/components/ecl-category-filter/package.json @@ -14,8 +14,8 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-component-category-filter": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-component-category-filter": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-content-block/package.json b/src/components/ecl-content-block/package.json index cda2f9f..939e201 100644 --- a/src/components/ecl-content-block/package.json +++ b/src/components/ecl-content-block/package.json @@ -14,14 +14,14 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/theme-ec": "3.11.0", - "@ecl/theme-eu": "3.11.0", - "@ecl/vanilla-component-content-block": "3.11.0", - "@ecl/vanilla-component-description-list": "3.11.0", - "@ecl/vanilla-component-icon": "3.11.0", - "@ecl/vanilla-component-label": "3.11.0", - "@ecl/vanilla-component-link": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/theme-ec": "3.13.0", + "@ecl/theme-eu": "3.13.0", + "@ecl/vanilla-component-content-block": "3.13.0", + "@ecl/vanilla-component-description-list": "3.13.0", + "@ecl/vanilla-component-icon": "3.13.0", + "@ecl/vanilla-component-label": "3.13.0", + "@ecl/vanilla-component-link": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-content-item/package.json b/src/components/ecl-content-item/package.json index 0dbef3b..2a1d031 100644 --- a/src/components/ecl-content-item/package.json +++ b/src/components/ecl-content-item/package.json @@ -13,10 +13,10 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/theme-ec": "3.11.0", - "@ecl/theme-eu": "3.11.0", - "@ecl/vanilla-component-content-item": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/theme-ec": "3.13.0", + "@ecl/theme-eu": "3.13.0", + "@ecl/vanilla-component-content-item": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-date-block/package.json b/src/components/ecl-date-block/package.json index 8533e40..e0f9ada 100644 --- a/src/components/ecl-date-block/package.json +++ b/src/components/ecl-date-block/package.json @@ -13,11 +13,11 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/theme-ec": "3.11.0", - "@ecl/theme-eu": "3.11.0", - "@ecl/vanilla-component-date-block": "3.11.0", - "@ecl/vanilla-utility-screen-reader": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/theme-ec": "3.13.0", + "@ecl/theme-eu": "3.13.0", + "@ecl/vanilla-component-date-block": "3.13.0", + "@ecl/vanilla-utility-screen-reader": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-datepicker/package.json b/src/components/ecl-datepicker/package.json index 1c0c9c4..3f3b9d6 100644 --- a/src/components/ecl-datepicker/package.json +++ b/src/components/ecl-datepicker/package.json @@ -14,10 +14,10 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/theme-ec": "3.11.0", - "@ecl/theme-eu": "3.11.0", - "@ecl/vanilla-component-datepicker": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/theme-ec": "3.13.0", + "@ecl/theme-eu": "3.13.0", + "@ecl/vanilla-component-datepicker": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-description-list/package.json b/src/components/ecl-description-list/package.json index bd7ef36..0356e85 100644 --- a/src/components/ecl-description-list/package.json +++ b/src/components/ecl-description-list/package.json @@ -14,10 +14,10 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/theme-ec": "3.11.0", - "@ecl/theme-eu": "3.11.0", - "@ecl/vanilla-component-description-list": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/theme-ec": "3.13.0", + "@ecl/theme-eu": "3.13.0", + "@ecl/vanilla-component-description-list": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-expandable/package.json b/src/components/ecl-expandable/package.json index 23a8966..18f5c9a 100644 --- a/src/components/ecl-expandable/package.json +++ b/src/components/ecl-expandable/package.json @@ -14,12 +14,12 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/specs-component-expandable": "3.11.0", - "@ecl/theme-ec": "3.11.0", - "@ecl/theme-eu": "3.11.0", - "@ecl/vanilla-component-button": "3.11.0", - "@ecl/vanilla-component-expandable": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/specs-component-expandable": "3.13.0", + "@ecl/theme-ec": "3.13.0", + "@ecl/theme-eu": "3.13.0", + "@ecl/vanilla-component-button": "3.13.0", + "@ecl/vanilla-component-expandable": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-fact-figures/package.json b/src/components/ecl-fact-figures/package.json index 510c61e..4a3e51b 100644 --- a/src/components/ecl-fact-figures/package.json +++ b/src/components/ecl-fact-figures/package.json @@ -13,9 +13,9 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-component-fact-figures": "3.11.0", - "@ecl/vanilla-layout-grid": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-component-fact-figures": "3.13.0", + "@ecl/vanilla-layout-grid": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-featured-item/package.json b/src/components/ecl-featured-item/package.json index 2fc8c18..0457ead 100644 --- a/src/components/ecl-featured-item/package.json +++ b/src/components/ecl-featured-item/package.json @@ -13,8 +13,8 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-component-featured-item": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-component-featured-item": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-file-upload/package.json b/src/components/ecl-file-upload/package.json index 8a33581..a239733 100644 --- a/src/components/ecl-file-upload/package.json +++ b/src/components/ecl-file-upload/package.json @@ -14,9 +14,9 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-component-button": "3.11.0", - "@ecl/vanilla-component-file-upload": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-component-button": "3.13.0", + "@ecl/vanilla-component-file-upload": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-file/package.json b/src/components/ecl-file/package.json index ce802ba..4b48ea9 100644 --- a/src/components/ecl-file/package.json +++ b/src/components/ecl-file/package.json @@ -14,9 +14,9 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-component-file": "3.11.0", - "@ecl/vanilla-layout-grid": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-component-file": "3.13.0", + "@ecl/vanilla-layout-grid": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-footer/package.json b/src/components/ecl-footer/package.json index 4fa93fa..7c2e12d 100644 --- a/src/components/ecl-footer/package.json +++ b/src/components/ecl-footer/package.json @@ -14,12 +14,12 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/resources-ec-logo": "3.11.0", - "@ecl/resources-eu-logo": "3.11.0", - "@ecl/vanilla-component-link": "3.11.0", - "@ecl/vanilla-component-site-footer": "3.11.0", - "@ecl/vanilla-layout-grid": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/resources-ec-logo": "3.13.0", + "@ecl/resources-eu-logo": "3.13.0", + "@ecl/vanilla-component-link": "3.13.0", + "@ecl/vanilla-component-site-footer": "3.13.0", + "@ecl/vanilla-layout-grid": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-form-group/package.json b/src/components/ecl-form-group/package.json index 5216875..3ce5859 100644 --- a/src/components/ecl-form-group/package.json +++ b/src/components/ecl-form-group/package.json @@ -13,8 +13,8 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-component-form": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-component-form": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-gallery/package.json b/src/components/ecl-gallery/package.json index 3d74e2a..2d6e172 100644 --- a/src/components/ecl-gallery/package.json +++ b/src/components/ecl-gallery/package.json @@ -14,9 +14,9 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-component-gallery": "3.11.0", - "@ecl/vanilla-layout-grid": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-component-gallery": "3.13.0", + "@ecl/vanilla-layout-grid": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-grid/package.json b/src/components/ecl-grid/package.json index ef70b4a..fc43dfd 100644 --- a/src/components/ecl-grid/package.json +++ b/src/components/ecl-grid/package.json @@ -13,8 +13,8 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-layout-grid": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-layout-grid": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-hero-banner/package.json b/src/components/ecl-hero-banner/package.json index c97b87c..1f6e5c6 100644 --- a/src/components/ecl-hero-banner/package.json +++ b/src/components/ecl-hero-banner/package.json @@ -13,8 +13,8 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-component-hero-banner": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-component-hero-banner": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-icon/package.json b/src/components/ecl-icon/package.json index 8b30483..914e2f5 100644 --- a/src/components/ecl-icon/package.json +++ b/src/components/ecl-icon/package.json @@ -14,11 +14,11 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/resources-ec-icons": "3.11.0", - "@ecl/resources-eu-icons": "3.11.0", - "@ecl/specs-component-icon": "3.11.0", - "@ecl/vanilla-component-icon": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/resources-ec-icons": "3.13.0", + "@ecl/resources-eu-icons": "3.13.0", + "@ecl/specs-component-icon": "3.13.0", + "@ecl/vanilla-component-icon": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-inpage-navigation/package.json b/src/components/ecl-inpage-navigation/package.json index 18011a6..b46997d 100644 --- a/src/components/ecl-inpage-navigation/package.json +++ b/src/components/ecl-inpage-navigation/package.json @@ -14,9 +14,9 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-component-inpage-navigation": "3.11.0", - "@ecl/vanilla-layout-grid": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-component-inpage-navigation": "3.13.0", + "@ecl/vanilla-layout-grid": "3.13.0", "cross-env": "7.0.3", "lorem-ipsum": "2.0.8" }, diff --git a/src/components/ecl-input/package.json b/src/components/ecl-input/package.json index 4a059c8..2bce07a 100644 --- a/src/components/ecl-input/package.json +++ b/src/components/ecl-input/package.json @@ -14,14 +14,14 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-component-button": "3.11.0", - "@ecl/vanilla-component-checkbox": "3.11.0", - "@ecl/vanilla-component-datepicker": "3.11.0", - "@ecl/vanilla-component-file-upload": "3.11.0", - "@ecl/vanilla-component-radio": "3.11.0", - "@ecl/vanilla-component-search-form": "3.11.0", - "@ecl/vanilla-component-text-input": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-component-button": "3.13.0", + "@ecl/vanilla-component-checkbox": "3.13.0", + "@ecl/vanilla-component-datepicker": "3.13.0", + "@ecl/vanilla-component-file-upload": "3.13.0", + "@ecl/vanilla-component-radio": "3.13.0", + "@ecl/vanilla-component-search-form": "3.13.0", + "@ecl/vanilla-component-text-input": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-label/package.json b/src/components/ecl-label/package.json index 976ae67..fa107c3 100644 --- a/src/components/ecl-label/package.json +++ b/src/components/ecl-label/package.json @@ -13,8 +13,8 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-component-label": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-component-label": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-link/package.json b/src/components/ecl-link/package.json index 2307cde..111bb79 100644 --- a/src/components/ecl-link/package.json +++ b/src/components/ecl-link/package.json @@ -13,11 +13,11 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/specs-component-icon": "3.11.0", - "@ecl/vanilla-component-button": "3.11.0", - "@ecl/vanilla-component-icon": "3.11.0", - "@ecl/vanilla-component-link": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/specs-component-icon": "3.13.0", + "@ecl/vanilla-component-button": "3.13.0", + "@ecl/vanilla-component-icon": "3.13.0", + "@ecl/vanilla-component-link": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-list-illustration/package.json b/src/components/ecl-list-illustration/package.json index 6d895c2..60ea307 100644 --- a/src/components/ecl-list-illustration/package.json +++ b/src/components/ecl-list-illustration/package.json @@ -13,8 +13,8 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-component-list-illustration": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-component-list-illustration": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-media-container/package.json b/src/components/ecl-media-container/package.json index d7c8de7..850417e 100644 --- a/src/components/ecl-media-container/package.json +++ b/src/components/ecl-media-container/package.json @@ -14,9 +14,9 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-component-media-container": "3.11.0", - "@ecl/vanilla-layout-grid": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-component-media-container": "3.13.0", + "@ecl/vanilla-layout-grid": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-menu/package.json b/src/components/ecl-menu/package.json index 1ab60b8..21a816d 100644 --- a/src/components/ecl-menu/package.json +++ b/src/components/ecl-menu/package.json @@ -14,9 +14,9 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-component-menu": "3.11.0", - "@ecl/vanilla-layout-grid": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-component-menu": "3.13.0", + "@ecl/vanilla-layout-grid": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-message/package.json b/src/components/ecl-message/package.json index 9663366..ddc33f8 100644 --- a/src/components/ecl-message/package.json +++ b/src/components/ecl-message/package.json @@ -14,11 +14,11 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/resources-ec-icons": "3.11.0", - "@ecl/resources-eu-icons": "3.11.0", - "@ecl/vanilla-component-icon": "3.11.0", - "@ecl/vanilla-component-message": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/resources-ec-icons": "3.13.0", + "@ecl/resources-eu-icons": "3.13.0", + "@ecl/vanilla-component-icon": "3.13.0", + "@ecl/vanilla-component-message": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-modal/package.json b/src/components/ecl-modal/package.json index 77ffa84..fccc69e 100644 --- a/src/components/ecl-modal/package.json +++ b/src/components/ecl-modal/package.json @@ -14,9 +14,9 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-component-modal": "3.11.0", - "@ecl/vanilla-layout-grid": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-component-modal": "3.13.0", + "@ecl/vanilla-layout-grid": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-navigation-list/package.json b/src/components/ecl-navigation-list/package.json index 135192f..364aa40 100644 --- a/src/components/ecl-navigation-list/package.json +++ b/src/components/ecl-navigation-list/package.json @@ -13,8 +13,8 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-component-navigation-list": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-component-navigation-list": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-news-ticker/package.json b/src/components/ecl-news-ticker/package.json index 107a4de..f7d2506 100644 --- a/src/components/ecl-news-ticker/package.json +++ b/src/components/ecl-news-ticker/package.json @@ -14,8 +14,8 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-component-news-ticker": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-component-news-ticker": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-page-banner/package.json b/src/components/ecl-page-banner/package.json index f69da82..1d29c8d 100644 --- a/src/components/ecl-page-banner/package.json +++ b/src/components/ecl-page-banner/package.json @@ -13,8 +13,8 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-component-page-banner": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-component-page-banner": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-page-header/package.json b/src/components/ecl-page-header/package.json index 840c982..ab42c44 100644 --- a/src/components/ecl-page-header/package.json +++ b/src/components/ecl-page-header/package.json @@ -13,9 +13,9 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-component-page-header": "3.11.0", - "@ecl/vanilla-layout-grid": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-component-page-header": "3.13.0", + "@ecl/vanilla-layout-grid": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-pagination/package.json b/src/components/ecl-pagination/package.json index b507667..0d160d1 100644 --- a/src/components/ecl-pagination/package.json +++ b/src/components/ecl-pagination/package.json @@ -13,8 +13,8 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-component-pagination": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-component-pagination": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-picture/package.json b/src/components/ecl-picture/package.json index b937225..e76a73f 100644 --- a/src/components/ecl-picture/package.json +++ b/src/components/ecl-picture/package.json @@ -13,7 +13,7 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", + "@ecl/builder": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-popover/package.json b/src/components/ecl-popover/package.json index 6ba0156..9adc1c9 100644 --- a/src/components/ecl-popover/package.json +++ b/src/components/ecl-popover/package.json @@ -14,9 +14,9 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-component-link": "3.11.0", - "@ecl/vanilla-component-popover": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-component-link": "3.13.0", + "@ecl/vanilla-component-popover": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-range/package.json b/src/components/ecl-range/package.json index 03d6d68..26f6ae5 100644 --- a/src/components/ecl-range/package.json +++ b/src/components/ecl-range/package.json @@ -14,8 +14,8 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-component-range": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-component-range": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-rating-field/package.json b/src/components/ecl-rating-field/package.json index 3694ae1..12f43e8 100644 --- a/src/components/ecl-rating-field/package.json +++ b/src/components/ecl-rating-field/package.json @@ -13,8 +13,8 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-component-rating-field": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-component-rating-field": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-search-form/package.json b/src/components/ecl-search-form/package.json index 4e2371e..0fd29a5 100644 --- a/src/components/ecl-search-form/package.json +++ b/src/components/ecl-search-form/package.json @@ -13,8 +13,8 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-component-search-form": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-component-search-form": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-select/package.json b/src/components/ecl-select/package.json index a9e32d5..f5503e7 100644 --- a/src/components/ecl-select/package.json +++ b/src/components/ecl-select/package.json @@ -14,8 +14,8 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-component-select": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-component-select": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-site-header/package.json b/src/components/ecl-site-header/package.json index cb19c33..1f50734 100644 --- a/src/components/ecl-site-header/package.json +++ b/src/components/ecl-site-header/package.json @@ -15,11 +15,11 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/resources-ec-logo": "3.11.0", - "@ecl/resources-eu-logo": "3.11.0", - "@ecl/vanilla-component-button": "3.11.0", - "@ecl/vanilla-component-site-header": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/resources-ec-logo": "3.13.0", + "@ecl/resources-eu-logo": "3.13.0", + "@ecl/vanilla-component-button": "3.13.0", + "@ecl/vanilla-component-site-header": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-social-media-follow/package.json b/src/components/ecl-social-media-follow/package.json index fb65f5e..a7a88b7 100644 --- a/src/components/ecl-social-media-follow/package.json +++ b/src/components/ecl-social-media-follow/package.json @@ -14,9 +14,9 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-component-social-media-follow": "3.11.0", - "@ecl/vanilla-component-social-media-share": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-component-social-media-follow": "3.13.0", + "@ecl/vanilla-component-social-media-share": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-social-media-share/package.json b/src/components/ecl-social-media-share/package.json index a32c6dc..9d9a5c2 100644 --- a/src/components/ecl-social-media-share/package.json +++ b/src/components/ecl-social-media-share/package.json @@ -14,11 +14,11 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/resources-social-media-icons": "3.11.0", - "@ecl/specs-component-icon": "3.11.0", - "@ecl/vanilla-component-icon": "3.11.0", - "@ecl/vanilla-component-social-media-share": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/resources-social-media-icons": "3.13.0", + "@ecl/specs-component-icon": "3.13.0", + "@ecl/vanilla-component-icon": "3.13.0", + "@ecl/vanilla-component-social-media-share": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-spacing/package.json b/src/components/ecl-spacing/package.json index 7059bcb..d67b6cd 100644 --- a/src/components/ecl-spacing/package.json +++ b/src/components/ecl-spacing/package.json @@ -13,8 +13,8 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-utility-spacing": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-utility-spacing": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-spinner/package.json b/src/components/ecl-spinner/package.json index a71cad2..99f3729 100644 --- a/src/components/ecl-spinner/package.json +++ b/src/components/ecl-spinner/package.json @@ -13,8 +13,8 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-component-spinner": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-component-spinner": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-tag/package.json b/src/components/ecl-tag/package.json index fb6e434..d454f04 100644 --- a/src/components/ecl-tag/package.json +++ b/src/components/ecl-tag/package.json @@ -13,12 +13,12 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/resources-ec-icons": "3.11.0", - "@ecl/resources-eu-icons": "3.11.0", - "@ecl/specs-component-icon": "3.11.0", - "@ecl/vanilla-component-icon": "3.11.0", - "@ecl/vanilla-component-tag": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/resources-ec-icons": "3.13.0", + "@ecl/resources-eu-icons": "3.13.0", + "@ecl/specs-component-icon": "3.13.0", + "@ecl/vanilla-component-icon": "3.13.0", + "@ecl/vanilla-component-tag": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-text/package.json b/src/components/ecl-text/package.json index 0b5cc11..ca0a030 100644 --- a/src/components/ecl-text/package.json +++ b/src/components/ecl-text/package.json @@ -13,8 +13,8 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-utility-typography": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-utility-typography": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-textarea/package.json b/src/components/ecl-textarea/package.json index 4a6397c..dd4c5de 100644 --- a/src/components/ecl-textarea/package.json +++ b/src/components/ecl-textarea/package.json @@ -13,8 +13,8 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-component-text-area": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-component-text-area": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/components/ecl-timeline/package.json b/src/components/ecl-timeline/package.json index f1ea6b2..acc0225 100644 --- a/src/components/ecl-timeline/package.json +++ b/src/components/ecl-timeline/package.json @@ -14,8 +14,8 @@ "prepublish": "npm run build" }, "devDependencies": { - "@ecl/builder": "3.11.0", - "@ecl/vanilla-component-timeline": "3.11.0", + "@ecl/builder": "3.13.0", + "@ecl/vanilla-component-timeline": "3.13.0", "cross-env": "7.0.3" }, "repository": { diff --git a/src/plugins/ckeditor5-ecl-webcomponents/package.json b/src/plugins/ckeditor5-ecl-webcomponents/package.json index d229517..6c5bb1a 100755 --- a/src/plugins/ckeditor5-ecl-webcomponents/package.json +++ b/src/plugins/ckeditor5-ecl-webcomponents/package.json @@ -30,7 +30,7 @@ "plugin" ], "devDependencies": { - "@ecl/builder": "3.11.0", + "@ecl/builder": "3.13.0", "ncp": "2.0.0", "npm-run-all": "4.1.5", "rimraf": "5.0.5" From de7017a7c4a5ed6fc5e1a2a91b9cedf7ce6ce5f9 Mon Sep 17 00:00:00 2001 From: planctus Date: Wed, 17 Jan 2024 14:39:19 +0200 Subject: [PATCH 2/8] chore: Updating patches to ECL 3.13.0 --- .nvmrc | 2 +- patches/@ecl+builder+3.13.0.patch | 67 +++++++++++++++++++ patches/@ecl+theme-dev+3.13.0.patch | 19 ++++++ ...l+vanilla-component-accordion+3.13.0.patch | 29 ++++++++ ...@ecl+vanilla-component-button+3.13.0.patch | 15 +++++ .../@ecl+vanilla-component-card+3.13.0.patch | 12 ++++ ...cl+vanilla-component-carousel+3.13.0.patch | 13 ++++ ...lla-component-category-filter+3.13.0.patch | 48 +++++++++++++ ...nilla-component-content-block+3.13.0.patch | 13 ++++ 9 files changed, 217 insertions(+), 1 deletion(-) create mode 100644 patches/@ecl+builder+3.13.0.patch create mode 100644 patches/@ecl+theme-dev+3.13.0.patch create mode 100644 patches/@ecl+vanilla-component-accordion+3.13.0.patch create mode 100644 patches/@ecl+vanilla-component-button+3.13.0.patch create mode 100644 patches/@ecl+vanilla-component-card+3.13.0.patch create mode 100644 patches/@ecl+vanilla-component-carousel+3.13.0.patch create mode 100644 patches/@ecl+vanilla-component-category-filter+3.13.0.patch create mode 100644 patches/@ecl+vanilla-component-content-block+3.13.0.patch diff --git a/.nvmrc b/.nvmrc index 8ddbc0c..bb52a16 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v18.16.0 +v18.18.2 diff --git a/patches/@ecl+builder+3.13.0.patch b/patches/@ecl+builder+3.13.0.patch new file mode 100644 index 0000000..76ad8f3 --- /dev/null +++ b/patches/@ecl+builder+3.13.0.patch @@ -0,0 +1,67 @@ +diff --git a/node_modules/@ecl/builder/bin/build.js b/node_modules/@ecl/builder/bin/build.js +index edd25b9..0c98c60 100755 +--- a/node_modules/@ecl/builder/bin/build.js ++++ b/node_modules/@ecl/builder/bin/build.js +@@ -62,7 +62,7 @@ program + .action(() => { + const config = loadConfig(program.config); + config.copy.forEach((conf) => +- copyFiles(conf.patterns || '**', conf.from, conf.to), ++ copyFiles(conf.from || "**", conf.to, conf.options), + ); + }); + +diff --git a/node_modules/@ecl/builder/scripts/copy.js b/node_modules/@ecl/builder/scripts/copy.js +index 30019d2..3bfefde 100644 +--- a/node_modules/@ecl/builder/scripts/copy.js ++++ b/node_modules/@ecl/builder/scripts/copy.js +@@ -1,23 +1,32 @@ +-const fs = require('fs'); +-const path = require('path'); +-const { promisify } = require('util'); +-const { ncp } = require('ncp'); +-const globby = require('globby'); ++/** ++ * Copy files. ++ * ++ * @param {string} from - Path to a folder or file. ++ * @param {string} to - String to prefix, suffix or replace the current file name. ++ * @param {object} options - Object ++ * ++ * Example config object: { ++ * copy: [ ++ * { ++ * from: [path.resolve(nodeModules, "myfile.js")], ++ * to: path.resolve(outputFolder, "js"), ++ * options: { up: true }, ++ * }, ++ * ], ++ */ + +-const copy = promisify(ncp); + +-module.exports = (patterns, from, to) => { +- const executor = async () => { +- const paths = await globby(patterns, { nodir: true, cwd: from }); +- +- paths.map(async (file) => { +- const input = path.resolve(from, file); +- const dest = path.resolve(to, file); ++const fs = require("fs"); ++const path = require("path"); ++const copy = require("copyfiles"); + +- fs.mkdirSync(path.dirname(dest), { recursive: true }); +- await copy(input, dest); +- }); ++module.exports = (from, to, options) => { ++ const executor = async () => { ++ from.push(to); ++ await copy(from, options, function (err) { ++ if (err) console.error(err); ++ }) + }; + + executor(); +-}; ++} diff --git a/patches/@ecl+theme-dev+3.13.0.patch b/patches/@ecl+theme-dev+3.13.0.patch new file mode 100644 index 0000000..802d397 --- /dev/null +++ b/patches/@ecl+theme-dev+3.13.0.patch @@ -0,0 +1,19 @@ +diff --git a/node_modules/@ecl/theme-dev/maps/color.scss b/node_modules/@ecl/theme-dev/maps/color.scss +index 0c6ca02..42ecd0b 100644 +--- a/node_modules/@ecl/theme-dev/maps/color.scss ++++ b/node_modules/@ecl/theme-dev/maps/color.scss +@@ -32,12 +32,14 @@ $color: ( + 'blue-120': #003776, + 'blue-110': #003d84, + 'blue-100': #004494, ++ 'blue-80': #3e6cd5, + 'blue-75': #4073af, + 'blue-50': #7fa1c9, + 'blue-25': #bfd0e4, + 'blue-5': #f2f5f9, + 'green-100': #467a39, + 'grey-100': #404040, ++ 'grey-140': #171a22, + 'grey-75': #707070, + 'grey-50': #9f9f9f, + 'grey-25': #cfcfcf, diff --git a/patches/@ecl+vanilla-component-accordion+3.13.0.patch b/patches/@ecl+vanilla-component-accordion+3.13.0.patch new file mode 100644 index 0000000..ddc60b4 --- /dev/null +++ b/patches/@ecl+vanilla-component-accordion+3.13.0.patch @@ -0,0 +1,29 @@ +diff --git a/node_modules/@ecl/vanilla-component-accordion/accordion.js b/node_modules/@ecl/vanilla-component-accordion/accordion.js +index 08c5b16..cd41037 100644 +--- a/node_modules/@ecl/vanilla-component-accordion/accordion.js ++++ b/node_modules/@ecl/vanilla-component-accordion/accordion.js +@@ -138,14 +138,21 @@ export class Accordion { + if (iconElement) { + const useNode = queryOne('use', iconElement); + if (useNode) { +- const originalXlinkHref = useNode.getAttribute('xlink:href'); +- let newXlinkHref = ''; ++ var originalXlinkHref = useNode.getAttribute('xlink:href'); ++ if (!originalXlinkHref) { ++ originalXlinkHref = useNode.getAttribute('href'); ++ } ++ var newXlinkHref = ''; + if (isExpanded) { + newXlinkHref = originalXlinkHref.replace('minus', 'plus'); + } else { + newXlinkHref = originalXlinkHref.replace('plus', 'minus'); + } +- useNode.setAttribute('xlink:href', newXlinkHref); ++ if (useNode.getAttribute('xlink:href')) { ++ useNode.setAttribute('xlink:href', newXlinkHref); ++ } else { ++ useNode.setAttribute('href', newXlinkHref); ++ } + } + } + diff --git a/patches/@ecl+vanilla-component-button+3.13.0.patch b/patches/@ecl+vanilla-component-button+3.13.0.patch new file mode 100644 index 0000000..dbb7ab5 --- /dev/null +++ b/patches/@ecl+vanilla-component-button+3.13.0.patch @@ -0,0 +1,15 @@ +diff --git a/node_modules/@ecl/vanilla-component-button/_button.scss b/node_modules/@ecl/vanilla-component-button/_button.scss +index 4531e25..8698461 100644 +--- a/node_modules/@ecl/vanilla-component-button/_button.scss ++++ b/node_modules/@ecl/vanilla-component-button/_button.scss +@@ -67,10 +67,6 @@ $_shadow-hover: null !default; + margin-inline-start: map.get(theme.$spacing, 'xs'); + } + +-.ecl-button__icon:only-child { +- margin: 0; +-} +- + /** + * Primary + */ diff --git a/patches/@ecl+vanilla-component-card+3.13.0.patch b/patches/@ecl+vanilla-component-card+3.13.0.patch new file mode 100644 index 0000000..292d595 --- /dev/null +++ b/patches/@ecl+vanilla-component-card+3.13.0.patch @@ -0,0 +1,12 @@ +diff --git a/node_modules/@ecl/vanilla-component-card/_card.scss b/node_modules/@ecl/vanilla-component-card/_card.scss +index 0c0e435..9722633 100644 +--- a/node_modules/@ecl/vanilla-component-card/_card.scss ++++ b/node_modules/@ecl/vanilla-component-card/_card.scss +@@ -23,7 +23,6 @@ $_body-padding: null !default; + border-radius: $_border-radius; + box-shadow: $_shadow; + box-sizing: border-box; +- height: 100%; + margin: 0; + overflow: hidden; + overflow-wrap: break-word; diff --git a/patches/@ecl+vanilla-component-carousel+3.13.0.patch b/patches/@ecl+vanilla-component-carousel+3.13.0.patch new file mode 100644 index 0000000..71f59ac --- /dev/null +++ b/patches/@ecl+vanilla-component-carousel+3.13.0.patch @@ -0,0 +1,13 @@ +diff --git a/node_modules/@ecl/vanilla-component-carousel/carousel.js b/node_modules/@ecl/vanilla-component-carousel/carousel.js +index f37281d..6b799b9 100644 +--- a/node_modules/@ecl/vanilla-component-carousel/carousel.js ++++ b/node_modules/@ecl/vanilla-component-carousel/carousel.js +@@ -136,6 +136,8 @@ export class Carousel { + this.direction = getComputedStyle(this.element).direction; + + this.slides = queryAll(this.slideClass, this.element); ++ this.slidesContainer.innerHTML = ''; ++ this.slidesContainer.append(...this.slides); + this.total = this.slides.length; + + // If only one slide, don't initialize carousel and hide controls diff --git a/patches/@ecl+vanilla-component-category-filter+3.13.0.patch b/patches/@ecl+vanilla-component-category-filter+3.13.0.patch new file mode 100644 index 0000000..1816f48 --- /dev/null +++ b/patches/@ecl+vanilla-component-category-filter+3.13.0.patch @@ -0,0 +1,48 @@ +diff --git a/node_modules/@ecl/vanilla-component-category-filter/category-filter.js b/node_modules/@ecl/vanilla-component-category-filter/category-filter.js +index a1d3c09..d48617c 100644 +--- a/node_modules/@ecl/vanilla-component-category-filter/category-filter.js ++++ b/node_modules/@ecl/vanilla-component-category-filter/category-filter.js +@@ -96,21 +96,24 @@ export class CategoryFilter { + + const treeItem = e.target.closest('.ecl-category-filter__item'); + ++ const liItem = treeItem.closest('.ecl-category-filter__list-item'); ++ const ariaExpanded = liItem.getAttribute('aria-expanded'); ++ + if (treeItem.classList.contains('ecl-category-filter__item--level-1')) { +- this.items.forEach((item) => { ++ this.items.forEach(function (item) { + if (item !== treeItem) { +- item.parentElement.setAttribute('aria-expanded', 'false'); ++ liItem.setAttribute('aria-expanded', 'false'); + } + }); + +- if (treeItem.parentElement.getAttribute('aria-expanded') === 'true') { +- treeItem.parentElement.setAttribute('aria-expanded', 'false'); +- treeItem.classList.remove('ecl-category-filter__item--current'); ++ if (ariaExpanded === 'true') { ++ liItem.setAttribute('aria-expanded', 'false'); ++ liItem.classList.remove('ecl-category-filter__item--current'); + return; + } + } + +- this.items.forEach((item) => { ++ this.items.forEach(function (item) { + if (item === treeItem) { + item.classList.add('ecl-category-filter__item--current'); + } else { +@@ -118,11 +121,7 @@ export class CategoryFilter { + } + }); + +- const ariaExpanded = treeItem.parentElement.getAttribute('aria-expanded'); +- treeItem.parentElement.setAttribute( +- 'aria-expanded', +- ariaExpanded === 'false' ? 'true' : 'false', +- ); ++ liItem.setAttribute('aria-expanded', ariaExpanded === 'false' ? 'true' : 'false'); + } + } + diff --git a/patches/@ecl+vanilla-component-content-block+3.13.0.patch b/patches/@ecl+vanilla-component-content-block+3.13.0.patch new file mode 100644 index 0000000..9a9a60d --- /dev/null +++ b/patches/@ecl+vanilla-component-content-block+3.13.0.patch @@ -0,0 +1,13 @@ +diff --git a/node_modules/@ecl/vanilla-component-content-block/content-block.js b/node_modules/@ecl/vanilla-component-content-block/content-block.js +index e231bd7..72de3e9 100644 +--- a/node_modules/@ecl/vanilla-component-content-block/content-block.js ++++ b/node_modules/@ecl/vanilla-component-content-block/content-block.js +@@ -77,7 +77,7 @@ export class ContentBlock { + } + + this.title = queryOne(this.titleSelector, this.element); +- this.linkEl = this.title ? queryOne('a', this.title) : false; ++ this.linkEl = this.title.nodeName === 'A' ? this.title : queryOne('a', this.title); + if (this.linkEl) { + this.picture.style.cursor = 'pointer'; + const img = queryOne('img', this.picture); From 36d1d14aa194eec93209eb270c480e7d331af377 Mon Sep 17 00:00:00 2001 From: planctus Date: Thu, 18 Jan 2024 11:51:29 +0200 Subject: [PATCH 3/8] feat(form): Accessibility improvements for all the form fields --- src/components.d.ts | 12 +++++-- .../ecl-datepicker/ecl-datepicker.stories.ts | 2 ++ .../ecl-datepicker/ecl-datepicker.tsx | 15 ++++++++ .../ecl-file-upload.stories.ts | 2 ++ .../ecl-file-upload/ecl-file-upload.tsx | 14 ++++++++ .../ecl-form-group/ecl-form-group.tsx | 30 +++++++++++----- src/components/ecl-form-group/readme.md | 34 +++++++++++-------- src/components/ecl-input/ecl-input.stories.ts | 4 +++ src/components/ecl-input/ecl-input.tsx | 29 +++++++++++++--- src/components/ecl-input/readme.md | 1 - .../__snapshots__/ecl-input.spec.tsx.snap | 10 +++--- src/components/ecl-range/ecl-range.stories.ts | 2 ++ src/components/ecl-range/ecl-range.tsx | 14 ++++++++ .../__snapshots__/ecl-range.spec.tsx.snap | 10 +++--- .../ecl-rating-field.stories.ts | 3 +- .../ecl-search-form.spec.tsx.snap | 4 +-- .../ecl-select/ecl-select.stories.ts | 15 ++++++-- src/components/ecl-select/ecl-select.tsx | 14 ++++++++ .../__snapshots__/ecl-select.spec.tsx.snap | 10 +++--- .../ecl-site-header.spec.tsx.snap | 4 +-- .../ecl-textarea/ecl-textarea.stories.ts | 3 +- src/components/ecl-textarea/ecl-textarea.tsx | 21 +++++++++++- src/components/ecl-textarea/readme.md | 1 + .../__snapshots__/ecl-textarea.spec.tsx.snap | 8 ++--- 24 files changed, 204 insertions(+), 58 deletions(-) diff --git a/src/components.d.ts b/src/components.d.ts index ae81571..a27e352 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -284,6 +284,8 @@ export namespace Components { "theme": string; } interface EclFormGroup { + "ariaLabelOptional": string; + "ariaLabelRequired": string; "helperId": string; "helperText": string; "invalid": boolean; @@ -291,11 +293,13 @@ export namespace Components { "invalidText": string; "label": string; "labelClass": string; + "labelTag": string; "name": string; "optionalText": string; "required": boolean; "requiredText": string; "styleClass": string; + "tag": string; "theme": string; } interface EclGallery { @@ -382,7 +386,6 @@ export namespace Components { "disabled": boolean; "eclScript": boolean; "hasChanged": boolean; - "helperId": string; "helperText": string; "inputClass": string; "inputId": string; @@ -762,6 +765,7 @@ export namespace Components { interface EclTextarea { "disabled": boolean; "hasChanged": boolean; + "inputId": string; "invalid": boolean; "isFocused": boolean; "name": string; @@ -1706,6 +1710,8 @@ declare namespace LocalJSX { "theme"?: string; } interface EclFormGroup { + "ariaLabelOptional"?: string; + "ariaLabelRequired"?: string; "helperId"?: string; "helperText"?: string; "invalid"?: boolean; @@ -1713,11 +1719,13 @@ declare namespace LocalJSX { "invalidText"?: string; "label"?: string; "labelClass"?: string; + "labelTag"?: string; "name"?: string; "optionalText"?: string; "required"?: boolean; "requiredText"?: string; "styleClass"?: string; + "tag"?: string; "theme"?: string; } interface EclGallery { @@ -1804,7 +1812,6 @@ declare namespace LocalJSX { "disabled"?: boolean; "eclScript"?: boolean; "hasChanged"?: boolean; - "helperId"?: string; "helperText"?: string; "inputClass"?: string; "inputId"?: string; @@ -2196,6 +2203,7 @@ declare namespace LocalJSX { interface EclTextarea { "disabled"?: boolean; "hasChanged"?: boolean; + "inputId"?: string; "invalid"?: boolean; "isFocused"?: boolean; "name"?: string; diff --git a/src/components/ecl-datepicker/ecl-datepicker.stories.ts b/src/components/ecl-datepicker/ecl-datepicker.stories.ts index be4ca5e..3201623 100644 --- a/src/components/ecl-datepicker/ecl-datepicker.stories.ts +++ b/src/components/ecl-datepicker/ecl-datepicker.stories.ts @@ -97,6 +97,8 @@ const Template = args => disabled=${args.disabled} invalid-text="This is the error message" theme="${args.theme}" + aria-label-optional="Aria label optional" + aria-label-required="Aria label required" > disabled=${args.disabled} invalid-text="This is an error message" theme="${args.theme}" + aria-label-optional="Aria label optional" + aria-label-required="Aria label required" > { this.label ? - {this.label} - { this.required && this.requiredText ? - {this.requiredText} : '' - } + {this.required && this.requiredText ? ( + + {this.requiredText} + + ) : ''} { !this.required && this.optionalText ? - {this.optionalText} : '' + + {this.optionalText} : '' } - : '' + : '' } { this.helperText ?
: '' } - + ) } } \ No newline at end of file diff --git a/src/components/ecl-form-group/readme.md b/src/components/ecl-form-group/readme.md index 7f47dd7..83a4c77 100644 --- a/src/components/ecl-form-group/readme.md +++ b/src/components/ecl-form-group/readme.md @@ -7,21 +7,25 @@ ## Properties -| Property | Attribute | Description | Type | Default | -| -------------- | --------------- | ----------- | --------- | ----------- | -| `helperId` | `helper-id` | | `string` | `undefined` | -| `helperText` | `helper-text` | | `string` | `undefined` | -| `invalid` | `invalid` | | `boolean` | `false` | -| `invalidIcon` | `invalid-icon` | | `string` | `'error'` | -| `invalidText` | `invalid-text` | | `string` | `undefined` | -| `label` | `label` | | `string` | `undefined` | -| `labelClass` | `label-class` | | `string` | `undefined` | -| `name` | `name` | | `string` | `undefined` | -| `optionalText` | `optional-text` | | `string` | `undefined` | -| `required` | `required` | | `boolean` | `false` | -| `requiredText` | `required-text` | | `string` | `'*'` | -| `styleClass` | `style-class` | | `string` | `''` | -| `theme` | `theme` | | `string` | `'ec'` | +| Property | Attribute | Description | Type | Default | +| ------------------- | --------------------- | ----------- | --------- | ----------- | +| `ariaLabelOptional` | `aria-label-optional` | | `string` | `undefined` | +| `ariaLabelRequired` | `aria-label-required` | | `string` | `undefined` | +| `helperId` | `helper-id` | | `string` | `undefined` | +| `helperText` | `helper-text` | | `string` | `undefined` | +| `invalid` | `invalid` | | `boolean` | `false` | +| `invalidIcon` | `invalid-icon` | | `string` | `'error'` | +| `invalidText` | `invalid-text` | | `string` | `undefined` | +| `label` | `label` | | `string` | `undefined` | +| `labelClass` | `label-class` | | `string` | `undefined` | +| `labelTag` | `label-tag` | | `string` | `'label'` | +| `name` | `name` | | `string` | `undefined` | +| `optionalText` | `optional-text` | | `string` | `undefined` | +| `required` | `required` | | `boolean` | `false` | +| `requiredText` | `required-text` | | `string` | `'*'` | +| `styleClass` | `style-class` | | `string` | `''` | +| `tag` | `tag` | | `string` | `'div'` | +| `theme` | `theme` | | `string` | `'ec'` | ## Dependencies diff --git a/src/components/ecl-input/ecl-input.stories.ts b/src/components/ecl-input/ecl-input.stories.ts index cc7e207..1e18350 100644 --- a/src/components/ecl-input/ecl-input.stories.ts +++ b/src/components/ecl-input/ecl-input.stories.ts @@ -106,6 +106,10 @@ const Template = args => disabled=${args.disabled} invalid-text="This is an error message" theme="${args.theme}" + aria-label-optional="Aria label optional" + ${args.type === 'checkbox' || args.type === 'radio' ? `tag="${args.type === 'checkbox' || args.type === 'radio' ? 'fieldset' : ''}"` : ''} + ${args.type === 'checkbox' || args.type === 'radio' ? `label-tag="${args.type === 'checkbox' || args.type === 'radio' ? 'legend' : ''}"` : ''} + aria-label-required="Aria label required" > ; @Event() inputChange: EventEmitter; + componentDidRender() { + if (this.inputId) { + const group = this.el.closest('.ecl-form-group'); + if (group) { + const label = group.querySelector('.ecl-form-label'); + if (label) { + if (this.type !== 'radio' && this.type !== 'checkbox') { + label.setAttribute('for', this.inputId); + } + label.setAttribute('id', `${this.inputId}-label`); + } + const helper = group.querySelector('.ecl-help-block'); + if (helper) { + if (this.type !== 'radio' && this.type !== 'checkbox') { + helper.setAttribute('id', `${this.inputId}-helper`); + } + } + } + } + } + getClass(): string { const styleClasses = ['ecl-input', this.styleClass]; if (this.type === 'checkbox') { @@ -156,7 +177,7 @@ export class EclInput { { this.type === 'checkbox' && this.helperText ?
{this.helperText}
@@ -177,7 +198,7 @@ export class EclInput { { this.type === 'radio' && this.helperText ?
{this.helperText}
diff --git a/src/components/ecl-input/readme.md b/src/components/ecl-input/readme.md index 48727fe..19db242 100644 --- a/src/components/ecl-input/readme.md +++ b/src/components/ecl-input/readme.md @@ -13,7 +13,6 @@ | `disabled` | `disabled` | | `boolean` | `false` | | `eclScript` | `ecl-script` | | `boolean` | `false` | | `hasChanged` | `has-changed` | | `boolean` | `false` | -| `helperId` | `helper-id` | | `string` | `undefined` | | `helperText` | `helper-text` | | `string` | `undefined` | | `inputClass` | `input-class` | | `string` | `undefined` | | `inputId` | `input-id` | | `string` | `undefined` | diff --git a/src/components/ecl-input/test/__snapshots__/ecl-input.spec.tsx.snap b/src/components/ecl-input/test/__snapshots__/ecl-input.spec.tsx.snap index 22b4381..29fe157 100644 --- a/src/components/ecl-input/test/__snapshots__/ecl-input.spec.tsx.snap +++ b/src/components/ecl-input/test/__snapshots__/ecl-input.spec.tsx.snap @@ -3,14 +3,14 @@ exports[`ecl-input renders 1`] = ` -
- +
+
+
`; diff --git a/src/components/ecl-range/ecl-range.stories.ts b/src/components/ecl-range/ecl-range.stories.ts index 46070d3..f31cef8 100644 --- a/src/components/ecl-range/ecl-range.stories.ts +++ b/src/components/ecl-range/ecl-range.stories.ts @@ -116,6 +116,8 @@ const Template = args => disabled=${args.disabled} invalid-text="This is an error message" theme="${args.theme}" + aria-label-optional="Aria label optional" + aria-label-required="Aria label required" > -
- +
+
-
+ `; diff --git a/src/components/ecl-rating-field/ecl-rating-field.stories.ts b/src/components/ecl-rating-field/ecl-rating-field.stories.ts index 7e7e7bf..8725c9f 100644 --- a/src/components/ecl-rating-field/ecl-rating-field.stories.ts +++ b/src/components/ecl-rating-field/ecl-rating-field.stories.ts @@ -60,7 +60,6 @@ export default { const Template = (args) => ` required=${args.required} disabled="${args.disabled}" theme="${args.theme}" + aria-label-optional="Aria label optional" + aria-label-required="Aria label required" > -
+
-
+
diff --git a/src/components/ecl-select/ecl-select.stories.ts b/src/components/ecl-select/ecl-select.stories.ts index 9a23a0c..9a0b766 100644 --- a/src/components/ecl-select/ecl-select.stories.ts +++ b/src/components/ecl-select/ecl-select.stories.ts @@ -51,6 +51,14 @@ const getArgTypes = () => { category: 'Content', }, }, + selectId: { + name: 'select-id', + type: { name: 'string' }, + description: 'Id of the select', + table: { + category: 'Content', + }, + }, requiredText: { name: 'required-text', type: { name: 'string' }, @@ -153,7 +161,6 @@ export default { const Template = (args) => ` label="${args.label}" required=${args.required} disabled="${args.disabled}" + aria-label-optional="Aria label optional" + aria-label-required="Aria label required" > multiple-all-text="${args.multipleAllText}" multiple-clear-all-text="${args.multipleClearAllText}" ecl-script=${args.multiple} + select-id="custom-select" name="ecl-select" + value="Italy" theme="${args.theme}" width=${args.width} > @@ -184,7 +195,7 @@ const Template = (args) => - + diff --git a/src/components/ecl-select/ecl-select.tsx b/src/components/ecl-select/ecl-select.tsx index a392248..3c4d889 100644 --- a/src/components/ecl-select/ecl-select.tsx +++ b/src/components/ecl-select/ecl-select.tsx @@ -57,6 +57,19 @@ export class EclSelect { } componentDidLoad() { + if (this.selectId) { + const group = this.el.closest('.ecl-form-group'); + if (group) { + const label = group.querySelector('.ecl-form-label'); + if (label) { + label.setAttribute('id', `${this.selectId}-label`); + } + const helper = group.querySelector('.ecl-help-block'); + if (helper) { + helper.setAttribute('id', `${this.selectId}-helper`); + } + } + } if (this.eclScript && this.multiple) { // Load the ECL vanilla js if not already present. const src = getAssetPath('./build/scripts/ecl-select-vanilla.js'); @@ -111,6 +124,7 @@ export class EclSelect { return (
- +
`; diff --git a/src/components/ecl-site-header/test/__snapshots__/ecl-site-header.spec.tsx.snap b/src/components/ecl-site-header/test/__snapshots__/ecl-site-header.spec.tsx.snap index 3fbd8e9..22477dd 100644 --- a/src/components/ecl-site-header/test/__snapshots__/ecl-site-header.spec.tsx.snap +++ b/src/components/ecl-site-header/test/__snapshots__/ecl-site-header.spec.tsx.snap @@ -231,9 +231,9 @@ exports[`ecl-site-header renders 1`] = `