@eui/ecl 21.2.6 → 21.2.7-snapshot-1780663563127

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.
Files changed (209) hide show
  1. package/assets/i18n-ecl/bg.json +218 -211
  2. package/assets/i18n-ecl/cs.json +217 -210
  3. package/assets/i18n-ecl/da.json +218 -211
  4. package/assets/i18n-ecl/de.json +218 -211
  5. package/assets/i18n-ecl/el.json +218 -211
  6. package/assets/i18n-ecl/en.json +219 -212
  7. package/assets/i18n-ecl/es.json +218 -211
  8. package/assets/i18n-ecl/et.json +219 -212
  9. package/assets/i18n-ecl/fi.json +219 -212
  10. package/assets/i18n-ecl/fr.json +219 -212
  11. package/assets/i18n-ecl/ga.json +219 -212
  12. package/assets/i18n-ecl/hr.json +219 -212
  13. package/assets/i18n-ecl/hu.json +219 -212
  14. package/assets/i18n-ecl/it.json +219 -212
  15. package/assets/i18n-ecl/lt.json +219 -212
  16. package/assets/i18n-ecl/lv.json +219 -212
  17. package/assets/i18n-ecl/mt.json +219 -212
  18. package/assets/i18n-ecl/nl.json +219 -212
  19. package/assets/i18n-ecl/pl.json +219 -212
  20. package/assets/i18n-ecl/pt.json +219 -212
  21. package/assets/i18n-ecl/ro.json +219 -212
  22. package/assets/i18n-ecl/sk.json +219 -212
  23. package/assets/i18n-ecl/sl.json +219 -212
  24. package/assets/i18n-ecl/sv.json +219 -212
  25. package/components/ecl-add-to-calendar/package.json +4 -0
  26. package/components/ecl-quiz/package.json +4 -0
  27. package/docs/changelog.html +47 -0
  28. package/docs/components/EclAccordionComponent.html +2 -2
  29. package/docs/components/EclAccordionItemComponent.html +2 -2
  30. package/docs/components/EclAccordionSummaryComponent.html +2 -2
  31. package/docs/components/EclAddToCalendarComponent.html +711 -0
  32. package/docs/components/EclAppComponent.html +2 -2
  33. package/docs/components/EclBannerComponent.html +26 -2
  34. package/docs/components/EclBlockquoteComponent.html +2 -2
  35. package/docs/components/EclBreadcrumbComponent.html +2 -2
  36. package/docs/components/EclBreadcrumbSegmentComponent.html +2 -2
  37. package/docs/components/EclButtonComponent.html +2 -2
  38. package/docs/components/EclCardBodyComponent.html +2 -2
  39. package/docs/components/EclCardComponent.html +2 -2
  40. package/docs/components/EclCarouselComponent.html +2 -2
  41. package/docs/components/EclCarouselItemComponent.html +2 -2
  42. package/docs/components/EclCategoryFilterComponent.html +2 -2
  43. package/docs/components/EclCategoryFilterItemComponent.html +2 -2
  44. package/docs/components/EclCategoryFilterListComponent.html +2 -2
  45. package/docs/components/EclCheckboxHelpComponent.html +2 -2
  46. package/docs/components/EclCheckboxLabelComponent.html +2 -2
  47. package/docs/components/EclContentBlockComponent.html +2 -2
  48. package/docs/components/EclContentItemComponent.html +2 -2
  49. package/docs/components/EclDateBlockComponent.html +2 -2
  50. package/docs/components/EclDescriptionListDefinitionComponent.html +2 -2
  51. package/docs/components/EclExpandableComponent.html +2 -2
  52. package/docs/components/EclFactFiguresComponent.html +2 -2
  53. package/docs/components/EclFactFiguresItemComponent.html +2 -2
  54. package/docs/components/EclFactFiguresViewAllComponent.html +2 -2
  55. package/docs/components/EclFeaturedComponent.html +2 -2
  56. package/docs/components/EclFeaturedItemComponent.html +19 -43
  57. package/docs/components/EclFeaturedItemDescriptionComponent.html +2 -2
  58. package/docs/components/EclFileComponent.html +42 -17
  59. package/docs/components/EclFileItemComponent.html +29 -10
  60. package/docs/components/EclFileItemsComponent.html +2 -2
  61. package/docs/components/EclFileTaxonomyComponent.html +2 -2
  62. package/docs/components/EclFormGroupComponent.html +2 -2
  63. package/docs/components/EclFormLabelComponent.html +2 -2
  64. package/docs/components/EclGalleryComponent.html +2 -2
  65. package/docs/components/EclGalleryFooterComponent.html +2 -2
  66. package/docs/components/EclGalleryItemComponent.html +2 -2
  67. package/docs/components/EclIconComponent.html +3 -3
  68. package/docs/components/EclIndicatorComponent-1.html +2 -2
  69. package/docs/components/EclIndicatorComponent.html +2 -2
  70. package/docs/components/EclInpageNavigationComponent.html +2 -2
  71. package/docs/components/EclInpageNavigationItemComponent.html +2 -2
  72. package/docs/components/EclListIllustrationComponent.html +2 -2
  73. package/docs/components/EclListIllustrationItemComponent.html +2 -2
  74. package/docs/components/EclLoadingIndicatorComponent.html +2 -2
  75. package/docs/components/EclMediaContainerComponent.html +2 -2
  76. package/docs/components/EclMegaMenuComponent.html +2 -2
  77. package/docs/components/EclMegaMenuFeaturedComponent.html +2 -2
  78. package/docs/components/EclMegaMenuInfoComponent.html +2 -2
  79. package/docs/components/EclMegaMenuItemComponent.html +2 -2
  80. package/docs/components/EclMegaMenuSubitemComponent.html +2 -2
  81. package/docs/components/EclMenuComponent.html +2 -2
  82. package/docs/components/EclMenuItemComponent.html +15 -15
  83. package/docs/components/EclMenuMegaComponent.html +2 -2
  84. package/docs/components/EclMenuMegaItemComponent.html +2 -2
  85. package/docs/components/EclModalBodyComponent.html +2 -2
  86. package/docs/components/EclModalComponent.html +2 -2
  87. package/docs/components/EclModalFooterComponent.html +2 -2
  88. package/docs/components/EclModalHeaderComponent.html +2 -2
  89. package/docs/components/EclMultiselectComponent.html +148 -12
  90. package/docs/components/EclMultiselectDropdownComponent.html +172 -124
  91. package/docs/components/EclMultiselectInputComponent.html +215 -144
  92. package/docs/components/EclMultiselectOptgroupComponent.html +2 -2
  93. package/docs/components/EclMultiselectOptionComponent.html +2 -2
  94. package/docs/components/EclNavigationListComponent.html +2 -2
  95. package/docs/components/EclNavigationListItemComponent.html +2 -2
  96. package/docs/components/EclNewsTickerComponent.html +2 -2
  97. package/docs/components/EclNewsTickerItemComponent.html +2 -2
  98. package/docs/components/EclNotificationComponent.html +2 -2
  99. package/docs/components/EclPageHeaderComponent.html +2 -2
  100. package/docs/components/EclPageHeaderDescriptionContainerComponent.html +2 -2
  101. package/docs/components/EclPageHeaderExpandableComponent.html +2 -2
  102. package/docs/components/EclPageHeaderNextComponent.html +2 -2
  103. package/docs/components/EclPageHeaderSectionComponent.html +2 -2
  104. package/docs/components/EclPageHeaderSectionInfoComponent.html +2 -2
  105. package/docs/components/EclPaginationComponent.html +2 -2
  106. package/docs/components/EclPaginationItemComponent.html +2 -2
  107. package/docs/components/EclPopoverComponent.html +2 -2
  108. package/docs/components/EclQuizCardComponent.html +2119 -0
  109. package/docs/components/EclQuizComponent.html +1527 -0
  110. package/docs/components/EclRadioHelpComponent.html +2 -2
  111. package/docs/components/EclRadioLabelComponent.html +2 -2
  112. package/docs/components/EclRangeBubbleComponent.html +2 -2
  113. package/docs/components/EclRangeValueComponent.html +2 -2
  114. package/docs/components/EclRatingFieldComponent.html +2 -2
  115. package/docs/components/EclSearchFormComponent.html +2 -2
  116. package/docs/components/EclSelectContainerComponent.html +2 -2
  117. package/docs/components/EclSiteFooterComponent.html +2 -2
  118. package/docs/components/EclSiteFooterCoownerComponent.html +2 -2
  119. package/docs/components/EclSiteFooterCoreComponent.html +2 -2
  120. package/docs/components/EclSiteFooterFixedContentEUComponent.html +2 -2
  121. package/docs/components/EclSiteFooterRowCommonComponent.html +2 -2
  122. package/docs/components/EclSiteHeaderActionComponent.html +2 -2
  123. package/docs/components/EclSiteHeaderBannerTopComponent.html +2 -2
  124. package/docs/components/EclSiteHeaderComponent.html +2 -2
  125. package/docs/components/EclSiteHeaderCustomActionComponent.html +2 -2
  126. package/docs/components/EclSiteHeaderEnvironmentComponent.html +2 -2
  127. package/docs/components/EclSiteHeaderLanguageComponent.html +2 -2
  128. package/docs/components/EclSiteHeaderLanguagePopoverComponent.html +2 -2
  129. package/docs/components/EclSiteHeaderLoginComponent.html +2 -2
  130. package/docs/components/EclSiteHeaderNotificationComponent.html +2 -2
  131. package/docs/components/EclSiteHeaderSearchComponent.html +2 -2
  132. package/docs/components/EclSocialMediaFollowComponent.html +2 -2
  133. package/docs/components/EclSocialMediaFollowItemComponent.html +2 -2
  134. package/docs/components/EclSplashPageComponent.html +2 -2
  135. package/docs/components/EclSplashPageLanguageCategoryComponent.html +2 -2
  136. package/docs/components/EclSplashPageLanguageContainerComponent.html +2 -2
  137. package/docs/components/EclSplashPageLanguageLinkComponent.html +2 -2
  138. package/docs/components/EclSpotlightComponent.html +2 -2
  139. package/docs/components/EclSpotlightLinkComponent.html +2 -2
  140. package/docs/components/EclStickyContainerComponent.html +2 -2
  141. package/docs/components/EclTabComponent.html +2 -2
  142. package/docs/components/EclTabLabelComponent.html +2 -2
  143. package/docs/components/EclTableSortButtonComponent.html +2 -2
  144. package/docs/components/EclTabsComponent.html +111 -131
  145. package/docs/components/EclTagComponent.html +2 -2
  146. package/docs/components/EclTimelineComponent.html +2 -2
  147. package/docs/components/EclTimelineItemComponent.html +2 -2
  148. package/docs/components/EclTimelineItemTogglerComponent.html +2 -2
  149. package/docs/directives/EclAddToCalendarActionDirective.html +253 -0
  150. package/docs/interfaces/EclQuizCardFlipEvent.html +379 -0
  151. package/docs/js/menu-wc.js +15 -0
  152. package/docs/js/menu-wc_es5.js +1 -1
  153. package/docs/js/search/search_index.js +2 -2
  154. package/docs/json/EclAddToCalendarActionDirective.md +8 -0
  155. package/docs/json/EclAddToCalendarComponent.md +21 -0
  156. package/docs/json/EclBannerComponent.md +1 -0
  157. package/docs/json/EclFeaturedItemComponent.md +2 -1
  158. package/docs/json/EclFileComponent.md +2 -1
  159. package/docs/json/EclFileItemComponent.md +2 -1
  160. package/docs/json/EclIconComponent.md +1 -1
  161. package/docs/json/EclMultiselectComponent.md +2 -1
  162. package/docs/json/EclMultiselectInputComponent.md +7 -7
  163. package/docs/json/EclQuizCardComponent.md +30 -0
  164. package/docs/json/EclQuizComponent.md +22 -0
  165. package/docs/json/documentation.json +2658 -714
  166. package/docs/miscellaneous/variables.html +70 -0
  167. package/docs/overview.html +3 -3
  168. package/docs/properties.html +1 -1
  169. package/fesm2022/eui-ecl-components-ecl-add-to-calendar.mjs +73 -0
  170. package/fesm2022/eui-ecl-components-ecl-add-to-calendar.mjs.map +1 -0
  171. package/fesm2022/eui-ecl-components-ecl-app.mjs +5 -3
  172. package/fesm2022/eui-ecl-components-ecl-app.mjs.map +1 -1
  173. package/fesm2022/eui-ecl-components-ecl-banner.mjs +4 -2
  174. package/fesm2022/eui-ecl-components-ecl-banner.mjs.map +1 -1
  175. package/fesm2022/eui-ecl-components-ecl-featured.mjs +9 -13
  176. package/fesm2022/eui-ecl-components-ecl-featured.mjs.map +1 -1
  177. package/fesm2022/eui-ecl-components-ecl-file.mjs +63 -36
  178. package/fesm2022/eui-ecl-components-ecl-file.mjs.map +1 -1
  179. package/fesm2022/eui-ecl-components-ecl-icon.mjs +4 -1
  180. package/fesm2022/eui-ecl-components-ecl-icon.mjs.map +1 -1
  181. package/fesm2022/eui-ecl-components-ecl-menu.mjs +5 -5
  182. package/fesm2022/eui-ecl-components-ecl-menu.mjs.map +1 -1
  183. package/fesm2022/eui-ecl-components-ecl-multiselect.mjs +146 -133
  184. package/fesm2022/eui-ecl-components-ecl-multiselect.mjs.map +1 -1
  185. package/fesm2022/eui-ecl-components-ecl-quiz.mjs +496 -0
  186. package/fesm2022/eui-ecl-components-ecl-quiz.mjs.map +1 -0
  187. package/fesm2022/eui-ecl-components-ecl-range.mjs +1 -0
  188. package/fesm2022/eui-ecl-components-ecl-range.mjs.map +1 -1
  189. package/fesm2022/eui-ecl-components-ecl-tabs.mjs +72 -51
  190. package/fesm2022/eui-ecl-components-ecl-tabs.mjs.map +1 -1
  191. package/package.json +10 -2
  192. package/types/eui-ecl-components-ecl-add-to-calendar.d.ts +42 -0
  193. package/types/eui-ecl-components-ecl-add-to-calendar.d.ts.map +1 -0
  194. package/types/eui-ecl-components-ecl-app.d.ts.map +1 -1
  195. package/types/eui-ecl-components-ecl-banner.d.ts +2 -1
  196. package/types/eui-ecl-components-ecl-banner.d.ts.map +1 -1
  197. package/types/eui-ecl-components-ecl-featured.d.ts +23 -21
  198. package/types/eui-ecl-components-ecl-featured.d.ts.map +1 -1
  199. package/types/eui-ecl-components-ecl-file.d.ts +22 -15
  200. package/types/eui-ecl-components-ecl-file.d.ts.map +1 -1
  201. package/types/eui-ecl-components-ecl-icon.d.ts.map +1 -1
  202. package/types/eui-ecl-components-ecl-menu.d.ts +1 -1
  203. package/types/eui-ecl-components-ecl-multiselect.d.ts +65 -48
  204. package/types/eui-ecl-components-ecl-multiselect.d.ts.map +1 -1
  205. package/types/eui-ecl-components-ecl-quiz.d.ts +203 -0
  206. package/types/eui-ecl-components-ecl-quiz.d.ts.map +1 -0
  207. package/types/eui-ecl-components-ecl-range.d.ts.map +1 -1
  208. package/types/eui-ecl-components-ecl-tabs.d.ts +6 -17
  209. package/types/eui-ecl-components-ecl-tabs.d.ts.map +1 -1
@@ -0,0 +1,8 @@
1
+ # EclAddToCalendarActionDirective
2
+
3
+ **Type:** directive
4
+
5
+
6
+
7
+
8
+ **Selector:** `div[eclAddToCalendarAction]`
@@ -0,0 +1,21 @@
1
+ # EclAddToCalendarComponent
2
+
3
+ **Type:** component
4
+
5
+
6
+
7
+ ECL Add to Calendar component.
8
+ Displays event information with optional date, time, and location metadata.
9
+
10
+
11
+ **Selector:** `div[eclAddToCalendar]`
12
+
13
+ ## Inputs
14
+ - **calendarDates**: `string` - Date(s) of the event (e.g. "March 15-17, 2026").
15
+ - **calendarLocation**: `string` - Location of the event (e.g. "San Francisco, CA").
16
+ - **calendarTime**: `string` - Time of the event (e.g. "2:00 PM - 4:00 PM").
17
+ - **eclTitle**: `string` - Title displayed in the component.
18
+ - **isFullWidth**: `undefined` -
19
+ - **class**: `string` -
20
+ - **e2eAttr**: `any` -
21
+ - **tabindex**: `number` -
@@ -19,6 +19,7 @@ Allows customization of layout, alignment, and appearance through inputs.
19
19
  - **horizontalAlignment**: `"right" | "left" | "center" | string` - Sets the horizontal alignment of the content inside the banner. Allowed values: 'left' | 'center' | 'right'. Default: 'left'.
20
20
  - **isFullWidth**: `boolean` - When true, the banner stretches to full width of its container. Default: false.
21
21
  - **verticalAlignment**: `"top" | "center" | "bottom" | string` - Sets the vertical alignment of the content inside the banner. Allowed values: 'top' | 'center' | 'bottom'. Default: 'center'.
22
+ - **fontWeight**: `"light" | "bold"` -
22
23
  - **hasOverlay**: `undefined` -
23
24
  - **class**: `string` -
24
25
  - **e2eAttr**: `any` -
@@ -10,7 +10,8 @@ Container for the text part - title and description of the <ecl-featured> compon
10
10
  **Selector:** `ecl-featured-item, div[eclFeaturedItem]`
11
11
 
12
12
  ## Inputs
13
- - **eclTitle**: `string` -
13
+ - **eclMicroTitle**: `undefined` -
14
+ - **eclTitle**: `undefined` -
14
15
  - **id**: `string` -
15
16
  - **class**: `string` -
16
17
  - **e2eAttr**: `any` -
@@ -11,13 +11,14 @@ and image (thumbnail) support.
11
11
  **Selector:** `ecl-file`
12
12
 
13
13
  ## Inputs
14
+ - **id**: `string` - Optional ID for the file component, useful for accessibility or referencing.
14
15
  - **description**: `string` - Optional description displayed under the file title.
15
16
  - **detailMeta**: `string[]` - Additional details displayed in the file component (e.g. file size, date).
16
- - **id**: `string` - Optional ID for the file component, useful for accessibility or referencing.
17
17
  - **labelInfo**: `string` - Additional label shown next to the language label, e.g. file type or status.
18
18
  - **langId**: `string` - Optional language ID (e.g., for translation or accessibility attributes).
19
19
  - **language**: `string` - Language indicator string (e.g. "EN", "FR") used in the label.
20
20
  - **meta**: `string` - Main metadata displayed for the file (e.g. format, license).
21
+ - **metaId**: `string` - ID applied to the meta element for accessibility.
21
22
  - **class**: `string` -
22
23
  - **e2eAttr**: `any` -
23
24
  - **tabindex**: `number` -
@@ -12,10 +12,11 @@ inside the main ECL File component.
12
12
 
13
13
  ## Inputs
14
14
  - **eclTitle**: `string` - Title text of the file item.
15
- - **isDescription**: `boolean` - Indicates whether the item is a description block rather than a translation. Adds the `ecl-file__translation-description` class when true.
15
+ - **isDescription**: `undefined` - Indicates whether the item is a description block rather than a translation. Adds the `ecl-file__translation-description` class when true.
16
16
  - **label**: `string` - Language label displayed next to the title (e.g., "FR", "EN").
17
17
  - **langDetail**: `string` - Supplementary language detail displayed below the language label.
18
18
  - **meta**: `string` - Additional metadata for the item (e.g., file size, type).
19
+ - **metaId**: `string` - ID applied to the meta element for accessibility.
19
20
  - **titleId**: `string` - ID applied to the title element for accessibility.
20
21
  - **class**: `string` -
21
22
  - **e2eAttr**: `any` -
@@ -19,6 +19,6 @@ Integrates with ECL theming and supports accessibility options.
19
19
  - **title**: `string` - Title used for accessibility. Also affects `aria-hidden` and `role`.
20
20
  - **color**: `'inverted' | 'primary' | null` - Applies color styling to the icon. Use `'inverted'` for icons on dark backgrounds, or `'primary'` for emphasis.
21
21
  - **icon**: `string` - Name of the icon to render from the selected set.
22
- - **iconSet**: `'default' | 'social' | 'social-media' | 'social-media-color' | 'flag' | 'flag-non-members' | string` - Defines the icon set to use. Available sets: `default`, `social`, `social-media`, `flag`, or a custom URL prefix. Defaults to `'default'`.
22
+ - **iconSet**: `'default' | 'social' | 'social-media' | 'social-media-color' | 'flag' | 'flag-non-members' | 'phosphor' | string` - Defines the icon set to use. Available sets: `default`, `social`, `social-media`, `flag`, or a custom URL prefix. Defaults to `'default'`.
23
23
  - **size**: `'2xs' | 'xs' | 's' | 'm' | 'l' | 'xl' | '2xl' | 'fluid' | string` - Size of the icon. Supported values: `'2xs'`, `'xs'`, `'s'`, `'m'`, `'l'`, `'xl'`, `'2xl'`, `'fluid'`. Defaults to `'xs'`.
24
24
  - **transform**: `string` - Adds a transformation modifier to the icon (e.g., rotation).
@@ -14,7 +14,7 @@ Replaces the original element with a custom dropdown rendered dynamically.
14
14
 
15
15
  ## Inputs
16
16
  - **ariaDescribedby**: `string | undefined` - Defines the `aria-describedby` attribute for accessibility.
17
- - **ariaLabeledby**: `string | undefined` - Defines the `aria-labelledby` attribute for accessibility.
17
+ - **counterLabel**: `string` - Label for the selections counter, read by screen readers. Accepts a translation key or plain text. Default: 'ecl.multiselect.SELECTED'.
18
18
  - **disabled**: `BooleanInput` - Disables the multiselect component when set to true.
19
19
  - **eclPlaceholder**: `string` - Placeholder text to show in the multiselect input field when no options are selected.
20
20
  - **eclSize**: `string` - Multiselect size: 's' | 'm' | 'l'. Default is 'm'.
@@ -22,6 +22,7 @@ Replaces the original element with a custom dropdown rendered dynamically.
22
22
  - **hasSelectAll**: `string` - Displays the "Select all" option in the dropdown.
23
23
  - **id**: `string | undefined` - Sets the `id` attribute of the multiselect component.
24
24
  - **isInvalid**: `boolean | undefined` - Marks the multiselect as invalid.
25
+ - **isSubmitOnApply**: `string` - When true, the Apply button in the dropdown acts as a submit button (type="submit").
25
26
  - **toggleLabel**: `string | undefined` - Label used for the toggle button that expands or collapses the dropdown.
26
27
  - **class**: `string` -
27
28
  - **e2eAttr**: `any` -
@@ -13,13 +13,13 @@ Handles displaying selected items, opening the dropdown, and managing accessibil
13
13
  ## Inputs
14
14
  - **ariaControls**: `string | undefined` - ARIA controls attribute for accessibility.
15
15
  - **ariaDescribedby**: `string | undefined` - ARIA describedby attribute for accessibility.
16
- - **ariaLabeledby**: `string | undefined` - ARIA labelledby attribute for accessibility.
17
- - **eclSize**: `string` - Size modifier for the multiselect input (e.g., 's', 'm', 'l').
18
- - **inputPlaceholder**: `string` - Placeholder text for the input when no items are selected.
19
- - **isDisabled**: `boolean | undefined` - Marks the component as disabled.
20
- - **isDropdownExpanded**: `boolean` - Indicates that the dropdown is currently expanded.
21
- - **isInvalid**: `boolean | undefined` - Marks the component as being in an invalid state.
22
- - **selectedItems**: `{}` - Array of currently selected item labels.
16
+ - **counterLabel**: `undefined` - Label for the selections counter, read by screen readers.
17
+ - **eclSize**: `undefined` - Size modifier for the multiselect input (e.g., 's', 'm', 'l').
18
+ - **inputPlaceholder**: `undefined` - Placeholder text for the input when no items are selected.
19
+ - **isDisabled**: `undefined` - Marks the component as disabled.
20
+ - **isDropdownExpanded**: `undefined` - Indicates that the dropdown is currently expanded.
21
+ - **isInvalid**: `undefined` - Marks the component as being in an invalid state.
22
+ - **selectedItems**: `string[]` - Array of currently selected item labels.
23
23
  - **toggleId**: `string` - ID of the toggle button element (used for accessibility).
24
24
  - **toggleLabel**: `string | undefined` - Label for the toggle button (optional).
25
25
  - **class**: `string` -
@@ -0,0 +1,30 @@
1
+ # EclQuizCardComponent
2
+
3
+ **Type:** component
4
+
5
+
6
+
7
+ ECL Quiz Card component – represents a single card in the quiz.
8
+
9
+ For the 'reveal' variant, the entire card is clickable to flip.
10
+ For the 'poll' variant, individual options trigger the flip.
11
+
12
+
13
+ **Selector:** `div[eclQuizCard]`
14
+
15
+ ## Inputs
16
+ - **ariaHidden**: `string | null` -
17
+ - **isActive**: `boolean` - Whether this card is currently active/visible in the slider.
18
+ - **answer**: `string` - The answer text displayed on the back of the card. Used in 'reveal' variant or as explanation in 'poll' variant.
19
+ - **answerTitle**: `string` - The answer title (e.g. "The correct answer is A.") for poll variant.
20
+ - **category**: `string` - Category label displayed in the card header (poll variant).
21
+ - **icon**: `string` - Icon name for the card header. Defaults to 'sparkle' for reveal, 'question' for poll.
22
+ - **iconSize**: `"xs" | "s" | "m" | "l" | "xl" | "2xl"` - Icon size for the card header.
23
+ - **options**: `Array<{ text: string; match: boolean }>` - Options for the poll variant. Each option has text and a match flag.
24
+ - **question**: `string` - The question text displayed on the front of the card.
25
+ - **class**: `string` -
26
+ - **e2eAttr**: `any` -
27
+ - **tabindex**: `number` -
28
+
29
+ ## Outputs
30
+ - **cardFlip**: `EventEmitter` - Emitted when the card is flipped.
@@ -0,0 +1,22 @@
1
+ # EclQuizComponent
2
+
3
+ **Type:** component
4
+
5
+
6
+
7
+ ECL Quiz component – renders a carousel of quiz cards with navigation.
8
+ Supports two variants: 'reveal' (flip cards) and 'poll' (multiple choice).
9
+
10
+ Uses Embla Carousel (via embla-carousel-angular) to match the ECL vanilla
11
+ implementation which also uses Embla internally.
12
+
13
+
14
+ **Selector:** `div[eclQuiz]`
15
+
16
+ ## Inputs
17
+ - **eclDescription**: `string` - Description displayed below the title.
18
+ - **eclTitle**: `string` - Title displayed in the quiz header.
19
+ - **variant**: `"poll" | "reveal"` - Quiz variant: 'reveal' for flip cards, 'poll' for multiple choice.
20
+ - **class**: `string` -
21
+ - **e2eAttr**: `any` -
22
+ - **tabindex**: `number` -