@eui/ecl 21.3.2 → 21.3.3-snapshot-1782299250059
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/i18n-ecl/bg.json +1 -2
- package/assets/i18n-ecl/cs.json +1 -2
- package/assets/i18n-ecl/da.json +1 -2
- package/assets/i18n-ecl/de.json +1 -2
- package/assets/i18n-ecl/el.json +1 -2
- package/assets/i18n-ecl/en.json +1 -2
- package/assets/i18n-ecl/es.json +1 -2
- package/assets/i18n-ecl/et.json +66 -67
- package/assets/i18n-ecl/fi.json +47 -48
- package/assets/i18n-ecl/fr.json +1 -2
- package/assets/i18n-ecl/ga.json +3 -4
- package/assets/i18n-ecl/hr.json +59 -60
- package/assets/i18n-ecl/hu.json +1 -2
- package/assets/i18n-ecl/it.json +1 -2
- package/assets/i18n-ecl/lt.json +95 -96
- package/assets/i18n-ecl/lv.json +1 -2
- package/assets/i18n-ecl/mt.json +1 -2
- package/assets/i18n-ecl/nl.json +1 -2
- package/assets/i18n-ecl/pl.json +105 -106
- package/assets/i18n-ecl/pt.json +1 -2
- package/assets/i18n-ecl/ro.json +1 -2
- package/assets/i18n-ecl/sk.json +1 -2
- package/assets/i18n-ecl/sl.json +48 -49
- package/assets/i18n-ecl/sv.json +93 -94
- package/components/ecl-animated-numbers/package.json +4 -0
- package/components/ecl-page-summary/package.json +4 -0
- package/components/ecl-text-media/package.json +4 -0
- package/docs/changelog.html +32 -0
- package/docs/components/EclAccordionSummaryComponent.html +2 -2
- package/docs/components/EclAddToCalendarComponent.html +2 -2
- package/docs/components/EclAnimatedNumbersComponent.html +625 -0
- package/docs/components/EclAnimatedNumbersItemComponent.html +625 -0
- package/docs/components/EclAppComponent.html +2 -2
- package/docs/components/EclBannerComponent.html +2 -2
- package/docs/components/EclBlockquoteComponent.html +2 -2
- package/docs/components/EclBreadcrumbComponent.html +2 -2
- package/docs/components/EclBreadcrumbSegmentComponent.html +2 -2
- package/docs/components/EclButtonComponent.html +2 -2
- package/docs/components/EclCardBodyComponent.html +2 -2
- package/docs/components/EclCardComponent.html +2 -2
- package/docs/components/EclCarouselComponent.html +2 -2
- package/docs/components/EclCarouselItemComponent.html +2 -2
- package/docs/components/EclCategoryFilterComponent.html +2 -2
- package/docs/components/EclCategoryFilterItemComponent.html +2 -2
- package/docs/components/EclCategoryFilterListComponent.html +2 -2
- package/docs/components/EclCheckboxHelpComponent.html +2 -2
- package/docs/components/EclCheckboxLabelComponent.html +2 -2
- package/docs/components/EclContentBlockComponent.html +2 -2
- package/docs/components/EclContentItemComponent.html +2 -2
- package/docs/components/EclDateBlockComponent.html +2 -2
- package/docs/components/EclDescriptionListDefinitionComponent.html +2 -2
- package/docs/components/EclExpandableComponent.html +2 -2
- package/docs/components/EclFactFiguresComponent.html +2 -2
- package/docs/components/EclFactFiguresItemComponent.html +2 -2
- package/docs/components/EclFactFiguresViewAllComponent.html +2 -2
- package/docs/components/EclFeaturedComponent.html +2 -2
- package/docs/components/EclFeaturedItemComponent.html +2 -2
- package/docs/components/EclFeaturedItemDescriptionComponent.html +2 -2
- package/docs/components/EclFileComponent.html +2 -2
- package/docs/components/EclFileItemComponent.html +2 -2
- package/docs/components/EclFileItemsComponent.html +2 -2
- package/docs/components/EclFileTaxonomyComponent.html +2 -2
- package/docs/components/EclFormGroupComponent.html +2 -2
- package/docs/components/EclFormLabelComponent.html +2 -2
- package/docs/components/EclGalleryComponent.html +2 -2
- package/docs/components/EclGalleryFooterComponent.html +2 -2
- package/docs/components/EclGalleryItemComponent.html +2 -2
- package/docs/components/EclIconComponent.html +2 -2
- package/docs/components/EclIndicatorComponent-1.html +2 -2
- package/docs/components/EclIndicatorComponent.html +2 -2
- package/docs/components/EclInpageNavigationComponent.html +2 -2
- package/docs/components/EclInpageNavigationItemComponent.html +2 -2
- package/docs/components/EclListIllustrationComponent.html +2 -2
- package/docs/components/EclListIllustrationItemComponent.html +2 -2
- package/docs/components/EclLoadingIndicatorComponent.html +2 -2
- package/docs/components/EclMediaContainerComponent.html +189 -103
- package/docs/components/EclMegaMenuComponent.html +2 -2
- package/docs/components/EclMegaMenuFeaturedComponent.html +2 -2
- package/docs/components/EclMegaMenuInfoComponent.html +2 -2
- package/docs/components/EclMegaMenuItemComponent.html +2 -2
- package/docs/components/EclMegaMenuSubitemComponent.html +2 -2
- package/docs/components/EclMenuComponent.html +2 -2
- package/docs/components/EclMenuItemComponent.html +2 -2
- package/docs/components/EclMenuMegaComponent.html +2 -2
- package/docs/components/EclMenuMegaItemComponent.html +2 -2
- package/docs/components/EclModalBodyComponent.html +2 -2
- package/docs/components/EclModalComponent.html +2 -2
- package/docs/components/EclModalFooterComponent.html +2 -2
- package/docs/components/EclModalHeaderComponent.html +2 -2
- package/docs/components/EclMultiselectComponent.html +2 -2
- package/docs/components/EclMultiselectDropdownComponent.html +2 -2
- package/docs/components/EclMultiselectInputComponent.html +2 -2
- package/docs/components/EclMultiselectOptgroupComponent.html +2 -2
- package/docs/components/EclMultiselectOptionComponent.html +2 -2
- package/docs/components/EclNavigationListComponent.html +2 -2
- package/docs/components/EclNavigationListItemComponent.html +2 -2
- package/docs/components/EclNewsTickerComponent.html +2 -2
- package/docs/components/EclNewsTickerItemComponent.html +2 -2
- package/docs/components/EclNotificationComponent.html +2 -2
- package/docs/components/EclPageHeaderComponent.html +2 -2
- package/docs/components/EclPageHeaderDescriptionContainerComponent.html +2 -2
- package/docs/components/EclPageHeaderExpandableComponent.html +2 -2
- package/docs/components/EclPageHeaderNextComponent.html +2 -2
- package/docs/components/EclPageHeaderSectionComponent.html +2 -2
- package/docs/components/EclPageHeaderSectionInfoComponent.html +2 -2
- package/docs/components/EclPageSummaryComponent.html +364 -0
- package/docs/components/EclPaginationComponent.html +2 -2
- package/docs/components/EclPaginationItemComponent.html +2 -2
- package/docs/components/EclPopoverComponent.html +2 -2
- package/docs/components/EclQuizCardComponent.html +71 -402
- package/docs/components/EclQuizComponent.html +10 -137
- package/docs/components/EclRadioHelpComponent.html +2 -2
- package/docs/components/EclRadioLabelComponent.html +2 -2
- package/docs/components/EclRangeBubbleComponent.html +2 -2
- package/docs/components/EclRangeValueComponent.html +2 -2
- package/docs/components/EclRatingFieldComponent.html +2 -2
- package/docs/components/EclSearchFormComponent.html +2 -2
- package/docs/components/EclSelectContainerComponent.html +2 -2
- package/docs/components/EclSiteFooterComponent.html +2 -10
- package/docs/components/EclSiteFooterCoownerComponent.html +2 -2
- package/docs/components/EclSiteFooterCoreComponent.html +2 -2
- package/docs/components/EclSiteFooterFixedContentEUComponent.html +2 -2
- package/docs/components/EclSiteFooterRowCommonComponent.html +2 -2
- package/docs/components/EclSiteHeaderActionComponent.html +2 -2
- package/docs/components/EclSiteHeaderBannerTopComponent.html +2 -2
- package/docs/components/EclSiteHeaderComponent.html +2 -2
- package/docs/components/EclSiteHeaderCustomActionComponent.html +2 -2
- package/docs/components/EclSiteHeaderEnvironmentComponent.html +2 -2
- package/docs/components/EclSiteHeaderLanguageComponent.html +2 -2
- package/docs/components/EclSiteHeaderLanguagePopoverComponent.html +2 -2
- package/docs/components/EclSiteHeaderLoginComponent.html +2 -2
- package/docs/components/EclSiteHeaderNotificationComponent.html +2 -2
- package/docs/components/EclSiteHeaderSearchComponent.html +2 -2
- package/docs/components/EclSocialMediaFollowComponent.html +2 -2
- package/docs/components/EclSocialMediaFollowItemComponent.html +2 -2
- package/docs/components/EclSplashPageComponent.html +2 -2
- package/docs/components/EclSplashPageLanguageCategoryComponent.html +2 -2
- package/docs/components/EclSplashPageLanguageContainerComponent.html +2 -2
- package/docs/components/EclSplashPageLanguageLinkComponent.html +2 -2
- package/docs/components/EclSpotlightComponent.html +2 -2
- package/docs/components/EclSpotlightLinkComponent.html +2 -2
- package/docs/components/EclStickyContainerComponent.html +2 -2
- package/docs/components/EclTabComponent.html +2 -2
- package/docs/components/EclTabLabelComponent.html +2 -2
- package/docs/components/EclTableSortButtonComponent.html +2 -2
- package/docs/components/EclTabsComponent.html +2 -2
- package/docs/components/EclTagComponent.html +2 -2
- package/docs/components/EclTextMediaComponent.html +569 -0
- package/docs/components/EclTimelineComponent.html +2 -2
- package/docs/components/EclTimelineItemComponent.html +2 -2
- package/docs/components/EclTimelineItemTogglerComponent.html +2 -2
- package/docs/directives/EclAnimatedNumbersIconDirective.html +261 -0
- package/docs/directives/EclAnimatedNumbersItemsDirective.html +263 -0
- package/docs/directives/EclAnimatedNumbersSourceDirective.html +261 -0
- package/docs/directives/EclAnimatedNumbersSourcesItemDirective.html +263 -0
- package/docs/directives/EclAnimatedNumbersSourcesListDirective.html +263 -0
- package/docs/directives/EclPageInformationDirective.html +6 -130
- package/docs/directives/EclQuizListDirective.html +365 -0
- package/docs/directives/EclTextMediaContainerDirective.html +260 -0
- package/docs/directives/EclTextMediaDescriptionDirective.html +260 -0
- package/docs/directives/EclTextMediaLinkDirective.html +260 -0
- package/docs/directives/EclTextMediaMediaAnchorDirective.html +313 -0
- package/docs/directives/EclTextMediaMicroTitleDirective.html +260 -0
- package/docs/directives/EclTextMediaTitleDirective.html +260 -0
- package/docs/js/menu-wc.js +48 -0
- package/docs/js/menu-wc_es5.js +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/docs/json/EclAccordionDirective.md +1 -0
- package/docs/json/EclAnimatedNumbersComponent.md +34 -0
- package/docs/json/EclAnimatedNumbersIconDirective.md +14 -0
- package/docs/json/EclAnimatedNumbersItemComponent.md +33 -0
- package/docs/json/EclAnimatedNumbersItemsDirective.md +16 -0
- package/docs/json/EclAnimatedNumbersSourceDirective.md +14 -0
- package/docs/json/EclAnimatedNumbersSourcesItemDirective.md +16 -0
- package/docs/json/EclAnimatedNumbersSourcesListDirective.md +16 -0
- package/docs/json/EclMediaContainerComponent.md +1 -0
- package/docs/json/EclPageSummaryComponent.md +12 -0
- package/docs/json/EclQuizCardComponent.md +2 -3
- package/docs/json/EclQuizComponent.md +1 -1
- package/docs/json/EclQuizListDirective.md +8 -0
- package/docs/json/EclTextMediaComponent.md +18 -0
- package/docs/json/EclTextMediaContainerDirective.md +10 -0
- package/docs/json/EclTextMediaDescriptionDirective.md +10 -0
- package/docs/json/EclTextMediaLinkDirective.md +10 -0
- package/docs/json/EclTextMediaMediaAnchorDirective.md +17 -0
- package/docs/json/EclTextMediaMicroTitleDirective.md +10 -0
- package/docs/json/EclTextMediaTitleDirective.md +10 -0
- package/docs/json/documentation.json +1252 -493
- package/docs/miscellaneous/variables.html +115 -0
- package/docs/overview.html +2 -2
- package/docs/properties.html +1 -1
- package/fesm2022/eui-ecl-components-ecl-accordion.mjs +1 -0
- package/fesm2022/eui-ecl-components-ecl-accordion.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-animated-numbers.mjs +359 -0
- package/fesm2022/eui-ecl-components-ecl-animated-numbers.mjs.map +1 -0
- package/fesm2022/eui-ecl-components-ecl-link.mjs +6 -1
- package/fesm2022/eui-ecl-components-ecl-link.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-media-container.mjs +57 -27
- package/fesm2022/eui-ecl-components-ecl-media-container.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-page-information.mjs +6 -14
- package/fesm2022/eui-ecl-components-ecl-page-information.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-page-summary.mjs +30 -0
- package/fesm2022/eui-ecl-components-ecl-page-summary.mjs.map +1 -0
- package/fesm2022/eui-ecl-components-ecl-quiz.mjs +63 -87
- package/fesm2022/eui-ecl-components-ecl-quiz.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-site-footer.mjs +4 -4
- package/fesm2022/eui-ecl-components-ecl-site-footer.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-text-media.mjs +161 -0
- package/fesm2022/eui-ecl-components-ecl-text-media.mjs.map +1 -0
- package/package.json +14 -2
- package/types/eui-ecl-components-ecl-accordion.d.ts +1 -0
- package/types/eui-ecl-components-ecl-accordion.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-animated-numbers.d.ts +165 -0
- package/types/eui-ecl-components-ecl-animated-numbers.d.ts.map +1 -0
- package/types/eui-ecl-components-ecl-link.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-media-container.d.ts +19 -4
- package/types/eui-ecl-components-ecl-media-container.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-page-information.d.ts +0 -6
- package/types/eui-ecl-components-ecl-page-information.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-page-summary.d.ts +13 -0
- package/types/eui-ecl-components-ecl-page-summary.d.ts.map +1 -0
- package/types/eui-ecl-components-ecl-quiz.d.ts +27 -23
- package/types/eui-ecl-components-ecl-quiz.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-site-footer.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-text-media.d.ts +69 -0
- package/types/eui-ecl-components-ecl-text-media.d.ts.map +1 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# EclAnimatedNumbersComponent
|
|
2
|
+
|
|
3
|
+
**Type:** component
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Container component for the ECL Animated Numbers pattern.
|
|
8
|
+
Wraps animated number items and an optional sources footer.
|
|
9
|
+
|
|
10
|
+
```html
|
|
11
|
+
<div eclAnimatedNumbers [sourcesLabel]="'Sources:'">
|
|
12
|
+
<div eclAnimatedNumbersItems>
|
|
13
|
+
<div eclAnimatedNumbersItem [eclValue]="'213'" [category]="'Revenue'">
|
|
14
|
+
<ecl-icon eclAnimatedNumbersIcon icon="users" iconSet="phosphor"></ecl-icon>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
<ul eclAnimatedNumbersSourcesList>
|
|
18
|
+
<li eclAnimatedNumbersSourcesItem>
|
|
19
|
+
<a eclLink eclAnimatedNumbersSource href="/example">Eurostat</a>
|
|
20
|
+
</li>
|
|
21
|
+
</ul>
|
|
22
|
+
</div>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
**Selector:** `div[eclAnimatedNumbers]`
|
|
26
|
+
|
|
27
|
+
## Inputs
|
|
28
|
+
- **hasContentColor**: `undefined` - Applies a colour to the counter values.
|
|
29
|
+
- **hasDarkBackground**: `undefined` - Applies a dark background to the component.
|
|
30
|
+
- **hasLeftBorder**: `undefined` - Adds a left border to the animated number items.
|
|
31
|
+
- **sourcesLabel**: `string` - Label displayed before the sources list.
|
|
32
|
+
- **class**: `string` -
|
|
33
|
+
- **e2eAttr**: `any` -
|
|
34
|
+
- **tabindex**: `number` -
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# EclAnimatedNumbersIconDirective
|
|
2
|
+
|
|
3
|
+
**Type:** directive
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Marks an icon element as the animated number item's icon.
|
|
8
|
+
Applies the `ecl-animated-number__icon` positioning class.
|
|
9
|
+
|
|
10
|
+
```html
|
|
11
|
+
<ecl-icon eclAnimatedNumbersIcon icon="users" iconSet="phosphor"></ecl-icon>
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
**Selector:** `[eclAnimatedNumbersIcon]`
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# EclAnimatedNumbersItemComponent
|
|
2
|
+
|
|
3
|
+
**Type:** component
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Represents an individual animated number item.
|
|
8
|
+
Displays a numeric value that animates from 0 to the target when scrolled into view.
|
|
9
|
+
Uses an IntersectionObserver to trigger animation on viewport visibility and
|
|
10
|
+
requestAnimationFrame for smooth count-up with cubic ease-out.
|
|
11
|
+
|
|
12
|
+
```html
|
|
13
|
+
<div eclAnimatedNumbersItem
|
|
14
|
+
[eclValue]="'1250'"
|
|
15
|
+
[category]="'Revenue'"
|
|
16
|
+
[prefix]="'€'"
|
|
17
|
+
[suffix]="'billions'"
|
|
18
|
+
[description]="'Annual revenue growth'">
|
|
19
|
+
<ecl-icon eclAnimatedNumbersIcon icon="trend-up" iconSet="phosphor"></ecl-icon>
|
|
20
|
+
</div>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
**Selector:** `[eclAnimatedNumbersItem]`
|
|
24
|
+
|
|
25
|
+
## Inputs
|
|
26
|
+
- **category**: `string` - Category label displayed in the item header.
|
|
27
|
+
- **description**: `string` - Descriptive text displayed below the number.
|
|
28
|
+
- **eclValue**: `string` - The target numeric value to animate to. Accepts strings with non-numeric characters (they are stripped).
|
|
29
|
+
- **prefix**: `string` - Text displayed before the animated number (e.g. '€', 'billion').
|
|
30
|
+
- **suffix**: `string` - Text displayed after the animated number (e.g. '€', 'billions').
|
|
31
|
+
- **class**: `string` -
|
|
32
|
+
- **e2eAttr**: `any` -
|
|
33
|
+
- **tabindex**: `number` -
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# EclAnimatedNumbersItemsDirective
|
|
2
|
+
|
|
3
|
+
**Type:** directive
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Wraps the grid of animated number items.
|
|
8
|
+
Applies the `ecl-animated-numbers__items` layout class.
|
|
9
|
+
|
|
10
|
+
```html
|
|
11
|
+
<div eclAnimatedNumbersItems>
|
|
12
|
+
<div eclAnimatedNumbersItem ...></div>
|
|
13
|
+
</div>
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
**Selector:** `[eclAnimatedNumbersItems]`
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# EclAnimatedNumbersSourceDirective
|
|
2
|
+
|
|
3
|
+
**Type:** directive
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Marks a link as a source reference within the animated numbers component.
|
|
8
|
+
Applies the `ecl-animated-numbers__source` styling class.
|
|
9
|
+
|
|
10
|
+
```html
|
|
11
|
+
<a eclLink eclAnimatedNumbersSource href="/example">Eurostat</a>
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
**Selector:** `[eclAnimatedNumbersSource]`
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# EclAnimatedNumbersSourcesItemDirective
|
|
2
|
+
|
|
3
|
+
**Type:** directive
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Marks a list item as a source entry.
|
|
8
|
+
Applies the `ecl-animated-numbers__sources-item` class.
|
|
9
|
+
|
|
10
|
+
```html
|
|
11
|
+
<li eclAnimatedNumbersSourcesItem>
|
|
12
|
+
<a eclLink eclAnimatedNumbersSource href="/example">Eurostat</a>
|
|
13
|
+
</li>
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
**Selector:** `[eclAnimatedNumbersSourcesItem]`
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# EclAnimatedNumbersSourcesListDirective
|
|
2
|
+
|
|
3
|
+
**Type:** directive
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Wraps the list of source links.
|
|
8
|
+
Applies the `ecl-animated-numbers__sources-list` class.
|
|
9
|
+
|
|
10
|
+
```html
|
|
11
|
+
<ul eclAnimatedNumbersSourcesList>
|
|
12
|
+
<li eclAnimatedNumbersSourcesItem>...</li>
|
|
13
|
+
</ul>
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
**Selector:** `[eclAnimatedNumbersSourcesList]`
|
|
@@ -12,6 +12,7 @@ A media container is used to display media items (video, audio, image or other d
|
|
|
12
12
|
## Inputs
|
|
13
13
|
- **eclAutoplay**: `boolean` - Used for a video only - if the video should play immediately.
|
|
14
14
|
- **isFullWidth**: `boolean` -
|
|
15
|
+
- **captionPosition**: `"over" | "bottom" | "hidden"` -
|
|
15
16
|
- **class**: `string` -
|
|
16
17
|
- **e2eAttr**: `any` -
|
|
17
18
|
- **tabindex**: `number` -
|
|
@@ -10,16 +10,15 @@ For the 'reveal' variant, the entire card is clickable to flip.
|
|
|
10
10
|
For the 'poll' variant, individual options trigger the flip.
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
**Selector:** `
|
|
13
|
+
**Selector:** `li[eclQuizCard]`
|
|
14
14
|
|
|
15
15
|
## Inputs
|
|
16
|
-
- **ariaHidden**: `string | null` -
|
|
17
|
-
- **isActive**: `boolean` - Whether this card is currently active/visible in the slider.
|
|
18
16
|
- **answer**: `string` - The answer text displayed on the back of the card. Used in 'reveal' variant or as explanation in 'poll' variant.
|
|
19
17
|
- **answerTitle**: `string` - The answer title (e.g. "The correct answer is A.") for poll variant.
|
|
20
18
|
- **category**: `string` - Category label displayed in the card header (poll variant).
|
|
21
19
|
- **icon**: `string` - Icon name for the card header. Defaults to 'sparkle' for reveal, 'question' for poll.
|
|
22
20
|
- **iconSize**: `"xs" | "s" | "m" | "l" | "xl" | "2xl"` - Icon size for the card header.
|
|
21
|
+
- **id**: `string` - Unique identifier for the card, used for accessibility attributes. If not provided, a unique ID is generated automatically.
|
|
23
22
|
- **options**: `Array<{ text: string; match: boolean }>` - Options for the poll variant. Each option has text and a match flag.
|
|
24
23
|
- **question**: `string` - The question text displayed on the front of the card.
|
|
25
24
|
- **class**: `string` -
|
|
@@ -11,7 +11,7 @@ Uses Embla Carousel (via embla-carousel-angular) to match the ECL vanilla
|
|
|
11
11
|
implementation which also uses Embla internally.
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
**Selector:** `
|
|
14
|
+
**Selector:** `section[eclQuiz]`
|
|
15
15
|
|
|
16
16
|
## Inputs
|
|
17
17
|
- **eclDescription**: `string` - Description displayed below the title.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# EclTextMediaComponent
|
|
2
|
+
|
|
3
|
+
**Type:** component
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
A media container is used to display media items (video, audio, image or other data)
|
|
8
|
+
with text and a caption.
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
**Selector:** `article[eclTextMedia]`
|
|
12
|
+
|
|
13
|
+
## Inputs
|
|
14
|
+
- **mediaPosition**: `"left" | "right"` -
|
|
15
|
+
- **variant**: `"default" | "primary"` -
|
|
16
|
+
- **class**: `string` -
|
|
17
|
+
- **e2eAttr**: `any` -
|
|
18
|
+
- **tabindex**: `number` -
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# EclTextMediaMediaAnchorDirective
|
|
2
|
+
|
|
3
|
+
**Type:** directive
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Sets the `--ecl-image-anchor` CSS custom property for an image used
|
|
8
|
+
within the `ecl-text-media` component.
|
|
9
|
+
|
|
10
|
+
Intended to be used together with `img[eclMediaContainerImage]`
|
|
11
|
+
from the `ecl-media-container` component.
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
**Selector:** `img[eclTextMediaImgAnchor]`
|
|
15
|
+
|
|
16
|
+
## Inputs
|
|
17
|
+
- **eclTextMediaImgAnchor**: `"center" | "top left" | "bottom right" | "20% 20%"` -
|